diff --git a/livekit-api/livekit/api/access_token.py b/livekit-api/livekit/api/access_token.py index 1fd06b03..11bdddd9 100644 --- a/livekit-api/livekit/api/access_token.py +++ b/livekit-api/livekit/api/access_token.py @@ -80,6 +80,7 @@ class Claims: attributes: dict[str, str] = dataclasses.field(default_factory=dict) metadata: str = "" sha256: str = "" + kind: str = "" class AccessToken: @@ -117,6 +118,10 @@ def with_sip_grants(self, grants: SIPGrants) -> "AccessToken": def with_identity(self, identity: str) -> "AccessToken": self.identity = identity return self + + def with_kind(self, kind: str) -> "AccessToken": + self.claims.kind = kind + return self def with_name(self, name: str) -> "AccessToken": self.claims.name = name