@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
@@ -18,216 +18,133 @@ var __copyProps = (to, from, except, desc) => {
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
19
  var room_pb_exports = {};
20
20
  __export(room_pb_exports, {
21
- ActiveSpeakersChangedSchema: () => ActiveSpeakersChangedSchema,
22
- AttributesEntrySchema: () => AttributesEntrySchema,
23
- AudioEncodingSchema: () => AudioEncodingSchema,
24
- BufferInfoSchema: () => BufferInfoSchema,
25
- ChatMessageReceivedSchema: () => ChatMessageReceivedSchema,
26
- ChatMessageSchema: () => ChatMessageSchema,
27
- ConnectCallbackSchema: () => ConnectCallbackSchema,
28
- ConnectCallback_ParticipantWithTracksSchema: () => ConnectCallback_ParticipantWithTracksSchema,
29
- ConnectCallback_ResultSchema: () => ConnectCallback_ResultSchema,
30
- ConnectRequestSchema: () => ConnectRequestSchema,
31
- ConnectResponseSchema: () => ConnectResponseSchema,
32
- ConnectedSchema: () => ConnectedSchema,
21
+ ActiveSpeakersChanged: () => ActiveSpeakersChanged,
22
+ AttributesEntry: () => AttributesEntry,
23
+ AudioEncoding: () => AudioEncoding,
24
+ BufferInfo: () => BufferInfo,
25
+ ChatMessage: () => ChatMessage,
26
+ ChatMessageReceived: () => ChatMessageReceived,
27
+ ConnectCallback: () => ConnectCallback,
28
+ ConnectCallback_ParticipantWithTracks: () => ConnectCallback_ParticipantWithTracks,
29
+ ConnectCallback_Result: () => ConnectCallback_Result,
30
+ ConnectRequest: () => ConnectRequest,
31
+ ConnectResponse: () => ConnectResponse,
32
+ Connected: () => Connected,
33
33
  ConnectionQuality: () => ConnectionQuality,
34
- ConnectionQualityChangedSchema: () => ConnectionQualityChangedSchema,
35
- ConnectionQualitySchema: () => ConnectionQualitySchema,
34
+ ConnectionQualityChanged: () => ConnectionQualityChanged,
36
35
  ConnectionState: () => ConnectionState,
37
- ConnectionStateChangedSchema: () => ConnectionStateChangedSchema,
38
- ConnectionStateSchema: () => ConnectionStateSchema,
36
+ ConnectionStateChanged: () => ConnectionStateChanged,
39
37
  ContinualGatheringPolicy: () => ContinualGatheringPolicy,
40
- ContinualGatheringPolicySchema: () => ContinualGatheringPolicySchema,
41
38
  DataPacketKind: () => DataPacketKind,
42
- DataPacketKindSchema: () => DataPacketKindSchema,
43
- DataPacketReceivedSchema: () => DataPacketReceivedSchema,
44
- DisconnectCallbackSchema: () => DisconnectCallbackSchema,
45
- DisconnectReason: () => DisconnectReason,
46
- DisconnectReasonSchema: () => DisconnectReasonSchema,
47
- DisconnectRequestSchema: () => DisconnectRequestSchema,
48
- DisconnectResponseSchema: () => DisconnectResponseSchema,
49
- DisconnectedSchema: () => DisconnectedSchema,
50
- E2eeStateChangedSchema: () => E2eeStateChangedSchema,
51
- EditChatMessageRequestSchema: () => EditChatMessageRequestSchema,
52
- GetSessionStatsCallbackSchema: () => GetSessionStatsCallbackSchema,
53
- GetSessionStatsCallback_ResultSchema: () => GetSessionStatsCallback_ResultSchema,
54
- GetSessionStatsRequestSchema: () => GetSessionStatsRequestSchema,
55
- GetSessionStatsResponseSchema: () => GetSessionStatsResponseSchema,
56
- IceServerSchema: () => IceServerSchema,
39
+ DataPacketReceived: () => DataPacketReceived,
40
+ DataStream: () => DataStream,
41
+ DataStream_Chunk: () => DataStream_Chunk,
42
+ DataStream_FileHeader: () => DataStream_FileHeader,
43
+ DataStream_Header: () => DataStream_Header,
44
+ DataStream_OperationType: () => DataStream_OperationType,
45
+ DataStream_TextHeader: () => DataStream_TextHeader,
46
+ DisconnectCallback: () => DisconnectCallback,
47
+ DisconnectRequest: () => DisconnectRequest,
48
+ DisconnectResponse: () => DisconnectResponse,
49
+ Disconnected: () => Disconnected,
50
+ E2eeStateChanged: () => E2eeStateChanged,
51
+ EditChatMessageRequest: () => EditChatMessageRequest,
52
+ GetSessionStatsCallback: () => GetSessionStatsCallback,
53
+ GetSessionStatsCallback_Result: () => GetSessionStatsCallback_Result,
54
+ GetSessionStatsRequest: () => GetSessionStatsRequest,
55
+ GetSessionStatsResponse: () => GetSessionStatsResponse,
56
+ IceServer: () => IceServer,
57
57
  IceTransportType: () => IceTransportType,
58
- IceTransportTypeSchema: () => IceTransportTypeSchema,
59
- LocalTrackPublishedSchema: () => LocalTrackPublishedSchema,
60
- LocalTrackSubscribedSchema: () => LocalTrackSubscribedSchema,
61
- LocalTrackUnpublishedSchema: () => LocalTrackUnpublishedSchema,
62
- OwnedBufferSchema: () => OwnedBufferSchema,
63
- OwnedRoomSchema: () => OwnedRoomSchema,
64
- ParticipantAttributesChangedSchema: () => ParticipantAttributesChangedSchema,
65
- ParticipantConnectedSchema: () => ParticipantConnectedSchema,
66
- ParticipantDisconnectedSchema: () => ParticipantDisconnectedSchema,
67
- ParticipantMetadataChangedSchema: () => ParticipantMetadataChangedSchema,
68
- ParticipantNameChangedSchema: () => ParticipantNameChangedSchema,
69
- PublishDataCallbackSchema: () => PublishDataCallbackSchema,
70
- PublishDataRequestSchema: () => PublishDataRequestSchema,
71
- PublishDataResponseSchema: () => PublishDataResponseSchema,
72
- PublishSipDtmfCallbackSchema: () => PublishSipDtmfCallbackSchema,
73
- PublishSipDtmfRequestSchema: () => PublishSipDtmfRequestSchema,
74
- PublishSipDtmfResponseSchema: () => PublishSipDtmfResponseSchema,
75
- PublishTrackCallbackSchema: () => PublishTrackCallbackSchema,
76
- PublishTrackRequestSchema: () => PublishTrackRequestSchema,
77
- PublishTrackResponseSchema: () => PublishTrackResponseSchema,
78
- PublishTranscriptionCallbackSchema: () => PublishTranscriptionCallbackSchema,
79
- PublishTranscriptionRequestSchema: () => PublishTranscriptionRequestSchema,
80
- PublishTranscriptionResponseSchema: () => PublishTranscriptionResponseSchema,
81
- ReconnectedSchema: () => ReconnectedSchema,
82
- ReconnectingSchema: () => ReconnectingSchema,
83
- RoomEOSSchema: () => RoomEOSSchema,
84
- RoomEventSchema: () => RoomEventSchema,
85
- RoomInfoSchema: () => RoomInfoSchema,
86
- RoomMetadataChangedSchema: () => RoomMetadataChangedSchema,
87
- RoomOptionsSchema: () => RoomOptionsSchema,
88
- RoomSidChangedSchema: () => RoomSidChangedSchema,
89
- RtcConfigSchema: () => RtcConfigSchema,
90
- SendChatMessageCallbackSchema: () => SendChatMessageCallbackSchema,
91
- SendChatMessageRequestSchema: () => SendChatMessageRequestSchema,
92
- SendChatMessageResponseSchema: () => SendChatMessageResponseSchema,
93
- SetLocalAttributesCallbackSchema: () => SetLocalAttributesCallbackSchema,
94
- SetLocalAttributesRequestSchema: () => SetLocalAttributesRequestSchema,
95
- SetLocalAttributesResponseSchema: () => SetLocalAttributesResponseSchema,
96
- SetLocalMetadataCallbackSchema: () => SetLocalMetadataCallbackSchema,
97
- SetLocalMetadataRequestSchema: () => SetLocalMetadataRequestSchema,
98
- SetLocalMetadataResponseSchema: () => SetLocalMetadataResponseSchema,
99
- SetLocalNameCallbackSchema: () => SetLocalNameCallbackSchema,
100
- SetLocalNameRequestSchema: () => SetLocalNameRequestSchema,
101
- SetLocalNameResponseSchema: () => SetLocalNameResponseSchema,
102
- SetSubscribedRequestSchema: () => SetSubscribedRequestSchema,
103
- SetSubscribedResponseSchema: () => SetSubscribedResponseSchema,
104
- SipDTMFSchema: () => SipDTMFSchema,
105
- TrackMutedSchema: () => TrackMutedSchema,
106
- TrackPublishOptionsSchema: () => TrackPublishOptionsSchema,
107
- TrackPublishedSchema: () => TrackPublishedSchema,
108
- TrackSubscribedSchema: () => TrackSubscribedSchema,
109
- TrackSubscriptionFailedSchema: () => TrackSubscriptionFailedSchema,
110
- TrackUnmutedSchema: () => TrackUnmutedSchema,
111
- TrackUnpublishedSchema: () => TrackUnpublishedSchema,
112
- TrackUnsubscribedSchema: () => TrackUnsubscribedSchema,
113
- TranscriptionReceivedSchema: () => TranscriptionReceivedSchema,
114
- TranscriptionSegmentSchema: () => TranscriptionSegmentSchema,
115
- UnpublishTrackCallbackSchema: () => UnpublishTrackCallbackSchema,
116
- UnpublishTrackRequestSchema: () => UnpublishTrackRequestSchema,
117
- UnpublishTrackResponseSchema: () => UnpublishTrackResponseSchema,
118
- UserPacketSchema: () => UserPacketSchema,
119
- VideoEncodingSchema: () => VideoEncodingSchema,
120
- file_room: () => file_room
58
+ LocalTrackPublished: () => LocalTrackPublished,
59
+ LocalTrackSubscribed: () => LocalTrackSubscribed,
60
+ LocalTrackUnpublished: () => LocalTrackUnpublished,
61
+ OwnedBuffer: () => OwnedBuffer,
62
+ OwnedRoom: () => OwnedRoom,
63
+ ParticipantAttributesChanged: () => ParticipantAttributesChanged,
64
+ ParticipantConnected: () => ParticipantConnected,
65
+ ParticipantDisconnected: () => ParticipantDisconnected,
66
+ ParticipantMetadataChanged: () => ParticipantMetadataChanged,
67
+ ParticipantNameChanged: () => ParticipantNameChanged,
68
+ PublishDataCallback: () => PublishDataCallback,
69
+ PublishDataRequest: () => PublishDataRequest,
70
+ PublishDataResponse: () => PublishDataResponse,
71
+ PublishSipDtmfCallback: () => PublishSipDtmfCallback,
72
+ PublishSipDtmfRequest: () => PublishSipDtmfRequest,
73
+ PublishSipDtmfResponse: () => PublishSipDtmfResponse,
74
+ PublishTrackCallback: () => PublishTrackCallback,
75
+ PublishTrackRequest: () => PublishTrackRequest,
76
+ PublishTrackResponse: () => PublishTrackResponse,
77
+ PublishTranscriptionCallback: () => PublishTranscriptionCallback,
78
+ PublishTranscriptionRequest: () => PublishTranscriptionRequest,
79
+ PublishTranscriptionResponse: () => PublishTranscriptionResponse,
80
+ Reconnected: () => Reconnected,
81
+ Reconnecting: () => Reconnecting,
82
+ RoomEOS: () => RoomEOS,
83
+ RoomEvent: () => RoomEvent,
84
+ RoomInfo: () => RoomInfo,
85
+ RoomMetadataChanged: () => RoomMetadataChanged,
86
+ RoomOptions: () => RoomOptions,
87
+ RoomSidChanged: () => RoomSidChanged,
88
+ RtcConfig: () => RtcConfig,
89
+ SendChatMessageCallback: () => SendChatMessageCallback,
90
+ SendChatMessageRequest: () => SendChatMessageRequest,
91
+ SendChatMessageResponse: () => SendChatMessageResponse,
92
+ SetLocalAttributesCallback: () => SetLocalAttributesCallback,
93
+ SetLocalAttributesRequest: () => SetLocalAttributesRequest,
94
+ SetLocalAttributesResponse: () => SetLocalAttributesResponse,
95
+ SetLocalMetadataCallback: () => SetLocalMetadataCallback,
96
+ SetLocalMetadataRequest: () => SetLocalMetadataRequest,
97
+ SetLocalMetadataResponse: () => SetLocalMetadataResponse,
98
+ SetLocalNameCallback: () => SetLocalNameCallback,
99
+ SetLocalNameRequest: () => SetLocalNameRequest,
100
+ SetLocalNameResponse: () => SetLocalNameResponse,
101
+ SetSubscribedRequest: () => SetSubscribedRequest,
102
+ SetSubscribedResponse: () => SetSubscribedResponse,
103
+ SipDTMF: () => SipDTMF,
104
+ TrackMuted: () => TrackMuted,
105
+ TrackPublishOptions: () => TrackPublishOptions,
106
+ TrackPublished: () => TrackPublished,
107
+ TrackSubscribed: () => TrackSubscribed,
108
+ TrackSubscriptionFailed: () => TrackSubscriptionFailed,
109
+ TrackUnmuted: () => TrackUnmuted,
110
+ TrackUnpublished: () => TrackUnpublished,
111
+ TrackUnsubscribed: () => TrackUnsubscribed,
112
+ TranscriptionReceived: () => TranscriptionReceived,
113
+ TranscriptionSegment: () => TranscriptionSegment,
114
+ UnpublishTrackCallback: () => UnpublishTrackCallback,
115
+ UnpublishTrackRequest: () => UnpublishTrackRequest,
116
+ UnpublishTrackResponse: () => UnpublishTrackResponse,
117
+ UserPacket: () => UserPacket,
118
+ VideoEncoding: () => VideoEncoding
121
119
  });
122
120
  module.exports = __toCommonJS(room_pb_exports);
123
- var import_codegenv1 = require("@bufbuild/protobuf/codegenv1");
124
- var import_e2ee_pb = require("./e2ee_pb.cjs");
125
- var import_handle_pb = require("./handle_pb.cjs");
121
+ var import_protobuf = require("@bufbuild/protobuf");
126
122
  var import_participant_pb = require("./participant_pb.cjs");
127
123
  var import_track_pb = require("./track_pb.cjs");
128
- var import_video_frame_pb = require("./video_frame_pb.cjs");
129
124
  var import_stats_pb = require("./stats_pb.cjs");
130
- const file_room = /* @__PURE__ */ (0, import_codegenv1.fileDesc)("Cgpyb29tLnByb3RvEg1saXZla2l0LnByb3RvIlkKDkNvbm5lY3RSZXF1ZXN0EgsKA3VybBgBIAIoCRINCgV0b2tlbhgCIAIoCRIrCgdvcHRpb25zGAMgAigLMhoubGl2ZWtpdC5wcm90by5Sb29tT3B0aW9ucyIjCg9Db25uZWN0UmVzcG9uc2USEAoIYXN5bmNfaWQYASACKAQivwMKD0Nvbm5lY3RDYWxsYmFjaxIQCghhc3luY19pZBgBIAIoBBIPCgVlcnJvchgCIAEoCUgAEjcKBnJlc3VsdBgDIAEoCzIlLmxpdmVraXQucHJvdG8uQ29ubmVjdENhbGxiYWNrLlJlc3VsdEgAGokBChVQYXJ0aWNpcGFudFdpdGhUcmFja3MSNAoLcGFydGljaXBhbnQYASACKAsyHy5saXZla2l0LnByb3RvLk93bmVkUGFydGljaXBhbnQSOgoMcHVibGljYXRpb25zGAIgAygLMiQubGl2ZWtpdC5wcm90by5Pd25lZFRyYWNrUHVibGljYXRpb24auAEKBlJlc3VsdBImCgRyb29tGAEgAigLMhgubGl2ZWtpdC5wcm90by5Pd25lZFJvb20SOgoRbG9jYWxfcGFydGljaXBhbnQYAiACKAsyHy5saXZla2l0LnByb3RvLk93bmVkUGFydGljaXBhbnQSSgoMcGFydGljaXBhbnRzGAMgAygLMjQubGl2ZWtpdC5wcm90by5Db25uZWN0Q2FsbGJhY2suUGFydGljaXBhbnRXaXRoVHJhY2tzQgkKB21lc3NhZ2UiKAoRRGlzY29ubmVjdFJlcXVlc3QSEwoLcm9vbV9oYW5kbGUYASACKAQiJgoSRGlzY29ubmVjdFJlc3BvbnNlEhAKCGFzeW5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EEAUSEgoOU1RBVEVfTUlTTUFUQ0gQBhIQCgxKT0lOX0ZBSUxVUkUQBxINCglNSUdSQVRJT04QCBIQCgxTSUdOQUxfQ0xPU0UQCRIPCgtST09NX0NMT1NFRBAKQhCqAg1MaXZlS2l0LlByb3Rv", [import_e2ee_pb.file_e2ee, import_handle_pb.file_handle, import_participant_pb.file_participant, import_track_pb.file_track, import_video_frame_pb.file_video_frame, import_stats_pb.file_stats]);
131
- const ConnectRequestSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 0);
132
- const ConnectResponseSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 1);
133
- const ConnectCallbackSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 2);
134
- const ConnectCallback_ParticipantWithTracksSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 2, 0);
135
- const ConnectCallback_ResultSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 2, 1);
136
- const DisconnectRequestSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 3);
137
- const DisconnectResponseSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 4);
138
- const DisconnectCallbackSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 5);
139
- const PublishTrackRequestSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 6);
140
- const PublishTrackResponseSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 7);
141
- const PublishTrackCallbackSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 8);
142
- const UnpublishTrackRequestSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 9);
143
- const UnpublishTrackResponseSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 10);
144
- const UnpublishTrackCallbackSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 11);
145
- const PublishDataRequestSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 12);
146
- const PublishDataResponseSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 13);
147
- const PublishDataCallbackSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 14);
148
- const PublishTranscriptionRequestSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 15);
149
- const PublishTranscriptionResponseSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 16);
150
- const PublishTranscriptionCallbackSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 17);
151
- const PublishSipDtmfRequestSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 18);
152
- const PublishSipDtmfResponseSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 19);
153
- const PublishSipDtmfCallbackSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 20);
154
- const SetLocalMetadataRequestSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 21);
155
- const SetLocalMetadataResponseSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 22);
156
- const SetLocalMetadataCallbackSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 23);
157
- const SendChatMessageRequestSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 24);
158
- const EditChatMessageRequestSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 25);
159
- const SendChatMessageResponseSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 26);
160
- const SendChatMessageCallbackSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 27);
161
- const SetLocalAttributesRequestSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 28);
162
- const AttributesEntrySchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 29);
163
- const SetLocalAttributesResponseSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 30);
164
- const SetLocalAttributesCallbackSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 31);
165
- const SetLocalNameRequestSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 32);
166
- const SetLocalNameResponseSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 33);
167
- const SetLocalNameCallbackSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 34);
168
- const SetSubscribedRequestSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 35);
169
- const SetSubscribedResponseSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 36);
170
- const GetSessionStatsRequestSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 37);
171
- const GetSessionStatsResponseSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 38);
172
- const GetSessionStatsCallbackSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 39);
173
- const GetSessionStatsCallback_ResultSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 39, 0);
174
- const VideoEncodingSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 40);
175
- const AudioEncodingSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 41);
176
- const TrackPublishOptionsSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 42);
177
- const IceServerSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 43);
178
- const RtcConfigSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 44);
179
- const RoomOptionsSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 45);
180
- const TranscriptionSegmentSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 46);
181
- const BufferInfoSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 47);
182
- const OwnedBufferSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 48);
183
- const RoomEventSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 49);
184
- const RoomInfoSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 50);
185
- const OwnedRoomSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 51);
186
- const ParticipantConnectedSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 52);
187
- const ParticipantDisconnectedSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 53);
188
- const LocalTrackPublishedSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 54);
189
- const LocalTrackUnpublishedSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 55);
190
- const LocalTrackSubscribedSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 56);
191
- const TrackPublishedSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 57);
192
- const TrackUnpublishedSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 58);
193
- const TrackSubscribedSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 59);
194
- const TrackUnsubscribedSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 60);
195
- const TrackSubscriptionFailedSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 61);
196
- const TrackMutedSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 62);
197
- const TrackUnmutedSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 63);
198
- const E2eeStateChangedSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 64);
199
- const ActiveSpeakersChangedSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 65);
200
- const RoomMetadataChangedSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 66);
201
- const RoomSidChangedSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 67);
202
- const ParticipantMetadataChangedSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 68);
203
- const ParticipantAttributesChangedSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 69);
204
- const ParticipantNameChangedSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 70);
205
- const ConnectionQualityChangedSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 71);
206
- const UserPacketSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 72);
207
- const ChatMessageSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 73);
208
- const ChatMessageReceivedSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 74);
209
- const SipDTMFSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 75);
210
- const DataPacketReceivedSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 76);
211
- const TranscriptionReceivedSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 77);
212
- const ConnectionStateChangedSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 78);
213
- const ConnectedSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 79);
214
- const DisconnectedSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 80);
215
- const ReconnectingSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 81);
216
- const ReconnectedSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 82);
217
- const RoomEOSSchema = /* @__PURE__ */ (0, import_codegenv1.messageDesc)(file_room, 83);
125
+ var import_video_frame_pb = require("./video_frame_pb.cjs");
126
+ var import_e2ee_pb = require("./e2ee_pb.cjs");
127
+ var import_handle_pb = require("./handle_pb.cjs");
218
128
  var IceTransportType = /* @__PURE__ */ ((IceTransportType2) => {
219
129
  IceTransportType2[IceTransportType2["TRANSPORT_RELAY"] = 0] = "TRANSPORT_RELAY";
220
130
  IceTransportType2[IceTransportType2["TRANSPORT_NOHOST"] = 1] = "TRANSPORT_NOHOST";
221
131
  IceTransportType2[IceTransportType2["TRANSPORT_ALL"] = 2] = "TRANSPORT_ALL";
222
132
  return IceTransportType2;
223
133
  })(IceTransportType || {});
224
- const IceTransportTypeSchema = /* @__PURE__ */ (0, import_codegenv1.enumDesc)(file_room, 0);
134
+ import_protobuf.proto2.util.setEnumType(IceTransportType, "livekit.proto.IceTransportType", [
135
+ { no: 0, name: "TRANSPORT_RELAY" },
136
+ { no: 1, name: "TRANSPORT_NOHOST" },
137
+ { no: 2, name: "TRANSPORT_ALL" }
138
+ ]);
225
139
  var ContinualGatheringPolicy = /* @__PURE__ */ ((ContinualGatheringPolicy2) => {
226
140
  ContinualGatheringPolicy2[ContinualGatheringPolicy2["GATHER_ONCE"] = 0] = "GATHER_ONCE";
227
141
  ContinualGatheringPolicy2[ContinualGatheringPolicy2["GATHER_CONTINUALLY"] = 1] = "GATHER_CONTINUALLY";
228
142
  return ContinualGatheringPolicy2;
229
143
  })(ContinualGatheringPolicy || {});
230
- const ContinualGatheringPolicySchema = /* @__PURE__ */ (0, import_codegenv1.enumDesc)(file_room, 1);
144
+ import_protobuf.proto2.util.setEnumType(ContinualGatheringPolicy, "livekit.proto.ContinualGatheringPolicy", [
145
+ { no: 0, name: "GATHER_ONCE" },
146
+ { no: 1, name: "GATHER_CONTINUALLY" }
147
+ ]);
231
148
  var ConnectionQuality = /* @__PURE__ */ ((ConnectionQuality2) => {
232
149
  ConnectionQuality2[ConnectionQuality2["QUALITY_POOR"] = 0] = "QUALITY_POOR";
233
150
  ConnectionQuality2[ConnectionQuality2["QUALITY_GOOD"] = 1] = "QUALITY_GOOD";
@@ -235,136 +152,2610 @@ var ConnectionQuality = /* @__PURE__ */ ((ConnectionQuality2) => {
235
152
  ConnectionQuality2[ConnectionQuality2["QUALITY_LOST"] = 3] = "QUALITY_LOST";
236
153
  return ConnectionQuality2;
237
154
  })(ConnectionQuality || {});
238
- const ConnectionQualitySchema = /* @__PURE__ */ (0, import_codegenv1.enumDesc)(file_room, 2);
155
+ import_protobuf.proto2.util.setEnumType(ConnectionQuality, "livekit.proto.ConnectionQuality", [
156
+ { no: 0, name: "QUALITY_POOR" },
157
+ { no: 1, name: "QUALITY_GOOD" },
158
+ { no: 2, name: "QUALITY_EXCELLENT" },
159
+ { no: 3, name: "QUALITY_LOST" }
160
+ ]);
239
161
  var ConnectionState = /* @__PURE__ */ ((ConnectionState2) => {
240
162
  ConnectionState2[ConnectionState2["CONN_DISCONNECTED"] = 0] = "CONN_DISCONNECTED";
241
163
  ConnectionState2[ConnectionState2["CONN_CONNECTED"] = 1] = "CONN_CONNECTED";
242
164
  ConnectionState2[ConnectionState2["CONN_RECONNECTING"] = 2] = "CONN_RECONNECTING";
243
165
  return ConnectionState2;
244
166
  })(ConnectionState || {});
245
- const ConnectionStateSchema = /* @__PURE__ */ (0, import_codegenv1.enumDesc)(file_room, 3);
167
+ import_protobuf.proto2.util.setEnumType(ConnectionState, "livekit.proto.ConnectionState", [
168
+ { no: 0, name: "CONN_DISCONNECTED" },
169
+ { no: 1, name: "CONN_CONNECTED" },
170
+ { no: 2, name: "CONN_RECONNECTING" }
171
+ ]);
246
172
  var DataPacketKind = /* @__PURE__ */ ((DataPacketKind2) => {
247
173
  DataPacketKind2[DataPacketKind2["KIND_LOSSY"] = 0] = "KIND_LOSSY";
248
174
  DataPacketKind2[DataPacketKind2["KIND_RELIABLE"] = 1] = "KIND_RELIABLE";
249
175
  return DataPacketKind2;
250
176
  })(DataPacketKind || {});
251
- const DataPacketKindSchema = /* @__PURE__ */ (0, import_codegenv1.enumDesc)(file_room, 4);
252
- var DisconnectReason = /* @__PURE__ */ ((DisconnectReason2) => {
253
- DisconnectReason2[DisconnectReason2["UNKNOWN_REASON"] = 0] = "UNKNOWN_REASON";
254
- DisconnectReason2[DisconnectReason2["CLIENT_INITIATED"] = 1] = "CLIENT_INITIATED";
255
- DisconnectReason2[DisconnectReason2["DUPLICATE_IDENTITY"] = 2] = "DUPLICATE_IDENTITY";
256
- DisconnectReason2[DisconnectReason2["SERVER_SHUTDOWN"] = 3] = "SERVER_SHUTDOWN";
257
- DisconnectReason2[DisconnectReason2["PARTICIPANT_REMOVED"] = 4] = "PARTICIPANT_REMOVED";
258
- DisconnectReason2[DisconnectReason2["ROOM_DELETED"] = 5] = "ROOM_DELETED";
259
- DisconnectReason2[DisconnectReason2["STATE_MISMATCH"] = 6] = "STATE_MISMATCH";
260
- DisconnectReason2[DisconnectReason2["JOIN_FAILURE"] = 7] = "JOIN_FAILURE";
261
- DisconnectReason2[DisconnectReason2["MIGRATION"] = 8] = "MIGRATION";
262
- DisconnectReason2[DisconnectReason2["SIGNAL_CLOSE"] = 9] = "SIGNAL_CLOSE";
263
- DisconnectReason2[DisconnectReason2["ROOM_CLOSED"] = 10] = "ROOM_CLOSED";
264
- return DisconnectReason2;
265
- })(DisconnectReason || {});
266
- const DisconnectReasonSchema = /* @__PURE__ */ (0, import_codegenv1.enumDesc)(file_room, 5);
177
+ import_protobuf.proto2.util.setEnumType(DataPacketKind, "livekit.proto.DataPacketKind", [
178
+ { no: 0, name: "KIND_LOSSY" },
179
+ { no: 1, name: "KIND_RELIABLE" }
180
+ ]);
181
+ const _ConnectRequest = class _ConnectRequest extends import_protobuf.Message {
182
+ constructor(data) {
183
+ super();
184
+ import_protobuf.proto2.util.initPartial(data, this);
185
+ }
186
+ static fromBinary(bytes, options) {
187
+ return new _ConnectRequest().fromBinary(bytes, options);
188
+ }
189
+ static fromJson(jsonValue, options) {
190
+ return new _ConnectRequest().fromJson(jsonValue, options);
191
+ }
192
+ static fromJsonString(jsonString, options) {
193
+ return new _ConnectRequest().fromJsonString(jsonString, options);
194
+ }
195
+ static equals(a, b) {
196
+ return import_protobuf.proto2.util.equals(_ConnectRequest, a, b);
197
+ }
198
+ };
199
+ _ConnectRequest.runtime = import_protobuf.proto2;
200
+ _ConnectRequest.typeName = "livekit.proto.ConnectRequest";
201
+ _ConnectRequest.fields = import_protobuf.proto2.util.newFieldList(() => [
202
+ { no: 1, name: "url", kind: "scalar", T: 9, req: true },
203
+ { no: 2, name: "token", kind: "scalar", T: 9, req: true },
204
+ { no: 3, name: "options", kind: "message", T: RoomOptions, req: true }
205
+ ]);
206
+ let ConnectRequest = _ConnectRequest;
207
+ const _ConnectResponse = class _ConnectResponse extends import_protobuf.Message {
208
+ constructor(data) {
209
+ super();
210
+ import_protobuf.proto2.util.initPartial(data, this);
211
+ }
212
+ static fromBinary(bytes, options) {
213
+ return new _ConnectResponse().fromBinary(bytes, options);
214
+ }
215
+ static fromJson(jsonValue, options) {
216
+ return new _ConnectResponse().fromJson(jsonValue, options);
217
+ }
218
+ static fromJsonString(jsonString, options) {
219
+ return new _ConnectResponse().fromJsonString(jsonString, options);
220
+ }
221
+ static equals(a, b) {
222
+ return import_protobuf.proto2.util.equals(_ConnectResponse, a, b);
223
+ }
224
+ };
225
+ _ConnectResponse.runtime = import_protobuf.proto2;
226
+ _ConnectResponse.typeName = "livekit.proto.ConnectResponse";
227
+ _ConnectResponse.fields = import_protobuf.proto2.util.newFieldList(() => [
228
+ { no: 1, name: "async_id", kind: "scalar", T: 4, req: true }
229
+ ]);
230
+ let ConnectResponse = _ConnectResponse;
231
+ const _ConnectCallback = class _ConnectCallback extends import_protobuf.Message {
232
+ constructor(data) {
233
+ super();
234
+ /**
235
+ * @generated from oneof livekit.proto.ConnectCallback.message
236
+ */
237
+ this.message = { case: void 0 };
238
+ import_protobuf.proto2.util.initPartial(data, this);
239
+ }
240
+ static fromBinary(bytes, options) {
241
+ return new _ConnectCallback().fromBinary(bytes, options);
242
+ }
243
+ static fromJson(jsonValue, options) {
244
+ return new _ConnectCallback().fromJson(jsonValue, options);
245
+ }
246
+ static fromJsonString(jsonString, options) {
247
+ return new _ConnectCallback().fromJsonString(jsonString, options);
248
+ }
249
+ static equals(a, b) {
250
+ return import_protobuf.proto2.util.equals(_ConnectCallback, a, b);
251
+ }
252
+ };
253
+ _ConnectCallback.runtime = import_protobuf.proto2;
254
+ _ConnectCallback.typeName = "livekit.proto.ConnectCallback";
255
+ _ConnectCallback.fields = import_protobuf.proto2.util.newFieldList(() => [
256
+ { no: 1, name: "async_id", kind: "scalar", T: 4, req: true },
257
+ { no: 2, name: "error", kind: "scalar", T: 9, oneof: "message" },
258
+ { no: 3, name: "result", kind: "message", T: ConnectCallback_Result, oneof: "message" }
259
+ ]);
260
+ let ConnectCallback = _ConnectCallback;
261
+ const _ConnectCallback_ParticipantWithTracks = class _ConnectCallback_ParticipantWithTracks extends import_protobuf.Message {
262
+ constructor(data) {
263
+ super();
264
+ /**
265
+ * TrackInfo are not needed here, if we're subscribed to a track, the FfiServer will send
266
+ * a TrackSubscribed event
267
+ *
268
+ * @generated from field: repeated livekit.proto.OwnedTrackPublication publications = 2;
269
+ */
270
+ this.publications = [];
271
+ import_protobuf.proto2.util.initPartial(data, this);
272
+ }
273
+ static fromBinary(bytes, options) {
274
+ return new _ConnectCallback_ParticipantWithTracks().fromBinary(bytes, options);
275
+ }
276
+ static fromJson(jsonValue, options) {
277
+ return new _ConnectCallback_ParticipantWithTracks().fromJson(jsonValue, options);
278
+ }
279
+ static fromJsonString(jsonString, options) {
280
+ return new _ConnectCallback_ParticipantWithTracks().fromJsonString(jsonString, options);
281
+ }
282
+ static equals(a, b) {
283
+ return import_protobuf.proto2.util.equals(_ConnectCallback_ParticipantWithTracks, a, b);
284
+ }
285
+ };
286
+ _ConnectCallback_ParticipantWithTracks.runtime = import_protobuf.proto2;
287
+ _ConnectCallback_ParticipantWithTracks.typeName = "livekit.proto.ConnectCallback.ParticipantWithTracks";
288
+ _ConnectCallback_ParticipantWithTracks.fields = import_protobuf.proto2.util.newFieldList(() => [
289
+ { no: 1, name: "participant", kind: "message", T: import_participant_pb.OwnedParticipant, req: true },
290
+ { no: 2, name: "publications", kind: "message", T: import_track_pb.OwnedTrackPublication, repeated: true }
291
+ ]);
292
+ let ConnectCallback_ParticipantWithTracks = _ConnectCallback_ParticipantWithTracks;
293
+ const _ConnectCallback_Result = class _ConnectCallback_Result extends import_protobuf.Message {
294
+ constructor(data) {
295
+ super();
296
+ /**
297
+ * @generated from field: repeated livekit.proto.ConnectCallback.ParticipantWithTracks participants = 3;
298
+ */
299
+ this.participants = [];
300
+ import_protobuf.proto2.util.initPartial(data, this);
301
+ }
302
+ static fromBinary(bytes, options) {
303
+ return new _ConnectCallback_Result().fromBinary(bytes, options);
304
+ }
305
+ static fromJson(jsonValue, options) {
306
+ return new _ConnectCallback_Result().fromJson(jsonValue, options);
307
+ }
308
+ static fromJsonString(jsonString, options) {
309
+ return new _ConnectCallback_Result().fromJsonString(jsonString, options);
310
+ }
311
+ static equals(a, b) {
312
+ return import_protobuf.proto2.util.equals(_ConnectCallback_Result, a, b);
313
+ }
314
+ };
315
+ _ConnectCallback_Result.runtime = import_protobuf.proto2;
316
+ _ConnectCallback_Result.typeName = "livekit.proto.ConnectCallback.Result";
317
+ _ConnectCallback_Result.fields = import_protobuf.proto2.util.newFieldList(() => [
318
+ { no: 1, name: "room", kind: "message", T: OwnedRoom, req: true },
319
+ { no: 2, name: "local_participant", kind: "message", T: import_participant_pb.OwnedParticipant, req: true },
320
+ { no: 3, name: "participants", kind: "message", T: ConnectCallback_ParticipantWithTracks, repeated: true }
321
+ ]);
322
+ let ConnectCallback_Result = _ConnectCallback_Result;
323
+ const _DisconnectRequest = class _DisconnectRequest extends import_protobuf.Message {
324
+ constructor(data) {
325
+ super();
326
+ import_protobuf.proto2.util.initPartial(data, this);
327
+ }
328
+ static fromBinary(bytes, options) {
329
+ return new _DisconnectRequest().fromBinary(bytes, options);
330
+ }
331
+ static fromJson(jsonValue, options) {
332
+ return new _DisconnectRequest().fromJson(jsonValue, options);
333
+ }
334
+ static fromJsonString(jsonString, options) {
335
+ return new _DisconnectRequest().fromJsonString(jsonString, options);
336
+ }
337
+ static equals(a, b) {
338
+ return import_protobuf.proto2.util.equals(_DisconnectRequest, a, b);
339
+ }
340
+ };
341
+ _DisconnectRequest.runtime = import_protobuf.proto2;
342
+ _DisconnectRequest.typeName = "livekit.proto.DisconnectRequest";
343
+ _DisconnectRequest.fields = import_protobuf.proto2.util.newFieldList(() => [
344
+ { no: 1, name: "room_handle", kind: "scalar", T: 4, req: true }
345
+ ]);
346
+ let DisconnectRequest = _DisconnectRequest;
347
+ const _DisconnectResponse = class _DisconnectResponse extends import_protobuf.Message {
348
+ constructor(data) {
349
+ super();
350
+ import_protobuf.proto2.util.initPartial(data, this);
351
+ }
352
+ static fromBinary(bytes, options) {
353
+ return new _DisconnectResponse().fromBinary(bytes, options);
354
+ }
355
+ static fromJson(jsonValue, options) {
356
+ return new _DisconnectResponse().fromJson(jsonValue, options);
357
+ }
358
+ static fromJsonString(jsonString, options) {
359
+ return new _DisconnectResponse().fromJsonString(jsonString, options);
360
+ }
361
+ static equals(a, b) {
362
+ return import_protobuf.proto2.util.equals(_DisconnectResponse, a, b);
363
+ }
364
+ };
365
+ _DisconnectResponse.runtime = import_protobuf.proto2;
366
+ _DisconnectResponse.typeName = "livekit.proto.DisconnectResponse";
367
+ _DisconnectResponse.fields = import_protobuf.proto2.util.newFieldList(() => [
368
+ { no: 1, name: "async_id", kind: "scalar", T: 4, req: true }
369
+ ]);
370
+ let DisconnectResponse = _DisconnectResponse;
371
+ const _DisconnectCallback = class _DisconnectCallback extends import_protobuf.Message {
372
+ constructor(data) {
373
+ super();
374
+ import_protobuf.proto2.util.initPartial(data, this);
375
+ }
376
+ static fromBinary(bytes, options) {
377
+ return new _DisconnectCallback().fromBinary(bytes, options);
378
+ }
379
+ static fromJson(jsonValue, options) {
380
+ return new _DisconnectCallback().fromJson(jsonValue, options);
381
+ }
382
+ static fromJsonString(jsonString, options) {
383
+ return new _DisconnectCallback().fromJsonString(jsonString, options);
384
+ }
385
+ static equals(a, b) {
386
+ return import_protobuf.proto2.util.equals(_DisconnectCallback, a, b);
387
+ }
388
+ };
389
+ _DisconnectCallback.runtime = import_protobuf.proto2;
390
+ _DisconnectCallback.typeName = "livekit.proto.DisconnectCallback";
391
+ _DisconnectCallback.fields = import_protobuf.proto2.util.newFieldList(() => [
392
+ { no: 1, name: "async_id", kind: "scalar", T: 4, req: true }
393
+ ]);
394
+ let DisconnectCallback = _DisconnectCallback;
395
+ const _PublishTrackRequest = class _PublishTrackRequest extends import_protobuf.Message {
396
+ constructor(data) {
397
+ super();
398
+ import_protobuf.proto2.util.initPartial(data, this);
399
+ }
400
+ static fromBinary(bytes, options) {
401
+ return new _PublishTrackRequest().fromBinary(bytes, options);
402
+ }
403
+ static fromJson(jsonValue, options) {
404
+ return new _PublishTrackRequest().fromJson(jsonValue, options);
405
+ }
406
+ static fromJsonString(jsonString, options) {
407
+ return new _PublishTrackRequest().fromJsonString(jsonString, options);
408
+ }
409
+ static equals(a, b) {
410
+ return import_protobuf.proto2.util.equals(_PublishTrackRequest, a, b);
411
+ }
412
+ };
413
+ _PublishTrackRequest.runtime = import_protobuf.proto2;
414
+ _PublishTrackRequest.typeName = "livekit.proto.PublishTrackRequest";
415
+ _PublishTrackRequest.fields = import_protobuf.proto2.util.newFieldList(() => [
416
+ { no: 1, name: "local_participant_handle", kind: "scalar", T: 4, req: true },
417
+ { no: 2, name: "track_handle", kind: "scalar", T: 4, req: true },
418
+ { no: 3, name: "options", kind: "message", T: TrackPublishOptions, req: true }
419
+ ]);
420
+ let PublishTrackRequest = _PublishTrackRequest;
421
+ const _PublishTrackResponse = class _PublishTrackResponse extends import_protobuf.Message {
422
+ constructor(data) {
423
+ super();
424
+ import_protobuf.proto2.util.initPartial(data, this);
425
+ }
426
+ static fromBinary(bytes, options) {
427
+ return new _PublishTrackResponse().fromBinary(bytes, options);
428
+ }
429
+ static fromJson(jsonValue, options) {
430
+ return new _PublishTrackResponse().fromJson(jsonValue, options);
431
+ }
432
+ static fromJsonString(jsonString, options) {
433
+ return new _PublishTrackResponse().fromJsonString(jsonString, options);
434
+ }
435
+ static equals(a, b) {
436
+ return import_protobuf.proto2.util.equals(_PublishTrackResponse, a, b);
437
+ }
438
+ };
439
+ _PublishTrackResponse.runtime = import_protobuf.proto2;
440
+ _PublishTrackResponse.typeName = "livekit.proto.PublishTrackResponse";
441
+ _PublishTrackResponse.fields = import_protobuf.proto2.util.newFieldList(() => [
442
+ { no: 1, name: "async_id", kind: "scalar", T: 4, req: true }
443
+ ]);
444
+ let PublishTrackResponse = _PublishTrackResponse;
445
+ const _PublishTrackCallback = class _PublishTrackCallback extends import_protobuf.Message {
446
+ constructor(data) {
447
+ super();
448
+ /**
449
+ * @generated from oneof livekit.proto.PublishTrackCallback.message
450
+ */
451
+ this.message = { case: void 0 };
452
+ import_protobuf.proto2.util.initPartial(data, this);
453
+ }
454
+ static fromBinary(bytes, options) {
455
+ return new _PublishTrackCallback().fromBinary(bytes, options);
456
+ }
457
+ static fromJson(jsonValue, options) {
458
+ return new _PublishTrackCallback().fromJson(jsonValue, options);
459
+ }
460
+ static fromJsonString(jsonString, options) {
461
+ return new _PublishTrackCallback().fromJsonString(jsonString, options);
462
+ }
463
+ static equals(a, b) {
464
+ return import_protobuf.proto2.util.equals(_PublishTrackCallback, a, b);
465
+ }
466
+ };
467
+ _PublishTrackCallback.runtime = import_protobuf.proto2;
468
+ _PublishTrackCallback.typeName = "livekit.proto.PublishTrackCallback";
469
+ _PublishTrackCallback.fields = import_protobuf.proto2.util.newFieldList(() => [
470
+ { no: 1, name: "async_id", kind: "scalar", T: 4, req: true },
471
+ { no: 2, name: "error", kind: "scalar", T: 9, oneof: "message" },
472
+ { no: 3, name: "publication", kind: "message", T: import_track_pb.OwnedTrackPublication, oneof: "message" }
473
+ ]);
474
+ let PublishTrackCallback = _PublishTrackCallback;
475
+ const _UnpublishTrackRequest = class _UnpublishTrackRequest extends import_protobuf.Message {
476
+ constructor(data) {
477
+ super();
478
+ import_protobuf.proto2.util.initPartial(data, this);
479
+ }
480
+ static fromBinary(bytes, options) {
481
+ return new _UnpublishTrackRequest().fromBinary(bytes, options);
482
+ }
483
+ static fromJson(jsonValue, options) {
484
+ return new _UnpublishTrackRequest().fromJson(jsonValue, options);
485
+ }
486
+ static fromJsonString(jsonString, options) {
487
+ return new _UnpublishTrackRequest().fromJsonString(jsonString, options);
488
+ }
489
+ static equals(a, b) {
490
+ return import_protobuf.proto2.util.equals(_UnpublishTrackRequest, a, b);
491
+ }
492
+ };
493
+ _UnpublishTrackRequest.runtime = import_protobuf.proto2;
494
+ _UnpublishTrackRequest.typeName = "livekit.proto.UnpublishTrackRequest";
495
+ _UnpublishTrackRequest.fields = import_protobuf.proto2.util.newFieldList(() => [
496
+ { no: 1, name: "local_participant_handle", kind: "scalar", T: 4, req: true },
497
+ { no: 2, name: "track_sid", kind: "scalar", T: 9, req: true },
498
+ { no: 3, name: "stop_on_unpublish", kind: "scalar", T: 8, req: true }
499
+ ]);
500
+ let UnpublishTrackRequest = _UnpublishTrackRequest;
501
+ const _UnpublishTrackResponse = class _UnpublishTrackResponse extends import_protobuf.Message {
502
+ constructor(data) {
503
+ super();
504
+ import_protobuf.proto2.util.initPartial(data, this);
505
+ }
506
+ static fromBinary(bytes, options) {
507
+ return new _UnpublishTrackResponse().fromBinary(bytes, options);
508
+ }
509
+ static fromJson(jsonValue, options) {
510
+ return new _UnpublishTrackResponse().fromJson(jsonValue, options);
511
+ }
512
+ static fromJsonString(jsonString, options) {
513
+ return new _UnpublishTrackResponse().fromJsonString(jsonString, options);
514
+ }
515
+ static equals(a, b) {
516
+ return import_protobuf.proto2.util.equals(_UnpublishTrackResponse, a, b);
517
+ }
518
+ };
519
+ _UnpublishTrackResponse.runtime = import_protobuf.proto2;
520
+ _UnpublishTrackResponse.typeName = "livekit.proto.UnpublishTrackResponse";
521
+ _UnpublishTrackResponse.fields = import_protobuf.proto2.util.newFieldList(() => [
522
+ { no: 1, name: "async_id", kind: "scalar", T: 4, req: true }
523
+ ]);
524
+ let UnpublishTrackResponse = _UnpublishTrackResponse;
525
+ const _UnpublishTrackCallback = class _UnpublishTrackCallback extends import_protobuf.Message {
526
+ constructor(data) {
527
+ super();
528
+ import_protobuf.proto2.util.initPartial(data, this);
529
+ }
530
+ static fromBinary(bytes, options) {
531
+ return new _UnpublishTrackCallback().fromBinary(bytes, options);
532
+ }
533
+ static fromJson(jsonValue, options) {
534
+ return new _UnpublishTrackCallback().fromJson(jsonValue, options);
535
+ }
536
+ static fromJsonString(jsonString, options) {
537
+ return new _UnpublishTrackCallback().fromJsonString(jsonString, options);
538
+ }
539
+ static equals(a, b) {
540
+ return import_protobuf.proto2.util.equals(_UnpublishTrackCallback, a, b);
541
+ }
542
+ };
543
+ _UnpublishTrackCallback.runtime = import_protobuf.proto2;
544
+ _UnpublishTrackCallback.typeName = "livekit.proto.UnpublishTrackCallback";
545
+ _UnpublishTrackCallback.fields = import_protobuf.proto2.util.newFieldList(() => [
546
+ { no: 1, name: "async_id", kind: "scalar", T: 4, req: true },
547
+ { no: 2, name: "error", kind: "scalar", T: 9, opt: true }
548
+ ]);
549
+ let UnpublishTrackCallback = _UnpublishTrackCallback;
550
+ const _PublishDataRequest = class _PublishDataRequest extends import_protobuf.Message {
551
+ constructor(data) {
552
+ super();
553
+ /**
554
+ * @generated from field: repeated string destination_sids = 5 [deprecated = true];
555
+ * @deprecated
556
+ */
557
+ this.destinationSids = [];
558
+ /**
559
+ * @generated from field: repeated string destination_identities = 7;
560
+ */
561
+ this.destinationIdentities = [];
562
+ import_protobuf.proto2.util.initPartial(data, this);
563
+ }
564
+ static fromBinary(bytes, options) {
565
+ return new _PublishDataRequest().fromBinary(bytes, options);
566
+ }
567
+ static fromJson(jsonValue, options) {
568
+ return new _PublishDataRequest().fromJson(jsonValue, options);
569
+ }
570
+ static fromJsonString(jsonString, options) {
571
+ return new _PublishDataRequest().fromJsonString(jsonString, options);
572
+ }
573
+ static equals(a, b) {
574
+ return import_protobuf.proto2.util.equals(_PublishDataRequest, a, b);
575
+ }
576
+ };
577
+ _PublishDataRequest.runtime = import_protobuf.proto2;
578
+ _PublishDataRequest.typeName = "livekit.proto.PublishDataRequest";
579
+ _PublishDataRequest.fields = import_protobuf.proto2.util.newFieldList(() => [
580
+ { no: 1, name: "local_participant_handle", kind: "scalar", T: 4, req: true },
581
+ { no: 2, name: "data_ptr", kind: "scalar", T: 4, req: true },
582
+ { no: 3, name: "data_len", kind: "scalar", T: 4, req: true },
583
+ { no: 4, name: "reliable", kind: "scalar", T: 8, req: true },
584
+ { no: 5, name: "destination_sids", kind: "scalar", T: 9, repeated: true },
585
+ { no: 6, name: "topic", kind: "scalar", T: 9, opt: true },
586
+ { no: 7, name: "destination_identities", kind: "scalar", T: 9, repeated: true }
587
+ ]);
588
+ let PublishDataRequest = _PublishDataRequest;
589
+ const _PublishDataResponse = class _PublishDataResponse extends import_protobuf.Message {
590
+ constructor(data) {
591
+ super();
592
+ import_protobuf.proto2.util.initPartial(data, this);
593
+ }
594
+ static fromBinary(bytes, options) {
595
+ return new _PublishDataResponse().fromBinary(bytes, options);
596
+ }
597
+ static fromJson(jsonValue, options) {
598
+ return new _PublishDataResponse().fromJson(jsonValue, options);
599
+ }
600
+ static fromJsonString(jsonString, options) {
601
+ return new _PublishDataResponse().fromJsonString(jsonString, options);
602
+ }
603
+ static equals(a, b) {
604
+ return import_protobuf.proto2.util.equals(_PublishDataResponse, a, b);
605
+ }
606
+ };
607
+ _PublishDataResponse.runtime = import_protobuf.proto2;
608
+ _PublishDataResponse.typeName = "livekit.proto.PublishDataResponse";
609
+ _PublishDataResponse.fields = import_protobuf.proto2.util.newFieldList(() => [
610
+ { no: 1, name: "async_id", kind: "scalar", T: 4, req: true }
611
+ ]);
612
+ let PublishDataResponse = _PublishDataResponse;
613
+ const _PublishDataCallback = class _PublishDataCallback extends import_protobuf.Message {
614
+ constructor(data) {
615
+ super();
616
+ import_protobuf.proto2.util.initPartial(data, this);
617
+ }
618
+ static fromBinary(bytes, options) {
619
+ return new _PublishDataCallback().fromBinary(bytes, options);
620
+ }
621
+ static fromJson(jsonValue, options) {
622
+ return new _PublishDataCallback().fromJson(jsonValue, options);
623
+ }
624
+ static fromJsonString(jsonString, options) {
625
+ return new _PublishDataCallback().fromJsonString(jsonString, options);
626
+ }
627
+ static equals(a, b) {
628
+ return import_protobuf.proto2.util.equals(_PublishDataCallback, a, b);
629
+ }
630
+ };
631
+ _PublishDataCallback.runtime = import_protobuf.proto2;
632
+ _PublishDataCallback.typeName = "livekit.proto.PublishDataCallback";
633
+ _PublishDataCallback.fields = import_protobuf.proto2.util.newFieldList(() => [
634
+ { no: 1, name: "async_id", kind: "scalar", T: 4, req: true },
635
+ { no: 2, name: "error", kind: "scalar", T: 9, opt: true }
636
+ ]);
637
+ let PublishDataCallback = _PublishDataCallback;
638
+ const _PublishTranscriptionRequest = class _PublishTranscriptionRequest extends import_protobuf.Message {
639
+ constructor(data) {
640
+ super();
641
+ /**
642
+ * @generated from field: repeated livekit.proto.TranscriptionSegment segments = 4;
643
+ */
644
+ this.segments = [];
645
+ import_protobuf.proto2.util.initPartial(data, this);
646
+ }
647
+ static fromBinary(bytes, options) {
648
+ return new _PublishTranscriptionRequest().fromBinary(bytes, options);
649
+ }
650
+ static fromJson(jsonValue, options) {
651
+ return new _PublishTranscriptionRequest().fromJson(jsonValue, options);
652
+ }
653
+ static fromJsonString(jsonString, options) {
654
+ return new _PublishTranscriptionRequest().fromJsonString(jsonString, options);
655
+ }
656
+ static equals(a, b) {
657
+ return import_protobuf.proto2.util.equals(_PublishTranscriptionRequest, a, b);
658
+ }
659
+ };
660
+ _PublishTranscriptionRequest.runtime = import_protobuf.proto2;
661
+ _PublishTranscriptionRequest.typeName = "livekit.proto.PublishTranscriptionRequest";
662
+ _PublishTranscriptionRequest.fields = import_protobuf.proto2.util.newFieldList(() => [
663
+ { no: 1, name: "local_participant_handle", kind: "scalar", T: 4, req: true },
664
+ { no: 2, name: "participant_identity", kind: "scalar", T: 9, req: true },
665
+ { no: 3, name: "track_id", kind: "scalar", T: 9, req: true },
666
+ { no: 4, name: "segments", kind: "message", T: TranscriptionSegment, repeated: true }
667
+ ]);
668
+ let PublishTranscriptionRequest = _PublishTranscriptionRequest;
669
+ const _PublishTranscriptionResponse = class _PublishTranscriptionResponse extends import_protobuf.Message {
670
+ constructor(data) {
671
+ super();
672
+ import_protobuf.proto2.util.initPartial(data, this);
673
+ }
674
+ static fromBinary(bytes, options) {
675
+ return new _PublishTranscriptionResponse().fromBinary(bytes, options);
676
+ }
677
+ static fromJson(jsonValue, options) {
678
+ return new _PublishTranscriptionResponse().fromJson(jsonValue, options);
679
+ }
680
+ static fromJsonString(jsonString, options) {
681
+ return new _PublishTranscriptionResponse().fromJsonString(jsonString, options);
682
+ }
683
+ static equals(a, b) {
684
+ return import_protobuf.proto2.util.equals(_PublishTranscriptionResponse, a, b);
685
+ }
686
+ };
687
+ _PublishTranscriptionResponse.runtime = import_protobuf.proto2;
688
+ _PublishTranscriptionResponse.typeName = "livekit.proto.PublishTranscriptionResponse";
689
+ _PublishTranscriptionResponse.fields = import_protobuf.proto2.util.newFieldList(() => [
690
+ { no: 1, name: "async_id", kind: "scalar", T: 4, req: true }
691
+ ]);
692
+ let PublishTranscriptionResponse = _PublishTranscriptionResponse;
693
+ const _PublishTranscriptionCallback = class _PublishTranscriptionCallback extends import_protobuf.Message {
694
+ constructor(data) {
695
+ super();
696
+ import_protobuf.proto2.util.initPartial(data, this);
697
+ }
698
+ static fromBinary(bytes, options) {
699
+ return new _PublishTranscriptionCallback().fromBinary(bytes, options);
700
+ }
701
+ static fromJson(jsonValue, options) {
702
+ return new _PublishTranscriptionCallback().fromJson(jsonValue, options);
703
+ }
704
+ static fromJsonString(jsonString, options) {
705
+ return new _PublishTranscriptionCallback().fromJsonString(jsonString, options);
706
+ }
707
+ static equals(a, b) {
708
+ return import_protobuf.proto2.util.equals(_PublishTranscriptionCallback, a, b);
709
+ }
710
+ };
711
+ _PublishTranscriptionCallback.runtime = import_protobuf.proto2;
712
+ _PublishTranscriptionCallback.typeName = "livekit.proto.PublishTranscriptionCallback";
713
+ _PublishTranscriptionCallback.fields = import_protobuf.proto2.util.newFieldList(() => [
714
+ { no: 1, name: "async_id", kind: "scalar", T: 4, req: true },
715
+ { no: 2, name: "error", kind: "scalar", T: 9, opt: true }
716
+ ]);
717
+ let PublishTranscriptionCallback = _PublishTranscriptionCallback;
718
+ const _PublishSipDtmfRequest = class _PublishSipDtmfRequest extends import_protobuf.Message {
719
+ constructor(data) {
720
+ super();
721
+ /**
722
+ * @generated from field: repeated string destination_identities = 4;
723
+ */
724
+ this.destinationIdentities = [];
725
+ import_protobuf.proto2.util.initPartial(data, this);
726
+ }
727
+ static fromBinary(bytes, options) {
728
+ return new _PublishSipDtmfRequest().fromBinary(bytes, options);
729
+ }
730
+ static fromJson(jsonValue, options) {
731
+ return new _PublishSipDtmfRequest().fromJson(jsonValue, options);
732
+ }
733
+ static fromJsonString(jsonString, options) {
734
+ return new _PublishSipDtmfRequest().fromJsonString(jsonString, options);
735
+ }
736
+ static equals(a, b) {
737
+ return import_protobuf.proto2.util.equals(_PublishSipDtmfRequest, a, b);
738
+ }
739
+ };
740
+ _PublishSipDtmfRequest.runtime = import_protobuf.proto2;
741
+ _PublishSipDtmfRequest.typeName = "livekit.proto.PublishSipDtmfRequest";
742
+ _PublishSipDtmfRequest.fields = import_protobuf.proto2.util.newFieldList(() => [
743
+ { no: 1, name: "local_participant_handle", kind: "scalar", T: 4, req: true },
744
+ { no: 2, name: "code", kind: "scalar", T: 13, req: true },
745
+ { no: 3, name: "digit", kind: "scalar", T: 9, req: true },
746
+ { no: 4, name: "destination_identities", kind: "scalar", T: 9, repeated: true }
747
+ ]);
748
+ let PublishSipDtmfRequest = _PublishSipDtmfRequest;
749
+ const _PublishSipDtmfResponse = class _PublishSipDtmfResponse extends import_protobuf.Message {
750
+ constructor(data) {
751
+ super();
752
+ import_protobuf.proto2.util.initPartial(data, this);
753
+ }
754
+ static fromBinary(bytes, options) {
755
+ return new _PublishSipDtmfResponse().fromBinary(bytes, options);
756
+ }
757
+ static fromJson(jsonValue, options) {
758
+ return new _PublishSipDtmfResponse().fromJson(jsonValue, options);
759
+ }
760
+ static fromJsonString(jsonString, options) {
761
+ return new _PublishSipDtmfResponse().fromJsonString(jsonString, options);
762
+ }
763
+ static equals(a, b) {
764
+ return import_protobuf.proto2.util.equals(_PublishSipDtmfResponse, a, b);
765
+ }
766
+ };
767
+ _PublishSipDtmfResponse.runtime = import_protobuf.proto2;
768
+ _PublishSipDtmfResponse.typeName = "livekit.proto.PublishSipDtmfResponse";
769
+ _PublishSipDtmfResponse.fields = import_protobuf.proto2.util.newFieldList(() => [
770
+ { no: 1, name: "async_id", kind: "scalar", T: 4, req: true }
771
+ ]);
772
+ let PublishSipDtmfResponse = _PublishSipDtmfResponse;
773
+ const _PublishSipDtmfCallback = class _PublishSipDtmfCallback extends import_protobuf.Message {
774
+ constructor(data) {
775
+ super();
776
+ import_protobuf.proto2.util.initPartial(data, this);
777
+ }
778
+ static fromBinary(bytes, options) {
779
+ return new _PublishSipDtmfCallback().fromBinary(bytes, options);
780
+ }
781
+ static fromJson(jsonValue, options) {
782
+ return new _PublishSipDtmfCallback().fromJson(jsonValue, options);
783
+ }
784
+ static fromJsonString(jsonString, options) {
785
+ return new _PublishSipDtmfCallback().fromJsonString(jsonString, options);
786
+ }
787
+ static equals(a, b) {
788
+ return import_protobuf.proto2.util.equals(_PublishSipDtmfCallback, a, b);
789
+ }
790
+ };
791
+ _PublishSipDtmfCallback.runtime = import_protobuf.proto2;
792
+ _PublishSipDtmfCallback.typeName = "livekit.proto.PublishSipDtmfCallback";
793
+ _PublishSipDtmfCallback.fields = import_protobuf.proto2.util.newFieldList(() => [
794
+ { no: 1, name: "async_id", kind: "scalar", T: 4, req: true },
795
+ { no: 2, name: "error", kind: "scalar", T: 9, opt: true }
796
+ ]);
797
+ let PublishSipDtmfCallback = _PublishSipDtmfCallback;
798
+ const _SetLocalMetadataRequest = class _SetLocalMetadataRequest extends import_protobuf.Message {
799
+ constructor(data) {
800
+ super();
801
+ import_protobuf.proto2.util.initPartial(data, this);
802
+ }
803
+ static fromBinary(bytes, options) {
804
+ return new _SetLocalMetadataRequest().fromBinary(bytes, options);
805
+ }
806
+ static fromJson(jsonValue, options) {
807
+ return new _SetLocalMetadataRequest().fromJson(jsonValue, options);
808
+ }
809
+ static fromJsonString(jsonString, options) {
810
+ return new _SetLocalMetadataRequest().fromJsonString(jsonString, options);
811
+ }
812
+ static equals(a, b) {
813
+ return import_protobuf.proto2.util.equals(_SetLocalMetadataRequest, a, b);
814
+ }
815
+ };
816
+ _SetLocalMetadataRequest.runtime = import_protobuf.proto2;
817
+ _SetLocalMetadataRequest.typeName = "livekit.proto.SetLocalMetadataRequest";
818
+ _SetLocalMetadataRequest.fields = import_protobuf.proto2.util.newFieldList(() => [
819
+ { no: 1, name: "local_participant_handle", kind: "scalar", T: 4, req: true },
820
+ { no: 2, name: "metadata", kind: "scalar", T: 9, req: true }
821
+ ]);
822
+ let SetLocalMetadataRequest = _SetLocalMetadataRequest;
823
+ const _SetLocalMetadataResponse = class _SetLocalMetadataResponse extends import_protobuf.Message {
824
+ constructor(data) {
825
+ super();
826
+ import_protobuf.proto2.util.initPartial(data, this);
827
+ }
828
+ static fromBinary(bytes, options) {
829
+ return new _SetLocalMetadataResponse().fromBinary(bytes, options);
830
+ }
831
+ static fromJson(jsonValue, options) {
832
+ return new _SetLocalMetadataResponse().fromJson(jsonValue, options);
833
+ }
834
+ static fromJsonString(jsonString, options) {
835
+ return new _SetLocalMetadataResponse().fromJsonString(jsonString, options);
836
+ }
837
+ static equals(a, b) {
838
+ return import_protobuf.proto2.util.equals(_SetLocalMetadataResponse, a, b);
839
+ }
840
+ };
841
+ _SetLocalMetadataResponse.runtime = import_protobuf.proto2;
842
+ _SetLocalMetadataResponse.typeName = "livekit.proto.SetLocalMetadataResponse";
843
+ _SetLocalMetadataResponse.fields = import_protobuf.proto2.util.newFieldList(() => [
844
+ { no: 1, name: "async_id", kind: "scalar", T: 4, req: true }
845
+ ]);
846
+ let SetLocalMetadataResponse = _SetLocalMetadataResponse;
847
+ const _SetLocalMetadataCallback = class _SetLocalMetadataCallback extends import_protobuf.Message {
848
+ constructor(data) {
849
+ super();
850
+ import_protobuf.proto2.util.initPartial(data, this);
851
+ }
852
+ static fromBinary(bytes, options) {
853
+ return new _SetLocalMetadataCallback().fromBinary(bytes, options);
854
+ }
855
+ static fromJson(jsonValue, options) {
856
+ return new _SetLocalMetadataCallback().fromJson(jsonValue, options);
857
+ }
858
+ static fromJsonString(jsonString, options) {
859
+ return new _SetLocalMetadataCallback().fromJsonString(jsonString, options);
860
+ }
861
+ static equals(a, b) {
862
+ return import_protobuf.proto2.util.equals(_SetLocalMetadataCallback, a, b);
863
+ }
864
+ };
865
+ _SetLocalMetadataCallback.runtime = import_protobuf.proto2;
866
+ _SetLocalMetadataCallback.typeName = "livekit.proto.SetLocalMetadataCallback";
867
+ _SetLocalMetadataCallback.fields = import_protobuf.proto2.util.newFieldList(() => [
868
+ { no: 1, name: "async_id", kind: "scalar", T: 4, req: true },
869
+ { no: 2, name: "error", kind: "scalar", T: 9, opt: true }
870
+ ]);
871
+ let SetLocalMetadataCallback = _SetLocalMetadataCallback;
872
+ const _SendChatMessageRequest = class _SendChatMessageRequest extends import_protobuf.Message {
873
+ constructor(data) {
874
+ super();
875
+ /**
876
+ * @generated from field: repeated string destination_identities = 3;
877
+ */
878
+ this.destinationIdentities = [];
879
+ import_protobuf.proto2.util.initPartial(data, this);
880
+ }
881
+ static fromBinary(bytes, options) {
882
+ return new _SendChatMessageRequest().fromBinary(bytes, options);
883
+ }
884
+ static fromJson(jsonValue, options) {
885
+ return new _SendChatMessageRequest().fromJson(jsonValue, options);
886
+ }
887
+ static fromJsonString(jsonString, options) {
888
+ return new _SendChatMessageRequest().fromJsonString(jsonString, options);
889
+ }
890
+ static equals(a, b) {
891
+ return import_protobuf.proto2.util.equals(_SendChatMessageRequest, a, b);
892
+ }
893
+ };
894
+ _SendChatMessageRequest.runtime = import_protobuf.proto2;
895
+ _SendChatMessageRequest.typeName = "livekit.proto.SendChatMessageRequest";
896
+ _SendChatMessageRequest.fields = import_protobuf.proto2.util.newFieldList(() => [
897
+ { no: 1, name: "local_participant_handle", kind: "scalar", T: 4, req: true },
898
+ { no: 2, name: "message", kind: "scalar", T: 9, req: true },
899
+ { no: 3, name: "destination_identities", kind: "scalar", T: 9, repeated: true },
900
+ { no: 4, name: "sender_identity", kind: "scalar", T: 9, opt: true }
901
+ ]);
902
+ let SendChatMessageRequest = _SendChatMessageRequest;
903
+ const _EditChatMessageRequest = class _EditChatMessageRequest extends import_protobuf.Message {
904
+ constructor(data) {
905
+ super();
906
+ /**
907
+ * @generated from field: repeated string destination_identities = 4;
908
+ */
909
+ this.destinationIdentities = [];
910
+ import_protobuf.proto2.util.initPartial(data, this);
911
+ }
912
+ static fromBinary(bytes, options) {
913
+ return new _EditChatMessageRequest().fromBinary(bytes, options);
914
+ }
915
+ static fromJson(jsonValue, options) {
916
+ return new _EditChatMessageRequest().fromJson(jsonValue, options);
917
+ }
918
+ static fromJsonString(jsonString, options) {
919
+ return new _EditChatMessageRequest().fromJsonString(jsonString, options);
920
+ }
921
+ static equals(a, b) {
922
+ return import_protobuf.proto2.util.equals(_EditChatMessageRequest, a, b);
923
+ }
924
+ };
925
+ _EditChatMessageRequest.runtime = import_protobuf.proto2;
926
+ _EditChatMessageRequest.typeName = "livekit.proto.EditChatMessageRequest";
927
+ _EditChatMessageRequest.fields = import_protobuf.proto2.util.newFieldList(() => [
928
+ { no: 1, name: "local_participant_handle", kind: "scalar", T: 4, req: true },
929
+ { no: 2, name: "edit_text", kind: "scalar", T: 9, req: true },
930
+ { no: 3, name: "original_message", kind: "message", T: ChatMessage, req: true },
931
+ { no: 4, name: "destination_identities", kind: "scalar", T: 9, repeated: true },
932
+ { no: 5, name: "sender_identity", kind: "scalar", T: 9, opt: true }
933
+ ]);
934
+ let EditChatMessageRequest = _EditChatMessageRequest;
935
+ const _SendChatMessageResponse = class _SendChatMessageResponse extends import_protobuf.Message {
936
+ constructor(data) {
937
+ super();
938
+ import_protobuf.proto2.util.initPartial(data, this);
939
+ }
940
+ static fromBinary(bytes, options) {
941
+ return new _SendChatMessageResponse().fromBinary(bytes, options);
942
+ }
943
+ static fromJson(jsonValue, options) {
944
+ return new _SendChatMessageResponse().fromJson(jsonValue, options);
945
+ }
946
+ static fromJsonString(jsonString, options) {
947
+ return new _SendChatMessageResponse().fromJsonString(jsonString, options);
948
+ }
949
+ static equals(a, b) {
950
+ return import_protobuf.proto2.util.equals(_SendChatMessageResponse, a, b);
951
+ }
952
+ };
953
+ _SendChatMessageResponse.runtime = import_protobuf.proto2;
954
+ _SendChatMessageResponse.typeName = "livekit.proto.SendChatMessageResponse";
955
+ _SendChatMessageResponse.fields = import_protobuf.proto2.util.newFieldList(() => [
956
+ { no: 1, name: "async_id", kind: "scalar", T: 4, req: true }
957
+ ]);
958
+ let SendChatMessageResponse = _SendChatMessageResponse;
959
+ const _SendChatMessageCallback = class _SendChatMessageCallback extends import_protobuf.Message {
960
+ constructor(data) {
961
+ super();
962
+ /**
963
+ * @generated from oneof livekit.proto.SendChatMessageCallback.message
964
+ */
965
+ this.message = { case: void 0 };
966
+ import_protobuf.proto2.util.initPartial(data, this);
967
+ }
968
+ static fromBinary(bytes, options) {
969
+ return new _SendChatMessageCallback().fromBinary(bytes, options);
970
+ }
971
+ static fromJson(jsonValue, options) {
972
+ return new _SendChatMessageCallback().fromJson(jsonValue, options);
973
+ }
974
+ static fromJsonString(jsonString, options) {
975
+ return new _SendChatMessageCallback().fromJsonString(jsonString, options);
976
+ }
977
+ static equals(a, b) {
978
+ return import_protobuf.proto2.util.equals(_SendChatMessageCallback, a, b);
979
+ }
980
+ };
981
+ _SendChatMessageCallback.runtime = import_protobuf.proto2;
982
+ _SendChatMessageCallback.typeName = "livekit.proto.SendChatMessageCallback";
983
+ _SendChatMessageCallback.fields = import_protobuf.proto2.util.newFieldList(() => [
984
+ { no: 1, name: "async_id", kind: "scalar", T: 4, req: true },
985
+ { no: 2, name: "error", kind: "scalar", T: 9, oneof: "message" },
986
+ { no: 3, name: "chat_message", kind: "message", T: ChatMessage, oneof: "message" }
987
+ ]);
988
+ let SendChatMessageCallback = _SendChatMessageCallback;
989
+ const _SetLocalAttributesRequest = class _SetLocalAttributesRequest extends import_protobuf.Message {
990
+ constructor(data) {
991
+ super();
992
+ /**
993
+ * @generated from field: repeated livekit.proto.AttributesEntry attributes = 2;
994
+ */
995
+ this.attributes = [];
996
+ import_protobuf.proto2.util.initPartial(data, this);
997
+ }
998
+ static fromBinary(bytes, options) {
999
+ return new _SetLocalAttributesRequest().fromBinary(bytes, options);
1000
+ }
1001
+ static fromJson(jsonValue, options) {
1002
+ return new _SetLocalAttributesRequest().fromJson(jsonValue, options);
1003
+ }
1004
+ static fromJsonString(jsonString, options) {
1005
+ return new _SetLocalAttributesRequest().fromJsonString(jsonString, options);
1006
+ }
1007
+ static equals(a, b) {
1008
+ return import_protobuf.proto2.util.equals(_SetLocalAttributesRequest, a, b);
1009
+ }
1010
+ };
1011
+ _SetLocalAttributesRequest.runtime = import_protobuf.proto2;
1012
+ _SetLocalAttributesRequest.typeName = "livekit.proto.SetLocalAttributesRequest";
1013
+ _SetLocalAttributesRequest.fields = import_protobuf.proto2.util.newFieldList(() => [
1014
+ { no: 1, name: "local_participant_handle", kind: "scalar", T: 4, req: true },
1015
+ { no: 2, name: "attributes", kind: "message", T: AttributesEntry, repeated: true }
1016
+ ]);
1017
+ let SetLocalAttributesRequest = _SetLocalAttributesRequest;
1018
+ const _AttributesEntry = class _AttributesEntry extends import_protobuf.Message {
1019
+ constructor(data) {
1020
+ super();
1021
+ import_protobuf.proto2.util.initPartial(data, this);
1022
+ }
1023
+ static fromBinary(bytes, options) {
1024
+ return new _AttributesEntry().fromBinary(bytes, options);
1025
+ }
1026
+ static fromJson(jsonValue, options) {
1027
+ return new _AttributesEntry().fromJson(jsonValue, options);
1028
+ }
1029
+ static fromJsonString(jsonString, options) {
1030
+ return new _AttributesEntry().fromJsonString(jsonString, options);
1031
+ }
1032
+ static equals(a, b) {
1033
+ return import_protobuf.proto2.util.equals(_AttributesEntry, a, b);
1034
+ }
1035
+ };
1036
+ _AttributesEntry.runtime = import_protobuf.proto2;
1037
+ _AttributesEntry.typeName = "livekit.proto.AttributesEntry";
1038
+ _AttributesEntry.fields = import_protobuf.proto2.util.newFieldList(() => [
1039
+ { no: 1, name: "key", kind: "scalar", T: 9, req: true },
1040
+ { no: 2, name: "value", kind: "scalar", T: 9, req: true }
1041
+ ]);
1042
+ let AttributesEntry = _AttributesEntry;
1043
+ const _SetLocalAttributesResponse = class _SetLocalAttributesResponse extends import_protobuf.Message {
1044
+ constructor(data) {
1045
+ super();
1046
+ import_protobuf.proto2.util.initPartial(data, this);
1047
+ }
1048
+ static fromBinary(bytes, options) {
1049
+ return new _SetLocalAttributesResponse().fromBinary(bytes, options);
1050
+ }
1051
+ static fromJson(jsonValue, options) {
1052
+ return new _SetLocalAttributesResponse().fromJson(jsonValue, options);
1053
+ }
1054
+ static fromJsonString(jsonString, options) {
1055
+ return new _SetLocalAttributesResponse().fromJsonString(jsonString, options);
1056
+ }
1057
+ static equals(a, b) {
1058
+ return import_protobuf.proto2.util.equals(_SetLocalAttributesResponse, a, b);
1059
+ }
1060
+ };
1061
+ _SetLocalAttributesResponse.runtime = import_protobuf.proto2;
1062
+ _SetLocalAttributesResponse.typeName = "livekit.proto.SetLocalAttributesResponse";
1063
+ _SetLocalAttributesResponse.fields = import_protobuf.proto2.util.newFieldList(() => [
1064
+ { no: 1, name: "async_id", kind: "scalar", T: 4, req: true }
1065
+ ]);
1066
+ let SetLocalAttributesResponse = _SetLocalAttributesResponse;
1067
+ const _SetLocalAttributesCallback = class _SetLocalAttributesCallback extends import_protobuf.Message {
1068
+ constructor(data) {
1069
+ super();
1070
+ import_protobuf.proto2.util.initPartial(data, this);
1071
+ }
1072
+ static fromBinary(bytes, options) {
1073
+ return new _SetLocalAttributesCallback().fromBinary(bytes, options);
1074
+ }
1075
+ static fromJson(jsonValue, options) {
1076
+ return new _SetLocalAttributesCallback().fromJson(jsonValue, options);
1077
+ }
1078
+ static fromJsonString(jsonString, options) {
1079
+ return new _SetLocalAttributesCallback().fromJsonString(jsonString, options);
1080
+ }
1081
+ static equals(a, b) {
1082
+ return import_protobuf.proto2.util.equals(_SetLocalAttributesCallback, a, b);
1083
+ }
1084
+ };
1085
+ _SetLocalAttributesCallback.runtime = import_protobuf.proto2;
1086
+ _SetLocalAttributesCallback.typeName = "livekit.proto.SetLocalAttributesCallback";
1087
+ _SetLocalAttributesCallback.fields = import_protobuf.proto2.util.newFieldList(() => [
1088
+ { no: 1, name: "async_id", kind: "scalar", T: 4, req: true },
1089
+ { no: 2, name: "error", kind: "scalar", T: 9, opt: true }
1090
+ ]);
1091
+ let SetLocalAttributesCallback = _SetLocalAttributesCallback;
1092
+ const _SetLocalNameRequest = class _SetLocalNameRequest extends import_protobuf.Message {
1093
+ constructor(data) {
1094
+ super();
1095
+ import_protobuf.proto2.util.initPartial(data, this);
1096
+ }
1097
+ static fromBinary(bytes, options) {
1098
+ return new _SetLocalNameRequest().fromBinary(bytes, options);
1099
+ }
1100
+ static fromJson(jsonValue, options) {
1101
+ return new _SetLocalNameRequest().fromJson(jsonValue, options);
1102
+ }
1103
+ static fromJsonString(jsonString, options) {
1104
+ return new _SetLocalNameRequest().fromJsonString(jsonString, options);
1105
+ }
1106
+ static equals(a, b) {
1107
+ return import_protobuf.proto2.util.equals(_SetLocalNameRequest, a, b);
1108
+ }
1109
+ };
1110
+ _SetLocalNameRequest.runtime = import_protobuf.proto2;
1111
+ _SetLocalNameRequest.typeName = "livekit.proto.SetLocalNameRequest";
1112
+ _SetLocalNameRequest.fields = import_protobuf.proto2.util.newFieldList(() => [
1113
+ { no: 1, name: "local_participant_handle", kind: "scalar", T: 4, req: true },
1114
+ { no: 2, name: "name", kind: "scalar", T: 9, req: true }
1115
+ ]);
1116
+ let SetLocalNameRequest = _SetLocalNameRequest;
1117
+ const _SetLocalNameResponse = class _SetLocalNameResponse extends import_protobuf.Message {
1118
+ constructor(data) {
1119
+ super();
1120
+ import_protobuf.proto2.util.initPartial(data, this);
1121
+ }
1122
+ static fromBinary(bytes, options) {
1123
+ return new _SetLocalNameResponse().fromBinary(bytes, options);
1124
+ }
1125
+ static fromJson(jsonValue, options) {
1126
+ return new _SetLocalNameResponse().fromJson(jsonValue, options);
1127
+ }
1128
+ static fromJsonString(jsonString, options) {
1129
+ return new _SetLocalNameResponse().fromJsonString(jsonString, options);
1130
+ }
1131
+ static equals(a, b) {
1132
+ return import_protobuf.proto2.util.equals(_SetLocalNameResponse, a, b);
1133
+ }
1134
+ };
1135
+ _SetLocalNameResponse.runtime = import_protobuf.proto2;
1136
+ _SetLocalNameResponse.typeName = "livekit.proto.SetLocalNameResponse";
1137
+ _SetLocalNameResponse.fields = import_protobuf.proto2.util.newFieldList(() => [
1138
+ { no: 1, name: "async_id", kind: "scalar", T: 4, req: true }
1139
+ ]);
1140
+ let SetLocalNameResponse = _SetLocalNameResponse;
1141
+ const _SetLocalNameCallback = class _SetLocalNameCallback extends import_protobuf.Message {
1142
+ constructor(data) {
1143
+ super();
1144
+ import_protobuf.proto2.util.initPartial(data, this);
1145
+ }
1146
+ static fromBinary(bytes, options) {
1147
+ return new _SetLocalNameCallback().fromBinary(bytes, options);
1148
+ }
1149
+ static fromJson(jsonValue, options) {
1150
+ return new _SetLocalNameCallback().fromJson(jsonValue, options);
1151
+ }
1152
+ static fromJsonString(jsonString, options) {
1153
+ return new _SetLocalNameCallback().fromJsonString(jsonString, options);
1154
+ }
1155
+ static equals(a, b) {
1156
+ return import_protobuf.proto2.util.equals(_SetLocalNameCallback, a, b);
1157
+ }
1158
+ };
1159
+ _SetLocalNameCallback.runtime = import_protobuf.proto2;
1160
+ _SetLocalNameCallback.typeName = "livekit.proto.SetLocalNameCallback";
1161
+ _SetLocalNameCallback.fields = import_protobuf.proto2.util.newFieldList(() => [
1162
+ { no: 1, name: "async_id", kind: "scalar", T: 4, req: true },
1163
+ { no: 2, name: "error", kind: "scalar", T: 9, opt: true }
1164
+ ]);
1165
+ let SetLocalNameCallback = _SetLocalNameCallback;
1166
+ const _SetSubscribedRequest = class _SetSubscribedRequest extends import_protobuf.Message {
1167
+ constructor(data) {
1168
+ super();
1169
+ import_protobuf.proto2.util.initPartial(data, this);
1170
+ }
1171
+ static fromBinary(bytes, options) {
1172
+ return new _SetSubscribedRequest().fromBinary(bytes, options);
1173
+ }
1174
+ static fromJson(jsonValue, options) {
1175
+ return new _SetSubscribedRequest().fromJson(jsonValue, options);
1176
+ }
1177
+ static fromJsonString(jsonString, options) {
1178
+ return new _SetSubscribedRequest().fromJsonString(jsonString, options);
1179
+ }
1180
+ static equals(a, b) {
1181
+ return import_protobuf.proto2.util.equals(_SetSubscribedRequest, a, b);
1182
+ }
1183
+ };
1184
+ _SetSubscribedRequest.runtime = import_protobuf.proto2;
1185
+ _SetSubscribedRequest.typeName = "livekit.proto.SetSubscribedRequest";
1186
+ _SetSubscribedRequest.fields = import_protobuf.proto2.util.newFieldList(() => [
1187
+ { no: 1, name: "subscribe", kind: "scalar", T: 8, req: true },
1188
+ { no: 2, name: "publication_handle", kind: "scalar", T: 4, req: true }
1189
+ ]);
1190
+ let SetSubscribedRequest = _SetSubscribedRequest;
1191
+ const _SetSubscribedResponse = class _SetSubscribedResponse extends import_protobuf.Message {
1192
+ constructor(data) {
1193
+ super();
1194
+ import_protobuf.proto2.util.initPartial(data, this);
1195
+ }
1196
+ static fromBinary(bytes, options) {
1197
+ return new _SetSubscribedResponse().fromBinary(bytes, options);
1198
+ }
1199
+ static fromJson(jsonValue, options) {
1200
+ return new _SetSubscribedResponse().fromJson(jsonValue, options);
1201
+ }
1202
+ static fromJsonString(jsonString, options) {
1203
+ return new _SetSubscribedResponse().fromJsonString(jsonString, options);
1204
+ }
1205
+ static equals(a, b) {
1206
+ return import_protobuf.proto2.util.equals(_SetSubscribedResponse, a, b);
1207
+ }
1208
+ };
1209
+ _SetSubscribedResponse.runtime = import_protobuf.proto2;
1210
+ _SetSubscribedResponse.typeName = "livekit.proto.SetSubscribedResponse";
1211
+ _SetSubscribedResponse.fields = import_protobuf.proto2.util.newFieldList(() => []);
1212
+ let SetSubscribedResponse = _SetSubscribedResponse;
1213
+ const _GetSessionStatsRequest = class _GetSessionStatsRequest extends import_protobuf.Message {
1214
+ constructor(data) {
1215
+ super();
1216
+ import_protobuf.proto2.util.initPartial(data, this);
1217
+ }
1218
+ static fromBinary(bytes, options) {
1219
+ return new _GetSessionStatsRequest().fromBinary(bytes, options);
1220
+ }
1221
+ static fromJson(jsonValue, options) {
1222
+ return new _GetSessionStatsRequest().fromJson(jsonValue, options);
1223
+ }
1224
+ static fromJsonString(jsonString, options) {
1225
+ return new _GetSessionStatsRequest().fromJsonString(jsonString, options);
1226
+ }
1227
+ static equals(a, b) {
1228
+ return import_protobuf.proto2.util.equals(_GetSessionStatsRequest, a, b);
1229
+ }
1230
+ };
1231
+ _GetSessionStatsRequest.runtime = import_protobuf.proto2;
1232
+ _GetSessionStatsRequest.typeName = "livekit.proto.GetSessionStatsRequest";
1233
+ _GetSessionStatsRequest.fields = import_protobuf.proto2.util.newFieldList(() => [
1234
+ { no: 1, name: "room_handle", kind: "scalar", T: 4, req: true }
1235
+ ]);
1236
+ let GetSessionStatsRequest = _GetSessionStatsRequest;
1237
+ const _GetSessionStatsResponse = class _GetSessionStatsResponse extends import_protobuf.Message {
1238
+ constructor(data) {
1239
+ super();
1240
+ import_protobuf.proto2.util.initPartial(data, this);
1241
+ }
1242
+ static fromBinary(bytes, options) {
1243
+ return new _GetSessionStatsResponse().fromBinary(bytes, options);
1244
+ }
1245
+ static fromJson(jsonValue, options) {
1246
+ return new _GetSessionStatsResponse().fromJson(jsonValue, options);
1247
+ }
1248
+ static fromJsonString(jsonString, options) {
1249
+ return new _GetSessionStatsResponse().fromJsonString(jsonString, options);
1250
+ }
1251
+ static equals(a, b) {
1252
+ return import_protobuf.proto2.util.equals(_GetSessionStatsResponse, a, b);
1253
+ }
1254
+ };
1255
+ _GetSessionStatsResponse.runtime = import_protobuf.proto2;
1256
+ _GetSessionStatsResponse.typeName = "livekit.proto.GetSessionStatsResponse";
1257
+ _GetSessionStatsResponse.fields = import_protobuf.proto2.util.newFieldList(() => [
1258
+ { no: 1, name: "async_id", kind: "scalar", T: 4, req: true }
1259
+ ]);
1260
+ let GetSessionStatsResponse = _GetSessionStatsResponse;
1261
+ const _GetSessionStatsCallback = class _GetSessionStatsCallback extends import_protobuf.Message {
1262
+ constructor(data) {
1263
+ super();
1264
+ /**
1265
+ * @generated from oneof livekit.proto.GetSessionStatsCallback.message
1266
+ */
1267
+ this.message = { case: void 0 };
1268
+ import_protobuf.proto2.util.initPartial(data, this);
1269
+ }
1270
+ static fromBinary(bytes, options) {
1271
+ return new _GetSessionStatsCallback().fromBinary(bytes, options);
1272
+ }
1273
+ static fromJson(jsonValue, options) {
1274
+ return new _GetSessionStatsCallback().fromJson(jsonValue, options);
1275
+ }
1276
+ static fromJsonString(jsonString, options) {
1277
+ return new _GetSessionStatsCallback().fromJsonString(jsonString, options);
1278
+ }
1279
+ static equals(a, b) {
1280
+ return import_protobuf.proto2.util.equals(_GetSessionStatsCallback, a, b);
1281
+ }
1282
+ };
1283
+ _GetSessionStatsCallback.runtime = import_protobuf.proto2;
1284
+ _GetSessionStatsCallback.typeName = "livekit.proto.GetSessionStatsCallback";
1285
+ _GetSessionStatsCallback.fields = import_protobuf.proto2.util.newFieldList(() => [
1286
+ { no: 1, name: "async_id", kind: "scalar", T: 4, req: true },
1287
+ { no: 2, name: "error", kind: "scalar", T: 9, oneof: "message" },
1288
+ { no: 3, name: "result", kind: "message", T: GetSessionStatsCallback_Result, oneof: "message" }
1289
+ ]);
1290
+ let GetSessionStatsCallback = _GetSessionStatsCallback;
1291
+ const _GetSessionStatsCallback_Result = class _GetSessionStatsCallback_Result extends import_protobuf.Message {
1292
+ constructor(data) {
1293
+ super();
1294
+ /**
1295
+ * @generated from field: repeated livekit.proto.RtcStats publisher_stats = 1;
1296
+ */
1297
+ this.publisherStats = [];
1298
+ /**
1299
+ * @generated from field: repeated livekit.proto.RtcStats subscriber_stats = 2;
1300
+ */
1301
+ this.subscriberStats = [];
1302
+ import_protobuf.proto2.util.initPartial(data, this);
1303
+ }
1304
+ static fromBinary(bytes, options) {
1305
+ return new _GetSessionStatsCallback_Result().fromBinary(bytes, options);
1306
+ }
1307
+ static fromJson(jsonValue, options) {
1308
+ return new _GetSessionStatsCallback_Result().fromJson(jsonValue, options);
1309
+ }
1310
+ static fromJsonString(jsonString, options) {
1311
+ return new _GetSessionStatsCallback_Result().fromJsonString(jsonString, options);
1312
+ }
1313
+ static equals(a, b) {
1314
+ return import_protobuf.proto2.util.equals(_GetSessionStatsCallback_Result, a, b);
1315
+ }
1316
+ };
1317
+ _GetSessionStatsCallback_Result.runtime = import_protobuf.proto2;
1318
+ _GetSessionStatsCallback_Result.typeName = "livekit.proto.GetSessionStatsCallback.Result";
1319
+ _GetSessionStatsCallback_Result.fields = import_protobuf.proto2.util.newFieldList(() => [
1320
+ { no: 1, name: "publisher_stats", kind: "message", T: import_stats_pb.RtcStats, repeated: true },
1321
+ { no: 2, name: "subscriber_stats", kind: "message", T: import_stats_pb.RtcStats, repeated: true }
1322
+ ]);
1323
+ let GetSessionStatsCallback_Result = _GetSessionStatsCallback_Result;
1324
+ const _VideoEncoding = class _VideoEncoding extends import_protobuf.Message {
1325
+ constructor(data) {
1326
+ super();
1327
+ import_protobuf.proto2.util.initPartial(data, this);
1328
+ }
1329
+ static fromBinary(bytes, options) {
1330
+ return new _VideoEncoding().fromBinary(bytes, options);
1331
+ }
1332
+ static fromJson(jsonValue, options) {
1333
+ return new _VideoEncoding().fromJson(jsonValue, options);
1334
+ }
1335
+ static fromJsonString(jsonString, options) {
1336
+ return new _VideoEncoding().fromJsonString(jsonString, options);
1337
+ }
1338
+ static equals(a, b) {
1339
+ return import_protobuf.proto2.util.equals(_VideoEncoding, a, b);
1340
+ }
1341
+ };
1342
+ _VideoEncoding.runtime = import_protobuf.proto2;
1343
+ _VideoEncoding.typeName = "livekit.proto.VideoEncoding";
1344
+ _VideoEncoding.fields = import_protobuf.proto2.util.newFieldList(() => [
1345
+ { no: 1, name: "max_bitrate", kind: "scalar", T: 4, req: true },
1346
+ { no: 2, name: "max_framerate", kind: "scalar", T: 1, req: true }
1347
+ ]);
1348
+ let VideoEncoding = _VideoEncoding;
1349
+ const _AudioEncoding = class _AudioEncoding extends import_protobuf.Message {
1350
+ constructor(data) {
1351
+ super();
1352
+ import_protobuf.proto2.util.initPartial(data, this);
1353
+ }
1354
+ static fromBinary(bytes, options) {
1355
+ return new _AudioEncoding().fromBinary(bytes, options);
1356
+ }
1357
+ static fromJson(jsonValue, options) {
1358
+ return new _AudioEncoding().fromJson(jsonValue, options);
1359
+ }
1360
+ static fromJsonString(jsonString, options) {
1361
+ return new _AudioEncoding().fromJsonString(jsonString, options);
1362
+ }
1363
+ static equals(a, b) {
1364
+ return import_protobuf.proto2.util.equals(_AudioEncoding, a, b);
1365
+ }
1366
+ };
1367
+ _AudioEncoding.runtime = import_protobuf.proto2;
1368
+ _AudioEncoding.typeName = "livekit.proto.AudioEncoding";
1369
+ _AudioEncoding.fields = import_protobuf.proto2.util.newFieldList(() => [
1370
+ { no: 1, name: "max_bitrate", kind: "scalar", T: 4, req: true }
1371
+ ]);
1372
+ let AudioEncoding = _AudioEncoding;
1373
+ const _TrackPublishOptions = class _TrackPublishOptions extends import_protobuf.Message {
1374
+ constructor(data) {
1375
+ super();
1376
+ import_protobuf.proto2.util.initPartial(data, this);
1377
+ }
1378
+ static fromBinary(bytes, options) {
1379
+ return new _TrackPublishOptions().fromBinary(bytes, options);
1380
+ }
1381
+ static fromJson(jsonValue, options) {
1382
+ return new _TrackPublishOptions().fromJson(jsonValue, options);
1383
+ }
1384
+ static fromJsonString(jsonString, options) {
1385
+ return new _TrackPublishOptions().fromJsonString(jsonString, options);
1386
+ }
1387
+ static equals(a, b) {
1388
+ return import_protobuf.proto2.util.equals(_TrackPublishOptions, a, b);
1389
+ }
1390
+ };
1391
+ _TrackPublishOptions.runtime = import_protobuf.proto2;
1392
+ _TrackPublishOptions.typeName = "livekit.proto.TrackPublishOptions";
1393
+ _TrackPublishOptions.fields = import_protobuf.proto2.util.newFieldList(() => [
1394
+ { no: 1, name: "video_encoding", kind: "message", T: VideoEncoding, opt: true },
1395
+ { no: 2, name: "audio_encoding", kind: "message", T: AudioEncoding, opt: true },
1396
+ { no: 3, name: "video_codec", kind: "enum", T: import_protobuf.proto2.getEnumType(import_video_frame_pb.VideoCodec), opt: true },
1397
+ { no: 4, name: "dtx", kind: "scalar", T: 8, opt: true },
1398
+ { no: 5, name: "red", kind: "scalar", T: 8, opt: true },
1399
+ { no: 6, name: "simulcast", kind: "scalar", T: 8, opt: true },
1400
+ { no: 7, name: "source", kind: "enum", T: import_protobuf.proto2.getEnumType(import_track_pb.TrackSource), opt: true },
1401
+ { no: 8, name: "stream", kind: "scalar", T: 9, opt: true }
1402
+ ]);
1403
+ let TrackPublishOptions = _TrackPublishOptions;
1404
+ const _IceServer = class _IceServer extends import_protobuf.Message {
1405
+ constructor(data) {
1406
+ super();
1407
+ /**
1408
+ * @generated from field: repeated string urls = 1;
1409
+ */
1410
+ this.urls = [];
1411
+ import_protobuf.proto2.util.initPartial(data, this);
1412
+ }
1413
+ static fromBinary(bytes, options) {
1414
+ return new _IceServer().fromBinary(bytes, options);
1415
+ }
1416
+ static fromJson(jsonValue, options) {
1417
+ return new _IceServer().fromJson(jsonValue, options);
1418
+ }
1419
+ static fromJsonString(jsonString, options) {
1420
+ return new _IceServer().fromJsonString(jsonString, options);
1421
+ }
1422
+ static equals(a, b) {
1423
+ return import_protobuf.proto2.util.equals(_IceServer, a, b);
1424
+ }
1425
+ };
1426
+ _IceServer.runtime = import_protobuf.proto2;
1427
+ _IceServer.typeName = "livekit.proto.IceServer";
1428
+ _IceServer.fields = import_protobuf.proto2.util.newFieldList(() => [
1429
+ { no: 1, name: "urls", kind: "scalar", T: 9, repeated: true },
1430
+ { no: 2, name: "username", kind: "scalar", T: 9, opt: true },
1431
+ { no: 3, name: "password", kind: "scalar", T: 9, opt: true }
1432
+ ]);
1433
+ let IceServer = _IceServer;
1434
+ const _RtcConfig = class _RtcConfig extends import_protobuf.Message {
1435
+ constructor(data) {
1436
+ super();
1437
+ /**
1438
+ * empty fallback to default
1439
+ *
1440
+ * @generated from field: repeated livekit.proto.IceServer ice_servers = 3;
1441
+ */
1442
+ this.iceServers = [];
1443
+ import_protobuf.proto2.util.initPartial(data, this);
1444
+ }
1445
+ static fromBinary(bytes, options) {
1446
+ return new _RtcConfig().fromBinary(bytes, options);
1447
+ }
1448
+ static fromJson(jsonValue, options) {
1449
+ return new _RtcConfig().fromJson(jsonValue, options);
1450
+ }
1451
+ static fromJsonString(jsonString, options) {
1452
+ return new _RtcConfig().fromJsonString(jsonString, options);
1453
+ }
1454
+ static equals(a, b) {
1455
+ return import_protobuf.proto2.util.equals(_RtcConfig, a, b);
1456
+ }
1457
+ };
1458
+ _RtcConfig.runtime = import_protobuf.proto2;
1459
+ _RtcConfig.typeName = "livekit.proto.RtcConfig";
1460
+ _RtcConfig.fields = import_protobuf.proto2.util.newFieldList(() => [
1461
+ { no: 1, name: "ice_transport_type", kind: "enum", T: import_protobuf.proto2.getEnumType(IceTransportType), opt: true },
1462
+ { no: 2, name: "continual_gathering_policy", kind: "enum", T: import_protobuf.proto2.getEnumType(ContinualGatheringPolicy), opt: true },
1463
+ { no: 3, name: "ice_servers", kind: "message", T: IceServer, repeated: true }
1464
+ ]);
1465
+ let RtcConfig = _RtcConfig;
1466
+ const _RoomOptions = class _RoomOptions extends import_protobuf.Message {
1467
+ constructor(data) {
1468
+ super();
1469
+ import_protobuf.proto2.util.initPartial(data, this);
1470
+ }
1471
+ static fromBinary(bytes, options) {
1472
+ return new _RoomOptions().fromBinary(bytes, options);
1473
+ }
1474
+ static fromJson(jsonValue, options) {
1475
+ return new _RoomOptions().fromJson(jsonValue, options);
1476
+ }
1477
+ static fromJsonString(jsonString, options) {
1478
+ return new _RoomOptions().fromJsonString(jsonString, options);
1479
+ }
1480
+ static equals(a, b) {
1481
+ return import_protobuf.proto2.util.equals(_RoomOptions, a, b);
1482
+ }
1483
+ };
1484
+ _RoomOptions.runtime = import_protobuf.proto2;
1485
+ _RoomOptions.typeName = "livekit.proto.RoomOptions";
1486
+ _RoomOptions.fields = import_protobuf.proto2.util.newFieldList(() => [
1487
+ { no: 1, name: "auto_subscribe", kind: "scalar", T: 8, opt: true },
1488
+ { no: 2, name: "adaptive_stream", kind: "scalar", T: 8, opt: true },
1489
+ { no: 3, name: "dynacast", kind: "scalar", T: 8, opt: true },
1490
+ { no: 4, name: "e2ee", kind: "message", T: import_e2ee_pb.E2eeOptions, opt: true },
1491
+ { no: 5, name: "rtc_config", kind: "message", T: RtcConfig, opt: true },
1492
+ { no: 6, name: "join_retries", kind: "scalar", T: 13, opt: true }
1493
+ ]);
1494
+ let RoomOptions = _RoomOptions;
1495
+ const _TranscriptionSegment = class _TranscriptionSegment extends import_protobuf.Message {
1496
+ constructor(data) {
1497
+ super();
1498
+ import_protobuf.proto2.util.initPartial(data, this);
1499
+ }
1500
+ static fromBinary(bytes, options) {
1501
+ return new _TranscriptionSegment().fromBinary(bytes, options);
1502
+ }
1503
+ static fromJson(jsonValue, options) {
1504
+ return new _TranscriptionSegment().fromJson(jsonValue, options);
1505
+ }
1506
+ static fromJsonString(jsonString, options) {
1507
+ return new _TranscriptionSegment().fromJsonString(jsonString, options);
1508
+ }
1509
+ static equals(a, b) {
1510
+ return import_protobuf.proto2.util.equals(_TranscriptionSegment, a, b);
1511
+ }
1512
+ };
1513
+ _TranscriptionSegment.runtime = import_protobuf.proto2;
1514
+ _TranscriptionSegment.typeName = "livekit.proto.TranscriptionSegment";
1515
+ _TranscriptionSegment.fields = import_protobuf.proto2.util.newFieldList(() => [
1516
+ { no: 1, name: "id", kind: "scalar", T: 9, req: true },
1517
+ { no: 2, name: "text", kind: "scalar", T: 9, req: true },
1518
+ { no: 3, name: "start_time", kind: "scalar", T: 4, req: true },
1519
+ { no: 4, name: "end_time", kind: "scalar", T: 4, req: true },
1520
+ { no: 5, name: "final", kind: "scalar", T: 8, req: true },
1521
+ { no: 6, name: "language", kind: "scalar", T: 9, req: true }
1522
+ ]);
1523
+ let TranscriptionSegment = _TranscriptionSegment;
1524
+ const _BufferInfo = class _BufferInfo extends import_protobuf.Message {
1525
+ constructor(data) {
1526
+ super();
1527
+ import_protobuf.proto2.util.initPartial(data, this);
1528
+ }
1529
+ static fromBinary(bytes, options) {
1530
+ return new _BufferInfo().fromBinary(bytes, options);
1531
+ }
1532
+ static fromJson(jsonValue, options) {
1533
+ return new _BufferInfo().fromJson(jsonValue, options);
1534
+ }
1535
+ static fromJsonString(jsonString, options) {
1536
+ return new _BufferInfo().fromJsonString(jsonString, options);
1537
+ }
1538
+ static equals(a, b) {
1539
+ return import_protobuf.proto2.util.equals(_BufferInfo, a, b);
1540
+ }
1541
+ };
1542
+ _BufferInfo.runtime = import_protobuf.proto2;
1543
+ _BufferInfo.typeName = "livekit.proto.BufferInfo";
1544
+ _BufferInfo.fields = import_protobuf.proto2.util.newFieldList(() => [
1545
+ { no: 1, name: "data_ptr", kind: "scalar", T: 4, req: true },
1546
+ { no: 2, name: "data_len", kind: "scalar", T: 4, req: true }
1547
+ ]);
1548
+ let BufferInfo = _BufferInfo;
1549
+ const _OwnedBuffer = class _OwnedBuffer extends import_protobuf.Message {
1550
+ constructor(data) {
1551
+ super();
1552
+ import_protobuf.proto2.util.initPartial(data, this);
1553
+ }
1554
+ static fromBinary(bytes, options) {
1555
+ return new _OwnedBuffer().fromBinary(bytes, options);
1556
+ }
1557
+ static fromJson(jsonValue, options) {
1558
+ return new _OwnedBuffer().fromJson(jsonValue, options);
1559
+ }
1560
+ static fromJsonString(jsonString, options) {
1561
+ return new _OwnedBuffer().fromJsonString(jsonString, options);
1562
+ }
1563
+ static equals(a, b) {
1564
+ return import_protobuf.proto2.util.equals(_OwnedBuffer, a, b);
1565
+ }
1566
+ };
1567
+ _OwnedBuffer.runtime = import_protobuf.proto2;
1568
+ _OwnedBuffer.typeName = "livekit.proto.OwnedBuffer";
1569
+ _OwnedBuffer.fields = import_protobuf.proto2.util.newFieldList(() => [
1570
+ { no: 1, name: "handle", kind: "message", T: import_handle_pb.FfiOwnedHandle, req: true },
1571
+ { no: 2, name: "data", kind: "message", T: BufferInfo, req: true }
1572
+ ]);
1573
+ let OwnedBuffer = _OwnedBuffer;
1574
+ const _RoomEvent = class _RoomEvent extends import_protobuf.Message {
1575
+ constructor(data) {
1576
+ super();
1577
+ /**
1578
+ * @generated from oneof livekit.proto.RoomEvent.message
1579
+ */
1580
+ this.message = { case: void 0 };
1581
+ import_protobuf.proto2.util.initPartial(data, this);
1582
+ }
1583
+ static fromBinary(bytes, options) {
1584
+ return new _RoomEvent().fromBinary(bytes, options);
1585
+ }
1586
+ static fromJson(jsonValue, options) {
1587
+ return new _RoomEvent().fromJson(jsonValue, options);
1588
+ }
1589
+ static fromJsonString(jsonString, options) {
1590
+ return new _RoomEvent().fromJsonString(jsonString, options);
1591
+ }
1592
+ static equals(a, b) {
1593
+ return import_protobuf.proto2.util.equals(_RoomEvent, a, b);
1594
+ }
1595
+ };
1596
+ _RoomEvent.runtime = import_protobuf.proto2;
1597
+ _RoomEvent.typeName = "livekit.proto.RoomEvent";
1598
+ _RoomEvent.fields = import_protobuf.proto2.util.newFieldList(() => [
1599
+ { no: 1, name: "room_handle", kind: "scalar", T: 4, req: true },
1600
+ { no: 2, name: "participant_connected", kind: "message", T: ParticipantConnected, oneof: "message" },
1601
+ { no: 3, name: "participant_disconnected", kind: "message", T: ParticipantDisconnected, oneof: "message" },
1602
+ { no: 4, name: "local_track_published", kind: "message", T: LocalTrackPublished, oneof: "message" },
1603
+ { no: 5, name: "local_track_unpublished", kind: "message", T: LocalTrackUnpublished, oneof: "message" },
1604
+ { no: 6, name: "local_track_subscribed", kind: "message", T: LocalTrackSubscribed, oneof: "message" },
1605
+ { no: 7, name: "track_published", kind: "message", T: TrackPublished, oneof: "message" },
1606
+ { no: 8, name: "track_unpublished", kind: "message", T: TrackUnpublished, oneof: "message" },
1607
+ { no: 9, name: "track_subscribed", kind: "message", T: TrackSubscribed, oneof: "message" },
1608
+ { no: 10, name: "track_unsubscribed", kind: "message", T: TrackUnsubscribed, oneof: "message" },
1609
+ { no: 11, name: "track_subscription_failed", kind: "message", T: TrackSubscriptionFailed, oneof: "message" },
1610
+ { no: 12, name: "track_muted", kind: "message", T: TrackMuted, oneof: "message" },
1611
+ { no: 13, name: "track_unmuted", kind: "message", T: TrackUnmuted, oneof: "message" },
1612
+ { no: 14, name: "active_speakers_changed", kind: "message", T: ActiveSpeakersChanged, oneof: "message" },
1613
+ { no: 15, name: "room_metadata_changed", kind: "message", T: RoomMetadataChanged, oneof: "message" },
1614
+ { no: 16, name: "room_sid_changed", kind: "message", T: RoomSidChanged, oneof: "message" },
1615
+ { no: 17, name: "participant_metadata_changed", kind: "message", T: ParticipantMetadataChanged, oneof: "message" },
1616
+ { no: 18, name: "participant_name_changed", kind: "message", T: ParticipantNameChanged, oneof: "message" },
1617
+ { no: 19, name: "participant_attributes_changed", kind: "message", T: ParticipantAttributesChanged, oneof: "message" },
1618
+ { no: 20, name: "connection_quality_changed", kind: "message", T: ConnectionQualityChanged, oneof: "message" },
1619
+ { no: 21, name: "connection_state_changed", kind: "message", T: ConnectionStateChanged, oneof: "message" },
1620
+ { no: 22, name: "disconnected", kind: "message", T: Disconnected, oneof: "message" },
1621
+ { no: 23, name: "reconnecting", kind: "message", T: Reconnecting, oneof: "message" },
1622
+ { no: 24, name: "reconnected", kind: "message", T: Reconnected, oneof: "message" },
1623
+ { no: 25, name: "e2ee_state_changed", kind: "message", T: E2eeStateChanged, oneof: "message" },
1624
+ { no: 26, name: "eos", kind: "message", T: RoomEOS, oneof: "message" },
1625
+ { no: 27, name: "data_packet_received", kind: "message", T: DataPacketReceived, oneof: "message" },
1626
+ { no: 28, name: "transcription_received", kind: "message", T: TranscriptionReceived, oneof: "message" },
1627
+ { no: 29, name: "chat_message", kind: "message", T: ChatMessageReceived, oneof: "message" },
1628
+ { no: 30, name: "stream_header", kind: "message", T: DataStream_Header, oneof: "message" },
1629
+ { no: 31, name: "stream_chunk", kind: "message", T: DataStream_Chunk, oneof: "message" }
1630
+ ]);
1631
+ let RoomEvent = _RoomEvent;
1632
+ const _RoomInfo = class _RoomInfo extends import_protobuf.Message {
1633
+ constructor(data) {
1634
+ super();
1635
+ import_protobuf.proto2.util.initPartial(data, this);
1636
+ }
1637
+ static fromBinary(bytes, options) {
1638
+ return new _RoomInfo().fromBinary(bytes, options);
1639
+ }
1640
+ static fromJson(jsonValue, options) {
1641
+ return new _RoomInfo().fromJson(jsonValue, options);
1642
+ }
1643
+ static fromJsonString(jsonString, options) {
1644
+ return new _RoomInfo().fromJsonString(jsonString, options);
1645
+ }
1646
+ static equals(a, b) {
1647
+ return import_protobuf.proto2.util.equals(_RoomInfo, a, b);
1648
+ }
1649
+ };
1650
+ _RoomInfo.runtime = import_protobuf.proto2;
1651
+ _RoomInfo.typeName = "livekit.proto.RoomInfo";
1652
+ _RoomInfo.fields = import_protobuf.proto2.util.newFieldList(() => [
1653
+ { no: 1, name: "sid", kind: "scalar", T: 9, opt: true },
1654
+ { no: 2, name: "name", kind: "scalar", T: 9, req: true },
1655
+ { no: 3, name: "metadata", kind: "scalar", T: 9, req: true }
1656
+ ]);
1657
+ let RoomInfo = _RoomInfo;
1658
+ const _OwnedRoom = class _OwnedRoom extends import_protobuf.Message {
1659
+ constructor(data) {
1660
+ super();
1661
+ import_protobuf.proto2.util.initPartial(data, this);
1662
+ }
1663
+ static fromBinary(bytes, options) {
1664
+ return new _OwnedRoom().fromBinary(bytes, options);
1665
+ }
1666
+ static fromJson(jsonValue, options) {
1667
+ return new _OwnedRoom().fromJson(jsonValue, options);
1668
+ }
1669
+ static fromJsonString(jsonString, options) {
1670
+ return new _OwnedRoom().fromJsonString(jsonString, options);
1671
+ }
1672
+ static equals(a, b) {
1673
+ return import_protobuf.proto2.util.equals(_OwnedRoom, a, b);
1674
+ }
1675
+ };
1676
+ _OwnedRoom.runtime = import_protobuf.proto2;
1677
+ _OwnedRoom.typeName = "livekit.proto.OwnedRoom";
1678
+ _OwnedRoom.fields = import_protobuf.proto2.util.newFieldList(() => [
1679
+ { no: 1, name: "handle", kind: "message", T: import_handle_pb.FfiOwnedHandle, req: true },
1680
+ { no: 2, name: "info", kind: "message", T: RoomInfo, req: true }
1681
+ ]);
1682
+ let OwnedRoom = _OwnedRoom;
1683
+ const _ParticipantConnected = class _ParticipantConnected extends import_protobuf.Message {
1684
+ constructor(data) {
1685
+ super();
1686
+ import_protobuf.proto2.util.initPartial(data, this);
1687
+ }
1688
+ static fromBinary(bytes, options) {
1689
+ return new _ParticipantConnected().fromBinary(bytes, options);
1690
+ }
1691
+ static fromJson(jsonValue, options) {
1692
+ return new _ParticipantConnected().fromJson(jsonValue, options);
1693
+ }
1694
+ static fromJsonString(jsonString, options) {
1695
+ return new _ParticipantConnected().fromJsonString(jsonString, options);
1696
+ }
1697
+ static equals(a, b) {
1698
+ return import_protobuf.proto2.util.equals(_ParticipantConnected, a, b);
1699
+ }
1700
+ };
1701
+ _ParticipantConnected.runtime = import_protobuf.proto2;
1702
+ _ParticipantConnected.typeName = "livekit.proto.ParticipantConnected";
1703
+ _ParticipantConnected.fields = import_protobuf.proto2.util.newFieldList(() => [
1704
+ { no: 1, name: "info", kind: "message", T: import_participant_pb.OwnedParticipant, req: true }
1705
+ ]);
1706
+ let ParticipantConnected = _ParticipantConnected;
1707
+ const _ParticipantDisconnected = class _ParticipantDisconnected extends import_protobuf.Message {
1708
+ constructor(data) {
1709
+ super();
1710
+ import_protobuf.proto2.util.initPartial(data, this);
1711
+ }
1712
+ static fromBinary(bytes, options) {
1713
+ return new _ParticipantDisconnected().fromBinary(bytes, options);
1714
+ }
1715
+ static fromJson(jsonValue, options) {
1716
+ return new _ParticipantDisconnected().fromJson(jsonValue, options);
1717
+ }
1718
+ static fromJsonString(jsonString, options) {
1719
+ return new _ParticipantDisconnected().fromJsonString(jsonString, options);
1720
+ }
1721
+ static equals(a, b) {
1722
+ return import_protobuf.proto2.util.equals(_ParticipantDisconnected, a, b);
1723
+ }
1724
+ };
1725
+ _ParticipantDisconnected.runtime = import_protobuf.proto2;
1726
+ _ParticipantDisconnected.typeName = "livekit.proto.ParticipantDisconnected";
1727
+ _ParticipantDisconnected.fields = import_protobuf.proto2.util.newFieldList(() => [
1728
+ { no: 1, name: "participant_identity", kind: "scalar", T: 9, req: true }
1729
+ ]);
1730
+ let ParticipantDisconnected = _ParticipantDisconnected;
1731
+ const _LocalTrackPublished = class _LocalTrackPublished extends import_protobuf.Message {
1732
+ constructor(data) {
1733
+ super();
1734
+ import_protobuf.proto2.util.initPartial(data, this);
1735
+ }
1736
+ static fromBinary(bytes, options) {
1737
+ return new _LocalTrackPublished().fromBinary(bytes, options);
1738
+ }
1739
+ static fromJson(jsonValue, options) {
1740
+ return new _LocalTrackPublished().fromJson(jsonValue, options);
1741
+ }
1742
+ static fromJsonString(jsonString, options) {
1743
+ return new _LocalTrackPublished().fromJsonString(jsonString, options);
1744
+ }
1745
+ static equals(a, b) {
1746
+ return import_protobuf.proto2.util.equals(_LocalTrackPublished, a, b);
1747
+ }
1748
+ };
1749
+ _LocalTrackPublished.runtime = import_protobuf.proto2;
1750
+ _LocalTrackPublished.typeName = "livekit.proto.LocalTrackPublished";
1751
+ _LocalTrackPublished.fields = import_protobuf.proto2.util.newFieldList(() => [
1752
+ { no: 1, name: "track_sid", kind: "scalar", T: 9, req: true }
1753
+ ]);
1754
+ let LocalTrackPublished = _LocalTrackPublished;
1755
+ const _LocalTrackUnpublished = class _LocalTrackUnpublished extends import_protobuf.Message {
1756
+ constructor(data) {
1757
+ super();
1758
+ import_protobuf.proto2.util.initPartial(data, this);
1759
+ }
1760
+ static fromBinary(bytes, options) {
1761
+ return new _LocalTrackUnpublished().fromBinary(bytes, options);
1762
+ }
1763
+ static fromJson(jsonValue, options) {
1764
+ return new _LocalTrackUnpublished().fromJson(jsonValue, options);
1765
+ }
1766
+ static fromJsonString(jsonString, options) {
1767
+ return new _LocalTrackUnpublished().fromJsonString(jsonString, options);
1768
+ }
1769
+ static equals(a, b) {
1770
+ return import_protobuf.proto2.util.equals(_LocalTrackUnpublished, a, b);
1771
+ }
1772
+ };
1773
+ _LocalTrackUnpublished.runtime = import_protobuf.proto2;
1774
+ _LocalTrackUnpublished.typeName = "livekit.proto.LocalTrackUnpublished";
1775
+ _LocalTrackUnpublished.fields = import_protobuf.proto2.util.newFieldList(() => [
1776
+ { no: 1, name: "publication_sid", kind: "scalar", T: 9, req: true }
1777
+ ]);
1778
+ let LocalTrackUnpublished = _LocalTrackUnpublished;
1779
+ const _LocalTrackSubscribed = class _LocalTrackSubscribed extends import_protobuf.Message {
1780
+ constructor(data) {
1781
+ super();
1782
+ import_protobuf.proto2.util.initPartial(data, this);
1783
+ }
1784
+ static fromBinary(bytes, options) {
1785
+ return new _LocalTrackSubscribed().fromBinary(bytes, options);
1786
+ }
1787
+ static fromJson(jsonValue, options) {
1788
+ return new _LocalTrackSubscribed().fromJson(jsonValue, options);
1789
+ }
1790
+ static fromJsonString(jsonString, options) {
1791
+ return new _LocalTrackSubscribed().fromJsonString(jsonString, options);
1792
+ }
1793
+ static equals(a, b) {
1794
+ return import_protobuf.proto2.util.equals(_LocalTrackSubscribed, a, b);
1795
+ }
1796
+ };
1797
+ _LocalTrackSubscribed.runtime = import_protobuf.proto2;
1798
+ _LocalTrackSubscribed.typeName = "livekit.proto.LocalTrackSubscribed";
1799
+ _LocalTrackSubscribed.fields = import_protobuf.proto2.util.newFieldList(() => [
1800
+ { no: 2, name: "track_sid", kind: "scalar", T: 9, req: true }
1801
+ ]);
1802
+ let LocalTrackSubscribed = _LocalTrackSubscribed;
1803
+ const _TrackPublished = class _TrackPublished extends import_protobuf.Message {
1804
+ constructor(data) {
1805
+ super();
1806
+ import_protobuf.proto2.util.initPartial(data, this);
1807
+ }
1808
+ static fromBinary(bytes, options) {
1809
+ return new _TrackPublished().fromBinary(bytes, options);
1810
+ }
1811
+ static fromJson(jsonValue, options) {
1812
+ return new _TrackPublished().fromJson(jsonValue, options);
1813
+ }
1814
+ static fromJsonString(jsonString, options) {
1815
+ return new _TrackPublished().fromJsonString(jsonString, options);
1816
+ }
1817
+ static equals(a, b) {
1818
+ return import_protobuf.proto2.util.equals(_TrackPublished, a, b);
1819
+ }
1820
+ };
1821
+ _TrackPublished.runtime = import_protobuf.proto2;
1822
+ _TrackPublished.typeName = "livekit.proto.TrackPublished";
1823
+ _TrackPublished.fields = import_protobuf.proto2.util.newFieldList(() => [
1824
+ { no: 1, name: "participant_identity", kind: "scalar", T: 9, req: true },
1825
+ { no: 2, name: "publication", kind: "message", T: import_track_pb.OwnedTrackPublication, req: true }
1826
+ ]);
1827
+ let TrackPublished = _TrackPublished;
1828
+ const _TrackUnpublished = class _TrackUnpublished extends import_protobuf.Message {
1829
+ constructor(data) {
1830
+ super();
1831
+ import_protobuf.proto2.util.initPartial(data, this);
1832
+ }
1833
+ static fromBinary(bytes, options) {
1834
+ return new _TrackUnpublished().fromBinary(bytes, options);
1835
+ }
1836
+ static fromJson(jsonValue, options) {
1837
+ return new _TrackUnpublished().fromJson(jsonValue, options);
1838
+ }
1839
+ static fromJsonString(jsonString, options) {
1840
+ return new _TrackUnpublished().fromJsonString(jsonString, options);
1841
+ }
1842
+ static equals(a, b) {
1843
+ return import_protobuf.proto2.util.equals(_TrackUnpublished, a, b);
1844
+ }
1845
+ };
1846
+ _TrackUnpublished.runtime = import_protobuf.proto2;
1847
+ _TrackUnpublished.typeName = "livekit.proto.TrackUnpublished";
1848
+ _TrackUnpublished.fields = import_protobuf.proto2.util.newFieldList(() => [
1849
+ { no: 1, name: "participant_identity", kind: "scalar", T: 9, req: true },
1850
+ { no: 2, name: "publication_sid", kind: "scalar", T: 9, req: true }
1851
+ ]);
1852
+ let TrackUnpublished = _TrackUnpublished;
1853
+ const _TrackSubscribed = class _TrackSubscribed extends import_protobuf.Message {
1854
+ constructor(data) {
1855
+ super();
1856
+ import_protobuf.proto2.util.initPartial(data, this);
1857
+ }
1858
+ static fromBinary(bytes, options) {
1859
+ return new _TrackSubscribed().fromBinary(bytes, options);
1860
+ }
1861
+ static fromJson(jsonValue, options) {
1862
+ return new _TrackSubscribed().fromJson(jsonValue, options);
1863
+ }
1864
+ static fromJsonString(jsonString, options) {
1865
+ return new _TrackSubscribed().fromJsonString(jsonString, options);
1866
+ }
1867
+ static equals(a, b) {
1868
+ return import_protobuf.proto2.util.equals(_TrackSubscribed, a, b);
1869
+ }
1870
+ };
1871
+ _TrackSubscribed.runtime = import_protobuf.proto2;
1872
+ _TrackSubscribed.typeName = "livekit.proto.TrackSubscribed";
1873
+ _TrackSubscribed.fields = import_protobuf.proto2.util.newFieldList(() => [
1874
+ { no: 1, name: "participant_identity", kind: "scalar", T: 9, req: true },
1875
+ { no: 2, name: "track", kind: "message", T: import_track_pb.OwnedTrack, req: true }
1876
+ ]);
1877
+ let TrackSubscribed = _TrackSubscribed;
1878
+ const _TrackUnsubscribed = class _TrackUnsubscribed extends import_protobuf.Message {
1879
+ constructor(data) {
1880
+ super();
1881
+ import_protobuf.proto2.util.initPartial(data, this);
1882
+ }
1883
+ static fromBinary(bytes, options) {
1884
+ return new _TrackUnsubscribed().fromBinary(bytes, options);
1885
+ }
1886
+ static fromJson(jsonValue, options) {
1887
+ return new _TrackUnsubscribed().fromJson(jsonValue, options);
1888
+ }
1889
+ static fromJsonString(jsonString, options) {
1890
+ return new _TrackUnsubscribed().fromJsonString(jsonString, options);
1891
+ }
1892
+ static equals(a, b) {
1893
+ return import_protobuf.proto2.util.equals(_TrackUnsubscribed, a, b);
1894
+ }
1895
+ };
1896
+ _TrackUnsubscribed.runtime = import_protobuf.proto2;
1897
+ _TrackUnsubscribed.typeName = "livekit.proto.TrackUnsubscribed";
1898
+ _TrackUnsubscribed.fields = import_protobuf.proto2.util.newFieldList(() => [
1899
+ { no: 1, name: "participant_identity", kind: "scalar", T: 9, req: true },
1900
+ { no: 2, name: "track_sid", kind: "scalar", T: 9, req: true }
1901
+ ]);
1902
+ let TrackUnsubscribed = _TrackUnsubscribed;
1903
+ const _TrackSubscriptionFailed = class _TrackSubscriptionFailed extends import_protobuf.Message {
1904
+ constructor(data) {
1905
+ super();
1906
+ import_protobuf.proto2.util.initPartial(data, this);
1907
+ }
1908
+ static fromBinary(bytes, options) {
1909
+ return new _TrackSubscriptionFailed().fromBinary(bytes, options);
1910
+ }
1911
+ static fromJson(jsonValue, options) {
1912
+ return new _TrackSubscriptionFailed().fromJson(jsonValue, options);
1913
+ }
1914
+ static fromJsonString(jsonString, options) {
1915
+ return new _TrackSubscriptionFailed().fromJsonString(jsonString, options);
1916
+ }
1917
+ static equals(a, b) {
1918
+ return import_protobuf.proto2.util.equals(_TrackSubscriptionFailed, a, b);
1919
+ }
1920
+ };
1921
+ _TrackSubscriptionFailed.runtime = import_protobuf.proto2;
1922
+ _TrackSubscriptionFailed.typeName = "livekit.proto.TrackSubscriptionFailed";
1923
+ _TrackSubscriptionFailed.fields = import_protobuf.proto2.util.newFieldList(() => [
1924
+ { no: 1, name: "participant_identity", kind: "scalar", T: 9, req: true },
1925
+ { no: 2, name: "track_sid", kind: "scalar", T: 9, req: true },
1926
+ { no: 3, name: "error", kind: "scalar", T: 9, req: true }
1927
+ ]);
1928
+ let TrackSubscriptionFailed = _TrackSubscriptionFailed;
1929
+ const _TrackMuted = class _TrackMuted extends import_protobuf.Message {
1930
+ constructor(data) {
1931
+ super();
1932
+ import_protobuf.proto2.util.initPartial(data, this);
1933
+ }
1934
+ static fromBinary(bytes, options) {
1935
+ return new _TrackMuted().fromBinary(bytes, options);
1936
+ }
1937
+ static fromJson(jsonValue, options) {
1938
+ return new _TrackMuted().fromJson(jsonValue, options);
1939
+ }
1940
+ static fromJsonString(jsonString, options) {
1941
+ return new _TrackMuted().fromJsonString(jsonString, options);
1942
+ }
1943
+ static equals(a, b) {
1944
+ return import_protobuf.proto2.util.equals(_TrackMuted, a, b);
1945
+ }
1946
+ };
1947
+ _TrackMuted.runtime = import_protobuf.proto2;
1948
+ _TrackMuted.typeName = "livekit.proto.TrackMuted";
1949
+ _TrackMuted.fields = import_protobuf.proto2.util.newFieldList(() => [
1950
+ { no: 1, name: "participant_identity", kind: "scalar", T: 9, req: true },
1951
+ { no: 2, name: "track_sid", kind: "scalar", T: 9, req: true }
1952
+ ]);
1953
+ let TrackMuted = _TrackMuted;
1954
+ const _TrackUnmuted = class _TrackUnmuted extends import_protobuf.Message {
1955
+ constructor(data) {
1956
+ super();
1957
+ import_protobuf.proto2.util.initPartial(data, this);
1958
+ }
1959
+ static fromBinary(bytes, options) {
1960
+ return new _TrackUnmuted().fromBinary(bytes, options);
1961
+ }
1962
+ static fromJson(jsonValue, options) {
1963
+ return new _TrackUnmuted().fromJson(jsonValue, options);
1964
+ }
1965
+ static fromJsonString(jsonString, options) {
1966
+ return new _TrackUnmuted().fromJsonString(jsonString, options);
1967
+ }
1968
+ static equals(a, b) {
1969
+ return import_protobuf.proto2.util.equals(_TrackUnmuted, a, b);
1970
+ }
1971
+ };
1972
+ _TrackUnmuted.runtime = import_protobuf.proto2;
1973
+ _TrackUnmuted.typeName = "livekit.proto.TrackUnmuted";
1974
+ _TrackUnmuted.fields = import_protobuf.proto2.util.newFieldList(() => [
1975
+ { no: 1, name: "participant_identity", kind: "scalar", T: 9, req: true },
1976
+ { no: 2, name: "track_sid", kind: "scalar", T: 9, req: true }
1977
+ ]);
1978
+ let TrackUnmuted = _TrackUnmuted;
1979
+ const _E2eeStateChanged = class _E2eeStateChanged extends import_protobuf.Message {
1980
+ constructor(data) {
1981
+ super();
1982
+ import_protobuf.proto2.util.initPartial(data, this);
1983
+ }
1984
+ static fromBinary(bytes, options) {
1985
+ return new _E2eeStateChanged().fromBinary(bytes, options);
1986
+ }
1987
+ static fromJson(jsonValue, options) {
1988
+ return new _E2eeStateChanged().fromJson(jsonValue, options);
1989
+ }
1990
+ static fromJsonString(jsonString, options) {
1991
+ return new _E2eeStateChanged().fromJsonString(jsonString, options);
1992
+ }
1993
+ static equals(a, b) {
1994
+ return import_protobuf.proto2.util.equals(_E2eeStateChanged, a, b);
1995
+ }
1996
+ };
1997
+ _E2eeStateChanged.runtime = import_protobuf.proto2;
1998
+ _E2eeStateChanged.typeName = "livekit.proto.E2eeStateChanged";
1999
+ _E2eeStateChanged.fields = import_protobuf.proto2.util.newFieldList(() => [
2000
+ { no: 1, name: "participant_identity", kind: "scalar", T: 9, req: true },
2001
+ { no: 2, name: "state", kind: "enum", T: import_protobuf.proto2.getEnumType(import_e2ee_pb.EncryptionState), req: true }
2002
+ ]);
2003
+ let E2eeStateChanged = _E2eeStateChanged;
2004
+ const _ActiveSpeakersChanged = class _ActiveSpeakersChanged extends import_protobuf.Message {
2005
+ constructor(data) {
2006
+ super();
2007
+ /**
2008
+ * @generated from field: repeated string participant_identities = 1;
2009
+ */
2010
+ this.participantIdentities = [];
2011
+ import_protobuf.proto2.util.initPartial(data, this);
2012
+ }
2013
+ static fromBinary(bytes, options) {
2014
+ return new _ActiveSpeakersChanged().fromBinary(bytes, options);
2015
+ }
2016
+ static fromJson(jsonValue, options) {
2017
+ return new _ActiveSpeakersChanged().fromJson(jsonValue, options);
2018
+ }
2019
+ static fromJsonString(jsonString, options) {
2020
+ return new _ActiveSpeakersChanged().fromJsonString(jsonString, options);
2021
+ }
2022
+ static equals(a, b) {
2023
+ return import_protobuf.proto2.util.equals(_ActiveSpeakersChanged, a, b);
2024
+ }
2025
+ };
2026
+ _ActiveSpeakersChanged.runtime = import_protobuf.proto2;
2027
+ _ActiveSpeakersChanged.typeName = "livekit.proto.ActiveSpeakersChanged";
2028
+ _ActiveSpeakersChanged.fields = import_protobuf.proto2.util.newFieldList(() => [
2029
+ { no: 1, name: "participant_identities", kind: "scalar", T: 9, repeated: true }
2030
+ ]);
2031
+ let ActiveSpeakersChanged = _ActiveSpeakersChanged;
2032
+ const _RoomMetadataChanged = class _RoomMetadataChanged extends import_protobuf.Message {
2033
+ constructor(data) {
2034
+ super();
2035
+ import_protobuf.proto2.util.initPartial(data, this);
2036
+ }
2037
+ static fromBinary(bytes, options) {
2038
+ return new _RoomMetadataChanged().fromBinary(bytes, options);
2039
+ }
2040
+ static fromJson(jsonValue, options) {
2041
+ return new _RoomMetadataChanged().fromJson(jsonValue, options);
2042
+ }
2043
+ static fromJsonString(jsonString, options) {
2044
+ return new _RoomMetadataChanged().fromJsonString(jsonString, options);
2045
+ }
2046
+ static equals(a, b) {
2047
+ return import_protobuf.proto2.util.equals(_RoomMetadataChanged, a, b);
2048
+ }
2049
+ };
2050
+ _RoomMetadataChanged.runtime = import_protobuf.proto2;
2051
+ _RoomMetadataChanged.typeName = "livekit.proto.RoomMetadataChanged";
2052
+ _RoomMetadataChanged.fields = import_protobuf.proto2.util.newFieldList(() => [
2053
+ { no: 1, name: "metadata", kind: "scalar", T: 9, req: true }
2054
+ ]);
2055
+ let RoomMetadataChanged = _RoomMetadataChanged;
2056
+ const _RoomSidChanged = class _RoomSidChanged extends import_protobuf.Message {
2057
+ constructor(data) {
2058
+ super();
2059
+ import_protobuf.proto2.util.initPartial(data, this);
2060
+ }
2061
+ static fromBinary(bytes, options) {
2062
+ return new _RoomSidChanged().fromBinary(bytes, options);
2063
+ }
2064
+ static fromJson(jsonValue, options) {
2065
+ return new _RoomSidChanged().fromJson(jsonValue, options);
2066
+ }
2067
+ static fromJsonString(jsonString, options) {
2068
+ return new _RoomSidChanged().fromJsonString(jsonString, options);
2069
+ }
2070
+ static equals(a, b) {
2071
+ return import_protobuf.proto2.util.equals(_RoomSidChanged, a, b);
2072
+ }
2073
+ };
2074
+ _RoomSidChanged.runtime = import_protobuf.proto2;
2075
+ _RoomSidChanged.typeName = "livekit.proto.RoomSidChanged";
2076
+ _RoomSidChanged.fields = import_protobuf.proto2.util.newFieldList(() => [
2077
+ { no: 1, name: "sid", kind: "scalar", T: 9, req: true }
2078
+ ]);
2079
+ let RoomSidChanged = _RoomSidChanged;
2080
+ const _ParticipantMetadataChanged = class _ParticipantMetadataChanged extends import_protobuf.Message {
2081
+ constructor(data) {
2082
+ super();
2083
+ import_protobuf.proto2.util.initPartial(data, this);
2084
+ }
2085
+ static fromBinary(bytes, options) {
2086
+ return new _ParticipantMetadataChanged().fromBinary(bytes, options);
2087
+ }
2088
+ static fromJson(jsonValue, options) {
2089
+ return new _ParticipantMetadataChanged().fromJson(jsonValue, options);
2090
+ }
2091
+ static fromJsonString(jsonString, options) {
2092
+ return new _ParticipantMetadataChanged().fromJsonString(jsonString, options);
2093
+ }
2094
+ static equals(a, b) {
2095
+ return import_protobuf.proto2.util.equals(_ParticipantMetadataChanged, a, b);
2096
+ }
2097
+ };
2098
+ _ParticipantMetadataChanged.runtime = import_protobuf.proto2;
2099
+ _ParticipantMetadataChanged.typeName = "livekit.proto.ParticipantMetadataChanged";
2100
+ _ParticipantMetadataChanged.fields = import_protobuf.proto2.util.newFieldList(() => [
2101
+ { no: 1, name: "participant_identity", kind: "scalar", T: 9, req: true },
2102
+ { no: 2, name: "metadata", kind: "scalar", T: 9, req: true }
2103
+ ]);
2104
+ let ParticipantMetadataChanged = _ParticipantMetadataChanged;
2105
+ const _ParticipantAttributesChanged = class _ParticipantAttributesChanged extends import_protobuf.Message {
2106
+ constructor(data) {
2107
+ super();
2108
+ /**
2109
+ * @generated from field: repeated livekit.proto.AttributesEntry attributes = 2;
2110
+ */
2111
+ this.attributes = [];
2112
+ /**
2113
+ * @generated from field: repeated livekit.proto.AttributesEntry changed_attributes = 3;
2114
+ */
2115
+ this.changedAttributes = [];
2116
+ import_protobuf.proto2.util.initPartial(data, this);
2117
+ }
2118
+ static fromBinary(bytes, options) {
2119
+ return new _ParticipantAttributesChanged().fromBinary(bytes, options);
2120
+ }
2121
+ static fromJson(jsonValue, options) {
2122
+ return new _ParticipantAttributesChanged().fromJson(jsonValue, options);
2123
+ }
2124
+ static fromJsonString(jsonString, options) {
2125
+ return new _ParticipantAttributesChanged().fromJsonString(jsonString, options);
2126
+ }
2127
+ static equals(a, b) {
2128
+ return import_protobuf.proto2.util.equals(_ParticipantAttributesChanged, a, b);
2129
+ }
2130
+ };
2131
+ _ParticipantAttributesChanged.runtime = import_protobuf.proto2;
2132
+ _ParticipantAttributesChanged.typeName = "livekit.proto.ParticipantAttributesChanged";
2133
+ _ParticipantAttributesChanged.fields = import_protobuf.proto2.util.newFieldList(() => [
2134
+ { no: 1, name: "participant_identity", kind: "scalar", T: 9, req: true },
2135
+ { no: 2, name: "attributes", kind: "message", T: AttributesEntry, repeated: true },
2136
+ { no: 3, name: "changed_attributes", kind: "message", T: AttributesEntry, repeated: true }
2137
+ ]);
2138
+ let ParticipantAttributesChanged = _ParticipantAttributesChanged;
2139
+ const _ParticipantNameChanged = class _ParticipantNameChanged extends import_protobuf.Message {
2140
+ constructor(data) {
2141
+ super();
2142
+ import_protobuf.proto2.util.initPartial(data, this);
2143
+ }
2144
+ static fromBinary(bytes, options) {
2145
+ return new _ParticipantNameChanged().fromBinary(bytes, options);
2146
+ }
2147
+ static fromJson(jsonValue, options) {
2148
+ return new _ParticipantNameChanged().fromJson(jsonValue, options);
2149
+ }
2150
+ static fromJsonString(jsonString, options) {
2151
+ return new _ParticipantNameChanged().fromJsonString(jsonString, options);
2152
+ }
2153
+ static equals(a, b) {
2154
+ return import_protobuf.proto2.util.equals(_ParticipantNameChanged, a, b);
2155
+ }
2156
+ };
2157
+ _ParticipantNameChanged.runtime = import_protobuf.proto2;
2158
+ _ParticipantNameChanged.typeName = "livekit.proto.ParticipantNameChanged";
2159
+ _ParticipantNameChanged.fields = import_protobuf.proto2.util.newFieldList(() => [
2160
+ { no: 1, name: "participant_identity", kind: "scalar", T: 9, req: true },
2161
+ { no: 2, name: "name", kind: "scalar", T: 9, req: true }
2162
+ ]);
2163
+ let ParticipantNameChanged = _ParticipantNameChanged;
2164
+ const _ConnectionQualityChanged = class _ConnectionQualityChanged extends import_protobuf.Message {
2165
+ constructor(data) {
2166
+ super();
2167
+ import_protobuf.proto2.util.initPartial(data, this);
2168
+ }
2169
+ static fromBinary(bytes, options) {
2170
+ return new _ConnectionQualityChanged().fromBinary(bytes, options);
2171
+ }
2172
+ static fromJson(jsonValue, options) {
2173
+ return new _ConnectionQualityChanged().fromJson(jsonValue, options);
2174
+ }
2175
+ static fromJsonString(jsonString, options) {
2176
+ return new _ConnectionQualityChanged().fromJsonString(jsonString, options);
2177
+ }
2178
+ static equals(a, b) {
2179
+ return import_protobuf.proto2.util.equals(_ConnectionQualityChanged, a, b);
2180
+ }
2181
+ };
2182
+ _ConnectionQualityChanged.runtime = import_protobuf.proto2;
2183
+ _ConnectionQualityChanged.typeName = "livekit.proto.ConnectionQualityChanged";
2184
+ _ConnectionQualityChanged.fields = import_protobuf.proto2.util.newFieldList(() => [
2185
+ { no: 1, name: "participant_identity", kind: "scalar", T: 9, req: true },
2186
+ { no: 2, name: "quality", kind: "enum", T: import_protobuf.proto2.getEnumType(ConnectionQuality), req: true }
2187
+ ]);
2188
+ let ConnectionQualityChanged = _ConnectionQualityChanged;
2189
+ const _UserPacket = class _UserPacket extends import_protobuf.Message {
2190
+ constructor(data) {
2191
+ super();
2192
+ import_protobuf.proto2.util.initPartial(data, this);
2193
+ }
2194
+ static fromBinary(bytes, options) {
2195
+ return new _UserPacket().fromBinary(bytes, options);
2196
+ }
2197
+ static fromJson(jsonValue, options) {
2198
+ return new _UserPacket().fromJson(jsonValue, options);
2199
+ }
2200
+ static fromJsonString(jsonString, options) {
2201
+ return new _UserPacket().fromJsonString(jsonString, options);
2202
+ }
2203
+ static equals(a, b) {
2204
+ return import_protobuf.proto2.util.equals(_UserPacket, a, b);
2205
+ }
2206
+ };
2207
+ _UserPacket.runtime = import_protobuf.proto2;
2208
+ _UserPacket.typeName = "livekit.proto.UserPacket";
2209
+ _UserPacket.fields = import_protobuf.proto2.util.newFieldList(() => [
2210
+ { no: 1, name: "data", kind: "message", T: OwnedBuffer, req: true },
2211
+ { no: 2, name: "topic", kind: "scalar", T: 9, opt: true }
2212
+ ]);
2213
+ let UserPacket = _UserPacket;
2214
+ const _ChatMessage = class _ChatMessage extends import_protobuf.Message {
2215
+ constructor(data) {
2216
+ super();
2217
+ import_protobuf.proto2.util.initPartial(data, this);
2218
+ }
2219
+ static fromBinary(bytes, options) {
2220
+ return new _ChatMessage().fromBinary(bytes, options);
2221
+ }
2222
+ static fromJson(jsonValue, options) {
2223
+ return new _ChatMessage().fromJson(jsonValue, options);
2224
+ }
2225
+ static fromJsonString(jsonString, options) {
2226
+ return new _ChatMessage().fromJsonString(jsonString, options);
2227
+ }
2228
+ static equals(a, b) {
2229
+ return import_protobuf.proto2.util.equals(_ChatMessage, a, b);
2230
+ }
2231
+ };
2232
+ _ChatMessage.runtime = import_protobuf.proto2;
2233
+ _ChatMessage.typeName = "livekit.proto.ChatMessage";
2234
+ _ChatMessage.fields = import_protobuf.proto2.util.newFieldList(() => [
2235
+ { no: 1, name: "id", kind: "scalar", T: 9, req: true },
2236
+ { no: 2, name: "timestamp", kind: "scalar", T: 3, req: true },
2237
+ { no: 3, name: "message", kind: "scalar", T: 9, req: true },
2238
+ { no: 4, name: "edit_timestamp", kind: "scalar", T: 3, opt: true },
2239
+ { no: 5, name: "deleted", kind: "scalar", T: 8, opt: true },
2240
+ { no: 6, name: "generated", kind: "scalar", T: 8, opt: true }
2241
+ ]);
2242
+ let ChatMessage = _ChatMessage;
2243
+ const _ChatMessageReceived = class _ChatMessageReceived extends import_protobuf.Message {
2244
+ constructor(data) {
2245
+ super();
2246
+ import_protobuf.proto2.util.initPartial(data, this);
2247
+ }
2248
+ static fromBinary(bytes, options) {
2249
+ return new _ChatMessageReceived().fromBinary(bytes, options);
2250
+ }
2251
+ static fromJson(jsonValue, options) {
2252
+ return new _ChatMessageReceived().fromJson(jsonValue, options);
2253
+ }
2254
+ static fromJsonString(jsonString, options) {
2255
+ return new _ChatMessageReceived().fromJsonString(jsonString, options);
2256
+ }
2257
+ static equals(a, b) {
2258
+ return import_protobuf.proto2.util.equals(_ChatMessageReceived, a, b);
2259
+ }
2260
+ };
2261
+ _ChatMessageReceived.runtime = import_protobuf.proto2;
2262
+ _ChatMessageReceived.typeName = "livekit.proto.ChatMessageReceived";
2263
+ _ChatMessageReceived.fields = import_protobuf.proto2.util.newFieldList(() => [
2264
+ { no: 1, name: "message", kind: "message", T: ChatMessage, req: true },
2265
+ { no: 2, name: "participant_identity", kind: "scalar", T: 9, req: true }
2266
+ ]);
2267
+ let ChatMessageReceived = _ChatMessageReceived;
2268
+ const _SipDTMF = class _SipDTMF extends import_protobuf.Message {
2269
+ constructor(data) {
2270
+ super();
2271
+ import_protobuf.proto2.util.initPartial(data, this);
2272
+ }
2273
+ static fromBinary(bytes, options) {
2274
+ return new _SipDTMF().fromBinary(bytes, options);
2275
+ }
2276
+ static fromJson(jsonValue, options) {
2277
+ return new _SipDTMF().fromJson(jsonValue, options);
2278
+ }
2279
+ static fromJsonString(jsonString, options) {
2280
+ return new _SipDTMF().fromJsonString(jsonString, options);
2281
+ }
2282
+ static equals(a, b) {
2283
+ return import_protobuf.proto2.util.equals(_SipDTMF, a, b);
2284
+ }
2285
+ };
2286
+ _SipDTMF.runtime = import_protobuf.proto2;
2287
+ _SipDTMF.typeName = "livekit.proto.SipDTMF";
2288
+ _SipDTMF.fields = import_protobuf.proto2.util.newFieldList(() => [
2289
+ { no: 1, name: "code", kind: "scalar", T: 13, req: true },
2290
+ { no: 2, name: "digit", kind: "scalar", T: 9, opt: true }
2291
+ ]);
2292
+ let SipDTMF = _SipDTMF;
2293
+ const _DataPacketReceived = class _DataPacketReceived extends import_protobuf.Message {
2294
+ constructor(data) {
2295
+ super();
2296
+ /**
2297
+ * @generated from oneof livekit.proto.DataPacketReceived.value
2298
+ */
2299
+ this.value = { case: void 0 };
2300
+ import_protobuf.proto2.util.initPartial(data, this);
2301
+ }
2302
+ static fromBinary(bytes, options) {
2303
+ return new _DataPacketReceived().fromBinary(bytes, options);
2304
+ }
2305
+ static fromJson(jsonValue, options) {
2306
+ return new _DataPacketReceived().fromJson(jsonValue, options);
2307
+ }
2308
+ static fromJsonString(jsonString, options) {
2309
+ return new _DataPacketReceived().fromJsonString(jsonString, options);
2310
+ }
2311
+ static equals(a, b) {
2312
+ return import_protobuf.proto2.util.equals(_DataPacketReceived, a, b);
2313
+ }
2314
+ };
2315
+ _DataPacketReceived.runtime = import_protobuf.proto2;
2316
+ _DataPacketReceived.typeName = "livekit.proto.DataPacketReceived";
2317
+ _DataPacketReceived.fields = import_protobuf.proto2.util.newFieldList(() => [
2318
+ { no: 1, name: "kind", kind: "enum", T: import_protobuf.proto2.getEnumType(DataPacketKind), req: true },
2319
+ { no: 2, name: "participant_identity", kind: "scalar", T: 9, req: true },
2320
+ { no: 4, name: "user", kind: "message", T: UserPacket, oneof: "value" },
2321
+ { no: 5, name: "sip_dtmf", kind: "message", T: SipDTMF, oneof: "value" }
2322
+ ]);
2323
+ let DataPacketReceived = _DataPacketReceived;
2324
+ const _TranscriptionReceived = class _TranscriptionReceived extends import_protobuf.Message {
2325
+ constructor(data) {
2326
+ super();
2327
+ /**
2328
+ * @generated from field: repeated livekit.proto.TranscriptionSegment segments = 3;
2329
+ */
2330
+ this.segments = [];
2331
+ import_protobuf.proto2.util.initPartial(data, this);
2332
+ }
2333
+ static fromBinary(bytes, options) {
2334
+ return new _TranscriptionReceived().fromBinary(bytes, options);
2335
+ }
2336
+ static fromJson(jsonValue, options) {
2337
+ return new _TranscriptionReceived().fromJson(jsonValue, options);
2338
+ }
2339
+ static fromJsonString(jsonString, options) {
2340
+ return new _TranscriptionReceived().fromJsonString(jsonString, options);
2341
+ }
2342
+ static equals(a, b) {
2343
+ return import_protobuf.proto2.util.equals(_TranscriptionReceived, a, b);
2344
+ }
2345
+ };
2346
+ _TranscriptionReceived.runtime = import_protobuf.proto2;
2347
+ _TranscriptionReceived.typeName = "livekit.proto.TranscriptionReceived";
2348
+ _TranscriptionReceived.fields = import_protobuf.proto2.util.newFieldList(() => [
2349
+ { no: 1, name: "participant_identity", kind: "scalar", T: 9, opt: true },
2350
+ { no: 2, name: "track_sid", kind: "scalar", T: 9, opt: true },
2351
+ { no: 3, name: "segments", kind: "message", T: TranscriptionSegment, repeated: true }
2352
+ ]);
2353
+ let TranscriptionReceived = _TranscriptionReceived;
2354
+ const _ConnectionStateChanged = class _ConnectionStateChanged extends import_protobuf.Message {
2355
+ constructor(data) {
2356
+ super();
2357
+ import_protobuf.proto2.util.initPartial(data, this);
2358
+ }
2359
+ static fromBinary(bytes, options) {
2360
+ return new _ConnectionStateChanged().fromBinary(bytes, options);
2361
+ }
2362
+ static fromJson(jsonValue, options) {
2363
+ return new _ConnectionStateChanged().fromJson(jsonValue, options);
2364
+ }
2365
+ static fromJsonString(jsonString, options) {
2366
+ return new _ConnectionStateChanged().fromJsonString(jsonString, options);
2367
+ }
2368
+ static equals(a, b) {
2369
+ return import_protobuf.proto2.util.equals(_ConnectionStateChanged, a, b);
2370
+ }
2371
+ };
2372
+ _ConnectionStateChanged.runtime = import_protobuf.proto2;
2373
+ _ConnectionStateChanged.typeName = "livekit.proto.ConnectionStateChanged";
2374
+ _ConnectionStateChanged.fields = import_protobuf.proto2.util.newFieldList(() => [
2375
+ { no: 1, name: "state", kind: "enum", T: import_protobuf.proto2.getEnumType(ConnectionState), req: true }
2376
+ ]);
2377
+ let ConnectionStateChanged = _ConnectionStateChanged;
2378
+ const _Connected = class _Connected extends import_protobuf.Message {
2379
+ constructor(data) {
2380
+ super();
2381
+ import_protobuf.proto2.util.initPartial(data, this);
2382
+ }
2383
+ static fromBinary(bytes, options) {
2384
+ return new _Connected().fromBinary(bytes, options);
2385
+ }
2386
+ static fromJson(jsonValue, options) {
2387
+ return new _Connected().fromJson(jsonValue, options);
2388
+ }
2389
+ static fromJsonString(jsonString, options) {
2390
+ return new _Connected().fromJsonString(jsonString, options);
2391
+ }
2392
+ static equals(a, b) {
2393
+ return import_protobuf.proto2.util.equals(_Connected, a, b);
2394
+ }
2395
+ };
2396
+ _Connected.runtime = import_protobuf.proto2;
2397
+ _Connected.typeName = "livekit.proto.Connected";
2398
+ _Connected.fields = import_protobuf.proto2.util.newFieldList(() => []);
2399
+ let Connected = _Connected;
2400
+ const _Disconnected = class _Disconnected extends import_protobuf.Message {
2401
+ constructor(data) {
2402
+ super();
2403
+ import_protobuf.proto2.util.initPartial(data, this);
2404
+ }
2405
+ static fromBinary(bytes, options) {
2406
+ return new _Disconnected().fromBinary(bytes, options);
2407
+ }
2408
+ static fromJson(jsonValue, options) {
2409
+ return new _Disconnected().fromJson(jsonValue, options);
2410
+ }
2411
+ static fromJsonString(jsonString, options) {
2412
+ return new _Disconnected().fromJsonString(jsonString, options);
2413
+ }
2414
+ static equals(a, b) {
2415
+ return import_protobuf.proto2.util.equals(_Disconnected, a, b);
2416
+ }
2417
+ };
2418
+ _Disconnected.runtime = import_protobuf.proto2;
2419
+ _Disconnected.typeName = "livekit.proto.Disconnected";
2420
+ _Disconnected.fields = import_protobuf.proto2.util.newFieldList(() => [
2421
+ { no: 1, name: "reason", kind: "enum", T: import_protobuf.proto2.getEnumType(import_participant_pb.DisconnectReason), req: true }
2422
+ ]);
2423
+ let Disconnected = _Disconnected;
2424
+ const _Reconnecting = class _Reconnecting extends import_protobuf.Message {
2425
+ constructor(data) {
2426
+ super();
2427
+ import_protobuf.proto2.util.initPartial(data, this);
2428
+ }
2429
+ static fromBinary(bytes, options) {
2430
+ return new _Reconnecting().fromBinary(bytes, options);
2431
+ }
2432
+ static fromJson(jsonValue, options) {
2433
+ return new _Reconnecting().fromJson(jsonValue, options);
2434
+ }
2435
+ static fromJsonString(jsonString, options) {
2436
+ return new _Reconnecting().fromJsonString(jsonString, options);
2437
+ }
2438
+ static equals(a, b) {
2439
+ return import_protobuf.proto2.util.equals(_Reconnecting, a, b);
2440
+ }
2441
+ };
2442
+ _Reconnecting.runtime = import_protobuf.proto2;
2443
+ _Reconnecting.typeName = "livekit.proto.Reconnecting";
2444
+ _Reconnecting.fields = import_protobuf.proto2.util.newFieldList(() => []);
2445
+ let Reconnecting = _Reconnecting;
2446
+ const _Reconnected = class _Reconnected extends import_protobuf.Message {
2447
+ constructor(data) {
2448
+ super();
2449
+ import_protobuf.proto2.util.initPartial(data, this);
2450
+ }
2451
+ static fromBinary(bytes, options) {
2452
+ return new _Reconnected().fromBinary(bytes, options);
2453
+ }
2454
+ static fromJson(jsonValue, options) {
2455
+ return new _Reconnected().fromJson(jsonValue, options);
2456
+ }
2457
+ static fromJsonString(jsonString, options) {
2458
+ return new _Reconnected().fromJsonString(jsonString, options);
2459
+ }
2460
+ static equals(a, b) {
2461
+ return import_protobuf.proto2.util.equals(_Reconnected, a, b);
2462
+ }
2463
+ };
2464
+ _Reconnected.runtime = import_protobuf.proto2;
2465
+ _Reconnected.typeName = "livekit.proto.Reconnected";
2466
+ _Reconnected.fields = import_protobuf.proto2.util.newFieldList(() => []);
2467
+ let Reconnected = _Reconnected;
2468
+ const _RoomEOS = class _RoomEOS extends import_protobuf.Message {
2469
+ constructor(data) {
2470
+ super();
2471
+ import_protobuf.proto2.util.initPartial(data, this);
2472
+ }
2473
+ static fromBinary(bytes, options) {
2474
+ return new _RoomEOS().fromBinary(bytes, options);
2475
+ }
2476
+ static fromJson(jsonValue, options) {
2477
+ return new _RoomEOS().fromJson(jsonValue, options);
2478
+ }
2479
+ static fromJsonString(jsonString, options) {
2480
+ return new _RoomEOS().fromJsonString(jsonString, options);
2481
+ }
2482
+ static equals(a, b) {
2483
+ return import_protobuf.proto2.util.equals(_RoomEOS, a, b);
2484
+ }
2485
+ };
2486
+ _RoomEOS.runtime = import_protobuf.proto2;
2487
+ _RoomEOS.typeName = "livekit.proto.RoomEOS";
2488
+ _RoomEOS.fields = import_protobuf.proto2.util.newFieldList(() => []);
2489
+ let RoomEOS = _RoomEOS;
2490
+ const _DataStream = class _DataStream extends import_protobuf.Message {
2491
+ constructor(data) {
2492
+ super();
2493
+ import_protobuf.proto2.util.initPartial(data, this);
2494
+ }
2495
+ static fromBinary(bytes, options) {
2496
+ return new _DataStream().fromBinary(bytes, options);
2497
+ }
2498
+ static fromJson(jsonValue, options) {
2499
+ return new _DataStream().fromJson(jsonValue, options);
2500
+ }
2501
+ static fromJsonString(jsonString, options) {
2502
+ return new _DataStream().fromJsonString(jsonString, options);
2503
+ }
2504
+ static equals(a, b) {
2505
+ return import_protobuf.proto2.util.equals(_DataStream, a, b);
2506
+ }
2507
+ };
2508
+ _DataStream.runtime = import_protobuf.proto2;
2509
+ _DataStream.typeName = "livekit.proto.DataStream";
2510
+ _DataStream.fields = import_protobuf.proto2.util.newFieldList(() => []);
2511
+ let DataStream = _DataStream;
2512
+ var DataStream_OperationType = /* @__PURE__ */ ((DataStream_OperationType2) => {
2513
+ DataStream_OperationType2[DataStream_OperationType2["CREATE"] = 0] = "CREATE";
2514
+ DataStream_OperationType2[DataStream_OperationType2["UPDATE"] = 1] = "UPDATE";
2515
+ DataStream_OperationType2[DataStream_OperationType2["DELETE"] = 2] = "DELETE";
2516
+ DataStream_OperationType2[DataStream_OperationType2["REACTION"] = 3] = "REACTION";
2517
+ return DataStream_OperationType2;
2518
+ })(DataStream_OperationType || {});
2519
+ import_protobuf.proto2.util.setEnumType(DataStream_OperationType, "livekit.proto.DataStream.OperationType", [
2520
+ { no: 0, name: "CREATE" },
2521
+ { no: 1, name: "UPDATE" },
2522
+ { no: 2, name: "DELETE" },
2523
+ { no: 3, name: "REACTION" }
2524
+ ]);
2525
+ const _DataStream_TextHeader = class _DataStream_TextHeader extends import_protobuf.Message {
2526
+ constructor(data) {
2527
+ super();
2528
+ /**
2529
+ * file attachments for text streams
2530
+ *
2531
+ * @generated from field: repeated string attached_stream_ids = 4;
2532
+ */
2533
+ this.attachedStreamIds = [];
2534
+ import_protobuf.proto2.util.initPartial(data, this);
2535
+ }
2536
+ static fromBinary(bytes, options) {
2537
+ return new _DataStream_TextHeader().fromBinary(bytes, options);
2538
+ }
2539
+ static fromJson(jsonValue, options) {
2540
+ return new _DataStream_TextHeader().fromJson(jsonValue, options);
2541
+ }
2542
+ static fromJsonString(jsonString, options) {
2543
+ return new _DataStream_TextHeader().fromJsonString(jsonString, options);
2544
+ }
2545
+ static equals(a, b) {
2546
+ return import_protobuf.proto2.util.equals(_DataStream_TextHeader, a, b);
2547
+ }
2548
+ };
2549
+ _DataStream_TextHeader.runtime = import_protobuf.proto2;
2550
+ _DataStream_TextHeader.typeName = "livekit.proto.DataStream.TextHeader";
2551
+ _DataStream_TextHeader.fields = import_protobuf.proto2.util.newFieldList(() => [
2552
+ { no: 1, name: "operation_type", kind: "enum", T: import_protobuf.proto2.getEnumType(DataStream_OperationType), req: true },
2553
+ { no: 2, name: "version", kind: "scalar", T: 5, req: true },
2554
+ { no: 3, name: "reply_to_stream_id", kind: "scalar", T: 9, req: true },
2555
+ { no: 4, name: "attached_stream_ids", kind: "scalar", T: 9, repeated: true },
2556
+ { no: 5, name: "generated", kind: "scalar", T: 8, req: true }
2557
+ ]);
2558
+ let DataStream_TextHeader = _DataStream_TextHeader;
2559
+ const _DataStream_FileHeader = class _DataStream_FileHeader extends import_protobuf.Message {
2560
+ constructor(data) {
2561
+ super();
2562
+ import_protobuf.proto2.util.initPartial(data, this);
2563
+ }
2564
+ static fromBinary(bytes, options) {
2565
+ return new _DataStream_FileHeader().fromBinary(bytes, options);
2566
+ }
2567
+ static fromJson(jsonValue, options) {
2568
+ return new _DataStream_FileHeader().fromJson(jsonValue, options);
2569
+ }
2570
+ static fromJsonString(jsonString, options) {
2571
+ return new _DataStream_FileHeader().fromJsonString(jsonString, options);
2572
+ }
2573
+ static equals(a, b) {
2574
+ return import_protobuf.proto2.util.equals(_DataStream_FileHeader, a, b);
2575
+ }
2576
+ };
2577
+ _DataStream_FileHeader.runtime = import_protobuf.proto2;
2578
+ _DataStream_FileHeader.typeName = "livekit.proto.DataStream.FileHeader";
2579
+ _DataStream_FileHeader.fields = import_protobuf.proto2.util.newFieldList(() => [
2580
+ { no: 1, name: "file_name", kind: "scalar", T: 9, req: true }
2581
+ ]);
2582
+ let DataStream_FileHeader = _DataStream_FileHeader;
2583
+ const _DataStream_Header = class _DataStream_Header extends import_protobuf.Message {
2584
+ constructor(data) {
2585
+ super();
2586
+ /**
2587
+ * user defined extensions map that can carry additional info
2588
+ *
2589
+ * @generated from field: map<string, string> extensions = 7;
2590
+ */
2591
+ this.extensions = {};
2592
+ /**
2593
+ * oneof to choose between specific header types
2594
+ *
2595
+ * @generated from oneof livekit.proto.DataStream.Header.content_header
2596
+ */
2597
+ this.contentHeader = { case: void 0 };
2598
+ import_protobuf.proto2.util.initPartial(data, this);
2599
+ }
2600
+ static fromBinary(bytes, options) {
2601
+ return new _DataStream_Header().fromBinary(bytes, options);
2602
+ }
2603
+ static fromJson(jsonValue, options) {
2604
+ return new _DataStream_Header().fromJson(jsonValue, options);
2605
+ }
2606
+ static fromJsonString(jsonString, options) {
2607
+ return new _DataStream_Header().fromJsonString(jsonString, options);
2608
+ }
2609
+ static equals(a, b) {
2610
+ return import_protobuf.proto2.util.equals(_DataStream_Header, a, b);
2611
+ }
2612
+ };
2613
+ _DataStream_Header.runtime = import_protobuf.proto2;
2614
+ _DataStream_Header.typeName = "livekit.proto.DataStream.Header";
2615
+ _DataStream_Header.fields = import_protobuf.proto2.util.newFieldList(() => [
2616
+ { no: 1, name: "stream_id", kind: "scalar", T: 9, req: true },
2617
+ { no: 2, name: "timestamp", kind: "scalar", T: 3, req: true },
2618
+ { no: 3, name: "topic", kind: "scalar", T: 9, req: true },
2619
+ { no: 4, name: "mime_type", kind: "scalar", T: 9, req: true },
2620
+ { no: 5, name: "total_length", kind: "scalar", T: 4, opt: true },
2621
+ { no: 6, name: "total_chunks", kind: "scalar", T: 4, opt: true },
2622
+ { no: 7, name: "extensions", kind: "map", K: 9, V: {
2623
+ kind: "scalar",
2624
+ T: 9
2625
+ /* ScalarType.STRING */
2626
+ } },
2627
+ { no: 8, name: "text_header", kind: "message", T: DataStream_TextHeader, oneof: "content_header" },
2628
+ { no: 9, name: "file_header", kind: "message", T: DataStream_FileHeader, oneof: "content_header" }
2629
+ ]);
2630
+ let DataStream_Header = _DataStream_Header;
2631
+ const _DataStream_Chunk = class _DataStream_Chunk extends import_protobuf.Message {
2632
+ constructor(data) {
2633
+ super();
2634
+ import_protobuf.proto2.util.initPartial(data, this);
2635
+ }
2636
+ static fromBinary(bytes, options) {
2637
+ return new _DataStream_Chunk().fromBinary(bytes, options);
2638
+ }
2639
+ static fromJson(jsonValue, options) {
2640
+ return new _DataStream_Chunk().fromJson(jsonValue, options);
2641
+ }
2642
+ static fromJsonString(jsonString, options) {
2643
+ return new _DataStream_Chunk().fromJsonString(jsonString, options);
2644
+ }
2645
+ static equals(a, b) {
2646
+ return import_protobuf.proto2.util.equals(_DataStream_Chunk, a, b);
2647
+ }
2648
+ };
2649
+ _DataStream_Chunk.runtime = import_protobuf.proto2;
2650
+ _DataStream_Chunk.typeName = "livekit.proto.DataStream.Chunk";
2651
+ _DataStream_Chunk.fields = import_protobuf.proto2.util.newFieldList(() => [
2652
+ { no: 1, name: "stream_id", kind: "scalar", T: 9, req: true },
2653
+ { no: 2, name: "chunk_index", kind: "scalar", T: 4, req: true },
2654
+ { no: 3, name: "content", kind: "scalar", T: 12, req: true },
2655
+ { no: 4, name: "complete", kind: "scalar", T: 8, req: true },
2656
+ { no: 5, name: "version", kind: "scalar", T: 5, req: true },
2657
+ { no: 6, name: "iv", kind: "scalar", T: 12, opt: true }
2658
+ ]);
2659
+ let DataStream_Chunk = _DataStream_Chunk;
267
2660
  // Annotate the CommonJS export names for ESM import in node:
268
2661
  0 && (module.exports = {
269
- ActiveSpeakersChangedSchema,
270
- AttributesEntrySchema,
271
- AudioEncodingSchema,
272
- BufferInfoSchema,
273
- ChatMessageReceivedSchema,
274
- ChatMessageSchema,
275
- ConnectCallbackSchema,
276
- ConnectCallback_ParticipantWithTracksSchema,
277
- ConnectCallback_ResultSchema,
278
- ConnectRequestSchema,
279
- ConnectResponseSchema,
280
- ConnectedSchema,
2662
+ ActiveSpeakersChanged,
2663
+ AttributesEntry,
2664
+ AudioEncoding,
2665
+ BufferInfo,
2666
+ ChatMessage,
2667
+ ChatMessageReceived,
2668
+ ConnectCallback,
2669
+ ConnectCallback_ParticipantWithTracks,
2670
+ ConnectCallback_Result,
2671
+ ConnectRequest,
2672
+ ConnectResponse,
2673
+ Connected,
281
2674
  ConnectionQuality,
282
- ConnectionQualityChangedSchema,
283
- ConnectionQualitySchema,
2675
+ ConnectionQualityChanged,
284
2676
  ConnectionState,
285
- ConnectionStateChangedSchema,
286
- ConnectionStateSchema,
2677
+ ConnectionStateChanged,
287
2678
  ContinualGatheringPolicy,
288
- ContinualGatheringPolicySchema,
289
2679
  DataPacketKind,
290
- DataPacketKindSchema,
291
- DataPacketReceivedSchema,
292
- DisconnectCallbackSchema,
293
- DisconnectReason,
294
- DisconnectReasonSchema,
295
- DisconnectRequestSchema,
296
- DisconnectResponseSchema,
297
- DisconnectedSchema,
298
- E2eeStateChangedSchema,
299
- EditChatMessageRequestSchema,
300
- GetSessionStatsCallbackSchema,
301
- GetSessionStatsCallback_ResultSchema,
302
- GetSessionStatsRequestSchema,
303
- GetSessionStatsResponseSchema,
304
- IceServerSchema,
2680
+ DataPacketReceived,
2681
+ DataStream,
2682
+ DataStream_Chunk,
2683
+ DataStream_FileHeader,
2684
+ DataStream_Header,
2685
+ DataStream_OperationType,
2686
+ DataStream_TextHeader,
2687
+ DisconnectCallback,
2688
+ DisconnectRequest,
2689
+ DisconnectResponse,
2690
+ Disconnected,
2691
+ E2eeStateChanged,
2692
+ EditChatMessageRequest,
2693
+ GetSessionStatsCallback,
2694
+ GetSessionStatsCallback_Result,
2695
+ GetSessionStatsRequest,
2696
+ GetSessionStatsResponse,
2697
+ IceServer,
305
2698
  IceTransportType,
306
- IceTransportTypeSchema,
307
- LocalTrackPublishedSchema,
308
- LocalTrackSubscribedSchema,
309
- LocalTrackUnpublishedSchema,
310
- OwnedBufferSchema,
311
- OwnedRoomSchema,
312
- ParticipantAttributesChangedSchema,
313
- ParticipantConnectedSchema,
314
- ParticipantDisconnectedSchema,
315
- ParticipantMetadataChangedSchema,
316
- ParticipantNameChangedSchema,
317
- PublishDataCallbackSchema,
318
- PublishDataRequestSchema,
319
- PublishDataResponseSchema,
320
- PublishSipDtmfCallbackSchema,
321
- PublishSipDtmfRequestSchema,
322
- PublishSipDtmfResponseSchema,
323
- PublishTrackCallbackSchema,
324
- PublishTrackRequestSchema,
325
- PublishTrackResponseSchema,
326
- PublishTranscriptionCallbackSchema,
327
- PublishTranscriptionRequestSchema,
328
- PublishTranscriptionResponseSchema,
329
- ReconnectedSchema,
330
- ReconnectingSchema,
331
- RoomEOSSchema,
332
- RoomEventSchema,
333
- RoomInfoSchema,
334
- RoomMetadataChangedSchema,
335
- RoomOptionsSchema,
336
- RoomSidChangedSchema,
337
- RtcConfigSchema,
338
- SendChatMessageCallbackSchema,
339
- SendChatMessageRequestSchema,
340
- SendChatMessageResponseSchema,
341
- SetLocalAttributesCallbackSchema,
342
- SetLocalAttributesRequestSchema,
343
- SetLocalAttributesResponseSchema,
344
- SetLocalMetadataCallbackSchema,
345
- SetLocalMetadataRequestSchema,
346
- SetLocalMetadataResponseSchema,
347
- SetLocalNameCallbackSchema,
348
- SetLocalNameRequestSchema,
349
- SetLocalNameResponseSchema,
350
- SetSubscribedRequestSchema,
351
- SetSubscribedResponseSchema,
352
- SipDTMFSchema,
353
- TrackMutedSchema,
354
- TrackPublishOptionsSchema,
355
- TrackPublishedSchema,
356
- TrackSubscribedSchema,
357
- TrackSubscriptionFailedSchema,
358
- TrackUnmutedSchema,
359
- TrackUnpublishedSchema,
360
- TrackUnsubscribedSchema,
361
- TranscriptionReceivedSchema,
362
- TranscriptionSegmentSchema,
363
- UnpublishTrackCallbackSchema,
364
- UnpublishTrackRequestSchema,
365
- UnpublishTrackResponseSchema,
366
- UserPacketSchema,
367
- VideoEncodingSchema,
368
- file_room
2699
+ LocalTrackPublished,
2700
+ LocalTrackSubscribed,
2701
+ LocalTrackUnpublished,
2702
+ OwnedBuffer,
2703
+ OwnedRoom,
2704
+ ParticipantAttributesChanged,
2705
+ ParticipantConnected,
2706
+ ParticipantDisconnected,
2707
+ ParticipantMetadataChanged,
2708
+ ParticipantNameChanged,
2709
+ PublishDataCallback,
2710
+ PublishDataRequest,
2711
+ PublishDataResponse,
2712
+ PublishSipDtmfCallback,
2713
+ PublishSipDtmfRequest,
2714
+ PublishSipDtmfResponse,
2715
+ PublishTrackCallback,
2716
+ PublishTrackRequest,
2717
+ PublishTrackResponse,
2718
+ PublishTranscriptionCallback,
2719
+ PublishTranscriptionRequest,
2720
+ PublishTranscriptionResponse,
2721
+ Reconnected,
2722
+ Reconnecting,
2723
+ RoomEOS,
2724
+ RoomEvent,
2725
+ RoomInfo,
2726
+ RoomMetadataChanged,
2727
+ RoomOptions,
2728
+ RoomSidChanged,
2729
+ RtcConfig,
2730
+ SendChatMessageCallback,
2731
+ SendChatMessageRequest,
2732
+ SendChatMessageResponse,
2733
+ SetLocalAttributesCallback,
2734
+ SetLocalAttributesRequest,
2735
+ SetLocalAttributesResponse,
2736
+ SetLocalMetadataCallback,
2737
+ SetLocalMetadataRequest,
2738
+ SetLocalMetadataResponse,
2739
+ SetLocalNameCallback,
2740
+ SetLocalNameRequest,
2741
+ SetLocalNameResponse,
2742
+ SetSubscribedRequest,
2743
+ SetSubscribedResponse,
2744
+ SipDTMF,
2745
+ TrackMuted,
2746
+ TrackPublishOptions,
2747
+ TrackPublished,
2748
+ TrackSubscribed,
2749
+ TrackSubscriptionFailed,
2750
+ TrackUnmuted,
2751
+ TrackUnpublished,
2752
+ TrackUnsubscribed,
2753
+ TranscriptionReceived,
2754
+ TranscriptionSegment,
2755
+ UnpublishTrackCallback,
2756
+ UnpublishTrackRequest,
2757
+ UnpublishTrackResponse,
2758
+ UserPacket,
2759
+ VideoEncoding
369
2760
  });
370
2761
  //# sourceMappingURL=room_pb.cjs.map