@uniformdev/webhooks 19.79.1-alpha.11 → 19.79.1-alpha.18

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.
package/dist/index.d.mts CHANGED
@@ -1,11 +1,800 @@
1
1
  import { z, ZodTypeAny } from 'zod';
2
2
 
3
- declare const CompositionPayloadSchema: z.ZodObject<{
3
+ declare const CompositionDeletePayloadSchema: z.ZodIntersection<z.ZodObject<{
4
4
  id: z.ZodString;
5
5
  slug: z.ZodOptional<z.ZodString>;
6
+ name: z.ZodString;
7
+ type: z.ZodString;
8
+ project: z.ZodObject<{
9
+ id: z.ZodString;
10
+ url: z.ZodString;
11
+ }, "strip", z.ZodTypeAny, {
12
+ id: string;
13
+ url: string;
14
+ }, {
15
+ id: string;
16
+ url: string;
17
+ }>;
18
+ }, "strip", z.ZodTypeAny, {
19
+ id: string;
20
+ name: string;
21
+ type: string;
22
+ project: {
23
+ id: string;
24
+ url: string;
25
+ };
26
+ slug?: string | undefined;
27
+ }, {
28
+ id: string;
29
+ name: string;
30
+ type: string;
31
+ project: {
32
+ id: string;
33
+ url: string;
34
+ };
35
+ slug?: string | undefined;
36
+ }>, z.ZodObject<{
37
+ state: z.ZodOptional<z.ZodNumber>;
38
+ }, "strip", z.ZodTypeAny, {
39
+ state?: number | undefined;
40
+ }, {
41
+ state?: number | undefined;
42
+ }>>;
43
+ declare const CompositionPayloadSchema: z.ZodIntersection<z.ZodObject<{
44
+ id: z.ZodString;
45
+ slug: z.ZodOptional<z.ZodString>;
46
+ name: z.ZodString;
47
+ type: z.ZodString;
48
+ project: z.ZodObject<{
49
+ id: z.ZodString;
50
+ url: z.ZodString;
51
+ }, "strip", z.ZodTypeAny, {
52
+ id: string;
53
+ url: string;
54
+ }, {
55
+ id: string;
56
+ url: string;
57
+ }>;
58
+ }, "strip", z.ZodTypeAny, {
59
+ id: string;
60
+ name: string;
61
+ type: string;
62
+ project: {
63
+ id: string;
64
+ url: string;
65
+ };
66
+ slug?: string | undefined;
67
+ }, {
68
+ id: string;
69
+ name: string;
70
+ type: string;
71
+ project: {
72
+ id: string;
73
+ url: string;
74
+ };
75
+ slug?: string | undefined;
76
+ }>, z.ZodObject<{
77
+ state: z.ZodNumber;
78
+ edit_url: z.ZodString;
79
+ api_url: z.ZodString;
80
+ edge_url: z.ZodString;
81
+ }, "strip", z.ZodTypeAny, {
82
+ state: number;
83
+ edit_url: string;
84
+ api_url: string;
85
+ edge_url: string;
86
+ }, {
87
+ state: number;
88
+ edit_url: string;
89
+ api_url: string;
90
+ edge_url: string;
91
+ }>>;
92
+ declare const ReleaseCompositionPayloadSchema: z.ZodObject<{
93
+ release: z.ZodObject<{
94
+ id: z.ZodString;
95
+ url: z.ZodString;
96
+ }, "strip", z.ZodTypeAny, {
97
+ id: string;
98
+ url: string;
99
+ }, {
100
+ id: string;
101
+ url: string;
102
+ }>;
103
+ }, "strip", z.ZodTypeAny, {
104
+ release: {
105
+ id: string;
106
+ url: string;
107
+ };
108
+ }, {
109
+ release: {
110
+ id: string;
111
+ url: string;
112
+ };
113
+ }>;
114
+ type CompositionPayload = z.infer<typeof CompositionPayloadSchema>;
115
+ type ReleaseCompositionPayload = z.infer<typeof ReleaseCompositionPayloadSchema>;
116
+
117
+ type DefinitionOptions<TSchema> = {
118
+ event: string;
119
+ name: string;
120
+ description: string;
121
+ schema: TSchema;
122
+ };
123
+ type Definition<TSchema extends ZodTypeAny = ZodTypeAny> = DefinitionOptions<TSchema> & {
124
+ _definition: true;
125
+ example: z.TypeOf<TSchema>;
126
+ };
127
+ declare const isDefinition: (obj: any) => obj is Definition<z.ZodTypeAny>;
128
+ declare const definition: <TSchema extends z.ZodTypeAny = z.ZodTypeAny>(options: DefinitionOptions<TSchema>, example: z.TypeOf<TSchema>) => Definition<TSchema>;
129
+
130
+ declare const CompositionChangedDefinition: Definition<z.ZodIntersection<z.ZodObject<{
131
+ id: z.ZodString;
132
+ slug: z.ZodOptional<z.ZodString>;
133
+ name: z.ZodString;
134
+ type: z.ZodString;
135
+ project: z.ZodObject<{
136
+ id: z.ZodString;
137
+ url: z.ZodString;
138
+ }, "strip", z.ZodTypeAny, {
139
+ id: string;
140
+ url: string;
141
+ }, {
142
+ id: string;
143
+ url: string;
144
+ }>;
145
+ }, "strip", z.ZodTypeAny, {
146
+ id: string;
147
+ name: string;
148
+ type: string;
149
+ project: {
150
+ id: string;
151
+ url: string;
152
+ };
153
+ slug?: string | undefined;
154
+ }, {
155
+ id: string;
156
+ name: string;
157
+ type: string;
158
+ project: {
159
+ id: string;
160
+ url: string;
161
+ };
162
+ slug?: string | undefined;
163
+ }>, z.ZodObject<{
164
+ state: z.ZodNumber;
165
+ edit_url: z.ZodString;
166
+ api_url: z.ZodString;
167
+ edge_url: z.ZodString;
168
+ }, "strip", z.ZodTypeAny, {
169
+ state: number;
170
+ edit_url: string;
171
+ api_url: string;
172
+ edge_url: string;
173
+ }, {
174
+ state: number;
175
+ edit_url: string;
176
+ api_url: string;
177
+ edge_url: string;
178
+ }>>>;
179
+ type CompositionChangedPayload = z.infer<(typeof CompositionChangedDefinition)['schema']>;
180
+ declare const CompositionChangedEventName: string;
181
+
182
+ declare const CompositionDeletedDefinition: Definition<z.ZodIntersection<z.ZodObject<{
183
+ id: z.ZodString;
184
+ slug: z.ZodOptional<z.ZodString>;
185
+ name: z.ZodString;
186
+ type: z.ZodString;
187
+ project: z.ZodObject<{
188
+ id: z.ZodString;
189
+ url: z.ZodString;
190
+ }, "strip", z.ZodTypeAny, {
191
+ id: string;
192
+ url: string;
193
+ }, {
194
+ id: string;
195
+ url: string;
196
+ }>;
197
+ }, "strip", z.ZodTypeAny, {
198
+ id: string;
199
+ name: string;
200
+ type: string;
201
+ project: {
202
+ id: string;
203
+ url: string;
204
+ };
205
+ slug?: string | undefined;
206
+ }, {
207
+ id: string;
208
+ name: string;
209
+ type: string;
210
+ project: {
211
+ id: string;
212
+ url: string;
213
+ };
214
+ slug?: string | undefined;
215
+ }>, z.ZodObject<{
216
+ state: z.ZodOptional<z.ZodNumber>;
217
+ }, "strip", z.ZodTypeAny, {
218
+ state?: number | undefined;
219
+ }, {
220
+ state?: number | undefined;
221
+ }>>>;
222
+ type CompositionDeletedPayload = z.infer<(typeof CompositionDeletedDefinition)['schema']>;
223
+ declare const CompositionDeletedEventName: string;
224
+
225
+ declare const CompositionPublishedDefinition: Definition<z.ZodIntersection<z.ZodObject<{
226
+ id: z.ZodString;
227
+ slug: z.ZodOptional<z.ZodString>;
228
+ name: z.ZodString;
229
+ type: z.ZodString;
230
+ project: z.ZodObject<{
231
+ id: z.ZodString;
232
+ url: z.ZodString;
233
+ }, "strip", z.ZodTypeAny, {
234
+ id: string;
235
+ url: string;
236
+ }, {
237
+ id: string;
238
+ url: string;
239
+ }>;
240
+ }, "strip", z.ZodTypeAny, {
241
+ id: string;
242
+ name: string;
243
+ type: string;
244
+ project: {
245
+ id: string;
246
+ url: string;
247
+ };
248
+ slug?: string | undefined;
249
+ }, {
250
+ id: string;
251
+ name: string;
252
+ type: string;
253
+ project: {
254
+ id: string;
255
+ url: string;
256
+ };
257
+ slug?: string | undefined;
258
+ }>, z.ZodObject<{
259
+ state: z.ZodNumber;
260
+ edit_url: z.ZodString;
261
+ api_url: z.ZodString;
262
+ edge_url: z.ZodString;
263
+ }, "strip", z.ZodTypeAny, {
264
+ state: number;
265
+ edit_url: string;
266
+ api_url: string;
267
+ edge_url: string;
268
+ }, {
269
+ state: number;
270
+ edit_url: string;
271
+ api_url: string;
272
+ edge_url: string;
273
+ }>>>;
274
+ type CompositionPublishedPayload = z.infer<(typeof CompositionPublishedDefinition)['schema']>;
275
+ declare const CompositionPublishedEventName: string;
276
+
277
+ declare const CompositionReleaseChangedDefinition: Definition<z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
278
+ id: z.ZodString;
279
+ slug: z.ZodOptional<z.ZodString>;
280
+ name: z.ZodString;
281
+ type: z.ZodString;
282
+ project: z.ZodObject<{
283
+ id: z.ZodString;
284
+ url: z.ZodString;
285
+ }, "strip", z.ZodTypeAny, {
286
+ id: string;
287
+ url: string;
288
+ }, {
289
+ id: string;
290
+ url: string;
291
+ }>;
292
+ }, "strip", z.ZodTypeAny, {
293
+ id: string;
294
+ name: string;
295
+ type: string;
296
+ project: {
297
+ id: string;
298
+ url: string;
299
+ };
300
+ slug?: string | undefined;
301
+ }, {
302
+ id: string;
303
+ name: string;
304
+ type: string;
305
+ project: {
306
+ id: string;
307
+ url: string;
308
+ };
309
+ slug?: string | undefined;
310
+ }>, z.ZodObject<{
311
+ state: z.ZodNumber;
312
+ edit_url: z.ZodString;
313
+ api_url: z.ZodString;
314
+ edge_url: z.ZodString;
315
+ }, "strip", z.ZodTypeAny, {
316
+ state: number;
317
+ edit_url: string;
318
+ api_url: string;
319
+ edge_url: string;
320
+ }, {
321
+ state: number;
322
+ edit_url: string;
323
+ api_url: string;
324
+ edge_url: string;
325
+ }>>, z.ZodObject<{
326
+ release: z.ZodObject<{
327
+ id: z.ZodString;
328
+ url: z.ZodString;
329
+ }, "strip", z.ZodTypeAny, {
330
+ id: string;
331
+ url: string;
332
+ }, {
333
+ id: string;
334
+ url: string;
335
+ }>;
336
+ }, "strip", z.ZodTypeAny, {
337
+ release: {
338
+ id: string;
339
+ url: string;
340
+ };
341
+ }, {
342
+ release: {
343
+ id: string;
344
+ url: string;
345
+ };
346
+ }>>>;
347
+ type CompositionReleaseChangedPayload = z.infer<(typeof CompositionReleaseChangedDefinition)['schema']>;
348
+ declare const CompositionReleaseChangedEventName: string;
349
+
350
+ declare const CompositionReleaseDeletedDefinition: Definition<z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
351
+ id: z.ZodString;
352
+ slug: z.ZodOptional<z.ZodString>;
353
+ name: z.ZodString;
354
+ type: z.ZodString;
355
+ project: z.ZodObject<{
356
+ id: z.ZodString;
357
+ url: z.ZodString;
358
+ }, "strip", z.ZodTypeAny, {
359
+ id: string;
360
+ url: string;
361
+ }, {
362
+ id: string;
363
+ url: string;
364
+ }>;
365
+ }, "strip", z.ZodTypeAny, {
366
+ id: string;
367
+ name: string;
368
+ type: string;
369
+ project: {
370
+ id: string;
371
+ url: string;
372
+ };
373
+ slug?: string | undefined;
374
+ }, {
375
+ id: string;
376
+ name: string;
377
+ type: string;
378
+ project: {
379
+ id: string;
380
+ url: string;
381
+ };
382
+ slug?: string | undefined;
383
+ }>, z.ZodObject<{
384
+ state: z.ZodOptional<z.ZodNumber>;
385
+ }, "strip", z.ZodTypeAny, {
386
+ state?: number | undefined;
387
+ }, {
388
+ state?: number | undefined;
389
+ }>>, z.ZodObject<{
390
+ release: z.ZodObject<{
391
+ id: z.ZodString;
392
+ url: z.ZodString;
393
+ }, "strip", z.ZodTypeAny, {
394
+ id: string;
395
+ url: string;
396
+ }, {
397
+ id: string;
398
+ url: string;
399
+ }>;
400
+ }, "strip", z.ZodTypeAny, {
401
+ release: {
402
+ id: string;
403
+ url: string;
404
+ };
405
+ }, {
406
+ release: {
407
+ id: string;
408
+ url: string;
409
+ };
410
+ }>>>;
411
+ type CompositionReleaseDeletedPayload = z.infer<(typeof CompositionReleaseDeletedDefinition)['schema']>;
412
+ declare const CompositionReleaseDeletedEventName: string;
413
+
414
+ declare const CompositionReleasePublishedDefinition: Definition<z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
415
+ id: z.ZodString;
416
+ slug: z.ZodOptional<z.ZodString>;
417
+ name: z.ZodString;
418
+ type: z.ZodString;
419
+ project: z.ZodObject<{
420
+ id: z.ZodString;
421
+ url: z.ZodString;
422
+ }, "strip", z.ZodTypeAny, {
423
+ id: string;
424
+ url: string;
425
+ }, {
426
+ id: string;
427
+ url: string;
428
+ }>;
429
+ }, "strip", z.ZodTypeAny, {
430
+ id: string;
431
+ name: string;
432
+ type: string;
433
+ project: {
434
+ id: string;
435
+ url: string;
436
+ };
437
+ slug?: string | undefined;
438
+ }, {
439
+ id: string;
440
+ name: string;
441
+ type: string;
442
+ project: {
443
+ id: string;
444
+ url: string;
445
+ };
446
+ slug?: string | undefined;
447
+ }>, z.ZodObject<{
448
+ state: z.ZodNumber;
449
+ edit_url: z.ZodString;
450
+ api_url: z.ZodString;
451
+ edge_url: z.ZodString;
452
+ }, "strip", z.ZodTypeAny, {
453
+ state: number;
454
+ edit_url: string;
455
+ api_url: string;
456
+ edge_url: string;
457
+ }, {
458
+ state: number;
459
+ edit_url: string;
460
+ api_url: string;
461
+ edge_url: string;
462
+ }>>, z.ZodObject<{
463
+ release: z.ZodObject<{
464
+ id: z.ZodString;
465
+ url: z.ZodString;
466
+ }, "strip", z.ZodTypeAny, {
467
+ id: string;
468
+ url: string;
469
+ }, {
470
+ id: string;
471
+ url: string;
472
+ }>;
473
+ }, "strip", z.ZodTypeAny, {
474
+ release: {
475
+ id: string;
476
+ url: string;
477
+ };
478
+ }, {
479
+ release: {
480
+ id: string;
481
+ url: string;
482
+ };
483
+ }>>>;
484
+ type CompositionReleasePublishedPayload = z.infer<(typeof CompositionReleasePublishedDefinition)['schema']>;
485
+ declare const CompositionReleasePublishedEventName: string;
486
+
487
+ declare const EntryDeletePayloadSchema: z.ZodIntersection<z.ZodObject<{
488
+ id: z.ZodString;
489
+ slug: z.ZodOptional<z.ZodString>;
490
+ name: z.ZodString;
491
+ type: z.ZodString;
492
+ project: z.ZodObject<{
493
+ id: z.ZodString;
494
+ url: z.ZodString;
495
+ }, "strip", z.ZodTypeAny, {
496
+ id: string;
497
+ url: string;
498
+ }, {
499
+ id: string;
500
+ url: string;
501
+ }>;
502
+ }, "strip", z.ZodTypeAny, {
503
+ id: string;
504
+ name: string;
505
+ type: string;
506
+ project: {
507
+ id: string;
508
+ url: string;
509
+ };
510
+ slug?: string | undefined;
511
+ }, {
512
+ id: string;
513
+ name: string;
514
+ type: string;
515
+ project: {
516
+ id: string;
517
+ url: string;
518
+ };
519
+ slug?: string | undefined;
520
+ }>, z.ZodObject<{
521
+ state: z.ZodOptional<z.ZodNumber>;
522
+ }, "strip", z.ZodTypeAny, {
523
+ state?: number | undefined;
524
+ }, {
525
+ state?: number | undefined;
526
+ }>>;
527
+ declare const EntryPayloadSchema: z.ZodIntersection<z.ZodObject<{
528
+ id: z.ZodString;
529
+ slug: z.ZodOptional<z.ZodString>;
530
+ name: z.ZodString;
531
+ type: z.ZodString;
532
+ project: z.ZodObject<{
533
+ id: z.ZodString;
534
+ url: z.ZodString;
535
+ }, "strip", z.ZodTypeAny, {
536
+ id: string;
537
+ url: string;
538
+ }, {
539
+ id: string;
540
+ url: string;
541
+ }>;
542
+ }, "strip", z.ZodTypeAny, {
543
+ id: string;
544
+ name: string;
545
+ type: string;
546
+ project: {
547
+ id: string;
548
+ url: string;
549
+ };
550
+ slug?: string | undefined;
551
+ }, {
552
+ id: string;
553
+ name: string;
554
+ type: string;
555
+ project: {
556
+ id: string;
557
+ url: string;
558
+ };
559
+ slug?: string | undefined;
560
+ }>, z.ZodObject<{
561
+ state: z.ZodNumber;
562
+ edit_url: z.ZodString;
563
+ api_url: z.ZodString;
564
+ edge_url: z.ZodString;
565
+ }, "strip", z.ZodTypeAny, {
566
+ state: number;
567
+ edit_url: string;
568
+ api_url: string;
569
+ edge_url: string;
570
+ }, {
571
+ state: number;
572
+ edit_url: string;
573
+ api_url: string;
574
+ edge_url: string;
575
+ }>>;
576
+ declare const ReleaseEntryPayloadSchema: z.ZodObject<{
577
+ release: z.ZodObject<{
578
+ id: z.ZodString;
579
+ url: z.ZodString;
580
+ }, "strip", z.ZodTypeAny, {
581
+ id: string;
582
+ url: string;
583
+ }, {
584
+ id: string;
585
+ url: string;
586
+ }>;
587
+ }, "strip", z.ZodTypeAny, {
588
+ release: {
589
+ id: string;
590
+ url: string;
591
+ };
592
+ }, {
593
+ release: {
594
+ id: string;
595
+ url: string;
596
+ };
597
+ }>;
598
+ type EntryPayload = z.infer<typeof EntryPayloadSchema>;
599
+ type ReleaseEntryPayload = z.infer<typeof ReleaseEntryPayloadSchema>;
600
+
601
+ declare const EntryChangedDefinition: Definition<z.ZodIntersection<z.ZodObject<{
602
+ id: z.ZodString;
603
+ slug: z.ZodOptional<z.ZodString>;
604
+ name: z.ZodString;
605
+ type: z.ZodString;
606
+ project: z.ZodObject<{
607
+ id: z.ZodString;
608
+ url: z.ZodString;
609
+ }, "strip", z.ZodTypeAny, {
610
+ id: string;
611
+ url: string;
612
+ }, {
613
+ id: string;
614
+ url: string;
615
+ }>;
616
+ }, "strip", z.ZodTypeAny, {
617
+ id: string;
618
+ name: string;
619
+ type: string;
620
+ project: {
621
+ id: string;
622
+ url: string;
623
+ };
624
+ slug?: string | undefined;
625
+ }, {
626
+ id: string;
627
+ name: string;
628
+ type: string;
629
+ project: {
630
+ id: string;
631
+ url: string;
632
+ };
633
+ slug?: string | undefined;
634
+ }>, z.ZodObject<{
635
+ state: z.ZodNumber;
636
+ edit_url: z.ZodString;
637
+ api_url: z.ZodString;
638
+ edge_url: z.ZodString;
639
+ }, "strip", z.ZodTypeAny, {
640
+ state: number;
641
+ edit_url: string;
642
+ api_url: string;
643
+ edge_url: string;
644
+ }, {
645
+ state: number;
646
+ edit_url: string;
647
+ api_url: string;
648
+ edge_url: string;
649
+ }>>>;
650
+ type EntryChangedPayload = z.infer<(typeof EntryChangedDefinition)['schema']>;
651
+ declare const EntryChangedEventName: string;
652
+
653
+ declare const EntryDeletedDefinition: Definition<z.ZodIntersection<z.ZodObject<{
654
+ id: z.ZodString;
655
+ slug: z.ZodOptional<z.ZodString>;
656
+ name: z.ZodString;
657
+ type: z.ZodString;
658
+ project: z.ZodObject<{
659
+ id: z.ZodString;
660
+ url: z.ZodString;
661
+ }, "strip", z.ZodTypeAny, {
662
+ id: string;
663
+ url: string;
664
+ }, {
665
+ id: string;
666
+ url: string;
667
+ }>;
668
+ }, "strip", z.ZodTypeAny, {
669
+ id: string;
670
+ name: string;
671
+ type: string;
672
+ project: {
673
+ id: string;
674
+ url: string;
675
+ };
676
+ slug?: string | undefined;
677
+ }, {
678
+ id: string;
679
+ name: string;
680
+ type: string;
681
+ project: {
682
+ id: string;
683
+ url: string;
684
+ };
685
+ slug?: string | undefined;
686
+ }>, z.ZodObject<{
687
+ state: z.ZodOptional<z.ZodNumber>;
688
+ }, "strip", z.ZodTypeAny, {
689
+ state?: number | undefined;
690
+ }, {
691
+ state?: number | undefined;
692
+ }>>>;
693
+ type EntryDeletedPayload = z.infer<(typeof EntryDeletedDefinition)['schema']>;
694
+ declare const EntryDeletedEventName: string;
695
+
696
+ declare const EntryPublishedDefinition: Definition<z.ZodIntersection<z.ZodObject<{
697
+ id: z.ZodString;
698
+ slug: z.ZodOptional<z.ZodString>;
699
+ name: z.ZodString;
700
+ type: z.ZodString;
701
+ project: z.ZodObject<{
702
+ id: z.ZodString;
703
+ url: z.ZodString;
704
+ }, "strip", z.ZodTypeAny, {
705
+ id: string;
706
+ url: string;
707
+ }, {
708
+ id: string;
709
+ url: string;
710
+ }>;
711
+ }, "strip", z.ZodTypeAny, {
712
+ id: string;
713
+ name: string;
714
+ type: string;
715
+ project: {
716
+ id: string;
717
+ url: string;
718
+ };
719
+ slug?: string | undefined;
720
+ }, {
721
+ id: string;
722
+ name: string;
723
+ type: string;
724
+ project: {
725
+ id: string;
726
+ url: string;
727
+ };
728
+ slug?: string | undefined;
729
+ }>, z.ZodObject<{
730
+ state: z.ZodNumber;
731
+ edit_url: z.ZodString;
732
+ api_url: z.ZodString;
733
+ edge_url: z.ZodString;
734
+ }, "strip", z.ZodTypeAny, {
735
+ state: number;
736
+ edit_url: string;
737
+ api_url: string;
738
+ edge_url: string;
739
+ }, {
740
+ state: number;
741
+ edit_url: string;
742
+ api_url: string;
743
+ edge_url: string;
744
+ }>>>;
745
+ type EntryPublishedPayload = z.infer<(typeof EntryPublishedDefinition)['schema']>;
746
+ declare const EntryPublishedEventName: string;
747
+
748
+ declare const EntryReleaseChangedDefinition: Definition<z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
749
+ id: z.ZodString;
750
+ slug: z.ZodOptional<z.ZodString>;
751
+ name: z.ZodString;
752
+ type: z.ZodString;
753
+ project: z.ZodObject<{
754
+ id: z.ZodString;
755
+ url: z.ZodString;
756
+ }, "strip", z.ZodTypeAny, {
757
+ id: string;
758
+ url: string;
759
+ }, {
760
+ id: string;
761
+ url: string;
762
+ }>;
763
+ }, "strip", z.ZodTypeAny, {
764
+ id: string;
765
+ name: string;
766
+ type: string;
767
+ project: {
768
+ id: string;
769
+ url: string;
770
+ };
771
+ slug?: string | undefined;
772
+ }, {
773
+ id: string;
774
+ name: string;
775
+ type: string;
776
+ project: {
777
+ id: string;
778
+ url: string;
779
+ };
780
+ slug?: string | undefined;
781
+ }>, z.ZodObject<{
6
782
  state: z.ZodNumber;
7
- name: z.ZodString;
8
- project: z.ZodObject<{
783
+ edit_url: z.ZodString;
784
+ api_url: z.ZodString;
785
+ edge_url: z.ZodString;
786
+ }, "strip", z.ZodTypeAny, {
787
+ state: number;
788
+ edit_url: string;
789
+ api_url: string;
790
+ edge_url: string;
791
+ }, {
792
+ state: number;
793
+ edit_url: string;
794
+ api_url: string;
795
+ edge_url: string;
796
+ }>>, z.ZodObject<{
797
+ release: z.ZodObject<{
9
798
  id: z.ZodString;
10
799
  url: z.ZodString;
11
800
  }, "strip", z.ZodTypeAny, {
@@ -15,48 +804,25 @@ declare const CompositionPayloadSchema: z.ZodObject<{
15
804
  id: string;
16
805
  url: string;
17
806
  }>;
18
- edit_url: z.ZodString;
19
807
  }, "strip", z.ZodTypeAny, {
20
- id: string;
21
- state: number;
22
- name: string;
23
- project: {
808
+ release: {
24
809
  id: string;
25
810
  url: string;
26
811
  };
27
- edit_url: string;
28
- slug?: string | undefined;
29
812
  }, {
30
- id: string;
31
- state: number;
32
- name: string;
33
- project: {
813
+ release: {
34
814
  id: string;
35
815
  url: string;
36
816
  };
37
- edit_url: string;
38
- slug?: string | undefined;
39
- }>;
40
- type CompositionPayload = z.infer<typeof CompositionPayloadSchema>;
41
-
42
- type DefinitionOptions<TSchema> = {
43
- event: string;
44
- name: string;
45
- description: string;
46
- schema: TSchema;
47
- };
48
- type Definition<TSchema extends ZodTypeAny = ZodTypeAny> = DefinitionOptions<TSchema> & {
49
- _definition: true;
50
- example: z.TypeOf<TSchema>;
51
- };
52
- declare const isDefinition: (obj: any) => obj is Definition<z.ZodTypeAny>;
53
- declare const definition: <TSchema extends z.ZodTypeAny = z.ZodTypeAny>(options: DefinitionOptions<TSchema>, example: z.TypeOf<TSchema>) => Definition<TSchema>;
817
+ }>>>;
818
+ type EntryReleaseChangedPayload = z.infer<(typeof EntryReleaseChangedDefinition)['schema']>;
819
+ declare const EntryReleaseChangedEventName: string;
54
820
 
55
- declare const CompositionChangedDefinition: Definition<z.ZodObject<{
821
+ declare const EntryReleaseDeletedDefinition: Definition<z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
56
822
  id: z.ZodString;
57
823
  slug: z.ZodOptional<z.ZodString>;
58
- state: z.ZodNumber;
59
824
  name: z.ZodString;
825
+ type: z.ZodString;
60
826
  project: z.ZodObject<{
61
827
  id: z.ZodString;
62
828
  url: z.ZodString;
@@ -67,37 +833,32 @@ declare const CompositionChangedDefinition: Definition<z.ZodObject<{
67
833
  id: string;
68
834
  url: string;
69
835
  }>;
70
- edit_url: z.ZodString;
71
836
  }, "strip", z.ZodTypeAny, {
72
837
  id: string;
73
- state: number;
74
838
  name: string;
839
+ type: string;
75
840
  project: {
76
841
  id: string;
77
842
  url: string;
78
843
  };
79
- edit_url: string;
80
844
  slug?: string | undefined;
81
845
  }, {
82
846
  id: string;
83
- state: number;
84
847
  name: string;
848
+ type: string;
85
849
  project: {
86
850
  id: string;
87
851
  url: string;
88
852
  };
89
- edit_url: string;
90
853
  slug?: string | undefined;
91
- }>>;
92
- type CompositionChangedPayload = z.infer<(typeof CompositionChangedDefinition)['schema']>;
93
- declare const CompositionChangedEventName: string;
94
-
95
- declare const CompositionDeletedDefinition: Definition<z.ZodObject<{
96
- id: z.ZodString;
854
+ }>, z.ZodObject<{
97
855
  state: z.ZodOptional<z.ZodNumber>;
98
- name: z.ZodString;
99
- slug: z.ZodOptional<z.ZodString>;
100
- project: z.ZodObject<{
856
+ }, "strip", z.ZodTypeAny, {
857
+ state?: number | undefined;
858
+ }, {
859
+ state?: number | undefined;
860
+ }>>, z.ZodObject<{
861
+ release: z.ZodObject<{
101
862
  id: z.ZodString;
102
863
  url: z.ZodString;
103
864
  }, "strip", z.ZodTypeAny, {
@@ -108,32 +869,24 @@ declare const CompositionDeletedDefinition: Definition<z.ZodObject<{
108
869
  url: string;
109
870
  }>;
110
871
  }, "strip", z.ZodTypeAny, {
111
- id: string;
112
- name: string;
113
- project: {
872
+ release: {
114
873
  id: string;
115
874
  url: string;
116
875
  };
117
- state?: number | undefined;
118
- slug?: string | undefined;
119
876
  }, {
120
- id: string;
121
- name: string;
122
- project: {
877
+ release: {
123
878
  id: string;
124
879
  url: string;
125
880
  };
126
- state?: number | undefined;
127
- slug?: string | undefined;
128
- }>>;
129
- type CompositionDeletedPayload = z.infer<(typeof CompositionDeletedDefinition)['schema']>;
130
- declare const CompositionDeletedEventName: string;
881
+ }>>>;
882
+ type EntryReleaseDeletedPayload = z.infer<(typeof EntryReleaseDeletedDefinition)['schema']>;
883
+ declare const EntryReleaseDeletedEventName: string;
131
884
 
132
- declare const CompositionPublishedDefinition: Definition<z.ZodObject<{
885
+ declare const EntryReleasePublishedDefinition: Definition<z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
133
886
  id: z.ZodString;
134
887
  slug: z.ZodOptional<z.ZodString>;
135
- state: z.ZodNumber;
136
888
  name: z.ZodString;
889
+ type: z.ZodString;
137
890
  project: z.ZodObject<{
138
891
  id: z.ZodString;
139
892
  url: z.ZodString;
@@ -144,30 +897,63 @@ declare const CompositionPublishedDefinition: Definition<z.ZodObject<{
144
897
  id: string;
145
898
  url: string;
146
899
  }>;
147
- edit_url: z.ZodString;
148
900
  }, "strip", z.ZodTypeAny, {
149
901
  id: string;
150
- state: number;
151
902
  name: string;
903
+ type: string;
152
904
  project: {
153
905
  id: string;
154
906
  url: string;
155
907
  };
156
- edit_url: string;
157
908
  slug?: string | undefined;
158
909
  }, {
159
910
  id: string;
160
- state: number;
161
911
  name: string;
912
+ type: string;
162
913
  project: {
163
914
  id: string;
164
915
  url: string;
165
916
  };
166
- edit_url: string;
167
917
  slug?: string | undefined;
168
- }>>;
169
- type CompositionPublishedPayload = z.infer<(typeof CompositionPublishedDefinition)['schema']>;
170
- declare const CompositionPublishedEventName: string;
918
+ }>, z.ZodObject<{
919
+ state: z.ZodNumber;
920
+ edit_url: z.ZodString;
921
+ api_url: z.ZodString;
922
+ edge_url: z.ZodString;
923
+ }, "strip", z.ZodTypeAny, {
924
+ state: number;
925
+ edit_url: string;
926
+ api_url: string;
927
+ edge_url: string;
928
+ }, {
929
+ state: number;
930
+ edit_url: string;
931
+ api_url: string;
932
+ edge_url: string;
933
+ }>>, z.ZodObject<{
934
+ release: z.ZodObject<{
935
+ id: z.ZodString;
936
+ url: z.ZodString;
937
+ }, "strip", z.ZodTypeAny, {
938
+ id: string;
939
+ url: string;
940
+ }, {
941
+ id: string;
942
+ url: string;
943
+ }>;
944
+ }, "strip", z.ZodTypeAny, {
945
+ release: {
946
+ id: string;
947
+ url: string;
948
+ };
949
+ }, {
950
+ release: {
951
+ id: string;
952
+ url: string;
953
+ };
954
+ }>>>;
955
+ type EntryReleasePublishedPayload = z.infer<(typeof EntryReleasePublishedDefinition)['schema']>;
956
+ declare const EntryReleasePublishedEventName: string;
171
957
 
172
958
  declare const ManifestPublishedDefinition: Definition<z.ZodObject<{
173
959
  timestamp: z.ZodNumber;
@@ -364,4 +1150,229 @@ declare const RedirectUpdateDefinition: Definition<z.ZodObject<{
364
1150
  type RedirectUpdatedPayload = z.infer<(typeof RedirectUpdateDefinition)['schema']>;
365
1151
  declare const RedirectUpdatedEventName: string;
366
1152
 
367
- export { CompositionChangedDefinition, CompositionChangedEventName, CompositionChangedPayload, CompositionDeletedDefinition, CompositionDeletedEventName, CompositionDeletedPayload, CompositionPayload, CompositionPayloadSchema, CompositionPublishedDefinition, CompositionPublishedEventName, CompositionPublishedPayload, Definition, DefinitionOptions, ManifestPublishedDefinition, ManifestPublishedEventName, ManifestPublishedPayload, ProjectMapDeleteDefinition, ProjectMapDeletedEventName, ProjectMapDeletedPayload, ProjectMapNodeDeleteDefinition, ProjectMapNodeDeletedEventName, ProjectMapNodeDeletedPayload, ProjectMapNodeInsertDefinition, ProjectMapNodeInsertedEventName, ProjectMapNodeInsertedPayload, ProjectMapNodeUpdateDefinition, ProjectMapNodeUpdatedEventName, ProjectMapNodeUpdatedPayload, ProjectMapUpdateDefinition, ProjectMapUpdatedEventName, ProjectMapUpdatedPayload, RedirectDeleteDefinition, RedirectDeletedEventName, RedirectDeletedPayload, RedirectInsertDefinition, RedirectInsertedEventName, RedirectInsertedPayload, RedirectUpdateDefinition, RedirectUpdatedEventName, RedirectUpdatedPayload, definition, isDefinition };
1153
+ declare const ReleasePayloadSchema: z.ZodObject<{
1154
+ id: z.ZodString;
1155
+ state: z.ZodEnum<["open", "locked", "queued", "launching", "launched", "deleting"]>;
1156
+ name: z.ZodString;
1157
+ project: z.ZodObject<{
1158
+ id: z.ZodString;
1159
+ url: z.ZodString;
1160
+ }, "strip", z.ZodTypeAny, {
1161
+ id: string;
1162
+ url: string;
1163
+ }, {
1164
+ id: string;
1165
+ url: string;
1166
+ }>;
1167
+ autoLaunchSchedule: z.ZodOptional<z.ZodNumber>;
1168
+ autoLaunchScheduleTimeZone: z.ZodOptional<z.ZodString>;
1169
+ edit_url: z.ZodString;
1170
+ api_url: z.ZodString;
1171
+ }, "strip", z.ZodTypeAny, {
1172
+ id: string;
1173
+ name: string;
1174
+ project: {
1175
+ id: string;
1176
+ url: string;
1177
+ };
1178
+ state: "open" | "locked" | "queued" | "launching" | "launched" | "deleting";
1179
+ edit_url: string;
1180
+ api_url: string;
1181
+ autoLaunchSchedule?: number | undefined;
1182
+ autoLaunchScheduleTimeZone?: string | undefined;
1183
+ }, {
1184
+ id: string;
1185
+ name: string;
1186
+ project: {
1187
+ id: string;
1188
+ url: string;
1189
+ };
1190
+ state: "open" | "locked" | "queued" | "launching" | "launched" | "deleting";
1191
+ edit_url: string;
1192
+ api_url: string;
1193
+ autoLaunchSchedule?: number | undefined;
1194
+ autoLaunchScheduleTimeZone?: string | undefined;
1195
+ }>;
1196
+ type ReleasePayload = z.infer<typeof ReleasePayloadSchema>;
1197
+
1198
+ declare const ReleaseChangedDefinition: Definition<z.ZodObject<{
1199
+ id: z.ZodString;
1200
+ state: z.ZodEnum<["open", "locked", "queued", "launching", "launched", "deleting"]>;
1201
+ name: z.ZodString;
1202
+ project: z.ZodObject<{
1203
+ id: z.ZodString;
1204
+ url: z.ZodString;
1205
+ }, "strip", z.ZodTypeAny, {
1206
+ id: string;
1207
+ url: string;
1208
+ }, {
1209
+ id: string;
1210
+ url: string;
1211
+ }>;
1212
+ autoLaunchSchedule: z.ZodOptional<z.ZodNumber>;
1213
+ autoLaunchScheduleTimeZone: z.ZodOptional<z.ZodString>;
1214
+ edit_url: z.ZodString;
1215
+ api_url: z.ZodString;
1216
+ }, "strip", z.ZodTypeAny, {
1217
+ id: string;
1218
+ name: string;
1219
+ project: {
1220
+ id: string;
1221
+ url: string;
1222
+ };
1223
+ state: "open" | "locked" | "queued" | "launching" | "launched" | "deleting";
1224
+ edit_url: string;
1225
+ api_url: string;
1226
+ autoLaunchSchedule?: number | undefined;
1227
+ autoLaunchScheduleTimeZone?: string | undefined;
1228
+ }, {
1229
+ id: string;
1230
+ name: string;
1231
+ project: {
1232
+ id: string;
1233
+ url: string;
1234
+ };
1235
+ state: "open" | "locked" | "queued" | "launching" | "launched" | "deleting";
1236
+ edit_url: string;
1237
+ api_url: string;
1238
+ autoLaunchSchedule?: number | undefined;
1239
+ autoLaunchScheduleTimeZone?: string | undefined;
1240
+ }>>;
1241
+ type ReleaseChangedPayload = z.infer<(typeof ReleaseChangedDefinition)['schema']>;
1242
+ declare const ReleaseChangedEventName: string;
1243
+
1244
+ declare const ReleaseDeletedDefinition: Definition<z.ZodObject<Omit<{
1245
+ id: z.ZodString;
1246
+ state: z.ZodEnum<["open", "locked", "queued", "launching", "launched", "deleting"]>;
1247
+ name: z.ZodString;
1248
+ project: z.ZodObject<{
1249
+ id: z.ZodString;
1250
+ url: z.ZodString;
1251
+ }, "strip", z.ZodTypeAny, {
1252
+ id: string;
1253
+ url: string;
1254
+ }, {
1255
+ id: string;
1256
+ url: string;
1257
+ }>;
1258
+ autoLaunchSchedule: z.ZodOptional<z.ZodNumber>;
1259
+ autoLaunchScheduleTimeZone: z.ZodOptional<z.ZodString>;
1260
+ edit_url: z.ZodString;
1261
+ api_url: z.ZodString;
1262
+ }, "edit_url" | "api_url">, "strip", z.ZodTypeAny, {
1263
+ id: string;
1264
+ name: string;
1265
+ project: {
1266
+ id: string;
1267
+ url: string;
1268
+ };
1269
+ state: "open" | "locked" | "queued" | "launching" | "launched" | "deleting";
1270
+ autoLaunchSchedule?: number | undefined;
1271
+ autoLaunchScheduleTimeZone?: string | undefined;
1272
+ }, {
1273
+ id: string;
1274
+ name: string;
1275
+ project: {
1276
+ id: string;
1277
+ url: string;
1278
+ };
1279
+ state: "open" | "locked" | "queued" | "launching" | "launched" | "deleting";
1280
+ autoLaunchSchedule?: number | undefined;
1281
+ autoLaunchScheduleTimeZone?: string | undefined;
1282
+ }>>;
1283
+ type ReleaseDeletedPayload = z.infer<(typeof ReleaseDeletedDefinition)['schema']>;
1284
+ declare const ReleaseDeletedEventName: string;
1285
+
1286
+ declare const ReleaseLaunchedDefinition: Definition<z.ZodObject<{
1287
+ id: z.ZodString;
1288
+ state: z.ZodEnum<["open", "locked", "queued", "launching", "launched", "deleting"]>;
1289
+ name: z.ZodString;
1290
+ project: z.ZodObject<{
1291
+ id: z.ZodString;
1292
+ url: z.ZodString;
1293
+ }, "strip", z.ZodTypeAny, {
1294
+ id: string;
1295
+ url: string;
1296
+ }, {
1297
+ id: string;
1298
+ url: string;
1299
+ }>;
1300
+ autoLaunchSchedule: z.ZodOptional<z.ZodNumber>;
1301
+ autoLaunchScheduleTimeZone: z.ZodOptional<z.ZodString>;
1302
+ edit_url: z.ZodString;
1303
+ api_url: z.ZodString;
1304
+ }, "strip", z.ZodTypeAny, {
1305
+ id: string;
1306
+ name: string;
1307
+ project: {
1308
+ id: string;
1309
+ url: string;
1310
+ };
1311
+ state: "open" | "locked" | "queued" | "launching" | "launched" | "deleting";
1312
+ edit_url: string;
1313
+ api_url: string;
1314
+ autoLaunchSchedule?: number | undefined;
1315
+ autoLaunchScheduleTimeZone?: string | undefined;
1316
+ }, {
1317
+ id: string;
1318
+ name: string;
1319
+ project: {
1320
+ id: string;
1321
+ url: string;
1322
+ };
1323
+ state: "open" | "locked" | "queued" | "launching" | "launched" | "deleting";
1324
+ edit_url: string;
1325
+ api_url: string;
1326
+ autoLaunchSchedule?: number | undefined;
1327
+ autoLaunchScheduleTimeZone?: string | undefined;
1328
+ }>>;
1329
+ type ReleaseLaunchedPayload = z.infer<(typeof ReleaseLaunchedDefinition)['schema']>;
1330
+ declare const ReleaseLaunchedEventName: string;
1331
+
1332
+ declare const ReleaseLaunchStartedDefinition: Definition<z.ZodObject<{
1333
+ id: z.ZodString;
1334
+ state: z.ZodEnum<["open", "locked", "queued", "launching", "launched", "deleting"]>;
1335
+ name: z.ZodString;
1336
+ project: z.ZodObject<{
1337
+ id: z.ZodString;
1338
+ url: z.ZodString;
1339
+ }, "strip", z.ZodTypeAny, {
1340
+ id: string;
1341
+ url: string;
1342
+ }, {
1343
+ id: string;
1344
+ url: string;
1345
+ }>;
1346
+ autoLaunchSchedule: z.ZodOptional<z.ZodNumber>;
1347
+ autoLaunchScheduleTimeZone: z.ZodOptional<z.ZodString>;
1348
+ edit_url: z.ZodString;
1349
+ api_url: z.ZodString;
1350
+ }, "strip", z.ZodTypeAny, {
1351
+ id: string;
1352
+ name: string;
1353
+ project: {
1354
+ id: string;
1355
+ url: string;
1356
+ };
1357
+ state: "open" | "locked" | "queued" | "launching" | "launched" | "deleting";
1358
+ edit_url: string;
1359
+ api_url: string;
1360
+ autoLaunchSchedule?: number | undefined;
1361
+ autoLaunchScheduleTimeZone?: string | undefined;
1362
+ }, {
1363
+ id: string;
1364
+ name: string;
1365
+ project: {
1366
+ id: string;
1367
+ url: string;
1368
+ };
1369
+ state: "open" | "locked" | "queued" | "launching" | "launched" | "deleting";
1370
+ edit_url: string;
1371
+ api_url: string;
1372
+ autoLaunchSchedule?: number | undefined;
1373
+ autoLaunchScheduleTimeZone?: string | undefined;
1374
+ }>>;
1375
+ type ReleaseLaunchStartedPayload = z.infer<(typeof ReleaseLaunchStartedDefinition)['schema']>;
1376
+ declare const ReleaseLaunchStartedEventName: string;
1377
+
1378
+ export { CompositionChangedDefinition, CompositionChangedEventName, type CompositionChangedPayload, CompositionDeletePayloadSchema, CompositionDeletedDefinition, CompositionDeletedEventName, type CompositionDeletedPayload, type CompositionPayload, CompositionPayloadSchema, CompositionPublishedDefinition, CompositionPublishedEventName, type CompositionPublishedPayload, CompositionReleaseChangedDefinition, CompositionReleaseChangedEventName, type CompositionReleaseChangedPayload, CompositionReleaseDeletedDefinition, CompositionReleaseDeletedEventName, type CompositionReleaseDeletedPayload, CompositionReleasePublishedDefinition, CompositionReleasePublishedEventName, type CompositionReleasePublishedPayload, type Definition, type DefinitionOptions, EntryChangedDefinition, EntryChangedEventName, type EntryChangedPayload, EntryDeletePayloadSchema, EntryDeletedDefinition, EntryDeletedEventName, type EntryDeletedPayload, type EntryPayload, EntryPayloadSchema, EntryPublishedDefinition, EntryPublishedEventName, type EntryPublishedPayload, EntryReleaseChangedDefinition, EntryReleaseChangedEventName, type EntryReleaseChangedPayload, EntryReleaseDeletedDefinition, EntryReleaseDeletedEventName, type EntryReleaseDeletedPayload, EntryReleasePublishedDefinition, EntryReleasePublishedEventName, type EntryReleasePublishedPayload, ManifestPublishedDefinition, ManifestPublishedEventName, type ManifestPublishedPayload, ProjectMapDeleteDefinition, ProjectMapDeletedEventName, type ProjectMapDeletedPayload, ProjectMapNodeDeleteDefinition, ProjectMapNodeDeletedEventName, type ProjectMapNodeDeletedPayload, ProjectMapNodeInsertDefinition, ProjectMapNodeInsertedEventName, type ProjectMapNodeInsertedPayload, ProjectMapNodeUpdateDefinition, ProjectMapNodeUpdatedEventName, type ProjectMapNodeUpdatedPayload, ProjectMapUpdateDefinition, ProjectMapUpdatedEventName, type ProjectMapUpdatedPayload, RedirectDeleteDefinition, RedirectDeletedEventName, type RedirectDeletedPayload, RedirectInsertDefinition, RedirectInsertedEventName, type RedirectInsertedPayload, RedirectUpdateDefinition, RedirectUpdatedEventName, type RedirectUpdatedPayload, ReleaseChangedDefinition, ReleaseChangedEventName, type ReleaseChangedPayload, type ReleaseCompositionPayload, ReleaseCompositionPayloadSchema, ReleaseDeletedDefinition, ReleaseDeletedEventName, type ReleaseDeletedPayload, type ReleaseEntryPayload, ReleaseEntryPayloadSchema, ReleaseLaunchStartedDefinition, ReleaseLaunchStartedEventName, type ReleaseLaunchStartedPayload, ReleaseLaunchedDefinition, ReleaseLaunchedEventName, type ReleaseLaunchedPayload, type ReleasePayload, ReleasePayloadSchema, definition, isDefinition };