Permissions and webhook events
Import the supported literal values from the Node SDK.
On this page
Import
import { participantPermissions, webhookEventTypes } from '@relayrtc/node'Participant permissions
const permissions = [
'room:join',
'audio:publish',
'video:publish',
'screen:publish',
'messages:send',
'metadata:update',
] as constThe exported participantPermissions array contains these values. Tokens must include room:join. Grant only what the caller needs.
Webhook events
The matching API and SDK contracts include the following 77 subscription event types. Use a package release that exports the events your endpoint subscribes to; published packages can lag the API.
const events = [
'stream.guest.invited',
'stream.guest.invite_accepted',
'stream.guest.invite_declined',
'stream.guest.requested',
'stream.guest.request_approved',
'stream.guest.request_rejected',
'stream.guest.joined',
'stream.guest.left',
'stream.guest.removed',
'stream.guest.muted',
'stream.guest.invite_expired',
'stream.guest.invite_cancelled',
'stream.guest.grant_revoked',
'dvr.enabled',
'dvr.window_changed',
'dvr.segment_evicted',
'dvr.disabled',
'mixer.started',
'mixer.scene_activated',
'mixer.source_lost',
'mixer.overloaded',
'mixer.stopped',
'mixer.failed',
'clip.requested',
'clip.rendering',
'clip.ready',
'clip.failed',
'clip.deleted',
'restream.probing',
'restream.source_connected',
'restream.source_lost',
'restream.recovering',
'restream.stopped',
'restream.failed',
'schedule.created',
'schedule.updated',
'schedule.starting',
'schedule.started',
'schedule.missed',
'schedule.cancelled',
'schedule.failed',
'schedule.completed',
'schedule.reminder',
'recording.started',
'recording.segment_committed',
'recording.finalizing',
'recording.ready',
'recording.failed',
'recording.deleted',
'destination.created',
'destination.connected',
'destination.disconnected',
'destination.retrying',
'destination.failed',
'broadcast.created',
'broadcast.starting',
'broadcast.live',
'broadcast.reconnecting',
'broadcast.output_degraded',
'broadcast.stopped',
'broadcast.failed',
'stream.created',
'stream.starting',
'stream.live',
'stream.reconnecting',
'stream.ended',
'stream.failed',
'room.created',
'room.started',
'room.ended',
'participant.joined',
'participant.left',
'participant.reconnected',
'track.published',
'track.unpublished',
'connection.degraded',
'connection.recovered',
] as constThe exported webhookEventTypes array contains these values. Endpoint subscriptions must be nonempty and unique. The API validates the requested types; a subscription does not itself start a recording, schedule or other resource.
See the event envelope and families for the REST catalog. The SDK also exports ParticipantPermission and WebhookEventType types.
Matching SDK builds also export recordingEventTypes and scheduleEventTypes as runtime arrays from the package root. They contain the recording and scheduled-broadcast subsets of this catalog.