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" | "playbook_version_submitted" | "playbook_version_approved" | "playbook_version_rejected" | "playbook_version_deployed" | "playbook_version_launched" | "playbook_version_parked" | "playbook_version_resumed" | "playbook_version_discarded" | "playbook_version_archived" | "playbook_imported" | "playbook_exported" | "entity_created" | "entity_updated" | "entity_deleted" | "web_api_error"

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.