@archastro/sdk 0.20.0 → 0.22.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 (187) hide show
  1. package/dist/channels/api_artifact_channel.d.ts +48 -0
  2. package/dist/channels/api_artifact_channel.d.ts.map +1 -0
  3. package/dist/channels/api_artifact_channel.js +85 -0
  4. package/dist/channels/api_artifact_channel.js.map +1 -0
  5. package/dist/channels/api_chat_channel.d.ts +3 -1
  6. package/dist/channels/api_chat_channel.d.ts.map +1 -1
  7. package/dist/channels/api_chat_channel.js +6 -2
  8. package/dist/channels/api_chat_channel.js.map +1 -1
  9. package/dist/client.d.ts +10 -0
  10. package/dist/client.d.ts.map +1 -1
  11. package/dist/client.js +11 -1
  12. package/dist/client.js.map +1 -1
  13. package/dist/index.d.ts +1 -0
  14. package/dist/index.d.ts.map +1 -1
  15. package/dist/index.js +2 -1
  16. package/dist/index.js.map +1 -1
  17. package/dist/types/ai.d.ts +124 -10
  18. package/dist/types/ai.d.ts.map +1 -1
  19. package/dist/types/ai.js +27 -7
  20. package/dist/types/ai.js.map +1 -1
  21. package/dist/types/artifacts.d.ts +448 -0
  22. package/dist/types/artifacts.d.ts.map +1 -1
  23. package/dist/types/artifacts.js +65 -1
  24. package/dist/types/artifacts.js.map +1 -1
  25. package/dist/types/automations.d.ts +26 -26
  26. package/dist/types/automations.d.ts.map +1 -1
  27. package/dist/types/automations.js +10 -10
  28. package/dist/types/automations.js.map +1 -1
  29. package/dist/types/chat.d.ts +4150 -0
  30. package/dist/types/chat.d.ts.map +1 -1
  31. package/dist/types/common.d.ts +3635 -357
  32. package/dist/types/common.d.ts.map +1 -1
  33. package/dist/types/common.js +186 -32
  34. package/dist/types/common.js.map +1 -1
  35. package/dist/types/computers.d.ts +42 -0
  36. package/dist/types/computers.d.ts.map +1 -0
  37. package/dist/types/computers.js +19 -0
  38. package/dist/types/computers.js.map +1 -0
  39. package/dist/types/events.d.ts +34 -16
  40. package/dist/types/events.d.ts.map +1 -1
  41. package/dist/types/events.js +3 -1
  42. package/dist/types/events.js.map +1 -1
  43. package/dist/types/index.d.ts +2 -0
  44. package/dist/types/index.d.ts.map +1 -1
  45. package/dist/types/index.js +3 -1
  46. package/dist/types/index.js.map +1 -1
  47. package/dist/types/relays.d.ts +22 -0
  48. package/dist/types/relays.d.ts.map +1 -0
  49. package/dist/types/relays.js +12 -0
  50. package/dist/types/relays.js.map +1 -0
  51. package/dist/types/tasks.d.ts +839 -14
  52. package/dist/types/tasks.d.ts.map +1 -1
  53. package/dist/types/tasks.js +85 -11
  54. package/dist/types/tasks.js.map +1 -1
  55. package/dist/types/teams.d.ts +381 -0
  56. package/dist/types/teams.d.ts.map +1 -1
  57. package/dist/types/threads.d.ts +421 -0
  58. package/dist/types/threads.d.ts.map +1 -1
  59. package/dist/types/threads.js +3 -1
  60. package/dist/types/threads.js.map +1 -1
  61. package/dist/v1/resources/activity_feed.d.ts +15 -0
  62. package/dist/v1/resources/activity_feed.d.ts.map +1 -1
  63. package/dist/v1/resources/activity_feed.js +1 -1
  64. package/dist/v1/resources/agent_computers.d.ts +48 -1
  65. package/dist/v1/resources/agent_computers.d.ts.map +1 -1
  66. package/dist/v1/resources/agent_computers.js +17 -1
  67. package/dist/v1/resources/agent_computers.js.map +1 -1
  68. package/dist/v1/resources/agent_requests.d.ts +62 -0
  69. package/dist/v1/resources/agent_requests.d.ts.map +1 -0
  70. package/dist/v1/resources/agent_requests.js +79 -0
  71. package/dist/v1/resources/agent_requests.js.map +1 -0
  72. package/dist/v1/resources/agent_routines.d.ts +15 -0
  73. package/dist/v1/resources/agent_routines.d.ts.map +1 -1
  74. package/dist/v1/resources/agent_routines.js +1 -1
  75. package/dist/v1/resources/agent_routines.js.map +1 -1
  76. package/dist/v1/resources/agent_sessions.d.ts +23 -1
  77. package/dist/v1/resources/agent_sessions.d.ts.map +1 -1
  78. package/dist/v1/resources/agent_sessions.js +26 -1
  79. package/dist/v1/resources/agent_sessions.js.map +1 -1
  80. package/dist/v1/resources/agents.d.ts +96 -1
  81. package/dist/v1/resources/agents.d.ts.map +1 -1
  82. package/dist/v1/resources/agents.js +13 -2
  83. package/dist/v1/resources/agents.js.map +1 -1
  84. package/dist/v1/resources/ai.d.ts +55 -4
  85. package/dist/v1/resources/ai.d.ts.map +1 -1
  86. package/dist/v1/resources/ai.js +44 -4
  87. package/dist/v1/resources/ai.js.map +1 -1
  88. package/dist/v1/resources/artifacts.d.ts +64 -2
  89. package/dist/v1/resources/artifacts.d.ts.map +1 -1
  90. package/dist/v1/resources/artifacts.js +3 -2
  91. package/dist/v1/resources/artifacts.js.map +1 -1
  92. package/dist/v1/resources/automation_runs.d.ts +6 -2
  93. package/dist/v1/resources/automation_runs.d.ts.map +1 -1
  94. package/dist/v1/resources/automation_runs.js +10 -4
  95. package/dist/v1/resources/automation_runs.js.map +1 -1
  96. package/dist/v1/resources/computers.d.ts +113 -0
  97. package/dist/v1/resources/computers.d.ts.map +1 -0
  98. package/dist/v1/resources/computers.js +113 -0
  99. package/dist/v1/resources/computers.js.map +1 -0
  100. package/dist/v1/resources/custom_objects.d.ts +154 -0
  101. package/dist/v1/resources/custom_objects.d.ts.map +1 -1
  102. package/dist/v1/resources/custom_objects.js +60 -1
  103. package/dist/v1/resources/custom_objects.js.map +1 -1
  104. package/dist/v1/resources/event_subscriptions.d.ts +12 -0
  105. package/dist/v1/resources/event_subscriptions.d.ts.map +1 -1
  106. package/dist/v1/resources/event_subscriptions.js +7 -1
  107. package/dist/v1/resources/event_subscriptions.js.map +1 -1
  108. package/dist/v1/resources/files.d.ts +56 -10
  109. package/dist/v1/resources/files.d.ts.map +1 -1
  110. package/dist/v1/resources/files.js +39 -11
  111. package/dist/v1/resources/files.js.map +1 -1
  112. package/dist/v1/resources/index.d.ts +5 -0
  113. package/dist/v1/resources/index.d.ts.map +1 -1
  114. package/dist/v1/resources/index.js +6 -1
  115. package/dist/v1/resources/index.js.map +1 -1
  116. package/dist/v1/resources/knowledge_sources.d.ts +4 -0
  117. package/dist/v1/resources/knowledge_sources.d.ts.map +1 -1
  118. package/dist/v1/resources/knowledge_sources.js +1 -1
  119. package/dist/v1/resources/kv.d.ts +75 -31
  120. package/dist/v1/resources/kv.d.ts.map +1 -1
  121. package/dist/v1/resources/kv.js +79 -32
  122. package/dist/v1/resources/kv.js.map +1 -1
  123. package/dist/v1/resources/notifications.d.ts +14 -0
  124. package/dist/v1/resources/notifications.d.ts.map +1 -1
  125. package/dist/v1/resources/notifications.js +13 -1
  126. package/dist/v1/resources/notifications.js.map +1 -1
  127. package/dist/v1/resources/oauth.d.ts +2 -0
  128. package/dist/v1/resources/oauth.d.ts.map +1 -1
  129. package/dist/v1/resources/oauth.js +2 -1
  130. package/dist/v1/resources/oauth.js.map +1 -1
  131. package/dist/v1/resources/orgs.d.ts +907 -1
  132. package/dist/v1/resources/orgs.d.ts.map +1 -1
  133. package/dist/v1/resources/orgs.js +471 -2
  134. package/dist/v1/resources/orgs.js.map +1 -1
  135. package/dist/v1/resources/private_service_enrollments.d.ts +7 -0
  136. package/dist/v1/resources/private_service_enrollments.d.ts.map +1 -1
  137. package/dist/v1/resources/private_service_enrollments.js +10 -1
  138. package/dist/v1/resources/private_service_enrollments.js.map +1 -1
  139. package/dist/v1/resources/relays.d.ts +38 -0
  140. package/dist/v1/resources/relays.d.ts.map +1 -0
  141. package/dist/v1/resources/relays.js +44 -0
  142. package/dist/v1/resources/relays.js.map +1 -0
  143. package/dist/v1/resources/scripts.d.ts +20 -9
  144. package/dist/v1/resources/scripts.d.ts.map +1 -1
  145. package/dist/v1/resources/scripts.js +18 -10
  146. package/dist/v1/resources/scripts.js.map +1 -1
  147. package/dist/v1/resources/solutions.d.ts +15 -0
  148. package/dist/v1/resources/solutions.d.ts.map +1 -1
  149. package/dist/v1/resources/solutions.js +1 -1
  150. package/dist/v1/resources/solutions.js.map +1 -1
  151. package/dist/v1/resources/task_epics.d.ts +85 -0
  152. package/dist/v1/resources/task_epics.d.ts.map +1 -0
  153. package/dist/v1/resources/task_epics.js +71 -0
  154. package/dist/v1/resources/task_epics.js.map +1 -0
  155. package/dist/v1/resources/task_ownership_conversions.d.ts +14 -0
  156. package/dist/v1/resources/task_ownership_conversions.d.ts.map +1 -0
  157. package/dist/v1/resources/task_ownership_conversions.js +19 -0
  158. package/dist/v1/resources/task_ownership_conversions.js.map +1 -0
  159. package/dist/v1/resources/tasks.d.ts +122 -1
  160. package/dist/v1/resources/tasks.d.ts.map +1 -1
  161. package/dist/v1/resources/tasks.js +73 -1
  162. package/dist/v1/resources/tasks.js.map +1 -1
  163. package/dist/v1/resources/teams.d.ts +415 -1
  164. package/dist/v1/resources/teams.d.ts.map +1 -1
  165. package/dist/v1/resources/teams.js +137 -1
  166. package/dist/v1/resources/teams.js.map +1 -1
  167. package/dist/v1/resources/thread_messages.d.ts +15 -0
  168. package/dist/v1/resources/thread_messages.d.ts.map +1 -1
  169. package/dist/v1/resources/thread_messages.js +1 -1
  170. package/dist/v1/resources/thread_messages.js.map +1 -1
  171. package/dist/v1/resources/threads.d.ts +126 -0
  172. package/dist/v1/resources/threads.d.ts.map +1 -1
  173. package/dist/v1/resources/threads.js +43 -1
  174. package/dist/v1/resources/threads.js.map +1 -1
  175. package/dist/v1/resources/users.d.ts +372 -3
  176. package/dist/v1/resources/users.d.ts.map +1 -1
  177. package/dist/v1/resources/users.js +167 -3
  178. package/dist/v1/resources/users.js.map +1 -1
  179. package/dist/v1/resources/workflows.d.ts +5 -1
  180. package/dist/v1/resources/workflows.d.ts.map +1 -1
  181. package/dist/v1/resources/workflows.js +6 -2
  182. package/dist/v1/resources/workflows.js.map +1 -1
  183. package/dist/v1.d.ts +10 -0
  184. package/dist/v1.d.ts.map +1 -1
  185. package/dist/v1.js +16 -1
  186. package/dist/v1.js.map +1 -1
  187. package/package.json +1 -1
@@ -95,6 +95,8 @@ export interface Thread {
95
95
  tags?: string[] | undefined;
96
96
  /** ID of the team that owns this thread (`team_...`). `null` for user-owned or agent-owned threads. */
97
97
  team?: string | null | undefined;
98
+ /** Read-only key of the template used to create this thread. `null` for threads not created from a template. */
99
+ thread_template_key?: string | null | undefined;
98
100
  /** Human-readable name of the thread. `null` if no title has been set. */
99
101
  title?: string | null | undefined;
100
102
  /** Offset-free expiry timestamp after which the thread may be automatically cleaned up. `null` if the thread does not expire. */
@@ -220,6 +222,32 @@ export declare const threadSchema: z.ZodObject<{
220
222
  principal_type: string;
221
223
  principal?: string | undefined;
222
224
  }>, "many">>;
225
+ add_denies: z.ZodOptional<z.ZodArray<z.ZodObject<{
226
+ actions: z.ZodArray<z.ZodString, "many">;
227
+ principal: z.ZodOptional<z.ZodString>;
228
+ principal_type: z.ZodString;
229
+ }, "strip", z.ZodTypeAny, {
230
+ actions: string[];
231
+ principal_type: string;
232
+ principal?: string | undefined;
233
+ }, {
234
+ actions: string[];
235
+ principal_type: string;
236
+ principal?: string | undefined;
237
+ }>, "many">>;
238
+ denies: z.ZodOptional<z.ZodArray<z.ZodObject<{
239
+ actions: z.ZodArray<z.ZodString, "many">;
240
+ principal: z.ZodOptional<z.ZodString>;
241
+ principal_type: z.ZodString;
242
+ }, "strip", z.ZodTypeAny, {
243
+ actions: string[];
244
+ principal_type: string;
245
+ principal?: string | undefined;
246
+ }, {
247
+ actions: string[];
248
+ principal_type: string;
249
+ principal?: string | undefined;
250
+ }>, "many">>;
223
251
  grants: z.ZodOptional<z.ZodArray<z.ZodObject<{
224
252
  actions: z.ZodArray<z.ZodString, "many">;
225
253
  principal: z.ZodOptional<z.ZodString>;
@@ -233,6 +261,7 @@ export declare const threadSchema: z.ZodObject<{
233
261
  principal_type: string;
234
262
  principal?: string | undefined;
235
263
  }>, "many">>;
264
+ preserve_denies: z.ZodOptional<z.ZodBoolean>;
236
265
  remove: z.ZodOptional<z.ZodArray<z.ZodObject<{
237
266
  principal: z.ZodOptional<z.ZodString>;
238
267
  principal_type: z.ZodString;
@@ -243,36 +272,76 @@ export declare const threadSchema: z.ZodObject<{
243
272
  principal_type: string;
244
273
  principal?: string | undefined;
245
274
  }>, "many">>;
275
+ remove_denies: z.ZodOptional<z.ZodArray<z.ZodObject<{
276
+ principal: z.ZodOptional<z.ZodString>;
277
+ principal_type: z.ZodString;
278
+ }, "strip", z.ZodTypeAny, {
279
+ principal_type: string;
280
+ principal?: string | undefined;
281
+ }, {
282
+ principal_type: string;
283
+ principal?: string | undefined;
284
+ }>, "many">>;
246
285
  }, "strip", z.ZodTypeAny, {
247
286
  add?: {
248
287
  actions: string[];
249
288
  principal_type: string;
250
289
  principal?: string | undefined;
251
290
  }[] | undefined;
291
+ add_denies?: {
292
+ actions: string[];
293
+ principal_type: string;
294
+ principal?: string | undefined;
295
+ }[] | undefined;
296
+ denies?: {
297
+ actions: string[];
298
+ principal_type: string;
299
+ principal?: string | undefined;
300
+ }[] | undefined;
252
301
  grants?: {
253
302
  actions: string[];
254
303
  principal_type: string;
255
304
  principal?: string | undefined;
256
305
  }[] | undefined;
306
+ preserve_denies?: boolean | undefined;
257
307
  remove?: {
258
308
  principal_type: string;
259
309
  principal?: string | undefined;
260
310
  }[] | undefined;
311
+ remove_denies?: {
312
+ principal_type: string;
313
+ principal?: string | undefined;
314
+ }[] | undefined;
261
315
  }, {
262
316
  add?: {
263
317
  actions: string[];
264
318
  principal_type: string;
265
319
  principal?: string | undefined;
266
320
  }[] | undefined;
321
+ add_denies?: {
322
+ actions: string[];
323
+ principal_type: string;
324
+ principal?: string | undefined;
325
+ }[] | undefined;
326
+ denies?: {
327
+ actions: string[];
328
+ principal_type: string;
329
+ principal?: string | undefined;
330
+ }[] | undefined;
267
331
  grants?: {
268
332
  actions: string[];
269
333
  principal_type: string;
270
334
  principal?: string | undefined;
271
335
  }[] | undefined;
336
+ preserve_denies?: boolean | undefined;
272
337
  remove?: {
273
338
  principal_type: string;
274
339
  principal?: string | undefined;
275
340
  }[] | undefined;
341
+ remove_denies?: {
342
+ principal_type: string;
343
+ principal?: string | undefined;
344
+ }[] | undefined;
276
345
  }>>>;
277
346
  actors: z.ZodOptional<z.ZodArray<z.ZodObject<{
278
347
  alias: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -374,8 +443,10 @@ export declare const threadSchema: z.ZodObject<{
374
443
  type: z.ZodString;
375
444
  url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
376
445
  variants: z.ZodOptional<z.ZodArray<z.ZodObject<{
446
+ byte_size: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
377
447
  content_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
378
448
  created_at: z.ZodOptional<z.ZodString>;
449
+ duration_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
379
450
  file: z.ZodOptional<z.ZodString>;
380
451
  filename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
381
452
  height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -405,8 +476,10 @@ export declare const threadSchema: z.ZodObject<{
405
476
  url?: string | null | undefined;
406
477
  width?: number | null | undefined;
407
478
  }>>>;
479
+ sha256: z.ZodOptional<z.ZodNullable<z.ZodString>>;
408
480
  updated_at: z.ZodOptional<z.ZodString>;
409
481
  url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
482
+ url_expires_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
410
483
  variant_key: z.ZodOptional<z.ZodString>;
411
484
  width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
412
485
  }, "strip", z.ZodTypeAny, {
@@ -417,7 +490,9 @@ export declare const threadSchema: z.ZodObject<{
417
490
  height?: number | null | undefined;
418
491
  url?: string | null | undefined;
419
492
  width?: number | null | undefined;
493
+ byte_size?: number | null | undefined;
420
494
  content_type?: string | null | undefined;
495
+ duration_ms?: number | null | undefined;
421
496
  filename?: string | null | undefined;
422
497
  image_source?: {
423
498
  mime_type?: string | null | undefined;
@@ -428,6 +503,8 @@ export declare const threadSchema: z.ZodObject<{
428
503
  url?: string | null | undefined;
429
504
  width?: number | null | undefined;
430
505
  } | null | undefined;
506
+ sha256?: string | null | undefined;
507
+ url_expires_at?: string | null | undefined;
431
508
  variant_key?: string | undefined;
432
509
  }, {
433
510
  id: string;
@@ -437,7 +514,9 @@ export declare const threadSchema: z.ZodObject<{
437
514
  height?: number | null | undefined;
438
515
  url?: string | null | undefined;
439
516
  width?: number | null | undefined;
517
+ byte_size?: number | null | undefined;
440
518
  content_type?: string | null | undefined;
519
+ duration_ms?: number | null | undefined;
441
520
  filename?: string | null | undefined;
442
521
  image_source?: {
443
522
  mime_type?: string | null | undefined;
@@ -448,6 +527,8 @@ export declare const threadSchema: z.ZodObject<{
448
527
  url?: string | null | undefined;
449
528
  width?: number | null | undefined;
450
529
  } | null | undefined;
530
+ sha256?: string | null | undefined;
531
+ url_expires_at?: string | null | undefined;
451
532
  variant_key?: string | undefined;
452
533
  }>, "many">>;
453
534
  version: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -486,7 +567,9 @@ export declare const threadSchema: z.ZodObject<{
486
567
  height?: number | null | undefined;
487
568
  url?: string | null | undefined;
488
569
  width?: number | null | undefined;
570
+ byte_size?: number | null | undefined;
489
571
  content_type?: string | null | undefined;
572
+ duration_ms?: number | null | undefined;
490
573
  filename?: string | null | undefined;
491
574
  image_source?: {
492
575
  mime_type?: string | null | undefined;
@@ -497,6 +580,8 @@ export declare const threadSchema: z.ZodObject<{
497
580
  url?: string | null | undefined;
498
581
  width?: number | null | undefined;
499
582
  } | null | undefined;
583
+ sha256?: string | null | undefined;
584
+ url_expires_at?: string | null | undefined;
500
585
  variant_key?: string | undefined;
501
586
  }[] | undefined;
502
587
  version?: number | null | undefined;
@@ -534,7 +619,9 @@ export declare const threadSchema: z.ZodObject<{
534
619
  height?: number | null | undefined;
535
620
  url?: string | null | undefined;
536
621
  width?: number | null | undefined;
622
+ byte_size?: number | null | undefined;
537
623
  content_type?: string | null | undefined;
624
+ duration_ms?: number | null | undefined;
538
625
  filename?: string | null | undefined;
539
626
  image_source?: {
540
627
  mime_type?: string | null | undefined;
@@ -545,6 +632,8 @@ export declare const threadSchema: z.ZodObject<{
545
632
  url?: string | null | undefined;
546
633
  width?: number | null | undefined;
547
634
  } | null | undefined;
635
+ sha256?: string | null | undefined;
636
+ url_expires_at?: string | null | undefined;
548
637
  variant_key?: string | undefined;
549
638
  }[] | undefined;
550
639
  version?: number | null | undefined;
@@ -699,15 +788,30 @@ export declare const threadSchema: z.ZodObject<{
699
788
  principal_type: string;
700
789
  principal?: string | undefined;
701
790
  }[] | undefined;
791
+ add_denies?: {
792
+ actions: string[];
793
+ principal_type: string;
794
+ principal?: string | undefined;
795
+ }[] | undefined;
796
+ denies?: {
797
+ actions: string[];
798
+ principal_type: string;
799
+ principal?: string | undefined;
800
+ }[] | undefined;
702
801
  grants?: {
703
802
  actions: string[];
704
803
  principal_type: string;
705
804
  principal?: string | undefined;
706
805
  }[] | undefined;
806
+ preserve_denies?: boolean | undefined;
707
807
  remove?: {
708
808
  principal_type: string;
709
809
  principal?: string | undefined;
710
810
  }[] | undefined;
811
+ remove_denies?: {
812
+ principal_type: string;
813
+ principal?: string | undefined;
814
+ }[] | undefined;
711
815
  } | null | undefined;
712
816
  attachments?: {
713
817
  type: string;
@@ -743,7 +847,9 @@ export declare const threadSchema: z.ZodObject<{
743
847
  height?: number | null | undefined;
744
848
  url?: string | null | undefined;
745
849
  width?: number | null | undefined;
850
+ byte_size?: number | null | undefined;
746
851
  content_type?: string | null | undefined;
852
+ duration_ms?: number | null | undefined;
747
853
  filename?: string | null | undefined;
748
854
  image_source?: {
749
855
  mime_type?: string | null | undefined;
@@ -754,6 +860,8 @@ export declare const threadSchema: z.ZodObject<{
754
860
  url?: string | null | undefined;
755
861
  width?: number | null | undefined;
756
862
  } | null | undefined;
863
+ sha256?: string | null | undefined;
864
+ url_expires_at?: string | null | undefined;
757
865
  variant_key?: string | undefined;
758
866
  }[] | undefined;
759
867
  version?: number | null | undefined;
@@ -835,15 +943,30 @@ export declare const threadSchema: z.ZodObject<{
835
943
  principal_type: string;
836
944
  principal?: string | undefined;
837
945
  }[] | undefined;
946
+ add_denies?: {
947
+ actions: string[];
948
+ principal_type: string;
949
+ principal?: string | undefined;
950
+ }[] | undefined;
951
+ denies?: {
952
+ actions: string[];
953
+ principal_type: string;
954
+ principal?: string | undefined;
955
+ }[] | undefined;
838
956
  grants?: {
839
957
  actions: string[];
840
958
  principal_type: string;
841
959
  principal?: string | undefined;
842
960
  }[] | undefined;
961
+ preserve_denies?: boolean | undefined;
843
962
  remove?: {
844
963
  principal_type: string;
845
964
  principal?: string | undefined;
846
965
  }[] | undefined;
966
+ remove_denies?: {
967
+ principal_type: string;
968
+ principal?: string | undefined;
969
+ }[] | undefined;
847
970
  } | null | undefined;
848
971
  attachments?: {
849
972
  type: string;
@@ -879,7 +1002,9 @@ export declare const threadSchema: z.ZodObject<{
879
1002
  height?: number | null | undefined;
880
1003
  url?: string | null | undefined;
881
1004
  width?: number | null | undefined;
1005
+ byte_size?: number | null | undefined;
882
1006
  content_type?: string | null | undefined;
1007
+ duration_ms?: number | null | undefined;
883
1008
  filename?: string | null | undefined;
884
1009
  image_source?: {
885
1010
  mime_type?: string | null | undefined;
@@ -890,6 +1015,8 @@ export declare const threadSchema: z.ZodObject<{
890
1015
  url?: string | null | undefined;
891
1016
  width?: number | null | undefined;
892
1017
  } | null | undefined;
1018
+ sha256?: string | null | undefined;
1019
+ url_expires_at?: string | null | undefined;
893
1020
  variant_key?: string | undefined;
894
1021
  }[] | undefined;
895
1022
  version?: number | null | undefined;
@@ -1016,6 +1143,32 @@ export declare const threadSchema: z.ZodObject<{
1016
1143
  principal_type: string;
1017
1144
  principal?: string | undefined;
1018
1145
  }>, "many">>;
1146
+ add_denies: z.ZodOptional<z.ZodArray<z.ZodObject<{
1147
+ actions: z.ZodArray<z.ZodString, "many">;
1148
+ principal: z.ZodOptional<z.ZodString>;
1149
+ principal_type: z.ZodString;
1150
+ }, "strip", z.ZodTypeAny, {
1151
+ actions: string[];
1152
+ principal_type: string;
1153
+ principal?: string | undefined;
1154
+ }, {
1155
+ actions: string[];
1156
+ principal_type: string;
1157
+ principal?: string | undefined;
1158
+ }>, "many">>;
1159
+ denies: z.ZodOptional<z.ZodArray<z.ZodObject<{
1160
+ actions: z.ZodArray<z.ZodString, "many">;
1161
+ principal: z.ZodOptional<z.ZodString>;
1162
+ principal_type: z.ZodString;
1163
+ }, "strip", z.ZodTypeAny, {
1164
+ actions: string[];
1165
+ principal_type: string;
1166
+ principal?: string | undefined;
1167
+ }, {
1168
+ actions: string[];
1169
+ principal_type: string;
1170
+ principal?: string | undefined;
1171
+ }>, "many">>;
1019
1172
  grants: z.ZodOptional<z.ZodArray<z.ZodObject<{
1020
1173
  actions: z.ZodArray<z.ZodString, "many">;
1021
1174
  principal: z.ZodOptional<z.ZodString>;
@@ -1029,6 +1182,7 @@ export declare const threadSchema: z.ZodObject<{
1029
1182
  principal_type: string;
1030
1183
  principal?: string | undefined;
1031
1184
  }>, "many">>;
1185
+ preserve_denies: z.ZodOptional<z.ZodBoolean>;
1032
1186
  remove: z.ZodOptional<z.ZodArray<z.ZodObject<{
1033
1187
  principal: z.ZodOptional<z.ZodString>;
1034
1188
  principal_type: z.ZodString;
@@ -1039,36 +1193,76 @@ export declare const threadSchema: z.ZodObject<{
1039
1193
  principal_type: string;
1040
1194
  principal?: string | undefined;
1041
1195
  }>, "many">>;
1196
+ remove_denies: z.ZodOptional<z.ZodArray<z.ZodObject<{
1197
+ principal: z.ZodOptional<z.ZodString>;
1198
+ principal_type: z.ZodString;
1199
+ }, "strip", z.ZodTypeAny, {
1200
+ principal_type: string;
1201
+ principal?: string | undefined;
1202
+ }, {
1203
+ principal_type: string;
1204
+ principal?: string | undefined;
1205
+ }>, "many">>;
1042
1206
  }, "strip", z.ZodTypeAny, {
1043
1207
  add?: {
1044
1208
  actions: string[];
1045
1209
  principal_type: string;
1046
1210
  principal?: string | undefined;
1047
1211
  }[] | undefined;
1212
+ add_denies?: {
1213
+ actions: string[];
1214
+ principal_type: string;
1215
+ principal?: string | undefined;
1216
+ }[] | undefined;
1217
+ denies?: {
1218
+ actions: string[];
1219
+ principal_type: string;
1220
+ principal?: string | undefined;
1221
+ }[] | undefined;
1048
1222
  grants?: {
1049
1223
  actions: string[];
1050
1224
  principal_type: string;
1051
1225
  principal?: string | undefined;
1052
1226
  }[] | undefined;
1227
+ preserve_denies?: boolean | undefined;
1053
1228
  remove?: {
1054
1229
  principal_type: string;
1055
1230
  principal?: string | undefined;
1056
1231
  }[] | undefined;
1232
+ remove_denies?: {
1233
+ principal_type: string;
1234
+ principal?: string | undefined;
1235
+ }[] | undefined;
1057
1236
  }, {
1058
1237
  add?: {
1059
1238
  actions: string[];
1060
1239
  principal_type: string;
1061
1240
  principal?: string | undefined;
1062
1241
  }[] | undefined;
1242
+ add_denies?: {
1243
+ actions: string[];
1244
+ principal_type: string;
1245
+ principal?: string | undefined;
1246
+ }[] | undefined;
1247
+ denies?: {
1248
+ actions: string[];
1249
+ principal_type: string;
1250
+ principal?: string | undefined;
1251
+ }[] | undefined;
1063
1252
  grants?: {
1064
1253
  actions: string[];
1065
1254
  principal_type: string;
1066
1255
  principal?: string | undefined;
1067
1256
  }[] | undefined;
1257
+ preserve_denies?: boolean | undefined;
1068
1258
  remove?: {
1069
1259
  principal_type: string;
1070
1260
  principal?: string | undefined;
1071
1261
  }[] | undefined;
1262
+ remove_denies?: {
1263
+ principal_type: string;
1264
+ principal?: string | undefined;
1265
+ }[] | undefined;
1072
1266
  }>>>;
1073
1267
  app: z.ZodOptional<z.ZodString>;
1074
1268
  created_at: z.ZodOptional<z.ZodString>;
@@ -2084,15 +2278,30 @@ export declare const threadSchema: z.ZodObject<{
2084
2278
  principal_type: string;
2085
2279
  principal?: string | undefined;
2086
2280
  }[] | undefined;
2281
+ add_denies?: {
2282
+ actions: string[];
2283
+ principal_type: string;
2284
+ principal?: string | undefined;
2285
+ }[] | undefined;
2286
+ denies?: {
2287
+ actions: string[];
2288
+ principal_type: string;
2289
+ principal?: string | undefined;
2290
+ }[] | undefined;
2087
2291
  grants?: {
2088
2292
  actions: string[];
2089
2293
  principal_type: string;
2090
2294
  principal?: string | undefined;
2091
2295
  }[] | undefined;
2296
+ preserve_denies?: boolean | undefined;
2092
2297
  remove?: {
2093
2298
  principal_type: string;
2094
2299
  principal?: string | undefined;
2095
2300
  }[] | undefined;
2301
+ remove_denies?: {
2302
+ principal_type: string;
2303
+ principal?: string | undefined;
2304
+ }[] | undefined;
2096
2305
  } | null | undefined;
2097
2306
  default_model?: string | null | undefined;
2098
2307
  identity?: string | null | undefined;
@@ -2262,15 +2471,30 @@ export declare const threadSchema: z.ZodObject<{
2262
2471
  principal_type: string;
2263
2472
  principal?: string | undefined;
2264
2473
  }[] | undefined;
2474
+ add_denies?: {
2475
+ actions: string[];
2476
+ principal_type: string;
2477
+ principal?: string | undefined;
2478
+ }[] | undefined;
2479
+ denies?: {
2480
+ actions: string[];
2481
+ principal_type: string;
2482
+ principal?: string | undefined;
2483
+ }[] | undefined;
2265
2484
  grants?: {
2266
2485
  actions: string[];
2267
2486
  principal_type: string;
2268
2487
  principal?: string | undefined;
2269
2488
  }[] | undefined;
2489
+ preserve_denies?: boolean | undefined;
2270
2490
  remove?: {
2271
2491
  principal_type: string;
2272
2492
  principal?: string | undefined;
2273
2493
  }[] | undefined;
2494
+ remove_denies?: {
2495
+ principal_type: string;
2496
+ principal?: string | undefined;
2497
+ }[] | undefined;
2274
2498
  } | null | undefined;
2275
2499
  default_model?: string | null | undefined;
2276
2500
  identity?: string | null | undefined;
@@ -2441,6 +2665,8 @@ export declare const threadSchema: z.ZodObject<{
2441
2665
  tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2442
2666
  /** ID of the team that owns this thread (`team_...`). `null` for user-owned or agent-owned threads. */
2443
2667
  team: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2668
+ /** Read-only key of the template used to create this thread. `null` for threads not created from a template. */
2669
+ thread_template_key: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2444
2670
  /** Human-readable name of the thread. `null` if no title has been set. */
2445
2671
  title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2446
2672
  /** Offset-free expiry timestamp after which the thread may be automatically cleaned up. `null` if the thread does not expire. */
@@ -2558,15 +2784,30 @@ export declare const threadSchema: z.ZodObject<{
2558
2784
  principal_type: string;
2559
2785
  principal?: string | undefined;
2560
2786
  }[] | undefined;
2787
+ add_denies?: {
2788
+ actions: string[];
2789
+ principal_type: string;
2790
+ principal?: string | undefined;
2791
+ }[] | undefined;
2792
+ denies?: {
2793
+ actions: string[];
2794
+ principal_type: string;
2795
+ principal?: string | undefined;
2796
+ }[] | undefined;
2561
2797
  grants?: {
2562
2798
  actions: string[];
2563
2799
  principal_type: string;
2564
2800
  principal?: string | undefined;
2565
2801
  }[] | undefined;
2802
+ preserve_denies?: boolean | undefined;
2566
2803
  remove?: {
2567
2804
  principal_type: string;
2568
2805
  principal?: string | undefined;
2569
2806
  }[] | undefined;
2807
+ remove_denies?: {
2808
+ principal_type: string;
2809
+ principal?: string | undefined;
2810
+ }[] | undefined;
2570
2811
  } | null | undefined;
2571
2812
  attachments?: {
2572
2813
  type: string;
@@ -2602,7 +2843,9 @@ export declare const threadSchema: z.ZodObject<{
2602
2843
  height?: number | null | undefined;
2603
2844
  url?: string | null | undefined;
2604
2845
  width?: number | null | undefined;
2846
+ byte_size?: number | null | undefined;
2605
2847
  content_type?: string | null | undefined;
2848
+ duration_ms?: number | null | undefined;
2606
2849
  filename?: string | null | undefined;
2607
2850
  image_source?: {
2608
2851
  mime_type?: string | null | undefined;
@@ -2613,6 +2856,8 @@ export declare const threadSchema: z.ZodObject<{
2613
2856
  url?: string | null | undefined;
2614
2857
  width?: number | null | undefined;
2615
2858
  } | null | undefined;
2859
+ sha256?: string | null | undefined;
2860
+ url_expires_at?: string | null | undefined;
2616
2861
  variant_key?: string | undefined;
2617
2862
  }[] | undefined;
2618
2863
  version?: number | null | undefined;
@@ -2680,15 +2925,30 @@ export declare const threadSchema: z.ZodObject<{
2680
2925
  principal_type: string;
2681
2926
  principal?: string | undefined;
2682
2927
  }[] | undefined;
2928
+ add_denies?: {
2929
+ actions: string[];
2930
+ principal_type: string;
2931
+ principal?: string | undefined;
2932
+ }[] | undefined;
2933
+ denies?: {
2934
+ actions: string[];
2935
+ principal_type: string;
2936
+ principal?: string | undefined;
2937
+ }[] | undefined;
2683
2938
  grants?: {
2684
2939
  actions: string[];
2685
2940
  principal_type: string;
2686
2941
  principal?: string | undefined;
2687
2942
  }[] | undefined;
2943
+ preserve_denies?: boolean | undefined;
2688
2944
  remove?: {
2689
2945
  principal_type: string;
2690
2946
  principal?: string | undefined;
2691
2947
  }[] | undefined;
2948
+ remove_denies?: {
2949
+ principal_type: string;
2950
+ principal?: string | undefined;
2951
+ }[] | undefined;
2692
2952
  } | null | undefined;
2693
2953
  default_model?: string | null | undefined;
2694
2954
  identity?: string | null | undefined;
@@ -2843,6 +3103,7 @@ export declare const threadSchema: z.ZodObject<{
2843
3103
  } | undefined;
2844
3104
  sub_threads?: Record<string, {} | null>[] | null | undefined;
2845
3105
  tags?: string[] | undefined;
3106
+ thread_template_key?: string | null | undefined;
2846
3107
  ttl?: string | null | undefined;
2847
3108
  unread_count?: number | null | undefined;
2848
3109
  }, {
@@ -2950,15 +3211,30 @@ export declare const threadSchema: z.ZodObject<{
2950
3211
  principal_type: string;
2951
3212
  principal?: string | undefined;
2952
3213
  }[] | undefined;
3214
+ add_denies?: {
3215
+ actions: string[];
3216
+ principal_type: string;
3217
+ principal?: string | undefined;
3218
+ }[] | undefined;
3219
+ denies?: {
3220
+ actions: string[];
3221
+ principal_type: string;
3222
+ principal?: string | undefined;
3223
+ }[] | undefined;
2953
3224
  grants?: {
2954
3225
  actions: string[];
2955
3226
  principal_type: string;
2956
3227
  principal?: string | undefined;
2957
3228
  }[] | undefined;
3229
+ preserve_denies?: boolean | undefined;
2958
3230
  remove?: {
2959
3231
  principal_type: string;
2960
3232
  principal?: string | undefined;
2961
3233
  }[] | undefined;
3234
+ remove_denies?: {
3235
+ principal_type: string;
3236
+ principal?: string | undefined;
3237
+ }[] | undefined;
2962
3238
  } | null | undefined;
2963
3239
  attachments?: {
2964
3240
  type: string;
@@ -2994,7 +3270,9 @@ export declare const threadSchema: z.ZodObject<{
2994
3270
  height?: number | null | undefined;
2995
3271
  url?: string | null | undefined;
2996
3272
  width?: number | null | undefined;
3273
+ byte_size?: number | null | undefined;
2997
3274
  content_type?: string | null | undefined;
3275
+ duration_ms?: number | null | undefined;
2998
3276
  filename?: string | null | undefined;
2999
3277
  image_source?: {
3000
3278
  mime_type?: string | null | undefined;
@@ -3005,6 +3283,8 @@ export declare const threadSchema: z.ZodObject<{
3005
3283
  url?: string | null | undefined;
3006
3284
  width?: number | null | undefined;
3007
3285
  } | null | undefined;
3286
+ sha256?: string | null | undefined;
3287
+ url_expires_at?: string | null | undefined;
3008
3288
  variant_key?: string | undefined;
3009
3289
  }[] | undefined;
3010
3290
  version?: number | null | undefined;
@@ -3072,15 +3352,30 @@ export declare const threadSchema: z.ZodObject<{
3072
3352
  principal_type: string;
3073
3353
  principal?: string | undefined;
3074
3354
  }[] | undefined;
3355
+ add_denies?: {
3356
+ actions: string[];
3357
+ principal_type: string;
3358
+ principal?: string | undefined;
3359
+ }[] | undefined;
3360
+ denies?: {
3361
+ actions: string[];
3362
+ principal_type: string;
3363
+ principal?: string | undefined;
3364
+ }[] | undefined;
3075
3365
  grants?: {
3076
3366
  actions: string[];
3077
3367
  principal_type: string;
3078
3368
  principal?: string | undefined;
3079
3369
  }[] | undefined;
3370
+ preserve_denies?: boolean | undefined;
3080
3371
  remove?: {
3081
3372
  principal_type: string;
3082
3373
  principal?: string | undefined;
3083
3374
  }[] | undefined;
3375
+ remove_denies?: {
3376
+ principal_type: string;
3377
+ principal?: string | undefined;
3378
+ }[] | undefined;
3084
3379
  } | null | undefined;
3085
3380
  default_model?: string | null | undefined;
3086
3381
  identity?: string | null | undefined;
@@ -3235,6 +3530,7 @@ export declare const threadSchema: z.ZodObject<{
3235
3530
  } | undefined;
3236
3531
  sub_threads?: Record<string, {} | null>[] | null | undefined;
3237
3532
  tags?: string[] | undefined;
3533
+ thread_template_key?: string | null | undefined;
3238
3534
  ttl?: string | null | undefined;
3239
3535
  unread_count?: number | null | undefined;
3240
3536
  }>;
@@ -3298,6 +3594,32 @@ export declare const threadMessageSchema: z.ZodObject<{
3298
3594
  principal_type: string;
3299
3595
  principal?: string | undefined;
3300
3596
  }>, "many">>;
3597
+ add_denies: z.ZodOptional<z.ZodArray<z.ZodObject<{
3598
+ actions: z.ZodArray<z.ZodString, "many">;
3599
+ principal: z.ZodOptional<z.ZodString>;
3600
+ principal_type: z.ZodString;
3601
+ }, "strip", z.ZodTypeAny, {
3602
+ actions: string[];
3603
+ principal_type: string;
3604
+ principal?: string | undefined;
3605
+ }, {
3606
+ actions: string[];
3607
+ principal_type: string;
3608
+ principal?: string | undefined;
3609
+ }>, "many">>;
3610
+ denies: z.ZodOptional<z.ZodArray<z.ZodObject<{
3611
+ actions: z.ZodArray<z.ZodString, "many">;
3612
+ principal: z.ZodOptional<z.ZodString>;
3613
+ principal_type: z.ZodString;
3614
+ }, "strip", z.ZodTypeAny, {
3615
+ actions: string[];
3616
+ principal_type: string;
3617
+ principal?: string | undefined;
3618
+ }, {
3619
+ actions: string[];
3620
+ principal_type: string;
3621
+ principal?: string | undefined;
3622
+ }>, "many">>;
3301
3623
  grants: z.ZodOptional<z.ZodArray<z.ZodObject<{
3302
3624
  actions: z.ZodArray<z.ZodString, "many">;
3303
3625
  principal: z.ZodOptional<z.ZodString>;
@@ -3311,6 +3633,7 @@ export declare const threadMessageSchema: z.ZodObject<{
3311
3633
  principal_type: string;
3312
3634
  principal?: string | undefined;
3313
3635
  }>, "many">>;
3636
+ preserve_denies: z.ZodOptional<z.ZodBoolean>;
3314
3637
  remove: z.ZodOptional<z.ZodArray<z.ZodObject<{
3315
3638
  principal: z.ZodOptional<z.ZodString>;
3316
3639
  principal_type: z.ZodString;
@@ -3321,36 +3644,76 @@ export declare const threadMessageSchema: z.ZodObject<{
3321
3644
  principal_type: string;
3322
3645
  principal?: string | undefined;
3323
3646
  }>, "many">>;
3647
+ remove_denies: z.ZodOptional<z.ZodArray<z.ZodObject<{
3648
+ principal: z.ZodOptional<z.ZodString>;
3649
+ principal_type: z.ZodString;
3650
+ }, "strip", z.ZodTypeAny, {
3651
+ principal_type: string;
3652
+ principal?: string | undefined;
3653
+ }, {
3654
+ principal_type: string;
3655
+ principal?: string | undefined;
3656
+ }>, "many">>;
3324
3657
  }, "strip", z.ZodTypeAny, {
3325
3658
  add?: {
3326
3659
  actions: string[];
3327
3660
  principal_type: string;
3328
3661
  principal?: string | undefined;
3329
3662
  }[] | undefined;
3663
+ add_denies?: {
3664
+ actions: string[];
3665
+ principal_type: string;
3666
+ principal?: string | undefined;
3667
+ }[] | undefined;
3668
+ denies?: {
3669
+ actions: string[];
3670
+ principal_type: string;
3671
+ principal?: string | undefined;
3672
+ }[] | undefined;
3330
3673
  grants?: {
3331
3674
  actions: string[];
3332
3675
  principal_type: string;
3333
3676
  principal?: string | undefined;
3334
3677
  }[] | undefined;
3678
+ preserve_denies?: boolean | undefined;
3335
3679
  remove?: {
3336
3680
  principal_type: string;
3337
3681
  principal?: string | undefined;
3338
3682
  }[] | undefined;
3683
+ remove_denies?: {
3684
+ principal_type: string;
3685
+ principal?: string | undefined;
3686
+ }[] | undefined;
3339
3687
  }, {
3340
3688
  add?: {
3341
3689
  actions: string[];
3342
3690
  principal_type: string;
3343
3691
  principal?: string | undefined;
3344
3692
  }[] | undefined;
3693
+ add_denies?: {
3694
+ actions: string[];
3695
+ principal_type: string;
3696
+ principal?: string | undefined;
3697
+ }[] | undefined;
3698
+ denies?: {
3699
+ actions: string[];
3700
+ principal_type: string;
3701
+ principal?: string | undefined;
3702
+ }[] | undefined;
3345
3703
  grants?: {
3346
3704
  actions: string[];
3347
3705
  principal_type: string;
3348
3706
  principal?: string | undefined;
3349
3707
  }[] | undefined;
3708
+ preserve_denies?: boolean | undefined;
3350
3709
  remove?: {
3351
3710
  principal_type: string;
3352
3711
  principal?: string | undefined;
3353
3712
  }[] | undefined;
3713
+ remove_denies?: {
3714
+ principal_type: string;
3715
+ principal?: string | undefined;
3716
+ }[] | undefined;
3354
3717
  }>>;
3355
3718
  /** Admin-only diagnostic metadata for the message, including execution trajectory details. Only present in developer portal responses. */
3356
3719
  admin: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodType<{} | null, z.ZodTypeDef, {} | null>>>;
@@ -3403,8 +3766,10 @@ export declare const threadMessageSchema: z.ZodObject<{
3403
3766
  type: z.ZodString;
3404
3767
  url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3405
3768
  variants: z.ZodOptional<z.ZodArray<z.ZodObject<{
3769
+ byte_size: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3406
3770
  content_type: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3407
3771
  created_at: z.ZodOptional<z.ZodString>;
3772
+ duration_ms: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3408
3773
  file: z.ZodOptional<z.ZodString>;
3409
3774
  filename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3410
3775
  height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -3434,8 +3799,10 @@ export declare const threadMessageSchema: z.ZodObject<{
3434
3799
  url?: string | null | undefined;
3435
3800
  width?: number | null | undefined;
3436
3801
  }>>>;
3802
+ sha256: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3437
3803
  updated_at: z.ZodOptional<z.ZodString>;
3438
3804
  url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3805
+ url_expires_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3439
3806
  variant_key: z.ZodOptional<z.ZodString>;
3440
3807
  width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3441
3808
  }, "strip", z.ZodTypeAny, {
@@ -3446,7 +3813,9 @@ export declare const threadMessageSchema: z.ZodObject<{
3446
3813
  height?: number | null | undefined;
3447
3814
  url?: string | null | undefined;
3448
3815
  width?: number | null | undefined;
3816
+ byte_size?: number | null | undefined;
3449
3817
  content_type?: string | null | undefined;
3818
+ duration_ms?: number | null | undefined;
3450
3819
  filename?: string | null | undefined;
3451
3820
  image_source?: {
3452
3821
  mime_type?: string | null | undefined;
@@ -3457,6 +3826,8 @@ export declare const threadMessageSchema: z.ZodObject<{
3457
3826
  url?: string | null | undefined;
3458
3827
  width?: number | null | undefined;
3459
3828
  } | null | undefined;
3829
+ sha256?: string | null | undefined;
3830
+ url_expires_at?: string | null | undefined;
3460
3831
  variant_key?: string | undefined;
3461
3832
  }, {
3462
3833
  id: string;
@@ -3466,7 +3837,9 @@ export declare const threadMessageSchema: z.ZodObject<{
3466
3837
  height?: number | null | undefined;
3467
3838
  url?: string | null | undefined;
3468
3839
  width?: number | null | undefined;
3840
+ byte_size?: number | null | undefined;
3469
3841
  content_type?: string | null | undefined;
3842
+ duration_ms?: number | null | undefined;
3470
3843
  filename?: string | null | undefined;
3471
3844
  image_source?: {
3472
3845
  mime_type?: string | null | undefined;
@@ -3477,6 +3850,8 @@ export declare const threadMessageSchema: z.ZodObject<{
3477
3850
  url?: string | null | undefined;
3478
3851
  width?: number | null | undefined;
3479
3852
  } | null | undefined;
3853
+ sha256?: string | null | undefined;
3854
+ url_expires_at?: string | null | undefined;
3480
3855
  variant_key?: string | undefined;
3481
3856
  }>, "many">>;
3482
3857
  version: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -3515,7 +3890,9 @@ export declare const threadMessageSchema: z.ZodObject<{
3515
3890
  height?: number | null | undefined;
3516
3891
  url?: string | null | undefined;
3517
3892
  width?: number | null | undefined;
3893
+ byte_size?: number | null | undefined;
3518
3894
  content_type?: string | null | undefined;
3895
+ duration_ms?: number | null | undefined;
3519
3896
  filename?: string | null | undefined;
3520
3897
  image_source?: {
3521
3898
  mime_type?: string | null | undefined;
@@ -3526,6 +3903,8 @@ export declare const threadMessageSchema: z.ZodObject<{
3526
3903
  url?: string | null | undefined;
3527
3904
  width?: number | null | undefined;
3528
3905
  } | null | undefined;
3906
+ sha256?: string | null | undefined;
3907
+ url_expires_at?: string | null | undefined;
3529
3908
  variant_key?: string | undefined;
3530
3909
  }[] | undefined;
3531
3910
  version?: number | null | undefined;
@@ -3563,7 +3942,9 @@ export declare const threadMessageSchema: z.ZodObject<{
3563
3942
  height?: number | null | undefined;
3564
3943
  url?: string | null | undefined;
3565
3944
  width?: number | null | undefined;
3945
+ byte_size?: number | null | undefined;
3566
3946
  content_type?: string | null | undefined;
3947
+ duration_ms?: number | null | undefined;
3567
3948
  filename?: string | null | undefined;
3568
3949
  image_source?: {
3569
3950
  mime_type?: string | null | undefined;
@@ -3574,6 +3955,8 @@ export declare const threadMessageSchema: z.ZodObject<{
3574
3955
  url?: string | null | undefined;
3575
3956
  width?: number | null | undefined;
3576
3957
  } | null | undefined;
3958
+ sha256?: string | null | undefined;
3959
+ url_expires_at?: string | null | undefined;
3577
3960
  variant_key?: string | undefined;
3578
3961
  }[] | undefined;
3579
3962
  version?: number | null | undefined;
@@ -3624,15 +4007,30 @@ export declare const threadMessageSchema: z.ZodObject<{
3624
4007
  principal_type: string;
3625
4008
  principal?: string | undefined;
3626
4009
  }[] | undefined;
4010
+ add_denies?: {
4011
+ actions: string[];
4012
+ principal_type: string;
4013
+ principal?: string | undefined;
4014
+ }[] | undefined;
4015
+ denies?: {
4016
+ actions: string[];
4017
+ principal_type: string;
4018
+ principal?: string | undefined;
4019
+ }[] | undefined;
3627
4020
  grants?: {
3628
4021
  actions: string[];
3629
4022
  principal_type: string;
3630
4023
  principal?: string | undefined;
3631
4024
  }[] | undefined;
4025
+ preserve_denies?: boolean | undefined;
3632
4026
  remove?: {
3633
4027
  principal_type: string;
3634
4028
  principal?: string | undefined;
3635
4029
  }[] | undefined;
4030
+ remove_denies?: {
4031
+ principal_type: string;
4032
+ principal?: string | undefined;
4033
+ }[] | undefined;
3636
4034
  } | undefined;
3637
4035
  attachments?: {
3638
4036
  type: string;
@@ -3668,7 +4066,9 @@ export declare const threadMessageSchema: z.ZodObject<{
3668
4066
  height?: number | null | undefined;
3669
4067
  url?: string | null | undefined;
3670
4068
  width?: number | null | undefined;
4069
+ byte_size?: number | null | undefined;
3671
4070
  content_type?: string | null | undefined;
4071
+ duration_ms?: number | null | undefined;
3672
4072
  filename?: string | null | undefined;
3673
4073
  image_source?: {
3674
4074
  mime_type?: string | null | undefined;
@@ -3679,6 +4079,8 @@ export declare const threadMessageSchema: z.ZodObject<{
3679
4079
  url?: string | null | undefined;
3680
4080
  width?: number | null | undefined;
3681
4081
  } | null | undefined;
4082
+ sha256?: string | null | undefined;
4083
+ url_expires_at?: string | null | undefined;
3682
4084
  variant_key?: string | undefined;
3683
4085
  }[] | undefined;
3684
4086
  version?: number | null | undefined;
@@ -3708,15 +4110,30 @@ export declare const threadMessageSchema: z.ZodObject<{
3708
4110
  principal_type: string;
3709
4111
  principal?: string | undefined;
3710
4112
  }[] | undefined;
4113
+ add_denies?: {
4114
+ actions: string[];
4115
+ principal_type: string;
4116
+ principal?: string | undefined;
4117
+ }[] | undefined;
4118
+ denies?: {
4119
+ actions: string[];
4120
+ principal_type: string;
4121
+ principal?: string | undefined;
4122
+ }[] | undefined;
3711
4123
  grants?: {
3712
4124
  actions: string[];
3713
4125
  principal_type: string;
3714
4126
  principal?: string | undefined;
3715
4127
  }[] | undefined;
4128
+ preserve_denies?: boolean | undefined;
3716
4129
  remove?: {
3717
4130
  principal_type: string;
3718
4131
  principal?: string | undefined;
3719
4132
  }[] | undefined;
4133
+ remove_denies?: {
4134
+ principal_type: string;
4135
+ principal?: string | undefined;
4136
+ }[] | undefined;
3720
4137
  } | undefined;
3721
4138
  attachments?: {
3722
4139
  type: string;
@@ -3752,7 +4169,9 @@ export declare const threadMessageSchema: z.ZodObject<{
3752
4169
  height?: number | null | undefined;
3753
4170
  url?: string | null | undefined;
3754
4171
  width?: number | null | undefined;
4172
+ byte_size?: number | null | undefined;
3755
4173
  content_type?: string | null | undefined;
4174
+ duration_ms?: number | null | undefined;
3756
4175
  filename?: string | null | undefined;
3757
4176
  image_source?: {
3758
4177
  mime_type?: string | null | undefined;
@@ -3763,6 +4182,8 @@ export declare const threadMessageSchema: z.ZodObject<{
3763
4182
  url?: string | null | undefined;
3764
4183
  width?: number | null | undefined;
3765
4184
  } | null | undefined;
4185
+ sha256?: string | null | undefined;
4186
+ url_expires_at?: string | null | undefined;
3766
4187
  variant_key?: string | undefined;
3767
4188
  }[] | undefined;
3768
4189
  version?: number | null | undefined;