@livekit/rtc-node 0.12.1 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (223) hide show
  1. package/dist/audio_frame.cjs +2 -2
  2. package/dist/audio_frame.cjs.map +1 -1
  3. package/dist/audio_frame.d.cts +31 -0
  4. package/dist/audio_frame.d.ts +11 -5
  5. package/dist/audio_frame.d.ts.map +1 -1
  6. package/dist/audio_frame.js +3 -3
  7. package/dist/audio_frame.js.map +1 -1
  8. package/dist/audio_resampler.cjs +10 -7
  9. package/dist/audio_resampler.cjs.map +1 -1
  10. package/dist/audio_resampler.d.cts +59 -0
  11. package/dist/audio_resampler.d.ts +11 -3
  12. package/dist/audio_resampler.d.ts.map +1 -1
  13. package/dist/audio_resampler.js +13 -10
  14. package/dist/audio_resampler.js.map +1 -1
  15. package/dist/audio_source.cjs +6 -4
  16. package/dist/audio_source.cjs.map +1 -1
  17. package/dist/audio_source.d.cts +37 -0
  18. package/dist/audio_source.d.ts +13 -5
  19. package/dist/audio_source.d.ts.map +1 -1
  20. package/dist/audio_source.js +9 -7
  21. package/dist/audio_source.js.map +1 -1
  22. package/dist/audio_stream.cjs +1 -2
  23. package/dist/audio_stream.cjs.map +1 -1
  24. package/dist/audio_stream.d.cts +37 -0
  25. package/dist/audio_stream.d.ts +16 -5
  26. package/dist/audio_stream.d.ts.map +1 -1
  27. package/dist/audio_stream.js +2 -3
  28. package/dist/audio_stream.js.map +1 -1
  29. package/dist/e2ee.cjs +19 -20
  30. package/dist/e2ee.cjs.map +1 -1
  31. package/dist/e2ee.d.cts +47 -0
  32. package/dist/e2ee.d.ts +11 -8
  33. package/dist/e2ee.d.ts.map +1 -1
  34. package/dist/e2ee.js +29 -30
  35. package/dist/e2ee.js.map +1 -1
  36. package/dist/ffi_client.cjs +6 -5
  37. package/dist/ffi_client.cjs.map +1 -1
  38. package/dist/ffi_client.d.cts +35 -0
  39. package/dist/ffi_client.d.ts +23 -11
  40. package/dist/ffi_client.d.ts.map +1 -1
  41. package/dist/ffi_client.js +6 -10
  42. package/dist/ffi_client.js.map +1 -1
  43. package/dist/index.cjs +16 -49
  44. package/dist/index.cjs.map +1 -1
  45. package/dist/index.d.cts +28 -0
  46. package/dist/index.d.ts +20 -41
  47. package/dist/index.d.ts.map +1 -1
  48. package/dist/index.js +7 -46
  49. package/dist/index.js.map +1 -1
  50. package/dist/napi/native.d.cjs.map +1 -1
  51. package/dist/napi/native.d.d.cts +21 -0
  52. package/dist/napi/native.d.d.ts +21 -0
  53. package/dist/napi/native.d.ts +5 -5
  54. package/dist/native.d.ts +5 -5
  55. package/dist/participant.cjs +57 -34
  56. package/dist/participant.cjs.map +1 -1
  57. package/dist/participant.d.cts +126 -0
  58. package/dist/participant.d.ts +34 -20
  59. package/dist/participant.d.ts.map +1 -1
  60. package/dist/participant.js +75 -50
  61. package/dist/participant.js.map +1 -1
  62. package/dist/proto/audio_frame_pb.cjs +977 -125
  63. package/dist/proto/audio_frame_pb.cjs.map +1 -1
  64. package/dist/proto/audio_frame_pb.d.cts +898 -0
  65. package/dist/proto/audio_frame_pb.d.ts +506 -417
  66. package/dist/proto/audio_frame_pb.d.ts.map +1 -1
  67. package/dist/proto/audio_frame_pb.js +943 -85
  68. package/dist/proto/audio_frame_pb.js.map +1 -1
  69. package/dist/proto/e2ee_pb.cjs +700 -85
  70. package/dist/proto/e2ee_pb.cjs.map +1 -1
  71. package/dist/proto/e2ee_pb.d.cts +653 -0
  72. package/dist/proto/e2ee_pb.d.ts +333 -263
  73. package/dist/proto/e2ee_pb.d.ts.map +1 -1
  74. package/dist/proto/e2ee_pb.js +675 -57
  75. package/dist/proto/e2ee_pb.js.map +1 -1
  76. package/dist/proto/ffi_pb.cjs +369 -36
  77. package/dist/proto/ffi_pb.cjs.map +1 -1
  78. package/dist/proto/ffi_pb.d.cts +898 -0
  79. package/dist/proto/ffi_pb.d.ts +164 -112
  80. package/dist/proto/ffi_pb.d.ts.map +1 -1
  81. package/dist/proto/ffi_pb.js +364 -29
  82. package/dist/proto/ffi_pb.js.map +1 -1
  83. package/dist/proto/handle_pb.cjs +27 -7
  84. package/dist/proto/handle_pb.cjs.map +1 -1
  85. package/dist/proto/handle_pb.d.cts +31 -0
  86. package/dist/proto/handle_pb.d.ts +15 -15
  87. package/dist/proto/handle_pb.d.ts.map +1 -1
  88. package/dist/proto/handle_pb.js +26 -5
  89. package/dist/proto/handle_pb.js.map +1 -1
  90. package/dist/proto/participant_pb.cjs +112 -15
  91. package/dist/proto/participant_pb.cjs.map +1 -1
  92. package/dist/proto/participant_pb.d.cts +181 -0
  93. package/dist/proto/participant_pb.d.ts +143 -53
  94. package/dist/proto/participant_pb.d.ts.map +1 -1
  95. package/dist/proto/participant_pb.js +109 -11
  96. package/dist/proto/participant_pb.js.map +1 -1
  97. package/dist/proto/room_pb.cjs +2693 -302
  98. package/dist/proto/room_pb.cjs.map +1 -1
  99. package/dist/proto/room_pb.d.cts +2475 -0
  100. package/dist/proto/room_pb.d.ts +1269 -864
  101. package/dist/proto/room_pb.d.ts.map +1 -1
  102. package/dist/proto/room_pb.js +2603 -210
  103. package/dist/proto/room_pb.js.map +1 -1
  104. package/dist/proto/rpc_pb.cjs +302 -37
  105. package/dist/proto/rpc_pb.cjs.map +1 -1
  106. package/dist/proto/rpc_pb.d.cts +267 -0
  107. package/dist/proto/rpc_pb.d.ts +140 -108
  108. package/dist/proto/rpc_pb.d.ts.map +1 -1
  109. package/dist/proto/rpc_pb.js +291 -25
  110. package/dist/proto/rpc_pb.js.map +1 -1
  111. package/dist/proto/stats_pb.cjs +1253 -139
  112. package/dist/proto/stats_pb.cjs.map +1 -1
  113. package/dist/proto/stats_pb.d.cts +1764 -0
  114. package/dist/proto/stats_pb.d.ts +806 -693
  115. package/dist/proto/stats_pb.d.ts.map +1 -1
  116. package/dist/proto/stats_pb.js +1216 -93
  117. package/dist/proto/stats_pb.js.map +1 -1
  118. package/dist/proto/track_pb.cjs +462 -64
  119. package/dist/proto/track_pb.cjs.map +1 -1
  120. package/dist/proto/track_pb.d.cts +434 -0
  121. package/dist/proto/track_pb.d.ts +254 -220
  122. package/dist/proto/track_pb.d.ts.map +1 -1
  123. package/dist/proto/track_pb.js +447 -45
  124. package/dist/proto/track_pb.js.map +1 -1
  125. package/dist/proto/track_publication_pb.cjs +130 -0
  126. package/dist/proto/track_publication_pb.cjs.map +1 -0
  127. package/dist/proto/track_publication_pb.d.cts +80 -0
  128. package/dist/proto/track_publication_pb.d.ts +80 -0
  129. package/dist/proto/track_publication_pb.d.ts.map +1 -0
  130. package/dist/proto/track_publication_pb.js +103 -0
  131. package/dist/proto/track_publication_pb.js.map +1 -0
  132. package/dist/proto/video_frame_pb.cjs +648 -88
  133. package/dist/proto/video_frame_pb.cjs.map +1 -1
  134. package/dist/proto/video_frame_pb.d.cts +660 -0
  135. package/dist/proto/video_frame_pb.d.ts +375 -328
  136. package/dist/proto/video_frame_pb.d.ts.map +1 -1
  137. package/dist/proto/video_frame_pb.js +626 -60
  138. package/dist/proto/video_frame_pb.js.map +1 -1
  139. package/dist/room.cjs +93 -125
  140. package/dist/room.cjs.map +1 -1
  141. package/dist/room.d.cts +123 -0
  142. package/dist/room.d.ts +37 -34
  143. package/dist/room.d.ts.map +1 -1
  144. package/dist/room.js +92 -122
  145. package/dist/room.js.map +1 -1
  146. package/dist/rpc.cjs.map +1 -1
  147. package/dist/rpc.d.cts +81 -0
  148. package/dist/rpc.d.ts +10 -7
  149. package/dist/rpc.js.map +1 -1
  150. package/dist/track.cjs +12 -8
  151. package/dist/track.cjs.map +1 -1
  152. package/dist/track.d.cts +45 -0
  153. package/dist/track.d.ts +30 -20
  154. package/dist/track.d.ts.map +1 -1
  155. package/dist/track.js +13 -9
  156. package/dist/track.js.map +1 -1
  157. package/dist/track_publication.cjs +21 -12
  158. package/dist/track_publication.cjs.map +1 -1
  159. package/dist/track_publication.d.cts +47 -0
  160. package/dist/track_publication.d.ts +30 -19
  161. package/dist/track_publication.d.ts.map +1 -1
  162. package/dist/track_publication.js +22 -13
  163. package/dist/track_publication.js.map +1 -1
  164. package/dist/transcription.d.cts +15 -0
  165. package/dist/transcription.d.ts +4 -3
  166. package/dist/types.d.cts +9 -0
  167. package/dist/types.d.ts +3 -2
  168. package/dist/version.cjs +1 -1
  169. package/dist/version.cjs.map +1 -1
  170. package/dist/version.d.cts +3 -0
  171. package/dist/version.d.ts +3 -2
  172. package/dist/version.js +1 -1
  173. package/dist/version.js.map +1 -1
  174. package/dist/video_frame.cjs +26 -45
  175. package/dist/video_frame.cjs.map +1 -1
  176. package/dist/video_frame.d.cts +24 -0
  177. package/dist/video_frame.d.ts +10 -4
  178. package/dist/video_frame.d.ts.map +1 -1
  179. package/dist/video_frame.js +29 -48
  180. package/dist/video_frame.js.map +1 -1
  181. package/dist/video_source.cjs +7 -4
  182. package/dist/video_source.cjs.map +1 -1
  183. package/dist/video_source.d.cts +22 -0
  184. package/dist/video_source.d.ts +14 -7
  185. package/dist/video_source.d.ts.map +1 -1
  186. package/dist/video_source.js +9 -6
  187. package/dist/video_source.js.map +1 -1
  188. package/dist/video_stream.cjs +16 -5
  189. package/dist/video_stream.cjs.map +1 -1
  190. package/dist/video_stream.d.cts +40 -0
  191. package/dist/video_stream.d.ts +18 -7
  192. package/dist/video_stream.d.ts.map +1 -1
  193. package/dist/video_stream.js +17 -6
  194. package/dist/video_stream.js.map +1 -1
  195. package/package.json +17 -12
  196. package/src/audio_frame.ts +10 -10
  197. package/src/audio_resampler.ts +15 -13
  198. package/src/audio_source.ts +11 -8
  199. package/src/audio_stream.ts +3 -4
  200. package/src/e2ee.ts +36 -37
  201. package/src/ffi_client.ts +8 -16
  202. package/src/index.ts +5 -68
  203. package/src/napi/native.d.ts +5 -5
  204. package/src/participant.ts +100 -72
  205. package/src/proto/audio_frame_pb.ts +1220 -496
  206. package/src/proto/e2ee_pb.ts +858 -337
  207. package/src/proto/ffi_pb.ts +442 -135
  208. package/src/proto/handle_pb.ts +33 -19
  209. package/src/proto/participant_pb.ts +225 -60
  210. package/src/proto/room_pb.ts +3149 -1013
  211. package/src/proto/rpc_pb.ts +358 -129
  212. package/src/proto/stats_pb.ts +1891 -877
  213. package/src/proto/track_pb.ts +587 -253
  214. package/src/proto/track_publication_pb.ts +180 -0
  215. package/src/proto/video_frame_pb.ts +861 -394
  216. package/src/room.ts +143 -188
  217. package/src/rpc.ts +1 -1
  218. package/src/track.ts +16 -17
  219. package/src/track_publication.ts +25 -26
  220. package/src/version.ts +1 -1
  221. package/src/video_frame.ts +48 -72
  222. package/src/video_source.ts +11 -8
  223. package/src/video_stream.ts +18 -8
@@ -1,197 +1,280 @@
1
- import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv1";
2
- import type { EncryptionType } from "./e2ee_pb.js";
3
- import type { FfiOwnedHandle } from "./handle_pb.js";
4
- import type { RtcStats } from "./stats_pb.js";
5
- import type { Message } from "@bufbuild/protobuf";
1
+ import { Message, PartialMessage, proto2, FieldList, BinaryReadOptions, JsonValue, JsonReadOptions, PlainMessage } from '@bufbuild/protobuf';
2
+ import { RtcStats } from './stats_pb.js';
3
+ import { EncryptionType } from './e2ee_pb.js';
4
+ import { FfiOwnedHandle } from './handle_pb.js';
5
+
6
6
  /**
7
- * Describes the file track.proto.
7
+ * @generated from enum livekit.proto.TrackKind
8
8
  */
9
- export declare const file_track: GenFile;
9
+ declare enum TrackKind {
10
+ /**
11
+ * @generated from enum value: KIND_UNKNOWN = 0;
12
+ */
13
+ KIND_UNKNOWN = 0,
14
+ /**
15
+ * @generated from enum value: KIND_AUDIO = 1;
16
+ */
17
+ KIND_AUDIO = 1,
18
+ /**
19
+ * @generated from enum value: KIND_VIDEO = 2;
20
+ */
21
+ KIND_VIDEO = 2
22
+ }
23
+ /**
24
+ * @generated from enum livekit.proto.TrackSource
25
+ */
26
+ declare enum TrackSource {
27
+ /**
28
+ * @generated from enum value: SOURCE_UNKNOWN = 0;
29
+ */
30
+ SOURCE_UNKNOWN = 0,
31
+ /**
32
+ * @generated from enum value: SOURCE_CAMERA = 1;
33
+ */
34
+ SOURCE_CAMERA = 1,
35
+ /**
36
+ * @generated from enum value: SOURCE_MICROPHONE = 2;
37
+ */
38
+ SOURCE_MICROPHONE = 2,
39
+ /**
40
+ * @generated from enum value: SOURCE_SCREENSHARE = 3;
41
+ */
42
+ SOURCE_SCREENSHARE = 3,
43
+ /**
44
+ * @generated from enum value: SOURCE_SCREENSHARE_AUDIO = 4;
45
+ */
46
+ SOURCE_SCREENSHARE_AUDIO = 4
47
+ }
48
+ /**
49
+ * @generated from enum livekit.proto.StreamState
50
+ */
51
+ declare enum StreamState {
52
+ /**
53
+ * @generated from enum value: STATE_UNKNOWN = 0;
54
+ */
55
+ STATE_UNKNOWN = 0,
56
+ /**
57
+ * @generated from enum value: STATE_ACTIVE = 1;
58
+ */
59
+ STATE_ACTIVE = 1,
60
+ /**
61
+ * @generated from enum value: STATE_PAUSED = 2;
62
+ */
63
+ STATE_PAUSED = 2
64
+ }
10
65
  /**
11
66
  * Create a new VideoTrack from a VideoSource
12
67
  *
13
68
  * @generated from message livekit.proto.CreateVideoTrackRequest
14
69
  */
15
- export type CreateVideoTrackRequest = Message<"livekit.proto.CreateVideoTrackRequest"> & {
70
+ declare class CreateVideoTrackRequest extends Message<CreateVideoTrackRequest> {
16
71
  /**
17
72
  * @generated from field: required string name = 1;
18
73
  */
19
- name: string;
74
+ name?: string;
20
75
  /**
21
76
  * @generated from field: required uint64 source_handle = 2;
22
77
  */
23
- sourceHandle: bigint;
24
- };
25
- /**
26
- * Describes the message livekit.proto.CreateVideoTrackRequest.
27
- * Use `create(CreateVideoTrackRequestSchema)` to create a new message.
28
- */
29
- export declare const CreateVideoTrackRequestSchema: GenMessage<CreateVideoTrackRequest>;
78
+ sourceHandle?: bigint;
79
+ constructor(data?: PartialMessage<CreateVideoTrackRequest>);
80
+ static readonly runtime: typeof proto2;
81
+ static readonly typeName = "livekit.proto.CreateVideoTrackRequest";
82
+ static readonly fields: FieldList;
83
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateVideoTrackRequest;
84
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateVideoTrackRequest;
85
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateVideoTrackRequest;
86
+ static equals(a: CreateVideoTrackRequest | PlainMessage<CreateVideoTrackRequest> | undefined, b: CreateVideoTrackRequest | PlainMessage<CreateVideoTrackRequest> | undefined): boolean;
87
+ }
30
88
  /**
31
89
  * @generated from message livekit.proto.CreateVideoTrackResponse
32
90
  */
33
- export type CreateVideoTrackResponse = Message<"livekit.proto.CreateVideoTrackResponse"> & {
91
+ declare class CreateVideoTrackResponse extends Message<CreateVideoTrackResponse> {
34
92
  /**
35
93
  * @generated from field: required livekit.proto.OwnedTrack track = 1;
36
94
  */
37
95
  track?: OwnedTrack;
38
- };
39
- /**
40
- * Describes the message livekit.proto.CreateVideoTrackResponse.
41
- * Use `create(CreateVideoTrackResponseSchema)` to create a new message.
42
- */
43
- export declare const CreateVideoTrackResponseSchema: GenMessage<CreateVideoTrackResponse>;
96
+ constructor(data?: PartialMessage<CreateVideoTrackResponse>);
97
+ static readonly runtime: typeof proto2;
98
+ static readonly typeName = "livekit.proto.CreateVideoTrackResponse";
99
+ static readonly fields: FieldList;
100
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateVideoTrackResponse;
101
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateVideoTrackResponse;
102
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateVideoTrackResponse;
103
+ static equals(a: CreateVideoTrackResponse | PlainMessage<CreateVideoTrackResponse> | undefined, b: CreateVideoTrackResponse | PlainMessage<CreateVideoTrackResponse> | undefined): boolean;
104
+ }
44
105
  /**
45
106
  * Create a new AudioTrack from a AudioSource
46
107
  *
47
108
  * @generated from message livekit.proto.CreateAudioTrackRequest
48
109
  */
49
- export type CreateAudioTrackRequest = Message<"livekit.proto.CreateAudioTrackRequest"> & {
110
+ declare class CreateAudioTrackRequest extends Message<CreateAudioTrackRequest> {
50
111
  /**
51
112
  * @generated from field: required string name = 1;
52
113
  */
53
- name: string;
114
+ name?: string;
54
115
  /**
55
116
  * @generated from field: required uint64 source_handle = 2;
56
117
  */
57
- sourceHandle: bigint;
58
- };
59
- /**
60
- * Describes the message livekit.proto.CreateAudioTrackRequest.
61
- * Use `create(CreateAudioTrackRequestSchema)` to create a new message.
62
- */
63
- export declare const CreateAudioTrackRequestSchema: GenMessage<CreateAudioTrackRequest>;
118
+ sourceHandle?: bigint;
119
+ constructor(data?: PartialMessage<CreateAudioTrackRequest>);
120
+ static readonly runtime: typeof proto2;
121
+ static readonly typeName = "livekit.proto.CreateAudioTrackRequest";
122
+ static readonly fields: FieldList;
123
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateAudioTrackRequest;
124
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateAudioTrackRequest;
125
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateAudioTrackRequest;
126
+ static equals(a: CreateAudioTrackRequest | PlainMessage<CreateAudioTrackRequest> | undefined, b: CreateAudioTrackRequest | PlainMessage<CreateAudioTrackRequest> | undefined): boolean;
127
+ }
64
128
  /**
65
129
  * @generated from message livekit.proto.CreateAudioTrackResponse
66
130
  */
67
- export type CreateAudioTrackResponse = Message<"livekit.proto.CreateAudioTrackResponse"> & {
131
+ declare class CreateAudioTrackResponse extends Message<CreateAudioTrackResponse> {
68
132
  /**
69
133
  * @generated from field: required livekit.proto.OwnedTrack track = 1;
70
134
  */
71
135
  track?: OwnedTrack;
72
- };
73
- /**
74
- * Describes the message livekit.proto.CreateAudioTrackResponse.
75
- * Use `create(CreateAudioTrackResponseSchema)` to create a new message.
76
- */
77
- export declare const CreateAudioTrackResponseSchema: GenMessage<CreateAudioTrackResponse>;
136
+ constructor(data?: PartialMessage<CreateAudioTrackResponse>);
137
+ static readonly runtime: typeof proto2;
138
+ static readonly typeName = "livekit.proto.CreateAudioTrackResponse";
139
+ static readonly fields: FieldList;
140
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CreateAudioTrackResponse;
141
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CreateAudioTrackResponse;
142
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CreateAudioTrackResponse;
143
+ static equals(a: CreateAudioTrackResponse | PlainMessage<CreateAudioTrackResponse> | undefined, b: CreateAudioTrackResponse | PlainMessage<CreateAudioTrackResponse> | undefined): boolean;
144
+ }
78
145
  /**
79
146
  * @generated from message livekit.proto.GetStatsRequest
80
147
  */
81
- export type GetStatsRequest = Message<"livekit.proto.GetStatsRequest"> & {
148
+ declare class GetStatsRequest extends Message<GetStatsRequest> {
82
149
  /**
83
150
  * @generated from field: required uint64 track_handle = 1;
84
151
  */
85
- trackHandle: bigint;
86
- };
87
- /**
88
- * Describes the message livekit.proto.GetStatsRequest.
89
- * Use `create(GetStatsRequestSchema)` to create a new message.
90
- */
91
- export declare const GetStatsRequestSchema: GenMessage<GetStatsRequest>;
152
+ trackHandle?: bigint;
153
+ constructor(data?: PartialMessage<GetStatsRequest>);
154
+ static readonly runtime: typeof proto2;
155
+ static readonly typeName = "livekit.proto.GetStatsRequest";
156
+ static readonly fields: FieldList;
157
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetStatsRequest;
158
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetStatsRequest;
159
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetStatsRequest;
160
+ static equals(a: GetStatsRequest | PlainMessage<GetStatsRequest> | undefined, b: GetStatsRequest | PlainMessage<GetStatsRequest> | undefined): boolean;
161
+ }
92
162
  /**
93
163
  * @generated from message livekit.proto.GetStatsResponse
94
164
  */
95
- export type GetStatsResponse = Message<"livekit.proto.GetStatsResponse"> & {
165
+ declare class GetStatsResponse extends Message<GetStatsResponse> {
96
166
  /**
97
167
  * @generated from field: required uint64 async_id = 1;
98
168
  */
99
- asyncId: bigint;
100
- };
101
- /**
102
- * Describes the message livekit.proto.GetStatsResponse.
103
- * Use `create(GetStatsResponseSchema)` to create a new message.
104
- */
105
- export declare const GetStatsResponseSchema: GenMessage<GetStatsResponse>;
169
+ asyncId?: bigint;
170
+ constructor(data?: PartialMessage<GetStatsResponse>);
171
+ static readonly runtime: typeof proto2;
172
+ static readonly typeName = "livekit.proto.GetStatsResponse";
173
+ static readonly fields: FieldList;
174
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetStatsResponse;
175
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetStatsResponse;
176
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetStatsResponse;
177
+ static equals(a: GetStatsResponse | PlainMessage<GetStatsResponse> | undefined, b: GetStatsResponse | PlainMessage<GetStatsResponse> | undefined): boolean;
178
+ }
106
179
  /**
107
180
  * @generated from message livekit.proto.GetStatsCallback
108
181
  */
109
- export type GetStatsCallback = Message<"livekit.proto.GetStatsCallback"> & {
182
+ declare class GetStatsCallback extends Message<GetStatsCallback> {
110
183
  /**
111
184
  * @generated from field: required uint64 async_id = 1;
112
185
  */
113
- asyncId: bigint;
186
+ asyncId?: bigint;
114
187
  /**
115
188
  * @generated from field: optional string error = 2;
116
189
  */
117
- error: string;
190
+ error?: string;
118
191
  /**
119
192
  * @generated from field: repeated livekit.proto.RtcStats stats = 3;
120
193
  */
121
194
  stats: RtcStats[];
122
- };
123
- /**
124
- * Describes the message livekit.proto.GetStatsCallback.
125
- * Use `create(GetStatsCallbackSchema)` to create a new message.
126
- */
127
- export declare const GetStatsCallbackSchema: GenMessage<GetStatsCallback>;
195
+ constructor(data?: PartialMessage<GetStatsCallback>);
196
+ static readonly runtime: typeof proto2;
197
+ static readonly typeName = "livekit.proto.GetStatsCallback";
198
+ static readonly fields: FieldList;
199
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetStatsCallback;
200
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetStatsCallback;
201
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetStatsCallback;
202
+ static equals(a: GetStatsCallback | PlainMessage<GetStatsCallback> | undefined, b: GetStatsCallback | PlainMessage<GetStatsCallback> | undefined): boolean;
203
+ }
128
204
  /**
129
205
  * @generated from message livekit.proto.TrackEvent
130
206
  */
131
- export type TrackEvent = Message<"livekit.proto.TrackEvent"> & {};
132
- /**
133
- * Describes the message livekit.proto.TrackEvent.
134
- * Use `create(TrackEventSchema)` to create a new message.
135
- */
136
- export declare const TrackEventSchema: GenMessage<TrackEvent>;
207
+ declare class TrackEvent extends Message<TrackEvent> {
208
+ constructor(data?: PartialMessage<TrackEvent>);
209
+ static readonly runtime: typeof proto2;
210
+ static readonly typeName = "livekit.proto.TrackEvent";
211
+ static readonly fields: FieldList;
212
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TrackEvent;
213
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TrackEvent;
214
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TrackEvent;
215
+ static equals(a: TrackEvent | PlainMessage<TrackEvent> | undefined, b: TrackEvent | PlainMessage<TrackEvent> | undefined): boolean;
216
+ }
137
217
  /**
138
218
  * @generated from message livekit.proto.TrackPublicationInfo
139
219
  */
140
- export type TrackPublicationInfo = Message<"livekit.proto.TrackPublicationInfo"> & {
220
+ declare class TrackPublicationInfo extends Message<TrackPublicationInfo> {
141
221
  /**
142
222
  * @generated from field: required string sid = 1;
143
223
  */
144
- sid: string;
224
+ sid?: string;
145
225
  /**
146
226
  * @generated from field: required string name = 2;
147
227
  */
148
- name: string;
228
+ name?: string;
149
229
  /**
150
230
  * @generated from field: required livekit.proto.TrackKind kind = 3;
151
231
  */
152
- kind: TrackKind;
232
+ kind?: TrackKind;
153
233
  /**
154
234
  * @generated from field: required livekit.proto.TrackSource source = 4;
155
235
  */
156
- source: TrackSource;
236
+ source?: TrackSource;
157
237
  /**
158
238
  * @generated from field: required bool simulcasted = 5;
159
239
  */
160
- simulcasted: boolean;
240
+ simulcasted?: boolean;
161
241
  /**
162
242
  * @generated from field: required uint32 width = 6;
163
243
  */
164
- width: number;
244
+ width?: number;
165
245
  /**
166
246
  * @generated from field: required uint32 height = 7;
167
247
  */
168
- height: number;
248
+ height?: number;
169
249
  /**
170
250
  * @generated from field: required string mime_type = 8;
171
251
  */
172
- mimeType: string;
252
+ mimeType?: string;
173
253
  /**
174
254
  * @generated from field: required bool muted = 9;
175
255
  */
176
- muted: boolean;
256
+ muted?: boolean;
177
257
  /**
178
258
  * @generated from field: required bool remote = 10;
179
259
  */
180
- remote: boolean;
260
+ remote?: boolean;
181
261
  /**
182
262
  * @generated from field: required livekit.proto.EncryptionType encryption_type = 11;
183
263
  */
184
- encryptionType: EncryptionType;
185
- };
186
- /**
187
- * Describes the message livekit.proto.TrackPublicationInfo.
188
- * Use `create(TrackPublicationInfoSchema)` to create a new message.
189
- */
190
- export declare const TrackPublicationInfoSchema: GenMessage<TrackPublicationInfo>;
264
+ encryptionType?: EncryptionType;
265
+ constructor(data?: PartialMessage<TrackPublicationInfo>);
266
+ static readonly runtime: typeof proto2;
267
+ static readonly typeName = "livekit.proto.TrackPublicationInfo";
268
+ static readonly fields: FieldList;
269
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TrackPublicationInfo;
270
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TrackPublicationInfo;
271
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TrackPublicationInfo;
272
+ static equals(a: TrackPublicationInfo | PlainMessage<TrackPublicationInfo> | undefined, b: TrackPublicationInfo | PlainMessage<TrackPublicationInfo> | undefined): boolean;
273
+ }
191
274
  /**
192
275
  * @generated from message livekit.proto.OwnedTrackPublication
193
276
  */
194
- export type OwnedTrackPublication = Message<"livekit.proto.OwnedTrackPublication"> & {
277
+ declare class OwnedTrackPublication extends Message<OwnedTrackPublication> {
195
278
  /**
196
279
  * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1;
197
280
  */
@@ -200,50 +283,56 @@ export type OwnedTrackPublication = Message<"livekit.proto.OwnedTrackPublication
200
283
  * @generated from field: required livekit.proto.TrackPublicationInfo info = 2;
201
284
  */
202
285
  info?: TrackPublicationInfo;
203
- };
204
- /**
205
- * Describes the message livekit.proto.OwnedTrackPublication.
206
- * Use `create(OwnedTrackPublicationSchema)` to create a new message.
207
- */
208
- export declare const OwnedTrackPublicationSchema: GenMessage<OwnedTrackPublication>;
286
+ constructor(data?: PartialMessage<OwnedTrackPublication>);
287
+ static readonly runtime: typeof proto2;
288
+ static readonly typeName = "livekit.proto.OwnedTrackPublication";
289
+ static readonly fields: FieldList;
290
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OwnedTrackPublication;
291
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OwnedTrackPublication;
292
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OwnedTrackPublication;
293
+ static equals(a: OwnedTrackPublication | PlainMessage<OwnedTrackPublication> | undefined, b: OwnedTrackPublication | PlainMessage<OwnedTrackPublication> | undefined): boolean;
294
+ }
209
295
  /**
210
296
  * @generated from message livekit.proto.TrackInfo
211
297
  */
212
- export type TrackInfo = Message<"livekit.proto.TrackInfo"> & {
298
+ declare class TrackInfo extends Message<TrackInfo> {
213
299
  /**
214
300
  * @generated from field: required string sid = 1;
215
301
  */
216
- sid: string;
302
+ sid?: string;
217
303
  /**
218
304
  * @generated from field: required string name = 2;
219
305
  */
220
- name: string;
306
+ name?: string;
221
307
  /**
222
308
  * @generated from field: required livekit.proto.TrackKind kind = 3;
223
309
  */
224
- kind: TrackKind;
310
+ kind?: TrackKind;
225
311
  /**
226
312
  * @generated from field: required livekit.proto.StreamState stream_state = 4;
227
313
  */
228
- streamState: StreamState;
314
+ streamState?: StreamState;
229
315
  /**
230
316
  * @generated from field: required bool muted = 5;
231
317
  */
232
- muted: boolean;
318
+ muted?: boolean;
233
319
  /**
234
320
  * @generated from field: required bool remote = 6;
235
321
  */
236
- remote: boolean;
237
- };
238
- /**
239
- * Describes the message livekit.proto.TrackInfo.
240
- * Use `create(TrackInfoSchema)` to create a new message.
241
- */
242
- export declare const TrackInfoSchema: GenMessage<TrackInfo>;
322
+ remote?: boolean;
323
+ constructor(data?: PartialMessage<TrackInfo>);
324
+ static readonly runtime: typeof proto2;
325
+ static readonly typeName = "livekit.proto.TrackInfo";
326
+ static readonly fields: FieldList;
327
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TrackInfo;
328
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TrackInfo;
329
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TrackInfo;
330
+ static equals(a: TrackInfo | PlainMessage<TrackInfo> | undefined, b: TrackInfo | PlainMessage<TrackInfo> | undefined): boolean;
331
+ }
243
332
  /**
244
333
  * @generated from message livekit.proto.OwnedTrack
245
334
  */
246
- export type OwnedTrack = Message<"livekit.proto.OwnedTrack"> & {
335
+ declare class OwnedTrack extends Message<OwnedTrack> {
247
336
  /**
248
337
  * @generated from field: required livekit.proto.FfiOwnedHandle handle = 1;
249
338
  */
@@ -252,149 +341,94 @@ export type OwnedTrack = Message<"livekit.proto.OwnedTrack"> & {
252
341
  * @generated from field: required livekit.proto.TrackInfo info = 2;
253
342
  */
254
343
  info?: TrackInfo;
255
- };
256
- /**
257
- * Describes the message livekit.proto.OwnedTrack.
258
- * Use `create(OwnedTrackSchema)` to create a new message.
259
- */
260
- export declare const OwnedTrackSchema: GenMessage<OwnedTrack>;
344
+ constructor(data?: PartialMessage<OwnedTrack>);
345
+ static readonly runtime: typeof proto2;
346
+ static readonly typeName = "livekit.proto.OwnedTrack";
347
+ static readonly fields: FieldList;
348
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OwnedTrack;
349
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OwnedTrack;
350
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OwnedTrack;
351
+ static equals(a: OwnedTrack | PlainMessage<OwnedTrack> | undefined, b: OwnedTrack | PlainMessage<OwnedTrack> | undefined): boolean;
352
+ }
261
353
  /**
262
354
  * Mute/UnMute a track
263
355
  *
264
356
  * @generated from message livekit.proto.LocalTrackMuteRequest
265
357
  */
266
- export type LocalTrackMuteRequest = Message<"livekit.proto.LocalTrackMuteRequest"> & {
358
+ declare class LocalTrackMuteRequest extends Message<LocalTrackMuteRequest> {
267
359
  /**
268
360
  * @generated from field: required uint64 track_handle = 1;
269
361
  */
270
- trackHandle: bigint;
362
+ trackHandle?: bigint;
271
363
  /**
272
364
  * @generated from field: required bool mute = 2;
273
365
  */
274
- mute: boolean;
275
- };
276
- /**
277
- * Describes the message livekit.proto.LocalTrackMuteRequest.
278
- * Use `create(LocalTrackMuteRequestSchema)` to create a new message.
279
- */
280
- export declare const LocalTrackMuteRequestSchema: GenMessage<LocalTrackMuteRequest>;
366
+ mute?: boolean;
367
+ constructor(data?: PartialMessage<LocalTrackMuteRequest>);
368
+ static readonly runtime: typeof proto2;
369
+ static readonly typeName = "livekit.proto.LocalTrackMuteRequest";
370
+ static readonly fields: FieldList;
371
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): LocalTrackMuteRequest;
372
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): LocalTrackMuteRequest;
373
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): LocalTrackMuteRequest;
374
+ static equals(a: LocalTrackMuteRequest | PlainMessage<LocalTrackMuteRequest> | undefined, b: LocalTrackMuteRequest | PlainMessage<LocalTrackMuteRequest> | undefined): boolean;
375
+ }
281
376
  /**
282
377
  * @generated from message livekit.proto.LocalTrackMuteResponse
283
378
  */
284
- export type LocalTrackMuteResponse = Message<"livekit.proto.LocalTrackMuteResponse"> & {
379
+ declare class LocalTrackMuteResponse extends Message<LocalTrackMuteResponse> {
285
380
  /**
286
381
  * @generated from field: required bool muted = 1;
287
382
  */
288
- muted: boolean;
289
- };
290
- /**
291
- * Describes the message livekit.proto.LocalTrackMuteResponse.
292
- * Use `create(LocalTrackMuteResponseSchema)` to create a new message.
293
- */
294
- export declare const LocalTrackMuteResponseSchema: GenMessage<LocalTrackMuteResponse>;
383
+ muted?: boolean;
384
+ constructor(data?: PartialMessage<LocalTrackMuteResponse>);
385
+ static readonly runtime: typeof proto2;
386
+ static readonly typeName = "livekit.proto.LocalTrackMuteResponse";
387
+ static readonly fields: FieldList;
388
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): LocalTrackMuteResponse;
389
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): LocalTrackMuteResponse;
390
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): LocalTrackMuteResponse;
391
+ static equals(a: LocalTrackMuteResponse | PlainMessage<LocalTrackMuteResponse> | undefined, b: LocalTrackMuteResponse | PlainMessage<LocalTrackMuteResponse> | undefined): boolean;
392
+ }
295
393
  /**
296
394
  * Enable/Disable a remote track
297
395
  *
298
396
  * @generated from message livekit.proto.EnableRemoteTrackRequest
299
397
  */
300
- export type EnableRemoteTrackRequest = Message<"livekit.proto.EnableRemoteTrackRequest"> & {
398
+ declare class EnableRemoteTrackRequest extends Message<EnableRemoteTrackRequest> {
301
399
  /**
302
400
  * @generated from field: required uint64 track_handle = 1;
303
401
  */
304
- trackHandle: bigint;
402
+ trackHandle?: bigint;
305
403
  /**
306
404
  * @generated from field: required bool enabled = 2;
307
405
  */
308
- enabled: boolean;
309
- };
310
- /**
311
- * Describes the message livekit.proto.EnableRemoteTrackRequest.
312
- * Use `create(EnableRemoteTrackRequestSchema)` to create a new message.
313
- */
314
- export declare const EnableRemoteTrackRequestSchema: GenMessage<EnableRemoteTrackRequest>;
406
+ enabled?: boolean;
407
+ constructor(data?: PartialMessage<EnableRemoteTrackRequest>);
408
+ static readonly runtime: typeof proto2;
409
+ static readonly typeName = "livekit.proto.EnableRemoteTrackRequest";
410
+ static readonly fields: FieldList;
411
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EnableRemoteTrackRequest;
412
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EnableRemoteTrackRequest;
413
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EnableRemoteTrackRequest;
414
+ static equals(a: EnableRemoteTrackRequest | PlainMessage<EnableRemoteTrackRequest> | undefined, b: EnableRemoteTrackRequest | PlainMessage<EnableRemoteTrackRequest> | undefined): boolean;
415
+ }
315
416
  /**
316
417
  * @generated from message livekit.proto.EnableRemoteTrackResponse
317
418
  */
318
- export type EnableRemoteTrackResponse = Message<"livekit.proto.EnableRemoteTrackResponse"> & {
419
+ declare class EnableRemoteTrackResponse extends Message<EnableRemoteTrackResponse> {
319
420
  /**
320
421
  * @generated from field: required bool enabled = 1;
321
422
  */
322
- enabled: boolean;
323
- };
324
- /**
325
- * Describes the message livekit.proto.EnableRemoteTrackResponse.
326
- * Use `create(EnableRemoteTrackResponseSchema)` to create a new message.
327
- */
328
- export declare const EnableRemoteTrackResponseSchema: GenMessage<EnableRemoteTrackResponse>;
329
- /**
330
- * @generated from enum livekit.proto.TrackKind
331
- */
332
- export declare enum TrackKind {
333
- /**
334
- * @generated from enum value: KIND_UNKNOWN = 0;
335
- */
336
- KIND_UNKNOWN = 0,
337
- /**
338
- * @generated from enum value: KIND_AUDIO = 1;
339
- */
340
- KIND_AUDIO = 1,
341
- /**
342
- * @generated from enum value: KIND_VIDEO = 2;
343
- */
344
- KIND_VIDEO = 2
423
+ enabled?: boolean;
424
+ constructor(data?: PartialMessage<EnableRemoteTrackResponse>);
425
+ static readonly runtime: typeof proto2;
426
+ static readonly typeName = "livekit.proto.EnableRemoteTrackResponse";
427
+ static readonly fields: FieldList;
428
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EnableRemoteTrackResponse;
429
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EnableRemoteTrackResponse;
430
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EnableRemoteTrackResponse;
431
+ static equals(a: EnableRemoteTrackResponse | PlainMessage<EnableRemoteTrackResponse> | undefined, b: EnableRemoteTrackResponse | PlainMessage<EnableRemoteTrackResponse> | undefined): boolean;
345
432
  }
346
- /**
347
- * Describes the enum livekit.proto.TrackKind.
348
- */
349
- export declare const TrackKindSchema: GenEnum<TrackKind>;
350
- /**
351
- * @generated from enum livekit.proto.TrackSource
352
- */
353
- export declare enum TrackSource {
354
- /**
355
- * @generated from enum value: SOURCE_UNKNOWN = 0;
356
- */
357
- SOURCE_UNKNOWN = 0,
358
- /**
359
- * @generated from enum value: SOURCE_CAMERA = 1;
360
- */
361
- SOURCE_CAMERA = 1,
362
- /**
363
- * @generated from enum value: SOURCE_MICROPHONE = 2;
364
- */
365
- SOURCE_MICROPHONE = 2,
366
- /**
367
- * @generated from enum value: SOURCE_SCREENSHARE = 3;
368
- */
369
- SOURCE_SCREENSHARE = 3,
370
- /**
371
- * @generated from enum value: SOURCE_SCREENSHARE_AUDIO = 4;
372
- */
373
- SOURCE_SCREENSHARE_AUDIO = 4
374
- }
375
- /**
376
- * Describes the enum livekit.proto.TrackSource.
377
- */
378
- export declare const TrackSourceSchema: GenEnum<TrackSource>;
379
- /**
380
- * @generated from enum livekit.proto.StreamState
381
- */
382
- export declare enum StreamState {
383
- /**
384
- * @generated from enum value: STATE_UNKNOWN = 0;
385
- */
386
- STATE_UNKNOWN = 0,
387
- /**
388
- * @generated from enum value: STATE_ACTIVE = 1;
389
- */
390
- STATE_ACTIVE = 1,
391
- /**
392
- * @generated from enum value: STATE_PAUSED = 2;
393
- */
394
- STATE_PAUSED = 2
395
- }
396
- /**
397
- * Describes the enum livekit.proto.StreamState.
398
- */
399
- export declare const StreamStateSchema: GenEnum<StreamState>;
400
- //# sourceMappingURL=track_pb.d.ts.map
433
+
434
+ export { CreateAudioTrackRequest, CreateAudioTrackResponse, CreateVideoTrackRequest, CreateVideoTrackResponse, EnableRemoteTrackRequest, EnableRemoteTrackResponse, GetStatsCallback, GetStatsRequest, GetStatsResponse, LocalTrackMuteRequest, LocalTrackMuteResponse, OwnedTrack, OwnedTrackPublication, StreamState, TrackEvent, TrackInfo, TrackKind, TrackPublicationInfo, TrackSource };