@todoist/comms-sdk 0.0.1 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +182 -39
  3. package/dist/esm/authentication.js +247 -0
  4. package/dist/esm/clients/add-comment-helper.js +41 -0
  5. package/dist/esm/clients/attachments-client.js +99 -0
  6. package/dist/esm/clients/base-client.js +30 -0
  7. package/dist/esm/clients/channels-client.js +209 -0
  8. package/dist/esm/clients/comments-client.js +177 -0
  9. package/dist/esm/clients/conversation-messages-client.js +167 -0
  10. package/dist/esm/clients/conversations-client.js +281 -0
  11. package/dist/esm/clients/groups-client.js +170 -0
  12. package/dist/esm/clients/hooks-client.js +50 -0
  13. package/dist/esm/clients/inbox-client.js +186 -0
  14. package/dist/esm/clients/notify-audience.js +43 -0
  15. package/dist/esm/clients/reactions-client.js +96 -0
  16. package/dist/esm/clients/search-client.js +140 -0
  17. package/dist/esm/clients/threads-client.js +363 -0
  18. package/dist/esm/clients/users-client.js +368 -0
  19. package/dist/esm/clients/workspace-users-client.js +299 -0
  20. package/dist/esm/clients/workspaces-client.js +177 -0
  21. package/dist/esm/comms-api.js +67 -0
  22. package/dist/esm/consts/endpoints.js +31 -0
  23. package/dist/esm/index.js +20 -0
  24. package/dist/esm/migration.js +92 -0
  25. package/dist/esm/testUtils/msw-handlers.js +45 -0
  26. package/dist/esm/testUtils/msw-setup.js +32 -0
  27. package/dist/esm/testUtils/obsidian-fetch-adapter.js +50 -0
  28. package/dist/esm/testUtils/test-defaults.js +103 -0
  29. package/dist/esm/transport/fetch-with-retry.js +240 -0
  30. package/dist/esm/transport/http-client.js +53 -0
  31. package/dist/esm/transport/http-dispatcher.js +149 -0
  32. package/dist/esm/types/api-version.js +5 -0
  33. package/dist/esm/types/entities.js +508 -0
  34. package/dist/esm/types/enums.js +34 -0
  35. package/dist/esm/types/errors.js +82 -0
  36. package/dist/esm/types/http.js +1 -0
  37. package/dist/esm/types/index.js +6 -0
  38. package/dist/esm/types/requests.js +184 -0
  39. package/dist/esm/utils/case-conversion.js +47 -0
  40. package/dist/esm/utils/conversation-title.js +110 -0
  41. package/dist/esm/utils/headers.js +29 -0
  42. package/dist/esm/utils/index.js +5 -0
  43. package/dist/esm/utils/multipart-upload.js +198 -0
  44. package/dist/esm/utils/reply-recipients.js +111 -0
  45. package/dist/esm/utils/timestamp-conversion.js +54 -0
  46. package/dist/esm/utils/url-helpers.js +202 -0
  47. package/dist/esm/utils/uuidv7.js +170 -0
  48. package/dist/types/authentication.d.ts +183 -0
  49. package/dist/types/clients/add-comment-helper.d.ts +32 -0
  50. package/dist/types/clients/attachments-client.d.ts +55 -0
  51. package/dist/types/clients/base-client.d.ts +37 -0
  52. package/dist/types/clients/channels-client.d.ts +211 -0
  53. package/dist/types/clients/comments-client.d.ts +228 -0
  54. package/dist/types/clients/conversation-messages-client.d.ts +201 -0
  55. package/dist/types/clients/conversations-client.d.ts +366 -0
  56. package/dist/types/clients/groups-client.d.ts +148 -0
  57. package/dist/types/clients/hooks-client.d.ts +29 -0
  58. package/dist/types/clients/inbox-client.d.ts +478 -0
  59. package/dist/types/clients/notify-audience.d.ts +22 -0
  60. package/dist/types/clients/reactions-client.d.ts +57 -0
  61. package/dist/types/clients/search-client.d.ts +71 -0
  62. package/dist/types/clients/threads-client.d.ts +547 -0
  63. package/dist/types/clients/users-client.d.ts +280 -0
  64. package/dist/types/clients/workspace-users-client.d.ts +172 -0
  65. package/dist/types/clients/workspaces-client.d.ts +154 -0
  66. package/dist/types/comms-api.d.ts +73 -0
  67. package/dist/types/consts/endpoints.d.ts +27 -0
  68. package/dist/types/index.d.ts +21 -0
  69. package/dist/types/migration.d.ts +78 -0
  70. package/dist/types/testUtils/msw-handlers.d.ts +28 -0
  71. package/dist/types/testUtils/msw-setup.d.ts +1 -0
  72. package/dist/types/testUtils/obsidian-fetch-adapter.d.ts +29 -0
  73. package/dist/types/testUtils/test-defaults.d.ts +17 -0
  74. package/dist/types/transport/fetch-with-retry.d.ts +4 -0
  75. package/dist/types/transport/http-client.d.ts +14 -0
  76. package/dist/types/transport/http-dispatcher.d.ts +46 -0
  77. package/dist/types/types/api-version.d.ts +6 -0
  78. package/dist/types/types/entities.d.ts +3081 -0
  79. package/dist/types/types/enums.d.ts +55 -0
  80. package/dist/types/types/errors.d.ts +57 -0
  81. package/dist/types/types/http.d.ts +60 -0
  82. package/dist/types/types/index.d.ts +6 -0
  83. package/dist/types/types/requests.d.ts +604 -0
  84. package/dist/types/utils/case-conversion.d.ts +8 -0
  85. package/dist/types/utils/conversation-title.d.ts +84 -0
  86. package/dist/types/utils/headers.d.ts +13 -0
  87. package/dist/types/utils/index.d.ts +6 -0
  88. package/dist/types/utils/multipart-upload.d.ts +59 -0
  89. package/dist/types/utils/reply-recipients.d.ts +60 -0
  90. package/dist/types/utils/timestamp-conversion.d.ts +13 -0
  91. package/dist/types/utils/url-helpers.d.ts +129 -0
  92. package/dist/types/utils/uuidv7.d.ts +42 -0
  93. package/package.json +80 -8
@@ -0,0 +1,3081 @@
1
+ import { z } from 'zod';
2
+ export declare const SystemMessageSchema: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnknown]>>>;
3
+ /**
4
+ * Shared `{ status: "ok" }` response shape. Pinned to the literal `'ok'`
5
+ * so a regression on the backend (e.g. a status code change) surfaces as
6
+ * a parse error here instead of being silently typed away. Most write
7
+ * endpoints that don't return an entity use this — archive / unarchive /
8
+ * mark-read / mark-all-read / mute / clear-unread / etc.
9
+ */
10
+ export declare const StatusOkSchema: z.ZodObject<{
11
+ status: z.ZodLiteral<"ok">;
12
+ }, z.core.$strip>;
13
+ export type StatusOk = z.infer<typeof StatusOkSchema>;
14
+ export declare const HookSubscribeResponseSchema: z.ZodObject<{
15
+ status: z.ZodLiteral<"ok">;
16
+ id: z.ZodNumber;
17
+ }, z.core.$strip>;
18
+ export type HookSubscribeResponse = z.infer<typeof HookSubscribeResponseSchema>;
19
+ export declare const AttachmentSchema: z.ZodObject<{
20
+ attachmentId: z.ZodString;
21
+ urlType: z.ZodString;
22
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
26
+ underlyingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
30
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
31
+ duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
+ video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
34
+ videoType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
35
+ videoAutoPlay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
36
+ }, z.core.$loose>;
37
+ export type Attachment = z.infer<typeof AttachmentSchema>;
38
+ export declare const RequestAttachmentSchema: z.ZodObject<{
39
+ attachmentId: z.ZodString;
40
+ urlType: z.ZodString;
41
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
43
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
44
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
45
+ underlyingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
46
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
47
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
48
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
49
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
50
+ duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
51
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
52
+ video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
53
+ videoType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
+ videoAutoPlay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
55
+ }, z.core.$strip>;
56
+ export type RequestAttachment = z.infer<typeof RequestAttachmentSchema>;
57
+ export declare const StatusEffectSchema: z.ZodObject<{
58
+ scope: z.ZodOptional<z.ZodObject<{
59
+ mode: z.ZodOptional<z.ZodString>;
60
+ }, z.core.$strip>>;
61
+ }, z.core.$strip>;
62
+ export declare const UserStatusSchema: z.ZodObject<{
63
+ message: z.ZodString;
64
+ emoji: z.ZodOptional<z.ZodNullable<z.ZodString>>;
65
+ activeUntil: z.ZodOptional<z.ZodNullable<z.ZodString>>;
66
+ effects: z.ZodOptional<z.ZodObject<{
67
+ pauseNotifications: z.ZodOptional<z.ZodObject<{
68
+ scope: z.ZodOptional<z.ZodObject<{
69
+ mode: z.ZodOptional<z.ZodString>;
70
+ }, z.core.$strip>>;
71
+ }, z.core.$strip>>;
72
+ pauseActivity: z.ZodOptional<z.ZodObject<{
73
+ scope: z.ZodOptional<z.ZodObject<{
74
+ mode: z.ZodOptional<z.ZodString>;
75
+ }, z.core.$strip>>;
76
+ }, z.core.$strip>>;
77
+ }, z.core.$strip>>;
78
+ }, z.core.$strip>;
79
+ export type UserStatus = z.infer<typeof UserStatusSchema>;
80
+ export declare const BaseUserSchema: z.ZodObject<{
81
+ id: z.ZodNumber;
82
+ fullName: z.ZodString;
83
+ shortName: z.ZodString;
84
+ firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
85
+ timezone: z.ZodString;
86
+ removed: z.ZodBoolean;
87
+ imageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
88
+ avatarUrls: z.ZodOptional<z.ZodNullable<z.ZodObject<{
89
+ s35: z.ZodString;
90
+ s60: z.ZodString;
91
+ s195: z.ZodString;
92
+ s640: z.ZodString;
93
+ }, z.core.$strip>>>;
94
+ restricted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
95
+ setupPending: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
96
+ status: z.ZodOptional<z.ZodNullable<z.ZodObject<{
97
+ message: z.ZodString;
98
+ emoji: z.ZodOptional<z.ZodNullable<z.ZodString>>;
99
+ activeUntil: z.ZodOptional<z.ZodNullable<z.ZodString>>;
100
+ effects: z.ZodOptional<z.ZodObject<{
101
+ pauseNotifications: z.ZodOptional<z.ZodObject<{
102
+ scope: z.ZodOptional<z.ZodObject<{
103
+ mode: z.ZodOptional<z.ZodString>;
104
+ }, z.core.$strip>>;
105
+ }, z.core.$strip>>;
106
+ pauseActivity: z.ZodOptional<z.ZodObject<{
107
+ scope: z.ZodOptional<z.ZodObject<{
108
+ mode: z.ZodOptional<z.ZodString>;
109
+ }, z.core.$strip>>;
110
+ }, z.core.$strip>>;
111
+ }, z.core.$strip>>;
112
+ }, z.core.$strip>>>;
113
+ }, z.core.$strip>;
114
+ export declare const UserSchema: z.ZodObject<{
115
+ id: z.ZodNumber;
116
+ fullName: z.ZodString;
117
+ shortName: z.ZodString;
118
+ firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
119
+ timezone: z.ZodString;
120
+ removed: z.ZodBoolean;
121
+ imageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
122
+ avatarUrls: z.ZodOptional<z.ZodNullable<z.ZodObject<{
123
+ s35: z.ZodString;
124
+ s60: z.ZodString;
125
+ s195: z.ZodString;
126
+ s640: z.ZodString;
127
+ }, z.core.$strip>>>;
128
+ restricted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
129
+ setupPending: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
130
+ status: z.ZodOptional<z.ZodNullable<z.ZodObject<{
131
+ message: z.ZodString;
132
+ emoji: z.ZodOptional<z.ZodNullable<z.ZodString>>;
133
+ activeUntil: z.ZodOptional<z.ZodNullable<z.ZodString>>;
134
+ effects: z.ZodOptional<z.ZodObject<{
135
+ pauseNotifications: z.ZodOptional<z.ZodObject<{
136
+ scope: z.ZodOptional<z.ZodObject<{
137
+ mode: z.ZodOptional<z.ZodString>;
138
+ }, z.core.$strip>>;
139
+ }, z.core.$strip>>;
140
+ pauseActivity: z.ZodOptional<z.ZodObject<{
141
+ scope: z.ZodOptional<z.ZodObject<{
142
+ mode: z.ZodOptional<z.ZodString>;
143
+ }, z.core.$strip>>;
144
+ }, z.core.$strip>>;
145
+ }, z.core.$strip>>;
146
+ }, z.core.$strip>>>;
147
+ email: z.ZodEmail;
148
+ clientId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
149
+ cometChannel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
150
+ lang: z.ZodString;
151
+ cometServer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
152
+ token: z.ZodOptional<z.ZodNullable<z.ZodString>>;
153
+ scheduledBanners: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
154
+ }, z.core.$strip>;
155
+ export type User = z.infer<typeof UserSchema>;
156
+ export declare const WorkspaceSchema: z.ZodObject<{
157
+ id: z.ZodNumber;
158
+ name: z.ZodString;
159
+ defaultConversation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
160
+ creator: z.ZodNumber;
161
+ created: z.ZodDate;
162
+ avatarId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
163
+ avatarUrls: z.ZodOptional<z.ZodNullable<z.ZodObject<{
164
+ s35: z.ZodString;
165
+ s60: z.ZodString;
166
+ s195: z.ZodString;
167
+ s640: z.ZodString;
168
+ }, z.core.$strip>>>;
169
+ plan: z.ZodOptional<z.ZodNullable<z.ZodString>>;
170
+ uploadLimitMb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
171
+ }, z.core.$strip>;
172
+ export type Workspace = z.infer<typeof WorkspaceSchema>;
173
+ export declare const ChannelObjectSchema: z.ZodObject<{
174
+ id: z.ZodString;
175
+ name: z.ZodString;
176
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
177
+ creator: z.ZodNumber;
178
+ userIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
179
+ color: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
180
+ public: z.ZodBoolean;
181
+ workspaceId: z.ZodNumber;
182
+ archived: z.ZodBoolean;
183
+ created: z.ZodDate;
184
+ useDefaultRecipients: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
185
+ defaultGroups: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
186
+ defaultRecipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
187
+ isFavorited: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
188
+ icon: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
189
+ version: z.ZodNumber;
190
+ filters: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
191
+ }, z.core.$strip>;
192
+ export declare function createChannelSchema(linkBaseUrl?: string): z.ZodPipe<z.ZodObject<{
193
+ id: z.ZodString;
194
+ name: z.ZodString;
195
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
196
+ creator: z.ZodNumber;
197
+ userIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
198
+ color: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
199
+ public: z.ZodBoolean;
200
+ workspaceId: z.ZodNumber;
201
+ archived: z.ZodBoolean;
202
+ created: z.ZodDate;
203
+ useDefaultRecipients: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
204
+ defaultGroups: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
205
+ defaultRecipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
206
+ isFavorited: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
207
+ icon: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
208
+ version: z.ZodNumber;
209
+ filters: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
210
+ }, z.core.$strip>, z.ZodTransform<{
211
+ url: string;
212
+ id: string;
213
+ name: string;
214
+ creator: number;
215
+ public: boolean;
216
+ workspaceId: number;
217
+ archived: boolean;
218
+ created: Date;
219
+ version: number;
220
+ description?: string | null | undefined;
221
+ userIds?: number[] | null | undefined;
222
+ color?: number | null | undefined;
223
+ useDefaultRecipients?: boolean | null | undefined;
224
+ defaultGroups?: string[] | null | undefined;
225
+ defaultRecipients?: number[] | null | undefined;
226
+ isFavorited?: boolean | null | undefined;
227
+ icon?: number | null | undefined;
228
+ filters?: Record<string, string> | null | undefined;
229
+ }, {
230
+ id: string;
231
+ name: string;
232
+ creator: number;
233
+ public: boolean;
234
+ workspaceId: number;
235
+ archived: boolean;
236
+ created: Date;
237
+ version: number;
238
+ description?: string | null | undefined;
239
+ userIds?: number[] | null | undefined;
240
+ color?: number | null | undefined;
241
+ useDefaultRecipients?: boolean | null | undefined;
242
+ defaultGroups?: string[] | null | undefined;
243
+ defaultRecipients?: number[] | null | undefined;
244
+ isFavorited?: boolean | null | undefined;
245
+ icon?: number | null | undefined;
246
+ filters?: Record<string, string> | null | undefined;
247
+ }>>;
248
+ export declare const ChannelSchema: z.ZodPipe<z.ZodObject<{
249
+ id: z.ZodString;
250
+ name: z.ZodString;
251
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
252
+ creator: z.ZodNumber;
253
+ userIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
254
+ color: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
255
+ public: z.ZodBoolean;
256
+ workspaceId: z.ZodNumber;
257
+ archived: z.ZodBoolean;
258
+ created: z.ZodDate;
259
+ useDefaultRecipients: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
260
+ defaultGroups: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
261
+ defaultRecipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
262
+ isFavorited: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
263
+ icon: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
264
+ version: z.ZodNumber;
265
+ filters: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
266
+ }, z.core.$strip>, z.ZodTransform<{
267
+ url: string;
268
+ id: string;
269
+ name: string;
270
+ creator: number;
271
+ public: boolean;
272
+ workspaceId: number;
273
+ archived: boolean;
274
+ created: Date;
275
+ version: number;
276
+ description?: string | null | undefined;
277
+ userIds?: number[] | null | undefined;
278
+ color?: number | null | undefined;
279
+ useDefaultRecipients?: boolean | null | undefined;
280
+ defaultGroups?: string[] | null | undefined;
281
+ defaultRecipients?: number[] | null | undefined;
282
+ isFavorited?: boolean | null | undefined;
283
+ icon?: number | null | undefined;
284
+ filters?: Record<string, string> | null | undefined;
285
+ }, {
286
+ id: string;
287
+ name: string;
288
+ creator: number;
289
+ public: boolean;
290
+ workspaceId: number;
291
+ archived: boolean;
292
+ created: Date;
293
+ version: number;
294
+ description?: string | null | undefined;
295
+ userIds?: number[] | null | undefined;
296
+ color?: number | null | undefined;
297
+ useDefaultRecipients?: boolean | null | undefined;
298
+ defaultGroups?: string[] | null | undefined;
299
+ defaultRecipients?: number[] | null | undefined;
300
+ isFavorited?: boolean | null | undefined;
301
+ icon?: number | null | undefined;
302
+ filters?: Record<string, string> | null | undefined;
303
+ }>>;
304
+ export type Channel = z.infer<typeof ChannelSchema>;
305
+ export declare const ThreadObjectSchema: z.ZodObject<{
306
+ id: z.ZodString;
307
+ title: z.ZodString;
308
+ content: z.ZodString;
309
+ creator: z.ZodNumber;
310
+ creatorName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
311
+ channelId: z.ZodString;
312
+ workspaceId: z.ZodNumber;
313
+ actions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
314
+ attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
315
+ attachmentId: z.ZodString;
316
+ urlType: z.ZodString;
317
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
318
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
319
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
320
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
321
+ underlyingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
322
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
323
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
324
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
325
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
326
+ duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
327
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
328
+ video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
329
+ videoType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
330
+ videoAutoPlay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
331
+ }, z.core.$loose>>>>;
332
+ commentCount: z.ZodNumber;
333
+ closed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
334
+ directGroupMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
335
+ directMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
336
+ groups: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
337
+ lastEdited: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
338
+ lastObjIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
339
+ lastUpdated: z.ZodDate;
340
+ mutedUntil: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
341
+ participants: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
342
+ pinned: z.ZodOptional<z.ZodBoolean>;
343
+ pinnedDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
344
+ posted: z.ZodDate;
345
+ reactions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
346
+ recipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
347
+ responders: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
348
+ snippet: z.ZodString;
349
+ snippetCreator: z.ZodNumber;
350
+ snippetMaskAvatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
351
+ snippetMaskPoster: z.ZodOptional<z.ZodNullable<z.ZodString>>;
352
+ systemMessage: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnknown]>>>;
353
+ toEmails: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
354
+ isArchived: z.ZodBoolean;
355
+ isSaved: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
356
+ inInbox: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
357
+ lastComment: z.ZodOptional<z.ZodNullable<z.ZodObject<{
358
+ id: z.ZodString;
359
+ content: z.ZodString;
360
+ creator: z.ZodNumber;
361
+ creatorName: z.ZodString;
362
+ threadId: z.ZodString;
363
+ channelId: z.ZodString;
364
+ posted: z.ZodDate;
365
+ systemMessage: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnknown]>>>;
366
+ attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
367
+ attachmentId: z.ZodString;
368
+ urlType: z.ZodString;
369
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
370
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
371
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
372
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
373
+ underlyingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
374
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
375
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
376
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
377
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
378
+ duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
379
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
380
+ video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
381
+ videoType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
382
+ videoAutoPlay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
383
+ }, z.core.$loose>>>>;
384
+ reactions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodNumber>>>>;
385
+ actions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
386
+ objIndex: z.ZodNumber;
387
+ lastEdited: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
388
+ deleted: z.ZodBoolean;
389
+ deletedBy: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
390
+ directGroupMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
391
+ directMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
392
+ groups: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
393
+ recipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
394
+ toEmails: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
395
+ version: z.ZodNumber;
396
+ workspaceId: z.ZodNumber;
397
+ }, z.core.$strip>>>;
398
+ }, z.core.$strip>;
399
+ export declare function createThreadSchema(linkBaseUrl?: string): z.ZodPipe<z.ZodObject<{
400
+ id: z.ZodString;
401
+ title: z.ZodString;
402
+ content: z.ZodString;
403
+ creator: z.ZodNumber;
404
+ creatorName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
405
+ channelId: z.ZodString;
406
+ workspaceId: z.ZodNumber;
407
+ actions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
408
+ attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
409
+ attachmentId: z.ZodString;
410
+ urlType: z.ZodString;
411
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
412
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
413
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
414
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
415
+ underlyingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
416
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
417
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
418
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
419
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
420
+ duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
421
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
422
+ video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
423
+ videoType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
424
+ videoAutoPlay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
425
+ }, z.core.$loose>>>>;
426
+ commentCount: z.ZodNumber;
427
+ closed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
428
+ directGroupMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
429
+ directMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
430
+ groups: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
431
+ lastEdited: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
432
+ lastObjIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
433
+ lastUpdated: z.ZodDate;
434
+ mutedUntil: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
435
+ participants: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
436
+ pinned: z.ZodOptional<z.ZodBoolean>;
437
+ pinnedDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
438
+ posted: z.ZodDate;
439
+ reactions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
440
+ recipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
441
+ responders: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
442
+ snippet: z.ZodString;
443
+ snippetCreator: z.ZodNumber;
444
+ snippetMaskAvatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
445
+ snippetMaskPoster: z.ZodOptional<z.ZodNullable<z.ZodString>>;
446
+ systemMessage: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnknown]>>>;
447
+ toEmails: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
448
+ isArchived: z.ZodBoolean;
449
+ isSaved: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
450
+ inInbox: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
451
+ lastComment: z.ZodOptional<z.ZodNullable<z.ZodObject<{
452
+ id: z.ZodString;
453
+ content: z.ZodString;
454
+ creator: z.ZodNumber;
455
+ creatorName: z.ZodString;
456
+ threadId: z.ZodString;
457
+ channelId: z.ZodString;
458
+ posted: z.ZodDate;
459
+ systemMessage: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnknown]>>>;
460
+ attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
461
+ attachmentId: z.ZodString;
462
+ urlType: z.ZodString;
463
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
464
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
465
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
466
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
467
+ underlyingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
468
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
469
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
470
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
471
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
472
+ duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
473
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
474
+ video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
475
+ videoType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
476
+ videoAutoPlay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
477
+ }, z.core.$loose>>>>;
478
+ reactions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodNumber>>>>;
479
+ actions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
480
+ objIndex: z.ZodNumber;
481
+ lastEdited: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
482
+ deleted: z.ZodBoolean;
483
+ deletedBy: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
484
+ directGroupMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
485
+ directMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
486
+ groups: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
487
+ recipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
488
+ toEmails: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
489
+ version: z.ZodNumber;
490
+ workspaceId: z.ZodNumber;
491
+ }, z.core.$strip>>>;
492
+ }, z.core.$strip>, z.ZodTransform<{
493
+ url: string;
494
+ id: string;
495
+ title: string;
496
+ content: string;
497
+ creator: number;
498
+ channelId: string;
499
+ workspaceId: number;
500
+ commentCount: number;
501
+ lastUpdated: Date;
502
+ posted: Date;
503
+ snippet: string;
504
+ snippetCreator: number;
505
+ isArchived: boolean;
506
+ creatorName?: string | null | undefined;
507
+ actions?: unknown[] | null | undefined;
508
+ attachments?: {
509
+ [x: string]: unknown;
510
+ attachmentId: string;
511
+ urlType: string;
512
+ title?: string | null | undefined;
513
+ url?: string | null | undefined;
514
+ fileName?: string | null | undefined;
515
+ fileSize?: number | null | undefined;
516
+ underlyingType?: string | null | undefined;
517
+ description?: string | null | undefined;
518
+ image?: string | null | undefined;
519
+ imageWidth?: number | null | undefined;
520
+ imageHeight?: number | null | undefined;
521
+ duration?: string | null | undefined;
522
+ uploadState?: string | null | undefined;
523
+ video?: string | null | undefined;
524
+ videoType?: string | null | undefined;
525
+ videoAutoPlay?: boolean | null | undefined;
526
+ }[] | null | undefined;
527
+ closed?: boolean | null | undefined;
528
+ directGroupMentions?: string[] | null | undefined;
529
+ directMentions?: number[] | null | undefined;
530
+ groups?: string[] | null | undefined;
531
+ lastEdited?: Date | null | undefined;
532
+ lastObjIndex?: number | null | undefined;
533
+ mutedUntil?: Date | null | undefined;
534
+ participants?: number[] | null | undefined;
535
+ pinned?: boolean | undefined;
536
+ pinnedDate?: Date | null | undefined;
537
+ reactions?: Record<string, unknown> | null | undefined;
538
+ recipients?: number[] | null | undefined;
539
+ responders?: number[] | null | undefined;
540
+ snippetMaskAvatarUrl?: string | null | undefined;
541
+ snippetMaskPoster?: string | null | undefined;
542
+ systemMessage?: unknown;
543
+ toEmails?: string[] | null | undefined;
544
+ isSaved?: boolean | null | undefined;
545
+ inInbox?: boolean | null | undefined;
546
+ lastComment?: {
547
+ id: string;
548
+ content: string;
549
+ creator: number;
550
+ creatorName: string;
551
+ threadId: string;
552
+ channelId: string;
553
+ posted: Date;
554
+ objIndex: number;
555
+ deleted: boolean;
556
+ version: number;
557
+ workspaceId: number;
558
+ systemMessage?: unknown;
559
+ attachments?: {
560
+ [x: string]: unknown;
561
+ attachmentId: string;
562
+ urlType: string;
563
+ title?: string | null | undefined;
564
+ url?: string | null | undefined;
565
+ fileName?: string | null | undefined;
566
+ fileSize?: number | null | undefined;
567
+ underlyingType?: string | null | undefined;
568
+ description?: string | null | undefined;
569
+ image?: string | null | undefined;
570
+ imageWidth?: number | null | undefined;
571
+ imageHeight?: number | null | undefined;
572
+ duration?: string | null | undefined;
573
+ uploadState?: string | null | undefined;
574
+ video?: string | null | undefined;
575
+ videoType?: string | null | undefined;
576
+ videoAutoPlay?: boolean | null | undefined;
577
+ }[] | null | undefined;
578
+ reactions?: Record<string, number[]> | null | undefined;
579
+ actions?: unknown[] | null | undefined;
580
+ lastEdited?: Date | null | undefined;
581
+ deletedBy?: number | null | undefined;
582
+ directGroupMentions?: string[] | null | undefined;
583
+ directMentions?: number[] | null | undefined;
584
+ groups?: string[] | null | undefined;
585
+ recipients?: number[] | null | undefined;
586
+ toEmails?: string[] | null | undefined;
587
+ } | null | undefined;
588
+ }, {
589
+ id: string;
590
+ title: string;
591
+ content: string;
592
+ creator: number;
593
+ channelId: string;
594
+ workspaceId: number;
595
+ commentCount: number;
596
+ lastUpdated: Date;
597
+ posted: Date;
598
+ snippet: string;
599
+ snippetCreator: number;
600
+ isArchived: boolean;
601
+ creatorName?: string | null | undefined;
602
+ actions?: unknown[] | null | undefined;
603
+ attachments?: {
604
+ [x: string]: unknown;
605
+ attachmentId: string;
606
+ urlType: string;
607
+ title?: string | null | undefined;
608
+ url?: string | null | undefined;
609
+ fileName?: string | null | undefined;
610
+ fileSize?: number | null | undefined;
611
+ underlyingType?: string | null | undefined;
612
+ description?: string | null | undefined;
613
+ image?: string | null | undefined;
614
+ imageWidth?: number | null | undefined;
615
+ imageHeight?: number | null | undefined;
616
+ duration?: string | null | undefined;
617
+ uploadState?: string | null | undefined;
618
+ video?: string | null | undefined;
619
+ videoType?: string | null | undefined;
620
+ videoAutoPlay?: boolean | null | undefined;
621
+ }[] | null | undefined;
622
+ closed?: boolean | null | undefined;
623
+ directGroupMentions?: string[] | null | undefined;
624
+ directMentions?: number[] | null | undefined;
625
+ groups?: string[] | null | undefined;
626
+ lastEdited?: Date | null | undefined;
627
+ lastObjIndex?: number | null | undefined;
628
+ mutedUntil?: Date | null | undefined;
629
+ participants?: number[] | null | undefined;
630
+ pinned?: boolean | undefined;
631
+ pinnedDate?: Date | null | undefined;
632
+ reactions?: Record<string, unknown> | null | undefined;
633
+ recipients?: number[] | null | undefined;
634
+ responders?: number[] | null | undefined;
635
+ snippetMaskAvatarUrl?: string | null | undefined;
636
+ snippetMaskPoster?: string | null | undefined;
637
+ systemMessage?: unknown;
638
+ toEmails?: string[] | null | undefined;
639
+ isSaved?: boolean | null | undefined;
640
+ inInbox?: boolean | null | undefined;
641
+ lastComment?: {
642
+ id: string;
643
+ content: string;
644
+ creator: number;
645
+ creatorName: string;
646
+ threadId: string;
647
+ channelId: string;
648
+ posted: Date;
649
+ objIndex: number;
650
+ deleted: boolean;
651
+ version: number;
652
+ workspaceId: number;
653
+ systemMessage?: unknown;
654
+ attachments?: {
655
+ [x: string]: unknown;
656
+ attachmentId: string;
657
+ urlType: string;
658
+ title?: string | null | undefined;
659
+ url?: string | null | undefined;
660
+ fileName?: string | null | undefined;
661
+ fileSize?: number | null | undefined;
662
+ underlyingType?: string | null | undefined;
663
+ description?: string | null | undefined;
664
+ image?: string | null | undefined;
665
+ imageWidth?: number | null | undefined;
666
+ imageHeight?: number | null | undefined;
667
+ duration?: string | null | undefined;
668
+ uploadState?: string | null | undefined;
669
+ video?: string | null | undefined;
670
+ videoType?: string | null | undefined;
671
+ videoAutoPlay?: boolean | null | undefined;
672
+ }[] | null | undefined;
673
+ reactions?: Record<string, number[]> | null | undefined;
674
+ actions?: unknown[] | null | undefined;
675
+ lastEdited?: Date | null | undefined;
676
+ deletedBy?: number | null | undefined;
677
+ directGroupMentions?: string[] | null | undefined;
678
+ directMentions?: number[] | null | undefined;
679
+ groups?: string[] | null | undefined;
680
+ recipients?: number[] | null | undefined;
681
+ toEmails?: string[] | null | undefined;
682
+ } | null | undefined;
683
+ }>>;
684
+ export declare const ThreadSchema: z.ZodPipe<z.ZodObject<{
685
+ id: z.ZodString;
686
+ title: z.ZodString;
687
+ content: z.ZodString;
688
+ creator: z.ZodNumber;
689
+ creatorName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
690
+ channelId: z.ZodString;
691
+ workspaceId: z.ZodNumber;
692
+ actions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
693
+ attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
694
+ attachmentId: z.ZodString;
695
+ urlType: z.ZodString;
696
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
697
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
698
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
699
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
700
+ underlyingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
701
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
702
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
703
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
704
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
705
+ duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
706
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
707
+ video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
708
+ videoType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
709
+ videoAutoPlay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
710
+ }, z.core.$loose>>>>;
711
+ commentCount: z.ZodNumber;
712
+ closed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
713
+ directGroupMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
714
+ directMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
715
+ groups: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
716
+ lastEdited: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
717
+ lastObjIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
718
+ lastUpdated: z.ZodDate;
719
+ mutedUntil: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
720
+ participants: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
721
+ pinned: z.ZodOptional<z.ZodBoolean>;
722
+ pinnedDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
723
+ posted: z.ZodDate;
724
+ reactions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
725
+ recipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
726
+ responders: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
727
+ snippet: z.ZodString;
728
+ snippetCreator: z.ZodNumber;
729
+ snippetMaskAvatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
730
+ snippetMaskPoster: z.ZodOptional<z.ZodNullable<z.ZodString>>;
731
+ systemMessage: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnknown]>>>;
732
+ toEmails: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
733
+ isArchived: z.ZodBoolean;
734
+ isSaved: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
735
+ inInbox: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
736
+ lastComment: z.ZodOptional<z.ZodNullable<z.ZodObject<{
737
+ id: z.ZodString;
738
+ content: z.ZodString;
739
+ creator: z.ZodNumber;
740
+ creatorName: z.ZodString;
741
+ threadId: z.ZodString;
742
+ channelId: z.ZodString;
743
+ posted: z.ZodDate;
744
+ systemMessage: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnknown]>>>;
745
+ attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
746
+ attachmentId: z.ZodString;
747
+ urlType: z.ZodString;
748
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
749
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
750
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
751
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
752
+ underlyingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
753
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
754
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
755
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
756
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
757
+ duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
758
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
759
+ video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
760
+ videoType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
761
+ videoAutoPlay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
762
+ }, z.core.$loose>>>>;
763
+ reactions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodNumber>>>>;
764
+ actions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
765
+ objIndex: z.ZodNumber;
766
+ lastEdited: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
767
+ deleted: z.ZodBoolean;
768
+ deletedBy: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
769
+ directGroupMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
770
+ directMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
771
+ groups: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
772
+ recipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
773
+ toEmails: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
774
+ version: z.ZodNumber;
775
+ workspaceId: z.ZodNumber;
776
+ }, z.core.$strip>>>;
777
+ }, z.core.$strip>, z.ZodTransform<{
778
+ url: string;
779
+ id: string;
780
+ title: string;
781
+ content: string;
782
+ creator: number;
783
+ channelId: string;
784
+ workspaceId: number;
785
+ commentCount: number;
786
+ lastUpdated: Date;
787
+ posted: Date;
788
+ snippet: string;
789
+ snippetCreator: number;
790
+ isArchived: boolean;
791
+ creatorName?: string | null | undefined;
792
+ actions?: unknown[] | null | undefined;
793
+ attachments?: {
794
+ [x: string]: unknown;
795
+ attachmentId: string;
796
+ urlType: string;
797
+ title?: string | null | undefined;
798
+ url?: string | null | undefined;
799
+ fileName?: string | null | undefined;
800
+ fileSize?: number | null | undefined;
801
+ underlyingType?: string | null | undefined;
802
+ description?: string | null | undefined;
803
+ image?: string | null | undefined;
804
+ imageWidth?: number | null | undefined;
805
+ imageHeight?: number | null | undefined;
806
+ duration?: string | null | undefined;
807
+ uploadState?: string | null | undefined;
808
+ video?: string | null | undefined;
809
+ videoType?: string | null | undefined;
810
+ videoAutoPlay?: boolean | null | undefined;
811
+ }[] | null | undefined;
812
+ closed?: boolean | null | undefined;
813
+ directGroupMentions?: string[] | null | undefined;
814
+ directMentions?: number[] | null | undefined;
815
+ groups?: string[] | null | undefined;
816
+ lastEdited?: Date | null | undefined;
817
+ lastObjIndex?: number | null | undefined;
818
+ mutedUntil?: Date | null | undefined;
819
+ participants?: number[] | null | undefined;
820
+ pinned?: boolean | undefined;
821
+ pinnedDate?: Date | null | undefined;
822
+ reactions?: Record<string, unknown> | null | undefined;
823
+ recipients?: number[] | null | undefined;
824
+ responders?: number[] | null | undefined;
825
+ snippetMaskAvatarUrl?: string | null | undefined;
826
+ snippetMaskPoster?: string | null | undefined;
827
+ systemMessage?: unknown;
828
+ toEmails?: string[] | null | undefined;
829
+ isSaved?: boolean | null | undefined;
830
+ inInbox?: boolean | null | undefined;
831
+ lastComment?: {
832
+ id: string;
833
+ content: string;
834
+ creator: number;
835
+ creatorName: string;
836
+ threadId: string;
837
+ channelId: string;
838
+ posted: Date;
839
+ objIndex: number;
840
+ deleted: boolean;
841
+ version: number;
842
+ workspaceId: number;
843
+ systemMessage?: unknown;
844
+ attachments?: {
845
+ [x: string]: unknown;
846
+ attachmentId: string;
847
+ urlType: string;
848
+ title?: string | null | undefined;
849
+ url?: string | null | undefined;
850
+ fileName?: string | null | undefined;
851
+ fileSize?: number | null | undefined;
852
+ underlyingType?: string | null | undefined;
853
+ description?: string | null | undefined;
854
+ image?: string | null | undefined;
855
+ imageWidth?: number | null | undefined;
856
+ imageHeight?: number | null | undefined;
857
+ duration?: string | null | undefined;
858
+ uploadState?: string | null | undefined;
859
+ video?: string | null | undefined;
860
+ videoType?: string | null | undefined;
861
+ videoAutoPlay?: boolean | null | undefined;
862
+ }[] | null | undefined;
863
+ reactions?: Record<string, number[]> | null | undefined;
864
+ actions?: unknown[] | null | undefined;
865
+ lastEdited?: Date | null | undefined;
866
+ deletedBy?: number | null | undefined;
867
+ directGroupMentions?: string[] | null | undefined;
868
+ directMentions?: number[] | null | undefined;
869
+ groups?: string[] | null | undefined;
870
+ recipients?: number[] | null | undefined;
871
+ toEmails?: string[] | null | undefined;
872
+ } | null | undefined;
873
+ }, {
874
+ id: string;
875
+ title: string;
876
+ content: string;
877
+ creator: number;
878
+ channelId: string;
879
+ workspaceId: number;
880
+ commentCount: number;
881
+ lastUpdated: Date;
882
+ posted: Date;
883
+ snippet: string;
884
+ snippetCreator: number;
885
+ isArchived: boolean;
886
+ creatorName?: string | null | undefined;
887
+ actions?: unknown[] | null | undefined;
888
+ attachments?: {
889
+ [x: string]: unknown;
890
+ attachmentId: string;
891
+ urlType: string;
892
+ title?: string | null | undefined;
893
+ url?: string | null | undefined;
894
+ fileName?: string | null | undefined;
895
+ fileSize?: number | null | undefined;
896
+ underlyingType?: string | null | undefined;
897
+ description?: string | null | undefined;
898
+ image?: string | null | undefined;
899
+ imageWidth?: number | null | undefined;
900
+ imageHeight?: number | null | undefined;
901
+ duration?: string | null | undefined;
902
+ uploadState?: string | null | undefined;
903
+ video?: string | null | undefined;
904
+ videoType?: string | null | undefined;
905
+ videoAutoPlay?: boolean | null | undefined;
906
+ }[] | null | undefined;
907
+ closed?: boolean | null | undefined;
908
+ directGroupMentions?: string[] | null | undefined;
909
+ directMentions?: number[] | null | undefined;
910
+ groups?: string[] | null | undefined;
911
+ lastEdited?: Date | null | undefined;
912
+ lastObjIndex?: number | null | undefined;
913
+ mutedUntil?: Date | null | undefined;
914
+ participants?: number[] | null | undefined;
915
+ pinned?: boolean | undefined;
916
+ pinnedDate?: Date | null | undefined;
917
+ reactions?: Record<string, unknown> | null | undefined;
918
+ recipients?: number[] | null | undefined;
919
+ responders?: number[] | null | undefined;
920
+ snippetMaskAvatarUrl?: string | null | undefined;
921
+ snippetMaskPoster?: string | null | undefined;
922
+ systemMessage?: unknown;
923
+ toEmails?: string[] | null | undefined;
924
+ isSaved?: boolean | null | undefined;
925
+ inInbox?: boolean | null | undefined;
926
+ lastComment?: {
927
+ id: string;
928
+ content: string;
929
+ creator: number;
930
+ creatorName: string;
931
+ threadId: string;
932
+ channelId: string;
933
+ posted: Date;
934
+ objIndex: number;
935
+ deleted: boolean;
936
+ version: number;
937
+ workspaceId: number;
938
+ systemMessage?: unknown;
939
+ attachments?: {
940
+ [x: string]: unknown;
941
+ attachmentId: string;
942
+ urlType: string;
943
+ title?: string | null | undefined;
944
+ url?: string | null | undefined;
945
+ fileName?: string | null | undefined;
946
+ fileSize?: number | null | undefined;
947
+ underlyingType?: string | null | undefined;
948
+ description?: string | null | undefined;
949
+ image?: string | null | undefined;
950
+ imageWidth?: number | null | undefined;
951
+ imageHeight?: number | null | undefined;
952
+ duration?: string | null | undefined;
953
+ uploadState?: string | null | undefined;
954
+ video?: string | null | undefined;
955
+ videoType?: string | null | undefined;
956
+ videoAutoPlay?: boolean | null | undefined;
957
+ }[] | null | undefined;
958
+ reactions?: Record<string, number[]> | null | undefined;
959
+ actions?: unknown[] | null | undefined;
960
+ lastEdited?: Date | null | undefined;
961
+ deletedBy?: number | null | undefined;
962
+ directGroupMentions?: string[] | null | undefined;
963
+ directMentions?: number[] | null | undefined;
964
+ groups?: string[] | null | undefined;
965
+ recipients?: number[] | null | undefined;
966
+ toEmails?: string[] | null | undefined;
967
+ } | null | undefined;
968
+ }>>;
969
+ export type Thread = z.infer<typeof ThreadSchema>;
970
+ export declare const GroupSchema: z.ZodObject<{
971
+ id: z.ZodString;
972
+ name: z.ZodString;
973
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
974
+ workspaceId: z.ZodNumber;
975
+ userIds: z.ZodArray<z.ZodNumber>;
976
+ version: z.ZodNumber;
977
+ }, z.core.$strip>;
978
+ export type Group = z.infer<typeof GroupSchema>;
979
+ export declare const ConversationObjectSchema: z.ZodObject<{
980
+ id: z.ZodString;
981
+ workspaceId: z.ZodNumber;
982
+ userIds: z.ZodArray<z.ZodNumber>;
983
+ messageCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
984
+ lastObjIndex: z.ZodNumber;
985
+ snippet: z.ZodString;
986
+ snippetCreators: z.ZodArray<z.ZodNumber>;
987
+ lastActive: z.ZodDate;
988
+ mutedUntil: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
989
+ archived: z.ZodBoolean;
990
+ created: z.ZodDate;
991
+ creator: z.ZodNumber;
992
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
993
+ private: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
994
+ lastMessage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
995
+ id: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<string, string | number>>;
996
+ content: z.ZodString;
997
+ creator: z.ZodNumber;
998
+ conversationId: z.ZodString;
999
+ posted: z.ZodDate;
1000
+ systemMessage: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnknown]>>>;
1001
+ attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1002
+ attachmentId: z.ZodString;
1003
+ urlType: z.ZodString;
1004
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1005
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1006
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1007
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1008
+ underlyingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1009
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1010
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1011
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1012
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1013
+ duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1014
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1015
+ video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1016
+ videoType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1017
+ videoAutoPlay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1018
+ }, z.core.$loose>>>>;
1019
+ reactions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodNumber>>>>;
1020
+ actions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
1021
+ objIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1022
+ lastEdited: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1023
+ deleted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1024
+ directGroupMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1025
+ directMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
1026
+ version: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1027
+ workspaceId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1028
+ }, z.core.$strip>>>;
1029
+ }, z.core.$strip>;
1030
+ export declare function createConversationSchema(linkBaseUrl?: string): z.ZodPipe<z.ZodObject<{
1031
+ id: z.ZodString;
1032
+ workspaceId: z.ZodNumber;
1033
+ userIds: z.ZodArray<z.ZodNumber>;
1034
+ messageCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1035
+ lastObjIndex: z.ZodNumber;
1036
+ snippet: z.ZodString;
1037
+ snippetCreators: z.ZodArray<z.ZodNumber>;
1038
+ lastActive: z.ZodDate;
1039
+ mutedUntil: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1040
+ archived: z.ZodBoolean;
1041
+ created: z.ZodDate;
1042
+ creator: z.ZodNumber;
1043
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1044
+ private: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1045
+ lastMessage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1046
+ id: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<string, string | number>>;
1047
+ content: z.ZodString;
1048
+ creator: z.ZodNumber;
1049
+ conversationId: z.ZodString;
1050
+ posted: z.ZodDate;
1051
+ systemMessage: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnknown]>>>;
1052
+ attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1053
+ attachmentId: z.ZodString;
1054
+ urlType: z.ZodString;
1055
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1056
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1057
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1058
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1059
+ underlyingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1060
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1061
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1062
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1063
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1064
+ duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1065
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1066
+ video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1067
+ videoType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1068
+ videoAutoPlay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1069
+ }, z.core.$loose>>>>;
1070
+ reactions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodNumber>>>>;
1071
+ actions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
1072
+ objIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1073
+ lastEdited: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1074
+ deleted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1075
+ directGroupMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1076
+ directMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
1077
+ version: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1078
+ workspaceId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1079
+ }, z.core.$strip>>>;
1080
+ }, z.core.$strip>, z.ZodTransform<{
1081
+ url: string;
1082
+ id: string;
1083
+ workspaceId: number;
1084
+ userIds: number[];
1085
+ lastObjIndex: number;
1086
+ snippet: string;
1087
+ snippetCreators: number[];
1088
+ lastActive: Date;
1089
+ archived: boolean;
1090
+ created: Date;
1091
+ creator: number;
1092
+ messageCount?: number | null | undefined;
1093
+ mutedUntil?: Date | null | undefined;
1094
+ title?: string | null | undefined;
1095
+ private?: boolean | null | undefined;
1096
+ lastMessage?: {
1097
+ id: string;
1098
+ content: string;
1099
+ creator: number;
1100
+ conversationId: string;
1101
+ posted: Date;
1102
+ systemMessage?: unknown;
1103
+ attachments?: {
1104
+ [x: string]: unknown;
1105
+ attachmentId: string;
1106
+ urlType: string;
1107
+ title?: string | null | undefined;
1108
+ url?: string | null | undefined;
1109
+ fileName?: string | null | undefined;
1110
+ fileSize?: number | null | undefined;
1111
+ underlyingType?: string | null | undefined;
1112
+ description?: string | null | undefined;
1113
+ image?: string | null | undefined;
1114
+ imageWidth?: number | null | undefined;
1115
+ imageHeight?: number | null | undefined;
1116
+ duration?: string | null | undefined;
1117
+ uploadState?: string | null | undefined;
1118
+ video?: string | null | undefined;
1119
+ videoType?: string | null | undefined;
1120
+ videoAutoPlay?: boolean | null | undefined;
1121
+ }[] | null | undefined;
1122
+ reactions?: Record<string, number[]> | null | undefined;
1123
+ actions?: unknown[] | null | undefined;
1124
+ objIndex?: number | null | undefined;
1125
+ lastEdited?: Date | null | undefined;
1126
+ deleted?: boolean | null | undefined;
1127
+ directGroupMentions?: string[] | null | undefined;
1128
+ directMentions?: number[] | null | undefined;
1129
+ version?: number | null | undefined;
1130
+ workspaceId?: number | null | undefined;
1131
+ } | null | undefined;
1132
+ }, {
1133
+ id: string;
1134
+ workspaceId: number;
1135
+ userIds: number[];
1136
+ lastObjIndex: number;
1137
+ snippet: string;
1138
+ snippetCreators: number[];
1139
+ lastActive: Date;
1140
+ archived: boolean;
1141
+ created: Date;
1142
+ creator: number;
1143
+ messageCount?: number | null | undefined;
1144
+ mutedUntil?: Date | null | undefined;
1145
+ title?: string | null | undefined;
1146
+ private?: boolean | null | undefined;
1147
+ lastMessage?: {
1148
+ id: string;
1149
+ content: string;
1150
+ creator: number;
1151
+ conversationId: string;
1152
+ posted: Date;
1153
+ systemMessage?: unknown;
1154
+ attachments?: {
1155
+ [x: string]: unknown;
1156
+ attachmentId: string;
1157
+ urlType: string;
1158
+ title?: string | null | undefined;
1159
+ url?: string | null | undefined;
1160
+ fileName?: string | null | undefined;
1161
+ fileSize?: number | null | undefined;
1162
+ underlyingType?: string | null | undefined;
1163
+ description?: string | null | undefined;
1164
+ image?: string | null | undefined;
1165
+ imageWidth?: number | null | undefined;
1166
+ imageHeight?: number | null | undefined;
1167
+ duration?: string | null | undefined;
1168
+ uploadState?: string | null | undefined;
1169
+ video?: string | null | undefined;
1170
+ videoType?: string | null | undefined;
1171
+ videoAutoPlay?: boolean | null | undefined;
1172
+ }[] | null | undefined;
1173
+ reactions?: Record<string, number[]> | null | undefined;
1174
+ actions?: unknown[] | null | undefined;
1175
+ objIndex?: number | null | undefined;
1176
+ lastEdited?: Date | null | undefined;
1177
+ deleted?: boolean | null | undefined;
1178
+ directGroupMentions?: string[] | null | undefined;
1179
+ directMentions?: number[] | null | undefined;
1180
+ version?: number | null | undefined;
1181
+ workspaceId?: number | null | undefined;
1182
+ } | null | undefined;
1183
+ }>>;
1184
+ export declare const ConversationSchema: z.ZodPipe<z.ZodObject<{
1185
+ id: z.ZodString;
1186
+ workspaceId: z.ZodNumber;
1187
+ userIds: z.ZodArray<z.ZodNumber>;
1188
+ messageCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1189
+ lastObjIndex: z.ZodNumber;
1190
+ snippet: z.ZodString;
1191
+ snippetCreators: z.ZodArray<z.ZodNumber>;
1192
+ lastActive: z.ZodDate;
1193
+ mutedUntil: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1194
+ archived: z.ZodBoolean;
1195
+ created: z.ZodDate;
1196
+ creator: z.ZodNumber;
1197
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1198
+ private: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1199
+ lastMessage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1200
+ id: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<string, string | number>>;
1201
+ content: z.ZodString;
1202
+ creator: z.ZodNumber;
1203
+ conversationId: z.ZodString;
1204
+ posted: z.ZodDate;
1205
+ systemMessage: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnknown]>>>;
1206
+ attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1207
+ attachmentId: z.ZodString;
1208
+ urlType: z.ZodString;
1209
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1210
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1211
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1212
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1213
+ underlyingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1214
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1215
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1216
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1217
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1218
+ duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1219
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1220
+ video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1221
+ videoType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1222
+ videoAutoPlay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1223
+ }, z.core.$loose>>>>;
1224
+ reactions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodNumber>>>>;
1225
+ actions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
1226
+ objIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1227
+ lastEdited: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1228
+ deleted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1229
+ directGroupMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1230
+ directMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
1231
+ version: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1232
+ workspaceId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1233
+ }, z.core.$strip>>>;
1234
+ }, z.core.$strip>, z.ZodTransform<{
1235
+ url: string;
1236
+ id: string;
1237
+ workspaceId: number;
1238
+ userIds: number[];
1239
+ lastObjIndex: number;
1240
+ snippet: string;
1241
+ snippetCreators: number[];
1242
+ lastActive: Date;
1243
+ archived: boolean;
1244
+ created: Date;
1245
+ creator: number;
1246
+ messageCount?: number | null | undefined;
1247
+ mutedUntil?: Date | null | undefined;
1248
+ title?: string | null | undefined;
1249
+ private?: boolean | null | undefined;
1250
+ lastMessage?: {
1251
+ id: string;
1252
+ content: string;
1253
+ creator: number;
1254
+ conversationId: string;
1255
+ posted: Date;
1256
+ systemMessage?: unknown;
1257
+ attachments?: {
1258
+ [x: string]: unknown;
1259
+ attachmentId: string;
1260
+ urlType: string;
1261
+ title?: string | null | undefined;
1262
+ url?: string | null | undefined;
1263
+ fileName?: string | null | undefined;
1264
+ fileSize?: number | null | undefined;
1265
+ underlyingType?: string | null | undefined;
1266
+ description?: string | null | undefined;
1267
+ image?: string | null | undefined;
1268
+ imageWidth?: number | null | undefined;
1269
+ imageHeight?: number | null | undefined;
1270
+ duration?: string | null | undefined;
1271
+ uploadState?: string | null | undefined;
1272
+ video?: string | null | undefined;
1273
+ videoType?: string | null | undefined;
1274
+ videoAutoPlay?: boolean | null | undefined;
1275
+ }[] | null | undefined;
1276
+ reactions?: Record<string, number[]> | null | undefined;
1277
+ actions?: unknown[] | null | undefined;
1278
+ objIndex?: number | null | undefined;
1279
+ lastEdited?: Date | null | undefined;
1280
+ deleted?: boolean | null | undefined;
1281
+ directGroupMentions?: string[] | null | undefined;
1282
+ directMentions?: number[] | null | undefined;
1283
+ version?: number | null | undefined;
1284
+ workspaceId?: number | null | undefined;
1285
+ } | null | undefined;
1286
+ }, {
1287
+ id: string;
1288
+ workspaceId: number;
1289
+ userIds: number[];
1290
+ lastObjIndex: number;
1291
+ snippet: string;
1292
+ snippetCreators: number[];
1293
+ lastActive: Date;
1294
+ archived: boolean;
1295
+ created: Date;
1296
+ creator: number;
1297
+ messageCount?: number | null | undefined;
1298
+ mutedUntil?: Date | null | undefined;
1299
+ title?: string | null | undefined;
1300
+ private?: boolean | null | undefined;
1301
+ lastMessage?: {
1302
+ id: string;
1303
+ content: string;
1304
+ creator: number;
1305
+ conversationId: string;
1306
+ posted: Date;
1307
+ systemMessage?: unknown;
1308
+ attachments?: {
1309
+ [x: string]: unknown;
1310
+ attachmentId: string;
1311
+ urlType: string;
1312
+ title?: string | null | undefined;
1313
+ url?: string | null | undefined;
1314
+ fileName?: string | null | undefined;
1315
+ fileSize?: number | null | undefined;
1316
+ underlyingType?: string | null | undefined;
1317
+ description?: string | null | undefined;
1318
+ image?: string | null | undefined;
1319
+ imageWidth?: number | null | undefined;
1320
+ imageHeight?: number | null | undefined;
1321
+ duration?: string | null | undefined;
1322
+ uploadState?: string | null | undefined;
1323
+ video?: string | null | undefined;
1324
+ videoType?: string | null | undefined;
1325
+ videoAutoPlay?: boolean | null | undefined;
1326
+ }[] | null | undefined;
1327
+ reactions?: Record<string, number[]> | null | undefined;
1328
+ actions?: unknown[] | null | undefined;
1329
+ objIndex?: number | null | undefined;
1330
+ lastEdited?: Date | null | undefined;
1331
+ deleted?: boolean | null | undefined;
1332
+ directGroupMentions?: string[] | null | undefined;
1333
+ directMentions?: number[] | null | undefined;
1334
+ version?: number | null | undefined;
1335
+ workspaceId?: number | null | undefined;
1336
+ } | null | undefined;
1337
+ }>>;
1338
+ export type Conversation = z.infer<typeof ConversationSchema>;
1339
+ export declare const CommentObjectSchema: z.ZodObject<{
1340
+ id: z.ZodString;
1341
+ content: z.ZodString;
1342
+ creator: z.ZodNumber;
1343
+ threadId: z.ZodString;
1344
+ workspaceId: z.ZodNumber;
1345
+ conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1346
+ posted: z.ZodDate;
1347
+ lastEdited: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1348
+ directMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
1349
+ directGroupMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1350
+ systemMessage: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnknown]>>>;
1351
+ attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1352
+ attachmentId: z.ZodString;
1353
+ urlType: z.ZodString;
1354
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1355
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1356
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1357
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1358
+ underlyingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1359
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1360
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1361
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1362
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1363
+ duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1364
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1365
+ video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1366
+ videoType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1367
+ videoAutoPlay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1368
+ }, z.core.$loose>>>>;
1369
+ reactions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1370
+ objIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1371
+ creatorName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1372
+ channelId: z.ZodString;
1373
+ recipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
1374
+ groups: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1375
+ toEmails: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1376
+ deleted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1377
+ deletedBy: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1378
+ version: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1379
+ actions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
1380
+ }, z.core.$strip>;
1381
+ export declare function createCommentSchema(linkBaseUrl?: string): z.ZodPipe<z.ZodObject<{
1382
+ id: z.ZodString;
1383
+ content: z.ZodString;
1384
+ creator: z.ZodNumber;
1385
+ threadId: z.ZodString;
1386
+ workspaceId: z.ZodNumber;
1387
+ conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1388
+ posted: z.ZodDate;
1389
+ lastEdited: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1390
+ directMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
1391
+ directGroupMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1392
+ systemMessage: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnknown]>>>;
1393
+ attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1394
+ attachmentId: z.ZodString;
1395
+ urlType: z.ZodString;
1396
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1397
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1398
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1399
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1400
+ underlyingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1401
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1402
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1403
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1404
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1405
+ duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1406
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1407
+ video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1408
+ videoType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1409
+ videoAutoPlay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1410
+ }, z.core.$loose>>>>;
1411
+ reactions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1412
+ objIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1413
+ creatorName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1414
+ channelId: z.ZodString;
1415
+ recipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
1416
+ groups: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1417
+ toEmails: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1418
+ deleted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1419
+ deletedBy: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1420
+ version: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1421
+ actions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
1422
+ }, z.core.$strip>, z.ZodTransform<{
1423
+ url: string;
1424
+ id: string;
1425
+ content: string;
1426
+ creator: number;
1427
+ threadId: string;
1428
+ workspaceId: number;
1429
+ posted: Date;
1430
+ channelId: string;
1431
+ conversationId?: string | null | undefined;
1432
+ lastEdited?: Date | null | undefined;
1433
+ directMentions?: number[] | null | undefined;
1434
+ directGroupMentions?: string[] | null | undefined;
1435
+ systemMessage?: unknown;
1436
+ attachments?: {
1437
+ [x: string]: unknown;
1438
+ attachmentId: string;
1439
+ urlType: string;
1440
+ title?: string | null | undefined;
1441
+ url?: string | null | undefined;
1442
+ fileName?: string | null | undefined;
1443
+ fileSize?: number | null | undefined;
1444
+ underlyingType?: string | null | undefined;
1445
+ description?: string | null | undefined;
1446
+ image?: string | null | undefined;
1447
+ imageWidth?: number | null | undefined;
1448
+ imageHeight?: number | null | undefined;
1449
+ duration?: string | null | undefined;
1450
+ uploadState?: string | null | undefined;
1451
+ video?: string | null | undefined;
1452
+ videoType?: string | null | undefined;
1453
+ videoAutoPlay?: boolean | null | undefined;
1454
+ }[] | null | undefined;
1455
+ reactions?: Record<string, unknown> | null | undefined;
1456
+ objIndex?: number | null | undefined;
1457
+ creatorName?: string | null | undefined;
1458
+ recipients?: number[] | null | undefined;
1459
+ groups?: string[] | null | undefined;
1460
+ toEmails?: string[] | null | undefined;
1461
+ deleted?: boolean | null | undefined;
1462
+ deletedBy?: number | null | undefined;
1463
+ version?: number | null | undefined;
1464
+ actions?: unknown[] | null | undefined;
1465
+ }, {
1466
+ id: string;
1467
+ content: string;
1468
+ creator: number;
1469
+ threadId: string;
1470
+ workspaceId: number;
1471
+ posted: Date;
1472
+ channelId: string;
1473
+ conversationId?: string | null | undefined;
1474
+ lastEdited?: Date | null | undefined;
1475
+ directMentions?: number[] | null | undefined;
1476
+ directGroupMentions?: string[] | null | undefined;
1477
+ systemMessage?: unknown;
1478
+ attachments?: {
1479
+ [x: string]: unknown;
1480
+ attachmentId: string;
1481
+ urlType: string;
1482
+ title?: string | null | undefined;
1483
+ url?: string | null | undefined;
1484
+ fileName?: string | null | undefined;
1485
+ fileSize?: number | null | undefined;
1486
+ underlyingType?: string | null | undefined;
1487
+ description?: string | null | undefined;
1488
+ image?: string | null | undefined;
1489
+ imageWidth?: number | null | undefined;
1490
+ imageHeight?: number | null | undefined;
1491
+ duration?: string | null | undefined;
1492
+ uploadState?: string | null | undefined;
1493
+ video?: string | null | undefined;
1494
+ videoType?: string | null | undefined;
1495
+ videoAutoPlay?: boolean | null | undefined;
1496
+ }[] | null | undefined;
1497
+ reactions?: Record<string, unknown> | null | undefined;
1498
+ objIndex?: number | null | undefined;
1499
+ creatorName?: string | null | undefined;
1500
+ recipients?: number[] | null | undefined;
1501
+ groups?: string[] | null | undefined;
1502
+ toEmails?: string[] | null | undefined;
1503
+ deleted?: boolean | null | undefined;
1504
+ deletedBy?: number | null | undefined;
1505
+ version?: number | null | undefined;
1506
+ actions?: unknown[] | null | undefined;
1507
+ }>>;
1508
+ export declare const CommentSchema: z.ZodPipe<z.ZodObject<{
1509
+ id: z.ZodString;
1510
+ content: z.ZodString;
1511
+ creator: z.ZodNumber;
1512
+ threadId: z.ZodString;
1513
+ workspaceId: z.ZodNumber;
1514
+ conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1515
+ posted: z.ZodDate;
1516
+ lastEdited: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1517
+ directMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
1518
+ directGroupMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1519
+ systemMessage: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnknown]>>>;
1520
+ attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1521
+ attachmentId: z.ZodString;
1522
+ urlType: z.ZodString;
1523
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1524
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1525
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1526
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1527
+ underlyingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1528
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1529
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1530
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1531
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1532
+ duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1533
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1534
+ video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1535
+ videoType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1536
+ videoAutoPlay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1537
+ }, z.core.$loose>>>>;
1538
+ reactions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
1539
+ objIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1540
+ creatorName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1541
+ channelId: z.ZodString;
1542
+ recipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
1543
+ groups: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1544
+ toEmails: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1545
+ deleted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1546
+ deletedBy: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1547
+ version: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1548
+ actions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
1549
+ }, z.core.$strip>, z.ZodTransform<{
1550
+ url: string;
1551
+ id: string;
1552
+ content: string;
1553
+ creator: number;
1554
+ threadId: string;
1555
+ workspaceId: number;
1556
+ posted: Date;
1557
+ channelId: string;
1558
+ conversationId?: string | null | undefined;
1559
+ lastEdited?: Date | null | undefined;
1560
+ directMentions?: number[] | null | undefined;
1561
+ directGroupMentions?: string[] | null | undefined;
1562
+ systemMessage?: unknown;
1563
+ attachments?: {
1564
+ [x: string]: unknown;
1565
+ attachmentId: string;
1566
+ urlType: string;
1567
+ title?: string | null | undefined;
1568
+ url?: string | null | undefined;
1569
+ fileName?: string | null | undefined;
1570
+ fileSize?: number | null | undefined;
1571
+ underlyingType?: string | null | undefined;
1572
+ description?: string | null | undefined;
1573
+ image?: string | null | undefined;
1574
+ imageWidth?: number | null | undefined;
1575
+ imageHeight?: number | null | undefined;
1576
+ duration?: string | null | undefined;
1577
+ uploadState?: string | null | undefined;
1578
+ video?: string | null | undefined;
1579
+ videoType?: string | null | undefined;
1580
+ videoAutoPlay?: boolean | null | undefined;
1581
+ }[] | null | undefined;
1582
+ reactions?: Record<string, unknown> | null | undefined;
1583
+ objIndex?: number | null | undefined;
1584
+ creatorName?: string | null | undefined;
1585
+ recipients?: number[] | null | undefined;
1586
+ groups?: string[] | null | undefined;
1587
+ toEmails?: string[] | null | undefined;
1588
+ deleted?: boolean | null | undefined;
1589
+ deletedBy?: number | null | undefined;
1590
+ version?: number | null | undefined;
1591
+ actions?: unknown[] | null | undefined;
1592
+ }, {
1593
+ id: string;
1594
+ content: string;
1595
+ creator: number;
1596
+ threadId: string;
1597
+ workspaceId: number;
1598
+ posted: Date;
1599
+ channelId: string;
1600
+ conversationId?: string | null | undefined;
1601
+ lastEdited?: Date | null | undefined;
1602
+ directMentions?: number[] | null | undefined;
1603
+ directGroupMentions?: string[] | null | undefined;
1604
+ systemMessage?: unknown;
1605
+ attachments?: {
1606
+ [x: string]: unknown;
1607
+ attachmentId: string;
1608
+ urlType: string;
1609
+ title?: string | null | undefined;
1610
+ url?: string | null | undefined;
1611
+ fileName?: string | null | undefined;
1612
+ fileSize?: number | null | undefined;
1613
+ underlyingType?: string | null | undefined;
1614
+ description?: string | null | undefined;
1615
+ image?: string | null | undefined;
1616
+ imageWidth?: number | null | undefined;
1617
+ imageHeight?: number | null | undefined;
1618
+ duration?: string | null | undefined;
1619
+ uploadState?: string | null | undefined;
1620
+ video?: string | null | undefined;
1621
+ videoType?: string | null | undefined;
1622
+ videoAutoPlay?: boolean | null | undefined;
1623
+ }[] | null | undefined;
1624
+ reactions?: Record<string, unknown> | null | undefined;
1625
+ objIndex?: number | null | undefined;
1626
+ creatorName?: string | null | undefined;
1627
+ recipients?: number[] | null | undefined;
1628
+ groups?: string[] | null | undefined;
1629
+ toEmails?: string[] | null | undefined;
1630
+ deleted?: boolean | null | undefined;
1631
+ deletedBy?: number | null | undefined;
1632
+ version?: number | null | undefined;
1633
+ actions?: unknown[] | null | undefined;
1634
+ }>>;
1635
+ export type Comment = z.infer<typeof CommentSchema>;
1636
+ export declare const WorkspaceUserSchema: z.ZodObject<{
1637
+ id: z.ZodNumber;
1638
+ fullName: z.ZodString;
1639
+ shortName: z.ZodString;
1640
+ firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1641
+ timezone: z.ZodString;
1642
+ removed: z.ZodBoolean;
1643
+ imageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1644
+ avatarUrls: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1645
+ s35: z.ZodString;
1646
+ s60: z.ZodString;
1647
+ s195: z.ZodString;
1648
+ s640: z.ZodString;
1649
+ }, z.core.$strip>>>;
1650
+ restricted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1651
+ setupPending: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1652
+ status: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1653
+ message: z.ZodString;
1654
+ emoji: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1655
+ activeUntil: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1656
+ effects: z.ZodOptional<z.ZodObject<{
1657
+ pauseNotifications: z.ZodOptional<z.ZodObject<{
1658
+ scope: z.ZodOptional<z.ZodObject<{
1659
+ mode: z.ZodOptional<z.ZodString>;
1660
+ }, z.core.$strip>>;
1661
+ }, z.core.$strip>>;
1662
+ pauseActivity: z.ZodOptional<z.ZodObject<{
1663
+ scope: z.ZodOptional<z.ZodObject<{
1664
+ mode: z.ZodOptional<z.ZodString>;
1665
+ }, z.core.$strip>>;
1666
+ }, z.core.$strip>>;
1667
+ }, z.core.$strip>>;
1668
+ }, z.core.$strip>>>;
1669
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1670
+ userType: z.ZodEnum<{
1671
+ USER: "USER";
1672
+ GUEST: "GUEST";
1673
+ ADMIN: "ADMIN";
1674
+ }>;
1675
+ dateFormat: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1676
+ theme: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1677
+ timeFormat: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1678
+ version: z.ZodNumber;
1679
+ }, z.core.$strip>;
1680
+ export type WorkspaceUser = z.infer<typeof WorkspaceUserSchema>;
1681
+ export declare const RestrictedWorkspaceUserSchema: z.ZodObject<{
1682
+ status: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1683
+ message: z.ZodString;
1684
+ emoji: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1685
+ activeUntil: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1686
+ effects: z.ZodOptional<z.ZodObject<{
1687
+ pauseNotifications: z.ZodOptional<z.ZodObject<{
1688
+ scope: z.ZodOptional<z.ZodObject<{
1689
+ mode: z.ZodOptional<z.ZodString>;
1690
+ }, z.core.$strip>>;
1691
+ }, z.core.$strip>>;
1692
+ pauseActivity: z.ZodOptional<z.ZodObject<{
1693
+ scope: z.ZodOptional<z.ZodObject<{
1694
+ mode: z.ZodOptional<z.ZodString>;
1695
+ }, z.core.$strip>>;
1696
+ }, z.core.$strip>>;
1697
+ }, z.core.$strip>>;
1698
+ }, z.core.$strip>>>;
1699
+ id: z.ZodNumber;
1700
+ fullName: z.ZodString;
1701
+ shortName: z.ZodString;
1702
+ firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1703
+ removed: z.ZodBoolean;
1704
+ imageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1705
+ avatarUrls: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1706
+ s35: z.ZodString;
1707
+ s60: z.ZodString;
1708
+ s195: z.ZodString;
1709
+ s640: z.ZodString;
1710
+ }, z.core.$strip>>>;
1711
+ setupPending: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1712
+ restricted: z.ZodLiteral<true>;
1713
+ version: z.ZodNumber;
1714
+ }, z.core.$strip>;
1715
+ export type RestrictedWorkspaceUser = z.infer<typeof RestrictedWorkspaceUserSchema>;
1716
+ export declare const VisibleWorkspaceUserSchema: z.ZodUnion<readonly [z.ZodObject<{
1717
+ id: z.ZodNumber;
1718
+ fullName: z.ZodString;
1719
+ shortName: z.ZodString;
1720
+ firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1721
+ timezone: z.ZodString;
1722
+ removed: z.ZodBoolean;
1723
+ imageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1724
+ avatarUrls: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1725
+ s35: z.ZodString;
1726
+ s60: z.ZodString;
1727
+ s195: z.ZodString;
1728
+ s640: z.ZodString;
1729
+ }, z.core.$strip>>>;
1730
+ restricted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1731
+ setupPending: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1732
+ status: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1733
+ message: z.ZodString;
1734
+ emoji: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1735
+ activeUntil: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1736
+ effects: z.ZodOptional<z.ZodObject<{
1737
+ pauseNotifications: z.ZodOptional<z.ZodObject<{
1738
+ scope: z.ZodOptional<z.ZodObject<{
1739
+ mode: z.ZodOptional<z.ZodString>;
1740
+ }, z.core.$strip>>;
1741
+ }, z.core.$strip>>;
1742
+ pauseActivity: z.ZodOptional<z.ZodObject<{
1743
+ scope: z.ZodOptional<z.ZodObject<{
1744
+ mode: z.ZodOptional<z.ZodString>;
1745
+ }, z.core.$strip>>;
1746
+ }, z.core.$strip>>;
1747
+ }, z.core.$strip>>;
1748
+ }, z.core.$strip>>>;
1749
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1750
+ userType: z.ZodEnum<{
1751
+ USER: "USER";
1752
+ GUEST: "GUEST";
1753
+ ADMIN: "ADMIN";
1754
+ }>;
1755
+ dateFormat: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1756
+ theme: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1757
+ timeFormat: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1758
+ version: z.ZodNumber;
1759
+ }, z.core.$strip>, z.ZodObject<{
1760
+ status: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1761
+ message: z.ZodString;
1762
+ emoji: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1763
+ activeUntil: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1764
+ effects: z.ZodOptional<z.ZodObject<{
1765
+ pauseNotifications: z.ZodOptional<z.ZodObject<{
1766
+ scope: z.ZodOptional<z.ZodObject<{
1767
+ mode: z.ZodOptional<z.ZodString>;
1768
+ }, z.core.$strip>>;
1769
+ }, z.core.$strip>>;
1770
+ pauseActivity: z.ZodOptional<z.ZodObject<{
1771
+ scope: z.ZodOptional<z.ZodObject<{
1772
+ mode: z.ZodOptional<z.ZodString>;
1773
+ }, z.core.$strip>>;
1774
+ }, z.core.$strip>>;
1775
+ }, z.core.$strip>>;
1776
+ }, z.core.$strip>>>;
1777
+ id: z.ZodNumber;
1778
+ fullName: z.ZodString;
1779
+ shortName: z.ZodString;
1780
+ firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1781
+ removed: z.ZodBoolean;
1782
+ imageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1783
+ avatarUrls: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1784
+ s35: z.ZodString;
1785
+ s60: z.ZodString;
1786
+ s195: z.ZodString;
1787
+ s640: z.ZodString;
1788
+ }, z.core.$strip>>>;
1789
+ setupPending: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1790
+ restricted: z.ZodLiteral<true>;
1791
+ version: z.ZodNumber;
1792
+ }, z.core.$strip>]>;
1793
+ export type VisibleWorkspaceUser = z.infer<typeof VisibleWorkspaceUserSchema>;
1794
+ /**
1795
+ * Narrows a {@link VisibleWorkspaceUser} to the reduced shape, which has no
1796
+ * `timezone` and no `userType`.
1797
+ *
1798
+ * @param user - The user to check.
1799
+ * @returns `true` when the viewer only gets the restricted profile.
1800
+ *
1801
+ * @example
1802
+ * ```typescript
1803
+ * const user = await api.workspaceUsers.getUserById({ workspaceId: 123, userId: 456 })
1804
+ * const zone = isRestrictedWorkspaceUser(user) ? 'UTC' : user.timezone
1805
+ * ```
1806
+ */
1807
+ export declare function isRestrictedWorkspaceUser(user: VisibleWorkspaceUser): user is RestrictedWorkspaceUser;
1808
+ export declare const ConversationMessageObjectSchema: z.ZodObject<{
1809
+ id: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<string, string | number>>;
1810
+ content: z.ZodString;
1811
+ creator: z.ZodNumber;
1812
+ conversationId: z.ZodString;
1813
+ posted: z.ZodDate;
1814
+ systemMessage: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnknown]>>>;
1815
+ attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1816
+ attachmentId: z.ZodString;
1817
+ urlType: z.ZodString;
1818
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1819
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1820
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1821
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1822
+ underlyingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1823
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1824
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1825
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1826
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1827
+ duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1828
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1829
+ video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1830
+ videoType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1831
+ videoAutoPlay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1832
+ }, z.core.$loose>>>>;
1833
+ reactions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodNumber>>>>;
1834
+ actions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
1835
+ objIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1836
+ lastEdited: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1837
+ isDeleted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1838
+ directGroupMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1839
+ directMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
1840
+ version: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1841
+ workspaceId: z.ZodNumber;
1842
+ }, z.core.$strip>;
1843
+ export declare function createConversationMessageSchema(linkBaseUrl?: string): z.ZodPipe<z.ZodObject<{
1844
+ id: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<string, string | number>>;
1845
+ content: z.ZodString;
1846
+ creator: z.ZodNumber;
1847
+ conversationId: z.ZodString;
1848
+ posted: z.ZodDate;
1849
+ systemMessage: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnknown]>>>;
1850
+ attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1851
+ attachmentId: z.ZodString;
1852
+ urlType: z.ZodString;
1853
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1854
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1855
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1856
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1857
+ underlyingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1858
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1859
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1860
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1861
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1862
+ duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1863
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1864
+ video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1865
+ videoType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1866
+ videoAutoPlay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1867
+ }, z.core.$loose>>>>;
1868
+ reactions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodNumber>>>>;
1869
+ actions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
1870
+ objIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1871
+ lastEdited: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1872
+ isDeleted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1873
+ directGroupMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1874
+ directMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
1875
+ version: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1876
+ workspaceId: z.ZodNumber;
1877
+ }, z.core.$strip>, z.ZodTransform<{
1878
+ url: string;
1879
+ id: string;
1880
+ content: string;
1881
+ creator: number;
1882
+ conversationId: string;
1883
+ posted: Date;
1884
+ workspaceId: number;
1885
+ systemMessage?: unknown;
1886
+ attachments?: {
1887
+ [x: string]: unknown;
1888
+ attachmentId: string;
1889
+ urlType: string;
1890
+ title?: string | null | undefined;
1891
+ url?: string | null | undefined;
1892
+ fileName?: string | null | undefined;
1893
+ fileSize?: number | null | undefined;
1894
+ underlyingType?: string | null | undefined;
1895
+ description?: string | null | undefined;
1896
+ image?: string | null | undefined;
1897
+ imageWidth?: number | null | undefined;
1898
+ imageHeight?: number | null | undefined;
1899
+ duration?: string | null | undefined;
1900
+ uploadState?: string | null | undefined;
1901
+ video?: string | null | undefined;
1902
+ videoType?: string | null | undefined;
1903
+ videoAutoPlay?: boolean | null | undefined;
1904
+ }[] | null | undefined;
1905
+ reactions?: Record<string, number[]> | null | undefined;
1906
+ actions?: unknown[] | null | undefined;
1907
+ objIndex?: number | null | undefined;
1908
+ lastEdited?: Date | null | undefined;
1909
+ isDeleted?: boolean | null | undefined;
1910
+ directGroupMentions?: string[] | null | undefined;
1911
+ directMentions?: number[] | null | undefined;
1912
+ version?: number | null | undefined;
1913
+ }, {
1914
+ id: string;
1915
+ content: string;
1916
+ creator: number;
1917
+ conversationId: string;
1918
+ posted: Date;
1919
+ workspaceId: number;
1920
+ systemMessage?: unknown;
1921
+ attachments?: {
1922
+ [x: string]: unknown;
1923
+ attachmentId: string;
1924
+ urlType: string;
1925
+ title?: string | null | undefined;
1926
+ url?: string | null | undefined;
1927
+ fileName?: string | null | undefined;
1928
+ fileSize?: number | null | undefined;
1929
+ underlyingType?: string | null | undefined;
1930
+ description?: string | null | undefined;
1931
+ image?: string | null | undefined;
1932
+ imageWidth?: number | null | undefined;
1933
+ imageHeight?: number | null | undefined;
1934
+ duration?: string | null | undefined;
1935
+ uploadState?: string | null | undefined;
1936
+ video?: string | null | undefined;
1937
+ videoType?: string | null | undefined;
1938
+ videoAutoPlay?: boolean | null | undefined;
1939
+ }[] | null | undefined;
1940
+ reactions?: Record<string, number[]> | null | undefined;
1941
+ actions?: unknown[] | null | undefined;
1942
+ objIndex?: number | null | undefined;
1943
+ lastEdited?: Date | null | undefined;
1944
+ isDeleted?: boolean | null | undefined;
1945
+ directGroupMentions?: string[] | null | undefined;
1946
+ directMentions?: number[] | null | undefined;
1947
+ version?: number | null | undefined;
1948
+ }>>;
1949
+ export declare const ConversationMessageSchema: z.ZodPipe<z.ZodObject<{
1950
+ id: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<string, string | number>>;
1951
+ content: z.ZodString;
1952
+ creator: z.ZodNumber;
1953
+ conversationId: z.ZodString;
1954
+ posted: z.ZodDate;
1955
+ systemMessage: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnknown]>>>;
1956
+ attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
1957
+ attachmentId: z.ZodString;
1958
+ urlType: z.ZodString;
1959
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1960
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1961
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1962
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1963
+ underlyingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1964
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1965
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1966
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1967
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1968
+ duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1969
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1970
+ video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1971
+ videoType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1972
+ videoAutoPlay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1973
+ }, z.core.$loose>>>>;
1974
+ reactions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodNumber>>>>;
1975
+ actions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
1976
+ objIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1977
+ lastEdited: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
1978
+ isDeleted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1979
+ directGroupMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1980
+ directMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
1981
+ version: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1982
+ workspaceId: z.ZodNumber;
1983
+ }, z.core.$strip>, z.ZodTransform<{
1984
+ url: string;
1985
+ id: string;
1986
+ content: string;
1987
+ creator: number;
1988
+ conversationId: string;
1989
+ posted: Date;
1990
+ workspaceId: number;
1991
+ systemMessage?: unknown;
1992
+ attachments?: {
1993
+ [x: string]: unknown;
1994
+ attachmentId: string;
1995
+ urlType: string;
1996
+ title?: string | null | undefined;
1997
+ url?: string | null | undefined;
1998
+ fileName?: string | null | undefined;
1999
+ fileSize?: number | null | undefined;
2000
+ underlyingType?: string | null | undefined;
2001
+ description?: string | null | undefined;
2002
+ image?: string | null | undefined;
2003
+ imageWidth?: number | null | undefined;
2004
+ imageHeight?: number | null | undefined;
2005
+ duration?: string | null | undefined;
2006
+ uploadState?: string | null | undefined;
2007
+ video?: string | null | undefined;
2008
+ videoType?: string | null | undefined;
2009
+ videoAutoPlay?: boolean | null | undefined;
2010
+ }[] | null | undefined;
2011
+ reactions?: Record<string, number[]> | null | undefined;
2012
+ actions?: unknown[] | null | undefined;
2013
+ objIndex?: number | null | undefined;
2014
+ lastEdited?: Date | null | undefined;
2015
+ isDeleted?: boolean | null | undefined;
2016
+ directGroupMentions?: string[] | null | undefined;
2017
+ directMentions?: number[] | null | undefined;
2018
+ version?: number | null | undefined;
2019
+ }, {
2020
+ id: string;
2021
+ content: string;
2022
+ creator: number;
2023
+ conversationId: string;
2024
+ posted: Date;
2025
+ workspaceId: number;
2026
+ systemMessage?: unknown;
2027
+ attachments?: {
2028
+ [x: string]: unknown;
2029
+ attachmentId: string;
2030
+ urlType: string;
2031
+ title?: string | null | undefined;
2032
+ url?: string | null | undefined;
2033
+ fileName?: string | null | undefined;
2034
+ fileSize?: number | null | undefined;
2035
+ underlyingType?: string | null | undefined;
2036
+ description?: string | null | undefined;
2037
+ image?: string | null | undefined;
2038
+ imageWidth?: number | null | undefined;
2039
+ imageHeight?: number | null | undefined;
2040
+ duration?: string | null | undefined;
2041
+ uploadState?: string | null | undefined;
2042
+ video?: string | null | undefined;
2043
+ videoType?: string | null | undefined;
2044
+ videoAutoPlay?: boolean | null | undefined;
2045
+ }[] | null | undefined;
2046
+ reactions?: Record<string, number[]> | null | undefined;
2047
+ actions?: unknown[] | null | undefined;
2048
+ objIndex?: number | null | undefined;
2049
+ lastEdited?: Date | null | undefined;
2050
+ isDeleted?: boolean | null | undefined;
2051
+ directGroupMentions?: string[] | null | undefined;
2052
+ directMentions?: number[] | null | undefined;
2053
+ version?: number | null | undefined;
2054
+ }>>;
2055
+ export type ConversationMessage = z.infer<typeof ConversationMessageSchema>;
2056
+ export declare function createInboxThreadObjectSchema(linkBaseUrl?: string): z.ZodObject<{
2057
+ id: z.ZodString;
2058
+ title: z.ZodString;
2059
+ content: z.ZodString;
2060
+ creator: z.ZodNumber;
2061
+ creatorName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2062
+ channelId: z.ZodString;
2063
+ workspaceId: z.ZodNumber;
2064
+ actions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
2065
+ attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2066
+ attachmentId: z.ZodString;
2067
+ urlType: z.ZodString;
2068
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2069
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2070
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2071
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2072
+ underlyingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2073
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2074
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2075
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2076
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2077
+ duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2078
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2079
+ video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2080
+ videoType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2081
+ videoAutoPlay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2082
+ }, z.core.$loose>>>>;
2083
+ commentCount: z.ZodNumber;
2084
+ directGroupMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
2085
+ directMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
2086
+ groups: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
2087
+ lastEdited: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2088
+ lastObjIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2089
+ lastUpdated: z.ZodDate;
2090
+ mutedUntil: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2091
+ participants: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
2092
+ pinned: z.ZodOptional<z.ZodBoolean>;
2093
+ pinnedDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2094
+ posted: z.ZodDate;
2095
+ reactions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodNumber>>>>;
2096
+ recipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
2097
+ snippet: z.ZodString;
2098
+ snippetCreator: z.ZodNumber;
2099
+ snippetMaskAvatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2100
+ snippetMaskPoster: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2101
+ systemMessage: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnknown]>>>;
2102
+ isArchived: z.ZodBoolean;
2103
+ inInbox: z.ZodBoolean;
2104
+ isSaved: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2105
+ closed: z.ZodBoolean;
2106
+ responders: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
2107
+ lastComment: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodObject<{
2108
+ id: z.ZodString;
2109
+ content: z.ZodString;
2110
+ creator: z.ZodNumber;
2111
+ threadId: z.ZodString;
2112
+ workspaceId: z.ZodNumber;
2113
+ conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2114
+ posted: z.ZodDate;
2115
+ lastEdited: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2116
+ directMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
2117
+ directGroupMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
2118
+ systemMessage: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnknown]>>>;
2119
+ attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2120
+ attachmentId: z.ZodString;
2121
+ urlType: z.ZodString;
2122
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2123
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2124
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2125
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2126
+ underlyingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2127
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2128
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2129
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2130
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2131
+ duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2132
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2133
+ video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2134
+ videoType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2135
+ videoAutoPlay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2136
+ }, z.core.$loose>>>>;
2137
+ reactions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2138
+ objIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2139
+ creatorName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2140
+ channelId: z.ZodString;
2141
+ recipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
2142
+ groups: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
2143
+ toEmails: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
2144
+ deleted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2145
+ deletedBy: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2146
+ version: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2147
+ actions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
2148
+ }, z.core.$strip>, z.ZodTransform<{
2149
+ url: string;
2150
+ id: string;
2151
+ content: string;
2152
+ creator: number;
2153
+ threadId: string;
2154
+ workspaceId: number;
2155
+ posted: Date;
2156
+ channelId: string;
2157
+ conversationId?: string | null | undefined;
2158
+ lastEdited?: Date | null | undefined;
2159
+ directMentions?: number[] | null | undefined;
2160
+ directGroupMentions?: string[] | null | undefined;
2161
+ systemMessage?: unknown;
2162
+ attachments?: {
2163
+ [x: string]: unknown;
2164
+ attachmentId: string;
2165
+ urlType: string;
2166
+ title?: string | null | undefined;
2167
+ url?: string | null | undefined;
2168
+ fileName?: string | null | undefined;
2169
+ fileSize?: number | null | undefined;
2170
+ underlyingType?: string | null | undefined;
2171
+ description?: string | null | undefined;
2172
+ image?: string | null | undefined;
2173
+ imageWidth?: number | null | undefined;
2174
+ imageHeight?: number | null | undefined;
2175
+ duration?: string | null | undefined;
2176
+ uploadState?: string | null | undefined;
2177
+ video?: string | null | undefined;
2178
+ videoType?: string | null | undefined;
2179
+ videoAutoPlay?: boolean | null | undefined;
2180
+ }[] | null | undefined;
2181
+ reactions?: Record<string, unknown> | null | undefined;
2182
+ objIndex?: number | null | undefined;
2183
+ creatorName?: string | null | undefined;
2184
+ recipients?: number[] | null | undefined;
2185
+ groups?: string[] | null | undefined;
2186
+ toEmails?: string[] | null | undefined;
2187
+ deleted?: boolean | null | undefined;
2188
+ deletedBy?: number | null | undefined;
2189
+ version?: number | null | undefined;
2190
+ actions?: unknown[] | null | undefined;
2191
+ }, {
2192
+ id: string;
2193
+ content: string;
2194
+ creator: number;
2195
+ threadId: string;
2196
+ workspaceId: number;
2197
+ posted: Date;
2198
+ channelId: string;
2199
+ conversationId?: string | null | undefined;
2200
+ lastEdited?: Date | null | undefined;
2201
+ directMentions?: number[] | null | undefined;
2202
+ directGroupMentions?: string[] | null | undefined;
2203
+ systemMessage?: unknown;
2204
+ attachments?: {
2205
+ [x: string]: unknown;
2206
+ attachmentId: string;
2207
+ urlType: string;
2208
+ title?: string | null | undefined;
2209
+ url?: string | null | undefined;
2210
+ fileName?: string | null | undefined;
2211
+ fileSize?: number | null | undefined;
2212
+ underlyingType?: string | null | undefined;
2213
+ description?: string | null | undefined;
2214
+ image?: string | null | undefined;
2215
+ imageWidth?: number | null | undefined;
2216
+ imageHeight?: number | null | undefined;
2217
+ duration?: string | null | undefined;
2218
+ uploadState?: string | null | undefined;
2219
+ video?: string | null | undefined;
2220
+ videoType?: string | null | undefined;
2221
+ videoAutoPlay?: boolean | null | undefined;
2222
+ }[] | null | undefined;
2223
+ reactions?: Record<string, unknown> | null | undefined;
2224
+ objIndex?: number | null | undefined;
2225
+ creatorName?: string | null | undefined;
2226
+ recipients?: number[] | null | undefined;
2227
+ groups?: string[] | null | undefined;
2228
+ toEmails?: string[] | null | undefined;
2229
+ deleted?: boolean | null | undefined;
2230
+ deletedBy?: number | null | undefined;
2231
+ version?: number | null | undefined;
2232
+ actions?: unknown[] | null | undefined;
2233
+ }>>>>;
2234
+ toEmails: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
2235
+ version: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2236
+ }, z.core.$strip>;
2237
+ export declare function createInboxThreadSchema(linkBaseUrl?: string): z.ZodPipe<z.ZodObject<{
2238
+ id: z.ZodString;
2239
+ title: z.ZodString;
2240
+ content: z.ZodString;
2241
+ creator: z.ZodNumber;
2242
+ creatorName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2243
+ channelId: z.ZodString;
2244
+ workspaceId: z.ZodNumber;
2245
+ actions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
2246
+ attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2247
+ attachmentId: z.ZodString;
2248
+ urlType: z.ZodString;
2249
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2250
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2251
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2252
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2253
+ underlyingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2254
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2255
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2256
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2257
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2258
+ duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2259
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2260
+ video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2261
+ videoType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2262
+ videoAutoPlay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2263
+ }, z.core.$loose>>>>;
2264
+ commentCount: z.ZodNumber;
2265
+ directGroupMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
2266
+ directMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
2267
+ groups: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
2268
+ lastEdited: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2269
+ lastObjIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2270
+ lastUpdated: z.ZodDate;
2271
+ mutedUntil: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2272
+ participants: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
2273
+ pinned: z.ZodOptional<z.ZodBoolean>;
2274
+ pinnedDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2275
+ posted: z.ZodDate;
2276
+ reactions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodNumber>>>>;
2277
+ recipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
2278
+ snippet: z.ZodString;
2279
+ snippetCreator: z.ZodNumber;
2280
+ snippetMaskAvatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2281
+ snippetMaskPoster: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2282
+ systemMessage: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnknown]>>>;
2283
+ isArchived: z.ZodBoolean;
2284
+ inInbox: z.ZodBoolean;
2285
+ isSaved: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2286
+ closed: z.ZodBoolean;
2287
+ responders: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
2288
+ lastComment: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodObject<{
2289
+ id: z.ZodString;
2290
+ content: z.ZodString;
2291
+ creator: z.ZodNumber;
2292
+ threadId: z.ZodString;
2293
+ workspaceId: z.ZodNumber;
2294
+ conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2295
+ posted: z.ZodDate;
2296
+ lastEdited: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2297
+ directMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
2298
+ directGroupMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
2299
+ systemMessage: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnknown]>>>;
2300
+ attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2301
+ attachmentId: z.ZodString;
2302
+ urlType: z.ZodString;
2303
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2304
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2305
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2306
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2307
+ underlyingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2308
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2309
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2310
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2311
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2312
+ duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2313
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2314
+ video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2315
+ videoType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2316
+ videoAutoPlay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2317
+ }, z.core.$loose>>>>;
2318
+ reactions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2319
+ objIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2320
+ creatorName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2321
+ channelId: z.ZodString;
2322
+ recipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
2323
+ groups: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
2324
+ toEmails: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
2325
+ deleted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2326
+ deletedBy: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2327
+ version: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2328
+ actions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
2329
+ }, z.core.$strip>, z.ZodTransform<{
2330
+ url: string;
2331
+ id: string;
2332
+ content: string;
2333
+ creator: number;
2334
+ threadId: string;
2335
+ workspaceId: number;
2336
+ posted: Date;
2337
+ channelId: string;
2338
+ conversationId?: string | null | undefined;
2339
+ lastEdited?: Date | null | undefined;
2340
+ directMentions?: number[] | null | undefined;
2341
+ directGroupMentions?: string[] | null | undefined;
2342
+ systemMessage?: unknown;
2343
+ attachments?: {
2344
+ [x: string]: unknown;
2345
+ attachmentId: string;
2346
+ urlType: string;
2347
+ title?: string | null | undefined;
2348
+ url?: string | null | undefined;
2349
+ fileName?: string | null | undefined;
2350
+ fileSize?: number | null | undefined;
2351
+ underlyingType?: string | null | undefined;
2352
+ description?: string | null | undefined;
2353
+ image?: string | null | undefined;
2354
+ imageWidth?: number | null | undefined;
2355
+ imageHeight?: number | null | undefined;
2356
+ duration?: string | null | undefined;
2357
+ uploadState?: string | null | undefined;
2358
+ video?: string | null | undefined;
2359
+ videoType?: string | null | undefined;
2360
+ videoAutoPlay?: boolean | null | undefined;
2361
+ }[] | null | undefined;
2362
+ reactions?: Record<string, unknown> | null | undefined;
2363
+ objIndex?: number | null | undefined;
2364
+ creatorName?: string | null | undefined;
2365
+ recipients?: number[] | null | undefined;
2366
+ groups?: string[] | null | undefined;
2367
+ toEmails?: string[] | null | undefined;
2368
+ deleted?: boolean | null | undefined;
2369
+ deletedBy?: number | null | undefined;
2370
+ version?: number | null | undefined;
2371
+ actions?: unknown[] | null | undefined;
2372
+ }, {
2373
+ id: string;
2374
+ content: string;
2375
+ creator: number;
2376
+ threadId: string;
2377
+ workspaceId: number;
2378
+ posted: Date;
2379
+ channelId: string;
2380
+ conversationId?: string | null | undefined;
2381
+ lastEdited?: Date | null | undefined;
2382
+ directMentions?: number[] | null | undefined;
2383
+ directGroupMentions?: string[] | null | undefined;
2384
+ systemMessage?: unknown;
2385
+ attachments?: {
2386
+ [x: string]: unknown;
2387
+ attachmentId: string;
2388
+ urlType: string;
2389
+ title?: string | null | undefined;
2390
+ url?: string | null | undefined;
2391
+ fileName?: string | null | undefined;
2392
+ fileSize?: number | null | undefined;
2393
+ underlyingType?: string | null | undefined;
2394
+ description?: string | null | undefined;
2395
+ image?: string | null | undefined;
2396
+ imageWidth?: number | null | undefined;
2397
+ imageHeight?: number | null | undefined;
2398
+ duration?: string | null | undefined;
2399
+ uploadState?: string | null | undefined;
2400
+ video?: string | null | undefined;
2401
+ videoType?: string | null | undefined;
2402
+ videoAutoPlay?: boolean | null | undefined;
2403
+ }[] | null | undefined;
2404
+ reactions?: Record<string, unknown> | null | undefined;
2405
+ objIndex?: number | null | undefined;
2406
+ creatorName?: string | null | undefined;
2407
+ recipients?: number[] | null | undefined;
2408
+ groups?: string[] | null | undefined;
2409
+ toEmails?: string[] | null | undefined;
2410
+ deleted?: boolean | null | undefined;
2411
+ deletedBy?: number | null | undefined;
2412
+ version?: number | null | undefined;
2413
+ actions?: unknown[] | null | undefined;
2414
+ }>>>>;
2415
+ toEmails: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
2416
+ version: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2417
+ }, z.core.$strip>, z.ZodTransform<{
2418
+ url: string;
2419
+ id: string;
2420
+ title: string;
2421
+ content: string;
2422
+ creator: number;
2423
+ channelId: string;
2424
+ workspaceId: number;
2425
+ commentCount: number;
2426
+ lastUpdated: Date;
2427
+ posted: Date;
2428
+ snippet: string;
2429
+ snippetCreator: number;
2430
+ isArchived: boolean;
2431
+ inInbox: boolean;
2432
+ closed: boolean;
2433
+ creatorName?: string | null | undefined;
2434
+ actions?: unknown[] | null | undefined;
2435
+ attachments?: {
2436
+ [x: string]: unknown;
2437
+ attachmentId: string;
2438
+ urlType: string;
2439
+ title?: string | null | undefined;
2440
+ url?: string | null | undefined;
2441
+ fileName?: string | null | undefined;
2442
+ fileSize?: number | null | undefined;
2443
+ underlyingType?: string | null | undefined;
2444
+ description?: string | null | undefined;
2445
+ image?: string | null | undefined;
2446
+ imageWidth?: number | null | undefined;
2447
+ imageHeight?: number | null | undefined;
2448
+ duration?: string | null | undefined;
2449
+ uploadState?: string | null | undefined;
2450
+ video?: string | null | undefined;
2451
+ videoType?: string | null | undefined;
2452
+ videoAutoPlay?: boolean | null | undefined;
2453
+ }[] | null | undefined;
2454
+ directGroupMentions?: string[] | null | undefined;
2455
+ directMentions?: number[] | null | undefined;
2456
+ groups?: string[] | null | undefined;
2457
+ lastEdited?: Date | null | undefined;
2458
+ lastObjIndex?: number | null | undefined;
2459
+ mutedUntil?: Date | null | undefined;
2460
+ participants?: number[] | null | undefined;
2461
+ pinned?: boolean | undefined;
2462
+ pinnedDate?: Date | null | undefined;
2463
+ reactions?: Record<string, number[]> | null | undefined;
2464
+ recipients?: number[] | null | undefined;
2465
+ snippetMaskAvatarUrl?: string | null | undefined;
2466
+ snippetMaskPoster?: string | null | undefined;
2467
+ systemMessage?: unknown;
2468
+ isSaved?: boolean | null | undefined;
2469
+ responders?: number[] | null | undefined;
2470
+ lastComment?: {
2471
+ url: string;
2472
+ id: string;
2473
+ content: string;
2474
+ creator: number;
2475
+ threadId: string;
2476
+ workspaceId: number;
2477
+ posted: Date;
2478
+ channelId: string;
2479
+ conversationId?: string | null | undefined;
2480
+ lastEdited?: Date | null | undefined;
2481
+ directMentions?: number[] | null | undefined;
2482
+ directGroupMentions?: string[] | null | undefined;
2483
+ systemMessage?: unknown;
2484
+ attachments?: {
2485
+ [x: string]: unknown;
2486
+ attachmentId: string;
2487
+ urlType: string;
2488
+ title?: string | null | undefined;
2489
+ url?: string | null | undefined;
2490
+ fileName?: string | null | undefined;
2491
+ fileSize?: number | null | undefined;
2492
+ underlyingType?: string | null | undefined;
2493
+ description?: string | null | undefined;
2494
+ image?: string | null | undefined;
2495
+ imageWidth?: number | null | undefined;
2496
+ imageHeight?: number | null | undefined;
2497
+ duration?: string | null | undefined;
2498
+ uploadState?: string | null | undefined;
2499
+ video?: string | null | undefined;
2500
+ videoType?: string | null | undefined;
2501
+ videoAutoPlay?: boolean | null | undefined;
2502
+ }[] | null | undefined;
2503
+ reactions?: Record<string, unknown> | null | undefined;
2504
+ objIndex?: number | null | undefined;
2505
+ creatorName?: string | null | undefined;
2506
+ recipients?: number[] | null | undefined;
2507
+ groups?: string[] | null | undefined;
2508
+ toEmails?: string[] | null | undefined;
2509
+ deleted?: boolean | null | undefined;
2510
+ deletedBy?: number | null | undefined;
2511
+ version?: number | null | undefined;
2512
+ actions?: unknown[] | null | undefined;
2513
+ } | null | undefined;
2514
+ toEmails?: string[] | null | undefined;
2515
+ version?: number | null | undefined;
2516
+ }, {
2517
+ id: string;
2518
+ title: string;
2519
+ content: string;
2520
+ creator: number;
2521
+ channelId: string;
2522
+ workspaceId: number;
2523
+ commentCount: number;
2524
+ lastUpdated: Date;
2525
+ posted: Date;
2526
+ snippet: string;
2527
+ snippetCreator: number;
2528
+ isArchived: boolean;
2529
+ inInbox: boolean;
2530
+ closed: boolean;
2531
+ creatorName?: string | null | undefined;
2532
+ actions?: unknown[] | null | undefined;
2533
+ attachments?: {
2534
+ [x: string]: unknown;
2535
+ attachmentId: string;
2536
+ urlType: string;
2537
+ title?: string | null | undefined;
2538
+ url?: string | null | undefined;
2539
+ fileName?: string | null | undefined;
2540
+ fileSize?: number | null | undefined;
2541
+ underlyingType?: string | null | undefined;
2542
+ description?: string | null | undefined;
2543
+ image?: string | null | undefined;
2544
+ imageWidth?: number | null | undefined;
2545
+ imageHeight?: number | null | undefined;
2546
+ duration?: string | null | undefined;
2547
+ uploadState?: string | null | undefined;
2548
+ video?: string | null | undefined;
2549
+ videoType?: string | null | undefined;
2550
+ videoAutoPlay?: boolean | null | undefined;
2551
+ }[] | null | undefined;
2552
+ directGroupMentions?: string[] | null | undefined;
2553
+ directMentions?: number[] | null | undefined;
2554
+ groups?: string[] | null | undefined;
2555
+ lastEdited?: Date | null | undefined;
2556
+ lastObjIndex?: number | null | undefined;
2557
+ mutedUntil?: Date | null | undefined;
2558
+ participants?: number[] | null | undefined;
2559
+ pinned?: boolean | undefined;
2560
+ pinnedDate?: Date | null | undefined;
2561
+ reactions?: Record<string, number[]> | null | undefined;
2562
+ recipients?: number[] | null | undefined;
2563
+ snippetMaskAvatarUrl?: string | null | undefined;
2564
+ snippetMaskPoster?: string | null | undefined;
2565
+ systemMessage?: unknown;
2566
+ isSaved?: boolean | null | undefined;
2567
+ responders?: number[] | null | undefined;
2568
+ lastComment?: {
2569
+ url: string;
2570
+ id: string;
2571
+ content: string;
2572
+ creator: number;
2573
+ threadId: string;
2574
+ workspaceId: number;
2575
+ posted: Date;
2576
+ channelId: string;
2577
+ conversationId?: string | null | undefined;
2578
+ lastEdited?: Date | null | undefined;
2579
+ directMentions?: number[] | null | undefined;
2580
+ directGroupMentions?: string[] | null | undefined;
2581
+ systemMessage?: unknown;
2582
+ attachments?: {
2583
+ [x: string]: unknown;
2584
+ attachmentId: string;
2585
+ urlType: string;
2586
+ title?: string | null | undefined;
2587
+ url?: string | null | undefined;
2588
+ fileName?: string | null | undefined;
2589
+ fileSize?: number | null | undefined;
2590
+ underlyingType?: string | null | undefined;
2591
+ description?: string | null | undefined;
2592
+ image?: string | null | undefined;
2593
+ imageWidth?: number | null | undefined;
2594
+ imageHeight?: number | null | undefined;
2595
+ duration?: string | null | undefined;
2596
+ uploadState?: string | null | undefined;
2597
+ video?: string | null | undefined;
2598
+ videoType?: string | null | undefined;
2599
+ videoAutoPlay?: boolean | null | undefined;
2600
+ }[] | null | undefined;
2601
+ reactions?: Record<string, unknown> | null | undefined;
2602
+ objIndex?: number | null | undefined;
2603
+ creatorName?: string | null | undefined;
2604
+ recipients?: number[] | null | undefined;
2605
+ groups?: string[] | null | undefined;
2606
+ toEmails?: string[] | null | undefined;
2607
+ deleted?: boolean | null | undefined;
2608
+ deletedBy?: number | null | undefined;
2609
+ version?: number | null | undefined;
2610
+ actions?: unknown[] | null | undefined;
2611
+ } | null | undefined;
2612
+ toEmails?: string[] | null | undefined;
2613
+ version?: number | null | undefined;
2614
+ }>>;
2615
+ export declare const InboxThreadSchema: z.ZodPipe<z.ZodObject<{
2616
+ id: z.ZodString;
2617
+ title: z.ZodString;
2618
+ content: z.ZodString;
2619
+ creator: z.ZodNumber;
2620
+ creatorName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2621
+ channelId: z.ZodString;
2622
+ workspaceId: z.ZodNumber;
2623
+ actions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
2624
+ attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2625
+ attachmentId: z.ZodString;
2626
+ urlType: z.ZodString;
2627
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2628
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2629
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2630
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2631
+ underlyingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2632
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2633
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2634
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2635
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2636
+ duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2637
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2638
+ video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2639
+ videoType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2640
+ videoAutoPlay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2641
+ }, z.core.$loose>>>>;
2642
+ commentCount: z.ZodNumber;
2643
+ directGroupMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
2644
+ directMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
2645
+ groups: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
2646
+ lastEdited: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2647
+ lastObjIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2648
+ lastUpdated: z.ZodDate;
2649
+ mutedUntil: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2650
+ participants: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
2651
+ pinned: z.ZodOptional<z.ZodBoolean>;
2652
+ pinnedDate: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2653
+ posted: z.ZodDate;
2654
+ reactions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodNumber>>>>;
2655
+ recipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
2656
+ snippet: z.ZodString;
2657
+ snippetCreator: z.ZodNumber;
2658
+ snippetMaskAvatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2659
+ snippetMaskPoster: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2660
+ systemMessage: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnknown]>>>;
2661
+ isArchived: z.ZodBoolean;
2662
+ inInbox: z.ZodBoolean;
2663
+ isSaved: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2664
+ closed: z.ZodBoolean;
2665
+ responders: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
2666
+ lastComment: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodObject<{
2667
+ id: z.ZodString;
2668
+ content: z.ZodString;
2669
+ creator: z.ZodNumber;
2670
+ threadId: z.ZodString;
2671
+ workspaceId: z.ZodNumber;
2672
+ conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2673
+ posted: z.ZodDate;
2674
+ lastEdited: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
2675
+ directMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
2676
+ directGroupMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
2677
+ systemMessage: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnknown]>>>;
2678
+ attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
2679
+ attachmentId: z.ZodString;
2680
+ urlType: z.ZodString;
2681
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2682
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2683
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2684
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2685
+ underlyingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2686
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2687
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2688
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2689
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2690
+ duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2691
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2692
+ video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2693
+ videoType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2694
+ videoAutoPlay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2695
+ }, z.core.$loose>>>>;
2696
+ reactions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
2697
+ objIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2698
+ creatorName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2699
+ channelId: z.ZodString;
2700
+ recipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
2701
+ groups: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
2702
+ toEmails: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
2703
+ deleted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
2704
+ deletedBy: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2705
+ version: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2706
+ actions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
2707
+ }, z.core.$strip>, z.ZodTransform<{
2708
+ url: string;
2709
+ id: string;
2710
+ content: string;
2711
+ creator: number;
2712
+ threadId: string;
2713
+ workspaceId: number;
2714
+ posted: Date;
2715
+ channelId: string;
2716
+ conversationId?: string | null | undefined;
2717
+ lastEdited?: Date | null | undefined;
2718
+ directMentions?: number[] | null | undefined;
2719
+ directGroupMentions?: string[] | null | undefined;
2720
+ systemMessage?: unknown;
2721
+ attachments?: {
2722
+ [x: string]: unknown;
2723
+ attachmentId: string;
2724
+ urlType: string;
2725
+ title?: string | null | undefined;
2726
+ url?: string | null | undefined;
2727
+ fileName?: string | null | undefined;
2728
+ fileSize?: number | null | undefined;
2729
+ underlyingType?: string | null | undefined;
2730
+ description?: string | null | undefined;
2731
+ image?: string | null | undefined;
2732
+ imageWidth?: number | null | undefined;
2733
+ imageHeight?: number | null | undefined;
2734
+ duration?: string | null | undefined;
2735
+ uploadState?: string | null | undefined;
2736
+ video?: string | null | undefined;
2737
+ videoType?: string | null | undefined;
2738
+ videoAutoPlay?: boolean | null | undefined;
2739
+ }[] | null | undefined;
2740
+ reactions?: Record<string, unknown> | null | undefined;
2741
+ objIndex?: number | null | undefined;
2742
+ creatorName?: string | null | undefined;
2743
+ recipients?: number[] | null | undefined;
2744
+ groups?: string[] | null | undefined;
2745
+ toEmails?: string[] | null | undefined;
2746
+ deleted?: boolean | null | undefined;
2747
+ deletedBy?: number | null | undefined;
2748
+ version?: number | null | undefined;
2749
+ actions?: unknown[] | null | undefined;
2750
+ }, {
2751
+ id: string;
2752
+ content: string;
2753
+ creator: number;
2754
+ threadId: string;
2755
+ workspaceId: number;
2756
+ posted: Date;
2757
+ channelId: string;
2758
+ conversationId?: string | null | undefined;
2759
+ lastEdited?: Date | null | undefined;
2760
+ directMentions?: number[] | null | undefined;
2761
+ directGroupMentions?: string[] | null | undefined;
2762
+ systemMessage?: unknown;
2763
+ attachments?: {
2764
+ [x: string]: unknown;
2765
+ attachmentId: string;
2766
+ urlType: string;
2767
+ title?: string | null | undefined;
2768
+ url?: string | null | undefined;
2769
+ fileName?: string | null | undefined;
2770
+ fileSize?: number | null | undefined;
2771
+ underlyingType?: string | null | undefined;
2772
+ description?: string | null | undefined;
2773
+ image?: string | null | undefined;
2774
+ imageWidth?: number | null | undefined;
2775
+ imageHeight?: number | null | undefined;
2776
+ duration?: string | null | undefined;
2777
+ uploadState?: string | null | undefined;
2778
+ video?: string | null | undefined;
2779
+ videoType?: string | null | undefined;
2780
+ videoAutoPlay?: boolean | null | undefined;
2781
+ }[] | null | undefined;
2782
+ reactions?: Record<string, unknown> | null | undefined;
2783
+ objIndex?: number | null | undefined;
2784
+ creatorName?: string | null | undefined;
2785
+ recipients?: number[] | null | undefined;
2786
+ groups?: string[] | null | undefined;
2787
+ toEmails?: string[] | null | undefined;
2788
+ deleted?: boolean | null | undefined;
2789
+ deletedBy?: number | null | undefined;
2790
+ version?: number | null | undefined;
2791
+ actions?: unknown[] | null | undefined;
2792
+ }>>>>;
2793
+ toEmails: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
2794
+ version: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
2795
+ }, z.core.$strip>, z.ZodTransform<{
2796
+ url: string;
2797
+ id: string;
2798
+ title: string;
2799
+ content: string;
2800
+ creator: number;
2801
+ channelId: string;
2802
+ workspaceId: number;
2803
+ commentCount: number;
2804
+ lastUpdated: Date;
2805
+ posted: Date;
2806
+ snippet: string;
2807
+ snippetCreator: number;
2808
+ isArchived: boolean;
2809
+ inInbox: boolean;
2810
+ closed: boolean;
2811
+ creatorName?: string | null | undefined;
2812
+ actions?: unknown[] | null | undefined;
2813
+ attachments?: {
2814
+ [x: string]: unknown;
2815
+ attachmentId: string;
2816
+ urlType: string;
2817
+ title?: string | null | undefined;
2818
+ url?: string | null | undefined;
2819
+ fileName?: string | null | undefined;
2820
+ fileSize?: number | null | undefined;
2821
+ underlyingType?: string | null | undefined;
2822
+ description?: string | null | undefined;
2823
+ image?: string | null | undefined;
2824
+ imageWidth?: number | null | undefined;
2825
+ imageHeight?: number | null | undefined;
2826
+ duration?: string | null | undefined;
2827
+ uploadState?: string | null | undefined;
2828
+ video?: string | null | undefined;
2829
+ videoType?: string | null | undefined;
2830
+ videoAutoPlay?: boolean | null | undefined;
2831
+ }[] | null | undefined;
2832
+ directGroupMentions?: string[] | null | undefined;
2833
+ directMentions?: number[] | null | undefined;
2834
+ groups?: string[] | null | undefined;
2835
+ lastEdited?: Date | null | undefined;
2836
+ lastObjIndex?: number | null | undefined;
2837
+ mutedUntil?: Date | null | undefined;
2838
+ participants?: number[] | null | undefined;
2839
+ pinned?: boolean | undefined;
2840
+ pinnedDate?: Date | null | undefined;
2841
+ reactions?: Record<string, number[]> | null | undefined;
2842
+ recipients?: number[] | null | undefined;
2843
+ snippetMaskAvatarUrl?: string | null | undefined;
2844
+ snippetMaskPoster?: string | null | undefined;
2845
+ systemMessage?: unknown;
2846
+ isSaved?: boolean | null | undefined;
2847
+ responders?: number[] | null | undefined;
2848
+ lastComment?: {
2849
+ url: string;
2850
+ id: string;
2851
+ content: string;
2852
+ creator: number;
2853
+ threadId: string;
2854
+ workspaceId: number;
2855
+ posted: Date;
2856
+ channelId: string;
2857
+ conversationId?: string | null | undefined;
2858
+ lastEdited?: Date | null | undefined;
2859
+ directMentions?: number[] | null | undefined;
2860
+ directGroupMentions?: string[] | null | undefined;
2861
+ systemMessage?: unknown;
2862
+ attachments?: {
2863
+ [x: string]: unknown;
2864
+ attachmentId: string;
2865
+ urlType: string;
2866
+ title?: string | null | undefined;
2867
+ url?: string | null | undefined;
2868
+ fileName?: string | null | undefined;
2869
+ fileSize?: number | null | undefined;
2870
+ underlyingType?: string | null | undefined;
2871
+ description?: string | null | undefined;
2872
+ image?: string | null | undefined;
2873
+ imageWidth?: number | null | undefined;
2874
+ imageHeight?: number | null | undefined;
2875
+ duration?: string | null | undefined;
2876
+ uploadState?: string | null | undefined;
2877
+ video?: string | null | undefined;
2878
+ videoType?: string | null | undefined;
2879
+ videoAutoPlay?: boolean | null | undefined;
2880
+ }[] | null | undefined;
2881
+ reactions?: Record<string, unknown> | null | undefined;
2882
+ objIndex?: number | null | undefined;
2883
+ creatorName?: string | null | undefined;
2884
+ recipients?: number[] | null | undefined;
2885
+ groups?: string[] | null | undefined;
2886
+ toEmails?: string[] | null | undefined;
2887
+ deleted?: boolean | null | undefined;
2888
+ deletedBy?: number | null | undefined;
2889
+ version?: number | null | undefined;
2890
+ actions?: unknown[] | null | undefined;
2891
+ } | null | undefined;
2892
+ toEmails?: string[] | null | undefined;
2893
+ version?: number | null | undefined;
2894
+ }, {
2895
+ id: string;
2896
+ title: string;
2897
+ content: string;
2898
+ creator: number;
2899
+ channelId: string;
2900
+ workspaceId: number;
2901
+ commentCount: number;
2902
+ lastUpdated: Date;
2903
+ posted: Date;
2904
+ snippet: string;
2905
+ snippetCreator: number;
2906
+ isArchived: boolean;
2907
+ inInbox: boolean;
2908
+ closed: boolean;
2909
+ creatorName?: string | null | undefined;
2910
+ actions?: unknown[] | null | undefined;
2911
+ attachments?: {
2912
+ [x: string]: unknown;
2913
+ attachmentId: string;
2914
+ urlType: string;
2915
+ title?: string | null | undefined;
2916
+ url?: string | null | undefined;
2917
+ fileName?: string | null | undefined;
2918
+ fileSize?: number | null | undefined;
2919
+ underlyingType?: string | null | undefined;
2920
+ description?: string | null | undefined;
2921
+ image?: string | null | undefined;
2922
+ imageWidth?: number | null | undefined;
2923
+ imageHeight?: number | null | undefined;
2924
+ duration?: string | null | undefined;
2925
+ uploadState?: string | null | undefined;
2926
+ video?: string | null | undefined;
2927
+ videoType?: string | null | undefined;
2928
+ videoAutoPlay?: boolean | null | undefined;
2929
+ }[] | null | undefined;
2930
+ directGroupMentions?: string[] | null | undefined;
2931
+ directMentions?: number[] | null | undefined;
2932
+ groups?: string[] | null | undefined;
2933
+ lastEdited?: Date | null | undefined;
2934
+ lastObjIndex?: number | null | undefined;
2935
+ mutedUntil?: Date | null | undefined;
2936
+ participants?: number[] | null | undefined;
2937
+ pinned?: boolean | undefined;
2938
+ pinnedDate?: Date | null | undefined;
2939
+ reactions?: Record<string, number[]> | null | undefined;
2940
+ recipients?: number[] | null | undefined;
2941
+ snippetMaskAvatarUrl?: string | null | undefined;
2942
+ snippetMaskPoster?: string | null | undefined;
2943
+ systemMessage?: unknown;
2944
+ isSaved?: boolean | null | undefined;
2945
+ responders?: number[] | null | undefined;
2946
+ lastComment?: {
2947
+ url: string;
2948
+ id: string;
2949
+ content: string;
2950
+ creator: number;
2951
+ threadId: string;
2952
+ workspaceId: number;
2953
+ posted: Date;
2954
+ channelId: string;
2955
+ conversationId?: string | null | undefined;
2956
+ lastEdited?: Date | null | undefined;
2957
+ directMentions?: number[] | null | undefined;
2958
+ directGroupMentions?: string[] | null | undefined;
2959
+ systemMessage?: unknown;
2960
+ attachments?: {
2961
+ [x: string]: unknown;
2962
+ attachmentId: string;
2963
+ urlType: string;
2964
+ title?: string | null | undefined;
2965
+ url?: string | null | undefined;
2966
+ fileName?: string | null | undefined;
2967
+ fileSize?: number | null | undefined;
2968
+ underlyingType?: string | null | undefined;
2969
+ description?: string | null | undefined;
2970
+ image?: string | null | undefined;
2971
+ imageWidth?: number | null | undefined;
2972
+ imageHeight?: number | null | undefined;
2973
+ duration?: string | null | undefined;
2974
+ uploadState?: string | null | undefined;
2975
+ video?: string | null | undefined;
2976
+ videoType?: string | null | undefined;
2977
+ videoAutoPlay?: boolean | null | undefined;
2978
+ }[] | null | undefined;
2979
+ reactions?: Record<string, unknown> | null | undefined;
2980
+ objIndex?: number | null | undefined;
2981
+ creatorName?: string | null | undefined;
2982
+ recipients?: number[] | null | undefined;
2983
+ groups?: string[] | null | undefined;
2984
+ toEmails?: string[] | null | undefined;
2985
+ deleted?: boolean | null | undefined;
2986
+ deletedBy?: number | null | undefined;
2987
+ version?: number | null | undefined;
2988
+ actions?: unknown[] | null | undefined;
2989
+ } | null | undefined;
2990
+ toEmails?: string[] | null | undefined;
2991
+ version?: number | null | undefined;
2992
+ }>>;
2993
+ export type InboxThread = z.infer<typeof InboxThreadSchema>;
2994
+ export declare const UnreadThreadSchema: z.ZodObject<{
2995
+ threadId: z.ZodString;
2996
+ channelId: z.ZodString;
2997
+ objIndex: z.ZodNumber;
2998
+ directMention: z.ZodBoolean;
2999
+ }, z.core.$strip>;
3000
+ export type UnreadThread = z.infer<typeof UnreadThreadSchema>;
3001
+ export declare const UnreadConversationSchema: z.ZodObject<{
3002
+ conversationId: z.ZodString;
3003
+ objIndex: z.ZodNumber;
3004
+ directMention: z.ZodBoolean;
3005
+ }, z.core.$strip>;
3006
+ export type UnreadConversation = z.infer<typeof UnreadConversationSchema>;
3007
+ export declare const SEARCH_RESULT_TYPES: readonly ["thread", "conversation"];
3008
+ export type SearchResultType = (typeof SEARCH_RESULT_TYPES)[number];
3009
+ export declare const ThreadSearchResultSchema: z.ZodObject<{
3010
+ type: z.ZodLiteral<"thread">;
3011
+ threadId: z.ZodString;
3012
+ commentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3013
+ id: z.ZodString;
3014
+ snippet: z.ZodString;
3015
+ snippetCreatorId: z.ZodNumber;
3016
+ snippetLastUpdated: z.ZodDate;
3017
+ channelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3018
+ channelName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3019
+ channelColor: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3020
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3021
+ closed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
3022
+ }, z.core.$strip>;
3023
+ export type ThreadSearchResult = z.infer<typeof ThreadSearchResultSchema>;
3024
+ export declare const ConversationSearchResultSchema: z.ZodObject<{
3025
+ type: z.ZodLiteral<"conversation">;
3026
+ conversationId: z.ZodString;
3027
+ messageId: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<string, string | number>>>>;
3028
+ userIds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
3029
+ id: z.ZodString;
3030
+ snippet: z.ZodString;
3031
+ snippetCreatorId: z.ZodNumber;
3032
+ snippetLastUpdated: z.ZodDate;
3033
+ channelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3034
+ channelName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3035
+ channelColor: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3036
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3037
+ closed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
3038
+ }, z.core.$strip>;
3039
+ export type ConversationSearchResult = z.infer<typeof ConversationSearchResultSchema>;
3040
+ export declare const SearchResultSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3041
+ type: z.ZodLiteral<"thread">;
3042
+ threadId: z.ZodString;
3043
+ commentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3044
+ id: z.ZodString;
3045
+ snippet: z.ZodString;
3046
+ snippetCreatorId: z.ZodNumber;
3047
+ snippetLastUpdated: z.ZodDate;
3048
+ channelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3049
+ channelName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3050
+ channelColor: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3051
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3052
+ closed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
3053
+ }, z.core.$strip>, z.ZodObject<{
3054
+ type: z.ZodLiteral<"conversation">;
3055
+ conversationId: z.ZodString;
3056
+ messageId: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<string, string | number>>>>;
3057
+ userIds: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
3058
+ id: z.ZodString;
3059
+ snippet: z.ZodString;
3060
+ snippetCreatorId: z.ZodNumber;
3061
+ snippetLastUpdated: z.ZodDate;
3062
+ channelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3063
+ channelName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3064
+ channelColor: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
3065
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
3066
+ closed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
3067
+ }, z.core.$strip>], "type">;
3068
+ export type SearchResult = z.infer<typeof SearchResultSchema>;
3069
+ export type SearchResponse = {
3070
+ items: SearchResult[];
3071
+ nextCursorMark?: string;
3072
+ hasMore: boolean;
3073
+ isPlanRestricted: boolean;
3074
+ };
3075
+ export type SearchThreadResponse = {
3076
+ commentIds: string[];
3077
+ };
3078
+ export type SearchConversationResponse = {
3079
+ messageIds: number[];
3080
+ };
3081
+ export type ReactionObject = Record<string, number[]> | null;