Optionalconfig: Partial<LiveKitServerConfig>Explicit credentials; any omitted field falls back to the corresponding environment
variable (LIVEKIT_URL, LIVEKIT_API_KEY, LIVEKIT_API_SECRET).
Whether the service has the credentials needed to mint tokens.
The configured server URL (for callers that need to return it to clients).
Throws a clear error when credentials are missing. Public so a caller that must fail before doing costly work (the room coordinator, before it opens a model session) gets the same error minting would.
Mints a token for the AGENT bot (publish + subscribe + data, agent role metadata so the UI badges
it correctly, and leave to update its own attributes, so it can say when its avatar was taken down). The bridge
passes this in its session Configuration.AccessToken.
The room to join.
The bot identity.
OptionaldisplayName: stringThe bot display name.
Optionalattributes: Record<string, string>Participant attributes the bot carries from the moment it joins (e.g. mj.agentWatches).
Mints a token for a HUMAN participant (publish + subscribe + data, participant role).
The room to join.
The participant identity.
OptionaldisplayName: stringThe display name.
OptionalttlSeconds: numberOptional token lifetime.
Mints an access token for the given parameters.
The token parameters (room, identity, grants, role).
The minted token + connection coordinates.
Mints scoped LiveKit access tokens. Stateless apart from its resolved credentials.