@livekit/rtc-node 0.10.4 → 0.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (136) hide show
  1. package/README.md +54 -2
  2. package/build.rs +1 -1
  3. package/dist/audio_frame.d.ts +1 -1
  4. package/dist/audio_frame.d.ts.map +1 -1
  5. package/dist/audio_frame.js +4 -4
  6. package/dist/audio_frame.js.map +1 -1
  7. package/dist/audio_resampler.d.ts.map +1 -1
  8. package/dist/audio_resampler.js +8 -7
  9. package/dist/audio_resampler.js.map +1 -1
  10. package/dist/audio_source.d.ts.map +1 -1
  11. package/dist/audio_source.js +8 -4
  12. package/dist/audio_source.js.map +1 -1
  13. package/dist/audio_stream.d.ts +1 -1
  14. package/dist/audio_stream.d.ts.map +1 -1
  15. package/dist/audio_stream.js +4 -3
  16. package/dist/audio_stream.js.map +1 -1
  17. package/dist/e2ee.d.ts.map +1 -1
  18. package/dist/e2ee.js +25 -25
  19. package/dist/e2ee.js.map +1 -1
  20. package/dist/ffi_client.d.ts +3 -3
  21. package/dist/ffi_client.d.ts.map +1 -1
  22. package/dist/ffi_client.js +9 -7
  23. package/dist/ffi_client.js.map +1 -1
  24. package/dist/index.d.ts +29 -1
  25. package/dist/index.d.ts.map +1 -1
  26. package/dist/index.js +34 -4
  27. package/dist/index.js.map +1 -1
  28. package/dist/napi/native.d.ts +1 -0
  29. package/dist/participant.d.ts +48 -2
  30. package/dist/participant.d.ts.map +1 -1
  31. package/dist/participant.js +143 -24
  32. package/dist/participant.js.map +1 -1
  33. package/dist/proto/audio_frame_pb.d.ts +451 -526
  34. package/dist/proto/audio_frame_pb.d.ts.map +1 -1
  35. package/dist/proto/audio_frame_pb.js +200 -1179
  36. package/dist/proto/audio_frame_pb.js.map +1 -1
  37. package/dist/proto/e2ee_pb.d.ts +264 -333
  38. package/dist/proto/e2ee_pb.d.ts.map +1 -1
  39. package/dist/proto/e2ee_pb.js +136 -810
  40. package/dist/proto/e2ee_pb.js.map +1 -1
  41. package/dist/proto/ffi_pb.d.ts +175 -129
  42. package/dist/proto/ffi_pb.d.ts.map +1 -1
  43. package/dist/proto/ffi_pb.js +58 -395
  44. package/dist/proto/ffi_pb.js.map +1 -1
  45. package/dist/proto/handle_pb.d.ts +14 -13
  46. package/dist/proto/handle_pb.d.ts.map +1 -1
  47. package/dist/proto/handle_pb.js +8 -39
  48. package/dist/proto/handle_pb.js.map +1 -1
  49. package/dist/proto/participant_pb.d.ts +54 -52
  50. package/dist/proto/participant_pb.d.ts.map +1 -1
  51. package/dist/proto/participant_pb.js +18 -90
  52. package/dist/proto/participant_pb.js.map +1 -1
  53. package/dist/proto/room_pb.d.ts +1042 -1187
  54. package/dist/proto/room_pb.d.ts.map +1 -1
  55. package/dist/proto/room_pb.js +470 -2938
  56. package/dist/proto/room_pb.js.map +1 -1
  57. package/dist/proto/rpc_pb.d.ts +235 -0
  58. package/dist/proto/rpc_pb.d.ts.map +1 -0
  59. package/dist/proto/rpc_pb.js +74 -0
  60. package/dist/proto/rpc_pb.js.map +1 -0
  61. package/dist/proto/stats_pb.d.ts +738 -800
  62. package/dist/proto/stats_pb.d.ts.map +1 -1
  63. package/dist/proto/stats_pb.js +218 -1960
  64. package/dist/proto/stats_pb.js.map +1 -1
  65. package/dist/proto/track_pb.d.ts +225 -258
  66. package/dist/proto/track_pb.d.ts.map +1 -1
  67. package/dist/proto/track_pb.js +98 -591
  68. package/dist/proto/track_pb.js.map +1 -1
  69. package/dist/proto/video_frame_pb.d.ts +357 -390
  70. package/dist/proto/video_frame_pb.d.ts.map +1 -1
  71. package/dist/proto/video_frame_pb.js +137 -790
  72. package/dist/proto/video_frame_pb.js.map +1 -1
  73. package/dist/room.d.ts +21 -7
  74. package/dist/room.d.ts.map +1 -1
  75. package/dist/room.js +134 -54
  76. package/dist/room.js.map +1 -1
  77. package/dist/rpc.d.ts +78 -0
  78. package/dist/rpc.d.ts.map +1 -0
  79. package/dist/rpc.js +69 -0
  80. package/dist/rpc.js.map +1 -0
  81. package/dist/track.d.ts.map +1 -1
  82. package/dist/track.js +7 -3
  83. package/dist/track.js.map +1 -1
  84. package/dist/track_publication.d.ts.map +1 -1
  85. package/dist/track_publication.js +3 -2
  86. package/dist/track_publication.js.map +1 -1
  87. package/dist/version.d.ts +2 -0
  88. package/dist/version.d.ts.map +1 -0
  89. package/dist/version.js +2 -0
  90. package/dist/version.js.map +1 -0
  91. package/dist/video_frame.d.ts +2 -2
  92. package/dist/video_frame.d.ts.map +1 -1
  93. package/dist/video_frame.js +47 -25
  94. package/dist/video_frame.js.map +1 -1
  95. package/dist/video_source.d.ts.map +1 -1
  96. package/dist/video_source.js +4 -3
  97. package/dist/video_source.js.map +1 -1
  98. package/dist/video_stream.d.ts +1 -1
  99. package/dist/video_stream.d.ts.map +1 -1
  100. package/dist/video_stream.js +7 -3
  101. package/dist/video_stream.js.map +1 -1
  102. package/package.json +13 -10
  103. package/src/audio_frame.ts +6 -6
  104. package/src/audio_resampler.ts +10 -9
  105. package/src/audio_source.ts +9 -8
  106. package/src/audio_stream.ts +7 -6
  107. package/src/e2ee.ts +34 -34
  108. package/src/ffi_client.ts +23 -10
  109. package/src/index.ts +61 -2
  110. package/src/napi/native.d.ts +1 -0
  111. package/src/nodejs.rs +6 -3
  112. package/src/participant.ts +207 -47
  113. package/src/proto/audio_frame_pb.ts +562 -1279
  114. package/src/proto/e2ee_pb.ts +365 -886
  115. package/src/proto/ffi_pb.ts +206 -405
  116. package/src/proto/handle_pb.ts +21 -35
  117. package/src/proto/participant_pb.ts +71 -112
  118. package/src/proto/room_pb.ts +1284 -2995
  119. package/src/proto/rpc_pb.ts +310 -0
  120. package/src/proto/stats_pb.ts +1028 -1947
  121. package/src/proto/track_pb.ts +287 -621
  122. package/src/proto/video_frame_pb.ts +445 -905
  123. package/src/room.ts +181 -75
  124. package/src/rpc.ts +121 -0
  125. package/src/track.ts +8 -7
  126. package/src/track_publication.ts +5 -4
  127. package/src/version.ts +1 -0
  128. package/src/video_frame.ts +54 -27
  129. package/src/video_source.ts +7 -6
  130. package/src/video_stream.ts +7 -6
  131. package/dist/utils.d.ts +0 -7
  132. package/dist/utils.d.ts.map +0 -1
  133. package/dist/utils.js +0 -48
  134. package/dist/utils.js.map +0 -1
  135. package/src/utils.test.ts +0 -47
  136. package/src/utils.ts +0 -44
@@ -1,469 +1,320 @@
1
- import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
2
- import { Message, proto3 } from "@bufbuild/protobuf";
3
- import { OwnedParticipant } from "./participant_pb.js";
4
- import { OwnedTrack, OwnedTrackPublication, TrackSource } from "./track_pb.js";
5
- import { RtcStats } from "./stats_pb.js";
6
- import { VideoCodec } from "./video_frame_pb.js";
7
- import { E2eeOptions, EncryptionState } from "./e2ee_pb.js";
8
- import { FfiOwnedHandle } from "./handle_pb.js";
1
+ import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
2
+ import type { E2eeOptions, EncryptionState } from "./e2ee_pb";
3
+ import type { FfiOwnedHandle } from "./handle_pb";
4
+ import type { OwnedParticipant } from "./participant_pb";
5
+ import type { OwnedTrack, OwnedTrackPublication, TrackSource } from "./track_pb";
6
+ import type { VideoCodec } from "./video_frame_pb";
7
+ import type { RtcStats } from "./stats_pb";
8
+ import type { Message } from "@bufbuild/protobuf";
9
9
  /**
10
- * @generated from enum livekit.proto.IceTransportType
10
+ * Describes the file room.proto.
11
11
  */
12
- export declare enum IceTransportType {
12
+ export declare const file_room: GenFile;
13
+ /**
14
+ * Connect to a new LiveKit room
15
+ *
16
+ * @generated from message livekit.proto.ConnectRequest
17
+ */
18
+ export type ConnectRequest = Message<"livekit.proto.ConnectRequest"> & {
13
19
  /**
14
- * @generated from enum value: TRANSPORT_RELAY = 0;
20
+ * @generated from field: required string url = 1;
15
21
  */
16
- TRANSPORT_RELAY = 0,
22
+ url: string;
17
23
  /**
18
- * @generated from enum value: TRANSPORT_NOHOST = 1;
24
+ * @generated from field: required string token = 2;
19
25
  */
20
- TRANSPORT_NOHOST = 1,
26
+ token: string;
21
27
  /**
22
- * @generated from enum value: TRANSPORT_ALL = 2;
28
+ * @generated from field: required livekit.proto.RoomOptions options = 3;
23
29
  */
24
- TRANSPORT_ALL = 2
25
- }
30
+ options?: RoomOptions;
31
+ };
26
32
  /**
27
- * @generated from enum livekit.proto.ContinualGatheringPolicy
33
+ * Describes the message livekit.proto.ConnectRequest.
34
+ * Use `create(ConnectRequestSchema)` to create a new message.
28
35
  */
29
- export declare enum ContinualGatheringPolicy {
30
- /**
31
- * @generated from enum value: GATHER_ONCE = 0;
32
- */
33
- GATHER_ONCE = 0,
34
- /**
35
- * @generated from enum value: GATHER_CONTINUALLY = 1;
36
- */
37
- GATHER_CONTINUALLY = 1
38
- }
36
+ export declare const ConnectRequestSchema: GenMessage<ConnectRequest>;
39
37
  /**
40
- * @generated from enum livekit.proto.ConnectionQuality
38
+ * @generated from message livekit.proto.ConnectResponse
41
39
  */
42
- export declare enum ConnectionQuality {
40
+ export type ConnectResponse = Message<"livekit.proto.ConnectResponse"> & {
43
41
  /**
44
- * @generated from enum value: QUALITY_POOR = 0;
42
+ * @generated from field: required uint64 async_id = 1;
45
43
  */
46
- QUALITY_POOR = 0,
47
- /**
48
- * @generated from enum value: QUALITY_GOOD = 1;
49
- */
50
- QUALITY_GOOD = 1,
51
- /**
52
- * @generated from enum value: QUALITY_EXCELLENT = 2;
53
- */
54
- QUALITY_EXCELLENT = 2,
55
- /**
56
- * @generated from enum value: QUALITY_LOST = 3;
57
- */
58
- QUALITY_LOST = 3
59
- }
44
+ asyncId: bigint;
45
+ };
60
46
  /**
61
- * @generated from enum livekit.proto.ConnectionState
47
+ * Describes the message livekit.proto.ConnectResponse.
48
+ * Use `create(ConnectResponseSchema)` to create a new message.
62
49
  */
63
- export declare enum ConnectionState {
64
- /**
65
- * @generated from enum value: CONN_DISCONNECTED = 0;
66
- */
67
- CONN_DISCONNECTED = 0,
68
- /**
69
- * @generated from enum value: CONN_CONNECTED = 1;
70
- */
71
- CONN_CONNECTED = 1,
72
- /**
73
- * @generated from enum value: CONN_RECONNECTING = 2;
74
- */
75
- CONN_RECONNECTING = 2
76
- }
50
+ export declare const ConnectResponseSchema: GenMessage<ConnectResponse>;
77
51
  /**
78
- * @generated from enum livekit.proto.DataPacketKind
52
+ * @generated from message livekit.proto.ConnectCallback
79
53
  */
80
- export declare enum DataPacketKind {
54
+ export type ConnectCallback = Message<"livekit.proto.ConnectCallback"> & {
81
55
  /**
82
- * @generated from enum value: KIND_LOSSY = 0;
56
+ * @generated from field: required uint64 async_id = 1;
83
57
  */
84
- KIND_LOSSY = 0,
58
+ asyncId: bigint;
85
59
  /**
86
- * @generated from enum value: KIND_RELIABLE = 1;
60
+ * @generated from oneof livekit.proto.ConnectCallback.message
87
61
  */
88
- KIND_RELIABLE = 1
89
- }
62
+ message: {
63
+ /**
64
+ * @generated from field: string error = 2;
65
+ */
66
+ value: string;
67
+ case: "error";
68
+ } | {
69
+ /**
70
+ * @generated from field: livekit.proto.ConnectCallback.Result result = 3;
71
+ */
72
+ value: ConnectCallback_Result;
73
+ case: "result";
74
+ } | {
75
+ case: undefined;
76
+ value?: undefined;
77
+ };
78
+ };
90
79
  /**
91
- * @generated from enum livekit.proto.DisconnectReason
80
+ * Describes the message livekit.proto.ConnectCallback.
81
+ * Use `create(ConnectCallbackSchema)` to create a new message.
92
82
  */
93
- export declare enum DisconnectReason {
94
- /**
95
- * @generated from enum value: UNKNOWN_REASON = 0;
96
- */
97
- UNKNOWN_REASON = 0,
98
- /**
99
- * the client initiated the disconnect
100
- *
101
- * @generated from enum value: CLIENT_INITIATED = 1;
102
- */
103
- CLIENT_INITIATED = 1,
104
- /**
105
- * another participant with the same identity has joined the room
106
- *
107
- * @generated from enum value: DUPLICATE_IDENTITY = 2;
108
- */
109
- DUPLICATE_IDENTITY = 2,
110
- /**
111
- * the server instance is shutting down
112
- *
113
- * @generated from enum value: SERVER_SHUTDOWN = 3;
114
- */
115
- SERVER_SHUTDOWN = 3,
116
- /**
117
- * RoomService.RemoveParticipant was called
118
- *
119
- * @generated from enum value: PARTICIPANT_REMOVED = 4;
120
- */
121
- PARTICIPANT_REMOVED = 4,
122
- /**
123
- * RoomService.DeleteRoom was called
124
- *
125
- * @generated from enum value: ROOM_DELETED = 5;
126
- */
127
- ROOM_DELETED = 5,
128
- /**
129
- * the client is attempting to resume a session, but server is not aware of it
130
- *
131
- * @generated from enum value: STATE_MISMATCH = 6;
132
- */
133
- STATE_MISMATCH = 6,
134
- /**
135
- * client was unable to connect fully
136
- *
137
- * @generated from enum value: JOIN_FAILURE = 7;
138
- */
139
- JOIN_FAILURE = 7,
140
- /**
141
- * Cloud-only, the server requested Participant to migrate the connection elsewhere
142
- *
143
- * @generated from enum value: MIGRATION = 8;
144
- */
145
- MIGRATION = 8,
146
- /**
147
- * the signal websocket was closed unexpectedly
148
- *
149
- * @generated from enum value: SIGNAL_CLOSE = 9;
150
- */
151
- SIGNAL_CLOSE = 9,
152
- /**
153
- * the room was closed, due to all Standard and Ingress participants having left
154
- *
155
- * @generated from enum value: ROOM_CLOSED = 10;
156
- */
157
- ROOM_CLOSED = 10
158
- }
83
+ export declare const ConnectCallbackSchema: GenMessage<ConnectCallback>;
159
84
  /**
160
- * Connect to a new LiveKit room
161
- *
162
- * @generated from message livekit.proto.ConnectRequest
85
+ * @generated from message livekit.proto.ConnectCallback.ParticipantWithTracks
163
86
  */
164
- export declare class ConnectRequest extends Message<ConnectRequest> {
87
+ export type ConnectCallback_ParticipantWithTracks = Message<"livekit.proto.ConnectCallback.ParticipantWithTracks"> & {
165
88
  /**
166
- * @generated from field: string url = 1;
89
+ * @generated from field: required livekit.proto.OwnedParticipant participant = 1;
167
90
  */
168
- url: string;
169
- /**
170
- * @generated from field: string token = 2;
171
- */
172
- token: string;
91
+ participant?: OwnedParticipant;
173
92
  /**
174
- * @generated from field: livekit.proto.RoomOptions options = 3;
93
+ * TrackInfo are not needed here, if we're subscribed to a track, the FfiServer will send
94
+ * a TrackSubscribed event
95
+ *
96
+ * @generated from field: repeated livekit.proto.OwnedTrackPublication publications = 2;
175
97
  */
176
- options?: RoomOptions;
177
- constructor(data?: PartialMessage<ConnectRequest>);
178
- static readonly runtime: typeof proto3;
179
- static readonly typeName = "livekit.proto.ConnectRequest";
180
- static readonly fields: FieldList;
181
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ConnectRequest;
182
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ConnectRequest;
183
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ConnectRequest;
184
- static equals(a: ConnectRequest | PlainMessage<ConnectRequest> | undefined, b: ConnectRequest | PlainMessage<ConnectRequest> | undefined): boolean;
185
- }
98
+ publications: OwnedTrackPublication[];
99
+ };
186
100
  /**
187
- * @generated from message livekit.proto.ConnectResponse
101
+ * Describes the message livekit.proto.ConnectCallback.ParticipantWithTracks.
102
+ * Use `create(ConnectCallback_ParticipantWithTracksSchema)` to create a new message.
188
103
  */
189
- export declare class ConnectResponse extends Message<ConnectResponse> {
190
- /**
191
- * @generated from field: uint64 async_id = 1;
192
- */
193
- asyncId: bigint;
194
- constructor(data?: PartialMessage<ConnectResponse>);
195
- static readonly runtime: typeof proto3;
196
- static readonly typeName = "livekit.proto.ConnectResponse";
197
- static readonly fields: FieldList;
198
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ConnectResponse;
199
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ConnectResponse;
200
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ConnectResponse;
201
- static equals(a: ConnectResponse | PlainMessage<ConnectResponse> | undefined, b: ConnectResponse | PlainMessage<ConnectResponse> | undefined): boolean;
202
- }
104
+ export declare const ConnectCallback_ParticipantWithTracksSchema: GenMessage<ConnectCallback_ParticipantWithTracks>;
203
105
  /**
204
- * @generated from message livekit.proto.ConnectCallback
106
+ * @generated from message livekit.proto.ConnectCallback.Result
205
107
  */
206
- export declare class ConnectCallback extends Message<ConnectCallback> {
207
- /**
208
- * @generated from field: uint64 async_id = 1;
209
- */
210
- asyncId: bigint;
108
+ export type ConnectCallback_Result = Message<"livekit.proto.ConnectCallback.Result"> & {
211
109
  /**
212
- * @generated from field: optional string error = 2;
213
- */
214
- error?: string;
215
- /**
216
- * @generated from field: livekit.proto.OwnedRoom room = 3;
110
+ * @generated from field: required livekit.proto.OwnedRoom room = 1;
217
111
  */
218
112
  room?: OwnedRoom;
219
113
  /**
220
- * @generated from field: livekit.proto.OwnedParticipant local_participant = 4;
114
+ * @generated from field: required livekit.proto.OwnedParticipant local_participant = 2;
221
115
  */
222
116
  localParticipant?: OwnedParticipant;
223
117
  /**
224
- * @generated from field: repeated livekit.proto.ConnectCallback.ParticipantWithTracks participants = 5;
118
+ * @generated from field: repeated livekit.proto.ConnectCallback.ParticipantWithTracks participants = 3;
225
119
  */
226
120
  participants: ConnectCallback_ParticipantWithTracks[];
227
- constructor(data?: PartialMessage<ConnectCallback>);
228
- static readonly runtime: typeof proto3;
229
- static readonly typeName = "livekit.proto.ConnectCallback";
230
- static readonly fields: FieldList;
231
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ConnectCallback;
232
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ConnectCallback;
233
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ConnectCallback;
234
- static equals(a: ConnectCallback | PlainMessage<ConnectCallback> | undefined, b: ConnectCallback | PlainMessage<ConnectCallback> | undefined): boolean;
235
- }
121
+ };
236
122
  /**
237
- * @generated from message livekit.proto.ConnectCallback.ParticipantWithTracks
123
+ * Describes the message livekit.proto.ConnectCallback.Result.
124
+ * Use `create(ConnectCallback_ResultSchema)` to create a new message.
238
125
  */
239
- export declare class ConnectCallback_ParticipantWithTracks extends Message<ConnectCallback_ParticipantWithTracks> {
240
- /**
241
- * @generated from field: livekit.proto.OwnedParticipant participant = 1;
242
- */
243
- participant?: OwnedParticipant;
244
- /**
245
- * TrackInfo are not needed here, if we're subscribed to a track, the FfiServer will send
246
- * a TrackSubscribed event
247
- *
248
- * @generated from field: repeated livekit.proto.OwnedTrackPublication publications = 2;
249
- */
250
- publications: OwnedTrackPublication[];
251
- constructor(data?: PartialMessage<ConnectCallback_ParticipantWithTracks>);
252
- static readonly runtime: typeof proto3;
253
- static readonly typeName = "livekit.proto.ConnectCallback.ParticipantWithTracks";
254
- static readonly fields: FieldList;
255
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ConnectCallback_ParticipantWithTracks;
256
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ConnectCallback_ParticipantWithTracks;
257
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ConnectCallback_ParticipantWithTracks;
258
- static equals(a: ConnectCallback_ParticipantWithTracks | PlainMessage<ConnectCallback_ParticipantWithTracks> | undefined, b: ConnectCallback_ParticipantWithTracks | PlainMessage<ConnectCallback_ParticipantWithTracks> | undefined): boolean;
259
- }
126
+ export declare const ConnectCallback_ResultSchema: GenMessage<ConnectCallback_Result>;
260
127
  /**
261
128
  * Disconnect from the a room
262
129
  *
263
130
  * @generated from message livekit.proto.DisconnectRequest
264
131
  */
265
- export declare class DisconnectRequest extends Message<DisconnectRequest> {
132
+ export type DisconnectRequest = Message<"livekit.proto.DisconnectRequest"> & {
266
133
  /**
267
- * @generated from field: uint64 room_handle = 1;
134
+ * @generated from field: required uint64 room_handle = 1;
268
135
  */
269
136
  roomHandle: bigint;
270
- constructor(data?: PartialMessage<DisconnectRequest>);
271
- static readonly runtime: typeof proto3;
272
- static readonly typeName = "livekit.proto.DisconnectRequest";
273
- static readonly fields: FieldList;
274
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DisconnectRequest;
275
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DisconnectRequest;
276
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DisconnectRequest;
277
- static equals(a: DisconnectRequest | PlainMessage<DisconnectRequest> | undefined, b: DisconnectRequest | PlainMessage<DisconnectRequest> | undefined): boolean;
278
- }
137
+ };
138
+ /**
139
+ * Describes the message livekit.proto.DisconnectRequest.
140
+ * Use `create(DisconnectRequestSchema)` to create a new message.
141
+ */
142
+ export declare const DisconnectRequestSchema: GenMessage<DisconnectRequest>;
279
143
  /**
280
144
  * @generated from message livekit.proto.DisconnectResponse
281
145
  */
282
- export declare class DisconnectResponse extends Message<DisconnectResponse> {
146
+ export type DisconnectResponse = Message<"livekit.proto.DisconnectResponse"> & {
283
147
  /**
284
- * @generated from field: uint64 async_id = 1;
148
+ * @generated from field: required uint64 async_id = 1;
285
149
  */
286
150
  asyncId: bigint;
287
- constructor(data?: PartialMessage<DisconnectResponse>);
288
- static readonly runtime: typeof proto3;
289
- static readonly typeName = "livekit.proto.DisconnectResponse";
290
- static readonly fields: FieldList;
291
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DisconnectResponse;
292
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DisconnectResponse;
293
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DisconnectResponse;
294
- static equals(a: DisconnectResponse | PlainMessage<DisconnectResponse> | undefined, b: DisconnectResponse | PlainMessage<DisconnectResponse> | undefined): boolean;
295
- }
151
+ };
152
+ /**
153
+ * Describes the message livekit.proto.DisconnectResponse.
154
+ * Use `create(DisconnectResponseSchema)` to create a new message.
155
+ */
156
+ export declare const DisconnectResponseSchema: GenMessage<DisconnectResponse>;
296
157
  /**
297
158
  * @generated from message livekit.proto.DisconnectCallback
298
159
  */
299
- export declare class DisconnectCallback extends Message<DisconnectCallback> {
160
+ export type DisconnectCallback = Message<"livekit.proto.DisconnectCallback"> & {
300
161
  /**
301
- * @generated from field: uint64 async_id = 1;
162
+ * @generated from field: required uint64 async_id = 1;
302
163
  */
303
164
  asyncId: bigint;
304
- constructor(data?: PartialMessage<DisconnectCallback>);
305
- static readonly runtime: typeof proto3;
306
- static readonly typeName = "livekit.proto.DisconnectCallback";
307
- static readonly fields: FieldList;
308
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DisconnectCallback;
309
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DisconnectCallback;
310
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DisconnectCallback;
311
- static equals(a: DisconnectCallback | PlainMessage<DisconnectCallback> | undefined, b: DisconnectCallback | PlainMessage<DisconnectCallback> | undefined): boolean;
312
- }
165
+ };
166
+ /**
167
+ * Describes the message livekit.proto.DisconnectCallback.
168
+ * Use `create(DisconnectCallbackSchema)` to create a new message.
169
+ */
170
+ export declare const DisconnectCallbackSchema: GenMessage<DisconnectCallback>;
313
171
  /**
314
172
  * Publish a track to the room
315
173
  *
316
174
  * @generated from message livekit.proto.PublishTrackRequest
317
175
  */
318
- export declare class PublishTrackRequest extends Message<PublishTrackRequest> {
176
+ export type PublishTrackRequest = Message<"livekit.proto.PublishTrackRequest"> & {
319
177
  /**
320
- * @generated from field: uint64 local_participant_handle = 1;
178
+ * @generated from field: required uint64 local_participant_handle = 1;
321
179
  */
322
180
  localParticipantHandle: bigint;
323
181
  /**
324
- * @generated from field: uint64 track_handle = 2;
182
+ * @generated from field: required uint64 track_handle = 2;
325
183
  */
326
184
  trackHandle: bigint;
327
185
  /**
328
- * @generated from field: livekit.proto.TrackPublishOptions options = 3;
186
+ * @generated from field: required livekit.proto.TrackPublishOptions options = 3;
329
187
  */
330
188
  options?: TrackPublishOptions;
331
- constructor(data?: PartialMessage<PublishTrackRequest>);
332
- static readonly runtime: typeof proto3;
333
- static readonly typeName = "livekit.proto.PublishTrackRequest";
334
- static readonly fields: FieldList;
335
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PublishTrackRequest;
336
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PublishTrackRequest;
337
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PublishTrackRequest;
338
- static equals(a: PublishTrackRequest | PlainMessage<PublishTrackRequest> | undefined, b: PublishTrackRequest | PlainMessage<PublishTrackRequest> | undefined): boolean;
339
- }
189
+ };
190
+ /**
191
+ * Describes the message livekit.proto.PublishTrackRequest.
192
+ * Use `create(PublishTrackRequestSchema)` to create a new message.
193
+ */
194
+ export declare const PublishTrackRequestSchema: GenMessage<PublishTrackRequest>;
340
195
  /**
341
196
  * @generated from message livekit.proto.PublishTrackResponse
342
197
  */
343
- export declare class PublishTrackResponse extends Message<PublishTrackResponse> {
198
+ export type PublishTrackResponse = Message<"livekit.proto.PublishTrackResponse"> & {
344
199
  /**
345
- * @generated from field: uint64 async_id = 1;
200
+ * @generated from field: required uint64 async_id = 1;
346
201
  */
347
202
  asyncId: bigint;
348
- constructor(data?: PartialMessage<PublishTrackResponse>);
349
- static readonly runtime: typeof proto3;
350
- static readonly typeName = "livekit.proto.PublishTrackResponse";
351
- static readonly fields: FieldList;
352
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PublishTrackResponse;
353
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PublishTrackResponse;
354
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PublishTrackResponse;
355
- static equals(a: PublishTrackResponse | PlainMessage<PublishTrackResponse> | undefined, b: PublishTrackResponse | PlainMessage<PublishTrackResponse> | undefined): boolean;
356
- }
203
+ };
204
+ /**
205
+ * Describes the message livekit.proto.PublishTrackResponse.
206
+ * Use `create(PublishTrackResponseSchema)` to create a new message.
207
+ */
208
+ export declare const PublishTrackResponseSchema: GenMessage<PublishTrackResponse>;
357
209
  /**
358
210
  * @generated from message livekit.proto.PublishTrackCallback
359
211
  */
360
- export declare class PublishTrackCallback extends Message<PublishTrackCallback> {
212
+ export type PublishTrackCallback = Message<"livekit.proto.PublishTrackCallback"> & {
361
213
  /**
362
- * @generated from field: uint64 async_id = 1;
214
+ * @generated from field: required uint64 async_id = 1;
363
215
  */
364
216
  asyncId: bigint;
365
217
  /**
366
- * @generated from field: optional string error = 2;
218
+ * @generated from oneof livekit.proto.PublishTrackCallback.message
367
219
  */
368
- error?: string;
369
- /**
370
- * @generated from field: livekit.proto.OwnedTrackPublication publication = 3;
371
- */
372
- publication?: OwnedTrackPublication;
373
- constructor(data?: PartialMessage<PublishTrackCallback>);
374
- static readonly runtime: typeof proto3;
375
- static readonly typeName = "livekit.proto.PublishTrackCallback";
376
- static readonly fields: FieldList;
377
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PublishTrackCallback;
378
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PublishTrackCallback;
379
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PublishTrackCallback;
380
- static equals(a: PublishTrackCallback | PlainMessage<PublishTrackCallback> | undefined, b: PublishTrackCallback | PlainMessage<PublishTrackCallback> | undefined): boolean;
381
- }
220
+ message: {
221
+ /**
222
+ * @generated from field: string error = 2;
223
+ */
224
+ value: string;
225
+ case: "error";
226
+ } | {
227
+ /**
228
+ * @generated from field: livekit.proto.OwnedTrackPublication publication = 3;
229
+ */
230
+ value: OwnedTrackPublication;
231
+ case: "publication";
232
+ } | {
233
+ case: undefined;
234
+ value?: undefined;
235
+ };
236
+ };
237
+ /**
238
+ * Describes the message livekit.proto.PublishTrackCallback.
239
+ * Use `create(PublishTrackCallbackSchema)` to create a new message.
240
+ */
241
+ export declare const PublishTrackCallbackSchema: GenMessage<PublishTrackCallback>;
382
242
  /**
383
243
  * Unpublish a track from the room
384
244
  *
385
245
  * @generated from message livekit.proto.UnpublishTrackRequest
386
246
  */
387
- export declare class UnpublishTrackRequest extends Message<UnpublishTrackRequest> {
247
+ export type UnpublishTrackRequest = Message<"livekit.proto.UnpublishTrackRequest"> & {
388
248
  /**
389
- * @generated from field: uint64 local_participant_handle = 1;
249
+ * @generated from field: required uint64 local_participant_handle = 1;
390
250
  */
391
251
  localParticipantHandle: bigint;
392
252
  /**
393
- * @generated from field: string track_sid = 2;
253
+ * @generated from field: required string track_sid = 2;
394
254
  */
395
255
  trackSid: string;
396
256
  /**
397
- * @generated from field: bool stop_on_unpublish = 3;
257
+ * @generated from field: required bool stop_on_unpublish = 3;
398
258
  */
399
259
  stopOnUnpublish: boolean;
400
- constructor(data?: PartialMessage<UnpublishTrackRequest>);
401
- static readonly runtime: typeof proto3;
402
- static readonly typeName = "livekit.proto.UnpublishTrackRequest";
403
- static readonly fields: FieldList;
404
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UnpublishTrackRequest;
405
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UnpublishTrackRequest;
406
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UnpublishTrackRequest;
407
- static equals(a: UnpublishTrackRequest | PlainMessage<UnpublishTrackRequest> | undefined, b: UnpublishTrackRequest | PlainMessage<UnpublishTrackRequest> | undefined): boolean;
408
- }
260
+ };
261
+ /**
262
+ * Describes the message livekit.proto.UnpublishTrackRequest.
263
+ * Use `create(UnpublishTrackRequestSchema)` to create a new message.
264
+ */
265
+ export declare const UnpublishTrackRequestSchema: GenMessage<UnpublishTrackRequest>;
409
266
  /**
410
267
  * @generated from message livekit.proto.UnpublishTrackResponse
411
268
  */
412
- export declare class UnpublishTrackResponse extends Message<UnpublishTrackResponse> {
269
+ export type UnpublishTrackResponse = Message<"livekit.proto.UnpublishTrackResponse"> & {
413
270
  /**
414
- * @generated from field: uint64 async_id = 1;
271
+ * @generated from field: required uint64 async_id = 1;
415
272
  */
416
273
  asyncId: bigint;
417
- constructor(data?: PartialMessage<UnpublishTrackResponse>);
418
- static readonly runtime: typeof proto3;
419
- static readonly typeName = "livekit.proto.UnpublishTrackResponse";
420
- static readonly fields: FieldList;
421
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UnpublishTrackResponse;
422
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UnpublishTrackResponse;
423
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UnpublishTrackResponse;
424
- static equals(a: UnpublishTrackResponse | PlainMessage<UnpublishTrackResponse> | undefined, b: UnpublishTrackResponse | PlainMessage<UnpublishTrackResponse> | undefined): boolean;
425
- }
274
+ };
275
+ /**
276
+ * Describes the message livekit.proto.UnpublishTrackResponse.
277
+ * Use `create(UnpublishTrackResponseSchema)` to create a new message.
278
+ */
279
+ export declare const UnpublishTrackResponseSchema: GenMessage<UnpublishTrackResponse>;
426
280
  /**
427
281
  * @generated from message livekit.proto.UnpublishTrackCallback
428
282
  */
429
- export declare class UnpublishTrackCallback extends Message<UnpublishTrackCallback> {
283
+ export type UnpublishTrackCallback = Message<"livekit.proto.UnpublishTrackCallback"> & {
430
284
  /**
431
- * @generated from field: uint64 async_id = 1;
285
+ * @generated from field: required uint64 async_id = 1;
432
286
  */
433
287
  asyncId: bigint;
434
288
  /**
435
289
  * @generated from field: optional string error = 2;
436
290
  */
437
- error?: string;
438
- constructor(data?: PartialMessage<UnpublishTrackCallback>);
439
- static readonly runtime: typeof proto3;
440
- static readonly typeName = "livekit.proto.UnpublishTrackCallback";
441
- static readonly fields: FieldList;
442
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UnpublishTrackCallback;
443
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UnpublishTrackCallback;
444
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UnpublishTrackCallback;
445
- static equals(a: UnpublishTrackCallback | PlainMessage<UnpublishTrackCallback> | undefined, b: UnpublishTrackCallback | PlainMessage<UnpublishTrackCallback> | undefined): boolean;
446
- }
291
+ error: string;
292
+ };
293
+ /**
294
+ * Describes the message livekit.proto.UnpublishTrackCallback.
295
+ * Use `create(UnpublishTrackCallbackSchema)` to create a new message.
296
+ */
297
+ export declare const UnpublishTrackCallbackSchema: GenMessage<UnpublishTrackCallback>;
447
298
  /**
448
299
  * Publish data to other participants
449
300
  *
450
301
  * @generated from message livekit.proto.PublishDataRequest
451
302
  */
452
- export declare class PublishDataRequest extends Message<PublishDataRequest> {
303
+ export type PublishDataRequest = Message<"livekit.proto.PublishDataRequest"> & {
453
304
  /**
454
- * @generated from field: uint64 local_participant_handle = 1;
305
+ * @generated from field: required uint64 local_participant_handle = 1;
455
306
  */
456
307
  localParticipantHandle: bigint;
457
308
  /**
458
- * @generated from field: uint64 data_ptr = 2;
309
+ * @generated from field: required uint64 data_ptr = 2;
459
310
  */
460
311
  dataPtr: bigint;
461
312
  /**
462
- * @generated from field: uint64 data_len = 3;
313
+ * @generated from field: required uint64 data_len = 3;
463
314
  */
464
315
  dataLen: bigint;
465
316
  /**
466
- * @generated from field: bool reliable = 4;
317
+ * @generated from field: required bool reliable = 4;
467
318
  */
468
319
  reliable: boolean;
469
320
  /**
@@ -474,267 +325,231 @@ export declare class PublishDataRequest extends Message<PublishDataRequest> {
474
325
  /**
475
326
  * @generated from field: optional string topic = 6;
476
327
  */
477
- topic?: string;
328
+ topic: string;
478
329
  /**
479
330
  * @generated from field: repeated string destination_identities = 7;
480
331
  */
481
332
  destinationIdentities: string[];
482
- constructor(data?: PartialMessage<PublishDataRequest>);
483
- static readonly runtime: typeof proto3;
484
- static readonly typeName = "livekit.proto.PublishDataRequest";
485
- static readonly fields: FieldList;
486
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PublishDataRequest;
487
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PublishDataRequest;
488
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PublishDataRequest;
489
- static equals(a: PublishDataRequest | PlainMessage<PublishDataRequest> | undefined, b: PublishDataRequest | PlainMessage<PublishDataRequest> | undefined): boolean;
490
- }
333
+ };
334
+ /**
335
+ * Describes the message livekit.proto.PublishDataRequest.
336
+ * Use `create(PublishDataRequestSchema)` to create a new message.
337
+ */
338
+ export declare const PublishDataRequestSchema: GenMessage<PublishDataRequest>;
491
339
  /**
492
340
  * @generated from message livekit.proto.PublishDataResponse
493
341
  */
494
- export declare class PublishDataResponse extends Message<PublishDataResponse> {
342
+ export type PublishDataResponse = Message<"livekit.proto.PublishDataResponse"> & {
495
343
  /**
496
- * @generated from field: uint64 async_id = 1;
344
+ * @generated from field: required uint64 async_id = 1;
497
345
  */
498
346
  asyncId: bigint;
499
- constructor(data?: PartialMessage<PublishDataResponse>);
500
- static readonly runtime: typeof proto3;
501
- static readonly typeName = "livekit.proto.PublishDataResponse";
502
- static readonly fields: FieldList;
503
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PublishDataResponse;
504
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PublishDataResponse;
505
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PublishDataResponse;
506
- static equals(a: PublishDataResponse | PlainMessage<PublishDataResponse> | undefined, b: PublishDataResponse | PlainMessage<PublishDataResponse> | undefined): boolean;
507
- }
347
+ };
348
+ /**
349
+ * Describes the message livekit.proto.PublishDataResponse.
350
+ * Use `create(PublishDataResponseSchema)` to create a new message.
351
+ */
352
+ export declare const PublishDataResponseSchema: GenMessage<PublishDataResponse>;
508
353
  /**
509
354
  * @generated from message livekit.proto.PublishDataCallback
510
355
  */
511
- export declare class PublishDataCallback extends Message<PublishDataCallback> {
356
+ export type PublishDataCallback = Message<"livekit.proto.PublishDataCallback"> & {
512
357
  /**
513
- * @generated from field: uint64 async_id = 1;
358
+ * @generated from field: required uint64 async_id = 1;
514
359
  */
515
360
  asyncId: bigint;
516
361
  /**
517
362
  * @generated from field: optional string error = 2;
518
363
  */
519
- error?: string;
520
- constructor(data?: PartialMessage<PublishDataCallback>);
521
- static readonly runtime: typeof proto3;
522
- static readonly typeName = "livekit.proto.PublishDataCallback";
523
- static readonly fields: FieldList;
524
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PublishDataCallback;
525
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PublishDataCallback;
526
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PublishDataCallback;
527
- static equals(a: PublishDataCallback | PlainMessage<PublishDataCallback> | undefined, b: PublishDataCallback | PlainMessage<PublishDataCallback> | undefined): boolean;
528
- }
364
+ error: string;
365
+ };
366
+ /**
367
+ * Describes the message livekit.proto.PublishDataCallback.
368
+ * Use `create(PublishDataCallbackSchema)` to create a new message.
369
+ */
370
+ export declare const PublishDataCallbackSchema: GenMessage<PublishDataCallback>;
529
371
  /**
530
372
  * Publish transcription messages to room
531
373
  *
532
374
  * @generated from message livekit.proto.PublishTranscriptionRequest
533
375
  */
534
- export declare class PublishTranscriptionRequest extends Message<PublishTranscriptionRequest> {
376
+ export type PublishTranscriptionRequest = Message<"livekit.proto.PublishTranscriptionRequest"> & {
535
377
  /**
536
- * @generated from field: uint64 local_participant_handle = 1;
378
+ * @generated from field: required uint64 local_participant_handle = 1;
537
379
  */
538
380
  localParticipantHandle: bigint;
539
381
  /**
540
- * @generated from field: string participant_identity = 2;
382
+ * @generated from field: required string participant_identity = 2;
541
383
  */
542
384
  participantIdentity: string;
543
385
  /**
544
- * @generated from field: string track_id = 3;
386
+ * @generated from field: required string track_id = 3;
545
387
  */
546
388
  trackId: string;
547
389
  /**
548
390
  * @generated from field: repeated livekit.proto.TranscriptionSegment segments = 4;
549
391
  */
550
392
  segments: TranscriptionSegment[];
551
- constructor(data?: PartialMessage<PublishTranscriptionRequest>);
552
- static readonly runtime: typeof proto3;
553
- static readonly typeName = "livekit.proto.PublishTranscriptionRequest";
554
- static readonly fields: FieldList;
555
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PublishTranscriptionRequest;
556
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PublishTranscriptionRequest;
557
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PublishTranscriptionRequest;
558
- static equals(a: PublishTranscriptionRequest | PlainMessage<PublishTranscriptionRequest> | undefined, b: PublishTranscriptionRequest | PlainMessage<PublishTranscriptionRequest> | undefined): boolean;
559
- }
393
+ };
394
+ /**
395
+ * Describes the message livekit.proto.PublishTranscriptionRequest.
396
+ * Use `create(PublishTranscriptionRequestSchema)` to create a new message.
397
+ */
398
+ export declare const PublishTranscriptionRequestSchema: GenMessage<PublishTranscriptionRequest>;
560
399
  /**
561
400
  * @generated from message livekit.proto.PublishTranscriptionResponse
562
401
  */
563
- export declare class PublishTranscriptionResponse extends Message<PublishTranscriptionResponse> {
402
+ export type PublishTranscriptionResponse = Message<"livekit.proto.PublishTranscriptionResponse"> & {
564
403
  /**
565
- * @generated from field: uint64 async_id = 1;
404
+ * @generated from field: required uint64 async_id = 1;
566
405
  */
567
406
  asyncId: bigint;
568
- constructor(data?: PartialMessage<PublishTranscriptionResponse>);
569
- static readonly runtime: typeof proto3;
570
- static readonly typeName = "livekit.proto.PublishTranscriptionResponse";
571
- static readonly fields: FieldList;
572
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PublishTranscriptionResponse;
573
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PublishTranscriptionResponse;
574
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PublishTranscriptionResponse;
575
- static equals(a: PublishTranscriptionResponse | PlainMessage<PublishTranscriptionResponse> | undefined, b: PublishTranscriptionResponse | PlainMessage<PublishTranscriptionResponse> | undefined): boolean;
576
- }
407
+ };
408
+ /**
409
+ * Describes the message livekit.proto.PublishTranscriptionResponse.
410
+ * Use `create(PublishTranscriptionResponseSchema)` to create a new message.
411
+ */
412
+ export declare const PublishTranscriptionResponseSchema: GenMessage<PublishTranscriptionResponse>;
577
413
  /**
578
414
  * @generated from message livekit.proto.PublishTranscriptionCallback
579
415
  */
580
- export declare class PublishTranscriptionCallback extends Message<PublishTranscriptionCallback> {
416
+ export type PublishTranscriptionCallback = Message<"livekit.proto.PublishTranscriptionCallback"> & {
581
417
  /**
582
- * @generated from field: uint64 async_id = 1;
418
+ * @generated from field: required uint64 async_id = 1;
583
419
  */
584
420
  asyncId: bigint;
585
421
  /**
586
422
  * @generated from field: optional string error = 2;
587
423
  */
588
- error?: string;
589
- constructor(data?: PartialMessage<PublishTranscriptionCallback>);
590
- static readonly runtime: typeof proto3;
591
- static readonly typeName = "livekit.proto.PublishTranscriptionCallback";
592
- static readonly fields: FieldList;
593
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PublishTranscriptionCallback;
594
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PublishTranscriptionCallback;
595
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PublishTranscriptionCallback;
596
- static equals(a: PublishTranscriptionCallback | PlainMessage<PublishTranscriptionCallback> | undefined, b: PublishTranscriptionCallback | PlainMessage<PublishTranscriptionCallback> | undefined): boolean;
597
- }
424
+ error: string;
425
+ };
426
+ /**
427
+ * Describes the message livekit.proto.PublishTranscriptionCallback.
428
+ * Use `create(PublishTranscriptionCallbackSchema)` to create a new message.
429
+ */
430
+ export declare const PublishTranscriptionCallbackSchema: GenMessage<PublishTranscriptionCallback>;
598
431
  /**
599
432
  * Publish Sip DTMF messages to other participants
600
433
  *
601
434
  * @generated from message livekit.proto.PublishSipDtmfRequest
602
435
  */
603
- export declare class PublishSipDtmfRequest extends Message<PublishSipDtmfRequest> {
436
+ export type PublishSipDtmfRequest = Message<"livekit.proto.PublishSipDtmfRequest"> & {
604
437
  /**
605
- * @generated from field: uint64 local_participant_handle = 1;
438
+ * @generated from field: required uint64 local_participant_handle = 1;
606
439
  */
607
440
  localParticipantHandle: bigint;
608
441
  /**
609
- * @generated from field: uint32 code = 2;
442
+ * @generated from field: required uint32 code = 2;
610
443
  */
611
444
  code: number;
612
445
  /**
613
- * @generated from field: string digit = 3;
446
+ * @generated from field: required string digit = 3;
614
447
  */
615
448
  digit: string;
616
449
  /**
617
450
  * @generated from field: repeated string destination_identities = 4;
618
451
  */
619
452
  destinationIdentities: string[];
620
- constructor(data?: PartialMessage<PublishSipDtmfRequest>);
621
- static readonly runtime: typeof proto3;
622
- static readonly typeName = "livekit.proto.PublishSipDtmfRequest";
623
- static readonly fields: FieldList;
624
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PublishSipDtmfRequest;
625
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PublishSipDtmfRequest;
626
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PublishSipDtmfRequest;
627
- static equals(a: PublishSipDtmfRequest | PlainMessage<PublishSipDtmfRequest> | undefined, b: PublishSipDtmfRequest | PlainMessage<PublishSipDtmfRequest> | undefined): boolean;
628
- }
453
+ };
454
+ /**
455
+ * Describes the message livekit.proto.PublishSipDtmfRequest.
456
+ * Use `create(PublishSipDtmfRequestSchema)` to create a new message.
457
+ */
458
+ export declare const PublishSipDtmfRequestSchema: GenMessage<PublishSipDtmfRequest>;
629
459
  /**
630
460
  * @generated from message livekit.proto.PublishSipDtmfResponse
631
461
  */
632
- export declare class PublishSipDtmfResponse extends Message<PublishSipDtmfResponse> {
462
+ export type PublishSipDtmfResponse = Message<"livekit.proto.PublishSipDtmfResponse"> & {
633
463
  /**
634
- * @generated from field: uint64 async_id = 1;
464
+ * @generated from field: required uint64 async_id = 1;
635
465
  */
636
466
  asyncId: bigint;
637
- constructor(data?: PartialMessage<PublishSipDtmfResponse>);
638
- static readonly runtime: typeof proto3;
639
- static readonly typeName = "livekit.proto.PublishSipDtmfResponse";
640
- static readonly fields: FieldList;
641
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PublishSipDtmfResponse;
642
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PublishSipDtmfResponse;
643
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PublishSipDtmfResponse;
644
- static equals(a: PublishSipDtmfResponse | PlainMessage<PublishSipDtmfResponse> | undefined, b: PublishSipDtmfResponse | PlainMessage<PublishSipDtmfResponse> | undefined): boolean;
645
- }
467
+ };
468
+ /**
469
+ * Describes the message livekit.proto.PublishSipDtmfResponse.
470
+ * Use `create(PublishSipDtmfResponseSchema)` to create a new message.
471
+ */
472
+ export declare const PublishSipDtmfResponseSchema: GenMessage<PublishSipDtmfResponse>;
646
473
  /**
647
474
  * @generated from message livekit.proto.PublishSipDtmfCallback
648
475
  */
649
- export declare class PublishSipDtmfCallback extends Message<PublishSipDtmfCallback> {
476
+ export type PublishSipDtmfCallback = Message<"livekit.proto.PublishSipDtmfCallback"> & {
650
477
  /**
651
- * @generated from field: uint64 async_id = 1;
478
+ * @generated from field: required uint64 async_id = 1;
652
479
  */
653
480
  asyncId: bigint;
654
481
  /**
655
482
  * @generated from field: optional string error = 2;
656
483
  */
657
- error?: string;
658
- constructor(data?: PartialMessage<PublishSipDtmfCallback>);
659
- static readonly runtime: typeof proto3;
660
- static readonly typeName = "livekit.proto.PublishSipDtmfCallback";
661
- static readonly fields: FieldList;
662
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PublishSipDtmfCallback;
663
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PublishSipDtmfCallback;
664
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PublishSipDtmfCallback;
665
- static equals(a: PublishSipDtmfCallback | PlainMessage<PublishSipDtmfCallback> | undefined, b: PublishSipDtmfCallback | PlainMessage<PublishSipDtmfCallback> | undefined): boolean;
666
- }
484
+ error: string;
485
+ };
486
+ /**
487
+ * Describes the message livekit.proto.PublishSipDtmfCallback.
488
+ * Use `create(PublishSipDtmfCallbackSchema)` to create a new message.
489
+ */
490
+ export declare const PublishSipDtmfCallbackSchema: GenMessage<PublishSipDtmfCallback>;
667
491
  /**
668
492
  * Change the local participant's metadata
669
493
  *
670
494
  * @generated from message livekit.proto.SetLocalMetadataRequest
671
495
  */
672
- export declare class SetLocalMetadataRequest extends Message<SetLocalMetadataRequest> {
496
+ export type SetLocalMetadataRequest = Message<"livekit.proto.SetLocalMetadataRequest"> & {
673
497
  /**
674
- * @generated from field: uint64 local_participant_handle = 1;
498
+ * @generated from field: required uint64 local_participant_handle = 1;
675
499
  */
676
500
  localParticipantHandle: bigint;
677
501
  /**
678
- * @generated from field: string metadata = 2;
502
+ * @generated from field: required string metadata = 2;
679
503
  */
680
504
  metadata: string;
681
- constructor(data?: PartialMessage<SetLocalMetadataRequest>);
682
- static readonly runtime: typeof proto3;
683
- static readonly typeName = "livekit.proto.SetLocalMetadataRequest";
684
- static readonly fields: FieldList;
685
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SetLocalMetadataRequest;
686
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SetLocalMetadataRequest;
687
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SetLocalMetadataRequest;
688
- static equals(a: SetLocalMetadataRequest | PlainMessage<SetLocalMetadataRequest> | undefined, b: SetLocalMetadataRequest | PlainMessage<SetLocalMetadataRequest> | undefined): boolean;
689
- }
505
+ };
506
+ /**
507
+ * Describes the message livekit.proto.SetLocalMetadataRequest.
508
+ * Use `create(SetLocalMetadataRequestSchema)` to create a new message.
509
+ */
510
+ export declare const SetLocalMetadataRequestSchema: GenMessage<SetLocalMetadataRequest>;
690
511
  /**
691
512
  * @generated from message livekit.proto.SetLocalMetadataResponse
692
513
  */
693
- export declare class SetLocalMetadataResponse extends Message<SetLocalMetadataResponse> {
514
+ export type SetLocalMetadataResponse = Message<"livekit.proto.SetLocalMetadataResponse"> & {
694
515
  /**
695
- * @generated from field: uint64 async_id = 1;
516
+ * @generated from field: required uint64 async_id = 1;
696
517
  */
697
518
  asyncId: bigint;
698
- constructor(data?: PartialMessage<SetLocalMetadataResponse>);
699
- static readonly runtime: typeof proto3;
700
- static readonly typeName = "livekit.proto.SetLocalMetadataResponse";
701
- static readonly fields: FieldList;
702
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SetLocalMetadataResponse;
703
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SetLocalMetadataResponse;
704
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SetLocalMetadataResponse;
705
- static equals(a: SetLocalMetadataResponse | PlainMessage<SetLocalMetadataResponse> | undefined, b: SetLocalMetadataResponse | PlainMessage<SetLocalMetadataResponse> | undefined): boolean;
706
- }
519
+ };
520
+ /**
521
+ * Describes the message livekit.proto.SetLocalMetadataResponse.
522
+ * Use `create(SetLocalMetadataResponseSchema)` to create a new message.
523
+ */
524
+ export declare const SetLocalMetadataResponseSchema: GenMessage<SetLocalMetadataResponse>;
707
525
  /**
708
526
  * @generated from message livekit.proto.SetLocalMetadataCallback
709
527
  */
710
- export declare class SetLocalMetadataCallback extends Message<SetLocalMetadataCallback> {
528
+ export type SetLocalMetadataCallback = Message<"livekit.proto.SetLocalMetadataCallback"> & {
711
529
  /**
712
- * @generated from field: uint64 async_id = 1;
530
+ * @generated from field: required uint64 async_id = 1;
713
531
  */
714
532
  asyncId: bigint;
715
533
  /**
716
534
  * @generated from field: optional string error = 2;
717
535
  */
718
- error?: string;
719
- constructor(data?: PartialMessage<SetLocalMetadataCallback>);
720
- static readonly runtime: typeof proto3;
721
- static readonly typeName = "livekit.proto.SetLocalMetadataCallback";
722
- static readonly fields: FieldList;
723
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SetLocalMetadataCallback;
724
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SetLocalMetadataCallback;
725
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SetLocalMetadataCallback;
726
- static equals(a: SetLocalMetadataCallback | PlainMessage<SetLocalMetadataCallback> | undefined, b: SetLocalMetadataCallback | PlainMessage<SetLocalMetadataCallback> | undefined): boolean;
727
- }
536
+ error: string;
537
+ };
538
+ /**
539
+ * Describes the message livekit.proto.SetLocalMetadataCallback.
540
+ * Use `create(SetLocalMetadataCallbackSchema)` to create a new message.
541
+ */
542
+ export declare const SetLocalMetadataCallbackSchema: GenMessage<SetLocalMetadataCallback>;
728
543
  /**
729
544
  * @generated from message livekit.proto.SendChatMessageRequest
730
545
  */
731
- export declare class SendChatMessageRequest extends Message<SendChatMessageRequest> {
546
+ export type SendChatMessageRequest = Message<"livekit.proto.SendChatMessageRequest"> & {
732
547
  /**
733
- * @generated from field: uint64 local_participant_handle = 1;
548
+ * @generated from field: required uint64 local_participant_handle = 1;
734
549
  */
735
550
  localParticipantHandle: bigint;
736
551
  /**
737
- * @generated from field: string message = 2;
552
+ * @generated from field: required string message = 2;
738
553
  */
739
554
  message: string;
740
555
  /**
@@ -744,30 +559,27 @@ export declare class SendChatMessageRequest extends Message<SendChatMessageReque
744
559
  /**
745
560
  * @generated from field: optional string sender_identity = 4;
746
561
  */
747
- senderIdentity?: string;
748
- constructor(data?: PartialMessage<SendChatMessageRequest>);
749
- static readonly runtime: typeof proto3;
750
- static readonly typeName = "livekit.proto.SendChatMessageRequest";
751
- static readonly fields: FieldList;
752
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SendChatMessageRequest;
753
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SendChatMessageRequest;
754
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SendChatMessageRequest;
755
- static equals(a: SendChatMessageRequest | PlainMessage<SendChatMessageRequest> | undefined, b: SendChatMessageRequest | PlainMessage<SendChatMessageRequest> | undefined): boolean;
756
- }
562
+ senderIdentity: string;
563
+ };
564
+ /**
565
+ * Describes the message livekit.proto.SendChatMessageRequest.
566
+ * Use `create(SendChatMessageRequestSchema)` to create a new message.
567
+ */
568
+ export declare const SendChatMessageRequestSchema: GenMessage<SendChatMessageRequest>;
757
569
  /**
758
570
  * @generated from message livekit.proto.EditChatMessageRequest
759
571
  */
760
- export declare class EditChatMessageRequest extends Message<EditChatMessageRequest> {
572
+ export type EditChatMessageRequest = Message<"livekit.proto.EditChatMessageRequest"> & {
761
573
  /**
762
- * @generated from field: uint64 local_participant_handle = 1;
574
+ * @generated from field: required uint64 local_participant_handle = 1;
763
575
  */
764
576
  localParticipantHandle: bigint;
765
577
  /**
766
- * @generated from field: string edit_text = 2;
578
+ * @generated from field: required string edit_text = 2;
767
579
  */
768
580
  editText: string;
769
581
  /**
770
- * @generated from field: livekit.proto.ChatMessage original_message = 3;
582
+ * @generated from field: required livekit.proto.ChatMessage original_message = 3;
771
583
  */
772
584
  originalMessage?: ChatMessage;
773
585
  /**
@@ -777,432 +589,426 @@ export declare class EditChatMessageRequest extends Message<EditChatMessageReque
777
589
  /**
778
590
  * @generated from field: optional string sender_identity = 5;
779
591
  */
780
- senderIdentity?: string;
781
- constructor(data?: PartialMessage<EditChatMessageRequest>);
782
- static readonly runtime: typeof proto3;
783
- static readonly typeName = "livekit.proto.EditChatMessageRequest";
784
- static readonly fields: FieldList;
785
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EditChatMessageRequest;
786
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EditChatMessageRequest;
787
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EditChatMessageRequest;
788
- static equals(a: EditChatMessageRequest | PlainMessage<EditChatMessageRequest> | undefined, b: EditChatMessageRequest | PlainMessage<EditChatMessageRequest> | undefined): boolean;
789
- }
592
+ senderIdentity: string;
593
+ };
594
+ /**
595
+ * Describes the message livekit.proto.EditChatMessageRequest.
596
+ * Use `create(EditChatMessageRequestSchema)` to create a new message.
597
+ */
598
+ export declare const EditChatMessageRequestSchema: GenMessage<EditChatMessageRequest>;
790
599
  /**
791
600
  * @generated from message livekit.proto.SendChatMessageResponse
792
601
  */
793
- export declare class SendChatMessageResponse extends Message<SendChatMessageResponse> {
602
+ export type SendChatMessageResponse = Message<"livekit.proto.SendChatMessageResponse"> & {
794
603
  /**
795
- * @generated from field: uint64 async_id = 1;
604
+ * @generated from field: required uint64 async_id = 1;
796
605
  */
797
606
  asyncId: bigint;
798
- constructor(data?: PartialMessage<SendChatMessageResponse>);
799
- static readonly runtime: typeof proto3;
800
- static readonly typeName = "livekit.proto.SendChatMessageResponse";
801
- static readonly fields: FieldList;
802
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SendChatMessageResponse;
803
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SendChatMessageResponse;
804
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SendChatMessageResponse;
805
- static equals(a: SendChatMessageResponse | PlainMessage<SendChatMessageResponse> | undefined, b: SendChatMessageResponse | PlainMessage<SendChatMessageResponse> | undefined): boolean;
806
- }
607
+ };
608
+ /**
609
+ * Describes the message livekit.proto.SendChatMessageResponse.
610
+ * Use `create(SendChatMessageResponseSchema)` to create a new message.
611
+ */
612
+ export declare const SendChatMessageResponseSchema: GenMessage<SendChatMessageResponse>;
807
613
  /**
808
614
  * @generated from message livekit.proto.SendChatMessageCallback
809
615
  */
810
- export declare class SendChatMessageCallback extends Message<SendChatMessageCallback> {
616
+ export type SendChatMessageCallback = Message<"livekit.proto.SendChatMessageCallback"> & {
811
617
  /**
812
- * @generated from field: uint64 async_id = 1;
618
+ * @generated from field: required uint64 async_id = 1;
813
619
  */
814
620
  asyncId: bigint;
815
621
  /**
816
- * @generated from field: optional string error = 2;
622
+ * @generated from oneof livekit.proto.SendChatMessageCallback.message
817
623
  */
818
- error?: string;
819
- /**
820
- * @generated from field: optional livekit.proto.ChatMessage chat_message = 3;
821
- */
822
- chatMessage?: ChatMessage;
823
- constructor(data?: PartialMessage<SendChatMessageCallback>);
824
- static readonly runtime: typeof proto3;
825
- static readonly typeName = "livekit.proto.SendChatMessageCallback";
826
- static readonly fields: FieldList;
827
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SendChatMessageCallback;
828
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SendChatMessageCallback;
829
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SendChatMessageCallback;
830
- static equals(a: SendChatMessageCallback | PlainMessage<SendChatMessageCallback> | undefined, b: SendChatMessageCallback | PlainMessage<SendChatMessageCallback> | undefined): boolean;
831
- }
624
+ message: {
625
+ /**
626
+ * @generated from field: string error = 2;
627
+ */
628
+ value: string;
629
+ case: "error";
630
+ } | {
631
+ /**
632
+ * @generated from field: livekit.proto.ChatMessage chat_message = 3;
633
+ */
634
+ value: ChatMessage;
635
+ case: "chatMessage";
636
+ } | {
637
+ case: undefined;
638
+ value?: undefined;
639
+ };
640
+ };
641
+ /**
642
+ * Describes the message livekit.proto.SendChatMessageCallback.
643
+ * Use `create(SendChatMessageCallbackSchema)` to create a new message.
644
+ */
645
+ export declare const SendChatMessageCallbackSchema: GenMessage<SendChatMessageCallback>;
832
646
  /**
833
647
  * Change the local participant's attributes
834
648
  *
835
649
  * @generated from message livekit.proto.SetLocalAttributesRequest
836
650
  */
837
- export declare class SetLocalAttributesRequest extends Message<SetLocalAttributesRequest> {
651
+ export type SetLocalAttributesRequest = Message<"livekit.proto.SetLocalAttributesRequest"> & {
838
652
  /**
839
- * @generated from field: uint64 local_participant_handle = 1;
653
+ * @generated from field: required uint64 local_participant_handle = 1;
840
654
  */
841
655
  localParticipantHandle: bigint;
842
656
  /**
843
- * @generated from field: map<string, string> attributes = 2;
657
+ * @generated from field: repeated livekit.proto.AttributesEntry attributes = 2;
844
658
  */
845
- attributes: {
846
- [key: string]: string;
847
- };
848
- constructor(data?: PartialMessage<SetLocalAttributesRequest>);
849
- static readonly runtime: typeof proto3;
850
- static readonly typeName = "livekit.proto.SetLocalAttributesRequest";
851
- static readonly fields: FieldList;
852
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SetLocalAttributesRequest;
853
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SetLocalAttributesRequest;
854
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SetLocalAttributesRequest;
855
- static equals(a: SetLocalAttributesRequest | PlainMessage<SetLocalAttributesRequest> | undefined, b: SetLocalAttributesRequest | PlainMessage<SetLocalAttributesRequest> | undefined): boolean;
856
- }
659
+ attributes: AttributesEntry[];
660
+ };
661
+ /**
662
+ * Describes the message livekit.proto.SetLocalAttributesRequest.
663
+ * Use `create(SetLocalAttributesRequestSchema)` to create a new message.
664
+ */
665
+ export declare const SetLocalAttributesRequestSchema: GenMessage<SetLocalAttributesRequest>;
666
+ /**
667
+ * @generated from message livekit.proto.AttributesEntry
668
+ */
669
+ export type AttributesEntry = Message<"livekit.proto.AttributesEntry"> & {
670
+ /**
671
+ * @generated from field: required string key = 1;
672
+ */
673
+ key: string;
674
+ /**
675
+ * @generated from field: required string value = 2;
676
+ */
677
+ value: string;
678
+ };
679
+ /**
680
+ * Describes the message livekit.proto.AttributesEntry.
681
+ * Use `create(AttributesEntrySchema)` to create a new message.
682
+ */
683
+ export declare const AttributesEntrySchema: GenMessage<AttributesEntry>;
857
684
  /**
858
685
  * @generated from message livekit.proto.SetLocalAttributesResponse
859
686
  */
860
- export declare class SetLocalAttributesResponse extends Message<SetLocalAttributesResponse> {
687
+ export type SetLocalAttributesResponse = Message<"livekit.proto.SetLocalAttributesResponse"> & {
861
688
  /**
862
- * @generated from field: uint64 async_id = 1;
689
+ * @generated from field: required uint64 async_id = 1;
863
690
  */
864
691
  asyncId: bigint;
865
- constructor(data?: PartialMessage<SetLocalAttributesResponse>);
866
- static readonly runtime: typeof proto3;
867
- static readonly typeName = "livekit.proto.SetLocalAttributesResponse";
868
- static readonly fields: FieldList;
869
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SetLocalAttributesResponse;
870
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SetLocalAttributesResponse;
871
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SetLocalAttributesResponse;
872
- static equals(a: SetLocalAttributesResponse | PlainMessage<SetLocalAttributesResponse> | undefined, b: SetLocalAttributesResponse | PlainMessage<SetLocalAttributesResponse> | undefined): boolean;
873
- }
692
+ };
693
+ /**
694
+ * Describes the message livekit.proto.SetLocalAttributesResponse.
695
+ * Use `create(SetLocalAttributesResponseSchema)` to create a new message.
696
+ */
697
+ export declare const SetLocalAttributesResponseSchema: GenMessage<SetLocalAttributesResponse>;
874
698
  /**
875
699
  * @generated from message livekit.proto.SetLocalAttributesCallback
876
700
  */
877
- export declare class SetLocalAttributesCallback extends Message<SetLocalAttributesCallback> {
701
+ export type SetLocalAttributesCallback = Message<"livekit.proto.SetLocalAttributesCallback"> & {
878
702
  /**
879
- * @generated from field: uint64 async_id = 1;
703
+ * @generated from field: required uint64 async_id = 1;
880
704
  */
881
705
  asyncId: bigint;
882
706
  /**
883
707
  * @generated from field: optional string error = 2;
884
708
  */
885
- error?: string;
886
- constructor(data?: PartialMessage<SetLocalAttributesCallback>);
887
- static readonly runtime: typeof proto3;
888
- static readonly typeName = "livekit.proto.SetLocalAttributesCallback";
889
- static readonly fields: FieldList;
890
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SetLocalAttributesCallback;
891
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SetLocalAttributesCallback;
892
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SetLocalAttributesCallback;
893
- static equals(a: SetLocalAttributesCallback | PlainMessage<SetLocalAttributesCallback> | undefined, b: SetLocalAttributesCallback | PlainMessage<SetLocalAttributesCallback> | undefined): boolean;
894
- }
709
+ error: string;
710
+ };
711
+ /**
712
+ * Describes the message livekit.proto.SetLocalAttributesCallback.
713
+ * Use `create(SetLocalAttributesCallbackSchema)` to create a new message.
714
+ */
715
+ export declare const SetLocalAttributesCallbackSchema: GenMessage<SetLocalAttributesCallback>;
895
716
  /**
896
717
  * Change the local participant's name
897
718
  *
898
719
  * @generated from message livekit.proto.SetLocalNameRequest
899
720
  */
900
- export declare class SetLocalNameRequest extends Message<SetLocalNameRequest> {
721
+ export type SetLocalNameRequest = Message<"livekit.proto.SetLocalNameRequest"> & {
901
722
  /**
902
- * @generated from field: uint64 local_participant_handle = 1;
723
+ * @generated from field: required uint64 local_participant_handle = 1;
903
724
  */
904
725
  localParticipantHandle: bigint;
905
726
  /**
906
- * @generated from field: string name = 2;
727
+ * @generated from field: required string name = 2;
907
728
  */
908
729
  name: string;
909
- constructor(data?: PartialMessage<SetLocalNameRequest>);
910
- static readonly runtime: typeof proto3;
911
- static readonly typeName = "livekit.proto.SetLocalNameRequest";
912
- static readonly fields: FieldList;
913
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SetLocalNameRequest;
914
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SetLocalNameRequest;
915
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SetLocalNameRequest;
916
- static equals(a: SetLocalNameRequest | PlainMessage<SetLocalNameRequest> | undefined, b: SetLocalNameRequest | PlainMessage<SetLocalNameRequest> | undefined): boolean;
917
- }
730
+ };
731
+ /**
732
+ * Describes the message livekit.proto.SetLocalNameRequest.
733
+ * Use `create(SetLocalNameRequestSchema)` to create a new message.
734
+ */
735
+ export declare const SetLocalNameRequestSchema: GenMessage<SetLocalNameRequest>;
918
736
  /**
919
737
  * @generated from message livekit.proto.SetLocalNameResponse
920
738
  */
921
- export declare class SetLocalNameResponse extends Message<SetLocalNameResponse> {
739
+ export type SetLocalNameResponse = Message<"livekit.proto.SetLocalNameResponse"> & {
922
740
  /**
923
- * @generated from field: uint64 async_id = 1;
741
+ * @generated from field: required uint64 async_id = 1;
924
742
  */
925
743
  asyncId: bigint;
926
- constructor(data?: PartialMessage<SetLocalNameResponse>);
927
- static readonly runtime: typeof proto3;
928
- static readonly typeName = "livekit.proto.SetLocalNameResponse";
929
- static readonly fields: FieldList;
930
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SetLocalNameResponse;
931
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SetLocalNameResponse;
932
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SetLocalNameResponse;
933
- static equals(a: SetLocalNameResponse | PlainMessage<SetLocalNameResponse> | undefined, b: SetLocalNameResponse | PlainMessage<SetLocalNameResponse> | undefined): boolean;
934
- }
744
+ };
745
+ /**
746
+ * Describes the message livekit.proto.SetLocalNameResponse.
747
+ * Use `create(SetLocalNameResponseSchema)` to create a new message.
748
+ */
749
+ export declare const SetLocalNameResponseSchema: GenMessage<SetLocalNameResponse>;
935
750
  /**
936
751
  * @generated from message livekit.proto.SetLocalNameCallback
937
752
  */
938
- export declare class SetLocalNameCallback extends Message<SetLocalNameCallback> {
753
+ export type SetLocalNameCallback = Message<"livekit.proto.SetLocalNameCallback"> & {
939
754
  /**
940
- * @generated from field: uint64 async_id = 1;
755
+ * @generated from field: required uint64 async_id = 1;
941
756
  */
942
757
  asyncId: bigint;
943
758
  /**
944
759
  * @generated from field: optional string error = 2;
945
760
  */
946
- error?: string;
947
- constructor(data?: PartialMessage<SetLocalNameCallback>);
948
- static readonly runtime: typeof proto3;
949
- static readonly typeName = "livekit.proto.SetLocalNameCallback";
950
- static readonly fields: FieldList;
951
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SetLocalNameCallback;
952
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SetLocalNameCallback;
953
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SetLocalNameCallback;
954
- static equals(a: SetLocalNameCallback | PlainMessage<SetLocalNameCallback> | undefined, b: SetLocalNameCallback | PlainMessage<SetLocalNameCallback> | undefined): boolean;
955
- }
761
+ error: string;
762
+ };
763
+ /**
764
+ * Describes the message livekit.proto.SetLocalNameCallback.
765
+ * Use `create(SetLocalNameCallbackSchema)` to create a new message.
766
+ */
767
+ export declare const SetLocalNameCallbackSchema: GenMessage<SetLocalNameCallback>;
956
768
  /**
957
769
  * Change the "desire" to subs2ribe to a track
958
770
  *
959
771
  * @generated from message livekit.proto.SetSubscribedRequest
960
772
  */
961
- export declare class SetSubscribedRequest extends Message<SetSubscribedRequest> {
773
+ export type SetSubscribedRequest = Message<"livekit.proto.SetSubscribedRequest"> & {
962
774
  /**
963
- * @generated from field: bool subscribe = 1;
775
+ * @generated from field: required bool subscribe = 1;
964
776
  */
965
777
  subscribe: boolean;
966
778
  /**
967
- * @generated from field: uint64 publication_handle = 2;
779
+ * @generated from field: required uint64 publication_handle = 2;
968
780
  */
969
781
  publicationHandle: bigint;
970
- constructor(data?: PartialMessage<SetSubscribedRequest>);
971
- static readonly runtime: typeof proto3;
972
- static readonly typeName = "livekit.proto.SetSubscribedRequest";
973
- static readonly fields: FieldList;
974
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SetSubscribedRequest;
975
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SetSubscribedRequest;
976
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SetSubscribedRequest;
977
- static equals(a: SetSubscribedRequest | PlainMessage<SetSubscribedRequest> | undefined, b: SetSubscribedRequest | PlainMessage<SetSubscribedRequest> | undefined): boolean;
978
- }
782
+ };
783
+ /**
784
+ * Describes the message livekit.proto.SetSubscribedRequest.
785
+ * Use `create(SetSubscribedRequestSchema)` to create a new message.
786
+ */
787
+ export declare const SetSubscribedRequestSchema: GenMessage<SetSubscribedRequest>;
979
788
  /**
980
789
  * @generated from message livekit.proto.SetSubscribedResponse
981
790
  */
982
- export declare class SetSubscribedResponse extends Message<SetSubscribedResponse> {
983
- constructor(data?: PartialMessage<SetSubscribedResponse>);
984
- static readonly runtime: typeof proto3;
985
- static readonly typeName = "livekit.proto.SetSubscribedResponse";
986
- static readonly fields: FieldList;
987
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SetSubscribedResponse;
988
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SetSubscribedResponse;
989
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SetSubscribedResponse;
990
- static equals(a: SetSubscribedResponse | PlainMessage<SetSubscribedResponse> | undefined, b: SetSubscribedResponse | PlainMessage<SetSubscribedResponse> | undefined): boolean;
991
- }
791
+ export type SetSubscribedResponse = Message<"livekit.proto.SetSubscribedResponse"> & {};
792
+ /**
793
+ * Describes the message livekit.proto.SetSubscribedResponse.
794
+ * Use `create(SetSubscribedResponseSchema)` to create a new message.
795
+ */
796
+ export declare const SetSubscribedResponseSchema: GenMessage<SetSubscribedResponse>;
992
797
  /**
993
798
  * @generated from message livekit.proto.GetSessionStatsRequest
994
799
  */
995
- export declare class GetSessionStatsRequest extends Message<GetSessionStatsRequest> {
800
+ export type GetSessionStatsRequest = Message<"livekit.proto.GetSessionStatsRequest"> & {
996
801
  /**
997
- * @generated from field: uint64 room_handle = 1;
802
+ * @generated from field: required uint64 room_handle = 1;
998
803
  */
999
804
  roomHandle: bigint;
1000
- constructor(data?: PartialMessage<GetSessionStatsRequest>);
1001
- static readonly runtime: typeof proto3;
1002
- static readonly typeName = "livekit.proto.GetSessionStatsRequest";
1003
- static readonly fields: FieldList;
1004
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetSessionStatsRequest;
1005
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetSessionStatsRequest;
1006
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetSessionStatsRequest;
1007
- static equals(a: GetSessionStatsRequest | PlainMessage<GetSessionStatsRequest> | undefined, b: GetSessionStatsRequest | PlainMessage<GetSessionStatsRequest> | undefined): boolean;
1008
- }
805
+ };
806
+ /**
807
+ * Describes the message livekit.proto.GetSessionStatsRequest.
808
+ * Use `create(GetSessionStatsRequestSchema)` to create a new message.
809
+ */
810
+ export declare const GetSessionStatsRequestSchema: GenMessage<GetSessionStatsRequest>;
1009
811
  /**
1010
812
  * @generated from message livekit.proto.GetSessionStatsResponse
1011
813
  */
1012
- export declare class GetSessionStatsResponse extends Message<GetSessionStatsResponse> {
814
+ export type GetSessionStatsResponse = Message<"livekit.proto.GetSessionStatsResponse"> & {
1013
815
  /**
1014
- * @generated from field: uint64 async_id = 1;
816
+ * @generated from field: required uint64 async_id = 1;
1015
817
  */
1016
818
  asyncId: bigint;
1017
- constructor(data?: PartialMessage<GetSessionStatsResponse>);
1018
- static readonly runtime: typeof proto3;
1019
- static readonly typeName = "livekit.proto.GetSessionStatsResponse";
1020
- static readonly fields: FieldList;
1021
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetSessionStatsResponse;
1022
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetSessionStatsResponse;
1023
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetSessionStatsResponse;
1024
- static equals(a: GetSessionStatsResponse | PlainMessage<GetSessionStatsResponse> | undefined, b: GetSessionStatsResponse | PlainMessage<GetSessionStatsResponse> | undefined): boolean;
1025
- }
819
+ };
820
+ /**
821
+ * Describes the message livekit.proto.GetSessionStatsResponse.
822
+ * Use `create(GetSessionStatsResponseSchema)` to create a new message.
823
+ */
824
+ export declare const GetSessionStatsResponseSchema: GenMessage<GetSessionStatsResponse>;
1026
825
  /**
1027
826
  * @generated from message livekit.proto.GetSessionStatsCallback
1028
827
  */
1029
- export declare class GetSessionStatsCallback extends Message<GetSessionStatsCallback> {
828
+ export type GetSessionStatsCallback = Message<"livekit.proto.GetSessionStatsCallback"> & {
1030
829
  /**
1031
- * @generated from field: uint64 async_id = 1;
830
+ * @generated from field: required uint64 async_id = 1;
1032
831
  */
1033
832
  asyncId: bigint;
1034
833
  /**
1035
- * @generated from field: optional string error = 2;
834
+ * @generated from oneof livekit.proto.GetSessionStatsCallback.message
1036
835
  */
1037
- error?: string;
836
+ message: {
837
+ /**
838
+ * @generated from field: string error = 2;
839
+ */
840
+ value: string;
841
+ case: "error";
842
+ } | {
843
+ /**
844
+ * @generated from field: livekit.proto.GetSessionStatsCallback.Result result = 3;
845
+ */
846
+ value: GetSessionStatsCallback_Result;
847
+ case: "result";
848
+ } | {
849
+ case: undefined;
850
+ value?: undefined;
851
+ };
852
+ };
853
+ /**
854
+ * Describes the message livekit.proto.GetSessionStatsCallback.
855
+ * Use `create(GetSessionStatsCallbackSchema)` to create a new message.
856
+ */
857
+ export declare const GetSessionStatsCallbackSchema: GenMessage<GetSessionStatsCallback>;
858
+ /**
859
+ * @generated from message livekit.proto.GetSessionStatsCallback.Result
860
+ */
861
+ export type GetSessionStatsCallback_Result = Message<"livekit.proto.GetSessionStatsCallback.Result"> & {
1038
862
  /**
1039
- * @generated from field: repeated livekit.proto.RtcStats publisher_stats = 3;
863
+ * @generated from field: repeated livekit.proto.RtcStats publisher_stats = 1;
1040
864
  */
1041
865
  publisherStats: RtcStats[];
1042
866
  /**
1043
- * @generated from field: repeated livekit.proto.RtcStats subscriber_stats = 4;
867
+ * @generated from field: repeated livekit.proto.RtcStats subscriber_stats = 2;
1044
868
  */
1045
869
  subscriberStats: RtcStats[];
1046
- constructor(data?: PartialMessage<GetSessionStatsCallback>);
1047
- static readonly runtime: typeof proto3;
1048
- static readonly typeName = "livekit.proto.GetSessionStatsCallback";
1049
- static readonly fields: FieldList;
1050
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetSessionStatsCallback;
1051
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetSessionStatsCallback;
1052
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetSessionStatsCallback;
1053
- static equals(a: GetSessionStatsCallback | PlainMessage<GetSessionStatsCallback> | undefined, b: GetSessionStatsCallback | PlainMessage<GetSessionStatsCallback> | undefined): boolean;
1054
- }
870
+ };
871
+ /**
872
+ * Describes the message livekit.proto.GetSessionStatsCallback.Result.
873
+ * Use `create(GetSessionStatsCallback_ResultSchema)` to create a new message.
874
+ */
875
+ export declare const GetSessionStatsCallback_ResultSchema: GenMessage<GetSessionStatsCallback_Result>;
1055
876
  /**
1056
877
  * @generated from message livekit.proto.VideoEncoding
1057
878
  */
1058
- export declare class VideoEncoding extends Message<VideoEncoding> {
879
+ export type VideoEncoding = Message<"livekit.proto.VideoEncoding"> & {
1059
880
  /**
1060
- * @generated from field: uint64 max_bitrate = 1;
881
+ * @generated from field: required uint64 max_bitrate = 1;
1061
882
  */
1062
883
  maxBitrate: bigint;
1063
884
  /**
1064
- * @generated from field: double max_framerate = 2;
885
+ * @generated from field: required double max_framerate = 2;
1065
886
  */
1066
887
  maxFramerate: number;
1067
- constructor(data?: PartialMessage<VideoEncoding>);
1068
- static readonly runtime: typeof proto3;
1069
- static readonly typeName = "livekit.proto.VideoEncoding";
1070
- static readonly fields: FieldList;
1071
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VideoEncoding;
1072
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VideoEncoding;
1073
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VideoEncoding;
1074
- static equals(a: VideoEncoding | PlainMessage<VideoEncoding> | undefined, b: VideoEncoding | PlainMessage<VideoEncoding> | undefined): boolean;
1075
- }
888
+ };
889
+ /**
890
+ * Describes the message livekit.proto.VideoEncoding.
891
+ * Use `create(VideoEncodingSchema)` to create a new message.
892
+ */
893
+ export declare const VideoEncodingSchema: GenMessage<VideoEncoding>;
1076
894
  /**
1077
895
  * @generated from message livekit.proto.AudioEncoding
1078
896
  */
1079
- export declare class AudioEncoding extends Message<AudioEncoding> {
897
+ export type AudioEncoding = Message<"livekit.proto.AudioEncoding"> & {
1080
898
  /**
1081
- * @generated from field: uint64 max_bitrate = 1;
899
+ * @generated from field: required uint64 max_bitrate = 1;
1082
900
  */
1083
901
  maxBitrate: bigint;
1084
- constructor(data?: PartialMessage<AudioEncoding>);
1085
- static readonly runtime: typeof proto3;
1086
- static readonly typeName = "livekit.proto.AudioEncoding";
1087
- static readonly fields: FieldList;
1088
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AudioEncoding;
1089
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AudioEncoding;
1090
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AudioEncoding;
1091
- static equals(a: AudioEncoding | PlainMessage<AudioEncoding> | undefined, b: AudioEncoding | PlainMessage<AudioEncoding> | undefined): boolean;
1092
- }
902
+ };
903
+ /**
904
+ * Describes the message livekit.proto.AudioEncoding.
905
+ * Use `create(AudioEncodingSchema)` to create a new message.
906
+ */
907
+ export declare const AudioEncodingSchema: GenMessage<AudioEncoding>;
1093
908
  /**
1094
909
  * @generated from message livekit.proto.TrackPublishOptions
1095
910
  */
1096
- export declare class TrackPublishOptions extends Message<TrackPublishOptions> {
911
+ export type TrackPublishOptions = Message<"livekit.proto.TrackPublishOptions"> & {
1097
912
  /**
1098
913
  * encodings are optional
1099
914
  *
1100
- * @generated from field: livekit.proto.VideoEncoding video_encoding = 1;
915
+ * @generated from field: optional livekit.proto.VideoEncoding video_encoding = 1;
1101
916
  */
1102
917
  videoEncoding?: VideoEncoding;
1103
918
  /**
1104
- * @generated from field: livekit.proto.AudioEncoding audio_encoding = 2;
919
+ * @generated from field: optional livekit.proto.AudioEncoding audio_encoding = 2;
1105
920
  */
1106
921
  audioEncoding?: AudioEncoding;
1107
922
  /**
1108
- * @generated from field: livekit.proto.VideoCodec video_codec = 3;
923
+ * @generated from field: required livekit.proto.VideoCodec video_codec = 3;
1109
924
  */
1110
925
  videoCodec: VideoCodec;
1111
926
  /**
1112
- * @generated from field: bool dtx = 4;
927
+ * @generated from field: required bool dtx = 4;
1113
928
  */
1114
929
  dtx: boolean;
1115
930
  /**
1116
- * @generated from field: bool red = 5;
931
+ * @generated from field: required bool red = 5;
1117
932
  */
1118
933
  red: boolean;
1119
934
  /**
1120
- * @generated from field: bool simulcast = 6;
935
+ * @generated from field: required bool simulcast = 6;
1121
936
  */
1122
937
  simulcast: boolean;
1123
938
  /**
1124
- * @generated from field: livekit.proto.TrackSource source = 7;
939
+ * @generated from field: required livekit.proto.TrackSource source = 7;
1125
940
  */
1126
941
  source: TrackSource;
1127
942
  /**
1128
- * @generated from field: string stream = 8;
943
+ * @generated from field: required string stream = 8;
1129
944
  */
1130
945
  stream: string;
1131
- constructor(data?: PartialMessage<TrackPublishOptions>);
1132
- static readonly runtime: typeof proto3;
1133
- static readonly typeName = "livekit.proto.TrackPublishOptions";
1134
- static readonly fields: FieldList;
1135
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TrackPublishOptions;
1136
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TrackPublishOptions;
1137
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TrackPublishOptions;
1138
- static equals(a: TrackPublishOptions | PlainMessage<TrackPublishOptions> | undefined, b: TrackPublishOptions | PlainMessage<TrackPublishOptions> | undefined): boolean;
1139
- }
946
+ };
947
+ /**
948
+ * Describes the message livekit.proto.TrackPublishOptions.
949
+ * Use `create(TrackPublishOptionsSchema)` to create a new message.
950
+ */
951
+ export declare const TrackPublishOptionsSchema: GenMessage<TrackPublishOptions>;
1140
952
  /**
1141
953
  * @generated from message livekit.proto.IceServer
1142
954
  */
1143
- export declare class IceServer extends Message<IceServer> {
955
+ export type IceServer = Message<"livekit.proto.IceServer"> & {
1144
956
  /**
1145
957
  * @generated from field: repeated string urls = 1;
1146
958
  */
1147
959
  urls: string[];
1148
960
  /**
1149
- * @generated from field: string username = 2;
961
+ * @generated from field: optional string username = 2;
1150
962
  */
1151
963
  username: string;
1152
964
  /**
1153
- * @generated from field: string password = 3;
965
+ * @generated from field: optional string password = 3;
1154
966
  */
1155
967
  password: string;
1156
- constructor(data?: PartialMessage<IceServer>);
1157
- static readonly runtime: typeof proto3;
1158
- static readonly typeName = "livekit.proto.IceServer";
1159
- static readonly fields: FieldList;
1160
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): IceServer;
1161
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): IceServer;
1162
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): IceServer;
1163
- static equals(a: IceServer | PlainMessage<IceServer> | undefined, b: IceServer | PlainMessage<IceServer> | undefined): boolean;
1164
- }
968
+ };
969
+ /**
970
+ * Describes the message livekit.proto.IceServer.
971
+ * Use `create(IceServerSchema)` to create a new message.
972
+ */
973
+ export declare const IceServerSchema: GenMessage<IceServer>;
1165
974
  /**
1166
975
  * @generated from message livekit.proto.RtcConfig
1167
976
  */
1168
- export declare class RtcConfig extends Message<RtcConfig> {
977
+ export type RtcConfig = Message<"livekit.proto.RtcConfig"> & {
1169
978
  /**
1170
979
  * @generated from field: optional livekit.proto.IceTransportType ice_transport_type = 1;
1171
980
  */
1172
- iceTransportType?: IceTransportType;
981
+ iceTransportType: IceTransportType;
1173
982
  /**
1174
983
  * @generated from field: optional livekit.proto.ContinualGatheringPolicy continual_gathering_policy = 2;
1175
984
  */
1176
- continualGatheringPolicy?: ContinualGatheringPolicy;
985
+ continualGatheringPolicy: ContinualGatheringPolicy;
1177
986
  /**
1178
987
  * empty fallback to default
1179
988
  *
1180
989
  * @generated from field: repeated livekit.proto.IceServer ice_servers = 3;
1181
990
  */
1182
991
  iceServers: IceServer[];
1183
- constructor(data?: PartialMessage<RtcConfig>);
1184
- static readonly runtime: typeof proto3;
1185
- static readonly typeName = "livekit.proto.RtcConfig";
1186
- static readonly fields: FieldList;
1187
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RtcConfig;
1188
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RtcConfig;
1189
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RtcConfig;
1190
- static equals(a: RtcConfig | PlainMessage<RtcConfig> | undefined, b: RtcConfig | PlainMessage<RtcConfig> | undefined): boolean;
1191
- }
992
+ };
993
+ /**
994
+ * Describes the message livekit.proto.RtcConfig.
995
+ * Use `create(RtcConfigSchema)` to create a new message.
996
+ */
997
+ export declare const RtcConfigSchema: GenMessage<RtcConfig>;
1192
998
  /**
1193
999
  * @generated from message livekit.proto.RoomOptions
1194
1000
  */
1195
- export declare class RoomOptions extends Message<RoomOptions> {
1001
+ export type RoomOptions = Message<"livekit.proto.RoomOptions"> & {
1196
1002
  /**
1197
- * @generated from field: bool auto_subscribe = 1;
1003
+ * @generated from field: required bool auto_subscribe = 1;
1198
1004
  */
1199
1005
  autoSubscribe: boolean;
1200
1006
  /**
1201
- * @generated from field: bool adaptive_stream = 2;
1007
+ * @generated from field: required bool adaptive_stream = 2;
1202
1008
  */
1203
1009
  adaptiveStream: boolean;
1204
1010
  /**
1205
- * @generated from field: bool dynacast = 3;
1011
+ * @generated from field: required bool dynacast = 3;
1206
1012
  */
1207
1013
  dynacast: boolean;
1208
1014
  /**
@@ -1216,103 +1022,91 @@ export declare class RoomOptions extends Message<RoomOptions> {
1216
1022
  */
1217
1023
  rtcConfig?: RtcConfig;
1218
1024
  /**
1219
- * @generated from field: uint32 join_retries = 6;
1025
+ * @generated from field: required uint32 join_retries = 6;
1220
1026
  */
1221
1027
  joinRetries: number;
1222
- constructor(data?: PartialMessage<RoomOptions>);
1223
- static readonly runtime: typeof proto3;
1224
- static readonly typeName = "livekit.proto.RoomOptions";
1225
- static readonly fields: FieldList;
1226
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RoomOptions;
1227
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RoomOptions;
1228
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RoomOptions;
1229
- static equals(a: RoomOptions | PlainMessage<RoomOptions> | undefined, b: RoomOptions | PlainMessage<RoomOptions> | undefined): boolean;
1230
- }
1028
+ };
1029
+ /**
1030
+ * Describes the message livekit.proto.RoomOptions.
1031
+ * Use `create(RoomOptionsSchema)` to create a new message.
1032
+ */
1033
+ export declare const RoomOptionsSchema: GenMessage<RoomOptions>;
1231
1034
  /**
1232
1035
  * @generated from message livekit.proto.TranscriptionSegment
1233
1036
  */
1234
- export declare class TranscriptionSegment extends Message<TranscriptionSegment> {
1037
+ export type TranscriptionSegment = Message<"livekit.proto.TranscriptionSegment"> & {
1235
1038
  /**
1236
- * @generated from field: string id = 1;
1039
+ * @generated from field: required string id = 1;
1237
1040
  */
1238
1041
  id: string;
1239
1042
  /**
1240
- * @generated from field: string text = 2;
1043
+ * @generated from field: required string text = 2;
1241
1044
  */
1242
1045
  text: string;
1243
1046
  /**
1244
- * @generated from field: uint64 start_time = 3;
1047
+ * @generated from field: required uint64 start_time = 3;
1245
1048
  */
1246
1049
  startTime: bigint;
1247
1050
  /**
1248
- * @generated from field: uint64 end_time = 4;
1051
+ * @generated from field: required uint64 end_time = 4;
1249
1052
  */
1250
1053
  endTime: bigint;
1251
1054
  /**
1252
- * @generated from field: bool final = 5;
1055
+ * @generated from field: required bool final = 5;
1253
1056
  */
1254
1057
  final: boolean;
1255
1058
  /**
1256
- * @generated from field: string language = 6;
1059
+ * @generated from field: required string language = 6;
1257
1060
  */
1258
1061
  language: string;
1259
- constructor(data?: PartialMessage<TranscriptionSegment>);
1260
- static readonly runtime: typeof proto3;
1261
- static readonly typeName = "livekit.proto.TranscriptionSegment";
1262
- static readonly fields: FieldList;
1263
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TranscriptionSegment;
1264
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TranscriptionSegment;
1265
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TranscriptionSegment;
1266
- static equals(a: TranscriptionSegment | PlainMessage<TranscriptionSegment> | undefined, b: TranscriptionSegment | PlainMessage<TranscriptionSegment> | undefined): boolean;
1267
- }
1062
+ };
1063
+ /**
1064
+ * Describes the message livekit.proto.TranscriptionSegment.
1065
+ * Use `create(TranscriptionSegmentSchema)` to create a new message.
1066
+ */
1067
+ export declare const TranscriptionSegmentSchema: GenMessage<TranscriptionSegment>;
1268
1068
  /**
1269
1069
  * @generated from message livekit.proto.BufferInfo
1270
1070
  */
1271
- export declare class BufferInfo extends Message<BufferInfo> {
1071
+ export type BufferInfo = Message<"livekit.proto.BufferInfo"> & {
1272
1072
  /**
1273
- * @generated from field: uint64 data_ptr = 1;
1073
+ * @generated from field: required uint64 data_ptr = 1;
1274
1074
  */
1275
1075
  dataPtr: bigint;
1276
1076
  /**
1277
- * @generated from field: uint64 data_len = 2;
1077
+ * @generated from field: required uint64 data_len = 2;
1278
1078
  */
1279
1079
  dataLen: bigint;
1280
- constructor(data?: PartialMessage<BufferInfo>);
1281
- static readonly runtime: typeof proto3;
1282
- static readonly typeName = "livekit.proto.BufferInfo";
1283
- static readonly fields: FieldList;
1284
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): BufferInfo;
1285
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): BufferInfo;
1286
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): BufferInfo;
1287
- static equals(a: BufferInfo | PlainMessage<BufferInfo> | undefined, b: BufferInfo | PlainMessage<BufferInfo> | undefined): boolean;
1288
- }
1080
+ };
1081
+ /**
1082
+ * Describes the message livekit.proto.BufferInfo.
1083
+ * Use `create(BufferInfoSchema)` to create a new message.
1084
+ */
1085
+ export declare const BufferInfoSchema: GenMessage<BufferInfo>;
1289
1086
  /**
1290
1087
  * @generated from message livekit.proto.OwnedBuffer
1291
1088
  */
1292
- export declare class OwnedBuffer extends Message<OwnedBuffer> {
1089
+ export type OwnedBuffer = Message<"livekit.proto.OwnedBuffer"> & {
1293
1090
  /**
1294
- * @generated from field: livekit.proto.FfiOwnedHandle handle = 1;
1091
+ * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1;
1295
1092
  */
1296
1093
  handle?: FfiOwnedHandle;
1297
1094
  /**
1298
- * @generated from field: livekit.proto.BufferInfo data = 2;
1095
+ * @generated from field: required livekit.proto.BufferInfo data = 2;
1299
1096
  */
1300
1097
  data?: BufferInfo;
1301
- constructor(data?: PartialMessage<OwnedBuffer>);
1302
- static readonly runtime: typeof proto3;
1303
- static readonly typeName = "livekit.proto.OwnedBuffer";
1304
- static readonly fields: FieldList;
1305
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OwnedBuffer;
1306
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OwnedBuffer;
1307
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OwnedBuffer;
1308
- static equals(a: OwnedBuffer | PlainMessage<OwnedBuffer> | undefined, b: OwnedBuffer | PlainMessage<OwnedBuffer> | undefined): boolean;
1309
- }
1098
+ };
1099
+ /**
1100
+ * Describes the message livekit.proto.OwnedBuffer.
1101
+ * Use `create(OwnedBufferSchema)` to create a new message.
1102
+ */
1103
+ export declare const OwnedBufferSchema: GenMessage<OwnedBuffer>;
1310
1104
  /**
1311
1105
  * @generated from message livekit.proto.RoomEvent
1312
1106
  */
1313
- export declare class RoomEvent extends Message<RoomEvent> {
1107
+ export type RoomEvent = Message<"livekit.proto.RoomEvent"> & {
1314
1108
  /**
1315
- * @generated from field: uint64 room_handle = 1;
1109
+ * @generated from field: required uint64 room_handle = 1;
1316
1110
  */
1317
1111
  roomHandle: bigint;
1318
1112
  /**
@@ -1494,583 +1288,498 @@ export declare class RoomEvent extends Message<RoomEvent> {
1494
1288
  case: undefined;
1495
1289
  value?: undefined;
1496
1290
  };
1497
- constructor(data?: PartialMessage<RoomEvent>);
1498
- static readonly runtime: typeof proto3;
1499
- static readonly typeName = "livekit.proto.RoomEvent";
1500
- static readonly fields: FieldList;
1501
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RoomEvent;
1502
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RoomEvent;
1503
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RoomEvent;
1504
- static equals(a: RoomEvent | PlainMessage<RoomEvent> | undefined, b: RoomEvent | PlainMessage<RoomEvent> | undefined): boolean;
1505
- }
1291
+ };
1292
+ /**
1293
+ * Describes the message livekit.proto.RoomEvent.
1294
+ * Use `create(RoomEventSchema)` to create a new message.
1295
+ */
1296
+ export declare const RoomEventSchema: GenMessage<RoomEvent>;
1506
1297
  /**
1507
1298
  * @generated from message livekit.proto.RoomInfo
1508
1299
  */
1509
- export declare class RoomInfo extends Message<RoomInfo> {
1300
+ export type RoomInfo = Message<"livekit.proto.RoomInfo"> & {
1510
1301
  /**
1511
1302
  * @generated from field: optional string sid = 1;
1512
1303
  */
1513
- sid?: string;
1304
+ sid: string;
1514
1305
  /**
1515
- * @generated from field: string name = 2;
1306
+ * @generated from field: required string name = 2;
1516
1307
  */
1517
1308
  name: string;
1518
1309
  /**
1519
- * @generated from field: string metadata = 3;
1310
+ * @generated from field: required string metadata = 3;
1520
1311
  */
1521
1312
  metadata: string;
1522
- constructor(data?: PartialMessage<RoomInfo>);
1523
- static readonly runtime: typeof proto3;
1524
- static readonly typeName = "livekit.proto.RoomInfo";
1525
- static readonly fields: FieldList;
1526
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RoomInfo;
1527
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RoomInfo;
1528
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RoomInfo;
1529
- static equals(a: RoomInfo | PlainMessage<RoomInfo> | undefined, b: RoomInfo | PlainMessage<RoomInfo> | undefined): boolean;
1530
- }
1313
+ };
1314
+ /**
1315
+ * Describes the message livekit.proto.RoomInfo.
1316
+ * Use `create(RoomInfoSchema)` to create a new message.
1317
+ */
1318
+ export declare const RoomInfoSchema: GenMessage<RoomInfo>;
1531
1319
  /**
1532
1320
  * @generated from message livekit.proto.OwnedRoom
1533
1321
  */
1534
- export declare class OwnedRoom extends Message<OwnedRoom> {
1322
+ export type OwnedRoom = Message<"livekit.proto.OwnedRoom"> & {
1535
1323
  /**
1536
- * @generated from field: livekit.proto.FfiOwnedHandle handle = 1;
1324
+ * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1;
1537
1325
  */
1538
1326
  handle?: FfiOwnedHandle;
1539
1327
  /**
1540
- * @generated from field: livekit.proto.RoomInfo info = 2;
1328
+ * @generated from field: required livekit.proto.RoomInfo info = 2;
1541
1329
  */
1542
1330
  info?: RoomInfo;
1543
- constructor(data?: PartialMessage<OwnedRoom>);
1544
- static readonly runtime: typeof proto3;
1545
- static readonly typeName = "livekit.proto.OwnedRoom";
1546
- static readonly fields: FieldList;
1547
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OwnedRoom;
1548
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OwnedRoom;
1549
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OwnedRoom;
1550
- static equals(a: OwnedRoom | PlainMessage<OwnedRoom> | undefined, b: OwnedRoom | PlainMessage<OwnedRoom> | undefined): boolean;
1551
- }
1331
+ };
1332
+ /**
1333
+ * Describes the message livekit.proto.OwnedRoom.
1334
+ * Use `create(OwnedRoomSchema)` to create a new message.
1335
+ */
1336
+ export declare const OwnedRoomSchema: GenMessage<OwnedRoom>;
1552
1337
  /**
1553
1338
  * @generated from message livekit.proto.ParticipantConnected
1554
1339
  */
1555
- export declare class ParticipantConnected extends Message<ParticipantConnected> {
1340
+ export type ParticipantConnected = Message<"livekit.proto.ParticipantConnected"> & {
1556
1341
  /**
1557
- * @generated from field: livekit.proto.OwnedParticipant info = 1;
1342
+ * @generated from field: required livekit.proto.OwnedParticipant info = 1;
1558
1343
  */
1559
1344
  info?: OwnedParticipant;
1560
- constructor(data?: PartialMessage<ParticipantConnected>);
1561
- static readonly runtime: typeof proto3;
1562
- static readonly typeName = "livekit.proto.ParticipantConnected";
1563
- static readonly fields: FieldList;
1564
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ParticipantConnected;
1565
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ParticipantConnected;
1566
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ParticipantConnected;
1567
- static equals(a: ParticipantConnected | PlainMessage<ParticipantConnected> | undefined, b: ParticipantConnected | PlainMessage<ParticipantConnected> | undefined): boolean;
1568
- }
1345
+ };
1346
+ /**
1347
+ * Describes the message livekit.proto.ParticipantConnected.
1348
+ * Use `create(ParticipantConnectedSchema)` to create a new message.
1349
+ */
1350
+ export declare const ParticipantConnectedSchema: GenMessage<ParticipantConnected>;
1569
1351
  /**
1570
1352
  * @generated from message livekit.proto.ParticipantDisconnected
1571
1353
  */
1572
- export declare class ParticipantDisconnected extends Message<ParticipantDisconnected> {
1354
+ export type ParticipantDisconnected = Message<"livekit.proto.ParticipantDisconnected"> & {
1573
1355
  /**
1574
- * @generated from field: string participant_identity = 1;
1356
+ * @generated from field: required string participant_identity = 1;
1575
1357
  */
1576
1358
  participantIdentity: string;
1577
- constructor(data?: PartialMessage<ParticipantDisconnected>);
1578
- static readonly runtime: typeof proto3;
1579
- static readonly typeName = "livekit.proto.ParticipantDisconnected";
1580
- static readonly fields: FieldList;
1581
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ParticipantDisconnected;
1582
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ParticipantDisconnected;
1583
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ParticipantDisconnected;
1584
- static equals(a: ParticipantDisconnected | PlainMessage<ParticipantDisconnected> | undefined, b: ParticipantDisconnected | PlainMessage<ParticipantDisconnected> | undefined): boolean;
1585
- }
1359
+ };
1360
+ /**
1361
+ * Describes the message livekit.proto.ParticipantDisconnected.
1362
+ * Use `create(ParticipantDisconnectedSchema)` to create a new message.
1363
+ */
1364
+ export declare const ParticipantDisconnectedSchema: GenMessage<ParticipantDisconnected>;
1586
1365
  /**
1587
1366
  * @generated from message livekit.proto.LocalTrackPublished
1588
1367
  */
1589
- export declare class LocalTrackPublished extends Message<LocalTrackPublished> {
1368
+ export type LocalTrackPublished = Message<"livekit.proto.LocalTrackPublished"> & {
1590
1369
  /**
1591
1370
  * The TrackPublicationInfo comes from the PublishTrack response
1592
1371
  * and the FfiClient musts wait for it before firing this event
1593
1372
  *
1594
- * @generated from field: string track_sid = 1;
1373
+ * @generated from field: required string track_sid = 1;
1595
1374
  */
1596
1375
  trackSid: string;
1597
- constructor(data?: PartialMessage<LocalTrackPublished>);
1598
- static readonly runtime: typeof proto3;
1599
- static readonly typeName = "livekit.proto.LocalTrackPublished";
1600
- static readonly fields: FieldList;
1601
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): LocalTrackPublished;
1602
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): LocalTrackPublished;
1603
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): LocalTrackPublished;
1604
- static equals(a: LocalTrackPublished | PlainMessage<LocalTrackPublished> | undefined, b: LocalTrackPublished | PlainMessage<LocalTrackPublished> | undefined): boolean;
1605
- }
1376
+ };
1377
+ /**
1378
+ * Describes the message livekit.proto.LocalTrackPublished.
1379
+ * Use `create(LocalTrackPublishedSchema)` to create a new message.
1380
+ */
1381
+ export declare const LocalTrackPublishedSchema: GenMessage<LocalTrackPublished>;
1606
1382
  /**
1607
1383
  * @generated from message livekit.proto.LocalTrackUnpublished
1608
1384
  */
1609
- export declare class LocalTrackUnpublished extends Message<LocalTrackUnpublished> {
1385
+ export type LocalTrackUnpublished = Message<"livekit.proto.LocalTrackUnpublished"> & {
1610
1386
  /**
1611
- * @generated from field: string publication_sid = 1;
1387
+ * @generated from field: required string publication_sid = 1;
1612
1388
  */
1613
1389
  publicationSid: string;
1614
- constructor(data?: PartialMessage<LocalTrackUnpublished>);
1615
- static readonly runtime: typeof proto3;
1616
- static readonly typeName = "livekit.proto.LocalTrackUnpublished";
1617
- static readonly fields: FieldList;
1618
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): LocalTrackUnpublished;
1619
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): LocalTrackUnpublished;
1620
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): LocalTrackUnpublished;
1621
- static equals(a: LocalTrackUnpublished | PlainMessage<LocalTrackUnpublished> | undefined, b: LocalTrackUnpublished | PlainMessage<LocalTrackUnpublished> | undefined): boolean;
1622
- }
1390
+ };
1391
+ /**
1392
+ * Describes the message livekit.proto.LocalTrackUnpublished.
1393
+ * Use `create(LocalTrackUnpublishedSchema)` to create a new message.
1394
+ */
1395
+ export declare const LocalTrackUnpublishedSchema: GenMessage<LocalTrackUnpublished>;
1623
1396
  /**
1624
1397
  * @generated from message livekit.proto.LocalTrackSubscribed
1625
1398
  */
1626
- export declare class LocalTrackSubscribed extends Message<LocalTrackSubscribed> {
1399
+ export type LocalTrackSubscribed = Message<"livekit.proto.LocalTrackSubscribed"> & {
1627
1400
  /**
1628
- * @generated from field: string track_sid = 2;
1401
+ * @generated from field: required string track_sid = 2;
1629
1402
  */
1630
1403
  trackSid: string;
1631
- constructor(data?: PartialMessage<LocalTrackSubscribed>);
1632
- static readonly runtime: typeof proto3;
1633
- static readonly typeName = "livekit.proto.LocalTrackSubscribed";
1634
- static readonly fields: FieldList;
1635
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): LocalTrackSubscribed;
1636
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): LocalTrackSubscribed;
1637
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): LocalTrackSubscribed;
1638
- static equals(a: LocalTrackSubscribed | PlainMessage<LocalTrackSubscribed> | undefined, b: LocalTrackSubscribed | PlainMessage<LocalTrackSubscribed> | undefined): boolean;
1639
- }
1404
+ };
1405
+ /**
1406
+ * Describes the message livekit.proto.LocalTrackSubscribed.
1407
+ * Use `create(LocalTrackSubscribedSchema)` to create a new message.
1408
+ */
1409
+ export declare const LocalTrackSubscribedSchema: GenMessage<LocalTrackSubscribed>;
1640
1410
  /**
1641
1411
  * @generated from message livekit.proto.TrackPublished
1642
1412
  */
1643
- export declare class TrackPublished extends Message<TrackPublished> {
1413
+ export type TrackPublished = Message<"livekit.proto.TrackPublished"> & {
1644
1414
  /**
1645
- * @generated from field: string participant_identity = 1;
1415
+ * @generated from field: required string participant_identity = 1;
1646
1416
  */
1647
1417
  participantIdentity: string;
1648
1418
  /**
1649
- * @generated from field: livekit.proto.OwnedTrackPublication publication = 2;
1419
+ * @generated from field: required livekit.proto.OwnedTrackPublication publication = 2;
1650
1420
  */
1651
1421
  publication?: OwnedTrackPublication;
1652
- constructor(data?: PartialMessage<TrackPublished>);
1653
- static readonly runtime: typeof proto3;
1654
- static readonly typeName = "livekit.proto.TrackPublished";
1655
- static readonly fields: FieldList;
1656
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TrackPublished;
1657
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TrackPublished;
1658
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TrackPublished;
1659
- static equals(a: TrackPublished | PlainMessage<TrackPublished> | undefined, b: TrackPublished | PlainMessage<TrackPublished> | undefined): boolean;
1660
- }
1422
+ };
1423
+ /**
1424
+ * Describes the message livekit.proto.TrackPublished.
1425
+ * Use `create(TrackPublishedSchema)` to create a new message.
1426
+ */
1427
+ export declare const TrackPublishedSchema: GenMessage<TrackPublished>;
1661
1428
  /**
1662
1429
  * @generated from message livekit.proto.TrackUnpublished
1663
1430
  */
1664
- export declare class TrackUnpublished extends Message<TrackUnpublished> {
1431
+ export type TrackUnpublished = Message<"livekit.proto.TrackUnpublished"> & {
1665
1432
  /**
1666
- * @generated from field: string participant_identity = 1;
1433
+ * @generated from field: required string participant_identity = 1;
1667
1434
  */
1668
1435
  participantIdentity: string;
1669
1436
  /**
1670
- * @generated from field: string publication_sid = 2;
1437
+ * @generated from field: required string publication_sid = 2;
1671
1438
  */
1672
1439
  publicationSid: string;
1673
- constructor(data?: PartialMessage<TrackUnpublished>);
1674
- static readonly runtime: typeof proto3;
1675
- static readonly typeName = "livekit.proto.TrackUnpublished";
1676
- static readonly fields: FieldList;
1677
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TrackUnpublished;
1678
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TrackUnpublished;
1679
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TrackUnpublished;
1680
- static equals(a: TrackUnpublished | PlainMessage<TrackUnpublished> | undefined, b: TrackUnpublished | PlainMessage<TrackUnpublished> | undefined): boolean;
1681
- }
1440
+ };
1441
+ /**
1442
+ * Describes the message livekit.proto.TrackUnpublished.
1443
+ * Use `create(TrackUnpublishedSchema)` to create a new message.
1444
+ */
1445
+ export declare const TrackUnpublishedSchema: GenMessage<TrackUnpublished>;
1682
1446
  /**
1683
1447
  * Publication isn't needed for subscription events on the FFI
1684
1448
  * The FFI will retrieve the publication using the Track sid
1685
1449
  *
1686
1450
  * @generated from message livekit.proto.TrackSubscribed
1687
1451
  */
1688
- export declare class TrackSubscribed extends Message<TrackSubscribed> {
1452
+ export type TrackSubscribed = Message<"livekit.proto.TrackSubscribed"> & {
1689
1453
  /**
1690
- * @generated from field: string participant_identity = 1;
1454
+ * @generated from field: required string participant_identity = 1;
1691
1455
  */
1692
1456
  participantIdentity: string;
1693
1457
  /**
1694
- * @generated from field: livekit.proto.OwnedTrack track = 2;
1458
+ * @generated from field: required livekit.proto.OwnedTrack track = 2;
1695
1459
  */
1696
1460
  track?: OwnedTrack;
1697
- constructor(data?: PartialMessage<TrackSubscribed>);
1698
- static readonly runtime: typeof proto3;
1699
- static readonly typeName = "livekit.proto.TrackSubscribed";
1700
- static readonly fields: FieldList;
1701
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TrackSubscribed;
1702
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TrackSubscribed;
1703
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TrackSubscribed;
1704
- static equals(a: TrackSubscribed | PlainMessage<TrackSubscribed> | undefined, b: TrackSubscribed | PlainMessage<TrackSubscribed> | undefined): boolean;
1705
- }
1461
+ };
1462
+ /**
1463
+ * Describes the message livekit.proto.TrackSubscribed.
1464
+ * Use `create(TrackSubscribedSchema)` to create a new message.
1465
+ */
1466
+ export declare const TrackSubscribedSchema: GenMessage<TrackSubscribed>;
1706
1467
  /**
1707
1468
  * @generated from message livekit.proto.TrackUnsubscribed
1708
1469
  */
1709
- export declare class TrackUnsubscribed extends Message<TrackUnsubscribed> {
1470
+ export type TrackUnsubscribed = Message<"livekit.proto.TrackUnsubscribed"> & {
1710
1471
  /**
1711
1472
  * The FFI language can dispose/remove the VideoSink here
1712
1473
  *
1713
- * @generated from field: string participant_identity = 1;
1474
+ * @generated from field: required string participant_identity = 1;
1714
1475
  */
1715
1476
  participantIdentity: string;
1716
1477
  /**
1717
- * @generated from field: string track_sid = 2;
1478
+ * @generated from field: required string track_sid = 2;
1718
1479
  */
1719
1480
  trackSid: string;
1720
- constructor(data?: PartialMessage<TrackUnsubscribed>);
1721
- static readonly runtime: typeof proto3;
1722
- static readonly typeName = "livekit.proto.TrackUnsubscribed";
1723
- static readonly fields: FieldList;
1724
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TrackUnsubscribed;
1725
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TrackUnsubscribed;
1726
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TrackUnsubscribed;
1727
- static equals(a: TrackUnsubscribed | PlainMessage<TrackUnsubscribed> | undefined, b: TrackUnsubscribed | PlainMessage<TrackUnsubscribed> | undefined): boolean;
1728
- }
1481
+ };
1482
+ /**
1483
+ * Describes the message livekit.proto.TrackUnsubscribed.
1484
+ * Use `create(TrackUnsubscribedSchema)` to create a new message.
1485
+ */
1486
+ export declare const TrackUnsubscribedSchema: GenMessage<TrackUnsubscribed>;
1729
1487
  /**
1730
1488
  * @generated from message livekit.proto.TrackSubscriptionFailed
1731
1489
  */
1732
- export declare class TrackSubscriptionFailed extends Message<TrackSubscriptionFailed> {
1490
+ export type TrackSubscriptionFailed = Message<"livekit.proto.TrackSubscriptionFailed"> & {
1733
1491
  /**
1734
- * @generated from field: string participant_identity = 1;
1492
+ * @generated from field: required string participant_identity = 1;
1735
1493
  */
1736
1494
  participantIdentity: string;
1737
1495
  /**
1738
- * @generated from field: string track_sid = 2;
1496
+ * @generated from field: required string track_sid = 2;
1739
1497
  */
1740
1498
  trackSid: string;
1741
1499
  /**
1742
- * @generated from field: string error = 3;
1500
+ * @generated from field: required string error = 3;
1743
1501
  */
1744
1502
  error: string;
1745
- constructor(data?: PartialMessage<TrackSubscriptionFailed>);
1746
- static readonly runtime: typeof proto3;
1747
- static readonly typeName = "livekit.proto.TrackSubscriptionFailed";
1748
- static readonly fields: FieldList;
1749
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TrackSubscriptionFailed;
1750
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TrackSubscriptionFailed;
1751
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TrackSubscriptionFailed;
1752
- static equals(a: TrackSubscriptionFailed | PlainMessage<TrackSubscriptionFailed> | undefined, b: TrackSubscriptionFailed | PlainMessage<TrackSubscriptionFailed> | undefined): boolean;
1753
- }
1503
+ };
1504
+ /**
1505
+ * Describes the message livekit.proto.TrackSubscriptionFailed.
1506
+ * Use `create(TrackSubscriptionFailedSchema)` to create a new message.
1507
+ */
1508
+ export declare const TrackSubscriptionFailedSchema: GenMessage<TrackSubscriptionFailed>;
1754
1509
  /**
1755
1510
  * @generated from message livekit.proto.TrackMuted
1756
1511
  */
1757
- export declare class TrackMuted extends Message<TrackMuted> {
1512
+ export type TrackMuted = Message<"livekit.proto.TrackMuted"> & {
1758
1513
  /**
1759
- * @generated from field: string participant_identity = 1;
1514
+ * @generated from field: required string participant_identity = 1;
1760
1515
  */
1761
1516
  participantIdentity: string;
1762
1517
  /**
1763
- * @generated from field: string track_sid = 2;
1518
+ * @generated from field: required string track_sid = 2;
1764
1519
  */
1765
1520
  trackSid: string;
1766
- constructor(data?: PartialMessage<TrackMuted>);
1767
- static readonly runtime: typeof proto3;
1768
- static readonly typeName = "livekit.proto.TrackMuted";
1769
- static readonly fields: FieldList;
1770
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TrackMuted;
1771
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TrackMuted;
1772
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TrackMuted;
1773
- static equals(a: TrackMuted | PlainMessage<TrackMuted> | undefined, b: TrackMuted | PlainMessage<TrackMuted> | undefined): boolean;
1774
- }
1521
+ };
1522
+ /**
1523
+ * Describes the message livekit.proto.TrackMuted.
1524
+ * Use `create(TrackMutedSchema)` to create a new message.
1525
+ */
1526
+ export declare const TrackMutedSchema: GenMessage<TrackMuted>;
1775
1527
  /**
1776
1528
  * @generated from message livekit.proto.TrackUnmuted
1777
1529
  */
1778
- export declare class TrackUnmuted extends Message<TrackUnmuted> {
1530
+ export type TrackUnmuted = Message<"livekit.proto.TrackUnmuted"> & {
1779
1531
  /**
1780
- * @generated from field: string participant_identity = 1;
1532
+ * @generated from field: required string participant_identity = 1;
1781
1533
  */
1782
1534
  participantIdentity: string;
1783
1535
  /**
1784
- * @generated from field: string track_sid = 2;
1536
+ * @generated from field: required string track_sid = 2;
1785
1537
  */
1786
1538
  trackSid: string;
1787
- constructor(data?: PartialMessage<TrackUnmuted>);
1788
- static readonly runtime: typeof proto3;
1789
- static readonly typeName = "livekit.proto.TrackUnmuted";
1790
- static readonly fields: FieldList;
1791
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TrackUnmuted;
1792
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TrackUnmuted;
1793
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TrackUnmuted;
1794
- static equals(a: TrackUnmuted | PlainMessage<TrackUnmuted> | undefined, b: TrackUnmuted | PlainMessage<TrackUnmuted> | undefined): boolean;
1795
- }
1539
+ };
1540
+ /**
1541
+ * Describes the message livekit.proto.TrackUnmuted.
1542
+ * Use `create(TrackUnmutedSchema)` to create a new message.
1543
+ */
1544
+ export declare const TrackUnmutedSchema: GenMessage<TrackUnmuted>;
1796
1545
  /**
1797
1546
  * @generated from message livekit.proto.E2eeStateChanged
1798
1547
  */
1799
- export declare class E2eeStateChanged extends Message<E2eeStateChanged> {
1548
+ export type E2eeStateChanged = Message<"livekit.proto.E2eeStateChanged"> & {
1800
1549
  /**
1801
1550
  * Using sid instead of identity for ffi communication
1802
1551
  *
1803
- * @generated from field: string participant_identity = 1;
1552
+ * @generated from field: required string participant_identity = 1;
1804
1553
  */
1805
1554
  participantIdentity: string;
1806
1555
  /**
1807
- * @generated from field: livekit.proto.EncryptionState state = 2;
1556
+ * @generated from field: required livekit.proto.EncryptionState state = 2;
1808
1557
  */
1809
1558
  state: EncryptionState;
1810
- constructor(data?: PartialMessage<E2eeStateChanged>);
1811
- static readonly runtime: typeof proto3;
1812
- static readonly typeName = "livekit.proto.E2eeStateChanged";
1813
- static readonly fields: FieldList;
1814
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): E2eeStateChanged;
1815
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): E2eeStateChanged;
1816
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): E2eeStateChanged;
1817
- static equals(a: E2eeStateChanged | PlainMessage<E2eeStateChanged> | undefined, b: E2eeStateChanged | PlainMessage<E2eeStateChanged> | undefined): boolean;
1818
- }
1559
+ };
1560
+ /**
1561
+ * Describes the message livekit.proto.E2eeStateChanged.
1562
+ * Use `create(E2eeStateChangedSchema)` to create a new message.
1563
+ */
1564
+ export declare const E2eeStateChangedSchema: GenMessage<E2eeStateChanged>;
1819
1565
  /**
1820
1566
  * @generated from message livekit.proto.ActiveSpeakersChanged
1821
1567
  */
1822
- export declare class ActiveSpeakersChanged extends Message<ActiveSpeakersChanged> {
1568
+ export type ActiveSpeakersChanged = Message<"livekit.proto.ActiveSpeakersChanged"> & {
1823
1569
  /**
1824
1570
  * @generated from field: repeated string participant_identities = 1;
1825
1571
  */
1826
1572
  participantIdentities: string[];
1827
- constructor(data?: PartialMessage<ActiveSpeakersChanged>);
1828
- static readonly runtime: typeof proto3;
1829
- static readonly typeName = "livekit.proto.ActiveSpeakersChanged";
1830
- static readonly fields: FieldList;
1831
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ActiveSpeakersChanged;
1832
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ActiveSpeakersChanged;
1833
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ActiveSpeakersChanged;
1834
- static equals(a: ActiveSpeakersChanged | PlainMessage<ActiveSpeakersChanged> | undefined, b: ActiveSpeakersChanged | PlainMessage<ActiveSpeakersChanged> | undefined): boolean;
1835
- }
1573
+ };
1574
+ /**
1575
+ * Describes the message livekit.proto.ActiveSpeakersChanged.
1576
+ * Use `create(ActiveSpeakersChangedSchema)` to create a new message.
1577
+ */
1578
+ export declare const ActiveSpeakersChangedSchema: GenMessage<ActiveSpeakersChanged>;
1836
1579
  /**
1837
1580
  * @generated from message livekit.proto.RoomMetadataChanged
1838
1581
  */
1839
- export declare class RoomMetadataChanged extends Message<RoomMetadataChanged> {
1582
+ export type RoomMetadataChanged = Message<"livekit.proto.RoomMetadataChanged"> & {
1840
1583
  /**
1841
- * @generated from field: string metadata = 1;
1584
+ * @generated from field: required string metadata = 1;
1842
1585
  */
1843
1586
  metadata: string;
1844
- constructor(data?: PartialMessage<RoomMetadataChanged>);
1845
- static readonly runtime: typeof proto3;
1846
- static readonly typeName = "livekit.proto.RoomMetadataChanged";
1847
- static readonly fields: FieldList;
1848
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RoomMetadataChanged;
1849
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RoomMetadataChanged;
1850
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RoomMetadataChanged;
1851
- static equals(a: RoomMetadataChanged | PlainMessage<RoomMetadataChanged> | undefined, b: RoomMetadataChanged | PlainMessage<RoomMetadataChanged> | undefined): boolean;
1852
- }
1587
+ };
1588
+ /**
1589
+ * Describes the message livekit.proto.RoomMetadataChanged.
1590
+ * Use `create(RoomMetadataChangedSchema)` to create a new message.
1591
+ */
1592
+ export declare const RoomMetadataChangedSchema: GenMessage<RoomMetadataChanged>;
1853
1593
  /**
1854
1594
  * @generated from message livekit.proto.RoomSidChanged
1855
1595
  */
1856
- export declare class RoomSidChanged extends Message<RoomSidChanged> {
1596
+ export type RoomSidChanged = Message<"livekit.proto.RoomSidChanged"> & {
1857
1597
  /**
1858
- * @generated from field: string sid = 1;
1598
+ * @generated from field: required string sid = 1;
1859
1599
  */
1860
1600
  sid: string;
1861
- constructor(data?: PartialMessage<RoomSidChanged>);
1862
- static readonly runtime: typeof proto3;
1863
- static readonly typeName = "livekit.proto.RoomSidChanged";
1864
- static readonly fields: FieldList;
1865
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RoomSidChanged;
1866
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RoomSidChanged;
1867
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RoomSidChanged;
1868
- static equals(a: RoomSidChanged | PlainMessage<RoomSidChanged> | undefined, b: RoomSidChanged | PlainMessage<RoomSidChanged> | undefined): boolean;
1869
- }
1601
+ };
1602
+ /**
1603
+ * Describes the message livekit.proto.RoomSidChanged.
1604
+ * Use `create(RoomSidChangedSchema)` to create a new message.
1605
+ */
1606
+ export declare const RoomSidChangedSchema: GenMessage<RoomSidChanged>;
1870
1607
  /**
1871
1608
  * @generated from message livekit.proto.ParticipantMetadataChanged
1872
1609
  */
1873
- export declare class ParticipantMetadataChanged extends Message<ParticipantMetadataChanged> {
1610
+ export type ParticipantMetadataChanged = Message<"livekit.proto.ParticipantMetadataChanged"> & {
1874
1611
  /**
1875
- * @generated from field: string participant_identity = 1;
1612
+ * @generated from field: required string participant_identity = 1;
1876
1613
  */
1877
1614
  participantIdentity: string;
1878
1615
  /**
1879
- * @generated from field: string metadata = 2;
1616
+ * @generated from field: required string metadata = 2;
1880
1617
  */
1881
1618
  metadata: string;
1882
- constructor(data?: PartialMessage<ParticipantMetadataChanged>);
1883
- static readonly runtime: typeof proto3;
1884
- static readonly typeName = "livekit.proto.ParticipantMetadataChanged";
1885
- static readonly fields: FieldList;
1886
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ParticipantMetadataChanged;
1887
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ParticipantMetadataChanged;
1888
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ParticipantMetadataChanged;
1889
- static equals(a: ParticipantMetadataChanged | PlainMessage<ParticipantMetadataChanged> | undefined, b: ParticipantMetadataChanged | PlainMessage<ParticipantMetadataChanged> | undefined): boolean;
1890
- }
1619
+ };
1620
+ /**
1621
+ * Describes the message livekit.proto.ParticipantMetadataChanged.
1622
+ * Use `create(ParticipantMetadataChangedSchema)` to create a new message.
1623
+ */
1624
+ export declare const ParticipantMetadataChangedSchema: GenMessage<ParticipantMetadataChanged>;
1891
1625
  /**
1892
1626
  * @generated from message livekit.proto.ParticipantAttributesChanged
1893
1627
  */
1894
- export declare class ParticipantAttributesChanged extends Message<ParticipantAttributesChanged> {
1628
+ export type ParticipantAttributesChanged = Message<"livekit.proto.ParticipantAttributesChanged"> & {
1895
1629
  /**
1896
- * @generated from field: string participant_identity = 1;
1630
+ * @generated from field: required string participant_identity = 1;
1897
1631
  */
1898
1632
  participantIdentity: string;
1899
1633
  /**
1900
- * @generated from field: map<string, string> attributes = 2;
1634
+ * @generated from field: repeated livekit.proto.AttributesEntry attributes = 2;
1901
1635
  */
1902
- attributes: {
1903
- [key: string]: string;
1904
- };
1636
+ attributes: AttributesEntry[];
1905
1637
  /**
1906
- * @generated from field: map<string, string> changed_attributes = 3;
1638
+ * @generated from field: repeated livekit.proto.AttributesEntry changed_attributes = 3;
1907
1639
  */
1908
- changedAttributes: {
1909
- [key: string]: string;
1910
- };
1911
- constructor(data?: PartialMessage<ParticipantAttributesChanged>);
1912
- static readonly runtime: typeof proto3;
1913
- static readonly typeName = "livekit.proto.ParticipantAttributesChanged";
1914
- static readonly fields: FieldList;
1915
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ParticipantAttributesChanged;
1916
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ParticipantAttributesChanged;
1917
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ParticipantAttributesChanged;
1918
- static equals(a: ParticipantAttributesChanged | PlainMessage<ParticipantAttributesChanged> | undefined, b: ParticipantAttributesChanged | PlainMessage<ParticipantAttributesChanged> | undefined): boolean;
1919
- }
1640
+ changedAttributes: AttributesEntry[];
1641
+ };
1642
+ /**
1643
+ * Describes the message livekit.proto.ParticipantAttributesChanged.
1644
+ * Use `create(ParticipantAttributesChangedSchema)` to create a new message.
1645
+ */
1646
+ export declare const ParticipantAttributesChangedSchema: GenMessage<ParticipantAttributesChanged>;
1920
1647
  /**
1921
1648
  * @generated from message livekit.proto.ParticipantNameChanged
1922
1649
  */
1923
- export declare class ParticipantNameChanged extends Message<ParticipantNameChanged> {
1650
+ export type ParticipantNameChanged = Message<"livekit.proto.ParticipantNameChanged"> & {
1924
1651
  /**
1925
- * @generated from field: string participant_identity = 1;
1652
+ * @generated from field: required string participant_identity = 1;
1926
1653
  */
1927
1654
  participantIdentity: string;
1928
1655
  /**
1929
- * @generated from field: string name = 2;
1656
+ * @generated from field: required string name = 2;
1930
1657
  */
1931
1658
  name: string;
1932
- constructor(data?: PartialMessage<ParticipantNameChanged>);
1933
- static readonly runtime: typeof proto3;
1934
- static readonly typeName = "livekit.proto.ParticipantNameChanged";
1935
- static readonly fields: FieldList;
1936
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ParticipantNameChanged;
1937
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ParticipantNameChanged;
1938
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ParticipantNameChanged;
1939
- static equals(a: ParticipantNameChanged | PlainMessage<ParticipantNameChanged> | undefined, b: ParticipantNameChanged | PlainMessage<ParticipantNameChanged> | undefined): boolean;
1940
- }
1659
+ };
1660
+ /**
1661
+ * Describes the message livekit.proto.ParticipantNameChanged.
1662
+ * Use `create(ParticipantNameChangedSchema)` to create a new message.
1663
+ */
1664
+ export declare const ParticipantNameChangedSchema: GenMessage<ParticipantNameChanged>;
1941
1665
  /**
1942
1666
  * @generated from message livekit.proto.ConnectionQualityChanged
1943
1667
  */
1944
- export declare class ConnectionQualityChanged extends Message<ConnectionQualityChanged> {
1668
+ export type ConnectionQualityChanged = Message<"livekit.proto.ConnectionQualityChanged"> & {
1945
1669
  /**
1946
- * @generated from field: string participant_identity = 1;
1670
+ * @generated from field: required string participant_identity = 1;
1947
1671
  */
1948
1672
  participantIdentity: string;
1949
1673
  /**
1950
- * @generated from field: livekit.proto.ConnectionQuality quality = 2;
1674
+ * @generated from field: required livekit.proto.ConnectionQuality quality = 2;
1951
1675
  */
1952
1676
  quality: ConnectionQuality;
1953
- constructor(data?: PartialMessage<ConnectionQualityChanged>);
1954
- static readonly runtime: typeof proto3;
1955
- static readonly typeName = "livekit.proto.ConnectionQualityChanged";
1956
- static readonly fields: FieldList;
1957
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ConnectionQualityChanged;
1958
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ConnectionQualityChanged;
1959
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ConnectionQualityChanged;
1960
- static equals(a: ConnectionQualityChanged | PlainMessage<ConnectionQualityChanged> | undefined, b: ConnectionQualityChanged | PlainMessage<ConnectionQualityChanged> | undefined): boolean;
1961
- }
1677
+ };
1678
+ /**
1679
+ * Describes the message livekit.proto.ConnectionQualityChanged.
1680
+ * Use `create(ConnectionQualityChangedSchema)` to create a new message.
1681
+ */
1682
+ export declare const ConnectionQualityChangedSchema: GenMessage<ConnectionQualityChanged>;
1962
1683
  /**
1963
1684
  * @generated from message livekit.proto.UserPacket
1964
1685
  */
1965
- export declare class UserPacket extends Message<UserPacket> {
1686
+ export type UserPacket = Message<"livekit.proto.UserPacket"> & {
1966
1687
  /**
1967
- * @generated from field: livekit.proto.OwnedBuffer data = 1;
1688
+ * @generated from field: required livekit.proto.OwnedBuffer data = 1;
1968
1689
  */
1969
1690
  data?: OwnedBuffer;
1970
1691
  /**
1971
1692
  * @generated from field: optional string topic = 2;
1972
1693
  */
1973
- topic?: string;
1974
- constructor(data?: PartialMessage<UserPacket>);
1975
- static readonly runtime: typeof proto3;
1976
- static readonly typeName = "livekit.proto.UserPacket";
1977
- static readonly fields: FieldList;
1978
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UserPacket;
1979
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UserPacket;
1980
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UserPacket;
1981
- static equals(a: UserPacket | PlainMessage<UserPacket> | undefined, b: UserPacket | PlainMessage<UserPacket> | undefined): boolean;
1982
- }
1694
+ topic: string;
1695
+ };
1696
+ /**
1697
+ * Describes the message livekit.proto.UserPacket.
1698
+ * Use `create(UserPacketSchema)` to create a new message.
1699
+ */
1700
+ export declare const UserPacketSchema: GenMessage<UserPacket>;
1983
1701
  /**
1984
1702
  * @generated from message livekit.proto.ChatMessage
1985
1703
  */
1986
- export declare class ChatMessage extends Message<ChatMessage> {
1704
+ export type ChatMessage = Message<"livekit.proto.ChatMessage"> & {
1987
1705
  /**
1988
- * @generated from field: string id = 1;
1706
+ * @generated from field: required string id = 1;
1989
1707
  */
1990
1708
  id: string;
1991
1709
  /**
1992
- * @generated from field: int64 timestamp = 2;
1710
+ * @generated from field: required int64 timestamp = 2;
1993
1711
  */
1994
1712
  timestamp: bigint;
1995
1713
  /**
1996
- * @generated from field: string message = 3;
1714
+ * @generated from field: required string message = 3;
1997
1715
  */
1998
1716
  message: string;
1999
1717
  /**
2000
1718
  * @generated from field: optional int64 edit_timestamp = 4;
2001
1719
  */
2002
- editTimestamp?: bigint;
1720
+ editTimestamp: bigint;
2003
1721
  /**
2004
1722
  * @generated from field: optional bool deleted = 5;
2005
1723
  */
2006
- deleted?: boolean;
1724
+ deleted: boolean;
2007
1725
  /**
2008
1726
  * @generated from field: optional bool generated = 6;
2009
1727
  */
2010
- generated?: boolean;
2011
- constructor(data?: PartialMessage<ChatMessage>);
2012
- static readonly runtime: typeof proto3;
2013
- static readonly typeName = "livekit.proto.ChatMessage";
2014
- static readonly fields: FieldList;
2015
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChatMessage;
2016
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChatMessage;
2017
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChatMessage;
2018
- static equals(a: ChatMessage | PlainMessage<ChatMessage> | undefined, b: ChatMessage | PlainMessage<ChatMessage> | undefined): boolean;
2019
- }
1728
+ generated: boolean;
1729
+ };
1730
+ /**
1731
+ * Describes the message livekit.proto.ChatMessage.
1732
+ * Use `create(ChatMessageSchema)` to create a new message.
1733
+ */
1734
+ export declare const ChatMessageSchema: GenMessage<ChatMessage>;
2020
1735
  /**
2021
1736
  * @generated from message livekit.proto.ChatMessageReceived
2022
1737
  */
2023
- export declare class ChatMessageReceived extends Message<ChatMessageReceived> {
1738
+ export type ChatMessageReceived = Message<"livekit.proto.ChatMessageReceived"> & {
2024
1739
  /**
2025
- * @generated from field: livekit.proto.ChatMessage message = 1;
1740
+ * @generated from field: required livekit.proto.ChatMessage message = 1;
2026
1741
  */
2027
1742
  message?: ChatMessage;
2028
1743
  /**
2029
- * @generated from field: string participant_identity = 2;
1744
+ * @generated from field: required string participant_identity = 2;
2030
1745
  */
2031
1746
  participantIdentity: string;
2032
- constructor(data?: PartialMessage<ChatMessageReceived>);
2033
- static readonly runtime: typeof proto3;
2034
- static readonly typeName = "livekit.proto.ChatMessageReceived";
2035
- static readonly fields: FieldList;
2036
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChatMessageReceived;
2037
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChatMessageReceived;
2038
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChatMessageReceived;
2039
- static equals(a: ChatMessageReceived | PlainMessage<ChatMessageReceived> | undefined, b: ChatMessageReceived | PlainMessage<ChatMessageReceived> | undefined): boolean;
2040
- }
1747
+ };
1748
+ /**
1749
+ * Describes the message livekit.proto.ChatMessageReceived.
1750
+ * Use `create(ChatMessageReceivedSchema)` to create a new message.
1751
+ */
1752
+ export declare const ChatMessageReceivedSchema: GenMessage<ChatMessageReceived>;
2041
1753
  /**
2042
1754
  * @generated from message livekit.proto.SipDTMF
2043
1755
  */
2044
- export declare class SipDTMF extends Message<SipDTMF> {
1756
+ export type SipDTMF = Message<"livekit.proto.SipDTMF"> & {
2045
1757
  /**
2046
- * @generated from field: uint32 code = 1;
1758
+ * @generated from field: required uint32 code = 1;
2047
1759
  */
2048
1760
  code: number;
2049
1761
  /**
2050
1762
  * @generated from field: optional string digit = 2;
2051
1763
  */
2052
- digit?: string;
2053
- constructor(data?: PartialMessage<SipDTMF>);
2054
- static readonly runtime: typeof proto3;
2055
- static readonly typeName = "livekit.proto.SipDTMF";
2056
- static readonly fields: FieldList;
2057
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SipDTMF;
2058
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SipDTMF;
2059
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SipDTMF;
2060
- static equals(a: SipDTMF | PlainMessage<SipDTMF> | undefined, b: SipDTMF | PlainMessage<SipDTMF> | undefined): boolean;
2061
- }
1764
+ digit: string;
1765
+ };
1766
+ /**
1767
+ * Describes the message livekit.proto.SipDTMF.
1768
+ * Use `create(SipDTMFSchema)` to create a new message.
1769
+ */
1770
+ export declare const SipDTMFSchema: GenMessage<SipDTMF>;
2062
1771
  /**
2063
1772
  * @generated from message livekit.proto.DataPacketReceived
2064
1773
  */
2065
- export declare class DataPacketReceived extends Message<DataPacketReceived> {
1774
+ export type DataPacketReceived = Message<"livekit.proto.DataPacketReceived"> & {
2066
1775
  /**
2067
- * @generated from field: livekit.proto.DataPacketKind kind = 1;
1776
+ * @generated from field: required livekit.proto.DataPacketKind kind = 1;
2068
1777
  */
2069
1778
  kind: DataPacketKind;
2070
1779
  /**
2071
1780
  * Can be empty if the data is sent a server SDK
2072
1781
  *
2073
- * @generated from field: string participant_identity = 2;
1782
+ * @generated from field: required string participant_identity = 2;
2074
1783
  */
2075
1784
  participantIdentity: string;
2076
1785
  /**
@@ -2092,124 +1801,270 @@ export declare class DataPacketReceived extends Message<DataPacketReceived> {
2092
1801
  case: undefined;
2093
1802
  value?: undefined;
2094
1803
  };
2095
- constructor(data?: PartialMessage<DataPacketReceived>);
2096
- static readonly runtime: typeof proto3;
2097
- static readonly typeName = "livekit.proto.DataPacketReceived";
2098
- static readonly fields: FieldList;
2099
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DataPacketReceived;
2100
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DataPacketReceived;
2101
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DataPacketReceived;
2102
- static equals(a: DataPacketReceived | PlainMessage<DataPacketReceived> | undefined, b: DataPacketReceived | PlainMessage<DataPacketReceived> | undefined): boolean;
2103
- }
1804
+ };
1805
+ /**
1806
+ * Describes the message livekit.proto.DataPacketReceived.
1807
+ * Use `create(DataPacketReceivedSchema)` to create a new message.
1808
+ */
1809
+ export declare const DataPacketReceivedSchema: GenMessage<DataPacketReceived>;
2104
1810
  /**
2105
1811
  * @generated from message livekit.proto.TranscriptionReceived
2106
1812
  */
2107
- export declare class TranscriptionReceived extends Message<TranscriptionReceived> {
1813
+ export type TranscriptionReceived = Message<"livekit.proto.TranscriptionReceived"> & {
2108
1814
  /**
2109
1815
  * @generated from field: optional string participant_identity = 1;
2110
1816
  */
2111
- participantIdentity?: string;
1817
+ participantIdentity: string;
2112
1818
  /**
2113
1819
  * @generated from field: optional string track_sid = 2;
2114
1820
  */
2115
- trackSid?: string;
1821
+ trackSid: string;
2116
1822
  /**
2117
1823
  * @generated from field: repeated livekit.proto.TranscriptionSegment segments = 3;
2118
1824
  */
2119
1825
  segments: TranscriptionSegment[];
2120
- constructor(data?: PartialMessage<TranscriptionReceived>);
2121
- static readonly runtime: typeof proto3;
2122
- static readonly typeName = "livekit.proto.TranscriptionReceived";
2123
- static readonly fields: FieldList;
2124
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TranscriptionReceived;
2125
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TranscriptionReceived;
2126
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TranscriptionReceived;
2127
- static equals(a: TranscriptionReceived | PlainMessage<TranscriptionReceived> | undefined, b: TranscriptionReceived | PlainMessage<TranscriptionReceived> | undefined): boolean;
2128
- }
1826
+ };
1827
+ /**
1828
+ * Describes the message livekit.proto.TranscriptionReceived.
1829
+ * Use `create(TranscriptionReceivedSchema)` to create a new message.
1830
+ */
1831
+ export declare const TranscriptionReceivedSchema: GenMessage<TranscriptionReceived>;
2129
1832
  /**
2130
1833
  * @generated from message livekit.proto.ConnectionStateChanged
2131
1834
  */
2132
- export declare class ConnectionStateChanged extends Message<ConnectionStateChanged> {
1835
+ export type ConnectionStateChanged = Message<"livekit.proto.ConnectionStateChanged"> & {
2133
1836
  /**
2134
- * @generated from field: livekit.proto.ConnectionState state = 1;
1837
+ * @generated from field: required livekit.proto.ConnectionState state = 1;
2135
1838
  */
2136
1839
  state: ConnectionState;
2137
- constructor(data?: PartialMessage<ConnectionStateChanged>);
2138
- static readonly runtime: typeof proto3;
2139
- static readonly typeName = "livekit.proto.ConnectionStateChanged";
2140
- static readonly fields: FieldList;
2141
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ConnectionStateChanged;
2142
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ConnectionStateChanged;
2143
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ConnectionStateChanged;
2144
- static equals(a: ConnectionStateChanged | PlainMessage<ConnectionStateChanged> | undefined, b: ConnectionStateChanged | PlainMessage<ConnectionStateChanged> | undefined): boolean;
2145
- }
1840
+ };
1841
+ /**
1842
+ * Describes the message livekit.proto.ConnectionStateChanged.
1843
+ * Use `create(ConnectionStateChangedSchema)` to create a new message.
1844
+ */
1845
+ export declare const ConnectionStateChangedSchema: GenMessage<ConnectionStateChanged>;
2146
1846
  /**
2147
1847
  * @generated from message livekit.proto.Connected
2148
1848
  */
2149
- export declare class Connected extends Message<Connected> {
2150
- constructor(data?: PartialMessage<Connected>);
2151
- static readonly runtime: typeof proto3;
2152
- static readonly typeName = "livekit.proto.Connected";
2153
- static readonly fields: FieldList;
2154
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Connected;
2155
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Connected;
2156
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Connected;
2157
- static equals(a: Connected | PlainMessage<Connected> | undefined, b: Connected | PlainMessage<Connected> | undefined): boolean;
2158
- }
1849
+ export type Connected = Message<"livekit.proto.Connected"> & {};
1850
+ /**
1851
+ * Describes the message livekit.proto.Connected.
1852
+ * Use `create(ConnectedSchema)` to create a new message.
1853
+ */
1854
+ export declare const ConnectedSchema: GenMessage<Connected>;
2159
1855
  /**
2160
1856
  * @generated from message livekit.proto.Disconnected
2161
1857
  */
2162
- export declare class Disconnected extends Message<Disconnected> {
1858
+ export type Disconnected = Message<"livekit.proto.Disconnected"> & {
2163
1859
  /**
2164
- * @generated from field: livekit.proto.DisconnectReason reason = 1;
1860
+ * @generated from field: required livekit.proto.DisconnectReason reason = 1;
2165
1861
  */
2166
1862
  reason: DisconnectReason;
2167
- constructor(data?: PartialMessage<Disconnected>);
2168
- static readonly runtime: typeof proto3;
2169
- static readonly typeName = "livekit.proto.Disconnected";
2170
- static readonly fields: FieldList;
2171
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Disconnected;
2172
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Disconnected;
2173
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Disconnected;
2174
- static equals(a: Disconnected | PlainMessage<Disconnected> | undefined, b: Disconnected | PlainMessage<Disconnected> | undefined): boolean;
2175
- }
1863
+ };
1864
+ /**
1865
+ * Describes the message livekit.proto.Disconnected.
1866
+ * Use `create(DisconnectedSchema)` to create a new message.
1867
+ */
1868
+ export declare const DisconnectedSchema: GenMessage<Disconnected>;
2176
1869
  /**
2177
1870
  * @generated from message livekit.proto.Reconnecting
2178
1871
  */
2179
- export declare class Reconnecting extends Message<Reconnecting> {
2180
- constructor(data?: PartialMessage<Reconnecting>);
2181
- static readonly runtime: typeof proto3;
2182
- static readonly typeName = "livekit.proto.Reconnecting";
2183
- static readonly fields: FieldList;
2184
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Reconnecting;
2185
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Reconnecting;
2186
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Reconnecting;
2187
- static equals(a: Reconnecting | PlainMessage<Reconnecting> | undefined, b: Reconnecting | PlainMessage<Reconnecting> | undefined): boolean;
2188
- }
1872
+ export type Reconnecting = Message<"livekit.proto.Reconnecting"> & {};
1873
+ /**
1874
+ * Describes the message livekit.proto.Reconnecting.
1875
+ * Use `create(ReconnectingSchema)` to create a new message.
1876
+ */
1877
+ export declare const ReconnectingSchema: GenMessage<Reconnecting>;
2189
1878
  /**
2190
1879
  * @generated from message livekit.proto.Reconnected
2191
1880
  */
2192
- export declare class Reconnected extends Message<Reconnected> {
2193
- constructor(data?: PartialMessage<Reconnected>);
2194
- static readonly runtime: typeof proto3;
2195
- static readonly typeName = "livekit.proto.Reconnected";
2196
- static readonly fields: FieldList;
2197
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Reconnected;
2198
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Reconnected;
2199
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Reconnected;
2200
- static equals(a: Reconnected | PlainMessage<Reconnected> | undefined, b: Reconnected | PlainMessage<Reconnected> | undefined): boolean;
2201
- }
1881
+ export type Reconnected = Message<"livekit.proto.Reconnected"> & {};
1882
+ /**
1883
+ * Describes the message livekit.proto.Reconnected.
1884
+ * Use `create(ReconnectedSchema)` to create a new message.
1885
+ */
1886
+ export declare const ReconnectedSchema: GenMessage<Reconnected>;
2202
1887
  /**
2203
1888
  * @generated from message livekit.proto.RoomEOS
2204
1889
  */
2205
- export declare class RoomEOS extends Message<RoomEOS> {
2206
- constructor(data?: PartialMessage<RoomEOS>);
2207
- static readonly runtime: typeof proto3;
2208
- static readonly typeName = "livekit.proto.RoomEOS";
2209
- static readonly fields: FieldList;
2210
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RoomEOS;
2211
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RoomEOS;
2212
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RoomEOS;
2213
- static equals(a: RoomEOS | PlainMessage<RoomEOS> | undefined, b: RoomEOS | PlainMessage<RoomEOS> | undefined): boolean;
1890
+ export type RoomEOS = Message<"livekit.proto.RoomEOS"> & {};
1891
+ /**
1892
+ * Describes the message livekit.proto.RoomEOS.
1893
+ * Use `create(RoomEOSSchema)` to create a new message.
1894
+ */
1895
+ export declare const RoomEOSSchema: GenMessage<RoomEOS>;
1896
+ /**
1897
+ * @generated from enum livekit.proto.IceTransportType
1898
+ */
1899
+ export declare enum IceTransportType {
1900
+ /**
1901
+ * @generated from enum value: TRANSPORT_RELAY = 0;
1902
+ */
1903
+ TRANSPORT_RELAY = 0,
1904
+ /**
1905
+ * @generated from enum value: TRANSPORT_NOHOST = 1;
1906
+ */
1907
+ TRANSPORT_NOHOST = 1,
1908
+ /**
1909
+ * @generated from enum value: TRANSPORT_ALL = 2;
1910
+ */
1911
+ TRANSPORT_ALL = 2
1912
+ }
1913
+ /**
1914
+ * Describes the enum livekit.proto.IceTransportType.
1915
+ */
1916
+ export declare const IceTransportTypeSchema: GenEnum<IceTransportType>;
1917
+ /**
1918
+ * @generated from enum livekit.proto.ContinualGatheringPolicy
1919
+ */
1920
+ export declare enum ContinualGatheringPolicy {
1921
+ /**
1922
+ * @generated from enum value: GATHER_ONCE = 0;
1923
+ */
1924
+ GATHER_ONCE = 0,
1925
+ /**
1926
+ * @generated from enum value: GATHER_CONTINUALLY = 1;
1927
+ */
1928
+ GATHER_CONTINUALLY = 1
1929
+ }
1930
+ /**
1931
+ * Describes the enum livekit.proto.ContinualGatheringPolicy.
1932
+ */
1933
+ export declare const ContinualGatheringPolicySchema: GenEnum<ContinualGatheringPolicy>;
1934
+ /**
1935
+ * @generated from enum livekit.proto.ConnectionQuality
1936
+ */
1937
+ export declare enum ConnectionQuality {
1938
+ /**
1939
+ * @generated from enum value: QUALITY_POOR = 0;
1940
+ */
1941
+ QUALITY_POOR = 0,
1942
+ /**
1943
+ * @generated from enum value: QUALITY_GOOD = 1;
1944
+ */
1945
+ QUALITY_GOOD = 1,
1946
+ /**
1947
+ * @generated from enum value: QUALITY_EXCELLENT = 2;
1948
+ */
1949
+ QUALITY_EXCELLENT = 2,
1950
+ /**
1951
+ * @generated from enum value: QUALITY_LOST = 3;
1952
+ */
1953
+ QUALITY_LOST = 3
1954
+ }
1955
+ /**
1956
+ * Describes the enum livekit.proto.ConnectionQuality.
1957
+ */
1958
+ export declare const ConnectionQualitySchema: GenEnum<ConnectionQuality>;
1959
+ /**
1960
+ * @generated from enum livekit.proto.ConnectionState
1961
+ */
1962
+ export declare enum ConnectionState {
1963
+ /**
1964
+ * @generated from enum value: CONN_DISCONNECTED = 0;
1965
+ */
1966
+ CONN_DISCONNECTED = 0,
1967
+ /**
1968
+ * @generated from enum value: CONN_CONNECTED = 1;
1969
+ */
1970
+ CONN_CONNECTED = 1,
1971
+ /**
1972
+ * @generated from enum value: CONN_RECONNECTING = 2;
1973
+ */
1974
+ CONN_RECONNECTING = 2
1975
+ }
1976
+ /**
1977
+ * Describes the enum livekit.proto.ConnectionState.
1978
+ */
1979
+ export declare const ConnectionStateSchema: GenEnum<ConnectionState>;
1980
+ /**
1981
+ * @generated from enum livekit.proto.DataPacketKind
1982
+ */
1983
+ export declare enum DataPacketKind {
1984
+ /**
1985
+ * @generated from enum value: KIND_LOSSY = 0;
1986
+ */
1987
+ KIND_LOSSY = 0,
1988
+ /**
1989
+ * @generated from enum value: KIND_RELIABLE = 1;
1990
+ */
1991
+ KIND_RELIABLE = 1
1992
+ }
1993
+ /**
1994
+ * Describes the enum livekit.proto.DataPacketKind.
1995
+ */
1996
+ export declare const DataPacketKindSchema: GenEnum<DataPacketKind>;
1997
+ /**
1998
+ * @generated from enum livekit.proto.DisconnectReason
1999
+ */
2000
+ export declare enum DisconnectReason {
2001
+ /**
2002
+ * @generated from enum value: UNKNOWN_REASON = 0;
2003
+ */
2004
+ UNKNOWN_REASON = 0,
2005
+ /**
2006
+ * the client initiated the disconnect
2007
+ *
2008
+ * @generated from enum value: CLIENT_INITIATED = 1;
2009
+ */
2010
+ CLIENT_INITIATED = 1,
2011
+ /**
2012
+ * another participant with the same identity has joined the room
2013
+ *
2014
+ * @generated from enum value: DUPLICATE_IDENTITY = 2;
2015
+ */
2016
+ DUPLICATE_IDENTITY = 2,
2017
+ /**
2018
+ * the server instance is shutting down
2019
+ *
2020
+ * @generated from enum value: SERVER_SHUTDOWN = 3;
2021
+ */
2022
+ SERVER_SHUTDOWN = 3,
2023
+ /**
2024
+ * RoomService.RemoveParticipant was called
2025
+ *
2026
+ * @generated from enum value: PARTICIPANT_REMOVED = 4;
2027
+ */
2028
+ PARTICIPANT_REMOVED = 4,
2029
+ /**
2030
+ * RoomService.DeleteRoom was called
2031
+ *
2032
+ * @generated from enum value: ROOM_DELETED = 5;
2033
+ */
2034
+ ROOM_DELETED = 5,
2035
+ /**
2036
+ * the client is attempting to resume a session, but server is not aware of it
2037
+ *
2038
+ * @generated from enum value: STATE_MISMATCH = 6;
2039
+ */
2040
+ STATE_MISMATCH = 6,
2041
+ /**
2042
+ * client was unable to connect fully
2043
+ *
2044
+ * @generated from enum value: JOIN_FAILURE = 7;
2045
+ */
2046
+ JOIN_FAILURE = 7,
2047
+ /**
2048
+ * Cloud-only, the server requested Participant to migrate the connection elsewhere
2049
+ *
2050
+ * @generated from enum value: MIGRATION = 8;
2051
+ */
2052
+ MIGRATION = 8,
2053
+ /**
2054
+ * the signal websocket was closed unexpectedly
2055
+ *
2056
+ * @generated from enum value: SIGNAL_CLOSE = 9;
2057
+ */
2058
+ SIGNAL_CLOSE = 9,
2059
+ /**
2060
+ * the room was closed, due to all Standard and Ingress participants having left
2061
+ *
2062
+ * @generated from enum value: ROOM_CLOSED = 10;
2063
+ */
2064
+ ROOM_CLOSED = 10
2214
2065
  }
2066
+ /**
2067
+ * Describes the enum livekit.proto.DisconnectReason.
2068
+ */
2069
+ export declare const DisconnectReasonSchema: GenEnum<DisconnectReason>;
2215
2070
  //# sourceMappingURL=room_pb.d.ts.map