@archastro/sdk 0.1.0 → 0.2.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 (111) hide show
  1. package/dist/types/agents.d.ts +590 -443
  2. package/dist/types/agents.d.ts.map +1 -1
  3. package/dist/types/agents.js +48 -38
  4. package/dist/types/agents.js.map +1 -1
  5. package/dist/types/ai.d.ts +49 -49
  6. package/dist/types/ai.js +6 -6
  7. package/dist/types/ai.js.map +1 -1
  8. package/dist/types/api.d.ts +169 -0
  9. package/dist/types/api.d.ts.map +1 -0
  10. package/dist/types/api.js +49 -0
  11. package/dist/types/api.js.map +1 -0
  12. package/dist/types/artifacts.d.ts +104 -24
  13. package/dist/types/artifacts.d.ts.map +1 -1
  14. package/dist/types/artifacts.js +4 -3
  15. package/dist/types/artifacts.js.map +1 -1
  16. package/dist/types/automations.d.ts +15 -15
  17. package/dist/types/automations.js +4 -4
  18. package/dist/types/automations.js.map +1 -1
  19. package/dist/types/chat.d.ts +258 -6
  20. package/dist/types/chat.d.ts.map +1 -1
  21. package/dist/types/chat.js +5 -3
  22. package/dist/types/chat.js.map +1 -1
  23. package/dist/types/common.d.ts +3137 -950
  24. package/dist/types/common.d.ts.map +1 -1
  25. package/dist/types/common.js +210 -166
  26. package/dist/types/common.js.map +1 -1
  27. package/dist/types/config.d.ts +24 -24
  28. package/dist/types/config.js +6 -6
  29. package/dist/types/config.js.map +1 -1
  30. package/dist/types/device.d.ts +26 -0
  31. package/dist/types/device.d.ts.map +1 -0
  32. package/dist/types/device.js +14 -0
  33. package/dist/types/device.js.map +1 -0
  34. package/dist/types/index.d.ts +0 -1
  35. package/dist/types/index.d.ts.map +1 -1
  36. package/dist/types/index.js +1 -2
  37. package/dist/types/index.js.map +1 -1
  38. package/dist/types/me.d.ts +176 -20
  39. package/dist/types/me.d.ts.map +1 -1
  40. package/dist/types/me.js +4 -3
  41. package/dist/types/me.js.map +1 -1
  42. package/dist/types/members.d.ts +3 -3
  43. package/dist/types/members.js +2 -2
  44. package/dist/types/members.js.map +1 -1
  45. package/dist/types/messages.d.ts +457 -49
  46. package/dist/types/messages.d.ts.map +1 -1
  47. package/dist/types/messages.js +19 -18
  48. package/dist/types/messages.js.map +1 -1
  49. package/dist/types/oauth.d.ts +206 -0
  50. package/dist/types/oauth.d.ts.map +1 -0
  51. package/dist/types/oauth.js +51 -0
  52. package/dist/types/oauth.js.map +1 -0
  53. package/dist/types/orgs.d.ts +6 -6
  54. package/dist/types/picture.d.ts +2 -2
  55. package/dist/types/profile.d.ts +2 -2
  56. package/dist/types/reactions.d.ts +5 -5
  57. package/dist/types/reactions.js +2 -2
  58. package/dist/types/reactions.js.map +1 -1
  59. package/dist/types/schedules.d.ts +5 -5
  60. package/dist/types/schedules.js +2 -2
  61. package/dist/types/schedules.js.map +1 -1
  62. package/dist/types/teams.d.ts +750 -70
  63. package/dist/types/teams.d.ts.map +1 -1
  64. package/dist/types/teams.js +13 -10
  65. package/dist/types/teams.js.map +1 -1
  66. package/dist/types/threads.d.ts +1165 -201
  67. package/dist/types/threads.d.ts.map +1 -1
  68. package/dist/types/threads.js +26 -26
  69. package/dist/types/threads.js.map +1 -1
  70. package/dist/types/users.d.ts +53 -13
  71. package/dist/types/users.d.ts.map +1 -1
  72. package/dist/types/users.js +4 -4
  73. package/dist/types/users.js.map +1 -1
  74. package/dist/v1/resources/agent_installations.d.ts +1 -1
  75. package/dist/v1/resources/agent_installations.d.ts.map +1 -1
  76. package/dist/v1/resources/agent_installations.js +1 -1
  77. package/dist/v1/resources/agents.d.ts +18 -5
  78. package/dist/v1/resources/agents.d.ts.map +1 -1
  79. package/dist/v1/resources/agents.js +19 -1
  80. package/dist/v1/resources/agents.js.map +1 -1
  81. package/dist/v1/resources/api.d.ts +1026 -0
  82. package/dist/v1/resources/api.d.ts.map +1 -0
  83. package/dist/v1/resources/api.js +944 -0
  84. package/dist/v1/resources/api.js.map +1 -0
  85. package/dist/v1/resources/artifacts.d.ts +2 -2
  86. package/dist/v1/resources/artifacts.d.ts.map +1 -1
  87. package/dist/v1/resources/artifacts.js +1 -1
  88. package/dist/v1/resources/config.d.ts +4 -4
  89. package/dist/v1/resources/config.d.ts.map +1 -1
  90. package/dist/v1/resources/config.js +1 -1
  91. package/dist/v1/resources/custom_objects.d.ts +2 -2
  92. package/dist/v1/resources/custom_objects.d.ts.map +1 -1
  93. package/dist/v1/resources/custom_objects.js +1 -1
  94. package/dist/v1/resources/oauth.d.ts +25 -0
  95. package/dist/v1/resources/oauth.d.ts.map +1 -0
  96. package/dist/v1/resources/oauth.js +41 -0
  97. package/dist/v1/resources/oauth.js.map +1 -0
  98. package/dist/v1/resources/teams.d.ts +185 -23
  99. package/dist/v1/resources/teams.d.ts.map +1 -1
  100. package/dist/v1/resources/teams.js +1 -1
  101. package/dist/v1/resources/thread_messages.d.ts +2 -3
  102. package/dist/v1/resources/thread_messages.d.ts.map +1 -1
  103. package/dist/v1/resources/thread_messages.js +1 -1
  104. package/dist/v1/resources/thread_messages.js.map +1 -1
  105. package/dist/v1/resources/threads.d.ts +102 -6
  106. package/dist/v1/resources/threads.d.ts.map +1 -1
  107. package/dist/v1/resources/threads.js +1 -1
  108. package/dist/v1/resources/users.d.ts +127 -13
  109. package/dist/v1/resources/users.d.ts.map +1 -1
  110. package/dist/v1/resources/users.js +1 -1
  111. 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
+ name?: string | undefined;
19
31
  org?: string | undefined;
20
32
  sandbox?: string | undefined;
21
- name?: string | undefined;
33
+ metadata?: Record<string, unknown> | undefined;
22
34
  }, {
23
35
  id: string;
24
36
  email?: string | undefined;
25
37
  alias?: string | undefined;
26
- metadata?: unknown;
38
+ name?: string | undefined;
27
39
  org?: string | undefined;
28
40
  sandbox?: string | undefined;
29
- name?: string | undefined;
41
+ metadata?: Record<string, unknown> | 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
+ content_type?: string | undefined;
194
+ created_at?: string | undefined;
195
+ filename?: string | undefined;
196
+ image_source?: {
197
+ file?: string | undefined;
198
+ height?: number | undefined;
199
+ media?: string | undefined;
200
+ mime_type?: string | undefined;
201
+ refresh_url?: string | undefined;
202
+ url?: string | undefined;
203
+ width?: number | undefined;
204
+ } | undefined;
205
+ updated_at?: string | 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
+ content_type?: string | undefined;
214
+ created_at?: string | undefined;
215
+ filename?: string | undefined;
216
+ image_source?: {
217
+ file?: string | undefined;
218
+ height?: number | undefined;
219
+ media?: string | undefined;
220
+ mime_type?: string | undefined;
221
+ refresh_url?: string | undefined;
222
+ url?: string | undefined;
223
+ width?: number | undefined;
224
+ } | undefined;
225
+ updated_at?: string | 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
+ content_type?: string | undefined;
238
+ filename?: string | undefined;
239
+ image_source?: {
240
+ file?: string | undefined;
241
+ height?: number | undefined;
242
+ media?: string | undefined;
243
+ mime_type?: string | undefined;
244
+ refresh_url?: string | undefined;
245
+ url?: string | undefined;
246
+ width?: number | undefined;
247
+ } | undefined;
248
+ media_type?: string | undefined;
249
+ name?: string | undefined;
250
+ variants?: {
251
+ id: string;
252
+ file?: string | undefined;
253
+ height?: number | undefined;
254
+ url?: string | undefined;
255
+ width?: number | undefined;
256
+ content_type?: string | undefined;
257
+ created_at?: string | undefined;
258
+ filename?: string | undefined;
259
+ image_source?: {
260
+ file?: string | undefined;
261
+ height?: number | undefined;
262
+ media?: string | undefined;
263
+ mime_type?: string | undefined;
264
+ refresh_url?: string | undefined;
265
+ url?: string | undefined;
266
+ width?: number | undefined;
267
+ } | undefined;
268
+ updated_at?: string | undefined;
269
+ variant_key?: string | undefined;
270
+ }[] | undefined;
271
+ description?: string | undefined;
272
+ image_height?: number | undefined;
273
+ image_url?: string | undefined;
274
+ image_width?: number | undefined;
275
+ title?: string | 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
+ content_type?: string | undefined;
285
+ filename?: string | undefined;
286
+ image_source?: {
287
+ file?: string | undefined;
288
+ height?: number | undefined;
289
+ media?: string | undefined;
290
+ mime_type?: string | undefined;
291
+ refresh_url?: string | undefined;
292
+ url?: string | undefined;
293
+ width?: number | undefined;
294
+ } | undefined;
295
+ media_type?: string | undefined;
296
+ name?: string | undefined;
297
+ variants?: {
298
+ id: string;
299
+ file?: string | undefined;
300
+ height?: number | undefined;
301
+ url?: string | undefined;
302
+ width?: number | undefined;
303
+ content_type?: string | undefined;
304
+ created_at?: string | undefined;
305
+ filename?: string | undefined;
306
+ image_source?: {
307
+ file?: string | undefined;
308
+ height?: number | undefined;
309
+ media?: string | undefined;
310
+ mime_type?: string | undefined;
311
+ refresh_url?: string | undefined;
312
+ url?: string | undefined;
313
+ width?: number | undefined;
314
+ } | undefined;
315
+ updated_at?: string | undefined;
316
+ variant_key?: string | undefined;
317
+ }[] | undefined;
318
+ description?: string | undefined;
319
+ image_height?: number | undefined;
320
+ image_url?: string | undefined;
321
+ image_width?: number | undefined;
322
+ title?: string | 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;
359
+ created_at?: string | undefined;
360
+ org?: string | undefined;
361
+ sandbox?: string | undefined;
362
+ metadata?: Record<string, unknown> | undefined;
363
+ thread?: string | undefined;
364
+ user?: string | undefined;
68
365
  agent?: string | undefined;
69
- attachments?: unknown[] | undefined;
366
+ team?: string | undefined;
367
+ reply_to?: Record<string, unknown> | undefined;
368
+ actors?: {
369
+ alias?: string | undefined;
370
+ id?: string | undefined;
371
+ name?: string | undefined;
372
+ profile_picture?: {
373
+ file?: string | undefined;
374
+ height?: number | undefined;
375
+ media?: string | undefined;
376
+ mime_type?: string | undefined;
377
+ refresh_url?: string | undefined;
378
+ url?: string | undefined;
379
+ width?: number | undefined;
380
+ } | undefined;
381
+ }[] | undefined;
382
+ attachments?: {
383
+ type: string;
384
+ id: string;
385
+ object?: Record<string, unknown> | undefined;
386
+ height?: number | undefined;
387
+ url?: string | undefined;
388
+ width?: number | 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
+ media_type?: string | undefined;
401
+ name?: string | undefined;
402
+ variants?: {
403
+ id: string;
404
+ file?: string | undefined;
405
+ height?: number | undefined;
406
+ url?: string | undefined;
407
+ width?: number | undefined;
408
+ content_type?: string | undefined;
409
+ created_at?: string | undefined;
410
+ filename?: string | undefined;
411
+ image_source?: {
412
+ file?: string | undefined;
413
+ height?: number | undefined;
414
+ media?: string | undefined;
415
+ mime_type?: string | undefined;
416
+ refresh_url?: string | undefined;
417
+ url?: string | undefined;
418
+ width?: number | undefined;
419
+ } | undefined;
420
+ updated_at?: string | undefined;
421
+ variant_key?: string | undefined;
422
+ }[] | undefined;
423
+ description?: string | undefined;
424
+ image_height?: number | undefined;
425
+ image_url?: string | undefined;
426
+ image_width?: number | undefined;
427
+ title?: string | undefined;
428
+ version?: number | undefined;
429
+ }[] | undefined;
70
430
  branched_thread?: string | undefined;
71
431
  content?: string | undefined;
72
- created_at?: string | undefined;
73
432
  has_replies?: boolean | undefined;
74
433
  idempotency_key?: string | undefined;
75
434
  legacy_agent?: string | undefined;
76
- metadata?: unknown;
77
- org?: string | undefined;
78
- reactions?: unknown[] | undefined;
435
+ reactions?: {
436
+ type: string;
437
+ user?: string | undefined;
438
+ payload?: Record<string, unknown> | undefined;
439
+ }[] | undefined;
79
440
  rendering_mode?: string | undefined;
80
- replies?: unknown[] | undefined;
441
+ replies?: Record<string, unknown>[] | undefined;
81
442
  replies_after_cursor?: string | undefined;
82
443
  replies_before_cursor?: string | undefined;
83
444
  reply_count?: number | undefined;
84
- reply_to?: unknown;
445
+ }, {
446
+ id: string;
447
+ created_at?: string | undefined;
448
+ org?: string | undefined;
85
449
  sandbox?: string | undefined;
86
- team?: string | undefined;
450
+ metadata?: Record<string, unknown> | undefined;
87
451
  thread?: string | undefined;
88
452
  user?: string | undefined;
89
- }, {
90
- id: string;
91
- actors?: unknown[] | undefined;
92
453
  agent?: string | undefined;
93
- attachments?: unknown[] | undefined;
454
+ team?: string | undefined;
455
+ reply_to?: Record<string, unknown> | undefined;
456
+ actors?: {
457
+ alias?: string | undefined;
458
+ id?: string | undefined;
459
+ name?: string | undefined;
460
+ profile_picture?: {
461
+ file?: string | undefined;
462
+ height?: number | undefined;
463
+ media?: string | undefined;
464
+ mime_type?: string | undefined;
465
+ refresh_url?: string | undefined;
466
+ url?: string | undefined;
467
+ width?: number | undefined;
468
+ } | undefined;
469
+ }[] | undefined;
470
+ attachments?: {
471
+ type: string;
472
+ id: string;
473
+ object?: Record<string, unknown> | undefined;
474
+ height?: number | undefined;
475
+ url?: string | undefined;
476
+ width?: number | 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
+ media_type?: string | undefined;
489
+ name?: string | undefined;
490
+ variants?: {
491
+ id: string;
492
+ file?: string | undefined;
493
+ height?: number | undefined;
494
+ url?: string | undefined;
495
+ width?: number | undefined;
496
+ content_type?: string | undefined;
497
+ created_at?: string | undefined;
498
+ filename?: string | undefined;
499
+ image_source?: {
500
+ file?: string | undefined;
501
+ height?: number | undefined;
502
+ media?: string | undefined;
503
+ mime_type?: string | undefined;
504
+ refresh_url?: string | undefined;
505
+ url?: string | undefined;
506
+ width?: number | undefined;
507
+ } | undefined;
508
+ updated_at?: string | undefined;
509
+ variant_key?: string | undefined;
510
+ }[] | undefined;
511
+ description?: string | undefined;
512
+ image_height?: number | undefined;
513
+ image_url?: string | undefined;
514
+ image_width?: number | undefined;
515
+ title?: string | undefined;
516
+ version?: number | undefined;
517
+ }[] | undefined;
94
518
  branched_thread?: string | undefined;
95
519
  content?: string | undefined;
96
- created_at?: string | undefined;
97
520
  has_replies?: boolean | undefined;
98
521
  idempotency_key?: string | undefined;
99
522
  legacy_agent?: string | undefined;
100
- metadata?: unknown;
101
- org?: string | undefined;
102
- reactions?: unknown[] | undefined;
523
+ reactions?: {
524
+ type: string;
525
+ user?: string | undefined;
526
+ payload?: Record<string, unknown> | undefined;
527
+ }[] | undefined;
103
528
  rendering_mode?: string | undefined;
104
- replies?: unknown[] | undefined;
529
+ replies?: Record<string, unknown>[] | undefined;
105
530
  replies_after_cursor?: string | undefined;
106
531
  replies_before_cursor?: string | undefined;
107
532
  reply_count?: number | undefined;
108
- reply_to?: unknown;
109
- sandbox?: string | undefined;
110
- 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
+ name?: string | undefined;
548
+ org?: string | undefined;
549
+ sandbox?: string | undefined;
550
+ metadata?: Record<string, unknown> | undefined;
551
+ }, {
552
+ id: string;
553
+ email?: string | undefined;
554
+ alias?: string | undefined;
555
+ name?: string | undefined;
556
+ org?: string | undefined;
557
+ sandbox?: string | undefined;
558
+ metadata?: Record<string, unknown> | 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
+ created_at?: string | undefined;
649
+ updated_at?: string | undefined;
650
+ name?: string | undefined;
651
+ org?: string | undefined;
652
+ sandbox?: string | undefined;
653
+ metadata?: Record<string, unknown> | undefined;
654
+ user?: 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
+ created_at?: string | undefined;
681
+ updated_at?: string | undefined;
682
+ name?: string | undefined;
683
+ org?: string | undefined;
684
+ sandbox?: string | undefined;
685
+ metadata?: Record<string, unknown> | undefined;
686
+ user?: 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>;
@@ -130,124 +728,336 @@ export declare const threadSchema: z.ZodObject<{
130
728
  id: string;
131
729
  key?: string | undefined;
132
730
  created_at?: string | undefined;
133
- metadata?: unknown;
731
+ updated_at?: string | undefined;
134
732
  org?: string | undefined;
135
733
  sandbox?: string | undefined;
136
- team?: string | undefined;
734
+ metadata?: Record<string, unknown> | undefined;
137
735
  user?: string | undefined;
138
- updated_at?: string | undefined;
736
+ description?: string | undefined;
737
+ title?: string | undefined;
139
738
  is_channel?: boolean | undefined;
140
739
  is_default?: boolean | undefined;
141
740
  is_unlisted?: boolean | undefined;
142
741
  slug?: string | undefined;
143
- title?: string | undefined;
742
+ team?: 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
+ name?: string | undefined;
151
749
  org?: string | undefined;
152
750
  sandbox?: string | undefined;
153
- name?: string | undefined;
751
+ metadata?: Record<string, unknown> | 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;
757
+ created_at?: string | undefined;
758
+ org?: string | undefined;
759
+ sandbox?: string | undefined;
760
+ metadata?: Record<string, unknown> | undefined;
761
+ thread?: string | undefined;
762
+ user?: string | undefined;
160
763
  agent?: string | undefined;
161
- attachments?: unknown[] | undefined;
764
+ team?: string | undefined;
765
+ reply_to?: Record<string, unknown> | undefined;
766
+ actors?: {
767
+ alias?: string | undefined;
768
+ id?: string | undefined;
769
+ name?: string | undefined;
770
+ profile_picture?: {
771
+ file?: string | undefined;
772
+ height?: number | undefined;
773
+ media?: string | undefined;
774
+ mime_type?: string | undefined;
775
+ refresh_url?: string | undefined;
776
+ url?: string | undefined;
777
+ width?: number | undefined;
778
+ } | undefined;
779
+ }[] | undefined;
780
+ attachments?: {
781
+ type: string;
782
+ id: string;
783
+ object?: Record<string, unknown> | undefined;
784
+ height?: number | undefined;
785
+ url?: string | undefined;
786
+ width?: number | 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
+ media_type?: string | undefined;
799
+ name?: string | undefined;
800
+ variants?: {
801
+ id: string;
802
+ file?: string | undefined;
803
+ height?: number | undefined;
804
+ url?: string | undefined;
805
+ width?: number | undefined;
806
+ content_type?: string | undefined;
807
+ created_at?: string | undefined;
808
+ filename?: string | undefined;
809
+ image_source?: {
810
+ file?: string | undefined;
811
+ height?: number | undefined;
812
+ media?: string | undefined;
813
+ mime_type?: string | undefined;
814
+ refresh_url?: string | undefined;
815
+ url?: string | undefined;
816
+ width?: number | undefined;
817
+ } | undefined;
818
+ updated_at?: string | undefined;
819
+ variant_key?: string | undefined;
820
+ }[] | undefined;
821
+ description?: string | undefined;
822
+ image_height?: number | undefined;
823
+ image_url?: string | undefined;
824
+ image_width?: number | undefined;
825
+ title?: string | undefined;
826
+ version?: number | undefined;
827
+ }[] | undefined;
162
828
  branched_thread?: string | undefined;
163
829
  content?: string | undefined;
164
- created_at?: string | undefined;
165
830
  has_replies?: boolean | undefined;
166
831
  idempotency_key?: string | undefined;
167
832
  legacy_agent?: string | undefined;
168
- metadata?: unknown;
169
- org?: string | undefined;
170
- reactions?: unknown[] | undefined;
833
+ reactions?: {
834
+ type: string;
835
+ user?: string | undefined;
836
+ payload?: Record<string, unknown> | undefined;
837
+ }[] | undefined;
171
838
  rendering_mode?: string | undefined;
172
- replies?: unknown[] | undefined;
839
+ replies?: Record<string, unknown>[] | undefined;
173
840
  replies_after_cursor?: string | undefined;
174
841
  replies_before_cursor?: string | undefined;
175
842
  reply_count?: number | undefined;
176
- reply_to?: unknown;
177
- sandbox?: string | undefined;
178
- 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
+ name?: string | undefined;
850
+ org?: string | undefined;
851
+ sandbox?: string | undefined;
852
+ metadata?: Record<string, unknown> | 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
+ created_at?: string | undefined;
859
+ updated_at?: string | undefined;
860
+ name?: string | undefined;
861
+ org?: string | undefined;
862
+ sandbox?: string | undefined;
863
+ metadata?: Record<string, unknown> | undefined;
864
+ user?: 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
898
  created_at?: string | undefined;
195
- metadata?: unknown;
899
+ updated_at?: string | undefined;
196
900
  org?: string | undefined;
197
901
  sandbox?: string | undefined;
198
- team?: string | undefined;
902
+ metadata?: Record<string, unknown> | undefined;
199
903
  user?: string | undefined;
200
- updated_at?: string | undefined;
904
+ description?: string | undefined;
905
+ title?: string | undefined;
201
906
  is_channel?: boolean | undefined;
202
907
  is_default?: boolean | undefined;
203
908
  is_unlisted?: boolean | undefined;
204
909
  slug?: string | undefined;
205
- title?: string | undefined;
910
+ team?: 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
+ name?: string | undefined;
213
917
  org?: string | undefined;
214
918
  sandbox?: string | undefined;
215
- name?: string | undefined;
919
+ metadata?: Record<string, unknown> | 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;
925
+ created_at?: string | undefined;
926
+ org?: string | undefined;
927
+ sandbox?: string | undefined;
928
+ metadata?: Record<string, unknown> | undefined;
929
+ thread?: string | undefined;
930
+ user?: string | undefined;
222
931
  agent?: string | undefined;
223
- attachments?: unknown[] | undefined;
932
+ team?: string | undefined;
933
+ reply_to?: Record<string, unknown> | undefined;
934
+ actors?: {
935
+ alias?: string | undefined;
936
+ id?: string | undefined;
937
+ name?: string | undefined;
938
+ profile_picture?: {
939
+ file?: string | undefined;
940
+ height?: number | undefined;
941
+ media?: string | undefined;
942
+ mime_type?: string | undefined;
943
+ refresh_url?: string | undefined;
944
+ url?: string | undefined;
945
+ width?: number | undefined;
946
+ } | undefined;
947
+ }[] | undefined;
948
+ attachments?: {
949
+ type: string;
950
+ id: string;
951
+ object?: Record<string, unknown> | undefined;
952
+ height?: number | undefined;
953
+ url?: string | undefined;
954
+ width?: number | 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
+ media_type?: string | undefined;
967
+ name?: string | undefined;
968
+ variants?: {
969
+ id: string;
970
+ file?: string | undefined;
971
+ height?: number | undefined;
972
+ url?: string | undefined;
973
+ width?: number | undefined;
974
+ content_type?: string | undefined;
975
+ created_at?: string | undefined;
976
+ filename?: string | undefined;
977
+ image_source?: {
978
+ file?: string | undefined;
979
+ height?: number | undefined;
980
+ media?: string | undefined;
981
+ mime_type?: string | undefined;
982
+ refresh_url?: string | undefined;
983
+ url?: string | undefined;
984
+ width?: number | undefined;
985
+ } | undefined;
986
+ updated_at?: string | undefined;
987
+ variant_key?: string | undefined;
988
+ }[] | undefined;
989
+ description?: string | undefined;
990
+ image_height?: number | undefined;
991
+ image_url?: string | undefined;
992
+ image_width?: number | undefined;
993
+ title?: string | undefined;
994
+ version?: number | undefined;
995
+ }[] | undefined;
224
996
  branched_thread?: string | undefined;
225
997
  content?: string | undefined;
226
- created_at?: string | undefined;
227
998
  has_replies?: boolean | undefined;
228
999
  idempotency_key?: string | undefined;
229
1000
  legacy_agent?: string | undefined;
230
- metadata?: unknown;
231
- org?: string | undefined;
232
- reactions?: unknown[] | undefined;
1001
+ reactions?: {
1002
+ type: string;
1003
+ user?: string | undefined;
1004
+ payload?: Record<string, unknown> | undefined;
1005
+ }[] | undefined;
233
1006
  rendering_mode?: string | undefined;
234
- replies?: unknown[] | undefined;
1007
+ replies?: Record<string, unknown>[] | undefined;
235
1008
  replies_after_cursor?: string | undefined;
236
1009
  replies_before_cursor?: string | undefined;
237
1010
  reply_count?: number | undefined;
238
- reply_to?: unknown;
239
- sandbox?: string | undefined;
240
- 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
+ name?: string | undefined;
1018
+ org?: string | undefined;
1019
+ sandbox?: string | undefined;
1020
+ metadata?: Record<string, unknown> | 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
+ created_at?: string | undefined;
1027
+ updated_at?: string | undefined;
1028
+ name?: string | undefined;
1029
+ org?: string | undefined;
1030
+ sandbox?: string | undefined;
1031
+ metadata?: Record<string, unknown> | undefined;
1032
+ user?: 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,11 @@ export declare const threadDetailSchema: z.ZodObject<{
311
1121
  id: string;
312
1122
  title: string;
313
1123
  key?: string | undefined;
314
- agent?: unknown;
315
1124
  created_at?: string | undefined;
316
- metadata?: unknown;
1125
+ updated_at?: string | undefined;
317
1126
  org?: string | undefined;
318
1127
  sandbox?: string | undefined;
319
- updated_at?: string | undefined;
1128
+ metadata?: Record<string, unknown> | undefined;
320
1129
  app_name?: string | undefined;
321
1130
  is_channel?: boolean | undefined;
322
1131
  is_default?: boolean | undefined;
@@ -325,18 +1134,18 @@ export declare const threadDetailSchema: z.ZodObject<{
325
1134
  owner_name?: string | undefined;
326
1135
  owner_type?: string | undefined;
327
1136
  slug?: string | undefined;
328
- creator?: unknown;
329
- members?: unknown[] | undefined;
1137
+ agent?: Record<string, 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
1144
  created_at?: string | undefined;
336
- metadata?: unknown;
1145
+ updated_at?: string | undefined;
337
1146
  org?: string | undefined;
338
1147
  sandbox?: string | undefined;
339
- updated_at?: string | undefined;
1148
+ metadata?: Record<string, unknown> | undefined;
340
1149
  app_name?: string | undefined;
341
1150
  is_channel?: boolean | undefined;
342
1151
  is_default?: boolean | undefined;
@@ -345,8 +1154,9 @@ export declare const threadDetailSchema: z.ZodObject<{
345
1154
  owner_name?: string | undefined;
346
1155
  owner_type?: string | undefined;
347
1156
  slug?: string | undefined;
348
- creator?: unknown;
349
- members?: unknown[] | undefined;
1157
+ agent?: Record<string, 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
  }>;
@@ -434,20 +1254,20 @@ export declare const threadMessageTrajectorySchema: z.ZodObject<{
434
1254
  }, "strip", z.ZodTypeAny, {
435
1255
  id: string;
436
1256
  created_at?: string | undefined;
1257
+ updated_at?: string | undefined;
437
1258
  org?: string | undefined;
438
1259
  sandbox?: string | undefined;
439
1260
  thread?: string | undefined;
440
- updated_at?: string | undefined;
441
1261
  trajectory?: string | undefined;
442
1262
  agent_message?: string | undefined;
443
1263
  user_message?: string | undefined;
444
1264
  }, {
445
1265
  id: string;
446
1266
  created_at?: string | undefined;
1267
+ updated_at?: string | undefined;
447
1268
  org?: string | undefined;
448
1269
  sandbox?: string | undefined;
449
1270
  thread?: string | undefined;
450
- updated_at?: string | undefined;
451
1271
  trajectory?: string | undefined;
452
1272
  agent_message?: string | undefined;
453
1273
  user_message?: 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
+ name?: string | undefined;
473
1293
  org?: string | undefined;
474
1294
  sandbox?: string | undefined;
475
- name?: string | undefined;
1295
+ metadata?: Record<string, unknown> | undefined;
476
1296
  }, {
477
1297
  id: string;
478
1298
  email?: string | undefined;
479
1299
  alias?: string | undefined;
480
- metadata?: unknown;
1300
+ name?: string | undefined;
481
1301
  org?: string | undefined;
482
1302
  sandbox?: string | undefined;
483
- name?: string | undefined;
1303
+ metadata?: Record<string, unknown> | 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
+ name?: string | undefined;
492
1312
  org?: string | undefined;
493
1313
  sandbox?: string | undefined;
494
- name?: string | undefined;
1314
+ metadata?: Record<string, unknown> | 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
+ name?: string | undefined;
504
1324
  org?: string | undefined;
505
1325
  sandbox?: string | undefined;
506
- name?: string | undefined;
1326
+ metadata?: Record<string, unknown> | 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;
529
1348
  org?: string | undefined;
530
1349
  sandbox?: string | undefined;
1350
+ metadata?: Record<string, unknown> | 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;
540
1359
  org?: string | undefined;
541
1360
  sandbox?: string | undefined;
1361
+ metadata?: Record<string, unknown> | 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,98 @@ 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
+ content_type?: string | undefined;
1499
+ created_at?: string | undefined;
1500
+ filename?: string | undefined;
1501
+ image_source?: {
1502
+ file?: string | undefined;
1503
+ height?: number | undefined;
1504
+ media?: string | undefined;
1505
+ mime_type?: string | undefined;
1506
+ refresh_url?: string | undefined;
1507
+ url?: string | undefined;
1508
+ width?: number | undefined;
1509
+ } | undefined;
1510
+ updated_at?: string | 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
+ content_type?: string | undefined;
1519
+ created_at?: string | undefined;
1520
+ filename?: string | undefined;
1521
+ image_source?: {
1522
+ file?: string | undefined;
1523
+ height?: number | undefined;
1524
+ media?: string | undefined;
1525
+ mime_type?: string | undefined;
1526
+ refresh_url?: string | undefined;
1527
+ url?: string | undefined;
1528
+ width?: number | undefined;
1529
+ } | undefined;
1530
+ updated_at?: string | 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
- name?: string | undefined;
647
- title?: string | undefined;
648
- description?: string | undefined;
649
1542
  content_type?: string | undefined;
650
1543
  filename?: string | undefined;
651
- image_height?: number | undefined;
652
1544
  image_source?: {
653
1545
  file?: string | undefined;
654
1546
  height?: number | undefined;
@@ -658,24 +1550,44 @@ export declare const threadMessageSchema: z.ZodObject<{
658
1550
  url?: string | undefined;
659
1551
  width?: number | undefined;
660
1552
  } | undefined;
1553
+ media_type?: string | undefined;
1554
+ name?: string | undefined;
1555
+ variants?: {
1556
+ id: string;
1557
+ file?: string | undefined;
1558
+ height?: number | undefined;
1559
+ url?: string | undefined;
1560
+ width?: number | undefined;
1561
+ content_type?: string | undefined;
1562
+ created_at?: string | undefined;
1563
+ filename?: string | undefined;
1564
+ image_source?: {
1565
+ file?: string | undefined;
1566
+ height?: number | undefined;
1567
+ media?: string | undefined;
1568
+ mime_type?: string | undefined;
1569
+ refresh_url?: string | undefined;
1570
+ url?: string | undefined;
1571
+ width?: number | undefined;
1572
+ } | undefined;
1573
+ updated_at?: string | undefined;
1574
+ variant_key?: string | undefined;
1575
+ }[] | undefined;
1576
+ description?: string | undefined;
1577
+ image_height?: number | undefined;
661
1578
  image_url?: string | undefined;
662
1579
  image_width?: number | undefined;
663
- media_type?: string | undefined;
664
- variants?: unknown[] | undefined;
1580
+ title?: string | 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
- name?: string | undefined;
674
- title?: string | undefined;
675
- description?: string | undefined;
676
1589
  content_type?: string | undefined;
677
1590
  filename?: string | undefined;
678
- image_height?: number | undefined;
679
1591
  image_source?: {
680
1592
  file?: string | undefined;
681
1593
  height?: number | undefined;
@@ -685,10 +1597,34 @@ export declare const threadMessageSchema: z.ZodObject<{
685
1597
  url?: string | undefined;
686
1598
  width?: number | undefined;
687
1599
  } | undefined;
1600
+ media_type?: string | undefined;
1601
+ name?: string | undefined;
1602
+ variants?: {
1603
+ id: string;
1604
+ file?: string | undefined;
1605
+ height?: number | undefined;
1606
+ url?: string | undefined;
1607
+ width?: number | undefined;
1608
+ content_type?: string | undefined;
1609
+ created_at?: string | undefined;
1610
+ filename?: string | undefined;
1611
+ image_source?: {
1612
+ file?: string | undefined;
1613
+ height?: number | undefined;
1614
+ media?: string | undefined;
1615
+ mime_type?: string | undefined;
1616
+ refresh_url?: string | undefined;
1617
+ url?: string | undefined;
1618
+ width?: number | undefined;
1619
+ } | undefined;
1620
+ updated_at?: string | undefined;
1621
+ variant_key?: string | undefined;
1622
+ }[] | undefined;
1623
+ description?: string | undefined;
1624
+ image_height?: number | undefined;
688
1625
  image_url?: string | undefined;
689
1626
  image_width?: number | undefined;
690
- media_type?: string | undefined;
691
- variants?: unknown[] | undefined;
1627
+ title?: string | undefined;
692
1628
  version?: number | undefined;
693
1629
  }>, "many">>;
694
1630
  content: z.ZodOptional<z.ZodString>;
@@ -703,20 +1639,21 @@ export declare const threadMessageSchema: z.ZodObject<{
703
1639
  user: z.ZodOptional<z.ZodString>;
704
1640
  }, "strip", z.ZodTypeAny, {
705
1641
  id: string;
1642
+ created_at?: string | undefined;
1643
+ org?: string | undefined;
1644
+ sandbox?: string | undefined;
1645
+ user?: string | undefined;
706
1646
  agent?: string | undefined;
1647
+ team?: 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
- name?: string | undefined;
715
- title?: string | undefined;
716
- description?: string | undefined;
717
1655
  content_type?: string | undefined;
718
1656
  filename?: string | undefined;
719
- image_height?: number | undefined;
720
1657
  image_source?: {
721
1658
  file?: string | undefined;
722
1659
  height?: number | undefined;
@@ -726,39 +1663,59 @@ export declare const threadMessageSchema: z.ZodObject<{
726
1663
  url?: string | undefined;
727
1664
  width?: number | undefined;
728
1665
  } | undefined;
1666
+ media_type?: string | undefined;
1667
+ name?: string | undefined;
1668
+ variants?: {
1669
+ id: string;
1670
+ file?: string | undefined;
1671
+ height?: number | undefined;
1672
+ url?: string | undefined;
1673
+ width?: number | undefined;
1674
+ content_type?: string | undefined;
1675
+ created_at?: string | undefined;
1676
+ filename?: string | undefined;
1677
+ image_source?: {
1678
+ file?: string | undefined;
1679
+ height?: number | undefined;
1680
+ media?: string | undefined;
1681
+ mime_type?: string | undefined;
1682
+ refresh_url?: string | undefined;
1683
+ url?: string | undefined;
1684
+ width?: number | undefined;
1685
+ } | undefined;
1686
+ updated_at?: string | undefined;
1687
+ variant_key?: string | undefined;
1688
+ }[] | undefined;
1689
+ description?: string | undefined;
1690
+ image_height?: number | undefined;
729
1691
  image_url?: string | undefined;
730
1692
  image_width?: number | undefined;
731
- media_type?: string | undefined;
732
- variants?: unknown[] | undefined;
1693
+ title?: string | undefined;
733
1694
  version?: number | undefined;
734
1695
  }[] | undefined;
735
1696
  content?: string | undefined;
736
- created_at?: string | undefined;
737
- org?: string | undefined;
738
- sandbox?: string | undefined;
739
- 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
+ created_at?: string | undefined;
1705
+ org?: string | undefined;
1706
+ sandbox?: string | undefined;
1707
+ user?: string | undefined;
748
1708
  agent?: string | undefined;
1709
+ team?: 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
- name?: string | undefined;
757
- title?: string | undefined;
758
- description?: string | undefined;
759
1717
  content_type?: string | undefined;
760
1718
  filename?: string | undefined;
761
- image_height?: number | undefined;
762
1719
  image_source?: {
763
1720
  file?: string | undefined;
764
1721
  height?: number | undefined;
@@ -768,35 +1725,42 @@ export declare const threadMessageSchema: z.ZodObject<{
768
1725
  url?: string | undefined;
769
1726
  width?: number | undefined;
770
1727
  } | undefined;
1728
+ media_type?: string | undefined;
1729
+ name?: string | undefined;
1730
+ variants?: {
1731
+ id: string;
1732
+ file?: string | undefined;
1733
+ height?: number | undefined;
1734
+ url?: string | undefined;
1735
+ width?: number | undefined;
1736
+ content_type?: string | undefined;
1737
+ created_at?: string | undefined;
1738
+ filename?: string | undefined;
1739
+ image_source?: {
1740
+ file?: string | undefined;
1741
+ height?: number | undefined;
1742
+ media?: string | undefined;
1743
+ mime_type?: string | undefined;
1744
+ refresh_url?: string | undefined;
1745
+ url?: string | undefined;
1746
+ width?: number | undefined;
1747
+ } | undefined;
1748
+ updated_at?: string | undefined;
1749
+ variant_key?: string | undefined;
1750
+ }[] | undefined;
1751
+ description?: string | undefined;
1752
+ image_height?: number | undefined;
771
1753
  image_url?: string | undefined;
772
1754
  image_width?: number | undefined;
773
- media_type?: string | undefined;
774
- variants?: unknown[] | undefined;
1755
+ title?: string | undefined;
775
1756
  version?: number | undefined;
776
1757
  }[] | undefined;
777
1758
  content?: string | undefined;
778
- created_at?: string | undefined;
779
- org?: string | undefined;
780
- sandbox?: string | undefined;
781
- 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