LiveKit.Grants (LiveKit v0.1.1)

View Source

Defines the structure and types for LiveKit access token grants.

Summary

Functions

Creates a new grant for ingress administration.

Creates a new grant for room administration.

Creates a new grant for room creation.

Creates a new grant for room recording.

Types

t()

@type t() :: %LiveKit.Grants{
  ingress_admin: boolean(),
  room: String.t() | nil,
  room_admin: boolean(),
  room_create: boolean(),
  room_join: boolean(),
  room_list: boolean(),
  room_record: boolean()
}

Functions

ingress_admin()

Creates a new grant for ingress administration.

join_room(room_name, can_publish \\ true, can_subscribe \\ true)

Creates a new grant for joining a room.

room_admin()

Creates a new grant for room administration.

room_create()

Creates a new grant for room creation.

room_record()

Creates a new grant for room recording.