@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,893 @@
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 (notes, projects, sections, labels, 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
+ "note:added": "note:added";
16
+ "note:updated": "note:updated";
17
+ "note:deleted": "note:deleted";
18
+ "section:added": "section:added";
19
+ "section:updated": "section:updated";
20
+ "section:deleted": "section:deleted";
21
+ "section:archived": "section:archived";
22
+ "section:unarchived": "section:unarchived";
23
+ "label:added": "label:added";
24
+ "label:updated": "label:updated";
25
+ "label:deleted": "label:deleted";
26
+ "filter:added": "filter:added";
27
+ "filter:updated": "filter:updated";
28
+ "filter:deleted": "filter:deleted";
29
+ "reminder:fired": "reminder:fired";
30
+ }>;
31
+ eventData: z.ZodUnknown;
32
+ eventDataExtra: z.ZodOptional<z.ZodUnknown>;
33
+ version: z.ZodEnum<{
34
+ 1: "1";
35
+ }>;
36
+ userId: z.ZodString;
37
+ initiator: z.ZodObject<{
38
+ id: z.ZodString;
39
+ fullName: z.ZodString;
40
+ email: z.ZodString;
41
+ imageId: z.ZodNullable<z.ZodString>;
42
+ isPremium: z.ZodBoolean;
43
+ }, z.core.$strip>;
44
+ triggeredAt: z.ZodCoercedDate<unknown>;
45
+ }, z.core.$strip>;
46
+ /**
47
+ * Wrapper schema for an incoming webhook payload.
48
+ *
49
+ * The backend sends snake_case keys and uses the public event form
50
+ * (`item:added`) in the `event_name` field, so consumers using
51
+ * `parseWebhookPayload` receive camelCase fields directly.
52
+ *
53
+ * Typed today: `item:*` events carry a parsed {@link Task}. Other events
54
+ * still expose `eventData` as `unknown`; they will be narrowed in follow-up
55
+ * PRs (notes, projects, sections, labels, filters, reminders).
56
+ */
57
+ export declare const WebhookPayloadSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
58
+ eventName: z.ZodLiteral<"item:added">;
59
+ eventData: z.ZodPipe<z.ZodObject<{
60
+ id: z.ZodString;
61
+ userId: z.ZodString;
62
+ projectId: z.ZodString;
63
+ sectionId: z.ZodNullable<z.ZodString>;
64
+ parentId: z.ZodNullable<z.ZodString>;
65
+ addedByUid: z.ZodNullable<z.ZodString>;
66
+ assignedByUid: z.ZodNullable<z.ZodString>;
67
+ responsibleUid: z.ZodNullable<z.ZodString>;
68
+ labels: z.ZodArray<z.ZodString>;
69
+ deadline: z.ZodNullable<z.ZodObject<{
70
+ date: z.ZodString;
71
+ lang: z.ZodString;
72
+ }, z.core.$strip>>;
73
+ duration: z.ZodNullable<z.ZodObject<{
74
+ amount: z.ZodNumber;
75
+ unit: z.ZodEnum<{
76
+ minute: "minute";
77
+ day: "day";
78
+ }>;
79
+ }, z.core.$strip>>;
80
+ checked: z.ZodBoolean;
81
+ isDeleted: z.ZodBoolean;
82
+ addedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
83
+ completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
84
+ updatedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
85
+ due: z.ZodNullable<z.ZodObject<{
86
+ isRecurring: z.ZodBoolean;
87
+ string: z.ZodString;
88
+ date: z.ZodString;
89
+ datetime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
90
+ timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
91
+ lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
92
+ }, z.core.$strip>>;
93
+ priority: z.ZodNumber;
94
+ childOrder: z.ZodNumber;
95
+ content: z.ZodString;
96
+ description: z.ZodString;
97
+ dayOrder: z.ZodNumber;
98
+ isCollapsed: z.ZodBoolean;
99
+ isUncompletable: z.ZodDefault<z.ZodBoolean>;
100
+ }, z.core.$strip>, z.ZodTransform<{
101
+ isUncompletable: boolean;
102
+ url: string;
103
+ id: string;
104
+ userId: string;
105
+ projectId: string;
106
+ sectionId: string | null;
107
+ parentId: string | null;
108
+ addedByUid: string | null;
109
+ assignedByUid: string | null;
110
+ responsibleUid: string | null;
111
+ labels: string[];
112
+ deadline: {
113
+ date: string;
114
+ lang: string;
115
+ } | null;
116
+ duration: {
117
+ amount: number;
118
+ unit: "minute" | "day";
119
+ } | null;
120
+ checked: boolean;
121
+ isDeleted: boolean;
122
+ addedAt: Date | null;
123
+ completedAt: Date | null;
124
+ updatedAt: Date | null;
125
+ due: {
126
+ isRecurring: boolean;
127
+ string: string;
128
+ date: string;
129
+ datetime?: string | null | undefined;
130
+ timezone?: string | null | undefined;
131
+ lang?: string | null | undefined;
132
+ } | null;
133
+ priority: number;
134
+ childOrder: number;
135
+ content: string;
136
+ description: string;
137
+ dayOrder: number;
138
+ isCollapsed: boolean;
139
+ }, {
140
+ id: string;
141
+ userId: string;
142
+ projectId: string;
143
+ sectionId: string | null;
144
+ parentId: string | null;
145
+ addedByUid: string | null;
146
+ assignedByUid: string | null;
147
+ responsibleUid: string | null;
148
+ labels: string[];
149
+ deadline: {
150
+ date: string;
151
+ lang: string;
152
+ } | null;
153
+ duration: {
154
+ amount: number;
155
+ unit: "minute" | "day";
156
+ } | null;
157
+ checked: boolean;
158
+ isDeleted: boolean;
159
+ addedAt: Date | null;
160
+ completedAt: Date | null;
161
+ updatedAt: Date | null;
162
+ due: {
163
+ isRecurring: boolean;
164
+ string: string;
165
+ date: string;
166
+ datetime?: string | null | undefined;
167
+ timezone?: string | null | undefined;
168
+ lang?: string | null | undefined;
169
+ } | null;
170
+ priority: number;
171
+ childOrder: number;
172
+ content: string;
173
+ description: string;
174
+ dayOrder: number;
175
+ isCollapsed: boolean;
176
+ isUncompletable: boolean;
177
+ }>>;
178
+ version: z.ZodEnum<{
179
+ 1: "1";
180
+ }>;
181
+ userId: z.ZodString;
182
+ initiator: z.ZodObject<{
183
+ id: z.ZodString;
184
+ fullName: z.ZodString;
185
+ email: z.ZodString;
186
+ imageId: z.ZodNullable<z.ZodString>;
187
+ isPremium: z.ZodBoolean;
188
+ }, z.core.$strip>;
189
+ triggeredAt: z.ZodCoercedDate<unknown>;
190
+ }, z.core.$strip>, z.ZodObject<{
191
+ eventName: z.ZodLiteral<"item:updated">;
192
+ eventData: z.ZodPipe<z.ZodObject<{
193
+ id: z.ZodString;
194
+ userId: z.ZodString;
195
+ projectId: z.ZodString;
196
+ sectionId: z.ZodNullable<z.ZodString>;
197
+ parentId: z.ZodNullable<z.ZodString>;
198
+ addedByUid: z.ZodNullable<z.ZodString>;
199
+ assignedByUid: z.ZodNullable<z.ZodString>;
200
+ responsibleUid: z.ZodNullable<z.ZodString>;
201
+ labels: z.ZodArray<z.ZodString>;
202
+ deadline: z.ZodNullable<z.ZodObject<{
203
+ date: z.ZodString;
204
+ lang: z.ZodString;
205
+ }, z.core.$strip>>;
206
+ duration: z.ZodNullable<z.ZodObject<{
207
+ amount: z.ZodNumber;
208
+ unit: z.ZodEnum<{
209
+ minute: "minute";
210
+ day: "day";
211
+ }>;
212
+ }, z.core.$strip>>;
213
+ checked: z.ZodBoolean;
214
+ isDeleted: z.ZodBoolean;
215
+ addedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
216
+ completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
217
+ updatedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
218
+ due: z.ZodNullable<z.ZodObject<{
219
+ isRecurring: z.ZodBoolean;
220
+ string: z.ZodString;
221
+ date: z.ZodString;
222
+ datetime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
223
+ timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
224
+ lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
225
+ }, z.core.$strip>>;
226
+ priority: z.ZodNumber;
227
+ childOrder: z.ZodNumber;
228
+ content: z.ZodString;
229
+ description: z.ZodString;
230
+ dayOrder: z.ZodNumber;
231
+ isCollapsed: z.ZodBoolean;
232
+ isUncompletable: z.ZodDefault<z.ZodBoolean>;
233
+ }, z.core.$strip>, z.ZodTransform<{
234
+ isUncompletable: boolean;
235
+ url: string;
236
+ id: string;
237
+ userId: string;
238
+ projectId: string;
239
+ sectionId: string | null;
240
+ parentId: string | null;
241
+ addedByUid: string | null;
242
+ assignedByUid: string | null;
243
+ responsibleUid: string | null;
244
+ labels: string[];
245
+ deadline: {
246
+ date: string;
247
+ lang: string;
248
+ } | null;
249
+ duration: {
250
+ amount: number;
251
+ unit: "minute" | "day";
252
+ } | null;
253
+ checked: boolean;
254
+ isDeleted: boolean;
255
+ addedAt: Date | null;
256
+ completedAt: Date | null;
257
+ updatedAt: Date | null;
258
+ due: {
259
+ isRecurring: boolean;
260
+ string: string;
261
+ date: string;
262
+ datetime?: string | null | undefined;
263
+ timezone?: string | null | undefined;
264
+ lang?: string | null | undefined;
265
+ } | null;
266
+ priority: number;
267
+ childOrder: number;
268
+ content: string;
269
+ description: string;
270
+ dayOrder: number;
271
+ isCollapsed: boolean;
272
+ }, {
273
+ id: string;
274
+ userId: string;
275
+ projectId: string;
276
+ sectionId: string | null;
277
+ parentId: string | null;
278
+ addedByUid: string | null;
279
+ assignedByUid: string | null;
280
+ responsibleUid: string | null;
281
+ labels: string[];
282
+ deadline: {
283
+ date: string;
284
+ lang: string;
285
+ } | null;
286
+ duration: {
287
+ amount: number;
288
+ unit: "minute" | "day";
289
+ } | null;
290
+ checked: boolean;
291
+ isDeleted: boolean;
292
+ addedAt: Date | null;
293
+ completedAt: Date | null;
294
+ updatedAt: Date | null;
295
+ due: {
296
+ isRecurring: boolean;
297
+ string: string;
298
+ date: string;
299
+ datetime?: string | null | undefined;
300
+ timezone?: string | null | undefined;
301
+ lang?: string | null | undefined;
302
+ } | null;
303
+ priority: number;
304
+ childOrder: number;
305
+ content: string;
306
+ description: string;
307
+ dayOrder: number;
308
+ isCollapsed: boolean;
309
+ isUncompletable: boolean;
310
+ }>>;
311
+ eventDataExtra: z.ZodOptional<z.ZodObject<{
312
+ oldItem: z.ZodPipe<z.ZodObject<{
313
+ id: z.ZodString;
314
+ userId: z.ZodString;
315
+ projectId: z.ZodString;
316
+ sectionId: z.ZodNullable<z.ZodString>;
317
+ parentId: z.ZodNullable<z.ZodString>;
318
+ addedByUid: z.ZodNullable<z.ZodString>;
319
+ assignedByUid: z.ZodNullable<z.ZodString>;
320
+ responsibleUid: z.ZodNullable<z.ZodString>;
321
+ labels: z.ZodArray<z.ZodString>;
322
+ deadline: z.ZodNullable<z.ZodObject<{
323
+ date: z.ZodString;
324
+ lang: z.ZodString;
325
+ }, z.core.$strip>>;
326
+ duration: z.ZodNullable<z.ZodObject<{
327
+ amount: z.ZodNumber;
328
+ unit: z.ZodEnum<{
329
+ minute: "minute";
330
+ day: "day";
331
+ }>;
332
+ }, z.core.$strip>>;
333
+ checked: z.ZodBoolean;
334
+ isDeleted: z.ZodBoolean;
335
+ addedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
336
+ completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
337
+ updatedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
338
+ due: z.ZodNullable<z.ZodObject<{
339
+ isRecurring: z.ZodBoolean;
340
+ string: z.ZodString;
341
+ date: z.ZodString;
342
+ datetime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
343
+ timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
344
+ lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
345
+ }, z.core.$strip>>;
346
+ priority: z.ZodNumber;
347
+ childOrder: z.ZodNumber;
348
+ content: z.ZodString;
349
+ description: z.ZodString;
350
+ dayOrder: z.ZodNumber;
351
+ isCollapsed: z.ZodBoolean;
352
+ isUncompletable: z.ZodDefault<z.ZodBoolean>;
353
+ }, z.core.$strip>, z.ZodTransform<{
354
+ isUncompletable: boolean;
355
+ url: string;
356
+ id: string;
357
+ userId: string;
358
+ projectId: string;
359
+ sectionId: string | null;
360
+ parentId: string | null;
361
+ addedByUid: string | null;
362
+ assignedByUid: string | null;
363
+ responsibleUid: string | null;
364
+ labels: string[];
365
+ deadline: {
366
+ date: string;
367
+ lang: string;
368
+ } | null;
369
+ duration: {
370
+ amount: number;
371
+ unit: "minute" | "day";
372
+ } | null;
373
+ checked: boolean;
374
+ isDeleted: boolean;
375
+ addedAt: Date | null;
376
+ completedAt: Date | null;
377
+ updatedAt: Date | null;
378
+ due: {
379
+ isRecurring: boolean;
380
+ string: string;
381
+ date: string;
382
+ datetime?: string | null | undefined;
383
+ timezone?: string | null | undefined;
384
+ lang?: string | null | undefined;
385
+ } | null;
386
+ priority: number;
387
+ childOrder: number;
388
+ content: string;
389
+ description: string;
390
+ dayOrder: number;
391
+ isCollapsed: boolean;
392
+ }, {
393
+ id: string;
394
+ userId: string;
395
+ projectId: string;
396
+ sectionId: string | null;
397
+ parentId: string | null;
398
+ addedByUid: string | null;
399
+ assignedByUid: string | null;
400
+ responsibleUid: string | null;
401
+ labels: string[];
402
+ deadline: {
403
+ date: string;
404
+ lang: string;
405
+ } | null;
406
+ duration: {
407
+ amount: number;
408
+ unit: "minute" | "day";
409
+ } | null;
410
+ checked: boolean;
411
+ isDeleted: boolean;
412
+ addedAt: Date | null;
413
+ completedAt: Date | null;
414
+ updatedAt: Date | null;
415
+ due: {
416
+ isRecurring: boolean;
417
+ string: string;
418
+ date: string;
419
+ datetime?: string | null | undefined;
420
+ timezone?: string | null | undefined;
421
+ lang?: string | null | undefined;
422
+ } | null;
423
+ priority: number;
424
+ childOrder: number;
425
+ content: string;
426
+ description: string;
427
+ dayOrder: number;
428
+ isCollapsed: boolean;
429
+ isUncompletable: boolean;
430
+ }>>;
431
+ updateIntent: z.ZodCatch<z.ZodEnum<{
432
+ item_updated: "item_updated";
433
+ item_completed: "item_completed";
434
+ item_uncompleted: "item_uncompleted";
435
+ responsible_uid_changed: "responsible_uid_changed";
436
+ }>>;
437
+ }, z.core.$strip>>;
438
+ version: z.ZodEnum<{
439
+ 1: "1";
440
+ }>;
441
+ userId: z.ZodString;
442
+ initiator: z.ZodObject<{
443
+ id: z.ZodString;
444
+ fullName: z.ZodString;
445
+ email: z.ZodString;
446
+ imageId: z.ZodNullable<z.ZodString>;
447
+ isPremium: z.ZodBoolean;
448
+ }, z.core.$strip>;
449
+ triggeredAt: z.ZodCoercedDate<unknown>;
450
+ }, z.core.$strip>, z.ZodObject<{
451
+ eventName: z.ZodLiteral<"item:completed">;
452
+ eventData: z.ZodPipe<z.ZodObject<{
453
+ id: z.ZodString;
454
+ userId: z.ZodString;
455
+ projectId: z.ZodString;
456
+ sectionId: z.ZodNullable<z.ZodString>;
457
+ parentId: z.ZodNullable<z.ZodString>;
458
+ addedByUid: z.ZodNullable<z.ZodString>;
459
+ assignedByUid: z.ZodNullable<z.ZodString>;
460
+ responsibleUid: z.ZodNullable<z.ZodString>;
461
+ labels: z.ZodArray<z.ZodString>;
462
+ deadline: z.ZodNullable<z.ZodObject<{
463
+ date: z.ZodString;
464
+ lang: z.ZodString;
465
+ }, z.core.$strip>>;
466
+ duration: z.ZodNullable<z.ZodObject<{
467
+ amount: z.ZodNumber;
468
+ unit: z.ZodEnum<{
469
+ minute: "minute";
470
+ day: "day";
471
+ }>;
472
+ }, z.core.$strip>>;
473
+ checked: z.ZodBoolean;
474
+ isDeleted: z.ZodBoolean;
475
+ addedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
476
+ completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
477
+ updatedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
478
+ due: z.ZodNullable<z.ZodObject<{
479
+ isRecurring: z.ZodBoolean;
480
+ string: z.ZodString;
481
+ date: z.ZodString;
482
+ datetime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
483
+ timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
484
+ lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
485
+ }, z.core.$strip>>;
486
+ priority: z.ZodNumber;
487
+ childOrder: z.ZodNumber;
488
+ content: z.ZodString;
489
+ description: z.ZodString;
490
+ dayOrder: z.ZodNumber;
491
+ isCollapsed: z.ZodBoolean;
492
+ isUncompletable: z.ZodDefault<z.ZodBoolean>;
493
+ }, z.core.$strip>, z.ZodTransform<{
494
+ isUncompletable: boolean;
495
+ url: string;
496
+ id: string;
497
+ userId: string;
498
+ projectId: string;
499
+ sectionId: string | null;
500
+ parentId: string | null;
501
+ addedByUid: string | null;
502
+ assignedByUid: string | null;
503
+ responsibleUid: string | null;
504
+ labels: string[];
505
+ deadline: {
506
+ date: string;
507
+ lang: string;
508
+ } | null;
509
+ duration: {
510
+ amount: number;
511
+ unit: "minute" | "day";
512
+ } | null;
513
+ checked: boolean;
514
+ isDeleted: boolean;
515
+ addedAt: Date | null;
516
+ completedAt: Date | null;
517
+ updatedAt: Date | null;
518
+ due: {
519
+ isRecurring: boolean;
520
+ string: string;
521
+ date: string;
522
+ datetime?: string | null | undefined;
523
+ timezone?: string | null | undefined;
524
+ lang?: string | null | undefined;
525
+ } | null;
526
+ priority: number;
527
+ childOrder: number;
528
+ content: string;
529
+ description: string;
530
+ dayOrder: number;
531
+ isCollapsed: boolean;
532
+ }, {
533
+ id: string;
534
+ userId: string;
535
+ projectId: string;
536
+ sectionId: string | null;
537
+ parentId: string | null;
538
+ addedByUid: string | null;
539
+ assignedByUid: string | null;
540
+ responsibleUid: string | null;
541
+ labels: string[];
542
+ deadline: {
543
+ date: string;
544
+ lang: string;
545
+ } | null;
546
+ duration: {
547
+ amount: number;
548
+ unit: "minute" | "day";
549
+ } | null;
550
+ checked: boolean;
551
+ isDeleted: boolean;
552
+ addedAt: Date | null;
553
+ completedAt: Date | null;
554
+ updatedAt: Date | null;
555
+ due: {
556
+ isRecurring: boolean;
557
+ string: string;
558
+ date: string;
559
+ datetime?: string | null | undefined;
560
+ timezone?: string | null | undefined;
561
+ lang?: string | null | undefined;
562
+ } | null;
563
+ priority: number;
564
+ childOrder: number;
565
+ content: string;
566
+ description: string;
567
+ dayOrder: number;
568
+ isCollapsed: boolean;
569
+ isUncompletable: boolean;
570
+ }>>;
571
+ version: z.ZodEnum<{
572
+ 1: "1";
573
+ }>;
574
+ userId: z.ZodString;
575
+ initiator: z.ZodObject<{
576
+ id: z.ZodString;
577
+ fullName: z.ZodString;
578
+ email: z.ZodString;
579
+ imageId: z.ZodNullable<z.ZodString>;
580
+ isPremium: z.ZodBoolean;
581
+ }, z.core.$strip>;
582
+ triggeredAt: z.ZodCoercedDate<unknown>;
583
+ }, z.core.$strip>, z.ZodObject<{
584
+ eventName: z.ZodLiteral<"item:uncompleted">;
585
+ eventData: z.ZodPipe<z.ZodObject<{
586
+ id: z.ZodString;
587
+ userId: z.ZodString;
588
+ projectId: z.ZodString;
589
+ sectionId: z.ZodNullable<z.ZodString>;
590
+ parentId: z.ZodNullable<z.ZodString>;
591
+ addedByUid: z.ZodNullable<z.ZodString>;
592
+ assignedByUid: z.ZodNullable<z.ZodString>;
593
+ responsibleUid: z.ZodNullable<z.ZodString>;
594
+ labels: z.ZodArray<z.ZodString>;
595
+ deadline: z.ZodNullable<z.ZodObject<{
596
+ date: z.ZodString;
597
+ lang: z.ZodString;
598
+ }, z.core.$strip>>;
599
+ duration: z.ZodNullable<z.ZodObject<{
600
+ amount: z.ZodNumber;
601
+ unit: z.ZodEnum<{
602
+ minute: "minute";
603
+ day: "day";
604
+ }>;
605
+ }, z.core.$strip>>;
606
+ checked: z.ZodBoolean;
607
+ isDeleted: z.ZodBoolean;
608
+ addedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
609
+ completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
610
+ updatedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
611
+ due: z.ZodNullable<z.ZodObject<{
612
+ isRecurring: z.ZodBoolean;
613
+ string: z.ZodString;
614
+ date: z.ZodString;
615
+ datetime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
616
+ timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
617
+ lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
618
+ }, z.core.$strip>>;
619
+ priority: z.ZodNumber;
620
+ childOrder: z.ZodNumber;
621
+ content: z.ZodString;
622
+ description: z.ZodString;
623
+ dayOrder: z.ZodNumber;
624
+ isCollapsed: z.ZodBoolean;
625
+ isUncompletable: z.ZodDefault<z.ZodBoolean>;
626
+ }, z.core.$strip>, z.ZodTransform<{
627
+ isUncompletable: boolean;
628
+ url: string;
629
+ id: string;
630
+ userId: string;
631
+ projectId: string;
632
+ sectionId: string | null;
633
+ parentId: string | null;
634
+ addedByUid: string | null;
635
+ assignedByUid: string | null;
636
+ responsibleUid: string | null;
637
+ labels: string[];
638
+ deadline: {
639
+ date: string;
640
+ lang: string;
641
+ } | null;
642
+ duration: {
643
+ amount: number;
644
+ unit: "minute" | "day";
645
+ } | null;
646
+ checked: boolean;
647
+ isDeleted: boolean;
648
+ addedAt: Date | null;
649
+ completedAt: Date | null;
650
+ updatedAt: Date | null;
651
+ due: {
652
+ isRecurring: boolean;
653
+ string: string;
654
+ date: string;
655
+ datetime?: string | null | undefined;
656
+ timezone?: string | null | undefined;
657
+ lang?: string | null | undefined;
658
+ } | null;
659
+ priority: number;
660
+ childOrder: number;
661
+ content: string;
662
+ description: string;
663
+ dayOrder: number;
664
+ isCollapsed: boolean;
665
+ }, {
666
+ id: string;
667
+ userId: string;
668
+ projectId: string;
669
+ sectionId: string | null;
670
+ parentId: string | null;
671
+ addedByUid: string | null;
672
+ assignedByUid: string | null;
673
+ responsibleUid: string | null;
674
+ labels: string[];
675
+ deadline: {
676
+ date: string;
677
+ lang: string;
678
+ } | null;
679
+ duration: {
680
+ amount: number;
681
+ unit: "minute" | "day";
682
+ } | null;
683
+ checked: boolean;
684
+ isDeleted: boolean;
685
+ addedAt: Date | null;
686
+ completedAt: Date | null;
687
+ updatedAt: Date | null;
688
+ due: {
689
+ isRecurring: boolean;
690
+ string: string;
691
+ date: string;
692
+ datetime?: string | null | undefined;
693
+ timezone?: string | null | undefined;
694
+ lang?: string | null | undefined;
695
+ } | null;
696
+ priority: number;
697
+ childOrder: number;
698
+ content: string;
699
+ description: string;
700
+ dayOrder: number;
701
+ isCollapsed: boolean;
702
+ isUncompletable: boolean;
703
+ }>>;
704
+ version: z.ZodEnum<{
705
+ 1: "1";
706
+ }>;
707
+ userId: z.ZodString;
708
+ initiator: z.ZodObject<{
709
+ id: z.ZodString;
710
+ fullName: z.ZodString;
711
+ email: z.ZodString;
712
+ imageId: z.ZodNullable<z.ZodString>;
713
+ isPremium: z.ZodBoolean;
714
+ }, z.core.$strip>;
715
+ triggeredAt: z.ZodCoercedDate<unknown>;
716
+ }, z.core.$strip>, z.ZodObject<{
717
+ eventName: z.ZodLiteral<"item:deleted">;
718
+ eventData: z.ZodPipe<z.ZodObject<{
719
+ id: z.ZodString;
720
+ userId: z.ZodString;
721
+ projectId: z.ZodString;
722
+ sectionId: z.ZodNullable<z.ZodString>;
723
+ parentId: z.ZodNullable<z.ZodString>;
724
+ addedByUid: z.ZodNullable<z.ZodString>;
725
+ assignedByUid: z.ZodNullable<z.ZodString>;
726
+ responsibleUid: z.ZodNullable<z.ZodString>;
727
+ labels: z.ZodArray<z.ZodString>;
728
+ deadline: z.ZodNullable<z.ZodObject<{
729
+ date: z.ZodString;
730
+ lang: z.ZodString;
731
+ }, z.core.$strip>>;
732
+ duration: z.ZodNullable<z.ZodObject<{
733
+ amount: z.ZodNumber;
734
+ unit: z.ZodEnum<{
735
+ minute: "minute";
736
+ day: "day";
737
+ }>;
738
+ }, z.core.$strip>>;
739
+ checked: z.ZodBoolean;
740
+ isDeleted: z.ZodBoolean;
741
+ addedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
742
+ completedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
743
+ updatedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
744
+ due: z.ZodNullable<z.ZodObject<{
745
+ isRecurring: z.ZodBoolean;
746
+ string: z.ZodString;
747
+ date: z.ZodString;
748
+ datetime: z.ZodOptional<z.ZodNullable<z.ZodString>>;
749
+ timezone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
750
+ lang: z.ZodOptional<z.ZodNullable<z.ZodString>>;
751
+ }, z.core.$strip>>;
752
+ priority: z.ZodNumber;
753
+ childOrder: z.ZodNumber;
754
+ content: z.ZodString;
755
+ description: z.ZodString;
756
+ dayOrder: z.ZodNumber;
757
+ isCollapsed: z.ZodBoolean;
758
+ isUncompletable: z.ZodDefault<z.ZodBoolean>;
759
+ }, z.core.$strip>, z.ZodTransform<{
760
+ isUncompletable: boolean;
761
+ url: string;
762
+ id: string;
763
+ userId: string;
764
+ projectId: string;
765
+ sectionId: string | null;
766
+ parentId: string | null;
767
+ addedByUid: string | null;
768
+ assignedByUid: string | null;
769
+ responsibleUid: string | null;
770
+ labels: string[];
771
+ deadline: {
772
+ date: string;
773
+ lang: string;
774
+ } | null;
775
+ duration: {
776
+ amount: number;
777
+ unit: "minute" | "day";
778
+ } | null;
779
+ checked: boolean;
780
+ isDeleted: boolean;
781
+ addedAt: Date | null;
782
+ completedAt: Date | null;
783
+ updatedAt: Date | null;
784
+ due: {
785
+ isRecurring: boolean;
786
+ string: string;
787
+ date: string;
788
+ datetime?: string | null | undefined;
789
+ timezone?: string | null | undefined;
790
+ lang?: string | null | undefined;
791
+ } | null;
792
+ priority: number;
793
+ childOrder: number;
794
+ content: string;
795
+ description: string;
796
+ dayOrder: number;
797
+ isCollapsed: boolean;
798
+ }, {
799
+ id: string;
800
+ userId: string;
801
+ projectId: string;
802
+ sectionId: string | null;
803
+ parentId: string | null;
804
+ addedByUid: string | null;
805
+ assignedByUid: string | null;
806
+ responsibleUid: string | null;
807
+ labels: string[];
808
+ deadline: {
809
+ date: string;
810
+ lang: string;
811
+ } | null;
812
+ duration: {
813
+ amount: number;
814
+ unit: "minute" | "day";
815
+ } | null;
816
+ checked: boolean;
817
+ isDeleted: boolean;
818
+ addedAt: Date | null;
819
+ completedAt: Date | null;
820
+ updatedAt: Date | null;
821
+ due: {
822
+ isRecurring: boolean;
823
+ string: string;
824
+ date: string;
825
+ datetime?: string | null | undefined;
826
+ timezone?: string | null | undefined;
827
+ lang?: string | null | undefined;
828
+ } | null;
829
+ priority: number;
830
+ childOrder: number;
831
+ content: string;
832
+ description: string;
833
+ dayOrder: number;
834
+ isCollapsed: boolean;
835
+ isUncompletable: boolean;
836
+ }>>;
837
+ version: z.ZodEnum<{
838
+ 1: "1";
839
+ }>;
840
+ userId: z.ZodString;
841
+ initiator: z.ZodObject<{
842
+ id: z.ZodString;
843
+ fullName: z.ZodString;
844
+ email: z.ZodString;
845
+ imageId: z.ZodNullable<z.ZodString>;
846
+ isPremium: z.ZodBoolean;
847
+ }, z.core.$strip>;
848
+ triggeredAt: z.ZodCoercedDate<unknown>;
849
+ }, z.core.$strip>, z.ZodObject<{
850
+ eventName: z.ZodEnum<{
851
+ "project:added": "project:added";
852
+ "project:updated": "project:updated";
853
+ "project:deleted": "project:deleted";
854
+ "project:archived": "project:archived";
855
+ "project:unarchived": "project:unarchived";
856
+ "note:added": "note:added";
857
+ "note:updated": "note:updated";
858
+ "note:deleted": "note:deleted";
859
+ "section:added": "section:added";
860
+ "section:updated": "section:updated";
861
+ "section:deleted": "section:deleted";
862
+ "section:archived": "section:archived";
863
+ "section:unarchived": "section:unarchived";
864
+ "label:added": "label:added";
865
+ "label:updated": "label:updated";
866
+ "label:deleted": "label:deleted";
867
+ "filter:added": "filter:added";
868
+ "filter:updated": "filter:updated";
869
+ "filter:deleted": "filter:deleted";
870
+ "reminder:fired": "reminder:fired";
871
+ }>;
872
+ eventData: z.ZodUnknown;
873
+ eventDataExtra: z.ZodOptional<z.ZodUnknown>;
874
+ version: z.ZodEnum<{
875
+ 1: "1";
876
+ }>;
877
+ userId: z.ZodString;
878
+ initiator: z.ZodObject<{
879
+ id: z.ZodString;
880
+ fullName: z.ZodString;
881
+ email: z.ZodString;
882
+ imageId: z.ZodNullable<z.ZodString>;
883
+ isPremium: z.ZodBoolean;
884
+ }, z.core.$strip>;
885
+ triggeredAt: z.ZodCoercedDate<unknown>;
886
+ }, z.core.$strip>], "eventName">;
887
+ /**
888
+ * A parsed webhook payload. Narrow by `eventName` to access typed
889
+ * `eventData`.
890
+ */
891
+ export type WebhookPayload = z.infer<typeof WebhookPayloadSchema>;
892
+ export { WebhookEventSchema };
893
+ export type { WebhookEvent };