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