livekit-client 1.12.1 → 1.12.2
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +7 -3
- package/dist/livekit-client.e2ee.worker.js +1 -1
- package/dist/livekit-client.e2ee.worker.js.map +1 -1
- package/dist/livekit-client.e2ee.worker.mjs +389 -301
- package/dist/livekit-client.e2ee.worker.mjs.map +1 -1
- package/dist/livekit-client.esm.mjs +12735 -14958
- package/dist/livekit-client.esm.mjs.map +1 -1
- package/dist/livekit-client.umd.js +1 -1
- package/dist/livekit-client.umd.js.map +1 -1
- package/dist/src/api/SignalClient.d.ts +2 -2
- package/dist/src/api/SignalClient.d.ts.map +1 -1
- package/dist/src/connectionHelper/ConnectionCheck.d.ts +3 -2
- package/dist/src/connectionHelper/ConnectionCheck.d.ts.map +1 -1
- package/dist/src/connectionHelper/checks/Checker.d.ts +3 -2
- package/dist/src/connectionHelper/checks/Checker.d.ts.map +1 -1
- package/dist/src/connectionHelper/checks/webrtc.d.ts.map +1 -1
- package/dist/src/connectionHelper/checks/websocket.d.ts.map +1 -1
- package/dist/src/e2ee/E2eeManager.d.ts +4 -2
- package/dist/src/e2ee/E2eeManager.d.ts.map +1 -1
- package/dist/src/e2ee/KeyProvider.d.ts +4 -2
- package/dist/src/e2ee/KeyProvider.d.ts.map +1 -1
- package/dist/src/e2ee/constants.d.ts +1 -0
- package/dist/src/e2ee/constants.d.ts.map +1 -1
- package/dist/src/e2ee/types.d.ts +1 -0
- package/dist/src/e2ee/types.d.ts.map +1 -1
- package/dist/src/e2ee/worker/FrameCryptor.d.ts +4 -2
- package/dist/src/e2ee/worker/FrameCryptor.d.ts.map +1 -1
- package/dist/src/e2ee/worker/ParticipantKeyHandler.d.ts +14 -3
- package/dist/src/e2ee/worker/ParticipantKeyHandler.d.ts.map +1 -1
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/proto/livekit_models_pb.d.ts +1264 -0
- package/dist/src/proto/livekit_models_pb.d.ts.map +1 -0
- package/dist/src/proto/livekit_rtc_pb.d.ts +1373 -0
- package/dist/src/proto/livekit_rtc_pb.d.ts.map +1 -0
- package/dist/src/room/PCTransport.d.ts +2 -1
- package/dist/src/room/PCTransport.d.ts.map +1 -1
- package/dist/src/room/RTCEngine.d.ts +9 -5
- package/dist/src/room/RTCEngine.d.ts.map +1 -1
- package/dist/src/room/RegionUrlProvider.d.ts +4 -1
- package/dist/src/room/RegionUrlProvider.d.ts.map +1 -1
- package/dist/src/room/Room.d.ts +15 -11
- package/dist/src/room/Room.d.ts.map +1 -1
- package/dist/src/room/participant/LocalParticipant.d.ts +2 -2
- package/dist/src/room/participant/LocalParticipant.d.ts.map +1 -1
- package/dist/src/room/participant/Participant.d.ts +5 -3
- package/dist/src/room/participant/Participant.d.ts.map +1 -1
- package/dist/src/room/participant/ParticipantTrackPermission.d.ts +1 -1
- package/dist/src/room/participant/ParticipantTrackPermission.d.ts.map +1 -1
- package/dist/src/room/participant/RemoteParticipant.d.ts +2 -3
- package/dist/src/room/participant/RemoteParticipant.d.ts.map +1 -1
- package/dist/src/room/timers.d.ts +5 -4
- package/dist/src/room/timers.d.ts.map +1 -1
- package/dist/src/room/track/LocalTrack.d.ts +3 -0
- package/dist/src/room/track/LocalTrack.d.ts.map +1 -1
- package/dist/src/room/track/LocalTrackPublication.d.ts +1 -1
- package/dist/src/room/track/LocalTrackPublication.d.ts.map +1 -1
- package/dist/src/room/track/LocalVideoTrack.d.ts +2 -2
- package/dist/src/room/track/LocalVideoTrack.d.ts.map +1 -1
- package/dist/src/room/track/RemoteTrackPublication.d.ts +1 -1
- package/dist/src/room/track/RemoteTrackPublication.d.ts.map +1 -1
- package/dist/src/room/track/Track.d.ts +6 -4
- package/dist/src/room/track/Track.d.ts.map +1 -1
- package/dist/src/room/track/TrackPublication.d.ts +7 -5
- package/dist/src/room/track/TrackPublication.d.ts.map +1 -1
- package/dist/src/room/track/create.d.ts.map +1 -1
- package/dist/src/room/track/options.d.ts +7 -0
- package/dist/src/room/track/options.d.ts.map +1 -1
- package/dist/src/room/track/utils.d.ts +5 -1
- package/dist/src/room/track/utils.d.ts.map +1 -1
- package/dist/src/room/utils.d.ts +3 -1
- package/dist/src/room/utils.d.ts.map +1 -1
- package/dist/src/test/mocks.d.ts +4 -3
- package/dist/src/test/mocks.d.ts.map +1 -1
- package/dist/ts4.2/src/api/SignalClient.d.ts +2 -2
- package/dist/ts4.2/src/connectionHelper/ConnectionCheck.d.ts +3 -2
- package/dist/ts4.2/src/connectionHelper/checks/Checker.d.ts +3 -2
- package/dist/ts4.2/src/e2ee/E2eeManager.d.ts +4 -2
- package/dist/ts4.2/src/e2ee/KeyProvider.d.ts +4 -2
- package/dist/ts4.2/src/e2ee/constants.d.ts +1 -0
- package/dist/ts4.2/src/e2ee/types.d.ts +1 -0
- package/dist/ts4.2/src/e2ee/worker/FrameCryptor.d.ts +4 -2
- package/dist/ts4.2/src/e2ee/worker/ParticipantKeyHandler.d.ts +14 -3
- package/dist/ts4.2/src/index.d.ts +1 -1
- package/dist/ts4.2/src/proto/livekit_models_pb.d.ts +1264 -0
- package/dist/ts4.2/src/proto/livekit_rtc_pb.d.ts +1373 -0
- package/dist/ts4.2/src/room/PCTransport.d.ts +2 -1
- package/dist/ts4.2/src/room/RTCEngine.d.ts +9 -5
- package/dist/ts4.2/src/room/RegionUrlProvider.d.ts +4 -1
- package/dist/ts4.2/src/room/Room.d.ts +15 -11
- package/dist/ts4.2/src/room/participant/LocalParticipant.d.ts +2 -2
- package/dist/ts4.2/src/room/participant/Participant.d.ts +5 -3
- package/dist/ts4.2/src/room/participant/ParticipantTrackPermission.d.ts +1 -1
- package/dist/ts4.2/src/room/participant/RemoteParticipant.d.ts +2 -3
- package/dist/ts4.2/src/room/timers.d.ts +5 -4
- package/dist/ts4.2/src/room/track/LocalTrack.d.ts +3 -0
- package/dist/ts4.2/src/room/track/LocalTrackPublication.d.ts +1 -1
- package/dist/ts4.2/src/room/track/LocalVideoTrack.d.ts +2 -2
- package/dist/ts4.2/src/room/track/RemoteTrackPublication.d.ts +1 -1
- package/dist/ts4.2/src/room/track/Track.d.ts +6 -4
- package/dist/ts4.2/src/room/track/TrackPublication.d.ts +7 -5
- package/dist/ts4.2/src/room/track/options.d.ts +7 -0
- package/dist/ts4.2/src/room/track/utils.d.ts +5 -1
- package/dist/ts4.2/src/room/utils.d.ts +3 -1
- package/dist/ts4.2/src/test/mocks.d.ts +4 -3
- package/package.json +10 -10
- package/src/api/SignalClient.ts +104 -101
- package/src/connectionHelper/ConnectionCheck.ts +3 -2
- package/src/connectionHelper/checks/Checker.ts +3 -3
- package/src/connectionHelper/checks/webrtc.ts +66 -2
- package/src/connectionHelper/checks/websocket.ts +4 -0
- package/src/e2ee/E2eeManager.ts +4 -3
- package/src/e2ee/KeyProvider.ts +3 -2
- package/src/e2ee/constants.ts +4 -0
- package/src/e2ee/types.ts +1 -0
- package/src/e2ee/worker/FrameCryptor.test.ts +1 -3
- package/src/e2ee/worker/FrameCryptor.ts +5 -5
- package/src/e2ee/worker/ParticipantKeyHandler.ts +37 -6
- package/src/e2ee/worker/e2ee.worker.ts +1 -1
- package/src/index.ts +1 -1
- package/src/proto/livekit_models_pb.ts +2096 -0
- package/src/proto/livekit_rtc_pb.ts +2332 -0
- package/src/room/PCTransport.ts +1 -1
- package/src/room/RTCEngine.ts +24 -18
- package/src/room/RegionUrlProvider.ts +11 -2
- package/src/room/Room.test.ts +1 -0
- package/src/room/Room.ts +158 -79
- package/src/room/participant/LocalParticipant.ts +43 -59
- package/src/room/participant/Participant.ts +6 -4
- package/src/room/participant/ParticipantTrackPermission.ts +3 -3
- package/src/room/participant/RemoteParticipant.ts +5 -6
- package/src/room/participant/publishUtils.test.ts +1 -0
- package/src/room/track/LocalTrack.ts +24 -9
- package/src/room/track/LocalTrackPublication.ts +1 -1
- package/src/room/track/LocalVideoTrack.test.ts +2 -1
- package/src/room/track/LocalVideoTrack.ts +22 -22
- package/src/room/track/RemoteTrackPublication.ts +12 -7
- package/src/room/track/RemoteVideoTrack.test.ts +5 -4
- package/src/room/track/Track.ts +9 -6
- package/src/room/track/TrackPublication.ts +7 -5
- package/src/room/track/create.ts +9 -17
- package/src/room/track/facingMode.test.ts +1 -0
- package/src/room/track/options.ts +6 -0
- package/src/room/track/utils.test.ts +1 -0
- package/src/room/track/utils.ts +44 -2
- package/src/room/utils.test.ts +16 -0
- package/src/room/utils.ts +20 -4
- package/src/test/mocks.ts +7 -5
- package/src/utils/AsyncQueue.test.ts +1 -0
- package/src/utils/browserParser.test.ts +33 -3
- package/src/utils/browserParser.ts +1 -1
- package/dist/src/proto/google/protobuf/timestamp.d.ts +0 -146
- package/dist/src/proto/google/protobuf/timestamp.d.ts.map +0 -1
- package/dist/src/proto/livekit_models.d.ts +0 -2399
- package/dist/src/proto/livekit_models.d.ts.map +0 -1
- package/dist/src/proto/livekit_rtc.d.ts +0 -14352
- package/dist/src/proto/livekit_rtc.d.ts.map +0 -1
- package/dist/ts4.2/src/proto/google/protobuf/timestamp.d.ts +0 -150
- package/dist/ts4.2/src/proto/livekit_models.d.ts +0 -2659
- package/dist/ts4.2/src/proto/livekit_rtc.d.ts +0 -15764
- package/src/proto/google/protobuf/timestamp.ts +0 -230
- package/src/proto/livekit_models.ts +0 -4006
- package/src/proto/livekit_rtc.ts +0 -4672
@@ -0,0 +1,1373 @@
|
|
1
|
+
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
2
|
+
import { Message, proto3 } from "@bufbuild/protobuf";
|
3
|
+
import { ClientConfiguration, ConnectionQuality, DisconnectReason, Encryption_Type, ParticipantInfo, ParticipantTracks, Room, ServerInfo, SpeakerInfo, SubscriptionError, TrackInfo, TrackSource, TrackType, VideoLayer, VideoQuality } from "./livekit_models_pb.js";
|
4
|
+
/**
|
5
|
+
* @generated from enum livekit.SignalTarget
|
6
|
+
*/
|
7
|
+
export declare enum SignalTarget {
|
8
|
+
/**
|
9
|
+
* @generated from enum value: PUBLISHER = 0;
|
10
|
+
*/
|
11
|
+
PUBLISHER = 0,
|
12
|
+
/**
|
13
|
+
* @generated from enum value: SUBSCRIBER = 1;
|
14
|
+
*/
|
15
|
+
SUBSCRIBER = 1
|
16
|
+
}
|
17
|
+
/**
|
18
|
+
* @generated from enum livekit.StreamState
|
19
|
+
*/
|
20
|
+
export declare enum StreamState {
|
21
|
+
/**
|
22
|
+
* @generated from enum value: ACTIVE = 0;
|
23
|
+
*/
|
24
|
+
ACTIVE = 0,
|
25
|
+
/**
|
26
|
+
* @generated from enum value: PAUSED = 1;
|
27
|
+
*/
|
28
|
+
PAUSED = 1
|
29
|
+
}
|
30
|
+
/**
|
31
|
+
* @generated from enum livekit.CandidateProtocol
|
32
|
+
*/
|
33
|
+
export declare enum CandidateProtocol {
|
34
|
+
/**
|
35
|
+
* @generated from enum value: UDP = 0;
|
36
|
+
*/
|
37
|
+
UDP = 0,
|
38
|
+
/**
|
39
|
+
* @generated from enum value: TCP = 1;
|
40
|
+
*/
|
41
|
+
TCP = 1,
|
42
|
+
/**
|
43
|
+
* @generated from enum value: TLS = 2;
|
44
|
+
*/
|
45
|
+
TLS = 2
|
46
|
+
}
|
47
|
+
/**
|
48
|
+
* @generated from message livekit.SignalRequest
|
49
|
+
*/
|
50
|
+
export declare class SignalRequest extends Message<SignalRequest> {
|
51
|
+
/**
|
52
|
+
* @generated from oneof livekit.SignalRequest.message
|
53
|
+
*/
|
54
|
+
message: {
|
55
|
+
/**
|
56
|
+
* initial join exchange, for publisher
|
57
|
+
*
|
58
|
+
* @generated from field: livekit.SessionDescription offer = 1;
|
59
|
+
*/
|
60
|
+
value: SessionDescription;
|
61
|
+
case: "offer";
|
62
|
+
} | {
|
63
|
+
/**
|
64
|
+
* participant answering publisher offer
|
65
|
+
*
|
66
|
+
* @generated from field: livekit.SessionDescription answer = 2;
|
67
|
+
*/
|
68
|
+
value: SessionDescription;
|
69
|
+
case: "answer";
|
70
|
+
} | {
|
71
|
+
/**
|
72
|
+
* @generated from field: livekit.TrickleRequest trickle = 3;
|
73
|
+
*/
|
74
|
+
value: TrickleRequest;
|
75
|
+
case: "trickle";
|
76
|
+
} | {
|
77
|
+
/**
|
78
|
+
* @generated from field: livekit.AddTrackRequest add_track = 4;
|
79
|
+
*/
|
80
|
+
value: AddTrackRequest;
|
81
|
+
case: "addTrack";
|
82
|
+
} | {
|
83
|
+
/**
|
84
|
+
* mute the participant's published tracks
|
85
|
+
*
|
86
|
+
* @generated from field: livekit.MuteTrackRequest mute = 5;
|
87
|
+
*/
|
88
|
+
value: MuteTrackRequest;
|
89
|
+
case: "mute";
|
90
|
+
} | {
|
91
|
+
/**
|
92
|
+
* Subscribe or unsubscribe from tracks
|
93
|
+
*
|
94
|
+
* @generated from field: livekit.UpdateSubscription subscription = 6;
|
95
|
+
*/
|
96
|
+
value: UpdateSubscription;
|
97
|
+
case: "subscription";
|
98
|
+
} | {
|
99
|
+
/**
|
100
|
+
* Update settings of subscribed tracks
|
101
|
+
*
|
102
|
+
* @generated from field: livekit.UpdateTrackSettings track_setting = 7;
|
103
|
+
*/
|
104
|
+
value: UpdateTrackSettings;
|
105
|
+
case: "trackSetting";
|
106
|
+
} | {
|
107
|
+
/**
|
108
|
+
* Immediately terminate session
|
109
|
+
*
|
110
|
+
* @generated from field: livekit.LeaveRequest leave = 8;
|
111
|
+
*/
|
112
|
+
value: LeaveRequest;
|
113
|
+
case: "leave";
|
114
|
+
} | {
|
115
|
+
/**
|
116
|
+
* Update published video layers
|
117
|
+
*
|
118
|
+
* @generated from field: livekit.UpdateVideoLayers update_layers = 10;
|
119
|
+
*/
|
120
|
+
value: UpdateVideoLayers;
|
121
|
+
case: "updateLayers";
|
122
|
+
} | {
|
123
|
+
/**
|
124
|
+
* Update subscriber permissions
|
125
|
+
*
|
126
|
+
* @generated from field: livekit.SubscriptionPermission subscription_permission = 11;
|
127
|
+
*/
|
128
|
+
value: SubscriptionPermission;
|
129
|
+
case: "subscriptionPermission";
|
130
|
+
} | {
|
131
|
+
/**
|
132
|
+
* sync client's subscribe state to server during reconnect
|
133
|
+
*
|
134
|
+
* @generated from field: livekit.SyncState sync_state = 12;
|
135
|
+
*/
|
136
|
+
value: SyncState;
|
137
|
+
case: "syncState";
|
138
|
+
} | {
|
139
|
+
/**
|
140
|
+
* Simulate conditions, for client validations
|
141
|
+
*
|
142
|
+
* @generated from field: livekit.SimulateScenario simulate = 13;
|
143
|
+
*/
|
144
|
+
value: SimulateScenario;
|
145
|
+
case: "simulate";
|
146
|
+
} | {
|
147
|
+
/**
|
148
|
+
* client triggered ping to server
|
149
|
+
*
|
150
|
+
* deprecated by ping_req (message Ping)
|
151
|
+
*
|
152
|
+
* @generated from field: int64 ping = 14;
|
153
|
+
*/
|
154
|
+
value: bigint;
|
155
|
+
case: "ping";
|
156
|
+
} | {
|
157
|
+
/**
|
158
|
+
* update a participant's own metadata and/or name
|
159
|
+
*
|
160
|
+
* @generated from field: livekit.UpdateParticipantMetadata update_metadata = 15;
|
161
|
+
*/
|
162
|
+
value: UpdateParticipantMetadata;
|
163
|
+
case: "updateMetadata";
|
164
|
+
} | {
|
165
|
+
/**
|
166
|
+
* @generated from field: livekit.Ping ping_req = 16;
|
167
|
+
*/
|
168
|
+
value: Ping;
|
169
|
+
case: "pingReq";
|
170
|
+
} | {
|
171
|
+
case: undefined;
|
172
|
+
value?: undefined;
|
173
|
+
};
|
174
|
+
constructor(data?: PartialMessage<SignalRequest>);
|
175
|
+
static readonly runtime: typeof proto3;
|
176
|
+
static readonly typeName = "livekit.SignalRequest";
|
177
|
+
static readonly fields: FieldList;
|
178
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SignalRequest;
|
179
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SignalRequest;
|
180
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SignalRequest;
|
181
|
+
static equals(a: SignalRequest | PlainMessage<SignalRequest> | undefined, b: SignalRequest | PlainMessage<SignalRequest> | undefined): boolean;
|
182
|
+
}
|
183
|
+
/**
|
184
|
+
* @generated from message livekit.SignalResponse
|
185
|
+
*/
|
186
|
+
export declare class SignalResponse extends Message<SignalResponse> {
|
187
|
+
/**
|
188
|
+
* @generated from oneof livekit.SignalResponse.message
|
189
|
+
*/
|
190
|
+
message: {
|
191
|
+
/**
|
192
|
+
* sent when join is accepted
|
193
|
+
*
|
194
|
+
* @generated from field: livekit.JoinResponse join = 1;
|
195
|
+
*/
|
196
|
+
value: JoinResponse;
|
197
|
+
case: "join";
|
198
|
+
} | {
|
199
|
+
/**
|
200
|
+
* sent when server answers publisher
|
201
|
+
*
|
202
|
+
* @generated from field: livekit.SessionDescription answer = 2;
|
203
|
+
*/
|
204
|
+
value: SessionDescription;
|
205
|
+
case: "answer";
|
206
|
+
} | {
|
207
|
+
/**
|
208
|
+
* sent when server is sending subscriber an offer
|
209
|
+
*
|
210
|
+
* @generated from field: livekit.SessionDescription offer = 3;
|
211
|
+
*/
|
212
|
+
value: SessionDescription;
|
213
|
+
case: "offer";
|
214
|
+
} | {
|
215
|
+
/**
|
216
|
+
* sent when an ICE candidate is available
|
217
|
+
*
|
218
|
+
* @generated from field: livekit.TrickleRequest trickle = 4;
|
219
|
+
*/
|
220
|
+
value: TrickleRequest;
|
221
|
+
case: "trickle";
|
222
|
+
} | {
|
223
|
+
/**
|
224
|
+
* sent when participants in the room has changed
|
225
|
+
*
|
226
|
+
* @generated from field: livekit.ParticipantUpdate update = 5;
|
227
|
+
*/
|
228
|
+
value: ParticipantUpdate;
|
229
|
+
case: "update";
|
230
|
+
} | {
|
231
|
+
/**
|
232
|
+
* sent to the participant when their track has been published
|
233
|
+
*
|
234
|
+
* @generated from field: livekit.TrackPublishedResponse track_published = 6;
|
235
|
+
*/
|
236
|
+
value: TrackPublishedResponse;
|
237
|
+
case: "trackPublished";
|
238
|
+
} | {
|
239
|
+
/**
|
240
|
+
* Immediately terminate session
|
241
|
+
*
|
242
|
+
* @generated from field: livekit.LeaveRequest leave = 8;
|
243
|
+
*/
|
244
|
+
value: LeaveRequest;
|
245
|
+
case: "leave";
|
246
|
+
} | {
|
247
|
+
/**
|
248
|
+
* server initiated mute
|
249
|
+
*
|
250
|
+
* @generated from field: livekit.MuteTrackRequest mute = 9;
|
251
|
+
*/
|
252
|
+
value: MuteTrackRequest;
|
253
|
+
case: "mute";
|
254
|
+
} | {
|
255
|
+
/**
|
256
|
+
* indicates changes to speaker status, including when they've gone to not speaking
|
257
|
+
*
|
258
|
+
* @generated from field: livekit.SpeakersChanged speakers_changed = 10;
|
259
|
+
*/
|
260
|
+
value: SpeakersChanged;
|
261
|
+
case: "speakersChanged";
|
262
|
+
} | {
|
263
|
+
/**
|
264
|
+
* sent when metadata of the room has changed
|
265
|
+
*
|
266
|
+
* @generated from field: livekit.RoomUpdate room_update = 11;
|
267
|
+
*/
|
268
|
+
value: RoomUpdate;
|
269
|
+
case: "roomUpdate";
|
270
|
+
} | {
|
271
|
+
/**
|
272
|
+
* when connection quality changed
|
273
|
+
*
|
274
|
+
* @generated from field: livekit.ConnectionQualityUpdate connection_quality = 12;
|
275
|
+
*/
|
276
|
+
value: ConnectionQualityUpdate;
|
277
|
+
case: "connectionQuality";
|
278
|
+
} | {
|
279
|
+
/**
|
280
|
+
* when streamed tracks state changed, used to notify when any of the streams were paused due to
|
281
|
+
* congestion
|
282
|
+
*
|
283
|
+
* @generated from field: livekit.StreamStateUpdate stream_state_update = 13;
|
284
|
+
*/
|
285
|
+
value: StreamStateUpdate;
|
286
|
+
case: "streamStateUpdate";
|
287
|
+
} | {
|
288
|
+
/**
|
289
|
+
* when max subscribe quality changed, used by dynamic broadcasting to disable unused layers
|
290
|
+
*
|
291
|
+
* @generated from field: livekit.SubscribedQualityUpdate subscribed_quality_update = 14;
|
292
|
+
*/
|
293
|
+
value: SubscribedQualityUpdate;
|
294
|
+
case: "subscribedQualityUpdate";
|
295
|
+
} | {
|
296
|
+
/**
|
297
|
+
* when subscription permission changed
|
298
|
+
*
|
299
|
+
* @generated from field: livekit.SubscriptionPermissionUpdate subscription_permission_update = 15;
|
300
|
+
*/
|
301
|
+
value: SubscriptionPermissionUpdate;
|
302
|
+
case: "subscriptionPermissionUpdate";
|
303
|
+
} | {
|
304
|
+
/**
|
305
|
+
* update the token the client was using, to prevent an active client from using an expired token
|
306
|
+
*
|
307
|
+
* @generated from field: string refresh_token = 16;
|
308
|
+
*/
|
309
|
+
value: string;
|
310
|
+
case: "refreshToken";
|
311
|
+
} | {
|
312
|
+
/**
|
313
|
+
* server initiated track unpublish
|
314
|
+
*
|
315
|
+
* @generated from field: livekit.TrackUnpublishedResponse track_unpublished = 17;
|
316
|
+
*/
|
317
|
+
value: TrackUnpublishedResponse;
|
318
|
+
case: "trackUnpublished";
|
319
|
+
} | {
|
320
|
+
/**
|
321
|
+
* respond to ping
|
322
|
+
*
|
323
|
+
* deprecated by pong_resp (message Pong)
|
324
|
+
*
|
325
|
+
* @generated from field: int64 pong = 18;
|
326
|
+
*/
|
327
|
+
value: bigint;
|
328
|
+
case: "pong";
|
329
|
+
} | {
|
330
|
+
/**
|
331
|
+
* sent when client reconnects
|
332
|
+
*
|
333
|
+
* @generated from field: livekit.ReconnectResponse reconnect = 19;
|
334
|
+
*/
|
335
|
+
value: ReconnectResponse;
|
336
|
+
case: "reconnect";
|
337
|
+
} | {
|
338
|
+
/**
|
339
|
+
* respond to Ping
|
340
|
+
*
|
341
|
+
* @generated from field: livekit.Pong pong_resp = 20;
|
342
|
+
*/
|
343
|
+
value: Pong;
|
344
|
+
case: "pongResp";
|
345
|
+
} | {
|
346
|
+
/**
|
347
|
+
* Subscription response, client should not expect any media from this subscription if it fails
|
348
|
+
*
|
349
|
+
* @generated from field: livekit.SubscriptionResponse subscription_response = 21;
|
350
|
+
*/
|
351
|
+
value: SubscriptionResponse;
|
352
|
+
case: "subscriptionResponse";
|
353
|
+
} | {
|
354
|
+
case: undefined;
|
355
|
+
value?: undefined;
|
356
|
+
};
|
357
|
+
constructor(data?: PartialMessage<SignalResponse>);
|
358
|
+
static readonly runtime: typeof proto3;
|
359
|
+
static readonly typeName = "livekit.SignalResponse";
|
360
|
+
static readonly fields: FieldList;
|
361
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SignalResponse;
|
362
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SignalResponse;
|
363
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SignalResponse;
|
364
|
+
static equals(a: SignalResponse | PlainMessage<SignalResponse> | undefined, b: SignalResponse | PlainMessage<SignalResponse> | undefined): boolean;
|
365
|
+
}
|
366
|
+
/**
|
367
|
+
* @generated from message livekit.SimulcastCodec
|
368
|
+
*/
|
369
|
+
export declare class SimulcastCodec extends Message<SimulcastCodec> {
|
370
|
+
/**
|
371
|
+
* @generated from field: string codec = 1;
|
372
|
+
*/
|
373
|
+
codec: string;
|
374
|
+
/**
|
375
|
+
* @generated from field: string cid = 2;
|
376
|
+
*/
|
377
|
+
cid: string;
|
378
|
+
/**
|
379
|
+
* @generated from field: bool enable_simulcast_layers = 3;
|
380
|
+
*/
|
381
|
+
enableSimulcastLayers: boolean;
|
382
|
+
constructor(data?: PartialMessage<SimulcastCodec>);
|
383
|
+
static readonly runtime: typeof proto3;
|
384
|
+
static readonly typeName = "livekit.SimulcastCodec";
|
385
|
+
static readonly fields: FieldList;
|
386
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SimulcastCodec;
|
387
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SimulcastCodec;
|
388
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SimulcastCodec;
|
389
|
+
static equals(a: SimulcastCodec | PlainMessage<SimulcastCodec> | undefined, b: SimulcastCodec | PlainMessage<SimulcastCodec> | undefined): boolean;
|
390
|
+
}
|
391
|
+
/**
|
392
|
+
* @generated from message livekit.AddTrackRequest
|
393
|
+
*/
|
394
|
+
export declare class AddTrackRequest extends Message<AddTrackRequest> {
|
395
|
+
/**
|
396
|
+
* client ID of track, to match it when RTC track is received
|
397
|
+
*
|
398
|
+
* @generated from field: string cid = 1;
|
399
|
+
*/
|
400
|
+
cid: string;
|
401
|
+
/**
|
402
|
+
* @generated from field: string name = 2;
|
403
|
+
*/
|
404
|
+
name: string;
|
405
|
+
/**
|
406
|
+
* @generated from field: livekit.TrackType type = 3;
|
407
|
+
*/
|
408
|
+
type: TrackType;
|
409
|
+
/**
|
410
|
+
* to be deprecated in favor of layers
|
411
|
+
*
|
412
|
+
* @generated from field: uint32 width = 4;
|
413
|
+
*/
|
414
|
+
width: number;
|
415
|
+
/**
|
416
|
+
* @generated from field: uint32 height = 5;
|
417
|
+
*/
|
418
|
+
height: number;
|
419
|
+
/**
|
420
|
+
* true to add track and initialize to muted
|
421
|
+
*
|
422
|
+
* @generated from field: bool muted = 6;
|
423
|
+
*/
|
424
|
+
muted: boolean;
|
425
|
+
/**
|
426
|
+
* true if DTX (Discontinuous Transmission) is disabled for audio
|
427
|
+
*
|
428
|
+
* @generated from field: bool disable_dtx = 7;
|
429
|
+
*/
|
430
|
+
disableDtx: boolean;
|
431
|
+
/**
|
432
|
+
* @generated from field: livekit.TrackSource source = 8;
|
433
|
+
*/
|
434
|
+
source: TrackSource;
|
435
|
+
/**
|
436
|
+
* @generated from field: repeated livekit.VideoLayer layers = 9;
|
437
|
+
*/
|
438
|
+
layers: VideoLayer[];
|
439
|
+
/**
|
440
|
+
* @generated from field: repeated livekit.SimulcastCodec simulcast_codecs = 10;
|
441
|
+
*/
|
442
|
+
simulcastCodecs: SimulcastCodec[];
|
443
|
+
/**
|
444
|
+
* server ID of track, publish new codec to exist track
|
445
|
+
*
|
446
|
+
* @generated from field: string sid = 11;
|
447
|
+
*/
|
448
|
+
sid: string;
|
449
|
+
/**
|
450
|
+
* @generated from field: bool stereo = 12;
|
451
|
+
*/
|
452
|
+
stereo: boolean;
|
453
|
+
/**
|
454
|
+
* true if RED (Redundant Encoding) is disabled for audio
|
455
|
+
*
|
456
|
+
* @generated from field: bool disable_red = 13;
|
457
|
+
*/
|
458
|
+
disableRed: boolean;
|
459
|
+
/**
|
460
|
+
* @generated from field: livekit.Encryption.Type encryption = 14;
|
461
|
+
*/
|
462
|
+
encryption: Encryption_Type;
|
463
|
+
/**
|
464
|
+
* which stream the track belongs to, used to group tracks together.
|
465
|
+
* if not specified, server will infer it from track source to bundle camera/microphone, screenshare/audio together
|
466
|
+
*
|
467
|
+
* @generated from field: string stream = 15;
|
468
|
+
*/
|
469
|
+
stream: string;
|
470
|
+
constructor(data?: PartialMessage<AddTrackRequest>);
|
471
|
+
static readonly runtime: typeof proto3;
|
472
|
+
static readonly typeName = "livekit.AddTrackRequest";
|
473
|
+
static readonly fields: FieldList;
|
474
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AddTrackRequest;
|
475
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AddTrackRequest;
|
476
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AddTrackRequest;
|
477
|
+
static equals(a: AddTrackRequest | PlainMessage<AddTrackRequest> | undefined, b: AddTrackRequest | PlainMessage<AddTrackRequest> | undefined): boolean;
|
478
|
+
}
|
479
|
+
/**
|
480
|
+
* @generated from message livekit.TrickleRequest
|
481
|
+
*/
|
482
|
+
export declare class TrickleRequest extends Message<TrickleRequest> {
|
483
|
+
/**
|
484
|
+
* @generated from field: string candidateInit = 1;
|
485
|
+
*/
|
486
|
+
candidateInit: string;
|
487
|
+
/**
|
488
|
+
* @generated from field: livekit.SignalTarget target = 2;
|
489
|
+
*/
|
490
|
+
target: SignalTarget;
|
491
|
+
constructor(data?: PartialMessage<TrickleRequest>);
|
492
|
+
static readonly runtime: typeof proto3;
|
493
|
+
static readonly typeName = "livekit.TrickleRequest";
|
494
|
+
static readonly fields: FieldList;
|
495
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TrickleRequest;
|
496
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TrickleRequest;
|
497
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TrickleRequest;
|
498
|
+
static equals(a: TrickleRequest | PlainMessage<TrickleRequest> | undefined, b: TrickleRequest | PlainMessage<TrickleRequest> | undefined): boolean;
|
499
|
+
}
|
500
|
+
/**
|
501
|
+
* @generated from message livekit.MuteTrackRequest
|
502
|
+
*/
|
503
|
+
export declare class MuteTrackRequest extends Message<MuteTrackRequest> {
|
504
|
+
/**
|
505
|
+
* @generated from field: string sid = 1;
|
506
|
+
*/
|
507
|
+
sid: string;
|
508
|
+
/**
|
509
|
+
* @generated from field: bool muted = 2;
|
510
|
+
*/
|
511
|
+
muted: boolean;
|
512
|
+
constructor(data?: PartialMessage<MuteTrackRequest>);
|
513
|
+
static readonly runtime: typeof proto3;
|
514
|
+
static readonly typeName = "livekit.MuteTrackRequest";
|
515
|
+
static readonly fields: FieldList;
|
516
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MuteTrackRequest;
|
517
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MuteTrackRequest;
|
518
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MuteTrackRequest;
|
519
|
+
static equals(a: MuteTrackRequest | PlainMessage<MuteTrackRequest> | undefined, b: MuteTrackRequest | PlainMessage<MuteTrackRequest> | undefined): boolean;
|
520
|
+
}
|
521
|
+
/**
|
522
|
+
* @generated from message livekit.JoinResponse
|
523
|
+
*/
|
524
|
+
export declare class JoinResponse extends Message<JoinResponse> {
|
525
|
+
/**
|
526
|
+
* @generated from field: livekit.Room room = 1;
|
527
|
+
*/
|
528
|
+
room?: Room;
|
529
|
+
/**
|
530
|
+
* @generated from field: livekit.ParticipantInfo participant = 2;
|
531
|
+
*/
|
532
|
+
participant?: ParticipantInfo;
|
533
|
+
/**
|
534
|
+
* @generated from field: repeated livekit.ParticipantInfo other_participants = 3;
|
535
|
+
*/
|
536
|
+
otherParticipants: ParticipantInfo[];
|
537
|
+
/**
|
538
|
+
* deprecated. use server_info.version instead.
|
539
|
+
*
|
540
|
+
* @generated from field: string server_version = 4;
|
541
|
+
*/
|
542
|
+
serverVersion: string;
|
543
|
+
/**
|
544
|
+
* @generated from field: repeated livekit.ICEServer ice_servers = 5;
|
545
|
+
*/
|
546
|
+
iceServers: ICEServer[];
|
547
|
+
/**
|
548
|
+
* use subscriber as the primary PeerConnection
|
549
|
+
*
|
550
|
+
* @generated from field: bool subscriber_primary = 6;
|
551
|
+
*/
|
552
|
+
subscriberPrimary: boolean;
|
553
|
+
/**
|
554
|
+
* when the current server isn't available, return alternate url to retry connection
|
555
|
+
* when this is set, the other fields will be largely empty
|
556
|
+
*
|
557
|
+
* @generated from field: string alternative_url = 7;
|
558
|
+
*/
|
559
|
+
alternativeUrl: string;
|
560
|
+
/**
|
561
|
+
* @generated from field: livekit.ClientConfiguration client_configuration = 8;
|
562
|
+
*/
|
563
|
+
clientConfiguration?: ClientConfiguration;
|
564
|
+
/**
|
565
|
+
* deprecated. use server_info.region instead.
|
566
|
+
*
|
567
|
+
* @generated from field: string server_region = 9;
|
568
|
+
*/
|
569
|
+
serverRegion: string;
|
570
|
+
/**
|
571
|
+
* @generated from field: int32 ping_timeout = 10;
|
572
|
+
*/
|
573
|
+
pingTimeout: number;
|
574
|
+
/**
|
575
|
+
* @generated from field: int32 ping_interval = 11;
|
576
|
+
*/
|
577
|
+
pingInterval: number;
|
578
|
+
/**
|
579
|
+
* @generated from field: livekit.ServerInfo server_info = 12;
|
580
|
+
*/
|
581
|
+
serverInfo?: ServerInfo;
|
582
|
+
/**
|
583
|
+
* Server-Injected-Frame byte trailer, used to identify unencrypted frames when e2ee is enabled
|
584
|
+
*
|
585
|
+
* @generated from field: bytes sif_trailer = 13;
|
586
|
+
*/
|
587
|
+
sifTrailer: Uint8Array;
|
588
|
+
constructor(data?: PartialMessage<JoinResponse>);
|
589
|
+
static readonly runtime: typeof proto3;
|
590
|
+
static readonly typeName = "livekit.JoinResponse";
|
591
|
+
static readonly fields: FieldList;
|
592
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): JoinResponse;
|
593
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): JoinResponse;
|
594
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): JoinResponse;
|
595
|
+
static equals(a: JoinResponse | PlainMessage<JoinResponse> | undefined, b: JoinResponse | PlainMessage<JoinResponse> | undefined): boolean;
|
596
|
+
}
|
597
|
+
/**
|
598
|
+
* @generated from message livekit.ReconnectResponse
|
599
|
+
*/
|
600
|
+
export declare class ReconnectResponse extends Message<ReconnectResponse> {
|
601
|
+
/**
|
602
|
+
* @generated from field: repeated livekit.ICEServer ice_servers = 1;
|
603
|
+
*/
|
604
|
+
iceServers: ICEServer[];
|
605
|
+
/**
|
606
|
+
* @generated from field: livekit.ClientConfiguration client_configuration = 2;
|
607
|
+
*/
|
608
|
+
clientConfiguration?: ClientConfiguration;
|
609
|
+
constructor(data?: PartialMessage<ReconnectResponse>);
|
610
|
+
static readonly runtime: typeof proto3;
|
611
|
+
static readonly typeName = "livekit.ReconnectResponse";
|
612
|
+
static readonly fields: FieldList;
|
613
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ReconnectResponse;
|
614
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ReconnectResponse;
|
615
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ReconnectResponse;
|
616
|
+
static equals(a: ReconnectResponse | PlainMessage<ReconnectResponse> | undefined, b: ReconnectResponse | PlainMessage<ReconnectResponse> | undefined): boolean;
|
617
|
+
}
|
618
|
+
/**
|
619
|
+
* @generated from message livekit.TrackPublishedResponse
|
620
|
+
*/
|
621
|
+
export declare class TrackPublishedResponse extends Message<TrackPublishedResponse> {
|
622
|
+
/**
|
623
|
+
* @generated from field: string cid = 1;
|
624
|
+
*/
|
625
|
+
cid: string;
|
626
|
+
/**
|
627
|
+
* @generated from field: livekit.TrackInfo track = 2;
|
628
|
+
*/
|
629
|
+
track?: TrackInfo;
|
630
|
+
constructor(data?: PartialMessage<TrackPublishedResponse>);
|
631
|
+
static readonly runtime: typeof proto3;
|
632
|
+
static readonly typeName = "livekit.TrackPublishedResponse";
|
633
|
+
static readonly fields: FieldList;
|
634
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TrackPublishedResponse;
|
635
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TrackPublishedResponse;
|
636
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TrackPublishedResponse;
|
637
|
+
static equals(a: TrackPublishedResponse | PlainMessage<TrackPublishedResponse> | undefined, b: TrackPublishedResponse | PlainMessage<TrackPublishedResponse> | undefined): boolean;
|
638
|
+
}
|
639
|
+
/**
|
640
|
+
* @generated from message livekit.TrackUnpublishedResponse
|
641
|
+
*/
|
642
|
+
export declare class TrackUnpublishedResponse extends Message<TrackUnpublishedResponse> {
|
643
|
+
/**
|
644
|
+
* @generated from field: string track_sid = 1;
|
645
|
+
*/
|
646
|
+
trackSid: string;
|
647
|
+
constructor(data?: PartialMessage<TrackUnpublishedResponse>);
|
648
|
+
static readonly runtime: typeof proto3;
|
649
|
+
static readonly typeName = "livekit.TrackUnpublishedResponse";
|
650
|
+
static readonly fields: FieldList;
|
651
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TrackUnpublishedResponse;
|
652
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TrackUnpublishedResponse;
|
653
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TrackUnpublishedResponse;
|
654
|
+
static equals(a: TrackUnpublishedResponse | PlainMessage<TrackUnpublishedResponse> | undefined, b: TrackUnpublishedResponse | PlainMessage<TrackUnpublishedResponse> | undefined): boolean;
|
655
|
+
}
|
656
|
+
/**
|
657
|
+
* @generated from message livekit.SessionDescription
|
658
|
+
*/
|
659
|
+
export declare class SessionDescription extends Message<SessionDescription> {
|
660
|
+
/**
|
661
|
+
* "answer" | "offer" | "pranswer" | "rollback"
|
662
|
+
*
|
663
|
+
* @generated from field: string type = 1;
|
664
|
+
*/
|
665
|
+
type: string;
|
666
|
+
/**
|
667
|
+
* @generated from field: string sdp = 2;
|
668
|
+
*/
|
669
|
+
sdp: string;
|
670
|
+
constructor(data?: PartialMessage<SessionDescription>);
|
671
|
+
static readonly runtime: typeof proto3;
|
672
|
+
static readonly typeName = "livekit.SessionDescription";
|
673
|
+
static readonly fields: FieldList;
|
674
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SessionDescription;
|
675
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SessionDescription;
|
676
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SessionDescription;
|
677
|
+
static equals(a: SessionDescription | PlainMessage<SessionDescription> | undefined, b: SessionDescription | PlainMessage<SessionDescription> | undefined): boolean;
|
678
|
+
}
|
679
|
+
/**
|
680
|
+
* @generated from message livekit.ParticipantUpdate
|
681
|
+
*/
|
682
|
+
export declare class ParticipantUpdate extends Message<ParticipantUpdate> {
|
683
|
+
/**
|
684
|
+
* @generated from field: repeated livekit.ParticipantInfo participants = 1;
|
685
|
+
*/
|
686
|
+
participants: ParticipantInfo[];
|
687
|
+
constructor(data?: PartialMessage<ParticipantUpdate>);
|
688
|
+
static readonly runtime: typeof proto3;
|
689
|
+
static readonly typeName = "livekit.ParticipantUpdate";
|
690
|
+
static readonly fields: FieldList;
|
691
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ParticipantUpdate;
|
692
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ParticipantUpdate;
|
693
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ParticipantUpdate;
|
694
|
+
static equals(a: ParticipantUpdate | PlainMessage<ParticipantUpdate> | undefined, b: ParticipantUpdate | PlainMessage<ParticipantUpdate> | undefined): boolean;
|
695
|
+
}
|
696
|
+
/**
|
697
|
+
* @generated from message livekit.UpdateSubscription
|
698
|
+
*/
|
699
|
+
export declare class UpdateSubscription extends Message<UpdateSubscription> {
|
700
|
+
/**
|
701
|
+
* @generated from field: repeated string track_sids = 1;
|
702
|
+
*/
|
703
|
+
trackSids: string[];
|
704
|
+
/**
|
705
|
+
* @generated from field: bool subscribe = 2;
|
706
|
+
*/
|
707
|
+
subscribe: boolean;
|
708
|
+
/**
|
709
|
+
* @generated from field: repeated livekit.ParticipantTracks participant_tracks = 3;
|
710
|
+
*/
|
711
|
+
participantTracks: ParticipantTracks[];
|
712
|
+
constructor(data?: PartialMessage<UpdateSubscription>);
|
713
|
+
static readonly runtime: typeof proto3;
|
714
|
+
static readonly typeName = "livekit.UpdateSubscription";
|
715
|
+
static readonly fields: FieldList;
|
716
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateSubscription;
|
717
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateSubscription;
|
718
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateSubscription;
|
719
|
+
static equals(a: UpdateSubscription | PlainMessage<UpdateSubscription> | undefined, b: UpdateSubscription | PlainMessage<UpdateSubscription> | undefined): boolean;
|
720
|
+
}
|
721
|
+
/**
|
722
|
+
* @generated from message livekit.UpdateTrackSettings
|
723
|
+
*/
|
724
|
+
export declare class UpdateTrackSettings extends Message<UpdateTrackSettings> {
|
725
|
+
/**
|
726
|
+
* @generated from field: repeated string track_sids = 1;
|
727
|
+
*/
|
728
|
+
trackSids: string[];
|
729
|
+
/**
|
730
|
+
* when true, the track is placed in a paused state, with no new data returned
|
731
|
+
*
|
732
|
+
* @generated from field: bool disabled = 3;
|
733
|
+
*/
|
734
|
+
disabled: boolean;
|
735
|
+
/**
|
736
|
+
* deprecated in favor of width & height
|
737
|
+
*
|
738
|
+
* @generated from field: livekit.VideoQuality quality = 4;
|
739
|
+
*/
|
740
|
+
quality: VideoQuality;
|
741
|
+
/**
|
742
|
+
* for video, width to receive
|
743
|
+
*
|
744
|
+
* @generated from field: uint32 width = 5;
|
745
|
+
*/
|
746
|
+
width: number;
|
747
|
+
/**
|
748
|
+
* for video, height to receive
|
749
|
+
*
|
750
|
+
* @generated from field: uint32 height = 6;
|
751
|
+
*/
|
752
|
+
height: number;
|
753
|
+
/**
|
754
|
+
* @generated from field: uint32 fps = 7;
|
755
|
+
*/
|
756
|
+
fps: number;
|
757
|
+
/**
|
758
|
+
* subscription priority. 1 being the highest (0 is unset)
|
759
|
+
* when unset, server sill assign priority based on the order of subscription
|
760
|
+
* server will use priority in the following ways:
|
761
|
+
* 1. when subscribed tracks exceed per-participant subscription limit, server will
|
762
|
+
* pause the lowest priority tracks
|
763
|
+
* 2. when the network is congested, server will assign available bandwidth to
|
764
|
+
* higher priority tracks first. lowest priority tracks can be paused
|
765
|
+
*
|
766
|
+
* @generated from field: uint32 priority = 8;
|
767
|
+
*/
|
768
|
+
priority: number;
|
769
|
+
constructor(data?: PartialMessage<UpdateTrackSettings>);
|
770
|
+
static readonly runtime: typeof proto3;
|
771
|
+
static readonly typeName = "livekit.UpdateTrackSettings";
|
772
|
+
static readonly fields: FieldList;
|
773
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateTrackSettings;
|
774
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateTrackSettings;
|
775
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateTrackSettings;
|
776
|
+
static equals(a: UpdateTrackSettings | PlainMessage<UpdateTrackSettings> | undefined, b: UpdateTrackSettings | PlainMessage<UpdateTrackSettings> | undefined): boolean;
|
777
|
+
}
|
778
|
+
/**
|
779
|
+
* @generated from message livekit.LeaveRequest
|
780
|
+
*/
|
781
|
+
export declare class LeaveRequest extends Message<LeaveRequest> {
|
782
|
+
/**
|
783
|
+
* sent when server initiates the disconnect due to server-restart
|
784
|
+
* indicates clients should attempt full-reconnect sequence
|
785
|
+
*
|
786
|
+
* @generated from field: bool can_reconnect = 1;
|
787
|
+
*/
|
788
|
+
canReconnect: boolean;
|
789
|
+
/**
|
790
|
+
* @generated from field: livekit.DisconnectReason reason = 2;
|
791
|
+
*/
|
792
|
+
reason: DisconnectReason;
|
793
|
+
constructor(data?: PartialMessage<LeaveRequest>);
|
794
|
+
static readonly runtime: typeof proto3;
|
795
|
+
static readonly typeName = "livekit.LeaveRequest";
|
796
|
+
static readonly fields: FieldList;
|
797
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): LeaveRequest;
|
798
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): LeaveRequest;
|
799
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): LeaveRequest;
|
800
|
+
static equals(a: LeaveRequest | PlainMessage<LeaveRequest> | undefined, b: LeaveRequest | PlainMessage<LeaveRequest> | undefined): boolean;
|
801
|
+
}
|
802
|
+
/**
|
803
|
+
* message to indicate published video track dimensions are changing
|
804
|
+
*
|
805
|
+
* @generated from message livekit.UpdateVideoLayers
|
806
|
+
*/
|
807
|
+
export declare class UpdateVideoLayers extends Message<UpdateVideoLayers> {
|
808
|
+
/**
|
809
|
+
* @generated from field: string track_sid = 1;
|
810
|
+
*/
|
811
|
+
trackSid: string;
|
812
|
+
/**
|
813
|
+
* @generated from field: repeated livekit.VideoLayer layers = 2;
|
814
|
+
*/
|
815
|
+
layers: VideoLayer[];
|
816
|
+
constructor(data?: PartialMessage<UpdateVideoLayers>);
|
817
|
+
static readonly runtime: typeof proto3;
|
818
|
+
static readonly typeName = "livekit.UpdateVideoLayers";
|
819
|
+
static readonly fields: FieldList;
|
820
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateVideoLayers;
|
821
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateVideoLayers;
|
822
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateVideoLayers;
|
823
|
+
static equals(a: UpdateVideoLayers | PlainMessage<UpdateVideoLayers> | undefined, b: UpdateVideoLayers | PlainMessage<UpdateVideoLayers> | undefined): boolean;
|
824
|
+
}
|
825
|
+
/**
|
826
|
+
* @generated from message livekit.UpdateParticipantMetadata
|
827
|
+
*/
|
828
|
+
export declare class UpdateParticipantMetadata extends Message<UpdateParticipantMetadata> {
|
829
|
+
/**
|
830
|
+
* @generated from field: string metadata = 1;
|
831
|
+
*/
|
832
|
+
metadata: string;
|
833
|
+
/**
|
834
|
+
* @generated from field: string name = 2;
|
835
|
+
*/
|
836
|
+
name: string;
|
837
|
+
constructor(data?: PartialMessage<UpdateParticipantMetadata>);
|
838
|
+
static readonly runtime: typeof proto3;
|
839
|
+
static readonly typeName = "livekit.UpdateParticipantMetadata";
|
840
|
+
static readonly fields: FieldList;
|
841
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UpdateParticipantMetadata;
|
842
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UpdateParticipantMetadata;
|
843
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UpdateParticipantMetadata;
|
844
|
+
static equals(a: UpdateParticipantMetadata | PlainMessage<UpdateParticipantMetadata> | undefined, b: UpdateParticipantMetadata | PlainMessage<UpdateParticipantMetadata> | undefined): boolean;
|
845
|
+
}
|
846
|
+
/**
|
847
|
+
* @generated from message livekit.ICEServer
|
848
|
+
*/
|
849
|
+
export declare class ICEServer extends Message<ICEServer> {
|
850
|
+
/**
|
851
|
+
* @generated from field: repeated string urls = 1;
|
852
|
+
*/
|
853
|
+
urls: string[];
|
854
|
+
/**
|
855
|
+
* @generated from field: string username = 2;
|
856
|
+
*/
|
857
|
+
username: string;
|
858
|
+
/**
|
859
|
+
* @generated from field: string credential = 3;
|
860
|
+
*/
|
861
|
+
credential: string;
|
862
|
+
constructor(data?: PartialMessage<ICEServer>);
|
863
|
+
static readonly runtime: typeof proto3;
|
864
|
+
static readonly typeName = "livekit.ICEServer";
|
865
|
+
static readonly fields: FieldList;
|
866
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ICEServer;
|
867
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ICEServer;
|
868
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ICEServer;
|
869
|
+
static equals(a: ICEServer | PlainMessage<ICEServer> | undefined, b: ICEServer | PlainMessage<ICEServer> | undefined): boolean;
|
870
|
+
}
|
871
|
+
/**
|
872
|
+
* @generated from message livekit.SpeakersChanged
|
873
|
+
*/
|
874
|
+
export declare class SpeakersChanged extends Message<SpeakersChanged> {
|
875
|
+
/**
|
876
|
+
* @generated from field: repeated livekit.SpeakerInfo speakers = 1;
|
877
|
+
*/
|
878
|
+
speakers: SpeakerInfo[];
|
879
|
+
constructor(data?: PartialMessage<SpeakersChanged>);
|
880
|
+
static readonly runtime: typeof proto3;
|
881
|
+
static readonly typeName = "livekit.SpeakersChanged";
|
882
|
+
static readonly fields: FieldList;
|
883
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SpeakersChanged;
|
884
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SpeakersChanged;
|
885
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SpeakersChanged;
|
886
|
+
static equals(a: SpeakersChanged | PlainMessage<SpeakersChanged> | undefined, b: SpeakersChanged | PlainMessage<SpeakersChanged> | undefined): boolean;
|
887
|
+
}
|
888
|
+
/**
|
889
|
+
* @generated from message livekit.RoomUpdate
|
890
|
+
*/
|
891
|
+
export declare class RoomUpdate extends Message<RoomUpdate> {
|
892
|
+
/**
|
893
|
+
* @generated from field: livekit.Room room = 1;
|
894
|
+
*/
|
895
|
+
room?: Room;
|
896
|
+
constructor(data?: PartialMessage<RoomUpdate>);
|
897
|
+
static readonly runtime: typeof proto3;
|
898
|
+
static readonly typeName = "livekit.RoomUpdate";
|
899
|
+
static readonly fields: FieldList;
|
900
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RoomUpdate;
|
901
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RoomUpdate;
|
902
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RoomUpdate;
|
903
|
+
static equals(a: RoomUpdate | PlainMessage<RoomUpdate> | undefined, b: RoomUpdate | PlainMessage<RoomUpdate> | undefined): boolean;
|
904
|
+
}
|
905
|
+
/**
|
906
|
+
* @generated from message livekit.ConnectionQualityInfo
|
907
|
+
*/
|
908
|
+
export declare class ConnectionQualityInfo extends Message<ConnectionQualityInfo> {
|
909
|
+
/**
|
910
|
+
* @generated from field: string participant_sid = 1;
|
911
|
+
*/
|
912
|
+
participantSid: string;
|
913
|
+
/**
|
914
|
+
* @generated from field: livekit.ConnectionQuality quality = 2;
|
915
|
+
*/
|
916
|
+
quality: ConnectionQuality;
|
917
|
+
/**
|
918
|
+
* @generated from field: float score = 3;
|
919
|
+
*/
|
920
|
+
score: number;
|
921
|
+
constructor(data?: PartialMessage<ConnectionQualityInfo>);
|
922
|
+
static readonly runtime: typeof proto3;
|
923
|
+
static readonly typeName = "livekit.ConnectionQualityInfo";
|
924
|
+
static readonly fields: FieldList;
|
925
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ConnectionQualityInfo;
|
926
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ConnectionQualityInfo;
|
927
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ConnectionQualityInfo;
|
928
|
+
static equals(a: ConnectionQualityInfo | PlainMessage<ConnectionQualityInfo> | undefined, b: ConnectionQualityInfo | PlainMessage<ConnectionQualityInfo> | undefined): boolean;
|
929
|
+
}
|
930
|
+
/**
|
931
|
+
* @generated from message livekit.ConnectionQualityUpdate
|
932
|
+
*/
|
933
|
+
export declare class ConnectionQualityUpdate extends Message<ConnectionQualityUpdate> {
|
934
|
+
/**
|
935
|
+
* @generated from field: repeated livekit.ConnectionQualityInfo updates = 1;
|
936
|
+
*/
|
937
|
+
updates: ConnectionQualityInfo[];
|
938
|
+
constructor(data?: PartialMessage<ConnectionQualityUpdate>);
|
939
|
+
static readonly runtime: typeof proto3;
|
940
|
+
static readonly typeName = "livekit.ConnectionQualityUpdate";
|
941
|
+
static readonly fields: FieldList;
|
942
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ConnectionQualityUpdate;
|
943
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ConnectionQualityUpdate;
|
944
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ConnectionQualityUpdate;
|
945
|
+
static equals(a: ConnectionQualityUpdate | PlainMessage<ConnectionQualityUpdate> | undefined, b: ConnectionQualityUpdate | PlainMessage<ConnectionQualityUpdate> | undefined): boolean;
|
946
|
+
}
|
947
|
+
/**
|
948
|
+
* @generated from message livekit.StreamStateInfo
|
949
|
+
*/
|
950
|
+
export declare class StreamStateInfo extends Message<StreamStateInfo> {
|
951
|
+
/**
|
952
|
+
* @generated from field: string participant_sid = 1;
|
953
|
+
*/
|
954
|
+
participantSid: string;
|
955
|
+
/**
|
956
|
+
* @generated from field: string track_sid = 2;
|
957
|
+
*/
|
958
|
+
trackSid: string;
|
959
|
+
/**
|
960
|
+
* @generated from field: livekit.StreamState state = 3;
|
961
|
+
*/
|
962
|
+
state: StreamState;
|
963
|
+
constructor(data?: PartialMessage<StreamStateInfo>);
|
964
|
+
static readonly runtime: typeof proto3;
|
965
|
+
static readonly typeName = "livekit.StreamStateInfo";
|
966
|
+
static readonly fields: FieldList;
|
967
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StreamStateInfo;
|
968
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StreamStateInfo;
|
969
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StreamStateInfo;
|
970
|
+
static equals(a: StreamStateInfo | PlainMessage<StreamStateInfo> | undefined, b: StreamStateInfo | PlainMessage<StreamStateInfo> | undefined): boolean;
|
971
|
+
}
|
972
|
+
/**
|
973
|
+
* @generated from message livekit.StreamStateUpdate
|
974
|
+
*/
|
975
|
+
export declare class StreamStateUpdate extends Message<StreamStateUpdate> {
|
976
|
+
/**
|
977
|
+
* @generated from field: repeated livekit.StreamStateInfo stream_states = 1;
|
978
|
+
*/
|
979
|
+
streamStates: StreamStateInfo[];
|
980
|
+
constructor(data?: PartialMessage<StreamStateUpdate>);
|
981
|
+
static readonly runtime: typeof proto3;
|
982
|
+
static readonly typeName = "livekit.StreamStateUpdate";
|
983
|
+
static readonly fields: FieldList;
|
984
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): StreamStateUpdate;
|
985
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): StreamStateUpdate;
|
986
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): StreamStateUpdate;
|
987
|
+
static equals(a: StreamStateUpdate | PlainMessage<StreamStateUpdate> | undefined, b: StreamStateUpdate | PlainMessage<StreamStateUpdate> | undefined): boolean;
|
988
|
+
}
|
989
|
+
/**
|
990
|
+
* @generated from message livekit.SubscribedQuality
|
991
|
+
*/
|
992
|
+
export declare class SubscribedQuality extends Message<SubscribedQuality> {
|
993
|
+
/**
|
994
|
+
* @generated from field: livekit.VideoQuality quality = 1;
|
995
|
+
*/
|
996
|
+
quality: VideoQuality;
|
997
|
+
/**
|
998
|
+
* @generated from field: bool enabled = 2;
|
999
|
+
*/
|
1000
|
+
enabled: boolean;
|
1001
|
+
constructor(data?: PartialMessage<SubscribedQuality>);
|
1002
|
+
static readonly runtime: typeof proto3;
|
1003
|
+
static readonly typeName = "livekit.SubscribedQuality";
|
1004
|
+
static readonly fields: FieldList;
|
1005
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SubscribedQuality;
|
1006
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SubscribedQuality;
|
1007
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SubscribedQuality;
|
1008
|
+
static equals(a: SubscribedQuality | PlainMessage<SubscribedQuality> | undefined, b: SubscribedQuality | PlainMessage<SubscribedQuality> | undefined): boolean;
|
1009
|
+
}
|
1010
|
+
/**
|
1011
|
+
* @generated from message livekit.SubscribedCodec
|
1012
|
+
*/
|
1013
|
+
export declare class SubscribedCodec extends Message<SubscribedCodec> {
|
1014
|
+
/**
|
1015
|
+
* @generated from field: string codec = 1;
|
1016
|
+
*/
|
1017
|
+
codec: string;
|
1018
|
+
/**
|
1019
|
+
* @generated from field: repeated livekit.SubscribedQuality qualities = 2;
|
1020
|
+
*/
|
1021
|
+
qualities: SubscribedQuality[];
|
1022
|
+
constructor(data?: PartialMessage<SubscribedCodec>);
|
1023
|
+
static readonly runtime: typeof proto3;
|
1024
|
+
static readonly typeName = "livekit.SubscribedCodec";
|
1025
|
+
static readonly fields: FieldList;
|
1026
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SubscribedCodec;
|
1027
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SubscribedCodec;
|
1028
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SubscribedCodec;
|
1029
|
+
static equals(a: SubscribedCodec | PlainMessage<SubscribedCodec> | undefined, b: SubscribedCodec | PlainMessage<SubscribedCodec> | undefined): boolean;
|
1030
|
+
}
|
1031
|
+
/**
|
1032
|
+
* @generated from message livekit.SubscribedQualityUpdate
|
1033
|
+
*/
|
1034
|
+
export declare class SubscribedQualityUpdate extends Message<SubscribedQualityUpdate> {
|
1035
|
+
/**
|
1036
|
+
* @generated from field: string track_sid = 1;
|
1037
|
+
*/
|
1038
|
+
trackSid: string;
|
1039
|
+
/**
|
1040
|
+
* @generated from field: repeated livekit.SubscribedQuality subscribed_qualities = 2;
|
1041
|
+
*/
|
1042
|
+
subscribedQualities: SubscribedQuality[];
|
1043
|
+
/**
|
1044
|
+
* @generated from field: repeated livekit.SubscribedCodec subscribed_codecs = 3;
|
1045
|
+
*/
|
1046
|
+
subscribedCodecs: SubscribedCodec[];
|
1047
|
+
constructor(data?: PartialMessage<SubscribedQualityUpdate>);
|
1048
|
+
static readonly runtime: typeof proto3;
|
1049
|
+
static readonly typeName = "livekit.SubscribedQualityUpdate";
|
1050
|
+
static readonly fields: FieldList;
|
1051
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SubscribedQualityUpdate;
|
1052
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SubscribedQualityUpdate;
|
1053
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SubscribedQualityUpdate;
|
1054
|
+
static equals(a: SubscribedQualityUpdate | PlainMessage<SubscribedQualityUpdate> | undefined, b: SubscribedQualityUpdate | PlainMessage<SubscribedQualityUpdate> | undefined): boolean;
|
1055
|
+
}
|
1056
|
+
/**
|
1057
|
+
* @generated from message livekit.TrackPermission
|
1058
|
+
*/
|
1059
|
+
export declare class TrackPermission extends Message<TrackPermission> {
|
1060
|
+
/**
|
1061
|
+
* permission could be granted either by participant sid or identity
|
1062
|
+
*
|
1063
|
+
* @generated from field: string participant_sid = 1;
|
1064
|
+
*/
|
1065
|
+
participantSid: string;
|
1066
|
+
/**
|
1067
|
+
* @generated from field: bool all_tracks = 2;
|
1068
|
+
*/
|
1069
|
+
allTracks: boolean;
|
1070
|
+
/**
|
1071
|
+
* @generated from field: repeated string track_sids = 3;
|
1072
|
+
*/
|
1073
|
+
trackSids: string[];
|
1074
|
+
/**
|
1075
|
+
* @generated from field: string participant_identity = 4;
|
1076
|
+
*/
|
1077
|
+
participantIdentity: string;
|
1078
|
+
constructor(data?: PartialMessage<TrackPermission>);
|
1079
|
+
static readonly runtime: typeof proto3;
|
1080
|
+
static readonly typeName = "livekit.TrackPermission";
|
1081
|
+
static readonly fields: FieldList;
|
1082
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TrackPermission;
|
1083
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TrackPermission;
|
1084
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TrackPermission;
|
1085
|
+
static equals(a: TrackPermission | PlainMessage<TrackPermission> | undefined, b: TrackPermission | PlainMessage<TrackPermission> | undefined): boolean;
|
1086
|
+
}
|
1087
|
+
/**
|
1088
|
+
* @generated from message livekit.SubscriptionPermission
|
1089
|
+
*/
|
1090
|
+
export declare class SubscriptionPermission extends Message<SubscriptionPermission> {
|
1091
|
+
/**
|
1092
|
+
* @generated from field: bool all_participants = 1;
|
1093
|
+
*/
|
1094
|
+
allParticipants: boolean;
|
1095
|
+
/**
|
1096
|
+
* @generated from field: repeated livekit.TrackPermission track_permissions = 2;
|
1097
|
+
*/
|
1098
|
+
trackPermissions: TrackPermission[];
|
1099
|
+
constructor(data?: PartialMessage<SubscriptionPermission>);
|
1100
|
+
static readonly runtime: typeof proto3;
|
1101
|
+
static readonly typeName = "livekit.SubscriptionPermission";
|
1102
|
+
static readonly fields: FieldList;
|
1103
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SubscriptionPermission;
|
1104
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SubscriptionPermission;
|
1105
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SubscriptionPermission;
|
1106
|
+
static equals(a: SubscriptionPermission | PlainMessage<SubscriptionPermission> | undefined, b: SubscriptionPermission | PlainMessage<SubscriptionPermission> | undefined): boolean;
|
1107
|
+
}
|
1108
|
+
/**
|
1109
|
+
* @generated from message livekit.SubscriptionPermissionUpdate
|
1110
|
+
*/
|
1111
|
+
export declare class SubscriptionPermissionUpdate extends Message<SubscriptionPermissionUpdate> {
|
1112
|
+
/**
|
1113
|
+
* @generated from field: string participant_sid = 1;
|
1114
|
+
*/
|
1115
|
+
participantSid: string;
|
1116
|
+
/**
|
1117
|
+
* @generated from field: string track_sid = 2;
|
1118
|
+
*/
|
1119
|
+
trackSid: string;
|
1120
|
+
/**
|
1121
|
+
* @generated from field: bool allowed = 3;
|
1122
|
+
*/
|
1123
|
+
allowed: boolean;
|
1124
|
+
constructor(data?: PartialMessage<SubscriptionPermissionUpdate>);
|
1125
|
+
static readonly runtime: typeof proto3;
|
1126
|
+
static readonly typeName = "livekit.SubscriptionPermissionUpdate";
|
1127
|
+
static readonly fields: FieldList;
|
1128
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SubscriptionPermissionUpdate;
|
1129
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SubscriptionPermissionUpdate;
|
1130
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SubscriptionPermissionUpdate;
|
1131
|
+
static equals(a: SubscriptionPermissionUpdate | PlainMessage<SubscriptionPermissionUpdate> | undefined, b: SubscriptionPermissionUpdate | PlainMessage<SubscriptionPermissionUpdate> | undefined): boolean;
|
1132
|
+
}
|
1133
|
+
/**
|
1134
|
+
* @generated from message livekit.SyncState
|
1135
|
+
*/
|
1136
|
+
export declare class SyncState extends Message<SyncState> {
|
1137
|
+
/**
|
1138
|
+
* last subscribe answer before reconnecting
|
1139
|
+
*
|
1140
|
+
* @generated from field: livekit.SessionDescription answer = 1;
|
1141
|
+
*/
|
1142
|
+
answer?: SessionDescription;
|
1143
|
+
/**
|
1144
|
+
* @generated from field: livekit.UpdateSubscription subscription = 2;
|
1145
|
+
*/
|
1146
|
+
subscription?: UpdateSubscription;
|
1147
|
+
/**
|
1148
|
+
* @generated from field: repeated livekit.TrackPublishedResponse publish_tracks = 3;
|
1149
|
+
*/
|
1150
|
+
publishTracks: TrackPublishedResponse[];
|
1151
|
+
/**
|
1152
|
+
* @generated from field: repeated livekit.DataChannelInfo data_channels = 4;
|
1153
|
+
*/
|
1154
|
+
dataChannels: DataChannelInfo[];
|
1155
|
+
/**
|
1156
|
+
* last received server side offer before reconnecting
|
1157
|
+
*
|
1158
|
+
* @generated from field: livekit.SessionDescription offer = 5;
|
1159
|
+
*/
|
1160
|
+
offer?: SessionDescription;
|
1161
|
+
constructor(data?: PartialMessage<SyncState>);
|
1162
|
+
static readonly runtime: typeof proto3;
|
1163
|
+
static readonly typeName = "livekit.SyncState";
|
1164
|
+
static readonly fields: FieldList;
|
1165
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SyncState;
|
1166
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SyncState;
|
1167
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SyncState;
|
1168
|
+
static equals(a: SyncState | PlainMessage<SyncState> | undefined, b: SyncState | PlainMessage<SyncState> | undefined): boolean;
|
1169
|
+
}
|
1170
|
+
/**
|
1171
|
+
* @generated from message livekit.DataChannelInfo
|
1172
|
+
*/
|
1173
|
+
export declare class DataChannelInfo extends Message<DataChannelInfo> {
|
1174
|
+
/**
|
1175
|
+
* @generated from field: string label = 1;
|
1176
|
+
*/
|
1177
|
+
label: string;
|
1178
|
+
/**
|
1179
|
+
* @generated from field: uint32 id = 2;
|
1180
|
+
*/
|
1181
|
+
id: number;
|
1182
|
+
/**
|
1183
|
+
* @generated from field: livekit.SignalTarget target = 3;
|
1184
|
+
*/
|
1185
|
+
target: SignalTarget;
|
1186
|
+
constructor(data?: PartialMessage<DataChannelInfo>);
|
1187
|
+
static readonly runtime: typeof proto3;
|
1188
|
+
static readonly typeName = "livekit.DataChannelInfo";
|
1189
|
+
static readonly fields: FieldList;
|
1190
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DataChannelInfo;
|
1191
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DataChannelInfo;
|
1192
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DataChannelInfo;
|
1193
|
+
static equals(a: DataChannelInfo | PlainMessage<DataChannelInfo> | undefined, b: DataChannelInfo | PlainMessage<DataChannelInfo> | undefined): boolean;
|
1194
|
+
}
|
1195
|
+
/**
|
1196
|
+
* @generated from message livekit.SimulateScenario
|
1197
|
+
*/
|
1198
|
+
export declare class SimulateScenario extends Message<SimulateScenario> {
|
1199
|
+
/**
|
1200
|
+
* @generated from oneof livekit.SimulateScenario.scenario
|
1201
|
+
*/
|
1202
|
+
scenario: {
|
1203
|
+
/**
|
1204
|
+
* simulate N seconds of speaker activity
|
1205
|
+
*
|
1206
|
+
* @generated from field: int32 speaker_update = 1;
|
1207
|
+
*/
|
1208
|
+
value: number;
|
1209
|
+
case: "speakerUpdate";
|
1210
|
+
} | {
|
1211
|
+
/**
|
1212
|
+
* simulate local node failure
|
1213
|
+
*
|
1214
|
+
* @generated from field: bool node_failure = 2;
|
1215
|
+
*/
|
1216
|
+
value: boolean;
|
1217
|
+
case: "nodeFailure";
|
1218
|
+
} | {
|
1219
|
+
/**
|
1220
|
+
* simulate migration
|
1221
|
+
*
|
1222
|
+
* @generated from field: bool migration = 3;
|
1223
|
+
*/
|
1224
|
+
value: boolean;
|
1225
|
+
case: "migration";
|
1226
|
+
} | {
|
1227
|
+
/**
|
1228
|
+
* server to send leave
|
1229
|
+
*
|
1230
|
+
* @generated from field: bool server_leave = 4;
|
1231
|
+
*/
|
1232
|
+
value: boolean;
|
1233
|
+
case: "serverLeave";
|
1234
|
+
} | {
|
1235
|
+
/**
|
1236
|
+
* switch candidate protocol to tcp
|
1237
|
+
*
|
1238
|
+
* @generated from field: livekit.CandidateProtocol switch_candidate_protocol = 5;
|
1239
|
+
*/
|
1240
|
+
value: CandidateProtocol;
|
1241
|
+
case: "switchCandidateProtocol";
|
1242
|
+
} | {
|
1243
|
+
/**
|
1244
|
+
* maximum bandwidth for subscribers, in bps
|
1245
|
+
* when zero, clears artificial bandwidth limit
|
1246
|
+
*
|
1247
|
+
* @generated from field: int64 subscriber_bandwidth = 6;
|
1248
|
+
*/
|
1249
|
+
value: bigint;
|
1250
|
+
case: "subscriberBandwidth";
|
1251
|
+
} | {
|
1252
|
+
case: undefined;
|
1253
|
+
value?: undefined;
|
1254
|
+
};
|
1255
|
+
constructor(data?: PartialMessage<SimulateScenario>);
|
1256
|
+
static readonly runtime: typeof proto3;
|
1257
|
+
static readonly typeName = "livekit.SimulateScenario";
|
1258
|
+
static readonly fields: FieldList;
|
1259
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SimulateScenario;
|
1260
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SimulateScenario;
|
1261
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SimulateScenario;
|
1262
|
+
static equals(a: SimulateScenario | PlainMessage<SimulateScenario> | undefined, b: SimulateScenario | PlainMessage<SimulateScenario> | undefined): boolean;
|
1263
|
+
}
|
1264
|
+
/**
|
1265
|
+
* @generated from message livekit.Ping
|
1266
|
+
*/
|
1267
|
+
export declare class Ping extends Message<Ping> {
|
1268
|
+
/**
|
1269
|
+
* @generated from field: int64 timestamp = 1;
|
1270
|
+
*/
|
1271
|
+
timestamp: bigint;
|
1272
|
+
/**
|
1273
|
+
* rtt in milliseconds calculated by client
|
1274
|
+
*
|
1275
|
+
* @generated from field: int64 rtt = 2;
|
1276
|
+
*/
|
1277
|
+
rtt: bigint;
|
1278
|
+
constructor(data?: PartialMessage<Ping>);
|
1279
|
+
static readonly runtime: typeof proto3;
|
1280
|
+
static readonly typeName = "livekit.Ping";
|
1281
|
+
static readonly fields: FieldList;
|
1282
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Ping;
|
1283
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Ping;
|
1284
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Ping;
|
1285
|
+
static equals(a: Ping | PlainMessage<Ping> | undefined, b: Ping | PlainMessage<Ping> | undefined): boolean;
|
1286
|
+
}
|
1287
|
+
/**
|
1288
|
+
* @generated from message livekit.Pong
|
1289
|
+
*/
|
1290
|
+
export declare class Pong extends Message<Pong> {
|
1291
|
+
/**
|
1292
|
+
* timestamp field of last received ping request
|
1293
|
+
*
|
1294
|
+
* @generated from field: int64 last_ping_timestamp = 1;
|
1295
|
+
*/
|
1296
|
+
lastPingTimestamp: bigint;
|
1297
|
+
/**
|
1298
|
+
* @generated from field: int64 timestamp = 2;
|
1299
|
+
*/
|
1300
|
+
timestamp: bigint;
|
1301
|
+
constructor(data?: PartialMessage<Pong>);
|
1302
|
+
static readonly runtime: typeof proto3;
|
1303
|
+
static readonly typeName = "livekit.Pong";
|
1304
|
+
static readonly fields: FieldList;
|
1305
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Pong;
|
1306
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Pong;
|
1307
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Pong;
|
1308
|
+
static equals(a: Pong | PlainMessage<Pong> | undefined, b: Pong | PlainMessage<Pong> | undefined): boolean;
|
1309
|
+
}
|
1310
|
+
/**
|
1311
|
+
* @generated from message livekit.RegionSettings
|
1312
|
+
*/
|
1313
|
+
export declare class RegionSettings extends Message<RegionSettings> {
|
1314
|
+
/**
|
1315
|
+
* @generated from field: repeated livekit.RegionInfo regions = 1;
|
1316
|
+
*/
|
1317
|
+
regions: RegionInfo[];
|
1318
|
+
constructor(data?: PartialMessage<RegionSettings>);
|
1319
|
+
static readonly runtime: typeof proto3;
|
1320
|
+
static readonly typeName = "livekit.RegionSettings";
|
1321
|
+
static readonly fields: FieldList;
|
1322
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RegionSettings;
|
1323
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RegionSettings;
|
1324
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RegionSettings;
|
1325
|
+
static equals(a: RegionSettings | PlainMessage<RegionSettings> | undefined, b: RegionSettings | PlainMessage<RegionSettings> | undefined): boolean;
|
1326
|
+
}
|
1327
|
+
/**
|
1328
|
+
* @generated from message livekit.RegionInfo
|
1329
|
+
*/
|
1330
|
+
export declare class RegionInfo extends Message<RegionInfo> {
|
1331
|
+
/**
|
1332
|
+
* @generated from field: string region = 1;
|
1333
|
+
*/
|
1334
|
+
region: string;
|
1335
|
+
/**
|
1336
|
+
* @generated from field: string url = 2;
|
1337
|
+
*/
|
1338
|
+
url: string;
|
1339
|
+
/**
|
1340
|
+
* @generated from field: int64 distance = 3;
|
1341
|
+
*/
|
1342
|
+
distance: bigint;
|
1343
|
+
constructor(data?: PartialMessage<RegionInfo>);
|
1344
|
+
static readonly runtime: typeof proto3;
|
1345
|
+
static readonly typeName = "livekit.RegionInfo";
|
1346
|
+
static readonly fields: FieldList;
|
1347
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RegionInfo;
|
1348
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RegionInfo;
|
1349
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RegionInfo;
|
1350
|
+
static equals(a: RegionInfo | PlainMessage<RegionInfo> | undefined, b: RegionInfo | PlainMessage<RegionInfo> | undefined): boolean;
|
1351
|
+
}
|
1352
|
+
/**
|
1353
|
+
* @generated from message livekit.SubscriptionResponse
|
1354
|
+
*/
|
1355
|
+
export declare class SubscriptionResponse extends Message<SubscriptionResponse> {
|
1356
|
+
/**
|
1357
|
+
* @generated from field: string track_sid = 1;
|
1358
|
+
*/
|
1359
|
+
trackSid: string;
|
1360
|
+
/**
|
1361
|
+
* @generated from field: livekit.SubscriptionError err = 2;
|
1362
|
+
*/
|
1363
|
+
err: SubscriptionError;
|
1364
|
+
constructor(data?: PartialMessage<SubscriptionResponse>);
|
1365
|
+
static readonly runtime: typeof proto3;
|
1366
|
+
static readonly typeName = "livekit.SubscriptionResponse";
|
1367
|
+
static readonly fields: FieldList;
|
1368
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SubscriptionResponse;
|
1369
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SubscriptionResponse;
|
1370
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SubscriptionResponse;
|
1371
|
+
static equals(a: SubscriptionResponse | PlainMessage<SubscriptionResponse> | undefined, b: SubscriptionResponse | PlainMessage<SubscriptionResponse> | undefined): boolean;
|
1372
|
+
}
|
1373
|
+
//# sourceMappingURL=livekit_rtc_pb.d.ts.map
|