@uniformdev/webhooks 20.72.3-alpha.3 → 20.72.3-alpha.45
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 +901 -28
- package/dist/index.d.ts +901 -28
- package/dist/index.esm.js +249 -105
- package/dist/index.js +256 -105
- package/dist/index.mjs +249 -105
- package/package.json +3 -2
package/dist/index.js
CHANGED
|
@@ -75,6 +75,11 @@ __export(index_exports, {
|
|
|
75
75
|
EntryTriggerPayloadSchema: () => EntryTriggerPayloadSchema,
|
|
76
76
|
ManifestPublishedDefinition: () => ManifestPublishedDefinition,
|
|
77
77
|
ManifestPublishedEventName: () => ManifestPublishedEventName,
|
|
78
|
+
NotificationCreatedDefinition: () => NotificationCreatedDefinition,
|
|
79
|
+
NotificationCreatedEventName: () => NotificationCreatedEventName,
|
|
80
|
+
NotificationEntitySchema: () => NotificationEntitySchema,
|
|
81
|
+
NotificationPayloadSchema: () => NotificationPayloadSchema,
|
|
82
|
+
NotificationSummarySchema: () => NotificationSummarySchema,
|
|
78
83
|
ProjectMapDeleteDefinition: () => ProjectMapDeleteDefinition,
|
|
79
84
|
ProjectMapDeletedEventName: () => ProjectMapDeletedEventName,
|
|
80
85
|
ProjectMapNodeDeleteDefinition: () => ProjectMapNodeDeleteDefinition,
|
|
@@ -109,6 +114,8 @@ __export(index_exports, {
|
|
|
109
114
|
WorkflowTransitionPayloadSchema: () => WorkflowTransitionPayloadSchema,
|
|
110
115
|
definition: () => definition,
|
|
111
116
|
isDefinition: () => isDefinition,
|
|
117
|
+
webhookEventCatalog: () => webhookEventCatalog,
|
|
118
|
+
webhookEventNames: () => webhookEventNames,
|
|
112
119
|
webhookInitiatorSchema: () => webhookInitiatorSchema
|
|
113
120
|
});
|
|
114
121
|
module.exports = __toCommonJS(index_exports);
|
|
@@ -224,6 +231,10 @@ var CompositionCorePayloadSchema = z3.object({
|
|
|
224
231
|
id: z3.string(),
|
|
225
232
|
url: z3.string()
|
|
226
233
|
}),
|
|
234
|
+
/**
|
|
235
|
+
* The composition's modified time (ISO 8601) after this change. Only present for change/publish events.
|
|
236
|
+
*/
|
|
237
|
+
timestamp: z3.string().optional(),
|
|
227
238
|
initiator: webhookInitiatorSchema
|
|
228
239
|
});
|
|
229
240
|
var CompositionTriggerPayloadSchema = z3.object({
|
|
@@ -506,6 +517,10 @@ var EntryCorePayloadSchema = z4.object({
|
|
|
506
517
|
id: z4.string(),
|
|
507
518
|
url: z4.string()
|
|
508
519
|
}),
|
|
520
|
+
/**
|
|
521
|
+
* The entry's server-of-record modified time (ISO 8601) after this change. Only present for change/publish events.
|
|
522
|
+
*/
|
|
523
|
+
timestamp: z4.string().optional(),
|
|
509
524
|
initiator: webhookInitiatorSchema
|
|
510
525
|
});
|
|
511
526
|
var EntryTriggerPayloadSchema = z4.object({
|
|
@@ -801,17 +816,110 @@ var ManifestPublishedDefinition = definition(
|
|
|
801
816
|
);
|
|
802
817
|
var ManifestPublishedEventName = ManifestPublishedDefinition["event"];
|
|
803
818
|
|
|
804
|
-
// src/
|
|
819
|
+
// src/notification/common.ts
|
|
805
820
|
var z6 = __toESM(require("zod"));
|
|
821
|
+
var editionEntitySchema = z6.strictObject({
|
|
822
|
+
type: z6.enum(["entry", "composition"]),
|
|
823
|
+
entityId: z6.string(),
|
|
824
|
+
releaseId: z6.string().optional(),
|
|
825
|
+
editionId: z6.string().optional()
|
|
826
|
+
});
|
|
827
|
+
var releaseEntitySchema = z6.strictObject({
|
|
828
|
+
type: z6.enum(["entryPattern", "componentPattern", "compositionPattern"]),
|
|
829
|
+
entityId: z6.string(),
|
|
830
|
+
releaseId: z6.string().optional()
|
|
831
|
+
});
|
|
832
|
+
var platformEntitySchema = z6.strictObject({
|
|
833
|
+
type: z6.enum([
|
|
834
|
+
"component",
|
|
835
|
+
"contentType",
|
|
836
|
+
"blockType",
|
|
837
|
+
"asset",
|
|
838
|
+
"audience",
|
|
839
|
+
"intent",
|
|
840
|
+
"enrichment",
|
|
841
|
+
"signal",
|
|
842
|
+
"quirk",
|
|
843
|
+
"test",
|
|
844
|
+
"projectMapNode"
|
|
845
|
+
]),
|
|
846
|
+
entityId: z6.string()
|
|
847
|
+
});
|
|
848
|
+
var externalEntitySchema = z6.strictObject({
|
|
849
|
+
type: z6.literal("external"),
|
|
850
|
+
url: z6.string()
|
|
851
|
+
});
|
|
852
|
+
var NotificationEntitySchema = z6.discriminatedUnion("type", [
|
|
853
|
+
editionEntitySchema,
|
|
854
|
+
releaseEntitySchema,
|
|
855
|
+
platformEntitySchema,
|
|
856
|
+
externalEntitySchema
|
|
857
|
+
]);
|
|
858
|
+
var NotificationSummarySchema = z6.strictObject({
|
|
859
|
+
format: z6.literal("markdown"),
|
|
860
|
+
value: z6.string()
|
|
861
|
+
});
|
|
862
|
+
var NotificationPayloadSchema = z6.strictObject({
|
|
863
|
+
id: z6.string(),
|
|
864
|
+
type: z6.literal("text"),
|
|
865
|
+
summary: NotificationSummarySchema,
|
|
866
|
+
entity: NotificationEntitySchema.optional(),
|
|
867
|
+
recipients: z6.array(z6.string()).min(1).max(100),
|
|
868
|
+
timestamp: z6.string(),
|
|
869
|
+
project: z6.strictObject({
|
|
870
|
+
id: z6.string(),
|
|
871
|
+
url: z6.string()
|
|
872
|
+
}),
|
|
873
|
+
initiator: webhookInitiatorSchema
|
|
874
|
+
});
|
|
875
|
+
|
|
876
|
+
// src/notification/notification.created.ts
|
|
877
|
+
var NotificationCreatedDefinition = definition(
|
|
878
|
+
{
|
|
879
|
+
event: "notification.created",
|
|
880
|
+
name: "Notification Created",
|
|
881
|
+
description: "Triggers when a notification has been created.",
|
|
882
|
+
schema: NotificationPayloadSchema
|
|
883
|
+
},
|
|
884
|
+
{
|
|
885
|
+
id: "346bc4cf-3087-42e1-aadb-2722f77f32b1",
|
|
886
|
+
type: "text",
|
|
887
|
+
summary: {
|
|
888
|
+
format: "markdown",
|
|
889
|
+
value: "The About Us composition is ready for review."
|
|
890
|
+
},
|
|
891
|
+
entity: {
|
|
892
|
+
type: "composition",
|
|
893
|
+
entityId: "0b9d2118-f2d0-4fe6-9d46-7c661abaf474",
|
|
894
|
+
editionId: "8b937004-6c50-449a-a7cd-a6a70b25f2da"
|
|
895
|
+
},
|
|
896
|
+
recipients: ["sso|recipient-one", "sso|recipient-two"],
|
|
897
|
+
timestamp: "2026-07-20T12:42:06Z",
|
|
898
|
+
project: {
|
|
899
|
+
id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
|
|
900
|
+
url: "https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66"
|
|
901
|
+
},
|
|
902
|
+
initiator: {
|
|
903
|
+
id: "auth0|initiator",
|
|
904
|
+
email: "initiator@example.com",
|
|
905
|
+
name: "A User",
|
|
906
|
+
is_api_key: false
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
);
|
|
910
|
+
var NotificationCreatedEventName = NotificationCreatedDefinition["event"];
|
|
911
|
+
|
|
912
|
+
// src/project-map/projectMap.delete.ts
|
|
913
|
+
var z7 = __toESM(require("zod"));
|
|
806
914
|
var ProjectMapDeleteDefinition = definition(
|
|
807
915
|
{
|
|
808
916
|
event: "projectmap.delete",
|
|
809
917
|
name: "Project Map Deleted",
|
|
810
918
|
description: "Triggers when a project map is deleted.",
|
|
811
|
-
schema:
|
|
812
|
-
id:
|
|
813
|
-
base_url:
|
|
814
|
-
project_id:
|
|
919
|
+
schema: z7.object({
|
|
920
|
+
id: z7.string(),
|
|
921
|
+
base_url: z7.string().optional(),
|
|
922
|
+
project_id: z7.string()
|
|
815
923
|
})
|
|
816
924
|
},
|
|
817
925
|
{
|
|
@@ -823,25 +931,25 @@ var ProjectMapDeleteDefinition = definition(
|
|
|
823
931
|
var ProjectMapDeletedEventName = ProjectMapDeleteDefinition["event"];
|
|
824
932
|
|
|
825
933
|
// src/project-map/projectMap.node.delete.ts
|
|
826
|
-
var
|
|
934
|
+
var z8 = __toESM(require("zod"));
|
|
827
935
|
var ProjectMapNodeDeleteDefinition = definition(
|
|
828
936
|
{
|
|
829
937
|
event: "projectmap.node.delete",
|
|
830
938
|
name: "Project Map Node Deleted",
|
|
831
939
|
description: "Triggers when a project map node is deleted.",
|
|
832
|
-
schema:
|
|
833
|
-
project_id:
|
|
834
|
-
project_map_id:
|
|
835
|
-
name:
|
|
836
|
-
id:
|
|
837
|
-
path:
|
|
838
|
-
composition_id:
|
|
839
|
-
locales:
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
name:
|
|
843
|
-
inherited:
|
|
844
|
-
path:
|
|
940
|
+
schema: z8.object({
|
|
941
|
+
project_id: z8.string(),
|
|
942
|
+
project_map_id: z8.string(),
|
|
943
|
+
name: z8.string(),
|
|
944
|
+
id: z8.string(),
|
|
945
|
+
path: z8.string(),
|
|
946
|
+
composition_id: z8.string().optional(),
|
|
947
|
+
locales: z8.record(
|
|
948
|
+
z8.string(),
|
|
949
|
+
z8.object({
|
|
950
|
+
name: z8.string(),
|
|
951
|
+
inherited: z8.boolean(),
|
|
952
|
+
path: z8.string()
|
|
845
953
|
})
|
|
846
954
|
).optional(),
|
|
847
955
|
initiator: webhookInitiatorSchema
|
|
@@ -872,25 +980,25 @@ var ProjectMapNodeDeleteDefinition = definition(
|
|
|
872
980
|
var ProjectMapNodeDeletedEventName = ProjectMapNodeDeleteDefinition["event"];
|
|
873
981
|
|
|
874
982
|
// src/project-map/projectMap.node.insert.ts
|
|
875
|
-
var
|
|
983
|
+
var z9 = __toESM(require("zod"));
|
|
876
984
|
var ProjectMapNodeInsertDefinition = definition(
|
|
877
985
|
{
|
|
878
986
|
event: "projectmap.node.insert",
|
|
879
987
|
name: "Project Map Node Inserted",
|
|
880
988
|
description: "Triggers when a project map node is inserted.",
|
|
881
|
-
schema:
|
|
882
|
-
id:
|
|
883
|
-
name:
|
|
884
|
-
project_map_id:
|
|
885
|
-
project_id:
|
|
886
|
-
path:
|
|
887
|
-
composition_id:
|
|
888
|
-
locales:
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
name:
|
|
892
|
-
inherited:
|
|
893
|
-
path:
|
|
989
|
+
schema: z9.object({
|
|
990
|
+
id: z9.string(),
|
|
991
|
+
name: z9.string(),
|
|
992
|
+
project_map_id: z9.string(),
|
|
993
|
+
project_id: z9.string(),
|
|
994
|
+
path: z9.string(),
|
|
995
|
+
composition_id: z9.string().optional(),
|
|
996
|
+
locales: z9.record(
|
|
997
|
+
z9.string(),
|
|
998
|
+
z9.object({
|
|
999
|
+
name: z9.string(),
|
|
1000
|
+
inherited: z9.boolean(),
|
|
1001
|
+
path: z9.string()
|
|
894
1002
|
})
|
|
895
1003
|
).optional(),
|
|
896
1004
|
initiator: webhookInitiatorSchema
|
|
@@ -921,27 +1029,27 @@ var ProjectMapNodeInsertDefinition = definition(
|
|
|
921
1029
|
var ProjectMapNodeInsertedEventName = ProjectMapNodeInsertDefinition["event"];
|
|
922
1030
|
|
|
923
1031
|
// src/project-map/projectMap.node.update.ts
|
|
924
|
-
var
|
|
1032
|
+
var z10 = __toESM(require("zod"));
|
|
925
1033
|
var ProjectMapNodeUpdateDefinition = definition(
|
|
926
1034
|
{
|
|
927
1035
|
event: "projectmap.node.update",
|
|
928
1036
|
name: "Project Map Node Updated",
|
|
929
1037
|
description: "Triggers when a project map node is updated.",
|
|
930
|
-
schema:
|
|
931
|
-
id:
|
|
932
|
-
name:
|
|
933
|
-
project_map_id:
|
|
934
|
-
project_id:
|
|
935
|
-
path:
|
|
936
|
-
composition_id:
|
|
937
|
-
previous_path:
|
|
938
|
-
locales:
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
name:
|
|
942
|
-
inherited:
|
|
943
|
-
path:
|
|
944
|
-
previous_path:
|
|
1038
|
+
schema: z10.object({
|
|
1039
|
+
id: z10.string(),
|
|
1040
|
+
name: z10.string(),
|
|
1041
|
+
project_map_id: z10.string(),
|
|
1042
|
+
project_id: z10.string(),
|
|
1043
|
+
path: z10.string(),
|
|
1044
|
+
composition_id: z10.string().optional(),
|
|
1045
|
+
previous_path: z10.string(),
|
|
1046
|
+
locales: z10.record(
|
|
1047
|
+
z10.string(),
|
|
1048
|
+
z10.object({
|
|
1049
|
+
name: z10.string(),
|
|
1050
|
+
inherited: z10.boolean(),
|
|
1051
|
+
path: z10.string(),
|
|
1052
|
+
previous_path: z10.string()
|
|
945
1053
|
})
|
|
946
1054
|
).optional(),
|
|
947
1055
|
initiator: webhookInitiatorSchema
|
|
@@ -974,16 +1082,16 @@ var ProjectMapNodeUpdateDefinition = definition(
|
|
|
974
1082
|
var ProjectMapNodeUpdatedEventName = ProjectMapNodeUpdateDefinition["event"];
|
|
975
1083
|
|
|
976
1084
|
// src/project-map/projectMap.update.ts
|
|
977
|
-
var
|
|
1085
|
+
var z11 = __toESM(require("zod"));
|
|
978
1086
|
var ProjectMapUpdateDefinition = definition(
|
|
979
1087
|
{
|
|
980
1088
|
event: "projectmap.update",
|
|
981
1089
|
name: "Project map Updated",
|
|
982
1090
|
description: "Triggers when a project map is updated or created.",
|
|
983
|
-
schema:
|
|
984
|
-
id:
|
|
985
|
-
base_url:
|
|
986
|
-
project_id:
|
|
1091
|
+
schema: z11.object({
|
|
1092
|
+
id: z11.string(),
|
|
1093
|
+
base_url: z11.string().optional(),
|
|
1094
|
+
project_id: z11.string(),
|
|
987
1095
|
initiator: webhookInitiatorSchema
|
|
988
1096
|
})
|
|
989
1097
|
},
|
|
@@ -1002,18 +1110,18 @@ var ProjectMapUpdateDefinition = definition(
|
|
|
1002
1110
|
var ProjectMapUpdatedEventName = ProjectMapUpdateDefinition["event"];
|
|
1003
1111
|
|
|
1004
1112
|
// src/redirect/redirect.delete.ts
|
|
1005
|
-
var
|
|
1113
|
+
var z12 = __toESM(require("zod"));
|
|
1006
1114
|
var RedirectDeleteDefinition = definition(
|
|
1007
1115
|
{
|
|
1008
1116
|
event: "redirect.delete",
|
|
1009
1117
|
name: "Redirect Deleted",
|
|
1010
1118
|
description: "Triggers when a redirect is deleted.",
|
|
1011
|
-
schema:
|
|
1012
|
-
project_id:
|
|
1013
|
-
id:
|
|
1014
|
-
source_url:
|
|
1015
|
-
target_url:
|
|
1016
|
-
target_status_code:
|
|
1119
|
+
schema: z12.object({
|
|
1120
|
+
project_id: z12.string(),
|
|
1121
|
+
id: z12.string(),
|
|
1122
|
+
source_url: z12.string(),
|
|
1123
|
+
target_url: z12.string(),
|
|
1124
|
+
target_status_code: z12.number(),
|
|
1017
1125
|
initiator: webhookInitiatorSchema
|
|
1018
1126
|
})
|
|
1019
1127
|
},
|
|
@@ -1034,18 +1142,18 @@ var RedirectDeleteDefinition = definition(
|
|
|
1034
1142
|
var RedirectDeletedEventName = RedirectDeleteDefinition["event"];
|
|
1035
1143
|
|
|
1036
1144
|
// src/redirect/redirect.insert.ts
|
|
1037
|
-
var
|
|
1145
|
+
var z13 = __toESM(require("zod"));
|
|
1038
1146
|
var RedirectInsertDefinition = definition(
|
|
1039
1147
|
{
|
|
1040
1148
|
event: "redirect.insert",
|
|
1041
1149
|
name: "Redirect Inserted",
|
|
1042
1150
|
description: "Triggers when a redirect is inserted.",
|
|
1043
|
-
schema:
|
|
1044
|
-
project_id:
|
|
1045
|
-
id:
|
|
1046
|
-
source_url:
|
|
1047
|
-
target_url:
|
|
1048
|
-
target_status_code:
|
|
1151
|
+
schema: z13.object({
|
|
1152
|
+
project_id: z13.string(),
|
|
1153
|
+
id: z13.string(),
|
|
1154
|
+
source_url: z13.string(),
|
|
1155
|
+
target_url: z13.string(),
|
|
1156
|
+
target_status_code: z13.number(),
|
|
1049
1157
|
initiator: webhookInitiatorSchema
|
|
1050
1158
|
})
|
|
1051
1159
|
},
|
|
@@ -1066,18 +1174,18 @@ var RedirectInsertDefinition = definition(
|
|
|
1066
1174
|
var RedirectInsertedEventName = RedirectInsertDefinition["event"];
|
|
1067
1175
|
|
|
1068
1176
|
// src/redirect/redirect.update.ts
|
|
1069
|
-
var
|
|
1177
|
+
var z14 = __toESM(require("zod"));
|
|
1070
1178
|
var RedirectUpdateDefinition = definition(
|
|
1071
1179
|
{
|
|
1072
1180
|
event: "redirect.update",
|
|
1073
1181
|
name: "Redirect Updated",
|
|
1074
1182
|
description: "Triggers when a redirect is updated.",
|
|
1075
|
-
schema:
|
|
1076
|
-
project_id:
|
|
1077
|
-
id:
|
|
1078
|
-
source_url:
|
|
1079
|
-
target_url:
|
|
1080
|
-
target_status_code:
|
|
1183
|
+
schema: z14.object({
|
|
1184
|
+
project_id: z14.string(),
|
|
1185
|
+
id: z14.string(),
|
|
1186
|
+
source_url: z14.string(),
|
|
1187
|
+
target_url: z14.string(),
|
|
1188
|
+
target_status_code: z14.number(),
|
|
1081
1189
|
initiator: webhookInitiatorSchema
|
|
1082
1190
|
})
|
|
1083
1191
|
},
|
|
@@ -1098,19 +1206,19 @@ var RedirectUpdateDefinition = definition(
|
|
|
1098
1206
|
var RedirectUpdatedEventName = RedirectUpdateDefinition["event"];
|
|
1099
1207
|
|
|
1100
1208
|
// src/release/common.ts
|
|
1101
|
-
var
|
|
1102
|
-
var ReleasePayloadSchema =
|
|
1103
|
-
id:
|
|
1104
|
-
state:
|
|
1105
|
-
name:
|
|
1106
|
-
project:
|
|
1107
|
-
id:
|
|
1108
|
-
url:
|
|
1209
|
+
var z15 = __toESM(require("zod"));
|
|
1210
|
+
var ReleasePayloadSchema = z15.object({
|
|
1211
|
+
id: z15.string(),
|
|
1212
|
+
state: z15.enum(["open", "locked", "queued", "launching", "launched", "deleting"]),
|
|
1213
|
+
name: z15.string(),
|
|
1214
|
+
project: z15.object({
|
|
1215
|
+
id: z15.string(),
|
|
1216
|
+
url: z15.string()
|
|
1109
1217
|
}),
|
|
1110
|
-
autoLaunchSchedule:
|
|
1111
|
-
autoLaunchScheduleTimeZone:
|
|
1112
|
-
edit_url:
|
|
1113
|
-
api_url:
|
|
1218
|
+
autoLaunchSchedule: z15.number().optional(),
|
|
1219
|
+
autoLaunchScheduleTimeZone: z15.string().optional(),
|
|
1220
|
+
edit_url: z15.string(),
|
|
1221
|
+
api_url: z15.string()
|
|
1114
1222
|
});
|
|
1115
1223
|
|
|
1116
1224
|
// src/release/release.changed.ts
|
|
@@ -1232,30 +1340,30 @@ var ArchivedReleaseLaunchStartedDefinition = definition(
|
|
|
1232
1340
|
);
|
|
1233
1341
|
|
|
1234
1342
|
// src/workflow/common.ts
|
|
1235
|
-
var
|
|
1236
|
-
var WorkflowReferenceSchema =
|
|
1237
|
-
workflowId:
|
|
1238
|
-
workflowName:
|
|
1239
|
-
stageId:
|
|
1240
|
-
stageName:
|
|
1343
|
+
var z16 = __toESM(require("zod"));
|
|
1344
|
+
var WorkflowReferenceSchema = z16.strictObject({
|
|
1345
|
+
workflowId: z16.string(),
|
|
1346
|
+
workflowName: z16.string(),
|
|
1347
|
+
stageId: z16.string(),
|
|
1348
|
+
stageName: z16.string()
|
|
1241
1349
|
});
|
|
1242
|
-
var WorkflowEntitySchema =
|
|
1243
|
-
type:
|
|
1244
|
-
name:
|
|
1245
|
-
id:
|
|
1246
|
-
editionId:
|
|
1247
|
-
releaseId:
|
|
1248
|
-
url:
|
|
1350
|
+
var WorkflowEntitySchema = z16.strictObject({
|
|
1351
|
+
type: z16.enum(["entry", "component"]),
|
|
1352
|
+
name: z16.string(),
|
|
1353
|
+
id: z16.string(),
|
|
1354
|
+
editionId: z16.string().optional(),
|
|
1355
|
+
releaseId: z16.string().optional(),
|
|
1356
|
+
url: z16.string()
|
|
1249
1357
|
});
|
|
1250
|
-
var WorkflowTransitionPayloadSchema =
|
|
1358
|
+
var WorkflowTransitionPayloadSchema = z16.strictObject({
|
|
1251
1359
|
entity: WorkflowEntitySchema,
|
|
1252
1360
|
newStage: WorkflowReferenceSchema,
|
|
1253
1361
|
previousStage: WorkflowReferenceSchema.optional(),
|
|
1254
1362
|
initiator: webhookInitiatorSchema,
|
|
1255
|
-
timestamp:
|
|
1256
|
-
project:
|
|
1257
|
-
id:
|
|
1258
|
-
url:
|
|
1363
|
+
timestamp: z16.string(),
|
|
1364
|
+
project: z16.object({
|
|
1365
|
+
id: z16.string(),
|
|
1366
|
+
url: z16.string()
|
|
1259
1367
|
})
|
|
1260
1368
|
});
|
|
1261
1369
|
|
|
@@ -1302,6 +1410,42 @@ var WorkflowTransitionDefinition = definition(
|
|
|
1302
1410
|
}
|
|
1303
1411
|
);
|
|
1304
1412
|
var WorkflowTransitionEventName = WorkflowTransitionDefinition["event"];
|
|
1413
|
+
|
|
1414
|
+
// src/catalog.ts
|
|
1415
|
+
var webhookEventCatalog = {
|
|
1416
|
+
"asset.deleted": AssetDeletedDefinition,
|
|
1417
|
+
"asset.published": AssetPublishedDefinition,
|
|
1418
|
+
"composition.changed": CompositionChangedDefinition,
|
|
1419
|
+
"composition.deleted": CompositionDeletedDefinition,
|
|
1420
|
+
"composition.published": CompositionPublishedDefinition,
|
|
1421
|
+
"composition.release.changed": CompositionReleaseChangedDefinition,
|
|
1422
|
+
"composition.release.deleted": CompositionReleaseDeletedDefinition,
|
|
1423
|
+
"composition.release.published": CompositionReleasePublishedDefinition,
|
|
1424
|
+
"composition.release.restored": CompositionReleaseRestoredDefinition,
|
|
1425
|
+
"entry.changed": EntryChangedDefinition,
|
|
1426
|
+
"entry.deleted": EntryDeletedDefinition,
|
|
1427
|
+
"entry.published": EntryPublishedDefinition,
|
|
1428
|
+
"entry.release.changed": EntryReleaseChangedDefinition,
|
|
1429
|
+
"entry.release.deleted": EntryReleaseDeletedDefinition,
|
|
1430
|
+
"entry.release.published": EntryReleasePublishedDefinition,
|
|
1431
|
+
"entry.release.restored": EntryReleaseRestoredDefinition,
|
|
1432
|
+
"manifest.published": ManifestPublishedDefinition,
|
|
1433
|
+
"notification.created": NotificationCreatedDefinition,
|
|
1434
|
+
"projectmap.delete": ProjectMapDeleteDefinition,
|
|
1435
|
+
"projectmap.node.delete": ProjectMapNodeDeleteDefinition,
|
|
1436
|
+
"projectmap.node.insert": ProjectMapNodeInsertDefinition,
|
|
1437
|
+
"projectmap.node.update": ProjectMapNodeUpdateDefinition,
|
|
1438
|
+
"projectmap.update": ProjectMapUpdateDefinition,
|
|
1439
|
+
"redirect.delete": RedirectDeleteDefinition,
|
|
1440
|
+
"redirect.insert": RedirectInsertDefinition,
|
|
1441
|
+
"redirect.update": RedirectUpdateDefinition,
|
|
1442
|
+
"release.changed": ReleaseChangedDefinition,
|
|
1443
|
+
"release.deleted": ReleaseDeletedDefinition,
|
|
1444
|
+
"release.launch_started": ReleaseLaunchStartedDefinition,
|
|
1445
|
+
"release.launched": ReleaseLaunchedDefinition,
|
|
1446
|
+
"workflow.transition": WorkflowTransitionDefinition
|
|
1447
|
+
};
|
|
1448
|
+
var webhookEventNames = Object.keys(webhookEventCatalog);
|
|
1305
1449
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1306
1450
|
0 && (module.exports = {
|
|
1307
1451
|
ArchivedReleaseLaunchStartedDefinition,
|
|
@@ -1349,6 +1493,11 @@ var WorkflowTransitionEventName = WorkflowTransitionDefinition["event"];
|
|
|
1349
1493
|
EntryTriggerPayloadSchema,
|
|
1350
1494
|
ManifestPublishedDefinition,
|
|
1351
1495
|
ManifestPublishedEventName,
|
|
1496
|
+
NotificationCreatedDefinition,
|
|
1497
|
+
NotificationCreatedEventName,
|
|
1498
|
+
NotificationEntitySchema,
|
|
1499
|
+
NotificationPayloadSchema,
|
|
1500
|
+
NotificationSummarySchema,
|
|
1352
1501
|
ProjectMapDeleteDefinition,
|
|
1353
1502
|
ProjectMapDeletedEventName,
|
|
1354
1503
|
ProjectMapNodeDeleteDefinition,
|
|
@@ -1383,5 +1532,7 @@ var WorkflowTransitionEventName = WorkflowTransitionDefinition["event"];
|
|
|
1383
1532
|
WorkflowTransitionPayloadSchema,
|
|
1384
1533
|
definition,
|
|
1385
1534
|
isDefinition,
|
|
1535
|
+
webhookEventCatalog,
|
|
1536
|
+
webhookEventNames,
|
|
1386
1537
|
webhookInitiatorSchema
|
|
1387
1538
|
});
|