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.
Parameters
Section titled “Parameters”eventType
Section titled “eventType”"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.
payload?
Section titled “payload?”Record<string, JsonValue> = {}
Optional event-specific properties (e.g. { resource, resource_id }).
Returns
Section titled “Returns”The emit input to hand to the SDK’s capture path.