@livekit/rtc-node 0.13.23 → 0.13.25

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 (290) hide show
  1. package/dist/audio_filter.cjs +2 -2
  2. package/dist/audio_filter.cjs.map +1 -1
  3. package/dist/audio_filter.js +1 -1
  4. package/dist/audio_filter.js.map +1 -1
  5. package/dist/audio_frame.cjs +11 -7
  6. package/dist/audio_frame.cjs.map +1 -1
  7. package/dist/audio_frame.d.cts +3 -8
  8. package/dist/audio_frame.d.ts +3 -8
  9. package/dist/audio_frame.d.ts.map +1 -1
  10. package/dist/audio_frame.js +10 -6
  11. package/dist/audio_frame.js.map +1 -1
  12. package/dist/audio_mixer.cjs +11 -4
  13. package/dist/audio_mixer.cjs.map +1 -1
  14. package/dist/audio_mixer.d.cts +1 -6
  15. package/dist/audio_mixer.d.ts +1 -6
  16. package/dist/audio_mixer.d.ts.map +1 -1
  17. package/dist/audio_mixer.js +11 -4
  18. package/dist/audio_mixer.js.map +1 -1
  19. package/dist/audio_resampler.cjs +20 -12
  20. package/dist/audio_resampler.cjs.map +1 -1
  21. package/dist/audio_resampler.d.cts +6 -6
  22. package/dist/audio_resampler.d.ts +6 -6
  23. package/dist/audio_resampler.d.ts.map +1 -1
  24. package/dist/audio_resampler.js +12 -4
  25. package/dist/audio_resampler.js.map +1 -1
  26. package/dist/audio_source.cjs +11 -7
  27. package/dist/audio_source.cjs.map +1 -1
  28. package/dist/audio_source.d.cts +1 -7
  29. package/dist/audio_source.d.ts +1 -7
  30. package/dist/audio_source.d.ts.map +1 -1
  31. package/dist/audio_source.js +8 -3
  32. package/dist/audio_source.js.map +1 -1
  33. package/dist/audio_stream.cjs +17 -5
  34. package/dist/audio_stream.cjs.map +1 -1
  35. package/dist/audio_stream.d.cts +1 -14
  36. package/dist/audio_stream.d.ts +1 -14
  37. package/dist/audio_stream.d.ts.map +1 -1
  38. package/dist/audio_stream.js +16 -4
  39. package/dist/audio_stream.js.map +1 -1
  40. package/dist/data_streams/index.d.cts +2 -10
  41. package/dist/data_streams/index.d.ts +2 -10
  42. package/dist/data_streams/stream_reader.cjs +8 -0
  43. package/dist/data_streams/stream_reader.cjs.map +1 -1
  44. package/dist/data_streams/stream_reader.d.cts +2 -10
  45. package/dist/data_streams/stream_reader.d.ts +2 -10
  46. package/dist/data_streams/stream_reader.d.ts.map +1 -1
  47. package/dist/data_streams/stream_reader.js +8 -0
  48. package/dist/data_streams/stream_reader.js.map +1 -1
  49. package/dist/data_streams/stream_writer.d.cts +2 -10
  50. package/dist/data_streams/stream_writer.d.ts +2 -10
  51. package/dist/data_streams/types.cjs.map +1 -1
  52. package/dist/data_streams/types.d.cts +2 -10
  53. package/dist/data_streams/types.d.ts +2 -10
  54. package/dist/data_streams/types.d.ts.map +1 -1
  55. package/dist/e2ee.cjs +21 -21
  56. package/dist/e2ee.cjs.map +1 -1
  57. package/dist/e2ee.d.cts +1 -2
  58. package/dist/e2ee.d.ts +1 -2
  59. package/dist/e2ee.d.ts.map +1 -1
  60. package/dist/e2ee.js +2 -2
  61. package/dist/e2ee.js.map +1 -1
  62. package/dist/ffi_client.cjs +11 -12
  63. package/dist/ffi_client.cjs.map +1 -1
  64. package/dist/ffi_client.d.cts +3 -16
  65. package/dist/ffi_client.d.ts +3 -16
  66. package/dist/ffi_client.d.ts.map +1 -1
  67. package/dist/ffi_client.js +5 -3
  68. package/dist/ffi_client.js.map +1 -1
  69. package/dist/frame_processor.cjs +13 -2
  70. package/dist/frame_processor.cjs.map +1 -1
  71. package/dist/frame_processor.d.cts +5 -8
  72. package/dist/frame_processor.d.ts +5 -8
  73. package/dist/frame_processor.d.ts.map +1 -1
  74. package/dist/frame_processor.js +10 -1
  75. package/dist/frame_processor.js.map +1 -1
  76. package/dist/index.cjs +25 -23
  77. package/dist/index.cjs.map +1 -1
  78. package/dist/index.d.cts +3 -16
  79. package/dist/index.d.ts +3 -16
  80. package/dist/index.d.ts.map +1 -1
  81. package/dist/index.js +9 -7
  82. package/dist/index.js.map +1 -1
  83. package/dist/log.cjs +1 -10
  84. package/dist/log.cjs.map +1 -1
  85. package/dist/log.d.cts +4 -0
  86. package/dist/log.d.ts +4 -0
  87. package/dist/log.d.ts.map +1 -1
  88. package/dist/log.js +1 -10
  89. package/dist/log.js.map +1 -1
  90. package/dist/participant.cjs +38 -38
  91. package/dist/participant.cjs.map +1 -1
  92. package/dist/participant.d.cts +2 -15
  93. package/dist/participant.d.ts +2 -15
  94. package/dist/participant.d.ts.map +1 -1
  95. package/dist/participant.js +12 -12
  96. package/dist/participant.js.map +1 -1
  97. package/dist/room.cjs +48 -30
  98. package/dist/room.cjs.map +1 -1
  99. package/dist/room.d.cts +11 -16
  100. package/dist/room.d.ts +11 -16
  101. package/dist/room.d.ts.map +1 -1
  102. package/dist/room.js +44 -26
  103. package/dist/room.js.map +1 -1
  104. package/dist/rpc.cjs.map +1 -1
  105. package/dist/rpc.d.cts +1 -2
  106. package/dist/rpc.d.ts +1 -2
  107. package/dist/rpc.d.ts.map +1 -1
  108. package/dist/rpc.js.map +1 -1
  109. package/dist/{stream_reader-Ch2zvjU3.d.cts → stream_reader-CuG4b8Y-.d.cts} +1 -1
  110. package/dist/{stream_reader-DRyR29vo.d.ts → stream_reader-CuG4b8Y-.d.ts} +1 -1
  111. package/dist/track.cjs +3 -3
  112. package/dist/track.cjs.map +1 -1
  113. package/dist/track.d.cts +1 -14
  114. package/dist/track.d.ts +1 -14
  115. package/dist/track.d.ts.map +1 -1
  116. package/dist/track.js +1 -1
  117. package/dist/track.js.map +1 -1
  118. package/dist/track_publication.cjs +4 -4
  119. package/dist/track_publication.cjs.map +1 -1
  120. package/dist/track_publication.d.cts +1 -14
  121. package/dist/track_publication.d.ts +1 -14
  122. package/dist/track_publication.d.ts.map +1 -1
  123. package/dist/track_publication.js +2 -2
  124. package/dist/track_publication.js.map +1 -1
  125. package/dist/version.cjs +1 -1
  126. package/dist/version.cjs.map +1 -1
  127. package/dist/version.d.cts +1 -1
  128. package/dist/version.d.ts +1 -1
  129. package/dist/version.js +1 -1
  130. package/dist/version.js.map +1 -1
  131. package/dist/video_frame.cjs +42 -42
  132. package/dist/video_frame.cjs.map +1 -1
  133. package/dist/video_frame.d.cts +1 -6
  134. package/dist/video_frame.d.ts +1 -6
  135. package/dist/video_frame.d.ts.map +1 -1
  136. package/dist/video_frame.js +2 -2
  137. package/dist/video_frame.js.map +1 -1
  138. package/dist/video_source.cjs +5 -5
  139. package/dist/video_source.cjs.map +1 -1
  140. package/dist/video_source.d.cts +1 -14
  141. package/dist/video_source.d.ts +1 -14
  142. package/dist/video_source.d.ts.map +1 -1
  143. package/dist/video_source.js +2 -2
  144. package/dist/video_source.js.map +1 -1
  145. package/dist/video_stream.cjs +12 -4
  146. package/dist/video_stream.cjs.map +1 -1
  147. package/dist/video_stream.d.cts +1 -14
  148. package/dist/video_stream.d.ts +1 -14
  149. package/dist/video_stream.d.ts.map +1 -1
  150. package/dist/video_stream.js +10 -2
  151. package/dist/video_stream.js.map +1 -1
  152. package/package.json +9 -35
  153. package/src/audio_filter.ts +2 -2
  154. package/src/audio_frame.ts +26 -7
  155. package/src/audio_mixer.ts +15 -4
  156. package/src/audio_resampler.ts +14 -4
  157. package/src/audio_source.ts +13 -5
  158. package/src/audio_stream.ts +21 -5
  159. package/src/data_streams/stream_reader.ts +19 -1
  160. package/src/data_streams/types.ts +1 -1
  161. package/src/e2ee.ts +3 -3
  162. package/src/ffi_client.ts +7 -5
  163. package/src/frame_processor.ts +21 -0
  164. package/src/index.ts +6 -5
  165. package/src/log.ts +14 -10
  166. package/src/participant.ts +17 -17
  167. package/src/room.ts +65 -38
  168. package/src/rpc.ts +1 -1
  169. package/src/tests/e2e.test.ts +517 -0
  170. package/src/track.ts +4 -4
  171. package/src/track_publication.ts +6 -6
  172. package/src/version.ts +1 -1
  173. package/src/video_frame.ts +3 -3
  174. package/src/video_source.ts +3 -3
  175. package/src/video_stream.ts +15 -3
  176. package/Cargo.toml +0 -25
  177. package/build.rs +0 -9
  178. package/dist/napi/native.cjs +0 -301
  179. package/dist/napi/native.d.cjs +0 -17
  180. package/dist/napi/native.d.cjs.map +0 -1
  181. package/dist/napi/native.d.d.cts +0 -21
  182. package/dist/napi/native.d.d.ts +0 -21
  183. package/dist/napi/native.d.js +0 -1
  184. package/dist/napi/native.d.js.map +0 -1
  185. package/dist/napi/native.d.ts +0 -19
  186. package/dist/napi/native.js +0 -15
  187. package/dist/native.cjs +0 -301
  188. package/dist/native.d.ts +0 -19
  189. package/dist/native.js +0 -15
  190. package/dist/proto/audio_frame_pb.cjs +0 -1357
  191. package/dist/proto/audio_frame_pb.cjs.map +0 -1
  192. package/dist/proto/audio_frame_pb.d.cts +0 -1183
  193. package/dist/proto/audio_frame_pb.d.ts +0 -1183
  194. package/dist/proto/audio_frame_pb.d.ts.map +0 -1
  195. package/dist/proto/audio_frame_pb.js +0 -1283
  196. package/dist/proto/audio_frame_pb.js.map +0 -1
  197. package/dist/proto/data_stream_pb.cjs +0 -1638
  198. package/dist/proto/data_stream_pb.cjs.map +0 -1
  199. package/dist/proto/data_stream_pb.d.cts +0 -1449
  200. package/dist/proto/data_stream_pb.d.ts +0 -1449
  201. package/dist/proto/data_stream_pb.d.ts.map +0 -1
  202. package/dist/proto/data_stream_pb.js +0 -1559
  203. package/dist/proto/data_stream_pb.js.map +0 -1
  204. package/dist/proto/e2ee_pb.cjs +0 -746
  205. package/dist/proto/e2ee_pb.cjs.map +0 -1
  206. package/dist/proto/e2ee_pb.d.cts +0 -653
  207. package/dist/proto/e2ee_pb.d.ts +0 -653
  208. package/dist/proto/e2ee_pb.d.ts.map +0 -1
  209. package/dist/proto/e2ee_pb.js +0 -696
  210. package/dist/proto/e2ee_pb.js.map +0 -1
  211. package/dist/proto/ffi_pb.cjs +0 -477
  212. package/dist/proto/ffi_pb.cjs.map +0 -1
  213. package/dist/proto/ffi_pb.d.cts +0 -1321
  214. package/dist/proto/ffi_pb.d.ts +0 -1321
  215. package/dist/proto/ffi_pb.d.ts.map +0 -1
  216. package/dist/proto/ffi_pb.js +0 -444
  217. package/dist/proto/ffi_pb.js.map +0 -1
  218. package/dist/proto/handle_pb.cjs +0 -53
  219. package/dist/proto/handle_pb.cjs.map +0 -1
  220. package/dist/proto/handle_pb.d.cts +0 -31
  221. package/dist/proto/handle_pb.d.ts +0 -31
  222. package/dist/proto/handle_pb.d.ts.map +0 -1
  223. package/dist/proto/handle_pb.js +0 -29
  224. package/dist/proto/handle_pb.js.map +0 -1
  225. package/dist/proto/participant_pb.cjs +0 -173
  226. package/dist/proto/participant_pb.cjs.map +0 -1
  227. package/dist/proto/participant_pb.d.cts +0 -218
  228. package/dist/proto/participant_pb.d.ts +0 -218
  229. package/dist/proto/participant_pb.d.ts.map +0 -1
  230. package/dist/proto/participant_pb.js +0 -145
  231. package/dist/proto/participant_pb.js.map +0 -1
  232. package/dist/proto/room_pb.cjs +0 -3374
  233. package/dist/proto/room_pb.cjs.map +0 -1
  234. package/dist/proto/room_pb.d.cts +0 -3028
  235. package/dist/proto/room_pb.d.ts +0 -3028
  236. package/dist/proto/room_pb.d.ts.map +0 -1
  237. package/dist/proto/room_pb.js +0 -3232
  238. package/dist/proto/room_pb.js.map +0 -1
  239. package/dist/proto/rpc_pb.cjs +0 -328
  240. package/dist/proto/rpc_pb.cjs.map +0 -1
  241. package/dist/proto/rpc_pb.d.cts +0 -267
  242. package/dist/proto/rpc_pb.d.ts +0 -267
  243. package/dist/proto/rpc_pb.d.ts.map +0 -1
  244. package/dist/proto/rpc_pb.js +0 -294
  245. package/dist/proto/rpc_pb.js.map +0 -1
  246. package/dist/proto/stats_pb.cjs +0 -1370
  247. package/dist/proto/stats_pb.cjs.map +0 -1
  248. package/dist/proto/stats_pb.d.cts +0 -1764
  249. package/dist/proto/stats_pb.d.ts +0 -1764
  250. package/dist/proto/stats_pb.d.ts.map +0 -1
  251. package/dist/proto/stats_pb.js +0 -1300
  252. package/dist/proto/stats_pb.js.map +0 -1
  253. package/dist/proto/track_pb.cjs +0 -630
  254. package/dist/proto/track_pb.cjs.map +0 -1
  255. package/dist/proto/track_pb.d.cts +0 -542
  256. package/dist/proto/track_pb.d.ts +0 -542
  257. package/dist/proto/track_pb.d.ts.map +0 -1
  258. package/dist/proto/track_pb.js +0 -584
  259. package/dist/proto/track_pb.js.map +0 -1
  260. package/dist/proto/track_publication_pb.cjs +0 -194
  261. package/dist/proto/track_publication_pb.cjs.map +0 -1
  262. package/dist/proto/track_publication_pb.d.cts +0 -135
  263. package/dist/proto/track_publication_pb.d.ts +0 -135
  264. package/dist/proto/track_publication_pb.d.ts.map +0 -1
  265. package/dist/proto/track_publication_pb.js +0 -164
  266. package/dist/proto/track_publication_pb.js.map +0 -1
  267. package/dist/proto/video_frame_pb.cjs +0 -723
  268. package/dist/proto/video_frame_pb.cjs.map +0 -1
  269. package/dist/proto/video_frame_pb.d.cts +0 -667
  270. package/dist/proto/video_frame_pb.d.ts +0 -667
  271. package/dist/proto/video_frame_pb.d.ts.map +0 -1
  272. package/dist/proto/video_frame_pb.js +0 -673
  273. package/dist/proto/video_frame_pb.js.map +0 -1
  274. package/src/lib.rs +0 -9
  275. package/src/napi/native.cjs +0 -301
  276. package/src/napi/native.d.ts +0 -19
  277. package/src/napi/native.js +0 -15
  278. package/src/nodejs.rs +0 -134
  279. package/src/proto/audio_frame_pb.ts +0 -2270
  280. package/src/proto/data_stream_pb.ts +0 -2674
  281. package/src/proto/e2ee_pb.ts +0 -1231
  282. package/src/proto/ffi_pb.ts +0 -1700
  283. package/src/proto/handle_pb.ts +0 -69
  284. package/src/proto/participant_pb.ts +0 -351
  285. package/src/proto/room_pb.ts +0 -5661
  286. package/src/proto/rpc_pb.ts +0 -539
  287. package/src/proto/stats_pb.ts +0 -3050
  288. package/src/proto/track_pb.ts +0 -1040
  289. package/src/proto/track_publication_pb.ts +0 -284
  290. package/src/proto/video_frame_pb.ts +0 -1236
@@ -1,3232 +0,0 @@
1
- import { Message, proto2 } from "@bufbuild/protobuf";
2
- import { DisconnectReason, OwnedParticipant, ParticipantInfo } from "./participant_pb.js";
3
- import { OwnedTrack, OwnedTrackPublication, TrackSource } 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
- import { OwnedByteStreamReader, OwnedTextStreamReader } from "./data_stream_pb.js";
9
- var IceTransportType = /* @__PURE__ */ ((IceTransportType2) => {
10
- IceTransportType2[IceTransportType2["TRANSPORT_RELAY"] = 0] = "TRANSPORT_RELAY";
11
- IceTransportType2[IceTransportType2["TRANSPORT_NOHOST"] = 1] = "TRANSPORT_NOHOST";
12
- IceTransportType2[IceTransportType2["TRANSPORT_ALL"] = 2] = "TRANSPORT_ALL";
13
- return IceTransportType2;
14
- })(IceTransportType || {});
15
- proto2.util.setEnumType(IceTransportType, "livekit.proto.IceTransportType", [
16
- { no: 0, name: "TRANSPORT_RELAY" },
17
- { no: 1, name: "TRANSPORT_NOHOST" },
18
- { no: 2, name: "TRANSPORT_ALL" }
19
- ]);
20
- var ContinualGatheringPolicy = /* @__PURE__ */ ((ContinualGatheringPolicy2) => {
21
- ContinualGatheringPolicy2[ContinualGatheringPolicy2["GATHER_ONCE"] = 0] = "GATHER_ONCE";
22
- ContinualGatheringPolicy2[ContinualGatheringPolicy2["GATHER_CONTINUALLY"] = 1] = "GATHER_CONTINUALLY";
23
- return ContinualGatheringPolicy2;
24
- })(ContinualGatheringPolicy || {});
25
- proto2.util.setEnumType(ContinualGatheringPolicy, "livekit.proto.ContinualGatheringPolicy", [
26
- { no: 0, name: "GATHER_ONCE" },
27
- { no: 1, name: "GATHER_CONTINUALLY" }
28
- ]);
29
- var ConnectionQuality = /* @__PURE__ */ ((ConnectionQuality2) => {
30
- ConnectionQuality2[ConnectionQuality2["QUALITY_POOR"] = 0] = "QUALITY_POOR";
31
- ConnectionQuality2[ConnectionQuality2["QUALITY_GOOD"] = 1] = "QUALITY_GOOD";
32
- ConnectionQuality2[ConnectionQuality2["QUALITY_EXCELLENT"] = 2] = "QUALITY_EXCELLENT";
33
- ConnectionQuality2[ConnectionQuality2["QUALITY_LOST"] = 3] = "QUALITY_LOST";
34
- return ConnectionQuality2;
35
- })(ConnectionQuality || {});
36
- proto2.util.setEnumType(ConnectionQuality, "livekit.proto.ConnectionQuality", [
37
- { no: 0, name: "QUALITY_POOR" },
38
- { no: 1, name: "QUALITY_GOOD" },
39
- { no: 2, name: "QUALITY_EXCELLENT" },
40
- { no: 3, name: "QUALITY_LOST" }
41
- ]);
42
- var ConnectionState = /* @__PURE__ */ ((ConnectionState2) => {
43
- ConnectionState2[ConnectionState2["CONN_DISCONNECTED"] = 0] = "CONN_DISCONNECTED";
44
- ConnectionState2[ConnectionState2["CONN_CONNECTED"] = 1] = "CONN_CONNECTED";
45
- ConnectionState2[ConnectionState2["CONN_RECONNECTING"] = 2] = "CONN_RECONNECTING";
46
- return ConnectionState2;
47
- })(ConnectionState || {});
48
- proto2.util.setEnumType(ConnectionState, "livekit.proto.ConnectionState", [
49
- { no: 0, name: "CONN_DISCONNECTED" },
50
- { no: 1, name: "CONN_CONNECTED" },
51
- { no: 2, name: "CONN_RECONNECTING" }
52
- ]);
53
- var DataPacketKind = /* @__PURE__ */ ((DataPacketKind2) => {
54
- DataPacketKind2[DataPacketKind2["KIND_LOSSY"] = 0] = "KIND_LOSSY";
55
- DataPacketKind2[DataPacketKind2["KIND_RELIABLE"] = 1] = "KIND_RELIABLE";
56
- return DataPacketKind2;
57
- })(DataPacketKind || {});
58
- proto2.util.setEnumType(DataPacketKind, "livekit.proto.DataPacketKind", [
59
- { no: 0, name: "KIND_LOSSY" },
60
- { no: 1, name: "KIND_RELIABLE" }
61
- ]);
62
- const _ConnectRequest = class _ConnectRequest extends Message {
63
- constructor(data) {
64
- super();
65
- proto2.util.initPartial(data, this);
66
- }
67
- static fromBinary(bytes, options) {
68
- return new _ConnectRequest().fromBinary(bytes, options);
69
- }
70
- static fromJson(jsonValue, options) {
71
- return new _ConnectRequest().fromJson(jsonValue, options);
72
- }
73
- static fromJsonString(jsonString, options) {
74
- return new _ConnectRequest().fromJsonString(jsonString, options);
75
- }
76
- static equals(a, b) {
77
- return proto2.util.equals(_ConnectRequest, a, b);
78
- }
79
- };
80
- _ConnectRequest.runtime = proto2;
81
- _ConnectRequest.typeName = "livekit.proto.ConnectRequest";
82
- _ConnectRequest.fields = proto2.util.newFieldList(() => [
83
- { no: 1, name: "url", kind: "scalar", T: 9, req: true },
84
- { no: 2, name: "token", kind: "scalar", T: 9, req: true },
85
- { no: 3, name: "options", kind: "message", T: RoomOptions, req: true }
86
- ]);
87
- let ConnectRequest = _ConnectRequest;
88
- const _ConnectResponse = class _ConnectResponse extends Message {
89
- constructor(data) {
90
- super();
91
- proto2.util.initPartial(data, this);
92
- }
93
- static fromBinary(bytes, options) {
94
- return new _ConnectResponse().fromBinary(bytes, options);
95
- }
96
- static fromJson(jsonValue, options) {
97
- return new _ConnectResponse().fromJson(jsonValue, options);
98
- }
99
- static fromJsonString(jsonString, options) {
100
- return new _ConnectResponse().fromJsonString(jsonString, options);
101
- }
102
- static equals(a, b) {
103
- return proto2.util.equals(_ConnectResponse, a, b);
104
- }
105
- };
106
- _ConnectResponse.runtime = proto2;
107
- _ConnectResponse.typeName = "livekit.proto.ConnectResponse";
108
- _ConnectResponse.fields = proto2.util.newFieldList(() => [
109
- { no: 1, name: "async_id", kind: "scalar", T: 4, req: true }
110
- ]);
111
- let ConnectResponse = _ConnectResponse;
112
- const _ConnectCallback = class _ConnectCallback extends Message {
113
- constructor(data) {
114
- super();
115
- /**
116
- * @generated from oneof livekit.proto.ConnectCallback.message
117
- */
118
- this.message = { case: void 0 };
119
- proto2.util.initPartial(data, this);
120
- }
121
- static fromBinary(bytes, options) {
122
- return new _ConnectCallback().fromBinary(bytes, options);
123
- }
124
- static fromJson(jsonValue, options) {
125
- return new _ConnectCallback().fromJson(jsonValue, options);
126
- }
127
- static fromJsonString(jsonString, options) {
128
- return new _ConnectCallback().fromJsonString(jsonString, options);
129
- }
130
- static equals(a, b) {
131
- return proto2.util.equals(_ConnectCallback, a, b);
132
- }
133
- };
134
- _ConnectCallback.runtime = proto2;
135
- _ConnectCallback.typeName = "livekit.proto.ConnectCallback";
136
- _ConnectCallback.fields = proto2.util.newFieldList(() => [
137
- { no: 1, name: "async_id", kind: "scalar", T: 4, req: true },
138
- { no: 2, name: "error", kind: "scalar", T: 9, oneof: "message" },
139
- { no: 3, name: "result", kind: "message", T: ConnectCallback_Result, oneof: "message" }
140
- ]);
141
- let ConnectCallback = _ConnectCallback;
142
- const _ConnectCallback_ParticipantWithTracks = class _ConnectCallback_ParticipantWithTracks extends Message {
143
- constructor(data) {
144
- super();
145
- /**
146
- * TrackInfo are not needed here, if we're subscribed to a track, the FfiServer will send
147
- * a TrackSubscribed event
148
- *
149
- * @generated from field: repeated livekit.proto.OwnedTrackPublication publications = 2;
150
- */
151
- this.publications = [];
152
- proto2.util.initPartial(data, this);
153
- }
154
- static fromBinary(bytes, options) {
155
- return new _ConnectCallback_ParticipantWithTracks().fromBinary(bytes, options);
156
- }
157
- static fromJson(jsonValue, options) {
158
- return new _ConnectCallback_ParticipantWithTracks().fromJson(jsonValue, options);
159
- }
160
- static fromJsonString(jsonString, options) {
161
- return new _ConnectCallback_ParticipantWithTracks().fromJsonString(jsonString, options);
162
- }
163
- static equals(a, b) {
164
- return proto2.util.equals(_ConnectCallback_ParticipantWithTracks, a, b);
165
- }
166
- };
167
- _ConnectCallback_ParticipantWithTracks.runtime = proto2;
168
- _ConnectCallback_ParticipantWithTracks.typeName = "livekit.proto.ConnectCallback.ParticipantWithTracks";
169
- _ConnectCallback_ParticipantWithTracks.fields = proto2.util.newFieldList(() => [
170
- { no: 1, name: "participant", kind: "message", T: OwnedParticipant, req: true },
171
- { no: 2, name: "publications", kind: "message", T: OwnedTrackPublication, repeated: true }
172
- ]);
173
- let ConnectCallback_ParticipantWithTracks = _ConnectCallback_ParticipantWithTracks;
174
- const _ConnectCallback_Result = class _ConnectCallback_Result extends Message {
175
- constructor(data) {
176
- super();
177
- /**
178
- * @generated from field: repeated livekit.proto.ConnectCallback.ParticipantWithTracks participants = 3;
179
- */
180
- this.participants = [];
181
- proto2.util.initPartial(data, this);
182
- }
183
- static fromBinary(bytes, options) {
184
- return new _ConnectCallback_Result().fromBinary(bytes, options);
185
- }
186
- static fromJson(jsonValue, options) {
187
- return new _ConnectCallback_Result().fromJson(jsonValue, options);
188
- }
189
- static fromJsonString(jsonString, options) {
190
- return new _ConnectCallback_Result().fromJsonString(jsonString, options);
191
- }
192
- static equals(a, b) {
193
- return proto2.util.equals(_ConnectCallback_Result, a, b);
194
- }
195
- };
196
- _ConnectCallback_Result.runtime = proto2;
197
- _ConnectCallback_Result.typeName = "livekit.proto.ConnectCallback.Result";
198
- _ConnectCallback_Result.fields = proto2.util.newFieldList(() => [
199
- { no: 1, name: "room", kind: "message", T: OwnedRoom, req: true },
200
- { no: 2, name: "local_participant", kind: "message", T: OwnedParticipant, req: true },
201
- { no: 3, name: "participants", kind: "message", T: ConnectCallback_ParticipantWithTracks, repeated: true }
202
- ]);
203
- let ConnectCallback_Result = _ConnectCallback_Result;
204
- const _DisconnectRequest = class _DisconnectRequest extends Message {
205
- constructor(data) {
206
- super();
207
- proto2.util.initPartial(data, this);
208
- }
209
- static fromBinary(bytes, options) {
210
- return new _DisconnectRequest().fromBinary(bytes, options);
211
- }
212
- static fromJson(jsonValue, options) {
213
- return new _DisconnectRequest().fromJson(jsonValue, options);
214
- }
215
- static fromJsonString(jsonString, options) {
216
- return new _DisconnectRequest().fromJsonString(jsonString, options);
217
- }
218
- static equals(a, b) {
219
- return proto2.util.equals(_DisconnectRequest, a, b);
220
- }
221
- };
222
- _DisconnectRequest.runtime = proto2;
223
- _DisconnectRequest.typeName = "livekit.proto.DisconnectRequest";
224
- _DisconnectRequest.fields = proto2.util.newFieldList(() => [
225
- { no: 1, name: "room_handle", kind: "scalar", T: 4, req: true }
226
- ]);
227
- let DisconnectRequest = _DisconnectRequest;
228
- const _DisconnectResponse = class _DisconnectResponse extends Message {
229
- constructor(data) {
230
- super();
231
- proto2.util.initPartial(data, this);
232
- }
233
- static fromBinary(bytes, options) {
234
- return new _DisconnectResponse().fromBinary(bytes, options);
235
- }
236
- static fromJson(jsonValue, options) {
237
- return new _DisconnectResponse().fromJson(jsonValue, options);
238
- }
239
- static fromJsonString(jsonString, options) {
240
- return new _DisconnectResponse().fromJsonString(jsonString, options);
241
- }
242
- static equals(a, b) {
243
- return proto2.util.equals(_DisconnectResponse, a, b);
244
- }
245
- };
246
- _DisconnectResponse.runtime = proto2;
247
- _DisconnectResponse.typeName = "livekit.proto.DisconnectResponse";
248
- _DisconnectResponse.fields = proto2.util.newFieldList(() => [
249
- { no: 1, name: "async_id", kind: "scalar", T: 4, req: true }
250
- ]);
251
- let DisconnectResponse = _DisconnectResponse;
252
- const _DisconnectCallback = class _DisconnectCallback extends Message {
253
- constructor(data) {
254
- super();
255
- proto2.util.initPartial(data, this);
256
- }
257
- static fromBinary(bytes, options) {
258
- return new _DisconnectCallback().fromBinary(bytes, options);
259
- }
260
- static fromJson(jsonValue, options) {
261
- return new _DisconnectCallback().fromJson(jsonValue, options);
262
- }
263
- static fromJsonString(jsonString, options) {
264
- return new _DisconnectCallback().fromJsonString(jsonString, options);
265
- }
266
- static equals(a, b) {
267
- return proto2.util.equals(_DisconnectCallback, a, b);
268
- }
269
- };
270
- _DisconnectCallback.runtime = proto2;
271
- _DisconnectCallback.typeName = "livekit.proto.DisconnectCallback";
272
- _DisconnectCallback.fields = proto2.util.newFieldList(() => [
273
- { no: 1, name: "async_id", kind: "scalar", T: 4, req: true }
274
- ]);
275
- let DisconnectCallback = _DisconnectCallback;
276
- const _PublishTrackRequest = class _PublishTrackRequest extends Message {
277
- constructor(data) {
278
- super();
279
- proto2.util.initPartial(data, this);
280
- }
281
- static fromBinary(bytes, options) {
282
- return new _PublishTrackRequest().fromBinary(bytes, options);
283
- }
284
- static fromJson(jsonValue, options) {
285
- return new _PublishTrackRequest().fromJson(jsonValue, options);
286
- }
287
- static fromJsonString(jsonString, options) {
288
- return new _PublishTrackRequest().fromJsonString(jsonString, options);
289
- }
290
- static equals(a, b) {
291
- return proto2.util.equals(_PublishTrackRequest, a, b);
292
- }
293
- };
294
- _PublishTrackRequest.runtime = proto2;
295
- _PublishTrackRequest.typeName = "livekit.proto.PublishTrackRequest";
296
- _PublishTrackRequest.fields = proto2.util.newFieldList(() => [
297
- { no: 1, name: "local_participant_handle", kind: "scalar", T: 4, req: true },
298
- { no: 2, name: "track_handle", kind: "scalar", T: 4, req: true },
299
- { no: 3, name: "options", kind: "message", T: TrackPublishOptions, req: true }
300
- ]);
301
- let PublishTrackRequest = _PublishTrackRequest;
302
- const _PublishTrackResponse = class _PublishTrackResponse extends Message {
303
- constructor(data) {
304
- super();
305
- proto2.util.initPartial(data, this);
306
- }
307
- static fromBinary(bytes, options) {
308
- return new _PublishTrackResponse().fromBinary(bytes, options);
309
- }
310
- static fromJson(jsonValue, options) {
311
- return new _PublishTrackResponse().fromJson(jsonValue, options);
312
- }
313
- static fromJsonString(jsonString, options) {
314
- return new _PublishTrackResponse().fromJsonString(jsonString, options);
315
- }
316
- static equals(a, b) {
317
- return proto2.util.equals(_PublishTrackResponse, a, b);
318
- }
319
- };
320
- _PublishTrackResponse.runtime = proto2;
321
- _PublishTrackResponse.typeName = "livekit.proto.PublishTrackResponse";
322
- _PublishTrackResponse.fields = proto2.util.newFieldList(() => [
323
- { no: 1, name: "async_id", kind: "scalar", T: 4, req: true }
324
- ]);
325
- let PublishTrackResponse = _PublishTrackResponse;
326
- const _PublishTrackCallback = class _PublishTrackCallback extends Message {
327
- constructor(data) {
328
- super();
329
- /**
330
- * @generated from oneof livekit.proto.PublishTrackCallback.message
331
- */
332
- this.message = { case: void 0 };
333
- proto2.util.initPartial(data, this);
334
- }
335
- static fromBinary(bytes, options) {
336
- return new _PublishTrackCallback().fromBinary(bytes, options);
337
- }
338
- static fromJson(jsonValue, options) {
339
- return new _PublishTrackCallback().fromJson(jsonValue, options);
340
- }
341
- static fromJsonString(jsonString, options) {
342
- return new _PublishTrackCallback().fromJsonString(jsonString, options);
343
- }
344
- static equals(a, b) {
345
- return proto2.util.equals(_PublishTrackCallback, a, b);
346
- }
347
- };
348
- _PublishTrackCallback.runtime = proto2;
349
- _PublishTrackCallback.typeName = "livekit.proto.PublishTrackCallback";
350
- _PublishTrackCallback.fields = proto2.util.newFieldList(() => [
351
- { no: 1, name: "async_id", kind: "scalar", T: 4, req: true },
352
- { no: 2, name: "error", kind: "scalar", T: 9, oneof: "message" },
353
- { no: 3, name: "publication", kind: "message", T: OwnedTrackPublication, oneof: "message" }
354
- ]);
355
- let PublishTrackCallback = _PublishTrackCallback;
356
- const _UnpublishTrackRequest = class _UnpublishTrackRequest extends Message {
357
- constructor(data) {
358
- super();
359
- proto2.util.initPartial(data, this);
360
- }
361
- static fromBinary(bytes, options) {
362
- return new _UnpublishTrackRequest().fromBinary(bytes, options);
363
- }
364
- static fromJson(jsonValue, options) {
365
- return new _UnpublishTrackRequest().fromJson(jsonValue, options);
366
- }
367
- static fromJsonString(jsonString, options) {
368
- return new _UnpublishTrackRequest().fromJsonString(jsonString, options);
369
- }
370
- static equals(a, b) {
371
- return proto2.util.equals(_UnpublishTrackRequest, a, b);
372
- }
373
- };
374
- _UnpublishTrackRequest.runtime = proto2;
375
- _UnpublishTrackRequest.typeName = "livekit.proto.UnpublishTrackRequest";
376
- _UnpublishTrackRequest.fields = proto2.util.newFieldList(() => [
377
- { no: 1, name: "local_participant_handle", kind: "scalar", T: 4, req: true },
378
- { no: 2, name: "track_sid", kind: "scalar", T: 9, req: true },
379
- { no: 3, name: "stop_on_unpublish", kind: "scalar", T: 8, req: true }
380
- ]);
381
- let UnpublishTrackRequest = _UnpublishTrackRequest;
382
- const _UnpublishTrackResponse = class _UnpublishTrackResponse extends Message {
383
- constructor(data) {
384
- super();
385
- proto2.util.initPartial(data, this);
386
- }
387
- static fromBinary(bytes, options) {
388
- return new _UnpublishTrackResponse().fromBinary(bytes, options);
389
- }
390
- static fromJson(jsonValue, options) {
391
- return new _UnpublishTrackResponse().fromJson(jsonValue, options);
392
- }
393
- static fromJsonString(jsonString, options) {
394
- return new _UnpublishTrackResponse().fromJsonString(jsonString, options);
395
- }
396
- static equals(a, b) {
397
- return proto2.util.equals(_UnpublishTrackResponse, a, b);
398
- }
399
- };
400
- _UnpublishTrackResponse.runtime = proto2;
401
- _UnpublishTrackResponse.typeName = "livekit.proto.UnpublishTrackResponse";
402
- _UnpublishTrackResponse.fields = proto2.util.newFieldList(() => [
403
- { no: 1, name: "async_id", kind: "scalar", T: 4, req: true }
404
- ]);
405
- let UnpublishTrackResponse = _UnpublishTrackResponse;
406
- const _UnpublishTrackCallback = class _UnpublishTrackCallback extends Message {
407
- constructor(data) {
408
- super();
409
- proto2.util.initPartial(data, this);
410
- }
411
- static fromBinary(bytes, options) {
412
- return new _UnpublishTrackCallback().fromBinary(bytes, options);
413
- }
414
- static fromJson(jsonValue, options) {
415
- return new _UnpublishTrackCallback().fromJson(jsonValue, options);
416
- }
417
- static fromJsonString(jsonString, options) {
418
- return new _UnpublishTrackCallback().fromJsonString(jsonString, options);
419
- }
420
- static equals(a, b) {
421
- return proto2.util.equals(_UnpublishTrackCallback, a, b);
422
- }
423
- };
424
- _UnpublishTrackCallback.runtime = proto2;
425
- _UnpublishTrackCallback.typeName = "livekit.proto.UnpublishTrackCallback";
426
- _UnpublishTrackCallback.fields = proto2.util.newFieldList(() => [
427
- { no: 1, name: "async_id", kind: "scalar", T: 4, req: true },
428
- { no: 2, name: "error", kind: "scalar", T: 9, opt: true }
429
- ]);
430
- let UnpublishTrackCallback = _UnpublishTrackCallback;
431
- const _PublishDataRequest = class _PublishDataRequest extends Message {
432
- constructor(data) {
433
- super();
434
- /**
435
- * @generated from field: repeated string destination_sids = 5 [deprecated = true];
436
- * @deprecated
437
- */
438
- this.destinationSids = [];
439
- /**
440
- * @generated from field: repeated string destination_identities = 7;
441
- */
442
- this.destinationIdentities = [];
443
- proto2.util.initPartial(data, this);
444
- }
445
- static fromBinary(bytes, options) {
446
- return new _PublishDataRequest().fromBinary(bytes, options);
447
- }
448
- static fromJson(jsonValue, options) {
449
- return new _PublishDataRequest().fromJson(jsonValue, options);
450
- }
451
- static fromJsonString(jsonString, options) {
452
- return new _PublishDataRequest().fromJsonString(jsonString, options);
453
- }
454
- static equals(a, b) {
455
- return proto2.util.equals(_PublishDataRequest, a, b);
456
- }
457
- };
458
- _PublishDataRequest.runtime = proto2;
459
- _PublishDataRequest.typeName = "livekit.proto.PublishDataRequest";
460
- _PublishDataRequest.fields = proto2.util.newFieldList(() => [
461
- { no: 1, name: "local_participant_handle", kind: "scalar", T: 4, req: true },
462
- { no: 2, name: "data_ptr", kind: "scalar", T: 4, req: true },
463
- { no: 3, name: "data_len", kind: "scalar", T: 4, req: true },
464
- { no: 4, name: "reliable", kind: "scalar", T: 8, req: true },
465
- { no: 5, name: "destination_sids", kind: "scalar", T: 9, repeated: true },
466
- { no: 6, name: "topic", kind: "scalar", T: 9, opt: true },
467
- { no: 7, name: "destination_identities", kind: "scalar", T: 9, repeated: true }
468
- ]);
469
- let PublishDataRequest = _PublishDataRequest;
470
- const _PublishDataResponse = class _PublishDataResponse extends Message {
471
- constructor(data) {
472
- super();
473
- proto2.util.initPartial(data, this);
474
- }
475
- static fromBinary(bytes, options) {
476
- return new _PublishDataResponse().fromBinary(bytes, options);
477
- }
478
- static fromJson(jsonValue, options) {
479
- return new _PublishDataResponse().fromJson(jsonValue, options);
480
- }
481
- static fromJsonString(jsonString, options) {
482
- return new _PublishDataResponse().fromJsonString(jsonString, options);
483
- }
484
- static equals(a, b) {
485
- return proto2.util.equals(_PublishDataResponse, a, b);
486
- }
487
- };
488
- _PublishDataResponse.runtime = proto2;
489
- _PublishDataResponse.typeName = "livekit.proto.PublishDataResponse";
490
- _PublishDataResponse.fields = proto2.util.newFieldList(() => [
491
- { no: 1, name: "async_id", kind: "scalar", T: 4, req: true }
492
- ]);
493
- let PublishDataResponse = _PublishDataResponse;
494
- const _PublishDataCallback = class _PublishDataCallback extends Message {
495
- constructor(data) {
496
- super();
497
- proto2.util.initPartial(data, this);
498
- }
499
- static fromBinary(bytes, options) {
500
- return new _PublishDataCallback().fromBinary(bytes, options);
501
- }
502
- static fromJson(jsonValue, options) {
503
- return new _PublishDataCallback().fromJson(jsonValue, options);
504
- }
505
- static fromJsonString(jsonString, options) {
506
- return new _PublishDataCallback().fromJsonString(jsonString, options);
507
- }
508
- static equals(a, b) {
509
- return proto2.util.equals(_PublishDataCallback, a, b);
510
- }
511
- };
512
- _PublishDataCallback.runtime = proto2;
513
- _PublishDataCallback.typeName = "livekit.proto.PublishDataCallback";
514
- _PublishDataCallback.fields = proto2.util.newFieldList(() => [
515
- { no: 1, name: "async_id", kind: "scalar", T: 4, req: true },
516
- { no: 2, name: "error", kind: "scalar", T: 9, opt: true }
517
- ]);
518
- let PublishDataCallback = _PublishDataCallback;
519
- const _PublishTranscriptionRequest = class _PublishTranscriptionRequest extends Message {
520
- constructor(data) {
521
- super();
522
- /**
523
- * @generated from field: repeated livekit.proto.TranscriptionSegment segments = 4;
524
- */
525
- this.segments = [];
526
- proto2.util.initPartial(data, this);
527
- }
528
- static fromBinary(bytes, options) {
529
- return new _PublishTranscriptionRequest().fromBinary(bytes, options);
530
- }
531
- static fromJson(jsonValue, options) {
532
- return new _PublishTranscriptionRequest().fromJson(jsonValue, options);
533
- }
534
- static fromJsonString(jsonString, options) {
535
- return new _PublishTranscriptionRequest().fromJsonString(jsonString, options);
536
- }
537
- static equals(a, b) {
538
- return proto2.util.equals(_PublishTranscriptionRequest, a, b);
539
- }
540
- };
541
- _PublishTranscriptionRequest.runtime = proto2;
542
- _PublishTranscriptionRequest.typeName = "livekit.proto.PublishTranscriptionRequest";
543
- _PublishTranscriptionRequest.fields = proto2.util.newFieldList(() => [
544
- { no: 1, name: "local_participant_handle", kind: "scalar", T: 4, req: true },
545
- { no: 2, name: "participant_identity", kind: "scalar", T: 9, req: true },
546
- { no: 3, name: "track_id", kind: "scalar", T: 9, req: true },
547
- { no: 4, name: "segments", kind: "message", T: TranscriptionSegment, repeated: true }
548
- ]);
549
- let PublishTranscriptionRequest = _PublishTranscriptionRequest;
550
- const _PublishTranscriptionResponse = class _PublishTranscriptionResponse extends Message {
551
- constructor(data) {
552
- super();
553
- proto2.util.initPartial(data, this);
554
- }
555
- static fromBinary(bytes, options) {
556
- return new _PublishTranscriptionResponse().fromBinary(bytes, options);
557
- }
558
- static fromJson(jsonValue, options) {
559
- return new _PublishTranscriptionResponse().fromJson(jsonValue, options);
560
- }
561
- static fromJsonString(jsonString, options) {
562
- return new _PublishTranscriptionResponse().fromJsonString(jsonString, options);
563
- }
564
- static equals(a, b) {
565
- return proto2.util.equals(_PublishTranscriptionResponse, a, b);
566
- }
567
- };
568
- _PublishTranscriptionResponse.runtime = proto2;
569
- _PublishTranscriptionResponse.typeName = "livekit.proto.PublishTranscriptionResponse";
570
- _PublishTranscriptionResponse.fields = proto2.util.newFieldList(() => [
571
- { no: 1, name: "async_id", kind: "scalar", T: 4, req: true }
572
- ]);
573
- let PublishTranscriptionResponse = _PublishTranscriptionResponse;
574
- const _PublishTranscriptionCallback = class _PublishTranscriptionCallback extends Message {
575
- constructor(data) {
576
- super();
577
- proto2.util.initPartial(data, this);
578
- }
579
- static fromBinary(bytes, options) {
580
- return new _PublishTranscriptionCallback().fromBinary(bytes, options);
581
- }
582
- static fromJson(jsonValue, options) {
583
- return new _PublishTranscriptionCallback().fromJson(jsonValue, options);
584
- }
585
- static fromJsonString(jsonString, options) {
586
- return new _PublishTranscriptionCallback().fromJsonString(jsonString, options);
587
- }
588
- static equals(a, b) {
589
- return proto2.util.equals(_PublishTranscriptionCallback, a, b);
590
- }
591
- };
592
- _PublishTranscriptionCallback.runtime = proto2;
593
- _PublishTranscriptionCallback.typeName = "livekit.proto.PublishTranscriptionCallback";
594
- _PublishTranscriptionCallback.fields = proto2.util.newFieldList(() => [
595
- { no: 1, name: "async_id", kind: "scalar", T: 4, req: true },
596
- { no: 2, name: "error", kind: "scalar", T: 9, opt: true }
597
- ]);
598
- let PublishTranscriptionCallback = _PublishTranscriptionCallback;
599
- const _PublishSipDtmfRequest = class _PublishSipDtmfRequest extends Message {
600
- constructor(data) {
601
- super();
602
- /**
603
- * @generated from field: repeated string destination_identities = 4;
604
- */
605
- this.destinationIdentities = [];
606
- proto2.util.initPartial(data, this);
607
- }
608
- static fromBinary(bytes, options) {
609
- return new _PublishSipDtmfRequest().fromBinary(bytes, options);
610
- }
611
- static fromJson(jsonValue, options) {
612
- return new _PublishSipDtmfRequest().fromJson(jsonValue, options);
613
- }
614
- static fromJsonString(jsonString, options) {
615
- return new _PublishSipDtmfRequest().fromJsonString(jsonString, options);
616
- }
617
- static equals(a, b) {
618
- return proto2.util.equals(_PublishSipDtmfRequest, a, b);
619
- }
620
- };
621
- _PublishSipDtmfRequest.runtime = proto2;
622
- _PublishSipDtmfRequest.typeName = "livekit.proto.PublishSipDtmfRequest";
623
- _PublishSipDtmfRequest.fields = proto2.util.newFieldList(() => [
624
- { no: 1, name: "local_participant_handle", kind: "scalar", T: 4, req: true },
625
- { no: 2, name: "code", kind: "scalar", T: 13, req: true },
626
- { no: 3, name: "digit", kind: "scalar", T: 9, req: true },
627
- { no: 4, name: "destination_identities", kind: "scalar", T: 9, repeated: true }
628
- ]);
629
- let PublishSipDtmfRequest = _PublishSipDtmfRequest;
630
- const _PublishSipDtmfResponse = class _PublishSipDtmfResponse extends Message {
631
- constructor(data) {
632
- super();
633
- proto2.util.initPartial(data, this);
634
- }
635
- static fromBinary(bytes, options) {
636
- return new _PublishSipDtmfResponse().fromBinary(bytes, options);
637
- }
638
- static fromJson(jsonValue, options) {
639
- return new _PublishSipDtmfResponse().fromJson(jsonValue, options);
640
- }
641
- static fromJsonString(jsonString, options) {
642
- return new _PublishSipDtmfResponse().fromJsonString(jsonString, options);
643
- }
644
- static equals(a, b) {
645
- return proto2.util.equals(_PublishSipDtmfResponse, a, b);
646
- }
647
- };
648
- _PublishSipDtmfResponse.runtime = proto2;
649
- _PublishSipDtmfResponse.typeName = "livekit.proto.PublishSipDtmfResponse";
650
- _PublishSipDtmfResponse.fields = proto2.util.newFieldList(() => [
651
- { no: 1, name: "async_id", kind: "scalar", T: 4, req: true }
652
- ]);
653
- let PublishSipDtmfResponse = _PublishSipDtmfResponse;
654
- const _PublishSipDtmfCallback = class _PublishSipDtmfCallback extends Message {
655
- constructor(data) {
656
- super();
657
- proto2.util.initPartial(data, this);
658
- }
659
- static fromBinary(bytes, options) {
660
- return new _PublishSipDtmfCallback().fromBinary(bytes, options);
661
- }
662
- static fromJson(jsonValue, options) {
663
- return new _PublishSipDtmfCallback().fromJson(jsonValue, options);
664
- }
665
- static fromJsonString(jsonString, options) {
666
- return new _PublishSipDtmfCallback().fromJsonString(jsonString, options);
667
- }
668
- static equals(a, b) {
669
- return proto2.util.equals(_PublishSipDtmfCallback, a, b);
670
- }
671
- };
672
- _PublishSipDtmfCallback.runtime = proto2;
673
- _PublishSipDtmfCallback.typeName = "livekit.proto.PublishSipDtmfCallback";
674
- _PublishSipDtmfCallback.fields = proto2.util.newFieldList(() => [
675
- { no: 1, name: "async_id", kind: "scalar", T: 4, req: true },
676
- { no: 2, name: "error", kind: "scalar", T: 9, opt: true }
677
- ]);
678
- let PublishSipDtmfCallback = _PublishSipDtmfCallback;
679
- const _SetLocalMetadataRequest = class _SetLocalMetadataRequest extends Message {
680
- constructor(data) {
681
- super();
682
- proto2.util.initPartial(data, this);
683
- }
684
- static fromBinary(bytes, options) {
685
- return new _SetLocalMetadataRequest().fromBinary(bytes, options);
686
- }
687
- static fromJson(jsonValue, options) {
688
- return new _SetLocalMetadataRequest().fromJson(jsonValue, options);
689
- }
690
- static fromJsonString(jsonString, options) {
691
- return new _SetLocalMetadataRequest().fromJsonString(jsonString, options);
692
- }
693
- static equals(a, b) {
694
- return proto2.util.equals(_SetLocalMetadataRequest, a, b);
695
- }
696
- };
697
- _SetLocalMetadataRequest.runtime = proto2;
698
- _SetLocalMetadataRequest.typeName = "livekit.proto.SetLocalMetadataRequest";
699
- _SetLocalMetadataRequest.fields = proto2.util.newFieldList(() => [
700
- { no: 1, name: "local_participant_handle", kind: "scalar", T: 4, req: true },
701
- { no: 2, name: "metadata", kind: "scalar", T: 9, req: true }
702
- ]);
703
- let SetLocalMetadataRequest = _SetLocalMetadataRequest;
704
- const _SetLocalMetadataResponse = class _SetLocalMetadataResponse extends Message {
705
- constructor(data) {
706
- super();
707
- proto2.util.initPartial(data, this);
708
- }
709
- static fromBinary(bytes, options) {
710
- return new _SetLocalMetadataResponse().fromBinary(bytes, options);
711
- }
712
- static fromJson(jsonValue, options) {
713
- return new _SetLocalMetadataResponse().fromJson(jsonValue, options);
714
- }
715
- static fromJsonString(jsonString, options) {
716
- return new _SetLocalMetadataResponse().fromJsonString(jsonString, options);
717
- }
718
- static equals(a, b) {
719
- return proto2.util.equals(_SetLocalMetadataResponse, a, b);
720
- }
721
- };
722
- _SetLocalMetadataResponse.runtime = proto2;
723
- _SetLocalMetadataResponse.typeName = "livekit.proto.SetLocalMetadataResponse";
724
- _SetLocalMetadataResponse.fields = proto2.util.newFieldList(() => [
725
- { no: 1, name: "async_id", kind: "scalar", T: 4, req: true }
726
- ]);
727
- let SetLocalMetadataResponse = _SetLocalMetadataResponse;
728
- const _SetLocalMetadataCallback = class _SetLocalMetadataCallback extends Message {
729
- constructor(data) {
730
- super();
731
- proto2.util.initPartial(data, this);
732
- }
733
- static fromBinary(bytes, options) {
734
- return new _SetLocalMetadataCallback().fromBinary(bytes, options);
735
- }
736
- static fromJson(jsonValue, options) {
737
- return new _SetLocalMetadataCallback().fromJson(jsonValue, options);
738
- }
739
- static fromJsonString(jsonString, options) {
740
- return new _SetLocalMetadataCallback().fromJsonString(jsonString, options);
741
- }
742
- static equals(a, b) {
743
- return proto2.util.equals(_SetLocalMetadataCallback, a, b);
744
- }
745
- };
746
- _SetLocalMetadataCallback.runtime = proto2;
747
- _SetLocalMetadataCallback.typeName = "livekit.proto.SetLocalMetadataCallback";
748
- _SetLocalMetadataCallback.fields = proto2.util.newFieldList(() => [
749
- { no: 1, name: "async_id", kind: "scalar", T: 4, req: true },
750
- { no: 2, name: "error", kind: "scalar", T: 9, opt: true }
751
- ]);
752
- let SetLocalMetadataCallback = _SetLocalMetadataCallback;
753
- const _SendChatMessageRequest = class _SendChatMessageRequest extends Message {
754
- constructor(data) {
755
- super();
756
- /**
757
- * @generated from field: repeated string destination_identities = 3;
758
- */
759
- this.destinationIdentities = [];
760
- proto2.util.initPartial(data, this);
761
- }
762
- static fromBinary(bytes, options) {
763
- return new _SendChatMessageRequest().fromBinary(bytes, options);
764
- }
765
- static fromJson(jsonValue, options) {
766
- return new _SendChatMessageRequest().fromJson(jsonValue, options);
767
- }
768
- static fromJsonString(jsonString, options) {
769
- return new _SendChatMessageRequest().fromJsonString(jsonString, options);
770
- }
771
- static equals(a, b) {
772
- return proto2.util.equals(_SendChatMessageRequest, a, b);
773
- }
774
- };
775
- _SendChatMessageRequest.runtime = proto2;
776
- _SendChatMessageRequest.typeName = "livekit.proto.SendChatMessageRequest";
777
- _SendChatMessageRequest.fields = proto2.util.newFieldList(() => [
778
- { no: 1, name: "local_participant_handle", kind: "scalar", T: 4, req: true },
779
- { no: 2, name: "message", kind: "scalar", T: 9, req: true },
780
- { no: 3, name: "destination_identities", kind: "scalar", T: 9, repeated: true },
781
- { no: 4, name: "sender_identity", kind: "scalar", T: 9, opt: true }
782
- ]);
783
- let SendChatMessageRequest = _SendChatMessageRequest;
784
- const _EditChatMessageRequest = class _EditChatMessageRequest extends Message {
785
- constructor(data) {
786
- super();
787
- /**
788
- * @generated from field: repeated string destination_identities = 4;
789
- */
790
- this.destinationIdentities = [];
791
- proto2.util.initPartial(data, this);
792
- }
793
- static fromBinary(bytes, options) {
794
- return new _EditChatMessageRequest().fromBinary(bytes, options);
795
- }
796
- static fromJson(jsonValue, options) {
797
- return new _EditChatMessageRequest().fromJson(jsonValue, options);
798
- }
799
- static fromJsonString(jsonString, options) {
800
- return new _EditChatMessageRequest().fromJsonString(jsonString, options);
801
- }
802
- static equals(a, b) {
803
- return proto2.util.equals(_EditChatMessageRequest, a, b);
804
- }
805
- };
806
- _EditChatMessageRequest.runtime = proto2;
807
- _EditChatMessageRequest.typeName = "livekit.proto.EditChatMessageRequest";
808
- _EditChatMessageRequest.fields = proto2.util.newFieldList(() => [
809
- { no: 1, name: "local_participant_handle", kind: "scalar", T: 4, req: true },
810
- { no: 2, name: "edit_text", kind: "scalar", T: 9, req: true },
811
- { no: 3, name: "original_message", kind: "message", T: ChatMessage, req: true },
812
- { no: 4, name: "destination_identities", kind: "scalar", T: 9, repeated: true },
813
- { no: 5, name: "sender_identity", kind: "scalar", T: 9, opt: true }
814
- ]);
815
- let EditChatMessageRequest = _EditChatMessageRequest;
816
- const _SendChatMessageResponse = class _SendChatMessageResponse extends Message {
817
- constructor(data) {
818
- super();
819
- proto2.util.initPartial(data, this);
820
- }
821
- static fromBinary(bytes, options) {
822
- return new _SendChatMessageResponse().fromBinary(bytes, options);
823
- }
824
- static fromJson(jsonValue, options) {
825
- return new _SendChatMessageResponse().fromJson(jsonValue, options);
826
- }
827
- static fromJsonString(jsonString, options) {
828
- return new _SendChatMessageResponse().fromJsonString(jsonString, options);
829
- }
830
- static equals(a, b) {
831
- return proto2.util.equals(_SendChatMessageResponse, a, b);
832
- }
833
- };
834
- _SendChatMessageResponse.runtime = proto2;
835
- _SendChatMessageResponse.typeName = "livekit.proto.SendChatMessageResponse";
836
- _SendChatMessageResponse.fields = proto2.util.newFieldList(() => [
837
- { no: 1, name: "async_id", kind: "scalar", T: 4, req: true }
838
- ]);
839
- let SendChatMessageResponse = _SendChatMessageResponse;
840
- const _SendChatMessageCallback = class _SendChatMessageCallback extends Message {
841
- constructor(data) {
842
- super();
843
- /**
844
- * @generated from oneof livekit.proto.SendChatMessageCallback.message
845
- */
846
- this.message = { case: void 0 };
847
- proto2.util.initPartial(data, this);
848
- }
849
- static fromBinary(bytes, options) {
850
- return new _SendChatMessageCallback().fromBinary(bytes, options);
851
- }
852
- static fromJson(jsonValue, options) {
853
- return new _SendChatMessageCallback().fromJson(jsonValue, options);
854
- }
855
- static fromJsonString(jsonString, options) {
856
- return new _SendChatMessageCallback().fromJsonString(jsonString, options);
857
- }
858
- static equals(a, b) {
859
- return proto2.util.equals(_SendChatMessageCallback, a, b);
860
- }
861
- };
862
- _SendChatMessageCallback.runtime = proto2;
863
- _SendChatMessageCallback.typeName = "livekit.proto.SendChatMessageCallback";
864
- _SendChatMessageCallback.fields = proto2.util.newFieldList(() => [
865
- { no: 1, name: "async_id", kind: "scalar", T: 4, req: true },
866
- { no: 2, name: "error", kind: "scalar", T: 9, oneof: "message" },
867
- { no: 3, name: "chat_message", kind: "message", T: ChatMessage, oneof: "message" }
868
- ]);
869
- let SendChatMessageCallback = _SendChatMessageCallback;
870
- const _SetLocalAttributesRequest = class _SetLocalAttributesRequest extends Message {
871
- constructor(data) {
872
- super();
873
- /**
874
- * @generated from field: repeated livekit.proto.AttributesEntry attributes = 2;
875
- */
876
- this.attributes = [];
877
- proto2.util.initPartial(data, this);
878
- }
879
- static fromBinary(bytes, options) {
880
- return new _SetLocalAttributesRequest().fromBinary(bytes, options);
881
- }
882
- static fromJson(jsonValue, options) {
883
- return new _SetLocalAttributesRequest().fromJson(jsonValue, options);
884
- }
885
- static fromJsonString(jsonString, options) {
886
- return new _SetLocalAttributesRequest().fromJsonString(jsonString, options);
887
- }
888
- static equals(a, b) {
889
- return proto2.util.equals(_SetLocalAttributesRequest, a, b);
890
- }
891
- };
892
- _SetLocalAttributesRequest.runtime = proto2;
893
- _SetLocalAttributesRequest.typeName = "livekit.proto.SetLocalAttributesRequest";
894
- _SetLocalAttributesRequest.fields = proto2.util.newFieldList(() => [
895
- { no: 1, name: "local_participant_handle", kind: "scalar", T: 4, req: true },
896
- { no: 2, name: "attributes", kind: "message", T: AttributesEntry, repeated: true }
897
- ]);
898
- let SetLocalAttributesRequest = _SetLocalAttributesRequest;
899
- const _AttributesEntry = class _AttributesEntry extends Message {
900
- constructor(data) {
901
- super();
902
- proto2.util.initPartial(data, this);
903
- }
904
- static fromBinary(bytes, options) {
905
- return new _AttributesEntry().fromBinary(bytes, options);
906
- }
907
- static fromJson(jsonValue, options) {
908
- return new _AttributesEntry().fromJson(jsonValue, options);
909
- }
910
- static fromJsonString(jsonString, options) {
911
- return new _AttributesEntry().fromJsonString(jsonString, options);
912
- }
913
- static equals(a, b) {
914
- return proto2.util.equals(_AttributesEntry, a, b);
915
- }
916
- };
917
- _AttributesEntry.runtime = proto2;
918
- _AttributesEntry.typeName = "livekit.proto.AttributesEntry";
919
- _AttributesEntry.fields = proto2.util.newFieldList(() => [
920
- { no: 1, name: "key", kind: "scalar", T: 9, req: true },
921
- { no: 2, name: "value", kind: "scalar", T: 9, req: true }
922
- ]);
923
- let AttributesEntry = _AttributesEntry;
924
- const _SetLocalAttributesResponse = class _SetLocalAttributesResponse extends Message {
925
- constructor(data) {
926
- super();
927
- proto2.util.initPartial(data, this);
928
- }
929
- static fromBinary(bytes, options) {
930
- return new _SetLocalAttributesResponse().fromBinary(bytes, options);
931
- }
932
- static fromJson(jsonValue, options) {
933
- return new _SetLocalAttributesResponse().fromJson(jsonValue, options);
934
- }
935
- static fromJsonString(jsonString, options) {
936
- return new _SetLocalAttributesResponse().fromJsonString(jsonString, options);
937
- }
938
- static equals(a, b) {
939
- return proto2.util.equals(_SetLocalAttributesResponse, a, b);
940
- }
941
- };
942
- _SetLocalAttributesResponse.runtime = proto2;
943
- _SetLocalAttributesResponse.typeName = "livekit.proto.SetLocalAttributesResponse";
944
- _SetLocalAttributesResponse.fields = proto2.util.newFieldList(() => [
945
- { no: 1, name: "async_id", kind: "scalar", T: 4, req: true }
946
- ]);
947
- let SetLocalAttributesResponse = _SetLocalAttributesResponse;
948
- const _SetLocalAttributesCallback = class _SetLocalAttributesCallback extends Message {
949
- constructor(data) {
950
- super();
951
- proto2.util.initPartial(data, this);
952
- }
953
- static fromBinary(bytes, options) {
954
- return new _SetLocalAttributesCallback().fromBinary(bytes, options);
955
- }
956
- static fromJson(jsonValue, options) {
957
- return new _SetLocalAttributesCallback().fromJson(jsonValue, options);
958
- }
959
- static fromJsonString(jsonString, options) {
960
- return new _SetLocalAttributesCallback().fromJsonString(jsonString, options);
961
- }
962
- static equals(a, b) {
963
- return proto2.util.equals(_SetLocalAttributesCallback, a, b);
964
- }
965
- };
966
- _SetLocalAttributesCallback.runtime = proto2;
967
- _SetLocalAttributesCallback.typeName = "livekit.proto.SetLocalAttributesCallback";
968
- _SetLocalAttributesCallback.fields = proto2.util.newFieldList(() => [
969
- { no: 1, name: "async_id", kind: "scalar", T: 4, req: true },
970
- { no: 2, name: "error", kind: "scalar", T: 9, opt: true }
971
- ]);
972
- let SetLocalAttributesCallback = _SetLocalAttributesCallback;
973
- const _SetLocalNameRequest = class _SetLocalNameRequest extends Message {
974
- constructor(data) {
975
- super();
976
- proto2.util.initPartial(data, this);
977
- }
978
- static fromBinary(bytes, options) {
979
- return new _SetLocalNameRequest().fromBinary(bytes, options);
980
- }
981
- static fromJson(jsonValue, options) {
982
- return new _SetLocalNameRequest().fromJson(jsonValue, options);
983
- }
984
- static fromJsonString(jsonString, options) {
985
- return new _SetLocalNameRequest().fromJsonString(jsonString, options);
986
- }
987
- static equals(a, b) {
988
- return proto2.util.equals(_SetLocalNameRequest, a, b);
989
- }
990
- };
991
- _SetLocalNameRequest.runtime = proto2;
992
- _SetLocalNameRequest.typeName = "livekit.proto.SetLocalNameRequest";
993
- _SetLocalNameRequest.fields = proto2.util.newFieldList(() => [
994
- { no: 1, name: "local_participant_handle", kind: "scalar", T: 4, req: true },
995
- { no: 2, name: "name", kind: "scalar", T: 9, req: true }
996
- ]);
997
- let SetLocalNameRequest = _SetLocalNameRequest;
998
- const _SetLocalNameResponse = class _SetLocalNameResponse extends Message {
999
- constructor(data) {
1000
- super();
1001
- proto2.util.initPartial(data, this);
1002
- }
1003
- static fromBinary(bytes, options) {
1004
- return new _SetLocalNameResponse().fromBinary(bytes, options);
1005
- }
1006
- static fromJson(jsonValue, options) {
1007
- return new _SetLocalNameResponse().fromJson(jsonValue, options);
1008
- }
1009
- static fromJsonString(jsonString, options) {
1010
- return new _SetLocalNameResponse().fromJsonString(jsonString, options);
1011
- }
1012
- static equals(a, b) {
1013
- return proto2.util.equals(_SetLocalNameResponse, a, b);
1014
- }
1015
- };
1016
- _SetLocalNameResponse.runtime = proto2;
1017
- _SetLocalNameResponse.typeName = "livekit.proto.SetLocalNameResponse";
1018
- _SetLocalNameResponse.fields = proto2.util.newFieldList(() => [
1019
- { no: 1, name: "async_id", kind: "scalar", T: 4, req: true }
1020
- ]);
1021
- let SetLocalNameResponse = _SetLocalNameResponse;
1022
- const _SetLocalNameCallback = class _SetLocalNameCallback extends Message {
1023
- constructor(data) {
1024
- super();
1025
- proto2.util.initPartial(data, this);
1026
- }
1027
- static fromBinary(bytes, options) {
1028
- return new _SetLocalNameCallback().fromBinary(bytes, options);
1029
- }
1030
- static fromJson(jsonValue, options) {
1031
- return new _SetLocalNameCallback().fromJson(jsonValue, options);
1032
- }
1033
- static fromJsonString(jsonString, options) {
1034
- return new _SetLocalNameCallback().fromJsonString(jsonString, options);
1035
- }
1036
- static equals(a, b) {
1037
- return proto2.util.equals(_SetLocalNameCallback, a, b);
1038
- }
1039
- };
1040
- _SetLocalNameCallback.runtime = proto2;
1041
- _SetLocalNameCallback.typeName = "livekit.proto.SetLocalNameCallback";
1042
- _SetLocalNameCallback.fields = proto2.util.newFieldList(() => [
1043
- { no: 1, name: "async_id", kind: "scalar", T: 4, req: true },
1044
- { no: 2, name: "error", kind: "scalar", T: 9, opt: true }
1045
- ]);
1046
- let SetLocalNameCallback = _SetLocalNameCallback;
1047
- const _SetSubscribedRequest = class _SetSubscribedRequest extends Message {
1048
- constructor(data) {
1049
- super();
1050
- proto2.util.initPartial(data, this);
1051
- }
1052
- static fromBinary(bytes, options) {
1053
- return new _SetSubscribedRequest().fromBinary(bytes, options);
1054
- }
1055
- static fromJson(jsonValue, options) {
1056
- return new _SetSubscribedRequest().fromJson(jsonValue, options);
1057
- }
1058
- static fromJsonString(jsonString, options) {
1059
- return new _SetSubscribedRequest().fromJsonString(jsonString, options);
1060
- }
1061
- static equals(a, b) {
1062
- return proto2.util.equals(_SetSubscribedRequest, a, b);
1063
- }
1064
- };
1065
- _SetSubscribedRequest.runtime = proto2;
1066
- _SetSubscribedRequest.typeName = "livekit.proto.SetSubscribedRequest";
1067
- _SetSubscribedRequest.fields = proto2.util.newFieldList(() => [
1068
- { no: 1, name: "subscribe", kind: "scalar", T: 8, req: true },
1069
- { no: 2, name: "publication_handle", kind: "scalar", T: 4, req: true }
1070
- ]);
1071
- let SetSubscribedRequest = _SetSubscribedRequest;
1072
- const _SetSubscribedResponse = class _SetSubscribedResponse extends Message {
1073
- constructor(data) {
1074
- super();
1075
- proto2.util.initPartial(data, this);
1076
- }
1077
- static fromBinary(bytes, options) {
1078
- return new _SetSubscribedResponse().fromBinary(bytes, options);
1079
- }
1080
- static fromJson(jsonValue, options) {
1081
- return new _SetSubscribedResponse().fromJson(jsonValue, options);
1082
- }
1083
- static fromJsonString(jsonString, options) {
1084
- return new _SetSubscribedResponse().fromJsonString(jsonString, options);
1085
- }
1086
- static equals(a, b) {
1087
- return proto2.util.equals(_SetSubscribedResponse, a, b);
1088
- }
1089
- };
1090
- _SetSubscribedResponse.runtime = proto2;
1091
- _SetSubscribedResponse.typeName = "livekit.proto.SetSubscribedResponse";
1092
- _SetSubscribedResponse.fields = proto2.util.newFieldList(() => []);
1093
- let SetSubscribedResponse = _SetSubscribedResponse;
1094
- const _GetSessionStatsRequest = class _GetSessionStatsRequest extends Message {
1095
- constructor(data) {
1096
- super();
1097
- proto2.util.initPartial(data, this);
1098
- }
1099
- static fromBinary(bytes, options) {
1100
- return new _GetSessionStatsRequest().fromBinary(bytes, options);
1101
- }
1102
- static fromJson(jsonValue, options) {
1103
- return new _GetSessionStatsRequest().fromJson(jsonValue, options);
1104
- }
1105
- static fromJsonString(jsonString, options) {
1106
- return new _GetSessionStatsRequest().fromJsonString(jsonString, options);
1107
- }
1108
- static equals(a, b) {
1109
- return proto2.util.equals(_GetSessionStatsRequest, a, b);
1110
- }
1111
- };
1112
- _GetSessionStatsRequest.runtime = proto2;
1113
- _GetSessionStatsRequest.typeName = "livekit.proto.GetSessionStatsRequest";
1114
- _GetSessionStatsRequest.fields = proto2.util.newFieldList(() => [
1115
- { no: 1, name: "room_handle", kind: "scalar", T: 4, req: true }
1116
- ]);
1117
- let GetSessionStatsRequest = _GetSessionStatsRequest;
1118
- const _GetSessionStatsResponse = class _GetSessionStatsResponse extends Message {
1119
- constructor(data) {
1120
- super();
1121
- proto2.util.initPartial(data, this);
1122
- }
1123
- static fromBinary(bytes, options) {
1124
- return new _GetSessionStatsResponse().fromBinary(bytes, options);
1125
- }
1126
- static fromJson(jsonValue, options) {
1127
- return new _GetSessionStatsResponse().fromJson(jsonValue, options);
1128
- }
1129
- static fromJsonString(jsonString, options) {
1130
- return new _GetSessionStatsResponse().fromJsonString(jsonString, options);
1131
- }
1132
- static equals(a, b) {
1133
- return proto2.util.equals(_GetSessionStatsResponse, a, b);
1134
- }
1135
- };
1136
- _GetSessionStatsResponse.runtime = proto2;
1137
- _GetSessionStatsResponse.typeName = "livekit.proto.GetSessionStatsResponse";
1138
- _GetSessionStatsResponse.fields = proto2.util.newFieldList(() => [
1139
- { no: 1, name: "async_id", kind: "scalar", T: 4, req: true }
1140
- ]);
1141
- let GetSessionStatsResponse = _GetSessionStatsResponse;
1142
- const _GetSessionStatsCallback = class _GetSessionStatsCallback extends Message {
1143
- constructor(data) {
1144
- super();
1145
- /**
1146
- * @generated from oneof livekit.proto.GetSessionStatsCallback.message
1147
- */
1148
- this.message = { case: void 0 };
1149
- proto2.util.initPartial(data, this);
1150
- }
1151
- static fromBinary(bytes, options) {
1152
- return new _GetSessionStatsCallback().fromBinary(bytes, options);
1153
- }
1154
- static fromJson(jsonValue, options) {
1155
- return new _GetSessionStatsCallback().fromJson(jsonValue, options);
1156
- }
1157
- static fromJsonString(jsonString, options) {
1158
- return new _GetSessionStatsCallback().fromJsonString(jsonString, options);
1159
- }
1160
- static equals(a, b) {
1161
- return proto2.util.equals(_GetSessionStatsCallback, a, b);
1162
- }
1163
- };
1164
- _GetSessionStatsCallback.runtime = proto2;
1165
- _GetSessionStatsCallback.typeName = "livekit.proto.GetSessionStatsCallback";
1166
- _GetSessionStatsCallback.fields = proto2.util.newFieldList(() => [
1167
- { no: 1, name: "async_id", kind: "scalar", T: 4, req: true },
1168
- { no: 2, name: "error", kind: "scalar", T: 9, oneof: "message" },
1169
- { no: 3, name: "result", kind: "message", T: GetSessionStatsCallback_Result, oneof: "message" }
1170
- ]);
1171
- let GetSessionStatsCallback = _GetSessionStatsCallback;
1172
- const _GetSessionStatsCallback_Result = class _GetSessionStatsCallback_Result extends Message {
1173
- constructor(data) {
1174
- super();
1175
- /**
1176
- * @generated from field: repeated livekit.proto.RtcStats publisher_stats = 1;
1177
- */
1178
- this.publisherStats = [];
1179
- /**
1180
- * @generated from field: repeated livekit.proto.RtcStats subscriber_stats = 2;
1181
- */
1182
- this.subscriberStats = [];
1183
- proto2.util.initPartial(data, this);
1184
- }
1185
- static fromBinary(bytes, options) {
1186
- return new _GetSessionStatsCallback_Result().fromBinary(bytes, options);
1187
- }
1188
- static fromJson(jsonValue, options) {
1189
- return new _GetSessionStatsCallback_Result().fromJson(jsonValue, options);
1190
- }
1191
- static fromJsonString(jsonString, options) {
1192
- return new _GetSessionStatsCallback_Result().fromJsonString(jsonString, options);
1193
- }
1194
- static equals(a, b) {
1195
- return proto2.util.equals(_GetSessionStatsCallback_Result, a, b);
1196
- }
1197
- };
1198
- _GetSessionStatsCallback_Result.runtime = proto2;
1199
- _GetSessionStatsCallback_Result.typeName = "livekit.proto.GetSessionStatsCallback.Result";
1200
- _GetSessionStatsCallback_Result.fields = proto2.util.newFieldList(() => [
1201
- { no: 1, name: "publisher_stats", kind: "message", T: RtcStats, repeated: true },
1202
- { no: 2, name: "subscriber_stats", kind: "message", T: RtcStats, repeated: true }
1203
- ]);
1204
- let GetSessionStatsCallback_Result = _GetSessionStatsCallback_Result;
1205
- const _VideoEncoding = class _VideoEncoding extends Message {
1206
- constructor(data) {
1207
- super();
1208
- proto2.util.initPartial(data, this);
1209
- }
1210
- static fromBinary(bytes, options) {
1211
- return new _VideoEncoding().fromBinary(bytes, options);
1212
- }
1213
- static fromJson(jsonValue, options) {
1214
- return new _VideoEncoding().fromJson(jsonValue, options);
1215
- }
1216
- static fromJsonString(jsonString, options) {
1217
- return new _VideoEncoding().fromJsonString(jsonString, options);
1218
- }
1219
- static equals(a, b) {
1220
- return proto2.util.equals(_VideoEncoding, a, b);
1221
- }
1222
- };
1223
- _VideoEncoding.runtime = proto2;
1224
- _VideoEncoding.typeName = "livekit.proto.VideoEncoding";
1225
- _VideoEncoding.fields = proto2.util.newFieldList(() => [
1226
- { no: 1, name: "max_bitrate", kind: "scalar", T: 4, req: true },
1227
- { no: 2, name: "max_framerate", kind: "scalar", T: 1, req: true }
1228
- ]);
1229
- let VideoEncoding = _VideoEncoding;
1230
- const _AudioEncoding = class _AudioEncoding extends Message {
1231
- constructor(data) {
1232
- super();
1233
- proto2.util.initPartial(data, this);
1234
- }
1235
- static fromBinary(bytes, options) {
1236
- return new _AudioEncoding().fromBinary(bytes, options);
1237
- }
1238
- static fromJson(jsonValue, options) {
1239
- return new _AudioEncoding().fromJson(jsonValue, options);
1240
- }
1241
- static fromJsonString(jsonString, options) {
1242
- return new _AudioEncoding().fromJsonString(jsonString, options);
1243
- }
1244
- static equals(a, b) {
1245
- return proto2.util.equals(_AudioEncoding, a, b);
1246
- }
1247
- };
1248
- _AudioEncoding.runtime = proto2;
1249
- _AudioEncoding.typeName = "livekit.proto.AudioEncoding";
1250
- _AudioEncoding.fields = proto2.util.newFieldList(() => [
1251
- { no: 1, name: "max_bitrate", kind: "scalar", T: 4, req: true }
1252
- ]);
1253
- let AudioEncoding = _AudioEncoding;
1254
- const _TrackPublishOptions = class _TrackPublishOptions extends Message {
1255
- constructor(data) {
1256
- super();
1257
- proto2.util.initPartial(data, this);
1258
- }
1259
- static fromBinary(bytes, options) {
1260
- return new _TrackPublishOptions().fromBinary(bytes, options);
1261
- }
1262
- static fromJson(jsonValue, options) {
1263
- return new _TrackPublishOptions().fromJson(jsonValue, options);
1264
- }
1265
- static fromJsonString(jsonString, options) {
1266
- return new _TrackPublishOptions().fromJsonString(jsonString, options);
1267
- }
1268
- static equals(a, b) {
1269
- return proto2.util.equals(_TrackPublishOptions, a, b);
1270
- }
1271
- };
1272
- _TrackPublishOptions.runtime = proto2;
1273
- _TrackPublishOptions.typeName = "livekit.proto.TrackPublishOptions";
1274
- _TrackPublishOptions.fields = proto2.util.newFieldList(() => [
1275
- { no: 1, name: "video_encoding", kind: "message", T: VideoEncoding, opt: true },
1276
- { no: 2, name: "audio_encoding", kind: "message", T: AudioEncoding, opt: true },
1277
- { no: 3, name: "video_codec", kind: "enum", T: proto2.getEnumType(VideoCodec), opt: true },
1278
- { no: 4, name: "dtx", kind: "scalar", T: 8, opt: true },
1279
- { no: 5, name: "red", kind: "scalar", T: 8, opt: true },
1280
- { no: 6, name: "simulcast", kind: "scalar", T: 8, opt: true },
1281
- { no: 7, name: "source", kind: "enum", T: proto2.getEnumType(TrackSource), opt: true },
1282
- { no: 8, name: "stream", kind: "scalar", T: 9, opt: true },
1283
- { no: 9, name: "preconnect_buffer", kind: "scalar", T: 8, opt: true }
1284
- ]);
1285
- let TrackPublishOptions = _TrackPublishOptions;
1286
- const _IceServer = class _IceServer extends Message {
1287
- constructor(data) {
1288
- super();
1289
- /**
1290
- * @generated from field: repeated string urls = 1;
1291
- */
1292
- this.urls = [];
1293
- proto2.util.initPartial(data, this);
1294
- }
1295
- static fromBinary(bytes, options) {
1296
- return new _IceServer().fromBinary(bytes, options);
1297
- }
1298
- static fromJson(jsonValue, options) {
1299
- return new _IceServer().fromJson(jsonValue, options);
1300
- }
1301
- static fromJsonString(jsonString, options) {
1302
- return new _IceServer().fromJsonString(jsonString, options);
1303
- }
1304
- static equals(a, b) {
1305
- return proto2.util.equals(_IceServer, a, b);
1306
- }
1307
- };
1308
- _IceServer.runtime = proto2;
1309
- _IceServer.typeName = "livekit.proto.IceServer";
1310
- _IceServer.fields = proto2.util.newFieldList(() => [
1311
- { no: 1, name: "urls", kind: "scalar", T: 9, repeated: true },
1312
- { no: 2, name: "username", kind: "scalar", T: 9, opt: true },
1313
- { no: 3, name: "password", kind: "scalar", T: 9, opt: true }
1314
- ]);
1315
- let IceServer = _IceServer;
1316
- const _RtcConfig = class _RtcConfig extends Message {
1317
- constructor(data) {
1318
- super();
1319
- /**
1320
- * empty fallback to default
1321
- *
1322
- * @generated from field: repeated livekit.proto.IceServer ice_servers = 3;
1323
- */
1324
- this.iceServers = [];
1325
- proto2.util.initPartial(data, this);
1326
- }
1327
- static fromBinary(bytes, options) {
1328
- return new _RtcConfig().fromBinary(bytes, options);
1329
- }
1330
- static fromJson(jsonValue, options) {
1331
- return new _RtcConfig().fromJson(jsonValue, options);
1332
- }
1333
- static fromJsonString(jsonString, options) {
1334
- return new _RtcConfig().fromJsonString(jsonString, options);
1335
- }
1336
- static equals(a, b) {
1337
- return proto2.util.equals(_RtcConfig, a, b);
1338
- }
1339
- };
1340
- _RtcConfig.runtime = proto2;
1341
- _RtcConfig.typeName = "livekit.proto.RtcConfig";
1342
- _RtcConfig.fields = proto2.util.newFieldList(() => [
1343
- { no: 1, name: "ice_transport_type", kind: "enum", T: proto2.getEnumType(IceTransportType), opt: true },
1344
- { no: 2, name: "continual_gathering_policy", kind: "enum", T: proto2.getEnumType(ContinualGatheringPolicy), opt: true },
1345
- { no: 3, name: "ice_servers", kind: "message", T: IceServer, repeated: true }
1346
- ]);
1347
- let RtcConfig = _RtcConfig;
1348
- const _RoomOptions = class _RoomOptions extends Message {
1349
- constructor(data) {
1350
- super();
1351
- proto2.util.initPartial(data, this);
1352
- }
1353
- static fromBinary(bytes, options) {
1354
- return new _RoomOptions().fromBinary(bytes, options);
1355
- }
1356
- static fromJson(jsonValue, options) {
1357
- return new _RoomOptions().fromJson(jsonValue, options);
1358
- }
1359
- static fromJsonString(jsonString, options) {
1360
- return new _RoomOptions().fromJsonString(jsonString, options);
1361
- }
1362
- static equals(a, b) {
1363
- return proto2.util.equals(_RoomOptions, a, b);
1364
- }
1365
- };
1366
- _RoomOptions.runtime = proto2;
1367
- _RoomOptions.typeName = "livekit.proto.RoomOptions";
1368
- _RoomOptions.fields = proto2.util.newFieldList(() => [
1369
- { no: 1, name: "auto_subscribe", kind: "scalar", T: 8, opt: true },
1370
- { no: 2, name: "adaptive_stream", kind: "scalar", T: 8, opt: true },
1371
- { no: 3, name: "dynacast", kind: "scalar", T: 8, opt: true },
1372
- { no: 4, name: "e2ee", kind: "message", T: E2eeOptions, opt: true },
1373
- { no: 5, name: "rtc_config", kind: "message", T: RtcConfig, opt: true },
1374
- { no: 6, name: "join_retries", kind: "scalar", T: 13, opt: true },
1375
- { no: 7, name: "encryption", kind: "message", T: E2eeOptions, opt: true }
1376
- ]);
1377
- let RoomOptions = _RoomOptions;
1378
- const _TranscriptionSegment = class _TranscriptionSegment extends Message {
1379
- constructor(data) {
1380
- super();
1381
- proto2.util.initPartial(data, this);
1382
- }
1383
- static fromBinary(bytes, options) {
1384
- return new _TranscriptionSegment().fromBinary(bytes, options);
1385
- }
1386
- static fromJson(jsonValue, options) {
1387
- return new _TranscriptionSegment().fromJson(jsonValue, options);
1388
- }
1389
- static fromJsonString(jsonString, options) {
1390
- return new _TranscriptionSegment().fromJsonString(jsonString, options);
1391
- }
1392
- static equals(a, b) {
1393
- return proto2.util.equals(_TranscriptionSegment, a, b);
1394
- }
1395
- };
1396
- _TranscriptionSegment.runtime = proto2;
1397
- _TranscriptionSegment.typeName = "livekit.proto.TranscriptionSegment";
1398
- _TranscriptionSegment.fields = proto2.util.newFieldList(() => [
1399
- { no: 1, name: "id", kind: "scalar", T: 9, req: true },
1400
- { no: 2, name: "text", kind: "scalar", T: 9, req: true },
1401
- { no: 3, name: "start_time", kind: "scalar", T: 4, req: true },
1402
- { no: 4, name: "end_time", kind: "scalar", T: 4, req: true },
1403
- { no: 5, name: "final", kind: "scalar", T: 8, req: true },
1404
- { no: 6, name: "language", kind: "scalar", T: 9, req: true }
1405
- ]);
1406
- let TranscriptionSegment = _TranscriptionSegment;
1407
- const _BufferInfo = class _BufferInfo extends Message {
1408
- constructor(data) {
1409
- super();
1410
- proto2.util.initPartial(data, this);
1411
- }
1412
- static fromBinary(bytes, options) {
1413
- return new _BufferInfo().fromBinary(bytes, options);
1414
- }
1415
- static fromJson(jsonValue, options) {
1416
- return new _BufferInfo().fromJson(jsonValue, options);
1417
- }
1418
- static fromJsonString(jsonString, options) {
1419
- return new _BufferInfo().fromJsonString(jsonString, options);
1420
- }
1421
- static equals(a, b) {
1422
- return proto2.util.equals(_BufferInfo, a, b);
1423
- }
1424
- };
1425
- _BufferInfo.runtime = proto2;
1426
- _BufferInfo.typeName = "livekit.proto.BufferInfo";
1427
- _BufferInfo.fields = proto2.util.newFieldList(() => [
1428
- { no: 1, name: "data_ptr", kind: "scalar", T: 4, req: true },
1429
- { no: 2, name: "data_len", kind: "scalar", T: 4, req: true }
1430
- ]);
1431
- let BufferInfo = _BufferInfo;
1432
- const _OwnedBuffer = class _OwnedBuffer extends Message {
1433
- constructor(data) {
1434
- super();
1435
- proto2.util.initPartial(data, this);
1436
- }
1437
- static fromBinary(bytes, options) {
1438
- return new _OwnedBuffer().fromBinary(bytes, options);
1439
- }
1440
- static fromJson(jsonValue, options) {
1441
- return new _OwnedBuffer().fromJson(jsonValue, options);
1442
- }
1443
- static fromJsonString(jsonString, options) {
1444
- return new _OwnedBuffer().fromJsonString(jsonString, options);
1445
- }
1446
- static equals(a, b) {
1447
- return proto2.util.equals(_OwnedBuffer, a, b);
1448
- }
1449
- };
1450
- _OwnedBuffer.runtime = proto2;
1451
- _OwnedBuffer.typeName = "livekit.proto.OwnedBuffer";
1452
- _OwnedBuffer.fields = proto2.util.newFieldList(() => [
1453
- { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle, req: true },
1454
- { no: 2, name: "data", kind: "message", T: BufferInfo, req: true }
1455
- ]);
1456
- let OwnedBuffer = _OwnedBuffer;
1457
- const _RoomEvent = class _RoomEvent extends Message {
1458
- constructor(data) {
1459
- super();
1460
- /**
1461
- * @generated from oneof livekit.proto.RoomEvent.message
1462
- */
1463
- this.message = { case: void 0 };
1464
- proto2.util.initPartial(data, this);
1465
- }
1466
- static fromBinary(bytes, options) {
1467
- return new _RoomEvent().fromBinary(bytes, options);
1468
- }
1469
- static fromJson(jsonValue, options) {
1470
- return new _RoomEvent().fromJson(jsonValue, options);
1471
- }
1472
- static fromJsonString(jsonString, options) {
1473
- return new _RoomEvent().fromJsonString(jsonString, options);
1474
- }
1475
- static equals(a, b) {
1476
- return proto2.util.equals(_RoomEvent, a, b);
1477
- }
1478
- };
1479
- _RoomEvent.runtime = proto2;
1480
- _RoomEvent.typeName = "livekit.proto.RoomEvent";
1481
- _RoomEvent.fields = proto2.util.newFieldList(() => [
1482
- { no: 1, name: "room_handle", kind: "scalar", T: 4, req: true },
1483
- { no: 2, name: "participant_connected", kind: "message", T: ParticipantConnected, oneof: "message" },
1484
- { no: 3, name: "participant_disconnected", kind: "message", T: ParticipantDisconnected, oneof: "message" },
1485
- { no: 4, name: "local_track_published", kind: "message", T: LocalTrackPublished, oneof: "message" },
1486
- { no: 5, name: "local_track_unpublished", kind: "message", T: LocalTrackUnpublished, oneof: "message" },
1487
- { no: 6, name: "local_track_subscribed", kind: "message", T: LocalTrackSubscribed, oneof: "message" },
1488
- { no: 7, name: "track_published", kind: "message", T: TrackPublished, oneof: "message" },
1489
- { no: 8, name: "track_unpublished", kind: "message", T: TrackUnpublished, oneof: "message" },
1490
- { no: 9, name: "track_subscribed", kind: "message", T: TrackSubscribed, oneof: "message" },
1491
- { no: 10, name: "track_unsubscribed", kind: "message", T: TrackUnsubscribed, oneof: "message" },
1492
- { no: 11, name: "track_subscription_failed", kind: "message", T: TrackSubscriptionFailed, oneof: "message" },
1493
- { no: 12, name: "track_muted", kind: "message", T: TrackMuted, oneof: "message" },
1494
- { no: 13, name: "track_unmuted", kind: "message", T: TrackUnmuted, oneof: "message" },
1495
- { no: 14, name: "active_speakers_changed", kind: "message", T: ActiveSpeakersChanged, oneof: "message" },
1496
- { no: 15, name: "room_metadata_changed", kind: "message", T: RoomMetadataChanged, oneof: "message" },
1497
- { no: 16, name: "room_sid_changed", kind: "message", T: RoomSidChanged, oneof: "message" },
1498
- { no: 17, name: "participant_metadata_changed", kind: "message", T: ParticipantMetadataChanged, oneof: "message" },
1499
- { no: 18, name: "participant_name_changed", kind: "message", T: ParticipantNameChanged, oneof: "message" },
1500
- { no: 19, name: "participant_attributes_changed", kind: "message", T: ParticipantAttributesChanged, oneof: "message" },
1501
- { no: 20, name: "connection_quality_changed", kind: "message", T: ConnectionQualityChanged, oneof: "message" },
1502
- { no: 21, name: "connection_state_changed", kind: "message", T: ConnectionStateChanged, oneof: "message" },
1503
- { no: 22, name: "disconnected", kind: "message", T: Disconnected, oneof: "message" },
1504
- { no: 23, name: "reconnecting", kind: "message", T: Reconnecting, oneof: "message" },
1505
- { no: 24, name: "reconnected", kind: "message", T: Reconnected, oneof: "message" },
1506
- { no: 25, name: "e2ee_state_changed", kind: "message", T: E2eeStateChanged, oneof: "message" },
1507
- { no: 26, name: "eos", kind: "message", T: RoomEOS, oneof: "message" },
1508
- { no: 27, name: "data_packet_received", kind: "message", T: DataPacketReceived, oneof: "message" },
1509
- { no: 28, name: "transcription_received", kind: "message", T: TranscriptionReceived, oneof: "message" },
1510
- { no: 29, name: "chat_message", kind: "message", T: ChatMessageReceived, oneof: "message" },
1511
- { no: 30, name: "stream_header_received", kind: "message", T: DataStreamHeaderReceived, oneof: "message" },
1512
- { no: 31, name: "stream_chunk_received", kind: "message", T: DataStreamChunkReceived, oneof: "message" },
1513
- { no: 32, name: "stream_trailer_received", kind: "message", T: DataStreamTrailerReceived, oneof: "message" },
1514
- { no: 33, name: "data_channel_low_threshold_changed", kind: "message", T: DataChannelBufferedAmountLowThresholdChanged, oneof: "message" },
1515
- { no: 34, name: "byte_stream_opened", kind: "message", T: ByteStreamOpened, oneof: "message" },
1516
- { no: 35, name: "text_stream_opened", kind: "message", T: TextStreamOpened, oneof: "message" },
1517
- { no: 36, name: "room_updated", kind: "message", T: RoomInfo, oneof: "message" },
1518
- { no: 37, name: "moved", kind: "message", T: RoomInfo, oneof: "message" },
1519
- { no: 38, name: "participants_updated", kind: "message", T: ParticipantsUpdated, oneof: "message" },
1520
- { no: 39, name: "participant_encryption_status_changed", kind: "message", T: ParticipantEncryptionStatusChanged, oneof: "message" },
1521
- { no: 40, name: "token_refreshed", kind: "message", T: TokenRefreshed, oneof: "message" }
1522
- ]);
1523
- let RoomEvent = _RoomEvent;
1524
- const _RoomInfo = class _RoomInfo extends Message {
1525
- constructor(data) {
1526
- super();
1527
- proto2.util.initPartial(data, this);
1528
- }
1529
- static fromBinary(bytes, options) {
1530
- return new _RoomInfo().fromBinary(bytes, options);
1531
- }
1532
- static fromJson(jsonValue, options) {
1533
- return new _RoomInfo().fromJson(jsonValue, options);
1534
- }
1535
- static fromJsonString(jsonString, options) {
1536
- return new _RoomInfo().fromJsonString(jsonString, options);
1537
- }
1538
- static equals(a, b) {
1539
- return proto2.util.equals(_RoomInfo, a, b);
1540
- }
1541
- };
1542
- _RoomInfo.runtime = proto2;
1543
- _RoomInfo.typeName = "livekit.proto.RoomInfo";
1544
- _RoomInfo.fields = proto2.util.newFieldList(() => [
1545
- { no: 1, name: "sid", kind: "scalar", T: 9, opt: true },
1546
- { no: 2, name: "name", kind: "scalar", T: 9, req: true },
1547
- { no: 3, name: "metadata", kind: "scalar", T: 9, req: true },
1548
- { no: 4, name: "lossy_dc_buffered_amount_low_threshold", kind: "scalar", T: 4, req: true },
1549
- { no: 5, name: "reliable_dc_buffered_amount_low_threshold", kind: "scalar", T: 4, req: true },
1550
- { no: 6, name: "empty_timeout", kind: "scalar", T: 13, req: true },
1551
- { no: 7, name: "departure_timeout", kind: "scalar", T: 13, req: true },
1552
- { no: 8, name: "max_participants", kind: "scalar", T: 13, req: true },
1553
- { no: 9, name: "creation_time", kind: "scalar", T: 3, req: true },
1554
- { no: 10, name: "num_participants", kind: "scalar", T: 13, req: true },
1555
- { no: 11, name: "num_publishers", kind: "scalar", T: 13, req: true },
1556
- { no: 12, name: "active_recording", kind: "scalar", T: 8, req: true }
1557
- ]);
1558
- let RoomInfo = _RoomInfo;
1559
- const _OwnedRoom = class _OwnedRoom extends Message {
1560
- constructor(data) {
1561
- super();
1562
- proto2.util.initPartial(data, this);
1563
- }
1564
- static fromBinary(bytes, options) {
1565
- return new _OwnedRoom().fromBinary(bytes, options);
1566
- }
1567
- static fromJson(jsonValue, options) {
1568
- return new _OwnedRoom().fromJson(jsonValue, options);
1569
- }
1570
- static fromJsonString(jsonString, options) {
1571
- return new _OwnedRoom().fromJsonString(jsonString, options);
1572
- }
1573
- static equals(a, b) {
1574
- return proto2.util.equals(_OwnedRoom, a, b);
1575
- }
1576
- };
1577
- _OwnedRoom.runtime = proto2;
1578
- _OwnedRoom.typeName = "livekit.proto.OwnedRoom";
1579
- _OwnedRoom.fields = proto2.util.newFieldList(() => [
1580
- { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle, req: true },
1581
- { no: 2, name: "info", kind: "message", T: RoomInfo, req: true }
1582
- ]);
1583
- let OwnedRoom = _OwnedRoom;
1584
- const _ParticipantsUpdated = class _ParticipantsUpdated extends Message {
1585
- constructor(data) {
1586
- super();
1587
- /**
1588
- * @generated from field: repeated livekit.proto.ParticipantInfo participants = 1;
1589
- */
1590
- this.participants = [];
1591
- proto2.util.initPartial(data, this);
1592
- }
1593
- static fromBinary(bytes, options) {
1594
- return new _ParticipantsUpdated().fromBinary(bytes, options);
1595
- }
1596
- static fromJson(jsonValue, options) {
1597
- return new _ParticipantsUpdated().fromJson(jsonValue, options);
1598
- }
1599
- static fromJsonString(jsonString, options) {
1600
- return new _ParticipantsUpdated().fromJsonString(jsonString, options);
1601
- }
1602
- static equals(a, b) {
1603
- return proto2.util.equals(_ParticipantsUpdated, a, b);
1604
- }
1605
- };
1606
- _ParticipantsUpdated.runtime = proto2;
1607
- _ParticipantsUpdated.typeName = "livekit.proto.ParticipantsUpdated";
1608
- _ParticipantsUpdated.fields = proto2.util.newFieldList(() => [
1609
- { no: 1, name: "participants", kind: "message", T: ParticipantInfo, repeated: true }
1610
- ]);
1611
- let ParticipantsUpdated = _ParticipantsUpdated;
1612
- const _ParticipantConnected = class _ParticipantConnected extends Message {
1613
- constructor(data) {
1614
- super();
1615
- proto2.util.initPartial(data, this);
1616
- }
1617
- static fromBinary(bytes, options) {
1618
- return new _ParticipantConnected().fromBinary(bytes, options);
1619
- }
1620
- static fromJson(jsonValue, options) {
1621
- return new _ParticipantConnected().fromJson(jsonValue, options);
1622
- }
1623
- static fromJsonString(jsonString, options) {
1624
- return new _ParticipantConnected().fromJsonString(jsonString, options);
1625
- }
1626
- static equals(a, b) {
1627
- return proto2.util.equals(_ParticipantConnected, a, b);
1628
- }
1629
- };
1630
- _ParticipantConnected.runtime = proto2;
1631
- _ParticipantConnected.typeName = "livekit.proto.ParticipantConnected";
1632
- _ParticipantConnected.fields = proto2.util.newFieldList(() => [
1633
- { no: 1, name: "info", kind: "message", T: OwnedParticipant, req: true }
1634
- ]);
1635
- let ParticipantConnected = _ParticipantConnected;
1636
- const _ParticipantDisconnected = class _ParticipantDisconnected extends Message {
1637
- constructor(data) {
1638
- super();
1639
- proto2.util.initPartial(data, this);
1640
- }
1641
- static fromBinary(bytes, options) {
1642
- return new _ParticipantDisconnected().fromBinary(bytes, options);
1643
- }
1644
- static fromJson(jsonValue, options) {
1645
- return new _ParticipantDisconnected().fromJson(jsonValue, options);
1646
- }
1647
- static fromJsonString(jsonString, options) {
1648
- return new _ParticipantDisconnected().fromJsonString(jsonString, options);
1649
- }
1650
- static equals(a, b) {
1651
- return proto2.util.equals(_ParticipantDisconnected, a, b);
1652
- }
1653
- };
1654
- _ParticipantDisconnected.runtime = proto2;
1655
- _ParticipantDisconnected.typeName = "livekit.proto.ParticipantDisconnected";
1656
- _ParticipantDisconnected.fields = proto2.util.newFieldList(() => [
1657
- { no: 1, name: "participant_identity", kind: "scalar", T: 9, req: true },
1658
- { no: 2, name: "disconnect_reason", kind: "enum", T: proto2.getEnumType(DisconnectReason), req: true }
1659
- ]);
1660
- let ParticipantDisconnected = _ParticipantDisconnected;
1661
- const _LocalTrackPublished = class _LocalTrackPublished extends Message {
1662
- constructor(data) {
1663
- super();
1664
- proto2.util.initPartial(data, this);
1665
- }
1666
- static fromBinary(bytes, options) {
1667
- return new _LocalTrackPublished().fromBinary(bytes, options);
1668
- }
1669
- static fromJson(jsonValue, options) {
1670
- return new _LocalTrackPublished().fromJson(jsonValue, options);
1671
- }
1672
- static fromJsonString(jsonString, options) {
1673
- return new _LocalTrackPublished().fromJsonString(jsonString, options);
1674
- }
1675
- static equals(a, b) {
1676
- return proto2.util.equals(_LocalTrackPublished, a, b);
1677
- }
1678
- };
1679
- _LocalTrackPublished.runtime = proto2;
1680
- _LocalTrackPublished.typeName = "livekit.proto.LocalTrackPublished";
1681
- _LocalTrackPublished.fields = proto2.util.newFieldList(() => [
1682
- { no: 1, name: "track_sid", kind: "scalar", T: 9, req: true }
1683
- ]);
1684
- let LocalTrackPublished = _LocalTrackPublished;
1685
- const _LocalTrackUnpublished = class _LocalTrackUnpublished extends Message {
1686
- constructor(data) {
1687
- super();
1688
- proto2.util.initPartial(data, this);
1689
- }
1690
- static fromBinary(bytes, options) {
1691
- return new _LocalTrackUnpublished().fromBinary(bytes, options);
1692
- }
1693
- static fromJson(jsonValue, options) {
1694
- return new _LocalTrackUnpublished().fromJson(jsonValue, options);
1695
- }
1696
- static fromJsonString(jsonString, options) {
1697
- return new _LocalTrackUnpublished().fromJsonString(jsonString, options);
1698
- }
1699
- static equals(a, b) {
1700
- return proto2.util.equals(_LocalTrackUnpublished, a, b);
1701
- }
1702
- };
1703
- _LocalTrackUnpublished.runtime = proto2;
1704
- _LocalTrackUnpublished.typeName = "livekit.proto.LocalTrackUnpublished";
1705
- _LocalTrackUnpublished.fields = proto2.util.newFieldList(() => [
1706
- { no: 1, name: "publication_sid", kind: "scalar", T: 9, req: true }
1707
- ]);
1708
- let LocalTrackUnpublished = _LocalTrackUnpublished;
1709
- const _LocalTrackSubscribed = class _LocalTrackSubscribed extends Message {
1710
- constructor(data) {
1711
- super();
1712
- proto2.util.initPartial(data, this);
1713
- }
1714
- static fromBinary(bytes, options) {
1715
- return new _LocalTrackSubscribed().fromBinary(bytes, options);
1716
- }
1717
- static fromJson(jsonValue, options) {
1718
- return new _LocalTrackSubscribed().fromJson(jsonValue, options);
1719
- }
1720
- static fromJsonString(jsonString, options) {
1721
- return new _LocalTrackSubscribed().fromJsonString(jsonString, options);
1722
- }
1723
- static equals(a, b) {
1724
- return proto2.util.equals(_LocalTrackSubscribed, a, b);
1725
- }
1726
- };
1727
- _LocalTrackSubscribed.runtime = proto2;
1728
- _LocalTrackSubscribed.typeName = "livekit.proto.LocalTrackSubscribed";
1729
- _LocalTrackSubscribed.fields = proto2.util.newFieldList(() => [
1730
- { no: 2, name: "track_sid", kind: "scalar", T: 9, req: true }
1731
- ]);
1732
- let LocalTrackSubscribed = _LocalTrackSubscribed;
1733
- const _TrackPublished = class _TrackPublished extends Message {
1734
- constructor(data) {
1735
- super();
1736
- proto2.util.initPartial(data, this);
1737
- }
1738
- static fromBinary(bytes, options) {
1739
- return new _TrackPublished().fromBinary(bytes, options);
1740
- }
1741
- static fromJson(jsonValue, options) {
1742
- return new _TrackPublished().fromJson(jsonValue, options);
1743
- }
1744
- static fromJsonString(jsonString, options) {
1745
- return new _TrackPublished().fromJsonString(jsonString, options);
1746
- }
1747
- static equals(a, b) {
1748
- return proto2.util.equals(_TrackPublished, a, b);
1749
- }
1750
- };
1751
- _TrackPublished.runtime = proto2;
1752
- _TrackPublished.typeName = "livekit.proto.TrackPublished";
1753
- _TrackPublished.fields = proto2.util.newFieldList(() => [
1754
- { no: 1, name: "participant_identity", kind: "scalar", T: 9, req: true },
1755
- { no: 2, name: "publication", kind: "message", T: OwnedTrackPublication, req: true }
1756
- ]);
1757
- let TrackPublished = _TrackPublished;
1758
- const _TrackUnpublished = class _TrackUnpublished extends Message {
1759
- constructor(data) {
1760
- super();
1761
- proto2.util.initPartial(data, this);
1762
- }
1763
- static fromBinary(bytes, options) {
1764
- return new _TrackUnpublished().fromBinary(bytes, options);
1765
- }
1766
- static fromJson(jsonValue, options) {
1767
- return new _TrackUnpublished().fromJson(jsonValue, options);
1768
- }
1769
- static fromJsonString(jsonString, options) {
1770
- return new _TrackUnpublished().fromJsonString(jsonString, options);
1771
- }
1772
- static equals(a, b) {
1773
- return proto2.util.equals(_TrackUnpublished, a, b);
1774
- }
1775
- };
1776
- _TrackUnpublished.runtime = proto2;
1777
- _TrackUnpublished.typeName = "livekit.proto.TrackUnpublished";
1778
- _TrackUnpublished.fields = proto2.util.newFieldList(() => [
1779
- { no: 1, name: "participant_identity", kind: "scalar", T: 9, req: true },
1780
- { no: 2, name: "publication_sid", kind: "scalar", T: 9, req: true }
1781
- ]);
1782
- let TrackUnpublished = _TrackUnpublished;
1783
- const _TrackSubscribed = class _TrackSubscribed extends Message {
1784
- constructor(data) {
1785
- super();
1786
- proto2.util.initPartial(data, this);
1787
- }
1788
- static fromBinary(bytes, options) {
1789
- return new _TrackSubscribed().fromBinary(bytes, options);
1790
- }
1791
- static fromJson(jsonValue, options) {
1792
- return new _TrackSubscribed().fromJson(jsonValue, options);
1793
- }
1794
- static fromJsonString(jsonString, options) {
1795
- return new _TrackSubscribed().fromJsonString(jsonString, options);
1796
- }
1797
- static equals(a, b) {
1798
- return proto2.util.equals(_TrackSubscribed, a, b);
1799
- }
1800
- };
1801
- _TrackSubscribed.runtime = proto2;
1802
- _TrackSubscribed.typeName = "livekit.proto.TrackSubscribed";
1803
- _TrackSubscribed.fields = proto2.util.newFieldList(() => [
1804
- { no: 1, name: "participant_identity", kind: "scalar", T: 9, req: true },
1805
- { no: 2, name: "track", kind: "message", T: OwnedTrack, req: true }
1806
- ]);
1807
- let TrackSubscribed = _TrackSubscribed;
1808
- const _TrackUnsubscribed = class _TrackUnsubscribed extends Message {
1809
- constructor(data) {
1810
- super();
1811
- proto2.util.initPartial(data, this);
1812
- }
1813
- static fromBinary(bytes, options) {
1814
- return new _TrackUnsubscribed().fromBinary(bytes, options);
1815
- }
1816
- static fromJson(jsonValue, options) {
1817
- return new _TrackUnsubscribed().fromJson(jsonValue, options);
1818
- }
1819
- static fromJsonString(jsonString, options) {
1820
- return new _TrackUnsubscribed().fromJsonString(jsonString, options);
1821
- }
1822
- static equals(a, b) {
1823
- return proto2.util.equals(_TrackUnsubscribed, a, b);
1824
- }
1825
- };
1826
- _TrackUnsubscribed.runtime = proto2;
1827
- _TrackUnsubscribed.typeName = "livekit.proto.TrackUnsubscribed";
1828
- _TrackUnsubscribed.fields = proto2.util.newFieldList(() => [
1829
- { no: 1, name: "participant_identity", kind: "scalar", T: 9, req: true },
1830
- { no: 2, name: "track_sid", kind: "scalar", T: 9, req: true }
1831
- ]);
1832
- let TrackUnsubscribed = _TrackUnsubscribed;
1833
- const _TrackSubscriptionFailed = class _TrackSubscriptionFailed extends Message {
1834
- constructor(data) {
1835
- super();
1836
- proto2.util.initPartial(data, this);
1837
- }
1838
- static fromBinary(bytes, options) {
1839
- return new _TrackSubscriptionFailed().fromBinary(bytes, options);
1840
- }
1841
- static fromJson(jsonValue, options) {
1842
- return new _TrackSubscriptionFailed().fromJson(jsonValue, options);
1843
- }
1844
- static fromJsonString(jsonString, options) {
1845
- return new _TrackSubscriptionFailed().fromJsonString(jsonString, options);
1846
- }
1847
- static equals(a, b) {
1848
- return proto2.util.equals(_TrackSubscriptionFailed, a, b);
1849
- }
1850
- };
1851
- _TrackSubscriptionFailed.runtime = proto2;
1852
- _TrackSubscriptionFailed.typeName = "livekit.proto.TrackSubscriptionFailed";
1853
- _TrackSubscriptionFailed.fields = proto2.util.newFieldList(() => [
1854
- { no: 1, name: "participant_identity", kind: "scalar", T: 9, req: true },
1855
- { no: 2, name: "track_sid", kind: "scalar", T: 9, req: true },
1856
- { no: 3, name: "error", kind: "scalar", T: 9, req: true }
1857
- ]);
1858
- let TrackSubscriptionFailed = _TrackSubscriptionFailed;
1859
- const _TrackMuted = class _TrackMuted extends Message {
1860
- constructor(data) {
1861
- super();
1862
- proto2.util.initPartial(data, this);
1863
- }
1864
- static fromBinary(bytes, options) {
1865
- return new _TrackMuted().fromBinary(bytes, options);
1866
- }
1867
- static fromJson(jsonValue, options) {
1868
- return new _TrackMuted().fromJson(jsonValue, options);
1869
- }
1870
- static fromJsonString(jsonString, options) {
1871
- return new _TrackMuted().fromJsonString(jsonString, options);
1872
- }
1873
- static equals(a, b) {
1874
- return proto2.util.equals(_TrackMuted, a, b);
1875
- }
1876
- };
1877
- _TrackMuted.runtime = proto2;
1878
- _TrackMuted.typeName = "livekit.proto.TrackMuted";
1879
- _TrackMuted.fields = proto2.util.newFieldList(() => [
1880
- { no: 1, name: "participant_identity", kind: "scalar", T: 9, req: true },
1881
- { no: 2, name: "track_sid", kind: "scalar", T: 9, req: true }
1882
- ]);
1883
- let TrackMuted = _TrackMuted;
1884
- const _TrackUnmuted = class _TrackUnmuted extends Message {
1885
- constructor(data) {
1886
- super();
1887
- proto2.util.initPartial(data, this);
1888
- }
1889
- static fromBinary(bytes, options) {
1890
- return new _TrackUnmuted().fromBinary(bytes, options);
1891
- }
1892
- static fromJson(jsonValue, options) {
1893
- return new _TrackUnmuted().fromJson(jsonValue, options);
1894
- }
1895
- static fromJsonString(jsonString, options) {
1896
- return new _TrackUnmuted().fromJsonString(jsonString, options);
1897
- }
1898
- static equals(a, b) {
1899
- return proto2.util.equals(_TrackUnmuted, a, b);
1900
- }
1901
- };
1902
- _TrackUnmuted.runtime = proto2;
1903
- _TrackUnmuted.typeName = "livekit.proto.TrackUnmuted";
1904
- _TrackUnmuted.fields = proto2.util.newFieldList(() => [
1905
- { no: 1, name: "participant_identity", kind: "scalar", T: 9, req: true },
1906
- { no: 2, name: "track_sid", kind: "scalar", T: 9, req: true }
1907
- ]);
1908
- let TrackUnmuted = _TrackUnmuted;
1909
- const _E2eeStateChanged = class _E2eeStateChanged extends Message {
1910
- constructor(data) {
1911
- super();
1912
- proto2.util.initPartial(data, this);
1913
- }
1914
- static fromBinary(bytes, options) {
1915
- return new _E2eeStateChanged().fromBinary(bytes, options);
1916
- }
1917
- static fromJson(jsonValue, options) {
1918
- return new _E2eeStateChanged().fromJson(jsonValue, options);
1919
- }
1920
- static fromJsonString(jsonString, options) {
1921
- return new _E2eeStateChanged().fromJsonString(jsonString, options);
1922
- }
1923
- static equals(a, b) {
1924
- return proto2.util.equals(_E2eeStateChanged, a, b);
1925
- }
1926
- };
1927
- _E2eeStateChanged.runtime = proto2;
1928
- _E2eeStateChanged.typeName = "livekit.proto.E2eeStateChanged";
1929
- _E2eeStateChanged.fields = proto2.util.newFieldList(() => [
1930
- { no: 1, name: "participant_identity", kind: "scalar", T: 9, req: true },
1931
- { no: 2, name: "state", kind: "enum", T: proto2.getEnumType(EncryptionState), req: true }
1932
- ]);
1933
- let E2eeStateChanged = _E2eeStateChanged;
1934
- const _ActiveSpeakersChanged = class _ActiveSpeakersChanged extends Message {
1935
- constructor(data) {
1936
- super();
1937
- /**
1938
- * @generated from field: repeated string participant_identities = 1;
1939
- */
1940
- this.participantIdentities = [];
1941
- proto2.util.initPartial(data, this);
1942
- }
1943
- static fromBinary(bytes, options) {
1944
- return new _ActiveSpeakersChanged().fromBinary(bytes, options);
1945
- }
1946
- static fromJson(jsonValue, options) {
1947
- return new _ActiveSpeakersChanged().fromJson(jsonValue, options);
1948
- }
1949
- static fromJsonString(jsonString, options) {
1950
- return new _ActiveSpeakersChanged().fromJsonString(jsonString, options);
1951
- }
1952
- static equals(a, b) {
1953
- return proto2.util.equals(_ActiveSpeakersChanged, a, b);
1954
- }
1955
- };
1956
- _ActiveSpeakersChanged.runtime = proto2;
1957
- _ActiveSpeakersChanged.typeName = "livekit.proto.ActiveSpeakersChanged";
1958
- _ActiveSpeakersChanged.fields = proto2.util.newFieldList(() => [
1959
- { no: 1, name: "participant_identities", kind: "scalar", T: 9, repeated: true }
1960
- ]);
1961
- let ActiveSpeakersChanged = _ActiveSpeakersChanged;
1962
- const _RoomMetadataChanged = class _RoomMetadataChanged extends Message {
1963
- constructor(data) {
1964
- super();
1965
- proto2.util.initPartial(data, this);
1966
- }
1967
- static fromBinary(bytes, options) {
1968
- return new _RoomMetadataChanged().fromBinary(bytes, options);
1969
- }
1970
- static fromJson(jsonValue, options) {
1971
- return new _RoomMetadataChanged().fromJson(jsonValue, options);
1972
- }
1973
- static fromJsonString(jsonString, options) {
1974
- return new _RoomMetadataChanged().fromJsonString(jsonString, options);
1975
- }
1976
- static equals(a, b) {
1977
- return proto2.util.equals(_RoomMetadataChanged, a, b);
1978
- }
1979
- };
1980
- _RoomMetadataChanged.runtime = proto2;
1981
- _RoomMetadataChanged.typeName = "livekit.proto.RoomMetadataChanged";
1982
- _RoomMetadataChanged.fields = proto2.util.newFieldList(() => [
1983
- { no: 1, name: "metadata", kind: "scalar", T: 9, req: true }
1984
- ]);
1985
- let RoomMetadataChanged = _RoomMetadataChanged;
1986
- const _RoomSidChanged = class _RoomSidChanged extends Message {
1987
- constructor(data) {
1988
- super();
1989
- proto2.util.initPartial(data, this);
1990
- }
1991
- static fromBinary(bytes, options) {
1992
- return new _RoomSidChanged().fromBinary(bytes, options);
1993
- }
1994
- static fromJson(jsonValue, options) {
1995
- return new _RoomSidChanged().fromJson(jsonValue, options);
1996
- }
1997
- static fromJsonString(jsonString, options) {
1998
- return new _RoomSidChanged().fromJsonString(jsonString, options);
1999
- }
2000
- static equals(a, b) {
2001
- return proto2.util.equals(_RoomSidChanged, a, b);
2002
- }
2003
- };
2004
- _RoomSidChanged.runtime = proto2;
2005
- _RoomSidChanged.typeName = "livekit.proto.RoomSidChanged";
2006
- _RoomSidChanged.fields = proto2.util.newFieldList(() => [
2007
- { no: 1, name: "sid", kind: "scalar", T: 9, req: true }
2008
- ]);
2009
- let RoomSidChanged = _RoomSidChanged;
2010
- const _ParticipantMetadataChanged = class _ParticipantMetadataChanged extends Message {
2011
- constructor(data) {
2012
- super();
2013
- proto2.util.initPartial(data, this);
2014
- }
2015
- static fromBinary(bytes, options) {
2016
- return new _ParticipantMetadataChanged().fromBinary(bytes, options);
2017
- }
2018
- static fromJson(jsonValue, options) {
2019
- return new _ParticipantMetadataChanged().fromJson(jsonValue, options);
2020
- }
2021
- static fromJsonString(jsonString, options) {
2022
- return new _ParticipantMetadataChanged().fromJsonString(jsonString, options);
2023
- }
2024
- static equals(a, b) {
2025
- return proto2.util.equals(_ParticipantMetadataChanged, a, b);
2026
- }
2027
- };
2028
- _ParticipantMetadataChanged.runtime = proto2;
2029
- _ParticipantMetadataChanged.typeName = "livekit.proto.ParticipantMetadataChanged";
2030
- _ParticipantMetadataChanged.fields = proto2.util.newFieldList(() => [
2031
- { no: 1, name: "participant_identity", kind: "scalar", T: 9, req: true },
2032
- { no: 2, name: "metadata", kind: "scalar", T: 9, req: true }
2033
- ]);
2034
- let ParticipantMetadataChanged = _ParticipantMetadataChanged;
2035
- const _ParticipantAttributesChanged = class _ParticipantAttributesChanged extends Message {
2036
- constructor(data) {
2037
- super();
2038
- /**
2039
- * @generated from field: repeated livekit.proto.AttributesEntry attributes = 2;
2040
- */
2041
- this.attributes = [];
2042
- /**
2043
- * @generated from field: repeated livekit.proto.AttributesEntry changed_attributes = 3;
2044
- */
2045
- this.changedAttributes = [];
2046
- proto2.util.initPartial(data, this);
2047
- }
2048
- static fromBinary(bytes, options) {
2049
- return new _ParticipantAttributesChanged().fromBinary(bytes, options);
2050
- }
2051
- static fromJson(jsonValue, options) {
2052
- return new _ParticipantAttributesChanged().fromJson(jsonValue, options);
2053
- }
2054
- static fromJsonString(jsonString, options) {
2055
- return new _ParticipantAttributesChanged().fromJsonString(jsonString, options);
2056
- }
2057
- static equals(a, b) {
2058
- return proto2.util.equals(_ParticipantAttributesChanged, a, b);
2059
- }
2060
- };
2061
- _ParticipantAttributesChanged.runtime = proto2;
2062
- _ParticipantAttributesChanged.typeName = "livekit.proto.ParticipantAttributesChanged";
2063
- _ParticipantAttributesChanged.fields = proto2.util.newFieldList(() => [
2064
- { no: 1, name: "participant_identity", kind: "scalar", T: 9, req: true },
2065
- { no: 2, name: "attributes", kind: "message", T: AttributesEntry, repeated: true },
2066
- { no: 3, name: "changed_attributes", kind: "message", T: AttributesEntry, repeated: true }
2067
- ]);
2068
- let ParticipantAttributesChanged = _ParticipantAttributesChanged;
2069
- const _ParticipantEncryptionStatusChanged = class _ParticipantEncryptionStatusChanged extends Message {
2070
- constructor(data) {
2071
- super();
2072
- proto2.util.initPartial(data, this);
2073
- }
2074
- static fromBinary(bytes, options) {
2075
- return new _ParticipantEncryptionStatusChanged().fromBinary(bytes, options);
2076
- }
2077
- static fromJson(jsonValue, options) {
2078
- return new _ParticipantEncryptionStatusChanged().fromJson(jsonValue, options);
2079
- }
2080
- static fromJsonString(jsonString, options) {
2081
- return new _ParticipantEncryptionStatusChanged().fromJsonString(jsonString, options);
2082
- }
2083
- static equals(a, b) {
2084
- return proto2.util.equals(_ParticipantEncryptionStatusChanged, a, b);
2085
- }
2086
- };
2087
- _ParticipantEncryptionStatusChanged.runtime = proto2;
2088
- _ParticipantEncryptionStatusChanged.typeName = "livekit.proto.ParticipantEncryptionStatusChanged";
2089
- _ParticipantEncryptionStatusChanged.fields = proto2.util.newFieldList(() => [
2090
- { no: 1, name: "participant_identity", kind: "scalar", T: 9, req: true },
2091
- { no: 2, name: "is_encrypted", kind: "scalar", T: 8, req: true }
2092
- ]);
2093
- let ParticipantEncryptionStatusChanged = _ParticipantEncryptionStatusChanged;
2094
- const _ParticipantNameChanged = class _ParticipantNameChanged extends Message {
2095
- constructor(data) {
2096
- super();
2097
- proto2.util.initPartial(data, this);
2098
- }
2099
- static fromBinary(bytes, options) {
2100
- return new _ParticipantNameChanged().fromBinary(bytes, options);
2101
- }
2102
- static fromJson(jsonValue, options) {
2103
- return new _ParticipantNameChanged().fromJson(jsonValue, options);
2104
- }
2105
- static fromJsonString(jsonString, options) {
2106
- return new _ParticipantNameChanged().fromJsonString(jsonString, options);
2107
- }
2108
- static equals(a, b) {
2109
- return proto2.util.equals(_ParticipantNameChanged, a, b);
2110
- }
2111
- };
2112
- _ParticipantNameChanged.runtime = proto2;
2113
- _ParticipantNameChanged.typeName = "livekit.proto.ParticipantNameChanged";
2114
- _ParticipantNameChanged.fields = proto2.util.newFieldList(() => [
2115
- { no: 1, name: "participant_identity", kind: "scalar", T: 9, req: true },
2116
- { no: 2, name: "name", kind: "scalar", T: 9, req: true }
2117
- ]);
2118
- let ParticipantNameChanged = _ParticipantNameChanged;
2119
- const _ConnectionQualityChanged = class _ConnectionQualityChanged extends Message {
2120
- constructor(data) {
2121
- super();
2122
- proto2.util.initPartial(data, this);
2123
- }
2124
- static fromBinary(bytes, options) {
2125
- return new _ConnectionQualityChanged().fromBinary(bytes, options);
2126
- }
2127
- static fromJson(jsonValue, options) {
2128
- return new _ConnectionQualityChanged().fromJson(jsonValue, options);
2129
- }
2130
- static fromJsonString(jsonString, options) {
2131
- return new _ConnectionQualityChanged().fromJsonString(jsonString, options);
2132
- }
2133
- static equals(a, b) {
2134
- return proto2.util.equals(_ConnectionQualityChanged, a, b);
2135
- }
2136
- };
2137
- _ConnectionQualityChanged.runtime = proto2;
2138
- _ConnectionQualityChanged.typeName = "livekit.proto.ConnectionQualityChanged";
2139
- _ConnectionQualityChanged.fields = proto2.util.newFieldList(() => [
2140
- { no: 1, name: "participant_identity", kind: "scalar", T: 9, req: true },
2141
- { no: 2, name: "quality", kind: "enum", T: proto2.getEnumType(ConnectionQuality), req: true }
2142
- ]);
2143
- let ConnectionQualityChanged = _ConnectionQualityChanged;
2144
- const _UserPacket = class _UserPacket extends Message {
2145
- constructor(data) {
2146
- super();
2147
- proto2.util.initPartial(data, this);
2148
- }
2149
- static fromBinary(bytes, options) {
2150
- return new _UserPacket().fromBinary(bytes, options);
2151
- }
2152
- static fromJson(jsonValue, options) {
2153
- return new _UserPacket().fromJson(jsonValue, options);
2154
- }
2155
- static fromJsonString(jsonString, options) {
2156
- return new _UserPacket().fromJsonString(jsonString, options);
2157
- }
2158
- static equals(a, b) {
2159
- return proto2.util.equals(_UserPacket, a, b);
2160
- }
2161
- };
2162
- _UserPacket.runtime = proto2;
2163
- _UserPacket.typeName = "livekit.proto.UserPacket";
2164
- _UserPacket.fields = proto2.util.newFieldList(() => [
2165
- { no: 1, name: "data", kind: "message", T: OwnedBuffer, req: true },
2166
- { no: 2, name: "topic", kind: "scalar", T: 9, opt: true }
2167
- ]);
2168
- let UserPacket = _UserPacket;
2169
- const _ChatMessage = class _ChatMessage extends Message {
2170
- constructor(data) {
2171
- super();
2172
- proto2.util.initPartial(data, this);
2173
- }
2174
- static fromBinary(bytes, options) {
2175
- return new _ChatMessage().fromBinary(bytes, options);
2176
- }
2177
- static fromJson(jsonValue, options) {
2178
- return new _ChatMessage().fromJson(jsonValue, options);
2179
- }
2180
- static fromJsonString(jsonString, options) {
2181
- return new _ChatMessage().fromJsonString(jsonString, options);
2182
- }
2183
- static equals(a, b) {
2184
- return proto2.util.equals(_ChatMessage, a, b);
2185
- }
2186
- };
2187
- _ChatMessage.runtime = proto2;
2188
- _ChatMessage.typeName = "livekit.proto.ChatMessage";
2189
- _ChatMessage.fields = proto2.util.newFieldList(() => [
2190
- { no: 1, name: "id", kind: "scalar", T: 9, req: true },
2191
- { no: 2, name: "timestamp", kind: "scalar", T: 3, req: true },
2192
- { no: 3, name: "message", kind: "scalar", T: 9, req: true },
2193
- { no: 4, name: "edit_timestamp", kind: "scalar", T: 3, opt: true },
2194
- { no: 5, name: "deleted", kind: "scalar", T: 8, opt: true },
2195
- { no: 6, name: "generated", kind: "scalar", T: 8, opt: true }
2196
- ]);
2197
- let ChatMessage = _ChatMessage;
2198
- const _ChatMessageReceived = class _ChatMessageReceived extends Message {
2199
- constructor(data) {
2200
- super();
2201
- proto2.util.initPartial(data, this);
2202
- }
2203
- static fromBinary(bytes, options) {
2204
- return new _ChatMessageReceived().fromBinary(bytes, options);
2205
- }
2206
- static fromJson(jsonValue, options) {
2207
- return new _ChatMessageReceived().fromJson(jsonValue, options);
2208
- }
2209
- static fromJsonString(jsonString, options) {
2210
- return new _ChatMessageReceived().fromJsonString(jsonString, options);
2211
- }
2212
- static equals(a, b) {
2213
- return proto2.util.equals(_ChatMessageReceived, a, b);
2214
- }
2215
- };
2216
- _ChatMessageReceived.runtime = proto2;
2217
- _ChatMessageReceived.typeName = "livekit.proto.ChatMessageReceived";
2218
- _ChatMessageReceived.fields = proto2.util.newFieldList(() => [
2219
- { no: 1, name: "message", kind: "message", T: ChatMessage, req: true },
2220
- { no: 2, name: "participant_identity", kind: "scalar", T: 9, req: true }
2221
- ]);
2222
- let ChatMessageReceived = _ChatMessageReceived;
2223
- const _SipDTMF = class _SipDTMF extends Message {
2224
- constructor(data) {
2225
- super();
2226
- proto2.util.initPartial(data, this);
2227
- }
2228
- static fromBinary(bytes, options) {
2229
- return new _SipDTMF().fromBinary(bytes, options);
2230
- }
2231
- static fromJson(jsonValue, options) {
2232
- return new _SipDTMF().fromJson(jsonValue, options);
2233
- }
2234
- static fromJsonString(jsonString, options) {
2235
- return new _SipDTMF().fromJsonString(jsonString, options);
2236
- }
2237
- static equals(a, b) {
2238
- return proto2.util.equals(_SipDTMF, a, b);
2239
- }
2240
- };
2241
- _SipDTMF.runtime = proto2;
2242
- _SipDTMF.typeName = "livekit.proto.SipDTMF";
2243
- _SipDTMF.fields = proto2.util.newFieldList(() => [
2244
- { no: 1, name: "code", kind: "scalar", T: 13, req: true },
2245
- { no: 2, name: "digit", kind: "scalar", T: 9, opt: true }
2246
- ]);
2247
- let SipDTMF = _SipDTMF;
2248
- const _DataPacketReceived = class _DataPacketReceived extends Message {
2249
- constructor(data) {
2250
- super();
2251
- /**
2252
- * @generated from oneof livekit.proto.DataPacketReceived.value
2253
- */
2254
- this.value = { case: void 0 };
2255
- proto2.util.initPartial(data, this);
2256
- }
2257
- static fromBinary(bytes, options) {
2258
- return new _DataPacketReceived().fromBinary(bytes, options);
2259
- }
2260
- static fromJson(jsonValue, options) {
2261
- return new _DataPacketReceived().fromJson(jsonValue, options);
2262
- }
2263
- static fromJsonString(jsonString, options) {
2264
- return new _DataPacketReceived().fromJsonString(jsonString, options);
2265
- }
2266
- static equals(a, b) {
2267
- return proto2.util.equals(_DataPacketReceived, a, b);
2268
- }
2269
- };
2270
- _DataPacketReceived.runtime = proto2;
2271
- _DataPacketReceived.typeName = "livekit.proto.DataPacketReceived";
2272
- _DataPacketReceived.fields = proto2.util.newFieldList(() => [
2273
- { no: 1, name: "kind", kind: "enum", T: proto2.getEnumType(DataPacketKind), req: true },
2274
- { no: 2, name: "participant_identity", kind: "scalar", T: 9, req: true },
2275
- { no: 4, name: "user", kind: "message", T: UserPacket, oneof: "value" },
2276
- { no: 5, name: "sip_dtmf", kind: "message", T: SipDTMF, oneof: "value" }
2277
- ]);
2278
- let DataPacketReceived = _DataPacketReceived;
2279
- const _TranscriptionReceived = class _TranscriptionReceived extends Message {
2280
- constructor(data) {
2281
- super();
2282
- /**
2283
- * @generated from field: repeated livekit.proto.TranscriptionSegment segments = 3;
2284
- */
2285
- this.segments = [];
2286
- proto2.util.initPartial(data, this);
2287
- }
2288
- static fromBinary(bytes, options) {
2289
- return new _TranscriptionReceived().fromBinary(bytes, options);
2290
- }
2291
- static fromJson(jsonValue, options) {
2292
- return new _TranscriptionReceived().fromJson(jsonValue, options);
2293
- }
2294
- static fromJsonString(jsonString, options) {
2295
- return new _TranscriptionReceived().fromJsonString(jsonString, options);
2296
- }
2297
- static equals(a, b) {
2298
- return proto2.util.equals(_TranscriptionReceived, a, b);
2299
- }
2300
- };
2301
- _TranscriptionReceived.runtime = proto2;
2302
- _TranscriptionReceived.typeName = "livekit.proto.TranscriptionReceived";
2303
- _TranscriptionReceived.fields = proto2.util.newFieldList(() => [
2304
- { no: 1, name: "participant_identity", kind: "scalar", T: 9, opt: true },
2305
- { no: 2, name: "track_sid", kind: "scalar", T: 9, opt: true },
2306
- { no: 3, name: "segments", kind: "message", T: TranscriptionSegment, repeated: true }
2307
- ]);
2308
- let TranscriptionReceived = _TranscriptionReceived;
2309
- const _ConnectionStateChanged = class _ConnectionStateChanged extends Message {
2310
- constructor(data) {
2311
- super();
2312
- proto2.util.initPartial(data, this);
2313
- }
2314
- static fromBinary(bytes, options) {
2315
- return new _ConnectionStateChanged().fromBinary(bytes, options);
2316
- }
2317
- static fromJson(jsonValue, options) {
2318
- return new _ConnectionStateChanged().fromJson(jsonValue, options);
2319
- }
2320
- static fromJsonString(jsonString, options) {
2321
- return new _ConnectionStateChanged().fromJsonString(jsonString, options);
2322
- }
2323
- static equals(a, b) {
2324
- return proto2.util.equals(_ConnectionStateChanged, a, b);
2325
- }
2326
- };
2327
- _ConnectionStateChanged.runtime = proto2;
2328
- _ConnectionStateChanged.typeName = "livekit.proto.ConnectionStateChanged";
2329
- _ConnectionStateChanged.fields = proto2.util.newFieldList(() => [
2330
- { no: 1, name: "state", kind: "enum", T: proto2.getEnumType(ConnectionState), req: true }
2331
- ]);
2332
- let ConnectionStateChanged = _ConnectionStateChanged;
2333
- const _Connected = class _Connected extends Message {
2334
- constructor(data) {
2335
- super();
2336
- proto2.util.initPartial(data, this);
2337
- }
2338
- static fromBinary(bytes, options) {
2339
- return new _Connected().fromBinary(bytes, options);
2340
- }
2341
- static fromJson(jsonValue, options) {
2342
- return new _Connected().fromJson(jsonValue, options);
2343
- }
2344
- static fromJsonString(jsonString, options) {
2345
- return new _Connected().fromJsonString(jsonString, options);
2346
- }
2347
- static equals(a, b) {
2348
- return proto2.util.equals(_Connected, a, b);
2349
- }
2350
- };
2351
- _Connected.runtime = proto2;
2352
- _Connected.typeName = "livekit.proto.Connected";
2353
- _Connected.fields = proto2.util.newFieldList(() => []);
2354
- let Connected = _Connected;
2355
- const _Disconnected = class _Disconnected extends Message {
2356
- constructor(data) {
2357
- super();
2358
- proto2.util.initPartial(data, this);
2359
- }
2360
- static fromBinary(bytes, options) {
2361
- return new _Disconnected().fromBinary(bytes, options);
2362
- }
2363
- static fromJson(jsonValue, options) {
2364
- return new _Disconnected().fromJson(jsonValue, options);
2365
- }
2366
- static fromJsonString(jsonString, options) {
2367
- return new _Disconnected().fromJsonString(jsonString, options);
2368
- }
2369
- static equals(a, b) {
2370
- return proto2.util.equals(_Disconnected, a, b);
2371
- }
2372
- };
2373
- _Disconnected.runtime = proto2;
2374
- _Disconnected.typeName = "livekit.proto.Disconnected";
2375
- _Disconnected.fields = proto2.util.newFieldList(() => [
2376
- { no: 1, name: "reason", kind: "enum", T: proto2.getEnumType(DisconnectReason), req: true }
2377
- ]);
2378
- let Disconnected = _Disconnected;
2379
- const _Reconnecting = class _Reconnecting extends Message {
2380
- constructor(data) {
2381
- super();
2382
- proto2.util.initPartial(data, this);
2383
- }
2384
- static fromBinary(bytes, options) {
2385
- return new _Reconnecting().fromBinary(bytes, options);
2386
- }
2387
- static fromJson(jsonValue, options) {
2388
- return new _Reconnecting().fromJson(jsonValue, options);
2389
- }
2390
- static fromJsonString(jsonString, options) {
2391
- return new _Reconnecting().fromJsonString(jsonString, options);
2392
- }
2393
- static equals(a, b) {
2394
- return proto2.util.equals(_Reconnecting, a, b);
2395
- }
2396
- };
2397
- _Reconnecting.runtime = proto2;
2398
- _Reconnecting.typeName = "livekit.proto.Reconnecting";
2399
- _Reconnecting.fields = proto2.util.newFieldList(() => []);
2400
- let Reconnecting = _Reconnecting;
2401
- const _Reconnected = class _Reconnected extends Message {
2402
- constructor(data) {
2403
- super();
2404
- proto2.util.initPartial(data, this);
2405
- }
2406
- static fromBinary(bytes, options) {
2407
- return new _Reconnected().fromBinary(bytes, options);
2408
- }
2409
- static fromJson(jsonValue, options) {
2410
- return new _Reconnected().fromJson(jsonValue, options);
2411
- }
2412
- static fromJsonString(jsonString, options) {
2413
- return new _Reconnected().fromJsonString(jsonString, options);
2414
- }
2415
- static equals(a, b) {
2416
- return proto2.util.equals(_Reconnected, a, b);
2417
- }
2418
- };
2419
- _Reconnected.runtime = proto2;
2420
- _Reconnected.typeName = "livekit.proto.Reconnected";
2421
- _Reconnected.fields = proto2.util.newFieldList(() => []);
2422
- let Reconnected = _Reconnected;
2423
- const _TokenRefreshed = class _TokenRefreshed extends Message {
2424
- constructor(data) {
2425
- super();
2426
- proto2.util.initPartial(data, this);
2427
- }
2428
- static fromBinary(bytes, options) {
2429
- return new _TokenRefreshed().fromBinary(bytes, options);
2430
- }
2431
- static fromJson(jsonValue, options) {
2432
- return new _TokenRefreshed().fromJson(jsonValue, options);
2433
- }
2434
- static fromJsonString(jsonString, options) {
2435
- return new _TokenRefreshed().fromJsonString(jsonString, options);
2436
- }
2437
- static equals(a, b) {
2438
- return proto2.util.equals(_TokenRefreshed, a, b);
2439
- }
2440
- };
2441
- _TokenRefreshed.runtime = proto2;
2442
- _TokenRefreshed.typeName = "livekit.proto.TokenRefreshed";
2443
- _TokenRefreshed.fields = proto2.util.newFieldList(() => [
2444
- { no: 1, name: "token", kind: "scalar", T: 9, req: true }
2445
- ]);
2446
- let TokenRefreshed = _TokenRefreshed;
2447
- const _RoomEOS = class _RoomEOS extends Message {
2448
- constructor(data) {
2449
- super();
2450
- proto2.util.initPartial(data, this);
2451
- }
2452
- static fromBinary(bytes, options) {
2453
- return new _RoomEOS().fromBinary(bytes, options);
2454
- }
2455
- static fromJson(jsonValue, options) {
2456
- return new _RoomEOS().fromJson(jsonValue, options);
2457
- }
2458
- static fromJsonString(jsonString, options) {
2459
- return new _RoomEOS().fromJsonString(jsonString, options);
2460
- }
2461
- static equals(a, b) {
2462
- return proto2.util.equals(_RoomEOS, a, b);
2463
- }
2464
- };
2465
- _RoomEOS.runtime = proto2;
2466
- _RoomEOS.typeName = "livekit.proto.RoomEOS";
2467
- _RoomEOS.fields = proto2.util.newFieldList(() => []);
2468
- let RoomEOS = _RoomEOS;
2469
- const _DataStream = class _DataStream extends Message {
2470
- constructor(data) {
2471
- super();
2472
- proto2.util.initPartial(data, this);
2473
- }
2474
- static fromBinary(bytes, options) {
2475
- return new _DataStream().fromBinary(bytes, options);
2476
- }
2477
- static fromJson(jsonValue, options) {
2478
- return new _DataStream().fromJson(jsonValue, options);
2479
- }
2480
- static fromJsonString(jsonString, options) {
2481
- return new _DataStream().fromJsonString(jsonString, options);
2482
- }
2483
- static equals(a, b) {
2484
- return proto2.util.equals(_DataStream, a, b);
2485
- }
2486
- };
2487
- _DataStream.runtime = proto2;
2488
- _DataStream.typeName = "livekit.proto.DataStream";
2489
- _DataStream.fields = proto2.util.newFieldList(() => []);
2490
- let DataStream = _DataStream;
2491
- var DataStream_OperationType = /* @__PURE__ */ ((DataStream_OperationType2) => {
2492
- DataStream_OperationType2[DataStream_OperationType2["CREATE"] = 0] = "CREATE";
2493
- DataStream_OperationType2[DataStream_OperationType2["UPDATE"] = 1] = "UPDATE";
2494
- DataStream_OperationType2[DataStream_OperationType2["DELETE"] = 2] = "DELETE";
2495
- DataStream_OperationType2[DataStream_OperationType2["REACTION"] = 3] = "REACTION";
2496
- return DataStream_OperationType2;
2497
- })(DataStream_OperationType || {});
2498
- proto2.util.setEnumType(DataStream_OperationType, "livekit.proto.DataStream.OperationType", [
2499
- { no: 0, name: "CREATE" },
2500
- { no: 1, name: "UPDATE" },
2501
- { no: 2, name: "DELETE" },
2502
- { no: 3, name: "REACTION" }
2503
- ]);
2504
- const _DataStream_TextHeader = class _DataStream_TextHeader extends Message {
2505
- constructor(data) {
2506
- super();
2507
- /**
2508
- * file attachments for text streams
2509
- *
2510
- * @generated from field: repeated string attached_stream_ids = 4;
2511
- */
2512
- this.attachedStreamIds = [];
2513
- proto2.util.initPartial(data, this);
2514
- }
2515
- static fromBinary(bytes, options) {
2516
- return new _DataStream_TextHeader().fromBinary(bytes, options);
2517
- }
2518
- static fromJson(jsonValue, options) {
2519
- return new _DataStream_TextHeader().fromJson(jsonValue, options);
2520
- }
2521
- static fromJsonString(jsonString, options) {
2522
- return new _DataStream_TextHeader().fromJsonString(jsonString, options);
2523
- }
2524
- static equals(a, b) {
2525
- return proto2.util.equals(_DataStream_TextHeader, a, b);
2526
- }
2527
- };
2528
- _DataStream_TextHeader.runtime = proto2;
2529
- _DataStream_TextHeader.typeName = "livekit.proto.DataStream.TextHeader";
2530
- _DataStream_TextHeader.fields = proto2.util.newFieldList(() => [
2531
- { no: 1, name: "operation_type", kind: "enum", T: proto2.getEnumType(DataStream_OperationType), req: true },
2532
- { no: 2, name: "version", kind: "scalar", T: 5, opt: true },
2533
- { no: 3, name: "reply_to_stream_id", kind: "scalar", T: 9, opt: true },
2534
- { no: 4, name: "attached_stream_ids", kind: "scalar", T: 9, repeated: true },
2535
- { no: 5, name: "generated", kind: "scalar", T: 8, opt: true }
2536
- ]);
2537
- let DataStream_TextHeader = _DataStream_TextHeader;
2538
- const _DataStream_ByteHeader = class _DataStream_ByteHeader extends Message {
2539
- constructor(data) {
2540
- super();
2541
- proto2.util.initPartial(data, this);
2542
- }
2543
- static fromBinary(bytes, options) {
2544
- return new _DataStream_ByteHeader().fromBinary(bytes, options);
2545
- }
2546
- static fromJson(jsonValue, options) {
2547
- return new _DataStream_ByteHeader().fromJson(jsonValue, options);
2548
- }
2549
- static fromJsonString(jsonString, options) {
2550
- return new _DataStream_ByteHeader().fromJsonString(jsonString, options);
2551
- }
2552
- static equals(a, b) {
2553
- return proto2.util.equals(_DataStream_ByteHeader, a, b);
2554
- }
2555
- };
2556
- _DataStream_ByteHeader.runtime = proto2;
2557
- _DataStream_ByteHeader.typeName = "livekit.proto.DataStream.ByteHeader";
2558
- _DataStream_ByteHeader.fields = proto2.util.newFieldList(() => [
2559
- { no: 1, name: "name", kind: "scalar", T: 9, req: true }
2560
- ]);
2561
- let DataStream_ByteHeader = _DataStream_ByteHeader;
2562
- const _DataStream_Header = class _DataStream_Header extends Message {
2563
- constructor(data) {
2564
- super();
2565
- /**
2566
- * user defined attributes map that can carry additional info
2567
- *
2568
- * @generated from field: map<string, string> attributes = 6;
2569
- */
2570
- this.attributes = {};
2571
- /**
2572
- * oneof to choose between specific header types
2573
- *
2574
- * @generated from oneof livekit.proto.DataStream.Header.content_header
2575
- */
2576
- this.contentHeader = { case: void 0 };
2577
- proto2.util.initPartial(data, this);
2578
- }
2579
- static fromBinary(bytes, options) {
2580
- return new _DataStream_Header().fromBinary(bytes, options);
2581
- }
2582
- static fromJson(jsonValue, options) {
2583
- return new _DataStream_Header().fromJson(jsonValue, options);
2584
- }
2585
- static fromJsonString(jsonString, options) {
2586
- return new _DataStream_Header().fromJsonString(jsonString, options);
2587
- }
2588
- static equals(a, b) {
2589
- return proto2.util.equals(_DataStream_Header, a, b);
2590
- }
2591
- };
2592
- _DataStream_Header.runtime = proto2;
2593
- _DataStream_Header.typeName = "livekit.proto.DataStream.Header";
2594
- _DataStream_Header.fields = proto2.util.newFieldList(() => [
2595
- { no: 1, name: "stream_id", kind: "scalar", T: 9, req: true },
2596
- { no: 2, name: "timestamp", kind: "scalar", T: 3, req: true },
2597
- { no: 3, name: "mime_type", kind: "scalar", T: 9, req: true },
2598
- { no: 4, name: "topic", kind: "scalar", T: 9, req: true },
2599
- { no: 5, name: "total_length", kind: "scalar", T: 4, opt: true },
2600
- { no: 6, name: "attributes", kind: "map", K: 9, V: {
2601
- kind: "scalar",
2602
- T: 9
2603
- /* ScalarType.STRING */
2604
- } },
2605
- { no: 7, name: "text_header", kind: "message", T: DataStream_TextHeader, oneof: "content_header" },
2606
- { no: 8, name: "byte_header", kind: "message", T: DataStream_ByteHeader, oneof: "content_header" }
2607
- ]);
2608
- let DataStream_Header = _DataStream_Header;
2609
- const _DataStream_Chunk = class _DataStream_Chunk extends Message {
2610
- constructor(data) {
2611
- super();
2612
- proto2.util.initPartial(data, this);
2613
- }
2614
- static fromBinary(bytes, options) {
2615
- return new _DataStream_Chunk().fromBinary(bytes, options);
2616
- }
2617
- static fromJson(jsonValue, options) {
2618
- return new _DataStream_Chunk().fromJson(jsonValue, options);
2619
- }
2620
- static fromJsonString(jsonString, options) {
2621
- return new _DataStream_Chunk().fromJsonString(jsonString, options);
2622
- }
2623
- static equals(a, b) {
2624
- return proto2.util.equals(_DataStream_Chunk, a, b);
2625
- }
2626
- };
2627
- _DataStream_Chunk.runtime = proto2;
2628
- _DataStream_Chunk.typeName = "livekit.proto.DataStream.Chunk";
2629
- _DataStream_Chunk.fields = proto2.util.newFieldList(() => [
2630
- { no: 1, name: "stream_id", kind: "scalar", T: 9, req: true },
2631
- { no: 2, name: "chunk_index", kind: "scalar", T: 4, req: true },
2632
- { no: 3, name: "content", kind: "scalar", T: 12, req: true },
2633
- { no: 4, name: "version", kind: "scalar", T: 5, opt: true },
2634
- { no: 5, name: "iv", kind: "scalar", T: 12, opt: true }
2635
- ]);
2636
- let DataStream_Chunk = _DataStream_Chunk;
2637
- const _DataStream_Trailer = class _DataStream_Trailer extends Message {
2638
- constructor(data) {
2639
- super();
2640
- /**
2641
- * finalizing updates for the stream, can also include additional insights for errors or endTime for transcription
2642
- *
2643
- * @generated from field: map<string, string> attributes = 3;
2644
- */
2645
- this.attributes = {};
2646
- proto2.util.initPartial(data, this);
2647
- }
2648
- static fromBinary(bytes, options) {
2649
- return new _DataStream_Trailer().fromBinary(bytes, options);
2650
- }
2651
- static fromJson(jsonValue, options) {
2652
- return new _DataStream_Trailer().fromJson(jsonValue, options);
2653
- }
2654
- static fromJsonString(jsonString, options) {
2655
- return new _DataStream_Trailer().fromJsonString(jsonString, options);
2656
- }
2657
- static equals(a, b) {
2658
- return proto2.util.equals(_DataStream_Trailer, a, b);
2659
- }
2660
- };
2661
- _DataStream_Trailer.runtime = proto2;
2662
- _DataStream_Trailer.typeName = "livekit.proto.DataStream.Trailer";
2663
- _DataStream_Trailer.fields = proto2.util.newFieldList(() => [
2664
- { no: 1, name: "stream_id", kind: "scalar", T: 9, req: true },
2665
- { no: 2, name: "reason", kind: "scalar", T: 9, req: true },
2666
- { no: 3, name: "attributes", kind: "map", K: 9, V: {
2667
- kind: "scalar",
2668
- T: 9
2669
- /* ScalarType.STRING */
2670
- } }
2671
- ]);
2672
- let DataStream_Trailer = _DataStream_Trailer;
2673
- const _DataStreamHeaderReceived = class _DataStreamHeaderReceived extends Message {
2674
- constructor(data) {
2675
- super();
2676
- proto2.util.initPartial(data, this);
2677
- }
2678
- static fromBinary(bytes, options) {
2679
- return new _DataStreamHeaderReceived().fromBinary(bytes, options);
2680
- }
2681
- static fromJson(jsonValue, options) {
2682
- return new _DataStreamHeaderReceived().fromJson(jsonValue, options);
2683
- }
2684
- static fromJsonString(jsonString, options) {
2685
- return new _DataStreamHeaderReceived().fromJsonString(jsonString, options);
2686
- }
2687
- static equals(a, b) {
2688
- return proto2.util.equals(_DataStreamHeaderReceived, a, b);
2689
- }
2690
- };
2691
- _DataStreamHeaderReceived.runtime = proto2;
2692
- _DataStreamHeaderReceived.typeName = "livekit.proto.DataStreamHeaderReceived";
2693
- _DataStreamHeaderReceived.fields = proto2.util.newFieldList(() => [
2694
- { no: 1, name: "participant_identity", kind: "scalar", T: 9, req: true },
2695
- { no: 2, name: "header", kind: "message", T: DataStream_Header, req: true }
2696
- ]);
2697
- let DataStreamHeaderReceived = _DataStreamHeaderReceived;
2698
- const _DataStreamChunkReceived = class _DataStreamChunkReceived extends Message {
2699
- constructor(data) {
2700
- super();
2701
- proto2.util.initPartial(data, this);
2702
- }
2703
- static fromBinary(bytes, options) {
2704
- return new _DataStreamChunkReceived().fromBinary(bytes, options);
2705
- }
2706
- static fromJson(jsonValue, options) {
2707
- return new _DataStreamChunkReceived().fromJson(jsonValue, options);
2708
- }
2709
- static fromJsonString(jsonString, options) {
2710
- return new _DataStreamChunkReceived().fromJsonString(jsonString, options);
2711
- }
2712
- static equals(a, b) {
2713
- return proto2.util.equals(_DataStreamChunkReceived, a, b);
2714
- }
2715
- };
2716
- _DataStreamChunkReceived.runtime = proto2;
2717
- _DataStreamChunkReceived.typeName = "livekit.proto.DataStreamChunkReceived";
2718
- _DataStreamChunkReceived.fields = proto2.util.newFieldList(() => [
2719
- { no: 1, name: "participant_identity", kind: "scalar", T: 9, req: true },
2720
- { no: 2, name: "chunk", kind: "message", T: DataStream_Chunk, req: true }
2721
- ]);
2722
- let DataStreamChunkReceived = _DataStreamChunkReceived;
2723
- const _DataStreamTrailerReceived = class _DataStreamTrailerReceived extends Message {
2724
- constructor(data) {
2725
- super();
2726
- proto2.util.initPartial(data, this);
2727
- }
2728
- static fromBinary(bytes, options) {
2729
- return new _DataStreamTrailerReceived().fromBinary(bytes, options);
2730
- }
2731
- static fromJson(jsonValue, options) {
2732
- return new _DataStreamTrailerReceived().fromJson(jsonValue, options);
2733
- }
2734
- static fromJsonString(jsonString, options) {
2735
- return new _DataStreamTrailerReceived().fromJsonString(jsonString, options);
2736
- }
2737
- static equals(a, b) {
2738
- return proto2.util.equals(_DataStreamTrailerReceived, a, b);
2739
- }
2740
- };
2741
- _DataStreamTrailerReceived.runtime = proto2;
2742
- _DataStreamTrailerReceived.typeName = "livekit.proto.DataStreamTrailerReceived";
2743
- _DataStreamTrailerReceived.fields = proto2.util.newFieldList(() => [
2744
- { no: 1, name: "participant_identity", kind: "scalar", T: 9, req: true },
2745
- { no: 2, name: "trailer", kind: "message", T: DataStream_Trailer, req: true }
2746
- ]);
2747
- let DataStreamTrailerReceived = _DataStreamTrailerReceived;
2748
- const _SendStreamHeaderRequest = class _SendStreamHeaderRequest extends Message {
2749
- constructor(data) {
2750
- super();
2751
- /**
2752
- * @generated from field: repeated string destination_identities = 3;
2753
- */
2754
- this.destinationIdentities = [];
2755
- proto2.util.initPartial(data, this);
2756
- }
2757
- static fromBinary(bytes, options) {
2758
- return new _SendStreamHeaderRequest().fromBinary(bytes, options);
2759
- }
2760
- static fromJson(jsonValue, options) {
2761
- return new _SendStreamHeaderRequest().fromJson(jsonValue, options);
2762
- }
2763
- static fromJsonString(jsonString, options) {
2764
- return new _SendStreamHeaderRequest().fromJsonString(jsonString, options);
2765
- }
2766
- static equals(a, b) {
2767
- return proto2.util.equals(_SendStreamHeaderRequest, a, b);
2768
- }
2769
- };
2770
- _SendStreamHeaderRequest.runtime = proto2;
2771
- _SendStreamHeaderRequest.typeName = "livekit.proto.SendStreamHeaderRequest";
2772
- _SendStreamHeaderRequest.fields = proto2.util.newFieldList(() => [
2773
- { no: 1, name: "local_participant_handle", kind: "scalar", T: 4, req: true },
2774
- { no: 2, name: "header", kind: "message", T: DataStream_Header, req: true },
2775
- { no: 3, name: "destination_identities", kind: "scalar", T: 9, repeated: true },
2776
- { no: 4, name: "sender_identity", kind: "scalar", T: 9, req: true }
2777
- ]);
2778
- let SendStreamHeaderRequest = _SendStreamHeaderRequest;
2779
- const _SendStreamChunkRequest = class _SendStreamChunkRequest extends Message {
2780
- constructor(data) {
2781
- super();
2782
- /**
2783
- * @generated from field: repeated string destination_identities = 3;
2784
- */
2785
- this.destinationIdentities = [];
2786
- proto2.util.initPartial(data, this);
2787
- }
2788
- static fromBinary(bytes, options) {
2789
- return new _SendStreamChunkRequest().fromBinary(bytes, options);
2790
- }
2791
- static fromJson(jsonValue, options) {
2792
- return new _SendStreamChunkRequest().fromJson(jsonValue, options);
2793
- }
2794
- static fromJsonString(jsonString, options) {
2795
- return new _SendStreamChunkRequest().fromJsonString(jsonString, options);
2796
- }
2797
- static equals(a, b) {
2798
- return proto2.util.equals(_SendStreamChunkRequest, a, b);
2799
- }
2800
- };
2801
- _SendStreamChunkRequest.runtime = proto2;
2802
- _SendStreamChunkRequest.typeName = "livekit.proto.SendStreamChunkRequest";
2803
- _SendStreamChunkRequest.fields = proto2.util.newFieldList(() => [
2804
- { no: 1, name: "local_participant_handle", kind: "scalar", T: 4, req: true },
2805
- { no: 2, name: "chunk", kind: "message", T: DataStream_Chunk, req: true },
2806
- { no: 3, name: "destination_identities", kind: "scalar", T: 9, repeated: true },
2807
- { no: 4, name: "sender_identity", kind: "scalar", T: 9, req: true }
2808
- ]);
2809
- let SendStreamChunkRequest = _SendStreamChunkRequest;
2810
- const _SendStreamTrailerRequest = class _SendStreamTrailerRequest extends Message {
2811
- constructor(data) {
2812
- super();
2813
- /**
2814
- * @generated from field: repeated string destination_identities = 3;
2815
- */
2816
- this.destinationIdentities = [];
2817
- proto2.util.initPartial(data, this);
2818
- }
2819
- static fromBinary(bytes, options) {
2820
- return new _SendStreamTrailerRequest().fromBinary(bytes, options);
2821
- }
2822
- static fromJson(jsonValue, options) {
2823
- return new _SendStreamTrailerRequest().fromJson(jsonValue, options);
2824
- }
2825
- static fromJsonString(jsonString, options) {
2826
- return new _SendStreamTrailerRequest().fromJsonString(jsonString, options);
2827
- }
2828
- static equals(a, b) {
2829
- return proto2.util.equals(_SendStreamTrailerRequest, a, b);
2830
- }
2831
- };
2832
- _SendStreamTrailerRequest.runtime = proto2;
2833
- _SendStreamTrailerRequest.typeName = "livekit.proto.SendStreamTrailerRequest";
2834
- _SendStreamTrailerRequest.fields = proto2.util.newFieldList(() => [
2835
- { no: 1, name: "local_participant_handle", kind: "scalar", T: 4, req: true },
2836
- { no: 2, name: "trailer", kind: "message", T: DataStream_Trailer, req: true },
2837
- { no: 3, name: "destination_identities", kind: "scalar", T: 9, repeated: true },
2838
- { no: 4, name: "sender_identity", kind: "scalar", T: 9, req: true }
2839
- ]);
2840
- let SendStreamTrailerRequest = _SendStreamTrailerRequest;
2841
- const _SendStreamHeaderResponse = class _SendStreamHeaderResponse extends Message {
2842
- constructor(data) {
2843
- super();
2844
- proto2.util.initPartial(data, this);
2845
- }
2846
- static fromBinary(bytes, options) {
2847
- return new _SendStreamHeaderResponse().fromBinary(bytes, options);
2848
- }
2849
- static fromJson(jsonValue, options) {
2850
- return new _SendStreamHeaderResponse().fromJson(jsonValue, options);
2851
- }
2852
- static fromJsonString(jsonString, options) {
2853
- return new _SendStreamHeaderResponse().fromJsonString(jsonString, options);
2854
- }
2855
- static equals(a, b) {
2856
- return proto2.util.equals(_SendStreamHeaderResponse, a, b);
2857
- }
2858
- };
2859
- _SendStreamHeaderResponse.runtime = proto2;
2860
- _SendStreamHeaderResponse.typeName = "livekit.proto.SendStreamHeaderResponse";
2861
- _SendStreamHeaderResponse.fields = proto2.util.newFieldList(() => [
2862
- { no: 1, name: "async_id", kind: "scalar", T: 4, req: true }
2863
- ]);
2864
- let SendStreamHeaderResponse = _SendStreamHeaderResponse;
2865
- const _SendStreamChunkResponse = class _SendStreamChunkResponse extends Message {
2866
- constructor(data) {
2867
- super();
2868
- proto2.util.initPartial(data, this);
2869
- }
2870
- static fromBinary(bytes, options) {
2871
- return new _SendStreamChunkResponse().fromBinary(bytes, options);
2872
- }
2873
- static fromJson(jsonValue, options) {
2874
- return new _SendStreamChunkResponse().fromJson(jsonValue, options);
2875
- }
2876
- static fromJsonString(jsonString, options) {
2877
- return new _SendStreamChunkResponse().fromJsonString(jsonString, options);
2878
- }
2879
- static equals(a, b) {
2880
- return proto2.util.equals(_SendStreamChunkResponse, a, b);
2881
- }
2882
- };
2883
- _SendStreamChunkResponse.runtime = proto2;
2884
- _SendStreamChunkResponse.typeName = "livekit.proto.SendStreamChunkResponse";
2885
- _SendStreamChunkResponse.fields = proto2.util.newFieldList(() => [
2886
- { no: 1, name: "async_id", kind: "scalar", T: 4, req: true }
2887
- ]);
2888
- let SendStreamChunkResponse = _SendStreamChunkResponse;
2889
- const _SendStreamTrailerResponse = class _SendStreamTrailerResponse extends Message {
2890
- constructor(data) {
2891
- super();
2892
- proto2.util.initPartial(data, this);
2893
- }
2894
- static fromBinary(bytes, options) {
2895
- return new _SendStreamTrailerResponse().fromBinary(bytes, options);
2896
- }
2897
- static fromJson(jsonValue, options) {
2898
- return new _SendStreamTrailerResponse().fromJson(jsonValue, options);
2899
- }
2900
- static fromJsonString(jsonString, options) {
2901
- return new _SendStreamTrailerResponse().fromJsonString(jsonString, options);
2902
- }
2903
- static equals(a, b) {
2904
- return proto2.util.equals(_SendStreamTrailerResponse, a, b);
2905
- }
2906
- };
2907
- _SendStreamTrailerResponse.runtime = proto2;
2908
- _SendStreamTrailerResponse.typeName = "livekit.proto.SendStreamTrailerResponse";
2909
- _SendStreamTrailerResponse.fields = proto2.util.newFieldList(() => [
2910
- { no: 1, name: "async_id", kind: "scalar", T: 4, req: true }
2911
- ]);
2912
- let SendStreamTrailerResponse = _SendStreamTrailerResponse;
2913
- const _SendStreamHeaderCallback = class _SendStreamHeaderCallback extends Message {
2914
- constructor(data) {
2915
- super();
2916
- proto2.util.initPartial(data, this);
2917
- }
2918
- static fromBinary(bytes, options) {
2919
- return new _SendStreamHeaderCallback().fromBinary(bytes, options);
2920
- }
2921
- static fromJson(jsonValue, options) {
2922
- return new _SendStreamHeaderCallback().fromJson(jsonValue, options);
2923
- }
2924
- static fromJsonString(jsonString, options) {
2925
- return new _SendStreamHeaderCallback().fromJsonString(jsonString, options);
2926
- }
2927
- static equals(a, b) {
2928
- return proto2.util.equals(_SendStreamHeaderCallback, a, b);
2929
- }
2930
- };
2931
- _SendStreamHeaderCallback.runtime = proto2;
2932
- _SendStreamHeaderCallback.typeName = "livekit.proto.SendStreamHeaderCallback";
2933
- _SendStreamHeaderCallback.fields = proto2.util.newFieldList(() => [
2934
- { no: 1, name: "async_id", kind: "scalar", T: 4, req: true },
2935
- { no: 2, name: "error", kind: "scalar", T: 9, opt: true }
2936
- ]);
2937
- let SendStreamHeaderCallback = _SendStreamHeaderCallback;
2938
- const _SendStreamChunkCallback = class _SendStreamChunkCallback extends Message {
2939
- constructor(data) {
2940
- super();
2941
- proto2.util.initPartial(data, this);
2942
- }
2943
- static fromBinary(bytes, options) {
2944
- return new _SendStreamChunkCallback().fromBinary(bytes, options);
2945
- }
2946
- static fromJson(jsonValue, options) {
2947
- return new _SendStreamChunkCallback().fromJson(jsonValue, options);
2948
- }
2949
- static fromJsonString(jsonString, options) {
2950
- return new _SendStreamChunkCallback().fromJsonString(jsonString, options);
2951
- }
2952
- static equals(a, b) {
2953
- return proto2.util.equals(_SendStreamChunkCallback, a, b);
2954
- }
2955
- };
2956
- _SendStreamChunkCallback.runtime = proto2;
2957
- _SendStreamChunkCallback.typeName = "livekit.proto.SendStreamChunkCallback";
2958
- _SendStreamChunkCallback.fields = proto2.util.newFieldList(() => [
2959
- { no: 1, name: "async_id", kind: "scalar", T: 4, req: true },
2960
- { no: 2, name: "error", kind: "scalar", T: 9, opt: true }
2961
- ]);
2962
- let SendStreamChunkCallback = _SendStreamChunkCallback;
2963
- const _SendStreamTrailerCallback = class _SendStreamTrailerCallback extends Message {
2964
- constructor(data) {
2965
- super();
2966
- proto2.util.initPartial(data, this);
2967
- }
2968
- static fromBinary(bytes, options) {
2969
- return new _SendStreamTrailerCallback().fromBinary(bytes, options);
2970
- }
2971
- static fromJson(jsonValue, options) {
2972
- return new _SendStreamTrailerCallback().fromJson(jsonValue, options);
2973
- }
2974
- static fromJsonString(jsonString, options) {
2975
- return new _SendStreamTrailerCallback().fromJsonString(jsonString, options);
2976
- }
2977
- static equals(a, b) {
2978
- return proto2.util.equals(_SendStreamTrailerCallback, a, b);
2979
- }
2980
- };
2981
- _SendStreamTrailerCallback.runtime = proto2;
2982
- _SendStreamTrailerCallback.typeName = "livekit.proto.SendStreamTrailerCallback";
2983
- _SendStreamTrailerCallback.fields = proto2.util.newFieldList(() => [
2984
- { no: 1, name: "async_id", kind: "scalar", T: 4, req: true },
2985
- { no: 2, name: "error", kind: "scalar", T: 9, opt: true }
2986
- ]);
2987
- let SendStreamTrailerCallback = _SendStreamTrailerCallback;
2988
- const _SetDataChannelBufferedAmountLowThresholdRequest = class _SetDataChannelBufferedAmountLowThresholdRequest extends Message {
2989
- constructor(data) {
2990
- super();
2991
- proto2.util.initPartial(data, this);
2992
- }
2993
- static fromBinary(bytes, options) {
2994
- return new _SetDataChannelBufferedAmountLowThresholdRequest().fromBinary(bytes, options);
2995
- }
2996
- static fromJson(jsonValue, options) {
2997
- return new _SetDataChannelBufferedAmountLowThresholdRequest().fromJson(jsonValue, options);
2998
- }
2999
- static fromJsonString(jsonString, options) {
3000
- return new _SetDataChannelBufferedAmountLowThresholdRequest().fromJsonString(jsonString, options);
3001
- }
3002
- static equals(a, b) {
3003
- return proto2.util.equals(_SetDataChannelBufferedAmountLowThresholdRequest, a, b);
3004
- }
3005
- };
3006
- _SetDataChannelBufferedAmountLowThresholdRequest.runtime = proto2;
3007
- _SetDataChannelBufferedAmountLowThresholdRequest.typeName = "livekit.proto.SetDataChannelBufferedAmountLowThresholdRequest";
3008
- _SetDataChannelBufferedAmountLowThresholdRequest.fields = proto2.util.newFieldList(() => [
3009
- { no: 1, name: "local_participant_handle", kind: "scalar", T: 4, req: true },
3010
- { no: 2, name: "threshold", kind: "scalar", T: 4, req: true },
3011
- { no: 3, name: "kind", kind: "enum", T: proto2.getEnumType(DataPacketKind), req: true }
3012
- ]);
3013
- let SetDataChannelBufferedAmountLowThresholdRequest = _SetDataChannelBufferedAmountLowThresholdRequest;
3014
- const _SetDataChannelBufferedAmountLowThresholdResponse = class _SetDataChannelBufferedAmountLowThresholdResponse extends Message {
3015
- constructor(data) {
3016
- super();
3017
- proto2.util.initPartial(data, this);
3018
- }
3019
- static fromBinary(bytes, options) {
3020
- return new _SetDataChannelBufferedAmountLowThresholdResponse().fromBinary(bytes, options);
3021
- }
3022
- static fromJson(jsonValue, options) {
3023
- return new _SetDataChannelBufferedAmountLowThresholdResponse().fromJson(jsonValue, options);
3024
- }
3025
- static fromJsonString(jsonString, options) {
3026
- return new _SetDataChannelBufferedAmountLowThresholdResponse().fromJsonString(jsonString, options);
3027
- }
3028
- static equals(a, b) {
3029
- return proto2.util.equals(_SetDataChannelBufferedAmountLowThresholdResponse, a, b);
3030
- }
3031
- };
3032
- _SetDataChannelBufferedAmountLowThresholdResponse.runtime = proto2;
3033
- _SetDataChannelBufferedAmountLowThresholdResponse.typeName = "livekit.proto.SetDataChannelBufferedAmountLowThresholdResponse";
3034
- _SetDataChannelBufferedAmountLowThresholdResponse.fields = proto2.util.newFieldList(() => []);
3035
- let SetDataChannelBufferedAmountLowThresholdResponse = _SetDataChannelBufferedAmountLowThresholdResponse;
3036
- const _DataChannelBufferedAmountLowThresholdChanged = class _DataChannelBufferedAmountLowThresholdChanged extends Message {
3037
- constructor(data) {
3038
- super();
3039
- proto2.util.initPartial(data, this);
3040
- }
3041
- static fromBinary(bytes, options) {
3042
- return new _DataChannelBufferedAmountLowThresholdChanged().fromBinary(bytes, options);
3043
- }
3044
- static fromJson(jsonValue, options) {
3045
- return new _DataChannelBufferedAmountLowThresholdChanged().fromJson(jsonValue, options);
3046
- }
3047
- static fromJsonString(jsonString, options) {
3048
- return new _DataChannelBufferedAmountLowThresholdChanged().fromJsonString(jsonString, options);
3049
- }
3050
- static equals(a, b) {
3051
- return proto2.util.equals(_DataChannelBufferedAmountLowThresholdChanged, a, b);
3052
- }
3053
- };
3054
- _DataChannelBufferedAmountLowThresholdChanged.runtime = proto2;
3055
- _DataChannelBufferedAmountLowThresholdChanged.typeName = "livekit.proto.DataChannelBufferedAmountLowThresholdChanged";
3056
- _DataChannelBufferedAmountLowThresholdChanged.fields = proto2.util.newFieldList(() => [
3057
- { no: 1, name: "kind", kind: "enum", T: proto2.getEnumType(DataPacketKind), req: true },
3058
- { no: 2, name: "threshold", kind: "scalar", T: 4, req: true }
3059
- ]);
3060
- let DataChannelBufferedAmountLowThresholdChanged = _DataChannelBufferedAmountLowThresholdChanged;
3061
- const _ByteStreamOpened = class _ByteStreamOpened extends Message {
3062
- constructor(data) {
3063
- super();
3064
- proto2.util.initPartial(data, this);
3065
- }
3066
- static fromBinary(bytes, options) {
3067
- return new _ByteStreamOpened().fromBinary(bytes, options);
3068
- }
3069
- static fromJson(jsonValue, options) {
3070
- return new _ByteStreamOpened().fromJson(jsonValue, options);
3071
- }
3072
- static fromJsonString(jsonString, options) {
3073
- return new _ByteStreamOpened().fromJsonString(jsonString, options);
3074
- }
3075
- static equals(a, b) {
3076
- return proto2.util.equals(_ByteStreamOpened, a, b);
3077
- }
3078
- };
3079
- _ByteStreamOpened.runtime = proto2;
3080
- _ByteStreamOpened.typeName = "livekit.proto.ByteStreamOpened";
3081
- _ByteStreamOpened.fields = proto2.util.newFieldList(() => [
3082
- { no: 1, name: "reader", kind: "message", T: OwnedByteStreamReader, req: true },
3083
- { no: 2, name: "participant_identity", kind: "scalar", T: 9, req: true }
3084
- ]);
3085
- let ByteStreamOpened = _ByteStreamOpened;
3086
- const _TextStreamOpened = class _TextStreamOpened extends Message {
3087
- constructor(data) {
3088
- super();
3089
- proto2.util.initPartial(data, this);
3090
- }
3091
- static fromBinary(bytes, options) {
3092
- return new _TextStreamOpened().fromBinary(bytes, options);
3093
- }
3094
- static fromJson(jsonValue, options) {
3095
- return new _TextStreamOpened().fromJson(jsonValue, options);
3096
- }
3097
- static fromJsonString(jsonString, options) {
3098
- return new _TextStreamOpened().fromJsonString(jsonString, options);
3099
- }
3100
- static equals(a, b) {
3101
- return proto2.util.equals(_TextStreamOpened, a, b);
3102
- }
3103
- };
3104
- _TextStreamOpened.runtime = proto2;
3105
- _TextStreamOpened.typeName = "livekit.proto.TextStreamOpened";
3106
- _TextStreamOpened.fields = proto2.util.newFieldList(() => [
3107
- { no: 1, name: "reader", kind: "message", T: OwnedTextStreamReader, req: true },
3108
- { no: 2, name: "participant_identity", kind: "scalar", T: 9, req: true }
3109
- ]);
3110
- let TextStreamOpened = _TextStreamOpened;
3111
- export {
3112
- ActiveSpeakersChanged,
3113
- AttributesEntry,
3114
- AudioEncoding,
3115
- BufferInfo,
3116
- ByteStreamOpened,
3117
- ChatMessage,
3118
- ChatMessageReceived,
3119
- ConnectCallback,
3120
- ConnectCallback_ParticipantWithTracks,
3121
- ConnectCallback_Result,
3122
- ConnectRequest,
3123
- ConnectResponse,
3124
- Connected,
3125
- ConnectionQuality,
3126
- ConnectionQualityChanged,
3127
- ConnectionState,
3128
- ConnectionStateChanged,
3129
- ContinualGatheringPolicy,
3130
- DataChannelBufferedAmountLowThresholdChanged,
3131
- DataPacketKind,
3132
- DataPacketReceived,
3133
- DataStream,
3134
- DataStreamChunkReceived,
3135
- DataStreamHeaderReceived,
3136
- DataStreamTrailerReceived,
3137
- DataStream_ByteHeader,
3138
- DataStream_Chunk,
3139
- DataStream_Header,
3140
- DataStream_OperationType,
3141
- DataStream_TextHeader,
3142
- DataStream_Trailer,
3143
- DisconnectCallback,
3144
- DisconnectRequest,
3145
- DisconnectResponse,
3146
- Disconnected,
3147
- E2eeStateChanged,
3148
- EditChatMessageRequest,
3149
- GetSessionStatsCallback,
3150
- GetSessionStatsCallback_Result,
3151
- GetSessionStatsRequest,
3152
- GetSessionStatsResponse,
3153
- IceServer,
3154
- IceTransportType,
3155
- LocalTrackPublished,
3156
- LocalTrackSubscribed,
3157
- LocalTrackUnpublished,
3158
- OwnedBuffer,
3159
- OwnedRoom,
3160
- ParticipantAttributesChanged,
3161
- ParticipantConnected,
3162
- ParticipantDisconnected,
3163
- ParticipantEncryptionStatusChanged,
3164
- ParticipantMetadataChanged,
3165
- ParticipantNameChanged,
3166
- ParticipantsUpdated,
3167
- PublishDataCallback,
3168
- PublishDataRequest,
3169
- PublishDataResponse,
3170
- PublishSipDtmfCallback,
3171
- PublishSipDtmfRequest,
3172
- PublishSipDtmfResponse,
3173
- PublishTrackCallback,
3174
- PublishTrackRequest,
3175
- PublishTrackResponse,
3176
- PublishTranscriptionCallback,
3177
- PublishTranscriptionRequest,
3178
- PublishTranscriptionResponse,
3179
- Reconnected,
3180
- Reconnecting,
3181
- RoomEOS,
3182
- RoomEvent,
3183
- RoomInfo,
3184
- RoomMetadataChanged,
3185
- RoomOptions,
3186
- RoomSidChanged,
3187
- RtcConfig,
3188
- SendChatMessageCallback,
3189
- SendChatMessageRequest,
3190
- SendChatMessageResponse,
3191
- SendStreamChunkCallback,
3192
- SendStreamChunkRequest,
3193
- SendStreamChunkResponse,
3194
- SendStreamHeaderCallback,
3195
- SendStreamHeaderRequest,
3196
- SendStreamHeaderResponse,
3197
- SendStreamTrailerCallback,
3198
- SendStreamTrailerRequest,
3199
- SendStreamTrailerResponse,
3200
- SetDataChannelBufferedAmountLowThresholdRequest,
3201
- SetDataChannelBufferedAmountLowThresholdResponse,
3202
- SetLocalAttributesCallback,
3203
- SetLocalAttributesRequest,
3204
- SetLocalAttributesResponse,
3205
- SetLocalMetadataCallback,
3206
- SetLocalMetadataRequest,
3207
- SetLocalMetadataResponse,
3208
- SetLocalNameCallback,
3209
- SetLocalNameRequest,
3210
- SetLocalNameResponse,
3211
- SetSubscribedRequest,
3212
- SetSubscribedResponse,
3213
- SipDTMF,
3214
- TextStreamOpened,
3215
- TokenRefreshed,
3216
- TrackMuted,
3217
- TrackPublishOptions,
3218
- TrackPublished,
3219
- TrackSubscribed,
3220
- TrackSubscriptionFailed,
3221
- TrackUnmuted,
3222
- TrackUnpublished,
3223
- TrackUnsubscribed,
3224
- TranscriptionReceived,
3225
- TranscriptionSegment,
3226
- UnpublishTrackCallback,
3227
- UnpublishTrackRequest,
3228
- UnpublishTrackResponse,
3229
- UserPacket,
3230
- VideoEncoding
3231
- };
3232
- //# sourceMappingURL=room_pb.js.map