@uniformdev/webhooks 20.72.3-alpha.23 → 20.72.3-alpha.25
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 +210 -1
- package/dist/index.d.ts +210 -1
- package/dist/index.esm.js +204 -105
- package/dist/index.js +209 -105
- package/dist/index.mjs +204 -105
- package/package.json +2 -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,
|
|
@@ -811,17 +816,110 @@ var ManifestPublishedDefinition = definition(
|
|
|
811
816
|
);
|
|
812
817
|
var ManifestPublishedEventName = ManifestPublishedDefinition["event"];
|
|
813
818
|
|
|
814
|
-
// src/
|
|
819
|
+
// src/notification/common.ts
|
|
815
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: ["auth0|recipient-one", "auth0|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"));
|
|
816
914
|
var ProjectMapDeleteDefinition = definition(
|
|
817
915
|
{
|
|
818
916
|
event: "projectmap.delete",
|
|
819
917
|
name: "Project Map Deleted",
|
|
820
918
|
description: "Triggers when a project map is deleted.",
|
|
821
|
-
schema:
|
|
822
|
-
id:
|
|
823
|
-
base_url:
|
|
824
|
-
project_id:
|
|
919
|
+
schema: z7.object({
|
|
920
|
+
id: z7.string(),
|
|
921
|
+
base_url: z7.string().optional(),
|
|
922
|
+
project_id: z7.string()
|
|
825
923
|
})
|
|
826
924
|
},
|
|
827
925
|
{
|
|
@@ -833,25 +931,25 @@ var ProjectMapDeleteDefinition = definition(
|
|
|
833
931
|
var ProjectMapDeletedEventName = ProjectMapDeleteDefinition["event"];
|
|
834
932
|
|
|
835
933
|
// src/project-map/projectMap.node.delete.ts
|
|
836
|
-
var
|
|
934
|
+
var z8 = __toESM(require("zod"));
|
|
837
935
|
var ProjectMapNodeDeleteDefinition = definition(
|
|
838
936
|
{
|
|
839
937
|
event: "projectmap.node.delete",
|
|
840
938
|
name: "Project Map Node Deleted",
|
|
841
939
|
description: "Triggers when a project map node is deleted.",
|
|
842
|
-
schema:
|
|
843
|
-
project_id:
|
|
844
|
-
project_map_id:
|
|
845
|
-
name:
|
|
846
|
-
id:
|
|
847
|
-
path:
|
|
848
|
-
composition_id:
|
|
849
|
-
locales:
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
name:
|
|
853
|
-
inherited:
|
|
854
|
-
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()
|
|
855
953
|
})
|
|
856
954
|
).optional(),
|
|
857
955
|
initiator: webhookInitiatorSchema
|
|
@@ -882,25 +980,25 @@ var ProjectMapNodeDeleteDefinition = definition(
|
|
|
882
980
|
var ProjectMapNodeDeletedEventName = ProjectMapNodeDeleteDefinition["event"];
|
|
883
981
|
|
|
884
982
|
// src/project-map/projectMap.node.insert.ts
|
|
885
|
-
var
|
|
983
|
+
var z9 = __toESM(require("zod"));
|
|
886
984
|
var ProjectMapNodeInsertDefinition = definition(
|
|
887
985
|
{
|
|
888
986
|
event: "projectmap.node.insert",
|
|
889
987
|
name: "Project Map Node Inserted",
|
|
890
988
|
description: "Triggers when a project map node is inserted.",
|
|
891
|
-
schema:
|
|
892
|
-
id:
|
|
893
|
-
name:
|
|
894
|
-
project_map_id:
|
|
895
|
-
project_id:
|
|
896
|
-
path:
|
|
897
|
-
composition_id:
|
|
898
|
-
locales:
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
name:
|
|
902
|
-
inherited:
|
|
903
|
-
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()
|
|
904
1002
|
})
|
|
905
1003
|
).optional(),
|
|
906
1004
|
initiator: webhookInitiatorSchema
|
|
@@ -931,27 +1029,27 @@ var ProjectMapNodeInsertDefinition = definition(
|
|
|
931
1029
|
var ProjectMapNodeInsertedEventName = ProjectMapNodeInsertDefinition["event"];
|
|
932
1030
|
|
|
933
1031
|
// src/project-map/projectMap.node.update.ts
|
|
934
|
-
var
|
|
1032
|
+
var z10 = __toESM(require("zod"));
|
|
935
1033
|
var ProjectMapNodeUpdateDefinition = definition(
|
|
936
1034
|
{
|
|
937
1035
|
event: "projectmap.node.update",
|
|
938
1036
|
name: "Project Map Node Updated",
|
|
939
1037
|
description: "Triggers when a project map node is updated.",
|
|
940
|
-
schema:
|
|
941
|
-
id:
|
|
942
|
-
name:
|
|
943
|
-
project_map_id:
|
|
944
|
-
project_id:
|
|
945
|
-
path:
|
|
946
|
-
composition_id:
|
|
947
|
-
previous_path:
|
|
948
|
-
locales:
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
name:
|
|
952
|
-
inherited:
|
|
953
|
-
path:
|
|
954
|
-
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()
|
|
955
1053
|
})
|
|
956
1054
|
).optional(),
|
|
957
1055
|
initiator: webhookInitiatorSchema
|
|
@@ -984,16 +1082,16 @@ var ProjectMapNodeUpdateDefinition = definition(
|
|
|
984
1082
|
var ProjectMapNodeUpdatedEventName = ProjectMapNodeUpdateDefinition["event"];
|
|
985
1083
|
|
|
986
1084
|
// src/project-map/projectMap.update.ts
|
|
987
|
-
var
|
|
1085
|
+
var z11 = __toESM(require("zod"));
|
|
988
1086
|
var ProjectMapUpdateDefinition = definition(
|
|
989
1087
|
{
|
|
990
1088
|
event: "projectmap.update",
|
|
991
1089
|
name: "Project map Updated",
|
|
992
1090
|
description: "Triggers when a project map is updated or created.",
|
|
993
|
-
schema:
|
|
994
|
-
id:
|
|
995
|
-
base_url:
|
|
996
|
-
project_id:
|
|
1091
|
+
schema: z11.object({
|
|
1092
|
+
id: z11.string(),
|
|
1093
|
+
base_url: z11.string().optional(),
|
|
1094
|
+
project_id: z11.string(),
|
|
997
1095
|
initiator: webhookInitiatorSchema
|
|
998
1096
|
})
|
|
999
1097
|
},
|
|
@@ -1012,18 +1110,18 @@ var ProjectMapUpdateDefinition = definition(
|
|
|
1012
1110
|
var ProjectMapUpdatedEventName = ProjectMapUpdateDefinition["event"];
|
|
1013
1111
|
|
|
1014
1112
|
// src/redirect/redirect.delete.ts
|
|
1015
|
-
var
|
|
1113
|
+
var z12 = __toESM(require("zod"));
|
|
1016
1114
|
var RedirectDeleteDefinition = definition(
|
|
1017
1115
|
{
|
|
1018
1116
|
event: "redirect.delete",
|
|
1019
1117
|
name: "Redirect Deleted",
|
|
1020
1118
|
description: "Triggers when a redirect is deleted.",
|
|
1021
|
-
schema:
|
|
1022
|
-
project_id:
|
|
1023
|
-
id:
|
|
1024
|
-
source_url:
|
|
1025
|
-
target_url:
|
|
1026
|
-
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(),
|
|
1027
1125
|
initiator: webhookInitiatorSchema
|
|
1028
1126
|
})
|
|
1029
1127
|
},
|
|
@@ -1044,18 +1142,18 @@ var RedirectDeleteDefinition = definition(
|
|
|
1044
1142
|
var RedirectDeletedEventName = RedirectDeleteDefinition["event"];
|
|
1045
1143
|
|
|
1046
1144
|
// src/redirect/redirect.insert.ts
|
|
1047
|
-
var
|
|
1145
|
+
var z13 = __toESM(require("zod"));
|
|
1048
1146
|
var RedirectInsertDefinition = definition(
|
|
1049
1147
|
{
|
|
1050
1148
|
event: "redirect.insert",
|
|
1051
1149
|
name: "Redirect Inserted",
|
|
1052
1150
|
description: "Triggers when a redirect is inserted.",
|
|
1053
|
-
schema:
|
|
1054
|
-
project_id:
|
|
1055
|
-
id:
|
|
1056
|
-
source_url:
|
|
1057
|
-
target_url:
|
|
1058
|
-
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(),
|
|
1059
1157
|
initiator: webhookInitiatorSchema
|
|
1060
1158
|
})
|
|
1061
1159
|
},
|
|
@@ -1076,18 +1174,18 @@ var RedirectInsertDefinition = definition(
|
|
|
1076
1174
|
var RedirectInsertedEventName = RedirectInsertDefinition["event"];
|
|
1077
1175
|
|
|
1078
1176
|
// src/redirect/redirect.update.ts
|
|
1079
|
-
var
|
|
1177
|
+
var z14 = __toESM(require("zod"));
|
|
1080
1178
|
var RedirectUpdateDefinition = definition(
|
|
1081
1179
|
{
|
|
1082
1180
|
event: "redirect.update",
|
|
1083
1181
|
name: "Redirect Updated",
|
|
1084
1182
|
description: "Triggers when a redirect is updated.",
|
|
1085
|
-
schema:
|
|
1086
|
-
project_id:
|
|
1087
|
-
id:
|
|
1088
|
-
source_url:
|
|
1089
|
-
target_url:
|
|
1090
|
-
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(),
|
|
1091
1189
|
initiator: webhookInitiatorSchema
|
|
1092
1190
|
})
|
|
1093
1191
|
},
|
|
@@ -1108,19 +1206,19 @@ var RedirectUpdateDefinition = definition(
|
|
|
1108
1206
|
var RedirectUpdatedEventName = RedirectUpdateDefinition["event"];
|
|
1109
1207
|
|
|
1110
1208
|
// src/release/common.ts
|
|
1111
|
-
var
|
|
1112
|
-
var ReleasePayloadSchema =
|
|
1113
|
-
id:
|
|
1114
|
-
state:
|
|
1115
|
-
name:
|
|
1116
|
-
project:
|
|
1117
|
-
id:
|
|
1118
|
-
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()
|
|
1119
1217
|
}),
|
|
1120
|
-
autoLaunchSchedule:
|
|
1121
|
-
autoLaunchScheduleTimeZone:
|
|
1122
|
-
edit_url:
|
|
1123
|
-
api_url:
|
|
1218
|
+
autoLaunchSchedule: z15.number().optional(),
|
|
1219
|
+
autoLaunchScheduleTimeZone: z15.string().optional(),
|
|
1220
|
+
edit_url: z15.string(),
|
|
1221
|
+
api_url: z15.string()
|
|
1124
1222
|
});
|
|
1125
1223
|
|
|
1126
1224
|
// src/release/release.changed.ts
|
|
@@ -1242,30 +1340,30 @@ var ArchivedReleaseLaunchStartedDefinition = definition(
|
|
|
1242
1340
|
);
|
|
1243
1341
|
|
|
1244
1342
|
// src/workflow/common.ts
|
|
1245
|
-
var
|
|
1246
|
-
var WorkflowReferenceSchema =
|
|
1247
|
-
workflowId:
|
|
1248
|
-
workflowName:
|
|
1249
|
-
stageId:
|
|
1250
|
-
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()
|
|
1251
1349
|
});
|
|
1252
|
-
var WorkflowEntitySchema =
|
|
1253
|
-
type:
|
|
1254
|
-
name:
|
|
1255
|
-
id:
|
|
1256
|
-
editionId:
|
|
1257
|
-
releaseId:
|
|
1258
|
-
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()
|
|
1259
1357
|
});
|
|
1260
|
-
var WorkflowTransitionPayloadSchema =
|
|
1358
|
+
var WorkflowTransitionPayloadSchema = z16.strictObject({
|
|
1261
1359
|
entity: WorkflowEntitySchema,
|
|
1262
1360
|
newStage: WorkflowReferenceSchema,
|
|
1263
1361
|
previousStage: WorkflowReferenceSchema.optional(),
|
|
1264
1362
|
initiator: webhookInitiatorSchema,
|
|
1265
|
-
timestamp:
|
|
1266
|
-
project:
|
|
1267
|
-
id:
|
|
1268
|
-
url:
|
|
1363
|
+
timestamp: z16.string(),
|
|
1364
|
+
project: z16.object({
|
|
1365
|
+
id: z16.string(),
|
|
1366
|
+
url: z16.string()
|
|
1269
1367
|
})
|
|
1270
1368
|
});
|
|
1271
1369
|
|
|
@@ -1332,6 +1430,7 @@ var webhookEventCatalog = {
|
|
|
1332
1430
|
"entry.release.published": EntryReleasePublishedDefinition,
|
|
1333
1431
|
"entry.release.restored": EntryReleaseRestoredDefinition,
|
|
1334
1432
|
"manifest.published": ManifestPublishedDefinition,
|
|
1433
|
+
"notification.created": NotificationCreatedDefinition,
|
|
1335
1434
|
"projectmap.delete": ProjectMapDeleteDefinition,
|
|
1336
1435
|
"projectmap.node.delete": ProjectMapNodeDeleteDefinition,
|
|
1337
1436
|
"projectmap.node.insert": ProjectMapNodeInsertDefinition,
|
|
@@ -1394,6 +1493,11 @@ var webhookEventNames = Object.keys(webhookEventCatalog);
|
|
|
1394
1493
|
EntryTriggerPayloadSchema,
|
|
1395
1494
|
ManifestPublishedDefinition,
|
|
1396
1495
|
ManifestPublishedEventName,
|
|
1496
|
+
NotificationCreatedDefinition,
|
|
1497
|
+
NotificationCreatedEventName,
|
|
1498
|
+
NotificationEntitySchema,
|
|
1499
|
+
NotificationPayloadSchema,
|
|
1500
|
+
NotificationSummarySchema,
|
|
1397
1501
|
ProjectMapDeleteDefinition,
|
|
1398
1502
|
ProjectMapDeletedEventName,
|
|
1399
1503
|
ProjectMapNodeDeleteDefinition,
|