@doist/todoist-sdk 9.3.0 → 9.5.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 (31) hide show
  1. package/dist/cjs/test-utils/webhook-fixtures.js +32 -0
  2. package/dist/cjs/types/index.js +1 -0
  3. package/dist/cjs/types/webhooks/comments.js +96 -0
  4. package/dist/cjs/types/webhooks/envelope.js +26 -0
  5. package/dist/cjs/types/webhooks/index.js +21 -0
  6. package/dist/cjs/types/webhooks/labels.js +54 -0
  7. package/dist/cjs/types/webhooks/tasks.js +68 -0
  8. package/dist/cjs/types/webhooks/types.js +54 -0
  9. package/dist/cjs/utils/index.js +4 -1
  10. package/dist/cjs/utils/webhook-parser.js +60 -0
  11. package/dist/esm/test-utils/webhook-fixtures.js +26 -0
  12. package/dist/esm/types/index.js +1 -0
  13. package/dist/esm/types/webhooks/comments.js +93 -0
  14. package/dist/esm/types/webhooks/envelope.js +23 -0
  15. package/dist/esm/types/webhooks/index.js +5 -0
  16. package/dist/esm/types/webhooks/labels.js +51 -0
  17. package/dist/esm/types/webhooks/tasks.js +65 -0
  18. package/dist/esm/types/webhooks/types.js +51 -0
  19. package/dist/esm/utils/index.js +1 -0
  20. package/dist/esm/utils/webhook-parser.js +56 -0
  21. package/dist/types/test-utils/webhook-fixtures.d.ts +13 -0
  22. package/dist/types/types/index.d.ts +1 -0
  23. package/dist/types/types/webhooks/comments.d.ts +1600 -0
  24. package/dist/types/types/webhooks/envelope.d.ts +34 -0
  25. package/dist/types/types/webhooks/index.d.ts +5 -0
  26. package/dist/types/types/webhooks/labels.d.ts +160 -0
  27. package/dist/types/types/webhooks/tasks.d.ts +981 -0
  28. package/dist/types/types/webhooks/types.d.ts +1936 -0
  29. package/dist/types/utils/index.d.ts +2 -0
  30. package/dist/types/utils/webhook-parser.d.ts +48 -0
  31. package/package.json +1 -1
@@ -0,0 +1,1936 @@
1
+ import { z } from 'zod';
2
+ import { WebhookEventSchema, type WebhookEvent } from '../apps/types.js';
3
+ /**
4
+ * A single branch covering every event whose payload has not yet been typed
5
+ * per resource. Follow-up PRs will replace slices of this with dedicated
6
+ * variants (projects, sections, filters, reminders).
7
+ */
8
+ export declare const UntypedWebhookPayloadSchema: z.ZodObject<{
9
+ eventName: z.ZodEnum<{
10
+ "project:added": "project:added";
11
+ "project:updated": "project:updated";
12
+ "project:deleted": "project:deleted";
13
+ "project:archived": "project:archived";
14
+ "project:unarchived": "project:unarchived";
15
+ "section:added": "section:added";
16
+ "section:updated": "section:updated";
17
+ "section:deleted": "section:deleted";
18
+ "section:archived": "section:archived";
19
+ "section:unarchived": "section:unarchived";
20
+ "filter:added": "filter:added";
21
+ "filter:updated": "filter:updated";
22
+ "filter:deleted": "filter:deleted";
23
+ "reminder:fired": "reminder:fired";
24
+ }>;
25
+ eventData: z.ZodUnknown;
26
+ eventDataExtra: z.ZodOptional<z.ZodUnknown>;
27
+ version: z.ZodEnum<{
28
+ 1: "1";
29
+ }>;
30
+ userId: z.ZodString;
31
+ initiator: z.ZodObject<{
32
+ id: z.ZodString;
33
+ fullName: z.ZodString;
34
+ email: z.ZodString;
35
+ imageId: z.ZodNullable<z.ZodString>;
36
+ isPremium: z.ZodBoolean;
37
+ }, z.core.$strip>;
38
+ triggeredAt: z.ZodCoercedDate<unknown>;
39
+ }, z.core.$strip>;
40
+ /**
41
+ * Wrapper schema for an incoming webhook payload.
42
+ *
43
+ * The backend sends snake_case keys and uses the public event form
44
+ * (`item:added`) in the `event_name` field, so consumers using
45
+ * `parseWebhookPayload` receive camelCase fields directly.
46
+ *
47
+ * Typed today: `item:*` events carry a parsed {@link Task}; `note:*` events
48
+ * carry a parsed comment (item-comment or project-comment); `label:*` events
49
+ * carry a parsed label. Other events still expose `eventData` as `unknown`;
50
+ * they will be narrowed in follow-up PRs (projects, sections, filters,
51
+ * reminders).
52
+ */
53
+ export declare const WebhookPayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
54
+ eventName: z.ZodLiteral<"item:added">;
55
+ eventData: z.ZodPipe<z.ZodObject<{
56
+ id: z.ZodString;
57
+ userId: z.ZodString;
58
+ projectId: z.ZodString;
59
+ sectionId: z.ZodNullable<z.ZodString>;
60
+ parentId: z.ZodNullable<z.ZodString>;
61
+ addedByUid: z.ZodNullable<z.ZodString>;
62
+ assignedByUid: z.ZodNullable<z.ZodString>;
63
+ responsibleUid: z.ZodNullable<z.ZodString>;
64
+ labels: z.ZodArray<z.ZodString>;
65
+ deadline: z.ZodNullable<z.ZodObject<{
66
+ date: z.ZodString;
67
+ lang: z.ZodString;
68
+ }, z.core.$strip>>;
69
+ duration: z.ZodNullable<z.ZodObject<{
70
+ amount: z.ZodNumber;
71
+ unit: z.ZodEnum<{
72
+ minute: "minute";
73
+ day: "day";
74
+ }>;
75
+ }, z.core.$strip>>;
76
+ checked: z.ZodBoolean;
77
+ isDeleted: z.ZodBoolean;
78
+ addedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
79
+ completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
80
+ updatedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
81
+ due: z.ZodNullable<z.ZodObject<{
82
+ isRecurring: z.ZodBoolean;
83
+ string: z.ZodString;
84
+ date: z.ZodString;
85
+ datetime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
86
+ timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
87
+ lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
88
+ }, z.core.$strip>>;
89
+ priority: z.ZodNumber;
90
+ childOrder: z.ZodNumber;
91
+ content: z.ZodString;
92
+ description: z.ZodString;
93
+ dayOrder: z.ZodNumber;
94
+ isCollapsed: z.ZodBoolean;
95
+ isUncompletable: z.ZodDefault<z.ZodBoolean>;
96
+ }, z.core.$strip>, z.ZodTransform<{
97
+ isUncompletable: boolean;
98
+ url: string;
99
+ id: string;
100
+ userId: string;
101
+ projectId: string;
102
+ sectionId: string | null;
103
+ parentId: string | null;
104
+ addedByUid: string | null;
105
+ assignedByUid: string | null;
106
+ responsibleUid: string | null;
107
+ labels: string[];
108
+ deadline: {
109
+ date: string;
110
+ lang: string;
111
+ } | null;
112
+ duration: {
113
+ amount: number;
114
+ unit: "minute" | "day";
115
+ } | null;
116
+ checked: boolean;
117
+ isDeleted: boolean;
118
+ addedAt: Date | null;
119
+ completedAt: Date | null;
120
+ updatedAt: Date | null;
121
+ due: {
122
+ isRecurring: boolean;
123
+ string: string;
124
+ date: string;
125
+ datetime?: string | null | undefined;
126
+ timezone?: string | null | undefined;
127
+ lang?: string | null | undefined;
128
+ } | null;
129
+ priority: number;
130
+ childOrder: number;
131
+ content: string;
132
+ description: string;
133
+ dayOrder: number;
134
+ isCollapsed: boolean;
135
+ }, {
136
+ id: string;
137
+ userId: string;
138
+ projectId: string;
139
+ sectionId: string | null;
140
+ parentId: string | null;
141
+ addedByUid: string | null;
142
+ assignedByUid: string | null;
143
+ responsibleUid: string | null;
144
+ labels: string[];
145
+ deadline: {
146
+ date: string;
147
+ lang: string;
148
+ } | null;
149
+ duration: {
150
+ amount: number;
151
+ unit: "minute" | "day";
152
+ } | null;
153
+ checked: boolean;
154
+ isDeleted: boolean;
155
+ addedAt: Date | null;
156
+ completedAt: Date | null;
157
+ updatedAt: Date | null;
158
+ due: {
159
+ isRecurring: boolean;
160
+ string: string;
161
+ date: string;
162
+ datetime?: string | null | undefined;
163
+ timezone?: string | null | undefined;
164
+ lang?: string | null | undefined;
165
+ } | null;
166
+ priority: number;
167
+ childOrder: number;
168
+ content: string;
169
+ description: string;
170
+ dayOrder: number;
171
+ isCollapsed: boolean;
172
+ isUncompletable: boolean;
173
+ }>>;
174
+ version: z.ZodEnum<{
175
+ 1: "1";
176
+ }>;
177
+ userId: z.ZodString;
178
+ initiator: z.ZodObject<{
179
+ id: z.ZodString;
180
+ fullName: z.ZodString;
181
+ email: z.ZodString;
182
+ imageId: z.ZodNullable<z.ZodString>;
183
+ isPremium: z.ZodBoolean;
184
+ }, z.core.$strip>;
185
+ triggeredAt: z.ZodCoercedDate<unknown>;
186
+ }, z.core.$strip>, z.ZodObject<{
187
+ eventName: z.ZodLiteral<"item:updated">;
188
+ eventData: z.ZodPipe<z.ZodObject<{
189
+ id: z.ZodString;
190
+ userId: z.ZodString;
191
+ projectId: z.ZodString;
192
+ sectionId: z.ZodNullable<z.ZodString>;
193
+ parentId: z.ZodNullable<z.ZodString>;
194
+ addedByUid: z.ZodNullable<z.ZodString>;
195
+ assignedByUid: z.ZodNullable<z.ZodString>;
196
+ responsibleUid: z.ZodNullable<z.ZodString>;
197
+ labels: z.ZodArray<z.ZodString>;
198
+ deadline: z.ZodNullable<z.ZodObject<{
199
+ date: z.ZodString;
200
+ lang: z.ZodString;
201
+ }, z.core.$strip>>;
202
+ duration: z.ZodNullable<z.ZodObject<{
203
+ amount: z.ZodNumber;
204
+ unit: z.ZodEnum<{
205
+ minute: "minute";
206
+ day: "day";
207
+ }>;
208
+ }, z.core.$strip>>;
209
+ checked: z.ZodBoolean;
210
+ isDeleted: z.ZodBoolean;
211
+ addedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
212
+ completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
213
+ updatedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
214
+ due: z.ZodNullable<z.ZodObject<{
215
+ isRecurring: z.ZodBoolean;
216
+ string: z.ZodString;
217
+ date: z.ZodString;
218
+ datetime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
219
+ timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
220
+ lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
221
+ }, z.core.$strip>>;
222
+ priority: z.ZodNumber;
223
+ childOrder: z.ZodNumber;
224
+ content: z.ZodString;
225
+ description: z.ZodString;
226
+ dayOrder: z.ZodNumber;
227
+ isCollapsed: z.ZodBoolean;
228
+ isUncompletable: z.ZodDefault<z.ZodBoolean>;
229
+ }, z.core.$strip>, z.ZodTransform<{
230
+ isUncompletable: boolean;
231
+ url: string;
232
+ id: string;
233
+ userId: string;
234
+ projectId: string;
235
+ sectionId: string | null;
236
+ parentId: string | null;
237
+ addedByUid: string | null;
238
+ assignedByUid: string | null;
239
+ responsibleUid: string | null;
240
+ labels: string[];
241
+ deadline: {
242
+ date: string;
243
+ lang: string;
244
+ } | null;
245
+ duration: {
246
+ amount: number;
247
+ unit: "minute" | "day";
248
+ } | null;
249
+ checked: boolean;
250
+ isDeleted: boolean;
251
+ addedAt: Date | null;
252
+ completedAt: Date | null;
253
+ updatedAt: Date | null;
254
+ due: {
255
+ isRecurring: boolean;
256
+ string: string;
257
+ date: string;
258
+ datetime?: string | null | undefined;
259
+ timezone?: string | null | undefined;
260
+ lang?: string | null | undefined;
261
+ } | null;
262
+ priority: number;
263
+ childOrder: number;
264
+ content: string;
265
+ description: string;
266
+ dayOrder: number;
267
+ isCollapsed: boolean;
268
+ }, {
269
+ id: string;
270
+ userId: string;
271
+ projectId: string;
272
+ sectionId: string | null;
273
+ parentId: string | null;
274
+ addedByUid: string | null;
275
+ assignedByUid: string | null;
276
+ responsibleUid: string | null;
277
+ labels: string[];
278
+ deadline: {
279
+ date: string;
280
+ lang: string;
281
+ } | null;
282
+ duration: {
283
+ amount: number;
284
+ unit: "minute" | "day";
285
+ } | null;
286
+ checked: boolean;
287
+ isDeleted: boolean;
288
+ addedAt: Date | null;
289
+ completedAt: Date | null;
290
+ updatedAt: Date | null;
291
+ due: {
292
+ isRecurring: boolean;
293
+ string: string;
294
+ date: string;
295
+ datetime?: string | null | undefined;
296
+ timezone?: string | null | undefined;
297
+ lang?: string | null | undefined;
298
+ } | null;
299
+ priority: number;
300
+ childOrder: number;
301
+ content: string;
302
+ description: string;
303
+ dayOrder: number;
304
+ isCollapsed: boolean;
305
+ isUncompletable: boolean;
306
+ }>>;
307
+ eventDataExtra: z.ZodOptional<z.ZodObject<{
308
+ oldItem: z.ZodPipe<z.ZodObject<{
309
+ id: z.ZodString;
310
+ userId: z.ZodString;
311
+ projectId: z.ZodString;
312
+ sectionId: z.ZodNullable<z.ZodString>;
313
+ parentId: z.ZodNullable<z.ZodString>;
314
+ addedByUid: z.ZodNullable<z.ZodString>;
315
+ assignedByUid: z.ZodNullable<z.ZodString>;
316
+ responsibleUid: z.ZodNullable<z.ZodString>;
317
+ labels: z.ZodArray<z.ZodString>;
318
+ deadline: z.ZodNullable<z.ZodObject<{
319
+ date: z.ZodString;
320
+ lang: z.ZodString;
321
+ }, z.core.$strip>>;
322
+ duration: z.ZodNullable<z.ZodObject<{
323
+ amount: z.ZodNumber;
324
+ unit: z.ZodEnum<{
325
+ minute: "minute";
326
+ day: "day";
327
+ }>;
328
+ }, z.core.$strip>>;
329
+ checked: z.ZodBoolean;
330
+ isDeleted: z.ZodBoolean;
331
+ addedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
332
+ completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
333
+ updatedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
334
+ due: z.ZodNullable<z.ZodObject<{
335
+ isRecurring: z.ZodBoolean;
336
+ string: z.ZodString;
337
+ date: z.ZodString;
338
+ datetime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
339
+ timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
340
+ lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
341
+ }, z.core.$strip>>;
342
+ priority: z.ZodNumber;
343
+ childOrder: z.ZodNumber;
344
+ content: z.ZodString;
345
+ description: z.ZodString;
346
+ dayOrder: z.ZodNumber;
347
+ isCollapsed: z.ZodBoolean;
348
+ isUncompletable: z.ZodDefault<z.ZodBoolean>;
349
+ }, z.core.$strip>, z.ZodTransform<{
350
+ isUncompletable: boolean;
351
+ url: string;
352
+ id: string;
353
+ userId: string;
354
+ projectId: string;
355
+ sectionId: string | null;
356
+ parentId: string | null;
357
+ addedByUid: string | null;
358
+ assignedByUid: string | null;
359
+ responsibleUid: string | null;
360
+ labels: string[];
361
+ deadline: {
362
+ date: string;
363
+ lang: string;
364
+ } | null;
365
+ duration: {
366
+ amount: number;
367
+ unit: "minute" | "day";
368
+ } | null;
369
+ checked: boolean;
370
+ isDeleted: boolean;
371
+ addedAt: Date | null;
372
+ completedAt: Date | null;
373
+ updatedAt: Date | null;
374
+ due: {
375
+ isRecurring: boolean;
376
+ string: string;
377
+ date: string;
378
+ datetime?: string | null | undefined;
379
+ timezone?: string | null | undefined;
380
+ lang?: string | null | undefined;
381
+ } | null;
382
+ priority: number;
383
+ childOrder: number;
384
+ content: string;
385
+ description: string;
386
+ dayOrder: number;
387
+ isCollapsed: boolean;
388
+ }, {
389
+ id: string;
390
+ userId: string;
391
+ projectId: string;
392
+ sectionId: string | null;
393
+ parentId: string | null;
394
+ addedByUid: string | null;
395
+ assignedByUid: string | null;
396
+ responsibleUid: string | null;
397
+ labels: string[];
398
+ deadline: {
399
+ date: string;
400
+ lang: string;
401
+ } | null;
402
+ duration: {
403
+ amount: number;
404
+ unit: "minute" | "day";
405
+ } | null;
406
+ checked: boolean;
407
+ isDeleted: boolean;
408
+ addedAt: Date | null;
409
+ completedAt: Date | null;
410
+ updatedAt: Date | null;
411
+ due: {
412
+ isRecurring: boolean;
413
+ string: string;
414
+ date: string;
415
+ datetime?: string | null | undefined;
416
+ timezone?: string | null | undefined;
417
+ lang?: string | null | undefined;
418
+ } | null;
419
+ priority: number;
420
+ childOrder: number;
421
+ content: string;
422
+ description: string;
423
+ dayOrder: number;
424
+ isCollapsed: boolean;
425
+ isUncompletable: boolean;
426
+ }>>;
427
+ updateIntent: z.ZodCatch<z.ZodEnum<{
428
+ item_updated: "item_updated";
429
+ item_completed: "item_completed";
430
+ item_uncompleted: "item_uncompleted";
431
+ responsible_uid_changed: "responsible_uid_changed";
432
+ }>>;
433
+ }, z.core.$strip>>;
434
+ version: z.ZodEnum<{
435
+ 1: "1";
436
+ }>;
437
+ userId: z.ZodString;
438
+ initiator: z.ZodObject<{
439
+ id: z.ZodString;
440
+ fullName: z.ZodString;
441
+ email: z.ZodString;
442
+ imageId: z.ZodNullable<z.ZodString>;
443
+ isPremium: z.ZodBoolean;
444
+ }, z.core.$strip>;
445
+ triggeredAt: z.ZodCoercedDate<unknown>;
446
+ }, z.core.$strip>, z.ZodObject<{
447
+ eventName: z.ZodLiteral<"item:completed">;
448
+ eventData: z.ZodPipe<z.ZodObject<{
449
+ id: z.ZodString;
450
+ userId: z.ZodString;
451
+ projectId: z.ZodString;
452
+ sectionId: z.ZodNullable<z.ZodString>;
453
+ parentId: z.ZodNullable<z.ZodString>;
454
+ addedByUid: z.ZodNullable<z.ZodString>;
455
+ assignedByUid: z.ZodNullable<z.ZodString>;
456
+ responsibleUid: z.ZodNullable<z.ZodString>;
457
+ labels: z.ZodArray<z.ZodString>;
458
+ deadline: z.ZodNullable<z.ZodObject<{
459
+ date: z.ZodString;
460
+ lang: z.ZodString;
461
+ }, z.core.$strip>>;
462
+ duration: z.ZodNullable<z.ZodObject<{
463
+ amount: z.ZodNumber;
464
+ unit: z.ZodEnum<{
465
+ minute: "minute";
466
+ day: "day";
467
+ }>;
468
+ }, z.core.$strip>>;
469
+ checked: z.ZodBoolean;
470
+ isDeleted: z.ZodBoolean;
471
+ addedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
472
+ completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
473
+ updatedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
474
+ due: z.ZodNullable<z.ZodObject<{
475
+ isRecurring: z.ZodBoolean;
476
+ string: z.ZodString;
477
+ date: z.ZodString;
478
+ datetime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
479
+ timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
480
+ lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
481
+ }, z.core.$strip>>;
482
+ priority: z.ZodNumber;
483
+ childOrder: z.ZodNumber;
484
+ content: z.ZodString;
485
+ description: z.ZodString;
486
+ dayOrder: z.ZodNumber;
487
+ isCollapsed: z.ZodBoolean;
488
+ isUncompletable: z.ZodDefault<z.ZodBoolean>;
489
+ }, z.core.$strip>, z.ZodTransform<{
490
+ isUncompletable: boolean;
491
+ url: string;
492
+ id: string;
493
+ userId: string;
494
+ projectId: string;
495
+ sectionId: string | null;
496
+ parentId: string | null;
497
+ addedByUid: string | null;
498
+ assignedByUid: string | null;
499
+ responsibleUid: string | null;
500
+ labels: string[];
501
+ deadline: {
502
+ date: string;
503
+ lang: string;
504
+ } | null;
505
+ duration: {
506
+ amount: number;
507
+ unit: "minute" | "day";
508
+ } | null;
509
+ checked: boolean;
510
+ isDeleted: boolean;
511
+ addedAt: Date | null;
512
+ completedAt: Date | null;
513
+ updatedAt: Date | null;
514
+ due: {
515
+ isRecurring: boolean;
516
+ string: string;
517
+ date: string;
518
+ datetime?: string | null | undefined;
519
+ timezone?: string | null | undefined;
520
+ lang?: string | null | undefined;
521
+ } | null;
522
+ priority: number;
523
+ childOrder: number;
524
+ content: string;
525
+ description: string;
526
+ dayOrder: number;
527
+ isCollapsed: boolean;
528
+ }, {
529
+ id: string;
530
+ userId: string;
531
+ projectId: string;
532
+ sectionId: string | null;
533
+ parentId: string | null;
534
+ addedByUid: string | null;
535
+ assignedByUid: string | null;
536
+ responsibleUid: string | null;
537
+ labels: string[];
538
+ deadline: {
539
+ date: string;
540
+ lang: string;
541
+ } | null;
542
+ duration: {
543
+ amount: number;
544
+ unit: "minute" | "day";
545
+ } | null;
546
+ checked: boolean;
547
+ isDeleted: boolean;
548
+ addedAt: Date | null;
549
+ completedAt: Date | null;
550
+ updatedAt: Date | null;
551
+ due: {
552
+ isRecurring: boolean;
553
+ string: string;
554
+ date: string;
555
+ datetime?: string | null | undefined;
556
+ timezone?: string | null | undefined;
557
+ lang?: string | null | undefined;
558
+ } | null;
559
+ priority: number;
560
+ childOrder: number;
561
+ content: string;
562
+ description: string;
563
+ dayOrder: number;
564
+ isCollapsed: boolean;
565
+ isUncompletable: boolean;
566
+ }>>;
567
+ version: z.ZodEnum<{
568
+ 1: "1";
569
+ }>;
570
+ userId: z.ZodString;
571
+ initiator: z.ZodObject<{
572
+ id: z.ZodString;
573
+ fullName: z.ZodString;
574
+ email: z.ZodString;
575
+ imageId: z.ZodNullable<z.ZodString>;
576
+ isPremium: z.ZodBoolean;
577
+ }, z.core.$strip>;
578
+ triggeredAt: z.ZodCoercedDate<unknown>;
579
+ }, z.core.$strip>, z.ZodObject<{
580
+ eventName: z.ZodLiteral<"item:uncompleted">;
581
+ eventData: z.ZodPipe<z.ZodObject<{
582
+ id: z.ZodString;
583
+ userId: z.ZodString;
584
+ projectId: z.ZodString;
585
+ sectionId: z.ZodNullable<z.ZodString>;
586
+ parentId: z.ZodNullable<z.ZodString>;
587
+ addedByUid: z.ZodNullable<z.ZodString>;
588
+ assignedByUid: z.ZodNullable<z.ZodString>;
589
+ responsibleUid: z.ZodNullable<z.ZodString>;
590
+ labels: z.ZodArray<z.ZodString>;
591
+ deadline: z.ZodNullable<z.ZodObject<{
592
+ date: z.ZodString;
593
+ lang: z.ZodString;
594
+ }, z.core.$strip>>;
595
+ duration: z.ZodNullable<z.ZodObject<{
596
+ amount: z.ZodNumber;
597
+ unit: z.ZodEnum<{
598
+ minute: "minute";
599
+ day: "day";
600
+ }>;
601
+ }, z.core.$strip>>;
602
+ checked: z.ZodBoolean;
603
+ isDeleted: z.ZodBoolean;
604
+ addedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
605
+ completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
606
+ updatedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
607
+ due: z.ZodNullable<z.ZodObject<{
608
+ isRecurring: z.ZodBoolean;
609
+ string: z.ZodString;
610
+ date: z.ZodString;
611
+ datetime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
612
+ timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
613
+ lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
614
+ }, z.core.$strip>>;
615
+ priority: z.ZodNumber;
616
+ childOrder: z.ZodNumber;
617
+ content: z.ZodString;
618
+ description: z.ZodString;
619
+ dayOrder: z.ZodNumber;
620
+ isCollapsed: z.ZodBoolean;
621
+ isUncompletable: z.ZodDefault<z.ZodBoolean>;
622
+ }, z.core.$strip>, z.ZodTransform<{
623
+ isUncompletable: boolean;
624
+ url: string;
625
+ id: string;
626
+ userId: string;
627
+ projectId: string;
628
+ sectionId: string | null;
629
+ parentId: string | null;
630
+ addedByUid: string | null;
631
+ assignedByUid: string | null;
632
+ responsibleUid: string | null;
633
+ labels: string[];
634
+ deadline: {
635
+ date: string;
636
+ lang: string;
637
+ } | null;
638
+ duration: {
639
+ amount: number;
640
+ unit: "minute" | "day";
641
+ } | null;
642
+ checked: boolean;
643
+ isDeleted: boolean;
644
+ addedAt: Date | null;
645
+ completedAt: Date | null;
646
+ updatedAt: Date | null;
647
+ due: {
648
+ isRecurring: boolean;
649
+ string: string;
650
+ date: string;
651
+ datetime?: string | null | undefined;
652
+ timezone?: string | null | undefined;
653
+ lang?: string | null | undefined;
654
+ } | null;
655
+ priority: number;
656
+ childOrder: number;
657
+ content: string;
658
+ description: string;
659
+ dayOrder: number;
660
+ isCollapsed: boolean;
661
+ }, {
662
+ id: string;
663
+ userId: string;
664
+ projectId: string;
665
+ sectionId: string | null;
666
+ parentId: string | null;
667
+ addedByUid: string | null;
668
+ assignedByUid: string | null;
669
+ responsibleUid: string | null;
670
+ labels: string[];
671
+ deadline: {
672
+ date: string;
673
+ lang: string;
674
+ } | null;
675
+ duration: {
676
+ amount: number;
677
+ unit: "minute" | "day";
678
+ } | null;
679
+ checked: boolean;
680
+ isDeleted: boolean;
681
+ addedAt: Date | null;
682
+ completedAt: Date | null;
683
+ updatedAt: Date | null;
684
+ due: {
685
+ isRecurring: boolean;
686
+ string: string;
687
+ date: string;
688
+ datetime?: string | null | undefined;
689
+ timezone?: string | null | undefined;
690
+ lang?: string | null | undefined;
691
+ } | null;
692
+ priority: number;
693
+ childOrder: number;
694
+ content: string;
695
+ description: string;
696
+ dayOrder: number;
697
+ isCollapsed: boolean;
698
+ isUncompletable: boolean;
699
+ }>>;
700
+ version: z.ZodEnum<{
701
+ 1: "1";
702
+ }>;
703
+ userId: z.ZodString;
704
+ initiator: z.ZodObject<{
705
+ id: z.ZodString;
706
+ fullName: z.ZodString;
707
+ email: z.ZodString;
708
+ imageId: z.ZodNullable<z.ZodString>;
709
+ isPremium: z.ZodBoolean;
710
+ }, z.core.$strip>;
711
+ triggeredAt: z.ZodCoercedDate<unknown>;
712
+ }, z.core.$strip>, z.ZodObject<{
713
+ eventName: z.ZodLiteral<"item:deleted">;
714
+ eventData: z.ZodPipe<z.ZodObject<{
715
+ id: z.ZodString;
716
+ userId: z.ZodString;
717
+ projectId: z.ZodString;
718
+ sectionId: z.ZodNullable<z.ZodString>;
719
+ parentId: z.ZodNullable<z.ZodString>;
720
+ addedByUid: z.ZodNullable<z.ZodString>;
721
+ assignedByUid: z.ZodNullable<z.ZodString>;
722
+ responsibleUid: z.ZodNullable<z.ZodString>;
723
+ labels: z.ZodArray<z.ZodString>;
724
+ deadline: z.ZodNullable<z.ZodObject<{
725
+ date: z.ZodString;
726
+ lang: z.ZodString;
727
+ }, z.core.$strip>>;
728
+ duration: z.ZodNullable<z.ZodObject<{
729
+ amount: z.ZodNumber;
730
+ unit: z.ZodEnum<{
731
+ minute: "minute";
732
+ day: "day";
733
+ }>;
734
+ }, z.core.$strip>>;
735
+ checked: z.ZodBoolean;
736
+ isDeleted: z.ZodBoolean;
737
+ addedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
738
+ completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
739
+ updatedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
740
+ due: z.ZodNullable<z.ZodObject<{
741
+ isRecurring: z.ZodBoolean;
742
+ string: z.ZodString;
743
+ date: z.ZodString;
744
+ datetime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
745
+ timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
746
+ lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
747
+ }, z.core.$strip>>;
748
+ priority: z.ZodNumber;
749
+ childOrder: z.ZodNumber;
750
+ content: z.ZodString;
751
+ description: z.ZodString;
752
+ dayOrder: z.ZodNumber;
753
+ isCollapsed: z.ZodBoolean;
754
+ isUncompletable: z.ZodDefault<z.ZodBoolean>;
755
+ }, z.core.$strip>, z.ZodTransform<{
756
+ isUncompletable: boolean;
757
+ url: string;
758
+ id: string;
759
+ userId: string;
760
+ projectId: string;
761
+ sectionId: string | null;
762
+ parentId: string | null;
763
+ addedByUid: string | null;
764
+ assignedByUid: string | null;
765
+ responsibleUid: string | null;
766
+ labels: string[];
767
+ deadline: {
768
+ date: string;
769
+ lang: string;
770
+ } | null;
771
+ duration: {
772
+ amount: number;
773
+ unit: "minute" | "day";
774
+ } | null;
775
+ checked: boolean;
776
+ isDeleted: boolean;
777
+ addedAt: Date | null;
778
+ completedAt: Date | null;
779
+ updatedAt: Date | null;
780
+ due: {
781
+ isRecurring: boolean;
782
+ string: string;
783
+ date: string;
784
+ datetime?: string | null | undefined;
785
+ timezone?: string | null | undefined;
786
+ lang?: string | null | undefined;
787
+ } | null;
788
+ priority: number;
789
+ childOrder: number;
790
+ content: string;
791
+ description: string;
792
+ dayOrder: number;
793
+ isCollapsed: boolean;
794
+ }, {
795
+ id: string;
796
+ userId: string;
797
+ projectId: string;
798
+ sectionId: string | null;
799
+ parentId: string | null;
800
+ addedByUid: string | null;
801
+ assignedByUid: string | null;
802
+ responsibleUid: string | null;
803
+ labels: string[];
804
+ deadline: {
805
+ date: string;
806
+ lang: string;
807
+ } | null;
808
+ duration: {
809
+ amount: number;
810
+ unit: "minute" | "day";
811
+ } | null;
812
+ checked: boolean;
813
+ isDeleted: boolean;
814
+ addedAt: Date | null;
815
+ completedAt: Date | null;
816
+ updatedAt: Date | null;
817
+ due: {
818
+ isRecurring: boolean;
819
+ string: string;
820
+ date: string;
821
+ datetime?: string | null | undefined;
822
+ timezone?: string | null | undefined;
823
+ lang?: string | null | undefined;
824
+ } | null;
825
+ priority: number;
826
+ childOrder: number;
827
+ content: string;
828
+ description: string;
829
+ dayOrder: number;
830
+ isCollapsed: boolean;
831
+ isUncompletable: boolean;
832
+ }>>;
833
+ version: z.ZodEnum<{
834
+ 1: "1";
835
+ }>;
836
+ userId: z.ZodString;
837
+ initiator: z.ZodObject<{
838
+ id: z.ZodString;
839
+ fullName: z.ZodString;
840
+ email: z.ZodString;
841
+ imageId: z.ZodNullable<z.ZodString>;
842
+ isPremium: z.ZodBoolean;
843
+ }, z.core.$strip>;
844
+ triggeredAt: z.ZodCoercedDate<unknown>;
845
+ }, z.core.$strip>, z.ZodObject<{
846
+ eventName: z.ZodLiteral<"note:added">;
847
+ eventData: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
848
+ id: z.ZodString;
849
+ content: z.ZodString;
850
+ postedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
851
+ postedUid: z.ZodNullable<z.ZodString>;
852
+ fileAttachment: z.ZodNullable<z.ZodObject<{
853
+ resourceType: z.ZodString;
854
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
855
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
856
+ fileType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
857
+ fileUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
858
+ fileDuration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
859
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
860
+ completed: "completed";
861
+ pending: "pending";
862
+ }>>>;
863
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
864
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
865
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
866
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
867
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
868
+ }, z.core.$strip>>;
869
+ uidsToNotify: z.ZodNullable<z.ZodArray<z.ZodString>>;
870
+ reactions: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
871
+ isDeleted: z.ZodBoolean;
872
+ itemId: z.ZodString;
873
+ url: z.ZodString;
874
+ item: z.ZodPipe<z.ZodObject<{
875
+ id: z.ZodString;
876
+ userId: z.ZodString;
877
+ projectId: z.ZodString;
878
+ sectionId: z.ZodNullable<z.ZodString>;
879
+ parentId: z.ZodNullable<z.ZodString>;
880
+ addedByUid: z.ZodNullable<z.ZodString>;
881
+ assignedByUid: z.ZodNullable<z.ZodString>;
882
+ responsibleUid: z.ZodNullable<z.ZodString>;
883
+ labels: z.ZodArray<z.ZodString>;
884
+ deadline: z.ZodNullable<z.ZodObject<{
885
+ date: z.ZodString;
886
+ lang: z.ZodString;
887
+ }, z.core.$strip>>;
888
+ duration: z.ZodNullable<z.ZodObject<{
889
+ amount: z.ZodNumber;
890
+ unit: z.ZodEnum<{
891
+ minute: "minute";
892
+ day: "day";
893
+ }>;
894
+ }, z.core.$strip>>;
895
+ checked: z.ZodBoolean;
896
+ isDeleted: z.ZodBoolean;
897
+ addedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
898
+ completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
899
+ updatedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
900
+ due: z.ZodNullable<z.ZodObject<{
901
+ isRecurring: z.ZodBoolean;
902
+ string: z.ZodString;
903
+ date: z.ZodString;
904
+ datetime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
905
+ timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
906
+ lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
907
+ }, z.core.$strip>>;
908
+ priority: z.ZodNumber;
909
+ childOrder: z.ZodNumber;
910
+ content: z.ZodString;
911
+ description: z.ZodString;
912
+ dayOrder: z.ZodNumber;
913
+ isCollapsed: z.ZodBoolean;
914
+ isUncompletable: z.ZodDefault<z.ZodBoolean>;
915
+ }, z.core.$strip>, z.ZodTransform<{
916
+ isUncompletable: boolean;
917
+ url: string;
918
+ id: string;
919
+ userId: string;
920
+ projectId: string;
921
+ sectionId: string | null;
922
+ parentId: string | null;
923
+ addedByUid: string | null;
924
+ assignedByUid: string | null;
925
+ responsibleUid: string | null;
926
+ labels: string[];
927
+ deadline: {
928
+ date: string;
929
+ lang: string;
930
+ } | null;
931
+ duration: {
932
+ amount: number;
933
+ unit: "minute" | "day";
934
+ } | null;
935
+ checked: boolean;
936
+ isDeleted: boolean;
937
+ addedAt: Date | null;
938
+ completedAt: Date | null;
939
+ updatedAt: Date | null;
940
+ due: {
941
+ isRecurring: boolean;
942
+ string: string;
943
+ date: string;
944
+ datetime?: string | null | undefined;
945
+ timezone?: string | null | undefined;
946
+ lang?: string | null | undefined;
947
+ } | null;
948
+ priority: number;
949
+ childOrder: number;
950
+ content: string;
951
+ description: string;
952
+ dayOrder: number;
953
+ isCollapsed: boolean;
954
+ }, {
955
+ id: string;
956
+ userId: string;
957
+ projectId: string;
958
+ sectionId: string | null;
959
+ parentId: string | null;
960
+ addedByUid: string | null;
961
+ assignedByUid: string | null;
962
+ responsibleUid: string | null;
963
+ labels: string[];
964
+ deadline: {
965
+ date: string;
966
+ lang: string;
967
+ } | null;
968
+ duration: {
969
+ amount: number;
970
+ unit: "minute" | "day";
971
+ } | null;
972
+ checked: boolean;
973
+ isDeleted: boolean;
974
+ addedAt: Date | null;
975
+ completedAt: Date | null;
976
+ updatedAt: Date | null;
977
+ due: {
978
+ isRecurring: boolean;
979
+ string: string;
980
+ date: string;
981
+ datetime?: string | null | undefined;
982
+ timezone?: string | null | undefined;
983
+ lang?: string | null | undefined;
984
+ } | null;
985
+ priority: number;
986
+ childOrder: number;
987
+ content: string;
988
+ description: string;
989
+ dayOrder: number;
990
+ isCollapsed: boolean;
991
+ isUncompletable: boolean;
992
+ }>>;
993
+ }, z.core.$strict>, z.ZodTransform<{
994
+ taskId: string;
995
+ id: string;
996
+ content: string;
997
+ postedAt: Date | null;
998
+ postedUid: string | null;
999
+ fileAttachment: {
1000
+ resourceType: string;
1001
+ fileName?: string | null | undefined;
1002
+ fileSize?: number | null | undefined;
1003
+ fileType?: string | null | undefined;
1004
+ fileUrl?: string | null | undefined;
1005
+ fileDuration?: number | null | undefined;
1006
+ uploadState?: "completed" | "pending" | null | undefined;
1007
+ image?: string | null | undefined;
1008
+ imageWidth?: number | null | undefined;
1009
+ imageHeight?: number | null | undefined;
1010
+ url?: string | null | undefined;
1011
+ title?: string | null | undefined;
1012
+ } | null;
1013
+ uidsToNotify: string[] | null;
1014
+ reactions: Record<string, string[]> | null;
1015
+ isDeleted: boolean;
1016
+ url: string;
1017
+ item: {
1018
+ isUncompletable: boolean;
1019
+ url: string;
1020
+ id: string;
1021
+ userId: string;
1022
+ projectId: string;
1023
+ sectionId: string | null;
1024
+ parentId: string | null;
1025
+ addedByUid: string | null;
1026
+ assignedByUid: string | null;
1027
+ responsibleUid: string | null;
1028
+ labels: string[];
1029
+ deadline: {
1030
+ date: string;
1031
+ lang: string;
1032
+ } | null;
1033
+ duration: {
1034
+ amount: number;
1035
+ unit: "minute" | "day";
1036
+ } | null;
1037
+ checked: boolean;
1038
+ isDeleted: boolean;
1039
+ addedAt: Date | null;
1040
+ completedAt: Date | null;
1041
+ updatedAt: Date | null;
1042
+ due: {
1043
+ isRecurring: boolean;
1044
+ string: string;
1045
+ date: string;
1046
+ datetime?: string | null | undefined;
1047
+ timezone?: string | null | undefined;
1048
+ lang?: string | null | undefined;
1049
+ } | null;
1050
+ priority: number;
1051
+ childOrder: number;
1052
+ content: string;
1053
+ description: string;
1054
+ dayOrder: number;
1055
+ isCollapsed: boolean;
1056
+ };
1057
+ }, {
1058
+ id: string;
1059
+ content: string;
1060
+ postedAt: Date | null;
1061
+ postedUid: string | null;
1062
+ fileAttachment: {
1063
+ resourceType: string;
1064
+ fileName?: string | null | undefined;
1065
+ fileSize?: number | null | undefined;
1066
+ fileType?: string | null | undefined;
1067
+ fileUrl?: string | null | undefined;
1068
+ fileDuration?: number | null | undefined;
1069
+ uploadState?: "completed" | "pending" | null | undefined;
1070
+ image?: string | null | undefined;
1071
+ imageWidth?: number | null | undefined;
1072
+ imageHeight?: number | null | undefined;
1073
+ url?: string | null | undefined;
1074
+ title?: string | null | undefined;
1075
+ } | null;
1076
+ uidsToNotify: string[] | null;
1077
+ reactions: Record<string, string[]> | null;
1078
+ isDeleted: boolean;
1079
+ itemId: string;
1080
+ url: string;
1081
+ item: {
1082
+ isUncompletable: boolean;
1083
+ url: string;
1084
+ id: string;
1085
+ userId: string;
1086
+ projectId: string;
1087
+ sectionId: string | null;
1088
+ parentId: string | null;
1089
+ addedByUid: string | null;
1090
+ assignedByUid: string | null;
1091
+ responsibleUid: string | null;
1092
+ labels: string[];
1093
+ deadline: {
1094
+ date: string;
1095
+ lang: string;
1096
+ } | null;
1097
+ duration: {
1098
+ amount: number;
1099
+ unit: "minute" | "day";
1100
+ } | null;
1101
+ checked: boolean;
1102
+ isDeleted: boolean;
1103
+ addedAt: Date | null;
1104
+ completedAt: Date | null;
1105
+ updatedAt: Date | null;
1106
+ due: {
1107
+ isRecurring: boolean;
1108
+ string: string;
1109
+ date: string;
1110
+ datetime?: string | null | undefined;
1111
+ timezone?: string | null | undefined;
1112
+ lang?: string | null | undefined;
1113
+ } | null;
1114
+ priority: number;
1115
+ childOrder: number;
1116
+ content: string;
1117
+ description: string;
1118
+ dayOrder: number;
1119
+ isCollapsed: boolean;
1120
+ };
1121
+ }>>, z.ZodObject<{
1122
+ id: z.ZodString;
1123
+ content: z.ZodString;
1124
+ postedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
1125
+ postedUid: z.ZodNullable<z.ZodString>;
1126
+ fileAttachment: z.ZodNullable<z.ZodObject<{
1127
+ resourceType: z.ZodString;
1128
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1129
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1130
+ fileType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1131
+ fileUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1132
+ fileDuration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1133
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1134
+ completed: "completed";
1135
+ pending: "pending";
1136
+ }>>>;
1137
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1138
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1139
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1140
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1141
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1142
+ }, z.core.$strip>>;
1143
+ uidsToNotify: z.ZodNullable<z.ZodArray<z.ZodString>>;
1144
+ reactions: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
1145
+ isDeleted: z.ZodBoolean;
1146
+ projectId: z.ZodString;
1147
+ }, z.core.$strict>]>;
1148
+ version: z.ZodEnum<{
1149
+ 1: "1";
1150
+ }>;
1151
+ userId: z.ZodString;
1152
+ initiator: z.ZodObject<{
1153
+ id: z.ZodString;
1154
+ fullName: z.ZodString;
1155
+ email: z.ZodString;
1156
+ imageId: z.ZodNullable<z.ZodString>;
1157
+ isPremium: z.ZodBoolean;
1158
+ }, z.core.$strip>;
1159
+ triggeredAt: z.ZodCoercedDate<unknown>;
1160
+ }, z.core.$strip>, z.ZodObject<{
1161
+ eventName: z.ZodLiteral<"note:updated">;
1162
+ eventData: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
1163
+ id: z.ZodString;
1164
+ content: z.ZodString;
1165
+ postedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
1166
+ postedUid: z.ZodNullable<z.ZodString>;
1167
+ fileAttachment: z.ZodNullable<z.ZodObject<{
1168
+ resourceType: z.ZodString;
1169
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1170
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1171
+ fileType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1172
+ fileUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1173
+ fileDuration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1174
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1175
+ completed: "completed";
1176
+ pending: "pending";
1177
+ }>>>;
1178
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1179
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1180
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1181
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1182
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1183
+ }, z.core.$strip>>;
1184
+ uidsToNotify: z.ZodNullable<z.ZodArray<z.ZodString>>;
1185
+ reactions: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
1186
+ isDeleted: z.ZodBoolean;
1187
+ itemId: z.ZodString;
1188
+ url: z.ZodString;
1189
+ item: z.ZodPipe<z.ZodObject<{
1190
+ id: z.ZodString;
1191
+ userId: z.ZodString;
1192
+ projectId: z.ZodString;
1193
+ sectionId: z.ZodNullable<z.ZodString>;
1194
+ parentId: z.ZodNullable<z.ZodString>;
1195
+ addedByUid: z.ZodNullable<z.ZodString>;
1196
+ assignedByUid: z.ZodNullable<z.ZodString>;
1197
+ responsibleUid: z.ZodNullable<z.ZodString>;
1198
+ labels: z.ZodArray<z.ZodString>;
1199
+ deadline: z.ZodNullable<z.ZodObject<{
1200
+ date: z.ZodString;
1201
+ lang: z.ZodString;
1202
+ }, z.core.$strip>>;
1203
+ duration: z.ZodNullable<z.ZodObject<{
1204
+ amount: z.ZodNumber;
1205
+ unit: z.ZodEnum<{
1206
+ minute: "minute";
1207
+ day: "day";
1208
+ }>;
1209
+ }, z.core.$strip>>;
1210
+ checked: z.ZodBoolean;
1211
+ isDeleted: z.ZodBoolean;
1212
+ addedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
1213
+ completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
1214
+ updatedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
1215
+ due: z.ZodNullable<z.ZodObject<{
1216
+ isRecurring: z.ZodBoolean;
1217
+ string: z.ZodString;
1218
+ date: z.ZodString;
1219
+ datetime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1220
+ timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1221
+ lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1222
+ }, z.core.$strip>>;
1223
+ priority: z.ZodNumber;
1224
+ childOrder: z.ZodNumber;
1225
+ content: z.ZodString;
1226
+ description: z.ZodString;
1227
+ dayOrder: z.ZodNumber;
1228
+ isCollapsed: z.ZodBoolean;
1229
+ isUncompletable: z.ZodDefault<z.ZodBoolean>;
1230
+ }, z.core.$strip>, z.ZodTransform<{
1231
+ isUncompletable: boolean;
1232
+ url: string;
1233
+ id: string;
1234
+ userId: string;
1235
+ projectId: string;
1236
+ sectionId: string | null;
1237
+ parentId: string | null;
1238
+ addedByUid: string | null;
1239
+ assignedByUid: string | null;
1240
+ responsibleUid: string | null;
1241
+ labels: string[];
1242
+ deadline: {
1243
+ date: string;
1244
+ lang: string;
1245
+ } | null;
1246
+ duration: {
1247
+ amount: number;
1248
+ unit: "minute" | "day";
1249
+ } | null;
1250
+ checked: boolean;
1251
+ isDeleted: boolean;
1252
+ addedAt: Date | null;
1253
+ completedAt: Date | null;
1254
+ updatedAt: Date | null;
1255
+ due: {
1256
+ isRecurring: boolean;
1257
+ string: string;
1258
+ date: string;
1259
+ datetime?: string | null | undefined;
1260
+ timezone?: string | null | undefined;
1261
+ lang?: string | null | undefined;
1262
+ } | null;
1263
+ priority: number;
1264
+ childOrder: number;
1265
+ content: string;
1266
+ description: string;
1267
+ dayOrder: number;
1268
+ isCollapsed: boolean;
1269
+ }, {
1270
+ id: string;
1271
+ userId: string;
1272
+ projectId: string;
1273
+ sectionId: string | null;
1274
+ parentId: string | null;
1275
+ addedByUid: string | null;
1276
+ assignedByUid: string | null;
1277
+ responsibleUid: string | null;
1278
+ labels: string[];
1279
+ deadline: {
1280
+ date: string;
1281
+ lang: string;
1282
+ } | null;
1283
+ duration: {
1284
+ amount: number;
1285
+ unit: "minute" | "day";
1286
+ } | null;
1287
+ checked: boolean;
1288
+ isDeleted: boolean;
1289
+ addedAt: Date | null;
1290
+ completedAt: Date | null;
1291
+ updatedAt: Date | null;
1292
+ due: {
1293
+ isRecurring: boolean;
1294
+ string: string;
1295
+ date: string;
1296
+ datetime?: string | null | undefined;
1297
+ timezone?: string | null | undefined;
1298
+ lang?: string | null | undefined;
1299
+ } | null;
1300
+ priority: number;
1301
+ childOrder: number;
1302
+ content: string;
1303
+ description: string;
1304
+ dayOrder: number;
1305
+ isCollapsed: boolean;
1306
+ isUncompletable: boolean;
1307
+ }>>;
1308
+ }, z.core.$strict>, z.ZodTransform<{
1309
+ taskId: string;
1310
+ id: string;
1311
+ content: string;
1312
+ postedAt: Date | null;
1313
+ postedUid: string | null;
1314
+ fileAttachment: {
1315
+ resourceType: string;
1316
+ fileName?: string | null | undefined;
1317
+ fileSize?: number | null | undefined;
1318
+ fileType?: string | null | undefined;
1319
+ fileUrl?: string | null | undefined;
1320
+ fileDuration?: number | null | undefined;
1321
+ uploadState?: "completed" | "pending" | null | undefined;
1322
+ image?: string | null | undefined;
1323
+ imageWidth?: number | null | undefined;
1324
+ imageHeight?: number | null | undefined;
1325
+ url?: string | null | undefined;
1326
+ title?: string | null | undefined;
1327
+ } | null;
1328
+ uidsToNotify: string[] | null;
1329
+ reactions: Record<string, string[]> | null;
1330
+ isDeleted: boolean;
1331
+ url: string;
1332
+ item: {
1333
+ isUncompletable: boolean;
1334
+ url: string;
1335
+ id: string;
1336
+ userId: string;
1337
+ projectId: string;
1338
+ sectionId: string | null;
1339
+ parentId: string | null;
1340
+ addedByUid: string | null;
1341
+ assignedByUid: string | null;
1342
+ responsibleUid: string | null;
1343
+ labels: string[];
1344
+ deadline: {
1345
+ date: string;
1346
+ lang: string;
1347
+ } | null;
1348
+ duration: {
1349
+ amount: number;
1350
+ unit: "minute" | "day";
1351
+ } | null;
1352
+ checked: boolean;
1353
+ isDeleted: boolean;
1354
+ addedAt: Date | null;
1355
+ completedAt: Date | null;
1356
+ updatedAt: Date | null;
1357
+ due: {
1358
+ isRecurring: boolean;
1359
+ string: string;
1360
+ date: string;
1361
+ datetime?: string | null | undefined;
1362
+ timezone?: string | null | undefined;
1363
+ lang?: string | null | undefined;
1364
+ } | null;
1365
+ priority: number;
1366
+ childOrder: number;
1367
+ content: string;
1368
+ description: string;
1369
+ dayOrder: number;
1370
+ isCollapsed: boolean;
1371
+ };
1372
+ }, {
1373
+ id: string;
1374
+ content: string;
1375
+ postedAt: Date | null;
1376
+ postedUid: string | null;
1377
+ fileAttachment: {
1378
+ resourceType: string;
1379
+ fileName?: string | null | undefined;
1380
+ fileSize?: number | null | undefined;
1381
+ fileType?: string | null | undefined;
1382
+ fileUrl?: string | null | undefined;
1383
+ fileDuration?: number | null | undefined;
1384
+ uploadState?: "completed" | "pending" | null | undefined;
1385
+ image?: string | null | undefined;
1386
+ imageWidth?: number | null | undefined;
1387
+ imageHeight?: number | null | undefined;
1388
+ url?: string | null | undefined;
1389
+ title?: string | null | undefined;
1390
+ } | null;
1391
+ uidsToNotify: string[] | null;
1392
+ reactions: Record<string, string[]> | null;
1393
+ isDeleted: boolean;
1394
+ itemId: string;
1395
+ url: string;
1396
+ item: {
1397
+ isUncompletable: boolean;
1398
+ url: string;
1399
+ id: string;
1400
+ userId: string;
1401
+ projectId: string;
1402
+ sectionId: string | null;
1403
+ parentId: string | null;
1404
+ addedByUid: string | null;
1405
+ assignedByUid: string | null;
1406
+ responsibleUid: string | null;
1407
+ labels: string[];
1408
+ deadline: {
1409
+ date: string;
1410
+ lang: string;
1411
+ } | null;
1412
+ duration: {
1413
+ amount: number;
1414
+ unit: "minute" | "day";
1415
+ } | null;
1416
+ checked: boolean;
1417
+ isDeleted: boolean;
1418
+ addedAt: Date | null;
1419
+ completedAt: Date | null;
1420
+ updatedAt: Date | null;
1421
+ due: {
1422
+ isRecurring: boolean;
1423
+ string: string;
1424
+ date: string;
1425
+ datetime?: string | null | undefined;
1426
+ timezone?: string | null | undefined;
1427
+ lang?: string | null | undefined;
1428
+ } | null;
1429
+ priority: number;
1430
+ childOrder: number;
1431
+ content: string;
1432
+ description: string;
1433
+ dayOrder: number;
1434
+ isCollapsed: boolean;
1435
+ };
1436
+ }>>, z.ZodObject<{
1437
+ id: z.ZodString;
1438
+ content: z.ZodString;
1439
+ postedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
1440
+ postedUid: z.ZodNullable<z.ZodString>;
1441
+ fileAttachment: z.ZodNullable<z.ZodObject<{
1442
+ resourceType: z.ZodString;
1443
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1444
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1445
+ fileType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1446
+ fileUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1447
+ fileDuration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1448
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1449
+ completed: "completed";
1450
+ pending: "pending";
1451
+ }>>>;
1452
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1453
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1454
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1455
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1456
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1457
+ }, z.core.$strip>>;
1458
+ uidsToNotify: z.ZodNullable<z.ZodArray<z.ZodString>>;
1459
+ reactions: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
1460
+ isDeleted: z.ZodBoolean;
1461
+ projectId: z.ZodString;
1462
+ }, z.core.$strict>]>;
1463
+ version: z.ZodEnum<{
1464
+ 1: "1";
1465
+ }>;
1466
+ userId: z.ZodString;
1467
+ initiator: z.ZodObject<{
1468
+ id: z.ZodString;
1469
+ fullName: z.ZodString;
1470
+ email: z.ZodString;
1471
+ imageId: z.ZodNullable<z.ZodString>;
1472
+ isPremium: z.ZodBoolean;
1473
+ }, z.core.$strip>;
1474
+ triggeredAt: z.ZodCoercedDate<unknown>;
1475
+ }, z.core.$strip>, z.ZodObject<{
1476
+ eventName: z.ZodLiteral<"note:deleted">;
1477
+ eventData: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
1478
+ id: z.ZodString;
1479
+ content: z.ZodString;
1480
+ postedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
1481
+ postedUid: z.ZodNullable<z.ZodString>;
1482
+ fileAttachment: z.ZodNullable<z.ZodObject<{
1483
+ resourceType: z.ZodString;
1484
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1485
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1486
+ fileType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1487
+ fileUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1488
+ fileDuration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1489
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1490
+ completed: "completed";
1491
+ pending: "pending";
1492
+ }>>>;
1493
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1494
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1495
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1496
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1497
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1498
+ }, z.core.$strip>>;
1499
+ uidsToNotify: z.ZodNullable<z.ZodArray<z.ZodString>>;
1500
+ reactions: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
1501
+ isDeleted: z.ZodBoolean;
1502
+ itemId: z.ZodString;
1503
+ url: z.ZodString;
1504
+ item: z.ZodPipe<z.ZodObject<{
1505
+ id: z.ZodString;
1506
+ userId: z.ZodString;
1507
+ projectId: z.ZodString;
1508
+ sectionId: z.ZodNullable<z.ZodString>;
1509
+ parentId: z.ZodNullable<z.ZodString>;
1510
+ addedByUid: z.ZodNullable<z.ZodString>;
1511
+ assignedByUid: z.ZodNullable<z.ZodString>;
1512
+ responsibleUid: z.ZodNullable<z.ZodString>;
1513
+ labels: z.ZodArray<z.ZodString>;
1514
+ deadline: z.ZodNullable<z.ZodObject<{
1515
+ date: z.ZodString;
1516
+ lang: z.ZodString;
1517
+ }, z.core.$strip>>;
1518
+ duration: z.ZodNullable<z.ZodObject<{
1519
+ amount: z.ZodNumber;
1520
+ unit: z.ZodEnum<{
1521
+ minute: "minute";
1522
+ day: "day";
1523
+ }>;
1524
+ }, z.core.$strip>>;
1525
+ checked: z.ZodBoolean;
1526
+ isDeleted: z.ZodBoolean;
1527
+ addedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
1528
+ completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
1529
+ updatedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
1530
+ due: z.ZodNullable<z.ZodObject<{
1531
+ isRecurring: z.ZodBoolean;
1532
+ string: z.ZodString;
1533
+ date: z.ZodString;
1534
+ datetime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1535
+ timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1536
+ lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1537
+ }, z.core.$strip>>;
1538
+ priority: z.ZodNumber;
1539
+ childOrder: z.ZodNumber;
1540
+ content: z.ZodString;
1541
+ description: z.ZodString;
1542
+ dayOrder: z.ZodNumber;
1543
+ isCollapsed: z.ZodBoolean;
1544
+ isUncompletable: z.ZodDefault<z.ZodBoolean>;
1545
+ }, z.core.$strip>, z.ZodTransform<{
1546
+ isUncompletable: boolean;
1547
+ url: string;
1548
+ id: string;
1549
+ userId: string;
1550
+ projectId: string;
1551
+ sectionId: string | null;
1552
+ parentId: string | null;
1553
+ addedByUid: string | null;
1554
+ assignedByUid: string | null;
1555
+ responsibleUid: string | null;
1556
+ labels: string[];
1557
+ deadline: {
1558
+ date: string;
1559
+ lang: string;
1560
+ } | null;
1561
+ duration: {
1562
+ amount: number;
1563
+ unit: "minute" | "day";
1564
+ } | null;
1565
+ checked: boolean;
1566
+ isDeleted: boolean;
1567
+ addedAt: Date | null;
1568
+ completedAt: Date | null;
1569
+ updatedAt: Date | null;
1570
+ due: {
1571
+ isRecurring: boolean;
1572
+ string: string;
1573
+ date: string;
1574
+ datetime?: string | null | undefined;
1575
+ timezone?: string | null | undefined;
1576
+ lang?: string | null | undefined;
1577
+ } | null;
1578
+ priority: number;
1579
+ childOrder: number;
1580
+ content: string;
1581
+ description: string;
1582
+ dayOrder: number;
1583
+ isCollapsed: boolean;
1584
+ }, {
1585
+ id: string;
1586
+ userId: string;
1587
+ projectId: string;
1588
+ sectionId: string | null;
1589
+ parentId: string | null;
1590
+ addedByUid: string | null;
1591
+ assignedByUid: string | null;
1592
+ responsibleUid: string | null;
1593
+ labels: string[];
1594
+ deadline: {
1595
+ date: string;
1596
+ lang: string;
1597
+ } | null;
1598
+ duration: {
1599
+ amount: number;
1600
+ unit: "minute" | "day";
1601
+ } | null;
1602
+ checked: boolean;
1603
+ isDeleted: boolean;
1604
+ addedAt: Date | null;
1605
+ completedAt: Date | null;
1606
+ updatedAt: Date | null;
1607
+ due: {
1608
+ isRecurring: boolean;
1609
+ string: string;
1610
+ date: string;
1611
+ datetime?: string | null | undefined;
1612
+ timezone?: string | null | undefined;
1613
+ lang?: string | null | undefined;
1614
+ } | null;
1615
+ priority: number;
1616
+ childOrder: number;
1617
+ content: string;
1618
+ description: string;
1619
+ dayOrder: number;
1620
+ isCollapsed: boolean;
1621
+ isUncompletable: boolean;
1622
+ }>>;
1623
+ }, z.core.$strict>, z.ZodTransform<{
1624
+ taskId: string;
1625
+ id: string;
1626
+ content: string;
1627
+ postedAt: Date | null;
1628
+ postedUid: string | null;
1629
+ fileAttachment: {
1630
+ resourceType: string;
1631
+ fileName?: string | null | undefined;
1632
+ fileSize?: number | null | undefined;
1633
+ fileType?: string | null | undefined;
1634
+ fileUrl?: string | null | undefined;
1635
+ fileDuration?: number | null | undefined;
1636
+ uploadState?: "completed" | "pending" | null | undefined;
1637
+ image?: string | null | undefined;
1638
+ imageWidth?: number | null | undefined;
1639
+ imageHeight?: number | null | undefined;
1640
+ url?: string | null | undefined;
1641
+ title?: string | null | undefined;
1642
+ } | null;
1643
+ uidsToNotify: string[] | null;
1644
+ reactions: Record<string, string[]> | null;
1645
+ isDeleted: boolean;
1646
+ url: string;
1647
+ item: {
1648
+ isUncompletable: boolean;
1649
+ url: string;
1650
+ id: string;
1651
+ userId: string;
1652
+ projectId: string;
1653
+ sectionId: string | null;
1654
+ parentId: string | null;
1655
+ addedByUid: string | null;
1656
+ assignedByUid: string | null;
1657
+ responsibleUid: string | null;
1658
+ labels: string[];
1659
+ deadline: {
1660
+ date: string;
1661
+ lang: string;
1662
+ } | null;
1663
+ duration: {
1664
+ amount: number;
1665
+ unit: "minute" | "day";
1666
+ } | null;
1667
+ checked: boolean;
1668
+ isDeleted: boolean;
1669
+ addedAt: Date | null;
1670
+ completedAt: Date | null;
1671
+ updatedAt: Date | null;
1672
+ due: {
1673
+ isRecurring: boolean;
1674
+ string: string;
1675
+ date: string;
1676
+ datetime?: string | null | undefined;
1677
+ timezone?: string | null | undefined;
1678
+ lang?: string | null | undefined;
1679
+ } | null;
1680
+ priority: number;
1681
+ childOrder: number;
1682
+ content: string;
1683
+ description: string;
1684
+ dayOrder: number;
1685
+ isCollapsed: boolean;
1686
+ };
1687
+ }, {
1688
+ id: string;
1689
+ content: string;
1690
+ postedAt: Date | null;
1691
+ postedUid: string | null;
1692
+ fileAttachment: {
1693
+ resourceType: string;
1694
+ fileName?: string | null | undefined;
1695
+ fileSize?: number | null | undefined;
1696
+ fileType?: string | null | undefined;
1697
+ fileUrl?: string | null | undefined;
1698
+ fileDuration?: number | null | undefined;
1699
+ uploadState?: "completed" | "pending" | null | undefined;
1700
+ image?: string | null | undefined;
1701
+ imageWidth?: number | null | undefined;
1702
+ imageHeight?: number | null | undefined;
1703
+ url?: string | null | undefined;
1704
+ title?: string | null | undefined;
1705
+ } | null;
1706
+ uidsToNotify: string[] | null;
1707
+ reactions: Record<string, string[]> | null;
1708
+ isDeleted: boolean;
1709
+ itemId: string;
1710
+ url: string;
1711
+ item: {
1712
+ isUncompletable: boolean;
1713
+ url: string;
1714
+ id: string;
1715
+ userId: string;
1716
+ projectId: string;
1717
+ sectionId: string | null;
1718
+ parentId: string | null;
1719
+ addedByUid: string | null;
1720
+ assignedByUid: string | null;
1721
+ responsibleUid: string | null;
1722
+ labels: string[];
1723
+ deadline: {
1724
+ date: string;
1725
+ lang: string;
1726
+ } | null;
1727
+ duration: {
1728
+ amount: number;
1729
+ unit: "minute" | "day";
1730
+ } | null;
1731
+ checked: boolean;
1732
+ isDeleted: boolean;
1733
+ addedAt: Date | null;
1734
+ completedAt: Date | null;
1735
+ updatedAt: Date | null;
1736
+ due: {
1737
+ isRecurring: boolean;
1738
+ string: string;
1739
+ date: string;
1740
+ datetime?: string | null | undefined;
1741
+ timezone?: string | null | undefined;
1742
+ lang?: string | null | undefined;
1743
+ } | null;
1744
+ priority: number;
1745
+ childOrder: number;
1746
+ content: string;
1747
+ description: string;
1748
+ dayOrder: number;
1749
+ isCollapsed: boolean;
1750
+ };
1751
+ }>>, z.ZodObject<{
1752
+ id: z.ZodString;
1753
+ content: z.ZodString;
1754
+ postedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
1755
+ postedUid: z.ZodNullable<z.ZodString>;
1756
+ fileAttachment: z.ZodNullable<z.ZodObject<{
1757
+ resourceType: z.ZodString;
1758
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1759
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1760
+ fileType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1761
+ fileUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1762
+ fileDuration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1763
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1764
+ completed: "completed";
1765
+ pending: "pending";
1766
+ }>>>;
1767
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1768
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1769
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1770
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1771
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1772
+ }, z.core.$strip>>;
1773
+ uidsToNotify: z.ZodNullable<z.ZodArray<z.ZodString>>;
1774
+ reactions: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
1775
+ isDeleted: z.ZodBoolean;
1776
+ projectId: z.ZodString;
1777
+ }, z.core.$strict>]>;
1778
+ version: z.ZodEnum<{
1779
+ 1: "1";
1780
+ }>;
1781
+ userId: z.ZodString;
1782
+ initiator: z.ZodObject<{
1783
+ id: z.ZodString;
1784
+ fullName: z.ZodString;
1785
+ email: z.ZodString;
1786
+ imageId: z.ZodNullable<z.ZodString>;
1787
+ isPremium: z.ZodBoolean;
1788
+ }, z.core.$strip>;
1789
+ triggeredAt: z.ZodCoercedDate<unknown>;
1790
+ }, z.core.$strip>, z.ZodObject<{
1791
+ eventName: z.ZodLiteral<"label:added">;
1792
+ eventData: z.ZodPipe<z.ZodObject<{
1793
+ name: z.ZodString;
1794
+ id: z.ZodString;
1795
+ color: z.ZodString;
1796
+ isFavorite: z.ZodBoolean;
1797
+ itemOrder: z.ZodNullable<z.ZodNumber>;
1798
+ isDeleted: z.ZodBoolean;
1799
+ }, z.core.$strip>, z.ZodTransform<{
1800
+ order: number | null;
1801
+ name: string;
1802
+ id: string;
1803
+ color: string;
1804
+ isFavorite: boolean;
1805
+ isDeleted: boolean;
1806
+ }, {
1807
+ name: string;
1808
+ id: string;
1809
+ color: string;
1810
+ isFavorite: boolean;
1811
+ itemOrder: number | null;
1812
+ isDeleted: boolean;
1813
+ }>>;
1814
+ version: z.ZodEnum<{
1815
+ 1: "1";
1816
+ }>;
1817
+ userId: z.ZodString;
1818
+ initiator: z.ZodObject<{
1819
+ id: z.ZodString;
1820
+ fullName: z.ZodString;
1821
+ email: z.ZodString;
1822
+ imageId: z.ZodNullable<z.ZodString>;
1823
+ isPremium: z.ZodBoolean;
1824
+ }, z.core.$strip>;
1825
+ triggeredAt: z.ZodCoercedDate<unknown>;
1826
+ }, z.core.$strip>, z.ZodObject<{
1827
+ eventName: z.ZodLiteral<"label:updated">;
1828
+ eventData: z.ZodPipe<z.ZodObject<{
1829
+ name: z.ZodString;
1830
+ id: z.ZodString;
1831
+ color: z.ZodString;
1832
+ isFavorite: z.ZodBoolean;
1833
+ itemOrder: z.ZodNullable<z.ZodNumber>;
1834
+ isDeleted: z.ZodBoolean;
1835
+ }, z.core.$strip>, z.ZodTransform<{
1836
+ order: number | null;
1837
+ name: string;
1838
+ id: string;
1839
+ color: string;
1840
+ isFavorite: boolean;
1841
+ isDeleted: boolean;
1842
+ }, {
1843
+ name: string;
1844
+ id: string;
1845
+ color: string;
1846
+ isFavorite: boolean;
1847
+ itemOrder: number | null;
1848
+ isDeleted: boolean;
1849
+ }>>;
1850
+ version: z.ZodEnum<{
1851
+ 1: "1";
1852
+ }>;
1853
+ userId: z.ZodString;
1854
+ initiator: z.ZodObject<{
1855
+ id: z.ZodString;
1856
+ fullName: z.ZodString;
1857
+ email: z.ZodString;
1858
+ imageId: z.ZodNullable<z.ZodString>;
1859
+ isPremium: z.ZodBoolean;
1860
+ }, z.core.$strip>;
1861
+ triggeredAt: z.ZodCoercedDate<unknown>;
1862
+ }, z.core.$strip>, z.ZodObject<{
1863
+ eventName: z.ZodLiteral<"label:deleted">;
1864
+ eventData: z.ZodPipe<z.ZodObject<{
1865
+ name: z.ZodString;
1866
+ id: z.ZodString;
1867
+ color: z.ZodString;
1868
+ isFavorite: z.ZodBoolean;
1869
+ itemOrder: z.ZodNullable<z.ZodNumber>;
1870
+ isDeleted: z.ZodBoolean;
1871
+ }, z.core.$strip>, z.ZodTransform<{
1872
+ order: number | null;
1873
+ name: string;
1874
+ id: string;
1875
+ color: string;
1876
+ isFavorite: boolean;
1877
+ isDeleted: boolean;
1878
+ }, {
1879
+ name: string;
1880
+ id: string;
1881
+ color: string;
1882
+ isFavorite: boolean;
1883
+ itemOrder: number | null;
1884
+ isDeleted: boolean;
1885
+ }>>;
1886
+ version: z.ZodEnum<{
1887
+ 1: "1";
1888
+ }>;
1889
+ userId: z.ZodString;
1890
+ initiator: z.ZodObject<{
1891
+ id: z.ZodString;
1892
+ fullName: z.ZodString;
1893
+ email: z.ZodString;
1894
+ imageId: z.ZodNullable<z.ZodString>;
1895
+ isPremium: z.ZodBoolean;
1896
+ }, z.core.$strip>;
1897
+ triggeredAt: z.ZodCoercedDate<unknown>;
1898
+ }, z.core.$strip>, z.ZodObject<{
1899
+ eventName: z.ZodEnum<{
1900
+ "project:added": "project:added";
1901
+ "project:updated": "project:updated";
1902
+ "project:deleted": "project:deleted";
1903
+ "project:archived": "project:archived";
1904
+ "project:unarchived": "project:unarchived";
1905
+ "section:added": "section:added";
1906
+ "section:updated": "section:updated";
1907
+ "section:deleted": "section:deleted";
1908
+ "section:archived": "section:archived";
1909
+ "section:unarchived": "section:unarchived";
1910
+ "filter:added": "filter:added";
1911
+ "filter:updated": "filter:updated";
1912
+ "filter:deleted": "filter:deleted";
1913
+ "reminder:fired": "reminder:fired";
1914
+ }>;
1915
+ eventData: z.ZodUnknown;
1916
+ eventDataExtra: z.ZodOptional<z.ZodUnknown>;
1917
+ version: z.ZodEnum<{
1918
+ 1: "1";
1919
+ }>;
1920
+ userId: z.ZodString;
1921
+ initiator: z.ZodObject<{
1922
+ id: z.ZodString;
1923
+ fullName: z.ZodString;
1924
+ email: z.ZodString;
1925
+ imageId: z.ZodNullable<z.ZodString>;
1926
+ isPremium: z.ZodBoolean;
1927
+ }, z.core.$strip>;
1928
+ triggeredAt: z.ZodCoercedDate<unknown>;
1929
+ }, z.core.$strip>], "eventName">;
1930
+ /**
1931
+ * A parsed webhook payload. Narrow by `eventName` to access typed
1932
+ * `eventData`.
1933
+ */
1934
+ export type WebhookPayload = z.infer<typeof WebhookPayloadSchema>;
1935
+ export { WebhookEventSchema };
1936
+ export type { WebhookEvent };