dtelecom-server-sdk 0.1.0__py3-none-any.whl
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.
- dtelecom_server/__init__.py +43 -0
- dtelecom_server/_typing/livekit_egress_pb2.pyi +473 -0
- dtelecom_server/_typing/livekit_ingress_pb2.pyi +213 -0
- dtelecom_server/_typing/livekit_models_pb2.pyi +524 -0
- dtelecom_server/_typing/livekit_room_pb2.pyi +154 -0
- dtelecom_server/_typing/livekit_webhook_pb2.pyi +28 -0
- dtelecom_server/client.py +159 -0
- dtelecom_server/http.py +112 -0
- dtelecom_server/models.py +250 -0
- dtelecom_server/moderation.py +84 -0
- dtelecom_server/protocol/LICENSE +202 -0
- dtelecom_server/protocol/NOTICE +1 -0
- dtelecom_server/protocol/__init__.py +25 -0
- dtelecom_server/protocol/wire.pb +0 -0
- dtelecom_server/py.typed +0 -0
- dtelecom_server/room.py +298 -0
- dtelecom_server/services.py +273 -0
- dtelecom_server/speech.py +642 -0
- dtelecom_server/webhooks.py +148 -0
- dtelecom_server/wire.py +32 -0
- dtelecom_server_sdk-0.1.0.dist-info/METADATA +78 -0
- dtelecom_server_sdk-0.1.0.dist-info/RECORD +25 -0
- dtelecom_server_sdk-0.1.0.dist-info/WHEEL +4 -0
- dtelecom_server_sdk-0.1.0.dist-info/licenses/LICENSE +201 -0
- dtelecom_server_sdk-0.1.0.dist-info/licenses/NOTICE +9 -0
|
@@ -0,0 +1,524 @@
|
|
|
1
|
+
from google.protobuf import timestamp_pb2 as _timestamp_pb2
|
|
2
|
+
from google.protobuf.internal import containers as _containers
|
|
3
|
+
from google.protobuf.internal import enum_type_wrapper as _enum_type_wrapper
|
|
4
|
+
from google.protobuf import descriptor as _descriptor
|
|
5
|
+
from google.protobuf import message as _message
|
|
6
|
+
from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
|
7
|
+
|
|
8
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
9
|
+
|
|
10
|
+
class AudioCodec(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
11
|
+
__slots__ = ()
|
|
12
|
+
DEFAULT_AC: _ClassVar[AudioCodec]
|
|
13
|
+
OPUS: _ClassVar[AudioCodec]
|
|
14
|
+
AAC: _ClassVar[AudioCodec]
|
|
15
|
+
|
|
16
|
+
class VideoCodec(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
17
|
+
__slots__ = ()
|
|
18
|
+
DEFAULT_VC: _ClassVar[VideoCodec]
|
|
19
|
+
H264_BASELINE: _ClassVar[VideoCodec]
|
|
20
|
+
H264_MAIN: _ClassVar[VideoCodec]
|
|
21
|
+
H264_HIGH: _ClassVar[VideoCodec]
|
|
22
|
+
VP8: _ClassVar[VideoCodec]
|
|
23
|
+
|
|
24
|
+
class TrackType(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
25
|
+
__slots__ = ()
|
|
26
|
+
AUDIO: _ClassVar[TrackType]
|
|
27
|
+
VIDEO: _ClassVar[TrackType]
|
|
28
|
+
DATA: _ClassVar[TrackType]
|
|
29
|
+
|
|
30
|
+
class TrackSource(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
31
|
+
__slots__ = ()
|
|
32
|
+
UNKNOWN: _ClassVar[TrackSource]
|
|
33
|
+
CAMERA: _ClassVar[TrackSource]
|
|
34
|
+
MICROPHONE: _ClassVar[TrackSource]
|
|
35
|
+
SCREEN_SHARE: _ClassVar[TrackSource]
|
|
36
|
+
SCREEN_SHARE_AUDIO: _ClassVar[TrackSource]
|
|
37
|
+
|
|
38
|
+
class VideoQuality(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
39
|
+
__slots__ = ()
|
|
40
|
+
LOW: _ClassVar[VideoQuality]
|
|
41
|
+
MEDIUM: _ClassVar[VideoQuality]
|
|
42
|
+
HIGH: _ClassVar[VideoQuality]
|
|
43
|
+
OFF: _ClassVar[VideoQuality]
|
|
44
|
+
|
|
45
|
+
class ConnectionQuality(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
46
|
+
__slots__ = ()
|
|
47
|
+
POOR: _ClassVar[ConnectionQuality]
|
|
48
|
+
GOOD: _ClassVar[ConnectionQuality]
|
|
49
|
+
EXCELLENT: _ClassVar[ConnectionQuality]
|
|
50
|
+
|
|
51
|
+
class ClientConfigSetting(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
52
|
+
__slots__ = ()
|
|
53
|
+
UNSET: _ClassVar[ClientConfigSetting]
|
|
54
|
+
DISABLED: _ClassVar[ClientConfigSetting]
|
|
55
|
+
ENABLED: _ClassVar[ClientConfigSetting]
|
|
56
|
+
|
|
57
|
+
class DisconnectReason(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
58
|
+
__slots__ = ()
|
|
59
|
+
UNKNOWN_REASON: _ClassVar[DisconnectReason]
|
|
60
|
+
CLIENT_INITIATED: _ClassVar[DisconnectReason]
|
|
61
|
+
DUPLICATE_IDENTITY: _ClassVar[DisconnectReason]
|
|
62
|
+
SERVER_SHUTDOWN: _ClassVar[DisconnectReason]
|
|
63
|
+
PARTICIPANT_REMOVED: _ClassVar[DisconnectReason]
|
|
64
|
+
ROOM_DELETED: _ClassVar[DisconnectReason]
|
|
65
|
+
STATE_MISMATCH: _ClassVar[DisconnectReason]
|
|
66
|
+
JOIN_FAILURE: _ClassVar[DisconnectReason]
|
|
67
|
+
|
|
68
|
+
class ReconnectReason(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
69
|
+
__slots__ = ()
|
|
70
|
+
RR_UNKOWN: _ClassVar[ReconnectReason]
|
|
71
|
+
RR_SIGNAL_DISCONNECTED: _ClassVar[ReconnectReason]
|
|
72
|
+
RR_PUBLISHER_FAILED: _ClassVar[ReconnectReason]
|
|
73
|
+
RR_SUBSCRIBER_FAILED: _ClassVar[ReconnectReason]
|
|
74
|
+
RR_SWITCH_CANDIDATE: _ClassVar[ReconnectReason]
|
|
75
|
+
DEFAULT_AC: AudioCodec
|
|
76
|
+
OPUS: AudioCodec
|
|
77
|
+
AAC: AudioCodec
|
|
78
|
+
DEFAULT_VC: VideoCodec
|
|
79
|
+
H264_BASELINE: VideoCodec
|
|
80
|
+
H264_MAIN: VideoCodec
|
|
81
|
+
H264_HIGH: VideoCodec
|
|
82
|
+
VP8: VideoCodec
|
|
83
|
+
AUDIO: TrackType
|
|
84
|
+
VIDEO: TrackType
|
|
85
|
+
DATA: TrackType
|
|
86
|
+
UNKNOWN: TrackSource
|
|
87
|
+
CAMERA: TrackSource
|
|
88
|
+
MICROPHONE: TrackSource
|
|
89
|
+
SCREEN_SHARE: TrackSource
|
|
90
|
+
SCREEN_SHARE_AUDIO: TrackSource
|
|
91
|
+
LOW: VideoQuality
|
|
92
|
+
MEDIUM: VideoQuality
|
|
93
|
+
HIGH: VideoQuality
|
|
94
|
+
OFF: VideoQuality
|
|
95
|
+
POOR: ConnectionQuality
|
|
96
|
+
GOOD: ConnectionQuality
|
|
97
|
+
EXCELLENT: ConnectionQuality
|
|
98
|
+
UNSET: ClientConfigSetting
|
|
99
|
+
DISABLED: ClientConfigSetting
|
|
100
|
+
ENABLED: ClientConfigSetting
|
|
101
|
+
UNKNOWN_REASON: DisconnectReason
|
|
102
|
+
CLIENT_INITIATED: DisconnectReason
|
|
103
|
+
DUPLICATE_IDENTITY: DisconnectReason
|
|
104
|
+
SERVER_SHUTDOWN: DisconnectReason
|
|
105
|
+
PARTICIPANT_REMOVED: DisconnectReason
|
|
106
|
+
ROOM_DELETED: DisconnectReason
|
|
107
|
+
STATE_MISMATCH: DisconnectReason
|
|
108
|
+
JOIN_FAILURE: DisconnectReason
|
|
109
|
+
RR_UNKOWN: ReconnectReason
|
|
110
|
+
RR_SIGNAL_DISCONNECTED: ReconnectReason
|
|
111
|
+
RR_PUBLISHER_FAILED: ReconnectReason
|
|
112
|
+
RR_SUBSCRIBER_FAILED: ReconnectReason
|
|
113
|
+
RR_SWITCH_CANDIDATE: ReconnectReason
|
|
114
|
+
|
|
115
|
+
class Room(_message.Message):
|
|
116
|
+
__slots__ = ("sid", "name", "empty_timeout", "max_participants", "creation_time", "turn_password", "enabled_codecs", "metadata", "num_participants", "active_recording", "key")
|
|
117
|
+
SID_FIELD_NUMBER: _ClassVar[int]
|
|
118
|
+
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
119
|
+
EMPTY_TIMEOUT_FIELD_NUMBER: _ClassVar[int]
|
|
120
|
+
MAX_PARTICIPANTS_FIELD_NUMBER: _ClassVar[int]
|
|
121
|
+
CREATION_TIME_FIELD_NUMBER: _ClassVar[int]
|
|
122
|
+
TURN_PASSWORD_FIELD_NUMBER: _ClassVar[int]
|
|
123
|
+
ENABLED_CODECS_FIELD_NUMBER: _ClassVar[int]
|
|
124
|
+
METADATA_FIELD_NUMBER: _ClassVar[int]
|
|
125
|
+
NUM_PARTICIPANTS_FIELD_NUMBER: _ClassVar[int]
|
|
126
|
+
ACTIVE_RECORDING_FIELD_NUMBER: _ClassVar[int]
|
|
127
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
|
128
|
+
sid: str
|
|
129
|
+
name: str
|
|
130
|
+
empty_timeout: int
|
|
131
|
+
max_participants: int
|
|
132
|
+
creation_time: int
|
|
133
|
+
turn_password: str
|
|
134
|
+
enabled_codecs: _containers.RepeatedCompositeFieldContainer[Codec]
|
|
135
|
+
metadata: str
|
|
136
|
+
num_participants: int
|
|
137
|
+
active_recording: bool
|
|
138
|
+
key: str
|
|
139
|
+
def __init__(self, sid: _Optional[str] = ..., name: _Optional[str] = ..., empty_timeout: _Optional[int] = ..., max_participants: _Optional[int] = ..., creation_time: _Optional[int] = ..., turn_password: _Optional[str] = ..., enabled_codecs: _Optional[_Iterable[_Union[Codec, _Mapping]]] = ..., metadata: _Optional[str] = ..., num_participants: _Optional[int] = ..., active_recording: bool = ..., key: _Optional[str] = ...) -> None: ...
|
|
140
|
+
|
|
141
|
+
class Codec(_message.Message):
|
|
142
|
+
__slots__ = ("mime", "fmtp_line")
|
|
143
|
+
MIME_FIELD_NUMBER: _ClassVar[int]
|
|
144
|
+
FMTP_LINE_FIELD_NUMBER: _ClassVar[int]
|
|
145
|
+
mime: str
|
|
146
|
+
fmtp_line: str
|
|
147
|
+
def __init__(self, mime: _Optional[str] = ..., fmtp_line: _Optional[str] = ...) -> None: ...
|
|
148
|
+
|
|
149
|
+
class ParticipantPermission(_message.Message):
|
|
150
|
+
__slots__ = ("can_subscribe", "can_publish", "can_publish_data", "can_publish_sources", "hidden", "recorder", "can_update_metadata")
|
|
151
|
+
CAN_SUBSCRIBE_FIELD_NUMBER: _ClassVar[int]
|
|
152
|
+
CAN_PUBLISH_FIELD_NUMBER: _ClassVar[int]
|
|
153
|
+
CAN_PUBLISH_DATA_FIELD_NUMBER: _ClassVar[int]
|
|
154
|
+
CAN_PUBLISH_SOURCES_FIELD_NUMBER: _ClassVar[int]
|
|
155
|
+
HIDDEN_FIELD_NUMBER: _ClassVar[int]
|
|
156
|
+
RECORDER_FIELD_NUMBER: _ClassVar[int]
|
|
157
|
+
CAN_UPDATE_METADATA_FIELD_NUMBER: _ClassVar[int]
|
|
158
|
+
can_subscribe: bool
|
|
159
|
+
can_publish: bool
|
|
160
|
+
can_publish_data: bool
|
|
161
|
+
can_publish_sources: _containers.RepeatedScalarFieldContainer[TrackSource]
|
|
162
|
+
hidden: bool
|
|
163
|
+
recorder: bool
|
|
164
|
+
can_update_metadata: bool
|
|
165
|
+
def __init__(self, can_subscribe: bool = ..., can_publish: bool = ..., can_publish_data: bool = ..., can_publish_sources: _Optional[_Iterable[_Union[TrackSource, str]]] = ..., hidden: bool = ..., recorder: bool = ..., can_update_metadata: bool = ...) -> None: ...
|
|
166
|
+
|
|
167
|
+
class ParticipantInfo(_message.Message):
|
|
168
|
+
__slots__ = ("sid", "identity", "state", "tracks", "metadata", "joined_at", "name", "version", "permission", "region", "is_publisher", "relayed", "rtt_ms")
|
|
169
|
+
class State(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
170
|
+
__slots__ = ()
|
|
171
|
+
JOINING: _ClassVar[ParticipantInfo.State]
|
|
172
|
+
JOINED: _ClassVar[ParticipantInfo.State]
|
|
173
|
+
ACTIVE: _ClassVar[ParticipantInfo.State]
|
|
174
|
+
DISCONNECTED: _ClassVar[ParticipantInfo.State]
|
|
175
|
+
JOINING: ParticipantInfo.State
|
|
176
|
+
JOINED: ParticipantInfo.State
|
|
177
|
+
ACTIVE: ParticipantInfo.State
|
|
178
|
+
DISCONNECTED: ParticipantInfo.State
|
|
179
|
+
SID_FIELD_NUMBER: _ClassVar[int]
|
|
180
|
+
IDENTITY_FIELD_NUMBER: _ClassVar[int]
|
|
181
|
+
STATE_FIELD_NUMBER: _ClassVar[int]
|
|
182
|
+
TRACKS_FIELD_NUMBER: _ClassVar[int]
|
|
183
|
+
METADATA_FIELD_NUMBER: _ClassVar[int]
|
|
184
|
+
JOINED_AT_FIELD_NUMBER: _ClassVar[int]
|
|
185
|
+
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
186
|
+
VERSION_FIELD_NUMBER: _ClassVar[int]
|
|
187
|
+
PERMISSION_FIELD_NUMBER: _ClassVar[int]
|
|
188
|
+
REGION_FIELD_NUMBER: _ClassVar[int]
|
|
189
|
+
IS_PUBLISHER_FIELD_NUMBER: _ClassVar[int]
|
|
190
|
+
RELAYED_FIELD_NUMBER: _ClassVar[int]
|
|
191
|
+
RTT_MS_FIELD_NUMBER: _ClassVar[int]
|
|
192
|
+
sid: str
|
|
193
|
+
identity: str
|
|
194
|
+
state: ParticipantInfo.State
|
|
195
|
+
tracks: _containers.RepeatedCompositeFieldContainer[TrackInfo]
|
|
196
|
+
metadata: str
|
|
197
|
+
joined_at: int
|
|
198
|
+
name: str
|
|
199
|
+
version: int
|
|
200
|
+
permission: ParticipantPermission
|
|
201
|
+
region: str
|
|
202
|
+
is_publisher: bool
|
|
203
|
+
relayed: bool
|
|
204
|
+
rtt_ms: int
|
|
205
|
+
def __init__(self, sid: _Optional[str] = ..., identity: _Optional[str] = ..., state: _Optional[_Union[ParticipantInfo.State, str]] = ..., tracks: _Optional[_Iterable[_Union[TrackInfo, _Mapping]]] = ..., metadata: _Optional[str] = ..., joined_at: _Optional[int] = ..., name: _Optional[str] = ..., version: _Optional[int] = ..., permission: _Optional[_Union[ParticipantPermission, _Mapping]] = ..., region: _Optional[str] = ..., is_publisher: bool = ..., relayed: bool = ..., rtt_ms: _Optional[int] = ...) -> None: ...
|
|
206
|
+
|
|
207
|
+
class Encryption(_message.Message):
|
|
208
|
+
__slots__ = ()
|
|
209
|
+
class Type(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
210
|
+
__slots__ = ()
|
|
211
|
+
NONE: _ClassVar[Encryption.Type]
|
|
212
|
+
GCM: _ClassVar[Encryption.Type]
|
|
213
|
+
CUSTOM: _ClassVar[Encryption.Type]
|
|
214
|
+
NONE: Encryption.Type
|
|
215
|
+
GCM: Encryption.Type
|
|
216
|
+
CUSTOM: Encryption.Type
|
|
217
|
+
def __init__(self) -> None: ...
|
|
218
|
+
|
|
219
|
+
class SimulcastCodecInfo(_message.Message):
|
|
220
|
+
__slots__ = ("mime_type", "mid", "cid", "layers")
|
|
221
|
+
MIME_TYPE_FIELD_NUMBER: _ClassVar[int]
|
|
222
|
+
MID_FIELD_NUMBER: _ClassVar[int]
|
|
223
|
+
CID_FIELD_NUMBER: _ClassVar[int]
|
|
224
|
+
LAYERS_FIELD_NUMBER: _ClassVar[int]
|
|
225
|
+
mime_type: str
|
|
226
|
+
mid: str
|
|
227
|
+
cid: str
|
|
228
|
+
layers: _containers.RepeatedCompositeFieldContainer[VideoLayer]
|
|
229
|
+
def __init__(self, mime_type: _Optional[str] = ..., mid: _Optional[str] = ..., cid: _Optional[str] = ..., layers: _Optional[_Iterable[_Union[VideoLayer, _Mapping]]] = ...) -> None: ...
|
|
230
|
+
|
|
231
|
+
class TrackInfo(_message.Message):
|
|
232
|
+
__slots__ = ("sid", "type", "name", "muted", "width", "height", "simulcast", "disable_dtx", "source", "layers", "mime_type", "mid", "codecs", "stereo", "disable_red", "encryption")
|
|
233
|
+
SID_FIELD_NUMBER: _ClassVar[int]
|
|
234
|
+
TYPE_FIELD_NUMBER: _ClassVar[int]
|
|
235
|
+
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
236
|
+
MUTED_FIELD_NUMBER: _ClassVar[int]
|
|
237
|
+
WIDTH_FIELD_NUMBER: _ClassVar[int]
|
|
238
|
+
HEIGHT_FIELD_NUMBER: _ClassVar[int]
|
|
239
|
+
SIMULCAST_FIELD_NUMBER: _ClassVar[int]
|
|
240
|
+
DISABLE_DTX_FIELD_NUMBER: _ClassVar[int]
|
|
241
|
+
SOURCE_FIELD_NUMBER: _ClassVar[int]
|
|
242
|
+
LAYERS_FIELD_NUMBER: _ClassVar[int]
|
|
243
|
+
MIME_TYPE_FIELD_NUMBER: _ClassVar[int]
|
|
244
|
+
MID_FIELD_NUMBER: _ClassVar[int]
|
|
245
|
+
CODECS_FIELD_NUMBER: _ClassVar[int]
|
|
246
|
+
STEREO_FIELD_NUMBER: _ClassVar[int]
|
|
247
|
+
DISABLE_RED_FIELD_NUMBER: _ClassVar[int]
|
|
248
|
+
ENCRYPTION_FIELD_NUMBER: _ClassVar[int]
|
|
249
|
+
sid: str
|
|
250
|
+
type: TrackType
|
|
251
|
+
name: str
|
|
252
|
+
muted: bool
|
|
253
|
+
width: int
|
|
254
|
+
height: int
|
|
255
|
+
simulcast: bool
|
|
256
|
+
disable_dtx: bool
|
|
257
|
+
source: TrackSource
|
|
258
|
+
layers: _containers.RepeatedCompositeFieldContainer[VideoLayer]
|
|
259
|
+
mime_type: str
|
|
260
|
+
mid: str
|
|
261
|
+
codecs: _containers.RepeatedCompositeFieldContainer[SimulcastCodecInfo]
|
|
262
|
+
stereo: bool
|
|
263
|
+
disable_red: bool
|
|
264
|
+
encryption: Encryption.Type
|
|
265
|
+
def __init__(self, sid: _Optional[str] = ..., type: _Optional[_Union[TrackType, str]] = ..., name: _Optional[str] = ..., muted: bool = ..., width: _Optional[int] = ..., height: _Optional[int] = ..., simulcast: bool = ..., disable_dtx: bool = ..., source: _Optional[_Union[TrackSource, str]] = ..., layers: _Optional[_Iterable[_Union[VideoLayer, _Mapping]]] = ..., mime_type: _Optional[str] = ..., mid: _Optional[str] = ..., codecs: _Optional[_Iterable[_Union[SimulcastCodecInfo, _Mapping]]] = ..., stereo: bool = ..., disable_red: bool = ..., encryption: _Optional[_Union[Encryption.Type, str]] = ...) -> None: ...
|
|
266
|
+
|
|
267
|
+
class VideoLayer(_message.Message):
|
|
268
|
+
__slots__ = ("quality", "width", "height", "bitrate", "ssrc")
|
|
269
|
+
QUALITY_FIELD_NUMBER: _ClassVar[int]
|
|
270
|
+
WIDTH_FIELD_NUMBER: _ClassVar[int]
|
|
271
|
+
HEIGHT_FIELD_NUMBER: _ClassVar[int]
|
|
272
|
+
BITRATE_FIELD_NUMBER: _ClassVar[int]
|
|
273
|
+
SSRC_FIELD_NUMBER: _ClassVar[int]
|
|
274
|
+
quality: VideoQuality
|
|
275
|
+
width: int
|
|
276
|
+
height: int
|
|
277
|
+
bitrate: int
|
|
278
|
+
ssrc: int
|
|
279
|
+
def __init__(self, quality: _Optional[_Union[VideoQuality, str]] = ..., width: _Optional[int] = ..., height: _Optional[int] = ..., bitrate: _Optional[int] = ..., ssrc: _Optional[int] = ...) -> None: ...
|
|
280
|
+
|
|
281
|
+
class DataPacket(_message.Message):
|
|
282
|
+
__slots__ = ("kind", "user", "speaker")
|
|
283
|
+
class Kind(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
284
|
+
__slots__ = ()
|
|
285
|
+
RELIABLE: _ClassVar[DataPacket.Kind]
|
|
286
|
+
LOSSY: _ClassVar[DataPacket.Kind]
|
|
287
|
+
RELIABLE: DataPacket.Kind
|
|
288
|
+
LOSSY: DataPacket.Kind
|
|
289
|
+
KIND_FIELD_NUMBER: _ClassVar[int]
|
|
290
|
+
USER_FIELD_NUMBER: _ClassVar[int]
|
|
291
|
+
SPEAKER_FIELD_NUMBER: _ClassVar[int]
|
|
292
|
+
kind: DataPacket.Kind
|
|
293
|
+
user: UserPacket
|
|
294
|
+
speaker: ActiveSpeakerUpdate
|
|
295
|
+
def __init__(self, kind: _Optional[_Union[DataPacket.Kind, str]] = ..., user: _Optional[_Union[UserPacket, _Mapping]] = ..., speaker: _Optional[_Union[ActiveSpeakerUpdate, _Mapping]] = ...) -> None: ...
|
|
296
|
+
|
|
297
|
+
class ActiveSpeakerUpdate(_message.Message):
|
|
298
|
+
__slots__ = ("speakers",)
|
|
299
|
+
SPEAKERS_FIELD_NUMBER: _ClassVar[int]
|
|
300
|
+
speakers: _containers.RepeatedCompositeFieldContainer[SpeakerInfo]
|
|
301
|
+
def __init__(self, speakers: _Optional[_Iterable[_Union[SpeakerInfo, _Mapping]]] = ...) -> None: ...
|
|
302
|
+
|
|
303
|
+
class SpeakerInfo(_message.Message):
|
|
304
|
+
__slots__ = ("sid", "level", "active")
|
|
305
|
+
SID_FIELD_NUMBER: _ClassVar[int]
|
|
306
|
+
LEVEL_FIELD_NUMBER: _ClassVar[int]
|
|
307
|
+
ACTIVE_FIELD_NUMBER: _ClassVar[int]
|
|
308
|
+
sid: str
|
|
309
|
+
level: float
|
|
310
|
+
active: bool
|
|
311
|
+
def __init__(self, sid: _Optional[str] = ..., level: _Optional[float] = ..., active: bool = ...) -> None: ...
|
|
312
|
+
|
|
313
|
+
class UserPacket(_message.Message):
|
|
314
|
+
__slots__ = ("participant_sid", "payload", "destination_sids", "topic")
|
|
315
|
+
PARTICIPANT_SID_FIELD_NUMBER: _ClassVar[int]
|
|
316
|
+
PAYLOAD_FIELD_NUMBER: _ClassVar[int]
|
|
317
|
+
DESTINATION_SIDS_FIELD_NUMBER: _ClassVar[int]
|
|
318
|
+
TOPIC_FIELD_NUMBER: _ClassVar[int]
|
|
319
|
+
participant_sid: str
|
|
320
|
+
payload: bytes
|
|
321
|
+
destination_sids: _containers.RepeatedScalarFieldContainer[str]
|
|
322
|
+
topic: str
|
|
323
|
+
def __init__(self, participant_sid: _Optional[str] = ..., payload: _Optional[bytes] = ..., destination_sids: _Optional[_Iterable[str]] = ..., topic: _Optional[str] = ...) -> None: ...
|
|
324
|
+
|
|
325
|
+
class ParticipantTracks(_message.Message):
|
|
326
|
+
__slots__ = ("participant_sid", "track_sids")
|
|
327
|
+
PARTICIPANT_SID_FIELD_NUMBER: _ClassVar[int]
|
|
328
|
+
TRACK_SIDS_FIELD_NUMBER: _ClassVar[int]
|
|
329
|
+
participant_sid: str
|
|
330
|
+
track_sids: _containers.RepeatedScalarFieldContainer[str]
|
|
331
|
+
def __init__(self, participant_sid: _Optional[str] = ..., track_sids: _Optional[_Iterable[str]] = ...) -> None: ...
|
|
332
|
+
|
|
333
|
+
class ServerInfo(_message.Message):
|
|
334
|
+
__slots__ = ("edition", "version", "protocol", "region", "node_id", "debug_info")
|
|
335
|
+
class Edition(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
336
|
+
__slots__ = ()
|
|
337
|
+
Standard: _ClassVar[ServerInfo.Edition]
|
|
338
|
+
Cloud: _ClassVar[ServerInfo.Edition]
|
|
339
|
+
Standard: ServerInfo.Edition
|
|
340
|
+
Cloud: ServerInfo.Edition
|
|
341
|
+
EDITION_FIELD_NUMBER: _ClassVar[int]
|
|
342
|
+
VERSION_FIELD_NUMBER: _ClassVar[int]
|
|
343
|
+
PROTOCOL_FIELD_NUMBER: _ClassVar[int]
|
|
344
|
+
REGION_FIELD_NUMBER: _ClassVar[int]
|
|
345
|
+
NODE_ID_FIELD_NUMBER: _ClassVar[int]
|
|
346
|
+
DEBUG_INFO_FIELD_NUMBER: _ClassVar[int]
|
|
347
|
+
edition: ServerInfo.Edition
|
|
348
|
+
version: str
|
|
349
|
+
protocol: int
|
|
350
|
+
region: str
|
|
351
|
+
node_id: str
|
|
352
|
+
debug_info: str
|
|
353
|
+
def __init__(self, edition: _Optional[_Union[ServerInfo.Edition, str]] = ..., version: _Optional[str] = ..., protocol: _Optional[int] = ..., region: _Optional[str] = ..., node_id: _Optional[str] = ..., debug_info: _Optional[str] = ...) -> None: ...
|
|
354
|
+
|
|
355
|
+
class ClientInfo(_message.Message):
|
|
356
|
+
__slots__ = ("sdk", "version", "protocol", "os", "os_version", "device_model", "browser", "browser_version", "address", "network")
|
|
357
|
+
class SDK(int, metaclass=_enum_type_wrapper.EnumTypeWrapper):
|
|
358
|
+
__slots__ = ()
|
|
359
|
+
UNKNOWN: _ClassVar[ClientInfo.SDK]
|
|
360
|
+
JS: _ClassVar[ClientInfo.SDK]
|
|
361
|
+
SWIFT: _ClassVar[ClientInfo.SDK]
|
|
362
|
+
ANDROID: _ClassVar[ClientInfo.SDK]
|
|
363
|
+
FLUTTER: _ClassVar[ClientInfo.SDK]
|
|
364
|
+
GO: _ClassVar[ClientInfo.SDK]
|
|
365
|
+
UNITY: _ClassVar[ClientInfo.SDK]
|
|
366
|
+
REACT_NATIVE: _ClassVar[ClientInfo.SDK]
|
|
367
|
+
RUST: _ClassVar[ClientInfo.SDK]
|
|
368
|
+
UNKNOWN: ClientInfo.SDK
|
|
369
|
+
JS: ClientInfo.SDK
|
|
370
|
+
SWIFT: ClientInfo.SDK
|
|
371
|
+
ANDROID: ClientInfo.SDK
|
|
372
|
+
FLUTTER: ClientInfo.SDK
|
|
373
|
+
GO: ClientInfo.SDK
|
|
374
|
+
UNITY: ClientInfo.SDK
|
|
375
|
+
REACT_NATIVE: ClientInfo.SDK
|
|
376
|
+
RUST: ClientInfo.SDK
|
|
377
|
+
SDK_FIELD_NUMBER: _ClassVar[int]
|
|
378
|
+
VERSION_FIELD_NUMBER: _ClassVar[int]
|
|
379
|
+
PROTOCOL_FIELD_NUMBER: _ClassVar[int]
|
|
380
|
+
OS_FIELD_NUMBER: _ClassVar[int]
|
|
381
|
+
OS_VERSION_FIELD_NUMBER: _ClassVar[int]
|
|
382
|
+
DEVICE_MODEL_FIELD_NUMBER: _ClassVar[int]
|
|
383
|
+
BROWSER_FIELD_NUMBER: _ClassVar[int]
|
|
384
|
+
BROWSER_VERSION_FIELD_NUMBER: _ClassVar[int]
|
|
385
|
+
ADDRESS_FIELD_NUMBER: _ClassVar[int]
|
|
386
|
+
NETWORK_FIELD_NUMBER: _ClassVar[int]
|
|
387
|
+
sdk: ClientInfo.SDK
|
|
388
|
+
version: str
|
|
389
|
+
protocol: int
|
|
390
|
+
os: str
|
|
391
|
+
os_version: str
|
|
392
|
+
device_model: str
|
|
393
|
+
browser: str
|
|
394
|
+
browser_version: str
|
|
395
|
+
address: str
|
|
396
|
+
network: str
|
|
397
|
+
def __init__(self, sdk: _Optional[_Union[ClientInfo.SDK, str]] = ..., version: _Optional[str] = ..., protocol: _Optional[int] = ..., os: _Optional[str] = ..., os_version: _Optional[str] = ..., device_model: _Optional[str] = ..., browser: _Optional[str] = ..., browser_version: _Optional[str] = ..., address: _Optional[str] = ..., network: _Optional[str] = ...) -> None: ...
|
|
398
|
+
|
|
399
|
+
class ClientConfiguration(_message.Message):
|
|
400
|
+
__slots__ = ("video", "screen", "resume_connection", "disabled_codecs", "force_relay")
|
|
401
|
+
VIDEO_FIELD_NUMBER: _ClassVar[int]
|
|
402
|
+
SCREEN_FIELD_NUMBER: _ClassVar[int]
|
|
403
|
+
RESUME_CONNECTION_FIELD_NUMBER: _ClassVar[int]
|
|
404
|
+
DISABLED_CODECS_FIELD_NUMBER: _ClassVar[int]
|
|
405
|
+
FORCE_RELAY_FIELD_NUMBER: _ClassVar[int]
|
|
406
|
+
video: VideoConfiguration
|
|
407
|
+
screen: VideoConfiguration
|
|
408
|
+
resume_connection: ClientConfigSetting
|
|
409
|
+
disabled_codecs: DisabledCodecs
|
|
410
|
+
force_relay: ClientConfigSetting
|
|
411
|
+
def __init__(self, video: _Optional[_Union[VideoConfiguration, _Mapping]] = ..., screen: _Optional[_Union[VideoConfiguration, _Mapping]] = ..., resume_connection: _Optional[_Union[ClientConfigSetting, str]] = ..., disabled_codecs: _Optional[_Union[DisabledCodecs, _Mapping]] = ..., force_relay: _Optional[_Union[ClientConfigSetting, str]] = ...) -> None: ...
|
|
412
|
+
|
|
413
|
+
class VideoConfiguration(_message.Message):
|
|
414
|
+
__slots__ = ("hardware_encoder",)
|
|
415
|
+
HARDWARE_ENCODER_FIELD_NUMBER: _ClassVar[int]
|
|
416
|
+
hardware_encoder: ClientConfigSetting
|
|
417
|
+
def __init__(self, hardware_encoder: _Optional[_Union[ClientConfigSetting, str]] = ...) -> None: ...
|
|
418
|
+
|
|
419
|
+
class DisabledCodecs(_message.Message):
|
|
420
|
+
__slots__ = ("codecs",)
|
|
421
|
+
CODECS_FIELD_NUMBER: _ClassVar[int]
|
|
422
|
+
codecs: _containers.RepeatedCompositeFieldContainer[Codec]
|
|
423
|
+
def __init__(self, codecs: _Optional[_Iterable[_Union[Codec, _Mapping]]] = ...) -> None: ...
|
|
424
|
+
|
|
425
|
+
class RTPStats(_message.Message):
|
|
426
|
+
__slots__ = ("start_time", "end_time", "duration", "packets", "packet_rate", "bytes", "header_bytes", "bitrate", "packets_lost", "packet_loss_rate", "packet_loss_percentage", "packets_duplicate", "packet_duplicate_rate", "bytes_duplicate", "header_bytes_duplicate", "bitrate_duplicate", "packets_padding", "packet_padding_rate", "bytes_padding", "header_bytes_padding", "bitrate_padding", "packets_out_of_order", "frames", "frame_rate", "jitter_current", "jitter_max", "gap_histogram", "nacks", "nack_acks", "nack_misses", "nack_repeated", "plis", "last_pli", "firs", "last_fir", "rtt_current", "rtt_max", "key_frames", "last_key_frame", "layer_lock_plis", "last_layer_lock_pli")
|
|
427
|
+
class GapHistogramEntry(_message.Message):
|
|
428
|
+
__slots__ = ("key", "value")
|
|
429
|
+
KEY_FIELD_NUMBER: _ClassVar[int]
|
|
430
|
+
VALUE_FIELD_NUMBER: _ClassVar[int]
|
|
431
|
+
key: int
|
|
432
|
+
value: int
|
|
433
|
+
def __init__(self, key: _Optional[int] = ..., value: _Optional[int] = ...) -> None: ...
|
|
434
|
+
START_TIME_FIELD_NUMBER: _ClassVar[int]
|
|
435
|
+
END_TIME_FIELD_NUMBER: _ClassVar[int]
|
|
436
|
+
DURATION_FIELD_NUMBER: _ClassVar[int]
|
|
437
|
+
PACKETS_FIELD_NUMBER: _ClassVar[int]
|
|
438
|
+
PACKET_RATE_FIELD_NUMBER: _ClassVar[int]
|
|
439
|
+
BYTES_FIELD_NUMBER: _ClassVar[int]
|
|
440
|
+
HEADER_BYTES_FIELD_NUMBER: _ClassVar[int]
|
|
441
|
+
BITRATE_FIELD_NUMBER: _ClassVar[int]
|
|
442
|
+
PACKETS_LOST_FIELD_NUMBER: _ClassVar[int]
|
|
443
|
+
PACKET_LOSS_RATE_FIELD_NUMBER: _ClassVar[int]
|
|
444
|
+
PACKET_LOSS_PERCENTAGE_FIELD_NUMBER: _ClassVar[int]
|
|
445
|
+
PACKETS_DUPLICATE_FIELD_NUMBER: _ClassVar[int]
|
|
446
|
+
PACKET_DUPLICATE_RATE_FIELD_NUMBER: _ClassVar[int]
|
|
447
|
+
BYTES_DUPLICATE_FIELD_NUMBER: _ClassVar[int]
|
|
448
|
+
HEADER_BYTES_DUPLICATE_FIELD_NUMBER: _ClassVar[int]
|
|
449
|
+
BITRATE_DUPLICATE_FIELD_NUMBER: _ClassVar[int]
|
|
450
|
+
PACKETS_PADDING_FIELD_NUMBER: _ClassVar[int]
|
|
451
|
+
PACKET_PADDING_RATE_FIELD_NUMBER: _ClassVar[int]
|
|
452
|
+
BYTES_PADDING_FIELD_NUMBER: _ClassVar[int]
|
|
453
|
+
HEADER_BYTES_PADDING_FIELD_NUMBER: _ClassVar[int]
|
|
454
|
+
BITRATE_PADDING_FIELD_NUMBER: _ClassVar[int]
|
|
455
|
+
PACKETS_OUT_OF_ORDER_FIELD_NUMBER: _ClassVar[int]
|
|
456
|
+
FRAMES_FIELD_NUMBER: _ClassVar[int]
|
|
457
|
+
FRAME_RATE_FIELD_NUMBER: _ClassVar[int]
|
|
458
|
+
JITTER_CURRENT_FIELD_NUMBER: _ClassVar[int]
|
|
459
|
+
JITTER_MAX_FIELD_NUMBER: _ClassVar[int]
|
|
460
|
+
GAP_HISTOGRAM_FIELD_NUMBER: _ClassVar[int]
|
|
461
|
+
NACKS_FIELD_NUMBER: _ClassVar[int]
|
|
462
|
+
NACK_ACKS_FIELD_NUMBER: _ClassVar[int]
|
|
463
|
+
NACK_MISSES_FIELD_NUMBER: _ClassVar[int]
|
|
464
|
+
NACK_REPEATED_FIELD_NUMBER: _ClassVar[int]
|
|
465
|
+
PLIS_FIELD_NUMBER: _ClassVar[int]
|
|
466
|
+
LAST_PLI_FIELD_NUMBER: _ClassVar[int]
|
|
467
|
+
FIRS_FIELD_NUMBER: _ClassVar[int]
|
|
468
|
+
LAST_FIR_FIELD_NUMBER: _ClassVar[int]
|
|
469
|
+
RTT_CURRENT_FIELD_NUMBER: _ClassVar[int]
|
|
470
|
+
RTT_MAX_FIELD_NUMBER: _ClassVar[int]
|
|
471
|
+
KEY_FRAMES_FIELD_NUMBER: _ClassVar[int]
|
|
472
|
+
LAST_KEY_FRAME_FIELD_NUMBER: _ClassVar[int]
|
|
473
|
+
LAYER_LOCK_PLIS_FIELD_NUMBER: _ClassVar[int]
|
|
474
|
+
LAST_LAYER_LOCK_PLI_FIELD_NUMBER: _ClassVar[int]
|
|
475
|
+
start_time: _timestamp_pb2.Timestamp
|
|
476
|
+
end_time: _timestamp_pb2.Timestamp
|
|
477
|
+
duration: float
|
|
478
|
+
packets: int
|
|
479
|
+
packet_rate: float
|
|
480
|
+
bytes: int
|
|
481
|
+
header_bytes: int
|
|
482
|
+
bitrate: float
|
|
483
|
+
packets_lost: int
|
|
484
|
+
packet_loss_rate: float
|
|
485
|
+
packet_loss_percentage: float
|
|
486
|
+
packets_duplicate: int
|
|
487
|
+
packet_duplicate_rate: float
|
|
488
|
+
bytes_duplicate: int
|
|
489
|
+
header_bytes_duplicate: int
|
|
490
|
+
bitrate_duplicate: float
|
|
491
|
+
packets_padding: int
|
|
492
|
+
packet_padding_rate: float
|
|
493
|
+
bytes_padding: int
|
|
494
|
+
header_bytes_padding: int
|
|
495
|
+
bitrate_padding: float
|
|
496
|
+
packets_out_of_order: int
|
|
497
|
+
frames: int
|
|
498
|
+
frame_rate: float
|
|
499
|
+
jitter_current: float
|
|
500
|
+
jitter_max: float
|
|
501
|
+
gap_histogram: _containers.ScalarMap[int, int]
|
|
502
|
+
nacks: int
|
|
503
|
+
nack_acks: int
|
|
504
|
+
nack_misses: int
|
|
505
|
+
nack_repeated: int
|
|
506
|
+
plis: int
|
|
507
|
+
last_pli: _timestamp_pb2.Timestamp
|
|
508
|
+
firs: int
|
|
509
|
+
last_fir: _timestamp_pb2.Timestamp
|
|
510
|
+
rtt_current: int
|
|
511
|
+
rtt_max: int
|
|
512
|
+
key_frames: int
|
|
513
|
+
last_key_frame: _timestamp_pb2.Timestamp
|
|
514
|
+
layer_lock_plis: int
|
|
515
|
+
last_layer_lock_pli: _timestamp_pb2.Timestamp
|
|
516
|
+
def __init__(self, start_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., end_time: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., duration: _Optional[float] = ..., packets: _Optional[int] = ..., packet_rate: _Optional[float] = ..., bytes: _Optional[int] = ..., header_bytes: _Optional[int] = ..., bitrate: _Optional[float] = ..., packets_lost: _Optional[int] = ..., packet_loss_rate: _Optional[float] = ..., packet_loss_percentage: _Optional[float] = ..., packets_duplicate: _Optional[int] = ..., packet_duplicate_rate: _Optional[float] = ..., bytes_duplicate: _Optional[int] = ..., header_bytes_duplicate: _Optional[int] = ..., bitrate_duplicate: _Optional[float] = ..., packets_padding: _Optional[int] = ..., packet_padding_rate: _Optional[float] = ..., bytes_padding: _Optional[int] = ..., header_bytes_padding: _Optional[int] = ..., bitrate_padding: _Optional[float] = ..., packets_out_of_order: _Optional[int] = ..., frames: _Optional[int] = ..., frame_rate: _Optional[float] = ..., jitter_current: _Optional[float] = ..., jitter_max: _Optional[float] = ..., gap_histogram: _Optional[_Mapping[int, int]] = ..., nacks: _Optional[int] = ..., nack_acks: _Optional[int] = ..., nack_misses: _Optional[int] = ..., nack_repeated: _Optional[int] = ..., plis: _Optional[int] = ..., last_pli: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., firs: _Optional[int] = ..., last_fir: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., rtt_current: _Optional[int] = ..., rtt_max: _Optional[int] = ..., key_frames: _Optional[int] = ..., last_key_frame: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ..., layer_lock_plis: _Optional[int] = ..., last_layer_lock_pli: _Optional[_Union[_timestamp_pb2.Timestamp, _Mapping]] = ...) -> None: ...
|
|
517
|
+
|
|
518
|
+
class TimedVersion(_message.Message):
|
|
519
|
+
__slots__ = ("unix_micro", "ticks")
|
|
520
|
+
UNIX_MICRO_FIELD_NUMBER: _ClassVar[int]
|
|
521
|
+
TICKS_FIELD_NUMBER: _ClassVar[int]
|
|
522
|
+
unix_micro: int
|
|
523
|
+
ticks: int
|
|
524
|
+
def __init__(self, unix_micro: _Optional[int] = ..., ticks: _Optional[int] = ...) -> None: ...
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
from . import livekit_models_pb2 as _livekit_models_pb2
|
|
2
|
+
from . import livekit_egress_pb2 as _livekit_egress_pb2
|
|
3
|
+
from google.protobuf.internal import containers as _containers
|
|
4
|
+
from google.protobuf import descriptor as _descriptor
|
|
5
|
+
from google.protobuf import message as _message
|
|
6
|
+
from typing import ClassVar as _ClassVar, Iterable as _Iterable, Mapping as _Mapping, Optional as _Optional, Union as _Union
|
|
7
|
+
|
|
8
|
+
DESCRIPTOR: _descriptor.FileDescriptor
|
|
9
|
+
|
|
10
|
+
class CreateRoomRequest(_message.Message):
|
|
11
|
+
__slots__ = ("name", "empty_timeout", "max_participants", "node_id", "metadata", "egress")
|
|
12
|
+
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
13
|
+
EMPTY_TIMEOUT_FIELD_NUMBER: _ClassVar[int]
|
|
14
|
+
MAX_PARTICIPANTS_FIELD_NUMBER: _ClassVar[int]
|
|
15
|
+
NODE_ID_FIELD_NUMBER: _ClassVar[int]
|
|
16
|
+
METADATA_FIELD_NUMBER: _ClassVar[int]
|
|
17
|
+
EGRESS_FIELD_NUMBER: _ClassVar[int]
|
|
18
|
+
name: str
|
|
19
|
+
empty_timeout: int
|
|
20
|
+
max_participants: int
|
|
21
|
+
node_id: str
|
|
22
|
+
metadata: str
|
|
23
|
+
egress: RoomEgress
|
|
24
|
+
def __init__(self, name: _Optional[str] = ..., empty_timeout: _Optional[int] = ..., max_participants: _Optional[int] = ..., node_id: _Optional[str] = ..., metadata: _Optional[str] = ..., egress: _Optional[_Union[RoomEgress, _Mapping]] = ...) -> None: ...
|
|
25
|
+
|
|
26
|
+
class RoomEgress(_message.Message):
|
|
27
|
+
__slots__ = ("room", "tracks")
|
|
28
|
+
ROOM_FIELD_NUMBER: _ClassVar[int]
|
|
29
|
+
TRACKS_FIELD_NUMBER: _ClassVar[int]
|
|
30
|
+
room: _livekit_egress_pb2.RoomCompositeEgressRequest
|
|
31
|
+
tracks: _livekit_egress_pb2.AutoTrackEgress
|
|
32
|
+
def __init__(self, room: _Optional[_Union[_livekit_egress_pb2.RoomCompositeEgressRequest, _Mapping]] = ..., tracks: _Optional[_Union[_livekit_egress_pb2.AutoTrackEgress, _Mapping]] = ...) -> None: ...
|
|
33
|
+
|
|
34
|
+
class DeleteRoomRequest(_message.Message):
|
|
35
|
+
__slots__ = ("room",)
|
|
36
|
+
ROOM_FIELD_NUMBER: _ClassVar[int]
|
|
37
|
+
room: str
|
|
38
|
+
def __init__(self, room: _Optional[str] = ...) -> None: ...
|
|
39
|
+
|
|
40
|
+
class DeleteRoomResponse(_message.Message):
|
|
41
|
+
__slots__ = ()
|
|
42
|
+
def __init__(self) -> None: ...
|
|
43
|
+
|
|
44
|
+
class RoomParticipantIdentity(_message.Message):
|
|
45
|
+
__slots__ = ("room", "identity")
|
|
46
|
+
ROOM_FIELD_NUMBER: _ClassVar[int]
|
|
47
|
+
IDENTITY_FIELD_NUMBER: _ClassVar[int]
|
|
48
|
+
room: str
|
|
49
|
+
identity: str
|
|
50
|
+
def __init__(self, room: _Optional[str] = ..., identity: _Optional[str] = ...) -> None: ...
|
|
51
|
+
|
|
52
|
+
class RemoveParticipantResponse(_message.Message):
|
|
53
|
+
__slots__ = ()
|
|
54
|
+
def __init__(self) -> None: ...
|
|
55
|
+
|
|
56
|
+
class MuteRoomTrackRequest(_message.Message):
|
|
57
|
+
__slots__ = ("room", "identity", "track_sid", "muted")
|
|
58
|
+
ROOM_FIELD_NUMBER: _ClassVar[int]
|
|
59
|
+
IDENTITY_FIELD_NUMBER: _ClassVar[int]
|
|
60
|
+
TRACK_SID_FIELD_NUMBER: _ClassVar[int]
|
|
61
|
+
MUTED_FIELD_NUMBER: _ClassVar[int]
|
|
62
|
+
room: str
|
|
63
|
+
identity: str
|
|
64
|
+
track_sid: str
|
|
65
|
+
muted: bool
|
|
66
|
+
def __init__(self, room: _Optional[str] = ..., identity: _Optional[str] = ..., track_sid: _Optional[str] = ..., muted: bool = ...) -> None: ...
|
|
67
|
+
|
|
68
|
+
class MuteRoomTrackResponse(_message.Message):
|
|
69
|
+
__slots__ = ("track",)
|
|
70
|
+
TRACK_FIELD_NUMBER: _ClassVar[int]
|
|
71
|
+
track: _livekit_models_pb2.TrackInfo
|
|
72
|
+
def __init__(self, track: _Optional[_Union[_livekit_models_pb2.TrackInfo, _Mapping]] = ...) -> None: ...
|
|
73
|
+
|
|
74
|
+
class UpdateParticipantRequest(_message.Message):
|
|
75
|
+
__slots__ = ("room", "identity", "metadata", "permission", "name")
|
|
76
|
+
ROOM_FIELD_NUMBER: _ClassVar[int]
|
|
77
|
+
IDENTITY_FIELD_NUMBER: _ClassVar[int]
|
|
78
|
+
METADATA_FIELD_NUMBER: _ClassVar[int]
|
|
79
|
+
PERMISSION_FIELD_NUMBER: _ClassVar[int]
|
|
80
|
+
NAME_FIELD_NUMBER: _ClassVar[int]
|
|
81
|
+
room: str
|
|
82
|
+
identity: str
|
|
83
|
+
metadata: str
|
|
84
|
+
permission: _livekit_models_pb2.ParticipantPermission
|
|
85
|
+
name: str
|
|
86
|
+
def __init__(self, room: _Optional[str] = ..., identity: _Optional[str] = ..., metadata: _Optional[str] = ..., permission: _Optional[_Union[_livekit_models_pb2.ParticipantPermission, _Mapping]] = ..., name: _Optional[str] = ...) -> None: ...
|
|
87
|
+
|
|
88
|
+
class UpdateSubscriptionsRequest(_message.Message):
|
|
89
|
+
__slots__ = ("room", "identity", "track_sids", "subscribe", "participant_tracks")
|
|
90
|
+
ROOM_FIELD_NUMBER: _ClassVar[int]
|
|
91
|
+
IDENTITY_FIELD_NUMBER: _ClassVar[int]
|
|
92
|
+
TRACK_SIDS_FIELD_NUMBER: _ClassVar[int]
|
|
93
|
+
SUBSCRIBE_FIELD_NUMBER: _ClassVar[int]
|
|
94
|
+
PARTICIPANT_TRACKS_FIELD_NUMBER: _ClassVar[int]
|
|
95
|
+
room: str
|
|
96
|
+
identity: str
|
|
97
|
+
track_sids: _containers.RepeatedScalarFieldContainer[str]
|
|
98
|
+
subscribe: bool
|
|
99
|
+
participant_tracks: _containers.RepeatedCompositeFieldContainer[_livekit_models_pb2.ParticipantTracks]
|
|
100
|
+
def __init__(self, room: _Optional[str] = ..., identity: _Optional[str] = ..., track_sids: _Optional[_Iterable[str]] = ..., subscribe: bool = ..., participant_tracks: _Optional[_Iterable[_Union[_livekit_models_pb2.ParticipantTracks, _Mapping]]] = ...) -> None: ...
|
|
101
|
+
|
|
102
|
+
class SendDataRequest(_message.Message):
|
|
103
|
+
__slots__ = ("room", "data", "kind", "destination_sids", "topic")
|
|
104
|
+
ROOM_FIELD_NUMBER: _ClassVar[int]
|
|
105
|
+
DATA_FIELD_NUMBER: _ClassVar[int]
|
|
106
|
+
KIND_FIELD_NUMBER: _ClassVar[int]
|
|
107
|
+
DESTINATION_SIDS_FIELD_NUMBER: _ClassVar[int]
|
|
108
|
+
TOPIC_FIELD_NUMBER: _ClassVar[int]
|
|
109
|
+
room: str
|
|
110
|
+
data: bytes
|
|
111
|
+
kind: _livekit_models_pb2.DataPacket.Kind
|
|
112
|
+
destination_sids: _containers.RepeatedScalarFieldContainer[str]
|
|
113
|
+
topic: str
|
|
114
|
+
def __init__(self, room: _Optional[str] = ..., data: _Optional[bytes] = ..., kind: _Optional[_Union[_livekit_models_pb2.DataPacket.Kind, str]] = ..., destination_sids: _Optional[_Iterable[str]] = ..., topic: _Optional[str] = ...) -> None: ...
|
|
115
|
+
|
|
116
|
+
class UpdateRoomMetadataRequest(_message.Message):
|
|
117
|
+
__slots__ = ("room", "metadata")
|
|
118
|
+
ROOM_FIELD_NUMBER: _ClassVar[int]
|
|
119
|
+
METADATA_FIELD_NUMBER: _ClassVar[int]
|
|
120
|
+
room: str
|
|
121
|
+
metadata: str
|
|
122
|
+
def __init__(self, room: _Optional[str] = ..., metadata: _Optional[str] = ...) -> None: ...
|
|
123
|
+
|
|
124
|
+
class ListParticipantsRequest(_message.Message):
|
|
125
|
+
__slots__ = ("room",)
|
|
126
|
+
ROOM_FIELD_NUMBER: _ClassVar[int]
|
|
127
|
+
room: str
|
|
128
|
+
def __init__(self, room: _Optional[str] = ...) -> None: ...
|
|
129
|
+
|
|
130
|
+
class ListParticipantsResponse(_message.Message):
|
|
131
|
+
__slots__ = ("participants",)
|
|
132
|
+
PARTICIPANTS_FIELD_NUMBER: _ClassVar[int]
|
|
133
|
+
participants: _containers.RepeatedCompositeFieldContainer[_livekit_models_pb2.ParticipantInfo]
|
|
134
|
+
def __init__(self, participants: _Optional[_Iterable[_Union[_livekit_models_pb2.ParticipantInfo, _Mapping]]] = ...) -> None: ...
|
|
135
|
+
|
|
136
|
+
class UpdateSubscriptionsResponse(_message.Message):
|
|
137
|
+
__slots__ = ()
|
|
138
|
+
def __init__(self) -> None: ...
|
|
139
|
+
|
|
140
|
+
class SendDataResponse(_message.Message):
|
|
141
|
+
__slots__ = ()
|
|
142
|
+
def __init__(self) -> None: ...
|
|
143
|
+
|
|
144
|
+
class ListRoomsRequest(_message.Message):
|
|
145
|
+
__slots__ = ("names",)
|
|
146
|
+
NAMES_FIELD_NUMBER: _ClassVar[int]
|
|
147
|
+
names: _containers.RepeatedScalarFieldContainer[str]
|
|
148
|
+
def __init__(self, names: _Optional[_Iterable[str]] = ...) -> None: ...
|
|
149
|
+
|
|
150
|
+
class ListRoomsResponse(_message.Message):
|
|
151
|
+
__slots__ = ("rooms",)
|
|
152
|
+
ROOMS_FIELD_NUMBER: _ClassVar[int]
|
|
153
|
+
rooms: _containers.RepeatedCompositeFieldContainer[_livekit_models_pb2.Room]
|
|
154
|
+
def __init__(self, rooms: _Optional[_Iterable[_Union[_livekit_models_pb2.Room, _Mapping]]] = ...) -> None: ...
|