livekit-client 1.4.4 → 1.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (136) hide show
  1. package/dist/livekit-client.esm.mjs +2478 -5368
  2. package/dist/livekit-client.esm.mjs.map +1 -1
  3. package/dist/livekit-client.umd.js +1 -1
  4. package/dist/livekit-client.umd.js.map +1 -1
  5. package/dist/src/api/SignalClient.d.ts +3 -2
  6. package/dist/src/api/SignalClient.d.ts.map +1 -1
  7. package/dist/src/connectionHelper/ConnectionCheck.d.ts +25 -0
  8. package/dist/src/connectionHelper/ConnectionCheck.d.ts.map +1 -0
  9. package/dist/src/connectionHelper/checks/Checker.d.ts +59 -0
  10. package/dist/src/connectionHelper/checks/Checker.d.ts.map +1 -0
  11. package/dist/src/connectionHelper/checks/publishAudio.d.ts +6 -0
  12. package/dist/src/connectionHelper/checks/publishAudio.d.ts.map +1 -0
  13. package/dist/src/connectionHelper/checks/publishVideo.d.ts +6 -0
  14. package/dist/src/connectionHelper/checks/publishVideo.d.ts.map +1 -0
  15. package/dist/src/connectionHelper/checks/reconnect.d.ts +6 -0
  16. package/dist/src/connectionHelper/checks/reconnect.d.ts.map +1 -0
  17. package/dist/src/connectionHelper/checks/turn.d.ts +6 -0
  18. package/dist/src/connectionHelper/checks/turn.d.ts.map +1 -0
  19. package/dist/src/connectionHelper/checks/webrtc.d.ts +6 -0
  20. package/dist/src/connectionHelper/checks/webrtc.d.ts.map +1 -0
  21. package/dist/src/connectionHelper/checks/websocket.d.ts +6 -0
  22. package/dist/src/connectionHelper/checks/websocket.d.ts.map +1 -0
  23. package/dist/src/index.d.ts +6 -3
  24. package/dist/src/index.d.ts.map +1 -1
  25. package/dist/src/logger.d.ts +3 -3
  26. package/dist/src/logger.d.ts.map +1 -1
  27. package/dist/src/options.d.ts +4 -1
  28. package/dist/src/options.d.ts.map +1 -1
  29. package/dist/src/proto/google/protobuf/timestamp.d.ts +4 -4
  30. package/dist/src/proto/google/protobuf/timestamp.d.ts.map +1 -1
  31. package/dist/src/proto/livekit_models.d.ts +4 -4
  32. package/dist/src/proto/livekit_models.d.ts.map +1 -1
  33. package/dist/src/proto/livekit_rtc.d.ts +12 -4
  34. package/dist/src/proto/livekit_rtc.d.ts.map +1 -1
  35. package/dist/src/room/DeviceManager.d.ts.map +1 -1
  36. package/dist/src/room/RTCEngine.d.ts +4 -3
  37. package/dist/src/room/RTCEngine.d.ts.map +1 -1
  38. package/dist/src/room/Room.d.ts +27 -4
  39. package/dist/src/room/Room.d.ts.map +1 -1
  40. package/dist/src/room/events.d.ts +9 -1
  41. package/dist/src/room/events.d.ts.map +1 -1
  42. package/dist/src/room/participant/LocalParticipant.d.ts.map +1 -1
  43. package/dist/src/room/participant/Participant.d.ts +1 -1
  44. package/dist/src/room/participant/Participant.d.ts.map +1 -1
  45. package/dist/src/room/track/LocalTrack.d.ts.map +1 -1
  46. package/dist/src/room/track/RemoteTrackPublication.d.ts +2 -0
  47. package/dist/src/room/track/RemoteTrackPublication.d.ts.map +1 -1
  48. package/dist/src/room/track/RemoteVideoTrack.d.ts.map +1 -1
  49. package/dist/src/room/track/Track.d.ts +2 -1
  50. package/dist/src/room/track/Track.d.ts.map +1 -1
  51. package/dist/src/room/track/TrackPublication.d.ts +1 -1
  52. package/dist/src/room/track/TrackPublication.d.ts.map +1 -1
  53. package/dist/src/room/track/options.d.ts +3 -3
  54. package/dist/src/room/track/options.d.ts.map +1 -1
  55. package/dist/src/room/track/types.d.ts +3 -3
  56. package/dist/src/room/track/types.d.ts.map +1 -1
  57. package/dist/src/room/types.d.ts +13 -0
  58. package/dist/src/room/types.d.ts.map +1 -0
  59. package/dist/src/room/utils.d.ts +44 -0
  60. package/dist/src/room/utils.d.ts.map +1 -1
  61. package/dist/ts4.2/src/api/SignalClient.d.ts +86 -0
  62. package/dist/ts4.2/src/connectionHelper/ConnectionCheck.d.ts +25 -0
  63. package/dist/ts4.2/src/connectionHelper/checks/Checker.d.ts +59 -0
  64. package/dist/ts4.2/src/connectionHelper/checks/publishAudio.d.ts +6 -0
  65. package/dist/ts4.2/src/connectionHelper/checks/publishVideo.d.ts +6 -0
  66. package/dist/ts4.2/src/connectionHelper/checks/reconnect.d.ts +6 -0
  67. package/dist/ts4.2/src/connectionHelper/checks/turn.d.ts +6 -0
  68. package/dist/ts4.2/src/connectionHelper/checks/webrtc.d.ts +6 -0
  69. package/dist/ts4.2/src/connectionHelper/checks/websocket.d.ts +6 -0
  70. package/dist/ts4.2/src/index.d.ts +31 -0
  71. package/dist/ts4.2/src/logger.d.ts +26 -0
  72. package/dist/ts4.2/src/options.d.ts +94 -0
  73. package/dist/ts4.2/src/proto/google/protobuf/timestamp.d.ts +141 -0
  74. package/dist/ts4.2/src/proto/livekit_models.d.ts +1421 -0
  75. package/dist/ts4.2/src/proto/livekit_rtc.d.ts +7122 -0
  76. package/dist/ts4.2/src/room/DefaultReconnectPolicy.d.ts +8 -0
  77. package/dist/ts4.2/src/room/DeviceManager.d.ts +9 -0
  78. package/dist/ts4.2/src/room/PCTransport.d.ts +33 -0
  79. package/dist/ts4.2/src/room/RTCEngine.d.ts +97 -0
  80. package/dist/ts4.2/src/room/ReconnectPolicy.d.ts +23 -0
  81. package/dist/ts4.2/src/room/Room.d.ts +220 -0
  82. package/dist/ts4.2/src/room/defaults.d.ts +8 -0
  83. package/dist/ts4.2/src/room/errors.d.ts +39 -0
  84. package/dist/ts4.2/src/room/events.d.ts +426 -0
  85. package/dist/ts4.2/src/room/participant/LocalParticipant.d.ts +141 -0
  86. package/dist/ts4.2/src/room/participant/Participant.d.ts +92 -0
  87. package/dist/ts4.2/src/room/participant/ParticipantTrackPermission.d.ts +26 -0
  88. package/dist/ts4.2/src/room/participant/RemoteParticipant.d.ts +52 -0
  89. package/dist/ts4.2/src/room/participant/publishUtils.d.ts +19 -0
  90. package/dist/ts4.2/src/room/stats.d.ts +67 -0
  91. package/dist/ts4.2/src/room/track/LocalAudioTrack.d.ts +25 -0
  92. package/dist/ts4.2/src/room/track/LocalTrack.d.ts +42 -0
  93. package/dist/ts4.2/src/room/track/LocalTrackPublication.d.ts +38 -0
  94. package/dist/ts4.2/src/room/track/LocalVideoTrack.d.ts +53 -0
  95. package/dist/ts4.2/src/room/track/RemoteAudioTrack.d.ts +53 -0
  96. package/dist/ts4.2/src/room/track/RemoteTrack.d.ts +15 -0
  97. package/dist/ts4.2/src/room/track/RemoteTrackPublication.d.ts +61 -0
  98. package/dist/ts4.2/src/room/track/RemoteVideoTrack.d.ts +52 -0
  99. package/dist/ts4.2/src/room/track/Track.d.ts +122 -0
  100. package/dist/ts4.2/src/room/track/TrackPublication.d.ts +68 -0
  101. package/dist/ts4.2/src/room/track/create.d.ts +24 -0
  102. package/dist/ts4.2/src/room/track/options.d.ts +241 -0
  103. package/dist/ts4.2/src/room/track/types.d.ts +23 -0
  104. package/dist/ts4.2/src/room/track/utils.d.ts +14 -0
  105. package/dist/ts4.2/src/room/types.d.ts +13 -0
  106. package/dist/ts4.2/src/room/utils.d.ts +79 -0
  107. package/dist/ts4.2/src/test/MockMediaStreamTrack.d.ts +26 -0
  108. package/dist/ts4.2/src/test/mocks.d.ts +11 -0
  109. package/dist/ts4.2/src/version.d.ts +3 -0
  110. package/package.json +32 -22
  111. package/src/api/SignalClient.ts +41 -17
  112. package/src/connectionHelper/ConnectionCheck.ts +90 -0
  113. package/src/connectionHelper/checks/Checker.ts +164 -0
  114. package/src/connectionHelper/checks/publishAudio.ts +33 -0
  115. package/src/connectionHelper/checks/publishVideo.ts +33 -0
  116. package/src/connectionHelper/checks/reconnect.ts +45 -0
  117. package/src/connectionHelper/checks/turn.ts +53 -0
  118. package/src/connectionHelper/checks/webrtc.ts +18 -0
  119. package/src/connectionHelper/checks/websocket.ts +22 -0
  120. package/src/index.ts +8 -1
  121. package/src/options.ts +5 -1
  122. package/src/proto/livekit_rtc.ts +12 -1
  123. package/src/room/DeviceManager.ts +0 -17
  124. package/src/room/RTCEngine.ts +35 -26
  125. package/src/room/Room.ts +231 -63
  126. package/src/room/events.ts +9 -0
  127. package/src/room/participant/LocalParticipant.ts +18 -11
  128. package/src/room/participant/publishUtils.ts +1 -1
  129. package/src/room/track/LocalAudioTrack.ts +1 -1
  130. package/src/room/track/LocalTrack.ts +4 -0
  131. package/src/room/track/LocalVideoTrack.ts +1 -1
  132. package/src/room/track/RemoteTrackPublication.ts +20 -0
  133. package/src/room/track/RemoteVideoTrack.ts +4 -0
  134. package/src/room/track/Track.ts +1 -0
  135. package/src/room/types.ts +12 -0
  136. package/src/room/utils.ts +150 -12
@@ -0,0 +1,1421 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "livekit";
3
+ export declare enum TrackType {
4
+ AUDIO = 0,
5
+ VIDEO = 1,
6
+ DATA = 2,
7
+ UNRECOGNIZED = -1
8
+ }
9
+ export declare function trackTypeFromJSON(object: any): TrackType;
10
+ export declare function trackTypeToJSON(object: TrackType): string;
11
+ export declare enum TrackSource {
12
+ UNKNOWN = 0,
13
+ CAMERA = 1,
14
+ MICROPHONE = 2,
15
+ SCREEN_SHARE = 3,
16
+ SCREEN_SHARE_AUDIO = 4,
17
+ UNRECOGNIZED = -1
18
+ }
19
+ export declare function trackSourceFromJSON(object: any): TrackSource;
20
+ export declare function trackSourceToJSON(object: TrackSource): string;
21
+ export declare enum VideoQuality {
22
+ LOW = 0,
23
+ MEDIUM = 1,
24
+ HIGH = 2,
25
+ OFF = 3,
26
+ UNRECOGNIZED = -1
27
+ }
28
+ export declare function videoQualityFromJSON(object: any): VideoQuality;
29
+ export declare function videoQualityToJSON(object: VideoQuality): string;
30
+ export declare enum ConnectionQuality {
31
+ POOR = 0,
32
+ GOOD = 1,
33
+ EXCELLENT = 2,
34
+ UNRECOGNIZED = -1
35
+ }
36
+ export declare function connectionQualityFromJSON(object: any): ConnectionQuality;
37
+ export declare function connectionQualityToJSON(object: ConnectionQuality): string;
38
+ export declare enum ClientConfigSetting {
39
+ UNSET = 0,
40
+ DISABLED = 1,
41
+ ENABLED = 2,
42
+ UNRECOGNIZED = -1
43
+ }
44
+ export declare function clientConfigSettingFromJSON(object: any): ClientConfigSetting;
45
+ export declare function clientConfigSettingToJSON(object: ClientConfigSetting): string;
46
+ export declare enum DisconnectReason {
47
+ UNKNOWN_REASON = 0,
48
+ CLIENT_INITIATED = 1,
49
+ DUPLICATE_IDENTITY = 2,
50
+ SERVER_SHUTDOWN = 3,
51
+ PARTICIPANT_REMOVED = 4,
52
+ ROOM_DELETED = 5,
53
+ STATE_MISMATCH = 6,
54
+ JOIN_FAILURE = 7,
55
+ UNRECOGNIZED = -1
56
+ }
57
+ export declare function disconnectReasonFromJSON(object: any): DisconnectReason;
58
+ export declare function disconnectReasonToJSON(object: DisconnectReason): string;
59
+ export interface Room {
60
+ sid: string;
61
+ name: string;
62
+ emptyTimeout: number;
63
+ maxParticipants: number;
64
+ creationTime: number;
65
+ turnPassword: string;
66
+ enabledCodecs: Codec[];
67
+ metadata: string;
68
+ numParticipants: number;
69
+ activeRecording: boolean;
70
+ }
71
+ export interface Codec {
72
+ mime: string;
73
+ fmtpLine: string;
74
+ }
75
+ export interface ParticipantPermission {
76
+ /** allow participant to subscribe to other tracks in the room */
77
+ canSubscribe: boolean;
78
+ /** allow participant to publish new tracks to room */
79
+ canPublish: boolean;
80
+ /** allow participant to publish data */
81
+ canPublishData: boolean;
82
+ /** indicates that it's hidden to others */
83
+ hidden: boolean;
84
+ /** indicates it's a recorder instance */
85
+ recorder: boolean;
86
+ }
87
+ export interface ParticipantInfo {
88
+ sid: string;
89
+ identity: string;
90
+ state: ParticipantInfo_State;
91
+ tracks: TrackInfo[];
92
+ metadata: string;
93
+ /** timestamp when participant joined room, in seconds */
94
+ joinedAt: number;
95
+ name: string;
96
+ version: number;
97
+ permission?: ParticipantPermission;
98
+ region: string;
99
+ /**
100
+ * indicates the participant has an active publisher connection
101
+ * and can publish to the server
102
+ */
103
+ isPublisher: boolean;
104
+ }
105
+ export declare enum ParticipantInfo_State {
106
+ /** JOINING - websocket' connected, but not offered yet */
107
+ JOINING = 0,
108
+ /** JOINED - server received client offer */
109
+ JOINED = 1,
110
+ /** ACTIVE - ICE connectivity established */
111
+ ACTIVE = 2,
112
+ /** DISCONNECTED - WS disconnected */
113
+ DISCONNECTED = 3,
114
+ UNRECOGNIZED = -1
115
+ }
116
+ export declare function participantInfo_StateFromJSON(object: any): ParticipantInfo_State;
117
+ export declare function participantInfo_StateToJSON(object: ParticipantInfo_State): string;
118
+ export interface SimulcastCodecInfo {
119
+ mimeType: string;
120
+ mid: string;
121
+ cid: string;
122
+ layers: VideoLayer[];
123
+ }
124
+ export interface TrackInfo {
125
+ sid: string;
126
+ type: TrackType;
127
+ name: string;
128
+ muted: boolean;
129
+ /**
130
+ * original width of video (unset for audio)
131
+ * clients may receive a lower resolution version with simulcast
132
+ */
133
+ width: number;
134
+ /** original height of video (unset for audio) */
135
+ height: number;
136
+ /** true if track is simulcasted */
137
+ simulcast: boolean;
138
+ /** true if DTX (Discontinuous Transmission) is disabled for audio */
139
+ disableDtx: boolean;
140
+ /** source of media */
141
+ source: TrackSource;
142
+ layers: VideoLayer[];
143
+ /** mime type of codec */
144
+ mimeType: string;
145
+ mid: string;
146
+ codecs: SimulcastCodecInfo[];
147
+ }
148
+ /** provide information about available spatial layers */
149
+ export interface VideoLayer {
150
+ /** for tracks with a single layer, this should be HIGH */
151
+ quality: VideoQuality;
152
+ width: number;
153
+ height: number;
154
+ /** target bitrate, server will measure actual */
155
+ bitrate: number;
156
+ ssrc: number;
157
+ }
158
+ /** new DataPacket API */
159
+ export interface DataPacket {
160
+ kind: DataPacket_Kind;
161
+ value?: {
162
+ $case: "user";
163
+ user: UserPacket;
164
+ } | {
165
+ $case: "speaker";
166
+ speaker: ActiveSpeakerUpdate;
167
+ };
168
+ }
169
+ export declare enum DataPacket_Kind {
170
+ RELIABLE = 0,
171
+ LOSSY = 1,
172
+ UNRECOGNIZED = -1
173
+ }
174
+ export declare function dataPacket_KindFromJSON(object: any): DataPacket_Kind;
175
+ export declare function dataPacket_KindToJSON(object: DataPacket_Kind): string;
176
+ export interface ActiveSpeakerUpdate {
177
+ speakers: SpeakerInfo[];
178
+ }
179
+ export interface SpeakerInfo {
180
+ sid: string;
181
+ /** audio level, 0-1.0, 1 is loudest */
182
+ level: number;
183
+ /** true if speaker is currently active */
184
+ active: boolean;
185
+ }
186
+ export interface UserPacket {
187
+ /** participant ID of user that sent the message */
188
+ participantSid: string;
189
+ /** user defined payload */
190
+ payload: Uint8Array;
191
+ /** the ID of the participants who will receive the message (the message will be sent to all the people in the room if this variable is empty) */
192
+ destinationSids: string[];
193
+ }
194
+ export interface ParticipantTracks {
195
+ /** participant ID of participant to whom the tracks belong */
196
+ participantSid: string;
197
+ trackSids: string[];
198
+ }
199
+ /** details about the server */
200
+ export interface ServerInfo {
201
+ edition: ServerInfo_Edition;
202
+ version: string;
203
+ protocol: number;
204
+ region: string;
205
+ nodeId: string;
206
+ /** additional debugging information. sent only if server is in development mode */
207
+ debugInfo: string;
208
+ }
209
+ export declare enum ServerInfo_Edition {
210
+ Standard = 0,
211
+ Cloud = 1,
212
+ UNRECOGNIZED = -1
213
+ }
214
+ export declare function serverInfo_EditionFromJSON(object: any): ServerInfo_Edition;
215
+ export declare function serverInfo_EditionToJSON(object: ServerInfo_Edition): string;
216
+ /** details about the client */
217
+ export interface ClientInfo {
218
+ sdk: ClientInfo_SDK;
219
+ version: string;
220
+ protocol: number;
221
+ os: string;
222
+ osVersion: string;
223
+ deviceModel: string;
224
+ browser: string;
225
+ browserVersion: string;
226
+ address: string;
227
+ /** wifi, wired, cellular, vpn, empty if not known */
228
+ network: string;
229
+ }
230
+ export declare enum ClientInfo_SDK {
231
+ UNKNOWN = 0,
232
+ JS = 1,
233
+ SWIFT = 2,
234
+ ANDROID = 3,
235
+ FLUTTER = 4,
236
+ GO = 5,
237
+ UNITY = 6,
238
+ UNRECOGNIZED = -1
239
+ }
240
+ export declare function clientInfo_SDKFromJSON(object: any): ClientInfo_SDK;
241
+ export declare function clientInfo_SDKToJSON(object: ClientInfo_SDK): string;
242
+ /** server provided client configuration */
243
+ export interface ClientConfiguration {
244
+ video?: VideoConfiguration;
245
+ screen?: VideoConfiguration;
246
+ resumeConnection: ClientConfigSetting;
247
+ disabledCodecs?: DisabledCodecs;
248
+ forceRelay: ClientConfigSetting;
249
+ }
250
+ export interface VideoConfiguration {
251
+ hardwareEncoder: ClientConfigSetting;
252
+ }
253
+ export interface DisabledCodecs {
254
+ codecs: Codec[];
255
+ }
256
+ export interface RTPStats {
257
+ startTime?: Date;
258
+ endTime?: Date;
259
+ duration: number;
260
+ packets: number;
261
+ packetRate: number;
262
+ bytes: number;
263
+ headerBytes: number;
264
+ bitrate: number;
265
+ packetsLost: number;
266
+ packetLossRate: number;
267
+ packetLossPercentage: number;
268
+ packetsDuplicate: number;
269
+ packetDuplicateRate: number;
270
+ bytesDuplicate: number;
271
+ headerBytesDuplicate: number;
272
+ bitrateDuplicate: number;
273
+ packetsPadding: number;
274
+ packetPaddingRate: number;
275
+ bytesPadding: number;
276
+ headerBytesPadding: number;
277
+ bitratePadding: number;
278
+ packetsOutOfOrder: number;
279
+ frames: number;
280
+ frameRate: number;
281
+ jitterCurrent: number;
282
+ jitterMax: number;
283
+ gapHistogram: {
284
+ [key: number]: number;
285
+ };
286
+ nacks: number;
287
+ nackAcks: number;
288
+ nackMisses: number;
289
+ nackRepeated: number;
290
+ plis: number;
291
+ lastPli?: Date;
292
+ firs: number;
293
+ lastFir?: Date;
294
+ rttCurrent: number;
295
+ rttMax: number;
296
+ keyFrames: number;
297
+ lastKeyFrame?: Date;
298
+ layerLockPlis: number;
299
+ lastLayerLockPli?: Date;
300
+ }
301
+ export interface RTPStats_GapHistogramEntry {
302
+ key: number;
303
+ value: number;
304
+ }
305
+ export interface TimedVersion {
306
+ unixMicro: number;
307
+ ticks: number;
308
+ }
309
+ export declare const Room: {
310
+ encode(message: Room, writer?: _m0.Writer): _m0.Writer;
311
+ decode(input: _m0.Reader | Uint8Array, length?: number): Room;
312
+ fromJSON(object: any): Room;
313
+ toJSON(message: Room): unknown;
314
+ fromPartial<I extends {
315
+ sid?: string | undefined;
316
+ name?: string | undefined;
317
+ emptyTimeout?: number | undefined;
318
+ maxParticipants?: number | undefined;
319
+ creationTime?: number | undefined;
320
+ turnPassword?: string | undefined;
321
+ enabledCodecs?: {
322
+ mime?: string | undefined;
323
+ fmtpLine?: string | undefined;
324
+ }[] | undefined;
325
+ metadata?: string | undefined;
326
+ numParticipants?: number | undefined;
327
+ activeRecording?: boolean | undefined;
328
+ } & {
329
+ sid?: string | undefined;
330
+ name?: string | undefined;
331
+ emptyTimeout?: number | undefined;
332
+ maxParticipants?: number | undefined;
333
+ creationTime?: number | undefined;
334
+ turnPassword?: string | undefined;
335
+ enabledCodecs?: ({
336
+ mime?: string | undefined;
337
+ fmtpLine?: string | undefined;
338
+ }[] & ({
339
+ mime?: string | undefined;
340
+ fmtpLine?: string | undefined;
341
+ } & {
342
+ mime?: string | undefined;
343
+ fmtpLine?: string | undefined;
344
+ } & {
345
+ [K in Exclude<keyof I["enabledCodecs"][number], keyof Codec>]: never;
346
+ })[] & {
347
+ [K_1 in Exclude<keyof I["enabledCodecs"], keyof {
348
+ mime?: string | undefined;
349
+ fmtpLine?: string | undefined;
350
+ }[]>]: never;
351
+ }) | undefined;
352
+ metadata?: string | undefined;
353
+ numParticipants?: number | undefined;
354
+ activeRecording?: boolean | undefined;
355
+ } & {
356
+ [K_2 in Exclude<keyof I, keyof Room>]: never;
357
+ }>(object: I): Room;
358
+ };
359
+ export declare const Codec: {
360
+ encode(message: Codec, writer?: _m0.Writer): _m0.Writer;
361
+ decode(input: _m0.Reader | Uint8Array, length?: number): Codec;
362
+ fromJSON(object: any): Codec;
363
+ toJSON(message: Codec): unknown;
364
+ fromPartial<I extends {
365
+ mime?: string | undefined;
366
+ fmtpLine?: string | undefined;
367
+ } & {
368
+ mime?: string | undefined;
369
+ fmtpLine?: string | undefined;
370
+ } & {
371
+ [K in Exclude<keyof I, keyof Codec>]: never;
372
+ }>(object: I): Codec;
373
+ };
374
+ export declare const ParticipantPermission: {
375
+ encode(message: ParticipantPermission, writer?: _m0.Writer): _m0.Writer;
376
+ decode(input: _m0.Reader | Uint8Array, length?: number): ParticipantPermission;
377
+ fromJSON(object: any): ParticipantPermission;
378
+ toJSON(message: ParticipantPermission): unknown;
379
+ fromPartial<I extends {
380
+ canSubscribe?: boolean | undefined;
381
+ canPublish?: boolean | undefined;
382
+ canPublishData?: boolean | undefined;
383
+ hidden?: boolean | undefined;
384
+ recorder?: boolean | undefined;
385
+ } & {
386
+ canSubscribe?: boolean | undefined;
387
+ canPublish?: boolean | undefined;
388
+ canPublishData?: boolean | undefined;
389
+ hidden?: boolean | undefined;
390
+ recorder?: boolean | undefined;
391
+ } & {
392
+ [K in Exclude<keyof I, keyof ParticipantPermission>]: never;
393
+ }>(object: I): ParticipantPermission;
394
+ };
395
+ export declare const ParticipantInfo: {
396
+ encode(message: ParticipantInfo, writer?: _m0.Writer): _m0.Writer;
397
+ decode(input: _m0.Reader | Uint8Array, length?: number): ParticipantInfo;
398
+ fromJSON(object: any): ParticipantInfo;
399
+ toJSON(message: ParticipantInfo): unknown;
400
+ fromPartial<I extends {
401
+ sid?: string | undefined;
402
+ identity?: string | undefined;
403
+ state?: ParticipantInfo_State | undefined;
404
+ tracks?: {
405
+ sid?: string | undefined;
406
+ type?: TrackType | undefined;
407
+ name?: string | undefined;
408
+ muted?: boolean | undefined;
409
+ width?: number | undefined;
410
+ height?: number | undefined;
411
+ simulcast?: boolean | undefined;
412
+ disableDtx?: boolean | undefined;
413
+ source?: TrackSource | undefined;
414
+ layers?: {
415
+ quality?: VideoQuality | undefined;
416
+ width?: number | undefined;
417
+ height?: number | undefined;
418
+ bitrate?: number | undefined;
419
+ ssrc?: number | undefined;
420
+ }[] | undefined;
421
+ mimeType?: string | undefined;
422
+ mid?: string | undefined;
423
+ codecs?: {
424
+ mimeType?: string | undefined;
425
+ mid?: string | undefined;
426
+ cid?: string | undefined;
427
+ layers?: {
428
+ quality?: VideoQuality | undefined;
429
+ width?: number | undefined;
430
+ height?: number | undefined;
431
+ bitrate?: number | undefined;
432
+ ssrc?: number | undefined;
433
+ }[] | undefined;
434
+ }[] | undefined;
435
+ }[] | undefined;
436
+ metadata?: string | undefined;
437
+ joinedAt?: number | undefined;
438
+ name?: string | undefined;
439
+ version?: number | undefined;
440
+ permission?: {
441
+ canSubscribe?: boolean | undefined;
442
+ canPublish?: boolean | undefined;
443
+ canPublishData?: boolean | undefined;
444
+ hidden?: boolean | undefined;
445
+ recorder?: boolean | undefined;
446
+ } | undefined;
447
+ region?: string | undefined;
448
+ isPublisher?: boolean | undefined;
449
+ } & {
450
+ sid?: string | undefined;
451
+ identity?: string | undefined;
452
+ state?: ParticipantInfo_State | undefined;
453
+ tracks?: ({
454
+ sid?: string | undefined;
455
+ type?: TrackType | undefined;
456
+ name?: string | undefined;
457
+ muted?: boolean | undefined;
458
+ width?: number | undefined;
459
+ height?: number | undefined;
460
+ simulcast?: boolean | undefined;
461
+ disableDtx?: boolean | undefined;
462
+ source?: TrackSource | undefined;
463
+ layers?: {
464
+ quality?: VideoQuality | undefined;
465
+ width?: number | undefined;
466
+ height?: number | undefined;
467
+ bitrate?: number | undefined;
468
+ ssrc?: number | undefined;
469
+ }[] | undefined;
470
+ mimeType?: string | undefined;
471
+ mid?: string | undefined;
472
+ codecs?: {
473
+ mimeType?: string | undefined;
474
+ mid?: string | undefined;
475
+ cid?: string | undefined;
476
+ layers?: {
477
+ quality?: VideoQuality | undefined;
478
+ width?: number | undefined;
479
+ height?: number | undefined;
480
+ bitrate?: number | undefined;
481
+ ssrc?: number | undefined;
482
+ }[] | undefined;
483
+ }[] | undefined;
484
+ }[] & ({
485
+ sid?: string | undefined;
486
+ type?: TrackType | undefined;
487
+ name?: string | undefined;
488
+ muted?: boolean | undefined;
489
+ width?: number | undefined;
490
+ height?: number | undefined;
491
+ simulcast?: boolean | undefined;
492
+ disableDtx?: boolean | undefined;
493
+ source?: TrackSource | undefined;
494
+ layers?: {
495
+ quality?: VideoQuality | undefined;
496
+ width?: number | undefined;
497
+ height?: number | undefined;
498
+ bitrate?: number | undefined;
499
+ ssrc?: number | undefined;
500
+ }[] | undefined;
501
+ mimeType?: string | undefined;
502
+ mid?: string | undefined;
503
+ codecs?: {
504
+ mimeType?: string | undefined;
505
+ mid?: string | undefined;
506
+ cid?: string | undefined;
507
+ layers?: {
508
+ quality?: VideoQuality | undefined;
509
+ width?: number | undefined;
510
+ height?: number | undefined;
511
+ bitrate?: number | undefined;
512
+ ssrc?: number | undefined;
513
+ }[] | undefined;
514
+ }[] | undefined;
515
+ } & {
516
+ sid?: string | undefined;
517
+ type?: TrackType | undefined;
518
+ name?: string | undefined;
519
+ muted?: boolean | undefined;
520
+ width?: number | undefined;
521
+ height?: number | undefined;
522
+ simulcast?: boolean | undefined;
523
+ disableDtx?: boolean | undefined;
524
+ source?: TrackSource | undefined;
525
+ layers?: ({
526
+ quality?: VideoQuality | undefined;
527
+ width?: number | undefined;
528
+ height?: number | undefined;
529
+ bitrate?: number | undefined;
530
+ ssrc?: number | undefined;
531
+ }[] & ({
532
+ quality?: VideoQuality | undefined;
533
+ width?: number | undefined;
534
+ height?: number | undefined;
535
+ bitrate?: number | undefined;
536
+ ssrc?: number | undefined;
537
+ } & {
538
+ quality?: VideoQuality | undefined;
539
+ width?: number | undefined;
540
+ height?: number | undefined;
541
+ bitrate?: number | undefined;
542
+ ssrc?: number | undefined;
543
+ } & {
544
+ [K in Exclude<keyof I["tracks"][number]["layers"][number], keyof VideoLayer>]: never;
545
+ })[] & {
546
+ [K_1 in Exclude<keyof I["tracks"][number]["layers"], keyof {
547
+ quality?: VideoQuality | undefined;
548
+ width?: number | undefined;
549
+ height?: number | undefined;
550
+ bitrate?: number | undefined;
551
+ ssrc?: number | undefined;
552
+ }[]>]: never;
553
+ }) | undefined;
554
+ mimeType?: string | undefined;
555
+ mid?: string | undefined;
556
+ codecs?: ({
557
+ mimeType?: string | undefined;
558
+ mid?: string | undefined;
559
+ cid?: string | undefined;
560
+ layers?: {
561
+ quality?: VideoQuality | undefined;
562
+ width?: number | undefined;
563
+ height?: number | undefined;
564
+ bitrate?: number | undefined;
565
+ ssrc?: number | undefined;
566
+ }[] | undefined;
567
+ }[] & ({
568
+ mimeType?: string | undefined;
569
+ mid?: string | undefined;
570
+ cid?: string | undefined;
571
+ layers?: {
572
+ quality?: VideoQuality | undefined;
573
+ width?: number | undefined;
574
+ height?: number | undefined;
575
+ bitrate?: number | undefined;
576
+ ssrc?: number | undefined;
577
+ }[] | undefined;
578
+ } & {
579
+ mimeType?: string | undefined;
580
+ mid?: string | undefined;
581
+ cid?: string | undefined;
582
+ layers?: ({
583
+ quality?: VideoQuality | undefined;
584
+ width?: number | undefined;
585
+ height?: number | undefined;
586
+ bitrate?: number | undefined;
587
+ ssrc?: number | undefined;
588
+ }[] & ({
589
+ quality?: VideoQuality | undefined;
590
+ width?: number | undefined;
591
+ height?: number | undefined;
592
+ bitrate?: number | undefined;
593
+ ssrc?: number | undefined;
594
+ } & {
595
+ quality?: VideoQuality | undefined;
596
+ width?: number | undefined;
597
+ height?: number | undefined;
598
+ bitrate?: number | undefined;
599
+ ssrc?: number | undefined;
600
+ } & {
601
+ [K_2 in Exclude<keyof I["tracks"][number]["codecs"][number]["layers"][number], keyof VideoLayer>]: never;
602
+ })[] & {
603
+ [K_3 in Exclude<keyof I["tracks"][number]["codecs"][number]["layers"], keyof {
604
+ quality?: VideoQuality | undefined;
605
+ width?: number | undefined;
606
+ height?: number | undefined;
607
+ bitrate?: number | undefined;
608
+ ssrc?: number | undefined;
609
+ }[]>]: never;
610
+ }) | undefined;
611
+ } & {
612
+ [K_4 in Exclude<keyof I["tracks"][number]["codecs"][number], keyof SimulcastCodecInfo>]: never;
613
+ })[] & {
614
+ [K_5 in Exclude<keyof I["tracks"][number]["codecs"], keyof {
615
+ mimeType?: string | undefined;
616
+ mid?: string | undefined;
617
+ cid?: string | undefined;
618
+ layers?: {
619
+ quality?: VideoQuality | undefined;
620
+ width?: number | undefined;
621
+ height?: number | undefined;
622
+ bitrate?: number | undefined;
623
+ ssrc?: number | undefined;
624
+ }[] | undefined;
625
+ }[]>]: never;
626
+ }) | undefined;
627
+ } & {
628
+ [K_6 in Exclude<keyof I["tracks"][number], keyof TrackInfo>]: never;
629
+ })[] & {
630
+ [K_7 in Exclude<keyof I["tracks"], keyof {
631
+ sid?: string | undefined;
632
+ type?: TrackType | undefined;
633
+ name?: string | undefined;
634
+ muted?: boolean | undefined;
635
+ width?: number | undefined;
636
+ height?: number | undefined;
637
+ simulcast?: boolean | undefined;
638
+ disableDtx?: boolean | undefined;
639
+ source?: TrackSource | undefined;
640
+ layers?: {
641
+ quality?: VideoQuality | undefined;
642
+ width?: number | undefined;
643
+ height?: number | undefined;
644
+ bitrate?: number | undefined;
645
+ ssrc?: number | undefined;
646
+ }[] | undefined;
647
+ mimeType?: string | undefined;
648
+ mid?: string | undefined;
649
+ codecs?: {
650
+ mimeType?: string | undefined;
651
+ mid?: string | undefined;
652
+ cid?: string | undefined;
653
+ layers?: {
654
+ quality?: VideoQuality | undefined;
655
+ width?: number | undefined;
656
+ height?: number | undefined;
657
+ bitrate?: number | undefined;
658
+ ssrc?: number | undefined;
659
+ }[] | undefined;
660
+ }[] | undefined;
661
+ }[]>]: never;
662
+ }) | undefined;
663
+ metadata?: string | undefined;
664
+ joinedAt?: number | undefined;
665
+ name?: string | undefined;
666
+ version?: number | undefined;
667
+ permission?: ({
668
+ canSubscribe?: boolean | undefined;
669
+ canPublish?: boolean | undefined;
670
+ canPublishData?: boolean | undefined;
671
+ hidden?: boolean | undefined;
672
+ recorder?: boolean | undefined;
673
+ } & {
674
+ canSubscribe?: boolean | undefined;
675
+ canPublish?: boolean | undefined;
676
+ canPublishData?: boolean | undefined;
677
+ hidden?: boolean | undefined;
678
+ recorder?: boolean | undefined;
679
+ } & {
680
+ [K_8 in Exclude<keyof I["permission"], keyof ParticipantPermission>]: never;
681
+ }) | undefined;
682
+ region?: string | undefined;
683
+ isPublisher?: boolean | undefined;
684
+ } & {
685
+ [K_9 in Exclude<keyof I, keyof ParticipantInfo>]: never;
686
+ }>(object: I): ParticipantInfo;
687
+ };
688
+ export declare const SimulcastCodecInfo: {
689
+ encode(message: SimulcastCodecInfo, writer?: _m0.Writer): _m0.Writer;
690
+ decode(input: _m0.Reader | Uint8Array, length?: number): SimulcastCodecInfo;
691
+ fromJSON(object: any): SimulcastCodecInfo;
692
+ toJSON(message: SimulcastCodecInfo): unknown;
693
+ fromPartial<I extends {
694
+ mimeType?: string | undefined;
695
+ mid?: string | undefined;
696
+ cid?: string | undefined;
697
+ layers?: {
698
+ quality?: VideoQuality | undefined;
699
+ width?: number | undefined;
700
+ height?: number | undefined;
701
+ bitrate?: number | undefined;
702
+ ssrc?: number | undefined;
703
+ }[] | undefined;
704
+ } & {
705
+ mimeType?: string | undefined;
706
+ mid?: string | undefined;
707
+ cid?: string | undefined;
708
+ layers?: ({
709
+ quality?: VideoQuality | undefined;
710
+ width?: number | undefined;
711
+ height?: number | undefined;
712
+ bitrate?: number | undefined;
713
+ ssrc?: number | undefined;
714
+ }[] & ({
715
+ quality?: VideoQuality | undefined;
716
+ width?: number | undefined;
717
+ height?: number | undefined;
718
+ bitrate?: number | undefined;
719
+ ssrc?: number | undefined;
720
+ } & {
721
+ quality?: VideoQuality | undefined;
722
+ width?: number | undefined;
723
+ height?: number | undefined;
724
+ bitrate?: number | undefined;
725
+ ssrc?: number | undefined;
726
+ } & {
727
+ [K in Exclude<keyof I["layers"][number], keyof VideoLayer>]: never;
728
+ })[] & {
729
+ [K_1 in Exclude<keyof I["layers"], keyof {
730
+ quality?: VideoQuality | undefined;
731
+ width?: number | undefined;
732
+ height?: number | undefined;
733
+ bitrate?: number | undefined;
734
+ ssrc?: number | undefined;
735
+ }[]>]: never;
736
+ }) | undefined;
737
+ } & {
738
+ [K_2 in Exclude<keyof I, keyof SimulcastCodecInfo>]: never;
739
+ }>(object: I): SimulcastCodecInfo;
740
+ };
741
+ export declare const TrackInfo: {
742
+ encode(message: TrackInfo, writer?: _m0.Writer): _m0.Writer;
743
+ decode(input: _m0.Reader | Uint8Array, length?: number): TrackInfo;
744
+ fromJSON(object: any): TrackInfo;
745
+ toJSON(message: TrackInfo): unknown;
746
+ fromPartial<I extends {
747
+ sid?: string | undefined;
748
+ type?: TrackType | undefined;
749
+ name?: string | undefined;
750
+ muted?: boolean | undefined;
751
+ width?: number | undefined;
752
+ height?: number | undefined;
753
+ simulcast?: boolean | undefined;
754
+ disableDtx?: boolean | undefined;
755
+ source?: TrackSource | undefined;
756
+ layers?: {
757
+ quality?: VideoQuality | undefined;
758
+ width?: number | undefined;
759
+ height?: number | undefined;
760
+ bitrate?: number | undefined;
761
+ ssrc?: number | undefined;
762
+ }[] | undefined;
763
+ mimeType?: string | undefined;
764
+ mid?: string | undefined;
765
+ codecs?: {
766
+ mimeType?: string | undefined;
767
+ mid?: string | undefined;
768
+ cid?: string | undefined;
769
+ layers?: {
770
+ quality?: VideoQuality | undefined;
771
+ width?: number | undefined;
772
+ height?: number | undefined;
773
+ bitrate?: number | undefined;
774
+ ssrc?: number | undefined;
775
+ }[] | undefined;
776
+ }[] | undefined;
777
+ } & {
778
+ sid?: string | undefined;
779
+ type?: TrackType | undefined;
780
+ name?: string | undefined;
781
+ muted?: boolean | undefined;
782
+ width?: number | undefined;
783
+ height?: number | undefined;
784
+ simulcast?: boolean | undefined;
785
+ disableDtx?: boolean | undefined;
786
+ source?: TrackSource | undefined;
787
+ layers?: ({
788
+ quality?: VideoQuality | undefined;
789
+ width?: number | undefined;
790
+ height?: number | undefined;
791
+ bitrate?: number | undefined;
792
+ ssrc?: number | undefined;
793
+ }[] & ({
794
+ quality?: VideoQuality | undefined;
795
+ width?: number | undefined;
796
+ height?: number | undefined;
797
+ bitrate?: number | undefined;
798
+ ssrc?: number | undefined;
799
+ } & {
800
+ quality?: VideoQuality | undefined;
801
+ width?: number | undefined;
802
+ height?: number | undefined;
803
+ bitrate?: number | undefined;
804
+ ssrc?: number | undefined;
805
+ } & {
806
+ [K in Exclude<keyof I["layers"][number], keyof VideoLayer>]: never;
807
+ })[] & {
808
+ [K_1 in Exclude<keyof I["layers"], keyof {
809
+ quality?: VideoQuality | undefined;
810
+ width?: number | undefined;
811
+ height?: number | undefined;
812
+ bitrate?: number | undefined;
813
+ ssrc?: number | undefined;
814
+ }[]>]: never;
815
+ }) | undefined;
816
+ mimeType?: string | undefined;
817
+ mid?: string | undefined;
818
+ codecs?: ({
819
+ mimeType?: string | undefined;
820
+ mid?: string | undefined;
821
+ cid?: string | undefined;
822
+ layers?: {
823
+ quality?: VideoQuality | undefined;
824
+ width?: number | undefined;
825
+ height?: number | undefined;
826
+ bitrate?: number | undefined;
827
+ ssrc?: number | undefined;
828
+ }[] | undefined;
829
+ }[] & ({
830
+ mimeType?: string | undefined;
831
+ mid?: string | undefined;
832
+ cid?: string | undefined;
833
+ layers?: {
834
+ quality?: VideoQuality | undefined;
835
+ width?: number | undefined;
836
+ height?: number | undefined;
837
+ bitrate?: number | undefined;
838
+ ssrc?: number | undefined;
839
+ }[] | undefined;
840
+ } & {
841
+ mimeType?: string | undefined;
842
+ mid?: string | undefined;
843
+ cid?: string | undefined;
844
+ layers?: ({
845
+ quality?: VideoQuality | undefined;
846
+ width?: number | undefined;
847
+ height?: number | undefined;
848
+ bitrate?: number | undefined;
849
+ ssrc?: number | undefined;
850
+ }[] & ({
851
+ quality?: VideoQuality | undefined;
852
+ width?: number | undefined;
853
+ height?: number | undefined;
854
+ bitrate?: number | undefined;
855
+ ssrc?: number | undefined;
856
+ } & {
857
+ quality?: VideoQuality | undefined;
858
+ width?: number | undefined;
859
+ height?: number | undefined;
860
+ bitrate?: number | undefined;
861
+ ssrc?: number | undefined;
862
+ } & {
863
+ [K_2 in Exclude<keyof I["codecs"][number]["layers"][number], keyof VideoLayer>]: never;
864
+ })[] & {
865
+ [K_3 in Exclude<keyof I["codecs"][number]["layers"], keyof {
866
+ quality?: VideoQuality | undefined;
867
+ width?: number | undefined;
868
+ height?: number | undefined;
869
+ bitrate?: number | undefined;
870
+ ssrc?: number | undefined;
871
+ }[]>]: never;
872
+ }) | undefined;
873
+ } & {
874
+ [K_4 in Exclude<keyof I["codecs"][number], keyof SimulcastCodecInfo>]: never;
875
+ })[] & {
876
+ [K_5 in Exclude<keyof I["codecs"], keyof {
877
+ mimeType?: string | undefined;
878
+ mid?: string | undefined;
879
+ cid?: string | undefined;
880
+ layers?: {
881
+ quality?: VideoQuality | undefined;
882
+ width?: number | undefined;
883
+ height?: number | undefined;
884
+ bitrate?: number | undefined;
885
+ ssrc?: number | undefined;
886
+ }[] | undefined;
887
+ }[]>]: never;
888
+ }) | undefined;
889
+ } & {
890
+ [K_6 in Exclude<keyof I, keyof TrackInfo>]: never;
891
+ }>(object: I): TrackInfo;
892
+ };
893
+ export declare const VideoLayer: {
894
+ encode(message: VideoLayer, writer?: _m0.Writer): _m0.Writer;
895
+ decode(input: _m0.Reader | Uint8Array, length?: number): VideoLayer;
896
+ fromJSON(object: any): VideoLayer;
897
+ toJSON(message: VideoLayer): unknown;
898
+ fromPartial<I extends {
899
+ quality?: VideoQuality | undefined;
900
+ width?: number | undefined;
901
+ height?: number | undefined;
902
+ bitrate?: number | undefined;
903
+ ssrc?: number | undefined;
904
+ } & {
905
+ quality?: VideoQuality | undefined;
906
+ width?: number | undefined;
907
+ height?: number | undefined;
908
+ bitrate?: number | undefined;
909
+ ssrc?: number | undefined;
910
+ } & {
911
+ [K in Exclude<keyof I, keyof VideoLayer>]: never;
912
+ }>(object: I): VideoLayer;
913
+ };
914
+ export declare const DataPacket: {
915
+ encode(message: DataPacket, writer?: _m0.Writer): _m0.Writer;
916
+ decode(input: _m0.Reader | Uint8Array, length?: number): DataPacket;
917
+ fromJSON(object: any): DataPacket;
918
+ toJSON(message: DataPacket): unknown;
919
+ fromPartial<I extends {
920
+ kind?: DataPacket_Kind | undefined;
921
+ value?: ({
922
+ user?: {
923
+ participantSid?: string | undefined;
924
+ payload?: Uint8Array | undefined;
925
+ destinationSids?: string[] | undefined;
926
+ } | undefined;
927
+ } & {
928
+ $case: "user";
929
+ }) | ({
930
+ speaker?: {
931
+ speakers?: {
932
+ sid?: string | undefined;
933
+ level?: number | undefined;
934
+ active?: boolean | undefined;
935
+ }[] | undefined;
936
+ } | undefined;
937
+ } & {
938
+ $case: "speaker";
939
+ }) | undefined;
940
+ } & {
941
+ kind?: DataPacket_Kind | undefined;
942
+ value?: ({
943
+ user?: {
944
+ participantSid?: string | undefined;
945
+ payload?: Uint8Array | undefined;
946
+ destinationSids?: string[] | undefined;
947
+ } | undefined;
948
+ } & {
949
+ $case: "user";
950
+ } & {
951
+ user?: ({
952
+ participantSid?: string | undefined;
953
+ payload?: Uint8Array | undefined;
954
+ destinationSids?: string[] | undefined;
955
+ } & {
956
+ participantSid?: string | undefined;
957
+ payload?: Uint8Array | undefined;
958
+ destinationSids?: (string[] & string[] & {
959
+ [K in Exclude<keyof I["value"]["user"]["destinationSids"], keyof string[]>]: never;
960
+ }) | undefined;
961
+ } & {
962
+ [K_1 in Exclude<keyof I["value"]["user"], keyof UserPacket>]: never;
963
+ }) | undefined;
964
+ $case: "user";
965
+ } & {
966
+ [K_2 in Exclude<keyof I["value"], "user" | "$case">]: never;
967
+ }) | ({
968
+ speaker?: {
969
+ speakers?: {
970
+ sid?: string | undefined;
971
+ level?: number | undefined;
972
+ active?: boolean | undefined;
973
+ }[] | undefined;
974
+ } | undefined;
975
+ } & {
976
+ $case: "speaker";
977
+ } & {
978
+ speaker?: ({
979
+ speakers?: {
980
+ sid?: string | undefined;
981
+ level?: number | undefined;
982
+ active?: boolean | undefined;
983
+ }[] | undefined;
984
+ } & {
985
+ speakers?: ({
986
+ sid?: string | undefined;
987
+ level?: number | undefined;
988
+ active?: boolean | undefined;
989
+ }[] & ({
990
+ sid?: string | undefined;
991
+ level?: number | undefined;
992
+ active?: boolean | undefined;
993
+ } & {
994
+ sid?: string | undefined;
995
+ level?: number | undefined;
996
+ active?: boolean | undefined;
997
+ } & {
998
+ [K_3 in Exclude<keyof I["value"]["speaker"]["speakers"][number], keyof SpeakerInfo>]: never;
999
+ })[] & {
1000
+ [K_4 in Exclude<keyof I["value"]["speaker"]["speakers"], keyof {
1001
+ sid?: string | undefined;
1002
+ level?: number | undefined;
1003
+ active?: boolean | undefined;
1004
+ }[]>]: never;
1005
+ }) | undefined;
1006
+ } & {
1007
+ [K_5 in Exclude<keyof I["value"]["speaker"], "speakers">]: never;
1008
+ }) | undefined;
1009
+ $case: "speaker";
1010
+ } & {
1011
+ [K_6 in Exclude<keyof I["value"], "speaker" | "$case">]: never;
1012
+ }) | undefined;
1013
+ } & {
1014
+ [K_7 in Exclude<keyof I, keyof DataPacket>]: never;
1015
+ }>(object: I): DataPacket;
1016
+ };
1017
+ export declare const ActiveSpeakerUpdate: {
1018
+ encode(message: ActiveSpeakerUpdate, writer?: _m0.Writer): _m0.Writer;
1019
+ decode(input: _m0.Reader | Uint8Array, length?: number): ActiveSpeakerUpdate;
1020
+ fromJSON(object: any): ActiveSpeakerUpdate;
1021
+ toJSON(message: ActiveSpeakerUpdate): unknown;
1022
+ fromPartial<I extends {
1023
+ speakers?: {
1024
+ sid?: string | undefined;
1025
+ level?: number | undefined;
1026
+ active?: boolean | undefined;
1027
+ }[] | undefined;
1028
+ } & {
1029
+ speakers?: ({
1030
+ sid?: string | undefined;
1031
+ level?: number | undefined;
1032
+ active?: boolean | undefined;
1033
+ }[] & ({
1034
+ sid?: string | undefined;
1035
+ level?: number | undefined;
1036
+ active?: boolean | undefined;
1037
+ } & {
1038
+ sid?: string | undefined;
1039
+ level?: number | undefined;
1040
+ active?: boolean | undefined;
1041
+ } & {
1042
+ [K in Exclude<keyof I["speakers"][number], keyof SpeakerInfo>]: never;
1043
+ })[] & {
1044
+ [K_1 in Exclude<keyof I["speakers"], keyof {
1045
+ sid?: string | undefined;
1046
+ level?: number | undefined;
1047
+ active?: boolean | undefined;
1048
+ }[]>]: never;
1049
+ }) | undefined;
1050
+ } & {
1051
+ [K_2 in Exclude<keyof I, "speakers">]: never;
1052
+ }>(object: I): ActiveSpeakerUpdate;
1053
+ };
1054
+ export declare const SpeakerInfo: {
1055
+ encode(message: SpeakerInfo, writer?: _m0.Writer): _m0.Writer;
1056
+ decode(input: _m0.Reader | Uint8Array, length?: number): SpeakerInfo;
1057
+ fromJSON(object: any): SpeakerInfo;
1058
+ toJSON(message: SpeakerInfo): unknown;
1059
+ fromPartial<I extends {
1060
+ sid?: string | undefined;
1061
+ level?: number | undefined;
1062
+ active?: boolean | undefined;
1063
+ } & {
1064
+ sid?: string | undefined;
1065
+ level?: number | undefined;
1066
+ active?: boolean | undefined;
1067
+ } & {
1068
+ [K in Exclude<keyof I, keyof SpeakerInfo>]: never;
1069
+ }>(object: I): SpeakerInfo;
1070
+ };
1071
+ export declare const UserPacket: {
1072
+ encode(message: UserPacket, writer?: _m0.Writer): _m0.Writer;
1073
+ decode(input: _m0.Reader | Uint8Array, length?: number): UserPacket;
1074
+ fromJSON(object: any): UserPacket;
1075
+ toJSON(message: UserPacket): unknown;
1076
+ fromPartial<I extends {
1077
+ participantSid?: string | undefined;
1078
+ payload?: Uint8Array | undefined;
1079
+ destinationSids?: string[] | undefined;
1080
+ } & {
1081
+ participantSid?: string | undefined;
1082
+ payload?: Uint8Array | undefined;
1083
+ destinationSids?: (string[] & string[] & {
1084
+ [K in Exclude<keyof I["destinationSids"], keyof string[]>]: never;
1085
+ }) | undefined;
1086
+ } & {
1087
+ [K_1 in Exclude<keyof I, keyof UserPacket>]: never;
1088
+ }>(object: I): UserPacket;
1089
+ };
1090
+ export declare const ParticipantTracks: {
1091
+ encode(message: ParticipantTracks, writer?: _m0.Writer): _m0.Writer;
1092
+ decode(input: _m0.Reader | Uint8Array, length?: number): ParticipantTracks;
1093
+ fromJSON(object: any): ParticipantTracks;
1094
+ toJSON(message: ParticipantTracks): unknown;
1095
+ fromPartial<I extends {
1096
+ participantSid?: string | undefined;
1097
+ trackSids?: string[] | undefined;
1098
+ } & {
1099
+ participantSid?: string | undefined;
1100
+ trackSids?: (string[] & string[] & {
1101
+ [K in Exclude<keyof I["trackSids"], keyof string[]>]: never;
1102
+ }) | undefined;
1103
+ } & {
1104
+ [K_1 in Exclude<keyof I, keyof ParticipantTracks>]: never;
1105
+ }>(object: I): ParticipantTracks;
1106
+ };
1107
+ export declare const ServerInfo: {
1108
+ encode(message: ServerInfo, writer?: _m0.Writer): _m0.Writer;
1109
+ decode(input: _m0.Reader | Uint8Array, length?: number): ServerInfo;
1110
+ fromJSON(object: any): ServerInfo;
1111
+ toJSON(message: ServerInfo): unknown;
1112
+ fromPartial<I extends {
1113
+ edition?: ServerInfo_Edition | undefined;
1114
+ version?: string | undefined;
1115
+ protocol?: number | undefined;
1116
+ region?: string | undefined;
1117
+ nodeId?: string | undefined;
1118
+ debugInfo?: string | undefined;
1119
+ } & {
1120
+ edition?: ServerInfo_Edition | undefined;
1121
+ version?: string | undefined;
1122
+ protocol?: number | undefined;
1123
+ region?: string | undefined;
1124
+ nodeId?: string | undefined;
1125
+ debugInfo?: string | undefined;
1126
+ } & {
1127
+ [K in Exclude<keyof I, keyof ServerInfo>]: never;
1128
+ }>(object: I): ServerInfo;
1129
+ };
1130
+ export declare const ClientInfo: {
1131
+ encode(message: ClientInfo, writer?: _m0.Writer): _m0.Writer;
1132
+ decode(input: _m0.Reader | Uint8Array, length?: number): ClientInfo;
1133
+ fromJSON(object: any): ClientInfo;
1134
+ toJSON(message: ClientInfo): unknown;
1135
+ fromPartial<I extends {
1136
+ sdk?: ClientInfo_SDK | undefined;
1137
+ version?: string | undefined;
1138
+ protocol?: number | undefined;
1139
+ os?: string | undefined;
1140
+ osVersion?: string | undefined;
1141
+ deviceModel?: string | undefined;
1142
+ browser?: string | undefined;
1143
+ browserVersion?: string | undefined;
1144
+ address?: string | undefined;
1145
+ network?: string | undefined;
1146
+ } & {
1147
+ sdk?: ClientInfo_SDK | undefined;
1148
+ version?: string | undefined;
1149
+ protocol?: number | undefined;
1150
+ os?: string | undefined;
1151
+ osVersion?: string | undefined;
1152
+ deviceModel?: string | undefined;
1153
+ browser?: string | undefined;
1154
+ browserVersion?: string | undefined;
1155
+ address?: string | undefined;
1156
+ network?: string | undefined;
1157
+ } & {
1158
+ [K in Exclude<keyof I, keyof ClientInfo>]: never;
1159
+ }>(object: I): ClientInfo;
1160
+ };
1161
+ export declare const ClientConfiguration: {
1162
+ encode(message: ClientConfiguration, writer?: _m0.Writer): _m0.Writer;
1163
+ decode(input: _m0.Reader | Uint8Array, length?: number): ClientConfiguration;
1164
+ fromJSON(object: any): ClientConfiguration;
1165
+ toJSON(message: ClientConfiguration): unknown;
1166
+ fromPartial<I extends {
1167
+ video?: {
1168
+ hardwareEncoder?: ClientConfigSetting | undefined;
1169
+ } | undefined;
1170
+ screen?: {
1171
+ hardwareEncoder?: ClientConfigSetting | undefined;
1172
+ } | undefined;
1173
+ resumeConnection?: ClientConfigSetting | undefined;
1174
+ disabledCodecs?: {
1175
+ codecs?: {
1176
+ mime?: string | undefined;
1177
+ fmtpLine?: string | undefined;
1178
+ }[] | undefined;
1179
+ } | undefined;
1180
+ forceRelay?: ClientConfigSetting | undefined;
1181
+ } & {
1182
+ video?: ({
1183
+ hardwareEncoder?: ClientConfigSetting | undefined;
1184
+ } & {
1185
+ hardwareEncoder?: ClientConfigSetting | undefined;
1186
+ } & {
1187
+ [K in Exclude<keyof I["video"], "hardwareEncoder">]: never;
1188
+ }) | undefined;
1189
+ screen?: ({
1190
+ hardwareEncoder?: ClientConfigSetting | undefined;
1191
+ } & {
1192
+ hardwareEncoder?: ClientConfigSetting | undefined;
1193
+ } & {
1194
+ [K_1 in Exclude<keyof I["screen"], "hardwareEncoder">]: never;
1195
+ }) | undefined;
1196
+ resumeConnection?: ClientConfigSetting | undefined;
1197
+ disabledCodecs?: ({
1198
+ codecs?: {
1199
+ mime?: string | undefined;
1200
+ fmtpLine?: string | undefined;
1201
+ }[] | undefined;
1202
+ } & {
1203
+ codecs?: ({
1204
+ mime?: string | undefined;
1205
+ fmtpLine?: string | undefined;
1206
+ }[] & ({
1207
+ mime?: string | undefined;
1208
+ fmtpLine?: string | undefined;
1209
+ } & {
1210
+ mime?: string | undefined;
1211
+ fmtpLine?: string | undefined;
1212
+ } & {
1213
+ [K_2 in Exclude<keyof I["disabledCodecs"]["codecs"][number], keyof Codec>]: never;
1214
+ })[] & {
1215
+ [K_3 in Exclude<keyof I["disabledCodecs"]["codecs"], keyof {
1216
+ mime?: string | undefined;
1217
+ fmtpLine?: string | undefined;
1218
+ }[]>]: never;
1219
+ }) | undefined;
1220
+ } & {
1221
+ [K_4 in Exclude<keyof I["disabledCodecs"], "codecs">]: never;
1222
+ }) | undefined;
1223
+ forceRelay?: ClientConfigSetting | undefined;
1224
+ } & {
1225
+ [K_5 in Exclude<keyof I, keyof ClientConfiguration>]: never;
1226
+ }>(object: I): ClientConfiguration;
1227
+ };
1228
+ export declare const VideoConfiguration: {
1229
+ encode(message: VideoConfiguration, writer?: _m0.Writer): _m0.Writer;
1230
+ decode(input: _m0.Reader | Uint8Array, length?: number): VideoConfiguration;
1231
+ fromJSON(object: any): VideoConfiguration;
1232
+ toJSON(message: VideoConfiguration): unknown;
1233
+ fromPartial<I extends {
1234
+ hardwareEncoder?: ClientConfigSetting | undefined;
1235
+ } & {
1236
+ hardwareEncoder?: ClientConfigSetting | undefined;
1237
+ } & {
1238
+ [K in Exclude<keyof I, "hardwareEncoder">]: never;
1239
+ }>(object: I): VideoConfiguration;
1240
+ };
1241
+ export declare const DisabledCodecs: {
1242
+ encode(message: DisabledCodecs, writer?: _m0.Writer): _m0.Writer;
1243
+ decode(input: _m0.Reader | Uint8Array, length?: number): DisabledCodecs;
1244
+ fromJSON(object: any): DisabledCodecs;
1245
+ toJSON(message: DisabledCodecs): unknown;
1246
+ fromPartial<I extends {
1247
+ codecs?: {
1248
+ mime?: string | undefined;
1249
+ fmtpLine?: string | undefined;
1250
+ }[] | undefined;
1251
+ } & {
1252
+ codecs?: ({
1253
+ mime?: string | undefined;
1254
+ fmtpLine?: string | undefined;
1255
+ }[] & ({
1256
+ mime?: string | undefined;
1257
+ fmtpLine?: string | undefined;
1258
+ } & {
1259
+ mime?: string | undefined;
1260
+ fmtpLine?: string | undefined;
1261
+ } & {
1262
+ [K in Exclude<keyof I["codecs"][number], keyof Codec>]: never;
1263
+ })[] & {
1264
+ [K_1 in Exclude<keyof I["codecs"], keyof {
1265
+ mime?: string | undefined;
1266
+ fmtpLine?: string | undefined;
1267
+ }[]>]: never;
1268
+ }) | undefined;
1269
+ } & {
1270
+ [K_2 in Exclude<keyof I, "codecs">]: never;
1271
+ }>(object: I): DisabledCodecs;
1272
+ };
1273
+ export declare const RTPStats: {
1274
+ encode(message: RTPStats, writer?: _m0.Writer): _m0.Writer;
1275
+ decode(input: _m0.Reader | Uint8Array, length?: number): RTPStats;
1276
+ fromJSON(object: any): RTPStats;
1277
+ toJSON(message: RTPStats): unknown;
1278
+ fromPartial<I extends {
1279
+ startTime?: Date | undefined;
1280
+ endTime?: Date | undefined;
1281
+ duration?: number | undefined;
1282
+ packets?: number | undefined;
1283
+ packetRate?: number | undefined;
1284
+ bytes?: number | undefined;
1285
+ headerBytes?: number | undefined;
1286
+ bitrate?: number | undefined;
1287
+ packetsLost?: number | undefined;
1288
+ packetLossRate?: number | undefined;
1289
+ packetLossPercentage?: number | undefined;
1290
+ packetsDuplicate?: number | undefined;
1291
+ packetDuplicateRate?: number | undefined;
1292
+ bytesDuplicate?: number | undefined;
1293
+ headerBytesDuplicate?: number | undefined;
1294
+ bitrateDuplicate?: number | undefined;
1295
+ packetsPadding?: number | undefined;
1296
+ packetPaddingRate?: number | undefined;
1297
+ bytesPadding?: number | undefined;
1298
+ headerBytesPadding?: number | undefined;
1299
+ bitratePadding?: number | undefined;
1300
+ packetsOutOfOrder?: number | undefined;
1301
+ frames?: number | undefined;
1302
+ frameRate?: number | undefined;
1303
+ jitterCurrent?: number | undefined;
1304
+ jitterMax?: number | undefined;
1305
+ gapHistogram?: {
1306
+ [x: number]: number | undefined;
1307
+ } | undefined;
1308
+ nacks?: number | undefined;
1309
+ nackAcks?: number | undefined;
1310
+ nackMisses?: number | undefined;
1311
+ nackRepeated?: number | undefined;
1312
+ plis?: number | undefined;
1313
+ lastPli?: Date | undefined;
1314
+ firs?: number | undefined;
1315
+ lastFir?: Date | undefined;
1316
+ rttCurrent?: number | undefined;
1317
+ rttMax?: number | undefined;
1318
+ keyFrames?: number | undefined;
1319
+ lastKeyFrame?: Date | undefined;
1320
+ layerLockPlis?: number | undefined;
1321
+ lastLayerLockPli?: Date | undefined;
1322
+ } & {
1323
+ startTime?: Date | undefined;
1324
+ endTime?: Date | undefined;
1325
+ duration?: number | undefined;
1326
+ packets?: number | undefined;
1327
+ packetRate?: number | undefined;
1328
+ bytes?: number | undefined;
1329
+ headerBytes?: number | undefined;
1330
+ bitrate?: number | undefined;
1331
+ packetsLost?: number | undefined;
1332
+ packetLossRate?: number | undefined;
1333
+ packetLossPercentage?: number | undefined;
1334
+ packetsDuplicate?: number | undefined;
1335
+ packetDuplicateRate?: number | undefined;
1336
+ bytesDuplicate?: number | undefined;
1337
+ headerBytesDuplicate?: number | undefined;
1338
+ bitrateDuplicate?: number | undefined;
1339
+ packetsPadding?: number | undefined;
1340
+ packetPaddingRate?: number | undefined;
1341
+ bytesPadding?: number | undefined;
1342
+ headerBytesPadding?: number | undefined;
1343
+ bitratePadding?: number | undefined;
1344
+ packetsOutOfOrder?: number | undefined;
1345
+ frames?: number | undefined;
1346
+ frameRate?: number | undefined;
1347
+ jitterCurrent?: number | undefined;
1348
+ jitterMax?: number | undefined;
1349
+ gapHistogram?: ({
1350
+ [x: number]: number | undefined;
1351
+ } & {
1352
+ [x: number]: number | undefined;
1353
+ } & {
1354
+ [K in Exclude<keyof I["gapHistogram"], number>]: never;
1355
+ }) | undefined;
1356
+ nacks?: number | undefined;
1357
+ nackAcks?: number | undefined;
1358
+ nackMisses?: number | undefined;
1359
+ nackRepeated?: number | undefined;
1360
+ plis?: number | undefined;
1361
+ lastPli?: Date | undefined;
1362
+ firs?: number | undefined;
1363
+ lastFir?: Date | undefined;
1364
+ rttCurrent?: number | undefined;
1365
+ rttMax?: number | undefined;
1366
+ keyFrames?: number | undefined;
1367
+ lastKeyFrame?: Date | undefined;
1368
+ layerLockPlis?: number | undefined;
1369
+ lastLayerLockPli?: Date | undefined;
1370
+ } & {
1371
+ [K_1 in Exclude<keyof I, keyof RTPStats>]: never;
1372
+ }>(object: I): RTPStats;
1373
+ };
1374
+ export declare const RTPStats_GapHistogramEntry: {
1375
+ encode(message: RTPStats_GapHistogramEntry, writer?: _m0.Writer): _m0.Writer;
1376
+ decode(input: _m0.Reader | Uint8Array, length?: number): RTPStats_GapHistogramEntry;
1377
+ fromJSON(object: any): RTPStats_GapHistogramEntry;
1378
+ toJSON(message: RTPStats_GapHistogramEntry): unknown;
1379
+ fromPartial<I extends {
1380
+ key?: number | undefined;
1381
+ value?: number | undefined;
1382
+ } & {
1383
+ key?: number | undefined;
1384
+ value?: number | undefined;
1385
+ } & {
1386
+ [K in Exclude<keyof I, keyof RTPStats_GapHistogramEntry>]: never;
1387
+ }>(object: I): RTPStats_GapHistogramEntry;
1388
+ };
1389
+ export declare const TimedVersion: {
1390
+ encode(message: TimedVersion, writer?: _m0.Writer): _m0.Writer;
1391
+ decode(input: _m0.Reader | Uint8Array, length?: number): TimedVersion;
1392
+ fromJSON(object: any): TimedVersion;
1393
+ toJSON(message: TimedVersion): unknown;
1394
+ fromPartial<I extends {
1395
+ unixMicro?: number | undefined;
1396
+ ticks?: number | undefined;
1397
+ } & {
1398
+ unixMicro?: number | undefined;
1399
+ ticks?: number | undefined;
1400
+ } & {
1401
+ [K in Exclude<keyof I, keyof TimedVersion>]: never;
1402
+ }>(object: I): TimedVersion;
1403
+ };
1404
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
1405
+ export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {
1406
+ $case: string;
1407
+ } ? {
1408
+ [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
1409
+ } & {
1410
+ $case: T["$case"];
1411
+ } : T extends {} ? {
1412
+ [K in keyof T]?: DeepPartial<T[K]>;
1413
+ } : Partial<T>;
1414
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
1415
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
1416
+ [K in keyof P]: Exact<P[K], I[K]>;
1417
+ } & {
1418
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
1419
+ };
1420
+ export {};
1421
+ //# sourceMappingURL=livekit_models.d.ts.map