@livekit/protocol 1.27.1 → 1.28.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/gen/livekit_agent_dispatch_pb.cjs +385 -0
- package/dist/gen/livekit_agent_dispatch_pb.cjs.map +1 -0
- package/dist/gen/livekit_agent_dispatch_pb.d.ts +174 -0
- package/dist/gen/livekit_agent_dispatch_pb.d.ts.map +1 -0
- package/dist/gen/livekit_agent_dispatch_pb.js +356 -0
- package/dist/gen/livekit_agent_dispatch_pb.js.map +1 -0
- package/dist/gen/livekit_agent_pb.cjs +881 -0
- package/dist/gen/livekit_agent_pb.cjs.map +1 -0
- package/dist/gen/livekit_agent_pb.d.ts +575 -0
- package/dist/gen/livekit_agent_pb.d.ts.map +1 -0
- package/dist/gen/livekit_agent_pb.js +840 -0
- package/dist/gen/livekit_agent_pb.js.map +1 -0
- package/dist/gen/livekit_analytics_pb.cjs +1087 -0
- package/dist/gen/livekit_analytics_pb.cjs.map +1 -0
- package/dist/gen/livekit_analytics_pb.d.ts +679 -0
- package/dist/gen/livekit_analytics_pb.d.ts.map +1 -0
- package/dist/gen/livekit_analytics_pb.js +1053 -0
- package/dist/gen/livekit_analytics_pb.js.map +1 -0
- package/dist/gen/livekit_egress_pb.cjs +2476 -0
- package/dist/gen/livekit_egress_pb.cjs.map +1 -0
- package/dist/gen/livekit_egress_pb.d.ts +1720 -0
- package/dist/gen/livekit_egress_pb.d.ts.map +1 -0
- package/dist/gen/livekit_egress_pb.js +2417 -0
- package/dist/gen/livekit_egress_pb.js.map +1 -0
- package/dist/gen/livekit_ingress_pb.cjs +1050 -0
- package/dist/gen/livekit_ingress_pb.cjs.map +1 -0
- package/dist/gen/livekit_ingress_pb.d.ts +660 -0
- package/dist/gen/livekit_ingress_pb.d.ts.map +1 -0
- package/dist/gen/livekit_ingress_pb.js +1011 -0
- package/dist/gen/livekit_ingress_pb.js.map +1 -0
- package/dist/gen/livekit_internal_pb.cjs +998 -0
- package/dist/gen/livekit_internal_pb.cjs.map +1 -0
- package/dist/gen/livekit_internal_pb.d.ts +481 -0
- package/dist/gen/livekit_internal_pb.d.ts.map +1 -0
- package/dist/gen/livekit_internal_pb.js +968 -0
- package/dist/gen/livekit_internal_pb.js.map +1 -0
- package/dist/gen/livekit_metrics_pb.cjs +371 -0
- package/dist/gen/livekit_metrics_pb.cjs.map +1 -0
- package/dist/gen/livekit_metrics_pb.d.ts +304 -0
- package/dist/gen/livekit_metrics_pb.d.ts.map +1 -0
- package/dist/gen/livekit_metrics_pb.js +344 -0
- package/dist/gen/livekit_metrics_pb.js.map +1 -0
- package/dist/gen/livekit_models_pb.cjs +3323 -0
- package/dist/gen/livekit_models_pb.cjs.map +1 -0
- package/dist/gen/livekit_models_pb.d.ts +2024 -0
- package/dist/gen/livekit_models_pb.d.ts.map +1 -0
- package/dist/gen/livekit_models_pb.js +3249 -0
- package/dist/gen/livekit_models_pb.js.map +1 -0
- package/dist/gen/livekit_room_pb.cjs +1080 -0
- package/dist/gen/livekit_room_pb.cjs.map +1 -0
- package/dist/gen/livekit_room_pb.d.ts +580 -0
- package/dist/gen/livekit_room_pb.d.ts.map +1 -0
- package/dist/gen/livekit_room_pb.js +1038 -0
- package/dist/gen/livekit_room_pb.js.map +1 -0
- package/dist/gen/livekit_rtc_pb.cjs +2261 -0
- package/dist/gen/livekit_rtc_pb.cjs.map +1 -0
- package/dist/gen/livekit_rtc_pb.d.ts +1602 -0
- package/dist/gen/livekit_rtc_pb.d.ts.map +1 -0
- package/dist/gen/livekit_rtc_pb.js +2192 -0
- package/dist/gen/livekit_rtc_pb.js.map +1 -0
- package/dist/gen/livekit_sip_pb.cjs +2118 -0
- package/dist/gen/livekit_sip_pb.cjs.map +1 -0
- package/dist/gen/livekit_sip_pb.d.ts +1226 -0
- package/dist/gen/livekit_sip_pb.d.ts.map +1 -0
- package/dist/gen/livekit_sip_pb.js +2061 -0
- package/dist/gen/livekit_sip_pb.js.map +1 -0
- package/dist/gen/livekit_webhook_pb.cjs +111 -0
- package/dist/gen/livekit_webhook_pb.cjs.map +1 -0
- package/dist/gen/livekit_webhook_pb.d.ts +71 -0
- package/dist/gen/livekit_webhook_pb.d.ts.map +1 -0
- package/dist/gen/livekit_webhook_pb.js +88 -0
- package/dist/gen/livekit_webhook_pb.js.map +1 -0
- package/dist/gen/version.cjs +28 -0
- package/dist/gen/version.cjs.map +1 -0
- package/dist/gen/version.d.ts +2 -0
- package/dist/gen/version.d.ts.map +1 -0
- package/dist/gen/version.js +5 -0
- package/dist/gen/version.js.map +1 -0
- package/dist/index.cjs +51 -0
- package/dist/index.cjs.map +1 -0
- package/{src → dist}/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -0
- package/{src → dist}/index.js +5 -2
- package/dist/index.js.map +1 -0
- package/package.json +18 -12
- package/src/gen/livekit_agent_dispatch_pb.d.ts +0 -253
- package/src/gen/livekit_agent_dispatch_pb.js +0 -103
- package/src/gen/livekit_agent_pb.d.ts +0 -741
- package/src/gen/livekit_agent_pb.js +0 -266
- package/src/gen/livekit_analytics_pb.d.ts +0 -889
- package/src/gen/livekit_analytics_pb.js +0 -264
- package/src/gen/livekit_egress_pb.d.ts +0 -2056
- package/src/gen/livekit_egress_pb.js +0 -594
- package/src/gen/livekit_ingress_pb.d.ts +0 -843
- package/src/gen/livekit_ingress_pb.js +0 -269
- package/src/gen/livekit_internal_pb.d.ts +0 -622
- package/src/gen/livekit_internal_pb.js +0 -191
- package/src/gen/livekit_metrics_pb.d.ts +0 -355
- package/src/gen/livekit_metrics_pb.js +0 -94
- package/src/gen/livekit_models_pb.d.ts +0 -2539
- package/src/gen/livekit_models_pb.js +0 -819
- package/src/gen/livekit_room_pb.d.ts +0 -774
- package/src/gen/livekit_room_pb.js +0 -259
- package/src/gen/livekit_rtc_pb.d.ts +0 -2001
- package/src/gen/livekit_rtc_pb.js +0 -634
- package/src/gen/livekit_sip_pb.d.ts +0 -1508
- package/src/gen/livekit_sip_pb.js +0 -468
- package/src/gen/livekit_webhook_pb.d.ts +0 -105
- package/src/gen/livekit_webhook_pb.js +0 -42
- package/src/gen/version.d.ts +0 -1
- package/src/gen/version.js +0 -2
|
@@ -0,0 +1,3323 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var livekit_models_pb_exports = {};
|
|
19
|
+
__export(livekit_models_pb_exports, {
|
|
20
|
+
ActiveSpeakerUpdate: () => ActiveSpeakerUpdate,
|
|
21
|
+
AudioCodec: () => AudioCodec,
|
|
22
|
+
AudioTrackFeature: () => AudioTrackFeature,
|
|
23
|
+
ChatMessage: () => ChatMessage,
|
|
24
|
+
ClientConfigSetting: () => ClientConfigSetting,
|
|
25
|
+
ClientConfiguration: () => ClientConfiguration,
|
|
26
|
+
ClientInfo: () => ClientInfo,
|
|
27
|
+
ClientInfo_SDK: () => ClientInfo_SDK,
|
|
28
|
+
Codec: () => Codec,
|
|
29
|
+
ConnectionQuality: () => ConnectionQuality,
|
|
30
|
+
DataPacket: () => DataPacket,
|
|
31
|
+
DataPacket_Kind: () => DataPacket_Kind,
|
|
32
|
+
DisabledCodecs: () => DisabledCodecs,
|
|
33
|
+
DisconnectReason: () => DisconnectReason,
|
|
34
|
+
Encryption: () => Encryption,
|
|
35
|
+
Encryption_Type: () => Encryption_Type,
|
|
36
|
+
ImageCodec: () => ImageCodec,
|
|
37
|
+
ParticipantInfo: () => ParticipantInfo,
|
|
38
|
+
ParticipantInfo_Kind: () => ParticipantInfo_Kind,
|
|
39
|
+
ParticipantInfo_State: () => ParticipantInfo_State,
|
|
40
|
+
ParticipantPermission: () => ParticipantPermission,
|
|
41
|
+
ParticipantTracks: () => ParticipantTracks,
|
|
42
|
+
PlayoutDelay: () => PlayoutDelay,
|
|
43
|
+
RTCPSenderReportState: () => RTCPSenderReportState,
|
|
44
|
+
RTPDrift: () => RTPDrift,
|
|
45
|
+
RTPForwarderState: () => RTPForwarderState,
|
|
46
|
+
RTPMungerState: () => RTPMungerState,
|
|
47
|
+
RTPStats: () => RTPStats,
|
|
48
|
+
ReconnectReason: () => ReconnectReason,
|
|
49
|
+
Room: () => Room,
|
|
50
|
+
RpcAck: () => RpcAck,
|
|
51
|
+
RpcError: () => RpcError,
|
|
52
|
+
RpcRequest: () => RpcRequest,
|
|
53
|
+
RpcResponse: () => RpcResponse,
|
|
54
|
+
ServerInfo: () => ServerInfo,
|
|
55
|
+
ServerInfo_Edition: () => ServerInfo_Edition,
|
|
56
|
+
SimulcastCodecInfo: () => SimulcastCodecInfo,
|
|
57
|
+
SipDTMF: () => SipDTMF,
|
|
58
|
+
SpeakerInfo: () => SpeakerInfo,
|
|
59
|
+
SubscriptionError: () => SubscriptionError,
|
|
60
|
+
TimedVersion: () => TimedVersion,
|
|
61
|
+
TrackInfo: () => TrackInfo,
|
|
62
|
+
TrackSource: () => TrackSource,
|
|
63
|
+
TrackType: () => TrackType,
|
|
64
|
+
Transcription: () => Transcription,
|
|
65
|
+
TranscriptionSegment: () => TranscriptionSegment,
|
|
66
|
+
UserPacket: () => UserPacket,
|
|
67
|
+
VP8MungerState: () => VP8MungerState,
|
|
68
|
+
VideoCodec: () => VideoCodec,
|
|
69
|
+
VideoConfiguration: () => VideoConfiguration,
|
|
70
|
+
VideoLayer: () => VideoLayer,
|
|
71
|
+
VideoQuality: () => VideoQuality
|
|
72
|
+
});
|
|
73
|
+
module.exports = __toCommonJS(livekit_models_pb_exports);
|
|
74
|
+
var import_protobuf = require("@bufbuild/protobuf");
|
|
75
|
+
var import_livekit_metrics_pb = require("./livekit_metrics_pb.cjs");
|
|
76
|
+
var AudioCodec = /* @__PURE__ */ ((AudioCodec2) => {
|
|
77
|
+
AudioCodec2[AudioCodec2["DEFAULT_AC"] = 0] = "DEFAULT_AC";
|
|
78
|
+
AudioCodec2[AudioCodec2["OPUS"] = 1] = "OPUS";
|
|
79
|
+
AudioCodec2[AudioCodec2["AAC"] = 2] = "AAC";
|
|
80
|
+
return AudioCodec2;
|
|
81
|
+
})(AudioCodec || {});
|
|
82
|
+
import_protobuf.proto3.util.setEnumType(AudioCodec, "livekit.AudioCodec", [
|
|
83
|
+
{ no: 0, name: "DEFAULT_AC" },
|
|
84
|
+
{ no: 1, name: "OPUS" },
|
|
85
|
+
{ no: 2, name: "AAC" }
|
|
86
|
+
]);
|
|
87
|
+
var VideoCodec = /* @__PURE__ */ ((VideoCodec2) => {
|
|
88
|
+
VideoCodec2[VideoCodec2["DEFAULT_VC"] = 0] = "DEFAULT_VC";
|
|
89
|
+
VideoCodec2[VideoCodec2["H264_BASELINE"] = 1] = "H264_BASELINE";
|
|
90
|
+
VideoCodec2[VideoCodec2["H264_MAIN"] = 2] = "H264_MAIN";
|
|
91
|
+
VideoCodec2[VideoCodec2["H264_HIGH"] = 3] = "H264_HIGH";
|
|
92
|
+
VideoCodec2[VideoCodec2["VP8"] = 4] = "VP8";
|
|
93
|
+
return VideoCodec2;
|
|
94
|
+
})(VideoCodec || {});
|
|
95
|
+
import_protobuf.proto3.util.setEnumType(VideoCodec, "livekit.VideoCodec", [
|
|
96
|
+
{ no: 0, name: "DEFAULT_VC" },
|
|
97
|
+
{ no: 1, name: "H264_BASELINE" },
|
|
98
|
+
{ no: 2, name: "H264_MAIN" },
|
|
99
|
+
{ no: 3, name: "H264_HIGH" },
|
|
100
|
+
{ no: 4, name: "VP8" }
|
|
101
|
+
]);
|
|
102
|
+
var ImageCodec = /* @__PURE__ */ ((ImageCodec2) => {
|
|
103
|
+
ImageCodec2[ImageCodec2["IC_DEFAULT"] = 0] = "IC_DEFAULT";
|
|
104
|
+
ImageCodec2[ImageCodec2["IC_JPEG"] = 1] = "IC_JPEG";
|
|
105
|
+
return ImageCodec2;
|
|
106
|
+
})(ImageCodec || {});
|
|
107
|
+
import_protobuf.proto3.util.setEnumType(ImageCodec, "livekit.ImageCodec", [
|
|
108
|
+
{ no: 0, name: "IC_DEFAULT" },
|
|
109
|
+
{ no: 1, name: "IC_JPEG" }
|
|
110
|
+
]);
|
|
111
|
+
var TrackType = /* @__PURE__ */ ((TrackType2) => {
|
|
112
|
+
TrackType2[TrackType2["AUDIO"] = 0] = "AUDIO";
|
|
113
|
+
TrackType2[TrackType2["VIDEO"] = 1] = "VIDEO";
|
|
114
|
+
TrackType2[TrackType2["DATA"] = 2] = "DATA";
|
|
115
|
+
return TrackType2;
|
|
116
|
+
})(TrackType || {});
|
|
117
|
+
import_protobuf.proto3.util.setEnumType(TrackType, "livekit.TrackType", [
|
|
118
|
+
{ no: 0, name: "AUDIO" },
|
|
119
|
+
{ no: 1, name: "VIDEO" },
|
|
120
|
+
{ no: 2, name: "DATA" }
|
|
121
|
+
]);
|
|
122
|
+
var TrackSource = /* @__PURE__ */ ((TrackSource2) => {
|
|
123
|
+
TrackSource2[TrackSource2["UNKNOWN"] = 0] = "UNKNOWN";
|
|
124
|
+
TrackSource2[TrackSource2["CAMERA"] = 1] = "CAMERA";
|
|
125
|
+
TrackSource2[TrackSource2["MICROPHONE"] = 2] = "MICROPHONE";
|
|
126
|
+
TrackSource2[TrackSource2["SCREEN_SHARE"] = 3] = "SCREEN_SHARE";
|
|
127
|
+
TrackSource2[TrackSource2["SCREEN_SHARE_AUDIO"] = 4] = "SCREEN_SHARE_AUDIO";
|
|
128
|
+
return TrackSource2;
|
|
129
|
+
})(TrackSource || {});
|
|
130
|
+
import_protobuf.proto3.util.setEnumType(TrackSource, "livekit.TrackSource", [
|
|
131
|
+
{ no: 0, name: "UNKNOWN" },
|
|
132
|
+
{ no: 1, name: "CAMERA" },
|
|
133
|
+
{ no: 2, name: "MICROPHONE" },
|
|
134
|
+
{ no: 3, name: "SCREEN_SHARE" },
|
|
135
|
+
{ no: 4, name: "SCREEN_SHARE_AUDIO" }
|
|
136
|
+
]);
|
|
137
|
+
var VideoQuality = /* @__PURE__ */ ((VideoQuality2) => {
|
|
138
|
+
VideoQuality2[VideoQuality2["LOW"] = 0] = "LOW";
|
|
139
|
+
VideoQuality2[VideoQuality2["MEDIUM"] = 1] = "MEDIUM";
|
|
140
|
+
VideoQuality2[VideoQuality2["HIGH"] = 2] = "HIGH";
|
|
141
|
+
VideoQuality2[VideoQuality2["OFF"] = 3] = "OFF";
|
|
142
|
+
return VideoQuality2;
|
|
143
|
+
})(VideoQuality || {});
|
|
144
|
+
import_protobuf.proto3.util.setEnumType(VideoQuality, "livekit.VideoQuality", [
|
|
145
|
+
{ no: 0, name: "LOW" },
|
|
146
|
+
{ no: 1, name: "MEDIUM" },
|
|
147
|
+
{ no: 2, name: "HIGH" },
|
|
148
|
+
{ no: 3, name: "OFF" }
|
|
149
|
+
]);
|
|
150
|
+
var ConnectionQuality = /* @__PURE__ */ ((ConnectionQuality2) => {
|
|
151
|
+
ConnectionQuality2[ConnectionQuality2["POOR"] = 0] = "POOR";
|
|
152
|
+
ConnectionQuality2[ConnectionQuality2["GOOD"] = 1] = "GOOD";
|
|
153
|
+
ConnectionQuality2[ConnectionQuality2["EXCELLENT"] = 2] = "EXCELLENT";
|
|
154
|
+
ConnectionQuality2[ConnectionQuality2["LOST"] = 3] = "LOST";
|
|
155
|
+
return ConnectionQuality2;
|
|
156
|
+
})(ConnectionQuality || {});
|
|
157
|
+
import_protobuf.proto3.util.setEnumType(ConnectionQuality, "livekit.ConnectionQuality", [
|
|
158
|
+
{ no: 0, name: "POOR" },
|
|
159
|
+
{ no: 1, name: "GOOD" },
|
|
160
|
+
{ no: 2, name: "EXCELLENT" },
|
|
161
|
+
{ no: 3, name: "LOST" }
|
|
162
|
+
]);
|
|
163
|
+
var ClientConfigSetting = /* @__PURE__ */ ((ClientConfigSetting2) => {
|
|
164
|
+
ClientConfigSetting2[ClientConfigSetting2["UNSET"] = 0] = "UNSET";
|
|
165
|
+
ClientConfigSetting2[ClientConfigSetting2["DISABLED"] = 1] = "DISABLED";
|
|
166
|
+
ClientConfigSetting2[ClientConfigSetting2["ENABLED"] = 2] = "ENABLED";
|
|
167
|
+
return ClientConfigSetting2;
|
|
168
|
+
})(ClientConfigSetting || {});
|
|
169
|
+
import_protobuf.proto3.util.setEnumType(ClientConfigSetting, "livekit.ClientConfigSetting", [
|
|
170
|
+
{ no: 0, name: "UNSET" },
|
|
171
|
+
{ no: 1, name: "DISABLED" },
|
|
172
|
+
{ no: 2, name: "ENABLED" }
|
|
173
|
+
]);
|
|
174
|
+
var DisconnectReason = /* @__PURE__ */ ((DisconnectReason2) => {
|
|
175
|
+
DisconnectReason2[DisconnectReason2["UNKNOWN_REASON"] = 0] = "UNKNOWN_REASON";
|
|
176
|
+
DisconnectReason2[DisconnectReason2["CLIENT_INITIATED"] = 1] = "CLIENT_INITIATED";
|
|
177
|
+
DisconnectReason2[DisconnectReason2["DUPLICATE_IDENTITY"] = 2] = "DUPLICATE_IDENTITY";
|
|
178
|
+
DisconnectReason2[DisconnectReason2["SERVER_SHUTDOWN"] = 3] = "SERVER_SHUTDOWN";
|
|
179
|
+
DisconnectReason2[DisconnectReason2["PARTICIPANT_REMOVED"] = 4] = "PARTICIPANT_REMOVED";
|
|
180
|
+
DisconnectReason2[DisconnectReason2["ROOM_DELETED"] = 5] = "ROOM_DELETED";
|
|
181
|
+
DisconnectReason2[DisconnectReason2["STATE_MISMATCH"] = 6] = "STATE_MISMATCH";
|
|
182
|
+
DisconnectReason2[DisconnectReason2["JOIN_FAILURE"] = 7] = "JOIN_FAILURE";
|
|
183
|
+
DisconnectReason2[DisconnectReason2["MIGRATION"] = 8] = "MIGRATION";
|
|
184
|
+
DisconnectReason2[DisconnectReason2["SIGNAL_CLOSE"] = 9] = "SIGNAL_CLOSE";
|
|
185
|
+
DisconnectReason2[DisconnectReason2["ROOM_CLOSED"] = 10] = "ROOM_CLOSED";
|
|
186
|
+
DisconnectReason2[DisconnectReason2["USER_UNAVAILABLE"] = 11] = "USER_UNAVAILABLE";
|
|
187
|
+
DisconnectReason2[DisconnectReason2["USER_REJECTED"] = 12] = "USER_REJECTED";
|
|
188
|
+
DisconnectReason2[DisconnectReason2["SIP_TRUNK_FAILURE"] = 13] = "SIP_TRUNK_FAILURE";
|
|
189
|
+
return DisconnectReason2;
|
|
190
|
+
})(DisconnectReason || {});
|
|
191
|
+
import_protobuf.proto3.util.setEnumType(DisconnectReason, "livekit.DisconnectReason", [
|
|
192
|
+
{ no: 0, name: "UNKNOWN_REASON" },
|
|
193
|
+
{ no: 1, name: "CLIENT_INITIATED" },
|
|
194
|
+
{ no: 2, name: "DUPLICATE_IDENTITY" },
|
|
195
|
+
{ no: 3, name: "SERVER_SHUTDOWN" },
|
|
196
|
+
{ no: 4, name: "PARTICIPANT_REMOVED" },
|
|
197
|
+
{ no: 5, name: "ROOM_DELETED" },
|
|
198
|
+
{ no: 6, name: "STATE_MISMATCH" },
|
|
199
|
+
{ no: 7, name: "JOIN_FAILURE" },
|
|
200
|
+
{ no: 8, name: "MIGRATION" },
|
|
201
|
+
{ no: 9, name: "SIGNAL_CLOSE" },
|
|
202
|
+
{ no: 10, name: "ROOM_CLOSED" },
|
|
203
|
+
{ no: 11, name: "USER_UNAVAILABLE" },
|
|
204
|
+
{ no: 12, name: "USER_REJECTED" },
|
|
205
|
+
{ no: 13, name: "SIP_TRUNK_FAILURE" }
|
|
206
|
+
]);
|
|
207
|
+
var ReconnectReason = /* @__PURE__ */ ((ReconnectReason2) => {
|
|
208
|
+
ReconnectReason2[ReconnectReason2["RR_UNKNOWN"] = 0] = "RR_UNKNOWN";
|
|
209
|
+
ReconnectReason2[ReconnectReason2["RR_SIGNAL_DISCONNECTED"] = 1] = "RR_SIGNAL_DISCONNECTED";
|
|
210
|
+
ReconnectReason2[ReconnectReason2["RR_PUBLISHER_FAILED"] = 2] = "RR_PUBLISHER_FAILED";
|
|
211
|
+
ReconnectReason2[ReconnectReason2["RR_SUBSCRIBER_FAILED"] = 3] = "RR_SUBSCRIBER_FAILED";
|
|
212
|
+
ReconnectReason2[ReconnectReason2["RR_SWITCH_CANDIDATE"] = 4] = "RR_SWITCH_CANDIDATE";
|
|
213
|
+
return ReconnectReason2;
|
|
214
|
+
})(ReconnectReason || {});
|
|
215
|
+
import_protobuf.proto3.util.setEnumType(ReconnectReason, "livekit.ReconnectReason", [
|
|
216
|
+
{ no: 0, name: "RR_UNKNOWN" },
|
|
217
|
+
{ no: 1, name: "RR_SIGNAL_DISCONNECTED" },
|
|
218
|
+
{ no: 2, name: "RR_PUBLISHER_FAILED" },
|
|
219
|
+
{ no: 3, name: "RR_SUBSCRIBER_FAILED" },
|
|
220
|
+
{ no: 4, name: "RR_SWITCH_CANDIDATE" }
|
|
221
|
+
]);
|
|
222
|
+
var SubscriptionError = /* @__PURE__ */ ((SubscriptionError2) => {
|
|
223
|
+
SubscriptionError2[SubscriptionError2["SE_UNKNOWN"] = 0] = "SE_UNKNOWN";
|
|
224
|
+
SubscriptionError2[SubscriptionError2["SE_CODEC_UNSUPPORTED"] = 1] = "SE_CODEC_UNSUPPORTED";
|
|
225
|
+
SubscriptionError2[SubscriptionError2["SE_TRACK_NOTFOUND"] = 2] = "SE_TRACK_NOTFOUND";
|
|
226
|
+
return SubscriptionError2;
|
|
227
|
+
})(SubscriptionError || {});
|
|
228
|
+
import_protobuf.proto3.util.setEnumType(SubscriptionError, "livekit.SubscriptionError", [
|
|
229
|
+
{ no: 0, name: "SE_UNKNOWN" },
|
|
230
|
+
{ no: 1, name: "SE_CODEC_UNSUPPORTED" },
|
|
231
|
+
{ no: 2, name: "SE_TRACK_NOTFOUND" }
|
|
232
|
+
]);
|
|
233
|
+
var AudioTrackFeature = /* @__PURE__ */ ((AudioTrackFeature2) => {
|
|
234
|
+
AudioTrackFeature2[AudioTrackFeature2["TF_STEREO"] = 0] = "TF_STEREO";
|
|
235
|
+
AudioTrackFeature2[AudioTrackFeature2["TF_NO_DTX"] = 1] = "TF_NO_DTX";
|
|
236
|
+
AudioTrackFeature2[AudioTrackFeature2["TF_AUTO_GAIN_CONTROL"] = 2] = "TF_AUTO_GAIN_CONTROL";
|
|
237
|
+
AudioTrackFeature2[AudioTrackFeature2["TF_ECHO_CANCELLATION"] = 3] = "TF_ECHO_CANCELLATION";
|
|
238
|
+
AudioTrackFeature2[AudioTrackFeature2["TF_NOISE_SUPPRESSION"] = 4] = "TF_NOISE_SUPPRESSION";
|
|
239
|
+
AudioTrackFeature2[AudioTrackFeature2["TF_ENHANCED_NOISE_CANCELLATION"] = 5] = "TF_ENHANCED_NOISE_CANCELLATION";
|
|
240
|
+
return AudioTrackFeature2;
|
|
241
|
+
})(AudioTrackFeature || {});
|
|
242
|
+
import_protobuf.proto3.util.setEnumType(AudioTrackFeature, "livekit.AudioTrackFeature", [
|
|
243
|
+
{ no: 0, name: "TF_STEREO" },
|
|
244
|
+
{ no: 1, name: "TF_NO_DTX" },
|
|
245
|
+
{ no: 2, name: "TF_AUTO_GAIN_CONTROL" },
|
|
246
|
+
{ no: 3, name: "TF_ECHO_CANCELLATION" },
|
|
247
|
+
{ no: 4, name: "TF_NOISE_SUPPRESSION" },
|
|
248
|
+
{ no: 5, name: "TF_ENHANCED_NOISE_CANCELLATION" }
|
|
249
|
+
]);
|
|
250
|
+
const _Room = class _Room extends import_protobuf.Message {
|
|
251
|
+
constructor(data) {
|
|
252
|
+
super();
|
|
253
|
+
/**
|
|
254
|
+
* @generated from field: string sid = 1;
|
|
255
|
+
*/
|
|
256
|
+
this.sid = "";
|
|
257
|
+
/**
|
|
258
|
+
* @generated from field: string name = 2;
|
|
259
|
+
*/
|
|
260
|
+
this.name = "";
|
|
261
|
+
/**
|
|
262
|
+
* @generated from field: uint32 empty_timeout = 3;
|
|
263
|
+
*/
|
|
264
|
+
this.emptyTimeout = 0;
|
|
265
|
+
/**
|
|
266
|
+
* @generated from field: uint32 departure_timeout = 14;
|
|
267
|
+
*/
|
|
268
|
+
this.departureTimeout = 0;
|
|
269
|
+
/**
|
|
270
|
+
* @generated from field: uint32 max_participants = 4;
|
|
271
|
+
*/
|
|
272
|
+
this.maxParticipants = 0;
|
|
273
|
+
/**
|
|
274
|
+
* @generated from field: int64 creation_time = 5;
|
|
275
|
+
*/
|
|
276
|
+
this.creationTime = import_protobuf.protoInt64.zero;
|
|
277
|
+
/**
|
|
278
|
+
* @generated from field: string turn_password = 6;
|
|
279
|
+
*/
|
|
280
|
+
this.turnPassword = "";
|
|
281
|
+
/**
|
|
282
|
+
* @generated from field: repeated livekit.Codec enabled_codecs = 7;
|
|
283
|
+
*/
|
|
284
|
+
this.enabledCodecs = [];
|
|
285
|
+
/**
|
|
286
|
+
* @generated from field: string metadata = 8;
|
|
287
|
+
*/
|
|
288
|
+
this.metadata = "";
|
|
289
|
+
/**
|
|
290
|
+
* @generated from field: uint32 num_participants = 9;
|
|
291
|
+
*/
|
|
292
|
+
this.numParticipants = 0;
|
|
293
|
+
/**
|
|
294
|
+
* @generated from field: uint32 num_publishers = 11;
|
|
295
|
+
*/
|
|
296
|
+
this.numPublishers = 0;
|
|
297
|
+
/**
|
|
298
|
+
* @generated from field: bool active_recording = 10;
|
|
299
|
+
*/
|
|
300
|
+
this.activeRecording = false;
|
|
301
|
+
import_protobuf.proto3.util.initPartial(data, this);
|
|
302
|
+
}
|
|
303
|
+
static fromBinary(bytes, options) {
|
|
304
|
+
return new _Room().fromBinary(bytes, options);
|
|
305
|
+
}
|
|
306
|
+
static fromJson(jsonValue, options) {
|
|
307
|
+
return new _Room().fromJson(jsonValue, options);
|
|
308
|
+
}
|
|
309
|
+
static fromJsonString(jsonString, options) {
|
|
310
|
+
return new _Room().fromJsonString(jsonString, options);
|
|
311
|
+
}
|
|
312
|
+
static equals(a, b) {
|
|
313
|
+
return import_protobuf.proto3.util.equals(_Room, a, b);
|
|
314
|
+
}
|
|
315
|
+
};
|
|
316
|
+
_Room.runtime = import_protobuf.proto3;
|
|
317
|
+
_Room.typeName = "livekit.Room";
|
|
318
|
+
_Room.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
319
|
+
{
|
|
320
|
+
no: 1,
|
|
321
|
+
name: "sid",
|
|
322
|
+
kind: "scalar",
|
|
323
|
+
T: 9
|
|
324
|
+
/* ScalarType.STRING */
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
no: 2,
|
|
328
|
+
name: "name",
|
|
329
|
+
kind: "scalar",
|
|
330
|
+
T: 9
|
|
331
|
+
/* ScalarType.STRING */
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
no: 3,
|
|
335
|
+
name: "empty_timeout",
|
|
336
|
+
kind: "scalar",
|
|
337
|
+
T: 13
|
|
338
|
+
/* ScalarType.UINT32 */
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
no: 14,
|
|
342
|
+
name: "departure_timeout",
|
|
343
|
+
kind: "scalar",
|
|
344
|
+
T: 13
|
|
345
|
+
/* ScalarType.UINT32 */
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
no: 4,
|
|
349
|
+
name: "max_participants",
|
|
350
|
+
kind: "scalar",
|
|
351
|
+
T: 13
|
|
352
|
+
/* ScalarType.UINT32 */
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
no: 5,
|
|
356
|
+
name: "creation_time",
|
|
357
|
+
kind: "scalar",
|
|
358
|
+
T: 3
|
|
359
|
+
/* ScalarType.INT64 */
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
no: 6,
|
|
363
|
+
name: "turn_password",
|
|
364
|
+
kind: "scalar",
|
|
365
|
+
T: 9
|
|
366
|
+
/* ScalarType.STRING */
|
|
367
|
+
},
|
|
368
|
+
{ no: 7, name: "enabled_codecs", kind: "message", T: Codec, repeated: true },
|
|
369
|
+
{
|
|
370
|
+
no: 8,
|
|
371
|
+
name: "metadata",
|
|
372
|
+
kind: "scalar",
|
|
373
|
+
T: 9
|
|
374
|
+
/* ScalarType.STRING */
|
|
375
|
+
},
|
|
376
|
+
{
|
|
377
|
+
no: 9,
|
|
378
|
+
name: "num_participants",
|
|
379
|
+
kind: "scalar",
|
|
380
|
+
T: 13
|
|
381
|
+
/* ScalarType.UINT32 */
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
no: 11,
|
|
385
|
+
name: "num_publishers",
|
|
386
|
+
kind: "scalar",
|
|
387
|
+
T: 13
|
|
388
|
+
/* ScalarType.UINT32 */
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
no: 10,
|
|
392
|
+
name: "active_recording",
|
|
393
|
+
kind: "scalar",
|
|
394
|
+
T: 8
|
|
395
|
+
/* ScalarType.BOOL */
|
|
396
|
+
},
|
|
397
|
+
{ no: 13, name: "version", kind: "message", T: TimedVersion }
|
|
398
|
+
]);
|
|
399
|
+
let Room = _Room;
|
|
400
|
+
const _Codec = class _Codec extends import_protobuf.Message {
|
|
401
|
+
constructor(data) {
|
|
402
|
+
super();
|
|
403
|
+
/**
|
|
404
|
+
* @generated from field: string mime = 1;
|
|
405
|
+
*/
|
|
406
|
+
this.mime = "";
|
|
407
|
+
/**
|
|
408
|
+
* @generated from field: string fmtp_line = 2;
|
|
409
|
+
*/
|
|
410
|
+
this.fmtpLine = "";
|
|
411
|
+
import_protobuf.proto3.util.initPartial(data, this);
|
|
412
|
+
}
|
|
413
|
+
static fromBinary(bytes, options) {
|
|
414
|
+
return new _Codec().fromBinary(bytes, options);
|
|
415
|
+
}
|
|
416
|
+
static fromJson(jsonValue, options) {
|
|
417
|
+
return new _Codec().fromJson(jsonValue, options);
|
|
418
|
+
}
|
|
419
|
+
static fromJsonString(jsonString, options) {
|
|
420
|
+
return new _Codec().fromJsonString(jsonString, options);
|
|
421
|
+
}
|
|
422
|
+
static equals(a, b) {
|
|
423
|
+
return import_protobuf.proto3.util.equals(_Codec, a, b);
|
|
424
|
+
}
|
|
425
|
+
};
|
|
426
|
+
_Codec.runtime = import_protobuf.proto3;
|
|
427
|
+
_Codec.typeName = "livekit.Codec";
|
|
428
|
+
_Codec.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
429
|
+
{
|
|
430
|
+
no: 1,
|
|
431
|
+
name: "mime",
|
|
432
|
+
kind: "scalar",
|
|
433
|
+
T: 9
|
|
434
|
+
/* ScalarType.STRING */
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
no: 2,
|
|
438
|
+
name: "fmtp_line",
|
|
439
|
+
kind: "scalar",
|
|
440
|
+
T: 9
|
|
441
|
+
/* ScalarType.STRING */
|
|
442
|
+
}
|
|
443
|
+
]);
|
|
444
|
+
let Codec = _Codec;
|
|
445
|
+
const _PlayoutDelay = class _PlayoutDelay extends import_protobuf.Message {
|
|
446
|
+
constructor(data) {
|
|
447
|
+
super();
|
|
448
|
+
/**
|
|
449
|
+
* @generated from field: bool enabled = 1;
|
|
450
|
+
*/
|
|
451
|
+
this.enabled = false;
|
|
452
|
+
/**
|
|
453
|
+
* @generated from field: uint32 min = 2;
|
|
454
|
+
*/
|
|
455
|
+
this.min = 0;
|
|
456
|
+
/**
|
|
457
|
+
* @generated from field: uint32 max = 3;
|
|
458
|
+
*/
|
|
459
|
+
this.max = 0;
|
|
460
|
+
import_protobuf.proto3.util.initPartial(data, this);
|
|
461
|
+
}
|
|
462
|
+
static fromBinary(bytes, options) {
|
|
463
|
+
return new _PlayoutDelay().fromBinary(bytes, options);
|
|
464
|
+
}
|
|
465
|
+
static fromJson(jsonValue, options) {
|
|
466
|
+
return new _PlayoutDelay().fromJson(jsonValue, options);
|
|
467
|
+
}
|
|
468
|
+
static fromJsonString(jsonString, options) {
|
|
469
|
+
return new _PlayoutDelay().fromJsonString(jsonString, options);
|
|
470
|
+
}
|
|
471
|
+
static equals(a, b) {
|
|
472
|
+
return import_protobuf.proto3.util.equals(_PlayoutDelay, a, b);
|
|
473
|
+
}
|
|
474
|
+
};
|
|
475
|
+
_PlayoutDelay.runtime = import_protobuf.proto3;
|
|
476
|
+
_PlayoutDelay.typeName = "livekit.PlayoutDelay";
|
|
477
|
+
_PlayoutDelay.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
478
|
+
{
|
|
479
|
+
no: 1,
|
|
480
|
+
name: "enabled",
|
|
481
|
+
kind: "scalar",
|
|
482
|
+
T: 8
|
|
483
|
+
/* ScalarType.BOOL */
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
no: 2,
|
|
487
|
+
name: "min",
|
|
488
|
+
kind: "scalar",
|
|
489
|
+
T: 13
|
|
490
|
+
/* ScalarType.UINT32 */
|
|
491
|
+
},
|
|
492
|
+
{
|
|
493
|
+
no: 3,
|
|
494
|
+
name: "max",
|
|
495
|
+
kind: "scalar",
|
|
496
|
+
T: 13
|
|
497
|
+
/* ScalarType.UINT32 */
|
|
498
|
+
}
|
|
499
|
+
]);
|
|
500
|
+
let PlayoutDelay = _PlayoutDelay;
|
|
501
|
+
const _ParticipantPermission = class _ParticipantPermission extends import_protobuf.Message {
|
|
502
|
+
constructor(data) {
|
|
503
|
+
super();
|
|
504
|
+
/**
|
|
505
|
+
* allow participant to subscribe to other tracks in the room
|
|
506
|
+
*
|
|
507
|
+
* @generated from field: bool can_subscribe = 1;
|
|
508
|
+
*/
|
|
509
|
+
this.canSubscribe = false;
|
|
510
|
+
/**
|
|
511
|
+
* allow participant to publish new tracks to room
|
|
512
|
+
*
|
|
513
|
+
* @generated from field: bool can_publish = 2;
|
|
514
|
+
*/
|
|
515
|
+
this.canPublish = false;
|
|
516
|
+
/**
|
|
517
|
+
* allow participant to publish data
|
|
518
|
+
*
|
|
519
|
+
* @generated from field: bool can_publish_data = 3;
|
|
520
|
+
*/
|
|
521
|
+
this.canPublishData = false;
|
|
522
|
+
/**
|
|
523
|
+
* sources that are allowed to be published
|
|
524
|
+
*
|
|
525
|
+
* @generated from field: repeated livekit.TrackSource can_publish_sources = 9;
|
|
526
|
+
*/
|
|
527
|
+
this.canPublishSources = [];
|
|
528
|
+
/**
|
|
529
|
+
* indicates that it's hidden to others
|
|
530
|
+
*
|
|
531
|
+
* @generated from field: bool hidden = 7;
|
|
532
|
+
*/
|
|
533
|
+
this.hidden = false;
|
|
534
|
+
/**
|
|
535
|
+
* indicates it's a recorder instance
|
|
536
|
+
* deprecated: use ParticipantInfo.kind instead
|
|
537
|
+
*
|
|
538
|
+
* @generated from field: bool recorder = 8 [deprecated = true];
|
|
539
|
+
* @deprecated
|
|
540
|
+
*/
|
|
541
|
+
this.recorder = false;
|
|
542
|
+
/**
|
|
543
|
+
* indicates that participant can update own metadata and attributes
|
|
544
|
+
*
|
|
545
|
+
* @generated from field: bool can_update_metadata = 10;
|
|
546
|
+
*/
|
|
547
|
+
this.canUpdateMetadata = false;
|
|
548
|
+
/**
|
|
549
|
+
* indicates that participant is an agent
|
|
550
|
+
* deprecated: use ParticipantInfo.kind instead
|
|
551
|
+
*
|
|
552
|
+
* @generated from field: bool agent = 11 [deprecated = true];
|
|
553
|
+
* @deprecated
|
|
554
|
+
*/
|
|
555
|
+
this.agent = false;
|
|
556
|
+
/**
|
|
557
|
+
* if a participant can subscribe to metrics
|
|
558
|
+
*
|
|
559
|
+
* @generated from field: bool can_subscribe_metrics = 12;
|
|
560
|
+
*/
|
|
561
|
+
this.canSubscribeMetrics = false;
|
|
562
|
+
import_protobuf.proto3.util.initPartial(data, this);
|
|
563
|
+
}
|
|
564
|
+
static fromBinary(bytes, options) {
|
|
565
|
+
return new _ParticipantPermission().fromBinary(bytes, options);
|
|
566
|
+
}
|
|
567
|
+
static fromJson(jsonValue, options) {
|
|
568
|
+
return new _ParticipantPermission().fromJson(jsonValue, options);
|
|
569
|
+
}
|
|
570
|
+
static fromJsonString(jsonString, options) {
|
|
571
|
+
return new _ParticipantPermission().fromJsonString(jsonString, options);
|
|
572
|
+
}
|
|
573
|
+
static equals(a, b) {
|
|
574
|
+
return import_protobuf.proto3.util.equals(_ParticipantPermission, a, b);
|
|
575
|
+
}
|
|
576
|
+
};
|
|
577
|
+
_ParticipantPermission.runtime = import_protobuf.proto3;
|
|
578
|
+
_ParticipantPermission.typeName = "livekit.ParticipantPermission";
|
|
579
|
+
_ParticipantPermission.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
580
|
+
{
|
|
581
|
+
no: 1,
|
|
582
|
+
name: "can_subscribe",
|
|
583
|
+
kind: "scalar",
|
|
584
|
+
T: 8
|
|
585
|
+
/* ScalarType.BOOL */
|
|
586
|
+
},
|
|
587
|
+
{
|
|
588
|
+
no: 2,
|
|
589
|
+
name: "can_publish",
|
|
590
|
+
kind: "scalar",
|
|
591
|
+
T: 8
|
|
592
|
+
/* ScalarType.BOOL */
|
|
593
|
+
},
|
|
594
|
+
{
|
|
595
|
+
no: 3,
|
|
596
|
+
name: "can_publish_data",
|
|
597
|
+
kind: "scalar",
|
|
598
|
+
T: 8
|
|
599
|
+
/* ScalarType.BOOL */
|
|
600
|
+
},
|
|
601
|
+
{ no: 9, name: "can_publish_sources", kind: "enum", T: import_protobuf.proto3.getEnumType(TrackSource), repeated: true },
|
|
602
|
+
{
|
|
603
|
+
no: 7,
|
|
604
|
+
name: "hidden",
|
|
605
|
+
kind: "scalar",
|
|
606
|
+
T: 8
|
|
607
|
+
/* ScalarType.BOOL */
|
|
608
|
+
},
|
|
609
|
+
{
|
|
610
|
+
no: 8,
|
|
611
|
+
name: "recorder",
|
|
612
|
+
kind: "scalar",
|
|
613
|
+
T: 8
|
|
614
|
+
/* ScalarType.BOOL */
|
|
615
|
+
},
|
|
616
|
+
{
|
|
617
|
+
no: 10,
|
|
618
|
+
name: "can_update_metadata",
|
|
619
|
+
kind: "scalar",
|
|
620
|
+
T: 8
|
|
621
|
+
/* ScalarType.BOOL */
|
|
622
|
+
},
|
|
623
|
+
{
|
|
624
|
+
no: 11,
|
|
625
|
+
name: "agent",
|
|
626
|
+
kind: "scalar",
|
|
627
|
+
T: 8
|
|
628
|
+
/* ScalarType.BOOL */
|
|
629
|
+
},
|
|
630
|
+
{
|
|
631
|
+
no: 12,
|
|
632
|
+
name: "can_subscribe_metrics",
|
|
633
|
+
kind: "scalar",
|
|
634
|
+
T: 8
|
|
635
|
+
/* ScalarType.BOOL */
|
|
636
|
+
}
|
|
637
|
+
]);
|
|
638
|
+
let ParticipantPermission = _ParticipantPermission;
|
|
639
|
+
const _ParticipantInfo = class _ParticipantInfo extends import_protobuf.Message {
|
|
640
|
+
constructor(data) {
|
|
641
|
+
super();
|
|
642
|
+
/**
|
|
643
|
+
* @generated from field: string sid = 1;
|
|
644
|
+
*/
|
|
645
|
+
this.sid = "";
|
|
646
|
+
/**
|
|
647
|
+
* @generated from field: string identity = 2;
|
|
648
|
+
*/
|
|
649
|
+
this.identity = "";
|
|
650
|
+
/**
|
|
651
|
+
* @generated from field: livekit.ParticipantInfo.State state = 3;
|
|
652
|
+
*/
|
|
653
|
+
this.state = 0 /* JOINING */;
|
|
654
|
+
/**
|
|
655
|
+
* @generated from field: repeated livekit.TrackInfo tracks = 4;
|
|
656
|
+
*/
|
|
657
|
+
this.tracks = [];
|
|
658
|
+
/**
|
|
659
|
+
* @generated from field: string metadata = 5;
|
|
660
|
+
*/
|
|
661
|
+
this.metadata = "";
|
|
662
|
+
/**
|
|
663
|
+
* timestamp when participant joined room, in seconds
|
|
664
|
+
*
|
|
665
|
+
* @generated from field: int64 joined_at = 6;
|
|
666
|
+
*/
|
|
667
|
+
this.joinedAt = import_protobuf.protoInt64.zero;
|
|
668
|
+
/**
|
|
669
|
+
* @generated from field: string name = 9;
|
|
670
|
+
*/
|
|
671
|
+
this.name = "";
|
|
672
|
+
/**
|
|
673
|
+
* @generated from field: uint32 version = 10;
|
|
674
|
+
*/
|
|
675
|
+
this.version = 0;
|
|
676
|
+
/**
|
|
677
|
+
* @generated from field: string region = 12;
|
|
678
|
+
*/
|
|
679
|
+
this.region = "";
|
|
680
|
+
/**
|
|
681
|
+
* indicates the participant has an active publisher connection
|
|
682
|
+
* and can publish to the server
|
|
683
|
+
*
|
|
684
|
+
* @generated from field: bool is_publisher = 13;
|
|
685
|
+
*/
|
|
686
|
+
this.isPublisher = false;
|
|
687
|
+
/**
|
|
688
|
+
* @generated from field: livekit.ParticipantInfo.Kind kind = 14;
|
|
689
|
+
*/
|
|
690
|
+
this.kind = 0 /* STANDARD */;
|
|
691
|
+
/**
|
|
692
|
+
* @generated from field: map<string, string> attributes = 15;
|
|
693
|
+
*/
|
|
694
|
+
this.attributes = {};
|
|
695
|
+
/**
|
|
696
|
+
* @generated from field: livekit.DisconnectReason disconnect_reason = 16;
|
|
697
|
+
*/
|
|
698
|
+
this.disconnectReason = 0 /* UNKNOWN_REASON */;
|
|
699
|
+
import_protobuf.proto3.util.initPartial(data, this);
|
|
700
|
+
}
|
|
701
|
+
static fromBinary(bytes, options) {
|
|
702
|
+
return new _ParticipantInfo().fromBinary(bytes, options);
|
|
703
|
+
}
|
|
704
|
+
static fromJson(jsonValue, options) {
|
|
705
|
+
return new _ParticipantInfo().fromJson(jsonValue, options);
|
|
706
|
+
}
|
|
707
|
+
static fromJsonString(jsonString, options) {
|
|
708
|
+
return new _ParticipantInfo().fromJsonString(jsonString, options);
|
|
709
|
+
}
|
|
710
|
+
static equals(a, b) {
|
|
711
|
+
return import_protobuf.proto3.util.equals(_ParticipantInfo, a, b);
|
|
712
|
+
}
|
|
713
|
+
};
|
|
714
|
+
_ParticipantInfo.runtime = import_protobuf.proto3;
|
|
715
|
+
_ParticipantInfo.typeName = "livekit.ParticipantInfo";
|
|
716
|
+
_ParticipantInfo.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
717
|
+
{
|
|
718
|
+
no: 1,
|
|
719
|
+
name: "sid",
|
|
720
|
+
kind: "scalar",
|
|
721
|
+
T: 9
|
|
722
|
+
/* ScalarType.STRING */
|
|
723
|
+
},
|
|
724
|
+
{
|
|
725
|
+
no: 2,
|
|
726
|
+
name: "identity",
|
|
727
|
+
kind: "scalar",
|
|
728
|
+
T: 9
|
|
729
|
+
/* ScalarType.STRING */
|
|
730
|
+
},
|
|
731
|
+
{ no: 3, name: "state", kind: "enum", T: import_protobuf.proto3.getEnumType(ParticipantInfo_State) },
|
|
732
|
+
{ no: 4, name: "tracks", kind: "message", T: TrackInfo, repeated: true },
|
|
733
|
+
{
|
|
734
|
+
no: 5,
|
|
735
|
+
name: "metadata",
|
|
736
|
+
kind: "scalar",
|
|
737
|
+
T: 9
|
|
738
|
+
/* ScalarType.STRING */
|
|
739
|
+
},
|
|
740
|
+
{
|
|
741
|
+
no: 6,
|
|
742
|
+
name: "joined_at",
|
|
743
|
+
kind: "scalar",
|
|
744
|
+
T: 3
|
|
745
|
+
/* ScalarType.INT64 */
|
|
746
|
+
},
|
|
747
|
+
{
|
|
748
|
+
no: 9,
|
|
749
|
+
name: "name",
|
|
750
|
+
kind: "scalar",
|
|
751
|
+
T: 9
|
|
752
|
+
/* ScalarType.STRING */
|
|
753
|
+
},
|
|
754
|
+
{
|
|
755
|
+
no: 10,
|
|
756
|
+
name: "version",
|
|
757
|
+
kind: "scalar",
|
|
758
|
+
T: 13
|
|
759
|
+
/* ScalarType.UINT32 */
|
|
760
|
+
},
|
|
761
|
+
{ no: 11, name: "permission", kind: "message", T: ParticipantPermission },
|
|
762
|
+
{
|
|
763
|
+
no: 12,
|
|
764
|
+
name: "region",
|
|
765
|
+
kind: "scalar",
|
|
766
|
+
T: 9
|
|
767
|
+
/* ScalarType.STRING */
|
|
768
|
+
},
|
|
769
|
+
{
|
|
770
|
+
no: 13,
|
|
771
|
+
name: "is_publisher",
|
|
772
|
+
kind: "scalar",
|
|
773
|
+
T: 8
|
|
774
|
+
/* ScalarType.BOOL */
|
|
775
|
+
},
|
|
776
|
+
{ no: 14, name: "kind", kind: "enum", T: import_protobuf.proto3.getEnumType(ParticipantInfo_Kind) },
|
|
777
|
+
{ no: 15, name: "attributes", kind: "map", K: 9, V: {
|
|
778
|
+
kind: "scalar",
|
|
779
|
+
T: 9
|
|
780
|
+
/* ScalarType.STRING */
|
|
781
|
+
} },
|
|
782
|
+
{ no: 16, name: "disconnect_reason", kind: "enum", T: import_protobuf.proto3.getEnumType(DisconnectReason) }
|
|
783
|
+
]);
|
|
784
|
+
let ParticipantInfo = _ParticipantInfo;
|
|
785
|
+
var ParticipantInfo_State = /* @__PURE__ */ ((ParticipantInfo_State2) => {
|
|
786
|
+
ParticipantInfo_State2[ParticipantInfo_State2["JOINING"] = 0] = "JOINING";
|
|
787
|
+
ParticipantInfo_State2[ParticipantInfo_State2["JOINED"] = 1] = "JOINED";
|
|
788
|
+
ParticipantInfo_State2[ParticipantInfo_State2["ACTIVE"] = 2] = "ACTIVE";
|
|
789
|
+
ParticipantInfo_State2[ParticipantInfo_State2["DISCONNECTED"] = 3] = "DISCONNECTED";
|
|
790
|
+
return ParticipantInfo_State2;
|
|
791
|
+
})(ParticipantInfo_State || {});
|
|
792
|
+
import_protobuf.proto3.util.setEnumType(ParticipantInfo_State, "livekit.ParticipantInfo.State", [
|
|
793
|
+
{ no: 0, name: "JOINING" },
|
|
794
|
+
{ no: 1, name: "JOINED" },
|
|
795
|
+
{ no: 2, name: "ACTIVE" },
|
|
796
|
+
{ no: 3, name: "DISCONNECTED" }
|
|
797
|
+
]);
|
|
798
|
+
var ParticipantInfo_Kind = /* @__PURE__ */ ((ParticipantInfo_Kind2) => {
|
|
799
|
+
ParticipantInfo_Kind2[ParticipantInfo_Kind2["STANDARD"] = 0] = "STANDARD";
|
|
800
|
+
ParticipantInfo_Kind2[ParticipantInfo_Kind2["INGRESS"] = 1] = "INGRESS";
|
|
801
|
+
ParticipantInfo_Kind2[ParticipantInfo_Kind2["EGRESS"] = 2] = "EGRESS";
|
|
802
|
+
ParticipantInfo_Kind2[ParticipantInfo_Kind2["SIP"] = 3] = "SIP";
|
|
803
|
+
ParticipantInfo_Kind2[ParticipantInfo_Kind2["AGENT"] = 4] = "AGENT";
|
|
804
|
+
return ParticipantInfo_Kind2;
|
|
805
|
+
})(ParticipantInfo_Kind || {});
|
|
806
|
+
import_protobuf.proto3.util.setEnumType(ParticipantInfo_Kind, "livekit.ParticipantInfo.Kind", [
|
|
807
|
+
{ no: 0, name: "STANDARD" },
|
|
808
|
+
{ no: 1, name: "INGRESS" },
|
|
809
|
+
{ no: 2, name: "EGRESS" },
|
|
810
|
+
{ no: 3, name: "SIP" },
|
|
811
|
+
{ no: 4, name: "AGENT" }
|
|
812
|
+
]);
|
|
813
|
+
const _Encryption = class _Encryption extends import_protobuf.Message {
|
|
814
|
+
constructor(data) {
|
|
815
|
+
super();
|
|
816
|
+
import_protobuf.proto3.util.initPartial(data, this);
|
|
817
|
+
}
|
|
818
|
+
static fromBinary(bytes, options) {
|
|
819
|
+
return new _Encryption().fromBinary(bytes, options);
|
|
820
|
+
}
|
|
821
|
+
static fromJson(jsonValue, options) {
|
|
822
|
+
return new _Encryption().fromJson(jsonValue, options);
|
|
823
|
+
}
|
|
824
|
+
static fromJsonString(jsonString, options) {
|
|
825
|
+
return new _Encryption().fromJsonString(jsonString, options);
|
|
826
|
+
}
|
|
827
|
+
static equals(a, b) {
|
|
828
|
+
return import_protobuf.proto3.util.equals(_Encryption, a, b);
|
|
829
|
+
}
|
|
830
|
+
};
|
|
831
|
+
_Encryption.runtime = import_protobuf.proto3;
|
|
832
|
+
_Encryption.typeName = "livekit.Encryption";
|
|
833
|
+
_Encryption.fields = import_protobuf.proto3.util.newFieldList(() => []);
|
|
834
|
+
let Encryption = _Encryption;
|
|
835
|
+
var Encryption_Type = /* @__PURE__ */ ((Encryption_Type2) => {
|
|
836
|
+
Encryption_Type2[Encryption_Type2["NONE"] = 0] = "NONE";
|
|
837
|
+
Encryption_Type2[Encryption_Type2["GCM"] = 1] = "GCM";
|
|
838
|
+
Encryption_Type2[Encryption_Type2["CUSTOM"] = 2] = "CUSTOM";
|
|
839
|
+
return Encryption_Type2;
|
|
840
|
+
})(Encryption_Type || {});
|
|
841
|
+
import_protobuf.proto3.util.setEnumType(Encryption_Type, "livekit.Encryption.Type", [
|
|
842
|
+
{ no: 0, name: "NONE" },
|
|
843
|
+
{ no: 1, name: "GCM" },
|
|
844
|
+
{ no: 2, name: "CUSTOM" }
|
|
845
|
+
]);
|
|
846
|
+
const _SimulcastCodecInfo = class _SimulcastCodecInfo extends import_protobuf.Message {
|
|
847
|
+
constructor(data) {
|
|
848
|
+
super();
|
|
849
|
+
/**
|
|
850
|
+
* @generated from field: string mime_type = 1;
|
|
851
|
+
*/
|
|
852
|
+
this.mimeType = "";
|
|
853
|
+
/**
|
|
854
|
+
* @generated from field: string mid = 2;
|
|
855
|
+
*/
|
|
856
|
+
this.mid = "";
|
|
857
|
+
/**
|
|
858
|
+
* @generated from field: string cid = 3;
|
|
859
|
+
*/
|
|
860
|
+
this.cid = "";
|
|
861
|
+
/**
|
|
862
|
+
* @generated from field: repeated livekit.VideoLayer layers = 4;
|
|
863
|
+
*/
|
|
864
|
+
this.layers = [];
|
|
865
|
+
import_protobuf.proto3.util.initPartial(data, this);
|
|
866
|
+
}
|
|
867
|
+
static fromBinary(bytes, options) {
|
|
868
|
+
return new _SimulcastCodecInfo().fromBinary(bytes, options);
|
|
869
|
+
}
|
|
870
|
+
static fromJson(jsonValue, options) {
|
|
871
|
+
return new _SimulcastCodecInfo().fromJson(jsonValue, options);
|
|
872
|
+
}
|
|
873
|
+
static fromJsonString(jsonString, options) {
|
|
874
|
+
return new _SimulcastCodecInfo().fromJsonString(jsonString, options);
|
|
875
|
+
}
|
|
876
|
+
static equals(a, b) {
|
|
877
|
+
return import_protobuf.proto3.util.equals(_SimulcastCodecInfo, a, b);
|
|
878
|
+
}
|
|
879
|
+
};
|
|
880
|
+
_SimulcastCodecInfo.runtime = import_protobuf.proto3;
|
|
881
|
+
_SimulcastCodecInfo.typeName = "livekit.SimulcastCodecInfo";
|
|
882
|
+
_SimulcastCodecInfo.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
883
|
+
{
|
|
884
|
+
no: 1,
|
|
885
|
+
name: "mime_type",
|
|
886
|
+
kind: "scalar",
|
|
887
|
+
T: 9
|
|
888
|
+
/* ScalarType.STRING */
|
|
889
|
+
},
|
|
890
|
+
{
|
|
891
|
+
no: 2,
|
|
892
|
+
name: "mid",
|
|
893
|
+
kind: "scalar",
|
|
894
|
+
T: 9
|
|
895
|
+
/* ScalarType.STRING */
|
|
896
|
+
},
|
|
897
|
+
{
|
|
898
|
+
no: 3,
|
|
899
|
+
name: "cid",
|
|
900
|
+
kind: "scalar",
|
|
901
|
+
T: 9
|
|
902
|
+
/* ScalarType.STRING */
|
|
903
|
+
},
|
|
904
|
+
{ no: 4, name: "layers", kind: "message", T: VideoLayer, repeated: true }
|
|
905
|
+
]);
|
|
906
|
+
let SimulcastCodecInfo = _SimulcastCodecInfo;
|
|
907
|
+
const _TrackInfo = class _TrackInfo extends import_protobuf.Message {
|
|
908
|
+
constructor(data) {
|
|
909
|
+
super();
|
|
910
|
+
/**
|
|
911
|
+
* @generated from field: string sid = 1;
|
|
912
|
+
*/
|
|
913
|
+
this.sid = "";
|
|
914
|
+
/**
|
|
915
|
+
* @generated from field: livekit.TrackType type = 2;
|
|
916
|
+
*/
|
|
917
|
+
this.type = 0 /* AUDIO */;
|
|
918
|
+
/**
|
|
919
|
+
* @generated from field: string name = 3;
|
|
920
|
+
*/
|
|
921
|
+
this.name = "";
|
|
922
|
+
/**
|
|
923
|
+
* @generated from field: bool muted = 4;
|
|
924
|
+
*/
|
|
925
|
+
this.muted = false;
|
|
926
|
+
/**
|
|
927
|
+
* original width of video (unset for audio)
|
|
928
|
+
* clients may receive a lower resolution version with simulcast
|
|
929
|
+
*
|
|
930
|
+
* @generated from field: uint32 width = 5;
|
|
931
|
+
*/
|
|
932
|
+
this.width = 0;
|
|
933
|
+
/**
|
|
934
|
+
* original height of video (unset for audio)
|
|
935
|
+
*
|
|
936
|
+
* @generated from field: uint32 height = 6;
|
|
937
|
+
*/
|
|
938
|
+
this.height = 0;
|
|
939
|
+
/**
|
|
940
|
+
* true if track is simulcasted
|
|
941
|
+
*
|
|
942
|
+
* @generated from field: bool simulcast = 7;
|
|
943
|
+
*/
|
|
944
|
+
this.simulcast = false;
|
|
945
|
+
/**
|
|
946
|
+
* true if DTX (Discontinuous Transmission) is disabled for audio
|
|
947
|
+
*
|
|
948
|
+
* @generated from field: bool disable_dtx = 8;
|
|
949
|
+
*/
|
|
950
|
+
this.disableDtx = false;
|
|
951
|
+
/**
|
|
952
|
+
* source of media
|
|
953
|
+
*
|
|
954
|
+
* @generated from field: livekit.TrackSource source = 9;
|
|
955
|
+
*/
|
|
956
|
+
this.source = 0 /* UNKNOWN */;
|
|
957
|
+
/**
|
|
958
|
+
* @generated from field: repeated livekit.VideoLayer layers = 10;
|
|
959
|
+
*/
|
|
960
|
+
this.layers = [];
|
|
961
|
+
/**
|
|
962
|
+
* mime type of codec
|
|
963
|
+
*
|
|
964
|
+
* @generated from field: string mime_type = 11;
|
|
965
|
+
*/
|
|
966
|
+
this.mimeType = "";
|
|
967
|
+
/**
|
|
968
|
+
* @generated from field: string mid = 12;
|
|
969
|
+
*/
|
|
970
|
+
this.mid = "";
|
|
971
|
+
/**
|
|
972
|
+
* @generated from field: repeated livekit.SimulcastCodecInfo codecs = 13;
|
|
973
|
+
*/
|
|
974
|
+
this.codecs = [];
|
|
975
|
+
/**
|
|
976
|
+
* @generated from field: bool stereo = 14;
|
|
977
|
+
*/
|
|
978
|
+
this.stereo = false;
|
|
979
|
+
/**
|
|
980
|
+
* true if RED (Redundant Encoding) is disabled for audio
|
|
981
|
+
*
|
|
982
|
+
* @generated from field: bool disable_red = 15;
|
|
983
|
+
*/
|
|
984
|
+
this.disableRed = false;
|
|
985
|
+
/**
|
|
986
|
+
* @generated from field: livekit.Encryption.Type encryption = 16;
|
|
987
|
+
*/
|
|
988
|
+
this.encryption = 0 /* NONE */;
|
|
989
|
+
/**
|
|
990
|
+
* @generated from field: string stream = 17;
|
|
991
|
+
*/
|
|
992
|
+
this.stream = "";
|
|
993
|
+
/**
|
|
994
|
+
* @generated from field: repeated livekit.AudioTrackFeature audio_features = 19;
|
|
995
|
+
*/
|
|
996
|
+
this.audioFeatures = [];
|
|
997
|
+
import_protobuf.proto3.util.initPartial(data, this);
|
|
998
|
+
}
|
|
999
|
+
static fromBinary(bytes, options) {
|
|
1000
|
+
return new _TrackInfo().fromBinary(bytes, options);
|
|
1001
|
+
}
|
|
1002
|
+
static fromJson(jsonValue, options) {
|
|
1003
|
+
return new _TrackInfo().fromJson(jsonValue, options);
|
|
1004
|
+
}
|
|
1005
|
+
static fromJsonString(jsonString, options) {
|
|
1006
|
+
return new _TrackInfo().fromJsonString(jsonString, options);
|
|
1007
|
+
}
|
|
1008
|
+
static equals(a, b) {
|
|
1009
|
+
return import_protobuf.proto3.util.equals(_TrackInfo, a, b);
|
|
1010
|
+
}
|
|
1011
|
+
};
|
|
1012
|
+
_TrackInfo.runtime = import_protobuf.proto3;
|
|
1013
|
+
_TrackInfo.typeName = "livekit.TrackInfo";
|
|
1014
|
+
_TrackInfo.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
1015
|
+
{
|
|
1016
|
+
no: 1,
|
|
1017
|
+
name: "sid",
|
|
1018
|
+
kind: "scalar",
|
|
1019
|
+
T: 9
|
|
1020
|
+
/* ScalarType.STRING */
|
|
1021
|
+
},
|
|
1022
|
+
{ no: 2, name: "type", kind: "enum", T: import_protobuf.proto3.getEnumType(TrackType) },
|
|
1023
|
+
{
|
|
1024
|
+
no: 3,
|
|
1025
|
+
name: "name",
|
|
1026
|
+
kind: "scalar",
|
|
1027
|
+
T: 9
|
|
1028
|
+
/* ScalarType.STRING */
|
|
1029
|
+
},
|
|
1030
|
+
{
|
|
1031
|
+
no: 4,
|
|
1032
|
+
name: "muted",
|
|
1033
|
+
kind: "scalar",
|
|
1034
|
+
T: 8
|
|
1035
|
+
/* ScalarType.BOOL */
|
|
1036
|
+
},
|
|
1037
|
+
{
|
|
1038
|
+
no: 5,
|
|
1039
|
+
name: "width",
|
|
1040
|
+
kind: "scalar",
|
|
1041
|
+
T: 13
|
|
1042
|
+
/* ScalarType.UINT32 */
|
|
1043
|
+
},
|
|
1044
|
+
{
|
|
1045
|
+
no: 6,
|
|
1046
|
+
name: "height",
|
|
1047
|
+
kind: "scalar",
|
|
1048
|
+
T: 13
|
|
1049
|
+
/* ScalarType.UINT32 */
|
|
1050
|
+
},
|
|
1051
|
+
{
|
|
1052
|
+
no: 7,
|
|
1053
|
+
name: "simulcast",
|
|
1054
|
+
kind: "scalar",
|
|
1055
|
+
T: 8
|
|
1056
|
+
/* ScalarType.BOOL */
|
|
1057
|
+
},
|
|
1058
|
+
{
|
|
1059
|
+
no: 8,
|
|
1060
|
+
name: "disable_dtx",
|
|
1061
|
+
kind: "scalar",
|
|
1062
|
+
T: 8
|
|
1063
|
+
/* ScalarType.BOOL */
|
|
1064
|
+
},
|
|
1065
|
+
{ no: 9, name: "source", kind: "enum", T: import_protobuf.proto3.getEnumType(TrackSource) },
|
|
1066
|
+
{ no: 10, name: "layers", kind: "message", T: VideoLayer, repeated: true },
|
|
1067
|
+
{
|
|
1068
|
+
no: 11,
|
|
1069
|
+
name: "mime_type",
|
|
1070
|
+
kind: "scalar",
|
|
1071
|
+
T: 9
|
|
1072
|
+
/* ScalarType.STRING */
|
|
1073
|
+
},
|
|
1074
|
+
{
|
|
1075
|
+
no: 12,
|
|
1076
|
+
name: "mid",
|
|
1077
|
+
kind: "scalar",
|
|
1078
|
+
T: 9
|
|
1079
|
+
/* ScalarType.STRING */
|
|
1080
|
+
},
|
|
1081
|
+
{ no: 13, name: "codecs", kind: "message", T: SimulcastCodecInfo, repeated: true },
|
|
1082
|
+
{
|
|
1083
|
+
no: 14,
|
|
1084
|
+
name: "stereo",
|
|
1085
|
+
kind: "scalar",
|
|
1086
|
+
T: 8
|
|
1087
|
+
/* ScalarType.BOOL */
|
|
1088
|
+
},
|
|
1089
|
+
{
|
|
1090
|
+
no: 15,
|
|
1091
|
+
name: "disable_red",
|
|
1092
|
+
kind: "scalar",
|
|
1093
|
+
T: 8
|
|
1094
|
+
/* ScalarType.BOOL */
|
|
1095
|
+
},
|
|
1096
|
+
{ no: 16, name: "encryption", kind: "enum", T: import_protobuf.proto3.getEnumType(Encryption_Type) },
|
|
1097
|
+
{
|
|
1098
|
+
no: 17,
|
|
1099
|
+
name: "stream",
|
|
1100
|
+
kind: "scalar",
|
|
1101
|
+
T: 9
|
|
1102
|
+
/* ScalarType.STRING */
|
|
1103
|
+
},
|
|
1104
|
+
{ no: 18, name: "version", kind: "message", T: TimedVersion },
|
|
1105
|
+
{ no: 19, name: "audio_features", kind: "enum", T: import_protobuf.proto3.getEnumType(AudioTrackFeature), repeated: true }
|
|
1106
|
+
]);
|
|
1107
|
+
let TrackInfo = _TrackInfo;
|
|
1108
|
+
const _VideoLayer = class _VideoLayer extends import_protobuf.Message {
|
|
1109
|
+
constructor(data) {
|
|
1110
|
+
super();
|
|
1111
|
+
/**
|
|
1112
|
+
* for tracks with a single layer, this should be HIGH
|
|
1113
|
+
*
|
|
1114
|
+
* @generated from field: livekit.VideoQuality quality = 1;
|
|
1115
|
+
*/
|
|
1116
|
+
this.quality = 0 /* LOW */;
|
|
1117
|
+
/**
|
|
1118
|
+
* @generated from field: uint32 width = 2;
|
|
1119
|
+
*/
|
|
1120
|
+
this.width = 0;
|
|
1121
|
+
/**
|
|
1122
|
+
* @generated from field: uint32 height = 3;
|
|
1123
|
+
*/
|
|
1124
|
+
this.height = 0;
|
|
1125
|
+
/**
|
|
1126
|
+
* target bitrate in bit per second (bps), server will measure actual
|
|
1127
|
+
*
|
|
1128
|
+
* @generated from field: uint32 bitrate = 4;
|
|
1129
|
+
*/
|
|
1130
|
+
this.bitrate = 0;
|
|
1131
|
+
/**
|
|
1132
|
+
* @generated from field: uint32 ssrc = 5;
|
|
1133
|
+
*/
|
|
1134
|
+
this.ssrc = 0;
|
|
1135
|
+
import_protobuf.proto3.util.initPartial(data, this);
|
|
1136
|
+
}
|
|
1137
|
+
static fromBinary(bytes, options) {
|
|
1138
|
+
return new _VideoLayer().fromBinary(bytes, options);
|
|
1139
|
+
}
|
|
1140
|
+
static fromJson(jsonValue, options) {
|
|
1141
|
+
return new _VideoLayer().fromJson(jsonValue, options);
|
|
1142
|
+
}
|
|
1143
|
+
static fromJsonString(jsonString, options) {
|
|
1144
|
+
return new _VideoLayer().fromJsonString(jsonString, options);
|
|
1145
|
+
}
|
|
1146
|
+
static equals(a, b) {
|
|
1147
|
+
return import_protobuf.proto3.util.equals(_VideoLayer, a, b);
|
|
1148
|
+
}
|
|
1149
|
+
};
|
|
1150
|
+
_VideoLayer.runtime = import_protobuf.proto3;
|
|
1151
|
+
_VideoLayer.typeName = "livekit.VideoLayer";
|
|
1152
|
+
_VideoLayer.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
1153
|
+
{ no: 1, name: "quality", kind: "enum", T: import_protobuf.proto3.getEnumType(VideoQuality) },
|
|
1154
|
+
{
|
|
1155
|
+
no: 2,
|
|
1156
|
+
name: "width",
|
|
1157
|
+
kind: "scalar",
|
|
1158
|
+
T: 13
|
|
1159
|
+
/* ScalarType.UINT32 */
|
|
1160
|
+
},
|
|
1161
|
+
{
|
|
1162
|
+
no: 3,
|
|
1163
|
+
name: "height",
|
|
1164
|
+
kind: "scalar",
|
|
1165
|
+
T: 13
|
|
1166
|
+
/* ScalarType.UINT32 */
|
|
1167
|
+
},
|
|
1168
|
+
{
|
|
1169
|
+
no: 4,
|
|
1170
|
+
name: "bitrate",
|
|
1171
|
+
kind: "scalar",
|
|
1172
|
+
T: 13
|
|
1173
|
+
/* ScalarType.UINT32 */
|
|
1174
|
+
},
|
|
1175
|
+
{
|
|
1176
|
+
no: 5,
|
|
1177
|
+
name: "ssrc",
|
|
1178
|
+
kind: "scalar",
|
|
1179
|
+
T: 13
|
|
1180
|
+
/* ScalarType.UINT32 */
|
|
1181
|
+
}
|
|
1182
|
+
]);
|
|
1183
|
+
let VideoLayer = _VideoLayer;
|
|
1184
|
+
const _DataPacket = class _DataPacket extends import_protobuf.Message {
|
|
1185
|
+
constructor(data) {
|
|
1186
|
+
super();
|
|
1187
|
+
/**
|
|
1188
|
+
* @generated from field: livekit.DataPacket.Kind kind = 1 [deprecated = true];
|
|
1189
|
+
* @deprecated
|
|
1190
|
+
*/
|
|
1191
|
+
this.kind = 0 /* RELIABLE */;
|
|
1192
|
+
/**
|
|
1193
|
+
* participant identity of user that sent the message
|
|
1194
|
+
*
|
|
1195
|
+
* @generated from field: string participant_identity = 4;
|
|
1196
|
+
*/
|
|
1197
|
+
this.participantIdentity = "";
|
|
1198
|
+
/**
|
|
1199
|
+
* identities of participants who will receive the message (sent to all by default)
|
|
1200
|
+
*
|
|
1201
|
+
* @generated from field: repeated string destination_identities = 5;
|
|
1202
|
+
*/
|
|
1203
|
+
this.destinationIdentities = [];
|
|
1204
|
+
/**
|
|
1205
|
+
* @generated from oneof livekit.DataPacket.value
|
|
1206
|
+
*/
|
|
1207
|
+
this.value = { case: void 0 };
|
|
1208
|
+
import_protobuf.proto3.util.initPartial(data, this);
|
|
1209
|
+
}
|
|
1210
|
+
static fromBinary(bytes, options) {
|
|
1211
|
+
return new _DataPacket().fromBinary(bytes, options);
|
|
1212
|
+
}
|
|
1213
|
+
static fromJson(jsonValue, options) {
|
|
1214
|
+
return new _DataPacket().fromJson(jsonValue, options);
|
|
1215
|
+
}
|
|
1216
|
+
static fromJsonString(jsonString, options) {
|
|
1217
|
+
return new _DataPacket().fromJsonString(jsonString, options);
|
|
1218
|
+
}
|
|
1219
|
+
static equals(a, b) {
|
|
1220
|
+
return import_protobuf.proto3.util.equals(_DataPacket, a, b);
|
|
1221
|
+
}
|
|
1222
|
+
};
|
|
1223
|
+
_DataPacket.runtime = import_protobuf.proto3;
|
|
1224
|
+
_DataPacket.typeName = "livekit.DataPacket";
|
|
1225
|
+
_DataPacket.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
1226
|
+
{ no: 1, name: "kind", kind: "enum", T: import_protobuf.proto3.getEnumType(DataPacket_Kind) },
|
|
1227
|
+
{
|
|
1228
|
+
no: 4,
|
|
1229
|
+
name: "participant_identity",
|
|
1230
|
+
kind: "scalar",
|
|
1231
|
+
T: 9
|
|
1232
|
+
/* ScalarType.STRING */
|
|
1233
|
+
},
|
|
1234
|
+
{ no: 5, name: "destination_identities", kind: "scalar", T: 9, repeated: true },
|
|
1235
|
+
{ no: 2, name: "user", kind: "message", T: UserPacket, oneof: "value" },
|
|
1236
|
+
{ no: 3, name: "speaker", kind: "message", T: ActiveSpeakerUpdate, oneof: "value" },
|
|
1237
|
+
{ no: 6, name: "sip_dtmf", kind: "message", T: SipDTMF, oneof: "value" },
|
|
1238
|
+
{ no: 7, name: "transcription", kind: "message", T: Transcription, oneof: "value" },
|
|
1239
|
+
{ no: 8, name: "metrics", kind: "message", T: import_livekit_metrics_pb.MetricsBatch, oneof: "value" },
|
|
1240
|
+
{ no: 9, name: "chat_message", kind: "message", T: ChatMessage, oneof: "value" },
|
|
1241
|
+
{ no: 10, name: "rpc_request", kind: "message", T: RpcRequest, oneof: "value" },
|
|
1242
|
+
{ no: 11, name: "rpc_ack", kind: "message", T: RpcAck, oneof: "value" },
|
|
1243
|
+
{ no: 12, name: "rpc_response", kind: "message", T: RpcResponse, oneof: "value" }
|
|
1244
|
+
]);
|
|
1245
|
+
let DataPacket = _DataPacket;
|
|
1246
|
+
var DataPacket_Kind = /* @__PURE__ */ ((DataPacket_Kind2) => {
|
|
1247
|
+
DataPacket_Kind2[DataPacket_Kind2["RELIABLE"] = 0] = "RELIABLE";
|
|
1248
|
+
DataPacket_Kind2[DataPacket_Kind2["LOSSY"] = 1] = "LOSSY";
|
|
1249
|
+
return DataPacket_Kind2;
|
|
1250
|
+
})(DataPacket_Kind || {});
|
|
1251
|
+
import_protobuf.proto3.util.setEnumType(DataPacket_Kind, "livekit.DataPacket.Kind", [
|
|
1252
|
+
{ no: 0, name: "RELIABLE" },
|
|
1253
|
+
{ no: 1, name: "LOSSY" }
|
|
1254
|
+
]);
|
|
1255
|
+
const _ActiveSpeakerUpdate = class _ActiveSpeakerUpdate extends import_protobuf.Message {
|
|
1256
|
+
constructor(data) {
|
|
1257
|
+
super();
|
|
1258
|
+
/**
|
|
1259
|
+
* @generated from field: repeated livekit.SpeakerInfo speakers = 1;
|
|
1260
|
+
*/
|
|
1261
|
+
this.speakers = [];
|
|
1262
|
+
import_protobuf.proto3.util.initPartial(data, this);
|
|
1263
|
+
}
|
|
1264
|
+
static fromBinary(bytes, options) {
|
|
1265
|
+
return new _ActiveSpeakerUpdate().fromBinary(bytes, options);
|
|
1266
|
+
}
|
|
1267
|
+
static fromJson(jsonValue, options) {
|
|
1268
|
+
return new _ActiveSpeakerUpdate().fromJson(jsonValue, options);
|
|
1269
|
+
}
|
|
1270
|
+
static fromJsonString(jsonString, options) {
|
|
1271
|
+
return new _ActiveSpeakerUpdate().fromJsonString(jsonString, options);
|
|
1272
|
+
}
|
|
1273
|
+
static equals(a, b) {
|
|
1274
|
+
return import_protobuf.proto3.util.equals(_ActiveSpeakerUpdate, a, b);
|
|
1275
|
+
}
|
|
1276
|
+
};
|
|
1277
|
+
_ActiveSpeakerUpdate.runtime = import_protobuf.proto3;
|
|
1278
|
+
_ActiveSpeakerUpdate.typeName = "livekit.ActiveSpeakerUpdate";
|
|
1279
|
+
_ActiveSpeakerUpdate.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
1280
|
+
{ no: 1, name: "speakers", kind: "message", T: SpeakerInfo, repeated: true }
|
|
1281
|
+
]);
|
|
1282
|
+
let ActiveSpeakerUpdate = _ActiveSpeakerUpdate;
|
|
1283
|
+
const _SpeakerInfo = class _SpeakerInfo extends import_protobuf.Message {
|
|
1284
|
+
constructor(data) {
|
|
1285
|
+
super();
|
|
1286
|
+
/**
|
|
1287
|
+
* @generated from field: string sid = 1;
|
|
1288
|
+
*/
|
|
1289
|
+
this.sid = "";
|
|
1290
|
+
/**
|
|
1291
|
+
* audio level, 0-1.0, 1 is loudest
|
|
1292
|
+
*
|
|
1293
|
+
* @generated from field: float level = 2;
|
|
1294
|
+
*/
|
|
1295
|
+
this.level = 0;
|
|
1296
|
+
/**
|
|
1297
|
+
* true if speaker is currently active
|
|
1298
|
+
*
|
|
1299
|
+
* @generated from field: bool active = 3;
|
|
1300
|
+
*/
|
|
1301
|
+
this.active = false;
|
|
1302
|
+
import_protobuf.proto3.util.initPartial(data, this);
|
|
1303
|
+
}
|
|
1304
|
+
static fromBinary(bytes, options) {
|
|
1305
|
+
return new _SpeakerInfo().fromBinary(bytes, options);
|
|
1306
|
+
}
|
|
1307
|
+
static fromJson(jsonValue, options) {
|
|
1308
|
+
return new _SpeakerInfo().fromJson(jsonValue, options);
|
|
1309
|
+
}
|
|
1310
|
+
static fromJsonString(jsonString, options) {
|
|
1311
|
+
return new _SpeakerInfo().fromJsonString(jsonString, options);
|
|
1312
|
+
}
|
|
1313
|
+
static equals(a, b) {
|
|
1314
|
+
return import_protobuf.proto3.util.equals(_SpeakerInfo, a, b);
|
|
1315
|
+
}
|
|
1316
|
+
};
|
|
1317
|
+
_SpeakerInfo.runtime = import_protobuf.proto3;
|
|
1318
|
+
_SpeakerInfo.typeName = "livekit.SpeakerInfo";
|
|
1319
|
+
_SpeakerInfo.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
1320
|
+
{
|
|
1321
|
+
no: 1,
|
|
1322
|
+
name: "sid",
|
|
1323
|
+
kind: "scalar",
|
|
1324
|
+
T: 9
|
|
1325
|
+
/* ScalarType.STRING */
|
|
1326
|
+
},
|
|
1327
|
+
{
|
|
1328
|
+
no: 2,
|
|
1329
|
+
name: "level",
|
|
1330
|
+
kind: "scalar",
|
|
1331
|
+
T: 2
|
|
1332
|
+
/* ScalarType.FLOAT */
|
|
1333
|
+
},
|
|
1334
|
+
{
|
|
1335
|
+
no: 3,
|
|
1336
|
+
name: "active",
|
|
1337
|
+
kind: "scalar",
|
|
1338
|
+
T: 8
|
|
1339
|
+
/* ScalarType.BOOL */
|
|
1340
|
+
}
|
|
1341
|
+
]);
|
|
1342
|
+
let SpeakerInfo = _SpeakerInfo;
|
|
1343
|
+
const _UserPacket = class _UserPacket extends import_protobuf.Message {
|
|
1344
|
+
constructor(data) {
|
|
1345
|
+
super();
|
|
1346
|
+
/**
|
|
1347
|
+
* participant ID of user that sent the message
|
|
1348
|
+
*
|
|
1349
|
+
* @generated from field: string participant_sid = 1 [deprecated = true];
|
|
1350
|
+
* @deprecated
|
|
1351
|
+
*/
|
|
1352
|
+
this.participantSid = "";
|
|
1353
|
+
/**
|
|
1354
|
+
* @generated from field: string participant_identity = 5 [deprecated = true];
|
|
1355
|
+
* @deprecated
|
|
1356
|
+
*/
|
|
1357
|
+
this.participantIdentity = "";
|
|
1358
|
+
/**
|
|
1359
|
+
* user defined payload
|
|
1360
|
+
*
|
|
1361
|
+
* @generated from field: bytes payload = 2;
|
|
1362
|
+
*/
|
|
1363
|
+
this.payload = new Uint8Array(0);
|
|
1364
|
+
/**
|
|
1365
|
+
* the ID of the participants who will receive the message (sent to all by default)
|
|
1366
|
+
*
|
|
1367
|
+
* @generated from field: repeated string destination_sids = 3 [deprecated = true];
|
|
1368
|
+
* @deprecated
|
|
1369
|
+
*/
|
|
1370
|
+
this.destinationSids = [];
|
|
1371
|
+
/**
|
|
1372
|
+
* identities of participants who will receive the message (sent to all by default)
|
|
1373
|
+
*
|
|
1374
|
+
* @generated from field: repeated string destination_identities = 6 [deprecated = true];
|
|
1375
|
+
* @deprecated
|
|
1376
|
+
*/
|
|
1377
|
+
this.destinationIdentities = [];
|
|
1378
|
+
import_protobuf.proto3.util.initPartial(data, this);
|
|
1379
|
+
}
|
|
1380
|
+
static fromBinary(bytes, options) {
|
|
1381
|
+
return new _UserPacket().fromBinary(bytes, options);
|
|
1382
|
+
}
|
|
1383
|
+
static fromJson(jsonValue, options) {
|
|
1384
|
+
return new _UserPacket().fromJson(jsonValue, options);
|
|
1385
|
+
}
|
|
1386
|
+
static fromJsonString(jsonString, options) {
|
|
1387
|
+
return new _UserPacket().fromJsonString(jsonString, options);
|
|
1388
|
+
}
|
|
1389
|
+
static equals(a, b) {
|
|
1390
|
+
return import_protobuf.proto3.util.equals(_UserPacket, a, b);
|
|
1391
|
+
}
|
|
1392
|
+
};
|
|
1393
|
+
_UserPacket.runtime = import_protobuf.proto3;
|
|
1394
|
+
_UserPacket.typeName = "livekit.UserPacket";
|
|
1395
|
+
_UserPacket.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
1396
|
+
{
|
|
1397
|
+
no: 1,
|
|
1398
|
+
name: "participant_sid",
|
|
1399
|
+
kind: "scalar",
|
|
1400
|
+
T: 9
|
|
1401
|
+
/* ScalarType.STRING */
|
|
1402
|
+
},
|
|
1403
|
+
{
|
|
1404
|
+
no: 5,
|
|
1405
|
+
name: "participant_identity",
|
|
1406
|
+
kind: "scalar",
|
|
1407
|
+
T: 9
|
|
1408
|
+
/* ScalarType.STRING */
|
|
1409
|
+
},
|
|
1410
|
+
{
|
|
1411
|
+
no: 2,
|
|
1412
|
+
name: "payload",
|
|
1413
|
+
kind: "scalar",
|
|
1414
|
+
T: 12
|
|
1415
|
+
/* ScalarType.BYTES */
|
|
1416
|
+
},
|
|
1417
|
+
{ no: 3, name: "destination_sids", kind: "scalar", T: 9, repeated: true },
|
|
1418
|
+
{ no: 6, name: "destination_identities", kind: "scalar", T: 9, repeated: true },
|
|
1419
|
+
{ no: 4, name: "topic", kind: "scalar", T: 9, opt: true },
|
|
1420
|
+
{ no: 8, name: "id", kind: "scalar", T: 9, opt: true },
|
|
1421
|
+
{ no: 9, name: "start_time", kind: "scalar", T: 4, opt: true },
|
|
1422
|
+
{ no: 10, name: "end_time", kind: "scalar", T: 4, opt: true }
|
|
1423
|
+
]);
|
|
1424
|
+
let UserPacket = _UserPacket;
|
|
1425
|
+
const _SipDTMF = class _SipDTMF extends import_protobuf.Message {
|
|
1426
|
+
constructor(data) {
|
|
1427
|
+
super();
|
|
1428
|
+
/**
|
|
1429
|
+
* @generated from field: uint32 code = 3;
|
|
1430
|
+
*/
|
|
1431
|
+
this.code = 0;
|
|
1432
|
+
/**
|
|
1433
|
+
* @generated from field: string digit = 4;
|
|
1434
|
+
*/
|
|
1435
|
+
this.digit = "";
|
|
1436
|
+
import_protobuf.proto3.util.initPartial(data, this);
|
|
1437
|
+
}
|
|
1438
|
+
static fromBinary(bytes, options) {
|
|
1439
|
+
return new _SipDTMF().fromBinary(bytes, options);
|
|
1440
|
+
}
|
|
1441
|
+
static fromJson(jsonValue, options) {
|
|
1442
|
+
return new _SipDTMF().fromJson(jsonValue, options);
|
|
1443
|
+
}
|
|
1444
|
+
static fromJsonString(jsonString, options) {
|
|
1445
|
+
return new _SipDTMF().fromJsonString(jsonString, options);
|
|
1446
|
+
}
|
|
1447
|
+
static equals(a, b) {
|
|
1448
|
+
return import_protobuf.proto3.util.equals(_SipDTMF, a, b);
|
|
1449
|
+
}
|
|
1450
|
+
};
|
|
1451
|
+
_SipDTMF.runtime = import_protobuf.proto3;
|
|
1452
|
+
_SipDTMF.typeName = "livekit.SipDTMF";
|
|
1453
|
+
_SipDTMF.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
1454
|
+
{
|
|
1455
|
+
no: 3,
|
|
1456
|
+
name: "code",
|
|
1457
|
+
kind: "scalar",
|
|
1458
|
+
T: 13
|
|
1459
|
+
/* ScalarType.UINT32 */
|
|
1460
|
+
},
|
|
1461
|
+
{
|
|
1462
|
+
no: 4,
|
|
1463
|
+
name: "digit",
|
|
1464
|
+
kind: "scalar",
|
|
1465
|
+
T: 9
|
|
1466
|
+
/* ScalarType.STRING */
|
|
1467
|
+
}
|
|
1468
|
+
]);
|
|
1469
|
+
let SipDTMF = _SipDTMF;
|
|
1470
|
+
const _Transcription = class _Transcription extends import_protobuf.Message {
|
|
1471
|
+
constructor(data) {
|
|
1472
|
+
super();
|
|
1473
|
+
/**
|
|
1474
|
+
* Participant that got its speech transcribed
|
|
1475
|
+
*
|
|
1476
|
+
* @generated from field: string transcribed_participant_identity = 2;
|
|
1477
|
+
*/
|
|
1478
|
+
this.transcribedParticipantIdentity = "";
|
|
1479
|
+
/**
|
|
1480
|
+
* @generated from field: string track_id = 3;
|
|
1481
|
+
*/
|
|
1482
|
+
this.trackId = "";
|
|
1483
|
+
/**
|
|
1484
|
+
* @generated from field: repeated livekit.TranscriptionSegment segments = 4;
|
|
1485
|
+
*/
|
|
1486
|
+
this.segments = [];
|
|
1487
|
+
import_protobuf.proto3.util.initPartial(data, this);
|
|
1488
|
+
}
|
|
1489
|
+
static fromBinary(bytes, options) {
|
|
1490
|
+
return new _Transcription().fromBinary(bytes, options);
|
|
1491
|
+
}
|
|
1492
|
+
static fromJson(jsonValue, options) {
|
|
1493
|
+
return new _Transcription().fromJson(jsonValue, options);
|
|
1494
|
+
}
|
|
1495
|
+
static fromJsonString(jsonString, options) {
|
|
1496
|
+
return new _Transcription().fromJsonString(jsonString, options);
|
|
1497
|
+
}
|
|
1498
|
+
static equals(a, b) {
|
|
1499
|
+
return import_protobuf.proto3.util.equals(_Transcription, a, b);
|
|
1500
|
+
}
|
|
1501
|
+
};
|
|
1502
|
+
_Transcription.runtime = import_protobuf.proto3;
|
|
1503
|
+
_Transcription.typeName = "livekit.Transcription";
|
|
1504
|
+
_Transcription.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
1505
|
+
{
|
|
1506
|
+
no: 2,
|
|
1507
|
+
name: "transcribed_participant_identity",
|
|
1508
|
+
kind: "scalar",
|
|
1509
|
+
T: 9
|
|
1510
|
+
/* ScalarType.STRING */
|
|
1511
|
+
},
|
|
1512
|
+
{
|
|
1513
|
+
no: 3,
|
|
1514
|
+
name: "track_id",
|
|
1515
|
+
kind: "scalar",
|
|
1516
|
+
T: 9
|
|
1517
|
+
/* ScalarType.STRING */
|
|
1518
|
+
},
|
|
1519
|
+
{ no: 4, name: "segments", kind: "message", T: TranscriptionSegment, repeated: true }
|
|
1520
|
+
]);
|
|
1521
|
+
let Transcription = _Transcription;
|
|
1522
|
+
const _TranscriptionSegment = class _TranscriptionSegment extends import_protobuf.Message {
|
|
1523
|
+
constructor(data) {
|
|
1524
|
+
super();
|
|
1525
|
+
/**
|
|
1526
|
+
* @generated from field: string id = 1;
|
|
1527
|
+
*/
|
|
1528
|
+
this.id = "";
|
|
1529
|
+
/**
|
|
1530
|
+
* @generated from field: string text = 2;
|
|
1531
|
+
*/
|
|
1532
|
+
this.text = "";
|
|
1533
|
+
/**
|
|
1534
|
+
* @generated from field: uint64 start_time = 3;
|
|
1535
|
+
*/
|
|
1536
|
+
this.startTime = import_protobuf.protoInt64.zero;
|
|
1537
|
+
/**
|
|
1538
|
+
* @generated from field: uint64 end_time = 4;
|
|
1539
|
+
*/
|
|
1540
|
+
this.endTime = import_protobuf.protoInt64.zero;
|
|
1541
|
+
/**
|
|
1542
|
+
* @generated from field: bool final = 5;
|
|
1543
|
+
*/
|
|
1544
|
+
this.final = false;
|
|
1545
|
+
/**
|
|
1546
|
+
* @generated from field: string language = 6;
|
|
1547
|
+
*/
|
|
1548
|
+
this.language = "";
|
|
1549
|
+
import_protobuf.proto3.util.initPartial(data, this);
|
|
1550
|
+
}
|
|
1551
|
+
static fromBinary(bytes, options) {
|
|
1552
|
+
return new _TranscriptionSegment().fromBinary(bytes, options);
|
|
1553
|
+
}
|
|
1554
|
+
static fromJson(jsonValue, options) {
|
|
1555
|
+
return new _TranscriptionSegment().fromJson(jsonValue, options);
|
|
1556
|
+
}
|
|
1557
|
+
static fromJsonString(jsonString, options) {
|
|
1558
|
+
return new _TranscriptionSegment().fromJsonString(jsonString, options);
|
|
1559
|
+
}
|
|
1560
|
+
static equals(a, b) {
|
|
1561
|
+
return import_protobuf.proto3.util.equals(_TranscriptionSegment, a, b);
|
|
1562
|
+
}
|
|
1563
|
+
};
|
|
1564
|
+
_TranscriptionSegment.runtime = import_protobuf.proto3;
|
|
1565
|
+
_TranscriptionSegment.typeName = "livekit.TranscriptionSegment";
|
|
1566
|
+
_TranscriptionSegment.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
1567
|
+
{
|
|
1568
|
+
no: 1,
|
|
1569
|
+
name: "id",
|
|
1570
|
+
kind: "scalar",
|
|
1571
|
+
T: 9
|
|
1572
|
+
/* ScalarType.STRING */
|
|
1573
|
+
},
|
|
1574
|
+
{
|
|
1575
|
+
no: 2,
|
|
1576
|
+
name: "text",
|
|
1577
|
+
kind: "scalar",
|
|
1578
|
+
T: 9
|
|
1579
|
+
/* ScalarType.STRING */
|
|
1580
|
+
},
|
|
1581
|
+
{
|
|
1582
|
+
no: 3,
|
|
1583
|
+
name: "start_time",
|
|
1584
|
+
kind: "scalar",
|
|
1585
|
+
T: 4
|
|
1586
|
+
/* ScalarType.UINT64 */
|
|
1587
|
+
},
|
|
1588
|
+
{
|
|
1589
|
+
no: 4,
|
|
1590
|
+
name: "end_time",
|
|
1591
|
+
kind: "scalar",
|
|
1592
|
+
T: 4
|
|
1593
|
+
/* ScalarType.UINT64 */
|
|
1594
|
+
},
|
|
1595
|
+
{
|
|
1596
|
+
no: 5,
|
|
1597
|
+
name: "final",
|
|
1598
|
+
kind: "scalar",
|
|
1599
|
+
T: 8
|
|
1600
|
+
/* ScalarType.BOOL */
|
|
1601
|
+
},
|
|
1602
|
+
{
|
|
1603
|
+
no: 6,
|
|
1604
|
+
name: "language",
|
|
1605
|
+
kind: "scalar",
|
|
1606
|
+
T: 9
|
|
1607
|
+
/* ScalarType.STRING */
|
|
1608
|
+
}
|
|
1609
|
+
]);
|
|
1610
|
+
let TranscriptionSegment = _TranscriptionSegment;
|
|
1611
|
+
const _ChatMessage = class _ChatMessage extends import_protobuf.Message {
|
|
1612
|
+
constructor(data) {
|
|
1613
|
+
super();
|
|
1614
|
+
/**
|
|
1615
|
+
* uuid
|
|
1616
|
+
*
|
|
1617
|
+
* @generated from field: string id = 1;
|
|
1618
|
+
*/
|
|
1619
|
+
this.id = "";
|
|
1620
|
+
/**
|
|
1621
|
+
* @generated from field: int64 timestamp = 2;
|
|
1622
|
+
*/
|
|
1623
|
+
this.timestamp = import_protobuf.protoInt64.zero;
|
|
1624
|
+
/**
|
|
1625
|
+
* @generated from field: string message = 4;
|
|
1626
|
+
*/
|
|
1627
|
+
this.message = "";
|
|
1628
|
+
/**
|
|
1629
|
+
* true to remove message
|
|
1630
|
+
*
|
|
1631
|
+
* @generated from field: bool deleted = 5;
|
|
1632
|
+
*/
|
|
1633
|
+
this.deleted = false;
|
|
1634
|
+
/**
|
|
1635
|
+
* true if the chat message has been generated by an agent from a participant's audio transcription
|
|
1636
|
+
*
|
|
1637
|
+
* @generated from field: bool generated = 6;
|
|
1638
|
+
*/
|
|
1639
|
+
this.generated = false;
|
|
1640
|
+
import_protobuf.proto3.util.initPartial(data, this);
|
|
1641
|
+
}
|
|
1642
|
+
static fromBinary(bytes, options) {
|
|
1643
|
+
return new _ChatMessage().fromBinary(bytes, options);
|
|
1644
|
+
}
|
|
1645
|
+
static fromJson(jsonValue, options) {
|
|
1646
|
+
return new _ChatMessage().fromJson(jsonValue, options);
|
|
1647
|
+
}
|
|
1648
|
+
static fromJsonString(jsonString, options) {
|
|
1649
|
+
return new _ChatMessage().fromJsonString(jsonString, options);
|
|
1650
|
+
}
|
|
1651
|
+
static equals(a, b) {
|
|
1652
|
+
return import_protobuf.proto3.util.equals(_ChatMessage, a, b);
|
|
1653
|
+
}
|
|
1654
|
+
};
|
|
1655
|
+
_ChatMessage.runtime = import_protobuf.proto3;
|
|
1656
|
+
_ChatMessage.typeName = "livekit.ChatMessage";
|
|
1657
|
+
_ChatMessage.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
1658
|
+
{
|
|
1659
|
+
no: 1,
|
|
1660
|
+
name: "id",
|
|
1661
|
+
kind: "scalar",
|
|
1662
|
+
T: 9
|
|
1663
|
+
/* ScalarType.STRING */
|
|
1664
|
+
},
|
|
1665
|
+
{
|
|
1666
|
+
no: 2,
|
|
1667
|
+
name: "timestamp",
|
|
1668
|
+
kind: "scalar",
|
|
1669
|
+
T: 3
|
|
1670
|
+
/* ScalarType.INT64 */
|
|
1671
|
+
},
|
|
1672
|
+
{ no: 3, name: "edit_timestamp", kind: "scalar", T: 3, opt: true },
|
|
1673
|
+
{
|
|
1674
|
+
no: 4,
|
|
1675
|
+
name: "message",
|
|
1676
|
+
kind: "scalar",
|
|
1677
|
+
T: 9
|
|
1678
|
+
/* ScalarType.STRING */
|
|
1679
|
+
},
|
|
1680
|
+
{
|
|
1681
|
+
no: 5,
|
|
1682
|
+
name: "deleted",
|
|
1683
|
+
kind: "scalar",
|
|
1684
|
+
T: 8
|
|
1685
|
+
/* ScalarType.BOOL */
|
|
1686
|
+
},
|
|
1687
|
+
{
|
|
1688
|
+
no: 6,
|
|
1689
|
+
name: "generated",
|
|
1690
|
+
kind: "scalar",
|
|
1691
|
+
T: 8
|
|
1692
|
+
/* ScalarType.BOOL */
|
|
1693
|
+
}
|
|
1694
|
+
]);
|
|
1695
|
+
let ChatMessage = _ChatMessage;
|
|
1696
|
+
const _RpcRequest = class _RpcRequest extends import_protobuf.Message {
|
|
1697
|
+
constructor(data) {
|
|
1698
|
+
super();
|
|
1699
|
+
/**
|
|
1700
|
+
* @generated from field: string id = 1;
|
|
1701
|
+
*/
|
|
1702
|
+
this.id = "";
|
|
1703
|
+
/**
|
|
1704
|
+
* @generated from field: string method = 2;
|
|
1705
|
+
*/
|
|
1706
|
+
this.method = "";
|
|
1707
|
+
/**
|
|
1708
|
+
* @generated from field: string payload = 3;
|
|
1709
|
+
*/
|
|
1710
|
+
this.payload = "";
|
|
1711
|
+
/**
|
|
1712
|
+
* @generated from field: uint32 response_timeout_ms = 4;
|
|
1713
|
+
*/
|
|
1714
|
+
this.responseTimeoutMs = 0;
|
|
1715
|
+
/**
|
|
1716
|
+
* @generated from field: uint32 version = 5;
|
|
1717
|
+
*/
|
|
1718
|
+
this.version = 0;
|
|
1719
|
+
import_protobuf.proto3.util.initPartial(data, this);
|
|
1720
|
+
}
|
|
1721
|
+
static fromBinary(bytes, options) {
|
|
1722
|
+
return new _RpcRequest().fromBinary(bytes, options);
|
|
1723
|
+
}
|
|
1724
|
+
static fromJson(jsonValue, options) {
|
|
1725
|
+
return new _RpcRequest().fromJson(jsonValue, options);
|
|
1726
|
+
}
|
|
1727
|
+
static fromJsonString(jsonString, options) {
|
|
1728
|
+
return new _RpcRequest().fromJsonString(jsonString, options);
|
|
1729
|
+
}
|
|
1730
|
+
static equals(a, b) {
|
|
1731
|
+
return import_protobuf.proto3.util.equals(_RpcRequest, a, b);
|
|
1732
|
+
}
|
|
1733
|
+
};
|
|
1734
|
+
_RpcRequest.runtime = import_protobuf.proto3;
|
|
1735
|
+
_RpcRequest.typeName = "livekit.RpcRequest";
|
|
1736
|
+
_RpcRequest.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
1737
|
+
{
|
|
1738
|
+
no: 1,
|
|
1739
|
+
name: "id",
|
|
1740
|
+
kind: "scalar",
|
|
1741
|
+
T: 9
|
|
1742
|
+
/* ScalarType.STRING */
|
|
1743
|
+
},
|
|
1744
|
+
{
|
|
1745
|
+
no: 2,
|
|
1746
|
+
name: "method",
|
|
1747
|
+
kind: "scalar",
|
|
1748
|
+
T: 9
|
|
1749
|
+
/* ScalarType.STRING */
|
|
1750
|
+
},
|
|
1751
|
+
{
|
|
1752
|
+
no: 3,
|
|
1753
|
+
name: "payload",
|
|
1754
|
+
kind: "scalar",
|
|
1755
|
+
T: 9
|
|
1756
|
+
/* ScalarType.STRING */
|
|
1757
|
+
},
|
|
1758
|
+
{
|
|
1759
|
+
no: 4,
|
|
1760
|
+
name: "response_timeout_ms",
|
|
1761
|
+
kind: "scalar",
|
|
1762
|
+
T: 13
|
|
1763
|
+
/* ScalarType.UINT32 */
|
|
1764
|
+
},
|
|
1765
|
+
{
|
|
1766
|
+
no: 5,
|
|
1767
|
+
name: "version",
|
|
1768
|
+
kind: "scalar",
|
|
1769
|
+
T: 13
|
|
1770
|
+
/* ScalarType.UINT32 */
|
|
1771
|
+
}
|
|
1772
|
+
]);
|
|
1773
|
+
let RpcRequest = _RpcRequest;
|
|
1774
|
+
const _RpcAck = class _RpcAck extends import_protobuf.Message {
|
|
1775
|
+
constructor(data) {
|
|
1776
|
+
super();
|
|
1777
|
+
/**
|
|
1778
|
+
* @generated from field: string request_id = 1;
|
|
1779
|
+
*/
|
|
1780
|
+
this.requestId = "";
|
|
1781
|
+
import_protobuf.proto3.util.initPartial(data, this);
|
|
1782
|
+
}
|
|
1783
|
+
static fromBinary(bytes, options) {
|
|
1784
|
+
return new _RpcAck().fromBinary(bytes, options);
|
|
1785
|
+
}
|
|
1786
|
+
static fromJson(jsonValue, options) {
|
|
1787
|
+
return new _RpcAck().fromJson(jsonValue, options);
|
|
1788
|
+
}
|
|
1789
|
+
static fromJsonString(jsonString, options) {
|
|
1790
|
+
return new _RpcAck().fromJsonString(jsonString, options);
|
|
1791
|
+
}
|
|
1792
|
+
static equals(a, b) {
|
|
1793
|
+
return import_protobuf.proto3.util.equals(_RpcAck, a, b);
|
|
1794
|
+
}
|
|
1795
|
+
};
|
|
1796
|
+
_RpcAck.runtime = import_protobuf.proto3;
|
|
1797
|
+
_RpcAck.typeName = "livekit.RpcAck";
|
|
1798
|
+
_RpcAck.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
1799
|
+
{
|
|
1800
|
+
no: 1,
|
|
1801
|
+
name: "request_id",
|
|
1802
|
+
kind: "scalar",
|
|
1803
|
+
T: 9
|
|
1804
|
+
/* ScalarType.STRING */
|
|
1805
|
+
}
|
|
1806
|
+
]);
|
|
1807
|
+
let RpcAck = _RpcAck;
|
|
1808
|
+
const _RpcResponse = class _RpcResponse extends import_protobuf.Message {
|
|
1809
|
+
constructor(data) {
|
|
1810
|
+
super();
|
|
1811
|
+
/**
|
|
1812
|
+
* @generated from field: string request_id = 1;
|
|
1813
|
+
*/
|
|
1814
|
+
this.requestId = "";
|
|
1815
|
+
/**
|
|
1816
|
+
* @generated from oneof livekit.RpcResponse.value
|
|
1817
|
+
*/
|
|
1818
|
+
this.value = { case: void 0 };
|
|
1819
|
+
import_protobuf.proto3.util.initPartial(data, this);
|
|
1820
|
+
}
|
|
1821
|
+
static fromBinary(bytes, options) {
|
|
1822
|
+
return new _RpcResponse().fromBinary(bytes, options);
|
|
1823
|
+
}
|
|
1824
|
+
static fromJson(jsonValue, options) {
|
|
1825
|
+
return new _RpcResponse().fromJson(jsonValue, options);
|
|
1826
|
+
}
|
|
1827
|
+
static fromJsonString(jsonString, options) {
|
|
1828
|
+
return new _RpcResponse().fromJsonString(jsonString, options);
|
|
1829
|
+
}
|
|
1830
|
+
static equals(a, b) {
|
|
1831
|
+
return import_protobuf.proto3.util.equals(_RpcResponse, a, b);
|
|
1832
|
+
}
|
|
1833
|
+
};
|
|
1834
|
+
_RpcResponse.runtime = import_protobuf.proto3;
|
|
1835
|
+
_RpcResponse.typeName = "livekit.RpcResponse";
|
|
1836
|
+
_RpcResponse.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
1837
|
+
{
|
|
1838
|
+
no: 1,
|
|
1839
|
+
name: "request_id",
|
|
1840
|
+
kind: "scalar",
|
|
1841
|
+
T: 9
|
|
1842
|
+
/* ScalarType.STRING */
|
|
1843
|
+
},
|
|
1844
|
+
{ no: 2, name: "payload", kind: "scalar", T: 9, oneof: "value" },
|
|
1845
|
+
{ no: 3, name: "error", kind: "message", T: RpcError, oneof: "value" }
|
|
1846
|
+
]);
|
|
1847
|
+
let RpcResponse = _RpcResponse;
|
|
1848
|
+
const _RpcError = class _RpcError extends import_protobuf.Message {
|
|
1849
|
+
constructor(data) {
|
|
1850
|
+
super();
|
|
1851
|
+
/**
|
|
1852
|
+
* @generated from field: uint32 code = 1;
|
|
1853
|
+
*/
|
|
1854
|
+
this.code = 0;
|
|
1855
|
+
/**
|
|
1856
|
+
* @generated from field: string message = 2;
|
|
1857
|
+
*/
|
|
1858
|
+
this.message = "";
|
|
1859
|
+
/**
|
|
1860
|
+
* @generated from field: string data = 3;
|
|
1861
|
+
*/
|
|
1862
|
+
this.data = "";
|
|
1863
|
+
import_protobuf.proto3.util.initPartial(data, this);
|
|
1864
|
+
}
|
|
1865
|
+
static fromBinary(bytes, options) {
|
|
1866
|
+
return new _RpcError().fromBinary(bytes, options);
|
|
1867
|
+
}
|
|
1868
|
+
static fromJson(jsonValue, options) {
|
|
1869
|
+
return new _RpcError().fromJson(jsonValue, options);
|
|
1870
|
+
}
|
|
1871
|
+
static fromJsonString(jsonString, options) {
|
|
1872
|
+
return new _RpcError().fromJsonString(jsonString, options);
|
|
1873
|
+
}
|
|
1874
|
+
static equals(a, b) {
|
|
1875
|
+
return import_protobuf.proto3.util.equals(_RpcError, a, b);
|
|
1876
|
+
}
|
|
1877
|
+
};
|
|
1878
|
+
_RpcError.runtime = import_protobuf.proto3;
|
|
1879
|
+
_RpcError.typeName = "livekit.RpcError";
|
|
1880
|
+
_RpcError.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
1881
|
+
{
|
|
1882
|
+
no: 1,
|
|
1883
|
+
name: "code",
|
|
1884
|
+
kind: "scalar",
|
|
1885
|
+
T: 13
|
|
1886
|
+
/* ScalarType.UINT32 */
|
|
1887
|
+
},
|
|
1888
|
+
{
|
|
1889
|
+
no: 2,
|
|
1890
|
+
name: "message",
|
|
1891
|
+
kind: "scalar",
|
|
1892
|
+
T: 9
|
|
1893
|
+
/* ScalarType.STRING */
|
|
1894
|
+
},
|
|
1895
|
+
{
|
|
1896
|
+
no: 3,
|
|
1897
|
+
name: "data",
|
|
1898
|
+
kind: "scalar",
|
|
1899
|
+
T: 9
|
|
1900
|
+
/* ScalarType.STRING */
|
|
1901
|
+
}
|
|
1902
|
+
]);
|
|
1903
|
+
let RpcError = _RpcError;
|
|
1904
|
+
const _ParticipantTracks = class _ParticipantTracks extends import_protobuf.Message {
|
|
1905
|
+
constructor(data) {
|
|
1906
|
+
super();
|
|
1907
|
+
/**
|
|
1908
|
+
* participant ID of participant to whom the tracks belong
|
|
1909
|
+
*
|
|
1910
|
+
* @generated from field: string participant_sid = 1;
|
|
1911
|
+
*/
|
|
1912
|
+
this.participantSid = "";
|
|
1913
|
+
/**
|
|
1914
|
+
* @generated from field: repeated string track_sids = 2;
|
|
1915
|
+
*/
|
|
1916
|
+
this.trackSids = [];
|
|
1917
|
+
import_protobuf.proto3.util.initPartial(data, this);
|
|
1918
|
+
}
|
|
1919
|
+
static fromBinary(bytes, options) {
|
|
1920
|
+
return new _ParticipantTracks().fromBinary(bytes, options);
|
|
1921
|
+
}
|
|
1922
|
+
static fromJson(jsonValue, options) {
|
|
1923
|
+
return new _ParticipantTracks().fromJson(jsonValue, options);
|
|
1924
|
+
}
|
|
1925
|
+
static fromJsonString(jsonString, options) {
|
|
1926
|
+
return new _ParticipantTracks().fromJsonString(jsonString, options);
|
|
1927
|
+
}
|
|
1928
|
+
static equals(a, b) {
|
|
1929
|
+
return import_protobuf.proto3.util.equals(_ParticipantTracks, a, b);
|
|
1930
|
+
}
|
|
1931
|
+
};
|
|
1932
|
+
_ParticipantTracks.runtime = import_protobuf.proto3;
|
|
1933
|
+
_ParticipantTracks.typeName = "livekit.ParticipantTracks";
|
|
1934
|
+
_ParticipantTracks.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
1935
|
+
{
|
|
1936
|
+
no: 1,
|
|
1937
|
+
name: "participant_sid",
|
|
1938
|
+
kind: "scalar",
|
|
1939
|
+
T: 9
|
|
1940
|
+
/* ScalarType.STRING */
|
|
1941
|
+
},
|
|
1942
|
+
{ no: 2, name: "track_sids", kind: "scalar", T: 9, repeated: true }
|
|
1943
|
+
]);
|
|
1944
|
+
let ParticipantTracks = _ParticipantTracks;
|
|
1945
|
+
const _ServerInfo = class _ServerInfo extends import_protobuf.Message {
|
|
1946
|
+
constructor(data) {
|
|
1947
|
+
super();
|
|
1948
|
+
/**
|
|
1949
|
+
* @generated from field: livekit.ServerInfo.Edition edition = 1;
|
|
1950
|
+
*/
|
|
1951
|
+
this.edition = 0 /* Standard */;
|
|
1952
|
+
/**
|
|
1953
|
+
* @generated from field: string version = 2;
|
|
1954
|
+
*/
|
|
1955
|
+
this.version = "";
|
|
1956
|
+
/**
|
|
1957
|
+
* @generated from field: int32 protocol = 3;
|
|
1958
|
+
*/
|
|
1959
|
+
this.protocol = 0;
|
|
1960
|
+
/**
|
|
1961
|
+
* @generated from field: string region = 4;
|
|
1962
|
+
*/
|
|
1963
|
+
this.region = "";
|
|
1964
|
+
/**
|
|
1965
|
+
* @generated from field: string node_id = 5;
|
|
1966
|
+
*/
|
|
1967
|
+
this.nodeId = "";
|
|
1968
|
+
/**
|
|
1969
|
+
* additional debugging information. sent only if server is in development mode
|
|
1970
|
+
*
|
|
1971
|
+
* @generated from field: string debug_info = 6;
|
|
1972
|
+
*/
|
|
1973
|
+
this.debugInfo = "";
|
|
1974
|
+
/**
|
|
1975
|
+
* @generated from field: int32 agent_protocol = 7;
|
|
1976
|
+
*/
|
|
1977
|
+
this.agentProtocol = 0;
|
|
1978
|
+
import_protobuf.proto3.util.initPartial(data, this);
|
|
1979
|
+
}
|
|
1980
|
+
static fromBinary(bytes, options) {
|
|
1981
|
+
return new _ServerInfo().fromBinary(bytes, options);
|
|
1982
|
+
}
|
|
1983
|
+
static fromJson(jsonValue, options) {
|
|
1984
|
+
return new _ServerInfo().fromJson(jsonValue, options);
|
|
1985
|
+
}
|
|
1986
|
+
static fromJsonString(jsonString, options) {
|
|
1987
|
+
return new _ServerInfo().fromJsonString(jsonString, options);
|
|
1988
|
+
}
|
|
1989
|
+
static equals(a, b) {
|
|
1990
|
+
return import_protobuf.proto3.util.equals(_ServerInfo, a, b);
|
|
1991
|
+
}
|
|
1992
|
+
};
|
|
1993
|
+
_ServerInfo.runtime = import_protobuf.proto3;
|
|
1994
|
+
_ServerInfo.typeName = "livekit.ServerInfo";
|
|
1995
|
+
_ServerInfo.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
1996
|
+
{ no: 1, name: "edition", kind: "enum", T: import_protobuf.proto3.getEnumType(ServerInfo_Edition) },
|
|
1997
|
+
{
|
|
1998
|
+
no: 2,
|
|
1999
|
+
name: "version",
|
|
2000
|
+
kind: "scalar",
|
|
2001
|
+
T: 9
|
|
2002
|
+
/* ScalarType.STRING */
|
|
2003
|
+
},
|
|
2004
|
+
{
|
|
2005
|
+
no: 3,
|
|
2006
|
+
name: "protocol",
|
|
2007
|
+
kind: "scalar",
|
|
2008
|
+
T: 5
|
|
2009
|
+
/* ScalarType.INT32 */
|
|
2010
|
+
},
|
|
2011
|
+
{
|
|
2012
|
+
no: 4,
|
|
2013
|
+
name: "region",
|
|
2014
|
+
kind: "scalar",
|
|
2015
|
+
T: 9
|
|
2016
|
+
/* ScalarType.STRING */
|
|
2017
|
+
},
|
|
2018
|
+
{
|
|
2019
|
+
no: 5,
|
|
2020
|
+
name: "node_id",
|
|
2021
|
+
kind: "scalar",
|
|
2022
|
+
T: 9
|
|
2023
|
+
/* ScalarType.STRING */
|
|
2024
|
+
},
|
|
2025
|
+
{
|
|
2026
|
+
no: 6,
|
|
2027
|
+
name: "debug_info",
|
|
2028
|
+
kind: "scalar",
|
|
2029
|
+
T: 9
|
|
2030
|
+
/* ScalarType.STRING */
|
|
2031
|
+
},
|
|
2032
|
+
{
|
|
2033
|
+
no: 7,
|
|
2034
|
+
name: "agent_protocol",
|
|
2035
|
+
kind: "scalar",
|
|
2036
|
+
T: 5
|
|
2037
|
+
/* ScalarType.INT32 */
|
|
2038
|
+
}
|
|
2039
|
+
]);
|
|
2040
|
+
let ServerInfo = _ServerInfo;
|
|
2041
|
+
var ServerInfo_Edition = /* @__PURE__ */ ((ServerInfo_Edition2) => {
|
|
2042
|
+
ServerInfo_Edition2[ServerInfo_Edition2["Standard"] = 0] = "Standard";
|
|
2043
|
+
ServerInfo_Edition2[ServerInfo_Edition2["Cloud"] = 1] = "Cloud";
|
|
2044
|
+
return ServerInfo_Edition2;
|
|
2045
|
+
})(ServerInfo_Edition || {});
|
|
2046
|
+
import_protobuf.proto3.util.setEnumType(ServerInfo_Edition, "livekit.ServerInfo.Edition", [
|
|
2047
|
+
{ no: 0, name: "Standard" },
|
|
2048
|
+
{ no: 1, name: "Cloud" }
|
|
2049
|
+
]);
|
|
2050
|
+
const _ClientInfo = class _ClientInfo extends import_protobuf.Message {
|
|
2051
|
+
constructor(data) {
|
|
2052
|
+
super();
|
|
2053
|
+
/**
|
|
2054
|
+
* @generated from field: livekit.ClientInfo.SDK sdk = 1;
|
|
2055
|
+
*/
|
|
2056
|
+
this.sdk = 0 /* UNKNOWN */;
|
|
2057
|
+
/**
|
|
2058
|
+
* @generated from field: string version = 2;
|
|
2059
|
+
*/
|
|
2060
|
+
this.version = "";
|
|
2061
|
+
/**
|
|
2062
|
+
* @generated from field: int32 protocol = 3;
|
|
2063
|
+
*/
|
|
2064
|
+
this.protocol = 0;
|
|
2065
|
+
/**
|
|
2066
|
+
* @generated from field: string os = 4;
|
|
2067
|
+
*/
|
|
2068
|
+
this.os = "";
|
|
2069
|
+
/**
|
|
2070
|
+
* @generated from field: string os_version = 5;
|
|
2071
|
+
*/
|
|
2072
|
+
this.osVersion = "";
|
|
2073
|
+
/**
|
|
2074
|
+
* @generated from field: string device_model = 6;
|
|
2075
|
+
*/
|
|
2076
|
+
this.deviceModel = "";
|
|
2077
|
+
/**
|
|
2078
|
+
* @generated from field: string browser = 7;
|
|
2079
|
+
*/
|
|
2080
|
+
this.browser = "";
|
|
2081
|
+
/**
|
|
2082
|
+
* @generated from field: string browser_version = 8;
|
|
2083
|
+
*/
|
|
2084
|
+
this.browserVersion = "";
|
|
2085
|
+
/**
|
|
2086
|
+
* @generated from field: string address = 9;
|
|
2087
|
+
*/
|
|
2088
|
+
this.address = "";
|
|
2089
|
+
/**
|
|
2090
|
+
* wifi, wired, cellular, vpn, empty if not known
|
|
2091
|
+
*
|
|
2092
|
+
* @generated from field: string network = 10;
|
|
2093
|
+
*/
|
|
2094
|
+
this.network = "";
|
|
2095
|
+
/**
|
|
2096
|
+
* comma separated list of additional LiveKit SDKs in use of this client, with versions
|
|
2097
|
+
* e.g. "components-js:1.2.3,track-processors-js:1.2.3"
|
|
2098
|
+
*
|
|
2099
|
+
* @generated from field: string other_sdks = 11;
|
|
2100
|
+
*/
|
|
2101
|
+
this.otherSdks = "";
|
|
2102
|
+
import_protobuf.proto3.util.initPartial(data, this);
|
|
2103
|
+
}
|
|
2104
|
+
static fromBinary(bytes, options) {
|
|
2105
|
+
return new _ClientInfo().fromBinary(bytes, options);
|
|
2106
|
+
}
|
|
2107
|
+
static fromJson(jsonValue, options) {
|
|
2108
|
+
return new _ClientInfo().fromJson(jsonValue, options);
|
|
2109
|
+
}
|
|
2110
|
+
static fromJsonString(jsonString, options) {
|
|
2111
|
+
return new _ClientInfo().fromJsonString(jsonString, options);
|
|
2112
|
+
}
|
|
2113
|
+
static equals(a, b) {
|
|
2114
|
+
return import_protobuf.proto3.util.equals(_ClientInfo, a, b);
|
|
2115
|
+
}
|
|
2116
|
+
};
|
|
2117
|
+
_ClientInfo.runtime = import_protobuf.proto3;
|
|
2118
|
+
_ClientInfo.typeName = "livekit.ClientInfo";
|
|
2119
|
+
_ClientInfo.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
2120
|
+
{ no: 1, name: "sdk", kind: "enum", T: import_protobuf.proto3.getEnumType(ClientInfo_SDK) },
|
|
2121
|
+
{
|
|
2122
|
+
no: 2,
|
|
2123
|
+
name: "version",
|
|
2124
|
+
kind: "scalar",
|
|
2125
|
+
T: 9
|
|
2126
|
+
/* ScalarType.STRING */
|
|
2127
|
+
},
|
|
2128
|
+
{
|
|
2129
|
+
no: 3,
|
|
2130
|
+
name: "protocol",
|
|
2131
|
+
kind: "scalar",
|
|
2132
|
+
T: 5
|
|
2133
|
+
/* ScalarType.INT32 */
|
|
2134
|
+
},
|
|
2135
|
+
{
|
|
2136
|
+
no: 4,
|
|
2137
|
+
name: "os",
|
|
2138
|
+
kind: "scalar",
|
|
2139
|
+
T: 9
|
|
2140
|
+
/* ScalarType.STRING */
|
|
2141
|
+
},
|
|
2142
|
+
{
|
|
2143
|
+
no: 5,
|
|
2144
|
+
name: "os_version",
|
|
2145
|
+
kind: "scalar",
|
|
2146
|
+
T: 9
|
|
2147
|
+
/* ScalarType.STRING */
|
|
2148
|
+
},
|
|
2149
|
+
{
|
|
2150
|
+
no: 6,
|
|
2151
|
+
name: "device_model",
|
|
2152
|
+
kind: "scalar",
|
|
2153
|
+
T: 9
|
|
2154
|
+
/* ScalarType.STRING */
|
|
2155
|
+
},
|
|
2156
|
+
{
|
|
2157
|
+
no: 7,
|
|
2158
|
+
name: "browser",
|
|
2159
|
+
kind: "scalar",
|
|
2160
|
+
T: 9
|
|
2161
|
+
/* ScalarType.STRING */
|
|
2162
|
+
},
|
|
2163
|
+
{
|
|
2164
|
+
no: 8,
|
|
2165
|
+
name: "browser_version",
|
|
2166
|
+
kind: "scalar",
|
|
2167
|
+
T: 9
|
|
2168
|
+
/* ScalarType.STRING */
|
|
2169
|
+
},
|
|
2170
|
+
{
|
|
2171
|
+
no: 9,
|
|
2172
|
+
name: "address",
|
|
2173
|
+
kind: "scalar",
|
|
2174
|
+
T: 9
|
|
2175
|
+
/* ScalarType.STRING */
|
|
2176
|
+
},
|
|
2177
|
+
{
|
|
2178
|
+
no: 10,
|
|
2179
|
+
name: "network",
|
|
2180
|
+
kind: "scalar",
|
|
2181
|
+
T: 9
|
|
2182
|
+
/* ScalarType.STRING */
|
|
2183
|
+
},
|
|
2184
|
+
{
|
|
2185
|
+
no: 11,
|
|
2186
|
+
name: "other_sdks",
|
|
2187
|
+
kind: "scalar",
|
|
2188
|
+
T: 9
|
|
2189
|
+
/* ScalarType.STRING */
|
|
2190
|
+
}
|
|
2191
|
+
]);
|
|
2192
|
+
let ClientInfo = _ClientInfo;
|
|
2193
|
+
var ClientInfo_SDK = /* @__PURE__ */ ((ClientInfo_SDK2) => {
|
|
2194
|
+
ClientInfo_SDK2[ClientInfo_SDK2["UNKNOWN"] = 0] = "UNKNOWN";
|
|
2195
|
+
ClientInfo_SDK2[ClientInfo_SDK2["JS"] = 1] = "JS";
|
|
2196
|
+
ClientInfo_SDK2[ClientInfo_SDK2["SWIFT"] = 2] = "SWIFT";
|
|
2197
|
+
ClientInfo_SDK2[ClientInfo_SDK2["ANDROID"] = 3] = "ANDROID";
|
|
2198
|
+
ClientInfo_SDK2[ClientInfo_SDK2["FLUTTER"] = 4] = "FLUTTER";
|
|
2199
|
+
ClientInfo_SDK2[ClientInfo_SDK2["GO"] = 5] = "GO";
|
|
2200
|
+
ClientInfo_SDK2[ClientInfo_SDK2["UNITY"] = 6] = "UNITY";
|
|
2201
|
+
ClientInfo_SDK2[ClientInfo_SDK2["REACT_NATIVE"] = 7] = "REACT_NATIVE";
|
|
2202
|
+
ClientInfo_SDK2[ClientInfo_SDK2["RUST"] = 8] = "RUST";
|
|
2203
|
+
ClientInfo_SDK2[ClientInfo_SDK2["PYTHON"] = 9] = "PYTHON";
|
|
2204
|
+
ClientInfo_SDK2[ClientInfo_SDK2["CPP"] = 10] = "CPP";
|
|
2205
|
+
ClientInfo_SDK2[ClientInfo_SDK2["UNITY_WEB"] = 11] = "UNITY_WEB";
|
|
2206
|
+
ClientInfo_SDK2[ClientInfo_SDK2["NODE"] = 12] = "NODE";
|
|
2207
|
+
return ClientInfo_SDK2;
|
|
2208
|
+
})(ClientInfo_SDK || {});
|
|
2209
|
+
import_protobuf.proto3.util.setEnumType(ClientInfo_SDK, "livekit.ClientInfo.SDK", [
|
|
2210
|
+
{ no: 0, name: "UNKNOWN" },
|
|
2211
|
+
{ no: 1, name: "JS" },
|
|
2212
|
+
{ no: 2, name: "SWIFT" },
|
|
2213
|
+
{ no: 3, name: "ANDROID" },
|
|
2214
|
+
{ no: 4, name: "FLUTTER" },
|
|
2215
|
+
{ no: 5, name: "GO" },
|
|
2216
|
+
{ no: 6, name: "UNITY" },
|
|
2217
|
+
{ no: 7, name: "REACT_NATIVE" },
|
|
2218
|
+
{ no: 8, name: "RUST" },
|
|
2219
|
+
{ no: 9, name: "PYTHON" },
|
|
2220
|
+
{ no: 10, name: "CPP" },
|
|
2221
|
+
{ no: 11, name: "UNITY_WEB" },
|
|
2222
|
+
{ no: 12, name: "NODE" }
|
|
2223
|
+
]);
|
|
2224
|
+
const _ClientConfiguration = class _ClientConfiguration extends import_protobuf.Message {
|
|
2225
|
+
constructor(data) {
|
|
2226
|
+
super();
|
|
2227
|
+
/**
|
|
2228
|
+
* @generated from field: livekit.ClientConfigSetting resume_connection = 3;
|
|
2229
|
+
*/
|
|
2230
|
+
this.resumeConnection = 0 /* UNSET */;
|
|
2231
|
+
/**
|
|
2232
|
+
* @generated from field: livekit.ClientConfigSetting force_relay = 5;
|
|
2233
|
+
*/
|
|
2234
|
+
this.forceRelay = 0 /* UNSET */;
|
|
2235
|
+
import_protobuf.proto3.util.initPartial(data, this);
|
|
2236
|
+
}
|
|
2237
|
+
static fromBinary(bytes, options) {
|
|
2238
|
+
return new _ClientConfiguration().fromBinary(bytes, options);
|
|
2239
|
+
}
|
|
2240
|
+
static fromJson(jsonValue, options) {
|
|
2241
|
+
return new _ClientConfiguration().fromJson(jsonValue, options);
|
|
2242
|
+
}
|
|
2243
|
+
static fromJsonString(jsonString, options) {
|
|
2244
|
+
return new _ClientConfiguration().fromJsonString(jsonString, options);
|
|
2245
|
+
}
|
|
2246
|
+
static equals(a, b) {
|
|
2247
|
+
return import_protobuf.proto3.util.equals(_ClientConfiguration, a, b);
|
|
2248
|
+
}
|
|
2249
|
+
};
|
|
2250
|
+
_ClientConfiguration.runtime = import_protobuf.proto3;
|
|
2251
|
+
_ClientConfiguration.typeName = "livekit.ClientConfiguration";
|
|
2252
|
+
_ClientConfiguration.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
2253
|
+
{ no: 1, name: "video", kind: "message", T: VideoConfiguration },
|
|
2254
|
+
{ no: 2, name: "screen", kind: "message", T: VideoConfiguration },
|
|
2255
|
+
{ no: 3, name: "resume_connection", kind: "enum", T: import_protobuf.proto3.getEnumType(ClientConfigSetting) },
|
|
2256
|
+
{ no: 4, name: "disabled_codecs", kind: "message", T: DisabledCodecs },
|
|
2257
|
+
{ no: 5, name: "force_relay", kind: "enum", T: import_protobuf.proto3.getEnumType(ClientConfigSetting) }
|
|
2258
|
+
]);
|
|
2259
|
+
let ClientConfiguration = _ClientConfiguration;
|
|
2260
|
+
const _VideoConfiguration = class _VideoConfiguration extends import_protobuf.Message {
|
|
2261
|
+
constructor(data) {
|
|
2262
|
+
super();
|
|
2263
|
+
/**
|
|
2264
|
+
* @generated from field: livekit.ClientConfigSetting hardware_encoder = 1;
|
|
2265
|
+
*/
|
|
2266
|
+
this.hardwareEncoder = 0 /* UNSET */;
|
|
2267
|
+
import_protobuf.proto3.util.initPartial(data, this);
|
|
2268
|
+
}
|
|
2269
|
+
static fromBinary(bytes, options) {
|
|
2270
|
+
return new _VideoConfiguration().fromBinary(bytes, options);
|
|
2271
|
+
}
|
|
2272
|
+
static fromJson(jsonValue, options) {
|
|
2273
|
+
return new _VideoConfiguration().fromJson(jsonValue, options);
|
|
2274
|
+
}
|
|
2275
|
+
static fromJsonString(jsonString, options) {
|
|
2276
|
+
return new _VideoConfiguration().fromJsonString(jsonString, options);
|
|
2277
|
+
}
|
|
2278
|
+
static equals(a, b) {
|
|
2279
|
+
return import_protobuf.proto3.util.equals(_VideoConfiguration, a, b);
|
|
2280
|
+
}
|
|
2281
|
+
};
|
|
2282
|
+
_VideoConfiguration.runtime = import_protobuf.proto3;
|
|
2283
|
+
_VideoConfiguration.typeName = "livekit.VideoConfiguration";
|
|
2284
|
+
_VideoConfiguration.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
2285
|
+
{ no: 1, name: "hardware_encoder", kind: "enum", T: import_protobuf.proto3.getEnumType(ClientConfigSetting) }
|
|
2286
|
+
]);
|
|
2287
|
+
let VideoConfiguration = _VideoConfiguration;
|
|
2288
|
+
const _DisabledCodecs = class _DisabledCodecs extends import_protobuf.Message {
|
|
2289
|
+
constructor(data) {
|
|
2290
|
+
super();
|
|
2291
|
+
/**
|
|
2292
|
+
* disabled for both publish and subscribe
|
|
2293
|
+
*
|
|
2294
|
+
* @generated from field: repeated livekit.Codec codecs = 1;
|
|
2295
|
+
*/
|
|
2296
|
+
this.codecs = [];
|
|
2297
|
+
/**
|
|
2298
|
+
* only disable for publish
|
|
2299
|
+
*
|
|
2300
|
+
* @generated from field: repeated livekit.Codec publish = 2;
|
|
2301
|
+
*/
|
|
2302
|
+
this.publish = [];
|
|
2303
|
+
import_protobuf.proto3.util.initPartial(data, this);
|
|
2304
|
+
}
|
|
2305
|
+
static fromBinary(bytes, options) {
|
|
2306
|
+
return new _DisabledCodecs().fromBinary(bytes, options);
|
|
2307
|
+
}
|
|
2308
|
+
static fromJson(jsonValue, options) {
|
|
2309
|
+
return new _DisabledCodecs().fromJson(jsonValue, options);
|
|
2310
|
+
}
|
|
2311
|
+
static fromJsonString(jsonString, options) {
|
|
2312
|
+
return new _DisabledCodecs().fromJsonString(jsonString, options);
|
|
2313
|
+
}
|
|
2314
|
+
static equals(a, b) {
|
|
2315
|
+
return import_protobuf.proto3.util.equals(_DisabledCodecs, a, b);
|
|
2316
|
+
}
|
|
2317
|
+
};
|
|
2318
|
+
_DisabledCodecs.runtime = import_protobuf.proto3;
|
|
2319
|
+
_DisabledCodecs.typeName = "livekit.DisabledCodecs";
|
|
2320
|
+
_DisabledCodecs.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
2321
|
+
{ no: 1, name: "codecs", kind: "message", T: Codec, repeated: true },
|
|
2322
|
+
{ no: 2, name: "publish", kind: "message", T: Codec, repeated: true }
|
|
2323
|
+
]);
|
|
2324
|
+
let DisabledCodecs = _DisabledCodecs;
|
|
2325
|
+
const _RTPDrift = class _RTPDrift extends import_protobuf.Message {
|
|
2326
|
+
constructor(data) {
|
|
2327
|
+
super();
|
|
2328
|
+
/**
|
|
2329
|
+
* @generated from field: double duration = 3;
|
|
2330
|
+
*/
|
|
2331
|
+
this.duration = 0;
|
|
2332
|
+
/**
|
|
2333
|
+
* @generated from field: uint64 start_timestamp = 4;
|
|
2334
|
+
*/
|
|
2335
|
+
this.startTimestamp = import_protobuf.protoInt64.zero;
|
|
2336
|
+
/**
|
|
2337
|
+
* @generated from field: uint64 end_timestamp = 5;
|
|
2338
|
+
*/
|
|
2339
|
+
this.endTimestamp = import_protobuf.protoInt64.zero;
|
|
2340
|
+
/**
|
|
2341
|
+
* @generated from field: uint64 rtp_clock_ticks = 6;
|
|
2342
|
+
*/
|
|
2343
|
+
this.rtpClockTicks = import_protobuf.protoInt64.zero;
|
|
2344
|
+
/**
|
|
2345
|
+
* @generated from field: int64 drift_samples = 7;
|
|
2346
|
+
*/
|
|
2347
|
+
this.driftSamples = import_protobuf.protoInt64.zero;
|
|
2348
|
+
/**
|
|
2349
|
+
* @generated from field: double drift_ms = 8;
|
|
2350
|
+
*/
|
|
2351
|
+
this.driftMs = 0;
|
|
2352
|
+
/**
|
|
2353
|
+
* @generated from field: double clock_rate = 9;
|
|
2354
|
+
*/
|
|
2355
|
+
this.clockRate = 0;
|
|
2356
|
+
import_protobuf.proto3.util.initPartial(data, this);
|
|
2357
|
+
}
|
|
2358
|
+
static fromBinary(bytes, options) {
|
|
2359
|
+
return new _RTPDrift().fromBinary(bytes, options);
|
|
2360
|
+
}
|
|
2361
|
+
static fromJson(jsonValue, options) {
|
|
2362
|
+
return new _RTPDrift().fromJson(jsonValue, options);
|
|
2363
|
+
}
|
|
2364
|
+
static fromJsonString(jsonString, options) {
|
|
2365
|
+
return new _RTPDrift().fromJsonString(jsonString, options);
|
|
2366
|
+
}
|
|
2367
|
+
static equals(a, b) {
|
|
2368
|
+
return import_protobuf.proto3.util.equals(_RTPDrift, a, b);
|
|
2369
|
+
}
|
|
2370
|
+
};
|
|
2371
|
+
_RTPDrift.runtime = import_protobuf.proto3;
|
|
2372
|
+
_RTPDrift.typeName = "livekit.RTPDrift";
|
|
2373
|
+
_RTPDrift.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
2374
|
+
{ no: 1, name: "start_time", kind: "message", T: import_protobuf.Timestamp },
|
|
2375
|
+
{ no: 2, name: "end_time", kind: "message", T: import_protobuf.Timestamp },
|
|
2376
|
+
{
|
|
2377
|
+
no: 3,
|
|
2378
|
+
name: "duration",
|
|
2379
|
+
kind: "scalar",
|
|
2380
|
+
T: 1
|
|
2381
|
+
/* ScalarType.DOUBLE */
|
|
2382
|
+
},
|
|
2383
|
+
{
|
|
2384
|
+
no: 4,
|
|
2385
|
+
name: "start_timestamp",
|
|
2386
|
+
kind: "scalar",
|
|
2387
|
+
T: 4
|
|
2388
|
+
/* ScalarType.UINT64 */
|
|
2389
|
+
},
|
|
2390
|
+
{
|
|
2391
|
+
no: 5,
|
|
2392
|
+
name: "end_timestamp",
|
|
2393
|
+
kind: "scalar",
|
|
2394
|
+
T: 4
|
|
2395
|
+
/* ScalarType.UINT64 */
|
|
2396
|
+
},
|
|
2397
|
+
{
|
|
2398
|
+
no: 6,
|
|
2399
|
+
name: "rtp_clock_ticks",
|
|
2400
|
+
kind: "scalar",
|
|
2401
|
+
T: 4
|
|
2402
|
+
/* ScalarType.UINT64 */
|
|
2403
|
+
},
|
|
2404
|
+
{
|
|
2405
|
+
no: 7,
|
|
2406
|
+
name: "drift_samples",
|
|
2407
|
+
kind: "scalar",
|
|
2408
|
+
T: 3
|
|
2409
|
+
/* ScalarType.INT64 */
|
|
2410
|
+
},
|
|
2411
|
+
{
|
|
2412
|
+
no: 8,
|
|
2413
|
+
name: "drift_ms",
|
|
2414
|
+
kind: "scalar",
|
|
2415
|
+
T: 1
|
|
2416
|
+
/* ScalarType.DOUBLE */
|
|
2417
|
+
},
|
|
2418
|
+
{
|
|
2419
|
+
no: 9,
|
|
2420
|
+
name: "clock_rate",
|
|
2421
|
+
kind: "scalar",
|
|
2422
|
+
T: 1
|
|
2423
|
+
/* ScalarType.DOUBLE */
|
|
2424
|
+
}
|
|
2425
|
+
]);
|
|
2426
|
+
let RTPDrift = _RTPDrift;
|
|
2427
|
+
const _RTPStats = class _RTPStats extends import_protobuf.Message {
|
|
2428
|
+
constructor(data) {
|
|
2429
|
+
super();
|
|
2430
|
+
/**
|
|
2431
|
+
* @generated from field: double duration = 3;
|
|
2432
|
+
*/
|
|
2433
|
+
this.duration = 0;
|
|
2434
|
+
/**
|
|
2435
|
+
* @generated from field: uint32 packets = 4;
|
|
2436
|
+
*/
|
|
2437
|
+
this.packets = 0;
|
|
2438
|
+
/**
|
|
2439
|
+
* @generated from field: double packet_rate = 5;
|
|
2440
|
+
*/
|
|
2441
|
+
this.packetRate = 0;
|
|
2442
|
+
/**
|
|
2443
|
+
* @generated from field: uint64 bytes = 6;
|
|
2444
|
+
*/
|
|
2445
|
+
this.bytes = import_protobuf.protoInt64.zero;
|
|
2446
|
+
/**
|
|
2447
|
+
* @generated from field: uint64 header_bytes = 39;
|
|
2448
|
+
*/
|
|
2449
|
+
this.headerBytes = import_protobuf.protoInt64.zero;
|
|
2450
|
+
/**
|
|
2451
|
+
* @generated from field: double bitrate = 7;
|
|
2452
|
+
*/
|
|
2453
|
+
this.bitrate = 0;
|
|
2454
|
+
/**
|
|
2455
|
+
* @generated from field: uint32 packets_lost = 8;
|
|
2456
|
+
*/
|
|
2457
|
+
this.packetsLost = 0;
|
|
2458
|
+
/**
|
|
2459
|
+
* @generated from field: double packet_loss_rate = 9;
|
|
2460
|
+
*/
|
|
2461
|
+
this.packetLossRate = 0;
|
|
2462
|
+
/**
|
|
2463
|
+
* @generated from field: float packet_loss_percentage = 10;
|
|
2464
|
+
*/
|
|
2465
|
+
this.packetLossPercentage = 0;
|
|
2466
|
+
/**
|
|
2467
|
+
* @generated from field: uint32 packets_duplicate = 11;
|
|
2468
|
+
*/
|
|
2469
|
+
this.packetsDuplicate = 0;
|
|
2470
|
+
/**
|
|
2471
|
+
* @generated from field: double packet_duplicate_rate = 12;
|
|
2472
|
+
*/
|
|
2473
|
+
this.packetDuplicateRate = 0;
|
|
2474
|
+
/**
|
|
2475
|
+
* @generated from field: uint64 bytes_duplicate = 13;
|
|
2476
|
+
*/
|
|
2477
|
+
this.bytesDuplicate = import_protobuf.protoInt64.zero;
|
|
2478
|
+
/**
|
|
2479
|
+
* @generated from field: uint64 header_bytes_duplicate = 40;
|
|
2480
|
+
*/
|
|
2481
|
+
this.headerBytesDuplicate = import_protobuf.protoInt64.zero;
|
|
2482
|
+
/**
|
|
2483
|
+
* @generated from field: double bitrate_duplicate = 14;
|
|
2484
|
+
*/
|
|
2485
|
+
this.bitrateDuplicate = 0;
|
|
2486
|
+
/**
|
|
2487
|
+
* @generated from field: uint32 packets_padding = 15;
|
|
2488
|
+
*/
|
|
2489
|
+
this.packetsPadding = 0;
|
|
2490
|
+
/**
|
|
2491
|
+
* @generated from field: double packet_padding_rate = 16;
|
|
2492
|
+
*/
|
|
2493
|
+
this.packetPaddingRate = 0;
|
|
2494
|
+
/**
|
|
2495
|
+
* @generated from field: uint64 bytes_padding = 17;
|
|
2496
|
+
*/
|
|
2497
|
+
this.bytesPadding = import_protobuf.protoInt64.zero;
|
|
2498
|
+
/**
|
|
2499
|
+
* @generated from field: uint64 header_bytes_padding = 41;
|
|
2500
|
+
*/
|
|
2501
|
+
this.headerBytesPadding = import_protobuf.protoInt64.zero;
|
|
2502
|
+
/**
|
|
2503
|
+
* @generated from field: double bitrate_padding = 18;
|
|
2504
|
+
*/
|
|
2505
|
+
this.bitratePadding = 0;
|
|
2506
|
+
/**
|
|
2507
|
+
* @generated from field: uint32 packets_out_of_order = 19;
|
|
2508
|
+
*/
|
|
2509
|
+
this.packetsOutOfOrder = 0;
|
|
2510
|
+
/**
|
|
2511
|
+
* @generated from field: uint32 frames = 20;
|
|
2512
|
+
*/
|
|
2513
|
+
this.frames = 0;
|
|
2514
|
+
/**
|
|
2515
|
+
* @generated from field: double frame_rate = 21;
|
|
2516
|
+
*/
|
|
2517
|
+
this.frameRate = 0;
|
|
2518
|
+
/**
|
|
2519
|
+
* @generated from field: double jitter_current = 22;
|
|
2520
|
+
*/
|
|
2521
|
+
this.jitterCurrent = 0;
|
|
2522
|
+
/**
|
|
2523
|
+
* @generated from field: double jitter_max = 23;
|
|
2524
|
+
*/
|
|
2525
|
+
this.jitterMax = 0;
|
|
2526
|
+
/**
|
|
2527
|
+
* @generated from field: map<int32, uint32> gap_histogram = 24;
|
|
2528
|
+
*/
|
|
2529
|
+
this.gapHistogram = {};
|
|
2530
|
+
/**
|
|
2531
|
+
* @generated from field: uint32 nacks = 25;
|
|
2532
|
+
*/
|
|
2533
|
+
this.nacks = 0;
|
|
2534
|
+
/**
|
|
2535
|
+
* @generated from field: uint32 nack_acks = 37;
|
|
2536
|
+
*/
|
|
2537
|
+
this.nackAcks = 0;
|
|
2538
|
+
/**
|
|
2539
|
+
* @generated from field: uint32 nack_misses = 26;
|
|
2540
|
+
*/
|
|
2541
|
+
this.nackMisses = 0;
|
|
2542
|
+
/**
|
|
2543
|
+
* @generated from field: uint32 nack_repeated = 38;
|
|
2544
|
+
*/
|
|
2545
|
+
this.nackRepeated = 0;
|
|
2546
|
+
/**
|
|
2547
|
+
* @generated from field: uint32 plis = 27;
|
|
2548
|
+
*/
|
|
2549
|
+
this.plis = 0;
|
|
2550
|
+
/**
|
|
2551
|
+
* @generated from field: uint32 firs = 29;
|
|
2552
|
+
*/
|
|
2553
|
+
this.firs = 0;
|
|
2554
|
+
/**
|
|
2555
|
+
* @generated from field: uint32 rtt_current = 31;
|
|
2556
|
+
*/
|
|
2557
|
+
this.rttCurrent = 0;
|
|
2558
|
+
/**
|
|
2559
|
+
* @generated from field: uint32 rtt_max = 32;
|
|
2560
|
+
*/
|
|
2561
|
+
this.rttMax = 0;
|
|
2562
|
+
/**
|
|
2563
|
+
* @generated from field: uint32 key_frames = 33;
|
|
2564
|
+
*/
|
|
2565
|
+
this.keyFrames = 0;
|
|
2566
|
+
/**
|
|
2567
|
+
* @generated from field: uint32 layer_lock_plis = 35;
|
|
2568
|
+
*/
|
|
2569
|
+
this.layerLockPlis = 0;
|
|
2570
|
+
import_protobuf.proto3.util.initPartial(data, this);
|
|
2571
|
+
}
|
|
2572
|
+
static fromBinary(bytes, options) {
|
|
2573
|
+
return new _RTPStats().fromBinary(bytes, options);
|
|
2574
|
+
}
|
|
2575
|
+
static fromJson(jsonValue, options) {
|
|
2576
|
+
return new _RTPStats().fromJson(jsonValue, options);
|
|
2577
|
+
}
|
|
2578
|
+
static fromJsonString(jsonString, options) {
|
|
2579
|
+
return new _RTPStats().fromJsonString(jsonString, options);
|
|
2580
|
+
}
|
|
2581
|
+
static equals(a, b) {
|
|
2582
|
+
return import_protobuf.proto3.util.equals(_RTPStats, a, b);
|
|
2583
|
+
}
|
|
2584
|
+
};
|
|
2585
|
+
_RTPStats.runtime = import_protobuf.proto3;
|
|
2586
|
+
_RTPStats.typeName = "livekit.RTPStats";
|
|
2587
|
+
_RTPStats.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
2588
|
+
{ no: 1, name: "start_time", kind: "message", T: import_protobuf.Timestamp },
|
|
2589
|
+
{ no: 2, name: "end_time", kind: "message", T: import_protobuf.Timestamp },
|
|
2590
|
+
{
|
|
2591
|
+
no: 3,
|
|
2592
|
+
name: "duration",
|
|
2593
|
+
kind: "scalar",
|
|
2594
|
+
T: 1
|
|
2595
|
+
/* ScalarType.DOUBLE */
|
|
2596
|
+
},
|
|
2597
|
+
{
|
|
2598
|
+
no: 4,
|
|
2599
|
+
name: "packets",
|
|
2600
|
+
kind: "scalar",
|
|
2601
|
+
T: 13
|
|
2602
|
+
/* ScalarType.UINT32 */
|
|
2603
|
+
},
|
|
2604
|
+
{
|
|
2605
|
+
no: 5,
|
|
2606
|
+
name: "packet_rate",
|
|
2607
|
+
kind: "scalar",
|
|
2608
|
+
T: 1
|
|
2609
|
+
/* ScalarType.DOUBLE */
|
|
2610
|
+
},
|
|
2611
|
+
{
|
|
2612
|
+
no: 6,
|
|
2613
|
+
name: "bytes",
|
|
2614
|
+
kind: "scalar",
|
|
2615
|
+
T: 4
|
|
2616
|
+
/* ScalarType.UINT64 */
|
|
2617
|
+
},
|
|
2618
|
+
{
|
|
2619
|
+
no: 39,
|
|
2620
|
+
name: "header_bytes",
|
|
2621
|
+
kind: "scalar",
|
|
2622
|
+
T: 4
|
|
2623
|
+
/* ScalarType.UINT64 */
|
|
2624
|
+
},
|
|
2625
|
+
{
|
|
2626
|
+
no: 7,
|
|
2627
|
+
name: "bitrate",
|
|
2628
|
+
kind: "scalar",
|
|
2629
|
+
T: 1
|
|
2630
|
+
/* ScalarType.DOUBLE */
|
|
2631
|
+
},
|
|
2632
|
+
{
|
|
2633
|
+
no: 8,
|
|
2634
|
+
name: "packets_lost",
|
|
2635
|
+
kind: "scalar",
|
|
2636
|
+
T: 13
|
|
2637
|
+
/* ScalarType.UINT32 */
|
|
2638
|
+
},
|
|
2639
|
+
{
|
|
2640
|
+
no: 9,
|
|
2641
|
+
name: "packet_loss_rate",
|
|
2642
|
+
kind: "scalar",
|
|
2643
|
+
T: 1
|
|
2644
|
+
/* ScalarType.DOUBLE */
|
|
2645
|
+
},
|
|
2646
|
+
{
|
|
2647
|
+
no: 10,
|
|
2648
|
+
name: "packet_loss_percentage",
|
|
2649
|
+
kind: "scalar",
|
|
2650
|
+
T: 2
|
|
2651
|
+
/* ScalarType.FLOAT */
|
|
2652
|
+
},
|
|
2653
|
+
{
|
|
2654
|
+
no: 11,
|
|
2655
|
+
name: "packets_duplicate",
|
|
2656
|
+
kind: "scalar",
|
|
2657
|
+
T: 13
|
|
2658
|
+
/* ScalarType.UINT32 */
|
|
2659
|
+
},
|
|
2660
|
+
{
|
|
2661
|
+
no: 12,
|
|
2662
|
+
name: "packet_duplicate_rate",
|
|
2663
|
+
kind: "scalar",
|
|
2664
|
+
T: 1
|
|
2665
|
+
/* ScalarType.DOUBLE */
|
|
2666
|
+
},
|
|
2667
|
+
{
|
|
2668
|
+
no: 13,
|
|
2669
|
+
name: "bytes_duplicate",
|
|
2670
|
+
kind: "scalar",
|
|
2671
|
+
T: 4
|
|
2672
|
+
/* ScalarType.UINT64 */
|
|
2673
|
+
},
|
|
2674
|
+
{
|
|
2675
|
+
no: 40,
|
|
2676
|
+
name: "header_bytes_duplicate",
|
|
2677
|
+
kind: "scalar",
|
|
2678
|
+
T: 4
|
|
2679
|
+
/* ScalarType.UINT64 */
|
|
2680
|
+
},
|
|
2681
|
+
{
|
|
2682
|
+
no: 14,
|
|
2683
|
+
name: "bitrate_duplicate",
|
|
2684
|
+
kind: "scalar",
|
|
2685
|
+
T: 1
|
|
2686
|
+
/* ScalarType.DOUBLE */
|
|
2687
|
+
},
|
|
2688
|
+
{
|
|
2689
|
+
no: 15,
|
|
2690
|
+
name: "packets_padding",
|
|
2691
|
+
kind: "scalar",
|
|
2692
|
+
T: 13
|
|
2693
|
+
/* ScalarType.UINT32 */
|
|
2694
|
+
},
|
|
2695
|
+
{
|
|
2696
|
+
no: 16,
|
|
2697
|
+
name: "packet_padding_rate",
|
|
2698
|
+
kind: "scalar",
|
|
2699
|
+
T: 1
|
|
2700
|
+
/* ScalarType.DOUBLE */
|
|
2701
|
+
},
|
|
2702
|
+
{
|
|
2703
|
+
no: 17,
|
|
2704
|
+
name: "bytes_padding",
|
|
2705
|
+
kind: "scalar",
|
|
2706
|
+
T: 4
|
|
2707
|
+
/* ScalarType.UINT64 */
|
|
2708
|
+
},
|
|
2709
|
+
{
|
|
2710
|
+
no: 41,
|
|
2711
|
+
name: "header_bytes_padding",
|
|
2712
|
+
kind: "scalar",
|
|
2713
|
+
T: 4
|
|
2714
|
+
/* ScalarType.UINT64 */
|
|
2715
|
+
},
|
|
2716
|
+
{
|
|
2717
|
+
no: 18,
|
|
2718
|
+
name: "bitrate_padding",
|
|
2719
|
+
kind: "scalar",
|
|
2720
|
+
T: 1
|
|
2721
|
+
/* ScalarType.DOUBLE */
|
|
2722
|
+
},
|
|
2723
|
+
{
|
|
2724
|
+
no: 19,
|
|
2725
|
+
name: "packets_out_of_order",
|
|
2726
|
+
kind: "scalar",
|
|
2727
|
+
T: 13
|
|
2728
|
+
/* ScalarType.UINT32 */
|
|
2729
|
+
},
|
|
2730
|
+
{
|
|
2731
|
+
no: 20,
|
|
2732
|
+
name: "frames",
|
|
2733
|
+
kind: "scalar",
|
|
2734
|
+
T: 13
|
|
2735
|
+
/* ScalarType.UINT32 */
|
|
2736
|
+
},
|
|
2737
|
+
{
|
|
2738
|
+
no: 21,
|
|
2739
|
+
name: "frame_rate",
|
|
2740
|
+
kind: "scalar",
|
|
2741
|
+
T: 1
|
|
2742
|
+
/* ScalarType.DOUBLE */
|
|
2743
|
+
},
|
|
2744
|
+
{
|
|
2745
|
+
no: 22,
|
|
2746
|
+
name: "jitter_current",
|
|
2747
|
+
kind: "scalar",
|
|
2748
|
+
T: 1
|
|
2749
|
+
/* ScalarType.DOUBLE */
|
|
2750
|
+
},
|
|
2751
|
+
{
|
|
2752
|
+
no: 23,
|
|
2753
|
+
name: "jitter_max",
|
|
2754
|
+
kind: "scalar",
|
|
2755
|
+
T: 1
|
|
2756
|
+
/* ScalarType.DOUBLE */
|
|
2757
|
+
},
|
|
2758
|
+
{ no: 24, name: "gap_histogram", kind: "map", K: 5, V: {
|
|
2759
|
+
kind: "scalar",
|
|
2760
|
+
T: 13
|
|
2761
|
+
/* ScalarType.UINT32 */
|
|
2762
|
+
} },
|
|
2763
|
+
{
|
|
2764
|
+
no: 25,
|
|
2765
|
+
name: "nacks",
|
|
2766
|
+
kind: "scalar",
|
|
2767
|
+
T: 13
|
|
2768
|
+
/* ScalarType.UINT32 */
|
|
2769
|
+
},
|
|
2770
|
+
{
|
|
2771
|
+
no: 37,
|
|
2772
|
+
name: "nack_acks",
|
|
2773
|
+
kind: "scalar",
|
|
2774
|
+
T: 13
|
|
2775
|
+
/* ScalarType.UINT32 */
|
|
2776
|
+
},
|
|
2777
|
+
{
|
|
2778
|
+
no: 26,
|
|
2779
|
+
name: "nack_misses",
|
|
2780
|
+
kind: "scalar",
|
|
2781
|
+
T: 13
|
|
2782
|
+
/* ScalarType.UINT32 */
|
|
2783
|
+
},
|
|
2784
|
+
{
|
|
2785
|
+
no: 38,
|
|
2786
|
+
name: "nack_repeated",
|
|
2787
|
+
kind: "scalar",
|
|
2788
|
+
T: 13
|
|
2789
|
+
/* ScalarType.UINT32 */
|
|
2790
|
+
},
|
|
2791
|
+
{
|
|
2792
|
+
no: 27,
|
|
2793
|
+
name: "plis",
|
|
2794
|
+
kind: "scalar",
|
|
2795
|
+
T: 13
|
|
2796
|
+
/* ScalarType.UINT32 */
|
|
2797
|
+
},
|
|
2798
|
+
{ no: 28, name: "last_pli", kind: "message", T: import_protobuf.Timestamp },
|
|
2799
|
+
{
|
|
2800
|
+
no: 29,
|
|
2801
|
+
name: "firs",
|
|
2802
|
+
kind: "scalar",
|
|
2803
|
+
T: 13
|
|
2804
|
+
/* ScalarType.UINT32 */
|
|
2805
|
+
},
|
|
2806
|
+
{ no: 30, name: "last_fir", kind: "message", T: import_protobuf.Timestamp },
|
|
2807
|
+
{
|
|
2808
|
+
no: 31,
|
|
2809
|
+
name: "rtt_current",
|
|
2810
|
+
kind: "scalar",
|
|
2811
|
+
T: 13
|
|
2812
|
+
/* ScalarType.UINT32 */
|
|
2813
|
+
},
|
|
2814
|
+
{
|
|
2815
|
+
no: 32,
|
|
2816
|
+
name: "rtt_max",
|
|
2817
|
+
kind: "scalar",
|
|
2818
|
+
T: 13
|
|
2819
|
+
/* ScalarType.UINT32 */
|
|
2820
|
+
},
|
|
2821
|
+
{
|
|
2822
|
+
no: 33,
|
|
2823
|
+
name: "key_frames",
|
|
2824
|
+
kind: "scalar",
|
|
2825
|
+
T: 13
|
|
2826
|
+
/* ScalarType.UINT32 */
|
|
2827
|
+
},
|
|
2828
|
+
{ no: 34, name: "last_key_frame", kind: "message", T: import_protobuf.Timestamp },
|
|
2829
|
+
{
|
|
2830
|
+
no: 35,
|
|
2831
|
+
name: "layer_lock_plis",
|
|
2832
|
+
kind: "scalar",
|
|
2833
|
+
T: 13
|
|
2834
|
+
/* ScalarType.UINT32 */
|
|
2835
|
+
},
|
|
2836
|
+
{ no: 36, name: "last_layer_lock_pli", kind: "message", T: import_protobuf.Timestamp },
|
|
2837
|
+
{ no: 44, name: "packet_drift", kind: "message", T: RTPDrift },
|
|
2838
|
+
{ no: 45, name: "ntp_report_drift", kind: "message", T: RTPDrift },
|
|
2839
|
+
{ no: 46, name: "rebased_report_drift", kind: "message", T: RTPDrift },
|
|
2840
|
+
{ no: 47, name: "received_report_drift", kind: "message", T: RTPDrift }
|
|
2841
|
+
]);
|
|
2842
|
+
let RTPStats = _RTPStats;
|
|
2843
|
+
const _RTCPSenderReportState = class _RTCPSenderReportState extends import_protobuf.Message {
|
|
2844
|
+
constructor(data) {
|
|
2845
|
+
super();
|
|
2846
|
+
/**
|
|
2847
|
+
* @generated from field: uint32 rtp_timestamp = 1;
|
|
2848
|
+
*/
|
|
2849
|
+
this.rtpTimestamp = 0;
|
|
2850
|
+
/**
|
|
2851
|
+
* @generated from field: uint64 rtp_timestamp_ext = 2;
|
|
2852
|
+
*/
|
|
2853
|
+
this.rtpTimestampExt = import_protobuf.protoInt64.zero;
|
|
2854
|
+
/**
|
|
2855
|
+
* @generated from field: uint64 ntp_timestamp = 3;
|
|
2856
|
+
*/
|
|
2857
|
+
this.ntpTimestamp = import_protobuf.protoInt64.zero;
|
|
2858
|
+
/**
|
|
2859
|
+
* time at which this happened
|
|
2860
|
+
*
|
|
2861
|
+
* @generated from field: int64 at = 4;
|
|
2862
|
+
*/
|
|
2863
|
+
this.at = import_protobuf.protoInt64.zero;
|
|
2864
|
+
/**
|
|
2865
|
+
* @generated from field: int64 at_adjusted = 5;
|
|
2866
|
+
*/
|
|
2867
|
+
this.atAdjusted = import_protobuf.protoInt64.zero;
|
|
2868
|
+
/**
|
|
2869
|
+
* @generated from field: uint32 packets = 6;
|
|
2870
|
+
*/
|
|
2871
|
+
this.packets = 0;
|
|
2872
|
+
/**
|
|
2873
|
+
* @generated from field: uint64 octets = 7;
|
|
2874
|
+
*/
|
|
2875
|
+
this.octets = import_protobuf.protoInt64.zero;
|
|
2876
|
+
import_protobuf.proto3.util.initPartial(data, this);
|
|
2877
|
+
}
|
|
2878
|
+
static fromBinary(bytes, options) {
|
|
2879
|
+
return new _RTCPSenderReportState().fromBinary(bytes, options);
|
|
2880
|
+
}
|
|
2881
|
+
static fromJson(jsonValue, options) {
|
|
2882
|
+
return new _RTCPSenderReportState().fromJson(jsonValue, options);
|
|
2883
|
+
}
|
|
2884
|
+
static fromJsonString(jsonString, options) {
|
|
2885
|
+
return new _RTCPSenderReportState().fromJsonString(jsonString, options);
|
|
2886
|
+
}
|
|
2887
|
+
static equals(a, b) {
|
|
2888
|
+
return import_protobuf.proto3.util.equals(_RTCPSenderReportState, a, b);
|
|
2889
|
+
}
|
|
2890
|
+
};
|
|
2891
|
+
_RTCPSenderReportState.runtime = import_protobuf.proto3;
|
|
2892
|
+
_RTCPSenderReportState.typeName = "livekit.RTCPSenderReportState";
|
|
2893
|
+
_RTCPSenderReportState.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
2894
|
+
{
|
|
2895
|
+
no: 1,
|
|
2896
|
+
name: "rtp_timestamp",
|
|
2897
|
+
kind: "scalar",
|
|
2898
|
+
T: 13
|
|
2899
|
+
/* ScalarType.UINT32 */
|
|
2900
|
+
},
|
|
2901
|
+
{
|
|
2902
|
+
no: 2,
|
|
2903
|
+
name: "rtp_timestamp_ext",
|
|
2904
|
+
kind: "scalar",
|
|
2905
|
+
T: 4
|
|
2906
|
+
/* ScalarType.UINT64 */
|
|
2907
|
+
},
|
|
2908
|
+
{
|
|
2909
|
+
no: 3,
|
|
2910
|
+
name: "ntp_timestamp",
|
|
2911
|
+
kind: "scalar",
|
|
2912
|
+
T: 4
|
|
2913
|
+
/* ScalarType.UINT64 */
|
|
2914
|
+
},
|
|
2915
|
+
{
|
|
2916
|
+
no: 4,
|
|
2917
|
+
name: "at",
|
|
2918
|
+
kind: "scalar",
|
|
2919
|
+
T: 3
|
|
2920
|
+
/* ScalarType.INT64 */
|
|
2921
|
+
},
|
|
2922
|
+
{
|
|
2923
|
+
no: 5,
|
|
2924
|
+
name: "at_adjusted",
|
|
2925
|
+
kind: "scalar",
|
|
2926
|
+
T: 3
|
|
2927
|
+
/* ScalarType.INT64 */
|
|
2928
|
+
},
|
|
2929
|
+
{
|
|
2930
|
+
no: 6,
|
|
2931
|
+
name: "packets",
|
|
2932
|
+
kind: "scalar",
|
|
2933
|
+
T: 13
|
|
2934
|
+
/* ScalarType.UINT32 */
|
|
2935
|
+
},
|
|
2936
|
+
{
|
|
2937
|
+
no: 7,
|
|
2938
|
+
name: "octets",
|
|
2939
|
+
kind: "scalar",
|
|
2940
|
+
T: 4
|
|
2941
|
+
/* ScalarType.UINT64 */
|
|
2942
|
+
}
|
|
2943
|
+
]);
|
|
2944
|
+
let RTCPSenderReportState = _RTCPSenderReportState;
|
|
2945
|
+
const _RTPForwarderState = class _RTPForwarderState extends import_protobuf.Message {
|
|
2946
|
+
constructor(data) {
|
|
2947
|
+
super();
|
|
2948
|
+
/**
|
|
2949
|
+
* @generated from field: bool started = 1;
|
|
2950
|
+
*/
|
|
2951
|
+
this.started = false;
|
|
2952
|
+
/**
|
|
2953
|
+
* @generated from field: int32 reference_layer_spatial = 2;
|
|
2954
|
+
*/
|
|
2955
|
+
this.referenceLayerSpatial = 0;
|
|
2956
|
+
/**
|
|
2957
|
+
* @generated from field: int64 pre_start_time = 3;
|
|
2958
|
+
*/
|
|
2959
|
+
this.preStartTime = import_protobuf.protoInt64.zero;
|
|
2960
|
+
/**
|
|
2961
|
+
* @generated from field: uint64 ext_first_timestamp = 4;
|
|
2962
|
+
*/
|
|
2963
|
+
this.extFirstTimestamp = import_protobuf.protoInt64.zero;
|
|
2964
|
+
/**
|
|
2965
|
+
* @generated from field: uint64 dummy_start_timestamp_offset = 5;
|
|
2966
|
+
*/
|
|
2967
|
+
this.dummyStartTimestampOffset = import_protobuf.protoInt64.zero;
|
|
2968
|
+
/**
|
|
2969
|
+
* @generated from oneof livekit.RTPForwarderState.codec_munger
|
|
2970
|
+
*/
|
|
2971
|
+
this.codecMunger = { case: void 0 };
|
|
2972
|
+
/**
|
|
2973
|
+
* @generated from field: repeated livekit.RTCPSenderReportState sender_report_state = 8;
|
|
2974
|
+
*/
|
|
2975
|
+
this.senderReportState = [];
|
|
2976
|
+
import_protobuf.proto3.util.initPartial(data, this);
|
|
2977
|
+
}
|
|
2978
|
+
static fromBinary(bytes, options) {
|
|
2979
|
+
return new _RTPForwarderState().fromBinary(bytes, options);
|
|
2980
|
+
}
|
|
2981
|
+
static fromJson(jsonValue, options) {
|
|
2982
|
+
return new _RTPForwarderState().fromJson(jsonValue, options);
|
|
2983
|
+
}
|
|
2984
|
+
static fromJsonString(jsonString, options) {
|
|
2985
|
+
return new _RTPForwarderState().fromJsonString(jsonString, options);
|
|
2986
|
+
}
|
|
2987
|
+
static equals(a, b) {
|
|
2988
|
+
return import_protobuf.proto3.util.equals(_RTPForwarderState, a, b);
|
|
2989
|
+
}
|
|
2990
|
+
};
|
|
2991
|
+
_RTPForwarderState.runtime = import_protobuf.proto3;
|
|
2992
|
+
_RTPForwarderState.typeName = "livekit.RTPForwarderState";
|
|
2993
|
+
_RTPForwarderState.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
2994
|
+
{
|
|
2995
|
+
no: 1,
|
|
2996
|
+
name: "started",
|
|
2997
|
+
kind: "scalar",
|
|
2998
|
+
T: 8
|
|
2999
|
+
/* ScalarType.BOOL */
|
|
3000
|
+
},
|
|
3001
|
+
{
|
|
3002
|
+
no: 2,
|
|
3003
|
+
name: "reference_layer_spatial",
|
|
3004
|
+
kind: "scalar",
|
|
3005
|
+
T: 5
|
|
3006
|
+
/* ScalarType.INT32 */
|
|
3007
|
+
},
|
|
3008
|
+
{
|
|
3009
|
+
no: 3,
|
|
3010
|
+
name: "pre_start_time",
|
|
3011
|
+
kind: "scalar",
|
|
3012
|
+
T: 3
|
|
3013
|
+
/* ScalarType.INT64 */
|
|
3014
|
+
},
|
|
3015
|
+
{
|
|
3016
|
+
no: 4,
|
|
3017
|
+
name: "ext_first_timestamp",
|
|
3018
|
+
kind: "scalar",
|
|
3019
|
+
T: 4
|
|
3020
|
+
/* ScalarType.UINT64 */
|
|
3021
|
+
},
|
|
3022
|
+
{
|
|
3023
|
+
no: 5,
|
|
3024
|
+
name: "dummy_start_timestamp_offset",
|
|
3025
|
+
kind: "scalar",
|
|
3026
|
+
T: 4
|
|
3027
|
+
/* ScalarType.UINT64 */
|
|
3028
|
+
},
|
|
3029
|
+
{ no: 6, name: "rtp_munger", kind: "message", T: RTPMungerState },
|
|
3030
|
+
{ no: 7, name: "vp8_munger", kind: "message", T: VP8MungerState, oneof: "codec_munger" },
|
|
3031
|
+
{ no: 8, name: "sender_report_state", kind: "message", T: RTCPSenderReportState, repeated: true }
|
|
3032
|
+
]);
|
|
3033
|
+
let RTPForwarderState = _RTPForwarderState;
|
|
3034
|
+
const _RTPMungerState = class _RTPMungerState extends import_protobuf.Message {
|
|
3035
|
+
constructor(data) {
|
|
3036
|
+
super();
|
|
3037
|
+
/**
|
|
3038
|
+
* @generated from field: uint64 ext_last_sequence_number = 1;
|
|
3039
|
+
*/
|
|
3040
|
+
this.extLastSequenceNumber = import_protobuf.protoInt64.zero;
|
|
3041
|
+
/**
|
|
3042
|
+
* @generated from field: uint64 ext_second_last_sequence_number = 2;
|
|
3043
|
+
*/
|
|
3044
|
+
this.extSecondLastSequenceNumber = import_protobuf.protoInt64.zero;
|
|
3045
|
+
/**
|
|
3046
|
+
* @generated from field: uint64 ext_last_timestamp = 3;
|
|
3047
|
+
*/
|
|
3048
|
+
this.extLastTimestamp = import_protobuf.protoInt64.zero;
|
|
3049
|
+
/**
|
|
3050
|
+
* @generated from field: uint64 ext_second_last_timestamp = 4;
|
|
3051
|
+
*/
|
|
3052
|
+
this.extSecondLastTimestamp = import_protobuf.protoInt64.zero;
|
|
3053
|
+
/**
|
|
3054
|
+
* @generated from field: bool last_marker = 5;
|
|
3055
|
+
*/
|
|
3056
|
+
this.lastMarker = false;
|
|
3057
|
+
/**
|
|
3058
|
+
* @generated from field: bool second_last_marker = 6;
|
|
3059
|
+
*/
|
|
3060
|
+
this.secondLastMarker = false;
|
|
3061
|
+
import_protobuf.proto3.util.initPartial(data, this);
|
|
3062
|
+
}
|
|
3063
|
+
static fromBinary(bytes, options) {
|
|
3064
|
+
return new _RTPMungerState().fromBinary(bytes, options);
|
|
3065
|
+
}
|
|
3066
|
+
static fromJson(jsonValue, options) {
|
|
3067
|
+
return new _RTPMungerState().fromJson(jsonValue, options);
|
|
3068
|
+
}
|
|
3069
|
+
static fromJsonString(jsonString, options) {
|
|
3070
|
+
return new _RTPMungerState().fromJsonString(jsonString, options);
|
|
3071
|
+
}
|
|
3072
|
+
static equals(a, b) {
|
|
3073
|
+
return import_protobuf.proto3.util.equals(_RTPMungerState, a, b);
|
|
3074
|
+
}
|
|
3075
|
+
};
|
|
3076
|
+
_RTPMungerState.runtime = import_protobuf.proto3;
|
|
3077
|
+
_RTPMungerState.typeName = "livekit.RTPMungerState";
|
|
3078
|
+
_RTPMungerState.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
3079
|
+
{
|
|
3080
|
+
no: 1,
|
|
3081
|
+
name: "ext_last_sequence_number",
|
|
3082
|
+
kind: "scalar",
|
|
3083
|
+
T: 4
|
|
3084
|
+
/* ScalarType.UINT64 */
|
|
3085
|
+
},
|
|
3086
|
+
{
|
|
3087
|
+
no: 2,
|
|
3088
|
+
name: "ext_second_last_sequence_number",
|
|
3089
|
+
kind: "scalar",
|
|
3090
|
+
T: 4
|
|
3091
|
+
/* ScalarType.UINT64 */
|
|
3092
|
+
},
|
|
3093
|
+
{
|
|
3094
|
+
no: 3,
|
|
3095
|
+
name: "ext_last_timestamp",
|
|
3096
|
+
kind: "scalar",
|
|
3097
|
+
T: 4
|
|
3098
|
+
/* ScalarType.UINT64 */
|
|
3099
|
+
},
|
|
3100
|
+
{
|
|
3101
|
+
no: 4,
|
|
3102
|
+
name: "ext_second_last_timestamp",
|
|
3103
|
+
kind: "scalar",
|
|
3104
|
+
T: 4
|
|
3105
|
+
/* ScalarType.UINT64 */
|
|
3106
|
+
},
|
|
3107
|
+
{
|
|
3108
|
+
no: 5,
|
|
3109
|
+
name: "last_marker",
|
|
3110
|
+
kind: "scalar",
|
|
3111
|
+
T: 8
|
|
3112
|
+
/* ScalarType.BOOL */
|
|
3113
|
+
},
|
|
3114
|
+
{
|
|
3115
|
+
no: 6,
|
|
3116
|
+
name: "second_last_marker",
|
|
3117
|
+
kind: "scalar",
|
|
3118
|
+
T: 8
|
|
3119
|
+
/* ScalarType.BOOL */
|
|
3120
|
+
}
|
|
3121
|
+
]);
|
|
3122
|
+
let RTPMungerState = _RTPMungerState;
|
|
3123
|
+
const _VP8MungerState = class _VP8MungerState extends import_protobuf.Message {
|
|
3124
|
+
constructor(data) {
|
|
3125
|
+
super();
|
|
3126
|
+
/**
|
|
3127
|
+
* @generated from field: int32 ext_last_picture_id = 1;
|
|
3128
|
+
*/
|
|
3129
|
+
this.extLastPictureId = 0;
|
|
3130
|
+
/**
|
|
3131
|
+
* @generated from field: bool picture_id_used = 2;
|
|
3132
|
+
*/
|
|
3133
|
+
this.pictureIdUsed = false;
|
|
3134
|
+
/**
|
|
3135
|
+
* @generated from field: uint32 last_tl0_pic_idx = 3;
|
|
3136
|
+
*/
|
|
3137
|
+
this.lastTl0PicIdx = 0;
|
|
3138
|
+
/**
|
|
3139
|
+
* @generated from field: bool tl0_pic_idx_used = 4;
|
|
3140
|
+
*/
|
|
3141
|
+
this.tl0PicIdxUsed = false;
|
|
3142
|
+
/**
|
|
3143
|
+
* @generated from field: bool tid_used = 5;
|
|
3144
|
+
*/
|
|
3145
|
+
this.tidUsed = false;
|
|
3146
|
+
/**
|
|
3147
|
+
* @generated from field: uint32 last_key_idx = 6;
|
|
3148
|
+
*/
|
|
3149
|
+
this.lastKeyIdx = 0;
|
|
3150
|
+
/**
|
|
3151
|
+
* @generated from field: bool key_idx_used = 7;
|
|
3152
|
+
*/
|
|
3153
|
+
this.keyIdxUsed = false;
|
|
3154
|
+
import_protobuf.proto3.util.initPartial(data, this);
|
|
3155
|
+
}
|
|
3156
|
+
static fromBinary(bytes, options) {
|
|
3157
|
+
return new _VP8MungerState().fromBinary(bytes, options);
|
|
3158
|
+
}
|
|
3159
|
+
static fromJson(jsonValue, options) {
|
|
3160
|
+
return new _VP8MungerState().fromJson(jsonValue, options);
|
|
3161
|
+
}
|
|
3162
|
+
static fromJsonString(jsonString, options) {
|
|
3163
|
+
return new _VP8MungerState().fromJsonString(jsonString, options);
|
|
3164
|
+
}
|
|
3165
|
+
static equals(a, b) {
|
|
3166
|
+
return import_protobuf.proto3.util.equals(_VP8MungerState, a, b);
|
|
3167
|
+
}
|
|
3168
|
+
};
|
|
3169
|
+
_VP8MungerState.runtime = import_protobuf.proto3;
|
|
3170
|
+
_VP8MungerState.typeName = "livekit.VP8MungerState";
|
|
3171
|
+
_VP8MungerState.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
3172
|
+
{
|
|
3173
|
+
no: 1,
|
|
3174
|
+
name: "ext_last_picture_id",
|
|
3175
|
+
kind: "scalar",
|
|
3176
|
+
T: 5
|
|
3177
|
+
/* ScalarType.INT32 */
|
|
3178
|
+
},
|
|
3179
|
+
{
|
|
3180
|
+
no: 2,
|
|
3181
|
+
name: "picture_id_used",
|
|
3182
|
+
kind: "scalar",
|
|
3183
|
+
T: 8
|
|
3184
|
+
/* ScalarType.BOOL */
|
|
3185
|
+
},
|
|
3186
|
+
{
|
|
3187
|
+
no: 3,
|
|
3188
|
+
name: "last_tl0_pic_idx",
|
|
3189
|
+
kind: "scalar",
|
|
3190
|
+
T: 13
|
|
3191
|
+
/* ScalarType.UINT32 */
|
|
3192
|
+
},
|
|
3193
|
+
{
|
|
3194
|
+
no: 4,
|
|
3195
|
+
name: "tl0_pic_idx_used",
|
|
3196
|
+
kind: "scalar",
|
|
3197
|
+
T: 8
|
|
3198
|
+
/* ScalarType.BOOL */
|
|
3199
|
+
},
|
|
3200
|
+
{
|
|
3201
|
+
no: 5,
|
|
3202
|
+
name: "tid_used",
|
|
3203
|
+
kind: "scalar",
|
|
3204
|
+
T: 8
|
|
3205
|
+
/* ScalarType.BOOL */
|
|
3206
|
+
},
|
|
3207
|
+
{
|
|
3208
|
+
no: 6,
|
|
3209
|
+
name: "last_key_idx",
|
|
3210
|
+
kind: "scalar",
|
|
3211
|
+
T: 13
|
|
3212
|
+
/* ScalarType.UINT32 */
|
|
3213
|
+
},
|
|
3214
|
+
{
|
|
3215
|
+
no: 7,
|
|
3216
|
+
name: "key_idx_used",
|
|
3217
|
+
kind: "scalar",
|
|
3218
|
+
T: 8
|
|
3219
|
+
/* ScalarType.BOOL */
|
|
3220
|
+
}
|
|
3221
|
+
]);
|
|
3222
|
+
let VP8MungerState = _VP8MungerState;
|
|
3223
|
+
const _TimedVersion = class _TimedVersion extends import_protobuf.Message {
|
|
3224
|
+
constructor(data) {
|
|
3225
|
+
super();
|
|
3226
|
+
/**
|
|
3227
|
+
* @generated from field: int64 unix_micro = 1;
|
|
3228
|
+
*/
|
|
3229
|
+
this.unixMicro = import_protobuf.protoInt64.zero;
|
|
3230
|
+
/**
|
|
3231
|
+
* @generated from field: int32 ticks = 2;
|
|
3232
|
+
*/
|
|
3233
|
+
this.ticks = 0;
|
|
3234
|
+
import_protobuf.proto3.util.initPartial(data, this);
|
|
3235
|
+
}
|
|
3236
|
+
static fromBinary(bytes, options) {
|
|
3237
|
+
return new _TimedVersion().fromBinary(bytes, options);
|
|
3238
|
+
}
|
|
3239
|
+
static fromJson(jsonValue, options) {
|
|
3240
|
+
return new _TimedVersion().fromJson(jsonValue, options);
|
|
3241
|
+
}
|
|
3242
|
+
static fromJsonString(jsonString, options) {
|
|
3243
|
+
return new _TimedVersion().fromJsonString(jsonString, options);
|
|
3244
|
+
}
|
|
3245
|
+
static equals(a, b) {
|
|
3246
|
+
return import_protobuf.proto3.util.equals(_TimedVersion, a, b);
|
|
3247
|
+
}
|
|
3248
|
+
};
|
|
3249
|
+
_TimedVersion.runtime = import_protobuf.proto3;
|
|
3250
|
+
_TimedVersion.typeName = "livekit.TimedVersion";
|
|
3251
|
+
_TimedVersion.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
3252
|
+
{
|
|
3253
|
+
no: 1,
|
|
3254
|
+
name: "unix_micro",
|
|
3255
|
+
kind: "scalar",
|
|
3256
|
+
T: 3
|
|
3257
|
+
/* ScalarType.INT64 */
|
|
3258
|
+
},
|
|
3259
|
+
{
|
|
3260
|
+
no: 2,
|
|
3261
|
+
name: "ticks",
|
|
3262
|
+
kind: "scalar",
|
|
3263
|
+
T: 5
|
|
3264
|
+
/* ScalarType.INT32 */
|
|
3265
|
+
}
|
|
3266
|
+
]);
|
|
3267
|
+
let TimedVersion = _TimedVersion;
|
|
3268
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
3269
|
+
0 && (module.exports = {
|
|
3270
|
+
ActiveSpeakerUpdate,
|
|
3271
|
+
AudioCodec,
|
|
3272
|
+
AudioTrackFeature,
|
|
3273
|
+
ChatMessage,
|
|
3274
|
+
ClientConfigSetting,
|
|
3275
|
+
ClientConfiguration,
|
|
3276
|
+
ClientInfo,
|
|
3277
|
+
ClientInfo_SDK,
|
|
3278
|
+
Codec,
|
|
3279
|
+
ConnectionQuality,
|
|
3280
|
+
DataPacket,
|
|
3281
|
+
DataPacket_Kind,
|
|
3282
|
+
DisabledCodecs,
|
|
3283
|
+
DisconnectReason,
|
|
3284
|
+
Encryption,
|
|
3285
|
+
Encryption_Type,
|
|
3286
|
+
ImageCodec,
|
|
3287
|
+
ParticipantInfo,
|
|
3288
|
+
ParticipantInfo_Kind,
|
|
3289
|
+
ParticipantInfo_State,
|
|
3290
|
+
ParticipantPermission,
|
|
3291
|
+
ParticipantTracks,
|
|
3292
|
+
PlayoutDelay,
|
|
3293
|
+
RTCPSenderReportState,
|
|
3294
|
+
RTPDrift,
|
|
3295
|
+
RTPForwarderState,
|
|
3296
|
+
RTPMungerState,
|
|
3297
|
+
RTPStats,
|
|
3298
|
+
ReconnectReason,
|
|
3299
|
+
Room,
|
|
3300
|
+
RpcAck,
|
|
3301
|
+
RpcError,
|
|
3302
|
+
RpcRequest,
|
|
3303
|
+
RpcResponse,
|
|
3304
|
+
ServerInfo,
|
|
3305
|
+
ServerInfo_Edition,
|
|
3306
|
+
SimulcastCodecInfo,
|
|
3307
|
+
SipDTMF,
|
|
3308
|
+
SpeakerInfo,
|
|
3309
|
+
SubscriptionError,
|
|
3310
|
+
TimedVersion,
|
|
3311
|
+
TrackInfo,
|
|
3312
|
+
TrackSource,
|
|
3313
|
+
TrackType,
|
|
3314
|
+
Transcription,
|
|
3315
|
+
TranscriptionSegment,
|
|
3316
|
+
UserPacket,
|
|
3317
|
+
VP8MungerState,
|
|
3318
|
+
VideoCodec,
|
|
3319
|
+
VideoConfiguration,
|
|
3320
|
+
VideoLayer,
|
|
3321
|
+
VideoQuality
|
|
3322
|
+
});
|
|
3323
|
+
//# sourceMappingURL=livekit_models_pb.cjs.map
|