@livekit/rtc-node 0.12.1 → 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 (223) 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 +31 -0
  4. package/dist/audio_frame.d.ts +11 -5
  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 +59 -0
  11. package/dist/audio_resampler.d.ts +11 -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 +37 -0
  18. package/dist/audio_source.d.ts +13 -5
  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 +37 -0
  25. package/dist/audio_stream.d.ts +16 -5
  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 +47 -0
  32. package/dist/e2ee.d.ts +11 -8
  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 +35 -0
  39. package/dist/ffi_client.d.ts +23 -11
  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 +28 -0
  46. package/dist/index.d.ts +20 -41
  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.d.cts +21 -0
  52. package/dist/napi/native.d.d.ts +21 -0
  53. package/dist/napi/native.d.ts +5 -5
  54. package/dist/native.d.ts +5 -5
  55. package/dist/participant.cjs +57 -34
  56. package/dist/participant.cjs.map +1 -1
  57. package/dist/participant.d.cts +126 -0
  58. package/dist/participant.d.ts +34 -20
  59. package/dist/participant.d.ts.map +1 -1
  60. package/dist/participant.js +75 -50
  61. package/dist/participant.js.map +1 -1
  62. package/dist/proto/audio_frame_pb.cjs +977 -125
  63. package/dist/proto/audio_frame_pb.cjs.map +1 -1
  64. package/dist/proto/audio_frame_pb.d.cts +898 -0
  65. package/dist/proto/audio_frame_pb.d.ts +506 -417
  66. package/dist/proto/audio_frame_pb.d.ts.map +1 -1
  67. package/dist/proto/audio_frame_pb.js +943 -85
  68. package/dist/proto/audio_frame_pb.js.map +1 -1
  69. package/dist/proto/e2ee_pb.cjs +700 -85
  70. package/dist/proto/e2ee_pb.cjs.map +1 -1
  71. package/dist/proto/e2ee_pb.d.cts +653 -0
  72. package/dist/proto/e2ee_pb.d.ts +333 -263
  73. package/dist/proto/e2ee_pb.d.ts.map +1 -1
  74. package/dist/proto/e2ee_pb.js +675 -57
  75. package/dist/proto/e2ee_pb.js.map +1 -1
  76. package/dist/proto/ffi_pb.cjs +369 -36
  77. package/dist/proto/ffi_pb.cjs.map +1 -1
  78. package/dist/proto/ffi_pb.d.cts +898 -0
  79. package/dist/proto/ffi_pb.d.ts +164 -112
  80. package/dist/proto/ffi_pb.d.ts.map +1 -1
  81. package/dist/proto/ffi_pb.js +364 -29
  82. package/dist/proto/ffi_pb.js.map +1 -1
  83. package/dist/proto/handle_pb.cjs +27 -7
  84. package/dist/proto/handle_pb.cjs.map +1 -1
  85. package/dist/proto/handle_pb.d.cts +31 -0
  86. package/dist/proto/handle_pb.d.ts +15 -15
  87. package/dist/proto/handle_pb.d.ts.map +1 -1
  88. package/dist/proto/handle_pb.js +26 -5
  89. package/dist/proto/handle_pb.js.map +1 -1
  90. package/dist/proto/participant_pb.cjs +112 -15
  91. package/dist/proto/participant_pb.cjs.map +1 -1
  92. package/dist/proto/participant_pb.d.cts +181 -0
  93. package/dist/proto/participant_pb.d.ts +143 -53
  94. package/dist/proto/participant_pb.d.ts.map +1 -1
  95. package/dist/proto/participant_pb.js +109 -11
  96. package/dist/proto/participant_pb.js.map +1 -1
  97. package/dist/proto/room_pb.cjs +2693 -302
  98. package/dist/proto/room_pb.cjs.map +1 -1
  99. package/dist/proto/room_pb.d.cts +2475 -0
  100. package/dist/proto/room_pb.d.ts +1269 -864
  101. package/dist/proto/room_pb.d.ts.map +1 -1
  102. package/dist/proto/room_pb.js +2603 -210
  103. package/dist/proto/room_pb.js.map +1 -1
  104. package/dist/proto/rpc_pb.cjs +302 -37
  105. package/dist/proto/rpc_pb.cjs.map +1 -1
  106. package/dist/proto/rpc_pb.d.cts +267 -0
  107. package/dist/proto/rpc_pb.d.ts +140 -108
  108. package/dist/proto/rpc_pb.d.ts.map +1 -1
  109. package/dist/proto/rpc_pb.js +291 -25
  110. package/dist/proto/rpc_pb.js.map +1 -1
  111. package/dist/proto/stats_pb.cjs +1253 -139
  112. package/dist/proto/stats_pb.cjs.map +1 -1
  113. package/dist/proto/stats_pb.d.cts +1764 -0
  114. package/dist/proto/stats_pb.d.ts +806 -693
  115. package/dist/proto/stats_pb.d.ts.map +1 -1
  116. package/dist/proto/stats_pb.js +1216 -93
  117. package/dist/proto/stats_pb.js.map +1 -1
  118. package/dist/proto/track_pb.cjs +462 -64
  119. package/dist/proto/track_pb.cjs.map +1 -1
  120. package/dist/proto/track_pb.d.cts +434 -0
  121. package/dist/proto/track_pb.d.ts +254 -220
  122. package/dist/proto/track_pb.d.ts.map +1 -1
  123. package/dist/proto/track_pb.js +447 -45
  124. package/dist/proto/track_pb.js.map +1 -1
  125. package/dist/proto/track_publication_pb.cjs +130 -0
  126. package/dist/proto/track_publication_pb.cjs.map +1 -0
  127. package/dist/proto/track_publication_pb.d.cts +80 -0
  128. package/dist/proto/track_publication_pb.d.ts +80 -0
  129. package/dist/proto/track_publication_pb.d.ts.map +1 -0
  130. package/dist/proto/track_publication_pb.js +103 -0
  131. package/dist/proto/track_publication_pb.js.map +1 -0
  132. package/dist/proto/video_frame_pb.cjs +648 -88
  133. package/dist/proto/video_frame_pb.cjs.map +1 -1
  134. package/dist/proto/video_frame_pb.d.cts +660 -0
  135. package/dist/proto/video_frame_pb.d.ts +375 -328
  136. package/dist/proto/video_frame_pb.d.ts.map +1 -1
  137. package/dist/proto/video_frame_pb.js +626 -60
  138. package/dist/proto/video_frame_pb.js.map +1 -1
  139. package/dist/room.cjs +93 -125
  140. package/dist/room.cjs.map +1 -1
  141. package/dist/room.d.cts +123 -0
  142. package/dist/room.d.ts +37 -34
  143. package/dist/room.d.ts.map +1 -1
  144. package/dist/room.js +92 -122
  145. package/dist/room.js.map +1 -1
  146. package/dist/rpc.cjs.map +1 -1
  147. package/dist/rpc.d.cts +81 -0
  148. package/dist/rpc.d.ts +10 -7
  149. package/dist/rpc.js.map +1 -1
  150. package/dist/track.cjs +12 -8
  151. package/dist/track.cjs.map +1 -1
  152. package/dist/track.d.cts +45 -0
  153. package/dist/track.d.ts +30 -20
  154. package/dist/track.d.ts.map +1 -1
  155. package/dist/track.js +13 -9
  156. package/dist/track.js.map +1 -1
  157. package/dist/track_publication.cjs +21 -12
  158. package/dist/track_publication.cjs.map +1 -1
  159. package/dist/track_publication.d.cts +47 -0
  160. package/dist/track_publication.d.ts +30 -19
  161. package/dist/track_publication.d.ts.map +1 -1
  162. package/dist/track_publication.js +22 -13
  163. package/dist/track_publication.js.map +1 -1
  164. package/dist/transcription.d.cts +15 -0
  165. package/dist/transcription.d.ts +4 -3
  166. package/dist/types.d.cts +9 -0
  167. package/dist/types.d.ts +3 -2
  168. package/dist/version.cjs +1 -1
  169. package/dist/version.cjs.map +1 -1
  170. package/dist/version.d.cts +3 -0
  171. package/dist/version.d.ts +3 -2
  172. package/dist/version.js +1 -1
  173. package/dist/version.js.map +1 -1
  174. package/dist/video_frame.cjs +26 -45
  175. package/dist/video_frame.cjs.map +1 -1
  176. package/dist/video_frame.d.cts +24 -0
  177. package/dist/video_frame.d.ts +10 -4
  178. package/dist/video_frame.d.ts.map +1 -1
  179. package/dist/video_frame.js +29 -48
  180. package/dist/video_frame.js.map +1 -1
  181. package/dist/video_source.cjs +7 -4
  182. package/dist/video_source.cjs.map +1 -1
  183. package/dist/video_source.d.cts +22 -0
  184. package/dist/video_source.d.ts +14 -7
  185. package/dist/video_source.d.ts.map +1 -1
  186. package/dist/video_source.js +9 -6
  187. package/dist/video_source.js.map +1 -1
  188. package/dist/video_stream.cjs +16 -5
  189. package/dist/video_stream.cjs.map +1 -1
  190. package/dist/video_stream.d.cts +40 -0
  191. package/dist/video_stream.d.ts +18 -7
  192. package/dist/video_stream.d.ts.map +1 -1
  193. package/dist/video_stream.js +17 -6
  194. package/dist/video_stream.js.map +1 -1
  195. package/package.json +17 -12
  196. package/src/audio_frame.ts +10 -10
  197. package/src/audio_resampler.ts +15 -13
  198. package/src/audio_source.ts +11 -8
  199. package/src/audio_stream.ts +3 -4
  200. package/src/e2ee.ts +36 -37
  201. package/src/ffi_client.ts +8 -16
  202. package/src/index.ts +5 -68
  203. package/src/napi/native.d.ts +5 -5
  204. package/src/participant.ts +100 -72
  205. package/src/proto/audio_frame_pb.ts +1220 -496
  206. package/src/proto/e2ee_pb.ts +858 -337
  207. package/src/proto/ffi_pb.ts +442 -135
  208. package/src/proto/handle_pb.ts +33 -19
  209. package/src/proto/participant_pb.ts +225 -60
  210. package/src/proto/room_pb.ts +3149 -1013
  211. package/src/proto/rpc_pb.ts +358 -129
  212. package/src/proto/stats_pb.ts +1891 -877
  213. package/src/proto/track_pb.ts +587 -253
  214. package/src/proto/track_publication_pb.ts +180 -0
  215. package/src/proto/video_frame_pb.ts +861 -394
  216. package/src/room.ts +143 -188
  217. package/src/rpc.ts +1 -1
  218. package/src/track.ts +16 -17
  219. package/src/track_publication.ts +25 -26
  220. package/src/version.ts +1 -1
  221. package/src/video_frame.ts +48 -72
  222. package/src/video_source.ts +11 -8
  223. package/src/video_stream.ts +18 -8
@@ -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":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAmBA,uBAAgD;AAEhD,uBAA4B;AAMrB,MAAM,mBACX,+CAAS,swBAAswB,CAAC,4BAAW,CAAC;AAyCvxB,MAAM,wBACX,kDAAY,kBAAkB,CAAC;AAqB1B,MAAM,yBACX,kDAAY,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,+CAAS,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":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAoBA,sBAAgC;AAChC,uBAA+B;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,uBAAO,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,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KAAK;AAAA,EACvF,EAAE,IAAI,GAAG,MAAM,qBAAqB,MAAM,QAAQ,GAAG,uBAAO,YAAY,gBAAgB,GAAG,KAAK,KAAK;AACvG,CAAC;AAnDI,IAAM,kBAAN;AAyEA,MAAM,oBAAN,MAAM,0BAAyB,wBAA0B;AAAA,EAW9D,YAAY,MAAyC;AACnD,UAAM;AACN,2BAAO,KAAK,YAAY,MAAM,IAAI;AAAA,EACpC;AAAA,EASA,OAAO,WAAW,OAAmB,SAAwD;AAC3F,WAAO,IAAI,kBAAiB,EAAE,WAAW,OAAO,OAAO;AAAA,EACzD;AAAA,EAEA,OAAO,SAAS,WAAsB,SAAsD;AAC1F,WAAO,IAAI,kBAAiB,EAAE,SAAS,WAAW,OAAO;AAAA,EAC3D;AAAA,EAEA,OAAO,eAAe,YAAoB,SAAsD;AAC9F,WAAO,IAAI,kBAAiB,EAAE,eAAe,YAAY,OAAO;AAAA,EAClE;AAAA,EAEA,OAAO,OAAO,GAAkE,GAA2E;AACzJ,WAAO,uBAAO,KAAK,OAAO,mBAAkB,GAAG,CAAC;AAAA,EAClD;AACF;AAtCa,kBAgBK,UAAyB;AAhB9B,kBAiBK,WAAW;AAjBhB,kBAkBK,SAAoB,uBAAO,KAAK,aAAa,MAAM;AAAA,EACjE,EAAE,IAAI,GAAG,MAAM,UAAU,MAAM,WAAW,GAAG,iCAAgB,KAAK,KAAK;AAAA,EACvE,EAAE,IAAI,GAAG,MAAM,QAAQ,MAAM,WAAW,GAAG,iBAAiB,KAAK,KAAK;AACxE,CAAC;AArBI,IAAM,mBAAN;","names":["ParticipantKind","DisconnectReason"]}
@@ -0,0 +1,181 @@
1
+ import { Message, PartialMessage, proto2, FieldList, BinaryReadOptions, JsonValue, JsonReadOptions, PlainMessage } from '@bufbuild/protobuf';
2
+ import { FfiOwnedHandle } from './handle_pb.cjs';
3
+
4
+ /**
5
+ * @generated from enum livekit.proto.ParticipantKind
6
+ */
7
+ declare enum ParticipantKind {
8
+ /**
9
+ * @generated from enum value: PARTICIPANT_KIND_STANDARD = 0;
10
+ */
11
+ STANDARD = 0,
12
+ /**
13
+ * @generated from enum value: PARTICIPANT_KIND_INGRESS = 1;
14
+ */
15
+ INGRESS = 1,
16
+ /**
17
+ * @generated from enum value: PARTICIPANT_KIND_EGRESS = 2;
18
+ */
19
+ EGRESS = 2,
20
+ /**
21
+ * @generated from enum value: PARTICIPANT_KIND_SIP = 3;
22
+ */
23
+ SIP = 3,
24
+ /**
25
+ * @generated from enum value: PARTICIPANT_KIND_AGENT = 4;
26
+ */
27
+ AGENT = 4
28
+ }
29
+ /**
30
+ * @generated from enum livekit.proto.DisconnectReason
31
+ */
32
+ declare enum DisconnectReason {
33
+ /**
34
+ * @generated from enum value: UNKNOWN_REASON = 0;
35
+ */
36
+ UNKNOWN_REASON = 0,
37
+ /**
38
+ * the client initiated the disconnect
39
+ *
40
+ * @generated from enum value: CLIENT_INITIATED = 1;
41
+ */
42
+ CLIENT_INITIATED = 1,
43
+ /**
44
+ * another participant with the same identity has joined the room
45
+ *
46
+ * @generated from enum value: DUPLICATE_IDENTITY = 2;
47
+ */
48
+ DUPLICATE_IDENTITY = 2,
49
+ /**
50
+ * the server instance is shutting down
51
+ *
52
+ * @generated from enum value: SERVER_SHUTDOWN = 3;
53
+ */
54
+ SERVER_SHUTDOWN = 3,
55
+ /**
56
+ * RoomService.RemoveParticipant was called
57
+ *
58
+ * @generated from enum value: PARTICIPANT_REMOVED = 4;
59
+ */
60
+ PARTICIPANT_REMOVED = 4,
61
+ /**
62
+ * RoomService.DeleteRoom was called
63
+ *
64
+ * @generated from enum value: ROOM_DELETED = 5;
65
+ */
66
+ ROOM_DELETED = 5,
67
+ /**
68
+ * the client is attempting to resume a session, but server is not aware of it
69
+ *
70
+ * @generated from enum value: STATE_MISMATCH = 6;
71
+ */
72
+ STATE_MISMATCH = 6,
73
+ /**
74
+ * client was unable to connect fully
75
+ *
76
+ * @generated from enum value: JOIN_FAILURE = 7;
77
+ */
78
+ JOIN_FAILURE = 7,
79
+ /**
80
+ * Cloud-only, the server requested Participant to migrate the connection elsewhere
81
+ *
82
+ * @generated from enum value: MIGRATION = 8;
83
+ */
84
+ MIGRATION = 8,
85
+ /**
86
+ * the signal websocket was closed unexpectedly
87
+ *
88
+ * @generated from enum value: SIGNAL_CLOSE = 9;
89
+ */
90
+ SIGNAL_CLOSE = 9,
91
+ /**
92
+ * the room was closed, due to all Standard and Ingress participants having left
93
+ *
94
+ * @generated from enum value: ROOM_CLOSED = 10;
95
+ */
96
+ ROOM_CLOSED = 10,
97
+ /**
98
+ * SIP callee did not respond in time
99
+ *
100
+ * @generated from enum value: USER_UNAVAILABLE = 11;
101
+ */
102
+ USER_UNAVAILABLE = 11,
103
+ /**
104
+ * SIP callee rejected the call (busy)
105
+ *
106
+ * @generated from enum value: USER_REJECTED = 12;
107
+ */
108
+ USER_REJECTED = 12,
109
+ /**
110
+ * SIP protocol failure or unexpected response
111
+ *
112
+ * @generated from enum value: SIP_TRUNK_FAILURE = 13;
113
+ */
114
+ SIP_TRUNK_FAILURE = 13
115
+ }
116
+ /**
117
+ * @generated from message livekit.proto.ParticipantInfo
118
+ */
119
+ declare class ParticipantInfo extends Message<ParticipantInfo> {
120
+ /**
121
+ * @generated from field: required string sid = 1;
122
+ */
123
+ sid?: string;
124
+ /**
125
+ * @generated from field: required string name = 2;
126
+ */
127
+ name?: string;
128
+ /**
129
+ * @generated from field: required string identity = 3;
130
+ */
131
+ identity?: string;
132
+ /**
133
+ * @generated from field: required string metadata = 4;
134
+ */
135
+ metadata?: string;
136
+ /**
137
+ * @generated from field: map<string, string> attributes = 5;
138
+ */
139
+ attributes: {
140
+ [key: string]: string;
141
+ };
142
+ /**
143
+ * @generated from field: required livekit.proto.ParticipantKind kind = 6;
144
+ */
145
+ kind?: ParticipantKind;
146
+ /**
147
+ * @generated from field: required livekit.proto.DisconnectReason disconnect_reason = 7;
148
+ */
149
+ disconnectReason?: DisconnectReason;
150
+ constructor(data?: PartialMessage<ParticipantInfo>);
151
+ static readonly runtime: typeof proto2;
152
+ static readonly typeName = "livekit.proto.ParticipantInfo";
153
+ static readonly fields: FieldList;
154
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ParticipantInfo;
155
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ParticipantInfo;
156
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ParticipantInfo;
157
+ static equals(a: ParticipantInfo | PlainMessage<ParticipantInfo> | undefined, b: ParticipantInfo | PlainMessage<ParticipantInfo> | undefined): boolean;
158
+ }
159
+ /**
160
+ * @generated from message livekit.proto.OwnedParticipant
161
+ */
162
+ declare class OwnedParticipant extends Message<OwnedParticipant> {
163
+ /**
164
+ * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1;
165
+ */
166
+ handle?: FfiOwnedHandle;
167
+ /**
168
+ * @generated from field: required livekit.proto.ParticipantInfo info = 2;
169
+ */
170
+ info?: ParticipantInfo;
171
+ constructor(data?: PartialMessage<OwnedParticipant>);
172
+ static readonly runtime: typeof proto2;
173
+ static readonly typeName = "livekit.proto.OwnedParticipant";
174
+ static readonly fields: FieldList;
175
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OwnedParticipant;
176
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OwnedParticipant;
177
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OwnedParticipant;
178
+ static equals(a: OwnedParticipant | PlainMessage<OwnedParticipant> | undefined, b: OwnedParticipant | PlainMessage<OwnedParticipant> | undefined): boolean;
179
+ }
180
+
181
+ export { DisconnectReason, OwnedParticipant, ParticipantInfo, ParticipantKind };
@@ -1,30 +1,138 @@
1
- import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
2
- import type { FfiOwnedHandle } from "./handle_pb.js";
3
- import type { Message } from "@bufbuild/protobuf";
1
+ import { Message, PartialMessage, proto2, FieldList, BinaryReadOptions, JsonValue, JsonReadOptions, PlainMessage } from '@bufbuild/protobuf';
2
+ import { FfiOwnedHandle } from './handle_pb.js';
3
+
4
4
  /**
5
- * Describes the file participant.proto.
5
+ * @generated from enum livekit.proto.ParticipantKind
6
6
  */
7
- export declare const file_participant: GenFile;
7
+ declare enum ParticipantKind {
8
+ /**
9
+ * @generated from enum value: PARTICIPANT_KIND_STANDARD = 0;
10
+ */
11
+ STANDARD = 0,
12
+ /**
13
+ * @generated from enum value: PARTICIPANT_KIND_INGRESS = 1;
14
+ */
15
+ INGRESS = 1,
16
+ /**
17
+ * @generated from enum value: PARTICIPANT_KIND_EGRESS = 2;
18
+ */
19
+ EGRESS = 2,
20
+ /**
21
+ * @generated from enum value: PARTICIPANT_KIND_SIP = 3;
22
+ */
23
+ SIP = 3,
24
+ /**
25
+ * @generated from enum value: PARTICIPANT_KIND_AGENT = 4;
26
+ */
27
+ AGENT = 4
28
+ }
29
+ /**
30
+ * @generated from enum livekit.proto.DisconnectReason
31
+ */
32
+ declare enum DisconnectReason {
33
+ /**
34
+ * @generated from enum value: UNKNOWN_REASON = 0;
35
+ */
36
+ UNKNOWN_REASON = 0,
37
+ /**
38
+ * the client initiated the disconnect
39
+ *
40
+ * @generated from enum value: CLIENT_INITIATED = 1;
41
+ */
42
+ CLIENT_INITIATED = 1,
43
+ /**
44
+ * another participant with the same identity has joined the room
45
+ *
46
+ * @generated from enum value: DUPLICATE_IDENTITY = 2;
47
+ */
48
+ DUPLICATE_IDENTITY = 2,
49
+ /**
50
+ * the server instance is shutting down
51
+ *
52
+ * @generated from enum value: SERVER_SHUTDOWN = 3;
53
+ */
54
+ SERVER_SHUTDOWN = 3,
55
+ /**
56
+ * RoomService.RemoveParticipant was called
57
+ *
58
+ * @generated from enum value: PARTICIPANT_REMOVED = 4;
59
+ */
60
+ PARTICIPANT_REMOVED = 4,
61
+ /**
62
+ * RoomService.DeleteRoom was called
63
+ *
64
+ * @generated from enum value: ROOM_DELETED = 5;
65
+ */
66
+ ROOM_DELETED = 5,
67
+ /**
68
+ * the client is attempting to resume a session, but server is not aware of it
69
+ *
70
+ * @generated from enum value: STATE_MISMATCH = 6;
71
+ */
72
+ STATE_MISMATCH = 6,
73
+ /**
74
+ * client was unable to connect fully
75
+ *
76
+ * @generated from enum value: JOIN_FAILURE = 7;
77
+ */
78
+ JOIN_FAILURE = 7,
79
+ /**
80
+ * Cloud-only, the server requested Participant to migrate the connection elsewhere
81
+ *
82
+ * @generated from enum value: MIGRATION = 8;
83
+ */
84
+ MIGRATION = 8,
85
+ /**
86
+ * the signal websocket was closed unexpectedly
87
+ *
88
+ * @generated from enum value: SIGNAL_CLOSE = 9;
89
+ */
90
+ SIGNAL_CLOSE = 9,
91
+ /**
92
+ * the room was closed, due to all Standard and Ingress participants having left
93
+ *
94
+ * @generated from enum value: ROOM_CLOSED = 10;
95
+ */
96
+ ROOM_CLOSED = 10,
97
+ /**
98
+ * SIP callee did not respond in time
99
+ *
100
+ * @generated from enum value: USER_UNAVAILABLE = 11;
101
+ */
102
+ USER_UNAVAILABLE = 11,
103
+ /**
104
+ * SIP callee rejected the call (busy)
105
+ *
106
+ * @generated from enum value: USER_REJECTED = 12;
107
+ */
108
+ USER_REJECTED = 12,
109
+ /**
110
+ * SIP protocol failure or unexpected response
111
+ *
112
+ * @generated from enum value: SIP_TRUNK_FAILURE = 13;
113
+ */
114
+ SIP_TRUNK_FAILURE = 13
115
+ }
8
116
  /**
9
117
  * @generated from message livekit.proto.ParticipantInfo
10
118
  */
11
- export type ParticipantInfo = Message<"livekit.proto.ParticipantInfo"> & {
119
+ declare class ParticipantInfo extends Message<ParticipantInfo> {
12
120
  /**
13
121
  * @generated from field: required string sid = 1;
14
122
  */
15
- sid: string;
123
+ sid?: string;
16
124
  /**
17
125
  * @generated from field: required string name = 2;
18
126
  */
19
- name: string;
127
+ name?: string;
20
128
  /**
21
129
  * @generated from field: required string identity = 3;
22
130
  */
23
- identity: string;
131
+ identity?: string;
24
132
  /**
25
133
  * @generated from field: required string metadata = 4;
26
134
  */
27
- metadata: string;
135
+ metadata?: string;
28
136
  /**
29
137
  * @generated from field: map<string, string> attributes = 5;
30
138
  */
@@ -34,17 +142,24 @@ export type ParticipantInfo = Message<"livekit.proto.ParticipantInfo"> & {
34
142
  /**
35
143
  * @generated from field: required livekit.proto.ParticipantKind kind = 6;
36
144
  */
37
- kind: ParticipantKind;
38
- };
39
- /**
40
- * Describes the message livekit.proto.ParticipantInfo.
41
- * Use `create(ParticipantInfoSchema)` to create a new message.
42
- */
43
- export declare const ParticipantInfoSchema: GenMessage<ParticipantInfo>;
145
+ kind?: ParticipantKind;
146
+ /**
147
+ * @generated from field: required livekit.proto.DisconnectReason disconnect_reason = 7;
148
+ */
149
+ disconnectReason?: DisconnectReason;
150
+ constructor(data?: PartialMessage<ParticipantInfo>);
151
+ static readonly runtime: typeof proto2;
152
+ static readonly typeName = "livekit.proto.ParticipantInfo";
153
+ static readonly fields: FieldList;
154
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ParticipantInfo;
155
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ParticipantInfo;
156
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ParticipantInfo;
157
+ static equals(a: ParticipantInfo | PlainMessage<ParticipantInfo> | undefined, b: ParticipantInfo | PlainMessage<ParticipantInfo> | undefined): boolean;
158
+ }
44
159
  /**
45
160
  * @generated from message livekit.proto.OwnedParticipant
46
161
  */
47
- export type OwnedParticipant = Message<"livekit.proto.OwnedParticipant"> & {
162
+ declare class OwnedParticipant extends Message<OwnedParticipant> {
48
163
  /**
49
164
  * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1;
50
165
  */
@@ -53,39 +168,14 @@ export type OwnedParticipant = Message<"livekit.proto.OwnedParticipant"> & {
53
168
  * @generated from field: required livekit.proto.ParticipantInfo info = 2;
54
169
  */
55
170
  info?: ParticipantInfo;
56
- };
57
- /**
58
- * Describes the message livekit.proto.OwnedParticipant.
59
- * Use `create(OwnedParticipantSchema)` to create a new message.
60
- */
61
- export declare const OwnedParticipantSchema: GenMessage<OwnedParticipant>;
62
- /**
63
- * @generated from enum livekit.proto.ParticipantKind
64
- */
65
- export declare enum ParticipantKind {
66
- /**
67
- * @generated from enum value: PARTICIPANT_KIND_STANDARD = 0;
68
- */
69
- STANDARD = 0,
70
- /**
71
- * @generated from enum value: PARTICIPANT_KIND_INGRESS = 1;
72
- */
73
- INGRESS = 1,
74
- /**
75
- * @generated from enum value: PARTICIPANT_KIND_EGRESS = 2;
76
- */
77
- EGRESS = 2,
78
- /**
79
- * @generated from enum value: PARTICIPANT_KIND_SIP = 3;
80
- */
81
- SIP = 3,
82
- /**
83
- * @generated from enum value: PARTICIPANT_KIND_AGENT = 4;
84
- */
85
- AGENT = 4
171
+ constructor(data?: PartialMessage<OwnedParticipant>);
172
+ static readonly runtime: typeof proto2;
173
+ static readonly typeName = "livekit.proto.OwnedParticipant";
174
+ static readonly fields: FieldList;
175
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OwnedParticipant;
176
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OwnedParticipant;
177
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OwnedParticipant;
178
+ static equals(a: OwnedParticipant | PlainMessage<OwnedParticipant> | undefined, b: OwnedParticipant | PlainMessage<OwnedParticipant> | undefined): boolean;
86
179
  }
87
- /**
88
- * Describes the enum livekit.proto.ParticipantKind.
89
- */
90
- export declare const ParticipantKindSchema: GenEnum<ParticipantKind>;
91
- //# sourceMappingURL=participant_pb.d.ts.map
180
+
181
+ export { DisconnectReason, OwnedParticipant, ParticipantInfo, ParticipantKind };
@@ -1 +1 @@
1
- {"version":3,"file":"participant_pb.d.ts","sourceRoot":"","sources":["../../src/proto/participant_pb.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC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oCAAoC;IAC5D,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,SAAS,CAG9B;IAEH,MAAM,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,iBAAiB,CAAC,GAAG,gBAAgB;IAI5F,MAAM,CAAC,QAAQ,CAAC,SAAS,EAAE,SAAS,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,GAAG,gBAAgB;IAI3F,MAAM,CAAC,cAAc,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,GAAG,gBAAgB;IAI/F,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,gBAAgB,GAAG,YAAY,CAAC,gBAAgB,CAAC,GAAG,SAAS,EAAE,CAAC,EAAE,gBAAgB,GAAG,YAAY,CAAC,gBAAgB,CAAC,GAAG,SAAS,GAAG,OAAO;CAG3J"}
@@ -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,iCAA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