@livekit/rtc-node 0.13.24 → 0.13.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (283) hide show
  1. package/dist/audio_filter.cjs +2 -2
  2. package/dist/audio_filter.cjs.map +1 -1
  3. package/dist/audio_filter.js +1 -1
  4. package/dist/audio_filter.js.map +1 -1
  5. package/dist/audio_frame.cjs +9 -5
  6. package/dist/audio_frame.cjs.map +1 -1
  7. package/dist/audio_frame.d.cts +2 -7
  8. package/dist/audio_frame.d.ts +2 -7
  9. package/dist/audio_frame.d.ts.map +1 -1
  10. package/dist/audio_frame.js +8 -4
  11. package/dist/audio_frame.js.map +1 -1
  12. package/dist/audio_mixer.cjs +10 -4
  13. package/dist/audio_mixer.cjs.map +1 -1
  14. package/dist/audio_mixer.d.cts +4 -7
  15. package/dist/audio_mixer.d.ts +4 -7
  16. package/dist/audio_mixer.d.ts.map +1 -1
  17. package/dist/audio_mixer.js +10 -4
  18. package/dist/audio_mixer.js.map +1 -1
  19. package/dist/audio_resampler.cjs +20 -12
  20. package/dist/audio_resampler.cjs.map +1 -1
  21. package/dist/audio_resampler.d.cts +6 -6
  22. package/dist/audio_resampler.d.ts +6 -6
  23. package/dist/audio_resampler.d.ts.map +1 -1
  24. package/dist/audio_resampler.js +12 -4
  25. package/dist/audio_resampler.js.map +1 -1
  26. package/dist/audio_source.cjs +11 -7
  27. package/dist/audio_source.cjs.map +1 -1
  28. package/dist/audio_source.d.cts +1 -7
  29. package/dist/audio_source.d.ts +1 -7
  30. package/dist/audio_source.d.ts.map +1 -1
  31. package/dist/audio_source.js +8 -3
  32. package/dist/audio_source.js.map +1 -1
  33. package/dist/audio_stream.cjs +16 -6
  34. package/dist/audio_stream.cjs.map +1 -1
  35. package/dist/audio_stream.d.cts +1 -14
  36. package/dist/audio_stream.d.ts +1 -14
  37. package/dist/audio_stream.d.ts.map +1 -1
  38. package/dist/audio_stream.js +15 -5
  39. package/dist/audio_stream.js.map +1 -1
  40. package/dist/data_streams/index.d.cts +2 -10
  41. package/dist/data_streams/index.d.ts +2 -10
  42. package/dist/data_streams/stream_reader.cjs +8 -0
  43. package/dist/data_streams/stream_reader.cjs.map +1 -1
  44. package/dist/data_streams/stream_reader.d.cts +2 -10
  45. package/dist/data_streams/stream_reader.d.ts +2 -10
  46. package/dist/data_streams/stream_reader.d.ts.map +1 -1
  47. package/dist/data_streams/stream_reader.js +8 -0
  48. package/dist/data_streams/stream_reader.js.map +1 -1
  49. package/dist/data_streams/stream_writer.d.cts +2 -10
  50. package/dist/data_streams/stream_writer.d.ts +2 -10
  51. package/dist/data_streams/types.cjs.map +1 -1
  52. package/dist/data_streams/types.d.cts +2 -10
  53. package/dist/data_streams/types.d.ts +2 -10
  54. package/dist/data_streams/types.d.ts.map +1 -1
  55. package/dist/e2ee.cjs +21 -21
  56. package/dist/e2ee.cjs.map +1 -1
  57. package/dist/e2ee.d.cts +1 -2
  58. package/dist/e2ee.d.ts +1 -2
  59. package/dist/e2ee.d.ts.map +1 -1
  60. package/dist/e2ee.js +2 -2
  61. package/dist/e2ee.js.map +1 -1
  62. package/dist/ffi_client.cjs +30 -15
  63. package/dist/ffi_client.cjs.map +1 -1
  64. package/dist/ffi_client.d.cts +6 -17
  65. package/dist/ffi_client.d.ts +6 -17
  66. package/dist/ffi_client.d.ts.map +1 -1
  67. package/dist/ffi_client.js +24 -6
  68. package/dist/ffi_client.js.map +1 -1
  69. package/dist/frame_processor.cjs +13 -2
  70. package/dist/frame_processor.cjs.map +1 -1
  71. package/dist/frame_processor.d.cts +5 -8
  72. package/dist/frame_processor.d.ts +5 -8
  73. package/dist/frame_processor.d.ts.map +1 -1
  74. package/dist/frame_processor.js +10 -1
  75. package/dist/frame_processor.js.map +1 -1
  76. package/dist/index.cjs +25 -23
  77. package/dist/index.cjs.map +1 -1
  78. package/dist/index.d.cts +3 -16
  79. package/dist/index.d.ts +3 -16
  80. package/dist/index.d.ts.map +1 -1
  81. package/dist/index.js +9 -7
  82. package/dist/index.js.map +1 -1
  83. package/dist/participant.cjs +146 -101
  84. package/dist/participant.cjs.map +1 -1
  85. package/dist/participant.d.cts +4 -16
  86. package/dist/participant.d.ts +4 -16
  87. package/dist/participant.d.ts.map +1 -1
  88. package/dist/participant.js +120 -75
  89. package/dist/participant.js.map +1 -1
  90. package/dist/room.cjs +116 -58
  91. package/dist/room.cjs.map +1 -1
  92. package/dist/room.d.cts +6 -15
  93. package/dist/room.d.ts +6 -15
  94. package/dist/room.d.ts.map +1 -1
  95. package/dist/room.js +113 -55
  96. package/dist/room.js.map +1 -1
  97. package/dist/rpc.cjs.map +1 -1
  98. package/dist/rpc.d.cts +1 -2
  99. package/dist/rpc.d.ts +1 -2
  100. package/dist/rpc.d.ts.map +1 -1
  101. package/dist/rpc.js.map +1 -1
  102. package/dist/{stream_reader-Ch2zvjU3.d.cts → stream_reader-CuG4b8Y-.d.cts} +1 -1
  103. package/dist/{stream_reader-DRyR29vo.d.ts → stream_reader-CuG4b8Y-.d.ts} +1 -1
  104. package/dist/track.cjs +3 -3
  105. package/dist/track.cjs.map +1 -1
  106. package/dist/track.d.cts +1 -14
  107. package/dist/track.d.ts +1 -14
  108. package/dist/track.d.ts.map +1 -1
  109. package/dist/track.js +1 -1
  110. package/dist/track.js.map +1 -1
  111. package/dist/track_publication.cjs +4 -4
  112. package/dist/track_publication.cjs.map +1 -1
  113. package/dist/track_publication.d.cts +1 -14
  114. package/dist/track_publication.d.ts +1 -14
  115. package/dist/track_publication.d.ts.map +1 -1
  116. package/dist/track_publication.js +2 -2
  117. package/dist/track_publication.js.map +1 -1
  118. package/dist/version.cjs +1 -1
  119. package/dist/version.cjs.map +1 -1
  120. package/dist/version.d.cts +1 -1
  121. package/dist/version.d.ts +1 -1
  122. package/dist/version.js +1 -1
  123. package/dist/version.js.map +1 -1
  124. package/dist/video_frame.cjs +42 -42
  125. package/dist/video_frame.cjs.map +1 -1
  126. package/dist/video_frame.d.cts +1 -6
  127. package/dist/video_frame.d.ts +1 -6
  128. package/dist/video_frame.d.ts.map +1 -1
  129. package/dist/video_frame.js +2 -2
  130. package/dist/video_frame.js.map +1 -1
  131. package/dist/video_source.cjs +5 -5
  132. package/dist/video_source.cjs.map +1 -1
  133. package/dist/video_source.d.cts +1 -14
  134. package/dist/video_source.d.ts +1 -14
  135. package/dist/video_source.d.ts.map +1 -1
  136. package/dist/video_source.js +2 -2
  137. package/dist/video_source.js.map +1 -1
  138. package/dist/video_stream.cjs +12 -4
  139. package/dist/video_stream.cjs.map +1 -1
  140. package/dist/video_stream.d.cts +1 -14
  141. package/dist/video_stream.d.ts +1 -14
  142. package/dist/video_stream.d.ts.map +1 -1
  143. package/dist/video_stream.js +10 -2
  144. package/dist/video_stream.js.map +1 -1
  145. package/package.json +7 -37
  146. package/src/audio_filter.ts +2 -2
  147. package/src/audio_frame.ts +17 -5
  148. package/src/audio_mixer.test.ts +102 -0
  149. package/src/audio_mixer.ts +10 -4
  150. package/src/audio_resampler.ts +14 -4
  151. package/src/audio_source.ts +13 -5
  152. package/src/audio_stream.ts +21 -6
  153. package/src/data_streams/stream_reader.ts +19 -1
  154. package/src/data_streams/types.ts +1 -1
  155. package/src/e2ee.ts +3 -3
  156. package/src/ffi_client.ts +33 -8
  157. package/src/frame_processor.ts +21 -0
  158. package/src/index.ts +6 -5
  159. package/src/participant.ts +117 -66
  160. package/src/room.ts +161 -69
  161. package/src/rpc.ts +1 -1
  162. package/src/tests/e2e.test.ts +179 -8
  163. package/src/track.ts +4 -4
  164. package/src/track_publication.ts +6 -6
  165. package/src/version.ts +1 -1
  166. package/src/video_frame.ts +3 -3
  167. package/src/video_source.ts +3 -3
  168. package/src/video_stream.ts +15 -3
  169. package/Cargo.toml +0 -25
  170. package/build.rs +0 -9
  171. package/dist/napi/native.cjs +0 -301
  172. package/dist/napi/native.d.cjs +0 -17
  173. package/dist/napi/native.d.cjs.map +0 -1
  174. package/dist/napi/native.d.d.cts +0 -21
  175. package/dist/napi/native.d.d.ts +0 -21
  176. package/dist/napi/native.d.js +0 -1
  177. package/dist/napi/native.d.js.map +0 -1
  178. package/dist/napi/native.d.ts +0 -19
  179. package/dist/napi/native.js +0 -15
  180. package/dist/native.cjs +0 -301
  181. package/dist/native.d.ts +0 -19
  182. package/dist/native.js +0 -15
  183. package/dist/proto/audio_frame_pb.cjs +0 -1357
  184. package/dist/proto/audio_frame_pb.cjs.map +0 -1
  185. package/dist/proto/audio_frame_pb.d.cts +0 -1183
  186. package/dist/proto/audio_frame_pb.d.ts +0 -1183
  187. package/dist/proto/audio_frame_pb.d.ts.map +0 -1
  188. package/dist/proto/audio_frame_pb.js +0 -1283
  189. package/dist/proto/audio_frame_pb.js.map +0 -1
  190. package/dist/proto/data_stream_pb.cjs +0 -1638
  191. package/dist/proto/data_stream_pb.cjs.map +0 -1
  192. package/dist/proto/data_stream_pb.d.cts +0 -1449
  193. package/dist/proto/data_stream_pb.d.ts +0 -1449
  194. package/dist/proto/data_stream_pb.d.ts.map +0 -1
  195. package/dist/proto/data_stream_pb.js +0 -1559
  196. package/dist/proto/data_stream_pb.js.map +0 -1
  197. package/dist/proto/e2ee_pb.cjs +0 -746
  198. package/dist/proto/e2ee_pb.cjs.map +0 -1
  199. package/dist/proto/e2ee_pb.d.cts +0 -653
  200. package/dist/proto/e2ee_pb.d.ts +0 -653
  201. package/dist/proto/e2ee_pb.d.ts.map +0 -1
  202. package/dist/proto/e2ee_pb.js +0 -696
  203. package/dist/proto/e2ee_pb.js.map +0 -1
  204. package/dist/proto/ffi_pb.cjs +0 -477
  205. package/dist/proto/ffi_pb.cjs.map +0 -1
  206. package/dist/proto/ffi_pb.d.cts +0 -1321
  207. package/dist/proto/ffi_pb.d.ts +0 -1321
  208. package/dist/proto/ffi_pb.d.ts.map +0 -1
  209. package/dist/proto/ffi_pb.js +0 -444
  210. package/dist/proto/ffi_pb.js.map +0 -1
  211. package/dist/proto/handle_pb.cjs +0 -53
  212. package/dist/proto/handle_pb.cjs.map +0 -1
  213. package/dist/proto/handle_pb.d.cts +0 -31
  214. package/dist/proto/handle_pb.d.ts +0 -31
  215. package/dist/proto/handle_pb.d.ts.map +0 -1
  216. package/dist/proto/handle_pb.js +0 -29
  217. package/dist/proto/handle_pb.js.map +0 -1
  218. package/dist/proto/participant_pb.cjs +0 -173
  219. package/dist/proto/participant_pb.cjs.map +0 -1
  220. package/dist/proto/participant_pb.d.cts +0 -218
  221. package/dist/proto/participant_pb.d.ts +0 -218
  222. package/dist/proto/participant_pb.d.ts.map +0 -1
  223. package/dist/proto/participant_pb.js +0 -145
  224. package/dist/proto/participant_pb.js.map +0 -1
  225. package/dist/proto/room_pb.cjs +0 -3374
  226. package/dist/proto/room_pb.cjs.map +0 -1
  227. package/dist/proto/room_pb.d.cts +0 -3028
  228. package/dist/proto/room_pb.d.ts +0 -3028
  229. package/dist/proto/room_pb.d.ts.map +0 -1
  230. package/dist/proto/room_pb.js +0 -3232
  231. package/dist/proto/room_pb.js.map +0 -1
  232. package/dist/proto/rpc_pb.cjs +0 -328
  233. package/dist/proto/rpc_pb.cjs.map +0 -1
  234. package/dist/proto/rpc_pb.d.cts +0 -267
  235. package/dist/proto/rpc_pb.d.ts +0 -267
  236. package/dist/proto/rpc_pb.d.ts.map +0 -1
  237. package/dist/proto/rpc_pb.js +0 -294
  238. package/dist/proto/rpc_pb.js.map +0 -1
  239. package/dist/proto/stats_pb.cjs +0 -1370
  240. package/dist/proto/stats_pb.cjs.map +0 -1
  241. package/dist/proto/stats_pb.d.cts +0 -1764
  242. package/dist/proto/stats_pb.d.ts +0 -1764
  243. package/dist/proto/stats_pb.d.ts.map +0 -1
  244. package/dist/proto/stats_pb.js +0 -1300
  245. package/dist/proto/stats_pb.js.map +0 -1
  246. package/dist/proto/track_pb.cjs +0 -630
  247. package/dist/proto/track_pb.cjs.map +0 -1
  248. package/dist/proto/track_pb.d.cts +0 -542
  249. package/dist/proto/track_pb.d.ts +0 -542
  250. package/dist/proto/track_pb.d.ts.map +0 -1
  251. package/dist/proto/track_pb.js +0 -584
  252. package/dist/proto/track_pb.js.map +0 -1
  253. package/dist/proto/track_publication_pb.cjs +0 -194
  254. package/dist/proto/track_publication_pb.cjs.map +0 -1
  255. package/dist/proto/track_publication_pb.d.cts +0 -135
  256. package/dist/proto/track_publication_pb.d.ts +0 -135
  257. package/dist/proto/track_publication_pb.d.ts.map +0 -1
  258. package/dist/proto/track_publication_pb.js +0 -164
  259. package/dist/proto/track_publication_pb.js.map +0 -1
  260. package/dist/proto/video_frame_pb.cjs +0 -723
  261. package/dist/proto/video_frame_pb.cjs.map +0 -1
  262. package/dist/proto/video_frame_pb.d.cts +0 -667
  263. package/dist/proto/video_frame_pb.d.ts +0 -667
  264. package/dist/proto/video_frame_pb.d.ts.map +0 -1
  265. package/dist/proto/video_frame_pb.js +0 -673
  266. package/dist/proto/video_frame_pb.js.map +0 -1
  267. package/src/lib.rs +0 -9
  268. package/src/napi/native.cjs +0 -301
  269. package/src/napi/native.d.ts +0 -19
  270. package/src/napi/native.js +0 -15
  271. package/src/nodejs.rs +0 -134
  272. package/src/proto/audio_frame_pb.ts +0 -2270
  273. package/src/proto/data_stream_pb.ts +0 -2674
  274. package/src/proto/e2ee_pb.ts +0 -1231
  275. package/src/proto/ffi_pb.ts +0 -1700
  276. package/src/proto/handle_pb.ts +0 -69
  277. package/src/proto/participant_pb.ts +0 -351
  278. package/src/proto/room_pb.ts +0 -5661
  279. package/src/proto/rpc_pb.ts +0 -539
  280. package/src/proto/stats_pb.ts +0 -3050
  281. package/src/proto/track_pb.ts +0 -1040
  282. package/src/proto/track_publication_pb.ts +0 -284
  283. package/src/proto/video_frame_pb.ts +0 -1236
@@ -1,328 +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 rpc_pb_exports = {};
20
- __export(rpc_pb_exports, {
21
- PerformRpcCallback: () => PerformRpcCallback,
22
- PerformRpcRequest: () => PerformRpcRequest,
23
- PerformRpcResponse: () => PerformRpcResponse,
24
- RegisterRpcMethodRequest: () => RegisterRpcMethodRequest,
25
- RegisterRpcMethodResponse: () => RegisterRpcMethodResponse,
26
- RpcError: () => RpcError,
27
- RpcMethodInvocationEvent: () => RpcMethodInvocationEvent,
28
- RpcMethodInvocationResponseRequest: () => RpcMethodInvocationResponseRequest,
29
- RpcMethodInvocationResponseResponse: () => RpcMethodInvocationResponseResponse,
30
- UnregisterRpcMethodRequest: () => UnregisterRpcMethodRequest,
31
- UnregisterRpcMethodResponse: () => UnregisterRpcMethodResponse
32
- });
33
- module.exports = __toCommonJS(rpc_pb_exports);
34
- var import_protobuf = require("@bufbuild/protobuf");
35
- const _RpcError = class _RpcError extends import_protobuf.Message {
36
- constructor(data) {
37
- super();
38
- import_protobuf.proto2.util.initPartial(data, this);
39
- }
40
- static fromBinary(bytes, options) {
41
- return new _RpcError().fromBinary(bytes, options);
42
- }
43
- static fromJson(jsonValue, options) {
44
- return new _RpcError().fromJson(jsonValue, options);
45
- }
46
- static fromJsonString(jsonString, options) {
47
- return new _RpcError().fromJsonString(jsonString, options);
48
- }
49
- static equals(a, b) {
50
- return import_protobuf.proto2.util.equals(_RpcError, a, b);
51
- }
52
- };
53
- _RpcError.runtime = import_protobuf.proto2;
54
- _RpcError.typeName = "livekit.proto.RpcError";
55
- _RpcError.fields = import_protobuf.proto2.util.newFieldList(() => [
56
- { no: 1, name: "code", kind: "scalar", T: 13, req: true },
57
- { no: 2, name: "message", kind: "scalar", T: 9, req: true },
58
- { no: 3, name: "data", kind: "scalar", T: 9, opt: true }
59
- ]);
60
- let RpcError = _RpcError;
61
- const _PerformRpcRequest = class _PerformRpcRequest extends import_protobuf.Message {
62
- constructor(data) {
63
- super();
64
- import_protobuf.proto2.util.initPartial(data, this);
65
- }
66
- static fromBinary(bytes, options) {
67
- return new _PerformRpcRequest().fromBinary(bytes, options);
68
- }
69
- static fromJson(jsonValue, options) {
70
- return new _PerformRpcRequest().fromJson(jsonValue, options);
71
- }
72
- static fromJsonString(jsonString, options) {
73
- return new _PerformRpcRequest().fromJsonString(jsonString, options);
74
- }
75
- static equals(a, b) {
76
- return import_protobuf.proto2.util.equals(_PerformRpcRequest, a, b);
77
- }
78
- };
79
- _PerformRpcRequest.runtime = import_protobuf.proto2;
80
- _PerformRpcRequest.typeName = "livekit.proto.PerformRpcRequest";
81
- _PerformRpcRequest.fields = import_protobuf.proto2.util.newFieldList(() => [
82
- { no: 1, name: "local_participant_handle", kind: "scalar", T: 4, req: true },
83
- { no: 2, name: "destination_identity", kind: "scalar", T: 9, req: true },
84
- { no: 3, name: "method", kind: "scalar", T: 9, req: true },
85
- { no: 4, name: "payload", kind: "scalar", T: 9, req: true },
86
- { no: 5, name: "response_timeout_ms", kind: "scalar", T: 13, opt: true }
87
- ]);
88
- let PerformRpcRequest = _PerformRpcRequest;
89
- const _RegisterRpcMethodRequest = class _RegisterRpcMethodRequest extends import_protobuf.Message {
90
- constructor(data) {
91
- super();
92
- import_protobuf.proto2.util.initPartial(data, this);
93
- }
94
- static fromBinary(bytes, options) {
95
- return new _RegisterRpcMethodRequest().fromBinary(bytes, options);
96
- }
97
- static fromJson(jsonValue, options) {
98
- return new _RegisterRpcMethodRequest().fromJson(jsonValue, options);
99
- }
100
- static fromJsonString(jsonString, options) {
101
- return new _RegisterRpcMethodRequest().fromJsonString(jsonString, options);
102
- }
103
- static equals(a, b) {
104
- return import_protobuf.proto2.util.equals(_RegisterRpcMethodRequest, a, b);
105
- }
106
- };
107
- _RegisterRpcMethodRequest.runtime = import_protobuf.proto2;
108
- _RegisterRpcMethodRequest.typeName = "livekit.proto.RegisterRpcMethodRequest";
109
- _RegisterRpcMethodRequest.fields = import_protobuf.proto2.util.newFieldList(() => [
110
- { no: 1, name: "local_participant_handle", kind: "scalar", T: 4, req: true },
111
- { no: 2, name: "method", kind: "scalar", T: 9, req: true }
112
- ]);
113
- let RegisterRpcMethodRequest = _RegisterRpcMethodRequest;
114
- const _UnregisterRpcMethodRequest = class _UnregisterRpcMethodRequest extends import_protobuf.Message {
115
- constructor(data) {
116
- super();
117
- import_protobuf.proto2.util.initPartial(data, this);
118
- }
119
- static fromBinary(bytes, options) {
120
- return new _UnregisterRpcMethodRequest().fromBinary(bytes, options);
121
- }
122
- static fromJson(jsonValue, options) {
123
- return new _UnregisterRpcMethodRequest().fromJson(jsonValue, options);
124
- }
125
- static fromJsonString(jsonString, options) {
126
- return new _UnregisterRpcMethodRequest().fromJsonString(jsonString, options);
127
- }
128
- static equals(a, b) {
129
- return import_protobuf.proto2.util.equals(_UnregisterRpcMethodRequest, a, b);
130
- }
131
- };
132
- _UnregisterRpcMethodRequest.runtime = import_protobuf.proto2;
133
- _UnregisterRpcMethodRequest.typeName = "livekit.proto.UnregisterRpcMethodRequest";
134
- _UnregisterRpcMethodRequest.fields = import_protobuf.proto2.util.newFieldList(() => [
135
- { no: 1, name: "local_participant_handle", kind: "scalar", T: 4, req: true },
136
- { no: 2, name: "method", kind: "scalar", T: 9, req: true }
137
- ]);
138
- let UnregisterRpcMethodRequest = _UnregisterRpcMethodRequest;
139
- const _RpcMethodInvocationResponseRequest = class _RpcMethodInvocationResponseRequest extends import_protobuf.Message {
140
- constructor(data) {
141
- super();
142
- import_protobuf.proto2.util.initPartial(data, this);
143
- }
144
- static fromBinary(bytes, options) {
145
- return new _RpcMethodInvocationResponseRequest().fromBinary(bytes, options);
146
- }
147
- static fromJson(jsonValue, options) {
148
- return new _RpcMethodInvocationResponseRequest().fromJson(jsonValue, options);
149
- }
150
- static fromJsonString(jsonString, options) {
151
- return new _RpcMethodInvocationResponseRequest().fromJsonString(jsonString, options);
152
- }
153
- static equals(a, b) {
154
- return import_protobuf.proto2.util.equals(_RpcMethodInvocationResponseRequest, a, b);
155
- }
156
- };
157
- _RpcMethodInvocationResponseRequest.runtime = import_protobuf.proto2;
158
- _RpcMethodInvocationResponseRequest.typeName = "livekit.proto.RpcMethodInvocationResponseRequest";
159
- _RpcMethodInvocationResponseRequest.fields = import_protobuf.proto2.util.newFieldList(() => [
160
- { no: 1, name: "local_participant_handle", kind: "scalar", T: 4, req: true },
161
- { no: 2, name: "invocation_id", kind: "scalar", T: 4, req: true },
162
- { no: 3, name: "payload", kind: "scalar", T: 9, opt: true },
163
- { no: 4, name: "error", kind: "message", T: RpcError, opt: true }
164
- ]);
165
- let RpcMethodInvocationResponseRequest = _RpcMethodInvocationResponseRequest;
166
- const _PerformRpcResponse = class _PerformRpcResponse extends import_protobuf.Message {
167
- constructor(data) {
168
- super();
169
- import_protobuf.proto2.util.initPartial(data, this);
170
- }
171
- static fromBinary(bytes, options) {
172
- return new _PerformRpcResponse().fromBinary(bytes, options);
173
- }
174
- static fromJson(jsonValue, options) {
175
- return new _PerformRpcResponse().fromJson(jsonValue, options);
176
- }
177
- static fromJsonString(jsonString, options) {
178
- return new _PerformRpcResponse().fromJsonString(jsonString, options);
179
- }
180
- static equals(a, b) {
181
- return import_protobuf.proto2.util.equals(_PerformRpcResponse, a, b);
182
- }
183
- };
184
- _PerformRpcResponse.runtime = import_protobuf.proto2;
185
- _PerformRpcResponse.typeName = "livekit.proto.PerformRpcResponse";
186
- _PerformRpcResponse.fields = import_protobuf.proto2.util.newFieldList(() => [
187
- { no: 1, name: "async_id", kind: "scalar", T: 4, req: true }
188
- ]);
189
- let PerformRpcResponse = _PerformRpcResponse;
190
- const _RegisterRpcMethodResponse = class _RegisterRpcMethodResponse extends import_protobuf.Message {
191
- constructor(data) {
192
- super();
193
- import_protobuf.proto2.util.initPartial(data, this);
194
- }
195
- static fromBinary(bytes, options) {
196
- return new _RegisterRpcMethodResponse().fromBinary(bytes, options);
197
- }
198
- static fromJson(jsonValue, options) {
199
- return new _RegisterRpcMethodResponse().fromJson(jsonValue, options);
200
- }
201
- static fromJsonString(jsonString, options) {
202
- return new _RegisterRpcMethodResponse().fromJsonString(jsonString, options);
203
- }
204
- static equals(a, b) {
205
- return import_protobuf.proto2.util.equals(_RegisterRpcMethodResponse, a, b);
206
- }
207
- };
208
- _RegisterRpcMethodResponse.runtime = import_protobuf.proto2;
209
- _RegisterRpcMethodResponse.typeName = "livekit.proto.RegisterRpcMethodResponse";
210
- _RegisterRpcMethodResponse.fields = import_protobuf.proto2.util.newFieldList(() => []);
211
- let RegisterRpcMethodResponse = _RegisterRpcMethodResponse;
212
- const _UnregisterRpcMethodResponse = class _UnregisterRpcMethodResponse extends import_protobuf.Message {
213
- constructor(data) {
214
- super();
215
- import_protobuf.proto2.util.initPartial(data, this);
216
- }
217
- static fromBinary(bytes, options) {
218
- return new _UnregisterRpcMethodResponse().fromBinary(bytes, options);
219
- }
220
- static fromJson(jsonValue, options) {
221
- return new _UnregisterRpcMethodResponse().fromJson(jsonValue, options);
222
- }
223
- static fromJsonString(jsonString, options) {
224
- return new _UnregisterRpcMethodResponse().fromJsonString(jsonString, options);
225
- }
226
- static equals(a, b) {
227
- return import_protobuf.proto2.util.equals(_UnregisterRpcMethodResponse, a, b);
228
- }
229
- };
230
- _UnregisterRpcMethodResponse.runtime = import_protobuf.proto2;
231
- _UnregisterRpcMethodResponse.typeName = "livekit.proto.UnregisterRpcMethodResponse";
232
- _UnregisterRpcMethodResponse.fields = import_protobuf.proto2.util.newFieldList(() => []);
233
- let UnregisterRpcMethodResponse = _UnregisterRpcMethodResponse;
234
- const _RpcMethodInvocationResponseResponse = class _RpcMethodInvocationResponseResponse extends import_protobuf.Message {
235
- constructor(data) {
236
- super();
237
- import_protobuf.proto2.util.initPartial(data, this);
238
- }
239
- static fromBinary(bytes, options) {
240
- return new _RpcMethodInvocationResponseResponse().fromBinary(bytes, options);
241
- }
242
- static fromJson(jsonValue, options) {
243
- return new _RpcMethodInvocationResponseResponse().fromJson(jsonValue, options);
244
- }
245
- static fromJsonString(jsonString, options) {
246
- return new _RpcMethodInvocationResponseResponse().fromJsonString(jsonString, options);
247
- }
248
- static equals(a, b) {
249
- return import_protobuf.proto2.util.equals(_RpcMethodInvocationResponseResponse, a, b);
250
- }
251
- };
252
- _RpcMethodInvocationResponseResponse.runtime = import_protobuf.proto2;
253
- _RpcMethodInvocationResponseResponse.typeName = "livekit.proto.RpcMethodInvocationResponseResponse";
254
- _RpcMethodInvocationResponseResponse.fields = import_protobuf.proto2.util.newFieldList(() => [
255
- { no: 1, name: "error", kind: "scalar", T: 9, opt: true }
256
- ]);
257
- let RpcMethodInvocationResponseResponse = _RpcMethodInvocationResponseResponse;
258
- const _PerformRpcCallback = class _PerformRpcCallback extends import_protobuf.Message {
259
- constructor(data) {
260
- super();
261
- import_protobuf.proto2.util.initPartial(data, this);
262
- }
263
- static fromBinary(bytes, options) {
264
- return new _PerformRpcCallback().fromBinary(bytes, options);
265
- }
266
- static fromJson(jsonValue, options) {
267
- return new _PerformRpcCallback().fromJson(jsonValue, options);
268
- }
269
- static fromJsonString(jsonString, options) {
270
- return new _PerformRpcCallback().fromJsonString(jsonString, options);
271
- }
272
- static equals(a, b) {
273
- return import_protobuf.proto2.util.equals(_PerformRpcCallback, a, b);
274
- }
275
- };
276
- _PerformRpcCallback.runtime = import_protobuf.proto2;
277
- _PerformRpcCallback.typeName = "livekit.proto.PerformRpcCallback";
278
- _PerformRpcCallback.fields = import_protobuf.proto2.util.newFieldList(() => [
279
- { no: 1, name: "async_id", kind: "scalar", T: 4, req: true },
280
- { no: 2, name: "payload", kind: "scalar", T: 9, opt: true },
281
- { no: 3, name: "error", kind: "message", T: RpcError, opt: true }
282
- ]);
283
- let PerformRpcCallback = _PerformRpcCallback;
284
- const _RpcMethodInvocationEvent = class _RpcMethodInvocationEvent extends import_protobuf.Message {
285
- constructor(data) {
286
- super();
287
- import_protobuf.proto2.util.initPartial(data, this);
288
- }
289
- static fromBinary(bytes, options) {
290
- return new _RpcMethodInvocationEvent().fromBinary(bytes, options);
291
- }
292
- static fromJson(jsonValue, options) {
293
- return new _RpcMethodInvocationEvent().fromJson(jsonValue, options);
294
- }
295
- static fromJsonString(jsonString, options) {
296
- return new _RpcMethodInvocationEvent().fromJsonString(jsonString, options);
297
- }
298
- static equals(a, b) {
299
- return import_protobuf.proto2.util.equals(_RpcMethodInvocationEvent, a, b);
300
- }
301
- };
302
- _RpcMethodInvocationEvent.runtime = import_protobuf.proto2;
303
- _RpcMethodInvocationEvent.typeName = "livekit.proto.RpcMethodInvocationEvent";
304
- _RpcMethodInvocationEvent.fields = import_protobuf.proto2.util.newFieldList(() => [
305
- { no: 1, name: "local_participant_handle", kind: "scalar", T: 4, req: true },
306
- { no: 2, name: "invocation_id", kind: "scalar", T: 4, req: true },
307
- { no: 3, name: "method", kind: "scalar", T: 9, req: true },
308
- { no: 4, name: "request_id", kind: "scalar", T: 9, req: true },
309
- { no: 5, name: "caller_identity", kind: "scalar", T: 9, req: true },
310
- { no: 6, name: "payload", kind: "scalar", T: 9, req: true },
311
- { no: 7, name: "response_timeout_ms", kind: "scalar", T: 13, req: true }
312
- ]);
313
- let RpcMethodInvocationEvent = _RpcMethodInvocationEvent;
314
- // Annotate the CommonJS export names for ESM import in node:
315
- 0 && (module.exports = {
316
- PerformRpcCallback,
317
- PerformRpcRequest,
318
- PerformRpcResponse,
319
- RegisterRpcMethodRequest,
320
- RegisterRpcMethodResponse,
321
- RpcError,
322
- RpcMethodInvocationEvent,
323
- RpcMethodInvocationResponseRequest,
324
- RpcMethodInvocationResponseResponse,
325
- UnregisterRpcMethodRequest,
326
- UnregisterRpcMethodResponse
327
- });
328
- //# sourceMappingURL=rpc_pb.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/proto/rpc_pb.ts"],"sourcesContent":["// Copyright 2025 LiveKit, Inc.\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\n// @generated by protoc-gen-es v1.10.1 with parameter \"target=ts,import_extension=.js\"\n// @generated from file rpc.proto (package livekit.proto, syntax proto2)\n/* eslint-disable */\n// @ts-nocheck\n\nimport type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from \"@bufbuild/protobuf\";\nimport { Message, proto2 } from \"@bufbuild/protobuf\";\n\n/**\n * @generated from message livekit.proto.RpcError\n */\nexport class RpcError extends Message<RpcError> {\n /**\n * @generated from field: required uint32 code = 1;\n */\n code?: number;\n\n /**\n * @generated from field: required string message = 2;\n */\n message?: string;\n\n /**\n * @generated from field: optional string data = 3;\n */\n data?: string;\n\n constructor(data?: PartialMessage<RpcError>) {\n super();\n proto2.util.initPartial(data, this);\n }\n\n static readonly runtime: typeof proto2 = proto2;\n static readonly typeName = \"livekit.proto.RpcError\";\n static readonly fields: FieldList = proto2.util.newFieldList(() => [\n { no: 1, name: \"code\", kind: \"scalar\", T: 13 /* ScalarType.UINT32 */, req: true },\n { no: 2, name: \"message\", kind: \"scalar\", T: 9 /* ScalarType.STRING */, req: true },\n { no: 3, name: \"data\", kind: \"scalar\", T: 9 /* ScalarType.STRING */, opt: true },\n ]);\n\n static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RpcError {\n return new RpcError().fromBinary(bytes, options);\n }\n\n static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RpcError {\n return new RpcError().fromJson(jsonValue, options);\n }\n\n static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RpcError {\n return new RpcError().fromJsonString(jsonString, options);\n }\n\n static equals(a: RpcError | PlainMessage<RpcError> | undefined, b: RpcError | PlainMessage<RpcError> | undefined): boolean {\n return proto2.util.equals(RpcError, a, b);\n }\n}\n\n/**\n * FFI Requests\n *\n * @generated from message livekit.proto.PerformRpcRequest\n */\nexport class PerformRpcRequest extends Message<PerformRpcRequest> {\n /**\n * @generated from field: required uint64 local_participant_handle = 1;\n */\n localParticipantHandle?: bigint;\n\n /**\n * @generated from field: required string destination_identity = 2;\n */\n destinationIdentity?: string;\n\n /**\n * @generated from field: required string method = 3;\n */\n method?: string;\n\n /**\n * @generated from field: required string payload = 4;\n */\n payload?: string;\n\n /**\n * @generated from field: optional uint32 response_timeout_ms = 5;\n */\n responseTimeoutMs?: number;\n\n constructor(data?: PartialMessage<PerformRpcRequest>) {\n super();\n proto2.util.initPartial(data, this);\n }\n\n static readonly runtime: typeof proto2 = proto2;\n static readonly typeName = \"livekit.proto.PerformRpcRequest\";\n static readonly fields: FieldList = proto2.util.newFieldList(() => [\n { no: 1, name: \"local_participant_handle\", kind: \"scalar\", T: 4 /* ScalarType.UINT64 */, req: true },\n { no: 2, name: \"destination_identity\", kind: \"scalar\", T: 9 /* ScalarType.STRING */, req: true },\n { no: 3, name: \"method\", kind: \"scalar\", T: 9 /* ScalarType.STRING */, req: true },\n { no: 4, name: \"payload\", kind: \"scalar\", T: 9 /* ScalarType.STRING */, req: true },\n { no: 5, name: \"response_timeout_ms\", kind: \"scalar\", T: 13 /* ScalarType.UINT32 */, opt: true },\n ]);\n\n static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PerformRpcRequest {\n return new PerformRpcRequest().fromBinary(bytes, options);\n }\n\n static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PerformRpcRequest {\n return new PerformRpcRequest().fromJson(jsonValue, options);\n }\n\n static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PerformRpcRequest {\n return new PerformRpcRequest().fromJsonString(jsonString, options);\n }\n\n static equals(a: PerformRpcRequest | PlainMessage<PerformRpcRequest> | undefined, b: PerformRpcRequest | PlainMessage<PerformRpcRequest> | undefined): boolean {\n return proto2.util.equals(PerformRpcRequest, a, b);\n }\n}\n\n/**\n * @generated from message livekit.proto.RegisterRpcMethodRequest\n */\nexport class RegisterRpcMethodRequest extends Message<RegisterRpcMethodRequest> {\n /**\n * @generated from field: required uint64 local_participant_handle = 1;\n */\n localParticipantHandle?: bigint;\n\n /**\n * @generated from field: required string method = 2;\n */\n method?: string;\n\n constructor(data?: PartialMessage<RegisterRpcMethodRequest>) {\n super();\n proto2.util.initPartial(data, this);\n }\n\n static readonly runtime: typeof proto2 = proto2;\n static readonly typeName = \"livekit.proto.RegisterRpcMethodRequest\";\n static readonly fields: FieldList = proto2.util.newFieldList(() => [\n { no: 1, name: \"local_participant_handle\", kind: \"scalar\", T: 4 /* ScalarType.UINT64 */, req: true },\n { no: 2, name: \"method\", kind: \"scalar\", T: 9 /* ScalarType.STRING */, req: true },\n ]);\n\n static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RegisterRpcMethodRequest {\n return new RegisterRpcMethodRequest().fromBinary(bytes, options);\n }\n\n static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RegisterRpcMethodRequest {\n return new RegisterRpcMethodRequest().fromJson(jsonValue, options);\n }\n\n static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RegisterRpcMethodRequest {\n return new RegisterRpcMethodRequest().fromJsonString(jsonString, options);\n }\n\n static equals(a: RegisterRpcMethodRequest | PlainMessage<RegisterRpcMethodRequest> | undefined, b: RegisterRpcMethodRequest | PlainMessage<RegisterRpcMethodRequest> | undefined): boolean {\n return proto2.util.equals(RegisterRpcMethodRequest, a, b);\n }\n}\n\n/**\n * @generated from message livekit.proto.UnregisterRpcMethodRequest\n */\nexport class UnregisterRpcMethodRequest extends Message<UnregisterRpcMethodRequest> {\n /**\n * @generated from field: required uint64 local_participant_handle = 1;\n */\n localParticipantHandle?: bigint;\n\n /**\n * @generated from field: required string method = 2;\n */\n method?: string;\n\n constructor(data?: PartialMessage<UnregisterRpcMethodRequest>) {\n super();\n proto2.util.initPartial(data, this);\n }\n\n static readonly runtime: typeof proto2 = proto2;\n static readonly typeName = \"livekit.proto.UnregisterRpcMethodRequest\";\n static readonly fields: FieldList = proto2.util.newFieldList(() => [\n { no: 1, name: \"local_participant_handle\", kind: \"scalar\", T: 4 /* ScalarType.UINT64 */, req: true },\n { no: 2, name: \"method\", kind: \"scalar\", T: 9 /* ScalarType.STRING */, req: true },\n ]);\n\n static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UnregisterRpcMethodRequest {\n return new UnregisterRpcMethodRequest().fromBinary(bytes, options);\n }\n\n static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UnregisterRpcMethodRequest {\n return new UnregisterRpcMethodRequest().fromJson(jsonValue, options);\n }\n\n static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UnregisterRpcMethodRequest {\n return new UnregisterRpcMethodRequest().fromJsonString(jsonString, options);\n }\n\n static equals(a: UnregisterRpcMethodRequest | PlainMessage<UnregisterRpcMethodRequest> | undefined, b: UnregisterRpcMethodRequest | PlainMessage<UnregisterRpcMethodRequest> | undefined): boolean {\n return proto2.util.equals(UnregisterRpcMethodRequest, a, b);\n }\n}\n\n/**\n * @generated from message livekit.proto.RpcMethodInvocationResponseRequest\n */\nexport class RpcMethodInvocationResponseRequest extends Message<RpcMethodInvocationResponseRequest> {\n /**\n * @generated from field: required uint64 local_participant_handle = 1;\n */\n localParticipantHandle?: bigint;\n\n /**\n * @generated from field: required uint64 invocation_id = 2;\n */\n invocationId?: bigint;\n\n /**\n * @generated from field: optional string payload = 3;\n */\n payload?: string;\n\n /**\n * @generated from field: optional livekit.proto.RpcError error = 4;\n */\n error?: RpcError;\n\n constructor(data?: PartialMessage<RpcMethodInvocationResponseRequest>) {\n super();\n proto2.util.initPartial(data, this);\n }\n\n static readonly runtime: typeof proto2 = proto2;\n static readonly typeName = \"livekit.proto.RpcMethodInvocationResponseRequest\";\n static readonly fields: FieldList = proto2.util.newFieldList(() => [\n { no: 1, name: \"local_participant_handle\", kind: \"scalar\", T: 4 /* ScalarType.UINT64 */, req: true },\n { no: 2, name: \"invocation_id\", kind: \"scalar\", T: 4 /* ScalarType.UINT64 */, req: true },\n { no: 3, name: \"payload\", kind: \"scalar\", T: 9 /* ScalarType.STRING */, opt: true },\n { no: 4, name: \"error\", kind: \"message\", T: RpcError, opt: true },\n ]);\n\n static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RpcMethodInvocationResponseRequest {\n return new RpcMethodInvocationResponseRequest().fromBinary(bytes, options);\n }\n\n static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RpcMethodInvocationResponseRequest {\n return new RpcMethodInvocationResponseRequest().fromJson(jsonValue, options);\n }\n\n static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RpcMethodInvocationResponseRequest {\n return new RpcMethodInvocationResponseRequest().fromJsonString(jsonString, options);\n }\n\n static equals(a: RpcMethodInvocationResponseRequest | PlainMessage<RpcMethodInvocationResponseRequest> | undefined, b: RpcMethodInvocationResponseRequest | PlainMessage<RpcMethodInvocationResponseRequest> | undefined): boolean {\n return proto2.util.equals(RpcMethodInvocationResponseRequest, a, b);\n }\n}\n\n/**\n * FFI Responses\n *\n * @generated from message livekit.proto.PerformRpcResponse\n */\nexport class PerformRpcResponse extends Message<PerformRpcResponse> {\n /**\n * @generated from field: required uint64 async_id = 1;\n */\n asyncId?: bigint;\n\n constructor(data?: PartialMessage<PerformRpcResponse>) {\n super();\n proto2.util.initPartial(data, this);\n }\n\n static readonly runtime: typeof proto2 = proto2;\n static readonly typeName = \"livekit.proto.PerformRpcResponse\";\n static readonly fields: FieldList = proto2.util.newFieldList(() => [\n { no: 1, name: \"async_id\", kind: \"scalar\", T: 4 /* ScalarType.UINT64 */, req: true },\n ]);\n\n static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PerformRpcResponse {\n return new PerformRpcResponse().fromBinary(bytes, options);\n }\n\n static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PerformRpcResponse {\n return new PerformRpcResponse().fromJson(jsonValue, options);\n }\n\n static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PerformRpcResponse {\n return new PerformRpcResponse().fromJsonString(jsonString, options);\n }\n\n static equals(a: PerformRpcResponse | PlainMessage<PerformRpcResponse> | undefined, b: PerformRpcResponse | PlainMessage<PerformRpcResponse> | undefined): boolean {\n return proto2.util.equals(PerformRpcResponse, a, b);\n }\n}\n\n/**\n * @generated from message livekit.proto.RegisterRpcMethodResponse\n */\nexport class RegisterRpcMethodResponse extends Message<RegisterRpcMethodResponse> {\n constructor(data?: PartialMessage<RegisterRpcMethodResponse>) {\n super();\n proto2.util.initPartial(data, this);\n }\n\n static readonly runtime: typeof proto2 = proto2;\n static readonly typeName = \"livekit.proto.RegisterRpcMethodResponse\";\n static readonly fields: FieldList = proto2.util.newFieldList(() => [\n ]);\n\n static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RegisterRpcMethodResponse {\n return new RegisterRpcMethodResponse().fromBinary(bytes, options);\n }\n\n static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RegisterRpcMethodResponse {\n return new RegisterRpcMethodResponse().fromJson(jsonValue, options);\n }\n\n static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RegisterRpcMethodResponse {\n return new RegisterRpcMethodResponse().fromJsonString(jsonString, options);\n }\n\n static equals(a: RegisterRpcMethodResponse | PlainMessage<RegisterRpcMethodResponse> | undefined, b: RegisterRpcMethodResponse | PlainMessage<RegisterRpcMethodResponse> | undefined): boolean {\n return proto2.util.equals(RegisterRpcMethodResponse, a, b);\n }\n}\n\n/**\n * @generated from message livekit.proto.UnregisterRpcMethodResponse\n */\nexport class UnregisterRpcMethodResponse extends Message<UnregisterRpcMethodResponse> {\n constructor(data?: PartialMessage<UnregisterRpcMethodResponse>) {\n super();\n proto2.util.initPartial(data, this);\n }\n\n static readonly runtime: typeof proto2 = proto2;\n static readonly typeName = \"livekit.proto.UnregisterRpcMethodResponse\";\n static readonly fields: FieldList = proto2.util.newFieldList(() => [\n ]);\n\n static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UnregisterRpcMethodResponse {\n return new UnregisterRpcMethodResponse().fromBinary(bytes, options);\n }\n\n static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UnregisterRpcMethodResponse {\n return new UnregisterRpcMethodResponse().fromJson(jsonValue, options);\n }\n\n static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UnregisterRpcMethodResponse {\n return new UnregisterRpcMethodResponse().fromJsonString(jsonString, options);\n }\n\n static equals(a: UnregisterRpcMethodResponse | PlainMessage<UnregisterRpcMethodResponse> | undefined, b: UnregisterRpcMethodResponse | PlainMessage<UnregisterRpcMethodResponse> | undefined): boolean {\n return proto2.util.equals(UnregisterRpcMethodResponse, a, b);\n }\n}\n\n/**\n * @generated from message livekit.proto.RpcMethodInvocationResponseResponse\n */\nexport class RpcMethodInvocationResponseResponse extends Message<RpcMethodInvocationResponseResponse> {\n /**\n * @generated from field: optional string error = 1;\n */\n error?: string;\n\n constructor(data?: PartialMessage<RpcMethodInvocationResponseResponse>) {\n super();\n proto2.util.initPartial(data, this);\n }\n\n static readonly runtime: typeof proto2 = proto2;\n static readonly typeName = \"livekit.proto.RpcMethodInvocationResponseResponse\";\n static readonly fields: FieldList = proto2.util.newFieldList(() => [\n { no: 1, name: \"error\", kind: \"scalar\", T: 9 /* ScalarType.STRING */, opt: true },\n ]);\n\n static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RpcMethodInvocationResponseResponse {\n return new RpcMethodInvocationResponseResponse().fromBinary(bytes, options);\n }\n\n static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RpcMethodInvocationResponseResponse {\n return new RpcMethodInvocationResponseResponse().fromJson(jsonValue, options);\n }\n\n static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RpcMethodInvocationResponseResponse {\n return new RpcMethodInvocationResponseResponse().fromJsonString(jsonString, options);\n }\n\n static equals(a: RpcMethodInvocationResponseResponse | PlainMessage<RpcMethodInvocationResponseResponse> | undefined, b: RpcMethodInvocationResponseResponse | PlainMessage<RpcMethodInvocationResponseResponse> | undefined): boolean {\n return proto2.util.equals(RpcMethodInvocationResponseResponse, a, b);\n }\n}\n\n/**\n * FFI Callbacks\n *\n * @generated from message livekit.proto.PerformRpcCallback\n */\nexport class PerformRpcCallback extends Message<PerformRpcCallback> {\n /**\n * @generated from field: required uint64 async_id = 1;\n */\n asyncId?: bigint;\n\n /**\n * @generated from field: optional string payload = 2;\n */\n payload?: string;\n\n /**\n * @generated from field: optional livekit.proto.RpcError error = 3;\n */\n error?: RpcError;\n\n constructor(data?: PartialMessage<PerformRpcCallback>) {\n super();\n proto2.util.initPartial(data, this);\n }\n\n static readonly runtime: typeof proto2 = proto2;\n static readonly typeName = \"livekit.proto.PerformRpcCallback\";\n static readonly fields: FieldList = proto2.util.newFieldList(() => [\n { no: 1, name: \"async_id\", kind: \"scalar\", T: 4 /* ScalarType.UINT64 */, req: true },\n { no: 2, name: \"payload\", kind: \"scalar\", T: 9 /* ScalarType.STRING */, opt: true },\n { no: 3, name: \"error\", kind: \"message\", T: RpcError, opt: true },\n ]);\n\n static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PerformRpcCallback {\n return new PerformRpcCallback().fromBinary(bytes, options);\n }\n\n static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PerformRpcCallback {\n return new PerformRpcCallback().fromJson(jsonValue, options);\n }\n\n static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PerformRpcCallback {\n return new PerformRpcCallback().fromJsonString(jsonString, options);\n }\n\n static equals(a: PerformRpcCallback | PlainMessage<PerformRpcCallback> | undefined, b: PerformRpcCallback | PlainMessage<PerformRpcCallback> | undefined): boolean {\n return proto2.util.equals(PerformRpcCallback, a, b);\n }\n}\n\n/**\n * FFI Events\n *\n * @generated from message livekit.proto.RpcMethodInvocationEvent\n */\nexport class RpcMethodInvocationEvent extends Message<RpcMethodInvocationEvent> {\n /**\n * @generated from field: required uint64 local_participant_handle = 1;\n */\n localParticipantHandle?: bigint;\n\n /**\n * @generated from field: required uint64 invocation_id = 2;\n */\n invocationId?: bigint;\n\n /**\n * @generated from field: required string method = 3;\n */\n method?: string;\n\n /**\n * @generated from field: required string request_id = 4;\n */\n requestId?: string;\n\n /**\n * @generated from field: required string caller_identity = 5;\n */\n callerIdentity?: string;\n\n /**\n * @generated from field: required string payload = 6;\n */\n payload?: string;\n\n /**\n * @generated from field: required uint32 response_timeout_ms = 7;\n */\n responseTimeoutMs?: number;\n\n constructor(data?: PartialMessage<RpcMethodInvocationEvent>) {\n super();\n proto2.util.initPartial(data, this);\n }\n\n static readonly runtime: typeof proto2 = proto2;\n static readonly typeName = \"livekit.proto.RpcMethodInvocationEvent\";\n static readonly fields: FieldList = proto2.util.newFieldList(() => [\n { no: 1, name: \"local_participant_handle\", kind: \"scalar\", T: 4 /* ScalarType.UINT64 */, req: true },\n { no: 2, name: \"invocation_id\", kind: \"scalar\", T: 4 /* ScalarType.UINT64 */, req: true },\n { no: 3, name: \"method\", kind: \"scalar\", T: 9 /* ScalarType.STRING */, req: true },\n { no: 4, name: \"request_id\", kind: \"scalar\", T: 9 /* ScalarType.STRING */, req: true },\n { no: 5, name: \"caller_identity\", kind: \"scalar\", T: 9 /* ScalarType.STRING */, req: true },\n { no: 6, name: \"payload\", kind: \"scalar\", T: 9 /* ScalarType.STRING */, req: true },\n { no: 7, name: \"response_timeout_ms\", kind: \"scalar\", T: 13 /* ScalarType.UINT32 */, req: true },\n ]);\n\n static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RpcMethodInvocationEvent {\n return new RpcMethodInvocationEvent().fromBinary(bytes, options);\n }\n\n static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RpcMethodInvocationEvent {\n return new RpcMethodInvocationEvent().fromJson(jsonValue, options);\n }\n\n static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RpcMethodInvocationEvent {\n return new RpcMethodInvocationEvent().fromJsonString(jsonString, options);\n }\n\n static equals(a: RpcMethodInvocationEvent | PlainMessage<RpcMethodInvocationEvent> | undefined, b: RpcMethodInvocationEvent | PlainMessage<RpcMethodInvocationEvent> | undefined): boolean {\n return proto2.util.equals(RpcMethodInvocationEvent, a, b);\n }\n}\n\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAoBA,sBAAgC;AAKzB,MAAM,YAAN,MAAM,kBAAiB,wBAAkB;AAAA,EAgB9C,YAAY,MAAiC;AAC3C,UAAM;AACN,2BAAO,KAAK,YAAY,MAAM,IAAI;AAAA,EACpC;AAAA,EAUA,OAAO,WAAW,OAAmB,SAAgD;AACnF,WAAO,IAAI,UAAS,EAAE,WAAW,OAAO,OAAO;AAAA,EACjD;AAAA,EAEA,OAAO,SAAS,WAAsB,SAA8C;AAClF,WAAO,IAAI,UAAS,EAAE,SAAS,WAAW,OAAO;AAAA,EACnD;AAAA,EAEA,OAAO,eAAe,YAAoB,SAA8C;AACtF,WAAO,IAAI,UAAS,EAAE,eAAe,YAAY,OAAO;AAAA,EAC1D;AAAA,EAEA,OAAO,OAAO,GAAkD,GAA2D;AACzH,WAAO,uBAAO,KAAK,OAAO,WAAU,GAAG,CAAC;AAAA,EAC1C;AACF;AA5Ca,UAqBK,UAAyB;AArB9B,UAsBK,WAAW;AAtBhB,UAuBK,SAAoB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GAA2B,KAAK,KAAK;AAAA,EACjF,EAAE,IAAI,GAAG,MAAM,cAAc,MAAM,UAAU,GAAG,GAA2B,KAAK,KAAK;AAAA,EACrF,EAAE,IAAI,GAAG,MAAM,mBAAmB,MAAM,UAAU,GAAG,GAA2B,KAAK,KAAK;AAAA,EAC1F,EAAE,IAAI,GAAG,MAAM,WAAW,MAAM,UAAU,GAAG,GAA2B,KAAK,KAAK;AAAA,EAClF,EAAE,IAAI,GAAG,MAAM,uBAAuB,MAAM,UAAU,GAAG,IAA4B,KAAK,KAAK;AACjG,CAAC;AAnDI,IAAM,2BAAN;","names":[]}
@@ -1,267 +0,0 @@
1
- import { Message, PartialMessage, proto2, FieldList, BinaryReadOptions, JsonValue, JsonReadOptions, PlainMessage } from '@bufbuild/protobuf';
2
-
3
- /**
4
- * @generated from message livekit.proto.RpcError
5
- */
6
- declare class RpcError extends Message<RpcError> {
7
- /**
8
- * @generated from field: required uint32 code = 1;
9
- */
10
- code?: number;
11
- /**
12
- * @generated from field: required string message = 2;
13
- */
14
- message?: string;
15
- /**
16
- * @generated from field: optional string data = 3;
17
- */
18
- data?: string;
19
- constructor(data?: PartialMessage<RpcError>);
20
- static readonly runtime: typeof proto2;
21
- static readonly typeName = "livekit.proto.RpcError";
22
- static readonly fields: FieldList;
23
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RpcError;
24
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RpcError;
25
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RpcError;
26
- static equals(a: RpcError | PlainMessage<RpcError> | undefined, b: RpcError | PlainMessage<RpcError> | undefined): boolean;
27
- }
28
- /**
29
- * FFI Requests
30
- *
31
- * @generated from message livekit.proto.PerformRpcRequest
32
- */
33
- declare class PerformRpcRequest extends Message<PerformRpcRequest> {
34
- /**
35
- * @generated from field: required uint64 local_participant_handle = 1;
36
- */
37
- localParticipantHandle?: bigint;
38
- /**
39
- * @generated from field: required string destination_identity = 2;
40
- */
41
- destinationIdentity?: string;
42
- /**
43
- * @generated from field: required string method = 3;
44
- */
45
- method?: string;
46
- /**
47
- * @generated from field: required string payload = 4;
48
- */
49
- payload?: string;
50
- /**
51
- * @generated from field: optional uint32 response_timeout_ms = 5;
52
- */
53
- responseTimeoutMs?: number;
54
- constructor(data?: PartialMessage<PerformRpcRequest>);
55
- static readonly runtime: typeof proto2;
56
- static readonly typeName = "livekit.proto.PerformRpcRequest";
57
- static readonly fields: FieldList;
58
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PerformRpcRequest;
59
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PerformRpcRequest;
60
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PerformRpcRequest;
61
- static equals(a: PerformRpcRequest | PlainMessage<PerformRpcRequest> | undefined, b: PerformRpcRequest | PlainMessage<PerformRpcRequest> | undefined): boolean;
62
- }
63
- /**
64
- * @generated from message livekit.proto.RegisterRpcMethodRequest
65
- */
66
- declare class RegisterRpcMethodRequest extends Message<RegisterRpcMethodRequest> {
67
- /**
68
- * @generated from field: required uint64 local_participant_handle = 1;
69
- */
70
- localParticipantHandle?: bigint;
71
- /**
72
- * @generated from field: required string method = 2;
73
- */
74
- method?: string;
75
- constructor(data?: PartialMessage<RegisterRpcMethodRequest>);
76
- static readonly runtime: typeof proto2;
77
- static readonly typeName = "livekit.proto.RegisterRpcMethodRequest";
78
- static readonly fields: FieldList;
79
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RegisterRpcMethodRequest;
80
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RegisterRpcMethodRequest;
81
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RegisterRpcMethodRequest;
82
- static equals(a: RegisterRpcMethodRequest | PlainMessage<RegisterRpcMethodRequest> | undefined, b: RegisterRpcMethodRequest | PlainMessage<RegisterRpcMethodRequest> | undefined): boolean;
83
- }
84
- /**
85
- * @generated from message livekit.proto.UnregisterRpcMethodRequest
86
- */
87
- declare class UnregisterRpcMethodRequest extends Message<UnregisterRpcMethodRequest> {
88
- /**
89
- * @generated from field: required uint64 local_participant_handle = 1;
90
- */
91
- localParticipantHandle?: bigint;
92
- /**
93
- * @generated from field: required string method = 2;
94
- */
95
- method?: string;
96
- constructor(data?: PartialMessage<UnregisterRpcMethodRequest>);
97
- static readonly runtime: typeof proto2;
98
- static readonly typeName = "livekit.proto.UnregisterRpcMethodRequest";
99
- static readonly fields: FieldList;
100
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UnregisterRpcMethodRequest;
101
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UnregisterRpcMethodRequest;
102
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UnregisterRpcMethodRequest;
103
- static equals(a: UnregisterRpcMethodRequest | PlainMessage<UnregisterRpcMethodRequest> | undefined, b: UnregisterRpcMethodRequest | PlainMessage<UnregisterRpcMethodRequest> | undefined): boolean;
104
- }
105
- /**
106
- * @generated from message livekit.proto.RpcMethodInvocationResponseRequest
107
- */
108
- declare class RpcMethodInvocationResponseRequest extends Message<RpcMethodInvocationResponseRequest> {
109
- /**
110
- * @generated from field: required uint64 local_participant_handle = 1;
111
- */
112
- localParticipantHandle?: bigint;
113
- /**
114
- * @generated from field: required uint64 invocation_id = 2;
115
- */
116
- invocationId?: bigint;
117
- /**
118
- * @generated from field: optional string payload = 3;
119
- */
120
- payload?: string;
121
- /**
122
- * @generated from field: optional livekit.proto.RpcError error = 4;
123
- */
124
- error?: RpcError;
125
- constructor(data?: PartialMessage<RpcMethodInvocationResponseRequest>);
126
- static readonly runtime: typeof proto2;
127
- static readonly typeName = "livekit.proto.RpcMethodInvocationResponseRequest";
128
- static readonly fields: FieldList;
129
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RpcMethodInvocationResponseRequest;
130
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RpcMethodInvocationResponseRequest;
131
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RpcMethodInvocationResponseRequest;
132
- static equals(a: RpcMethodInvocationResponseRequest | PlainMessage<RpcMethodInvocationResponseRequest> | undefined, b: RpcMethodInvocationResponseRequest | PlainMessage<RpcMethodInvocationResponseRequest> | undefined): boolean;
133
- }
134
- /**
135
- * FFI Responses
136
- *
137
- * @generated from message livekit.proto.PerformRpcResponse
138
- */
139
- declare class PerformRpcResponse extends Message<PerformRpcResponse> {
140
- /**
141
- * @generated from field: required uint64 async_id = 1;
142
- */
143
- asyncId?: bigint;
144
- constructor(data?: PartialMessage<PerformRpcResponse>);
145
- static readonly runtime: typeof proto2;
146
- static readonly typeName = "livekit.proto.PerformRpcResponse";
147
- static readonly fields: FieldList;
148
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PerformRpcResponse;
149
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PerformRpcResponse;
150
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PerformRpcResponse;
151
- static equals(a: PerformRpcResponse | PlainMessage<PerformRpcResponse> | undefined, b: PerformRpcResponse | PlainMessage<PerformRpcResponse> | undefined): boolean;
152
- }
153
- /**
154
- * @generated from message livekit.proto.RegisterRpcMethodResponse
155
- */
156
- declare class RegisterRpcMethodResponse extends Message<RegisterRpcMethodResponse> {
157
- constructor(data?: PartialMessage<RegisterRpcMethodResponse>);
158
- static readonly runtime: typeof proto2;
159
- static readonly typeName = "livekit.proto.RegisterRpcMethodResponse";
160
- static readonly fields: FieldList;
161
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RegisterRpcMethodResponse;
162
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RegisterRpcMethodResponse;
163
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RegisterRpcMethodResponse;
164
- static equals(a: RegisterRpcMethodResponse | PlainMessage<RegisterRpcMethodResponse> | undefined, b: RegisterRpcMethodResponse | PlainMessage<RegisterRpcMethodResponse> | undefined): boolean;
165
- }
166
- /**
167
- * @generated from message livekit.proto.UnregisterRpcMethodResponse
168
- */
169
- declare class UnregisterRpcMethodResponse extends Message<UnregisterRpcMethodResponse> {
170
- constructor(data?: PartialMessage<UnregisterRpcMethodResponse>);
171
- static readonly runtime: typeof proto2;
172
- static readonly typeName = "livekit.proto.UnregisterRpcMethodResponse";
173
- static readonly fields: FieldList;
174
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UnregisterRpcMethodResponse;
175
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UnregisterRpcMethodResponse;
176
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UnregisterRpcMethodResponse;
177
- static equals(a: UnregisterRpcMethodResponse | PlainMessage<UnregisterRpcMethodResponse> | undefined, b: UnregisterRpcMethodResponse | PlainMessage<UnregisterRpcMethodResponse> | undefined): boolean;
178
- }
179
- /**
180
- * @generated from message livekit.proto.RpcMethodInvocationResponseResponse
181
- */
182
- declare class RpcMethodInvocationResponseResponse extends Message<RpcMethodInvocationResponseResponse> {
183
- /**
184
- * @generated from field: optional string error = 1;
185
- */
186
- error?: string;
187
- constructor(data?: PartialMessage<RpcMethodInvocationResponseResponse>);
188
- static readonly runtime: typeof proto2;
189
- static readonly typeName = "livekit.proto.RpcMethodInvocationResponseResponse";
190
- static readonly fields: FieldList;
191
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RpcMethodInvocationResponseResponse;
192
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RpcMethodInvocationResponseResponse;
193
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RpcMethodInvocationResponseResponse;
194
- static equals(a: RpcMethodInvocationResponseResponse | PlainMessage<RpcMethodInvocationResponseResponse> | undefined, b: RpcMethodInvocationResponseResponse | PlainMessage<RpcMethodInvocationResponseResponse> | undefined): boolean;
195
- }
196
- /**
197
- * FFI Callbacks
198
- *
199
- * @generated from message livekit.proto.PerformRpcCallback
200
- */
201
- declare class PerformRpcCallback extends Message<PerformRpcCallback> {
202
- /**
203
- * @generated from field: required uint64 async_id = 1;
204
- */
205
- asyncId?: bigint;
206
- /**
207
- * @generated from field: optional string payload = 2;
208
- */
209
- payload?: string;
210
- /**
211
- * @generated from field: optional livekit.proto.RpcError error = 3;
212
- */
213
- error?: RpcError;
214
- constructor(data?: PartialMessage<PerformRpcCallback>);
215
- static readonly runtime: typeof proto2;
216
- static readonly typeName = "livekit.proto.PerformRpcCallback";
217
- static readonly fields: FieldList;
218
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PerformRpcCallback;
219
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PerformRpcCallback;
220
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PerformRpcCallback;
221
- static equals(a: PerformRpcCallback | PlainMessage<PerformRpcCallback> | undefined, b: PerformRpcCallback | PlainMessage<PerformRpcCallback> | undefined): boolean;
222
- }
223
- /**
224
- * FFI Events
225
- *
226
- * @generated from message livekit.proto.RpcMethodInvocationEvent
227
- */
228
- declare class RpcMethodInvocationEvent extends Message<RpcMethodInvocationEvent> {
229
- /**
230
- * @generated from field: required uint64 local_participant_handle = 1;
231
- */
232
- localParticipantHandle?: bigint;
233
- /**
234
- * @generated from field: required uint64 invocation_id = 2;
235
- */
236
- invocationId?: bigint;
237
- /**
238
- * @generated from field: required string method = 3;
239
- */
240
- method?: string;
241
- /**
242
- * @generated from field: required string request_id = 4;
243
- */
244
- requestId?: string;
245
- /**
246
- * @generated from field: required string caller_identity = 5;
247
- */
248
- callerIdentity?: string;
249
- /**
250
- * @generated from field: required string payload = 6;
251
- */
252
- payload?: string;
253
- /**
254
- * @generated from field: required uint32 response_timeout_ms = 7;
255
- */
256
- responseTimeoutMs?: number;
257
- constructor(data?: PartialMessage<RpcMethodInvocationEvent>);
258
- static readonly runtime: typeof proto2;
259
- static readonly typeName = "livekit.proto.RpcMethodInvocationEvent";
260
- static readonly fields: FieldList;
261
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RpcMethodInvocationEvent;
262
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RpcMethodInvocationEvent;
263
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RpcMethodInvocationEvent;
264
- static equals(a: RpcMethodInvocationEvent | PlainMessage<RpcMethodInvocationEvent> | undefined, b: RpcMethodInvocationEvent | PlainMessage<RpcMethodInvocationEvent> | undefined): boolean;
265
- }
266
-
267
- export { PerformRpcCallback, PerformRpcRequest, PerformRpcResponse, RegisterRpcMethodRequest, RegisterRpcMethodResponse, RpcError, RpcMethodInvocationEvent, RpcMethodInvocationResponseRequest, RpcMethodInvocationResponseResponse, UnregisterRpcMethodRequest, UnregisterRpcMethodResponse };