Home > @uniformdev/webhooks

webhooks package

Functions

Function

Description

definition(options, example)

isDefinition(obj)

Variables

Variable

Description

ArchivedReleaseLaunchStartedDefinition

AssetDeletedDefinition

AssetDeletedEventName

AssetDeletePayloadSchema

AssetPayloadSchema

AssetPublishedDefinition

AssetPublishedEventName

ComponentDefinitionChangedDefinition

ComponentDefinitionChangedEventName

ComponentDefinitionDeletedDefinition

ComponentDefinitionDeletedEventName

ComponentDefinitionDeletePayloadSchema

ComponentDefinitionPayloadSchema

CompositionChangedDefinition

CompositionChangedEventName

CompositionDeletedDefinition

CompositionDeletedEventName

CompositionDeletePayloadSchema

CompositionPayloadSchema

CompositionPublishedDefinition

CompositionPublishedEventName

CompositionReleaseChangedDefinition

CompositionReleaseChangedEventName

CompositionReleaseDeletedDefinition

CompositionReleaseDeletedEventName

CompositionReleasePublishedDefinition

CompositionReleasePublishedEventName

CompositionReleaseRestoredDefinition

CompositionReleaseRestoredEventName

CompositionRestorePayloadSchema

CompositionTriggerPayloadSchema

ContentTypeChangedDefinition

ContentTypeChangedEventName

ContentTypeDeletedDefinition

ContentTypeDeletedEventName

ContentTypeDeletePayloadSchema

ContentTypePayloadSchema

DataSourceChangedDefinition

DataSourceChangedEventName

DataSourceDeletedDefinition

DataSourceDeletedEventName

DataSourceDeletePayloadSchema

connectorType is optional here alone: the delete mutation's returning row is the only source for it, and a subscriber should be able to tell "we could not read it" from a real value rather than being handed an empty string.

DataSourcePayloadSchema

No edit_url: data sources are edited inside a per-integration page, so there is no stable per-entity dashboard route to link to.

DataTypeChangedDefinition

DataTypeChangedEventName

DataTypeDeletedDefinition

DataTypeDeletedEventName

DataTypeDeletePayloadSchema

dataSourceId is optional here alone: it comes from the pre-delete read, and a subscriber should be able to tell "we could not read it" from a real value rather than being handed an empty string.

DataTypePayloadSchema

No edit_url: the data types dashboard is a list rather than a per-entity route, and a URL that resolves to a list is less useful than none.

api_url is project-scoped rather than entity-scoped because GET /api/v1/data-types takes only projectId — it is still the endpoint this data type is read from.

EntryChangedDefinition

EntryChangedEventName

EntryDeletedDefinition

EntryDeletedEventName

EntryDeletePayloadSchema

EntryPayloadSchema

EntryPublishedDefinition

EntryPublishedEventName

EntryReleaseChangedDefinition

EntryReleaseChangedEventName

EntryReleaseDeletedDefinition

EntryReleaseDeletedEventName

EntryReleasePublishedDefinition

EntryReleasePublishedEventName

EntryReleaseRestoredDefinition

EntryReleaseRestoredEventName

EntryRestorePayloadSchema

EntryTriggerPayloadSchema

LocaleChangedDefinition

LocaleChangedEventName

LocaleDeletedDefinition

LocaleDeletedEventName

LocaleDeletePayloadSchema

LocalePayloadSchema

api_url is project-scoped rather than entity-scoped because GET /api/v1/locales takes only projectId — it is still the endpoint this locale is read from.

ManifestPublishedDefinition

ManifestPublishedEventName

NotificationCreatedDefinition

NotificationCreatedEventName

NotificationEntitySchema

NotificationPayloadSchema

NotificationSummarySchema

ProjectMapDeleteDefinition

ProjectMapDeletedEventName

ProjectMapNodeDeleteDefinition

ProjectMapNodeDeletedEventName

ProjectMapNodeInsertDefinition

ProjectMapNodeInsertedEventName

ProjectMapNodeUpdateDefinition

ProjectMapNodeUpdatedEventName

ProjectMapUpdateDefinition

ProjectMapUpdatedEventName

RedirectDeleteDefinition

RedirectDeletedEventName

RedirectInsertDefinition

RedirectInsertedEventName

RedirectUpdateDefinition

RedirectUpdatedEventName

ReleaseChangedDefinition

ReleaseChangedEventName

ReleaseCompositionPayloadSchema

ReleaseDeletedDefinition

ReleaseDeletedEventName

ReleaseEntryPayloadSchema

ReleaseLaunchedDefinition

ReleaseLaunchedEventName

ReleaseLaunchStartedDefinition

ReleaseLaunchStartedEventName

ReleasePayloadSchema

webhookEventCatalog

Canonical catalog of internal webhook events, keyed by event name. Each entry is the event's Definition (display name, description, and Zod payload schema).

This is the single source of truth for webhook event names and their payload shapes across the platform: webhook delivery, the dashboard event picker, and Automations that trigger on these events all derive from it. Archived events are intentionally excluded — they are not selectable as triggers.

webhookEventNames

All webhook event names, as a runtime array (catalog key order).

webhookInitiatorSchema

WorkflowDefinitionChangedDefinition

WorkflowDefinitionChangedEventName

WorkflowDefinitionDeletedDefinition

WorkflowDefinitionDeletedEventName

WorkflowDefinitionDeletePayloadSchema

WorkflowDefinitionPayloadSchema

WorkflowEntitySchema

WorkflowReferenceSchema

WorkflowTransitionDefinition

WorkflowTransitionEventName

WorkflowTransitionPayloadSchema

Type Aliases

Type Alias

Description

AssetDeletedPayload

AssetPayload

AssetPublishedPayload

ComponentDefinitionChangedPayload

ComponentDefinitionDeletedPayload

ComponentDefinitionPayload

CompositionChangedPayload

CompositionDeletedPayload

CompositionPayload

CompositionPublishedPayload

CompositionReleaseChangedPayload

CompositionReleaseDeletedPayload

CompositionReleasePublishedPayload

CompositionReleaseRestoredPayload

ContentTypeChangedPayload

ContentTypeDeletedPayload

ContentTypePayload

DataSourceChangedPayload

DataSourceDeletedPayload

DataSourcePayload

DataTypeChangedPayload

DataTypeDeletedPayload

DataTypePayload

Definition

EntryChangedPayload

EntryDeletedPayload

EntryPayload

EntryPublishedPayload

EntryReleaseChangedPayload

EntryReleaseDeletedPayload

EntryReleasePublishedPayload

EntryReleaseRestoredPayload

LocaleChangedPayload

LocaleDeletedPayload

LocalePayload

ManifestPublishedPayload

NotificationCreatedPayload

NotificationPayload

ProjectMapDeletedPayload

ProjectMapNodeDeletedPayload

ProjectMapNodeInsertedPayload

ProjectMapNodeUpdatedPayload

ProjectMapUpdatedPayload

RedirectDeletedPayload

RedirectInsertedPayload

RedirectUpdatedPayload

ReleaseChangedPayload

ReleaseCompositionPayload

ReleaseDeletedPayload

ReleaseEntryPayload

ReleaseLaunchedPayload

ReleaseLaunchStartedPayload

ReleasePayload

WebhookEventName

Any valid internal webhook event name from the webhookEventCatalog.

WebhookInitiator

WebhookPayload

Any payload the catalog can deliver, as a discriminated union on eventType.

Every definition's schema carries eventType as a literal, so assigning an object literal to this type checks it against the one member its own eventType selects — a payload cannot be paired with the wrong event.

WebhookPayloadFor

The payload type delivered for a given webhook event name.

WorkflowDefinitionChangedPayload

WorkflowDefinitionDeletedPayload

WorkflowDefinitionPayload

WorkflowTransitionPayload