@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,539 +0,0 @@
1
- // Copyright 2025 LiveKit, Inc.
2
- //
3
- // Licensed under the Apache License, Version 2.0 (the "License");
4
- // you may not use this file except in compliance with the License.
5
- // You may obtain a copy of the License at
6
- //
7
- // http://www.apache.org/licenses/LICENSE-2.0
8
- //
9
- // Unless required by applicable law or agreed to in writing, software
10
- // distributed under the License is distributed on an "AS IS" BASIS,
11
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- // See the License for the specific language governing permissions and
13
- // limitations under the License.
14
-
15
- // @generated by protoc-gen-es v1.10.1 with parameter "target=ts,import_extension=.js"
16
- // @generated from file rpc.proto (package livekit.proto, syntax proto2)
17
- /* eslint-disable */
18
- // @ts-nocheck
19
-
20
- import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
21
- import { Message, proto2 } from "@bufbuild/protobuf";
22
-
23
- /**
24
- * @generated from message livekit.proto.RpcError
25
- */
26
- export class RpcError extends Message<RpcError> {
27
- /**
28
- * @generated from field: required uint32 code = 1;
29
- */
30
- code?: number;
31
-
32
- /**
33
- * @generated from field: required string message = 2;
34
- */
35
- message?: string;
36
-
37
- /**
38
- * @generated from field: optional string data = 3;
39
- */
40
- data?: string;
41
-
42
- constructor(data?: PartialMessage<RpcError>) {
43
- super();
44
- proto2.util.initPartial(data, this);
45
- }
46
-
47
- static readonly runtime: typeof proto2 = proto2;
48
- static readonly typeName = "livekit.proto.RpcError";
49
- static readonly fields: FieldList = proto2.util.newFieldList(() => [
50
- { no: 1, name: "code", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true },
51
- { no: 2, name: "message", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true },
52
- { no: 3, name: "data", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
53
- ]);
54
-
55
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RpcError {
56
- return new RpcError().fromBinary(bytes, options);
57
- }
58
-
59
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RpcError {
60
- return new RpcError().fromJson(jsonValue, options);
61
- }
62
-
63
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RpcError {
64
- return new RpcError().fromJsonString(jsonString, options);
65
- }
66
-
67
- static equals(a: RpcError | PlainMessage<RpcError> | undefined, b: RpcError | PlainMessage<RpcError> | undefined): boolean {
68
- return proto2.util.equals(RpcError, a, b);
69
- }
70
- }
71
-
72
- /**
73
- * FFI Requests
74
- *
75
- * @generated from message livekit.proto.PerformRpcRequest
76
- */
77
- export class PerformRpcRequest extends Message<PerformRpcRequest> {
78
- /**
79
- * @generated from field: required uint64 local_participant_handle = 1;
80
- */
81
- localParticipantHandle?: bigint;
82
-
83
- /**
84
- * @generated from field: required string destination_identity = 2;
85
- */
86
- destinationIdentity?: string;
87
-
88
- /**
89
- * @generated from field: required string method = 3;
90
- */
91
- method?: string;
92
-
93
- /**
94
- * @generated from field: required string payload = 4;
95
- */
96
- payload?: string;
97
-
98
- /**
99
- * @generated from field: optional uint32 response_timeout_ms = 5;
100
- */
101
- responseTimeoutMs?: number;
102
-
103
- constructor(data?: PartialMessage<PerformRpcRequest>) {
104
- super();
105
- proto2.util.initPartial(data, this);
106
- }
107
-
108
- static readonly runtime: typeof proto2 = proto2;
109
- static readonly typeName = "livekit.proto.PerformRpcRequest";
110
- static readonly fields: FieldList = proto2.util.newFieldList(() => [
111
- { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true },
112
- { no: 2, name: "destination_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true },
113
- { no: 3, name: "method", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true },
114
- { no: 4, name: "payload", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true },
115
- { no: 5, name: "response_timeout_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
116
- ]);
117
-
118
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PerformRpcRequest {
119
- return new PerformRpcRequest().fromBinary(bytes, options);
120
- }
121
-
122
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PerformRpcRequest {
123
- return new PerformRpcRequest().fromJson(jsonValue, options);
124
- }
125
-
126
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PerformRpcRequest {
127
- return new PerformRpcRequest().fromJsonString(jsonString, options);
128
- }
129
-
130
- static equals(a: PerformRpcRequest | PlainMessage<PerformRpcRequest> | undefined, b: PerformRpcRequest | PlainMessage<PerformRpcRequest> | undefined): boolean {
131
- return proto2.util.equals(PerformRpcRequest, a, b);
132
- }
133
- }
134
-
135
- /**
136
- * @generated from message livekit.proto.RegisterRpcMethodRequest
137
- */
138
- export class RegisterRpcMethodRequest extends Message<RegisterRpcMethodRequest> {
139
- /**
140
- * @generated from field: required uint64 local_participant_handle = 1;
141
- */
142
- localParticipantHandle?: bigint;
143
-
144
- /**
145
- * @generated from field: required string method = 2;
146
- */
147
- method?: string;
148
-
149
- constructor(data?: PartialMessage<RegisterRpcMethodRequest>) {
150
- super();
151
- proto2.util.initPartial(data, this);
152
- }
153
-
154
- static readonly runtime: typeof proto2 = proto2;
155
- static readonly typeName = "livekit.proto.RegisterRpcMethodRequest";
156
- static readonly fields: FieldList = proto2.util.newFieldList(() => [
157
- { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true },
158
- { no: 2, name: "method", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true },
159
- ]);
160
-
161
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RegisterRpcMethodRequest {
162
- return new RegisterRpcMethodRequest().fromBinary(bytes, options);
163
- }
164
-
165
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RegisterRpcMethodRequest {
166
- return new RegisterRpcMethodRequest().fromJson(jsonValue, options);
167
- }
168
-
169
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RegisterRpcMethodRequest {
170
- return new RegisterRpcMethodRequest().fromJsonString(jsonString, options);
171
- }
172
-
173
- static equals(a: RegisterRpcMethodRequest | PlainMessage<RegisterRpcMethodRequest> | undefined, b: RegisterRpcMethodRequest | PlainMessage<RegisterRpcMethodRequest> | undefined): boolean {
174
- return proto2.util.equals(RegisterRpcMethodRequest, a, b);
175
- }
176
- }
177
-
178
- /**
179
- * @generated from message livekit.proto.UnregisterRpcMethodRequest
180
- */
181
- export class UnregisterRpcMethodRequest extends Message<UnregisterRpcMethodRequest> {
182
- /**
183
- * @generated from field: required uint64 local_participant_handle = 1;
184
- */
185
- localParticipantHandle?: bigint;
186
-
187
- /**
188
- * @generated from field: required string method = 2;
189
- */
190
- method?: string;
191
-
192
- constructor(data?: PartialMessage<UnregisterRpcMethodRequest>) {
193
- super();
194
- proto2.util.initPartial(data, this);
195
- }
196
-
197
- static readonly runtime: typeof proto2 = proto2;
198
- static readonly typeName = "livekit.proto.UnregisterRpcMethodRequest";
199
- static readonly fields: FieldList = proto2.util.newFieldList(() => [
200
- { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true },
201
- { no: 2, name: "method", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true },
202
- ]);
203
-
204
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UnregisterRpcMethodRequest {
205
- return new UnregisterRpcMethodRequest().fromBinary(bytes, options);
206
- }
207
-
208
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UnregisterRpcMethodRequest {
209
- return new UnregisterRpcMethodRequest().fromJson(jsonValue, options);
210
- }
211
-
212
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UnregisterRpcMethodRequest {
213
- return new UnregisterRpcMethodRequest().fromJsonString(jsonString, options);
214
- }
215
-
216
- static equals(a: UnregisterRpcMethodRequest | PlainMessage<UnregisterRpcMethodRequest> | undefined, b: UnregisterRpcMethodRequest | PlainMessage<UnregisterRpcMethodRequest> | undefined): boolean {
217
- return proto2.util.equals(UnregisterRpcMethodRequest, a, b);
218
- }
219
- }
220
-
221
- /**
222
- * @generated from message livekit.proto.RpcMethodInvocationResponseRequest
223
- */
224
- export class RpcMethodInvocationResponseRequest extends Message<RpcMethodInvocationResponseRequest> {
225
- /**
226
- * @generated from field: required uint64 local_participant_handle = 1;
227
- */
228
- localParticipantHandle?: bigint;
229
-
230
- /**
231
- * @generated from field: required uint64 invocation_id = 2;
232
- */
233
- invocationId?: bigint;
234
-
235
- /**
236
- * @generated from field: optional string payload = 3;
237
- */
238
- payload?: string;
239
-
240
- /**
241
- * @generated from field: optional livekit.proto.RpcError error = 4;
242
- */
243
- error?: RpcError;
244
-
245
- constructor(data?: PartialMessage<RpcMethodInvocationResponseRequest>) {
246
- super();
247
- proto2.util.initPartial(data, this);
248
- }
249
-
250
- static readonly runtime: typeof proto2 = proto2;
251
- static readonly typeName = "livekit.proto.RpcMethodInvocationResponseRequest";
252
- static readonly fields: FieldList = proto2.util.newFieldList(() => [
253
- { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true },
254
- { no: 2, name: "invocation_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true },
255
- { no: 3, name: "payload", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
256
- { no: 4, name: "error", kind: "message", T: RpcError, opt: true },
257
- ]);
258
-
259
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RpcMethodInvocationResponseRequest {
260
- return new RpcMethodInvocationResponseRequest().fromBinary(bytes, options);
261
- }
262
-
263
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RpcMethodInvocationResponseRequest {
264
- return new RpcMethodInvocationResponseRequest().fromJson(jsonValue, options);
265
- }
266
-
267
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RpcMethodInvocationResponseRequest {
268
- return new RpcMethodInvocationResponseRequest().fromJsonString(jsonString, options);
269
- }
270
-
271
- static equals(a: RpcMethodInvocationResponseRequest | PlainMessage<RpcMethodInvocationResponseRequest> | undefined, b: RpcMethodInvocationResponseRequest | PlainMessage<RpcMethodInvocationResponseRequest> | undefined): boolean {
272
- return proto2.util.equals(RpcMethodInvocationResponseRequest, a, b);
273
- }
274
- }
275
-
276
- /**
277
- * FFI Responses
278
- *
279
- * @generated from message livekit.proto.PerformRpcResponse
280
- */
281
- export class PerformRpcResponse extends Message<PerformRpcResponse> {
282
- /**
283
- * @generated from field: required uint64 async_id = 1;
284
- */
285
- asyncId?: bigint;
286
-
287
- constructor(data?: PartialMessage<PerformRpcResponse>) {
288
- super();
289
- proto2.util.initPartial(data, this);
290
- }
291
-
292
- static readonly runtime: typeof proto2 = proto2;
293
- static readonly typeName = "livekit.proto.PerformRpcResponse";
294
- static readonly fields: FieldList = proto2.util.newFieldList(() => [
295
- { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true },
296
- ]);
297
-
298
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PerformRpcResponse {
299
- return new PerformRpcResponse().fromBinary(bytes, options);
300
- }
301
-
302
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PerformRpcResponse {
303
- return new PerformRpcResponse().fromJson(jsonValue, options);
304
- }
305
-
306
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PerformRpcResponse {
307
- return new PerformRpcResponse().fromJsonString(jsonString, options);
308
- }
309
-
310
- static equals(a: PerformRpcResponse | PlainMessage<PerformRpcResponse> | undefined, b: PerformRpcResponse | PlainMessage<PerformRpcResponse> | undefined): boolean {
311
- return proto2.util.equals(PerformRpcResponse, a, b);
312
- }
313
- }
314
-
315
- /**
316
- * @generated from message livekit.proto.RegisterRpcMethodResponse
317
- */
318
- export class RegisterRpcMethodResponse extends Message<RegisterRpcMethodResponse> {
319
- constructor(data?: PartialMessage<RegisterRpcMethodResponse>) {
320
- super();
321
- proto2.util.initPartial(data, this);
322
- }
323
-
324
- static readonly runtime: typeof proto2 = proto2;
325
- static readonly typeName = "livekit.proto.RegisterRpcMethodResponse";
326
- static readonly fields: FieldList = proto2.util.newFieldList(() => [
327
- ]);
328
-
329
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RegisterRpcMethodResponse {
330
- return new RegisterRpcMethodResponse().fromBinary(bytes, options);
331
- }
332
-
333
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RegisterRpcMethodResponse {
334
- return new RegisterRpcMethodResponse().fromJson(jsonValue, options);
335
- }
336
-
337
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RegisterRpcMethodResponse {
338
- return new RegisterRpcMethodResponse().fromJsonString(jsonString, options);
339
- }
340
-
341
- static equals(a: RegisterRpcMethodResponse | PlainMessage<RegisterRpcMethodResponse> | undefined, b: RegisterRpcMethodResponse | PlainMessage<RegisterRpcMethodResponse> | undefined): boolean {
342
- return proto2.util.equals(RegisterRpcMethodResponse, a, b);
343
- }
344
- }
345
-
346
- /**
347
- * @generated from message livekit.proto.UnregisterRpcMethodResponse
348
- */
349
- export class UnregisterRpcMethodResponse extends Message<UnregisterRpcMethodResponse> {
350
- constructor(data?: PartialMessage<UnregisterRpcMethodResponse>) {
351
- super();
352
- proto2.util.initPartial(data, this);
353
- }
354
-
355
- static readonly runtime: typeof proto2 = proto2;
356
- static readonly typeName = "livekit.proto.UnregisterRpcMethodResponse";
357
- static readonly fields: FieldList = proto2.util.newFieldList(() => [
358
- ]);
359
-
360
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UnregisterRpcMethodResponse {
361
- return new UnregisterRpcMethodResponse().fromBinary(bytes, options);
362
- }
363
-
364
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UnregisterRpcMethodResponse {
365
- return new UnregisterRpcMethodResponse().fromJson(jsonValue, options);
366
- }
367
-
368
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UnregisterRpcMethodResponse {
369
- return new UnregisterRpcMethodResponse().fromJsonString(jsonString, options);
370
- }
371
-
372
- static equals(a: UnregisterRpcMethodResponse | PlainMessage<UnregisterRpcMethodResponse> | undefined, b: UnregisterRpcMethodResponse | PlainMessage<UnregisterRpcMethodResponse> | undefined): boolean {
373
- return proto2.util.equals(UnregisterRpcMethodResponse, a, b);
374
- }
375
- }
376
-
377
- /**
378
- * @generated from message livekit.proto.RpcMethodInvocationResponseResponse
379
- */
380
- export class RpcMethodInvocationResponseResponse extends Message<RpcMethodInvocationResponseResponse> {
381
- /**
382
- * @generated from field: optional string error = 1;
383
- */
384
- error?: string;
385
-
386
- constructor(data?: PartialMessage<RpcMethodInvocationResponseResponse>) {
387
- super();
388
- proto2.util.initPartial(data, this);
389
- }
390
-
391
- static readonly runtime: typeof proto2 = proto2;
392
- static readonly typeName = "livekit.proto.RpcMethodInvocationResponseResponse";
393
- static readonly fields: FieldList = proto2.util.newFieldList(() => [
394
- { no: 1, name: "error", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
395
- ]);
396
-
397
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RpcMethodInvocationResponseResponse {
398
- return new RpcMethodInvocationResponseResponse().fromBinary(bytes, options);
399
- }
400
-
401
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RpcMethodInvocationResponseResponse {
402
- return new RpcMethodInvocationResponseResponse().fromJson(jsonValue, options);
403
- }
404
-
405
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RpcMethodInvocationResponseResponse {
406
- return new RpcMethodInvocationResponseResponse().fromJsonString(jsonString, options);
407
- }
408
-
409
- static equals(a: RpcMethodInvocationResponseResponse | PlainMessage<RpcMethodInvocationResponseResponse> | undefined, b: RpcMethodInvocationResponseResponse | PlainMessage<RpcMethodInvocationResponseResponse> | undefined): boolean {
410
- return proto2.util.equals(RpcMethodInvocationResponseResponse, a, b);
411
- }
412
- }
413
-
414
- /**
415
- * FFI Callbacks
416
- *
417
- * @generated from message livekit.proto.PerformRpcCallback
418
- */
419
- export class PerformRpcCallback extends Message<PerformRpcCallback> {
420
- /**
421
- * @generated from field: required uint64 async_id = 1;
422
- */
423
- asyncId?: bigint;
424
-
425
- /**
426
- * @generated from field: optional string payload = 2;
427
- */
428
- payload?: string;
429
-
430
- /**
431
- * @generated from field: optional livekit.proto.RpcError error = 3;
432
- */
433
- error?: RpcError;
434
-
435
- constructor(data?: PartialMessage<PerformRpcCallback>) {
436
- super();
437
- proto2.util.initPartial(data, this);
438
- }
439
-
440
- static readonly runtime: typeof proto2 = proto2;
441
- static readonly typeName = "livekit.proto.PerformRpcCallback";
442
- static readonly fields: FieldList = proto2.util.newFieldList(() => [
443
- { no: 1, name: "async_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true },
444
- { no: 2, name: "payload", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
445
- { no: 3, name: "error", kind: "message", T: RpcError, opt: true },
446
- ]);
447
-
448
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PerformRpcCallback {
449
- return new PerformRpcCallback().fromBinary(bytes, options);
450
- }
451
-
452
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PerformRpcCallback {
453
- return new PerformRpcCallback().fromJson(jsonValue, options);
454
- }
455
-
456
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PerformRpcCallback {
457
- return new PerformRpcCallback().fromJsonString(jsonString, options);
458
- }
459
-
460
- static equals(a: PerformRpcCallback | PlainMessage<PerformRpcCallback> | undefined, b: PerformRpcCallback | PlainMessage<PerformRpcCallback> | undefined): boolean {
461
- return proto2.util.equals(PerformRpcCallback, a, b);
462
- }
463
- }
464
-
465
- /**
466
- * FFI Events
467
- *
468
- * @generated from message livekit.proto.RpcMethodInvocationEvent
469
- */
470
- export class RpcMethodInvocationEvent extends Message<RpcMethodInvocationEvent> {
471
- /**
472
- * @generated from field: required uint64 local_participant_handle = 1;
473
- */
474
- localParticipantHandle?: bigint;
475
-
476
- /**
477
- * @generated from field: required uint64 invocation_id = 2;
478
- */
479
- invocationId?: bigint;
480
-
481
- /**
482
- * @generated from field: required string method = 3;
483
- */
484
- method?: string;
485
-
486
- /**
487
- * @generated from field: required string request_id = 4;
488
- */
489
- requestId?: string;
490
-
491
- /**
492
- * @generated from field: required string caller_identity = 5;
493
- */
494
- callerIdentity?: string;
495
-
496
- /**
497
- * @generated from field: required string payload = 6;
498
- */
499
- payload?: string;
500
-
501
- /**
502
- * @generated from field: required uint32 response_timeout_ms = 7;
503
- */
504
- responseTimeoutMs?: number;
505
-
506
- constructor(data?: PartialMessage<RpcMethodInvocationEvent>) {
507
- super();
508
- proto2.util.initPartial(data, this);
509
- }
510
-
511
- static readonly runtime: typeof proto2 = proto2;
512
- static readonly typeName = "livekit.proto.RpcMethodInvocationEvent";
513
- static readonly fields: FieldList = proto2.util.newFieldList(() => [
514
- { no: 1, name: "local_participant_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true },
515
- { no: 2, name: "invocation_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true },
516
- { no: 3, name: "method", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true },
517
- { no: 4, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true },
518
- { no: 5, name: "caller_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true },
519
- { no: 6, name: "payload", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true },
520
- { no: 7, name: "response_timeout_ms", kind: "scalar", T: 13 /* ScalarType.UINT32 */, req: true },
521
- ]);
522
-
523
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RpcMethodInvocationEvent {
524
- return new RpcMethodInvocationEvent().fromBinary(bytes, options);
525
- }
526
-
527
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RpcMethodInvocationEvent {
528
- return new RpcMethodInvocationEvent().fromJson(jsonValue, options);
529
- }
530
-
531
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RpcMethodInvocationEvent {
532
- return new RpcMethodInvocationEvent().fromJsonString(jsonString, options);
533
- }
534
-
535
- static equals(a: RpcMethodInvocationEvent | PlainMessage<RpcMethodInvocationEvent> | undefined, b: RpcMethodInvocationEvent | PlainMessage<RpcMethodInvocationEvent> | undefined): boolean {
536
- return proto2.util.equals(RpcMethodInvocationEvent, a, b);
537
- }
538
- }
539
-