@archastro/sdk 0.1.0 → 0.4.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 (155) hide show
  1. package/README.md +165 -0
  2. package/dist/client.d.ts +13 -13
  3. package/dist/client.d.ts.map +1 -1
  4. package/dist/client.js +27 -27
  5. package/dist/client.js.map +1 -1
  6. package/dist/index.d.ts +1 -1
  7. package/dist/index.d.ts.map +1 -1
  8. package/dist/index.js +2 -2
  9. package/dist/index.js.map +1 -1
  10. package/dist/runtime/http-client.d.ts +7 -0
  11. package/dist/runtime/http-client.d.ts.map +1 -1
  12. package/dist/runtime/http-client.js +55 -0
  13. package/dist/runtime/http-client.js.map +1 -1
  14. package/dist/types/agents.d.ts +662 -431
  15. package/dist/types/agents.d.ts.map +1 -1
  16. package/dist/types/agents.js +51 -37
  17. package/dist/types/agents.js.map +1 -1
  18. package/dist/types/ai.d.ts +49 -49
  19. package/dist/types/ai.js +6 -6
  20. package/dist/types/ai.js.map +1 -1
  21. package/dist/types/api.d.ts +169 -0
  22. package/dist/types/api.d.ts.map +1 -0
  23. package/dist/types/api.js +49 -0
  24. package/dist/types/api.js.map +1 -0
  25. package/dist/types/artifacts.d.ts +102 -22
  26. package/dist/types/artifacts.d.ts.map +1 -1
  27. package/dist/types/artifacts.js +4 -3
  28. package/dist/types/artifacts.js.map +1 -1
  29. package/dist/types/automations.d.ts +13 -13
  30. package/dist/types/automations.js +4 -4
  31. package/dist/types/automations.js.map +1 -1
  32. package/dist/types/chat.d.ts +258 -6
  33. package/dist/types/chat.d.ts.map +1 -1
  34. package/dist/types/chat.js +5 -3
  35. package/dist/types/chat.js.map +1 -1
  36. package/dist/types/common.d.ts +3596 -980
  37. package/dist/types/common.d.ts.map +1 -1
  38. package/dist/types/common.js +281 -166
  39. package/dist/types/common.js.map +1 -1
  40. package/dist/types/config.d.ts +30 -30
  41. package/dist/types/config.js +6 -6
  42. package/dist/types/config.js.map +1 -1
  43. package/dist/types/device.d.ts +26 -0
  44. package/dist/types/device.d.ts.map +1 -0
  45. package/dist/types/device.js +14 -0
  46. package/dist/types/device.js.map +1 -0
  47. package/dist/types/index.d.ts +0 -4
  48. package/dist/types/index.d.ts.map +1 -1
  49. package/dist/types/index.js +1 -5
  50. package/dist/types/index.js.map +1 -1
  51. package/dist/types/me.d.ts +176 -20
  52. package/dist/types/me.d.ts.map +1 -1
  53. package/dist/types/me.js +4 -3
  54. package/dist/types/me.js.map +1 -1
  55. package/dist/types/members.d.ts +3 -3
  56. package/dist/types/members.js +2 -2
  57. package/dist/types/members.js.map +1 -1
  58. package/dist/types/messages.d.ts +457 -49
  59. package/dist/types/messages.d.ts.map +1 -1
  60. package/dist/types/messages.js +19 -18
  61. package/dist/types/messages.js.map +1 -1
  62. package/dist/types/oauth.d.ts +206 -0
  63. package/dist/types/oauth.d.ts.map +1 -0
  64. package/dist/types/oauth.js +51 -0
  65. package/dist/types/oauth.js.map +1 -0
  66. package/dist/types/orgs.d.ts +6 -6
  67. package/dist/types/picture.d.ts +2 -2
  68. package/dist/types/profile.d.ts +2 -2
  69. package/dist/types/reactions.d.ts +3 -3
  70. package/dist/types/reactions.js +2 -2
  71. package/dist/types/reactions.js.map +1 -1
  72. package/dist/types/schedules.d.ts +5 -5
  73. package/dist/types/schedules.js +2 -2
  74. package/dist/types/schedules.js.map +1 -1
  75. package/dist/types/system.d.ts +2 -2
  76. package/dist/types/teams.d.ts +750 -70
  77. package/dist/types/teams.d.ts.map +1 -1
  78. package/dist/types/teams.js +13 -10
  79. package/dist/types/teams.js.map +1 -1
  80. package/dist/types/threads.d.ts +1158 -194
  81. package/dist/types/threads.d.ts.map +1 -1
  82. package/dist/types/threads.js +26 -26
  83. package/dist/types/threads.js.map +1 -1
  84. package/dist/types/users.d.ts +53 -13
  85. package/dist/types/users.d.ts.map +1 -1
  86. package/dist/types/users.js +4 -4
  87. package/dist/types/users.js.map +1 -1
  88. package/dist/v1/resources/agent_installations.d.ts +4 -4
  89. package/dist/v1/resources/agent_installations.d.ts.map +1 -1
  90. package/dist/v1/resources/agent_installations.js +3 -3
  91. package/dist/v1/resources/agent_installations.js.map +1 -1
  92. package/dist/v1/resources/agent_routines.d.ts +9 -14
  93. package/dist/v1/resources/agent_routines.d.ts.map +1 -1
  94. package/dist/v1/resources/agent_routines.js +11 -19
  95. package/dist/v1/resources/agent_routines.js.map +1 -1
  96. package/dist/v1/resources/agent_sessions.d.ts +1 -0
  97. package/dist/v1/resources/agent_sessions.d.ts.map +1 -1
  98. package/dist/v1/resources/agent_sessions.js +1 -1
  99. package/dist/v1/resources/agent_sessions.js.map +1 -1
  100. package/dist/v1/resources/agent_tools.d.ts +1 -6
  101. package/dist/v1/resources/agent_tools.d.ts.map +1 -1
  102. package/dist/v1/resources/agent_tools.js +4 -12
  103. package/dist/v1/resources/agent_tools.js.map +1 -1
  104. package/dist/v1/resources/agents.d.ts +24 -26
  105. package/dist/v1/resources/agents.d.ts.map +1 -1
  106. package/dist/v1/resources/agents.js +25 -31
  107. package/dist/v1/resources/agents.js.map +1 -1
  108. package/dist/v1/resources/ai.d.ts +5 -15
  109. package/dist/v1/resources/ai.d.ts.map +1 -1
  110. package/dist/v1/resources/ai.js +6 -22
  111. package/dist/v1/resources/ai.js.map +1 -1
  112. package/dist/v1/resources/api.d.ts +1026 -0
  113. package/dist/v1/resources/api.d.ts.map +1 -0
  114. package/dist/v1/resources/api.js +944 -0
  115. package/dist/v1/resources/api.js.map +1 -0
  116. package/dist/v1/resources/artifacts.d.ts +7 -9
  117. package/dist/v1/resources/artifacts.d.ts.map +1 -1
  118. package/dist/v1/resources/artifacts.js +5 -13
  119. package/dist/v1/resources/artifacts.js.map +1 -1
  120. package/dist/v1/resources/config.d.ts +41 -53
  121. package/dist/v1/resources/config.d.ts.map +1 -1
  122. package/dist/v1/resources/config.js +18 -42
  123. package/dist/v1/resources/config.js.map +1 -1
  124. package/dist/v1/resources/custom_objects.d.ts +2 -2
  125. package/dist/v1/resources/custom_objects.d.ts.map +1 -1
  126. package/dist/v1/resources/custom_objects.js +1 -1
  127. package/dist/v1/resources/index.d.ts +13 -13
  128. package/dist/v1/resources/index.d.ts.map +1 -1
  129. package/dist/v1/resources/index.js +14 -14
  130. package/dist/v1/resources/index.js.map +1 -1
  131. package/dist/v1/resources/oauth.d.ts +25 -0
  132. package/dist/v1/resources/oauth.d.ts.map +1 -0
  133. package/dist/v1/resources/oauth.js +41 -0
  134. package/dist/v1/resources/oauth.js.map +1 -0
  135. package/dist/v1/resources/teams.d.ts +212 -55
  136. package/dist/v1/resources/teams.d.ts.map +1 -1
  137. package/dist/v1/resources/teams.js +18 -26
  138. package/dist/v1/resources/teams.js.map +1 -1
  139. package/dist/v1/resources/thread_messages.d.ts +5 -11
  140. package/dist/v1/resources/thread_messages.d.ts.map +1 -1
  141. package/dist/v1/resources/thread_messages.js +4 -12
  142. package/dist/v1/resources/thread_messages.js.map +1 -1
  143. package/dist/v1/resources/threads.d.ts +131 -65
  144. package/dist/v1/resources/threads.d.ts.map +1 -1
  145. package/dist/v1/resources/threads.js +20 -68
  146. package/dist/v1/resources/threads.js.map +1 -1
  147. package/dist/v1/resources/users.d.ts +144 -45
  148. package/dist/v1/resources/users.d.ts.map +1 -1
  149. package/dist/v1/resources/users.js +10 -34
  150. package/dist/v1/resources/users.js.map +1 -1
  151. package/dist/v1.d.ts +13 -13
  152. package/dist/v1.d.ts.map +1 -1
  153. package/dist/v1.js +27 -27
  154. package/dist/v1.js.map +1 -1
  155. package/package.json +1 -1
@@ -1,19 +1,271 @@
1
1
  import { z } from "zod";
2
2
  /** API schema for a chat member (user or agent). */
3
3
  export declare const chatMemberSchema: z.ZodObject<{
4
- agent: z.ZodOptional<z.ZodUnknown>;
4
+ agent: z.ZodOptional<z.ZodObject<{
5
+ acl: z.ZodOptional<z.ZodObject<{
6
+ add: z.ZodOptional<z.ZodArray<z.ZodObject<{
7
+ actions: z.ZodArray<z.ZodString, "many">;
8
+ principal: z.ZodOptional<z.ZodString>;
9
+ principal_type: z.ZodString;
10
+ }, "strip", z.ZodTypeAny, {
11
+ actions: string[];
12
+ principal_type: string;
13
+ principal?: string | undefined;
14
+ }, {
15
+ actions: string[];
16
+ principal_type: string;
17
+ principal?: string | undefined;
18
+ }>, "many">>;
19
+ grants: z.ZodOptional<z.ZodArray<z.ZodObject<{
20
+ actions: z.ZodArray<z.ZodString, "many">;
21
+ principal: z.ZodOptional<z.ZodString>;
22
+ principal_type: z.ZodString;
23
+ }, "strip", z.ZodTypeAny, {
24
+ actions: string[];
25
+ principal_type: string;
26
+ principal?: string | undefined;
27
+ }, {
28
+ actions: string[];
29
+ principal_type: string;
30
+ principal?: string | undefined;
31
+ }>, "many">>;
32
+ remove: z.ZodOptional<z.ZodArray<z.ZodObject<{
33
+ principal: z.ZodOptional<z.ZodString>;
34
+ principal_type: z.ZodString;
35
+ }, "strip", z.ZodTypeAny, {
36
+ principal_type: string;
37
+ principal?: string | undefined;
38
+ }, {
39
+ principal_type: string;
40
+ principal?: string | undefined;
41
+ }>, "many">>;
42
+ }, "strip", z.ZodTypeAny, {
43
+ add?: {
44
+ actions: string[];
45
+ principal_type: string;
46
+ principal?: string | undefined;
47
+ }[] | undefined;
48
+ grants?: {
49
+ actions: string[];
50
+ principal_type: string;
51
+ principal?: string | undefined;
52
+ }[] | undefined;
53
+ remove?: {
54
+ principal_type: string;
55
+ principal?: string | undefined;
56
+ }[] | undefined;
57
+ }, {
58
+ add?: {
59
+ actions: string[];
60
+ principal_type: string;
61
+ principal?: string | undefined;
62
+ }[] | undefined;
63
+ grants?: {
64
+ actions: string[];
65
+ principal_type: string;
66
+ principal?: string | undefined;
67
+ }[] | undefined;
68
+ remove?: {
69
+ principal_type: string;
70
+ principal?: string | undefined;
71
+ }[] | undefined;
72
+ }>>;
73
+ app: z.ZodOptional<z.ZodString>;
74
+ created_at: z.ZodOptional<z.ZodString>;
75
+ default_model: z.ZodOptional<z.ZodString>;
76
+ email: z.ZodOptional<z.ZodString>;
77
+ id: z.ZodString;
78
+ identity: z.ZodOptional<z.ZodString>;
79
+ lookup_key: z.ZodOptional<z.ZodString>;
80
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
81
+ name: z.ZodOptional<z.ZodString>;
82
+ org: z.ZodOptional<z.ZodString>;
83
+ phone_number: z.ZodOptional<z.ZodString>;
84
+ sandbox: z.ZodOptional<z.ZodString>;
85
+ team: z.ZodOptional<z.ZodString>;
86
+ updated_at: z.ZodOptional<z.ZodString>;
87
+ user: z.ZodOptional<z.ZodString>;
88
+ }, "strip", z.ZodTypeAny, {
89
+ id: string;
90
+ email?: string | undefined;
91
+ metadata?: Record<string, unknown> | undefined;
92
+ name?: string | undefined;
93
+ org?: string | undefined;
94
+ sandbox?: string | undefined;
95
+ created_at?: string | undefined;
96
+ user?: string | undefined;
97
+ updated_at?: string | undefined;
98
+ team?: string | undefined;
99
+ lookup_key?: string | undefined;
100
+ acl?: {
101
+ add?: {
102
+ actions: string[];
103
+ principal_type: string;
104
+ principal?: string | undefined;
105
+ }[] | undefined;
106
+ grants?: {
107
+ actions: string[];
108
+ principal_type: string;
109
+ principal?: string | undefined;
110
+ }[] | undefined;
111
+ remove?: {
112
+ principal_type: string;
113
+ principal?: string | undefined;
114
+ }[] | undefined;
115
+ } | undefined;
116
+ app?: string | undefined;
117
+ default_model?: string | undefined;
118
+ identity?: string | undefined;
119
+ phone_number?: string | undefined;
120
+ }, {
121
+ id: string;
122
+ email?: string | undefined;
123
+ metadata?: Record<string, unknown> | undefined;
124
+ name?: string | undefined;
125
+ org?: string | undefined;
126
+ sandbox?: string | undefined;
127
+ created_at?: string | undefined;
128
+ user?: string | undefined;
129
+ updated_at?: string | undefined;
130
+ team?: string | undefined;
131
+ lookup_key?: string | undefined;
132
+ acl?: {
133
+ add?: {
134
+ actions: string[];
135
+ principal_type: string;
136
+ principal?: string | undefined;
137
+ }[] | undefined;
138
+ grants?: {
139
+ actions: string[];
140
+ principal_type: string;
141
+ principal?: string | undefined;
142
+ }[] | undefined;
143
+ remove?: {
144
+ principal_type: string;
145
+ principal?: string | undefined;
146
+ }[] | undefined;
147
+ } | undefined;
148
+ app?: string | undefined;
149
+ default_model?: string | undefined;
150
+ identity?: string | undefined;
151
+ phone_number?: string | undefined;
152
+ }>>;
5
153
  membership_type: z.ZodOptional<z.ZodString>;
6
154
  type: z.ZodString;
7
- user: z.ZodOptional<z.ZodUnknown>;
155
+ user: z.ZodOptional<z.ZodObject<{
156
+ alias: z.ZodOptional<z.ZodString>;
157
+ email: z.ZodOptional<z.ZodString>;
158
+ id: z.ZodString;
159
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
160
+ name: z.ZodOptional<z.ZodString>;
161
+ org: z.ZodOptional<z.ZodString>;
162
+ sandbox: z.ZodOptional<z.ZodString>;
163
+ }, "strip", z.ZodTypeAny, {
164
+ id: string;
165
+ email?: string | undefined;
166
+ alias?: string | undefined;
167
+ metadata?: Record<string, unknown> | undefined;
168
+ name?: string | undefined;
169
+ org?: string | undefined;
170
+ sandbox?: string | undefined;
171
+ }, {
172
+ id: string;
173
+ email?: string | undefined;
174
+ alias?: string | undefined;
175
+ metadata?: Record<string, unknown> | undefined;
176
+ name?: string | undefined;
177
+ org?: string | undefined;
178
+ sandbox?: string | undefined;
179
+ }>>;
8
180
  }, "strip", z.ZodTypeAny, {
9
181
  type: string;
10
- agent?: unknown;
11
- user?: unknown;
182
+ user?: {
183
+ id: string;
184
+ email?: string | undefined;
185
+ alias?: string | undefined;
186
+ metadata?: Record<string, unknown> | undefined;
187
+ name?: string | undefined;
188
+ org?: string | undefined;
189
+ sandbox?: string | undefined;
190
+ } | undefined;
191
+ agent?: {
192
+ id: string;
193
+ email?: string | undefined;
194
+ metadata?: Record<string, unknown> | undefined;
195
+ name?: string | undefined;
196
+ org?: string | undefined;
197
+ sandbox?: string | undefined;
198
+ created_at?: string | undefined;
199
+ user?: string | undefined;
200
+ updated_at?: string | undefined;
201
+ team?: string | undefined;
202
+ lookup_key?: string | undefined;
203
+ acl?: {
204
+ add?: {
205
+ actions: string[];
206
+ principal_type: string;
207
+ principal?: string | undefined;
208
+ }[] | undefined;
209
+ grants?: {
210
+ actions: string[];
211
+ principal_type: string;
212
+ principal?: string | undefined;
213
+ }[] | undefined;
214
+ remove?: {
215
+ principal_type: string;
216
+ principal?: string | undefined;
217
+ }[] | undefined;
218
+ } | undefined;
219
+ app?: string | undefined;
220
+ default_model?: string | undefined;
221
+ identity?: string | undefined;
222
+ phone_number?: string | undefined;
223
+ } | undefined;
12
224
  membership_type?: string | undefined;
13
225
  }, {
14
226
  type: string;
15
- agent?: unknown;
16
- user?: unknown;
227
+ user?: {
228
+ id: string;
229
+ email?: string | undefined;
230
+ alias?: string | undefined;
231
+ metadata?: Record<string, unknown> | undefined;
232
+ name?: string | undefined;
233
+ org?: string | undefined;
234
+ sandbox?: string | undefined;
235
+ } | undefined;
236
+ agent?: {
237
+ id: string;
238
+ email?: string | undefined;
239
+ metadata?: Record<string, unknown> | undefined;
240
+ name?: string | undefined;
241
+ org?: string | undefined;
242
+ sandbox?: string | undefined;
243
+ created_at?: string | undefined;
244
+ user?: string | undefined;
245
+ updated_at?: string | undefined;
246
+ team?: string | undefined;
247
+ lookup_key?: string | undefined;
248
+ acl?: {
249
+ add?: {
250
+ actions: string[];
251
+ principal_type: string;
252
+ principal?: string | undefined;
253
+ }[] | undefined;
254
+ grants?: {
255
+ actions: string[];
256
+ principal_type: string;
257
+ principal?: string | undefined;
258
+ }[] | undefined;
259
+ remove?: {
260
+ principal_type: string;
261
+ principal?: string | undefined;
262
+ }[] | undefined;
263
+ } | undefined;
264
+ app?: string | undefined;
265
+ default_model?: string | undefined;
266
+ identity?: string | undefined;
267
+ phone_number?: string | undefined;
268
+ } | undefined;
17
269
  membership_type?: string | undefined;
18
270
  }>;
19
271
  export type ChatMember = z.infer<typeof chatMemberSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../../src/types/chat.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,oDAAoD;AACpD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;EAK3B,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
1
+ {"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../../src/types/chat.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,oDAAoD;AACpD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAK3B,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
@@ -1,12 +1,14 @@
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: d4ead889ced7
3
+ // Content hash: 0f1c95d2855c
4
4
  import { z } from "zod";
5
+ import { agentSchema } from "./agents.js";
6
+ import { userSchema } from "./users.js";
5
7
  /** API schema for a chat member (user or agent). */
6
8
  export const chatMemberSchema = z.object({
7
- agent: z.unknown().optional(), // Agent object (for agent members)
9
+ agent: agentSchema.optional(), // Agent object (for agent members)
8
10
  membership_type: z.string().optional(), // Membership type
9
11
  type: z.string(), // Member type (user or agent)
10
- user: z.unknown().optional(), // User object (for user members)
12
+ user: userSchema.optional(), // User object (for user members)
11
13
  });
12
14
  //# sourceMappingURL=chat.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"chat.js","sourceRoot":"","sources":["../../src/types/chat.ts"],"names":[],"mappings":"AAAA,yDAAyD;AACzD,wEAAwE;AACxE,6BAA6B;AAE7B,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,oDAAoD;AACpD,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IACvC,KAAK,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,EAAE,mCAAmC;IAClE,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,EAAE,kBAAkB;IAC1D,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,8BAA8B;IAChD,IAAI,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,EAAE,iCAAiC;CAChE,CAAC,CAAC"}
1
+ {"version":3,"file":"chat.js","sourceRoot":"","sources":["../../src/types/chat.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,UAAU,EAAE,MAAM,YAAY,CAAC;AAExC,oDAAoD;AACpD,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IACvC,KAAK,EAAE,WAAW,CAAC,QAAQ,EAAE,EAAE,mCAAmC;IAClE,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,EAAE,kBAAkB;IAC1D,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,8BAA8B;IAChD,IAAI,EAAE,UAAU,CAAC,QAAQ,EAAE,EAAE,iCAAiC;CAC/D,CAAC,CAAC"}