@doist/comms-sdk 0.0.1 → 0.2.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 (115) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +143 -45
  3. package/dist/cjs/authentication.js +211 -0
  4. package/dist/cjs/clients/add-comment-helper.js +70 -0
  5. package/dist/cjs/clients/base-client.js +25 -0
  6. package/dist/cjs/clients/channels-client.js +200 -0
  7. package/dist/cjs/clients/comments-client.js +159 -0
  8. package/dist/cjs/clients/conversation-messages-client.js +158 -0
  9. package/dist/cjs/clients/conversations-client.js +243 -0
  10. package/dist/cjs/clients/groups-client.js +164 -0
  11. package/dist/cjs/clients/inbox-client.js +171 -0
  12. package/dist/cjs/clients/reactions-client.js +97 -0
  13. package/dist/cjs/clients/search-client.js +138 -0
  14. package/dist/cjs/clients/threads-client.js +330 -0
  15. package/dist/cjs/clients/users-client.js +326 -0
  16. package/dist/cjs/clients/workspace-users-client.js +240 -0
  17. package/dist/cjs/clients/workspaces-client.js +166 -0
  18. package/dist/cjs/comms-api.js +66 -0
  19. package/dist/cjs/consts/endpoints.js +32 -0
  20. package/dist/cjs/index.js +48 -0
  21. package/dist/cjs/package.json +1 -0
  22. package/dist/cjs/testUtils/msw-handlers.js +51 -0
  23. package/dist/cjs/testUtils/msw-setup.js +21 -0
  24. package/dist/cjs/testUtils/obsidian-fetch-adapter.js +53 -0
  25. package/dist/cjs/testUtils/test-defaults.js +104 -0
  26. package/dist/cjs/transport/fetch-with-retry.js +136 -0
  27. package/dist/cjs/transport/http-client.js +56 -0
  28. package/dist/cjs/transport/http-dispatcher.js +143 -0
  29. package/dist/cjs/types/api-version.js +8 -0
  30. package/dist/cjs/types/entities.js +411 -0
  31. package/dist/cjs/types/enums.js +37 -0
  32. package/dist/cjs/types/errors.js +12 -0
  33. package/dist/cjs/types/http.js +4 -0
  34. package/dist/cjs/types/index.js +22 -0
  35. package/dist/cjs/types/requests.js +116 -0
  36. package/dist/cjs/utils/case-conversion.js +54 -0
  37. package/dist/cjs/utils/index.js +19 -0
  38. package/dist/cjs/utils/timestamp-conversion.js +49 -0
  39. package/dist/cjs/utils/url-helpers.js +131 -0
  40. package/dist/cjs/utils/uuidv7.js +174 -0
  41. package/dist/esm/authentication.js +203 -0
  42. package/dist/esm/clients/add-comment-helper.js +67 -0
  43. package/dist/esm/clients/base-client.js +21 -0
  44. package/dist/esm/clients/channels-client.js +196 -0
  45. package/dist/esm/clients/comments-client.js +155 -0
  46. package/dist/esm/clients/conversation-messages-client.js +154 -0
  47. package/dist/esm/clients/conversations-client.js +239 -0
  48. package/dist/esm/clients/groups-client.js +160 -0
  49. package/dist/esm/clients/inbox-client.js +167 -0
  50. package/dist/esm/clients/reactions-client.js +93 -0
  51. package/dist/esm/clients/search-client.js +134 -0
  52. package/dist/esm/clients/threads-client.js +326 -0
  53. package/dist/esm/clients/users-client.js +322 -0
  54. package/dist/esm/clients/workspace-users-client.js +236 -0
  55. package/dist/esm/clients/workspaces-client.js +162 -0
  56. package/dist/esm/comms-api.js +62 -0
  57. package/dist/esm/consts/endpoints.js +28 -0
  58. package/dist/esm/index.js +17 -0
  59. package/dist/esm/testUtils/msw-handlers.js +45 -0
  60. package/dist/esm/testUtils/msw-setup.js +18 -0
  61. package/dist/esm/testUtils/obsidian-fetch-adapter.js +50 -0
  62. package/dist/esm/testUtils/test-defaults.js +101 -0
  63. package/dist/esm/transport/fetch-with-retry.js +133 -0
  64. package/dist/esm/transport/http-client.js +51 -0
  65. package/dist/esm/transport/http-dispatcher.js +104 -0
  66. package/dist/esm/types/api-version.js +5 -0
  67. package/dist/esm/types/entities.js +408 -0
  68. package/dist/esm/types/enums.js +34 -0
  69. package/dist/esm/types/errors.js +8 -0
  70. package/dist/esm/types/http.js +1 -0
  71. package/dist/esm/types/index.js +6 -0
  72. package/dist/esm/types/requests.js +113 -0
  73. package/dist/esm/utils/case-conversion.js +47 -0
  74. package/dist/esm/utils/index.js +3 -0
  75. package/dist/esm/utils/timestamp-conversion.js +45 -0
  76. package/dist/esm/utils/url-helpers.js +112 -0
  77. package/dist/esm/utils/uuidv7.js +163 -0
  78. package/dist/types/authentication.d.ts +160 -0
  79. package/dist/types/clients/add-comment-helper.d.ts +29 -0
  80. package/dist/types/clients/base-client.d.ts +28 -0
  81. package/dist/types/clients/channels-client.d.ts +208 -0
  82. package/dist/types/clients/comments-client.d.ts +224 -0
  83. package/dist/types/clients/conversation-messages-client.d.ts +198 -0
  84. package/dist/types/clients/conversations-client.d.ts +346 -0
  85. package/dist/types/clients/groups-client.d.ts +148 -0
  86. package/dist/types/clients/inbox-client.d.ts +96 -0
  87. package/dist/types/clients/reactions-client.d.ts +57 -0
  88. package/dist/types/clients/search-client.d.ts +70 -0
  89. package/dist/types/clients/threads-client.d.ts +536 -0
  90. package/dist/types/clients/users-client.d.ts +250 -0
  91. package/dist/types/clients/workspace-users-client.d.ts +147 -0
  92. package/dist/types/clients/workspaces-client.d.ts +152 -0
  93. package/dist/types/comms-api.d.ts +62 -0
  94. package/dist/types/consts/endpoints.d.ts +24 -0
  95. package/dist/types/index.d.ts +18 -0
  96. package/dist/types/testUtils/msw-handlers.d.ts +28 -0
  97. package/dist/types/testUtils/msw-setup.d.ts +1 -0
  98. package/dist/types/testUtils/obsidian-fetch-adapter.d.ts +29 -0
  99. package/dist/types/testUtils/test-defaults.d.ts +17 -0
  100. package/dist/types/transport/fetch-with-retry.d.ts +4 -0
  101. package/dist/types/transport/http-client.d.ts +13 -0
  102. package/dist/types/transport/http-dispatcher.d.ts +10 -0
  103. package/dist/types/types/api-version.d.ts +6 -0
  104. package/dist/types/types/entities.d.ts +1288 -0
  105. package/dist/types/types/enums.d.ts +55 -0
  106. package/dist/types/types/errors.d.ts +6 -0
  107. package/dist/types/types/http.d.ts +54 -0
  108. package/dist/types/types/index.d.ts +6 -0
  109. package/dist/types/types/requests.d.ts +366 -0
  110. package/dist/types/utils/case-conversion.d.ts +8 -0
  111. package/dist/types/utils/index.d.ts +3 -0
  112. package/dist/types/utils/timestamp-conversion.d.ts +13 -0
  113. package/dist/types/utils/url-helpers.d.ts +88 -0
  114. package/dist/types/utils/uuidv7.d.ts +40 -0
  115. package/package.json +91 -8
@@ -0,0 +1,1288 @@
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 AttachmentSchema: z.ZodObject<{
15
+ attachmentId: z.ZodString;
16
+ urlType: z.ZodString;
17
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
20
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
21
+ underlyingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
23
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
24
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
25
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
26
+ duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
+ video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
29
+ videoType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
+ videoAutoPlay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
31
+ }, z.core.$loose>;
32
+ export type Attachment = z.infer<typeof AttachmentSchema>;
33
+ export declare const BaseUserSchema: z.ZodObject<{
34
+ id: z.ZodNumber;
35
+ fullName: z.ZodString;
36
+ shortName: z.ZodString;
37
+ firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
+ timezone: z.ZodString;
39
+ removed: z.ZodBoolean;
40
+ imageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
+ avatarUrls: z.ZodOptional<z.ZodNullable<z.ZodObject<{
42
+ s35: z.ZodString;
43
+ s60: z.ZodString;
44
+ s195: z.ZodString;
45
+ s640: z.ZodString;
46
+ }, z.core.$strip>>>;
47
+ restricted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
48
+ setupPending: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
49
+ }, z.core.$strip>;
50
+ export declare const UserSchema: z.ZodObject<{
51
+ id: z.ZodNumber;
52
+ fullName: z.ZodString;
53
+ shortName: z.ZodString;
54
+ firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55
+ timezone: z.ZodString;
56
+ removed: z.ZodBoolean;
57
+ imageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
58
+ avatarUrls: z.ZodOptional<z.ZodNullable<z.ZodObject<{
59
+ s35: z.ZodString;
60
+ s60: z.ZodString;
61
+ s195: z.ZodString;
62
+ s640: z.ZodString;
63
+ }, z.core.$strip>>>;
64
+ restricted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
65
+ setupPending: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
66
+ email: z.ZodEmail;
67
+ clientId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
68
+ cometChannel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
69
+ lang: z.ZodString;
70
+ cometServer: z.ZodOptional<z.ZodNullable<z.ZodString>>;
71
+ token: z.ZodOptional<z.ZodNullable<z.ZodString>>;
72
+ scheduledBanners: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
73
+ }, z.core.$strip>;
74
+ export type User = z.infer<typeof UserSchema>;
75
+ export declare const WorkspaceSchema: z.ZodObject<{
76
+ id: z.ZodNumber;
77
+ name: z.ZodString;
78
+ defaultConversation: z.ZodOptional<z.ZodNullable<z.ZodString>>;
79
+ creator: z.ZodNumber;
80
+ created: z.ZodDate;
81
+ avatarId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
82
+ avatarUrls: z.ZodOptional<z.ZodNullable<z.ZodObject<{
83
+ s35: z.ZodString;
84
+ s60: z.ZodString;
85
+ s195: z.ZodString;
86
+ s640: z.ZodString;
87
+ }, z.core.$strip>>>;
88
+ plan: z.ZodOptional<z.ZodNullable<z.ZodString>>;
89
+ }, z.core.$strip>;
90
+ export type Workspace = z.infer<typeof WorkspaceSchema>;
91
+ export declare const ChannelSchema: z.ZodPipe<z.ZodObject<{
92
+ id: z.ZodString;
93
+ name: z.ZodString;
94
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
95
+ creator: z.ZodNumber;
96
+ userIds: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
97
+ color: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
98
+ public: z.ZodBoolean;
99
+ workspaceId: z.ZodNumber;
100
+ archived: z.ZodBoolean;
101
+ created: z.ZodDate;
102
+ useDefaultRecipients: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
103
+ defaultGroups: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
104
+ defaultRecipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
105
+ isFavorited: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
106
+ icon: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
107
+ version: z.ZodNumber;
108
+ filters: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
109
+ }, z.core.$strip>, z.ZodTransform<{
110
+ url: string;
111
+ id: string;
112
+ name: string;
113
+ creator: number;
114
+ public: boolean;
115
+ workspaceId: number;
116
+ archived: boolean;
117
+ created: Date;
118
+ version: number;
119
+ description?: string | null | undefined;
120
+ userIds?: number[] | null | undefined;
121
+ color?: number | null | undefined;
122
+ useDefaultRecipients?: boolean | null | undefined;
123
+ defaultGroups?: string[] | null | undefined;
124
+ defaultRecipients?: number[] | null | undefined;
125
+ isFavorited?: boolean | null | undefined;
126
+ icon?: number | null | undefined;
127
+ filters?: Record<string, string> | null | undefined;
128
+ }, {
129
+ id: string;
130
+ name: string;
131
+ creator: number;
132
+ public: boolean;
133
+ workspaceId: number;
134
+ archived: boolean;
135
+ created: Date;
136
+ version: number;
137
+ description?: string | null | undefined;
138
+ userIds?: number[] | null | undefined;
139
+ color?: number | null | undefined;
140
+ useDefaultRecipients?: boolean | null | undefined;
141
+ defaultGroups?: string[] | null | undefined;
142
+ defaultRecipients?: number[] | null | undefined;
143
+ isFavorited?: boolean | null | undefined;
144
+ icon?: number | null | undefined;
145
+ filters?: Record<string, string> | null | undefined;
146
+ }>>;
147
+ export type Channel = z.infer<typeof ChannelSchema>;
148
+ export declare const ThreadSchema: z.ZodPipe<z.ZodObject<{
149
+ id: z.ZodString;
150
+ title: z.ZodString;
151
+ content: z.ZodString;
152
+ creator: z.ZodNumber;
153
+ creatorName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
154
+ channelId: z.ZodString;
155
+ workspaceId: z.ZodNumber;
156
+ actions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
157
+ attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
158
+ attachmentId: z.ZodString;
159
+ urlType: z.ZodString;
160
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
161
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
162
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
163
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
164
+ underlyingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
165
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
166
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
167
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
168
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
169
+ duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
170
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
171
+ video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
172
+ videoType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
173
+ videoAutoPlay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
174
+ }, z.core.$loose>>>>;
175
+ commentCount: z.ZodNumber;
176
+ closed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
177
+ directGroupMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
178
+ directMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
179
+ groups: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
180
+ lastEdited: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
181
+ lastObjIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
182
+ lastUpdated: z.ZodDate;
183
+ mutedUntil: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
184
+ participants: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
185
+ pinned: z.ZodOptional<z.ZodBoolean>;
186
+ pinnedTs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
187
+ posted: z.ZodDate;
188
+ reactions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
189
+ recipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
190
+ responders: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
191
+ snippet: z.ZodString;
192
+ snippetCreator: z.ZodNumber;
193
+ snippetMaskAvatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
194
+ snippetMaskPoster: z.ZodOptional<z.ZodNullable<z.ZodString>>;
195
+ systemMessage: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnknown]>>>;
196
+ toEmails: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
197
+ isArchived: z.ZodBoolean;
198
+ isSaved: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
199
+ inInbox: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
200
+ lastComment: z.ZodOptional<z.ZodNullable<z.ZodObject<{
201
+ id: z.ZodString;
202
+ content: z.ZodString;
203
+ creator: z.ZodNumber;
204
+ creatorName: z.ZodString;
205
+ threadId: z.ZodString;
206
+ channelId: z.ZodString;
207
+ posted: z.ZodDate;
208
+ systemMessage: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnknown]>>>;
209
+ attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
210
+ attachmentId: z.ZodString;
211
+ urlType: z.ZodString;
212
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
213
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
214
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
215
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
216
+ underlyingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
217
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
218
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
219
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
220
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
221
+ duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
222
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
223
+ video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
224
+ videoType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
225
+ videoAutoPlay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
226
+ }, z.core.$loose>>>>;
227
+ reactions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodNumber>>>>;
228
+ actions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
229
+ objIndex: z.ZodNumber;
230
+ lastEdited: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
231
+ deleted: z.ZodBoolean;
232
+ deletedBy: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
233
+ directGroupMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
234
+ directMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
235
+ groups: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
236
+ recipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
237
+ toEmails: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
238
+ version: z.ZodNumber;
239
+ workspaceId: z.ZodNumber;
240
+ }, z.core.$strip>>>;
241
+ }, z.core.$strip>, z.ZodTransform<{
242
+ url: string;
243
+ id: string;
244
+ title: string;
245
+ content: string;
246
+ creator: number;
247
+ channelId: string;
248
+ workspaceId: number;
249
+ commentCount: number;
250
+ lastUpdated: Date;
251
+ posted: Date;
252
+ snippet: string;
253
+ snippetCreator: number;
254
+ isArchived: boolean;
255
+ creatorName?: string | null | undefined;
256
+ actions?: unknown[] | null | undefined;
257
+ attachments?: {
258
+ [x: string]: unknown;
259
+ attachmentId: string;
260
+ urlType: string;
261
+ title?: string | null | undefined;
262
+ url?: string | null | undefined;
263
+ fileName?: string | null | undefined;
264
+ fileSize?: number | null | undefined;
265
+ underlyingType?: string | null | undefined;
266
+ description?: string | null | undefined;
267
+ image?: string | null | undefined;
268
+ imageWidth?: number | null | undefined;
269
+ imageHeight?: number | null | undefined;
270
+ duration?: string | null | undefined;
271
+ uploadState?: string | null | undefined;
272
+ video?: string | null | undefined;
273
+ videoType?: string | null | undefined;
274
+ videoAutoPlay?: boolean | null | undefined;
275
+ }[] | null | undefined;
276
+ closed?: boolean | null | undefined;
277
+ directGroupMentions?: string[] | null | undefined;
278
+ directMentions?: number[] | null | undefined;
279
+ groups?: string[] | null | undefined;
280
+ lastEdited?: Date | null | undefined;
281
+ lastObjIndex?: number | null | undefined;
282
+ mutedUntil?: Date | null | undefined;
283
+ participants?: number[] | null | undefined;
284
+ pinned?: boolean | undefined;
285
+ pinnedTs?: number | null | undefined;
286
+ reactions?: Record<string, unknown> | null | undefined;
287
+ recipients?: number[] | null | undefined;
288
+ responders?: number[] | null | undefined;
289
+ snippetMaskAvatarUrl?: string | null | undefined;
290
+ snippetMaskPoster?: string | null | undefined;
291
+ systemMessage?: unknown;
292
+ toEmails?: string[] | null | undefined;
293
+ isSaved?: boolean | null | undefined;
294
+ inInbox?: boolean | null | undefined;
295
+ lastComment?: {
296
+ id: string;
297
+ content: string;
298
+ creator: number;
299
+ creatorName: string;
300
+ threadId: string;
301
+ channelId: string;
302
+ posted: Date;
303
+ objIndex: number;
304
+ deleted: boolean;
305
+ version: number;
306
+ workspaceId: number;
307
+ systemMessage?: unknown;
308
+ attachments?: {
309
+ [x: string]: unknown;
310
+ attachmentId: string;
311
+ urlType: string;
312
+ title?: string | null | undefined;
313
+ url?: string | null | undefined;
314
+ fileName?: string | null | undefined;
315
+ fileSize?: number | null | undefined;
316
+ underlyingType?: string | null | undefined;
317
+ description?: string | null | undefined;
318
+ image?: string | null | undefined;
319
+ imageWidth?: number | null | undefined;
320
+ imageHeight?: number | null | undefined;
321
+ duration?: string | null | undefined;
322
+ uploadState?: string | null | undefined;
323
+ video?: string | null | undefined;
324
+ videoType?: string | null | undefined;
325
+ videoAutoPlay?: boolean | null | undefined;
326
+ }[] | null | undefined;
327
+ reactions?: Record<string, number[]> | null | undefined;
328
+ actions?: unknown[] | null | undefined;
329
+ lastEdited?: Date | null | undefined;
330
+ deletedBy?: number | null | undefined;
331
+ directGroupMentions?: string[] | null | undefined;
332
+ directMentions?: number[] | null | undefined;
333
+ groups?: string[] | null | undefined;
334
+ recipients?: number[] | null | undefined;
335
+ toEmails?: string[] | null | undefined;
336
+ } | null | undefined;
337
+ }, {
338
+ id: string;
339
+ title: string;
340
+ content: string;
341
+ creator: number;
342
+ channelId: string;
343
+ workspaceId: number;
344
+ commentCount: number;
345
+ lastUpdated: Date;
346
+ posted: Date;
347
+ snippet: string;
348
+ snippetCreator: number;
349
+ isArchived: boolean;
350
+ creatorName?: string | null | undefined;
351
+ actions?: unknown[] | null | undefined;
352
+ attachments?: {
353
+ [x: string]: unknown;
354
+ attachmentId: string;
355
+ urlType: string;
356
+ title?: string | null | undefined;
357
+ url?: string | null | undefined;
358
+ fileName?: string | null | undefined;
359
+ fileSize?: number | null | undefined;
360
+ underlyingType?: string | null | undefined;
361
+ description?: string | null | undefined;
362
+ image?: string | null | undefined;
363
+ imageWidth?: number | null | undefined;
364
+ imageHeight?: number | null | undefined;
365
+ duration?: string | null | undefined;
366
+ uploadState?: string | null | undefined;
367
+ video?: string | null | undefined;
368
+ videoType?: string | null | undefined;
369
+ videoAutoPlay?: boolean | null | undefined;
370
+ }[] | null | undefined;
371
+ closed?: boolean | null | undefined;
372
+ directGroupMentions?: string[] | null | undefined;
373
+ directMentions?: number[] | null | undefined;
374
+ groups?: string[] | null | undefined;
375
+ lastEdited?: Date | null | undefined;
376
+ lastObjIndex?: number | null | undefined;
377
+ mutedUntil?: Date | null | undefined;
378
+ participants?: number[] | null | undefined;
379
+ pinned?: boolean | undefined;
380
+ pinnedTs?: number | null | undefined;
381
+ reactions?: Record<string, unknown> | null | undefined;
382
+ recipients?: number[] | null | undefined;
383
+ responders?: number[] | null | undefined;
384
+ snippetMaskAvatarUrl?: string | null | undefined;
385
+ snippetMaskPoster?: string | null | undefined;
386
+ systemMessage?: unknown;
387
+ toEmails?: string[] | null | undefined;
388
+ isSaved?: boolean | null | undefined;
389
+ inInbox?: boolean | null | undefined;
390
+ lastComment?: {
391
+ id: string;
392
+ content: string;
393
+ creator: number;
394
+ creatorName: string;
395
+ threadId: string;
396
+ channelId: string;
397
+ posted: Date;
398
+ objIndex: number;
399
+ deleted: boolean;
400
+ version: number;
401
+ workspaceId: number;
402
+ systemMessage?: unknown;
403
+ attachments?: {
404
+ [x: string]: unknown;
405
+ attachmentId: string;
406
+ urlType: string;
407
+ title?: string | null | undefined;
408
+ url?: string | null | undefined;
409
+ fileName?: string | null | undefined;
410
+ fileSize?: number | null | undefined;
411
+ underlyingType?: string | null | undefined;
412
+ description?: string | null | undefined;
413
+ image?: string | null | undefined;
414
+ imageWidth?: number | null | undefined;
415
+ imageHeight?: number | null | undefined;
416
+ duration?: string | null | undefined;
417
+ uploadState?: string | null | undefined;
418
+ video?: string | null | undefined;
419
+ videoType?: string | null | undefined;
420
+ videoAutoPlay?: boolean | null | undefined;
421
+ }[] | null | undefined;
422
+ reactions?: Record<string, number[]> | null | undefined;
423
+ actions?: unknown[] | null | undefined;
424
+ lastEdited?: Date | null | undefined;
425
+ deletedBy?: number | null | undefined;
426
+ directGroupMentions?: string[] | null | undefined;
427
+ directMentions?: number[] | null | undefined;
428
+ groups?: string[] | null | undefined;
429
+ recipients?: number[] | null | undefined;
430
+ toEmails?: string[] | null | undefined;
431
+ } | null | undefined;
432
+ }>>;
433
+ export type Thread = z.infer<typeof ThreadSchema>;
434
+ export declare const GroupSchema: z.ZodObject<{
435
+ id: z.ZodString;
436
+ name: z.ZodString;
437
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
438
+ workspaceId: z.ZodNumber;
439
+ userIds: z.ZodArray<z.ZodNumber>;
440
+ version: z.ZodNumber;
441
+ }, z.core.$strip>;
442
+ export type Group = z.infer<typeof GroupSchema>;
443
+ export declare const ConversationSchema: z.ZodPipe<z.ZodObject<{
444
+ id: z.ZodString;
445
+ workspaceId: z.ZodNumber;
446
+ userIds: z.ZodArray<z.ZodNumber>;
447
+ messageCount: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
448
+ lastObjIndex: z.ZodNumber;
449
+ snippet: z.ZodString;
450
+ snippetCreators: z.ZodArray<z.ZodNumber>;
451
+ lastActive: z.ZodDate;
452
+ mutedUntil: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
453
+ archived: z.ZodBoolean;
454
+ created: z.ZodDate;
455
+ creator: z.ZodNumber;
456
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
457
+ private: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
458
+ lastMessage: z.ZodOptional<z.ZodNullable<z.ZodObject<{
459
+ id: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<string, string | number>>;
460
+ content: z.ZodString;
461
+ creator: z.ZodNumber;
462
+ conversationId: z.ZodString;
463
+ posted: z.ZodDate;
464
+ systemMessage: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnknown]>>>;
465
+ attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
466
+ attachmentId: z.ZodString;
467
+ urlType: z.ZodString;
468
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
469
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
470
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
471
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
472
+ underlyingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
473
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
474
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
475
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
476
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
477
+ duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
478
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
479
+ video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
480
+ videoType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
481
+ videoAutoPlay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
482
+ }, z.core.$loose>>>>;
483
+ reactions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodNumber>>>>;
484
+ actions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
485
+ objIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
486
+ lastEdited: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
487
+ deleted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
488
+ directGroupMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
489
+ directMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
490
+ version: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
491
+ workspaceId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
492
+ }, z.core.$strip>>>;
493
+ }, z.core.$strip>, z.ZodTransform<{
494
+ url: string;
495
+ id: string;
496
+ workspaceId: number;
497
+ userIds: number[];
498
+ lastObjIndex: number;
499
+ snippet: string;
500
+ snippetCreators: number[];
501
+ lastActive: Date;
502
+ archived: boolean;
503
+ created: Date;
504
+ creator: number;
505
+ messageCount?: number | null | undefined;
506
+ mutedUntil?: Date | null | undefined;
507
+ title?: string | null | undefined;
508
+ private?: boolean | null | undefined;
509
+ lastMessage?: {
510
+ id: string;
511
+ content: string;
512
+ creator: number;
513
+ conversationId: string;
514
+ posted: Date;
515
+ systemMessage?: unknown;
516
+ attachments?: {
517
+ [x: string]: unknown;
518
+ attachmentId: string;
519
+ urlType: string;
520
+ title?: string | null | undefined;
521
+ url?: string | null | undefined;
522
+ fileName?: string | null | undefined;
523
+ fileSize?: number | null | undefined;
524
+ underlyingType?: string | null | undefined;
525
+ description?: string | null | undefined;
526
+ image?: string | null | undefined;
527
+ imageWidth?: number | null | undefined;
528
+ imageHeight?: number | null | undefined;
529
+ duration?: string | null | undefined;
530
+ uploadState?: string | null | undefined;
531
+ video?: string | null | undefined;
532
+ videoType?: string | null | undefined;
533
+ videoAutoPlay?: boolean | null | undefined;
534
+ }[] | null | undefined;
535
+ reactions?: Record<string, number[]> | null | undefined;
536
+ actions?: unknown[] | null | undefined;
537
+ objIndex?: number | null | undefined;
538
+ lastEdited?: Date | null | undefined;
539
+ deleted?: boolean | null | undefined;
540
+ directGroupMentions?: string[] | null | undefined;
541
+ directMentions?: number[] | null | undefined;
542
+ version?: number | null | undefined;
543
+ workspaceId?: number | null | undefined;
544
+ } | null | undefined;
545
+ }, {
546
+ id: string;
547
+ workspaceId: number;
548
+ userIds: number[];
549
+ lastObjIndex: number;
550
+ snippet: string;
551
+ snippetCreators: number[];
552
+ lastActive: Date;
553
+ archived: boolean;
554
+ created: Date;
555
+ creator: number;
556
+ messageCount?: number | null | undefined;
557
+ mutedUntil?: Date | null | undefined;
558
+ title?: string | null | undefined;
559
+ private?: boolean | null | undefined;
560
+ lastMessage?: {
561
+ id: string;
562
+ content: string;
563
+ creator: number;
564
+ conversationId: string;
565
+ posted: Date;
566
+ systemMessage?: unknown;
567
+ attachments?: {
568
+ [x: string]: unknown;
569
+ attachmentId: string;
570
+ urlType: string;
571
+ title?: string | null | undefined;
572
+ url?: string | null | undefined;
573
+ fileName?: string | null | undefined;
574
+ fileSize?: number | null | undefined;
575
+ underlyingType?: string | null | undefined;
576
+ description?: string | null | undefined;
577
+ image?: string | null | undefined;
578
+ imageWidth?: number | null | undefined;
579
+ imageHeight?: number | null | undefined;
580
+ duration?: string | null | undefined;
581
+ uploadState?: string | null | undefined;
582
+ video?: string | null | undefined;
583
+ videoType?: string | null | undefined;
584
+ videoAutoPlay?: boolean | null | undefined;
585
+ }[] | null | undefined;
586
+ reactions?: Record<string, number[]> | null | undefined;
587
+ actions?: unknown[] | null | undefined;
588
+ objIndex?: number | null | undefined;
589
+ lastEdited?: Date | null | undefined;
590
+ deleted?: boolean | null | undefined;
591
+ directGroupMentions?: string[] | null | undefined;
592
+ directMentions?: number[] | null | undefined;
593
+ version?: number | null | undefined;
594
+ workspaceId?: number | null | undefined;
595
+ } | null | undefined;
596
+ }>>;
597
+ export type Conversation = z.infer<typeof ConversationSchema>;
598
+ export declare const CommentSchema: z.ZodPipe<z.ZodObject<{
599
+ id: z.ZodString;
600
+ content: z.ZodString;
601
+ creator: z.ZodNumber;
602
+ threadId: z.ZodString;
603
+ workspaceId: z.ZodNumber;
604
+ conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
605
+ posted: z.ZodDate;
606
+ lastEdited: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
607
+ directMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
608
+ directGroupMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
609
+ systemMessage: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnknown]>>>;
610
+ attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
611
+ attachmentId: z.ZodString;
612
+ urlType: z.ZodString;
613
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
614
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
615
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
616
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
617
+ underlyingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
618
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
619
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
620
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
621
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
622
+ duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
623
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
624
+ video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
625
+ videoType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
626
+ videoAutoPlay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
627
+ }, z.core.$loose>>>>;
628
+ reactions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
629
+ objIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
630
+ creatorName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
631
+ channelId: z.ZodString;
632
+ recipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
633
+ groups: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
634
+ toEmails: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
635
+ deleted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
636
+ deletedBy: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
637
+ version: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
638
+ actions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
639
+ }, z.core.$strip>, z.ZodTransform<{
640
+ url: string;
641
+ id: string;
642
+ content: string;
643
+ creator: number;
644
+ threadId: string;
645
+ workspaceId: number;
646
+ posted: Date;
647
+ channelId: string;
648
+ conversationId?: string | null | undefined;
649
+ lastEdited?: Date | null | undefined;
650
+ directMentions?: number[] | null | undefined;
651
+ directGroupMentions?: string[] | null | undefined;
652
+ systemMessage?: unknown;
653
+ attachments?: {
654
+ [x: string]: unknown;
655
+ attachmentId: string;
656
+ urlType: string;
657
+ title?: string | null | undefined;
658
+ url?: string | null | undefined;
659
+ fileName?: string | null | undefined;
660
+ fileSize?: number | null | undefined;
661
+ underlyingType?: string | null | undefined;
662
+ description?: string | null | undefined;
663
+ image?: string | null | undefined;
664
+ imageWidth?: number | null | undefined;
665
+ imageHeight?: number | null | undefined;
666
+ duration?: string | null | undefined;
667
+ uploadState?: string | null | undefined;
668
+ video?: string | null | undefined;
669
+ videoType?: string | null | undefined;
670
+ videoAutoPlay?: boolean | null | undefined;
671
+ }[] | null | undefined;
672
+ reactions?: Record<string, unknown> | null | undefined;
673
+ objIndex?: number | null | undefined;
674
+ creatorName?: string | null | undefined;
675
+ recipients?: number[] | null | undefined;
676
+ groups?: string[] | null | undefined;
677
+ toEmails?: string[] | null | undefined;
678
+ deleted?: boolean | null | undefined;
679
+ deletedBy?: number | null | undefined;
680
+ version?: number | null | undefined;
681
+ actions?: unknown[] | null | undefined;
682
+ }, {
683
+ id: string;
684
+ content: string;
685
+ creator: number;
686
+ threadId: string;
687
+ workspaceId: number;
688
+ posted: Date;
689
+ channelId: string;
690
+ conversationId?: string | null | undefined;
691
+ lastEdited?: Date | null | undefined;
692
+ directMentions?: number[] | null | undefined;
693
+ directGroupMentions?: string[] | null | undefined;
694
+ systemMessage?: unknown;
695
+ attachments?: {
696
+ [x: string]: unknown;
697
+ attachmentId: string;
698
+ urlType: string;
699
+ title?: string | null | undefined;
700
+ url?: string | null | undefined;
701
+ fileName?: string | null | undefined;
702
+ fileSize?: number | null | undefined;
703
+ underlyingType?: string | null | undefined;
704
+ description?: string | null | undefined;
705
+ image?: string | null | undefined;
706
+ imageWidth?: number | null | undefined;
707
+ imageHeight?: number | null | undefined;
708
+ duration?: string | null | undefined;
709
+ uploadState?: string | null | undefined;
710
+ video?: string | null | undefined;
711
+ videoType?: string | null | undefined;
712
+ videoAutoPlay?: boolean | null | undefined;
713
+ }[] | null | undefined;
714
+ reactions?: Record<string, unknown> | null | undefined;
715
+ objIndex?: number | null | undefined;
716
+ creatorName?: string | null | undefined;
717
+ recipients?: number[] | null | undefined;
718
+ groups?: string[] | null | undefined;
719
+ toEmails?: string[] | null | undefined;
720
+ deleted?: boolean | null | undefined;
721
+ deletedBy?: number | null | undefined;
722
+ version?: number | null | undefined;
723
+ actions?: unknown[] | null | undefined;
724
+ }>>;
725
+ export type Comment = z.infer<typeof CommentSchema>;
726
+ export declare const WorkspaceUserSchema: z.ZodObject<{
727
+ id: z.ZodNumber;
728
+ fullName: z.ZodString;
729
+ shortName: z.ZodString;
730
+ firstName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
731
+ timezone: z.ZodString;
732
+ removed: z.ZodBoolean;
733
+ imageId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
734
+ avatarUrls: z.ZodOptional<z.ZodNullable<z.ZodObject<{
735
+ s35: z.ZodString;
736
+ s60: z.ZodString;
737
+ s195: z.ZodString;
738
+ s640: z.ZodString;
739
+ }, z.core.$strip>>>;
740
+ restricted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
741
+ setupPending: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
742
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
743
+ userType: z.ZodEnum<{
744
+ USER: "USER";
745
+ GUEST: "GUEST";
746
+ ADMIN: "ADMIN";
747
+ }>;
748
+ dateFormat: z.ZodOptional<z.ZodNullable<z.ZodString>>;
749
+ theme: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
750
+ timeFormat: z.ZodOptional<z.ZodNullable<z.ZodString>>;
751
+ version: z.ZodNumber;
752
+ }, z.core.$strip>;
753
+ export type WorkspaceUser = z.infer<typeof WorkspaceUserSchema>;
754
+ export declare const ConversationMessageSchema: z.ZodPipe<z.ZodObject<{
755
+ id: z.ZodPipe<z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodTransform<string, string | number>>;
756
+ content: z.ZodString;
757
+ creator: z.ZodNumber;
758
+ conversationId: z.ZodString;
759
+ posted: z.ZodDate;
760
+ systemMessage: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnknown]>>>;
761
+ attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
762
+ attachmentId: z.ZodString;
763
+ urlType: z.ZodString;
764
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
765
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
766
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
767
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
768
+ underlyingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
769
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
770
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
771
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
772
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
773
+ duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
774
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
775
+ video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
776
+ videoType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
777
+ videoAutoPlay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
778
+ }, z.core.$loose>>>>;
779
+ reactions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodNumber>>>>;
780
+ actions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
781
+ objIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
782
+ lastEdited: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
783
+ isDeleted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
784
+ directGroupMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
785
+ directMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
786
+ version: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
787
+ workspaceId: z.ZodNumber;
788
+ }, z.core.$strip>, z.ZodTransform<{
789
+ url: string;
790
+ id: string;
791
+ content: string;
792
+ creator: number;
793
+ conversationId: string;
794
+ posted: Date;
795
+ workspaceId: number;
796
+ systemMessage?: unknown;
797
+ attachments?: {
798
+ [x: string]: unknown;
799
+ attachmentId: string;
800
+ urlType: string;
801
+ title?: string | null | undefined;
802
+ url?: string | null | undefined;
803
+ fileName?: string | null | undefined;
804
+ fileSize?: number | null | undefined;
805
+ underlyingType?: string | null | undefined;
806
+ description?: string | null | undefined;
807
+ image?: string | null | undefined;
808
+ imageWidth?: number | null | undefined;
809
+ imageHeight?: number | null | undefined;
810
+ duration?: string | null | undefined;
811
+ uploadState?: string | null | undefined;
812
+ video?: string | null | undefined;
813
+ videoType?: string | null | undefined;
814
+ videoAutoPlay?: boolean | null | undefined;
815
+ }[] | null | undefined;
816
+ reactions?: Record<string, number[]> | null | undefined;
817
+ actions?: unknown[] | null | undefined;
818
+ objIndex?: number | null | undefined;
819
+ lastEdited?: Date | null | undefined;
820
+ isDeleted?: boolean | null | undefined;
821
+ directGroupMentions?: string[] | null | undefined;
822
+ directMentions?: number[] | null | undefined;
823
+ version?: number | null | undefined;
824
+ }, {
825
+ id: string;
826
+ content: string;
827
+ creator: number;
828
+ conversationId: string;
829
+ posted: Date;
830
+ workspaceId: number;
831
+ systemMessage?: unknown;
832
+ attachments?: {
833
+ [x: string]: unknown;
834
+ attachmentId: string;
835
+ urlType: string;
836
+ title?: string | null | undefined;
837
+ url?: string | null | undefined;
838
+ fileName?: string | null | undefined;
839
+ fileSize?: number | null | undefined;
840
+ underlyingType?: string | null | undefined;
841
+ description?: string | null | undefined;
842
+ image?: string | null | undefined;
843
+ imageWidth?: number | null | undefined;
844
+ imageHeight?: number | null | undefined;
845
+ duration?: string | null | undefined;
846
+ uploadState?: string | null | undefined;
847
+ video?: string | null | undefined;
848
+ videoType?: string | null | undefined;
849
+ videoAutoPlay?: boolean | null | undefined;
850
+ }[] | null | undefined;
851
+ reactions?: Record<string, number[]> | null | undefined;
852
+ actions?: unknown[] | null | undefined;
853
+ objIndex?: number | null | undefined;
854
+ lastEdited?: Date | null | undefined;
855
+ isDeleted?: boolean | null | undefined;
856
+ directGroupMentions?: string[] | null | undefined;
857
+ directMentions?: number[] | null | undefined;
858
+ version?: number | null | undefined;
859
+ }>>;
860
+ export type ConversationMessage = z.infer<typeof ConversationMessageSchema>;
861
+ export declare const InboxThreadSchema: z.ZodPipe<z.ZodObject<{
862
+ id: z.ZodString;
863
+ title: z.ZodString;
864
+ content: z.ZodString;
865
+ creator: z.ZodNumber;
866
+ creatorName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
867
+ channelId: z.ZodString;
868
+ workspaceId: z.ZodNumber;
869
+ actions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
870
+ attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
871
+ attachmentId: z.ZodString;
872
+ urlType: z.ZodString;
873
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
874
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
875
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
876
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
877
+ underlyingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
878
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
879
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
880
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
881
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
882
+ duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
883
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
884
+ video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
885
+ videoType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
886
+ videoAutoPlay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
887
+ }, z.core.$loose>>>>;
888
+ commentCount: z.ZodNumber;
889
+ directGroupMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
890
+ directMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
891
+ groups: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
892
+ lastEdited: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
893
+ lastObjIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
894
+ lastUpdated: z.ZodDate;
895
+ mutedUntil: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
896
+ participants: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
897
+ pinned: z.ZodOptional<z.ZodBoolean>;
898
+ pinnedTs: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
899
+ posted: z.ZodDate;
900
+ reactions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodNumber>>>>;
901
+ recipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
902
+ snippet: z.ZodString;
903
+ snippetCreator: z.ZodNumber;
904
+ snippetMaskAvatarUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
905
+ snippetMaskPoster: z.ZodOptional<z.ZodNullable<z.ZodString>>;
906
+ systemMessage: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnknown]>>>;
907
+ isArchived: z.ZodBoolean;
908
+ inInbox: z.ZodBoolean;
909
+ isSaved: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
910
+ closed: z.ZodBoolean;
911
+ responders: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
912
+ lastComment: z.ZodOptional<z.ZodNullable<z.ZodPipe<z.ZodObject<{
913
+ id: z.ZodString;
914
+ content: z.ZodString;
915
+ creator: z.ZodNumber;
916
+ threadId: z.ZodString;
917
+ workspaceId: z.ZodNumber;
918
+ conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
919
+ posted: z.ZodDate;
920
+ lastEdited: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
921
+ directMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
922
+ directGroupMentions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
923
+ systemMessage: z.ZodOptional<z.ZodNullable<z.ZodUnion<readonly [z.ZodString, z.ZodUnknown]>>>;
924
+ attachments: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodObject<{
925
+ attachmentId: z.ZodString;
926
+ urlType: z.ZodString;
927
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
928
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
929
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
930
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
931
+ underlyingType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
932
+ description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
933
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
934
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
935
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
936
+ duration: z.ZodOptional<z.ZodNullable<z.ZodString>>;
937
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodString>>;
938
+ video: z.ZodOptional<z.ZodNullable<z.ZodString>>;
939
+ videoType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
940
+ videoAutoPlay: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
941
+ }, z.core.$loose>>>>;
942
+ reactions: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
943
+ objIndex: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
944
+ creatorName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
945
+ channelId: z.ZodString;
946
+ recipients: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
947
+ groups: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
948
+ toEmails: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
949
+ deleted: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
950
+ deletedBy: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
951
+ version: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
952
+ actions: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodUnknown>>>;
953
+ }, z.core.$strip>, z.ZodTransform<{
954
+ url: string;
955
+ id: string;
956
+ content: string;
957
+ creator: number;
958
+ threadId: string;
959
+ workspaceId: number;
960
+ posted: Date;
961
+ channelId: string;
962
+ conversationId?: string | null | undefined;
963
+ lastEdited?: Date | null | undefined;
964
+ directMentions?: number[] | null | undefined;
965
+ directGroupMentions?: string[] | null | undefined;
966
+ systemMessage?: unknown;
967
+ attachments?: {
968
+ [x: string]: unknown;
969
+ attachmentId: string;
970
+ urlType: string;
971
+ title?: string | null | undefined;
972
+ url?: string | null | undefined;
973
+ fileName?: string | null | undefined;
974
+ fileSize?: number | null | undefined;
975
+ underlyingType?: string | null | undefined;
976
+ description?: string | null | undefined;
977
+ image?: string | null | undefined;
978
+ imageWidth?: number | null | undefined;
979
+ imageHeight?: number | null | undefined;
980
+ duration?: string | null | undefined;
981
+ uploadState?: string | null | undefined;
982
+ video?: string | null | undefined;
983
+ videoType?: string | null | undefined;
984
+ videoAutoPlay?: boolean | null | undefined;
985
+ }[] | null | undefined;
986
+ reactions?: Record<string, unknown> | null | undefined;
987
+ objIndex?: number | null | undefined;
988
+ creatorName?: string | null | undefined;
989
+ recipients?: number[] | null | undefined;
990
+ groups?: string[] | null | undefined;
991
+ toEmails?: string[] | null | undefined;
992
+ deleted?: boolean | null | undefined;
993
+ deletedBy?: number | null | undefined;
994
+ version?: number | null | undefined;
995
+ actions?: unknown[] | null | undefined;
996
+ }, {
997
+ id: string;
998
+ content: string;
999
+ creator: number;
1000
+ threadId: string;
1001
+ workspaceId: number;
1002
+ posted: Date;
1003
+ channelId: string;
1004
+ conversationId?: string | null | undefined;
1005
+ lastEdited?: Date | null | undefined;
1006
+ directMentions?: number[] | null | undefined;
1007
+ directGroupMentions?: string[] | null | undefined;
1008
+ systemMessage?: unknown;
1009
+ attachments?: {
1010
+ [x: string]: unknown;
1011
+ attachmentId: string;
1012
+ urlType: string;
1013
+ title?: string | null | undefined;
1014
+ url?: string | null | undefined;
1015
+ fileName?: string | null | undefined;
1016
+ fileSize?: number | null | undefined;
1017
+ underlyingType?: string | null | undefined;
1018
+ description?: string | null | undefined;
1019
+ image?: string | null | undefined;
1020
+ imageWidth?: number | null | undefined;
1021
+ imageHeight?: number | null | undefined;
1022
+ duration?: string | null | undefined;
1023
+ uploadState?: string | null | undefined;
1024
+ video?: string | null | undefined;
1025
+ videoType?: string | null | undefined;
1026
+ videoAutoPlay?: boolean | null | undefined;
1027
+ }[] | null | undefined;
1028
+ reactions?: Record<string, unknown> | null | undefined;
1029
+ objIndex?: number | null | undefined;
1030
+ creatorName?: string | null | undefined;
1031
+ recipients?: number[] | null | undefined;
1032
+ groups?: string[] | null | undefined;
1033
+ toEmails?: string[] | null | undefined;
1034
+ deleted?: boolean | null | undefined;
1035
+ deletedBy?: number | null | undefined;
1036
+ version?: number | null | undefined;
1037
+ actions?: unknown[] | null | undefined;
1038
+ }>>>>;
1039
+ toEmails: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString>>>;
1040
+ version: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1041
+ }, z.core.$strip>, z.ZodTransform<{
1042
+ url: string;
1043
+ id: string;
1044
+ title: string;
1045
+ content: string;
1046
+ creator: number;
1047
+ channelId: string;
1048
+ workspaceId: number;
1049
+ commentCount: number;
1050
+ lastUpdated: Date;
1051
+ posted: Date;
1052
+ snippet: string;
1053
+ snippetCreator: number;
1054
+ isArchived: boolean;
1055
+ inInbox: boolean;
1056
+ closed: boolean;
1057
+ creatorName?: string | null | undefined;
1058
+ actions?: unknown[] | null | undefined;
1059
+ attachments?: {
1060
+ [x: string]: unknown;
1061
+ attachmentId: string;
1062
+ urlType: string;
1063
+ title?: string | null | undefined;
1064
+ url?: string | null | undefined;
1065
+ fileName?: string | null | undefined;
1066
+ fileSize?: number | null | undefined;
1067
+ underlyingType?: string | null | undefined;
1068
+ description?: string | null | undefined;
1069
+ image?: string | null | undefined;
1070
+ imageWidth?: number | null | undefined;
1071
+ imageHeight?: number | null | undefined;
1072
+ duration?: string | null | undefined;
1073
+ uploadState?: string | null | undefined;
1074
+ video?: string | null | undefined;
1075
+ videoType?: string | null | undefined;
1076
+ videoAutoPlay?: boolean | null | undefined;
1077
+ }[] | null | undefined;
1078
+ directGroupMentions?: string[] | null | undefined;
1079
+ directMentions?: number[] | null | undefined;
1080
+ groups?: string[] | null | undefined;
1081
+ lastEdited?: Date | null | undefined;
1082
+ lastObjIndex?: number | null | undefined;
1083
+ mutedUntil?: Date | null | undefined;
1084
+ participants?: number[] | null | undefined;
1085
+ pinned?: boolean | undefined;
1086
+ pinnedTs?: number | null | undefined;
1087
+ reactions?: Record<string, number[]> | null | undefined;
1088
+ recipients?: number[] | null | undefined;
1089
+ snippetMaskAvatarUrl?: string | null | undefined;
1090
+ snippetMaskPoster?: string | null | undefined;
1091
+ systemMessage?: unknown;
1092
+ isSaved?: boolean | null | undefined;
1093
+ responders?: number[] | null | undefined;
1094
+ lastComment?: {
1095
+ url: string;
1096
+ id: string;
1097
+ content: string;
1098
+ creator: number;
1099
+ threadId: string;
1100
+ workspaceId: number;
1101
+ posted: Date;
1102
+ channelId: string;
1103
+ conversationId?: string | null | undefined;
1104
+ lastEdited?: Date | null | undefined;
1105
+ directMentions?: number[] | null | undefined;
1106
+ directGroupMentions?: string[] | null | undefined;
1107
+ systemMessage?: unknown;
1108
+ attachments?: {
1109
+ [x: string]: unknown;
1110
+ attachmentId: string;
1111
+ urlType: string;
1112
+ title?: string | null | undefined;
1113
+ url?: string | null | undefined;
1114
+ fileName?: string | null | undefined;
1115
+ fileSize?: number | null | undefined;
1116
+ underlyingType?: string | null | undefined;
1117
+ description?: string | null | undefined;
1118
+ image?: string | null | undefined;
1119
+ imageWidth?: number | null | undefined;
1120
+ imageHeight?: number | null | undefined;
1121
+ duration?: string | null | undefined;
1122
+ uploadState?: string | null | undefined;
1123
+ video?: string | null | undefined;
1124
+ videoType?: string | null | undefined;
1125
+ videoAutoPlay?: boolean | null | undefined;
1126
+ }[] | null | undefined;
1127
+ reactions?: Record<string, unknown> | null | undefined;
1128
+ objIndex?: number | null | undefined;
1129
+ creatorName?: string | null | undefined;
1130
+ recipients?: number[] | null | undefined;
1131
+ groups?: string[] | null | undefined;
1132
+ toEmails?: string[] | null | undefined;
1133
+ deleted?: boolean | null | undefined;
1134
+ deletedBy?: number | null | undefined;
1135
+ version?: number | null | undefined;
1136
+ actions?: unknown[] | null | undefined;
1137
+ } | null | undefined;
1138
+ toEmails?: string[] | null | undefined;
1139
+ version?: number | null | undefined;
1140
+ }, {
1141
+ id: string;
1142
+ title: string;
1143
+ content: string;
1144
+ creator: number;
1145
+ channelId: string;
1146
+ workspaceId: number;
1147
+ commentCount: number;
1148
+ lastUpdated: Date;
1149
+ posted: Date;
1150
+ snippet: string;
1151
+ snippetCreator: number;
1152
+ isArchived: boolean;
1153
+ inInbox: boolean;
1154
+ closed: boolean;
1155
+ creatorName?: string | null | undefined;
1156
+ actions?: unknown[] | null | undefined;
1157
+ attachments?: {
1158
+ [x: string]: unknown;
1159
+ attachmentId: string;
1160
+ urlType: string;
1161
+ title?: string | null | undefined;
1162
+ url?: string | null | undefined;
1163
+ fileName?: string | null | undefined;
1164
+ fileSize?: number | null | undefined;
1165
+ underlyingType?: string | null | undefined;
1166
+ description?: string | null | undefined;
1167
+ image?: string | null | undefined;
1168
+ imageWidth?: number | null | undefined;
1169
+ imageHeight?: number | null | undefined;
1170
+ duration?: string | null | undefined;
1171
+ uploadState?: string | null | undefined;
1172
+ video?: string | null | undefined;
1173
+ videoType?: string | null | undefined;
1174
+ videoAutoPlay?: boolean | null | undefined;
1175
+ }[] | null | undefined;
1176
+ directGroupMentions?: string[] | null | undefined;
1177
+ directMentions?: number[] | null | undefined;
1178
+ groups?: string[] | null | undefined;
1179
+ lastEdited?: Date | null | undefined;
1180
+ lastObjIndex?: number | null | undefined;
1181
+ mutedUntil?: Date | null | undefined;
1182
+ participants?: number[] | null | undefined;
1183
+ pinned?: boolean | undefined;
1184
+ pinnedTs?: number | null | undefined;
1185
+ reactions?: Record<string, number[]> | null | undefined;
1186
+ recipients?: number[] | null | undefined;
1187
+ snippetMaskAvatarUrl?: string | null | undefined;
1188
+ snippetMaskPoster?: string | null | undefined;
1189
+ systemMessage?: unknown;
1190
+ isSaved?: boolean | null | undefined;
1191
+ responders?: number[] | null | undefined;
1192
+ lastComment?: {
1193
+ url: string;
1194
+ id: string;
1195
+ content: string;
1196
+ creator: number;
1197
+ threadId: string;
1198
+ workspaceId: number;
1199
+ posted: Date;
1200
+ channelId: string;
1201
+ conversationId?: string | null | undefined;
1202
+ lastEdited?: Date | null | undefined;
1203
+ directMentions?: number[] | null | undefined;
1204
+ directGroupMentions?: string[] | null | undefined;
1205
+ systemMessage?: unknown;
1206
+ attachments?: {
1207
+ [x: string]: unknown;
1208
+ attachmentId: string;
1209
+ urlType: string;
1210
+ title?: string | null | undefined;
1211
+ url?: string | null | undefined;
1212
+ fileName?: string | null | undefined;
1213
+ fileSize?: number | null | undefined;
1214
+ underlyingType?: string | null | undefined;
1215
+ description?: string | null | undefined;
1216
+ image?: string | null | undefined;
1217
+ imageWidth?: number | null | undefined;
1218
+ imageHeight?: number | null | undefined;
1219
+ duration?: string | null | undefined;
1220
+ uploadState?: string | null | undefined;
1221
+ video?: string | null | undefined;
1222
+ videoType?: string | null | undefined;
1223
+ videoAutoPlay?: boolean | null | undefined;
1224
+ }[] | null | undefined;
1225
+ reactions?: Record<string, unknown> | null | undefined;
1226
+ objIndex?: number | null | undefined;
1227
+ creatorName?: string | null | undefined;
1228
+ recipients?: number[] | null | undefined;
1229
+ groups?: string[] | null | undefined;
1230
+ toEmails?: string[] | null | undefined;
1231
+ deleted?: boolean | null | undefined;
1232
+ deletedBy?: number | null | undefined;
1233
+ version?: number | null | undefined;
1234
+ actions?: unknown[] | null | undefined;
1235
+ } | null | undefined;
1236
+ toEmails?: string[] | null | undefined;
1237
+ version?: number | null | undefined;
1238
+ }>>;
1239
+ export type InboxThread = z.infer<typeof InboxThreadSchema>;
1240
+ export declare const UnreadThreadSchema: z.ZodObject<{
1241
+ threadId: z.ZodString;
1242
+ channelId: z.ZodString;
1243
+ objIndex: z.ZodNumber;
1244
+ directMention: z.ZodBoolean;
1245
+ }, z.core.$strip>;
1246
+ export type UnreadThread = z.infer<typeof UnreadThreadSchema>;
1247
+ export declare const UnreadConversationSchema: z.ZodObject<{
1248
+ conversationId: z.ZodString;
1249
+ objIndex: z.ZodNumber;
1250
+ directMention: z.ZodBoolean;
1251
+ }, z.core.$strip>;
1252
+ export type UnreadConversation = z.infer<typeof UnreadConversationSchema>;
1253
+ export declare const SEARCH_RESULT_TYPES: readonly ["thread", "comment", "message", "conversation"];
1254
+ export type SearchResultType = (typeof SEARCH_RESULT_TYPES)[number];
1255
+ export declare const SearchResultSchema: z.ZodObject<{
1256
+ id: z.ZodString;
1257
+ type: z.ZodEnum<{
1258
+ thread: "thread";
1259
+ message: "message";
1260
+ comment: "comment";
1261
+ conversation: "conversation";
1262
+ }>;
1263
+ snippet: z.ZodString;
1264
+ snippetCreatorId: z.ZodNumber;
1265
+ snippetLastUpdated: z.ZodDate;
1266
+ threadId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1267
+ conversationId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1268
+ commentId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1269
+ channelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1270
+ channelName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1271
+ channelColor: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1272
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1273
+ closed: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1274
+ }, z.core.$strip>;
1275
+ export type SearchResult = z.infer<typeof SearchResultSchema>;
1276
+ export type SearchResponse = {
1277
+ items: SearchResult[];
1278
+ nextCursorMark?: string;
1279
+ hasMore: boolean;
1280
+ isPlanRestricted: boolean;
1281
+ };
1282
+ export type SearchThreadResponse = {
1283
+ commentIds: string[];
1284
+ };
1285
+ export type SearchConversationResponse = {
1286
+ messageIds: number[];
1287
+ };
1288
+ export type ReactionObject = Record<string, number[]> | null;