@doist/twist-sdk 2.5.1 → 2.7.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.
@@ -1,5 +1,24 @@
1
1
  import { z } from 'zod';
2
2
  export declare const SystemMessageSchema: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnknown]>>>;
3
+ export declare const AttachmentSchema: z.ZodObject<{
4
+ attachmentId: z.ZodString;
5
+ urlType: z.ZodString;
6
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
7
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
10
+ underlyingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
14
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
15
+ duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
+ video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ videoType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ videoAutoPlay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
20
+ }, z.core.$loose>;
21
+ export type Attachment = z.infer<typeof AttachmentSchema>;
3
22
  export declare const BaseUserSchema: z.ZodObject<{
4
23
  id: z.ZodNumber;
5
24
  name: z.ZodString;
@@ -150,7 +169,24 @@ export declare const ThreadSchema: z.ZodPipe<z.ZodObject<{
150
169
  channelId: z.ZodNumber;
151
170
  workspaceId: z.ZodNumber;
152
171
  actions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
153
- attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
172
+ attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
173
+ attachmentId: z.ZodString;
174
+ urlType: z.ZodString;
175
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
176
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
177
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
178
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
179
+ underlyingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
180
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
181
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
182
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
183
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
184
+ duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
185
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
186
+ video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
187
+ videoType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
188
+ videoAutoPlay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
189
+ }, z.core.$loose>>>>;
154
190
  commentCount: z.ZodNumber;
155
191
  closed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
156
192
  directGroupMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
@@ -186,7 +222,24 @@ export declare const ThreadSchema: z.ZodPipe<z.ZodObject<{
186
222
  channelId: z.ZodNumber;
187
223
  posted: z.ZodDate;
188
224
  systemMessage: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnknown]>>>;
189
- attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
225
+ attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
226
+ attachmentId: z.ZodString;
227
+ urlType: z.ZodString;
228
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
229
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
230
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
231
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
232
+ underlyingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
233
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
234
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
235
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
236
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
237
+ duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
238
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
239
+ video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
240
+ videoType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
241
+ videoAutoPlay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
242
+ }, z.core.$loose>>>>;
190
243
  reactions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodNumber>>>>;
191
244
  actions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
192
245
  objIndex: z.ZodNumber;
@@ -219,7 +272,25 @@ export declare const ThreadSchema: z.ZodPipe<z.ZodObject<{
219
272
  isArchived: boolean;
220
273
  creatorName?: string | null | undefined;
221
274
  actions?: unknown[] | null | undefined;
222
- attachments?: unknown[] | null | undefined;
275
+ attachments?: {
276
+ [x: string]: unknown;
277
+ attachmentId: string;
278
+ urlType: string;
279
+ title?: string | null | undefined;
280
+ url?: string | null | undefined;
281
+ fileName?: string | null | undefined;
282
+ fileSize?: number | null | undefined;
283
+ underlyingType?: string | null | undefined;
284
+ description?: string | null | undefined;
285
+ image?: string | null | undefined;
286
+ imageWidth?: number | null | undefined;
287
+ imageHeight?: number | null | undefined;
288
+ duration?: string | null | undefined;
289
+ uploadState?: string | null | undefined;
290
+ video?: string | null | undefined;
291
+ videoType?: string | null | undefined;
292
+ videoAutoPlay?: boolean | null | undefined;
293
+ }[] | null | undefined;
223
294
  closed?: boolean | null | undefined;
224
295
  directGroupMentions?: number[] | null | undefined;
225
296
  directMentions?: number[] | null | undefined;
@@ -251,7 +322,25 @@ export declare const ThreadSchema: z.ZodPipe<z.ZodObject<{
251
322
  version: number;
252
323
  workspaceId: number;
253
324
  systemMessage?: unknown;
254
- attachments?: unknown[] | null | undefined;
325
+ attachments?: {
326
+ [x: string]: unknown;
327
+ attachmentId: string;
328
+ urlType: string;
329
+ title?: string | null | undefined;
330
+ url?: string | null | undefined;
331
+ fileName?: string | null | undefined;
332
+ fileSize?: number | null | undefined;
333
+ underlyingType?: string | null | undefined;
334
+ description?: string | null | undefined;
335
+ image?: string | null | undefined;
336
+ imageWidth?: number | null | undefined;
337
+ imageHeight?: number | null | undefined;
338
+ duration?: string | null | undefined;
339
+ uploadState?: string | null | undefined;
340
+ video?: string | null | undefined;
341
+ videoType?: string | null | undefined;
342
+ videoAutoPlay?: boolean | null | undefined;
343
+ }[] | null | undefined;
255
344
  reactions?: Record<string, number[]> | null | undefined;
256
345
  actions?: unknown[] | null | undefined;
257
346
  lastEdited?: Date | null | undefined;
@@ -279,7 +368,25 @@ export declare const ThreadSchema: z.ZodPipe<z.ZodObject<{
279
368
  isArchived: boolean;
280
369
  creatorName?: string | null | undefined;
281
370
  actions?: unknown[] | null | undefined;
282
- attachments?: unknown[] | null | undefined;
371
+ attachments?: {
372
+ [x: string]: unknown;
373
+ attachmentId: string;
374
+ urlType: string;
375
+ title?: string | null | undefined;
376
+ url?: string | null | undefined;
377
+ fileName?: string | null | undefined;
378
+ fileSize?: number | null | undefined;
379
+ underlyingType?: string | null | undefined;
380
+ description?: string | null | undefined;
381
+ image?: string | null | undefined;
382
+ imageWidth?: number | null | undefined;
383
+ imageHeight?: number | null | undefined;
384
+ duration?: string | null | undefined;
385
+ uploadState?: string | null | undefined;
386
+ video?: string | null | undefined;
387
+ videoType?: string | null | undefined;
388
+ videoAutoPlay?: boolean | null | undefined;
389
+ }[] | null | undefined;
283
390
  closed?: boolean | null | undefined;
284
391
  directGroupMentions?: number[] | null | undefined;
285
392
  directMentions?: number[] | null | undefined;
@@ -311,7 +418,25 @@ export declare const ThreadSchema: z.ZodPipe<z.ZodObject<{
311
418
  version: number;
312
419
  workspaceId: number;
313
420
  systemMessage?: unknown;
314
- attachments?: unknown[] | null | undefined;
421
+ attachments?: {
422
+ [x: string]: unknown;
423
+ attachmentId: string;
424
+ urlType: string;
425
+ title?: string | null | undefined;
426
+ url?: string | null | undefined;
427
+ fileName?: string | null | undefined;
428
+ fileSize?: number | null | undefined;
429
+ underlyingType?: string | null | undefined;
430
+ description?: string | null | undefined;
431
+ image?: string | null | undefined;
432
+ imageWidth?: number | null | undefined;
433
+ imageHeight?: number | null | undefined;
434
+ duration?: string | null | undefined;
435
+ uploadState?: string | null | undefined;
436
+ video?: string | null | undefined;
437
+ videoType?: string | null | undefined;
438
+ videoAutoPlay?: boolean | null | undefined;
439
+ }[] | null | undefined;
315
440
  reactions?: Record<string, number[]> | null | undefined;
316
441
  actions?: unknown[] | null | undefined;
317
442
  lastEdited?: Date | null | undefined;
@@ -355,7 +480,24 @@ export declare const ConversationSchema: z.ZodPipe<z.ZodObject<{
355
480
  conversationId: z.ZodNumber;
356
481
  posted: z.ZodDate;
357
482
  systemMessage: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnknown]>>>;
358
- attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
483
+ attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
484
+ attachmentId: z.ZodString;
485
+ urlType: z.ZodString;
486
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
487
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
488
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
489
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
490
+ underlyingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
491
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
492
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
493
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
494
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
495
+ duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
496
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
497
+ video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
498
+ videoType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
499
+ videoAutoPlay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
500
+ }, z.core.$loose>>>>;
359
501
  reactions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodNumber>>>>;
360
502
  actions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
361
503
  objIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -389,7 +531,25 @@ export declare const ConversationSchema: z.ZodPipe<z.ZodObject<{
389
531
  conversationId: number;
390
532
  posted: Date;
391
533
  systemMessage?: unknown;
392
- attachments?: unknown[] | null | undefined;
534
+ attachments?: {
535
+ [x: string]: unknown;
536
+ attachmentId: string;
537
+ urlType: string;
538
+ title?: string | null | undefined;
539
+ url?: string | null | undefined;
540
+ fileName?: string | null | undefined;
541
+ fileSize?: number | null | undefined;
542
+ underlyingType?: string | null | undefined;
543
+ description?: string | null | undefined;
544
+ image?: string | null | undefined;
545
+ imageWidth?: number | null | undefined;
546
+ imageHeight?: number | null | undefined;
547
+ duration?: string | null | undefined;
548
+ uploadState?: string | null | undefined;
549
+ video?: string | null | undefined;
550
+ videoType?: string | null | undefined;
551
+ videoAutoPlay?: boolean | null | undefined;
552
+ }[] | null | undefined;
393
553
  reactions?: Record<string, number[]> | null | undefined;
394
554
  actions?: unknown[] | null | undefined;
395
555
  objIndex?: number | null | undefined;
@@ -422,7 +582,25 @@ export declare const ConversationSchema: z.ZodPipe<z.ZodObject<{
422
582
  conversationId: number;
423
583
  posted: Date;
424
584
  systemMessage?: unknown;
425
- attachments?: unknown[] | null | undefined;
585
+ attachments?: {
586
+ [x: string]: unknown;
587
+ attachmentId: string;
588
+ urlType: string;
589
+ title?: string | null | undefined;
590
+ url?: string | null | undefined;
591
+ fileName?: string | null | undefined;
592
+ fileSize?: number | null | undefined;
593
+ underlyingType?: string | null | undefined;
594
+ description?: string | null | undefined;
595
+ image?: string | null | undefined;
596
+ imageWidth?: number | null | undefined;
597
+ imageHeight?: number | null | undefined;
598
+ duration?: string | null | undefined;
599
+ uploadState?: string | null | undefined;
600
+ video?: string | null | undefined;
601
+ videoType?: string | null | undefined;
602
+ videoAutoPlay?: boolean | null | undefined;
603
+ }[] | null | undefined;
426
604
  reactions?: Record<string, number[]> | null | undefined;
427
605
  actions?: unknown[] | null | undefined;
428
606
  objIndex?: number | null | undefined;
@@ -447,7 +625,24 @@ export declare const CommentSchema: z.ZodPipe<z.ZodObject<{
447
625
  directMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
448
626
  directGroupMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
449
627
  systemMessage: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnknown]>>>;
450
- attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
628
+ attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
629
+ attachmentId: z.ZodString;
630
+ urlType: z.ZodString;
631
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
632
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
633
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
634
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
635
+ underlyingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
636
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
637
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
638
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
639
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
640
+ duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
641
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
642
+ video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
643
+ videoType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
644
+ videoAutoPlay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
645
+ }, z.core.$loose>>>>;
451
646
  reactions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
452
647
  objIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
453
648
  creatorName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -473,7 +668,25 @@ export declare const CommentSchema: z.ZodPipe<z.ZodObject<{
473
668
  directMentions?: number[] | null | undefined;
474
669
  directGroupMentions?: number[] | null | undefined;
475
670
  systemMessage?: unknown;
476
- attachments?: unknown[] | null | undefined;
671
+ attachments?: {
672
+ [x: string]: unknown;
673
+ attachmentId: string;
674
+ urlType: string;
675
+ title?: string | null | undefined;
676
+ url?: string | null | undefined;
677
+ fileName?: string | null | undefined;
678
+ fileSize?: number | null | undefined;
679
+ underlyingType?: string | null | undefined;
680
+ description?: string | null | undefined;
681
+ image?: string | null | undefined;
682
+ imageWidth?: number | null | undefined;
683
+ imageHeight?: number | null | undefined;
684
+ duration?: string | null | undefined;
685
+ uploadState?: string | null | undefined;
686
+ video?: string | null | undefined;
687
+ videoType?: string | null | undefined;
688
+ videoAutoPlay?: boolean | null | undefined;
689
+ }[] | null | undefined;
477
690
  reactions?: Record<string, unknown> | null | undefined;
478
691
  objIndex?: number | null | undefined;
479
692
  creatorName?: string | null | undefined;
@@ -497,7 +710,25 @@ export declare const CommentSchema: z.ZodPipe<z.ZodObject<{
497
710
  directMentions?: number[] | null | undefined;
498
711
  directGroupMentions?: number[] | null | undefined;
499
712
  systemMessage?: unknown;
500
- attachments?: unknown[] | null | undefined;
713
+ attachments?: {
714
+ [x: string]: unknown;
715
+ attachmentId: string;
716
+ urlType: string;
717
+ title?: string | null | undefined;
718
+ url?: string | null | undefined;
719
+ fileName?: string | null | undefined;
720
+ fileSize?: number | null | undefined;
721
+ underlyingType?: string | null | undefined;
722
+ description?: string | null | undefined;
723
+ image?: string | null | undefined;
724
+ imageWidth?: number | null | undefined;
725
+ imageHeight?: number | null | undefined;
726
+ duration?: string | null | undefined;
727
+ uploadState?: string | null | undefined;
728
+ video?: string | null | undefined;
729
+ videoType?: string | null | undefined;
730
+ videoAutoPlay?: boolean | null | undefined;
731
+ }[] | null | undefined;
501
732
  reactions?: Record<string, unknown> | null | undefined;
502
733
  objIndex?: number | null | undefined;
503
734
  creatorName?: string | null | undefined;
@@ -554,7 +785,24 @@ export declare const ConversationMessageSchema: z.ZodPipe<z.ZodObject<{
554
785
  conversationId: z.ZodNumber;
555
786
  posted: z.ZodDate;
556
787
  systemMessage: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnknown]>>>;
557
- attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
788
+ attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
789
+ attachmentId: z.ZodString;
790
+ urlType: z.ZodString;
791
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
792
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
793
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
794
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
795
+ underlyingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
796
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
797
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
798
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
799
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
800
+ duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
801
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
802
+ video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
803
+ videoType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
804
+ videoAutoPlay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
805
+ }, z.core.$loose>>>>;
558
806
  reactions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodNumber>>>>;
559
807
  actions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
560
808
  objIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -573,7 +821,25 @@ export declare const ConversationMessageSchema: z.ZodPipe<z.ZodObject<{
573
821
  posted: Date;
574
822
  workspaceId: number;
575
823
  systemMessage?: unknown;
576
- attachments?: unknown[] | null | undefined;
824
+ attachments?: {
825
+ [x: string]: unknown;
826
+ attachmentId: string;
827
+ urlType: string;
828
+ title?: string | null | undefined;
829
+ url?: string | null | undefined;
830
+ fileName?: string | null | undefined;
831
+ fileSize?: number | null | undefined;
832
+ underlyingType?: string | null | undefined;
833
+ description?: string | null | undefined;
834
+ image?: string | null | undefined;
835
+ imageWidth?: number | null | undefined;
836
+ imageHeight?: number | null | undefined;
837
+ duration?: string | null | undefined;
838
+ uploadState?: string | null | undefined;
839
+ video?: string | null | undefined;
840
+ videoType?: string | null | undefined;
841
+ videoAutoPlay?: boolean | null | undefined;
842
+ }[] | null | undefined;
577
843
  reactions?: Record<string, number[]> | null | undefined;
578
844
  actions?: unknown[] | null | undefined;
579
845
  objIndex?: number | null | undefined;
@@ -590,7 +856,25 @@ export declare const ConversationMessageSchema: z.ZodPipe<z.ZodObject<{
590
856
  posted: Date;
591
857
  workspaceId: number;
592
858
  systemMessage?: unknown;
593
- attachments?: unknown[] | null | undefined;
859
+ attachments?: {
860
+ [x: string]: unknown;
861
+ attachmentId: string;
862
+ urlType: string;
863
+ title?: string | null | undefined;
864
+ url?: string | null | undefined;
865
+ fileName?: string | null | undefined;
866
+ fileSize?: number | null | undefined;
867
+ underlyingType?: string | null | undefined;
868
+ description?: string | null | undefined;
869
+ image?: string | null | undefined;
870
+ imageWidth?: number | null | undefined;
871
+ imageHeight?: number | null | undefined;
872
+ duration?: string | null | undefined;
873
+ uploadState?: string | null | undefined;
874
+ video?: string | null | undefined;
875
+ videoType?: string | null | undefined;
876
+ videoAutoPlay?: boolean | null | undefined;
877
+ }[] | null | undefined;
594
878
  reactions?: Record<string, number[]> | null | undefined;
595
879
  actions?: unknown[] | null | undefined;
596
880
  objIndex?: number | null | undefined;
@@ -610,7 +894,24 @@ export declare const InboxThreadSchema: z.ZodPipe<z.ZodObject<{
610
894
  channelId: z.ZodNumber;
611
895
  workspaceId: z.ZodNumber;
612
896
  actions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
613
- attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
897
+ attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
898
+ attachmentId: z.ZodString;
899
+ urlType: z.ZodString;
900
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
901
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
902
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
903
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
904
+ underlyingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
905
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
906
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
907
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
908
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
909
+ duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
910
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
911
+ video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
912
+ videoType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
913
+ videoAutoPlay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
914
+ }, z.core.$loose>>>>;
614
915
  commentCount: z.ZodNumber;
615
916
  directGroupMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
616
917
  directMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
@@ -648,7 +949,24 @@ export declare const InboxThreadSchema: z.ZodPipe<z.ZodObject<{
648
949
  directMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
649
950
  directGroupMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
650
951
  systemMessage: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnknown]>>>;
651
- attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
952
+ attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
953
+ attachmentId: z.ZodString;
954
+ urlType: z.ZodString;
955
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
956
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
957
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
958
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
959
+ underlyingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
960
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
961
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
962
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
963
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
964
+ duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
965
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
966
+ video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
967
+ videoType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
968
+ videoAutoPlay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
969
+ }, z.core.$loose>>>>;
652
970
  reactions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
653
971
  objIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
654
972
  creatorName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -674,7 +992,25 @@ export declare const InboxThreadSchema: z.ZodPipe<z.ZodObject<{
674
992
  directMentions?: number[] | null | undefined;
675
993
  directGroupMentions?: number[] | null | undefined;
676
994
  systemMessage?: unknown;
677
- attachments?: unknown[] | null | undefined;
995
+ attachments?: {
996
+ [x: string]: unknown;
997
+ attachmentId: string;
998
+ urlType: string;
999
+ title?: string | null | undefined;
1000
+ url?: string | null | undefined;
1001
+ fileName?: string | null | undefined;
1002
+ fileSize?: number | null | undefined;
1003
+ underlyingType?: string | null | undefined;
1004
+ description?: string | null | undefined;
1005
+ image?: string | null | undefined;
1006
+ imageWidth?: number | null | undefined;
1007
+ imageHeight?: number | null | undefined;
1008
+ duration?: string | null | undefined;
1009
+ uploadState?: string | null | undefined;
1010
+ video?: string | null | undefined;
1011
+ videoType?: string | null | undefined;
1012
+ videoAutoPlay?: boolean | null | undefined;
1013
+ }[] | null | undefined;
678
1014
  reactions?: Record<string, unknown> | null | undefined;
679
1015
  objIndex?: number | null | undefined;
680
1016
  creatorName?: string | null | undefined;
@@ -698,7 +1034,25 @@ export declare const InboxThreadSchema: z.ZodPipe<z.ZodObject<{
698
1034
  directMentions?: number[] | null | undefined;
699
1035
  directGroupMentions?: number[] | null | undefined;
700
1036
  systemMessage?: unknown;
701
- attachments?: unknown[] | null | undefined;
1037
+ attachments?: {
1038
+ [x: string]: unknown;
1039
+ attachmentId: string;
1040
+ urlType: string;
1041
+ title?: string | null | undefined;
1042
+ url?: string | null | undefined;
1043
+ fileName?: string | null | undefined;
1044
+ fileSize?: number | null | undefined;
1045
+ underlyingType?: string | null | undefined;
1046
+ description?: string | null | undefined;
1047
+ image?: string | null | undefined;
1048
+ imageWidth?: number | null | undefined;
1049
+ imageHeight?: number | null | undefined;
1050
+ duration?: string | null | undefined;
1051
+ uploadState?: string | null | undefined;
1052
+ video?: string | null | undefined;
1053
+ videoType?: string | null | undefined;
1054
+ videoAutoPlay?: boolean | null | undefined;
1055
+ }[] | null | undefined;
702
1056
  reactions?: Record<string, unknown> | null | undefined;
703
1057
  objIndex?: number | null | undefined;
704
1058
  creatorName?: string | null | undefined;
@@ -732,7 +1086,25 @@ export declare const InboxThreadSchema: z.ZodPipe<z.ZodObject<{
732
1086
  closed: boolean;
733
1087
  creatorName?: string | null | undefined;
734
1088
  actions?: unknown[] | null | undefined;
735
- attachments?: unknown[] | null | undefined;
1089
+ attachments?: {
1090
+ [x: string]: unknown;
1091
+ attachmentId: string;
1092
+ urlType: string;
1093
+ title?: string | null | undefined;
1094
+ url?: string | null | undefined;
1095
+ fileName?: string | null | undefined;
1096
+ fileSize?: number | null | undefined;
1097
+ underlyingType?: string | null | undefined;
1098
+ description?: string | null | undefined;
1099
+ image?: string | null | undefined;
1100
+ imageWidth?: number | null | undefined;
1101
+ imageHeight?: number | null | undefined;
1102
+ duration?: string | null | undefined;
1103
+ uploadState?: string | null | undefined;
1104
+ video?: string | null | undefined;
1105
+ videoType?: string | null | undefined;
1106
+ videoAutoPlay?: boolean | null | undefined;
1107
+ }[] | null | undefined;
736
1108
  directGroupMentions?: number[] | null | undefined;
737
1109
  directMentions?: number[] | null | undefined;
738
1110
  groups?: number[] | null | undefined;
@@ -762,7 +1134,25 @@ export declare const InboxThreadSchema: z.ZodPipe<z.ZodObject<{
762
1134
  directMentions?: number[] | null | undefined;
763
1135
  directGroupMentions?: number[] | null | undefined;
764
1136
  systemMessage?: unknown;
765
- attachments?: unknown[] | null | undefined;
1137
+ attachments?: {
1138
+ [x: string]: unknown;
1139
+ attachmentId: string;
1140
+ urlType: string;
1141
+ title?: string | null | undefined;
1142
+ url?: string | null | undefined;
1143
+ fileName?: string | null | undefined;
1144
+ fileSize?: number | null | undefined;
1145
+ underlyingType?: string | null | undefined;
1146
+ description?: string | null | undefined;
1147
+ image?: string | null | undefined;
1148
+ imageWidth?: number | null | undefined;
1149
+ imageHeight?: number | null | undefined;
1150
+ duration?: string | null | undefined;
1151
+ uploadState?: string | null | undefined;
1152
+ video?: string | null | undefined;
1153
+ videoType?: string | null | undefined;
1154
+ videoAutoPlay?: boolean | null | undefined;
1155
+ }[] | null | undefined;
766
1156
  reactions?: Record<string, unknown> | null | undefined;
767
1157
  objIndex?: number | null | undefined;
768
1158
  creatorName?: string | null | undefined;
@@ -795,7 +1185,25 @@ export declare const InboxThreadSchema: z.ZodPipe<z.ZodObject<{
795
1185
  closed: boolean;
796
1186
  creatorName?: string | null | undefined;
797
1187
  actions?: unknown[] | null | undefined;
798
- attachments?: unknown[] | null | undefined;
1188
+ attachments?: {
1189
+ [x: string]: unknown;
1190
+ attachmentId: string;
1191
+ urlType: string;
1192
+ title?: string | null | undefined;
1193
+ url?: string | null | undefined;
1194
+ fileName?: string | null | undefined;
1195
+ fileSize?: number | null | undefined;
1196
+ underlyingType?: string | null | undefined;
1197
+ description?: string | null | undefined;
1198
+ image?: string | null | undefined;
1199
+ imageWidth?: number | null | undefined;
1200
+ imageHeight?: number | null | undefined;
1201
+ duration?: string | null | undefined;
1202
+ uploadState?: string | null | undefined;
1203
+ video?: string | null | undefined;
1204
+ videoType?: string | null | undefined;
1205
+ videoAutoPlay?: boolean | null | undefined;
1206
+ }[] | null | undefined;
799
1207
  directGroupMentions?: number[] | null | undefined;
800
1208
  directMentions?: number[] | null | undefined;
801
1209
  groups?: number[] | null | undefined;
@@ -825,7 +1233,25 @@ export declare const InboxThreadSchema: z.ZodPipe<z.ZodObject<{
825
1233
  directMentions?: number[] | null | undefined;
826
1234
  directGroupMentions?: number[] | null | undefined;
827
1235
  systemMessage?: unknown;
828
- attachments?: unknown[] | null | undefined;
1236
+ attachments?: {
1237
+ [x: string]: unknown;
1238
+ attachmentId: string;
1239
+ urlType: string;
1240
+ title?: string | null | undefined;
1241
+ url?: string | null | undefined;
1242
+ fileName?: string | null | undefined;
1243
+ fileSize?: number | null | undefined;
1244
+ underlyingType?: string | null | undefined;
1245
+ description?: string | null | undefined;
1246
+ image?: string | null | undefined;
1247
+ imageWidth?: number | null | undefined;
1248
+ imageHeight?: number | null | undefined;
1249
+ duration?: string | null | undefined;
1250
+ uploadState?: string | null | undefined;
1251
+ video?: string | null | undefined;
1252
+ videoType?: string | null | undefined;
1253
+ videoAutoPlay?: boolean | null | undefined;
1254
+ }[] | null | undefined;
829
1255
  reactions?: Record<string, unknown> | null | undefined;
830
1256
  objIndex?: number | null | undefined;
831
1257
  creatorName?: string | null | undefined;
@@ -860,8 +1286,8 @@ export declare const SearchResultSchema: z.ZodObject<{
860
1286
  id: z.ZodString;
861
1287
  type: z.ZodEnum<{
862
1288
  thread: "thread";
863
- comment: "comment";
864
1289
  message: "message";
1290
+ comment: "comment";
865
1291
  conversation: "conversation";
866
1292
  }>;
867
1293
  snippet: z.ZodString;
@@ -19,3 +19,22 @@ export declare const WORKSPACE_PLANS: readonly ["free", "unlimited"];
19
19
  * - `'unlimited'` - Unlimited plan
20
20
  */
21
21
  export type WorkspacePlan = (typeof WORKSPACE_PLANS)[number];
22
+ export declare const NOTIFY_AUDIENCES: readonly ["channel", "thread"];
23
+ /**
24
+ * The audience to notify when posting a comment, in addition to any
25
+ * individual `recipients` or custom `groups`.
26
+ *
27
+ * @remarks
28
+ * Possible values:
29
+ * - `'channel'` - Notify everyone in the channel.
30
+ * - `'thread'` - Notify everyone who has interacted with the thread.
31
+ */
32
+ export type NotifyAudience = (typeof NOTIFY_AUDIENCES)[number];
33
+ /**
34
+ * Internal mapping from {@link NotifyAudience} to the magic group IDs that
35
+ * Twist's `comments/add` endpoint uses on the wire. Exposed here so the
36
+ * audience constants and their encoding stay in a single source of truth;
37
+ * SDK consumers should use {@link NotifyAudience} via `notifyAudience` on the
38
+ * request args rather than passing these IDs directly.
39
+ */
40
+ export declare const NOTIFY_AUDIENCE_GROUP_IDS: Readonly<Record<NotifyAudience, number>>;