From 2ca8de139593a3a8f4c89bdf86945a5e12978c9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?The=CC=81o=20Monnom?= Date: Tue, 7 Nov 2023 13:43:56 -0800 Subject: [PATCH 1/6] wip --- .gitmodules | 2 +- livekit-api/protocol | 1 - .../generate_proto.sh | 9 +- livekit-protocol/livekit/protocol/__init__.py | 9 + .../livekit/protocol/livekit_agent_pb2.py | 54 + .../livekit/protocol/livekit_agent_pb2.pyi | 325 +++++ .../livekit/protocol/livekit_egress_pb2.py | 130 ++ .../livekit/protocol/livekit_egress_pb2.pyi | 1275 +++++++++++++++++ .../livekit/protocol/livekit_ingress_pb2.py | 62 + .../livekit/protocol/livekit_ingress_pb2.pyi | 542 +++++++ .../livekit/protocol/livekit_models_pb2.py | 106 ++ .../livekit/protocol/livekit_models_pb2.pyi | 1162 +++++++++++++++ .../livekit/protocol/livekit_room_pb2.py | 67 + .../livekit/protocol/livekit_room_pb2.pyi | 416 ++++++ .../livekit/protocol/livekit_webhook_pb2.py | 30 + .../livekit/protocol/livekit_webhook_pb2.pyi | 86 ++ livekit-protocol/livekit/protocol/version.py | 1 + livekit-protocol/protocol | 1 + livekit-protocol/setup.py | 56 + livekit-rtc/generate_proto.sh | 41 - 20 files changed, 4327 insertions(+), 48 deletions(-) delete mode 160000 livekit-api/protocol rename {livekit-api => livekit-protocol}/generate_proto.sh (84%) create mode 100644 livekit-protocol/livekit/protocol/__init__.py create mode 100644 livekit-protocol/livekit/protocol/livekit_agent_pb2.py create mode 100644 livekit-protocol/livekit/protocol/livekit_agent_pb2.pyi create mode 100644 livekit-protocol/livekit/protocol/livekit_egress_pb2.py create mode 100644 livekit-protocol/livekit/protocol/livekit_egress_pb2.pyi create mode 100644 livekit-protocol/livekit/protocol/livekit_ingress_pb2.py create mode 100644 livekit-protocol/livekit/protocol/livekit_ingress_pb2.pyi create mode 100644 livekit-protocol/livekit/protocol/livekit_models_pb2.py create mode 100644 livekit-protocol/livekit/protocol/livekit_models_pb2.pyi create mode 100644 livekit-protocol/livekit/protocol/livekit_room_pb2.py create mode 100644 livekit-protocol/livekit/protocol/livekit_room_pb2.pyi create mode 100644 livekit-protocol/livekit/protocol/livekit_webhook_pb2.py create mode 100644 livekit-protocol/livekit/protocol/livekit_webhook_pb2.pyi create mode 100644 livekit-protocol/livekit/protocol/version.py create mode 160000 livekit-protocol/protocol create mode 100644 livekit-protocol/setup.py delete mode 100755 livekit-rtc/generate_proto.sh diff --git a/.gitmodules b/.gitmodules index 7d1503a3..804076d0 100644 --- a/.gitmodules +++ b/.gitmodules @@ -2,5 +2,5 @@ path = livekit-rtc/rust-sdks url = https://github.com/livekit/rust-sdks [submodule "livekit-api/protocol"] - path = livekit-api/protocol + path = livekit-protocol/protocol url = https://github.com/livekit/protocol diff --git a/livekit-api/protocol b/livekit-api/protocol deleted file mode 160000 index 525419ad..00000000 --- a/livekit-api/protocol +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 525419ade0bf5626cfb52f4bd59f85e92b51be53 diff --git a/livekit-api/generate_proto.sh b/livekit-protocol/generate_proto.sh similarity index 84% rename from livekit-api/generate_proto.sh rename to livekit-protocol/generate_proto.sh index 3c50a81c..72b83961 100755 --- a/livekit-api/generate_proto.sh +++ b/livekit-protocol/generate_proto.sh @@ -17,10 +17,8 @@ # This script requires protobuf-compiler and https://github.com/nipunn1313/mypy-protobuf API_PROTOCOL=./protocol -API_OUT_PYTHON=./livekit/api/_proto +API_OUT_PYTHON=./livekit/protocol -# api - protoc \ -I=$API_PROTOCOL \ --python_out=$API_OUT_PYTHON \ @@ -29,11 +27,12 @@ protoc \ $API_PROTOCOL/livekit_room.proto \ $API_PROTOCOL/livekit_webhook.proto \ $API_PROTOCOL/livekit_ingress.proto \ - $API_PROTOCOL/livekit_models.proto + $API_PROTOCOL/livekit_models.proto \ + $API_PROTOCOL/livekit_agent.proto touch -a "$API_OUT_PYTHON/__init__.py" for f in "$API_OUT_PYTHON"/*.py "$API_OUT_PYTHON"/*.pyi; do - perl -i -pe 's|^(import (livekit_egress_pb2\|livekit_room_pb2\|livekit_webhook_pb2\|livekit_ingress_pb2\|livekit_models_pb2))|from . $1|g' "$f" + perl -i -pe 's|^(import (livekit_egress_pb2\|livekit_room_pb2\|livekit_webhook_pb2\|livekit_ingress_pb2\|livekit_models_pb2\|livekit_agent_pb2))|from . $1|g' "$f" done diff --git a/livekit-protocol/livekit/protocol/__init__.py b/livekit-protocol/livekit/protocol/__init__.py new file mode 100644 index 00000000..974f25c0 --- /dev/null +++ b/livekit-protocol/livekit/protocol/__init__.py @@ -0,0 +1,9 @@ +from . import livekit_agent_pb2 as agent +from . import livekit_egress_pb2 as egress +from . import livekit_ingress_pb2 as ingress +from . import livekit_models_pb2 as models +from . import livekit_room_pb2 as room +from . import livekit_webhook_pb2 as webhook + +from .version import __version__ + diff --git a/livekit-protocol/livekit/protocol/livekit_agent_pb2.py b/livekit-protocol/livekit/protocol/livekit_agent_pb2.py new file mode 100644 index 00000000..e1642361 --- /dev/null +++ b/livekit-protocol/livekit/protocol/livekit_agent_pb2.py @@ -0,0 +1,54 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: livekit_agent.proto +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from . import livekit_models_pb2 as livekit__models__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x13livekit_agent.proto\x12\x07livekit\x1a\x14livekit_models.proto\"6\n\tAgentInfo\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x0f\n\x07version\x18\x03 \x01(\t\"\x92\x01\n\x03Job\x12\n\n\x02id\x18\x01 \x01(\t\x12\x1e\n\x04type\x18\x02 \x01(\x0e\x32\x10.livekit.JobType\x12\x1b\n\x04room\x18\x03 \x01(\x0b\x32\r.livekit.Room\x12\x32\n\x0bparticipant\x18\x04 \x01(\x0b\x32\x18.livekit.ParticipantInfoH\x00\x88\x01\x01\x42\x0e\n\x0c_participant\"\xe4\x01\n\rWorkerMessage\x12\x32\n\x08register\x18\x01 \x01(\x0b\x32\x1e.livekit.RegisterWorkerRequestH\x00\x12\x35\n\x0c\x61vailability\x18\x02 \x01(\x0b\x32\x1d.livekit.AvailabilityResponseH\x00\x12-\n\x06status\x18\x03 \x01(\x0b\x32\x1b.livekit.UpdateWorkerStatusH\x00\x12.\n\njob_update\x18\x04 \x01(\x0b\x32\x18.livekit.JobStatusUpdateH\x00\x42\t\n\x07message\"\xb3\x01\n\rServerMessage\x12\x33\n\x08register\x18\x01 \x01(\x0b\x32\x1f.livekit.RegisterWorkerResponseH\x00\x12\x34\n\x0c\x61vailability\x18\x02 \x01(\x0b\x32\x1c.livekit.AvailabilityRequestH\x00\x12,\n\nassignment\x18\x03 \x01(\x0b\x32\x16.livekit.JobAssignmentH\x00\x42\t\n\x07message\"i\n\x15RegisterWorkerRequest\x12\x1e\n\x04type\x18\x01 \x01(\x0e\x32\x10.livekit.JobType\x12\x11\n\tworker_id\x18\x02 \x01(\t\x12\x0f\n\x07version\x18\x03 \x01(\t\x12\x0c\n\x04name\x18\x04 \x01(\t\"C\n\x16RegisterWorkerResponse\x12\x11\n\tworker_id\x18\x01 \x01(\t\x12\x16\n\x0eserver_version\x18\x02 \x01(\t\"0\n\x13\x41vailabilityRequest\x12\x19\n\x03job\x18\x01 \x01(\x0b\x32\x0c.livekit.Job\"9\n\x14\x41vailabilityResponse\x12\x0e\n\x06job_id\x18\x01 \x01(\t\x12\x11\n\tavailable\x18\x02 \x01(\x08\"g\n\x0fJobStatusUpdate\x12\x0e\n\x06job_id\x18\x01 \x01(\t\x12\"\n\x06status\x18\x02 \x01(\x0e\x32\x12.livekit.JobStatus\x12\r\n\x05\x65rror\x18\x03 \x01(\t\x12\x11\n\tuser_data\x18\x04 \x01(\t\"*\n\rJobAssignment\x12\x19\n\x03job\x18\x01 \x01(\x0b\x32\x0c.livekit.Job\";\n\x12UpdateWorkerStatus\x12%\n\x06status\x18\x01 \x01(\x0e\x32\x15.livekit.WorkerStatus*(\n\x07JobType\x12\x0b\n\x07JT_ROOM\x10\x00\x12\x10\n\x0cJT_PUBLISHER\x10\x01*-\n\x0cWorkerStatus\x12\x10\n\x0cWS_AVAILABLE\x10\x00\x12\x0b\n\x07WS_FULL\x10\x01*:\n\tJobStatus\x12\x0e\n\nJS_UNKNOWN\x10\x00\x12\x0e\n\nJS_SUCCESS\x10\x01\x12\r\n\tJS_FAILED\x10\x02\x42\x46Z#github.com/livekit/protocol/livekit\xaa\x02\rLiveKit.Proto\xea\x02\x0eLiveKit::Protob\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'livekit_agent_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z#github.com/livekit/protocol/livekit\252\002\rLiveKit.Proto\352\002\016LiveKit::Proto' + _globals['_JOBTYPE']._serialized_start=1167 + _globals['_JOBTYPE']._serialized_end=1207 + _globals['_WORKERSTATUS']._serialized_start=1209 + _globals['_WORKERSTATUS']._serialized_end=1254 + _globals['_JOBSTATUS']._serialized_start=1256 + _globals['_JOBSTATUS']._serialized_end=1314 + _globals['_AGENTINFO']._serialized_start=54 + _globals['_AGENTINFO']._serialized_end=108 + _globals['_JOB']._serialized_start=111 + _globals['_JOB']._serialized_end=257 + _globals['_WORKERMESSAGE']._serialized_start=260 + _globals['_WORKERMESSAGE']._serialized_end=488 + _globals['_SERVERMESSAGE']._serialized_start=491 + _globals['_SERVERMESSAGE']._serialized_end=670 + _globals['_REGISTERWORKERREQUEST']._serialized_start=672 + _globals['_REGISTERWORKERREQUEST']._serialized_end=777 + _globals['_REGISTERWORKERRESPONSE']._serialized_start=779 + _globals['_REGISTERWORKERRESPONSE']._serialized_end=846 + _globals['_AVAILABILITYREQUEST']._serialized_start=848 + _globals['_AVAILABILITYREQUEST']._serialized_end=896 + _globals['_AVAILABILITYRESPONSE']._serialized_start=898 + _globals['_AVAILABILITYRESPONSE']._serialized_end=955 + _globals['_JOBSTATUSUPDATE']._serialized_start=957 + _globals['_JOBSTATUSUPDATE']._serialized_end=1060 + _globals['_JOBASSIGNMENT']._serialized_start=1062 + _globals['_JOBASSIGNMENT']._serialized_end=1104 + _globals['_UPDATEWORKERSTATUS']._serialized_start=1106 + _globals['_UPDATEWORKERSTATUS']._serialized_end=1165 +# @@protoc_insertion_point(module_scope) diff --git a/livekit-protocol/livekit/protocol/livekit_agent_pb2.pyi b/livekit-protocol/livekit/protocol/livekit_agent_pb2.pyi new file mode 100644 index 00000000..68ba150f --- /dev/null +++ b/livekit-protocol/livekit/protocol/livekit_agent_pb2.pyi @@ -0,0 +1,325 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +Copyright 2023 LiveKit, Inc. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.internal.enum_type_wrapper +import google.protobuf.message +from . import livekit_models_pb2 +import sys +import typing + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor + +class _JobType: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _JobTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_JobType.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + JT_ROOM: _JobType.ValueType # 0 + JT_PUBLISHER: _JobType.ValueType # 1 + +class JobType(_JobType, metaclass=_JobTypeEnumTypeWrapper): ... + +JT_ROOM: JobType.ValueType # 0 +JT_PUBLISHER: JobType.ValueType # 1 +global___JobType = JobType + +class _WorkerStatus: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _WorkerStatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_WorkerStatus.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + WS_AVAILABLE: _WorkerStatus.ValueType # 0 + WS_FULL: _WorkerStatus.ValueType # 1 + +class WorkerStatus(_WorkerStatus, metaclass=_WorkerStatusEnumTypeWrapper): ... + +WS_AVAILABLE: WorkerStatus.ValueType # 0 +WS_FULL: WorkerStatus.ValueType # 1 +global___WorkerStatus = WorkerStatus + +class _JobStatus: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _JobStatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_JobStatus.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + JS_UNKNOWN: _JobStatus.ValueType # 0 + JS_SUCCESS: _JobStatus.ValueType # 1 + JS_FAILED: _JobStatus.ValueType # 2 + +class JobStatus(_JobStatus, metaclass=_JobStatusEnumTypeWrapper): ... + +JS_UNKNOWN: JobStatus.ValueType # 0 +JS_SUCCESS: JobStatus.ValueType # 1 +JS_FAILED: JobStatus.ValueType # 2 +global___JobStatus = JobStatus + +@typing_extensions.final +class AgentInfo(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ID_FIELD_NUMBER: builtins.int + NAME_FIELD_NUMBER: builtins.int + VERSION_FIELD_NUMBER: builtins.int + id: builtins.str + name: builtins.str + version: builtins.str + def __init__( + self, + *, + id: builtins.str = ..., + name: builtins.str = ..., + version: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["id", b"id", "name", b"name", "version", b"version"]) -> None: ... + +global___AgentInfo = AgentInfo + +@typing_extensions.final +class Job(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ID_FIELD_NUMBER: builtins.int + TYPE_FIELD_NUMBER: builtins.int + ROOM_FIELD_NUMBER: builtins.int + PARTICIPANT_FIELD_NUMBER: builtins.int + id: builtins.str + type: global___JobType.ValueType + @property + def room(self) -> livekit_models_pb2.Room: ... + @property + def participant(self) -> livekit_models_pb2.ParticipantInfo: ... + def __init__( + self, + *, + id: builtins.str = ..., + type: global___JobType.ValueType = ..., + room: livekit_models_pb2.Room | None = ..., + participant: livekit_models_pb2.ParticipantInfo | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["_participant", b"_participant", "participant", b"participant", "room", b"room"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["_participant", b"_participant", "id", b"id", "participant", b"participant", "room", b"room", "type", b"type"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions.Literal["_participant", b"_participant"]) -> typing_extensions.Literal["participant"] | None: ... + +global___Job = Job + +@typing_extensions.final +class WorkerMessage(google.protobuf.message.Message): + """from Worker to Server""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + REGISTER_FIELD_NUMBER: builtins.int + AVAILABILITY_FIELD_NUMBER: builtins.int + STATUS_FIELD_NUMBER: builtins.int + JOB_UPDATE_FIELD_NUMBER: builtins.int + @property + def register(self) -> global___RegisterWorkerRequest: + """agent workers need to register themselves with the server first""" + @property + def availability(self) -> global___AvailabilityResponse: + """worker confirms to server that it's available for a job, or declines it""" + @property + def status(self) -> global___UpdateWorkerStatus: + """worker can update its status to the server, including taking itself out of the pool""" + @property + def job_update(self) -> global___JobStatusUpdate: ... + def __init__( + self, + *, + register: global___RegisterWorkerRequest | None = ..., + availability: global___AvailabilityResponse | None = ..., + status: global___UpdateWorkerStatus | None = ..., + job_update: global___JobStatusUpdate | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["availability", b"availability", "job_update", b"job_update", "message", b"message", "register", b"register", "status", b"status"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["availability", b"availability", "job_update", b"job_update", "message", b"message", "register", b"register", "status", b"status"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions.Literal["message", b"message"]) -> typing_extensions.Literal["register", "availability", "status", "job_update"] | None: ... + +global___WorkerMessage = WorkerMessage + +@typing_extensions.final +class ServerMessage(google.protobuf.message.Message): + """from Server to Worker""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + REGISTER_FIELD_NUMBER: builtins.int + AVAILABILITY_FIELD_NUMBER: builtins.int + ASSIGNMENT_FIELD_NUMBER: builtins.int + @property + def register(self) -> global___RegisterWorkerResponse: + """server confirms the registration, from this moment on, the worker is considered active""" + @property + def availability(self) -> global___AvailabilityRequest: + """server asks worker to confirm availability for a job""" + @property + def assignment(self) -> global___JobAssignment: ... + def __init__( + self, + *, + register: global___RegisterWorkerResponse | None = ..., + availability: global___AvailabilityRequest | None = ..., + assignment: global___JobAssignment | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["assignment", b"assignment", "availability", b"availability", "message", b"message", "register", b"register"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["assignment", b"assignment", "availability", b"availability", "message", b"message", "register", b"register"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions.Literal["message", b"message"]) -> typing_extensions.Literal["register", "availability", "assignment"] | None: ... + +global___ServerMessage = ServerMessage + +@typing_extensions.final +class RegisterWorkerRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TYPE_FIELD_NUMBER: builtins.int + WORKER_ID_FIELD_NUMBER: builtins.int + VERSION_FIELD_NUMBER: builtins.int + NAME_FIELD_NUMBER: builtins.int + type: global___JobType.ValueType + worker_id: builtins.str + version: builtins.str + name: builtins.str + def __init__( + self, + *, + type: global___JobType.ValueType = ..., + worker_id: builtins.str = ..., + version: builtins.str = ..., + name: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["name", b"name", "type", b"type", "version", b"version", "worker_id", b"worker_id"]) -> None: ... + +global___RegisterWorkerRequest = RegisterWorkerRequest + +@typing_extensions.final +class RegisterWorkerResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + WORKER_ID_FIELD_NUMBER: builtins.int + SERVER_VERSION_FIELD_NUMBER: builtins.int + worker_id: builtins.str + server_version: builtins.str + def __init__( + self, + *, + worker_id: builtins.str = ..., + server_version: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["server_version", b"server_version", "worker_id", b"worker_id"]) -> None: ... + +global___RegisterWorkerResponse = RegisterWorkerResponse + +@typing_extensions.final +class AvailabilityRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + JOB_FIELD_NUMBER: builtins.int + @property + def job(self) -> global___Job: ... + def __init__( + self, + *, + job: global___Job | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["job", b"job"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["job", b"job"]) -> None: ... + +global___AvailabilityRequest = AvailabilityRequest + +@typing_extensions.final +class AvailabilityResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + JOB_ID_FIELD_NUMBER: builtins.int + AVAILABLE_FIELD_NUMBER: builtins.int + job_id: builtins.str + available: builtins.bool + def __init__( + self, + *, + job_id: builtins.str = ..., + available: builtins.bool = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["available", b"available", "job_id", b"job_id"]) -> None: ... + +global___AvailabilityResponse = AvailabilityResponse + +@typing_extensions.final +class JobStatusUpdate(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + JOB_ID_FIELD_NUMBER: builtins.int + STATUS_FIELD_NUMBER: builtins.int + ERROR_FIELD_NUMBER: builtins.int + USER_DATA_FIELD_NUMBER: builtins.int + job_id: builtins.str + status: global___JobStatus.ValueType + error: builtins.str + user_data: builtins.str + def __init__( + self, + *, + job_id: builtins.str = ..., + status: global___JobStatus.ValueType = ..., + error: builtins.str = ..., + user_data: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["error", b"error", "job_id", b"job_id", "status", b"status", "user_data", b"user_data"]) -> None: ... + +global___JobStatusUpdate = JobStatusUpdate + +@typing_extensions.final +class JobAssignment(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + JOB_FIELD_NUMBER: builtins.int + @property + def job(self) -> global___Job: ... + def __init__( + self, + *, + job: global___Job | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["job", b"job"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["job", b"job"]) -> None: ... + +global___JobAssignment = JobAssignment + +@typing_extensions.final +class UpdateWorkerStatus(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + STATUS_FIELD_NUMBER: builtins.int + status: global___WorkerStatus.ValueType + def __init__( + self, + *, + status: global___WorkerStatus.ValueType = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["status", b"status"]) -> None: ... + +global___UpdateWorkerStatus = UpdateWorkerStatus diff --git a/livekit-protocol/livekit/protocol/livekit_egress_pb2.py b/livekit-protocol/livekit/protocol/livekit_egress_pb2.py new file mode 100644 index 00000000..9554f299 --- /dev/null +++ b/livekit-protocol/livekit/protocol/livekit_egress_pb2.py @@ -0,0 +1,130 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: livekit_egress.proto +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from . import livekit_models_pb2 as livekit__models__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x14livekit_egress.proto\x12\x07livekit\x1a\x14livekit_models.proto\"\xcd\x04\n\x1aRoomCompositeEgressRequest\x12\x11\n\troom_name\x18\x01 \x01(\t\x12\x0e\n\x06layout\x18\x02 \x01(\t\x12\x12\n\naudio_only\x18\x03 \x01(\x08\x12\x12\n\nvideo_only\x18\x04 \x01(\x08\x12\x17\n\x0f\x63ustom_base_url\x18\x05 \x01(\t\x12.\n\x04\x66ile\x18\x06 \x01(\x0b\x32\x1a.livekit.EncodedFileOutputB\x02\x18\x01H\x00\x12+\n\x06stream\x18\x07 \x01(\x0b\x32\x15.livekit.StreamOutputB\x02\x18\x01H\x00\x12\x34\n\x08segments\x18\n \x01(\x0b\x32\x1c.livekit.SegmentedFileOutputB\x02\x18\x01H\x00\x12\x30\n\x06preset\x18\x08 \x01(\x0e\x32\x1e.livekit.EncodingOptionsPresetH\x01\x12,\n\x08\x61\x64vanced\x18\t \x01(\x0b\x32\x18.livekit.EncodingOptionsH\x01\x12\x30\n\x0c\x66ile_outputs\x18\x0b \x03(\x0b\x32\x1a.livekit.EncodedFileOutput\x12-\n\x0estream_outputs\x18\x0c \x03(\x0b\x32\x15.livekit.StreamOutput\x12\x35\n\x0fsegment_outputs\x18\r \x03(\x0b\x32\x1c.livekit.SegmentedFileOutput\x12+\n\rimage_outputs\x18\x0e \x03(\x0b\x32\x14.livekit.ImageOutputB\x08\n\x06outputB\t\n\x07options\"\xb0\x04\n\x10WebEgressRequest\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\x12\n\naudio_only\x18\x02 \x01(\x08\x12\x12\n\nvideo_only\x18\x03 \x01(\x08\x12\x1a\n\x12\x61wait_start_signal\x18\x0c \x01(\x08\x12.\n\x04\x66ile\x18\x04 \x01(\x0b\x32\x1a.livekit.EncodedFileOutputB\x02\x18\x01H\x00\x12+\n\x06stream\x18\x05 \x01(\x0b\x32\x15.livekit.StreamOutputB\x02\x18\x01H\x00\x12\x34\n\x08segments\x18\x06 \x01(\x0b\x32\x1c.livekit.SegmentedFileOutputB\x02\x18\x01H\x00\x12\x30\n\x06preset\x18\x07 \x01(\x0e\x32\x1e.livekit.EncodingOptionsPresetH\x01\x12,\n\x08\x61\x64vanced\x18\x08 \x01(\x0b\x32\x18.livekit.EncodingOptionsH\x01\x12\x30\n\x0c\x66ile_outputs\x18\t \x03(\x0b\x32\x1a.livekit.EncodedFileOutput\x12-\n\x0estream_outputs\x18\n \x03(\x0b\x32\x15.livekit.StreamOutput\x12\x35\n\x0fsegment_outputs\x18\x0b \x03(\x0b\x32\x1c.livekit.SegmentedFileOutput\x12+\n\rimage_outputs\x18\r \x03(\x0b\x32\x14.livekit.ImageOutputB\x08\n\x06outputB\t\n\x07options\"\x85\x03\n\x18ParticipantEgressRequest\x12\x11\n\troom_name\x18\x01 \x01(\t\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x14\n\x0cscreen_share\x18\x03 \x01(\x08\x12\x30\n\x06preset\x18\x04 \x01(\x0e\x32\x1e.livekit.EncodingOptionsPresetH\x00\x12,\n\x08\x61\x64vanced\x18\x05 \x01(\x0b\x32\x18.livekit.EncodingOptionsH\x00\x12\x30\n\x0c\x66ile_outputs\x18\x06 \x03(\x0b\x32\x1a.livekit.EncodedFileOutput\x12-\n\x0estream_outputs\x18\x07 \x03(\x0b\x32\x15.livekit.StreamOutput\x12\x35\n\x0fsegment_outputs\x18\x08 \x03(\x0b\x32\x1c.livekit.SegmentedFileOutput\x12+\n\rimage_outputs\x18\t \x03(\x0b\x32\x14.livekit.ImageOutputB\t\n\x07options\"\xad\x04\n\x1bTrackCompositeEgressRequest\x12\x11\n\troom_name\x18\x01 \x01(\t\x12\x16\n\x0e\x61udio_track_id\x18\x02 \x01(\t\x12\x16\n\x0evideo_track_id\x18\x03 \x01(\t\x12.\n\x04\x66ile\x18\x04 \x01(\x0b\x32\x1a.livekit.EncodedFileOutputB\x02\x18\x01H\x00\x12+\n\x06stream\x18\x05 \x01(\x0b\x32\x15.livekit.StreamOutputB\x02\x18\x01H\x00\x12\x34\n\x08segments\x18\x08 \x01(\x0b\x32\x1c.livekit.SegmentedFileOutputB\x02\x18\x01H\x00\x12\x30\n\x06preset\x18\x06 \x01(\x0e\x32\x1e.livekit.EncodingOptionsPresetH\x01\x12,\n\x08\x61\x64vanced\x18\x07 \x01(\x0b\x32\x18.livekit.EncodingOptionsH\x01\x12\x30\n\x0c\x66ile_outputs\x18\x0b \x03(\x0b\x32\x1a.livekit.EncodedFileOutput\x12-\n\x0estream_outputs\x18\x0c \x03(\x0b\x32\x15.livekit.StreamOutput\x12\x35\n\x0fsegment_outputs\x18\r \x03(\x0b\x32\x1c.livekit.SegmentedFileOutput\x12+\n\rimage_outputs\x18\x0e \x03(\x0b\x32\x14.livekit.ImageOutputB\x08\n\x06outputB\t\n\x07options\"\x87\x01\n\x12TrackEgressRequest\x12\x11\n\troom_name\x18\x01 \x01(\t\x12\x10\n\x08track_id\x18\x02 \x01(\t\x12)\n\x04\x66ile\x18\x03 \x01(\x0b\x32\x19.livekit.DirectFileOutputH\x00\x12\x17\n\rwebsocket_url\x18\x04 \x01(\tH\x00\x42\x08\n\x06output\"\x8e\x02\n\x11\x45ncodedFileOutput\x12+\n\tfile_type\x18\x01 \x01(\x0e\x32\x18.livekit.EncodedFileType\x12\x10\n\x08\x66ilepath\x18\x02 \x01(\t\x12\x18\n\x10\x64isable_manifest\x18\x06 \x01(\x08\x12\x1f\n\x02s3\x18\x03 \x01(\x0b\x32\x11.livekit.S3UploadH\x00\x12!\n\x03gcp\x18\x04 \x01(\x0b\x32\x12.livekit.GCPUploadH\x00\x12)\n\x05\x61zure\x18\x05 \x01(\x0b\x32\x18.livekit.AzureBlobUploadH\x00\x12\'\n\x06\x61liOSS\x18\x07 \x01(\x0b\x32\x15.livekit.AliOSSUploadH\x00\x42\x08\n\x06output\"\xa0\x03\n\x13SegmentedFileOutput\x12\x30\n\x08protocol\x18\x01 \x01(\x0e\x32\x1e.livekit.SegmentedFileProtocol\x12\x17\n\x0f\x66ilename_prefix\x18\x02 \x01(\t\x12\x15\n\rplaylist_name\x18\x03 \x01(\t\x12\x1a\n\x12live_playlist_name\x18\x0b \x01(\t\x12\x18\n\x10segment_duration\x18\x04 \x01(\r\x12\x35\n\x0f\x66ilename_suffix\x18\n \x01(\x0e\x32\x1c.livekit.SegmentedFileSuffix\x12\x18\n\x10\x64isable_manifest\x18\x08 \x01(\x08\x12\x1f\n\x02s3\x18\x05 \x01(\x0b\x32\x11.livekit.S3UploadH\x00\x12!\n\x03gcp\x18\x06 \x01(\x0b\x32\x12.livekit.GCPUploadH\x00\x12)\n\x05\x61zure\x18\x07 \x01(\x0b\x32\x18.livekit.AzureBlobUploadH\x00\x12\'\n\x06\x61liOSS\x18\t \x01(\x0b\x32\x15.livekit.AliOSSUploadH\x00\x42\x08\n\x06output\"\xe0\x01\n\x10\x44irectFileOutput\x12\x10\n\x08\x66ilepath\x18\x01 \x01(\t\x12\x18\n\x10\x64isable_manifest\x18\x05 \x01(\x08\x12\x1f\n\x02s3\x18\x02 \x01(\x0b\x32\x11.livekit.S3UploadH\x00\x12!\n\x03gcp\x18\x03 \x01(\x0b\x32\x12.livekit.GCPUploadH\x00\x12)\n\x05\x61zure\x18\x04 \x01(\x0b\x32\x18.livekit.AzureBlobUploadH\x00\x12\'\n\x06\x61liOSS\x18\x06 \x01(\x0b\x32\x15.livekit.AliOSSUploadH\x00\x42\x08\n\x06output\"\xf8\x02\n\x0bImageOutput\x12\x18\n\x10\x63\x61pture_interval\x18\x01 \x01(\r\x12\r\n\x05width\x18\x02 \x01(\x05\x12\x0e\n\x06height\x18\x03 \x01(\x05\x12\x17\n\x0f\x66ilename_prefix\x18\x04 \x01(\t\x12\x31\n\x0f\x66ilename_suffix\x18\x05 \x01(\x0e\x32\x18.livekit.ImageFileSuffix\x12(\n\x0bimage_codec\x18\x06 \x01(\x0e\x32\x13.livekit.ImageCodec\x12\x18\n\x10\x64isable_manifest\x18\x07 \x01(\x08\x12\x1f\n\x02s3\x18\x08 \x01(\x0b\x32\x11.livekit.S3UploadH\x00\x12!\n\x03gcp\x18\t \x01(\x0b\x32\x12.livekit.GCPUploadH\x00\x12)\n\x05\x61zure\x18\n \x01(\x0b\x32\x18.livekit.AzureBlobUploadH\x00\x12\'\n\x06\x61liOSS\x18\x0b \x01(\x0b\x32\x15.livekit.AliOSSUploadH\x00\x42\x08\n\x06output\"\xef\x01\n\x08S3Upload\x12\x12\n\naccess_key\x18\x01 \x01(\t\x12\x0e\n\x06secret\x18\x02 \x01(\t\x12\x0e\n\x06region\x18\x03 \x01(\t\x12\x10\n\x08\x65ndpoint\x18\x04 \x01(\t\x12\x0e\n\x06\x62ucket\x18\x05 \x01(\t\x12\x18\n\x10\x66orce_path_style\x18\x06 \x01(\x08\x12\x31\n\x08metadata\x18\x07 \x03(\x0b\x32\x1f.livekit.S3Upload.MetadataEntry\x12\x0f\n\x07tagging\x18\x08 \x01(\t\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"0\n\tGCPUpload\x12\x13\n\x0b\x63redentials\x18\x01 \x01(\t\x12\x0e\n\x06\x62ucket\x18\x02 \x01(\t\"T\n\x0f\x41zureBlobUpload\x12\x14\n\x0c\x61\x63\x63ount_name\x18\x01 \x01(\t\x12\x13\n\x0b\x61\x63\x63ount_key\x18\x02 \x01(\t\x12\x16\n\x0e\x63ontainer_name\x18\x03 \x01(\t\"d\n\x0c\x41liOSSUpload\x12\x12\n\naccess_key\x18\x01 \x01(\t\x12\x0e\n\x06secret\x18\x02 \x01(\t\x12\x0e\n\x06region\x18\x03 \x01(\t\x12\x10\n\x08\x65ndpoint\x18\x04 \x01(\t\x12\x0e\n\x06\x62ucket\x18\x05 \x01(\t\"G\n\x0cStreamOutput\x12)\n\x08protocol\x18\x01 \x01(\x0e\x32\x17.livekit.StreamProtocol\x12\x0c\n\x04urls\x18\x02 \x03(\t\"\xb7\x02\n\x0f\x45ncodingOptions\x12\r\n\x05width\x18\x01 \x01(\x05\x12\x0e\n\x06height\x18\x02 \x01(\x05\x12\r\n\x05\x64\x65pth\x18\x03 \x01(\x05\x12\x11\n\tframerate\x18\x04 \x01(\x05\x12(\n\x0b\x61udio_codec\x18\x05 \x01(\x0e\x32\x13.livekit.AudioCodec\x12\x15\n\raudio_bitrate\x18\x06 \x01(\x05\x12\x15\n\raudio_quality\x18\x0b \x01(\x05\x12\x17\n\x0f\x61udio_frequency\x18\x07 \x01(\x05\x12(\n\x0bvideo_codec\x18\x08 \x01(\x0e\x32\x13.livekit.VideoCodec\x12\x15\n\rvideo_bitrate\x18\t \x01(\x05\x12\x15\n\rvideo_quality\x18\x0c \x01(\x05\x12\x1a\n\x12key_frame_interval\x18\n \x01(\x01\"8\n\x13UpdateLayoutRequest\x12\x11\n\tegress_id\x18\x01 \x01(\t\x12\x0e\n\x06layout\x18\x02 \x01(\t\"]\n\x13UpdateStreamRequest\x12\x11\n\tegress_id\x18\x01 \x01(\t\x12\x17\n\x0f\x61\x64\x64_output_urls\x18\x02 \x03(\t\x12\x1a\n\x12remove_output_urls\x18\x03 \x03(\t\"I\n\x11ListEgressRequest\x12\x11\n\troom_name\x18\x01 \x01(\t\x12\x11\n\tegress_id\x18\x02 \x01(\t\x12\x0e\n\x06\x61\x63tive\x18\x03 \x01(\x08\"8\n\x12ListEgressResponse\x12\"\n\x05items\x18\x01 \x03(\x0b\x32\x13.livekit.EgressInfo\"&\n\x11StopEgressRequest\x12\x11\n\tegress_id\x18\x01 \x01(\t\"\x91\x06\n\nEgressInfo\x12\x11\n\tegress_id\x18\x01 \x01(\t\x12\x0f\n\x07room_id\x18\x02 \x01(\t\x12\x11\n\troom_name\x18\r \x01(\t\x12%\n\x06status\x18\x03 \x01(\x0e\x32\x15.livekit.EgressStatus\x12\x12\n\nstarted_at\x18\n \x01(\x03\x12\x10\n\x08\x65nded_at\x18\x0b \x01(\x03\x12\x12\n\nupdated_at\x18\x12 \x01(\x03\x12\r\n\x05\x65rror\x18\t \x01(\t\x12=\n\x0eroom_composite\x18\x04 \x01(\x0b\x32#.livekit.RoomCompositeEgressRequestH\x00\x12(\n\x03web\x18\x0e \x01(\x0b\x32\x19.livekit.WebEgressRequestH\x00\x12\x38\n\x0bparticipant\x18\x13 \x01(\x0b\x32!.livekit.ParticipantEgressRequestH\x00\x12?\n\x0ftrack_composite\x18\x05 \x01(\x0b\x32$.livekit.TrackCompositeEgressRequestH\x00\x12,\n\x05track\x18\x06 \x01(\x0b\x32\x1b.livekit.TrackEgressRequestH\x00\x12-\n\x06stream\x18\x07 \x01(\x0b\x32\x17.livekit.StreamInfoListB\x02\x18\x01H\x01\x12%\n\x04\x66ile\x18\x08 \x01(\x0b\x32\x11.livekit.FileInfoB\x02\x18\x01H\x01\x12-\n\x08segments\x18\x0c \x01(\x0b\x32\x15.livekit.SegmentsInfoB\x02\x18\x01H\x01\x12+\n\x0estream_results\x18\x0f \x03(\x0b\x32\x13.livekit.StreamInfo\x12\'\n\x0c\x66ile_results\x18\x10 \x03(\x0b\x32\x11.livekit.FileInfo\x12.\n\x0fsegment_results\x18\x11 \x03(\x0b\x32\x15.livekit.SegmentsInfo\x12*\n\rimage_results\x18\x14 \x03(\x0b\x32\x13.livekit.ImagesInfoB\t\n\x07requestB\x08\n\x06result\"7\n\x0eStreamInfoList\x12!\n\x04info\x18\x01 \x03(\x0b\x32\x13.livekit.StreamInfo:\x02\x18\x01\"\xbc\x01\n\nStreamInfo\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\x12\n\nstarted_at\x18\x02 \x01(\x03\x12\x10\n\x08\x65nded_at\x18\x03 \x01(\x03\x12\x10\n\x08\x64uration\x18\x04 \x01(\x03\x12*\n\x06status\x18\x05 \x01(\x0e\x32\x1a.livekit.StreamInfo.Status\x12\r\n\x05\x65rror\x18\x06 \x01(\t\".\n\x06Status\x12\n\n\x06\x41\x43TIVE\x10\x00\x12\x0c\n\x08\x46INISHED\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\"t\n\x08\x46ileInfo\x12\x10\n\x08\x66ilename\x18\x01 \x01(\t\x12\x12\n\nstarted_at\x18\x02 \x01(\x03\x12\x10\n\x08\x65nded_at\x18\x03 \x01(\x03\x12\x10\n\x08\x64uration\x18\x06 \x01(\x03\x12\x0c\n\x04size\x18\x04 \x01(\x03\x12\x10\n\x08location\x18\x05 \x01(\t\"\xd9\x01\n\x0cSegmentsInfo\x12\x15\n\rplaylist_name\x18\x01 \x01(\t\x12\x1a\n\x12live_playlist_name\x18\x08 \x01(\t\x12\x10\n\x08\x64uration\x18\x02 \x01(\x03\x12\x0c\n\x04size\x18\x03 \x01(\x03\x12\x19\n\x11playlist_location\x18\x04 \x01(\t\x12\x1e\n\x16live_playlist_location\x18\t \x01(\t\x12\x15\n\rsegment_count\x18\x05 \x01(\x03\x12\x12\n\nstarted_at\x18\x06 \x01(\x03\x12\x10\n\x08\x65nded_at\x18\x07 \x01(\x03\"G\n\nImagesInfo\x12\x13\n\x0bimage_count\x18\x01 \x01(\x03\x12\x12\n\nstarted_at\x18\x02 \x01(\x03\x12\x10\n\x08\x65nded_at\x18\x03 \x01(\x03\"\xeb\x01\n\x15\x41utoParticipantEgress\x12\x30\n\x06preset\x18\x01 \x01(\x0e\x32\x1e.livekit.EncodingOptionsPresetH\x00\x12,\n\x08\x61\x64vanced\x18\x02 \x01(\x0b\x32\x18.livekit.EncodingOptionsH\x00\x12\x30\n\x0c\x66ile_outputs\x18\x03 \x03(\x0b\x32\x1a.livekit.EncodedFileOutput\x12\x35\n\x0fsegment_outputs\x18\x04 \x03(\x0b\x32\x1c.livekit.SegmentedFileOutputB\t\n\x07options\"\xb6\x01\n\x0f\x41utoTrackEgress\x12\x10\n\x08\x66ilepath\x18\x01 \x01(\t\x12\x18\n\x10\x64isable_manifest\x18\x05 \x01(\x08\x12\x1f\n\x02s3\x18\x02 \x01(\x0b\x32\x11.livekit.S3UploadH\x00\x12!\n\x03gcp\x18\x03 \x01(\x0b\x32\x12.livekit.GCPUploadH\x00\x12)\n\x05\x61zure\x18\x04 \x01(\x0b\x32\x18.livekit.AzureBlobUploadH\x00\x42\x08\n\x06output*9\n\x0f\x45ncodedFileType\x12\x14\n\x10\x44\x45\x46\x41ULT_FILETYPE\x10\x00\x12\x07\n\x03MP4\x10\x01\x12\x07\n\x03OGG\x10\x02*N\n\x15SegmentedFileProtocol\x12#\n\x1f\x44\x45\x46\x41ULT_SEGMENTED_FILE_PROTOCOL\x10\x00\x12\x10\n\x0cHLS_PROTOCOL\x10\x01*/\n\x13SegmentedFileSuffix\x12\t\n\x05INDEX\x10\x00\x12\r\n\tTIMESTAMP\x10\x01*E\n\x0fImageFileSuffix\x12\x16\n\x12IMAGE_SUFFIX_INDEX\x10\x00\x12\x1a\n\x16IMAGE_SUFFIX_TIMESTAMP\x10\x01*0\n\x0eStreamProtocol\x12\x14\n\x10\x44\x45\x46\x41ULT_PROTOCOL\x10\x00\x12\x08\n\x04RTMP\x10\x01*\xcf\x01\n\x15\x45ncodingOptionsPreset\x12\x10\n\x0cH264_720P_30\x10\x00\x12\x10\n\x0cH264_720P_60\x10\x01\x12\x11\n\rH264_1080P_30\x10\x02\x12\x11\n\rH264_1080P_60\x10\x03\x12\x19\n\x15PORTRAIT_H264_720P_30\x10\x04\x12\x19\n\x15PORTRAIT_H264_720P_60\x10\x05\x12\x1a\n\x16PORTRAIT_H264_1080P_30\x10\x06\x12\x1a\n\x16PORTRAIT_H264_1080P_60\x10\x07*\x9f\x01\n\x0c\x45gressStatus\x12\x13\n\x0f\x45GRESS_STARTING\x10\x00\x12\x11\n\rEGRESS_ACTIVE\x10\x01\x12\x11\n\rEGRESS_ENDING\x10\x02\x12\x13\n\x0f\x45GRESS_COMPLETE\x10\x03\x12\x11\n\rEGRESS_FAILED\x10\x04\x12\x12\n\x0e\x45GRESS_ABORTED\x10\x05\x12\x18\n\x14\x45GRESS_LIMIT_REACHED\x10\x06\x32\x9c\x05\n\x06\x45gress\x12T\n\x18StartRoomCompositeEgress\x12#.livekit.RoomCompositeEgressRequest\x1a\x13.livekit.EgressInfo\x12@\n\x0eStartWebEgress\x12\x19.livekit.WebEgressRequest\x1a\x13.livekit.EgressInfo\x12P\n\x16StartParticipantEgress\x12!.livekit.ParticipantEgressRequest\x1a\x13.livekit.EgressInfo\x12V\n\x19StartTrackCompositeEgress\x12$.livekit.TrackCompositeEgressRequest\x1a\x13.livekit.EgressInfo\x12\x44\n\x10StartTrackEgress\x12\x1b.livekit.TrackEgressRequest\x1a\x13.livekit.EgressInfo\x12\x41\n\x0cUpdateLayout\x12\x1c.livekit.UpdateLayoutRequest\x1a\x13.livekit.EgressInfo\x12\x41\n\x0cUpdateStream\x12\x1c.livekit.UpdateStreamRequest\x1a\x13.livekit.EgressInfo\x12\x45\n\nListEgress\x12\x1a.livekit.ListEgressRequest\x1a\x1b.livekit.ListEgressResponse\x12=\n\nStopEgress\x12\x1a.livekit.StopEgressRequest\x1a\x13.livekit.EgressInfoBFZ#github.com/livekit/protocol/livekit\xaa\x02\rLiveKit.Proto\xea\x02\x0eLiveKit::Protob\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'livekit_egress_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z#github.com/livekit/protocol/livekit\252\002\rLiveKit.Proto\352\002\016LiveKit::Proto' + _ROOMCOMPOSITEEGRESSREQUEST.fields_by_name['file']._options = None + _ROOMCOMPOSITEEGRESSREQUEST.fields_by_name['file']._serialized_options = b'\030\001' + _ROOMCOMPOSITEEGRESSREQUEST.fields_by_name['stream']._options = None + _ROOMCOMPOSITEEGRESSREQUEST.fields_by_name['stream']._serialized_options = b'\030\001' + _ROOMCOMPOSITEEGRESSREQUEST.fields_by_name['segments']._options = None + _ROOMCOMPOSITEEGRESSREQUEST.fields_by_name['segments']._serialized_options = b'\030\001' + _WEBEGRESSREQUEST.fields_by_name['file']._options = None + _WEBEGRESSREQUEST.fields_by_name['file']._serialized_options = b'\030\001' + _WEBEGRESSREQUEST.fields_by_name['stream']._options = None + _WEBEGRESSREQUEST.fields_by_name['stream']._serialized_options = b'\030\001' + _WEBEGRESSREQUEST.fields_by_name['segments']._options = None + _WEBEGRESSREQUEST.fields_by_name['segments']._serialized_options = b'\030\001' + _TRACKCOMPOSITEEGRESSREQUEST.fields_by_name['file']._options = None + _TRACKCOMPOSITEEGRESSREQUEST.fields_by_name['file']._serialized_options = b'\030\001' + _TRACKCOMPOSITEEGRESSREQUEST.fields_by_name['stream']._options = None + _TRACKCOMPOSITEEGRESSREQUEST.fields_by_name['stream']._serialized_options = b'\030\001' + _TRACKCOMPOSITEEGRESSREQUEST.fields_by_name['segments']._options = None + _TRACKCOMPOSITEEGRESSREQUEST.fields_by_name['segments']._serialized_options = b'\030\001' + _S3UPLOAD_METADATAENTRY._options = None + _S3UPLOAD_METADATAENTRY._serialized_options = b'8\001' + _EGRESSINFO.fields_by_name['stream']._options = None + _EGRESSINFO.fields_by_name['stream']._serialized_options = b'\030\001' + _EGRESSINFO.fields_by_name['file']._options = None + _EGRESSINFO.fields_by_name['file']._serialized_options = b'\030\001' + _EGRESSINFO.fields_by_name['segments']._options = None + _EGRESSINFO.fields_by_name['segments']._serialized_options = b'\030\001' + _STREAMINFOLIST._options = None + _STREAMINFOLIST._serialized_options = b'\030\001' + _globals['_ENCODEDFILETYPE']._serialized_start=6661 + _globals['_ENCODEDFILETYPE']._serialized_end=6718 + _globals['_SEGMENTEDFILEPROTOCOL']._serialized_start=6720 + _globals['_SEGMENTEDFILEPROTOCOL']._serialized_end=6798 + _globals['_SEGMENTEDFILESUFFIX']._serialized_start=6800 + _globals['_SEGMENTEDFILESUFFIX']._serialized_end=6847 + _globals['_IMAGEFILESUFFIX']._serialized_start=6849 + _globals['_IMAGEFILESUFFIX']._serialized_end=6918 + _globals['_STREAMPROTOCOL']._serialized_start=6920 + _globals['_STREAMPROTOCOL']._serialized_end=6968 + _globals['_ENCODINGOPTIONSPRESET']._serialized_start=6971 + _globals['_ENCODINGOPTIONSPRESET']._serialized_end=7178 + _globals['_EGRESSSTATUS']._serialized_start=7181 + _globals['_EGRESSSTATUS']._serialized_end=7340 + _globals['_ROOMCOMPOSITEEGRESSREQUEST']._serialized_start=56 + _globals['_ROOMCOMPOSITEEGRESSREQUEST']._serialized_end=645 + _globals['_WEBEGRESSREQUEST']._serialized_start=648 + _globals['_WEBEGRESSREQUEST']._serialized_end=1208 + _globals['_PARTICIPANTEGRESSREQUEST']._serialized_start=1211 + _globals['_PARTICIPANTEGRESSREQUEST']._serialized_end=1600 + _globals['_TRACKCOMPOSITEEGRESSREQUEST']._serialized_start=1603 + _globals['_TRACKCOMPOSITEEGRESSREQUEST']._serialized_end=2160 + _globals['_TRACKEGRESSREQUEST']._serialized_start=2163 + _globals['_TRACKEGRESSREQUEST']._serialized_end=2298 + _globals['_ENCODEDFILEOUTPUT']._serialized_start=2301 + _globals['_ENCODEDFILEOUTPUT']._serialized_end=2571 + _globals['_SEGMENTEDFILEOUTPUT']._serialized_start=2574 + _globals['_SEGMENTEDFILEOUTPUT']._serialized_end=2990 + _globals['_DIRECTFILEOUTPUT']._serialized_start=2993 + _globals['_DIRECTFILEOUTPUT']._serialized_end=3217 + _globals['_IMAGEOUTPUT']._serialized_start=3220 + _globals['_IMAGEOUTPUT']._serialized_end=3596 + _globals['_S3UPLOAD']._serialized_start=3599 + _globals['_S3UPLOAD']._serialized_end=3838 + _globals['_S3UPLOAD_METADATAENTRY']._serialized_start=3791 + _globals['_S3UPLOAD_METADATAENTRY']._serialized_end=3838 + _globals['_GCPUPLOAD']._serialized_start=3840 + _globals['_GCPUPLOAD']._serialized_end=3888 + _globals['_AZUREBLOBUPLOAD']._serialized_start=3890 + _globals['_AZUREBLOBUPLOAD']._serialized_end=3974 + _globals['_ALIOSSUPLOAD']._serialized_start=3976 + _globals['_ALIOSSUPLOAD']._serialized_end=4076 + _globals['_STREAMOUTPUT']._serialized_start=4078 + _globals['_STREAMOUTPUT']._serialized_end=4149 + _globals['_ENCODINGOPTIONS']._serialized_start=4152 + _globals['_ENCODINGOPTIONS']._serialized_end=4463 + _globals['_UPDATELAYOUTREQUEST']._serialized_start=4465 + _globals['_UPDATELAYOUTREQUEST']._serialized_end=4521 + _globals['_UPDATESTREAMREQUEST']._serialized_start=4523 + _globals['_UPDATESTREAMREQUEST']._serialized_end=4616 + _globals['_LISTEGRESSREQUEST']._serialized_start=4618 + _globals['_LISTEGRESSREQUEST']._serialized_end=4691 + _globals['_LISTEGRESSRESPONSE']._serialized_start=4693 + _globals['_LISTEGRESSRESPONSE']._serialized_end=4749 + _globals['_STOPEGRESSREQUEST']._serialized_start=4751 + _globals['_STOPEGRESSREQUEST']._serialized_end=4789 + _globals['_EGRESSINFO']._serialized_start=4792 + _globals['_EGRESSINFO']._serialized_end=5577 + _globals['_STREAMINFOLIST']._serialized_start=5579 + _globals['_STREAMINFOLIST']._serialized_end=5634 + _globals['_STREAMINFO']._serialized_start=5637 + _globals['_STREAMINFO']._serialized_end=5825 + _globals['_STREAMINFO_STATUS']._serialized_start=5779 + _globals['_STREAMINFO_STATUS']._serialized_end=5825 + _globals['_FILEINFO']._serialized_start=5827 + _globals['_FILEINFO']._serialized_end=5943 + _globals['_SEGMENTSINFO']._serialized_start=5946 + _globals['_SEGMENTSINFO']._serialized_end=6163 + _globals['_IMAGESINFO']._serialized_start=6165 + _globals['_IMAGESINFO']._serialized_end=6236 + _globals['_AUTOPARTICIPANTEGRESS']._serialized_start=6239 + _globals['_AUTOPARTICIPANTEGRESS']._serialized_end=6474 + _globals['_AUTOTRACKEGRESS']._serialized_start=6477 + _globals['_AUTOTRACKEGRESS']._serialized_end=6659 + _globals['_EGRESS']._serialized_start=7343 + _globals['_EGRESS']._serialized_end=8011 +# @@protoc_insertion_point(module_scope) diff --git a/livekit-protocol/livekit/protocol/livekit_egress_pb2.pyi b/livekit-protocol/livekit/protocol/livekit_egress_pb2.pyi new file mode 100644 index 00000000..7ccd5a7e --- /dev/null +++ b/livekit-protocol/livekit/protocol/livekit_egress_pb2.pyi @@ -0,0 +1,1275 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +Copyright 2023 LiveKit, Inc. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +""" +import builtins +import collections.abc +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.internal.enum_type_wrapper +import google.protobuf.message +from . import livekit_models_pb2 +import sys +import typing + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor + +class _EncodedFileType: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _EncodedFileTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_EncodedFileType.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + DEFAULT_FILETYPE: _EncodedFileType.ValueType # 0 + """file type chosen based on codecs""" + MP4: _EncodedFileType.ValueType # 1 + OGG: _EncodedFileType.ValueType # 2 + +class EncodedFileType(_EncodedFileType, metaclass=_EncodedFileTypeEnumTypeWrapper): ... + +DEFAULT_FILETYPE: EncodedFileType.ValueType # 0 +"""file type chosen based on codecs""" +MP4: EncodedFileType.ValueType # 1 +OGG: EncodedFileType.ValueType # 2 +global___EncodedFileType = EncodedFileType + +class _SegmentedFileProtocol: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _SegmentedFileProtocolEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_SegmentedFileProtocol.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + DEFAULT_SEGMENTED_FILE_PROTOCOL: _SegmentedFileProtocol.ValueType # 0 + HLS_PROTOCOL: _SegmentedFileProtocol.ValueType # 1 + +class SegmentedFileProtocol(_SegmentedFileProtocol, metaclass=_SegmentedFileProtocolEnumTypeWrapper): ... + +DEFAULT_SEGMENTED_FILE_PROTOCOL: SegmentedFileProtocol.ValueType # 0 +HLS_PROTOCOL: SegmentedFileProtocol.ValueType # 1 +global___SegmentedFileProtocol = SegmentedFileProtocol + +class _SegmentedFileSuffix: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _SegmentedFileSuffixEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_SegmentedFileSuffix.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + INDEX: _SegmentedFileSuffix.ValueType # 0 + TIMESTAMP: _SegmentedFileSuffix.ValueType # 1 + +class SegmentedFileSuffix(_SegmentedFileSuffix, metaclass=_SegmentedFileSuffixEnumTypeWrapper): ... + +INDEX: SegmentedFileSuffix.ValueType # 0 +TIMESTAMP: SegmentedFileSuffix.ValueType # 1 +global___SegmentedFileSuffix = SegmentedFileSuffix + +class _ImageFileSuffix: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _ImageFileSuffixEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ImageFileSuffix.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + IMAGE_SUFFIX_INDEX: _ImageFileSuffix.ValueType # 0 + IMAGE_SUFFIX_TIMESTAMP: _ImageFileSuffix.ValueType # 1 + +class ImageFileSuffix(_ImageFileSuffix, metaclass=_ImageFileSuffixEnumTypeWrapper): ... + +IMAGE_SUFFIX_INDEX: ImageFileSuffix.ValueType # 0 +IMAGE_SUFFIX_TIMESTAMP: ImageFileSuffix.ValueType # 1 +global___ImageFileSuffix = ImageFileSuffix + +class _StreamProtocol: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _StreamProtocolEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_StreamProtocol.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + DEFAULT_PROTOCOL: _StreamProtocol.ValueType # 0 + """protocol chosen based on urls""" + RTMP: _StreamProtocol.ValueType # 1 + +class StreamProtocol(_StreamProtocol, metaclass=_StreamProtocolEnumTypeWrapper): ... + +DEFAULT_PROTOCOL: StreamProtocol.ValueType # 0 +"""protocol chosen based on urls""" +RTMP: StreamProtocol.ValueType # 1 +global___StreamProtocol = StreamProtocol + +class _EncodingOptionsPreset: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _EncodingOptionsPresetEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_EncodingOptionsPreset.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + H264_720P_30: _EncodingOptionsPreset.ValueType # 0 + """ 1280x720, 30fps, 3000kpbs, H.264_MAIN / OPUS""" + H264_720P_60: _EncodingOptionsPreset.ValueType # 1 + """ 1280x720, 60fps, 4500kbps, H.264_MAIN / OPUS""" + H264_1080P_30: _EncodingOptionsPreset.ValueType # 2 + """1920x1080, 30fps, 4500kbps, H.264_MAIN / OPUS""" + H264_1080P_60: _EncodingOptionsPreset.ValueType # 3 + """1920x1080, 60fps, 6000kbps, H.264_MAIN / OPUS""" + PORTRAIT_H264_720P_30: _EncodingOptionsPreset.ValueType # 4 + """ 720x1280, 30fps, 3000kpbs, H.264_MAIN / OPUS""" + PORTRAIT_H264_720P_60: _EncodingOptionsPreset.ValueType # 5 + """ 720x1280, 60fps, 4500kbps, H.264_MAIN / OPUS""" + PORTRAIT_H264_1080P_30: _EncodingOptionsPreset.ValueType # 6 + """1080x1920, 30fps, 4500kbps, H.264_MAIN / OPUS""" + PORTRAIT_H264_1080P_60: _EncodingOptionsPreset.ValueType # 7 + """1080x1920, 60fps, 6000kbps, H.264_MAIN / OPUS""" + +class EncodingOptionsPreset(_EncodingOptionsPreset, metaclass=_EncodingOptionsPresetEnumTypeWrapper): ... + +H264_720P_30: EncodingOptionsPreset.ValueType # 0 +""" 1280x720, 30fps, 3000kpbs, H.264_MAIN / OPUS""" +H264_720P_60: EncodingOptionsPreset.ValueType # 1 +""" 1280x720, 60fps, 4500kbps, H.264_MAIN / OPUS""" +H264_1080P_30: EncodingOptionsPreset.ValueType # 2 +"""1920x1080, 30fps, 4500kbps, H.264_MAIN / OPUS""" +H264_1080P_60: EncodingOptionsPreset.ValueType # 3 +"""1920x1080, 60fps, 6000kbps, H.264_MAIN / OPUS""" +PORTRAIT_H264_720P_30: EncodingOptionsPreset.ValueType # 4 +""" 720x1280, 30fps, 3000kpbs, H.264_MAIN / OPUS""" +PORTRAIT_H264_720P_60: EncodingOptionsPreset.ValueType # 5 +""" 720x1280, 60fps, 4500kbps, H.264_MAIN / OPUS""" +PORTRAIT_H264_1080P_30: EncodingOptionsPreset.ValueType # 6 +"""1080x1920, 30fps, 4500kbps, H.264_MAIN / OPUS""" +PORTRAIT_H264_1080P_60: EncodingOptionsPreset.ValueType # 7 +"""1080x1920, 60fps, 6000kbps, H.264_MAIN / OPUS""" +global___EncodingOptionsPreset = EncodingOptionsPreset + +class _EgressStatus: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _EgressStatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_EgressStatus.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + EGRESS_STARTING: _EgressStatus.ValueType # 0 + EGRESS_ACTIVE: _EgressStatus.ValueType # 1 + EGRESS_ENDING: _EgressStatus.ValueType # 2 + EGRESS_COMPLETE: _EgressStatus.ValueType # 3 + EGRESS_FAILED: _EgressStatus.ValueType # 4 + EGRESS_ABORTED: _EgressStatus.ValueType # 5 + EGRESS_LIMIT_REACHED: _EgressStatus.ValueType # 6 + +class EgressStatus(_EgressStatus, metaclass=_EgressStatusEnumTypeWrapper): ... + +EGRESS_STARTING: EgressStatus.ValueType # 0 +EGRESS_ACTIVE: EgressStatus.ValueType # 1 +EGRESS_ENDING: EgressStatus.ValueType # 2 +EGRESS_COMPLETE: EgressStatus.ValueType # 3 +EGRESS_FAILED: EgressStatus.ValueType # 4 +EGRESS_ABORTED: EgressStatus.ValueType # 5 +EGRESS_LIMIT_REACHED: EgressStatus.ValueType # 6 +global___EgressStatus = EgressStatus + +@typing_extensions.final +class RoomCompositeEgressRequest(google.protobuf.message.Message): + """composite using a web browser""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ROOM_NAME_FIELD_NUMBER: builtins.int + LAYOUT_FIELD_NUMBER: builtins.int + AUDIO_ONLY_FIELD_NUMBER: builtins.int + VIDEO_ONLY_FIELD_NUMBER: builtins.int + CUSTOM_BASE_URL_FIELD_NUMBER: builtins.int + FILE_FIELD_NUMBER: builtins.int + STREAM_FIELD_NUMBER: builtins.int + SEGMENTS_FIELD_NUMBER: builtins.int + PRESET_FIELD_NUMBER: builtins.int + ADVANCED_FIELD_NUMBER: builtins.int + FILE_OUTPUTS_FIELD_NUMBER: builtins.int + STREAM_OUTPUTS_FIELD_NUMBER: builtins.int + SEGMENT_OUTPUTS_FIELD_NUMBER: builtins.int + IMAGE_OUTPUTS_FIELD_NUMBER: builtins.int + room_name: builtins.str + """required""" + layout: builtins.str + """(optional)""" + audio_only: builtins.bool + """(default false)""" + video_only: builtins.bool + """(default false)""" + custom_base_url: builtins.str + """template base url (default https://recorder.livekit.io)""" + @property + def file(self) -> global___EncodedFileOutput: ... + @property + def stream(self) -> global___StreamOutput: ... + @property + def segments(self) -> global___SegmentedFileOutput: ... + preset: global___EncodingOptionsPreset.ValueType + """(default H264_720P_30)""" + @property + def advanced(self) -> global___EncodingOptions: + """(optional)""" + @property + def file_outputs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___EncodedFileOutput]: ... + @property + def stream_outputs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___StreamOutput]: ... + @property + def segment_outputs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SegmentedFileOutput]: ... + @property + def image_outputs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ImageOutput]: ... + def __init__( + self, + *, + room_name: builtins.str = ..., + layout: builtins.str = ..., + audio_only: builtins.bool = ..., + video_only: builtins.bool = ..., + custom_base_url: builtins.str = ..., + file: global___EncodedFileOutput | None = ..., + stream: global___StreamOutput | None = ..., + segments: global___SegmentedFileOutput | None = ..., + preset: global___EncodingOptionsPreset.ValueType = ..., + advanced: global___EncodingOptions | None = ..., + file_outputs: collections.abc.Iterable[global___EncodedFileOutput] | None = ..., + stream_outputs: collections.abc.Iterable[global___StreamOutput] | None = ..., + segment_outputs: collections.abc.Iterable[global___SegmentedFileOutput] | None = ..., + image_outputs: collections.abc.Iterable[global___ImageOutput] | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["advanced", b"advanced", "file", b"file", "options", b"options", "output", b"output", "preset", b"preset", "segments", b"segments", "stream", b"stream"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["advanced", b"advanced", "audio_only", b"audio_only", "custom_base_url", b"custom_base_url", "file", b"file", "file_outputs", b"file_outputs", "image_outputs", b"image_outputs", "layout", b"layout", "options", b"options", "output", b"output", "preset", b"preset", "room_name", b"room_name", "segment_outputs", b"segment_outputs", "segments", b"segments", "stream", b"stream", "stream_outputs", b"stream_outputs", "video_only", b"video_only"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing_extensions.Literal["options", b"options"]) -> typing_extensions.Literal["preset", "advanced"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing_extensions.Literal["output", b"output"]) -> typing_extensions.Literal["file", "stream", "segments"] | None: ... + +global___RoomCompositeEgressRequest = RoomCompositeEgressRequest + +@typing_extensions.final +class WebEgressRequest(google.protobuf.message.Message): + """record any website""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + URL_FIELD_NUMBER: builtins.int + AUDIO_ONLY_FIELD_NUMBER: builtins.int + VIDEO_ONLY_FIELD_NUMBER: builtins.int + AWAIT_START_SIGNAL_FIELD_NUMBER: builtins.int + FILE_FIELD_NUMBER: builtins.int + STREAM_FIELD_NUMBER: builtins.int + SEGMENTS_FIELD_NUMBER: builtins.int + PRESET_FIELD_NUMBER: builtins.int + ADVANCED_FIELD_NUMBER: builtins.int + FILE_OUTPUTS_FIELD_NUMBER: builtins.int + STREAM_OUTPUTS_FIELD_NUMBER: builtins.int + SEGMENT_OUTPUTS_FIELD_NUMBER: builtins.int + IMAGE_OUTPUTS_FIELD_NUMBER: builtins.int + url: builtins.str + audio_only: builtins.bool + video_only: builtins.bool + await_start_signal: builtins.bool + @property + def file(self) -> global___EncodedFileOutput: ... + @property + def stream(self) -> global___StreamOutput: ... + @property + def segments(self) -> global___SegmentedFileOutput: ... + preset: global___EncodingOptionsPreset.ValueType + @property + def advanced(self) -> global___EncodingOptions: ... + @property + def file_outputs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___EncodedFileOutput]: ... + @property + def stream_outputs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___StreamOutput]: ... + @property + def segment_outputs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SegmentedFileOutput]: ... + @property + def image_outputs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ImageOutput]: ... + def __init__( + self, + *, + url: builtins.str = ..., + audio_only: builtins.bool = ..., + video_only: builtins.bool = ..., + await_start_signal: builtins.bool = ..., + file: global___EncodedFileOutput | None = ..., + stream: global___StreamOutput | None = ..., + segments: global___SegmentedFileOutput | None = ..., + preset: global___EncodingOptionsPreset.ValueType = ..., + advanced: global___EncodingOptions | None = ..., + file_outputs: collections.abc.Iterable[global___EncodedFileOutput] | None = ..., + stream_outputs: collections.abc.Iterable[global___StreamOutput] | None = ..., + segment_outputs: collections.abc.Iterable[global___SegmentedFileOutput] | None = ..., + image_outputs: collections.abc.Iterable[global___ImageOutput] | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["advanced", b"advanced", "file", b"file", "options", b"options", "output", b"output", "preset", b"preset", "segments", b"segments", "stream", b"stream"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["advanced", b"advanced", "audio_only", b"audio_only", "await_start_signal", b"await_start_signal", "file", b"file", "file_outputs", b"file_outputs", "image_outputs", b"image_outputs", "options", b"options", "output", b"output", "preset", b"preset", "segment_outputs", b"segment_outputs", "segments", b"segments", "stream", b"stream", "stream_outputs", b"stream_outputs", "url", b"url", "video_only", b"video_only"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing_extensions.Literal["options", b"options"]) -> typing_extensions.Literal["preset", "advanced"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing_extensions.Literal["output", b"output"]) -> typing_extensions.Literal["file", "stream", "segments"] | None: ... + +global___WebEgressRequest = WebEgressRequest + +@typing_extensions.final +class ParticipantEgressRequest(google.protobuf.message.Message): + """record audio and video from a single participant""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ROOM_NAME_FIELD_NUMBER: builtins.int + IDENTITY_FIELD_NUMBER: builtins.int + SCREEN_SHARE_FIELD_NUMBER: builtins.int + PRESET_FIELD_NUMBER: builtins.int + ADVANCED_FIELD_NUMBER: builtins.int + FILE_OUTPUTS_FIELD_NUMBER: builtins.int + STREAM_OUTPUTS_FIELD_NUMBER: builtins.int + SEGMENT_OUTPUTS_FIELD_NUMBER: builtins.int + IMAGE_OUTPUTS_FIELD_NUMBER: builtins.int + room_name: builtins.str + """required""" + identity: builtins.str + """required""" + screen_share: builtins.bool + """(default false)""" + preset: global___EncodingOptionsPreset.ValueType + """(default H264_720P_30)""" + @property + def advanced(self) -> global___EncodingOptions: + """(optional)""" + @property + def file_outputs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___EncodedFileOutput]: ... + @property + def stream_outputs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___StreamOutput]: ... + @property + def segment_outputs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SegmentedFileOutput]: ... + @property + def image_outputs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ImageOutput]: ... + def __init__( + self, + *, + room_name: builtins.str = ..., + identity: builtins.str = ..., + screen_share: builtins.bool = ..., + preset: global___EncodingOptionsPreset.ValueType = ..., + advanced: global___EncodingOptions | None = ..., + file_outputs: collections.abc.Iterable[global___EncodedFileOutput] | None = ..., + stream_outputs: collections.abc.Iterable[global___StreamOutput] | None = ..., + segment_outputs: collections.abc.Iterable[global___SegmentedFileOutput] | None = ..., + image_outputs: collections.abc.Iterable[global___ImageOutput] | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["advanced", b"advanced", "options", b"options", "preset", b"preset"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["advanced", b"advanced", "file_outputs", b"file_outputs", "identity", b"identity", "image_outputs", b"image_outputs", "options", b"options", "preset", b"preset", "room_name", b"room_name", "screen_share", b"screen_share", "segment_outputs", b"segment_outputs", "stream_outputs", b"stream_outputs"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions.Literal["options", b"options"]) -> typing_extensions.Literal["preset", "advanced"] | None: ... + +global___ParticipantEgressRequest = ParticipantEgressRequest + +@typing_extensions.final +class TrackCompositeEgressRequest(google.protobuf.message.Message): + """containerize up to one audio and one video track""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ROOM_NAME_FIELD_NUMBER: builtins.int + AUDIO_TRACK_ID_FIELD_NUMBER: builtins.int + VIDEO_TRACK_ID_FIELD_NUMBER: builtins.int + FILE_FIELD_NUMBER: builtins.int + STREAM_FIELD_NUMBER: builtins.int + SEGMENTS_FIELD_NUMBER: builtins.int + PRESET_FIELD_NUMBER: builtins.int + ADVANCED_FIELD_NUMBER: builtins.int + FILE_OUTPUTS_FIELD_NUMBER: builtins.int + STREAM_OUTPUTS_FIELD_NUMBER: builtins.int + SEGMENT_OUTPUTS_FIELD_NUMBER: builtins.int + IMAGE_OUTPUTS_FIELD_NUMBER: builtins.int + room_name: builtins.str + """required""" + audio_track_id: builtins.str + """(optional)""" + video_track_id: builtins.str + """(optional)""" + @property + def file(self) -> global___EncodedFileOutput: ... + @property + def stream(self) -> global___StreamOutput: ... + @property + def segments(self) -> global___SegmentedFileOutput: ... + preset: global___EncodingOptionsPreset.ValueType + """(default H264_720P_30)""" + @property + def advanced(self) -> global___EncodingOptions: + """(optional)""" + @property + def file_outputs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___EncodedFileOutput]: ... + @property + def stream_outputs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___StreamOutput]: ... + @property + def segment_outputs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SegmentedFileOutput]: ... + @property + def image_outputs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ImageOutput]: ... + def __init__( + self, + *, + room_name: builtins.str = ..., + audio_track_id: builtins.str = ..., + video_track_id: builtins.str = ..., + file: global___EncodedFileOutput | None = ..., + stream: global___StreamOutput | None = ..., + segments: global___SegmentedFileOutput | None = ..., + preset: global___EncodingOptionsPreset.ValueType = ..., + advanced: global___EncodingOptions | None = ..., + file_outputs: collections.abc.Iterable[global___EncodedFileOutput] | None = ..., + stream_outputs: collections.abc.Iterable[global___StreamOutput] | None = ..., + segment_outputs: collections.abc.Iterable[global___SegmentedFileOutput] | None = ..., + image_outputs: collections.abc.Iterable[global___ImageOutput] | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["advanced", b"advanced", "file", b"file", "options", b"options", "output", b"output", "preset", b"preset", "segments", b"segments", "stream", b"stream"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["advanced", b"advanced", "audio_track_id", b"audio_track_id", "file", b"file", "file_outputs", b"file_outputs", "image_outputs", b"image_outputs", "options", b"options", "output", b"output", "preset", b"preset", "room_name", b"room_name", "segment_outputs", b"segment_outputs", "segments", b"segments", "stream", b"stream", "stream_outputs", b"stream_outputs", "video_track_id", b"video_track_id"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing_extensions.Literal["options", b"options"]) -> typing_extensions.Literal["preset", "advanced"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing_extensions.Literal["output", b"output"]) -> typing_extensions.Literal["file", "stream", "segments"] | None: ... + +global___TrackCompositeEgressRequest = TrackCompositeEgressRequest + +@typing_extensions.final +class TrackEgressRequest(google.protobuf.message.Message): + """record tracks individually, without transcoding""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ROOM_NAME_FIELD_NUMBER: builtins.int + TRACK_ID_FIELD_NUMBER: builtins.int + FILE_FIELD_NUMBER: builtins.int + WEBSOCKET_URL_FIELD_NUMBER: builtins.int + room_name: builtins.str + """required""" + track_id: builtins.str + """required""" + @property + def file(self) -> global___DirectFileOutput: ... + websocket_url: builtins.str + def __init__( + self, + *, + room_name: builtins.str = ..., + track_id: builtins.str = ..., + file: global___DirectFileOutput | None = ..., + websocket_url: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["file", b"file", "output", b"output", "websocket_url", b"websocket_url"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["file", b"file", "output", b"output", "room_name", b"room_name", "track_id", b"track_id", "websocket_url", b"websocket_url"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions.Literal["output", b"output"]) -> typing_extensions.Literal["file", "websocket_url"] | None: ... + +global___TrackEgressRequest = TrackEgressRequest + +@typing_extensions.final +class EncodedFileOutput(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + FILE_TYPE_FIELD_NUMBER: builtins.int + FILEPATH_FIELD_NUMBER: builtins.int + DISABLE_MANIFEST_FIELD_NUMBER: builtins.int + S3_FIELD_NUMBER: builtins.int + GCP_FIELD_NUMBER: builtins.int + AZURE_FIELD_NUMBER: builtins.int + ALIOSS_FIELD_NUMBER: builtins.int + file_type: global___EncodedFileType.ValueType + """(optional)""" + filepath: builtins.str + """see egress docs for templating (default {room_name}-{time})""" + disable_manifest: builtins.bool + """disable upload of manifest file (default false)""" + @property + def s3(self) -> global___S3Upload: ... + @property + def gcp(self) -> global___GCPUpload: ... + @property + def azure(self) -> global___AzureBlobUpload: ... + @property + def aliOSS(self) -> global___AliOSSUpload: ... + def __init__( + self, + *, + file_type: global___EncodedFileType.ValueType = ..., + filepath: builtins.str = ..., + disable_manifest: builtins.bool = ..., + s3: global___S3Upload | None = ..., + gcp: global___GCPUpload | None = ..., + azure: global___AzureBlobUpload | None = ..., + aliOSS: global___AliOSSUpload | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["aliOSS", b"aliOSS", "azure", b"azure", "gcp", b"gcp", "output", b"output", "s3", b"s3"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["aliOSS", b"aliOSS", "azure", b"azure", "disable_manifest", b"disable_manifest", "file_type", b"file_type", "filepath", b"filepath", "gcp", b"gcp", "output", b"output", "s3", b"s3"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions.Literal["output", b"output"]) -> typing_extensions.Literal["s3", "gcp", "azure", "aliOSS"] | None: ... + +global___EncodedFileOutput = EncodedFileOutput + +@typing_extensions.final +class SegmentedFileOutput(google.protobuf.message.Message): + """Used to generate HLS segments or other kind of segmented output""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PROTOCOL_FIELD_NUMBER: builtins.int + FILENAME_PREFIX_FIELD_NUMBER: builtins.int + PLAYLIST_NAME_FIELD_NUMBER: builtins.int + LIVE_PLAYLIST_NAME_FIELD_NUMBER: builtins.int + SEGMENT_DURATION_FIELD_NUMBER: builtins.int + FILENAME_SUFFIX_FIELD_NUMBER: builtins.int + DISABLE_MANIFEST_FIELD_NUMBER: builtins.int + S3_FIELD_NUMBER: builtins.int + GCP_FIELD_NUMBER: builtins.int + AZURE_FIELD_NUMBER: builtins.int + ALIOSS_FIELD_NUMBER: builtins.int + protocol: global___SegmentedFileProtocol.ValueType + """(optional)""" + filename_prefix: builtins.str + """(optional)""" + playlist_name: builtins.str + """(optional)""" + live_playlist_name: builtins.str + """(optional, disabled if not provided). Path of a live playlist""" + segment_duration: builtins.int + """in seconds (optional)""" + filename_suffix: global___SegmentedFileSuffix.ValueType + """(optional, default INDEX)""" + disable_manifest: builtins.bool + """disable upload of manifest file (default false)""" + @property + def s3(self) -> global___S3Upload: ... + @property + def gcp(self) -> global___GCPUpload: ... + @property + def azure(self) -> global___AzureBlobUpload: ... + @property + def aliOSS(self) -> global___AliOSSUpload: ... + def __init__( + self, + *, + protocol: global___SegmentedFileProtocol.ValueType = ..., + filename_prefix: builtins.str = ..., + playlist_name: builtins.str = ..., + live_playlist_name: builtins.str = ..., + segment_duration: builtins.int = ..., + filename_suffix: global___SegmentedFileSuffix.ValueType = ..., + disable_manifest: builtins.bool = ..., + s3: global___S3Upload | None = ..., + gcp: global___GCPUpload | None = ..., + azure: global___AzureBlobUpload | None = ..., + aliOSS: global___AliOSSUpload | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["aliOSS", b"aliOSS", "azure", b"azure", "gcp", b"gcp", "output", b"output", "s3", b"s3"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["aliOSS", b"aliOSS", "azure", b"azure", "disable_manifest", b"disable_manifest", "filename_prefix", b"filename_prefix", "filename_suffix", b"filename_suffix", "gcp", b"gcp", "live_playlist_name", b"live_playlist_name", "output", b"output", "playlist_name", b"playlist_name", "protocol", b"protocol", "s3", b"s3", "segment_duration", b"segment_duration"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions.Literal["output", b"output"]) -> typing_extensions.Literal["s3", "gcp", "azure", "aliOSS"] | None: ... + +global___SegmentedFileOutput = SegmentedFileOutput + +@typing_extensions.final +class DirectFileOutput(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + FILEPATH_FIELD_NUMBER: builtins.int + DISABLE_MANIFEST_FIELD_NUMBER: builtins.int + S3_FIELD_NUMBER: builtins.int + GCP_FIELD_NUMBER: builtins.int + AZURE_FIELD_NUMBER: builtins.int + ALIOSS_FIELD_NUMBER: builtins.int + filepath: builtins.str + """see egress docs for templating (default {track_id}-{time})""" + disable_manifest: builtins.bool + """disable upload of manifest file (default false)""" + @property + def s3(self) -> global___S3Upload: ... + @property + def gcp(self) -> global___GCPUpload: ... + @property + def azure(self) -> global___AzureBlobUpload: ... + @property + def aliOSS(self) -> global___AliOSSUpload: ... + def __init__( + self, + *, + filepath: builtins.str = ..., + disable_manifest: builtins.bool = ..., + s3: global___S3Upload | None = ..., + gcp: global___GCPUpload | None = ..., + azure: global___AzureBlobUpload | None = ..., + aliOSS: global___AliOSSUpload | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["aliOSS", b"aliOSS", "azure", b"azure", "gcp", b"gcp", "output", b"output", "s3", b"s3"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["aliOSS", b"aliOSS", "azure", b"azure", "disable_manifest", b"disable_manifest", "filepath", b"filepath", "gcp", b"gcp", "output", b"output", "s3", b"s3"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions.Literal["output", b"output"]) -> typing_extensions.Literal["s3", "gcp", "azure", "aliOSS"] | None: ... + +global___DirectFileOutput = DirectFileOutput + +@typing_extensions.final +class ImageOutput(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CAPTURE_INTERVAL_FIELD_NUMBER: builtins.int + WIDTH_FIELD_NUMBER: builtins.int + HEIGHT_FIELD_NUMBER: builtins.int + FILENAME_PREFIX_FIELD_NUMBER: builtins.int + FILENAME_SUFFIX_FIELD_NUMBER: builtins.int + IMAGE_CODEC_FIELD_NUMBER: builtins.int + DISABLE_MANIFEST_FIELD_NUMBER: builtins.int + S3_FIELD_NUMBER: builtins.int + GCP_FIELD_NUMBER: builtins.int + AZURE_FIELD_NUMBER: builtins.int + ALIOSS_FIELD_NUMBER: builtins.int + capture_interval: builtins.int + """in seconds (required)""" + width: builtins.int + """(optional, defaults to track width)""" + height: builtins.int + """(optional, defaults to track height)""" + filename_prefix: builtins.str + """(optional)""" + filename_suffix: global___ImageFileSuffix.ValueType + """(optional, default INDEX)""" + image_codec: livekit_models_pb2.ImageCodec.ValueType + """(optional)""" + disable_manifest: builtins.bool + """disable upload of manifest file (default false)""" + @property + def s3(self) -> global___S3Upload: ... + @property + def gcp(self) -> global___GCPUpload: ... + @property + def azure(self) -> global___AzureBlobUpload: ... + @property + def aliOSS(self) -> global___AliOSSUpload: ... + def __init__( + self, + *, + capture_interval: builtins.int = ..., + width: builtins.int = ..., + height: builtins.int = ..., + filename_prefix: builtins.str = ..., + filename_suffix: global___ImageFileSuffix.ValueType = ..., + image_codec: livekit_models_pb2.ImageCodec.ValueType = ..., + disable_manifest: builtins.bool = ..., + s3: global___S3Upload | None = ..., + gcp: global___GCPUpload | None = ..., + azure: global___AzureBlobUpload | None = ..., + aliOSS: global___AliOSSUpload | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["aliOSS", b"aliOSS", "azure", b"azure", "gcp", b"gcp", "output", b"output", "s3", b"s3"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["aliOSS", b"aliOSS", "azure", b"azure", "capture_interval", b"capture_interval", "disable_manifest", b"disable_manifest", "filename_prefix", b"filename_prefix", "filename_suffix", b"filename_suffix", "gcp", b"gcp", "height", b"height", "image_codec", b"image_codec", "output", b"output", "s3", b"s3", "width", b"width"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions.Literal["output", b"output"]) -> typing_extensions.Literal["s3", "gcp", "azure", "aliOSS"] | None: ... + +global___ImageOutput = ImageOutput + +@typing_extensions.final +class S3Upload(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing_extensions.final + class MetadataEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + key: builtins.str + value: builtins.str + def __init__( + self, + *, + key: builtins.str = ..., + value: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... + + ACCESS_KEY_FIELD_NUMBER: builtins.int + SECRET_FIELD_NUMBER: builtins.int + REGION_FIELD_NUMBER: builtins.int + ENDPOINT_FIELD_NUMBER: builtins.int + BUCKET_FIELD_NUMBER: builtins.int + FORCE_PATH_STYLE_FIELD_NUMBER: builtins.int + METADATA_FIELD_NUMBER: builtins.int + TAGGING_FIELD_NUMBER: builtins.int + access_key: builtins.str + secret: builtins.str + region: builtins.str + endpoint: builtins.str + bucket: builtins.str + force_path_style: builtins.bool + @property + def metadata(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ... + tagging: builtins.str + def __init__( + self, + *, + access_key: builtins.str = ..., + secret: builtins.str = ..., + region: builtins.str = ..., + endpoint: builtins.str = ..., + bucket: builtins.str = ..., + force_path_style: builtins.bool = ..., + metadata: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., + tagging: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["access_key", b"access_key", "bucket", b"bucket", "endpoint", b"endpoint", "force_path_style", b"force_path_style", "metadata", b"metadata", "region", b"region", "secret", b"secret", "tagging", b"tagging"]) -> None: ... + +global___S3Upload = S3Upload + +@typing_extensions.final +class GCPUpload(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CREDENTIALS_FIELD_NUMBER: builtins.int + BUCKET_FIELD_NUMBER: builtins.int + credentials: builtins.str + bucket: builtins.str + def __init__( + self, + *, + credentials: builtins.str = ..., + bucket: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["bucket", b"bucket", "credentials", b"credentials"]) -> None: ... + +global___GCPUpload = GCPUpload + +@typing_extensions.final +class AzureBlobUpload(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ACCOUNT_NAME_FIELD_NUMBER: builtins.int + ACCOUNT_KEY_FIELD_NUMBER: builtins.int + CONTAINER_NAME_FIELD_NUMBER: builtins.int + account_name: builtins.str + account_key: builtins.str + container_name: builtins.str + def __init__( + self, + *, + account_name: builtins.str = ..., + account_key: builtins.str = ..., + container_name: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["account_key", b"account_key", "account_name", b"account_name", "container_name", b"container_name"]) -> None: ... + +global___AzureBlobUpload = AzureBlobUpload + +@typing_extensions.final +class AliOSSUpload(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ACCESS_KEY_FIELD_NUMBER: builtins.int + SECRET_FIELD_NUMBER: builtins.int + REGION_FIELD_NUMBER: builtins.int + ENDPOINT_FIELD_NUMBER: builtins.int + BUCKET_FIELD_NUMBER: builtins.int + access_key: builtins.str + secret: builtins.str + region: builtins.str + endpoint: builtins.str + bucket: builtins.str + def __init__( + self, + *, + access_key: builtins.str = ..., + secret: builtins.str = ..., + region: builtins.str = ..., + endpoint: builtins.str = ..., + bucket: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["access_key", b"access_key", "bucket", b"bucket", "endpoint", b"endpoint", "region", b"region", "secret", b"secret"]) -> None: ... + +global___AliOSSUpload = AliOSSUpload + +@typing_extensions.final +class StreamOutput(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PROTOCOL_FIELD_NUMBER: builtins.int + URLS_FIELD_NUMBER: builtins.int + protocol: global___StreamProtocol.ValueType + """required""" + @property + def urls(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + """required""" + def __init__( + self, + *, + protocol: global___StreamProtocol.ValueType = ..., + urls: collections.abc.Iterable[builtins.str] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["protocol", b"protocol", "urls", b"urls"]) -> None: ... + +global___StreamOutput = StreamOutput + +@typing_extensions.final +class EncodingOptions(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + WIDTH_FIELD_NUMBER: builtins.int + HEIGHT_FIELD_NUMBER: builtins.int + DEPTH_FIELD_NUMBER: builtins.int + FRAMERATE_FIELD_NUMBER: builtins.int + AUDIO_CODEC_FIELD_NUMBER: builtins.int + AUDIO_BITRATE_FIELD_NUMBER: builtins.int + AUDIO_QUALITY_FIELD_NUMBER: builtins.int + AUDIO_FREQUENCY_FIELD_NUMBER: builtins.int + VIDEO_CODEC_FIELD_NUMBER: builtins.int + VIDEO_BITRATE_FIELD_NUMBER: builtins.int + VIDEO_QUALITY_FIELD_NUMBER: builtins.int + KEY_FRAME_INTERVAL_FIELD_NUMBER: builtins.int + width: builtins.int + """(default 1920)""" + height: builtins.int + """(default 1080)""" + depth: builtins.int + """(default 24)""" + framerate: builtins.int + """(default 30)""" + audio_codec: livekit_models_pb2.AudioCodec.ValueType + """(default OPUS)""" + audio_bitrate: builtins.int + """(default 128)""" + audio_quality: builtins.int + """quality setting on audio encoder""" + audio_frequency: builtins.int + """(default 44100)""" + video_codec: livekit_models_pb2.VideoCodec.ValueType + """(default H264_MAIN)""" + video_bitrate: builtins.int + """(default 4500)""" + video_quality: builtins.int + """quality setting on video encoder""" + key_frame_interval: builtins.float + """in seconds (default 4s for streaming, segment duration for segmented output, encoder default for files)""" + def __init__( + self, + *, + width: builtins.int = ..., + height: builtins.int = ..., + depth: builtins.int = ..., + framerate: builtins.int = ..., + audio_codec: livekit_models_pb2.AudioCodec.ValueType = ..., + audio_bitrate: builtins.int = ..., + audio_quality: builtins.int = ..., + audio_frequency: builtins.int = ..., + video_codec: livekit_models_pb2.VideoCodec.ValueType = ..., + video_bitrate: builtins.int = ..., + video_quality: builtins.int = ..., + key_frame_interval: builtins.float = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["audio_bitrate", b"audio_bitrate", "audio_codec", b"audio_codec", "audio_frequency", b"audio_frequency", "audio_quality", b"audio_quality", "depth", b"depth", "framerate", b"framerate", "height", b"height", "key_frame_interval", b"key_frame_interval", "video_bitrate", b"video_bitrate", "video_codec", b"video_codec", "video_quality", b"video_quality", "width", b"width"]) -> None: ... + +global___EncodingOptions = EncodingOptions + +@typing_extensions.final +class UpdateLayoutRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + EGRESS_ID_FIELD_NUMBER: builtins.int + LAYOUT_FIELD_NUMBER: builtins.int + egress_id: builtins.str + layout: builtins.str + def __init__( + self, + *, + egress_id: builtins.str = ..., + layout: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["egress_id", b"egress_id", "layout", b"layout"]) -> None: ... + +global___UpdateLayoutRequest = UpdateLayoutRequest + +@typing_extensions.final +class UpdateStreamRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + EGRESS_ID_FIELD_NUMBER: builtins.int + ADD_OUTPUT_URLS_FIELD_NUMBER: builtins.int + REMOVE_OUTPUT_URLS_FIELD_NUMBER: builtins.int + egress_id: builtins.str + @property + def add_output_urls(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... + @property + def remove_output_urls(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... + def __init__( + self, + *, + egress_id: builtins.str = ..., + add_output_urls: collections.abc.Iterable[builtins.str] | None = ..., + remove_output_urls: collections.abc.Iterable[builtins.str] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["add_output_urls", b"add_output_urls", "egress_id", b"egress_id", "remove_output_urls", b"remove_output_urls"]) -> None: ... + +global___UpdateStreamRequest = UpdateStreamRequest + +@typing_extensions.final +class ListEgressRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ROOM_NAME_FIELD_NUMBER: builtins.int + EGRESS_ID_FIELD_NUMBER: builtins.int + ACTIVE_FIELD_NUMBER: builtins.int + room_name: builtins.str + """(optional, filter by room name)""" + egress_id: builtins.str + """(optional, filter by egress ID)""" + active: builtins.bool + """(optional, list active egress only)""" + def __init__( + self, + *, + room_name: builtins.str = ..., + egress_id: builtins.str = ..., + active: builtins.bool = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["active", b"active", "egress_id", b"egress_id", "room_name", b"room_name"]) -> None: ... + +global___ListEgressRequest = ListEgressRequest + +@typing_extensions.final +class ListEgressResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ITEMS_FIELD_NUMBER: builtins.int + @property + def items(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___EgressInfo]: ... + def __init__( + self, + *, + items: collections.abc.Iterable[global___EgressInfo] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["items", b"items"]) -> None: ... + +global___ListEgressResponse = ListEgressResponse + +@typing_extensions.final +class StopEgressRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + EGRESS_ID_FIELD_NUMBER: builtins.int + egress_id: builtins.str + def __init__( + self, + *, + egress_id: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["egress_id", b"egress_id"]) -> None: ... + +global___StopEgressRequest = StopEgressRequest + +@typing_extensions.final +class EgressInfo(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + EGRESS_ID_FIELD_NUMBER: builtins.int + ROOM_ID_FIELD_NUMBER: builtins.int + ROOM_NAME_FIELD_NUMBER: builtins.int + STATUS_FIELD_NUMBER: builtins.int + STARTED_AT_FIELD_NUMBER: builtins.int + ENDED_AT_FIELD_NUMBER: builtins.int + UPDATED_AT_FIELD_NUMBER: builtins.int + ERROR_FIELD_NUMBER: builtins.int + ROOM_COMPOSITE_FIELD_NUMBER: builtins.int + WEB_FIELD_NUMBER: builtins.int + PARTICIPANT_FIELD_NUMBER: builtins.int + TRACK_COMPOSITE_FIELD_NUMBER: builtins.int + TRACK_FIELD_NUMBER: builtins.int + STREAM_FIELD_NUMBER: builtins.int + FILE_FIELD_NUMBER: builtins.int + SEGMENTS_FIELD_NUMBER: builtins.int + STREAM_RESULTS_FIELD_NUMBER: builtins.int + FILE_RESULTS_FIELD_NUMBER: builtins.int + SEGMENT_RESULTS_FIELD_NUMBER: builtins.int + IMAGE_RESULTS_FIELD_NUMBER: builtins.int + egress_id: builtins.str + room_id: builtins.str + room_name: builtins.str + status: global___EgressStatus.ValueType + started_at: builtins.int + ended_at: builtins.int + updated_at: builtins.int + error: builtins.str + @property + def room_composite(self) -> global___RoomCompositeEgressRequest: ... + @property + def web(self) -> global___WebEgressRequest: ... + @property + def participant(self) -> global___ParticipantEgressRequest: ... + @property + def track_composite(self) -> global___TrackCompositeEgressRequest: ... + @property + def track(self) -> global___TrackEgressRequest: ... + @property + def stream(self) -> global___StreamInfoList: ... + @property + def file(self) -> global___FileInfo: ... + @property + def segments(self) -> global___SegmentsInfo: ... + @property + def stream_results(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___StreamInfo]: ... + @property + def file_results(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___FileInfo]: ... + @property + def segment_results(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SegmentsInfo]: ... + @property + def image_results(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ImagesInfo]: ... + def __init__( + self, + *, + egress_id: builtins.str = ..., + room_id: builtins.str = ..., + room_name: builtins.str = ..., + status: global___EgressStatus.ValueType = ..., + started_at: builtins.int = ..., + ended_at: builtins.int = ..., + updated_at: builtins.int = ..., + error: builtins.str = ..., + room_composite: global___RoomCompositeEgressRequest | None = ..., + web: global___WebEgressRequest | None = ..., + participant: global___ParticipantEgressRequest | None = ..., + track_composite: global___TrackCompositeEgressRequest | None = ..., + track: global___TrackEgressRequest | None = ..., + stream: global___StreamInfoList | None = ..., + file: global___FileInfo | None = ..., + segments: global___SegmentsInfo | None = ..., + stream_results: collections.abc.Iterable[global___StreamInfo] | None = ..., + file_results: collections.abc.Iterable[global___FileInfo] | None = ..., + segment_results: collections.abc.Iterable[global___SegmentsInfo] | None = ..., + image_results: collections.abc.Iterable[global___ImagesInfo] | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["file", b"file", "participant", b"participant", "request", b"request", "result", b"result", "room_composite", b"room_composite", "segments", b"segments", "stream", b"stream", "track", b"track", "track_composite", b"track_composite", "web", b"web"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["egress_id", b"egress_id", "ended_at", b"ended_at", "error", b"error", "file", b"file", "file_results", b"file_results", "image_results", b"image_results", "participant", b"participant", "request", b"request", "result", b"result", "room_composite", b"room_composite", "room_id", b"room_id", "room_name", b"room_name", "segment_results", b"segment_results", "segments", b"segments", "started_at", b"started_at", "status", b"status", "stream", b"stream", "stream_results", b"stream_results", "track", b"track", "track_composite", b"track_composite", "updated_at", b"updated_at", "web", b"web"]) -> None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing_extensions.Literal["request", b"request"]) -> typing_extensions.Literal["room_composite", "web", "participant", "track_composite", "track"] | None: ... + @typing.overload + def WhichOneof(self, oneof_group: typing_extensions.Literal["result", b"result"]) -> typing_extensions.Literal["stream", "file", "segments"] | None: ... + +global___EgressInfo = EgressInfo + +@typing_extensions.final +class StreamInfoList(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + INFO_FIELD_NUMBER: builtins.int + @property + def info(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___StreamInfo]: ... + def __init__( + self, + *, + info: collections.abc.Iterable[global___StreamInfo] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["info", b"info"]) -> None: ... + +global___StreamInfoList = StreamInfoList + +@typing_extensions.final +class StreamInfo(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + class _Status: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + + class _StatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[StreamInfo._Status.ValueType], builtins.type): # noqa: F821 + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + ACTIVE: StreamInfo._Status.ValueType # 0 + FINISHED: StreamInfo._Status.ValueType # 1 + FAILED: StreamInfo._Status.ValueType # 2 + + class Status(_Status, metaclass=_StatusEnumTypeWrapper): ... + ACTIVE: StreamInfo.Status.ValueType # 0 + FINISHED: StreamInfo.Status.ValueType # 1 + FAILED: StreamInfo.Status.ValueType # 2 + + URL_FIELD_NUMBER: builtins.int + STARTED_AT_FIELD_NUMBER: builtins.int + ENDED_AT_FIELD_NUMBER: builtins.int + DURATION_FIELD_NUMBER: builtins.int + STATUS_FIELD_NUMBER: builtins.int + ERROR_FIELD_NUMBER: builtins.int + url: builtins.str + started_at: builtins.int + ended_at: builtins.int + duration: builtins.int + status: global___StreamInfo.Status.ValueType + error: builtins.str + def __init__( + self, + *, + url: builtins.str = ..., + started_at: builtins.int = ..., + ended_at: builtins.int = ..., + duration: builtins.int = ..., + status: global___StreamInfo.Status.ValueType = ..., + error: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["duration", b"duration", "ended_at", b"ended_at", "error", b"error", "started_at", b"started_at", "status", b"status", "url", b"url"]) -> None: ... + +global___StreamInfo = StreamInfo + +@typing_extensions.final +class FileInfo(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + FILENAME_FIELD_NUMBER: builtins.int + STARTED_AT_FIELD_NUMBER: builtins.int + ENDED_AT_FIELD_NUMBER: builtins.int + DURATION_FIELD_NUMBER: builtins.int + SIZE_FIELD_NUMBER: builtins.int + LOCATION_FIELD_NUMBER: builtins.int + filename: builtins.str + started_at: builtins.int + ended_at: builtins.int + duration: builtins.int + size: builtins.int + location: builtins.str + def __init__( + self, + *, + filename: builtins.str = ..., + started_at: builtins.int = ..., + ended_at: builtins.int = ..., + duration: builtins.int = ..., + size: builtins.int = ..., + location: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["duration", b"duration", "ended_at", b"ended_at", "filename", b"filename", "location", b"location", "size", b"size", "started_at", b"started_at"]) -> None: ... + +global___FileInfo = FileInfo + +@typing_extensions.final +class SegmentsInfo(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PLAYLIST_NAME_FIELD_NUMBER: builtins.int + LIVE_PLAYLIST_NAME_FIELD_NUMBER: builtins.int + DURATION_FIELD_NUMBER: builtins.int + SIZE_FIELD_NUMBER: builtins.int + PLAYLIST_LOCATION_FIELD_NUMBER: builtins.int + LIVE_PLAYLIST_LOCATION_FIELD_NUMBER: builtins.int + SEGMENT_COUNT_FIELD_NUMBER: builtins.int + STARTED_AT_FIELD_NUMBER: builtins.int + ENDED_AT_FIELD_NUMBER: builtins.int + playlist_name: builtins.str + live_playlist_name: builtins.str + duration: builtins.int + size: builtins.int + playlist_location: builtins.str + live_playlist_location: builtins.str + segment_count: builtins.int + started_at: builtins.int + ended_at: builtins.int + def __init__( + self, + *, + playlist_name: builtins.str = ..., + live_playlist_name: builtins.str = ..., + duration: builtins.int = ..., + size: builtins.int = ..., + playlist_location: builtins.str = ..., + live_playlist_location: builtins.str = ..., + segment_count: builtins.int = ..., + started_at: builtins.int = ..., + ended_at: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["duration", b"duration", "ended_at", b"ended_at", "live_playlist_location", b"live_playlist_location", "live_playlist_name", b"live_playlist_name", "playlist_location", b"playlist_location", "playlist_name", b"playlist_name", "segment_count", b"segment_count", "size", b"size", "started_at", b"started_at"]) -> None: ... + +global___SegmentsInfo = SegmentsInfo + +@typing_extensions.final +class ImagesInfo(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + IMAGE_COUNT_FIELD_NUMBER: builtins.int + STARTED_AT_FIELD_NUMBER: builtins.int + ENDED_AT_FIELD_NUMBER: builtins.int + image_count: builtins.int + started_at: builtins.int + ended_at: builtins.int + def __init__( + self, + *, + image_count: builtins.int = ..., + started_at: builtins.int = ..., + ended_at: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["ended_at", b"ended_at", "image_count", b"image_count", "started_at", b"started_at"]) -> None: ... + +global___ImagesInfo = ImagesInfo + +@typing_extensions.final +class AutoParticipantEgress(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PRESET_FIELD_NUMBER: builtins.int + ADVANCED_FIELD_NUMBER: builtins.int + FILE_OUTPUTS_FIELD_NUMBER: builtins.int + SEGMENT_OUTPUTS_FIELD_NUMBER: builtins.int + preset: global___EncodingOptionsPreset.ValueType + """(default H264_720P_30)""" + @property + def advanced(self) -> global___EncodingOptions: + """(optional)""" + @property + def file_outputs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___EncodedFileOutput]: ... + @property + def segment_outputs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SegmentedFileOutput]: ... + def __init__( + self, + *, + preset: global___EncodingOptionsPreset.ValueType = ..., + advanced: global___EncodingOptions | None = ..., + file_outputs: collections.abc.Iterable[global___EncodedFileOutput] | None = ..., + segment_outputs: collections.abc.Iterable[global___SegmentedFileOutput] | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["advanced", b"advanced", "options", b"options", "preset", b"preset"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["advanced", b"advanced", "file_outputs", b"file_outputs", "options", b"options", "preset", b"preset", "segment_outputs", b"segment_outputs"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions.Literal["options", b"options"]) -> typing_extensions.Literal["preset", "advanced"] | None: ... + +global___AutoParticipantEgress = AutoParticipantEgress + +@typing_extensions.final +class AutoTrackEgress(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + FILEPATH_FIELD_NUMBER: builtins.int + DISABLE_MANIFEST_FIELD_NUMBER: builtins.int + S3_FIELD_NUMBER: builtins.int + GCP_FIELD_NUMBER: builtins.int + AZURE_FIELD_NUMBER: builtins.int + filepath: builtins.str + """see docs for templating (default {track_id}-{time})""" + disable_manifest: builtins.bool + """disables upload of json manifest file (default false)""" + @property + def s3(self) -> global___S3Upload: ... + @property + def gcp(self) -> global___GCPUpload: ... + @property + def azure(self) -> global___AzureBlobUpload: ... + def __init__( + self, + *, + filepath: builtins.str = ..., + disable_manifest: builtins.bool = ..., + s3: global___S3Upload | None = ..., + gcp: global___GCPUpload | None = ..., + azure: global___AzureBlobUpload | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["azure", b"azure", "gcp", b"gcp", "output", b"output", "s3", b"s3"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["azure", b"azure", "disable_manifest", b"disable_manifest", "filepath", b"filepath", "gcp", b"gcp", "output", b"output", "s3", b"s3"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions.Literal["output", b"output"]) -> typing_extensions.Literal["s3", "gcp", "azure"] | None: ... + +global___AutoTrackEgress = AutoTrackEgress diff --git a/livekit-protocol/livekit/protocol/livekit_ingress_pb2.py b/livekit-protocol/livekit/protocol/livekit_ingress_pb2.py new file mode 100644 index 00000000..e44c6cfb --- /dev/null +++ b/livekit-protocol/livekit/protocol/livekit_ingress_pb2.py @@ -0,0 +1,62 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: livekit_ingress.proto +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from . import livekit_models_pb2 as livekit__models__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x15livekit_ingress.proto\x12\x07livekit\x1a\x14livekit_models.proto\"\x9d\x02\n\x14\x43reateIngressRequest\x12)\n\ninput_type\x18\x01 \x01(\x0e\x32\x15.livekit.IngressInput\x12\x0b\n\x03url\x18\t \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x11\n\troom_name\x18\x03 \x01(\t\x12\x1c\n\x14participant_identity\x18\x04 \x01(\t\x12\x18\n\x10participant_name\x18\x05 \x01(\t\x12\x1a\n\x12\x62ypass_transcoding\x18\x08 \x01(\x08\x12+\n\x05\x61udio\x18\x06 \x01(\x0b\x32\x1c.livekit.IngressAudioOptions\x12+\n\x05video\x18\x07 \x01(\x0b\x32\x1c.livekit.IngressVideoOptions\"\xcd\x01\n\x13IngressAudioOptions\x12\x0c\n\x04name\x18\x01 \x01(\t\x12$\n\x06source\x18\x02 \x01(\x0e\x32\x14.livekit.TrackSource\x12\x35\n\x06preset\x18\x03 \x01(\x0e\x32#.livekit.IngressAudioEncodingPresetH\x00\x12\x37\n\x07options\x18\x04 \x01(\x0b\x32$.livekit.IngressAudioEncodingOptionsH\x00\x42\x12\n\x10\x65ncoding_options\"\xcd\x01\n\x13IngressVideoOptions\x12\x0c\n\x04name\x18\x01 \x01(\t\x12$\n\x06source\x18\x02 \x01(\x0e\x32\x14.livekit.TrackSource\x12\x35\n\x06preset\x18\x03 \x01(\x0e\x32#.livekit.IngressVideoEncodingPresetH\x00\x12\x37\n\x07options\x18\x04 \x01(\x0b\x32$.livekit.IngressVideoEncodingOptionsH\x00\x42\x12\n\x10\x65ncoding_options\"\x7f\n\x1bIngressAudioEncodingOptions\x12(\n\x0b\x61udio_codec\x18\x01 \x01(\x0e\x32\x13.livekit.AudioCodec\x12\x0f\n\x07\x62itrate\x18\x02 \x01(\r\x12\x13\n\x0b\x64isable_dtx\x18\x03 \x01(\x08\x12\x10\n\x08\x63hannels\x18\x04 \x01(\r\"\x80\x01\n\x1bIngressVideoEncodingOptions\x12(\n\x0bvideo_codec\x18\x01 \x01(\x0e\x32\x13.livekit.VideoCodec\x12\x12\n\nframe_rate\x18\x02 \x01(\x01\x12#\n\x06layers\x18\x03 \x03(\x0b\x32\x13.livekit.VideoLayer\"\xf4\x02\n\x0bIngressInfo\x12\x12\n\ningress_id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x12\n\nstream_key\x18\x03 \x01(\t\x12\x0b\n\x03url\x18\x04 \x01(\t\x12)\n\ninput_type\x18\x05 \x01(\x0e\x32\x15.livekit.IngressInput\x12\x1a\n\x12\x62ypass_transcoding\x18\r \x01(\x08\x12+\n\x05\x61udio\x18\x06 \x01(\x0b\x32\x1c.livekit.IngressAudioOptions\x12+\n\x05video\x18\x07 \x01(\x0b\x32\x1c.livekit.IngressVideoOptions\x12\x11\n\troom_name\x18\x08 \x01(\t\x12\x1c\n\x14participant_identity\x18\t \x01(\t\x12\x18\n\x10participant_name\x18\n \x01(\t\x12\x10\n\x08reusable\x18\x0b \x01(\x08\x12$\n\x05state\x18\x0c \x01(\x0b\x32\x15.livekit.IngressState\"\x8a\x03\n\x0cIngressState\x12,\n\x06status\x18\x01 \x01(\x0e\x32\x1c.livekit.IngressState.Status\x12\r\n\x05\x65rror\x18\x02 \x01(\t\x12\'\n\x05video\x18\x03 \x01(\x0b\x32\x18.livekit.InputVideoState\x12\'\n\x05\x61udio\x18\x04 \x01(\x0b\x32\x18.livekit.InputAudioState\x12\x0f\n\x07room_id\x18\x05 \x01(\t\x12\x12\n\nstarted_at\x18\x07 \x01(\x03\x12\x10\n\x08\x65nded_at\x18\x08 \x01(\x03\x12\x13\n\x0bresource_id\x18\t \x01(\t\x12\"\n\x06tracks\x18\x06 \x03(\x0b\x32\x12.livekit.TrackInfo\"{\n\x06Status\x12\x15\n\x11\x45NDPOINT_INACTIVE\x10\x00\x12\x16\n\x12\x45NDPOINT_BUFFERING\x10\x01\x12\x17\n\x13\x45NDPOINT_PUBLISHING\x10\x02\x12\x12\n\x0e\x45NDPOINT_ERROR\x10\x03\x12\x15\n\x11\x45NDPOINT_COMPLETE\x10\x04\"o\n\x0fInputVideoState\x12\x11\n\tmime_type\x18\x01 \x01(\t\x12\x17\n\x0f\x61verage_bitrate\x18\x02 \x01(\r\x12\r\n\x05width\x18\x03 \x01(\r\x12\x0e\n\x06height\x18\x04 \x01(\r\x12\x11\n\tframerate\x18\x05 \x01(\x01\"d\n\x0fInputAudioState\x12\x11\n\tmime_type\x18\x01 \x01(\t\x12\x17\n\x0f\x61verage_bitrate\x18\x02 \x01(\r\x12\x10\n\x08\x63hannels\x18\x03 \x01(\r\x12\x13\n\x0bsample_rate\x18\x04 \x01(\r\"\x95\x02\n\x14UpdateIngressRequest\x12\x12\n\ningress_id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x11\n\troom_name\x18\x03 \x01(\t\x12\x1c\n\x14participant_identity\x18\x04 \x01(\t\x12\x18\n\x10participant_name\x18\x05 \x01(\t\x12\x1f\n\x12\x62ypass_transcoding\x18\x08 \x01(\x08H\x00\x88\x01\x01\x12+\n\x05\x61udio\x18\x06 \x01(\x0b\x32\x1c.livekit.IngressAudioOptions\x12+\n\x05video\x18\x07 \x01(\x0b\x32\x1c.livekit.IngressVideoOptionsB\x15\n\x13_bypass_transcoding\";\n\x12ListIngressRequest\x12\x11\n\troom_name\x18\x01 \x01(\t\x12\x12\n\ningress_id\x18\x02 \x01(\t\":\n\x13ListIngressResponse\x12#\n\x05items\x18\x01 \x03(\x0b\x32\x14.livekit.IngressInfo\"*\n\x14\x44\x65leteIngressRequest\x12\x12\n\ningress_id\x18\x01 \x01(\t*=\n\x0cIngressInput\x12\x0e\n\nRTMP_INPUT\x10\x00\x12\x0e\n\nWHIP_INPUT\x10\x01\x12\r\n\tURL_INPUT\x10\x02*I\n\x1aIngressAudioEncodingPreset\x12\x16\n\x12OPUS_STEREO_96KBPS\x10\x00\x12\x13\n\x0fOPUS_MONO_64KBS\x10\x01*\x84\x03\n\x1aIngressVideoEncodingPreset\x12\x1c\n\x18H264_720P_30FPS_3_LAYERS\x10\x00\x12\x1d\n\x19H264_1080P_30FPS_3_LAYERS\x10\x01\x12\x1c\n\x18H264_540P_25FPS_2_LAYERS\x10\x02\x12\x1b\n\x17H264_720P_30FPS_1_LAYER\x10\x03\x12\x1c\n\x18H264_1080P_30FPS_1_LAYER\x10\x04\x12(\n$H264_720P_30FPS_3_LAYERS_HIGH_MOTION\x10\x05\x12)\n%H264_1080P_30FPS_3_LAYERS_HIGH_MOTION\x10\x06\x12(\n$H264_540P_25FPS_2_LAYERS_HIGH_MOTION\x10\x07\x12\'\n#H264_720P_30FPS_1_LAYER_HIGH_MOTION\x10\x08\x12(\n$H264_1080P_30FPS_1_LAYER_HIGH_MOTION\x10\t2\xa5\x02\n\x07Ingress\x12\x44\n\rCreateIngress\x12\x1d.livekit.CreateIngressRequest\x1a\x14.livekit.IngressInfo\x12\x44\n\rUpdateIngress\x12\x1d.livekit.UpdateIngressRequest\x1a\x14.livekit.IngressInfo\x12H\n\x0bListIngress\x12\x1b.livekit.ListIngressRequest\x1a\x1c.livekit.ListIngressResponse\x12\x44\n\rDeleteIngress\x12\x1d.livekit.DeleteIngressRequest\x1a\x14.livekit.IngressInfoBFZ#github.com/livekit/protocol/livekit\xaa\x02\rLiveKit.Proto\xea\x02\x0eLiveKit::Protob\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'livekit_ingress_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z#github.com/livekit/protocol/livekit\252\002\rLiveKit.Proto\352\002\016LiveKit::Proto' + _globals['_INGRESSINPUT']._serialized_start=2452 + _globals['_INGRESSINPUT']._serialized_end=2513 + _globals['_INGRESSAUDIOENCODINGPRESET']._serialized_start=2515 + _globals['_INGRESSAUDIOENCODINGPRESET']._serialized_end=2588 + _globals['_INGRESSVIDEOENCODINGPRESET']._serialized_start=2591 + _globals['_INGRESSVIDEOENCODINGPRESET']._serialized_end=2979 + _globals['_CREATEINGRESSREQUEST']._serialized_start=57 + _globals['_CREATEINGRESSREQUEST']._serialized_end=342 + _globals['_INGRESSAUDIOOPTIONS']._serialized_start=345 + _globals['_INGRESSAUDIOOPTIONS']._serialized_end=550 + _globals['_INGRESSVIDEOOPTIONS']._serialized_start=553 + _globals['_INGRESSVIDEOOPTIONS']._serialized_end=758 + _globals['_INGRESSAUDIOENCODINGOPTIONS']._serialized_start=760 + _globals['_INGRESSAUDIOENCODINGOPTIONS']._serialized_end=887 + _globals['_INGRESSVIDEOENCODINGOPTIONS']._serialized_start=890 + _globals['_INGRESSVIDEOENCODINGOPTIONS']._serialized_end=1018 + _globals['_INGRESSINFO']._serialized_start=1021 + _globals['_INGRESSINFO']._serialized_end=1393 + _globals['_INGRESSSTATE']._serialized_start=1396 + _globals['_INGRESSSTATE']._serialized_end=1790 + _globals['_INGRESSSTATE_STATUS']._serialized_start=1667 + _globals['_INGRESSSTATE_STATUS']._serialized_end=1790 + _globals['_INPUTVIDEOSTATE']._serialized_start=1792 + _globals['_INPUTVIDEOSTATE']._serialized_end=1903 + _globals['_INPUTAUDIOSTATE']._serialized_start=1905 + _globals['_INPUTAUDIOSTATE']._serialized_end=2005 + _globals['_UPDATEINGRESSREQUEST']._serialized_start=2008 + _globals['_UPDATEINGRESSREQUEST']._serialized_end=2285 + _globals['_LISTINGRESSREQUEST']._serialized_start=2287 + _globals['_LISTINGRESSREQUEST']._serialized_end=2346 + _globals['_LISTINGRESSRESPONSE']._serialized_start=2348 + _globals['_LISTINGRESSRESPONSE']._serialized_end=2406 + _globals['_DELETEINGRESSREQUEST']._serialized_start=2408 + _globals['_DELETEINGRESSREQUEST']._serialized_end=2450 + _globals['_INGRESS']._serialized_start=2982 + _globals['_INGRESS']._serialized_end=3275 +# @@protoc_insertion_point(module_scope) diff --git a/livekit-protocol/livekit/protocol/livekit_ingress_pb2.pyi b/livekit-protocol/livekit/protocol/livekit_ingress_pb2.pyi new file mode 100644 index 00000000..4867b22f --- /dev/null +++ b/livekit-protocol/livekit/protocol/livekit_ingress_pb2.pyi @@ -0,0 +1,542 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +Copyright 2023 LiveKit, Inc. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +""" +import builtins +import collections.abc +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.internal.enum_type_wrapper +import google.protobuf.message +from . import livekit_models_pb2 +import sys +import typing + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor + +class _IngressInput: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _IngressInputEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_IngressInput.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + RTMP_INPUT: _IngressInput.ValueType # 0 + WHIP_INPUT: _IngressInput.ValueType # 1 + URL_INPUT: _IngressInput.ValueType # 2 + """Pull from the provided URL. Only HTTP url are supported, serving either a single media file or a HLS stream""" + +class IngressInput(_IngressInput, metaclass=_IngressInputEnumTypeWrapper): ... + +RTMP_INPUT: IngressInput.ValueType # 0 +WHIP_INPUT: IngressInput.ValueType # 1 +URL_INPUT: IngressInput.ValueType # 2 +"""Pull from the provided URL. Only HTTP url are supported, serving either a single media file or a HLS stream""" +global___IngressInput = IngressInput + +class _IngressAudioEncodingPreset: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _IngressAudioEncodingPresetEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_IngressAudioEncodingPreset.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + OPUS_STEREO_96KBPS: _IngressAudioEncodingPreset.ValueType # 0 + """OPUS, 2 channels, 96kbps""" + OPUS_MONO_64KBS: _IngressAudioEncodingPreset.ValueType # 1 + """OPUS, 1 channel, 64kbps""" + +class IngressAudioEncodingPreset(_IngressAudioEncodingPreset, metaclass=_IngressAudioEncodingPresetEnumTypeWrapper): ... + +OPUS_STEREO_96KBPS: IngressAudioEncodingPreset.ValueType # 0 +"""OPUS, 2 channels, 96kbps""" +OPUS_MONO_64KBS: IngressAudioEncodingPreset.ValueType # 1 +"""OPUS, 1 channel, 64kbps""" +global___IngressAudioEncodingPreset = IngressAudioEncodingPreset + +class _IngressVideoEncodingPreset: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _IngressVideoEncodingPresetEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_IngressVideoEncodingPreset.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + H264_720P_30FPS_3_LAYERS: _IngressVideoEncodingPreset.ValueType # 0 + """1280x720, 30fps, 1900kbps main layer, 3 layers total""" + H264_1080P_30FPS_3_LAYERS: _IngressVideoEncodingPreset.ValueType # 1 + """1980x1080, 30fps, 3500kbps main layer, 3 layers total""" + H264_540P_25FPS_2_LAYERS: _IngressVideoEncodingPreset.ValueType # 2 + """ 960x540, 25fps, 1000kbps main layer, 2 layers total""" + H264_720P_30FPS_1_LAYER: _IngressVideoEncodingPreset.ValueType # 3 + """1280x720, 30fps, 1900kbps, no simulcast""" + H264_1080P_30FPS_1_LAYER: _IngressVideoEncodingPreset.ValueType # 4 + """1980x1080, 30fps, 3500kbps, no simulcast""" + H264_720P_30FPS_3_LAYERS_HIGH_MOTION: _IngressVideoEncodingPreset.ValueType # 5 + """1280x720, 30fps, 2500kbps main layer, 3 layers total, higher bitrate for high motion, harder to encode content""" + H264_1080P_30FPS_3_LAYERS_HIGH_MOTION: _IngressVideoEncodingPreset.ValueType # 6 + """1980x1080, 30fps, 4500kbps main layer, 3 layers total, higher bitrate for high motion, harder to encode content""" + H264_540P_25FPS_2_LAYERS_HIGH_MOTION: _IngressVideoEncodingPreset.ValueType # 7 + """ 960x540, 25fps, 1300kbps main layer, 2 layers total, higher bitrate for high motion, harder to encode content""" + H264_720P_30FPS_1_LAYER_HIGH_MOTION: _IngressVideoEncodingPreset.ValueType # 8 + """1280x720, 30fps, 2500kbps, no simulcast, higher bitrate for high motion, harder to encode content""" + H264_1080P_30FPS_1_LAYER_HIGH_MOTION: _IngressVideoEncodingPreset.ValueType # 9 + """1980x1080, 30fps, 4500kbps, no simulcast, higher bitrate for high motion, harder to encode content""" + +class IngressVideoEncodingPreset(_IngressVideoEncodingPreset, metaclass=_IngressVideoEncodingPresetEnumTypeWrapper): ... + +H264_720P_30FPS_3_LAYERS: IngressVideoEncodingPreset.ValueType # 0 +"""1280x720, 30fps, 1900kbps main layer, 3 layers total""" +H264_1080P_30FPS_3_LAYERS: IngressVideoEncodingPreset.ValueType # 1 +"""1980x1080, 30fps, 3500kbps main layer, 3 layers total""" +H264_540P_25FPS_2_LAYERS: IngressVideoEncodingPreset.ValueType # 2 +""" 960x540, 25fps, 1000kbps main layer, 2 layers total""" +H264_720P_30FPS_1_LAYER: IngressVideoEncodingPreset.ValueType # 3 +"""1280x720, 30fps, 1900kbps, no simulcast""" +H264_1080P_30FPS_1_LAYER: IngressVideoEncodingPreset.ValueType # 4 +"""1980x1080, 30fps, 3500kbps, no simulcast""" +H264_720P_30FPS_3_LAYERS_HIGH_MOTION: IngressVideoEncodingPreset.ValueType # 5 +"""1280x720, 30fps, 2500kbps main layer, 3 layers total, higher bitrate for high motion, harder to encode content""" +H264_1080P_30FPS_3_LAYERS_HIGH_MOTION: IngressVideoEncodingPreset.ValueType # 6 +"""1980x1080, 30fps, 4500kbps main layer, 3 layers total, higher bitrate for high motion, harder to encode content""" +H264_540P_25FPS_2_LAYERS_HIGH_MOTION: IngressVideoEncodingPreset.ValueType # 7 +""" 960x540, 25fps, 1300kbps main layer, 2 layers total, higher bitrate for high motion, harder to encode content""" +H264_720P_30FPS_1_LAYER_HIGH_MOTION: IngressVideoEncodingPreset.ValueType # 8 +"""1280x720, 30fps, 2500kbps, no simulcast, higher bitrate for high motion, harder to encode content""" +H264_1080P_30FPS_1_LAYER_HIGH_MOTION: IngressVideoEncodingPreset.ValueType # 9 +"""1980x1080, 30fps, 4500kbps, no simulcast, higher bitrate for high motion, harder to encode content""" +global___IngressVideoEncodingPreset = IngressVideoEncodingPreset + +@typing_extensions.final +class CreateIngressRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + INPUT_TYPE_FIELD_NUMBER: builtins.int + URL_FIELD_NUMBER: builtins.int + NAME_FIELD_NUMBER: builtins.int + ROOM_NAME_FIELD_NUMBER: builtins.int + PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int + PARTICIPANT_NAME_FIELD_NUMBER: builtins.int + BYPASS_TRANSCODING_FIELD_NUMBER: builtins.int + AUDIO_FIELD_NUMBER: builtins.int + VIDEO_FIELD_NUMBER: builtins.int + input_type: global___IngressInput.ValueType + url: builtins.str + """Where to pull media from, only for URL input type""" + name: builtins.str + """User provided identifier for the ingress""" + room_name: builtins.str + """room to publish to""" + participant_identity: builtins.str + """publish as participant""" + participant_name: builtins.str + """name of publishing participant (used for display only)""" + bypass_transcoding: builtins.bool + """whether to pass through the incoming media without transcoding, only compatible with some input types""" + @property + def audio(self) -> global___IngressAudioOptions: ... + @property + def video(self) -> global___IngressVideoOptions: ... + def __init__( + self, + *, + input_type: global___IngressInput.ValueType = ..., + url: builtins.str = ..., + name: builtins.str = ..., + room_name: builtins.str = ..., + participant_identity: builtins.str = ..., + participant_name: builtins.str = ..., + bypass_transcoding: builtins.bool = ..., + audio: global___IngressAudioOptions | None = ..., + video: global___IngressVideoOptions | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["audio", b"audio", "video", b"video"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["audio", b"audio", "bypass_transcoding", b"bypass_transcoding", "input_type", b"input_type", "name", b"name", "participant_identity", b"participant_identity", "participant_name", b"participant_name", "room_name", b"room_name", "url", b"url", "video", b"video"]) -> None: ... + +global___CreateIngressRequest = CreateIngressRequest + +@typing_extensions.final +class IngressAudioOptions(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NAME_FIELD_NUMBER: builtins.int + SOURCE_FIELD_NUMBER: builtins.int + PRESET_FIELD_NUMBER: builtins.int + OPTIONS_FIELD_NUMBER: builtins.int + name: builtins.str + source: livekit_models_pb2.TrackSource.ValueType + preset: global___IngressAudioEncodingPreset.ValueType + @property + def options(self) -> global___IngressAudioEncodingOptions: ... + def __init__( + self, + *, + name: builtins.str = ..., + source: livekit_models_pb2.TrackSource.ValueType = ..., + preset: global___IngressAudioEncodingPreset.ValueType = ..., + options: global___IngressAudioEncodingOptions | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["encoding_options", b"encoding_options", "options", b"options", "preset", b"preset"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["encoding_options", b"encoding_options", "name", b"name", "options", b"options", "preset", b"preset", "source", b"source"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions.Literal["encoding_options", b"encoding_options"]) -> typing_extensions.Literal["preset", "options"] | None: ... + +global___IngressAudioOptions = IngressAudioOptions + +@typing_extensions.final +class IngressVideoOptions(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NAME_FIELD_NUMBER: builtins.int + SOURCE_FIELD_NUMBER: builtins.int + PRESET_FIELD_NUMBER: builtins.int + OPTIONS_FIELD_NUMBER: builtins.int + name: builtins.str + source: livekit_models_pb2.TrackSource.ValueType + preset: global___IngressVideoEncodingPreset.ValueType + @property + def options(self) -> global___IngressVideoEncodingOptions: ... + def __init__( + self, + *, + name: builtins.str = ..., + source: livekit_models_pb2.TrackSource.ValueType = ..., + preset: global___IngressVideoEncodingPreset.ValueType = ..., + options: global___IngressVideoEncodingOptions | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["encoding_options", b"encoding_options", "options", b"options", "preset", b"preset"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["encoding_options", b"encoding_options", "name", b"name", "options", b"options", "preset", b"preset", "source", b"source"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions.Literal["encoding_options", b"encoding_options"]) -> typing_extensions.Literal["preset", "options"] | None: ... + +global___IngressVideoOptions = IngressVideoOptions + +@typing_extensions.final +class IngressAudioEncodingOptions(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + AUDIO_CODEC_FIELD_NUMBER: builtins.int + BITRATE_FIELD_NUMBER: builtins.int + DISABLE_DTX_FIELD_NUMBER: builtins.int + CHANNELS_FIELD_NUMBER: builtins.int + audio_codec: livekit_models_pb2.AudioCodec.ValueType + """desired audio codec to publish to room""" + bitrate: builtins.int + disable_dtx: builtins.bool + channels: builtins.int + def __init__( + self, + *, + audio_codec: livekit_models_pb2.AudioCodec.ValueType = ..., + bitrate: builtins.int = ..., + disable_dtx: builtins.bool = ..., + channels: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["audio_codec", b"audio_codec", "bitrate", b"bitrate", "channels", b"channels", "disable_dtx", b"disable_dtx"]) -> None: ... + +global___IngressAudioEncodingOptions = IngressAudioEncodingOptions + +@typing_extensions.final +class IngressVideoEncodingOptions(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VIDEO_CODEC_FIELD_NUMBER: builtins.int + FRAME_RATE_FIELD_NUMBER: builtins.int + LAYERS_FIELD_NUMBER: builtins.int + video_codec: livekit_models_pb2.VideoCodec.ValueType + """desired codec to publish to room""" + frame_rate: builtins.float + @property + def layers(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[livekit_models_pb2.VideoLayer]: + """simulcast layers to publish, when empty, should usually be set to layers at 1/2 and 1/4 of the dimensions""" + def __init__( + self, + *, + video_codec: livekit_models_pb2.VideoCodec.ValueType = ..., + frame_rate: builtins.float = ..., + layers: collections.abc.Iterable[livekit_models_pb2.VideoLayer] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["frame_rate", b"frame_rate", "layers", b"layers", "video_codec", b"video_codec"]) -> None: ... + +global___IngressVideoEncodingOptions = IngressVideoEncodingOptions + +@typing_extensions.final +class IngressInfo(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + INGRESS_ID_FIELD_NUMBER: builtins.int + NAME_FIELD_NUMBER: builtins.int + STREAM_KEY_FIELD_NUMBER: builtins.int + URL_FIELD_NUMBER: builtins.int + INPUT_TYPE_FIELD_NUMBER: builtins.int + BYPASS_TRANSCODING_FIELD_NUMBER: builtins.int + AUDIO_FIELD_NUMBER: builtins.int + VIDEO_FIELD_NUMBER: builtins.int + ROOM_NAME_FIELD_NUMBER: builtins.int + PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int + PARTICIPANT_NAME_FIELD_NUMBER: builtins.int + REUSABLE_FIELD_NUMBER: builtins.int + STATE_FIELD_NUMBER: builtins.int + ingress_id: builtins.str + name: builtins.str + stream_key: builtins.str + url: builtins.str + """URL to point the encoder to for push (RTMP, WHIP), or location to pull media from for pull (URL)""" + input_type: global___IngressInput.ValueType + """for RTMP input, it'll be a rtmp:// URL + for FILE input, it'll be a http:// URL + for SRT input, it'll be a srt:// URL + """ + bypass_transcoding: builtins.bool + @property + def audio(self) -> global___IngressAudioOptions: ... + @property + def video(self) -> global___IngressVideoOptions: ... + room_name: builtins.str + participant_identity: builtins.str + participant_name: builtins.str + reusable: builtins.bool + @property + def state(self) -> global___IngressState: + """Description of error/stream non compliance and debug info for publisher otherwise (received bitrate, resolution, bandwidth)""" + def __init__( + self, + *, + ingress_id: builtins.str = ..., + name: builtins.str = ..., + stream_key: builtins.str = ..., + url: builtins.str = ..., + input_type: global___IngressInput.ValueType = ..., + bypass_transcoding: builtins.bool = ..., + audio: global___IngressAudioOptions | None = ..., + video: global___IngressVideoOptions | None = ..., + room_name: builtins.str = ..., + participant_identity: builtins.str = ..., + participant_name: builtins.str = ..., + reusable: builtins.bool = ..., + state: global___IngressState | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["audio", b"audio", "state", b"state", "video", b"video"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["audio", b"audio", "bypass_transcoding", b"bypass_transcoding", "ingress_id", b"ingress_id", "input_type", b"input_type", "name", b"name", "participant_identity", b"participant_identity", "participant_name", b"participant_name", "reusable", b"reusable", "room_name", b"room_name", "state", b"state", "stream_key", b"stream_key", "url", b"url", "video", b"video"]) -> None: ... + +global___IngressInfo = IngressInfo + +@typing_extensions.final +class IngressState(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + class _Status: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + + class _StatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[IngressState._Status.ValueType], builtins.type): # noqa: F821 + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + ENDPOINT_INACTIVE: IngressState._Status.ValueType # 0 + ENDPOINT_BUFFERING: IngressState._Status.ValueType # 1 + ENDPOINT_PUBLISHING: IngressState._Status.ValueType # 2 + ENDPOINT_ERROR: IngressState._Status.ValueType # 3 + ENDPOINT_COMPLETE: IngressState._Status.ValueType # 4 + + class Status(_Status, metaclass=_StatusEnumTypeWrapper): ... + ENDPOINT_INACTIVE: IngressState.Status.ValueType # 0 + ENDPOINT_BUFFERING: IngressState.Status.ValueType # 1 + ENDPOINT_PUBLISHING: IngressState.Status.ValueType # 2 + ENDPOINT_ERROR: IngressState.Status.ValueType # 3 + ENDPOINT_COMPLETE: IngressState.Status.ValueType # 4 + + STATUS_FIELD_NUMBER: builtins.int + ERROR_FIELD_NUMBER: builtins.int + VIDEO_FIELD_NUMBER: builtins.int + AUDIO_FIELD_NUMBER: builtins.int + ROOM_ID_FIELD_NUMBER: builtins.int + STARTED_AT_FIELD_NUMBER: builtins.int + ENDED_AT_FIELD_NUMBER: builtins.int + RESOURCE_ID_FIELD_NUMBER: builtins.int + TRACKS_FIELD_NUMBER: builtins.int + status: global___IngressState.Status.ValueType + error: builtins.str + """Error/non compliance description if any""" + @property + def video(self) -> global___InputVideoState: ... + @property + def audio(self) -> global___InputAudioState: ... + room_id: builtins.str + """ID of the current/previous room published to""" + started_at: builtins.int + ended_at: builtins.int + resource_id: builtins.str + @property + def tracks(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[livekit_models_pb2.TrackInfo]: ... + def __init__( + self, + *, + status: global___IngressState.Status.ValueType = ..., + error: builtins.str = ..., + video: global___InputVideoState | None = ..., + audio: global___InputAudioState | None = ..., + room_id: builtins.str = ..., + started_at: builtins.int = ..., + ended_at: builtins.int = ..., + resource_id: builtins.str = ..., + tracks: collections.abc.Iterable[livekit_models_pb2.TrackInfo] | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["audio", b"audio", "video", b"video"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["audio", b"audio", "ended_at", b"ended_at", "error", b"error", "resource_id", b"resource_id", "room_id", b"room_id", "started_at", b"started_at", "status", b"status", "tracks", b"tracks", "video", b"video"]) -> None: ... + +global___IngressState = IngressState + +@typing_extensions.final +class InputVideoState(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + MIME_TYPE_FIELD_NUMBER: builtins.int + AVERAGE_BITRATE_FIELD_NUMBER: builtins.int + WIDTH_FIELD_NUMBER: builtins.int + HEIGHT_FIELD_NUMBER: builtins.int + FRAMERATE_FIELD_NUMBER: builtins.int + mime_type: builtins.str + average_bitrate: builtins.int + width: builtins.int + height: builtins.int + framerate: builtins.float + def __init__( + self, + *, + mime_type: builtins.str = ..., + average_bitrate: builtins.int = ..., + width: builtins.int = ..., + height: builtins.int = ..., + framerate: builtins.float = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["average_bitrate", b"average_bitrate", "framerate", b"framerate", "height", b"height", "mime_type", b"mime_type", "width", b"width"]) -> None: ... + +global___InputVideoState = InputVideoState + +@typing_extensions.final +class InputAudioState(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + MIME_TYPE_FIELD_NUMBER: builtins.int + AVERAGE_BITRATE_FIELD_NUMBER: builtins.int + CHANNELS_FIELD_NUMBER: builtins.int + SAMPLE_RATE_FIELD_NUMBER: builtins.int + mime_type: builtins.str + average_bitrate: builtins.int + channels: builtins.int + sample_rate: builtins.int + def __init__( + self, + *, + mime_type: builtins.str = ..., + average_bitrate: builtins.int = ..., + channels: builtins.int = ..., + sample_rate: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["average_bitrate", b"average_bitrate", "channels", b"channels", "mime_type", b"mime_type", "sample_rate", b"sample_rate"]) -> None: ... + +global___InputAudioState = InputAudioState + +@typing_extensions.final +class UpdateIngressRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + INGRESS_ID_FIELD_NUMBER: builtins.int + NAME_FIELD_NUMBER: builtins.int + ROOM_NAME_FIELD_NUMBER: builtins.int + PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int + PARTICIPANT_NAME_FIELD_NUMBER: builtins.int + BYPASS_TRANSCODING_FIELD_NUMBER: builtins.int + AUDIO_FIELD_NUMBER: builtins.int + VIDEO_FIELD_NUMBER: builtins.int + ingress_id: builtins.str + name: builtins.str + room_name: builtins.str + participant_identity: builtins.str + participant_name: builtins.str + bypass_transcoding: builtins.bool + @property + def audio(self) -> global___IngressAudioOptions: ... + @property + def video(self) -> global___IngressVideoOptions: ... + def __init__( + self, + *, + ingress_id: builtins.str = ..., + name: builtins.str = ..., + room_name: builtins.str = ..., + participant_identity: builtins.str = ..., + participant_name: builtins.str = ..., + bypass_transcoding: builtins.bool | None = ..., + audio: global___IngressAudioOptions | None = ..., + video: global___IngressVideoOptions | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["_bypass_transcoding", b"_bypass_transcoding", "audio", b"audio", "bypass_transcoding", b"bypass_transcoding", "video", b"video"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["_bypass_transcoding", b"_bypass_transcoding", "audio", b"audio", "bypass_transcoding", b"bypass_transcoding", "ingress_id", b"ingress_id", "name", b"name", "participant_identity", b"participant_identity", "participant_name", b"participant_name", "room_name", b"room_name", "video", b"video"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions.Literal["_bypass_transcoding", b"_bypass_transcoding"]) -> typing_extensions.Literal["bypass_transcoding"] | None: ... + +global___UpdateIngressRequest = UpdateIngressRequest + +@typing_extensions.final +class ListIngressRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ROOM_NAME_FIELD_NUMBER: builtins.int + INGRESS_ID_FIELD_NUMBER: builtins.int + room_name: builtins.str + """when blank, lists all ingress endpoints + (optional, filter by room name) + """ + ingress_id: builtins.str + """(optional, filter by ingress ID)""" + def __init__( + self, + *, + room_name: builtins.str = ..., + ingress_id: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["ingress_id", b"ingress_id", "room_name", b"room_name"]) -> None: ... + +global___ListIngressRequest = ListIngressRequest + +@typing_extensions.final +class ListIngressResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ITEMS_FIELD_NUMBER: builtins.int + @property + def items(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___IngressInfo]: ... + def __init__( + self, + *, + items: collections.abc.Iterable[global___IngressInfo] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["items", b"items"]) -> None: ... + +global___ListIngressResponse = ListIngressResponse + +@typing_extensions.final +class DeleteIngressRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + INGRESS_ID_FIELD_NUMBER: builtins.int + ingress_id: builtins.str + def __init__( + self, + *, + ingress_id: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["ingress_id", b"ingress_id"]) -> None: ... + +global___DeleteIngressRequest = DeleteIngressRequest diff --git a/livekit-protocol/livekit/protocol/livekit_models_pb2.py b/livekit-protocol/livekit/protocol/livekit_models_pb2.py new file mode 100644 index 00000000..5f200a14 --- /dev/null +++ b/livekit-protocol/livekit/protocol/livekit_models_pb2.py @@ -0,0 +1,106 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: livekit_models.proto +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x14livekit_models.proto\x12\x07livekit\x1a\x1fgoogle/protobuf/timestamp.proto\"\x86\x02\n\x04Room\x12\x0b\n\x03sid\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x15\n\rempty_timeout\x18\x03 \x01(\r\x12\x18\n\x10max_participants\x18\x04 \x01(\r\x12\x15\n\rcreation_time\x18\x05 \x01(\x03\x12\x15\n\rturn_password\x18\x06 \x01(\t\x12&\n\x0e\x65nabled_codecs\x18\x07 \x03(\x0b\x32\x0e.livekit.Codec\x12\x10\n\x08metadata\x18\x08 \x01(\t\x12\x18\n\x10num_participants\x18\t \x01(\r\x12\x16\n\x0enum_publishers\x18\x0b \x01(\r\x12\x18\n\x10\x61\x63tive_recording\x18\n \x01(\x08\"(\n\x05\x43odec\x12\x0c\n\x04mime\x18\x01 \x01(\t\x12\x11\n\tfmtp_line\x18\x02 \x01(\t\"9\n\x0cPlayoutDelay\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x0b\n\x03min\x18\x02 \x01(\r\x12\x0b\n\x03max\x18\x03 \x01(\r\"\xde\x01\n\x15ParticipantPermission\x12\x15\n\rcan_subscribe\x18\x01 \x01(\x08\x12\x13\n\x0b\x63\x61n_publish\x18\x02 \x01(\x08\x12\x18\n\x10\x63\x61n_publish_data\x18\x03 \x01(\x08\x12\x31\n\x13\x63\x61n_publish_sources\x18\t \x03(\x0e\x32\x14.livekit.TrackSource\x12\x0e\n\x06hidden\x18\x07 \x01(\x08\x12\x10\n\x08recorder\x18\x08 \x01(\x08\x12\x1b\n\x13\x63\x61n_update_metadata\x18\n \x01(\x08\x12\r\n\x05\x61gent\x18\x0b \x01(\x08\"\xe1\x02\n\x0fParticipantInfo\x12\x0b\n\x03sid\x18\x01 \x01(\t\x12\x10\n\x08identity\x18\x02 \x01(\t\x12-\n\x05state\x18\x03 \x01(\x0e\x32\x1e.livekit.ParticipantInfo.State\x12\"\n\x06tracks\x18\x04 \x03(\x0b\x32\x12.livekit.TrackInfo\x12\x10\n\x08metadata\x18\x05 \x01(\t\x12\x11\n\tjoined_at\x18\x06 \x01(\x03\x12\x0c\n\x04name\x18\t \x01(\t\x12\x0f\n\x07version\x18\n \x01(\r\x12\x32\n\npermission\x18\x0b \x01(\x0b\x32\x1e.livekit.ParticipantPermission\x12\x0e\n\x06region\x18\x0c \x01(\t\x12\x14\n\x0cis_publisher\x18\r \x01(\x08\">\n\x05State\x12\x0b\n\x07JOINING\x10\x00\x12\n\n\x06JOINED\x10\x01\x12\n\n\x06\x41\x43TIVE\x10\x02\x12\x10\n\x0c\x44ISCONNECTED\x10\x03\"3\n\nEncryption\"%\n\x04Type\x12\x08\n\x04NONE\x10\x00\x12\x07\n\x03GCM\x10\x01\x12\n\n\x06\x43USTOM\x10\x02\"f\n\x12SimulcastCodecInfo\x12\x11\n\tmime_type\x18\x01 \x01(\t\x12\x0b\n\x03mid\x18\x02 \x01(\t\x12\x0b\n\x03\x63id\x18\x03 \x01(\t\x12#\n\x06layers\x18\x04 \x03(\x0b\x32\x13.livekit.VideoLayer\"\x99\x03\n\tTrackInfo\x12\x0b\n\x03sid\x18\x01 \x01(\t\x12 \n\x04type\x18\x02 \x01(\x0e\x32\x12.livekit.TrackType\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\r\n\x05muted\x18\x04 \x01(\x08\x12\r\n\x05width\x18\x05 \x01(\r\x12\x0e\n\x06height\x18\x06 \x01(\r\x12\x11\n\tsimulcast\x18\x07 \x01(\x08\x12\x13\n\x0b\x64isable_dtx\x18\x08 \x01(\x08\x12$\n\x06source\x18\t \x01(\x0e\x32\x14.livekit.TrackSource\x12#\n\x06layers\x18\n \x03(\x0b\x32\x13.livekit.VideoLayer\x12\x11\n\tmime_type\x18\x0b \x01(\t\x12\x0b\n\x03mid\x18\x0c \x01(\t\x12+\n\x06\x63odecs\x18\r \x03(\x0b\x32\x1b.livekit.SimulcastCodecInfo\x12\x0e\n\x06stereo\x18\x0e \x01(\x08\x12\x13\n\x0b\x64isable_red\x18\x0f \x01(\x08\x12,\n\nencryption\x18\x10 \x01(\x0e\x32\x18.livekit.Encryption.Type\x12\x0e\n\x06stream\x18\x11 \x01(\t\"r\n\nVideoLayer\x12&\n\x07quality\x18\x01 \x01(\x0e\x32\x15.livekit.VideoQuality\x12\r\n\x05width\x18\x02 \x01(\r\x12\x0e\n\x06height\x18\x03 \x01(\r\x12\x0f\n\x07\x62itrate\x18\x04 \x01(\r\x12\x0c\n\x04ssrc\x18\x05 \x01(\r\"\xb4\x01\n\nDataPacket\x12&\n\x04kind\x18\x01 \x01(\x0e\x32\x18.livekit.DataPacket.Kind\x12#\n\x04user\x18\x02 \x01(\x0b\x32\x13.livekit.UserPacketH\x00\x12/\n\x07speaker\x18\x03 \x01(\x0b\x32\x1c.livekit.ActiveSpeakerUpdateH\x00\"\x1f\n\x04Kind\x12\x0c\n\x08RELIABLE\x10\x00\x12\t\n\x05LOSSY\x10\x01\x42\x07\n\x05value\"=\n\x13\x41\x63tiveSpeakerUpdate\x12&\n\x08speakers\x18\x01 \x03(\x0b\x32\x14.livekit.SpeakerInfo\"9\n\x0bSpeakerInfo\x12\x0b\n\x03sid\x18\x01 \x01(\t\x12\r\n\x05level\x18\x02 \x01(\x02\x12\x0e\n\x06\x61\x63tive\x18\x03 \x01(\x08\"\xac\x01\n\nUserPacket\x12\x17\n\x0fparticipant_sid\x18\x01 \x01(\t\x12\x1c\n\x14participant_identity\x18\x05 \x01(\t\x12\x0f\n\x07payload\x18\x02 \x01(\x0c\x12\x18\n\x10\x64\x65stination_sids\x18\x03 \x03(\t\x12\x1e\n\x16\x64\x65stination_identities\x18\x06 \x03(\t\x12\x12\n\x05topic\x18\x04 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_topic\"@\n\x11ParticipantTracks\x12\x17\n\x0fparticipant_sid\x18\x01 \x01(\t\x12\x12\n\ntrack_sids\x18\x02 \x03(\t\"\xb6\x01\n\nServerInfo\x12,\n\x07\x65\x64ition\x18\x01 \x01(\x0e\x32\x1b.livekit.ServerInfo.Edition\x12\x0f\n\x07version\x18\x02 \x01(\t\x12\x10\n\x08protocol\x18\x03 \x01(\x05\x12\x0e\n\x06region\x18\x04 \x01(\t\x12\x0f\n\x07node_id\x18\x05 \x01(\t\x12\x12\n\ndebug_info\x18\x06 \x01(\t\"\"\n\x07\x45\x64ition\x12\x0c\n\x08Standard\x10\x00\x12\t\n\x05\x43loud\x10\x01\"\xdd\x02\n\nClientInfo\x12$\n\x03sdk\x18\x01 \x01(\x0e\x32\x17.livekit.ClientInfo.SDK\x12\x0f\n\x07version\x18\x02 \x01(\t\x12\x10\n\x08protocol\x18\x03 \x01(\x05\x12\n\n\x02os\x18\x04 \x01(\t\x12\x12\n\nos_version\x18\x05 \x01(\t\x12\x14\n\x0c\x64\x65vice_model\x18\x06 \x01(\t\x12\x0f\n\x07\x62rowser\x18\x07 \x01(\t\x12\x17\n\x0f\x62rowser_version\x18\x08 \x01(\t\x12\x0f\n\x07\x61\x64\x64ress\x18\t \x01(\t\x12\x0f\n\x07network\x18\n \x01(\t\"\x83\x01\n\x03SDK\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x06\n\x02JS\x10\x01\x12\t\n\x05SWIFT\x10\x02\x12\x0b\n\x07\x41NDROID\x10\x03\x12\x0b\n\x07\x46LUTTER\x10\x04\x12\x06\n\x02GO\x10\x05\x12\t\n\x05UNITY\x10\x06\x12\x10\n\x0cREACT_NATIVE\x10\x07\x12\x08\n\x04RUST\x10\x08\x12\n\n\x06PYTHON\x10\t\x12\x07\n\x03\x43PP\x10\n\"\x8c\x02\n\x13\x43lientConfiguration\x12*\n\x05video\x18\x01 \x01(\x0b\x32\x1b.livekit.VideoConfiguration\x12+\n\x06screen\x18\x02 \x01(\x0b\x32\x1b.livekit.VideoConfiguration\x12\x37\n\x11resume_connection\x18\x03 \x01(\x0e\x32\x1c.livekit.ClientConfigSetting\x12\x30\n\x0f\x64isabled_codecs\x18\x04 \x01(\x0b\x32\x17.livekit.DisabledCodecs\x12\x31\n\x0b\x66orce_relay\x18\x05 \x01(\x0e\x32\x1c.livekit.ClientConfigSetting\"L\n\x12VideoConfiguration\x12\x36\n\x10hardware_encoder\x18\x01 \x01(\x0e\x32\x1c.livekit.ClientConfigSetting\"Q\n\x0e\x44isabledCodecs\x12\x1e\n\x06\x63odecs\x18\x01 \x03(\x0b\x32\x0e.livekit.Codec\x12\x1f\n\x07publish\x18\x02 \x03(\x0b\x32\x0e.livekit.Codec\"\x80\x02\n\x08RTPDrift\x12.\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x10\n\x08\x64uration\x18\x03 \x01(\x01\x12\x17\n\x0fstart_timestamp\x18\x04 \x01(\x04\x12\x15\n\rend_timestamp\x18\x05 \x01(\x04\x12\x17\n\x0frtp_clock_ticks\x18\x06 \x01(\x04\x12\x15\n\rdrift_samples\x18\x07 \x01(\x03\x12\x10\n\x08\x64rift_ms\x18\x08 \x01(\x01\x12\x12\n\nclock_rate\x18\t \x01(\x01\"\xef\t\n\x08RTPStats\x12.\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x10\n\x08\x64uration\x18\x03 \x01(\x01\x12\x0f\n\x07packets\x18\x04 \x01(\r\x12\x13\n\x0bpacket_rate\x18\x05 \x01(\x01\x12\r\n\x05\x62ytes\x18\x06 \x01(\x04\x12\x14\n\x0cheader_bytes\x18\' \x01(\x04\x12\x0f\n\x07\x62itrate\x18\x07 \x01(\x01\x12\x14\n\x0cpackets_lost\x18\x08 \x01(\r\x12\x18\n\x10packet_loss_rate\x18\t \x01(\x01\x12\x1e\n\x16packet_loss_percentage\x18\n \x01(\x02\x12\x19\n\x11packets_duplicate\x18\x0b \x01(\r\x12\x1d\n\x15packet_duplicate_rate\x18\x0c \x01(\x01\x12\x17\n\x0f\x62ytes_duplicate\x18\r \x01(\x04\x12\x1e\n\x16header_bytes_duplicate\x18( \x01(\x04\x12\x19\n\x11\x62itrate_duplicate\x18\x0e \x01(\x01\x12\x17\n\x0fpackets_padding\x18\x0f \x01(\r\x12\x1b\n\x13packet_padding_rate\x18\x10 \x01(\x01\x12\x15\n\rbytes_padding\x18\x11 \x01(\x04\x12\x1c\n\x14header_bytes_padding\x18) \x01(\x04\x12\x17\n\x0f\x62itrate_padding\x18\x12 \x01(\x01\x12\x1c\n\x14packets_out_of_order\x18\x13 \x01(\r\x12\x0e\n\x06\x66rames\x18\x14 \x01(\r\x12\x12\n\nframe_rate\x18\x15 \x01(\x01\x12\x16\n\x0ejitter_current\x18\x16 \x01(\x01\x12\x12\n\njitter_max\x18\x17 \x01(\x01\x12:\n\rgap_histogram\x18\x18 \x03(\x0b\x32#.livekit.RTPStats.GapHistogramEntry\x12\r\n\x05nacks\x18\x19 \x01(\r\x12\x11\n\tnack_acks\x18% \x01(\r\x12\x13\n\x0bnack_misses\x18\x1a \x01(\r\x12\x15\n\rnack_repeated\x18& \x01(\r\x12\x0c\n\x04plis\x18\x1b \x01(\r\x12,\n\x08last_pli\x18\x1c \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0c\n\x04\x66irs\x18\x1d \x01(\r\x12,\n\x08last_fir\x18\x1e \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x13\n\x0brtt_current\x18\x1f \x01(\r\x12\x0f\n\x07rtt_max\x18 \x01(\r\x12\x12\n\nkey_frames\x18! \x01(\r\x12\x32\n\x0elast_key_frame\x18\" \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x17\n\x0flayer_lock_plis\x18# \x01(\r\x12\x37\n\x13last_layer_lock_pli\x18$ \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\'\n\x0cpacket_drift\x18, \x01(\x0b\x32\x11.livekit.RTPDrift\x12\'\n\x0creport_drift\x18- \x01(\x0b\x32\x11.livekit.RTPDrift\x1a\x33\n\x11GapHistogramEntry\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12\r\n\x05value\x18\x02 \x01(\r:\x02\x38\x01\"1\n\x0cTimedVersion\x12\x12\n\nunix_micro\x18\x01 \x01(\x03\x12\r\n\x05ticks\x18\x02 \x01(\x05*/\n\nAudioCodec\x12\x0e\n\nDEFAULT_AC\x10\x00\x12\x08\n\x04OPUS\x10\x01\x12\x07\n\x03\x41\x41\x43\x10\x02*V\n\nVideoCodec\x12\x0e\n\nDEFAULT_VC\x10\x00\x12\x11\n\rH264_BASELINE\x10\x01\x12\r\n\tH264_MAIN\x10\x02\x12\r\n\tH264_HIGH\x10\x03\x12\x07\n\x03VP8\x10\x04*)\n\nImageCodec\x12\x0e\n\nIC_DEFAULT\x10\x00\x12\x0b\n\x07IC_JPEG\x10\x01*+\n\tTrackType\x12\t\n\x05\x41UDIO\x10\x00\x12\t\n\x05VIDEO\x10\x01\x12\x08\n\x04\x44\x41TA\x10\x02*`\n\x0bTrackSource\x12\x0b\n\x07UNKNOWN\x10\x00\x12\n\n\x06\x43\x41MERA\x10\x01\x12\x0e\n\nMICROPHONE\x10\x02\x12\x10\n\x0cSCREEN_SHARE\x10\x03\x12\x16\n\x12SCREEN_SHARE_AUDIO\x10\x04*6\n\x0cVideoQuality\x12\x07\n\x03LOW\x10\x00\x12\n\n\x06MEDIUM\x10\x01\x12\x08\n\x04HIGH\x10\x02\x12\x07\n\x03OFF\x10\x03*6\n\x11\x43onnectionQuality\x12\x08\n\x04POOR\x10\x00\x12\x08\n\x04GOOD\x10\x01\x12\r\n\tEXCELLENT\x10\x02*;\n\x13\x43lientConfigSetting\x12\t\n\x05UNSET\x10\x00\x12\x0c\n\x08\x44ISABLED\x10\x01\x12\x0b\n\x07\x45NABLED\x10\x02*\xba\x01\n\x10\x44isconnectReason\x12\x12\n\x0eUNKNOWN_REASON\x10\x00\x12\x14\n\x10\x43LIENT_INITIATED\x10\x01\x12\x16\n\x12\x44UPLICATE_IDENTITY\x10\x02\x12\x13\n\x0fSERVER_SHUTDOWN\x10\x03\x12\x17\n\x13PARTICIPANT_REMOVED\x10\x04\x12\x10\n\x0cROOM_DELETED\x10\x05\x12\x12\n\x0eSTATE_MISMATCH\x10\x06\x12\x10\n\x0cJOIN_FAILURE\x10\x07*\x89\x01\n\x0fReconnectReason\x12\x0e\n\nRR_UNKNOWN\x10\x00\x12\x1a\n\x16RR_SIGNAL_DISCONNECTED\x10\x01\x12\x17\n\x13RR_PUBLISHER_FAILED\x10\x02\x12\x18\n\x14RR_SUBSCRIBER_FAILED\x10\x03\x12\x17\n\x13RR_SWITCH_CANDIDATE\x10\x04*T\n\x11SubscriptionError\x12\x0e\n\nSE_UNKNOWN\x10\x00\x12\x18\n\x14SE_CODEC_UNSUPPORTED\x10\x01\x12\x15\n\x11SE_TRACK_NOTFOUND\x10\x02\x42\x46Z#github.com/livekit/protocol/livekit\xaa\x02\rLiveKit.Proto\xea\x02\x0eLiveKit::Protob\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'livekit_models_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z#github.com/livekit/protocol/livekit\252\002\rLiveKit.Proto\352\002\016LiveKit::Proto' + _RTPSTATS_GAPHISTOGRAMENTRY._options = None + _RTPSTATS_GAPHISTOGRAMENTRY._serialized_options = b'8\001' + _globals['_AUDIOCODEC']._serialized_start=4789 + _globals['_AUDIOCODEC']._serialized_end=4836 + _globals['_VIDEOCODEC']._serialized_start=4838 + _globals['_VIDEOCODEC']._serialized_end=4924 + _globals['_IMAGECODEC']._serialized_start=4926 + _globals['_IMAGECODEC']._serialized_end=4967 + _globals['_TRACKTYPE']._serialized_start=4969 + _globals['_TRACKTYPE']._serialized_end=5012 + _globals['_TRACKSOURCE']._serialized_start=5014 + _globals['_TRACKSOURCE']._serialized_end=5110 + _globals['_VIDEOQUALITY']._serialized_start=5112 + _globals['_VIDEOQUALITY']._serialized_end=5166 + _globals['_CONNECTIONQUALITY']._serialized_start=5168 + _globals['_CONNECTIONQUALITY']._serialized_end=5222 + _globals['_CLIENTCONFIGSETTING']._serialized_start=5224 + _globals['_CLIENTCONFIGSETTING']._serialized_end=5283 + _globals['_DISCONNECTREASON']._serialized_start=5286 + _globals['_DISCONNECTREASON']._serialized_end=5472 + _globals['_RECONNECTREASON']._serialized_start=5475 + _globals['_RECONNECTREASON']._serialized_end=5612 + _globals['_SUBSCRIPTIONERROR']._serialized_start=5614 + _globals['_SUBSCRIPTIONERROR']._serialized_end=5698 + _globals['_ROOM']._serialized_start=67 + _globals['_ROOM']._serialized_end=329 + _globals['_CODEC']._serialized_start=331 + _globals['_CODEC']._serialized_end=371 + _globals['_PLAYOUTDELAY']._serialized_start=373 + _globals['_PLAYOUTDELAY']._serialized_end=430 + _globals['_PARTICIPANTPERMISSION']._serialized_start=433 + _globals['_PARTICIPANTPERMISSION']._serialized_end=655 + _globals['_PARTICIPANTINFO']._serialized_start=658 + _globals['_PARTICIPANTINFO']._serialized_end=1011 + _globals['_PARTICIPANTINFO_STATE']._serialized_start=949 + _globals['_PARTICIPANTINFO_STATE']._serialized_end=1011 + _globals['_ENCRYPTION']._serialized_start=1013 + _globals['_ENCRYPTION']._serialized_end=1064 + _globals['_ENCRYPTION_TYPE']._serialized_start=1027 + _globals['_ENCRYPTION_TYPE']._serialized_end=1064 + _globals['_SIMULCASTCODECINFO']._serialized_start=1066 + _globals['_SIMULCASTCODECINFO']._serialized_end=1168 + _globals['_TRACKINFO']._serialized_start=1171 + _globals['_TRACKINFO']._serialized_end=1580 + _globals['_VIDEOLAYER']._serialized_start=1582 + _globals['_VIDEOLAYER']._serialized_end=1696 + _globals['_DATAPACKET']._serialized_start=1699 + _globals['_DATAPACKET']._serialized_end=1879 + _globals['_DATAPACKET_KIND']._serialized_start=1839 + _globals['_DATAPACKET_KIND']._serialized_end=1870 + _globals['_ACTIVESPEAKERUPDATE']._serialized_start=1881 + _globals['_ACTIVESPEAKERUPDATE']._serialized_end=1942 + _globals['_SPEAKERINFO']._serialized_start=1944 + _globals['_SPEAKERINFO']._serialized_end=2001 + _globals['_USERPACKET']._serialized_start=2004 + _globals['_USERPACKET']._serialized_end=2176 + _globals['_PARTICIPANTTRACKS']._serialized_start=2178 + _globals['_PARTICIPANTTRACKS']._serialized_end=2242 + _globals['_SERVERINFO']._serialized_start=2245 + _globals['_SERVERINFO']._serialized_end=2427 + _globals['_SERVERINFO_EDITION']._serialized_start=2393 + _globals['_SERVERINFO_EDITION']._serialized_end=2427 + _globals['_CLIENTINFO']._serialized_start=2430 + _globals['_CLIENTINFO']._serialized_end=2779 + _globals['_CLIENTINFO_SDK']._serialized_start=2648 + _globals['_CLIENTINFO_SDK']._serialized_end=2779 + _globals['_CLIENTCONFIGURATION']._serialized_start=2782 + _globals['_CLIENTCONFIGURATION']._serialized_end=3050 + _globals['_VIDEOCONFIGURATION']._serialized_start=3052 + _globals['_VIDEOCONFIGURATION']._serialized_end=3128 + _globals['_DISABLEDCODECS']._serialized_start=3130 + _globals['_DISABLEDCODECS']._serialized_end=3211 + _globals['_RTPDRIFT']._serialized_start=3214 + _globals['_RTPDRIFT']._serialized_end=3470 + _globals['_RTPSTATS']._serialized_start=3473 + _globals['_RTPSTATS']._serialized_end=4736 + _globals['_RTPSTATS_GAPHISTOGRAMENTRY']._serialized_start=4685 + _globals['_RTPSTATS_GAPHISTOGRAMENTRY']._serialized_end=4736 + _globals['_TIMEDVERSION']._serialized_start=4738 + _globals['_TIMEDVERSION']._serialized_end=4787 +# @@protoc_insertion_point(module_scope) diff --git a/livekit-protocol/livekit/protocol/livekit_models_pb2.pyi b/livekit-protocol/livekit/protocol/livekit_models_pb2.pyi new file mode 100644 index 00000000..2e5bcb1d --- /dev/null +++ b/livekit-protocol/livekit/protocol/livekit_models_pb2.pyi @@ -0,0 +1,1162 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +Copyright 2023 LiveKit, Inc. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +""" +import builtins +import collections.abc +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.internal.enum_type_wrapper +import google.protobuf.message +import google.protobuf.timestamp_pb2 +import sys +import typing + +if sys.version_info >= (3, 10): + import typing as typing_extensions +else: + import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor + +class _AudioCodec: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _AudioCodecEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_AudioCodec.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + DEFAULT_AC: _AudioCodec.ValueType # 0 + OPUS: _AudioCodec.ValueType # 1 + AAC: _AudioCodec.ValueType # 2 + +class AudioCodec(_AudioCodec, metaclass=_AudioCodecEnumTypeWrapper): ... + +DEFAULT_AC: AudioCodec.ValueType # 0 +OPUS: AudioCodec.ValueType # 1 +AAC: AudioCodec.ValueType # 2 +global___AudioCodec = AudioCodec + +class _VideoCodec: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _VideoCodecEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_VideoCodec.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + DEFAULT_VC: _VideoCodec.ValueType # 0 + H264_BASELINE: _VideoCodec.ValueType # 1 + H264_MAIN: _VideoCodec.ValueType # 2 + H264_HIGH: _VideoCodec.ValueType # 3 + VP8: _VideoCodec.ValueType # 4 + +class VideoCodec(_VideoCodec, metaclass=_VideoCodecEnumTypeWrapper): ... + +DEFAULT_VC: VideoCodec.ValueType # 0 +H264_BASELINE: VideoCodec.ValueType # 1 +H264_MAIN: VideoCodec.ValueType # 2 +H264_HIGH: VideoCodec.ValueType # 3 +VP8: VideoCodec.ValueType # 4 +global___VideoCodec = VideoCodec + +class _ImageCodec: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _ImageCodecEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ImageCodec.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + IC_DEFAULT: _ImageCodec.ValueType # 0 + IC_JPEG: _ImageCodec.ValueType # 1 + +class ImageCodec(_ImageCodec, metaclass=_ImageCodecEnumTypeWrapper): ... + +IC_DEFAULT: ImageCodec.ValueType # 0 +IC_JPEG: ImageCodec.ValueType # 1 +global___ImageCodec = ImageCodec + +class _TrackType: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _TrackTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_TrackType.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + AUDIO: _TrackType.ValueType # 0 + VIDEO: _TrackType.ValueType # 1 + DATA: _TrackType.ValueType # 2 + +class TrackType(_TrackType, metaclass=_TrackTypeEnumTypeWrapper): ... + +AUDIO: TrackType.ValueType # 0 +VIDEO: TrackType.ValueType # 1 +DATA: TrackType.ValueType # 2 +global___TrackType = TrackType + +class _TrackSource: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _TrackSourceEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_TrackSource.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + UNKNOWN: _TrackSource.ValueType # 0 + CAMERA: _TrackSource.ValueType # 1 + MICROPHONE: _TrackSource.ValueType # 2 + SCREEN_SHARE: _TrackSource.ValueType # 3 + SCREEN_SHARE_AUDIO: _TrackSource.ValueType # 4 + +class TrackSource(_TrackSource, metaclass=_TrackSourceEnumTypeWrapper): ... + +UNKNOWN: TrackSource.ValueType # 0 +CAMERA: TrackSource.ValueType # 1 +MICROPHONE: TrackSource.ValueType # 2 +SCREEN_SHARE: TrackSource.ValueType # 3 +SCREEN_SHARE_AUDIO: TrackSource.ValueType # 4 +global___TrackSource = TrackSource + +class _VideoQuality: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _VideoQualityEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_VideoQuality.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + LOW: _VideoQuality.ValueType # 0 + MEDIUM: _VideoQuality.ValueType # 1 + HIGH: _VideoQuality.ValueType # 2 + OFF: _VideoQuality.ValueType # 3 + +class VideoQuality(_VideoQuality, metaclass=_VideoQualityEnumTypeWrapper): ... + +LOW: VideoQuality.ValueType # 0 +MEDIUM: VideoQuality.ValueType # 1 +HIGH: VideoQuality.ValueType # 2 +OFF: VideoQuality.ValueType # 3 +global___VideoQuality = VideoQuality + +class _ConnectionQuality: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _ConnectionQualityEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ConnectionQuality.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + POOR: _ConnectionQuality.ValueType # 0 + GOOD: _ConnectionQuality.ValueType # 1 + EXCELLENT: _ConnectionQuality.ValueType # 2 + +class ConnectionQuality(_ConnectionQuality, metaclass=_ConnectionQualityEnumTypeWrapper): ... + +POOR: ConnectionQuality.ValueType # 0 +GOOD: ConnectionQuality.ValueType # 1 +EXCELLENT: ConnectionQuality.ValueType # 2 +global___ConnectionQuality = ConnectionQuality + +class _ClientConfigSetting: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _ClientConfigSettingEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ClientConfigSetting.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + UNSET: _ClientConfigSetting.ValueType # 0 + DISABLED: _ClientConfigSetting.ValueType # 1 + ENABLED: _ClientConfigSetting.ValueType # 2 + +class ClientConfigSetting(_ClientConfigSetting, metaclass=_ClientConfigSettingEnumTypeWrapper): ... + +UNSET: ClientConfigSetting.ValueType # 0 +DISABLED: ClientConfigSetting.ValueType # 1 +ENABLED: ClientConfigSetting.ValueType # 2 +global___ClientConfigSetting = ClientConfigSetting + +class _DisconnectReason: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _DisconnectReasonEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_DisconnectReason.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + UNKNOWN_REASON: _DisconnectReason.ValueType # 0 + CLIENT_INITIATED: _DisconnectReason.ValueType # 1 + DUPLICATE_IDENTITY: _DisconnectReason.ValueType # 2 + SERVER_SHUTDOWN: _DisconnectReason.ValueType # 3 + PARTICIPANT_REMOVED: _DisconnectReason.ValueType # 4 + ROOM_DELETED: _DisconnectReason.ValueType # 5 + STATE_MISMATCH: _DisconnectReason.ValueType # 6 + JOIN_FAILURE: _DisconnectReason.ValueType # 7 + +class DisconnectReason(_DisconnectReason, metaclass=_DisconnectReasonEnumTypeWrapper): ... + +UNKNOWN_REASON: DisconnectReason.ValueType # 0 +CLIENT_INITIATED: DisconnectReason.ValueType # 1 +DUPLICATE_IDENTITY: DisconnectReason.ValueType # 2 +SERVER_SHUTDOWN: DisconnectReason.ValueType # 3 +PARTICIPANT_REMOVED: DisconnectReason.ValueType # 4 +ROOM_DELETED: DisconnectReason.ValueType # 5 +STATE_MISMATCH: DisconnectReason.ValueType # 6 +JOIN_FAILURE: DisconnectReason.ValueType # 7 +global___DisconnectReason = DisconnectReason + +class _ReconnectReason: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _ReconnectReasonEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ReconnectReason.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + RR_UNKNOWN: _ReconnectReason.ValueType # 0 + RR_SIGNAL_DISCONNECTED: _ReconnectReason.ValueType # 1 + RR_PUBLISHER_FAILED: _ReconnectReason.ValueType # 2 + RR_SUBSCRIBER_FAILED: _ReconnectReason.ValueType # 3 + RR_SWITCH_CANDIDATE: _ReconnectReason.ValueType # 4 + +class ReconnectReason(_ReconnectReason, metaclass=_ReconnectReasonEnumTypeWrapper): ... + +RR_UNKNOWN: ReconnectReason.ValueType # 0 +RR_SIGNAL_DISCONNECTED: ReconnectReason.ValueType # 1 +RR_PUBLISHER_FAILED: ReconnectReason.ValueType # 2 +RR_SUBSCRIBER_FAILED: ReconnectReason.ValueType # 3 +RR_SWITCH_CANDIDATE: ReconnectReason.ValueType # 4 +global___ReconnectReason = ReconnectReason + +class _SubscriptionError: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + +class _SubscriptionErrorEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_SubscriptionError.ValueType], builtins.type): + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + SE_UNKNOWN: _SubscriptionError.ValueType # 0 + SE_CODEC_UNSUPPORTED: _SubscriptionError.ValueType # 1 + SE_TRACK_NOTFOUND: _SubscriptionError.ValueType # 2 + +class SubscriptionError(_SubscriptionError, metaclass=_SubscriptionErrorEnumTypeWrapper): ... + +SE_UNKNOWN: SubscriptionError.ValueType # 0 +SE_CODEC_UNSUPPORTED: SubscriptionError.ValueType # 1 +SE_TRACK_NOTFOUND: SubscriptionError.ValueType # 2 +global___SubscriptionError = SubscriptionError + +@typing_extensions.final +class Room(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SID_FIELD_NUMBER: builtins.int + NAME_FIELD_NUMBER: builtins.int + EMPTY_TIMEOUT_FIELD_NUMBER: builtins.int + MAX_PARTICIPANTS_FIELD_NUMBER: builtins.int + CREATION_TIME_FIELD_NUMBER: builtins.int + TURN_PASSWORD_FIELD_NUMBER: builtins.int + ENABLED_CODECS_FIELD_NUMBER: builtins.int + METADATA_FIELD_NUMBER: builtins.int + NUM_PARTICIPANTS_FIELD_NUMBER: builtins.int + NUM_PUBLISHERS_FIELD_NUMBER: builtins.int + ACTIVE_RECORDING_FIELD_NUMBER: builtins.int + sid: builtins.str + name: builtins.str + empty_timeout: builtins.int + max_participants: builtins.int + creation_time: builtins.int + turn_password: builtins.str + @property + def enabled_codecs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Codec]: ... + metadata: builtins.str + num_participants: builtins.int + num_publishers: builtins.int + active_recording: builtins.bool + def __init__( + self, + *, + sid: builtins.str = ..., + name: builtins.str = ..., + empty_timeout: builtins.int = ..., + max_participants: builtins.int = ..., + creation_time: builtins.int = ..., + turn_password: builtins.str = ..., + enabled_codecs: collections.abc.Iterable[global___Codec] | None = ..., + metadata: builtins.str = ..., + num_participants: builtins.int = ..., + num_publishers: builtins.int = ..., + active_recording: builtins.bool = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["active_recording", b"active_recording", "creation_time", b"creation_time", "empty_timeout", b"empty_timeout", "enabled_codecs", b"enabled_codecs", "max_participants", b"max_participants", "metadata", b"metadata", "name", b"name", "num_participants", b"num_participants", "num_publishers", b"num_publishers", "sid", b"sid", "turn_password", b"turn_password"]) -> None: ... + +global___Room = Room + +@typing_extensions.final +class Codec(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + MIME_FIELD_NUMBER: builtins.int + FMTP_LINE_FIELD_NUMBER: builtins.int + mime: builtins.str + fmtp_line: builtins.str + def __init__( + self, + *, + mime: builtins.str = ..., + fmtp_line: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["fmtp_line", b"fmtp_line", "mime", b"mime"]) -> None: ... + +global___Codec = Codec + +@typing_extensions.final +class PlayoutDelay(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ENABLED_FIELD_NUMBER: builtins.int + MIN_FIELD_NUMBER: builtins.int + MAX_FIELD_NUMBER: builtins.int + enabled: builtins.bool + min: builtins.int + max: builtins.int + def __init__( + self, + *, + enabled: builtins.bool = ..., + min: builtins.int = ..., + max: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["enabled", b"enabled", "max", b"max", "min", b"min"]) -> None: ... + +global___PlayoutDelay = PlayoutDelay + +@typing_extensions.final +class ParticipantPermission(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CAN_SUBSCRIBE_FIELD_NUMBER: builtins.int + CAN_PUBLISH_FIELD_NUMBER: builtins.int + CAN_PUBLISH_DATA_FIELD_NUMBER: builtins.int + CAN_PUBLISH_SOURCES_FIELD_NUMBER: builtins.int + HIDDEN_FIELD_NUMBER: builtins.int + RECORDER_FIELD_NUMBER: builtins.int + CAN_UPDATE_METADATA_FIELD_NUMBER: builtins.int + AGENT_FIELD_NUMBER: builtins.int + can_subscribe: builtins.bool + """allow participant to subscribe to other tracks in the room""" + can_publish: builtins.bool + """allow participant to publish new tracks to room""" + can_publish_data: builtins.bool + """allow participant to publish data""" + @property + def can_publish_sources(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___TrackSource.ValueType]: + """sources that are allowed to be published""" + hidden: builtins.bool + """indicates that it's hidden to others""" + recorder: builtins.bool + """indicates it's a recorder instance""" + can_update_metadata: builtins.bool + """indicates that participant can update own metadata""" + agent: builtins.bool + """indicates that participant is an agent""" + def __init__( + self, + *, + can_subscribe: builtins.bool = ..., + can_publish: builtins.bool = ..., + can_publish_data: builtins.bool = ..., + can_publish_sources: collections.abc.Iterable[global___TrackSource.ValueType] | None = ..., + hidden: builtins.bool = ..., + recorder: builtins.bool = ..., + can_update_metadata: builtins.bool = ..., + agent: builtins.bool = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["agent", b"agent", "can_publish", b"can_publish", "can_publish_data", b"can_publish_data", "can_publish_sources", b"can_publish_sources", "can_subscribe", b"can_subscribe", "can_update_metadata", b"can_update_metadata", "hidden", b"hidden", "recorder", b"recorder"]) -> None: ... + +global___ParticipantPermission = ParticipantPermission + +@typing_extensions.final +class ParticipantInfo(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + class _State: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + + class _StateEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ParticipantInfo._State.ValueType], builtins.type): # noqa: F821 + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + JOINING: ParticipantInfo._State.ValueType # 0 + """websocket' connected, but not offered yet""" + JOINED: ParticipantInfo._State.ValueType # 1 + """server received client offer""" + ACTIVE: ParticipantInfo._State.ValueType # 2 + """ICE connectivity established""" + DISCONNECTED: ParticipantInfo._State.ValueType # 3 + """WS disconnected""" + + class State(_State, metaclass=_StateEnumTypeWrapper): ... + JOINING: ParticipantInfo.State.ValueType # 0 + """websocket' connected, but not offered yet""" + JOINED: ParticipantInfo.State.ValueType # 1 + """server received client offer""" + ACTIVE: ParticipantInfo.State.ValueType # 2 + """ICE connectivity established""" + DISCONNECTED: ParticipantInfo.State.ValueType # 3 + """WS disconnected""" + + SID_FIELD_NUMBER: builtins.int + IDENTITY_FIELD_NUMBER: builtins.int + STATE_FIELD_NUMBER: builtins.int + TRACKS_FIELD_NUMBER: builtins.int + METADATA_FIELD_NUMBER: builtins.int + JOINED_AT_FIELD_NUMBER: builtins.int + NAME_FIELD_NUMBER: builtins.int + VERSION_FIELD_NUMBER: builtins.int + PERMISSION_FIELD_NUMBER: builtins.int + REGION_FIELD_NUMBER: builtins.int + IS_PUBLISHER_FIELD_NUMBER: builtins.int + sid: builtins.str + identity: builtins.str + state: global___ParticipantInfo.State.ValueType + @property + def tracks(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___TrackInfo]: ... + metadata: builtins.str + joined_at: builtins.int + """timestamp when participant joined room, in seconds""" + name: builtins.str + version: builtins.int + @property + def permission(self) -> global___ParticipantPermission: ... + region: builtins.str + is_publisher: builtins.bool + """indicates the participant has an active publisher connection + and can publish to the server + """ + def __init__( + self, + *, + sid: builtins.str = ..., + identity: builtins.str = ..., + state: global___ParticipantInfo.State.ValueType = ..., + tracks: collections.abc.Iterable[global___TrackInfo] | None = ..., + metadata: builtins.str = ..., + joined_at: builtins.int = ..., + name: builtins.str = ..., + version: builtins.int = ..., + permission: global___ParticipantPermission | None = ..., + region: builtins.str = ..., + is_publisher: builtins.bool = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["permission", b"permission"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["identity", b"identity", "is_publisher", b"is_publisher", "joined_at", b"joined_at", "metadata", b"metadata", "name", b"name", "permission", b"permission", "region", b"region", "sid", b"sid", "state", b"state", "tracks", b"tracks", "version", b"version"]) -> None: ... + +global___ParticipantInfo = ParticipantInfo + +@typing_extensions.final +class Encryption(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + class _Type: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + + class _TypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Encryption._Type.ValueType], builtins.type): # noqa: F821 + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + NONE: Encryption._Type.ValueType # 0 + GCM: Encryption._Type.ValueType # 1 + CUSTOM: Encryption._Type.ValueType # 2 + + class Type(_Type, metaclass=_TypeEnumTypeWrapper): ... + NONE: Encryption.Type.ValueType # 0 + GCM: Encryption.Type.ValueType # 1 + CUSTOM: Encryption.Type.ValueType # 2 + + def __init__( + self, + ) -> None: ... + +global___Encryption = Encryption + +@typing_extensions.final +class SimulcastCodecInfo(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + MIME_TYPE_FIELD_NUMBER: builtins.int + MID_FIELD_NUMBER: builtins.int + CID_FIELD_NUMBER: builtins.int + LAYERS_FIELD_NUMBER: builtins.int + mime_type: builtins.str + mid: builtins.str + cid: builtins.str + @property + def layers(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___VideoLayer]: ... + def __init__( + self, + *, + mime_type: builtins.str = ..., + mid: builtins.str = ..., + cid: builtins.str = ..., + layers: collections.abc.Iterable[global___VideoLayer] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["cid", b"cid", "layers", b"layers", "mid", b"mid", "mime_type", b"mime_type"]) -> None: ... + +global___SimulcastCodecInfo = SimulcastCodecInfo + +@typing_extensions.final +class TrackInfo(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SID_FIELD_NUMBER: builtins.int + TYPE_FIELD_NUMBER: builtins.int + NAME_FIELD_NUMBER: builtins.int + MUTED_FIELD_NUMBER: builtins.int + WIDTH_FIELD_NUMBER: builtins.int + HEIGHT_FIELD_NUMBER: builtins.int + SIMULCAST_FIELD_NUMBER: builtins.int + DISABLE_DTX_FIELD_NUMBER: builtins.int + SOURCE_FIELD_NUMBER: builtins.int + LAYERS_FIELD_NUMBER: builtins.int + MIME_TYPE_FIELD_NUMBER: builtins.int + MID_FIELD_NUMBER: builtins.int + CODECS_FIELD_NUMBER: builtins.int + STEREO_FIELD_NUMBER: builtins.int + DISABLE_RED_FIELD_NUMBER: builtins.int + ENCRYPTION_FIELD_NUMBER: builtins.int + STREAM_FIELD_NUMBER: builtins.int + sid: builtins.str + type: global___TrackType.ValueType + name: builtins.str + muted: builtins.bool + width: builtins.int + """original width of video (unset for audio) + clients may receive a lower resolution version with simulcast + """ + height: builtins.int + """original height of video (unset for audio)""" + simulcast: builtins.bool + """true if track is simulcasted""" + disable_dtx: builtins.bool + """true if DTX (Discontinuous Transmission) is disabled for audio""" + source: global___TrackSource.ValueType + """source of media""" + @property + def layers(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___VideoLayer]: ... + mime_type: builtins.str + """mime type of codec""" + mid: builtins.str + @property + def codecs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SimulcastCodecInfo]: ... + stereo: builtins.bool + disable_red: builtins.bool + """true if RED (Redundant Encoding) is disabled for audio""" + encryption: global___Encryption.Type.ValueType + stream: builtins.str + def __init__( + self, + *, + sid: builtins.str = ..., + type: global___TrackType.ValueType = ..., + name: builtins.str = ..., + muted: builtins.bool = ..., + width: builtins.int = ..., + height: builtins.int = ..., + simulcast: builtins.bool = ..., + disable_dtx: builtins.bool = ..., + source: global___TrackSource.ValueType = ..., + layers: collections.abc.Iterable[global___VideoLayer] | None = ..., + mime_type: builtins.str = ..., + mid: builtins.str = ..., + codecs: collections.abc.Iterable[global___SimulcastCodecInfo] | None = ..., + stereo: builtins.bool = ..., + disable_red: builtins.bool = ..., + encryption: global___Encryption.Type.ValueType = ..., + stream: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["codecs", b"codecs", "disable_dtx", b"disable_dtx", "disable_red", b"disable_red", "encryption", b"encryption", "height", b"height", "layers", b"layers", "mid", b"mid", "mime_type", b"mime_type", "muted", b"muted", "name", b"name", "sid", b"sid", "simulcast", b"simulcast", "source", b"source", "stereo", b"stereo", "stream", b"stream", "type", b"type", "width", b"width"]) -> None: ... + +global___TrackInfo = TrackInfo + +@typing_extensions.final +class VideoLayer(google.protobuf.message.Message): + """provide information about available spatial layers""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + QUALITY_FIELD_NUMBER: builtins.int + WIDTH_FIELD_NUMBER: builtins.int + HEIGHT_FIELD_NUMBER: builtins.int + BITRATE_FIELD_NUMBER: builtins.int + SSRC_FIELD_NUMBER: builtins.int + quality: global___VideoQuality.ValueType + """for tracks with a single layer, this should be HIGH""" + width: builtins.int + height: builtins.int + bitrate: builtins.int + """target bitrate in bit per second (bps), server will measure actual""" + ssrc: builtins.int + def __init__( + self, + *, + quality: global___VideoQuality.ValueType = ..., + width: builtins.int = ..., + height: builtins.int = ..., + bitrate: builtins.int = ..., + ssrc: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["bitrate", b"bitrate", "height", b"height", "quality", b"quality", "ssrc", b"ssrc", "width", b"width"]) -> None: ... + +global___VideoLayer = VideoLayer + +@typing_extensions.final +class DataPacket(google.protobuf.message.Message): + """new DataPacket API""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + class _Kind: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + + class _KindEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[DataPacket._Kind.ValueType], builtins.type): # noqa: F821 + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + RELIABLE: DataPacket._Kind.ValueType # 0 + LOSSY: DataPacket._Kind.ValueType # 1 + + class Kind(_Kind, metaclass=_KindEnumTypeWrapper): ... + RELIABLE: DataPacket.Kind.ValueType # 0 + LOSSY: DataPacket.Kind.ValueType # 1 + + KIND_FIELD_NUMBER: builtins.int + USER_FIELD_NUMBER: builtins.int + SPEAKER_FIELD_NUMBER: builtins.int + kind: global___DataPacket.Kind.ValueType + @property + def user(self) -> global___UserPacket: ... + @property + def speaker(self) -> global___ActiveSpeakerUpdate: ... + def __init__( + self, + *, + kind: global___DataPacket.Kind.ValueType = ..., + user: global___UserPacket | None = ..., + speaker: global___ActiveSpeakerUpdate | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["speaker", b"speaker", "user", b"user", "value", b"value"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["kind", b"kind", "speaker", b"speaker", "user", b"user", "value", b"value"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions.Literal["value", b"value"]) -> typing_extensions.Literal["user", "speaker"] | None: ... + +global___DataPacket = DataPacket + +@typing_extensions.final +class ActiveSpeakerUpdate(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SPEAKERS_FIELD_NUMBER: builtins.int + @property + def speakers(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SpeakerInfo]: ... + def __init__( + self, + *, + speakers: collections.abc.Iterable[global___SpeakerInfo] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["speakers", b"speakers"]) -> None: ... + +global___ActiveSpeakerUpdate = ActiveSpeakerUpdate + +@typing_extensions.final +class SpeakerInfo(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + SID_FIELD_NUMBER: builtins.int + LEVEL_FIELD_NUMBER: builtins.int + ACTIVE_FIELD_NUMBER: builtins.int + sid: builtins.str + level: builtins.float + """audio level, 0-1.0, 1 is loudest""" + active: builtins.bool + """true if speaker is currently active""" + def __init__( + self, + *, + sid: builtins.str = ..., + level: builtins.float = ..., + active: builtins.bool = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["active", b"active", "level", b"level", "sid", b"sid"]) -> None: ... + +global___SpeakerInfo = SpeakerInfo + +@typing_extensions.final +class UserPacket(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PARTICIPANT_SID_FIELD_NUMBER: builtins.int + PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int + PAYLOAD_FIELD_NUMBER: builtins.int + DESTINATION_SIDS_FIELD_NUMBER: builtins.int + DESTINATION_IDENTITIES_FIELD_NUMBER: builtins.int + TOPIC_FIELD_NUMBER: builtins.int + participant_sid: builtins.str + """participant ID of user that sent the message""" + participant_identity: builtins.str + payload: builtins.bytes + """user defined payload""" + @property + def destination_sids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + """the ID of the participants who will receive the message (sent to all by default)""" + @property + def destination_identities(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + """identities of participants who will receive the message (sent to all by default)""" + topic: builtins.str + """topic under which the message was published""" + def __init__( + self, + *, + participant_sid: builtins.str = ..., + participant_identity: builtins.str = ..., + payload: builtins.bytes = ..., + destination_sids: collections.abc.Iterable[builtins.str] | None = ..., + destination_identities: collections.abc.Iterable[builtins.str] | None = ..., + topic: builtins.str | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["_topic", b"_topic", "topic", b"topic"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["_topic", b"_topic", "destination_identities", b"destination_identities", "destination_sids", b"destination_sids", "participant_identity", b"participant_identity", "participant_sid", b"participant_sid", "payload", b"payload", "topic", b"topic"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions.Literal["_topic", b"_topic"]) -> typing_extensions.Literal["topic"] | None: ... + +global___UserPacket = UserPacket + +@typing_extensions.final +class ParticipantTracks(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PARTICIPANT_SID_FIELD_NUMBER: builtins.int + TRACK_SIDS_FIELD_NUMBER: builtins.int + participant_sid: builtins.str + """participant ID of participant to whom the tracks belong""" + @property + def track_sids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... + def __init__( + self, + *, + participant_sid: builtins.str = ..., + track_sids: collections.abc.Iterable[builtins.str] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["participant_sid", b"participant_sid", "track_sids", b"track_sids"]) -> None: ... + +global___ParticipantTracks = ParticipantTracks + +@typing_extensions.final +class ServerInfo(google.protobuf.message.Message): + """details about the server""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + class _Edition: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + + class _EditionEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ServerInfo._Edition.ValueType], builtins.type): # noqa: F821 + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + Standard: ServerInfo._Edition.ValueType # 0 + Cloud: ServerInfo._Edition.ValueType # 1 + + class Edition(_Edition, metaclass=_EditionEnumTypeWrapper): ... + Standard: ServerInfo.Edition.ValueType # 0 + Cloud: ServerInfo.Edition.ValueType # 1 + + EDITION_FIELD_NUMBER: builtins.int + VERSION_FIELD_NUMBER: builtins.int + PROTOCOL_FIELD_NUMBER: builtins.int + REGION_FIELD_NUMBER: builtins.int + NODE_ID_FIELD_NUMBER: builtins.int + DEBUG_INFO_FIELD_NUMBER: builtins.int + edition: global___ServerInfo.Edition.ValueType + version: builtins.str + protocol: builtins.int + region: builtins.str + node_id: builtins.str + debug_info: builtins.str + """additional debugging information. sent only if server is in development mode""" + def __init__( + self, + *, + edition: global___ServerInfo.Edition.ValueType = ..., + version: builtins.str = ..., + protocol: builtins.int = ..., + region: builtins.str = ..., + node_id: builtins.str = ..., + debug_info: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["debug_info", b"debug_info", "edition", b"edition", "node_id", b"node_id", "protocol", b"protocol", "region", b"region", "version", b"version"]) -> None: ... + +global___ServerInfo = ServerInfo + +@typing_extensions.final +class ClientInfo(google.protobuf.message.Message): + """details about the client""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + class _SDK: + ValueType = typing.NewType("ValueType", builtins.int) + V: typing_extensions.TypeAlias = ValueType + + class _SDKEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ClientInfo._SDK.ValueType], builtins.type): # noqa: F821 + DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor + UNKNOWN: ClientInfo._SDK.ValueType # 0 + JS: ClientInfo._SDK.ValueType # 1 + SWIFT: ClientInfo._SDK.ValueType # 2 + ANDROID: ClientInfo._SDK.ValueType # 3 + FLUTTER: ClientInfo._SDK.ValueType # 4 + GO: ClientInfo._SDK.ValueType # 5 + UNITY: ClientInfo._SDK.ValueType # 6 + REACT_NATIVE: ClientInfo._SDK.ValueType # 7 + RUST: ClientInfo._SDK.ValueType # 8 + PYTHON: ClientInfo._SDK.ValueType # 9 + CPP: ClientInfo._SDK.ValueType # 10 + + class SDK(_SDK, metaclass=_SDKEnumTypeWrapper): ... + UNKNOWN: ClientInfo.SDK.ValueType # 0 + JS: ClientInfo.SDK.ValueType # 1 + SWIFT: ClientInfo.SDK.ValueType # 2 + ANDROID: ClientInfo.SDK.ValueType # 3 + FLUTTER: ClientInfo.SDK.ValueType # 4 + GO: ClientInfo.SDK.ValueType # 5 + UNITY: ClientInfo.SDK.ValueType # 6 + REACT_NATIVE: ClientInfo.SDK.ValueType # 7 + RUST: ClientInfo.SDK.ValueType # 8 + PYTHON: ClientInfo.SDK.ValueType # 9 + CPP: ClientInfo.SDK.ValueType # 10 + + SDK_FIELD_NUMBER: builtins.int + VERSION_FIELD_NUMBER: builtins.int + PROTOCOL_FIELD_NUMBER: builtins.int + OS_FIELD_NUMBER: builtins.int + OS_VERSION_FIELD_NUMBER: builtins.int + DEVICE_MODEL_FIELD_NUMBER: builtins.int + BROWSER_FIELD_NUMBER: builtins.int + BROWSER_VERSION_FIELD_NUMBER: builtins.int + ADDRESS_FIELD_NUMBER: builtins.int + NETWORK_FIELD_NUMBER: builtins.int + sdk: global___ClientInfo.SDK.ValueType + version: builtins.str + protocol: builtins.int + os: builtins.str + os_version: builtins.str + device_model: builtins.str + browser: builtins.str + browser_version: builtins.str + address: builtins.str + network: builtins.str + """wifi, wired, cellular, vpn, empty if not known""" + def __init__( + self, + *, + sdk: global___ClientInfo.SDK.ValueType = ..., + version: builtins.str = ..., + protocol: builtins.int = ..., + os: builtins.str = ..., + os_version: builtins.str = ..., + device_model: builtins.str = ..., + browser: builtins.str = ..., + browser_version: builtins.str = ..., + address: builtins.str = ..., + network: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["address", b"address", "browser", b"browser", "browser_version", b"browser_version", "device_model", b"device_model", "network", b"network", "os", b"os", "os_version", b"os_version", "protocol", b"protocol", "sdk", b"sdk", "version", b"version"]) -> None: ... + +global___ClientInfo = ClientInfo + +@typing_extensions.final +class ClientConfiguration(google.protobuf.message.Message): + """server provided client configuration""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + VIDEO_FIELD_NUMBER: builtins.int + SCREEN_FIELD_NUMBER: builtins.int + RESUME_CONNECTION_FIELD_NUMBER: builtins.int + DISABLED_CODECS_FIELD_NUMBER: builtins.int + FORCE_RELAY_FIELD_NUMBER: builtins.int + @property + def video(self) -> global___VideoConfiguration: ... + @property + def screen(self) -> global___VideoConfiguration: ... + resume_connection: global___ClientConfigSetting.ValueType + @property + def disabled_codecs(self) -> global___DisabledCodecs: ... + force_relay: global___ClientConfigSetting.ValueType + def __init__( + self, + *, + video: global___VideoConfiguration | None = ..., + screen: global___VideoConfiguration | None = ..., + resume_connection: global___ClientConfigSetting.ValueType = ..., + disabled_codecs: global___DisabledCodecs | None = ..., + force_relay: global___ClientConfigSetting.ValueType = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["disabled_codecs", b"disabled_codecs", "screen", b"screen", "video", b"video"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["disabled_codecs", b"disabled_codecs", "force_relay", b"force_relay", "resume_connection", b"resume_connection", "screen", b"screen", "video", b"video"]) -> None: ... + +global___ClientConfiguration = ClientConfiguration + +@typing_extensions.final +class VideoConfiguration(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + HARDWARE_ENCODER_FIELD_NUMBER: builtins.int + hardware_encoder: global___ClientConfigSetting.ValueType + def __init__( + self, + *, + hardware_encoder: global___ClientConfigSetting.ValueType = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["hardware_encoder", b"hardware_encoder"]) -> None: ... + +global___VideoConfiguration = VideoConfiguration + +@typing_extensions.final +class DisabledCodecs(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + CODECS_FIELD_NUMBER: builtins.int + PUBLISH_FIELD_NUMBER: builtins.int + @property + def codecs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Codec]: + """disabled for both publish and subscribe""" + @property + def publish(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Codec]: + """only disable for publish""" + def __init__( + self, + *, + codecs: collections.abc.Iterable[global___Codec] | None = ..., + publish: collections.abc.Iterable[global___Codec] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["codecs", b"codecs", "publish", b"publish"]) -> None: ... + +global___DisabledCodecs = DisabledCodecs + +@typing_extensions.final +class RTPDrift(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + START_TIME_FIELD_NUMBER: builtins.int + END_TIME_FIELD_NUMBER: builtins.int + DURATION_FIELD_NUMBER: builtins.int + START_TIMESTAMP_FIELD_NUMBER: builtins.int + END_TIMESTAMP_FIELD_NUMBER: builtins.int + RTP_CLOCK_TICKS_FIELD_NUMBER: builtins.int + DRIFT_SAMPLES_FIELD_NUMBER: builtins.int + DRIFT_MS_FIELD_NUMBER: builtins.int + CLOCK_RATE_FIELD_NUMBER: builtins.int + @property + def start_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + @property + def end_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + duration: builtins.float + start_timestamp: builtins.int + end_timestamp: builtins.int + rtp_clock_ticks: builtins.int + drift_samples: builtins.int + drift_ms: builtins.float + clock_rate: builtins.float + def __init__( + self, + *, + start_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + end_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + duration: builtins.float = ..., + start_timestamp: builtins.int = ..., + end_timestamp: builtins.int = ..., + rtp_clock_ticks: builtins.int = ..., + drift_samples: builtins.int = ..., + drift_ms: builtins.float = ..., + clock_rate: builtins.float = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["end_time", b"end_time", "start_time", b"start_time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["clock_rate", b"clock_rate", "drift_ms", b"drift_ms", "drift_samples", b"drift_samples", "duration", b"duration", "end_time", b"end_time", "end_timestamp", b"end_timestamp", "rtp_clock_ticks", b"rtp_clock_ticks", "start_time", b"start_time", "start_timestamp", b"start_timestamp"]) -> None: ... + +global___RTPDrift = RTPDrift + +@typing_extensions.final +class RTPStats(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + @typing_extensions.final + class GapHistogramEntry(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + KEY_FIELD_NUMBER: builtins.int + VALUE_FIELD_NUMBER: builtins.int + key: builtins.int + value: builtins.int + def __init__( + self, + *, + key: builtins.int = ..., + value: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... + + START_TIME_FIELD_NUMBER: builtins.int + END_TIME_FIELD_NUMBER: builtins.int + DURATION_FIELD_NUMBER: builtins.int + PACKETS_FIELD_NUMBER: builtins.int + PACKET_RATE_FIELD_NUMBER: builtins.int + BYTES_FIELD_NUMBER: builtins.int + HEADER_BYTES_FIELD_NUMBER: builtins.int + BITRATE_FIELD_NUMBER: builtins.int + PACKETS_LOST_FIELD_NUMBER: builtins.int + PACKET_LOSS_RATE_FIELD_NUMBER: builtins.int + PACKET_LOSS_PERCENTAGE_FIELD_NUMBER: builtins.int + PACKETS_DUPLICATE_FIELD_NUMBER: builtins.int + PACKET_DUPLICATE_RATE_FIELD_NUMBER: builtins.int + BYTES_DUPLICATE_FIELD_NUMBER: builtins.int + HEADER_BYTES_DUPLICATE_FIELD_NUMBER: builtins.int + BITRATE_DUPLICATE_FIELD_NUMBER: builtins.int + PACKETS_PADDING_FIELD_NUMBER: builtins.int + PACKET_PADDING_RATE_FIELD_NUMBER: builtins.int + BYTES_PADDING_FIELD_NUMBER: builtins.int + HEADER_BYTES_PADDING_FIELD_NUMBER: builtins.int + BITRATE_PADDING_FIELD_NUMBER: builtins.int + PACKETS_OUT_OF_ORDER_FIELD_NUMBER: builtins.int + FRAMES_FIELD_NUMBER: builtins.int + FRAME_RATE_FIELD_NUMBER: builtins.int + JITTER_CURRENT_FIELD_NUMBER: builtins.int + JITTER_MAX_FIELD_NUMBER: builtins.int + GAP_HISTOGRAM_FIELD_NUMBER: builtins.int + NACKS_FIELD_NUMBER: builtins.int + NACK_ACKS_FIELD_NUMBER: builtins.int + NACK_MISSES_FIELD_NUMBER: builtins.int + NACK_REPEATED_FIELD_NUMBER: builtins.int + PLIS_FIELD_NUMBER: builtins.int + LAST_PLI_FIELD_NUMBER: builtins.int + FIRS_FIELD_NUMBER: builtins.int + LAST_FIR_FIELD_NUMBER: builtins.int + RTT_CURRENT_FIELD_NUMBER: builtins.int + RTT_MAX_FIELD_NUMBER: builtins.int + KEY_FRAMES_FIELD_NUMBER: builtins.int + LAST_KEY_FRAME_FIELD_NUMBER: builtins.int + LAYER_LOCK_PLIS_FIELD_NUMBER: builtins.int + LAST_LAYER_LOCK_PLI_FIELD_NUMBER: builtins.int + PACKET_DRIFT_FIELD_NUMBER: builtins.int + REPORT_DRIFT_FIELD_NUMBER: builtins.int + @property + def start_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + @property + def end_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + duration: builtins.float + packets: builtins.int + packet_rate: builtins.float + bytes: builtins.int + header_bytes: builtins.int + bitrate: builtins.float + packets_lost: builtins.int + packet_loss_rate: builtins.float + packet_loss_percentage: builtins.float + packets_duplicate: builtins.int + packet_duplicate_rate: builtins.float + bytes_duplicate: builtins.int + header_bytes_duplicate: builtins.int + bitrate_duplicate: builtins.float + packets_padding: builtins.int + packet_padding_rate: builtins.float + bytes_padding: builtins.int + header_bytes_padding: builtins.int + bitrate_padding: builtins.float + packets_out_of_order: builtins.int + frames: builtins.int + frame_rate: builtins.float + jitter_current: builtins.float + jitter_max: builtins.float + @property + def gap_histogram(self) -> google.protobuf.internal.containers.ScalarMap[builtins.int, builtins.int]: ... + nacks: builtins.int + nack_acks: builtins.int + nack_misses: builtins.int + nack_repeated: builtins.int + plis: builtins.int + @property + def last_pli(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + firs: builtins.int + @property + def last_fir(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + rtt_current: builtins.int + rtt_max: builtins.int + key_frames: builtins.int + @property + def last_key_frame(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + layer_lock_plis: builtins.int + @property + def last_layer_lock_pli(self) -> google.protobuf.timestamp_pb2.Timestamp: ... + @property + def packet_drift(self) -> global___RTPDrift: ... + @property + def report_drift(self) -> global___RTPDrift: + """NEXT_ID: 46""" + def __init__( + self, + *, + start_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + end_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., + duration: builtins.float = ..., + packets: builtins.int = ..., + packet_rate: builtins.float = ..., + bytes: builtins.int = ..., + header_bytes: builtins.int = ..., + bitrate: builtins.float = ..., + packets_lost: builtins.int = ..., + packet_loss_rate: builtins.float = ..., + packet_loss_percentage: builtins.float = ..., + packets_duplicate: builtins.int = ..., + packet_duplicate_rate: builtins.float = ..., + bytes_duplicate: builtins.int = ..., + header_bytes_duplicate: builtins.int = ..., + bitrate_duplicate: builtins.float = ..., + packets_padding: builtins.int = ..., + packet_padding_rate: builtins.float = ..., + bytes_padding: builtins.int = ..., + header_bytes_padding: builtins.int = ..., + bitrate_padding: builtins.float = ..., + packets_out_of_order: builtins.int = ..., + frames: builtins.int = ..., + frame_rate: builtins.float = ..., + jitter_current: builtins.float = ..., + jitter_max: builtins.float = ..., + gap_histogram: collections.abc.Mapping[builtins.int, builtins.int] | None = ..., + nacks: builtins.int = ..., + nack_acks: builtins.int = ..., + nack_misses: builtins.int = ..., + nack_repeated: builtins.int = ..., + plis: builtins.int = ..., + last_pli: google.protobuf.timestamp_pb2.Timestamp | None = ..., + firs: builtins.int = ..., + last_fir: google.protobuf.timestamp_pb2.Timestamp | None = ..., + rtt_current: builtins.int = ..., + rtt_max: builtins.int = ..., + key_frames: builtins.int = ..., + last_key_frame: google.protobuf.timestamp_pb2.Timestamp | None = ..., + layer_lock_plis: builtins.int = ..., + last_layer_lock_pli: google.protobuf.timestamp_pb2.Timestamp | None = ..., + packet_drift: global___RTPDrift | None = ..., + report_drift: global___RTPDrift | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["end_time", b"end_time", "last_fir", b"last_fir", "last_key_frame", b"last_key_frame", "last_layer_lock_pli", b"last_layer_lock_pli", "last_pli", b"last_pli", "packet_drift", b"packet_drift", "report_drift", b"report_drift", "start_time", b"start_time"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["bitrate", b"bitrate", "bitrate_duplicate", b"bitrate_duplicate", "bitrate_padding", b"bitrate_padding", "bytes", b"bytes", "bytes_duplicate", b"bytes_duplicate", "bytes_padding", b"bytes_padding", "duration", b"duration", "end_time", b"end_time", "firs", b"firs", "frame_rate", b"frame_rate", "frames", b"frames", "gap_histogram", b"gap_histogram", "header_bytes", b"header_bytes", "header_bytes_duplicate", b"header_bytes_duplicate", "header_bytes_padding", b"header_bytes_padding", "jitter_current", b"jitter_current", "jitter_max", b"jitter_max", "key_frames", b"key_frames", "last_fir", b"last_fir", "last_key_frame", b"last_key_frame", "last_layer_lock_pli", b"last_layer_lock_pli", "last_pli", b"last_pli", "layer_lock_plis", b"layer_lock_plis", "nack_acks", b"nack_acks", "nack_misses", b"nack_misses", "nack_repeated", b"nack_repeated", "nacks", b"nacks", "packet_drift", b"packet_drift", "packet_duplicate_rate", b"packet_duplicate_rate", "packet_loss_percentage", b"packet_loss_percentage", "packet_loss_rate", b"packet_loss_rate", "packet_padding_rate", b"packet_padding_rate", "packet_rate", b"packet_rate", "packets", b"packets", "packets_duplicate", b"packets_duplicate", "packets_lost", b"packets_lost", "packets_out_of_order", b"packets_out_of_order", "packets_padding", b"packets_padding", "plis", b"plis", "report_drift", b"report_drift", "rtt_current", b"rtt_current", "rtt_max", b"rtt_max", "start_time", b"start_time"]) -> None: ... + +global___RTPStats = RTPStats + +@typing_extensions.final +class TimedVersion(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + UNIX_MICRO_FIELD_NUMBER: builtins.int + TICKS_FIELD_NUMBER: builtins.int + unix_micro: builtins.int + ticks: builtins.int + def __init__( + self, + *, + unix_micro: builtins.int = ..., + ticks: builtins.int = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["ticks", b"ticks", "unix_micro", b"unix_micro"]) -> None: ... + +global___TimedVersion = TimedVersion diff --git a/livekit-protocol/livekit/protocol/livekit_room_pb2.py b/livekit-protocol/livekit/protocol/livekit_room_pb2.py new file mode 100644 index 00000000..f47fa6a9 --- /dev/null +++ b/livekit-protocol/livekit/protocol/livekit_room_pb2.py @@ -0,0 +1,67 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: livekit_room.proto +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from . import livekit_models_pb2 as livekit__models__pb2 +from . import livekit_egress_pb2 as livekit__egress__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x12livekit_room.proto\x12\x07livekit\x1a\x14livekit_models.proto\x1a\x14livekit_egress.proto\"\xe6\x01\n\x11\x43reateRoomRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x15\n\rempty_timeout\x18\x02 \x01(\r\x12\x18\n\x10max_participants\x18\x03 \x01(\r\x12\x0f\n\x07node_id\x18\x04 \x01(\t\x12\x10\n\x08metadata\x18\x05 \x01(\t\x12#\n\x06\x65gress\x18\x06 \x01(\x0b\x32\x13.livekit.RoomEgress\x12\x19\n\x11min_playout_delay\x18\x07 \x01(\r\x12\x19\n\x11max_playout_delay\x18\x08 \x01(\r\x12\x14\n\x0csync_streams\x18\t \x01(\x08\"\x9e\x01\n\nRoomEgress\x12\x31\n\x04room\x18\x01 \x01(\x0b\x32#.livekit.RoomCompositeEgressRequest\x12\x33\n\x0bparticipant\x18\x03 \x01(\x0b\x32\x1e.livekit.AutoParticipantEgress\x12(\n\x06tracks\x18\x02 \x01(\x0b\x32\x18.livekit.AutoTrackEgress\"!\n\x10ListRoomsRequest\x12\r\n\x05names\x18\x01 \x03(\t\"1\n\x11ListRoomsResponse\x12\x1c\n\x05rooms\x18\x01 \x03(\x0b\x32\r.livekit.Room\"!\n\x11\x44\x65leteRoomRequest\x12\x0c\n\x04room\x18\x01 \x01(\t\"\x14\n\x12\x44\x65leteRoomResponse\"\'\n\x17ListParticipantsRequest\x12\x0c\n\x04room\x18\x01 \x01(\t\"J\n\x18ListParticipantsResponse\x12.\n\x0cparticipants\x18\x01 \x03(\x0b\x32\x18.livekit.ParticipantInfo\"9\n\x17RoomParticipantIdentity\x12\x0c\n\x04room\x18\x01 \x01(\t\x12\x10\n\x08identity\x18\x02 \x01(\t\"\x1b\n\x19RemoveParticipantResponse\"X\n\x14MuteRoomTrackRequest\x12\x0c\n\x04room\x18\x01 \x01(\t\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x11\n\ttrack_sid\x18\x03 \x01(\t\x12\r\n\x05muted\x18\x04 \x01(\x08\":\n\x15MuteRoomTrackResponse\x12!\n\x05track\x18\x01 \x01(\x0b\x32\x12.livekit.TrackInfo\"\x8e\x01\n\x18UpdateParticipantRequest\x12\x0c\n\x04room\x18\x01 \x01(\t\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x10\n\x08metadata\x18\x03 \x01(\t\x12\x32\n\npermission\x18\x04 \x01(\x0b\x32\x1e.livekit.ParticipantPermission\x12\x0c\n\x04name\x18\x05 \x01(\t\"\x9b\x01\n\x1aUpdateSubscriptionsRequest\x12\x0c\n\x04room\x18\x01 \x01(\t\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x12\n\ntrack_sids\x18\x03 \x03(\t\x12\x11\n\tsubscribe\x18\x04 \x01(\x08\x12\x36\n\x12participant_tracks\x18\x05 \x03(\x0b\x32\x1a.livekit.ParticipantTracks\"\x1d\n\x1bUpdateSubscriptionsResponse\"\xb1\x01\n\x0fSendDataRequest\x12\x0c\n\x04room\x18\x01 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\x0c\x12&\n\x04kind\x18\x03 \x01(\x0e\x32\x18.livekit.DataPacket.Kind\x12\x1c\n\x10\x64\x65stination_sids\x18\x04 \x03(\tB\x02\x18\x01\x12\x1e\n\x16\x64\x65stination_identities\x18\x06 \x03(\t\x12\x12\n\x05topic\x18\x05 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_topic\"\x12\n\x10SendDataResponse\";\n\x19UpdateRoomMetadataRequest\x12\x0c\n\x04room\x18\x01 \x01(\t\x12\x10\n\x08metadata\x18\x02 \x01(\t2\xe6\x06\n\x0bRoomService\x12\x37\n\nCreateRoom\x12\x1a.livekit.CreateRoomRequest\x1a\r.livekit.Room\x12\x42\n\tListRooms\x12\x19.livekit.ListRoomsRequest\x1a\x1a.livekit.ListRoomsResponse\x12\x45\n\nDeleteRoom\x12\x1a.livekit.DeleteRoomRequest\x1a\x1b.livekit.DeleteRoomResponse\x12W\n\x10ListParticipants\x12 .livekit.ListParticipantsRequest\x1a!.livekit.ListParticipantsResponse\x12L\n\x0eGetParticipant\x12 .livekit.RoomParticipantIdentity\x1a\x18.livekit.ParticipantInfo\x12Y\n\x11RemoveParticipant\x12 .livekit.RoomParticipantIdentity\x1a\".livekit.RemoveParticipantResponse\x12S\n\x12MutePublishedTrack\x12\x1d.livekit.MuteRoomTrackRequest\x1a\x1e.livekit.MuteRoomTrackResponse\x12P\n\x11UpdateParticipant\x12!.livekit.UpdateParticipantRequest\x1a\x18.livekit.ParticipantInfo\x12`\n\x13UpdateSubscriptions\x12#.livekit.UpdateSubscriptionsRequest\x1a$.livekit.UpdateSubscriptionsResponse\x12?\n\x08SendData\x12\x18.livekit.SendDataRequest\x1a\x19.livekit.SendDataResponse\x12G\n\x12UpdateRoomMetadata\x12\".livekit.UpdateRoomMetadataRequest\x1a\r.livekit.RoomBFZ#github.com/livekit/protocol/livekit\xaa\x02\rLiveKit.Proto\xea\x02\x0eLiveKit::Protob\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'livekit_room_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z#github.com/livekit/protocol/livekit\252\002\rLiveKit.Proto\352\002\016LiveKit::Proto' + _SENDDATAREQUEST.fields_by_name['destination_sids']._options = None + _SENDDATAREQUEST.fields_by_name['destination_sids']._serialized_options = b'\030\001' + _globals['_CREATEROOMREQUEST']._serialized_start=76 + _globals['_CREATEROOMREQUEST']._serialized_end=306 + _globals['_ROOMEGRESS']._serialized_start=309 + _globals['_ROOMEGRESS']._serialized_end=467 + _globals['_LISTROOMSREQUEST']._serialized_start=469 + _globals['_LISTROOMSREQUEST']._serialized_end=502 + _globals['_LISTROOMSRESPONSE']._serialized_start=504 + _globals['_LISTROOMSRESPONSE']._serialized_end=553 + _globals['_DELETEROOMREQUEST']._serialized_start=555 + _globals['_DELETEROOMREQUEST']._serialized_end=588 + _globals['_DELETEROOMRESPONSE']._serialized_start=590 + _globals['_DELETEROOMRESPONSE']._serialized_end=610 + _globals['_LISTPARTICIPANTSREQUEST']._serialized_start=612 + _globals['_LISTPARTICIPANTSREQUEST']._serialized_end=651 + _globals['_LISTPARTICIPANTSRESPONSE']._serialized_start=653 + _globals['_LISTPARTICIPANTSRESPONSE']._serialized_end=727 + _globals['_ROOMPARTICIPANTIDENTITY']._serialized_start=729 + _globals['_ROOMPARTICIPANTIDENTITY']._serialized_end=786 + _globals['_REMOVEPARTICIPANTRESPONSE']._serialized_start=788 + _globals['_REMOVEPARTICIPANTRESPONSE']._serialized_end=815 + _globals['_MUTEROOMTRACKREQUEST']._serialized_start=817 + _globals['_MUTEROOMTRACKREQUEST']._serialized_end=905 + _globals['_MUTEROOMTRACKRESPONSE']._serialized_start=907 + _globals['_MUTEROOMTRACKRESPONSE']._serialized_end=965 + _globals['_UPDATEPARTICIPANTREQUEST']._serialized_start=968 + _globals['_UPDATEPARTICIPANTREQUEST']._serialized_end=1110 + _globals['_UPDATESUBSCRIPTIONSREQUEST']._serialized_start=1113 + _globals['_UPDATESUBSCRIPTIONSREQUEST']._serialized_end=1268 + _globals['_UPDATESUBSCRIPTIONSRESPONSE']._serialized_start=1270 + _globals['_UPDATESUBSCRIPTIONSRESPONSE']._serialized_end=1299 + _globals['_SENDDATAREQUEST']._serialized_start=1302 + _globals['_SENDDATAREQUEST']._serialized_end=1479 + _globals['_SENDDATARESPONSE']._serialized_start=1481 + _globals['_SENDDATARESPONSE']._serialized_end=1499 + _globals['_UPDATEROOMMETADATAREQUEST']._serialized_start=1501 + _globals['_UPDATEROOMMETADATAREQUEST']._serialized_end=1560 + _globals['_ROOMSERVICE']._serialized_start=1563 + _globals['_ROOMSERVICE']._serialized_end=2433 +# @@protoc_insertion_point(module_scope) diff --git a/livekit-protocol/livekit/protocol/livekit_room_pb2.pyi b/livekit-protocol/livekit/protocol/livekit_room_pb2.pyi new file mode 100644 index 00000000..794e3c96 --- /dev/null +++ b/livekit-protocol/livekit/protocol/livekit_room_pb2.pyi @@ -0,0 +1,416 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +Copyright 2023 LiveKit, Inc. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +""" +import builtins +import collections.abc +import google.protobuf.descriptor +import google.protobuf.internal.containers +import google.protobuf.message +from . import livekit_egress_pb2 +from . import livekit_models_pb2 +import sys + +if sys.version_info >= (3, 8): + import typing as typing_extensions +else: + import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor + +@typing_extensions.final +class CreateRoomRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NAME_FIELD_NUMBER: builtins.int + EMPTY_TIMEOUT_FIELD_NUMBER: builtins.int + MAX_PARTICIPANTS_FIELD_NUMBER: builtins.int + NODE_ID_FIELD_NUMBER: builtins.int + METADATA_FIELD_NUMBER: builtins.int + EGRESS_FIELD_NUMBER: builtins.int + MIN_PLAYOUT_DELAY_FIELD_NUMBER: builtins.int + MAX_PLAYOUT_DELAY_FIELD_NUMBER: builtins.int + SYNC_STREAMS_FIELD_NUMBER: builtins.int + name: builtins.str + """name of the room""" + empty_timeout: builtins.int + """number of seconds to keep the room open if no one joins""" + max_participants: builtins.int + """limit number of participants that can be in a room""" + node_id: builtins.str + """override the node room is allocated to, for debugging""" + metadata: builtins.str + """metadata of room""" + @property + def egress(self) -> global___RoomEgress: + """egress""" + min_playout_delay: builtins.int + """playout delay of subscriber""" + max_playout_delay: builtins.int + sync_streams: builtins.bool + """improves A/V sync when playout_delay set to a value larger than 200ms. It will disables transceiver re-use + so not recommended for rooms with frequent subscription changes + """ + def __init__( + self, + *, + name: builtins.str = ..., + empty_timeout: builtins.int = ..., + max_participants: builtins.int = ..., + node_id: builtins.str = ..., + metadata: builtins.str = ..., + egress: global___RoomEgress | None = ..., + min_playout_delay: builtins.int = ..., + max_playout_delay: builtins.int = ..., + sync_streams: builtins.bool = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["egress", b"egress"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["egress", b"egress", "empty_timeout", b"empty_timeout", "max_participants", b"max_participants", "max_playout_delay", b"max_playout_delay", "metadata", b"metadata", "min_playout_delay", b"min_playout_delay", "name", b"name", "node_id", b"node_id", "sync_streams", b"sync_streams"]) -> None: ... + +global___CreateRoomRequest = CreateRoomRequest + +@typing_extensions.final +class RoomEgress(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ROOM_FIELD_NUMBER: builtins.int + PARTICIPANT_FIELD_NUMBER: builtins.int + TRACKS_FIELD_NUMBER: builtins.int + @property + def room(self) -> livekit_egress_pb2.RoomCompositeEgressRequest: ... + @property + def participant(self) -> livekit_egress_pb2.AutoParticipantEgress: ... + @property + def tracks(self) -> livekit_egress_pb2.AutoTrackEgress: ... + def __init__( + self, + *, + room: livekit_egress_pb2.RoomCompositeEgressRequest | None = ..., + participant: livekit_egress_pb2.AutoParticipantEgress | None = ..., + tracks: livekit_egress_pb2.AutoTrackEgress | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["participant", b"participant", "room", b"room", "tracks", b"tracks"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["participant", b"participant", "room", b"room", "tracks", b"tracks"]) -> None: ... + +global___RoomEgress = RoomEgress + +@typing_extensions.final +class ListRoomsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + NAMES_FIELD_NUMBER: builtins.int + @property + def names(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + """when set, will only return rooms with name match""" + def __init__( + self, + *, + names: collections.abc.Iterable[builtins.str] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["names", b"names"]) -> None: ... + +global___ListRoomsRequest = ListRoomsRequest + +@typing_extensions.final +class ListRoomsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ROOMS_FIELD_NUMBER: builtins.int + @property + def rooms(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[livekit_models_pb2.Room]: ... + def __init__( + self, + *, + rooms: collections.abc.Iterable[livekit_models_pb2.Room] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["rooms", b"rooms"]) -> None: ... + +global___ListRoomsResponse = ListRoomsResponse + +@typing_extensions.final +class DeleteRoomRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ROOM_FIELD_NUMBER: builtins.int + room: builtins.str + """name of the room""" + def __init__( + self, + *, + room: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["room", b"room"]) -> None: ... + +global___DeleteRoomRequest = DeleteRoomRequest + +@typing_extensions.final +class DeleteRoomResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___DeleteRoomResponse = DeleteRoomResponse + +@typing_extensions.final +class ListParticipantsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ROOM_FIELD_NUMBER: builtins.int + room: builtins.str + """name of the room""" + def __init__( + self, + *, + room: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["room", b"room"]) -> None: ... + +global___ListParticipantsRequest = ListParticipantsRequest + +@typing_extensions.final +class ListParticipantsResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + PARTICIPANTS_FIELD_NUMBER: builtins.int + @property + def participants(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[livekit_models_pb2.ParticipantInfo]: ... + def __init__( + self, + *, + participants: collections.abc.Iterable[livekit_models_pb2.ParticipantInfo] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["participants", b"participants"]) -> None: ... + +global___ListParticipantsResponse = ListParticipantsResponse + +@typing_extensions.final +class RoomParticipantIdentity(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ROOM_FIELD_NUMBER: builtins.int + IDENTITY_FIELD_NUMBER: builtins.int + room: builtins.str + """name of the room""" + identity: builtins.str + """identity of the participant""" + def __init__( + self, + *, + room: builtins.str = ..., + identity: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["identity", b"identity", "room", b"room"]) -> None: ... + +global___RoomParticipantIdentity = RoomParticipantIdentity + +@typing_extensions.final +class RemoveParticipantResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___RemoveParticipantResponse = RemoveParticipantResponse + +@typing_extensions.final +class MuteRoomTrackRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ROOM_FIELD_NUMBER: builtins.int + IDENTITY_FIELD_NUMBER: builtins.int + TRACK_SID_FIELD_NUMBER: builtins.int + MUTED_FIELD_NUMBER: builtins.int + room: builtins.str + """name of the room""" + identity: builtins.str + track_sid: builtins.str + """sid of the track to mute""" + muted: builtins.bool + """set to true to mute, false to unmute""" + def __init__( + self, + *, + room: builtins.str = ..., + identity: builtins.str = ..., + track_sid: builtins.str = ..., + muted: builtins.bool = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["identity", b"identity", "muted", b"muted", "room", b"room", "track_sid", b"track_sid"]) -> None: ... + +global___MuteRoomTrackRequest = MuteRoomTrackRequest + +@typing_extensions.final +class MuteRoomTrackResponse(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + TRACK_FIELD_NUMBER: builtins.int + @property + def track(self) -> livekit_models_pb2.TrackInfo: ... + def __init__( + self, + *, + track: livekit_models_pb2.TrackInfo | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["track", b"track"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["track", b"track"]) -> None: ... + +global___MuteRoomTrackResponse = MuteRoomTrackResponse + +@typing_extensions.final +class UpdateParticipantRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ROOM_FIELD_NUMBER: builtins.int + IDENTITY_FIELD_NUMBER: builtins.int + METADATA_FIELD_NUMBER: builtins.int + PERMISSION_FIELD_NUMBER: builtins.int + NAME_FIELD_NUMBER: builtins.int + room: builtins.str + identity: builtins.str + metadata: builtins.str + """metadata to update. skipping updates if left empty""" + @property + def permission(self) -> livekit_models_pb2.ParticipantPermission: + """set to update the participant's permissions""" + name: builtins.str + """display name to update""" + def __init__( + self, + *, + room: builtins.str = ..., + identity: builtins.str = ..., + metadata: builtins.str = ..., + permission: livekit_models_pb2.ParticipantPermission | None = ..., + name: builtins.str = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["permission", b"permission"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["identity", b"identity", "metadata", b"metadata", "name", b"name", "permission", b"permission", "room", b"room"]) -> None: ... + +global___UpdateParticipantRequest = UpdateParticipantRequest + +@typing_extensions.final +class UpdateSubscriptionsRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ROOM_FIELD_NUMBER: builtins.int + IDENTITY_FIELD_NUMBER: builtins.int + TRACK_SIDS_FIELD_NUMBER: builtins.int + SUBSCRIBE_FIELD_NUMBER: builtins.int + PARTICIPANT_TRACKS_FIELD_NUMBER: builtins.int + room: builtins.str + identity: builtins.str + @property + def track_sids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + """list of sids of tracks""" + subscribe: builtins.bool + """set to true to subscribe, false to unsubscribe from tracks""" + @property + def participant_tracks(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[livekit_models_pb2.ParticipantTracks]: + """list of participants and their tracks""" + def __init__( + self, + *, + room: builtins.str = ..., + identity: builtins.str = ..., + track_sids: collections.abc.Iterable[builtins.str] | None = ..., + subscribe: builtins.bool = ..., + participant_tracks: collections.abc.Iterable[livekit_models_pb2.ParticipantTracks] | None = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["identity", b"identity", "participant_tracks", b"participant_tracks", "room", b"room", "subscribe", b"subscribe", "track_sids", b"track_sids"]) -> None: ... + +global___UpdateSubscriptionsRequest = UpdateSubscriptionsRequest + +@typing_extensions.final +class UpdateSubscriptionsResponse(google.protobuf.message.Message): + """empty for now""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___UpdateSubscriptionsResponse = UpdateSubscriptionsResponse + +@typing_extensions.final +class SendDataRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ROOM_FIELD_NUMBER: builtins.int + DATA_FIELD_NUMBER: builtins.int + KIND_FIELD_NUMBER: builtins.int + DESTINATION_SIDS_FIELD_NUMBER: builtins.int + DESTINATION_IDENTITIES_FIELD_NUMBER: builtins.int + TOPIC_FIELD_NUMBER: builtins.int + room: builtins.str + data: builtins.bytes + kind: livekit_models_pb2.DataPacket.Kind.ValueType + @property + def destination_sids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + """mark deprecated""" + @property + def destination_identities(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: + """when set, only forward to these identities""" + topic: builtins.str + def __init__( + self, + *, + room: builtins.str = ..., + data: builtins.bytes = ..., + kind: livekit_models_pb2.DataPacket.Kind.ValueType = ..., + destination_sids: collections.abc.Iterable[builtins.str] | None = ..., + destination_identities: collections.abc.Iterable[builtins.str] | None = ..., + topic: builtins.str | None = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["_topic", b"_topic", "topic", b"topic"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["_topic", b"_topic", "data", b"data", "destination_identities", b"destination_identities", "destination_sids", b"destination_sids", "kind", b"kind", "room", b"room", "topic", b"topic"]) -> None: ... + def WhichOneof(self, oneof_group: typing_extensions.Literal["_topic", b"_topic"]) -> typing_extensions.Literal["topic"] | None: ... + +global___SendDataRequest = SendDataRequest + +@typing_extensions.final +class SendDataResponse(google.protobuf.message.Message): + """""" + + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + def __init__( + self, + ) -> None: ... + +global___SendDataResponse = SendDataResponse + +@typing_extensions.final +class UpdateRoomMetadataRequest(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + ROOM_FIELD_NUMBER: builtins.int + METADATA_FIELD_NUMBER: builtins.int + room: builtins.str + metadata: builtins.str + """metadata to update. skipping updates if left empty""" + def __init__( + self, + *, + room: builtins.str = ..., + metadata: builtins.str = ..., + ) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["metadata", b"metadata", "room", b"room"]) -> None: ... + +global___UpdateRoomMetadataRequest = UpdateRoomMetadataRequest diff --git a/livekit-protocol/livekit/protocol/livekit_webhook_pb2.py b/livekit-protocol/livekit/protocol/livekit_webhook_pb2.py new file mode 100644 index 00000000..789448dc --- /dev/null +++ b/livekit-protocol/livekit/protocol/livekit_webhook_pb2.py @@ -0,0 +1,30 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: livekit_webhook.proto +"""Generated protocol buffer code.""" +from google.protobuf import descriptor as _descriptor +from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +from . import livekit_models_pb2 as livekit__models__pb2 +from . import livekit_egress_pb2 as livekit__egress__pb2 +from . import livekit_ingress_pb2 as livekit__ingress__pb2 + + +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x15livekit_webhook.proto\x12\x07livekit\x1a\x14livekit_models.proto\x1a\x14livekit_egress.proto\x1a\x15livekit_ingress.proto\"\x97\x02\n\x0cWebhookEvent\x12\r\n\x05\x65vent\x18\x01 \x01(\t\x12\x1b\n\x04room\x18\x02 \x01(\x0b\x32\r.livekit.Room\x12-\n\x0bparticipant\x18\x03 \x01(\x0b\x32\x18.livekit.ParticipantInfo\x12(\n\x0b\x65gress_info\x18\t \x01(\x0b\x32\x13.livekit.EgressInfo\x12*\n\x0cingress_info\x18\n \x01(\x0b\x32\x14.livekit.IngressInfo\x12!\n\x05track\x18\x08 \x01(\x0b\x32\x12.livekit.TrackInfo\x12\n\n\x02id\x18\x06 \x01(\t\x12\x12\n\ncreated_at\x18\x07 \x01(\x03\x12\x13\n\x0bnum_dropped\x18\x0b \x01(\x05\x42\x46Z#github.com/livekit/protocol/livekit\xaa\x02\rLiveKit.Proto\xea\x02\x0eLiveKit::Protob\x06proto3') + +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'livekit_webhook_pb2', _globals) +if _descriptor._USE_C_DESCRIPTORS == False: + + DESCRIPTOR._options = None + DESCRIPTOR._serialized_options = b'Z#github.com/livekit/protocol/livekit\252\002\rLiveKit.Proto\352\002\016LiveKit::Proto' + _globals['_WEBHOOKEVENT']._serialized_start=102 + _globals['_WEBHOOKEVENT']._serialized_end=381 +# @@protoc_insertion_point(module_scope) diff --git a/livekit-protocol/livekit/protocol/livekit_webhook_pb2.pyi b/livekit-protocol/livekit/protocol/livekit_webhook_pb2.pyi new file mode 100644 index 00000000..72584e2a --- /dev/null +++ b/livekit-protocol/livekit/protocol/livekit_webhook_pb2.pyi @@ -0,0 +1,86 @@ +""" +@generated by mypy-protobuf. Do not edit manually! +isort:skip_file +Copyright 2023 LiveKit, Inc. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +""" +import builtins +import google.protobuf.descriptor +import google.protobuf.message +from . import livekit_egress_pb2 +from . import livekit_ingress_pb2 +from . import livekit_models_pb2 +import sys + +if sys.version_info >= (3, 8): + import typing as typing_extensions +else: + import typing_extensions + +DESCRIPTOR: google.protobuf.descriptor.FileDescriptor + +@typing_extensions.final +class WebhookEvent(google.protobuf.message.Message): + DESCRIPTOR: google.protobuf.descriptor.Descriptor + + EVENT_FIELD_NUMBER: builtins.int + ROOM_FIELD_NUMBER: builtins.int + PARTICIPANT_FIELD_NUMBER: builtins.int + EGRESS_INFO_FIELD_NUMBER: builtins.int + INGRESS_INFO_FIELD_NUMBER: builtins.int + TRACK_FIELD_NUMBER: builtins.int + ID_FIELD_NUMBER: builtins.int + CREATED_AT_FIELD_NUMBER: builtins.int + NUM_DROPPED_FIELD_NUMBER: builtins.int + event: builtins.str + """one of room_started, room_finished, participant_joined, participant_left, + track_published, track_unpublished, egress_started, egress_updated, egress_ended, + ingress_started, ingress_ended + """ + @property + def room(self) -> livekit_models_pb2.Room: ... + @property + def participant(self) -> livekit_models_pb2.ParticipantInfo: + """set when event is participant_* or track_*""" + @property + def egress_info(self) -> livekit_egress_pb2.EgressInfo: + """set when event is egress_*""" + @property + def ingress_info(self) -> livekit_ingress_pb2.IngressInfo: + """set when event is ingress_*""" + @property + def track(self) -> livekit_models_pb2.TrackInfo: + """set when event is track_*""" + id: builtins.str + """unique event uuid""" + created_at: builtins.int + """timestamp in seconds""" + num_dropped: builtins.int + def __init__( + self, + *, + event: builtins.str = ..., + room: livekit_models_pb2.Room | None = ..., + participant: livekit_models_pb2.ParticipantInfo | None = ..., + egress_info: livekit_egress_pb2.EgressInfo | None = ..., + ingress_info: livekit_ingress_pb2.IngressInfo | None = ..., + track: livekit_models_pb2.TrackInfo | None = ..., + id: builtins.str = ..., + created_at: builtins.int = ..., + num_dropped: builtins.int = ..., + ) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["egress_info", b"egress_info", "ingress_info", b"ingress_info", "participant", b"participant", "room", b"room", "track", b"track"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["created_at", b"created_at", "egress_info", b"egress_info", "event", b"event", "id", b"id", "ingress_info", b"ingress_info", "num_dropped", b"num_dropped", "participant", b"participant", "room", b"room", "track", b"track"]) -> None: ... + +global___WebhookEvent = WebhookEvent diff --git a/livekit-protocol/livekit/protocol/version.py b/livekit-protocol/livekit/protocol/version.py new file mode 100644 index 00000000..f102a9ca --- /dev/null +++ b/livekit-protocol/livekit/protocol/version.py @@ -0,0 +1 @@ +__version__ = "0.0.1" diff --git a/livekit-protocol/protocol b/livekit-protocol/protocol new file mode 160000 index 00000000..e230ee2d --- /dev/null +++ b/livekit-protocol/protocol @@ -0,0 +1 @@ +Subproject commit e230ee2d840ee19cf5e3942310d2e6469656047a diff --git a/livekit-protocol/setup.py b/livekit-protocol/setup.py new file mode 100644 index 00000000..afc07e68 --- /dev/null +++ b/livekit-protocol/setup.py @@ -0,0 +1,56 @@ +# Copyright 2023 LiveKit, Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +import os +import pathlib + +import setuptools + +here = pathlib.Path(__file__).parent.resolve() +about = {} +with open(os.path.join(here, "livekit", "protocol", "version.py"), "r") as f: + exec(f.read(), about) + + +setuptools.setup( + name="livekit-protocol", + version=about["__version__"], + description="Python protocol stubs for LiveKit", + url="https://github.com/livekit/python-sdks", + classifiers=[ + "Intended Audience :: Developers", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.7", + "Programming Language :: Python :: 3.8", + "Programming Language :: Python :: 3.9", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3 :: Only", + ], + keywords=["webrtc", "realtime", "audio", "video", "livekit"], + license="Apache-2.0", + packages=setuptools.find_namespace_packages(include=["livekit.*"]), + python_requires=">=3.7.0", + install_requires=[ + "protobuf>=3.1.0", + "types-protobuf>=3.1.0", + ], + package_data={ + "livekit.protocol": ["*.pyi", "**/*.pyi"], + }, + project_urls={ + "Documentation": "https://docs.livekit.io", + "Website": "https://livekit.io/", + "Source": "https://github.com/livekit/python-sdks/", + }, +) diff --git a/livekit-rtc/generate_proto.sh b/livekit-rtc/generate_proto.sh deleted file mode 100755 index 5c57455a..00000000 --- a/livekit-rtc/generate_proto.sh +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/bash -# Copyright 2023 LiveKit, Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - - -# This script requires protobuf-compiler and https://github.com/nipunn1313/mypy-protobuf - -FFI_PROTOCOL=./rust-sdks/livekit-ffi/protocol -FFI_OUT_PYTHON=./livekit/rtc/_proto - -# ffi -protoc \ - -I=$FFI_PROTOCOL \ - --python_out=$FFI_OUT_PYTHON \ - --mypy_out=$FFI_OUT_PYTHON \ - $FFI_PROTOCOL/audio_frame.proto \ - $FFI_PROTOCOL/ffi.proto \ - $FFI_PROTOCOL/handle.proto \ - $FFI_PROTOCOL/participant.proto \ - $FFI_PROTOCOL/room.proto \ - $FFI_PROTOCOL/track.proto \ - $FFI_PROTOCOL/video_frame.proto \ - $FFI_PROTOCOL/e2ee.proto \ - $FFI_PROTOCOL/stats.proto - -touch -a "$FFI_OUT_PYTHON/__init__.py" - -for f in "$FFI_OUT_PYTHON"/*.py "$FFI_OUT_PYTHON"/*.pyi; do - perl -i -pe 's|^(import (audio_frame_pb2\|ffi_pb2\|handle_pb2\|participant_pb2\|room_pb2\|track_pb2\|video_frame_pb2\|e2ee_pb2\|stats_pb2))|from . $1|g' "$f" -done From dbacea6095b95e9fd51f8ec2c235f30c3047f944 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?The=CC=81o=20Monnom?= Date: Tue, 7 Nov 2023 13:58:20 -0800 Subject: [PATCH 2/6] remove old proto --- livekit-api/livekit/api/__init__.py | 3 +- livekit-rtc/livekit/rtc/_proto/__init__.py | 14 - .../livekit/rtc/_proto/audio_frame_pb2.py | 80 - .../livekit/rtc/_proto/audio_frame_pb2.pyi | 557 ------- livekit-rtc/livekit/rtc/_proto/e2ee_pb2.py | 79 - livekit-rtc/livekit/rtc/_proto/e2ee_pb2.pyi | 564 ------- livekit-rtc/livekit/rtc/_proto/ffi_pb2.py | 46 - livekit-rtc/livekit/rtc/_proto/ffi_pb2.pyi | 463 ------ livekit-rtc/livekit/rtc/_proto/handle_pb2.py | 27 - livekit-rtc/livekit/rtc/_proto/handle_pb2.pyi | 54 - .../livekit/rtc/_proto/participant_pb2.py | 30 - .../livekit/rtc/_proto/participant_pb2.pyi | 74 - livekit-rtc/livekit/rtc/_proto/room_pb2.py | 158 -- livekit-rtc/livekit/rtc/_proto/room_pb2.pyi | 1328 --------------- livekit-rtc/livekit/rtc/_proto/stats_pb2.py | 119 -- livekit-rtc/livekit/rtc/_proto/stats_pb2.pyi | 1466 ----------------- livekit-rtc/livekit/rtc/_proto/track_pb2.py | 58 - livekit-rtc/livekit/rtc/_proto/track_pb2.pyi | 349 ---- .../livekit/rtc/_proto/video_frame_pb2.py | 94 -- .../livekit/rtc/_proto/video_frame_pb2.pyi | 769 --------- 20 files changed, 2 insertions(+), 6330 deletions(-) delete mode 100644 livekit-rtc/livekit/rtc/_proto/__init__.py delete mode 100644 livekit-rtc/livekit/rtc/_proto/audio_frame_pb2.py delete mode 100644 livekit-rtc/livekit/rtc/_proto/audio_frame_pb2.pyi delete mode 100644 livekit-rtc/livekit/rtc/_proto/e2ee_pb2.py delete mode 100644 livekit-rtc/livekit/rtc/_proto/e2ee_pb2.pyi delete mode 100644 livekit-rtc/livekit/rtc/_proto/ffi_pb2.py delete mode 100644 livekit-rtc/livekit/rtc/_proto/ffi_pb2.pyi delete mode 100644 livekit-rtc/livekit/rtc/_proto/handle_pb2.py delete mode 100644 livekit-rtc/livekit/rtc/_proto/handle_pb2.pyi delete mode 100644 livekit-rtc/livekit/rtc/_proto/participant_pb2.py delete mode 100644 livekit-rtc/livekit/rtc/_proto/participant_pb2.pyi delete mode 100644 livekit-rtc/livekit/rtc/_proto/room_pb2.py delete mode 100644 livekit-rtc/livekit/rtc/_proto/room_pb2.pyi delete mode 100644 livekit-rtc/livekit/rtc/_proto/stats_pb2.py delete mode 100644 livekit-rtc/livekit/rtc/_proto/stats_pb2.pyi delete mode 100644 livekit-rtc/livekit/rtc/_proto/track_pb2.py delete mode 100644 livekit-rtc/livekit/rtc/_proto/track_pb2.pyi delete mode 100644 livekit-rtc/livekit/rtc/_proto/video_frame_pb2.py delete mode 100644 livekit-rtc/livekit/rtc/_proto/video_frame_pb2.pyi diff --git a/livekit-api/livekit/api/__init__.py b/livekit-api/livekit/api/__init__.py index f6e784a5..39669c29 100644 --- a/livekit-api/livekit/api/__init__.py +++ b/livekit-api/livekit/api/__init__.py @@ -20,6 +20,7 @@ from ._proto.livekit_models_pb2 import * from ._proto.livekit_room_pb2 import * from ._proto.livekit_ingress_pb2 import * -from .version import __version__ from .access_token import VideoGrants, AccessToken from .room_service import RoomService + +from .version import __version__ diff --git a/livekit-rtc/livekit/rtc/_proto/__init__.py b/livekit-rtc/livekit/rtc/_proto/__init__.py deleted file mode 100644 index 2437b9cd..00000000 --- a/livekit-rtc/livekit/rtc/_proto/__init__.py +++ /dev/null @@ -1,14 +0,0 @@ -# Copyright 2023 LiveKit, Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - diff --git a/livekit-rtc/livekit/rtc/_proto/audio_frame_pb2.py b/livekit-rtc/livekit/rtc/_proto/audio_frame_pb2.py deleted file mode 100644 index d630ed8e..00000000 --- a/livekit-rtc/livekit/rtc/_proto/audio_frame_pb2.py +++ /dev/null @@ -1,80 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: audio_frame.proto -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import handle_pb2 as handle__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x11\x61udio_frame.proto\x12\rlivekit.proto\x1a\x0chandle.proto\"a\n\x17\x41llocAudioBufferRequest\x12\x13\n\x0bsample_rate\x18\x01 \x01(\r\x12\x14\n\x0cnum_channels\x18\x02 \x01(\r\x12\x1b\n\x13samples_per_channel\x18\x03 \x01(\r\"P\n\x18\x41llocAudioBufferResponse\x12\x34\n\x06\x62uffer\x18\x01 \x01(\x0b\x32$.livekit.proto.OwnedAudioFrameBuffer\"[\n\x15NewAudioStreamRequest\x12\x14\n\x0ctrack_handle\x18\x01 \x01(\x04\x12,\n\x04type\x18\x02 \x01(\x0e\x32\x1e.livekit.proto.AudioStreamType\"I\n\x16NewAudioStreamResponse\x12/\n\x06stream\x18\x01 \x01(\x0b\x32\x1f.livekit.proto.OwnedAudioStream\"\xb5\x01\n\x15NewAudioSourceRequest\x12,\n\x04type\x18\x01 \x01(\x0e\x32\x1e.livekit.proto.AudioSourceType\x12\x37\n\x07options\x18\x02 \x01(\x0b\x32!.livekit.proto.AudioSourceOptionsH\x00\x88\x01\x01\x12\x13\n\x0bsample_rate\x18\x03 \x01(\r\x12\x14\n\x0cnum_channels\x18\x04 \x01(\rB\n\n\x08_options\"I\n\x16NewAudioSourceResponse\x12/\n\x06source\x18\x01 \x01(\x0b\x32\x1f.livekit.proto.OwnedAudioSource\"f\n\x18\x43\x61ptureAudioFrameRequest\x12\x15\n\rsource_handle\x18\x01 \x01(\x04\x12\x33\n\x06\x62uffer\x18\x02 \x01(\x0b\x32#.livekit.proto.AudioFrameBufferInfo\"-\n\x19\x43\x61ptureAudioFrameResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x01(\x04\"K\n\x19\x43\x61ptureAudioFrameCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x01(\x04\x12\x12\n\x05\x65rror\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_error\"\x1a\n\x18NewAudioResamplerRequest\"R\n\x19NewAudioResamplerResponse\x12\x35\n\tresampler\x18\x01 \x01(\x0b\x32\".livekit.proto.OwnedAudioResampler\"\x93\x01\n\x17RemixAndResampleRequest\x12\x18\n\x10resampler_handle\x18\x01 \x01(\x04\x12\x33\n\x06\x62uffer\x18\x02 \x01(\x0b\x32#.livekit.proto.AudioFrameBufferInfo\x12\x14\n\x0cnum_channels\x18\x03 \x01(\r\x12\x13\n\x0bsample_rate\x18\x04 \x01(\r\"P\n\x18RemixAndResampleResponse\x12\x34\n\x06\x62uffer\x18\x01 \x01(\x0b\x32$.livekit.proto.OwnedAudioFrameBuffer\"p\n\x14\x41udioFrameBufferInfo\x12\x10\n\x08\x64\x61ta_ptr\x18\x01 \x01(\x04\x12\x14\n\x0cnum_channels\x18\x02 \x01(\r\x12\x13\n\x0bsample_rate\x18\x03 \x01(\r\x12\x1b\n\x13samples_per_channel\x18\x04 \x01(\r\"y\n\x15OwnedAudioFrameBuffer\x12-\n\x06handle\x18\x01 \x01(\x0b\x32\x1d.livekit.proto.FfiOwnedHandle\x12\x31\n\x04info\x18\x02 \x01(\x0b\x32#.livekit.proto.AudioFrameBufferInfo\"?\n\x0f\x41udioStreamInfo\x12,\n\x04type\x18\x01 \x01(\x0e\x32\x1e.livekit.proto.AudioStreamType\"o\n\x10OwnedAudioStream\x12-\n\x06handle\x18\x01 \x01(\x0b\x32\x1d.livekit.proto.FfiOwnedHandle\x12,\n\x04info\x18\x02 \x01(\x0b\x32\x1e.livekit.proto.AudioStreamInfo\"\x9f\x01\n\x10\x41udioStreamEvent\x12\x15\n\rstream_handle\x18\x01 \x01(\x04\x12;\n\x0e\x66rame_received\x18\x02 \x01(\x0b\x32!.livekit.proto.AudioFrameReceivedH\x00\x12,\n\x03\x65os\x18\x03 \x01(\x0b\x32\x1d.livekit.proto.AudioStreamEOSH\x00\x42\t\n\x07message\"I\n\x12\x41udioFrameReceived\x12\x33\n\x05\x66rame\x18\x01 \x01(\x0b\x32$.livekit.proto.OwnedAudioFrameBuffer\"\x10\n\x0e\x41udioStreamEOS\"e\n\x12\x41udioSourceOptions\x12\x19\n\x11\x65\x63ho_cancellation\x18\x01 \x01(\x08\x12\x19\n\x11noise_suppression\x18\x02 \x01(\x08\x12\x19\n\x11\x61uto_gain_control\x18\x03 \x01(\x08\"?\n\x0f\x41udioSourceInfo\x12,\n\x04type\x18\x02 \x01(\x0e\x32\x1e.livekit.proto.AudioSourceType\"o\n\x10OwnedAudioSource\x12-\n\x06handle\x18\x01 \x01(\x0b\x32\x1d.livekit.proto.FfiOwnedHandle\x12,\n\x04info\x18\x02 \x01(\x0b\x32\x1e.livekit.proto.AudioSourceInfo\"\x14\n\x12\x41udioResamplerInfo\"u\n\x13OwnedAudioResampler\x12-\n\x06handle\x18\x01 \x01(\x0b\x32\x1d.livekit.proto.FfiOwnedHandle\x12/\n\x04info\x18\x02 \x01(\x0b\x32!.livekit.proto.AudioResamplerInfo*A\n\x0f\x41udioStreamType\x12\x17\n\x13\x41UDIO_STREAM_NATIVE\x10\x00\x12\x15\n\x11\x41UDIO_STREAM_HTML\x10\x01**\n\x0f\x41udioSourceType\x12\x17\n\x13\x41UDIO_SOURCE_NATIVE\x10\x00\x42\x10\xaa\x02\rLiveKit.Protob\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'audio_frame_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\252\002\rLiveKit.Proto' - _globals['_AUDIOSTREAMTYPE']._serialized_start=2322 - _globals['_AUDIOSTREAMTYPE']._serialized_end=2387 - _globals['_AUDIOSOURCETYPE']._serialized_start=2389 - _globals['_AUDIOSOURCETYPE']._serialized_end=2431 - _globals['_ALLOCAUDIOBUFFERREQUEST']._serialized_start=50 - _globals['_ALLOCAUDIOBUFFERREQUEST']._serialized_end=147 - _globals['_ALLOCAUDIOBUFFERRESPONSE']._serialized_start=149 - _globals['_ALLOCAUDIOBUFFERRESPONSE']._serialized_end=229 - _globals['_NEWAUDIOSTREAMREQUEST']._serialized_start=231 - _globals['_NEWAUDIOSTREAMREQUEST']._serialized_end=322 - _globals['_NEWAUDIOSTREAMRESPONSE']._serialized_start=324 - _globals['_NEWAUDIOSTREAMRESPONSE']._serialized_end=397 - _globals['_NEWAUDIOSOURCEREQUEST']._serialized_start=400 - _globals['_NEWAUDIOSOURCEREQUEST']._serialized_end=581 - _globals['_NEWAUDIOSOURCERESPONSE']._serialized_start=583 - _globals['_NEWAUDIOSOURCERESPONSE']._serialized_end=656 - _globals['_CAPTUREAUDIOFRAMEREQUEST']._serialized_start=658 - _globals['_CAPTUREAUDIOFRAMEREQUEST']._serialized_end=760 - _globals['_CAPTUREAUDIOFRAMERESPONSE']._serialized_start=762 - _globals['_CAPTUREAUDIOFRAMERESPONSE']._serialized_end=807 - _globals['_CAPTUREAUDIOFRAMECALLBACK']._serialized_start=809 - _globals['_CAPTUREAUDIOFRAMECALLBACK']._serialized_end=884 - _globals['_NEWAUDIORESAMPLERREQUEST']._serialized_start=886 - _globals['_NEWAUDIORESAMPLERREQUEST']._serialized_end=912 - _globals['_NEWAUDIORESAMPLERRESPONSE']._serialized_start=914 - _globals['_NEWAUDIORESAMPLERRESPONSE']._serialized_end=996 - _globals['_REMIXANDRESAMPLEREQUEST']._serialized_start=999 - _globals['_REMIXANDRESAMPLEREQUEST']._serialized_end=1146 - _globals['_REMIXANDRESAMPLERESPONSE']._serialized_start=1148 - _globals['_REMIXANDRESAMPLERESPONSE']._serialized_end=1228 - _globals['_AUDIOFRAMEBUFFERINFO']._serialized_start=1230 - _globals['_AUDIOFRAMEBUFFERINFO']._serialized_end=1342 - _globals['_OWNEDAUDIOFRAMEBUFFER']._serialized_start=1344 - _globals['_OWNEDAUDIOFRAMEBUFFER']._serialized_end=1465 - _globals['_AUDIOSTREAMINFO']._serialized_start=1467 - _globals['_AUDIOSTREAMINFO']._serialized_end=1530 - _globals['_OWNEDAUDIOSTREAM']._serialized_start=1532 - _globals['_OWNEDAUDIOSTREAM']._serialized_end=1643 - _globals['_AUDIOSTREAMEVENT']._serialized_start=1646 - _globals['_AUDIOSTREAMEVENT']._serialized_end=1805 - _globals['_AUDIOFRAMERECEIVED']._serialized_start=1807 - _globals['_AUDIOFRAMERECEIVED']._serialized_end=1880 - _globals['_AUDIOSTREAMEOS']._serialized_start=1882 - _globals['_AUDIOSTREAMEOS']._serialized_end=1898 - _globals['_AUDIOSOURCEOPTIONS']._serialized_start=1900 - _globals['_AUDIOSOURCEOPTIONS']._serialized_end=2001 - _globals['_AUDIOSOURCEINFO']._serialized_start=2003 - _globals['_AUDIOSOURCEINFO']._serialized_end=2066 - _globals['_OWNEDAUDIOSOURCE']._serialized_start=2068 - _globals['_OWNEDAUDIOSOURCE']._serialized_end=2179 - _globals['_AUDIORESAMPLERINFO']._serialized_start=2181 - _globals['_AUDIORESAMPLERINFO']._serialized_end=2201 - _globals['_OWNEDAUDIORESAMPLER']._serialized_start=2203 - _globals['_OWNEDAUDIORESAMPLER']._serialized_end=2320 -# @@protoc_insertion_point(module_scope) diff --git a/livekit-rtc/livekit/rtc/_proto/audio_frame_pb2.pyi b/livekit-rtc/livekit/rtc/_proto/audio_frame_pb2.pyi deleted file mode 100644 index af67c211..00000000 --- a/livekit-rtc/livekit/rtc/_proto/audio_frame_pb2.pyi +++ /dev/null @@ -1,557 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -Copyright 2023 LiveKit, Inc. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -""" -import builtins -import google.protobuf.descriptor -import google.protobuf.internal.enum_type_wrapper -import google.protobuf.message -from . import handle_pb2 -import sys -import typing - -if sys.version_info >= (3, 10): - import typing as typing_extensions -else: - import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor - -class _AudioStreamType: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType - -class _AudioStreamTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_AudioStreamType.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - AUDIO_STREAM_NATIVE: _AudioStreamType.ValueType # 0 - AUDIO_STREAM_HTML: _AudioStreamType.ValueType # 1 - -class AudioStreamType(_AudioStreamType, metaclass=_AudioStreamTypeEnumTypeWrapper): - """ - AudioStream - """ - -AUDIO_STREAM_NATIVE: AudioStreamType.ValueType # 0 -AUDIO_STREAM_HTML: AudioStreamType.ValueType # 1 -global___AudioStreamType = AudioStreamType - -class _AudioSourceType: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType - -class _AudioSourceTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_AudioSourceType.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - AUDIO_SOURCE_NATIVE: _AudioSourceType.ValueType # 0 - -class AudioSourceType(_AudioSourceType, metaclass=_AudioSourceTypeEnumTypeWrapper): ... - -AUDIO_SOURCE_NATIVE: AudioSourceType.ValueType # 0 -global___AudioSourceType = AudioSourceType - -@typing_extensions.final -class AllocAudioBufferRequest(google.protobuf.message.Message): - """Allocate a new AudioFrameBuffer - This is not necessary required because the data structure is fairly simple - But keep the API consistent with VideoFrame - """ - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - SAMPLE_RATE_FIELD_NUMBER: builtins.int - NUM_CHANNELS_FIELD_NUMBER: builtins.int - SAMPLES_PER_CHANNEL_FIELD_NUMBER: builtins.int - sample_rate: builtins.int - num_channels: builtins.int - samples_per_channel: builtins.int - def __init__( - self, - *, - sample_rate: builtins.int = ..., - num_channels: builtins.int = ..., - samples_per_channel: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["num_channels", b"num_channels", "sample_rate", b"sample_rate", "samples_per_channel", b"samples_per_channel"]) -> None: ... - -global___AllocAudioBufferRequest = AllocAudioBufferRequest - -@typing_extensions.final -class AllocAudioBufferResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - BUFFER_FIELD_NUMBER: builtins.int - @property - def buffer(self) -> global___OwnedAudioFrameBuffer: ... - def __init__( - self, - *, - buffer: global___OwnedAudioFrameBuffer | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["buffer", b"buffer"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["buffer", b"buffer"]) -> None: ... - -global___AllocAudioBufferResponse = AllocAudioBufferResponse - -@typing_extensions.final -class NewAudioStreamRequest(google.protobuf.message.Message): - """Create a new AudioStream - AudioStream is used to receive audio frames from a track - """ - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - TRACK_HANDLE_FIELD_NUMBER: builtins.int - TYPE_FIELD_NUMBER: builtins.int - track_handle: builtins.int - type: global___AudioStreamType.ValueType - def __init__( - self, - *, - track_handle: builtins.int = ..., - type: global___AudioStreamType.ValueType = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["track_handle", b"track_handle", "type", b"type"]) -> None: ... - -global___NewAudioStreamRequest = NewAudioStreamRequest - -@typing_extensions.final -class NewAudioStreamResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - STREAM_FIELD_NUMBER: builtins.int - @property - def stream(self) -> global___OwnedAudioStream: ... - def __init__( - self, - *, - stream: global___OwnedAudioStream | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["stream", b"stream"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["stream", b"stream"]) -> None: ... - -global___NewAudioStreamResponse = NewAudioStreamResponse - -@typing_extensions.final -class NewAudioSourceRequest(google.protobuf.message.Message): - """Create a new AudioSource""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - TYPE_FIELD_NUMBER: builtins.int - OPTIONS_FIELD_NUMBER: builtins.int - SAMPLE_RATE_FIELD_NUMBER: builtins.int - NUM_CHANNELS_FIELD_NUMBER: builtins.int - type: global___AudioSourceType.ValueType - @property - def options(self) -> global___AudioSourceOptions: ... - sample_rate: builtins.int - num_channels: builtins.int - def __init__( - self, - *, - type: global___AudioSourceType.ValueType = ..., - options: global___AudioSourceOptions | None = ..., - sample_rate: builtins.int = ..., - num_channels: builtins.int = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["_options", b"_options", "options", b"options"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["_options", b"_options", "num_channels", b"num_channels", "options", b"options", "sample_rate", b"sample_rate", "type", b"type"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["_options", b"_options"]) -> typing_extensions.Literal["options"] | None: ... - -global___NewAudioSourceRequest = NewAudioSourceRequest - -@typing_extensions.final -class NewAudioSourceResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - SOURCE_FIELD_NUMBER: builtins.int - @property - def source(self) -> global___OwnedAudioSource: ... - def __init__( - self, - *, - source: global___OwnedAudioSource | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["source", b"source"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["source", b"source"]) -> None: ... - -global___NewAudioSourceResponse = NewAudioSourceResponse - -@typing_extensions.final -class CaptureAudioFrameRequest(google.protobuf.message.Message): - """Push a frame to an AudioSource - The data provided must be available as long as the client receive the callback. - """ - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - SOURCE_HANDLE_FIELD_NUMBER: builtins.int - BUFFER_FIELD_NUMBER: builtins.int - source_handle: builtins.int - @property - def buffer(self) -> global___AudioFrameBufferInfo: ... - def __init__( - self, - *, - source_handle: builtins.int = ..., - buffer: global___AudioFrameBufferInfo | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["buffer", b"buffer"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["buffer", b"buffer", "source_handle", b"source_handle"]) -> None: ... - -global___CaptureAudioFrameRequest = CaptureAudioFrameRequest - -@typing_extensions.final -class CaptureAudioFrameResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int - def __init__( - self, - *, - async_id: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["async_id", b"async_id"]) -> None: ... - -global___CaptureAudioFrameResponse = CaptureAudioFrameResponse - -@typing_extensions.final -class CaptureAudioFrameCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ASYNC_ID_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - async_id: builtins.int - error: builtins.str - def __init__( - self, - *, - async_id: builtins.int = ..., - error: builtins.str | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["_error", b"_error", "error", b"error"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["_error", b"_error", "async_id", b"async_id", "error", b"error"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["_error", b"_error"]) -> typing_extensions.Literal["error"] | None: ... - -global___CaptureAudioFrameCallback = CaptureAudioFrameCallback - -@typing_extensions.final -class NewAudioResamplerRequest(google.protobuf.message.Message): - """Create a new AudioResampler""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - def __init__( - self, - ) -> None: ... - -global___NewAudioResamplerRequest = NewAudioResamplerRequest - -@typing_extensions.final -class NewAudioResamplerResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - RESAMPLER_FIELD_NUMBER: builtins.int - @property - def resampler(self) -> global___OwnedAudioResampler: ... - def __init__( - self, - *, - resampler: global___OwnedAudioResampler | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["resampler", b"resampler"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["resampler", b"resampler"]) -> None: ... - -global___NewAudioResamplerResponse = NewAudioResamplerResponse - -@typing_extensions.final -class RemixAndResampleRequest(google.protobuf.message.Message): - """Remix and resample an audio frame""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - RESAMPLER_HANDLE_FIELD_NUMBER: builtins.int - BUFFER_FIELD_NUMBER: builtins.int - NUM_CHANNELS_FIELD_NUMBER: builtins.int - SAMPLE_RATE_FIELD_NUMBER: builtins.int - resampler_handle: builtins.int - @property - def buffer(self) -> global___AudioFrameBufferInfo: ... - num_channels: builtins.int - sample_rate: builtins.int - def __init__( - self, - *, - resampler_handle: builtins.int = ..., - buffer: global___AudioFrameBufferInfo | None = ..., - num_channels: builtins.int = ..., - sample_rate: builtins.int = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["buffer", b"buffer"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["buffer", b"buffer", "num_channels", b"num_channels", "resampler_handle", b"resampler_handle", "sample_rate", b"sample_rate"]) -> None: ... - -global___RemixAndResampleRequest = RemixAndResampleRequest - -@typing_extensions.final -class RemixAndResampleResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - BUFFER_FIELD_NUMBER: builtins.int - @property - def buffer(self) -> global___OwnedAudioFrameBuffer: ... - def __init__( - self, - *, - buffer: global___OwnedAudioFrameBuffer | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["buffer", b"buffer"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["buffer", b"buffer"]) -> None: ... - -global___RemixAndResampleResponse = RemixAndResampleResponse - -@typing_extensions.final -class AudioFrameBufferInfo(google.protobuf.message.Message): - """ - AudioFrame buffer - """ - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - DATA_PTR_FIELD_NUMBER: builtins.int - NUM_CHANNELS_FIELD_NUMBER: builtins.int - SAMPLE_RATE_FIELD_NUMBER: builtins.int - SAMPLES_PER_CHANNEL_FIELD_NUMBER: builtins.int - data_ptr: builtins.int - """*const i16""" - num_channels: builtins.int - sample_rate: builtins.int - samples_per_channel: builtins.int - def __init__( - self, - *, - data_ptr: builtins.int = ..., - num_channels: builtins.int = ..., - sample_rate: builtins.int = ..., - samples_per_channel: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["data_ptr", b"data_ptr", "num_channels", b"num_channels", "sample_rate", b"sample_rate", "samples_per_channel", b"samples_per_channel"]) -> None: ... - -global___AudioFrameBufferInfo = AudioFrameBufferInfo - -@typing_extensions.final -class OwnedAudioFrameBuffer(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - HANDLE_FIELD_NUMBER: builtins.int - INFO_FIELD_NUMBER: builtins.int - @property - def handle(self) -> handle_pb2.FfiOwnedHandle: ... - @property - def info(self) -> global___AudioFrameBufferInfo: ... - def __init__( - self, - *, - handle: handle_pb2.FfiOwnedHandle | None = ..., - info: global___AudioFrameBufferInfo | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["handle", b"handle", "info", b"info"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["handle", b"handle", "info", b"info"]) -> None: ... - -global___OwnedAudioFrameBuffer = OwnedAudioFrameBuffer - -@typing_extensions.final -class AudioStreamInfo(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - TYPE_FIELD_NUMBER: builtins.int - type: global___AudioStreamType.ValueType - def __init__( - self, - *, - type: global___AudioStreamType.ValueType = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["type", b"type"]) -> None: ... - -global___AudioStreamInfo = AudioStreamInfo - -@typing_extensions.final -class OwnedAudioStream(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - HANDLE_FIELD_NUMBER: builtins.int - INFO_FIELD_NUMBER: builtins.int - @property - def handle(self) -> handle_pb2.FfiOwnedHandle: ... - @property - def info(self) -> global___AudioStreamInfo: ... - def __init__( - self, - *, - handle: handle_pb2.FfiOwnedHandle | None = ..., - info: global___AudioStreamInfo | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["handle", b"handle", "info", b"info"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["handle", b"handle", "info", b"info"]) -> None: ... - -global___OwnedAudioStream = OwnedAudioStream - -@typing_extensions.final -class AudioStreamEvent(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - STREAM_HANDLE_FIELD_NUMBER: builtins.int - FRAME_RECEIVED_FIELD_NUMBER: builtins.int - EOS_FIELD_NUMBER: builtins.int - stream_handle: builtins.int - @property - def frame_received(self) -> global___AudioFrameReceived: ... - @property - def eos(self) -> global___AudioStreamEOS: ... - def __init__( - self, - *, - stream_handle: builtins.int = ..., - frame_received: global___AudioFrameReceived | None = ..., - eos: global___AudioStreamEOS | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["eos", b"eos", "frame_received", b"frame_received", "message", b"message"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["eos", b"eos", "frame_received", b"frame_received", "message", b"message", "stream_handle", b"stream_handle"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["message", b"message"]) -> typing_extensions.Literal["frame_received", "eos"] | None: ... - -global___AudioStreamEvent = AudioStreamEvent - -@typing_extensions.final -class AudioFrameReceived(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - FRAME_FIELD_NUMBER: builtins.int - @property - def frame(self) -> global___OwnedAudioFrameBuffer: ... - def __init__( - self, - *, - frame: global___OwnedAudioFrameBuffer | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["frame", b"frame"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["frame", b"frame"]) -> None: ... - -global___AudioFrameReceived = AudioFrameReceived - -@typing_extensions.final -class AudioStreamEOS(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - def __init__( - self, - ) -> None: ... - -global___AudioStreamEOS = AudioStreamEOS - -@typing_extensions.final -class AudioSourceOptions(google.protobuf.message.Message): - """ - AudioSource - """ - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ECHO_CANCELLATION_FIELD_NUMBER: builtins.int - NOISE_SUPPRESSION_FIELD_NUMBER: builtins.int - AUTO_GAIN_CONTROL_FIELD_NUMBER: builtins.int - echo_cancellation: builtins.bool - noise_suppression: builtins.bool - auto_gain_control: builtins.bool - def __init__( - self, - *, - echo_cancellation: builtins.bool = ..., - noise_suppression: builtins.bool = ..., - auto_gain_control: builtins.bool = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["auto_gain_control", b"auto_gain_control", "echo_cancellation", b"echo_cancellation", "noise_suppression", b"noise_suppression"]) -> None: ... - -global___AudioSourceOptions = AudioSourceOptions - -@typing_extensions.final -class AudioSourceInfo(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - TYPE_FIELD_NUMBER: builtins.int - type: global___AudioSourceType.ValueType - def __init__( - self, - *, - type: global___AudioSourceType.ValueType = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["type", b"type"]) -> None: ... - -global___AudioSourceInfo = AudioSourceInfo - -@typing_extensions.final -class OwnedAudioSource(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - HANDLE_FIELD_NUMBER: builtins.int - INFO_FIELD_NUMBER: builtins.int - @property - def handle(self) -> handle_pb2.FfiOwnedHandle: ... - @property - def info(self) -> global___AudioSourceInfo: ... - def __init__( - self, - *, - handle: handle_pb2.FfiOwnedHandle | None = ..., - info: global___AudioSourceInfo | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["handle", b"handle", "info", b"info"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["handle", b"handle", "info", b"info"]) -> None: ... - -global___OwnedAudioSource = OwnedAudioSource - -@typing_extensions.final -class AudioResamplerInfo(google.protobuf.message.Message): - """ - AudioResampler - """ - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - def __init__( - self, - ) -> None: ... - -global___AudioResamplerInfo = AudioResamplerInfo - -@typing_extensions.final -class OwnedAudioResampler(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - HANDLE_FIELD_NUMBER: builtins.int - INFO_FIELD_NUMBER: builtins.int - @property - def handle(self) -> handle_pb2.FfiOwnedHandle: ... - @property - def info(self) -> global___AudioResamplerInfo: ... - def __init__( - self, - *, - handle: handle_pb2.FfiOwnedHandle | None = ..., - info: global___AudioResamplerInfo | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["handle", b"handle", "info", b"info"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["handle", b"handle", "info", b"info"]) -> None: ... - -global___OwnedAudioResampler = OwnedAudioResampler diff --git a/livekit-rtc/livekit/rtc/_proto/e2ee_pb2.py b/livekit-rtc/livekit/rtc/_proto/e2ee_pb2.py deleted file mode 100644 index 093b68ba..00000000 --- a/livekit-rtc/livekit/rtc/_proto/e2ee_pb2.py +++ /dev/null @@ -1,79 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: e2ee.proto -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\ne2ee.proto\x12\rlivekit.proto\"c\n\x0c\x46rameCryptor\x12\x1c\n\x14participant_identity\x18\x01 \x01(\t\x12\x11\n\ttrack_sid\x18\x02 \x01(\t\x12\x11\n\tkey_index\x18\x03 \x01(\x05\x12\x0f\n\x07\x65nabled\x18\x04 \x01(\x08\"\x8a\x01\n\x12KeyProviderOptions\x12\x17\n\nshared_key\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x12\x1b\n\x13ratchet_window_size\x18\x02 \x01(\x05\x12\x14\n\x0cratchet_salt\x18\x03 \x01(\x0c\x12\x19\n\x11\x66\x61ilure_tolerance\x18\x04 \x01(\x05\x42\r\n\x0b_shared_key\"\x86\x01\n\x0b\x45\x32\x65\x65Options\x12\x36\n\x0f\x65ncryption_type\x18\x01 \x01(\x0e\x32\x1d.livekit.proto.EncryptionType\x12?\n\x14key_provider_options\x18\x02 \x01(\x0b\x32!.livekit.proto.KeyProviderOptions\"/\n\x1c\x45\x32\x65\x65ManagerSetEnabledRequest\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\"\x1f\n\x1d\x45\x32\x65\x65ManagerSetEnabledResponse\"$\n\"E2eeManagerGetFrameCryptorsRequest\"Z\n#E2eeManagerGetFrameCryptorsResponse\x12\x33\n\x0e\x66rame_cryptors\x18\x01 \x03(\x0b\x32\x1b.livekit.proto.FrameCryptor\"a\n\x1d\x46rameCryptorSetEnabledRequest\x12\x1c\n\x14participant_identity\x18\x01 \x01(\t\x12\x11\n\ttrack_sid\x18\x02 \x01(\t\x12\x0f\n\x07\x65nabled\x18\x03 \x01(\x08\" \n\x1e\x46rameCryptorSetEnabledResponse\"d\n\x1e\x46rameCryptorSetKeyIndexRequest\x12\x1c\n\x14participant_identity\x18\x01 \x01(\t\x12\x11\n\ttrack_sid\x18\x02 \x01(\t\x12\x11\n\tkey_index\x18\x03 \x01(\x05\"!\n\x1f\x46rameCryptorSetKeyIndexResponse\"<\n\x13SetSharedKeyRequest\x12\x12\n\nshared_key\x18\x01 \x01(\x0c\x12\x11\n\tkey_index\x18\x02 \x01(\x05\"\x16\n\x14SetSharedKeyResponse\",\n\x17RatchetSharedKeyRequest\x12\x11\n\tkey_index\x18\x01 \x01(\x05\"<\n\x18RatchetSharedKeyResponse\x12\x14\n\x07new_key\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x42\n\n\x08_new_key\"(\n\x13GetSharedKeyRequest\x12\x11\n\tkey_index\x18\x01 \x01(\x05\"0\n\x14GetSharedKeyResponse\x12\x10\n\x03key\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x42\x06\n\x04_key\"M\n\rSetKeyRequest\x12\x1c\n\x14participant_identity\x18\x01 \x01(\t\x12\x0b\n\x03key\x18\x02 \x01(\x0c\x12\x11\n\tkey_index\x18\x03 \x01(\x05\"\x10\n\x0eSetKeyResponse\"D\n\x11RatchetKeyRequest\x12\x1c\n\x14participant_identity\x18\x01 \x01(\t\x12\x11\n\tkey_index\x18\x02 \x01(\x05\"6\n\x12RatchetKeyResponse\x12\x14\n\x07new_key\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x42\n\n\x08_new_key\"@\n\rGetKeyRequest\x12\x1c\n\x14participant_identity\x18\x01 \x01(\t\x12\x11\n\tkey_index\x18\x02 \x01(\x05\"*\n\x0eGetKeyResponse\x12\x10\n\x03key\x18\x01 \x01(\x0cH\x00\x88\x01\x01\x42\x06\n\x04_key\"\xcc\x05\n\x0b\x45\x32\x65\x65Request\x12\x13\n\x0broom_handle\x18\x01 \x01(\x04\x12J\n\x13manager_set_enabled\x18\x02 \x01(\x0b\x32+.livekit.proto.E2eeManagerSetEnabledRequestH\x00\x12W\n\x1amanager_get_frame_cryptors\x18\x03 \x01(\x0b\x32\x31.livekit.proto.E2eeManagerGetFrameCryptorsRequestH\x00\x12K\n\x13\x63ryptor_set_enabled\x18\x04 \x01(\x0b\x32,.livekit.proto.FrameCryptorSetEnabledRequestH\x00\x12N\n\x15\x63ryptor_set_key_index\x18\x05 \x01(\x0b\x32-.livekit.proto.FrameCryptorSetKeyIndexRequestH\x00\x12<\n\x0eset_shared_key\x18\x06 \x01(\x0b\x32\".livekit.proto.SetSharedKeyRequestH\x00\x12\x44\n\x12ratchet_shared_key\x18\x07 \x01(\x0b\x32&.livekit.proto.RatchetSharedKeyRequestH\x00\x12<\n\x0eget_shared_key\x18\x08 \x01(\x0b\x32\".livekit.proto.GetSharedKeyRequestH\x00\x12/\n\x07set_key\x18\t \x01(\x0b\x32\x1c.livekit.proto.SetKeyRequestH\x00\x12\x37\n\x0bratchet_key\x18\n \x01(\x0b\x32 .livekit.proto.RatchetKeyRequestH\x00\x12/\n\x07get_key\x18\x0b \x01(\x0b\x32\x1c.livekit.proto.GetKeyRequestH\x00\x42\t\n\x07message\"\xc2\x05\n\x0c\x45\x32\x65\x65Response\x12K\n\x13manager_set_enabled\x18\x01 \x01(\x0b\x32,.livekit.proto.E2eeManagerSetEnabledResponseH\x00\x12X\n\x1amanager_get_frame_cryptors\x18\x02 \x01(\x0b\x32\x32.livekit.proto.E2eeManagerGetFrameCryptorsResponseH\x00\x12L\n\x13\x63ryptor_set_enabled\x18\x03 \x01(\x0b\x32-.livekit.proto.FrameCryptorSetEnabledResponseH\x00\x12O\n\x15\x63ryptor_set_key_index\x18\x04 \x01(\x0b\x32..livekit.proto.FrameCryptorSetKeyIndexResponseH\x00\x12=\n\x0eset_shared_key\x18\x05 \x01(\x0b\x32#.livekit.proto.SetSharedKeyResponseH\x00\x12\x45\n\x12ratchet_shared_key\x18\x06 \x01(\x0b\x32\'.livekit.proto.RatchetSharedKeyResponseH\x00\x12=\n\x0eget_shared_key\x18\x07 \x01(\x0b\x32#.livekit.proto.GetSharedKeyResponseH\x00\x12\x30\n\x07set_key\x18\x08 \x01(\x0b\x32\x1d.livekit.proto.SetKeyResponseH\x00\x12\x38\n\x0bratchet_key\x18\t \x01(\x0b\x32!.livekit.proto.RatchetKeyResponseH\x00\x12\x30\n\x07get_key\x18\n \x01(\x0b\x32\x1d.livekit.proto.GetKeyResponseH\x00\x42\t\n\x07message*/\n\x0e\x45ncryptionType\x12\x08\n\x04NONE\x10\x00\x12\x07\n\x03GCM\x10\x01\x12\n\n\x06\x43USTOM\x10\x02*\x88\x01\n\x0f\x45ncryptionState\x12\x07\n\x03NEW\x10\x00\x12\x06\n\x02OK\x10\x01\x12\x15\n\x11\x45NCRYPTION_FAILED\x10\x02\x12\x15\n\x11\x44\x45\x43RYPTION_FAILED\x10\x03\x12\x0f\n\x0bMISSING_KEY\x10\x04\x12\x11\n\rKEY_RATCHETED\x10\x05\x12\x12\n\x0eINTERNAL_ERROR\x10\x06\x42\x10\xaa\x02\rLiveKit.Protob\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'e2ee_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\252\002\rLiveKit.Proto' - _globals['_ENCRYPTIONTYPE']._serialized_start=2937 - _globals['_ENCRYPTIONTYPE']._serialized_end=2984 - _globals['_ENCRYPTIONSTATE']._serialized_start=2987 - _globals['_ENCRYPTIONSTATE']._serialized_end=3123 - _globals['_FRAMECRYPTOR']._serialized_start=29 - _globals['_FRAMECRYPTOR']._serialized_end=128 - _globals['_KEYPROVIDEROPTIONS']._serialized_start=131 - _globals['_KEYPROVIDEROPTIONS']._serialized_end=269 - _globals['_E2EEOPTIONS']._serialized_start=272 - _globals['_E2EEOPTIONS']._serialized_end=406 - _globals['_E2EEMANAGERSETENABLEDREQUEST']._serialized_start=408 - _globals['_E2EEMANAGERSETENABLEDREQUEST']._serialized_end=455 - _globals['_E2EEMANAGERSETENABLEDRESPONSE']._serialized_start=457 - _globals['_E2EEMANAGERSETENABLEDRESPONSE']._serialized_end=488 - _globals['_E2EEMANAGERGETFRAMECRYPTORSREQUEST']._serialized_start=490 - _globals['_E2EEMANAGERGETFRAMECRYPTORSREQUEST']._serialized_end=526 - _globals['_E2EEMANAGERGETFRAMECRYPTORSRESPONSE']._serialized_start=528 - _globals['_E2EEMANAGERGETFRAMECRYPTORSRESPONSE']._serialized_end=618 - _globals['_FRAMECRYPTORSETENABLEDREQUEST']._serialized_start=620 - _globals['_FRAMECRYPTORSETENABLEDREQUEST']._serialized_end=717 - _globals['_FRAMECRYPTORSETENABLEDRESPONSE']._serialized_start=719 - _globals['_FRAMECRYPTORSETENABLEDRESPONSE']._serialized_end=751 - _globals['_FRAMECRYPTORSETKEYINDEXREQUEST']._serialized_start=753 - _globals['_FRAMECRYPTORSETKEYINDEXREQUEST']._serialized_end=853 - _globals['_FRAMECRYPTORSETKEYINDEXRESPONSE']._serialized_start=855 - _globals['_FRAMECRYPTORSETKEYINDEXRESPONSE']._serialized_end=888 - _globals['_SETSHAREDKEYREQUEST']._serialized_start=890 - _globals['_SETSHAREDKEYREQUEST']._serialized_end=950 - _globals['_SETSHAREDKEYRESPONSE']._serialized_start=952 - _globals['_SETSHAREDKEYRESPONSE']._serialized_end=974 - _globals['_RATCHETSHAREDKEYREQUEST']._serialized_start=976 - _globals['_RATCHETSHAREDKEYREQUEST']._serialized_end=1020 - _globals['_RATCHETSHAREDKEYRESPONSE']._serialized_start=1022 - _globals['_RATCHETSHAREDKEYRESPONSE']._serialized_end=1082 - _globals['_GETSHAREDKEYREQUEST']._serialized_start=1084 - _globals['_GETSHAREDKEYREQUEST']._serialized_end=1124 - _globals['_GETSHAREDKEYRESPONSE']._serialized_start=1126 - _globals['_GETSHAREDKEYRESPONSE']._serialized_end=1174 - _globals['_SETKEYREQUEST']._serialized_start=1176 - _globals['_SETKEYREQUEST']._serialized_end=1253 - _globals['_SETKEYRESPONSE']._serialized_start=1255 - _globals['_SETKEYRESPONSE']._serialized_end=1271 - _globals['_RATCHETKEYREQUEST']._serialized_start=1273 - _globals['_RATCHETKEYREQUEST']._serialized_end=1341 - _globals['_RATCHETKEYRESPONSE']._serialized_start=1343 - _globals['_RATCHETKEYRESPONSE']._serialized_end=1397 - _globals['_GETKEYREQUEST']._serialized_start=1399 - _globals['_GETKEYREQUEST']._serialized_end=1463 - _globals['_GETKEYRESPONSE']._serialized_start=1465 - _globals['_GETKEYRESPONSE']._serialized_end=1507 - _globals['_E2EEREQUEST']._serialized_start=1510 - _globals['_E2EEREQUEST']._serialized_end=2226 - _globals['_E2EERESPONSE']._serialized_start=2229 - _globals['_E2EERESPONSE']._serialized_end=2935 -# @@protoc_insertion_point(module_scope) diff --git a/livekit-rtc/livekit/rtc/_proto/e2ee_pb2.pyi b/livekit-rtc/livekit/rtc/_proto/e2ee_pb2.pyi deleted file mode 100644 index a34cf52d..00000000 --- a/livekit-rtc/livekit/rtc/_proto/e2ee_pb2.pyi +++ /dev/null @@ -1,564 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -Copyright 2023 LiveKit, Inc. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -""" -import builtins -import collections.abc -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.internal.enum_type_wrapper -import google.protobuf.message -import sys -import typing - -if sys.version_info >= (3, 10): - import typing as typing_extensions -else: - import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor - -class _EncryptionType: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType - -class _EncryptionTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_EncryptionType.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - NONE: _EncryptionType.ValueType # 0 - GCM: _EncryptionType.ValueType # 1 - CUSTOM: _EncryptionType.ValueType # 2 - -class EncryptionType(_EncryptionType, metaclass=_EncryptionTypeEnumTypeWrapper): - """TODO(theomonnom): Should FrameCryptor be stateful on the client side and have their own handle?""" - -NONE: EncryptionType.ValueType # 0 -GCM: EncryptionType.ValueType # 1 -CUSTOM: EncryptionType.ValueType # 2 -global___EncryptionType = EncryptionType - -class _EncryptionState: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType - -class _EncryptionStateEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_EncryptionState.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - NEW: _EncryptionState.ValueType # 0 - OK: _EncryptionState.ValueType # 1 - ENCRYPTION_FAILED: _EncryptionState.ValueType # 2 - DECRYPTION_FAILED: _EncryptionState.ValueType # 3 - MISSING_KEY: _EncryptionState.ValueType # 4 - KEY_RATCHETED: _EncryptionState.ValueType # 5 - INTERNAL_ERROR: _EncryptionState.ValueType # 6 - -class EncryptionState(_EncryptionState, metaclass=_EncryptionStateEnumTypeWrapper): ... - -NEW: EncryptionState.ValueType # 0 -OK: EncryptionState.ValueType # 1 -ENCRYPTION_FAILED: EncryptionState.ValueType # 2 -DECRYPTION_FAILED: EncryptionState.ValueType # 3 -MISSING_KEY: EncryptionState.ValueType # 4 -KEY_RATCHETED: EncryptionState.ValueType # 5 -INTERNAL_ERROR: EncryptionState.ValueType # 6 -global___EncryptionState = EncryptionState - -@typing_extensions.final -class FrameCryptor(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int - TRACK_SID_FIELD_NUMBER: builtins.int - KEY_INDEX_FIELD_NUMBER: builtins.int - ENABLED_FIELD_NUMBER: builtins.int - participant_identity: builtins.str - track_sid: builtins.str - key_index: builtins.int - enabled: builtins.bool - def __init__( - self, - *, - participant_identity: builtins.str = ..., - track_sid: builtins.str = ..., - key_index: builtins.int = ..., - enabled: builtins.bool = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["enabled", b"enabled", "key_index", b"key_index", "participant_identity", b"participant_identity", "track_sid", b"track_sid"]) -> None: ... - -global___FrameCryptor = FrameCryptor - -@typing_extensions.final -class KeyProviderOptions(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - SHARED_KEY_FIELD_NUMBER: builtins.int - RATCHET_WINDOW_SIZE_FIELD_NUMBER: builtins.int - RATCHET_SALT_FIELD_NUMBER: builtins.int - FAILURE_TOLERANCE_FIELD_NUMBER: builtins.int - shared_key: builtins.bytes - """Only specify if you want to use a shared_key""" - ratchet_window_size: builtins.int - ratchet_salt: builtins.bytes - failure_tolerance: builtins.int - """-1 = no tolerence""" - def __init__( - self, - *, - shared_key: builtins.bytes | None = ..., - ratchet_window_size: builtins.int = ..., - ratchet_salt: builtins.bytes = ..., - failure_tolerance: builtins.int = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["_shared_key", b"_shared_key", "shared_key", b"shared_key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["_shared_key", b"_shared_key", "failure_tolerance", b"failure_tolerance", "ratchet_salt", b"ratchet_salt", "ratchet_window_size", b"ratchet_window_size", "shared_key", b"shared_key"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["_shared_key", b"_shared_key"]) -> typing_extensions.Literal["shared_key"] | None: ... - -global___KeyProviderOptions = KeyProviderOptions - -@typing_extensions.final -class E2eeOptions(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ENCRYPTION_TYPE_FIELD_NUMBER: builtins.int - KEY_PROVIDER_OPTIONS_FIELD_NUMBER: builtins.int - encryption_type: global___EncryptionType.ValueType - @property - def key_provider_options(self) -> global___KeyProviderOptions: ... - def __init__( - self, - *, - encryption_type: global___EncryptionType.ValueType = ..., - key_provider_options: global___KeyProviderOptions | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["key_provider_options", b"key_provider_options"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["encryption_type", b"encryption_type", "key_provider_options", b"key_provider_options"]) -> None: ... - -global___E2eeOptions = E2eeOptions - -@typing_extensions.final -class E2eeManagerSetEnabledRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ENABLED_FIELD_NUMBER: builtins.int - enabled: builtins.bool - def __init__( - self, - *, - enabled: builtins.bool = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["enabled", b"enabled"]) -> None: ... - -global___E2eeManagerSetEnabledRequest = E2eeManagerSetEnabledRequest - -@typing_extensions.final -class E2eeManagerSetEnabledResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - def __init__( - self, - ) -> None: ... - -global___E2eeManagerSetEnabledResponse = E2eeManagerSetEnabledResponse - -@typing_extensions.final -class E2eeManagerGetFrameCryptorsRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - def __init__( - self, - ) -> None: ... - -global___E2eeManagerGetFrameCryptorsRequest = E2eeManagerGetFrameCryptorsRequest - -@typing_extensions.final -class E2eeManagerGetFrameCryptorsResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - FRAME_CRYPTORS_FIELD_NUMBER: builtins.int - @property - def frame_cryptors(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___FrameCryptor]: ... - def __init__( - self, - *, - frame_cryptors: collections.abc.Iterable[global___FrameCryptor] | None = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["frame_cryptors", b"frame_cryptors"]) -> None: ... - -global___E2eeManagerGetFrameCryptorsResponse = E2eeManagerGetFrameCryptorsResponse - -@typing_extensions.final -class FrameCryptorSetEnabledRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int - TRACK_SID_FIELD_NUMBER: builtins.int - ENABLED_FIELD_NUMBER: builtins.int - participant_identity: builtins.str - track_sid: builtins.str - enabled: builtins.bool - def __init__( - self, - *, - participant_identity: builtins.str = ..., - track_sid: builtins.str = ..., - enabled: builtins.bool = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["enabled", b"enabled", "participant_identity", b"participant_identity", "track_sid", b"track_sid"]) -> None: ... - -global___FrameCryptorSetEnabledRequest = FrameCryptorSetEnabledRequest - -@typing_extensions.final -class FrameCryptorSetEnabledResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - def __init__( - self, - ) -> None: ... - -global___FrameCryptorSetEnabledResponse = FrameCryptorSetEnabledResponse - -@typing_extensions.final -class FrameCryptorSetKeyIndexRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int - TRACK_SID_FIELD_NUMBER: builtins.int - KEY_INDEX_FIELD_NUMBER: builtins.int - participant_identity: builtins.str - track_sid: builtins.str - key_index: builtins.int - def __init__( - self, - *, - participant_identity: builtins.str = ..., - track_sid: builtins.str = ..., - key_index: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key_index", b"key_index", "participant_identity", b"participant_identity", "track_sid", b"track_sid"]) -> None: ... - -global___FrameCryptorSetKeyIndexRequest = FrameCryptorSetKeyIndexRequest - -@typing_extensions.final -class FrameCryptorSetKeyIndexResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - def __init__( - self, - ) -> None: ... - -global___FrameCryptorSetKeyIndexResponse = FrameCryptorSetKeyIndexResponse - -@typing_extensions.final -class SetSharedKeyRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - SHARED_KEY_FIELD_NUMBER: builtins.int - KEY_INDEX_FIELD_NUMBER: builtins.int - shared_key: builtins.bytes - key_index: builtins.int - def __init__( - self, - *, - shared_key: builtins.bytes = ..., - key_index: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key_index", b"key_index", "shared_key", b"shared_key"]) -> None: ... - -global___SetSharedKeyRequest = SetSharedKeyRequest - -@typing_extensions.final -class SetSharedKeyResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - def __init__( - self, - ) -> None: ... - -global___SetSharedKeyResponse = SetSharedKeyResponse - -@typing_extensions.final -class RatchetSharedKeyRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - KEY_INDEX_FIELD_NUMBER: builtins.int - key_index: builtins.int - def __init__( - self, - *, - key_index: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key_index", b"key_index"]) -> None: ... - -global___RatchetSharedKeyRequest = RatchetSharedKeyRequest - -@typing_extensions.final -class RatchetSharedKeyResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - NEW_KEY_FIELD_NUMBER: builtins.int - new_key: builtins.bytes - def __init__( - self, - *, - new_key: builtins.bytes | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["_new_key", b"_new_key", "new_key", b"new_key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["_new_key", b"_new_key", "new_key", b"new_key"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["_new_key", b"_new_key"]) -> typing_extensions.Literal["new_key"] | None: ... - -global___RatchetSharedKeyResponse = RatchetSharedKeyResponse - -@typing_extensions.final -class GetSharedKeyRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - KEY_INDEX_FIELD_NUMBER: builtins.int - key_index: builtins.int - def __init__( - self, - *, - key_index: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key_index", b"key_index"]) -> None: ... - -global___GetSharedKeyRequest = GetSharedKeyRequest - -@typing_extensions.final -class GetSharedKeyResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - KEY_FIELD_NUMBER: builtins.int - key: builtins.bytes - def __init__( - self, - *, - key: builtins.bytes | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["_key", b"_key", "key", b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["_key", b"_key", "key", b"key"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["_key", b"_key"]) -> typing_extensions.Literal["key"] | None: ... - -global___GetSharedKeyResponse = GetSharedKeyResponse - -@typing_extensions.final -class SetKeyRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int - KEY_FIELD_NUMBER: builtins.int - KEY_INDEX_FIELD_NUMBER: builtins.int - participant_identity: builtins.str - key: builtins.bytes - key_index: builtins.int - def __init__( - self, - *, - participant_identity: builtins.str = ..., - key: builtins.bytes = ..., - key_index: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "key_index", b"key_index", "participant_identity", b"participant_identity"]) -> None: ... - -global___SetKeyRequest = SetKeyRequest - -@typing_extensions.final -class SetKeyResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - def __init__( - self, - ) -> None: ... - -global___SetKeyResponse = SetKeyResponse - -@typing_extensions.final -class RatchetKeyRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int - KEY_INDEX_FIELD_NUMBER: builtins.int - participant_identity: builtins.str - key_index: builtins.int - def __init__( - self, - *, - participant_identity: builtins.str = ..., - key_index: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key_index", b"key_index", "participant_identity", b"participant_identity"]) -> None: ... - -global___RatchetKeyRequest = RatchetKeyRequest - -@typing_extensions.final -class RatchetKeyResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - NEW_KEY_FIELD_NUMBER: builtins.int - new_key: builtins.bytes - def __init__( - self, - *, - new_key: builtins.bytes | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["_new_key", b"_new_key", "new_key", b"new_key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["_new_key", b"_new_key", "new_key", b"new_key"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["_new_key", b"_new_key"]) -> typing_extensions.Literal["new_key"] | None: ... - -global___RatchetKeyResponse = RatchetKeyResponse - -@typing_extensions.final -class GetKeyRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int - KEY_INDEX_FIELD_NUMBER: builtins.int - participant_identity: builtins.str - key_index: builtins.int - def __init__( - self, - *, - participant_identity: builtins.str = ..., - key_index: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key_index", b"key_index", "participant_identity", b"participant_identity"]) -> None: ... - -global___GetKeyRequest = GetKeyRequest - -@typing_extensions.final -class GetKeyResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - KEY_FIELD_NUMBER: builtins.int - key: builtins.bytes - def __init__( - self, - *, - key: builtins.bytes | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["_key", b"_key", "key", b"key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["_key", b"_key", "key", b"key"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["_key", b"_key"]) -> typing_extensions.Literal["key"] | None: ... - -global___GetKeyResponse = GetKeyResponse - -@typing_extensions.final -class E2eeRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ROOM_HANDLE_FIELD_NUMBER: builtins.int - MANAGER_SET_ENABLED_FIELD_NUMBER: builtins.int - MANAGER_GET_FRAME_CRYPTORS_FIELD_NUMBER: builtins.int - CRYPTOR_SET_ENABLED_FIELD_NUMBER: builtins.int - CRYPTOR_SET_KEY_INDEX_FIELD_NUMBER: builtins.int - SET_SHARED_KEY_FIELD_NUMBER: builtins.int - RATCHET_SHARED_KEY_FIELD_NUMBER: builtins.int - GET_SHARED_KEY_FIELD_NUMBER: builtins.int - SET_KEY_FIELD_NUMBER: builtins.int - RATCHET_KEY_FIELD_NUMBER: builtins.int - GET_KEY_FIELD_NUMBER: builtins.int - room_handle: builtins.int - @property - def manager_set_enabled(self) -> global___E2eeManagerSetEnabledRequest: ... - @property - def manager_get_frame_cryptors(self) -> global___E2eeManagerGetFrameCryptorsRequest: ... - @property - def cryptor_set_enabled(self) -> global___FrameCryptorSetEnabledRequest: ... - @property - def cryptor_set_key_index(self) -> global___FrameCryptorSetKeyIndexRequest: ... - @property - def set_shared_key(self) -> global___SetSharedKeyRequest: ... - @property - def ratchet_shared_key(self) -> global___RatchetSharedKeyRequest: ... - @property - def get_shared_key(self) -> global___GetSharedKeyRequest: ... - @property - def set_key(self) -> global___SetKeyRequest: ... - @property - def ratchet_key(self) -> global___RatchetKeyRequest: ... - @property - def get_key(self) -> global___GetKeyRequest: ... - def __init__( - self, - *, - room_handle: builtins.int = ..., - manager_set_enabled: global___E2eeManagerSetEnabledRequest | None = ..., - manager_get_frame_cryptors: global___E2eeManagerGetFrameCryptorsRequest | None = ..., - cryptor_set_enabled: global___FrameCryptorSetEnabledRequest | None = ..., - cryptor_set_key_index: global___FrameCryptorSetKeyIndexRequest | None = ..., - set_shared_key: global___SetSharedKeyRequest | None = ..., - ratchet_shared_key: global___RatchetSharedKeyRequest | None = ..., - get_shared_key: global___GetSharedKeyRequest | None = ..., - set_key: global___SetKeyRequest | None = ..., - ratchet_key: global___RatchetKeyRequest | None = ..., - get_key: global___GetKeyRequest | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["cryptor_set_enabled", b"cryptor_set_enabled", "cryptor_set_key_index", b"cryptor_set_key_index", "get_key", b"get_key", "get_shared_key", b"get_shared_key", "manager_get_frame_cryptors", b"manager_get_frame_cryptors", "manager_set_enabled", b"manager_set_enabled", "message", b"message", "ratchet_key", b"ratchet_key", "ratchet_shared_key", b"ratchet_shared_key", "set_key", b"set_key", "set_shared_key", b"set_shared_key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["cryptor_set_enabled", b"cryptor_set_enabled", "cryptor_set_key_index", b"cryptor_set_key_index", "get_key", b"get_key", "get_shared_key", b"get_shared_key", "manager_get_frame_cryptors", b"manager_get_frame_cryptors", "manager_set_enabled", b"manager_set_enabled", "message", b"message", "ratchet_key", b"ratchet_key", "ratchet_shared_key", b"ratchet_shared_key", "room_handle", b"room_handle", "set_key", b"set_key", "set_shared_key", b"set_shared_key"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["message", b"message"]) -> typing_extensions.Literal["manager_set_enabled", "manager_get_frame_cryptors", "cryptor_set_enabled", "cryptor_set_key_index", "set_shared_key", "ratchet_shared_key", "get_shared_key", "set_key", "ratchet_key", "get_key"] | None: ... - -global___E2eeRequest = E2eeRequest - -@typing_extensions.final -class E2eeResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - MANAGER_SET_ENABLED_FIELD_NUMBER: builtins.int - MANAGER_GET_FRAME_CRYPTORS_FIELD_NUMBER: builtins.int - CRYPTOR_SET_ENABLED_FIELD_NUMBER: builtins.int - CRYPTOR_SET_KEY_INDEX_FIELD_NUMBER: builtins.int - SET_SHARED_KEY_FIELD_NUMBER: builtins.int - RATCHET_SHARED_KEY_FIELD_NUMBER: builtins.int - GET_SHARED_KEY_FIELD_NUMBER: builtins.int - SET_KEY_FIELD_NUMBER: builtins.int - RATCHET_KEY_FIELD_NUMBER: builtins.int - GET_KEY_FIELD_NUMBER: builtins.int - @property - def manager_set_enabled(self) -> global___E2eeManagerSetEnabledResponse: ... - @property - def manager_get_frame_cryptors(self) -> global___E2eeManagerGetFrameCryptorsResponse: ... - @property - def cryptor_set_enabled(self) -> global___FrameCryptorSetEnabledResponse: ... - @property - def cryptor_set_key_index(self) -> global___FrameCryptorSetKeyIndexResponse: ... - @property - def set_shared_key(self) -> global___SetSharedKeyResponse: ... - @property - def ratchet_shared_key(self) -> global___RatchetSharedKeyResponse: ... - @property - def get_shared_key(self) -> global___GetSharedKeyResponse: ... - @property - def set_key(self) -> global___SetKeyResponse: ... - @property - def ratchet_key(self) -> global___RatchetKeyResponse: ... - @property - def get_key(self) -> global___GetKeyResponse: ... - def __init__( - self, - *, - manager_set_enabled: global___E2eeManagerSetEnabledResponse | None = ..., - manager_get_frame_cryptors: global___E2eeManagerGetFrameCryptorsResponse | None = ..., - cryptor_set_enabled: global___FrameCryptorSetEnabledResponse | None = ..., - cryptor_set_key_index: global___FrameCryptorSetKeyIndexResponse | None = ..., - set_shared_key: global___SetSharedKeyResponse | None = ..., - ratchet_shared_key: global___RatchetSharedKeyResponse | None = ..., - get_shared_key: global___GetSharedKeyResponse | None = ..., - set_key: global___SetKeyResponse | None = ..., - ratchet_key: global___RatchetKeyResponse | None = ..., - get_key: global___GetKeyResponse | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["cryptor_set_enabled", b"cryptor_set_enabled", "cryptor_set_key_index", b"cryptor_set_key_index", "get_key", b"get_key", "get_shared_key", b"get_shared_key", "manager_get_frame_cryptors", b"manager_get_frame_cryptors", "manager_set_enabled", b"manager_set_enabled", "message", b"message", "ratchet_key", b"ratchet_key", "ratchet_shared_key", b"ratchet_shared_key", "set_key", b"set_key", "set_shared_key", b"set_shared_key"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["cryptor_set_enabled", b"cryptor_set_enabled", "cryptor_set_key_index", b"cryptor_set_key_index", "get_key", b"get_key", "get_shared_key", b"get_shared_key", "manager_get_frame_cryptors", b"manager_get_frame_cryptors", "manager_set_enabled", b"manager_set_enabled", "message", b"message", "ratchet_key", b"ratchet_key", "ratchet_shared_key", b"ratchet_shared_key", "set_key", b"set_key", "set_shared_key", b"set_shared_key"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["message", b"message"]) -> typing_extensions.Literal["manager_set_enabled", "manager_get_frame_cryptors", "cryptor_set_enabled", "cryptor_set_key_index", "set_shared_key", "ratchet_shared_key", "get_shared_key", "set_key", "ratchet_key", "get_key"] | None: ... - -global___E2eeResponse = E2eeResponse diff --git a/livekit-rtc/livekit/rtc/_proto/ffi_pb2.py b/livekit-rtc/livekit/rtc/_proto/ffi_pb2.py deleted file mode 100644 index 022b771c..00000000 --- a/livekit-rtc/livekit/rtc/_proto/ffi_pb2.py +++ /dev/null @@ -1,46 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: ffi.proto -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import e2ee_pb2 as e2ee__pb2 -from . import track_pb2 as track__pb2 -from . import room_pb2 as room__pb2 -from . import video_frame_pb2 as video__frame__pb2 -from . import audio_frame_pb2 as audio__frame__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\tffi.proto\x12\rlivekit.proto\x1a\ne2ee.proto\x1a\x0btrack.proto\x1a\nroom.proto\x1a\x11video_frame.proto\x1a\x11\x61udio_frame.proto\"\xf4\x0c\n\nFfiRequest\x12\x36\n\ninitialize\x18\x01 \x01(\x0b\x32 .livekit.proto.InitializeRequestH\x00\x12\x30\n\x07\x64ispose\x18\x02 \x01(\x0b\x32\x1d.livekit.proto.DisposeRequestH\x00\x12\x30\n\x07\x63onnect\x18\x03 \x01(\x0b\x32\x1d.livekit.proto.ConnectRequestH\x00\x12\x36\n\ndisconnect\x18\x04 \x01(\x0b\x32 .livekit.proto.DisconnectRequestH\x00\x12;\n\rpublish_track\x18\x05 \x01(\x0b\x32\".livekit.proto.PublishTrackRequestH\x00\x12?\n\x0funpublish_track\x18\x06 \x01(\x0b\x32$.livekit.proto.UnpublishTrackRequestH\x00\x12\x39\n\x0cpublish_data\x18\x07 \x01(\x0b\x32!.livekit.proto.PublishDataRequestH\x00\x12=\n\x0eset_subscribed\x18\x08 \x01(\x0b\x32#.livekit.proto.SetSubscribedRequestH\x00\x12J\n\x15update_local_metadata\x18\t \x01(\x0b\x32).livekit.proto.UpdateLocalMetadataRequestH\x00\x12\x42\n\x11update_local_name\x18\n \x01(\x0b\x32%.livekit.proto.UpdateLocalNameRequestH\x00\x12\x44\n\x12\x63reate_video_track\x18\x0b \x01(\x0b\x32&.livekit.proto.CreateVideoTrackRequestH\x00\x12\x44\n\x12\x63reate_audio_track\x18\x0c \x01(\x0b\x32&.livekit.proto.CreateAudioTrackRequestH\x00\x12\x33\n\tget_stats\x18\r \x01(\x0b\x32\x1e.livekit.proto.GetStatsRequestH\x00\x12\x44\n\x12\x61lloc_video_buffer\x18\x0e \x01(\x0b\x32&.livekit.proto.AllocVideoBufferRequestH\x00\x12@\n\x10new_video_stream\x18\x0f \x01(\x0b\x32$.livekit.proto.NewVideoStreamRequestH\x00\x12@\n\x10new_video_source\x18\x10 \x01(\x0b\x32$.livekit.proto.NewVideoSourceRequestH\x00\x12\x46\n\x13\x63\x61pture_video_frame\x18\x11 \x01(\x0b\x32\'.livekit.proto.CaptureVideoFrameRequestH\x00\x12/\n\x07to_i420\x18\x12 \x01(\x0b\x32\x1c.livekit.proto.ToI420RequestH\x00\x12/\n\x07to_argb\x18\x13 \x01(\x0b\x32\x1c.livekit.proto.ToArgbRequestH\x00\x12\x44\n\x12\x61lloc_audio_buffer\x18\x14 \x01(\x0b\x32&.livekit.proto.AllocAudioBufferRequestH\x00\x12@\n\x10new_audio_stream\x18\x15 \x01(\x0b\x32$.livekit.proto.NewAudioStreamRequestH\x00\x12@\n\x10new_audio_source\x18\x16 \x01(\x0b\x32$.livekit.proto.NewAudioSourceRequestH\x00\x12\x46\n\x13\x63\x61pture_audio_frame\x18\x17 \x01(\x0b\x32\'.livekit.proto.CaptureAudioFrameRequestH\x00\x12\x46\n\x13new_audio_resampler\x18\x18 \x01(\x0b\x32\'.livekit.proto.NewAudioResamplerRequestH\x00\x12\x44\n\x12remix_and_resample\x18\x19 \x01(\x0b\x32&.livekit.proto.RemixAndResampleRequestH\x00\x12*\n\x04\x65\x32\x65\x65\x18\x1a \x01(\x0b\x32\x1a.livekit.proto.E2eeRequestH\x00\x42\t\n\x07message\"\x8f\r\n\x0b\x46\x66iResponse\x12\x37\n\ninitialize\x18\x01 \x01(\x0b\x32!.livekit.proto.InitializeResponseH\x00\x12\x31\n\x07\x64ispose\x18\x02 \x01(\x0b\x32\x1e.livekit.proto.DisposeResponseH\x00\x12\x31\n\x07\x63onnect\x18\x03 \x01(\x0b\x32\x1e.livekit.proto.ConnectResponseH\x00\x12\x37\n\ndisconnect\x18\x04 \x01(\x0b\x32!.livekit.proto.DisconnectResponseH\x00\x12<\n\rpublish_track\x18\x05 \x01(\x0b\x32#.livekit.proto.PublishTrackResponseH\x00\x12@\n\x0funpublish_track\x18\x06 \x01(\x0b\x32%.livekit.proto.UnpublishTrackResponseH\x00\x12:\n\x0cpublish_data\x18\x07 \x01(\x0b\x32\".livekit.proto.PublishDataResponseH\x00\x12>\n\x0eset_subscribed\x18\x08 \x01(\x0b\x32$.livekit.proto.SetSubscribedResponseH\x00\x12K\n\x15update_local_metadata\x18\t \x01(\x0b\x32*.livekit.proto.UpdateLocalMetadataResponseH\x00\x12\x43\n\x11update_local_name\x18\n \x01(\x0b\x32&.livekit.proto.UpdateLocalNameResponseH\x00\x12\x45\n\x12\x63reate_video_track\x18\x0b \x01(\x0b\x32\'.livekit.proto.CreateVideoTrackResponseH\x00\x12\x45\n\x12\x63reate_audio_track\x18\x0c \x01(\x0b\x32\'.livekit.proto.CreateAudioTrackResponseH\x00\x12\x34\n\tget_stats\x18\r \x01(\x0b\x32\x1f.livekit.proto.GetStatsResponseH\x00\x12\x45\n\x12\x61lloc_video_buffer\x18\x0e \x01(\x0b\x32\'.livekit.proto.AllocVideoBufferResponseH\x00\x12\x41\n\x10new_video_stream\x18\x0f \x01(\x0b\x32%.livekit.proto.NewVideoStreamResponseH\x00\x12\x41\n\x10new_video_source\x18\x10 \x01(\x0b\x32%.livekit.proto.NewVideoSourceResponseH\x00\x12G\n\x13\x63\x61pture_video_frame\x18\x11 \x01(\x0b\x32(.livekit.proto.CaptureVideoFrameResponseH\x00\x12\x30\n\x07to_i420\x18\x12 \x01(\x0b\x32\x1d.livekit.proto.ToI420ResponseH\x00\x12\x30\n\x07to_argb\x18\x13 \x01(\x0b\x32\x1d.livekit.proto.ToArgbResponseH\x00\x12\x45\n\x12\x61lloc_audio_buffer\x18\x14 \x01(\x0b\x32\'.livekit.proto.AllocAudioBufferResponseH\x00\x12\x41\n\x10new_audio_stream\x18\x15 \x01(\x0b\x32%.livekit.proto.NewAudioStreamResponseH\x00\x12\x41\n\x10new_audio_source\x18\x16 \x01(\x0b\x32%.livekit.proto.NewAudioSourceResponseH\x00\x12G\n\x13\x63\x61pture_audio_frame\x18\x17 \x01(\x0b\x32(.livekit.proto.CaptureAudioFrameResponseH\x00\x12G\n\x13new_audio_resampler\x18\x18 \x01(\x0b\x32(.livekit.proto.NewAudioResamplerResponseH\x00\x12\x45\n\x12remix_and_resample\x18\x19 \x01(\x0b\x32\'.livekit.proto.RemixAndResampleResponseH\x00\x12+\n\x04\x65\x32\x65\x65\x18\x1a \x01(\x0b\x32\x1b.livekit.proto.E2eeResponseH\x00\x42\t\n\x07message\"\xe1\x06\n\x08\x46\x66iEvent\x12.\n\nroom_event\x18\x01 \x01(\x0b\x32\x18.livekit.proto.RoomEventH\x00\x12\x30\n\x0btrack_event\x18\x02 \x01(\x0b\x32\x19.livekit.proto.TrackEventH\x00\x12=\n\x12video_stream_event\x18\x03 \x01(\x0b\x32\x1f.livekit.proto.VideoStreamEventH\x00\x12=\n\x12\x61udio_stream_event\x18\x04 \x01(\x0b\x32\x1f.livekit.proto.AudioStreamEventH\x00\x12\x31\n\x07\x63onnect\x18\x05 \x01(\x0b\x32\x1e.livekit.proto.ConnectCallbackH\x00\x12\x37\n\ndisconnect\x18\x06 \x01(\x0b\x32!.livekit.proto.DisconnectCallbackH\x00\x12\x31\n\x07\x64ispose\x18\x07 \x01(\x0b\x32\x1e.livekit.proto.DisposeCallbackH\x00\x12<\n\rpublish_track\x18\x08 \x01(\x0b\x32#.livekit.proto.PublishTrackCallbackH\x00\x12@\n\x0funpublish_track\x18\t \x01(\x0b\x32%.livekit.proto.UnpublishTrackCallbackH\x00\x12:\n\x0cpublish_data\x18\n \x01(\x0b\x32\".livekit.proto.PublishDataCallbackH\x00\x12G\n\x13\x63\x61pture_audio_frame\x18\x0b \x01(\x0b\x32(.livekit.proto.CaptureAudioFrameCallbackH\x00\x12K\n\x15update_local_metadata\x18\x0c \x01(\x0b\x32*.livekit.proto.UpdateLocalMetadataCallbackH\x00\x12\x43\n\x11update_local_name\x18\r \x01(\x0b\x32&.livekit.proto.UpdateLocalNameCallbackH\x00\x12\x34\n\tget_stats\x18\x0e \x01(\x0b\x32\x1f.livekit.proto.GetStatsCallbackH\x00\x42\t\n\x07message\"/\n\x11InitializeRequest\x12\x1a\n\x12\x65vent_callback_ptr\x18\x01 \x01(\x04\"\x14\n\x12InitializeResponse\"\x1f\n\x0e\x44isposeRequest\x12\r\n\x05\x61sync\x18\x01 \x01(\x08\"5\n\x0f\x44isposeResponse\x12\x15\n\x08\x61sync_id\x18\x01 \x01(\x04H\x00\x88\x01\x01\x42\x0b\n\t_async_id\"#\n\x0f\x44isposeCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x01(\x04\x42\x10\xaa\x02\rLiveKit.Protob\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'ffi_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\252\002\rLiveKit.Proto' - _globals['_FFIREQUEST']._serialized_start=104 - _globals['_FFIREQUEST']._serialized_end=1756 - _globals['_FFIRESPONSE']._serialized_start=1759 - _globals['_FFIRESPONSE']._serialized_end=3438 - _globals['_FFIEVENT']._serialized_start=3441 - _globals['_FFIEVENT']._serialized_end=4306 - _globals['_INITIALIZEREQUEST']._serialized_start=4308 - _globals['_INITIALIZEREQUEST']._serialized_end=4355 - _globals['_INITIALIZERESPONSE']._serialized_start=4357 - _globals['_INITIALIZERESPONSE']._serialized_end=4377 - _globals['_DISPOSEREQUEST']._serialized_start=4379 - _globals['_DISPOSEREQUEST']._serialized_end=4410 - _globals['_DISPOSERESPONSE']._serialized_start=4412 - _globals['_DISPOSERESPONSE']._serialized_end=4465 - _globals['_DISPOSECALLBACK']._serialized_start=4467 - _globals['_DISPOSECALLBACK']._serialized_end=4502 -# @@protoc_insertion_point(module_scope) diff --git a/livekit-rtc/livekit/rtc/_proto/ffi_pb2.pyi b/livekit-rtc/livekit/rtc/_proto/ffi_pb2.pyi deleted file mode 100644 index 7477fc2c..00000000 --- a/livekit-rtc/livekit/rtc/_proto/ffi_pb2.pyi +++ /dev/null @@ -1,463 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -Copyright 2023 LiveKit, Inc. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -""" -from . import audio_frame_pb2 -import builtins -from . import e2ee_pb2 -import google.protobuf.descriptor -import google.protobuf.message -from . import room_pb2 -import sys -from . import track_pb2 -from . import video_frame_pb2 - -if sys.version_info >= (3, 8): - import typing as typing_extensions -else: - import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor - -@typing_extensions.final -class FfiRequest(google.protobuf.message.Message): - """**How is the livekit-ffi working: - We refer as the ffi server the Rust server that is running the LiveKit client implementation, and we - refer as the ffi client the foreign language that commumicates with the ffi server. (e.g Python SDK, Unity SDK, etc...) - - We expose the Rust client implementation of livekit using the protocol defined here. - Everything starts with a FfiRequest, which is a oneof message that contains all the possible - requests that can be made to the ffi server. - The server will then respond with a FfiResponse, which is also a oneof message that contains - all the possible responses. - The first request sent to the server must be an InitializeRequest, which contains the a pointer - to the callback function that will be used to send events and async responses to the ffi client. - (e.g participant joined, track published, etc...) - - **Useful things know when collaborating on the protocol:** - Everything is subject to discussion and change :-) - - - The ffi client implementation must never forget to correctly dispose all the owned handles - that it receives from the server. - - Therefore, the ffi client is easier to implement if there is less handles to manage. - - - We are mainly using FfiHandle on info messages (e.g: RoomInfo, TrackInfo, etc...) - For this reason, info are only sent once, at creation (We're not using them for updates, we can infer them from - events on the client implementation). - e.g: set speaking to true when we receive a ActiveSpeakerChanged event. - - This is the input of livekit_ffi_request function - We always expect a response (FFIResponse, even if it's empty) - """ - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - INITIALIZE_FIELD_NUMBER: builtins.int - DISPOSE_FIELD_NUMBER: builtins.int - CONNECT_FIELD_NUMBER: builtins.int - DISCONNECT_FIELD_NUMBER: builtins.int - PUBLISH_TRACK_FIELD_NUMBER: builtins.int - UNPUBLISH_TRACK_FIELD_NUMBER: builtins.int - PUBLISH_DATA_FIELD_NUMBER: builtins.int - SET_SUBSCRIBED_FIELD_NUMBER: builtins.int - UPDATE_LOCAL_METADATA_FIELD_NUMBER: builtins.int - UPDATE_LOCAL_NAME_FIELD_NUMBER: builtins.int - CREATE_VIDEO_TRACK_FIELD_NUMBER: builtins.int - CREATE_AUDIO_TRACK_FIELD_NUMBER: builtins.int - GET_STATS_FIELD_NUMBER: builtins.int - ALLOC_VIDEO_BUFFER_FIELD_NUMBER: builtins.int - NEW_VIDEO_STREAM_FIELD_NUMBER: builtins.int - NEW_VIDEO_SOURCE_FIELD_NUMBER: builtins.int - CAPTURE_VIDEO_FRAME_FIELD_NUMBER: builtins.int - TO_I420_FIELD_NUMBER: builtins.int - TO_ARGB_FIELD_NUMBER: builtins.int - ALLOC_AUDIO_BUFFER_FIELD_NUMBER: builtins.int - NEW_AUDIO_STREAM_FIELD_NUMBER: builtins.int - NEW_AUDIO_SOURCE_FIELD_NUMBER: builtins.int - CAPTURE_AUDIO_FRAME_FIELD_NUMBER: builtins.int - NEW_AUDIO_RESAMPLER_FIELD_NUMBER: builtins.int - REMIX_AND_RESAMPLE_FIELD_NUMBER: builtins.int - E2EE_FIELD_NUMBER: builtins.int - @property - def initialize(self) -> global___InitializeRequest: ... - @property - def dispose(self) -> global___DisposeRequest: ... - @property - def connect(self) -> room_pb2.ConnectRequest: - """Room""" - @property - def disconnect(self) -> room_pb2.DisconnectRequest: ... - @property - def publish_track(self) -> room_pb2.PublishTrackRequest: ... - @property - def unpublish_track(self) -> room_pb2.UnpublishTrackRequest: ... - @property - def publish_data(self) -> room_pb2.PublishDataRequest: ... - @property - def set_subscribed(self) -> room_pb2.SetSubscribedRequest: ... - @property - def update_local_metadata(self) -> room_pb2.UpdateLocalMetadataRequest: ... - @property - def update_local_name(self) -> room_pb2.UpdateLocalNameRequest: ... - @property - def create_video_track(self) -> track_pb2.CreateVideoTrackRequest: - """Track""" - @property - def create_audio_track(self) -> track_pb2.CreateAudioTrackRequest: ... - @property - def get_stats(self) -> track_pb2.GetStatsRequest: ... - @property - def alloc_video_buffer(self) -> video_frame_pb2.AllocVideoBufferRequest: - """Video""" - @property - def new_video_stream(self) -> video_frame_pb2.NewVideoStreamRequest: ... - @property - def new_video_source(self) -> video_frame_pb2.NewVideoSourceRequest: ... - @property - def capture_video_frame(self) -> video_frame_pb2.CaptureVideoFrameRequest: ... - @property - def to_i420(self) -> video_frame_pb2.ToI420Request: ... - @property - def to_argb(self) -> video_frame_pb2.ToArgbRequest: ... - @property - def alloc_audio_buffer(self) -> audio_frame_pb2.AllocAudioBufferRequest: - """Audio""" - @property - def new_audio_stream(self) -> audio_frame_pb2.NewAudioStreamRequest: ... - @property - def new_audio_source(self) -> audio_frame_pb2.NewAudioSourceRequest: ... - @property - def capture_audio_frame(self) -> audio_frame_pb2.CaptureAudioFrameRequest: ... - @property - def new_audio_resampler(self) -> audio_frame_pb2.NewAudioResamplerRequest: ... - @property - def remix_and_resample(self) -> audio_frame_pb2.RemixAndResampleRequest: ... - @property - def e2ee(self) -> e2ee_pb2.E2eeRequest: ... - def __init__( - self, - *, - initialize: global___InitializeRequest | None = ..., - dispose: global___DisposeRequest | None = ..., - connect: room_pb2.ConnectRequest | None = ..., - disconnect: room_pb2.DisconnectRequest | None = ..., - publish_track: room_pb2.PublishTrackRequest | None = ..., - unpublish_track: room_pb2.UnpublishTrackRequest | None = ..., - publish_data: room_pb2.PublishDataRequest | None = ..., - set_subscribed: room_pb2.SetSubscribedRequest | None = ..., - update_local_metadata: room_pb2.UpdateLocalMetadataRequest | None = ..., - update_local_name: room_pb2.UpdateLocalNameRequest | None = ..., - create_video_track: track_pb2.CreateVideoTrackRequest | None = ..., - create_audio_track: track_pb2.CreateAudioTrackRequest | None = ..., - get_stats: track_pb2.GetStatsRequest | None = ..., - alloc_video_buffer: video_frame_pb2.AllocVideoBufferRequest | None = ..., - new_video_stream: video_frame_pb2.NewVideoStreamRequest | None = ..., - new_video_source: video_frame_pb2.NewVideoSourceRequest | None = ..., - capture_video_frame: video_frame_pb2.CaptureVideoFrameRequest | None = ..., - to_i420: video_frame_pb2.ToI420Request | None = ..., - to_argb: video_frame_pb2.ToArgbRequest | None = ..., - alloc_audio_buffer: audio_frame_pb2.AllocAudioBufferRequest | None = ..., - new_audio_stream: audio_frame_pb2.NewAudioStreamRequest | None = ..., - new_audio_source: audio_frame_pb2.NewAudioSourceRequest | None = ..., - capture_audio_frame: audio_frame_pb2.CaptureAudioFrameRequest | None = ..., - new_audio_resampler: audio_frame_pb2.NewAudioResamplerRequest | None = ..., - remix_and_resample: audio_frame_pb2.RemixAndResampleRequest | None = ..., - e2ee: e2ee_pb2.E2eeRequest | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["alloc_audio_buffer", b"alloc_audio_buffer", "alloc_video_buffer", b"alloc_video_buffer", "capture_audio_frame", b"capture_audio_frame", "capture_video_frame", b"capture_video_frame", "connect", b"connect", "create_audio_track", b"create_audio_track", "create_video_track", b"create_video_track", "disconnect", b"disconnect", "dispose", b"dispose", "e2ee", b"e2ee", "get_stats", b"get_stats", "initialize", b"initialize", "message", b"message", "new_audio_resampler", b"new_audio_resampler", "new_audio_source", b"new_audio_source", "new_audio_stream", b"new_audio_stream", "new_video_source", b"new_video_source", "new_video_stream", b"new_video_stream", "publish_data", b"publish_data", "publish_track", b"publish_track", "remix_and_resample", b"remix_and_resample", "set_subscribed", b"set_subscribed", "to_argb", b"to_argb", "to_i420", b"to_i420", "unpublish_track", b"unpublish_track", "update_local_metadata", b"update_local_metadata", "update_local_name", b"update_local_name"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["alloc_audio_buffer", b"alloc_audio_buffer", "alloc_video_buffer", b"alloc_video_buffer", "capture_audio_frame", b"capture_audio_frame", "capture_video_frame", b"capture_video_frame", "connect", b"connect", "create_audio_track", b"create_audio_track", "create_video_track", b"create_video_track", "disconnect", b"disconnect", "dispose", b"dispose", "e2ee", b"e2ee", "get_stats", b"get_stats", "initialize", b"initialize", "message", b"message", "new_audio_resampler", b"new_audio_resampler", "new_audio_source", b"new_audio_source", "new_audio_stream", b"new_audio_stream", "new_video_source", b"new_video_source", "new_video_stream", b"new_video_stream", "publish_data", b"publish_data", "publish_track", b"publish_track", "remix_and_resample", b"remix_and_resample", "set_subscribed", b"set_subscribed", "to_argb", b"to_argb", "to_i420", b"to_i420", "unpublish_track", b"unpublish_track", "update_local_metadata", b"update_local_metadata", "update_local_name", b"update_local_name"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["message", b"message"]) -> typing_extensions.Literal["initialize", "dispose", "connect", "disconnect", "publish_track", "unpublish_track", "publish_data", "set_subscribed", "update_local_metadata", "update_local_name", "create_video_track", "create_audio_track", "get_stats", "alloc_video_buffer", "new_video_stream", "new_video_source", "capture_video_frame", "to_i420", "to_argb", "alloc_audio_buffer", "new_audio_stream", "new_audio_source", "capture_audio_frame", "new_audio_resampler", "remix_and_resample", "e2ee"] | None: ... - -global___FfiRequest = FfiRequest - -@typing_extensions.final -class FfiResponse(google.protobuf.message.Message): - """This is the output of livekit_ffi_request function.""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - INITIALIZE_FIELD_NUMBER: builtins.int - DISPOSE_FIELD_NUMBER: builtins.int - CONNECT_FIELD_NUMBER: builtins.int - DISCONNECT_FIELD_NUMBER: builtins.int - PUBLISH_TRACK_FIELD_NUMBER: builtins.int - UNPUBLISH_TRACK_FIELD_NUMBER: builtins.int - PUBLISH_DATA_FIELD_NUMBER: builtins.int - SET_SUBSCRIBED_FIELD_NUMBER: builtins.int - UPDATE_LOCAL_METADATA_FIELD_NUMBER: builtins.int - UPDATE_LOCAL_NAME_FIELD_NUMBER: builtins.int - CREATE_VIDEO_TRACK_FIELD_NUMBER: builtins.int - CREATE_AUDIO_TRACK_FIELD_NUMBER: builtins.int - GET_STATS_FIELD_NUMBER: builtins.int - ALLOC_VIDEO_BUFFER_FIELD_NUMBER: builtins.int - NEW_VIDEO_STREAM_FIELD_NUMBER: builtins.int - NEW_VIDEO_SOURCE_FIELD_NUMBER: builtins.int - CAPTURE_VIDEO_FRAME_FIELD_NUMBER: builtins.int - TO_I420_FIELD_NUMBER: builtins.int - TO_ARGB_FIELD_NUMBER: builtins.int - ALLOC_AUDIO_BUFFER_FIELD_NUMBER: builtins.int - NEW_AUDIO_STREAM_FIELD_NUMBER: builtins.int - NEW_AUDIO_SOURCE_FIELD_NUMBER: builtins.int - CAPTURE_AUDIO_FRAME_FIELD_NUMBER: builtins.int - NEW_AUDIO_RESAMPLER_FIELD_NUMBER: builtins.int - REMIX_AND_RESAMPLE_FIELD_NUMBER: builtins.int - E2EE_FIELD_NUMBER: builtins.int - @property - def initialize(self) -> global___InitializeResponse: ... - @property - def dispose(self) -> global___DisposeResponse: ... - @property - def connect(self) -> room_pb2.ConnectResponse: - """Room""" - @property - def disconnect(self) -> room_pb2.DisconnectResponse: ... - @property - def publish_track(self) -> room_pb2.PublishTrackResponse: ... - @property - def unpublish_track(self) -> room_pb2.UnpublishTrackResponse: ... - @property - def publish_data(self) -> room_pb2.PublishDataResponse: ... - @property - def set_subscribed(self) -> room_pb2.SetSubscribedResponse: ... - @property - def update_local_metadata(self) -> room_pb2.UpdateLocalMetadataResponse: ... - @property - def update_local_name(self) -> room_pb2.UpdateLocalNameResponse: ... - @property - def create_video_track(self) -> track_pb2.CreateVideoTrackResponse: - """Track""" - @property - def create_audio_track(self) -> track_pb2.CreateAudioTrackResponse: ... - @property - def get_stats(self) -> track_pb2.GetStatsResponse: ... - @property - def alloc_video_buffer(self) -> video_frame_pb2.AllocVideoBufferResponse: - """Video""" - @property - def new_video_stream(self) -> video_frame_pb2.NewVideoStreamResponse: ... - @property - def new_video_source(self) -> video_frame_pb2.NewVideoSourceResponse: ... - @property - def capture_video_frame(self) -> video_frame_pb2.CaptureVideoFrameResponse: ... - @property - def to_i420(self) -> video_frame_pb2.ToI420Response: ... - @property - def to_argb(self) -> video_frame_pb2.ToArgbResponse: ... - @property - def alloc_audio_buffer(self) -> audio_frame_pb2.AllocAudioBufferResponse: - """Audio""" - @property - def new_audio_stream(self) -> audio_frame_pb2.NewAudioStreamResponse: ... - @property - def new_audio_source(self) -> audio_frame_pb2.NewAudioSourceResponse: ... - @property - def capture_audio_frame(self) -> audio_frame_pb2.CaptureAudioFrameResponse: ... - @property - def new_audio_resampler(self) -> audio_frame_pb2.NewAudioResamplerResponse: ... - @property - def remix_and_resample(self) -> audio_frame_pb2.RemixAndResampleResponse: ... - @property - def e2ee(self) -> e2ee_pb2.E2eeResponse: ... - def __init__( - self, - *, - initialize: global___InitializeResponse | None = ..., - dispose: global___DisposeResponse | None = ..., - connect: room_pb2.ConnectResponse | None = ..., - disconnect: room_pb2.DisconnectResponse | None = ..., - publish_track: room_pb2.PublishTrackResponse | None = ..., - unpublish_track: room_pb2.UnpublishTrackResponse | None = ..., - publish_data: room_pb2.PublishDataResponse | None = ..., - set_subscribed: room_pb2.SetSubscribedResponse | None = ..., - update_local_metadata: room_pb2.UpdateLocalMetadataResponse | None = ..., - update_local_name: room_pb2.UpdateLocalNameResponse | None = ..., - create_video_track: track_pb2.CreateVideoTrackResponse | None = ..., - create_audio_track: track_pb2.CreateAudioTrackResponse | None = ..., - get_stats: track_pb2.GetStatsResponse | None = ..., - alloc_video_buffer: video_frame_pb2.AllocVideoBufferResponse | None = ..., - new_video_stream: video_frame_pb2.NewVideoStreamResponse | None = ..., - new_video_source: video_frame_pb2.NewVideoSourceResponse | None = ..., - capture_video_frame: video_frame_pb2.CaptureVideoFrameResponse | None = ..., - to_i420: video_frame_pb2.ToI420Response | None = ..., - to_argb: video_frame_pb2.ToArgbResponse | None = ..., - alloc_audio_buffer: audio_frame_pb2.AllocAudioBufferResponse | None = ..., - new_audio_stream: audio_frame_pb2.NewAudioStreamResponse | None = ..., - new_audio_source: audio_frame_pb2.NewAudioSourceResponse | None = ..., - capture_audio_frame: audio_frame_pb2.CaptureAudioFrameResponse | None = ..., - new_audio_resampler: audio_frame_pb2.NewAudioResamplerResponse | None = ..., - remix_and_resample: audio_frame_pb2.RemixAndResampleResponse | None = ..., - e2ee: e2ee_pb2.E2eeResponse | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["alloc_audio_buffer", b"alloc_audio_buffer", "alloc_video_buffer", b"alloc_video_buffer", "capture_audio_frame", b"capture_audio_frame", "capture_video_frame", b"capture_video_frame", "connect", b"connect", "create_audio_track", b"create_audio_track", "create_video_track", b"create_video_track", "disconnect", b"disconnect", "dispose", b"dispose", "e2ee", b"e2ee", "get_stats", b"get_stats", "initialize", b"initialize", "message", b"message", "new_audio_resampler", b"new_audio_resampler", "new_audio_source", b"new_audio_source", "new_audio_stream", b"new_audio_stream", "new_video_source", b"new_video_source", "new_video_stream", b"new_video_stream", "publish_data", b"publish_data", "publish_track", b"publish_track", "remix_and_resample", b"remix_and_resample", "set_subscribed", b"set_subscribed", "to_argb", b"to_argb", "to_i420", b"to_i420", "unpublish_track", b"unpublish_track", "update_local_metadata", b"update_local_metadata", "update_local_name", b"update_local_name"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["alloc_audio_buffer", b"alloc_audio_buffer", "alloc_video_buffer", b"alloc_video_buffer", "capture_audio_frame", b"capture_audio_frame", "capture_video_frame", b"capture_video_frame", "connect", b"connect", "create_audio_track", b"create_audio_track", "create_video_track", b"create_video_track", "disconnect", b"disconnect", "dispose", b"dispose", "e2ee", b"e2ee", "get_stats", b"get_stats", "initialize", b"initialize", "message", b"message", "new_audio_resampler", b"new_audio_resampler", "new_audio_source", b"new_audio_source", "new_audio_stream", b"new_audio_stream", "new_video_source", b"new_video_source", "new_video_stream", b"new_video_stream", "publish_data", b"publish_data", "publish_track", b"publish_track", "remix_and_resample", b"remix_and_resample", "set_subscribed", b"set_subscribed", "to_argb", b"to_argb", "to_i420", b"to_i420", "unpublish_track", b"unpublish_track", "update_local_metadata", b"update_local_metadata", "update_local_name", b"update_local_name"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["message", b"message"]) -> typing_extensions.Literal["initialize", "dispose", "connect", "disconnect", "publish_track", "unpublish_track", "publish_data", "set_subscribed", "update_local_metadata", "update_local_name", "create_video_track", "create_audio_track", "get_stats", "alloc_video_buffer", "new_video_stream", "new_video_source", "capture_video_frame", "to_i420", "to_argb", "alloc_audio_buffer", "new_audio_stream", "new_audio_source", "capture_audio_frame", "new_audio_resampler", "remix_and_resample", "e2ee"] | None: ... - -global___FfiResponse = FfiResponse - -@typing_extensions.final -class FfiEvent(google.protobuf.message.Message): - """To minimize complexity, participant events are not included in the protocol. - It is easily deducible from the room events and it turned out that is is easier to implement - on the ffi client side. - """ - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ROOM_EVENT_FIELD_NUMBER: builtins.int - TRACK_EVENT_FIELD_NUMBER: builtins.int - VIDEO_STREAM_EVENT_FIELD_NUMBER: builtins.int - AUDIO_STREAM_EVENT_FIELD_NUMBER: builtins.int - CONNECT_FIELD_NUMBER: builtins.int - DISCONNECT_FIELD_NUMBER: builtins.int - DISPOSE_FIELD_NUMBER: builtins.int - PUBLISH_TRACK_FIELD_NUMBER: builtins.int - UNPUBLISH_TRACK_FIELD_NUMBER: builtins.int - PUBLISH_DATA_FIELD_NUMBER: builtins.int - CAPTURE_AUDIO_FRAME_FIELD_NUMBER: builtins.int - UPDATE_LOCAL_METADATA_FIELD_NUMBER: builtins.int - UPDATE_LOCAL_NAME_FIELD_NUMBER: builtins.int - GET_STATS_FIELD_NUMBER: builtins.int - @property - def room_event(self) -> room_pb2.RoomEvent: ... - @property - def track_event(self) -> track_pb2.TrackEvent: ... - @property - def video_stream_event(self) -> video_frame_pb2.VideoStreamEvent: ... - @property - def audio_stream_event(self) -> audio_frame_pb2.AudioStreamEvent: ... - @property - def connect(self) -> room_pb2.ConnectCallback: ... - @property - def disconnect(self) -> room_pb2.DisconnectCallback: ... - @property - def dispose(self) -> global___DisposeCallback: ... - @property - def publish_track(self) -> room_pb2.PublishTrackCallback: ... - @property - def unpublish_track(self) -> room_pb2.UnpublishTrackCallback: ... - @property - def publish_data(self) -> room_pb2.PublishDataCallback: ... - @property - def capture_audio_frame(self) -> audio_frame_pb2.CaptureAudioFrameCallback: ... - @property - def update_local_metadata(self) -> room_pb2.UpdateLocalMetadataCallback: ... - @property - def update_local_name(self) -> room_pb2.UpdateLocalNameCallback: ... - @property - def get_stats(self) -> track_pb2.GetStatsCallback: ... - def __init__( - self, - *, - room_event: room_pb2.RoomEvent | None = ..., - track_event: track_pb2.TrackEvent | None = ..., - video_stream_event: video_frame_pb2.VideoStreamEvent | None = ..., - audio_stream_event: audio_frame_pb2.AudioStreamEvent | None = ..., - connect: room_pb2.ConnectCallback | None = ..., - disconnect: room_pb2.DisconnectCallback | None = ..., - dispose: global___DisposeCallback | None = ..., - publish_track: room_pb2.PublishTrackCallback | None = ..., - unpublish_track: room_pb2.UnpublishTrackCallback | None = ..., - publish_data: room_pb2.PublishDataCallback | None = ..., - capture_audio_frame: audio_frame_pb2.CaptureAudioFrameCallback | None = ..., - update_local_metadata: room_pb2.UpdateLocalMetadataCallback | None = ..., - update_local_name: room_pb2.UpdateLocalNameCallback | None = ..., - get_stats: track_pb2.GetStatsCallback | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["audio_stream_event", b"audio_stream_event", "capture_audio_frame", b"capture_audio_frame", "connect", b"connect", "disconnect", b"disconnect", "dispose", b"dispose", "get_stats", b"get_stats", "message", b"message", "publish_data", b"publish_data", "publish_track", b"publish_track", "room_event", b"room_event", "track_event", b"track_event", "unpublish_track", b"unpublish_track", "update_local_metadata", b"update_local_metadata", "update_local_name", b"update_local_name", "video_stream_event", b"video_stream_event"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["audio_stream_event", b"audio_stream_event", "capture_audio_frame", b"capture_audio_frame", "connect", b"connect", "disconnect", b"disconnect", "dispose", b"dispose", "get_stats", b"get_stats", "message", b"message", "publish_data", b"publish_data", "publish_track", b"publish_track", "room_event", b"room_event", "track_event", b"track_event", "unpublish_track", b"unpublish_track", "update_local_metadata", b"update_local_metadata", "update_local_name", b"update_local_name", "video_stream_event", b"video_stream_event"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["message", b"message"]) -> typing_extensions.Literal["room_event", "track_event", "video_stream_event", "audio_stream_event", "connect", "disconnect", "dispose", "publish_track", "unpublish_track", "publish_data", "capture_audio_frame", "update_local_metadata", "update_local_name", "get_stats"] | None: ... - -global___FfiEvent = FfiEvent - -@typing_extensions.final -class InitializeRequest(google.protobuf.message.Message): - """Setup the callback where the foreign language can receive events - and responses to asynchronous requests - """ - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - EVENT_CALLBACK_PTR_FIELD_NUMBER: builtins.int - event_callback_ptr: builtins.int - def __init__( - self, - *, - event_callback_ptr: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["event_callback_ptr", b"event_callback_ptr"]) -> None: ... - -global___InitializeRequest = InitializeRequest - -@typing_extensions.final -class InitializeResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - def __init__( - self, - ) -> None: ... - -global___InitializeResponse = InitializeResponse - -@typing_extensions.final -class DisposeRequest(google.protobuf.message.Message): - """Stop all rooms synchronously (Do we need async here?). - e.g: This is used for the Unity Editor after each assemblies reload. - TODO(theomonnom): Implement a debug mode where we can find all leaked handles? - """ - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ASYNC_FIELD_NUMBER: builtins.int - def __init__( - self, - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["async", b"async"]) -> None: ... - -global___DisposeRequest = DisposeRequest - -@typing_extensions.final -class DisposeResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int - """None if sync""" - def __init__( - self, - *, - async_id: builtins.int | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["_async_id", b"_async_id", "async_id", b"async_id"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["_async_id", b"_async_id", "async_id", b"async_id"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["_async_id", b"_async_id"]) -> typing_extensions.Literal["async_id"] | None: ... - -global___DisposeResponse = DisposeResponse - -@typing_extensions.final -class DisposeCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int - def __init__( - self, - *, - async_id: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["async_id", b"async_id"]) -> None: ... - -global___DisposeCallback = DisposeCallback diff --git a/livekit-rtc/livekit/rtc/_proto/handle_pb2.py b/livekit-rtc/livekit/rtc/_proto/handle_pb2.py deleted file mode 100644 index c6b9f84c..00000000 --- a/livekit-rtc/livekit/rtc/_proto/handle_pb2.py +++ /dev/null @@ -1,27 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: handle.proto -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0chandle.proto\x12\rlivekit.proto\"\x1c\n\x0e\x46\x66iOwnedHandle\x12\n\n\x02id\x18\x01 \x01(\x04\x42\x10\xaa\x02\rLiveKit.Protob\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'handle_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\252\002\rLiveKit.Proto' - _globals['_FFIOWNEDHANDLE']._serialized_start=31 - _globals['_FFIOWNEDHANDLE']._serialized_end=59 -# @@protoc_insertion_point(module_scope) diff --git a/livekit-rtc/livekit/rtc/_proto/handle_pb2.pyi b/livekit-rtc/livekit/rtc/_proto/handle_pb2.pyi deleted file mode 100644 index 5b525ca9..00000000 --- a/livekit-rtc/livekit/rtc/_proto/handle_pb2.pyi +++ /dev/null @@ -1,54 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -Copyright 2023 LiveKit, Inc. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -""" -import builtins -import google.protobuf.descriptor -import google.protobuf.message -import sys - -if sys.version_info >= (3, 8): - import typing as typing_extensions -else: - import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor - -@typing_extensions.final -class FfiOwnedHandle(google.protobuf.message.Message): - """# Safety - The foreign language is responsable for disposing handles - Forgetting to dispose the handle may lead to memory leaks - - Dropping a handle doesn't necessarily mean that the object is destroyed if it is still used - on the FfiServer (Atomic reference counting) - - When refering to a handle without owning it, we just use a uint32 without this message. - (the variable name is suffixed with "_handle") - """ - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ID_FIELD_NUMBER: builtins.int - id: builtins.int - def __init__( - self, - *, - id: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["id", b"id"]) -> None: ... - -global___FfiOwnedHandle = FfiOwnedHandle diff --git a/livekit-rtc/livekit/rtc/_proto/participant_pb2.py b/livekit-rtc/livekit/rtc/_proto/participant_pb2.py deleted file mode 100644 index bb3a6af1..00000000 --- a/livekit-rtc/livekit/rtc/_proto/participant_pb2.py +++ /dev/null @@ -1,30 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: participant.proto -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import handle_pb2 as handle__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x11participant.proto\x12\rlivekit.proto\x1a\x0chandle.proto\"P\n\x0fParticipantInfo\x12\x0b\n\x03sid\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x10\n\x08identity\x18\x03 \x01(\t\x12\x10\n\x08metadata\x18\x04 \x01(\t\"o\n\x10OwnedParticipant\x12-\n\x06handle\x18\x01 \x01(\x0b\x32\x1d.livekit.proto.FfiOwnedHandle\x12,\n\x04info\x18\x02 \x01(\x0b\x32\x1e.livekit.proto.ParticipantInfoB\x10\xaa\x02\rLiveKit.Protob\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'participant_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\252\002\rLiveKit.Proto' - _globals['_PARTICIPANTINFO']._serialized_start=50 - _globals['_PARTICIPANTINFO']._serialized_end=130 - _globals['_OWNEDPARTICIPANT']._serialized_start=132 - _globals['_OWNEDPARTICIPANT']._serialized_end=243 -# @@protoc_insertion_point(module_scope) diff --git a/livekit-rtc/livekit/rtc/_proto/participant_pb2.pyi b/livekit-rtc/livekit/rtc/_proto/participant_pb2.pyi deleted file mode 100644 index 0b30d59e..00000000 --- a/livekit-rtc/livekit/rtc/_proto/participant_pb2.pyi +++ /dev/null @@ -1,74 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -Copyright 2023 LiveKit, Inc. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -""" -import builtins -import google.protobuf.descriptor -import google.protobuf.message -from . import handle_pb2 -import sys - -if sys.version_info >= (3, 8): - import typing as typing_extensions -else: - import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor - -@typing_extensions.final -class ParticipantInfo(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - SID_FIELD_NUMBER: builtins.int - NAME_FIELD_NUMBER: builtins.int - IDENTITY_FIELD_NUMBER: builtins.int - METADATA_FIELD_NUMBER: builtins.int - sid: builtins.str - name: builtins.str - identity: builtins.str - metadata: builtins.str - def __init__( - self, - *, - sid: builtins.str = ..., - name: builtins.str = ..., - identity: builtins.str = ..., - metadata: builtins.str = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["identity", b"identity", "metadata", b"metadata", "name", b"name", "sid", b"sid"]) -> None: ... - -global___ParticipantInfo = ParticipantInfo - -@typing_extensions.final -class OwnedParticipant(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - HANDLE_FIELD_NUMBER: builtins.int - INFO_FIELD_NUMBER: builtins.int - @property - def handle(self) -> handle_pb2.FfiOwnedHandle: ... - @property - def info(self) -> global___ParticipantInfo: ... - def __init__( - self, - *, - handle: handle_pb2.FfiOwnedHandle | None = ..., - info: global___ParticipantInfo | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["handle", b"handle", "info", b"info"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["handle", b"handle", "info", b"info"]) -> None: ... - -global___OwnedParticipant = OwnedParticipant diff --git a/livekit-rtc/livekit/rtc/_proto/room_pb2.py b/livekit-rtc/livekit/rtc/_proto/room_pb2.py deleted file mode 100644 index b974b273..00000000 --- a/livekit-rtc/livekit/rtc/_proto/room_pb2.py +++ /dev/null @@ -1,158 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: room.proto -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import e2ee_pb2 as e2ee__pb2 -from . import handle_pb2 as handle__pb2 -from . import participant_pb2 as participant__pb2 -from . import track_pb2 as track__pb2 -from . import video_frame_pb2 as video__frame__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\nroom.proto\x12\rlivekit.proto\x1a\ne2ee.proto\x1a\x0chandle.proto\x1a\x11participant.proto\x1a\x0btrack.proto\x1a\x11video_frame.proto\"Y\n\x0e\x43onnectRequest\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\r\n\x05token\x18\x02 \x01(\t\x12+\n\x07options\x18\x03 \x01(\x0b\x32\x1a.livekit.proto.RoomOptions\"#\n\x0f\x43onnectResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x01(\x04\"\xfd\x02\n\x0f\x43onnectCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x01(\x04\x12\x12\n\x05\x65rror\x18\x02 \x01(\tH\x00\x88\x01\x01\x12&\n\x04room\x18\x03 \x01(\x0b\x32\x18.livekit.proto.OwnedRoom\x12:\n\x11local_participant\x18\x04 \x01(\x0b\x32\x1f.livekit.proto.OwnedParticipant\x12J\n\x0cparticipants\x18\x05 \x03(\x0b\x32\x34.livekit.proto.ConnectCallback.ParticipantWithTracks\x1a\x89\x01\n\x15ParticipantWithTracks\x12\x34\n\x0bparticipant\x18\x01 \x01(\x0b\x32\x1f.livekit.proto.OwnedParticipant\x12:\n\x0cpublications\x18\x02 \x03(\x0b\x32$.livekit.proto.OwnedTrackPublicationB\x08\n\x06_error\"(\n\x11\x44isconnectRequest\x12\x13\n\x0broom_handle\x18\x01 \x01(\x04\"&\n\x12\x44isconnectResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x01(\x04\"&\n\x12\x44isconnectCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x01(\x04\"\x82\x01\n\x13PublishTrackRequest\x12 \n\x18local_participant_handle\x18\x01 \x01(\x04\x12\x14\n\x0ctrack_handle\x18\x02 \x01(\x04\x12\x33\n\x07options\x18\x03 \x01(\x0b\x32\".livekit.proto.TrackPublishOptions\"(\n\x14PublishTrackResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x01(\x04\"\x81\x01\n\x14PublishTrackCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x01(\x04\x12\x12\n\x05\x65rror\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x39\n\x0bpublication\x18\x03 \x01(\x0b\x32$.livekit.proto.OwnedTrackPublicationB\x08\n\x06_error\"g\n\x15UnpublishTrackRequest\x12 \n\x18local_participant_handle\x18\x01 \x01(\x04\x12\x11\n\ttrack_sid\x18\x02 \x01(\t\x12\x19\n\x11stop_on_unpublish\x18\x03 \x01(\x08\"*\n\x16UnpublishTrackResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x01(\x04\"H\n\x16UnpublishTrackCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x01(\x04\x12\x12\n\x05\x65rror\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_error\"\xa1\x01\n\x12PublishDataRequest\x12 \n\x18local_participant_handle\x18\x01 \x01(\x04\x12\x10\n\x08\x64\x61ta_ptr\x18\x02 \x01(\x04\x12\x10\n\x08\x64\x61ta_len\x18\x03 \x01(\x04\x12+\n\x04kind\x18\x04 \x01(\x0e\x32\x1d.livekit.proto.DataPacketKind\x12\x18\n\x10\x64\x65stination_sids\x18\x05 \x03(\t\"\'\n\x13PublishDataResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x01(\x04\"E\n\x13PublishDataCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x01(\x04\x12\x12\n\x05\x65rror\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_error\"P\n\x1aUpdateLocalMetadataRequest\x12 \n\x18local_participant_handle\x18\x01 \x01(\x04\x12\x10\n\x08metadata\x18\x02 \x01(\t\"/\n\x1bUpdateLocalMetadataResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x01(\x04\"/\n\x1bUpdateLocalMetadataCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x01(\x04\"H\n\x16UpdateLocalNameRequest\x12 \n\x18local_participant_handle\x18\x01 \x01(\x04\x12\x0c\n\x04name\x18\x02 \x01(\t\"+\n\x17UpdateLocalNameResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x01(\x04\"+\n\x17UpdateLocalNameCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x01(\x04\"E\n\x14SetSubscribedRequest\x12\x11\n\tsubscribe\x18\x01 \x01(\x08\x12\x1a\n\x12publication_handle\x18\x02 \x01(\x04\"\x17\n\x15SetSubscribedResponse\";\n\rVideoEncoding\x12\x13\n\x0bmax_bitrate\x18\x01 \x01(\x04\x12\x15\n\rmax_framerate\x18\x02 \x01(\x01\"$\n\rAudioEncoding\x12\x13\n\x0bmax_bitrate\x18\x01 \x01(\x04\"\x8a\x02\n\x13TrackPublishOptions\x12\x34\n\x0evideo_encoding\x18\x01 \x01(\x0b\x32\x1c.livekit.proto.VideoEncoding\x12\x34\n\x0e\x61udio_encoding\x18\x02 \x01(\x0b\x32\x1c.livekit.proto.AudioEncoding\x12.\n\x0bvideo_codec\x18\x03 \x01(\x0e\x32\x19.livekit.proto.VideoCodec\x12\x0b\n\x03\x64tx\x18\x04 \x01(\x08\x12\x0b\n\x03red\x18\x05 \x01(\x08\x12\x11\n\tsimulcast\x18\x06 \x01(\x08\x12*\n\x06source\x18\x07 \x01(\x0e\x32\x1a.livekit.proto.TrackSource\"=\n\tIceServer\x12\x0c\n\x04urls\x18\x01 \x03(\t\x12\x10\n\x08username\x18\x02 \x01(\t\x12\x10\n\x08password\x18\x03 \x01(\t\"\x84\x02\n\tRtcConfig\x12@\n\x12ice_transport_type\x18\x01 \x01(\x0e\x32\x1f.livekit.proto.IceTransportTypeH\x00\x88\x01\x01\x12P\n\x1a\x63ontinual_gathering_policy\x18\x02 \x01(\x0e\x32\'.livekit.proto.ContinualGatheringPolicyH\x01\x88\x01\x01\x12-\n\x0bice_servers\x18\x03 \x03(\x0b\x32\x18.livekit.proto.IceServerB\x15\n\x13_ice_transport_typeB\x1d\n\x1b_continual_gathering_policy\"\xca\x01\n\x0bRoomOptions\x12\x16\n\x0e\x61uto_subscribe\x18\x01 \x01(\x08\x12\x17\n\x0f\x61\x64\x61ptive_stream\x18\x02 \x01(\x08\x12\x10\n\x08\x64ynacast\x18\x03 \x01(\x08\x12-\n\x04\x65\x32\x65\x65\x18\x04 \x01(\x0b\x32\x1a.livekit.proto.E2eeOptionsH\x00\x88\x01\x01\x12\x31\n\nrtc_config\x18\x05 \x01(\x0b\x32\x18.livekit.proto.RtcConfigH\x01\x88\x01\x01\x42\x07\n\x05_e2eeB\r\n\x0b_rtc_config\"0\n\nBufferInfo\x12\x10\n\x08\x64\x61ta_ptr\x18\x01 \x01(\x04\x12\x10\n\x08\x64\x61ta_len\x18\x02 \x01(\x04\"e\n\x0bOwnedBuffer\x12-\n\x06handle\x18\x01 \x01(\x0b\x32\x1d.livekit.proto.FfiOwnedHandle\x12\'\n\x04\x64\x61ta\x18\x02 \x01(\x0b\x32\x19.livekit.proto.BufferInfo\"\xf3\x0b\n\tRoomEvent\x12\x13\n\x0broom_handle\x18\x01 \x01(\x04\x12\x44\n\x15participant_connected\x18\x02 \x01(\x0b\x32#.livekit.proto.ParticipantConnectedH\x00\x12J\n\x18participant_disconnected\x18\x03 \x01(\x0b\x32&.livekit.proto.ParticipantDisconnectedH\x00\x12\x43\n\x15local_track_published\x18\x04 \x01(\x0b\x32\".livekit.proto.LocalTrackPublishedH\x00\x12G\n\x17local_track_unpublished\x18\x05 \x01(\x0b\x32$.livekit.proto.LocalTrackUnpublishedH\x00\x12\x38\n\x0ftrack_published\x18\x06 \x01(\x0b\x32\x1d.livekit.proto.TrackPublishedH\x00\x12<\n\x11track_unpublished\x18\x07 \x01(\x0b\x32\x1f.livekit.proto.TrackUnpublishedH\x00\x12:\n\x10track_subscribed\x18\x08 \x01(\x0b\x32\x1e.livekit.proto.TrackSubscribedH\x00\x12>\n\x12track_unsubscribed\x18\t \x01(\x0b\x32 .livekit.proto.TrackUnsubscribedH\x00\x12K\n\x19track_subscription_failed\x18\n \x01(\x0b\x32&.livekit.proto.TrackSubscriptionFailedH\x00\x12\x30\n\x0btrack_muted\x18\x0b \x01(\x0b\x32\x19.livekit.proto.TrackMutedH\x00\x12\x34\n\rtrack_unmuted\x18\x0c \x01(\x0b\x32\x1b.livekit.proto.TrackUnmutedH\x00\x12G\n\x17\x61\x63tive_speakers_changed\x18\r \x01(\x0b\x32$.livekit.proto.ActiveSpeakersChangedH\x00\x12\x43\n\x15room_metadata_changed\x18\x0e \x01(\x0b\x32\".livekit.proto.RoomMetadataChangedH\x00\x12Q\n\x1cparticipant_metadata_changed\x18\x0f \x01(\x0b\x32).livekit.proto.ParticipantMetadataChangedH\x00\x12I\n\x18participant_name_changed\x18\x10 \x01(\x0b\x32%.livekit.proto.ParticipantNameChangedH\x00\x12M\n\x1a\x63onnection_quality_changed\x18\x11 \x01(\x0b\x32\'.livekit.proto.ConnectionQualityChangedH\x00\x12\x34\n\rdata_received\x18\x12 \x01(\x0b\x32\x1b.livekit.proto.DataReceivedH\x00\x12I\n\x18\x63onnection_state_changed\x18\x13 \x01(\x0b\x32%.livekit.proto.ConnectionStateChangedH\x00\x12\x33\n\x0c\x64isconnected\x18\x15 \x01(\x0b\x32\x1b.livekit.proto.DisconnectedH\x00\x12\x33\n\x0creconnecting\x18\x16 \x01(\x0b\x32\x1b.livekit.proto.ReconnectingH\x00\x12\x31\n\x0breconnected\x18\x17 \x01(\x0b\x32\x1a.livekit.proto.ReconnectedH\x00\x12=\n\x12\x65\x32\x65\x65_state_changed\x18\x18 \x01(\x0b\x32\x1f.livekit.proto.E2eeStateChangedH\x00\x12%\n\x03\x65os\x18\x19 \x01(\x0b\x32\x16.livekit.proto.RoomEOSH\x00\x42\t\n\x07message\"7\n\x08RoomInfo\x12\x0b\n\x03sid\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x10\n\x08metadata\x18\x03 \x01(\t\"a\n\tOwnedRoom\x12-\n\x06handle\x18\x01 \x01(\x0b\x32\x1d.livekit.proto.FfiOwnedHandle\x12%\n\x04info\x18\x02 \x01(\x0b\x32\x17.livekit.proto.RoomInfo\"E\n\x14ParticipantConnected\x12-\n\x04info\x18\x01 \x01(\x0b\x32\x1f.livekit.proto.OwnedParticipant\"2\n\x17ParticipantDisconnected\x12\x17\n\x0fparticipant_sid\x18\x01 \x01(\t\"(\n\x13LocalTrackPublished\x12\x11\n\ttrack_sid\x18\x01 \x01(\t\"0\n\x15LocalTrackUnpublished\x12\x17\n\x0fpublication_sid\x18\x01 \x01(\t\"d\n\x0eTrackPublished\x12\x17\n\x0fparticipant_sid\x18\x01 \x01(\t\x12\x39\n\x0bpublication\x18\x02 \x01(\x0b\x32$.livekit.proto.OwnedTrackPublication\"D\n\x10TrackUnpublished\x12\x17\n\x0fparticipant_sid\x18\x01 \x01(\t\x12\x17\n\x0fpublication_sid\x18\x02 \x01(\t\"T\n\x0fTrackSubscribed\x12\x17\n\x0fparticipant_sid\x18\x01 \x01(\t\x12(\n\x05track\x18\x02 \x01(\x0b\x32\x19.livekit.proto.OwnedTrack\"?\n\x11TrackUnsubscribed\x12\x17\n\x0fparticipant_sid\x18\x01 \x01(\t\x12\x11\n\ttrack_sid\x18\x02 \x01(\t\"T\n\x17TrackSubscriptionFailed\x12\x17\n\x0fparticipant_sid\x18\x01 \x01(\t\x12\x11\n\ttrack_sid\x18\x02 \x01(\t\x12\r\n\x05\x65rror\x18\x03 \x01(\t\"8\n\nTrackMuted\x12\x17\n\x0fparticipant_sid\x18\x01 \x01(\t\x12\x11\n\ttrack_sid\x18\x02 \x01(\t\":\n\x0cTrackUnmuted\x12\x17\n\x0fparticipant_sid\x18\x01 \x01(\t\x12\x11\n\ttrack_sid\x18\x02 \x01(\t\"Z\n\x10\x45\x32\x65\x65StateChanged\x12\x17\n\x0fparticipant_sid\x18\x01 \x01(\t\x12-\n\x05state\x18\x02 \x01(\x0e\x32\x1e.livekit.proto.EncryptionState\"1\n\x15\x41\x63tiveSpeakersChanged\x12\x18\n\x10participant_sids\x18\x01 \x03(\t\"\'\n\x13RoomMetadataChanged\x12\x10\n\x08metadata\x18\x01 \x01(\t\"G\n\x1aParticipantMetadataChanged\x12\x17\n\x0fparticipant_sid\x18\x01 \x01(\t\x12\x10\n\x08metadata\x18\x02 \x01(\t\"?\n\x16ParticipantNameChanged\x12\x17\n\x0fparticipant_sid\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\"f\n\x18\x43onnectionQualityChanged\x12\x17\n\x0fparticipant_sid\x18\x01 \x01(\t\x12\x31\n\x07quality\x18\x02 \x01(\x0e\x32 .livekit.proto.ConnectionQuality\"\x97\x01\n\x0c\x44\x61taReceived\x12(\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x1a.livekit.proto.OwnedBuffer\x12\x1c\n\x0fparticipant_sid\x18\x02 \x01(\tH\x00\x88\x01\x01\x12+\n\x04kind\x18\x03 \x01(\x0e\x32\x1d.livekit.proto.DataPacketKindB\x12\n\x10_participant_sid\"G\n\x16\x43onnectionStateChanged\x12-\n\x05state\x18\x01 \x01(\x0e\x32\x1e.livekit.proto.ConnectionState\"\x0b\n\tConnected\"\x0e\n\x0c\x44isconnected\"\x0e\n\x0cReconnecting\"\r\n\x0bReconnected\"\t\n\x07RoomEOS*P\n\x10IceTransportType\x12\x13\n\x0fTRANSPORT_RELAY\x10\x00\x12\x14\n\x10TRANSPORT_NOHOST\x10\x01\x12\x11\n\rTRANSPORT_ALL\x10\x02*C\n\x18\x43ontinualGatheringPolicy\x12\x0f\n\x0bGATHER_ONCE\x10\x00\x12\x16\n\x12GATHER_CONTINUALLY\x10\x01*N\n\x11\x43onnectionQuality\x12\x10\n\x0cQUALITY_POOR\x10\x00\x12\x10\n\x0cQUALITY_GOOD\x10\x01\x12\x15\n\x11QUALITY_EXCELLENT\x10\x02*S\n\x0f\x43onnectionState\x12\x15\n\x11\x43ONN_DISCONNECTED\x10\x00\x12\x12\n\x0e\x43ONN_CONNECTED\x10\x01\x12\x15\n\x11\x43ONN_RECONNECTING\x10\x02*3\n\x0e\x44\x61taPacketKind\x12\x0e\n\nKIND_LOSSY\x10\x00\x12\x11\n\rKIND_RELIABLE\x10\x01\x42\x10\xaa\x02\rLiveKit.Protob\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'room_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\252\002\rLiveKit.Proto' - _globals['_ICETRANSPORTTYPE']._serialized_start=6186 - _globals['_ICETRANSPORTTYPE']._serialized_end=6266 - _globals['_CONTINUALGATHERINGPOLICY']._serialized_start=6268 - _globals['_CONTINUALGATHERINGPOLICY']._serialized_end=6335 - _globals['_CONNECTIONQUALITY']._serialized_start=6337 - _globals['_CONNECTIONQUALITY']._serialized_end=6415 - _globals['_CONNECTIONSTATE']._serialized_start=6417 - _globals['_CONNECTIONSTATE']._serialized_end=6500 - _globals['_DATAPACKETKIND']._serialized_start=6502 - _globals['_DATAPACKETKIND']._serialized_end=6553 - _globals['_CONNECTREQUEST']._serialized_start=106 - _globals['_CONNECTREQUEST']._serialized_end=195 - _globals['_CONNECTRESPONSE']._serialized_start=197 - _globals['_CONNECTRESPONSE']._serialized_end=232 - _globals['_CONNECTCALLBACK']._serialized_start=235 - _globals['_CONNECTCALLBACK']._serialized_end=616 - _globals['_CONNECTCALLBACK_PARTICIPANTWITHTRACKS']._serialized_start=469 - _globals['_CONNECTCALLBACK_PARTICIPANTWITHTRACKS']._serialized_end=606 - _globals['_DISCONNECTREQUEST']._serialized_start=618 - _globals['_DISCONNECTREQUEST']._serialized_end=658 - _globals['_DISCONNECTRESPONSE']._serialized_start=660 - _globals['_DISCONNECTRESPONSE']._serialized_end=698 - _globals['_DISCONNECTCALLBACK']._serialized_start=700 - _globals['_DISCONNECTCALLBACK']._serialized_end=738 - _globals['_PUBLISHTRACKREQUEST']._serialized_start=741 - _globals['_PUBLISHTRACKREQUEST']._serialized_end=871 - _globals['_PUBLISHTRACKRESPONSE']._serialized_start=873 - _globals['_PUBLISHTRACKRESPONSE']._serialized_end=913 - _globals['_PUBLISHTRACKCALLBACK']._serialized_start=916 - _globals['_PUBLISHTRACKCALLBACK']._serialized_end=1045 - _globals['_UNPUBLISHTRACKREQUEST']._serialized_start=1047 - _globals['_UNPUBLISHTRACKREQUEST']._serialized_end=1150 - _globals['_UNPUBLISHTRACKRESPONSE']._serialized_start=1152 - _globals['_UNPUBLISHTRACKRESPONSE']._serialized_end=1194 - _globals['_UNPUBLISHTRACKCALLBACK']._serialized_start=1196 - _globals['_UNPUBLISHTRACKCALLBACK']._serialized_end=1268 - _globals['_PUBLISHDATAREQUEST']._serialized_start=1271 - _globals['_PUBLISHDATAREQUEST']._serialized_end=1432 - _globals['_PUBLISHDATARESPONSE']._serialized_start=1434 - _globals['_PUBLISHDATARESPONSE']._serialized_end=1473 - _globals['_PUBLISHDATACALLBACK']._serialized_start=1475 - _globals['_PUBLISHDATACALLBACK']._serialized_end=1544 - _globals['_UPDATELOCALMETADATAREQUEST']._serialized_start=1546 - _globals['_UPDATELOCALMETADATAREQUEST']._serialized_end=1626 - _globals['_UPDATELOCALMETADATARESPONSE']._serialized_start=1628 - _globals['_UPDATELOCALMETADATARESPONSE']._serialized_end=1675 - _globals['_UPDATELOCALMETADATACALLBACK']._serialized_start=1677 - _globals['_UPDATELOCALMETADATACALLBACK']._serialized_end=1724 - _globals['_UPDATELOCALNAMEREQUEST']._serialized_start=1726 - _globals['_UPDATELOCALNAMEREQUEST']._serialized_end=1798 - _globals['_UPDATELOCALNAMERESPONSE']._serialized_start=1800 - _globals['_UPDATELOCALNAMERESPONSE']._serialized_end=1843 - _globals['_UPDATELOCALNAMECALLBACK']._serialized_start=1845 - _globals['_UPDATELOCALNAMECALLBACK']._serialized_end=1888 - _globals['_SETSUBSCRIBEDREQUEST']._serialized_start=1890 - _globals['_SETSUBSCRIBEDREQUEST']._serialized_end=1959 - _globals['_SETSUBSCRIBEDRESPONSE']._serialized_start=1961 - _globals['_SETSUBSCRIBEDRESPONSE']._serialized_end=1984 - _globals['_VIDEOENCODING']._serialized_start=1986 - _globals['_VIDEOENCODING']._serialized_end=2045 - _globals['_AUDIOENCODING']._serialized_start=2047 - _globals['_AUDIOENCODING']._serialized_end=2083 - _globals['_TRACKPUBLISHOPTIONS']._serialized_start=2086 - _globals['_TRACKPUBLISHOPTIONS']._serialized_end=2352 - _globals['_ICESERVER']._serialized_start=2354 - _globals['_ICESERVER']._serialized_end=2415 - _globals['_RTCCONFIG']._serialized_start=2418 - _globals['_RTCCONFIG']._serialized_end=2678 - _globals['_ROOMOPTIONS']._serialized_start=2681 - _globals['_ROOMOPTIONS']._serialized_end=2883 - _globals['_BUFFERINFO']._serialized_start=2885 - _globals['_BUFFERINFO']._serialized_end=2933 - _globals['_OWNEDBUFFER']._serialized_start=2935 - _globals['_OWNEDBUFFER']._serialized_end=3036 - _globals['_ROOMEVENT']._serialized_start=3039 - _globals['_ROOMEVENT']._serialized_end=4562 - _globals['_ROOMINFO']._serialized_start=4564 - _globals['_ROOMINFO']._serialized_end=4619 - _globals['_OWNEDROOM']._serialized_start=4621 - _globals['_OWNEDROOM']._serialized_end=4718 - _globals['_PARTICIPANTCONNECTED']._serialized_start=4720 - _globals['_PARTICIPANTCONNECTED']._serialized_end=4789 - _globals['_PARTICIPANTDISCONNECTED']._serialized_start=4791 - _globals['_PARTICIPANTDISCONNECTED']._serialized_end=4841 - _globals['_LOCALTRACKPUBLISHED']._serialized_start=4843 - _globals['_LOCALTRACKPUBLISHED']._serialized_end=4883 - _globals['_LOCALTRACKUNPUBLISHED']._serialized_start=4885 - _globals['_LOCALTRACKUNPUBLISHED']._serialized_end=4933 - _globals['_TRACKPUBLISHED']._serialized_start=4935 - _globals['_TRACKPUBLISHED']._serialized_end=5035 - _globals['_TRACKUNPUBLISHED']._serialized_start=5037 - _globals['_TRACKUNPUBLISHED']._serialized_end=5105 - _globals['_TRACKSUBSCRIBED']._serialized_start=5107 - _globals['_TRACKSUBSCRIBED']._serialized_end=5191 - _globals['_TRACKUNSUBSCRIBED']._serialized_start=5193 - _globals['_TRACKUNSUBSCRIBED']._serialized_end=5256 - _globals['_TRACKSUBSCRIPTIONFAILED']._serialized_start=5258 - _globals['_TRACKSUBSCRIPTIONFAILED']._serialized_end=5342 - _globals['_TRACKMUTED']._serialized_start=5344 - _globals['_TRACKMUTED']._serialized_end=5400 - _globals['_TRACKUNMUTED']._serialized_start=5402 - _globals['_TRACKUNMUTED']._serialized_end=5460 - _globals['_E2EESTATECHANGED']._serialized_start=5462 - _globals['_E2EESTATECHANGED']._serialized_end=5552 - _globals['_ACTIVESPEAKERSCHANGED']._serialized_start=5554 - _globals['_ACTIVESPEAKERSCHANGED']._serialized_end=5603 - _globals['_ROOMMETADATACHANGED']._serialized_start=5605 - _globals['_ROOMMETADATACHANGED']._serialized_end=5644 - _globals['_PARTICIPANTMETADATACHANGED']._serialized_start=5646 - _globals['_PARTICIPANTMETADATACHANGED']._serialized_end=5717 - _globals['_PARTICIPANTNAMECHANGED']._serialized_start=5719 - _globals['_PARTICIPANTNAMECHANGED']._serialized_end=5782 - _globals['_CONNECTIONQUALITYCHANGED']._serialized_start=5784 - _globals['_CONNECTIONQUALITYCHANGED']._serialized_end=5886 - _globals['_DATARECEIVED']._serialized_start=5889 - _globals['_DATARECEIVED']._serialized_end=6040 - _globals['_CONNECTIONSTATECHANGED']._serialized_start=6042 - _globals['_CONNECTIONSTATECHANGED']._serialized_end=6113 - _globals['_CONNECTED']._serialized_start=6115 - _globals['_CONNECTED']._serialized_end=6126 - _globals['_DISCONNECTED']._serialized_start=6128 - _globals['_DISCONNECTED']._serialized_end=6142 - _globals['_RECONNECTING']._serialized_start=6144 - _globals['_RECONNECTING']._serialized_end=6158 - _globals['_RECONNECTED']._serialized_start=6160 - _globals['_RECONNECTED']._serialized_end=6173 - _globals['_ROOMEOS']._serialized_start=6175 - _globals['_ROOMEOS']._serialized_end=6184 -# @@protoc_insertion_point(module_scope) diff --git a/livekit-rtc/livekit/rtc/_proto/room_pb2.pyi b/livekit-rtc/livekit/rtc/_proto/room_pb2.pyi deleted file mode 100644 index f7777fb0..00000000 --- a/livekit-rtc/livekit/rtc/_proto/room_pb2.pyi +++ /dev/null @@ -1,1328 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -Copyright 2023 LiveKit, Inc. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -""" -import builtins -import collections.abc -from . import e2ee_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.internal.enum_type_wrapper -import google.protobuf.message -from . import handle_pb2 -from . import participant_pb2 -import sys -from . import track_pb2 -import typing -from . import video_frame_pb2 - -if sys.version_info >= (3, 10): - import typing as typing_extensions -else: - import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor - -class _IceTransportType: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType - -class _IceTransportTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_IceTransportType.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - TRANSPORT_RELAY: _IceTransportType.ValueType # 0 - TRANSPORT_NOHOST: _IceTransportType.ValueType # 1 - TRANSPORT_ALL: _IceTransportType.ValueType # 2 - -class IceTransportType(_IceTransportType, metaclass=_IceTransportTypeEnumTypeWrapper): ... - -TRANSPORT_RELAY: IceTransportType.ValueType # 0 -TRANSPORT_NOHOST: IceTransportType.ValueType # 1 -TRANSPORT_ALL: IceTransportType.ValueType # 2 -global___IceTransportType = IceTransportType - -class _ContinualGatheringPolicy: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType - -class _ContinualGatheringPolicyEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ContinualGatheringPolicy.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - GATHER_ONCE: _ContinualGatheringPolicy.ValueType # 0 - GATHER_CONTINUALLY: _ContinualGatheringPolicy.ValueType # 1 - -class ContinualGatheringPolicy(_ContinualGatheringPolicy, metaclass=_ContinualGatheringPolicyEnumTypeWrapper): ... - -GATHER_ONCE: ContinualGatheringPolicy.ValueType # 0 -GATHER_CONTINUALLY: ContinualGatheringPolicy.ValueType # 1 -global___ContinualGatheringPolicy = ContinualGatheringPolicy - -class _ConnectionQuality: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType - -class _ConnectionQualityEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ConnectionQuality.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - QUALITY_POOR: _ConnectionQuality.ValueType # 0 - QUALITY_GOOD: _ConnectionQuality.ValueType # 1 - QUALITY_EXCELLENT: _ConnectionQuality.ValueType # 2 - -class ConnectionQuality(_ConnectionQuality, metaclass=_ConnectionQualityEnumTypeWrapper): - """ - Room - """ - -QUALITY_POOR: ConnectionQuality.ValueType # 0 -QUALITY_GOOD: ConnectionQuality.ValueType # 1 -QUALITY_EXCELLENT: ConnectionQuality.ValueType # 2 -global___ConnectionQuality = ConnectionQuality - -class _ConnectionState: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType - -class _ConnectionStateEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ConnectionState.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - CONN_DISCONNECTED: _ConnectionState.ValueType # 0 - CONN_CONNECTED: _ConnectionState.ValueType # 1 - CONN_RECONNECTING: _ConnectionState.ValueType # 2 - -class ConnectionState(_ConnectionState, metaclass=_ConnectionStateEnumTypeWrapper): ... - -CONN_DISCONNECTED: ConnectionState.ValueType # 0 -CONN_CONNECTED: ConnectionState.ValueType # 1 -CONN_RECONNECTING: ConnectionState.ValueType # 2 -global___ConnectionState = ConnectionState - -class _DataPacketKind: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType - -class _DataPacketKindEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_DataPacketKind.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - KIND_LOSSY: _DataPacketKind.ValueType # 0 - KIND_RELIABLE: _DataPacketKind.ValueType # 1 - -class DataPacketKind(_DataPacketKind, metaclass=_DataPacketKindEnumTypeWrapper): ... - -KIND_LOSSY: DataPacketKind.ValueType # 0 -KIND_RELIABLE: DataPacketKind.ValueType # 1 -global___DataPacketKind = DataPacketKind - -@typing_extensions.final -class ConnectRequest(google.protobuf.message.Message): - """Connect to a new LiveKit room""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - URL_FIELD_NUMBER: builtins.int - TOKEN_FIELD_NUMBER: builtins.int - OPTIONS_FIELD_NUMBER: builtins.int - url: builtins.str - token: builtins.str - @property - def options(self) -> global___RoomOptions: ... - def __init__( - self, - *, - url: builtins.str = ..., - token: builtins.str = ..., - options: global___RoomOptions | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["options", b"options"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["options", b"options", "token", b"token", "url", b"url"]) -> None: ... - -global___ConnectRequest = ConnectRequest - -@typing_extensions.final -class ConnectResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int - def __init__( - self, - *, - async_id: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["async_id", b"async_id"]) -> None: ... - -global___ConnectResponse = ConnectResponse - -@typing_extensions.final -class ConnectCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - @typing_extensions.final - class ParticipantWithTracks(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PARTICIPANT_FIELD_NUMBER: builtins.int - PUBLICATIONS_FIELD_NUMBER: builtins.int - @property - def participant(self) -> participant_pb2.OwnedParticipant: ... - @property - def publications(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[track_pb2.OwnedTrackPublication]: - """TrackInfo are not needed here, if we're subscribed to a track, the FfiServer will send - a TrackSubscribed event - """ - def __init__( - self, - *, - participant: participant_pb2.OwnedParticipant | None = ..., - publications: collections.abc.Iterable[track_pb2.OwnedTrackPublication] | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["participant", b"participant"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["participant", b"participant", "publications", b"publications"]) -> None: ... - - ASYNC_ID_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - ROOM_FIELD_NUMBER: builtins.int - LOCAL_PARTICIPANT_FIELD_NUMBER: builtins.int - PARTICIPANTS_FIELD_NUMBER: builtins.int - async_id: builtins.int - error: builtins.str - @property - def room(self) -> global___OwnedRoom: ... - @property - def local_participant(self) -> participant_pb2.OwnedParticipant: ... - @property - def participants(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ConnectCallback.ParticipantWithTracks]: ... - def __init__( - self, - *, - async_id: builtins.int = ..., - error: builtins.str | None = ..., - room: global___OwnedRoom | None = ..., - local_participant: participant_pb2.OwnedParticipant | None = ..., - participants: collections.abc.Iterable[global___ConnectCallback.ParticipantWithTracks] | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["_error", b"_error", "error", b"error", "local_participant", b"local_participant", "room", b"room"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["_error", b"_error", "async_id", b"async_id", "error", b"error", "local_participant", b"local_participant", "participants", b"participants", "room", b"room"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["_error", b"_error"]) -> typing_extensions.Literal["error"] | None: ... - -global___ConnectCallback = ConnectCallback - -@typing_extensions.final -class DisconnectRequest(google.protobuf.message.Message): - """Disconnect from the a room""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ROOM_HANDLE_FIELD_NUMBER: builtins.int - room_handle: builtins.int - def __init__( - self, - *, - room_handle: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["room_handle", b"room_handle"]) -> None: ... - -global___DisconnectRequest = DisconnectRequest - -@typing_extensions.final -class DisconnectResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int - def __init__( - self, - *, - async_id: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["async_id", b"async_id"]) -> None: ... - -global___DisconnectResponse = DisconnectResponse - -@typing_extensions.final -class DisconnectCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int - def __init__( - self, - *, - async_id: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["async_id", b"async_id"]) -> None: ... - -global___DisconnectCallback = DisconnectCallback - -@typing_extensions.final -class PublishTrackRequest(google.protobuf.message.Message): - """Publish a track to the room""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int - TRACK_HANDLE_FIELD_NUMBER: builtins.int - OPTIONS_FIELD_NUMBER: builtins.int - local_participant_handle: builtins.int - track_handle: builtins.int - @property - def options(self) -> global___TrackPublishOptions: ... - def __init__( - self, - *, - local_participant_handle: builtins.int = ..., - track_handle: builtins.int = ..., - options: global___TrackPublishOptions | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["options", b"options"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["local_participant_handle", b"local_participant_handle", "options", b"options", "track_handle", b"track_handle"]) -> None: ... - -global___PublishTrackRequest = PublishTrackRequest - -@typing_extensions.final -class PublishTrackResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int - def __init__( - self, - *, - async_id: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["async_id", b"async_id"]) -> None: ... - -global___PublishTrackResponse = PublishTrackResponse - -@typing_extensions.final -class PublishTrackCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ASYNC_ID_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - PUBLICATION_FIELD_NUMBER: builtins.int - async_id: builtins.int - error: builtins.str - @property - def publication(self) -> track_pb2.OwnedTrackPublication: ... - def __init__( - self, - *, - async_id: builtins.int = ..., - error: builtins.str | None = ..., - publication: track_pb2.OwnedTrackPublication | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["_error", b"_error", "error", b"error", "publication", b"publication"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["_error", b"_error", "async_id", b"async_id", "error", b"error", "publication", b"publication"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["_error", b"_error"]) -> typing_extensions.Literal["error"] | None: ... - -global___PublishTrackCallback = PublishTrackCallback - -@typing_extensions.final -class UnpublishTrackRequest(google.protobuf.message.Message): - """Unpublish a track from the room""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int - TRACK_SID_FIELD_NUMBER: builtins.int - STOP_ON_UNPUBLISH_FIELD_NUMBER: builtins.int - local_participant_handle: builtins.int - track_sid: builtins.str - stop_on_unpublish: builtins.bool - def __init__( - self, - *, - local_participant_handle: builtins.int = ..., - track_sid: builtins.str = ..., - stop_on_unpublish: builtins.bool = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["local_participant_handle", b"local_participant_handle", "stop_on_unpublish", b"stop_on_unpublish", "track_sid", b"track_sid"]) -> None: ... - -global___UnpublishTrackRequest = UnpublishTrackRequest - -@typing_extensions.final -class UnpublishTrackResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int - def __init__( - self, - *, - async_id: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["async_id", b"async_id"]) -> None: ... - -global___UnpublishTrackResponse = UnpublishTrackResponse - -@typing_extensions.final -class UnpublishTrackCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ASYNC_ID_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - async_id: builtins.int - error: builtins.str - def __init__( - self, - *, - async_id: builtins.int = ..., - error: builtins.str | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["_error", b"_error", "error", b"error"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["_error", b"_error", "async_id", b"async_id", "error", b"error"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["_error", b"_error"]) -> typing_extensions.Literal["error"] | None: ... - -global___UnpublishTrackCallback = UnpublishTrackCallback - -@typing_extensions.final -class PublishDataRequest(google.protobuf.message.Message): - """Publish data to other participants""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int - DATA_PTR_FIELD_NUMBER: builtins.int - DATA_LEN_FIELD_NUMBER: builtins.int - KIND_FIELD_NUMBER: builtins.int - DESTINATION_SIDS_FIELD_NUMBER: builtins.int - local_participant_handle: builtins.int - data_ptr: builtins.int - data_len: builtins.int - kind: global___DataPacketKind.ValueType - @property - def destination_sids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: - """destination""" - def __init__( - self, - *, - local_participant_handle: builtins.int = ..., - data_ptr: builtins.int = ..., - data_len: builtins.int = ..., - kind: global___DataPacketKind.ValueType = ..., - destination_sids: collections.abc.Iterable[builtins.str] | None = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["data_len", b"data_len", "data_ptr", b"data_ptr", "destination_sids", b"destination_sids", "kind", b"kind", "local_participant_handle", b"local_participant_handle"]) -> None: ... - -global___PublishDataRequest = PublishDataRequest - -@typing_extensions.final -class PublishDataResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int - def __init__( - self, - *, - async_id: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["async_id", b"async_id"]) -> None: ... - -global___PublishDataResponse = PublishDataResponse - -@typing_extensions.final -class PublishDataCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ASYNC_ID_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - async_id: builtins.int - error: builtins.str - def __init__( - self, - *, - async_id: builtins.int = ..., - error: builtins.str | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["_error", b"_error", "error", b"error"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["_error", b"_error", "async_id", b"async_id", "error", b"error"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["_error", b"_error"]) -> typing_extensions.Literal["error"] | None: ... - -global___PublishDataCallback = PublishDataCallback - -@typing_extensions.final -class UpdateLocalMetadataRequest(google.protobuf.message.Message): - """Change the local participant's metadata""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int - METADATA_FIELD_NUMBER: builtins.int - local_participant_handle: builtins.int - metadata: builtins.str - def __init__( - self, - *, - local_participant_handle: builtins.int = ..., - metadata: builtins.str = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["local_participant_handle", b"local_participant_handle", "metadata", b"metadata"]) -> None: ... - -global___UpdateLocalMetadataRequest = UpdateLocalMetadataRequest - -@typing_extensions.final -class UpdateLocalMetadataResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int - def __init__( - self, - *, - async_id: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["async_id", b"async_id"]) -> None: ... - -global___UpdateLocalMetadataResponse = UpdateLocalMetadataResponse - -@typing_extensions.final -class UpdateLocalMetadataCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int - def __init__( - self, - *, - async_id: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["async_id", b"async_id"]) -> None: ... - -global___UpdateLocalMetadataCallback = UpdateLocalMetadataCallback - -@typing_extensions.final -class UpdateLocalNameRequest(google.protobuf.message.Message): - """Change the local participant's name""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - LOCAL_PARTICIPANT_HANDLE_FIELD_NUMBER: builtins.int - NAME_FIELD_NUMBER: builtins.int - local_participant_handle: builtins.int - name: builtins.str - def __init__( - self, - *, - local_participant_handle: builtins.int = ..., - name: builtins.str = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["local_participant_handle", b"local_participant_handle", "name", b"name"]) -> None: ... - -global___UpdateLocalNameRequest = UpdateLocalNameRequest - -@typing_extensions.final -class UpdateLocalNameResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int - def __init__( - self, - *, - async_id: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["async_id", b"async_id"]) -> None: ... - -global___UpdateLocalNameResponse = UpdateLocalNameResponse - -@typing_extensions.final -class UpdateLocalNameCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int - def __init__( - self, - *, - async_id: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["async_id", b"async_id"]) -> None: ... - -global___UpdateLocalNameCallback = UpdateLocalNameCallback - -@typing_extensions.final -class SetSubscribedRequest(google.protobuf.message.Message): - """Change the "desire" to subs2ribe to a track""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - SUBSCRIBE_FIELD_NUMBER: builtins.int - PUBLICATION_HANDLE_FIELD_NUMBER: builtins.int - subscribe: builtins.bool - publication_handle: builtins.int - def __init__( - self, - *, - subscribe: builtins.bool = ..., - publication_handle: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["publication_handle", b"publication_handle", "subscribe", b"subscribe"]) -> None: ... - -global___SetSubscribedRequest = SetSubscribedRequest - -@typing_extensions.final -class SetSubscribedResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - def __init__( - self, - ) -> None: ... - -global___SetSubscribedResponse = SetSubscribedResponse - -@typing_extensions.final -class VideoEncoding(google.protobuf.message.Message): - """ - Options - """ - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - MAX_BITRATE_FIELD_NUMBER: builtins.int - MAX_FRAMERATE_FIELD_NUMBER: builtins.int - max_bitrate: builtins.int - max_framerate: builtins.float - def __init__( - self, - *, - max_bitrate: builtins.int = ..., - max_framerate: builtins.float = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["max_bitrate", b"max_bitrate", "max_framerate", b"max_framerate"]) -> None: ... - -global___VideoEncoding = VideoEncoding - -@typing_extensions.final -class AudioEncoding(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - MAX_BITRATE_FIELD_NUMBER: builtins.int - max_bitrate: builtins.int - def __init__( - self, - *, - max_bitrate: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["max_bitrate", b"max_bitrate"]) -> None: ... - -global___AudioEncoding = AudioEncoding - -@typing_extensions.final -class TrackPublishOptions(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - VIDEO_ENCODING_FIELD_NUMBER: builtins.int - AUDIO_ENCODING_FIELD_NUMBER: builtins.int - VIDEO_CODEC_FIELD_NUMBER: builtins.int - DTX_FIELD_NUMBER: builtins.int - RED_FIELD_NUMBER: builtins.int - SIMULCAST_FIELD_NUMBER: builtins.int - SOURCE_FIELD_NUMBER: builtins.int - @property - def video_encoding(self) -> global___VideoEncoding: - """encodings are optional""" - @property - def audio_encoding(self) -> global___AudioEncoding: ... - video_codec: video_frame_pb2.VideoCodec.ValueType - dtx: builtins.bool - red: builtins.bool - simulcast: builtins.bool - source: track_pb2.TrackSource.ValueType - def __init__( - self, - *, - video_encoding: global___VideoEncoding | None = ..., - audio_encoding: global___AudioEncoding | None = ..., - video_codec: video_frame_pb2.VideoCodec.ValueType = ..., - dtx: builtins.bool = ..., - red: builtins.bool = ..., - simulcast: builtins.bool = ..., - source: track_pb2.TrackSource.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["audio_encoding", b"audio_encoding", "video_encoding", b"video_encoding"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["audio_encoding", b"audio_encoding", "dtx", b"dtx", "red", b"red", "simulcast", b"simulcast", "source", b"source", "video_codec", b"video_codec", "video_encoding", b"video_encoding"]) -> None: ... - -global___TrackPublishOptions = TrackPublishOptions - -@typing_extensions.final -class IceServer(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - URLS_FIELD_NUMBER: builtins.int - USERNAME_FIELD_NUMBER: builtins.int - PASSWORD_FIELD_NUMBER: builtins.int - @property - def urls(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... - username: builtins.str - password: builtins.str - def __init__( - self, - *, - urls: collections.abc.Iterable[builtins.str] | None = ..., - username: builtins.str = ..., - password: builtins.str = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["password", b"password", "urls", b"urls", "username", b"username"]) -> None: ... - -global___IceServer = IceServer - -@typing_extensions.final -class RtcConfig(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ICE_TRANSPORT_TYPE_FIELD_NUMBER: builtins.int - CONTINUAL_GATHERING_POLICY_FIELD_NUMBER: builtins.int - ICE_SERVERS_FIELD_NUMBER: builtins.int - ice_transport_type: global___IceTransportType.ValueType - continual_gathering_policy: global___ContinualGatheringPolicy.ValueType - @property - def ice_servers(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___IceServer]: - """empty fallback to default""" - def __init__( - self, - *, - ice_transport_type: global___IceTransportType.ValueType | None = ..., - continual_gathering_policy: global___ContinualGatheringPolicy.ValueType | None = ..., - ice_servers: collections.abc.Iterable[global___IceServer] | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["_continual_gathering_policy", b"_continual_gathering_policy", "_ice_transport_type", b"_ice_transport_type", "continual_gathering_policy", b"continual_gathering_policy", "ice_transport_type", b"ice_transport_type"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["_continual_gathering_policy", b"_continual_gathering_policy", "_ice_transport_type", b"_ice_transport_type", "continual_gathering_policy", b"continual_gathering_policy", "ice_servers", b"ice_servers", "ice_transport_type", b"ice_transport_type"]) -> None: ... - @typing.overload - def WhichOneof(self, oneof_group: typing_extensions.Literal["_continual_gathering_policy", b"_continual_gathering_policy"]) -> typing_extensions.Literal["continual_gathering_policy"] | None: ... - @typing.overload - def WhichOneof(self, oneof_group: typing_extensions.Literal["_ice_transport_type", b"_ice_transport_type"]) -> typing_extensions.Literal["ice_transport_type"] | None: ... - -global___RtcConfig = RtcConfig - -@typing_extensions.final -class RoomOptions(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - AUTO_SUBSCRIBE_FIELD_NUMBER: builtins.int - ADAPTIVE_STREAM_FIELD_NUMBER: builtins.int - DYNACAST_FIELD_NUMBER: builtins.int - E2EE_FIELD_NUMBER: builtins.int - RTC_CONFIG_FIELD_NUMBER: builtins.int - auto_subscribe: builtins.bool - adaptive_stream: builtins.bool - dynacast: builtins.bool - @property - def e2ee(self) -> e2ee_pb2.E2eeOptions: ... - @property - def rtc_config(self) -> global___RtcConfig: - """allow to setup a custom RtcConfiguration""" - def __init__( - self, - *, - auto_subscribe: builtins.bool = ..., - adaptive_stream: builtins.bool = ..., - dynacast: builtins.bool = ..., - e2ee: e2ee_pb2.E2eeOptions | None = ..., - rtc_config: global___RtcConfig | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["_e2ee", b"_e2ee", "_rtc_config", b"_rtc_config", "e2ee", b"e2ee", "rtc_config", b"rtc_config"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["_e2ee", b"_e2ee", "_rtc_config", b"_rtc_config", "adaptive_stream", b"adaptive_stream", "auto_subscribe", b"auto_subscribe", "dynacast", b"dynacast", "e2ee", b"e2ee", "rtc_config", b"rtc_config"]) -> None: ... - @typing.overload - def WhichOneof(self, oneof_group: typing_extensions.Literal["_e2ee", b"_e2ee"]) -> typing_extensions.Literal["e2ee"] | None: ... - @typing.overload - def WhichOneof(self, oneof_group: typing_extensions.Literal["_rtc_config", b"_rtc_config"]) -> typing_extensions.Literal["rtc_config"] | None: ... - -global___RoomOptions = RoomOptions - -@typing_extensions.final -class BufferInfo(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - DATA_PTR_FIELD_NUMBER: builtins.int - DATA_LEN_FIELD_NUMBER: builtins.int - data_ptr: builtins.int - data_len: builtins.int - def __init__( - self, - *, - data_ptr: builtins.int = ..., - data_len: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["data_len", b"data_len", "data_ptr", b"data_ptr"]) -> None: ... - -global___BufferInfo = BufferInfo - -@typing_extensions.final -class OwnedBuffer(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - HANDLE_FIELD_NUMBER: builtins.int - DATA_FIELD_NUMBER: builtins.int - @property - def handle(self) -> handle_pb2.FfiOwnedHandle: ... - @property - def data(self) -> global___BufferInfo: ... - def __init__( - self, - *, - handle: handle_pb2.FfiOwnedHandle | None = ..., - data: global___BufferInfo | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["data", b"data", "handle", b"handle"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["data", b"data", "handle", b"handle"]) -> None: ... - -global___OwnedBuffer = OwnedBuffer - -@typing_extensions.final -class RoomEvent(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ROOM_HANDLE_FIELD_NUMBER: builtins.int - PARTICIPANT_CONNECTED_FIELD_NUMBER: builtins.int - PARTICIPANT_DISCONNECTED_FIELD_NUMBER: builtins.int - LOCAL_TRACK_PUBLISHED_FIELD_NUMBER: builtins.int - LOCAL_TRACK_UNPUBLISHED_FIELD_NUMBER: builtins.int - TRACK_PUBLISHED_FIELD_NUMBER: builtins.int - TRACK_UNPUBLISHED_FIELD_NUMBER: builtins.int - TRACK_SUBSCRIBED_FIELD_NUMBER: builtins.int - TRACK_UNSUBSCRIBED_FIELD_NUMBER: builtins.int - TRACK_SUBSCRIPTION_FAILED_FIELD_NUMBER: builtins.int - TRACK_MUTED_FIELD_NUMBER: builtins.int - TRACK_UNMUTED_FIELD_NUMBER: builtins.int - ACTIVE_SPEAKERS_CHANGED_FIELD_NUMBER: builtins.int - ROOM_METADATA_CHANGED_FIELD_NUMBER: builtins.int - PARTICIPANT_METADATA_CHANGED_FIELD_NUMBER: builtins.int - PARTICIPANT_NAME_CHANGED_FIELD_NUMBER: builtins.int - CONNECTION_QUALITY_CHANGED_FIELD_NUMBER: builtins.int - DATA_RECEIVED_FIELD_NUMBER: builtins.int - CONNECTION_STATE_CHANGED_FIELD_NUMBER: builtins.int - DISCONNECTED_FIELD_NUMBER: builtins.int - RECONNECTING_FIELD_NUMBER: builtins.int - RECONNECTED_FIELD_NUMBER: builtins.int - E2EE_STATE_CHANGED_FIELD_NUMBER: builtins.int - EOS_FIELD_NUMBER: builtins.int - room_handle: builtins.int - @property - def participant_connected(self) -> global___ParticipantConnected: ... - @property - def participant_disconnected(self) -> global___ParticipantDisconnected: ... - @property - def local_track_published(self) -> global___LocalTrackPublished: ... - @property - def local_track_unpublished(self) -> global___LocalTrackUnpublished: ... - @property - def track_published(self) -> global___TrackPublished: ... - @property - def track_unpublished(self) -> global___TrackUnpublished: ... - @property - def track_subscribed(self) -> global___TrackSubscribed: ... - @property - def track_unsubscribed(self) -> global___TrackUnsubscribed: ... - @property - def track_subscription_failed(self) -> global___TrackSubscriptionFailed: ... - @property - def track_muted(self) -> global___TrackMuted: ... - @property - def track_unmuted(self) -> global___TrackUnmuted: ... - @property - def active_speakers_changed(self) -> global___ActiveSpeakersChanged: ... - @property - def room_metadata_changed(self) -> global___RoomMetadataChanged: ... - @property - def participant_metadata_changed(self) -> global___ParticipantMetadataChanged: ... - @property - def participant_name_changed(self) -> global___ParticipantNameChanged: ... - @property - def connection_quality_changed(self) -> global___ConnectionQualityChanged: ... - @property - def data_received(self) -> global___DataReceived: ... - @property - def connection_state_changed(self) -> global___ConnectionStateChanged: ... - @property - def disconnected(self) -> global___Disconnected: - """Connected connected = 20;""" - @property - def reconnecting(self) -> global___Reconnecting: ... - @property - def reconnected(self) -> global___Reconnected: ... - @property - def e2ee_state_changed(self) -> global___E2eeStateChanged: ... - @property - def eos(self) -> global___RoomEOS: - """The stream of room events has ended""" - def __init__( - self, - *, - room_handle: builtins.int = ..., - participant_connected: global___ParticipantConnected | None = ..., - participant_disconnected: global___ParticipantDisconnected | None = ..., - local_track_published: global___LocalTrackPublished | None = ..., - local_track_unpublished: global___LocalTrackUnpublished | None = ..., - track_published: global___TrackPublished | None = ..., - track_unpublished: global___TrackUnpublished | None = ..., - track_subscribed: global___TrackSubscribed | None = ..., - track_unsubscribed: global___TrackUnsubscribed | None = ..., - track_subscription_failed: global___TrackSubscriptionFailed | None = ..., - track_muted: global___TrackMuted | None = ..., - track_unmuted: global___TrackUnmuted | None = ..., - active_speakers_changed: global___ActiveSpeakersChanged | None = ..., - room_metadata_changed: global___RoomMetadataChanged | None = ..., - participant_metadata_changed: global___ParticipantMetadataChanged | None = ..., - participant_name_changed: global___ParticipantNameChanged | None = ..., - connection_quality_changed: global___ConnectionQualityChanged | None = ..., - data_received: global___DataReceived | None = ..., - connection_state_changed: global___ConnectionStateChanged | None = ..., - disconnected: global___Disconnected | None = ..., - reconnecting: global___Reconnecting | None = ..., - reconnected: global___Reconnected | None = ..., - e2ee_state_changed: global___E2eeStateChanged | None = ..., - eos: global___RoomEOS | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["active_speakers_changed", b"active_speakers_changed", "connection_quality_changed", b"connection_quality_changed", "connection_state_changed", b"connection_state_changed", "data_received", b"data_received", "disconnected", b"disconnected", "e2ee_state_changed", b"e2ee_state_changed", "eos", b"eos", "local_track_published", b"local_track_published", "local_track_unpublished", b"local_track_unpublished", "message", b"message", "participant_connected", b"participant_connected", "participant_disconnected", b"participant_disconnected", "participant_metadata_changed", b"participant_metadata_changed", "participant_name_changed", b"participant_name_changed", "reconnected", b"reconnected", "reconnecting", b"reconnecting", "room_metadata_changed", b"room_metadata_changed", "track_muted", b"track_muted", "track_published", b"track_published", "track_subscribed", b"track_subscribed", "track_subscription_failed", b"track_subscription_failed", "track_unmuted", b"track_unmuted", "track_unpublished", b"track_unpublished", "track_unsubscribed", b"track_unsubscribed"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["active_speakers_changed", b"active_speakers_changed", "connection_quality_changed", b"connection_quality_changed", "connection_state_changed", b"connection_state_changed", "data_received", b"data_received", "disconnected", b"disconnected", "e2ee_state_changed", b"e2ee_state_changed", "eos", b"eos", "local_track_published", b"local_track_published", "local_track_unpublished", b"local_track_unpublished", "message", b"message", "participant_connected", b"participant_connected", "participant_disconnected", b"participant_disconnected", "participant_metadata_changed", b"participant_metadata_changed", "participant_name_changed", b"participant_name_changed", "reconnected", b"reconnected", "reconnecting", b"reconnecting", "room_handle", b"room_handle", "room_metadata_changed", b"room_metadata_changed", "track_muted", b"track_muted", "track_published", b"track_published", "track_subscribed", b"track_subscribed", "track_subscription_failed", b"track_subscription_failed", "track_unmuted", b"track_unmuted", "track_unpublished", b"track_unpublished", "track_unsubscribed", b"track_unsubscribed"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["message", b"message"]) -> typing_extensions.Literal["participant_connected", "participant_disconnected", "local_track_published", "local_track_unpublished", "track_published", "track_unpublished", "track_subscribed", "track_unsubscribed", "track_subscription_failed", "track_muted", "track_unmuted", "active_speakers_changed", "room_metadata_changed", "participant_metadata_changed", "participant_name_changed", "connection_quality_changed", "data_received", "connection_state_changed", "disconnected", "reconnecting", "reconnected", "e2ee_state_changed", "eos"] | None: ... - -global___RoomEvent = RoomEvent - -@typing_extensions.final -class RoomInfo(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - SID_FIELD_NUMBER: builtins.int - NAME_FIELD_NUMBER: builtins.int - METADATA_FIELD_NUMBER: builtins.int - sid: builtins.str - name: builtins.str - metadata: builtins.str - def __init__( - self, - *, - sid: builtins.str = ..., - name: builtins.str = ..., - metadata: builtins.str = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["metadata", b"metadata", "name", b"name", "sid", b"sid"]) -> None: ... - -global___RoomInfo = RoomInfo - -@typing_extensions.final -class OwnedRoom(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - HANDLE_FIELD_NUMBER: builtins.int - INFO_FIELD_NUMBER: builtins.int - @property - def handle(self) -> handle_pb2.FfiOwnedHandle: ... - @property - def info(self) -> global___RoomInfo: ... - def __init__( - self, - *, - handle: handle_pb2.FfiOwnedHandle | None = ..., - info: global___RoomInfo | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["handle", b"handle", "info", b"info"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["handle", b"handle", "info", b"info"]) -> None: ... - -global___OwnedRoom = OwnedRoom - -@typing_extensions.final -class ParticipantConnected(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - INFO_FIELD_NUMBER: builtins.int - @property - def info(self) -> participant_pb2.OwnedParticipant: ... - def __init__( - self, - *, - info: participant_pb2.OwnedParticipant | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["info", b"info"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["info", b"info"]) -> None: ... - -global___ParticipantConnected = ParticipantConnected - -@typing_extensions.final -class ParticipantDisconnected(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PARTICIPANT_SID_FIELD_NUMBER: builtins.int - participant_sid: builtins.str - def __init__( - self, - *, - participant_sid: builtins.str = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["participant_sid", b"participant_sid"]) -> None: ... - -global___ParticipantDisconnected = ParticipantDisconnected - -@typing_extensions.final -class LocalTrackPublished(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - TRACK_SID_FIELD_NUMBER: builtins.int - track_sid: builtins.str - """The TrackPublicationInfo comes from the PublishTrack response - and the FfiClient musts wait for it before firing this event - """ - def __init__( - self, - *, - track_sid: builtins.str = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["track_sid", b"track_sid"]) -> None: ... - -global___LocalTrackPublished = LocalTrackPublished - -@typing_extensions.final -class LocalTrackUnpublished(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PUBLICATION_SID_FIELD_NUMBER: builtins.int - publication_sid: builtins.str - def __init__( - self, - *, - publication_sid: builtins.str = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["publication_sid", b"publication_sid"]) -> None: ... - -global___LocalTrackUnpublished = LocalTrackUnpublished - -@typing_extensions.final -class TrackPublished(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PARTICIPANT_SID_FIELD_NUMBER: builtins.int - PUBLICATION_FIELD_NUMBER: builtins.int - participant_sid: builtins.str - @property - def publication(self) -> track_pb2.OwnedTrackPublication: ... - def __init__( - self, - *, - participant_sid: builtins.str = ..., - publication: track_pb2.OwnedTrackPublication | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["publication", b"publication"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["participant_sid", b"participant_sid", "publication", b"publication"]) -> None: ... - -global___TrackPublished = TrackPublished - -@typing_extensions.final -class TrackUnpublished(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PARTICIPANT_SID_FIELD_NUMBER: builtins.int - PUBLICATION_SID_FIELD_NUMBER: builtins.int - participant_sid: builtins.str - publication_sid: builtins.str - def __init__( - self, - *, - participant_sid: builtins.str = ..., - publication_sid: builtins.str = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["participant_sid", b"participant_sid", "publication_sid", b"publication_sid"]) -> None: ... - -global___TrackUnpublished = TrackUnpublished - -@typing_extensions.final -class TrackSubscribed(google.protobuf.message.Message): - """Publication isn't needed for subscription events on the FFI - The FFI will retrieve the publication using the Track sid - """ - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PARTICIPANT_SID_FIELD_NUMBER: builtins.int - TRACK_FIELD_NUMBER: builtins.int - participant_sid: builtins.str - @property - def track(self) -> track_pb2.OwnedTrack: ... - def __init__( - self, - *, - participant_sid: builtins.str = ..., - track: track_pb2.OwnedTrack | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["track", b"track"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["participant_sid", b"participant_sid", "track", b"track"]) -> None: ... - -global___TrackSubscribed = TrackSubscribed - -@typing_extensions.final -class TrackUnsubscribed(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PARTICIPANT_SID_FIELD_NUMBER: builtins.int - TRACK_SID_FIELD_NUMBER: builtins.int - participant_sid: builtins.str - """The FFI language can dispose/remove the VideoSink here""" - track_sid: builtins.str - def __init__( - self, - *, - participant_sid: builtins.str = ..., - track_sid: builtins.str = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["participant_sid", b"participant_sid", "track_sid", b"track_sid"]) -> None: ... - -global___TrackUnsubscribed = TrackUnsubscribed - -@typing_extensions.final -class TrackSubscriptionFailed(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PARTICIPANT_SID_FIELD_NUMBER: builtins.int - TRACK_SID_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - participant_sid: builtins.str - track_sid: builtins.str - error: builtins.str - def __init__( - self, - *, - participant_sid: builtins.str = ..., - track_sid: builtins.str = ..., - error: builtins.str = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["error", b"error", "participant_sid", b"participant_sid", "track_sid", b"track_sid"]) -> None: ... - -global___TrackSubscriptionFailed = TrackSubscriptionFailed - -@typing_extensions.final -class TrackMuted(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PARTICIPANT_SID_FIELD_NUMBER: builtins.int - TRACK_SID_FIELD_NUMBER: builtins.int - participant_sid: builtins.str - track_sid: builtins.str - def __init__( - self, - *, - participant_sid: builtins.str = ..., - track_sid: builtins.str = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["participant_sid", b"participant_sid", "track_sid", b"track_sid"]) -> None: ... - -global___TrackMuted = TrackMuted - -@typing_extensions.final -class TrackUnmuted(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PARTICIPANT_SID_FIELD_NUMBER: builtins.int - TRACK_SID_FIELD_NUMBER: builtins.int - participant_sid: builtins.str - track_sid: builtins.str - def __init__( - self, - *, - participant_sid: builtins.str = ..., - track_sid: builtins.str = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["participant_sid", b"participant_sid", "track_sid", b"track_sid"]) -> None: ... - -global___TrackUnmuted = TrackUnmuted - -@typing_extensions.final -class E2eeStateChanged(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PARTICIPANT_SID_FIELD_NUMBER: builtins.int - STATE_FIELD_NUMBER: builtins.int - participant_sid: builtins.str - """Using sid instead of identity for ffi communication""" - state: e2ee_pb2.EncryptionState.ValueType - def __init__( - self, - *, - participant_sid: builtins.str = ..., - state: e2ee_pb2.EncryptionState.ValueType = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["participant_sid", b"participant_sid", "state", b"state"]) -> None: ... - -global___E2eeStateChanged = E2eeStateChanged - -@typing_extensions.final -class ActiveSpeakersChanged(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PARTICIPANT_SIDS_FIELD_NUMBER: builtins.int - @property - def participant_sids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... - def __init__( - self, - *, - participant_sids: collections.abc.Iterable[builtins.str] | None = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["participant_sids", b"participant_sids"]) -> None: ... - -global___ActiveSpeakersChanged = ActiveSpeakersChanged - -@typing_extensions.final -class RoomMetadataChanged(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - METADATA_FIELD_NUMBER: builtins.int - metadata: builtins.str - def __init__( - self, - *, - metadata: builtins.str = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["metadata", b"metadata"]) -> None: ... - -global___RoomMetadataChanged = RoomMetadataChanged - -@typing_extensions.final -class ParticipantMetadataChanged(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PARTICIPANT_SID_FIELD_NUMBER: builtins.int - METADATA_FIELD_NUMBER: builtins.int - participant_sid: builtins.str - metadata: builtins.str - def __init__( - self, - *, - participant_sid: builtins.str = ..., - metadata: builtins.str = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["metadata", b"metadata", "participant_sid", b"participant_sid"]) -> None: ... - -global___ParticipantMetadataChanged = ParticipantMetadataChanged - -@typing_extensions.final -class ParticipantNameChanged(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PARTICIPANT_SID_FIELD_NUMBER: builtins.int - NAME_FIELD_NUMBER: builtins.int - participant_sid: builtins.str - name: builtins.str - def __init__( - self, - *, - participant_sid: builtins.str = ..., - name: builtins.str = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["name", b"name", "participant_sid", b"participant_sid"]) -> None: ... - -global___ParticipantNameChanged = ParticipantNameChanged - -@typing_extensions.final -class ConnectionQualityChanged(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PARTICIPANT_SID_FIELD_NUMBER: builtins.int - QUALITY_FIELD_NUMBER: builtins.int - participant_sid: builtins.str - quality: global___ConnectionQuality.ValueType - def __init__( - self, - *, - participant_sid: builtins.str = ..., - quality: global___ConnectionQuality.ValueType = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["participant_sid", b"participant_sid", "quality", b"quality"]) -> None: ... - -global___ConnectionQualityChanged = ConnectionQualityChanged - -@typing_extensions.final -class DataReceived(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - DATA_FIELD_NUMBER: builtins.int - PARTICIPANT_SID_FIELD_NUMBER: builtins.int - KIND_FIELD_NUMBER: builtins.int - @property - def data(self) -> global___OwnedBuffer: ... - participant_sid: builtins.str - """Can be empty if the data is sent a server SDK""" - kind: global___DataPacketKind.ValueType - def __init__( - self, - *, - data: global___OwnedBuffer | None = ..., - participant_sid: builtins.str | None = ..., - kind: global___DataPacketKind.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["_participant_sid", b"_participant_sid", "data", b"data", "participant_sid", b"participant_sid"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["_participant_sid", b"_participant_sid", "data", b"data", "kind", b"kind", "participant_sid", b"participant_sid"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["_participant_sid", b"_participant_sid"]) -> typing_extensions.Literal["participant_sid"] | None: ... - -global___DataReceived = DataReceived - -@typing_extensions.final -class ConnectionStateChanged(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - STATE_FIELD_NUMBER: builtins.int - state: global___ConnectionState.ValueType - def __init__( - self, - *, - state: global___ConnectionState.ValueType = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["state", b"state"]) -> None: ... - -global___ConnectionStateChanged = ConnectionStateChanged - -@typing_extensions.final -class Connected(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - def __init__( - self, - ) -> None: ... - -global___Connected = Connected - -@typing_extensions.final -class Disconnected(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - def __init__( - self, - ) -> None: ... - -global___Disconnected = Disconnected - -@typing_extensions.final -class Reconnecting(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - def __init__( - self, - ) -> None: ... - -global___Reconnecting = Reconnecting - -@typing_extensions.final -class Reconnected(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - def __init__( - self, - ) -> None: ... - -global___Reconnected = Reconnected - -@typing_extensions.final -class RoomEOS(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - def __init__( - self, - ) -> None: ... - -global___RoomEOS = RoomEOS diff --git a/livekit-rtc/livekit/rtc/_proto/stats_pb2.py b/livekit-rtc/livekit/rtc/_proto/stats_pb2.py deleted file mode 100644 index 7dfdf765..00000000 --- a/livekit-rtc/livekit/rtc/_proto/stats_pb2.py +++ /dev/null @@ -1,119 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: stats.proto -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0bstats.proto\x12\rlivekit.proto\"\xd9\x17\n\x08RtcStats\x12.\n\x05\x63odec\x18\x03 \x01(\x0b\x32\x1d.livekit.proto.RtcStats.CodecH\x00\x12\x39\n\x0binbound_rtp\x18\x04 \x01(\x0b\x32\".livekit.proto.RtcStats.InboundRtpH\x00\x12;\n\x0coutbound_rtp\x18\x05 \x01(\x0b\x32#.livekit.proto.RtcStats.OutboundRtpH\x00\x12\x46\n\x12remote_inbound_rtp\x18\x06 \x01(\x0b\x32(.livekit.proto.RtcStats.RemoteInboundRtpH\x00\x12H\n\x13remote_outbound_rtp\x18\x07 \x01(\x0b\x32).livekit.proto.RtcStats.RemoteOutboundRtpH\x00\x12;\n\x0cmedia_source\x18\x08 \x01(\x0b\x32#.livekit.proto.RtcStats.MediaSourceH\x00\x12=\n\rmedia_playout\x18\t \x01(\x0b\x32$.livekit.proto.RtcStats.MediaPlayoutH\x00\x12\x41\n\x0fpeer_connection\x18\n \x01(\x0b\x32&.livekit.proto.RtcStats.PeerConnectionH\x00\x12;\n\x0c\x64\x61ta_channel\x18\x0b \x01(\x0b\x32#.livekit.proto.RtcStats.DataChannelH\x00\x12\x36\n\ttransport\x18\x0c \x01(\x0b\x32!.livekit.proto.RtcStats.TransportH\x00\x12?\n\x0e\x63\x61ndidate_pair\x18\r \x01(\x0b\x32%.livekit.proto.RtcStats.CandidatePairH\x00\x12\x41\n\x0flocal_candidate\x18\x0e \x01(\x0b\x32&.livekit.proto.RtcStats.LocalCandidateH\x00\x12\x43\n\x10remote_candidate\x18\x0f \x01(\x0b\x32\'.livekit.proto.RtcStats.RemoteCandidateH\x00\x12:\n\x0b\x63\x65rtificate\x18\x10 \x01(\x0b\x32#.livekit.proto.RtcStats.CertificateH\x00\x12.\n\x05track\x18\x11 \x01(\x0b\x32\x1d.livekit.proto.RtcStats.TrackH\x00\x1a[\n\x05\x43odec\x12(\n\x03rtc\x18\x01 \x01(\x0b\x32\x1b.livekit.proto.RtcStatsData\x12(\n\x05\x63odec\x18\x02 \x01(\x0b\x32\x19.livekit.proto.CodecStats\x1a\xd5\x01\n\nInboundRtp\x12(\n\x03rtc\x18\x01 \x01(\x0b\x32\x1b.livekit.proto.RtcStatsData\x12-\n\x06stream\x18\x02 \x01(\x0b\x32\x1d.livekit.proto.RtpStreamStats\x12\x37\n\x08received\x18\x03 \x01(\x0b\x32%.livekit.proto.ReceivedRtpStreamStats\x12\x35\n\x07inbound\x18\x04 \x01(\x0b\x32$.livekit.proto.InboundRtpStreamStats\x1a\xd0\x01\n\x0bOutboundRtp\x12(\n\x03rtc\x18\x01 \x01(\x0b\x32\x1b.livekit.proto.RtcStatsData\x12-\n\x06stream\x18\x02 \x01(\x0b\x32\x1d.livekit.proto.RtpStreamStats\x12/\n\x04sent\x18\x03 \x01(\x0b\x32!.livekit.proto.SentRtpStreamStats\x12\x37\n\x08outbound\x18\x04 \x01(\x0b\x32%.livekit.proto.OutboundRtpStreamStats\x1a\xe8\x01\n\x10RemoteInboundRtp\x12(\n\x03rtc\x18\x01 \x01(\x0b\x32\x1b.livekit.proto.RtcStatsData\x12-\n\x06stream\x18\x02 \x01(\x0b\x32\x1d.livekit.proto.RtpStreamStats\x12\x37\n\x08received\x18\x03 \x01(\x0b\x32%.livekit.proto.ReceivedRtpStreamStats\x12\x42\n\x0eremote_inbound\x18\x04 \x01(\x0b\x32*.livekit.proto.RemoteInboundRtpStreamStats\x1a\xe3\x01\n\x11RemoteOutboundRtp\x12(\n\x03rtc\x18\x01 \x01(\x0b\x32\x1b.livekit.proto.RtcStatsData\x12-\n\x06stream\x18\x02 \x01(\x0b\x32\x1d.livekit.proto.RtpStreamStats\x12/\n\x04sent\x18\x03 \x01(\x0b\x32!.livekit.proto.SentRtpStreamStats\x12\x44\n\x0fremote_outbound\x18\x04 \x01(\x0b\x32+.livekit.proto.RemoteOutboundRtpStreamStats\x1a\xc8\x01\n\x0bMediaSource\x12(\n\x03rtc\x18\x01 \x01(\x0b\x32\x1b.livekit.proto.RtcStatsData\x12/\n\x06source\x18\x02 \x01(\x0b\x32\x1f.livekit.proto.MediaSourceStats\x12.\n\x05\x61udio\x18\x03 \x01(\x0b\x32\x1f.livekit.proto.AudioSourceStats\x12.\n\x05video\x18\x04 \x01(\x0b\x32\x1f.livekit.proto.VideoSourceStats\x1aq\n\x0cMediaPlayout\x12(\n\x03rtc\x18\x01 \x01(\x0b\x32\x1b.livekit.proto.RtcStatsData\x12\x37\n\raudio_playout\x18\x02 \x01(\x0b\x32 .livekit.proto.AudioPlayoutStats\x1aj\n\x0ePeerConnection\x12(\n\x03rtc\x18\x01 \x01(\x0b\x32\x1b.livekit.proto.RtcStatsData\x12.\n\x02pc\x18\x02 \x01(\x0b\x32\".livekit.proto.PeerConnectionStats\x1a\x64\n\x0b\x44\x61taChannel\x12(\n\x03rtc\x18\x01 \x01(\x0b\x32\x1b.livekit.proto.RtcStatsData\x12+\n\x02\x64\x63\x18\x02 \x01(\x0b\x32\x1f.livekit.proto.DataChannelStats\x1ag\n\tTransport\x12(\n\x03rtc\x18\x01 \x01(\x0b\x32\x1b.livekit.proto.RtcStatsData\x12\x30\n\ttransport\x18\x02 \x01(\x0b\x32\x1d.livekit.proto.TransportStats\x1at\n\rCandidatePair\x12(\n\x03rtc\x18\x01 \x01(\x0b\x32\x1b.livekit.proto.RtcStatsData\x12\x39\n\x0e\x63\x61ndidate_pair\x18\x02 \x01(\x0b\x32!.livekit.proto.CandidatePairStats\x1ao\n\x0eLocalCandidate\x12(\n\x03rtc\x18\x01 \x01(\x0b\x32\x1b.livekit.proto.RtcStatsData\x12\x33\n\tcandidate\x18\x02 \x01(\x0b\x32 .livekit.proto.IceCandidateStats\x1ap\n\x0fRemoteCandidate\x12(\n\x03rtc\x18\x01 \x01(\x0b\x32\x1b.livekit.proto.RtcStatsData\x12\x33\n\tcandidate\x18\x02 \x01(\x0b\x32 .livekit.proto.IceCandidateStats\x1am\n\x0b\x43\x65rtificate\x12(\n\x03rtc\x18\x01 \x01(\x0b\x32\x1b.livekit.proto.RtcStatsData\x12\x34\n\x0b\x63\x65rtificate\x18\x02 \x01(\x0b\x32\x1f.livekit.proto.CertificateStats\x1a\x07\n\x05TrackB\x07\n\x05stats\"-\n\x0cRtcStatsData\x12\n\n\x02id\x18\x01 \x01(\t\x12\x11\n\ttimestamp\x18\x02 \x01(\x03\"\x88\x01\n\nCodecStats\x12\x14\n\x0cpayload_type\x18\x01 \x01(\r\x12\x14\n\x0ctransport_id\x18\x02 \x01(\t\x12\x11\n\tmime_type\x18\x03 \x01(\t\x12\x12\n\nclock_rate\x18\x04 \x01(\r\x12\x10\n\x08\x63hannels\x18\x05 \x01(\r\x12\x15\n\rsdp_fmtp_line\x18\x06 \x01(\t\"T\n\x0eRtpStreamStats\x12\x0c\n\x04ssrc\x18\x01 \x01(\r\x12\x0c\n\x04kind\x18\x02 \x01(\t\x12\x14\n\x0ctransport_id\x18\x03 \x01(\t\x12\x10\n\x08\x63odec_id\x18\x04 \x01(\t\"X\n\x16ReceivedRtpStreamStats\x12\x18\n\x10packets_received\x18\x01 \x01(\x04\x12\x14\n\x0cpackets_lost\x18\x02 \x01(\x03\x12\x0e\n\x06jitter\x18\x03 \x01(\x01\"\x82\x0c\n\x15InboundRtpStreamStats\x12\x18\n\x10track_identifier\x18\x01 \x01(\t\x12\x0b\n\x03mid\x18\x02 \x01(\t\x12\x11\n\tremote_id\x18\x03 \x01(\t\x12\x16\n\x0e\x66rames_decoded\x18\x04 \x01(\r\x12\x1a\n\x12key_frames_decoded\x18\x05 \x01(\r\x12\x17\n\x0f\x66rames_rendered\x18\x06 \x01(\r\x12\x16\n\x0e\x66rames_dropped\x18\x07 \x01(\r\x12\x13\n\x0b\x66rame_width\x18\x08 \x01(\r\x12\x14\n\x0c\x66rame_height\x18\t \x01(\r\x12\x19\n\x11\x66rames_per_second\x18\n \x01(\x01\x12\x0e\n\x06qp_sum\x18\x0b \x01(\x04\x12\x19\n\x11total_decode_time\x18\x0c \x01(\x01\x12\x1f\n\x17total_inter_frame_delay\x18\r \x01(\x01\x12\'\n\x1ftotal_squared_inter_frame_delay\x18\x0e \x01(\x01\x12\x13\n\x0bpause_count\x18\x0f \x01(\r\x12\x1c\n\x14total_pause_duration\x18\x10 \x01(\x01\x12\x14\n\x0c\x66reeze_count\x18\x11 \x01(\r\x12\x1d\n\x15total_freeze_duration\x18\x12 \x01(\x01\x12&\n\x1elast_packet_received_timestamp\x18\x13 \x01(\x01\x12\x1d\n\x15header_bytes_received\x18\x14 \x01(\x04\x12\x19\n\x11packets_discarded\x18\x15 \x01(\x04\x12\x1a\n\x12\x66\x65\x63_bytes_received\x18\x16 \x01(\x04\x12\x1c\n\x14\x66\x65\x63_packets_received\x18\x17 \x01(\x04\x12\x1d\n\x15\x66\x65\x63_packets_discarded\x18\x18 \x01(\x04\x12\x16\n\x0e\x62ytes_received\x18\x19 \x01(\x04\x12\x12\n\nnack_count\x18\x1a \x01(\r\x12\x11\n\tfir_count\x18\x1b \x01(\r\x12\x11\n\tpli_count\x18\x1c \x01(\r\x12\x1e\n\x16total_processing_delay\x18\x1d \x01(\x01\x12#\n\x1b\x65stimated_playout_timestamp\x18\x1e \x01(\x01\x12\x1b\n\x13jitter_buffer_delay\x18\x1f \x01(\x01\x12\"\n\x1ajitter_buffer_target_delay\x18 \x01(\x01\x12#\n\x1bjitter_buffer_emitted_count\x18! \x01(\x04\x12#\n\x1bjitter_buffer_minimum_delay\x18\" \x01(\x01\x12\x1e\n\x16total_samples_received\x18# \x01(\x04\x12\x19\n\x11\x63oncealed_samples\x18$ \x01(\x04\x12 \n\x18silent_concealed_samples\x18% \x01(\x04\x12\x1a\n\x12\x63oncealment_events\x18& \x01(\x04\x12)\n!inserted_samples_for_deceleration\x18\' \x01(\x04\x12(\n removed_samples_for_acceleration\x18( \x01(\x04\x12\x13\n\x0b\x61udio_level\x18) \x01(\x01\x12\x1a\n\x12total_audio_energy\x18* \x01(\x01\x12\x1e\n\x16total_samples_duration\x18+ \x01(\x01\x12\x17\n\x0f\x66rames_received\x18, \x01(\x04\x12\x1e\n\x16\x64\x65\x63oder_implementation\x18- \x01(\t\x12\x12\n\nplayout_id\x18. \x01(\t\x12\x1f\n\x17power_efficient_decoder\x18/ \x01(\x08\x12.\n&frames_assembled_from_multiple_packets\x18\x30 \x01(\x04\x12\x1b\n\x13total_assembly_time\x18\x31 \x01(\x01\x12&\n\x1eretransmitted_packets_received\x18\x32 \x01(\x04\x12$\n\x1cretransmitted_bytes_received\x18\x33 \x01(\x04\x12\x10\n\x08rtx_ssrc\x18\x34 \x01(\r\x12\x10\n\x08\x66\x65\x63_ssrc\x18\x35 \x01(\r\">\n\x12SentRtpStreamStats\x12\x14\n\x0cpackets_sent\x18\x01 \x01(\x04\x12\x12\n\nbytes_sent\x18\x02 \x01(\x04\"\xd1\x07\n\x16OutboundRtpStreamStats\x12\x0b\n\x03mid\x18\x01 \x01(\t\x12\x17\n\x0fmedia_source_id\x18\x02 \x01(\t\x12\x11\n\tremote_id\x18\x03 \x01(\t\x12\x0b\n\x03rid\x18\x04 \x01(\t\x12\x19\n\x11header_bytes_sent\x18\x05 \x01(\x04\x12\"\n\x1aretransmitted_packets_sent\x18\x06 \x01(\x04\x12 \n\x18retransmitted_bytes_sent\x18\x07 \x01(\x04\x12\x10\n\x08rtx_ssrc\x18\x08 \x01(\r\x12\x16\n\x0etarget_bitrate\x18\t \x01(\x01\x12\"\n\x1atotal_encoded_bytes_target\x18\n \x01(\x04\x12\x13\n\x0b\x66rame_width\x18\x0b \x01(\r\x12\x14\n\x0c\x66rame_height\x18\x0c \x01(\r\x12\x19\n\x11\x66rames_per_second\x18\r \x01(\x01\x12\x13\n\x0b\x66rames_sent\x18\x0e \x01(\r\x12\x18\n\x10huge_frames_sent\x18\x0f \x01(\r\x12\x16\n\x0e\x66rames_encoded\x18\x10 \x01(\r\x12\x1a\n\x12key_frames_encoded\x18\x11 \x01(\r\x12\x0e\n\x06qp_sum\x18\x12 \x01(\x04\x12\x19\n\x11total_encode_time\x18\x13 \x01(\x01\x12\x1f\n\x17total_packet_send_delay\x18\x14 \x01(\x01\x12I\n\x19quality_limitation_reason\x18\x15 \x01(\x0e\x32&.livekit.proto.QualityLimitationReason\x12k\n\x1cquality_limitation_durations\x18\x16 \x03(\x0b\x32\x45.livekit.proto.OutboundRtpStreamStats.QualityLimitationDurationsEntry\x12-\n%quality_limitation_resolution_changes\x18\x17 \x01(\r\x12\x12\n\nnack_count\x18\x18 \x01(\r\x12\x11\n\tfir_count\x18\x19 \x01(\r\x12\x11\n\tpli_count\x18\x1a \x01(\r\x12\x1e\n\x16\x65ncoder_implementation\x18\x1b \x01(\t\x12\x1f\n\x17power_efficient_encoder\x18\x1c \x01(\x08\x12\x0e\n\x06\x61\x63tive\x18\x1d \x01(\x08\x12\x18\n\x10scalibility_mode\x18\x1e \x01(\t\x1a\x41\n\x1fQualityLimitationDurationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x01:\x02\x38\x01\"\xa4\x01\n\x1bRemoteInboundRtpStreamStats\x12\x10\n\x08local_id\x18\x01 \x01(\t\x12\x17\n\x0fround_trip_time\x18\x02 \x01(\x01\x12\x1d\n\x15total_round_trip_time\x18\x03 \x01(\x01\x12\x15\n\rfraction_lost\x18\x04 \x01(\x01\x12$\n\x1cround_trip_time_measurements\x18\x05 \x01(\x04\"\xbe\x01\n\x1cRemoteOutboundRtpStreamStats\x12\x10\n\x08local_id\x18\x01 \x01(\t\x12\x18\n\x10remote_timestamp\x18\x02 \x01(\x01\x12\x14\n\x0creports_sent\x18\x03 \x01(\x04\x12\x17\n\x0fround_trip_time\x18\x04 \x01(\x01\x12\x1d\n\x15total_round_trip_time\x18\x05 \x01(\x01\x12$\n\x1cround_trip_time_measurements\x18\x06 \x01(\x04\":\n\x10MediaSourceStats\x12\x18\n\x10track_identifier\x18\x01 \x01(\t\x12\x0c\n\x04kind\x18\x02 \x01(\t\"\xa2\x02\n\x10\x41udioSourceStats\x12\x13\n\x0b\x61udio_level\x18\x01 \x01(\x01\x12\x1a\n\x12total_audio_energy\x18\x02 \x01(\x01\x12\x1e\n\x16total_samples_duration\x18\x03 \x01(\x01\x12\x18\n\x10\x65\x63ho_return_loss\x18\x04 \x01(\x01\x12$\n\x1c\x65\x63ho_return_loss_enhancement\x18\x05 \x01(\x01\x12 \n\x18\x64ropped_samples_duration\x18\x06 \x01(\x01\x12\x1e\n\x16\x64ropped_samples_events\x18\x07 \x01(\r\x12\x1b\n\x13total_capture_delay\x18\x08 \x01(\x01\x12\x1e\n\x16total_samples_captured\x18\t \x01(\x04\"\\\n\x10VideoSourceStats\x12\r\n\x05width\x18\x01 \x01(\r\x12\x0e\n\x06height\x18\x02 \x01(\r\x12\x0e\n\x06\x66rames\x18\x03 \x01(\r\x12\x19\n\x11\x66rames_per_second\x18\x04 \x01(\x01\"\xc5\x01\n\x11\x41udioPlayoutStats\x12\x0c\n\x04kind\x18\x01 \x01(\t\x12$\n\x1csynthesized_samples_duration\x18\x02 \x01(\x01\x12\"\n\x1asynthesized_samples_events\x18\x03 \x01(\r\x12\x1e\n\x16total_samples_duration\x18\x04 \x01(\x01\x12\x1b\n\x13total_playout_delay\x18\x05 \x01(\x01\x12\x1b\n\x13total_samples_count\x18\x06 \x01(\x04\"Q\n\x13PeerConnectionStats\x12\x1c\n\x14\x64\x61ta_channels_opened\x18\x01 \x01(\r\x12\x1c\n\x14\x64\x61ta_channels_closed\x18\x02 \x01(\r\"\xf1\x01\n\x10\x44\x61taChannelStats\x12\r\n\x05label\x18\x01 \x01(\t\x12\x10\n\x08protocol\x18\x02 \x01(\t\x12\x1f\n\x17\x64\x61ta_channel_identifier\x18\x03 \x01(\x05\x12\x33\n\x05state\x18\x04 \x01(\x0e\x32\x1f.livekit.proto.DataChannelStateH\x00\x88\x01\x01\x12\x15\n\rmessages_sent\x18\x05 \x01(\r\x12\x12\n\nbytes_sent\x18\x06 \x01(\x04\x12\x19\n\x11messages_received\x18\x07 \x01(\r\x12\x16\n\x0e\x62ytes_received\x18\x08 \x01(\x04\x42\x08\n\x06_state\"\xc3\x04\n\x0eTransportStats\x12\x14\n\x0cpackets_sent\x18\x01 \x01(\x04\x12\x18\n\x10packets_received\x18\x02 \x01(\x04\x12\x12\n\nbytes_sent\x18\x03 \x01(\x04\x12\x16\n\x0e\x62ytes_received\x18\x04 \x01(\x04\x12(\n\x08ice_role\x18\x05 \x01(\x0e\x32\x16.livekit.proto.IceRole\x12#\n\x1bice_local_username_fragment\x18\x06 \x01(\t\x12:\n\ndtls_state\x18\x07 \x01(\x0e\x32!.livekit.proto.DtlsTransportStateH\x00\x88\x01\x01\x12\x38\n\tice_state\x18\x08 \x01(\x0e\x32 .livekit.proto.IceTransportStateH\x01\x88\x01\x01\x12\"\n\x1aselected_candidate_pair_id\x18\t \x01(\t\x12\x1c\n\x14local_certificate_id\x18\n \x01(\t\x12\x1d\n\x15remote_certificate_id\x18\x0b \x01(\t\x12\x13\n\x0btls_version\x18\x0c \x01(\t\x12\x13\n\x0b\x64tls_cipher\x18\r \x01(\t\x12*\n\tdtls_role\x18\x0e \x01(\x0e\x32\x17.livekit.proto.DtlsRole\x12\x13\n\x0bsrtp_cipher\x18\x0f \x01(\t\x12\'\n\x1fselected_candidate_pair_changes\x18\x10 \x01(\rB\r\n\x0b_dtls_stateB\x0c\n\n_ice_state\"\xb3\x05\n\x12\x43\x61ndidatePairStats\x12\x14\n\x0ctransport_id\x18\x01 \x01(\t\x12\x1a\n\x12local_candidate_id\x18\x02 \x01(\t\x12\x1b\n\x13remote_candidate_id\x18\x03 \x01(\t\x12\x38\n\x05state\x18\x04 \x01(\x0e\x32$.livekit.proto.IceCandidatePairStateH\x00\x88\x01\x01\x12\x11\n\tnominated\x18\x05 \x01(\x08\x12\x14\n\x0cpackets_sent\x18\x06 \x01(\x04\x12\x18\n\x10packets_received\x18\x07 \x01(\x04\x12\x12\n\nbytes_sent\x18\x08 \x01(\x04\x12\x16\n\x0e\x62ytes_received\x18\t \x01(\x04\x12\"\n\x1alast_packet_sent_timestamp\x18\n \x01(\x01\x12&\n\x1elast_packet_received_timestamp\x18\x0b \x01(\x01\x12\x1d\n\x15total_round_trip_time\x18\x0c \x01(\x01\x12\x1f\n\x17\x63urrent_round_trip_time\x18\r \x01(\x01\x12\"\n\x1a\x61vailable_outgoing_bitrate\x18\x0e \x01(\x01\x12\"\n\x1a\x61vailable_incoming_bitrate\x18\x0f \x01(\x01\x12\x19\n\x11requests_received\x18\x10 \x01(\x04\x12\x15\n\rrequests_sent\x18\x11 \x01(\x04\x12\x1a\n\x12responses_received\x18\x12 \x01(\x04\x12\x16\n\x0eresponses_sent\x18\x13 \x01(\x04\x12\x1d\n\x15\x63onsent_requests_sent\x18\x14 \x01(\x04\x12!\n\x19packets_discarded_on_send\x18\x15 \x01(\r\x12\x1f\n\x17\x62ytes_discarded_on_send\x18\x16 \x01(\x04\x42\x08\n\x06_state\"\xcb\x03\n\x11IceCandidateStats\x12\x14\n\x0ctransport_id\x18\x01 \x01(\t\x12\x0f\n\x07\x61\x64\x64ress\x18\x02 \x01(\t\x12\x0c\n\x04port\x18\x03 \x01(\x05\x12\x10\n\x08protocol\x18\x04 \x01(\t\x12<\n\x0e\x63\x61ndidate_type\x18\x05 \x01(\x0e\x32\x1f.livekit.proto.IceCandidateTypeH\x00\x88\x01\x01\x12\x10\n\x08priority\x18\x06 \x01(\x05\x12\x0b\n\x03url\x18\x07 \x01(\t\x12\x46\n\x0erelay_protocol\x18\x08 \x01(\x0e\x32).livekit.proto.IceServerTransportProtocolH\x01\x88\x01\x01\x12\x12\n\nfoundation\x18\t \x01(\t\x12\x17\n\x0frelated_address\x18\n \x01(\t\x12\x14\n\x0crelated_port\x18\x0b \x01(\x05\x12\x19\n\x11username_fragment\x18\x0c \x01(\t\x12\x39\n\x08tcp_type\x18\r \x01(\x0e\x32\".livekit.proto.IceTcpCandidateTypeH\x02\x88\x01\x01\x42\x11\n\x0f_candidate_typeB\x11\n\x0f_relay_protocolB\x0b\n\t_tcp_type\"\x81\x01\n\x10\x43\x65rtificateStats\x12\x13\n\x0b\x66ingerprint\x18\x01 \x01(\t\x12\x1d\n\x15\x66ingerprint_algorithm\x18\x02 \x01(\t\x12\x1a\n\x12\x62\x61se64_certificate\x18\x03 \x01(\t\x12\x1d\n\x15issuer_certificate_id\x18\x04 \x01(\t*Q\n\x10\x44\x61taChannelState\x12\x11\n\rDC_CONNECTING\x10\x00\x12\x0b\n\x07\x44\x43_OPEN\x10\x01\x12\x0e\n\nDC_CLOSING\x10\x02\x12\r\n\tDC_CLOSED\x10\x03*r\n\x17QualityLimitationReason\x12\x13\n\x0fLIMITATION_NONE\x10\x00\x12\x12\n\x0eLIMITATION_CPU\x10\x01\x12\x18\n\x14LIMITATION_BANDWIDTH\x10\x02\x12\x14\n\x10LIMITATION_OTHER\x10\x03*C\n\x07IceRole\x12\x0f\n\x0bICE_UNKNOWN\x10\x00\x12\x13\n\x0fICE_CONTROLLING\x10\x01\x12\x12\n\x0eICE_CONTROLLED\x10\x02*\x9f\x01\n\x12\x44tlsTransportState\x12\x16\n\x12\x44TLS_TRANSPORT_NEW\x10\x00\x12\x1d\n\x19\x44TLS_TRANSPORT_CONNECTING\x10\x01\x12\x1c\n\x18\x44TLS_TRANSPORT_CONNECTED\x10\x02\x12\x19\n\x15\x44TLS_TRANSPORT_CLOSED\x10\x03\x12\x19\n\x15\x44TLS_TRANSPORT_FAILED\x10\x04*\xd4\x01\n\x11IceTransportState\x12\x15\n\x11ICE_TRANSPORT_NEW\x10\x00\x12\x1a\n\x16ICE_TRANSPORT_CHECKING\x10\x01\x12\x1b\n\x17ICE_TRANSPORT_CONNECTED\x10\x02\x12\x1b\n\x17ICE_TRANSPORT_COMPLETED\x10\x03\x12\x1e\n\x1aICE_TRANSPORT_DISCONNECTED\x10\x04\x12\x18\n\x14ICE_TRANSPORT_FAILED\x10\x05\x12\x18\n\x14ICE_TRANSPORT_CLOSED\x10\x06*>\n\x08\x44tlsRole\x12\x0f\n\x0b\x44TLS_CLIENT\x10\x00\x12\x0f\n\x0b\x44TLS_SERVER\x10\x01\x12\x10\n\x0c\x44TLS_UNKNOWN\x10\x02*u\n\x15IceCandidatePairState\x12\x0f\n\x0bPAIR_FROZEN\x10\x00\x12\x10\n\x0cPAIR_WAITING\x10\x01\x12\x14\n\x10PAIR_IN_PROGRESS\x10\x02\x12\x0f\n\x0bPAIR_FAILED\x10\x03\x12\x12\n\x0ePAIR_SUCCEEDED\x10\x04*=\n\x10IceCandidateType\x12\x08\n\x04HOST\x10\x00\x12\t\n\x05SRFLX\x10\x01\x12\t\n\x05PRFLX\x10\x02\x12\t\n\x05RELAY\x10\x03*U\n\x1aIceServerTransportProtocol\x12\x11\n\rTRANSPORT_UDP\x10\x00\x12\x11\n\rTRANSPORT_TCP\x10\x01\x12\x11\n\rTRANSPORT_TLS\x10\x02*T\n\x13IceTcpCandidateType\x12\x14\n\x10\x43\x41NDIDATE_ACTIVE\x10\x00\x12\x15\n\x11\x43\x41NDIDATE_PASSIVE\x10\x01\x12\x10\n\x0c\x43\x41NDIDATE_SO\x10\x02\x42\x10\xaa\x02\rLiveKit.Protob\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'stats_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\252\002\rLiveKit.Proto' - _OUTBOUNDRTPSTREAMSTATS_QUALITYLIMITATIONDURATIONSENTRY._options = None - _OUTBOUNDRTPSTREAMSTATS_QUALITYLIMITATIONDURATIONSENTRY._serialized_options = b'8\001' - _globals['_DATACHANNELSTATE']._serialized_start=9217 - _globals['_DATACHANNELSTATE']._serialized_end=9298 - _globals['_QUALITYLIMITATIONREASON']._serialized_start=9300 - _globals['_QUALITYLIMITATIONREASON']._serialized_end=9414 - _globals['_ICEROLE']._serialized_start=9416 - _globals['_ICEROLE']._serialized_end=9483 - _globals['_DTLSTRANSPORTSTATE']._serialized_start=9486 - _globals['_DTLSTRANSPORTSTATE']._serialized_end=9645 - _globals['_ICETRANSPORTSTATE']._serialized_start=9648 - _globals['_ICETRANSPORTSTATE']._serialized_end=9860 - _globals['_DTLSROLE']._serialized_start=9862 - _globals['_DTLSROLE']._serialized_end=9924 - _globals['_ICECANDIDATEPAIRSTATE']._serialized_start=9926 - _globals['_ICECANDIDATEPAIRSTATE']._serialized_end=10043 - _globals['_ICECANDIDATETYPE']._serialized_start=10045 - _globals['_ICECANDIDATETYPE']._serialized_end=10106 - _globals['_ICESERVERTRANSPORTPROTOCOL']._serialized_start=10108 - _globals['_ICESERVERTRANSPORTPROTOCOL']._serialized_end=10193 - _globals['_ICETCPCANDIDATETYPE']._serialized_start=10195 - _globals['_ICETCPCANDIDATETYPE']._serialized_end=10279 - _globals['_RTCSTATS']._serialized_start=31 - _globals['_RTCSTATS']._serialized_end=3064 - _globals['_RTCSTATS_CODEC']._serialized_start=974 - _globals['_RTCSTATS_CODEC']._serialized_end=1065 - _globals['_RTCSTATS_INBOUNDRTP']._serialized_start=1068 - _globals['_RTCSTATS_INBOUNDRTP']._serialized_end=1281 - _globals['_RTCSTATS_OUTBOUNDRTP']._serialized_start=1284 - _globals['_RTCSTATS_OUTBOUNDRTP']._serialized_end=1492 - _globals['_RTCSTATS_REMOTEINBOUNDRTP']._serialized_start=1495 - _globals['_RTCSTATS_REMOTEINBOUNDRTP']._serialized_end=1727 - _globals['_RTCSTATS_REMOTEOUTBOUNDRTP']._serialized_start=1730 - _globals['_RTCSTATS_REMOTEOUTBOUNDRTP']._serialized_end=1957 - _globals['_RTCSTATS_MEDIASOURCE']._serialized_start=1960 - _globals['_RTCSTATS_MEDIASOURCE']._serialized_end=2160 - _globals['_RTCSTATS_MEDIAPLAYOUT']._serialized_start=2162 - _globals['_RTCSTATS_MEDIAPLAYOUT']._serialized_end=2275 - _globals['_RTCSTATS_PEERCONNECTION']._serialized_start=2277 - _globals['_RTCSTATS_PEERCONNECTION']._serialized_end=2383 - _globals['_RTCSTATS_DATACHANNEL']._serialized_start=2385 - _globals['_RTCSTATS_DATACHANNEL']._serialized_end=2485 - _globals['_RTCSTATS_TRANSPORT']._serialized_start=2487 - _globals['_RTCSTATS_TRANSPORT']._serialized_end=2590 - _globals['_RTCSTATS_CANDIDATEPAIR']._serialized_start=2592 - _globals['_RTCSTATS_CANDIDATEPAIR']._serialized_end=2708 - _globals['_RTCSTATS_LOCALCANDIDATE']._serialized_start=2710 - _globals['_RTCSTATS_LOCALCANDIDATE']._serialized_end=2821 - _globals['_RTCSTATS_REMOTECANDIDATE']._serialized_start=2823 - _globals['_RTCSTATS_REMOTECANDIDATE']._serialized_end=2935 - _globals['_RTCSTATS_CERTIFICATE']._serialized_start=2937 - _globals['_RTCSTATS_CERTIFICATE']._serialized_end=3046 - _globals['_RTCSTATS_TRACK']._serialized_start=3048 - _globals['_RTCSTATS_TRACK']._serialized_end=3055 - _globals['_RTCSTATSDATA']._serialized_start=3066 - _globals['_RTCSTATSDATA']._serialized_end=3111 - _globals['_CODECSTATS']._serialized_start=3114 - _globals['_CODECSTATS']._serialized_end=3250 - _globals['_RTPSTREAMSTATS']._serialized_start=3252 - _globals['_RTPSTREAMSTATS']._serialized_end=3336 - _globals['_RECEIVEDRTPSTREAMSTATS']._serialized_start=3338 - _globals['_RECEIVEDRTPSTREAMSTATS']._serialized_end=3426 - _globals['_INBOUNDRTPSTREAMSTATS']._serialized_start=3429 - _globals['_INBOUNDRTPSTREAMSTATS']._serialized_end=4967 - _globals['_SENTRTPSTREAMSTATS']._serialized_start=4969 - _globals['_SENTRTPSTREAMSTATS']._serialized_end=5031 - _globals['_OUTBOUNDRTPSTREAMSTATS']._serialized_start=5034 - _globals['_OUTBOUNDRTPSTREAMSTATS']._serialized_end=6011 - _globals['_OUTBOUNDRTPSTREAMSTATS_QUALITYLIMITATIONDURATIONSENTRY']._serialized_start=5946 - _globals['_OUTBOUNDRTPSTREAMSTATS_QUALITYLIMITATIONDURATIONSENTRY']._serialized_end=6011 - _globals['_REMOTEINBOUNDRTPSTREAMSTATS']._serialized_start=6014 - _globals['_REMOTEINBOUNDRTPSTREAMSTATS']._serialized_end=6178 - _globals['_REMOTEOUTBOUNDRTPSTREAMSTATS']._serialized_start=6181 - _globals['_REMOTEOUTBOUNDRTPSTREAMSTATS']._serialized_end=6371 - _globals['_MEDIASOURCESTATS']._serialized_start=6373 - _globals['_MEDIASOURCESTATS']._serialized_end=6431 - _globals['_AUDIOSOURCESTATS']._serialized_start=6434 - _globals['_AUDIOSOURCESTATS']._serialized_end=6724 - _globals['_VIDEOSOURCESTATS']._serialized_start=6726 - _globals['_VIDEOSOURCESTATS']._serialized_end=6818 - _globals['_AUDIOPLAYOUTSTATS']._serialized_start=6821 - _globals['_AUDIOPLAYOUTSTATS']._serialized_end=7018 - _globals['_PEERCONNECTIONSTATS']._serialized_start=7020 - _globals['_PEERCONNECTIONSTATS']._serialized_end=7101 - _globals['_DATACHANNELSTATS']._serialized_start=7104 - _globals['_DATACHANNELSTATS']._serialized_end=7345 - _globals['_TRANSPORTSTATS']._serialized_start=7348 - _globals['_TRANSPORTSTATS']._serialized_end=7927 - _globals['_CANDIDATEPAIRSTATS']._serialized_start=7930 - _globals['_CANDIDATEPAIRSTATS']._serialized_end=8621 - _globals['_ICECANDIDATESTATS']._serialized_start=8624 - _globals['_ICECANDIDATESTATS']._serialized_end=9083 - _globals['_CERTIFICATESTATS']._serialized_start=9086 - _globals['_CERTIFICATESTATS']._serialized_end=9215 -# @@protoc_insertion_point(module_scope) diff --git a/livekit-rtc/livekit/rtc/_proto/stats_pb2.pyi b/livekit-rtc/livekit/rtc/_proto/stats_pb2.pyi deleted file mode 100644 index 82b8ef4b..00000000 --- a/livekit-rtc/livekit/rtc/_proto/stats_pb2.pyi +++ /dev/null @@ -1,1466 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -Copyright 2023 LiveKit, Inc. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -""" -import builtins -import collections.abc -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.internal.enum_type_wrapper -import google.protobuf.message -import sys -import typing - -if sys.version_info >= (3, 10): - import typing as typing_extensions -else: - import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor - -class _DataChannelState: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType - -class _DataChannelStateEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_DataChannelState.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - DC_CONNECTING: _DataChannelState.ValueType # 0 - DC_OPEN: _DataChannelState.ValueType # 1 - DC_CLOSING: _DataChannelState.ValueType # 2 - DC_CLOSED: _DataChannelState.ValueType # 3 - -class DataChannelState(_DataChannelState, metaclass=_DataChannelStateEnumTypeWrapper): ... - -DC_CONNECTING: DataChannelState.ValueType # 0 -DC_OPEN: DataChannelState.ValueType # 1 -DC_CLOSING: DataChannelState.ValueType # 2 -DC_CLOSED: DataChannelState.ValueType # 3 -global___DataChannelState = DataChannelState - -class _QualityLimitationReason: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType - -class _QualityLimitationReasonEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_QualityLimitationReason.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - LIMITATION_NONE: _QualityLimitationReason.ValueType # 0 - LIMITATION_CPU: _QualityLimitationReason.ValueType # 1 - LIMITATION_BANDWIDTH: _QualityLimitationReason.ValueType # 2 - LIMITATION_OTHER: _QualityLimitationReason.ValueType # 3 - -class QualityLimitationReason(_QualityLimitationReason, metaclass=_QualityLimitationReasonEnumTypeWrapper): ... - -LIMITATION_NONE: QualityLimitationReason.ValueType # 0 -LIMITATION_CPU: QualityLimitationReason.ValueType # 1 -LIMITATION_BANDWIDTH: QualityLimitationReason.ValueType # 2 -LIMITATION_OTHER: QualityLimitationReason.ValueType # 3 -global___QualityLimitationReason = QualityLimitationReason - -class _IceRole: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType - -class _IceRoleEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_IceRole.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - ICE_UNKNOWN: _IceRole.ValueType # 0 - ICE_CONTROLLING: _IceRole.ValueType # 1 - ICE_CONTROLLED: _IceRole.ValueType # 2 - -class IceRole(_IceRole, metaclass=_IceRoleEnumTypeWrapper): ... - -ICE_UNKNOWN: IceRole.ValueType # 0 -ICE_CONTROLLING: IceRole.ValueType # 1 -ICE_CONTROLLED: IceRole.ValueType # 2 -global___IceRole = IceRole - -class _DtlsTransportState: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType - -class _DtlsTransportStateEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_DtlsTransportState.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - DTLS_TRANSPORT_NEW: _DtlsTransportState.ValueType # 0 - DTLS_TRANSPORT_CONNECTING: _DtlsTransportState.ValueType # 1 - DTLS_TRANSPORT_CONNECTED: _DtlsTransportState.ValueType # 2 - DTLS_TRANSPORT_CLOSED: _DtlsTransportState.ValueType # 3 - DTLS_TRANSPORT_FAILED: _DtlsTransportState.ValueType # 4 - -class DtlsTransportState(_DtlsTransportState, metaclass=_DtlsTransportStateEnumTypeWrapper): ... - -DTLS_TRANSPORT_NEW: DtlsTransportState.ValueType # 0 -DTLS_TRANSPORT_CONNECTING: DtlsTransportState.ValueType # 1 -DTLS_TRANSPORT_CONNECTED: DtlsTransportState.ValueType # 2 -DTLS_TRANSPORT_CLOSED: DtlsTransportState.ValueType # 3 -DTLS_TRANSPORT_FAILED: DtlsTransportState.ValueType # 4 -global___DtlsTransportState = DtlsTransportState - -class _IceTransportState: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType - -class _IceTransportStateEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_IceTransportState.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - ICE_TRANSPORT_NEW: _IceTransportState.ValueType # 0 - ICE_TRANSPORT_CHECKING: _IceTransportState.ValueType # 1 - ICE_TRANSPORT_CONNECTED: _IceTransportState.ValueType # 2 - ICE_TRANSPORT_COMPLETED: _IceTransportState.ValueType # 3 - ICE_TRANSPORT_DISCONNECTED: _IceTransportState.ValueType # 4 - ICE_TRANSPORT_FAILED: _IceTransportState.ValueType # 5 - ICE_TRANSPORT_CLOSED: _IceTransportState.ValueType # 6 - -class IceTransportState(_IceTransportState, metaclass=_IceTransportStateEnumTypeWrapper): ... - -ICE_TRANSPORT_NEW: IceTransportState.ValueType # 0 -ICE_TRANSPORT_CHECKING: IceTransportState.ValueType # 1 -ICE_TRANSPORT_CONNECTED: IceTransportState.ValueType # 2 -ICE_TRANSPORT_COMPLETED: IceTransportState.ValueType # 3 -ICE_TRANSPORT_DISCONNECTED: IceTransportState.ValueType # 4 -ICE_TRANSPORT_FAILED: IceTransportState.ValueType # 5 -ICE_TRANSPORT_CLOSED: IceTransportState.ValueType # 6 -global___IceTransportState = IceTransportState - -class _DtlsRole: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType - -class _DtlsRoleEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_DtlsRole.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - DTLS_CLIENT: _DtlsRole.ValueType # 0 - DTLS_SERVER: _DtlsRole.ValueType # 1 - DTLS_UNKNOWN: _DtlsRole.ValueType # 2 - -class DtlsRole(_DtlsRole, metaclass=_DtlsRoleEnumTypeWrapper): ... - -DTLS_CLIENT: DtlsRole.ValueType # 0 -DTLS_SERVER: DtlsRole.ValueType # 1 -DTLS_UNKNOWN: DtlsRole.ValueType # 2 -global___DtlsRole = DtlsRole - -class _IceCandidatePairState: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType - -class _IceCandidatePairStateEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_IceCandidatePairState.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - PAIR_FROZEN: _IceCandidatePairState.ValueType # 0 - PAIR_WAITING: _IceCandidatePairState.ValueType # 1 - PAIR_IN_PROGRESS: _IceCandidatePairState.ValueType # 2 - PAIR_FAILED: _IceCandidatePairState.ValueType # 3 - PAIR_SUCCEEDED: _IceCandidatePairState.ValueType # 4 - -class IceCandidatePairState(_IceCandidatePairState, metaclass=_IceCandidatePairStateEnumTypeWrapper): ... - -PAIR_FROZEN: IceCandidatePairState.ValueType # 0 -PAIR_WAITING: IceCandidatePairState.ValueType # 1 -PAIR_IN_PROGRESS: IceCandidatePairState.ValueType # 2 -PAIR_FAILED: IceCandidatePairState.ValueType # 3 -PAIR_SUCCEEDED: IceCandidatePairState.ValueType # 4 -global___IceCandidatePairState = IceCandidatePairState - -class _IceCandidateType: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType - -class _IceCandidateTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_IceCandidateType.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - HOST: _IceCandidateType.ValueType # 0 - SRFLX: _IceCandidateType.ValueType # 1 - PRFLX: _IceCandidateType.ValueType # 2 - RELAY: _IceCandidateType.ValueType # 3 - -class IceCandidateType(_IceCandidateType, metaclass=_IceCandidateTypeEnumTypeWrapper): ... - -HOST: IceCandidateType.ValueType # 0 -SRFLX: IceCandidateType.ValueType # 1 -PRFLX: IceCandidateType.ValueType # 2 -RELAY: IceCandidateType.ValueType # 3 -global___IceCandidateType = IceCandidateType - -class _IceServerTransportProtocol: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType - -class _IceServerTransportProtocolEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_IceServerTransportProtocol.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - TRANSPORT_UDP: _IceServerTransportProtocol.ValueType # 0 - TRANSPORT_TCP: _IceServerTransportProtocol.ValueType # 1 - TRANSPORT_TLS: _IceServerTransportProtocol.ValueType # 2 - -class IceServerTransportProtocol(_IceServerTransportProtocol, metaclass=_IceServerTransportProtocolEnumTypeWrapper): ... - -TRANSPORT_UDP: IceServerTransportProtocol.ValueType # 0 -TRANSPORT_TCP: IceServerTransportProtocol.ValueType # 1 -TRANSPORT_TLS: IceServerTransportProtocol.ValueType # 2 -global___IceServerTransportProtocol = IceServerTransportProtocol - -class _IceTcpCandidateType: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType - -class _IceTcpCandidateTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_IceTcpCandidateType.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - CANDIDATE_ACTIVE: _IceTcpCandidateType.ValueType # 0 - CANDIDATE_PASSIVE: _IceTcpCandidateType.ValueType # 1 - CANDIDATE_SO: _IceTcpCandidateType.ValueType # 2 - -class IceTcpCandidateType(_IceTcpCandidateType, metaclass=_IceTcpCandidateTypeEnumTypeWrapper): ... - -CANDIDATE_ACTIVE: IceTcpCandidateType.ValueType # 0 -CANDIDATE_PASSIVE: IceTcpCandidateType.ValueType # 1 -CANDIDATE_SO: IceTcpCandidateType.ValueType # 2 -global___IceTcpCandidateType = IceTcpCandidateType - -@typing_extensions.final -class RtcStats(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - @typing_extensions.final - class Codec(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - RTC_FIELD_NUMBER: builtins.int - CODEC_FIELD_NUMBER: builtins.int - @property - def rtc(self) -> global___RtcStatsData: ... - @property - def codec(self) -> global___CodecStats: ... - def __init__( - self, - *, - rtc: global___RtcStatsData | None = ..., - codec: global___CodecStats | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["codec", b"codec", "rtc", b"rtc"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["codec", b"codec", "rtc", b"rtc"]) -> None: ... - - @typing_extensions.final - class InboundRtp(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - RTC_FIELD_NUMBER: builtins.int - STREAM_FIELD_NUMBER: builtins.int - RECEIVED_FIELD_NUMBER: builtins.int - INBOUND_FIELD_NUMBER: builtins.int - @property - def rtc(self) -> global___RtcStatsData: ... - @property - def stream(self) -> global___RtpStreamStats: ... - @property - def received(self) -> global___ReceivedRtpStreamStats: ... - @property - def inbound(self) -> global___InboundRtpStreamStats: ... - def __init__( - self, - *, - rtc: global___RtcStatsData | None = ..., - stream: global___RtpStreamStats | None = ..., - received: global___ReceivedRtpStreamStats | None = ..., - inbound: global___InboundRtpStreamStats | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["inbound", b"inbound", "received", b"received", "rtc", b"rtc", "stream", b"stream"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["inbound", b"inbound", "received", b"received", "rtc", b"rtc", "stream", b"stream"]) -> None: ... - - @typing_extensions.final - class OutboundRtp(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - RTC_FIELD_NUMBER: builtins.int - STREAM_FIELD_NUMBER: builtins.int - SENT_FIELD_NUMBER: builtins.int - OUTBOUND_FIELD_NUMBER: builtins.int - @property - def rtc(self) -> global___RtcStatsData: ... - @property - def stream(self) -> global___RtpStreamStats: ... - @property - def sent(self) -> global___SentRtpStreamStats: ... - @property - def outbound(self) -> global___OutboundRtpStreamStats: ... - def __init__( - self, - *, - rtc: global___RtcStatsData | None = ..., - stream: global___RtpStreamStats | None = ..., - sent: global___SentRtpStreamStats | None = ..., - outbound: global___OutboundRtpStreamStats | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["outbound", b"outbound", "rtc", b"rtc", "sent", b"sent", "stream", b"stream"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["outbound", b"outbound", "rtc", b"rtc", "sent", b"sent", "stream", b"stream"]) -> None: ... - - @typing_extensions.final - class RemoteInboundRtp(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - RTC_FIELD_NUMBER: builtins.int - STREAM_FIELD_NUMBER: builtins.int - RECEIVED_FIELD_NUMBER: builtins.int - REMOTE_INBOUND_FIELD_NUMBER: builtins.int - @property - def rtc(self) -> global___RtcStatsData: ... - @property - def stream(self) -> global___RtpStreamStats: ... - @property - def received(self) -> global___ReceivedRtpStreamStats: ... - @property - def remote_inbound(self) -> global___RemoteInboundRtpStreamStats: ... - def __init__( - self, - *, - rtc: global___RtcStatsData | None = ..., - stream: global___RtpStreamStats | None = ..., - received: global___ReceivedRtpStreamStats | None = ..., - remote_inbound: global___RemoteInboundRtpStreamStats | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["received", b"received", "remote_inbound", b"remote_inbound", "rtc", b"rtc", "stream", b"stream"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["received", b"received", "remote_inbound", b"remote_inbound", "rtc", b"rtc", "stream", b"stream"]) -> None: ... - - @typing_extensions.final - class RemoteOutboundRtp(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - RTC_FIELD_NUMBER: builtins.int - STREAM_FIELD_NUMBER: builtins.int - SENT_FIELD_NUMBER: builtins.int - REMOTE_OUTBOUND_FIELD_NUMBER: builtins.int - @property - def rtc(self) -> global___RtcStatsData: ... - @property - def stream(self) -> global___RtpStreamStats: ... - @property - def sent(self) -> global___SentRtpStreamStats: ... - @property - def remote_outbound(self) -> global___RemoteOutboundRtpStreamStats: ... - def __init__( - self, - *, - rtc: global___RtcStatsData | None = ..., - stream: global___RtpStreamStats | None = ..., - sent: global___SentRtpStreamStats | None = ..., - remote_outbound: global___RemoteOutboundRtpStreamStats | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["remote_outbound", b"remote_outbound", "rtc", b"rtc", "sent", b"sent", "stream", b"stream"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["remote_outbound", b"remote_outbound", "rtc", b"rtc", "sent", b"sent", "stream", b"stream"]) -> None: ... - - @typing_extensions.final - class MediaSource(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - RTC_FIELD_NUMBER: builtins.int - SOURCE_FIELD_NUMBER: builtins.int - AUDIO_FIELD_NUMBER: builtins.int - VIDEO_FIELD_NUMBER: builtins.int - @property - def rtc(self) -> global___RtcStatsData: ... - @property - def source(self) -> global___MediaSourceStats: ... - @property - def audio(self) -> global___AudioSourceStats: ... - @property - def video(self) -> global___VideoSourceStats: ... - def __init__( - self, - *, - rtc: global___RtcStatsData | None = ..., - source: global___MediaSourceStats | None = ..., - audio: global___AudioSourceStats | None = ..., - video: global___VideoSourceStats | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["audio", b"audio", "rtc", b"rtc", "source", b"source", "video", b"video"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["audio", b"audio", "rtc", b"rtc", "source", b"source", "video", b"video"]) -> None: ... - - @typing_extensions.final - class MediaPlayout(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - RTC_FIELD_NUMBER: builtins.int - AUDIO_PLAYOUT_FIELD_NUMBER: builtins.int - @property - def rtc(self) -> global___RtcStatsData: ... - @property - def audio_playout(self) -> global___AudioPlayoutStats: ... - def __init__( - self, - *, - rtc: global___RtcStatsData | None = ..., - audio_playout: global___AudioPlayoutStats | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["audio_playout", b"audio_playout", "rtc", b"rtc"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["audio_playout", b"audio_playout", "rtc", b"rtc"]) -> None: ... - - @typing_extensions.final - class PeerConnection(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - RTC_FIELD_NUMBER: builtins.int - PC_FIELD_NUMBER: builtins.int - @property - def rtc(self) -> global___RtcStatsData: ... - @property - def pc(self) -> global___PeerConnectionStats: ... - def __init__( - self, - *, - rtc: global___RtcStatsData | None = ..., - pc: global___PeerConnectionStats | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["pc", b"pc", "rtc", b"rtc"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["pc", b"pc", "rtc", b"rtc"]) -> None: ... - - @typing_extensions.final - class DataChannel(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - RTC_FIELD_NUMBER: builtins.int - DC_FIELD_NUMBER: builtins.int - @property - def rtc(self) -> global___RtcStatsData: ... - @property - def dc(self) -> global___DataChannelStats: ... - def __init__( - self, - *, - rtc: global___RtcStatsData | None = ..., - dc: global___DataChannelStats | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["dc", b"dc", "rtc", b"rtc"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["dc", b"dc", "rtc", b"rtc"]) -> None: ... - - @typing_extensions.final - class Transport(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - RTC_FIELD_NUMBER: builtins.int - TRANSPORT_FIELD_NUMBER: builtins.int - @property - def rtc(self) -> global___RtcStatsData: ... - @property - def transport(self) -> global___TransportStats: ... - def __init__( - self, - *, - rtc: global___RtcStatsData | None = ..., - transport: global___TransportStats | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["rtc", b"rtc", "transport", b"transport"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["rtc", b"rtc", "transport", b"transport"]) -> None: ... - - @typing_extensions.final - class CandidatePair(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - RTC_FIELD_NUMBER: builtins.int - CANDIDATE_PAIR_FIELD_NUMBER: builtins.int - @property - def rtc(self) -> global___RtcStatsData: ... - @property - def candidate_pair(self) -> global___CandidatePairStats: ... - def __init__( - self, - *, - rtc: global___RtcStatsData | None = ..., - candidate_pair: global___CandidatePairStats | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["candidate_pair", b"candidate_pair", "rtc", b"rtc"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["candidate_pair", b"candidate_pair", "rtc", b"rtc"]) -> None: ... - - @typing_extensions.final - class LocalCandidate(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - RTC_FIELD_NUMBER: builtins.int - CANDIDATE_FIELD_NUMBER: builtins.int - @property - def rtc(self) -> global___RtcStatsData: ... - @property - def candidate(self) -> global___IceCandidateStats: ... - def __init__( - self, - *, - rtc: global___RtcStatsData | None = ..., - candidate: global___IceCandidateStats | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["candidate", b"candidate", "rtc", b"rtc"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["candidate", b"candidate", "rtc", b"rtc"]) -> None: ... - - @typing_extensions.final - class RemoteCandidate(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - RTC_FIELD_NUMBER: builtins.int - CANDIDATE_FIELD_NUMBER: builtins.int - @property - def rtc(self) -> global___RtcStatsData: ... - @property - def candidate(self) -> global___IceCandidateStats: ... - def __init__( - self, - *, - rtc: global___RtcStatsData | None = ..., - candidate: global___IceCandidateStats | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["candidate", b"candidate", "rtc", b"rtc"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["candidate", b"candidate", "rtc", b"rtc"]) -> None: ... - - @typing_extensions.final - class Certificate(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - RTC_FIELD_NUMBER: builtins.int - CERTIFICATE_FIELD_NUMBER: builtins.int - @property - def rtc(self) -> global___RtcStatsData: ... - @property - def certificate(self) -> global___CertificateStats: ... - def __init__( - self, - *, - rtc: global___RtcStatsData | None = ..., - certificate: global___CertificateStats | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["certificate", b"certificate", "rtc", b"rtc"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["certificate", b"certificate", "rtc", b"rtc"]) -> None: ... - - @typing_extensions.final - class Track(google.protobuf.message.Message): - """Deprecated""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - def __init__( - self, - ) -> None: ... - - CODEC_FIELD_NUMBER: builtins.int - INBOUND_RTP_FIELD_NUMBER: builtins.int - OUTBOUND_RTP_FIELD_NUMBER: builtins.int - REMOTE_INBOUND_RTP_FIELD_NUMBER: builtins.int - REMOTE_OUTBOUND_RTP_FIELD_NUMBER: builtins.int - MEDIA_SOURCE_FIELD_NUMBER: builtins.int - MEDIA_PLAYOUT_FIELD_NUMBER: builtins.int - PEER_CONNECTION_FIELD_NUMBER: builtins.int - DATA_CHANNEL_FIELD_NUMBER: builtins.int - TRANSPORT_FIELD_NUMBER: builtins.int - CANDIDATE_PAIR_FIELD_NUMBER: builtins.int - LOCAL_CANDIDATE_FIELD_NUMBER: builtins.int - REMOTE_CANDIDATE_FIELD_NUMBER: builtins.int - CERTIFICATE_FIELD_NUMBER: builtins.int - TRACK_FIELD_NUMBER: builtins.int - @property - def codec(self) -> global___RtcStats.Codec: ... - @property - def inbound_rtp(self) -> global___RtcStats.InboundRtp: ... - @property - def outbound_rtp(self) -> global___RtcStats.OutboundRtp: ... - @property - def remote_inbound_rtp(self) -> global___RtcStats.RemoteInboundRtp: ... - @property - def remote_outbound_rtp(self) -> global___RtcStats.RemoteOutboundRtp: ... - @property - def media_source(self) -> global___RtcStats.MediaSource: ... - @property - def media_playout(self) -> global___RtcStats.MediaPlayout: ... - @property - def peer_connection(self) -> global___RtcStats.PeerConnection: ... - @property - def data_channel(self) -> global___RtcStats.DataChannel: ... - @property - def transport(self) -> global___RtcStats.Transport: ... - @property - def candidate_pair(self) -> global___RtcStats.CandidatePair: ... - @property - def local_candidate(self) -> global___RtcStats.LocalCandidate: ... - @property - def remote_candidate(self) -> global___RtcStats.RemoteCandidate: ... - @property - def certificate(self) -> global___RtcStats.Certificate: ... - @property - def track(self) -> global___RtcStats.Track: ... - def __init__( - self, - *, - codec: global___RtcStats.Codec | None = ..., - inbound_rtp: global___RtcStats.InboundRtp | None = ..., - outbound_rtp: global___RtcStats.OutboundRtp | None = ..., - remote_inbound_rtp: global___RtcStats.RemoteInboundRtp | None = ..., - remote_outbound_rtp: global___RtcStats.RemoteOutboundRtp | None = ..., - media_source: global___RtcStats.MediaSource | None = ..., - media_playout: global___RtcStats.MediaPlayout | None = ..., - peer_connection: global___RtcStats.PeerConnection | None = ..., - data_channel: global___RtcStats.DataChannel | None = ..., - transport: global___RtcStats.Transport | None = ..., - candidate_pair: global___RtcStats.CandidatePair | None = ..., - local_candidate: global___RtcStats.LocalCandidate | None = ..., - remote_candidate: global___RtcStats.RemoteCandidate | None = ..., - certificate: global___RtcStats.Certificate | None = ..., - track: global___RtcStats.Track | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["candidate_pair", b"candidate_pair", "certificate", b"certificate", "codec", b"codec", "data_channel", b"data_channel", "inbound_rtp", b"inbound_rtp", "local_candidate", b"local_candidate", "media_playout", b"media_playout", "media_source", b"media_source", "outbound_rtp", b"outbound_rtp", "peer_connection", b"peer_connection", "remote_candidate", b"remote_candidate", "remote_inbound_rtp", b"remote_inbound_rtp", "remote_outbound_rtp", b"remote_outbound_rtp", "stats", b"stats", "track", b"track", "transport", b"transport"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["candidate_pair", b"candidate_pair", "certificate", b"certificate", "codec", b"codec", "data_channel", b"data_channel", "inbound_rtp", b"inbound_rtp", "local_candidate", b"local_candidate", "media_playout", b"media_playout", "media_source", b"media_source", "outbound_rtp", b"outbound_rtp", "peer_connection", b"peer_connection", "remote_candidate", b"remote_candidate", "remote_inbound_rtp", b"remote_inbound_rtp", "remote_outbound_rtp", b"remote_outbound_rtp", "stats", b"stats", "track", b"track", "transport", b"transport"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["stats", b"stats"]) -> typing_extensions.Literal["codec", "inbound_rtp", "outbound_rtp", "remote_inbound_rtp", "remote_outbound_rtp", "media_source", "media_playout", "peer_connection", "data_channel", "transport", "candidate_pair", "local_candidate", "remote_candidate", "certificate", "track"] | None: ... - -global___RtcStats = RtcStats - -@typing_extensions.final -class RtcStatsData(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ID_FIELD_NUMBER: builtins.int - TIMESTAMP_FIELD_NUMBER: builtins.int - id: builtins.str - timestamp: builtins.int - def __init__( - self, - *, - id: builtins.str = ..., - timestamp: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["id", b"id", "timestamp", b"timestamp"]) -> None: ... - -global___RtcStatsData = RtcStatsData - -@typing_extensions.final -class CodecStats(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PAYLOAD_TYPE_FIELD_NUMBER: builtins.int - TRANSPORT_ID_FIELD_NUMBER: builtins.int - MIME_TYPE_FIELD_NUMBER: builtins.int - CLOCK_RATE_FIELD_NUMBER: builtins.int - CHANNELS_FIELD_NUMBER: builtins.int - SDP_FMTP_LINE_FIELD_NUMBER: builtins.int - payload_type: builtins.int - transport_id: builtins.str - mime_type: builtins.str - clock_rate: builtins.int - channels: builtins.int - sdp_fmtp_line: builtins.str - def __init__( - self, - *, - payload_type: builtins.int = ..., - transport_id: builtins.str = ..., - mime_type: builtins.str = ..., - clock_rate: builtins.int = ..., - channels: builtins.int = ..., - sdp_fmtp_line: builtins.str = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["channels", b"channels", "clock_rate", b"clock_rate", "mime_type", b"mime_type", "payload_type", b"payload_type", "sdp_fmtp_line", b"sdp_fmtp_line", "transport_id", b"transport_id"]) -> None: ... - -global___CodecStats = CodecStats - -@typing_extensions.final -class RtpStreamStats(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - SSRC_FIELD_NUMBER: builtins.int - KIND_FIELD_NUMBER: builtins.int - TRANSPORT_ID_FIELD_NUMBER: builtins.int - CODEC_ID_FIELD_NUMBER: builtins.int - ssrc: builtins.int - kind: builtins.str - transport_id: builtins.str - codec_id: builtins.str - def __init__( - self, - *, - ssrc: builtins.int = ..., - kind: builtins.str = ..., - transport_id: builtins.str = ..., - codec_id: builtins.str = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["codec_id", b"codec_id", "kind", b"kind", "ssrc", b"ssrc", "transport_id", b"transport_id"]) -> None: ... - -global___RtpStreamStats = RtpStreamStats - -@typing_extensions.final -class ReceivedRtpStreamStats(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PACKETS_RECEIVED_FIELD_NUMBER: builtins.int - PACKETS_LOST_FIELD_NUMBER: builtins.int - JITTER_FIELD_NUMBER: builtins.int - packets_received: builtins.int - packets_lost: builtins.int - jitter: builtins.float - def __init__( - self, - *, - packets_received: builtins.int = ..., - packets_lost: builtins.int = ..., - jitter: builtins.float = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["jitter", b"jitter", "packets_lost", b"packets_lost", "packets_received", b"packets_received"]) -> None: ... - -global___ReceivedRtpStreamStats = ReceivedRtpStreamStats - -@typing_extensions.final -class InboundRtpStreamStats(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - TRACK_IDENTIFIER_FIELD_NUMBER: builtins.int - MID_FIELD_NUMBER: builtins.int - REMOTE_ID_FIELD_NUMBER: builtins.int - FRAMES_DECODED_FIELD_NUMBER: builtins.int - KEY_FRAMES_DECODED_FIELD_NUMBER: builtins.int - FRAMES_RENDERED_FIELD_NUMBER: builtins.int - FRAMES_DROPPED_FIELD_NUMBER: builtins.int - FRAME_WIDTH_FIELD_NUMBER: builtins.int - FRAME_HEIGHT_FIELD_NUMBER: builtins.int - FRAMES_PER_SECOND_FIELD_NUMBER: builtins.int - QP_SUM_FIELD_NUMBER: builtins.int - TOTAL_DECODE_TIME_FIELD_NUMBER: builtins.int - TOTAL_INTER_FRAME_DELAY_FIELD_NUMBER: builtins.int - TOTAL_SQUARED_INTER_FRAME_DELAY_FIELD_NUMBER: builtins.int - PAUSE_COUNT_FIELD_NUMBER: builtins.int - TOTAL_PAUSE_DURATION_FIELD_NUMBER: builtins.int - FREEZE_COUNT_FIELD_NUMBER: builtins.int - TOTAL_FREEZE_DURATION_FIELD_NUMBER: builtins.int - LAST_PACKET_RECEIVED_TIMESTAMP_FIELD_NUMBER: builtins.int - HEADER_BYTES_RECEIVED_FIELD_NUMBER: builtins.int - PACKETS_DISCARDED_FIELD_NUMBER: builtins.int - FEC_BYTES_RECEIVED_FIELD_NUMBER: builtins.int - FEC_PACKETS_RECEIVED_FIELD_NUMBER: builtins.int - FEC_PACKETS_DISCARDED_FIELD_NUMBER: builtins.int - BYTES_RECEIVED_FIELD_NUMBER: builtins.int - NACK_COUNT_FIELD_NUMBER: builtins.int - FIR_COUNT_FIELD_NUMBER: builtins.int - PLI_COUNT_FIELD_NUMBER: builtins.int - TOTAL_PROCESSING_DELAY_FIELD_NUMBER: builtins.int - ESTIMATED_PLAYOUT_TIMESTAMP_FIELD_NUMBER: builtins.int - JITTER_BUFFER_DELAY_FIELD_NUMBER: builtins.int - JITTER_BUFFER_TARGET_DELAY_FIELD_NUMBER: builtins.int - JITTER_BUFFER_EMITTED_COUNT_FIELD_NUMBER: builtins.int - JITTER_BUFFER_MINIMUM_DELAY_FIELD_NUMBER: builtins.int - TOTAL_SAMPLES_RECEIVED_FIELD_NUMBER: builtins.int - CONCEALED_SAMPLES_FIELD_NUMBER: builtins.int - SILENT_CONCEALED_SAMPLES_FIELD_NUMBER: builtins.int - CONCEALMENT_EVENTS_FIELD_NUMBER: builtins.int - INSERTED_SAMPLES_FOR_DECELERATION_FIELD_NUMBER: builtins.int - REMOVED_SAMPLES_FOR_ACCELERATION_FIELD_NUMBER: builtins.int - AUDIO_LEVEL_FIELD_NUMBER: builtins.int - TOTAL_AUDIO_ENERGY_FIELD_NUMBER: builtins.int - TOTAL_SAMPLES_DURATION_FIELD_NUMBER: builtins.int - FRAMES_RECEIVED_FIELD_NUMBER: builtins.int - DECODER_IMPLEMENTATION_FIELD_NUMBER: builtins.int - PLAYOUT_ID_FIELD_NUMBER: builtins.int - POWER_EFFICIENT_DECODER_FIELD_NUMBER: builtins.int - FRAMES_ASSEMBLED_FROM_MULTIPLE_PACKETS_FIELD_NUMBER: builtins.int - TOTAL_ASSEMBLY_TIME_FIELD_NUMBER: builtins.int - RETRANSMITTED_PACKETS_RECEIVED_FIELD_NUMBER: builtins.int - RETRANSMITTED_BYTES_RECEIVED_FIELD_NUMBER: builtins.int - RTX_SSRC_FIELD_NUMBER: builtins.int - FEC_SSRC_FIELD_NUMBER: builtins.int - track_identifier: builtins.str - mid: builtins.str - remote_id: builtins.str - frames_decoded: builtins.int - key_frames_decoded: builtins.int - frames_rendered: builtins.int - frames_dropped: builtins.int - frame_width: builtins.int - frame_height: builtins.int - frames_per_second: builtins.float - qp_sum: builtins.int - total_decode_time: builtins.float - total_inter_frame_delay: builtins.float - total_squared_inter_frame_delay: builtins.float - pause_count: builtins.int - total_pause_duration: builtins.float - freeze_count: builtins.int - total_freeze_duration: builtins.float - last_packet_received_timestamp: builtins.float - header_bytes_received: builtins.int - packets_discarded: builtins.int - fec_bytes_received: builtins.int - fec_packets_received: builtins.int - fec_packets_discarded: builtins.int - bytes_received: builtins.int - nack_count: builtins.int - fir_count: builtins.int - pli_count: builtins.int - total_processing_delay: builtins.float - estimated_playout_timestamp: builtins.float - jitter_buffer_delay: builtins.float - jitter_buffer_target_delay: builtins.float - jitter_buffer_emitted_count: builtins.int - jitter_buffer_minimum_delay: builtins.float - total_samples_received: builtins.int - concealed_samples: builtins.int - silent_concealed_samples: builtins.int - concealment_events: builtins.int - inserted_samples_for_deceleration: builtins.int - removed_samples_for_acceleration: builtins.int - audio_level: builtins.float - total_audio_energy: builtins.float - total_samples_duration: builtins.float - frames_received: builtins.int - decoder_implementation: builtins.str - playout_id: builtins.str - power_efficient_decoder: builtins.bool - frames_assembled_from_multiple_packets: builtins.int - total_assembly_time: builtins.float - retransmitted_packets_received: builtins.int - retransmitted_bytes_received: builtins.int - rtx_ssrc: builtins.int - fec_ssrc: builtins.int - def __init__( - self, - *, - track_identifier: builtins.str = ..., - mid: builtins.str = ..., - remote_id: builtins.str = ..., - frames_decoded: builtins.int = ..., - key_frames_decoded: builtins.int = ..., - frames_rendered: builtins.int = ..., - frames_dropped: builtins.int = ..., - frame_width: builtins.int = ..., - frame_height: builtins.int = ..., - frames_per_second: builtins.float = ..., - qp_sum: builtins.int = ..., - total_decode_time: builtins.float = ..., - total_inter_frame_delay: builtins.float = ..., - total_squared_inter_frame_delay: builtins.float = ..., - pause_count: builtins.int = ..., - total_pause_duration: builtins.float = ..., - freeze_count: builtins.int = ..., - total_freeze_duration: builtins.float = ..., - last_packet_received_timestamp: builtins.float = ..., - header_bytes_received: builtins.int = ..., - packets_discarded: builtins.int = ..., - fec_bytes_received: builtins.int = ..., - fec_packets_received: builtins.int = ..., - fec_packets_discarded: builtins.int = ..., - bytes_received: builtins.int = ..., - nack_count: builtins.int = ..., - fir_count: builtins.int = ..., - pli_count: builtins.int = ..., - total_processing_delay: builtins.float = ..., - estimated_playout_timestamp: builtins.float = ..., - jitter_buffer_delay: builtins.float = ..., - jitter_buffer_target_delay: builtins.float = ..., - jitter_buffer_emitted_count: builtins.int = ..., - jitter_buffer_minimum_delay: builtins.float = ..., - total_samples_received: builtins.int = ..., - concealed_samples: builtins.int = ..., - silent_concealed_samples: builtins.int = ..., - concealment_events: builtins.int = ..., - inserted_samples_for_deceleration: builtins.int = ..., - removed_samples_for_acceleration: builtins.int = ..., - audio_level: builtins.float = ..., - total_audio_energy: builtins.float = ..., - total_samples_duration: builtins.float = ..., - frames_received: builtins.int = ..., - decoder_implementation: builtins.str = ..., - playout_id: builtins.str = ..., - power_efficient_decoder: builtins.bool = ..., - frames_assembled_from_multiple_packets: builtins.int = ..., - total_assembly_time: builtins.float = ..., - retransmitted_packets_received: builtins.int = ..., - retransmitted_bytes_received: builtins.int = ..., - rtx_ssrc: builtins.int = ..., - fec_ssrc: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["audio_level", b"audio_level", "bytes_received", b"bytes_received", "concealed_samples", b"concealed_samples", "concealment_events", b"concealment_events", "decoder_implementation", b"decoder_implementation", "estimated_playout_timestamp", b"estimated_playout_timestamp", "fec_bytes_received", b"fec_bytes_received", "fec_packets_discarded", b"fec_packets_discarded", "fec_packets_received", b"fec_packets_received", "fec_ssrc", b"fec_ssrc", "fir_count", b"fir_count", "frame_height", b"frame_height", "frame_width", b"frame_width", "frames_assembled_from_multiple_packets", b"frames_assembled_from_multiple_packets", "frames_decoded", b"frames_decoded", "frames_dropped", b"frames_dropped", "frames_per_second", b"frames_per_second", "frames_received", b"frames_received", "frames_rendered", b"frames_rendered", "freeze_count", b"freeze_count", "header_bytes_received", b"header_bytes_received", "inserted_samples_for_deceleration", b"inserted_samples_for_deceleration", "jitter_buffer_delay", b"jitter_buffer_delay", "jitter_buffer_emitted_count", b"jitter_buffer_emitted_count", "jitter_buffer_minimum_delay", b"jitter_buffer_minimum_delay", "jitter_buffer_target_delay", b"jitter_buffer_target_delay", "key_frames_decoded", b"key_frames_decoded", "last_packet_received_timestamp", b"last_packet_received_timestamp", "mid", b"mid", "nack_count", b"nack_count", "packets_discarded", b"packets_discarded", "pause_count", b"pause_count", "playout_id", b"playout_id", "pli_count", b"pli_count", "power_efficient_decoder", b"power_efficient_decoder", "qp_sum", b"qp_sum", "remote_id", b"remote_id", "removed_samples_for_acceleration", b"removed_samples_for_acceleration", "retransmitted_bytes_received", b"retransmitted_bytes_received", "retransmitted_packets_received", b"retransmitted_packets_received", "rtx_ssrc", b"rtx_ssrc", "silent_concealed_samples", b"silent_concealed_samples", "total_assembly_time", b"total_assembly_time", "total_audio_energy", b"total_audio_energy", "total_decode_time", b"total_decode_time", "total_freeze_duration", b"total_freeze_duration", "total_inter_frame_delay", b"total_inter_frame_delay", "total_pause_duration", b"total_pause_duration", "total_processing_delay", b"total_processing_delay", "total_samples_duration", b"total_samples_duration", "total_samples_received", b"total_samples_received", "total_squared_inter_frame_delay", b"total_squared_inter_frame_delay", "track_identifier", b"track_identifier"]) -> None: ... - -global___InboundRtpStreamStats = InboundRtpStreamStats - -@typing_extensions.final -class SentRtpStreamStats(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PACKETS_SENT_FIELD_NUMBER: builtins.int - BYTES_SENT_FIELD_NUMBER: builtins.int - packets_sent: builtins.int - bytes_sent: builtins.int - def __init__( - self, - *, - packets_sent: builtins.int = ..., - bytes_sent: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["bytes_sent", b"bytes_sent", "packets_sent", b"packets_sent"]) -> None: ... - -global___SentRtpStreamStats = SentRtpStreamStats - -@typing_extensions.final -class OutboundRtpStreamStats(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - @typing_extensions.final - class QualityLimitationDurationsEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.float - def __init__( - self, - *, - key: builtins.str = ..., - value: builtins.float = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... - - MID_FIELD_NUMBER: builtins.int - MEDIA_SOURCE_ID_FIELD_NUMBER: builtins.int - REMOTE_ID_FIELD_NUMBER: builtins.int - RID_FIELD_NUMBER: builtins.int - HEADER_BYTES_SENT_FIELD_NUMBER: builtins.int - RETRANSMITTED_PACKETS_SENT_FIELD_NUMBER: builtins.int - RETRANSMITTED_BYTES_SENT_FIELD_NUMBER: builtins.int - RTX_SSRC_FIELD_NUMBER: builtins.int - TARGET_BITRATE_FIELD_NUMBER: builtins.int - TOTAL_ENCODED_BYTES_TARGET_FIELD_NUMBER: builtins.int - FRAME_WIDTH_FIELD_NUMBER: builtins.int - FRAME_HEIGHT_FIELD_NUMBER: builtins.int - FRAMES_PER_SECOND_FIELD_NUMBER: builtins.int - FRAMES_SENT_FIELD_NUMBER: builtins.int - HUGE_FRAMES_SENT_FIELD_NUMBER: builtins.int - FRAMES_ENCODED_FIELD_NUMBER: builtins.int - KEY_FRAMES_ENCODED_FIELD_NUMBER: builtins.int - QP_SUM_FIELD_NUMBER: builtins.int - TOTAL_ENCODE_TIME_FIELD_NUMBER: builtins.int - TOTAL_PACKET_SEND_DELAY_FIELD_NUMBER: builtins.int - QUALITY_LIMITATION_REASON_FIELD_NUMBER: builtins.int - QUALITY_LIMITATION_DURATIONS_FIELD_NUMBER: builtins.int - QUALITY_LIMITATION_RESOLUTION_CHANGES_FIELD_NUMBER: builtins.int - NACK_COUNT_FIELD_NUMBER: builtins.int - FIR_COUNT_FIELD_NUMBER: builtins.int - PLI_COUNT_FIELD_NUMBER: builtins.int - ENCODER_IMPLEMENTATION_FIELD_NUMBER: builtins.int - POWER_EFFICIENT_ENCODER_FIELD_NUMBER: builtins.int - ACTIVE_FIELD_NUMBER: builtins.int - SCALIBILITY_MODE_FIELD_NUMBER: builtins.int - mid: builtins.str - media_source_id: builtins.str - remote_id: builtins.str - rid: builtins.str - header_bytes_sent: builtins.int - retransmitted_packets_sent: builtins.int - retransmitted_bytes_sent: builtins.int - rtx_ssrc: builtins.int - target_bitrate: builtins.float - total_encoded_bytes_target: builtins.int - frame_width: builtins.int - frame_height: builtins.int - frames_per_second: builtins.float - frames_sent: builtins.int - huge_frames_sent: builtins.int - frames_encoded: builtins.int - key_frames_encoded: builtins.int - qp_sum: builtins.int - total_encode_time: builtins.float - total_packet_send_delay: builtins.float - quality_limitation_reason: global___QualityLimitationReason.ValueType - @property - def quality_limitation_durations(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.float]: ... - quality_limitation_resolution_changes: builtins.int - nack_count: builtins.int - fir_count: builtins.int - pli_count: builtins.int - encoder_implementation: builtins.str - power_efficient_encoder: builtins.bool - active: builtins.bool - scalibility_mode: builtins.str - def __init__( - self, - *, - mid: builtins.str = ..., - media_source_id: builtins.str = ..., - remote_id: builtins.str = ..., - rid: builtins.str = ..., - header_bytes_sent: builtins.int = ..., - retransmitted_packets_sent: builtins.int = ..., - retransmitted_bytes_sent: builtins.int = ..., - rtx_ssrc: builtins.int = ..., - target_bitrate: builtins.float = ..., - total_encoded_bytes_target: builtins.int = ..., - frame_width: builtins.int = ..., - frame_height: builtins.int = ..., - frames_per_second: builtins.float = ..., - frames_sent: builtins.int = ..., - huge_frames_sent: builtins.int = ..., - frames_encoded: builtins.int = ..., - key_frames_encoded: builtins.int = ..., - qp_sum: builtins.int = ..., - total_encode_time: builtins.float = ..., - total_packet_send_delay: builtins.float = ..., - quality_limitation_reason: global___QualityLimitationReason.ValueType = ..., - quality_limitation_durations: collections.abc.Mapping[builtins.str, builtins.float] | None = ..., - quality_limitation_resolution_changes: builtins.int = ..., - nack_count: builtins.int = ..., - fir_count: builtins.int = ..., - pli_count: builtins.int = ..., - encoder_implementation: builtins.str = ..., - power_efficient_encoder: builtins.bool = ..., - active: builtins.bool = ..., - scalibility_mode: builtins.str = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["active", b"active", "encoder_implementation", b"encoder_implementation", "fir_count", b"fir_count", "frame_height", b"frame_height", "frame_width", b"frame_width", "frames_encoded", b"frames_encoded", "frames_per_second", b"frames_per_second", "frames_sent", b"frames_sent", "header_bytes_sent", b"header_bytes_sent", "huge_frames_sent", b"huge_frames_sent", "key_frames_encoded", b"key_frames_encoded", "media_source_id", b"media_source_id", "mid", b"mid", "nack_count", b"nack_count", "pli_count", b"pli_count", "power_efficient_encoder", b"power_efficient_encoder", "qp_sum", b"qp_sum", "quality_limitation_durations", b"quality_limitation_durations", "quality_limitation_reason", b"quality_limitation_reason", "quality_limitation_resolution_changes", b"quality_limitation_resolution_changes", "remote_id", b"remote_id", "retransmitted_bytes_sent", b"retransmitted_bytes_sent", "retransmitted_packets_sent", b"retransmitted_packets_sent", "rid", b"rid", "rtx_ssrc", b"rtx_ssrc", "scalibility_mode", b"scalibility_mode", "target_bitrate", b"target_bitrate", "total_encode_time", b"total_encode_time", "total_encoded_bytes_target", b"total_encoded_bytes_target", "total_packet_send_delay", b"total_packet_send_delay"]) -> None: ... - -global___OutboundRtpStreamStats = OutboundRtpStreamStats - -@typing_extensions.final -class RemoteInboundRtpStreamStats(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - LOCAL_ID_FIELD_NUMBER: builtins.int - ROUND_TRIP_TIME_FIELD_NUMBER: builtins.int - TOTAL_ROUND_TRIP_TIME_FIELD_NUMBER: builtins.int - FRACTION_LOST_FIELD_NUMBER: builtins.int - ROUND_TRIP_TIME_MEASUREMENTS_FIELD_NUMBER: builtins.int - local_id: builtins.str - round_trip_time: builtins.float - total_round_trip_time: builtins.float - fraction_lost: builtins.float - round_trip_time_measurements: builtins.int - def __init__( - self, - *, - local_id: builtins.str = ..., - round_trip_time: builtins.float = ..., - total_round_trip_time: builtins.float = ..., - fraction_lost: builtins.float = ..., - round_trip_time_measurements: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["fraction_lost", b"fraction_lost", "local_id", b"local_id", "round_trip_time", b"round_trip_time", "round_trip_time_measurements", b"round_trip_time_measurements", "total_round_trip_time", b"total_round_trip_time"]) -> None: ... - -global___RemoteInboundRtpStreamStats = RemoteInboundRtpStreamStats - -@typing_extensions.final -class RemoteOutboundRtpStreamStats(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - LOCAL_ID_FIELD_NUMBER: builtins.int - REMOTE_TIMESTAMP_FIELD_NUMBER: builtins.int - REPORTS_SENT_FIELD_NUMBER: builtins.int - ROUND_TRIP_TIME_FIELD_NUMBER: builtins.int - TOTAL_ROUND_TRIP_TIME_FIELD_NUMBER: builtins.int - ROUND_TRIP_TIME_MEASUREMENTS_FIELD_NUMBER: builtins.int - local_id: builtins.str - remote_timestamp: builtins.float - reports_sent: builtins.int - round_trip_time: builtins.float - total_round_trip_time: builtins.float - round_trip_time_measurements: builtins.int - def __init__( - self, - *, - local_id: builtins.str = ..., - remote_timestamp: builtins.float = ..., - reports_sent: builtins.int = ..., - round_trip_time: builtins.float = ..., - total_round_trip_time: builtins.float = ..., - round_trip_time_measurements: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["local_id", b"local_id", "remote_timestamp", b"remote_timestamp", "reports_sent", b"reports_sent", "round_trip_time", b"round_trip_time", "round_trip_time_measurements", b"round_trip_time_measurements", "total_round_trip_time", b"total_round_trip_time"]) -> None: ... - -global___RemoteOutboundRtpStreamStats = RemoteOutboundRtpStreamStats - -@typing_extensions.final -class MediaSourceStats(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - TRACK_IDENTIFIER_FIELD_NUMBER: builtins.int - KIND_FIELD_NUMBER: builtins.int - track_identifier: builtins.str - kind: builtins.str - def __init__( - self, - *, - track_identifier: builtins.str = ..., - kind: builtins.str = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["kind", b"kind", "track_identifier", b"track_identifier"]) -> None: ... - -global___MediaSourceStats = MediaSourceStats - -@typing_extensions.final -class AudioSourceStats(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - AUDIO_LEVEL_FIELD_NUMBER: builtins.int - TOTAL_AUDIO_ENERGY_FIELD_NUMBER: builtins.int - TOTAL_SAMPLES_DURATION_FIELD_NUMBER: builtins.int - ECHO_RETURN_LOSS_FIELD_NUMBER: builtins.int - ECHO_RETURN_LOSS_ENHANCEMENT_FIELD_NUMBER: builtins.int - DROPPED_SAMPLES_DURATION_FIELD_NUMBER: builtins.int - DROPPED_SAMPLES_EVENTS_FIELD_NUMBER: builtins.int - TOTAL_CAPTURE_DELAY_FIELD_NUMBER: builtins.int - TOTAL_SAMPLES_CAPTURED_FIELD_NUMBER: builtins.int - audio_level: builtins.float - total_audio_energy: builtins.float - total_samples_duration: builtins.float - echo_return_loss: builtins.float - echo_return_loss_enhancement: builtins.float - dropped_samples_duration: builtins.float - dropped_samples_events: builtins.int - total_capture_delay: builtins.float - total_samples_captured: builtins.int - def __init__( - self, - *, - audio_level: builtins.float = ..., - total_audio_energy: builtins.float = ..., - total_samples_duration: builtins.float = ..., - echo_return_loss: builtins.float = ..., - echo_return_loss_enhancement: builtins.float = ..., - dropped_samples_duration: builtins.float = ..., - dropped_samples_events: builtins.int = ..., - total_capture_delay: builtins.float = ..., - total_samples_captured: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["audio_level", b"audio_level", "dropped_samples_duration", b"dropped_samples_duration", "dropped_samples_events", b"dropped_samples_events", "echo_return_loss", b"echo_return_loss", "echo_return_loss_enhancement", b"echo_return_loss_enhancement", "total_audio_energy", b"total_audio_energy", "total_capture_delay", b"total_capture_delay", "total_samples_captured", b"total_samples_captured", "total_samples_duration", b"total_samples_duration"]) -> None: ... - -global___AudioSourceStats = AudioSourceStats - -@typing_extensions.final -class VideoSourceStats(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - WIDTH_FIELD_NUMBER: builtins.int - HEIGHT_FIELD_NUMBER: builtins.int - FRAMES_FIELD_NUMBER: builtins.int - FRAMES_PER_SECOND_FIELD_NUMBER: builtins.int - width: builtins.int - height: builtins.int - frames: builtins.int - frames_per_second: builtins.float - def __init__( - self, - *, - width: builtins.int = ..., - height: builtins.int = ..., - frames: builtins.int = ..., - frames_per_second: builtins.float = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["frames", b"frames", "frames_per_second", b"frames_per_second", "height", b"height", "width", b"width"]) -> None: ... - -global___VideoSourceStats = VideoSourceStats - -@typing_extensions.final -class AudioPlayoutStats(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - KIND_FIELD_NUMBER: builtins.int - SYNTHESIZED_SAMPLES_DURATION_FIELD_NUMBER: builtins.int - SYNTHESIZED_SAMPLES_EVENTS_FIELD_NUMBER: builtins.int - TOTAL_SAMPLES_DURATION_FIELD_NUMBER: builtins.int - TOTAL_PLAYOUT_DELAY_FIELD_NUMBER: builtins.int - TOTAL_SAMPLES_COUNT_FIELD_NUMBER: builtins.int - kind: builtins.str - synthesized_samples_duration: builtins.float - synthesized_samples_events: builtins.int - total_samples_duration: builtins.float - total_playout_delay: builtins.float - total_samples_count: builtins.int - def __init__( - self, - *, - kind: builtins.str = ..., - synthesized_samples_duration: builtins.float = ..., - synthesized_samples_events: builtins.int = ..., - total_samples_duration: builtins.float = ..., - total_playout_delay: builtins.float = ..., - total_samples_count: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["kind", b"kind", "synthesized_samples_duration", b"synthesized_samples_duration", "synthesized_samples_events", b"synthesized_samples_events", "total_playout_delay", b"total_playout_delay", "total_samples_count", b"total_samples_count", "total_samples_duration", b"total_samples_duration"]) -> None: ... - -global___AudioPlayoutStats = AudioPlayoutStats - -@typing_extensions.final -class PeerConnectionStats(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - DATA_CHANNELS_OPENED_FIELD_NUMBER: builtins.int - DATA_CHANNELS_CLOSED_FIELD_NUMBER: builtins.int - data_channels_opened: builtins.int - data_channels_closed: builtins.int - def __init__( - self, - *, - data_channels_opened: builtins.int = ..., - data_channels_closed: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["data_channels_closed", b"data_channels_closed", "data_channels_opened", b"data_channels_opened"]) -> None: ... - -global___PeerConnectionStats = PeerConnectionStats - -@typing_extensions.final -class DataChannelStats(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - LABEL_FIELD_NUMBER: builtins.int - PROTOCOL_FIELD_NUMBER: builtins.int - DATA_CHANNEL_IDENTIFIER_FIELD_NUMBER: builtins.int - STATE_FIELD_NUMBER: builtins.int - MESSAGES_SENT_FIELD_NUMBER: builtins.int - BYTES_SENT_FIELD_NUMBER: builtins.int - MESSAGES_RECEIVED_FIELD_NUMBER: builtins.int - BYTES_RECEIVED_FIELD_NUMBER: builtins.int - label: builtins.str - protocol: builtins.str - data_channel_identifier: builtins.int - state: global___DataChannelState.ValueType - messages_sent: builtins.int - bytes_sent: builtins.int - messages_received: builtins.int - bytes_received: builtins.int - def __init__( - self, - *, - label: builtins.str = ..., - protocol: builtins.str = ..., - data_channel_identifier: builtins.int = ..., - state: global___DataChannelState.ValueType | None = ..., - messages_sent: builtins.int = ..., - bytes_sent: builtins.int = ..., - messages_received: builtins.int = ..., - bytes_received: builtins.int = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["_state", b"_state", "state", b"state"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["_state", b"_state", "bytes_received", b"bytes_received", "bytes_sent", b"bytes_sent", "data_channel_identifier", b"data_channel_identifier", "label", b"label", "messages_received", b"messages_received", "messages_sent", b"messages_sent", "protocol", b"protocol", "state", b"state"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["_state", b"_state"]) -> typing_extensions.Literal["state"] | None: ... - -global___DataChannelStats = DataChannelStats - -@typing_extensions.final -class TransportStats(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PACKETS_SENT_FIELD_NUMBER: builtins.int - PACKETS_RECEIVED_FIELD_NUMBER: builtins.int - BYTES_SENT_FIELD_NUMBER: builtins.int - BYTES_RECEIVED_FIELD_NUMBER: builtins.int - ICE_ROLE_FIELD_NUMBER: builtins.int - ICE_LOCAL_USERNAME_FRAGMENT_FIELD_NUMBER: builtins.int - DTLS_STATE_FIELD_NUMBER: builtins.int - ICE_STATE_FIELD_NUMBER: builtins.int - SELECTED_CANDIDATE_PAIR_ID_FIELD_NUMBER: builtins.int - LOCAL_CERTIFICATE_ID_FIELD_NUMBER: builtins.int - REMOTE_CERTIFICATE_ID_FIELD_NUMBER: builtins.int - TLS_VERSION_FIELD_NUMBER: builtins.int - DTLS_CIPHER_FIELD_NUMBER: builtins.int - DTLS_ROLE_FIELD_NUMBER: builtins.int - SRTP_CIPHER_FIELD_NUMBER: builtins.int - SELECTED_CANDIDATE_PAIR_CHANGES_FIELD_NUMBER: builtins.int - packets_sent: builtins.int - packets_received: builtins.int - bytes_sent: builtins.int - bytes_received: builtins.int - ice_role: global___IceRole.ValueType - ice_local_username_fragment: builtins.str - dtls_state: global___DtlsTransportState.ValueType - ice_state: global___IceTransportState.ValueType - selected_candidate_pair_id: builtins.str - local_certificate_id: builtins.str - remote_certificate_id: builtins.str - tls_version: builtins.str - dtls_cipher: builtins.str - dtls_role: global___DtlsRole.ValueType - srtp_cipher: builtins.str - selected_candidate_pair_changes: builtins.int - def __init__( - self, - *, - packets_sent: builtins.int = ..., - packets_received: builtins.int = ..., - bytes_sent: builtins.int = ..., - bytes_received: builtins.int = ..., - ice_role: global___IceRole.ValueType = ..., - ice_local_username_fragment: builtins.str = ..., - dtls_state: global___DtlsTransportState.ValueType | None = ..., - ice_state: global___IceTransportState.ValueType | None = ..., - selected_candidate_pair_id: builtins.str = ..., - local_certificate_id: builtins.str = ..., - remote_certificate_id: builtins.str = ..., - tls_version: builtins.str = ..., - dtls_cipher: builtins.str = ..., - dtls_role: global___DtlsRole.ValueType = ..., - srtp_cipher: builtins.str = ..., - selected_candidate_pair_changes: builtins.int = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["_dtls_state", b"_dtls_state", "_ice_state", b"_ice_state", "dtls_state", b"dtls_state", "ice_state", b"ice_state"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["_dtls_state", b"_dtls_state", "_ice_state", b"_ice_state", "bytes_received", b"bytes_received", "bytes_sent", b"bytes_sent", "dtls_cipher", b"dtls_cipher", "dtls_role", b"dtls_role", "dtls_state", b"dtls_state", "ice_local_username_fragment", b"ice_local_username_fragment", "ice_role", b"ice_role", "ice_state", b"ice_state", "local_certificate_id", b"local_certificate_id", "packets_received", b"packets_received", "packets_sent", b"packets_sent", "remote_certificate_id", b"remote_certificate_id", "selected_candidate_pair_changes", b"selected_candidate_pair_changes", "selected_candidate_pair_id", b"selected_candidate_pair_id", "srtp_cipher", b"srtp_cipher", "tls_version", b"tls_version"]) -> None: ... - @typing.overload - def WhichOneof(self, oneof_group: typing_extensions.Literal["_dtls_state", b"_dtls_state"]) -> typing_extensions.Literal["dtls_state"] | None: ... - @typing.overload - def WhichOneof(self, oneof_group: typing_extensions.Literal["_ice_state", b"_ice_state"]) -> typing_extensions.Literal["ice_state"] | None: ... - -global___TransportStats = TransportStats - -@typing_extensions.final -class CandidatePairStats(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - TRANSPORT_ID_FIELD_NUMBER: builtins.int - LOCAL_CANDIDATE_ID_FIELD_NUMBER: builtins.int - REMOTE_CANDIDATE_ID_FIELD_NUMBER: builtins.int - STATE_FIELD_NUMBER: builtins.int - NOMINATED_FIELD_NUMBER: builtins.int - PACKETS_SENT_FIELD_NUMBER: builtins.int - PACKETS_RECEIVED_FIELD_NUMBER: builtins.int - BYTES_SENT_FIELD_NUMBER: builtins.int - BYTES_RECEIVED_FIELD_NUMBER: builtins.int - LAST_PACKET_SENT_TIMESTAMP_FIELD_NUMBER: builtins.int - LAST_PACKET_RECEIVED_TIMESTAMP_FIELD_NUMBER: builtins.int - TOTAL_ROUND_TRIP_TIME_FIELD_NUMBER: builtins.int - CURRENT_ROUND_TRIP_TIME_FIELD_NUMBER: builtins.int - AVAILABLE_OUTGOING_BITRATE_FIELD_NUMBER: builtins.int - AVAILABLE_INCOMING_BITRATE_FIELD_NUMBER: builtins.int - REQUESTS_RECEIVED_FIELD_NUMBER: builtins.int - REQUESTS_SENT_FIELD_NUMBER: builtins.int - RESPONSES_RECEIVED_FIELD_NUMBER: builtins.int - RESPONSES_SENT_FIELD_NUMBER: builtins.int - CONSENT_REQUESTS_SENT_FIELD_NUMBER: builtins.int - PACKETS_DISCARDED_ON_SEND_FIELD_NUMBER: builtins.int - BYTES_DISCARDED_ON_SEND_FIELD_NUMBER: builtins.int - transport_id: builtins.str - local_candidate_id: builtins.str - remote_candidate_id: builtins.str - state: global___IceCandidatePairState.ValueType - nominated: builtins.bool - packets_sent: builtins.int - packets_received: builtins.int - bytes_sent: builtins.int - bytes_received: builtins.int - last_packet_sent_timestamp: builtins.float - last_packet_received_timestamp: builtins.float - total_round_trip_time: builtins.float - current_round_trip_time: builtins.float - available_outgoing_bitrate: builtins.float - available_incoming_bitrate: builtins.float - requests_received: builtins.int - requests_sent: builtins.int - responses_received: builtins.int - responses_sent: builtins.int - consent_requests_sent: builtins.int - packets_discarded_on_send: builtins.int - bytes_discarded_on_send: builtins.int - def __init__( - self, - *, - transport_id: builtins.str = ..., - local_candidate_id: builtins.str = ..., - remote_candidate_id: builtins.str = ..., - state: global___IceCandidatePairState.ValueType | None = ..., - nominated: builtins.bool = ..., - packets_sent: builtins.int = ..., - packets_received: builtins.int = ..., - bytes_sent: builtins.int = ..., - bytes_received: builtins.int = ..., - last_packet_sent_timestamp: builtins.float = ..., - last_packet_received_timestamp: builtins.float = ..., - total_round_trip_time: builtins.float = ..., - current_round_trip_time: builtins.float = ..., - available_outgoing_bitrate: builtins.float = ..., - available_incoming_bitrate: builtins.float = ..., - requests_received: builtins.int = ..., - requests_sent: builtins.int = ..., - responses_received: builtins.int = ..., - responses_sent: builtins.int = ..., - consent_requests_sent: builtins.int = ..., - packets_discarded_on_send: builtins.int = ..., - bytes_discarded_on_send: builtins.int = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["_state", b"_state", "state", b"state"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["_state", b"_state", "available_incoming_bitrate", b"available_incoming_bitrate", "available_outgoing_bitrate", b"available_outgoing_bitrate", "bytes_discarded_on_send", b"bytes_discarded_on_send", "bytes_received", b"bytes_received", "bytes_sent", b"bytes_sent", "consent_requests_sent", b"consent_requests_sent", "current_round_trip_time", b"current_round_trip_time", "last_packet_received_timestamp", b"last_packet_received_timestamp", "last_packet_sent_timestamp", b"last_packet_sent_timestamp", "local_candidate_id", b"local_candidate_id", "nominated", b"nominated", "packets_discarded_on_send", b"packets_discarded_on_send", "packets_received", b"packets_received", "packets_sent", b"packets_sent", "remote_candidate_id", b"remote_candidate_id", "requests_received", b"requests_received", "requests_sent", b"requests_sent", "responses_received", b"responses_received", "responses_sent", b"responses_sent", "state", b"state", "total_round_trip_time", b"total_round_trip_time", "transport_id", b"transport_id"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["_state", b"_state"]) -> typing_extensions.Literal["state"] | None: ... - -global___CandidatePairStats = CandidatePairStats - -@typing_extensions.final -class IceCandidateStats(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - TRANSPORT_ID_FIELD_NUMBER: builtins.int - ADDRESS_FIELD_NUMBER: builtins.int - PORT_FIELD_NUMBER: builtins.int - PROTOCOL_FIELD_NUMBER: builtins.int - CANDIDATE_TYPE_FIELD_NUMBER: builtins.int - PRIORITY_FIELD_NUMBER: builtins.int - URL_FIELD_NUMBER: builtins.int - RELAY_PROTOCOL_FIELD_NUMBER: builtins.int - FOUNDATION_FIELD_NUMBER: builtins.int - RELATED_ADDRESS_FIELD_NUMBER: builtins.int - RELATED_PORT_FIELD_NUMBER: builtins.int - USERNAME_FRAGMENT_FIELD_NUMBER: builtins.int - TCP_TYPE_FIELD_NUMBER: builtins.int - transport_id: builtins.str - address: builtins.str - port: builtins.int - protocol: builtins.str - candidate_type: global___IceCandidateType.ValueType - priority: builtins.int - url: builtins.str - relay_protocol: global___IceServerTransportProtocol.ValueType - foundation: builtins.str - related_address: builtins.str - related_port: builtins.int - username_fragment: builtins.str - tcp_type: global___IceTcpCandidateType.ValueType - def __init__( - self, - *, - transport_id: builtins.str = ..., - address: builtins.str = ..., - port: builtins.int = ..., - protocol: builtins.str = ..., - candidate_type: global___IceCandidateType.ValueType | None = ..., - priority: builtins.int = ..., - url: builtins.str = ..., - relay_protocol: global___IceServerTransportProtocol.ValueType | None = ..., - foundation: builtins.str = ..., - related_address: builtins.str = ..., - related_port: builtins.int = ..., - username_fragment: builtins.str = ..., - tcp_type: global___IceTcpCandidateType.ValueType | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["_candidate_type", b"_candidate_type", "_relay_protocol", b"_relay_protocol", "_tcp_type", b"_tcp_type", "candidate_type", b"candidate_type", "relay_protocol", b"relay_protocol", "tcp_type", b"tcp_type"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["_candidate_type", b"_candidate_type", "_relay_protocol", b"_relay_protocol", "_tcp_type", b"_tcp_type", "address", b"address", "candidate_type", b"candidate_type", "foundation", b"foundation", "port", b"port", "priority", b"priority", "protocol", b"protocol", "related_address", b"related_address", "related_port", b"related_port", "relay_protocol", b"relay_protocol", "tcp_type", b"tcp_type", "transport_id", b"transport_id", "url", b"url", "username_fragment", b"username_fragment"]) -> None: ... - @typing.overload - def WhichOneof(self, oneof_group: typing_extensions.Literal["_candidate_type", b"_candidate_type"]) -> typing_extensions.Literal["candidate_type"] | None: ... - @typing.overload - def WhichOneof(self, oneof_group: typing_extensions.Literal["_relay_protocol", b"_relay_protocol"]) -> typing_extensions.Literal["relay_protocol"] | None: ... - @typing.overload - def WhichOneof(self, oneof_group: typing_extensions.Literal["_tcp_type", b"_tcp_type"]) -> typing_extensions.Literal["tcp_type"] | None: ... - -global___IceCandidateStats = IceCandidateStats - -@typing_extensions.final -class CertificateStats(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - FINGERPRINT_FIELD_NUMBER: builtins.int - FINGERPRINT_ALGORITHM_FIELD_NUMBER: builtins.int - BASE64_CERTIFICATE_FIELD_NUMBER: builtins.int - ISSUER_CERTIFICATE_ID_FIELD_NUMBER: builtins.int - fingerprint: builtins.str - fingerprint_algorithm: builtins.str - base64_certificate: builtins.str - issuer_certificate_id: builtins.str - def __init__( - self, - *, - fingerprint: builtins.str = ..., - fingerprint_algorithm: builtins.str = ..., - base64_certificate: builtins.str = ..., - issuer_certificate_id: builtins.str = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["base64_certificate", b"base64_certificate", "fingerprint", b"fingerprint", "fingerprint_algorithm", b"fingerprint_algorithm", "issuer_certificate_id", b"issuer_certificate_id"]) -> None: ... - -global___CertificateStats = CertificateStats diff --git a/livekit-rtc/livekit/rtc/_proto/track_pb2.py b/livekit-rtc/livekit/rtc/_proto/track_pb2.py deleted file mode 100644 index 39a25ebf..00000000 --- a/livekit-rtc/livekit/rtc/_proto/track_pb2.py +++ /dev/null @@ -1,58 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: track.proto -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import e2ee_pb2 as e2ee__pb2 -from . import handle_pb2 as handle__pb2 -from . import stats_pb2 as stats__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x0btrack.proto\x12\rlivekit.proto\x1a\ne2ee.proto\x1a\x0chandle.proto\x1a\x0bstats.proto\">\n\x17\x43reateVideoTrackRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x15\n\rsource_handle\x18\x02 \x01(\x04\"D\n\x18\x43reateVideoTrackResponse\x12(\n\x05track\x18\x01 \x01(\x0b\x32\x19.livekit.proto.OwnedTrack\">\n\x17\x43reateAudioTrackRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x15\n\rsource_handle\x18\x02 \x01(\x04\"D\n\x18\x43reateAudioTrackResponse\x12(\n\x05track\x18\x01 \x01(\x0b\x32\x19.livekit.proto.OwnedTrack\"\'\n\x0fGetStatsRequest\x12\x14\n\x0ctrack_handle\x18\x01 \x01(\x04\"$\n\x10GetStatsResponse\x12\x10\n\x08\x61sync_id\x18\x01 \x01(\x04\"j\n\x10GetStatsCallback\x12\x10\n\x08\x61sync_id\x18\x01 \x01(\x04\x12\x12\n\x05\x65rror\x18\x02 \x01(\tH\x00\x88\x01\x01\x12&\n\x05stats\x18\x03 \x03(\x0b\x32\x17.livekit.proto.RtcStatsB\x08\n\x06_error\"\x0c\n\nTrackEvent\"\xa3\x02\n\x14TrackPublicationInfo\x12\x0b\n\x03sid\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12&\n\x04kind\x18\x03 \x01(\x0e\x32\x18.livekit.proto.TrackKind\x12*\n\x06source\x18\x04 \x01(\x0e\x32\x1a.livekit.proto.TrackSource\x12\x13\n\x0bsimulcasted\x18\x05 \x01(\x08\x12\r\n\x05width\x18\x06 \x01(\r\x12\x0e\n\x06height\x18\x07 \x01(\r\x12\x11\n\tmime_type\x18\x08 \x01(\t\x12\r\n\x05muted\x18\t \x01(\x08\x12\x0e\n\x06remote\x18\n \x01(\x08\x12\x36\n\x0f\x65ncryption_type\x18\x0b \x01(\x0e\x32\x1d.livekit.proto.EncryptionType\"y\n\x15OwnedTrackPublication\x12-\n\x06handle\x18\x01 \x01(\x0b\x32\x1d.livekit.proto.FfiOwnedHandle\x12\x31\n\x04info\x18\x02 \x01(\x0b\x32#.livekit.proto.TrackPublicationInfo\"\x9f\x01\n\tTrackInfo\x12\x0b\n\x03sid\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12&\n\x04kind\x18\x03 \x01(\x0e\x32\x18.livekit.proto.TrackKind\x12\x30\n\x0cstream_state\x18\x04 \x01(\x0e\x32\x1a.livekit.proto.StreamState\x12\r\n\x05muted\x18\x05 \x01(\x08\x12\x0e\n\x06remote\x18\x06 \x01(\x08\"c\n\nOwnedTrack\x12-\n\x06handle\x18\x01 \x01(\x0b\x32\x1d.livekit.proto.FfiOwnedHandle\x12&\n\x04info\x18\x02 \x01(\x0b\x32\x18.livekit.proto.TrackInfo*=\n\tTrackKind\x12\x10\n\x0cKIND_UNKNOWN\x10\x00\x12\x0e\n\nKIND_AUDIO\x10\x01\x12\x0e\n\nKIND_VIDEO\x10\x02*\x81\x01\n\x0bTrackSource\x12\x12\n\x0eSOURCE_UNKNOWN\x10\x00\x12\x11\n\rSOURCE_CAMERA\x10\x01\x12\x15\n\x11SOURCE_MICROPHONE\x10\x02\x12\x16\n\x12SOURCE_SCREENSHARE\x10\x03\x12\x1c\n\x18SOURCE_SCREENSHARE_AUDIO\x10\x04*D\n\x0bStreamState\x12\x11\n\rSTATE_UNKNOWN\x10\x00\x12\x10\n\x0cSTATE_ACTIVE\x10\x01\x12\x10\n\x0cSTATE_PAUSED\x10\x02\x42\x10\xaa\x02\rLiveKit.Protob\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'track_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\252\002\rLiveKit.Proto' - _globals['_TRACKKIND']._serialized_start=1218 - _globals['_TRACKKIND']._serialized_end=1279 - _globals['_TRACKSOURCE']._serialized_start=1282 - _globals['_TRACKSOURCE']._serialized_end=1411 - _globals['_STREAMSTATE']._serialized_start=1413 - _globals['_STREAMSTATE']._serialized_end=1481 - _globals['_CREATEVIDEOTRACKREQUEST']._serialized_start=69 - _globals['_CREATEVIDEOTRACKREQUEST']._serialized_end=131 - _globals['_CREATEVIDEOTRACKRESPONSE']._serialized_start=133 - _globals['_CREATEVIDEOTRACKRESPONSE']._serialized_end=201 - _globals['_CREATEAUDIOTRACKREQUEST']._serialized_start=203 - _globals['_CREATEAUDIOTRACKREQUEST']._serialized_end=265 - _globals['_CREATEAUDIOTRACKRESPONSE']._serialized_start=267 - _globals['_CREATEAUDIOTRACKRESPONSE']._serialized_end=335 - _globals['_GETSTATSREQUEST']._serialized_start=337 - _globals['_GETSTATSREQUEST']._serialized_end=376 - _globals['_GETSTATSRESPONSE']._serialized_start=378 - _globals['_GETSTATSRESPONSE']._serialized_end=414 - _globals['_GETSTATSCALLBACK']._serialized_start=416 - _globals['_GETSTATSCALLBACK']._serialized_end=522 - _globals['_TRACKEVENT']._serialized_start=524 - _globals['_TRACKEVENT']._serialized_end=536 - _globals['_TRACKPUBLICATIONINFO']._serialized_start=539 - _globals['_TRACKPUBLICATIONINFO']._serialized_end=830 - _globals['_OWNEDTRACKPUBLICATION']._serialized_start=832 - _globals['_OWNEDTRACKPUBLICATION']._serialized_end=953 - _globals['_TRACKINFO']._serialized_start=956 - _globals['_TRACKINFO']._serialized_end=1115 - _globals['_OWNEDTRACK']._serialized_start=1117 - _globals['_OWNEDTRACK']._serialized_end=1216 -# @@protoc_insertion_point(module_scope) diff --git a/livekit-rtc/livekit/rtc/_proto/track_pb2.pyi b/livekit-rtc/livekit/rtc/_proto/track_pb2.pyi deleted file mode 100644 index 2a687298..00000000 --- a/livekit-rtc/livekit/rtc/_proto/track_pb2.pyi +++ /dev/null @@ -1,349 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -Copyright 2023 LiveKit, Inc. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -""" -import builtins -import collections.abc -from . import e2ee_pb2 -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.internal.enum_type_wrapper -import google.protobuf.message -from . import handle_pb2 -from . import stats_pb2 -import sys -import typing - -if sys.version_info >= (3, 10): - import typing as typing_extensions -else: - import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor - -class _TrackKind: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType - -class _TrackKindEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_TrackKind.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - KIND_UNKNOWN: _TrackKind.ValueType # 0 - KIND_AUDIO: _TrackKind.ValueType # 1 - KIND_VIDEO: _TrackKind.ValueType # 2 - -class TrackKind(_TrackKind, metaclass=_TrackKindEnumTypeWrapper): ... - -KIND_UNKNOWN: TrackKind.ValueType # 0 -KIND_AUDIO: TrackKind.ValueType # 1 -KIND_VIDEO: TrackKind.ValueType # 2 -global___TrackKind = TrackKind - -class _TrackSource: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType - -class _TrackSourceEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_TrackSource.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - SOURCE_UNKNOWN: _TrackSource.ValueType # 0 - SOURCE_CAMERA: _TrackSource.ValueType # 1 - SOURCE_MICROPHONE: _TrackSource.ValueType # 2 - SOURCE_SCREENSHARE: _TrackSource.ValueType # 3 - SOURCE_SCREENSHARE_AUDIO: _TrackSource.ValueType # 4 - -class TrackSource(_TrackSource, metaclass=_TrackSourceEnumTypeWrapper): ... - -SOURCE_UNKNOWN: TrackSource.ValueType # 0 -SOURCE_CAMERA: TrackSource.ValueType # 1 -SOURCE_MICROPHONE: TrackSource.ValueType # 2 -SOURCE_SCREENSHARE: TrackSource.ValueType # 3 -SOURCE_SCREENSHARE_AUDIO: TrackSource.ValueType # 4 -global___TrackSource = TrackSource - -class _StreamState: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType - -class _StreamStateEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_StreamState.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - STATE_UNKNOWN: _StreamState.ValueType # 0 - STATE_ACTIVE: _StreamState.ValueType # 1 - STATE_PAUSED: _StreamState.ValueType # 2 - -class StreamState(_StreamState, metaclass=_StreamStateEnumTypeWrapper): ... - -STATE_UNKNOWN: StreamState.ValueType # 0 -STATE_ACTIVE: StreamState.ValueType # 1 -STATE_PAUSED: StreamState.ValueType # 2 -global___StreamState = StreamState - -@typing_extensions.final -class CreateVideoTrackRequest(google.protobuf.message.Message): - """Create a new VideoTrack from a VideoSource""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - NAME_FIELD_NUMBER: builtins.int - SOURCE_HANDLE_FIELD_NUMBER: builtins.int - name: builtins.str - source_handle: builtins.int - def __init__( - self, - *, - name: builtins.str = ..., - source_handle: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["name", b"name", "source_handle", b"source_handle"]) -> None: ... - -global___CreateVideoTrackRequest = CreateVideoTrackRequest - -@typing_extensions.final -class CreateVideoTrackResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - TRACK_FIELD_NUMBER: builtins.int - @property - def track(self) -> global___OwnedTrack: ... - def __init__( - self, - *, - track: global___OwnedTrack | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["track", b"track"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["track", b"track"]) -> None: ... - -global___CreateVideoTrackResponse = CreateVideoTrackResponse - -@typing_extensions.final -class CreateAudioTrackRequest(google.protobuf.message.Message): - """Create a new AudioTrack from a AudioSource""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - NAME_FIELD_NUMBER: builtins.int - SOURCE_HANDLE_FIELD_NUMBER: builtins.int - name: builtins.str - source_handle: builtins.int - def __init__( - self, - *, - name: builtins.str = ..., - source_handle: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["name", b"name", "source_handle", b"source_handle"]) -> None: ... - -global___CreateAudioTrackRequest = CreateAudioTrackRequest - -@typing_extensions.final -class CreateAudioTrackResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - TRACK_FIELD_NUMBER: builtins.int - @property - def track(self) -> global___OwnedTrack: ... - def __init__( - self, - *, - track: global___OwnedTrack | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["track", b"track"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["track", b"track"]) -> None: ... - -global___CreateAudioTrackResponse = CreateAudioTrackResponse - -@typing_extensions.final -class GetStatsRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - TRACK_HANDLE_FIELD_NUMBER: builtins.int - track_handle: builtins.int - def __init__( - self, - *, - track_handle: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["track_handle", b"track_handle"]) -> None: ... - -global___GetStatsRequest = GetStatsRequest - -@typing_extensions.final -class GetStatsResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ASYNC_ID_FIELD_NUMBER: builtins.int - async_id: builtins.int - def __init__( - self, - *, - async_id: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["async_id", b"async_id"]) -> None: ... - -global___GetStatsResponse = GetStatsResponse - -@typing_extensions.final -class GetStatsCallback(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ASYNC_ID_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - STATS_FIELD_NUMBER: builtins.int - async_id: builtins.int - error: builtins.str - @property - def stats(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[stats_pb2.RtcStats]: ... - def __init__( - self, - *, - async_id: builtins.int = ..., - error: builtins.str | None = ..., - stats: collections.abc.Iterable[stats_pb2.RtcStats] | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["_error", b"_error", "error", b"error"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["_error", b"_error", "async_id", b"async_id", "error", b"error", "stats", b"stats"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["_error", b"_error"]) -> typing_extensions.Literal["error"] | None: ... - -global___GetStatsCallback = GetStatsCallback - -@typing_extensions.final -class TrackEvent(google.protobuf.message.Message): - """ - Track - """ - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - def __init__( - self, - ) -> None: ... - -global___TrackEvent = TrackEvent - -@typing_extensions.final -class TrackPublicationInfo(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - SID_FIELD_NUMBER: builtins.int - NAME_FIELD_NUMBER: builtins.int - KIND_FIELD_NUMBER: builtins.int - SOURCE_FIELD_NUMBER: builtins.int - SIMULCASTED_FIELD_NUMBER: builtins.int - WIDTH_FIELD_NUMBER: builtins.int - HEIGHT_FIELD_NUMBER: builtins.int - MIME_TYPE_FIELD_NUMBER: builtins.int - MUTED_FIELD_NUMBER: builtins.int - REMOTE_FIELD_NUMBER: builtins.int - ENCRYPTION_TYPE_FIELD_NUMBER: builtins.int - sid: builtins.str - name: builtins.str - kind: global___TrackKind.ValueType - source: global___TrackSource.ValueType - simulcasted: builtins.bool - width: builtins.int - height: builtins.int - mime_type: builtins.str - muted: builtins.bool - remote: builtins.bool - encryption_type: e2ee_pb2.EncryptionType.ValueType - def __init__( - self, - *, - sid: builtins.str = ..., - name: builtins.str = ..., - kind: global___TrackKind.ValueType = ..., - source: global___TrackSource.ValueType = ..., - simulcasted: builtins.bool = ..., - width: builtins.int = ..., - height: builtins.int = ..., - mime_type: builtins.str = ..., - muted: builtins.bool = ..., - remote: builtins.bool = ..., - encryption_type: e2ee_pb2.EncryptionType.ValueType = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["encryption_type", b"encryption_type", "height", b"height", "kind", b"kind", "mime_type", b"mime_type", "muted", b"muted", "name", b"name", "remote", b"remote", "sid", b"sid", "simulcasted", b"simulcasted", "source", b"source", "width", b"width"]) -> None: ... - -global___TrackPublicationInfo = TrackPublicationInfo - -@typing_extensions.final -class OwnedTrackPublication(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - HANDLE_FIELD_NUMBER: builtins.int - INFO_FIELD_NUMBER: builtins.int - @property - def handle(self) -> handle_pb2.FfiOwnedHandle: ... - @property - def info(self) -> global___TrackPublicationInfo: ... - def __init__( - self, - *, - handle: handle_pb2.FfiOwnedHandle | None = ..., - info: global___TrackPublicationInfo | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["handle", b"handle", "info", b"info"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["handle", b"handle", "info", b"info"]) -> None: ... - -global___OwnedTrackPublication = OwnedTrackPublication - -@typing_extensions.final -class TrackInfo(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - SID_FIELD_NUMBER: builtins.int - NAME_FIELD_NUMBER: builtins.int - KIND_FIELD_NUMBER: builtins.int - STREAM_STATE_FIELD_NUMBER: builtins.int - MUTED_FIELD_NUMBER: builtins.int - REMOTE_FIELD_NUMBER: builtins.int - sid: builtins.str - name: builtins.str - kind: global___TrackKind.ValueType - stream_state: global___StreamState.ValueType - muted: builtins.bool - remote: builtins.bool - def __init__( - self, - *, - sid: builtins.str = ..., - name: builtins.str = ..., - kind: global___TrackKind.ValueType = ..., - stream_state: global___StreamState.ValueType = ..., - muted: builtins.bool = ..., - remote: builtins.bool = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["kind", b"kind", "muted", b"muted", "name", b"name", "remote", b"remote", "sid", b"sid", "stream_state", b"stream_state"]) -> None: ... - -global___TrackInfo = TrackInfo - -@typing_extensions.final -class OwnedTrack(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - HANDLE_FIELD_NUMBER: builtins.int - INFO_FIELD_NUMBER: builtins.int - @property - def handle(self) -> handle_pb2.FfiOwnedHandle: ... - @property - def info(self) -> global___TrackInfo: ... - def __init__( - self, - *, - handle: handle_pb2.FfiOwnedHandle | None = ..., - info: global___TrackInfo | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["handle", b"handle", "info", b"info"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["handle", b"handle", "info", b"info"]) -> None: ... - -global___OwnedTrack = OwnedTrack diff --git a/livekit-rtc/livekit/rtc/_proto/video_frame_pb2.py b/livekit-rtc/livekit/rtc/_proto/video_frame_pb2.py deleted file mode 100644 index 74124674..00000000 --- a/livekit-rtc/livekit/rtc/_proto/video_frame_pb2.py +++ /dev/null @@ -1,94 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: video_frame.proto -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import handle_pb2 as handle__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x11video_frame.proto\x12\rlivekit.proto\x1a\x0chandle.proto\"k\n\x17\x41llocVideoBufferRequest\x12\x31\n\x04type\x18\x01 \x01(\x0e\x32#.livekit.proto.VideoFrameBufferType\x12\r\n\x05width\x18\x02 \x01(\r\x12\x0e\n\x06height\x18\x03 \x01(\r\"P\n\x18\x41llocVideoBufferResponse\x12\x34\n\x06\x62uffer\x18\x01 \x01(\x0b\x32$.livekit.proto.OwnedVideoFrameBuffer\"[\n\x15NewVideoStreamRequest\x12\x14\n\x0ctrack_handle\x18\x01 \x01(\x04\x12,\n\x04type\x18\x02 \x01(\x0e\x32\x1e.livekit.proto.VideoStreamType\"I\n\x16NewVideoStreamResponse\x12/\n\x06stream\x18\x01 \x01(\x0b\x32\x1f.livekit.proto.OwnedVideoStream\"\x7f\n\x15NewVideoSourceRequest\x12,\n\x04type\x18\x01 \x01(\x0e\x32\x1e.livekit.proto.VideoSourceType\x12\x38\n\nresolution\x18\x02 \x01(\x0b\x32$.livekit.proto.VideoSourceResolution\"I\n\x16NewVideoSourceResponse\x12/\n\x06source\x18\x01 \x01(\x0b\x32\x1f.livekit.proto.OwnedVideoSource\"\xae\x01\n\x18\x43\x61ptureVideoFrameRequest\x12\x15\n\rsource_handle\x18\x01 \x01(\x04\x12,\n\x05\x66rame\x18\x02 \x01(\x0b\x32\x1d.livekit.proto.VideoFrameInfo\x12\x33\n\x04info\x18\x03 \x01(\x0b\x32#.livekit.proto.VideoFrameBufferInfoH\x00\x12\x10\n\x06handle\x18\x04 \x01(\x04H\x00\x42\x06\n\x04\x66rom\"\x1b\n\x19\x43\x61ptureVideoFrameResponse\"\x9f\x01\n\rToI420Request\x12\x0e\n\x06\x66lip_y\x18\x01 \x01(\x08\x12-\n\x04\x61rgb\x18\x02 \x01(\x0b\x32\x1d.livekit.proto.ArgbBufferInfoH\x00\x12\x35\n\x06\x62uffer\x18\x03 \x01(\x0b\x32#.livekit.proto.VideoFrameBufferInfoH\x00\x12\x10\n\x06handle\x18\x04 \x01(\x04H\x00\x42\x06\n\x04\x66rom\"F\n\x0eToI420Response\x12\x34\n\x06\x62uffer\x18\x01 \x01(\x0b\x32$.livekit.proto.OwnedVideoFrameBuffer\"\xd4\x01\n\rToArgbRequest\x12\x33\n\x06\x62uffer\x18\x01 \x01(\x0b\x32#.livekit.proto.VideoFrameBufferInfo\x12\x0f\n\x07\x64st_ptr\x18\x02 \x01(\x04\x12\x32\n\ndst_format\x18\x03 \x01(\x0e\x32\x1e.livekit.proto.VideoFormatType\x12\x12\n\ndst_stride\x18\x04 \x01(\r\x12\x11\n\tdst_width\x18\x05 \x01(\r\x12\x12\n\ndst_height\x18\x06 \x01(\r\x12\x0e\n\x06\x66lip_y\x18\x07 \x01(\x08\"\x10\n\x0eToArgbResponse\"D\n\x0fVideoResolution\x12\r\n\x05width\x18\x01 \x01(\r\x12\x0e\n\x06height\x18\x02 \x01(\r\x12\x12\n\nframe_rate\x18\x03 \x01(\x01\"|\n\x0e\x41rgbBufferInfo\x12\x0b\n\x03ptr\x18\x01 \x01(\x04\x12.\n\x06\x66ormat\x18\x02 \x01(\x0e\x32\x1e.livekit.proto.VideoFormatType\x12\x0e\n\x06stride\x18\x03 \x01(\r\x12\r\n\x05width\x18\x04 \x01(\r\x12\x0e\n\x06height\x18\x05 \x01(\r\"V\n\x0eVideoFrameInfo\x12\x14\n\x0ctimestamp_us\x18\x01 \x01(\x03\x12.\n\x08rotation\x18\x02 \x01(\x0e\x32\x1c.livekit.proto.VideoRotation\"\x97\x02\n\x14VideoFrameBufferInfo\x12\x38\n\x0b\x62uffer_type\x18\x01 \x01(\x0e\x32#.livekit.proto.VideoFrameBufferType\x12\r\n\x05width\x18\x02 \x01(\r\x12\x0e\n\x06height\x18\x03 \x01(\r\x12\x31\n\x03yuv\x18\x04 \x01(\x0b\x32\".livekit.proto.PlanarYuvBufferInfoH\x00\x12\x36\n\x06\x62i_yuv\x18\x05 \x01(\x0b\x32$.livekit.proto.BiplanarYuvBufferInfoH\x00\x12\x31\n\x06native\x18\x06 \x01(\x0b\x32\x1f.livekit.proto.NativeBufferInfoH\x00\x42\x08\n\x06\x62uffer\"y\n\x15OwnedVideoFrameBuffer\x12-\n\x06handle\x18\x01 \x01(\x0b\x32\x1d.livekit.proto.FfiOwnedHandle\x12\x31\n\x04info\x18\x02 \x01(\x0b\x32#.livekit.proto.VideoFrameBufferInfo\"\xda\x01\n\x13PlanarYuvBufferInfo\x12\x14\n\x0c\x63hroma_width\x18\x01 \x01(\r\x12\x15\n\rchroma_height\x18\x02 \x01(\r\x12\x10\n\x08stride_y\x18\x03 \x01(\r\x12\x10\n\x08stride_u\x18\x04 \x01(\r\x12\x10\n\x08stride_v\x18\x05 \x01(\r\x12\x10\n\x08stride_a\x18\x06 \x01(\r\x12\x12\n\ndata_y_ptr\x18\x07 \x01(\x04\x12\x12\n\ndata_u_ptr\x18\x08 \x01(\x04\x12\x12\n\ndata_v_ptr\x18\t \x01(\x04\x12\x12\n\ndata_a_ptr\x18\n \x01(\x04\"\x92\x01\n\x15\x42iplanarYuvBufferInfo\x12\x14\n\x0c\x63hroma_width\x18\x01 \x01(\r\x12\x15\n\rchroma_height\x18\x02 \x01(\r\x12\x10\n\x08stride_y\x18\x03 \x01(\r\x12\x11\n\tstride_uv\x18\x04 \x01(\r\x12\x12\n\ndata_y_ptr\x18\x05 \x01(\x04\x12\x13\n\x0b\x64\x61ta_uv_ptr\x18\x06 \x01(\x04\"\x12\n\x10NativeBufferInfo\"?\n\x0fVideoStreamInfo\x12,\n\x04type\x18\x01 \x01(\x0e\x32\x1e.livekit.proto.VideoStreamType\"o\n\x10OwnedVideoStream\x12-\n\x06handle\x18\x01 \x01(\x0b\x32\x1d.livekit.proto.FfiOwnedHandle\x12,\n\x04info\x18\x02 \x01(\x0b\x32\x1e.livekit.proto.VideoStreamInfo\"\x9f\x01\n\x10VideoStreamEvent\x12\x15\n\rstream_handle\x18\x01 \x01(\x04\x12;\n\x0e\x66rame_received\x18\x02 \x01(\x0b\x32!.livekit.proto.VideoFrameReceivedH\x00\x12,\n\x03\x65os\x18\x03 \x01(\x0b\x32\x1d.livekit.proto.VideoStreamEOSH\x00\x42\t\n\x07message\"x\n\x12VideoFrameReceived\x12,\n\x05\x66rame\x18\x01 \x01(\x0b\x32\x1d.livekit.proto.VideoFrameInfo\x12\x34\n\x06\x62uffer\x18\x02 \x01(\x0b\x32$.livekit.proto.OwnedVideoFrameBuffer\"\x10\n\x0eVideoStreamEOS\"6\n\x15VideoSourceResolution\x12\r\n\x05width\x18\x01 \x01(\r\x12\x0e\n\x06height\x18\x02 \x01(\r\"?\n\x0fVideoSourceInfo\x12,\n\x04type\x18\x01 \x01(\x0e\x32\x1e.livekit.proto.VideoSourceType\"o\n\x10OwnedVideoSource\x12-\n\x06handle\x18\x01 \x01(\x0b\x32\x1d.livekit.proto.FfiOwnedHandle\x12,\n\x04info\x18\x02 \x01(\x0b\x32\x1e.livekit.proto.VideoSourceInfo*(\n\nVideoCodec\x12\x07\n\x03VP8\x10\x00\x12\x08\n\x04H264\x10\x01\x12\x07\n\x03\x41V1\x10\x02*l\n\rVideoRotation\x12\x14\n\x10VIDEO_ROTATION_0\x10\x00\x12\x15\n\x11VIDEO_ROTATION_90\x10\x01\x12\x16\n\x12VIDEO_ROTATION_180\x10\x02\x12\x16\n\x12VIDEO_ROTATION_270\x10\x03*U\n\x0fVideoFormatType\x12\x0f\n\x0b\x46ORMAT_ARGB\x10\x00\x12\x0f\n\x0b\x46ORMAT_BGRA\x10\x01\x12\x0f\n\x0b\x46ORMAT_ABGR\x10\x02\x12\x0f\n\x0b\x46ORMAT_RGBA\x10\x03*_\n\x14VideoFrameBufferType\x12\n\n\x06NATIVE\x10\x00\x12\x08\n\x04I420\x10\x01\x12\t\n\x05I420A\x10\x02\x12\x08\n\x04I422\x10\x03\x12\x08\n\x04I444\x10\x04\x12\x08\n\x04I010\x10\x05\x12\x08\n\x04NV12\x10\x06*Y\n\x0fVideoStreamType\x12\x17\n\x13VIDEO_STREAM_NATIVE\x10\x00\x12\x16\n\x12VIDEO_STREAM_WEBGL\x10\x01\x12\x15\n\x11VIDEO_STREAM_HTML\x10\x02**\n\x0fVideoSourceType\x12\x17\n\x13VIDEO_SOURCE_NATIVE\x10\x00\x42\x10\xaa\x02\rLiveKit.Protob\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'video_frame_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'\252\002\rLiveKit.Proto' - _globals['_VIDEOCODEC']._serialized_start=3079 - _globals['_VIDEOCODEC']._serialized_end=3119 - _globals['_VIDEOROTATION']._serialized_start=3121 - _globals['_VIDEOROTATION']._serialized_end=3229 - _globals['_VIDEOFORMATTYPE']._serialized_start=3231 - _globals['_VIDEOFORMATTYPE']._serialized_end=3316 - _globals['_VIDEOFRAMEBUFFERTYPE']._serialized_start=3318 - _globals['_VIDEOFRAMEBUFFERTYPE']._serialized_end=3413 - _globals['_VIDEOSTREAMTYPE']._serialized_start=3415 - _globals['_VIDEOSTREAMTYPE']._serialized_end=3504 - _globals['_VIDEOSOURCETYPE']._serialized_start=3506 - _globals['_VIDEOSOURCETYPE']._serialized_end=3548 - _globals['_ALLOCVIDEOBUFFERREQUEST']._serialized_start=50 - _globals['_ALLOCVIDEOBUFFERREQUEST']._serialized_end=157 - _globals['_ALLOCVIDEOBUFFERRESPONSE']._serialized_start=159 - _globals['_ALLOCVIDEOBUFFERRESPONSE']._serialized_end=239 - _globals['_NEWVIDEOSTREAMREQUEST']._serialized_start=241 - _globals['_NEWVIDEOSTREAMREQUEST']._serialized_end=332 - _globals['_NEWVIDEOSTREAMRESPONSE']._serialized_start=334 - _globals['_NEWVIDEOSTREAMRESPONSE']._serialized_end=407 - _globals['_NEWVIDEOSOURCEREQUEST']._serialized_start=409 - _globals['_NEWVIDEOSOURCEREQUEST']._serialized_end=536 - _globals['_NEWVIDEOSOURCERESPONSE']._serialized_start=538 - _globals['_NEWVIDEOSOURCERESPONSE']._serialized_end=611 - _globals['_CAPTUREVIDEOFRAMEREQUEST']._serialized_start=614 - _globals['_CAPTUREVIDEOFRAMEREQUEST']._serialized_end=788 - _globals['_CAPTUREVIDEOFRAMERESPONSE']._serialized_start=790 - _globals['_CAPTUREVIDEOFRAMERESPONSE']._serialized_end=817 - _globals['_TOI420REQUEST']._serialized_start=820 - _globals['_TOI420REQUEST']._serialized_end=979 - _globals['_TOI420RESPONSE']._serialized_start=981 - _globals['_TOI420RESPONSE']._serialized_end=1051 - _globals['_TOARGBREQUEST']._serialized_start=1054 - _globals['_TOARGBREQUEST']._serialized_end=1266 - _globals['_TOARGBRESPONSE']._serialized_start=1268 - _globals['_TOARGBRESPONSE']._serialized_end=1284 - _globals['_VIDEORESOLUTION']._serialized_start=1286 - _globals['_VIDEORESOLUTION']._serialized_end=1354 - _globals['_ARGBBUFFERINFO']._serialized_start=1356 - _globals['_ARGBBUFFERINFO']._serialized_end=1480 - _globals['_VIDEOFRAMEINFO']._serialized_start=1482 - _globals['_VIDEOFRAMEINFO']._serialized_end=1568 - _globals['_VIDEOFRAMEBUFFERINFO']._serialized_start=1571 - _globals['_VIDEOFRAMEBUFFERINFO']._serialized_end=1850 - _globals['_OWNEDVIDEOFRAMEBUFFER']._serialized_start=1852 - _globals['_OWNEDVIDEOFRAMEBUFFER']._serialized_end=1973 - _globals['_PLANARYUVBUFFERINFO']._serialized_start=1976 - _globals['_PLANARYUVBUFFERINFO']._serialized_end=2194 - _globals['_BIPLANARYUVBUFFERINFO']._serialized_start=2197 - _globals['_BIPLANARYUVBUFFERINFO']._serialized_end=2343 - _globals['_NATIVEBUFFERINFO']._serialized_start=2345 - _globals['_NATIVEBUFFERINFO']._serialized_end=2363 - _globals['_VIDEOSTREAMINFO']._serialized_start=2365 - _globals['_VIDEOSTREAMINFO']._serialized_end=2428 - _globals['_OWNEDVIDEOSTREAM']._serialized_start=2430 - _globals['_OWNEDVIDEOSTREAM']._serialized_end=2541 - _globals['_VIDEOSTREAMEVENT']._serialized_start=2544 - _globals['_VIDEOSTREAMEVENT']._serialized_end=2703 - _globals['_VIDEOFRAMERECEIVED']._serialized_start=2705 - _globals['_VIDEOFRAMERECEIVED']._serialized_end=2825 - _globals['_VIDEOSTREAMEOS']._serialized_start=2827 - _globals['_VIDEOSTREAMEOS']._serialized_end=2843 - _globals['_VIDEOSOURCERESOLUTION']._serialized_start=2845 - _globals['_VIDEOSOURCERESOLUTION']._serialized_end=2899 - _globals['_VIDEOSOURCEINFO']._serialized_start=2901 - _globals['_VIDEOSOURCEINFO']._serialized_end=2964 - _globals['_OWNEDVIDEOSOURCE']._serialized_start=2966 - _globals['_OWNEDVIDEOSOURCE']._serialized_end=3077 -# @@protoc_insertion_point(module_scope) diff --git a/livekit-rtc/livekit/rtc/_proto/video_frame_pb2.pyi b/livekit-rtc/livekit/rtc/_proto/video_frame_pb2.pyi deleted file mode 100644 index 106c3a21..00000000 --- a/livekit-rtc/livekit/rtc/_proto/video_frame_pb2.pyi +++ /dev/null @@ -1,769 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -Copyright 2023 LiveKit, Inc. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -""" -import builtins -import google.protobuf.descriptor -import google.protobuf.internal.enum_type_wrapper -import google.protobuf.message -from . import handle_pb2 -import sys -import typing - -if sys.version_info >= (3, 10): - import typing as typing_extensions -else: - import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor - -class _VideoCodec: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType - -class _VideoCodecEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_VideoCodec.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - VP8: _VideoCodec.ValueType # 0 - H264: _VideoCodec.ValueType # 1 - AV1: _VideoCodec.ValueType # 2 - -class VideoCodec(_VideoCodec, metaclass=_VideoCodecEnumTypeWrapper): ... - -VP8: VideoCodec.ValueType # 0 -H264: VideoCodec.ValueType # 1 -AV1: VideoCodec.ValueType # 2 -global___VideoCodec = VideoCodec - -class _VideoRotation: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType - -class _VideoRotationEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_VideoRotation.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - VIDEO_ROTATION_0: _VideoRotation.ValueType # 0 - VIDEO_ROTATION_90: _VideoRotation.ValueType # 1 - VIDEO_ROTATION_180: _VideoRotation.ValueType # 2 - VIDEO_ROTATION_270: _VideoRotation.ValueType # 3 - -class VideoRotation(_VideoRotation, metaclass=_VideoRotationEnumTypeWrapper): ... - -VIDEO_ROTATION_0: VideoRotation.ValueType # 0 -VIDEO_ROTATION_90: VideoRotation.ValueType # 1 -VIDEO_ROTATION_180: VideoRotation.ValueType # 2 -VIDEO_ROTATION_270: VideoRotation.ValueType # 3 -global___VideoRotation = VideoRotation - -class _VideoFormatType: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType - -class _VideoFormatTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_VideoFormatType.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - FORMAT_ARGB: _VideoFormatType.ValueType # 0 - FORMAT_BGRA: _VideoFormatType.ValueType # 1 - FORMAT_ABGR: _VideoFormatType.ValueType # 2 - FORMAT_RGBA: _VideoFormatType.ValueType # 3 - -class VideoFormatType(_VideoFormatType, metaclass=_VideoFormatTypeEnumTypeWrapper): ... - -FORMAT_ARGB: VideoFormatType.ValueType # 0 -FORMAT_BGRA: VideoFormatType.ValueType # 1 -FORMAT_ABGR: VideoFormatType.ValueType # 2 -FORMAT_RGBA: VideoFormatType.ValueType # 3 -global___VideoFormatType = VideoFormatType - -class _VideoFrameBufferType: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType - -class _VideoFrameBufferTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_VideoFrameBufferType.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - NATIVE: _VideoFrameBufferType.ValueType # 0 - I420: _VideoFrameBufferType.ValueType # 1 - I420A: _VideoFrameBufferType.ValueType # 2 - I422: _VideoFrameBufferType.ValueType # 3 - I444: _VideoFrameBufferType.ValueType # 4 - I010: _VideoFrameBufferType.ValueType # 5 - NV12: _VideoFrameBufferType.ValueType # 6 - -class VideoFrameBufferType(_VideoFrameBufferType, metaclass=_VideoFrameBufferTypeEnumTypeWrapper): ... - -NATIVE: VideoFrameBufferType.ValueType # 0 -I420: VideoFrameBufferType.ValueType # 1 -I420A: VideoFrameBufferType.ValueType # 2 -I422: VideoFrameBufferType.ValueType # 3 -I444: VideoFrameBufferType.ValueType # 4 -I010: VideoFrameBufferType.ValueType # 5 -NV12: VideoFrameBufferType.ValueType # 6 -global___VideoFrameBufferType = VideoFrameBufferType - -class _VideoStreamType: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType - -class _VideoStreamTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_VideoStreamType.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - VIDEO_STREAM_NATIVE: _VideoStreamType.ValueType # 0 - VIDEO_STREAM_WEBGL: _VideoStreamType.ValueType # 1 - VIDEO_STREAM_HTML: _VideoStreamType.ValueType # 2 - -class VideoStreamType(_VideoStreamType, metaclass=_VideoStreamTypeEnumTypeWrapper): - """ - VideoStream - """ - -VIDEO_STREAM_NATIVE: VideoStreamType.ValueType # 0 -VIDEO_STREAM_WEBGL: VideoStreamType.ValueType # 1 -VIDEO_STREAM_HTML: VideoStreamType.ValueType # 2 -global___VideoStreamType = VideoStreamType - -class _VideoSourceType: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType - -class _VideoSourceTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_VideoSourceType.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - VIDEO_SOURCE_NATIVE: _VideoSourceType.ValueType # 0 - -class VideoSourceType(_VideoSourceType, metaclass=_VideoSourceTypeEnumTypeWrapper): ... - -VIDEO_SOURCE_NATIVE: VideoSourceType.ValueType # 0 -global___VideoSourceType = VideoSourceType - -@typing_extensions.final -class AllocVideoBufferRequest(google.protobuf.message.Message): - """Allocate a new VideoFrameBuffer""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - TYPE_FIELD_NUMBER: builtins.int - WIDTH_FIELD_NUMBER: builtins.int - HEIGHT_FIELD_NUMBER: builtins.int - type: global___VideoFrameBufferType.ValueType - """Only I420 is supported atm""" - width: builtins.int - height: builtins.int - def __init__( - self, - *, - type: global___VideoFrameBufferType.ValueType = ..., - width: builtins.int = ..., - height: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["height", b"height", "type", b"type", "width", b"width"]) -> None: ... - -global___AllocVideoBufferRequest = AllocVideoBufferRequest - -@typing_extensions.final -class AllocVideoBufferResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - BUFFER_FIELD_NUMBER: builtins.int - @property - def buffer(self) -> global___OwnedVideoFrameBuffer: ... - def __init__( - self, - *, - buffer: global___OwnedVideoFrameBuffer | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["buffer", b"buffer"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["buffer", b"buffer"]) -> None: ... - -global___AllocVideoBufferResponse = AllocVideoBufferResponse - -@typing_extensions.final -class NewVideoStreamRequest(google.protobuf.message.Message): - """Create a new VideoStream - VideoStream is used to receive video frames from a track - """ - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - TRACK_HANDLE_FIELD_NUMBER: builtins.int - TYPE_FIELD_NUMBER: builtins.int - track_handle: builtins.int - type: global___VideoStreamType.ValueType - def __init__( - self, - *, - track_handle: builtins.int = ..., - type: global___VideoStreamType.ValueType = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["track_handle", b"track_handle", "type", b"type"]) -> None: ... - -global___NewVideoStreamRequest = NewVideoStreamRequest - -@typing_extensions.final -class NewVideoStreamResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - STREAM_FIELD_NUMBER: builtins.int - @property - def stream(self) -> global___OwnedVideoStream: ... - def __init__( - self, - *, - stream: global___OwnedVideoStream | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["stream", b"stream"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["stream", b"stream"]) -> None: ... - -global___NewVideoStreamResponse = NewVideoStreamResponse - -@typing_extensions.final -class NewVideoSourceRequest(google.protobuf.message.Message): - """Create a new VideoSource - VideoSource is used to send video frame to a track - """ - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - TYPE_FIELD_NUMBER: builtins.int - RESOLUTION_FIELD_NUMBER: builtins.int - type: global___VideoSourceType.ValueType - @property - def resolution(self) -> global___VideoSourceResolution: - """Used to determine which encodings to use + simulcast layers - Most of the time it corresponds to the source resolution - """ - def __init__( - self, - *, - type: global___VideoSourceType.ValueType = ..., - resolution: global___VideoSourceResolution | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["resolution", b"resolution"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["resolution", b"resolution", "type", b"type"]) -> None: ... - -global___NewVideoSourceRequest = NewVideoSourceRequest - -@typing_extensions.final -class NewVideoSourceResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - SOURCE_FIELD_NUMBER: builtins.int - @property - def source(self) -> global___OwnedVideoSource: ... - def __init__( - self, - *, - source: global___OwnedVideoSource | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["source", b"source"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["source", b"source"]) -> None: ... - -global___NewVideoSourceResponse = NewVideoSourceResponse - -@typing_extensions.final -class CaptureVideoFrameRequest(google.protobuf.message.Message): - """Push a frame to a VideoSource""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - SOURCE_HANDLE_FIELD_NUMBER: builtins.int - FRAME_FIELD_NUMBER: builtins.int - INFO_FIELD_NUMBER: builtins.int - HANDLE_FIELD_NUMBER: builtins.int - source_handle: builtins.int - @property - def frame(self) -> global___VideoFrameInfo: ... - @property - def info(self) -> global___VideoFrameBufferInfo: ... - handle: builtins.int - def __init__( - self, - *, - source_handle: builtins.int = ..., - frame: global___VideoFrameInfo | None = ..., - info: global___VideoFrameBufferInfo | None = ..., - handle: builtins.int = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["frame", b"frame", "from", b"from", "handle", b"handle", "info", b"info"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["frame", b"frame", "from", b"from", "handle", b"handle", "info", b"info", "source_handle", b"source_handle"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["from", b"from"]) -> typing_extensions.Literal["info", "handle"] | None: ... - -global___CaptureVideoFrameRequest = CaptureVideoFrameRequest - -@typing_extensions.final -class CaptureVideoFrameResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - def __init__( - self, - ) -> None: ... - -global___CaptureVideoFrameResponse = CaptureVideoFrameResponse - -@typing_extensions.final -class ToI420Request(google.protobuf.message.Message): - """Convert a RGBA frame to a I420 YUV frame - Or convert another YUV frame format to I420 - """ - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - FLIP_Y_FIELD_NUMBER: builtins.int - ARGB_FIELD_NUMBER: builtins.int - BUFFER_FIELD_NUMBER: builtins.int - HANDLE_FIELD_NUMBER: builtins.int - flip_y: builtins.bool - @property - def argb(self) -> global___ArgbBufferInfo: ... - @property - def buffer(self) -> global___VideoFrameBufferInfo: ... - handle: builtins.int - def __init__( - self, - *, - flip_y: builtins.bool = ..., - argb: global___ArgbBufferInfo | None = ..., - buffer: global___VideoFrameBufferInfo | None = ..., - handle: builtins.int = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["argb", b"argb", "buffer", b"buffer", "from", b"from", "handle", b"handle"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["argb", b"argb", "buffer", b"buffer", "flip_y", b"flip_y", "from", b"from", "handle", b"handle"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["from", b"from"]) -> typing_extensions.Literal["argb", "buffer", "handle"] | None: ... - -global___ToI420Request = ToI420Request - -@typing_extensions.final -class ToI420Response(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - BUFFER_FIELD_NUMBER: builtins.int - @property - def buffer(self) -> global___OwnedVideoFrameBuffer: ... - def __init__( - self, - *, - buffer: global___OwnedVideoFrameBuffer | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["buffer", b"buffer"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["buffer", b"buffer"]) -> None: ... - -global___ToI420Response = ToI420Response - -@typing_extensions.final -class ToArgbRequest(google.protobuf.message.Message): - """Convert a YUV frame to a RGBA frame - Only I420 is supported atm - """ - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - BUFFER_FIELD_NUMBER: builtins.int - DST_PTR_FIELD_NUMBER: builtins.int - DST_FORMAT_FIELD_NUMBER: builtins.int - DST_STRIDE_FIELD_NUMBER: builtins.int - DST_WIDTH_FIELD_NUMBER: builtins.int - DST_HEIGHT_FIELD_NUMBER: builtins.int - FLIP_Y_FIELD_NUMBER: builtins.int - @property - def buffer(self) -> global___VideoFrameBufferInfo: ... - dst_ptr: builtins.int - dst_format: global___VideoFormatType.ValueType - dst_stride: builtins.int - dst_width: builtins.int - dst_height: builtins.int - flip_y: builtins.bool - def __init__( - self, - *, - buffer: global___VideoFrameBufferInfo | None = ..., - dst_ptr: builtins.int = ..., - dst_format: global___VideoFormatType.ValueType = ..., - dst_stride: builtins.int = ..., - dst_width: builtins.int = ..., - dst_height: builtins.int = ..., - flip_y: builtins.bool = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["buffer", b"buffer"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["buffer", b"buffer", "dst_format", b"dst_format", "dst_height", b"dst_height", "dst_ptr", b"dst_ptr", "dst_stride", b"dst_stride", "dst_width", b"dst_width", "flip_y", b"flip_y"]) -> None: ... - -global___ToArgbRequest = ToArgbRequest - -@typing_extensions.final -class ToArgbResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - def __init__( - self, - ) -> None: ... - -global___ToArgbResponse = ToArgbResponse - -@typing_extensions.final -class VideoResolution(google.protobuf.message.Message): - """ - VideoFrame buffers - """ - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - WIDTH_FIELD_NUMBER: builtins.int - HEIGHT_FIELD_NUMBER: builtins.int - FRAME_RATE_FIELD_NUMBER: builtins.int - width: builtins.int - height: builtins.int - frame_rate: builtins.float - def __init__( - self, - *, - width: builtins.int = ..., - height: builtins.int = ..., - frame_rate: builtins.float = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["frame_rate", b"frame_rate", "height", b"height", "width", b"width"]) -> None: ... - -global___VideoResolution = VideoResolution - -@typing_extensions.final -class ArgbBufferInfo(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PTR_FIELD_NUMBER: builtins.int - FORMAT_FIELD_NUMBER: builtins.int - STRIDE_FIELD_NUMBER: builtins.int - WIDTH_FIELD_NUMBER: builtins.int - HEIGHT_FIELD_NUMBER: builtins.int - ptr: builtins.int - format: global___VideoFormatType.ValueType - stride: builtins.int - width: builtins.int - height: builtins.int - def __init__( - self, - *, - ptr: builtins.int = ..., - format: global___VideoFormatType.ValueType = ..., - stride: builtins.int = ..., - width: builtins.int = ..., - height: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["format", b"format", "height", b"height", "ptr", b"ptr", "stride", b"stride", "width", b"width"]) -> None: ... - -global___ArgbBufferInfo = ArgbBufferInfo - -@typing_extensions.final -class VideoFrameInfo(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - TIMESTAMP_US_FIELD_NUMBER: builtins.int - ROTATION_FIELD_NUMBER: builtins.int - timestamp_us: builtins.int - """In microseconds""" - rotation: global___VideoRotation.ValueType - def __init__( - self, - *, - timestamp_us: builtins.int = ..., - rotation: global___VideoRotation.ValueType = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["rotation", b"rotation", "timestamp_us", b"timestamp_us"]) -> None: ... - -global___VideoFrameInfo = VideoFrameInfo - -@typing_extensions.final -class VideoFrameBufferInfo(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - BUFFER_TYPE_FIELD_NUMBER: builtins.int - WIDTH_FIELD_NUMBER: builtins.int - HEIGHT_FIELD_NUMBER: builtins.int - YUV_FIELD_NUMBER: builtins.int - BI_YUV_FIELD_NUMBER: builtins.int - NATIVE_FIELD_NUMBER: builtins.int - buffer_type: global___VideoFrameBufferType.ValueType - width: builtins.int - height: builtins.int - @property - def yuv(self) -> global___PlanarYuvBufferInfo: ... - @property - def bi_yuv(self) -> global___BiplanarYuvBufferInfo: ... - @property - def native(self) -> global___NativeBufferInfo: ... - def __init__( - self, - *, - buffer_type: global___VideoFrameBufferType.ValueType = ..., - width: builtins.int = ..., - height: builtins.int = ..., - yuv: global___PlanarYuvBufferInfo | None = ..., - bi_yuv: global___BiplanarYuvBufferInfo | None = ..., - native: global___NativeBufferInfo | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["bi_yuv", b"bi_yuv", "buffer", b"buffer", "native", b"native", "yuv", b"yuv"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["bi_yuv", b"bi_yuv", "buffer", b"buffer", "buffer_type", b"buffer_type", "height", b"height", "native", b"native", "width", b"width", "yuv", b"yuv"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["buffer", b"buffer"]) -> typing_extensions.Literal["yuv", "bi_yuv", "native"] | None: ... - -global___VideoFrameBufferInfo = VideoFrameBufferInfo - -@typing_extensions.final -class OwnedVideoFrameBuffer(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - HANDLE_FIELD_NUMBER: builtins.int - INFO_FIELD_NUMBER: builtins.int - @property - def handle(self) -> handle_pb2.FfiOwnedHandle: ... - @property - def info(self) -> global___VideoFrameBufferInfo: ... - def __init__( - self, - *, - handle: handle_pb2.FfiOwnedHandle | None = ..., - info: global___VideoFrameBufferInfo | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["handle", b"handle", "info", b"info"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["handle", b"handle", "info", b"info"]) -> None: ... - -global___OwnedVideoFrameBuffer = OwnedVideoFrameBuffer - -@typing_extensions.final -class PlanarYuvBufferInfo(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - CHROMA_WIDTH_FIELD_NUMBER: builtins.int - CHROMA_HEIGHT_FIELD_NUMBER: builtins.int - STRIDE_Y_FIELD_NUMBER: builtins.int - STRIDE_U_FIELD_NUMBER: builtins.int - STRIDE_V_FIELD_NUMBER: builtins.int - STRIDE_A_FIELD_NUMBER: builtins.int - DATA_Y_PTR_FIELD_NUMBER: builtins.int - DATA_U_PTR_FIELD_NUMBER: builtins.int - DATA_V_PTR_FIELD_NUMBER: builtins.int - DATA_A_PTR_FIELD_NUMBER: builtins.int - chroma_width: builtins.int - chroma_height: builtins.int - stride_y: builtins.int - stride_u: builtins.int - stride_v: builtins.int - stride_a: builtins.int - data_y_ptr: builtins.int - """*const u8 or *const u16""" - data_u_ptr: builtins.int - data_v_ptr: builtins.int - data_a_ptr: builtins.int - """nullptr = no alpha""" - def __init__( - self, - *, - chroma_width: builtins.int = ..., - chroma_height: builtins.int = ..., - stride_y: builtins.int = ..., - stride_u: builtins.int = ..., - stride_v: builtins.int = ..., - stride_a: builtins.int = ..., - data_y_ptr: builtins.int = ..., - data_u_ptr: builtins.int = ..., - data_v_ptr: builtins.int = ..., - data_a_ptr: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["chroma_height", b"chroma_height", "chroma_width", b"chroma_width", "data_a_ptr", b"data_a_ptr", "data_u_ptr", b"data_u_ptr", "data_v_ptr", b"data_v_ptr", "data_y_ptr", b"data_y_ptr", "stride_a", b"stride_a", "stride_u", b"stride_u", "stride_v", b"stride_v", "stride_y", b"stride_y"]) -> None: ... - -global___PlanarYuvBufferInfo = PlanarYuvBufferInfo - -@typing_extensions.final -class BiplanarYuvBufferInfo(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - CHROMA_WIDTH_FIELD_NUMBER: builtins.int - CHROMA_HEIGHT_FIELD_NUMBER: builtins.int - STRIDE_Y_FIELD_NUMBER: builtins.int - STRIDE_UV_FIELD_NUMBER: builtins.int - DATA_Y_PTR_FIELD_NUMBER: builtins.int - DATA_UV_PTR_FIELD_NUMBER: builtins.int - chroma_width: builtins.int - chroma_height: builtins.int - stride_y: builtins.int - stride_uv: builtins.int - data_y_ptr: builtins.int - data_uv_ptr: builtins.int - def __init__( - self, - *, - chroma_width: builtins.int = ..., - chroma_height: builtins.int = ..., - stride_y: builtins.int = ..., - stride_uv: builtins.int = ..., - data_y_ptr: builtins.int = ..., - data_uv_ptr: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["chroma_height", b"chroma_height", "chroma_width", b"chroma_width", "data_uv_ptr", b"data_uv_ptr", "data_y_ptr", b"data_y_ptr", "stride_uv", b"stride_uv", "stride_y", b"stride_y"]) -> None: ... - -global___BiplanarYuvBufferInfo = BiplanarYuvBufferInfo - -@typing_extensions.final -class NativeBufferInfo(google.protobuf.message.Message): - """TODO(theomonnom): Expose graphic context?""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - def __init__( - self, - ) -> None: ... - -global___NativeBufferInfo = NativeBufferInfo - -@typing_extensions.final -class VideoStreamInfo(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - TYPE_FIELD_NUMBER: builtins.int - type: global___VideoStreamType.ValueType - def __init__( - self, - *, - type: global___VideoStreamType.ValueType = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["type", b"type"]) -> None: ... - -global___VideoStreamInfo = VideoStreamInfo - -@typing_extensions.final -class OwnedVideoStream(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - HANDLE_FIELD_NUMBER: builtins.int - INFO_FIELD_NUMBER: builtins.int - @property - def handle(self) -> handle_pb2.FfiOwnedHandle: ... - @property - def info(self) -> global___VideoStreamInfo: ... - def __init__( - self, - *, - handle: handle_pb2.FfiOwnedHandle | None = ..., - info: global___VideoStreamInfo | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["handle", b"handle", "info", b"info"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["handle", b"handle", "info", b"info"]) -> None: ... - -global___OwnedVideoStream = OwnedVideoStream - -@typing_extensions.final -class VideoStreamEvent(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - STREAM_HANDLE_FIELD_NUMBER: builtins.int - FRAME_RECEIVED_FIELD_NUMBER: builtins.int - EOS_FIELD_NUMBER: builtins.int - stream_handle: builtins.int - @property - def frame_received(self) -> global___VideoFrameReceived: ... - @property - def eos(self) -> global___VideoStreamEOS: ... - def __init__( - self, - *, - stream_handle: builtins.int = ..., - frame_received: global___VideoFrameReceived | None = ..., - eos: global___VideoStreamEOS | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["eos", b"eos", "frame_received", b"frame_received", "message", b"message"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["eos", b"eos", "frame_received", b"frame_received", "message", b"message", "stream_handle", b"stream_handle"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["message", b"message"]) -> typing_extensions.Literal["frame_received", "eos"] | None: ... - -global___VideoStreamEvent = VideoStreamEvent - -@typing_extensions.final -class VideoFrameReceived(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - FRAME_FIELD_NUMBER: builtins.int - BUFFER_FIELD_NUMBER: builtins.int - @property - def frame(self) -> global___VideoFrameInfo: ... - @property - def buffer(self) -> global___OwnedVideoFrameBuffer: ... - def __init__( - self, - *, - frame: global___VideoFrameInfo | None = ..., - buffer: global___OwnedVideoFrameBuffer | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["buffer", b"buffer", "frame", b"frame"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["buffer", b"buffer", "frame", b"frame"]) -> None: ... - -global___VideoFrameReceived = VideoFrameReceived - -@typing_extensions.final -class VideoStreamEOS(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - def __init__( - self, - ) -> None: ... - -global___VideoStreamEOS = VideoStreamEOS - -@typing_extensions.final -class VideoSourceResolution(google.protobuf.message.Message): - """ - VideoSource - """ - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - WIDTH_FIELD_NUMBER: builtins.int - HEIGHT_FIELD_NUMBER: builtins.int - width: builtins.int - height: builtins.int - def __init__( - self, - *, - width: builtins.int = ..., - height: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["height", b"height", "width", b"width"]) -> None: ... - -global___VideoSourceResolution = VideoSourceResolution - -@typing_extensions.final -class VideoSourceInfo(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - TYPE_FIELD_NUMBER: builtins.int - type: global___VideoSourceType.ValueType - def __init__( - self, - *, - type: global___VideoSourceType.ValueType = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["type", b"type"]) -> None: ... - -global___VideoSourceInfo = VideoSourceInfo - -@typing_extensions.final -class OwnedVideoSource(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - HANDLE_FIELD_NUMBER: builtins.int - INFO_FIELD_NUMBER: builtins.int - @property - def handle(self) -> handle_pb2.FfiOwnedHandle: ... - @property - def info(self) -> global___VideoSourceInfo: ... - def __init__( - self, - *, - handle: handle_pb2.FfiOwnedHandle | None = ..., - info: global___VideoSourceInfo | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["handle", b"handle", "info", b"info"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["handle", b"handle", "info", b"info"]) -> None: ... - -global___OwnedVideoSource = OwnedVideoSource From 6d2b278e8bb56475569d7437d7da666e931c4b96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?The=CC=81o=20Monnom?= Date: Tue, 7 Nov 2023 14:03:26 -0800 Subject: [PATCH 3/6] use livekit-protocol inside livekit-api --- livekit-api/livekit/api/__init__.py | 10 +- livekit-api/livekit/api/_proto/__init__.py | 0 .../livekit/api/_proto/livekit_egress_pb2.py | 132 -- .../livekit/api/_proto/livekit_egress_pb2.pyi | 1290 ----------------- .../livekit/api/_proto/livekit_ingress_pb2.py | 62 - .../api/_proto/livekit_ingress_pb2.pyi | 542 ------- .../livekit/api/_proto/livekit_models_pb2.py | 106 -- .../livekit/api/_proto/livekit_models_pb2.pyi | 1158 --------------- .../livekit/api/_proto/livekit_room_pb2.py | 67 - .../livekit/api/_proto/livekit_room_pb2.pyi | 416 ------ .../livekit/api/_proto/livekit_webhook_pb2.py | 30 - .../api/_proto/livekit_webhook_pb2.pyi | 86 -- livekit-api/livekit/api/room_service.py | 4 +- livekit-api/setup.py | 3 +- livekit-protocol/livekit/protocol/version.py | 2 +- 15 files changed, 10 insertions(+), 3898 deletions(-) delete mode 100644 livekit-api/livekit/api/_proto/__init__.py delete mode 100644 livekit-api/livekit/api/_proto/livekit_egress_pb2.py delete mode 100644 livekit-api/livekit/api/_proto/livekit_egress_pb2.pyi delete mode 100644 livekit-api/livekit/api/_proto/livekit_ingress_pb2.py delete mode 100644 livekit-api/livekit/api/_proto/livekit_ingress_pb2.pyi delete mode 100644 livekit-api/livekit/api/_proto/livekit_models_pb2.py delete mode 100644 livekit-api/livekit/api/_proto/livekit_models_pb2.pyi delete mode 100644 livekit-api/livekit/api/_proto/livekit_room_pb2.py delete mode 100644 livekit-api/livekit/api/_proto/livekit_room_pb2.pyi delete mode 100644 livekit-api/livekit/api/_proto/livekit_webhook_pb2.py delete mode 100644 livekit-api/livekit/api/_proto/livekit_webhook_pb2.pyi diff --git a/livekit-api/livekit/api/__init__.py b/livekit-api/livekit/api/__init__.py index 39669c29..44c528e7 100644 --- a/livekit-api/livekit/api/__init__.py +++ b/livekit-api/livekit/api/__init__.py @@ -16,11 +16,11 @@ """ # flake8: noqa -from ._proto.livekit_egress_pb2 import * -from ._proto.livekit_models_pb2 import * -from ._proto.livekit_room_pb2 import * -from ._proto.livekit_ingress_pb2 import * +from livekit.protocol.egress import * +from livekit.protocol.ingress import * +from livekit.protocol.models import * +from livekit.protocol.room import * + from .access_token import VideoGrants, AccessToken from .room_service import RoomService - from .version import __version__ diff --git a/livekit-api/livekit/api/_proto/__init__.py b/livekit-api/livekit/api/_proto/__init__.py deleted file mode 100644 index e69de29b..00000000 diff --git a/livekit-api/livekit/api/_proto/livekit_egress_pb2.py b/livekit-api/livekit/api/_proto/livekit_egress_pb2.py deleted file mode 100644 index 8a8a5244..00000000 --- a/livekit-api/livekit/api/_proto/livekit_egress_pb2.py +++ /dev/null @@ -1,132 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: livekit_egress.proto -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import livekit_models_pb2 as livekit__models__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x14livekit_egress.proto\x12\x07livekit\x1a\x14livekit_models.proto\"\xcd\x04\n\x1aRoomCompositeEgressRequest\x12\x11\n\troom_name\x18\x01 \x01(\t\x12\x0e\n\x06layout\x18\x02 \x01(\t\x12\x12\n\naudio_only\x18\x03 \x01(\x08\x12\x12\n\nvideo_only\x18\x04 \x01(\x08\x12\x17\n\x0f\x63ustom_base_url\x18\x05 \x01(\t\x12.\n\x04\x66ile\x18\x06 \x01(\x0b\x32\x1a.livekit.EncodedFileOutputB\x02\x18\x01H\x00\x12+\n\x06stream\x18\x07 \x01(\x0b\x32\x15.livekit.StreamOutputB\x02\x18\x01H\x00\x12\x34\n\x08segments\x18\n \x01(\x0b\x32\x1c.livekit.SegmentedFileOutputB\x02\x18\x01H\x00\x12\x30\n\x06preset\x18\x08 \x01(\x0e\x32\x1e.livekit.EncodingOptionsPresetH\x01\x12,\n\x08\x61\x64vanced\x18\t \x01(\x0b\x32\x18.livekit.EncodingOptionsH\x01\x12\x30\n\x0c\x66ile_outputs\x18\x0b \x03(\x0b\x32\x1a.livekit.EncodedFileOutput\x12-\n\x0estream_outputs\x18\x0c \x03(\x0b\x32\x15.livekit.StreamOutput\x12\x35\n\x0fsegment_outputs\x18\r \x03(\x0b\x32\x1c.livekit.SegmentedFileOutput\x12+\n\rimage_outputs\x18\x0e \x03(\x0b\x32\x14.livekit.ImageOutputB\x08\n\x06outputB\t\n\x07options\"\xb0\x04\n\x10WebEgressRequest\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\x12\n\naudio_only\x18\x02 \x01(\x08\x12\x12\n\nvideo_only\x18\x03 \x01(\x08\x12\x1a\n\x12\x61wait_start_signal\x18\x0c \x01(\x08\x12.\n\x04\x66ile\x18\x04 \x01(\x0b\x32\x1a.livekit.EncodedFileOutputB\x02\x18\x01H\x00\x12+\n\x06stream\x18\x05 \x01(\x0b\x32\x15.livekit.StreamOutputB\x02\x18\x01H\x00\x12\x34\n\x08segments\x18\x06 \x01(\x0b\x32\x1c.livekit.SegmentedFileOutputB\x02\x18\x01H\x00\x12\x30\n\x06preset\x18\x07 \x01(\x0e\x32\x1e.livekit.EncodingOptionsPresetH\x01\x12,\n\x08\x61\x64vanced\x18\x08 \x01(\x0b\x32\x18.livekit.EncodingOptionsH\x01\x12\x30\n\x0c\x66ile_outputs\x18\t \x03(\x0b\x32\x1a.livekit.EncodedFileOutput\x12-\n\x0estream_outputs\x18\n \x03(\x0b\x32\x15.livekit.StreamOutput\x12\x35\n\x0fsegment_outputs\x18\x0b \x03(\x0b\x32\x1c.livekit.SegmentedFileOutput\x12+\n\rimage_outputs\x18\r \x03(\x0b\x32\x14.livekit.ImageOutputB\x08\n\x06outputB\t\n\x07options\"\x85\x03\n\x18ParticipantEgressRequest\x12\x11\n\troom_name\x18\x01 \x01(\t\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x14\n\x0cscreen_share\x18\x03 \x01(\x08\x12\x30\n\x06preset\x18\x04 \x01(\x0e\x32\x1e.livekit.EncodingOptionsPresetH\x00\x12,\n\x08\x61\x64vanced\x18\x05 \x01(\x0b\x32\x18.livekit.EncodingOptionsH\x00\x12\x30\n\x0c\x66ile_outputs\x18\x06 \x03(\x0b\x32\x1a.livekit.EncodedFileOutput\x12-\n\x0estream_outputs\x18\x07 \x03(\x0b\x32\x15.livekit.StreamOutput\x12\x35\n\x0fsegment_outputs\x18\x08 \x03(\x0b\x32\x1c.livekit.SegmentedFileOutput\x12+\n\rimage_outputs\x18\t \x03(\x0b\x32\x14.livekit.ImageOutputB\t\n\x07options\"\xad\x04\n\x1bTrackCompositeEgressRequest\x12\x11\n\troom_name\x18\x01 \x01(\t\x12\x16\n\x0e\x61udio_track_id\x18\x02 \x01(\t\x12\x16\n\x0evideo_track_id\x18\x03 \x01(\t\x12.\n\x04\x66ile\x18\x04 \x01(\x0b\x32\x1a.livekit.EncodedFileOutputB\x02\x18\x01H\x00\x12+\n\x06stream\x18\x05 \x01(\x0b\x32\x15.livekit.StreamOutputB\x02\x18\x01H\x00\x12\x34\n\x08segments\x18\x08 \x01(\x0b\x32\x1c.livekit.SegmentedFileOutputB\x02\x18\x01H\x00\x12\x30\n\x06preset\x18\x06 \x01(\x0e\x32\x1e.livekit.EncodingOptionsPresetH\x01\x12,\n\x08\x61\x64vanced\x18\x07 \x01(\x0b\x32\x18.livekit.EncodingOptionsH\x01\x12\x30\n\x0c\x66ile_outputs\x18\x0b \x03(\x0b\x32\x1a.livekit.EncodedFileOutput\x12-\n\x0estream_outputs\x18\x0c \x03(\x0b\x32\x15.livekit.StreamOutput\x12\x35\n\x0fsegment_outputs\x18\r \x03(\x0b\x32\x1c.livekit.SegmentedFileOutput\x12+\n\rimage_outputs\x18\x0e \x03(\x0b\x32\x14.livekit.ImageOutputB\x08\n\x06outputB\t\n\x07options\"\x87\x01\n\x12TrackEgressRequest\x12\x11\n\troom_name\x18\x01 \x01(\t\x12\x10\n\x08track_id\x18\x02 \x01(\t\x12)\n\x04\x66ile\x18\x03 \x01(\x0b\x32\x19.livekit.DirectFileOutputH\x00\x12\x17\n\rwebsocket_url\x18\x04 \x01(\tH\x00\x42\x08\n\x06output\"\x8e\x02\n\x11\x45ncodedFileOutput\x12+\n\tfile_type\x18\x01 \x01(\x0e\x32\x18.livekit.EncodedFileType\x12\x10\n\x08\x66ilepath\x18\x02 \x01(\t\x12\x18\n\x10\x64isable_manifest\x18\x06 \x01(\x08\x12\x1f\n\x02s3\x18\x03 \x01(\x0b\x32\x11.livekit.S3UploadH\x00\x12!\n\x03gcp\x18\x04 \x01(\x0b\x32\x12.livekit.GCPUploadH\x00\x12)\n\x05\x61zure\x18\x05 \x01(\x0b\x32\x18.livekit.AzureBlobUploadH\x00\x12\'\n\x06\x61liOSS\x18\x07 \x01(\x0b\x32\x15.livekit.AliOSSUploadH\x00\x42\x08\n\x06output\"\xa0\x03\n\x13SegmentedFileOutput\x12\x30\n\x08protocol\x18\x01 \x01(\x0e\x32\x1e.livekit.SegmentedFileProtocol\x12\x17\n\x0f\x66ilename_prefix\x18\x02 \x01(\t\x12\x15\n\rplaylist_name\x18\x03 \x01(\t\x12\x1a\n\x12live_playlist_name\x18\x0b \x01(\t\x12\x18\n\x10segment_duration\x18\x04 \x01(\r\x12\x35\n\x0f\x66ilename_suffix\x18\n \x01(\x0e\x32\x1c.livekit.SegmentedFileSuffix\x12\x18\n\x10\x64isable_manifest\x18\x08 \x01(\x08\x12\x1f\n\x02s3\x18\x05 \x01(\x0b\x32\x11.livekit.S3UploadH\x00\x12!\n\x03gcp\x18\x06 \x01(\x0b\x32\x12.livekit.GCPUploadH\x00\x12)\n\x05\x61zure\x18\x07 \x01(\x0b\x32\x18.livekit.AzureBlobUploadH\x00\x12\'\n\x06\x61liOSS\x18\t \x01(\x0b\x32\x15.livekit.AliOSSUploadH\x00\x42\x08\n\x06output\"\xe0\x01\n\x10\x44irectFileOutput\x12\x10\n\x08\x66ilepath\x18\x01 \x01(\t\x12\x18\n\x10\x64isable_manifest\x18\x05 \x01(\x08\x12\x1f\n\x02s3\x18\x02 \x01(\x0b\x32\x11.livekit.S3UploadH\x00\x12!\n\x03gcp\x18\x03 \x01(\x0b\x32\x12.livekit.GCPUploadH\x00\x12)\n\x05\x61zure\x18\x04 \x01(\x0b\x32\x18.livekit.AzureBlobUploadH\x00\x12\'\n\x06\x61liOSS\x18\x06 \x01(\x0b\x32\x15.livekit.AliOSSUploadH\x00\x42\x08\n\x06output\"\xf8\x02\n\x0bImageOutput\x12\x18\n\x10\x63\x61pture_interval\x18\x01 \x01(\r\x12\r\n\x05width\x18\x02 \x01(\x05\x12\x0e\n\x06height\x18\x03 \x01(\x05\x12\x17\n\x0f\x66ilename_prefix\x18\x04 \x01(\t\x12\x31\n\x0f\x66ilename_suffix\x18\x05 \x01(\x0e\x32\x18.livekit.ImageFileSuffix\x12(\n\x0bimage_codec\x18\x06 \x01(\x0e\x32\x13.livekit.ImageCodec\x12\x18\n\x10\x64isable_manifest\x18\x07 \x01(\x08\x12\x1f\n\x02s3\x18\x08 \x01(\x0b\x32\x11.livekit.S3UploadH\x00\x12!\n\x03gcp\x18\t \x01(\x0b\x32\x12.livekit.GCPUploadH\x00\x12)\n\x05\x61zure\x18\n \x01(\x0b\x32\x18.livekit.AzureBlobUploadH\x00\x12\'\n\x06\x61liOSS\x18\x0b \x01(\x0b\x32\x15.livekit.AliOSSUploadH\x00\x42\x08\n\x06output\"\xef\x01\n\x08S3Upload\x12\x12\n\naccess_key\x18\x01 \x01(\t\x12\x0e\n\x06secret\x18\x02 \x01(\t\x12\x0e\n\x06region\x18\x03 \x01(\t\x12\x10\n\x08\x65ndpoint\x18\x04 \x01(\t\x12\x0e\n\x06\x62ucket\x18\x05 \x01(\t\x12\x18\n\x10\x66orce_path_style\x18\x06 \x01(\x08\x12\x31\n\x08metadata\x18\x07 \x03(\x0b\x32\x1f.livekit.S3Upload.MetadataEntry\x12\x0f\n\x07tagging\x18\x08 \x01(\t\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"0\n\tGCPUpload\x12\x13\n\x0b\x63redentials\x18\x01 \x01(\t\x12\x0e\n\x06\x62ucket\x18\x02 \x01(\t\"T\n\x0f\x41zureBlobUpload\x12\x14\n\x0c\x61\x63\x63ount_name\x18\x01 \x01(\t\x12\x13\n\x0b\x61\x63\x63ount_key\x18\x02 \x01(\t\x12\x16\n\x0e\x63ontainer_name\x18\x03 \x01(\t\"d\n\x0c\x41liOSSUpload\x12\x12\n\naccess_key\x18\x01 \x01(\t\x12\x0e\n\x06secret\x18\x02 \x01(\t\x12\x0e\n\x06region\x18\x03 \x01(\t\x12\x10\n\x08\x65ndpoint\x18\x04 \x01(\t\x12\x0e\n\x06\x62ucket\x18\x05 \x01(\t\"G\n\x0cStreamOutput\x12)\n\x08protocol\x18\x01 \x01(\x0e\x32\x17.livekit.StreamProtocol\x12\x0c\n\x04urls\x18\x02 \x03(\t\"\x89\x02\n\x0f\x45ncodingOptions\x12\r\n\x05width\x18\x01 \x01(\x05\x12\x0e\n\x06height\x18\x02 \x01(\x05\x12\r\n\x05\x64\x65pth\x18\x03 \x01(\x05\x12\x11\n\tframerate\x18\x04 \x01(\x05\x12(\n\x0b\x61udio_codec\x18\x05 \x01(\x0e\x32\x13.livekit.AudioCodec\x12\x15\n\raudio_bitrate\x18\x06 \x01(\x05\x12\x17\n\x0f\x61udio_frequency\x18\x07 \x01(\x05\x12(\n\x0bvideo_codec\x18\x08 \x01(\x0e\x32\x13.livekit.VideoCodec\x12\x15\n\rvideo_bitrate\x18\t \x01(\x05\x12\x1a\n\x12key_frame_interval\x18\n \x01(\x01\"8\n\x13UpdateLayoutRequest\x12\x11\n\tegress_id\x18\x01 \x01(\t\x12\x0e\n\x06layout\x18\x02 \x01(\t\"]\n\x13UpdateStreamRequest\x12\x11\n\tegress_id\x18\x01 \x01(\t\x12\x17\n\x0f\x61\x64\x64_output_urls\x18\x02 \x03(\t\x12\x1a\n\x12remove_output_urls\x18\x03 \x03(\t\"\x8e\x01\n\x14UpdateOutputsRequest\x12\x11\n\tegress_id\x18\x01 \x01(\t\x12/\n\x11\x61\x64\x64_image_outputs\x18\x02 \x03(\x0b\x32\x14.livekit.ImageOutput\x12\x32\n\x14remove_image_outputs\x18\x03 \x03(\x0b\x32\x14.livekit.ImageOutput\"I\n\x11ListEgressRequest\x12\x11\n\troom_name\x18\x01 \x01(\t\x12\x11\n\tegress_id\x18\x02 \x01(\t\x12\x0e\n\x06\x61\x63tive\x18\x03 \x01(\x08\"8\n\x12ListEgressResponse\x12\"\n\x05items\x18\x01 \x03(\x0b\x32\x13.livekit.EgressInfo\"&\n\x11StopEgressRequest\x12\x11\n\tegress_id\x18\x01 \x01(\t\"\x91\x06\n\nEgressInfo\x12\x11\n\tegress_id\x18\x01 \x01(\t\x12\x0f\n\x07room_id\x18\x02 \x01(\t\x12\x11\n\troom_name\x18\r \x01(\t\x12%\n\x06status\x18\x03 \x01(\x0e\x32\x15.livekit.EgressStatus\x12\x12\n\nstarted_at\x18\n \x01(\x03\x12\x10\n\x08\x65nded_at\x18\x0b \x01(\x03\x12\x12\n\nupdated_at\x18\x12 \x01(\x03\x12\r\n\x05\x65rror\x18\t \x01(\t\x12=\n\x0eroom_composite\x18\x04 \x01(\x0b\x32#.livekit.RoomCompositeEgressRequestH\x00\x12(\n\x03web\x18\x0e \x01(\x0b\x32\x19.livekit.WebEgressRequestH\x00\x12\x38\n\x0bparticipant\x18\x13 \x01(\x0b\x32!.livekit.ParticipantEgressRequestH\x00\x12?\n\x0ftrack_composite\x18\x05 \x01(\x0b\x32$.livekit.TrackCompositeEgressRequestH\x00\x12,\n\x05track\x18\x06 \x01(\x0b\x32\x1b.livekit.TrackEgressRequestH\x00\x12-\n\x06stream\x18\x07 \x01(\x0b\x32\x17.livekit.StreamInfoListB\x02\x18\x01H\x01\x12%\n\x04\x66ile\x18\x08 \x01(\x0b\x32\x11.livekit.FileInfoB\x02\x18\x01H\x01\x12-\n\x08segments\x18\x0c \x01(\x0b\x32\x15.livekit.SegmentsInfoB\x02\x18\x01H\x01\x12+\n\x0estream_results\x18\x0f \x03(\x0b\x32\x13.livekit.StreamInfo\x12\'\n\x0c\x66ile_results\x18\x10 \x03(\x0b\x32\x11.livekit.FileInfo\x12.\n\x0fsegment_results\x18\x11 \x03(\x0b\x32\x15.livekit.SegmentsInfo\x12*\n\rimage_results\x18\x14 \x03(\x0b\x32\x13.livekit.ImagesInfoB\t\n\x07requestB\x08\n\x06result\"7\n\x0eStreamInfoList\x12!\n\x04info\x18\x01 \x03(\x0b\x32\x13.livekit.StreamInfo:\x02\x18\x01\"\xbc\x01\n\nStreamInfo\x12\x0b\n\x03url\x18\x01 \x01(\t\x12\x12\n\nstarted_at\x18\x02 \x01(\x03\x12\x10\n\x08\x65nded_at\x18\x03 \x01(\x03\x12\x10\n\x08\x64uration\x18\x04 \x01(\x03\x12*\n\x06status\x18\x05 \x01(\x0e\x32\x1a.livekit.StreamInfo.Status\x12\r\n\x05\x65rror\x18\x06 \x01(\t\".\n\x06Status\x12\n\n\x06\x41\x43TIVE\x10\x00\x12\x0c\n\x08\x46INISHED\x10\x01\x12\n\n\x06\x46\x41ILED\x10\x02\"t\n\x08\x46ileInfo\x12\x10\n\x08\x66ilename\x18\x01 \x01(\t\x12\x12\n\nstarted_at\x18\x02 \x01(\x03\x12\x10\n\x08\x65nded_at\x18\x03 \x01(\x03\x12\x10\n\x08\x64uration\x18\x06 \x01(\x03\x12\x0c\n\x04size\x18\x04 \x01(\x03\x12\x10\n\x08location\x18\x05 \x01(\t\"\xd9\x01\n\x0cSegmentsInfo\x12\x15\n\rplaylist_name\x18\x01 \x01(\t\x12\x1a\n\x12live_playlist_name\x18\x08 \x01(\t\x12\x10\n\x08\x64uration\x18\x02 \x01(\x03\x12\x0c\n\x04size\x18\x03 \x01(\x03\x12\x19\n\x11playlist_location\x18\x04 \x01(\t\x12\x1e\n\x16live_playlist_location\x18\t \x01(\t\x12\x15\n\rsegment_count\x18\x05 \x01(\x03\x12\x12\n\nstarted_at\x18\x06 \x01(\x03\x12\x10\n\x08\x65nded_at\x18\x07 \x01(\x03\"G\n\nImagesInfo\x12\x13\n\x0bimage_count\x18\x01 \x01(\x03\x12\x12\n\nstarted_at\x18\x02 \x01(\x03\x12\x10\n\x08\x65nded_at\x18\x03 \x01(\x03\"\xeb\x01\n\x15\x41utoParticipantEgress\x12\x30\n\x06preset\x18\x01 \x01(\x0e\x32\x1e.livekit.EncodingOptionsPresetH\x00\x12,\n\x08\x61\x64vanced\x18\x02 \x01(\x0b\x32\x18.livekit.EncodingOptionsH\x00\x12\x30\n\x0c\x66ile_outputs\x18\x03 \x03(\x0b\x32\x1a.livekit.EncodedFileOutput\x12\x35\n\x0fsegment_outputs\x18\x04 \x03(\x0b\x32\x1c.livekit.SegmentedFileOutputB\t\n\x07options\"\xb6\x01\n\x0f\x41utoTrackEgress\x12\x10\n\x08\x66ilepath\x18\x01 \x01(\t\x12\x18\n\x10\x64isable_manifest\x18\x05 \x01(\x08\x12\x1f\n\x02s3\x18\x02 \x01(\x0b\x32\x11.livekit.S3UploadH\x00\x12!\n\x03gcp\x18\x03 \x01(\x0b\x32\x12.livekit.GCPUploadH\x00\x12)\n\x05\x61zure\x18\x04 \x01(\x0b\x32\x18.livekit.AzureBlobUploadH\x00\x42\x08\n\x06output*9\n\x0f\x45ncodedFileType\x12\x14\n\x10\x44\x45\x46\x41ULT_FILETYPE\x10\x00\x12\x07\n\x03MP4\x10\x01\x12\x07\n\x03OGG\x10\x02*N\n\x15SegmentedFileProtocol\x12#\n\x1f\x44\x45\x46\x41ULT_SEGMENTED_FILE_PROTOCOL\x10\x00\x12\x10\n\x0cHLS_PROTOCOL\x10\x01*/\n\x13SegmentedFileSuffix\x12\t\n\x05INDEX\x10\x00\x12\r\n\tTIMESTAMP\x10\x01*E\n\x0fImageFileSuffix\x12\x16\n\x12IMAGE_SUFFIX_INDEX\x10\x00\x12\x1a\n\x16IMAGE_SUFFIX_TIMESTAMP\x10\x01*0\n\x0eStreamProtocol\x12\x14\n\x10\x44\x45\x46\x41ULT_PROTOCOL\x10\x00\x12\x08\n\x04RTMP\x10\x01*\xcf\x01\n\x15\x45ncodingOptionsPreset\x12\x10\n\x0cH264_720P_30\x10\x00\x12\x10\n\x0cH264_720P_60\x10\x01\x12\x11\n\rH264_1080P_30\x10\x02\x12\x11\n\rH264_1080P_60\x10\x03\x12\x19\n\x15PORTRAIT_H264_720P_30\x10\x04\x12\x19\n\x15PORTRAIT_H264_720P_60\x10\x05\x12\x1a\n\x16PORTRAIT_H264_1080P_30\x10\x06\x12\x1a\n\x16PORTRAIT_H264_1080P_60\x10\x07*\x9f\x01\n\x0c\x45gressStatus\x12\x13\n\x0f\x45GRESS_STARTING\x10\x00\x12\x11\n\rEGRESS_ACTIVE\x10\x01\x12\x11\n\rEGRESS_ENDING\x10\x02\x12\x13\n\x0f\x45GRESS_COMPLETE\x10\x03\x12\x11\n\rEGRESS_FAILED\x10\x04\x12\x12\n\x0e\x45GRESS_ABORTED\x10\x05\x12\x18\n\x14\x45GRESS_LIMIT_REACHED\x10\x06\x32\xe1\x05\n\x06\x45gress\x12T\n\x18StartRoomCompositeEgress\x12#.livekit.RoomCompositeEgressRequest\x1a\x13.livekit.EgressInfo\x12@\n\x0eStartWebEgress\x12\x19.livekit.WebEgressRequest\x1a\x13.livekit.EgressInfo\x12P\n\x16StartParticipantEgress\x12!.livekit.ParticipantEgressRequest\x1a\x13.livekit.EgressInfo\x12V\n\x19StartTrackCompositeEgress\x12$.livekit.TrackCompositeEgressRequest\x1a\x13.livekit.EgressInfo\x12\x44\n\x10StartTrackEgress\x12\x1b.livekit.TrackEgressRequest\x1a\x13.livekit.EgressInfo\x12\x41\n\x0cUpdateLayout\x12\x1c.livekit.UpdateLayoutRequest\x1a\x13.livekit.EgressInfo\x12\x41\n\x0cUpdateStream\x12\x1c.livekit.UpdateStreamRequest\x1a\x13.livekit.EgressInfo\x12\x43\n\rUpdateOutputs\x12\x1d.livekit.UpdateOutputsRequest\x1a\x13.livekit.EgressInfo\x12\x45\n\nListEgress\x12\x1a.livekit.ListEgressRequest\x1a\x1b.livekit.ListEgressResponse\x12=\n\nStopEgress\x12\x1a.livekit.StopEgressRequest\x1a\x13.livekit.EgressInfoBFZ#github.com/livekit/protocol/livekit\xaa\x02\rLiveKit.Proto\xea\x02\x0eLiveKit::Protob\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'livekit_egress_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'Z#github.com/livekit/protocol/livekit\252\002\rLiveKit.Proto\352\002\016LiveKit::Proto' - _ROOMCOMPOSITEEGRESSREQUEST.fields_by_name['file']._options = None - _ROOMCOMPOSITEEGRESSREQUEST.fields_by_name['file']._serialized_options = b'\030\001' - _ROOMCOMPOSITEEGRESSREQUEST.fields_by_name['stream']._options = None - _ROOMCOMPOSITEEGRESSREQUEST.fields_by_name['stream']._serialized_options = b'\030\001' - _ROOMCOMPOSITEEGRESSREQUEST.fields_by_name['segments']._options = None - _ROOMCOMPOSITEEGRESSREQUEST.fields_by_name['segments']._serialized_options = b'\030\001' - _WEBEGRESSREQUEST.fields_by_name['file']._options = None - _WEBEGRESSREQUEST.fields_by_name['file']._serialized_options = b'\030\001' - _WEBEGRESSREQUEST.fields_by_name['stream']._options = None - _WEBEGRESSREQUEST.fields_by_name['stream']._serialized_options = b'\030\001' - _WEBEGRESSREQUEST.fields_by_name['segments']._options = None - _WEBEGRESSREQUEST.fields_by_name['segments']._serialized_options = b'\030\001' - _TRACKCOMPOSITEEGRESSREQUEST.fields_by_name['file']._options = None - _TRACKCOMPOSITEEGRESSREQUEST.fields_by_name['file']._serialized_options = b'\030\001' - _TRACKCOMPOSITEEGRESSREQUEST.fields_by_name['stream']._options = None - _TRACKCOMPOSITEEGRESSREQUEST.fields_by_name['stream']._serialized_options = b'\030\001' - _TRACKCOMPOSITEEGRESSREQUEST.fields_by_name['segments']._options = None - _TRACKCOMPOSITEEGRESSREQUEST.fields_by_name['segments']._serialized_options = b'\030\001' - _S3UPLOAD_METADATAENTRY._options = None - _S3UPLOAD_METADATAENTRY._serialized_options = b'8\001' - _EGRESSINFO.fields_by_name['stream']._options = None - _EGRESSINFO.fields_by_name['stream']._serialized_options = b'\030\001' - _EGRESSINFO.fields_by_name['file']._options = None - _EGRESSINFO.fields_by_name['file']._serialized_options = b'\030\001' - _EGRESSINFO.fields_by_name['segments']._options = None - _EGRESSINFO.fields_by_name['segments']._serialized_options = b'\030\001' - _STREAMINFOLIST._options = None - _STREAMINFOLIST._serialized_options = b'\030\001' - _globals['_ENCODEDFILETYPE']._serialized_start=6760 - _globals['_ENCODEDFILETYPE']._serialized_end=6817 - _globals['_SEGMENTEDFILEPROTOCOL']._serialized_start=6819 - _globals['_SEGMENTEDFILEPROTOCOL']._serialized_end=6897 - _globals['_SEGMENTEDFILESUFFIX']._serialized_start=6899 - _globals['_SEGMENTEDFILESUFFIX']._serialized_end=6946 - _globals['_IMAGEFILESUFFIX']._serialized_start=6948 - _globals['_IMAGEFILESUFFIX']._serialized_end=7017 - _globals['_STREAMPROTOCOL']._serialized_start=7019 - _globals['_STREAMPROTOCOL']._serialized_end=7067 - _globals['_ENCODINGOPTIONSPRESET']._serialized_start=7070 - _globals['_ENCODINGOPTIONSPRESET']._serialized_end=7277 - _globals['_EGRESSSTATUS']._serialized_start=7280 - _globals['_EGRESSSTATUS']._serialized_end=7439 - _globals['_ROOMCOMPOSITEEGRESSREQUEST']._serialized_start=56 - _globals['_ROOMCOMPOSITEEGRESSREQUEST']._serialized_end=645 - _globals['_WEBEGRESSREQUEST']._serialized_start=648 - _globals['_WEBEGRESSREQUEST']._serialized_end=1208 - _globals['_PARTICIPANTEGRESSREQUEST']._serialized_start=1211 - _globals['_PARTICIPANTEGRESSREQUEST']._serialized_end=1600 - _globals['_TRACKCOMPOSITEEGRESSREQUEST']._serialized_start=1603 - _globals['_TRACKCOMPOSITEEGRESSREQUEST']._serialized_end=2160 - _globals['_TRACKEGRESSREQUEST']._serialized_start=2163 - _globals['_TRACKEGRESSREQUEST']._serialized_end=2298 - _globals['_ENCODEDFILEOUTPUT']._serialized_start=2301 - _globals['_ENCODEDFILEOUTPUT']._serialized_end=2571 - _globals['_SEGMENTEDFILEOUTPUT']._serialized_start=2574 - _globals['_SEGMENTEDFILEOUTPUT']._serialized_end=2990 - _globals['_DIRECTFILEOUTPUT']._serialized_start=2993 - _globals['_DIRECTFILEOUTPUT']._serialized_end=3217 - _globals['_IMAGEOUTPUT']._serialized_start=3220 - _globals['_IMAGEOUTPUT']._serialized_end=3596 - _globals['_S3UPLOAD']._serialized_start=3599 - _globals['_S3UPLOAD']._serialized_end=3838 - _globals['_S3UPLOAD_METADATAENTRY']._serialized_start=3791 - _globals['_S3UPLOAD_METADATAENTRY']._serialized_end=3838 - _globals['_GCPUPLOAD']._serialized_start=3840 - _globals['_GCPUPLOAD']._serialized_end=3888 - _globals['_AZUREBLOBUPLOAD']._serialized_start=3890 - _globals['_AZUREBLOBUPLOAD']._serialized_end=3974 - _globals['_ALIOSSUPLOAD']._serialized_start=3976 - _globals['_ALIOSSUPLOAD']._serialized_end=4076 - _globals['_STREAMOUTPUT']._serialized_start=4078 - _globals['_STREAMOUTPUT']._serialized_end=4149 - _globals['_ENCODINGOPTIONS']._serialized_start=4152 - _globals['_ENCODINGOPTIONS']._serialized_end=4417 - _globals['_UPDATELAYOUTREQUEST']._serialized_start=4419 - _globals['_UPDATELAYOUTREQUEST']._serialized_end=4475 - _globals['_UPDATESTREAMREQUEST']._serialized_start=4477 - _globals['_UPDATESTREAMREQUEST']._serialized_end=4570 - _globals['_UPDATEOUTPUTSREQUEST']._serialized_start=4573 - _globals['_UPDATEOUTPUTSREQUEST']._serialized_end=4715 - _globals['_LISTEGRESSREQUEST']._serialized_start=4717 - _globals['_LISTEGRESSREQUEST']._serialized_end=4790 - _globals['_LISTEGRESSRESPONSE']._serialized_start=4792 - _globals['_LISTEGRESSRESPONSE']._serialized_end=4848 - _globals['_STOPEGRESSREQUEST']._serialized_start=4850 - _globals['_STOPEGRESSREQUEST']._serialized_end=4888 - _globals['_EGRESSINFO']._serialized_start=4891 - _globals['_EGRESSINFO']._serialized_end=5676 - _globals['_STREAMINFOLIST']._serialized_start=5678 - _globals['_STREAMINFOLIST']._serialized_end=5733 - _globals['_STREAMINFO']._serialized_start=5736 - _globals['_STREAMINFO']._serialized_end=5924 - _globals['_STREAMINFO_STATUS']._serialized_start=5878 - _globals['_STREAMINFO_STATUS']._serialized_end=5924 - _globals['_FILEINFO']._serialized_start=5926 - _globals['_FILEINFO']._serialized_end=6042 - _globals['_SEGMENTSINFO']._serialized_start=6045 - _globals['_SEGMENTSINFO']._serialized_end=6262 - _globals['_IMAGESINFO']._serialized_start=6264 - _globals['_IMAGESINFO']._serialized_end=6335 - _globals['_AUTOPARTICIPANTEGRESS']._serialized_start=6338 - _globals['_AUTOPARTICIPANTEGRESS']._serialized_end=6573 - _globals['_AUTOTRACKEGRESS']._serialized_start=6576 - _globals['_AUTOTRACKEGRESS']._serialized_end=6758 - _globals['_EGRESS']._serialized_start=7442 - _globals['_EGRESS']._serialized_end=8179 -# @@protoc_insertion_point(module_scope) diff --git a/livekit-api/livekit/api/_proto/livekit_egress_pb2.pyi b/livekit-api/livekit/api/_proto/livekit_egress_pb2.pyi deleted file mode 100644 index dab30165..00000000 --- a/livekit-api/livekit/api/_proto/livekit_egress_pb2.pyi +++ /dev/null @@ -1,1290 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -Copyright 2023 LiveKit, Inc. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -""" -import builtins -import collections.abc -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.internal.enum_type_wrapper -import google.protobuf.message -from . import livekit_models_pb2 -import sys -import typing - -if sys.version_info >= (3, 10): - import typing as typing_extensions -else: - import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor - -class _EncodedFileType: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType - -class _EncodedFileTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_EncodedFileType.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - DEFAULT_FILETYPE: _EncodedFileType.ValueType # 0 - """file type chosen based on codecs""" - MP4: _EncodedFileType.ValueType # 1 - OGG: _EncodedFileType.ValueType # 2 - -class EncodedFileType(_EncodedFileType, metaclass=_EncodedFileTypeEnumTypeWrapper): ... - -DEFAULT_FILETYPE: EncodedFileType.ValueType # 0 -"""file type chosen based on codecs""" -MP4: EncodedFileType.ValueType # 1 -OGG: EncodedFileType.ValueType # 2 -global___EncodedFileType = EncodedFileType - -class _SegmentedFileProtocol: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType - -class _SegmentedFileProtocolEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_SegmentedFileProtocol.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - DEFAULT_SEGMENTED_FILE_PROTOCOL: _SegmentedFileProtocol.ValueType # 0 - HLS_PROTOCOL: _SegmentedFileProtocol.ValueType # 1 - -class SegmentedFileProtocol(_SegmentedFileProtocol, metaclass=_SegmentedFileProtocolEnumTypeWrapper): ... - -DEFAULT_SEGMENTED_FILE_PROTOCOL: SegmentedFileProtocol.ValueType # 0 -HLS_PROTOCOL: SegmentedFileProtocol.ValueType # 1 -global___SegmentedFileProtocol = SegmentedFileProtocol - -class _SegmentedFileSuffix: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType - -class _SegmentedFileSuffixEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_SegmentedFileSuffix.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - INDEX: _SegmentedFileSuffix.ValueType # 0 - TIMESTAMP: _SegmentedFileSuffix.ValueType # 1 - -class SegmentedFileSuffix(_SegmentedFileSuffix, metaclass=_SegmentedFileSuffixEnumTypeWrapper): ... - -INDEX: SegmentedFileSuffix.ValueType # 0 -TIMESTAMP: SegmentedFileSuffix.ValueType # 1 -global___SegmentedFileSuffix = SegmentedFileSuffix - -class _ImageFileSuffix: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType - -class _ImageFileSuffixEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ImageFileSuffix.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - IMAGE_SUFFIX_INDEX: _ImageFileSuffix.ValueType # 0 - IMAGE_SUFFIX_TIMESTAMP: _ImageFileSuffix.ValueType # 1 - -class ImageFileSuffix(_ImageFileSuffix, metaclass=_ImageFileSuffixEnumTypeWrapper): ... - -IMAGE_SUFFIX_INDEX: ImageFileSuffix.ValueType # 0 -IMAGE_SUFFIX_TIMESTAMP: ImageFileSuffix.ValueType # 1 -global___ImageFileSuffix = ImageFileSuffix - -class _StreamProtocol: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType - -class _StreamProtocolEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_StreamProtocol.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - DEFAULT_PROTOCOL: _StreamProtocol.ValueType # 0 - """protocol chosen based on urls""" - RTMP: _StreamProtocol.ValueType # 1 - -class StreamProtocol(_StreamProtocol, metaclass=_StreamProtocolEnumTypeWrapper): ... - -DEFAULT_PROTOCOL: StreamProtocol.ValueType # 0 -"""protocol chosen based on urls""" -RTMP: StreamProtocol.ValueType # 1 -global___StreamProtocol = StreamProtocol - -class _EncodingOptionsPreset: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType - -class _EncodingOptionsPresetEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_EncodingOptionsPreset.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - H264_720P_30: _EncodingOptionsPreset.ValueType # 0 - """ 1280x720, 30fps, 3000kpbs, H.264_MAIN / OPUS""" - H264_720P_60: _EncodingOptionsPreset.ValueType # 1 - """ 1280x720, 60fps, 4500kbps, H.264_MAIN / OPUS""" - H264_1080P_30: _EncodingOptionsPreset.ValueType # 2 - """1920x1080, 30fps, 4500kbps, H.264_MAIN / OPUS""" - H264_1080P_60: _EncodingOptionsPreset.ValueType # 3 - """1920x1080, 60fps, 6000kbps, H.264_MAIN / OPUS""" - PORTRAIT_H264_720P_30: _EncodingOptionsPreset.ValueType # 4 - """ 720x1280, 30fps, 3000kpbs, H.264_MAIN / OPUS""" - PORTRAIT_H264_720P_60: _EncodingOptionsPreset.ValueType # 5 - """ 720x1280, 60fps, 4500kbps, H.264_MAIN / OPUS""" - PORTRAIT_H264_1080P_30: _EncodingOptionsPreset.ValueType # 6 - """1080x1920, 30fps, 4500kbps, H.264_MAIN / OPUS""" - PORTRAIT_H264_1080P_60: _EncodingOptionsPreset.ValueType # 7 - """1080x1920, 60fps, 6000kbps, H.264_MAIN / OPUS""" - -class EncodingOptionsPreset(_EncodingOptionsPreset, metaclass=_EncodingOptionsPresetEnumTypeWrapper): ... - -H264_720P_30: EncodingOptionsPreset.ValueType # 0 -""" 1280x720, 30fps, 3000kpbs, H.264_MAIN / OPUS""" -H264_720P_60: EncodingOptionsPreset.ValueType # 1 -""" 1280x720, 60fps, 4500kbps, H.264_MAIN / OPUS""" -H264_1080P_30: EncodingOptionsPreset.ValueType # 2 -"""1920x1080, 30fps, 4500kbps, H.264_MAIN / OPUS""" -H264_1080P_60: EncodingOptionsPreset.ValueType # 3 -"""1920x1080, 60fps, 6000kbps, H.264_MAIN / OPUS""" -PORTRAIT_H264_720P_30: EncodingOptionsPreset.ValueType # 4 -""" 720x1280, 30fps, 3000kpbs, H.264_MAIN / OPUS""" -PORTRAIT_H264_720P_60: EncodingOptionsPreset.ValueType # 5 -""" 720x1280, 60fps, 4500kbps, H.264_MAIN / OPUS""" -PORTRAIT_H264_1080P_30: EncodingOptionsPreset.ValueType # 6 -"""1080x1920, 30fps, 4500kbps, H.264_MAIN / OPUS""" -PORTRAIT_H264_1080P_60: EncodingOptionsPreset.ValueType # 7 -"""1080x1920, 60fps, 6000kbps, H.264_MAIN / OPUS""" -global___EncodingOptionsPreset = EncodingOptionsPreset - -class _EgressStatus: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType - -class _EgressStatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_EgressStatus.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - EGRESS_STARTING: _EgressStatus.ValueType # 0 - EGRESS_ACTIVE: _EgressStatus.ValueType # 1 - EGRESS_ENDING: _EgressStatus.ValueType # 2 - EGRESS_COMPLETE: _EgressStatus.ValueType # 3 - EGRESS_FAILED: _EgressStatus.ValueType # 4 - EGRESS_ABORTED: _EgressStatus.ValueType # 5 - EGRESS_LIMIT_REACHED: _EgressStatus.ValueType # 6 - -class EgressStatus(_EgressStatus, metaclass=_EgressStatusEnumTypeWrapper): ... - -EGRESS_STARTING: EgressStatus.ValueType # 0 -EGRESS_ACTIVE: EgressStatus.ValueType # 1 -EGRESS_ENDING: EgressStatus.ValueType # 2 -EGRESS_COMPLETE: EgressStatus.ValueType # 3 -EGRESS_FAILED: EgressStatus.ValueType # 4 -EGRESS_ABORTED: EgressStatus.ValueType # 5 -EGRESS_LIMIT_REACHED: EgressStatus.ValueType # 6 -global___EgressStatus = EgressStatus - -@typing_extensions.final -class RoomCompositeEgressRequest(google.protobuf.message.Message): - """composite using a web browser""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ROOM_NAME_FIELD_NUMBER: builtins.int - LAYOUT_FIELD_NUMBER: builtins.int - AUDIO_ONLY_FIELD_NUMBER: builtins.int - VIDEO_ONLY_FIELD_NUMBER: builtins.int - CUSTOM_BASE_URL_FIELD_NUMBER: builtins.int - FILE_FIELD_NUMBER: builtins.int - STREAM_FIELD_NUMBER: builtins.int - SEGMENTS_FIELD_NUMBER: builtins.int - PRESET_FIELD_NUMBER: builtins.int - ADVANCED_FIELD_NUMBER: builtins.int - FILE_OUTPUTS_FIELD_NUMBER: builtins.int - STREAM_OUTPUTS_FIELD_NUMBER: builtins.int - SEGMENT_OUTPUTS_FIELD_NUMBER: builtins.int - IMAGE_OUTPUTS_FIELD_NUMBER: builtins.int - room_name: builtins.str - """required""" - layout: builtins.str - """(optional)""" - audio_only: builtins.bool - """(default false)""" - video_only: builtins.bool - """(default false)""" - custom_base_url: builtins.str - """template base url (default https://recorder.livekit.io)""" - @property - def file(self) -> global___EncodedFileOutput: ... - @property - def stream(self) -> global___StreamOutput: ... - @property - def segments(self) -> global___SegmentedFileOutput: ... - preset: global___EncodingOptionsPreset.ValueType - """(default H264_720P_30)""" - @property - def advanced(self) -> global___EncodingOptions: - """(optional)""" - @property - def file_outputs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___EncodedFileOutput]: ... - @property - def stream_outputs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___StreamOutput]: ... - @property - def segment_outputs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SegmentedFileOutput]: ... - @property - def image_outputs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ImageOutput]: ... - def __init__( - self, - *, - room_name: builtins.str = ..., - layout: builtins.str = ..., - audio_only: builtins.bool = ..., - video_only: builtins.bool = ..., - custom_base_url: builtins.str = ..., - file: global___EncodedFileOutput | None = ..., - stream: global___StreamOutput | None = ..., - segments: global___SegmentedFileOutput | None = ..., - preset: global___EncodingOptionsPreset.ValueType = ..., - advanced: global___EncodingOptions | None = ..., - file_outputs: collections.abc.Iterable[global___EncodedFileOutput] | None = ..., - stream_outputs: collections.abc.Iterable[global___StreamOutput] | None = ..., - segment_outputs: collections.abc.Iterable[global___SegmentedFileOutput] | None = ..., - image_outputs: collections.abc.Iterable[global___ImageOutput] | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["advanced", b"advanced", "file", b"file", "options", b"options", "output", b"output", "preset", b"preset", "segments", b"segments", "stream", b"stream"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["advanced", b"advanced", "audio_only", b"audio_only", "custom_base_url", b"custom_base_url", "file", b"file", "file_outputs", b"file_outputs", "image_outputs", b"image_outputs", "layout", b"layout", "options", b"options", "output", b"output", "preset", b"preset", "room_name", b"room_name", "segment_outputs", b"segment_outputs", "segments", b"segments", "stream", b"stream", "stream_outputs", b"stream_outputs", "video_only", b"video_only"]) -> None: ... - @typing.overload - def WhichOneof(self, oneof_group: typing_extensions.Literal["options", b"options"]) -> typing_extensions.Literal["preset", "advanced"] | None: ... - @typing.overload - def WhichOneof(self, oneof_group: typing_extensions.Literal["output", b"output"]) -> typing_extensions.Literal["file", "stream", "segments"] | None: ... - -global___RoomCompositeEgressRequest = RoomCompositeEgressRequest - -@typing_extensions.final -class WebEgressRequest(google.protobuf.message.Message): - """record any website""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - URL_FIELD_NUMBER: builtins.int - AUDIO_ONLY_FIELD_NUMBER: builtins.int - VIDEO_ONLY_FIELD_NUMBER: builtins.int - AWAIT_START_SIGNAL_FIELD_NUMBER: builtins.int - FILE_FIELD_NUMBER: builtins.int - STREAM_FIELD_NUMBER: builtins.int - SEGMENTS_FIELD_NUMBER: builtins.int - PRESET_FIELD_NUMBER: builtins.int - ADVANCED_FIELD_NUMBER: builtins.int - FILE_OUTPUTS_FIELD_NUMBER: builtins.int - STREAM_OUTPUTS_FIELD_NUMBER: builtins.int - SEGMENT_OUTPUTS_FIELD_NUMBER: builtins.int - IMAGE_OUTPUTS_FIELD_NUMBER: builtins.int - url: builtins.str - audio_only: builtins.bool - video_only: builtins.bool - await_start_signal: builtins.bool - @property - def file(self) -> global___EncodedFileOutput: ... - @property - def stream(self) -> global___StreamOutput: ... - @property - def segments(self) -> global___SegmentedFileOutput: ... - preset: global___EncodingOptionsPreset.ValueType - @property - def advanced(self) -> global___EncodingOptions: ... - @property - def file_outputs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___EncodedFileOutput]: ... - @property - def stream_outputs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___StreamOutput]: ... - @property - def segment_outputs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SegmentedFileOutput]: ... - @property - def image_outputs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ImageOutput]: ... - def __init__( - self, - *, - url: builtins.str = ..., - audio_only: builtins.bool = ..., - video_only: builtins.bool = ..., - await_start_signal: builtins.bool = ..., - file: global___EncodedFileOutput | None = ..., - stream: global___StreamOutput | None = ..., - segments: global___SegmentedFileOutput | None = ..., - preset: global___EncodingOptionsPreset.ValueType = ..., - advanced: global___EncodingOptions | None = ..., - file_outputs: collections.abc.Iterable[global___EncodedFileOutput] | None = ..., - stream_outputs: collections.abc.Iterable[global___StreamOutput] | None = ..., - segment_outputs: collections.abc.Iterable[global___SegmentedFileOutput] | None = ..., - image_outputs: collections.abc.Iterable[global___ImageOutput] | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["advanced", b"advanced", "file", b"file", "options", b"options", "output", b"output", "preset", b"preset", "segments", b"segments", "stream", b"stream"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["advanced", b"advanced", "audio_only", b"audio_only", "await_start_signal", b"await_start_signal", "file", b"file", "file_outputs", b"file_outputs", "image_outputs", b"image_outputs", "options", b"options", "output", b"output", "preset", b"preset", "segment_outputs", b"segment_outputs", "segments", b"segments", "stream", b"stream", "stream_outputs", b"stream_outputs", "url", b"url", "video_only", b"video_only"]) -> None: ... - @typing.overload - def WhichOneof(self, oneof_group: typing_extensions.Literal["options", b"options"]) -> typing_extensions.Literal["preset", "advanced"] | None: ... - @typing.overload - def WhichOneof(self, oneof_group: typing_extensions.Literal["output", b"output"]) -> typing_extensions.Literal["file", "stream", "segments"] | None: ... - -global___WebEgressRequest = WebEgressRequest - -@typing_extensions.final -class ParticipantEgressRequest(google.protobuf.message.Message): - """record audio and video from a single participant""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ROOM_NAME_FIELD_NUMBER: builtins.int - IDENTITY_FIELD_NUMBER: builtins.int - SCREEN_SHARE_FIELD_NUMBER: builtins.int - PRESET_FIELD_NUMBER: builtins.int - ADVANCED_FIELD_NUMBER: builtins.int - FILE_OUTPUTS_FIELD_NUMBER: builtins.int - STREAM_OUTPUTS_FIELD_NUMBER: builtins.int - SEGMENT_OUTPUTS_FIELD_NUMBER: builtins.int - IMAGE_OUTPUTS_FIELD_NUMBER: builtins.int - room_name: builtins.str - """required""" - identity: builtins.str - """required""" - screen_share: builtins.bool - """(default false)""" - preset: global___EncodingOptionsPreset.ValueType - """(default H264_720P_30)""" - @property - def advanced(self) -> global___EncodingOptions: - """(optional)""" - @property - def file_outputs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___EncodedFileOutput]: ... - @property - def stream_outputs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___StreamOutput]: ... - @property - def segment_outputs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SegmentedFileOutput]: ... - @property - def image_outputs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ImageOutput]: ... - def __init__( - self, - *, - room_name: builtins.str = ..., - identity: builtins.str = ..., - screen_share: builtins.bool = ..., - preset: global___EncodingOptionsPreset.ValueType = ..., - advanced: global___EncodingOptions | None = ..., - file_outputs: collections.abc.Iterable[global___EncodedFileOutput] | None = ..., - stream_outputs: collections.abc.Iterable[global___StreamOutput] | None = ..., - segment_outputs: collections.abc.Iterable[global___SegmentedFileOutput] | None = ..., - image_outputs: collections.abc.Iterable[global___ImageOutput] | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["advanced", b"advanced", "options", b"options", "preset", b"preset"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["advanced", b"advanced", "file_outputs", b"file_outputs", "identity", b"identity", "image_outputs", b"image_outputs", "options", b"options", "preset", b"preset", "room_name", b"room_name", "screen_share", b"screen_share", "segment_outputs", b"segment_outputs", "stream_outputs", b"stream_outputs"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["options", b"options"]) -> typing_extensions.Literal["preset", "advanced"] | None: ... - -global___ParticipantEgressRequest = ParticipantEgressRequest - -@typing_extensions.final -class TrackCompositeEgressRequest(google.protobuf.message.Message): - """containerize up to one audio and one video track""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ROOM_NAME_FIELD_NUMBER: builtins.int - AUDIO_TRACK_ID_FIELD_NUMBER: builtins.int - VIDEO_TRACK_ID_FIELD_NUMBER: builtins.int - FILE_FIELD_NUMBER: builtins.int - STREAM_FIELD_NUMBER: builtins.int - SEGMENTS_FIELD_NUMBER: builtins.int - PRESET_FIELD_NUMBER: builtins.int - ADVANCED_FIELD_NUMBER: builtins.int - FILE_OUTPUTS_FIELD_NUMBER: builtins.int - STREAM_OUTPUTS_FIELD_NUMBER: builtins.int - SEGMENT_OUTPUTS_FIELD_NUMBER: builtins.int - IMAGE_OUTPUTS_FIELD_NUMBER: builtins.int - room_name: builtins.str - """required""" - audio_track_id: builtins.str - """(optional)""" - video_track_id: builtins.str - """(optional)""" - @property - def file(self) -> global___EncodedFileOutput: ... - @property - def stream(self) -> global___StreamOutput: ... - @property - def segments(self) -> global___SegmentedFileOutput: ... - preset: global___EncodingOptionsPreset.ValueType - """(default H264_720P_30)""" - @property - def advanced(self) -> global___EncodingOptions: - """(optional)""" - @property - def file_outputs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___EncodedFileOutput]: ... - @property - def stream_outputs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___StreamOutput]: ... - @property - def segment_outputs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SegmentedFileOutput]: ... - @property - def image_outputs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ImageOutput]: ... - def __init__( - self, - *, - room_name: builtins.str = ..., - audio_track_id: builtins.str = ..., - video_track_id: builtins.str = ..., - file: global___EncodedFileOutput | None = ..., - stream: global___StreamOutput | None = ..., - segments: global___SegmentedFileOutput | None = ..., - preset: global___EncodingOptionsPreset.ValueType = ..., - advanced: global___EncodingOptions | None = ..., - file_outputs: collections.abc.Iterable[global___EncodedFileOutput] | None = ..., - stream_outputs: collections.abc.Iterable[global___StreamOutput] | None = ..., - segment_outputs: collections.abc.Iterable[global___SegmentedFileOutput] | None = ..., - image_outputs: collections.abc.Iterable[global___ImageOutput] | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["advanced", b"advanced", "file", b"file", "options", b"options", "output", b"output", "preset", b"preset", "segments", b"segments", "stream", b"stream"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["advanced", b"advanced", "audio_track_id", b"audio_track_id", "file", b"file", "file_outputs", b"file_outputs", "image_outputs", b"image_outputs", "options", b"options", "output", b"output", "preset", b"preset", "room_name", b"room_name", "segment_outputs", b"segment_outputs", "segments", b"segments", "stream", b"stream", "stream_outputs", b"stream_outputs", "video_track_id", b"video_track_id"]) -> None: ... - @typing.overload - def WhichOneof(self, oneof_group: typing_extensions.Literal["options", b"options"]) -> typing_extensions.Literal["preset", "advanced"] | None: ... - @typing.overload - def WhichOneof(self, oneof_group: typing_extensions.Literal["output", b"output"]) -> typing_extensions.Literal["file", "stream", "segments"] | None: ... - -global___TrackCompositeEgressRequest = TrackCompositeEgressRequest - -@typing_extensions.final -class TrackEgressRequest(google.protobuf.message.Message): - """record tracks individually, without transcoding""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ROOM_NAME_FIELD_NUMBER: builtins.int - TRACK_ID_FIELD_NUMBER: builtins.int - FILE_FIELD_NUMBER: builtins.int - WEBSOCKET_URL_FIELD_NUMBER: builtins.int - room_name: builtins.str - """required""" - track_id: builtins.str - """required""" - @property - def file(self) -> global___DirectFileOutput: ... - websocket_url: builtins.str - def __init__( - self, - *, - room_name: builtins.str = ..., - track_id: builtins.str = ..., - file: global___DirectFileOutput | None = ..., - websocket_url: builtins.str = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["file", b"file", "output", b"output", "websocket_url", b"websocket_url"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["file", b"file", "output", b"output", "room_name", b"room_name", "track_id", b"track_id", "websocket_url", b"websocket_url"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["output", b"output"]) -> typing_extensions.Literal["file", "websocket_url"] | None: ... - -global___TrackEgressRequest = TrackEgressRequest - -@typing_extensions.final -class EncodedFileOutput(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - FILE_TYPE_FIELD_NUMBER: builtins.int - FILEPATH_FIELD_NUMBER: builtins.int - DISABLE_MANIFEST_FIELD_NUMBER: builtins.int - S3_FIELD_NUMBER: builtins.int - GCP_FIELD_NUMBER: builtins.int - AZURE_FIELD_NUMBER: builtins.int - ALIOSS_FIELD_NUMBER: builtins.int - file_type: global___EncodedFileType.ValueType - """(optional)""" - filepath: builtins.str - """see egress docs for templating (default {room_name}-{time})""" - disable_manifest: builtins.bool - """disable upload of manifest file (default false)""" - @property - def s3(self) -> global___S3Upload: ... - @property - def gcp(self) -> global___GCPUpload: ... - @property - def azure(self) -> global___AzureBlobUpload: ... - @property - def aliOSS(self) -> global___AliOSSUpload: ... - def __init__( - self, - *, - file_type: global___EncodedFileType.ValueType = ..., - filepath: builtins.str = ..., - disable_manifest: builtins.bool = ..., - s3: global___S3Upload | None = ..., - gcp: global___GCPUpload | None = ..., - azure: global___AzureBlobUpload | None = ..., - aliOSS: global___AliOSSUpload | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["aliOSS", b"aliOSS", "azure", b"azure", "gcp", b"gcp", "output", b"output", "s3", b"s3"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["aliOSS", b"aliOSS", "azure", b"azure", "disable_manifest", b"disable_manifest", "file_type", b"file_type", "filepath", b"filepath", "gcp", b"gcp", "output", b"output", "s3", b"s3"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["output", b"output"]) -> typing_extensions.Literal["s3", "gcp", "azure", "aliOSS"] | None: ... - -global___EncodedFileOutput = EncodedFileOutput - -@typing_extensions.final -class SegmentedFileOutput(google.protobuf.message.Message): - """Used to generate HLS segments or other kind of segmented output""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PROTOCOL_FIELD_NUMBER: builtins.int - FILENAME_PREFIX_FIELD_NUMBER: builtins.int - PLAYLIST_NAME_FIELD_NUMBER: builtins.int - LIVE_PLAYLIST_NAME_FIELD_NUMBER: builtins.int - SEGMENT_DURATION_FIELD_NUMBER: builtins.int - FILENAME_SUFFIX_FIELD_NUMBER: builtins.int - DISABLE_MANIFEST_FIELD_NUMBER: builtins.int - S3_FIELD_NUMBER: builtins.int - GCP_FIELD_NUMBER: builtins.int - AZURE_FIELD_NUMBER: builtins.int - ALIOSS_FIELD_NUMBER: builtins.int - protocol: global___SegmentedFileProtocol.ValueType - """(optional)""" - filename_prefix: builtins.str - """(optional)""" - playlist_name: builtins.str - """(optional)""" - live_playlist_name: builtins.str - """(optional, disabled if not provided). Path of a live playlist""" - segment_duration: builtins.int - """in seconds (optional)""" - filename_suffix: global___SegmentedFileSuffix.ValueType - """(optional, default INDEX)""" - disable_manifest: builtins.bool - """disable upload of manifest file (default false)""" - @property - def s3(self) -> global___S3Upload: ... - @property - def gcp(self) -> global___GCPUpload: ... - @property - def azure(self) -> global___AzureBlobUpload: ... - @property - def aliOSS(self) -> global___AliOSSUpload: ... - def __init__( - self, - *, - protocol: global___SegmentedFileProtocol.ValueType = ..., - filename_prefix: builtins.str = ..., - playlist_name: builtins.str = ..., - live_playlist_name: builtins.str = ..., - segment_duration: builtins.int = ..., - filename_suffix: global___SegmentedFileSuffix.ValueType = ..., - disable_manifest: builtins.bool = ..., - s3: global___S3Upload | None = ..., - gcp: global___GCPUpload | None = ..., - azure: global___AzureBlobUpload | None = ..., - aliOSS: global___AliOSSUpload | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["aliOSS", b"aliOSS", "azure", b"azure", "gcp", b"gcp", "output", b"output", "s3", b"s3"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["aliOSS", b"aliOSS", "azure", b"azure", "disable_manifest", b"disable_manifest", "filename_prefix", b"filename_prefix", "filename_suffix", b"filename_suffix", "gcp", b"gcp", "live_playlist_name", b"live_playlist_name", "output", b"output", "playlist_name", b"playlist_name", "protocol", b"protocol", "s3", b"s3", "segment_duration", b"segment_duration"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["output", b"output"]) -> typing_extensions.Literal["s3", "gcp", "azure", "aliOSS"] | None: ... - -global___SegmentedFileOutput = SegmentedFileOutput - -@typing_extensions.final -class DirectFileOutput(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - FILEPATH_FIELD_NUMBER: builtins.int - DISABLE_MANIFEST_FIELD_NUMBER: builtins.int - S3_FIELD_NUMBER: builtins.int - GCP_FIELD_NUMBER: builtins.int - AZURE_FIELD_NUMBER: builtins.int - ALIOSS_FIELD_NUMBER: builtins.int - filepath: builtins.str - """see egress docs for templating (default {track_id}-{time})""" - disable_manifest: builtins.bool - """disable upload of manifest file (default false)""" - @property - def s3(self) -> global___S3Upload: ... - @property - def gcp(self) -> global___GCPUpload: ... - @property - def azure(self) -> global___AzureBlobUpload: ... - @property - def aliOSS(self) -> global___AliOSSUpload: ... - def __init__( - self, - *, - filepath: builtins.str = ..., - disable_manifest: builtins.bool = ..., - s3: global___S3Upload | None = ..., - gcp: global___GCPUpload | None = ..., - azure: global___AzureBlobUpload | None = ..., - aliOSS: global___AliOSSUpload | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["aliOSS", b"aliOSS", "azure", b"azure", "gcp", b"gcp", "output", b"output", "s3", b"s3"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["aliOSS", b"aliOSS", "azure", b"azure", "disable_manifest", b"disable_manifest", "filepath", b"filepath", "gcp", b"gcp", "output", b"output", "s3", b"s3"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["output", b"output"]) -> typing_extensions.Literal["s3", "gcp", "azure", "aliOSS"] | None: ... - -global___DirectFileOutput = DirectFileOutput - -@typing_extensions.final -class ImageOutput(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - CAPTURE_INTERVAL_FIELD_NUMBER: builtins.int - WIDTH_FIELD_NUMBER: builtins.int - HEIGHT_FIELD_NUMBER: builtins.int - FILENAME_PREFIX_FIELD_NUMBER: builtins.int - FILENAME_SUFFIX_FIELD_NUMBER: builtins.int - IMAGE_CODEC_FIELD_NUMBER: builtins.int - DISABLE_MANIFEST_FIELD_NUMBER: builtins.int - S3_FIELD_NUMBER: builtins.int - GCP_FIELD_NUMBER: builtins.int - AZURE_FIELD_NUMBER: builtins.int - ALIOSS_FIELD_NUMBER: builtins.int - capture_interval: builtins.int - """in seconds (required)""" - width: builtins.int - """(optional, defaults to track width)""" - height: builtins.int - """(optional, defaults to track height)""" - filename_prefix: builtins.str - """(optional)""" - filename_suffix: global___ImageFileSuffix.ValueType - """(optional, default INDEX)""" - image_codec: livekit_models_pb2.ImageCodec.ValueType - """(optional)""" - disable_manifest: builtins.bool - """disable upload of manifest file (default false)""" - @property - def s3(self) -> global___S3Upload: ... - @property - def gcp(self) -> global___GCPUpload: ... - @property - def azure(self) -> global___AzureBlobUpload: ... - @property - def aliOSS(self) -> global___AliOSSUpload: ... - def __init__( - self, - *, - capture_interval: builtins.int = ..., - width: builtins.int = ..., - height: builtins.int = ..., - filename_prefix: builtins.str = ..., - filename_suffix: global___ImageFileSuffix.ValueType = ..., - image_codec: livekit_models_pb2.ImageCodec.ValueType = ..., - disable_manifest: builtins.bool = ..., - s3: global___S3Upload | None = ..., - gcp: global___GCPUpload | None = ..., - azure: global___AzureBlobUpload | None = ..., - aliOSS: global___AliOSSUpload | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["aliOSS", b"aliOSS", "azure", b"azure", "gcp", b"gcp", "output", b"output", "s3", b"s3"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["aliOSS", b"aliOSS", "azure", b"azure", "capture_interval", b"capture_interval", "disable_manifest", b"disable_manifest", "filename_prefix", b"filename_prefix", "filename_suffix", b"filename_suffix", "gcp", b"gcp", "height", b"height", "image_codec", b"image_codec", "output", b"output", "s3", b"s3", "width", b"width"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["output", b"output"]) -> typing_extensions.Literal["s3", "gcp", "azure", "aliOSS"] | None: ... - -global___ImageOutput = ImageOutput - -@typing_extensions.final -class S3Upload(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - @typing_extensions.final - class MetadataEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.str - value: builtins.str - def __init__( - self, - *, - key: builtins.str = ..., - value: builtins.str = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... - - ACCESS_KEY_FIELD_NUMBER: builtins.int - SECRET_FIELD_NUMBER: builtins.int - REGION_FIELD_NUMBER: builtins.int - ENDPOINT_FIELD_NUMBER: builtins.int - BUCKET_FIELD_NUMBER: builtins.int - FORCE_PATH_STYLE_FIELD_NUMBER: builtins.int - METADATA_FIELD_NUMBER: builtins.int - TAGGING_FIELD_NUMBER: builtins.int - access_key: builtins.str - secret: builtins.str - region: builtins.str - endpoint: builtins.str - bucket: builtins.str - force_path_style: builtins.bool - @property - def metadata(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ... - tagging: builtins.str - def __init__( - self, - *, - access_key: builtins.str = ..., - secret: builtins.str = ..., - region: builtins.str = ..., - endpoint: builtins.str = ..., - bucket: builtins.str = ..., - force_path_style: builtins.bool = ..., - metadata: collections.abc.Mapping[builtins.str, builtins.str] | None = ..., - tagging: builtins.str = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["access_key", b"access_key", "bucket", b"bucket", "endpoint", b"endpoint", "force_path_style", b"force_path_style", "metadata", b"metadata", "region", b"region", "secret", b"secret", "tagging", b"tagging"]) -> None: ... - -global___S3Upload = S3Upload - -@typing_extensions.final -class GCPUpload(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - CREDENTIALS_FIELD_NUMBER: builtins.int - BUCKET_FIELD_NUMBER: builtins.int - credentials: builtins.str - bucket: builtins.str - def __init__( - self, - *, - credentials: builtins.str = ..., - bucket: builtins.str = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["bucket", b"bucket", "credentials", b"credentials"]) -> None: ... - -global___GCPUpload = GCPUpload - -@typing_extensions.final -class AzureBlobUpload(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ACCOUNT_NAME_FIELD_NUMBER: builtins.int - ACCOUNT_KEY_FIELD_NUMBER: builtins.int - CONTAINER_NAME_FIELD_NUMBER: builtins.int - account_name: builtins.str - account_key: builtins.str - container_name: builtins.str - def __init__( - self, - *, - account_name: builtins.str = ..., - account_key: builtins.str = ..., - container_name: builtins.str = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["account_key", b"account_key", "account_name", b"account_name", "container_name", b"container_name"]) -> None: ... - -global___AzureBlobUpload = AzureBlobUpload - -@typing_extensions.final -class AliOSSUpload(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ACCESS_KEY_FIELD_NUMBER: builtins.int - SECRET_FIELD_NUMBER: builtins.int - REGION_FIELD_NUMBER: builtins.int - ENDPOINT_FIELD_NUMBER: builtins.int - BUCKET_FIELD_NUMBER: builtins.int - access_key: builtins.str - secret: builtins.str - region: builtins.str - endpoint: builtins.str - bucket: builtins.str - def __init__( - self, - *, - access_key: builtins.str = ..., - secret: builtins.str = ..., - region: builtins.str = ..., - endpoint: builtins.str = ..., - bucket: builtins.str = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["access_key", b"access_key", "bucket", b"bucket", "endpoint", b"endpoint", "region", b"region", "secret", b"secret"]) -> None: ... - -global___AliOSSUpload = AliOSSUpload - -@typing_extensions.final -class StreamOutput(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PROTOCOL_FIELD_NUMBER: builtins.int - URLS_FIELD_NUMBER: builtins.int - protocol: global___StreamProtocol.ValueType - """required""" - @property - def urls(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: - """required""" - def __init__( - self, - *, - protocol: global___StreamProtocol.ValueType = ..., - urls: collections.abc.Iterable[builtins.str] | None = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["protocol", b"protocol", "urls", b"urls"]) -> None: ... - -global___StreamOutput = StreamOutput - -@typing_extensions.final -class EncodingOptions(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - WIDTH_FIELD_NUMBER: builtins.int - HEIGHT_FIELD_NUMBER: builtins.int - DEPTH_FIELD_NUMBER: builtins.int - FRAMERATE_FIELD_NUMBER: builtins.int - AUDIO_CODEC_FIELD_NUMBER: builtins.int - AUDIO_BITRATE_FIELD_NUMBER: builtins.int - AUDIO_FREQUENCY_FIELD_NUMBER: builtins.int - VIDEO_CODEC_FIELD_NUMBER: builtins.int - VIDEO_BITRATE_FIELD_NUMBER: builtins.int - KEY_FRAME_INTERVAL_FIELD_NUMBER: builtins.int - width: builtins.int - """(default 1920)""" - height: builtins.int - """(default 1080)""" - depth: builtins.int - """(default 24)""" - framerate: builtins.int - """(default 30)""" - audio_codec: livekit_models_pb2.AudioCodec.ValueType - """(default OPUS)""" - audio_bitrate: builtins.int - """(default 128)""" - audio_frequency: builtins.int - """(default 44100)""" - video_codec: livekit_models_pb2.VideoCodec.ValueType - """(default H264_MAIN)""" - video_bitrate: builtins.int - """(default 4500)""" - key_frame_interval: builtins.float - """in seconds (default 4s for streaming, segment duration for segmented output, encoder default for files)""" - def __init__( - self, - *, - width: builtins.int = ..., - height: builtins.int = ..., - depth: builtins.int = ..., - framerate: builtins.int = ..., - audio_codec: livekit_models_pb2.AudioCodec.ValueType = ..., - audio_bitrate: builtins.int = ..., - audio_frequency: builtins.int = ..., - video_codec: livekit_models_pb2.VideoCodec.ValueType = ..., - video_bitrate: builtins.int = ..., - key_frame_interval: builtins.float = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["audio_bitrate", b"audio_bitrate", "audio_codec", b"audio_codec", "audio_frequency", b"audio_frequency", "depth", b"depth", "framerate", b"framerate", "height", b"height", "key_frame_interval", b"key_frame_interval", "video_bitrate", b"video_bitrate", "video_codec", b"video_codec", "width", b"width"]) -> None: ... - -global___EncodingOptions = EncodingOptions - -@typing_extensions.final -class UpdateLayoutRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - EGRESS_ID_FIELD_NUMBER: builtins.int - LAYOUT_FIELD_NUMBER: builtins.int - egress_id: builtins.str - layout: builtins.str - def __init__( - self, - *, - egress_id: builtins.str = ..., - layout: builtins.str = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["egress_id", b"egress_id", "layout", b"layout"]) -> None: ... - -global___UpdateLayoutRequest = UpdateLayoutRequest - -@typing_extensions.final -class UpdateStreamRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - EGRESS_ID_FIELD_NUMBER: builtins.int - ADD_OUTPUT_URLS_FIELD_NUMBER: builtins.int - REMOVE_OUTPUT_URLS_FIELD_NUMBER: builtins.int - egress_id: builtins.str - @property - def add_output_urls(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... - @property - def remove_output_urls(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... - def __init__( - self, - *, - egress_id: builtins.str = ..., - add_output_urls: collections.abc.Iterable[builtins.str] | None = ..., - remove_output_urls: collections.abc.Iterable[builtins.str] | None = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["add_output_urls", b"add_output_urls", "egress_id", b"egress_id", "remove_output_urls", b"remove_output_urls"]) -> None: ... - -global___UpdateStreamRequest = UpdateStreamRequest - -@typing_extensions.final -class UpdateOutputsRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - EGRESS_ID_FIELD_NUMBER: builtins.int - ADD_IMAGE_OUTPUTS_FIELD_NUMBER: builtins.int - REMOVE_IMAGE_OUTPUTS_FIELD_NUMBER: builtins.int - egress_id: builtins.str - @property - def add_image_outputs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ImageOutput]: ... - @property - def remove_image_outputs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ImageOutput]: ... - def __init__( - self, - *, - egress_id: builtins.str = ..., - add_image_outputs: collections.abc.Iterable[global___ImageOutput] | None = ..., - remove_image_outputs: collections.abc.Iterable[global___ImageOutput] | None = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["add_image_outputs", b"add_image_outputs", "egress_id", b"egress_id", "remove_image_outputs", b"remove_image_outputs"]) -> None: ... - -global___UpdateOutputsRequest = UpdateOutputsRequest - -@typing_extensions.final -class ListEgressRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ROOM_NAME_FIELD_NUMBER: builtins.int - EGRESS_ID_FIELD_NUMBER: builtins.int - ACTIVE_FIELD_NUMBER: builtins.int - room_name: builtins.str - """(optional, filter by room name)""" - egress_id: builtins.str - """(optional, filter by egress ID)""" - active: builtins.bool - """(optional, list active egress only)""" - def __init__( - self, - *, - room_name: builtins.str = ..., - egress_id: builtins.str = ..., - active: builtins.bool = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["active", b"active", "egress_id", b"egress_id", "room_name", b"room_name"]) -> None: ... - -global___ListEgressRequest = ListEgressRequest - -@typing_extensions.final -class ListEgressResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ITEMS_FIELD_NUMBER: builtins.int - @property - def items(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___EgressInfo]: ... - def __init__( - self, - *, - items: collections.abc.Iterable[global___EgressInfo] | None = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["items", b"items"]) -> None: ... - -global___ListEgressResponse = ListEgressResponse - -@typing_extensions.final -class StopEgressRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - EGRESS_ID_FIELD_NUMBER: builtins.int - egress_id: builtins.str - def __init__( - self, - *, - egress_id: builtins.str = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["egress_id", b"egress_id"]) -> None: ... - -global___StopEgressRequest = StopEgressRequest - -@typing_extensions.final -class EgressInfo(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - EGRESS_ID_FIELD_NUMBER: builtins.int - ROOM_ID_FIELD_NUMBER: builtins.int - ROOM_NAME_FIELD_NUMBER: builtins.int - STATUS_FIELD_NUMBER: builtins.int - STARTED_AT_FIELD_NUMBER: builtins.int - ENDED_AT_FIELD_NUMBER: builtins.int - UPDATED_AT_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - ROOM_COMPOSITE_FIELD_NUMBER: builtins.int - WEB_FIELD_NUMBER: builtins.int - PARTICIPANT_FIELD_NUMBER: builtins.int - TRACK_COMPOSITE_FIELD_NUMBER: builtins.int - TRACK_FIELD_NUMBER: builtins.int - STREAM_FIELD_NUMBER: builtins.int - FILE_FIELD_NUMBER: builtins.int - SEGMENTS_FIELD_NUMBER: builtins.int - STREAM_RESULTS_FIELD_NUMBER: builtins.int - FILE_RESULTS_FIELD_NUMBER: builtins.int - SEGMENT_RESULTS_FIELD_NUMBER: builtins.int - IMAGE_RESULTS_FIELD_NUMBER: builtins.int - egress_id: builtins.str - room_id: builtins.str - room_name: builtins.str - status: global___EgressStatus.ValueType - started_at: builtins.int - ended_at: builtins.int - updated_at: builtins.int - error: builtins.str - @property - def room_composite(self) -> global___RoomCompositeEgressRequest: ... - @property - def web(self) -> global___WebEgressRequest: ... - @property - def participant(self) -> global___ParticipantEgressRequest: ... - @property - def track_composite(self) -> global___TrackCompositeEgressRequest: ... - @property - def track(self) -> global___TrackEgressRequest: ... - @property - def stream(self) -> global___StreamInfoList: ... - @property - def file(self) -> global___FileInfo: ... - @property - def segments(self) -> global___SegmentsInfo: ... - @property - def stream_results(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___StreamInfo]: ... - @property - def file_results(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___FileInfo]: ... - @property - def segment_results(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SegmentsInfo]: ... - @property - def image_results(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ImagesInfo]: ... - def __init__( - self, - *, - egress_id: builtins.str = ..., - room_id: builtins.str = ..., - room_name: builtins.str = ..., - status: global___EgressStatus.ValueType = ..., - started_at: builtins.int = ..., - ended_at: builtins.int = ..., - updated_at: builtins.int = ..., - error: builtins.str = ..., - room_composite: global___RoomCompositeEgressRequest | None = ..., - web: global___WebEgressRequest | None = ..., - participant: global___ParticipantEgressRequest | None = ..., - track_composite: global___TrackCompositeEgressRequest | None = ..., - track: global___TrackEgressRequest | None = ..., - stream: global___StreamInfoList | None = ..., - file: global___FileInfo | None = ..., - segments: global___SegmentsInfo | None = ..., - stream_results: collections.abc.Iterable[global___StreamInfo] | None = ..., - file_results: collections.abc.Iterable[global___FileInfo] | None = ..., - segment_results: collections.abc.Iterable[global___SegmentsInfo] | None = ..., - image_results: collections.abc.Iterable[global___ImagesInfo] | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["file", b"file", "participant", b"participant", "request", b"request", "result", b"result", "room_composite", b"room_composite", "segments", b"segments", "stream", b"stream", "track", b"track", "track_composite", b"track_composite", "web", b"web"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["egress_id", b"egress_id", "ended_at", b"ended_at", "error", b"error", "file", b"file", "file_results", b"file_results", "image_results", b"image_results", "participant", b"participant", "request", b"request", "result", b"result", "room_composite", b"room_composite", "room_id", b"room_id", "room_name", b"room_name", "segment_results", b"segment_results", "segments", b"segments", "started_at", b"started_at", "status", b"status", "stream", b"stream", "stream_results", b"stream_results", "track", b"track", "track_composite", b"track_composite", "updated_at", b"updated_at", "web", b"web"]) -> None: ... - @typing.overload - def WhichOneof(self, oneof_group: typing_extensions.Literal["request", b"request"]) -> typing_extensions.Literal["room_composite", "web", "participant", "track_composite", "track"] | None: ... - @typing.overload - def WhichOneof(self, oneof_group: typing_extensions.Literal["result", b"result"]) -> typing_extensions.Literal["stream", "file", "segments"] | None: ... - -global___EgressInfo = EgressInfo - -@typing_extensions.final -class StreamInfoList(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - INFO_FIELD_NUMBER: builtins.int - @property - def info(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___StreamInfo]: ... - def __init__( - self, - *, - info: collections.abc.Iterable[global___StreamInfo] | None = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["info", b"info"]) -> None: ... - -global___StreamInfoList = StreamInfoList - -@typing_extensions.final -class StreamInfo(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - class _Status: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType - - class _StatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[StreamInfo._Status.ValueType], builtins.type): # noqa: F821 - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - ACTIVE: StreamInfo._Status.ValueType # 0 - FINISHED: StreamInfo._Status.ValueType # 1 - FAILED: StreamInfo._Status.ValueType # 2 - - class Status(_Status, metaclass=_StatusEnumTypeWrapper): ... - ACTIVE: StreamInfo.Status.ValueType # 0 - FINISHED: StreamInfo.Status.ValueType # 1 - FAILED: StreamInfo.Status.ValueType # 2 - - URL_FIELD_NUMBER: builtins.int - STARTED_AT_FIELD_NUMBER: builtins.int - ENDED_AT_FIELD_NUMBER: builtins.int - DURATION_FIELD_NUMBER: builtins.int - STATUS_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - url: builtins.str - started_at: builtins.int - ended_at: builtins.int - duration: builtins.int - status: global___StreamInfo.Status.ValueType - error: builtins.str - def __init__( - self, - *, - url: builtins.str = ..., - started_at: builtins.int = ..., - ended_at: builtins.int = ..., - duration: builtins.int = ..., - status: global___StreamInfo.Status.ValueType = ..., - error: builtins.str = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["duration", b"duration", "ended_at", b"ended_at", "error", b"error", "started_at", b"started_at", "status", b"status", "url", b"url"]) -> None: ... - -global___StreamInfo = StreamInfo - -@typing_extensions.final -class FileInfo(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - FILENAME_FIELD_NUMBER: builtins.int - STARTED_AT_FIELD_NUMBER: builtins.int - ENDED_AT_FIELD_NUMBER: builtins.int - DURATION_FIELD_NUMBER: builtins.int - SIZE_FIELD_NUMBER: builtins.int - LOCATION_FIELD_NUMBER: builtins.int - filename: builtins.str - started_at: builtins.int - ended_at: builtins.int - duration: builtins.int - size: builtins.int - location: builtins.str - def __init__( - self, - *, - filename: builtins.str = ..., - started_at: builtins.int = ..., - ended_at: builtins.int = ..., - duration: builtins.int = ..., - size: builtins.int = ..., - location: builtins.str = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["duration", b"duration", "ended_at", b"ended_at", "filename", b"filename", "location", b"location", "size", b"size", "started_at", b"started_at"]) -> None: ... - -global___FileInfo = FileInfo - -@typing_extensions.final -class SegmentsInfo(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PLAYLIST_NAME_FIELD_NUMBER: builtins.int - LIVE_PLAYLIST_NAME_FIELD_NUMBER: builtins.int - DURATION_FIELD_NUMBER: builtins.int - SIZE_FIELD_NUMBER: builtins.int - PLAYLIST_LOCATION_FIELD_NUMBER: builtins.int - LIVE_PLAYLIST_LOCATION_FIELD_NUMBER: builtins.int - SEGMENT_COUNT_FIELD_NUMBER: builtins.int - STARTED_AT_FIELD_NUMBER: builtins.int - ENDED_AT_FIELD_NUMBER: builtins.int - playlist_name: builtins.str - live_playlist_name: builtins.str - duration: builtins.int - size: builtins.int - playlist_location: builtins.str - live_playlist_location: builtins.str - segment_count: builtins.int - started_at: builtins.int - ended_at: builtins.int - def __init__( - self, - *, - playlist_name: builtins.str = ..., - live_playlist_name: builtins.str = ..., - duration: builtins.int = ..., - size: builtins.int = ..., - playlist_location: builtins.str = ..., - live_playlist_location: builtins.str = ..., - segment_count: builtins.int = ..., - started_at: builtins.int = ..., - ended_at: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["duration", b"duration", "ended_at", b"ended_at", "live_playlist_location", b"live_playlist_location", "live_playlist_name", b"live_playlist_name", "playlist_location", b"playlist_location", "playlist_name", b"playlist_name", "segment_count", b"segment_count", "size", b"size", "started_at", b"started_at"]) -> None: ... - -global___SegmentsInfo = SegmentsInfo - -@typing_extensions.final -class ImagesInfo(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - IMAGE_COUNT_FIELD_NUMBER: builtins.int - STARTED_AT_FIELD_NUMBER: builtins.int - ENDED_AT_FIELD_NUMBER: builtins.int - image_count: builtins.int - started_at: builtins.int - ended_at: builtins.int - def __init__( - self, - *, - image_count: builtins.int = ..., - started_at: builtins.int = ..., - ended_at: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["ended_at", b"ended_at", "image_count", b"image_count", "started_at", b"started_at"]) -> None: ... - -global___ImagesInfo = ImagesInfo - -@typing_extensions.final -class AutoParticipantEgress(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PRESET_FIELD_NUMBER: builtins.int - ADVANCED_FIELD_NUMBER: builtins.int - FILE_OUTPUTS_FIELD_NUMBER: builtins.int - SEGMENT_OUTPUTS_FIELD_NUMBER: builtins.int - preset: global___EncodingOptionsPreset.ValueType - """(default H264_720P_30)""" - @property - def advanced(self) -> global___EncodingOptions: - """(optional)""" - @property - def file_outputs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___EncodedFileOutput]: ... - @property - def segment_outputs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SegmentedFileOutput]: ... - def __init__( - self, - *, - preset: global___EncodingOptionsPreset.ValueType = ..., - advanced: global___EncodingOptions | None = ..., - file_outputs: collections.abc.Iterable[global___EncodedFileOutput] | None = ..., - segment_outputs: collections.abc.Iterable[global___SegmentedFileOutput] | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["advanced", b"advanced", "options", b"options", "preset", b"preset"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["advanced", b"advanced", "file_outputs", b"file_outputs", "options", b"options", "preset", b"preset", "segment_outputs", b"segment_outputs"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["options", b"options"]) -> typing_extensions.Literal["preset", "advanced"] | None: ... - -global___AutoParticipantEgress = AutoParticipantEgress - -@typing_extensions.final -class AutoTrackEgress(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - FILEPATH_FIELD_NUMBER: builtins.int - DISABLE_MANIFEST_FIELD_NUMBER: builtins.int - S3_FIELD_NUMBER: builtins.int - GCP_FIELD_NUMBER: builtins.int - AZURE_FIELD_NUMBER: builtins.int - filepath: builtins.str - """see docs for templating (default {track_id}-{time})""" - disable_manifest: builtins.bool - """disables upload of json manifest file (default false)""" - @property - def s3(self) -> global___S3Upload: ... - @property - def gcp(self) -> global___GCPUpload: ... - @property - def azure(self) -> global___AzureBlobUpload: ... - def __init__( - self, - *, - filepath: builtins.str = ..., - disable_manifest: builtins.bool = ..., - s3: global___S3Upload | None = ..., - gcp: global___GCPUpload | None = ..., - azure: global___AzureBlobUpload | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["azure", b"azure", "gcp", b"gcp", "output", b"output", "s3", b"s3"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["azure", b"azure", "disable_manifest", b"disable_manifest", "filepath", b"filepath", "gcp", b"gcp", "output", b"output", "s3", b"s3"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["output", b"output"]) -> typing_extensions.Literal["s3", "gcp", "azure"] | None: ... - -global___AutoTrackEgress = AutoTrackEgress diff --git a/livekit-api/livekit/api/_proto/livekit_ingress_pb2.py b/livekit-api/livekit/api/_proto/livekit_ingress_pb2.py deleted file mode 100644 index e44c6cfb..00000000 --- a/livekit-api/livekit/api/_proto/livekit_ingress_pb2.py +++ /dev/null @@ -1,62 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: livekit_ingress.proto -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import livekit_models_pb2 as livekit__models__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x15livekit_ingress.proto\x12\x07livekit\x1a\x14livekit_models.proto\"\x9d\x02\n\x14\x43reateIngressRequest\x12)\n\ninput_type\x18\x01 \x01(\x0e\x32\x15.livekit.IngressInput\x12\x0b\n\x03url\x18\t \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x11\n\troom_name\x18\x03 \x01(\t\x12\x1c\n\x14participant_identity\x18\x04 \x01(\t\x12\x18\n\x10participant_name\x18\x05 \x01(\t\x12\x1a\n\x12\x62ypass_transcoding\x18\x08 \x01(\x08\x12+\n\x05\x61udio\x18\x06 \x01(\x0b\x32\x1c.livekit.IngressAudioOptions\x12+\n\x05video\x18\x07 \x01(\x0b\x32\x1c.livekit.IngressVideoOptions\"\xcd\x01\n\x13IngressAudioOptions\x12\x0c\n\x04name\x18\x01 \x01(\t\x12$\n\x06source\x18\x02 \x01(\x0e\x32\x14.livekit.TrackSource\x12\x35\n\x06preset\x18\x03 \x01(\x0e\x32#.livekit.IngressAudioEncodingPresetH\x00\x12\x37\n\x07options\x18\x04 \x01(\x0b\x32$.livekit.IngressAudioEncodingOptionsH\x00\x42\x12\n\x10\x65ncoding_options\"\xcd\x01\n\x13IngressVideoOptions\x12\x0c\n\x04name\x18\x01 \x01(\t\x12$\n\x06source\x18\x02 \x01(\x0e\x32\x14.livekit.TrackSource\x12\x35\n\x06preset\x18\x03 \x01(\x0e\x32#.livekit.IngressVideoEncodingPresetH\x00\x12\x37\n\x07options\x18\x04 \x01(\x0b\x32$.livekit.IngressVideoEncodingOptionsH\x00\x42\x12\n\x10\x65ncoding_options\"\x7f\n\x1bIngressAudioEncodingOptions\x12(\n\x0b\x61udio_codec\x18\x01 \x01(\x0e\x32\x13.livekit.AudioCodec\x12\x0f\n\x07\x62itrate\x18\x02 \x01(\r\x12\x13\n\x0b\x64isable_dtx\x18\x03 \x01(\x08\x12\x10\n\x08\x63hannels\x18\x04 \x01(\r\"\x80\x01\n\x1bIngressVideoEncodingOptions\x12(\n\x0bvideo_codec\x18\x01 \x01(\x0e\x32\x13.livekit.VideoCodec\x12\x12\n\nframe_rate\x18\x02 \x01(\x01\x12#\n\x06layers\x18\x03 \x03(\x0b\x32\x13.livekit.VideoLayer\"\xf4\x02\n\x0bIngressInfo\x12\x12\n\ningress_id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x12\n\nstream_key\x18\x03 \x01(\t\x12\x0b\n\x03url\x18\x04 \x01(\t\x12)\n\ninput_type\x18\x05 \x01(\x0e\x32\x15.livekit.IngressInput\x12\x1a\n\x12\x62ypass_transcoding\x18\r \x01(\x08\x12+\n\x05\x61udio\x18\x06 \x01(\x0b\x32\x1c.livekit.IngressAudioOptions\x12+\n\x05video\x18\x07 \x01(\x0b\x32\x1c.livekit.IngressVideoOptions\x12\x11\n\troom_name\x18\x08 \x01(\t\x12\x1c\n\x14participant_identity\x18\t \x01(\t\x12\x18\n\x10participant_name\x18\n \x01(\t\x12\x10\n\x08reusable\x18\x0b \x01(\x08\x12$\n\x05state\x18\x0c \x01(\x0b\x32\x15.livekit.IngressState\"\x8a\x03\n\x0cIngressState\x12,\n\x06status\x18\x01 \x01(\x0e\x32\x1c.livekit.IngressState.Status\x12\r\n\x05\x65rror\x18\x02 \x01(\t\x12\'\n\x05video\x18\x03 \x01(\x0b\x32\x18.livekit.InputVideoState\x12\'\n\x05\x61udio\x18\x04 \x01(\x0b\x32\x18.livekit.InputAudioState\x12\x0f\n\x07room_id\x18\x05 \x01(\t\x12\x12\n\nstarted_at\x18\x07 \x01(\x03\x12\x10\n\x08\x65nded_at\x18\x08 \x01(\x03\x12\x13\n\x0bresource_id\x18\t \x01(\t\x12\"\n\x06tracks\x18\x06 \x03(\x0b\x32\x12.livekit.TrackInfo\"{\n\x06Status\x12\x15\n\x11\x45NDPOINT_INACTIVE\x10\x00\x12\x16\n\x12\x45NDPOINT_BUFFERING\x10\x01\x12\x17\n\x13\x45NDPOINT_PUBLISHING\x10\x02\x12\x12\n\x0e\x45NDPOINT_ERROR\x10\x03\x12\x15\n\x11\x45NDPOINT_COMPLETE\x10\x04\"o\n\x0fInputVideoState\x12\x11\n\tmime_type\x18\x01 \x01(\t\x12\x17\n\x0f\x61verage_bitrate\x18\x02 \x01(\r\x12\r\n\x05width\x18\x03 \x01(\r\x12\x0e\n\x06height\x18\x04 \x01(\r\x12\x11\n\tframerate\x18\x05 \x01(\x01\"d\n\x0fInputAudioState\x12\x11\n\tmime_type\x18\x01 \x01(\t\x12\x17\n\x0f\x61verage_bitrate\x18\x02 \x01(\r\x12\x10\n\x08\x63hannels\x18\x03 \x01(\r\x12\x13\n\x0bsample_rate\x18\x04 \x01(\r\"\x95\x02\n\x14UpdateIngressRequest\x12\x12\n\ningress_id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x11\n\troom_name\x18\x03 \x01(\t\x12\x1c\n\x14participant_identity\x18\x04 \x01(\t\x12\x18\n\x10participant_name\x18\x05 \x01(\t\x12\x1f\n\x12\x62ypass_transcoding\x18\x08 \x01(\x08H\x00\x88\x01\x01\x12+\n\x05\x61udio\x18\x06 \x01(\x0b\x32\x1c.livekit.IngressAudioOptions\x12+\n\x05video\x18\x07 \x01(\x0b\x32\x1c.livekit.IngressVideoOptionsB\x15\n\x13_bypass_transcoding\";\n\x12ListIngressRequest\x12\x11\n\troom_name\x18\x01 \x01(\t\x12\x12\n\ningress_id\x18\x02 \x01(\t\":\n\x13ListIngressResponse\x12#\n\x05items\x18\x01 \x03(\x0b\x32\x14.livekit.IngressInfo\"*\n\x14\x44\x65leteIngressRequest\x12\x12\n\ningress_id\x18\x01 \x01(\t*=\n\x0cIngressInput\x12\x0e\n\nRTMP_INPUT\x10\x00\x12\x0e\n\nWHIP_INPUT\x10\x01\x12\r\n\tURL_INPUT\x10\x02*I\n\x1aIngressAudioEncodingPreset\x12\x16\n\x12OPUS_STEREO_96KBPS\x10\x00\x12\x13\n\x0fOPUS_MONO_64KBS\x10\x01*\x84\x03\n\x1aIngressVideoEncodingPreset\x12\x1c\n\x18H264_720P_30FPS_3_LAYERS\x10\x00\x12\x1d\n\x19H264_1080P_30FPS_3_LAYERS\x10\x01\x12\x1c\n\x18H264_540P_25FPS_2_LAYERS\x10\x02\x12\x1b\n\x17H264_720P_30FPS_1_LAYER\x10\x03\x12\x1c\n\x18H264_1080P_30FPS_1_LAYER\x10\x04\x12(\n$H264_720P_30FPS_3_LAYERS_HIGH_MOTION\x10\x05\x12)\n%H264_1080P_30FPS_3_LAYERS_HIGH_MOTION\x10\x06\x12(\n$H264_540P_25FPS_2_LAYERS_HIGH_MOTION\x10\x07\x12\'\n#H264_720P_30FPS_1_LAYER_HIGH_MOTION\x10\x08\x12(\n$H264_1080P_30FPS_1_LAYER_HIGH_MOTION\x10\t2\xa5\x02\n\x07Ingress\x12\x44\n\rCreateIngress\x12\x1d.livekit.CreateIngressRequest\x1a\x14.livekit.IngressInfo\x12\x44\n\rUpdateIngress\x12\x1d.livekit.UpdateIngressRequest\x1a\x14.livekit.IngressInfo\x12H\n\x0bListIngress\x12\x1b.livekit.ListIngressRequest\x1a\x1c.livekit.ListIngressResponse\x12\x44\n\rDeleteIngress\x12\x1d.livekit.DeleteIngressRequest\x1a\x14.livekit.IngressInfoBFZ#github.com/livekit/protocol/livekit\xaa\x02\rLiveKit.Proto\xea\x02\x0eLiveKit::Protob\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'livekit_ingress_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'Z#github.com/livekit/protocol/livekit\252\002\rLiveKit.Proto\352\002\016LiveKit::Proto' - _globals['_INGRESSINPUT']._serialized_start=2452 - _globals['_INGRESSINPUT']._serialized_end=2513 - _globals['_INGRESSAUDIOENCODINGPRESET']._serialized_start=2515 - _globals['_INGRESSAUDIOENCODINGPRESET']._serialized_end=2588 - _globals['_INGRESSVIDEOENCODINGPRESET']._serialized_start=2591 - _globals['_INGRESSVIDEOENCODINGPRESET']._serialized_end=2979 - _globals['_CREATEINGRESSREQUEST']._serialized_start=57 - _globals['_CREATEINGRESSREQUEST']._serialized_end=342 - _globals['_INGRESSAUDIOOPTIONS']._serialized_start=345 - _globals['_INGRESSAUDIOOPTIONS']._serialized_end=550 - _globals['_INGRESSVIDEOOPTIONS']._serialized_start=553 - _globals['_INGRESSVIDEOOPTIONS']._serialized_end=758 - _globals['_INGRESSAUDIOENCODINGOPTIONS']._serialized_start=760 - _globals['_INGRESSAUDIOENCODINGOPTIONS']._serialized_end=887 - _globals['_INGRESSVIDEOENCODINGOPTIONS']._serialized_start=890 - _globals['_INGRESSVIDEOENCODINGOPTIONS']._serialized_end=1018 - _globals['_INGRESSINFO']._serialized_start=1021 - _globals['_INGRESSINFO']._serialized_end=1393 - _globals['_INGRESSSTATE']._serialized_start=1396 - _globals['_INGRESSSTATE']._serialized_end=1790 - _globals['_INGRESSSTATE_STATUS']._serialized_start=1667 - _globals['_INGRESSSTATE_STATUS']._serialized_end=1790 - _globals['_INPUTVIDEOSTATE']._serialized_start=1792 - _globals['_INPUTVIDEOSTATE']._serialized_end=1903 - _globals['_INPUTAUDIOSTATE']._serialized_start=1905 - _globals['_INPUTAUDIOSTATE']._serialized_end=2005 - _globals['_UPDATEINGRESSREQUEST']._serialized_start=2008 - _globals['_UPDATEINGRESSREQUEST']._serialized_end=2285 - _globals['_LISTINGRESSREQUEST']._serialized_start=2287 - _globals['_LISTINGRESSREQUEST']._serialized_end=2346 - _globals['_LISTINGRESSRESPONSE']._serialized_start=2348 - _globals['_LISTINGRESSRESPONSE']._serialized_end=2406 - _globals['_DELETEINGRESSREQUEST']._serialized_start=2408 - _globals['_DELETEINGRESSREQUEST']._serialized_end=2450 - _globals['_INGRESS']._serialized_start=2982 - _globals['_INGRESS']._serialized_end=3275 -# @@protoc_insertion_point(module_scope) diff --git a/livekit-api/livekit/api/_proto/livekit_ingress_pb2.pyi b/livekit-api/livekit/api/_proto/livekit_ingress_pb2.pyi deleted file mode 100644 index 4867b22f..00000000 --- a/livekit-api/livekit/api/_proto/livekit_ingress_pb2.pyi +++ /dev/null @@ -1,542 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -Copyright 2023 LiveKit, Inc. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -""" -import builtins -import collections.abc -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.internal.enum_type_wrapper -import google.protobuf.message -from . import livekit_models_pb2 -import sys -import typing - -if sys.version_info >= (3, 10): - import typing as typing_extensions -else: - import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor - -class _IngressInput: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType - -class _IngressInputEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_IngressInput.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - RTMP_INPUT: _IngressInput.ValueType # 0 - WHIP_INPUT: _IngressInput.ValueType # 1 - URL_INPUT: _IngressInput.ValueType # 2 - """Pull from the provided URL. Only HTTP url are supported, serving either a single media file or a HLS stream""" - -class IngressInput(_IngressInput, metaclass=_IngressInputEnumTypeWrapper): ... - -RTMP_INPUT: IngressInput.ValueType # 0 -WHIP_INPUT: IngressInput.ValueType # 1 -URL_INPUT: IngressInput.ValueType # 2 -"""Pull from the provided URL. Only HTTP url are supported, serving either a single media file or a HLS stream""" -global___IngressInput = IngressInput - -class _IngressAudioEncodingPreset: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType - -class _IngressAudioEncodingPresetEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_IngressAudioEncodingPreset.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - OPUS_STEREO_96KBPS: _IngressAudioEncodingPreset.ValueType # 0 - """OPUS, 2 channels, 96kbps""" - OPUS_MONO_64KBS: _IngressAudioEncodingPreset.ValueType # 1 - """OPUS, 1 channel, 64kbps""" - -class IngressAudioEncodingPreset(_IngressAudioEncodingPreset, metaclass=_IngressAudioEncodingPresetEnumTypeWrapper): ... - -OPUS_STEREO_96KBPS: IngressAudioEncodingPreset.ValueType # 0 -"""OPUS, 2 channels, 96kbps""" -OPUS_MONO_64KBS: IngressAudioEncodingPreset.ValueType # 1 -"""OPUS, 1 channel, 64kbps""" -global___IngressAudioEncodingPreset = IngressAudioEncodingPreset - -class _IngressVideoEncodingPreset: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType - -class _IngressVideoEncodingPresetEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_IngressVideoEncodingPreset.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - H264_720P_30FPS_3_LAYERS: _IngressVideoEncodingPreset.ValueType # 0 - """1280x720, 30fps, 1900kbps main layer, 3 layers total""" - H264_1080P_30FPS_3_LAYERS: _IngressVideoEncodingPreset.ValueType # 1 - """1980x1080, 30fps, 3500kbps main layer, 3 layers total""" - H264_540P_25FPS_2_LAYERS: _IngressVideoEncodingPreset.ValueType # 2 - """ 960x540, 25fps, 1000kbps main layer, 2 layers total""" - H264_720P_30FPS_1_LAYER: _IngressVideoEncodingPreset.ValueType # 3 - """1280x720, 30fps, 1900kbps, no simulcast""" - H264_1080P_30FPS_1_LAYER: _IngressVideoEncodingPreset.ValueType # 4 - """1980x1080, 30fps, 3500kbps, no simulcast""" - H264_720P_30FPS_3_LAYERS_HIGH_MOTION: _IngressVideoEncodingPreset.ValueType # 5 - """1280x720, 30fps, 2500kbps main layer, 3 layers total, higher bitrate for high motion, harder to encode content""" - H264_1080P_30FPS_3_LAYERS_HIGH_MOTION: _IngressVideoEncodingPreset.ValueType # 6 - """1980x1080, 30fps, 4500kbps main layer, 3 layers total, higher bitrate for high motion, harder to encode content""" - H264_540P_25FPS_2_LAYERS_HIGH_MOTION: _IngressVideoEncodingPreset.ValueType # 7 - """ 960x540, 25fps, 1300kbps main layer, 2 layers total, higher bitrate for high motion, harder to encode content""" - H264_720P_30FPS_1_LAYER_HIGH_MOTION: _IngressVideoEncodingPreset.ValueType # 8 - """1280x720, 30fps, 2500kbps, no simulcast, higher bitrate for high motion, harder to encode content""" - H264_1080P_30FPS_1_LAYER_HIGH_MOTION: _IngressVideoEncodingPreset.ValueType # 9 - """1980x1080, 30fps, 4500kbps, no simulcast, higher bitrate for high motion, harder to encode content""" - -class IngressVideoEncodingPreset(_IngressVideoEncodingPreset, metaclass=_IngressVideoEncodingPresetEnumTypeWrapper): ... - -H264_720P_30FPS_3_LAYERS: IngressVideoEncodingPreset.ValueType # 0 -"""1280x720, 30fps, 1900kbps main layer, 3 layers total""" -H264_1080P_30FPS_3_LAYERS: IngressVideoEncodingPreset.ValueType # 1 -"""1980x1080, 30fps, 3500kbps main layer, 3 layers total""" -H264_540P_25FPS_2_LAYERS: IngressVideoEncodingPreset.ValueType # 2 -""" 960x540, 25fps, 1000kbps main layer, 2 layers total""" -H264_720P_30FPS_1_LAYER: IngressVideoEncodingPreset.ValueType # 3 -"""1280x720, 30fps, 1900kbps, no simulcast""" -H264_1080P_30FPS_1_LAYER: IngressVideoEncodingPreset.ValueType # 4 -"""1980x1080, 30fps, 3500kbps, no simulcast""" -H264_720P_30FPS_3_LAYERS_HIGH_MOTION: IngressVideoEncodingPreset.ValueType # 5 -"""1280x720, 30fps, 2500kbps main layer, 3 layers total, higher bitrate for high motion, harder to encode content""" -H264_1080P_30FPS_3_LAYERS_HIGH_MOTION: IngressVideoEncodingPreset.ValueType # 6 -"""1980x1080, 30fps, 4500kbps main layer, 3 layers total, higher bitrate for high motion, harder to encode content""" -H264_540P_25FPS_2_LAYERS_HIGH_MOTION: IngressVideoEncodingPreset.ValueType # 7 -""" 960x540, 25fps, 1300kbps main layer, 2 layers total, higher bitrate for high motion, harder to encode content""" -H264_720P_30FPS_1_LAYER_HIGH_MOTION: IngressVideoEncodingPreset.ValueType # 8 -"""1280x720, 30fps, 2500kbps, no simulcast, higher bitrate for high motion, harder to encode content""" -H264_1080P_30FPS_1_LAYER_HIGH_MOTION: IngressVideoEncodingPreset.ValueType # 9 -"""1980x1080, 30fps, 4500kbps, no simulcast, higher bitrate for high motion, harder to encode content""" -global___IngressVideoEncodingPreset = IngressVideoEncodingPreset - -@typing_extensions.final -class CreateIngressRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - INPUT_TYPE_FIELD_NUMBER: builtins.int - URL_FIELD_NUMBER: builtins.int - NAME_FIELD_NUMBER: builtins.int - ROOM_NAME_FIELD_NUMBER: builtins.int - PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int - PARTICIPANT_NAME_FIELD_NUMBER: builtins.int - BYPASS_TRANSCODING_FIELD_NUMBER: builtins.int - AUDIO_FIELD_NUMBER: builtins.int - VIDEO_FIELD_NUMBER: builtins.int - input_type: global___IngressInput.ValueType - url: builtins.str - """Where to pull media from, only for URL input type""" - name: builtins.str - """User provided identifier for the ingress""" - room_name: builtins.str - """room to publish to""" - participant_identity: builtins.str - """publish as participant""" - participant_name: builtins.str - """name of publishing participant (used for display only)""" - bypass_transcoding: builtins.bool - """whether to pass through the incoming media without transcoding, only compatible with some input types""" - @property - def audio(self) -> global___IngressAudioOptions: ... - @property - def video(self) -> global___IngressVideoOptions: ... - def __init__( - self, - *, - input_type: global___IngressInput.ValueType = ..., - url: builtins.str = ..., - name: builtins.str = ..., - room_name: builtins.str = ..., - participant_identity: builtins.str = ..., - participant_name: builtins.str = ..., - bypass_transcoding: builtins.bool = ..., - audio: global___IngressAudioOptions | None = ..., - video: global___IngressVideoOptions | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["audio", b"audio", "video", b"video"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["audio", b"audio", "bypass_transcoding", b"bypass_transcoding", "input_type", b"input_type", "name", b"name", "participant_identity", b"participant_identity", "participant_name", b"participant_name", "room_name", b"room_name", "url", b"url", "video", b"video"]) -> None: ... - -global___CreateIngressRequest = CreateIngressRequest - -@typing_extensions.final -class IngressAudioOptions(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - NAME_FIELD_NUMBER: builtins.int - SOURCE_FIELD_NUMBER: builtins.int - PRESET_FIELD_NUMBER: builtins.int - OPTIONS_FIELD_NUMBER: builtins.int - name: builtins.str - source: livekit_models_pb2.TrackSource.ValueType - preset: global___IngressAudioEncodingPreset.ValueType - @property - def options(self) -> global___IngressAudioEncodingOptions: ... - def __init__( - self, - *, - name: builtins.str = ..., - source: livekit_models_pb2.TrackSource.ValueType = ..., - preset: global___IngressAudioEncodingPreset.ValueType = ..., - options: global___IngressAudioEncodingOptions | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["encoding_options", b"encoding_options", "options", b"options", "preset", b"preset"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["encoding_options", b"encoding_options", "name", b"name", "options", b"options", "preset", b"preset", "source", b"source"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["encoding_options", b"encoding_options"]) -> typing_extensions.Literal["preset", "options"] | None: ... - -global___IngressAudioOptions = IngressAudioOptions - -@typing_extensions.final -class IngressVideoOptions(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - NAME_FIELD_NUMBER: builtins.int - SOURCE_FIELD_NUMBER: builtins.int - PRESET_FIELD_NUMBER: builtins.int - OPTIONS_FIELD_NUMBER: builtins.int - name: builtins.str - source: livekit_models_pb2.TrackSource.ValueType - preset: global___IngressVideoEncodingPreset.ValueType - @property - def options(self) -> global___IngressVideoEncodingOptions: ... - def __init__( - self, - *, - name: builtins.str = ..., - source: livekit_models_pb2.TrackSource.ValueType = ..., - preset: global___IngressVideoEncodingPreset.ValueType = ..., - options: global___IngressVideoEncodingOptions | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["encoding_options", b"encoding_options", "options", b"options", "preset", b"preset"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["encoding_options", b"encoding_options", "name", b"name", "options", b"options", "preset", b"preset", "source", b"source"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["encoding_options", b"encoding_options"]) -> typing_extensions.Literal["preset", "options"] | None: ... - -global___IngressVideoOptions = IngressVideoOptions - -@typing_extensions.final -class IngressAudioEncodingOptions(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - AUDIO_CODEC_FIELD_NUMBER: builtins.int - BITRATE_FIELD_NUMBER: builtins.int - DISABLE_DTX_FIELD_NUMBER: builtins.int - CHANNELS_FIELD_NUMBER: builtins.int - audio_codec: livekit_models_pb2.AudioCodec.ValueType - """desired audio codec to publish to room""" - bitrate: builtins.int - disable_dtx: builtins.bool - channels: builtins.int - def __init__( - self, - *, - audio_codec: livekit_models_pb2.AudioCodec.ValueType = ..., - bitrate: builtins.int = ..., - disable_dtx: builtins.bool = ..., - channels: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["audio_codec", b"audio_codec", "bitrate", b"bitrate", "channels", b"channels", "disable_dtx", b"disable_dtx"]) -> None: ... - -global___IngressAudioEncodingOptions = IngressAudioEncodingOptions - -@typing_extensions.final -class IngressVideoEncodingOptions(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - VIDEO_CODEC_FIELD_NUMBER: builtins.int - FRAME_RATE_FIELD_NUMBER: builtins.int - LAYERS_FIELD_NUMBER: builtins.int - video_codec: livekit_models_pb2.VideoCodec.ValueType - """desired codec to publish to room""" - frame_rate: builtins.float - @property - def layers(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[livekit_models_pb2.VideoLayer]: - """simulcast layers to publish, when empty, should usually be set to layers at 1/2 and 1/4 of the dimensions""" - def __init__( - self, - *, - video_codec: livekit_models_pb2.VideoCodec.ValueType = ..., - frame_rate: builtins.float = ..., - layers: collections.abc.Iterable[livekit_models_pb2.VideoLayer] | None = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["frame_rate", b"frame_rate", "layers", b"layers", "video_codec", b"video_codec"]) -> None: ... - -global___IngressVideoEncodingOptions = IngressVideoEncodingOptions - -@typing_extensions.final -class IngressInfo(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - INGRESS_ID_FIELD_NUMBER: builtins.int - NAME_FIELD_NUMBER: builtins.int - STREAM_KEY_FIELD_NUMBER: builtins.int - URL_FIELD_NUMBER: builtins.int - INPUT_TYPE_FIELD_NUMBER: builtins.int - BYPASS_TRANSCODING_FIELD_NUMBER: builtins.int - AUDIO_FIELD_NUMBER: builtins.int - VIDEO_FIELD_NUMBER: builtins.int - ROOM_NAME_FIELD_NUMBER: builtins.int - PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int - PARTICIPANT_NAME_FIELD_NUMBER: builtins.int - REUSABLE_FIELD_NUMBER: builtins.int - STATE_FIELD_NUMBER: builtins.int - ingress_id: builtins.str - name: builtins.str - stream_key: builtins.str - url: builtins.str - """URL to point the encoder to for push (RTMP, WHIP), or location to pull media from for pull (URL)""" - input_type: global___IngressInput.ValueType - """for RTMP input, it'll be a rtmp:// URL - for FILE input, it'll be a http:// URL - for SRT input, it'll be a srt:// URL - """ - bypass_transcoding: builtins.bool - @property - def audio(self) -> global___IngressAudioOptions: ... - @property - def video(self) -> global___IngressVideoOptions: ... - room_name: builtins.str - participant_identity: builtins.str - participant_name: builtins.str - reusable: builtins.bool - @property - def state(self) -> global___IngressState: - """Description of error/stream non compliance and debug info for publisher otherwise (received bitrate, resolution, bandwidth)""" - def __init__( - self, - *, - ingress_id: builtins.str = ..., - name: builtins.str = ..., - stream_key: builtins.str = ..., - url: builtins.str = ..., - input_type: global___IngressInput.ValueType = ..., - bypass_transcoding: builtins.bool = ..., - audio: global___IngressAudioOptions | None = ..., - video: global___IngressVideoOptions | None = ..., - room_name: builtins.str = ..., - participant_identity: builtins.str = ..., - participant_name: builtins.str = ..., - reusable: builtins.bool = ..., - state: global___IngressState | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["audio", b"audio", "state", b"state", "video", b"video"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["audio", b"audio", "bypass_transcoding", b"bypass_transcoding", "ingress_id", b"ingress_id", "input_type", b"input_type", "name", b"name", "participant_identity", b"participant_identity", "participant_name", b"participant_name", "reusable", b"reusable", "room_name", b"room_name", "state", b"state", "stream_key", b"stream_key", "url", b"url", "video", b"video"]) -> None: ... - -global___IngressInfo = IngressInfo - -@typing_extensions.final -class IngressState(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - class _Status: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType - - class _StatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[IngressState._Status.ValueType], builtins.type): # noqa: F821 - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - ENDPOINT_INACTIVE: IngressState._Status.ValueType # 0 - ENDPOINT_BUFFERING: IngressState._Status.ValueType # 1 - ENDPOINT_PUBLISHING: IngressState._Status.ValueType # 2 - ENDPOINT_ERROR: IngressState._Status.ValueType # 3 - ENDPOINT_COMPLETE: IngressState._Status.ValueType # 4 - - class Status(_Status, metaclass=_StatusEnumTypeWrapper): ... - ENDPOINT_INACTIVE: IngressState.Status.ValueType # 0 - ENDPOINT_BUFFERING: IngressState.Status.ValueType # 1 - ENDPOINT_PUBLISHING: IngressState.Status.ValueType # 2 - ENDPOINT_ERROR: IngressState.Status.ValueType # 3 - ENDPOINT_COMPLETE: IngressState.Status.ValueType # 4 - - STATUS_FIELD_NUMBER: builtins.int - ERROR_FIELD_NUMBER: builtins.int - VIDEO_FIELD_NUMBER: builtins.int - AUDIO_FIELD_NUMBER: builtins.int - ROOM_ID_FIELD_NUMBER: builtins.int - STARTED_AT_FIELD_NUMBER: builtins.int - ENDED_AT_FIELD_NUMBER: builtins.int - RESOURCE_ID_FIELD_NUMBER: builtins.int - TRACKS_FIELD_NUMBER: builtins.int - status: global___IngressState.Status.ValueType - error: builtins.str - """Error/non compliance description if any""" - @property - def video(self) -> global___InputVideoState: ... - @property - def audio(self) -> global___InputAudioState: ... - room_id: builtins.str - """ID of the current/previous room published to""" - started_at: builtins.int - ended_at: builtins.int - resource_id: builtins.str - @property - def tracks(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[livekit_models_pb2.TrackInfo]: ... - def __init__( - self, - *, - status: global___IngressState.Status.ValueType = ..., - error: builtins.str = ..., - video: global___InputVideoState | None = ..., - audio: global___InputAudioState | None = ..., - room_id: builtins.str = ..., - started_at: builtins.int = ..., - ended_at: builtins.int = ..., - resource_id: builtins.str = ..., - tracks: collections.abc.Iterable[livekit_models_pb2.TrackInfo] | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["audio", b"audio", "video", b"video"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["audio", b"audio", "ended_at", b"ended_at", "error", b"error", "resource_id", b"resource_id", "room_id", b"room_id", "started_at", b"started_at", "status", b"status", "tracks", b"tracks", "video", b"video"]) -> None: ... - -global___IngressState = IngressState - -@typing_extensions.final -class InputVideoState(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - MIME_TYPE_FIELD_NUMBER: builtins.int - AVERAGE_BITRATE_FIELD_NUMBER: builtins.int - WIDTH_FIELD_NUMBER: builtins.int - HEIGHT_FIELD_NUMBER: builtins.int - FRAMERATE_FIELD_NUMBER: builtins.int - mime_type: builtins.str - average_bitrate: builtins.int - width: builtins.int - height: builtins.int - framerate: builtins.float - def __init__( - self, - *, - mime_type: builtins.str = ..., - average_bitrate: builtins.int = ..., - width: builtins.int = ..., - height: builtins.int = ..., - framerate: builtins.float = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["average_bitrate", b"average_bitrate", "framerate", b"framerate", "height", b"height", "mime_type", b"mime_type", "width", b"width"]) -> None: ... - -global___InputVideoState = InputVideoState - -@typing_extensions.final -class InputAudioState(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - MIME_TYPE_FIELD_NUMBER: builtins.int - AVERAGE_BITRATE_FIELD_NUMBER: builtins.int - CHANNELS_FIELD_NUMBER: builtins.int - SAMPLE_RATE_FIELD_NUMBER: builtins.int - mime_type: builtins.str - average_bitrate: builtins.int - channels: builtins.int - sample_rate: builtins.int - def __init__( - self, - *, - mime_type: builtins.str = ..., - average_bitrate: builtins.int = ..., - channels: builtins.int = ..., - sample_rate: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["average_bitrate", b"average_bitrate", "channels", b"channels", "mime_type", b"mime_type", "sample_rate", b"sample_rate"]) -> None: ... - -global___InputAudioState = InputAudioState - -@typing_extensions.final -class UpdateIngressRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - INGRESS_ID_FIELD_NUMBER: builtins.int - NAME_FIELD_NUMBER: builtins.int - ROOM_NAME_FIELD_NUMBER: builtins.int - PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int - PARTICIPANT_NAME_FIELD_NUMBER: builtins.int - BYPASS_TRANSCODING_FIELD_NUMBER: builtins.int - AUDIO_FIELD_NUMBER: builtins.int - VIDEO_FIELD_NUMBER: builtins.int - ingress_id: builtins.str - name: builtins.str - room_name: builtins.str - participant_identity: builtins.str - participant_name: builtins.str - bypass_transcoding: builtins.bool - @property - def audio(self) -> global___IngressAudioOptions: ... - @property - def video(self) -> global___IngressVideoOptions: ... - def __init__( - self, - *, - ingress_id: builtins.str = ..., - name: builtins.str = ..., - room_name: builtins.str = ..., - participant_identity: builtins.str = ..., - participant_name: builtins.str = ..., - bypass_transcoding: builtins.bool | None = ..., - audio: global___IngressAudioOptions | None = ..., - video: global___IngressVideoOptions | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["_bypass_transcoding", b"_bypass_transcoding", "audio", b"audio", "bypass_transcoding", b"bypass_transcoding", "video", b"video"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["_bypass_transcoding", b"_bypass_transcoding", "audio", b"audio", "bypass_transcoding", b"bypass_transcoding", "ingress_id", b"ingress_id", "name", b"name", "participant_identity", b"participant_identity", "participant_name", b"participant_name", "room_name", b"room_name", "video", b"video"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["_bypass_transcoding", b"_bypass_transcoding"]) -> typing_extensions.Literal["bypass_transcoding"] | None: ... - -global___UpdateIngressRequest = UpdateIngressRequest - -@typing_extensions.final -class ListIngressRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ROOM_NAME_FIELD_NUMBER: builtins.int - INGRESS_ID_FIELD_NUMBER: builtins.int - room_name: builtins.str - """when blank, lists all ingress endpoints - (optional, filter by room name) - """ - ingress_id: builtins.str - """(optional, filter by ingress ID)""" - def __init__( - self, - *, - room_name: builtins.str = ..., - ingress_id: builtins.str = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["ingress_id", b"ingress_id", "room_name", b"room_name"]) -> None: ... - -global___ListIngressRequest = ListIngressRequest - -@typing_extensions.final -class ListIngressResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ITEMS_FIELD_NUMBER: builtins.int - @property - def items(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___IngressInfo]: ... - def __init__( - self, - *, - items: collections.abc.Iterable[global___IngressInfo] | None = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["items", b"items"]) -> None: ... - -global___ListIngressResponse = ListIngressResponse - -@typing_extensions.final -class DeleteIngressRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - INGRESS_ID_FIELD_NUMBER: builtins.int - ingress_id: builtins.str - def __init__( - self, - *, - ingress_id: builtins.str = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["ingress_id", b"ingress_id"]) -> None: ... - -global___DeleteIngressRequest = DeleteIngressRequest diff --git a/livekit-api/livekit/api/_proto/livekit_models_pb2.py b/livekit-api/livekit/api/_proto/livekit_models_pb2.py deleted file mode 100644 index 259273d4..00000000 --- a/livekit-api/livekit/api/_proto/livekit_models_pb2.py +++ /dev/null @@ -1,106 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: livekit_models.proto -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x14livekit_models.proto\x12\x07livekit\x1a\x1fgoogle/protobuf/timestamp.proto\"\x86\x02\n\x04Room\x12\x0b\n\x03sid\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x15\n\rempty_timeout\x18\x03 \x01(\r\x12\x18\n\x10max_participants\x18\x04 \x01(\r\x12\x15\n\rcreation_time\x18\x05 \x01(\x03\x12\x15\n\rturn_password\x18\x06 \x01(\t\x12&\n\x0e\x65nabled_codecs\x18\x07 \x03(\x0b\x32\x0e.livekit.Codec\x12\x10\n\x08metadata\x18\x08 \x01(\t\x12\x18\n\x10num_participants\x18\t \x01(\r\x12\x16\n\x0enum_publishers\x18\x0b \x01(\r\x12\x18\n\x10\x61\x63tive_recording\x18\n \x01(\x08\"(\n\x05\x43odec\x12\x0c\n\x04mime\x18\x01 \x01(\t\x12\x11\n\tfmtp_line\x18\x02 \x01(\t\"9\n\x0cPlayoutDelay\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12\x0b\n\x03min\x18\x02 \x01(\r\x12\x0b\n\x03max\x18\x03 \x01(\r\"\xcf\x01\n\x15ParticipantPermission\x12\x15\n\rcan_subscribe\x18\x01 \x01(\x08\x12\x13\n\x0b\x63\x61n_publish\x18\x02 \x01(\x08\x12\x18\n\x10\x63\x61n_publish_data\x18\x03 \x01(\x08\x12\x31\n\x13\x63\x61n_publish_sources\x18\t \x03(\x0e\x32\x14.livekit.TrackSource\x12\x0e\n\x06hidden\x18\x07 \x01(\x08\x12\x10\n\x08recorder\x18\x08 \x01(\x08\x12\x1b\n\x13\x63\x61n_update_metadata\x18\n \x01(\x08\"\xe1\x02\n\x0fParticipantInfo\x12\x0b\n\x03sid\x18\x01 \x01(\t\x12\x10\n\x08identity\x18\x02 \x01(\t\x12-\n\x05state\x18\x03 \x01(\x0e\x32\x1e.livekit.ParticipantInfo.State\x12\"\n\x06tracks\x18\x04 \x03(\x0b\x32\x12.livekit.TrackInfo\x12\x10\n\x08metadata\x18\x05 \x01(\t\x12\x11\n\tjoined_at\x18\x06 \x01(\x03\x12\x0c\n\x04name\x18\t \x01(\t\x12\x0f\n\x07version\x18\n \x01(\r\x12\x32\n\npermission\x18\x0b \x01(\x0b\x32\x1e.livekit.ParticipantPermission\x12\x0e\n\x06region\x18\x0c \x01(\t\x12\x14\n\x0cis_publisher\x18\r \x01(\x08\">\n\x05State\x12\x0b\n\x07JOINING\x10\x00\x12\n\n\x06JOINED\x10\x01\x12\n\n\x06\x41\x43TIVE\x10\x02\x12\x10\n\x0c\x44ISCONNECTED\x10\x03\"3\n\nEncryption\"%\n\x04Type\x12\x08\n\x04NONE\x10\x00\x12\x07\n\x03GCM\x10\x01\x12\n\n\x06\x43USTOM\x10\x02\"f\n\x12SimulcastCodecInfo\x12\x11\n\tmime_type\x18\x01 \x01(\t\x12\x0b\n\x03mid\x18\x02 \x01(\t\x12\x0b\n\x03\x63id\x18\x03 \x01(\t\x12#\n\x06layers\x18\x04 \x03(\x0b\x32\x13.livekit.VideoLayer\"\x99\x03\n\tTrackInfo\x12\x0b\n\x03sid\x18\x01 \x01(\t\x12 \n\x04type\x18\x02 \x01(\x0e\x32\x12.livekit.TrackType\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\r\n\x05muted\x18\x04 \x01(\x08\x12\r\n\x05width\x18\x05 \x01(\r\x12\x0e\n\x06height\x18\x06 \x01(\r\x12\x11\n\tsimulcast\x18\x07 \x01(\x08\x12\x13\n\x0b\x64isable_dtx\x18\x08 \x01(\x08\x12$\n\x06source\x18\t \x01(\x0e\x32\x14.livekit.TrackSource\x12#\n\x06layers\x18\n \x03(\x0b\x32\x13.livekit.VideoLayer\x12\x11\n\tmime_type\x18\x0b \x01(\t\x12\x0b\n\x03mid\x18\x0c \x01(\t\x12+\n\x06\x63odecs\x18\r \x03(\x0b\x32\x1b.livekit.SimulcastCodecInfo\x12\x0e\n\x06stereo\x18\x0e \x01(\x08\x12\x13\n\x0b\x64isable_red\x18\x0f \x01(\x08\x12,\n\nencryption\x18\x10 \x01(\x0e\x32\x18.livekit.Encryption.Type\x12\x0e\n\x06stream\x18\x11 \x01(\t\"r\n\nVideoLayer\x12&\n\x07quality\x18\x01 \x01(\x0e\x32\x15.livekit.VideoQuality\x12\r\n\x05width\x18\x02 \x01(\r\x12\x0e\n\x06height\x18\x03 \x01(\r\x12\x0f\n\x07\x62itrate\x18\x04 \x01(\r\x12\x0c\n\x04ssrc\x18\x05 \x01(\r\"\xb4\x01\n\nDataPacket\x12&\n\x04kind\x18\x01 \x01(\x0e\x32\x18.livekit.DataPacket.Kind\x12#\n\x04user\x18\x02 \x01(\x0b\x32\x13.livekit.UserPacketH\x00\x12/\n\x07speaker\x18\x03 \x01(\x0b\x32\x1c.livekit.ActiveSpeakerUpdateH\x00\"\x1f\n\x04Kind\x12\x0c\n\x08RELIABLE\x10\x00\x12\t\n\x05LOSSY\x10\x01\x42\x07\n\x05value\"=\n\x13\x41\x63tiveSpeakerUpdate\x12&\n\x08speakers\x18\x01 \x03(\x0b\x32\x14.livekit.SpeakerInfo\"9\n\x0bSpeakerInfo\x12\x0b\n\x03sid\x18\x01 \x01(\t\x12\r\n\x05level\x18\x02 \x01(\x02\x12\x0e\n\x06\x61\x63tive\x18\x03 \x01(\x08\"\xac\x01\n\nUserPacket\x12\x17\n\x0fparticipant_sid\x18\x01 \x01(\t\x12\x1c\n\x14participant_identity\x18\x05 \x01(\t\x12\x0f\n\x07payload\x18\x02 \x01(\x0c\x12\x18\n\x10\x64\x65stination_sids\x18\x03 \x03(\t\x12\x1e\n\x16\x64\x65stination_identities\x18\x06 \x03(\t\x12\x12\n\x05topic\x18\x04 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_topic\"@\n\x11ParticipantTracks\x12\x17\n\x0fparticipant_sid\x18\x01 \x01(\t\x12\x12\n\ntrack_sids\x18\x02 \x03(\t\"\xb6\x01\n\nServerInfo\x12,\n\x07\x65\x64ition\x18\x01 \x01(\x0e\x32\x1b.livekit.ServerInfo.Edition\x12\x0f\n\x07version\x18\x02 \x01(\t\x12\x10\n\x08protocol\x18\x03 \x01(\x05\x12\x0e\n\x06region\x18\x04 \x01(\t\x12\x0f\n\x07node_id\x18\x05 \x01(\t\x12\x12\n\ndebug_info\x18\x06 \x01(\t\"\"\n\x07\x45\x64ition\x12\x0c\n\x08Standard\x10\x00\x12\t\n\x05\x43loud\x10\x01\"\xdd\x02\n\nClientInfo\x12$\n\x03sdk\x18\x01 \x01(\x0e\x32\x17.livekit.ClientInfo.SDK\x12\x0f\n\x07version\x18\x02 \x01(\t\x12\x10\n\x08protocol\x18\x03 \x01(\x05\x12\n\n\x02os\x18\x04 \x01(\t\x12\x12\n\nos_version\x18\x05 \x01(\t\x12\x14\n\x0c\x64\x65vice_model\x18\x06 \x01(\t\x12\x0f\n\x07\x62rowser\x18\x07 \x01(\t\x12\x17\n\x0f\x62rowser_version\x18\x08 \x01(\t\x12\x0f\n\x07\x61\x64\x64ress\x18\t \x01(\t\x12\x0f\n\x07network\x18\n \x01(\t\"\x83\x01\n\x03SDK\x12\x0b\n\x07UNKNOWN\x10\x00\x12\x06\n\x02JS\x10\x01\x12\t\n\x05SWIFT\x10\x02\x12\x0b\n\x07\x41NDROID\x10\x03\x12\x0b\n\x07\x46LUTTER\x10\x04\x12\x06\n\x02GO\x10\x05\x12\t\n\x05UNITY\x10\x06\x12\x10\n\x0cREACT_NATIVE\x10\x07\x12\x08\n\x04RUST\x10\x08\x12\n\n\x06PYTHON\x10\t\x12\x07\n\x03\x43PP\x10\n\"\x8c\x02\n\x13\x43lientConfiguration\x12*\n\x05video\x18\x01 \x01(\x0b\x32\x1b.livekit.VideoConfiguration\x12+\n\x06screen\x18\x02 \x01(\x0b\x32\x1b.livekit.VideoConfiguration\x12\x37\n\x11resume_connection\x18\x03 \x01(\x0e\x32\x1c.livekit.ClientConfigSetting\x12\x30\n\x0f\x64isabled_codecs\x18\x04 \x01(\x0b\x32\x17.livekit.DisabledCodecs\x12\x31\n\x0b\x66orce_relay\x18\x05 \x01(\x0e\x32\x1c.livekit.ClientConfigSetting\"L\n\x12VideoConfiguration\x12\x36\n\x10hardware_encoder\x18\x01 \x01(\x0e\x32\x1c.livekit.ClientConfigSetting\"Q\n\x0e\x44isabledCodecs\x12\x1e\n\x06\x63odecs\x18\x01 \x03(\x0b\x32\x0e.livekit.Codec\x12\x1f\n\x07publish\x18\x02 \x03(\x0b\x32\x0e.livekit.Codec\"\x80\x02\n\x08RTPDrift\x12.\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x10\n\x08\x64uration\x18\x03 \x01(\x01\x12\x17\n\x0fstart_timestamp\x18\x04 \x01(\x04\x12\x15\n\rend_timestamp\x18\x05 \x01(\x04\x12\x17\n\x0frtp_clock_ticks\x18\x06 \x01(\x04\x12\x15\n\rdrift_samples\x18\x07 \x01(\x03\x12\x10\n\x08\x64rift_ms\x18\x08 \x01(\x01\x12\x12\n\nclock_rate\x18\t \x01(\x01\"\xef\t\n\x08RTPStats\x12.\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x10\n\x08\x64uration\x18\x03 \x01(\x01\x12\x0f\n\x07packets\x18\x04 \x01(\r\x12\x13\n\x0bpacket_rate\x18\x05 \x01(\x01\x12\r\n\x05\x62ytes\x18\x06 \x01(\x04\x12\x14\n\x0cheader_bytes\x18\' \x01(\x04\x12\x0f\n\x07\x62itrate\x18\x07 \x01(\x01\x12\x14\n\x0cpackets_lost\x18\x08 \x01(\r\x12\x18\n\x10packet_loss_rate\x18\t \x01(\x01\x12\x1e\n\x16packet_loss_percentage\x18\n \x01(\x02\x12\x19\n\x11packets_duplicate\x18\x0b \x01(\r\x12\x1d\n\x15packet_duplicate_rate\x18\x0c \x01(\x01\x12\x17\n\x0f\x62ytes_duplicate\x18\r \x01(\x04\x12\x1e\n\x16header_bytes_duplicate\x18( \x01(\x04\x12\x19\n\x11\x62itrate_duplicate\x18\x0e \x01(\x01\x12\x17\n\x0fpackets_padding\x18\x0f \x01(\r\x12\x1b\n\x13packet_padding_rate\x18\x10 \x01(\x01\x12\x15\n\rbytes_padding\x18\x11 \x01(\x04\x12\x1c\n\x14header_bytes_padding\x18) \x01(\x04\x12\x17\n\x0f\x62itrate_padding\x18\x12 \x01(\x01\x12\x1c\n\x14packets_out_of_order\x18\x13 \x01(\r\x12\x0e\n\x06\x66rames\x18\x14 \x01(\r\x12\x12\n\nframe_rate\x18\x15 \x01(\x01\x12\x16\n\x0ejitter_current\x18\x16 \x01(\x01\x12\x12\n\njitter_max\x18\x17 \x01(\x01\x12:\n\rgap_histogram\x18\x18 \x03(\x0b\x32#.livekit.RTPStats.GapHistogramEntry\x12\r\n\x05nacks\x18\x19 \x01(\r\x12\x11\n\tnack_acks\x18% \x01(\r\x12\x13\n\x0bnack_misses\x18\x1a \x01(\r\x12\x15\n\rnack_repeated\x18& \x01(\r\x12\x0c\n\x04plis\x18\x1b \x01(\r\x12,\n\x08last_pli\x18\x1c \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0c\n\x04\x66irs\x18\x1d \x01(\r\x12,\n\x08last_fir\x18\x1e \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x13\n\x0brtt_current\x18\x1f \x01(\r\x12\x0f\n\x07rtt_max\x18 \x01(\r\x12\x12\n\nkey_frames\x18! \x01(\r\x12\x32\n\x0elast_key_frame\x18\" \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x17\n\x0flayer_lock_plis\x18# \x01(\r\x12\x37\n\x13last_layer_lock_pli\x18$ \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\'\n\x0cpacket_drift\x18, \x01(\x0b\x32\x11.livekit.RTPDrift\x12\'\n\x0creport_drift\x18- \x01(\x0b\x32\x11.livekit.RTPDrift\x1a\x33\n\x11GapHistogramEntry\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12\r\n\x05value\x18\x02 \x01(\r:\x02\x38\x01\"1\n\x0cTimedVersion\x12\x12\n\nunix_micro\x18\x01 \x01(\x03\x12\r\n\x05ticks\x18\x02 \x01(\x05*/\n\nAudioCodec\x12\x0e\n\nDEFAULT_AC\x10\x00\x12\x08\n\x04OPUS\x10\x01\x12\x07\n\x03\x41\x41\x43\x10\x02*V\n\nVideoCodec\x12\x0e\n\nDEFAULT_VC\x10\x00\x12\x11\n\rH264_BASELINE\x10\x01\x12\r\n\tH264_MAIN\x10\x02\x12\r\n\tH264_HIGH\x10\x03\x12\x07\n\x03VP8\x10\x04*)\n\nImageCodec\x12\x0e\n\nIC_DEFAULT\x10\x00\x12\x0b\n\x07IC_JPEG\x10\x01*+\n\tTrackType\x12\t\n\x05\x41UDIO\x10\x00\x12\t\n\x05VIDEO\x10\x01\x12\x08\n\x04\x44\x41TA\x10\x02*`\n\x0bTrackSource\x12\x0b\n\x07UNKNOWN\x10\x00\x12\n\n\x06\x43\x41MERA\x10\x01\x12\x0e\n\nMICROPHONE\x10\x02\x12\x10\n\x0cSCREEN_SHARE\x10\x03\x12\x16\n\x12SCREEN_SHARE_AUDIO\x10\x04*6\n\x0cVideoQuality\x12\x07\n\x03LOW\x10\x00\x12\n\n\x06MEDIUM\x10\x01\x12\x08\n\x04HIGH\x10\x02\x12\x07\n\x03OFF\x10\x03*6\n\x11\x43onnectionQuality\x12\x08\n\x04POOR\x10\x00\x12\x08\n\x04GOOD\x10\x01\x12\r\n\tEXCELLENT\x10\x02*;\n\x13\x43lientConfigSetting\x12\t\n\x05UNSET\x10\x00\x12\x0c\n\x08\x44ISABLED\x10\x01\x12\x0b\n\x07\x45NABLED\x10\x02*\xba\x01\n\x10\x44isconnectReason\x12\x12\n\x0eUNKNOWN_REASON\x10\x00\x12\x14\n\x10\x43LIENT_INITIATED\x10\x01\x12\x16\n\x12\x44UPLICATE_IDENTITY\x10\x02\x12\x13\n\x0fSERVER_SHUTDOWN\x10\x03\x12\x17\n\x13PARTICIPANT_REMOVED\x10\x04\x12\x10\n\x0cROOM_DELETED\x10\x05\x12\x12\n\x0eSTATE_MISMATCH\x10\x06\x12\x10\n\x0cJOIN_FAILURE\x10\x07*\x89\x01\n\x0fReconnectReason\x12\x0e\n\nRR_UNKNOWN\x10\x00\x12\x1a\n\x16RR_SIGNAL_DISCONNECTED\x10\x01\x12\x17\n\x13RR_PUBLISHER_FAILED\x10\x02\x12\x18\n\x14RR_SUBSCRIBER_FAILED\x10\x03\x12\x17\n\x13RR_SWITCH_CANDIDATE\x10\x04*T\n\x11SubscriptionError\x12\x0e\n\nSE_UNKNOWN\x10\x00\x12\x18\n\x14SE_CODEC_UNSUPPORTED\x10\x01\x12\x15\n\x11SE_TRACK_NOTFOUND\x10\x02\x42\x46Z#github.com/livekit/protocol/livekit\xaa\x02\rLiveKit.Proto\xea\x02\x0eLiveKit::Protob\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'livekit_models_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'Z#github.com/livekit/protocol/livekit\252\002\rLiveKit.Proto\352\002\016LiveKit::Proto' - _RTPSTATS_GAPHISTOGRAMENTRY._options = None - _RTPSTATS_GAPHISTOGRAMENTRY._serialized_options = b'8\001' - _globals['_AUDIOCODEC']._serialized_start=4774 - _globals['_AUDIOCODEC']._serialized_end=4821 - _globals['_VIDEOCODEC']._serialized_start=4823 - _globals['_VIDEOCODEC']._serialized_end=4909 - _globals['_IMAGECODEC']._serialized_start=4911 - _globals['_IMAGECODEC']._serialized_end=4952 - _globals['_TRACKTYPE']._serialized_start=4954 - _globals['_TRACKTYPE']._serialized_end=4997 - _globals['_TRACKSOURCE']._serialized_start=4999 - _globals['_TRACKSOURCE']._serialized_end=5095 - _globals['_VIDEOQUALITY']._serialized_start=5097 - _globals['_VIDEOQUALITY']._serialized_end=5151 - _globals['_CONNECTIONQUALITY']._serialized_start=5153 - _globals['_CONNECTIONQUALITY']._serialized_end=5207 - _globals['_CLIENTCONFIGSETTING']._serialized_start=5209 - _globals['_CLIENTCONFIGSETTING']._serialized_end=5268 - _globals['_DISCONNECTREASON']._serialized_start=5271 - _globals['_DISCONNECTREASON']._serialized_end=5457 - _globals['_RECONNECTREASON']._serialized_start=5460 - _globals['_RECONNECTREASON']._serialized_end=5597 - _globals['_SUBSCRIPTIONERROR']._serialized_start=5599 - _globals['_SUBSCRIPTIONERROR']._serialized_end=5683 - _globals['_ROOM']._serialized_start=67 - _globals['_ROOM']._serialized_end=329 - _globals['_CODEC']._serialized_start=331 - _globals['_CODEC']._serialized_end=371 - _globals['_PLAYOUTDELAY']._serialized_start=373 - _globals['_PLAYOUTDELAY']._serialized_end=430 - _globals['_PARTICIPANTPERMISSION']._serialized_start=433 - _globals['_PARTICIPANTPERMISSION']._serialized_end=640 - _globals['_PARTICIPANTINFO']._serialized_start=643 - _globals['_PARTICIPANTINFO']._serialized_end=996 - _globals['_PARTICIPANTINFO_STATE']._serialized_start=934 - _globals['_PARTICIPANTINFO_STATE']._serialized_end=996 - _globals['_ENCRYPTION']._serialized_start=998 - _globals['_ENCRYPTION']._serialized_end=1049 - _globals['_ENCRYPTION_TYPE']._serialized_start=1012 - _globals['_ENCRYPTION_TYPE']._serialized_end=1049 - _globals['_SIMULCASTCODECINFO']._serialized_start=1051 - _globals['_SIMULCASTCODECINFO']._serialized_end=1153 - _globals['_TRACKINFO']._serialized_start=1156 - _globals['_TRACKINFO']._serialized_end=1565 - _globals['_VIDEOLAYER']._serialized_start=1567 - _globals['_VIDEOLAYER']._serialized_end=1681 - _globals['_DATAPACKET']._serialized_start=1684 - _globals['_DATAPACKET']._serialized_end=1864 - _globals['_DATAPACKET_KIND']._serialized_start=1824 - _globals['_DATAPACKET_KIND']._serialized_end=1855 - _globals['_ACTIVESPEAKERUPDATE']._serialized_start=1866 - _globals['_ACTIVESPEAKERUPDATE']._serialized_end=1927 - _globals['_SPEAKERINFO']._serialized_start=1929 - _globals['_SPEAKERINFO']._serialized_end=1986 - _globals['_USERPACKET']._serialized_start=1989 - _globals['_USERPACKET']._serialized_end=2161 - _globals['_PARTICIPANTTRACKS']._serialized_start=2163 - _globals['_PARTICIPANTTRACKS']._serialized_end=2227 - _globals['_SERVERINFO']._serialized_start=2230 - _globals['_SERVERINFO']._serialized_end=2412 - _globals['_SERVERINFO_EDITION']._serialized_start=2378 - _globals['_SERVERINFO_EDITION']._serialized_end=2412 - _globals['_CLIENTINFO']._serialized_start=2415 - _globals['_CLIENTINFO']._serialized_end=2764 - _globals['_CLIENTINFO_SDK']._serialized_start=2633 - _globals['_CLIENTINFO_SDK']._serialized_end=2764 - _globals['_CLIENTCONFIGURATION']._serialized_start=2767 - _globals['_CLIENTCONFIGURATION']._serialized_end=3035 - _globals['_VIDEOCONFIGURATION']._serialized_start=3037 - _globals['_VIDEOCONFIGURATION']._serialized_end=3113 - _globals['_DISABLEDCODECS']._serialized_start=3115 - _globals['_DISABLEDCODECS']._serialized_end=3196 - _globals['_RTPDRIFT']._serialized_start=3199 - _globals['_RTPDRIFT']._serialized_end=3455 - _globals['_RTPSTATS']._serialized_start=3458 - _globals['_RTPSTATS']._serialized_end=4721 - _globals['_RTPSTATS_GAPHISTOGRAMENTRY']._serialized_start=4670 - _globals['_RTPSTATS_GAPHISTOGRAMENTRY']._serialized_end=4721 - _globals['_TIMEDVERSION']._serialized_start=4723 - _globals['_TIMEDVERSION']._serialized_end=4772 -# @@protoc_insertion_point(module_scope) diff --git a/livekit-api/livekit/api/_proto/livekit_models_pb2.pyi b/livekit-api/livekit/api/_proto/livekit_models_pb2.pyi deleted file mode 100644 index 756f31a1..00000000 --- a/livekit-api/livekit/api/_proto/livekit_models_pb2.pyi +++ /dev/null @@ -1,1158 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -Copyright 2023 LiveKit, Inc. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -""" -import builtins -import collections.abc -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.internal.enum_type_wrapper -import google.protobuf.message -import google.protobuf.timestamp_pb2 -import sys -import typing - -if sys.version_info >= (3, 10): - import typing as typing_extensions -else: - import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor - -class _AudioCodec: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType - -class _AudioCodecEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_AudioCodec.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - DEFAULT_AC: _AudioCodec.ValueType # 0 - OPUS: _AudioCodec.ValueType # 1 - AAC: _AudioCodec.ValueType # 2 - -class AudioCodec(_AudioCodec, metaclass=_AudioCodecEnumTypeWrapper): ... - -DEFAULT_AC: AudioCodec.ValueType # 0 -OPUS: AudioCodec.ValueType # 1 -AAC: AudioCodec.ValueType # 2 -global___AudioCodec = AudioCodec - -class _VideoCodec: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType - -class _VideoCodecEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_VideoCodec.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - DEFAULT_VC: _VideoCodec.ValueType # 0 - H264_BASELINE: _VideoCodec.ValueType # 1 - H264_MAIN: _VideoCodec.ValueType # 2 - H264_HIGH: _VideoCodec.ValueType # 3 - VP8: _VideoCodec.ValueType # 4 - -class VideoCodec(_VideoCodec, metaclass=_VideoCodecEnumTypeWrapper): ... - -DEFAULT_VC: VideoCodec.ValueType # 0 -H264_BASELINE: VideoCodec.ValueType # 1 -H264_MAIN: VideoCodec.ValueType # 2 -H264_HIGH: VideoCodec.ValueType # 3 -VP8: VideoCodec.ValueType # 4 -global___VideoCodec = VideoCodec - -class _ImageCodec: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType - -class _ImageCodecEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ImageCodec.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - IC_DEFAULT: _ImageCodec.ValueType # 0 - IC_JPEG: _ImageCodec.ValueType # 1 - -class ImageCodec(_ImageCodec, metaclass=_ImageCodecEnumTypeWrapper): ... - -IC_DEFAULT: ImageCodec.ValueType # 0 -IC_JPEG: ImageCodec.ValueType # 1 -global___ImageCodec = ImageCodec - -class _TrackType: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType - -class _TrackTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_TrackType.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - AUDIO: _TrackType.ValueType # 0 - VIDEO: _TrackType.ValueType # 1 - DATA: _TrackType.ValueType # 2 - -class TrackType(_TrackType, metaclass=_TrackTypeEnumTypeWrapper): ... - -AUDIO: TrackType.ValueType # 0 -VIDEO: TrackType.ValueType # 1 -DATA: TrackType.ValueType # 2 -global___TrackType = TrackType - -class _TrackSource: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType - -class _TrackSourceEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_TrackSource.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - UNKNOWN: _TrackSource.ValueType # 0 - CAMERA: _TrackSource.ValueType # 1 - MICROPHONE: _TrackSource.ValueType # 2 - SCREEN_SHARE: _TrackSource.ValueType # 3 - SCREEN_SHARE_AUDIO: _TrackSource.ValueType # 4 - -class TrackSource(_TrackSource, metaclass=_TrackSourceEnumTypeWrapper): ... - -UNKNOWN: TrackSource.ValueType # 0 -CAMERA: TrackSource.ValueType # 1 -MICROPHONE: TrackSource.ValueType # 2 -SCREEN_SHARE: TrackSource.ValueType # 3 -SCREEN_SHARE_AUDIO: TrackSource.ValueType # 4 -global___TrackSource = TrackSource - -class _VideoQuality: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType - -class _VideoQualityEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_VideoQuality.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - LOW: _VideoQuality.ValueType # 0 - MEDIUM: _VideoQuality.ValueType # 1 - HIGH: _VideoQuality.ValueType # 2 - OFF: _VideoQuality.ValueType # 3 - -class VideoQuality(_VideoQuality, metaclass=_VideoQualityEnumTypeWrapper): ... - -LOW: VideoQuality.ValueType # 0 -MEDIUM: VideoQuality.ValueType # 1 -HIGH: VideoQuality.ValueType # 2 -OFF: VideoQuality.ValueType # 3 -global___VideoQuality = VideoQuality - -class _ConnectionQuality: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType - -class _ConnectionQualityEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ConnectionQuality.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - POOR: _ConnectionQuality.ValueType # 0 - GOOD: _ConnectionQuality.ValueType # 1 - EXCELLENT: _ConnectionQuality.ValueType # 2 - -class ConnectionQuality(_ConnectionQuality, metaclass=_ConnectionQualityEnumTypeWrapper): ... - -POOR: ConnectionQuality.ValueType # 0 -GOOD: ConnectionQuality.ValueType # 1 -EXCELLENT: ConnectionQuality.ValueType # 2 -global___ConnectionQuality = ConnectionQuality - -class _ClientConfigSetting: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType - -class _ClientConfigSettingEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ClientConfigSetting.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - UNSET: _ClientConfigSetting.ValueType # 0 - DISABLED: _ClientConfigSetting.ValueType # 1 - ENABLED: _ClientConfigSetting.ValueType # 2 - -class ClientConfigSetting(_ClientConfigSetting, metaclass=_ClientConfigSettingEnumTypeWrapper): ... - -UNSET: ClientConfigSetting.ValueType # 0 -DISABLED: ClientConfigSetting.ValueType # 1 -ENABLED: ClientConfigSetting.ValueType # 2 -global___ClientConfigSetting = ClientConfigSetting - -class _DisconnectReason: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType - -class _DisconnectReasonEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_DisconnectReason.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - UNKNOWN_REASON: _DisconnectReason.ValueType # 0 - CLIENT_INITIATED: _DisconnectReason.ValueType # 1 - DUPLICATE_IDENTITY: _DisconnectReason.ValueType # 2 - SERVER_SHUTDOWN: _DisconnectReason.ValueType # 3 - PARTICIPANT_REMOVED: _DisconnectReason.ValueType # 4 - ROOM_DELETED: _DisconnectReason.ValueType # 5 - STATE_MISMATCH: _DisconnectReason.ValueType # 6 - JOIN_FAILURE: _DisconnectReason.ValueType # 7 - -class DisconnectReason(_DisconnectReason, metaclass=_DisconnectReasonEnumTypeWrapper): ... - -UNKNOWN_REASON: DisconnectReason.ValueType # 0 -CLIENT_INITIATED: DisconnectReason.ValueType # 1 -DUPLICATE_IDENTITY: DisconnectReason.ValueType # 2 -SERVER_SHUTDOWN: DisconnectReason.ValueType # 3 -PARTICIPANT_REMOVED: DisconnectReason.ValueType # 4 -ROOM_DELETED: DisconnectReason.ValueType # 5 -STATE_MISMATCH: DisconnectReason.ValueType # 6 -JOIN_FAILURE: DisconnectReason.ValueType # 7 -global___DisconnectReason = DisconnectReason - -class _ReconnectReason: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType - -class _ReconnectReasonEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ReconnectReason.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - RR_UNKNOWN: _ReconnectReason.ValueType # 0 - RR_SIGNAL_DISCONNECTED: _ReconnectReason.ValueType # 1 - RR_PUBLISHER_FAILED: _ReconnectReason.ValueType # 2 - RR_SUBSCRIBER_FAILED: _ReconnectReason.ValueType # 3 - RR_SWITCH_CANDIDATE: _ReconnectReason.ValueType # 4 - -class ReconnectReason(_ReconnectReason, metaclass=_ReconnectReasonEnumTypeWrapper): ... - -RR_UNKNOWN: ReconnectReason.ValueType # 0 -RR_SIGNAL_DISCONNECTED: ReconnectReason.ValueType # 1 -RR_PUBLISHER_FAILED: ReconnectReason.ValueType # 2 -RR_SUBSCRIBER_FAILED: ReconnectReason.ValueType # 3 -RR_SWITCH_CANDIDATE: ReconnectReason.ValueType # 4 -global___ReconnectReason = ReconnectReason - -class _SubscriptionError: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType - -class _SubscriptionErrorEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_SubscriptionError.ValueType], builtins.type): - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - SE_UNKNOWN: _SubscriptionError.ValueType # 0 - SE_CODEC_UNSUPPORTED: _SubscriptionError.ValueType # 1 - SE_TRACK_NOTFOUND: _SubscriptionError.ValueType # 2 - -class SubscriptionError(_SubscriptionError, metaclass=_SubscriptionErrorEnumTypeWrapper): ... - -SE_UNKNOWN: SubscriptionError.ValueType # 0 -SE_CODEC_UNSUPPORTED: SubscriptionError.ValueType # 1 -SE_TRACK_NOTFOUND: SubscriptionError.ValueType # 2 -global___SubscriptionError = SubscriptionError - -@typing_extensions.final -class Room(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - SID_FIELD_NUMBER: builtins.int - NAME_FIELD_NUMBER: builtins.int - EMPTY_TIMEOUT_FIELD_NUMBER: builtins.int - MAX_PARTICIPANTS_FIELD_NUMBER: builtins.int - CREATION_TIME_FIELD_NUMBER: builtins.int - TURN_PASSWORD_FIELD_NUMBER: builtins.int - ENABLED_CODECS_FIELD_NUMBER: builtins.int - METADATA_FIELD_NUMBER: builtins.int - NUM_PARTICIPANTS_FIELD_NUMBER: builtins.int - NUM_PUBLISHERS_FIELD_NUMBER: builtins.int - ACTIVE_RECORDING_FIELD_NUMBER: builtins.int - sid: builtins.str - name: builtins.str - empty_timeout: builtins.int - max_participants: builtins.int - creation_time: builtins.int - turn_password: builtins.str - @property - def enabled_codecs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Codec]: ... - metadata: builtins.str - num_participants: builtins.int - num_publishers: builtins.int - active_recording: builtins.bool - def __init__( - self, - *, - sid: builtins.str = ..., - name: builtins.str = ..., - empty_timeout: builtins.int = ..., - max_participants: builtins.int = ..., - creation_time: builtins.int = ..., - turn_password: builtins.str = ..., - enabled_codecs: collections.abc.Iterable[global___Codec] | None = ..., - metadata: builtins.str = ..., - num_participants: builtins.int = ..., - num_publishers: builtins.int = ..., - active_recording: builtins.bool = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["active_recording", b"active_recording", "creation_time", b"creation_time", "empty_timeout", b"empty_timeout", "enabled_codecs", b"enabled_codecs", "max_participants", b"max_participants", "metadata", b"metadata", "name", b"name", "num_participants", b"num_participants", "num_publishers", b"num_publishers", "sid", b"sid", "turn_password", b"turn_password"]) -> None: ... - -global___Room = Room - -@typing_extensions.final -class Codec(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - MIME_FIELD_NUMBER: builtins.int - FMTP_LINE_FIELD_NUMBER: builtins.int - mime: builtins.str - fmtp_line: builtins.str - def __init__( - self, - *, - mime: builtins.str = ..., - fmtp_line: builtins.str = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["fmtp_line", b"fmtp_line", "mime", b"mime"]) -> None: ... - -global___Codec = Codec - -@typing_extensions.final -class PlayoutDelay(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ENABLED_FIELD_NUMBER: builtins.int - MIN_FIELD_NUMBER: builtins.int - MAX_FIELD_NUMBER: builtins.int - enabled: builtins.bool - min: builtins.int - max: builtins.int - def __init__( - self, - *, - enabled: builtins.bool = ..., - min: builtins.int = ..., - max: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["enabled", b"enabled", "max", b"max", "min", b"min"]) -> None: ... - -global___PlayoutDelay = PlayoutDelay - -@typing_extensions.final -class ParticipantPermission(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - CAN_SUBSCRIBE_FIELD_NUMBER: builtins.int - CAN_PUBLISH_FIELD_NUMBER: builtins.int - CAN_PUBLISH_DATA_FIELD_NUMBER: builtins.int - CAN_PUBLISH_SOURCES_FIELD_NUMBER: builtins.int - HIDDEN_FIELD_NUMBER: builtins.int - RECORDER_FIELD_NUMBER: builtins.int - CAN_UPDATE_METADATA_FIELD_NUMBER: builtins.int - can_subscribe: builtins.bool - """allow participant to subscribe to other tracks in the room""" - can_publish: builtins.bool - """allow participant to publish new tracks to room""" - can_publish_data: builtins.bool - """allow participant to publish data""" - @property - def can_publish_sources(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[global___TrackSource.ValueType]: - """sources that are allowed to be published""" - hidden: builtins.bool - """indicates that it's hidden to others""" - recorder: builtins.bool - """indicates it's a recorder instance""" - can_update_metadata: builtins.bool - """indicates that participant can update own metadata""" - def __init__( - self, - *, - can_subscribe: builtins.bool = ..., - can_publish: builtins.bool = ..., - can_publish_data: builtins.bool = ..., - can_publish_sources: collections.abc.Iterable[global___TrackSource.ValueType] | None = ..., - hidden: builtins.bool = ..., - recorder: builtins.bool = ..., - can_update_metadata: builtins.bool = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["can_publish", b"can_publish", "can_publish_data", b"can_publish_data", "can_publish_sources", b"can_publish_sources", "can_subscribe", b"can_subscribe", "can_update_metadata", b"can_update_metadata", "hidden", b"hidden", "recorder", b"recorder"]) -> None: ... - -global___ParticipantPermission = ParticipantPermission - -@typing_extensions.final -class ParticipantInfo(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - class _State: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType - - class _StateEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ParticipantInfo._State.ValueType], builtins.type): # noqa: F821 - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - JOINING: ParticipantInfo._State.ValueType # 0 - """websocket' connected, but not offered yet""" - JOINED: ParticipantInfo._State.ValueType # 1 - """server received client offer""" - ACTIVE: ParticipantInfo._State.ValueType # 2 - """ICE connectivity established""" - DISCONNECTED: ParticipantInfo._State.ValueType # 3 - """WS disconnected""" - - class State(_State, metaclass=_StateEnumTypeWrapper): ... - JOINING: ParticipantInfo.State.ValueType # 0 - """websocket' connected, but not offered yet""" - JOINED: ParticipantInfo.State.ValueType # 1 - """server received client offer""" - ACTIVE: ParticipantInfo.State.ValueType # 2 - """ICE connectivity established""" - DISCONNECTED: ParticipantInfo.State.ValueType # 3 - """WS disconnected""" - - SID_FIELD_NUMBER: builtins.int - IDENTITY_FIELD_NUMBER: builtins.int - STATE_FIELD_NUMBER: builtins.int - TRACKS_FIELD_NUMBER: builtins.int - METADATA_FIELD_NUMBER: builtins.int - JOINED_AT_FIELD_NUMBER: builtins.int - NAME_FIELD_NUMBER: builtins.int - VERSION_FIELD_NUMBER: builtins.int - PERMISSION_FIELD_NUMBER: builtins.int - REGION_FIELD_NUMBER: builtins.int - IS_PUBLISHER_FIELD_NUMBER: builtins.int - sid: builtins.str - identity: builtins.str - state: global___ParticipantInfo.State.ValueType - @property - def tracks(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___TrackInfo]: ... - metadata: builtins.str - joined_at: builtins.int - """timestamp when participant joined room, in seconds""" - name: builtins.str - version: builtins.int - @property - def permission(self) -> global___ParticipantPermission: ... - region: builtins.str - is_publisher: builtins.bool - """indicates the participant has an active publisher connection - and can publish to the server - """ - def __init__( - self, - *, - sid: builtins.str = ..., - identity: builtins.str = ..., - state: global___ParticipantInfo.State.ValueType = ..., - tracks: collections.abc.Iterable[global___TrackInfo] | None = ..., - metadata: builtins.str = ..., - joined_at: builtins.int = ..., - name: builtins.str = ..., - version: builtins.int = ..., - permission: global___ParticipantPermission | None = ..., - region: builtins.str = ..., - is_publisher: builtins.bool = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["permission", b"permission"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["identity", b"identity", "is_publisher", b"is_publisher", "joined_at", b"joined_at", "metadata", b"metadata", "name", b"name", "permission", b"permission", "region", b"region", "sid", b"sid", "state", b"state", "tracks", b"tracks", "version", b"version"]) -> None: ... - -global___ParticipantInfo = ParticipantInfo - -@typing_extensions.final -class Encryption(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - class _Type: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType - - class _TypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Encryption._Type.ValueType], builtins.type): # noqa: F821 - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - NONE: Encryption._Type.ValueType # 0 - GCM: Encryption._Type.ValueType # 1 - CUSTOM: Encryption._Type.ValueType # 2 - - class Type(_Type, metaclass=_TypeEnumTypeWrapper): ... - NONE: Encryption.Type.ValueType # 0 - GCM: Encryption.Type.ValueType # 1 - CUSTOM: Encryption.Type.ValueType # 2 - - def __init__( - self, - ) -> None: ... - -global___Encryption = Encryption - -@typing_extensions.final -class SimulcastCodecInfo(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - MIME_TYPE_FIELD_NUMBER: builtins.int - MID_FIELD_NUMBER: builtins.int - CID_FIELD_NUMBER: builtins.int - LAYERS_FIELD_NUMBER: builtins.int - mime_type: builtins.str - mid: builtins.str - cid: builtins.str - @property - def layers(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___VideoLayer]: ... - def __init__( - self, - *, - mime_type: builtins.str = ..., - mid: builtins.str = ..., - cid: builtins.str = ..., - layers: collections.abc.Iterable[global___VideoLayer] | None = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["cid", b"cid", "layers", b"layers", "mid", b"mid", "mime_type", b"mime_type"]) -> None: ... - -global___SimulcastCodecInfo = SimulcastCodecInfo - -@typing_extensions.final -class TrackInfo(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - SID_FIELD_NUMBER: builtins.int - TYPE_FIELD_NUMBER: builtins.int - NAME_FIELD_NUMBER: builtins.int - MUTED_FIELD_NUMBER: builtins.int - WIDTH_FIELD_NUMBER: builtins.int - HEIGHT_FIELD_NUMBER: builtins.int - SIMULCAST_FIELD_NUMBER: builtins.int - DISABLE_DTX_FIELD_NUMBER: builtins.int - SOURCE_FIELD_NUMBER: builtins.int - LAYERS_FIELD_NUMBER: builtins.int - MIME_TYPE_FIELD_NUMBER: builtins.int - MID_FIELD_NUMBER: builtins.int - CODECS_FIELD_NUMBER: builtins.int - STEREO_FIELD_NUMBER: builtins.int - DISABLE_RED_FIELD_NUMBER: builtins.int - ENCRYPTION_FIELD_NUMBER: builtins.int - STREAM_FIELD_NUMBER: builtins.int - sid: builtins.str - type: global___TrackType.ValueType - name: builtins.str - muted: builtins.bool - width: builtins.int - """original width of video (unset for audio) - clients may receive a lower resolution version with simulcast - """ - height: builtins.int - """original height of video (unset for audio)""" - simulcast: builtins.bool - """true if track is simulcasted""" - disable_dtx: builtins.bool - """true if DTX (Discontinuous Transmission) is disabled for audio""" - source: global___TrackSource.ValueType - """source of media""" - @property - def layers(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___VideoLayer]: ... - mime_type: builtins.str - """mime type of codec""" - mid: builtins.str - @property - def codecs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SimulcastCodecInfo]: ... - stereo: builtins.bool - disable_red: builtins.bool - """true if RED (Redundant Encoding) is disabled for audio""" - encryption: global___Encryption.Type.ValueType - stream: builtins.str - def __init__( - self, - *, - sid: builtins.str = ..., - type: global___TrackType.ValueType = ..., - name: builtins.str = ..., - muted: builtins.bool = ..., - width: builtins.int = ..., - height: builtins.int = ..., - simulcast: builtins.bool = ..., - disable_dtx: builtins.bool = ..., - source: global___TrackSource.ValueType = ..., - layers: collections.abc.Iterable[global___VideoLayer] | None = ..., - mime_type: builtins.str = ..., - mid: builtins.str = ..., - codecs: collections.abc.Iterable[global___SimulcastCodecInfo] | None = ..., - stereo: builtins.bool = ..., - disable_red: builtins.bool = ..., - encryption: global___Encryption.Type.ValueType = ..., - stream: builtins.str = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["codecs", b"codecs", "disable_dtx", b"disable_dtx", "disable_red", b"disable_red", "encryption", b"encryption", "height", b"height", "layers", b"layers", "mid", b"mid", "mime_type", b"mime_type", "muted", b"muted", "name", b"name", "sid", b"sid", "simulcast", b"simulcast", "source", b"source", "stereo", b"stereo", "stream", b"stream", "type", b"type", "width", b"width"]) -> None: ... - -global___TrackInfo = TrackInfo - -@typing_extensions.final -class VideoLayer(google.protobuf.message.Message): - """provide information about available spatial layers""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - QUALITY_FIELD_NUMBER: builtins.int - WIDTH_FIELD_NUMBER: builtins.int - HEIGHT_FIELD_NUMBER: builtins.int - BITRATE_FIELD_NUMBER: builtins.int - SSRC_FIELD_NUMBER: builtins.int - quality: global___VideoQuality.ValueType - """for tracks with a single layer, this should be HIGH""" - width: builtins.int - height: builtins.int - bitrate: builtins.int - """target bitrate in bit per second (bps), server will measure actual""" - ssrc: builtins.int - def __init__( - self, - *, - quality: global___VideoQuality.ValueType = ..., - width: builtins.int = ..., - height: builtins.int = ..., - bitrate: builtins.int = ..., - ssrc: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["bitrate", b"bitrate", "height", b"height", "quality", b"quality", "ssrc", b"ssrc", "width", b"width"]) -> None: ... - -global___VideoLayer = VideoLayer - -@typing_extensions.final -class DataPacket(google.protobuf.message.Message): - """new DataPacket API""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - class _Kind: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType - - class _KindEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[DataPacket._Kind.ValueType], builtins.type): # noqa: F821 - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - RELIABLE: DataPacket._Kind.ValueType # 0 - LOSSY: DataPacket._Kind.ValueType # 1 - - class Kind(_Kind, metaclass=_KindEnumTypeWrapper): ... - RELIABLE: DataPacket.Kind.ValueType # 0 - LOSSY: DataPacket.Kind.ValueType # 1 - - KIND_FIELD_NUMBER: builtins.int - USER_FIELD_NUMBER: builtins.int - SPEAKER_FIELD_NUMBER: builtins.int - kind: global___DataPacket.Kind.ValueType - @property - def user(self) -> global___UserPacket: ... - @property - def speaker(self) -> global___ActiveSpeakerUpdate: ... - def __init__( - self, - *, - kind: global___DataPacket.Kind.ValueType = ..., - user: global___UserPacket | None = ..., - speaker: global___ActiveSpeakerUpdate | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["speaker", b"speaker", "user", b"user", "value", b"value"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["kind", b"kind", "speaker", b"speaker", "user", b"user", "value", b"value"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["value", b"value"]) -> typing_extensions.Literal["user", "speaker"] | None: ... - -global___DataPacket = DataPacket - -@typing_extensions.final -class ActiveSpeakerUpdate(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - SPEAKERS_FIELD_NUMBER: builtins.int - @property - def speakers(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SpeakerInfo]: ... - def __init__( - self, - *, - speakers: collections.abc.Iterable[global___SpeakerInfo] | None = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["speakers", b"speakers"]) -> None: ... - -global___ActiveSpeakerUpdate = ActiveSpeakerUpdate - -@typing_extensions.final -class SpeakerInfo(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - SID_FIELD_NUMBER: builtins.int - LEVEL_FIELD_NUMBER: builtins.int - ACTIVE_FIELD_NUMBER: builtins.int - sid: builtins.str - level: builtins.float - """audio level, 0-1.0, 1 is loudest""" - active: builtins.bool - """true if speaker is currently active""" - def __init__( - self, - *, - sid: builtins.str = ..., - level: builtins.float = ..., - active: builtins.bool = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["active", b"active", "level", b"level", "sid", b"sid"]) -> None: ... - -global___SpeakerInfo = SpeakerInfo - -@typing_extensions.final -class UserPacket(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PARTICIPANT_SID_FIELD_NUMBER: builtins.int - PARTICIPANT_IDENTITY_FIELD_NUMBER: builtins.int - PAYLOAD_FIELD_NUMBER: builtins.int - DESTINATION_SIDS_FIELD_NUMBER: builtins.int - DESTINATION_IDENTITIES_FIELD_NUMBER: builtins.int - TOPIC_FIELD_NUMBER: builtins.int - participant_sid: builtins.str - """participant ID of user that sent the message""" - participant_identity: builtins.str - payload: builtins.bytes - """user defined payload""" - @property - def destination_sids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: - """the ID of the participants who will receive the message (sent to all by default)""" - @property - def destination_identities(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: - """identities of participants who will receive the message (sent to all by default)""" - topic: builtins.str - """topic under which the message was published""" - def __init__( - self, - *, - participant_sid: builtins.str = ..., - participant_identity: builtins.str = ..., - payload: builtins.bytes = ..., - destination_sids: collections.abc.Iterable[builtins.str] | None = ..., - destination_identities: collections.abc.Iterable[builtins.str] | None = ..., - topic: builtins.str | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["_topic", b"_topic", "topic", b"topic"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["_topic", b"_topic", "destination_identities", b"destination_identities", "destination_sids", b"destination_sids", "participant_identity", b"participant_identity", "participant_sid", b"participant_sid", "payload", b"payload", "topic", b"topic"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["_topic", b"_topic"]) -> typing_extensions.Literal["topic"] | None: ... - -global___UserPacket = UserPacket - -@typing_extensions.final -class ParticipantTracks(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PARTICIPANT_SID_FIELD_NUMBER: builtins.int - TRACK_SIDS_FIELD_NUMBER: builtins.int - participant_sid: builtins.str - """participant ID of participant to whom the tracks belong""" - @property - def track_sids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... - def __init__( - self, - *, - participant_sid: builtins.str = ..., - track_sids: collections.abc.Iterable[builtins.str] | None = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["participant_sid", b"participant_sid", "track_sids", b"track_sids"]) -> None: ... - -global___ParticipantTracks = ParticipantTracks - -@typing_extensions.final -class ServerInfo(google.protobuf.message.Message): - """details about the server""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - class _Edition: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType - - class _EditionEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ServerInfo._Edition.ValueType], builtins.type): # noqa: F821 - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - Standard: ServerInfo._Edition.ValueType # 0 - Cloud: ServerInfo._Edition.ValueType # 1 - - class Edition(_Edition, metaclass=_EditionEnumTypeWrapper): ... - Standard: ServerInfo.Edition.ValueType # 0 - Cloud: ServerInfo.Edition.ValueType # 1 - - EDITION_FIELD_NUMBER: builtins.int - VERSION_FIELD_NUMBER: builtins.int - PROTOCOL_FIELD_NUMBER: builtins.int - REGION_FIELD_NUMBER: builtins.int - NODE_ID_FIELD_NUMBER: builtins.int - DEBUG_INFO_FIELD_NUMBER: builtins.int - edition: global___ServerInfo.Edition.ValueType - version: builtins.str - protocol: builtins.int - region: builtins.str - node_id: builtins.str - debug_info: builtins.str - """additional debugging information. sent only if server is in development mode""" - def __init__( - self, - *, - edition: global___ServerInfo.Edition.ValueType = ..., - version: builtins.str = ..., - protocol: builtins.int = ..., - region: builtins.str = ..., - node_id: builtins.str = ..., - debug_info: builtins.str = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["debug_info", b"debug_info", "edition", b"edition", "node_id", b"node_id", "protocol", b"protocol", "region", b"region", "version", b"version"]) -> None: ... - -global___ServerInfo = ServerInfo - -@typing_extensions.final -class ClientInfo(google.protobuf.message.Message): - """details about the client""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - class _SDK: - ValueType = typing.NewType("ValueType", builtins.int) - V: typing_extensions.TypeAlias = ValueType - - class _SDKEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ClientInfo._SDK.ValueType], builtins.type): # noqa: F821 - DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor - UNKNOWN: ClientInfo._SDK.ValueType # 0 - JS: ClientInfo._SDK.ValueType # 1 - SWIFT: ClientInfo._SDK.ValueType # 2 - ANDROID: ClientInfo._SDK.ValueType # 3 - FLUTTER: ClientInfo._SDK.ValueType # 4 - GO: ClientInfo._SDK.ValueType # 5 - UNITY: ClientInfo._SDK.ValueType # 6 - REACT_NATIVE: ClientInfo._SDK.ValueType # 7 - RUST: ClientInfo._SDK.ValueType # 8 - PYTHON: ClientInfo._SDK.ValueType # 9 - CPP: ClientInfo._SDK.ValueType # 10 - - class SDK(_SDK, metaclass=_SDKEnumTypeWrapper): ... - UNKNOWN: ClientInfo.SDK.ValueType # 0 - JS: ClientInfo.SDK.ValueType # 1 - SWIFT: ClientInfo.SDK.ValueType # 2 - ANDROID: ClientInfo.SDK.ValueType # 3 - FLUTTER: ClientInfo.SDK.ValueType # 4 - GO: ClientInfo.SDK.ValueType # 5 - UNITY: ClientInfo.SDK.ValueType # 6 - REACT_NATIVE: ClientInfo.SDK.ValueType # 7 - RUST: ClientInfo.SDK.ValueType # 8 - PYTHON: ClientInfo.SDK.ValueType # 9 - CPP: ClientInfo.SDK.ValueType # 10 - - SDK_FIELD_NUMBER: builtins.int - VERSION_FIELD_NUMBER: builtins.int - PROTOCOL_FIELD_NUMBER: builtins.int - OS_FIELD_NUMBER: builtins.int - OS_VERSION_FIELD_NUMBER: builtins.int - DEVICE_MODEL_FIELD_NUMBER: builtins.int - BROWSER_FIELD_NUMBER: builtins.int - BROWSER_VERSION_FIELD_NUMBER: builtins.int - ADDRESS_FIELD_NUMBER: builtins.int - NETWORK_FIELD_NUMBER: builtins.int - sdk: global___ClientInfo.SDK.ValueType - version: builtins.str - protocol: builtins.int - os: builtins.str - os_version: builtins.str - device_model: builtins.str - browser: builtins.str - browser_version: builtins.str - address: builtins.str - network: builtins.str - """wifi, wired, cellular, vpn, empty if not known""" - def __init__( - self, - *, - sdk: global___ClientInfo.SDK.ValueType = ..., - version: builtins.str = ..., - protocol: builtins.int = ..., - os: builtins.str = ..., - os_version: builtins.str = ..., - device_model: builtins.str = ..., - browser: builtins.str = ..., - browser_version: builtins.str = ..., - address: builtins.str = ..., - network: builtins.str = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["address", b"address", "browser", b"browser", "browser_version", b"browser_version", "device_model", b"device_model", "network", b"network", "os", b"os", "os_version", b"os_version", "protocol", b"protocol", "sdk", b"sdk", "version", b"version"]) -> None: ... - -global___ClientInfo = ClientInfo - -@typing_extensions.final -class ClientConfiguration(google.protobuf.message.Message): - """server provided client configuration""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - VIDEO_FIELD_NUMBER: builtins.int - SCREEN_FIELD_NUMBER: builtins.int - RESUME_CONNECTION_FIELD_NUMBER: builtins.int - DISABLED_CODECS_FIELD_NUMBER: builtins.int - FORCE_RELAY_FIELD_NUMBER: builtins.int - @property - def video(self) -> global___VideoConfiguration: ... - @property - def screen(self) -> global___VideoConfiguration: ... - resume_connection: global___ClientConfigSetting.ValueType - @property - def disabled_codecs(self) -> global___DisabledCodecs: ... - force_relay: global___ClientConfigSetting.ValueType - def __init__( - self, - *, - video: global___VideoConfiguration | None = ..., - screen: global___VideoConfiguration | None = ..., - resume_connection: global___ClientConfigSetting.ValueType = ..., - disabled_codecs: global___DisabledCodecs | None = ..., - force_relay: global___ClientConfigSetting.ValueType = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["disabled_codecs", b"disabled_codecs", "screen", b"screen", "video", b"video"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["disabled_codecs", b"disabled_codecs", "force_relay", b"force_relay", "resume_connection", b"resume_connection", "screen", b"screen", "video", b"video"]) -> None: ... - -global___ClientConfiguration = ClientConfiguration - -@typing_extensions.final -class VideoConfiguration(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - HARDWARE_ENCODER_FIELD_NUMBER: builtins.int - hardware_encoder: global___ClientConfigSetting.ValueType - def __init__( - self, - *, - hardware_encoder: global___ClientConfigSetting.ValueType = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["hardware_encoder", b"hardware_encoder"]) -> None: ... - -global___VideoConfiguration = VideoConfiguration - -@typing_extensions.final -class DisabledCodecs(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - CODECS_FIELD_NUMBER: builtins.int - PUBLISH_FIELD_NUMBER: builtins.int - @property - def codecs(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Codec]: - """disabled for both publish and subscribe""" - @property - def publish(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Codec]: - """only disable for publish""" - def __init__( - self, - *, - codecs: collections.abc.Iterable[global___Codec] | None = ..., - publish: collections.abc.Iterable[global___Codec] | None = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["codecs", b"codecs", "publish", b"publish"]) -> None: ... - -global___DisabledCodecs = DisabledCodecs - -@typing_extensions.final -class RTPDrift(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - START_TIME_FIELD_NUMBER: builtins.int - END_TIME_FIELD_NUMBER: builtins.int - DURATION_FIELD_NUMBER: builtins.int - START_TIMESTAMP_FIELD_NUMBER: builtins.int - END_TIMESTAMP_FIELD_NUMBER: builtins.int - RTP_CLOCK_TICKS_FIELD_NUMBER: builtins.int - DRIFT_SAMPLES_FIELD_NUMBER: builtins.int - DRIFT_MS_FIELD_NUMBER: builtins.int - CLOCK_RATE_FIELD_NUMBER: builtins.int - @property - def start_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - @property - def end_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - duration: builtins.float - start_timestamp: builtins.int - end_timestamp: builtins.int - rtp_clock_ticks: builtins.int - drift_samples: builtins.int - drift_ms: builtins.float - clock_rate: builtins.float - def __init__( - self, - *, - start_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., - end_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., - duration: builtins.float = ..., - start_timestamp: builtins.int = ..., - end_timestamp: builtins.int = ..., - rtp_clock_ticks: builtins.int = ..., - drift_samples: builtins.int = ..., - drift_ms: builtins.float = ..., - clock_rate: builtins.float = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["end_time", b"end_time", "start_time", b"start_time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["clock_rate", b"clock_rate", "drift_ms", b"drift_ms", "drift_samples", b"drift_samples", "duration", b"duration", "end_time", b"end_time", "end_timestamp", b"end_timestamp", "rtp_clock_ticks", b"rtp_clock_ticks", "start_time", b"start_time", "start_timestamp", b"start_timestamp"]) -> None: ... - -global___RTPDrift = RTPDrift - -@typing_extensions.final -class RTPStats(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - @typing_extensions.final - class GapHistogramEntry(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - KEY_FIELD_NUMBER: builtins.int - VALUE_FIELD_NUMBER: builtins.int - key: builtins.int - value: builtins.int - def __init__( - self, - *, - key: builtins.int = ..., - value: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["key", b"key", "value", b"value"]) -> None: ... - - START_TIME_FIELD_NUMBER: builtins.int - END_TIME_FIELD_NUMBER: builtins.int - DURATION_FIELD_NUMBER: builtins.int - PACKETS_FIELD_NUMBER: builtins.int - PACKET_RATE_FIELD_NUMBER: builtins.int - BYTES_FIELD_NUMBER: builtins.int - HEADER_BYTES_FIELD_NUMBER: builtins.int - BITRATE_FIELD_NUMBER: builtins.int - PACKETS_LOST_FIELD_NUMBER: builtins.int - PACKET_LOSS_RATE_FIELD_NUMBER: builtins.int - PACKET_LOSS_PERCENTAGE_FIELD_NUMBER: builtins.int - PACKETS_DUPLICATE_FIELD_NUMBER: builtins.int - PACKET_DUPLICATE_RATE_FIELD_NUMBER: builtins.int - BYTES_DUPLICATE_FIELD_NUMBER: builtins.int - HEADER_BYTES_DUPLICATE_FIELD_NUMBER: builtins.int - BITRATE_DUPLICATE_FIELD_NUMBER: builtins.int - PACKETS_PADDING_FIELD_NUMBER: builtins.int - PACKET_PADDING_RATE_FIELD_NUMBER: builtins.int - BYTES_PADDING_FIELD_NUMBER: builtins.int - HEADER_BYTES_PADDING_FIELD_NUMBER: builtins.int - BITRATE_PADDING_FIELD_NUMBER: builtins.int - PACKETS_OUT_OF_ORDER_FIELD_NUMBER: builtins.int - FRAMES_FIELD_NUMBER: builtins.int - FRAME_RATE_FIELD_NUMBER: builtins.int - JITTER_CURRENT_FIELD_NUMBER: builtins.int - JITTER_MAX_FIELD_NUMBER: builtins.int - GAP_HISTOGRAM_FIELD_NUMBER: builtins.int - NACKS_FIELD_NUMBER: builtins.int - NACK_ACKS_FIELD_NUMBER: builtins.int - NACK_MISSES_FIELD_NUMBER: builtins.int - NACK_REPEATED_FIELD_NUMBER: builtins.int - PLIS_FIELD_NUMBER: builtins.int - LAST_PLI_FIELD_NUMBER: builtins.int - FIRS_FIELD_NUMBER: builtins.int - LAST_FIR_FIELD_NUMBER: builtins.int - RTT_CURRENT_FIELD_NUMBER: builtins.int - RTT_MAX_FIELD_NUMBER: builtins.int - KEY_FRAMES_FIELD_NUMBER: builtins.int - LAST_KEY_FRAME_FIELD_NUMBER: builtins.int - LAYER_LOCK_PLIS_FIELD_NUMBER: builtins.int - LAST_LAYER_LOCK_PLI_FIELD_NUMBER: builtins.int - PACKET_DRIFT_FIELD_NUMBER: builtins.int - REPORT_DRIFT_FIELD_NUMBER: builtins.int - @property - def start_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - @property - def end_time(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - duration: builtins.float - packets: builtins.int - packet_rate: builtins.float - bytes: builtins.int - header_bytes: builtins.int - bitrate: builtins.float - packets_lost: builtins.int - packet_loss_rate: builtins.float - packet_loss_percentage: builtins.float - packets_duplicate: builtins.int - packet_duplicate_rate: builtins.float - bytes_duplicate: builtins.int - header_bytes_duplicate: builtins.int - bitrate_duplicate: builtins.float - packets_padding: builtins.int - packet_padding_rate: builtins.float - bytes_padding: builtins.int - header_bytes_padding: builtins.int - bitrate_padding: builtins.float - packets_out_of_order: builtins.int - frames: builtins.int - frame_rate: builtins.float - jitter_current: builtins.float - jitter_max: builtins.float - @property - def gap_histogram(self) -> google.protobuf.internal.containers.ScalarMap[builtins.int, builtins.int]: ... - nacks: builtins.int - nack_acks: builtins.int - nack_misses: builtins.int - nack_repeated: builtins.int - plis: builtins.int - @property - def last_pli(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - firs: builtins.int - @property - def last_fir(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - rtt_current: builtins.int - rtt_max: builtins.int - key_frames: builtins.int - @property - def last_key_frame(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - layer_lock_plis: builtins.int - @property - def last_layer_lock_pli(self) -> google.protobuf.timestamp_pb2.Timestamp: ... - @property - def packet_drift(self) -> global___RTPDrift: ... - @property - def report_drift(self) -> global___RTPDrift: - """NEXT_ID: 46""" - def __init__( - self, - *, - start_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., - end_time: google.protobuf.timestamp_pb2.Timestamp | None = ..., - duration: builtins.float = ..., - packets: builtins.int = ..., - packet_rate: builtins.float = ..., - bytes: builtins.int = ..., - header_bytes: builtins.int = ..., - bitrate: builtins.float = ..., - packets_lost: builtins.int = ..., - packet_loss_rate: builtins.float = ..., - packet_loss_percentage: builtins.float = ..., - packets_duplicate: builtins.int = ..., - packet_duplicate_rate: builtins.float = ..., - bytes_duplicate: builtins.int = ..., - header_bytes_duplicate: builtins.int = ..., - bitrate_duplicate: builtins.float = ..., - packets_padding: builtins.int = ..., - packet_padding_rate: builtins.float = ..., - bytes_padding: builtins.int = ..., - header_bytes_padding: builtins.int = ..., - bitrate_padding: builtins.float = ..., - packets_out_of_order: builtins.int = ..., - frames: builtins.int = ..., - frame_rate: builtins.float = ..., - jitter_current: builtins.float = ..., - jitter_max: builtins.float = ..., - gap_histogram: collections.abc.Mapping[builtins.int, builtins.int] | None = ..., - nacks: builtins.int = ..., - nack_acks: builtins.int = ..., - nack_misses: builtins.int = ..., - nack_repeated: builtins.int = ..., - plis: builtins.int = ..., - last_pli: google.protobuf.timestamp_pb2.Timestamp | None = ..., - firs: builtins.int = ..., - last_fir: google.protobuf.timestamp_pb2.Timestamp | None = ..., - rtt_current: builtins.int = ..., - rtt_max: builtins.int = ..., - key_frames: builtins.int = ..., - last_key_frame: google.protobuf.timestamp_pb2.Timestamp | None = ..., - layer_lock_plis: builtins.int = ..., - last_layer_lock_pli: google.protobuf.timestamp_pb2.Timestamp | None = ..., - packet_drift: global___RTPDrift | None = ..., - report_drift: global___RTPDrift | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["end_time", b"end_time", "last_fir", b"last_fir", "last_key_frame", b"last_key_frame", "last_layer_lock_pli", b"last_layer_lock_pli", "last_pli", b"last_pli", "packet_drift", b"packet_drift", "report_drift", b"report_drift", "start_time", b"start_time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["bitrate", b"bitrate", "bitrate_duplicate", b"bitrate_duplicate", "bitrate_padding", b"bitrate_padding", "bytes", b"bytes", "bytes_duplicate", b"bytes_duplicate", "bytes_padding", b"bytes_padding", "duration", b"duration", "end_time", b"end_time", "firs", b"firs", "frame_rate", b"frame_rate", "frames", b"frames", "gap_histogram", b"gap_histogram", "header_bytes", b"header_bytes", "header_bytes_duplicate", b"header_bytes_duplicate", "header_bytes_padding", b"header_bytes_padding", "jitter_current", b"jitter_current", "jitter_max", b"jitter_max", "key_frames", b"key_frames", "last_fir", b"last_fir", "last_key_frame", b"last_key_frame", "last_layer_lock_pli", b"last_layer_lock_pli", "last_pli", b"last_pli", "layer_lock_plis", b"layer_lock_plis", "nack_acks", b"nack_acks", "nack_misses", b"nack_misses", "nack_repeated", b"nack_repeated", "nacks", b"nacks", "packet_drift", b"packet_drift", "packet_duplicate_rate", b"packet_duplicate_rate", "packet_loss_percentage", b"packet_loss_percentage", "packet_loss_rate", b"packet_loss_rate", "packet_padding_rate", b"packet_padding_rate", "packet_rate", b"packet_rate", "packets", b"packets", "packets_duplicate", b"packets_duplicate", "packets_lost", b"packets_lost", "packets_out_of_order", b"packets_out_of_order", "packets_padding", b"packets_padding", "plis", b"plis", "report_drift", b"report_drift", "rtt_current", b"rtt_current", "rtt_max", b"rtt_max", "start_time", b"start_time"]) -> None: ... - -global___RTPStats = RTPStats - -@typing_extensions.final -class TimedVersion(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - UNIX_MICRO_FIELD_NUMBER: builtins.int - TICKS_FIELD_NUMBER: builtins.int - unix_micro: builtins.int - ticks: builtins.int - def __init__( - self, - *, - unix_micro: builtins.int = ..., - ticks: builtins.int = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["ticks", b"ticks", "unix_micro", b"unix_micro"]) -> None: ... - -global___TimedVersion = TimedVersion diff --git a/livekit-api/livekit/api/_proto/livekit_room_pb2.py b/livekit-api/livekit/api/_proto/livekit_room_pb2.py deleted file mode 100644 index f47fa6a9..00000000 --- a/livekit-api/livekit/api/_proto/livekit_room_pb2.py +++ /dev/null @@ -1,67 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: livekit_room.proto -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import livekit_models_pb2 as livekit__models__pb2 -from . import livekit_egress_pb2 as livekit__egress__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x12livekit_room.proto\x12\x07livekit\x1a\x14livekit_models.proto\x1a\x14livekit_egress.proto\"\xe6\x01\n\x11\x43reateRoomRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x15\n\rempty_timeout\x18\x02 \x01(\r\x12\x18\n\x10max_participants\x18\x03 \x01(\r\x12\x0f\n\x07node_id\x18\x04 \x01(\t\x12\x10\n\x08metadata\x18\x05 \x01(\t\x12#\n\x06\x65gress\x18\x06 \x01(\x0b\x32\x13.livekit.RoomEgress\x12\x19\n\x11min_playout_delay\x18\x07 \x01(\r\x12\x19\n\x11max_playout_delay\x18\x08 \x01(\r\x12\x14\n\x0csync_streams\x18\t \x01(\x08\"\x9e\x01\n\nRoomEgress\x12\x31\n\x04room\x18\x01 \x01(\x0b\x32#.livekit.RoomCompositeEgressRequest\x12\x33\n\x0bparticipant\x18\x03 \x01(\x0b\x32\x1e.livekit.AutoParticipantEgress\x12(\n\x06tracks\x18\x02 \x01(\x0b\x32\x18.livekit.AutoTrackEgress\"!\n\x10ListRoomsRequest\x12\r\n\x05names\x18\x01 \x03(\t\"1\n\x11ListRoomsResponse\x12\x1c\n\x05rooms\x18\x01 \x03(\x0b\x32\r.livekit.Room\"!\n\x11\x44\x65leteRoomRequest\x12\x0c\n\x04room\x18\x01 \x01(\t\"\x14\n\x12\x44\x65leteRoomResponse\"\'\n\x17ListParticipantsRequest\x12\x0c\n\x04room\x18\x01 \x01(\t\"J\n\x18ListParticipantsResponse\x12.\n\x0cparticipants\x18\x01 \x03(\x0b\x32\x18.livekit.ParticipantInfo\"9\n\x17RoomParticipantIdentity\x12\x0c\n\x04room\x18\x01 \x01(\t\x12\x10\n\x08identity\x18\x02 \x01(\t\"\x1b\n\x19RemoveParticipantResponse\"X\n\x14MuteRoomTrackRequest\x12\x0c\n\x04room\x18\x01 \x01(\t\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x11\n\ttrack_sid\x18\x03 \x01(\t\x12\r\n\x05muted\x18\x04 \x01(\x08\":\n\x15MuteRoomTrackResponse\x12!\n\x05track\x18\x01 \x01(\x0b\x32\x12.livekit.TrackInfo\"\x8e\x01\n\x18UpdateParticipantRequest\x12\x0c\n\x04room\x18\x01 \x01(\t\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x10\n\x08metadata\x18\x03 \x01(\t\x12\x32\n\npermission\x18\x04 \x01(\x0b\x32\x1e.livekit.ParticipantPermission\x12\x0c\n\x04name\x18\x05 \x01(\t\"\x9b\x01\n\x1aUpdateSubscriptionsRequest\x12\x0c\n\x04room\x18\x01 \x01(\t\x12\x10\n\x08identity\x18\x02 \x01(\t\x12\x12\n\ntrack_sids\x18\x03 \x03(\t\x12\x11\n\tsubscribe\x18\x04 \x01(\x08\x12\x36\n\x12participant_tracks\x18\x05 \x03(\x0b\x32\x1a.livekit.ParticipantTracks\"\x1d\n\x1bUpdateSubscriptionsResponse\"\xb1\x01\n\x0fSendDataRequest\x12\x0c\n\x04room\x18\x01 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x02 \x01(\x0c\x12&\n\x04kind\x18\x03 \x01(\x0e\x32\x18.livekit.DataPacket.Kind\x12\x1c\n\x10\x64\x65stination_sids\x18\x04 \x03(\tB\x02\x18\x01\x12\x1e\n\x16\x64\x65stination_identities\x18\x06 \x03(\t\x12\x12\n\x05topic\x18\x05 \x01(\tH\x00\x88\x01\x01\x42\x08\n\x06_topic\"\x12\n\x10SendDataResponse\";\n\x19UpdateRoomMetadataRequest\x12\x0c\n\x04room\x18\x01 \x01(\t\x12\x10\n\x08metadata\x18\x02 \x01(\t2\xe6\x06\n\x0bRoomService\x12\x37\n\nCreateRoom\x12\x1a.livekit.CreateRoomRequest\x1a\r.livekit.Room\x12\x42\n\tListRooms\x12\x19.livekit.ListRoomsRequest\x1a\x1a.livekit.ListRoomsResponse\x12\x45\n\nDeleteRoom\x12\x1a.livekit.DeleteRoomRequest\x1a\x1b.livekit.DeleteRoomResponse\x12W\n\x10ListParticipants\x12 .livekit.ListParticipantsRequest\x1a!.livekit.ListParticipantsResponse\x12L\n\x0eGetParticipant\x12 .livekit.RoomParticipantIdentity\x1a\x18.livekit.ParticipantInfo\x12Y\n\x11RemoveParticipant\x12 .livekit.RoomParticipantIdentity\x1a\".livekit.RemoveParticipantResponse\x12S\n\x12MutePublishedTrack\x12\x1d.livekit.MuteRoomTrackRequest\x1a\x1e.livekit.MuteRoomTrackResponse\x12P\n\x11UpdateParticipant\x12!.livekit.UpdateParticipantRequest\x1a\x18.livekit.ParticipantInfo\x12`\n\x13UpdateSubscriptions\x12#.livekit.UpdateSubscriptionsRequest\x1a$.livekit.UpdateSubscriptionsResponse\x12?\n\x08SendData\x12\x18.livekit.SendDataRequest\x1a\x19.livekit.SendDataResponse\x12G\n\x12UpdateRoomMetadata\x12\".livekit.UpdateRoomMetadataRequest\x1a\r.livekit.RoomBFZ#github.com/livekit/protocol/livekit\xaa\x02\rLiveKit.Proto\xea\x02\x0eLiveKit::Protob\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'livekit_room_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'Z#github.com/livekit/protocol/livekit\252\002\rLiveKit.Proto\352\002\016LiveKit::Proto' - _SENDDATAREQUEST.fields_by_name['destination_sids']._options = None - _SENDDATAREQUEST.fields_by_name['destination_sids']._serialized_options = b'\030\001' - _globals['_CREATEROOMREQUEST']._serialized_start=76 - _globals['_CREATEROOMREQUEST']._serialized_end=306 - _globals['_ROOMEGRESS']._serialized_start=309 - _globals['_ROOMEGRESS']._serialized_end=467 - _globals['_LISTROOMSREQUEST']._serialized_start=469 - _globals['_LISTROOMSREQUEST']._serialized_end=502 - _globals['_LISTROOMSRESPONSE']._serialized_start=504 - _globals['_LISTROOMSRESPONSE']._serialized_end=553 - _globals['_DELETEROOMREQUEST']._serialized_start=555 - _globals['_DELETEROOMREQUEST']._serialized_end=588 - _globals['_DELETEROOMRESPONSE']._serialized_start=590 - _globals['_DELETEROOMRESPONSE']._serialized_end=610 - _globals['_LISTPARTICIPANTSREQUEST']._serialized_start=612 - _globals['_LISTPARTICIPANTSREQUEST']._serialized_end=651 - _globals['_LISTPARTICIPANTSRESPONSE']._serialized_start=653 - _globals['_LISTPARTICIPANTSRESPONSE']._serialized_end=727 - _globals['_ROOMPARTICIPANTIDENTITY']._serialized_start=729 - _globals['_ROOMPARTICIPANTIDENTITY']._serialized_end=786 - _globals['_REMOVEPARTICIPANTRESPONSE']._serialized_start=788 - _globals['_REMOVEPARTICIPANTRESPONSE']._serialized_end=815 - _globals['_MUTEROOMTRACKREQUEST']._serialized_start=817 - _globals['_MUTEROOMTRACKREQUEST']._serialized_end=905 - _globals['_MUTEROOMTRACKRESPONSE']._serialized_start=907 - _globals['_MUTEROOMTRACKRESPONSE']._serialized_end=965 - _globals['_UPDATEPARTICIPANTREQUEST']._serialized_start=968 - _globals['_UPDATEPARTICIPANTREQUEST']._serialized_end=1110 - _globals['_UPDATESUBSCRIPTIONSREQUEST']._serialized_start=1113 - _globals['_UPDATESUBSCRIPTIONSREQUEST']._serialized_end=1268 - _globals['_UPDATESUBSCRIPTIONSRESPONSE']._serialized_start=1270 - _globals['_UPDATESUBSCRIPTIONSRESPONSE']._serialized_end=1299 - _globals['_SENDDATAREQUEST']._serialized_start=1302 - _globals['_SENDDATAREQUEST']._serialized_end=1479 - _globals['_SENDDATARESPONSE']._serialized_start=1481 - _globals['_SENDDATARESPONSE']._serialized_end=1499 - _globals['_UPDATEROOMMETADATAREQUEST']._serialized_start=1501 - _globals['_UPDATEROOMMETADATAREQUEST']._serialized_end=1560 - _globals['_ROOMSERVICE']._serialized_start=1563 - _globals['_ROOMSERVICE']._serialized_end=2433 -# @@protoc_insertion_point(module_scope) diff --git a/livekit-api/livekit/api/_proto/livekit_room_pb2.pyi b/livekit-api/livekit/api/_proto/livekit_room_pb2.pyi deleted file mode 100644 index 794e3c96..00000000 --- a/livekit-api/livekit/api/_proto/livekit_room_pb2.pyi +++ /dev/null @@ -1,416 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -Copyright 2023 LiveKit, Inc. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -""" -import builtins -import collections.abc -import google.protobuf.descriptor -import google.protobuf.internal.containers -import google.protobuf.message -from . import livekit_egress_pb2 -from . import livekit_models_pb2 -import sys - -if sys.version_info >= (3, 8): - import typing as typing_extensions -else: - import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor - -@typing_extensions.final -class CreateRoomRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - NAME_FIELD_NUMBER: builtins.int - EMPTY_TIMEOUT_FIELD_NUMBER: builtins.int - MAX_PARTICIPANTS_FIELD_NUMBER: builtins.int - NODE_ID_FIELD_NUMBER: builtins.int - METADATA_FIELD_NUMBER: builtins.int - EGRESS_FIELD_NUMBER: builtins.int - MIN_PLAYOUT_DELAY_FIELD_NUMBER: builtins.int - MAX_PLAYOUT_DELAY_FIELD_NUMBER: builtins.int - SYNC_STREAMS_FIELD_NUMBER: builtins.int - name: builtins.str - """name of the room""" - empty_timeout: builtins.int - """number of seconds to keep the room open if no one joins""" - max_participants: builtins.int - """limit number of participants that can be in a room""" - node_id: builtins.str - """override the node room is allocated to, for debugging""" - metadata: builtins.str - """metadata of room""" - @property - def egress(self) -> global___RoomEgress: - """egress""" - min_playout_delay: builtins.int - """playout delay of subscriber""" - max_playout_delay: builtins.int - sync_streams: builtins.bool - """improves A/V sync when playout_delay set to a value larger than 200ms. It will disables transceiver re-use - so not recommended for rooms with frequent subscription changes - """ - def __init__( - self, - *, - name: builtins.str = ..., - empty_timeout: builtins.int = ..., - max_participants: builtins.int = ..., - node_id: builtins.str = ..., - metadata: builtins.str = ..., - egress: global___RoomEgress | None = ..., - min_playout_delay: builtins.int = ..., - max_playout_delay: builtins.int = ..., - sync_streams: builtins.bool = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["egress", b"egress"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["egress", b"egress", "empty_timeout", b"empty_timeout", "max_participants", b"max_participants", "max_playout_delay", b"max_playout_delay", "metadata", b"metadata", "min_playout_delay", b"min_playout_delay", "name", b"name", "node_id", b"node_id", "sync_streams", b"sync_streams"]) -> None: ... - -global___CreateRoomRequest = CreateRoomRequest - -@typing_extensions.final -class RoomEgress(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ROOM_FIELD_NUMBER: builtins.int - PARTICIPANT_FIELD_NUMBER: builtins.int - TRACKS_FIELD_NUMBER: builtins.int - @property - def room(self) -> livekit_egress_pb2.RoomCompositeEgressRequest: ... - @property - def participant(self) -> livekit_egress_pb2.AutoParticipantEgress: ... - @property - def tracks(self) -> livekit_egress_pb2.AutoTrackEgress: ... - def __init__( - self, - *, - room: livekit_egress_pb2.RoomCompositeEgressRequest | None = ..., - participant: livekit_egress_pb2.AutoParticipantEgress | None = ..., - tracks: livekit_egress_pb2.AutoTrackEgress | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["participant", b"participant", "room", b"room", "tracks", b"tracks"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["participant", b"participant", "room", b"room", "tracks", b"tracks"]) -> None: ... - -global___RoomEgress = RoomEgress - -@typing_extensions.final -class ListRoomsRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - NAMES_FIELD_NUMBER: builtins.int - @property - def names(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: - """when set, will only return rooms with name match""" - def __init__( - self, - *, - names: collections.abc.Iterable[builtins.str] | None = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["names", b"names"]) -> None: ... - -global___ListRoomsRequest = ListRoomsRequest - -@typing_extensions.final -class ListRoomsResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ROOMS_FIELD_NUMBER: builtins.int - @property - def rooms(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[livekit_models_pb2.Room]: ... - def __init__( - self, - *, - rooms: collections.abc.Iterable[livekit_models_pb2.Room] | None = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["rooms", b"rooms"]) -> None: ... - -global___ListRoomsResponse = ListRoomsResponse - -@typing_extensions.final -class DeleteRoomRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ROOM_FIELD_NUMBER: builtins.int - room: builtins.str - """name of the room""" - def __init__( - self, - *, - room: builtins.str = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["room", b"room"]) -> None: ... - -global___DeleteRoomRequest = DeleteRoomRequest - -@typing_extensions.final -class DeleteRoomResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - def __init__( - self, - ) -> None: ... - -global___DeleteRoomResponse = DeleteRoomResponse - -@typing_extensions.final -class ListParticipantsRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ROOM_FIELD_NUMBER: builtins.int - room: builtins.str - """name of the room""" - def __init__( - self, - *, - room: builtins.str = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["room", b"room"]) -> None: ... - -global___ListParticipantsRequest = ListParticipantsRequest - -@typing_extensions.final -class ListParticipantsResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - PARTICIPANTS_FIELD_NUMBER: builtins.int - @property - def participants(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[livekit_models_pb2.ParticipantInfo]: ... - def __init__( - self, - *, - participants: collections.abc.Iterable[livekit_models_pb2.ParticipantInfo] | None = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["participants", b"participants"]) -> None: ... - -global___ListParticipantsResponse = ListParticipantsResponse - -@typing_extensions.final -class RoomParticipantIdentity(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ROOM_FIELD_NUMBER: builtins.int - IDENTITY_FIELD_NUMBER: builtins.int - room: builtins.str - """name of the room""" - identity: builtins.str - """identity of the participant""" - def __init__( - self, - *, - room: builtins.str = ..., - identity: builtins.str = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["identity", b"identity", "room", b"room"]) -> None: ... - -global___RoomParticipantIdentity = RoomParticipantIdentity - -@typing_extensions.final -class RemoveParticipantResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - def __init__( - self, - ) -> None: ... - -global___RemoveParticipantResponse = RemoveParticipantResponse - -@typing_extensions.final -class MuteRoomTrackRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ROOM_FIELD_NUMBER: builtins.int - IDENTITY_FIELD_NUMBER: builtins.int - TRACK_SID_FIELD_NUMBER: builtins.int - MUTED_FIELD_NUMBER: builtins.int - room: builtins.str - """name of the room""" - identity: builtins.str - track_sid: builtins.str - """sid of the track to mute""" - muted: builtins.bool - """set to true to mute, false to unmute""" - def __init__( - self, - *, - room: builtins.str = ..., - identity: builtins.str = ..., - track_sid: builtins.str = ..., - muted: builtins.bool = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["identity", b"identity", "muted", b"muted", "room", b"room", "track_sid", b"track_sid"]) -> None: ... - -global___MuteRoomTrackRequest = MuteRoomTrackRequest - -@typing_extensions.final -class MuteRoomTrackResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - TRACK_FIELD_NUMBER: builtins.int - @property - def track(self) -> livekit_models_pb2.TrackInfo: ... - def __init__( - self, - *, - track: livekit_models_pb2.TrackInfo | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["track", b"track"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["track", b"track"]) -> None: ... - -global___MuteRoomTrackResponse = MuteRoomTrackResponse - -@typing_extensions.final -class UpdateParticipantRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ROOM_FIELD_NUMBER: builtins.int - IDENTITY_FIELD_NUMBER: builtins.int - METADATA_FIELD_NUMBER: builtins.int - PERMISSION_FIELD_NUMBER: builtins.int - NAME_FIELD_NUMBER: builtins.int - room: builtins.str - identity: builtins.str - metadata: builtins.str - """metadata to update. skipping updates if left empty""" - @property - def permission(self) -> livekit_models_pb2.ParticipantPermission: - """set to update the participant's permissions""" - name: builtins.str - """display name to update""" - def __init__( - self, - *, - room: builtins.str = ..., - identity: builtins.str = ..., - metadata: builtins.str = ..., - permission: livekit_models_pb2.ParticipantPermission | None = ..., - name: builtins.str = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["permission", b"permission"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["identity", b"identity", "metadata", b"metadata", "name", b"name", "permission", b"permission", "room", b"room"]) -> None: ... - -global___UpdateParticipantRequest = UpdateParticipantRequest - -@typing_extensions.final -class UpdateSubscriptionsRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ROOM_FIELD_NUMBER: builtins.int - IDENTITY_FIELD_NUMBER: builtins.int - TRACK_SIDS_FIELD_NUMBER: builtins.int - SUBSCRIBE_FIELD_NUMBER: builtins.int - PARTICIPANT_TRACKS_FIELD_NUMBER: builtins.int - room: builtins.str - identity: builtins.str - @property - def track_sids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: - """list of sids of tracks""" - subscribe: builtins.bool - """set to true to subscribe, false to unsubscribe from tracks""" - @property - def participant_tracks(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[livekit_models_pb2.ParticipantTracks]: - """list of participants and their tracks""" - def __init__( - self, - *, - room: builtins.str = ..., - identity: builtins.str = ..., - track_sids: collections.abc.Iterable[builtins.str] | None = ..., - subscribe: builtins.bool = ..., - participant_tracks: collections.abc.Iterable[livekit_models_pb2.ParticipantTracks] | None = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["identity", b"identity", "participant_tracks", b"participant_tracks", "room", b"room", "subscribe", b"subscribe", "track_sids", b"track_sids"]) -> None: ... - -global___UpdateSubscriptionsRequest = UpdateSubscriptionsRequest - -@typing_extensions.final -class UpdateSubscriptionsResponse(google.protobuf.message.Message): - """empty for now""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - def __init__( - self, - ) -> None: ... - -global___UpdateSubscriptionsResponse = UpdateSubscriptionsResponse - -@typing_extensions.final -class SendDataRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ROOM_FIELD_NUMBER: builtins.int - DATA_FIELD_NUMBER: builtins.int - KIND_FIELD_NUMBER: builtins.int - DESTINATION_SIDS_FIELD_NUMBER: builtins.int - DESTINATION_IDENTITIES_FIELD_NUMBER: builtins.int - TOPIC_FIELD_NUMBER: builtins.int - room: builtins.str - data: builtins.bytes - kind: livekit_models_pb2.DataPacket.Kind.ValueType - @property - def destination_sids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: - """mark deprecated""" - @property - def destination_identities(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: - """when set, only forward to these identities""" - topic: builtins.str - def __init__( - self, - *, - room: builtins.str = ..., - data: builtins.bytes = ..., - kind: livekit_models_pb2.DataPacket.Kind.ValueType = ..., - destination_sids: collections.abc.Iterable[builtins.str] | None = ..., - destination_identities: collections.abc.Iterable[builtins.str] | None = ..., - topic: builtins.str | None = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["_topic", b"_topic", "topic", b"topic"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["_topic", b"_topic", "data", b"data", "destination_identities", b"destination_identities", "destination_sids", b"destination_sids", "kind", b"kind", "room", b"room", "topic", b"topic"]) -> None: ... - def WhichOneof(self, oneof_group: typing_extensions.Literal["_topic", b"_topic"]) -> typing_extensions.Literal["topic"] | None: ... - -global___SendDataRequest = SendDataRequest - -@typing_extensions.final -class SendDataResponse(google.protobuf.message.Message): - """""" - - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - def __init__( - self, - ) -> None: ... - -global___SendDataResponse = SendDataResponse - -@typing_extensions.final -class UpdateRoomMetadataRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - ROOM_FIELD_NUMBER: builtins.int - METADATA_FIELD_NUMBER: builtins.int - room: builtins.str - metadata: builtins.str - """metadata to update. skipping updates if left empty""" - def __init__( - self, - *, - room: builtins.str = ..., - metadata: builtins.str = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["metadata", b"metadata", "room", b"room"]) -> None: ... - -global___UpdateRoomMetadataRequest = UpdateRoomMetadataRequest diff --git a/livekit-api/livekit/api/_proto/livekit_webhook_pb2.py b/livekit-api/livekit/api/_proto/livekit_webhook_pb2.py deleted file mode 100644 index 789448dc..00000000 --- a/livekit-api/livekit/api/_proto/livekit_webhook_pb2.py +++ /dev/null @@ -1,30 +0,0 @@ -# -*- coding: utf-8 -*- -# Generated by the protocol buffer compiler. DO NOT EDIT! -# source: livekit_webhook.proto -"""Generated protocol buffer code.""" -from google.protobuf import descriptor as _descriptor -from google.protobuf import descriptor_pool as _descriptor_pool -from google.protobuf import symbol_database as _symbol_database -from google.protobuf.internal import builder as _builder -# @@protoc_insertion_point(imports) - -_sym_db = _symbol_database.Default() - - -from . import livekit_models_pb2 as livekit__models__pb2 -from . import livekit_egress_pb2 as livekit__egress__pb2 -from . import livekit_ingress_pb2 as livekit__ingress__pb2 - - -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x15livekit_webhook.proto\x12\x07livekit\x1a\x14livekit_models.proto\x1a\x14livekit_egress.proto\x1a\x15livekit_ingress.proto\"\x97\x02\n\x0cWebhookEvent\x12\r\n\x05\x65vent\x18\x01 \x01(\t\x12\x1b\n\x04room\x18\x02 \x01(\x0b\x32\r.livekit.Room\x12-\n\x0bparticipant\x18\x03 \x01(\x0b\x32\x18.livekit.ParticipantInfo\x12(\n\x0b\x65gress_info\x18\t \x01(\x0b\x32\x13.livekit.EgressInfo\x12*\n\x0cingress_info\x18\n \x01(\x0b\x32\x14.livekit.IngressInfo\x12!\n\x05track\x18\x08 \x01(\x0b\x32\x12.livekit.TrackInfo\x12\n\n\x02id\x18\x06 \x01(\t\x12\x12\n\ncreated_at\x18\x07 \x01(\x03\x12\x13\n\x0bnum_dropped\x18\x0b \x01(\x05\x42\x46Z#github.com/livekit/protocol/livekit\xaa\x02\rLiveKit.Proto\xea\x02\x0eLiveKit::Protob\x06proto3') - -_globals = globals() -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'livekit_webhook_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - - DESCRIPTOR._options = None - DESCRIPTOR._serialized_options = b'Z#github.com/livekit/protocol/livekit\252\002\rLiveKit.Proto\352\002\016LiveKit::Proto' - _globals['_WEBHOOKEVENT']._serialized_start=102 - _globals['_WEBHOOKEVENT']._serialized_end=381 -# @@protoc_insertion_point(module_scope) diff --git a/livekit-api/livekit/api/_proto/livekit_webhook_pb2.pyi b/livekit-api/livekit/api/_proto/livekit_webhook_pb2.pyi deleted file mode 100644 index 72584e2a..00000000 --- a/livekit-api/livekit/api/_proto/livekit_webhook_pb2.pyi +++ /dev/null @@ -1,86 +0,0 @@ -""" -@generated by mypy-protobuf. Do not edit manually! -isort:skip_file -Copyright 2023 LiveKit, Inc. - -Licensed under the Apache License, Version 2.0 (the "License"); -you may not use this file except in compliance with the License. -You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - -Unless required by applicable law or agreed to in writing, software -distributed under the License is distributed on an "AS IS" BASIS, -WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -See the License for the specific language governing permissions and -limitations under the License. -""" -import builtins -import google.protobuf.descriptor -import google.protobuf.message -from . import livekit_egress_pb2 -from . import livekit_ingress_pb2 -from . import livekit_models_pb2 -import sys - -if sys.version_info >= (3, 8): - import typing as typing_extensions -else: - import typing_extensions - -DESCRIPTOR: google.protobuf.descriptor.FileDescriptor - -@typing_extensions.final -class WebhookEvent(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - - EVENT_FIELD_NUMBER: builtins.int - ROOM_FIELD_NUMBER: builtins.int - PARTICIPANT_FIELD_NUMBER: builtins.int - EGRESS_INFO_FIELD_NUMBER: builtins.int - INGRESS_INFO_FIELD_NUMBER: builtins.int - TRACK_FIELD_NUMBER: builtins.int - ID_FIELD_NUMBER: builtins.int - CREATED_AT_FIELD_NUMBER: builtins.int - NUM_DROPPED_FIELD_NUMBER: builtins.int - event: builtins.str - """one of room_started, room_finished, participant_joined, participant_left, - track_published, track_unpublished, egress_started, egress_updated, egress_ended, - ingress_started, ingress_ended - """ - @property - def room(self) -> livekit_models_pb2.Room: ... - @property - def participant(self) -> livekit_models_pb2.ParticipantInfo: - """set when event is participant_* or track_*""" - @property - def egress_info(self) -> livekit_egress_pb2.EgressInfo: - """set when event is egress_*""" - @property - def ingress_info(self) -> livekit_ingress_pb2.IngressInfo: - """set when event is ingress_*""" - @property - def track(self) -> livekit_models_pb2.TrackInfo: - """set when event is track_*""" - id: builtins.str - """unique event uuid""" - created_at: builtins.int - """timestamp in seconds""" - num_dropped: builtins.int - def __init__( - self, - *, - event: builtins.str = ..., - room: livekit_models_pb2.Room | None = ..., - participant: livekit_models_pb2.ParticipantInfo | None = ..., - egress_info: livekit_egress_pb2.EgressInfo | None = ..., - ingress_info: livekit_ingress_pb2.IngressInfo | None = ..., - track: livekit_models_pb2.TrackInfo | None = ..., - id: builtins.str = ..., - created_at: builtins.int = ..., - num_dropped: builtins.int = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["egress_info", b"egress_info", "ingress_info", b"ingress_info", "participant", b"participant", "room", b"room", "track", b"track"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["created_at", b"created_at", "egress_info", b"egress_info", "event", b"event", "id", b"id", "ingress_info", b"ingress_info", "num_dropped", b"num_dropped", "participant", b"participant", "room", b"room", "track", b"track"]) -> None: ... - -global___WebhookEvent = WebhookEvent diff --git a/livekit-api/livekit/api/room_service.py b/livekit-api/livekit/api/room_service.py index 195c614f..09028a85 100644 --- a/livekit-api/livekit/api/room_service.py +++ b/livekit-api/livekit/api/room_service.py @@ -1,5 +1,5 @@ -from ._proto import livekit_models_pb2 as proto_models -from ._proto import livekit_room_pb2 as proto_room +from livekit.protocol import room as proto_room +from livekit.protocol import models as proto_models from ._service import Service from .access_token import VideoGrants diff --git a/livekit-api/setup.py b/livekit-api/setup.py index cceb517a..c2830e45 100644 --- a/livekit-api/setup.py +++ b/livekit-api/setup.py @@ -52,9 +52,10 @@ "aiohttp>=3.8.0", "protobuf>=3.1.0", "types-protobuf>=3.1.0", + "livekit-protocol>=0.1.0", ], package_data={ - "livekit.api": ["_proto/*.py", "py.typed", "*.pyi", "**/*.pyi"], + "livekit.api": ["py.typed", "*.pyi", "**/*.pyi"], }, project_urls={ "Documentation": "https://docs.livekit.io", diff --git a/livekit-protocol/livekit/protocol/version.py b/livekit-protocol/livekit/protocol/version.py index f102a9ca..3dc1f76b 100644 --- a/livekit-protocol/livekit/protocol/version.py +++ b/livekit-protocol/livekit/protocol/version.py @@ -1 +1 @@ -__version__ = "0.0.1" +__version__ = "0.1.0" From 66b614400d201bfc1e443d5259e3f8ec3b602fef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?The=CC=81o=20Monnom?= Date: Tue, 7 Nov 2023 14:06:32 -0800 Subject: [PATCH 4/6] CI --- .github/workflows/build-api.yml | 3 -- .github/workflows/build-protocol.yml | 61 ++++++++++++++++++++++++++++ 2 files changed, 61 insertions(+), 3 deletions(-) create mode 100644 .github/workflows/build-protocol.yml diff --git a/.github/workflows/build-api.yml b/.github/workflows/build-api.yml index 0cca12c0..6ea87597 100644 --- a/.github/workflows/build-api.yml +++ b/.github/workflows/build-api.yml @@ -30,9 +30,6 @@ jobs: run: | pip3 install build wheel python3 -m build --wheel - env: - CIBW_ARCHS: ${{ matrix.archs }} - CIBW_SKIP: "*-musllinux_*" - name: Build SDist run: pipx run build --sdist diff --git a/.github/workflows/build-protocol.yml b/.github/workflows/build-protocol.yml new file mode 100644 index 00000000..7173a82e --- /dev/null +++ b/.github/workflows/build-protocol.yml @@ -0,0 +1,61 @@ +name: Build API + +on: + push: + paths: + - livekit-protocol/** + pull_request: + paths: + - livekit-protocol/** + workflow_dispatch: + +env: + PACKAGE_DIR: ./livekit-protocol + +jobs: + build_wheels: + name: Build API wheel/sdist + runs-on: ubuntu-latest + defaults: + run: + working-directory: ${{ env.PACKAGE_DIR }} + steps: + - uses: actions/checkout@v3 + with: + submodules: true + + - uses: actions/setup-python@v4 + + - name: Build wheel + run: | + pip3 install build wheel + python3 -m build --wheel + + - name: Build SDist + run: pipx run build --sdist + + - uses: actions/upload-artifact@v3 + with: + name: protocol-release + path: | + livekit-protocol/dist/*.whl + livekit-protocol/dist/*.tar.gz + + publish: + name: Publish Protocol release + needs: build_wheels + runs-on: ubuntu-latest + permissions: + id-token: write + if: startsWith(github.ref, 'refs/tags/protocol-v') + steps: + - uses: actions/download-artifact@v3 + with: + name: protocol-release + path: dist + + - uses: pypa/gh-action-pypi-publish@release/v1 + with: + user: __token__ + password: ${{ secrets.PYPI_API_TOKEN }} + From 188d8a1cbfa73a44a0712b83224510dd76ccd8b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?The=CC=81o=20Monnom?= Date: Tue, 7 Nov 2023 14:07:11 -0800 Subject: [PATCH 5/6] fix naming --- .github/workflows/build-protocol.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-protocol.yml b/.github/workflows/build-protocol.yml index 7173a82e..b8eeaacc 100644 --- a/.github/workflows/build-protocol.yml +++ b/.github/workflows/build-protocol.yml @@ -1,4 +1,4 @@ -name: Build API +name: Build Protocol on: push: @@ -14,7 +14,7 @@ env: jobs: build_wheels: - name: Build API wheel/sdist + name: Build Protocol wheel/sdist runs-on: ubuntu-latest defaults: run: From 5c1dedd8d54058b05b33583f614c802a4d34e016 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?The=CC=81o=20Monnom?= Date: Tue, 7 Nov 2023 14:27:45 -0800 Subject: [PATCH 6/6] fmt --- examples/e2ee.py | 1 + examples/publish_hue.py | 1 + livekit-api/livekit/api/room_service.py | 2 +- ruff.toml | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/e2ee.py b/examples/e2ee.py index d9384798..b33905c4 100644 --- a/examples/e2ee.py +++ b/examples/e2ee.py @@ -13,6 +13,7 @@ WIDTH, HEIGHT = 1280, 720 + async def draw_cube(source: rtc.VideoSource): MID_W, MID_H = 640, 360 cube_size = 60 diff --git a/examples/publish_hue.py b/examples/publish_hue.py index f1b7d545..abc313ca 100644 --- a/examples/publish_hue.py +++ b/examples/publish_hue.py @@ -11,6 +11,7 @@ WIDTH, HEIGHT = 1280, 720 + async def draw_color_cycle(source: rtc.VideoSource): argb_frame = rtc.ArgbFrame.create(rtc.VideoFormatType.FORMAT_ARGB, WIDTH, HEIGHT) arr = np.frombuffer(argb_frame.data, dtype=np.uint8) diff --git a/livekit-api/livekit/api/room_service.py b/livekit-api/livekit/api/room_service.py index 09028a85..768201ad 100644 --- a/livekit-api/livekit/api/room_service.py +++ b/livekit-api/livekit/api/room_service.py @@ -1,5 +1,5 @@ from livekit.protocol import room as proto_room -from livekit.protocol import models as proto_models +from livekit.protocol import models as proto_models from ._service import Service from .access_token import VideoGrants diff --git a/ruff.toml b/ruff.toml index 260091dc..c25c0605 100644 --- a/ruff.toml +++ b/ruff.toml @@ -1,5 +1,5 @@ exclude = [ - "_proto" + "livekit-protocol/livekit/protocol" ] line-length = 88