@uniformdev/webhooks 20.50.1 → 20.50.2-alpha.109

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.esm.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // src/definition.ts
2
- import * as z from "zod/v3";
2
+ import * as z from "zod";
3
3
  var addEventTypeToSchema = (schema, eventType) => z.object({
4
4
  ...schema.shape,
5
5
  eventType: z.literal(eventType)
@@ -26,7 +26,7 @@ var webhookInitiatorSchema = z.strictObject({
26
26
  });
27
27
 
28
28
  // src/asset/common.ts
29
- import * as z2 from "zod/v3";
29
+ import * as z2 from "zod";
30
30
  var AssetCorePayloadSchema = z2.object({
31
31
  id: z2.string(),
32
32
  name: z2.string(),
@@ -98,7 +98,7 @@ var AssetPublishedDefinition = definition(
98
98
  var AssetPublishedEventName = AssetPublishedDefinition["event"];
99
99
 
100
100
  // src/composition/common.ts
101
- import * as z3 from "zod/v3";
101
+ import * as z3 from "zod";
102
102
  var CompositionCorePayloadSchema = z3.object({
103
103
  id: z3.string(),
104
104
  editionId: z3.string().optional(),
@@ -380,7 +380,7 @@ var CompositionReleaseRestoredDefinition = definition(
380
380
  var CompositionReleaseRestoredEventName = CompositionReleaseRestoredDefinition["event"];
381
381
 
382
382
  // src/entry/common.ts
383
- import * as z4 from "zod/v3";
383
+ import * as z4 from "zod";
384
384
  var EntryCorePayloadSchema = z4.object({
385
385
  id: z4.string(),
386
386
  editionId: z4.string().optional(),
@@ -662,7 +662,7 @@ var EntryReleaseRestoredDefinition = definition(
662
662
  var EntryReleaseRestoredEventName = EntryReleaseRestoredDefinition["event"];
663
663
 
664
664
  // src/manifest/manifest.published.ts
665
- import * as z5 from "zod/v3";
665
+ import * as z5 from "zod";
666
666
  var ManifestPublishedDefinition = definition(
667
667
  {
668
668
  event: "manifest.published",
@@ -687,7 +687,7 @@ var ManifestPublishedDefinition = definition(
687
687
  var ManifestPublishedEventName = ManifestPublishedDefinition["event"];
688
688
 
689
689
  // src/project-map/projectMap.delete.ts
690
- import * as z6 from "zod/v3";
690
+ import * as z6 from "zod";
691
691
  var ProjectMapDeleteDefinition = definition(
692
692
  {
693
693
  event: "projectmap.delete",
@@ -708,7 +708,7 @@ var ProjectMapDeleteDefinition = definition(
708
708
  var ProjectMapDeletedEventName = ProjectMapDeleteDefinition["event"];
709
709
 
710
710
  // src/project-map/projectMap.node.delete.ts
711
- import * as z7 from "zod/v3";
711
+ import * as z7 from "zod";
712
712
  var ProjectMapNodeDeleteDefinition = definition(
713
713
  {
714
714
  event: "projectmap.node.delete",
@@ -722,6 +722,7 @@ var ProjectMapNodeDeleteDefinition = definition(
722
722
  path: z7.string(),
723
723
  composition_id: z7.string().optional(),
724
724
  locales: z7.record(
725
+ z7.string(),
725
726
  z7.object({
726
727
  name: z7.string(),
727
728
  inherited: z7.boolean(),
@@ -756,7 +757,7 @@ var ProjectMapNodeDeleteDefinition = definition(
756
757
  var ProjectMapNodeDeletedEventName = ProjectMapNodeDeleteDefinition["event"];
757
758
 
758
759
  // src/project-map/projectMap.node.insert.ts
759
- import * as z8 from "zod/v3";
760
+ import * as z8 from "zod";
760
761
  var ProjectMapNodeInsertDefinition = definition(
761
762
  {
762
763
  event: "projectmap.node.insert",
@@ -770,6 +771,7 @@ var ProjectMapNodeInsertDefinition = definition(
770
771
  path: z8.string(),
771
772
  composition_id: z8.string().optional(),
772
773
  locales: z8.record(
774
+ z8.string(),
773
775
  z8.object({
774
776
  name: z8.string(),
775
777
  inherited: z8.boolean(),
@@ -804,7 +806,7 @@ var ProjectMapNodeInsertDefinition = definition(
804
806
  var ProjectMapNodeInsertedEventName = ProjectMapNodeInsertDefinition["event"];
805
807
 
806
808
  // src/project-map/projectMap.node.update.ts
807
- import * as z9 from "zod/v3";
809
+ import * as z9 from "zod";
808
810
  var ProjectMapNodeUpdateDefinition = definition(
809
811
  {
810
812
  event: "projectmap.node.update",
@@ -819,6 +821,7 @@ var ProjectMapNodeUpdateDefinition = definition(
819
821
  composition_id: z9.string().optional(),
820
822
  previous_path: z9.string(),
821
823
  locales: z9.record(
824
+ z9.string(),
822
825
  z9.object({
823
826
  name: z9.string(),
824
827
  inherited: z9.boolean(),
@@ -856,7 +859,7 @@ var ProjectMapNodeUpdateDefinition = definition(
856
859
  var ProjectMapNodeUpdatedEventName = ProjectMapNodeUpdateDefinition["event"];
857
860
 
858
861
  // src/project-map/projectMap.update.ts
859
- import * as z10 from "zod/v3";
862
+ import * as z10 from "zod";
860
863
  var ProjectMapUpdateDefinition = definition(
861
864
  {
862
865
  event: "projectmap.update",
@@ -884,7 +887,7 @@ var ProjectMapUpdateDefinition = definition(
884
887
  var ProjectMapUpdatedEventName = ProjectMapUpdateDefinition["event"];
885
888
 
886
889
  // src/redirect/redirect.delete.ts
887
- import * as z11 from "zod/v3";
890
+ import * as z11 from "zod";
888
891
  var RedirectDeleteDefinition = definition(
889
892
  {
890
893
  event: "redirect.delete",
@@ -916,7 +919,7 @@ var RedirectDeleteDefinition = definition(
916
919
  var RedirectDeletedEventName = RedirectDeleteDefinition["event"];
917
920
 
918
921
  // src/redirect/redirect.insert.ts
919
- import * as z12 from "zod/v3";
922
+ import * as z12 from "zod";
920
923
  var RedirectInsertDefinition = definition(
921
924
  {
922
925
  event: "redirect.insert",
@@ -948,7 +951,7 @@ var RedirectInsertDefinition = definition(
948
951
  var RedirectInsertedEventName = RedirectInsertDefinition["event"];
949
952
 
950
953
  // src/redirect/redirect.update.ts
951
- import * as z13 from "zod/v3";
954
+ import * as z13 from "zod";
952
955
  var RedirectUpdateDefinition = definition(
953
956
  {
954
957
  event: "redirect.update",
@@ -980,7 +983,7 @@ var RedirectUpdateDefinition = definition(
980
983
  var RedirectUpdatedEventName = RedirectUpdateDefinition["event"];
981
984
 
982
985
  // src/release/common.ts
983
- import * as z14 from "zod/v3";
986
+ import * as z14 from "zod";
984
987
  var ReleasePayloadSchema = z14.object({
985
988
  id: z14.string(),
986
989
  state: z14.enum(["open", "locked", "queued", "launching", "launched", "deleting"]),
@@ -1114,7 +1117,7 @@ var ArchivedReleaseLaunchStartedDefinition = definition(
1114
1117
  );
1115
1118
 
1116
1119
  // src/workflow/common.ts
1117
- import * as z15 from "zod/v3";
1120
+ import * as z15 from "zod";
1118
1121
  var WorkflowReferenceSchema = z15.strictObject({
1119
1122
  workflowId: z15.string(),
1120
1123
  workflowName: z15.string(),
@@ -1184,6 +1187,41 @@ var WorkflowTransitionDefinition = definition(
1184
1187
  }
1185
1188
  );
1186
1189
  var WorkflowTransitionEventName = WorkflowTransitionDefinition["event"];
1190
+
1191
+ // src/catalog.ts
1192
+ var webhookEventCatalog = {
1193
+ "asset.deleted": AssetDeletedDefinition,
1194
+ "asset.published": AssetPublishedDefinition,
1195
+ "composition.changed": CompositionChangedDefinition,
1196
+ "composition.deleted": CompositionDeletedDefinition,
1197
+ "composition.published": CompositionPublishedDefinition,
1198
+ "composition.release.changed": CompositionReleaseChangedDefinition,
1199
+ "composition.release.deleted": CompositionReleaseDeletedDefinition,
1200
+ "composition.release.published": CompositionReleasePublishedDefinition,
1201
+ "composition.release.restored": CompositionReleaseRestoredDefinition,
1202
+ "entry.changed": EntryChangedDefinition,
1203
+ "entry.deleted": EntryDeletedDefinition,
1204
+ "entry.published": EntryPublishedDefinition,
1205
+ "entry.release.changed": EntryReleaseChangedDefinition,
1206
+ "entry.release.deleted": EntryReleaseDeletedDefinition,
1207
+ "entry.release.published": EntryReleasePublishedDefinition,
1208
+ "entry.release.restored": EntryReleaseRestoredDefinition,
1209
+ "manifest.published": ManifestPublishedDefinition,
1210
+ "projectmap.delete": ProjectMapDeleteDefinition,
1211
+ "projectmap.node.delete": ProjectMapNodeDeleteDefinition,
1212
+ "projectmap.node.insert": ProjectMapNodeInsertDefinition,
1213
+ "projectmap.node.update": ProjectMapNodeUpdateDefinition,
1214
+ "projectmap.update": ProjectMapUpdateDefinition,
1215
+ "redirect.delete": RedirectDeleteDefinition,
1216
+ "redirect.insert": RedirectInsertDefinition,
1217
+ "redirect.update": RedirectUpdateDefinition,
1218
+ "release.changed": ReleaseChangedDefinition,
1219
+ "release.deleted": ReleaseDeletedDefinition,
1220
+ "release.launch_started": ReleaseLaunchStartedDefinition,
1221
+ "release.launched": ReleaseLaunchedDefinition,
1222
+ "workflow.transition": WorkflowTransitionDefinition
1223
+ };
1224
+ var webhookEventNames = Object.keys(webhookEventCatalog);
1187
1225
  export {
1188
1226
  ArchivedReleaseLaunchStartedDefinition,
1189
1227
  AssetDeletePayloadSchema,
@@ -1264,5 +1302,7 @@ export {
1264
1302
  WorkflowTransitionPayloadSchema,
1265
1303
  definition,
1266
1304
  isDefinition,
1305
+ webhookEventCatalog,
1306
+ webhookEventNames,
1267
1307
  webhookInitiatorSchema
1268
1308
  };
package/dist/index.js CHANGED
@@ -109,12 +109,14 @@ __export(src_exports, {
109
109
  WorkflowTransitionPayloadSchema: () => WorkflowTransitionPayloadSchema,
110
110
  definition: () => definition,
111
111
  isDefinition: () => isDefinition,
112
+ webhookEventCatalog: () => webhookEventCatalog,
113
+ webhookEventNames: () => webhookEventNames,
112
114
  webhookInitiatorSchema: () => webhookInitiatorSchema
113
115
  });
114
116
  module.exports = __toCommonJS(src_exports);
115
117
 
116
118
  // src/definition.ts
117
- var z = __toESM(require("zod/v3"));
119
+ var z = __toESM(require("zod"));
118
120
  var addEventTypeToSchema = (schema, eventType) => z.object({
119
121
  ...schema.shape,
120
122
  eventType: z.literal(eventType)
@@ -141,7 +143,7 @@ var webhookInitiatorSchema = z.strictObject({
141
143
  });
142
144
 
143
145
  // src/asset/common.ts
144
- var z2 = __toESM(require("zod/v3"));
146
+ var z2 = __toESM(require("zod"));
145
147
  var AssetCorePayloadSchema = z2.object({
146
148
  id: z2.string(),
147
149
  name: z2.string(),
@@ -213,7 +215,7 @@ var AssetPublishedDefinition = definition(
213
215
  var AssetPublishedEventName = AssetPublishedDefinition["event"];
214
216
 
215
217
  // src/composition/common.ts
216
- var z3 = __toESM(require("zod/v3"));
218
+ var z3 = __toESM(require("zod"));
217
219
  var CompositionCorePayloadSchema = z3.object({
218
220
  id: z3.string(),
219
221
  editionId: z3.string().optional(),
@@ -495,7 +497,7 @@ var CompositionReleaseRestoredDefinition = definition(
495
497
  var CompositionReleaseRestoredEventName = CompositionReleaseRestoredDefinition["event"];
496
498
 
497
499
  // src/entry/common.ts
498
- var z4 = __toESM(require("zod/v3"));
500
+ var z4 = __toESM(require("zod"));
499
501
  var EntryCorePayloadSchema = z4.object({
500
502
  id: z4.string(),
501
503
  editionId: z4.string().optional(),
@@ -777,7 +779,7 @@ var EntryReleaseRestoredDefinition = definition(
777
779
  var EntryReleaseRestoredEventName = EntryReleaseRestoredDefinition["event"];
778
780
 
779
781
  // src/manifest/manifest.published.ts
780
- var z5 = __toESM(require("zod/v3"));
782
+ var z5 = __toESM(require("zod"));
781
783
  var ManifestPublishedDefinition = definition(
782
784
  {
783
785
  event: "manifest.published",
@@ -802,7 +804,7 @@ var ManifestPublishedDefinition = definition(
802
804
  var ManifestPublishedEventName = ManifestPublishedDefinition["event"];
803
805
 
804
806
  // src/project-map/projectMap.delete.ts
805
- var z6 = __toESM(require("zod/v3"));
807
+ var z6 = __toESM(require("zod"));
806
808
  var ProjectMapDeleteDefinition = definition(
807
809
  {
808
810
  event: "projectmap.delete",
@@ -823,7 +825,7 @@ var ProjectMapDeleteDefinition = definition(
823
825
  var ProjectMapDeletedEventName = ProjectMapDeleteDefinition["event"];
824
826
 
825
827
  // src/project-map/projectMap.node.delete.ts
826
- var z7 = __toESM(require("zod/v3"));
828
+ var z7 = __toESM(require("zod"));
827
829
  var ProjectMapNodeDeleteDefinition = definition(
828
830
  {
829
831
  event: "projectmap.node.delete",
@@ -837,6 +839,7 @@ var ProjectMapNodeDeleteDefinition = definition(
837
839
  path: z7.string(),
838
840
  composition_id: z7.string().optional(),
839
841
  locales: z7.record(
842
+ z7.string(),
840
843
  z7.object({
841
844
  name: z7.string(),
842
845
  inherited: z7.boolean(),
@@ -871,7 +874,7 @@ var ProjectMapNodeDeleteDefinition = definition(
871
874
  var ProjectMapNodeDeletedEventName = ProjectMapNodeDeleteDefinition["event"];
872
875
 
873
876
  // src/project-map/projectMap.node.insert.ts
874
- var z8 = __toESM(require("zod/v3"));
877
+ var z8 = __toESM(require("zod"));
875
878
  var ProjectMapNodeInsertDefinition = definition(
876
879
  {
877
880
  event: "projectmap.node.insert",
@@ -885,6 +888,7 @@ var ProjectMapNodeInsertDefinition = definition(
885
888
  path: z8.string(),
886
889
  composition_id: z8.string().optional(),
887
890
  locales: z8.record(
891
+ z8.string(),
888
892
  z8.object({
889
893
  name: z8.string(),
890
894
  inherited: z8.boolean(),
@@ -919,7 +923,7 @@ var ProjectMapNodeInsertDefinition = definition(
919
923
  var ProjectMapNodeInsertedEventName = ProjectMapNodeInsertDefinition["event"];
920
924
 
921
925
  // src/project-map/projectMap.node.update.ts
922
- var z9 = __toESM(require("zod/v3"));
926
+ var z9 = __toESM(require("zod"));
923
927
  var ProjectMapNodeUpdateDefinition = definition(
924
928
  {
925
929
  event: "projectmap.node.update",
@@ -934,6 +938,7 @@ var ProjectMapNodeUpdateDefinition = definition(
934
938
  composition_id: z9.string().optional(),
935
939
  previous_path: z9.string(),
936
940
  locales: z9.record(
941
+ z9.string(),
937
942
  z9.object({
938
943
  name: z9.string(),
939
944
  inherited: z9.boolean(),
@@ -971,7 +976,7 @@ var ProjectMapNodeUpdateDefinition = definition(
971
976
  var ProjectMapNodeUpdatedEventName = ProjectMapNodeUpdateDefinition["event"];
972
977
 
973
978
  // src/project-map/projectMap.update.ts
974
- var z10 = __toESM(require("zod/v3"));
979
+ var z10 = __toESM(require("zod"));
975
980
  var ProjectMapUpdateDefinition = definition(
976
981
  {
977
982
  event: "projectmap.update",
@@ -999,7 +1004,7 @@ var ProjectMapUpdateDefinition = definition(
999
1004
  var ProjectMapUpdatedEventName = ProjectMapUpdateDefinition["event"];
1000
1005
 
1001
1006
  // src/redirect/redirect.delete.ts
1002
- var z11 = __toESM(require("zod/v3"));
1007
+ var z11 = __toESM(require("zod"));
1003
1008
  var RedirectDeleteDefinition = definition(
1004
1009
  {
1005
1010
  event: "redirect.delete",
@@ -1031,7 +1036,7 @@ var RedirectDeleteDefinition = definition(
1031
1036
  var RedirectDeletedEventName = RedirectDeleteDefinition["event"];
1032
1037
 
1033
1038
  // src/redirect/redirect.insert.ts
1034
- var z12 = __toESM(require("zod/v3"));
1039
+ var z12 = __toESM(require("zod"));
1035
1040
  var RedirectInsertDefinition = definition(
1036
1041
  {
1037
1042
  event: "redirect.insert",
@@ -1063,7 +1068,7 @@ var RedirectInsertDefinition = definition(
1063
1068
  var RedirectInsertedEventName = RedirectInsertDefinition["event"];
1064
1069
 
1065
1070
  // src/redirect/redirect.update.ts
1066
- var z13 = __toESM(require("zod/v3"));
1071
+ var z13 = __toESM(require("zod"));
1067
1072
  var RedirectUpdateDefinition = definition(
1068
1073
  {
1069
1074
  event: "redirect.update",
@@ -1095,7 +1100,7 @@ var RedirectUpdateDefinition = definition(
1095
1100
  var RedirectUpdatedEventName = RedirectUpdateDefinition["event"];
1096
1101
 
1097
1102
  // src/release/common.ts
1098
- var z14 = __toESM(require("zod/v3"));
1103
+ var z14 = __toESM(require("zod"));
1099
1104
  var ReleasePayloadSchema = z14.object({
1100
1105
  id: z14.string(),
1101
1106
  state: z14.enum(["open", "locked", "queued", "launching", "launched", "deleting"]),
@@ -1229,7 +1234,7 @@ var ArchivedReleaseLaunchStartedDefinition = definition(
1229
1234
  );
1230
1235
 
1231
1236
  // src/workflow/common.ts
1232
- var z15 = __toESM(require("zod/v3"));
1237
+ var z15 = __toESM(require("zod"));
1233
1238
  var WorkflowReferenceSchema = z15.strictObject({
1234
1239
  workflowId: z15.string(),
1235
1240
  workflowName: z15.string(),
@@ -1299,6 +1304,41 @@ var WorkflowTransitionDefinition = definition(
1299
1304
  }
1300
1305
  );
1301
1306
  var WorkflowTransitionEventName = WorkflowTransitionDefinition["event"];
1307
+
1308
+ // src/catalog.ts
1309
+ var webhookEventCatalog = {
1310
+ "asset.deleted": AssetDeletedDefinition,
1311
+ "asset.published": AssetPublishedDefinition,
1312
+ "composition.changed": CompositionChangedDefinition,
1313
+ "composition.deleted": CompositionDeletedDefinition,
1314
+ "composition.published": CompositionPublishedDefinition,
1315
+ "composition.release.changed": CompositionReleaseChangedDefinition,
1316
+ "composition.release.deleted": CompositionReleaseDeletedDefinition,
1317
+ "composition.release.published": CompositionReleasePublishedDefinition,
1318
+ "composition.release.restored": CompositionReleaseRestoredDefinition,
1319
+ "entry.changed": EntryChangedDefinition,
1320
+ "entry.deleted": EntryDeletedDefinition,
1321
+ "entry.published": EntryPublishedDefinition,
1322
+ "entry.release.changed": EntryReleaseChangedDefinition,
1323
+ "entry.release.deleted": EntryReleaseDeletedDefinition,
1324
+ "entry.release.published": EntryReleasePublishedDefinition,
1325
+ "entry.release.restored": EntryReleaseRestoredDefinition,
1326
+ "manifest.published": ManifestPublishedDefinition,
1327
+ "projectmap.delete": ProjectMapDeleteDefinition,
1328
+ "projectmap.node.delete": ProjectMapNodeDeleteDefinition,
1329
+ "projectmap.node.insert": ProjectMapNodeInsertDefinition,
1330
+ "projectmap.node.update": ProjectMapNodeUpdateDefinition,
1331
+ "projectmap.update": ProjectMapUpdateDefinition,
1332
+ "redirect.delete": RedirectDeleteDefinition,
1333
+ "redirect.insert": RedirectInsertDefinition,
1334
+ "redirect.update": RedirectUpdateDefinition,
1335
+ "release.changed": ReleaseChangedDefinition,
1336
+ "release.deleted": ReleaseDeletedDefinition,
1337
+ "release.launch_started": ReleaseLaunchStartedDefinition,
1338
+ "release.launched": ReleaseLaunchedDefinition,
1339
+ "workflow.transition": WorkflowTransitionDefinition
1340
+ };
1341
+ var webhookEventNames = Object.keys(webhookEventCatalog);
1302
1342
  // Annotate the CommonJS export names for ESM import in node:
1303
1343
  0 && (module.exports = {
1304
1344
  ArchivedReleaseLaunchStartedDefinition,
@@ -1380,5 +1420,7 @@ var WorkflowTransitionEventName = WorkflowTransitionDefinition["event"];
1380
1420
  WorkflowTransitionPayloadSchema,
1381
1421
  definition,
1382
1422
  isDefinition,
1423
+ webhookEventCatalog,
1424
+ webhookEventNames,
1383
1425
  webhookInitiatorSchema
1384
1426
  });
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  // src/definition.ts
2
- import * as z from "zod/v3";
2
+ import * as z from "zod";
3
3
  var addEventTypeToSchema = (schema, eventType) => z.object({
4
4
  ...schema.shape,
5
5
  eventType: z.literal(eventType)
@@ -26,7 +26,7 @@ var webhookInitiatorSchema = z.strictObject({
26
26
  });
27
27
 
28
28
  // src/asset/common.ts
29
- import * as z2 from "zod/v3";
29
+ import * as z2 from "zod";
30
30
  var AssetCorePayloadSchema = z2.object({
31
31
  id: z2.string(),
32
32
  name: z2.string(),
@@ -98,7 +98,7 @@ var AssetPublishedDefinition = definition(
98
98
  var AssetPublishedEventName = AssetPublishedDefinition["event"];
99
99
 
100
100
  // src/composition/common.ts
101
- import * as z3 from "zod/v3";
101
+ import * as z3 from "zod";
102
102
  var CompositionCorePayloadSchema = z3.object({
103
103
  id: z3.string(),
104
104
  editionId: z3.string().optional(),
@@ -380,7 +380,7 @@ var CompositionReleaseRestoredDefinition = definition(
380
380
  var CompositionReleaseRestoredEventName = CompositionReleaseRestoredDefinition["event"];
381
381
 
382
382
  // src/entry/common.ts
383
- import * as z4 from "zod/v3";
383
+ import * as z4 from "zod";
384
384
  var EntryCorePayloadSchema = z4.object({
385
385
  id: z4.string(),
386
386
  editionId: z4.string().optional(),
@@ -662,7 +662,7 @@ var EntryReleaseRestoredDefinition = definition(
662
662
  var EntryReleaseRestoredEventName = EntryReleaseRestoredDefinition["event"];
663
663
 
664
664
  // src/manifest/manifest.published.ts
665
- import * as z5 from "zod/v3";
665
+ import * as z5 from "zod";
666
666
  var ManifestPublishedDefinition = definition(
667
667
  {
668
668
  event: "manifest.published",
@@ -687,7 +687,7 @@ var ManifestPublishedDefinition = definition(
687
687
  var ManifestPublishedEventName = ManifestPublishedDefinition["event"];
688
688
 
689
689
  // src/project-map/projectMap.delete.ts
690
- import * as z6 from "zod/v3";
690
+ import * as z6 from "zod";
691
691
  var ProjectMapDeleteDefinition = definition(
692
692
  {
693
693
  event: "projectmap.delete",
@@ -708,7 +708,7 @@ var ProjectMapDeleteDefinition = definition(
708
708
  var ProjectMapDeletedEventName = ProjectMapDeleteDefinition["event"];
709
709
 
710
710
  // src/project-map/projectMap.node.delete.ts
711
- import * as z7 from "zod/v3";
711
+ import * as z7 from "zod";
712
712
  var ProjectMapNodeDeleteDefinition = definition(
713
713
  {
714
714
  event: "projectmap.node.delete",
@@ -722,6 +722,7 @@ var ProjectMapNodeDeleteDefinition = definition(
722
722
  path: z7.string(),
723
723
  composition_id: z7.string().optional(),
724
724
  locales: z7.record(
725
+ z7.string(),
725
726
  z7.object({
726
727
  name: z7.string(),
727
728
  inherited: z7.boolean(),
@@ -756,7 +757,7 @@ var ProjectMapNodeDeleteDefinition = definition(
756
757
  var ProjectMapNodeDeletedEventName = ProjectMapNodeDeleteDefinition["event"];
757
758
 
758
759
  // src/project-map/projectMap.node.insert.ts
759
- import * as z8 from "zod/v3";
760
+ import * as z8 from "zod";
760
761
  var ProjectMapNodeInsertDefinition = definition(
761
762
  {
762
763
  event: "projectmap.node.insert",
@@ -770,6 +771,7 @@ var ProjectMapNodeInsertDefinition = definition(
770
771
  path: z8.string(),
771
772
  composition_id: z8.string().optional(),
772
773
  locales: z8.record(
774
+ z8.string(),
773
775
  z8.object({
774
776
  name: z8.string(),
775
777
  inherited: z8.boolean(),
@@ -804,7 +806,7 @@ var ProjectMapNodeInsertDefinition = definition(
804
806
  var ProjectMapNodeInsertedEventName = ProjectMapNodeInsertDefinition["event"];
805
807
 
806
808
  // src/project-map/projectMap.node.update.ts
807
- import * as z9 from "zod/v3";
809
+ import * as z9 from "zod";
808
810
  var ProjectMapNodeUpdateDefinition = definition(
809
811
  {
810
812
  event: "projectmap.node.update",
@@ -819,6 +821,7 @@ var ProjectMapNodeUpdateDefinition = definition(
819
821
  composition_id: z9.string().optional(),
820
822
  previous_path: z9.string(),
821
823
  locales: z9.record(
824
+ z9.string(),
822
825
  z9.object({
823
826
  name: z9.string(),
824
827
  inherited: z9.boolean(),
@@ -856,7 +859,7 @@ var ProjectMapNodeUpdateDefinition = definition(
856
859
  var ProjectMapNodeUpdatedEventName = ProjectMapNodeUpdateDefinition["event"];
857
860
 
858
861
  // src/project-map/projectMap.update.ts
859
- import * as z10 from "zod/v3";
862
+ import * as z10 from "zod";
860
863
  var ProjectMapUpdateDefinition = definition(
861
864
  {
862
865
  event: "projectmap.update",
@@ -884,7 +887,7 @@ var ProjectMapUpdateDefinition = definition(
884
887
  var ProjectMapUpdatedEventName = ProjectMapUpdateDefinition["event"];
885
888
 
886
889
  // src/redirect/redirect.delete.ts
887
- import * as z11 from "zod/v3";
890
+ import * as z11 from "zod";
888
891
  var RedirectDeleteDefinition = definition(
889
892
  {
890
893
  event: "redirect.delete",
@@ -916,7 +919,7 @@ var RedirectDeleteDefinition = definition(
916
919
  var RedirectDeletedEventName = RedirectDeleteDefinition["event"];
917
920
 
918
921
  // src/redirect/redirect.insert.ts
919
- import * as z12 from "zod/v3";
922
+ import * as z12 from "zod";
920
923
  var RedirectInsertDefinition = definition(
921
924
  {
922
925
  event: "redirect.insert",
@@ -948,7 +951,7 @@ var RedirectInsertDefinition = definition(
948
951
  var RedirectInsertedEventName = RedirectInsertDefinition["event"];
949
952
 
950
953
  // src/redirect/redirect.update.ts
951
- import * as z13 from "zod/v3";
954
+ import * as z13 from "zod";
952
955
  var RedirectUpdateDefinition = definition(
953
956
  {
954
957
  event: "redirect.update",
@@ -980,7 +983,7 @@ var RedirectUpdateDefinition = definition(
980
983
  var RedirectUpdatedEventName = RedirectUpdateDefinition["event"];
981
984
 
982
985
  // src/release/common.ts
983
- import * as z14 from "zod/v3";
986
+ import * as z14 from "zod";
984
987
  var ReleasePayloadSchema = z14.object({
985
988
  id: z14.string(),
986
989
  state: z14.enum(["open", "locked", "queued", "launching", "launched", "deleting"]),
@@ -1114,7 +1117,7 @@ var ArchivedReleaseLaunchStartedDefinition = definition(
1114
1117
  );
1115
1118
 
1116
1119
  // src/workflow/common.ts
1117
- import * as z15 from "zod/v3";
1120
+ import * as z15 from "zod";
1118
1121
  var WorkflowReferenceSchema = z15.strictObject({
1119
1122
  workflowId: z15.string(),
1120
1123
  workflowName: z15.string(),
@@ -1184,6 +1187,41 @@ var WorkflowTransitionDefinition = definition(
1184
1187
  }
1185
1188
  );
1186
1189
  var WorkflowTransitionEventName = WorkflowTransitionDefinition["event"];
1190
+
1191
+ // src/catalog.ts
1192
+ var webhookEventCatalog = {
1193
+ "asset.deleted": AssetDeletedDefinition,
1194
+ "asset.published": AssetPublishedDefinition,
1195
+ "composition.changed": CompositionChangedDefinition,
1196
+ "composition.deleted": CompositionDeletedDefinition,
1197
+ "composition.published": CompositionPublishedDefinition,
1198
+ "composition.release.changed": CompositionReleaseChangedDefinition,
1199
+ "composition.release.deleted": CompositionReleaseDeletedDefinition,
1200
+ "composition.release.published": CompositionReleasePublishedDefinition,
1201
+ "composition.release.restored": CompositionReleaseRestoredDefinition,
1202
+ "entry.changed": EntryChangedDefinition,
1203
+ "entry.deleted": EntryDeletedDefinition,
1204
+ "entry.published": EntryPublishedDefinition,
1205
+ "entry.release.changed": EntryReleaseChangedDefinition,
1206
+ "entry.release.deleted": EntryReleaseDeletedDefinition,
1207
+ "entry.release.published": EntryReleasePublishedDefinition,
1208
+ "entry.release.restored": EntryReleaseRestoredDefinition,
1209
+ "manifest.published": ManifestPublishedDefinition,
1210
+ "projectmap.delete": ProjectMapDeleteDefinition,
1211
+ "projectmap.node.delete": ProjectMapNodeDeleteDefinition,
1212
+ "projectmap.node.insert": ProjectMapNodeInsertDefinition,
1213
+ "projectmap.node.update": ProjectMapNodeUpdateDefinition,
1214
+ "projectmap.update": ProjectMapUpdateDefinition,
1215
+ "redirect.delete": RedirectDeleteDefinition,
1216
+ "redirect.insert": RedirectInsertDefinition,
1217
+ "redirect.update": RedirectUpdateDefinition,
1218
+ "release.changed": ReleaseChangedDefinition,
1219
+ "release.deleted": ReleaseDeletedDefinition,
1220
+ "release.launch_started": ReleaseLaunchStartedDefinition,
1221
+ "release.launched": ReleaseLaunchedDefinition,
1222
+ "workflow.transition": WorkflowTransitionDefinition
1223
+ };
1224
+ var webhookEventNames = Object.keys(webhookEventCatalog);
1187
1225
  export {
1188
1226
  ArchivedReleaseLaunchStartedDefinition,
1189
1227
  AssetDeletePayloadSchema,
@@ -1264,5 +1302,7 @@ export {
1264
1302
  WorkflowTransitionPayloadSchema,
1265
1303
  definition,
1266
1304
  isDefinition,
1305
+ webhookEventCatalog,
1306
+ webhookEventNames,
1267
1307
  webhookInitiatorSchema
1268
1308
  };
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "@uniformdev/webhooks",
3
- "version": "20.50.1",
3
+ "version": "20.50.2-alpha.109+846837c66a",
4
4
  "description": "Uniform Webhooks",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.esm.js",
8
8
  "exports": {
9
+ "source": "./src/index.ts",
9
10
  "import": {
10
11
  "types": "./dist/index.d.mts",
11
12
  "node": "./dist/index.mjs",
@@ -19,26 +20,24 @@
19
20
  "build": "tsup",
20
21
  "dev": "tsup --watch",
21
22
  "clean": "rimraf dist",
22
- "lint": "eslint \"src/**/*.{js,ts,tsx}\"",
23
23
  "format": "prettier --write \"src/**/*.{js,ts,tsx}\"",
24
24
  "migrate:svix": "tsx ./scripts/sync-svix-schemas.ts",
25
25
  "deploy": "run-s migrate:svix",
26
- "document:prebuild": "api-extractor run --local"
26
+ "apidocs-extract": "api-extractor run --local"
27
27
  },
28
28
  "files": [
29
29
  "/dist"
30
30
  ],
31
31
  "dependencies": {
32
- "zod": "3.25.76"
32
+ "zod": "4.3.6"
33
33
  },
34
34
  "devDependencies": {
35
35
  "dotenv": "^16.4.7",
36
36
  "npm-run-all2": "8.0.4",
37
- "svix": "^1.0.0",
38
- "zod-to-json-schema": "3.24.6"
37
+ "svix": "^1.0.0"
39
38
  },
40
39
  "publishConfig": {
41
40
  "access": "public"
42
41
  },
43
- "gitHead": "696a2df1399a5b68564f931286806b2597f6fa64"
42
+ "gitHead": "846837c66ad0f518683c100615b59b27f91498ba"
44
43
  }