@livekit/rtc-node 0.13.24 → 0.13.26

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 (283) 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 +9 -5
  6. package/dist/audio_frame.cjs.map +1 -1
  7. package/dist/audio_frame.d.cts +2 -7
  8. package/dist/audio_frame.d.ts +2 -7
  9. package/dist/audio_frame.d.ts.map +1 -1
  10. package/dist/audio_frame.js +8 -4
  11. package/dist/audio_frame.js.map +1 -1
  12. package/dist/audio_mixer.cjs +10 -4
  13. package/dist/audio_mixer.cjs.map +1 -1
  14. package/dist/audio_mixer.d.cts +4 -7
  15. package/dist/audio_mixer.d.ts +4 -7
  16. package/dist/audio_mixer.d.ts.map +1 -1
  17. package/dist/audio_mixer.js +10 -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 +16 -6
  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 +15 -5
  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 +30 -15
  63. package/dist/ffi_client.cjs.map +1 -1
  64. package/dist/ffi_client.d.cts +6 -17
  65. package/dist/ffi_client.d.ts +6 -17
  66. package/dist/ffi_client.d.ts.map +1 -1
  67. package/dist/ffi_client.js +24 -6
  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/participant.cjs +146 -101
  84. package/dist/participant.cjs.map +1 -1
  85. package/dist/participant.d.cts +4 -16
  86. package/dist/participant.d.ts +4 -16
  87. package/dist/participant.d.ts.map +1 -1
  88. package/dist/participant.js +120 -75
  89. package/dist/participant.js.map +1 -1
  90. package/dist/room.cjs +116 -58
  91. package/dist/room.cjs.map +1 -1
  92. package/dist/room.d.cts +6 -15
  93. package/dist/room.d.ts +6 -15
  94. package/dist/room.d.ts.map +1 -1
  95. package/dist/room.js +113 -55
  96. package/dist/room.js.map +1 -1
  97. package/dist/rpc.cjs.map +1 -1
  98. package/dist/rpc.d.cts +1 -2
  99. package/dist/rpc.d.ts +1 -2
  100. package/dist/rpc.d.ts.map +1 -1
  101. package/dist/rpc.js.map +1 -1
  102. package/dist/{stream_reader-Ch2zvjU3.d.cts → stream_reader-CuG4b8Y-.d.cts} +1 -1
  103. package/dist/{stream_reader-DRyR29vo.d.ts → stream_reader-CuG4b8Y-.d.ts} +1 -1
  104. package/dist/track.cjs +3 -3
  105. package/dist/track.cjs.map +1 -1
  106. package/dist/track.d.cts +1 -14
  107. package/dist/track.d.ts +1 -14
  108. package/dist/track.d.ts.map +1 -1
  109. package/dist/track.js +1 -1
  110. package/dist/track.js.map +1 -1
  111. package/dist/track_publication.cjs +4 -4
  112. package/dist/track_publication.cjs.map +1 -1
  113. package/dist/track_publication.d.cts +1 -14
  114. package/dist/track_publication.d.ts +1 -14
  115. package/dist/track_publication.d.ts.map +1 -1
  116. package/dist/track_publication.js +2 -2
  117. package/dist/track_publication.js.map +1 -1
  118. package/dist/version.cjs +1 -1
  119. package/dist/version.cjs.map +1 -1
  120. package/dist/version.d.cts +1 -1
  121. package/dist/version.d.ts +1 -1
  122. package/dist/version.js +1 -1
  123. package/dist/version.js.map +1 -1
  124. package/dist/video_frame.cjs +42 -42
  125. package/dist/video_frame.cjs.map +1 -1
  126. package/dist/video_frame.d.cts +1 -6
  127. package/dist/video_frame.d.ts +1 -6
  128. package/dist/video_frame.d.ts.map +1 -1
  129. package/dist/video_frame.js +2 -2
  130. package/dist/video_frame.js.map +1 -1
  131. package/dist/video_source.cjs +5 -5
  132. package/dist/video_source.cjs.map +1 -1
  133. package/dist/video_source.d.cts +1 -14
  134. package/dist/video_source.d.ts +1 -14
  135. package/dist/video_source.d.ts.map +1 -1
  136. package/dist/video_source.js +2 -2
  137. package/dist/video_source.js.map +1 -1
  138. package/dist/video_stream.cjs +12 -4
  139. package/dist/video_stream.cjs.map +1 -1
  140. package/dist/video_stream.d.cts +1 -14
  141. package/dist/video_stream.d.ts +1 -14
  142. package/dist/video_stream.d.ts.map +1 -1
  143. package/dist/video_stream.js +10 -2
  144. package/dist/video_stream.js.map +1 -1
  145. package/package.json +7 -37
  146. package/src/audio_filter.ts +2 -2
  147. package/src/audio_frame.ts +17 -5
  148. package/src/audio_mixer.test.ts +102 -0
  149. package/src/audio_mixer.ts +10 -4
  150. package/src/audio_resampler.ts +14 -4
  151. package/src/audio_source.ts +13 -5
  152. package/src/audio_stream.ts +21 -6
  153. package/src/data_streams/stream_reader.ts +19 -1
  154. package/src/data_streams/types.ts +1 -1
  155. package/src/e2ee.ts +3 -3
  156. package/src/ffi_client.ts +33 -8
  157. package/src/frame_processor.ts +21 -0
  158. package/src/index.ts +6 -5
  159. package/src/participant.ts +117 -66
  160. package/src/room.ts +161 -69
  161. package/src/rpc.ts +1 -1
  162. package/src/tests/e2e.test.ts +179 -8
  163. package/src/track.ts +4 -4
  164. package/src/track_publication.ts +6 -6
  165. package/src/version.ts +1 -1
  166. package/src/video_frame.ts +3 -3
  167. package/src/video_source.ts +3 -3
  168. package/src/video_stream.ts +15 -3
  169. package/Cargo.toml +0 -25
  170. package/build.rs +0 -9
  171. package/dist/napi/native.cjs +0 -301
  172. package/dist/napi/native.d.cjs +0 -17
  173. package/dist/napi/native.d.cjs.map +0 -1
  174. package/dist/napi/native.d.d.cts +0 -21
  175. package/dist/napi/native.d.d.ts +0 -21
  176. package/dist/napi/native.d.js +0 -1
  177. package/dist/napi/native.d.js.map +0 -1
  178. package/dist/napi/native.d.ts +0 -19
  179. package/dist/napi/native.js +0 -15
  180. package/dist/native.cjs +0 -301
  181. package/dist/native.d.ts +0 -19
  182. package/dist/native.js +0 -15
  183. package/dist/proto/audio_frame_pb.cjs +0 -1357
  184. package/dist/proto/audio_frame_pb.cjs.map +0 -1
  185. package/dist/proto/audio_frame_pb.d.cts +0 -1183
  186. package/dist/proto/audio_frame_pb.d.ts +0 -1183
  187. package/dist/proto/audio_frame_pb.d.ts.map +0 -1
  188. package/dist/proto/audio_frame_pb.js +0 -1283
  189. package/dist/proto/audio_frame_pb.js.map +0 -1
  190. package/dist/proto/data_stream_pb.cjs +0 -1638
  191. package/dist/proto/data_stream_pb.cjs.map +0 -1
  192. package/dist/proto/data_stream_pb.d.cts +0 -1449
  193. package/dist/proto/data_stream_pb.d.ts +0 -1449
  194. package/dist/proto/data_stream_pb.d.ts.map +0 -1
  195. package/dist/proto/data_stream_pb.js +0 -1559
  196. package/dist/proto/data_stream_pb.js.map +0 -1
  197. package/dist/proto/e2ee_pb.cjs +0 -746
  198. package/dist/proto/e2ee_pb.cjs.map +0 -1
  199. package/dist/proto/e2ee_pb.d.cts +0 -653
  200. package/dist/proto/e2ee_pb.d.ts +0 -653
  201. package/dist/proto/e2ee_pb.d.ts.map +0 -1
  202. package/dist/proto/e2ee_pb.js +0 -696
  203. package/dist/proto/e2ee_pb.js.map +0 -1
  204. package/dist/proto/ffi_pb.cjs +0 -477
  205. package/dist/proto/ffi_pb.cjs.map +0 -1
  206. package/dist/proto/ffi_pb.d.cts +0 -1321
  207. package/dist/proto/ffi_pb.d.ts +0 -1321
  208. package/dist/proto/ffi_pb.d.ts.map +0 -1
  209. package/dist/proto/ffi_pb.js +0 -444
  210. package/dist/proto/ffi_pb.js.map +0 -1
  211. package/dist/proto/handle_pb.cjs +0 -53
  212. package/dist/proto/handle_pb.cjs.map +0 -1
  213. package/dist/proto/handle_pb.d.cts +0 -31
  214. package/dist/proto/handle_pb.d.ts +0 -31
  215. package/dist/proto/handle_pb.d.ts.map +0 -1
  216. package/dist/proto/handle_pb.js +0 -29
  217. package/dist/proto/handle_pb.js.map +0 -1
  218. package/dist/proto/participant_pb.cjs +0 -173
  219. package/dist/proto/participant_pb.cjs.map +0 -1
  220. package/dist/proto/participant_pb.d.cts +0 -218
  221. package/dist/proto/participant_pb.d.ts +0 -218
  222. package/dist/proto/participant_pb.d.ts.map +0 -1
  223. package/dist/proto/participant_pb.js +0 -145
  224. package/dist/proto/participant_pb.js.map +0 -1
  225. package/dist/proto/room_pb.cjs +0 -3374
  226. package/dist/proto/room_pb.cjs.map +0 -1
  227. package/dist/proto/room_pb.d.cts +0 -3028
  228. package/dist/proto/room_pb.d.ts +0 -3028
  229. package/dist/proto/room_pb.d.ts.map +0 -1
  230. package/dist/proto/room_pb.js +0 -3232
  231. package/dist/proto/room_pb.js.map +0 -1
  232. package/dist/proto/rpc_pb.cjs +0 -328
  233. package/dist/proto/rpc_pb.cjs.map +0 -1
  234. package/dist/proto/rpc_pb.d.cts +0 -267
  235. package/dist/proto/rpc_pb.d.ts +0 -267
  236. package/dist/proto/rpc_pb.d.ts.map +0 -1
  237. package/dist/proto/rpc_pb.js +0 -294
  238. package/dist/proto/rpc_pb.js.map +0 -1
  239. package/dist/proto/stats_pb.cjs +0 -1370
  240. package/dist/proto/stats_pb.cjs.map +0 -1
  241. package/dist/proto/stats_pb.d.cts +0 -1764
  242. package/dist/proto/stats_pb.d.ts +0 -1764
  243. package/dist/proto/stats_pb.d.ts.map +0 -1
  244. package/dist/proto/stats_pb.js +0 -1300
  245. package/dist/proto/stats_pb.js.map +0 -1
  246. package/dist/proto/track_pb.cjs +0 -630
  247. package/dist/proto/track_pb.cjs.map +0 -1
  248. package/dist/proto/track_pb.d.cts +0 -542
  249. package/dist/proto/track_pb.d.ts +0 -542
  250. package/dist/proto/track_pb.d.ts.map +0 -1
  251. package/dist/proto/track_pb.js +0 -584
  252. package/dist/proto/track_pb.js.map +0 -1
  253. package/dist/proto/track_publication_pb.cjs +0 -194
  254. package/dist/proto/track_publication_pb.cjs.map +0 -1
  255. package/dist/proto/track_publication_pb.d.cts +0 -135
  256. package/dist/proto/track_publication_pb.d.ts +0 -135
  257. package/dist/proto/track_publication_pb.d.ts.map +0 -1
  258. package/dist/proto/track_publication_pb.js +0 -164
  259. package/dist/proto/track_publication_pb.js.map +0 -1
  260. package/dist/proto/video_frame_pb.cjs +0 -723
  261. package/dist/proto/video_frame_pb.cjs.map +0 -1
  262. package/dist/proto/video_frame_pb.d.cts +0 -667
  263. package/dist/proto/video_frame_pb.d.ts +0 -667
  264. package/dist/proto/video_frame_pb.d.ts.map +0 -1
  265. package/dist/proto/video_frame_pb.js +0 -673
  266. package/dist/proto/video_frame_pb.js.map +0 -1
  267. package/src/lib.rs +0 -9
  268. package/src/napi/native.cjs +0 -301
  269. package/src/napi/native.d.ts +0 -19
  270. package/src/napi/native.js +0 -15
  271. package/src/nodejs.rs +0 -134
  272. package/src/proto/audio_frame_pb.ts +0 -2270
  273. package/src/proto/data_stream_pb.ts +0 -2674
  274. package/src/proto/e2ee_pb.ts +0 -1231
  275. package/src/proto/ffi_pb.ts +0 -1700
  276. package/src/proto/handle_pb.ts +0 -69
  277. package/src/proto/participant_pb.ts +0 -351
  278. package/src/proto/room_pb.ts +0 -5661
  279. package/src/proto/rpc_pb.ts +0 -539
  280. package/src/proto/stats_pb.ts +0 -3050
  281. package/src/proto/track_pb.ts +0 -1040
  282. package/src/proto/track_publication_pb.ts +0 -284
  283. package/src/proto/video_frame_pb.ts +0 -1236
@@ -1,1559 +0,0 @@
1
- import { Message, proto2 } from "@bufbuild/protobuf";
2
- import { FfiOwnedHandle } from "./handle_pb.js";
3
- import { EncryptionType } from "./e2ee_pb.js";
4
- const _OwnedTextStreamReader = class _OwnedTextStreamReader extends Message {
5
- constructor(data) {
6
- super();
7
- proto2.util.initPartial(data, this);
8
- }
9
- static fromBinary(bytes, options) {
10
- return new _OwnedTextStreamReader().fromBinary(bytes, options);
11
- }
12
- static fromJson(jsonValue, options) {
13
- return new _OwnedTextStreamReader().fromJson(jsonValue, options);
14
- }
15
- static fromJsonString(jsonString, options) {
16
- return new _OwnedTextStreamReader().fromJsonString(jsonString, options);
17
- }
18
- static equals(a, b) {
19
- return proto2.util.equals(_OwnedTextStreamReader, a, b);
20
- }
21
- };
22
- _OwnedTextStreamReader.runtime = proto2;
23
- _OwnedTextStreamReader.typeName = "livekit.proto.OwnedTextStreamReader";
24
- _OwnedTextStreamReader.fields = proto2.util.newFieldList(() => [
25
- { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle, req: true },
26
- { no: 2, name: "info", kind: "message", T: TextStreamInfo, req: true }
27
- ]);
28
- let OwnedTextStreamReader = _OwnedTextStreamReader;
29
- const _TextStreamReaderReadIncrementalRequest = class _TextStreamReaderReadIncrementalRequest extends Message {
30
- constructor(data) {
31
- super();
32
- proto2.util.initPartial(data, this);
33
- }
34
- static fromBinary(bytes, options) {
35
- return new _TextStreamReaderReadIncrementalRequest().fromBinary(bytes, options);
36
- }
37
- static fromJson(jsonValue, options) {
38
- return new _TextStreamReaderReadIncrementalRequest().fromJson(jsonValue, options);
39
- }
40
- static fromJsonString(jsonString, options) {
41
- return new _TextStreamReaderReadIncrementalRequest().fromJsonString(jsonString, options);
42
- }
43
- static equals(a, b) {
44
- return proto2.util.equals(_TextStreamReaderReadIncrementalRequest, a, b);
45
- }
46
- };
47
- _TextStreamReaderReadIncrementalRequest.runtime = proto2;
48
- _TextStreamReaderReadIncrementalRequest.typeName = "livekit.proto.TextStreamReaderReadIncrementalRequest";
49
- _TextStreamReaderReadIncrementalRequest.fields = proto2.util.newFieldList(() => [
50
- { no: 1, name: "reader_handle", kind: "scalar", T: 4, req: true }
51
- ]);
52
- let TextStreamReaderReadIncrementalRequest = _TextStreamReaderReadIncrementalRequest;
53
- const _TextStreamReaderReadIncrementalResponse = class _TextStreamReaderReadIncrementalResponse extends Message {
54
- constructor(data) {
55
- super();
56
- proto2.util.initPartial(data, this);
57
- }
58
- static fromBinary(bytes, options) {
59
- return new _TextStreamReaderReadIncrementalResponse().fromBinary(bytes, options);
60
- }
61
- static fromJson(jsonValue, options) {
62
- return new _TextStreamReaderReadIncrementalResponse().fromJson(jsonValue, options);
63
- }
64
- static fromJsonString(jsonString, options) {
65
- return new _TextStreamReaderReadIncrementalResponse().fromJsonString(jsonString, options);
66
- }
67
- static equals(a, b) {
68
- return proto2.util.equals(_TextStreamReaderReadIncrementalResponse, a, b);
69
- }
70
- };
71
- _TextStreamReaderReadIncrementalResponse.runtime = proto2;
72
- _TextStreamReaderReadIncrementalResponse.typeName = "livekit.proto.TextStreamReaderReadIncrementalResponse";
73
- _TextStreamReaderReadIncrementalResponse.fields = proto2.util.newFieldList(() => []);
74
- let TextStreamReaderReadIncrementalResponse = _TextStreamReaderReadIncrementalResponse;
75
- const _TextStreamReaderReadAllRequest = class _TextStreamReaderReadAllRequest extends Message {
76
- constructor(data) {
77
- super();
78
- proto2.util.initPartial(data, this);
79
- }
80
- static fromBinary(bytes, options) {
81
- return new _TextStreamReaderReadAllRequest().fromBinary(bytes, options);
82
- }
83
- static fromJson(jsonValue, options) {
84
- return new _TextStreamReaderReadAllRequest().fromJson(jsonValue, options);
85
- }
86
- static fromJsonString(jsonString, options) {
87
- return new _TextStreamReaderReadAllRequest().fromJsonString(jsonString, options);
88
- }
89
- static equals(a, b) {
90
- return proto2.util.equals(_TextStreamReaderReadAllRequest, a, b);
91
- }
92
- };
93
- _TextStreamReaderReadAllRequest.runtime = proto2;
94
- _TextStreamReaderReadAllRequest.typeName = "livekit.proto.TextStreamReaderReadAllRequest";
95
- _TextStreamReaderReadAllRequest.fields = proto2.util.newFieldList(() => [
96
- { no: 1, name: "reader_handle", kind: "scalar", T: 4, req: true }
97
- ]);
98
- let TextStreamReaderReadAllRequest = _TextStreamReaderReadAllRequest;
99
- const _TextStreamReaderReadAllResponse = class _TextStreamReaderReadAllResponse extends Message {
100
- constructor(data) {
101
- super();
102
- proto2.util.initPartial(data, this);
103
- }
104
- static fromBinary(bytes, options) {
105
- return new _TextStreamReaderReadAllResponse().fromBinary(bytes, options);
106
- }
107
- static fromJson(jsonValue, options) {
108
- return new _TextStreamReaderReadAllResponse().fromJson(jsonValue, options);
109
- }
110
- static fromJsonString(jsonString, options) {
111
- return new _TextStreamReaderReadAllResponse().fromJsonString(jsonString, options);
112
- }
113
- static equals(a, b) {
114
- return proto2.util.equals(_TextStreamReaderReadAllResponse, a, b);
115
- }
116
- };
117
- _TextStreamReaderReadAllResponse.runtime = proto2;
118
- _TextStreamReaderReadAllResponse.typeName = "livekit.proto.TextStreamReaderReadAllResponse";
119
- _TextStreamReaderReadAllResponse.fields = proto2.util.newFieldList(() => [
120
- { no: 1, name: "async_id", kind: "scalar", T: 4, req: true }
121
- ]);
122
- let TextStreamReaderReadAllResponse = _TextStreamReaderReadAllResponse;
123
- const _TextStreamReaderReadAllCallback = class _TextStreamReaderReadAllCallback extends Message {
124
- constructor(data) {
125
- super();
126
- /**
127
- * @generated from oneof livekit.proto.TextStreamReaderReadAllCallback.result
128
- */
129
- this.result = { case: void 0 };
130
- proto2.util.initPartial(data, this);
131
- }
132
- static fromBinary(bytes, options) {
133
- return new _TextStreamReaderReadAllCallback().fromBinary(bytes, options);
134
- }
135
- static fromJson(jsonValue, options) {
136
- return new _TextStreamReaderReadAllCallback().fromJson(jsonValue, options);
137
- }
138
- static fromJsonString(jsonString, options) {
139
- return new _TextStreamReaderReadAllCallback().fromJsonString(jsonString, options);
140
- }
141
- static equals(a, b) {
142
- return proto2.util.equals(_TextStreamReaderReadAllCallback, a, b);
143
- }
144
- };
145
- _TextStreamReaderReadAllCallback.runtime = proto2;
146
- _TextStreamReaderReadAllCallback.typeName = "livekit.proto.TextStreamReaderReadAllCallback";
147
- _TextStreamReaderReadAllCallback.fields = proto2.util.newFieldList(() => [
148
- { no: 1, name: "async_id", kind: "scalar", T: 4, req: true },
149
- { no: 2, name: "content", kind: "scalar", T: 9, oneof: "result" },
150
- { no: 3, name: "error", kind: "message", T: StreamError, oneof: "result" }
151
- ]);
152
- let TextStreamReaderReadAllCallback = _TextStreamReaderReadAllCallback;
153
- const _TextStreamReaderEvent = class _TextStreamReaderEvent extends Message {
154
- constructor(data) {
155
- super();
156
- /**
157
- * @generated from oneof livekit.proto.TextStreamReaderEvent.detail
158
- */
159
- this.detail = { case: void 0 };
160
- proto2.util.initPartial(data, this);
161
- }
162
- static fromBinary(bytes, options) {
163
- return new _TextStreamReaderEvent().fromBinary(bytes, options);
164
- }
165
- static fromJson(jsonValue, options) {
166
- return new _TextStreamReaderEvent().fromJson(jsonValue, options);
167
- }
168
- static fromJsonString(jsonString, options) {
169
- return new _TextStreamReaderEvent().fromJsonString(jsonString, options);
170
- }
171
- static equals(a, b) {
172
- return proto2.util.equals(_TextStreamReaderEvent, a, b);
173
- }
174
- };
175
- _TextStreamReaderEvent.runtime = proto2;
176
- _TextStreamReaderEvent.typeName = "livekit.proto.TextStreamReaderEvent";
177
- _TextStreamReaderEvent.fields = proto2.util.newFieldList(() => [
178
- { no: 1, name: "reader_handle", kind: "scalar", T: 4, req: true },
179
- { no: 2, name: "chunk_received", kind: "message", T: TextStreamReaderChunkReceived, oneof: "detail" },
180
- { no: 3, name: "eos", kind: "message", T: TextStreamReaderEOS, oneof: "detail" }
181
- ]);
182
- let TextStreamReaderEvent = _TextStreamReaderEvent;
183
- const _TextStreamReaderChunkReceived = class _TextStreamReaderChunkReceived extends Message {
184
- constructor(data) {
185
- super();
186
- proto2.util.initPartial(data, this);
187
- }
188
- static fromBinary(bytes, options) {
189
- return new _TextStreamReaderChunkReceived().fromBinary(bytes, options);
190
- }
191
- static fromJson(jsonValue, options) {
192
- return new _TextStreamReaderChunkReceived().fromJson(jsonValue, options);
193
- }
194
- static fromJsonString(jsonString, options) {
195
- return new _TextStreamReaderChunkReceived().fromJsonString(jsonString, options);
196
- }
197
- static equals(a, b) {
198
- return proto2.util.equals(_TextStreamReaderChunkReceived, a, b);
199
- }
200
- };
201
- _TextStreamReaderChunkReceived.runtime = proto2;
202
- _TextStreamReaderChunkReceived.typeName = "livekit.proto.TextStreamReaderChunkReceived";
203
- _TextStreamReaderChunkReceived.fields = proto2.util.newFieldList(() => [
204
- { no: 1, name: "content", kind: "scalar", T: 9, req: true }
205
- ]);
206
- let TextStreamReaderChunkReceived = _TextStreamReaderChunkReceived;
207
- const _TextStreamReaderEOS = class _TextStreamReaderEOS extends Message {
208
- constructor(data) {
209
- super();
210
- proto2.util.initPartial(data, this);
211
- }
212
- static fromBinary(bytes, options) {
213
- return new _TextStreamReaderEOS().fromBinary(bytes, options);
214
- }
215
- static fromJson(jsonValue, options) {
216
- return new _TextStreamReaderEOS().fromJson(jsonValue, options);
217
- }
218
- static fromJsonString(jsonString, options) {
219
- return new _TextStreamReaderEOS().fromJsonString(jsonString, options);
220
- }
221
- static equals(a, b) {
222
- return proto2.util.equals(_TextStreamReaderEOS, a, b);
223
- }
224
- };
225
- _TextStreamReaderEOS.runtime = proto2;
226
- _TextStreamReaderEOS.typeName = "livekit.proto.TextStreamReaderEOS";
227
- _TextStreamReaderEOS.fields = proto2.util.newFieldList(() => [
228
- { no: 1, name: "error", kind: "message", T: StreamError, opt: true }
229
- ]);
230
- let TextStreamReaderEOS = _TextStreamReaderEOS;
231
- const _OwnedByteStreamReader = class _OwnedByteStreamReader extends Message {
232
- constructor(data) {
233
- super();
234
- proto2.util.initPartial(data, this);
235
- }
236
- static fromBinary(bytes, options) {
237
- return new _OwnedByteStreamReader().fromBinary(bytes, options);
238
- }
239
- static fromJson(jsonValue, options) {
240
- return new _OwnedByteStreamReader().fromJson(jsonValue, options);
241
- }
242
- static fromJsonString(jsonString, options) {
243
- return new _OwnedByteStreamReader().fromJsonString(jsonString, options);
244
- }
245
- static equals(a, b) {
246
- return proto2.util.equals(_OwnedByteStreamReader, a, b);
247
- }
248
- };
249
- _OwnedByteStreamReader.runtime = proto2;
250
- _OwnedByteStreamReader.typeName = "livekit.proto.OwnedByteStreamReader";
251
- _OwnedByteStreamReader.fields = proto2.util.newFieldList(() => [
252
- { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle, req: true },
253
- { no: 2, name: "info", kind: "message", T: ByteStreamInfo, req: true }
254
- ]);
255
- let OwnedByteStreamReader = _OwnedByteStreamReader;
256
- const _ByteStreamReaderReadIncrementalRequest = class _ByteStreamReaderReadIncrementalRequest extends Message {
257
- constructor(data) {
258
- super();
259
- proto2.util.initPartial(data, this);
260
- }
261
- static fromBinary(bytes, options) {
262
- return new _ByteStreamReaderReadIncrementalRequest().fromBinary(bytes, options);
263
- }
264
- static fromJson(jsonValue, options) {
265
- return new _ByteStreamReaderReadIncrementalRequest().fromJson(jsonValue, options);
266
- }
267
- static fromJsonString(jsonString, options) {
268
- return new _ByteStreamReaderReadIncrementalRequest().fromJsonString(jsonString, options);
269
- }
270
- static equals(a, b) {
271
- return proto2.util.equals(_ByteStreamReaderReadIncrementalRequest, a, b);
272
- }
273
- };
274
- _ByteStreamReaderReadIncrementalRequest.runtime = proto2;
275
- _ByteStreamReaderReadIncrementalRequest.typeName = "livekit.proto.ByteStreamReaderReadIncrementalRequest";
276
- _ByteStreamReaderReadIncrementalRequest.fields = proto2.util.newFieldList(() => [
277
- { no: 1, name: "reader_handle", kind: "scalar", T: 4, req: true }
278
- ]);
279
- let ByteStreamReaderReadIncrementalRequest = _ByteStreamReaderReadIncrementalRequest;
280
- const _ByteStreamReaderReadIncrementalResponse = class _ByteStreamReaderReadIncrementalResponse extends Message {
281
- constructor(data) {
282
- super();
283
- proto2.util.initPartial(data, this);
284
- }
285
- static fromBinary(bytes, options) {
286
- return new _ByteStreamReaderReadIncrementalResponse().fromBinary(bytes, options);
287
- }
288
- static fromJson(jsonValue, options) {
289
- return new _ByteStreamReaderReadIncrementalResponse().fromJson(jsonValue, options);
290
- }
291
- static fromJsonString(jsonString, options) {
292
- return new _ByteStreamReaderReadIncrementalResponse().fromJsonString(jsonString, options);
293
- }
294
- static equals(a, b) {
295
- return proto2.util.equals(_ByteStreamReaderReadIncrementalResponse, a, b);
296
- }
297
- };
298
- _ByteStreamReaderReadIncrementalResponse.runtime = proto2;
299
- _ByteStreamReaderReadIncrementalResponse.typeName = "livekit.proto.ByteStreamReaderReadIncrementalResponse";
300
- _ByteStreamReaderReadIncrementalResponse.fields = proto2.util.newFieldList(() => []);
301
- let ByteStreamReaderReadIncrementalResponse = _ByteStreamReaderReadIncrementalResponse;
302
- const _ByteStreamReaderReadAllRequest = class _ByteStreamReaderReadAllRequest extends Message {
303
- constructor(data) {
304
- super();
305
- proto2.util.initPartial(data, this);
306
- }
307
- static fromBinary(bytes, options) {
308
- return new _ByteStreamReaderReadAllRequest().fromBinary(bytes, options);
309
- }
310
- static fromJson(jsonValue, options) {
311
- return new _ByteStreamReaderReadAllRequest().fromJson(jsonValue, options);
312
- }
313
- static fromJsonString(jsonString, options) {
314
- return new _ByteStreamReaderReadAllRequest().fromJsonString(jsonString, options);
315
- }
316
- static equals(a, b) {
317
- return proto2.util.equals(_ByteStreamReaderReadAllRequest, a, b);
318
- }
319
- };
320
- _ByteStreamReaderReadAllRequest.runtime = proto2;
321
- _ByteStreamReaderReadAllRequest.typeName = "livekit.proto.ByteStreamReaderReadAllRequest";
322
- _ByteStreamReaderReadAllRequest.fields = proto2.util.newFieldList(() => [
323
- { no: 1, name: "reader_handle", kind: "scalar", T: 4, req: true }
324
- ]);
325
- let ByteStreamReaderReadAllRequest = _ByteStreamReaderReadAllRequest;
326
- const _ByteStreamReaderReadAllResponse = class _ByteStreamReaderReadAllResponse extends Message {
327
- constructor(data) {
328
- super();
329
- proto2.util.initPartial(data, this);
330
- }
331
- static fromBinary(bytes, options) {
332
- return new _ByteStreamReaderReadAllResponse().fromBinary(bytes, options);
333
- }
334
- static fromJson(jsonValue, options) {
335
- return new _ByteStreamReaderReadAllResponse().fromJson(jsonValue, options);
336
- }
337
- static fromJsonString(jsonString, options) {
338
- return new _ByteStreamReaderReadAllResponse().fromJsonString(jsonString, options);
339
- }
340
- static equals(a, b) {
341
- return proto2.util.equals(_ByteStreamReaderReadAllResponse, a, b);
342
- }
343
- };
344
- _ByteStreamReaderReadAllResponse.runtime = proto2;
345
- _ByteStreamReaderReadAllResponse.typeName = "livekit.proto.ByteStreamReaderReadAllResponse";
346
- _ByteStreamReaderReadAllResponse.fields = proto2.util.newFieldList(() => [
347
- { no: 1, name: "async_id", kind: "scalar", T: 4, req: true }
348
- ]);
349
- let ByteStreamReaderReadAllResponse = _ByteStreamReaderReadAllResponse;
350
- const _ByteStreamReaderReadAllCallback = class _ByteStreamReaderReadAllCallback extends Message {
351
- constructor(data) {
352
- super();
353
- /**
354
- * @generated from oneof livekit.proto.ByteStreamReaderReadAllCallback.result
355
- */
356
- this.result = { case: void 0 };
357
- proto2.util.initPartial(data, this);
358
- }
359
- static fromBinary(bytes, options) {
360
- return new _ByteStreamReaderReadAllCallback().fromBinary(bytes, options);
361
- }
362
- static fromJson(jsonValue, options) {
363
- return new _ByteStreamReaderReadAllCallback().fromJson(jsonValue, options);
364
- }
365
- static fromJsonString(jsonString, options) {
366
- return new _ByteStreamReaderReadAllCallback().fromJsonString(jsonString, options);
367
- }
368
- static equals(a, b) {
369
- return proto2.util.equals(_ByteStreamReaderReadAllCallback, a, b);
370
- }
371
- };
372
- _ByteStreamReaderReadAllCallback.runtime = proto2;
373
- _ByteStreamReaderReadAllCallback.typeName = "livekit.proto.ByteStreamReaderReadAllCallback";
374
- _ByteStreamReaderReadAllCallback.fields = proto2.util.newFieldList(() => [
375
- { no: 1, name: "async_id", kind: "scalar", T: 4, req: true },
376
- { no: 2, name: "content", kind: "scalar", T: 12, oneof: "result" },
377
- { no: 3, name: "error", kind: "message", T: StreamError, oneof: "result" }
378
- ]);
379
- let ByteStreamReaderReadAllCallback = _ByteStreamReaderReadAllCallback;
380
- const _ByteStreamReaderWriteToFileRequest = class _ByteStreamReaderWriteToFileRequest extends Message {
381
- constructor(data) {
382
- super();
383
- proto2.util.initPartial(data, this);
384
- }
385
- static fromBinary(bytes, options) {
386
- return new _ByteStreamReaderWriteToFileRequest().fromBinary(bytes, options);
387
- }
388
- static fromJson(jsonValue, options) {
389
- return new _ByteStreamReaderWriteToFileRequest().fromJson(jsonValue, options);
390
- }
391
- static fromJsonString(jsonString, options) {
392
- return new _ByteStreamReaderWriteToFileRequest().fromJsonString(jsonString, options);
393
- }
394
- static equals(a, b) {
395
- return proto2.util.equals(_ByteStreamReaderWriteToFileRequest, a, b);
396
- }
397
- };
398
- _ByteStreamReaderWriteToFileRequest.runtime = proto2;
399
- _ByteStreamReaderWriteToFileRequest.typeName = "livekit.proto.ByteStreamReaderWriteToFileRequest";
400
- _ByteStreamReaderWriteToFileRequest.fields = proto2.util.newFieldList(() => [
401
- { no: 1, name: "reader_handle", kind: "scalar", T: 4, req: true },
402
- { no: 3, name: "directory", kind: "scalar", T: 9, opt: true },
403
- { no: 4, name: "name_override", kind: "scalar", T: 9, opt: true }
404
- ]);
405
- let ByteStreamReaderWriteToFileRequest = _ByteStreamReaderWriteToFileRequest;
406
- const _ByteStreamReaderWriteToFileResponse = class _ByteStreamReaderWriteToFileResponse extends Message {
407
- constructor(data) {
408
- super();
409
- proto2.util.initPartial(data, this);
410
- }
411
- static fromBinary(bytes, options) {
412
- return new _ByteStreamReaderWriteToFileResponse().fromBinary(bytes, options);
413
- }
414
- static fromJson(jsonValue, options) {
415
- return new _ByteStreamReaderWriteToFileResponse().fromJson(jsonValue, options);
416
- }
417
- static fromJsonString(jsonString, options) {
418
- return new _ByteStreamReaderWriteToFileResponse().fromJsonString(jsonString, options);
419
- }
420
- static equals(a, b) {
421
- return proto2.util.equals(_ByteStreamReaderWriteToFileResponse, a, b);
422
- }
423
- };
424
- _ByteStreamReaderWriteToFileResponse.runtime = proto2;
425
- _ByteStreamReaderWriteToFileResponse.typeName = "livekit.proto.ByteStreamReaderWriteToFileResponse";
426
- _ByteStreamReaderWriteToFileResponse.fields = proto2.util.newFieldList(() => [
427
- { no: 1, name: "async_id", kind: "scalar", T: 4, req: true }
428
- ]);
429
- let ByteStreamReaderWriteToFileResponse = _ByteStreamReaderWriteToFileResponse;
430
- const _ByteStreamReaderWriteToFileCallback = class _ByteStreamReaderWriteToFileCallback extends Message {
431
- constructor(data) {
432
- super();
433
- /**
434
- * @generated from oneof livekit.proto.ByteStreamReaderWriteToFileCallback.result
435
- */
436
- this.result = { case: void 0 };
437
- proto2.util.initPartial(data, this);
438
- }
439
- static fromBinary(bytes, options) {
440
- return new _ByteStreamReaderWriteToFileCallback().fromBinary(bytes, options);
441
- }
442
- static fromJson(jsonValue, options) {
443
- return new _ByteStreamReaderWriteToFileCallback().fromJson(jsonValue, options);
444
- }
445
- static fromJsonString(jsonString, options) {
446
- return new _ByteStreamReaderWriteToFileCallback().fromJsonString(jsonString, options);
447
- }
448
- static equals(a, b) {
449
- return proto2.util.equals(_ByteStreamReaderWriteToFileCallback, a, b);
450
- }
451
- };
452
- _ByteStreamReaderWriteToFileCallback.runtime = proto2;
453
- _ByteStreamReaderWriteToFileCallback.typeName = "livekit.proto.ByteStreamReaderWriteToFileCallback";
454
- _ByteStreamReaderWriteToFileCallback.fields = proto2.util.newFieldList(() => [
455
- { no: 1, name: "async_id", kind: "scalar", T: 4, req: true },
456
- { no: 2, name: "file_path", kind: "scalar", T: 9, oneof: "result" },
457
- { no: 3, name: "error", kind: "message", T: StreamError, oneof: "result" }
458
- ]);
459
- let ByteStreamReaderWriteToFileCallback = _ByteStreamReaderWriteToFileCallback;
460
- const _ByteStreamReaderEvent = class _ByteStreamReaderEvent extends Message {
461
- constructor(data) {
462
- super();
463
- /**
464
- * @generated from oneof livekit.proto.ByteStreamReaderEvent.detail
465
- */
466
- this.detail = { case: void 0 };
467
- proto2.util.initPartial(data, this);
468
- }
469
- static fromBinary(bytes, options) {
470
- return new _ByteStreamReaderEvent().fromBinary(bytes, options);
471
- }
472
- static fromJson(jsonValue, options) {
473
- return new _ByteStreamReaderEvent().fromJson(jsonValue, options);
474
- }
475
- static fromJsonString(jsonString, options) {
476
- return new _ByteStreamReaderEvent().fromJsonString(jsonString, options);
477
- }
478
- static equals(a, b) {
479
- return proto2.util.equals(_ByteStreamReaderEvent, a, b);
480
- }
481
- };
482
- _ByteStreamReaderEvent.runtime = proto2;
483
- _ByteStreamReaderEvent.typeName = "livekit.proto.ByteStreamReaderEvent";
484
- _ByteStreamReaderEvent.fields = proto2.util.newFieldList(() => [
485
- { no: 1, name: "reader_handle", kind: "scalar", T: 4, req: true },
486
- { no: 2, name: "chunk_received", kind: "message", T: ByteStreamReaderChunkReceived, oneof: "detail" },
487
- { no: 3, name: "eos", kind: "message", T: ByteStreamReaderEOS, oneof: "detail" }
488
- ]);
489
- let ByteStreamReaderEvent = _ByteStreamReaderEvent;
490
- const _ByteStreamReaderChunkReceived = class _ByteStreamReaderChunkReceived extends Message {
491
- constructor(data) {
492
- super();
493
- proto2.util.initPartial(data, this);
494
- }
495
- static fromBinary(bytes, options) {
496
- return new _ByteStreamReaderChunkReceived().fromBinary(bytes, options);
497
- }
498
- static fromJson(jsonValue, options) {
499
- return new _ByteStreamReaderChunkReceived().fromJson(jsonValue, options);
500
- }
501
- static fromJsonString(jsonString, options) {
502
- return new _ByteStreamReaderChunkReceived().fromJsonString(jsonString, options);
503
- }
504
- static equals(a, b) {
505
- return proto2.util.equals(_ByteStreamReaderChunkReceived, a, b);
506
- }
507
- };
508
- _ByteStreamReaderChunkReceived.runtime = proto2;
509
- _ByteStreamReaderChunkReceived.typeName = "livekit.proto.ByteStreamReaderChunkReceived";
510
- _ByteStreamReaderChunkReceived.fields = proto2.util.newFieldList(() => [
511
- { no: 1, name: "content", kind: "scalar", T: 12, req: true }
512
- ]);
513
- let ByteStreamReaderChunkReceived = _ByteStreamReaderChunkReceived;
514
- const _ByteStreamReaderEOS = class _ByteStreamReaderEOS extends Message {
515
- constructor(data) {
516
- super();
517
- proto2.util.initPartial(data, this);
518
- }
519
- static fromBinary(bytes, options) {
520
- return new _ByteStreamReaderEOS().fromBinary(bytes, options);
521
- }
522
- static fromJson(jsonValue, options) {
523
- return new _ByteStreamReaderEOS().fromJson(jsonValue, options);
524
- }
525
- static fromJsonString(jsonString, options) {
526
- return new _ByteStreamReaderEOS().fromJsonString(jsonString, options);
527
- }
528
- static equals(a, b) {
529
- return proto2.util.equals(_ByteStreamReaderEOS, a, b);
530
- }
531
- };
532
- _ByteStreamReaderEOS.runtime = proto2;
533
- _ByteStreamReaderEOS.typeName = "livekit.proto.ByteStreamReaderEOS";
534
- _ByteStreamReaderEOS.fields = proto2.util.newFieldList(() => [
535
- { no: 1, name: "error", kind: "message", T: StreamError, opt: true }
536
- ]);
537
- let ByteStreamReaderEOS = _ByteStreamReaderEOS;
538
- const _StreamSendFileRequest = class _StreamSendFileRequest extends Message {
539
- constructor(data) {
540
- super();
541
- proto2.util.initPartial(data, this);
542
- }
543
- static fromBinary(bytes, options) {
544
- return new _StreamSendFileRequest().fromBinary(bytes, options);
545
- }
546
- static fromJson(jsonValue, options) {
547
- return new _StreamSendFileRequest().fromJson(jsonValue, options);
548
- }
549
- static fromJsonString(jsonString, options) {
550
- return new _StreamSendFileRequest().fromJsonString(jsonString, options);
551
- }
552
- static equals(a, b) {
553
- return proto2.util.equals(_StreamSendFileRequest, a, b);
554
- }
555
- };
556
- _StreamSendFileRequest.runtime = proto2;
557
- _StreamSendFileRequest.typeName = "livekit.proto.StreamSendFileRequest";
558
- _StreamSendFileRequest.fields = proto2.util.newFieldList(() => [
559
- { no: 1, name: "local_participant_handle", kind: "scalar", T: 4, req: true },
560
- { no: 2, name: "options", kind: "message", T: StreamByteOptions, req: true },
561
- { no: 3, name: "file_path", kind: "scalar", T: 9, req: true }
562
- ]);
563
- let StreamSendFileRequest = _StreamSendFileRequest;
564
- const _StreamSendFileResponse = class _StreamSendFileResponse extends Message {
565
- constructor(data) {
566
- super();
567
- proto2.util.initPartial(data, this);
568
- }
569
- static fromBinary(bytes, options) {
570
- return new _StreamSendFileResponse().fromBinary(bytes, options);
571
- }
572
- static fromJson(jsonValue, options) {
573
- return new _StreamSendFileResponse().fromJson(jsonValue, options);
574
- }
575
- static fromJsonString(jsonString, options) {
576
- return new _StreamSendFileResponse().fromJsonString(jsonString, options);
577
- }
578
- static equals(a, b) {
579
- return proto2.util.equals(_StreamSendFileResponse, a, b);
580
- }
581
- };
582
- _StreamSendFileResponse.runtime = proto2;
583
- _StreamSendFileResponse.typeName = "livekit.proto.StreamSendFileResponse";
584
- _StreamSendFileResponse.fields = proto2.util.newFieldList(() => [
585
- { no: 1, name: "async_id", kind: "scalar", T: 4, req: true }
586
- ]);
587
- let StreamSendFileResponse = _StreamSendFileResponse;
588
- const _StreamSendFileCallback = class _StreamSendFileCallback extends Message {
589
- constructor(data) {
590
- super();
591
- /**
592
- * @generated from oneof livekit.proto.StreamSendFileCallback.result
593
- */
594
- this.result = { case: void 0 };
595
- proto2.util.initPartial(data, this);
596
- }
597
- static fromBinary(bytes, options) {
598
- return new _StreamSendFileCallback().fromBinary(bytes, options);
599
- }
600
- static fromJson(jsonValue, options) {
601
- return new _StreamSendFileCallback().fromJson(jsonValue, options);
602
- }
603
- static fromJsonString(jsonString, options) {
604
- return new _StreamSendFileCallback().fromJsonString(jsonString, options);
605
- }
606
- static equals(a, b) {
607
- return proto2.util.equals(_StreamSendFileCallback, a, b);
608
- }
609
- };
610
- _StreamSendFileCallback.runtime = proto2;
611
- _StreamSendFileCallback.typeName = "livekit.proto.StreamSendFileCallback";
612
- _StreamSendFileCallback.fields = proto2.util.newFieldList(() => [
613
- { no: 1, name: "async_id", kind: "scalar", T: 4, req: true },
614
- { no: 2, name: "info", kind: "message", T: ByteStreamInfo, oneof: "result" },
615
- { no: 3, name: "error", kind: "message", T: StreamError, oneof: "result" }
616
- ]);
617
- let StreamSendFileCallback = _StreamSendFileCallback;
618
- const _StreamSendBytesRequest = class _StreamSendBytesRequest extends Message {
619
- constructor(data) {
620
- super();
621
- proto2.util.initPartial(data, this);
622
- }
623
- static fromBinary(bytes, options) {
624
- return new _StreamSendBytesRequest().fromBinary(bytes, options);
625
- }
626
- static fromJson(jsonValue, options) {
627
- return new _StreamSendBytesRequest().fromJson(jsonValue, options);
628
- }
629
- static fromJsonString(jsonString, options) {
630
- return new _StreamSendBytesRequest().fromJsonString(jsonString, options);
631
- }
632
- static equals(a, b) {
633
- return proto2.util.equals(_StreamSendBytesRequest, a, b);
634
- }
635
- };
636
- _StreamSendBytesRequest.runtime = proto2;
637
- _StreamSendBytesRequest.typeName = "livekit.proto.StreamSendBytesRequest";
638
- _StreamSendBytesRequest.fields = proto2.util.newFieldList(() => [
639
- { no: 1, name: "local_participant_handle", kind: "scalar", T: 4, req: true },
640
- { no: 2, name: "options", kind: "message", T: StreamByteOptions, req: true },
641
- { no: 3, name: "bytes", kind: "scalar", T: 12, req: true }
642
- ]);
643
- let StreamSendBytesRequest = _StreamSendBytesRequest;
644
- const _StreamSendBytesResponse = class _StreamSendBytesResponse extends Message {
645
- constructor(data) {
646
- super();
647
- proto2.util.initPartial(data, this);
648
- }
649
- static fromBinary(bytes, options) {
650
- return new _StreamSendBytesResponse().fromBinary(bytes, options);
651
- }
652
- static fromJson(jsonValue, options) {
653
- return new _StreamSendBytesResponse().fromJson(jsonValue, options);
654
- }
655
- static fromJsonString(jsonString, options) {
656
- return new _StreamSendBytesResponse().fromJsonString(jsonString, options);
657
- }
658
- static equals(a, b) {
659
- return proto2.util.equals(_StreamSendBytesResponse, a, b);
660
- }
661
- };
662
- _StreamSendBytesResponse.runtime = proto2;
663
- _StreamSendBytesResponse.typeName = "livekit.proto.StreamSendBytesResponse";
664
- _StreamSendBytesResponse.fields = proto2.util.newFieldList(() => [
665
- { no: 1, name: "async_id", kind: "scalar", T: 4, req: true }
666
- ]);
667
- let StreamSendBytesResponse = _StreamSendBytesResponse;
668
- const _StreamSendBytesCallback = class _StreamSendBytesCallback extends Message {
669
- constructor(data) {
670
- super();
671
- /**
672
- * @generated from oneof livekit.proto.StreamSendBytesCallback.result
673
- */
674
- this.result = { case: void 0 };
675
- proto2.util.initPartial(data, this);
676
- }
677
- static fromBinary(bytes, options) {
678
- return new _StreamSendBytesCallback().fromBinary(bytes, options);
679
- }
680
- static fromJson(jsonValue, options) {
681
- return new _StreamSendBytesCallback().fromJson(jsonValue, options);
682
- }
683
- static fromJsonString(jsonString, options) {
684
- return new _StreamSendBytesCallback().fromJsonString(jsonString, options);
685
- }
686
- static equals(a, b) {
687
- return proto2.util.equals(_StreamSendBytesCallback, a, b);
688
- }
689
- };
690
- _StreamSendBytesCallback.runtime = proto2;
691
- _StreamSendBytesCallback.typeName = "livekit.proto.StreamSendBytesCallback";
692
- _StreamSendBytesCallback.fields = proto2.util.newFieldList(() => [
693
- { no: 1, name: "async_id", kind: "scalar", T: 4, req: true },
694
- { no: 2, name: "info", kind: "message", T: ByteStreamInfo, oneof: "result" },
695
- { no: 3, name: "error", kind: "message", T: StreamError, oneof: "result" }
696
- ]);
697
- let StreamSendBytesCallback = _StreamSendBytesCallback;
698
- const _StreamSendTextRequest = class _StreamSendTextRequest extends Message {
699
- constructor(data) {
700
- super();
701
- proto2.util.initPartial(data, this);
702
- }
703
- static fromBinary(bytes, options) {
704
- return new _StreamSendTextRequest().fromBinary(bytes, options);
705
- }
706
- static fromJson(jsonValue, options) {
707
- return new _StreamSendTextRequest().fromJson(jsonValue, options);
708
- }
709
- static fromJsonString(jsonString, options) {
710
- return new _StreamSendTextRequest().fromJsonString(jsonString, options);
711
- }
712
- static equals(a, b) {
713
- return proto2.util.equals(_StreamSendTextRequest, a, b);
714
- }
715
- };
716
- _StreamSendTextRequest.runtime = proto2;
717
- _StreamSendTextRequest.typeName = "livekit.proto.StreamSendTextRequest";
718
- _StreamSendTextRequest.fields = proto2.util.newFieldList(() => [
719
- { no: 1, name: "local_participant_handle", kind: "scalar", T: 4, req: true },
720
- { no: 2, name: "options", kind: "message", T: StreamTextOptions, req: true },
721
- { no: 3, name: "text", kind: "scalar", T: 9, req: true }
722
- ]);
723
- let StreamSendTextRequest = _StreamSendTextRequest;
724
- const _StreamSendTextResponse = class _StreamSendTextResponse extends Message {
725
- constructor(data) {
726
- super();
727
- proto2.util.initPartial(data, this);
728
- }
729
- static fromBinary(bytes, options) {
730
- return new _StreamSendTextResponse().fromBinary(bytes, options);
731
- }
732
- static fromJson(jsonValue, options) {
733
- return new _StreamSendTextResponse().fromJson(jsonValue, options);
734
- }
735
- static fromJsonString(jsonString, options) {
736
- return new _StreamSendTextResponse().fromJsonString(jsonString, options);
737
- }
738
- static equals(a, b) {
739
- return proto2.util.equals(_StreamSendTextResponse, a, b);
740
- }
741
- };
742
- _StreamSendTextResponse.runtime = proto2;
743
- _StreamSendTextResponse.typeName = "livekit.proto.StreamSendTextResponse";
744
- _StreamSendTextResponse.fields = proto2.util.newFieldList(() => [
745
- { no: 1, name: "async_id", kind: "scalar", T: 4, req: true }
746
- ]);
747
- let StreamSendTextResponse = _StreamSendTextResponse;
748
- const _StreamSendTextCallback = class _StreamSendTextCallback extends Message {
749
- constructor(data) {
750
- super();
751
- /**
752
- * @generated from oneof livekit.proto.StreamSendTextCallback.result
753
- */
754
- this.result = { case: void 0 };
755
- proto2.util.initPartial(data, this);
756
- }
757
- static fromBinary(bytes, options) {
758
- return new _StreamSendTextCallback().fromBinary(bytes, options);
759
- }
760
- static fromJson(jsonValue, options) {
761
- return new _StreamSendTextCallback().fromJson(jsonValue, options);
762
- }
763
- static fromJsonString(jsonString, options) {
764
- return new _StreamSendTextCallback().fromJsonString(jsonString, options);
765
- }
766
- static equals(a, b) {
767
- return proto2.util.equals(_StreamSendTextCallback, a, b);
768
- }
769
- };
770
- _StreamSendTextCallback.runtime = proto2;
771
- _StreamSendTextCallback.typeName = "livekit.proto.StreamSendTextCallback";
772
- _StreamSendTextCallback.fields = proto2.util.newFieldList(() => [
773
- { no: 1, name: "async_id", kind: "scalar", T: 4, req: true },
774
- { no: 2, name: "info", kind: "message", T: TextStreamInfo, oneof: "result" },
775
- { no: 3, name: "error", kind: "message", T: StreamError, oneof: "result" }
776
- ]);
777
- let StreamSendTextCallback = _StreamSendTextCallback;
778
- const _OwnedByteStreamWriter = class _OwnedByteStreamWriter extends Message {
779
- constructor(data) {
780
- super();
781
- proto2.util.initPartial(data, this);
782
- }
783
- static fromBinary(bytes, options) {
784
- return new _OwnedByteStreamWriter().fromBinary(bytes, options);
785
- }
786
- static fromJson(jsonValue, options) {
787
- return new _OwnedByteStreamWriter().fromJson(jsonValue, options);
788
- }
789
- static fromJsonString(jsonString, options) {
790
- return new _OwnedByteStreamWriter().fromJsonString(jsonString, options);
791
- }
792
- static equals(a, b) {
793
- return proto2.util.equals(_OwnedByteStreamWriter, a, b);
794
- }
795
- };
796
- _OwnedByteStreamWriter.runtime = proto2;
797
- _OwnedByteStreamWriter.typeName = "livekit.proto.OwnedByteStreamWriter";
798
- _OwnedByteStreamWriter.fields = proto2.util.newFieldList(() => [
799
- { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle, req: true },
800
- { no: 2, name: "info", kind: "message", T: ByteStreamInfo, req: true }
801
- ]);
802
- let OwnedByteStreamWriter = _OwnedByteStreamWriter;
803
- const _ByteStreamOpenRequest = class _ByteStreamOpenRequest extends Message {
804
- constructor(data) {
805
- super();
806
- proto2.util.initPartial(data, this);
807
- }
808
- static fromBinary(bytes, options) {
809
- return new _ByteStreamOpenRequest().fromBinary(bytes, options);
810
- }
811
- static fromJson(jsonValue, options) {
812
- return new _ByteStreamOpenRequest().fromJson(jsonValue, options);
813
- }
814
- static fromJsonString(jsonString, options) {
815
- return new _ByteStreamOpenRequest().fromJsonString(jsonString, options);
816
- }
817
- static equals(a, b) {
818
- return proto2.util.equals(_ByteStreamOpenRequest, a, b);
819
- }
820
- };
821
- _ByteStreamOpenRequest.runtime = proto2;
822
- _ByteStreamOpenRequest.typeName = "livekit.proto.ByteStreamOpenRequest";
823
- _ByteStreamOpenRequest.fields = proto2.util.newFieldList(() => [
824
- { no: 1, name: "local_participant_handle", kind: "scalar", T: 4, req: true },
825
- { no: 2, name: "options", kind: "message", T: StreamByteOptions, req: true }
826
- ]);
827
- let ByteStreamOpenRequest = _ByteStreamOpenRequest;
828
- const _ByteStreamOpenResponse = class _ByteStreamOpenResponse extends Message {
829
- constructor(data) {
830
- super();
831
- proto2.util.initPartial(data, this);
832
- }
833
- static fromBinary(bytes, options) {
834
- return new _ByteStreamOpenResponse().fromBinary(bytes, options);
835
- }
836
- static fromJson(jsonValue, options) {
837
- return new _ByteStreamOpenResponse().fromJson(jsonValue, options);
838
- }
839
- static fromJsonString(jsonString, options) {
840
- return new _ByteStreamOpenResponse().fromJsonString(jsonString, options);
841
- }
842
- static equals(a, b) {
843
- return proto2.util.equals(_ByteStreamOpenResponse, a, b);
844
- }
845
- };
846
- _ByteStreamOpenResponse.runtime = proto2;
847
- _ByteStreamOpenResponse.typeName = "livekit.proto.ByteStreamOpenResponse";
848
- _ByteStreamOpenResponse.fields = proto2.util.newFieldList(() => [
849
- { no: 1, name: "async_id", kind: "scalar", T: 4, req: true }
850
- ]);
851
- let ByteStreamOpenResponse = _ByteStreamOpenResponse;
852
- const _ByteStreamOpenCallback = class _ByteStreamOpenCallback extends Message {
853
- constructor(data) {
854
- super();
855
- /**
856
- * @generated from oneof livekit.proto.ByteStreamOpenCallback.result
857
- */
858
- this.result = { case: void 0 };
859
- proto2.util.initPartial(data, this);
860
- }
861
- static fromBinary(bytes, options) {
862
- return new _ByteStreamOpenCallback().fromBinary(bytes, options);
863
- }
864
- static fromJson(jsonValue, options) {
865
- return new _ByteStreamOpenCallback().fromJson(jsonValue, options);
866
- }
867
- static fromJsonString(jsonString, options) {
868
- return new _ByteStreamOpenCallback().fromJsonString(jsonString, options);
869
- }
870
- static equals(a, b) {
871
- return proto2.util.equals(_ByteStreamOpenCallback, a, b);
872
- }
873
- };
874
- _ByteStreamOpenCallback.runtime = proto2;
875
- _ByteStreamOpenCallback.typeName = "livekit.proto.ByteStreamOpenCallback";
876
- _ByteStreamOpenCallback.fields = proto2.util.newFieldList(() => [
877
- { no: 1, name: "async_id", kind: "scalar", T: 4, req: true },
878
- { no: 2, name: "writer", kind: "message", T: OwnedByteStreamWriter, oneof: "result" },
879
- { no: 3, name: "error", kind: "message", T: StreamError, oneof: "result" }
880
- ]);
881
- let ByteStreamOpenCallback = _ByteStreamOpenCallback;
882
- const _ByteStreamWriterWriteRequest = class _ByteStreamWriterWriteRequest extends Message {
883
- constructor(data) {
884
- super();
885
- proto2.util.initPartial(data, this);
886
- }
887
- static fromBinary(bytes, options) {
888
- return new _ByteStreamWriterWriteRequest().fromBinary(bytes, options);
889
- }
890
- static fromJson(jsonValue, options) {
891
- return new _ByteStreamWriterWriteRequest().fromJson(jsonValue, options);
892
- }
893
- static fromJsonString(jsonString, options) {
894
- return new _ByteStreamWriterWriteRequest().fromJsonString(jsonString, options);
895
- }
896
- static equals(a, b) {
897
- return proto2.util.equals(_ByteStreamWriterWriteRequest, a, b);
898
- }
899
- };
900
- _ByteStreamWriterWriteRequest.runtime = proto2;
901
- _ByteStreamWriterWriteRequest.typeName = "livekit.proto.ByteStreamWriterWriteRequest";
902
- _ByteStreamWriterWriteRequest.fields = proto2.util.newFieldList(() => [
903
- { no: 1, name: "writer_handle", kind: "scalar", T: 4, req: true },
904
- { no: 2, name: "bytes", kind: "scalar", T: 12, req: true }
905
- ]);
906
- let ByteStreamWriterWriteRequest = _ByteStreamWriterWriteRequest;
907
- const _ByteStreamWriterWriteResponse = class _ByteStreamWriterWriteResponse extends Message {
908
- constructor(data) {
909
- super();
910
- proto2.util.initPartial(data, this);
911
- }
912
- static fromBinary(bytes, options) {
913
- return new _ByteStreamWriterWriteResponse().fromBinary(bytes, options);
914
- }
915
- static fromJson(jsonValue, options) {
916
- return new _ByteStreamWriterWriteResponse().fromJson(jsonValue, options);
917
- }
918
- static fromJsonString(jsonString, options) {
919
- return new _ByteStreamWriterWriteResponse().fromJsonString(jsonString, options);
920
- }
921
- static equals(a, b) {
922
- return proto2.util.equals(_ByteStreamWriterWriteResponse, a, b);
923
- }
924
- };
925
- _ByteStreamWriterWriteResponse.runtime = proto2;
926
- _ByteStreamWriterWriteResponse.typeName = "livekit.proto.ByteStreamWriterWriteResponse";
927
- _ByteStreamWriterWriteResponse.fields = proto2.util.newFieldList(() => [
928
- { no: 1, name: "async_id", kind: "scalar", T: 4, req: true }
929
- ]);
930
- let ByteStreamWriterWriteResponse = _ByteStreamWriterWriteResponse;
931
- const _ByteStreamWriterWriteCallback = class _ByteStreamWriterWriteCallback extends Message {
932
- constructor(data) {
933
- super();
934
- proto2.util.initPartial(data, this);
935
- }
936
- static fromBinary(bytes, options) {
937
- return new _ByteStreamWriterWriteCallback().fromBinary(bytes, options);
938
- }
939
- static fromJson(jsonValue, options) {
940
- return new _ByteStreamWriterWriteCallback().fromJson(jsonValue, options);
941
- }
942
- static fromJsonString(jsonString, options) {
943
- return new _ByteStreamWriterWriteCallback().fromJsonString(jsonString, options);
944
- }
945
- static equals(a, b) {
946
- return proto2.util.equals(_ByteStreamWriterWriteCallback, a, b);
947
- }
948
- };
949
- _ByteStreamWriterWriteCallback.runtime = proto2;
950
- _ByteStreamWriterWriteCallback.typeName = "livekit.proto.ByteStreamWriterWriteCallback";
951
- _ByteStreamWriterWriteCallback.fields = proto2.util.newFieldList(() => [
952
- { no: 1, name: "async_id", kind: "scalar", T: 4, req: true },
953
- { no: 2, name: "error", kind: "message", T: StreamError, opt: true }
954
- ]);
955
- let ByteStreamWriterWriteCallback = _ByteStreamWriterWriteCallback;
956
- const _ByteStreamWriterCloseRequest = class _ByteStreamWriterCloseRequest extends Message {
957
- constructor(data) {
958
- super();
959
- proto2.util.initPartial(data, this);
960
- }
961
- static fromBinary(bytes, options) {
962
- return new _ByteStreamWriterCloseRequest().fromBinary(bytes, options);
963
- }
964
- static fromJson(jsonValue, options) {
965
- return new _ByteStreamWriterCloseRequest().fromJson(jsonValue, options);
966
- }
967
- static fromJsonString(jsonString, options) {
968
- return new _ByteStreamWriterCloseRequest().fromJsonString(jsonString, options);
969
- }
970
- static equals(a, b) {
971
- return proto2.util.equals(_ByteStreamWriterCloseRequest, a, b);
972
- }
973
- };
974
- _ByteStreamWriterCloseRequest.runtime = proto2;
975
- _ByteStreamWriterCloseRequest.typeName = "livekit.proto.ByteStreamWriterCloseRequest";
976
- _ByteStreamWriterCloseRequest.fields = proto2.util.newFieldList(() => [
977
- { no: 1, name: "writer_handle", kind: "scalar", T: 4, req: true },
978
- { no: 2, name: "reason", kind: "scalar", T: 9, opt: true }
979
- ]);
980
- let ByteStreamWriterCloseRequest = _ByteStreamWriterCloseRequest;
981
- const _ByteStreamWriterCloseResponse = class _ByteStreamWriterCloseResponse extends Message {
982
- constructor(data) {
983
- super();
984
- proto2.util.initPartial(data, this);
985
- }
986
- static fromBinary(bytes, options) {
987
- return new _ByteStreamWriterCloseResponse().fromBinary(bytes, options);
988
- }
989
- static fromJson(jsonValue, options) {
990
- return new _ByteStreamWriterCloseResponse().fromJson(jsonValue, options);
991
- }
992
- static fromJsonString(jsonString, options) {
993
- return new _ByteStreamWriterCloseResponse().fromJsonString(jsonString, options);
994
- }
995
- static equals(a, b) {
996
- return proto2.util.equals(_ByteStreamWriterCloseResponse, a, b);
997
- }
998
- };
999
- _ByteStreamWriterCloseResponse.runtime = proto2;
1000
- _ByteStreamWriterCloseResponse.typeName = "livekit.proto.ByteStreamWriterCloseResponse";
1001
- _ByteStreamWriterCloseResponse.fields = proto2.util.newFieldList(() => [
1002
- { no: 1, name: "async_id", kind: "scalar", T: 4, req: true }
1003
- ]);
1004
- let ByteStreamWriterCloseResponse = _ByteStreamWriterCloseResponse;
1005
- const _ByteStreamWriterCloseCallback = class _ByteStreamWriterCloseCallback extends Message {
1006
- constructor(data) {
1007
- super();
1008
- proto2.util.initPartial(data, this);
1009
- }
1010
- static fromBinary(bytes, options) {
1011
- return new _ByteStreamWriterCloseCallback().fromBinary(bytes, options);
1012
- }
1013
- static fromJson(jsonValue, options) {
1014
- return new _ByteStreamWriterCloseCallback().fromJson(jsonValue, options);
1015
- }
1016
- static fromJsonString(jsonString, options) {
1017
- return new _ByteStreamWriterCloseCallback().fromJsonString(jsonString, options);
1018
- }
1019
- static equals(a, b) {
1020
- return proto2.util.equals(_ByteStreamWriterCloseCallback, a, b);
1021
- }
1022
- };
1023
- _ByteStreamWriterCloseCallback.runtime = proto2;
1024
- _ByteStreamWriterCloseCallback.typeName = "livekit.proto.ByteStreamWriterCloseCallback";
1025
- _ByteStreamWriterCloseCallback.fields = proto2.util.newFieldList(() => [
1026
- { no: 1, name: "async_id", kind: "scalar", T: 4, req: true },
1027
- { no: 2, name: "error", kind: "message", T: StreamError, opt: true }
1028
- ]);
1029
- let ByteStreamWriterCloseCallback = _ByteStreamWriterCloseCallback;
1030
- const _OwnedTextStreamWriter = class _OwnedTextStreamWriter extends Message {
1031
- constructor(data) {
1032
- super();
1033
- proto2.util.initPartial(data, this);
1034
- }
1035
- static fromBinary(bytes, options) {
1036
- return new _OwnedTextStreamWriter().fromBinary(bytes, options);
1037
- }
1038
- static fromJson(jsonValue, options) {
1039
- return new _OwnedTextStreamWriter().fromJson(jsonValue, options);
1040
- }
1041
- static fromJsonString(jsonString, options) {
1042
- return new _OwnedTextStreamWriter().fromJsonString(jsonString, options);
1043
- }
1044
- static equals(a, b) {
1045
- return proto2.util.equals(_OwnedTextStreamWriter, a, b);
1046
- }
1047
- };
1048
- _OwnedTextStreamWriter.runtime = proto2;
1049
- _OwnedTextStreamWriter.typeName = "livekit.proto.OwnedTextStreamWriter";
1050
- _OwnedTextStreamWriter.fields = proto2.util.newFieldList(() => [
1051
- { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle, req: true },
1052
- { no: 2, name: "info", kind: "message", T: TextStreamInfo, req: true }
1053
- ]);
1054
- let OwnedTextStreamWriter = _OwnedTextStreamWriter;
1055
- const _TextStreamOpenRequest = class _TextStreamOpenRequest extends Message {
1056
- constructor(data) {
1057
- super();
1058
- proto2.util.initPartial(data, this);
1059
- }
1060
- static fromBinary(bytes, options) {
1061
- return new _TextStreamOpenRequest().fromBinary(bytes, options);
1062
- }
1063
- static fromJson(jsonValue, options) {
1064
- return new _TextStreamOpenRequest().fromJson(jsonValue, options);
1065
- }
1066
- static fromJsonString(jsonString, options) {
1067
- return new _TextStreamOpenRequest().fromJsonString(jsonString, options);
1068
- }
1069
- static equals(a, b) {
1070
- return proto2.util.equals(_TextStreamOpenRequest, a, b);
1071
- }
1072
- };
1073
- _TextStreamOpenRequest.runtime = proto2;
1074
- _TextStreamOpenRequest.typeName = "livekit.proto.TextStreamOpenRequest";
1075
- _TextStreamOpenRequest.fields = proto2.util.newFieldList(() => [
1076
- { no: 1, name: "local_participant_handle", kind: "scalar", T: 4, req: true },
1077
- { no: 2, name: "options", kind: "message", T: StreamTextOptions, req: true }
1078
- ]);
1079
- let TextStreamOpenRequest = _TextStreamOpenRequest;
1080
- const _TextStreamOpenResponse = class _TextStreamOpenResponse extends Message {
1081
- constructor(data) {
1082
- super();
1083
- proto2.util.initPartial(data, this);
1084
- }
1085
- static fromBinary(bytes, options) {
1086
- return new _TextStreamOpenResponse().fromBinary(bytes, options);
1087
- }
1088
- static fromJson(jsonValue, options) {
1089
- return new _TextStreamOpenResponse().fromJson(jsonValue, options);
1090
- }
1091
- static fromJsonString(jsonString, options) {
1092
- return new _TextStreamOpenResponse().fromJsonString(jsonString, options);
1093
- }
1094
- static equals(a, b) {
1095
- return proto2.util.equals(_TextStreamOpenResponse, a, b);
1096
- }
1097
- };
1098
- _TextStreamOpenResponse.runtime = proto2;
1099
- _TextStreamOpenResponse.typeName = "livekit.proto.TextStreamOpenResponse";
1100
- _TextStreamOpenResponse.fields = proto2.util.newFieldList(() => [
1101
- { no: 1, name: "async_id", kind: "scalar", T: 4, req: true }
1102
- ]);
1103
- let TextStreamOpenResponse = _TextStreamOpenResponse;
1104
- const _TextStreamOpenCallback = class _TextStreamOpenCallback extends Message {
1105
- constructor(data) {
1106
- super();
1107
- /**
1108
- * @generated from oneof livekit.proto.TextStreamOpenCallback.result
1109
- */
1110
- this.result = { case: void 0 };
1111
- proto2.util.initPartial(data, this);
1112
- }
1113
- static fromBinary(bytes, options) {
1114
- return new _TextStreamOpenCallback().fromBinary(bytes, options);
1115
- }
1116
- static fromJson(jsonValue, options) {
1117
- return new _TextStreamOpenCallback().fromJson(jsonValue, options);
1118
- }
1119
- static fromJsonString(jsonString, options) {
1120
- return new _TextStreamOpenCallback().fromJsonString(jsonString, options);
1121
- }
1122
- static equals(a, b) {
1123
- return proto2.util.equals(_TextStreamOpenCallback, a, b);
1124
- }
1125
- };
1126
- _TextStreamOpenCallback.runtime = proto2;
1127
- _TextStreamOpenCallback.typeName = "livekit.proto.TextStreamOpenCallback";
1128
- _TextStreamOpenCallback.fields = proto2.util.newFieldList(() => [
1129
- { no: 1, name: "async_id", kind: "scalar", T: 4, req: true },
1130
- { no: 2, name: "writer", kind: "message", T: OwnedTextStreamWriter, oneof: "result" },
1131
- { no: 3, name: "error", kind: "message", T: StreamError, oneof: "result" }
1132
- ]);
1133
- let TextStreamOpenCallback = _TextStreamOpenCallback;
1134
- const _TextStreamWriterWriteRequest = class _TextStreamWriterWriteRequest extends Message {
1135
- constructor(data) {
1136
- super();
1137
- proto2.util.initPartial(data, this);
1138
- }
1139
- static fromBinary(bytes, options) {
1140
- return new _TextStreamWriterWriteRequest().fromBinary(bytes, options);
1141
- }
1142
- static fromJson(jsonValue, options) {
1143
- return new _TextStreamWriterWriteRequest().fromJson(jsonValue, options);
1144
- }
1145
- static fromJsonString(jsonString, options) {
1146
- return new _TextStreamWriterWriteRequest().fromJsonString(jsonString, options);
1147
- }
1148
- static equals(a, b) {
1149
- return proto2.util.equals(_TextStreamWriterWriteRequest, a, b);
1150
- }
1151
- };
1152
- _TextStreamWriterWriteRequest.runtime = proto2;
1153
- _TextStreamWriterWriteRequest.typeName = "livekit.proto.TextStreamWriterWriteRequest";
1154
- _TextStreamWriterWriteRequest.fields = proto2.util.newFieldList(() => [
1155
- { no: 1, name: "writer_handle", kind: "scalar", T: 4, req: true },
1156
- { no: 2, name: "text", kind: "scalar", T: 9, req: true }
1157
- ]);
1158
- let TextStreamWriterWriteRequest = _TextStreamWriterWriteRequest;
1159
- const _TextStreamWriterWriteResponse = class _TextStreamWriterWriteResponse extends Message {
1160
- constructor(data) {
1161
- super();
1162
- proto2.util.initPartial(data, this);
1163
- }
1164
- static fromBinary(bytes, options) {
1165
- return new _TextStreamWriterWriteResponse().fromBinary(bytes, options);
1166
- }
1167
- static fromJson(jsonValue, options) {
1168
- return new _TextStreamWriterWriteResponse().fromJson(jsonValue, options);
1169
- }
1170
- static fromJsonString(jsonString, options) {
1171
- return new _TextStreamWriterWriteResponse().fromJsonString(jsonString, options);
1172
- }
1173
- static equals(a, b) {
1174
- return proto2.util.equals(_TextStreamWriterWriteResponse, a, b);
1175
- }
1176
- };
1177
- _TextStreamWriterWriteResponse.runtime = proto2;
1178
- _TextStreamWriterWriteResponse.typeName = "livekit.proto.TextStreamWriterWriteResponse";
1179
- _TextStreamWriterWriteResponse.fields = proto2.util.newFieldList(() => [
1180
- { no: 1, name: "async_id", kind: "scalar", T: 4, req: true }
1181
- ]);
1182
- let TextStreamWriterWriteResponse = _TextStreamWriterWriteResponse;
1183
- const _TextStreamWriterWriteCallback = class _TextStreamWriterWriteCallback extends Message {
1184
- constructor(data) {
1185
- super();
1186
- proto2.util.initPartial(data, this);
1187
- }
1188
- static fromBinary(bytes, options) {
1189
- return new _TextStreamWriterWriteCallback().fromBinary(bytes, options);
1190
- }
1191
- static fromJson(jsonValue, options) {
1192
- return new _TextStreamWriterWriteCallback().fromJson(jsonValue, options);
1193
- }
1194
- static fromJsonString(jsonString, options) {
1195
- return new _TextStreamWriterWriteCallback().fromJsonString(jsonString, options);
1196
- }
1197
- static equals(a, b) {
1198
- return proto2.util.equals(_TextStreamWriterWriteCallback, a, b);
1199
- }
1200
- };
1201
- _TextStreamWriterWriteCallback.runtime = proto2;
1202
- _TextStreamWriterWriteCallback.typeName = "livekit.proto.TextStreamWriterWriteCallback";
1203
- _TextStreamWriterWriteCallback.fields = proto2.util.newFieldList(() => [
1204
- { no: 1, name: "async_id", kind: "scalar", T: 4, req: true },
1205
- { no: 2, name: "error", kind: "message", T: StreamError, opt: true }
1206
- ]);
1207
- let TextStreamWriterWriteCallback = _TextStreamWriterWriteCallback;
1208
- const _TextStreamWriterCloseRequest = class _TextStreamWriterCloseRequest extends Message {
1209
- constructor(data) {
1210
- super();
1211
- proto2.util.initPartial(data, this);
1212
- }
1213
- static fromBinary(bytes, options) {
1214
- return new _TextStreamWriterCloseRequest().fromBinary(bytes, options);
1215
- }
1216
- static fromJson(jsonValue, options) {
1217
- return new _TextStreamWriterCloseRequest().fromJson(jsonValue, options);
1218
- }
1219
- static fromJsonString(jsonString, options) {
1220
- return new _TextStreamWriterCloseRequest().fromJsonString(jsonString, options);
1221
- }
1222
- static equals(a, b) {
1223
- return proto2.util.equals(_TextStreamWriterCloseRequest, a, b);
1224
- }
1225
- };
1226
- _TextStreamWriterCloseRequest.runtime = proto2;
1227
- _TextStreamWriterCloseRequest.typeName = "livekit.proto.TextStreamWriterCloseRequest";
1228
- _TextStreamWriterCloseRequest.fields = proto2.util.newFieldList(() => [
1229
- { no: 1, name: "writer_handle", kind: "scalar", T: 4, req: true },
1230
- { no: 2, name: "reason", kind: "scalar", T: 9, opt: true }
1231
- ]);
1232
- let TextStreamWriterCloseRequest = _TextStreamWriterCloseRequest;
1233
- const _TextStreamWriterCloseResponse = class _TextStreamWriterCloseResponse extends Message {
1234
- constructor(data) {
1235
- super();
1236
- proto2.util.initPartial(data, this);
1237
- }
1238
- static fromBinary(bytes, options) {
1239
- return new _TextStreamWriterCloseResponse().fromBinary(bytes, options);
1240
- }
1241
- static fromJson(jsonValue, options) {
1242
- return new _TextStreamWriterCloseResponse().fromJson(jsonValue, options);
1243
- }
1244
- static fromJsonString(jsonString, options) {
1245
- return new _TextStreamWriterCloseResponse().fromJsonString(jsonString, options);
1246
- }
1247
- static equals(a, b) {
1248
- return proto2.util.equals(_TextStreamWriterCloseResponse, a, b);
1249
- }
1250
- };
1251
- _TextStreamWriterCloseResponse.runtime = proto2;
1252
- _TextStreamWriterCloseResponse.typeName = "livekit.proto.TextStreamWriterCloseResponse";
1253
- _TextStreamWriterCloseResponse.fields = proto2.util.newFieldList(() => [
1254
- { no: 1, name: "async_id", kind: "scalar", T: 4, req: true }
1255
- ]);
1256
- let TextStreamWriterCloseResponse = _TextStreamWriterCloseResponse;
1257
- const _TextStreamWriterCloseCallback = class _TextStreamWriterCloseCallback extends Message {
1258
- constructor(data) {
1259
- super();
1260
- proto2.util.initPartial(data, this);
1261
- }
1262
- static fromBinary(bytes, options) {
1263
- return new _TextStreamWriterCloseCallback().fromBinary(bytes, options);
1264
- }
1265
- static fromJson(jsonValue, options) {
1266
- return new _TextStreamWriterCloseCallback().fromJson(jsonValue, options);
1267
- }
1268
- static fromJsonString(jsonString, options) {
1269
- return new _TextStreamWriterCloseCallback().fromJsonString(jsonString, options);
1270
- }
1271
- static equals(a, b) {
1272
- return proto2.util.equals(_TextStreamWriterCloseCallback, a, b);
1273
- }
1274
- };
1275
- _TextStreamWriterCloseCallback.runtime = proto2;
1276
- _TextStreamWriterCloseCallback.typeName = "livekit.proto.TextStreamWriterCloseCallback";
1277
- _TextStreamWriterCloseCallback.fields = proto2.util.newFieldList(() => [
1278
- { no: 1, name: "async_id", kind: "scalar", T: 4, req: true },
1279
- { no: 2, name: "error", kind: "message", T: StreamError, opt: true }
1280
- ]);
1281
- let TextStreamWriterCloseCallback = _TextStreamWriterCloseCallback;
1282
- const _TextStreamInfo = class _TextStreamInfo extends Message {
1283
- constructor(data) {
1284
- super();
1285
- /**
1286
- * user defined attributes map that can carry additional info
1287
- *
1288
- * @generated from field: map<string, string> attributes = 6;
1289
- */
1290
- this.attributes = {};
1291
- /**
1292
- * file attachments for text streams
1293
- *
1294
- * @generated from field: repeated string attached_stream_ids = 10;
1295
- */
1296
- this.attachedStreamIds = [];
1297
- proto2.util.initPartial(data, this);
1298
- }
1299
- static fromBinary(bytes, options) {
1300
- return new _TextStreamInfo().fromBinary(bytes, options);
1301
- }
1302
- static fromJson(jsonValue, options) {
1303
- return new _TextStreamInfo().fromJson(jsonValue, options);
1304
- }
1305
- static fromJsonString(jsonString, options) {
1306
- return new _TextStreamInfo().fromJsonString(jsonString, options);
1307
- }
1308
- static equals(a, b) {
1309
- return proto2.util.equals(_TextStreamInfo, a, b);
1310
- }
1311
- };
1312
- _TextStreamInfo.runtime = proto2;
1313
- _TextStreamInfo.typeName = "livekit.proto.TextStreamInfo";
1314
- _TextStreamInfo.fields = proto2.util.newFieldList(() => [
1315
- { no: 1, name: "stream_id", kind: "scalar", T: 9, req: true },
1316
- { no: 2, name: "timestamp", kind: "scalar", T: 3, req: true },
1317
- { no: 3, name: "mime_type", kind: "scalar", T: 9, req: true },
1318
- { no: 4, name: "topic", kind: "scalar", T: 9, req: true },
1319
- { no: 5, name: "total_length", kind: "scalar", T: 4, opt: true },
1320
- { no: 6, name: "attributes", kind: "map", K: 9, V: {
1321
- kind: "scalar",
1322
- T: 9
1323
- /* ScalarType.STRING */
1324
- } },
1325
- { no: 7, name: "operation_type", kind: "enum", T: proto2.getEnumType(TextStreamInfo_OperationType), req: true },
1326
- { no: 8, name: "version", kind: "scalar", T: 5, opt: true },
1327
- { no: 9, name: "reply_to_stream_id", kind: "scalar", T: 9, opt: true },
1328
- { no: 10, name: "attached_stream_ids", kind: "scalar", T: 9, repeated: true },
1329
- { no: 11, name: "generated", kind: "scalar", T: 8, opt: true },
1330
- { no: 12, name: "encryption_type", kind: "enum", T: proto2.getEnumType(EncryptionType), req: true }
1331
- ]);
1332
- let TextStreamInfo = _TextStreamInfo;
1333
- var TextStreamInfo_OperationType = /* @__PURE__ */ ((TextStreamInfo_OperationType2) => {
1334
- TextStreamInfo_OperationType2[TextStreamInfo_OperationType2["CREATE"] = 0] = "CREATE";
1335
- TextStreamInfo_OperationType2[TextStreamInfo_OperationType2["UPDATE"] = 1] = "UPDATE";
1336
- TextStreamInfo_OperationType2[TextStreamInfo_OperationType2["DELETE"] = 2] = "DELETE";
1337
- TextStreamInfo_OperationType2[TextStreamInfo_OperationType2["REACTION"] = 3] = "REACTION";
1338
- return TextStreamInfo_OperationType2;
1339
- })(TextStreamInfo_OperationType || {});
1340
- proto2.util.setEnumType(TextStreamInfo_OperationType, "livekit.proto.TextStreamInfo.OperationType", [
1341
- { no: 0, name: "CREATE" },
1342
- { no: 1, name: "UPDATE" },
1343
- { no: 2, name: "DELETE" },
1344
- { no: 3, name: "REACTION" }
1345
- ]);
1346
- const _ByteStreamInfo = class _ByteStreamInfo extends Message {
1347
- constructor(data) {
1348
- super();
1349
- /**
1350
- * user defined attributes map that can carry additional info
1351
- *
1352
- * @generated from field: map<string, string> attributes = 6;
1353
- */
1354
- this.attributes = {};
1355
- proto2.util.initPartial(data, this);
1356
- }
1357
- static fromBinary(bytes, options) {
1358
- return new _ByteStreamInfo().fromBinary(bytes, options);
1359
- }
1360
- static fromJson(jsonValue, options) {
1361
- return new _ByteStreamInfo().fromJson(jsonValue, options);
1362
- }
1363
- static fromJsonString(jsonString, options) {
1364
- return new _ByteStreamInfo().fromJsonString(jsonString, options);
1365
- }
1366
- static equals(a, b) {
1367
- return proto2.util.equals(_ByteStreamInfo, a, b);
1368
- }
1369
- };
1370
- _ByteStreamInfo.runtime = proto2;
1371
- _ByteStreamInfo.typeName = "livekit.proto.ByteStreamInfo";
1372
- _ByteStreamInfo.fields = proto2.util.newFieldList(() => [
1373
- { no: 1, name: "stream_id", kind: "scalar", T: 9, req: true },
1374
- { no: 2, name: "timestamp", kind: "scalar", T: 3, req: true },
1375
- { no: 3, name: "mime_type", kind: "scalar", T: 9, req: true },
1376
- { no: 4, name: "topic", kind: "scalar", T: 9, req: true },
1377
- { no: 5, name: "total_length", kind: "scalar", T: 4, opt: true },
1378
- { no: 6, name: "attributes", kind: "map", K: 9, V: {
1379
- kind: "scalar",
1380
- T: 9
1381
- /* ScalarType.STRING */
1382
- } },
1383
- { no: 7, name: "name", kind: "scalar", T: 9, req: true },
1384
- { no: 8, name: "encryption_type", kind: "enum", T: proto2.getEnumType(EncryptionType), req: true }
1385
- ]);
1386
- let ByteStreamInfo = _ByteStreamInfo;
1387
- const _StreamTextOptions = class _StreamTextOptions extends Message {
1388
- constructor(data) {
1389
- super();
1390
- /**
1391
- * @generated from field: map<string, string> attributes = 2;
1392
- */
1393
- this.attributes = {};
1394
- /**
1395
- * @generated from field: repeated string destination_identities = 3;
1396
- */
1397
- this.destinationIdentities = [];
1398
- /**
1399
- * @generated from field: repeated string attached_stream_ids = 8;
1400
- */
1401
- this.attachedStreamIds = [];
1402
- proto2.util.initPartial(data, this);
1403
- }
1404
- static fromBinary(bytes, options) {
1405
- return new _StreamTextOptions().fromBinary(bytes, options);
1406
- }
1407
- static fromJson(jsonValue, options) {
1408
- return new _StreamTextOptions().fromJson(jsonValue, options);
1409
- }
1410
- static fromJsonString(jsonString, options) {
1411
- return new _StreamTextOptions().fromJsonString(jsonString, options);
1412
- }
1413
- static equals(a, b) {
1414
- return proto2.util.equals(_StreamTextOptions, a, b);
1415
- }
1416
- };
1417
- _StreamTextOptions.runtime = proto2;
1418
- _StreamTextOptions.typeName = "livekit.proto.StreamTextOptions";
1419
- _StreamTextOptions.fields = proto2.util.newFieldList(() => [
1420
- { no: 1, name: "topic", kind: "scalar", T: 9, req: true },
1421
- { no: 2, name: "attributes", kind: "map", K: 9, V: {
1422
- kind: "scalar",
1423
- T: 9
1424
- /* ScalarType.STRING */
1425
- } },
1426
- { no: 3, name: "destination_identities", kind: "scalar", T: 9, repeated: true },
1427
- { no: 4, name: "id", kind: "scalar", T: 9, opt: true },
1428
- { no: 5, name: "operation_type", kind: "enum", T: proto2.getEnumType(TextStreamInfo_OperationType), opt: true },
1429
- { no: 6, name: "version", kind: "scalar", T: 5, opt: true },
1430
- { no: 7, name: "reply_to_stream_id", kind: "scalar", T: 9, opt: true },
1431
- { no: 8, name: "attached_stream_ids", kind: "scalar", T: 9, repeated: true },
1432
- { no: 9, name: "generated", kind: "scalar", T: 8, opt: true }
1433
- ]);
1434
- let StreamTextOptions = _StreamTextOptions;
1435
- const _StreamByteOptions = class _StreamByteOptions extends Message {
1436
- constructor(data) {
1437
- super();
1438
- /**
1439
- * @generated from field: map<string, string> attributes = 2;
1440
- */
1441
- this.attributes = {};
1442
- /**
1443
- * @generated from field: repeated string destination_identities = 3;
1444
- */
1445
- this.destinationIdentities = [];
1446
- proto2.util.initPartial(data, this);
1447
- }
1448
- static fromBinary(bytes, options) {
1449
- return new _StreamByteOptions().fromBinary(bytes, options);
1450
- }
1451
- static fromJson(jsonValue, options) {
1452
- return new _StreamByteOptions().fromJson(jsonValue, options);
1453
- }
1454
- static fromJsonString(jsonString, options) {
1455
- return new _StreamByteOptions().fromJsonString(jsonString, options);
1456
- }
1457
- static equals(a, b) {
1458
- return proto2.util.equals(_StreamByteOptions, a, b);
1459
- }
1460
- };
1461
- _StreamByteOptions.runtime = proto2;
1462
- _StreamByteOptions.typeName = "livekit.proto.StreamByteOptions";
1463
- _StreamByteOptions.fields = proto2.util.newFieldList(() => [
1464
- { no: 1, name: "topic", kind: "scalar", T: 9, req: true },
1465
- { no: 2, name: "attributes", kind: "map", K: 9, V: {
1466
- kind: "scalar",
1467
- T: 9
1468
- /* ScalarType.STRING */
1469
- } },
1470
- { no: 3, name: "destination_identities", kind: "scalar", T: 9, repeated: true },
1471
- { no: 4, name: "id", kind: "scalar", T: 9, opt: true },
1472
- { no: 5, name: "name", kind: "scalar", T: 9, opt: true },
1473
- { no: 6, name: "mime_type", kind: "scalar", T: 9, opt: true },
1474
- { no: 7, name: "total_length", kind: "scalar", T: 4, opt: true }
1475
- ]);
1476
- let StreamByteOptions = _StreamByteOptions;
1477
- const _StreamError = class _StreamError extends Message {
1478
- constructor(data) {
1479
- super();
1480
- proto2.util.initPartial(data, this);
1481
- }
1482
- static fromBinary(bytes, options) {
1483
- return new _StreamError().fromBinary(bytes, options);
1484
- }
1485
- static fromJson(jsonValue, options) {
1486
- return new _StreamError().fromJson(jsonValue, options);
1487
- }
1488
- static fromJsonString(jsonString, options) {
1489
- return new _StreamError().fromJsonString(jsonString, options);
1490
- }
1491
- static equals(a, b) {
1492
- return proto2.util.equals(_StreamError, a, b);
1493
- }
1494
- };
1495
- _StreamError.runtime = proto2;
1496
- _StreamError.typeName = "livekit.proto.StreamError";
1497
- _StreamError.fields = proto2.util.newFieldList(() => [
1498
- { no: 1, name: "description", kind: "scalar", T: 9, req: true }
1499
- ]);
1500
- let StreamError = _StreamError;
1501
- export {
1502
- ByteStreamInfo,
1503
- ByteStreamOpenCallback,
1504
- ByteStreamOpenRequest,
1505
- ByteStreamOpenResponse,
1506
- ByteStreamReaderChunkReceived,
1507
- ByteStreamReaderEOS,
1508
- ByteStreamReaderEvent,
1509
- ByteStreamReaderReadAllCallback,
1510
- ByteStreamReaderReadAllRequest,
1511
- ByteStreamReaderReadAllResponse,
1512
- ByteStreamReaderReadIncrementalRequest,
1513
- ByteStreamReaderReadIncrementalResponse,
1514
- ByteStreamReaderWriteToFileCallback,
1515
- ByteStreamReaderWriteToFileRequest,
1516
- ByteStreamReaderWriteToFileResponse,
1517
- ByteStreamWriterCloseCallback,
1518
- ByteStreamWriterCloseRequest,
1519
- ByteStreamWriterCloseResponse,
1520
- ByteStreamWriterWriteCallback,
1521
- ByteStreamWriterWriteRequest,
1522
- ByteStreamWriterWriteResponse,
1523
- OwnedByteStreamReader,
1524
- OwnedByteStreamWriter,
1525
- OwnedTextStreamReader,
1526
- OwnedTextStreamWriter,
1527
- StreamByteOptions,
1528
- StreamError,
1529
- StreamSendBytesCallback,
1530
- StreamSendBytesRequest,
1531
- StreamSendBytesResponse,
1532
- StreamSendFileCallback,
1533
- StreamSendFileRequest,
1534
- StreamSendFileResponse,
1535
- StreamSendTextCallback,
1536
- StreamSendTextRequest,
1537
- StreamSendTextResponse,
1538
- StreamTextOptions,
1539
- TextStreamInfo,
1540
- TextStreamInfo_OperationType,
1541
- TextStreamOpenCallback,
1542
- TextStreamOpenRequest,
1543
- TextStreamOpenResponse,
1544
- TextStreamReaderChunkReceived,
1545
- TextStreamReaderEOS,
1546
- TextStreamReaderEvent,
1547
- TextStreamReaderReadAllCallback,
1548
- TextStreamReaderReadAllRequest,
1549
- TextStreamReaderReadAllResponse,
1550
- TextStreamReaderReadIncrementalRequest,
1551
- TextStreamReaderReadIncrementalResponse,
1552
- TextStreamWriterCloseCallback,
1553
- TextStreamWriterCloseRequest,
1554
- TextStreamWriterCloseResponse,
1555
- TextStreamWriterWriteCallback,
1556
- TextStreamWriterWriteRequest,
1557
- TextStreamWriterWriteResponse
1558
- };
1559
- //# sourceMappingURL=data_stream_pb.js.map