@uniformdev/webhooks 20.50.2-alpha.146 → 20.50.2-alpha.167
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 +692 -28
- package/dist/index.d.ts +692 -28
- package/dist/index.esm.js +45 -0
- package/dist/index.js +50 -3
- package/dist/index.mjs +45 -0
- package/package.json +7 -6
package/dist/index.esm.js
CHANGED
|
@@ -109,6 +109,10 @@ var CompositionCorePayloadSchema = z3.object({
|
|
|
109
109
|
id: z3.string(),
|
|
110
110
|
url: z3.string()
|
|
111
111
|
}),
|
|
112
|
+
/**
|
|
113
|
+
* The composition's modified time (ISO 8601) after this change. Only present for change/publish events.
|
|
114
|
+
*/
|
|
115
|
+
timestamp: z3.string().optional(),
|
|
112
116
|
initiator: webhookInitiatorSchema
|
|
113
117
|
});
|
|
114
118
|
var CompositionTriggerPayloadSchema = z3.object({
|
|
@@ -391,6 +395,10 @@ var EntryCorePayloadSchema = z4.object({
|
|
|
391
395
|
id: z4.string(),
|
|
392
396
|
url: z4.string()
|
|
393
397
|
}),
|
|
398
|
+
/**
|
|
399
|
+
* The entry's server-of-record modified time (ISO 8601) after this change. Only present for change/publish events.
|
|
400
|
+
*/
|
|
401
|
+
timestamp: z4.string().optional(),
|
|
394
402
|
initiator: webhookInitiatorSchema
|
|
395
403
|
});
|
|
396
404
|
var EntryTriggerPayloadSchema = z4.object({
|
|
@@ -1187,6 +1195,41 @@ var WorkflowTransitionDefinition = definition(
|
|
|
1187
1195
|
}
|
|
1188
1196
|
);
|
|
1189
1197
|
var WorkflowTransitionEventName = WorkflowTransitionDefinition["event"];
|
|
1198
|
+
|
|
1199
|
+
// src/catalog.ts
|
|
1200
|
+
var webhookEventCatalog = {
|
|
1201
|
+
"asset.deleted": AssetDeletedDefinition,
|
|
1202
|
+
"asset.published": AssetPublishedDefinition,
|
|
1203
|
+
"composition.changed": CompositionChangedDefinition,
|
|
1204
|
+
"composition.deleted": CompositionDeletedDefinition,
|
|
1205
|
+
"composition.published": CompositionPublishedDefinition,
|
|
1206
|
+
"composition.release.changed": CompositionReleaseChangedDefinition,
|
|
1207
|
+
"composition.release.deleted": CompositionReleaseDeletedDefinition,
|
|
1208
|
+
"composition.release.published": CompositionReleasePublishedDefinition,
|
|
1209
|
+
"composition.release.restored": CompositionReleaseRestoredDefinition,
|
|
1210
|
+
"entry.changed": EntryChangedDefinition,
|
|
1211
|
+
"entry.deleted": EntryDeletedDefinition,
|
|
1212
|
+
"entry.published": EntryPublishedDefinition,
|
|
1213
|
+
"entry.release.changed": EntryReleaseChangedDefinition,
|
|
1214
|
+
"entry.release.deleted": EntryReleaseDeletedDefinition,
|
|
1215
|
+
"entry.release.published": EntryReleasePublishedDefinition,
|
|
1216
|
+
"entry.release.restored": EntryReleaseRestoredDefinition,
|
|
1217
|
+
"manifest.published": ManifestPublishedDefinition,
|
|
1218
|
+
"projectmap.delete": ProjectMapDeleteDefinition,
|
|
1219
|
+
"projectmap.node.delete": ProjectMapNodeDeleteDefinition,
|
|
1220
|
+
"projectmap.node.insert": ProjectMapNodeInsertDefinition,
|
|
1221
|
+
"projectmap.node.update": ProjectMapNodeUpdateDefinition,
|
|
1222
|
+
"projectmap.update": ProjectMapUpdateDefinition,
|
|
1223
|
+
"redirect.delete": RedirectDeleteDefinition,
|
|
1224
|
+
"redirect.insert": RedirectInsertDefinition,
|
|
1225
|
+
"redirect.update": RedirectUpdateDefinition,
|
|
1226
|
+
"release.changed": ReleaseChangedDefinition,
|
|
1227
|
+
"release.deleted": ReleaseDeletedDefinition,
|
|
1228
|
+
"release.launch_started": ReleaseLaunchStartedDefinition,
|
|
1229
|
+
"release.launched": ReleaseLaunchedDefinition,
|
|
1230
|
+
"workflow.transition": WorkflowTransitionDefinition
|
|
1231
|
+
};
|
|
1232
|
+
var webhookEventNames = Object.keys(webhookEventCatalog);
|
|
1190
1233
|
export {
|
|
1191
1234
|
ArchivedReleaseLaunchStartedDefinition,
|
|
1192
1235
|
AssetDeletePayloadSchema,
|
|
@@ -1267,5 +1310,7 @@ export {
|
|
|
1267
1310
|
WorkflowTransitionPayloadSchema,
|
|
1268
1311
|
definition,
|
|
1269
1312
|
isDefinition,
|
|
1313
|
+
webhookEventCatalog,
|
|
1314
|
+
webhookEventNames,
|
|
1270
1315
|
webhookInitiatorSchema
|
|
1271
1316
|
};
|
package/dist/index.js
CHANGED
|
@@ -28,8 +28,8 @@ 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
34
|
AssetDeletePayloadSchema: () => AssetDeletePayloadSchema,
|
|
35
35
|
AssetDeletedDefinition: () => AssetDeletedDefinition,
|
|
@@ -109,9 +109,11 @@ __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
|
-
module.exports = __toCommonJS(
|
|
116
|
+
module.exports = __toCommonJS(index_exports);
|
|
115
117
|
|
|
116
118
|
// src/definition.ts
|
|
117
119
|
var z = __toESM(require("zod"));
|
|
@@ -224,6 +226,10 @@ var CompositionCorePayloadSchema = z3.object({
|
|
|
224
226
|
id: z3.string(),
|
|
225
227
|
url: z3.string()
|
|
226
228
|
}),
|
|
229
|
+
/**
|
|
230
|
+
* The composition's modified time (ISO 8601) after this change. Only present for change/publish events.
|
|
231
|
+
*/
|
|
232
|
+
timestamp: z3.string().optional(),
|
|
227
233
|
initiator: webhookInitiatorSchema
|
|
228
234
|
});
|
|
229
235
|
var CompositionTriggerPayloadSchema = z3.object({
|
|
@@ -506,6 +512,10 @@ var EntryCorePayloadSchema = z4.object({
|
|
|
506
512
|
id: z4.string(),
|
|
507
513
|
url: z4.string()
|
|
508
514
|
}),
|
|
515
|
+
/**
|
|
516
|
+
* The entry's server-of-record modified time (ISO 8601) after this change. Only present for change/publish events.
|
|
517
|
+
*/
|
|
518
|
+
timestamp: z4.string().optional(),
|
|
509
519
|
initiator: webhookInitiatorSchema
|
|
510
520
|
});
|
|
511
521
|
var EntryTriggerPayloadSchema = z4.object({
|
|
@@ -1302,6 +1312,41 @@ var WorkflowTransitionDefinition = definition(
|
|
|
1302
1312
|
}
|
|
1303
1313
|
);
|
|
1304
1314
|
var WorkflowTransitionEventName = WorkflowTransitionDefinition["event"];
|
|
1315
|
+
|
|
1316
|
+
// src/catalog.ts
|
|
1317
|
+
var webhookEventCatalog = {
|
|
1318
|
+
"asset.deleted": AssetDeletedDefinition,
|
|
1319
|
+
"asset.published": AssetPublishedDefinition,
|
|
1320
|
+
"composition.changed": CompositionChangedDefinition,
|
|
1321
|
+
"composition.deleted": CompositionDeletedDefinition,
|
|
1322
|
+
"composition.published": CompositionPublishedDefinition,
|
|
1323
|
+
"composition.release.changed": CompositionReleaseChangedDefinition,
|
|
1324
|
+
"composition.release.deleted": CompositionReleaseDeletedDefinition,
|
|
1325
|
+
"composition.release.published": CompositionReleasePublishedDefinition,
|
|
1326
|
+
"composition.release.restored": CompositionReleaseRestoredDefinition,
|
|
1327
|
+
"entry.changed": EntryChangedDefinition,
|
|
1328
|
+
"entry.deleted": EntryDeletedDefinition,
|
|
1329
|
+
"entry.published": EntryPublishedDefinition,
|
|
1330
|
+
"entry.release.changed": EntryReleaseChangedDefinition,
|
|
1331
|
+
"entry.release.deleted": EntryReleaseDeletedDefinition,
|
|
1332
|
+
"entry.release.published": EntryReleasePublishedDefinition,
|
|
1333
|
+
"entry.release.restored": EntryReleaseRestoredDefinition,
|
|
1334
|
+
"manifest.published": ManifestPublishedDefinition,
|
|
1335
|
+
"projectmap.delete": ProjectMapDeleteDefinition,
|
|
1336
|
+
"projectmap.node.delete": ProjectMapNodeDeleteDefinition,
|
|
1337
|
+
"projectmap.node.insert": ProjectMapNodeInsertDefinition,
|
|
1338
|
+
"projectmap.node.update": ProjectMapNodeUpdateDefinition,
|
|
1339
|
+
"projectmap.update": ProjectMapUpdateDefinition,
|
|
1340
|
+
"redirect.delete": RedirectDeleteDefinition,
|
|
1341
|
+
"redirect.insert": RedirectInsertDefinition,
|
|
1342
|
+
"redirect.update": RedirectUpdateDefinition,
|
|
1343
|
+
"release.changed": ReleaseChangedDefinition,
|
|
1344
|
+
"release.deleted": ReleaseDeletedDefinition,
|
|
1345
|
+
"release.launch_started": ReleaseLaunchStartedDefinition,
|
|
1346
|
+
"release.launched": ReleaseLaunchedDefinition,
|
|
1347
|
+
"workflow.transition": WorkflowTransitionDefinition
|
|
1348
|
+
};
|
|
1349
|
+
var webhookEventNames = Object.keys(webhookEventCatalog);
|
|
1305
1350
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1306
1351
|
0 && (module.exports = {
|
|
1307
1352
|
ArchivedReleaseLaunchStartedDefinition,
|
|
@@ -1383,5 +1428,7 @@ var WorkflowTransitionEventName = WorkflowTransitionDefinition["event"];
|
|
|
1383
1428
|
WorkflowTransitionPayloadSchema,
|
|
1384
1429
|
definition,
|
|
1385
1430
|
isDefinition,
|
|
1431
|
+
webhookEventCatalog,
|
|
1432
|
+
webhookEventNames,
|
|
1386
1433
|
webhookInitiatorSchema
|
|
1387
1434
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -109,6 +109,10 @@ var CompositionCorePayloadSchema = z3.object({
|
|
|
109
109
|
id: z3.string(),
|
|
110
110
|
url: z3.string()
|
|
111
111
|
}),
|
|
112
|
+
/**
|
|
113
|
+
* The composition's modified time (ISO 8601) after this change. Only present for change/publish events.
|
|
114
|
+
*/
|
|
115
|
+
timestamp: z3.string().optional(),
|
|
112
116
|
initiator: webhookInitiatorSchema
|
|
113
117
|
});
|
|
114
118
|
var CompositionTriggerPayloadSchema = z3.object({
|
|
@@ -391,6 +395,10 @@ var EntryCorePayloadSchema = z4.object({
|
|
|
391
395
|
id: z4.string(),
|
|
392
396
|
url: z4.string()
|
|
393
397
|
}),
|
|
398
|
+
/**
|
|
399
|
+
* The entry's server-of-record modified time (ISO 8601) after this change. Only present for change/publish events.
|
|
400
|
+
*/
|
|
401
|
+
timestamp: z4.string().optional(),
|
|
394
402
|
initiator: webhookInitiatorSchema
|
|
395
403
|
});
|
|
396
404
|
var EntryTriggerPayloadSchema = z4.object({
|
|
@@ -1187,6 +1195,41 @@ var WorkflowTransitionDefinition = definition(
|
|
|
1187
1195
|
}
|
|
1188
1196
|
);
|
|
1189
1197
|
var WorkflowTransitionEventName = WorkflowTransitionDefinition["event"];
|
|
1198
|
+
|
|
1199
|
+
// src/catalog.ts
|
|
1200
|
+
var webhookEventCatalog = {
|
|
1201
|
+
"asset.deleted": AssetDeletedDefinition,
|
|
1202
|
+
"asset.published": AssetPublishedDefinition,
|
|
1203
|
+
"composition.changed": CompositionChangedDefinition,
|
|
1204
|
+
"composition.deleted": CompositionDeletedDefinition,
|
|
1205
|
+
"composition.published": CompositionPublishedDefinition,
|
|
1206
|
+
"composition.release.changed": CompositionReleaseChangedDefinition,
|
|
1207
|
+
"composition.release.deleted": CompositionReleaseDeletedDefinition,
|
|
1208
|
+
"composition.release.published": CompositionReleasePublishedDefinition,
|
|
1209
|
+
"composition.release.restored": CompositionReleaseRestoredDefinition,
|
|
1210
|
+
"entry.changed": EntryChangedDefinition,
|
|
1211
|
+
"entry.deleted": EntryDeletedDefinition,
|
|
1212
|
+
"entry.published": EntryPublishedDefinition,
|
|
1213
|
+
"entry.release.changed": EntryReleaseChangedDefinition,
|
|
1214
|
+
"entry.release.deleted": EntryReleaseDeletedDefinition,
|
|
1215
|
+
"entry.release.published": EntryReleasePublishedDefinition,
|
|
1216
|
+
"entry.release.restored": EntryReleaseRestoredDefinition,
|
|
1217
|
+
"manifest.published": ManifestPublishedDefinition,
|
|
1218
|
+
"projectmap.delete": ProjectMapDeleteDefinition,
|
|
1219
|
+
"projectmap.node.delete": ProjectMapNodeDeleteDefinition,
|
|
1220
|
+
"projectmap.node.insert": ProjectMapNodeInsertDefinition,
|
|
1221
|
+
"projectmap.node.update": ProjectMapNodeUpdateDefinition,
|
|
1222
|
+
"projectmap.update": ProjectMapUpdateDefinition,
|
|
1223
|
+
"redirect.delete": RedirectDeleteDefinition,
|
|
1224
|
+
"redirect.insert": RedirectInsertDefinition,
|
|
1225
|
+
"redirect.update": RedirectUpdateDefinition,
|
|
1226
|
+
"release.changed": ReleaseChangedDefinition,
|
|
1227
|
+
"release.deleted": ReleaseDeletedDefinition,
|
|
1228
|
+
"release.launch_started": ReleaseLaunchStartedDefinition,
|
|
1229
|
+
"release.launched": ReleaseLaunchedDefinition,
|
|
1230
|
+
"workflow.transition": WorkflowTransitionDefinition
|
|
1231
|
+
};
|
|
1232
|
+
var webhookEventNames = Object.keys(webhookEventCatalog);
|
|
1190
1233
|
export {
|
|
1191
1234
|
ArchivedReleaseLaunchStartedDefinition,
|
|
1192
1235
|
AssetDeletePayloadSchema,
|
|
@@ -1267,5 +1310,7 @@ export {
|
|
|
1267
1310
|
WorkflowTransitionPayloadSchema,
|
|
1268
1311
|
definition,
|
|
1269
1312
|
isDefinition,
|
|
1313
|
+
webhookEventCatalog,
|
|
1314
|
+
webhookEventNames,
|
|
1270
1315
|
webhookInitiatorSchema
|
|
1271
1316
|
};
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/webhooks",
|
|
3
|
-
"version": "20.50.2-alpha.
|
|
3
|
+
"version": "20.50.2-alpha.167+74e60d5bb7",
|
|
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",
|
|
@@ -28,15 +29,15 @@
|
|
|
28
29
|
"/dist"
|
|
29
30
|
],
|
|
30
31
|
"dependencies": {
|
|
31
|
-
"zod": "4.3
|
|
32
|
+
"zod": "^4.4.3"
|
|
32
33
|
},
|
|
33
34
|
"devDependencies": {
|
|
34
|
-
"dotenv": "^
|
|
35
|
-
"npm-run-all2": "
|
|
36
|
-
"svix": "^1.
|
|
35
|
+
"dotenv": "^17.4.2",
|
|
36
|
+
"npm-run-all2": "9.0.2",
|
|
37
|
+
"svix": "^1.96.0"
|
|
37
38
|
},
|
|
38
39
|
"publishConfig": {
|
|
39
40
|
"access": "public"
|
|
40
41
|
},
|
|
41
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "74e60d5bb79fe1c4d446e4d3e6edf9f08850be4f"
|
|
42
43
|
}
|