@livekit/rtc-node 0.12.1 → 0.13.0

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