@automate.ax/integration-contracts 0.111.0 → 0.112.0
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/vercel/index.d.ts +1987 -319
- package/dist/vercel/index.js +145 -1
- package/dist/vercel/schemas.d.ts +2518 -165
- package/dist/vercel/schemas.js +366 -0
- package/package.json +2 -2
- package/src/vercel/index.ts +154 -0
- package/src/vercel/schemas.ts +556 -0
package/dist/vercel/schemas.js
CHANGED
|
@@ -1,11 +1,32 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
export const VERCEL_DEPLOYMENT_EVENT_TYPES = [
|
|
3
|
+
"deployment.check-rerequested",
|
|
4
|
+
"deployment.cleanup",
|
|
3
5
|
"deployment.created",
|
|
4
6
|
"deployment.ready",
|
|
5
7
|
"deployment.succeeded",
|
|
6
8
|
"deployment.error",
|
|
7
9
|
"deployment.canceled",
|
|
8
10
|
"deployment.promoted",
|
|
11
|
+
"deployment.rollback",
|
|
12
|
+
"deployment.integration.action.cancel",
|
|
13
|
+
"deployment.integration.action.cleanup",
|
|
14
|
+
"deployment.integration.action.start",
|
|
15
|
+
];
|
|
16
|
+
export const VERCEL_DOMAIN_EVENT_TYPES = [
|
|
17
|
+
"domain.created",
|
|
18
|
+
"domain.auto-renew-changed",
|
|
19
|
+
"domain.certificate-add",
|
|
20
|
+
"domain.certificate-add-failed",
|
|
21
|
+
"domain.certificate-deleted",
|
|
22
|
+
"domain.certificate-renew",
|
|
23
|
+
"domain.certificate-renew-failed",
|
|
24
|
+
"domain.dns-records-changed",
|
|
25
|
+
"domain.renewal",
|
|
26
|
+
"domain.renewal-failed",
|
|
27
|
+
"domain.transfer-in-completed",
|
|
28
|
+
"domain.transfer-in-failed",
|
|
29
|
+
"domain.transfer-in-started",
|
|
9
30
|
];
|
|
10
31
|
export const VERCEL_PROJECT_EVENT_TYPES = [
|
|
11
32
|
"project.created",
|
|
@@ -31,12 +52,36 @@ export const VERCEL_INTEGRATION_CONFIGURATION_EVENT_TYPES = [
|
|
|
31
52
|
"integration-configuration.scope-change-confirmed",
|
|
32
53
|
"integration-configuration.transferred",
|
|
33
54
|
];
|
|
55
|
+
export const VERCEL_INTEGRATION_RESOURCE_EVENT_TYPES = [
|
|
56
|
+
"integration-resource.project-connected",
|
|
57
|
+
"integration-resource.project-disconnected",
|
|
58
|
+
];
|
|
59
|
+
export const VERCEL_ROLLING_RELEASE_EVENT_TYPES = [
|
|
60
|
+
"project.rolling-release.approved",
|
|
61
|
+
"project.rolling-release.completed",
|
|
62
|
+
"project.rolling-release.aborted",
|
|
63
|
+
"project.rolling-release.started",
|
|
64
|
+
];
|
|
65
|
+
export const VERCEL_FEATURE_FLAG_EVENT_TYPES = [
|
|
66
|
+
"flag.created",
|
|
67
|
+
"flag.updated",
|
|
68
|
+
"flag.deleted",
|
|
69
|
+
"flag.segment.created",
|
|
70
|
+
"flag.segment.updated",
|
|
71
|
+
"flag.segment.deleted",
|
|
72
|
+
];
|
|
73
|
+
export const VERCEL_ALERT_EVENT_TYPES = ["alerts.triggered"];
|
|
34
74
|
export const VERCEL_WEBHOOK_EVENT_TYPES = [
|
|
35
75
|
...VERCEL_DEPLOYMENT_EVENT_TYPES,
|
|
76
|
+
...VERCEL_DOMAIN_EVENT_TYPES,
|
|
36
77
|
...VERCEL_PROJECT_EVENT_TYPES,
|
|
37
78
|
...VERCEL_PROJECT_ENVIRONMENT_VARIABLE_EVENT_TYPES,
|
|
38
79
|
...VERCEL_PROJECT_DOMAIN_EVENT_TYPES,
|
|
39
80
|
...VERCEL_INTEGRATION_CONFIGURATION_EVENT_TYPES,
|
|
81
|
+
...VERCEL_INTEGRATION_RESOURCE_EVENT_TYPES,
|
|
82
|
+
...VERCEL_ROLLING_RELEASE_EVENT_TYPES,
|
|
83
|
+
...VERCEL_FEATURE_FLAG_EVENT_TYPES,
|
|
84
|
+
...VERCEL_ALERT_EVENT_TYPES,
|
|
40
85
|
];
|
|
41
86
|
const VERCEL_TEAM_ACTOR_SCHEMA = z
|
|
42
87
|
.looseObject({
|
|
@@ -205,6 +250,252 @@ const VERCEL_INTEGRATION_CONFIGURATION_TRANSFERRED_EVENT_PAYLOAD_SCHEMA = z
|
|
|
205
250
|
previousTeamId: z.string().nullable(),
|
|
206
251
|
})
|
|
207
252
|
.catchall(z.json());
|
|
253
|
+
const VERCEL_DEPLOYMENT_CHECK_REREQUESTED_EVENT_PAYLOAD_SCHEMA = VERCEL_ACTOR_SCHEMA.extend({
|
|
254
|
+
/** Check that Vercel asked the integration to run again. */
|
|
255
|
+
check: z.looseObject({ id: z.string() }).catchall(z.json()),
|
|
256
|
+
/** Deployment that owns the check. */
|
|
257
|
+
deployment: z.looseObject({ id: z.string() }).catchall(z.json()),
|
|
258
|
+
}).catchall(z.json());
|
|
259
|
+
const VERCEL_DEPLOYMENT_CLEANUP_EVENT_PAYLOAD_SCHEMA = VERCEL_ACTOR_SCHEMA.extend({
|
|
260
|
+
/** Permanently deleted deployment. */
|
|
261
|
+
deployment: VERCEL_DEPLOYMENT_REFERENCE_SCHEMA.extend({
|
|
262
|
+
alias: z.string().array(),
|
|
263
|
+
customEnvironmentId: z.string().optional(),
|
|
264
|
+
meta: z.record(z.string(), z.json()),
|
|
265
|
+
regions: z.string().array(),
|
|
266
|
+
target: z.enum(["production", "staging"]).nullable(),
|
|
267
|
+
}),
|
|
268
|
+
/** Project that owned the deployment. */
|
|
269
|
+
project: VERCEL_PROJECT_REFERENCE_SCHEMA,
|
|
270
|
+
}).catchall(z.json());
|
|
271
|
+
const VERCEL_DEPLOYMENT_ROLLBACK_EVENT_PAYLOAD_SCHEMA = VERCEL_ACTOR_SCHEMA.extend({
|
|
272
|
+
/** Deployment replaced by the rollback. */
|
|
273
|
+
fromDeploymentId: z.string(),
|
|
274
|
+
/** Project whose traffic is being rolled back. */
|
|
275
|
+
project: VERCEL_PROJECT_REFERENCE_SCHEMA,
|
|
276
|
+
/** Deployment restored by the rollback. */
|
|
277
|
+
toDeploymentId: z.string(),
|
|
278
|
+
}).catchall(z.json());
|
|
279
|
+
const VERCEL_DOMAIN_CREATED_EVENT_PAYLOAD_SCHEMA = VERCEL_ACTOR_SCHEMA.extend({
|
|
280
|
+
/** Domain created in the Vercel account. */
|
|
281
|
+
domain: VERCEL_DOMAIN_REFERENCE_SCHEMA.extend({ delegated: z.boolean() }),
|
|
282
|
+
}).catchall(z.json());
|
|
283
|
+
const VERCEL_DOMAIN_AUTO_RENEW_CHANGED_EVENT_PAYLOAD_SCHEMA = VERCEL_ACTOR_SCHEMA.extend({
|
|
284
|
+
/** Domain whose renewal preference changed. */
|
|
285
|
+
domain: VERCEL_DOMAIN_REFERENCE_SCHEMA,
|
|
286
|
+
/** Current auto-renewal setting. */
|
|
287
|
+
next: z.boolean(),
|
|
288
|
+
/** Previous auto-renewal setting. */
|
|
289
|
+
previous: z.boolean(),
|
|
290
|
+
}).catchall(z.json());
|
|
291
|
+
const VERCEL_DOMAIN_CERTIFICATE_EVENT_PAYLOAD_SCHEMA = VERCEL_ACTOR_SCHEMA.extend({
|
|
292
|
+
/** Provider certificate fields supplied by Vercel. */
|
|
293
|
+
cert: z.record(z.string(), z.json()),
|
|
294
|
+
}).catchall(z.json());
|
|
295
|
+
const VERCEL_DOMAIN_CERTIFICATE_FAILED_EVENT_PAYLOAD_SCHEMA = VERCEL_ACTOR_SCHEMA.extend({
|
|
296
|
+
/** DNS names for which the certificate operation failed. */
|
|
297
|
+
dnsNames: z.string().array(),
|
|
298
|
+
}).catchall(z.json());
|
|
299
|
+
const VERCEL_DOMAIN_DNS_RECORDS_CHANGED_EVENT_PAYLOAD_SCHEMA = VERCEL_ACTOR_SCHEMA.extend({
|
|
300
|
+
/** Provider DNS changes. */
|
|
301
|
+
changes: z.json().array(),
|
|
302
|
+
/** DNS zone that changed. */
|
|
303
|
+
zone: z.string(),
|
|
304
|
+
}).catchall(z.json());
|
|
305
|
+
const VERCEL_DOMAIN_RENEWAL_EVENT_PAYLOAD_SCHEMA = VERCEL_ACTOR_SCHEMA.extend({
|
|
306
|
+
/** Renewed domain. */
|
|
307
|
+
domain: VERCEL_DOMAIN_REFERENCE_SCHEMA,
|
|
308
|
+
/** New domain expiration time. */
|
|
309
|
+
expirationDate: z.string(),
|
|
310
|
+
/** Renewal price as a decimal string. */
|
|
311
|
+
price: z.string(),
|
|
312
|
+
/** Time Vercel renewed the domain. */
|
|
313
|
+
renewedAt: z.string(),
|
|
314
|
+
}).catchall(z.json());
|
|
315
|
+
const VERCEL_DOMAIN_RENEWAL_FAILED_EVENT_PAYLOAD_SCHEMA = VERCEL_ACTOR_SCHEMA.extend({
|
|
316
|
+
/** Domain whose renewal failed. */
|
|
317
|
+
domain: VERCEL_DOMAIN_REFERENCE_SCHEMA,
|
|
318
|
+
/** Provider reason for the failure. */
|
|
319
|
+
errorReason: z.string(),
|
|
320
|
+
/** Time the renewal failed. */
|
|
321
|
+
failedAt: z.string(),
|
|
322
|
+
}).catchall(z.json());
|
|
323
|
+
const VERCEL_DOMAIN_TRANSFER_EVENT_PAYLOAD_SCHEMA = VERCEL_ACTOR_SCHEMA.extend({
|
|
324
|
+
/** Domain transferred into the Vercel account. */
|
|
325
|
+
domain: VERCEL_DOMAIN_REFERENCE_SCHEMA,
|
|
326
|
+
}).catchall(z.json());
|
|
327
|
+
const VERCEL_FEATURE_FLAG_REFERENCE_SCHEMA = z
|
|
328
|
+
.looseObject({
|
|
329
|
+
createdAt: z.number(),
|
|
330
|
+
id: z.string(),
|
|
331
|
+
projectId: z.string(),
|
|
332
|
+
slug: z.string(),
|
|
333
|
+
updatedAt: z.number(),
|
|
334
|
+
})
|
|
335
|
+
.catchall(z.json());
|
|
336
|
+
const VERCEL_FEATURE_FLAG_CREATED_EVENT_PAYLOAD_SCHEMA = VERCEL_ACTOR_SCHEMA.extend({
|
|
337
|
+
flag: VERCEL_FEATURE_FLAG_REFERENCE_SCHEMA,
|
|
338
|
+
}).catchall(z.json());
|
|
339
|
+
const VERCEL_FEATURE_FLAG_UPDATED_EVENT_PAYLOAD_SCHEMA = VERCEL_FEATURE_FLAG_CREATED_EVENT_PAYLOAD_SCHEMA.extend({
|
|
340
|
+
patch: z.record(z.string(), z.json()),
|
|
341
|
+
previousFlag: VERCEL_FEATURE_FLAG_REFERENCE_SCHEMA,
|
|
342
|
+
});
|
|
343
|
+
const VERCEL_FEATURE_FLAG_DELETED_EVENT_PAYLOAD_SCHEMA = VERCEL_FEATURE_FLAG_CREATED_EVENT_PAYLOAD_SCHEMA.extend({
|
|
344
|
+
deletedAt: z.number(),
|
|
345
|
+
});
|
|
346
|
+
const VERCEL_FEATURE_FLAG_SEGMENT_REFERENCE_SCHEMA = z
|
|
347
|
+
.looseObject({
|
|
348
|
+
createdAt: z.number(),
|
|
349
|
+
id: z.string(),
|
|
350
|
+
projectId: z.string(),
|
|
351
|
+
slug: z.string(),
|
|
352
|
+
updatedAt: z.number(),
|
|
353
|
+
})
|
|
354
|
+
.catchall(z.json());
|
|
355
|
+
const VERCEL_FEATURE_FLAG_SEGMENT_CREATED_EVENT_PAYLOAD_SCHEMA = VERCEL_ACTOR_SCHEMA.extend({
|
|
356
|
+
segment: VERCEL_FEATURE_FLAG_SEGMENT_REFERENCE_SCHEMA,
|
|
357
|
+
}).catchall(z.json());
|
|
358
|
+
const VERCEL_FEATURE_FLAG_SEGMENT_UPDATED_EVENT_PAYLOAD_SCHEMA = VERCEL_FEATURE_FLAG_SEGMENT_CREATED_EVENT_PAYLOAD_SCHEMA.extend({
|
|
359
|
+
patch: z.record(z.string(), z.json()),
|
|
360
|
+
previousSegment: VERCEL_FEATURE_FLAG_SEGMENT_REFERENCE_SCHEMA,
|
|
361
|
+
});
|
|
362
|
+
const VERCEL_FEATURE_FLAG_SEGMENT_DELETED_EVENT_PAYLOAD_SCHEMA = VERCEL_FEATURE_FLAG_SEGMENT_CREATED_EVENT_PAYLOAD_SCHEMA.extend({
|
|
363
|
+
deletedAt: z.number(),
|
|
364
|
+
});
|
|
365
|
+
const VERCEL_ROLLING_RELEASE_SCHEMA = z
|
|
366
|
+
.looseObject({
|
|
367
|
+
activeStageIndex: z.number().int(),
|
|
368
|
+
config: z
|
|
369
|
+
.looseObject({
|
|
370
|
+
stages: z.json().array(),
|
|
371
|
+
target: z.string(),
|
|
372
|
+
})
|
|
373
|
+
.catchall(z.json()),
|
|
374
|
+
default: z
|
|
375
|
+
.looseObject({
|
|
376
|
+
baseDeploymentId: z.string(),
|
|
377
|
+
targetDeploymentId: z.string(),
|
|
378
|
+
targetPercentage: z.number().optional(),
|
|
379
|
+
targetStartAt: z.number(),
|
|
380
|
+
targetUpdatedAt: z.number(),
|
|
381
|
+
})
|
|
382
|
+
.catchall(z.json()),
|
|
383
|
+
deploymentIds: z.string().array(),
|
|
384
|
+
ownerId: z.string(),
|
|
385
|
+
projectId: z.string(),
|
|
386
|
+
state: z.enum(["ACTIVE", "COMPLETE", "ABORTED"]),
|
|
387
|
+
writtenBy: z.string(),
|
|
388
|
+
})
|
|
389
|
+
.catchall(z.json());
|
|
390
|
+
const VERCEL_ROLLING_RELEASE_EVENT_PAYLOAD_SCHEMA = VERCEL_ACTOR_SCHEMA.extend({
|
|
391
|
+
/** Previous rolling release state, when one existed. */
|
|
392
|
+
prevRollingRelease: VERCEL_ROLLING_RELEASE_SCHEMA.nullable().optional(),
|
|
393
|
+
/** Project running the staged deployment. */
|
|
394
|
+
project: VERCEL_NAMED_PROJECT_REFERENCE_SCHEMA,
|
|
395
|
+
/** Current rolling release state. */
|
|
396
|
+
rollingRelease: VERCEL_ROLLING_RELEASE_SCHEMA,
|
|
397
|
+
}).catchall(z.json());
|
|
398
|
+
const VERCEL_ALERT_TRIGGERED_EVENT_PAYLOAD_SCHEMA = z
|
|
399
|
+
.looseObject({
|
|
400
|
+
/** Alerts included in this anomaly notification. */
|
|
401
|
+
alerts: z
|
|
402
|
+
.looseObject({
|
|
403
|
+
alertId: z.string(),
|
|
404
|
+
average: z.number(),
|
|
405
|
+
count: z.number(),
|
|
406
|
+
formattedValues: z.record(z.string(), z.json()),
|
|
407
|
+
metric: z.string(),
|
|
408
|
+
startedAt: z.string(),
|
|
409
|
+
stddev: z.number(),
|
|
410
|
+
title: z.string(),
|
|
411
|
+
type: z.string(),
|
|
412
|
+
unit: z.string(),
|
|
413
|
+
zscore: z.number(),
|
|
414
|
+
zscoreThreshold: z.number(),
|
|
415
|
+
})
|
|
416
|
+
.catchall(z.json())
|
|
417
|
+
.array(),
|
|
418
|
+
/** Optional identifier shared by related alerts. */
|
|
419
|
+
groupId: z.string().optional(),
|
|
420
|
+
/** Links to the affected Vercel resources. */
|
|
421
|
+
links: z.looseObject({ observability: z.string() }),
|
|
422
|
+
/** Stable Vercel project ID. */
|
|
423
|
+
projectId: z.string(),
|
|
424
|
+
/** Current project slug. */
|
|
425
|
+
projectSlug: z.string(),
|
|
426
|
+
/** Millisecond timestamp when the anomaly started. */
|
|
427
|
+
startedAt: z.number(),
|
|
428
|
+
/** Stable Vercel team ID used to route the webhook. */
|
|
429
|
+
teamId: z.string(),
|
|
430
|
+
/** Current team slug. */
|
|
431
|
+
teamSlug: z.string(),
|
|
432
|
+
})
|
|
433
|
+
.catchall(z.json());
|
|
434
|
+
const VERCEL_DEPLOYMENT_INTEGRATION_ACTION_EVENT_PAYLOAD_SCHEMA = z
|
|
435
|
+
.looseObject({
|
|
436
|
+
/** Integration-defined deployment action slug. */
|
|
437
|
+
action: z.string(),
|
|
438
|
+
/** Integration installation that owns the resource. */
|
|
439
|
+
configuration: z.looseObject({ id: z.string() }),
|
|
440
|
+
/** Deployment affected by the action. */
|
|
441
|
+
deployment: z.looseObject({ id: z.string() }),
|
|
442
|
+
/** Stable integration installation ID. */
|
|
443
|
+
installationId: z.string(),
|
|
444
|
+
/** Stable integration resource ID. */
|
|
445
|
+
resourceId: z.string(),
|
|
446
|
+
})
|
|
447
|
+
.catchall(z.json());
|
|
448
|
+
const VERCEL_INTEGRATION_RESOURCE_PROJECT_EVENT_PAYLOAD_SCHEMA = z
|
|
449
|
+
.looseObject({
|
|
450
|
+
/** Integration installation that owns the resource. */
|
|
451
|
+
configuration: z.looseObject({ id: z.string() }),
|
|
452
|
+
/** Stable integration installation ID. */
|
|
453
|
+
installationId: z.string(),
|
|
454
|
+
/** Project connected to or disconnected from the resource. */
|
|
455
|
+
project: VERCEL_PROJECT_REFERENCE_SCHEMA,
|
|
456
|
+
/** Stable project ID, repeated by Vercel for direct access. */
|
|
457
|
+
projectId: z.string(),
|
|
458
|
+
/** Stable integration resource ID. */
|
|
459
|
+
resourceId: z.string(),
|
|
460
|
+
/** Deployment targets connected to the resource. */
|
|
461
|
+
targets: z.string().array(),
|
|
462
|
+
})
|
|
463
|
+
.catchall(z.json());
|
|
464
|
+
/** Additional current Vercel webhook schemas with exact discriminators. */
|
|
465
|
+
export const VERCEL_ADDITIONAL_EVENT_SCHEMAS = {
|
|
466
|
+
alertTriggered: vercelWebhookEventSchema(z.literal("alerts.triggered"), VERCEL_ALERT_TRIGGERED_EVENT_PAYLOAD_SCHEMA),
|
|
467
|
+
deploymentCheckRerequested: vercelWebhookEventSchema(z.literal("deployment.check-rerequested"), VERCEL_DEPLOYMENT_CHECK_REREQUESTED_EVENT_PAYLOAD_SCHEMA),
|
|
468
|
+
deploymentCleanup: vercelWebhookEventSchema(z.literal("deployment.cleanup"), VERCEL_DEPLOYMENT_CLEANUP_EVENT_PAYLOAD_SCHEMA),
|
|
469
|
+
deploymentIntegrationActionCancel: vercelWebhookEventSchema(z.literal("deployment.integration.action.cancel"), VERCEL_DEPLOYMENT_INTEGRATION_ACTION_EVENT_PAYLOAD_SCHEMA),
|
|
470
|
+
deploymentIntegrationActionCleanup: vercelWebhookEventSchema(z.literal("deployment.integration.action.cleanup"), VERCEL_DEPLOYMENT_INTEGRATION_ACTION_EVENT_PAYLOAD_SCHEMA),
|
|
471
|
+
deploymentIntegrationActionStart: vercelWebhookEventSchema(z.literal("deployment.integration.action.start"), VERCEL_DEPLOYMENT_INTEGRATION_ACTION_EVENT_PAYLOAD_SCHEMA),
|
|
472
|
+
deploymentRollback: vercelWebhookEventSchema(z.literal("deployment.rollback"), VERCEL_DEPLOYMENT_ROLLBACK_EVENT_PAYLOAD_SCHEMA),
|
|
473
|
+
domainAutoRenewChanged: vercelWebhookEventSchema(z.literal("domain.auto-renew-changed"), VERCEL_DOMAIN_AUTO_RENEW_CHANGED_EVENT_PAYLOAD_SCHEMA),
|
|
474
|
+
domainCertificateAdd: vercelWebhookEventSchema(z.literal("domain.certificate-add"), VERCEL_DOMAIN_CERTIFICATE_EVENT_PAYLOAD_SCHEMA),
|
|
475
|
+
domainCertificateAddFailed: vercelWebhookEventSchema(z.literal("domain.certificate-add-failed"), VERCEL_DOMAIN_CERTIFICATE_FAILED_EVENT_PAYLOAD_SCHEMA),
|
|
476
|
+
domainCertificateDeleted: vercelWebhookEventSchema(z.literal("domain.certificate-deleted"), VERCEL_DOMAIN_CERTIFICATE_EVENT_PAYLOAD_SCHEMA),
|
|
477
|
+
domainCertificateRenew: vercelWebhookEventSchema(z.literal("domain.certificate-renew"), VERCEL_DOMAIN_CERTIFICATE_EVENT_PAYLOAD_SCHEMA),
|
|
478
|
+
domainCertificateRenewFailed: vercelWebhookEventSchema(z.literal("domain.certificate-renew-failed"), VERCEL_DOMAIN_CERTIFICATE_FAILED_EVENT_PAYLOAD_SCHEMA),
|
|
479
|
+
domainCreated: vercelWebhookEventSchema(z.literal("domain.created"), VERCEL_DOMAIN_CREATED_EVENT_PAYLOAD_SCHEMA),
|
|
480
|
+
domainDnsRecordsChanged: vercelWebhookEventSchema(z.literal("domain.dns-records-changed"), VERCEL_DOMAIN_DNS_RECORDS_CHANGED_EVENT_PAYLOAD_SCHEMA),
|
|
481
|
+
domainRenewal: vercelWebhookEventSchema(z.literal("domain.renewal"), VERCEL_DOMAIN_RENEWAL_EVENT_PAYLOAD_SCHEMA),
|
|
482
|
+
domainRenewalFailed: vercelWebhookEventSchema(z.literal("domain.renewal-failed"), VERCEL_DOMAIN_RENEWAL_FAILED_EVENT_PAYLOAD_SCHEMA),
|
|
483
|
+
domainTransferInCompleted: vercelWebhookEventSchema(z.literal("domain.transfer-in-completed"), VERCEL_DOMAIN_TRANSFER_EVENT_PAYLOAD_SCHEMA),
|
|
484
|
+
domainTransferInFailed: vercelWebhookEventSchema(z.literal("domain.transfer-in-failed"), VERCEL_DOMAIN_TRANSFER_EVENT_PAYLOAD_SCHEMA),
|
|
485
|
+
domainTransferInStarted: vercelWebhookEventSchema(z.literal("domain.transfer-in-started"), VERCEL_DOMAIN_TRANSFER_EVENT_PAYLOAD_SCHEMA),
|
|
486
|
+
featureFlagCreated: vercelWebhookEventSchema(z.literal("flag.created"), VERCEL_FEATURE_FLAG_CREATED_EVENT_PAYLOAD_SCHEMA),
|
|
487
|
+
featureFlagDeleted: vercelWebhookEventSchema(z.literal("flag.deleted"), VERCEL_FEATURE_FLAG_DELETED_EVENT_PAYLOAD_SCHEMA),
|
|
488
|
+
featureFlagSegmentCreated: vercelWebhookEventSchema(z.literal("flag.segment.created"), VERCEL_FEATURE_FLAG_SEGMENT_CREATED_EVENT_PAYLOAD_SCHEMA),
|
|
489
|
+
featureFlagSegmentDeleted: vercelWebhookEventSchema(z.literal("flag.segment.deleted"), VERCEL_FEATURE_FLAG_SEGMENT_DELETED_EVENT_PAYLOAD_SCHEMA),
|
|
490
|
+
featureFlagSegmentUpdated: vercelWebhookEventSchema(z.literal("flag.segment.updated"), VERCEL_FEATURE_FLAG_SEGMENT_UPDATED_EVENT_PAYLOAD_SCHEMA),
|
|
491
|
+
featureFlagUpdated: vercelWebhookEventSchema(z.literal("flag.updated"), VERCEL_FEATURE_FLAG_UPDATED_EVENT_PAYLOAD_SCHEMA),
|
|
492
|
+
integrationResourceProjectConnected: vercelWebhookEventSchema(z.literal("integration-resource.project-connected"), VERCEL_INTEGRATION_RESOURCE_PROJECT_EVENT_PAYLOAD_SCHEMA),
|
|
493
|
+
integrationResourceProjectDisconnected: vercelWebhookEventSchema(z.literal("integration-resource.project-disconnected"), VERCEL_INTEGRATION_RESOURCE_PROJECT_EVENT_PAYLOAD_SCHEMA),
|
|
494
|
+
rollingReleaseAborted: vercelWebhookEventSchema(z.literal("project.rolling-release.aborted"), VERCEL_ROLLING_RELEASE_EVENT_PAYLOAD_SCHEMA),
|
|
495
|
+
rollingReleaseApproved: vercelWebhookEventSchema(z.literal("project.rolling-release.approved"), VERCEL_ROLLING_RELEASE_EVENT_PAYLOAD_SCHEMA),
|
|
496
|
+
rollingReleaseCompleted: vercelWebhookEventSchema(z.literal("project.rolling-release.completed"), VERCEL_ROLLING_RELEASE_EVENT_PAYLOAD_SCHEMA),
|
|
497
|
+
rollingReleaseStarted: vercelWebhookEventSchema(z.literal("project.rolling-release.started"), VERCEL_ROLLING_RELEASE_EVENT_PAYLOAD_SCHEMA),
|
|
498
|
+
};
|
|
208
499
|
/** Vercel deployment-created webhook. */
|
|
209
500
|
export const VERCEL_DEPLOYMENT_CREATED_EVENT_SCHEMA = vercelWebhookEventSchema(z.literal("deployment.created"), VERCEL_DEPLOYMENT_EVENT_PAYLOAD_SCHEMA);
|
|
210
501
|
/** Vercel deployment-ready webhook. */
|
|
@@ -251,12 +542,34 @@ export const VERCEL_INTEGRATION_CONFIGURATION_SCOPE_CHANGE_CONFIRMED_EVENT_SCHEM
|
|
|
251
542
|
export const VERCEL_INTEGRATION_CONFIGURATION_TRANSFERRED_EVENT_SCHEMA = vercelWebhookEventSchema(z.literal("integration-configuration.transferred"), VERCEL_INTEGRATION_CONFIGURATION_TRANSFERRED_EVENT_PAYLOAD_SCHEMA);
|
|
252
543
|
/** Supported Vercel deployment lifecycle webhook. */
|
|
253
544
|
export const VERCEL_DEPLOYMENT_EVENT_SCHEMA = z.discriminatedUnion("type", [
|
|
545
|
+
VERCEL_ADDITIONAL_EVENT_SCHEMAS.deploymentCheckRerequested,
|
|
546
|
+
VERCEL_ADDITIONAL_EVENT_SCHEMAS.deploymentCleanup,
|
|
254
547
|
VERCEL_DEPLOYMENT_CREATED_EVENT_SCHEMA,
|
|
255
548
|
VERCEL_DEPLOYMENT_READY_EVENT_SCHEMA,
|
|
256
549
|
VERCEL_DEPLOYMENT_SUCCEEDED_EVENT_SCHEMA,
|
|
257
550
|
VERCEL_DEPLOYMENT_FAILED_EVENT_SCHEMA,
|
|
258
551
|
VERCEL_DEPLOYMENT_CANCELED_EVENT_SCHEMA,
|
|
259
552
|
VERCEL_DEPLOYMENT_PROMOTED_EVENT_SCHEMA,
|
|
553
|
+
VERCEL_ADDITIONAL_EVENT_SCHEMAS.deploymentRollback,
|
|
554
|
+
VERCEL_ADDITIONAL_EVENT_SCHEMAS.deploymentIntegrationActionCancel,
|
|
555
|
+
VERCEL_ADDITIONAL_EVENT_SCHEMAS.deploymentIntegrationActionCleanup,
|
|
556
|
+
VERCEL_ADDITIONAL_EVENT_SCHEMAS.deploymentIntegrationActionStart,
|
|
557
|
+
]);
|
|
558
|
+
/** Supported Vercel account-domain webhook. */
|
|
559
|
+
export const VERCEL_DOMAIN_EVENT_SCHEMA = z.discriminatedUnion("type", [
|
|
560
|
+
VERCEL_ADDITIONAL_EVENT_SCHEMAS.domainCreated,
|
|
561
|
+
VERCEL_ADDITIONAL_EVENT_SCHEMAS.domainAutoRenewChanged,
|
|
562
|
+
VERCEL_ADDITIONAL_EVENT_SCHEMAS.domainCertificateAdd,
|
|
563
|
+
VERCEL_ADDITIONAL_EVENT_SCHEMAS.domainCertificateAddFailed,
|
|
564
|
+
VERCEL_ADDITIONAL_EVENT_SCHEMAS.domainCertificateDeleted,
|
|
565
|
+
VERCEL_ADDITIONAL_EVENT_SCHEMAS.domainCertificateRenew,
|
|
566
|
+
VERCEL_ADDITIONAL_EVENT_SCHEMAS.domainCertificateRenewFailed,
|
|
567
|
+
VERCEL_ADDITIONAL_EVENT_SCHEMAS.domainDnsRecordsChanged,
|
|
568
|
+
VERCEL_ADDITIONAL_EVENT_SCHEMAS.domainRenewal,
|
|
569
|
+
VERCEL_ADDITIONAL_EVENT_SCHEMAS.domainRenewalFailed,
|
|
570
|
+
VERCEL_ADDITIONAL_EVENT_SCHEMAS.domainTransferInCompleted,
|
|
571
|
+
VERCEL_ADDITIONAL_EVENT_SCHEMAS.domainTransferInFailed,
|
|
572
|
+
VERCEL_ADDITIONAL_EVENT_SCHEMAS.domainTransferInStarted,
|
|
260
573
|
]);
|
|
261
574
|
/** Supported Vercel project lifecycle webhook. */
|
|
262
575
|
export const VERCEL_PROJECT_EVENT_SCHEMA = z.discriminatedUnion("type", [
|
|
@@ -286,14 +599,54 @@ export const VERCEL_INTEGRATION_CONFIGURATION_EVENT_SCHEMA = z.discriminatedUnio
|
|
|
286
599
|
VERCEL_INTEGRATION_CONFIGURATION_SCOPE_CHANGE_CONFIRMED_EVENT_SCHEMA,
|
|
287
600
|
VERCEL_INTEGRATION_CONFIGURATION_TRANSFERRED_EVENT_SCHEMA,
|
|
288
601
|
]);
|
|
602
|
+
/** Supported Vercel integration-resource webhook. */
|
|
603
|
+
export const VERCEL_INTEGRATION_RESOURCE_EVENT_SCHEMA = z.discriminatedUnion("type", [
|
|
604
|
+
VERCEL_ADDITIONAL_EVENT_SCHEMAS.integrationResourceProjectConnected,
|
|
605
|
+
VERCEL_ADDITIONAL_EVENT_SCHEMAS.integrationResourceProjectDisconnected,
|
|
606
|
+
]);
|
|
607
|
+
/** Supported Vercel rolling-release webhook. */
|
|
608
|
+
export const VERCEL_ROLLING_RELEASE_EVENT_SCHEMA = z.discriminatedUnion("type", [
|
|
609
|
+
VERCEL_ADDITIONAL_EVENT_SCHEMAS.rollingReleaseApproved,
|
|
610
|
+
VERCEL_ADDITIONAL_EVENT_SCHEMAS.rollingReleaseCompleted,
|
|
611
|
+
VERCEL_ADDITIONAL_EVENT_SCHEMAS.rollingReleaseAborted,
|
|
612
|
+
VERCEL_ADDITIONAL_EVENT_SCHEMAS.rollingReleaseStarted,
|
|
613
|
+
]);
|
|
614
|
+
/** Supported Vercel feature-flag webhook. */
|
|
615
|
+
export const VERCEL_FEATURE_FLAG_EVENT_SCHEMA = z.discriminatedUnion("type", [
|
|
616
|
+
VERCEL_ADDITIONAL_EVENT_SCHEMAS.featureFlagCreated,
|
|
617
|
+
VERCEL_ADDITIONAL_EVENT_SCHEMAS.featureFlagUpdated,
|
|
618
|
+
VERCEL_ADDITIONAL_EVENT_SCHEMAS.featureFlagDeleted,
|
|
619
|
+
VERCEL_ADDITIONAL_EVENT_SCHEMAS.featureFlagSegmentCreated,
|
|
620
|
+
VERCEL_ADDITIONAL_EVENT_SCHEMAS.featureFlagSegmentUpdated,
|
|
621
|
+
VERCEL_ADDITIONAL_EVENT_SCHEMAS.featureFlagSegmentDeleted,
|
|
622
|
+
]);
|
|
289
623
|
/** Every Vercel webhook handled by the integration. */
|
|
290
624
|
export const VERCEL_WEBHOOK_EVENT_SCHEMA = z.discriminatedUnion("type", [
|
|
625
|
+
VERCEL_ADDITIONAL_EVENT_SCHEMAS.deploymentCheckRerequested,
|
|
626
|
+
VERCEL_ADDITIONAL_EVENT_SCHEMAS.deploymentCleanup,
|
|
291
627
|
VERCEL_DEPLOYMENT_CREATED_EVENT_SCHEMA,
|
|
292
628
|
VERCEL_DEPLOYMENT_READY_EVENT_SCHEMA,
|
|
293
629
|
VERCEL_DEPLOYMENT_SUCCEEDED_EVENT_SCHEMA,
|
|
294
630
|
VERCEL_DEPLOYMENT_FAILED_EVENT_SCHEMA,
|
|
295
631
|
VERCEL_DEPLOYMENT_CANCELED_EVENT_SCHEMA,
|
|
296
632
|
VERCEL_DEPLOYMENT_PROMOTED_EVENT_SCHEMA,
|
|
633
|
+
VERCEL_ADDITIONAL_EVENT_SCHEMAS.deploymentRollback,
|
|
634
|
+
VERCEL_ADDITIONAL_EVENT_SCHEMAS.deploymentIntegrationActionCancel,
|
|
635
|
+
VERCEL_ADDITIONAL_EVENT_SCHEMAS.deploymentIntegrationActionCleanup,
|
|
636
|
+
VERCEL_ADDITIONAL_EVENT_SCHEMAS.deploymentIntegrationActionStart,
|
|
637
|
+
VERCEL_ADDITIONAL_EVENT_SCHEMAS.domainCreated,
|
|
638
|
+
VERCEL_ADDITIONAL_EVENT_SCHEMAS.domainAutoRenewChanged,
|
|
639
|
+
VERCEL_ADDITIONAL_EVENT_SCHEMAS.domainCertificateAdd,
|
|
640
|
+
VERCEL_ADDITIONAL_EVENT_SCHEMAS.domainCertificateAddFailed,
|
|
641
|
+
VERCEL_ADDITIONAL_EVENT_SCHEMAS.domainCertificateDeleted,
|
|
642
|
+
VERCEL_ADDITIONAL_EVENT_SCHEMAS.domainCertificateRenew,
|
|
643
|
+
VERCEL_ADDITIONAL_EVENT_SCHEMAS.domainCertificateRenewFailed,
|
|
644
|
+
VERCEL_ADDITIONAL_EVENT_SCHEMAS.domainDnsRecordsChanged,
|
|
645
|
+
VERCEL_ADDITIONAL_EVENT_SCHEMAS.domainRenewal,
|
|
646
|
+
VERCEL_ADDITIONAL_EVENT_SCHEMAS.domainRenewalFailed,
|
|
647
|
+
VERCEL_ADDITIONAL_EVENT_SCHEMAS.domainTransferInCompleted,
|
|
648
|
+
VERCEL_ADDITIONAL_EVENT_SCHEMAS.domainTransferInFailed,
|
|
649
|
+
VERCEL_ADDITIONAL_EVENT_SCHEMAS.domainTransferInStarted,
|
|
297
650
|
VERCEL_PROJECT_CREATED_EVENT_SCHEMA,
|
|
298
651
|
VERCEL_PROJECT_REMOVED_EVENT_SCHEMA,
|
|
299
652
|
VERCEL_PROJECT_RENAMED_EVENT_SCHEMA,
|
|
@@ -310,6 +663,19 @@ export const VERCEL_WEBHOOK_EVENT_SCHEMA = z.discriminatedUnion("type", [
|
|
|
310
663
|
VERCEL_INTEGRATION_CONFIGURATION_REMOVED_EVENT_SCHEMA,
|
|
311
664
|
VERCEL_INTEGRATION_CONFIGURATION_SCOPE_CHANGE_CONFIRMED_EVENT_SCHEMA,
|
|
312
665
|
VERCEL_INTEGRATION_CONFIGURATION_TRANSFERRED_EVENT_SCHEMA,
|
|
666
|
+
VERCEL_ADDITIONAL_EVENT_SCHEMAS.integrationResourceProjectConnected,
|
|
667
|
+
VERCEL_ADDITIONAL_EVENT_SCHEMAS.integrationResourceProjectDisconnected,
|
|
668
|
+
VERCEL_ADDITIONAL_EVENT_SCHEMAS.rollingReleaseApproved,
|
|
669
|
+
VERCEL_ADDITIONAL_EVENT_SCHEMAS.rollingReleaseCompleted,
|
|
670
|
+
VERCEL_ADDITIONAL_EVENT_SCHEMAS.rollingReleaseAborted,
|
|
671
|
+
VERCEL_ADDITIONAL_EVENT_SCHEMAS.rollingReleaseStarted,
|
|
672
|
+
VERCEL_ADDITIONAL_EVENT_SCHEMAS.featureFlagCreated,
|
|
673
|
+
VERCEL_ADDITIONAL_EVENT_SCHEMAS.featureFlagUpdated,
|
|
674
|
+
VERCEL_ADDITIONAL_EVENT_SCHEMAS.featureFlagDeleted,
|
|
675
|
+
VERCEL_ADDITIONAL_EVENT_SCHEMAS.featureFlagSegmentCreated,
|
|
676
|
+
VERCEL_ADDITIONAL_EVENT_SCHEMAS.featureFlagSegmentUpdated,
|
|
677
|
+
VERCEL_ADDITIONAL_EVENT_SCHEMAS.featureFlagSegmentDeleted,
|
|
678
|
+
VERCEL_ADDITIONAL_EVENT_SCHEMAS.alertTriggered,
|
|
313
679
|
]);
|
|
314
680
|
/**
|
|
315
681
|
* Creates one typed Vercel webhook envelope schema.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@automate.ax/integration-contracts",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.112.0",
|
|
4
4
|
"description": "Shared integration payload contracts and provider primitives for Automate.ax.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@automate.ax/codec": "0.
|
|
53
|
+
"@automate.ax/codec": "0.112.0",
|
|
54
54
|
"@cfworker/json-schema": "^4.1.1",
|
|
55
55
|
"@googleapis/calendar": "^15.0.0",
|
|
56
56
|
"@googleapis/forms": "^6.0.1",
|
package/src/vercel/index.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as z from "zod"
|
|
2
2
|
import {
|
|
3
|
+
VERCEL_ADDITIONAL_EVENT_SCHEMAS,
|
|
3
4
|
VERCEL_DEPLOYMENT_CANCELED_EVENT_SCHEMA,
|
|
4
5
|
VERCEL_DEPLOYMENT_CREATED_EVENT_SCHEMA,
|
|
5
6
|
VERCEL_DEPLOYMENT_EVENT_SCHEMA,
|
|
@@ -7,11 +8,14 @@ import {
|
|
|
7
8
|
VERCEL_DEPLOYMENT_PROMOTED_EVENT_SCHEMA,
|
|
8
9
|
VERCEL_DEPLOYMENT_READY_EVENT_SCHEMA,
|
|
9
10
|
VERCEL_DEPLOYMENT_SUCCEEDED_EVENT_SCHEMA,
|
|
11
|
+
VERCEL_DOMAIN_EVENT_SCHEMA,
|
|
12
|
+
VERCEL_FEATURE_FLAG_EVENT_SCHEMA,
|
|
10
13
|
VERCEL_INTEGRATION_CONFIGURATION_EVENT_SCHEMA,
|
|
11
14
|
VERCEL_INTEGRATION_CONFIGURATION_PERMISSION_UPGRADED_EVENT_SCHEMA,
|
|
12
15
|
VERCEL_INTEGRATION_CONFIGURATION_REMOVED_EVENT_SCHEMA,
|
|
13
16
|
VERCEL_INTEGRATION_CONFIGURATION_SCOPE_CHANGE_CONFIRMED_EVENT_SCHEMA,
|
|
14
17
|
VERCEL_INTEGRATION_CONFIGURATION_TRANSFERRED_EVENT_SCHEMA,
|
|
18
|
+
VERCEL_INTEGRATION_RESOURCE_EVENT_SCHEMA,
|
|
15
19
|
VERCEL_PROJECT_CREATED_EVENT_SCHEMA,
|
|
16
20
|
VERCEL_PROJECT_DOMAIN_CREATED_EVENT_SCHEMA,
|
|
17
21
|
VERCEL_PROJECT_DOMAIN_DELETED_EVENT_SCHEMA,
|
|
@@ -27,6 +31,7 @@ import {
|
|
|
27
31
|
VERCEL_PROJECT_EVENT_SCHEMA,
|
|
28
32
|
VERCEL_PROJECT_REMOVED_EVENT_SCHEMA,
|
|
29
33
|
VERCEL_PROJECT_RENAMED_EVENT_SCHEMA,
|
|
34
|
+
VERCEL_ROLLING_RELEASE_EVENT_SCHEMA,
|
|
30
35
|
} from "./schemas"
|
|
31
36
|
|
|
32
37
|
export * from "./schemas"
|
|
@@ -38,6 +43,14 @@ export const vercelTriggerContracts = {
|
|
|
38
43
|
configSchema: VERCEL_TRIGGER_CONFIG_SCHEMA,
|
|
39
44
|
eventSchema: VERCEL_DEPLOYMENT_EVENT_SCHEMA,
|
|
40
45
|
},
|
|
46
|
+
"vercel.deployment.checkRerequested": {
|
|
47
|
+
configSchema: VERCEL_TRIGGER_CONFIG_SCHEMA,
|
|
48
|
+
eventSchema: VERCEL_ADDITIONAL_EVENT_SCHEMAS.deploymentCheckRerequested,
|
|
49
|
+
},
|
|
50
|
+
"vercel.deployment.cleanup": {
|
|
51
|
+
configSchema: VERCEL_TRIGGER_CONFIG_SCHEMA,
|
|
52
|
+
eventSchema: VERCEL_ADDITIONAL_EVENT_SCHEMAS.deploymentCleanup,
|
|
53
|
+
},
|
|
41
54
|
"vercel.deployment.canceled": {
|
|
42
55
|
configSchema: VERCEL_TRIGGER_CONFIG_SCHEMA,
|
|
43
56
|
eventSchema: VERCEL_DEPLOYMENT_CANCELED_EVENT_SCHEMA,
|
|
@@ -54,6 +67,25 @@ export const vercelTriggerContracts = {
|
|
|
54
67
|
configSchema: VERCEL_TRIGGER_CONFIG_SCHEMA,
|
|
55
68
|
eventSchema: VERCEL_DEPLOYMENT_PROMOTED_EVENT_SCHEMA,
|
|
56
69
|
},
|
|
70
|
+
"vercel.deployment.rollback": {
|
|
71
|
+
configSchema: VERCEL_TRIGGER_CONFIG_SCHEMA,
|
|
72
|
+
eventSchema: VERCEL_ADDITIONAL_EVENT_SCHEMAS.deploymentRollback,
|
|
73
|
+
},
|
|
74
|
+
"vercel.deployment.integrationActionCancel": {
|
|
75
|
+
configSchema: VERCEL_TRIGGER_CONFIG_SCHEMA,
|
|
76
|
+
eventSchema:
|
|
77
|
+
VERCEL_ADDITIONAL_EVENT_SCHEMAS.deploymentIntegrationActionCancel,
|
|
78
|
+
},
|
|
79
|
+
"vercel.deployment.integrationActionCleanup": {
|
|
80
|
+
configSchema: VERCEL_TRIGGER_CONFIG_SCHEMA,
|
|
81
|
+
eventSchema:
|
|
82
|
+
VERCEL_ADDITIONAL_EVENT_SCHEMAS.deploymentIntegrationActionCleanup,
|
|
83
|
+
},
|
|
84
|
+
"vercel.deployment.integrationActionStart": {
|
|
85
|
+
configSchema: VERCEL_TRIGGER_CONFIG_SCHEMA,
|
|
86
|
+
eventSchema:
|
|
87
|
+
VERCEL_ADDITIONAL_EVENT_SCHEMAS.deploymentIntegrationActionStart,
|
|
88
|
+
},
|
|
57
89
|
"vercel.deployment.ready": {
|
|
58
90
|
configSchema: VERCEL_TRIGGER_CONFIG_SCHEMA,
|
|
59
91
|
eventSchema: VERCEL_DEPLOYMENT_READY_EVENT_SCHEMA,
|
|
@@ -62,6 +94,62 @@ export const vercelTriggerContracts = {
|
|
|
62
94
|
configSchema: VERCEL_TRIGGER_CONFIG_SCHEMA,
|
|
63
95
|
eventSchema: VERCEL_DEPLOYMENT_SUCCEEDED_EVENT_SCHEMA,
|
|
64
96
|
},
|
|
97
|
+
"vercel.domain": {
|
|
98
|
+
configSchema: VERCEL_TRIGGER_CONFIG_SCHEMA,
|
|
99
|
+
eventSchema: VERCEL_DOMAIN_EVENT_SCHEMA,
|
|
100
|
+
},
|
|
101
|
+
"vercel.domain.created": {
|
|
102
|
+
configSchema: VERCEL_TRIGGER_CONFIG_SCHEMA,
|
|
103
|
+
eventSchema: VERCEL_ADDITIONAL_EVENT_SCHEMAS.domainCreated,
|
|
104
|
+
},
|
|
105
|
+
"vercel.domain.autoRenewChanged": {
|
|
106
|
+
configSchema: VERCEL_TRIGGER_CONFIG_SCHEMA,
|
|
107
|
+
eventSchema: VERCEL_ADDITIONAL_EVENT_SCHEMAS.domainAutoRenewChanged,
|
|
108
|
+
},
|
|
109
|
+
"vercel.domain.certificateAdd": {
|
|
110
|
+
configSchema: VERCEL_TRIGGER_CONFIG_SCHEMA,
|
|
111
|
+
eventSchema: VERCEL_ADDITIONAL_EVENT_SCHEMAS.domainCertificateAdd,
|
|
112
|
+
},
|
|
113
|
+
"vercel.domain.certificateAddFailed": {
|
|
114
|
+
configSchema: VERCEL_TRIGGER_CONFIG_SCHEMA,
|
|
115
|
+
eventSchema: VERCEL_ADDITIONAL_EVENT_SCHEMAS.domainCertificateAddFailed,
|
|
116
|
+
},
|
|
117
|
+
"vercel.domain.certificateDeleted": {
|
|
118
|
+
configSchema: VERCEL_TRIGGER_CONFIG_SCHEMA,
|
|
119
|
+
eventSchema: VERCEL_ADDITIONAL_EVENT_SCHEMAS.domainCertificateDeleted,
|
|
120
|
+
},
|
|
121
|
+
"vercel.domain.certificateRenew": {
|
|
122
|
+
configSchema: VERCEL_TRIGGER_CONFIG_SCHEMA,
|
|
123
|
+
eventSchema: VERCEL_ADDITIONAL_EVENT_SCHEMAS.domainCertificateRenew,
|
|
124
|
+
},
|
|
125
|
+
"vercel.domain.certificateRenewFailed": {
|
|
126
|
+
configSchema: VERCEL_TRIGGER_CONFIG_SCHEMA,
|
|
127
|
+
eventSchema: VERCEL_ADDITIONAL_EVENT_SCHEMAS.domainCertificateRenewFailed,
|
|
128
|
+
},
|
|
129
|
+
"vercel.domain.dnsRecordsChanged": {
|
|
130
|
+
configSchema: VERCEL_TRIGGER_CONFIG_SCHEMA,
|
|
131
|
+
eventSchema: VERCEL_ADDITIONAL_EVENT_SCHEMAS.domainDnsRecordsChanged,
|
|
132
|
+
},
|
|
133
|
+
"vercel.domain.renewal": {
|
|
134
|
+
configSchema: VERCEL_TRIGGER_CONFIG_SCHEMA,
|
|
135
|
+
eventSchema: VERCEL_ADDITIONAL_EVENT_SCHEMAS.domainRenewal,
|
|
136
|
+
},
|
|
137
|
+
"vercel.domain.renewalFailed": {
|
|
138
|
+
configSchema: VERCEL_TRIGGER_CONFIG_SCHEMA,
|
|
139
|
+
eventSchema: VERCEL_ADDITIONAL_EVENT_SCHEMAS.domainRenewalFailed,
|
|
140
|
+
},
|
|
141
|
+
"vercel.domain.transferInCompleted": {
|
|
142
|
+
configSchema: VERCEL_TRIGGER_CONFIG_SCHEMA,
|
|
143
|
+
eventSchema: VERCEL_ADDITIONAL_EVENT_SCHEMAS.domainTransferInCompleted,
|
|
144
|
+
},
|
|
145
|
+
"vercel.domain.transferInFailed": {
|
|
146
|
+
configSchema: VERCEL_TRIGGER_CONFIG_SCHEMA,
|
|
147
|
+
eventSchema: VERCEL_ADDITIONAL_EVENT_SCHEMAS.domainTransferInFailed,
|
|
148
|
+
},
|
|
149
|
+
"vercel.domain.transferInStarted": {
|
|
150
|
+
configSchema: VERCEL_TRIGGER_CONFIG_SCHEMA,
|
|
151
|
+
eventSchema: VERCEL_ADDITIONAL_EVENT_SCHEMAS.domainTransferInStarted,
|
|
152
|
+
},
|
|
65
153
|
"vercel.integration-configuration": {
|
|
66
154
|
configSchema: VERCEL_TRIGGER_CONFIG_SCHEMA,
|
|
67
155
|
eventSchema: VERCEL_INTEGRATION_CONFIGURATION_EVENT_SCHEMA,
|
|
@@ -84,6 +172,20 @@ export const vercelTriggerContracts = {
|
|
|
84
172
|
configSchema: VERCEL_TRIGGER_CONFIG_SCHEMA,
|
|
85
173
|
eventSchema: VERCEL_INTEGRATION_CONFIGURATION_TRANSFERRED_EVENT_SCHEMA,
|
|
86
174
|
},
|
|
175
|
+
"vercel.integration-resource": {
|
|
176
|
+
configSchema: VERCEL_TRIGGER_CONFIG_SCHEMA,
|
|
177
|
+
eventSchema: VERCEL_INTEGRATION_RESOURCE_EVENT_SCHEMA,
|
|
178
|
+
},
|
|
179
|
+
"vercel.integration-resource.projectConnected": {
|
|
180
|
+
configSchema: VERCEL_TRIGGER_CONFIG_SCHEMA,
|
|
181
|
+
eventSchema:
|
|
182
|
+
VERCEL_ADDITIONAL_EVENT_SCHEMAS.integrationResourceProjectConnected,
|
|
183
|
+
},
|
|
184
|
+
"vercel.integration-resource.projectDisconnected": {
|
|
185
|
+
configSchema: VERCEL_TRIGGER_CONFIG_SCHEMA,
|
|
186
|
+
eventSchema:
|
|
187
|
+
VERCEL_ADDITIONAL_EVENT_SCHEMAS.integrationResourceProjectDisconnected,
|
|
188
|
+
},
|
|
87
189
|
"vercel.project": {
|
|
88
190
|
configSchema: VERCEL_TRIGGER_CONFIG_SCHEMA,
|
|
89
191
|
eventSchema: VERCEL_PROJECT_EVENT_SCHEMA,
|
|
@@ -144,4 +246,56 @@ export const vercelTriggerContracts = {
|
|
|
144
246
|
configSchema: VERCEL_TRIGGER_CONFIG_SCHEMA,
|
|
145
247
|
eventSchema: VERCEL_PROJECT_RENAMED_EVENT_SCHEMA,
|
|
146
248
|
},
|
|
249
|
+
"vercel.rolling-release": {
|
|
250
|
+
configSchema: VERCEL_TRIGGER_CONFIG_SCHEMA,
|
|
251
|
+
eventSchema: VERCEL_ROLLING_RELEASE_EVENT_SCHEMA,
|
|
252
|
+
},
|
|
253
|
+
"vercel.rolling-release.approved": {
|
|
254
|
+
configSchema: VERCEL_TRIGGER_CONFIG_SCHEMA,
|
|
255
|
+
eventSchema: VERCEL_ADDITIONAL_EVENT_SCHEMAS.rollingReleaseApproved,
|
|
256
|
+
},
|
|
257
|
+
"vercel.rolling-release.completed": {
|
|
258
|
+
configSchema: VERCEL_TRIGGER_CONFIG_SCHEMA,
|
|
259
|
+
eventSchema: VERCEL_ADDITIONAL_EVENT_SCHEMAS.rollingReleaseCompleted,
|
|
260
|
+
},
|
|
261
|
+
"vercel.rolling-release.aborted": {
|
|
262
|
+
configSchema: VERCEL_TRIGGER_CONFIG_SCHEMA,
|
|
263
|
+
eventSchema: VERCEL_ADDITIONAL_EVENT_SCHEMAS.rollingReleaseAborted,
|
|
264
|
+
},
|
|
265
|
+
"vercel.rolling-release.started": {
|
|
266
|
+
configSchema: VERCEL_TRIGGER_CONFIG_SCHEMA,
|
|
267
|
+
eventSchema: VERCEL_ADDITIONAL_EVENT_SCHEMAS.rollingReleaseStarted,
|
|
268
|
+
},
|
|
269
|
+
"vercel.feature-flag": {
|
|
270
|
+
configSchema: VERCEL_TRIGGER_CONFIG_SCHEMA,
|
|
271
|
+
eventSchema: VERCEL_FEATURE_FLAG_EVENT_SCHEMA,
|
|
272
|
+
},
|
|
273
|
+
"vercel.feature-flag.created": {
|
|
274
|
+
configSchema: VERCEL_TRIGGER_CONFIG_SCHEMA,
|
|
275
|
+
eventSchema: VERCEL_ADDITIONAL_EVENT_SCHEMAS.featureFlagCreated,
|
|
276
|
+
},
|
|
277
|
+
"vercel.feature-flag.updated": {
|
|
278
|
+
configSchema: VERCEL_TRIGGER_CONFIG_SCHEMA,
|
|
279
|
+
eventSchema: VERCEL_ADDITIONAL_EVENT_SCHEMAS.featureFlagUpdated,
|
|
280
|
+
},
|
|
281
|
+
"vercel.feature-flag.deleted": {
|
|
282
|
+
configSchema: VERCEL_TRIGGER_CONFIG_SCHEMA,
|
|
283
|
+
eventSchema: VERCEL_ADDITIONAL_EVENT_SCHEMAS.featureFlagDeleted,
|
|
284
|
+
},
|
|
285
|
+
"vercel.feature-flag.segmentCreated": {
|
|
286
|
+
configSchema: VERCEL_TRIGGER_CONFIG_SCHEMA,
|
|
287
|
+
eventSchema: VERCEL_ADDITIONAL_EVENT_SCHEMAS.featureFlagSegmentCreated,
|
|
288
|
+
},
|
|
289
|
+
"vercel.feature-flag.segmentUpdated": {
|
|
290
|
+
configSchema: VERCEL_TRIGGER_CONFIG_SCHEMA,
|
|
291
|
+
eventSchema: VERCEL_ADDITIONAL_EVENT_SCHEMAS.featureFlagSegmentUpdated,
|
|
292
|
+
},
|
|
293
|
+
"vercel.feature-flag.segmentDeleted": {
|
|
294
|
+
configSchema: VERCEL_TRIGGER_CONFIG_SCHEMA,
|
|
295
|
+
eventSchema: VERCEL_ADDITIONAL_EVENT_SCHEMAS.featureFlagSegmentDeleted,
|
|
296
|
+
},
|
|
297
|
+
"vercel.alert.triggered": {
|
|
298
|
+
configSchema: VERCEL_TRIGGER_CONFIG_SCHEMA,
|
|
299
|
+
eventSchema: VERCEL_ADDITIONAL_EVENT_SCHEMAS.alertTriggered,
|
|
300
|
+
},
|
|
147
301
|
} as const
|