@archastro/sdk 0.5.2 → 0.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (222) hide show
  1. package/README.md +86 -0
  2. package/dist/auth.d.ts +143 -0
  3. package/dist/auth.d.ts.map +1 -1
  4. package/dist/auth.js +187 -1
  5. package/dist/auth.js.map +1 -1
  6. package/dist/client.d.ts +26 -0
  7. package/dist/client.d.ts.map +1 -1
  8. package/dist/client.js +27 -1
  9. package/dist/client.js.map +1 -1
  10. package/dist/index.d.ts +1 -1
  11. package/dist/index.d.ts.map +1 -1
  12. package/dist/index.js +2 -2
  13. package/dist/index.js.map +1 -1
  14. package/dist/types/ai.d.ts +150 -12
  15. package/dist/types/ai.d.ts.map +1 -1
  16. package/dist/types/ai.js +71 -41
  17. package/dist/types/ai.js.map +1 -1
  18. package/dist/types/artifacts.d.ts +81 -24
  19. package/dist/types/artifacts.d.ts.map +1 -1
  20. package/dist/types/artifacts.js +39 -21
  21. package/dist/types/artifacts.js.map +1 -1
  22. package/dist/types/automations.d.ts +41 -9
  23. package/dist/types/automations.d.ts.map +1 -1
  24. package/dist/types/automations.js +25 -17
  25. package/dist/types/automations.js.map +1 -1
  26. package/dist/types/chat.d.ts +21418 -0
  27. package/dist/types/chat.d.ts.map +1 -0
  28. package/dist/types/chat.js +70 -0
  29. package/dist/types/chat.js.map +1 -0
  30. package/dist/types/common.d.ts +16970 -2136
  31. package/dist/types/common.d.ts.map +1 -1
  32. package/dist/types/common.js +1695 -332
  33. package/dist/types/common.js.map +1 -1
  34. package/dist/types/config.d.ts +239 -31
  35. package/dist/types/config.d.ts.map +1 -1
  36. package/dist/types/config.js +86 -34
  37. package/dist/types/config.js.map +1 -1
  38. package/dist/types/image.d.ts +27 -4
  39. package/dist/types/image.d.ts.map +1 -1
  40. package/dist/types/image.js +17 -10
  41. package/dist/types/image.js.map +1 -1
  42. package/dist/types/index.d.ts +2 -1
  43. package/dist/types/index.d.ts.map +1 -1
  44. package/dist/types/index.js +3 -2
  45. package/dist/types/index.js.map +1 -1
  46. package/dist/types/invites.d.ts +20 -11
  47. package/dist/types/invites.d.ts.map +1 -1
  48. package/dist/types/invites.js +9 -12
  49. package/dist/types/invites.js.map +1 -1
  50. package/dist/types/notifications.d.ts +163 -0
  51. package/dist/types/notifications.d.ts.map +1 -0
  52. package/dist/types/notifications.js +44 -0
  53. package/dist/types/notifications.js.map +1 -0
  54. package/dist/types/teams.d.ts +1628 -231
  55. package/dist/types/teams.d.ts.map +1 -1
  56. package/dist/types/teams.js +76 -45
  57. package/dist/types/teams.js.map +1 -1
  58. package/dist/types/threads.d.ts +997 -243
  59. package/dist/types/threads.d.ts.map +1 -1
  60. package/dist/types/threads.js +84 -51
  61. package/dist/types/threads.js.map +1 -1
  62. package/dist/types/users.d.ts +98 -18
  63. package/dist/types/users.d.ts.map +1 -1
  64. package/dist/types/users.js +43 -18
  65. package/dist/types/users.js.map +1 -1
  66. package/dist/v1/resources/activity_feed.d.ts +89 -0
  67. package/dist/v1/resources/activity_feed.d.ts.map +1 -1
  68. package/dist/v1/resources/activity_feed.js +56 -2
  69. package/dist/v1/resources/activity_feed.js.map +1 -1
  70. package/dist/v1/resources/agent_computers.d.ts +48 -2
  71. package/dist/v1/resources/agent_computers.d.ts.map +1 -1
  72. package/dist/v1/resources/agent_computers.js +48 -1
  73. package/dist/v1/resources/agent_computers.js.map +1 -1
  74. package/dist/v1/resources/agent_env_vars.d.ts +50 -0
  75. package/dist/v1/resources/agent_env_vars.d.ts.map +1 -0
  76. package/dist/v1/resources/agent_env_vars.js +56 -0
  77. package/dist/v1/resources/agent_env_vars.js.map +1 -0
  78. package/dist/v1/resources/agent_health_actions.d.ts +43 -0
  79. package/dist/v1/resources/agent_health_actions.d.ts.map +1 -0
  80. package/dist/v1/resources/agent_health_actions.js +50 -0
  81. package/dist/v1/resources/agent_health_actions.js.map +1 -0
  82. package/dist/v1/resources/agent_installations.d.ts +100 -0
  83. package/dist/v1/resources/agent_installations.d.ts.map +1 -1
  84. package/dist/v1/resources/agent_installations.js +106 -2
  85. package/dist/v1/resources/agent_installations.js.map +1 -1
  86. package/dist/v1/resources/agent_routine_runs.d.ts +33 -0
  87. package/dist/v1/resources/agent_routine_runs.d.ts.map +1 -0
  88. package/dist/v1/resources/agent_routine_runs.js +48 -0
  89. package/dist/v1/resources/agent_routine_runs.js.map +1 -0
  90. package/dist/v1/resources/agent_routines.d.ts +148 -2
  91. package/dist/v1/resources/agent_routines.d.ts.map +1 -1
  92. package/dist/v1/resources/agent_routines.js +168 -3
  93. package/dist/v1/resources/agent_routines.js.map +1 -1
  94. package/dist/v1/resources/agent_sessions.d.ts +118 -1
  95. package/dist/v1/resources/agent_sessions.d.ts.map +1 -1
  96. package/dist/v1/resources/agent_sessions.js +134 -2
  97. package/dist/v1/resources/agent_sessions.js.map +1 -1
  98. package/dist/v1/resources/agent_skills.d.ts +83 -1
  99. package/dist/v1/resources/agent_skills.d.ts.map +1 -1
  100. package/dist/v1/resources/agent_skills.js +87 -2
  101. package/dist/v1/resources/agent_skills.js.map +1 -1
  102. package/dist/v1/resources/agent_tools.d.ts +109 -2
  103. package/dist/v1/resources/agent_tools.d.ts.map +1 -1
  104. package/dist/v1/resources/agent_tools.js +114 -2
  105. package/dist/v1/resources/agent_tools.js.map +1 -1
  106. package/dist/v1/resources/agents.d.ts +517 -9
  107. package/dist/v1/resources/agents.d.ts.map +1 -1
  108. package/dist/v1/resources/agents.js +515 -12
  109. package/dist/v1/resources/agents.js.map +1 -1
  110. package/dist/v1/resources/ai.d.ts +93 -0
  111. package/dist/v1/resources/ai.d.ts.map +1 -1
  112. package/dist/v1/resources/ai.js +89 -1
  113. package/dist/v1/resources/ai.js.map +1 -1
  114. package/dist/v1/resources/artifacts.d.ts +73 -0
  115. package/dist/v1/resources/artifacts.d.ts.map +1 -1
  116. package/dist/v1/resources/artifacts.js +74 -2
  117. package/dist/v1/resources/artifacts.js.map +1 -1
  118. package/dist/v1/resources/automation_runs.d.ts +8 -4
  119. package/dist/v1/resources/automation_runs.d.ts.map +1 -1
  120. package/dist/v1/resources/automation_runs.js +9 -5
  121. package/dist/v1/resources/automation_runs.js.map +1 -1
  122. package/dist/v1/resources/automations.d.ts +20 -0
  123. package/dist/v1/resources/automations.d.ts.map +1 -1
  124. package/dist/v1/resources/automations.js +21 -1
  125. package/dist/v1/resources/automations.js.map +1 -1
  126. package/dist/v1/resources/bug_reports.d.ts +29 -0
  127. package/dist/v1/resources/bug_reports.d.ts.map +1 -0
  128. package/dist/v1/resources/bug_reports.js +29 -0
  129. package/dist/v1/resources/bug_reports.js.map +1 -0
  130. package/dist/v1/resources/config.d.ts +429 -4
  131. package/dist/v1/resources/config.d.ts.map +1 -1
  132. package/dist/v1/resources/config.js +493 -9
  133. package/dist/v1/resources/config.js.map +1 -1
  134. package/dist/v1/resources/custom_objects.d.ts +117 -2
  135. package/dist/v1/resources/custom_objects.d.ts.map +1 -1
  136. package/dist/v1/resources/custom_objects.js +132 -3
  137. package/dist/v1/resources/custom_objects.js.map +1 -1
  138. package/dist/v1/resources/files.d.ts +62 -0
  139. package/dist/v1/resources/files.d.ts.map +1 -0
  140. package/dist/v1/resources/files.js +58 -0
  141. package/dist/v1/resources/files.js.map +1 -0
  142. package/dist/v1/resources/index.d.ts +13 -0
  143. package/dist/v1/resources/index.d.ts.map +1 -1
  144. package/dist/v1/resources/index.js +14 -1
  145. package/dist/v1/resources/index.js.map +1 -1
  146. package/dist/v1/resources/installation_sources.d.ts +12 -0
  147. package/dist/v1/resources/installation_sources.d.ts.map +1 -1
  148. package/dist/v1/resources/installation_sources.js +13 -1
  149. package/dist/v1/resources/installation_sources.js.map +1 -1
  150. package/dist/v1/resources/invites.d.ts +15 -0
  151. package/dist/v1/resources/invites.d.ts.map +1 -1
  152. package/dist/v1/resources/invites.js +16 -1
  153. package/dist/v1/resources/invites.js.map +1 -1
  154. package/dist/v1/resources/knowledge_documents.d.ts +104 -0
  155. package/dist/v1/resources/knowledge_documents.d.ts.map +1 -0
  156. package/dist/v1/resources/knowledge_documents.js +112 -0
  157. package/dist/v1/resources/knowledge_documents.js.map +1 -0
  158. package/dist/v1/resources/knowledge_sources.d.ts +190 -0
  159. package/dist/v1/resources/knowledge_sources.d.ts.map +1 -0
  160. package/dist/v1/resources/knowledge_sources.js +176 -0
  161. package/dist/v1/resources/knowledge_sources.js.map +1 -0
  162. package/dist/v1/resources/kv.d.ts +73 -0
  163. package/dist/v1/resources/kv.d.ts.map +1 -1
  164. package/dist/v1/resources/kv.js +96 -3
  165. package/dist/v1/resources/kv.js.map +1 -1
  166. package/dist/v1/resources/notification_preferences.d.ts +61 -0
  167. package/dist/v1/resources/notification_preferences.d.ts.map +1 -0
  168. package/dist/v1/resources/notification_preferences.js +65 -0
  169. package/dist/v1/resources/notification_preferences.js.map +1 -0
  170. package/dist/v1/resources/notifications.d.ts +133 -0
  171. package/dist/v1/resources/notifications.d.ts.map +1 -0
  172. package/dist/v1/resources/notifications.js +136 -0
  173. package/dist/v1/resources/notifications.js.map +1 -0
  174. package/dist/v1/resources/orgs.d.ts +18 -0
  175. package/dist/v1/resources/orgs.d.ts.map +1 -1
  176. package/dist/v1/resources/orgs.js +30 -2
  177. package/dist/v1/resources/orgs.js.map +1 -1
  178. package/dist/v1/resources/slack_channel_bindings.d.ts +101 -0
  179. package/dist/v1/resources/slack_channel_bindings.d.ts.map +1 -0
  180. package/dist/v1/resources/slack_channel_bindings.js +114 -0
  181. package/dist/v1/resources/slack_channel_bindings.js.map +1 -0
  182. package/dist/v1/resources/solution_categories.d.ts +36 -0
  183. package/dist/v1/resources/solution_categories.d.ts.map +1 -0
  184. package/dist/v1/resources/solution_categories.js +55 -0
  185. package/dist/v1/resources/solution_categories.js.map +1 -0
  186. package/dist/v1/resources/solution_tags.d.ts +37 -0
  187. package/dist/v1/resources/solution_tags.d.ts.map +1 -0
  188. package/dist/v1/resources/solution_tags.js +54 -0
  189. package/dist/v1/resources/solution_tags.js.map +1 -0
  190. package/dist/v1/resources/solutions.d.ts +309 -0
  191. package/dist/v1/resources/solutions.d.ts.map +1 -0
  192. package/dist/v1/resources/solutions.js +214 -0
  193. package/dist/v1/resources/solutions.js.map +1 -0
  194. package/dist/v1/resources/team_memberships.d.ts +31 -0
  195. package/dist/v1/resources/team_memberships.d.ts.map +1 -1
  196. package/dist/v1/resources/team_memberships.js +49 -2
  197. package/dist/v1/resources/team_memberships.js.map +1 -1
  198. package/dist/v1/resources/teams.d.ts +458 -49
  199. package/dist/v1/resources/teams.d.ts.map +1 -1
  200. package/dist/v1/resources/teams.js +319 -27
  201. package/dist/v1/resources/teams.js.map +1 -1
  202. package/dist/v1/resources/thread_messages.d.ts +70 -0
  203. package/dist/v1/resources/thread_messages.d.ts.map +1 -1
  204. package/dist/v1/resources/thread_messages.js +85 -2
  205. package/dist/v1/resources/thread_messages.js.map +1 -1
  206. package/dist/v1/resources/threads.d.ts +201 -0
  207. package/dist/v1/resources/threads.d.ts.map +1 -1
  208. package/dist/v1/resources/threads.js +220 -4
  209. package/dist/v1/resources/threads.js.map +1 -1
  210. package/dist/v1/resources/users.d.ts +213 -39
  211. package/dist/v1/resources/users.d.ts.map +1 -1
  212. package/dist/v1/resources/users.js +121 -16
  213. package/dist/v1/resources/users.js.map +1 -1
  214. package/dist/v1.d.ts +26 -0
  215. package/dist/v1.d.ts.map +1 -1
  216. package/dist/v1.js +40 -1
  217. package/dist/v1.js.map +1 -1
  218. package/package.json +3 -1
  219. package/dist/types/agents.d.ts +0 -2084
  220. package/dist/types/agents.d.ts.map +0 -1
  221. package/dist/types/agents.js +0 -203
  222. package/dist/types/agents.js.map +0 -1
@@ -1 +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;;;GAGG;AACH,eAAO,MAAM,oBAAoB;;;;;;EAE/B,CAAC;AACH,MAAM,MAAM,cAA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AAY,EAAE,MAAM,CAAC;CACtB;AAED,sDAAsD;AACtD,eAAO,MAAM,sBAAsB;IACjC,gJAAgJ;;IAEhJ,8DAA8D;;IAE9D,uEAAuE;;;;;;;;;;EAEmG,CAAC"}
@@ -1,60 +1,93 @@
1
1
  // Copyright (c) 2026 ArchAstro Inc. All Rights Reserved.
2
2
  // This file is auto-generated by @archastro/sdk-generator. Do not edit.
3
- // Content hash: 855c979d13fa
3
+ // Content hash: b4d3aee0a9fd
4
4
  import { z } from "zod";
5
- import { agentSchema } from "./agents.js";
6
- import { messageSchema } from "./common.js";
5
+ import { agentSchema, messageSchema } from "./common.js";
7
6
  import { userSchema } from "./users.js";
8
- /** Schema for thread settings response.
9
-
10
- Used by thread settings show/update endpoints.
11
- */
7
+ /** Runtime validator for {@link ThreadSettings}. */
12
8
  export const threadSettingsSchema = z.object({
13
- agent_enabled: z.boolean().optional(), // Whether the agent is enabled for this thread
14
- });
15
- /** API schema for a chat thread. */
9
+ /** Whether the AI agent is active for this thread. `true` enables AI responses; `false` disables them. Defaults to `true` when settings have not been explicitly configured. */
10
+ agent_enabled: z.boolean().optional().describe("Whether the AI agent is active for this thread. `true` enables AI responses; `false` disables them. Defaults to `true` when settings have not been explicitly configured."),
11
+ }).describe("Configuration settings for a thread that control AI agent behavior and other thread-level preferences.");
12
+ /** Runtime validator for {@link Thread}. */
16
13
  export const threadSchema = z.object({
17
- agent_user: z.string().optional(), // Owning agent user
18
- created_at: z.string().optional(), // Creation timestamp
19
- creator: userSchema.optional(), // Creator user object
20
- description: z.string().optional(), // Thread description
21
- id: z.string(), // Thread ID (thr_...)
22
- is_channel: z.boolean().optional(), // Whether this is a channel
23
- is_default: z.boolean().optional(), // Whether this is the default thread
24
- is_transient: z.boolean().optional(), // Whether this thread is transient
25
- is_unlisted: z.boolean().optional(), // Whether this thread is unlisted
26
- key: z.string().optional(), // Thread key
27
- last_activity: z.string().optional(), // Last activity timestamp
28
- metadata: z.record(z.unknown()).optional(), // Thread metadata
29
- org: z.string().optional(), // Organization
30
- parent_message: messageSchema.optional(), // Parent message object
31
- participant: z.array(z.string()).optional(), // Participant users
32
- participants: z.array(userSchema).optional(), // Participant user objects
33
- participating_actor: z.array(z.string()).optional(), // Actors participating in thread
34
- participating_agents: z.array(agentSchema).optional(), // Agents participating in thread
35
- role: z.string().optional(), // User's role in the thread
36
- sandbox: z.string().optional(), // Sandbox identifier
37
- settings: threadSettingsSchema.optional(), // Thread settings
38
- slug: z.string().optional(), // Thread slug
39
- sub_threads: z.array(z.record(z.unknown())).optional(), // Sub-threads
40
- team: z.string().optional(), // Owning team
41
- title: z.string().optional(), // Thread title
42
- ttl: z.number().int().optional(), // Time-to-live in seconds
43
- unread_count: z.number().int().optional(), // Unread message count
44
- updated_at: z.string().optional(), // Last update timestamp
45
- user: z.string().optional(), // Owning user
46
- });
47
- /** API schema for a thread member. */
14
+ /** ID of the agent that owns this thread (`agt_...`). `null` for user-owned or team-owned threads. */
15
+ agent_user: z.string().optional().describe("ID of the agent that owns this thread (`agt_...`). `null` for user-owned or team-owned threads."),
16
+ /** When the thread was created (ISO 8601). */
17
+ created_at: z.string().optional().describe("When the thread was created (ISO 8601)."),
18
+ /** Expanded user object for the user who created this thread. Populated only when the association is loaded. */
19
+ creator: userSchema.optional().describe("Expanded user object for the user who created this thread. Populated only when the association is loaded."),
20
+ /** Optional description or purpose statement for the thread. `null` if not set. */
21
+ description: z.string().optional().describe("Optional description or purpose statement for the thread. `null` if not set."),
22
+ /** Thread ID (`thr_...`). */
23
+ id: z.string().describe("Thread ID (`thr_...`)."),
24
+ /** Whether this thread operates as a channel — a multi-member broadcast-style conversation. */
25
+ is_channel: z.boolean().optional().describe("Whether this thread operates as a channel — a multi-member broadcast-style conversation."),
26
+ /** Whether this is the default thread for its owner. Each user or team has at most one default thread. */
27
+ is_default: z.boolean().optional().describe("Whether this is the default thread for its owner. Each user or team has at most one default thread."),
28
+ /** Whether this thread is ephemeral and may be deleted automatically after a period of inactivity or when its TTL expires. */
29
+ is_transient: z.boolean().optional().describe("Whether this thread is ephemeral and may be deleted automatically after a period of inactivity or when its TTL expires."),
30
+ /** Whether this thread is hidden from public discovery. Unlisted threads are accessible only to direct participants. */
31
+ is_unlisted: z.boolean().optional().describe("Whether this thread is hidden from public discovery. Unlisted threads are accessible only to direct participants."),
32
+ /** Application-defined stable key that uniquely identifies the thread within its scope. Useful for idempotent creation. `null` if not set. */
33
+ key: z.string().optional().describe("Application-defined stable key that uniquely identifies the thread within its scope. Useful for idempotent creation. `null` if not set."),
34
+ /** When the last message or activity occurred in this thread. Present only when activity enrichment is requested. */
35
+ last_activity: z.string().optional().describe("When the last message or activity occurred in this thread. Present only when activity enrichment is requested."),
36
+ /** Arbitrary key-value metadata attached to the thread. Shape is application-defined; `null` if no metadata has been set. */
37
+ metadata: z.record(z.unknown()).optional().describe("Arbitrary key-value metadata attached to the thread. Shape is application-defined; `null` if no metadata has been set."),
38
+ /** Whether the authenticated user has muted notifications for this thread. `true` suppresses all notification delivery. */
39
+ muted: z.boolean().optional().describe("Whether the authenticated user has muted notifications for this thread. `true` suppresses all notification delivery."),
40
+ /** ID of the organization this thread belongs to (`org_...`). `null` for threads outside an org context. */
41
+ org: z.string().optional().describe("ID of the organization this thread belongs to (`org_...`). `null` for threads outside an org context."),
42
+ /** The message that spawned this thread as a sub-thread. `null` for top-level threads. */
43
+ parent_message: messageSchema.optional().describe("The message that spawned this thread as a sub-thread. `null` for top-level threads."),
44
+ /** Array of participant user IDs (`usr_...`) who are members of this thread. */
45
+ participant: z.array(z.string()).optional().describe("Array of participant user IDs (`usr_...`) who are members of this thread."),
46
+ /** Expanded participant user objects for each member of this thread. Populated only when the association is loaded. */
47
+ participants: z.array(userSchema).optional().describe("Expanded participant user objects for each member of this thread. Populated only when the association is loaded."),
48
+ /** Composite actor identifiers for all participants currently active in this thread. Present only when actor enrichment is requested. */
49
+ participating_actor: z.array(z.string()).optional().describe("Composite actor identifiers for all participants currently active in this thread. Present only when actor enrichment is requested."),
50
+ /** Expanded agent objects for all agents participating in this thread. Present only when agent enrichment is requested. */
51
+ participating_agents: z.array(agentSchema).optional().describe("Expanded agent objects for all agents participating in this thread. Present only when agent enrichment is requested."),
52
+ /** The authenticated user's membership role in this thread, e.g. `"owner"`, `"member"`, or `"viewer"`. `null` if the user is not a member. */
53
+ role: z.string().optional().describe("The authenticated user's membership role in this thread, e.g. `\"owner\"`, `\"member\"`, or `\"viewer\"`. `null` if the user is not a member."),
54
+ /** ID of the developer sandbox this thread is scoped to (`sbx_...`). `null` for production threads. */
55
+ sandbox: z.string().optional().describe("ID of the developer sandbox this thread is scoped to (`sbx_...`). `null` for production threads."),
56
+ /** Per-thread configuration settings controlling AI agent behavior for this thread. */
57
+ settings: threadSettingsSchema.optional().describe("Per-thread configuration settings controlling AI agent behavior for this thread."),
58
+ /** URL-safe slug for the thread, used in human-readable permalinks. `null` if not assigned. */
59
+ slug: z.string().optional().describe("URL-safe slug for the thread, used in human-readable permalinks. `null` if not assigned."),
60
+ /** Threads that are nested under this thread as replies to a parent message. Present only when sub-thread enrichment is requested. */
61
+ sub_threads: z.array(z.record(z.unknown())).optional().describe("Threads that are nested under this thread as replies to a parent message. Present only when sub-thread enrichment is requested."),
62
+ /** ID of the team that owns this thread (`team_...`). `null` for user-owned or agent-owned threads. */
63
+ team: z.string().optional().describe("ID of the team that owns this thread (`team_...`). `null` for user-owned or agent-owned threads."),
64
+ /** Human-readable name of the thread. `null` if no title has been set. */
65
+ title: z.string().optional().describe("Human-readable name of the thread. `null` if no title has been set."),
66
+ /** Time-to-live in seconds after which the thread may be automatically cleaned up. `null` if the thread does not expire. */
67
+ ttl: z.number().int().optional().describe("Time-to-live in seconds after which the thread may be automatically cleaned up. `null` if the thread does not expire."),
68
+ /** Number of messages in this thread that the authenticated user has not yet read. Present only when read-state enrichment is requested. */
69
+ unread_count: z.number().int().optional().describe("Number of messages in this thread that the authenticated user has not yet read. Present only when read-state enrichment is requested."),
70
+ /** When the thread was last modified (ISO 8601). */
71
+ updated_at: z.string().optional().describe("When the thread was last modified (ISO 8601)."),
72
+ /** ID of the user who owns this thread (`usr_...`). `null` for team-owned or agent-owned threads. */
73
+ user: z.string().optional().describe("ID of the user who owns this thread (`usr_...`). `null` for team-owned or agent-owned threads."),
74
+ }).describe("A chat thread, representing a conversation channel that can be owned by a user, team, or agent and may contain messages, participants, and AI agent activity.");
75
+ /** Runtime validator for {@link ThreadMember}. */
48
76
  export const threadMemberSchema = z.object({
49
- membership_type: z.string().optional(), // Membership type (owner or member)
50
- thread: z.string().optional(), // Thread
51
- user: userSchema.optional(), // User details (when loaded)
52
- });
53
- /** Schema for thread read status response.
54
- */
77
+ /** Role of the member within the thread. One of `"owner"` (the user who created or was granted ownership) or `"member"` (a regular participant). */
78
+ membership_type: z.string().optional().describe("Role of the member within the thread. One of `\"owner\"` (the user who created or was granted ownership) or `\"member\"` (a regular participant)."),
79
+ /** ID of the thread this membership belongs to (`thr_...`). */
80
+ thread: z.string().optional().describe("ID of the thread this membership belongs to (`thr_...`)."),
81
+ /** Full user object for the member (`usr_...`). Present when the association is preloaded; `null` otherwise. */
82
+ user: userSchema.optional().describe("Full user object for the member (`usr_...`). Present when the association is preloaded; `null` otherwise."),
83
+ }).describe("A user's membership record in a thread, capturing their role and full user profile.");
84
+ /** Runtime validator for {@link ThreadReadStatus}. */
55
85
  export const threadReadStatusSchema = z.object({
56
- last_read_message: z.string().optional(), // Last read message
57
- thread: z.string(), // Thread
58
- unread_count: z.number().int(), // Number of unread messages
59
- });
86
+ /** Message ID (`msg_...`) of the last message the user has read in this thread. `null` if the user has never read any message in the thread. */
87
+ last_read_message: z.string().optional().describe("Message ID (`msg_...`) of the last message the user has read in this thread. `null` if the user has never read any message in the thread."),
88
+ /** Thread ID (`thr_...`) that this read status belongs to. */
89
+ thread: z.string().describe("Thread ID (`thr_...`) that this read status belongs to."),
90
+ /** Number of messages in the thread that the user has not yet read. */
91
+ unread_count: z.number().int().describe("Number of messages in the thread that the user has not yet read."),
92
+ }).describe("The read status of a thread for a specific user, indicating how far they have read and how many messages remain unread.");
60
93
  //# sourceMappingURL=threads.js.map
@@ -1 +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,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAExC;;;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;AAGH,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,EAAE,EAAE,sBAAsB;IACtC,UAAU,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,EAAE,4BAA4B;IAChE,UAAU,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,EAAE,qCAAqC;IACzE,YAAY,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,EAAE,mCAAmC;IACzE,WAAW,EAAE,CA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 +1,119 @@
1
1
  import { z } from "zod";
2
- /** API schema for a user. */
2
+ import type { InviteCreator } from "./invites.js";
3
+ /** A platform user account. Represents a human or system actor that can own threads, belong to an organization, and interact with the API. */
4
+ export interface User {
5
+ /** Short handle or alias for the user. `null` if not set. */
6
+ alias?: string | undefined;
7
+ /** ID of the app this user (and their access token) is scoped to (`dap_...`). `null` if the user is not scoped to an app. */
8
+ app?: string | undefined;
9
+ /** Display name of the user's app. `null` when the app association was not preloaded by the caller. */
10
+ app_name?: string | undefined;
11
+ /** Email address of the user. */
12
+ email?: string | undefined;
13
+ /** User ID (`usr_...`). */
14
+ id: string;
15
+ /** `true` if this account is an internal system user rather than a human. System users are created automatically by the platform. */
16
+ is_system_user?: boolean | undefined;
17
+ /** Arbitrary key-value metadata attached to the user. Defaults to an empty object. */
18
+ metadata?: Record<string, unknown> | undefined;
19
+ /** Full display name of the user. `null` if the user has not set a name. */
20
+ name?: string | undefined;
21
+ /** ID of the organization this user belongs to (`org_...`). `null` if the user is not a member of any organization. */
22
+ org?: string | undefined;
23
+ /** Display name of the user's organization. `null` when the user is not in an org, or when the org association was not preloaded by the caller. */
24
+ org_name?: string | undefined;
25
+ /** Role of the user within their organization. One of `"admin"`, `"member"`, or `"viewer"`. `null` when the user is not a member of any organization. */
26
+ org_role?: string | undefined;
27
+ /** ID of the sandbox environment this user is scoped to (`sbx_...`). `null` for production users. */
28
+ sandbox?: string | undefined;
29
+ /** Display name of the user's sandbox environment. `null` for production users, or when the sandbox association was not preloaded by the caller. */
30
+ sandbox_name?: string | undefined;
31
+ }
32
+ /** Runtime validator for {@link User}. */
3
33
  export declare const userSchema: z.ZodObject<{
34
+ /** Short handle or alias for the user. `null` if not set. */
4
35
  alias: z.ZodOptional<z.ZodString>;
36
+ /** ID of the app this user (and their access token) is scoped to (`dap_...`). `null` if the user is not scoped to an app. */
37
+ app: z.ZodOptional<z.ZodString>;
38
+ /** Display name of the user's app. `null` when the app association was not preloaded by the caller. */
39
+ app_name: z.ZodOptional<z.ZodString>;
40
+ /** Email address of the user. */
5
41
  email: z.ZodOptional<z.ZodString>;
42
+ /** User ID (`usr_...`). */
6
43
  id: z.ZodString;
44
+ /** `true` if this account is an internal system user rather than a human. System users are created automatically by the platform. */
45
+ is_system_user: z.ZodOptional<z.ZodBoolean>;
46
+ /** Arbitrary key-value metadata attached to the user. Defaults to an empty object. */
7
47
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
48
+ /** Full display name of the user. `null` if the user has not set a name. */
8
49
  name: z.ZodOptional<z.ZodString>;
50
+ /** ID of the organization this user belongs to (`org_...`). `null` if the user is not a member of any organization. */
9
51
  org: z.ZodOptional<z.ZodString>;
52
+ /** Display name of the user's organization. `null` when the user is not in an org, or when the org association was not preloaded by the caller. */
53
+ org_name: z.ZodOptional<z.ZodString>;
54
+ /** Role of the user within their organization. One of `"admin"`, `"member"`, or `"viewer"`. `null` when the user is not a member of any organization. */
55
+ org_role: z.ZodOptional<z.ZodString>;
56
+ /** ID of the sandbox environment this user is scoped to (`sbx_...`). `null` for production users. */
10
57
  sandbox: z.ZodOptional<z.ZodString>;
58
+ /** Display name of the user's sandbox environment. `null` for production users, or when the sandbox association was not preloaded by the caller. */
59
+ sandbox_name: z.ZodOptional<z.ZodString>;
11
60
  }, "strip", z.ZodTypeAny, {
12
61
  id: string;
13
62
  email?: string | undefined;
14
63
  alias?: string | undefined;
15
- name?: string | undefined;
16
- metadata?: Record<string, unknown> | undefined;
17
64
  org?: string | undefined;
18
65
  sandbox?: string | undefined;
66
+ name?: string | undefined;
67
+ app?: string | undefined;
68
+ app_name?: string | undefined;
69
+ is_system_user?: boolean | undefined;
70
+ metadata?: Record<string, unknown> | undefined;
71
+ org_name?: string | undefined;
72
+ org_role?: string | undefined;
73
+ sandbox_name?: string | undefined;
19
74
  }, {
20
75
  id: string;
21
76
  email?: string | undefined;
22
77
  alias?: string | undefined;
23
- name?: string | undefined;
24
- metadata?: Record<string, unknown> | undefined;
25
78
  org?: string | undefined;
26
79
  sandbox?: string | undefined;
80
+ name?: string | undefined;
81
+ app?: string | undefined;
82
+ app_name?: string | undefined;
83
+ is_system_user?: boolean | undefined;
84
+ metadata?: Record<string, unknown> | undefined;
85
+ org_name?: string | undefined;
86
+ org_role?: string | undefined;
87
+ sandbox_name?: string | undefined;
27
88
  }>;
28
- export type User = z.infer<typeof userSchema>;
29
- /** API schema for a user invite. */
89
+ /** A shareable invite created by a user, optionally scoped to a thread. Recipients can use the invite key to join or start a conversation. */
90
+ export interface UserInvite {
91
+ /** When this invite was created (ISO 8601). */
92
+ created_at?: string | undefined;
93
+ /** Invite ID (`uin_...`). */
94
+ id: string;
95
+ /** Secret bearer token used to accept this invite. Treat this value like a password — do not log or expose it publicly. */
96
+ key?: string | undefined;
97
+ /** Arbitrary key-value metadata attached to the invite at creation time. Defaults to an empty object. */
98
+ metadata?: Record<string, unknown> | undefined;
99
+ /** ID of the thread this invite is scoped to (`thr_...`). `null` if the invite is not bound to a thread. */
100
+ thread?: string | undefined;
101
+ /** The user who created this invite. */
102
+ user?: InviteCreator | undefined;
103
+ }
104
+ /** Runtime validator for {@link UserInvite}. */
30
105
  export declare const userInviteSchema: z.ZodObject<{
106
+ /** When this invite was created (ISO 8601). */
31
107
  created_at: z.ZodOptional<z.ZodString>;
108
+ /** Invite ID (`uin_...`). */
32
109
  id: z.ZodString;
110
+ /** Secret bearer token used to accept this invite. Treat this value like a password — do not log or expose it publicly. */
33
111
  key: z.ZodOptional<z.ZodString>;
112
+ /** Arbitrary key-value metadata attached to the invite at creation time. Defaults to an empty object. */
34
113
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
114
+ /** ID of the thread this invite is scoped to (`thr_...`). `null` if the invite is not bound to a thread. */
35
115
  thread: z.ZodOptional<z.ZodString>;
116
+ /** The user who created this invite. */
36
117
  user: z.ZodOptional<z.ZodObject<{
37
118
  id: z.ZodString;
38
119
  name: z.ZodOptional<z.ZodString>;
@@ -45,18 +126,18 @@ export declare const userInviteSchema: z.ZodObject<{
45
126
  url: z.ZodOptional<z.ZodString>;
46
127
  width: z.ZodOptional<z.ZodNumber>;
47
128
  }, "strip", z.ZodTypeAny, {
129
+ mime_type?: string | undefined;
48
130
  file?: string | undefined;
49
131
  height?: number | undefined;
50
132
  media?: string | undefined;
51
- mime_type?: string | undefined;
52
133
  refresh_url?: string | undefined;
53
134
  url?: string | undefined;
54
135
  width?: number | undefined;
55
136
  }, {
137
+ mime_type?: string | undefined;
56
138
  file?: string | undefined;
57
139
  height?: number | undefined;
58
140
  media?: string | undefined;
59
- mime_type?: string | undefined;
60
141
  refresh_url?: string | undefined;
61
142
  url?: string | undefined;
62
143
  width?: number | undefined;
@@ -65,10 +146,10 @@ export declare const userInviteSchema: z.ZodObject<{
65
146
  id: string;
66
147
  name?: string | undefined;
67
148
  profile_picture?: {
149
+ mime_type?: string | undefined;
68
150
  file?: string | undefined;
69
151
  height?: number | undefined;
70
152
  media?: string | undefined;
71
- mime_type?: string | undefined;
72
153
  refresh_url?: string | undefined;
73
154
  url?: string | undefined;
74
155
  width?: number | undefined;
@@ -77,10 +158,10 @@ export declare const userInviteSchema: z.ZodObject<{
77
158
  id: string;
78
159
  name?: string | undefined;
79
160
  profile_picture?: {
161
+ mime_type?: string | undefined;
80
162
  file?: string | undefined;
81
163
  height?: number | undefined;
82
164
  media?: string | undefined;
83
- mime_type?: string | undefined;
84
165
  refresh_url?: string | undefined;
85
166
  url?: string | undefined;
86
167
  width?: number | undefined;
@@ -89,41 +170,40 @@ export declare const userInviteSchema: z.ZodObject<{
89
170
  }, "strip", z.ZodTypeAny, {
90
171
  id: string;
91
172
  key?: string | undefined;
92
- metadata?: Record<string, unknown> | undefined;
93
- created_at?: string | undefined;
94
173
  thread?: string | undefined;
174
+ created_at?: string | undefined;
95
175
  user?: {
96
176
  id: string;
97
177
  name?: string | undefined;
98
178
  profile_picture?: {
179
+ mime_type?: string | undefined;
99
180
  file?: string | undefined;
100
181
  height?: number | undefined;
101
182
  media?: string | undefined;
102
- mime_type?: string | undefined;
103
183
  refresh_url?: string | undefined;
104
184
  url?: string | undefined;
105
185
  width?: number | undefined;
106
186
  } | undefined;
107
187
  } | undefined;
188
+ metadata?: Record<string, unknown> | undefined;
108
189
  }, {
109
190
  id: string;
110
191
  key?: string | undefined;
111
- metadata?: Record<string, unknown> | undefined;
112
- created_at?: string | undefined;
113
192
  thread?: string | undefined;
193
+ created_at?: string | undefined;
114
194
  user?: {
115
195
  id: string;
116
196
  name?: string | undefined;
117
197
  profile_picture?: {
198
+ mime_type?: string | undefined;
118
199
  file?: string | undefined;
119
200
  height?: number | undefined;
120
201
  media?: string | undefined;
121
- mime_type?: string | undefined;
122
202
  refresh_url?: string | undefined;
123
203
  url?: string | undefined;
124
204
  width?: number | undefined;
125
205
  } | undefined;
126
206
  } | undefined;
207
+ metadata?: Record<string, unknown> | undefined;
127
208
  }>;
128
- export type UserInvite = z.infer<typeof userInviteSchema>;
129
209
  //# sourceMappingURL=users.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../src/types/users.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,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"}
1
+ {"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../src/types/users.ts"],"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;;IAEzJ,qGAAqG;;IAErG,oJAAoJ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE0B,CAAC;AAEjL,8IAA8I;AAC9I,MAAM,WAAW,UAAU;IACzB,+CAA+C;IAC/C,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,6BAA6B;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,2HAA2H;IAC3H,GAAG,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACzB,yGAAyG;IACzG,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC;IAC/C,4GAA4G;IAC5G,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,wCAAwC;IACxC,IAAI,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;CAClC;AAED,gDAAgD;AAChD,eAAO,MAAM,gBAAgB;IAC3B,+CAA+C;;IAE/C,6BAA6B;;IAE7B,2HAA2H;;IAE3H,yGAAyG;;IAEzG,4GAA4G;;IAE5G,wCAAwC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE4I,CAAC"}
@@ -1,25 +1,50 @@
1
1
  // Copyright (c) 2026 ArchAstro Inc. All Rights Reserved.
2
2
  // This file is auto-generated by @archastro/sdk-generator. Do not edit.
3
- // Content hash: 7015ee861551
3
+ // Content hash: 3adcfad79fb7
4
4
  import { z } from "zod";
5
5
  import { inviteCreatorSchema } from "./invites.js";
6
- /** API schema for a user. */
6
+ /** Runtime validator for {@link User}. */
7
7
  export const userSchema = z.object({
8
- alias: z.string().optional(), // User alias/handle
9
- email: z.string().optional(), // User email address
10
- id: z.string(), // User ID
11
- metadata: z.record(z.unknown()).optional(), // User metadata
12
- name: z.string().optional(), // User display name
13
- org: z.string().optional(), // Organization
14
- sandbox: z.string().optional(), // Sandbox
15
- });
16
- /** API schema for a user invite. */
8
+ /** Short handle or alias for the user. `null` if not set. */
9
+ alias: z.string().optional().describe("Short handle or alias for the user. `null` if not set."),
10
+ /** ID of the app this user (and their access token) is scoped to (`dap_...`). `null` if the user is not scoped to an app. */
11
+ app: z.string().optional().describe("ID of the app this user (and their access token) is scoped to (`dap_...`). `null` if the user is not scoped to an app."),
12
+ /** Display name of the user's app. `null` when the app association was not preloaded by the caller. */
13
+ app_name: z.string().optional().describe("Display name of the user's app. `null` when the app association was not preloaded by the caller."),
14
+ /** Email address of the user. */
15
+ email: z.string().optional().describe("Email address of the user."),
16
+ /** User ID (`usr_...`). */
17
+ id: z.string().describe("User ID (`usr_...`)."),
18
+ /** `true` if this account is an internal system user rather than a human. System users are created automatically by the platform. */
19
+ is_system_user: z.boolean().optional().describe("`true` if this account is an internal system user rather than a human. System users are created automatically by the platform."),
20
+ /** Arbitrary key-value metadata attached to the user. Defaults to an empty object. */
21
+ metadata: z.record(z.unknown()).optional().describe("Arbitrary key-value metadata attached to the user. Defaults to an empty object."),
22
+ /** Full display name of the user. `null` if the user has not set a name. */
23
+ name: z.string().optional().describe("Full display name of the user. `null` if the user has not set a name."),
24
+ /** ID of the organization this user belongs to (`org_...`). `null` if the user is not a member of any organization. */
25
+ org: z.string().optional().describe("ID of the organization this user belongs to (`org_...`). `null` if the user is not a member of any organization."),
26
+ /** Display name of the user's organization. `null` when the user is not in an org, or when the org association was not preloaded by the caller. */
27
+ org_name: z.string().optional().describe("Display name of the user's organization. `null` when the user is not in an org, or when the org association was not preloaded by the caller."),
28
+ /** Role of the user within their organization. One of `"admin"`, `"member"`, or `"viewer"`. `null` when the user is not a member of any organization. */
29
+ org_role: z.string().optional().describe("Role of the user within their organization. One of `\"admin\"`, `\"member\"`, or `\"viewer\"`. `null` when the user is not a member of any organization."),
30
+ /** ID of the sandbox environment this user is scoped to (`sbx_...`). `null` for production users. */
31
+ sandbox: z.string().optional().describe("ID of the sandbox environment this user is scoped to (`sbx_...`). `null` for production users."),
32
+ /** Display name of the user's sandbox environment. `null` for production users, or when the sandbox association was not preloaded by the caller. */
33
+ sandbox_name: z.string().optional().describe("Display name of the user's sandbox environment. `null` for production users, or when the sandbox association was not preloaded by the caller."),
34
+ }).describe("A platform user account. Represents a human or system actor that can own threads, belong to an organization, and interact with the API.");
35
+ /** Runtime validator for {@link UserInvite}. */
17
36
  export const userInviteSchema = z.object({
18
- created_at: z.string().optional(), // Creation timestamp
19
- id: z.string(), // Invite ID (uin_...)
20
- key: z.string().optional(), // Invite key
21
- metadata: z.record(z.unknown()).optional(), // Invite metadata
22
- thread: z.string().optional(), // Thread
23
- user: inviteCreatorSchema.optional(), // Invite creator
24
- });
37
+ /** When this invite was created (ISO 8601). */
38
+ created_at: z.string().optional().describe("When this invite was created (ISO 8601)."),
39
+ /** Invite ID (`uin_...`). */
40
+ id: z.string().describe("Invite ID (`uin_...`)."),
41
+ /** Secret bearer token used to accept this invite. Treat this value like a password — do not log or expose it publicly. */
42
+ key: z.string().optional().describe("Secret bearer token used to accept this invite. Treat this value like a password — do not log or expose it publicly."),
43
+ /** Arbitrary key-value metadata attached to the invite at creation time. Defaults to an empty object. */
44
+ metadata: z.record(z.unknown()).optional().describe("Arbitrary key-value metadata attached to the invite at creation time. Defaults to an empty object."),
45
+ /** ID of the thread this invite is scoped to (`thr_...`). `null` if the invite is not bound to a thread. */
46
+ thread: z.string().optional().describe("ID of the thread this invite is scoped to (`thr_...`). `null` if the invite is not bound to a thread."),
47
+ /** The user who created this invite. */
48
+ user: inviteCreatorSchema.optional().describe("The user who created this invite."),
49
+ }).describe("A shareable invite created by a user, optionally scoped to a thread. Recipients can use the invite key to join or start a conversation.");
25
50
  //# sourceMappingURL=users.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"users.js","sourceRoot":"","sources":["../../src/types/users.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,wEAAwE;AACxE,6BAA6B;AAE7B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAA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