Skip to content

buildControlPlaneEvent

buildControlPlaneEvent(eventType, payload?): ControlPlaneEmitInput

Build the (eventName, properties) pair for a control-plane semantic event, stamping the canonical source classification onto the payload.

Pure — used both by the browser SDK’s RevTurbineCustomerSdk.trackControlPlaneEvent and by server/CLI emitters that POST the same shape to the ingest endpoint.

"web_signed_up" | "web_signed_in" | "cli_signed_up" | "cli_signed_in" | "cli_command_executed" | "changeset_submitted" | "changeset_approved" | "changeset_rejected" | "changeset_deployed" | "changeset_launched" | "changeset_parked" | "changeset_resumed" | "changeset_discarded" | "changeset_archived" | "config_imported" | "config_exported" | "entity_created" | "entity_updated" | "entity_deleted"

A canonical control-plane event type.

Record<string, JsonValue> = {}

Optional event-specific properties (e.g. { resource, resource_id }).

ControlPlaneEmitInput

The emit input to hand to the SDK’s capture path.