livekit-api 0.7.0__tar.gz → 0.7.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (25) hide show
  1. {livekit_api-0.7.0 → livekit_api-0.7.1}/PKG-INFO +2 -2
  2. {livekit_api-0.7.0 → livekit_api-0.7.1}/livekit/api/access_token.py +8 -1
  3. livekit_api-0.7.1/livekit/api/version.py +1 -0
  4. {livekit_api-0.7.0 → livekit_api-0.7.1}/livekit_api.egg-info/PKG-INFO +2 -2
  5. {livekit_api-0.7.0 → livekit_api-0.7.1}/livekit_api.egg-info/requires.txt +1 -1
  6. {livekit_api-0.7.0 → livekit_api-0.7.1}/setup.py +1 -1
  7. livekit_api-0.7.0/livekit/api/version.py +0 -1
  8. {livekit_api-0.7.0 → livekit_api-0.7.1}/README.md +0 -0
  9. {livekit_api-0.7.0 → livekit_api-0.7.1}/livekit/api/__init__.py +0 -0
  10. {livekit_api-0.7.0 → livekit_api-0.7.1}/livekit/api/_service.py +0 -0
  11. {livekit_api-0.7.0 → livekit_api-0.7.1}/livekit/api/egress_service.py +0 -0
  12. {livekit_api-0.7.0 → livekit_api-0.7.1}/livekit/api/ingress_service.py +0 -0
  13. {livekit_api-0.7.0 → livekit_api-0.7.1}/livekit/api/livekit_api.py +0 -0
  14. {livekit_api-0.7.0 → livekit_api-0.7.1}/livekit/api/py.typed +0 -0
  15. {livekit_api-0.7.0 → livekit_api-0.7.1}/livekit/api/room_service.py +0 -0
  16. {livekit_api-0.7.0 → livekit_api-0.7.1}/livekit/api/sip_service.py +0 -0
  17. {livekit_api-0.7.0 → livekit_api-0.7.1}/livekit/api/twirp_client.py +0 -0
  18. {livekit_api-0.7.0 → livekit_api-0.7.1}/livekit/api/webhook.py +0 -0
  19. {livekit_api-0.7.0 → livekit_api-0.7.1}/livekit_api.egg-info/SOURCES.txt +0 -0
  20. {livekit_api-0.7.0 → livekit_api-0.7.1}/livekit_api.egg-info/dependency_links.txt +0 -0
  21. {livekit_api-0.7.0 → livekit_api-0.7.1}/livekit_api.egg-info/top_level.txt +0 -0
  22. {livekit_api-0.7.0 → livekit_api-0.7.1}/pyproject.toml +0 -0
  23. {livekit_api-0.7.0 → livekit_api-0.7.1}/setup.cfg +0 -0
  24. {livekit_api-0.7.0 → livekit_api-0.7.1}/tests/test_access_token.py +0 -0
  25. {livekit_api-0.7.0 → livekit_api-0.7.1}/tests/test_webhook.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: livekit-api
3
- Version: 0.7.0
3
+ Version: 0.7.1
4
4
  Summary: Python Server API for LiveKit
5
5
  Home-page: https://github.com/livekit/python-sdks
6
6
  License: Apache-2.0
@@ -25,7 +25,7 @@ Requires-Dist: pyjwt>=2.0.0
25
25
  Requires-Dist: aiohttp>=3.9.0
26
26
  Requires-Dist: protobuf>=3
27
27
  Requires-Dist: types-protobuf<5,>=4
28
- Requires-Dist: livekit-protocol<2,>=0.5.1
28
+ Requires-Dist: livekit-protocol<2,>=0.6.0
29
29
 
30
30
  # LiveKit Server APIs
31
31
 
@@ -18,7 +18,7 @@ import re
18
18
  import datetime
19
19
  import os
20
20
  import jwt
21
- from typing import Optional, List
21
+ from typing import Optional, List, Literal
22
22
 
23
23
  DEFAULT_TTL = datetime.timedelta(hours=6)
24
24
  DEFAULT_LEEWAY = datetime.timedelta(minutes=1)
@@ -80,9 +80,12 @@ class Claims:
80
80
  attributes: dict[str, str] = dataclasses.field(default_factory=dict)
81
81
  metadata: str = ""
82
82
  sha256: str = ""
83
+ kind: str = ""
83
84
 
84
85
 
85
86
  class AccessToken:
87
+ ParticipantKind = Literal["standard", "egress", "ingress", "sip", "agent"]
88
+
86
89
  def __init__(
87
90
  self,
88
91
  api_key: Optional[str] = None,
@@ -118,6 +121,10 @@ class AccessToken:
118
121
  self.identity = identity
119
122
  return self
120
123
 
124
+ def with_kind(self, kind: ParticipantKind) -> "AccessToken":
125
+ self.claims.kind = kind
126
+ return self
127
+
121
128
  def with_name(self, name: str) -> "AccessToken":
122
129
  self.claims.name = name
123
130
  return self
@@ -0,0 +1 @@
1
+ __version__ = "0.7.1"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: livekit-api
3
- Version: 0.7.0
3
+ Version: 0.7.1
4
4
  Summary: Python Server API for LiveKit
5
5
  Home-page: https://github.com/livekit/python-sdks
6
6
  License: Apache-2.0
@@ -25,7 +25,7 @@ Requires-Dist: pyjwt>=2.0.0
25
25
  Requires-Dist: aiohttp>=3.9.0
26
26
  Requires-Dist: protobuf>=3
27
27
  Requires-Dist: types-protobuf<5,>=4
28
- Requires-Dist: livekit-protocol<2,>=0.5.1
28
+ Requires-Dist: livekit-protocol<2,>=0.6.0
29
29
 
30
30
  # LiveKit Server APIs
31
31
 
@@ -2,4 +2,4 @@ pyjwt>=2.0.0
2
2
  aiohttp>=3.9.0
3
3
  protobuf>=3
4
4
  types-protobuf<5,>=4
5
- livekit-protocol<2,>=0.5.1
5
+ livekit-protocol<2,>=0.6.0
@@ -53,7 +53,7 @@ setuptools.setup(
53
53
  "aiohttp>=3.9.0",
54
54
  "protobuf>=3",
55
55
  "types-protobuf>=4,<5",
56
- "livekit-protocol>=0.5.1,<2",
56
+ "livekit-protocol>=0.6.0,<2",
57
57
  ],
58
58
  package_data={
59
59
  "livekit.api": ["py.typed", "*.pyi", "**/*.pyi"],
@@ -1 +0,0 @@
1
- __version__ = "0.7.0"
File without changes
File without changes
File without changes