@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,4 +1,16 @@
1
1
  import { z } from "zod";
2
+ /** Schema for thread settings response.
3
+
4
+ Used by thread settings show/update endpoints.
5
+ */
6
+ export declare const threadSettingsSchema: z.ZodObject<{
7
+ agent_enabled: z.ZodOptional<z.ZodBoolean>;
8
+ }, "strip", z.ZodTypeAny, {
9
+ agent_enabled?: boolean | undefined;
10
+ }, {
11
+ agent_enabled?: boolean | undefined;
12
+ }>;
13
+ export type ThreadSettings = z.infer<typeof threadSettingsSchema>;
2
14
  /** API schema for a chat thread. */
3
15
  export declare const threadSchema: z.ZodObject<{
4
16
  agent_user: z.ZodOptional<z.ZodString>;
@@ -7,7 +19,7 @@ export declare const threadSchema: z.ZodObject<{
7
19
  alias: z.ZodOptional<z.ZodString>;
8
20
  email: z.ZodOptional<z.ZodString>;
9
21
  id: z.ZodString;
10
- metadata: z.ZodOptional<z.ZodUnknown>;
22
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
11
23
  name: z.ZodOptional<z.ZodString>;
12
24
  org: z.ZodOptional<z.ZodString>;
13
25
  sandbox: z.ZodOptional<z.ZodString>;
@@ -15,18 +27,18 @@ export declare const threadSchema: z.ZodObject<{
15
27
  id: string;
16
28
  email?: string | undefined;
17
29
  alias?: string | undefined;
18
- metadata?: unknown;
30
+ metadata?: Record<string, unknown> | undefined;
31
+ name?: string | undefined;
19
32
  org?: string | undefined;
20
33
  sandbox?: string | undefined;
21
- name?: string | undefined;
22
34
  }, {
23
35
  id: string;
24
36
  email?: string | undefined;
25
37
  alias?: string | undefined;
26
- metadata?: unknown;
38
+ metadata?: Record<string, unknown> | undefined;
39
+ name?: string | undefined;
27
40
  org?: string | undefined;
28
41
  sandbox?: string | undefined;
29
- name?: string | undefined;
30
42
  }>>;
31
43
  description: z.ZodOptional<z.ZodString>;
32
44
  id: z.ZodString;
@@ -36,12 +48,280 @@ export declare const threadSchema: z.ZodObject<{
36
48
  is_unlisted: z.ZodOptional<z.ZodBoolean>;
37
49
  key: z.ZodOptional<z.ZodString>;
38
50
  last_activity: z.ZodOptional<z.ZodString>;
39
- metadata: z.ZodOptional<z.ZodUnknown>;
51
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
40
52
  org: z.ZodOptional<z.ZodString>;
41
53
  parent_message: z.ZodOptional<z.ZodObject<{
42
- actors: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
54
+ actors: z.ZodOptional<z.ZodArray<z.ZodObject<{
55
+ alias: z.ZodOptional<z.ZodString>;
56
+ id: z.ZodOptional<z.ZodString>;
57
+ name: z.ZodOptional<z.ZodString>;
58
+ profile_picture: z.ZodOptional<z.ZodObject<{
59
+ file: z.ZodOptional<z.ZodString>;
60
+ height: z.ZodOptional<z.ZodNumber>;
61
+ media: z.ZodOptional<z.ZodString>;
62
+ mime_type: z.ZodOptional<z.ZodString>;
63
+ refresh_url: z.ZodOptional<z.ZodString>;
64
+ url: z.ZodOptional<z.ZodString>;
65
+ width: z.ZodOptional<z.ZodNumber>;
66
+ }, "strip", z.ZodTypeAny, {
67
+ file?: string | undefined;
68
+ height?: number | undefined;
69
+ media?: string | undefined;
70
+ mime_type?: string | undefined;
71
+ refresh_url?: string | undefined;
72
+ url?: string | undefined;
73
+ width?: number | undefined;
74
+ }, {
75
+ file?: string | undefined;
76
+ height?: number | undefined;
77
+ media?: string | undefined;
78
+ mime_type?: string | undefined;
79
+ refresh_url?: string | undefined;
80
+ url?: string | undefined;
81
+ width?: number | undefined;
82
+ }>>;
83
+ }, "strip", z.ZodTypeAny, {
84
+ alias?: string | undefined;
85
+ id?: string | undefined;
86
+ name?: string | undefined;
87
+ profile_picture?: {
88
+ file?: string | undefined;
89
+ height?: number | undefined;
90
+ media?: string | undefined;
91
+ mime_type?: string | undefined;
92
+ refresh_url?: string | undefined;
93
+ url?: string | undefined;
94
+ width?: number | undefined;
95
+ } | undefined;
96
+ }, {
97
+ alias?: string | undefined;
98
+ id?: string | undefined;
99
+ name?: string | undefined;
100
+ profile_picture?: {
101
+ file?: string | undefined;
102
+ height?: number | undefined;
103
+ media?: string | undefined;
104
+ mime_type?: string | undefined;
105
+ refresh_url?: string | undefined;
106
+ url?: string | undefined;
107
+ width?: number | undefined;
108
+ } | undefined;
109
+ }>, "many">>;
43
110
  agent: z.ZodOptional<z.ZodString>;
44
- attachments: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
111
+ attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
112
+ content_type: z.ZodOptional<z.ZodString>;
113
+ description: z.ZodOptional<z.ZodString>;
114
+ filename: z.ZodOptional<z.ZodString>;
115
+ height: z.ZodOptional<z.ZodNumber>;
116
+ id: z.ZodString;
117
+ image_height: z.ZodOptional<z.ZodNumber>;
118
+ image_source: z.ZodOptional<z.ZodObject<{
119
+ file: z.ZodOptional<z.ZodString>;
120
+ height: z.ZodOptional<z.ZodNumber>;
121
+ media: z.ZodOptional<z.ZodString>;
122
+ mime_type: z.ZodOptional<z.ZodString>;
123
+ refresh_url: z.ZodOptional<z.ZodString>;
124
+ url: z.ZodOptional<z.ZodString>;
125
+ width: z.ZodOptional<z.ZodNumber>;
126
+ }, "strip", z.ZodTypeAny, {
127
+ file?: string | undefined;
128
+ height?: number | undefined;
129
+ media?: string | undefined;
130
+ mime_type?: string | undefined;
131
+ refresh_url?: string | undefined;
132
+ url?: string | undefined;
133
+ width?: number | undefined;
134
+ }, {
135
+ file?: string | undefined;
136
+ height?: number | undefined;
137
+ media?: string | undefined;
138
+ mime_type?: string | undefined;
139
+ refresh_url?: string | undefined;
140
+ url?: string | undefined;
141
+ width?: number | undefined;
142
+ }>>;
143
+ image_url: z.ZodOptional<z.ZodString>;
144
+ image_width: z.ZodOptional<z.ZodNumber>;
145
+ media_type: z.ZodOptional<z.ZodString>;
146
+ name: z.ZodOptional<z.ZodString>;
147
+ object: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
148
+ title: z.ZodOptional<z.ZodString>;
149
+ type: z.ZodString;
150
+ url: z.ZodOptional<z.ZodString>;
151
+ variants: z.ZodOptional<z.ZodArray<z.ZodObject<{
152
+ content_type: z.ZodOptional<z.ZodString>;
153
+ created_at: z.ZodOptional<z.ZodString>;
154
+ file: z.ZodOptional<z.ZodString>;
155
+ filename: z.ZodOptional<z.ZodString>;
156
+ height: z.ZodOptional<z.ZodNumber>;
157
+ id: z.ZodString;
158
+ image_source: z.ZodOptional<z.ZodObject<{
159
+ file: z.ZodOptional<z.ZodString>;
160
+ height: z.ZodOptional<z.ZodNumber>;
161
+ media: z.ZodOptional<z.ZodString>;
162
+ mime_type: z.ZodOptional<z.ZodString>;
163
+ refresh_url: z.ZodOptional<z.ZodString>;
164
+ url: z.ZodOptional<z.ZodString>;
165
+ width: z.ZodOptional<z.ZodNumber>;
166
+ }, "strip", z.ZodTypeAny, {
167
+ file?: string | undefined;
168
+ height?: number | undefined;
169
+ media?: string | undefined;
170
+ mime_type?: string | undefined;
171
+ refresh_url?: string | undefined;
172
+ url?: string | undefined;
173
+ width?: number | undefined;
174
+ }, {
175
+ file?: string | undefined;
176
+ height?: number | undefined;
177
+ media?: string | undefined;
178
+ mime_type?: string | undefined;
179
+ refresh_url?: string | undefined;
180
+ url?: string | undefined;
181
+ width?: number | undefined;
182
+ }>>;
183
+ updated_at: z.ZodOptional<z.ZodString>;
184
+ url: z.ZodOptional<z.ZodString>;
185
+ variant_key: z.ZodOptional<z.ZodString>;
186
+ width: z.ZodOptional<z.ZodNumber>;
187
+ }, "strip", z.ZodTypeAny, {
188
+ id: string;
189
+ file?: string | undefined;
190
+ height?: number | undefined;
191
+ url?: string | undefined;
192
+ width?: number | undefined;
193
+ created_at?: string | undefined;
194
+ updated_at?: string | undefined;
195
+ content_type?: string | undefined;
196
+ filename?: string | undefined;
197
+ image_source?: {
198
+ file?: string | undefined;
199
+ height?: number | undefined;
200
+ media?: string | undefined;
201
+ mime_type?: string | undefined;
202
+ refresh_url?: string | undefined;
203
+ url?: string | undefined;
204
+ width?: number | undefined;
205
+ } | undefined;
206
+ variant_key?: string | undefined;
207
+ }, {
208
+ id: string;
209
+ file?: string | undefined;
210
+ height?: number | undefined;
211
+ url?: string | undefined;
212
+ width?: number | undefined;
213
+ created_at?: string | undefined;
214
+ updated_at?: string | undefined;
215
+ content_type?: string | undefined;
216
+ filename?: string | undefined;
217
+ image_source?: {
218
+ file?: string | undefined;
219
+ height?: number | undefined;
220
+ media?: string | undefined;
221
+ mime_type?: string | undefined;
222
+ refresh_url?: string | undefined;
223
+ url?: string | undefined;
224
+ width?: number | undefined;
225
+ } | undefined;
226
+ variant_key?: string | undefined;
227
+ }>, "many">>;
228
+ version: z.ZodOptional<z.ZodNumber>;
229
+ width: z.ZodOptional<z.ZodNumber>;
230
+ }, "strip", z.ZodTypeAny, {
231
+ type: string;
232
+ id: string;
233
+ object?: Record<string, unknown> | undefined;
234
+ height?: number | undefined;
235
+ url?: string | undefined;
236
+ width?: number | undefined;
237
+ name?: string | undefined;
238
+ content_type?: string | undefined;
239
+ filename?: string | undefined;
240
+ image_source?: {
241
+ file?: string | undefined;
242
+ height?: number | undefined;
243
+ media?: string | undefined;
244
+ mime_type?: string | undefined;
245
+ refresh_url?: string | undefined;
246
+ url?: string | undefined;
247
+ width?: number | undefined;
248
+ } | undefined;
249
+ description?: string | undefined;
250
+ image_height?: number | undefined;
251
+ image_url?: string | undefined;
252
+ image_width?: number | undefined;
253
+ media_type?: string | undefined;
254
+ title?: string | undefined;
255
+ variants?: {
256
+ id: string;
257
+ file?: string | undefined;
258
+ height?: number | undefined;
259
+ url?: string | undefined;
260
+ width?: number | undefined;
261
+ created_at?: string | undefined;
262
+ updated_at?: string | undefined;
263
+ content_type?: string | undefined;
264
+ filename?: string | undefined;
265
+ image_source?: {
266
+ file?: string | undefined;
267
+ height?: number | undefined;
268
+ media?: string | undefined;
269
+ mime_type?: string | undefined;
270
+ refresh_url?: string | undefined;
271
+ url?: string | undefined;
272
+ width?: number | undefined;
273
+ } | undefined;
274
+ variant_key?: string | undefined;
275
+ }[] | undefined;
276
+ version?: number | undefined;
277
+ }, {
278
+ type: string;
279
+ id: string;
280
+ object?: Record<string, unknown> | undefined;
281
+ height?: number | undefined;
282
+ url?: string | undefined;
283
+ width?: number | undefined;
284
+ name?: string | undefined;
285
+ content_type?: string | undefined;
286
+ filename?: string | undefined;
287
+ image_source?: {
288
+ file?: string | undefined;
289
+ height?: number | undefined;
290
+ media?: string | undefined;
291
+ mime_type?: string | undefined;
292
+ refresh_url?: string | undefined;
293
+ url?: string | undefined;
294
+ width?: number | undefined;
295
+ } | undefined;
296
+ description?: string | undefined;
297
+ image_height?: number | undefined;
298
+ image_url?: string | undefined;
299
+ image_width?: number | undefined;
300
+ media_type?: string | undefined;
301
+ title?: string | undefined;
302
+ variants?: {
303
+ id: string;
304
+ file?: string | undefined;
305
+ height?: number | undefined;
306
+ url?: string | undefined;
307
+ width?: number | undefined;
308
+ created_at?: string | undefined;
309
+ updated_at?: string | undefined;
310
+ content_type?: string | undefined;
311
+ filename?: string | undefined;
312
+ image_source?: {
313
+ file?: string | undefined;
314
+ height?: number | undefined;
315
+ media?: string | undefined;
316
+ mime_type?: string | undefined;
317
+ refresh_url?: string | undefined;
318
+ url?: string | undefined;
319
+ width?: number | undefined;
320
+ } | undefined;
321
+ variant_key?: string | undefined;
322
+ }[] | undefined;
323
+ version?: number | undefined;
324
+ }>, "many">>;
45
325
  branched_thread: z.ZodOptional<z.ZodString>;
46
326
  content: z.ZodOptional<z.ZodString>;
47
327
  created_at: z.ZodOptional<z.ZodString>;
@@ -49,77 +329,395 @@ export declare const threadSchema: z.ZodObject<{
49
329
  id: z.ZodString;
50
330
  idempotency_key: z.ZodOptional<z.ZodString>;
51
331
  legacy_agent: z.ZodOptional<z.ZodString>;
52
- metadata: z.ZodOptional<z.ZodUnknown>;
332
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
53
333
  org: z.ZodOptional<z.ZodString>;
54
- reactions: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
334
+ reactions: z.ZodOptional<z.ZodArray<z.ZodObject<{
335
+ payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
336
+ type: z.ZodString;
337
+ user: z.ZodOptional<z.ZodString>;
338
+ }, "strip", z.ZodTypeAny, {
339
+ type: string;
340
+ user?: string | undefined;
341
+ payload?: Record<string, unknown> | undefined;
342
+ }, {
343
+ type: string;
344
+ user?: string | undefined;
345
+ payload?: Record<string, unknown> | undefined;
346
+ }>, "many">>;
55
347
  rendering_mode: z.ZodOptional<z.ZodString>;
56
- replies: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
348
+ replies: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
57
349
  replies_after_cursor: z.ZodOptional<z.ZodString>;
58
350
  replies_before_cursor: z.ZodOptional<z.ZodString>;
59
351
  reply_count: z.ZodOptional<z.ZodNumber>;
60
- reply_to: z.ZodOptional<z.ZodUnknown>;
352
+ reply_to: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
61
353
  sandbox: z.ZodOptional<z.ZodString>;
62
354
  team: z.ZodOptional<z.ZodString>;
63
355
  thread: z.ZodOptional<z.ZodString>;
64
356
  user: z.ZodOptional<z.ZodString>;
65
357
  }, "strip", z.ZodTypeAny, {
66
358
  id: string;
67
- actors?: unknown[] | undefined;
68
- agent?: string | undefined;
69
- attachments?: unknown[] | undefined;
70
- branched_thread?: string | undefined;
71
359
  content?: string | undefined;
360
+ metadata?: Record<string, unknown> | undefined;
361
+ org?: string | undefined;
362
+ sandbox?: string | undefined;
72
363
  created_at?: string | undefined;
364
+ thread?: string | undefined;
365
+ user?: string | undefined;
366
+ actors?: {
367
+ alias?: string | undefined;
368
+ id?: string | undefined;
369
+ name?: string | undefined;
370
+ profile_picture?: {
371
+ file?: string | undefined;
372
+ height?: number | undefined;
373
+ media?: string | undefined;
374
+ mime_type?: string | undefined;
375
+ refresh_url?: string | undefined;
376
+ url?: string | undefined;
377
+ width?: number | undefined;
378
+ } | undefined;
379
+ }[] | undefined;
380
+ agent?: string | undefined;
381
+ attachments?: {
382
+ type: string;
383
+ id: string;
384
+ object?: Record<string, unknown> | undefined;
385
+ height?: number | undefined;
386
+ url?: string | undefined;
387
+ width?: number | undefined;
388
+ name?: string | undefined;
389
+ content_type?: string | undefined;
390
+ filename?: string | undefined;
391
+ image_source?: {
392
+ file?: string | undefined;
393
+ height?: number | undefined;
394
+ media?: string | undefined;
395
+ mime_type?: string | undefined;
396
+ refresh_url?: string | undefined;
397
+ url?: string | undefined;
398
+ width?: number | undefined;
399
+ } | undefined;
400
+ description?: string | undefined;
401
+ image_height?: number | undefined;
402
+ image_url?: string | undefined;
403
+ image_width?: number | undefined;
404
+ media_type?: string | undefined;
405
+ title?: string | undefined;
406
+ variants?: {
407
+ id: string;
408
+ file?: string | undefined;
409
+ height?: number | undefined;
410
+ url?: string | undefined;
411
+ width?: number | undefined;
412
+ created_at?: string | undefined;
413
+ updated_at?: string | undefined;
414
+ content_type?: string | undefined;
415
+ filename?: string | undefined;
416
+ image_source?: {
417
+ file?: string | undefined;
418
+ height?: number | undefined;
419
+ media?: string | undefined;
420
+ mime_type?: string | undefined;
421
+ refresh_url?: string | undefined;
422
+ url?: string | undefined;
423
+ width?: number | undefined;
424
+ } | undefined;
425
+ variant_key?: string | undefined;
426
+ }[] | undefined;
427
+ version?: number | undefined;
428
+ }[] | undefined;
429
+ branched_thread?: string | undefined;
73
430
  has_replies?: boolean | undefined;
74
431
  idempotency_key?: string | undefined;
75
432
  legacy_agent?: string | undefined;
76
- metadata?: unknown;
77
- org?: string | undefined;
78
- reactions?: unknown[] | undefined;
433
+ reactions?: {
434
+ type: string;
435
+ user?: string | undefined;
436
+ payload?: Record<string, unknown> | undefined;
437
+ }[] | undefined;
79
438
  rendering_mode?: string | undefined;
80
- replies?: unknown[] | undefined;
439
+ replies?: Record<string, unknown>[] | undefined;
81
440
  replies_after_cursor?: string | undefined;
82
441
  replies_before_cursor?: string | undefined;
83
442
  reply_count?: number | undefined;
84
- reply_to?: unknown;
85
- sandbox?: string | undefined;
443
+ reply_to?: Record<string, unknown> | undefined;
86
444
  team?: string | undefined;
87
- thread?: string | undefined;
88
- user?: string | undefined;
89
445
  }, {
90
446
  id: string;
91
- actors?: unknown[] | undefined;
92
- agent?: string | undefined;
93
- attachments?: unknown[] | undefined;
94
- branched_thread?: string | undefined;
95
447
  content?: string | undefined;
448
+ metadata?: Record<string, unknown> | undefined;
449
+ org?: string | undefined;
450
+ sandbox?: string | undefined;
96
451
  created_at?: string | undefined;
452
+ thread?: string | undefined;
453
+ user?: string | undefined;
454
+ actors?: {
455
+ alias?: string | undefined;
456
+ id?: string | undefined;
457
+ name?: string | undefined;
458
+ profile_picture?: {
459
+ file?: string | undefined;
460
+ height?: number | undefined;
461
+ media?: string | undefined;
462
+ mime_type?: string | undefined;
463
+ refresh_url?: string | undefined;
464
+ url?: string | undefined;
465
+ width?: number | undefined;
466
+ } | undefined;
467
+ }[] | undefined;
468
+ agent?: string | undefined;
469
+ attachments?: {
470
+ type: string;
471
+ id: string;
472
+ object?: Record<string, unknown> | undefined;
473
+ height?: number | undefined;
474
+ url?: string | undefined;
475
+ width?: number | undefined;
476
+ name?: string | undefined;
477
+ content_type?: string | undefined;
478
+ filename?: string | undefined;
479
+ image_source?: {
480
+ file?: string | undefined;
481
+ height?: number | undefined;
482
+ media?: string | undefined;
483
+ mime_type?: string | undefined;
484
+ refresh_url?: string | undefined;
485
+ url?: string | undefined;
486
+ width?: number | undefined;
487
+ } | undefined;
488
+ description?: string | undefined;
489
+ image_height?: number | undefined;
490
+ image_url?: string | undefined;
491
+ image_width?: number | undefined;
492
+ media_type?: string | undefined;
493
+ title?: string | undefined;
494
+ variants?: {
495
+ id: string;
496
+ file?: string | undefined;
497
+ height?: number | undefined;
498
+ url?: string | undefined;
499
+ width?: number | undefined;
500
+ created_at?: string | undefined;
501
+ updated_at?: string | undefined;
502
+ content_type?: string | undefined;
503
+ filename?: string | undefined;
504
+ image_source?: {
505
+ file?: string | undefined;
506
+ height?: number | undefined;
507
+ media?: string | undefined;
508
+ mime_type?: string | undefined;
509
+ refresh_url?: string | undefined;
510
+ url?: string | undefined;
511
+ width?: number | undefined;
512
+ } | undefined;
513
+ variant_key?: string | undefined;
514
+ }[] | undefined;
515
+ version?: number | undefined;
516
+ }[] | undefined;
517
+ branched_thread?: string | undefined;
97
518
  has_replies?: boolean | undefined;
98
519
  idempotency_key?: string | undefined;
99
520
  legacy_agent?: string | undefined;
100
- metadata?: unknown;
101
- org?: string | undefined;
102
- reactions?: unknown[] | undefined;
521
+ reactions?: {
522
+ type: string;
523
+ user?: string | undefined;
524
+ payload?: Record<string, unknown> | undefined;
525
+ }[] | undefined;
103
526
  rendering_mode?: string | undefined;
104
- replies?: unknown[] | undefined;
527
+ replies?: Record<string, unknown>[] | undefined;
105
528
  replies_after_cursor?: string | undefined;
106
529
  replies_before_cursor?: string | undefined;
107
530
  reply_count?: number | undefined;
108
- reply_to?: unknown;
109
- sandbox?: string | undefined;
531
+ reply_to?: Record<string, unknown> | undefined;
110
532
  team?: string | undefined;
111
- thread?: string | undefined;
112
- user?: string | undefined;
113
533
  }>>;
114
534
  participant: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
115
- participants: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
535
+ participants: z.ZodOptional<z.ZodArray<z.ZodObject<{
536
+ alias: z.ZodOptional<z.ZodString>;
537
+ email: z.ZodOptional<z.ZodString>;
538
+ id: z.ZodString;
539
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
540
+ name: z.ZodOptional<z.ZodString>;
541
+ org: z.ZodOptional<z.ZodString>;
542
+ sandbox: z.ZodOptional<z.ZodString>;
543
+ }, "strip", z.ZodTypeAny, {
544
+ id: string;
545
+ email?: string | undefined;
546
+ alias?: string | undefined;
547
+ metadata?: Record<string, unknown> | undefined;
548
+ name?: string | undefined;
549
+ org?: string | undefined;
550
+ sandbox?: string | undefined;
551
+ }, {
552
+ id: string;
553
+ email?: string | undefined;
554
+ alias?: string | undefined;
555
+ metadata?: Record<string, unknown> | undefined;
556
+ name?: string | undefined;
557
+ org?: string | undefined;
558
+ sandbox?: string | undefined;
559
+ }>, "many">>;
116
560
  participating_actor: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
117
- participating_agents: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
561
+ participating_agents: z.ZodOptional<z.ZodArray<z.ZodObject<{
562
+ acl: z.ZodOptional<z.ZodObject<{
563
+ add: z.ZodOptional<z.ZodArray<z.ZodObject<{
564
+ actions: z.ZodArray<z.ZodString, "many">;
565
+ principal: z.ZodOptional<z.ZodString>;
566
+ principal_type: z.ZodString;
567
+ }, "strip", z.ZodTypeAny, {
568
+ actions: string[];
569
+ principal_type: string;
570
+ principal?: string | undefined;
571
+ }, {
572
+ actions: string[];
573
+ principal_type: string;
574
+ principal?: string | undefined;
575
+ }>, "many">>;
576
+ grants: z.ZodOptional<z.ZodArray<z.ZodObject<{
577
+ actions: z.ZodArray<z.ZodString, "many">;
578
+ principal: z.ZodOptional<z.ZodString>;
579
+ principal_type: z.ZodString;
580
+ }, "strip", z.ZodTypeAny, {
581
+ actions: string[];
582
+ principal_type: string;
583
+ principal?: string | undefined;
584
+ }, {
585
+ actions: string[];
586
+ principal_type: string;
587
+ principal?: string | undefined;
588
+ }>, "many">>;
589
+ remove: z.ZodOptional<z.ZodArray<z.ZodObject<{
590
+ principal: z.ZodOptional<z.ZodString>;
591
+ principal_type: z.ZodString;
592
+ }, "strip", z.ZodTypeAny, {
593
+ principal_type: string;
594
+ principal?: string | undefined;
595
+ }, {
596
+ principal_type: string;
597
+ principal?: string | undefined;
598
+ }>, "many">>;
599
+ }, "strip", z.ZodTypeAny, {
600
+ add?: {
601
+ actions: string[];
602
+ principal_type: string;
603
+ principal?: string | undefined;
604
+ }[] | undefined;
605
+ grants?: {
606
+ actions: string[];
607
+ principal_type: string;
608
+ principal?: string | undefined;
609
+ }[] | undefined;
610
+ remove?: {
611
+ principal_type: string;
612
+ principal?: string | undefined;
613
+ }[] | undefined;
614
+ }, {
615
+ add?: {
616
+ actions: string[];
617
+ principal_type: string;
618
+ principal?: string | undefined;
619
+ }[] | undefined;
620
+ grants?: {
621
+ actions: string[];
622
+ principal_type: string;
623
+ principal?: string | undefined;
624
+ }[] | undefined;
625
+ remove?: {
626
+ principal_type: string;
627
+ principal?: string | undefined;
628
+ }[] | undefined;
629
+ }>>;
630
+ app: z.ZodOptional<z.ZodString>;
631
+ created_at: z.ZodOptional<z.ZodString>;
632
+ default_model: z.ZodOptional<z.ZodString>;
633
+ email: z.ZodOptional<z.ZodString>;
634
+ id: z.ZodString;
635
+ identity: z.ZodOptional<z.ZodString>;
636
+ lookup_key: z.ZodOptional<z.ZodString>;
637
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
638
+ name: z.ZodOptional<z.ZodString>;
639
+ org: z.ZodOptional<z.ZodString>;
640
+ phone_number: z.ZodOptional<z.ZodString>;
641
+ sandbox: z.ZodOptional<z.ZodString>;
642
+ team: z.ZodOptional<z.ZodString>;
643
+ updated_at: z.ZodOptional<z.ZodString>;
644
+ user: z.ZodOptional<z.ZodString>;
645
+ }, "strip", z.ZodTypeAny, {
646
+ id: string;
647
+ email?: string | undefined;
648
+ metadata?: Record<string, unknown> | undefined;
649
+ name?: string | undefined;
650
+ org?: string | undefined;
651
+ sandbox?: string | undefined;
652
+ created_at?: string | undefined;
653
+ user?: string | undefined;
654
+ updated_at?: string | undefined;
655
+ team?: string | undefined;
656
+ lookup_key?: string | undefined;
657
+ acl?: {
658
+ add?: {
659
+ actions: string[];
660
+ principal_type: string;
661
+ principal?: string | undefined;
662
+ }[] | undefined;
663
+ grants?: {
664
+ actions: string[];
665
+ principal_type: string;
666
+ principal?: string | undefined;
667
+ }[] | undefined;
668
+ remove?: {
669
+ principal_type: string;
670
+ principal?: string | undefined;
671
+ }[] | undefined;
672
+ } | undefined;
673
+ app?: string | undefined;
674
+ default_model?: string | undefined;
675
+ identity?: string | undefined;
676
+ phone_number?: string | undefined;
677
+ }, {
678
+ id: string;
679
+ email?: string | undefined;
680
+ metadata?: Record<string, unknown> | undefined;
681
+ name?: string | undefined;
682
+ org?: string | undefined;
683
+ sandbox?: string | undefined;
684
+ created_at?: string | undefined;
685
+ user?: string | undefined;
686
+ updated_at?: string | undefined;
687
+ team?: string | undefined;
688
+ lookup_key?: string | undefined;
689
+ acl?: {
690
+ add?: {
691
+ actions: string[];
692
+ principal_type: string;
693
+ principal?: string | undefined;
694
+ }[] | undefined;
695
+ grants?: {
696
+ actions: string[];
697
+ principal_type: string;
698
+ principal?: string | undefined;
699
+ }[] | undefined;
700
+ remove?: {
701
+ principal_type: string;
702
+ principal?: string | undefined;
703
+ }[] | undefined;
704
+ } | undefined;
705
+ app?: string | undefined;
706
+ default_model?: string | undefined;
707
+ identity?: string | undefined;
708
+ phone_number?: string | undefined;
709
+ }>, "many">>;
118
710
  role: z.ZodOptional<z.ZodString>;
119
711
  sandbox: z.ZodOptional<z.ZodString>;
120
- settings: z.ZodOptional<z.ZodUnknown>;
712
+ settings: z.ZodOptional<z.ZodObject<{
713
+ agent_enabled: z.ZodOptional<z.ZodBoolean>;
714
+ }, "strip", z.ZodTypeAny, {
715
+ agent_enabled?: boolean | undefined;
716
+ }, {
717
+ agent_enabled?: boolean | undefined;
718
+ }>>;
121
719
  slug: z.ZodOptional<z.ZodString>;
122
- sub_threads: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
720
+ sub_threads: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
123
721
  team: z.ZodOptional<z.ZodString>;
124
722
  title: z.ZodOptional<z.ZodString>;
125
723
  ttl: z.ZodOptional<z.ZodNumber>;
@@ -129,125 +727,337 @@ export declare const threadSchema: z.ZodObject<{
129
727
  }, "strip", z.ZodTypeAny, {
130
728
  id: string;
131
729
  key?: string | undefined;
132
- created_at?: string | undefined;
133
- metadata?: unknown;
730
+ metadata?: Record<string, unknown> | undefined;
134
731
  org?: string | undefined;
135
732
  sandbox?: string | undefined;
136
- team?: string | undefined;
733
+ created_at?: string | undefined;
137
734
  user?: string | undefined;
138
735
  updated_at?: string | undefined;
736
+ description?: string | undefined;
737
+ title?: string | undefined;
738
+ team?: string | undefined;
139
739
  is_channel?: boolean | undefined;
140
740
  is_default?: boolean | undefined;
141
741
  is_unlisted?: boolean | undefined;
142
742
  slug?: string | undefined;
143
- title?: string | undefined;
144
743
  agent_user?: string | undefined;
145
- description?: string | undefined;
146
744
  creator?: {
147
745
  id: string;
148
746
  email?: string | undefined;
149
747
  alias?: string | undefined;
150
- metadata?: unknown;
748
+ metadata?: Record<string, unknown> | undefined;
749
+ name?: string | undefined;
151
750
  org?: string | undefined;
152
751
  sandbox?: string | undefined;
153
- name?: string | undefined;
154
752
  } | undefined;
155
753
  is_transient?: boolean | undefined;
156
754
  last_activity?: string | undefined;
157
755
  parent_message?: {
158
756
  id: string;
159
- actors?: unknown[] | undefined;
160
- agent?: string | undefined;
161
- attachments?: unknown[] | undefined;
162
- branched_thread?: string | undefined;
163
757
  content?: string | undefined;
758
+ metadata?: Record<string, unknown> | undefined;
759
+ org?: string | undefined;
760
+ sandbox?: string | undefined;
164
761
  created_at?: string | undefined;
762
+ thread?: string | undefined;
763
+ user?: string | undefined;
764
+ actors?: {
765
+ alias?: string | undefined;
766
+ id?: string | undefined;
767
+ name?: string | undefined;
768
+ profile_picture?: {
769
+ file?: string | undefined;
770
+ height?: number | undefined;
771
+ media?: string | undefined;
772
+ mime_type?: string | undefined;
773
+ refresh_url?: string | undefined;
774
+ url?: string | undefined;
775
+ width?: number | undefined;
776
+ } | undefined;
777
+ }[] | undefined;
778
+ agent?: string | undefined;
779
+ attachments?: {
780
+ type: string;
781
+ id: string;
782
+ object?: Record<string, unknown> | undefined;
783
+ height?: number | undefined;
784
+ url?: string | undefined;
785
+ width?: number | undefined;
786
+ name?: string | undefined;
787
+ content_type?: string | undefined;
788
+ filename?: string | undefined;
789
+ image_source?: {
790
+ file?: string | undefined;
791
+ height?: number | undefined;
792
+ media?: string | undefined;
793
+ mime_type?: string | undefined;
794
+ refresh_url?: string | undefined;
795
+ url?: string | undefined;
796
+ width?: number | undefined;
797
+ } | undefined;
798
+ description?: string | undefined;
799
+ image_height?: number | undefined;
800
+ image_url?: string | undefined;
801
+ image_width?: number | undefined;
802
+ media_type?: string | undefined;
803
+ title?: string | undefined;
804
+ variants?: {
805
+ id: string;
806
+ file?: string | undefined;
807
+ height?: number | undefined;
808
+ url?: string | undefined;
809
+ width?: number | undefined;
810
+ created_at?: string | undefined;
811
+ updated_at?: string | undefined;
812
+ content_type?: string | undefined;
813
+ filename?: string | undefined;
814
+ image_source?: {
815
+ file?: string | undefined;
816
+ height?: number | undefined;
817
+ media?: string | undefined;
818
+ mime_type?: string | undefined;
819
+ refresh_url?: string | undefined;
820
+ url?: string | undefined;
821
+ width?: number | undefined;
822
+ } | undefined;
823
+ variant_key?: string | undefined;
824
+ }[] | undefined;
825
+ version?: number | undefined;
826
+ }[] | undefined;
827
+ branched_thread?: string | undefined;
165
828
  has_replies?: boolean | undefined;
166
829
  idempotency_key?: string | undefined;
167
830
  legacy_agent?: string | undefined;
168
- metadata?: unknown;
169
- org?: string | undefined;
170
- reactions?: unknown[] | undefined;
831
+ reactions?: {
832
+ type: string;
833
+ user?: string | undefined;
834
+ payload?: Record<string, unknown> | undefined;
835
+ }[] | undefined;
171
836
  rendering_mode?: string | undefined;
172
- replies?: unknown[] | undefined;
837
+ replies?: Record<string, unknown>[] | undefined;
173
838
  replies_after_cursor?: string | undefined;
174
839
  replies_before_cursor?: string | undefined;
175
840
  reply_count?: number | undefined;
176
- reply_to?: unknown;
177
- sandbox?: string | undefined;
841
+ reply_to?: Record<string, unknown> | undefined;
178
842
  team?: string | undefined;
179
- thread?: string | undefined;
180
- user?: string | undefined;
181
843
  } | undefined;
182
844
  participant?: string[] | undefined;
183
- participants?: unknown[] | undefined;
845
+ participants?: {
846
+ id: string;
847
+ email?: string | undefined;
848
+ alias?: string | undefined;
849
+ metadata?: Record<string, unknown> | undefined;
850
+ name?: string | undefined;
851
+ org?: string | undefined;
852
+ sandbox?: string | undefined;
853
+ }[] | undefined;
184
854
  participating_actor?: string[] | undefined;
185
- participating_agents?: unknown[] | undefined;
855
+ participating_agents?: {
856
+ id: string;
857
+ email?: string | undefined;
858
+ metadata?: Record<string, unknown> | undefined;
859
+ name?: string | undefined;
860
+ org?: string | undefined;
861
+ sandbox?: string | undefined;
862
+ created_at?: string | undefined;
863
+ user?: string | undefined;
864
+ updated_at?: string | undefined;
865
+ team?: string | undefined;
866
+ lookup_key?: string | undefined;
867
+ acl?: {
868
+ add?: {
869
+ actions: string[];
870
+ principal_type: string;
871
+ principal?: string | undefined;
872
+ }[] | undefined;
873
+ grants?: {
874
+ actions: string[];
875
+ principal_type: string;
876
+ principal?: string | undefined;
877
+ }[] | undefined;
878
+ remove?: {
879
+ principal_type: string;
880
+ principal?: string | undefined;
881
+ }[] | undefined;
882
+ } | undefined;
883
+ app?: string | undefined;
884
+ default_model?: string | undefined;
885
+ identity?: string | undefined;
886
+ phone_number?: string | undefined;
887
+ }[] | undefined;
186
888
  role?: string | undefined;
187
- settings?: unknown;
188
- sub_threads?: unknown[] | undefined;
889
+ settings?: {
890
+ agent_enabled?: boolean | undefined;
891
+ } | undefined;
892
+ sub_threads?: Record<string, unknown>[] | undefined;
189
893
  ttl?: number | undefined;
190
894
  unread_count?: number | undefined;
191
895
  }, {
192
896
  id: string;
193
897
  key?: string | undefined;
194
- created_at?: string | undefined;
195
- metadata?: unknown;
898
+ metadata?: Record<string, unknown> | undefined;
196
899
  org?: string | undefined;
197
900
  sandbox?: string | undefined;
198
- team?: string | undefined;
901
+ created_at?: string | undefined;
199
902
  user?: string | undefined;
200
903
  updated_at?: string | undefined;
904
+ description?: string | undefined;
905
+ title?: string | undefined;
906
+ team?: string | undefined;
201
907
  is_channel?: boolean | undefined;
202
908
  is_default?: boolean | undefined;
203
909
  is_unlisted?: boolean | undefined;
204
910
  slug?: string | undefined;
205
- title?: string | undefined;
206
911
  agent_user?: string | undefined;
207
- description?: string | undefined;
208
912
  creator?: {
209
913
  id: string;
210
914
  email?: string | undefined;
211
915
  alias?: string | undefined;
212
- metadata?: unknown;
916
+ metadata?: Record<string, unknown> | undefined;
917
+ name?: string | undefined;
213
918
  org?: string | undefined;
214
919
  sandbox?: string | undefined;
215
- name?: string | undefined;
216
920
  } | undefined;
217
921
  is_transient?: boolean | undefined;
218
922
  last_activity?: string | undefined;
219
923
  parent_message?: {
220
924
  id: string;
221
- actors?: unknown[] | undefined;
222
- agent?: string | undefined;
223
- attachments?: unknown[] | undefined;
224
- branched_thread?: string | undefined;
225
925
  content?: string | undefined;
926
+ metadata?: Record<string, unknown> | undefined;
927
+ org?: string | undefined;
928
+ sandbox?: string | undefined;
226
929
  created_at?: string | undefined;
930
+ thread?: string | undefined;
931
+ user?: string | undefined;
932
+ actors?: {
933
+ alias?: string | undefined;
934
+ id?: string | undefined;
935
+ name?: string | undefined;
936
+ profile_picture?: {
937
+ file?: string | undefined;
938
+ height?: number | undefined;
939
+ media?: string | undefined;
940
+ mime_type?: string | undefined;
941
+ refresh_url?: string | undefined;
942
+ url?: string | undefined;
943
+ width?: number | undefined;
944
+ } | undefined;
945
+ }[] | undefined;
946
+ agent?: string | undefined;
947
+ attachments?: {
948
+ type: string;
949
+ id: string;
950
+ object?: Record<string, unknown> | undefined;
951
+ height?: number | undefined;
952
+ url?: string | undefined;
953
+ width?: number | undefined;
954
+ name?: string | undefined;
955
+ content_type?: string | undefined;
956
+ filename?: string | undefined;
957
+ image_source?: {
958
+ file?: string | undefined;
959
+ height?: number | undefined;
960
+ media?: string | undefined;
961
+ mime_type?: string | undefined;
962
+ refresh_url?: string | undefined;
963
+ url?: string | undefined;
964
+ width?: number | undefined;
965
+ } | undefined;
966
+ description?: string | undefined;
967
+ image_height?: number | undefined;
968
+ image_url?: string | undefined;
969
+ image_width?: number | undefined;
970
+ media_type?: string | undefined;
971
+ title?: string | undefined;
972
+ variants?: {
973
+ id: string;
974
+ file?: string | undefined;
975
+ height?: number | undefined;
976
+ url?: string | undefined;
977
+ width?: number | undefined;
978
+ created_at?: string | undefined;
979
+ updated_at?: string | undefined;
980
+ content_type?: string | undefined;
981
+ filename?: string | undefined;
982
+ image_source?: {
983
+ file?: string | undefined;
984
+ height?: number | undefined;
985
+ media?: string | undefined;
986
+ mime_type?: string | undefined;
987
+ refresh_url?: string | undefined;
988
+ url?: string | undefined;
989
+ width?: number | undefined;
990
+ } | undefined;
991
+ variant_key?: string | undefined;
992
+ }[] | undefined;
993
+ version?: number | undefined;
994
+ }[] | undefined;
995
+ branched_thread?: string | undefined;
227
996
  has_replies?: boolean | undefined;
228
997
  idempotency_key?: string | undefined;
229
998
  legacy_agent?: string | undefined;
230
- metadata?: unknown;
231
- org?: string | undefined;
232
- reactions?: unknown[] | undefined;
999
+ reactions?: {
1000
+ type: string;
1001
+ user?: string | undefined;
1002
+ payload?: Record<string, unknown> | undefined;
1003
+ }[] | undefined;
233
1004
  rendering_mode?: string | undefined;
234
- replies?: unknown[] | undefined;
1005
+ replies?: Record<string, unknown>[] | undefined;
235
1006
  replies_after_cursor?: string | undefined;
236
1007
  replies_before_cursor?: string | undefined;
237
1008
  reply_count?: number | undefined;
238
- reply_to?: unknown;
239
- sandbox?: string | undefined;
1009
+ reply_to?: Record<string, unknown> | undefined;
240
1010
  team?: string | undefined;
241
- thread?: string | undefined;
242
- user?: string | undefined;
243
1011
  } | undefined;
244
1012
  participant?: string[] | undefined;
245
- participants?: unknown[] | undefined;
1013
+ participants?: {
1014
+ id: string;
1015
+ email?: string | undefined;
1016
+ alias?: string | undefined;
1017
+ metadata?: Record<string, unknown> | undefined;
1018
+ name?: string | undefined;
1019
+ org?: string | undefined;
1020
+ sandbox?: string | undefined;
1021
+ }[] | undefined;
246
1022
  participating_actor?: string[] | undefined;
247
- participating_agents?: unknown[] | undefined;
1023
+ participating_agents?: {
1024
+ id: string;
1025
+ email?: string | undefined;
1026
+ metadata?: Record<string, unknown> | undefined;
1027
+ name?: string | undefined;
1028
+ org?: string | undefined;
1029
+ sandbox?: string | undefined;
1030
+ created_at?: string | undefined;
1031
+ user?: string | undefined;
1032
+ updated_at?: string | undefined;
1033
+ team?: string | undefined;
1034
+ lookup_key?: string | undefined;
1035
+ acl?: {
1036
+ add?: {
1037
+ actions: string[];
1038
+ principal_type: string;
1039
+ principal?: string | undefined;
1040
+ }[] | undefined;
1041
+ grants?: {
1042
+ actions: string[];
1043
+ principal_type: string;
1044
+ principal?: string | undefined;
1045
+ }[] | undefined;
1046
+ remove?: {
1047
+ principal_type: string;
1048
+ principal?: string | undefined;
1049
+ }[] | undefined;
1050
+ } | undefined;
1051
+ app?: string | undefined;
1052
+ default_model?: string | undefined;
1053
+ identity?: string | undefined;
1054
+ phone_number?: string | undefined;
1055
+ }[] | undefined;
248
1056
  role?: string | undefined;
249
- settings?: unknown;
250
- sub_threads?: unknown[] | undefined;
1057
+ settings?: {
1058
+ agent_enabled?: boolean | undefined;
1059
+ } | undefined;
1060
+ sub_threads?: Record<string, unknown>[] | undefined;
251
1061
  ttl?: number | undefined;
252
1062
  unread_count?: number | undefined;
253
1063
  }>;
@@ -259,12 +1069,12 @@ export declare const threadUpdateParamsProfilePictureSchema: z.ZodObject<{
259
1069
  mime_type: z.ZodOptional<z.ZodString>;
260
1070
  }, "strip", z.ZodTypeAny, {
261
1071
  mime_type?: string | undefined;
262
- data?: string | undefined;
263
1072
  filename?: string | undefined;
1073
+ data?: string | undefined;
264
1074
  }, {
265
1075
  mime_type?: string | undefined;
266
- data?: string | undefined;
267
1076
  filename?: string | undefined;
1077
+ data?: string | undefined;
268
1078
  }>;
269
1079
  export type ThreadUpdateParamsProfilePicture = z.infer<typeof threadUpdateParamsProfilePictureSchema>;
270
1080
  /** Schema for thread read status response.
@@ -288,17 +1098,17 @@ export type ThreadReadStatus = z.infer<typeof threadReadStatusSchema>;
288
1098
  Extended thread data including members and associated entities.
289
1099
  */
290
1100
  export declare const threadDetailSchema: z.ZodObject<{
291
- agent: z.ZodOptional<z.ZodUnknown>;
1101
+ agent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
292
1102
  app_name: z.ZodOptional<z.ZodString>;
293
1103
  created_at: z.ZodOptional<z.ZodString>;
294
- creator: z.ZodOptional<z.ZodUnknown>;
1104
+ creator: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
295
1105
  id: z.ZodString;
296
1106
  is_channel: z.ZodOptional<z.ZodBoolean>;
297
1107
  is_default: z.ZodOptional<z.ZodBoolean>;
298
1108
  is_unlisted: z.ZodOptional<z.ZodBoolean>;
299
1109
  key: z.ZodOptional<z.ZodString>;
300
- members: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
301
- metadata: z.ZodOptional<z.ZodUnknown>;
1110
+ members: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">>;
1111
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
302
1112
  org: z.ZodOptional<z.ZodString>;
303
1113
  owner: z.ZodOptional<z.ZodString>;
304
1114
  owner_name: z.ZodOptional<z.ZodString>;
@@ -311,12 +1121,12 @@ export declare const threadDetailSchema: z.ZodObject<{
311
1121
  id: string;
312
1122
  title: string;
313
1123
  key?: string | undefined;
314
- agent?: unknown;
315
- created_at?: string | undefined;
316
- metadata?: unknown;
1124
+ metadata?: Record<string, unknown> | undefined;
317
1125
  org?: string | undefined;
318
1126
  sandbox?: string | undefined;
1127
+ created_at?: string | undefined;
319
1128
  updated_at?: string | undefined;
1129
+ agent?: Record<string, unknown> | undefined;
320
1130
  app_name?: string | undefined;
321
1131
  is_channel?: boolean | undefined;
322
1132
  is_default?: boolean | undefined;
@@ -325,18 +1135,18 @@ export declare const threadDetailSchema: z.ZodObject<{
325
1135
  owner_name?: string | undefined;
326
1136
  owner_type?: string | undefined;
327
1137
  slug?: string | undefined;
328
- creator?: unknown;
329
- members?: unknown[] | undefined;
1138
+ creator?: Record<string, unknown> | undefined;
1139
+ members?: Record<string, unknown>[] | undefined;
330
1140
  }, {
331
1141
  id: string;
332
1142
  title: string;
333
1143
  key?: string | undefined;
334
- agent?: unknown;
335
- created_at?: string | undefined;
336
- metadata?: unknown;
1144
+ metadata?: Record<string, unknown> | undefined;
337
1145
  org?: string | undefined;
338
1146
  sandbox?: string | undefined;
1147
+ created_at?: string | undefined;
339
1148
  updated_at?: string | undefined;
1149
+ agent?: Record<string, unknown> | undefined;
340
1150
  app_name?: string | undefined;
341
1151
  is_channel?: boolean | undefined;
342
1152
  is_default?: boolean | undefined;
@@ -345,8 +1155,8 @@ export declare const threadDetailSchema: z.ZodObject<{
345
1155
  owner_name?: string | undefined;
346
1156
  owner_type?: string | undefined;
347
1157
  slug?: string | undefined;
348
- creator?: unknown;
349
- members?: unknown[] | undefined;
1158
+ creator?: Record<string, unknown> | undefined;
1159
+ members?: Record<string, unknown>[] | undefined;
350
1160
  }>;
351
1161
  export type ThreadDetail = z.infer<typeof threadDetailSchema>;
352
1162
  /** Base64 encoded profile picture */
@@ -356,12 +1166,12 @@ export declare const threadCreateParamsProfilePictureSchema: z.ZodObject<{
356
1166
  mime_type: z.ZodOptional<z.ZodString>;
357
1167
  }, "strip", z.ZodTypeAny, {
358
1168
  mime_type?: string | undefined;
359
- data?: string | undefined;
360
1169
  filename?: string | undefined;
1170
+ data?: string | undefined;
361
1171
  }, {
362
1172
  mime_type?: string | undefined;
363
- data?: string | undefined;
364
1173
  filename?: string | undefined;
1174
+ data?: string | undefined;
365
1175
  }>;
366
1176
  export type ThreadCreateParamsProfilePicture = z.infer<typeof threadCreateParamsProfilePictureSchema>;
367
1177
  /** Schema for thread creation parameters.
@@ -373,7 +1183,7 @@ export declare const threadCreateParamsSchema: z.ZodObject<{
373
1183
  description: z.ZodOptional<z.ZodString>;
374
1184
  is_unlisted: z.ZodOptional<z.ZodBoolean>;
375
1185
  key: z.ZodOptional<z.ZodString>;
376
- metadata: z.ZodOptional<z.ZodUnknown>;
1186
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
377
1187
  org_id: z.ZodOptional<z.ZodString>;
378
1188
  profile_picture: z.ZodOptional<z.ZodObject<{
379
1189
  data: z.ZodOptional<z.ZodString>;
@@ -381,41 +1191,51 @@ export declare const threadCreateParamsSchema: z.ZodObject<{
381
1191
  mime_type: z.ZodOptional<z.ZodString>;
382
1192
  }, "strip", z.ZodTypeAny, {
383
1193
  mime_type?: string | undefined;
384
- data?: string | undefined;
385
1194
  filename?: string | undefined;
1195
+ data?: string | undefined;
386
1196
  }, {
387
1197
  mime_type?: string | undefined;
388
- data?: string | undefined;
389
1198
  filename?: string | undefined;
1199
+ data?: string | undefined;
1200
+ }>>;
1201
+ settings: z.ZodOptional<z.ZodObject<{
1202
+ agent_enabled: z.ZodOptional<z.ZodBoolean>;
1203
+ }, "strip", z.ZodTypeAny, {
1204
+ agent_enabled?: boolean | undefined;
1205
+ }, {
1206
+ agent_enabled?: boolean | undefined;
390
1207
  }>>;
391
- settings: z.ZodOptional<z.ZodUnknown>;
392
1208
  title: z.ZodOptional<z.ZodString>;
393
1209
  }, "strip", z.ZodTypeAny, {
394
1210
  key?: string | undefined;
395
- metadata?: unknown;
396
- is_unlisted?: boolean | undefined;
397
- title?: string | undefined;
1211
+ metadata?: Record<string, unknown> | undefined;
398
1212
  profile_picture?: {
399
1213
  mime_type?: string | undefined;
400
- data?: string | undefined;
401
1214
  filename?: string | undefined;
1215
+ data?: string | undefined;
402
1216
  } | undefined;
403
1217
  description?: string | undefined;
404
- settings?: unknown;
1218
+ title?: string | undefined;
1219
+ is_unlisted?: boolean | undefined;
1220
+ settings?: {
1221
+ agent_enabled?: boolean | undefined;
1222
+ } | undefined;
405
1223
  create_legacy_agent?: boolean | undefined;
406
1224
  org_id?: string | undefined;
407
1225
  }, {
408
1226
  key?: string | undefined;
409
- metadata?: unknown;
410
- is_unlisted?: boolean | undefined;
411
- title?: string | undefined;
1227
+ metadata?: Record<string, unknown> | undefined;
412
1228
  profile_picture?: {
413
1229
  mime_type?: string | undefined;
414
- data?: string | undefined;
415
1230
  filename?: string | undefined;
1231
+ data?: string | undefined;
416
1232
  } | undefined;
417
1233
  description?: string | undefined;
418
- settings?: unknown;
1234
+ title?: string | undefined;
1235
+ is_unlisted?: boolean | undefined;
1236
+ settings?: {
1237
+ agent_enabled?: boolean | undefined;
1238
+ } | undefined;
419
1239
  create_legacy_agent?: boolean | undefined;
420
1240
  org_id?: string | undefined;
421
1241
  }>;
@@ -433,9 +1253,9 @@ export declare const threadMessageTrajectorySchema: z.ZodObject<{
433
1253
  user_message: z.ZodOptional<z.ZodString>;
434
1254
  }, "strip", z.ZodTypeAny, {
435
1255
  id: string;
436
- created_at?: string | undefined;
437
1256
  org?: string | undefined;
438
1257
  sandbox?: string | undefined;
1258
+ created_at?: string | undefined;
439
1259
  thread?: string | undefined;
440
1260
  updated_at?: string | undefined;
441
1261
  trajectory?: string | undefined;
@@ -443,9 +1263,9 @@ export declare const threadMessageTrajectorySchema: z.ZodObject<{
443
1263
  user_message?: string | undefined;
444
1264
  }, {
445
1265
  id: string;
446
- created_at?: string | undefined;
447
1266
  org?: string | undefined;
448
1267
  sandbox?: string | undefined;
1268
+ created_at?: string | undefined;
449
1269
  thread?: string | undefined;
450
1270
  updated_at?: string | undefined;
451
1271
  trajectory?: string | undefined;
@@ -461,7 +1281,7 @@ export declare const threadMemberSchema: z.ZodObject<{
461
1281
  alias: z.ZodOptional<z.ZodString>;
462
1282
  email: z.ZodOptional<z.ZodString>;
463
1283
  id: z.ZodString;
464
- metadata: z.ZodOptional<z.ZodUnknown>;
1284
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
465
1285
  name: z.ZodOptional<z.ZodString>;
466
1286
  org: z.ZodOptional<z.ZodString>;
467
1287
  sandbox: z.ZodOptional<z.ZodString>;
@@ -469,18 +1289,18 @@ export declare const threadMemberSchema: z.ZodObject<{
469
1289
  id: string;
470
1290
  email?: string | undefined;
471
1291
  alias?: string | undefined;
472
- metadata?: unknown;
1292
+ metadata?: Record<string, unknown> | undefined;
1293
+ name?: string | undefined;
473
1294
  org?: string | undefined;
474
1295
  sandbox?: string | undefined;
475
- name?: string | undefined;
476
1296
  }, {
477
1297
  id: string;
478
1298
  email?: string | undefined;
479
1299
  alias?: string | undefined;
480
- metadata?: unknown;
1300
+ metadata?: Record<string, unknown> | undefined;
1301
+ name?: string | undefined;
481
1302
  org?: string | undefined;
482
1303
  sandbox?: string | undefined;
483
- name?: string | undefined;
484
1304
  }>>;
485
1305
  }, "strip", z.ZodTypeAny, {
486
1306
  thread?: string | undefined;
@@ -488,10 +1308,10 @@ export declare const threadMemberSchema: z.ZodObject<{
488
1308
  id: string;
489
1309
  email?: string | undefined;
490
1310
  alias?: string | undefined;
491
- metadata?: unknown;
1311
+ metadata?: Record<string, unknown> | undefined;
1312
+ name?: string | undefined;
492
1313
  org?: string | undefined;
493
1314
  sandbox?: string | undefined;
494
- name?: string | undefined;
495
1315
  } | undefined;
496
1316
  membership_type?: string | undefined;
497
1317
  }, {
@@ -500,10 +1320,10 @@ export declare const threadMemberSchema: z.ZodObject<{
500
1320
  id: string;
501
1321
  email?: string | undefined;
502
1322
  alias?: string | undefined;
503
- metadata?: unknown;
1323
+ metadata?: Record<string, unknown> | undefined;
1324
+ name?: string | undefined;
504
1325
  org?: string | undefined;
505
1326
  sandbox?: string | undefined;
506
- name?: string | undefined;
507
1327
  } | undefined;
508
1328
  membership_type?: string | undefined;
509
1329
  }>;
@@ -511,10 +1331,10 @@ export type ThreadMember = z.infer<typeof threadMemberSchema>;
511
1331
  /** API schema for a thread action. */
512
1332
  export declare const threadActionSchema: z.ZodObject<{
513
1333
  call_to_action: z.ZodOptional<z.ZodString>;
514
- completion_result: z.ZodOptional<z.ZodUnknown>;
1334
+ completion_result: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
515
1335
  id: z.ZodString;
516
- metadata: z.ZodOptional<z.ZodUnknown>;
517
- native_template: z.ZodOptional<z.ZodUnknown>;
1336
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1337
+ native_template: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
518
1338
  org: z.ZodOptional<z.ZodString>;
519
1339
  path: z.ZodOptional<z.ZodString>;
520
1340
  sandbox: z.ZodOptional<z.ZodString>;
@@ -525,23 +1345,23 @@ export declare const threadActionSchema: z.ZodObject<{
525
1345
  status: string;
526
1346
  id: string;
527
1347
  path?: string | undefined;
528
- metadata?: unknown;
1348
+ metadata?: Record<string, unknown> | undefined;
529
1349
  org?: string | undefined;
530
1350
  sandbox?: string | undefined;
531
1351
  call_to_action?: string | undefined;
532
- completion_result?: unknown;
533
- native_template?: unknown;
1352
+ completion_result?: Record<string, unknown> | undefined;
1353
+ native_template?: Record<string, unknown> | undefined;
534
1354
  }, {
535
1355
  type: string;
536
1356
  status: string;
537
1357
  id: string;
538
1358
  path?: string | undefined;
539
- metadata?: unknown;
1359
+ metadata?: Record<string, unknown> | undefined;
540
1360
  org?: string | undefined;
541
1361
  sandbox?: string | undefined;
542
1362
  call_to_action?: string | undefined;
543
- completion_result?: unknown;
544
- native_template?: unknown;
1363
+ completion_result?: Record<string, unknown> | undefined;
1364
+ native_template?: Record<string, unknown> | undefined;
545
1365
  }>;
546
1366
  export type ThreadAction = z.infer<typeof threadActionSchema>;
547
1367
  /** Schema for thread update parameters.
@@ -550,39 +1370,39 @@ Used by both Users.Threads.Update and Teams.Threads.Update actions.
550
1370
  */
551
1371
  export declare const threadUpdateParamsSchema: z.ZodObject<{
552
1372
  description: z.ZodOptional<z.ZodString>;
553
- metadata: z.ZodOptional<z.ZodUnknown>;
1373
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
554
1374
  profile_picture: z.ZodOptional<z.ZodObject<{
555
1375
  data: z.ZodOptional<z.ZodString>;
556
1376
  filename: z.ZodOptional<z.ZodString>;
557
1377
  mime_type: z.ZodOptional<z.ZodString>;
558
1378
  }, "strip", z.ZodTypeAny, {
559
1379
  mime_type?: string | undefined;
560
- data?: string | undefined;
561
1380
  filename?: string | undefined;
1381
+ data?: string | undefined;
562
1382
  }, {
563
1383
  mime_type?: string | undefined;
564
- data?: string | undefined;
565
1384
  filename?: string | undefined;
1385
+ data?: string | undefined;
566
1386
  }>>;
567
1387
  title: z.ZodOptional<z.ZodString>;
568
1388
  }, "strip", z.ZodTypeAny, {
569
- metadata?: unknown;
570
- title?: string | undefined;
1389
+ metadata?: Record<string, unknown> | undefined;
571
1390
  profile_picture?: {
572
1391
  mime_type?: string | undefined;
573
- data?: string | undefined;
574
1392
  filename?: string | undefined;
1393
+ data?: string | undefined;
575
1394
  } | undefined;
576
1395
  description?: string | undefined;
577
- }, {
578
- metadata?: unknown;
579
1396
  title?: string | undefined;
1397
+ }, {
1398
+ metadata?: Record<string, unknown> | undefined;
580
1399
  profile_picture?: {
581
1400
  mime_type?: string | undefined;
582
- data?: string | undefined;
583
1401
  filename?: string | undefined;
1402
+ data?: string | undefined;
584
1403
  } | undefined;
585
1404
  description?: string | undefined;
1405
+ title?: string | undefined;
586
1406
  }>;
587
1407
  export type ThreadUpdateParams = z.infer<typeof threadUpdateParamsSchema>;
588
1408
  /** Schema for a thread message in the developer portal.
@@ -590,7 +1410,7 @@ export type ThreadUpdateParams = z.infer<typeof threadUpdateParamsSchema>;
590
1410
  Maps to serialized message output from developer portal API.
591
1411
  */
592
1412
  export declare const threadMessageSchema: z.ZodObject<{
593
- admin: z.ZodOptional<z.ZodUnknown>;
1413
+ admin: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
594
1414
  agent: z.ZodOptional<z.ZodString>;
595
1415
  app: z.ZodOptional<z.ZodString>;
596
1416
  attachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -629,26 +1449,99 @@ export declare const threadMessageSchema: z.ZodObject<{
629
1449
  image_width: z.ZodOptional<z.ZodNumber>;
630
1450
  media_type: z.ZodOptional<z.ZodString>;
631
1451
  name: z.ZodOptional<z.ZodString>;
632
- object: z.ZodOptional<z.ZodUnknown>;
1452
+ object: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
633
1453
  title: z.ZodOptional<z.ZodString>;
634
1454
  type: z.ZodString;
635
1455
  url: z.ZodOptional<z.ZodString>;
636
- variants: z.ZodOptional<z.ZodArray<z.ZodUnknown, "many">>;
1456
+ variants: z.ZodOptional<z.ZodArray<z.ZodObject<{
1457
+ content_type: z.ZodOptional<z.ZodString>;
1458
+ created_at: z.ZodOptional<z.ZodString>;
1459
+ file: z.ZodOptional<z.ZodString>;
1460
+ filename: z.ZodOptional<z.ZodString>;
1461
+ height: z.ZodOptional<z.ZodNumber>;
1462
+ id: z.ZodString;
1463
+ image_source: z.ZodOptional<z.ZodObject<{
1464
+ file: z.ZodOptional<z.ZodString>;
1465
+ height: z.ZodOptional<z.ZodNumber>;
1466
+ media: z.ZodOptional<z.ZodString>;
1467
+ mime_type: z.ZodOptional<z.ZodString>;
1468
+ refresh_url: z.ZodOptional<z.ZodString>;
1469
+ url: z.ZodOptional<z.ZodString>;
1470
+ width: z.ZodOptional<z.ZodNumber>;
1471
+ }, "strip", z.ZodTypeAny, {
1472
+ file?: string | undefined;
1473
+ height?: number | undefined;
1474
+ media?: string | undefined;
1475
+ mime_type?: string | undefined;
1476
+ refresh_url?: string | undefined;
1477
+ url?: string | undefined;
1478
+ width?: number | undefined;
1479
+ }, {
1480
+ file?: string | undefined;
1481
+ height?: number | undefined;
1482
+ media?: string | undefined;
1483
+ mime_type?: string | undefined;
1484
+ refresh_url?: string | undefined;
1485
+ url?: string | undefined;
1486
+ width?: number | undefined;
1487
+ }>>;
1488
+ updated_at: z.ZodOptional<z.ZodString>;
1489
+ url: z.ZodOptional<z.ZodString>;
1490
+ variant_key: z.ZodOptional<z.ZodString>;
1491
+ width: z.ZodOptional<z.ZodNumber>;
1492
+ }, "strip", z.ZodTypeAny, {
1493
+ id: string;
1494
+ file?: string | undefined;
1495
+ height?: number | undefined;
1496
+ url?: string | undefined;
1497
+ width?: number | undefined;
1498
+ created_at?: string | undefined;
1499
+ updated_at?: string | undefined;
1500
+ content_type?: string | undefined;
1501
+ filename?: string | undefined;
1502
+ image_source?: {
1503
+ file?: string | undefined;
1504
+ height?: number | undefined;
1505
+ media?: string | undefined;
1506
+ mime_type?: string | undefined;
1507
+ refresh_url?: string | undefined;
1508
+ url?: string | undefined;
1509
+ width?: number | undefined;
1510
+ } | undefined;
1511
+ variant_key?: string | undefined;
1512
+ }, {
1513
+ id: string;
1514
+ file?: string | undefined;
1515
+ height?: number | undefined;
1516
+ url?: string | undefined;
1517
+ width?: number | undefined;
1518
+ created_at?: string | undefined;
1519
+ updated_at?: string | undefined;
1520
+ content_type?: string | undefined;
1521
+ filename?: string | undefined;
1522
+ image_source?: {
1523
+ file?: string | undefined;
1524
+ height?: number | undefined;
1525
+ media?: string | undefined;
1526
+ mime_type?: string | undefined;
1527
+ refresh_url?: string | undefined;
1528
+ url?: string | undefined;
1529
+ width?: number | undefined;
1530
+ } | undefined;
1531
+ variant_key?: string | undefined;
1532
+ }>, "many">>;
637
1533
  version: z.ZodOptional<z.ZodNumber>;
638
1534
  width: z.ZodOptional<z.ZodNumber>;
639
1535
  }, "strip", z.ZodTypeAny, {
640
1536
  type: string;
641
1537
  id: string;
642
- object?: unknown;
1538
+ object?: Record<string, unknown> | undefined;
643
1539
  height?: number | undefined;
644
1540
  url?: string | undefined;
645
1541
  width?: number | undefined;
646
1542
  name?: string | undefined;
647
- title?: string | undefined;
648
- description?: string | undefined;
649
1543
  content_type?: string | undefined;
650
1544
  filename?: string | undefined;
651
- image_height?: number | undefined;
652
1545
  image_source?: {
653
1546
  file?: string | undefined;
654
1547
  height?: number | undefined;
@@ -658,24 +1551,44 @@ export declare const threadMessageSchema: z.ZodObject<{
658
1551
  url?: string | undefined;
659
1552
  width?: number | undefined;
660
1553
  } | undefined;
1554
+ description?: string | undefined;
1555
+ image_height?: number | undefined;
661
1556
  image_url?: string | undefined;
662
1557
  image_width?: number | undefined;
663
1558
  media_type?: string | undefined;
664
- variants?: unknown[] | undefined;
1559
+ title?: string | undefined;
1560
+ variants?: {
1561
+ id: string;
1562
+ file?: string | undefined;
1563
+ height?: number | undefined;
1564
+ url?: string | undefined;
1565
+ width?: number | undefined;
1566
+ created_at?: string | undefined;
1567
+ updated_at?: string | undefined;
1568
+ content_type?: string | undefined;
1569
+ filename?: string | undefined;
1570
+ image_source?: {
1571
+ file?: string | undefined;
1572
+ height?: number | undefined;
1573
+ media?: string | undefined;
1574
+ mime_type?: string | undefined;
1575
+ refresh_url?: string | undefined;
1576
+ url?: string | undefined;
1577
+ width?: number | undefined;
1578
+ } | undefined;
1579
+ variant_key?: string | undefined;
1580
+ }[] | undefined;
665
1581
  version?: number | undefined;
666
1582
  }, {
667
1583
  type: string;
668
1584
  id: string;
669
- object?: unknown;
1585
+ object?: Record<string, unknown> | undefined;
670
1586
  height?: number | undefined;
671
1587
  url?: string | undefined;
672
1588
  width?: number | undefined;
673
1589
  name?: string | undefined;
674
- title?: string | undefined;
675
- description?: string | undefined;
676
1590
  content_type?: string | undefined;
677
1591
  filename?: string | undefined;
678
- image_height?: number | undefined;
679
1592
  image_source?: {
680
1593
  file?: string | undefined;
681
1594
  height?: number | undefined;
@@ -685,10 +1598,33 @@ export declare const threadMessageSchema: z.ZodObject<{
685
1598
  url?: string | undefined;
686
1599
  width?: number | undefined;
687
1600
  } | undefined;
1601
+ description?: string | undefined;
1602
+ image_height?: number | undefined;
688
1603
  image_url?: string | undefined;
689
1604
  image_width?: number | undefined;
690
1605
  media_type?: string | undefined;
691
- variants?: unknown[] | undefined;
1606
+ title?: string | undefined;
1607
+ variants?: {
1608
+ id: string;
1609
+ file?: string | undefined;
1610
+ height?: number | undefined;
1611
+ url?: string | undefined;
1612
+ width?: number | undefined;
1613
+ created_at?: string | undefined;
1614
+ updated_at?: string | undefined;
1615
+ content_type?: string | undefined;
1616
+ filename?: string | undefined;
1617
+ image_source?: {
1618
+ file?: string | undefined;
1619
+ height?: number | undefined;
1620
+ media?: string | undefined;
1621
+ mime_type?: string | undefined;
1622
+ refresh_url?: string | undefined;
1623
+ url?: string | undefined;
1624
+ width?: number | undefined;
1625
+ } | undefined;
1626
+ variant_key?: string | undefined;
1627
+ }[] | undefined;
692
1628
  version?: number | undefined;
693
1629
  }>, "many">>;
694
1630
  content: z.ZodOptional<z.ZodString>;
@@ -703,20 +1639,22 @@ export declare const threadMessageSchema: z.ZodObject<{
703
1639
  user: z.ZodOptional<z.ZodString>;
704
1640
  }, "strip", z.ZodTypeAny, {
705
1641
  id: string;
1642
+ content?: string | undefined;
1643
+ org?: string | undefined;
1644
+ sandbox?: string | undefined;
1645
+ created_at?: string | undefined;
1646
+ user?: string | undefined;
706
1647
  agent?: string | undefined;
707
1648
  attachments?: {
708
1649
  type: string;
709
1650
  id: string;
710
- object?: unknown;
1651
+ object?: Record<string, unknown> | undefined;
711
1652
  height?: number | undefined;
712
1653
  url?: string | undefined;
713
1654
  width?: number | undefined;
714
1655
  name?: string | undefined;
715
- title?: string | undefined;
716
- description?: string | undefined;
717
1656
  content_type?: string | undefined;
718
1657
  filename?: string | undefined;
719
- image_height?: number | undefined;
720
1658
  image_source?: {
721
1659
  file?: string | undefined;
722
1660
  height?: number | undefined;
@@ -726,39 +1664,59 @@ export declare const threadMessageSchema: z.ZodObject<{
726
1664
  url?: string | undefined;
727
1665
  width?: number | undefined;
728
1666
  } | undefined;
1667
+ description?: string | undefined;
1668
+ image_height?: number | undefined;
729
1669
  image_url?: string | undefined;
730
1670
  image_width?: number | undefined;
731
1671
  media_type?: string | undefined;
732
- variants?: unknown[] | undefined;
1672
+ title?: string | undefined;
1673
+ variants?: {
1674
+ id: string;
1675
+ file?: string | undefined;
1676
+ height?: number | undefined;
1677
+ url?: string | undefined;
1678
+ width?: number | undefined;
1679
+ created_at?: string | undefined;
1680
+ updated_at?: string | undefined;
1681
+ content_type?: string | undefined;
1682
+ filename?: string | undefined;
1683
+ image_source?: {
1684
+ file?: string | undefined;
1685
+ height?: number | undefined;
1686
+ media?: string | undefined;
1687
+ mime_type?: string | undefined;
1688
+ refresh_url?: string | undefined;
1689
+ url?: string | undefined;
1690
+ width?: number | undefined;
1691
+ } | undefined;
1692
+ variant_key?: string | undefined;
1693
+ }[] | undefined;
733
1694
  version?: number | undefined;
734
1695
  }[] | undefined;
735
- content?: string | undefined;
736
- created_at?: string | undefined;
737
- org?: string | undefined;
738
- sandbox?: string | undefined;
739
1696
  team?: string | undefined;
740
- user?: string | undefined;
741
1697
  app?: string | undefined;
742
- admin?: unknown;
1698
+ admin?: Record<string, unknown> | undefined;
743
1699
  sender?: string | undefined;
744
1700
  sender_name?: string | undefined;
745
1701
  sender_type?: string | undefined;
746
1702
  }, {
747
1703
  id: string;
1704
+ content?: string | undefined;
1705
+ org?: string | undefined;
1706
+ sandbox?: string | undefined;
1707
+ created_at?: string | undefined;
1708
+ user?: string | undefined;
748
1709
  agent?: string | undefined;
749
1710
  attachments?: {
750
1711
  type: string;
751
1712
  id: string;
752
- object?: unknown;
1713
+ object?: Record<string, unknown> | undefined;
753
1714
  height?: number | undefined;
754
1715
  url?: string | undefined;
755
1716
  width?: number | undefined;
756
1717
  name?: string | undefined;
757
- title?: string | undefined;
758
- description?: string | undefined;
759
1718
  content_type?: string | undefined;
760
1719
  filename?: string | undefined;
761
- image_height?: number | undefined;
762
1720
  image_source?: {
763
1721
  file?: string | undefined;
764
1722
  height?: number | undefined;
@@ -768,35 +1726,41 @@ export declare const threadMessageSchema: z.ZodObject<{
768
1726
  url?: string | undefined;
769
1727
  width?: number | undefined;
770
1728
  } | undefined;
1729
+ description?: string | undefined;
1730
+ image_height?: number | undefined;
771
1731
  image_url?: string | undefined;
772
1732
  image_width?: number | undefined;
773
1733
  media_type?: string | undefined;
774
- variants?: unknown[] | undefined;
1734
+ title?: string | undefined;
1735
+ variants?: {
1736
+ id: string;
1737
+ file?: string | undefined;
1738
+ height?: number | undefined;
1739
+ url?: string | undefined;
1740
+ width?: number | undefined;
1741
+ created_at?: string | undefined;
1742
+ updated_at?: string | undefined;
1743
+ content_type?: string | undefined;
1744
+ filename?: string | undefined;
1745
+ image_source?: {
1746
+ file?: string | undefined;
1747
+ height?: number | undefined;
1748
+ media?: string | undefined;
1749
+ mime_type?: string | undefined;
1750
+ refresh_url?: string | undefined;
1751
+ url?: string | undefined;
1752
+ width?: number | undefined;
1753
+ } | undefined;
1754
+ variant_key?: string | undefined;
1755
+ }[] | undefined;
775
1756
  version?: number | undefined;
776
1757
  }[] | undefined;
777
- content?: string | undefined;
778
- created_at?: string | undefined;
779
- org?: string | undefined;
780
- sandbox?: string | undefined;
781
1758
  team?: string | undefined;
782
- user?: string | undefined;
783
1759
  app?: string | undefined;
784
- admin?: unknown;
1760
+ admin?: Record<string, unknown> | undefined;
785
1761
  sender?: string | undefined;
786
1762
  sender_name?: string | undefined;
787
1763
  sender_type?: string | undefined;
788
1764
  }>;
789
1765
  export type ThreadMessage = z.infer<typeof threadMessageSchema>;
790
- /** Schema for thread settings response.
791
-
792
- Used by thread settings show/update endpoints.
793
- */
794
- export declare const threadSettingsSchema: z.ZodObject<{
795
- agent_enabled: z.ZodOptional<z.ZodBoolean>;
796
- }, "strip", z.ZodTypeAny, {
797
- agent_enabled?: boolean | undefined;
798
- }, {
799
- agent_enabled?: boolean | undefined;
800
- }>;
801
- export type ThreadSettings = z.infer<typeof threadSettingsSchema>;
802
1766
  //# sourceMappingURL=threads.d.ts.map