@uniformdev/webhooks 20.49.1 → 20.49.3-alpha.47
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 +323 -2307
- package/dist/index.d.ts +323 -2307
- package/dist/index.esm.js +233 -154
- package/dist/index.js +242 -157
- package/dist/index.mjs +233 -154
- package/package.json +7 -9
package/dist/index.js
CHANGED
|
@@ -28,9 +28,15 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
29
|
|
|
30
30
|
// src/index.ts
|
|
31
|
-
var
|
|
32
|
-
__export(
|
|
31
|
+
var index_exports = {};
|
|
32
|
+
__export(index_exports, {
|
|
33
33
|
ArchivedReleaseLaunchStartedDefinition: () => ArchivedReleaseLaunchStartedDefinition,
|
|
34
|
+
AssetDeletePayloadSchema: () => AssetDeletePayloadSchema,
|
|
35
|
+
AssetDeletedDefinition: () => AssetDeletedDefinition,
|
|
36
|
+
AssetDeletedEventName: () => AssetDeletedEventName,
|
|
37
|
+
AssetPayloadSchema: () => AssetPayloadSchema,
|
|
38
|
+
AssetPublishedDefinition: () => AssetPublishedDefinition,
|
|
39
|
+
AssetPublishedEventName: () => AssetPublishedEventName,
|
|
34
40
|
CompositionChangedDefinition: () => CompositionChangedDefinition,
|
|
35
41
|
CompositionChangedEventName: () => CompositionChangedEventName,
|
|
36
42
|
CompositionDeletePayloadSchema: () => CompositionDeletePayloadSchema,
|
|
@@ -105,13 +111,10 @@ __export(src_exports, {
|
|
|
105
111
|
isDefinition: () => isDefinition,
|
|
106
112
|
webhookInitiatorSchema: () => webhookInitiatorSchema
|
|
107
113
|
});
|
|
108
|
-
module.exports = __toCommonJS(
|
|
109
|
-
|
|
110
|
-
// src/composition/common.ts
|
|
111
|
-
var z2 = __toESM(require("zod/v3"));
|
|
114
|
+
module.exports = __toCommonJS(index_exports);
|
|
112
115
|
|
|
113
116
|
// src/definition.ts
|
|
114
|
-
var z = __toESM(require("zod
|
|
117
|
+
var z = __toESM(require("zod"));
|
|
115
118
|
var addEventTypeToSchema = (schema, eventType) => z.object({
|
|
116
119
|
...schema.shape,
|
|
117
120
|
eventType: z.literal(eventType)
|
|
@@ -137,11 +140,10 @@ var webhookInitiatorSchema = z.strictObject({
|
|
|
137
140
|
is_api_key: z.boolean()
|
|
138
141
|
});
|
|
139
142
|
|
|
140
|
-
// src/
|
|
141
|
-
var
|
|
143
|
+
// src/asset/common.ts
|
|
144
|
+
var z2 = __toESM(require("zod"));
|
|
145
|
+
var AssetCorePayloadSchema = z2.object({
|
|
142
146
|
id: z2.string(),
|
|
143
|
-
editionId: z2.string().optional(),
|
|
144
|
-
slug: z2.string().optional(),
|
|
145
147
|
name: z2.string(),
|
|
146
148
|
type: z2.string(),
|
|
147
149
|
project: z2.object({
|
|
@@ -150,28 +152,102 @@ var CompositionCorePayloadSchema = z2.object({
|
|
|
150
152
|
}),
|
|
151
153
|
initiator: webhookInitiatorSchema
|
|
152
154
|
});
|
|
153
|
-
var
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
155
|
+
var AssetPayloadSchema = AssetCorePayloadSchema.extend({
|
|
156
|
+
api_url: z2.string(),
|
|
157
|
+
edit_url: z2.string()
|
|
158
|
+
});
|
|
159
|
+
var AssetDeletePayloadSchema = AssetCorePayloadSchema;
|
|
160
|
+
|
|
161
|
+
// src/asset/asset.deleted.ts
|
|
162
|
+
var AssetDeletedDefinition = definition(
|
|
163
|
+
{
|
|
164
|
+
event: "asset.deleted",
|
|
165
|
+
name: "Asset Deleted",
|
|
166
|
+
description: "Triggers when an asset has been deleted.",
|
|
167
|
+
schema: AssetDeletePayloadSchema
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
id: "9e02e29f-116f-4ad0-beac-910944144d22",
|
|
171
|
+
name: "Some asset",
|
|
172
|
+
type: "image",
|
|
173
|
+
project: {
|
|
174
|
+
id: "9b4e1604-6033-4c86-a189-5bebe2478613",
|
|
175
|
+
url: `https://uniform.app/projects/9b4e1604-6033-4c86-a189-5bebe2478613`
|
|
176
|
+
},
|
|
177
|
+
initiator: {
|
|
178
|
+
id: "useruniqueid",
|
|
179
|
+
email: "foo@bar.com",
|
|
180
|
+
name: "A User",
|
|
181
|
+
is_api_key: false
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
);
|
|
185
|
+
var AssetDeletedEventName = AssetDeletedDefinition["event"];
|
|
186
|
+
|
|
187
|
+
// src/asset/asset.published.ts
|
|
188
|
+
var AssetPublishedDefinition = definition(
|
|
189
|
+
{
|
|
190
|
+
event: "asset.published",
|
|
191
|
+
name: "Asset Published",
|
|
192
|
+
description: "Triggers when an asset has been published.",
|
|
193
|
+
schema: AssetPayloadSchema
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
id: "9e02e29f-116f-4ad0-beac-910944144d22",
|
|
197
|
+
name: "Some asset",
|
|
198
|
+
type: "image",
|
|
199
|
+
project: {
|
|
200
|
+
id: "9b4e1604-6033-4c86-a189-5bebe2478613",
|
|
201
|
+
url: `https://uniform.app/projects/9b4e1604-6033-4c86-a189-5bebe2478613`
|
|
202
|
+
},
|
|
203
|
+
edit_url: `https://uniform.app/projects/9b4e1604-6033-4c86-a189-5bebe2478613/dashboards/canvas/assets?assetId=9e02e29f-116f-4ad0-beac-910944144d22`,
|
|
204
|
+
api_url: `https://uniform.app/api/v1/assets?assetId=9e02e29f-116f-4ad0-beac-910944144d22&projectId=9b4e1604-6033-4c86-a189-5bebe2478613`,
|
|
205
|
+
initiator: {
|
|
206
|
+
id: "useruniqueid",
|
|
207
|
+
email: "foo@bar.com",
|
|
208
|
+
name: "A User",
|
|
209
|
+
is_api_key: false
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
);
|
|
213
|
+
var AssetPublishedEventName = AssetPublishedDefinition["event"];
|
|
214
|
+
|
|
215
|
+
// src/composition/common.ts
|
|
216
|
+
var z3 = __toESM(require("zod"));
|
|
217
|
+
var CompositionCorePayloadSchema = z3.object({
|
|
218
|
+
id: z3.string(),
|
|
219
|
+
editionId: z3.string().optional(),
|
|
220
|
+
slug: z3.string().optional(),
|
|
221
|
+
name: z3.string(),
|
|
222
|
+
type: z3.string(),
|
|
223
|
+
project: z3.object({
|
|
224
|
+
id: z3.string(),
|
|
225
|
+
url: z3.string()
|
|
226
|
+
}),
|
|
227
|
+
initiator: webhookInitiatorSchema
|
|
228
|
+
});
|
|
229
|
+
var CompositionTriggerPayloadSchema = z3.object({
|
|
230
|
+
trigger: z3.object({
|
|
231
|
+
type: z3.enum(["release"]),
|
|
232
|
+
id: z3.string()
|
|
157
233
|
}).optional()
|
|
158
234
|
});
|
|
159
235
|
var CompositionDeletePayloadSchema = CompositionCorePayloadSchema.extend({
|
|
160
|
-
state:
|
|
236
|
+
state: z3.number().optional()
|
|
161
237
|
});
|
|
162
238
|
var CompositionRestorePayloadSchema = CompositionCorePayloadSchema.extend({
|
|
163
|
-
state:
|
|
239
|
+
state: z3.number()
|
|
164
240
|
});
|
|
165
241
|
var CompositionPayloadSchema = CompositionCorePayloadSchema.extend({
|
|
166
|
-
state:
|
|
167
|
-
edit_url:
|
|
168
|
-
api_url:
|
|
169
|
-
edge_url:
|
|
242
|
+
state: z3.number(),
|
|
243
|
+
edit_url: z3.string(),
|
|
244
|
+
api_url: z3.string(),
|
|
245
|
+
edge_url: z3.string()
|
|
170
246
|
});
|
|
171
|
-
var ReleaseCompositionPayloadSchema =
|
|
172
|
-
release:
|
|
173
|
-
id:
|
|
174
|
-
url:
|
|
247
|
+
var ReleaseCompositionPayloadSchema = z3.object({
|
|
248
|
+
release: z3.object({
|
|
249
|
+
id: z3.string(),
|
|
250
|
+
url: z3.string()
|
|
175
251
|
})
|
|
176
252
|
});
|
|
177
253
|
|
|
@@ -419,41 +495,41 @@ var CompositionReleaseRestoredDefinition = definition(
|
|
|
419
495
|
var CompositionReleaseRestoredEventName = CompositionReleaseRestoredDefinition["event"];
|
|
420
496
|
|
|
421
497
|
// src/entry/common.ts
|
|
422
|
-
var
|
|
423
|
-
var EntryCorePayloadSchema =
|
|
424
|
-
id:
|
|
425
|
-
editionId:
|
|
426
|
-
slug:
|
|
427
|
-
name:
|
|
428
|
-
type:
|
|
429
|
-
project:
|
|
430
|
-
id:
|
|
431
|
-
url:
|
|
498
|
+
var z4 = __toESM(require("zod"));
|
|
499
|
+
var EntryCorePayloadSchema = z4.object({
|
|
500
|
+
id: z4.string(),
|
|
501
|
+
editionId: z4.string().optional(),
|
|
502
|
+
slug: z4.string().optional(),
|
|
503
|
+
name: z4.string(),
|
|
504
|
+
type: z4.string(),
|
|
505
|
+
project: z4.object({
|
|
506
|
+
id: z4.string(),
|
|
507
|
+
url: z4.string()
|
|
432
508
|
}),
|
|
433
509
|
initiator: webhookInitiatorSchema
|
|
434
510
|
});
|
|
435
|
-
var EntryTriggerPayloadSchema =
|
|
436
|
-
trigger:
|
|
437
|
-
type:
|
|
438
|
-
id:
|
|
511
|
+
var EntryTriggerPayloadSchema = z4.object({
|
|
512
|
+
trigger: z4.object({
|
|
513
|
+
type: z4.enum(["release"]),
|
|
514
|
+
id: z4.string()
|
|
439
515
|
}).optional()
|
|
440
516
|
});
|
|
441
517
|
var EntryDeletePayloadSchema = EntryCorePayloadSchema.extend({
|
|
442
|
-
state:
|
|
518
|
+
state: z4.number().optional()
|
|
443
519
|
});
|
|
444
520
|
var EntryRestorePayloadSchema = EntryCorePayloadSchema.extend({
|
|
445
|
-
state:
|
|
521
|
+
state: z4.number()
|
|
446
522
|
});
|
|
447
523
|
var EntryPayloadSchema = EntryCorePayloadSchema.extend({
|
|
448
|
-
state:
|
|
449
|
-
edit_url:
|
|
450
|
-
api_url:
|
|
451
|
-
edge_url:
|
|
524
|
+
state: z4.number(),
|
|
525
|
+
edit_url: z4.string(),
|
|
526
|
+
api_url: z4.string(),
|
|
527
|
+
edge_url: z4.string()
|
|
452
528
|
});
|
|
453
|
-
var ReleaseEntryPayloadSchema =
|
|
454
|
-
release:
|
|
455
|
-
id:
|
|
456
|
-
url:
|
|
529
|
+
var ReleaseEntryPayloadSchema = z4.object({
|
|
530
|
+
release: z4.object({
|
|
531
|
+
id: z4.string(),
|
|
532
|
+
url: z4.string()
|
|
457
533
|
})
|
|
458
534
|
});
|
|
459
535
|
|
|
@@ -701,17 +777,17 @@ var EntryReleaseRestoredDefinition = definition(
|
|
|
701
777
|
var EntryReleaseRestoredEventName = EntryReleaseRestoredDefinition["event"];
|
|
702
778
|
|
|
703
779
|
// src/manifest/manifest.published.ts
|
|
704
|
-
var
|
|
780
|
+
var z5 = __toESM(require("zod"));
|
|
705
781
|
var ManifestPublishedDefinition = definition(
|
|
706
782
|
{
|
|
707
783
|
event: "manifest.published",
|
|
708
784
|
name: "Manifest Published",
|
|
709
785
|
description: "Triggers when a manifest has been published.",
|
|
710
|
-
schema:
|
|
711
|
-
timestamp:
|
|
712
|
-
site:
|
|
713
|
-
id:
|
|
714
|
-
name:
|
|
786
|
+
schema: z5.object({
|
|
787
|
+
timestamp: z5.string(),
|
|
788
|
+
site: z5.object({
|
|
789
|
+
id: z5.string(),
|
|
790
|
+
name: z5.string()
|
|
715
791
|
})
|
|
716
792
|
})
|
|
717
793
|
},
|
|
@@ -726,16 +802,16 @@ var ManifestPublishedDefinition = definition(
|
|
|
726
802
|
var ManifestPublishedEventName = ManifestPublishedDefinition["event"];
|
|
727
803
|
|
|
728
804
|
// src/project-map/projectMap.delete.ts
|
|
729
|
-
var
|
|
805
|
+
var z6 = __toESM(require("zod"));
|
|
730
806
|
var ProjectMapDeleteDefinition = definition(
|
|
731
807
|
{
|
|
732
808
|
event: "projectmap.delete",
|
|
733
809
|
name: "Project Map Deleted",
|
|
734
810
|
description: "Triggers when a project map is deleted.",
|
|
735
|
-
schema:
|
|
736
|
-
id:
|
|
737
|
-
base_url:
|
|
738
|
-
project_id:
|
|
811
|
+
schema: z6.object({
|
|
812
|
+
id: z6.string(),
|
|
813
|
+
base_url: z6.string().optional(),
|
|
814
|
+
project_id: z6.string()
|
|
739
815
|
})
|
|
740
816
|
},
|
|
741
817
|
{
|
|
@@ -747,24 +823,25 @@ var ProjectMapDeleteDefinition = definition(
|
|
|
747
823
|
var ProjectMapDeletedEventName = ProjectMapDeleteDefinition["event"];
|
|
748
824
|
|
|
749
825
|
// src/project-map/projectMap.node.delete.ts
|
|
750
|
-
var
|
|
826
|
+
var z7 = __toESM(require("zod"));
|
|
751
827
|
var ProjectMapNodeDeleteDefinition = definition(
|
|
752
828
|
{
|
|
753
829
|
event: "projectmap.node.delete",
|
|
754
830
|
name: "Project Map Node Deleted",
|
|
755
831
|
description: "Triggers when a project map node is deleted.",
|
|
756
|
-
schema:
|
|
757
|
-
project_id:
|
|
758
|
-
project_map_id:
|
|
759
|
-
name:
|
|
760
|
-
id:
|
|
761
|
-
path:
|
|
762
|
-
composition_id:
|
|
763
|
-
locales:
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
832
|
+
schema: z7.object({
|
|
833
|
+
project_id: z7.string(),
|
|
834
|
+
project_map_id: z7.string(),
|
|
835
|
+
name: z7.string(),
|
|
836
|
+
id: z7.string(),
|
|
837
|
+
path: z7.string(),
|
|
838
|
+
composition_id: z7.string().optional(),
|
|
839
|
+
locales: z7.record(
|
|
840
|
+
z7.string(),
|
|
841
|
+
z7.object({
|
|
842
|
+
name: z7.string(),
|
|
843
|
+
inherited: z7.boolean(),
|
|
844
|
+
path: z7.string()
|
|
768
845
|
})
|
|
769
846
|
).optional(),
|
|
770
847
|
initiator: webhookInitiatorSchema
|
|
@@ -795,24 +872,25 @@ var ProjectMapNodeDeleteDefinition = definition(
|
|
|
795
872
|
var ProjectMapNodeDeletedEventName = ProjectMapNodeDeleteDefinition["event"];
|
|
796
873
|
|
|
797
874
|
// src/project-map/projectMap.node.insert.ts
|
|
798
|
-
var
|
|
875
|
+
var z8 = __toESM(require("zod"));
|
|
799
876
|
var ProjectMapNodeInsertDefinition = definition(
|
|
800
877
|
{
|
|
801
878
|
event: "projectmap.node.insert",
|
|
802
879
|
name: "Project Map Node Inserted",
|
|
803
880
|
description: "Triggers when a project map node is inserted.",
|
|
804
|
-
schema:
|
|
805
|
-
id:
|
|
806
|
-
name:
|
|
807
|
-
project_map_id:
|
|
808
|
-
project_id:
|
|
809
|
-
path:
|
|
810
|
-
composition_id:
|
|
811
|
-
locales:
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
881
|
+
schema: z8.object({
|
|
882
|
+
id: z8.string(),
|
|
883
|
+
name: z8.string(),
|
|
884
|
+
project_map_id: z8.string(),
|
|
885
|
+
project_id: z8.string(),
|
|
886
|
+
path: z8.string(),
|
|
887
|
+
composition_id: z8.string().optional(),
|
|
888
|
+
locales: z8.record(
|
|
889
|
+
z8.string(),
|
|
890
|
+
z8.object({
|
|
891
|
+
name: z8.string(),
|
|
892
|
+
inherited: z8.boolean(),
|
|
893
|
+
path: z8.string()
|
|
816
894
|
})
|
|
817
895
|
).optional(),
|
|
818
896
|
initiator: webhookInitiatorSchema
|
|
@@ -843,26 +921,27 @@ var ProjectMapNodeInsertDefinition = definition(
|
|
|
843
921
|
var ProjectMapNodeInsertedEventName = ProjectMapNodeInsertDefinition["event"];
|
|
844
922
|
|
|
845
923
|
// src/project-map/projectMap.node.update.ts
|
|
846
|
-
var
|
|
924
|
+
var z9 = __toESM(require("zod"));
|
|
847
925
|
var ProjectMapNodeUpdateDefinition = definition(
|
|
848
926
|
{
|
|
849
927
|
event: "projectmap.node.update",
|
|
850
928
|
name: "Project Map Node Updated",
|
|
851
929
|
description: "Triggers when a project map node is updated.",
|
|
852
|
-
schema:
|
|
853
|
-
id:
|
|
854
|
-
name:
|
|
855
|
-
project_map_id:
|
|
856
|
-
project_id:
|
|
857
|
-
path:
|
|
858
|
-
composition_id:
|
|
859
|
-
previous_path:
|
|
860
|
-
locales:
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
930
|
+
schema: z9.object({
|
|
931
|
+
id: z9.string(),
|
|
932
|
+
name: z9.string(),
|
|
933
|
+
project_map_id: z9.string(),
|
|
934
|
+
project_id: z9.string(),
|
|
935
|
+
path: z9.string(),
|
|
936
|
+
composition_id: z9.string().optional(),
|
|
937
|
+
previous_path: z9.string(),
|
|
938
|
+
locales: z9.record(
|
|
939
|
+
z9.string(),
|
|
940
|
+
z9.object({
|
|
941
|
+
name: z9.string(),
|
|
942
|
+
inherited: z9.boolean(),
|
|
943
|
+
path: z9.string(),
|
|
944
|
+
previous_path: z9.string()
|
|
866
945
|
})
|
|
867
946
|
).optional(),
|
|
868
947
|
initiator: webhookInitiatorSchema
|
|
@@ -895,16 +974,16 @@ var ProjectMapNodeUpdateDefinition = definition(
|
|
|
895
974
|
var ProjectMapNodeUpdatedEventName = ProjectMapNodeUpdateDefinition["event"];
|
|
896
975
|
|
|
897
976
|
// src/project-map/projectMap.update.ts
|
|
898
|
-
var
|
|
977
|
+
var z10 = __toESM(require("zod"));
|
|
899
978
|
var ProjectMapUpdateDefinition = definition(
|
|
900
979
|
{
|
|
901
980
|
event: "projectmap.update",
|
|
902
981
|
name: "Project map Updated",
|
|
903
982
|
description: "Triggers when a project map is updated or created.",
|
|
904
|
-
schema:
|
|
905
|
-
id:
|
|
906
|
-
base_url:
|
|
907
|
-
project_id:
|
|
983
|
+
schema: z10.object({
|
|
984
|
+
id: z10.string(),
|
|
985
|
+
base_url: z10.string().optional(),
|
|
986
|
+
project_id: z10.string(),
|
|
908
987
|
initiator: webhookInitiatorSchema
|
|
909
988
|
})
|
|
910
989
|
},
|
|
@@ -923,18 +1002,18 @@ var ProjectMapUpdateDefinition = definition(
|
|
|
923
1002
|
var ProjectMapUpdatedEventName = ProjectMapUpdateDefinition["event"];
|
|
924
1003
|
|
|
925
1004
|
// src/redirect/redirect.delete.ts
|
|
926
|
-
var
|
|
1005
|
+
var z11 = __toESM(require("zod"));
|
|
927
1006
|
var RedirectDeleteDefinition = definition(
|
|
928
1007
|
{
|
|
929
1008
|
event: "redirect.delete",
|
|
930
1009
|
name: "Redirect Deleted",
|
|
931
1010
|
description: "Triggers when a redirect is deleted.",
|
|
932
|
-
schema:
|
|
933
|
-
project_id:
|
|
934
|
-
id:
|
|
935
|
-
source_url:
|
|
936
|
-
target_url:
|
|
937
|
-
target_status_code:
|
|
1011
|
+
schema: z11.object({
|
|
1012
|
+
project_id: z11.string(),
|
|
1013
|
+
id: z11.string(),
|
|
1014
|
+
source_url: z11.string(),
|
|
1015
|
+
target_url: z11.string(),
|
|
1016
|
+
target_status_code: z11.number(),
|
|
938
1017
|
initiator: webhookInitiatorSchema
|
|
939
1018
|
})
|
|
940
1019
|
},
|
|
@@ -955,18 +1034,18 @@ var RedirectDeleteDefinition = definition(
|
|
|
955
1034
|
var RedirectDeletedEventName = RedirectDeleteDefinition["event"];
|
|
956
1035
|
|
|
957
1036
|
// src/redirect/redirect.insert.ts
|
|
958
|
-
var
|
|
1037
|
+
var z12 = __toESM(require("zod"));
|
|
959
1038
|
var RedirectInsertDefinition = definition(
|
|
960
1039
|
{
|
|
961
1040
|
event: "redirect.insert",
|
|
962
1041
|
name: "Redirect Inserted",
|
|
963
1042
|
description: "Triggers when a redirect is inserted.",
|
|
964
|
-
schema:
|
|
965
|
-
project_id:
|
|
966
|
-
id:
|
|
967
|
-
source_url:
|
|
968
|
-
target_url:
|
|
969
|
-
target_status_code:
|
|
1043
|
+
schema: z12.object({
|
|
1044
|
+
project_id: z12.string(),
|
|
1045
|
+
id: z12.string(),
|
|
1046
|
+
source_url: z12.string(),
|
|
1047
|
+
target_url: z12.string(),
|
|
1048
|
+
target_status_code: z12.number(),
|
|
970
1049
|
initiator: webhookInitiatorSchema
|
|
971
1050
|
})
|
|
972
1051
|
},
|
|
@@ -987,18 +1066,18 @@ var RedirectInsertDefinition = definition(
|
|
|
987
1066
|
var RedirectInsertedEventName = RedirectInsertDefinition["event"];
|
|
988
1067
|
|
|
989
1068
|
// src/redirect/redirect.update.ts
|
|
990
|
-
var
|
|
1069
|
+
var z13 = __toESM(require("zod"));
|
|
991
1070
|
var RedirectUpdateDefinition = definition(
|
|
992
1071
|
{
|
|
993
1072
|
event: "redirect.update",
|
|
994
1073
|
name: "Redirect Updated",
|
|
995
1074
|
description: "Triggers when a redirect is updated.",
|
|
996
|
-
schema:
|
|
997
|
-
project_id:
|
|
998
|
-
id:
|
|
999
|
-
source_url:
|
|
1000
|
-
target_url:
|
|
1001
|
-
target_status_code:
|
|
1075
|
+
schema: z13.object({
|
|
1076
|
+
project_id: z13.string(),
|
|
1077
|
+
id: z13.string(),
|
|
1078
|
+
source_url: z13.string(),
|
|
1079
|
+
target_url: z13.string(),
|
|
1080
|
+
target_status_code: z13.number(),
|
|
1002
1081
|
initiator: webhookInitiatorSchema
|
|
1003
1082
|
})
|
|
1004
1083
|
},
|
|
@@ -1019,19 +1098,19 @@ var RedirectUpdateDefinition = definition(
|
|
|
1019
1098
|
var RedirectUpdatedEventName = RedirectUpdateDefinition["event"];
|
|
1020
1099
|
|
|
1021
1100
|
// src/release/common.ts
|
|
1022
|
-
var
|
|
1023
|
-
var ReleasePayloadSchema =
|
|
1024
|
-
id:
|
|
1025
|
-
state:
|
|
1026
|
-
name:
|
|
1027
|
-
project:
|
|
1028
|
-
id:
|
|
1029
|
-
url:
|
|
1101
|
+
var z14 = __toESM(require("zod"));
|
|
1102
|
+
var ReleasePayloadSchema = z14.object({
|
|
1103
|
+
id: z14.string(),
|
|
1104
|
+
state: z14.enum(["open", "locked", "queued", "launching", "launched", "deleting"]),
|
|
1105
|
+
name: z14.string(),
|
|
1106
|
+
project: z14.object({
|
|
1107
|
+
id: z14.string(),
|
|
1108
|
+
url: z14.string()
|
|
1030
1109
|
}),
|
|
1031
|
-
autoLaunchSchedule:
|
|
1032
|
-
autoLaunchScheduleTimeZone:
|
|
1033
|
-
edit_url:
|
|
1034
|
-
api_url:
|
|
1110
|
+
autoLaunchSchedule: z14.number().optional(),
|
|
1111
|
+
autoLaunchScheduleTimeZone: z14.string().optional(),
|
|
1112
|
+
edit_url: z14.string(),
|
|
1113
|
+
api_url: z14.string()
|
|
1035
1114
|
});
|
|
1036
1115
|
|
|
1037
1116
|
// src/release/release.changed.ts
|
|
@@ -1153,30 +1232,30 @@ var ArchivedReleaseLaunchStartedDefinition = definition(
|
|
|
1153
1232
|
);
|
|
1154
1233
|
|
|
1155
1234
|
// src/workflow/common.ts
|
|
1156
|
-
var
|
|
1157
|
-
var WorkflowReferenceSchema =
|
|
1158
|
-
workflowId:
|
|
1159
|
-
workflowName:
|
|
1160
|
-
stageId:
|
|
1161
|
-
stageName:
|
|
1235
|
+
var z15 = __toESM(require("zod"));
|
|
1236
|
+
var WorkflowReferenceSchema = z15.strictObject({
|
|
1237
|
+
workflowId: z15.string(),
|
|
1238
|
+
workflowName: z15.string(),
|
|
1239
|
+
stageId: z15.string(),
|
|
1240
|
+
stageName: z15.string()
|
|
1162
1241
|
});
|
|
1163
|
-
var WorkflowEntitySchema =
|
|
1164
|
-
type:
|
|
1165
|
-
name:
|
|
1166
|
-
id:
|
|
1167
|
-
editionId:
|
|
1168
|
-
releaseId:
|
|
1169
|
-
url:
|
|
1242
|
+
var WorkflowEntitySchema = z15.strictObject({
|
|
1243
|
+
type: z15.enum(["entry", "component"]),
|
|
1244
|
+
name: z15.string(),
|
|
1245
|
+
id: z15.string(),
|
|
1246
|
+
editionId: z15.string().optional(),
|
|
1247
|
+
releaseId: z15.string().optional(),
|
|
1248
|
+
url: z15.string()
|
|
1170
1249
|
});
|
|
1171
|
-
var WorkflowTransitionPayloadSchema =
|
|
1250
|
+
var WorkflowTransitionPayloadSchema = z15.strictObject({
|
|
1172
1251
|
entity: WorkflowEntitySchema,
|
|
1173
1252
|
newStage: WorkflowReferenceSchema,
|
|
1174
1253
|
previousStage: WorkflowReferenceSchema.optional(),
|
|
1175
1254
|
initiator: webhookInitiatorSchema,
|
|
1176
|
-
timestamp:
|
|
1177
|
-
project:
|
|
1178
|
-
id:
|
|
1179
|
-
url:
|
|
1255
|
+
timestamp: z15.string(),
|
|
1256
|
+
project: z15.object({
|
|
1257
|
+
id: z15.string(),
|
|
1258
|
+
url: z15.string()
|
|
1180
1259
|
})
|
|
1181
1260
|
});
|
|
1182
1261
|
|
|
@@ -1226,6 +1305,12 @@ var WorkflowTransitionEventName = WorkflowTransitionDefinition["event"];
|
|
|
1226
1305
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1227
1306
|
0 && (module.exports = {
|
|
1228
1307
|
ArchivedReleaseLaunchStartedDefinition,
|
|
1308
|
+
AssetDeletePayloadSchema,
|
|
1309
|
+
AssetDeletedDefinition,
|
|
1310
|
+
AssetDeletedEventName,
|
|
1311
|
+
AssetPayloadSchema,
|
|
1312
|
+
AssetPublishedDefinition,
|
|
1313
|
+
AssetPublishedEventName,
|
|
1229
1314
|
CompositionChangedDefinition,
|
|
1230
1315
|
CompositionChangedEventName,
|
|
1231
1316
|
CompositionDeletePayloadSchema,
|