@doist/twist-sdk 2.7.0 → 2.9.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 (50) hide show
  1. package/dist/cjs/clients/add-comment-helper.js +1 -2
  2. package/dist/cjs/clients/attachments-client.js +124 -0
  3. package/dist/cjs/clients/base-client.js +10 -0
  4. package/dist/cjs/clients/channels-client.js +9 -6
  5. package/dist/cjs/clients/comments-client.js +16 -6
  6. package/dist/cjs/clients/conversation-messages-client.js +9 -8
  7. package/dist/cjs/clients/conversations-client.js +11 -8
  8. package/dist/cjs/clients/inbox-client.js +6 -3
  9. package/dist/cjs/clients/threads-client.js +18 -9
  10. package/dist/cjs/clients/workspace-users-client.js +9 -2
  11. package/dist/cjs/clients/workspaces-client.js +7 -3
  12. package/dist/cjs/consts/endpoints.js +2 -1
  13. package/dist/cjs/index.js +3 -1
  14. package/dist/cjs/twist-api.js +2 -0
  15. package/dist/cjs/types/entities.js +99 -79
  16. package/dist/cjs/utils/multipart-upload.js +154 -0
  17. package/dist/esm/clients/add-comment-helper.js +1 -2
  18. package/dist/esm/clients/attachments-client.js +121 -0
  19. package/dist/esm/clients/base-client.js +10 -0
  20. package/dist/esm/clients/channels-client.js +10 -7
  21. package/dist/esm/clients/comments-client.js +17 -7
  22. package/dist/esm/clients/conversation-messages-client.js +10 -9
  23. package/dist/esm/clients/conversations-client.js +12 -9
  24. package/dist/esm/clients/inbox-client.js +7 -4
  25. package/dist/esm/clients/threads-client.js +19 -10
  26. package/dist/esm/clients/workspace-users-client.js +9 -2
  27. package/dist/esm/clients/workspaces-client.js +8 -4
  28. package/dist/esm/consts/endpoints.js +1 -0
  29. package/dist/esm/index.js +1 -0
  30. package/dist/esm/twist-api.js +2 -0
  31. package/dist/esm/types/entities.js +92 -78
  32. package/dist/esm/utils/multipart-upload.js +150 -0
  33. package/dist/types/clients/add-comment-helper.d.ts +3 -1
  34. package/dist/types/clients/attachments-client.d.ts +39 -0
  35. package/dist/types/clients/base-client.d.ts +4 -0
  36. package/dist/types/clients/channels-client.d.ts +1 -0
  37. package/dist/types/clients/comments-client.d.ts +1 -0
  38. package/dist/types/clients/conversation-messages-client.d.ts +1 -0
  39. package/dist/types/clients/conversations-client.d.ts +1 -0
  40. package/dist/types/clients/inbox-client.d.ts +1 -0
  41. package/dist/types/clients/threads-client.d.ts +2 -0
  42. package/dist/types/clients/workspace-users-client.d.ts +5 -0
  43. package/dist/types/clients/workspaces-client.d.ts +1 -0
  44. package/dist/types/consts/endpoints.d.ts +1 -0
  45. package/dist/types/index.d.ts +1 -0
  46. package/dist/types/twist-api.d.ts +2 -0
  47. package/dist/types/types/entities.d.ts +1539 -185
  48. package/dist/types/types/requests.d.ts +22 -0
  49. package/dist/types/utils/multipart-upload.d.ts +53 -0
  50. package/package.json +6 -2
@@ -103,6 +103,81 @@ export declare const WorkspaceSchema: z.ZodObject<{
103
103
  }>>>;
104
104
  }, z.core.$strip>;
105
105
  export type Workspace = z.infer<typeof WorkspaceSchema>;
106
+ export declare const ChannelObjectSchema: z.ZodObject<{
107
+ id: z.ZodNumber;
108
+ name: z.ZodString;
109
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
110
+ creator: z.ZodNumber;
111
+ userIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
112
+ color: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
113
+ public: z.ZodBoolean;
114
+ workspaceId: z.ZodNumber;
115
+ archived: z.ZodBoolean;
116
+ created: z.ZodDate;
117
+ useDefaultRecipients: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
118
+ defaultGroups: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
119
+ defaultRecipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
120
+ isFavorited: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
121
+ icon: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
122
+ version: z.ZodNumber;
123
+ filters: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
124
+ }, z.core.$strip>;
125
+ export declare function createChannelSchema(linkBaseUrl?: string): z.ZodPipe<z.ZodObject<{
126
+ id: z.ZodNumber;
127
+ name: z.ZodString;
128
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
129
+ creator: z.ZodNumber;
130
+ userIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
131
+ color: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
132
+ public: z.ZodBoolean;
133
+ workspaceId: z.ZodNumber;
134
+ archived: z.ZodBoolean;
135
+ created: z.ZodDate;
136
+ useDefaultRecipients: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
137
+ defaultGroups: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
138
+ defaultRecipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
139
+ isFavorited: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
140
+ icon: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
141
+ version: z.ZodNumber;
142
+ filters: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
143
+ }, z.core.$strip>, z.ZodTransform<{
144
+ url: string;
145
+ id: number;
146
+ name: string;
147
+ creator: number;
148
+ public: boolean;
149
+ workspaceId: number;
150
+ archived: boolean;
151
+ created: Date;
152
+ version: number;
153
+ description?: string | null | undefined;
154
+ userIds?: number[] | null | undefined;
155
+ color?: number | null | undefined;
156
+ useDefaultRecipients?: boolean | null | undefined;
157
+ defaultGroups?: number[] | null | undefined;
158
+ defaultRecipients?: number[] | null | undefined;
159
+ isFavorited?: boolean | null | undefined;
160
+ icon?: number | null | undefined;
161
+ filters?: Record<string, string> | null | undefined;
162
+ }, {
163
+ id: number;
164
+ name: string;
165
+ creator: number;
166
+ public: boolean;
167
+ workspaceId: number;
168
+ archived: boolean;
169
+ created: Date;
170
+ version: number;
171
+ description?: string | null | undefined;
172
+ userIds?: number[] | null | undefined;
173
+ color?: number | null | undefined;
174
+ useDefaultRecipients?: boolean | null | undefined;
175
+ defaultGroups?: number[] | null | undefined;
176
+ defaultRecipients?: number[] | null | undefined;
177
+ isFavorited?: boolean | null | undefined;
178
+ icon?: number | null | undefined;
179
+ filters?: Record<string, string> | null | undefined;
180
+ }>>;
106
181
  export declare const ChannelSchema: z.ZodPipe<z.ZodObject<{
107
182
  id: z.ZodNumber;
108
183
  name: z.ZodString;
@@ -160,7 +235,102 @@ export declare const ChannelSchema: z.ZodPipe<z.ZodObject<{
160
235
  filters?: Record<string, string> | null | undefined;
161
236
  }>>;
162
237
  export type Channel = z.infer<typeof ChannelSchema>;
163
- export declare const ThreadSchema: z.ZodPipe<z.ZodObject<{
238
+ export declare const ThreadObjectSchema: z.ZodObject<{
239
+ id: z.ZodNumber;
240
+ title: z.ZodString;
241
+ content: z.ZodString;
242
+ creator: z.ZodNumber;
243
+ creatorName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
244
+ channelId: z.ZodNumber;
245
+ workspaceId: z.ZodNumber;
246
+ actions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
247
+ attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
248
+ attachmentId: z.ZodString;
249
+ urlType: z.ZodString;
250
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
251
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
252
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
253
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
254
+ underlyingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
255
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
256
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
257
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
258
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
259
+ duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
260
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
261
+ video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
262
+ videoType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
263
+ videoAutoPlay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
264
+ }, z.core.$loose>>>>;
265
+ commentCount: z.ZodNumber;
266
+ closed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
267
+ directGroupMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
268
+ directMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
269
+ groups: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
270
+ lastEdited: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
271
+ lastObjIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
272
+ lastUpdated: z.ZodDate;
273
+ mutedUntil: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
274
+ participants: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
275
+ pinned: z.ZodBoolean;
276
+ pinnedDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
277
+ posted: z.ZodDate;
278
+ reactions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
279
+ recipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
280
+ responders: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
281
+ snippet: z.ZodString;
282
+ snippetCreator: z.ZodNumber;
283
+ snippetMaskAvatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
284
+ snippetMaskPoster: z.ZodOptional<z.ZodNullable<z.ZodString>>;
285
+ starred: z.ZodBoolean;
286
+ systemMessage: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnknown]>>>;
287
+ toEmails: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
288
+ isArchived: z.ZodBoolean;
289
+ isSaved: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
290
+ inInbox: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
291
+ lastComment: z.ZodOptional<z.ZodNullable<z.ZodObject<{
292
+ id: z.ZodNumber;
293
+ content: z.ZodString;
294
+ creator: z.ZodNumber;
295
+ creatorName: z.ZodString;
296
+ threadId: z.ZodNumber;
297
+ channelId: z.ZodNumber;
298
+ posted: z.ZodDate;
299
+ systemMessage: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnknown]>>>;
300
+ attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
301
+ attachmentId: z.ZodString;
302
+ urlType: z.ZodString;
303
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
304
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
305
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
306
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
307
+ underlyingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
308
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
309
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
310
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
311
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
312
+ duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
313
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
314
+ video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
315
+ videoType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
316
+ videoAutoPlay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
317
+ }, z.core.$loose>>>>;
318
+ reactions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodNumber>>>>;
319
+ actions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
320
+ objIndex: z.ZodNumber;
321
+ lastEdited: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
322
+ deleted: z.ZodBoolean;
323
+ deletedBy: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
324
+ directGroupMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
325
+ directMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
326
+ groups: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
327
+ recipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
328
+ toEmails: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
329
+ version: z.ZodNumber;
330
+ workspaceId: z.ZodNumber;
331
+ }, z.core.$strip>>>;
332
+ }, z.core.$strip>;
333
+ export declare function createThreadSchema(linkBaseUrl?: string): z.ZodPipe<z.ZodObject<{
164
334
  id: z.ZodNumber;
165
335
  title: z.ZodString;
166
336
  content: z.ZodString;
@@ -448,36 +618,66 @@ export declare const ThreadSchema: z.ZodPipe<z.ZodObject<{
448
618
  toEmails?: string[] | null | undefined;
449
619
  } | null | undefined;
450
620
  }>>;
451
- export type Thread = z.infer<typeof ThreadSchema>;
452
- export declare const GroupSchema: z.ZodObject<{
453
- id: z.ZodNumber;
454
- name: z.ZodString;
455
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
456
- workspaceId: z.ZodNumber;
457
- userIds: z.ZodArray<z.ZodNumber>;
458
- version: z.ZodNumber;
459
- }, z.core.$strip>;
460
- export type Group = z.infer<typeof GroupSchema>;
461
- export declare const ConversationSchema: z.ZodPipe<z.ZodObject<{
621
+ export declare const ThreadSchema: z.ZodPipe<z.ZodObject<{
462
622
  id: z.ZodNumber;
623
+ title: z.ZodString;
624
+ content: z.ZodString;
625
+ creator: z.ZodNumber;
626
+ creatorName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
627
+ channelId: z.ZodNumber;
463
628
  workspaceId: z.ZodNumber;
464
- userIds: z.ZodArray<z.ZodNumber>;
465
- messageCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
466
- lastObjIndex: z.ZodNumber;
467
- snippet: z.ZodString;
468
- snippetCreators: z.ZodArray<z.ZodNumber>;
469
- lastActive: z.ZodDate;
629
+ actions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
630
+ attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
631
+ attachmentId: z.ZodString;
632
+ urlType: z.ZodString;
633
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
634
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
635
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
636
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
637
+ underlyingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
638
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
639
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
640
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
641
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
642
+ duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
643
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
644
+ video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
645
+ videoType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
646
+ videoAutoPlay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
647
+ }, z.core.$loose>>>>;
648
+ commentCount: z.ZodNumber;
649
+ closed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
650
+ directGroupMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
651
+ directMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
652
+ groups: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
653
+ lastEdited: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
654
+ lastObjIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
655
+ lastUpdated: z.ZodDate;
470
656
  mutedUntil: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
471
- archived: z.ZodBoolean;
472
- created: z.ZodDate;
473
- creator: z.ZodNumber;
474
- title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
475
- private: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
476
- lastMessage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
657
+ participants: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
658
+ pinned: z.ZodBoolean;
659
+ pinnedDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
660
+ posted: z.ZodDate;
661
+ reactions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
662
+ recipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
663
+ responders: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
664
+ snippet: z.ZodString;
665
+ snippetCreator: z.ZodNumber;
666
+ snippetMaskAvatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
667
+ snippetMaskPoster: z.ZodOptional<z.ZodNullable<z.ZodString>>;
668
+ starred: z.ZodBoolean;
669
+ systemMessage: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnknown]>>>;
670
+ toEmails: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
671
+ isArchived: z.ZodBoolean;
672
+ isSaved: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
673
+ inInbox: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
674
+ lastComment: z.ZodOptional<z.ZodNullable<z.ZodObject<{
477
675
  id: z.ZodNumber;
478
676
  content: z.ZodString;
479
677
  creator: z.ZodNumber;
480
- conversationId: z.ZodNumber;
678
+ creatorName: z.ZodString;
679
+ threadId: z.ZodNumber;
680
+ channelId: z.ZodNumber;
481
681
  posted: z.ZodDate;
482
682
  systemMessage: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnknown]>>>;
483
683
  attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
@@ -500,36 +700,85 @@ export declare const ConversationSchema: z.ZodPipe<z.ZodObject<{
500
700
  }, z.core.$loose>>>>;
501
701
  reactions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodNumber>>>>;
502
702
  actions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
503
- objIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
703
+ objIndex: z.ZodNumber;
504
704
  lastEdited: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
505
- deleted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
705
+ deleted: z.ZodBoolean;
706
+ deletedBy: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
506
707
  directGroupMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
507
708
  directMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
508
- version: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
509
- workspaceId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
510
- }, z.core.$strip>>>;
511
- }, z.core.$strip>, z.ZodTransform<{
512
- url: string;
709
+ groups: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
710
+ recipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
711
+ toEmails: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
712
+ version: z.ZodNumber;
713
+ workspaceId: z.ZodNumber;
714
+ }, z.core.$strip>>>;
715
+ }, z.core.$strip>, z.ZodTransform<{
716
+ url: string;
513
717
  id: number;
718
+ title: string;
719
+ content: string;
720
+ creator: number;
721
+ channelId: number;
514
722
  workspaceId: number;
515
- userIds: number[];
516
- lastObjIndex: number;
723
+ commentCount: number;
724
+ lastUpdated: Date;
725
+ pinned: boolean;
726
+ posted: Date;
517
727
  snippet: string;
518
- snippetCreators: number[];
519
- lastActive: Date;
520
- archived: boolean;
521
- created: Date;
522
- creator: number;
523
- messageCount?: number | null | undefined;
728
+ snippetCreator: number;
729
+ starred: boolean;
730
+ isArchived: boolean;
731
+ creatorName?: string | null | undefined;
732
+ actions?: unknown[] | null | undefined;
733
+ attachments?: {
734
+ [x: string]: unknown;
735
+ attachmentId: string;
736
+ urlType: string;
737
+ title?: string | null | undefined;
738
+ url?: string | null | undefined;
739
+ fileName?: string | null | undefined;
740
+ fileSize?: number | null | undefined;
741
+ underlyingType?: string | null | undefined;
742
+ description?: string | null | undefined;
743
+ image?: string | null | undefined;
744
+ imageWidth?: number | null | undefined;
745
+ imageHeight?: number | null | undefined;
746
+ duration?: string | null | undefined;
747
+ uploadState?: string | null | undefined;
748
+ video?: string | null | undefined;
749
+ videoType?: string | null | undefined;
750
+ videoAutoPlay?: boolean | null | undefined;
751
+ }[] | null | undefined;
752
+ closed?: boolean | null | undefined;
753
+ directGroupMentions?: number[] | null | undefined;
754
+ directMentions?: number[] | null | undefined;
755
+ groups?: number[] | null | undefined;
756
+ lastEdited?: Date | null | undefined;
757
+ lastObjIndex?: number | null | undefined;
524
758
  mutedUntil?: Date | null | undefined;
525
- title?: string | null | undefined;
526
- private?: boolean | null | undefined;
527
- lastMessage?: {
759
+ participants?: number[] | null | undefined;
760
+ pinnedDate?: Date | null | undefined;
761
+ reactions?: Record<string, unknown> | null | undefined;
762
+ recipients?: number[] | null | undefined;
763
+ responders?: number[] | null | undefined;
764
+ snippetMaskAvatarUrl?: string | null | undefined;
765
+ snippetMaskPoster?: string | null | undefined;
766
+ systemMessage?: unknown;
767
+ toEmails?: string[] | null | undefined;
768
+ isSaved?: boolean | null | undefined;
769
+ inInbox?: boolean | null | undefined;
770
+ lastComment?: {
528
771
  id: number;
529
772
  content: string;
530
773
  creator: number;
531
- conversationId: number;
774
+ creatorName: string;
775
+ threadId: number;
776
+ channelId: number;
532
777
  posted: Date;
778
+ objIndex: number;
779
+ deleted: boolean;
780
+ version: number;
781
+ workspaceId: number;
533
782
  systemMessage?: unknown;
534
783
  attachments?: {
535
784
  [x: string]: unknown;
@@ -552,35 +801,80 @@ export declare const ConversationSchema: z.ZodPipe<z.ZodObject<{
552
801
  }[] | null | undefined;
553
802
  reactions?: Record<string, number[]> | null | undefined;
554
803
  actions?: unknown[] | null | undefined;
555
- objIndex?: number | null | undefined;
556
804
  lastEdited?: Date | null | undefined;
557
- deleted?: boolean | null | undefined;
805
+ deletedBy?: number | null | undefined;
558
806
  directGroupMentions?: number[] | null | undefined;
559
807
  directMentions?: number[] | null | undefined;
560
- version?: number | null | undefined;
561
- workspaceId?: number | null | undefined;
808
+ groups?: number[] | null | undefined;
809
+ recipients?: number[] | null | undefined;
810
+ toEmails?: string[] | null | undefined;
562
811
  } | null | undefined;
563
812
  }, {
564
813
  id: number;
814
+ title: string;
815
+ content: string;
816
+ creator: number;
817
+ channelId: number;
565
818
  workspaceId: number;
566
- userIds: number[];
567
- lastObjIndex: number;
819
+ commentCount: number;
820
+ lastUpdated: Date;
821
+ pinned: boolean;
822
+ posted: Date;
568
823
  snippet: string;
569
- snippetCreators: number[];
570
- lastActive: Date;
571
- archived: boolean;
572
- created: Date;
573
- creator: number;
574
- messageCount?: number | null | undefined;
824
+ snippetCreator: number;
825
+ starred: boolean;
826
+ isArchived: boolean;
827
+ creatorName?: string | null | undefined;
828
+ actions?: unknown[] | null | undefined;
829
+ attachments?: {
830
+ [x: string]: unknown;
831
+ attachmentId: string;
832
+ urlType: string;
833
+ title?: string | null | undefined;
834
+ url?: string | null | undefined;
835
+ fileName?: string | null | undefined;
836
+ fileSize?: number | null | undefined;
837
+ underlyingType?: string | null | undefined;
838
+ description?: string | null | undefined;
839
+ image?: string | null | undefined;
840
+ imageWidth?: number | null | undefined;
841
+ imageHeight?: number | null | undefined;
842
+ duration?: string | null | undefined;
843
+ uploadState?: string | null | undefined;
844
+ video?: string | null | undefined;
845
+ videoType?: string | null | undefined;
846
+ videoAutoPlay?: boolean | null | undefined;
847
+ }[] | null | undefined;
848
+ closed?: boolean | null | undefined;
849
+ directGroupMentions?: number[] | null | undefined;
850
+ directMentions?: number[] | null | undefined;
851
+ groups?: number[] | null | undefined;
852
+ lastEdited?: Date | null | undefined;
853
+ lastObjIndex?: number | null | undefined;
575
854
  mutedUntil?: Date | null | undefined;
576
- title?: string | null | undefined;
577
- private?: boolean | null | undefined;
578
- lastMessage?: {
855
+ participants?: number[] | null | undefined;
856
+ pinnedDate?: Date | null | undefined;
857
+ reactions?: Record<string, unknown> | null | undefined;
858
+ recipients?: number[] | null | undefined;
859
+ responders?: number[] | null | undefined;
860
+ snippetMaskAvatarUrl?: string | null | undefined;
861
+ snippetMaskPoster?: string | null | undefined;
862
+ systemMessage?: unknown;
863
+ toEmails?: string[] | null | undefined;
864
+ isSaved?: boolean | null | undefined;
865
+ inInbox?: boolean | null | undefined;
866
+ lastComment?: {
579
867
  id: number;
580
868
  content: string;
581
869
  creator: number;
582
- conversationId: number;
870
+ creatorName: string;
871
+ threadId: number;
872
+ channelId: number;
583
873
  posted: Date;
874
+ objIndex: number;
875
+ deleted: boolean;
876
+ version: number;
877
+ workspaceId: number;
584
878
  systemMessage?: unknown;
585
879
  attachments?: {
586
880
  [x: string]: unknown;
@@ -603,53 +897,591 @@ export declare const ConversationSchema: z.ZodPipe<z.ZodObject<{
603
897
  }[] | null | undefined;
604
898
  reactions?: Record<string, number[]> | null | undefined;
605
899
  actions?: unknown[] | null | undefined;
606
- objIndex?: number | null | undefined;
607
900
  lastEdited?: Date | null | undefined;
608
- deleted?: boolean | null | undefined;
901
+ deletedBy?: number | null | undefined;
609
902
  directGroupMentions?: number[] | null | undefined;
610
903
  directMentions?: number[] | null | undefined;
611
- version?: number | null | undefined;
612
- workspaceId?: number | null | undefined;
904
+ groups?: number[] | null | undefined;
905
+ recipients?: number[] | null | undefined;
906
+ toEmails?: string[] | null | undefined;
613
907
  } | null | undefined;
614
908
  }>>;
615
- export type Conversation = z.infer<typeof ConversationSchema>;
616
- export declare const CommentSchema: z.ZodPipe<z.ZodObject<{
909
+ export type Thread = z.infer<typeof ThreadSchema>;
910
+ export declare const GroupSchema: z.ZodObject<{
617
911
  id: z.ZodNumber;
618
- content: z.ZodString;
912
+ name: z.ZodString;
913
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
914
+ workspaceId: z.ZodNumber;
915
+ userIds: z.ZodArray<z.ZodNumber>;
916
+ version: z.ZodNumber;
917
+ }, z.core.$strip>;
918
+ export type Group = z.infer<typeof GroupSchema>;
919
+ export declare const ConversationObjectSchema: z.ZodObject<{
920
+ id: z.ZodNumber;
921
+ workspaceId: z.ZodNumber;
922
+ userIds: z.ZodArray<z.ZodNumber>;
923
+ messageCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
924
+ lastObjIndex: z.ZodNumber;
925
+ snippet: z.ZodString;
926
+ snippetCreators: z.ZodArray<z.ZodNumber>;
927
+ lastActive: z.ZodDate;
928
+ mutedUntil: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
929
+ archived: z.ZodBoolean;
930
+ created: z.ZodDate;
619
931
  creator: z.ZodNumber;
620
- threadId: z.ZodNumber;
932
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
933
+ private: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
934
+ lastMessage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
935
+ id: z.ZodNumber;
936
+ content: z.ZodString;
937
+ creator: z.ZodNumber;
938
+ conversationId: z.ZodNumber;
939
+ posted: z.ZodDate;
940
+ systemMessage: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnknown]>>>;
941
+ attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
942
+ attachmentId: z.ZodString;
943
+ urlType: z.ZodString;
944
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
945
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
946
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
947
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
948
+ underlyingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
949
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
950
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
951
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
952
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
953
+ duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
954
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
955
+ video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
956
+ videoType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
957
+ videoAutoPlay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
958
+ }, z.core.$loose>>>>;
959
+ reactions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodNumber>>>>;
960
+ actions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
961
+ objIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
962
+ lastEdited: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
963
+ deleted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
964
+ directGroupMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
965
+ directMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
966
+ version: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
967
+ workspaceId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
968
+ }, z.core.$strip>>>;
969
+ }, z.core.$strip>;
970
+ export declare function createConversationSchema(linkBaseUrl?: string): z.ZodPipe<z.ZodObject<{
971
+ id: z.ZodNumber;
621
972
  workspaceId: z.ZodNumber;
622
- conversationId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
623
- posted: z.ZodDate;
624
- lastEdited: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
625
- directMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
626
- directGroupMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
627
- systemMessage: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, 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>>>>;
646
- reactions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
647
- objIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
648
- creatorName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
649
- channelId: z.ZodNumber;
650
- recipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
651
- groups: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
652
- toEmails: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
973
+ userIds: z.ZodArray<z.ZodNumber>;
974
+ messageCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
975
+ lastObjIndex: z.ZodNumber;
976
+ snippet: z.ZodString;
977
+ snippetCreators: z.ZodArray<z.ZodNumber>;
978
+ lastActive: z.ZodDate;
979
+ mutedUntil: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
980
+ archived: z.ZodBoolean;
981
+ created: z.ZodDate;
982
+ creator: z.ZodNumber;
983
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
984
+ private: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
985
+ lastMessage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
986
+ id: z.ZodNumber;
987
+ content: z.ZodString;
988
+ creator: z.ZodNumber;
989
+ conversationId: z.ZodNumber;
990
+ posted: z.ZodDate;
991
+ systemMessage: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnknown]>>>;
992
+ attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
993
+ attachmentId: z.ZodString;
994
+ urlType: z.ZodString;
995
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
996
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
997
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
998
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
999
+ underlyingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1000
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1001
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1002
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1003
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1004
+ duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1005
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1006
+ video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1007
+ videoType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1008
+ videoAutoPlay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1009
+ }, z.core.$loose>>>>;
1010
+ reactions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodNumber>>>>;
1011
+ actions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
1012
+ objIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1013
+ lastEdited: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1014
+ deleted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1015
+ directGroupMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
1016
+ directMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
1017
+ version: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1018
+ workspaceId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1019
+ }, z.core.$strip>>>;
1020
+ }, z.core.$strip>, z.ZodTransform<{
1021
+ url: string;
1022
+ id: number;
1023
+ workspaceId: number;
1024
+ userIds: number[];
1025
+ lastObjIndex: number;
1026
+ snippet: string;
1027
+ snippetCreators: number[];
1028
+ lastActive: Date;
1029
+ archived: boolean;
1030
+ created: Date;
1031
+ creator: number;
1032
+ messageCount?: number | null | undefined;
1033
+ mutedUntil?: Date | null | undefined;
1034
+ title?: string | null | undefined;
1035
+ private?: boolean | null | undefined;
1036
+ lastMessage?: {
1037
+ id: number;
1038
+ content: string;
1039
+ creator: number;
1040
+ conversationId: number;
1041
+ posted: Date;
1042
+ systemMessage?: unknown;
1043
+ attachments?: {
1044
+ [x: string]: unknown;
1045
+ attachmentId: string;
1046
+ urlType: string;
1047
+ title?: string | null | undefined;
1048
+ url?: string | null | undefined;
1049
+ fileName?: string | null | undefined;
1050
+ fileSize?: number | null | undefined;
1051
+ underlyingType?: string | null | undefined;
1052
+ description?: string | null | undefined;
1053
+ image?: string | null | undefined;
1054
+ imageWidth?: number | null | undefined;
1055
+ imageHeight?: number | null | undefined;
1056
+ duration?: string | null | undefined;
1057
+ uploadState?: string | null | undefined;
1058
+ video?: string | null | undefined;
1059
+ videoType?: string | null | undefined;
1060
+ videoAutoPlay?: boolean | null | undefined;
1061
+ }[] | null | undefined;
1062
+ reactions?: Record<string, number[]> | null | undefined;
1063
+ actions?: unknown[] | null | undefined;
1064
+ objIndex?: number | null | undefined;
1065
+ lastEdited?: Date | null | undefined;
1066
+ deleted?: boolean | null | undefined;
1067
+ directGroupMentions?: number[] | null | undefined;
1068
+ directMentions?: number[] | null | undefined;
1069
+ version?: number | null | undefined;
1070
+ workspaceId?: number | null | undefined;
1071
+ } | null | undefined;
1072
+ }, {
1073
+ id: number;
1074
+ workspaceId: number;
1075
+ userIds: number[];
1076
+ lastObjIndex: number;
1077
+ snippet: string;
1078
+ snippetCreators: number[];
1079
+ lastActive: Date;
1080
+ archived: boolean;
1081
+ created: Date;
1082
+ creator: number;
1083
+ messageCount?: number | null | undefined;
1084
+ mutedUntil?: Date | null | undefined;
1085
+ title?: string | null | undefined;
1086
+ private?: boolean | null | undefined;
1087
+ lastMessage?: {
1088
+ id: number;
1089
+ content: string;
1090
+ creator: number;
1091
+ conversationId: number;
1092
+ posted: Date;
1093
+ systemMessage?: unknown;
1094
+ attachments?: {
1095
+ [x: string]: unknown;
1096
+ attachmentId: string;
1097
+ urlType: string;
1098
+ title?: string | null | undefined;
1099
+ url?: string | null | undefined;
1100
+ fileName?: string | null | undefined;
1101
+ fileSize?: number | null | undefined;
1102
+ underlyingType?: string | null | undefined;
1103
+ description?: string | null | undefined;
1104
+ image?: string | null | undefined;
1105
+ imageWidth?: number | null | undefined;
1106
+ imageHeight?: number | null | undefined;
1107
+ duration?: string | null | undefined;
1108
+ uploadState?: string | null | undefined;
1109
+ video?: string | null | undefined;
1110
+ videoType?: string | null | undefined;
1111
+ videoAutoPlay?: boolean | null | undefined;
1112
+ }[] | null | undefined;
1113
+ reactions?: Record<string, number[]> | null | undefined;
1114
+ actions?: unknown[] | null | undefined;
1115
+ objIndex?: number | null | undefined;
1116
+ lastEdited?: Date | null | undefined;
1117
+ deleted?: boolean | null | undefined;
1118
+ directGroupMentions?: number[] | null | undefined;
1119
+ directMentions?: number[] | null | undefined;
1120
+ version?: number | null | undefined;
1121
+ workspaceId?: number | null | undefined;
1122
+ } | null | undefined;
1123
+ }>>;
1124
+ export declare const ConversationSchema: z.ZodPipe<z.ZodObject<{
1125
+ id: z.ZodNumber;
1126
+ workspaceId: z.ZodNumber;
1127
+ userIds: z.ZodArray<z.ZodNumber>;
1128
+ messageCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1129
+ lastObjIndex: z.ZodNumber;
1130
+ snippet: z.ZodString;
1131
+ snippetCreators: z.ZodArray<z.ZodNumber>;
1132
+ lastActive: z.ZodDate;
1133
+ mutedUntil: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1134
+ archived: z.ZodBoolean;
1135
+ created: z.ZodDate;
1136
+ creator: z.ZodNumber;
1137
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1138
+ private: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1139
+ lastMessage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1140
+ id: z.ZodNumber;
1141
+ content: z.ZodString;
1142
+ creator: z.ZodNumber;
1143
+ conversationId: z.ZodNumber;
1144
+ posted: z.ZodDate;
1145
+ systemMessage: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnknown]>>>;
1146
+ attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1147
+ attachmentId: z.ZodString;
1148
+ urlType: z.ZodString;
1149
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1150
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1151
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1152
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1153
+ underlyingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1154
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1155
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1156
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1157
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1158
+ duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1159
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1160
+ video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1161
+ videoType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1162
+ videoAutoPlay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1163
+ }, z.core.$loose>>>>;
1164
+ reactions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodNumber>>>>;
1165
+ actions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
1166
+ objIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1167
+ lastEdited: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1168
+ deleted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1169
+ directGroupMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
1170
+ directMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
1171
+ version: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1172
+ workspaceId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1173
+ }, z.core.$strip>>>;
1174
+ }, z.core.$strip>, z.ZodTransform<{
1175
+ url: string;
1176
+ id: number;
1177
+ workspaceId: number;
1178
+ userIds: number[];
1179
+ lastObjIndex: number;
1180
+ snippet: string;
1181
+ snippetCreators: number[];
1182
+ lastActive: Date;
1183
+ archived: boolean;
1184
+ created: Date;
1185
+ creator: number;
1186
+ messageCount?: number | null | undefined;
1187
+ mutedUntil?: Date | null | undefined;
1188
+ title?: string | null | undefined;
1189
+ private?: boolean | null | undefined;
1190
+ lastMessage?: {
1191
+ id: number;
1192
+ content: string;
1193
+ creator: number;
1194
+ conversationId: number;
1195
+ posted: Date;
1196
+ systemMessage?: unknown;
1197
+ attachments?: {
1198
+ [x: string]: unknown;
1199
+ attachmentId: string;
1200
+ urlType: string;
1201
+ title?: string | null | undefined;
1202
+ url?: string | null | undefined;
1203
+ fileName?: string | null | undefined;
1204
+ fileSize?: number | null | undefined;
1205
+ underlyingType?: string | null | undefined;
1206
+ description?: string | null | undefined;
1207
+ image?: string | null | undefined;
1208
+ imageWidth?: number | null | undefined;
1209
+ imageHeight?: number | null | undefined;
1210
+ duration?: string | null | undefined;
1211
+ uploadState?: string | null | undefined;
1212
+ video?: string | null | undefined;
1213
+ videoType?: string | null | undefined;
1214
+ videoAutoPlay?: boolean | null | undefined;
1215
+ }[] | null | undefined;
1216
+ reactions?: Record<string, number[]> | null | undefined;
1217
+ actions?: unknown[] | null | undefined;
1218
+ objIndex?: number | null | undefined;
1219
+ lastEdited?: Date | null | undefined;
1220
+ deleted?: boolean | null | undefined;
1221
+ directGroupMentions?: number[] | null | undefined;
1222
+ directMentions?: number[] | null | undefined;
1223
+ version?: number | null | undefined;
1224
+ workspaceId?: number | null | undefined;
1225
+ } | null | undefined;
1226
+ }, {
1227
+ id: number;
1228
+ workspaceId: number;
1229
+ userIds: number[];
1230
+ lastObjIndex: number;
1231
+ snippet: string;
1232
+ snippetCreators: number[];
1233
+ lastActive: Date;
1234
+ archived: boolean;
1235
+ created: Date;
1236
+ creator: number;
1237
+ messageCount?: number | null | undefined;
1238
+ mutedUntil?: Date | null | undefined;
1239
+ title?: string | null | undefined;
1240
+ private?: boolean | null | undefined;
1241
+ lastMessage?: {
1242
+ id: number;
1243
+ content: string;
1244
+ creator: number;
1245
+ conversationId: number;
1246
+ posted: Date;
1247
+ systemMessage?: unknown;
1248
+ attachments?: {
1249
+ [x: string]: unknown;
1250
+ attachmentId: string;
1251
+ urlType: string;
1252
+ title?: string | null | undefined;
1253
+ url?: string | null | undefined;
1254
+ fileName?: string | null | undefined;
1255
+ fileSize?: number | null | undefined;
1256
+ underlyingType?: string | null | undefined;
1257
+ description?: string | null | undefined;
1258
+ image?: string | null | undefined;
1259
+ imageWidth?: number | null | undefined;
1260
+ imageHeight?: number | null | undefined;
1261
+ duration?: string | null | undefined;
1262
+ uploadState?: string | null | undefined;
1263
+ video?: string | null | undefined;
1264
+ videoType?: string | null | undefined;
1265
+ videoAutoPlay?: boolean | null | undefined;
1266
+ }[] | null | undefined;
1267
+ reactions?: Record<string, number[]> | null | undefined;
1268
+ actions?: unknown[] | null | undefined;
1269
+ objIndex?: number | null | undefined;
1270
+ lastEdited?: Date | null | undefined;
1271
+ deleted?: boolean | null | undefined;
1272
+ directGroupMentions?: number[] | null | undefined;
1273
+ directMentions?: number[] | null | undefined;
1274
+ version?: number | null | undefined;
1275
+ workspaceId?: number | null | undefined;
1276
+ } | null | undefined;
1277
+ }>>;
1278
+ export type Conversation = z.infer<typeof ConversationSchema>;
1279
+ export declare const CommentObjectSchema: z.ZodObject<{
1280
+ id: z.ZodNumber;
1281
+ content: z.ZodString;
1282
+ creator: z.ZodNumber;
1283
+ threadId: z.ZodNumber;
1284
+ workspaceId: z.ZodNumber;
1285
+ conversationId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1286
+ posted: z.ZodDate;
1287
+ lastEdited: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1288
+ directMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
1289
+ directGroupMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
1290
+ systemMessage: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnknown]>>>;
1291
+ attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1292
+ attachmentId: z.ZodString;
1293
+ urlType: z.ZodString;
1294
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1295
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1296
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1297
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1298
+ underlyingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1299
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1300
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1301
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1302
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1303
+ duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1304
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1305
+ video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1306
+ videoType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1307
+ videoAutoPlay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1308
+ }, z.core.$loose>>>>;
1309
+ reactions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1310
+ objIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1311
+ creatorName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1312
+ channelId: z.ZodNumber;
1313
+ recipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
1314
+ groups: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
1315
+ toEmails: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1316
+ deleted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1317
+ deletedBy: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1318
+ version: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1319
+ actions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
1320
+ }, z.core.$strip>;
1321
+ export declare function createCommentSchema(linkBaseUrl?: string): z.ZodPipe<z.ZodObject<{
1322
+ id: z.ZodNumber;
1323
+ content: z.ZodString;
1324
+ creator: z.ZodNumber;
1325
+ threadId: z.ZodNumber;
1326
+ workspaceId: z.ZodNumber;
1327
+ conversationId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1328
+ posted: z.ZodDate;
1329
+ lastEdited: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1330
+ directMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
1331
+ directGroupMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
1332
+ systemMessage: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnknown]>>>;
1333
+ attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1334
+ attachmentId: z.ZodString;
1335
+ urlType: z.ZodString;
1336
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1337
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1338
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1339
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1340
+ underlyingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1341
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1342
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1343
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1344
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1345
+ duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1346
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1347
+ video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1348
+ videoType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1349
+ videoAutoPlay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1350
+ }, z.core.$loose>>>>;
1351
+ reactions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1352
+ objIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1353
+ creatorName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1354
+ channelId: z.ZodNumber;
1355
+ recipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
1356
+ groups: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
1357
+ toEmails: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1358
+ deleted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1359
+ deletedBy: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1360
+ version: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1361
+ actions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
1362
+ }, z.core.$strip>, z.ZodTransform<{
1363
+ url: string;
1364
+ id: number;
1365
+ content: string;
1366
+ creator: number;
1367
+ threadId: number;
1368
+ workspaceId: number;
1369
+ posted: Date;
1370
+ channelId: number;
1371
+ conversationId?: number | null | undefined;
1372
+ lastEdited?: Date | null | undefined;
1373
+ directMentions?: number[] | null | undefined;
1374
+ directGroupMentions?: number[] | null | undefined;
1375
+ systemMessage?: unknown;
1376
+ attachments?: {
1377
+ [x: string]: unknown;
1378
+ attachmentId: string;
1379
+ urlType: string;
1380
+ title?: string | null | undefined;
1381
+ url?: string | null | undefined;
1382
+ fileName?: string | null | undefined;
1383
+ fileSize?: number | null | undefined;
1384
+ underlyingType?: string | null | undefined;
1385
+ description?: string | null | undefined;
1386
+ image?: string | null | undefined;
1387
+ imageWidth?: number | null | undefined;
1388
+ imageHeight?: number | null | undefined;
1389
+ duration?: string | null | undefined;
1390
+ uploadState?: string | null | undefined;
1391
+ video?: string | null | undefined;
1392
+ videoType?: string | null | undefined;
1393
+ videoAutoPlay?: boolean | null | undefined;
1394
+ }[] | null | undefined;
1395
+ reactions?: Record<string, unknown> | null | undefined;
1396
+ objIndex?: number | null | undefined;
1397
+ creatorName?: string | null | undefined;
1398
+ recipients?: number[] | null | undefined;
1399
+ groups?: number[] | null | undefined;
1400
+ toEmails?: string[] | null | undefined;
1401
+ deleted?: boolean | null | undefined;
1402
+ deletedBy?: number | null | undefined;
1403
+ version?: number | null | undefined;
1404
+ actions?: unknown[] | null | undefined;
1405
+ }, {
1406
+ id: number;
1407
+ content: string;
1408
+ creator: number;
1409
+ threadId: number;
1410
+ workspaceId: number;
1411
+ posted: Date;
1412
+ channelId: number;
1413
+ conversationId?: number | null | undefined;
1414
+ lastEdited?: Date | null | undefined;
1415
+ directMentions?: number[] | null | undefined;
1416
+ directGroupMentions?: number[] | null | undefined;
1417
+ systemMessage?: unknown;
1418
+ attachments?: {
1419
+ [x: string]: unknown;
1420
+ attachmentId: string;
1421
+ urlType: string;
1422
+ title?: string | null | undefined;
1423
+ url?: string | null | undefined;
1424
+ fileName?: string | null | undefined;
1425
+ fileSize?: number | null | undefined;
1426
+ underlyingType?: string | null | undefined;
1427
+ description?: string | null | undefined;
1428
+ image?: string | null | undefined;
1429
+ imageWidth?: number | null | undefined;
1430
+ imageHeight?: number | null | undefined;
1431
+ duration?: string | null | undefined;
1432
+ uploadState?: string | null | undefined;
1433
+ video?: string | null | undefined;
1434
+ videoType?: string | null | undefined;
1435
+ videoAutoPlay?: boolean | null | undefined;
1436
+ }[] | null | undefined;
1437
+ reactions?: Record<string, unknown> | null | undefined;
1438
+ objIndex?: number | null | undefined;
1439
+ creatorName?: string | null | undefined;
1440
+ recipients?: number[] | null | undefined;
1441
+ groups?: number[] | null | undefined;
1442
+ toEmails?: string[] | null | undefined;
1443
+ deleted?: boolean | null | undefined;
1444
+ deletedBy?: number | null | undefined;
1445
+ version?: number | null | undefined;
1446
+ actions?: unknown[] | null | undefined;
1447
+ }>>;
1448
+ export declare const CommentSchema: z.ZodPipe<z.ZodObject<{
1449
+ id: z.ZodNumber;
1450
+ content: z.ZodString;
1451
+ creator: z.ZodNumber;
1452
+ threadId: z.ZodNumber;
1453
+ workspaceId: z.ZodNumber;
1454
+ conversationId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1455
+ posted: z.ZodDate;
1456
+ lastEdited: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1457
+ directMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
1458
+ directGroupMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
1459
+ systemMessage: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnknown]>>>;
1460
+ attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1461
+ attachmentId: z.ZodString;
1462
+ urlType: z.ZodString;
1463
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1464
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1465
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1466
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1467
+ underlyingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1468
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1469
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1470
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1471
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1472
+ duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1473
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1474
+ video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1475
+ videoType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1476
+ videoAutoPlay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1477
+ }, z.core.$loose>>>>;
1478
+ reactions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1479
+ objIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1480
+ creatorName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1481
+ channelId: z.ZodNumber;
1482
+ recipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
1483
+ groups: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
1484
+ toEmails: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
653
1485
  deleted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
654
1486
  deletedBy: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
655
1487
  version: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -659,14 +1491,202 @@ export declare const CommentSchema: z.ZodPipe<z.ZodObject<{
659
1491
  id: number;
660
1492
  content: string;
661
1493
  creator: number;
662
- threadId: number;
663
- workspaceId: number;
1494
+ threadId: number;
1495
+ workspaceId: number;
1496
+ posted: Date;
1497
+ channelId: number;
1498
+ conversationId?: number | null | undefined;
1499
+ lastEdited?: Date | null | undefined;
1500
+ directMentions?: number[] | null | undefined;
1501
+ directGroupMentions?: number[] | null | undefined;
1502
+ systemMessage?: unknown;
1503
+ attachments?: {
1504
+ [x: string]: unknown;
1505
+ attachmentId: string;
1506
+ urlType: string;
1507
+ title?: string | null | undefined;
1508
+ url?: string | null | undefined;
1509
+ fileName?: string | null | undefined;
1510
+ fileSize?: number | null | undefined;
1511
+ underlyingType?: string | null | undefined;
1512
+ description?: string | null | undefined;
1513
+ image?: string | null | undefined;
1514
+ imageWidth?: number | null | undefined;
1515
+ imageHeight?: number | null | undefined;
1516
+ duration?: string | null | undefined;
1517
+ uploadState?: string | null | undefined;
1518
+ video?: string | null | undefined;
1519
+ videoType?: string | null | undefined;
1520
+ videoAutoPlay?: boolean | null | undefined;
1521
+ }[] | null | undefined;
1522
+ reactions?: Record<string, unknown> | null | undefined;
1523
+ objIndex?: number | null | undefined;
1524
+ creatorName?: string | null | undefined;
1525
+ recipients?: number[] | null | undefined;
1526
+ groups?: number[] | null | undefined;
1527
+ toEmails?: string[] | null | undefined;
1528
+ deleted?: boolean | null | undefined;
1529
+ deletedBy?: number | null | undefined;
1530
+ version?: number | null | undefined;
1531
+ actions?: unknown[] | null | undefined;
1532
+ }, {
1533
+ id: number;
1534
+ content: string;
1535
+ creator: number;
1536
+ threadId: number;
1537
+ workspaceId: number;
1538
+ posted: Date;
1539
+ channelId: number;
1540
+ conversationId?: number | null | undefined;
1541
+ lastEdited?: Date | null | undefined;
1542
+ directMentions?: number[] | null | undefined;
1543
+ directGroupMentions?: number[] | null | undefined;
1544
+ systemMessage?: unknown;
1545
+ attachments?: {
1546
+ [x: string]: unknown;
1547
+ attachmentId: string;
1548
+ urlType: string;
1549
+ title?: string | null | undefined;
1550
+ url?: string | null | undefined;
1551
+ fileName?: string | null | undefined;
1552
+ fileSize?: number | null | undefined;
1553
+ underlyingType?: string | null | undefined;
1554
+ description?: string | null | undefined;
1555
+ image?: string | null | undefined;
1556
+ imageWidth?: number | null | undefined;
1557
+ imageHeight?: number | null | undefined;
1558
+ duration?: string | null | undefined;
1559
+ uploadState?: string | null | undefined;
1560
+ video?: string | null | undefined;
1561
+ videoType?: string | null | undefined;
1562
+ videoAutoPlay?: boolean | null | undefined;
1563
+ }[] | null | undefined;
1564
+ reactions?: Record<string, unknown> | null | undefined;
1565
+ objIndex?: number | null | undefined;
1566
+ creatorName?: string | null | undefined;
1567
+ recipients?: number[] | null | undefined;
1568
+ groups?: number[] | null | undefined;
1569
+ toEmails?: string[] | null | undefined;
1570
+ deleted?: boolean | null | undefined;
1571
+ deletedBy?: number | null | undefined;
1572
+ version?: number | null | undefined;
1573
+ actions?: unknown[] | null | undefined;
1574
+ }>>;
1575
+ export type Comment = z.infer<typeof CommentSchema>;
1576
+ export declare const WorkspaceUserSchema: z.ZodObject<{
1577
+ id: z.ZodNumber;
1578
+ name: z.ZodString;
1579
+ shortName: z.ZodString;
1580
+ firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1581
+ contactInfo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1582
+ bot: z.ZodBoolean;
1583
+ profession: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1584
+ timezone: z.ZodString;
1585
+ removed: z.ZodBoolean;
1586
+ avatarId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1587
+ avatarUrls: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1588
+ s35: z.ZodString;
1589
+ s60: z.ZodString;
1590
+ s195: z.ZodString;
1591
+ s640: z.ZodString;
1592
+ }, z.core.$strip>>>;
1593
+ awayMode: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1594
+ dateFrom: z.ZodString;
1595
+ type: z.ZodString;
1596
+ dateTo: z.ZodString;
1597
+ }, z.core.$strip>>>;
1598
+ restricted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1599
+ setupPending: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber]>>>;
1600
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1601
+ userType: z.ZodEnum<{
1602
+ USER: "USER";
1603
+ GUEST: "GUEST";
1604
+ ADMIN: "ADMIN";
1605
+ }>;
1606
+ dateFormat: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1607
+ featureFlags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1608
+ theme: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1609
+ timeFormat: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1610
+ version: z.ZodNumber;
1611
+ }, z.core.$strip>;
1612
+ export type WorkspaceUser = z.infer<typeof WorkspaceUserSchema>;
1613
+ export declare const ConversationMessageObjectSchema: z.ZodObject<{
1614
+ id: z.ZodNumber;
1615
+ content: z.ZodString;
1616
+ creator: z.ZodNumber;
1617
+ conversationId: z.ZodNumber;
1618
+ posted: z.ZodDate;
1619
+ systemMessage: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnknown]>>>;
1620
+ attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1621
+ attachmentId: z.ZodString;
1622
+ urlType: z.ZodString;
1623
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1624
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1625
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1626
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1627
+ underlyingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1628
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1629
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1630
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1631
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1632
+ duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1633
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1634
+ video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1635
+ videoType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1636
+ videoAutoPlay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1637
+ }, z.core.$loose>>>>;
1638
+ reactions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodNumber>>>>;
1639
+ actions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
1640
+ objIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1641
+ lastEdited: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1642
+ isDeleted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1643
+ directGroupMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
1644
+ directMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
1645
+ version: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1646
+ workspaceId: z.ZodNumber;
1647
+ }, z.core.$strip>;
1648
+ export declare function createConversationMessageSchema(linkBaseUrl?: string): z.ZodPipe<z.ZodObject<{
1649
+ id: z.ZodNumber;
1650
+ content: z.ZodString;
1651
+ creator: z.ZodNumber;
1652
+ conversationId: z.ZodNumber;
1653
+ posted: z.ZodDate;
1654
+ systemMessage: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnknown]>>>;
1655
+ attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1656
+ attachmentId: z.ZodString;
1657
+ urlType: z.ZodString;
1658
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1659
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1660
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1661
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1662
+ underlyingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1663
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1664
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1665
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1666
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1667
+ duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1668
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1669
+ video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1670
+ videoType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1671
+ videoAutoPlay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1672
+ }, z.core.$loose>>>>;
1673
+ reactions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodNumber>>>>;
1674
+ actions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
1675
+ objIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1676
+ lastEdited: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1677
+ isDeleted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1678
+ directGroupMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
1679
+ directMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
1680
+ version: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1681
+ workspaceId: z.ZodNumber;
1682
+ }, z.core.$strip>, z.ZodTransform<{
1683
+ url: string;
1684
+ id: number;
1685
+ content: string;
1686
+ creator: number;
1687
+ conversationId: number;
664
1688
  posted: Date;
665
- channelId: number;
666
- conversationId?: number | null | undefined;
667
- lastEdited?: Date | null | undefined;
668
- directMentions?: number[] | null | undefined;
669
- directGroupMentions?: number[] | null | undefined;
1689
+ workspaceId: number;
670
1690
  systemMessage?: unknown;
671
1691
  attachments?: {
672
1692
  [x: string]: unknown;
@@ -687,28 +1707,21 @@ export declare const CommentSchema: z.ZodPipe<z.ZodObject<{
687
1707
  videoType?: string | null | undefined;
688
1708
  videoAutoPlay?: boolean | null | undefined;
689
1709
  }[] | null | undefined;
690
- reactions?: Record<string, unknown> | null | undefined;
1710
+ reactions?: Record<string, number[]> | null | undefined;
1711
+ actions?: unknown[] | null | undefined;
691
1712
  objIndex?: number | null | undefined;
692
- creatorName?: string | null | undefined;
693
- recipients?: number[] | null | undefined;
694
- groups?: number[] | null | undefined;
695
- toEmails?: string[] | null | undefined;
696
- deleted?: boolean | null | undefined;
697
- deletedBy?: number | null | undefined;
1713
+ lastEdited?: Date | null | undefined;
1714
+ isDeleted?: boolean | null | undefined;
1715
+ directGroupMentions?: number[] | null | undefined;
1716
+ directMentions?: number[] | null | undefined;
698
1717
  version?: number | null | undefined;
699
- actions?: unknown[] | null | undefined;
700
1718
  }, {
701
1719
  id: number;
702
1720
  content: string;
703
1721
  creator: number;
704
- threadId: number;
705
- workspaceId: number;
1722
+ conversationId: number;
706
1723
  posted: Date;
707
- channelId: number;
708
- conversationId?: number | null | undefined;
709
- lastEdited?: Date | null | undefined;
710
- directMentions?: number[] | null | undefined;
711
- directGroupMentions?: number[] | null | undefined;
1724
+ workspaceId: number;
712
1725
  systemMessage?: unknown;
713
1726
  attachments?: {
714
1727
  [x: string]: unknown;
@@ -729,55 +1742,15 @@ export declare const CommentSchema: z.ZodPipe<z.ZodObject<{
729
1742
  videoType?: string | null | undefined;
730
1743
  videoAutoPlay?: boolean | null | undefined;
731
1744
  }[] | null | undefined;
732
- reactions?: Record<string, unknown> | null | undefined;
1745
+ reactions?: Record<string, number[]> | null | undefined;
1746
+ actions?: unknown[] | null | undefined;
733
1747
  objIndex?: number | null | undefined;
734
- creatorName?: string | null | undefined;
735
- recipients?: number[] | null | undefined;
736
- groups?: number[] | null | undefined;
737
- toEmails?: string[] | null | undefined;
738
- deleted?: boolean | null | undefined;
739
- deletedBy?: number | null | undefined;
1748
+ lastEdited?: Date | null | undefined;
1749
+ isDeleted?: boolean | null | undefined;
1750
+ directGroupMentions?: number[] | null | undefined;
1751
+ directMentions?: number[] | null | undefined;
740
1752
  version?: number | null | undefined;
741
- actions?: unknown[] | null | undefined;
742
1753
  }>>;
743
- export type Comment = z.infer<typeof CommentSchema>;
744
- export declare const WorkspaceUserSchema: z.ZodObject<{
745
- id: z.ZodNumber;
746
- name: z.ZodString;
747
- shortName: z.ZodString;
748
- firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
749
- contactInfo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
750
- bot: z.ZodBoolean;
751
- profession: z.ZodOptional<z.ZodNullable<z.ZodString>>;
752
- timezone: z.ZodString;
753
- removed: z.ZodBoolean;
754
- avatarId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
755
- avatarUrls: z.ZodOptional<z.ZodNullable<z.ZodObject<{
756
- s35: z.ZodString;
757
- s60: z.ZodString;
758
- s195: z.ZodString;
759
- s640: z.ZodString;
760
- }, z.core.$strip>>>;
761
- awayMode: z.ZodOptional<z.ZodNullable<z.ZodObject<{
762
- dateFrom: z.ZodString;
763
- type: z.ZodString;
764
- dateTo: z.ZodString;
765
- }, z.core.$strip>>>;
766
- restricted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
767
- setupPending: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodBoolean, z.ZodNumber]>>>;
768
- email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
769
- userType: z.ZodEnum<{
770
- USER: "USER";
771
- GUEST: "GUEST";
772
- ADMIN: "ADMIN";
773
- }>;
774
- dateFormat: z.ZodOptional<z.ZodNullable<z.ZodString>>;
775
- featureFlags: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
776
- theme: z.ZodOptional<z.ZodNullable<z.ZodString>>;
777
- timeFormat: z.ZodOptional<z.ZodNullable<z.ZodString>>;
778
- version: z.ZodNumber;
779
- }, z.core.$strip>;
780
- export type WorkspaceUser = z.infer<typeof WorkspaceUserSchema>;
781
1754
  export declare const ConversationMessageSchema: z.ZodPipe<z.ZodObject<{
782
1755
  id: z.ZodNumber;
783
1756
  content: z.ZodString;
@@ -811,16 +1784,281 @@ export declare const ConversationMessageSchema: z.ZodPipe<z.ZodObject<{
811
1784
  directGroupMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
812
1785
  directMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
813
1786
  version: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
814
- workspaceId: z.ZodNumber;
1787
+ workspaceId: z.ZodNumber;
1788
+ }, z.core.$strip>, z.ZodTransform<{
1789
+ url: string;
1790
+ id: number;
1791
+ content: string;
1792
+ creator: number;
1793
+ conversationId: number;
1794
+ posted: Date;
1795
+ workspaceId: number;
1796
+ systemMessage?: unknown;
1797
+ attachments?: {
1798
+ [x: string]: unknown;
1799
+ attachmentId: string;
1800
+ urlType: string;
1801
+ title?: string | null | undefined;
1802
+ url?: string | null | undefined;
1803
+ fileName?: string | null | undefined;
1804
+ fileSize?: number | null | undefined;
1805
+ underlyingType?: string | null | undefined;
1806
+ description?: string | null | undefined;
1807
+ image?: string | null | undefined;
1808
+ imageWidth?: number | null | undefined;
1809
+ imageHeight?: number | null | undefined;
1810
+ duration?: string | null | undefined;
1811
+ uploadState?: string | null | undefined;
1812
+ video?: string | null | undefined;
1813
+ videoType?: string | null | undefined;
1814
+ videoAutoPlay?: boolean | null | undefined;
1815
+ }[] | null | undefined;
1816
+ reactions?: Record<string, number[]> | null | undefined;
1817
+ actions?: unknown[] | null | undefined;
1818
+ objIndex?: number | null | undefined;
1819
+ lastEdited?: Date | null | undefined;
1820
+ isDeleted?: boolean | null | undefined;
1821
+ directGroupMentions?: number[] | null | undefined;
1822
+ directMentions?: number[] | null | undefined;
1823
+ version?: number | null | undefined;
1824
+ }, {
1825
+ id: number;
1826
+ content: string;
1827
+ creator: number;
1828
+ conversationId: number;
1829
+ posted: Date;
1830
+ workspaceId: number;
1831
+ systemMessage?: unknown;
1832
+ attachments?: {
1833
+ [x: string]: unknown;
1834
+ attachmentId: string;
1835
+ urlType: string;
1836
+ title?: string | null | undefined;
1837
+ url?: string | null | undefined;
1838
+ fileName?: string | null | undefined;
1839
+ fileSize?: number | null | undefined;
1840
+ underlyingType?: string | null | undefined;
1841
+ description?: string | null | undefined;
1842
+ image?: string | null | undefined;
1843
+ imageWidth?: number | null | undefined;
1844
+ imageHeight?: number | null | undefined;
1845
+ duration?: string | null | undefined;
1846
+ uploadState?: string | null | undefined;
1847
+ video?: string | null | undefined;
1848
+ videoType?: string | null | undefined;
1849
+ videoAutoPlay?: boolean | null | undefined;
1850
+ }[] | null | undefined;
1851
+ reactions?: Record<string, number[]> | null | undefined;
1852
+ actions?: unknown[] | null | undefined;
1853
+ objIndex?: number | null | undefined;
1854
+ lastEdited?: Date | null | undefined;
1855
+ isDeleted?: boolean | null | undefined;
1856
+ directGroupMentions?: number[] | null | undefined;
1857
+ directMentions?: number[] | null | undefined;
1858
+ version?: number | null | undefined;
1859
+ }>>;
1860
+ export type ConversationMessage = z.infer<typeof ConversationMessageSchema>;
1861
+ export declare function createInboxThreadSchema(linkBaseUrl?: string): z.ZodPipe<z.ZodObject<{
1862
+ id: z.ZodNumber;
1863
+ title: z.ZodString;
1864
+ content: z.ZodString;
1865
+ creator: z.ZodNumber;
1866
+ creatorName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1867
+ channelId: z.ZodNumber;
1868
+ workspaceId: z.ZodNumber;
1869
+ actions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
1870
+ attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1871
+ attachmentId: z.ZodString;
1872
+ urlType: z.ZodString;
1873
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1874
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1875
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1876
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1877
+ underlyingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1878
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1879
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1880
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1881
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1882
+ duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1883
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1884
+ video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1885
+ videoType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1886
+ videoAutoPlay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1887
+ }, z.core.$loose>>>>;
1888
+ commentCount: z.ZodNumber;
1889
+ directGroupMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
1890
+ directMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
1891
+ groups: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
1892
+ lastEdited: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1893
+ lastObjIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1894
+ lastUpdated: z.ZodDate;
1895
+ mutedUntil: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1896
+ participants: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
1897
+ pinned: z.ZodBoolean;
1898
+ pinnedDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1899
+ posted: z.ZodDate;
1900
+ reactions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodNumber>>>>;
1901
+ recipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
1902
+ snippet: z.ZodString;
1903
+ snippetCreator: z.ZodNumber;
1904
+ snippetMaskAvatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1905
+ snippetMaskPoster: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1906
+ starred: z.ZodBoolean;
1907
+ systemMessage: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnknown]>>>;
1908
+ isArchived: z.ZodBoolean;
1909
+ inInbox: z.ZodBoolean;
1910
+ isSaved: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1911
+ closed: z.ZodBoolean;
1912
+ responders: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
1913
+ lastComment: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodObject<{
1914
+ id: z.ZodNumber;
1915
+ content: z.ZodString;
1916
+ creator: z.ZodNumber;
1917
+ threadId: z.ZodNumber;
1918
+ workspaceId: z.ZodNumber;
1919
+ conversationId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1920
+ posted: z.ZodDate;
1921
+ lastEdited: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1922
+ directMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
1923
+ directGroupMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
1924
+ systemMessage: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnknown]>>>;
1925
+ attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1926
+ attachmentId: z.ZodString;
1927
+ urlType: z.ZodString;
1928
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1929
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1930
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1931
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1932
+ underlyingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1933
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1934
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1935
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1936
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1937
+ duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1938
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1939
+ video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1940
+ videoType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1941
+ videoAutoPlay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1942
+ }, z.core.$loose>>>>;
1943
+ reactions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1944
+ objIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1945
+ creatorName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1946
+ channelId: z.ZodNumber;
1947
+ recipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
1948
+ groups: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
1949
+ toEmails: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1950
+ deleted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1951
+ deletedBy: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1952
+ version: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1953
+ actions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
1954
+ }, z.core.$strip>, z.ZodTransform<{
1955
+ url: string;
1956
+ id: number;
1957
+ content: string;
1958
+ creator: number;
1959
+ threadId: number;
1960
+ workspaceId: number;
1961
+ posted: Date;
1962
+ channelId: number;
1963
+ conversationId?: number | null | undefined;
1964
+ lastEdited?: Date | null | undefined;
1965
+ directMentions?: number[] | null | undefined;
1966
+ directGroupMentions?: number[] | null | undefined;
1967
+ systemMessage?: unknown;
1968
+ attachments?: {
1969
+ [x: string]: unknown;
1970
+ attachmentId: string;
1971
+ urlType: string;
1972
+ title?: string | null | undefined;
1973
+ url?: string | null | undefined;
1974
+ fileName?: string | null | undefined;
1975
+ fileSize?: number | null | undefined;
1976
+ underlyingType?: string | null | undefined;
1977
+ description?: string | null | undefined;
1978
+ image?: string | null | undefined;
1979
+ imageWidth?: number | null | undefined;
1980
+ imageHeight?: number | null | undefined;
1981
+ duration?: string | null | undefined;
1982
+ uploadState?: string | null | undefined;
1983
+ video?: string | null | undefined;
1984
+ videoType?: string | null | undefined;
1985
+ videoAutoPlay?: boolean | null | undefined;
1986
+ }[] | null | undefined;
1987
+ reactions?: Record<string, unknown> | null | undefined;
1988
+ objIndex?: number | null | undefined;
1989
+ creatorName?: string | null | undefined;
1990
+ recipients?: number[] | null | undefined;
1991
+ groups?: number[] | null | undefined;
1992
+ toEmails?: string[] | null | undefined;
1993
+ deleted?: boolean | null | undefined;
1994
+ deletedBy?: number | null | undefined;
1995
+ version?: number | null | undefined;
1996
+ actions?: unknown[] | null | undefined;
1997
+ }, {
1998
+ id: number;
1999
+ content: string;
2000
+ creator: number;
2001
+ threadId: number;
2002
+ workspaceId: number;
2003
+ posted: Date;
2004
+ channelId: number;
2005
+ conversationId?: number | null | undefined;
2006
+ lastEdited?: Date | null | undefined;
2007
+ directMentions?: number[] | null | undefined;
2008
+ directGroupMentions?: number[] | null | undefined;
2009
+ systemMessage?: unknown;
2010
+ attachments?: {
2011
+ [x: string]: unknown;
2012
+ attachmentId: string;
2013
+ urlType: string;
2014
+ title?: string | null | undefined;
2015
+ url?: string | null | undefined;
2016
+ fileName?: string | null | undefined;
2017
+ fileSize?: number | null | undefined;
2018
+ underlyingType?: string | null | undefined;
2019
+ description?: string | null | undefined;
2020
+ image?: string | null | undefined;
2021
+ imageWidth?: number | null | undefined;
2022
+ imageHeight?: number | null | undefined;
2023
+ duration?: string | null | undefined;
2024
+ uploadState?: string | null | undefined;
2025
+ video?: string | null | undefined;
2026
+ videoType?: string | null | undefined;
2027
+ videoAutoPlay?: boolean | null | undefined;
2028
+ }[] | null | undefined;
2029
+ reactions?: Record<string, unknown> | null | undefined;
2030
+ objIndex?: number | null | undefined;
2031
+ creatorName?: string | null | undefined;
2032
+ recipients?: number[] | null | undefined;
2033
+ groups?: number[] | null | undefined;
2034
+ toEmails?: string[] | null | undefined;
2035
+ deleted?: boolean | null | undefined;
2036
+ deletedBy?: number | null | undefined;
2037
+ version?: number | null | undefined;
2038
+ actions?: unknown[] | null | undefined;
2039
+ }>>>>;
2040
+ toEmails: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
2041
+ version: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
815
2042
  }, z.core.$strip>, z.ZodTransform<{
816
2043
  url: string;
817
2044
  id: number;
2045
+ title: string;
818
2046
  content: string;
819
2047
  creator: number;
820
- conversationId: number;
821
- posted: Date;
2048
+ channelId: number;
822
2049
  workspaceId: number;
823
- systemMessage?: unknown;
2050
+ commentCount: number;
2051
+ lastUpdated: Date;
2052
+ pinned: boolean;
2053
+ posted: Date;
2054
+ snippet: string;
2055
+ snippetCreator: number;
2056
+ starred: boolean;
2057
+ isArchived: boolean;
2058
+ inInbox: boolean;
2059
+ closed: boolean;
2060
+ creatorName?: string | null | undefined;
2061
+ actions?: unknown[] | null | undefined;
824
2062
  attachments?: {
825
2063
  [x: string]: unknown;
826
2064
  attachmentId: string;
@@ -840,22 +2078,86 @@ export declare const ConversationMessageSchema: z.ZodPipe<z.ZodObject<{
840
2078
  videoType?: string | null | undefined;
841
2079
  videoAutoPlay?: boolean | null | undefined;
842
2080
  }[] | null | undefined;
843
- reactions?: Record<string, number[]> | null | undefined;
844
- actions?: unknown[] | null | undefined;
845
- objIndex?: number | null | undefined;
846
- lastEdited?: Date | null | undefined;
847
- isDeleted?: boolean | null | undefined;
848
2081
  directGroupMentions?: number[] | null | undefined;
849
2082
  directMentions?: number[] | null | undefined;
2083
+ groups?: number[] | null | undefined;
2084
+ lastEdited?: Date | null | undefined;
2085
+ lastObjIndex?: number | null | undefined;
2086
+ mutedUntil?: Date | null | undefined;
2087
+ participants?: number[] | null | undefined;
2088
+ pinnedDate?: Date | null | undefined;
2089
+ reactions?: Record<string, number[]> | null | undefined;
2090
+ recipients?: number[] | null | undefined;
2091
+ snippetMaskAvatarUrl?: string | null | undefined;
2092
+ snippetMaskPoster?: string | null | undefined;
2093
+ systemMessage?: unknown;
2094
+ isSaved?: boolean | null | undefined;
2095
+ responders?: number[] | null | undefined;
2096
+ lastComment?: {
2097
+ url: string;
2098
+ id: number;
2099
+ content: string;
2100
+ creator: number;
2101
+ threadId: number;
2102
+ workspaceId: number;
2103
+ posted: Date;
2104
+ channelId: number;
2105
+ conversationId?: number | null | undefined;
2106
+ lastEdited?: Date | null | undefined;
2107
+ directMentions?: number[] | null | undefined;
2108
+ directGroupMentions?: number[] | null | undefined;
2109
+ systemMessage?: unknown;
2110
+ attachments?: {
2111
+ [x: string]: unknown;
2112
+ attachmentId: string;
2113
+ urlType: string;
2114
+ title?: string | null | undefined;
2115
+ url?: string | null | undefined;
2116
+ fileName?: string | null | undefined;
2117
+ fileSize?: number | null | undefined;
2118
+ underlyingType?: string | null | undefined;
2119
+ description?: string | null | undefined;
2120
+ image?: string | null | undefined;
2121
+ imageWidth?: number | null | undefined;
2122
+ imageHeight?: number | null | undefined;
2123
+ duration?: string | null | undefined;
2124
+ uploadState?: string | null | undefined;
2125
+ video?: string | null | undefined;
2126
+ videoType?: string | null | undefined;
2127
+ videoAutoPlay?: boolean | null | undefined;
2128
+ }[] | null | undefined;
2129
+ reactions?: Record<string, unknown> | null | undefined;
2130
+ objIndex?: number | null | undefined;
2131
+ creatorName?: string | null | undefined;
2132
+ recipients?: number[] | null | undefined;
2133
+ groups?: number[] | null | undefined;
2134
+ toEmails?: string[] | null | undefined;
2135
+ deleted?: boolean | null | undefined;
2136
+ deletedBy?: number | null | undefined;
2137
+ version?: number | null | undefined;
2138
+ actions?: unknown[] | null | undefined;
2139
+ } | null | undefined;
2140
+ toEmails?: string[] | null | undefined;
850
2141
  version?: number | null | undefined;
851
2142
  }, {
852
2143
  id: number;
2144
+ title: string;
853
2145
  content: string;
854
2146
  creator: number;
855
- conversationId: number;
856
- posted: Date;
2147
+ channelId: number;
857
2148
  workspaceId: number;
858
- systemMessage?: unknown;
2149
+ commentCount: number;
2150
+ lastUpdated: Date;
2151
+ pinned: boolean;
2152
+ posted: Date;
2153
+ snippet: string;
2154
+ snippetCreator: number;
2155
+ starred: boolean;
2156
+ isArchived: boolean;
2157
+ inInbox: boolean;
2158
+ closed: boolean;
2159
+ creatorName?: string | null | undefined;
2160
+ actions?: unknown[] | null | undefined;
859
2161
  attachments?: {
860
2162
  [x: string]: unknown;
861
2163
  attachmentId: string;
@@ -875,16 +2177,68 @@ export declare const ConversationMessageSchema: z.ZodPipe<z.ZodObject<{
875
2177
  videoType?: string | null | undefined;
876
2178
  videoAutoPlay?: boolean | null | undefined;
877
2179
  }[] | null | undefined;
878
- reactions?: Record<string, number[]> | null | undefined;
879
- actions?: unknown[] | null | undefined;
880
- objIndex?: number | null | undefined;
881
- lastEdited?: Date | null | undefined;
882
- isDeleted?: boolean | null | undefined;
883
2180
  directGroupMentions?: number[] | null | undefined;
884
2181
  directMentions?: number[] | null | undefined;
2182
+ groups?: number[] | null | undefined;
2183
+ lastEdited?: Date | null | undefined;
2184
+ lastObjIndex?: number | null | undefined;
2185
+ mutedUntil?: Date | null | undefined;
2186
+ participants?: number[] | null | undefined;
2187
+ pinnedDate?: Date | null | undefined;
2188
+ reactions?: Record<string, number[]> | null | undefined;
2189
+ recipients?: number[] | null | undefined;
2190
+ snippetMaskAvatarUrl?: string | null | undefined;
2191
+ snippetMaskPoster?: string | null | undefined;
2192
+ systemMessage?: unknown;
2193
+ isSaved?: boolean | null | undefined;
2194
+ responders?: number[] | null | undefined;
2195
+ lastComment?: {
2196
+ url: string;
2197
+ id: number;
2198
+ content: string;
2199
+ creator: number;
2200
+ threadId: number;
2201
+ workspaceId: number;
2202
+ posted: Date;
2203
+ channelId: number;
2204
+ conversationId?: number | null | undefined;
2205
+ lastEdited?: Date | null | undefined;
2206
+ directMentions?: number[] | null | undefined;
2207
+ directGroupMentions?: number[] | null | undefined;
2208
+ systemMessage?: unknown;
2209
+ attachments?: {
2210
+ [x: string]: unknown;
2211
+ attachmentId: string;
2212
+ urlType: string;
2213
+ title?: string | null | undefined;
2214
+ url?: string | null | undefined;
2215
+ fileName?: string | null | undefined;
2216
+ fileSize?: number | null | undefined;
2217
+ underlyingType?: string | null | undefined;
2218
+ description?: string | null | undefined;
2219
+ image?: string | null | undefined;
2220
+ imageWidth?: number | null | undefined;
2221
+ imageHeight?: number | null | undefined;
2222
+ duration?: string | null | undefined;
2223
+ uploadState?: string | null | undefined;
2224
+ video?: string | null | undefined;
2225
+ videoType?: string | null | undefined;
2226
+ videoAutoPlay?: boolean | null | undefined;
2227
+ }[] | null | undefined;
2228
+ reactions?: Record<string, unknown> | null | undefined;
2229
+ objIndex?: number | null | undefined;
2230
+ creatorName?: string | null | undefined;
2231
+ recipients?: number[] | null | undefined;
2232
+ groups?: number[] | null | undefined;
2233
+ toEmails?: string[] | null | undefined;
2234
+ deleted?: boolean | null | undefined;
2235
+ deletedBy?: number | null | undefined;
2236
+ version?: number | null | undefined;
2237
+ actions?: unknown[] | null | undefined;
2238
+ } | null | undefined;
2239
+ toEmails?: string[] | null | undefined;
885
2240
  version?: number | null | undefined;
886
2241
  }>>;
887
- export type ConversationMessage = z.infer<typeof ConversationMessageSchema>;
888
2242
  export declare const InboxThreadSchema: z.ZodPipe<z.ZodObject<{
889
2243
  id: z.ZodNumber;
890
2244
  title: z.ZodString;