@livekit/protocol 1.29.2 → 1.29.3
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/index.cjs +6261 -51
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11475 -0
- package/dist/index.d.mts +11475 -0
- package/dist/index.d.ts +11475 -13
- package/dist/index.mjs +6013 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +18 -18
- package/src/gen/livekit_agent_dispatch_pb.d.ts +253 -0
- package/src/gen/livekit_agent_dispatch_pb.js +103 -0
- package/src/gen/livekit_agent_pb.d.ts +741 -0
- package/src/gen/livekit_agent_pb.js +266 -0
- package/src/gen/livekit_analytics_pb.d.ts +889 -0
- package/src/gen/livekit_analytics_pb.js +264 -0
- package/src/gen/livekit_egress_pb.d.ts +2056 -0
- package/src/gen/livekit_egress_pb.js +594 -0
- package/src/gen/livekit_ingress_pb.d.ts +843 -0
- package/src/gen/livekit_ingress_pb.js +269 -0
- package/src/gen/livekit_internal_pb.d.ts +622 -0
- package/src/gen/livekit_internal_pb.js +191 -0
- package/src/gen/livekit_metrics_pb.d.ts +376 -0
- package/src/gen/livekit_metrics_pb.js +97 -0
- package/src/gen/livekit_models_pb.d.ts +2837 -0
- package/src/gen/livekit_models_pb.js +913 -0
- package/src/gen/livekit_room_pb.d.ts +774 -0
- package/src/gen/livekit_room_pb.js +259 -0
- package/src/gen/livekit_rtc_pb.d.ts +2001 -0
- package/src/gen/livekit_rtc_pb.js +634 -0
- package/src/gen/livekit_sip_pb.d.ts +1551 -0
- package/src/gen/livekit_sip_pb.js +483 -0
- package/src/gen/livekit_webhook_pb.d.ts +105 -0
- package/src/gen/livekit_webhook_pb.js +42 -0
- package/src/gen/version.js +2 -0
- package/src/index.d.ts +12 -0
- package/{dist → src}/index.js +2 -5
- package/dist/gen/livekit_agent_dispatch_pb.cjs +0 -385
- package/dist/gen/livekit_agent_dispatch_pb.cjs.map +0 -1
- package/dist/gen/livekit_agent_dispatch_pb.d.ts +0 -174
- package/dist/gen/livekit_agent_dispatch_pb.d.ts.map +0 -1
- package/dist/gen/livekit_agent_dispatch_pb.js +0 -356
- package/dist/gen/livekit_agent_dispatch_pb.js.map +0 -1
- package/dist/gen/livekit_agent_pb.cjs +0 -881
- package/dist/gen/livekit_agent_pb.cjs.map +0 -1
- package/dist/gen/livekit_agent_pb.d.ts +0 -575
- package/dist/gen/livekit_agent_pb.d.ts.map +0 -1
- package/dist/gen/livekit_agent_pb.js +0 -840
- package/dist/gen/livekit_agent_pb.js.map +0 -1
- package/dist/gen/livekit_analytics_pb.cjs +0 -1087
- package/dist/gen/livekit_analytics_pb.cjs.map +0 -1
- package/dist/gen/livekit_analytics_pb.d.ts +0 -679
- package/dist/gen/livekit_analytics_pb.d.ts.map +0 -1
- package/dist/gen/livekit_analytics_pb.js +0 -1053
- package/dist/gen/livekit_analytics_pb.js.map +0 -1
- package/dist/gen/livekit_egress_pb.cjs +0 -2476
- package/dist/gen/livekit_egress_pb.cjs.map +0 -1
- package/dist/gen/livekit_egress_pb.d.ts +0 -1720
- package/dist/gen/livekit_egress_pb.d.ts.map +0 -1
- package/dist/gen/livekit_egress_pb.js +0 -2417
- package/dist/gen/livekit_egress_pb.js.map +0 -1
- package/dist/gen/livekit_ingress_pb.cjs +0 -1050
- package/dist/gen/livekit_ingress_pb.cjs.map +0 -1
- package/dist/gen/livekit_ingress_pb.d.ts +0 -660
- package/dist/gen/livekit_ingress_pb.d.ts.map +0 -1
- package/dist/gen/livekit_ingress_pb.js +0 -1011
- package/dist/gen/livekit_ingress_pb.js.map +0 -1
- package/dist/gen/livekit_internal_pb.cjs +0 -998
- package/dist/gen/livekit_internal_pb.cjs.map +0 -1
- package/dist/gen/livekit_internal_pb.d.ts +0 -481
- package/dist/gen/livekit_internal_pb.d.ts.map +0 -1
- package/dist/gen/livekit_internal_pb.js +0 -968
- package/dist/gen/livekit_internal_pb.js.map +0 -1
- package/dist/gen/livekit_metrics_pb.cjs +0 -371
- package/dist/gen/livekit_metrics_pb.cjs.map +0 -1
- package/dist/gen/livekit_metrics_pb.d.ts +0 -304
- package/dist/gen/livekit_metrics_pb.d.ts.map +0 -1
- package/dist/gen/livekit_metrics_pb.js +0 -344
- package/dist/gen/livekit_metrics_pb.js.map +0 -1
- package/dist/gen/livekit_models_pb.cjs +0 -3668
- package/dist/gen/livekit_models_pb.cjs.map +0 -1
- package/dist/gen/livekit_models_pb.d.ts +0 -2265
- package/dist/gen/livekit_models_pb.d.ts.map +0 -1
- package/dist/gen/livekit_models_pb.js +0 -3588
- package/dist/gen/livekit_models_pb.js.map +0 -1
- package/dist/gen/livekit_room_pb.cjs +0 -1080
- package/dist/gen/livekit_room_pb.cjs.map +0 -1
- package/dist/gen/livekit_room_pb.d.ts +0 -580
- package/dist/gen/livekit_room_pb.d.ts.map +0 -1
- package/dist/gen/livekit_room_pb.js +0 -1038
- package/dist/gen/livekit_room_pb.js.map +0 -1
- package/dist/gen/livekit_rtc_pb.cjs +0 -2261
- package/dist/gen/livekit_rtc_pb.cjs.map +0 -1
- package/dist/gen/livekit_rtc_pb.d.ts +0 -1602
- package/dist/gen/livekit_rtc_pb.d.ts.map +0 -1
- package/dist/gen/livekit_rtc_pb.js +0 -2192
- package/dist/gen/livekit_rtc_pb.js.map +0 -1
- package/dist/gen/livekit_sip_pb.cjs +0 -2118
- package/dist/gen/livekit_sip_pb.cjs.map +0 -1
- package/dist/gen/livekit_sip_pb.d.ts +0 -1226
- package/dist/gen/livekit_sip_pb.d.ts.map +0 -1
- package/dist/gen/livekit_sip_pb.js +0 -2061
- package/dist/gen/livekit_sip_pb.js.map +0 -1
- package/dist/gen/livekit_webhook_pb.cjs +0 -111
- package/dist/gen/livekit_webhook_pb.cjs.map +0 -1
- package/dist/gen/livekit_webhook_pb.d.ts +0 -71
- package/dist/gen/livekit_webhook_pb.d.ts.map +0 -1
- package/dist/gen/livekit_webhook_pb.js +0 -88
- package/dist/gen/livekit_webhook_pb.js.map +0 -1
- package/dist/gen/version.cjs +0 -28
- package/dist/gen/version.cjs.map +0 -1
- package/dist/gen/version.d.ts +0 -2
- package/dist/gen/version.d.ts.map +0 -1
- package/dist/gen/version.js +0 -5
- package/dist/gen/version.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
|
@@ -1,2261 +0,0 @@
|
|
|
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_rtc_pb_exports = {};
|
|
19
|
-
__export(livekit_rtc_pb_exports, {
|
|
20
|
-
AddTrackRequest: () => AddTrackRequest,
|
|
21
|
-
CandidateProtocol: () => CandidateProtocol,
|
|
22
|
-
ConnectionQualityInfo: () => ConnectionQualityInfo,
|
|
23
|
-
ConnectionQualityUpdate: () => ConnectionQualityUpdate,
|
|
24
|
-
DataChannelInfo: () => DataChannelInfo,
|
|
25
|
-
ICEServer: () => ICEServer,
|
|
26
|
-
JoinResponse: () => JoinResponse,
|
|
27
|
-
LeaveRequest: () => LeaveRequest,
|
|
28
|
-
LeaveRequest_Action: () => LeaveRequest_Action,
|
|
29
|
-
MuteTrackRequest: () => MuteTrackRequest,
|
|
30
|
-
ParticipantUpdate: () => ParticipantUpdate,
|
|
31
|
-
Ping: () => Ping,
|
|
32
|
-
Pong: () => Pong,
|
|
33
|
-
ReconnectResponse: () => ReconnectResponse,
|
|
34
|
-
RegionInfo: () => RegionInfo,
|
|
35
|
-
RegionSettings: () => RegionSettings,
|
|
36
|
-
RequestResponse: () => RequestResponse,
|
|
37
|
-
RequestResponse_Reason: () => RequestResponse_Reason,
|
|
38
|
-
RoomUpdate: () => RoomUpdate,
|
|
39
|
-
SessionDescription: () => SessionDescription,
|
|
40
|
-
SignalRequest: () => SignalRequest,
|
|
41
|
-
SignalResponse: () => SignalResponse,
|
|
42
|
-
SignalTarget: () => SignalTarget,
|
|
43
|
-
SimulateScenario: () => SimulateScenario,
|
|
44
|
-
SimulcastCodec: () => SimulcastCodec,
|
|
45
|
-
SpeakersChanged: () => SpeakersChanged,
|
|
46
|
-
StreamState: () => StreamState,
|
|
47
|
-
StreamStateInfo: () => StreamStateInfo,
|
|
48
|
-
StreamStateUpdate: () => StreamStateUpdate,
|
|
49
|
-
SubscribedCodec: () => SubscribedCodec,
|
|
50
|
-
SubscribedQuality: () => SubscribedQuality,
|
|
51
|
-
SubscribedQualityUpdate: () => SubscribedQualityUpdate,
|
|
52
|
-
SubscriptionPermission: () => SubscriptionPermission,
|
|
53
|
-
SubscriptionPermissionUpdate: () => SubscriptionPermissionUpdate,
|
|
54
|
-
SubscriptionResponse: () => SubscriptionResponse,
|
|
55
|
-
SyncState: () => SyncState,
|
|
56
|
-
TrackPermission: () => TrackPermission,
|
|
57
|
-
TrackPublishedResponse: () => TrackPublishedResponse,
|
|
58
|
-
TrackSubscribed: () => TrackSubscribed,
|
|
59
|
-
TrackUnpublishedResponse: () => TrackUnpublishedResponse,
|
|
60
|
-
TrickleRequest: () => TrickleRequest,
|
|
61
|
-
UpdateLocalAudioTrack: () => UpdateLocalAudioTrack,
|
|
62
|
-
UpdateLocalVideoTrack: () => UpdateLocalVideoTrack,
|
|
63
|
-
UpdateParticipantMetadata: () => UpdateParticipantMetadata,
|
|
64
|
-
UpdateSubscription: () => UpdateSubscription,
|
|
65
|
-
UpdateTrackSettings: () => UpdateTrackSettings,
|
|
66
|
-
UpdateVideoLayers: () => UpdateVideoLayers
|
|
67
|
-
});
|
|
68
|
-
module.exports = __toCommonJS(livekit_rtc_pb_exports);
|
|
69
|
-
var import_protobuf = require("@bufbuild/protobuf");
|
|
70
|
-
var import_livekit_models_pb = require("./livekit_models_pb.cjs");
|
|
71
|
-
var SignalTarget = /* @__PURE__ */ ((SignalTarget2) => {
|
|
72
|
-
SignalTarget2[SignalTarget2["PUBLISHER"] = 0] = "PUBLISHER";
|
|
73
|
-
SignalTarget2[SignalTarget2["SUBSCRIBER"] = 1] = "SUBSCRIBER";
|
|
74
|
-
return SignalTarget2;
|
|
75
|
-
})(SignalTarget || {});
|
|
76
|
-
import_protobuf.proto3.util.setEnumType(SignalTarget, "livekit.SignalTarget", [
|
|
77
|
-
{ no: 0, name: "PUBLISHER" },
|
|
78
|
-
{ no: 1, name: "SUBSCRIBER" }
|
|
79
|
-
]);
|
|
80
|
-
var StreamState = /* @__PURE__ */ ((StreamState2) => {
|
|
81
|
-
StreamState2[StreamState2["ACTIVE"] = 0] = "ACTIVE";
|
|
82
|
-
StreamState2[StreamState2["PAUSED"] = 1] = "PAUSED";
|
|
83
|
-
return StreamState2;
|
|
84
|
-
})(StreamState || {});
|
|
85
|
-
import_protobuf.proto3.util.setEnumType(StreamState, "livekit.StreamState", [
|
|
86
|
-
{ no: 0, name: "ACTIVE" },
|
|
87
|
-
{ no: 1, name: "PAUSED" }
|
|
88
|
-
]);
|
|
89
|
-
var CandidateProtocol = /* @__PURE__ */ ((CandidateProtocol2) => {
|
|
90
|
-
CandidateProtocol2[CandidateProtocol2["UDP"] = 0] = "UDP";
|
|
91
|
-
CandidateProtocol2[CandidateProtocol2["TCP"] = 1] = "TCP";
|
|
92
|
-
CandidateProtocol2[CandidateProtocol2["TLS"] = 2] = "TLS";
|
|
93
|
-
return CandidateProtocol2;
|
|
94
|
-
})(CandidateProtocol || {});
|
|
95
|
-
import_protobuf.proto3.util.setEnumType(CandidateProtocol, "livekit.CandidateProtocol", [
|
|
96
|
-
{ no: 0, name: "UDP" },
|
|
97
|
-
{ no: 1, name: "TCP" },
|
|
98
|
-
{ no: 2, name: "TLS" }
|
|
99
|
-
]);
|
|
100
|
-
const _SignalRequest = class _SignalRequest extends import_protobuf.Message {
|
|
101
|
-
constructor(data) {
|
|
102
|
-
super();
|
|
103
|
-
/**
|
|
104
|
-
* @generated from oneof livekit.SignalRequest.message
|
|
105
|
-
*/
|
|
106
|
-
this.message = { case: void 0 };
|
|
107
|
-
import_protobuf.proto3.util.initPartial(data, this);
|
|
108
|
-
}
|
|
109
|
-
static fromBinary(bytes, options) {
|
|
110
|
-
return new _SignalRequest().fromBinary(bytes, options);
|
|
111
|
-
}
|
|
112
|
-
static fromJson(jsonValue, options) {
|
|
113
|
-
return new _SignalRequest().fromJson(jsonValue, options);
|
|
114
|
-
}
|
|
115
|
-
static fromJsonString(jsonString, options) {
|
|
116
|
-
return new _SignalRequest().fromJsonString(jsonString, options);
|
|
117
|
-
}
|
|
118
|
-
static equals(a, b) {
|
|
119
|
-
return import_protobuf.proto3.util.equals(_SignalRequest, a, b);
|
|
120
|
-
}
|
|
121
|
-
};
|
|
122
|
-
_SignalRequest.runtime = import_protobuf.proto3;
|
|
123
|
-
_SignalRequest.typeName = "livekit.SignalRequest";
|
|
124
|
-
_SignalRequest.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
125
|
-
{ no: 1, name: "offer", kind: "message", T: SessionDescription, oneof: "message" },
|
|
126
|
-
{ no: 2, name: "answer", kind: "message", T: SessionDescription, oneof: "message" },
|
|
127
|
-
{ no: 3, name: "trickle", kind: "message", T: TrickleRequest, oneof: "message" },
|
|
128
|
-
{ no: 4, name: "add_track", kind: "message", T: AddTrackRequest, oneof: "message" },
|
|
129
|
-
{ no: 5, name: "mute", kind: "message", T: MuteTrackRequest, oneof: "message" },
|
|
130
|
-
{ no: 6, name: "subscription", kind: "message", T: UpdateSubscription, oneof: "message" },
|
|
131
|
-
{ no: 7, name: "track_setting", kind: "message", T: UpdateTrackSettings, oneof: "message" },
|
|
132
|
-
{ no: 8, name: "leave", kind: "message", T: LeaveRequest, oneof: "message" },
|
|
133
|
-
{ no: 10, name: "update_layers", kind: "message", T: UpdateVideoLayers, oneof: "message" },
|
|
134
|
-
{ no: 11, name: "subscription_permission", kind: "message", T: SubscriptionPermission, oneof: "message" },
|
|
135
|
-
{ no: 12, name: "sync_state", kind: "message", T: SyncState, oneof: "message" },
|
|
136
|
-
{ no: 13, name: "simulate", kind: "message", T: SimulateScenario, oneof: "message" },
|
|
137
|
-
{ no: 14, name: "ping", kind: "scalar", T: 3, oneof: "message" },
|
|
138
|
-
{ no: 15, name: "update_metadata", kind: "message", T: UpdateParticipantMetadata, oneof: "message" },
|
|
139
|
-
{ no: 16, name: "ping_req", kind: "message", T: Ping, oneof: "message" },
|
|
140
|
-
{ no: 17, name: "update_audio_track", kind: "message", T: UpdateLocalAudioTrack, oneof: "message" },
|
|
141
|
-
{ no: 18, name: "update_video_track", kind: "message", T: UpdateLocalVideoTrack, oneof: "message" }
|
|
142
|
-
]);
|
|
143
|
-
let SignalRequest = _SignalRequest;
|
|
144
|
-
const _SignalResponse = class _SignalResponse extends import_protobuf.Message {
|
|
145
|
-
constructor(data) {
|
|
146
|
-
super();
|
|
147
|
-
/**
|
|
148
|
-
* @generated from oneof livekit.SignalResponse.message
|
|
149
|
-
*/
|
|
150
|
-
this.message = { case: void 0 };
|
|
151
|
-
import_protobuf.proto3.util.initPartial(data, this);
|
|
152
|
-
}
|
|
153
|
-
static fromBinary(bytes, options) {
|
|
154
|
-
return new _SignalResponse().fromBinary(bytes, options);
|
|
155
|
-
}
|
|
156
|
-
static fromJson(jsonValue, options) {
|
|
157
|
-
return new _SignalResponse().fromJson(jsonValue, options);
|
|
158
|
-
}
|
|
159
|
-
static fromJsonString(jsonString, options) {
|
|
160
|
-
return new _SignalResponse().fromJsonString(jsonString, options);
|
|
161
|
-
}
|
|
162
|
-
static equals(a, b) {
|
|
163
|
-
return import_protobuf.proto3.util.equals(_SignalResponse, a, b);
|
|
164
|
-
}
|
|
165
|
-
};
|
|
166
|
-
_SignalResponse.runtime = import_protobuf.proto3;
|
|
167
|
-
_SignalResponse.typeName = "livekit.SignalResponse";
|
|
168
|
-
_SignalResponse.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
169
|
-
{ no: 1, name: "join", kind: "message", T: JoinResponse, oneof: "message" },
|
|
170
|
-
{ no: 2, name: "answer", kind: "message", T: SessionDescription, oneof: "message" },
|
|
171
|
-
{ no: 3, name: "offer", kind: "message", T: SessionDescription, oneof: "message" },
|
|
172
|
-
{ no: 4, name: "trickle", kind: "message", T: TrickleRequest, oneof: "message" },
|
|
173
|
-
{ no: 5, name: "update", kind: "message", T: ParticipantUpdate, oneof: "message" },
|
|
174
|
-
{ no: 6, name: "track_published", kind: "message", T: TrackPublishedResponse, oneof: "message" },
|
|
175
|
-
{ no: 8, name: "leave", kind: "message", T: LeaveRequest, oneof: "message" },
|
|
176
|
-
{ no: 9, name: "mute", kind: "message", T: MuteTrackRequest, oneof: "message" },
|
|
177
|
-
{ no: 10, name: "speakers_changed", kind: "message", T: SpeakersChanged, oneof: "message" },
|
|
178
|
-
{ no: 11, name: "room_update", kind: "message", T: RoomUpdate, oneof: "message" },
|
|
179
|
-
{ no: 12, name: "connection_quality", kind: "message", T: ConnectionQualityUpdate, oneof: "message" },
|
|
180
|
-
{ no: 13, name: "stream_state_update", kind: "message", T: StreamStateUpdate, oneof: "message" },
|
|
181
|
-
{ no: 14, name: "subscribed_quality_update", kind: "message", T: SubscribedQualityUpdate, oneof: "message" },
|
|
182
|
-
{ no: 15, name: "subscription_permission_update", kind: "message", T: SubscriptionPermissionUpdate, oneof: "message" },
|
|
183
|
-
{ no: 16, name: "refresh_token", kind: "scalar", T: 9, oneof: "message" },
|
|
184
|
-
{ no: 17, name: "track_unpublished", kind: "message", T: TrackUnpublishedResponse, oneof: "message" },
|
|
185
|
-
{ no: 18, name: "pong", kind: "scalar", T: 3, oneof: "message" },
|
|
186
|
-
{ no: 19, name: "reconnect", kind: "message", T: ReconnectResponse, oneof: "message" },
|
|
187
|
-
{ no: 20, name: "pong_resp", kind: "message", T: Pong, oneof: "message" },
|
|
188
|
-
{ no: 21, name: "subscription_response", kind: "message", T: SubscriptionResponse, oneof: "message" },
|
|
189
|
-
{ no: 22, name: "request_response", kind: "message", T: RequestResponse, oneof: "message" },
|
|
190
|
-
{ no: 23, name: "track_subscribed", kind: "message", T: TrackSubscribed, oneof: "message" }
|
|
191
|
-
]);
|
|
192
|
-
let SignalResponse = _SignalResponse;
|
|
193
|
-
const _SimulcastCodec = class _SimulcastCodec extends import_protobuf.Message {
|
|
194
|
-
constructor(data) {
|
|
195
|
-
super();
|
|
196
|
-
/**
|
|
197
|
-
* @generated from field: string codec = 1;
|
|
198
|
-
*/
|
|
199
|
-
this.codec = "";
|
|
200
|
-
/**
|
|
201
|
-
* @generated from field: string cid = 2;
|
|
202
|
-
*/
|
|
203
|
-
this.cid = "";
|
|
204
|
-
import_protobuf.proto3.util.initPartial(data, this);
|
|
205
|
-
}
|
|
206
|
-
static fromBinary(bytes, options) {
|
|
207
|
-
return new _SimulcastCodec().fromBinary(bytes, options);
|
|
208
|
-
}
|
|
209
|
-
static fromJson(jsonValue, options) {
|
|
210
|
-
return new _SimulcastCodec().fromJson(jsonValue, options);
|
|
211
|
-
}
|
|
212
|
-
static fromJsonString(jsonString, options) {
|
|
213
|
-
return new _SimulcastCodec().fromJsonString(jsonString, options);
|
|
214
|
-
}
|
|
215
|
-
static equals(a, b) {
|
|
216
|
-
return import_protobuf.proto3.util.equals(_SimulcastCodec, a, b);
|
|
217
|
-
}
|
|
218
|
-
};
|
|
219
|
-
_SimulcastCodec.runtime = import_protobuf.proto3;
|
|
220
|
-
_SimulcastCodec.typeName = "livekit.SimulcastCodec";
|
|
221
|
-
_SimulcastCodec.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
222
|
-
{
|
|
223
|
-
no: 1,
|
|
224
|
-
name: "codec",
|
|
225
|
-
kind: "scalar",
|
|
226
|
-
T: 9
|
|
227
|
-
/* ScalarType.STRING */
|
|
228
|
-
},
|
|
229
|
-
{
|
|
230
|
-
no: 2,
|
|
231
|
-
name: "cid",
|
|
232
|
-
kind: "scalar",
|
|
233
|
-
T: 9
|
|
234
|
-
/* ScalarType.STRING */
|
|
235
|
-
}
|
|
236
|
-
]);
|
|
237
|
-
let SimulcastCodec = _SimulcastCodec;
|
|
238
|
-
const _AddTrackRequest = class _AddTrackRequest extends import_protobuf.Message {
|
|
239
|
-
constructor(data) {
|
|
240
|
-
super();
|
|
241
|
-
/**
|
|
242
|
-
* client ID of track, to match it when RTC track is received
|
|
243
|
-
*
|
|
244
|
-
* @generated from field: string cid = 1;
|
|
245
|
-
*/
|
|
246
|
-
this.cid = "";
|
|
247
|
-
/**
|
|
248
|
-
* @generated from field: string name = 2;
|
|
249
|
-
*/
|
|
250
|
-
this.name = "";
|
|
251
|
-
/**
|
|
252
|
-
* @generated from field: livekit.TrackType type = 3;
|
|
253
|
-
*/
|
|
254
|
-
this.type = import_livekit_models_pb.TrackType.AUDIO;
|
|
255
|
-
/**
|
|
256
|
-
* to be deprecated in favor of layers
|
|
257
|
-
*
|
|
258
|
-
* @generated from field: uint32 width = 4;
|
|
259
|
-
*/
|
|
260
|
-
this.width = 0;
|
|
261
|
-
/**
|
|
262
|
-
* @generated from field: uint32 height = 5;
|
|
263
|
-
*/
|
|
264
|
-
this.height = 0;
|
|
265
|
-
/**
|
|
266
|
-
* true to add track and initialize to muted
|
|
267
|
-
*
|
|
268
|
-
* @generated from field: bool muted = 6;
|
|
269
|
-
*/
|
|
270
|
-
this.muted = false;
|
|
271
|
-
/**
|
|
272
|
-
* true if DTX (Discontinuous Transmission) is disabled for audio
|
|
273
|
-
*
|
|
274
|
-
* @generated from field: bool disable_dtx = 7;
|
|
275
|
-
*/
|
|
276
|
-
this.disableDtx = false;
|
|
277
|
-
/**
|
|
278
|
-
* @generated from field: livekit.TrackSource source = 8;
|
|
279
|
-
*/
|
|
280
|
-
this.source = import_livekit_models_pb.TrackSource.UNKNOWN;
|
|
281
|
-
/**
|
|
282
|
-
* @generated from field: repeated livekit.VideoLayer layers = 9;
|
|
283
|
-
*/
|
|
284
|
-
this.layers = [];
|
|
285
|
-
/**
|
|
286
|
-
* @generated from field: repeated livekit.SimulcastCodec simulcast_codecs = 10;
|
|
287
|
-
*/
|
|
288
|
-
this.simulcastCodecs = [];
|
|
289
|
-
/**
|
|
290
|
-
* server ID of track, publish new codec to exist track
|
|
291
|
-
*
|
|
292
|
-
* @generated from field: string sid = 11;
|
|
293
|
-
*/
|
|
294
|
-
this.sid = "";
|
|
295
|
-
/**
|
|
296
|
-
* @generated from field: bool stereo = 12;
|
|
297
|
-
*/
|
|
298
|
-
this.stereo = false;
|
|
299
|
-
/**
|
|
300
|
-
* true if RED (Redundant Encoding) is disabled for audio
|
|
301
|
-
*
|
|
302
|
-
* @generated from field: bool disable_red = 13;
|
|
303
|
-
*/
|
|
304
|
-
this.disableRed = false;
|
|
305
|
-
/**
|
|
306
|
-
* @generated from field: livekit.Encryption.Type encryption = 14;
|
|
307
|
-
*/
|
|
308
|
-
this.encryption = import_livekit_models_pb.Encryption_Type.NONE;
|
|
309
|
-
/**
|
|
310
|
-
* which stream the track belongs to, used to group tracks together.
|
|
311
|
-
* if not specified, server will infer it from track source to bundle camera/microphone, screenshare/audio together
|
|
312
|
-
*
|
|
313
|
-
* @generated from field: string stream = 15;
|
|
314
|
-
*/
|
|
315
|
-
this.stream = "";
|
|
316
|
-
import_protobuf.proto3.util.initPartial(data, this);
|
|
317
|
-
}
|
|
318
|
-
static fromBinary(bytes, options) {
|
|
319
|
-
return new _AddTrackRequest().fromBinary(bytes, options);
|
|
320
|
-
}
|
|
321
|
-
static fromJson(jsonValue, options) {
|
|
322
|
-
return new _AddTrackRequest().fromJson(jsonValue, options);
|
|
323
|
-
}
|
|
324
|
-
static fromJsonString(jsonString, options) {
|
|
325
|
-
return new _AddTrackRequest().fromJsonString(jsonString, options);
|
|
326
|
-
}
|
|
327
|
-
static equals(a, b) {
|
|
328
|
-
return import_protobuf.proto3.util.equals(_AddTrackRequest, a, b);
|
|
329
|
-
}
|
|
330
|
-
};
|
|
331
|
-
_AddTrackRequest.runtime = import_protobuf.proto3;
|
|
332
|
-
_AddTrackRequest.typeName = "livekit.AddTrackRequest";
|
|
333
|
-
_AddTrackRequest.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
334
|
-
{
|
|
335
|
-
no: 1,
|
|
336
|
-
name: "cid",
|
|
337
|
-
kind: "scalar",
|
|
338
|
-
T: 9
|
|
339
|
-
/* ScalarType.STRING */
|
|
340
|
-
},
|
|
341
|
-
{
|
|
342
|
-
no: 2,
|
|
343
|
-
name: "name",
|
|
344
|
-
kind: "scalar",
|
|
345
|
-
T: 9
|
|
346
|
-
/* ScalarType.STRING */
|
|
347
|
-
},
|
|
348
|
-
{ no: 3, name: "type", kind: "enum", T: import_protobuf.proto3.getEnumType(import_livekit_models_pb.TrackType) },
|
|
349
|
-
{
|
|
350
|
-
no: 4,
|
|
351
|
-
name: "width",
|
|
352
|
-
kind: "scalar",
|
|
353
|
-
T: 13
|
|
354
|
-
/* ScalarType.UINT32 */
|
|
355
|
-
},
|
|
356
|
-
{
|
|
357
|
-
no: 5,
|
|
358
|
-
name: "height",
|
|
359
|
-
kind: "scalar",
|
|
360
|
-
T: 13
|
|
361
|
-
/* ScalarType.UINT32 */
|
|
362
|
-
},
|
|
363
|
-
{
|
|
364
|
-
no: 6,
|
|
365
|
-
name: "muted",
|
|
366
|
-
kind: "scalar",
|
|
367
|
-
T: 8
|
|
368
|
-
/* ScalarType.BOOL */
|
|
369
|
-
},
|
|
370
|
-
{
|
|
371
|
-
no: 7,
|
|
372
|
-
name: "disable_dtx",
|
|
373
|
-
kind: "scalar",
|
|
374
|
-
T: 8
|
|
375
|
-
/* ScalarType.BOOL */
|
|
376
|
-
},
|
|
377
|
-
{ no: 8, name: "source", kind: "enum", T: import_protobuf.proto3.getEnumType(import_livekit_models_pb.TrackSource) },
|
|
378
|
-
{ no: 9, name: "layers", kind: "message", T: import_livekit_models_pb.VideoLayer, repeated: true },
|
|
379
|
-
{ no: 10, name: "simulcast_codecs", kind: "message", T: SimulcastCodec, repeated: true },
|
|
380
|
-
{
|
|
381
|
-
no: 11,
|
|
382
|
-
name: "sid",
|
|
383
|
-
kind: "scalar",
|
|
384
|
-
T: 9
|
|
385
|
-
/* ScalarType.STRING */
|
|
386
|
-
},
|
|
387
|
-
{
|
|
388
|
-
no: 12,
|
|
389
|
-
name: "stereo",
|
|
390
|
-
kind: "scalar",
|
|
391
|
-
T: 8
|
|
392
|
-
/* ScalarType.BOOL */
|
|
393
|
-
},
|
|
394
|
-
{
|
|
395
|
-
no: 13,
|
|
396
|
-
name: "disable_red",
|
|
397
|
-
kind: "scalar",
|
|
398
|
-
T: 8
|
|
399
|
-
/* ScalarType.BOOL */
|
|
400
|
-
},
|
|
401
|
-
{ no: 14, name: "encryption", kind: "enum", T: import_protobuf.proto3.getEnumType(import_livekit_models_pb.Encryption_Type) },
|
|
402
|
-
{
|
|
403
|
-
no: 15,
|
|
404
|
-
name: "stream",
|
|
405
|
-
kind: "scalar",
|
|
406
|
-
T: 9
|
|
407
|
-
/* ScalarType.STRING */
|
|
408
|
-
}
|
|
409
|
-
]);
|
|
410
|
-
let AddTrackRequest = _AddTrackRequest;
|
|
411
|
-
const _TrickleRequest = class _TrickleRequest extends import_protobuf.Message {
|
|
412
|
-
constructor(data) {
|
|
413
|
-
super();
|
|
414
|
-
/**
|
|
415
|
-
* @generated from field: string candidateInit = 1;
|
|
416
|
-
*/
|
|
417
|
-
this.candidateInit = "";
|
|
418
|
-
/**
|
|
419
|
-
* @generated from field: livekit.SignalTarget target = 2;
|
|
420
|
-
*/
|
|
421
|
-
this.target = 0 /* PUBLISHER */;
|
|
422
|
-
/**
|
|
423
|
-
* @generated from field: bool final = 3;
|
|
424
|
-
*/
|
|
425
|
-
this.final = false;
|
|
426
|
-
import_protobuf.proto3.util.initPartial(data, this);
|
|
427
|
-
}
|
|
428
|
-
static fromBinary(bytes, options) {
|
|
429
|
-
return new _TrickleRequest().fromBinary(bytes, options);
|
|
430
|
-
}
|
|
431
|
-
static fromJson(jsonValue, options) {
|
|
432
|
-
return new _TrickleRequest().fromJson(jsonValue, options);
|
|
433
|
-
}
|
|
434
|
-
static fromJsonString(jsonString, options) {
|
|
435
|
-
return new _TrickleRequest().fromJsonString(jsonString, options);
|
|
436
|
-
}
|
|
437
|
-
static equals(a, b) {
|
|
438
|
-
return import_protobuf.proto3.util.equals(_TrickleRequest, a, b);
|
|
439
|
-
}
|
|
440
|
-
};
|
|
441
|
-
_TrickleRequest.runtime = import_protobuf.proto3;
|
|
442
|
-
_TrickleRequest.typeName = "livekit.TrickleRequest";
|
|
443
|
-
_TrickleRequest.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
444
|
-
{
|
|
445
|
-
no: 1,
|
|
446
|
-
name: "candidateInit",
|
|
447
|
-
kind: "scalar",
|
|
448
|
-
T: 9
|
|
449
|
-
/* ScalarType.STRING */
|
|
450
|
-
},
|
|
451
|
-
{ no: 2, name: "target", kind: "enum", T: import_protobuf.proto3.getEnumType(SignalTarget) },
|
|
452
|
-
{
|
|
453
|
-
no: 3,
|
|
454
|
-
name: "final",
|
|
455
|
-
kind: "scalar",
|
|
456
|
-
T: 8
|
|
457
|
-
/* ScalarType.BOOL */
|
|
458
|
-
}
|
|
459
|
-
]);
|
|
460
|
-
let TrickleRequest = _TrickleRequest;
|
|
461
|
-
const _MuteTrackRequest = class _MuteTrackRequest extends import_protobuf.Message {
|
|
462
|
-
constructor(data) {
|
|
463
|
-
super();
|
|
464
|
-
/**
|
|
465
|
-
* @generated from field: string sid = 1;
|
|
466
|
-
*/
|
|
467
|
-
this.sid = "";
|
|
468
|
-
/**
|
|
469
|
-
* @generated from field: bool muted = 2;
|
|
470
|
-
*/
|
|
471
|
-
this.muted = false;
|
|
472
|
-
import_protobuf.proto3.util.initPartial(data, this);
|
|
473
|
-
}
|
|
474
|
-
static fromBinary(bytes, options) {
|
|
475
|
-
return new _MuteTrackRequest().fromBinary(bytes, options);
|
|
476
|
-
}
|
|
477
|
-
static fromJson(jsonValue, options) {
|
|
478
|
-
return new _MuteTrackRequest().fromJson(jsonValue, options);
|
|
479
|
-
}
|
|
480
|
-
static fromJsonString(jsonString, options) {
|
|
481
|
-
return new _MuteTrackRequest().fromJsonString(jsonString, options);
|
|
482
|
-
}
|
|
483
|
-
static equals(a, b) {
|
|
484
|
-
return import_protobuf.proto3.util.equals(_MuteTrackRequest, a, b);
|
|
485
|
-
}
|
|
486
|
-
};
|
|
487
|
-
_MuteTrackRequest.runtime = import_protobuf.proto3;
|
|
488
|
-
_MuteTrackRequest.typeName = "livekit.MuteTrackRequest";
|
|
489
|
-
_MuteTrackRequest.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
490
|
-
{
|
|
491
|
-
no: 1,
|
|
492
|
-
name: "sid",
|
|
493
|
-
kind: "scalar",
|
|
494
|
-
T: 9
|
|
495
|
-
/* ScalarType.STRING */
|
|
496
|
-
},
|
|
497
|
-
{
|
|
498
|
-
no: 2,
|
|
499
|
-
name: "muted",
|
|
500
|
-
kind: "scalar",
|
|
501
|
-
T: 8
|
|
502
|
-
/* ScalarType.BOOL */
|
|
503
|
-
}
|
|
504
|
-
]);
|
|
505
|
-
let MuteTrackRequest = _MuteTrackRequest;
|
|
506
|
-
const _JoinResponse = class _JoinResponse extends import_protobuf.Message {
|
|
507
|
-
constructor(data) {
|
|
508
|
-
super();
|
|
509
|
-
/**
|
|
510
|
-
* @generated from field: repeated livekit.ParticipantInfo other_participants = 3;
|
|
511
|
-
*/
|
|
512
|
-
this.otherParticipants = [];
|
|
513
|
-
/**
|
|
514
|
-
* deprecated. use server_info.version instead.
|
|
515
|
-
*
|
|
516
|
-
* @generated from field: string server_version = 4;
|
|
517
|
-
*/
|
|
518
|
-
this.serverVersion = "";
|
|
519
|
-
/**
|
|
520
|
-
* @generated from field: repeated livekit.ICEServer ice_servers = 5;
|
|
521
|
-
*/
|
|
522
|
-
this.iceServers = [];
|
|
523
|
-
/**
|
|
524
|
-
* use subscriber as the primary PeerConnection
|
|
525
|
-
*
|
|
526
|
-
* @generated from field: bool subscriber_primary = 6;
|
|
527
|
-
*/
|
|
528
|
-
this.subscriberPrimary = false;
|
|
529
|
-
/**
|
|
530
|
-
* when the current server isn't available, return alternate url to retry connection
|
|
531
|
-
* when this is set, the other fields will be largely empty
|
|
532
|
-
*
|
|
533
|
-
* @generated from field: string alternative_url = 7;
|
|
534
|
-
*/
|
|
535
|
-
this.alternativeUrl = "";
|
|
536
|
-
/**
|
|
537
|
-
* deprecated. use server_info.region instead.
|
|
538
|
-
*
|
|
539
|
-
* @generated from field: string server_region = 9;
|
|
540
|
-
*/
|
|
541
|
-
this.serverRegion = "";
|
|
542
|
-
/**
|
|
543
|
-
* @generated from field: int32 ping_timeout = 10;
|
|
544
|
-
*/
|
|
545
|
-
this.pingTimeout = 0;
|
|
546
|
-
/**
|
|
547
|
-
* @generated from field: int32 ping_interval = 11;
|
|
548
|
-
*/
|
|
549
|
-
this.pingInterval = 0;
|
|
550
|
-
/**
|
|
551
|
-
* Server-Injected-Frame byte trailer, used to identify unencrypted frames when e2ee is enabled
|
|
552
|
-
*
|
|
553
|
-
* @generated from field: bytes sif_trailer = 13;
|
|
554
|
-
*/
|
|
555
|
-
this.sifTrailer = new Uint8Array(0);
|
|
556
|
-
/**
|
|
557
|
-
* @generated from field: repeated livekit.Codec enabled_publish_codecs = 14;
|
|
558
|
-
*/
|
|
559
|
-
this.enabledPublishCodecs = [];
|
|
560
|
-
/**
|
|
561
|
-
* when set, client should attempt to establish publish peer connection when joining room to speed up publishing
|
|
562
|
-
*
|
|
563
|
-
* @generated from field: bool fast_publish = 15;
|
|
564
|
-
*/
|
|
565
|
-
this.fastPublish = false;
|
|
566
|
-
import_protobuf.proto3.util.initPartial(data, this);
|
|
567
|
-
}
|
|
568
|
-
static fromBinary(bytes, options) {
|
|
569
|
-
return new _JoinResponse().fromBinary(bytes, options);
|
|
570
|
-
}
|
|
571
|
-
static fromJson(jsonValue, options) {
|
|
572
|
-
return new _JoinResponse().fromJson(jsonValue, options);
|
|
573
|
-
}
|
|
574
|
-
static fromJsonString(jsonString, options) {
|
|
575
|
-
return new _JoinResponse().fromJsonString(jsonString, options);
|
|
576
|
-
}
|
|
577
|
-
static equals(a, b) {
|
|
578
|
-
return import_protobuf.proto3.util.equals(_JoinResponse, a, b);
|
|
579
|
-
}
|
|
580
|
-
};
|
|
581
|
-
_JoinResponse.runtime = import_protobuf.proto3;
|
|
582
|
-
_JoinResponse.typeName = "livekit.JoinResponse";
|
|
583
|
-
_JoinResponse.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
584
|
-
{ no: 1, name: "room", kind: "message", T: import_livekit_models_pb.Room },
|
|
585
|
-
{ no: 2, name: "participant", kind: "message", T: import_livekit_models_pb.ParticipantInfo },
|
|
586
|
-
{ no: 3, name: "other_participants", kind: "message", T: import_livekit_models_pb.ParticipantInfo, repeated: true },
|
|
587
|
-
{
|
|
588
|
-
no: 4,
|
|
589
|
-
name: "server_version",
|
|
590
|
-
kind: "scalar",
|
|
591
|
-
T: 9
|
|
592
|
-
/* ScalarType.STRING */
|
|
593
|
-
},
|
|
594
|
-
{ no: 5, name: "ice_servers", kind: "message", T: ICEServer, repeated: true },
|
|
595
|
-
{
|
|
596
|
-
no: 6,
|
|
597
|
-
name: "subscriber_primary",
|
|
598
|
-
kind: "scalar",
|
|
599
|
-
T: 8
|
|
600
|
-
/* ScalarType.BOOL */
|
|
601
|
-
},
|
|
602
|
-
{
|
|
603
|
-
no: 7,
|
|
604
|
-
name: "alternative_url",
|
|
605
|
-
kind: "scalar",
|
|
606
|
-
T: 9
|
|
607
|
-
/* ScalarType.STRING */
|
|
608
|
-
},
|
|
609
|
-
{ no: 8, name: "client_configuration", kind: "message", T: import_livekit_models_pb.ClientConfiguration },
|
|
610
|
-
{
|
|
611
|
-
no: 9,
|
|
612
|
-
name: "server_region",
|
|
613
|
-
kind: "scalar",
|
|
614
|
-
T: 9
|
|
615
|
-
/* ScalarType.STRING */
|
|
616
|
-
},
|
|
617
|
-
{
|
|
618
|
-
no: 10,
|
|
619
|
-
name: "ping_timeout",
|
|
620
|
-
kind: "scalar",
|
|
621
|
-
T: 5
|
|
622
|
-
/* ScalarType.INT32 */
|
|
623
|
-
},
|
|
624
|
-
{
|
|
625
|
-
no: 11,
|
|
626
|
-
name: "ping_interval",
|
|
627
|
-
kind: "scalar",
|
|
628
|
-
T: 5
|
|
629
|
-
/* ScalarType.INT32 */
|
|
630
|
-
},
|
|
631
|
-
{ no: 12, name: "server_info", kind: "message", T: import_livekit_models_pb.ServerInfo },
|
|
632
|
-
{
|
|
633
|
-
no: 13,
|
|
634
|
-
name: "sif_trailer",
|
|
635
|
-
kind: "scalar",
|
|
636
|
-
T: 12
|
|
637
|
-
/* ScalarType.BYTES */
|
|
638
|
-
},
|
|
639
|
-
{ no: 14, name: "enabled_publish_codecs", kind: "message", T: import_livekit_models_pb.Codec, repeated: true },
|
|
640
|
-
{
|
|
641
|
-
no: 15,
|
|
642
|
-
name: "fast_publish",
|
|
643
|
-
kind: "scalar",
|
|
644
|
-
T: 8
|
|
645
|
-
/* ScalarType.BOOL */
|
|
646
|
-
}
|
|
647
|
-
]);
|
|
648
|
-
let JoinResponse = _JoinResponse;
|
|
649
|
-
const _ReconnectResponse = class _ReconnectResponse extends import_protobuf.Message {
|
|
650
|
-
constructor(data) {
|
|
651
|
-
super();
|
|
652
|
-
/**
|
|
653
|
-
* @generated from field: repeated livekit.ICEServer ice_servers = 1;
|
|
654
|
-
*/
|
|
655
|
-
this.iceServers = [];
|
|
656
|
-
import_protobuf.proto3.util.initPartial(data, this);
|
|
657
|
-
}
|
|
658
|
-
static fromBinary(bytes, options) {
|
|
659
|
-
return new _ReconnectResponse().fromBinary(bytes, options);
|
|
660
|
-
}
|
|
661
|
-
static fromJson(jsonValue, options) {
|
|
662
|
-
return new _ReconnectResponse().fromJson(jsonValue, options);
|
|
663
|
-
}
|
|
664
|
-
static fromJsonString(jsonString, options) {
|
|
665
|
-
return new _ReconnectResponse().fromJsonString(jsonString, options);
|
|
666
|
-
}
|
|
667
|
-
static equals(a, b) {
|
|
668
|
-
return import_protobuf.proto3.util.equals(_ReconnectResponse, a, b);
|
|
669
|
-
}
|
|
670
|
-
};
|
|
671
|
-
_ReconnectResponse.runtime = import_protobuf.proto3;
|
|
672
|
-
_ReconnectResponse.typeName = "livekit.ReconnectResponse";
|
|
673
|
-
_ReconnectResponse.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
674
|
-
{ no: 1, name: "ice_servers", kind: "message", T: ICEServer, repeated: true },
|
|
675
|
-
{ no: 2, name: "client_configuration", kind: "message", T: import_livekit_models_pb.ClientConfiguration }
|
|
676
|
-
]);
|
|
677
|
-
let ReconnectResponse = _ReconnectResponse;
|
|
678
|
-
const _TrackPublishedResponse = class _TrackPublishedResponse extends import_protobuf.Message {
|
|
679
|
-
constructor(data) {
|
|
680
|
-
super();
|
|
681
|
-
/**
|
|
682
|
-
* @generated from field: string cid = 1;
|
|
683
|
-
*/
|
|
684
|
-
this.cid = "";
|
|
685
|
-
import_protobuf.proto3.util.initPartial(data, this);
|
|
686
|
-
}
|
|
687
|
-
static fromBinary(bytes, options) {
|
|
688
|
-
return new _TrackPublishedResponse().fromBinary(bytes, options);
|
|
689
|
-
}
|
|
690
|
-
static fromJson(jsonValue, options) {
|
|
691
|
-
return new _TrackPublishedResponse().fromJson(jsonValue, options);
|
|
692
|
-
}
|
|
693
|
-
static fromJsonString(jsonString, options) {
|
|
694
|
-
return new _TrackPublishedResponse().fromJsonString(jsonString, options);
|
|
695
|
-
}
|
|
696
|
-
static equals(a, b) {
|
|
697
|
-
return import_protobuf.proto3.util.equals(_TrackPublishedResponse, a, b);
|
|
698
|
-
}
|
|
699
|
-
};
|
|
700
|
-
_TrackPublishedResponse.runtime = import_protobuf.proto3;
|
|
701
|
-
_TrackPublishedResponse.typeName = "livekit.TrackPublishedResponse";
|
|
702
|
-
_TrackPublishedResponse.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
703
|
-
{
|
|
704
|
-
no: 1,
|
|
705
|
-
name: "cid",
|
|
706
|
-
kind: "scalar",
|
|
707
|
-
T: 9
|
|
708
|
-
/* ScalarType.STRING */
|
|
709
|
-
},
|
|
710
|
-
{ no: 2, name: "track", kind: "message", T: import_livekit_models_pb.TrackInfo }
|
|
711
|
-
]);
|
|
712
|
-
let TrackPublishedResponse = _TrackPublishedResponse;
|
|
713
|
-
const _TrackUnpublishedResponse = class _TrackUnpublishedResponse extends import_protobuf.Message {
|
|
714
|
-
constructor(data) {
|
|
715
|
-
super();
|
|
716
|
-
/**
|
|
717
|
-
* @generated from field: string track_sid = 1;
|
|
718
|
-
*/
|
|
719
|
-
this.trackSid = "";
|
|
720
|
-
import_protobuf.proto3.util.initPartial(data, this);
|
|
721
|
-
}
|
|
722
|
-
static fromBinary(bytes, options) {
|
|
723
|
-
return new _TrackUnpublishedResponse().fromBinary(bytes, options);
|
|
724
|
-
}
|
|
725
|
-
static fromJson(jsonValue, options) {
|
|
726
|
-
return new _TrackUnpublishedResponse().fromJson(jsonValue, options);
|
|
727
|
-
}
|
|
728
|
-
static fromJsonString(jsonString, options) {
|
|
729
|
-
return new _TrackUnpublishedResponse().fromJsonString(jsonString, options);
|
|
730
|
-
}
|
|
731
|
-
static equals(a, b) {
|
|
732
|
-
return import_protobuf.proto3.util.equals(_TrackUnpublishedResponse, a, b);
|
|
733
|
-
}
|
|
734
|
-
};
|
|
735
|
-
_TrackUnpublishedResponse.runtime = import_protobuf.proto3;
|
|
736
|
-
_TrackUnpublishedResponse.typeName = "livekit.TrackUnpublishedResponse";
|
|
737
|
-
_TrackUnpublishedResponse.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
738
|
-
{
|
|
739
|
-
no: 1,
|
|
740
|
-
name: "track_sid",
|
|
741
|
-
kind: "scalar",
|
|
742
|
-
T: 9
|
|
743
|
-
/* ScalarType.STRING */
|
|
744
|
-
}
|
|
745
|
-
]);
|
|
746
|
-
let TrackUnpublishedResponse = _TrackUnpublishedResponse;
|
|
747
|
-
const _SessionDescription = class _SessionDescription extends import_protobuf.Message {
|
|
748
|
-
constructor(data) {
|
|
749
|
-
super();
|
|
750
|
-
/**
|
|
751
|
-
* "answer" | "offer" | "pranswer" | "rollback"
|
|
752
|
-
*
|
|
753
|
-
* @generated from field: string type = 1;
|
|
754
|
-
*/
|
|
755
|
-
this.type = "";
|
|
756
|
-
/**
|
|
757
|
-
* @generated from field: string sdp = 2;
|
|
758
|
-
*/
|
|
759
|
-
this.sdp = "";
|
|
760
|
-
import_protobuf.proto3.util.initPartial(data, this);
|
|
761
|
-
}
|
|
762
|
-
static fromBinary(bytes, options) {
|
|
763
|
-
return new _SessionDescription().fromBinary(bytes, options);
|
|
764
|
-
}
|
|
765
|
-
static fromJson(jsonValue, options) {
|
|
766
|
-
return new _SessionDescription().fromJson(jsonValue, options);
|
|
767
|
-
}
|
|
768
|
-
static fromJsonString(jsonString, options) {
|
|
769
|
-
return new _SessionDescription().fromJsonString(jsonString, options);
|
|
770
|
-
}
|
|
771
|
-
static equals(a, b) {
|
|
772
|
-
return import_protobuf.proto3.util.equals(_SessionDescription, a, b);
|
|
773
|
-
}
|
|
774
|
-
};
|
|
775
|
-
_SessionDescription.runtime = import_protobuf.proto3;
|
|
776
|
-
_SessionDescription.typeName = "livekit.SessionDescription";
|
|
777
|
-
_SessionDescription.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
778
|
-
{
|
|
779
|
-
no: 1,
|
|
780
|
-
name: "type",
|
|
781
|
-
kind: "scalar",
|
|
782
|
-
T: 9
|
|
783
|
-
/* ScalarType.STRING */
|
|
784
|
-
},
|
|
785
|
-
{
|
|
786
|
-
no: 2,
|
|
787
|
-
name: "sdp",
|
|
788
|
-
kind: "scalar",
|
|
789
|
-
T: 9
|
|
790
|
-
/* ScalarType.STRING */
|
|
791
|
-
}
|
|
792
|
-
]);
|
|
793
|
-
let SessionDescription = _SessionDescription;
|
|
794
|
-
const _ParticipantUpdate = class _ParticipantUpdate extends import_protobuf.Message {
|
|
795
|
-
constructor(data) {
|
|
796
|
-
super();
|
|
797
|
-
/**
|
|
798
|
-
* @generated from field: repeated livekit.ParticipantInfo participants = 1;
|
|
799
|
-
*/
|
|
800
|
-
this.participants = [];
|
|
801
|
-
import_protobuf.proto3.util.initPartial(data, this);
|
|
802
|
-
}
|
|
803
|
-
static fromBinary(bytes, options) {
|
|
804
|
-
return new _ParticipantUpdate().fromBinary(bytes, options);
|
|
805
|
-
}
|
|
806
|
-
static fromJson(jsonValue, options) {
|
|
807
|
-
return new _ParticipantUpdate().fromJson(jsonValue, options);
|
|
808
|
-
}
|
|
809
|
-
static fromJsonString(jsonString, options) {
|
|
810
|
-
return new _ParticipantUpdate().fromJsonString(jsonString, options);
|
|
811
|
-
}
|
|
812
|
-
static equals(a, b) {
|
|
813
|
-
return import_protobuf.proto3.util.equals(_ParticipantUpdate, a, b);
|
|
814
|
-
}
|
|
815
|
-
};
|
|
816
|
-
_ParticipantUpdate.runtime = import_protobuf.proto3;
|
|
817
|
-
_ParticipantUpdate.typeName = "livekit.ParticipantUpdate";
|
|
818
|
-
_ParticipantUpdate.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
819
|
-
{ no: 1, name: "participants", kind: "message", T: import_livekit_models_pb.ParticipantInfo, repeated: true }
|
|
820
|
-
]);
|
|
821
|
-
let ParticipantUpdate = _ParticipantUpdate;
|
|
822
|
-
const _UpdateSubscription = class _UpdateSubscription extends import_protobuf.Message {
|
|
823
|
-
constructor(data) {
|
|
824
|
-
super();
|
|
825
|
-
/**
|
|
826
|
-
* @generated from field: repeated string track_sids = 1;
|
|
827
|
-
*/
|
|
828
|
-
this.trackSids = [];
|
|
829
|
-
/**
|
|
830
|
-
* @generated from field: bool subscribe = 2;
|
|
831
|
-
*/
|
|
832
|
-
this.subscribe = false;
|
|
833
|
-
/**
|
|
834
|
-
* @generated from field: repeated livekit.ParticipantTracks participant_tracks = 3;
|
|
835
|
-
*/
|
|
836
|
-
this.participantTracks = [];
|
|
837
|
-
import_protobuf.proto3.util.initPartial(data, this);
|
|
838
|
-
}
|
|
839
|
-
static fromBinary(bytes, options) {
|
|
840
|
-
return new _UpdateSubscription().fromBinary(bytes, options);
|
|
841
|
-
}
|
|
842
|
-
static fromJson(jsonValue, options) {
|
|
843
|
-
return new _UpdateSubscription().fromJson(jsonValue, options);
|
|
844
|
-
}
|
|
845
|
-
static fromJsonString(jsonString, options) {
|
|
846
|
-
return new _UpdateSubscription().fromJsonString(jsonString, options);
|
|
847
|
-
}
|
|
848
|
-
static equals(a, b) {
|
|
849
|
-
return import_protobuf.proto3.util.equals(_UpdateSubscription, a, b);
|
|
850
|
-
}
|
|
851
|
-
};
|
|
852
|
-
_UpdateSubscription.runtime = import_protobuf.proto3;
|
|
853
|
-
_UpdateSubscription.typeName = "livekit.UpdateSubscription";
|
|
854
|
-
_UpdateSubscription.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
855
|
-
{ no: 1, name: "track_sids", kind: "scalar", T: 9, repeated: true },
|
|
856
|
-
{
|
|
857
|
-
no: 2,
|
|
858
|
-
name: "subscribe",
|
|
859
|
-
kind: "scalar",
|
|
860
|
-
T: 8
|
|
861
|
-
/* ScalarType.BOOL */
|
|
862
|
-
},
|
|
863
|
-
{ no: 3, name: "participant_tracks", kind: "message", T: import_livekit_models_pb.ParticipantTracks, repeated: true }
|
|
864
|
-
]);
|
|
865
|
-
let UpdateSubscription = _UpdateSubscription;
|
|
866
|
-
const _UpdateTrackSettings = class _UpdateTrackSettings extends import_protobuf.Message {
|
|
867
|
-
constructor(data) {
|
|
868
|
-
super();
|
|
869
|
-
/**
|
|
870
|
-
* @generated from field: repeated string track_sids = 1;
|
|
871
|
-
*/
|
|
872
|
-
this.trackSids = [];
|
|
873
|
-
/**
|
|
874
|
-
* when true, the track is placed in a paused state, with no new data returned
|
|
875
|
-
*
|
|
876
|
-
* @generated from field: bool disabled = 3;
|
|
877
|
-
*/
|
|
878
|
-
this.disabled = false;
|
|
879
|
-
/**
|
|
880
|
-
* deprecated in favor of width & height
|
|
881
|
-
*
|
|
882
|
-
* @generated from field: livekit.VideoQuality quality = 4;
|
|
883
|
-
*/
|
|
884
|
-
this.quality = import_livekit_models_pb.VideoQuality.LOW;
|
|
885
|
-
/**
|
|
886
|
-
* for video, width to receive
|
|
887
|
-
*
|
|
888
|
-
* @generated from field: uint32 width = 5;
|
|
889
|
-
*/
|
|
890
|
-
this.width = 0;
|
|
891
|
-
/**
|
|
892
|
-
* for video, height to receive
|
|
893
|
-
*
|
|
894
|
-
* @generated from field: uint32 height = 6;
|
|
895
|
-
*/
|
|
896
|
-
this.height = 0;
|
|
897
|
-
/**
|
|
898
|
-
* @generated from field: uint32 fps = 7;
|
|
899
|
-
*/
|
|
900
|
-
this.fps = 0;
|
|
901
|
-
/**
|
|
902
|
-
* subscription priority. 1 being the highest (0 is unset)
|
|
903
|
-
* when unset, server sill assign priority based on the order of subscription
|
|
904
|
-
* server will use priority in the following ways:
|
|
905
|
-
* 1. when subscribed tracks exceed per-participant subscription limit, server will
|
|
906
|
-
* pause the lowest priority tracks
|
|
907
|
-
* 2. when the network is congested, server will assign available bandwidth to
|
|
908
|
-
* higher priority tracks first. lowest priority tracks can be paused
|
|
909
|
-
*
|
|
910
|
-
* @generated from field: uint32 priority = 8;
|
|
911
|
-
*/
|
|
912
|
-
this.priority = 0;
|
|
913
|
-
import_protobuf.proto3.util.initPartial(data, this);
|
|
914
|
-
}
|
|
915
|
-
static fromBinary(bytes, options) {
|
|
916
|
-
return new _UpdateTrackSettings().fromBinary(bytes, options);
|
|
917
|
-
}
|
|
918
|
-
static fromJson(jsonValue, options) {
|
|
919
|
-
return new _UpdateTrackSettings().fromJson(jsonValue, options);
|
|
920
|
-
}
|
|
921
|
-
static fromJsonString(jsonString, options) {
|
|
922
|
-
return new _UpdateTrackSettings().fromJsonString(jsonString, options);
|
|
923
|
-
}
|
|
924
|
-
static equals(a, b) {
|
|
925
|
-
return import_protobuf.proto3.util.equals(_UpdateTrackSettings, a, b);
|
|
926
|
-
}
|
|
927
|
-
};
|
|
928
|
-
_UpdateTrackSettings.runtime = import_protobuf.proto3;
|
|
929
|
-
_UpdateTrackSettings.typeName = "livekit.UpdateTrackSettings";
|
|
930
|
-
_UpdateTrackSettings.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
931
|
-
{ no: 1, name: "track_sids", kind: "scalar", T: 9, repeated: true },
|
|
932
|
-
{
|
|
933
|
-
no: 3,
|
|
934
|
-
name: "disabled",
|
|
935
|
-
kind: "scalar",
|
|
936
|
-
T: 8
|
|
937
|
-
/* ScalarType.BOOL */
|
|
938
|
-
},
|
|
939
|
-
{ no: 4, name: "quality", kind: "enum", T: import_protobuf.proto3.getEnumType(import_livekit_models_pb.VideoQuality) },
|
|
940
|
-
{
|
|
941
|
-
no: 5,
|
|
942
|
-
name: "width",
|
|
943
|
-
kind: "scalar",
|
|
944
|
-
T: 13
|
|
945
|
-
/* ScalarType.UINT32 */
|
|
946
|
-
},
|
|
947
|
-
{
|
|
948
|
-
no: 6,
|
|
949
|
-
name: "height",
|
|
950
|
-
kind: "scalar",
|
|
951
|
-
T: 13
|
|
952
|
-
/* ScalarType.UINT32 */
|
|
953
|
-
},
|
|
954
|
-
{
|
|
955
|
-
no: 7,
|
|
956
|
-
name: "fps",
|
|
957
|
-
kind: "scalar",
|
|
958
|
-
T: 13
|
|
959
|
-
/* ScalarType.UINT32 */
|
|
960
|
-
},
|
|
961
|
-
{
|
|
962
|
-
no: 8,
|
|
963
|
-
name: "priority",
|
|
964
|
-
kind: "scalar",
|
|
965
|
-
T: 13
|
|
966
|
-
/* ScalarType.UINT32 */
|
|
967
|
-
}
|
|
968
|
-
]);
|
|
969
|
-
let UpdateTrackSettings = _UpdateTrackSettings;
|
|
970
|
-
const _UpdateLocalAudioTrack = class _UpdateLocalAudioTrack extends import_protobuf.Message {
|
|
971
|
-
constructor(data) {
|
|
972
|
-
super();
|
|
973
|
-
/**
|
|
974
|
-
* @generated from field: string track_sid = 1;
|
|
975
|
-
*/
|
|
976
|
-
this.trackSid = "";
|
|
977
|
-
/**
|
|
978
|
-
* @generated from field: repeated livekit.AudioTrackFeature features = 2;
|
|
979
|
-
*/
|
|
980
|
-
this.features = [];
|
|
981
|
-
import_protobuf.proto3.util.initPartial(data, this);
|
|
982
|
-
}
|
|
983
|
-
static fromBinary(bytes, options) {
|
|
984
|
-
return new _UpdateLocalAudioTrack().fromBinary(bytes, options);
|
|
985
|
-
}
|
|
986
|
-
static fromJson(jsonValue, options) {
|
|
987
|
-
return new _UpdateLocalAudioTrack().fromJson(jsonValue, options);
|
|
988
|
-
}
|
|
989
|
-
static fromJsonString(jsonString, options) {
|
|
990
|
-
return new _UpdateLocalAudioTrack().fromJsonString(jsonString, options);
|
|
991
|
-
}
|
|
992
|
-
static equals(a, b) {
|
|
993
|
-
return import_protobuf.proto3.util.equals(_UpdateLocalAudioTrack, a, b);
|
|
994
|
-
}
|
|
995
|
-
};
|
|
996
|
-
_UpdateLocalAudioTrack.runtime = import_protobuf.proto3;
|
|
997
|
-
_UpdateLocalAudioTrack.typeName = "livekit.UpdateLocalAudioTrack";
|
|
998
|
-
_UpdateLocalAudioTrack.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
999
|
-
{
|
|
1000
|
-
no: 1,
|
|
1001
|
-
name: "track_sid",
|
|
1002
|
-
kind: "scalar",
|
|
1003
|
-
T: 9
|
|
1004
|
-
/* ScalarType.STRING */
|
|
1005
|
-
},
|
|
1006
|
-
{ no: 2, name: "features", kind: "enum", T: import_protobuf.proto3.getEnumType(import_livekit_models_pb.AudioTrackFeature), repeated: true }
|
|
1007
|
-
]);
|
|
1008
|
-
let UpdateLocalAudioTrack = _UpdateLocalAudioTrack;
|
|
1009
|
-
const _UpdateLocalVideoTrack = class _UpdateLocalVideoTrack extends import_protobuf.Message {
|
|
1010
|
-
constructor(data) {
|
|
1011
|
-
super();
|
|
1012
|
-
/**
|
|
1013
|
-
* @generated from field: string track_sid = 1;
|
|
1014
|
-
*/
|
|
1015
|
-
this.trackSid = "";
|
|
1016
|
-
/**
|
|
1017
|
-
* @generated from field: uint32 width = 2;
|
|
1018
|
-
*/
|
|
1019
|
-
this.width = 0;
|
|
1020
|
-
/**
|
|
1021
|
-
* @generated from field: uint32 height = 3;
|
|
1022
|
-
*/
|
|
1023
|
-
this.height = 0;
|
|
1024
|
-
import_protobuf.proto3.util.initPartial(data, this);
|
|
1025
|
-
}
|
|
1026
|
-
static fromBinary(bytes, options) {
|
|
1027
|
-
return new _UpdateLocalVideoTrack().fromBinary(bytes, options);
|
|
1028
|
-
}
|
|
1029
|
-
static fromJson(jsonValue, options) {
|
|
1030
|
-
return new _UpdateLocalVideoTrack().fromJson(jsonValue, options);
|
|
1031
|
-
}
|
|
1032
|
-
static fromJsonString(jsonString, options) {
|
|
1033
|
-
return new _UpdateLocalVideoTrack().fromJsonString(jsonString, options);
|
|
1034
|
-
}
|
|
1035
|
-
static equals(a, b) {
|
|
1036
|
-
return import_protobuf.proto3.util.equals(_UpdateLocalVideoTrack, a, b);
|
|
1037
|
-
}
|
|
1038
|
-
};
|
|
1039
|
-
_UpdateLocalVideoTrack.runtime = import_protobuf.proto3;
|
|
1040
|
-
_UpdateLocalVideoTrack.typeName = "livekit.UpdateLocalVideoTrack";
|
|
1041
|
-
_UpdateLocalVideoTrack.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
1042
|
-
{
|
|
1043
|
-
no: 1,
|
|
1044
|
-
name: "track_sid",
|
|
1045
|
-
kind: "scalar",
|
|
1046
|
-
T: 9
|
|
1047
|
-
/* ScalarType.STRING */
|
|
1048
|
-
},
|
|
1049
|
-
{
|
|
1050
|
-
no: 2,
|
|
1051
|
-
name: "width",
|
|
1052
|
-
kind: "scalar",
|
|
1053
|
-
T: 13
|
|
1054
|
-
/* ScalarType.UINT32 */
|
|
1055
|
-
},
|
|
1056
|
-
{
|
|
1057
|
-
no: 3,
|
|
1058
|
-
name: "height",
|
|
1059
|
-
kind: "scalar",
|
|
1060
|
-
T: 13
|
|
1061
|
-
/* ScalarType.UINT32 */
|
|
1062
|
-
}
|
|
1063
|
-
]);
|
|
1064
|
-
let UpdateLocalVideoTrack = _UpdateLocalVideoTrack;
|
|
1065
|
-
const _LeaveRequest = class _LeaveRequest extends import_protobuf.Message {
|
|
1066
|
-
constructor(data) {
|
|
1067
|
-
super();
|
|
1068
|
-
/**
|
|
1069
|
-
* sent when server initiates the disconnect due to server-restart
|
|
1070
|
-
* indicates clients should attempt full-reconnect sequence
|
|
1071
|
-
* NOTE: `can_reconnect` obsoleted by `action` starting in protocol version 13
|
|
1072
|
-
*
|
|
1073
|
-
* @generated from field: bool can_reconnect = 1;
|
|
1074
|
-
*/
|
|
1075
|
-
this.canReconnect = false;
|
|
1076
|
-
/**
|
|
1077
|
-
* @generated from field: livekit.DisconnectReason reason = 2;
|
|
1078
|
-
*/
|
|
1079
|
-
this.reason = import_livekit_models_pb.DisconnectReason.UNKNOWN_REASON;
|
|
1080
|
-
/**
|
|
1081
|
-
* @generated from field: livekit.LeaveRequest.Action action = 3;
|
|
1082
|
-
*/
|
|
1083
|
-
this.action = 0 /* DISCONNECT */;
|
|
1084
|
-
import_protobuf.proto3.util.initPartial(data, this);
|
|
1085
|
-
}
|
|
1086
|
-
static fromBinary(bytes, options) {
|
|
1087
|
-
return new _LeaveRequest().fromBinary(bytes, options);
|
|
1088
|
-
}
|
|
1089
|
-
static fromJson(jsonValue, options) {
|
|
1090
|
-
return new _LeaveRequest().fromJson(jsonValue, options);
|
|
1091
|
-
}
|
|
1092
|
-
static fromJsonString(jsonString, options) {
|
|
1093
|
-
return new _LeaveRequest().fromJsonString(jsonString, options);
|
|
1094
|
-
}
|
|
1095
|
-
static equals(a, b) {
|
|
1096
|
-
return import_protobuf.proto3.util.equals(_LeaveRequest, a, b);
|
|
1097
|
-
}
|
|
1098
|
-
};
|
|
1099
|
-
_LeaveRequest.runtime = import_protobuf.proto3;
|
|
1100
|
-
_LeaveRequest.typeName = "livekit.LeaveRequest";
|
|
1101
|
-
_LeaveRequest.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
1102
|
-
{
|
|
1103
|
-
no: 1,
|
|
1104
|
-
name: "can_reconnect",
|
|
1105
|
-
kind: "scalar",
|
|
1106
|
-
T: 8
|
|
1107
|
-
/* ScalarType.BOOL */
|
|
1108
|
-
},
|
|
1109
|
-
{ no: 2, name: "reason", kind: "enum", T: import_protobuf.proto3.getEnumType(import_livekit_models_pb.DisconnectReason) },
|
|
1110
|
-
{ no: 3, name: "action", kind: "enum", T: import_protobuf.proto3.getEnumType(LeaveRequest_Action) },
|
|
1111
|
-
{ no: 4, name: "regions", kind: "message", T: RegionSettings }
|
|
1112
|
-
]);
|
|
1113
|
-
let LeaveRequest = _LeaveRequest;
|
|
1114
|
-
var LeaveRequest_Action = /* @__PURE__ */ ((LeaveRequest_Action2) => {
|
|
1115
|
-
LeaveRequest_Action2[LeaveRequest_Action2["DISCONNECT"] = 0] = "DISCONNECT";
|
|
1116
|
-
LeaveRequest_Action2[LeaveRequest_Action2["RESUME"] = 1] = "RESUME";
|
|
1117
|
-
LeaveRequest_Action2[LeaveRequest_Action2["RECONNECT"] = 2] = "RECONNECT";
|
|
1118
|
-
return LeaveRequest_Action2;
|
|
1119
|
-
})(LeaveRequest_Action || {});
|
|
1120
|
-
import_protobuf.proto3.util.setEnumType(LeaveRequest_Action, "livekit.LeaveRequest.Action", [
|
|
1121
|
-
{ no: 0, name: "DISCONNECT" },
|
|
1122
|
-
{ no: 1, name: "RESUME" },
|
|
1123
|
-
{ no: 2, name: "RECONNECT" }
|
|
1124
|
-
]);
|
|
1125
|
-
const _UpdateVideoLayers = class _UpdateVideoLayers extends import_protobuf.Message {
|
|
1126
|
-
constructor(data) {
|
|
1127
|
-
super();
|
|
1128
|
-
/**
|
|
1129
|
-
* @generated from field: string track_sid = 1;
|
|
1130
|
-
*/
|
|
1131
|
-
this.trackSid = "";
|
|
1132
|
-
/**
|
|
1133
|
-
* @generated from field: repeated livekit.VideoLayer layers = 2;
|
|
1134
|
-
*/
|
|
1135
|
-
this.layers = [];
|
|
1136
|
-
import_protobuf.proto3.util.initPartial(data, this);
|
|
1137
|
-
}
|
|
1138
|
-
static fromBinary(bytes, options) {
|
|
1139
|
-
return new _UpdateVideoLayers().fromBinary(bytes, options);
|
|
1140
|
-
}
|
|
1141
|
-
static fromJson(jsonValue, options) {
|
|
1142
|
-
return new _UpdateVideoLayers().fromJson(jsonValue, options);
|
|
1143
|
-
}
|
|
1144
|
-
static fromJsonString(jsonString, options) {
|
|
1145
|
-
return new _UpdateVideoLayers().fromJsonString(jsonString, options);
|
|
1146
|
-
}
|
|
1147
|
-
static equals(a, b) {
|
|
1148
|
-
return import_protobuf.proto3.util.equals(_UpdateVideoLayers, a, b);
|
|
1149
|
-
}
|
|
1150
|
-
};
|
|
1151
|
-
_UpdateVideoLayers.runtime = import_protobuf.proto3;
|
|
1152
|
-
_UpdateVideoLayers.typeName = "livekit.UpdateVideoLayers";
|
|
1153
|
-
_UpdateVideoLayers.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
1154
|
-
{
|
|
1155
|
-
no: 1,
|
|
1156
|
-
name: "track_sid",
|
|
1157
|
-
kind: "scalar",
|
|
1158
|
-
T: 9
|
|
1159
|
-
/* ScalarType.STRING */
|
|
1160
|
-
},
|
|
1161
|
-
{ no: 2, name: "layers", kind: "message", T: import_livekit_models_pb.VideoLayer, repeated: true }
|
|
1162
|
-
]);
|
|
1163
|
-
let UpdateVideoLayers = _UpdateVideoLayers;
|
|
1164
|
-
const _UpdateParticipantMetadata = class _UpdateParticipantMetadata extends import_protobuf.Message {
|
|
1165
|
-
constructor(data) {
|
|
1166
|
-
super();
|
|
1167
|
-
/**
|
|
1168
|
-
* @generated from field: string metadata = 1;
|
|
1169
|
-
*/
|
|
1170
|
-
this.metadata = "";
|
|
1171
|
-
/**
|
|
1172
|
-
* @generated from field: string name = 2;
|
|
1173
|
-
*/
|
|
1174
|
-
this.name = "";
|
|
1175
|
-
/**
|
|
1176
|
-
* attributes to update. it only updates attributes that have been set
|
|
1177
|
-
* to delete attributes, set the value to an empty string
|
|
1178
|
-
*
|
|
1179
|
-
* @generated from field: map<string, string> attributes = 3;
|
|
1180
|
-
*/
|
|
1181
|
-
this.attributes = {};
|
|
1182
|
-
/**
|
|
1183
|
-
* @generated from field: uint32 request_id = 4;
|
|
1184
|
-
*/
|
|
1185
|
-
this.requestId = 0;
|
|
1186
|
-
import_protobuf.proto3.util.initPartial(data, this);
|
|
1187
|
-
}
|
|
1188
|
-
static fromBinary(bytes, options) {
|
|
1189
|
-
return new _UpdateParticipantMetadata().fromBinary(bytes, options);
|
|
1190
|
-
}
|
|
1191
|
-
static fromJson(jsonValue, options) {
|
|
1192
|
-
return new _UpdateParticipantMetadata().fromJson(jsonValue, options);
|
|
1193
|
-
}
|
|
1194
|
-
static fromJsonString(jsonString, options) {
|
|
1195
|
-
return new _UpdateParticipantMetadata().fromJsonString(jsonString, options);
|
|
1196
|
-
}
|
|
1197
|
-
static equals(a, b) {
|
|
1198
|
-
return import_protobuf.proto3.util.equals(_UpdateParticipantMetadata, a, b);
|
|
1199
|
-
}
|
|
1200
|
-
};
|
|
1201
|
-
_UpdateParticipantMetadata.runtime = import_protobuf.proto3;
|
|
1202
|
-
_UpdateParticipantMetadata.typeName = "livekit.UpdateParticipantMetadata";
|
|
1203
|
-
_UpdateParticipantMetadata.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
1204
|
-
{
|
|
1205
|
-
no: 1,
|
|
1206
|
-
name: "metadata",
|
|
1207
|
-
kind: "scalar",
|
|
1208
|
-
T: 9
|
|
1209
|
-
/* ScalarType.STRING */
|
|
1210
|
-
},
|
|
1211
|
-
{
|
|
1212
|
-
no: 2,
|
|
1213
|
-
name: "name",
|
|
1214
|
-
kind: "scalar",
|
|
1215
|
-
T: 9
|
|
1216
|
-
/* ScalarType.STRING */
|
|
1217
|
-
},
|
|
1218
|
-
{ no: 3, name: "attributes", kind: "map", K: 9, V: {
|
|
1219
|
-
kind: "scalar",
|
|
1220
|
-
T: 9
|
|
1221
|
-
/* ScalarType.STRING */
|
|
1222
|
-
} },
|
|
1223
|
-
{
|
|
1224
|
-
no: 4,
|
|
1225
|
-
name: "request_id",
|
|
1226
|
-
kind: "scalar",
|
|
1227
|
-
T: 13
|
|
1228
|
-
/* ScalarType.UINT32 */
|
|
1229
|
-
}
|
|
1230
|
-
]);
|
|
1231
|
-
let UpdateParticipantMetadata = _UpdateParticipantMetadata;
|
|
1232
|
-
const _ICEServer = class _ICEServer extends import_protobuf.Message {
|
|
1233
|
-
constructor(data) {
|
|
1234
|
-
super();
|
|
1235
|
-
/**
|
|
1236
|
-
* @generated from field: repeated string urls = 1;
|
|
1237
|
-
*/
|
|
1238
|
-
this.urls = [];
|
|
1239
|
-
/**
|
|
1240
|
-
* @generated from field: string username = 2;
|
|
1241
|
-
*/
|
|
1242
|
-
this.username = "";
|
|
1243
|
-
/**
|
|
1244
|
-
* @generated from field: string credential = 3;
|
|
1245
|
-
*/
|
|
1246
|
-
this.credential = "";
|
|
1247
|
-
import_protobuf.proto3.util.initPartial(data, this);
|
|
1248
|
-
}
|
|
1249
|
-
static fromBinary(bytes, options) {
|
|
1250
|
-
return new _ICEServer().fromBinary(bytes, options);
|
|
1251
|
-
}
|
|
1252
|
-
static fromJson(jsonValue, options) {
|
|
1253
|
-
return new _ICEServer().fromJson(jsonValue, options);
|
|
1254
|
-
}
|
|
1255
|
-
static fromJsonString(jsonString, options) {
|
|
1256
|
-
return new _ICEServer().fromJsonString(jsonString, options);
|
|
1257
|
-
}
|
|
1258
|
-
static equals(a, b) {
|
|
1259
|
-
return import_protobuf.proto3.util.equals(_ICEServer, a, b);
|
|
1260
|
-
}
|
|
1261
|
-
};
|
|
1262
|
-
_ICEServer.runtime = import_protobuf.proto3;
|
|
1263
|
-
_ICEServer.typeName = "livekit.ICEServer";
|
|
1264
|
-
_ICEServer.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
1265
|
-
{ no: 1, name: "urls", kind: "scalar", T: 9, repeated: true },
|
|
1266
|
-
{
|
|
1267
|
-
no: 2,
|
|
1268
|
-
name: "username",
|
|
1269
|
-
kind: "scalar",
|
|
1270
|
-
T: 9
|
|
1271
|
-
/* ScalarType.STRING */
|
|
1272
|
-
},
|
|
1273
|
-
{
|
|
1274
|
-
no: 3,
|
|
1275
|
-
name: "credential",
|
|
1276
|
-
kind: "scalar",
|
|
1277
|
-
T: 9
|
|
1278
|
-
/* ScalarType.STRING */
|
|
1279
|
-
}
|
|
1280
|
-
]);
|
|
1281
|
-
let ICEServer = _ICEServer;
|
|
1282
|
-
const _SpeakersChanged = class _SpeakersChanged extends import_protobuf.Message {
|
|
1283
|
-
constructor(data) {
|
|
1284
|
-
super();
|
|
1285
|
-
/**
|
|
1286
|
-
* @generated from field: repeated livekit.SpeakerInfo speakers = 1;
|
|
1287
|
-
*/
|
|
1288
|
-
this.speakers = [];
|
|
1289
|
-
import_protobuf.proto3.util.initPartial(data, this);
|
|
1290
|
-
}
|
|
1291
|
-
static fromBinary(bytes, options) {
|
|
1292
|
-
return new _SpeakersChanged().fromBinary(bytes, options);
|
|
1293
|
-
}
|
|
1294
|
-
static fromJson(jsonValue, options) {
|
|
1295
|
-
return new _SpeakersChanged().fromJson(jsonValue, options);
|
|
1296
|
-
}
|
|
1297
|
-
static fromJsonString(jsonString, options) {
|
|
1298
|
-
return new _SpeakersChanged().fromJsonString(jsonString, options);
|
|
1299
|
-
}
|
|
1300
|
-
static equals(a, b) {
|
|
1301
|
-
return import_protobuf.proto3.util.equals(_SpeakersChanged, a, b);
|
|
1302
|
-
}
|
|
1303
|
-
};
|
|
1304
|
-
_SpeakersChanged.runtime = import_protobuf.proto3;
|
|
1305
|
-
_SpeakersChanged.typeName = "livekit.SpeakersChanged";
|
|
1306
|
-
_SpeakersChanged.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
1307
|
-
{ no: 1, name: "speakers", kind: "message", T: import_livekit_models_pb.SpeakerInfo, repeated: true }
|
|
1308
|
-
]);
|
|
1309
|
-
let SpeakersChanged = _SpeakersChanged;
|
|
1310
|
-
const _RoomUpdate = class _RoomUpdate extends import_protobuf.Message {
|
|
1311
|
-
constructor(data) {
|
|
1312
|
-
super();
|
|
1313
|
-
import_protobuf.proto3.util.initPartial(data, this);
|
|
1314
|
-
}
|
|
1315
|
-
static fromBinary(bytes, options) {
|
|
1316
|
-
return new _RoomUpdate().fromBinary(bytes, options);
|
|
1317
|
-
}
|
|
1318
|
-
static fromJson(jsonValue, options) {
|
|
1319
|
-
return new _RoomUpdate().fromJson(jsonValue, options);
|
|
1320
|
-
}
|
|
1321
|
-
static fromJsonString(jsonString, options) {
|
|
1322
|
-
return new _RoomUpdate().fromJsonString(jsonString, options);
|
|
1323
|
-
}
|
|
1324
|
-
static equals(a, b) {
|
|
1325
|
-
return import_protobuf.proto3.util.equals(_RoomUpdate, a, b);
|
|
1326
|
-
}
|
|
1327
|
-
};
|
|
1328
|
-
_RoomUpdate.runtime = import_protobuf.proto3;
|
|
1329
|
-
_RoomUpdate.typeName = "livekit.RoomUpdate";
|
|
1330
|
-
_RoomUpdate.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
1331
|
-
{ no: 1, name: "room", kind: "message", T: import_livekit_models_pb.Room }
|
|
1332
|
-
]);
|
|
1333
|
-
let RoomUpdate = _RoomUpdate;
|
|
1334
|
-
const _ConnectionQualityInfo = class _ConnectionQualityInfo extends import_protobuf.Message {
|
|
1335
|
-
constructor(data) {
|
|
1336
|
-
super();
|
|
1337
|
-
/**
|
|
1338
|
-
* @generated from field: string participant_sid = 1;
|
|
1339
|
-
*/
|
|
1340
|
-
this.participantSid = "";
|
|
1341
|
-
/**
|
|
1342
|
-
* @generated from field: livekit.ConnectionQuality quality = 2;
|
|
1343
|
-
*/
|
|
1344
|
-
this.quality = import_livekit_models_pb.ConnectionQuality.POOR;
|
|
1345
|
-
/**
|
|
1346
|
-
* @generated from field: float score = 3;
|
|
1347
|
-
*/
|
|
1348
|
-
this.score = 0;
|
|
1349
|
-
import_protobuf.proto3.util.initPartial(data, this);
|
|
1350
|
-
}
|
|
1351
|
-
static fromBinary(bytes, options) {
|
|
1352
|
-
return new _ConnectionQualityInfo().fromBinary(bytes, options);
|
|
1353
|
-
}
|
|
1354
|
-
static fromJson(jsonValue, options) {
|
|
1355
|
-
return new _ConnectionQualityInfo().fromJson(jsonValue, options);
|
|
1356
|
-
}
|
|
1357
|
-
static fromJsonString(jsonString, options) {
|
|
1358
|
-
return new _ConnectionQualityInfo().fromJsonString(jsonString, options);
|
|
1359
|
-
}
|
|
1360
|
-
static equals(a, b) {
|
|
1361
|
-
return import_protobuf.proto3.util.equals(_ConnectionQualityInfo, a, b);
|
|
1362
|
-
}
|
|
1363
|
-
};
|
|
1364
|
-
_ConnectionQualityInfo.runtime = import_protobuf.proto3;
|
|
1365
|
-
_ConnectionQualityInfo.typeName = "livekit.ConnectionQualityInfo";
|
|
1366
|
-
_ConnectionQualityInfo.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
1367
|
-
{
|
|
1368
|
-
no: 1,
|
|
1369
|
-
name: "participant_sid",
|
|
1370
|
-
kind: "scalar",
|
|
1371
|
-
T: 9
|
|
1372
|
-
/* ScalarType.STRING */
|
|
1373
|
-
},
|
|
1374
|
-
{ no: 2, name: "quality", kind: "enum", T: import_protobuf.proto3.getEnumType(import_livekit_models_pb.ConnectionQuality) },
|
|
1375
|
-
{
|
|
1376
|
-
no: 3,
|
|
1377
|
-
name: "score",
|
|
1378
|
-
kind: "scalar",
|
|
1379
|
-
T: 2
|
|
1380
|
-
/* ScalarType.FLOAT */
|
|
1381
|
-
}
|
|
1382
|
-
]);
|
|
1383
|
-
let ConnectionQualityInfo = _ConnectionQualityInfo;
|
|
1384
|
-
const _ConnectionQualityUpdate = class _ConnectionQualityUpdate extends import_protobuf.Message {
|
|
1385
|
-
constructor(data) {
|
|
1386
|
-
super();
|
|
1387
|
-
/**
|
|
1388
|
-
* @generated from field: repeated livekit.ConnectionQualityInfo updates = 1;
|
|
1389
|
-
*/
|
|
1390
|
-
this.updates = [];
|
|
1391
|
-
import_protobuf.proto3.util.initPartial(data, this);
|
|
1392
|
-
}
|
|
1393
|
-
static fromBinary(bytes, options) {
|
|
1394
|
-
return new _ConnectionQualityUpdate().fromBinary(bytes, options);
|
|
1395
|
-
}
|
|
1396
|
-
static fromJson(jsonValue, options) {
|
|
1397
|
-
return new _ConnectionQualityUpdate().fromJson(jsonValue, options);
|
|
1398
|
-
}
|
|
1399
|
-
static fromJsonString(jsonString, options) {
|
|
1400
|
-
return new _ConnectionQualityUpdate().fromJsonString(jsonString, options);
|
|
1401
|
-
}
|
|
1402
|
-
static equals(a, b) {
|
|
1403
|
-
return import_protobuf.proto3.util.equals(_ConnectionQualityUpdate, a, b);
|
|
1404
|
-
}
|
|
1405
|
-
};
|
|
1406
|
-
_ConnectionQualityUpdate.runtime = import_protobuf.proto3;
|
|
1407
|
-
_ConnectionQualityUpdate.typeName = "livekit.ConnectionQualityUpdate";
|
|
1408
|
-
_ConnectionQualityUpdate.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
1409
|
-
{ no: 1, name: "updates", kind: "message", T: ConnectionQualityInfo, repeated: true }
|
|
1410
|
-
]);
|
|
1411
|
-
let ConnectionQualityUpdate = _ConnectionQualityUpdate;
|
|
1412
|
-
const _StreamStateInfo = class _StreamStateInfo extends import_protobuf.Message {
|
|
1413
|
-
constructor(data) {
|
|
1414
|
-
super();
|
|
1415
|
-
/**
|
|
1416
|
-
* @generated from field: string participant_sid = 1;
|
|
1417
|
-
*/
|
|
1418
|
-
this.participantSid = "";
|
|
1419
|
-
/**
|
|
1420
|
-
* @generated from field: string track_sid = 2;
|
|
1421
|
-
*/
|
|
1422
|
-
this.trackSid = "";
|
|
1423
|
-
/**
|
|
1424
|
-
* @generated from field: livekit.StreamState state = 3;
|
|
1425
|
-
*/
|
|
1426
|
-
this.state = 0 /* ACTIVE */;
|
|
1427
|
-
import_protobuf.proto3.util.initPartial(data, this);
|
|
1428
|
-
}
|
|
1429
|
-
static fromBinary(bytes, options) {
|
|
1430
|
-
return new _StreamStateInfo().fromBinary(bytes, options);
|
|
1431
|
-
}
|
|
1432
|
-
static fromJson(jsonValue, options) {
|
|
1433
|
-
return new _StreamStateInfo().fromJson(jsonValue, options);
|
|
1434
|
-
}
|
|
1435
|
-
static fromJsonString(jsonString, options) {
|
|
1436
|
-
return new _StreamStateInfo().fromJsonString(jsonString, options);
|
|
1437
|
-
}
|
|
1438
|
-
static equals(a, b) {
|
|
1439
|
-
return import_protobuf.proto3.util.equals(_StreamStateInfo, a, b);
|
|
1440
|
-
}
|
|
1441
|
-
};
|
|
1442
|
-
_StreamStateInfo.runtime = import_protobuf.proto3;
|
|
1443
|
-
_StreamStateInfo.typeName = "livekit.StreamStateInfo";
|
|
1444
|
-
_StreamStateInfo.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
1445
|
-
{
|
|
1446
|
-
no: 1,
|
|
1447
|
-
name: "participant_sid",
|
|
1448
|
-
kind: "scalar",
|
|
1449
|
-
T: 9
|
|
1450
|
-
/* ScalarType.STRING */
|
|
1451
|
-
},
|
|
1452
|
-
{
|
|
1453
|
-
no: 2,
|
|
1454
|
-
name: "track_sid",
|
|
1455
|
-
kind: "scalar",
|
|
1456
|
-
T: 9
|
|
1457
|
-
/* ScalarType.STRING */
|
|
1458
|
-
},
|
|
1459
|
-
{ no: 3, name: "state", kind: "enum", T: import_protobuf.proto3.getEnumType(StreamState) }
|
|
1460
|
-
]);
|
|
1461
|
-
let StreamStateInfo = _StreamStateInfo;
|
|
1462
|
-
const _StreamStateUpdate = class _StreamStateUpdate extends import_protobuf.Message {
|
|
1463
|
-
constructor(data) {
|
|
1464
|
-
super();
|
|
1465
|
-
/**
|
|
1466
|
-
* @generated from field: repeated livekit.StreamStateInfo stream_states = 1;
|
|
1467
|
-
*/
|
|
1468
|
-
this.streamStates = [];
|
|
1469
|
-
import_protobuf.proto3.util.initPartial(data, this);
|
|
1470
|
-
}
|
|
1471
|
-
static fromBinary(bytes, options) {
|
|
1472
|
-
return new _StreamStateUpdate().fromBinary(bytes, options);
|
|
1473
|
-
}
|
|
1474
|
-
static fromJson(jsonValue, options) {
|
|
1475
|
-
return new _StreamStateUpdate().fromJson(jsonValue, options);
|
|
1476
|
-
}
|
|
1477
|
-
static fromJsonString(jsonString, options) {
|
|
1478
|
-
return new _StreamStateUpdate().fromJsonString(jsonString, options);
|
|
1479
|
-
}
|
|
1480
|
-
static equals(a, b) {
|
|
1481
|
-
return import_protobuf.proto3.util.equals(_StreamStateUpdate, a, b);
|
|
1482
|
-
}
|
|
1483
|
-
};
|
|
1484
|
-
_StreamStateUpdate.runtime = import_protobuf.proto3;
|
|
1485
|
-
_StreamStateUpdate.typeName = "livekit.StreamStateUpdate";
|
|
1486
|
-
_StreamStateUpdate.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
1487
|
-
{ no: 1, name: "stream_states", kind: "message", T: StreamStateInfo, repeated: true }
|
|
1488
|
-
]);
|
|
1489
|
-
let StreamStateUpdate = _StreamStateUpdate;
|
|
1490
|
-
const _SubscribedQuality = class _SubscribedQuality extends import_protobuf.Message {
|
|
1491
|
-
constructor(data) {
|
|
1492
|
-
super();
|
|
1493
|
-
/**
|
|
1494
|
-
* @generated from field: livekit.VideoQuality quality = 1;
|
|
1495
|
-
*/
|
|
1496
|
-
this.quality = import_livekit_models_pb.VideoQuality.LOW;
|
|
1497
|
-
/**
|
|
1498
|
-
* @generated from field: bool enabled = 2;
|
|
1499
|
-
*/
|
|
1500
|
-
this.enabled = false;
|
|
1501
|
-
import_protobuf.proto3.util.initPartial(data, this);
|
|
1502
|
-
}
|
|
1503
|
-
static fromBinary(bytes, options) {
|
|
1504
|
-
return new _SubscribedQuality().fromBinary(bytes, options);
|
|
1505
|
-
}
|
|
1506
|
-
static fromJson(jsonValue, options) {
|
|
1507
|
-
return new _SubscribedQuality().fromJson(jsonValue, options);
|
|
1508
|
-
}
|
|
1509
|
-
static fromJsonString(jsonString, options) {
|
|
1510
|
-
return new _SubscribedQuality().fromJsonString(jsonString, options);
|
|
1511
|
-
}
|
|
1512
|
-
static equals(a, b) {
|
|
1513
|
-
return import_protobuf.proto3.util.equals(_SubscribedQuality, a, b);
|
|
1514
|
-
}
|
|
1515
|
-
};
|
|
1516
|
-
_SubscribedQuality.runtime = import_protobuf.proto3;
|
|
1517
|
-
_SubscribedQuality.typeName = "livekit.SubscribedQuality";
|
|
1518
|
-
_SubscribedQuality.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
1519
|
-
{ no: 1, name: "quality", kind: "enum", T: import_protobuf.proto3.getEnumType(import_livekit_models_pb.VideoQuality) },
|
|
1520
|
-
{
|
|
1521
|
-
no: 2,
|
|
1522
|
-
name: "enabled",
|
|
1523
|
-
kind: "scalar",
|
|
1524
|
-
T: 8
|
|
1525
|
-
/* ScalarType.BOOL */
|
|
1526
|
-
}
|
|
1527
|
-
]);
|
|
1528
|
-
let SubscribedQuality = _SubscribedQuality;
|
|
1529
|
-
const _SubscribedCodec = class _SubscribedCodec extends import_protobuf.Message {
|
|
1530
|
-
constructor(data) {
|
|
1531
|
-
super();
|
|
1532
|
-
/**
|
|
1533
|
-
* @generated from field: string codec = 1;
|
|
1534
|
-
*/
|
|
1535
|
-
this.codec = "";
|
|
1536
|
-
/**
|
|
1537
|
-
* @generated from field: repeated livekit.SubscribedQuality qualities = 2;
|
|
1538
|
-
*/
|
|
1539
|
-
this.qualities = [];
|
|
1540
|
-
import_protobuf.proto3.util.initPartial(data, this);
|
|
1541
|
-
}
|
|
1542
|
-
static fromBinary(bytes, options) {
|
|
1543
|
-
return new _SubscribedCodec().fromBinary(bytes, options);
|
|
1544
|
-
}
|
|
1545
|
-
static fromJson(jsonValue, options) {
|
|
1546
|
-
return new _SubscribedCodec().fromJson(jsonValue, options);
|
|
1547
|
-
}
|
|
1548
|
-
static fromJsonString(jsonString, options) {
|
|
1549
|
-
return new _SubscribedCodec().fromJsonString(jsonString, options);
|
|
1550
|
-
}
|
|
1551
|
-
static equals(a, b) {
|
|
1552
|
-
return import_protobuf.proto3.util.equals(_SubscribedCodec, a, b);
|
|
1553
|
-
}
|
|
1554
|
-
};
|
|
1555
|
-
_SubscribedCodec.runtime = import_protobuf.proto3;
|
|
1556
|
-
_SubscribedCodec.typeName = "livekit.SubscribedCodec";
|
|
1557
|
-
_SubscribedCodec.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
1558
|
-
{
|
|
1559
|
-
no: 1,
|
|
1560
|
-
name: "codec",
|
|
1561
|
-
kind: "scalar",
|
|
1562
|
-
T: 9
|
|
1563
|
-
/* ScalarType.STRING */
|
|
1564
|
-
},
|
|
1565
|
-
{ no: 2, name: "qualities", kind: "message", T: SubscribedQuality, repeated: true }
|
|
1566
|
-
]);
|
|
1567
|
-
let SubscribedCodec = _SubscribedCodec;
|
|
1568
|
-
const _SubscribedQualityUpdate = class _SubscribedQualityUpdate extends import_protobuf.Message {
|
|
1569
|
-
constructor(data) {
|
|
1570
|
-
super();
|
|
1571
|
-
/**
|
|
1572
|
-
* @generated from field: string track_sid = 1;
|
|
1573
|
-
*/
|
|
1574
|
-
this.trackSid = "";
|
|
1575
|
-
/**
|
|
1576
|
-
* @generated from field: repeated livekit.SubscribedQuality subscribed_qualities = 2;
|
|
1577
|
-
*/
|
|
1578
|
-
this.subscribedQualities = [];
|
|
1579
|
-
/**
|
|
1580
|
-
* @generated from field: repeated livekit.SubscribedCodec subscribed_codecs = 3;
|
|
1581
|
-
*/
|
|
1582
|
-
this.subscribedCodecs = [];
|
|
1583
|
-
import_protobuf.proto3.util.initPartial(data, this);
|
|
1584
|
-
}
|
|
1585
|
-
static fromBinary(bytes, options) {
|
|
1586
|
-
return new _SubscribedQualityUpdate().fromBinary(bytes, options);
|
|
1587
|
-
}
|
|
1588
|
-
static fromJson(jsonValue, options) {
|
|
1589
|
-
return new _SubscribedQualityUpdate().fromJson(jsonValue, options);
|
|
1590
|
-
}
|
|
1591
|
-
static fromJsonString(jsonString, options) {
|
|
1592
|
-
return new _SubscribedQualityUpdate().fromJsonString(jsonString, options);
|
|
1593
|
-
}
|
|
1594
|
-
static equals(a, b) {
|
|
1595
|
-
return import_protobuf.proto3.util.equals(_SubscribedQualityUpdate, a, b);
|
|
1596
|
-
}
|
|
1597
|
-
};
|
|
1598
|
-
_SubscribedQualityUpdate.runtime = import_protobuf.proto3;
|
|
1599
|
-
_SubscribedQualityUpdate.typeName = "livekit.SubscribedQualityUpdate";
|
|
1600
|
-
_SubscribedQualityUpdate.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
1601
|
-
{
|
|
1602
|
-
no: 1,
|
|
1603
|
-
name: "track_sid",
|
|
1604
|
-
kind: "scalar",
|
|
1605
|
-
T: 9
|
|
1606
|
-
/* ScalarType.STRING */
|
|
1607
|
-
},
|
|
1608
|
-
{ no: 2, name: "subscribed_qualities", kind: "message", T: SubscribedQuality, repeated: true },
|
|
1609
|
-
{ no: 3, name: "subscribed_codecs", kind: "message", T: SubscribedCodec, repeated: true }
|
|
1610
|
-
]);
|
|
1611
|
-
let SubscribedQualityUpdate = _SubscribedQualityUpdate;
|
|
1612
|
-
const _TrackPermission = class _TrackPermission extends import_protobuf.Message {
|
|
1613
|
-
constructor(data) {
|
|
1614
|
-
super();
|
|
1615
|
-
/**
|
|
1616
|
-
* permission could be granted either by participant sid or identity
|
|
1617
|
-
*
|
|
1618
|
-
* @generated from field: string participant_sid = 1;
|
|
1619
|
-
*/
|
|
1620
|
-
this.participantSid = "";
|
|
1621
|
-
/**
|
|
1622
|
-
* @generated from field: bool all_tracks = 2;
|
|
1623
|
-
*/
|
|
1624
|
-
this.allTracks = false;
|
|
1625
|
-
/**
|
|
1626
|
-
* @generated from field: repeated string track_sids = 3;
|
|
1627
|
-
*/
|
|
1628
|
-
this.trackSids = [];
|
|
1629
|
-
/**
|
|
1630
|
-
* @generated from field: string participant_identity = 4;
|
|
1631
|
-
*/
|
|
1632
|
-
this.participantIdentity = "";
|
|
1633
|
-
import_protobuf.proto3.util.initPartial(data, this);
|
|
1634
|
-
}
|
|
1635
|
-
static fromBinary(bytes, options) {
|
|
1636
|
-
return new _TrackPermission().fromBinary(bytes, options);
|
|
1637
|
-
}
|
|
1638
|
-
static fromJson(jsonValue, options) {
|
|
1639
|
-
return new _TrackPermission().fromJson(jsonValue, options);
|
|
1640
|
-
}
|
|
1641
|
-
static fromJsonString(jsonString, options) {
|
|
1642
|
-
return new _TrackPermission().fromJsonString(jsonString, options);
|
|
1643
|
-
}
|
|
1644
|
-
static equals(a, b) {
|
|
1645
|
-
return import_protobuf.proto3.util.equals(_TrackPermission, a, b);
|
|
1646
|
-
}
|
|
1647
|
-
};
|
|
1648
|
-
_TrackPermission.runtime = import_protobuf.proto3;
|
|
1649
|
-
_TrackPermission.typeName = "livekit.TrackPermission";
|
|
1650
|
-
_TrackPermission.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
1651
|
-
{
|
|
1652
|
-
no: 1,
|
|
1653
|
-
name: "participant_sid",
|
|
1654
|
-
kind: "scalar",
|
|
1655
|
-
T: 9
|
|
1656
|
-
/* ScalarType.STRING */
|
|
1657
|
-
},
|
|
1658
|
-
{
|
|
1659
|
-
no: 2,
|
|
1660
|
-
name: "all_tracks",
|
|
1661
|
-
kind: "scalar",
|
|
1662
|
-
T: 8
|
|
1663
|
-
/* ScalarType.BOOL */
|
|
1664
|
-
},
|
|
1665
|
-
{ no: 3, name: "track_sids", kind: "scalar", T: 9, repeated: true },
|
|
1666
|
-
{
|
|
1667
|
-
no: 4,
|
|
1668
|
-
name: "participant_identity",
|
|
1669
|
-
kind: "scalar",
|
|
1670
|
-
T: 9
|
|
1671
|
-
/* ScalarType.STRING */
|
|
1672
|
-
}
|
|
1673
|
-
]);
|
|
1674
|
-
let TrackPermission = _TrackPermission;
|
|
1675
|
-
const _SubscriptionPermission = class _SubscriptionPermission extends import_protobuf.Message {
|
|
1676
|
-
constructor(data) {
|
|
1677
|
-
super();
|
|
1678
|
-
/**
|
|
1679
|
-
* @generated from field: bool all_participants = 1;
|
|
1680
|
-
*/
|
|
1681
|
-
this.allParticipants = false;
|
|
1682
|
-
/**
|
|
1683
|
-
* @generated from field: repeated livekit.TrackPermission track_permissions = 2;
|
|
1684
|
-
*/
|
|
1685
|
-
this.trackPermissions = [];
|
|
1686
|
-
import_protobuf.proto3.util.initPartial(data, this);
|
|
1687
|
-
}
|
|
1688
|
-
static fromBinary(bytes, options) {
|
|
1689
|
-
return new _SubscriptionPermission().fromBinary(bytes, options);
|
|
1690
|
-
}
|
|
1691
|
-
static fromJson(jsonValue, options) {
|
|
1692
|
-
return new _SubscriptionPermission().fromJson(jsonValue, options);
|
|
1693
|
-
}
|
|
1694
|
-
static fromJsonString(jsonString, options) {
|
|
1695
|
-
return new _SubscriptionPermission().fromJsonString(jsonString, options);
|
|
1696
|
-
}
|
|
1697
|
-
static equals(a, b) {
|
|
1698
|
-
return import_protobuf.proto3.util.equals(_SubscriptionPermission, a, b);
|
|
1699
|
-
}
|
|
1700
|
-
};
|
|
1701
|
-
_SubscriptionPermission.runtime = import_protobuf.proto3;
|
|
1702
|
-
_SubscriptionPermission.typeName = "livekit.SubscriptionPermission";
|
|
1703
|
-
_SubscriptionPermission.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
1704
|
-
{
|
|
1705
|
-
no: 1,
|
|
1706
|
-
name: "all_participants",
|
|
1707
|
-
kind: "scalar",
|
|
1708
|
-
T: 8
|
|
1709
|
-
/* ScalarType.BOOL */
|
|
1710
|
-
},
|
|
1711
|
-
{ no: 2, name: "track_permissions", kind: "message", T: TrackPermission, repeated: true }
|
|
1712
|
-
]);
|
|
1713
|
-
let SubscriptionPermission = _SubscriptionPermission;
|
|
1714
|
-
const _SubscriptionPermissionUpdate = class _SubscriptionPermissionUpdate extends import_protobuf.Message {
|
|
1715
|
-
constructor(data) {
|
|
1716
|
-
super();
|
|
1717
|
-
/**
|
|
1718
|
-
* @generated from field: string participant_sid = 1;
|
|
1719
|
-
*/
|
|
1720
|
-
this.participantSid = "";
|
|
1721
|
-
/**
|
|
1722
|
-
* @generated from field: string track_sid = 2;
|
|
1723
|
-
*/
|
|
1724
|
-
this.trackSid = "";
|
|
1725
|
-
/**
|
|
1726
|
-
* @generated from field: bool allowed = 3;
|
|
1727
|
-
*/
|
|
1728
|
-
this.allowed = false;
|
|
1729
|
-
import_protobuf.proto3.util.initPartial(data, this);
|
|
1730
|
-
}
|
|
1731
|
-
static fromBinary(bytes, options) {
|
|
1732
|
-
return new _SubscriptionPermissionUpdate().fromBinary(bytes, options);
|
|
1733
|
-
}
|
|
1734
|
-
static fromJson(jsonValue, options) {
|
|
1735
|
-
return new _SubscriptionPermissionUpdate().fromJson(jsonValue, options);
|
|
1736
|
-
}
|
|
1737
|
-
static fromJsonString(jsonString, options) {
|
|
1738
|
-
return new _SubscriptionPermissionUpdate().fromJsonString(jsonString, options);
|
|
1739
|
-
}
|
|
1740
|
-
static equals(a, b) {
|
|
1741
|
-
return import_protobuf.proto3.util.equals(_SubscriptionPermissionUpdate, a, b);
|
|
1742
|
-
}
|
|
1743
|
-
};
|
|
1744
|
-
_SubscriptionPermissionUpdate.runtime = import_protobuf.proto3;
|
|
1745
|
-
_SubscriptionPermissionUpdate.typeName = "livekit.SubscriptionPermissionUpdate";
|
|
1746
|
-
_SubscriptionPermissionUpdate.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
1747
|
-
{
|
|
1748
|
-
no: 1,
|
|
1749
|
-
name: "participant_sid",
|
|
1750
|
-
kind: "scalar",
|
|
1751
|
-
T: 9
|
|
1752
|
-
/* ScalarType.STRING */
|
|
1753
|
-
},
|
|
1754
|
-
{
|
|
1755
|
-
no: 2,
|
|
1756
|
-
name: "track_sid",
|
|
1757
|
-
kind: "scalar",
|
|
1758
|
-
T: 9
|
|
1759
|
-
/* ScalarType.STRING */
|
|
1760
|
-
},
|
|
1761
|
-
{
|
|
1762
|
-
no: 3,
|
|
1763
|
-
name: "allowed",
|
|
1764
|
-
kind: "scalar",
|
|
1765
|
-
T: 8
|
|
1766
|
-
/* ScalarType.BOOL */
|
|
1767
|
-
}
|
|
1768
|
-
]);
|
|
1769
|
-
let SubscriptionPermissionUpdate = _SubscriptionPermissionUpdate;
|
|
1770
|
-
const _SyncState = class _SyncState extends import_protobuf.Message {
|
|
1771
|
-
constructor(data) {
|
|
1772
|
-
super();
|
|
1773
|
-
/**
|
|
1774
|
-
* @generated from field: repeated livekit.TrackPublishedResponse publish_tracks = 3;
|
|
1775
|
-
*/
|
|
1776
|
-
this.publishTracks = [];
|
|
1777
|
-
/**
|
|
1778
|
-
* @generated from field: repeated livekit.DataChannelInfo data_channels = 4;
|
|
1779
|
-
*/
|
|
1780
|
-
this.dataChannels = [];
|
|
1781
|
-
/**
|
|
1782
|
-
* @generated from field: repeated string track_sids_disabled = 6;
|
|
1783
|
-
*/
|
|
1784
|
-
this.trackSidsDisabled = [];
|
|
1785
|
-
import_protobuf.proto3.util.initPartial(data, this);
|
|
1786
|
-
}
|
|
1787
|
-
static fromBinary(bytes, options) {
|
|
1788
|
-
return new _SyncState().fromBinary(bytes, options);
|
|
1789
|
-
}
|
|
1790
|
-
static fromJson(jsonValue, options) {
|
|
1791
|
-
return new _SyncState().fromJson(jsonValue, options);
|
|
1792
|
-
}
|
|
1793
|
-
static fromJsonString(jsonString, options) {
|
|
1794
|
-
return new _SyncState().fromJsonString(jsonString, options);
|
|
1795
|
-
}
|
|
1796
|
-
static equals(a, b) {
|
|
1797
|
-
return import_protobuf.proto3.util.equals(_SyncState, a, b);
|
|
1798
|
-
}
|
|
1799
|
-
};
|
|
1800
|
-
_SyncState.runtime = import_protobuf.proto3;
|
|
1801
|
-
_SyncState.typeName = "livekit.SyncState";
|
|
1802
|
-
_SyncState.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
1803
|
-
{ no: 1, name: "answer", kind: "message", T: SessionDescription },
|
|
1804
|
-
{ no: 2, name: "subscription", kind: "message", T: UpdateSubscription },
|
|
1805
|
-
{ no: 3, name: "publish_tracks", kind: "message", T: TrackPublishedResponse, repeated: true },
|
|
1806
|
-
{ no: 4, name: "data_channels", kind: "message", T: DataChannelInfo, repeated: true },
|
|
1807
|
-
{ no: 5, name: "offer", kind: "message", T: SessionDescription },
|
|
1808
|
-
{ no: 6, name: "track_sids_disabled", kind: "scalar", T: 9, repeated: true }
|
|
1809
|
-
]);
|
|
1810
|
-
let SyncState = _SyncState;
|
|
1811
|
-
const _DataChannelInfo = class _DataChannelInfo extends import_protobuf.Message {
|
|
1812
|
-
constructor(data) {
|
|
1813
|
-
super();
|
|
1814
|
-
/**
|
|
1815
|
-
* @generated from field: string label = 1;
|
|
1816
|
-
*/
|
|
1817
|
-
this.label = "";
|
|
1818
|
-
/**
|
|
1819
|
-
* @generated from field: uint32 id = 2;
|
|
1820
|
-
*/
|
|
1821
|
-
this.id = 0;
|
|
1822
|
-
/**
|
|
1823
|
-
* @generated from field: livekit.SignalTarget target = 3;
|
|
1824
|
-
*/
|
|
1825
|
-
this.target = 0 /* PUBLISHER */;
|
|
1826
|
-
import_protobuf.proto3.util.initPartial(data, this);
|
|
1827
|
-
}
|
|
1828
|
-
static fromBinary(bytes, options) {
|
|
1829
|
-
return new _DataChannelInfo().fromBinary(bytes, options);
|
|
1830
|
-
}
|
|
1831
|
-
static fromJson(jsonValue, options) {
|
|
1832
|
-
return new _DataChannelInfo().fromJson(jsonValue, options);
|
|
1833
|
-
}
|
|
1834
|
-
static fromJsonString(jsonString, options) {
|
|
1835
|
-
return new _DataChannelInfo().fromJsonString(jsonString, options);
|
|
1836
|
-
}
|
|
1837
|
-
static equals(a, b) {
|
|
1838
|
-
return import_protobuf.proto3.util.equals(_DataChannelInfo, a, b);
|
|
1839
|
-
}
|
|
1840
|
-
};
|
|
1841
|
-
_DataChannelInfo.runtime = import_protobuf.proto3;
|
|
1842
|
-
_DataChannelInfo.typeName = "livekit.DataChannelInfo";
|
|
1843
|
-
_DataChannelInfo.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
1844
|
-
{
|
|
1845
|
-
no: 1,
|
|
1846
|
-
name: "label",
|
|
1847
|
-
kind: "scalar",
|
|
1848
|
-
T: 9
|
|
1849
|
-
/* ScalarType.STRING */
|
|
1850
|
-
},
|
|
1851
|
-
{
|
|
1852
|
-
no: 2,
|
|
1853
|
-
name: "id",
|
|
1854
|
-
kind: "scalar",
|
|
1855
|
-
T: 13
|
|
1856
|
-
/* ScalarType.UINT32 */
|
|
1857
|
-
},
|
|
1858
|
-
{ no: 3, name: "target", kind: "enum", T: import_protobuf.proto3.getEnumType(SignalTarget) }
|
|
1859
|
-
]);
|
|
1860
|
-
let DataChannelInfo = _DataChannelInfo;
|
|
1861
|
-
const _SimulateScenario = class _SimulateScenario extends import_protobuf.Message {
|
|
1862
|
-
constructor(data) {
|
|
1863
|
-
super();
|
|
1864
|
-
/**
|
|
1865
|
-
* @generated from oneof livekit.SimulateScenario.scenario
|
|
1866
|
-
*/
|
|
1867
|
-
this.scenario = { case: void 0 };
|
|
1868
|
-
import_protobuf.proto3.util.initPartial(data, this);
|
|
1869
|
-
}
|
|
1870
|
-
static fromBinary(bytes, options) {
|
|
1871
|
-
return new _SimulateScenario().fromBinary(bytes, options);
|
|
1872
|
-
}
|
|
1873
|
-
static fromJson(jsonValue, options) {
|
|
1874
|
-
return new _SimulateScenario().fromJson(jsonValue, options);
|
|
1875
|
-
}
|
|
1876
|
-
static fromJsonString(jsonString, options) {
|
|
1877
|
-
return new _SimulateScenario().fromJsonString(jsonString, options);
|
|
1878
|
-
}
|
|
1879
|
-
static equals(a, b) {
|
|
1880
|
-
return import_protobuf.proto3.util.equals(_SimulateScenario, a, b);
|
|
1881
|
-
}
|
|
1882
|
-
};
|
|
1883
|
-
_SimulateScenario.runtime = import_protobuf.proto3;
|
|
1884
|
-
_SimulateScenario.typeName = "livekit.SimulateScenario";
|
|
1885
|
-
_SimulateScenario.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
1886
|
-
{ no: 1, name: "speaker_update", kind: "scalar", T: 5, oneof: "scenario" },
|
|
1887
|
-
{ no: 2, name: "node_failure", kind: "scalar", T: 8, oneof: "scenario" },
|
|
1888
|
-
{ no: 3, name: "migration", kind: "scalar", T: 8, oneof: "scenario" },
|
|
1889
|
-
{ no: 4, name: "server_leave", kind: "scalar", T: 8, oneof: "scenario" },
|
|
1890
|
-
{ no: 5, name: "switch_candidate_protocol", kind: "enum", T: import_protobuf.proto3.getEnumType(CandidateProtocol), oneof: "scenario" },
|
|
1891
|
-
{ no: 6, name: "subscriber_bandwidth", kind: "scalar", T: 3, oneof: "scenario" },
|
|
1892
|
-
{ no: 7, name: "disconnect_signal_on_resume", kind: "scalar", T: 8, oneof: "scenario" },
|
|
1893
|
-
{ no: 8, name: "disconnect_signal_on_resume_no_messages", kind: "scalar", T: 8, oneof: "scenario" },
|
|
1894
|
-
{ no: 9, name: "leave_request_full_reconnect", kind: "scalar", T: 8, oneof: "scenario" }
|
|
1895
|
-
]);
|
|
1896
|
-
let SimulateScenario = _SimulateScenario;
|
|
1897
|
-
const _Ping = class _Ping extends import_protobuf.Message {
|
|
1898
|
-
constructor(data) {
|
|
1899
|
-
super();
|
|
1900
|
-
/**
|
|
1901
|
-
* @generated from field: int64 timestamp = 1;
|
|
1902
|
-
*/
|
|
1903
|
-
this.timestamp = import_protobuf.protoInt64.zero;
|
|
1904
|
-
/**
|
|
1905
|
-
* rtt in milliseconds calculated by client
|
|
1906
|
-
*
|
|
1907
|
-
* @generated from field: int64 rtt = 2;
|
|
1908
|
-
*/
|
|
1909
|
-
this.rtt = import_protobuf.protoInt64.zero;
|
|
1910
|
-
import_protobuf.proto3.util.initPartial(data, this);
|
|
1911
|
-
}
|
|
1912
|
-
static fromBinary(bytes, options) {
|
|
1913
|
-
return new _Ping().fromBinary(bytes, options);
|
|
1914
|
-
}
|
|
1915
|
-
static fromJson(jsonValue, options) {
|
|
1916
|
-
return new _Ping().fromJson(jsonValue, options);
|
|
1917
|
-
}
|
|
1918
|
-
static fromJsonString(jsonString, options) {
|
|
1919
|
-
return new _Ping().fromJsonString(jsonString, options);
|
|
1920
|
-
}
|
|
1921
|
-
static equals(a, b) {
|
|
1922
|
-
return import_protobuf.proto3.util.equals(_Ping, a, b);
|
|
1923
|
-
}
|
|
1924
|
-
};
|
|
1925
|
-
_Ping.runtime = import_protobuf.proto3;
|
|
1926
|
-
_Ping.typeName = "livekit.Ping";
|
|
1927
|
-
_Ping.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
1928
|
-
{
|
|
1929
|
-
no: 1,
|
|
1930
|
-
name: "timestamp",
|
|
1931
|
-
kind: "scalar",
|
|
1932
|
-
T: 3
|
|
1933
|
-
/* ScalarType.INT64 */
|
|
1934
|
-
},
|
|
1935
|
-
{
|
|
1936
|
-
no: 2,
|
|
1937
|
-
name: "rtt",
|
|
1938
|
-
kind: "scalar",
|
|
1939
|
-
T: 3
|
|
1940
|
-
/* ScalarType.INT64 */
|
|
1941
|
-
}
|
|
1942
|
-
]);
|
|
1943
|
-
let Ping = _Ping;
|
|
1944
|
-
const _Pong = class _Pong extends import_protobuf.Message {
|
|
1945
|
-
constructor(data) {
|
|
1946
|
-
super();
|
|
1947
|
-
/**
|
|
1948
|
-
* timestamp field of last received ping request
|
|
1949
|
-
*
|
|
1950
|
-
* @generated from field: int64 last_ping_timestamp = 1;
|
|
1951
|
-
*/
|
|
1952
|
-
this.lastPingTimestamp = import_protobuf.protoInt64.zero;
|
|
1953
|
-
/**
|
|
1954
|
-
* @generated from field: int64 timestamp = 2;
|
|
1955
|
-
*/
|
|
1956
|
-
this.timestamp = import_protobuf.protoInt64.zero;
|
|
1957
|
-
import_protobuf.proto3.util.initPartial(data, this);
|
|
1958
|
-
}
|
|
1959
|
-
static fromBinary(bytes, options) {
|
|
1960
|
-
return new _Pong().fromBinary(bytes, options);
|
|
1961
|
-
}
|
|
1962
|
-
static fromJson(jsonValue, options) {
|
|
1963
|
-
return new _Pong().fromJson(jsonValue, options);
|
|
1964
|
-
}
|
|
1965
|
-
static fromJsonString(jsonString, options) {
|
|
1966
|
-
return new _Pong().fromJsonString(jsonString, options);
|
|
1967
|
-
}
|
|
1968
|
-
static equals(a, b) {
|
|
1969
|
-
return import_protobuf.proto3.util.equals(_Pong, a, b);
|
|
1970
|
-
}
|
|
1971
|
-
};
|
|
1972
|
-
_Pong.runtime = import_protobuf.proto3;
|
|
1973
|
-
_Pong.typeName = "livekit.Pong";
|
|
1974
|
-
_Pong.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
1975
|
-
{
|
|
1976
|
-
no: 1,
|
|
1977
|
-
name: "last_ping_timestamp",
|
|
1978
|
-
kind: "scalar",
|
|
1979
|
-
T: 3
|
|
1980
|
-
/* ScalarType.INT64 */
|
|
1981
|
-
},
|
|
1982
|
-
{
|
|
1983
|
-
no: 2,
|
|
1984
|
-
name: "timestamp",
|
|
1985
|
-
kind: "scalar",
|
|
1986
|
-
T: 3
|
|
1987
|
-
/* ScalarType.INT64 */
|
|
1988
|
-
}
|
|
1989
|
-
]);
|
|
1990
|
-
let Pong = _Pong;
|
|
1991
|
-
const _RegionSettings = class _RegionSettings extends import_protobuf.Message {
|
|
1992
|
-
constructor(data) {
|
|
1993
|
-
super();
|
|
1994
|
-
/**
|
|
1995
|
-
* @generated from field: repeated livekit.RegionInfo regions = 1;
|
|
1996
|
-
*/
|
|
1997
|
-
this.regions = [];
|
|
1998
|
-
import_protobuf.proto3.util.initPartial(data, this);
|
|
1999
|
-
}
|
|
2000
|
-
static fromBinary(bytes, options) {
|
|
2001
|
-
return new _RegionSettings().fromBinary(bytes, options);
|
|
2002
|
-
}
|
|
2003
|
-
static fromJson(jsonValue, options) {
|
|
2004
|
-
return new _RegionSettings().fromJson(jsonValue, options);
|
|
2005
|
-
}
|
|
2006
|
-
static fromJsonString(jsonString, options) {
|
|
2007
|
-
return new _RegionSettings().fromJsonString(jsonString, options);
|
|
2008
|
-
}
|
|
2009
|
-
static equals(a, b) {
|
|
2010
|
-
return import_protobuf.proto3.util.equals(_RegionSettings, a, b);
|
|
2011
|
-
}
|
|
2012
|
-
};
|
|
2013
|
-
_RegionSettings.runtime = import_protobuf.proto3;
|
|
2014
|
-
_RegionSettings.typeName = "livekit.RegionSettings";
|
|
2015
|
-
_RegionSettings.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
2016
|
-
{ no: 1, name: "regions", kind: "message", T: RegionInfo, repeated: true }
|
|
2017
|
-
]);
|
|
2018
|
-
let RegionSettings = _RegionSettings;
|
|
2019
|
-
const _RegionInfo = class _RegionInfo extends import_protobuf.Message {
|
|
2020
|
-
constructor(data) {
|
|
2021
|
-
super();
|
|
2022
|
-
/**
|
|
2023
|
-
* @generated from field: string region = 1;
|
|
2024
|
-
*/
|
|
2025
|
-
this.region = "";
|
|
2026
|
-
/**
|
|
2027
|
-
* @generated from field: string url = 2;
|
|
2028
|
-
*/
|
|
2029
|
-
this.url = "";
|
|
2030
|
-
/**
|
|
2031
|
-
* @generated from field: int64 distance = 3;
|
|
2032
|
-
*/
|
|
2033
|
-
this.distance = import_protobuf.protoInt64.zero;
|
|
2034
|
-
import_protobuf.proto3.util.initPartial(data, this);
|
|
2035
|
-
}
|
|
2036
|
-
static fromBinary(bytes, options) {
|
|
2037
|
-
return new _RegionInfo().fromBinary(bytes, options);
|
|
2038
|
-
}
|
|
2039
|
-
static fromJson(jsonValue, options) {
|
|
2040
|
-
return new _RegionInfo().fromJson(jsonValue, options);
|
|
2041
|
-
}
|
|
2042
|
-
static fromJsonString(jsonString, options) {
|
|
2043
|
-
return new _RegionInfo().fromJsonString(jsonString, options);
|
|
2044
|
-
}
|
|
2045
|
-
static equals(a, b) {
|
|
2046
|
-
return import_protobuf.proto3.util.equals(_RegionInfo, a, b);
|
|
2047
|
-
}
|
|
2048
|
-
};
|
|
2049
|
-
_RegionInfo.runtime = import_protobuf.proto3;
|
|
2050
|
-
_RegionInfo.typeName = "livekit.RegionInfo";
|
|
2051
|
-
_RegionInfo.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
2052
|
-
{
|
|
2053
|
-
no: 1,
|
|
2054
|
-
name: "region",
|
|
2055
|
-
kind: "scalar",
|
|
2056
|
-
T: 9
|
|
2057
|
-
/* ScalarType.STRING */
|
|
2058
|
-
},
|
|
2059
|
-
{
|
|
2060
|
-
no: 2,
|
|
2061
|
-
name: "url",
|
|
2062
|
-
kind: "scalar",
|
|
2063
|
-
T: 9
|
|
2064
|
-
/* ScalarType.STRING */
|
|
2065
|
-
},
|
|
2066
|
-
{
|
|
2067
|
-
no: 3,
|
|
2068
|
-
name: "distance",
|
|
2069
|
-
kind: "scalar",
|
|
2070
|
-
T: 3
|
|
2071
|
-
/* ScalarType.INT64 */
|
|
2072
|
-
}
|
|
2073
|
-
]);
|
|
2074
|
-
let RegionInfo = _RegionInfo;
|
|
2075
|
-
const _SubscriptionResponse = class _SubscriptionResponse extends import_protobuf.Message {
|
|
2076
|
-
constructor(data) {
|
|
2077
|
-
super();
|
|
2078
|
-
/**
|
|
2079
|
-
* @generated from field: string track_sid = 1;
|
|
2080
|
-
*/
|
|
2081
|
-
this.trackSid = "";
|
|
2082
|
-
/**
|
|
2083
|
-
* @generated from field: livekit.SubscriptionError err = 2;
|
|
2084
|
-
*/
|
|
2085
|
-
this.err = import_livekit_models_pb.SubscriptionError.SE_UNKNOWN;
|
|
2086
|
-
import_protobuf.proto3.util.initPartial(data, this);
|
|
2087
|
-
}
|
|
2088
|
-
static fromBinary(bytes, options) {
|
|
2089
|
-
return new _SubscriptionResponse().fromBinary(bytes, options);
|
|
2090
|
-
}
|
|
2091
|
-
static fromJson(jsonValue, options) {
|
|
2092
|
-
return new _SubscriptionResponse().fromJson(jsonValue, options);
|
|
2093
|
-
}
|
|
2094
|
-
static fromJsonString(jsonString, options) {
|
|
2095
|
-
return new _SubscriptionResponse().fromJsonString(jsonString, options);
|
|
2096
|
-
}
|
|
2097
|
-
static equals(a, b) {
|
|
2098
|
-
return import_protobuf.proto3.util.equals(_SubscriptionResponse, a, b);
|
|
2099
|
-
}
|
|
2100
|
-
};
|
|
2101
|
-
_SubscriptionResponse.runtime = import_protobuf.proto3;
|
|
2102
|
-
_SubscriptionResponse.typeName = "livekit.SubscriptionResponse";
|
|
2103
|
-
_SubscriptionResponse.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
2104
|
-
{
|
|
2105
|
-
no: 1,
|
|
2106
|
-
name: "track_sid",
|
|
2107
|
-
kind: "scalar",
|
|
2108
|
-
T: 9
|
|
2109
|
-
/* ScalarType.STRING */
|
|
2110
|
-
},
|
|
2111
|
-
{ no: 2, name: "err", kind: "enum", T: import_protobuf.proto3.getEnumType(import_livekit_models_pb.SubscriptionError) }
|
|
2112
|
-
]);
|
|
2113
|
-
let SubscriptionResponse = _SubscriptionResponse;
|
|
2114
|
-
const _RequestResponse = class _RequestResponse extends import_protobuf.Message {
|
|
2115
|
-
constructor(data) {
|
|
2116
|
-
super();
|
|
2117
|
-
/**
|
|
2118
|
-
* @generated from field: uint32 request_id = 1;
|
|
2119
|
-
*/
|
|
2120
|
-
this.requestId = 0;
|
|
2121
|
-
/**
|
|
2122
|
-
* @generated from field: livekit.RequestResponse.Reason reason = 2;
|
|
2123
|
-
*/
|
|
2124
|
-
this.reason = 0 /* OK */;
|
|
2125
|
-
/**
|
|
2126
|
-
* @generated from field: string message = 3;
|
|
2127
|
-
*/
|
|
2128
|
-
this.message = "";
|
|
2129
|
-
import_protobuf.proto3.util.initPartial(data, this);
|
|
2130
|
-
}
|
|
2131
|
-
static fromBinary(bytes, options) {
|
|
2132
|
-
return new _RequestResponse().fromBinary(bytes, options);
|
|
2133
|
-
}
|
|
2134
|
-
static fromJson(jsonValue, options) {
|
|
2135
|
-
return new _RequestResponse().fromJson(jsonValue, options);
|
|
2136
|
-
}
|
|
2137
|
-
static fromJsonString(jsonString, options) {
|
|
2138
|
-
return new _RequestResponse().fromJsonString(jsonString, options);
|
|
2139
|
-
}
|
|
2140
|
-
static equals(a, b) {
|
|
2141
|
-
return import_protobuf.proto3.util.equals(_RequestResponse, a, b);
|
|
2142
|
-
}
|
|
2143
|
-
};
|
|
2144
|
-
_RequestResponse.runtime = import_protobuf.proto3;
|
|
2145
|
-
_RequestResponse.typeName = "livekit.RequestResponse";
|
|
2146
|
-
_RequestResponse.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
2147
|
-
{
|
|
2148
|
-
no: 1,
|
|
2149
|
-
name: "request_id",
|
|
2150
|
-
kind: "scalar",
|
|
2151
|
-
T: 13
|
|
2152
|
-
/* ScalarType.UINT32 */
|
|
2153
|
-
},
|
|
2154
|
-
{ no: 2, name: "reason", kind: "enum", T: import_protobuf.proto3.getEnumType(RequestResponse_Reason) },
|
|
2155
|
-
{
|
|
2156
|
-
no: 3,
|
|
2157
|
-
name: "message",
|
|
2158
|
-
kind: "scalar",
|
|
2159
|
-
T: 9
|
|
2160
|
-
/* ScalarType.STRING */
|
|
2161
|
-
}
|
|
2162
|
-
]);
|
|
2163
|
-
let RequestResponse = _RequestResponse;
|
|
2164
|
-
var RequestResponse_Reason = /* @__PURE__ */ ((RequestResponse_Reason2) => {
|
|
2165
|
-
RequestResponse_Reason2[RequestResponse_Reason2["OK"] = 0] = "OK";
|
|
2166
|
-
RequestResponse_Reason2[RequestResponse_Reason2["NOT_FOUND"] = 1] = "NOT_FOUND";
|
|
2167
|
-
RequestResponse_Reason2[RequestResponse_Reason2["NOT_ALLOWED"] = 2] = "NOT_ALLOWED";
|
|
2168
|
-
RequestResponse_Reason2[RequestResponse_Reason2["LIMIT_EXCEEDED"] = 3] = "LIMIT_EXCEEDED";
|
|
2169
|
-
return RequestResponse_Reason2;
|
|
2170
|
-
})(RequestResponse_Reason || {});
|
|
2171
|
-
import_protobuf.proto3.util.setEnumType(RequestResponse_Reason, "livekit.RequestResponse.Reason", [
|
|
2172
|
-
{ no: 0, name: "OK" },
|
|
2173
|
-
{ no: 1, name: "NOT_FOUND" },
|
|
2174
|
-
{ no: 2, name: "NOT_ALLOWED" },
|
|
2175
|
-
{ no: 3, name: "LIMIT_EXCEEDED" }
|
|
2176
|
-
]);
|
|
2177
|
-
const _TrackSubscribed = class _TrackSubscribed extends import_protobuf.Message {
|
|
2178
|
-
constructor(data) {
|
|
2179
|
-
super();
|
|
2180
|
-
/**
|
|
2181
|
-
* @generated from field: string track_sid = 1;
|
|
2182
|
-
*/
|
|
2183
|
-
this.trackSid = "";
|
|
2184
|
-
import_protobuf.proto3.util.initPartial(data, this);
|
|
2185
|
-
}
|
|
2186
|
-
static fromBinary(bytes, options) {
|
|
2187
|
-
return new _TrackSubscribed().fromBinary(bytes, options);
|
|
2188
|
-
}
|
|
2189
|
-
static fromJson(jsonValue, options) {
|
|
2190
|
-
return new _TrackSubscribed().fromJson(jsonValue, options);
|
|
2191
|
-
}
|
|
2192
|
-
static fromJsonString(jsonString, options) {
|
|
2193
|
-
return new _TrackSubscribed().fromJsonString(jsonString, options);
|
|
2194
|
-
}
|
|
2195
|
-
static equals(a, b) {
|
|
2196
|
-
return import_protobuf.proto3.util.equals(_TrackSubscribed, a, b);
|
|
2197
|
-
}
|
|
2198
|
-
};
|
|
2199
|
-
_TrackSubscribed.runtime = import_protobuf.proto3;
|
|
2200
|
-
_TrackSubscribed.typeName = "livekit.TrackSubscribed";
|
|
2201
|
-
_TrackSubscribed.fields = import_protobuf.proto3.util.newFieldList(() => [
|
|
2202
|
-
{
|
|
2203
|
-
no: 1,
|
|
2204
|
-
name: "track_sid",
|
|
2205
|
-
kind: "scalar",
|
|
2206
|
-
T: 9
|
|
2207
|
-
/* ScalarType.STRING */
|
|
2208
|
-
}
|
|
2209
|
-
]);
|
|
2210
|
-
let TrackSubscribed = _TrackSubscribed;
|
|
2211
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
2212
|
-
0 && (module.exports = {
|
|
2213
|
-
AddTrackRequest,
|
|
2214
|
-
CandidateProtocol,
|
|
2215
|
-
ConnectionQualityInfo,
|
|
2216
|
-
ConnectionQualityUpdate,
|
|
2217
|
-
DataChannelInfo,
|
|
2218
|
-
ICEServer,
|
|
2219
|
-
JoinResponse,
|
|
2220
|
-
LeaveRequest,
|
|
2221
|
-
LeaveRequest_Action,
|
|
2222
|
-
MuteTrackRequest,
|
|
2223
|
-
ParticipantUpdate,
|
|
2224
|
-
Ping,
|
|
2225
|
-
Pong,
|
|
2226
|
-
ReconnectResponse,
|
|
2227
|
-
RegionInfo,
|
|
2228
|
-
RegionSettings,
|
|
2229
|
-
RequestResponse,
|
|
2230
|
-
RequestResponse_Reason,
|
|
2231
|
-
RoomUpdate,
|
|
2232
|
-
SessionDescription,
|
|
2233
|
-
SignalRequest,
|
|
2234
|
-
SignalResponse,
|
|
2235
|
-
SignalTarget,
|
|
2236
|
-
SimulateScenario,
|
|
2237
|
-
SimulcastCodec,
|
|
2238
|
-
SpeakersChanged,
|
|
2239
|
-
StreamState,
|
|
2240
|
-
StreamStateInfo,
|
|
2241
|
-
StreamStateUpdate,
|
|
2242
|
-
SubscribedCodec,
|
|
2243
|
-
SubscribedQuality,
|
|
2244
|
-
SubscribedQualityUpdate,
|
|
2245
|
-
SubscriptionPermission,
|
|
2246
|
-
SubscriptionPermissionUpdate,
|
|
2247
|
-
SubscriptionResponse,
|
|
2248
|
-
SyncState,
|
|
2249
|
-
TrackPermission,
|
|
2250
|
-
TrackPublishedResponse,
|
|
2251
|
-
TrackSubscribed,
|
|
2252
|
-
TrackUnpublishedResponse,
|
|
2253
|
-
TrickleRequest,
|
|
2254
|
-
UpdateLocalAudioTrack,
|
|
2255
|
-
UpdateLocalVideoTrack,
|
|
2256
|
-
UpdateParticipantMetadata,
|
|
2257
|
-
UpdateSubscription,
|
|
2258
|
-
UpdateTrackSettings,
|
|
2259
|
-
UpdateVideoLayers
|
|
2260
|
-
});
|
|
2261
|
-
//# sourceMappingURL=livekit_rtc_pb.cjs.map
|