@doist/twist-sdk 2.6.0 → 2.8.1

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 (37) hide show
  1. package/dist/cjs/clients/add-comment-helper.js +1 -2
  2. package/dist/cjs/clients/base-client.js +10 -0
  3. package/dist/cjs/clients/channels-client.js +9 -6
  4. package/dist/cjs/clients/comments-client.js +16 -6
  5. package/dist/cjs/clients/conversation-messages-client.js +9 -8
  6. package/dist/cjs/clients/conversations-client.js +11 -8
  7. package/dist/cjs/clients/inbox-client.js +6 -3
  8. package/dist/cjs/clients/threads-client.js +18 -9
  9. package/dist/cjs/clients/workspace-users-client.js +9 -2
  10. package/dist/cjs/clients/workspaces-client.js +7 -3
  11. package/dist/cjs/types/entities.js +130 -84
  12. package/dist/cjs/types/requests.js +3 -2
  13. package/dist/esm/clients/add-comment-helper.js +1 -2
  14. package/dist/esm/clients/base-client.js +10 -0
  15. package/dist/esm/clients/channels-client.js +10 -7
  16. package/dist/esm/clients/comments-client.js +17 -7
  17. package/dist/esm/clients/conversation-messages-client.js +10 -9
  18. package/dist/esm/clients/conversations-client.js +12 -9
  19. package/dist/esm/clients/inbox-client.js +7 -4
  20. package/dist/esm/clients/threads-client.js +19 -10
  21. package/dist/esm/clients/workspace-users-client.js +9 -2
  22. package/dist/esm/clients/workspaces-client.js +8 -4
  23. package/dist/esm/types/entities.js +123 -83
  24. package/dist/esm/types/requests.js +3 -2
  25. package/dist/types/clients/add-comment-helper.d.ts +3 -1
  26. package/dist/types/clients/base-client.d.ts +4 -0
  27. package/dist/types/clients/channels-client.d.ts +1 -0
  28. package/dist/types/clients/comments-client.d.ts +2 -2
  29. package/dist/types/clients/conversation-messages-client.d.ts +3 -2
  30. package/dist/types/clients/conversations-client.d.ts +1 -0
  31. package/dist/types/clients/inbox-client.d.ts +1 -0
  32. package/dist/types/clients/threads-client.d.ts +4 -4
  33. package/dist/types/clients/workspace-users-client.d.ts +5 -0
  34. package/dist/types/clients/workspaces-client.d.ts +1 -0
  35. package/dist/types/types/entities.d.ts +1845 -65
  36. package/dist/types/types/requests.d.ts +44 -4
  37. package/package.json +6 -2
@@ -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;
@@ -84,6 +103,81 @@ export declare const WorkspaceSchema: z.ZodObject<{
84
103
  }>>>;
85
104
  }, z.core.$strip>;
86
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
+ }>>;
87
181
  export declare const ChannelSchema: z.ZodPipe<z.ZodObject<{
88
182
  id: z.ZodNumber;
89
183
  name: z.ZodString;
@@ -141,7 +235,102 @@ export declare const ChannelSchema: z.ZodPipe<z.ZodObject<{
141
235
  filters?: Record<string, string> | null | undefined;
142
236
  }>>;
143
237
  export type Channel = z.infer<typeof ChannelSchema>;
144
- 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<{
145
334
  id: z.ZodNumber;
146
335
  title: z.ZodString;
147
336
  content: z.ZodString;
@@ -150,7 +339,24 @@ export declare const ThreadSchema: z.ZodPipe<z.ZodObject<{
150
339
  channelId: z.ZodNumber;
151
340
  workspaceId: z.ZodNumber;
152
341
  actions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
153
- attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
342
+ attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
343
+ attachmentId: z.ZodString;
344
+ urlType: z.ZodString;
345
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
346
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
347
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
348
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
349
+ underlyingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
350
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
351
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
352
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
353
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
354
+ duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
355
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
356
+ video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
357
+ videoType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
358
+ videoAutoPlay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
359
+ }, z.core.$loose>>>>;
154
360
  commentCount: z.ZodNumber;
155
361
  closed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
156
362
  directGroupMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
@@ -186,7 +392,24 @@ export declare const ThreadSchema: z.ZodPipe<z.ZodObject<{
186
392
  channelId: z.ZodNumber;
187
393
  posted: z.ZodDate;
188
394
  systemMessage: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnknown]>>>;
189
- attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
395
+ attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
396
+ attachmentId: z.ZodString;
397
+ urlType: z.ZodString;
398
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
399
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
400
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
401
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
402
+ underlyingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
403
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
404
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
405
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
406
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
407
+ duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
408
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
409
+ video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
410
+ videoType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
411
+ videoAutoPlay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
412
+ }, z.core.$loose>>>>;
190
413
  reactions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodNumber>>>>;
191
414
  actions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
192
415
  objIndex: z.ZodNumber;
@@ -219,7 +442,25 @@ export declare const ThreadSchema: z.ZodPipe<z.ZodObject<{
219
442
  isArchived: boolean;
220
443
  creatorName?: string | null | undefined;
221
444
  actions?: unknown[] | null | undefined;
222
- attachments?: unknown[] | null | undefined;
445
+ attachments?: {
446
+ [x: string]: unknown;
447
+ attachmentId: string;
448
+ urlType: string;
449
+ title?: string | null | undefined;
450
+ url?: string | null | undefined;
451
+ fileName?: string | null | undefined;
452
+ fileSize?: number | null | undefined;
453
+ underlyingType?: string | null | undefined;
454
+ description?: string | null | undefined;
455
+ image?: string | null | undefined;
456
+ imageWidth?: number | null | undefined;
457
+ imageHeight?: number | null | undefined;
458
+ duration?: string | null | undefined;
459
+ uploadState?: string | null | undefined;
460
+ video?: string | null | undefined;
461
+ videoType?: string | null | undefined;
462
+ videoAutoPlay?: boolean | null | undefined;
463
+ }[] | null | undefined;
223
464
  closed?: boolean | null | undefined;
224
465
  directGroupMentions?: number[] | null | undefined;
225
466
  directMentions?: number[] | null | undefined;
@@ -251,7 +492,25 @@ export declare const ThreadSchema: z.ZodPipe<z.ZodObject<{
251
492
  version: number;
252
493
  workspaceId: number;
253
494
  systemMessage?: unknown;
254
- attachments?: unknown[] | null | undefined;
495
+ attachments?: {
496
+ [x: string]: unknown;
497
+ attachmentId: string;
498
+ urlType: string;
499
+ title?: string | null | undefined;
500
+ url?: string | null | undefined;
501
+ fileName?: string | null | undefined;
502
+ fileSize?: number | null | undefined;
503
+ underlyingType?: string | null | undefined;
504
+ description?: string | null | undefined;
505
+ image?: string | null | undefined;
506
+ imageWidth?: number | null | undefined;
507
+ imageHeight?: number | null | undefined;
508
+ duration?: string | null | undefined;
509
+ uploadState?: string | null | undefined;
510
+ video?: string | null | undefined;
511
+ videoType?: string | null | undefined;
512
+ videoAutoPlay?: boolean | null | undefined;
513
+ }[] | null | undefined;
255
514
  reactions?: Record<string, number[]> | null | undefined;
256
515
  actions?: unknown[] | null | undefined;
257
516
  lastEdited?: Date | null | undefined;
@@ -279,7 +538,25 @@ export declare const ThreadSchema: z.ZodPipe<z.ZodObject<{
279
538
  isArchived: boolean;
280
539
  creatorName?: string | null | undefined;
281
540
  actions?: unknown[] | null | undefined;
282
- attachments?: unknown[] | null | undefined;
541
+ attachments?: {
542
+ [x: string]: unknown;
543
+ attachmentId: string;
544
+ urlType: string;
545
+ title?: string | null | undefined;
546
+ url?: string | null | undefined;
547
+ fileName?: string | null | undefined;
548
+ fileSize?: number | null | undefined;
549
+ underlyingType?: string | null | undefined;
550
+ description?: string | null | undefined;
551
+ image?: string | null | undefined;
552
+ imageWidth?: number | null | undefined;
553
+ imageHeight?: number | null | undefined;
554
+ duration?: string | null | undefined;
555
+ uploadState?: string | null | undefined;
556
+ video?: string | null | undefined;
557
+ videoType?: string | null | undefined;
558
+ videoAutoPlay?: boolean | null | undefined;
559
+ }[] | null | undefined;
283
560
  closed?: boolean | null | undefined;
284
561
  directGroupMentions?: number[] | null | undefined;
285
562
  directMentions?: number[] | null | undefined;
@@ -311,7 +588,25 @@ export declare const ThreadSchema: z.ZodPipe<z.ZodObject<{
311
588
  version: number;
312
589
  workspaceId: number;
313
590
  systemMessage?: unknown;
314
- attachments?: unknown[] | null | undefined;
591
+ attachments?: {
592
+ [x: string]: unknown;
593
+ attachmentId: string;
594
+ urlType: string;
595
+ title?: string | null | undefined;
596
+ url?: string | null | undefined;
597
+ fileName?: string | null | undefined;
598
+ fileSize?: number | null | undefined;
599
+ underlyingType?: string | null | undefined;
600
+ description?: string | null | undefined;
601
+ image?: string | null | undefined;
602
+ imageWidth?: number | null | undefined;
603
+ imageHeight?: number | null | undefined;
604
+ duration?: string | null | undefined;
605
+ uploadState?: string | null | undefined;
606
+ video?: string | null | undefined;
607
+ videoType?: string | null | undefined;
608
+ videoAutoPlay?: boolean | null | undefined;
609
+ }[] | null | undefined;
315
610
  reactions?: Record<string, number[]> | null | undefined;
316
611
  actions?: unknown[] | null | undefined;
317
612
  lastEdited?: Date | null | undefined;
@@ -323,73 +618,447 @@ export declare const ThreadSchema: z.ZodPipe<z.ZodObject<{
323
618
  toEmails?: string[] | null | undefined;
324
619
  } | null | undefined;
325
620
  }>>;
326
- export type Thread = z.infer<typeof ThreadSchema>;
327
- export declare const GroupSchema: z.ZodObject<{
328
- id: z.ZodNumber;
329
- name: z.ZodString;
330
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
331
- workspaceId: z.ZodNumber;
332
- userIds: z.ZodArray<z.ZodNumber>;
333
- version: z.ZodNumber;
334
- }, z.core.$strip>;
335
- export type Group = z.infer<typeof GroupSchema>;
336
- export declare const ConversationSchema: z.ZodPipe<z.ZodObject<{
621
+ export declare const ThreadSchema: z.ZodPipe<z.ZodObject<{
337
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;
338
628
  workspaceId: z.ZodNumber;
339
- userIds: z.ZodArray<z.ZodNumber>;
340
- messageCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
341
- lastObjIndex: z.ZodNumber;
342
- snippet: z.ZodString;
343
- snippetCreators: z.ZodArray<z.ZodNumber>;
344
- 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;
345
656
  mutedUntil: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
346
- archived: z.ZodBoolean;
347
- created: z.ZodDate;
348
- creator: z.ZodNumber;
349
- title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
350
- private: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
351
- 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<{
352
675
  id: z.ZodNumber;
353
676
  content: z.ZodString;
354
677
  creator: z.ZodNumber;
355
- conversationId: z.ZodNumber;
678
+ creatorName: z.ZodString;
679
+ threadId: z.ZodNumber;
680
+ channelId: z.ZodNumber;
356
681
  posted: z.ZodDate;
357
682
  systemMessage: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnknown]>>>;
358
- attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
683
+ attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
684
+ attachmentId: z.ZodString;
685
+ urlType: z.ZodString;
686
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
687
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
688
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
689
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
690
+ underlyingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
691
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
692
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
693
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
694
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
695
+ duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
696
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
697
+ video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
698
+ videoType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
699
+ videoAutoPlay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
700
+ }, z.core.$loose>>>>;
359
701
  reactions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodNumber>>>>;
360
702
  actions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
361
- objIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
703
+ objIndex: z.ZodNumber;
362
704
  lastEdited: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
363
- deleted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
705
+ deleted: z.ZodBoolean;
706
+ deletedBy: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
364
707
  directGroupMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
365
708
  directMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
366
- version: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
367
- workspaceId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
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;
368
714
  }, z.core.$strip>>>;
369
715
  }, z.core.$strip>, z.ZodTransform<{
370
716
  url: string;
371
717
  id: number;
718
+ title: string;
719
+ content: string;
720
+ creator: number;
721
+ channelId: number;
372
722
  workspaceId: number;
373
- userIds: number[];
374
- lastObjIndex: number;
723
+ commentCount: number;
724
+ lastUpdated: Date;
725
+ pinned: boolean;
726
+ posted: Date;
375
727
  snippet: string;
376
- snippetCreators: number[];
377
- lastActive: Date;
378
- archived: boolean;
379
- created: Date;
380
- creator: number;
381
- 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;
382
758
  mutedUntil?: Date | null | undefined;
383
- title?: string | null | undefined;
384
- private?: boolean | null | undefined;
385
- 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?: {
386
771
  id: number;
387
772
  content: string;
388
773
  creator: number;
389
- conversationId: number;
774
+ creatorName: string;
775
+ threadId: number;
776
+ channelId: number;
390
777
  posted: Date;
778
+ objIndex: number;
779
+ deleted: boolean;
780
+ version: number;
781
+ workspaceId: number;
391
782
  systemMessage?: unknown;
392
- attachments?: unknown[] | null | undefined;
783
+ attachments?: {
784
+ [x: string]: unknown;
785
+ attachmentId: string;
786
+ urlType: string;
787
+ title?: string | null | undefined;
788
+ url?: string | null | undefined;
789
+ fileName?: string | null | undefined;
790
+ fileSize?: number | null | undefined;
791
+ underlyingType?: string | null | undefined;
792
+ description?: string | null | undefined;
793
+ image?: string | null | undefined;
794
+ imageWidth?: number | null | undefined;
795
+ imageHeight?: number | null | undefined;
796
+ duration?: string | null | undefined;
797
+ uploadState?: string | null | undefined;
798
+ video?: string | null | undefined;
799
+ videoType?: string | null | undefined;
800
+ videoAutoPlay?: boolean | null | undefined;
801
+ }[] | null | undefined;
802
+ reactions?: Record<string, number[]> | null | undefined;
803
+ actions?: unknown[] | null | undefined;
804
+ lastEdited?: Date | null | undefined;
805
+ deletedBy?: number | null | undefined;
806
+ directGroupMentions?: number[] | null | undefined;
807
+ directMentions?: number[] | null | undefined;
808
+ groups?: number[] | null | undefined;
809
+ recipients?: number[] | null | undefined;
810
+ toEmails?: string[] | null | undefined;
811
+ } | null | undefined;
812
+ }, {
813
+ id: number;
814
+ title: string;
815
+ content: string;
816
+ creator: number;
817
+ channelId: number;
818
+ workspaceId: number;
819
+ commentCount: number;
820
+ lastUpdated: Date;
821
+ pinned: boolean;
822
+ posted: Date;
823
+ snippet: string;
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;
854
+ mutedUntil?: Date | null | undefined;
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?: {
867
+ id: number;
868
+ content: string;
869
+ creator: number;
870
+ creatorName: string;
871
+ threadId: number;
872
+ channelId: number;
873
+ posted: Date;
874
+ objIndex: number;
875
+ deleted: boolean;
876
+ version: number;
877
+ workspaceId: number;
878
+ systemMessage?: unknown;
879
+ attachments?: {
880
+ [x: string]: unknown;
881
+ attachmentId: string;
882
+ urlType: string;
883
+ title?: string | null | undefined;
884
+ url?: string | null | undefined;
885
+ fileName?: string | null | undefined;
886
+ fileSize?: number | null | undefined;
887
+ underlyingType?: string | null | undefined;
888
+ description?: string | null | undefined;
889
+ image?: string | null | undefined;
890
+ imageWidth?: number | null | undefined;
891
+ imageHeight?: number | null | undefined;
892
+ duration?: string | null | undefined;
893
+ uploadState?: string | null | undefined;
894
+ video?: string | null | undefined;
895
+ videoType?: string | null | undefined;
896
+ videoAutoPlay?: boolean | null | undefined;
897
+ }[] | null | undefined;
898
+ reactions?: Record<string, number[]> | null | undefined;
899
+ actions?: unknown[] | null | undefined;
900
+ lastEdited?: Date | null | undefined;
901
+ deletedBy?: number | null | undefined;
902
+ directGroupMentions?: number[] | null | undefined;
903
+ directMentions?: number[] | null | undefined;
904
+ groups?: number[] | null | undefined;
905
+ recipients?: number[] | null | undefined;
906
+ toEmails?: string[] | null | undefined;
907
+ } | null | undefined;
908
+ }>>;
909
+ export type Thread = z.infer<typeof ThreadSchema>;
910
+ export declare const GroupSchema: z.ZodObject<{
911
+ id: z.ZodNumber;
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;
931
+ creator: 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;
972
+ workspaceId: z.ZodNumber;
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;
393
1062
  reactions?: Record<string, number[]> | null | undefined;
394
1063
  actions?: unknown[] | null | undefined;
395
1064
  objIndex?: number | null | undefined;
@@ -422,7 +1091,179 @@ export declare const ConversationSchema: z.ZodPipe<z.ZodObject<{
422
1091
  conversationId: number;
423
1092
  posted: Date;
424
1093
  systemMessage?: unknown;
425
- attachments?: unknown[] | null | undefined;
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;
426
1267
  reactions?: Record<string, number[]> | null | undefined;
427
1268
  actions?: unknown[] | null | undefined;
428
1269
  objIndex?: number | null | undefined;
@@ -435,6 +1276,175 @@ export declare const ConversationSchema: z.ZodPipe<z.ZodObject<{
435
1276
  } | null | undefined;
436
1277
  }>>;
437
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
+ }>>;
438
1448
  export declare const CommentSchema: z.ZodPipe<z.ZodObject<{
439
1449
  id: z.ZodNumber;
440
1450
  content: z.ZodString;
@@ -447,7 +1457,24 @@ export declare const CommentSchema: z.ZodPipe<z.ZodObject<{
447
1457
  directMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
448
1458
  directGroupMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
449
1459
  systemMessage: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnknown]>>>;
450
- attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<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>>>>;
451
1478
  reactions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
452
1479
  objIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
453
1480
  creatorName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -473,7 +1500,25 @@ export declare const CommentSchema: z.ZodPipe<z.ZodObject<{
473
1500
  directMentions?: number[] | null | undefined;
474
1501
  directGroupMentions?: number[] | null | undefined;
475
1502
  systemMessage?: unknown;
476
- attachments?: unknown[] | null | undefined;
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;
477
1522
  reactions?: Record<string, unknown> | null | undefined;
478
1523
  objIndex?: number | null | undefined;
479
1524
  creatorName?: string | null | undefined;
@@ -497,7 +1542,25 @@ export declare const CommentSchema: z.ZodPipe<z.ZodObject<{
497
1542
  directMentions?: number[] | null | undefined;
498
1543
  directGroupMentions?: number[] | null | undefined;
499
1544
  systemMessage?: unknown;
500
- attachments?: unknown[] | null | undefined;
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;
501
1564
  reactions?: Record<string, unknown> | null | undefined;
502
1565
  objIndex?: number | null | undefined;
503
1566
  creatorName?: string | null | undefined;
@@ -547,6 +1610,147 @@ export declare const WorkspaceUserSchema: z.ZodObject<{
547
1610
  version: z.ZodNumber;
548
1611
  }, z.core.$strip>;
549
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;
1688
+ posted: Date;
1689
+ workspaceId: number;
1690
+ systemMessage?: unknown;
1691
+ attachments?: {
1692
+ [x: string]: unknown;
1693
+ attachmentId: string;
1694
+ urlType: string;
1695
+ title?: string | null | undefined;
1696
+ url?: string | null | undefined;
1697
+ fileName?: string | null | undefined;
1698
+ fileSize?: number | null | undefined;
1699
+ underlyingType?: string | null | undefined;
1700
+ description?: string | null | undefined;
1701
+ image?: string | null | undefined;
1702
+ imageWidth?: number | null | undefined;
1703
+ imageHeight?: number | null | undefined;
1704
+ duration?: string | null | undefined;
1705
+ uploadState?: string | null | undefined;
1706
+ video?: string | null | undefined;
1707
+ videoType?: string | null | undefined;
1708
+ videoAutoPlay?: boolean | null | undefined;
1709
+ }[] | null | undefined;
1710
+ reactions?: Record<string, number[]> | null | undefined;
1711
+ actions?: unknown[] | null | undefined;
1712
+ objIndex?: number | null | undefined;
1713
+ lastEdited?: Date | null | undefined;
1714
+ isDeleted?: boolean | null | undefined;
1715
+ directGroupMentions?: number[] | null | undefined;
1716
+ directMentions?: number[] | null | undefined;
1717
+ version?: number | null | undefined;
1718
+ }, {
1719
+ id: number;
1720
+ content: string;
1721
+ creator: number;
1722
+ conversationId: number;
1723
+ posted: Date;
1724
+ workspaceId: number;
1725
+ systemMessage?: unknown;
1726
+ attachments?: {
1727
+ [x: string]: unknown;
1728
+ attachmentId: string;
1729
+ urlType: string;
1730
+ title?: string | null | undefined;
1731
+ url?: string | null | undefined;
1732
+ fileName?: string | null | undefined;
1733
+ fileSize?: number | null | undefined;
1734
+ underlyingType?: string | null | undefined;
1735
+ description?: string | null | undefined;
1736
+ image?: string | null | undefined;
1737
+ imageWidth?: number | null | undefined;
1738
+ imageHeight?: number | null | undefined;
1739
+ duration?: string | null | undefined;
1740
+ uploadState?: string | null | undefined;
1741
+ video?: string | null | undefined;
1742
+ videoType?: string | null | undefined;
1743
+ videoAutoPlay?: boolean | null | undefined;
1744
+ }[] | null | undefined;
1745
+ reactions?: Record<string, number[]> | null | undefined;
1746
+ actions?: unknown[] | null | undefined;
1747
+ objIndex?: number | null | undefined;
1748
+ lastEdited?: Date | null | undefined;
1749
+ isDeleted?: boolean | null | undefined;
1750
+ directGroupMentions?: number[] | null | undefined;
1751
+ directMentions?: number[] | null | undefined;
1752
+ version?: number | null | undefined;
1753
+ }>>;
550
1754
  export declare const ConversationMessageSchema: z.ZodPipe<z.ZodObject<{
551
1755
  id: z.ZodNumber;
552
1756
  content: z.ZodString;
@@ -554,7 +1758,24 @@ export declare const ConversationMessageSchema: z.ZodPipe<z.ZodObject<{
554
1758
  conversationId: z.ZodNumber;
555
1759
  posted: z.ZodDate;
556
1760
  systemMessage: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnknown]>>>;
557
- attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
1761
+ attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1762
+ attachmentId: z.ZodString;
1763
+ urlType: z.ZodString;
1764
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1765
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1766
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1767
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1768
+ underlyingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1769
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1770
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1771
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1772
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1773
+ duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1774
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1775
+ video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1776
+ videoType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1777
+ videoAutoPlay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1778
+ }, z.core.$loose>>>>;
558
1779
  reactions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodNumber>>>>;
559
1780
  actions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
560
1781
  objIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
@@ -573,7 +1794,25 @@ export declare const ConversationMessageSchema: z.ZodPipe<z.ZodObject<{
573
1794
  posted: Date;
574
1795
  workspaceId: number;
575
1796
  systemMessage?: unknown;
576
- attachments?: unknown[] | null | undefined;
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;
577
1816
  reactions?: Record<string, number[]> | null | undefined;
578
1817
  actions?: unknown[] | null | undefined;
579
1818
  objIndex?: number | null | undefined;
@@ -590,7 +1829,25 @@ export declare const ConversationMessageSchema: z.ZodPipe<z.ZodObject<{
590
1829
  posted: Date;
591
1830
  workspaceId: number;
592
1831
  systemMessage?: unknown;
593
- attachments?: unknown[] | null | undefined;
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;
594
1851
  reactions?: Record<string, number[]> | null | undefined;
595
1852
  actions?: unknown[] | null | undefined;
596
1853
  objIndex?: number | null | undefined;
@@ -601,6 +1858,387 @@ export declare const ConversationMessageSchema: z.ZodPipe<z.ZodObject<{
601
1858
  version?: number | null | undefined;
602
1859
  }>>;
603
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>>;
2042
+ }, z.core.$strip>, z.ZodTransform<{
2043
+ url: string;
2044
+ id: number;
2045
+ title: string;
2046
+ content: string;
2047
+ creator: number;
2048
+ channelId: number;
2049
+ workspaceId: number;
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;
2062
+ attachments?: {
2063
+ [x: string]: unknown;
2064
+ attachmentId: string;
2065
+ urlType: string;
2066
+ title?: string | null | undefined;
2067
+ url?: string | null | undefined;
2068
+ fileName?: string | null | undefined;
2069
+ fileSize?: number | null | undefined;
2070
+ underlyingType?: string | null | undefined;
2071
+ description?: string | null | undefined;
2072
+ image?: string | null | undefined;
2073
+ imageWidth?: number | null | undefined;
2074
+ imageHeight?: number | null | undefined;
2075
+ duration?: string | null | undefined;
2076
+ uploadState?: string | null | undefined;
2077
+ video?: string | null | undefined;
2078
+ videoType?: string | null | undefined;
2079
+ videoAutoPlay?: boolean | null | undefined;
2080
+ }[] | null | undefined;
2081
+ directGroupMentions?: number[] | null | undefined;
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;
2141
+ version?: number | null | undefined;
2142
+ }, {
2143
+ id: number;
2144
+ title: string;
2145
+ content: string;
2146
+ creator: number;
2147
+ channelId: number;
2148
+ workspaceId: number;
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;
2161
+ attachments?: {
2162
+ [x: string]: unknown;
2163
+ attachmentId: string;
2164
+ urlType: string;
2165
+ title?: string | null | undefined;
2166
+ url?: string | null | undefined;
2167
+ fileName?: string | null | undefined;
2168
+ fileSize?: number | null | undefined;
2169
+ underlyingType?: string | null | undefined;
2170
+ description?: string | null | undefined;
2171
+ image?: string | null | undefined;
2172
+ imageWidth?: number | null | undefined;
2173
+ imageHeight?: number | null | undefined;
2174
+ duration?: string | null | undefined;
2175
+ uploadState?: string | null | undefined;
2176
+ video?: string | null | undefined;
2177
+ videoType?: string | null | undefined;
2178
+ videoAutoPlay?: boolean | null | undefined;
2179
+ }[] | null | undefined;
2180
+ directGroupMentions?: number[] | null | undefined;
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;
2240
+ version?: number | null | undefined;
2241
+ }>>;
604
2242
  export declare const InboxThreadSchema: z.ZodPipe<z.ZodObject<{
605
2243
  id: z.ZodNumber;
606
2244
  title: z.ZodString;
@@ -610,7 +2248,24 @@ export declare const InboxThreadSchema: z.ZodPipe<z.ZodObject<{
610
2248
  channelId: z.ZodNumber;
611
2249
  workspaceId: z.ZodNumber;
612
2250
  actions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
613
- attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
2251
+ attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2252
+ attachmentId: z.ZodString;
2253
+ urlType: z.ZodString;
2254
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2255
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2256
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2257
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2258
+ underlyingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2259
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2260
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2261
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2262
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2263
+ duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2264
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2265
+ video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2266
+ videoType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2267
+ videoAutoPlay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2268
+ }, z.core.$loose>>>>;
614
2269
  commentCount: z.ZodNumber;
615
2270
  directGroupMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
616
2271
  directMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
@@ -648,7 +2303,24 @@ export declare const InboxThreadSchema: z.ZodPipe<z.ZodObject<{
648
2303
  directMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
649
2304
  directGroupMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
650
2305
  systemMessage: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnknown]>>>;
651
- attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
2306
+ attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2307
+ attachmentId: z.ZodString;
2308
+ urlType: z.ZodString;
2309
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2310
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2311
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2312
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2313
+ underlyingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2314
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2315
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2316
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2317
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2318
+ duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2319
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2320
+ video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2321
+ videoType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2322
+ videoAutoPlay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2323
+ }, z.core.$loose>>>>;
652
2324
  reactions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
653
2325
  objIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
654
2326
  creatorName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -674,7 +2346,25 @@ export declare const InboxThreadSchema: z.ZodPipe<z.ZodObject<{
674
2346
  directMentions?: number[] | null | undefined;
675
2347
  directGroupMentions?: number[] | null | undefined;
676
2348
  systemMessage?: unknown;
677
- attachments?: unknown[] | null | undefined;
2349
+ attachments?: {
2350
+ [x: string]: unknown;
2351
+ attachmentId: string;
2352
+ urlType: string;
2353
+ title?: string | null | undefined;
2354
+ url?: string | null | undefined;
2355
+ fileName?: string | null | undefined;
2356
+ fileSize?: number | null | undefined;
2357
+ underlyingType?: string | null | undefined;
2358
+ description?: string | null | undefined;
2359
+ image?: string | null | undefined;
2360
+ imageWidth?: number | null | undefined;
2361
+ imageHeight?: number | null | undefined;
2362
+ duration?: string | null | undefined;
2363
+ uploadState?: string | null | undefined;
2364
+ video?: string | null | undefined;
2365
+ videoType?: string | null | undefined;
2366
+ videoAutoPlay?: boolean | null | undefined;
2367
+ }[] | null | undefined;
678
2368
  reactions?: Record<string, unknown> | null | undefined;
679
2369
  objIndex?: number | null | undefined;
680
2370
  creatorName?: string | null | undefined;
@@ -698,7 +2388,25 @@ export declare const InboxThreadSchema: z.ZodPipe<z.ZodObject<{
698
2388
  directMentions?: number[] | null | undefined;
699
2389
  directGroupMentions?: number[] | null | undefined;
700
2390
  systemMessage?: unknown;
701
- attachments?: unknown[] | null | undefined;
2391
+ attachments?: {
2392
+ [x: string]: unknown;
2393
+ attachmentId: string;
2394
+ urlType: string;
2395
+ title?: string | null | undefined;
2396
+ url?: string | null | undefined;
2397
+ fileName?: string | null | undefined;
2398
+ fileSize?: number | null | undefined;
2399
+ underlyingType?: string | null | undefined;
2400
+ description?: string | null | undefined;
2401
+ image?: string | null | undefined;
2402
+ imageWidth?: number | null | undefined;
2403
+ imageHeight?: number | null | undefined;
2404
+ duration?: string | null | undefined;
2405
+ uploadState?: string | null | undefined;
2406
+ video?: string | null | undefined;
2407
+ videoType?: string | null | undefined;
2408
+ videoAutoPlay?: boolean | null | undefined;
2409
+ }[] | null | undefined;
702
2410
  reactions?: Record<string, unknown> | null | undefined;
703
2411
  objIndex?: number | null | undefined;
704
2412
  creatorName?: string | null | undefined;
@@ -732,7 +2440,25 @@ export declare const InboxThreadSchema: z.ZodPipe<z.ZodObject<{
732
2440
  closed: boolean;
733
2441
  creatorName?: string | null | undefined;
734
2442
  actions?: unknown[] | null | undefined;
735
- attachments?: unknown[] | null | undefined;
2443
+ attachments?: {
2444
+ [x: string]: unknown;
2445
+ attachmentId: string;
2446
+ urlType: string;
2447
+ title?: string | null | undefined;
2448
+ url?: string | null | undefined;
2449
+ fileName?: string | null | undefined;
2450
+ fileSize?: number | null | undefined;
2451
+ underlyingType?: string | null | undefined;
2452
+ description?: string | null | undefined;
2453
+ image?: string | null | undefined;
2454
+ imageWidth?: number | null | undefined;
2455
+ imageHeight?: number | null | undefined;
2456
+ duration?: string | null | undefined;
2457
+ uploadState?: string | null | undefined;
2458
+ video?: string | null | undefined;
2459
+ videoType?: string | null | undefined;
2460
+ videoAutoPlay?: boolean | null | undefined;
2461
+ }[] | null | undefined;
736
2462
  directGroupMentions?: number[] | null | undefined;
737
2463
  directMentions?: number[] | null | undefined;
738
2464
  groups?: number[] | null | undefined;
@@ -762,7 +2488,25 @@ export declare const InboxThreadSchema: z.ZodPipe<z.ZodObject<{
762
2488
  directMentions?: number[] | null | undefined;
763
2489
  directGroupMentions?: number[] | null | undefined;
764
2490
  systemMessage?: unknown;
765
- attachments?: unknown[] | null | undefined;
2491
+ attachments?: {
2492
+ [x: string]: unknown;
2493
+ attachmentId: string;
2494
+ urlType: string;
2495
+ title?: string | null | undefined;
2496
+ url?: string | null | undefined;
2497
+ fileName?: string | null | undefined;
2498
+ fileSize?: number | null | undefined;
2499
+ underlyingType?: string | null | undefined;
2500
+ description?: string | null | undefined;
2501
+ image?: string | null | undefined;
2502
+ imageWidth?: number | null | undefined;
2503
+ imageHeight?: number | null | undefined;
2504
+ duration?: string | null | undefined;
2505
+ uploadState?: string | null | undefined;
2506
+ video?: string | null | undefined;
2507
+ videoType?: string | null | undefined;
2508
+ videoAutoPlay?: boolean | null | undefined;
2509
+ }[] | null | undefined;
766
2510
  reactions?: Record<string, unknown> | null | undefined;
767
2511
  objIndex?: number | null | undefined;
768
2512
  creatorName?: string | null | undefined;
@@ -795,7 +2539,25 @@ export declare const InboxThreadSchema: z.ZodPipe<z.ZodObject<{
795
2539
  closed: boolean;
796
2540
  creatorName?: string | null | undefined;
797
2541
  actions?: unknown[] | null | undefined;
798
- attachments?: unknown[] | null | undefined;
2542
+ attachments?: {
2543
+ [x: string]: unknown;
2544
+ attachmentId: string;
2545
+ urlType: string;
2546
+ title?: string | null | undefined;
2547
+ url?: string | null | undefined;
2548
+ fileName?: string | null | undefined;
2549
+ fileSize?: number | null | undefined;
2550
+ underlyingType?: string | null | undefined;
2551
+ description?: string | null | undefined;
2552
+ image?: string | null | undefined;
2553
+ imageWidth?: number | null | undefined;
2554
+ imageHeight?: number | null | undefined;
2555
+ duration?: string | null | undefined;
2556
+ uploadState?: string | null | undefined;
2557
+ video?: string | null | undefined;
2558
+ videoType?: string | null | undefined;
2559
+ videoAutoPlay?: boolean | null | undefined;
2560
+ }[] | null | undefined;
799
2561
  directGroupMentions?: number[] | null | undefined;
800
2562
  directMentions?: number[] | null | undefined;
801
2563
  groups?: number[] | null | undefined;
@@ -825,7 +2587,25 @@ export declare const InboxThreadSchema: z.ZodPipe<z.ZodObject<{
825
2587
  directMentions?: number[] | null | undefined;
826
2588
  directGroupMentions?: number[] | null | undefined;
827
2589
  systemMessage?: unknown;
828
- attachments?: unknown[] | null | undefined;
2590
+ attachments?: {
2591
+ [x: string]: unknown;
2592
+ attachmentId: string;
2593
+ urlType: string;
2594
+ title?: string | null | undefined;
2595
+ url?: string | null | undefined;
2596
+ fileName?: string | null | undefined;
2597
+ fileSize?: number | null | undefined;
2598
+ underlyingType?: string | null | undefined;
2599
+ description?: string | null | undefined;
2600
+ image?: string | null | undefined;
2601
+ imageWidth?: number | null | undefined;
2602
+ imageHeight?: number | null | undefined;
2603
+ duration?: string | null | undefined;
2604
+ uploadState?: string | null | undefined;
2605
+ video?: string | null | undefined;
2606
+ videoType?: string | null | undefined;
2607
+ videoAutoPlay?: boolean | null | undefined;
2608
+ }[] | null | undefined;
829
2609
  reactions?: Record<string, unknown> | null | undefined;
830
2610
  objIndex?: number | null | undefined;
831
2611
  creatorName?: string | null | undefined;
@@ -860,8 +2640,8 @@ export declare const SearchResultSchema: z.ZodObject<{
860
2640
  id: z.ZodString;
861
2641
  type: z.ZodEnum<{
862
2642
  thread: "thread";
863
- comment: "comment";
864
2643
  message: "message";
2644
+ comment: "comment";
865
2645
  conversation: "conversation";
866
2646
  }>;
867
2647
  snippet: z.ZodString;