Skip to content

Commit 915c441

Browse files
committed
add kind-detail for participants
1 parent a609126 commit 915c441

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

livekit-api/livekit/api/access_token.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ class Claims:
8181
identity: str = ""
8282
name: str = ""
8383
kind: str = ""
84+
kind_detail: str = ""
8485
metadata: str = ""
8586
video: Optional[VideoGrants] = None
8687
sip: Optional[SIPGrants] = None
@@ -104,6 +105,7 @@ def asdict(self) -> dict:
104105

105106
class AccessToken:
106107
ParticipantKind = Literal["standard", "egress", "ingress", "sip", "agent"]
108+
ParticipantKindDetail = Literal["forwarded", "cloud_agent"]
107109

108110
def __init__(
109111
self,
@@ -144,6 +146,10 @@ def with_kind(self, kind: ParticipantKind) -> "AccessToken":
144146
self.claims.kind = kind
145147
return self
146148

149+
def with_kind_detail(self, kind_detail: ParticipantKindDetail) -> "AccessToken":
150+
self.claims.kind_detail = kind_detail
151+
return self
152+
147153
def with_name(self, name: str) -> "AccessToken":
148154
self.claims.name = name
149155
return self

0 commit comments

Comments
 (0)