@livekit/rtc-node 0.12.2 → 0.13.0

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 (217) hide show
  1. package/dist/audio_frame.cjs +2 -2
  2. package/dist/audio_frame.cjs.map +1 -1
  3. package/dist/audio_frame.d.cts +2 -3
  4. package/dist/audio_frame.d.ts +2 -3
  5. package/dist/audio_frame.d.ts.map +1 -1
  6. package/dist/audio_frame.js +3 -3
  7. package/dist/audio_frame.js.map +1 -1
  8. package/dist/audio_resampler.cjs +10 -7
  9. package/dist/audio_resampler.cjs.map +1 -1
  10. package/dist/audio_resampler.d.cts +2 -3
  11. package/dist/audio_resampler.d.ts +2 -3
  12. package/dist/audio_resampler.d.ts.map +1 -1
  13. package/dist/audio_resampler.js +13 -10
  14. package/dist/audio_resampler.js.map +1 -1
  15. package/dist/audio_source.cjs +6 -4
  16. package/dist/audio_source.cjs.map +1 -1
  17. package/dist/audio_source.d.cts +3 -3
  18. package/dist/audio_source.d.ts +3 -3
  19. package/dist/audio_source.d.ts.map +1 -1
  20. package/dist/audio_source.js +9 -7
  21. package/dist/audio_source.js.map +1 -1
  22. package/dist/audio_stream.cjs +1 -2
  23. package/dist/audio_stream.cjs.map +1 -1
  24. package/dist/audio_stream.d.cts +2 -3
  25. package/dist/audio_stream.d.ts +2 -3
  26. package/dist/audio_stream.d.ts.map +1 -1
  27. package/dist/audio_stream.js +2 -3
  28. package/dist/audio_stream.js.map +1 -1
  29. package/dist/e2ee.cjs +19 -20
  30. package/dist/e2ee.cjs.map +1 -1
  31. package/dist/e2ee.d.cts +0 -1
  32. package/dist/e2ee.d.ts +0 -1
  33. package/dist/e2ee.d.ts.map +1 -1
  34. package/dist/e2ee.js +29 -30
  35. package/dist/e2ee.js.map +1 -1
  36. package/dist/ffi_client.cjs +6 -5
  37. package/dist/ffi_client.cjs.map +1 -1
  38. package/dist/ffi_client.d.cts +10 -10
  39. package/dist/ffi_client.d.ts +10 -10
  40. package/dist/ffi_client.d.ts.map +1 -1
  41. package/dist/ffi_client.js +6 -10
  42. package/dist/ffi_client.js.map +1 -1
  43. package/dist/index.cjs +16 -49
  44. package/dist/index.cjs.map +1 -1
  45. package/dist/index.d.cts +6 -35
  46. package/dist/index.d.ts +6 -35
  47. package/dist/index.d.ts.map +1 -1
  48. package/dist/index.js +7 -46
  49. package/dist/index.js.map +1 -1
  50. package/dist/napi/native.d.cjs.map +1 -1
  51. package/dist/napi/native.d.ts +5 -5
  52. package/dist/native.d.ts +5 -5
  53. package/dist/participant.cjs +57 -34
  54. package/dist/participant.cjs.map +1 -1
  55. package/dist/participant.d.cts +10 -10
  56. package/dist/participant.d.ts +10 -10
  57. package/dist/participant.d.ts.map +1 -1
  58. package/dist/participant.js +75 -50
  59. package/dist/participant.js.map +1 -1
  60. package/dist/proto/audio_frame_pb.cjs +977 -125
  61. package/dist/proto/audio_frame_pb.cjs.map +1 -1
  62. package/dist/proto/audio_frame_pb.d.cts +502 -417
  63. package/dist/proto/audio_frame_pb.d.ts +502 -417
  64. package/dist/proto/audio_frame_pb.d.ts.map +1 -1
  65. package/dist/proto/audio_frame_pb.js +943 -85
  66. package/dist/proto/audio_frame_pb.js.map +1 -1
  67. package/dist/proto/e2ee_pb.cjs +700 -85
  68. package/dist/proto/e2ee_pb.cjs.map +1 -1
  69. package/dist/proto/e2ee_pb.d.cts +331 -263
  70. package/dist/proto/e2ee_pb.d.ts +331 -263
  71. package/dist/proto/e2ee_pb.d.ts.map +1 -1
  72. package/dist/proto/e2ee_pb.js +675 -57
  73. package/dist/proto/e2ee_pb.js.map +1 -1
  74. package/dist/proto/ffi_pb.cjs +369 -36
  75. package/dist/proto/ffi_pb.cjs.map +1 -1
  76. package/dist/proto/ffi_pb.d.cts +156 -109
  77. package/dist/proto/ffi_pb.d.ts +156 -109
  78. package/dist/proto/ffi_pb.d.ts.map +1 -1
  79. package/dist/proto/ffi_pb.js +364 -29
  80. package/dist/proto/ffi_pb.js.map +1 -1
  81. package/dist/proto/handle_pb.cjs +27 -7
  82. package/dist/proto/handle_pb.cjs.map +1 -1
  83. package/dist/proto/handle_pb.d.cts +13 -15
  84. package/dist/proto/handle_pb.d.ts +13 -15
  85. package/dist/proto/handle_pb.d.ts.map +1 -1
  86. package/dist/proto/handle_pb.js +26 -5
  87. package/dist/proto/handle_pb.js.map +1 -1
  88. package/dist/proto/participant_pb.cjs +112 -15
  89. package/dist/proto/participant_pb.cjs.map +1 -1
  90. package/dist/proto/participant_pb.d.cts +140 -52
  91. package/dist/proto/participant_pb.d.ts +140 -52
  92. package/dist/proto/participant_pb.d.ts.map +1 -1
  93. package/dist/proto/participant_pb.js +109 -11
  94. package/dist/proto/participant_pb.js.map +1 -1
  95. package/dist/proto/room_pb.cjs +2693 -302
  96. package/dist/proto/room_pb.cjs.map +1 -1
  97. package/dist/proto/room_pb.d.cts +1265 -862
  98. package/dist/proto/room_pb.d.ts +1265 -862
  99. package/dist/proto/room_pb.d.ts.map +1 -1
  100. package/dist/proto/room_pb.js +2603 -210
  101. package/dist/proto/room_pb.js.map +1 -1
  102. package/dist/proto/rpc_pb.cjs +302 -37
  103. package/dist/proto/rpc_pb.cjs.map +1 -1
  104. package/dist/proto/rpc_pb.d.cts +138 -108
  105. package/dist/proto/rpc_pb.d.ts +138 -108
  106. package/dist/proto/rpc_pb.d.ts.map +1 -1
  107. package/dist/proto/rpc_pb.js +291 -25
  108. package/dist/proto/rpc_pb.js.map +1 -1
  109. package/dist/proto/stats_pb.cjs +1253 -139
  110. package/dist/proto/stats_pb.cjs.map +1 -1
  111. package/dist/proto/stats_pb.d.cts +803 -692
  112. package/dist/proto/stats_pb.d.ts +803 -692
  113. package/dist/proto/stats_pb.d.ts.map +1 -1
  114. package/dist/proto/stats_pb.js +1216 -93
  115. package/dist/proto/stats_pb.js.map +1 -1
  116. package/dist/proto/track_pb.cjs +462 -64
  117. package/dist/proto/track_pb.cjs.map +1 -1
  118. package/dist/proto/track_pb.d.cts +250 -218
  119. package/dist/proto/track_pb.d.ts +250 -218
  120. package/dist/proto/track_pb.d.ts.map +1 -1
  121. package/dist/proto/track_pb.js +447 -45
  122. package/dist/proto/track_pb.js.map +1 -1
  123. package/dist/proto/track_publication_pb.cjs +130 -0
  124. package/dist/proto/track_publication_pb.cjs.map +1 -0
  125. package/dist/proto/track_publication_pb.d.cts +80 -0
  126. package/dist/proto/track_publication_pb.d.ts +80 -0
  127. package/dist/proto/track_publication_pb.d.ts.map +1 -0
  128. package/dist/proto/track_publication_pb.js +103 -0
  129. package/dist/proto/track_publication_pb.js.map +1 -0
  130. package/dist/proto/video_frame_pb.cjs +648 -88
  131. package/dist/proto/video_frame_pb.cjs.map +1 -1
  132. package/dist/proto/video_frame_pb.d.cts +371 -328
  133. package/dist/proto/video_frame_pb.d.ts +371 -328
  134. package/dist/proto/video_frame_pb.d.ts.map +1 -1
  135. package/dist/proto/video_frame_pb.js +626 -60
  136. package/dist/proto/video_frame_pb.js.map +1 -1
  137. package/dist/room.cjs +93 -125
  138. package/dist/room.cjs.map +1 -1
  139. package/dist/room.d.cts +6 -17
  140. package/dist/room.d.ts +6 -17
  141. package/dist/room.d.ts.map +1 -1
  142. package/dist/room.js +92 -122
  143. package/dist/room.js.map +1 -1
  144. package/dist/rpc.cjs.map +1 -1
  145. package/dist/rpc.d.cts +0 -1
  146. package/dist/rpc.d.ts +0 -1
  147. package/dist/rpc.js.map +1 -1
  148. package/dist/track.cjs +12 -8
  149. package/dist/track.cjs.map +1 -1
  150. package/dist/track.d.cts +8 -9
  151. package/dist/track.d.ts +8 -9
  152. package/dist/track.d.ts.map +1 -1
  153. package/dist/track.js +13 -9
  154. package/dist/track.js.map +1 -1
  155. package/dist/track_publication.cjs +21 -12
  156. package/dist/track_publication.cjs.map +1 -1
  157. package/dist/track_publication.d.cts +12 -13
  158. package/dist/track_publication.d.ts +12 -13
  159. package/dist/track_publication.d.ts.map +1 -1
  160. package/dist/track_publication.js +22 -13
  161. package/dist/track_publication.js.map +1 -1
  162. package/dist/version.cjs +1 -1
  163. package/dist/version.cjs.map +1 -1
  164. package/dist/version.d.cts +1 -1
  165. package/dist/version.d.ts +1 -1
  166. package/dist/version.js +1 -1
  167. package/dist/version.js.map +1 -1
  168. package/dist/video_frame.cjs +26 -45
  169. package/dist/video_frame.cjs.map +1 -1
  170. package/dist/video_frame.d.cts +2 -3
  171. package/dist/video_frame.d.ts +2 -3
  172. package/dist/video_frame.d.ts.map +1 -1
  173. package/dist/video_frame.js +29 -48
  174. package/dist/video_frame.js.map +1 -1
  175. package/dist/video_source.cjs +7 -4
  176. package/dist/video_source.cjs.map +1 -1
  177. package/dist/video_source.d.cts +4 -4
  178. package/dist/video_source.d.ts +4 -4
  179. package/dist/video_source.d.ts.map +1 -1
  180. package/dist/video_source.js +9 -6
  181. package/dist/video_source.js.map +1 -1
  182. package/dist/video_stream.cjs +16 -5
  183. package/dist/video_stream.cjs.map +1 -1
  184. package/dist/video_stream.d.cts +3 -4
  185. package/dist/video_stream.d.ts +3 -4
  186. package/dist/video_stream.d.ts.map +1 -1
  187. package/dist/video_stream.js +17 -6
  188. package/dist/video_stream.js.map +1 -1
  189. package/package.json +9 -9
  190. package/src/audio_frame.ts +10 -10
  191. package/src/audio_resampler.ts +15 -13
  192. package/src/audio_source.ts +11 -8
  193. package/src/audio_stream.ts +3 -4
  194. package/src/e2ee.ts +36 -37
  195. package/src/ffi_client.ts +8 -16
  196. package/src/index.ts +5 -68
  197. package/src/napi/native.d.ts +5 -5
  198. package/src/participant.ts +100 -72
  199. package/src/proto/audio_frame_pb.ts +1220 -496
  200. package/src/proto/e2ee_pb.ts +858 -337
  201. package/src/proto/ffi_pb.ts +442 -135
  202. package/src/proto/handle_pb.ts +33 -19
  203. package/src/proto/participant_pb.ts +225 -60
  204. package/src/proto/room_pb.ts +3149 -1013
  205. package/src/proto/rpc_pb.ts +358 -129
  206. package/src/proto/stats_pb.ts +1891 -877
  207. package/src/proto/track_pb.ts +587 -253
  208. package/src/proto/track_publication_pb.ts +180 -0
  209. package/src/proto/video_frame_pb.ts +861 -394
  210. package/src/room.ts +143 -188
  211. package/src/rpc.ts +1 -1
  212. package/src/track.ts +16 -17
  213. package/src/track_publication.ts +25 -26
  214. package/src/version.ts +1 -1
  215. package/src/video_frame.ts +48 -72
  216. package/src/video_source.ts +11 -8
  217. package/src/video_stream.ts +18 -8
@@ -1,8 +1,5 @@
1
- import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv1";
2
- import { file_handle } from "./handle_pb.js";
3
- const file_participant = /* @__PURE__ */ fileDesc("ChFwYXJ0aWNpcGFudC5wcm90bxINbGl2ZWtpdC5wcm90byL1AQoPUGFydGljaXBhbnRJbmZvEgsKA3NpZBgBIAIoCRIMCgRuYW1lGAIgAigJEhAKCGlkZW50aXR5GAMgAigJEhAKCG1ldGFkYXRhGAQgAigJEkIKCmF0dHJpYnV0ZXMYBSADKAsyLi5saXZla2l0LnByb3RvLlBhcnRpY2lwYW50SW5mby5BdHRyaWJ1dGVzRW50cnkSLAoEa2luZBgGIAIoDjIeLmxpdmVraXQucHJvdG8uUGFydGljaXBhbnRLaW5kGjEKD0F0dHJpYnV0ZXNFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgBIm8KEE93bmVkUGFydGljaXBhbnQSLQoGaGFuZGxlGAEgAigLMh0ubGl2ZWtpdC5wcm90by5GZmlPd25lZEhhbmRsZRIsCgRpbmZvGAIgAigLMh4ubGl2ZWtpdC5wcm90by5QYXJ0aWNpcGFudEluZm8qoQEKD1BhcnRpY2lwYW50S2luZBIdChlQQVJUSUNJUEFOVF9LSU5EX1NUQU5EQVJEEAASHAoYUEFSVElDSVBBTlRfS0lORF9JTkdSRVNTEAESGwoXUEFSVElDSVBBTlRfS0lORF9FR1JFU1MQAhIYChRQQVJUSUNJUEFOVF9LSU5EX1NJUBADEhoKFlBBUlRJQ0lQQU5UX0tJTkRfQUdFTlQQBEIQqgINTGl2ZUtpdC5Qcm90bw", [file_handle]);
4
- const ParticipantInfoSchema = /* @__PURE__ */ messageDesc(file_participant, 0);
5
- const OwnedParticipantSchema = /* @__PURE__ */ messageDesc(file_participant, 1);
1
+ import { Message, proto2 } from "@bufbuild/protobuf";
2
+ import { FfiOwnedHandle } from "./handle_pb.js";
6
3
  var ParticipantKind = /* @__PURE__ */ ((ParticipantKind2) => {
7
4
  ParticipantKind2[ParticipantKind2["STANDARD"] = 0] = "STANDARD";
8
5
  ParticipantKind2[ParticipantKind2["INGRESS"] = 1] = "INGRESS";
@@ -11,12 +8,113 @@ var ParticipantKind = /* @__PURE__ */ ((ParticipantKind2) => {
11
8
  ParticipantKind2[ParticipantKind2["AGENT"] = 4] = "AGENT";
12
9
  return ParticipantKind2;
13
10
  })(ParticipantKind || {});
14
- const ParticipantKindSchema = /* @__PURE__ */ enumDesc(file_participant, 0);
11
+ proto2.util.setEnumType(ParticipantKind, "livekit.proto.ParticipantKind", [
12
+ { no: 0, name: "PARTICIPANT_KIND_STANDARD" },
13
+ { no: 1, name: "PARTICIPANT_KIND_INGRESS" },
14
+ { no: 2, name: "PARTICIPANT_KIND_EGRESS" },
15
+ { no: 3, name: "PARTICIPANT_KIND_SIP" },
16
+ { no: 4, name: "PARTICIPANT_KIND_AGENT" }
17
+ ]);
18
+ var DisconnectReason = /* @__PURE__ */ ((DisconnectReason2) => {
19
+ DisconnectReason2[DisconnectReason2["UNKNOWN_REASON"] = 0] = "UNKNOWN_REASON";
20
+ DisconnectReason2[DisconnectReason2["CLIENT_INITIATED"] = 1] = "CLIENT_INITIATED";
21
+ DisconnectReason2[DisconnectReason2["DUPLICATE_IDENTITY"] = 2] = "DUPLICATE_IDENTITY";
22
+ DisconnectReason2[DisconnectReason2["SERVER_SHUTDOWN"] = 3] = "SERVER_SHUTDOWN";
23
+ DisconnectReason2[DisconnectReason2["PARTICIPANT_REMOVED"] = 4] = "PARTICIPANT_REMOVED";
24
+ DisconnectReason2[DisconnectReason2["ROOM_DELETED"] = 5] = "ROOM_DELETED";
25
+ DisconnectReason2[DisconnectReason2["STATE_MISMATCH"] = 6] = "STATE_MISMATCH";
26
+ DisconnectReason2[DisconnectReason2["JOIN_FAILURE"] = 7] = "JOIN_FAILURE";
27
+ DisconnectReason2[DisconnectReason2["MIGRATION"] = 8] = "MIGRATION";
28
+ DisconnectReason2[DisconnectReason2["SIGNAL_CLOSE"] = 9] = "SIGNAL_CLOSE";
29
+ DisconnectReason2[DisconnectReason2["ROOM_CLOSED"] = 10] = "ROOM_CLOSED";
30
+ DisconnectReason2[DisconnectReason2["USER_UNAVAILABLE"] = 11] = "USER_UNAVAILABLE";
31
+ DisconnectReason2[DisconnectReason2["USER_REJECTED"] = 12] = "USER_REJECTED";
32
+ DisconnectReason2[DisconnectReason2["SIP_TRUNK_FAILURE"] = 13] = "SIP_TRUNK_FAILURE";
33
+ return DisconnectReason2;
34
+ })(DisconnectReason || {});
35
+ proto2.util.setEnumType(DisconnectReason, "livekit.proto.DisconnectReason", [
36
+ { no: 0, name: "UNKNOWN_REASON" },
37
+ { no: 1, name: "CLIENT_INITIATED" },
38
+ { no: 2, name: "DUPLICATE_IDENTITY" },
39
+ { no: 3, name: "SERVER_SHUTDOWN" },
40
+ { no: 4, name: "PARTICIPANT_REMOVED" },
41
+ { no: 5, name: "ROOM_DELETED" },
42
+ { no: 6, name: "STATE_MISMATCH" },
43
+ { no: 7, name: "JOIN_FAILURE" },
44
+ { no: 8, name: "MIGRATION" },
45
+ { no: 9, name: "SIGNAL_CLOSE" },
46
+ { no: 10, name: "ROOM_CLOSED" },
47
+ { no: 11, name: "USER_UNAVAILABLE" },
48
+ { no: 12, name: "USER_REJECTED" },
49
+ { no: 13, name: "SIP_TRUNK_FAILURE" }
50
+ ]);
51
+ const _ParticipantInfo = class _ParticipantInfo extends Message {
52
+ constructor(data) {
53
+ super();
54
+ /**
55
+ * @generated from field: map<string, string> attributes = 5;
56
+ */
57
+ this.attributes = {};
58
+ proto2.util.initPartial(data, this);
59
+ }
60
+ static fromBinary(bytes, options) {
61
+ return new _ParticipantInfo().fromBinary(bytes, options);
62
+ }
63
+ static fromJson(jsonValue, options) {
64
+ return new _ParticipantInfo().fromJson(jsonValue, options);
65
+ }
66
+ static fromJsonString(jsonString, options) {
67
+ return new _ParticipantInfo().fromJsonString(jsonString, options);
68
+ }
69
+ static equals(a, b) {
70
+ return proto2.util.equals(_ParticipantInfo, a, b);
71
+ }
72
+ };
73
+ _ParticipantInfo.runtime = proto2;
74
+ _ParticipantInfo.typeName = "livekit.proto.ParticipantInfo";
75
+ _ParticipantInfo.fields = proto2.util.newFieldList(() => [
76
+ { no: 1, name: "sid", kind: "scalar", T: 9, req: true },
77
+ { no: 2, name: "name", kind: "scalar", T: 9, req: true },
78
+ { no: 3, name: "identity", kind: "scalar", T: 9, req: true },
79
+ { no: 4, name: "metadata", kind: "scalar", T: 9, req: true },
80
+ { no: 5, name: "attributes", kind: "map", K: 9, V: {
81
+ kind: "scalar",
82
+ T: 9
83
+ /* ScalarType.STRING */
84
+ } },
85
+ { no: 6, name: "kind", kind: "enum", T: proto2.getEnumType(ParticipantKind), req: true },
86
+ { no: 7, name: "disconnect_reason", kind: "enum", T: proto2.getEnumType(DisconnectReason), req: true }
87
+ ]);
88
+ let ParticipantInfo = _ParticipantInfo;
89
+ const _OwnedParticipant = class _OwnedParticipant extends Message {
90
+ constructor(data) {
91
+ super();
92
+ proto2.util.initPartial(data, this);
93
+ }
94
+ static fromBinary(bytes, options) {
95
+ return new _OwnedParticipant().fromBinary(bytes, options);
96
+ }
97
+ static fromJson(jsonValue, options) {
98
+ return new _OwnedParticipant().fromJson(jsonValue, options);
99
+ }
100
+ static fromJsonString(jsonString, options) {
101
+ return new _OwnedParticipant().fromJsonString(jsonString, options);
102
+ }
103
+ static equals(a, b) {
104
+ return proto2.util.equals(_OwnedParticipant, a, b);
105
+ }
106
+ };
107
+ _OwnedParticipant.runtime = proto2;
108
+ _OwnedParticipant.typeName = "livekit.proto.OwnedParticipant";
109
+ _OwnedParticipant.fields = proto2.util.newFieldList(() => [
110
+ { no: 1, name: "handle", kind: "message", T: FfiOwnedHandle, req: true },
111
+ { no: 2, name: "info", kind: "message", T: ParticipantInfo, req: true }
112
+ ]);
113
+ let OwnedParticipant = _OwnedParticipant;
15
114
  export {
16
- OwnedParticipantSchema,
17
- ParticipantInfoSchema,
18
- ParticipantKind,
19
- ParticipantKindSchema,
20
- file_participant
115
+ DisconnectReason,
116
+ OwnedParticipant,
117
+ ParticipantInfo,
118
+ ParticipantKind
21
119
  };
22
120
  //# sourceMappingURL=participant_pb.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/proto/participant_pb.ts"],"sourcesContent":["// Copyright 2023 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 v2.2.0 with parameter \"target=ts,import_extension=js\"\n// @generated from file participant.proto (package livekit.proto, syntax proto2)\n/* eslint-disable */\n\nimport type { GenEnum, GenFile, GenMessage } from \"@bufbuild/protobuf/codegenv1\";\nimport { enumDesc, fileDesc, messageDesc } from \"@bufbuild/protobuf/codegenv1\";\nimport type { FfiOwnedHandle } from \"./handle_pb.js\";\nimport { file_handle } from \"./handle_pb.js\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file participant.proto.\n */\nexport const file_participant: GenFile = /*@__PURE__*/\n fileDesc(\"ChFwYXJ0aWNpcGFudC5wcm90bxINbGl2ZWtpdC5wcm90byL1AQoPUGFydGljaXBhbnRJbmZvEgsKA3NpZBgBIAIoCRIMCgRuYW1lGAIgAigJEhAKCGlkZW50aXR5GAMgAigJEhAKCG1ldGFkYXRhGAQgAigJEkIKCmF0dHJpYnV0ZXMYBSADKAsyLi5saXZla2l0LnByb3RvLlBhcnRpY2lwYW50SW5mby5BdHRyaWJ1dGVzRW50cnkSLAoEa2luZBgGIAIoDjIeLmxpdmVraXQucHJvdG8uUGFydGljaXBhbnRLaW5kGjEKD0F0dHJpYnV0ZXNFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgBIm8KEE93bmVkUGFydGljaXBhbnQSLQoGaGFuZGxlGAEgAigLMh0ubGl2ZWtpdC5wcm90by5GZmlPd25lZEhhbmRsZRIsCgRpbmZvGAIgAigLMh4ubGl2ZWtpdC5wcm90by5QYXJ0aWNpcGFudEluZm8qoQEKD1BhcnRpY2lwYW50S2luZBIdChlQQVJUSUNJUEFOVF9LSU5EX1NUQU5EQVJEEAASHAoYUEFSVElDSVBBTlRfS0lORF9JTkdSRVNTEAESGwoXUEFSVElDSVBBTlRfS0lORF9FR1JFU1MQAhIYChRQQVJUSUNJUEFOVF9LSU5EX1NJUBADEhoKFlBBUlRJQ0lQQU5UX0tJTkRfQUdFTlQQBEIQqgINTGl2ZUtpdC5Qcm90bw\", [file_handle]);\n\n/**\n * @generated from message livekit.proto.ParticipantInfo\n */\nexport type ParticipantInfo = Message<\"livekit.proto.ParticipantInfo\"> & {\n /**\n * @generated from field: required string sid = 1;\n */\n sid: string;\n\n /**\n * @generated from field: required string name = 2;\n */\n name: string;\n\n /**\n * @generated from field: required string identity = 3;\n */\n identity: string;\n\n /**\n * @generated from field: required string metadata = 4;\n */\n metadata: string;\n\n /**\n * @generated from field: map<string, string> attributes = 5;\n */\n attributes: { [key: string]: string };\n\n /**\n * @generated from field: required livekit.proto.ParticipantKind kind = 6;\n */\n kind: ParticipantKind;\n};\n\n/**\n * Describes the message livekit.proto.ParticipantInfo.\n * Use `create(ParticipantInfoSchema)` to create a new message.\n */\nexport const ParticipantInfoSchema: GenMessage<ParticipantInfo> = /*@__PURE__*/\n messageDesc(file_participant, 0);\n\n/**\n * @generated from message livekit.proto.OwnedParticipant\n */\nexport type OwnedParticipant = Message<\"livekit.proto.OwnedParticipant\"> & {\n /**\n * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1;\n */\n handle?: FfiOwnedHandle;\n\n /**\n * @generated from field: required livekit.proto.ParticipantInfo info = 2;\n */\n info?: ParticipantInfo;\n};\n\n/**\n * Describes the message livekit.proto.OwnedParticipant.\n * Use `create(OwnedParticipantSchema)` to create a new message.\n */\nexport const OwnedParticipantSchema: GenMessage<OwnedParticipant> = /*@__PURE__*/\n messageDesc(file_participant, 1);\n\n/**\n * @generated from enum livekit.proto.ParticipantKind\n */\nexport enum ParticipantKind {\n /**\n * @generated from enum value: PARTICIPANT_KIND_STANDARD = 0;\n */\n STANDARD = 0,\n\n /**\n * @generated from enum value: PARTICIPANT_KIND_INGRESS = 1;\n */\n INGRESS = 1,\n\n /**\n * @generated from enum value: PARTICIPANT_KIND_EGRESS = 2;\n */\n EGRESS = 2,\n\n /**\n * @generated from enum value: PARTICIPANT_KIND_SIP = 3;\n */\n SIP = 3,\n\n /**\n * @generated from enum value: PARTICIPANT_KIND_AGENT = 4;\n */\n AGENT = 4,\n}\n\n/**\n * Describes the enum livekit.proto.ParticipantKind.\n */\nexport const ParticipantKindSchema: GenEnum<ParticipantKind> = /*@__PURE__*/\n enumDesc(file_participant, 0);\n\n"],"mappings":"AAmBA,SAAS,UAAU,UAAU,mBAAmB;AAEhD,SAAS,mBAAmB;AAMrB,MAAM,mBACX,yBAAS,swBAAswB,CAAC,WAAW,CAAC;AAyCvxB,MAAM,wBACX,4BAAY,kBAAkB,CAAC;AAqB1B,MAAM,yBACX,4BAAY,kBAAkB,CAAC;AAK1B,IAAK,kBAAL,kBAAKA,qBAAL;AAIL,EAAAA,kCAAA,cAAW,KAAX;AAKA,EAAAA,kCAAA,aAAU,KAAV;AAKA,EAAAA,kCAAA,YAAS,KAAT;AAKA,EAAAA,kCAAA,SAAM,KAAN;AAKA,EAAAA,kCAAA,WAAQ,KAAR;AAxBU,SAAAA;AAAA,GAAA;AA8BL,MAAM,wBACX,yBAAS,kBAAkB,CAAC;","names":["ParticipantKind"]}
1
+ {"version":3,"sources":["../../src/proto/participant_pb.ts"],"sourcesContent":["// Copyright 2023 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.0 with parameter \"target=ts,import_extension=.js\"\n// @generated from file participant.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\";\nimport { FfiOwnedHandle } from \"./handle_pb.js\";\n\n/**\n * @generated from enum livekit.proto.ParticipantKind\n */\nexport enum ParticipantKind {\n /**\n * @generated from enum value: PARTICIPANT_KIND_STANDARD = 0;\n */\n STANDARD = 0,\n\n /**\n * @generated from enum value: PARTICIPANT_KIND_INGRESS = 1;\n */\n INGRESS = 1,\n\n /**\n * @generated from enum value: PARTICIPANT_KIND_EGRESS = 2;\n */\n EGRESS = 2,\n\n /**\n * @generated from enum value: PARTICIPANT_KIND_SIP = 3;\n */\n SIP = 3,\n\n /**\n * @generated from enum value: PARTICIPANT_KIND_AGENT = 4;\n */\n AGENT = 4,\n}\n// Retrieve enum metadata with: proto2.getEnumType(ParticipantKind)\nproto2.util.setEnumType(ParticipantKind, \"livekit.proto.ParticipantKind\", [\n { no: 0, name: \"PARTICIPANT_KIND_STANDARD\" },\n { no: 1, name: \"PARTICIPANT_KIND_INGRESS\" },\n { no: 2, name: \"PARTICIPANT_KIND_EGRESS\" },\n { no: 3, name: \"PARTICIPANT_KIND_SIP\" },\n { no: 4, name: \"PARTICIPANT_KIND_AGENT\" },\n]);\n\n/**\n * @generated from enum livekit.proto.DisconnectReason\n */\nexport enum DisconnectReason {\n /**\n * @generated from enum value: UNKNOWN_REASON = 0;\n */\n UNKNOWN_REASON = 0,\n\n /**\n * the client initiated the disconnect\n *\n * @generated from enum value: CLIENT_INITIATED = 1;\n */\n CLIENT_INITIATED = 1,\n\n /**\n * another participant with the same identity has joined the room\n *\n * @generated from enum value: DUPLICATE_IDENTITY = 2;\n */\n DUPLICATE_IDENTITY = 2,\n\n /**\n * the server instance is shutting down\n *\n * @generated from enum value: SERVER_SHUTDOWN = 3;\n */\n SERVER_SHUTDOWN = 3,\n\n /**\n * RoomService.RemoveParticipant was called\n *\n * @generated from enum value: PARTICIPANT_REMOVED = 4;\n */\n PARTICIPANT_REMOVED = 4,\n\n /**\n * RoomService.DeleteRoom was called\n *\n * @generated from enum value: ROOM_DELETED = 5;\n */\n ROOM_DELETED = 5,\n\n /**\n * the client is attempting to resume a session, but server is not aware of it\n *\n * @generated from enum value: STATE_MISMATCH = 6;\n */\n STATE_MISMATCH = 6,\n\n /**\n * client was unable to connect fully\n *\n * @generated from enum value: JOIN_FAILURE = 7;\n */\n JOIN_FAILURE = 7,\n\n /**\n * Cloud-only, the server requested Participant to migrate the connection elsewhere\n *\n * @generated from enum value: MIGRATION = 8;\n */\n MIGRATION = 8,\n\n /**\n * the signal websocket was closed unexpectedly\n *\n * @generated from enum value: SIGNAL_CLOSE = 9;\n */\n SIGNAL_CLOSE = 9,\n\n /**\n * the room was closed, due to all Standard and Ingress participants having left\n *\n * @generated from enum value: ROOM_CLOSED = 10;\n */\n ROOM_CLOSED = 10,\n\n /**\n * SIP callee did not respond in time\n *\n * @generated from enum value: USER_UNAVAILABLE = 11;\n */\n USER_UNAVAILABLE = 11,\n\n /**\n * SIP callee rejected the call (busy)\n *\n * @generated from enum value: USER_REJECTED = 12;\n */\n USER_REJECTED = 12,\n\n /**\n * SIP protocol failure or unexpected response\n *\n * @generated from enum value: SIP_TRUNK_FAILURE = 13;\n */\n SIP_TRUNK_FAILURE = 13,\n}\n// Retrieve enum metadata with: proto2.getEnumType(DisconnectReason)\nproto2.util.setEnumType(DisconnectReason, \"livekit.proto.DisconnectReason\", [\n { no: 0, name: \"UNKNOWN_REASON\" },\n { no: 1, name: \"CLIENT_INITIATED\" },\n { no: 2, name: \"DUPLICATE_IDENTITY\" },\n { no: 3, name: \"SERVER_SHUTDOWN\" },\n { no: 4, name: \"PARTICIPANT_REMOVED\" },\n { no: 5, name: \"ROOM_DELETED\" },\n { no: 6, name: \"STATE_MISMATCH\" },\n { no: 7, name: \"JOIN_FAILURE\" },\n { no: 8, name: \"MIGRATION\" },\n { no: 9, name: \"SIGNAL_CLOSE\" },\n { no: 10, name: \"ROOM_CLOSED\" },\n { no: 11, name: \"USER_UNAVAILABLE\" },\n { no: 12, name: \"USER_REJECTED\" },\n { no: 13, name: \"SIP_TRUNK_FAILURE\" },\n]);\n\n/**\n * @generated from message livekit.proto.ParticipantInfo\n */\nexport class ParticipantInfo extends Message<ParticipantInfo> {\n /**\n * @generated from field: required string sid = 1;\n */\n sid?: string;\n\n /**\n * @generated from field: required string name = 2;\n */\n name?: string;\n\n /**\n * @generated from field: required string identity = 3;\n */\n identity?: string;\n\n /**\n * @generated from field: required string metadata = 4;\n */\n metadata?: string;\n\n /**\n * @generated from field: map<string, string> attributes = 5;\n */\n attributes: { [key: string]: string } = {};\n\n /**\n * @generated from field: required livekit.proto.ParticipantKind kind = 6;\n */\n kind?: ParticipantKind;\n\n /**\n * @generated from field: required livekit.proto.DisconnectReason disconnect_reason = 7;\n */\n disconnectReason?: DisconnectReason;\n\n constructor(data?: PartialMessage<ParticipantInfo>) {\n super();\n proto2.util.initPartial(data, this);\n }\n\n static readonly runtime: typeof proto2 = proto2;\n static readonly typeName = \"livekit.proto.ParticipantInfo\";\n static readonly fields: FieldList = proto2.util.newFieldList(() => [\n { no: 1, name: \"sid\", kind: \"scalar\", T: 9 /* ScalarType.STRING */, req: true },\n { no: 2, name: \"name\", kind: \"scalar\", T: 9 /* ScalarType.STRING */, req: true },\n { no: 3, name: \"identity\", kind: \"scalar\", T: 9 /* ScalarType.STRING */, req: true },\n { no: 4, name: \"metadata\", kind: \"scalar\", T: 9 /* ScalarType.STRING */, req: true },\n { no: 5, name: \"attributes\", kind: \"map\", K: 9 /* ScalarType.STRING */, V: {kind: \"scalar\", T: 9 /* ScalarType.STRING */} },\n { no: 6, name: \"kind\", kind: \"enum\", T: proto2.getEnumType(ParticipantKind), req: true },\n { no: 7, name: \"disconnect_reason\", kind: \"enum\", T: proto2.getEnumType(DisconnectReason), req: true },\n ]);\n\n static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ParticipantInfo {\n return new ParticipantInfo().fromBinary(bytes, options);\n }\n\n static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ParticipantInfo {\n return new ParticipantInfo().fromJson(jsonValue, options);\n }\n\n static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ParticipantInfo {\n return new ParticipantInfo().fromJsonString(jsonString, options);\n }\n\n static equals(a: ParticipantInfo | PlainMessage<ParticipantInfo> | undefined, b: ParticipantInfo | PlainMessage<ParticipantInfo> | undefined): boolean {\n return proto2.util.equals(ParticipantInfo, a, b);\n }\n}\n\n/**\n * @generated from message livekit.proto.OwnedParticipant\n */\nexport class OwnedParticipant extends Message<OwnedParticipant> {\n /**\n * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1;\n */\n handle?: FfiOwnedHandle;\n\n /**\n * @generated from field: required livekit.proto.ParticipantInfo info = 2;\n */\n info?: ParticipantInfo;\n\n constructor(data?: PartialMessage<OwnedParticipant>) {\n super();\n proto2.util.initPartial(data, this);\n }\n\n static readonly runtime: typeof proto2 = proto2;\n static readonly typeName = \"livekit.proto.OwnedParticipant\";\n static readonly fields: FieldList = proto2.util.newFieldList(() => [\n { no: 1, name: \"handle\", kind: \"message\", T: FfiOwnedHandle, req: true },\n { no: 2, name: \"info\", kind: \"message\", T: ParticipantInfo, req: true },\n ]);\n\n static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OwnedParticipant {\n return new OwnedParticipant().fromBinary(bytes, options);\n }\n\n static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OwnedParticipant {\n return new OwnedParticipant().fromJson(jsonValue, options);\n }\n\n static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OwnedParticipant {\n return new OwnedParticipant().fromJsonString(jsonString, options);\n }\n\n static equals(a: OwnedParticipant | PlainMessage<OwnedParticipant> | undefined, b: OwnedParticipant | PlainMessage<OwnedParticipant> | undefined): boolean {\n return proto2.util.equals(OwnedParticipant, a, b);\n }\n}\n\n"],"mappings":"AAoBA,SAAS,SAAS,cAAc;AAChC,SAAS,sBAAsB;AAKxB,IAAK,kBAAL,kBAAKA,qBAAL;AAIL,EAAAA,kCAAA,cAAW,KAAX;AAKA,EAAAA,kCAAA,aAAU,KAAV;AAKA,EAAAA,kCAAA,YAAS,KAAT;AAKA,EAAAA,kCAAA,SAAM,KAAN;AAKA,EAAAA,kCAAA,WAAQ,KAAR;AAxBU,SAAAA;AAAA,GAAA;AA2BZ,OAAO,KAAK,YAAY,iBAAiB,iCAAiC;AAAA,EACxE,EAAE,IAAI,GAAG,MAAM,4BAA4B;AAAA,EAC3C,EAAE,IAAI,GAAG,MAAM,2BAA2B;AAAA,EAC1C,EAAE,IAAI,GAAG,MAAM,0BAA0B;AAAA,EACzC,EAAE,IAAI,GAAG,MAAM,uBAAuB;AAAA,EACtC,EAAE,IAAI,GAAG,MAAM,yBAAyB;AAC1C,CAAC;AAKM,IAAK,mBAAL,kBAAKC,sBAAL;AAIL,EAAAA,oCAAA,oBAAiB,KAAjB;AAOA,EAAAA,oCAAA,sBAAmB,KAAnB;AAOA,EAAAA,oCAAA,wBA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