@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.esm.js
CHANGED
|
@@ -694,17 +694,110 @@ var ManifestPublishedDefinition = definition(
|
|
|
694
694
|
);
|
|
695
695
|
var ManifestPublishedEventName = ManifestPublishedDefinition["event"];
|
|
696
696
|
|
|
697
|
-
// src/
|
|
697
|
+
// src/notification/common.ts
|
|
698
698
|
import * as z6 from "zod";
|
|
699
|
+
var editionEntitySchema = z6.strictObject({
|
|
700
|
+
type: z6.enum(["entry", "composition"]),
|
|
701
|
+
entityId: z6.string(),
|
|
702
|
+
releaseId: z6.string().optional(),
|
|
703
|
+
editionId: z6.string().optional()
|
|
704
|
+
});
|
|
705
|
+
var releaseEntitySchema = z6.strictObject({
|
|
706
|
+
type: z6.enum(["entryPattern", "componentPattern", "compositionPattern"]),
|
|
707
|
+
entityId: z6.string(),
|
|
708
|
+
releaseId: z6.string().optional()
|
|
709
|
+
});
|
|
710
|
+
var platformEntitySchema = z6.strictObject({
|
|
711
|
+
type: z6.enum([
|
|
712
|
+
"component",
|
|
713
|
+
"contentType",
|
|
714
|
+
"blockType",
|
|
715
|
+
"asset",
|
|
716
|
+
"audience",
|
|
717
|
+
"intent",
|
|
718
|
+
"enrichment",
|
|
719
|
+
"signal",
|
|
720
|
+
"quirk",
|
|
721
|
+
"test",
|
|
722
|
+
"projectMapNode"
|
|
723
|
+
]),
|
|
724
|
+
entityId: z6.string()
|
|
725
|
+
});
|
|
726
|
+
var externalEntitySchema = z6.strictObject({
|
|
727
|
+
type: z6.literal("external"),
|
|
728
|
+
url: z6.string()
|
|
729
|
+
});
|
|
730
|
+
var NotificationEntitySchema = z6.discriminatedUnion("type", [
|
|
731
|
+
editionEntitySchema,
|
|
732
|
+
releaseEntitySchema,
|
|
733
|
+
platformEntitySchema,
|
|
734
|
+
externalEntitySchema
|
|
735
|
+
]);
|
|
736
|
+
var NotificationSummarySchema = z6.strictObject({
|
|
737
|
+
format: z6.literal("markdown"),
|
|
738
|
+
value: z6.string()
|
|
739
|
+
});
|
|
740
|
+
var NotificationPayloadSchema = z6.strictObject({
|
|
741
|
+
id: z6.string(),
|
|
742
|
+
type: z6.literal("text"),
|
|
743
|
+
summary: NotificationSummarySchema,
|
|
744
|
+
entity: NotificationEntitySchema.optional(),
|
|
745
|
+
recipients: z6.array(z6.string()).min(1).max(100),
|
|
746
|
+
timestamp: z6.string(),
|
|
747
|
+
project: z6.strictObject({
|
|
748
|
+
id: z6.string(),
|
|
749
|
+
url: z6.string()
|
|
750
|
+
}),
|
|
751
|
+
initiator: webhookInitiatorSchema
|
|
752
|
+
});
|
|
753
|
+
|
|
754
|
+
// src/notification/notification.created.ts
|
|
755
|
+
var NotificationCreatedDefinition = definition(
|
|
756
|
+
{
|
|
757
|
+
event: "notification.created",
|
|
758
|
+
name: "Notification Created",
|
|
759
|
+
description: "Triggers when a notification has been created.",
|
|
760
|
+
schema: NotificationPayloadSchema
|
|
761
|
+
},
|
|
762
|
+
{
|
|
763
|
+
id: "346bc4cf-3087-42e1-aadb-2722f77f32b1",
|
|
764
|
+
type: "text",
|
|
765
|
+
summary: {
|
|
766
|
+
format: "markdown",
|
|
767
|
+
value: "The About Us composition is ready for review."
|
|
768
|
+
},
|
|
769
|
+
entity: {
|
|
770
|
+
type: "composition",
|
|
771
|
+
entityId: "0b9d2118-f2d0-4fe6-9d46-7c661abaf474",
|
|
772
|
+
editionId: "8b937004-6c50-449a-a7cd-a6a70b25f2da"
|
|
773
|
+
},
|
|
774
|
+
recipients: ["auth0|recipient-one", "auth0|recipient-two"],
|
|
775
|
+
timestamp: "2026-07-20T12:42:06Z",
|
|
776
|
+
project: {
|
|
777
|
+
id: "644ede73-d6aa-4159-bf98-14ad7fb4cb66",
|
|
778
|
+
url: "https://uniform.app/projects/644ede73-d6aa-4159-bf98-14ad7fb4cb66"
|
|
779
|
+
},
|
|
780
|
+
initiator: {
|
|
781
|
+
id: "auth0|initiator",
|
|
782
|
+
email: "initiator@example.com",
|
|
783
|
+
name: "A User",
|
|
784
|
+
is_api_key: false
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
);
|
|
788
|
+
var NotificationCreatedEventName = NotificationCreatedDefinition["event"];
|
|
789
|
+
|
|
790
|
+
// src/project-map/projectMap.delete.ts
|
|
791
|
+
import * as z7 from "zod";
|
|
699
792
|
var ProjectMapDeleteDefinition = definition(
|
|
700
793
|
{
|
|
701
794
|
event: "projectmap.delete",
|
|
702
795
|
name: "Project Map Deleted",
|
|
703
796
|
description: "Triggers when a project map is deleted.",
|
|
704
|
-
schema:
|
|
705
|
-
id:
|
|
706
|
-
base_url:
|
|
707
|
-
project_id:
|
|
797
|
+
schema: z7.object({
|
|
798
|
+
id: z7.string(),
|
|
799
|
+
base_url: z7.string().optional(),
|
|
800
|
+
project_id: z7.string()
|
|
708
801
|
})
|
|
709
802
|
},
|
|
710
803
|
{
|
|
@@ -716,25 +809,25 @@ var ProjectMapDeleteDefinition = definition(
|
|
|
716
809
|
var ProjectMapDeletedEventName = ProjectMapDeleteDefinition["event"];
|
|
717
810
|
|
|
718
811
|
// src/project-map/projectMap.node.delete.ts
|
|
719
|
-
import * as
|
|
812
|
+
import * as z8 from "zod";
|
|
720
813
|
var ProjectMapNodeDeleteDefinition = definition(
|
|
721
814
|
{
|
|
722
815
|
event: "projectmap.node.delete",
|
|
723
816
|
name: "Project Map Node Deleted",
|
|
724
817
|
description: "Triggers when a project map node is deleted.",
|
|
725
|
-
schema:
|
|
726
|
-
project_id:
|
|
727
|
-
project_map_id:
|
|
728
|
-
name:
|
|
729
|
-
id:
|
|
730
|
-
path:
|
|
731
|
-
composition_id:
|
|
732
|
-
locales:
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
name:
|
|
736
|
-
inherited:
|
|
737
|
-
path:
|
|
818
|
+
schema: z8.object({
|
|
819
|
+
project_id: z8.string(),
|
|
820
|
+
project_map_id: z8.string(),
|
|
821
|
+
name: z8.string(),
|
|
822
|
+
id: z8.string(),
|
|
823
|
+
path: z8.string(),
|
|
824
|
+
composition_id: z8.string().optional(),
|
|
825
|
+
locales: z8.record(
|
|
826
|
+
z8.string(),
|
|
827
|
+
z8.object({
|
|
828
|
+
name: z8.string(),
|
|
829
|
+
inherited: z8.boolean(),
|
|
830
|
+
path: z8.string()
|
|
738
831
|
})
|
|
739
832
|
).optional(),
|
|
740
833
|
initiator: webhookInitiatorSchema
|
|
@@ -765,25 +858,25 @@ var ProjectMapNodeDeleteDefinition = definition(
|
|
|
765
858
|
var ProjectMapNodeDeletedEventName = ProjectMapNodeDeleteDefinition["event"];
|
|
766
859
|
|
|
767
860
|
// src/project-map/projectMap.node.insert.ts
|
|
768
|
-
import * as
|
|
861
|
+
import * as z9 from "zod";
|
|
769
862
|
var ProjectMapNodeInsertDefinition = definition(
|
|
770
863
|
{
|
|
771
864
|
event: "projectmap.node.insert",
|
|
772
865
|
name: "Project Map Node Inserted",
|
|
773
866
|
description: "Triggers when a project map node is inserted.",
|
|
774
|
-
schema:
|
|
775
|
-
id:
|
|
776
|
-
name:
|
|
777
|
-
project_map_id:
|
|
778
|
-
project_id:
|
|
779
|
-
path:
|
|
780
|
-
composition_id:
|
|
781
|
-
locales:
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
name:
|
|
785
|
-
inherited:
|
|
786
|
-
path:
|
|
867
|
+
schema: z9.object({
|
|
868
|
+
id: z9.string(),
|
|
869
|
+
name: z9.string(),
|
|
870
|
+
project_map_id: z9.string(),
|
|
871
|
+
project_id: z9.string(),
|
|
872
|
+
path: z9.string(),
|
|
873
|
+
composition_id: z9.string().optional(),
|
|
874
|
+
locales: z9.record(
|
|
875
|
+
z9.string(),
|
|
876
|
+
z9.object({
|
|
877
|
+
name: z9.string(),
|
|
878
|
+
inherited: z9.boolean(),
|
|
879
|
+
path: z9.string()
|
|
787
880
|
})
|
|
788
881
|
).optional(),
|
|
789
882
|
initiator: webhookInitiatorSchema
|
|
@@ -814,27 +907,27 @@ var ProjectMapNodeInsertDefinition = definition(
|
|
|
814
907
|
var ProjectMapNodeInsertedEventName = ProjectMapNodeInsertDefinition["event"];
|
|
815
908
|
|
|
816
909
|
// src/project-map/projectMap.node.update.ts
|
|
817
|
-
import * as
|
|
910
|
+
import * as z10 from "zod";
|
|
818
911
|
var ProjectMapNodeUpdateDefinition = definition(
|
|
819
912
|
{
|
|
820
913
|
event: "projectmap.node.update",
|
|
821
914
|
name: "Project Map Node Updated",
|
|
822
915
|
description: "Triggers when a project map node is updated.",
|
|
823
|
-
schema:
|
|
824
|
-
id:
|
|
825
|
-
name:
|
|
826
|
-
project_map_id:
|
|
827
|
-
project_id:
|
|
828
|
-
path:
|
|
829
|
-
composition_id:
|
|
830
|
-
previous_path:
|
|
831
|
-
locales:
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
name:
|
|
835
|
-
inherited:
|
|
836
|
-
path:
|
|
837
|
-
previous_path:
|
|
916
|
+
schema: z10.object({
|
|
917
|
+
id: z10.string(),
|
|
918
|
+
name: z10.string(),
|
|
919
|
+
project_map_id: z10.string(),
|
|
920
|
+
project_id: z10.string(),
|
|
921
|
+
path: z10.string(),
|
|
922
|
+
composition_id: z10.string().optional(),
|
|
923
|
+
previous_path: z10.string(),
|
|
924
|
+
locales: z10.record(
|
|
925
|
+
z10.string(),
|
|
926
|
+
z10.object({
|
|
927
|
+
name: z10.string(),
|
|
928
|
+
inherited: z10.boolean(),
|
|
929
|
+
path: z10.string(),
|
|
930
|
+
previous_path: z10.string()
|
|
838
931
|
})
|
|
839
932
|
).optional(),
|
|
840
933
|
initiator: webhookInitiatorSchema
|
|
@@ -867,16 +960,16 @@ var ProjectMapNodeUpdateDefinition = definition(
|
|
|
867
960
|
var ProjectMapNodeUpdatedEventName = ProjectMapNodeUpdateDefinition["event"];
|
|
868
961
|
|
|
869
962
|
// src/project-map/projectMap.update.ts
|
|
870
|
-
import * as
|
|
963
|
+
import * as z11 from "zod";
|
|
871
964
|
var ProjectMapUpdateDefinition = definition(
|
|
872
965
|
{
|
|
873
966
|
event: "projectmap.update",
|
|
874
967
|
name: "Project map Updated",
|
|
875
968
|
description: "Triggers when a project map is updated or created.",
|
|
876
|
-
schema:
|
|
877
|
-
id:
|
|
878
|
-
base_url:
|
|
879
|
-
project_id:
|
|
969
|
+
schema: z11.object({
|
|
970
|
+
id: z11.string(),
|
|
971
|
+
base_url: z11.string().optional(),
|
|
972
|
+
project_id: z11.string(),
|
|
880
973
|
initiator: webhookInitiatorSchema
|
|
881
974
|
})
|
|
882
975
|
},
|
|
@@ -895,18 +988,18 @@ var ProjectMapUpdateDefinition = definition(
|
|
|
895
988
|
var ProjectMapUpdatedEventName = ProjectMapUpdateDefinition["event"];
|
|
896
989
|
|
|
897
990
|
// src/redirect/redirect.delete.ts
|
|
898
|
-
import * as
|
|
991
|
+
import * as z12 from "zod";
|
|
899
992
|
var RedirectDeleteDefinition = definition(
|
|
900
993
|
{
|
|
901
994
|
event: "redirect.delete",
|
|
902
995
|
name: "Redirect Deleted",
|
|
903
996
|
description: "Triggers when a redirect is deleted.",
|
|
904
|
-
schema:
|
|
905
|
-
project_id:
|
|
906
|
-
id:
|
|
907
|
-
source_url:
|
|
908
|
-
target_url:
|
|
909
|
-
target_status_code:
|
|
997
|
+
schema: z12.object({
|
|
998
|
+
project_id: z12.string(),
|
|
999
|
+
id: z12.string(),
|
|
1000
|
+
source_url: z12.string(),
|
|
1001
|
+
target_url: z12.string(),
|
|
1002
|
+
target_status_code: z12.number(),
|
|
910
1003
|
initiator: webhookInitiatorSchema
|
|
911
1004
|
})
|
|
912
1005
|
},
|
|
@@ -927,18 +1020,18 @@ var RedirectDeleteDefinition = definition(
|
|
|
927
1020
|
var RedirectDeletedEventName = RedirectDeleteDefinition["event"];
|
|
928
1021
|
|
|
929
1022
|
// src/redirect/redirect.insert.ts
|
|
930
|
-
import * as
|
|
1023
|
+
import * as z13 from "zod";
|
|
931
1024
|
var RedirectInsertDefinition = definition(
|
|
932
1025
|
{
|
|
933
1026
|
event: "redirect.insert",
|
|
934
1027
|
name: "Redirect Inserted",
|
|
935
1028
|
description: "Triggers when a redirect is inserted.",
|
|
936
|
-
schema:
|
|
937
|
-
project_id:
|
|
938
|
-
id:
|
|
939
|
-
source_url:
|
|
940
|
-
target_url:
|
|
941
|
-
target_status_code:
|
|
1029
|
+
schema: z13.object({
|
|
1030
|
+
project_id: z13.string(),
|
|
1031
|
+
id: z13.string(),
|
|
1032
|
+
source_url: z13.string(),
|
|
1033
|
+
target_url: z13.string(),
|
|
1034
|
+
target_status_code: z13.number(),
|
|
942
1035
|
initiator: webhookInitiatorSchema
|
|
943
1036
|
})
|
|
944
1037
|
},
|
|
@@ -959,18 +1052,18 @@ var RedirectInsertDefinition = definition(
|
|
|
959
1052
|
var RedirectInsertedEventName = RedirectInsertDefinition["event"];
|
|
960
1053
|
|
|
961
1054
|
// src/redirect/redirect.update.ts
|
|
962
|
-
import * as
|
|
1055
|
+
import * as z14 from "zod";
|
|
963
1056
|
var RedirectUpdateDefinition = definition(
|
|
964
1057
|
{
|
|
965
1058
|
event: "redirect.update",
|
|
966
1059
|
name: "Redirect Updated",
|
|
967
1060
|
description: "Triggers when a redirect is updated.",
|
|
968
|
-
schema:
|
|
969
|
-
project_id:
|
|
970
|
-
id:
|
|
971
|
-
source_url:
|
|
972
|
-
target_url:
|
|
973
|
-
target_status_code:
|
|
1061
|
+
schema: z14.object({
|
|
1062
|
+
project_id: z14.string(),
|
|
1063
|
+
id: z14.string(),
|
|
1064
|
+
source_url: z14.string(),
|
|
1065
|
+
target_url: z14.string(),
|
|
1066
|
+
target_status_code: z14.number(),
|
|
974
1067
|
initiator: webhookInitiatorSchema
|
|
975
1068
|
})
|
|
976
1069
|
},
|
|
@@ -991,19 +1084,19 @@ var RedirectUpdateDefinition = definition(
|
|
|
991
1084
|
var RedirectUpdatedEventName = RedirectUpdateDefinition["event"];
|
|
992
1085
|
|
|
993
1086
|
// src/release/common.ts
|
|
994
|
-
import * as
|
|
995
|
-
var ReleasePayloadSchema =
|
|
996
|
-
id:
|
|
997
|
-
state:
|
|
998
|
-
name:
|
|
999
|
-
project:
|
|
1000
|
-
id:
|
|
1001
|
-
url:
|
|
1087
|
+
import * as z15 from "zod";
|
|
1088
|
+
var ReleasePayloadSchema = z15.object({
|
|
1089
|
+
id: z15.string(),
|
|
1090
|
+
state: z15.enum(["open", "locked", "queued", "launching", "launched", "deleting"]),
|
|
1091
|
+
name: z15.string(),
|
|
1092
|
+
project: z15.object({
|
|
1093
|
+
id: z15.string(),
|
|
1094
|
+
url: z15.string()
|
|
1002
1095
|
}),
|
|
1003
|
-
autoLaunchSchedule:
|
|
1004
|
-
autoLaunchScheduleTimeZone:
|
|
1005
|
-
edit_url:
|
|
1006
|
-
api_url:
|
|
1096
|
+
autoLaunchSchedule: z15.number().optional(),
|
|
1097
|
+
autoLaunchScheduleTimeZone: z15.string().optional(),
|
|
1098
|
+
edit_url: z15.string(),
|
|
1099
|
+
api_url: z15.string()
|
|
1007
1100
|
});
|
|
1008
1101
|
|
|
1009
1102
|
// src/release/release.changed.ts
|
|
@@ -1125,30 +1218,30 @@ var ArchivedReleaseLaunchStartedDefinition = definition(
|
|
|
1125
1218
|
);
|
|
1126
1219
|
|
|
1127
1220
|
// src/workflow/common.ts
|
|
1128
|
-
import * as
|
|
1129
|
-
var WorkflowReferenceSchema =
|
|
1130
|
-
workflowId:
|
|
1131
|
-
workflowName:
|
|
1132
|
-
stageId:
|
|
1133
|
-
stageName:
|
|
1221
|
+
import * as z16 from "zod";
|
|
1222
|
+
var WorkflowReferenceSchema = z16.strictObject({
|
|
1223
|
+
workflowId: z16.string(),
|
|
1224
|
+
workflowName: z16.string(),
|
|
1225
|
+
stageId: z16.string(),
|
|
1226
|
+
stageName: z16.string()
|
|
1134
1227
|
});
|
|
1135
|
-
var WorkflowEntitySchema =
|
|
1136
|
-
type:
|
|
1137
|
-
name:
|
|
1138
|
-
id:
|
|
1139
|
-
editionId:
|
|
1140
|
-
releaseId:
|
|
1141
|
-
url:
|
|
1228
|
+
var WorkflowEntitySchema = z16.strictObject({
|
|
1229
|
+
type: z16.enum(["entry", "component"]),
|
|
1230
|
+
name: z16.string(),
|
|
1231
|
+
id: z16.string(),
|
|
1232
|
+
editionId: z16.string().optional(),
|
|
1233
|
+
releaseId: z16.string().optional(),
|
|
1234
|
+
url: z16.string()
|
|
1142
1235
|
});
|
|
1143
|
-
var WorkflowTransitionPayloadSchema =
|
|
1236
|
+
var WorkflowTransitionPayloadSchema = z16.strictObject({
|
|
1144
1237
|
entity: WorkflowEntitySchema,
|
|
1145
1238
|
newStage: WorkflowReferenceSchema,
|
|
1146
1239
|
previousStage: WorkflowReferenceSchema.optional(),
|
|
1147
1240
|
initiator: webhookInitiatorSchema,
|
|
1148
|
-
timestamp:
|
|
1149
|
-
project:
|
|
1150
|
-
id:
|
|
1151
|
-
url:
|
|
1241
|
+
timestamp: z16.string(),
|
|
1242
|
+
project: z16.object({
|
|
1243
|
+
id: z16.string(),
|
|
1244
|
+
url: z16.string()
|
|
1152
1245
|
})
|
|
1153
1246
|
});
|
|
1154
1247
|
|
|
@@ -1215,6 +1308,7 @@ var webhookEventCatalog = {
|
|
|
1215
1308
|
"entry.release.published": EntryReleasePublishedDefinition,
|
|
1216
1309
|
"entry.release.restored": EntryReleaseRestoredDefinition,
|
|
1217
1310
|
"manifest.published": ManifestPublishedDefinition,
|
|
1311
|
+
"notification.created": NotificationCreatedDefinition,
|
|
1218
1312
|
"projectmap.delete": ProjectMapDeleteDefinition,
|
|
1219
1313
|
"projectmap.node.delete": ProjectMapNodeDeleteDefinition,
|
|
1220
1314
|
"projectmap.node.insert": ProjectMapNodeInsertDefinition,
|
|
@@ -1276,6 +1370,11 @@ export {
|
|
|
1276
1370
|
EntryTriggerPayloadSchema,
|
|
1277
1371
|
ManifestPublishedDefinition,
|
|
1278
1372
|
ManifestPublishedEventName,
|
|
1373
|
+
NotificationCreatedDefinition,
|
|
1374
|
+
NotificationCreatedEventName,
|
|
1375
|
+
NotificationEntitySchema,
|
|
1376
|
+
NotificationPayloadSchema,
|
|
1377
|
+
NotificationSummarySchema,
|
|
1279
1378
|
ProjectMapDeleteDefinition,
|
|
1280
1379
|
ProjectMapDeletedEventName,
|
|
1281
1380
|
ProjectMapNodeDeleteDefinition,
|