@livekit/rtc-node 0.12.2 → 0.13.1

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