livekit-api 1.0.2__tar.gz → 1.0.3__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.
- {livekit_api-1.0.2 → livekit_api-1.0.3}/PKG-INFO +5 -2
- livekit_api-1.0.3/README.md +6 -0
- {livekit_api-1.0.2 → livekit_api-1.0.3}/livekit/api/access_token.py +3 -0
- {livekit_api-1.0.2 → livekit_api-1.0.3}/livekit/api/room_service.py +33 -1
- livekit_api-1.0.3/livekit/api/version.py +1 -0
- {livekit_api-1.0.2 → livekit_api-1.0.3}/livekit_api.egg-info/PKG-INFO +5 -2
- {livekit_api-1.0.2 → livekit_api-1.0.3}/livekit_api.egg-info/requires.txt +1 -1
- {livekit_api-1.0.2 → livekit_api-1.0.3}/setup.py +1 -1
- livekit_api-1.0.2/README.md +0 -3
- livekit_api-1.0.2/livekit/api/version.py +0 -1
- {livekit_api-1.0.2 → livekit_api-1.0.3}/livekit/api/__init__.py +0 -0
- {livekit_api-1.0.2 → livekit_api-1.0.3}/livekit/api/_service.py +0 -0
- {livekit_api-1.0.2 → livekit_api-1.0.3}/livekit/api/agent_dispatch_service.py +0 -0
- {livekit_api-1.0.2 → livekit_api-1.0.3}/livekit/api/egress_service.py +0 -0
- {livekit_api-1.0.2 → livekit_api-1.0.3}/livekit/api/ingress_service.py +0 -0
- {livekit_api-1.0.2 → livekit_api-1.0.3}/livekit/api/livekit_api.py +0 -0
- {livekit_api-1.0.2 → livekit_api-1.0.3}/livekit/api/py.typed +0 -0
- {livekit_api-1.0.2 → livekit_api-1.0.3}/livekit/api/sip_service.py +0 -0
- {livekit_api-1.0.2 → livekit_api-1.0.3}/livekit/api/twirp_client.py +0 -0
- {livekit_api-1.0.2 → livekit_api-1.0.3}/livekit/api/webhook.py +0 -0
- {livekit_api-1.0.2 → livekit_api-1.0.3}/livekit_api.egg-info/SOURCES.txt +0 -0
- {livekit_api-1.0.2 → livekit_api-1.0.3}/livekit_api.egg-info/dependency_links.txt +0 -0
- {livekit_api-1.0.2 → livekit_api-1.0.3}/livekit_api.egg-info/top_level.txt +0 -0
- {livekit_api-1.0.2 → livekit_api-1.0.3}/pyproject.toml +0 -0
- {livekit_api-1.0.2 → livekit_api-1.0.3}/setup.cfg +0 -0
- {livekit_api-1.0.2 → livekit_api-1.0.3}/tests/test_access_token.py +0 -0
- {livekit_api-1.0.2 → livekit_api-1.0.3}/tests/test_webhook.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: livekit-api
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.3
|
|
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>=4
|
|
27
27
|
Requires-Dist: types-protobuf>=4
|
|
28
|
-
Requires-Dist: livekit-protocol
|
|
28
|
+
Requires-Dist: livekit-protocol<2.0.0,>=1.0.4
|
|
29
29
|
Dynamic: classifier
|
|
30
30
|
Dynamic: description
|
|
31
31
|
Dynamic: description-content-type
|
|
@@ -40,3 +40,6 @@ Dynamic: summary
|
|
|
40
40
|
# LiveKit Server APIs
|
|
41
41
|
|
|
42
42
|
Access LiveKit server APIs and generate access tokens.
|
|
43
|
+
|
|
44
|
+
See https://docs.livekit.io/reference/server/server-apis for more information.
|
|
45
|
+
|
|
@@ -20,6 +20,8 @@ from livekit.protocol.room import (
|
|
|
20
20
|
UpdateSubscriptionsResponse,
|
|
21
21
|
ForwardParticipantRequest,
|
|
22
22
|
ForwardParticipantResponse,
|
|
23
|
+
MoveParticipantRequest,
|
|
24
|
+
MoveParticipantResponse,
|
|
23
25
|
)
|
|
24
26
|
from livekit.protocol.models import Room, ParticipantInfo
|
|
25
27
|
from ._service import Service
|
|
@@ -215,10 +217,40 @@ class RoomService(Service):
|
|
|
215
217
|
SVC,
|
|
216
218
|
"ForwardParticipant",
|
|
217
219
|
forward,
|
|
218
|
-
self._auth_header(
|
|
220
|
+
self._auth_header(
|
|
221
|
+
VideoGrants(
|
|
222
|
+
room_admin=True, room=forward.room, destination_room=forward.destination_room
|
|
223
|
+
)
|
|
224
|
+
),
|
|
219
225
|
ForwardParticipantResponse,
|
|
220
226
|
)
|
|
221
227
|
|
|
228
|
+
async def move_participant(self, move: MoveParticipantRequest) -> None:
|
|
229
|
+
"""Moves a participant from one room to another.
|
|
230
|
+
|
|
231
|
+
This feature is only available for LiveKit Cloud/Private Cloud.
|
|
232
|
+
|
|
233
|
+
Args:
|
|
234
|
+
move (MoveParticipantRequest): arg containing:
|
|
235
|
+
- room: str - Room name
|
|
236
|
+
- identity: str - Participant identity
|
|
237
|
+
- destination_room: str - Destination room name
|
|
238
|
+
"""
|
|
239
|
+
# currently nothing is returned
|
|
240
|
+
await self._client.request(
|
|
241
|
+
SVC,
|
|
242
|
+
"MoveParticipant",
|
|
243
|
+
move,
|
|
244
|
+
self._auth_header(
|
|
245
|
+
VideoGrants(
|
|
246
|
+
room_admin=True,
|
|
247
|
+
room=move.room,
|
|
248
|
+
destination_room=move.destination_room,
|
|
249
|
+
)
|
|
250
|
+
),
|
|
251
|
+
MoveParticipantResponse,
|
|
252
|
+
)
|
|
253
|
+
|
|
222
254
|
async def mute_published_track(
|
|
223
255
|
self,
|
|
224
256
|
update: MuteRoomTrackRequest,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "1.0.3"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: livekit-api
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.3
|
|
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>=4
|
|
27
27
|
Requires-Dist: types-protobuf>=4
|
|
28
|
-
Requires-Dist: livekit-protocol
|
|
28
|
+
Requires-Dist: livekit-protocol<2.0.0,>=1.0.4
|
|
29
29
|
Dynamic: classifier
|
|
30
30
|
Dynamic: description
|
|
31
31
|
Dynamic: description-content-type
|
|
@@ -40,3 +40,6 @@ Dynamic: summary
|
|
|
40
40
|
# LiveKit Server APIs
|
|
41
41
|
|
|
42
42
|
Access LiveKit server APIs and generate access tokens.
|
|
43
|
+
|
|
44
|
+
See https://docs.livekit.io/reference/server/server-apis for more information.
|
|
45
|
+
|
livekit_api-1.0.2/README.md
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "1.0.2"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|