@doist/todoist-sdk 9.4.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.
@@ -0,0 +1,1600 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Enum-like object of comment (`note:*`) webhook event names. Single source
4
+ * of truth for the discriminator values — `COMMENT_WEBHOOK_EVENTS` and every
5
+ * `z.literal()` below derive from it.
6
+ *
7
+ * The on-the-wire event names remain `note:*` for historical reasons; the
8
+ * SDK types use `Comment*` to match the rest of the public API where the
9
+ * resource is named `Comment`.
10
+ */
11
+ export declare const CommentWebhookEventEnum: {
12
+ readonly Added: "note:added";
13
+ readonly Updated: "note:updated";
14
+ readonly Deleted: "note:deleted";
15
+ };
16
+ /**
17
+ * Webhook events that carry a comment as their `eventData`.
18
+ */
19
+ export declare const COMMENT_WEBHOOK_EVENTS: readonly ["note:added", "note:updated", "note:deleted"];
20
+ /**
21
+ * A comment attached to a task, delivered in a webhook payload.
22
+ *
23
+ * Webhook item-comment payloads carry two fields that don't appear on the
24
+ * REST comment resource: `url` (the direct task URL) and `item` (the full
25
+ * embedded {@link Task}). Both are parsed here so consumers handling a
26
+ * `note:added` event also get the task it belongs to.
27
+ *
28
+ * `itemId` is exposed as `taskId` to match the rest of the SDK surface.
29
+ */
30
+ export declare const WebhookItemCommentSchema: z.ZodPipe<z.ZodObject<{
31
+ id: z.ZodString;
32
+ content: z.ZodString;
33
+ postedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
34
+ postedUid: z.ZodNullable<z.ZodString>;
35
+ fileAttachment: z.ZodNullable<z.ZodObject<{
36
+ resourceType: z.ZodString;
37
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
39
+ fileType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
+ fileUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
+ fileDuration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
42
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
43
+ completed: "completed";
44
+ pending: "pending";
45
+ }>>>;
46
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
47
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
48
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
49
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
50
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
51
+ }, z.core.$strip>>;
52
+ uidsToNotify: z.ZodNullable<z.ZodArray<z.ZodString>>;
53
+ reactions: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
54
+ isDeleted: z.ZodBoolean;
55
+ itemId: z.ZodString;
56
+ url: z.ZodString;
57
+ item: z.ZodPipe<z.ZodObject<{
58
+ id: z.ZodString;
59
+ userId: z.ZodString;
60
+ projectId: z.ZodString;
61
+ sectionId: z.ZodNullable<z.ZodString>;
62
+ parentId: z.ZodNullable<z.ZodString>;
63
+ addedByUid: z.ZodNullable<z.ZodString>;
64
+ assignedByUid: z.ZodNullable<z.ZodString>;
65
+ responsibleUid: z.ZodNullable<z.ZodString>;
66
+ labels: z.ZodArray<z.ZodString>;
67
+ deadline: z.ZodNullable<z.ZodObject<{
68
+ date: z.ZodString;
69
+ lang: z.ZodString;
70
+ }, z.core.$strip>>;
71
+ duration: z.ZodNullable<z.ZodObject<{
72
+ amount: z.ZodNumber;
73
+ unit: z.ZodEnum<{
74
+ minute: "minute";
75
+ day: "day";
76
+ }>;
77
+ }, z.core.$strip>>;
78
+ checked: z.ZodBoolean;
79
+ isDeleted: z.ZodBoolean;
80
+ addedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
81
+ completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
82
+ updatedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
83
+ due: z.ZodNullable<z.ZodObject<{
84
+ isRecurring: z.ZodBoolean;
85
+ string: z.ZodString;
86
+ date: z.ZodString;
87
+ datetime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
88
+ timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
89
+ lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
90
+ }, z.core.$strip>>;
91
+ priority: z.ZodNumber;
92
+ childOrder: z.ZodNumber;
93
+ content: z.ZodString;
94
+ description: z.ZodString;
95
+ dayOrder: z.ZodNumber;
96
+ isCollapsed: z.ZodBoolean;
97
+ isUncompletable: z.ZodDefault<z.ZodBoolean>;
98
+ }, z.core.$strip>, z.ZodTransform<{
99
+ isUncompletable: boolean;
100
+ url: string;
101
+ id: string;
102
+ userId: string;
103
+ projectId: string;
104
+ sectionId: string | null;
105
+ parentId: string | null;
106
+ addedByUid: string | null;
107
+ assignedByUid: string | null;
108
+ responsibleUid: string | null;
109
+ labels: string[];
110
+ deadline: {
111
+ date: string;
112
+ lang: string;
113
+ } | null;
114
+ duration: {
115
+ amount: number;
116
+ unit: "minute" | "day";
117
+ } | null;
118
+ checked: boolean;
119
+ isDeleted: boolean;
120
+ addedAt: Date | null;
121
+ completedAt: Date | null;
122
+ updatedAt: Date | null;
123
+ due: {
124
+ isRecurring: boolean;
125
+ string: string;
126
+ date: string;
127
+ datetime?: string | null | undefined;
128
+ timezone?: string | null | undefined;
129
+ lang?: string | null | undefined;
130
+ } | null;
131
+ priority: number;
132
+ childOrder: number;
133
+ content: string;
134
+ description: string;
135
+ dayOrder: number;
136
+ isCollapsed: boolean;
137
+ }, {
138
+ id: string;
139
+ userId: string;
140
+ projectId: string;
141
+ sectionId: string | null;
142
+ parentId: string | null;
143
+ addedByUid: string | null;
144
+ assignedByUid: string | null;
145
+ responsibleUid: string | null;
146
+ labels: string[];
147
+ deadline: {
148
+ date: string;
149
+ lang: string;
150
+ } | null;
151
+ duration: {
152
+ amount: number;
153
+ unit: "minute" | "day";
154
+ } | null;
155
+ checked: boolean;
156
+ isDeleted: boolean;
157
+ addedAt: Date | null;
158
+ completedAt: Date | null;
159
+ updatedAt: Date | null;
160
+ due: {
161
+ isRecurring: boolean;
162
+ string: string;
163
+ date: string;
164
+ datetime?: string | null | undefined;
165
+ timezone?: string | null | undefined;
166
+ lang?: string | null | undefined;
167
+ } | null;
168
+ priority: number;
169
+ childOrder: number;
170
+ content: string;
171
+ description: string;
172
+ dayOrder: number;
173
+ isCollapsed: boolean;
174
+ isUncompletable: boolean;
175
+ }>>;
176
+ }, z.core.$strict>, z.ZodTransform<{
177
+ taskId: string;
178
+ id: string;
179
+ content: string;
180
+ postedAt: Date | null;
181
+ postedUid: string | null;
182
+ fileAttachment: {
183
+ resourceType: string;
184
+ fileName?: string | null | undefined;
185
+ fileSize?: number | null | undefined;
186
+ fileType?: string | null | undefined;
187
+ fileUrl?: string | null | undefined;
188
+ fileDuration?: number | null | undefined;
189
+ uploadState?: "completed" | "pending" | null | undefined;
190
+ image?: string | null | undefined;
191
+ imageWidth?: number | null | undefined;
192
+ imageHeight?: number | null | undefined;
193
+ url?: string | null | undefined;
194
+ title?: string | null | undefined;
195
+ } | null;
196
+ uidsToNotify: string[] | null;
197
+ reactions: Record<string, string[]> | null;
198
+ isDeleted: boolean;
199
+ url: string;
200
+ item: {
201
+ isUncompletable: boolean;
202
+ url: string;
203
+ id: string;
204
+ userId: string;
205
+ projectId: string;
206
+ sectionId: string | null;
207
+ parentId: string | null;
208
+ addedByUid: string | null;
209
+ assignedByUid: string | null;
210
+ responsibleUid: string | null;
211
+ labels: string[];
212
+ deadline: {
213
+ date: string;
214
+ lang: string;
215
+ } | null;
216
+ duration: {
217
+ amount: number;
218
+ unit: "minute" | "day";
219
+ } | null;
220
+ checked: boolean;
221
+ isDeleted: boolean;
222
+ addedAt: Date | null;
223
+ completedAt: Date | null;
224
+ updatedAt: Date | null;
225
+ due: {
226
+ isRecurring: boolean;
227
+ string: string;
228
+ date: string;
229
+ datetime?: string | null | undefined;
230
+ timezone?: string | null | undefined;
231
+ lang?: string | null | undefined;
232
+ } | null;
233
+ priority: number;
234
+ childOrder: number;
235
+ content: string;
236
+ description: string;
237
+ dayOrder: number;
238
+ isCollapsed: boolean;
239
+ };
240
+ }, {
241
+ id: string;
242
+ content: string;
243
+ postedAt: Date | null;
244
+ postedUid: string | null;
245
+ fileAttachment: {
246
+ resourceType: string;
247
+ fileName?: string | null | undefined;
248
+ fileSize?: number | null | undefined;
249
+ fileType?: string | null | undefined;
250
+ fileUrl?: string | null | undefined;
251
+ fileDuration?: number | null | undefined;
252
+ uploadState?: "completed" | "pending" | null | undefined;
253
+ image?: string | null | undefined;
254
+ imageWidth?: number | null | undefined;
255
+ imageHeight?: number | null | undefined;
256
+ url?: string | null | undefined;
257
+ title?: string | null | undefined;
258
+ } | null;
259
+ uidsToNotify: string[] | null;
260
+ reactions: Record<string, string[]> | null;
261
+ isDeleted: boolean;
262
+ itemId: string;
263
+ url: string;
264
+ item: {
265
+ isUncompletable: boolean;
266
+ url: string;
267
+ id: string;
268
+ userId: string;
269
+ projectId: string;
270
+ sectionId: string | null;
271
+ parentId: string | null;
272
+ addedByUid: string | null;
273
+ assignedByUid: string | null;
274
+ responsibleUid: string | null;
275
+ labels: string[];
276
+ deadline: {
277
+ date: string;
278
+ lang: string;
279
+ } | null;
280
+ duration: {
281
+ amount: number;
282
+ unit: "minute" | "day";
283
+ } | null;
284
+ checked: boolean;
285
+ isDeleted: boolean;
286
+ addedAt: Date | null;
287
+ completedAt: Date | null;
288
+ updatedAt: Date | null;
289
+ due: {
290
+ isRecurring: boolean;
291
+ string: string;
292
+ date: string;
293
+ datetime?: string | null | undefined;
294
+ timezone?: string | null | undefined;
295
+ lang?: string | null | undefined;
296
+ } | null;
297
+ priority: number;
298
+ childOrder: number;
299
+ content: string;
300
+ description: string;
301
+ dayOrder: number;
302
+ isCollapsed: boolean;
303
+ };
304
+ }>>;
305
+ /** A comment attached to a task, delivered in a webhook payload. */
306
+ export type WebhookItemComment = z.infer<typeof WebhookItemCommentSchema>;
307
+ /**
308
+ * A comment attached to a project, delivered in a webhook payload.
309
+ *
310
+ * Project comments do not carry the extra `url` or embedded project fields
311
+ * that item comments carry for the parent task.
312
+ */
313
+ export declare const WebhookProjectCommentSchema: z.ZodObject<{
314
+ id: z.ZodString;
315
+ content: z.ZodString;
316
+ postedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
317
+ postedUid: z.ZodNullable<z.ZodString>;
318
+ fileAttachment: z.ZodNullable<z.ZodObject<{
319
+ resourceType: z.ZodString;
320
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
321
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
322
+ fileType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
323
+ fileUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
324
+ fileDuration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
325
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
326
+ completed: "completed";
327
+ pending: "pending";
328
+ }>>>;
329
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
330
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
331
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
332
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
333
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
334
+ }, z.core.$strip>>;
335
+ uidsToNotify: z.ZodNullable<z.ZodArray<z.ZodString>>;
336
+ reactions: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
337
+ isDeleted: z.ZodBoolean;
338
+ projectId: z.ZodString;
339
+ }, z.core.$strict>;
340
+ /** A comment attached to a project, delivered in a webhook payload. */
341
+ export type WebhookProjectComment = z.infer<typeof WebhookProjectCommentSchema>;
342
+ /**
343
+ * The `eventData` of a `note:*` webhook payload — either an item comment
344
+ * (includes `taskId` and an embedded {@link Task}) or a project comment
345
+ * (includes `projectId`). Narrow with `'taskId' in eventData`.
346
+ */
347
+ export declare const WebhookCommentSchema: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
348
+ id: z.ZodString;
349
+ content: z.ZodString;
350
+ postedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
351
+ postedUid: z.ZodNullable<z.ZodString>;
352
+ fileAttachment: z.ZodNullable<z.ZodObject<{
353
+ resourceType: z.ZodString;
354
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
355
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
356
+ fileType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
357
+ fileUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
358
+ fileDuration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
359
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
360
+ completed: "completed";
361
+ pending: "pending";
362
+ }>>>;
363
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
364
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
365
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
366
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
367
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
368
+ }, z.core.$strip>>;
369
+ uidsToNotify: z.ZodNullable<z.ZodArray<z.ZodString>>;
370
+ reactions: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
371
+ isDeleted: z.ZodBoolean;
372
+ itemId: z.ZodString;
373
+ url: z.ZodString;
374
+ item: z.ZodPipe<z.ZodObject<{
375
+ id: z.ZodString;
376
+ userId: z.ZodString;
377
+ projectId: z.ZodString;
378
+ sectionId: z.ZodNullable<z.ZodString>;
379
+ parentId: z.ZodNullable<z.ZodString>;
380
+ addedByUid: z.ZodNullable<z.ZodString>;
381
+ assignedByUid: z.ZodNullable<z.ZodString>;
382
+ responsibleUid: z.ZodNullable<z.ZodString>;
383
+ labels: z.ZodArray<z.ZodString>;
384
+ deadline: z.ZodNullable<z.ZodObject<{
385
+ date: z.ZodString;
386
+ lang: z.ZodString;
387
+ }, z.core.$strip>>;
388
+ duration: z.ZodNullable<z.ZodObject<{
389
+ amount: z.ZodNumber;
390
+ unit: z.ZodEnum<{
391
+ minute: "minute";
392
+ day: "day";
393
+ }>;
394
+ }, z.core.$strip>>;
395
+ checked: z.ZodBoolean;
396
+ isDeleted: z.ZodBoolean;
397
+ addedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
398
+ completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
399
+ updatedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
400
+ due: z.ZodNullable<z.ZodObject<{
401
+ isRecurring: z.ZodBoolean;
402
+ string: z.ZodString;
403
+ date: z.ZodString;
404
+ datetime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
405
+ timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
406
+ lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
407
+ }, z.core.$strip>>;
408
+ priority: z.ZodNumber;
409
+ childOrder: z.ZodNumber;
410
+ content: z.ZodString;
411
+ description: z.ZodString;
412
+ dayOrder: z.ZodNumber;
413
+ isCollapsed: z.ZodBoolean;
414
+ isUncompletable: z.ZodDefault<z.ZodBoolean>;
415
+ }, z.core.$strip>, z.ZodTransform<{
416
+ isUncompletable: boolean;
417
+ url: string;
418
+ id: string;
419
+ userId: string;
420
+ projectId: string;
421
+ sectionId: string | null;
422
+ parentId: string | null;
423
+ addedByUid: string | null;
424
+ assignedByUid: string | null;
425
+ responsibleUid: string | null;
426
+ labels: string[];
427
+ deadline: {
428
+ date: string;
429
+ lang: string;
430
+ } | null;
431
+ duration: {
432
+ amount: number;
433
+ unit: "minute" | "day";
434
+ } | null;
435
+ checked: boolean;
436
+ isDeleted: boolean;
437
+ addedAt: Date | null;
438
+ completedAt: Date | null;
439
+ updatedAt: Date | null;
440
+ due: {
441
+ isRecurring: boolean;
442
+ string: string;
443
+ date: string;
444
+ datetime?: string | null | undefined;
445
+ timezone?: string | null | undefined;
446
+ lang?: string | null | undefined;
447
+ } | null;
448
+ priority: number;
449
+ childOrder: number;
450
+ content: string;
451
+ description: string;
452
+ dayOrder: number;
453
+ isCollapsed: boolean;
454
+ }, {
455
+ id: string;
456
+ userId: string;
457
+ projectId: string;
458
+ sectionId: string | null;
459
+ parentId: string | null;
460
+ addedByUid: string | null;
461
+ assignedByUid: string | null;
462
+ responsibleUid: string | null;
463
+ labels: string[];
464
+ deadline: {
465
+ date: string;
466
+ lang: string;
467
+ } | null;
468
+ duration: {
469
+ amount: number;
470
+ unit: "minute" | "day";
471
+ } | null;
472
+ checked: boolean;
473
+ isDeleted: boolean;
474
+ addedAt: Date | null;
475
+ completedAt: Date | null;
476
+ updatedAt: Date | null;
477
+ due: {
478
+ isRecurring: boolean;
479
+ string: string;
480
+ date: string;
481
+ datetime?: string | null | undefined;
482
+ timezone?: string | null | undefined;
483
+ lang?: string | null | undefined;
484
+ } | null;
485
+ priority: number;
486
+ childOrder: number;
487
+ content: string;
488
+ description: string;
489
+ dayOrder: number;
490
+ isCollapsed: boolean;
491
+ isUncompletable: boolean;
492
+ }>>;
493
+ }, z.core.$strict>, z.ZodTransform<{
494
+ taskId: string;
495
+ id: string;
496
+ content: string;
497
+ postedAt: Date | null;
498
+ postedUid: string | null;
499
+ fileAttachment: {
500
+ resourceType: string;
501
+ fileName?: string | null | undefined;
502
+ fileSize?: number | null | undefined;
503
+ fileType?: string | null | undefined;
504
+ fileUrl?: string | null | undefined;
505
+ fileDuration?: number | null | undefined;
506
+ uploadState?: "completed" | "pending" | null | undefined;
507
+ image?: string | null | undefined;
508
+ imageWidth?: number | null | undefined;
509
+ imageHeight?: number | null | undefined;
510
+ url?: string | null | undefined;
511
+ title?: string | null | undefined;
512
+ } | null;
513
+ uidsToNotify: string[] | null;
514
+ reactions: Record<string, string[]> | null;
515
+ isDeleted: boolean;
516
+ url: string;
517
+ item: {
518
+ isUncompletable: boolean;
519
+ url: string;
520
+ id: string;
521
+ userId: string;
522
+ projectId: string;
523
+ sectionId: string | null;
524
+ parentId: string | null;
525
+ addedByUid: string | null;
526
+ assignedByUid: string | null;
527
+ responsibleUid: string | null;
528
+ labels: string[];
529
+ deadline: {
530
+ date: string;
531
+ lang: string;
532
+ } | null;
533
+ duration: {
534
+ amount: number;
535
+ unit: "minute" | "day";
536
+ } | null;
537
+ checked: boolean;
538
+ isDeleted: boolean;
539
+ addedAt: Date | null;
540
+ completedAt: Date | null;
541
+ updatedAt: Date | null;
542
+ due: {
543
+ isRecurring: boolean;
544
+ string: string;
545
+ date: string;
546
+ datetime?: string | null | undefined;
547
+ timezone?: string | null | undefined;
548
+ lang?: string | null | undefined;
549
+ } | null;
550
+ priority: number;
551
+ childOrder: number;
552
+ content: string;
553
+ description: string;
554
+ dayOrder: number;
555
+ isCollapsed: boolean;
556
+ };
557
+ }, {
558
+ id: string;
559
+ content: string;
560
+ postedAt: Date | null;
561
+ postedUid: string | null;
562
+ fileAttachment: {
563
+ resourceType: string;
564
+ fileName?: string | null | undefined;
565
+ fileSize?: number | null | undefined;
566
+ fileType?: string | null | undefined;
567
+ fileUrl?: string | null | undefined;
568
+ fileDuration?: number | null | undefined;
569
+ uploadState?: "completed" | "pending" | null | undefined;
570
+ image?: string | null | undefined;
571
+ imageWidth?: number | null | undefined;
572
+ imageHeight?: number | null | undefined;
573
+ url?: string | null | undefined;
574
+ title?: string | null | undefined;
575
+ } | null;
576
+ uidsToNotify: string[] | null;
577
+ reactions: Record<string, string[]> | null;
578
+ isDeleted: boolean;
579
+ itemId: string;
580
+ url: string;
581
+ item: {
582
+ isUncompletable: boolean;
583
+ url: string;
584
+ id: string;
585
+ userId: string;
586
+ projectId: string;
587
+ sectionId: string | null;
588
+ parentId: string | null;
589
+ addedByUid: string | null;
590
+ assignedByUid: string | null;
591
+ responsibleUid: string | null;
592
+ labels: string[];
593
+ deadline: {
594
+ date: string;
595
+ lang: string;
596
+ } | null;
597
+ duration: {
598
+ amount: number;
599
+ unit: "minute" | "day";
600
+ } | null;
601
+ checked: boolean;
602
+ isDeleted: boolean;
603
+ addedAt: Date | null;
604
+ completedAt: Date | null;
605
+ updatedAt: Date | null;
606
+ due: {
607
+ isRecurring: boolean;
608
+ string: string;
609
+ date: string;
610
+ datetime?: string | null | undefined;
611
+ timezone?: string | null | undefined;
612
+ lang?: string | null | undefined;
613
+ } | null;
614
+ priority: number;
615
+ childOrder: number;
616
+ content: string;
617
+ description: string;
618
+ dayOrder: number;
619
+ isCollapsed: boolean;
620
+ };
621
+ }>>, z.ZodObject<{
622
+ id: z.ZodString;
623
+ content: z.ZodString;
624
+ postedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
625
+ postedUid: z.ZodNullable<z.ZodString>;
626
+ fileAttachment: z.ZodNullable<z.ZodObject<{
627
+ resourceType: z.ZodString;
628
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
629
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
630
+ fileType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
631
+ fileUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
632
+ fileDuration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
633
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
634
+ completed: "completed";
635
+ pending: "pending";
636
+ }>>>;
637
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
638
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
639
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
640
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
641
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
642
+ }, z.core.$strip>>;
643
+ uidsToNotify: z.ZodNullable<z.ZodArray<z.ZodString>>;
644
+ reactions: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
645
+ isDeleted: z.ZodBoolean;
646
+ projectId: z.ZodString;
647
+ }, z.core.$strict>]>;
648
+ /** A comment delivered in a webhook payload. */
649
+ export type WebhookComment = z.infer<typeof WebhookCommentSchema>;
650
+ export declare const CommentAddedPayloadSchema: z.ZodObject<{
651
+ eventName: z.ZodLiteral<"note:added">;
652
+ eventData: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
653
+ id: z.ZodString;
654
+ content: z.ZodString;
655
+ postedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
656
+ postedUid: z.ZodNullable<z.ZodString>;
657
+ fileAttachment: z.ZodNullable<z.ZodObject<{
658
+ resourceType: z.ZodString;
659
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
660
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
661
+ fileType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
662
+ fileUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
663
+ fileDuration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
664
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
665
+ completed: "completed";
666
+ pending: "pending";
667
+ }>>>;
668
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
669
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
670
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
671
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
672
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
673
+ }, z.core.$strip>>;
674
+ uidsToNotify: z.ZodNullable<z.ZodArray<z.ZodString>>;
675
+ reactions: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
676
+ isDeleted: z.ZodBoolean;
677
+ itemId: z.ZodString;
678
+ url: z.ZodString;
679
+ item: z.ZodPipe<z.ZodObject<{
680
+ id: z.ZodString;
681
+ userId: z.ZodString;
682
+ projectId: z.ZodString;
683
+ sectionId: z.ZodNullable<z.ZodString>;
684
+ parentId: z.ZodNullable<z.ZodString>;
685
+ addedByUid: z.ZodNullable<z.ZodString>;
686
+ assignedByUid: z.ZodNullable<z.ZodString>;
687
+ responsibleUid: z.ZodNullable<z.ZodString>;
688
+ labels: z.ZodArray<z.ZodString>;
689
+ deadline: z.ZodNullable<z.ZodObject<{
690
+ date: z.ZodString;
691
+ lang: z.ZodString;
692
+ }, z.core.$strip>>;
693
+ duration: z.ZodNullable<z.ZodObject<{
694
+ amount: z.ZodNumber;
695
+ unit: z.ZodEnum<{
696
+ minute: "minute";
697
+ day: "day";
698
+ }>;
699
+ }, z.core.$strip>>;
700
+ checked: z.ZodBoolean;
701
+ isDeleted: z.ZodBoolean;
702
+ addedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
703
+ completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
704
+ updatedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
705
+ due: z.ZodNullable<z.ZodObject<{
706
+ isRecurring: z.ZodBoolean;
707
+ string: z.ZodString;
708
+ date: z.ZodString;
709
+ datetime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
710
+ timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
711
+ lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
712
+ }, z.core.$strip>>;
713
+ priority: z.ZodNumber;
714
+ childOrder: z.ZodNumber;
715
+ content: z.ZodString;
716
+ description: z.ZodString;
717
+ dayOrder: z.ZodNumber;
718
+ isCollapsed: z.ZodBoolean;
719
+ isUncompletable: z.ZodDefault<z.ZodBoolean>;
720
+ }, z.core.$strip>, z.ZodTransform<{
721
+ isUncompletable: boolean;
722
+ url: string;
723
+ id: string;
724
+ userId: string;
725
+ projectId: string;
726
+ sectionId: string | null;
727
+ parentId: string | null;
728
+ addedByUid: string | null;
729
+ assignedByUid: string | null;
730
+ responsibleUid: string | null;
731
+ labels: string[];
732
+ deadline: {
733
+ date: string;
734
+ lang: string;
735
+ } | null;
736
+ duration: {
737
+ amount: number;
738
+ unit: "minute" | "day";
739
+ } | null;
740
+ checked: boolean;
741
+ isDeleted: boolean;
742
+ addedAt: Date | null;
743
+ completedAt: Date | null;
744
+ updatedAt: Date | null;
745
+ due: {
746
+ isRecurring: boolean;
747
+ string: string;
748
+ date: string;
749
+ datetime?: string | null | undefined;
750
+ timezone?: string | null | undefined;
751
+ lang?: string | null | undefined;
752
+ } | null;
753
+ priority: number;
754
+ childOrder: number;
755
+ content: string;
756
+ description: string;
757
+ dayOrder: number;
758
+ isCollapsed: boolean;
759
+ }, {
760
+ id: string;
761
+ userId: string;
762
+ projectId: string;
763
+ sectionId: string | null;
764
+ parentId: string | null;
765
+ addedByUid: string | null;
766
+ assignedByUid: string | null;
767
+ responsibleUid: string | null;
768
+ labels: string[];
769
+ deadline: {
770
+ date: string;
771
+ lang: string;
772
+ } | null;
773
+ duration: {
774
+ amount: number;
775
+ unit: "minute" | "day";
776
+ } | null;
777
+ checked: boolean;
778
+ isDeleted: boolean;
779
+ addedAt: Date | null;
780
+ completedAt: Date | null;
781
+ updatedAt: Date | null;
782
+ due: {
783
+ isRecurring: boolean;
784
+ string: string;
785
+ date: string;
786
+ datetime?: string | null | undefined;
787
+ timezone?: string | null | undefined;
788
+ lang?: string | null | undefined;
789
+ } | null;
790
+ priority: number;
791
+ childOrder: number;
792
+ content: string;
793
+ description: string;
794
+ dayOrder: number;
795
+ isCollapsed: boolean;
796
+ isUncompletable: boolean;
797
+ }>>;
798
+ }, z.core.$strict>, z.ZodTransform<{
799
+ taskId: string;
800
+ id: string;
801
+ content: string;
802
+ postedAt: Date | null;
803
+ postedUid: string | null;
804
+ fileAttachment: {
805
+ resourceType: string;
806
+ fileName?: string | null | undefined;
807
+ fileSize?: number | null | undefined;
808
+ fileType?: string | null | undefined;
809
+ fileUrl?: string | null | undefined;
810
+ fileDuration?: number | null | undefined;
811
+ uploadState?: "completed" | "pending" | null | undefined;
812
+ image?: string | null | undefined;
813
+ imageWidth?: number | null | undefined;
814
+ imageHeight?: number | null | undefined;
815
+ url?: string | null | undefined;
816
+ title?: string | null | undefined;
817
+ } | null;
818
+ uidsToNotify: string[] | null;
819
+ reactions: Record<string, string[]> | null;
820
+ isDeleted: boolean;
821
+ url: string;
822
+ item: {
823
+ isUncompletable: boolean;
824
+ url: string;
825
+ id: string;
826
+ userId: string;
827
+ projectId: string;
828
+ sectionId: string | null;
829
+ parentId: string | null;
830
+ addedByUid: string | null;
831
+ assignedByUid: string | null;
832
+ responsibleUid: string | null;
833
+ labels: string[];
834
+ deadline: {
835
+ date: string;
836
+ lang: string;
837
+ } | null;
838
+ duration: {
839
+ amount: number;
840
+ unit: "minute" | "day";
841
+ } | null;
842
+ checked: boolean;
843
+ isDeleted: boolean;
844
+ addedAt: Date | null;
845
+ completedAt: Date | null;
846
+ updatedAt: Date | null;
847
+ due: {
848
+ isRecurring: boolean;
849
+ string: string;
850
+ date: string;
851
+ datetime?: string | null | undefined;
852
+ timezone?: string | null | undefined;
853
+ lang?: string | null | undefined;
854
+ } | null;
855
+ priority: number;
856
+ childOrder: number;
857
+ content: string;
858
+ description: string;
859
+ dayOrder: number;
860
+ isCollapsed: boolean;
861
+ };
862
+ }, {
863
+ id: string;
864
+ content: string;
865
+ postedAt: Date | null;
866
+ postedUid: string | null;
867
+ fileAttachment: {
868
+ resourceType: string;
869
+ fileName?: string | null | undefined;
870
+ fileSize?: number | null | undefined;
871
+ fileType?: string | null | undefined;
872
+ fileUrl?: string | null | undefined;
873
+ fileDuration?: number | null | undefined;
874
+ uploadState?: "completed" | "pending" | null | undefined;
875
+ image?: string | null | undefined;
876
+ imageWidth?: number | null | undefined;
877
+ imageHeight?: number | null | undefined;
878
+ url?: string | null | undefined;
879
+ title?: string | null | undefined;
880
+ } | null;
881
+ uidsToNotify: string[] | null;
882
+ reactions: Record<string, string[]> | null;
883
+ isDeleted: boolean;
884
+ itemId: string;
885
+ url: string;
886
+ item: {
887
+ isUncompletable: boolean;
888
+ url: string;
889
+ id: string;
890
+ userId: string;
891
+ projectId: string;
892
+ sectionId: string | null;
893
+ parentId: string | null;
894
+ addedByUid: string | null;
895
+ assignedByUid: string | null;
896
+ responsibleUid: string | null;
897
+ labels: string[];
898
+ deadline: {
899
+ date: string;
900
+ lang: string;
901
+ } | null;
902
+ duration: {
903
+ amount: number;
904
+ unit: "minute" | "day";
905
+ } | null;
906
+ checked: boolean;
907
+ isDeleted: boolean;
908
+ addedAt: Date | null;
909
+ completedAt: Date | null;
910
+ updatedAt: Date | null;
911
+ due: {
912
+ isRecurring: boolean;
913
+ string: string;
914
+ date: string;
915
+ datetime?: string | null | undefined;
916
+ timezone?: string | null | undefined;
917
+ lang?: string | null | undefined;
918
+ } | null;
919
+ priority: number;
920
+ childOrder: number;
921
+ content: string;
922
+ description: string;
923
+ dayOrder: number;
924
+ isCollapsed: boolean;
925
+ };
926
+ }>>, z.ZodObject<{
927
+ id: z.ZodString;
928
+ content: z.ZodString;
929
+ postedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
930
+ postedUid: z.ZodNullable<z.ZodString>;
931
+ fileAttachment: z.ZodNullable<z.ZodObject<{
932
+ resourceType: z.ZodString;
933
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
934
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
935
+ fileType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
936
+ fileUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
937
+ fileDuration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
938
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
939
+ completed: "completed";
940
+ pending: "pending";
941
+ }>>>;
942
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
943
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
944
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
945
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
946
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
947
+ }, z.core.$strip>>;
948
+ uidsToNotify: z.ZodNullable<z.ZodArray<z.ZodString>>;
949
+ reactions: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
950
+ isDeleted: z.ZodBoolean;
951
+ projectId: z.ZodString;
952
+ }, z.core.$strict>]>;
953
+ version: z.ZodEnum<{
954
+ 1: "1";
955
+ }>;
956
+ userId: z.ZodString;
957
+ initiator: z.ZodObject<{
958
+ id: z.ZodString;
959
+ fullName: z.ZodString;
960
+ email: z.ZodString;
961
+ imageId: z.ZodNullable<z.ZodString>;
962
+ isPremium: z.ZodBoolean;
963
+ }, z.core.$strip>;
964
+ triggeredAt: z.ZodCoercedDate<unknown>;
965
+ }, z.core.$strip>;
966
+ export type CommentAddedPayload = z.infer<typeof CommentAddedPayloadSchema>;
967
+ export declare const CommentUpdatedPayloadSchema: z.ZodObject<{
968
+ eventName: z.ZodLiteral<"note:updated">;
969
+ eventData: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
970
+ id: z.ZodString;
971
+ content: z.ZodString;
972
+ postedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
973
+ postedUid: z.ZodNullable<z.ZodString>;
974
+ fileAttachment: z.ZodNullable<z.ZodObject<{
975
+ resourceType: z.ZodString;
976
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
977
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
978
+ fileType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
979
+ fileUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
980
+ fileDuration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
981
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
982
+ completed: "completed";
983
+ pending: "pending";
984
+ }>>>;
985
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
986
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
987
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
988
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
989
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
990
+ }, z.core.$strip>>;
991
+ uidsToNotify: z.ZodNullable<z.ZodArray<z.ZodString>>;
992
+ reactions: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
993
+ isDeleted: z.ZodBoolean;
994
+ itemId: z.ZodString;
995
+ url: z.ZodString;
996
+ item: z.ZodPipe<z.ZodObject<{
997
+ id: z.ZodString;
998
+ userId: z.ZodString;
999
+ projectId: z.ZodString;
1000
+ sectionId: z.ZodNullable<z.ZodString>;
1001
+ parentId: z.ZodNullable<z.ZodString>;
1002
+ addedByUid: z.ZodNullable<z.ZodString>;
1003
+ assignedByUid: z.ZodNullable<z.ZodString>;
1004
+ responsibleUid: z.ZodNullable<z.ZodString>;
1005
+ labels: z.ZodArray<z.ZodString>;
1006
+ deadline: z.ZodNullable<z.ZodObject<{
1007
+ date: z.ZodString;
1008
+ lang: z.ZodString;
1009
+ }, z.core.$strip>>;
1010
+ duration: z.ZodNullable<z.ZodObject<{
1011
+ amount: z.ZodNumber;
1012
+ unit: z.ZodEnum<{
1013
+ minute: "minute";
1014
+ day: "day";
1015
+ }>;
1016
+ }, z.core.$strip>>;
1017
+ checked: z.ZodBoolean;
1018
+ isDeleted: z.ZodBoolean;
1019
+ addedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
1020
+ completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
1021
+ updatedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
1022
+ due: z.ZodNullable<z.ZodObject<{
1023
+ isRecurring: z.ZodBoolean;
1024
+ string: z.ZodString;
1025
+ date: z.ZodString;
1026
+ datetime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1027
+ timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1028
+ lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1029
+ }, z.core.$strip>>;
1030
+ priority: z.ZodNumber;
1031
+ childOrder: z.ZodNumber;
1032
+ content: z.ZodString;
1033
+ description: z.ZodString;
1034
+ dayOrder: z.ZodNumber;
1035
+ isCollapsed: z.ZodBoolean;
1036
+ isUncompletable: z.ZodDefault<z.ZodBoolean>;
1037
+ }, z.core.$strip>, z.ZodTransform<{
1038
+ isUncompletable: boolean;
1039
+ url: string;
1040
+ id: string;
1041
+ userId: string;
1042
+ projectId: string;
1043
+ sectionId: string | null;
1044
+ parentId: string | null;
1045
+ addedByUid: string | null;
1046
+ assignedByUid: string | null;
1047
+ responsibleUid: string | null;
1048
+ labels: string[];
1049
+ deadline: {
1050
+ date: string;
1051
+ lang: string;
1052
+ } | null;
1053
+ duration: {
1054
+ amount: number;
1055
+ unit: "minute" | "day";
1056
+ } | null;
1057
+ checked: boolean;
1058
+ isDeleted: boolean;
1059
+ addedAt: Date | null;
1060
+ completedAt: Date | null;
1061
+ updatedAt: Date | null;
1062
+ due: {
1063
+ isRecurring: boolean;
1064
+ string: string;
1065
+ date: string;
1066
+ datetime?: string | null | undefined;
1067
+ timezone?: string | null | undefined;
1068
+ lang?: string | null | undefined;
1069
+ } | null;
1070
+ priority: number;
1071
+ childOrder: number;
1072
+ content: string;
1073
+ description: string;
1074
+ dayOrder: number;
1075
+ isCollapsed: boolean;
1076
+ }, {
1077
+ id: string;
1078
+ userId: string;
1079
+ projectId: string;
1080
+ sectionId: string | null;
1081
+ parentId: string | null;
1082
+ addedByUid: string | null;
1083
+ assignedByUid: string | null;
1084
+ responsibleUid: string | null;
1085
+ labels: string[];
1086
+ deadline: {
1087
+ date: string;
1088
+ lang: string;
1089
+ } | null;
1090
+ duration: {
1091
+ amount: number;
1092
+ unit: "minute" | "day";
1093
+ } | null;
1094
+ checked: boolean;
1095
+ isDeleted: boolean;
1096
+ addedAt: Date | null;
1097
+ completedAt: Date | null;
1098
+ updatedAt: Date | null;
1099
+ due: {
1100
+ isRecurring: boolean;
1101
+ string: string;
1102
+ date: string;
1103
+ datetime?: string | null | undefined;
1104
+ timezone?: string | null | undefined;
1105
+ lang?: string | null | undefined;
1106
+ } | null;
1107
+ priority: number;
1108
+ childOrder: number;
1109
+ content: string;
1110
+ description: string;
1111
+ dayOrder: number;
1112
+ isCollapsed: boolean;
1113
+ isUncompletable: boolean;
1114
+ }>>;
1115
+ }, z.core.$strict>, z.ZodTransform<{
1116
+ taskId: string;
1117
+ id: string;
1118
+ content: string;
1119
+ postedAt: Date | null;
1120
+ postedUid: string | null;
1121
+ fileAttachment: {
1122
+ resourceType: string;
1123
+ fileName?: string | null | undefined;
1124
+ fileSize?: number | null | undefined;
1125
+ fileType?: string | null | undefined;
1126
+ fileUrl?: string | null | undefined;
1127
+ fileDuration?: number | null | undefined;
1128
+ uploadState?: "completed" | "pending" | null | undefined;
1129
+ image?: string | null | undefined;
1130
+ imageWidth?: number | null | undefined;
1131
+ imageHeight?: number | null | undefined;
1132
+ url?: string | null | undefined;
1133
+ title?: string | null | undefined;
1134
+ } | null;
1135
+ uidsToNotify: string[] | null;
1136
+ reactions: Record<string, string[]> | null;
1137
+ isDeleted: boolean;
1138
+ url: string;
1139
+ item: {
1140
+ isUncompletable: boolean;
1141
+ url: string;
1142
+ id: string;
1143
+ userId: string;
1144
+ projectId: string;
1145
+ sectionId: string | null;
1146
+ parentId: string | null;
1147
+ addedByUid: string | null;
1148
+ assignedByUid: string | null;
1149
+ responsibleUid: string | null;
1150
+ labels: string[];
1151
+ deadline: {
1152
+ date: string;
1153
+ lang: string;
1154
+ } | null;
1155
+ duration: {
1156
+ amount: number;
1157
+ unit: "minute" | "day";
1158
+ } | null;
1159
+ checked: boolean;
1160
+ isDeleted: boolean;
1161
+ addedAt: Date | null;
1162
+ completedAt: Date | null;
1163
+ updatedAt: Date | null;
1164
+ due: {
1165
+ isRecurring: boolean;
1166
+ string: string;
1167
+ date: string;
1168
+ datetime?: string | null | undefined;
1169
+ timezone?: string | null | undefined;
1170
+ lang?: string | null | undefined;
1171
+ } | null;
1172
+ priority: number;
1173
+ childOrder: number;
1174
+ content: string;
1175
+ description: string;
1176
+ dayOrder: number;
1177
+ isCollapsed: boolean;
1178
+ };
1179
+ }, {
1180
+ id: string;
1181
+ content: string;
1182
+ postedAt: Date | null;
1183
+ postedUid: string | null;
1184
+ fileAttachment: {
1185
+ resourceType: string;
1186
+ fileName?: string | null | undefined;
1187
+ fileSize?: number | null | undefined;
1188
+ fileType?: string | null | undefined;
1189
+ fileUrl?: string | null | undefined;
1190
+ fileDuration?: number | null | undefined;
1191
+ uploadState?: "completed" | "pending" | null | undefined;
1192
+ image?: string | null | undefined;
1193
+ imageWidth?: number | null | undefined;
1194
+ imageHeight?: number | null | undefined;
1195
+ url?: string | null | undefined;
1196
+ title?: string | null | undefined;
1197
+ } | null;
1198
+ uidsToNotify: string[] | null;
1199
+ reactions: Record<string, string[]> | null;
1200
+ isDeleted: boolean;
1201
+ itemId: string;
1202
+ url: string;
1203
+ item: {
1204
+ isUncompletable: boolean;
1205
+ url: string;
1206
+ id: string;
1207
+ userId: string;
1208
+ projectId: string;
1209
+ sectionId: string | null;
1210
+ parentId: string | null;
1211
+ addedByUid: string | null;
1212
+ assignedByUid: string | null;
1213
+ responsibleUid: string | null;
1214
+ labels: string[];
1215
+ deadline: {
1216
+ date: string;
1217
+ lang: string;
1218
+ } | null;
1219
+ duration: {
1220
+ amount: number;
1221
+ unit: "minute" | "day";
1222
+ } | null;
1223
+ checked: boolean;
1224
+ isDeleted: boolean;
1225
+ addedAt: Date | null;
1226
+ completedAt: Date | null;
1227
+ updatedAt: Date | null;
1228
+ due: {
1229
+ isRecurring: boolean;
1230
+ string: string;
1231
+ date: string;
1232
+ datetime?: string | null | undefined;
1233
+ timezone?: string | null | undefined;
1234
+ lang?: string | null | undefined;
1235
+ } | null;
1236
+ priority: number;
1237
+ childOrder: number;
1238
+ content: string;
1239
+ description: string;
1240
+ dayOrder: number;
1241
+ isCollapsed: boolean;
1242
+ };
1243
+ }>>, z.ZodObject<{
1244
+ id: z.ZodString;
1245
+ content: z.ZodString;
1246
+ postedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
1247
+ postedUid: z.ZodNullable<z.ZodString>;
1248
+ fileAttachment: z.ZodNullable<z.ZodObject<{
1249
+ resourceType: z.ZodString;
1250
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1251
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1252
+ fileType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1253
+ fileUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1254
+ fileDuration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1255
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1256
+ completed: "completed";
1257
+ pending: "pending";
1258
+ }>>>;
1259
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1260
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1261
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1262
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1263
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1264
+ }, z.core.$strip>>;
1265
+ uidsToNotify: z.ZodNullable<z.ZodArray<z.ZodString>>;
1266
+ reactions: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
1267
+ isDeleted: z.ZodBoolean;
1268
+ projectId: z.ZodString;
1269
+ }, z.core.$strict>]>;
1270
+ version: z.ZodEnum<{
1271
+ 1: "1";
1272
+ }>;
1273
+ userId: z.ZodString;
1274
+ initiator: z.ZodObject<{
1275
+ id: z.ZodString;
1276
+ fullName: z.ZodString;
1277
+ email: z.ZodString;
1278
+ imageId: z.ZodNullable<z.ZodString>;
1279
+ isPremium: z.ZodBoolean;
1280
+ }, z.core.$strip>;
1281
+ triggeredAt: z.ZodCoercedDate<unknown>;
1282
+ }, z.core.$strip>;
1283
+ export type CommentUpdatedPayload = z.infer<typeof CommentUpdatedPayloadSchema>;
1284
+ export declare const CommentDeletedPayloadSchema: z.ZodObject<{
1285
+ eventName: z.ZodLiteral<"note:deleted">;
1286
+ eventData: z.ZodUnion<readonly [z.ZodPipe<z.ZodObject<{
1287
+ id: z.ZodString;
1288
+ content: z.ZodString;
1289
+ postedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
1290
+ postedUid: z.ZodNullable<z.ZodString>;
1291
+ fileAttachment: z.ZodNullable<z.ZodObject<{
1292
+ resourceType: z.ZodString;
1293
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1294
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1295
+ fileType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1296
+ fileUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1297
+ fileDuration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1298
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1299
+ completed: "completed";
1300
+ pending: "pending";
1301
+ }>>>;
1302
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1303
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1304
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1305
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1306
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1307
+ }, z.core.$strip>>;
1308
+ uidsToNotify: z.ZodNullable<z.ZodArray<z.ZodString>>;
1309
+ reactions: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
1310
+ isDeleted: z.ZodBoolean;
1311
+ itemId: z.ZodString;
1312
+ url: z.ZodString;
1313
+ item: z.ZodPipe<z.ZodObject<{
1314
+ id: z.ZodString;
1315
+ userId: z.ZodString;
1316
+ projectId: z.ZodString;
1317
+ sectionId: z.ZodNullable<z.ZodString>;
1318
+ parentId: z.ZodNullable<z.ZodString>;
1319
+ addedByUid: z.ZodNullable<z.ZodString>;
1320
+ assignedByUid: z.ZodNullable<z.ZodString>;
1321
+ responsibleUid: z.ZodNullable<z.ZodString>;
1322
+ labels: z.ZodArray<z.ZodString>;
1323
+ deadline: z.ZodNullable<z.ZodObject<{
1324
+ date: z.ZodString;
1325
+ lang: z.ZodString;
1326
+ }, z.core.$strip>>;
1327
+ duration: z.ZodNullable<z.ZodObject<{
1328
+ amount: z.ZodNumber;
1329
+ unit: z.ZodEnum<{
1330
+ minute: "minute";
1331
+ day: "day";
1332
+ }>;
1333
+ }, z.core.$strip>>;
1334
+ checked: z.ZodBoolean;
1335
+ isDeleted: z.ZodBoolean;
1336
+ addedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
1337
+ completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
1338
+ updatedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
1339
+ due: z.ZodNullable<z.ZodObject<{
1340
+ isRecurring: z.ZodBoolean;
1341
+ string: z.ZodString;
1342
+ date: z.ZodString;
1343
+ datetime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1344
+ timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1345
+ lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1346
+ }, z.core.$strip>>;
1347
+ priority: z.ZodNumber;
1348
+ childOrder: z.ZodNumber;
1349
+ content: z.ZodString;
1350
+ description: z.ZodString;
1351
+ dayOrder: z.ZodNumber;
1352
+ isCollapsed: z.ZodBoolean;
1353
+ isUncompletable: z.ZodDefault<z.ZodBoolean>;
1354
+ }, z.core.$strip>, z.ZodTransform<{
1355
+ isUncompletable: boolean;
1356
+ url: string;
1357
+ id: string;
1358
+ userId: string;
1359
+ projectId: string;
1360
+ sectionId: string | null;
1361
+ parentId: string | null;
1362
+ addedByUid: string | null;
1363
+ assignedByUid: string | null;
1364
+ responsibleUid: string | null;
1365
+ labels: string[];
1366
+ deadline: {
1367
+ date: string;
1368
+ lang: string;
1369
+ } | null;
1370
+ duration: {
1371
+ amount: number;
1372
+ unit: "minute" | "day";
1373
+ } | null;
1374
+ checked: boolean;
1375
+ isDeleted: boolean;
1376
+ addedAt: Date | null;
1377
+ completedAt: Date | null;
1378
+ updatedAt: Date | null;
1379
+ due: {
1380
+ isRecurring: boolean;
1381
+ string: string;
1382
+ date: string;
1383
+ datetime?: string | null | undefined;
1384
+ timezone?: string | null | undefined;
1385
+ lang?: string | null | undefined;
1386
+ } | null;
1387
+ priority: number;
1388
+ childOrder: number;
1389
+ content: string;
1390
+ description: string;
1391
+ dayOrder: number;
1392
+ isCollapsed: boolean;
1393
+ }, {
1394
+ id: string;
1395
+ userId: string;
1396
+ projectId: string;
1397
+ sectionId: string | null;
1398
+ parentId: string | null;
1399
+ addedByUid: string | null;
1400
+ assignedByUid: string | null;
1401
+ responsibleUid: string | null;
1402
+ labels: string[];
1403
+ deadline: {
1404
+ date: string;
1405
+ lang: string;
1406
+ } | null;
1407
+ duration: {
1408
+ amount: number;
1409
+ unit: "minute" | "day";
1410
+ } | null;
1411
+ checked: boolean;
1412
+ isDeleted: boolean;
1413
+ addedAt: Date | null;
1414
+ completedAt: Date | null;
1415
+ updatedAt: Date | null;
1416
+ due: {
1417
+ isRecurring: boolean;
1418
+ string: string;
1419
+ date: string;
1420
+ datetime?: string | null | undefined;
1421
+ timezone?: string | null | undefined;
1422
+ lang?: string | null | undefined;
1423
+ } | null;
1424
+ priority: number;
1425
+ childOrder: number;
1426
+ content: string;
1427
+ description: string;
1428
+ dayOrder: number;
1429
+ isCollapsed: boolean;
1430
+ isUncompletable: boolean;
1431
+ }>>;
1432
+ }, z.core.$strict>, z.ZodTransform<{
1433
+ taskId: string;
1434
+ id: string;
1435
+ content: string;
1436
+ postedAt: Date | null;
1437
+ postedUid: string | null;
1438
+ fileAttachment: {
1439
+ resourceType: string;
1440
+ fileName?: string | null | undefined;
1441
+ fileSize?: number | null | undefined;
1442
+ fileType?: string | null | undefined;
1443
+ fileUrl?: string | null | undefined;
1444
+ fileDuration?: number | null | undefined;
1445
+ uploadState?: "completed" | "pending" | null | undefined;
1446
+ image?: string | null | undefined;
1447
+ imageWidth?: number | null | undefined;
1448
+ imageHeight?: number | null | undefined;
1449
+ url?: string | null | undefined;
1450
+ title?: string | null | undefined;
1451
+ } | null;
1452
+ uidsToNotify: string[] | null;
1453
+ reactions: Record<string, string[]> | null;
1454
+ isDeleted: boolean;
1455
+ url: string;
1456
+ item: {
1457
+ isUncompletable: boolean;
1458
+ url: string;
1459
+ id: string;
1460
+ userId: string;
1461
+ projectId: string;
1462
+ sectionId: string | null;
1463
+ parentId: string | null;
1464
+ addedByUid: string | null;
1465
+ assignedByUid: string | null;
1466
+ responsibleUid: string | null;
1467
+ labels: string[];
1468
+ deadline: {
1469
+ date: string;
1470
+ lang: string;
1471
+ } | null;
1472
+ duration: {
1473
+ amount: number;
1474
+ unit: "minute" | "day";
1475
+ } | null;
1476
+ checked: boolean;
1477
+ isDeleted: boolean;
1478
+ addedAt: Date | null;
1479
+ completedAt: Date | null;
1480
+ updatedAt: Date | null;
1481
+ due: {
1482
+ isRecurring: boolean;
1483
+ string: string;
1484
+ date: string;
1485
+ datetime?: string | null | undefined;
1486
+ timezone?: string | null | undefined;
1487
+ lang?: string | null | undefined;
1488
+ } | null;
1489
+ priority: number;
1490
+ childOrder: number;
1491
+ content: string;
1492
+ description: string;
1493
+ dayOrder: number;
1494
+ isCollapsed: boolean;
1495
+ };
1496
+ }, {
1497
+ id: string;
1498
+ content: string;
1499
+ postedAt: Date | null;
1500
+ postedUid: string | null;
1501
+ fileAttachment: {
1502
+ resourceType: string;
1503
+ fileName?: string | null | undefined;
1504
+ fileSize?: number | null | undefined;
1505
+ fileType?: string | null | undefined;
1506
+ fileUrl?: string | null | undefined;
1507
+ fileDuration?: number | null | undefined;
1508
+ uploadState?: "completed" | "pending" | null | undefined;
1509
+ image?: string | null | undefined;
1510
+ imageWidth?: number | null | undefined;
1511
+ imageHeight?: number | null | undefined;
1512
+ url?: string | null | undefined;
1513
+ title?: string | null | undefined;
1514
+ } | null;
1515
+ uidsToNotify: string[] | null;
1516
+ reactions: Record<string, string[]> | null;
1517
+ isDeleted: boolean;
1518
+ itemId: string;
1519
+ url: string;
1520
+ item: {
1521
+ isUncompletable: boolean;
1522
+ url: string;
1523
+ id: string;
1524
+ userId: string;
1525
+ projectId: string;
1526
+ sectionId: string | null;
1527
+ parentId: string | null;
1528
+ addedByUid: string | null;
1529
+ assignedByUid: string | null;
1530
+ responsibleUid: string | null;
1531
+ labels: string[];
1532
+ deadline: {
1533
+ date: string;
1534
+ lang: string;
1535
+ } | null;
1536
+ duration: {
1537
+ amount: number;
1538
+ unit: "minute" | "day";
1539
+ } | null;
1540
+ checked: boolean;
1541
+ isDeleted: boolean;
1542
+ addedAt: Date | null;
1543
+ completedAt: Date | null;
1544
+ updatedAt: Date | null;
1545
+ due: {
1546
+ isRecurring: boolean;
1547
+ string: string;
1548
+ date: string;
1549
+ datetime?: string | null | undefined;
1550
+ timezone?: string | null | undefined;
1551
+ lang?: string | null | undefined;
1552
+ } | null;
1553
+ priority: number;
1554
+ childOrder: number;
1555
+ content: string;
1556
+ description: string;
1557
+ dayOrder: number;
1558
+ isCollapsed: boolean;
1559
+ };
1560
+ }>>, z.ZodObject<{
1561
+ id: z.ZodString;
1562
+ content: z.ZodString;
1563
+ postedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
1564
+ postedUid: z.ZodNullable<z.ZodString>;
1565
+ fileAttachment: z.ZodNullable<z.ZodObject<{
1566
+ resourceType: z.ZodString;
1567
+ fileName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1568
+ fileSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1569
+ fileType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1570
+ fileUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1571
+ fileDuration: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1572
+ uploadState: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
1573
+ completed: "completed";
1574
+ pending: "pending";
1575
+ }>>>;
1576
+ image: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1577
+ imageWidth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1578
+ imageHeight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1579
+ url: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1580
+ title: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1581
+ }, z.core.$strip>>;
1582
+ uidsToNotify: z.ZodNullable<z.ZodArray<z.ZodString>>;
1583
+ reactions: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
1584
+ isDeleted: z.ZodBoolean;
1585
+ projectId: z.ZodString;
1586
+ }, z.core.$strict>]>;
1587
+ version: z.ZodEnum<{
1588
+ 1: "1";
1589
+ }>;
1590
+ userId: z.ZodString;
1591
+ initiator: z.ZodObject<{
1592
+ id: z.ZodString;
1593
+ fullName: z.ZodString;
1594
+ email: z.ZodString;
1595
+ imageId: z.ZodNullable<z.ZodString>;
1596
+ isPremium: z.ZodBoolean;
1597
+ }, z.core.$strip>;
1598
+ triggeredAt: z.ZodCoercedDate<unknown>;
1599
+ }, z.core.$strip>;
1600
+ export type CommentDeletedPayload = z.infer<typeof CommentDeletedPayloadSchema>;