@doist/todoist-sdk 9.3.0 → 9.4.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,981 @@
1
+ import { z } from 'zod';
2
+ /**
3
+ * Enum-like object of task (`item:*`) webhook event names. Single source of
4
+ * truth for the discriminator values — `TASK_WEBHOOK_EVENTS` and every
5
+ * `z.literal()` below derive from it.
6
+ */
7
+ export declare const TaskWebhookEventEnum: {
8
+ readonly Added: "item:added";
9
+ readonly Updated: "item:updated";
10
+ readonly Completed: "item:completed";
11
+ readonly Uncompleted: "item:uncompleted";
12
+ readonly Deleted: "item:deleted";
13
+ };
14
+ /**
15
+ * Webhook events that carry a {@link Task} as their `eventData`.
16
+ *
17
+ * The on-the-wire event names remain `item:*` for historical reasons; the
18
+ * SDK types call them `Task*` to match the rest of the public API where the
19
+ * resource is named `Task`.
20
+ */
21
+ export declare const TASK_WEBHOOK_EVENTS: readonly ["item:added", "item:updated", "item:completed", "item:uncompleted", "item:deleted"];
22
+ /**
23
+ * Possible values for the `updateIntent` field on `item:updated`'s
24
+ * `eventDataExtra`. `item_updated` is the default; the others narrow the
25
+ * reason for the update (for example, a recurring completion or a change of
26
+ * assignee).
27
+ *
28
+ * @see https://developer.todoist.com/sync/v1/#webhooks (Events Extra)
29
+ */
30
+ export declare const UPDATE_INTENTS: readonly ["item_updated", "item_completed", "item_uncompleted", "responsible_uid_changed"];
31
+ /** The reason an `item:updated` event was triggered. */
32
+ export type UpdateIntent = (typeof UPDATE_INTENTS)[number];
33
+ /**
34
+ * An unrecognised value from a future backend release degrades gracefully to
35
+ * `'item_updated'` rather than crashing the whole payload parse.
36
+ */
37
+ export declare const UpdateIntentSchema: z.ZodCatch<z.ZodEnum<{
38
+ item_updated: "item_updated";
39
+ item_completed: "item_completed";
40
+ item_uncompleted: "item_uncompleted";
41
+ responsible_uid_changed: "responsible_uid_changed";
42
+ }>>;
43
+ /**
44
+ * Extra info delivered alongside an `item:updated` event when the initiator
45
+ * is the acting user. Contains the pre-update task state plus the reason for
46
+ * the update — useful for diffing or for distinguishing manual edits from
47
+ * recurring-task completions.
48
+ *
49
+ * @see https://developer.todoist.com/sync/v1/#webhooks (Events Extra)
50
+ */
51
+ export declare const TaskUpdatedExtraSchema: z.ZodObject<{
52
+ oldItem: z.ZodPipe<z.ZodObject<{
53
+ id: z.ZodString;
54
+ userId: z.ZodString;
55
+ projectId: z.ZodString;
56
+ sectionId: z.ZodNullable<z.ZodString>;
57
+ parentId: z.ZodNullable<z.ZodString>;
58
+ addedByUid: z.ZodNullable<z.ZodString>;
59
+ assignedByUid: z.ZodNullable<z.ZodString>;
60
+ responsibleUid: z.ZodNullable<z.ZodString>;
61
+ labels: z.ZodArray<z.ZodString>;
62
+ deadline: z.ZodNullable<z.ZodObject<{
63
+ date: z.ZodString;
64
+ lang: z.ZodString;
65
+ }, z.core.$strip>>;
66
+ duration: z.ZodNullable<z.ZodObject<{
67
+ amount: z.ZodNumber;
68
+ unit: z.ZodEnum<{
69
+ minute: "minute";
70
+ day: "day";
71
+ }>;
72
+ }, z.core.$strip>>;
73
+ checked: z.ZodBoolean;
74
+ isDeleted: z.ZodBoolean;
75
+ addedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
76
+ completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
77
+ updatedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
78
+ due: z.ZodNullable<z.ZodObject<{
79
+ isRecurring: z.ZodBoolean;
80
+ string: z.ZodString;
81
+ date: z.ZodString;
82
+ datetime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
83
+ timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
84
+ lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
85
+ }, z.core.$strip>>;
86
+ priority: z.ZodNumber;
87
+ childOrder: z.ZodNumber;
88
+ content: z.ZodString;
89
+ description: z.ZodString;
90
+ dayOrder: z.ZodNumber;
91
+ isCollapsed: z.ZodBoolean;
92
+ isUncompletable: z.ZodDefault<z.ZodBoolean>;
93
+ }, z.core.$strip>, z.ZodTransform<{
94
+ isUncompletable: boolean;
95
+ url: string;
96
+ id: string;
97
+ userId: string;
98
+ projectId: string;
99
+ sectionId: string | null;
100
+ parentId: string | null;
101
+ addedByUid: string | null;
102
+ assignedByUid: string | null;
103
+ responsibleUid: string | null;
104
+ labels: string[];
105
+ deadline: {
106
+ date: string;
107
+ lang: string;
108
+ } | null;
109
+ duration: {
110
+ amount: number;
111
+ unit: "minute" | "day";
112
+ } | null;
113
+ checked: boolean;
114
+ isDeleted: boolean;
115
+ addedAt: Date | null;
116
+ completedAt: Date | null;
117
+ updatedAt: Date | null;
118
+ due: {
119
+ isRecurring: boolean;
120
+ string: string;
121
+ date: string;
122
+ datetime?: string | null | undefined;
123
+ timezone?: string | null | undefined;
124
+ lang?: string | null | undefined;
125
+ } | null;
126
+ priority: number;
127
+ childOrder: number;
128
+ content: string;
129
+ description: string;
130
+ dayOrder: number;
131
+ isCollapsed: boolean;
132
+ }, {
133
+ id: string;
134
+ userId: string;
135
+ projectId: string;
136
+ sectionId: string | null;
137
+ parentId: string | null;
138
+ addedByUid: string | null;
139
+ assignedByUid: string | null;
140
+ responsibleUid: string | null;
141
+ labels: string[];
142
+ deadline: {
143
+ date: string;
144
+ lang: string;
145
+ } | null;
146
+ duration: {
147
+ amount: number;
148
+ unit: "minute" | "day";
149
+ } | null;
150
+ checked: boolean;
151
+ isDeleted: boolean;
152
+ addedAt: Date | null;
153
+ completedAt: Date | null;
154
+ updatedAt: Date | null;
155
+ due: {
156
+ isRecurring: boolean;
157
+ string: string;
158
+ date: string;
159
+ datetime?: string | null | undefined;
160
+ timezone?: string | null | undefined;
161
+ lang?: string | null | undefined;
162
+ } | null;
163
+ priority: number;
164
+ childOrder: number;
165
+ content: string;
166
+ description: string;
167
+ dayOrder: number;
168
+ isCollapsed: boolean;
169
+ isUncompletable: boolean;
170
+ }>>;
171
+ updateIntent: z.ZodCatch<z.ZodEnum<{
172
+ item_updated: "item_updated";
173
+ item_completed: "item_completed";
174
+ item_uncompleted: "item_uncompleted";
175
+ responsible_uid_changed: "responsible_uid_changed";
176
+ }>>;
177
+ }, z.core.$strip>;
178
+ /** Extra info carried on `item:updated` payloads. */
179
+ export type TaskUpdatedExtra = z.infer<typeof TaskUpdatedExtraSchema>;
180
+ export declare const TaskAddedPayloadSchema: z.ZodObject<{
181
+ eventName: z.ZodLiteral<"item:added">;
182
+ eventData: z.ZodPipe<z.ZodObject<{
183
+ id: z.ZodString;
184
+ userId: z.ZodString;
185
+ projectId: z.ZodString;
186
+ sectionId: z.ZodNullable<z.ZodString>;
187
+ parentId: z.ZodNullable<z.ZodString>;
188
+ addedByUid: z.ZodNullable<z.ZodString>;
189
+ assignedByUid: z.ZodNullable<z.ZodString>;
190
+ responsibleUid: z.ZodNullable<z.ZodString>;
191
+ labels: z.ZodArray<z.ZodString>;
192
+ deadline: z.ZodNullable<z.ZodObject<{
193
+ date: z.ZodString;
194
+ lang: z.ZodString;
195
+ }, z.core.$strip>>;
196
+ duration: z.ZodNullable<z.ZodObject<{
197
+ amount: z.ZodNumber;
198
+ unit: z.ZodEnum<{
199
+ minute: "minute";
200
+ day: "day";
201
+ }>;
202
+ }, z.core.$strip>>;
203
+ checked: z.ZodBoolean;
204
+ isDeleted: z.ZodBoolean;
205
+ addedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
206
+ completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
207
+ updatedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
208
+ due: z.ZodNullable<z.ZodObject<{
209
+ isRecurring: z.ZodBoolean;
210
+ string: z.ZodString;
211
+ date: z.ZodString;
212
+ datetime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
213
+ timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
214
+ lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
215
+ }, z.core.$strip>>;
216
+ priority: z.ZodNumber;
217
+ childOrder: z.ZodNumber;
218
+ content: z.ZodString;
219
+ description: z.ZodString;
220
+ dayOrder: z.ZodNumber;
221
+ isCollapsed: z.ZodBoolean;
222
+ isUncompletable: z.ZodDefault<z.ZodBoolean>;
223
+ }, z.core.$strip>, z.ZodTransform<{
224
+ isUncompletable: boolean;
225
+ url: string;
226
+ id: string;
227
+ userId: string;
228
+ projectId: string;
229
+ sectionId: string | null;
230
+ parentId: string | null;
231
+ addedByUid: string | null;
232
+ assignedByUid: string | null;
233
+ responsibleUid: string | null;
234
+ labels: string[];
235
+ deadline: {
236
+ date: string;
237
+ lang: string;
238
+ } | null;
239
+ duration: {
240
+ amount: number;
241
+ unit: "minute" | "day";
242
+ } | null;
243
+ checked: boolean;
244
+ isDeleted: boolean;
245
+ addedAt: Date | null;
246
+ completedAt: Date | null;
247
+ updatedAt: Date | null;
248
+ due: {
249
+ isRecurring: boolean;
250
+ string: string;
251
+ date: string;
252
+ datetime?: string | null | undefined;
253
+ timezone?: string | null | undefined;
254
+ lang?: string | null | undefined;
255
+ } | null;
256
+ priority: number;
257
+ childOrder: number;
258
+ content: string;
259
+ description: string;
260
+ dayOrder: number;
261
+ isCollapsed: boolean;
262
+ }, {
263
+ id: string;
264
+ userId: string;
265
+ projectId: string;
266
+ sectionId: string | null;
267
+ parentId: string | null;
268
+ addedByUid: string | null;
269
+ assignedByUid: string | null;
270
+ responsibleUid: string | null;
271
+ labels: string[];
272
+ deadline: {
273
+ date: string;
274
+ lang: string;
275
+ } | null;
276
+ duration: {
277
+ amount: number;
278
+ unit: "minute" | "day";
279
+ } | null;
280
+ checked: boolean;
281
+ isDeleted: boolean;
282
+ addedAt: Date | null;
283
+ completedAt: Date | null;
284
+ updatedAt: Date | null;
285
+ due: {
286
+ isRecurring: boolean;
287
+ string: string;
288
+ date: string;
289
+ datetime?: string | null | undefined;
290
+ timezone?: string | null | undefined;
291
+ lang?: string | null | undefined;
292
+ } | null;
293
+ priority: number;
294
+ childOrder: number;
295
+ content: string;
296
+ description: string;
297
+ dayOrder: number;
298
+ isCollapsed: boolean;
299
+ isUncompletable: boolean;
300
+ }>>;
301
+ version: z.ZodEnum<{
302
+ 1: "1";
303
+ }>;
304
+ userId: z.ZodString;
305
+ initiator: z.ZodObject<{
306
+ id: z.ZodString;
307
+ fullName: z.ZodString;
308
+ email: z.ZodString;
309
+ imageId: z.ZodNullable<z.ZodString>;
310
+ isPremium: z.ZodBoolean;
311
+ }, z.core.$strip>;
312
+ triggeredAt: z.ZodCoercedDate<unknown>;
313
+ }, z.core.$strip>;
314
+ export type TaskAddedPayload = z.infer<typeof TaskAddedPayloadSchema>;
315
+ export declare const TaskUpdatedPayloadSchema: z.ZodObject<{
316
+ eventName: z.ZodLiteral<"item:updated">;
317
+ eventData: z.ZodPipe<z.ZodObject<{
318
+ id: z.ZodString;
319
+ userId: z.ZodString;
320
+ projectId: z.ZodString;
321
+ sectionId: z.ZodNullable<z.ZodString>;
322
+ parentId: z.ZodNullable<z.ZodString>;
323
+ addedByUid: z.ZodNullable<z.ZodString>;
324
+ assignedByUid: z.ZodNullable<z.ZodString>;
325
+ responsibleUid: z.ZodNullable<z.ZodString>;
326
+ labels: z.ZodArray<z.ZodString>;
327
+ deadline: z.ZodNullable<z.ZodObject<{
328
+ date: z.ZodString;
329
+ lang: z.ZodString;
330
+ }, z.core.$strip>>;
331
+ duration: z.ZodNullable<z.ZodObject<{
332
+ amount: z.ZodNumber;
333
+ unit: z.ZodEnum<{
334
+ minute: "minute";
335
+ day: "day";
336
+ }>;
337
+ }, z.core.$strip>>;
338
+ checked: z.ZodBoolean;
339
+ isDeleted: z.ZodBoolean;
340
+ addedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
341
+ completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
342
+ updatedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
343
+ due: z.ZodNullable<z.ZodObject<{
344
+ isRecurring: z.ZodBoolean;
345
+ string: z.ZodString;
346
+ date: z.ZodString;
347
+ datetime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
348
+ timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
349
+ lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
350
+ }, z.core.$strip>>;
351
+ priority: z.ZodNumber;
352
+ childOrder: z.ZodNumber;
353
+ content: z.ZodString;
354
+ description: z.ZodString;
355
+ dayOrder: z.ZodNumber;
356
+ isCollapsed: z.ZodBoolean;
357
+ isUncompletable: z.ZodDefault<z.ZodBoolean>;
358
+ }, z.core.$strip>, z.ZodTransform<{
359
+ isUncompletable: boolean;
360
+ url: string;
361
+ id: string;
362
+ userId: string;
363
+ projectId: string;
364
+ sectionId: string | null;
365
+ parentId: string | null;
366
+ addedByUid: string | null;
367
+ assignedByUid: string | null;
368
+ responsibleUid: string | null;
369
+ labels: string[];
370
+ deadline: {
371
+ date: string;
372
+ lang: string;
373
+ } | null;
374
+ duration: {
375
+ amount: number;
376
+ unit: "minute" | "day";
377
+ } | null;
378
+ checked: boolean;
379
+ isDeleted: boolean;
380
+ addedAt: Date | null;
381
+ completedAt: Date | null;
382
+ updatedAt: Date | null;
383
+ due: {
384
+ isRecurring: boolean;
385
+ string: string;
386
+ date: string;
387
+ datetime?: string | null | undefined;
388
+ timezone?: string | null | undefined;
389
+ lang?: string | null | undefined;
390
+ } | null;
391
+ priority: number;
392
+ childOrder: number;
393
+ content: string;
394
+ description: string;
395
+ dayOrder: number;
396
+ isCollapsed: boolean;
397
+ }, {
398
+ id: string;
399
+ userId: string;
400
+ projectId: string;
401
+ sectionId: string | null;
402
+ parentId: string | null;
403
+ addedByUid: string | null;
404
+ assignedByUid: string | null;
405
+ responsibleUid: string | null;
406
+ labels: string[];
407
+ deadline: {
408
+ date: string;
409
+ lang: string;
410
+ } | null;
411
+ duration: {
412
+ amount: number;
413
+ unit: "minute" | "day";
414
+ } | null;
415
+ checked: boolean;
416
+ isDeleted: boolean;
417
+ addedAt: Date | null;
418
+ completedAt: Date | null;
419
+ updatedAt: Date | null;
420
+ due: {
421
+ isRecurring: boolean;
422
+ string: string;
423
+ date: string;
424
+ datetime?: string | null | undefined;
425
+ timezone?: string | null | undefined;
426
+ lang?: string | null | undefined;
427
+ } | null;
428
+ priority: number;
429
+ childOrder: number;
430
+ content: string;
431
+ description: string;
432
+ dayOrder: number;
433
+ isCollapsed: boolean;
434
+ isUncompletable: boolean;
435
+ }>>;
436
+ eventDataExtra: z.ZodOptional<z.ZodObject<{
437
+ oldItem: z.ZodPipe<z.ZodObject<{
438
+ id: z.ZodString;
439
+ userId: z.ZodString;
440
+ projectId: z.ZodString;
441
+ sectionId: z.ZodNullable<z.ZodString>;
442
+ parentId: z.ZodNullable<z.ZodString>;
443
+ addedByUid: z.ZodNullable<z.ZodString>;
444
+ assignedByUid: z.ZodNullable<z.ZodString>;
445
+ responsibleUid: z.ZodNullable<z.ZodString>;
446
+ labels: z.ZodArray<z.ZodString>;
447
+ deadline: z.ZodNullable<z.ZodObject<{
448
+ date: z.ZodString;
449
+ lang: z.ZodString;
450
+ }, z.core.$strip>>;
451
+ duration: z.ZodNullable<z.ZodObject<{
452
+ amount: z.ZodNumber;
453
+ unit: z.ZodEnum<{
454
+ minute: "minute";
455
+ day: "day";
456
+ }>;
457
+ }, z.core.$strip>>;
458
+ checked: z.ZodBoolean;
459
+ isDeleted: z.ZodBoolean;
460
+ addedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
461
+ completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
462
+ updatedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
463
+ due: z.ZodNullable<z.ZodObject<{
464
+ isRecurring: z.ZodBoolean;
465
+ string: z.ZodString;
466
+ date: z.ZodString;
467
+ datetime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
468
+ timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
469
+ lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
470
+ }, z.core.$strip>>;
471
+ priority: z.ZodNumber;
472
+ childOrder: z.ZodNumber;
473
+ content: z.ZodString;
474
+ description: z.ZodString;
475
+ dayOrder: z.ZodNumber;
476
+ isCollapsed: z.ZodBoolean;
477
+ isUncompletable: z.ZodDefault<z.ZodBoolean>;
478
+ }, z.core.$strip>, z.ZodTransform<{
479
+ isUncompletable: boolean;
480
+ url: string;
481
+ id: string;
482
+ userId: string;
483
+ projectId: string;
484
+ sectionId: string | null;
485
+ parentId: string | null;
486
+ addedByUid: string | null;
487
+ assignedByUid: string | null;
488
+ responsibleUid: string | null;
489
+ labels: string[];
490
+ deadline: {
491
+ date: string;
492
+ lang: string;
493
+ } | null;
494
+ duration: {
495
+ amount: number;
496
+ unit: "minute" | "day";
497
+ } | null;
498
+ checked: boolean;
499
+ isDeleted: boolean;
500
+ addedAt: Date | null;
501
+ completedAt: Date | null;
502
+ updatedAt: Date | null;
503
+ due: {
504
+ isRecurring: boolean;
505
+ string: string;
506
+ date: string;
507
+ datetime?: string | null | undefined;
508
+ timezone?: string | null | undefined;
509
+ lang?: string | null | undefined;
510
+ } | null;
511
+ priority: number;
512
+ childOrder: number;
513
+ content: string;
514
+ description: string;
515
+ dayOrder: number;
516
+ isCollapsed: boolean;
517
+ }, {
518
+ id: string;
519
+ userId: string;
520
+ projectId: string;
521
+ sectionId: string | null;
522
+ parentId: string | null;
523
+ addedByUid: string | null;
524
+ assignedByUid: string | null;
525
+ responsibleUid: string | null;
526
+ labels: string[];
527
+ deadline: {
528
+ date: string;
529
+ lang: string;
530
+ } | null;
531
+ duration: {
532
+ amount: number;
533
+ unit: "minute" | "day";
534
+ } | null;
535
+ checked: boolean;
536
+ isDeleted: boolean;
537
+ addedAt: Date | null;
538
+ completedAt: Date | null;
539
+ updatedAt: Date | null;
540
+ due: {
541
+ isRecurring: boolean;
542
+ string: string;
543
+ date: string;
544
+ datetime?: string | null | undefined;
545
+ timezone?: string | null | undefined;
546
+ lang?: string | null | undefined;
547
+ } | null;
548
+ priority: number;
549
+ childOrder: number;
550
+ content: string;
551
+ description: string;
552
+ dayOrder: number;
553
+ isCollapsed: boolean;
554
+ isUncompletable: boolean;
555
+ }>>;
556
+ updateIntent: z.ZodCatch<z.ZodEnum<{
557
+ item_updated: "item_updated";
558
+ item_completed: "item_completed";
559
+ item_uncompleted: "item_uncompleted";
560
+ responsible_uid_changed: "responsible_uid_changed";
561
+ }>>;
562
+ }, z.core.$strip>>;
563
+ version: z.ZodEnum<{
564
+ 1: "1";
565
+ }>;
566
+ userId: z.ZodString;
567
+ initiator: z.ZodObject<{
568
+ id: z.ZodString;
569
+ fullName: z.ZodString;
570
+ email: z.ZodString;
571
+ imageId: z.ZodNullable<z.ZodString>;
572
+ isPremium: z.ZodBoolean;
573
+ }, z.core.$strip>;
574
+ triggeredAt: z.ZodCoercedDate<unknown>;
575
+ }, z.core.$strip>;
576
+ export type TaskUpdatedPayload = z.infer<typeof TaskUpdatedPayloadSchema>;
577
+ export declare const TaskCompletedPayloadSchema: z.ZodObject<{
578
+ eventName: z.ZodLiteral<"item:completed">;
579
+ eventData: z.ZodPipe<z.ZodObject<{
580
+ id: z.ZodString;
581
+ userId: z.ZodString;
582
+ projectId: z.ZodString;
583
+ sectionId: z.ZodNullable<z.ZodString>;
584
+ parentId: z.ZodNullable<z.ZodString>;
585
+ addedByUid: z.ZodNullable<z.ZodString>;
586
+ assignedByUid: z.ZodNullable<z.ZodString>;
587
+ responsibleUid: z.ZodNullable<z.ZodString>;
588
+ labels: z.ZodArray<z.ZodString>;
589
+ deadline: z.ZodNullable<z.ZodObject<{
590
+ date: z.ZodString;
591
+ lang: z.ZodString;
592
+ }, z.core.$strip>>;
593
+ duration: z.ZodNullable<z.ZodObject<{
594
+ amount: z.ZodNumber;
595
+ unit: z.ZodEnum<{
596
+ minute: "minute";
597
+ day: "day";
598
+ }>;
599
+ }, z.core.$strip>>;
600
+ checked: z.ZodBoolean;
601
+ isDeleted: z.ZodBoolean;
602
+ addedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
603
+ completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
604
+ updatedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
605
+ due: z.ZodNullable<z.ZodObject<{
606
+ isRecurring: z.ZodBoolean;
607
+ string: z.ZodString;
608
+ date: z.ZodString;
609
+ datetime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
610
+ timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
611
+ lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
612
+ }, z.core.$strip>>;
613
+ priority: z.ZodNumber;
614
+ childOrder: z.ZodNumber;
615
+ content: z.ZodString;
616
+ description: z.ZodString;
617
+ dayOrder: z.ZodNumber;
618
+ isCollapsed: z.ZodBoolean;
619
+ isUncompletable: z.ZodDefault<z.ZodBoolean>;
620
+ }, z.core.$strip>, z.ZodTransform<{
621
+ isUncompletable: boolean;
622
+ url: string;
623
+ id: string;
624
+ userId: string;
625
+ projectId: string;
626
+ sectionId: string | null;
627
+ parentId: string | null;
628
+ addedByUid: string | null;
629
+ assignedByUid: string | null;
630
+ responsibleUid: string | null;
631
+ labels: string[];
632
+ deadline: {
633
+ date: string;
634
+ lang: string;
635
+ } | null;
636
+ duration: {
637
+ amount: number;
638
+ unit: "minute" | "day";
639
+ } | null;
640
+ checked: boolean;
641
+ isDeleted: boolean;
642
+ addedAt: Date | null;
643
+ completedAt: Date | null;
644
+ updatedAt: Date | null;
645
+ due: {
646
+ isRecurring: boolean;
647
+ string: string;
648
+ date: string;
649
+ datetime?: string | null | undefined;
650
+ timezone?: string | null | undefined;
651
+ lang?: string | null | undefined;
652
+ } | null;
653
+ priority: number;
654
+ childOrder: number;
655
+ content: string;
656
+ description: string;
657
+ dayOrder: number;
658
+ isCollapsed: boolean;
659
+ }, {
660
+ id: string;
661
+ userId: string;
662
+ projectId: string;
663
+ sectionId: string | null;
664
+ parentId: string | null;
665
+ addedByUid: string | null;
666
+ assignedByUid: string | null;
667
+ responsibleUid: string | null;
668
+ labels: string[];
669
+ deadline: {
670
+ date: string;
671
+ lang: string;
672
+ } | null;
673
+ duration: {
674
+ amount: number;
675
+ unit: "minute" | "day";
676
+ } | null;
677
+ checked: boolean;
678
+ isDeleted: boolean;
679
+ addedAt: Date | null;
680
+ completedAt: Date | null;
681
+ updatedAt: Date | null;
682
+ due: {
683
+ isRecurring: boolean;
684
+ string: string;
685
+ date: string;
686
+ datetime?: string | null | undefined;
687
+ timezone?: string | null | undefined;
688
+ lang?: string | null | undefined;
689
+ } | null;
690
+ priority: number;
691
+ childOrder: number;
692
+ content: string;
693
+ description: string;
694
+ dayOrder: number;
695
+ isCollapsed: boolean;
696
+ isUncompletable: boolean;
697
+ }>>;
698
+ version: z.ZodEnum<{
699
+ 1: "1";
700
+ }>;
701
+ userId: z.ZodString;
702
+ initiator: z.ZodObject<{
703
+ id: z.ZodString;
704
+ fullName: z.ZodString;
705
+ email: z.ZodString;
706
+ imageId: z.ZodNullable<z.ZodString>;
707
+ isPremium: z.ZodBoolean;
708
+ }, z.core.$strip>;
709
+ triggeredAt: z.ZodCoercedDate<unknown>;
710
+ }, z.core.$strip>;
711
+ export type TaskCompletedPayload = z.infer<typeof TaskCompletedPayloadSchema>;
712
+ export declare const TaskUncompletedPayloadSchema: z.ZodObject<{
713
+ eventName: z.ZodLiteral<"item:uncompleted">;
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>;
846
+ export type TaskUncompletedPayload = z.infer<typeof TaskUncompletedPayloadSchema>;
847
+ export declare const TaskDeletedPayloadSchema: z.ZodObject<{
848
+ eventName: z.ZodLiteral<"item:deleted">;
849
+ eventData: z.ZodPipe<z.ZodObject<{
850
+ id: z.ZodString;
851
+ userId: z.ZodString;
852
+ projectId: z.ZodString;
853
+ sectionId: z.ZodNullable<z.ZodString>;
854
+ parentId: z.ZodNullable<z.ZodString>;
855
+ addedByUid: z.ZodNullable<z.ZodString>;
856
+ assignedByUid: z.ZodNullable<z.ZodString>;
857
+ responsibleUid: z.ZodNullable<z.ZodString>;
858
+ labels: z.ZodArray<z.ZodString>;
859
+ deadline: z.ZodNullable<z.ZodObject<{
860
+ date: z.ZodString;
861
+ lang: z.ZodString;
862
+ }, z.core.$strip>>;
863
+ duration: z.ZodNullable<z.ZodObject<{
864
+ amount: z.ZodNumber;
865
+ unit: z.ZodEnum<{
866
+ minute: "minute";
867
+ day: "day";
868
+ }>;
869
+ }, z.core.$strip>>;
870
+ checked: z.ZodBoolean;
871
+ isDeleted: z.ZodBoolean;
872
+ addedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
873
+ completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
874
+ updatedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
875
+ due: z.ZodNullable<z.ZodObject<{
876
+ isRecurring: z.ZodBoolean;
877
+ string: z.ZodString;
878
+ date: z.ZodString;
879
+ datetime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
880
+ timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
881
+ lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
882
+ }, z.core.$strip>>;
883
+ priority: z.ZodNumber;
884
+ childOrder: z.ZodNumber;
885
+ content: z.ZodString;
886
+ description: z.ZodString;
887
+ dayOrder: z.ZodNumber;
888
+ isCollapsed: z.ZodBoolean;
889
+ isUncompletable: z.ZodDefault<z.ZodBoolean>;
890
+ }, z.core.$strip>, z.ZodTransform<{
891
+ isUncompletable: boolean;
892
+ url: string;
893
+ id: string;
894
+ userId: string;
895
+ projectId: string;
896
+ sectionId: string | null;
897
+ parentId: string | null;
898
+ addedByUid: string | null;
899
+ assignedByUid: string | null;
900
+ responsibleUid: string | null;
901
+ labels: string[];
902
+ deadline: {
903
+ date: string;
904
+ lang: string;
905
+ } | null;
906
+ duration: {
907
+ amount: number;
908
+ unit: "minute" | "day";
909
+ } | null;
910
+ checked: boolean;
911
+ isDeleted: boolean;
912
+ addedAt: Date | null;
913
+ completedAt: Date | null;
914
+ updatedAt: Date | null;
915
+ due: {
916
+ isRecurring: boolean;
917
+ string: string;
918
+ date: string;
919
+ datetime?: string | null | undefined;
920
+ timezone?: string | null | undefined;
921
+ lang?: string | null | undefined;
922
+ } | null;
923
+ priority: number;
924
+ childOrder: number;
925
+ content: string;
926
+ description: string;
927
+ dayOrder: number;
928
+ isCollapsed: boolean;
929
+ }, {
930
+ id: string;
931
+ userId: string;
932
+ projectId: string;
933
+ sectionId: string | null;
934
+ parentId: string | null;
935
+ addedByUid: string | null;
936
+ assignedByUid: string | null;
937
+ responsibleUid: string | null;
938
+ labels: string[];
939
+ deadline: {
940
+ date: string;
941
+ lang: string;
942
+ } | null;
943
+ duration: {
944
+ amount: number;
945
+ unit: "minute" | "day";
946
+ } | null;
947
+ checked: boolean;
948
+ isDeleted: boolean;
949
+ addedAt: Date | null;
950
+ completedAt: Date | null;
951
+ updatedAt: Date | null;
952
+ due: {
953
+ isRecurring: boolean;
954
+ string: string;
955
+ date: string;
956
+ datetime?: string | null | undefined;
957
+ timezone?: string | null | undefined;
958
+ lang?: string | null | undefined;
959
+ } | null;
960
+ priority: number;
961
+ childOrder: number;
962
+ content: string;
963
+ description: string;
964
+ dayOrder: number;
965
+ isCollapsed: boolean;
966
+ isUncompletable: boolean;
967
+ }>>;
968
+ version: z.ZodEnum<{
969
+ 1: "1";
970
+ }>;
971
+ userId: z.ZodString;
972
+ initiator: z.ZodObject<{
973
+ id: z.ZodString;
974
+ fullName: z.ZodString;
975
+ email: z.ZodString;
976
+ imageId: z.ZodNullable<z.ZodString>;
977
+ isPremium: z.ZodBoolean;
978
+ }, z.core.$strip>;
979
+ triggeredAt: z.ZodCoercedDate<unknown>;
980
+ }, z.core.$strip>;
981
+ export type TaskDeletedPayload = z.infer<typeof TaskDeletedPayloadSchema>;