@uniformdev/webhooks 19.128.1-alpha.8 → 19.130.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.
package/dist/index.d.mts CHANGED
@@ -1,5 +1,28 @@
1
+ import * as zod from 'zod';
1
2
  import { z, ZodTypeAny } from 'zod';
2
3
 
4
+ declare const CompositionTriggerPayloadSchema: z.ZodObject<{
5
+ trigger: z.ZodOptional<z.ZodObject<{
6
+ type: z.ZodEnum<["release"]>;
7
+ id: z.ZodString;
8
+ }, "strip", z.ZodTypeAny, {
9
+ id: string;
10
+ type: "release";
11
+ }, {
12
+ id: string;
13
+ type: "release";
14
+ }>>;
15
+ }, "strip", z.ZodTypeAny, {
16
+ trigger?: {
17
+ id: string;
18
+ type: "release";
19
+ } | undefined;
20
+ }, {
21
+ trigger?: {
22
+ id: string;
23
+ type: "release";
24
+ } | undefined;
25
+ }>;
3
26
  declare const CompositionDeletePayloadSchema: z.ZodIntersection<z.ZodObject<{
4
27
  id: z.ZodString;
5
28
  slug: z.ZodOptional<z.ZodString>;
@@ -119,6 +142,7 @@ type DefinitionOptions<TSchema> = {
119
142
  name: string;
120
143
  description: string;
121
144
  schema: TSchema;
145
+ archived?: boolean;
122
146
  };
123
147
  type Definition<TSchema extends ZodTypeAny = ZodTypeAny> = DefinitionOptions<TSchema> & {
124
148
  _definition: true;
@@ -127,7 +151,7 @@ type Definition<TSchema extends ZodTypeAny = ZodTypeAny> = DefinitionOptions<TSc
127
151
  declare const isDefinition: (obj: any) => obj is Definition<z.ZodTypeAny>;
128
152
  declare const definition: <TSchema extends z.ZodTypeAny = z.ZodTypeAny>(options: DefinitionOptions<TSchema>, example: z.TypeOf<TSchema>) => Definition<TSchema>;
129
153
 
130
- declare const CompositionChangedDefinition: Definition<z.ZodIntersection<z.ZodObject<{
154
+ declare const CompositionChangedDefinition: Definition<z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
131
155
  id: z.ZodString;
132
156
  slug: z.ZodOptional<z.ZodString>;
133
157
  name: z.ZodString;
@@ -175,11 +199,32 @@ declare const CompositionChangedDefinition: Definition<z.ZodIntersection<z.ZodOb
175
199
  edit_url: string;
176
200
  api_url: string;
177
201
  edge_url: string;
202
+ }>>, z.ZodObject<{
203
+ trigger: z.ZodOptional<z.ZodObject<{
204
+ type: z.ZodEnum<["release"]>;
205
+ id: z.ZodString;
206
+ }, "strip", z.ZodTypeAny, {
207
+ id: string;
208
+ type: "release";
209
+ }, {
210
+ id: string;
211
+ type: "release";
212
+ }>>;
213
+ }, "strip", z.ZodTypeAny, {
214
+ trigger?: {
215
+ id: string;
216
+ type: "release";
217
+ } | undefined;
218
+ }, {
219
+ trigger?: {
220
+ id: string;
221
+ type: "release";
222
+ } | undefined;
178
223
  }>>>;
179
224
  type CompositionChangedPayload = z.infer<(typeof CompositionChangedDefinition)['schema']>;
180
225
  declare const CompositionChangedEventName: string;
181
226
 
182
- declare const CompositionDeletedDefinition: Definition<z.ZodIntersection<z.ZodObject<{
227
+ declare const CompositionDeletedDefinition: Definition<z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
183
228
  id: z.ZodString;
184
229
  slug: z.ZodOptional<z.ZodString>;
185
230
  name: z.ZodString;
@@ -218,11 +263,32 @@ declare const CompositionDeletedDefinition: Definition<z.ZodIntersection<z.ZodOb
218
263
  state?: number | undefined;
219
264
  }, {
220
265
  state?: number | undefined;
266
+ }>>, z.ZodObject<{
267
+ trigger: z.ZodOptional<z.ZodObject<{
268
+ type: z.ZodEnum<["release"]>;
269
+ id: z.ZodString;
270
+ }, "strip", z.ZodTypeAny, {
271
+ id: string;
272
+ type: "release";
273
+ }, {
274
+ id: string;
275
+ type: "release";
276
+ }>>;
277
+ }, "strip", z.ZodTypeAny, {
278
+ trigger?: {
279
+ id: string;
280
+ type: "release";
281
+ } | undefined;
282
+ }, {
283
+ trigger?: {
284
+ id: string;
285
+ type: "release";
286
+ } | undefined;
221
287
  }>>>;
222
288
  type CompositionDeletedPayload = z.infer<(typeof CompositionDeletedDefinition)['schema']>;
223
289
  declare const CompositionDeletedEventName: string;
224
290
 
225
- declare const CompositionPublishedDefinition: Definition<z.ZodIntersection<z.ZodObject<{
291
+ declare const CompositionPublishedDefinition: Definition<z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
226
292
  id: z.ZodString;
227
293
  slug: z.ZodOptional<z.ZodString>;
228
294
  name: z.ZodString;
@@ -270,6 +336,27 @@ declare const CompositionPublishedDefinition: Definition<z.ZodIntersection<z.Zod
270
336
  edit_url: string;
271
337
  api_url: string;
272
338
  edge_url: string;
339
+ }>>, z.ZodObject<{
340
+ trigger: z.ZodOptional<z.ZodObject<{
341
+ type: z.ZodEnum<["release"]>;
342
+ id: z.ZodString;
343
+ }, "strip", z.ZodTypeAny, {
344
+ id: string;
345
+ type: "release";
346
+ }, {
347
+ id: string;
348
+ type: "release";
349
+ }>>;
350
+ }, "strip", z.ZodTypeAny, {
351
+ trigger?: {
352
+ id: string;
353
+ type: "release";
354
+ } | undefined;
355
+ }, {
356
+ trigger?: {
357
+ id: string;
358
+ type: "release";
359
+ } | undefined;
273
360
  }>>>;
274
361
  type CompositionPublishedPayload = z.infer<(typeof CompositionPublishedDefinition)['schema']>;
275
362
  declare const CompositionPublishedEventName: string;
@@ -484,6 +571,28 @@ declare const CompositionReleasePublishedDefinition: Definition<z.ZodIntersectio
484
571
  type CompositionReleasePublishedPayload = z.infer<(typeof CompositionReleasePublishedDefinition)['schema']>;
485
572
  declare const CompositionReleasePublishedEventName: string;
486
573
 
574
+ declare const EntryTriggerPayloadSchema: z.ZodObject<{
575
+ trigger: z.ZodOptional<z.ZodObject<{
576
+ type: z.ZodEnum<["release"]>;
577
+ id: z.ZodString;
578
+ }, "strip", z.ZodTypeAny, {
579
+ id: string;
580
+ type: "release";
581
+ }, {
582
+ id: string;
583
+ type: "release";
584
+ }>>;
585
+ }, "strip", z.ZodTypeAny, {
586
+ trigger?: {
587
+ id: string;
588
+ type: "release";
589
+ } | undefined;
590
+ }, {
591
+ trigger?: {
592
+ id: string;
593
+ type: "release";
594
+ } | undefined;
595
+ }>;
487
596
  declare const EntryDeletePayloadSchema: z.ZodIntersection<z.ZodObject<{
488
597
  id: z.ZodString;
489
598
  slug: z.ZodOptional<z.ZodString>;
@@ -598,7 +707,7 @@ declare const ReleaseEntryPayloadSchema: z.ZodObject<{
598
707
  type EntryPayload = z.infer<typeof EntryPayloadSchema>;
599
708
  type ReleaseEntryPayload = z.infer<typeof ReleaseEntryPayloadSchema>;
600
709
 
601
- declare const EntryChangedDefinition: Definition<z.ZodIntersection<z.ZodObject<{
710
+ declare const EntryChangedDefinition: Definition<z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
602
711
  id: z.ZodString;
603
712
  slug: z.ZodOptional<z.ZodString>;
604
713
  name: z.ZodString;
@@ -646,11 +755,32 @@ declare const EntryChangedDefinition: Definition<z.ZodIntersection<z.ZodObject<{
646
755
  edit_url: string;
647
756
  api_url: string;
648
757
  edge_url: string;
758
+ }>>, z.ZodObject<{
759
+ trigger: z.ZodOptional<z.ZodObject<{
760
+ type: z.ZodEnum<["release"]>;
761
+ id: z.ZodString;
762
+ }, "strip", z.ZodTypeAny, {
763
+ id: string;
764
+ type: "release";
765
+ }, {
766
+ id: string;
767
+ type: "release";
768
+ }>>;
769
+ }, "strip", z.ZodTypeAny, {
770
+ trigger?: {
771
+ id: string;
772
+ type: "release";
773
+ } | undefined;
774
+ }, {
775
+ trigger?: {
776
+ id: string;
777
+ type: "release";
778
+ } | undefined;
649
779
  }>>>;
650
780
  type EntryChangedPayload = z.infer<(typeof EntryChangedDefinition)['schema']>;
651
781
  declare const EntryChangedEventName: string;
652
782
 
653
- declare const EntryDeletedDefinition: Definition<z.ZodIntersection<z.ZodObject<{
783
+ declare const EntryDeletedDefinition: Definition<z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
654
784
  id: z.ZodString;
655
785
  slug: z.ZodOptional<z.ZodString>;
656
786
  name: z.ZodString;
@@ -689,11 +819,32 @@ declare const EntryDeletedDefinition: Definition<z.ZodIntersection<z.ZodObject<{
689
819
  state?: number | undefined;
690
820
  }, {
691
821
  state?: number | undefined;
822
+ }>>, z.ZodObject<{
823
+ trigger: z.ZodOptional<z.ZodObject<{
824
+ type: z.ZodEnum<["release"]>;
825
+ id: z.ZodString;
826
+ }, "strip", z.ZodTypeAny, {
827
+ id: string;
828
+ type: "release";
829
+ }, {
830
+ id: string;
831
+ type: "release";
832
+ }>>;
833
+ }, "strip", z.ZodTypeAny, {
834
+ trigger?: {
835
+ id: string;
836
+ type: "release";
837
+ } | undefined;
838
+ }, {
839
+ trigger?: {
840
+ id: string;
841
+ type: "release";
842
+ } | undefined;
692
843
  }>>>;
693
844
  type EntryDeletedPayload = z.infer<(typeof EntryDeletedDefinition)['schema']>;
694
845
  declare const EntryDeletedEventName: string;
695
846
 
696
- declare const EntryPublishedDefinition: Definition<z.ZodIntersection<z.ZodObject<{
847
+ declare const EntryPublishedDefinition: Definition<z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
697
848
  id: z.ZodString;
698
849
  slug: z.ZodOptional<z.ZodString>;
699
850
  name: z.ZodString;
@@ -741,6 +892,27 @@ declare const EntryPublishedDefinition: Definition<z.ZodIntersection<z.ZodObject
741
892
  edit_url: string;
742
893
  api_url: string;
743
894
  edge_url: string;
895
+ }>>, z.ZodObject<{
896
+ trigger: z.ZodOptional<z.ZodObject<{
897
+ type: z.ZodEnum<["release"]>;
898
+ id: z.ZodString;
899
+ }, "strip", z.ZodTypeAny, {
900
+ id: string;
901
+ type: "release";
902
+ }, {
903
+ id: string;
904
+ type: "release";
905
+ }>>;
906
+ }, "strip", z.ZodTypeAny, {
907
+ trigger?: {
908
+ id: string;
909
+ type: "release";
910
+ } | undefined;
911
+ }, {
912
+ trigger?: {
913
+ id: string;
914
+ type: "release";
915
+ } | undefined;
744
916
  }>>>;
745
917
  type EntryPublishedPayload = z.infer<(typeof EntryPublishedDefinition)['schema']>;
746
918
  declare const EntryPublishedEventName: string;
@@ -1283,7 +1455,7 @@ declare const ReleaseDeletedDefinition: Definition<z.ZodObject<Omit<{
1283
1455
  type ReleaseDeletedPayload = z.infer<(typeof ReleaseDeletedDefinition)['schema']>;
1284
1456
  declare const ReleaseDeletedEventName: string;
1285
1457
 
1286
- declare const ReleaseLaunchedDefinition: Definition<z.ZodObject<{
1458
+ declare const ReleaseLaunchStartedDefinition: Definition<z.ZodObject<{
1287
1459
  id: z.ZodString;
1288
1460
  state: z.ZodEnum<["open", "locked", "queued", "launching", "launched", "deleting"]>;
1289
1461
  name: z.ZodString;
@@ -1326,10 +1498,10 @@ declare const ReleaseLaunchedDefinition: Definition<z.ZodObject<{
1326
1498
  autoLaunchSchedule?: number | undefined;
1327
1499
  autoLaunchScheduleTimeZone?: string | undefined;
1328
1500
  }>>;
1329
- type ReleaseLaunchedPayload = z.infer<(typeof ReleaseLaunchedDefinition)['schema']>;
1330
- declare const ReleaseLaunchedEventName: string;
1501
+ type ReleaseLaunchStartedPayload = z.infer<(typeof ReleaseLaunchStartedDefinition)['schema']>;
1502
+ declare const ReleaseLaunchStartedEventName: string;
1331
1503
 
1332
- declare const ReleaseLaunchStartedDefinition: Definition<z.ZodObject<{
1504
+ declare const ReleaseLaunchedDefinition: Definition<z.ZodObject<{
1333
1505
  id: z.ZodString;
1334
1506
  state: z.ZodEnum<["open", "locked", "queued", "launching", "launched", "deleting"]>;
1335
1507
  name: z.ZodString;
@@ -1372,7 +1544,51 @@ declare const ReleaseLaunchStartedDefinition: Definition<z.ZodObject<{
1372
1544
  autoLaunchSchedule?: number | undefined;
1373
1545
  autoLaunchScheduleTimeZone?: string | undefined;
1374
1546
  }>>;
1375
- type ReleaseLaunchStartedPayload = z.infer<(typeof ReleaseLaunchStartedDefinition)['schema']>;
1376
- declare const ReleaseLaunchStartedEventName: string;
1547
+ type ReleaseLaunchedPayload = z.infer<(typeof ReleaseLaunchedDefinition)['schema']>;
1548
+ declare const ReleaseLaunchedEventName: string;
1549
+
1550
+ declare const ArchivedReleaseLaunchStartedDefinition: Definition<zod.ZodObject<{
1551
+ id: zod.ZodString;
1552
+ state: zod.ZodEnum<["open", "locked", "queued", "launching", "launched", "deleting"]>;
1553
+ name: zod.ZodString;
1554
+ project: zod.ZodObject<{
1555
+ id: zod.ZodString;
1556
+ url: zod.ZodString;
1557
+ }, "strip", zod.ZodTypeAny, {
1558
+ id: string;
1559
+ url: string;
1560
+ }, {
1561
+ id: string;
1562
+ url: string;
1563
+ }>;
1564
+ autoLaunchSchedule: zod.ZodOptional<zod.ZodNumber>;
1565
+ autoLaunchScheduleTimeZone: zod.ZodOptional<zod.ZodString>;
1566
+ edit_url: zod.ZodString;
1567
+ api_url: zod.ZodString;
1568
+ }, "strip", zod.ZodTypeAny, {
1569
+ id: string;
1570
+ name: string;
1571
+ project: {
1572
+ id: string;
1573
+ url: string;
1574
+ };
1575
+ state: "open" | "locked" | "queued" | "launching" | "launched" | "deleting";
1576
+ edit_url: string;
1577
+ api_url: string;
1578
+ autoLaunchSchedule?: number | undefined;
1579
+ autoLaunchScheduleTimeZone?: string | undefined;
1580
+ }, {
1581
+ id: string;
1582
+ name: string;
1583
+ project: {
1584
+ id: string;
1585
+ url: string;
1586
+ };
1587
+ state: "open" | "locked" | "queued" | "launching" | "launched" | "deleting";
1588
+ edit_url: string;
1589
+ api_url: string;
1590
+ autoLaunchSchedule?: number | undefined;
1591
+ autoLaunchScheduleTimeZone?: string | undefined;
1592
+ }>>;
1377
1593
 
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 };
1594
+ export { ArchivedReleaseLaunchStartedDefinition, 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, CompositionTriggerPayloadSchema, 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, EntryTriggerPayloadSchema, 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 };