@livekit/rtc-node 0.12.2 → 0.13.1

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 +5 -6
  32. package/dist/e2ee.d.ts +5 -6
  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 +60 -36
  54. package/dist/participant.cjs.map +1 -1
  55. package/dist/participant.d.cts +11 -11
  56. package/dist/participant.d.ts +11 -11
  57. package/dist/participant.d.ts.map +1 -1
  58. package/dist/participant.js +78 -52
  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 +85 -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 +85 -123
  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 +41 -42
  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 +102 -73
  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 +137 -189
  211. package/src/rpc.ts +1 -1
  212. package/src/track.ts +16 -17
  213. package/src/track_publication.ts +25 -26
  214. package/src/version.ts +1 -1
  215. package/src/video_frame.ts +48 -72
  216. package/src/video_source.ts +11 -8
  217. package/src/video_stream.ts +18 -8
@@ -1,378 +1,498 @@
1
- import { GenFile, GenMessage, GenEnum } from '@bufbuild/protobuf/codegenv1';
2
- import { Message } from '@bufbuild/protobuf';
1
+ import { Message, PartialMessage, proto2, FieldList, BinaryReadOptions, JsonValue, JsonReadOptions, PlainMessage } from '@bufbuild/protobuf';
3
2
 
4
3
  /**
5
- * Describes the file e2ee.proto.
4
+ * @generated from enum livekit.proto.EncryptionType
5
+ */
6
+ declare enum EncryptionType {
7
+ /**
8
+ * @generated from enum value: NONE = 0;
9
+ */
10
+ NONE = 0,
11
+ /**
12
+ * @generated from enum value: GCM = 1;
13
+ */
14
+ GCM = 1,
15
+ /**
16
+ * @generated from enum value: CUSTOM = 2;
17
+ */
18
+ CUSTOM = 2
19
+ }
20
+ /**
21
+ * @generated from enum livekit.proto.EncryptionState
6
22
  */
7
- declare const file_e2ee: GenFile;
23
+ declare enum EncryptionState {
24
+ /**
25
+ * @generated from enum value: NEW = 0;
26
+ */
27
+ NEW = 0,
28
+ /**
29
+ * @generated from enum value: OK = 1;
30
+ */
31
+ OK = 1,
32
+ /**
33
+ * @generated from enum value: ENCRYPTION_FAILED = 2;
34
+ */
35
+ ENCRYPTION_FAILED = 2,
36
+ /**
37
+ * @generated from enum value: DECRYPTION_FAILED = 3;
38
+ */
39
+ DECRYPTION_FAILED = 3,
40
+ /**
41
+ * @generated from enum value: MISSING_KEY = 4;
42
+ */
43
+ MISSING_KEY = 4,
44
+ /**
45
+ * @generated from enum value: KEY_RATCHETED = 5;
46
+ */
47
+ KEY_RATCHETED = 5,
48
+ /**
49
+ * @generated from enum value: INTERNAL_ERROR = 6;
50
+ */
51
+ INTERNAL_ERROR = 6
52
+ }
8
53
  /**
9
54
  * @generated from message livekit.proto.FrameCryptor
10
55
  */
11
- type FrameCryptor = Message<"livekit.proto.FrameCryptor"> & {
56
+ declare class FrameCryptor extends Message<FrameCryptor> {
12
57
  /**
13
58
  * @generated from field: required string participant_identity = 1;
14
59
  */
15
- participantIdentity: string;
60
+ participantIdentity?: string;
16
61
  /**
17
62
  * @generated from field: required string track_sid = 2;
18
63
  */
19
- trackSid: string;
64
+ trackSid?: string;
20
65
  /**
21
66
  * @generated from field: required int32 key_index = 3;
22
67
  */
23
- keyIndex: number;
68
+ keyIndex?: number;
24
69
  /**
25
70
  * @generated from field: required bool enabled = 4;
26
71
  */
27
- enabled: boolean;
28
- };
29
- /**
30
- * Describes the message livekit.proto.FrameCryptor.
31
- * Use `create(FrameCryptorSchema)` to create a new message.
32
- */
33
- declare const FrameCryptorSchema: GenMessage<FrameCryptor>;
72
+ enabled?: boolean;
73
+ constructor(data?: PartialMessage<FrameCryptor>);
74
+ static readonly runtime: typeof proto2;
75
+ static readonly typeName = "livekit.proto.FrameCryptor";
76
+ static readonly fields: FieldList;
77
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FrameCryptor;
78
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FrameCryptor;
79
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FrameCryptor;
80
+ static equals(a: FrameCryptor | PlainMessage<FrameCryptor> | undefined, b: FrameCryptor | PlainMessage<FrameCryptor> | undefined): boolean;
81
+ }
34
82
  /**
35
83
  * @generated from message livekit.proto.KeyProviderOptions
36
84
  */
37
- type KeyProviderOptions = Message<"livekit.proto.KeyProviderOptions"> & {
85
+ declare class KeyProviderOptions extends Message<KeyProviderOptions> {
38
86
  /**
39
87
  * Only specify if you want to use a shared_key
40
88
  *
41
89
  * @generated from field: optional bytes shared_key = 1;
42
90
  */
43
- sharedKey: Uint8Array;
91
+ sharedKey?: Uint8Array;
44
92
  /**
45
93
  * @generated from field: required int32 ratchet_window_size = 2;
46
94
  */
47
- ratchetWindowSize: number;
95
+ ratchetWindowSize?: number;
48
96
  /**
49
97
  * @generated from field: required bytes ratchet_salt = 3;
50
98
  */
51
- ratchetSalt: Uint8Array;
99
+ ratchetSalt?: Uint8Array;
52
100
  /**
53
101
  * -1 = no tolerance
54
102
  *
55
103
  * @generated from field: required int32 failure_tolerance = 4;
56
104
  */
57
- failureTolerance: number;
58
- };
59
- /**
60
- * Describes the message livekit.proto.KeyProviderOptions.
61
- * Use `create(KeyProviderOptionsSchema)` to create a new message.
62
- */
63
- declare const KeyProviderOptionsSchema: GenMessage<KeyProviderOptions>;
105
+ failureTolerance?: number;
106
+ constructor(data?: PartialMessage<KeyProviderOptions>);
107
+ static readonly runtime: typeof proto2;
108
+ static readonly typeName = "livekit.proto.KeyProviderOptions";
109
+ static readonly fields: FieldList;
110
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): KeyProviderOptions;
111
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): KeyProviderOptions;
112
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): KeyProviderOptions;
113
+ static equals(a: KeyProviderOptions | PlainMessage<KeyProviderOptions> | undefined, b: KeyProviderOptions | PlainMessage<KeyProviderOptions> | undefined): boolean;
114
+ }
64
115
  /**
65
116
  * @generated from message livekit.proto.E2eeOptions
66
117
  */
67
- type E2eeOptions = Message<"livekit.proto.E2eeOptions"> & {
118
+ declare class E2eeOptions extends Message<E2eeOptions> {
68
119
  /**
69
120
  * @generated from field: required livekit.proto.EncryptionType encryption_type = 1;
70
121
  */
71
- encryptionType: EncryptionType;
122
+ encryptionType?: EncryptionType;
72
123
  /**
73
124
  * @generated from field: required livekit.proto.KeyProviderOptions key_provider_options = 2;
74
125
  */
75
126
  keyProviderOptions?: KeyProviderOptions;
76
- };
77
- /**
78
- * Describes the message livekit.proto.E2eeOptions.
79
- * Use `create(E2eeOptionsSchema)` to create a new message.
80
- */
81
- declare const E2eeOptionsSchema: GenMessage<E2eeOptions>;
127
+ constructor(data?: PartialMessage<E2eeOptions>);
128
+ static readonly runtime: typeof proto2;
129
+ static readonly typeName = "livekit.proto.E2eeOptions";
130
+ static readonly fields: FieldList;
131
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): E2eeOptions;
132
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): E2eeOptions;
133
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): E2eeOptions;
134
+ static equals(a: E2eeOptions | PlainMessage<E2eeOptions> | undefined, b: E2eeOptions | PlainMessage<E2eeOptions> | undefined): boolean;
135
+ }
82
136
  /**
83
137
  * @generated from message livekit.proto.E2eeManagerSetEnabledRequest
84
138
  */
85
- type E2eeManagerSetEnabledRequest = Message<"livekit.proto.E2eeManagerSetEnabledRequest"> & {
139
+ declare class E2eeManagerSetEnabledRequest extends Message<E2eeManagerSetEnabledRequest> {
86
140
  /**
87
141
  * @generated from field: required bool enabled = 1;
88
142
  */
89
- enabled: boolean;
90
- };
91
- /**
92
- * Describes the message livekit.proto.E2eeManagerSetEnabledRequest.
93
- * Use `create(E2eeManagerSetEnabledRequestSchema)` to create a new message.
94
- */
95
- declare const E2eeManagerSetEnabledRequestSchema: GenMessage<E2eeManagerSetEnabledRequest>;
143
+ enabled?: boolean;
144
+ constructor(data?: PartialMessage<E2eeManagerSetEnabledRequest>);
145
+ static readonly runtime: typeof proto2;
146
+ static readonly typeName = "livekit.proto.E2eeManagerSetEnabledRequest";
147
+ static readonly fields: FieldList;
148
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): E2eeManagerSetEnabledRequest;
149
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): E2eeManagerSetEnabledRequest;
150
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): E2eeManagerSetEnabledRequest;
151
+ static equals(a: E2eeManagerSetEnabledRequest | PlainMessage<E2eeManagerSetEnabledRequest> | undefined, b: E2eeManagerSetEnabledRequest | PlainMessage<E2eeManagerSetEnabledRequest> | undefined): boolean;
152
+ }
96
153
  /**
97
154
  * @generated from message livekit.proto.E2eeManagerSetEnabledResponse
98
155
  */
99
- type E2eeManagerSetEnabledResponse = Message<"livekit.proto.E2eeManagerSetEnabledResponse"> & {};
100
- /**
101
- * Describes the message livekit.proto.E2eeManagerSetEnabledResponse.
102
- * Use `create(E2eeManagerSetEnabledResponseSchema)` to create a new message.
103
- */
104
- declare const E2eeManagerSetEnabledResponseSchema: GenMessage<E2eeManagerSetEnabledResponse>;
156
+ declare class E2eeManagerSetEnabledResponse extends Message<E2eeManagerSetEnabledResponse> {
157
+ constructor(data?: PartialMessage<E2eeManagerSetEnabledResponse>);
158
+ static readonly runtime: typeof proto2;
159
+ static readonly typeName = "livekit.proto.E2eeManagerSetEnabledResponse";
160
+ static readonly fields: FieldList;
161
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): E2eeManagerSetEnabledResponse;
162
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): E2eeManagerSetEnabledResponse;
163
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): E2eeManagerSetEnabledResponse;
164
+ static equals(a: E2eeManagerSetEnabledResponse | PlainMessage<E2eeManagerSetEnabledResponse> | undefined, b: E2eeManagerSetEnabledResponse | PlainMessage<E2eeManagerSetEnabledResponse> | undefined): boolean;
165
+ }
105
166
  /**
106
167
  * @generated from message livekit.proto.E2eeManagerGetFrameCryptorsRequest
107
168
  */
108
- type E2eeManagerGetFrameCryptorsRequest = Message<"livekit.proto.E2eeManagerGetFrameCryptorsRequest"> & {};
109
- /**
110
- * Describes the message livekit.proto.E2eeManagerGetFrameCryptorsRequest.
111
- * Use `create(E2eeManagerGetFrameCryptorsRequestSchema)` to create a new message.
112
- */
113
- declare const E2eeManagerGetFrameCryptorsRequestSchema: GenMessage<E2eeManagerGetFrameCryptorsRequest>;
169
+ declare class E2eeManagerGetFrameCryptorsRequest extends Message<E2eeManagerGetFrameCryptorsRequest> {
170
+ constructor(data?: PartialMessage<E2eeManagerGetFrameCryptorsRequest>);
171
+ static readonly runtime: typeof proto2;
172
+ static readonly typeName = "livekit.proto.E2eeManagerGetFrameCryptorsRequest";
173
+ static readonly fields: FieldList;
174
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): E2eeManagerGetFrameCryptorsRequest;
175
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): E2eeManagerGetFrameCryptorsRequest;
176
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): E2eeManagerGetFrameCryptorsRequest;
177
+ static equals(a: E2eeManagerGetFrameCryptorsRequest | PlainMessage<E2eeManagerGetFrameCryptorsRequest> | undefined, b: E2eeManagerGetFrameCryptorsRequest | PlainMessage<E2eeManagerGetFrameCryptorsRequest> | undefined): boolean;
178
+ }
114
179
  /**
115
180
  * @generated from message livekit.proto.E2eeManagerGetFrameCryptorsResponse
116
181
  */
117
- type E2eeManagerGetFrameCryptorsResponse = Message<"livekit.proto.E2eeManagerGetFrameCryptorsResponse"> & {
182
+ declare class E2eeManagerGetFrameCryptorsResponse extends Message<E2eeManagerGetFrameCryptorsResponse> {
118
183
  /**
119
184
  * @generated from field: repeated livekit.proto.FrameCryptor frame_cryptors = 1;
120
185
  */
121
186
  frameCryptors: FrameCryptor[];
122
- };
123
- /**
124
- * Describes the message livekit.proto.E2eeManagerGetFrameCryptorsResponse.
125
- * Use `create(E2eeManagerGetFrameCryptorsResponseSchema)` to create a new message.
126
- */
127
- declare const E2eeManagerGetFrameCryptorsResponseSchema: GenMessage<E2eeManagerGetFrameCryptorsResponse>;
187
+ constructor(data?: PartialMessage<E2eeManagerGetFrameCryptorsResponse>);
188
+ static readonly runtime: typeof proto2;
189
+ static readonly typeName = "livekit.proto.E2eeManagerGetFrameCryptorsResponse";
190
+ static readonly fields: FieldList;
191
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): E2eeManagerGetFrameCryptorsResponse;
192
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): E2eeManagerGetFrameCryptorsResponse;
193
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): E2eeManagerGetFrameCryptorsResponse;
194
+ static equals(a: E2eeManagerGetFrameCryptorsResponse | PlainMessage<E2eeManagerGetFrameCryptorsResponse> | undefined, b: E2eeManagerGetFrameCryptorsResponse | PlainMessage<E2eeManagerGetFrameCryptorsResponse> | undefined): boolean;
195
+ }
128
196
  /**
129
197
  * @generated from message livekit.proto.FrameCryptorSetEnabledRequest
130
198
  */
131
- type FrameCryptorSetEnabledRequest = Message<"livekit.proto.FrameCryptorSetEnabledRequest"> & {
199
+ declare class FrameCryptorSetEnabledRequest extends Message<FrameCryptorSetEnabledRequest> {
132
200
  /**
133
201
  * @generated from field: required string participant_identity = 1;
134
202
  */
135
- participantIdentity: string;
203
+ participantIdentity?: string;
136
204
  /**
137
205
  * @generated from field: required string track_sid = 2;
138
206
  */
139
- trackSid: string;
207
+ trackSid?: string;
140
208
  /**
141
209
  * @generated from field: required bool enabled = 3;
142
210
  */
143
- enabled: boolean;
144
- };
145
- /**
146
- * Describes the message livekit.proto.FrameCryptorSetEnabledRequest.
147
- * Use `create(FrameCryptorSetEnabledRequestSchema)` to create a new message.
148
- */
149
- declare const FrameCryptorSetEnabledRequestSchema: GenMessage<FrameCryptorSetEnabledRequest>;
211
+ enabled?: boolean;
212
+ constructor(data?: PartialMessage<FrameCryptorSetEnabledRequest>);
213
+ static readonly runtime: typeof proto2;
214
+ static readonly typeName = "livekit.proto.FrameCryptorSetEnabledRequest";
215
+ static readonly fields: FieldList;
216
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FrameCryptorSetEnabledRequest;
217
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FrameCryptorSetEnabledRequest;
218
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FrameCryptorSetEnabledRequest;
219
+ static equals(a: FrameCryptorSetEnabledRequest | PlainMessage<FrameCryptorSetEnabledRequest> | undefined, b: FrameCryptorSetEnabledRequest | PlainMessage<FrameCryptorSetEnabledRequest> | undefined): boolean;
220
+ }
150
221
  /**
151
222
  * @generated from message livekit.proto.FrameCryptorSetEnabledResponse
152
223
  */
153
- type FrameCryptorSetEnabledResponse = Message<"livekit.proto.FrameCryptorSetEnabledResponse"> & {};
154
- /**
155
- * Describes the message livekit.proto.FrameCryptorSetEnabledResponse.
156
- * Use `create(FrameCryptorSetEnabledResponseSchema)` to create a new message.
157
- */
158
- declare const FrameCryptorSetEnabledResponseSchema: GenMessage<FrameCryptorSetEnabledResponse>;
224
+ declare class FrameCryptorSetEnabledResponse extends Message<FrameCryptorSetEnabledResponse> {
225
+ constructor(data?: PartialMessage<FrameCryptorSetEnabledResponse>);
226
+ static readonly runtime: typeof proto2;
227
+ static readonly typeName = "livekit.proto.FrameCryptorSetEnabledResponse";
228
+ static readonly fields: FieldList;
229
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FrameCryptorSetEnabledResponse;
230
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FrameCryptorSetEnabledResponse;
231
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FrameCryptorSetEnabledResponse;
232
+ static equals(a: FrameCryptorSetEnabledResponse | PlainMessage<FrameCryptorSetEnabledResponse> | undefined, b: FrameCryptorSetEnabledResponse | PlainMessage<FrameCryptorSetEnabledResponse> | undefined): boolean;
233
+ }
159
234
  /**
160
235
  * @generated from message livekit.proto.FrameCryptorSetKeyIndexRequest
161
236
  */
162
- type FrameCryptorSetKeyIndexRequest = Message<"livekit.proto.FrameCryptorSetKeyIndexRequest"> & {
237
+ declare class FrameCryptorSetKeyIndexRequest extends Message<FrameCryptorSetKeyIndexRequest> {
163
238
  /**
164
239
  * @generated from field: required string participant_identity = 1;
165
240
  */
166
- participantIdentity: string;
241
+ participantIdentity?: string;
167
242
  /**
168
243
  * @generated from field: required string track_sid = 2;
169
244
  */
170
- trackSid: string;
245
+ trackSid?: string;
171
246
  /**
172
247
  * @generated from field: required int32 key_index = 3;
173
248
  */
174
- keyIndex: number;
175
- };
176
- /**
177
- * Describes the message livekit.proto.FrameCryptorSetKeyIndexRequest.
178
- * Use `create(FrameCryptorSetKeyIndexRequestSchema)` to create a new message.
179
- */
180
- declare const FrameCryptorSetKeyIndexRequestSchema: GenMessage<FrameCryptorSetKeyIndexRequest>;
249
+ keyIndex?: number;
250
+ constructor(data?: PartialMessage<FrameCryptorSetKeyIndexRequest>);
251
+ static readonly runtime: typeof proto2;
252
+ static readonly typeName = "livekit.proto.FrameCryptorSetKeyIndexRequest";
253
+ static readonly fields: FieldList;
254
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FrameCryptorSetKeyIndexRequest;
255
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FrameCryptorSetKeyIndexRequest;
256
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FrameCryptorSetKeyIndexRequest;
257
+ static equals(a: FrameCryptorSetKeyIndexRequest | PlainMessage<FrameCryptorSetKeyIndexRequest> | undefined, b: FrameCryptorSetKeyIndexRequest | PlainMessage<FrameCryptorSetKeyIndexRequest> | undefined): boolean;
258
+ }
181
259
  /**
182
260
  * @generated from message livekit.proto.FrameCryptorSetKeyIndexResponse
183
261
  */
184
- type FrameCryptorSetKeyIndexResponse = Message<"livekit.proto.FrameCryptorSetKeyIndexResponse"> & {};
185
- /**
186
- * Describes the message livekit.proto.FrameCryptorSetKeyIndexResponse.
187
- * Use `create(FrameCryptorSetKeyIndexResponseSchema)` to create a new message.
188
- */
189
- declare const FrameCryptorSetKeyIndexResponseSchema: GenMessage<FrameCryptorSetKeyIndexResponse>;
262
+ declare class FrameCryptorSetKeyIndexResponse extends Message<FrameCryptorSetKeyIndexResponse> {
263
+ constructor(data?: PartialMessage<FrameCryptorSetKeyIndexResponse>);
264
+ static readonly runtime: typeof proto2;
265
+ static readonly typeName = "livekit.proto.FrameCryptorSetKeyIndexResponse";
266
+ static readonly fields: FieldList;
267
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FrameCryptorSetKeyIndexResponse;
268
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FrameCryptorSetKeyIndexResponse;
269
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FrameCryptorSetKeyIndexResponse;
270
+ static equals(a: FrameCryptorSetKeyIndexResponse | PlainMessage<FrameCryptorSetKeyIndexResponse> | undefined, b: FrameCryptorSetKeyIndexResponse | PlainMessage<FrameCryptorSetKeyIndexResponse> | undefined): boolean;
271
+ }
190
272
  /**
191
273
  * @generated from message livekit.proto.SetSharedKeyRequest
192
274
  */
193
- type SetSharedKeyRequest = Message<"livekit.proto.SetSharedKeyRequest"> & {
275
+ declare class SetSharedKeyRequest extends Message<SetSharedKeyRequest> {
194
276
  /**
195
277
  * @generated from field: required bytes shared_key = 1;
196
278
  */
197
- sharedKey: Uint8Array;
279
+ sharedKey?: Uint8Array;
198
280
  /**
199
281
  * @generated from field: required int32 key_index = 2;
200
282
  */
201
- keyIndex: number;
202
- };
203
- /**
204
- * Describes the message livekit.proto.SetSharedKeyRequest.
205
- * Use `create(SetSharedKeyRequestSchema)` to create a new message.
206
- */
207
- declare const SetSharedKeyRequestSchema: GenMessage<SetSharedKeyRequest>;
283
+ keyIndex?: number;
284
+ constructor(data?: PartialMessage<SetSharedKeyRequest>);
285
+ static readonly runtime: typeof proto2;
286
+ static readonly typeName = "livekit.proto.SetSharedKeyRequest";
287
+ static readonly fields: FieldList;
288
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SetSharedKeyRequest;
289
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SetSharedKeyRequest;
290
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SetSharedKeyRequest;
291
+ static equals(a: SetSharedKeyRequest | PlainMessage<SetSharedKeyRequest> | undefined, b: SetSharedKeyRequest | PlainMessage<SetSharedKeyRequest> | undefined): boolean;
292
+ }
208
293
  /**
209
294
  * @generated from message livekit.proto.SetSharedKeyResponse
210
295
  */
211
- type SetSharedKeyResponse = Message<"livekit.proto.SetSharedKeyResponse"> & {};
212
- /**
213
- * Describes the message livekit.proto.SetSharedKeyResponse.
214
- * Use `create(SetSharedKeyResponseSchema)` to create a new message.
215
- */
216
- declare const SetSharedKeyResponseSchema: GenMessage<SetSharedKeyResponse>;
296
+ declare class SetSharedKeyResponse extends Message<SetSharedKeyResponse> {
297
+ constructor(data?: PartialMessage<SetSharedKeyResponse>);
298
+ static readonly runtime: typeof proto2;
299
+ static readonly typeName = "livekit.proto.SetSharedKeyResponse";
300
+ static readonly fields: FieldList;
301
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SetSharedKeyResponse;
302
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SetSharedKeyResponse;
303
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SetSharedKeyResponse;
304
+ static equals(a: SetSharedKeyResponse | PlainMessage<SetSharedKeyResponse> | undefined, b: SetSharedKeyResponse | PlainMessage<SetSharedKeyResponse> | undefined): boolean;
305
+ }
217
306
  /**
218
307
  * @generated from message livekit.proto.RatchetSharedKeyRequest
219
308
  */
220
- type RatchetSharedKeyRequest = Message<"livekit.proto.RatchetSharedKeyRequest"> & {
309
+ declare class RatchetSharedKeyRequest extends Message<RatchetSharedKeyRequest> {
221
310
  /**
222
311
  * @generated from field: required int32 key_index = 1;
223
312
  */
224
- keyIndex: number;
225
- };
226
- /**
227
- * Describes the message livekit.proto.RatchetSharedKeyRequest.
228
- * Use `create(RatchetSharedKeyRequestSchema)` to create a new message.
229
- */
230
- declare const RatchetSharedKeyRequestSchema: GenMessage<RatchetSharedKeyRequest>;
313
+ keyIndex?: number;
314
+ constructor(data?: PartialMessage<RatchetSharedKeyRequest>);
315
+ static readonly runtime: typeof proto2;
316
+ static readonly typeName = "livekit.proto.RatchetSharedKeyRequest";
317
+ static readonly fields: FieldList;
318
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RatchetSharedKeyRequest;
319
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RatchetSharedKeyRequest;
320
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RatchetSharedKeyRequest;
321
+ static equals(a: RatchetSharedKeyRequest | PlainMessage<RatchetSharedKeyRequest> | undefined, b: RatchetSharedKeyRequest | PlainMessage<RatchetSharedKeyRequest> | undefined): boolean;
322
+ }
231
323
  /**
232
324
  * @generated from message livekit.proto.RatchetSharedKeyResponse
233
325
  */
234
- type RatchetSharedKeyResponse = Message<"livekit.proto.RatchetSharedKeyResponse"> & {
326
+ declare class RatchetSharedKeyResponse extends Message<RatchetSharedKeyResponse> {
235
327
  /**
236
328
  * @generated from field: optional bytes new_key = 1;
237
329
  */
238
- newKey: Uint8Array;
239
- };
240
- /**
241
- * Describes the message livekit.proto.RatchetSharedKeyResponse.
242
- * Use `create(RatchetSharedKeyResponseSchema)` to create a new message.
243
- */
244
- declare const RatchetSharedKeyResponseSchema: GenMessage<RatchetSharedKeyResponse>;
330
+ newKey?: Uint8Array;
331
+ constructor(data?: PartialMessage<RatchetSharedKeyResponse>);
332
+ static readonly runtime: typeof proto2;
333
+ static readonly typeName = "livekit.proto.RatchetSharedKeyResponse";
334
+ static readonly fields: FieldList;
335
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RatchetSharedKeyResponse;
336
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RatchetSharedKeyResponse;
337
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RatchetSharedKeyResponse;
338
+ static equals(a: RatchetSharedKeyResponse | PlainMessage<RatchetSharedKeyResponse> | undefined, b: RatchetSharedKeyResponse | PlainMessage<RatchetSharedKeyResponse> | undefined): boolean;
339
+ }
245
340
  /**
246
341
  * @generated from message livekit.proto.GetSharedKeyRequest
247
342
  */
248
- type GetSharedKeyRequest = Message<"livekit.proto.GetSharedKeyRequest"> & {
343
+ declare class GetSharedKeyRequest extends Message<GetSharedKeyRequest> {
249
344
  /**
250
345
  * @generated from field: required int32 key_index = 1;
251
346
  */
252
- keyIndex: number;
253
- };
254
- /**
255
- * Describes the message livekit.proto.GetSharedKeyRequest.
256
- * Use `create(GetSharedKeyRequestSchema)` to create a new message.
257
- */
258
- declare const GetSharedKeyRequestSchema: GenMessage<GetSharedKeyRequest>;
347
+ keyIndex?: number;
348
+ constructor(data?: PartialMessage<GetSharedKeyRequest>);
349
+ static readonly runtime: typeof proto2;
350
+ static readonly typeName = "livekit.proto.GetSharedKeyRequest";
351
+ static readonly fields: FieldList;
352
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetSharedKeyRequest;
353
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetSharedKeyRequest;
354
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetSharedKeyRequest;
355
+ static equals(a: GetSharedKeyRequest | PlainMessage<GetSharedKeyRequest> | undefined, b: GetSharedKeyRequest | PlainMessage<GetSharedKeyRequest> | undefined): boolean;
356
+ }
259
357
  /**
260
358
  * @generated from message livekit.proto.GetSharedKeyResponse
261
359
  */
262
- type GetSharedKeyResponse = Message<"livekit.proto.GetSharedKeyResponse"> & {
360
+ declare class GetSharedKeyResponse extends Message<GetSharedKeyResponse> {
263
361
  /**
264
362
  * @generated from field: optional bytes key = 1;
265
363
  */
266
- key: Uint8Array;
267
- };
268
- /**
269
- * Describes the message livekit.proto.GetSharedKeyResponse.
270
- * Use `create(GetSharedKeyResponseSchema)` to create a new message.
271
- */
272
- declare const GetSharedKeyResponseSchema: GenMessage<GetSharedKeyResponse>;
364
+ key?: Uint8Array;
365
+ constructor(data?: PartialMessage<GetSharedKeyResponse>);
366
+ static readonly runtime: typeof proto2;
367
+ static readonly typeName = "livekit.proto.GetSharedKeyResponse";
368
+ static readonly fields: FieldList;
369
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetSharedKeyResponse;
370
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetSharedKeyResponse;
371
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetSharedKeyResponse;
372
+ static equals(a: GetSharedKeyResponse | PlainMessage<GetSharedKeyResponse> | undefined, b: GetSharedKeyResponse | PlainMessage<GetSharedKeyResponse> | undefined): boolean;
373
+ }
273
374
  /**
274
375
  * @generated from message livekit.proto.SetKeyRequest
275
376
  */
276
- type SetKeyRequest = Message<"livekit.proto.SetKeyRequest"> & {
377
+ declare class SetKeyRequest extends Message<SetKeyRequest> {
277
378
  /**
278
379
  * @generated from field: required string participant_identity = 1;
279
380
  */
280
- participantIdentity: string;
381
+ participantIdentity?: string;
281
382
  /**
282
383
  * @generated from field: required bytes key = 2;
283
384
  */
284
- key: Uint8Array;
385
+ key?: Uint8Array;
285
386
  /**
286
387
  * @generated from field: required int32 key_index = 3;
287
388
  */
288
- keyIndex: number;
289
- };
290
- /**
291
- * Describes the message livekit.proto.SetKeyRequest.
292
- * Use `create(SetKeyRequestSchema)` to create a new message.
293
- */
294
- declare const SetKeyRequestSchema: GenMessage<SetKeyRequest>;
389
+ keyIndex?: number;
390
+ constructor(data?: PartialMessage<SetKeyRequest>);
391
+ static readonly runtime: typeof proto2;
392
+ static readonly typeName = "livekit.proto.SetKeyRequest";
393
+ static readonly fields: FieldList;
394
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SetKeyRequest;
395
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SetKeyRequest;
396
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SetKeyRequest;
397
+ static equals(a: SetKeyRequest | PlainMessage<SetKeyRequest> | undefined, b: SetKeyRequest | PlainMessage<SetKeyRequest> | undefined): boolean;
398
+ }
295
399
  /**
296
400
  * @generated from message livekit.proto.SetKeyResponse
297
401
  */
298
- type SetKeyResponse = Message<"livekit.proto.SetKeyResponse"> & {};
299
- /**
300
- * Describes the message livekit.proto.SetKeyResponse.
301
- * Use `create(SetKeyResponseSchema)` to create a new message.
302
- */
303
- declare const SetKeyResponseSchema: GenMessage<SetKeyResponse>;
402
+ declare class SetKeyResponse extends Message<SetKeyResponse> {
403
+ constructor(data?: PartialMessage<SetKeyResponse>);
404
+ static readonly runtime: typeof proto2;
405
+ static readonly typeName = "livekit.proto.SetKeyResponse";
406
+ static readonly fields: FieldList;
407
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SetKeyResponse;
408
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SetKeyResponse;
409
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SetKeyResponse;
410
+ static equals(a: SetKeyResponse | PlainMessage<SetKeyResponse> | undefined, b: SetKeyResponse | PlainMessage<SetKeyResponse> | undefined): boolean;
411
+ }
304
412
  /**
305
413
  * @generated from message livekit.proto.RatchetKeyRequest
306
414
  */
307
- type RatchetKeyRequest = Message<"livekit.proto.RatchetKeyRequest"> & {
415
+ declare class RatchetKeyRequest extends Message<RatchetKeyRequest> {
308
416
  /**
309
417
  * @generated from field: required string participant_identity = 1;
310
418
  */
311
- participantIdentity: string;
419
+ participantIdentity?: string;
312
420
  /**
313
421
  * @generated from field: required int32 key_index = 2;
314
422
  */
315
- keyIndex: number;
316
- };
317
- /**
318
- * Describes the message livekit.proto.RatchetKeyRequest.
319
- * Use `create(RatchetKeyRequestSchema)` to create a new message.
320
- */
321
- declare const RatchetKeyRequestSchema: GenMessage<RatchetKeyRequest>;
423
+ keyIndex?: number;
424
+ constructor(data?: PartialMessage<RatchetKeyRequest>);
425
+ static readonly runtime: typeof proto2;
426
+ static readonly typeName = "livekit.proto.RatchetKeyRequest";
427
+ static readonly fields: FieldList;
428
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RatchetKeyRequest;
429
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RatchetKeyRequest;
430
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RatchetKeyRequest;
431
+ static equals(a: RatchetKeyRequest | PlainMessage<RatchetKeyRequest> | undefined, b: RatchetKeyRequest | PlainMessage<RatchetKeyRequest> | undefined): boolean;
432
+ }
322
433
  /**
323
434
  * @generated from message livekit.proto.RatchetKeyResponse
324
435
  */
325
- type RatchetKeyResponse = Message<"livekit.proto.RatchetKeyResponse"> & {
436
+ declare class RatchetKeyResponse extends Message<RatchetKeyResponse> {
326
437
  /**
327
438
  * @generated from field: optional bytes new_key = 1;
328
439
  */
329
- newKey: Uint8Array;
330
- };
331
- /**
332
- * Describes the message livekit.proto.RatchetKeyResponse.
333
- * Use `create(RatchetKeyResponseSchema)` to create a new message.
334
- */
335
- declare const RatchetKeyResponseSchema: GenMessage<RatchetKeyResponse>;
440
+ newKey?: Uint8Array;
441
+ constructor(data?: PartialMessage<RatchetKeyResponse>);
442
+ static readonly runtime: typeof proto2;
443
+ static readonly typeName = "livekit.proto.RatchetKeyResponse";
444
+ static readonly fields: FieldList;
445
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RatchetKeyResponse;
446
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RatchetKeyResponse;
447
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RatchetKeyResponse;
448
+ static equals(a: RatchetKeyResponse | PlainMessage<RatchetKeyResponse> | undefined, b: RatchetKeyResponse | PlainMessage<RatchetKeyResponse> | undefined): boolean;
449
+ }
336
450
  /**
337
451
  * @generated from message livekit.proto.GetKeyRequest
338
452
  */
339
- type GetKeyRequest = Message<"livekit.proto.GetKeyRequest"> & {
453
+ declare class GetKeyRequest extends Message<GetKeyRequest> {
340
454
  /**
341
455
  * @generated from field: required string participant_identity = 1;
342
456
  */
343
- participantIdentity: string;
457
+ participantIdentity?: string;
344
458
  /**
345
459
  * @generated from field: required int32 key_index = 2;
346
460
  */
347
- keyIndex: number;
348
- };
349
- /**
350
- * Describes the message livekit.proto.GetKeyRequest.
351
- * Use `create(GetKeyRequestSchema)` to create a new message.
352
- */
353
- declare const GetKeyRequestSchema: GenMessage<GetKeyRequest>;
461
+ keyIndex?: number;
462
+ constructor(data?: PartialMessage<GetKeyRequest>);
463
+ static readonly runtime: typeof proto2;
464
+ static readonly typeName = "livekit.proto.GetKeyRequest";
465
+ static readonly fields: FieldList;
466
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetKeyRequest;
467
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetKeyRequest;
468
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetKeyRequest;
469
+ static equals(a: GetKeyRequest | PlainMessage<GetKeyRequest> | undefined, b: GetKeyRequest | PlainMessage<GetKeyRequest> | undefined): boolean;
470
+ }
354
471
  /**
355
472
  * @generated from message livekit.proto.GetKeyResponse
356
473
  */
357
- type GetKeyResponse = Message<"livekit.proto.GetKeyResponse"> & {
474
+ declare class GetKeyResponse extends Message<GetKeyResponse> {
358
475
  /**
359
476
  * @generated from field: optional bytes key = 1;
360
477
  */
361
- key: Uint8Array;
362
- };
363
- /**
364
- * Describes the message livekit.proto.GetKeyResponse.
365
- * Use `create(GetKeyResponseSchema)` to create a new message.
366
- */
367
- declare const GetKeyResponseSchema: GenMessage<GetKeyResponse>;
478
+ key?: Uint8Array;
479
+ constructor(data?: PartialMessage<GetKeyResponse>);
480
+ static readonly runtime: typeof proto2;
481
+ static readonly typeName = "livekit.proto.GetKeyResponse";
482
+ static readonly fields: FieldList;
483
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetKeyResponse;
484
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetKeyResponse;
485
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetKeyResponse;
486
+ static equals(a: GetKeyResponse | PlainMessage<GetKeyResponse> | undefined, b: GetKeyResponse | PlainMessage<GetKeyResponse> | undefined): boolean;
487
+ }
368
488
  /**
369
489
  * @generated from message livekit.proto.E2eeRequest
370
490
  */
371
- type E2eeRequest = Message<"livekit.proto.E2eeRequest"> & {
491
+ declare class E2eeRequest extends Message<E2eeRequest> {
372
492
  /**
373
493
  * @generated from field: required uint64 room_handle = 1;
374
494
  */
375
- roomHandle: bigint;
495
+ roomHandle?: bigint;
376
496
  /**
377
497
  * @generated from oneof livekit.proto.E2eeRequest.message
378
498
  */
@@ -440,16 +560,19 @@ type E2eeRequest = Message<"livekit.proto.E2eeRequest"> & {
440
560
  case: undefined;
441
561
  value?: undefined;
442
562
  };
443
- };
444
- /**
445
- * Describes the message livekit.proto.E2eeRequest.
446
- * Use `create(E2eeRequestSchema)` to create a new message.
447
- */
448
- declare const E2eeRequestSchema: GenMessage<E2eeRequest>;
563
+ constructor(data?: PartialMessage<E2eeRequest>);
564
+ static readonly runtime: typeof proto2;
565
+ static readonly typeName = "livekit.proto.E2eeRequest";
566
+ static readonly fields: FieldList;
567
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): E2eeRequest;
568
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): E2eeRequest;
569
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): E2eeRequest;
570
+ static equals(a: E2eeRequest | PlainMessage<E2eeRequest> | undefined, b: E2eeRequest | PlainMessage<E2eeRequest> | undefined): boolean;
571
+ }
449
572
  /**
450
573
  * @generated from message livekit.proto.E2eeResponse
451
574
  */
452
- type E2eeResponse = Message<"livekit.proto.E2eeResponse"> & {
575
+ declare class E2eeResponse extends Message<E2eeResponse> {
453
576
  /**
454
577
  * @generated from oneof livekit.proto.E2eeResponse.message
455
578
  */
@@ -517,69 +640,14 @@ type E2eeResponse = Message<"livekit.proto.E2eeResponse"> & {
517
640
  case: undefined;
518
641
  value?: undefined;
519
642
  };
520
- };
521
- /**
522
- * Describes the message livekit.proto.E2eeResponse.
523
- * Use `create(E2eeResponseSchema)` to create a new message.
524
- */
525
- declare const E2eeResponseSchema: GenMessage<E2eeResponse>;
526
- /**
527
- * @generated from enum livekit.proto.EncryptionType
528
- */
529
- declare enum EncryptionType {
530
- /**
531
- * @generated from enum value: NONE = 0;
532
- */
533
- NONE = 0,
534
- /**
535
- * @generated from enum value: GCM = 1;
536
- */
537
- GCM = 1,
538
- /**
539
- * @generated from enum value: CUSTOM = 2;
540
- */
541
- CUSTOM = 2
643
+ constructor(data?: PartialMessage<E2eeResponse>);
644
+ static readonly runtime: typeof proto2;
645
+ static readonly typeName = "livekit.proto.E2eeResponse";
646
+ static readonly fields: FieldList;
647
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): E2eeResponse;
648
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): E2eeResponse;
649
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): E2eeResponse;
650
+ static equals(a: E2eeResponse | PlainMessage<E2eeResponse> | undefined, b: E2eeResponse | PlainMessage<E2eeResponse> | undefined): boolean;
542
651
  }
543
- /**
544
- * Describes the enum livekit.proto.EncryptionType.
545
- */
546
- declare const EncryptionTypeSchema: GenEnum<EncryptionType>;
547
- /**
548
- * @generated from enum livekit.proto.EncryptionState
549
- */
550
- declare enum EncryptionState {
551
- /**
552
- * @generated from enum value: NEW = 0;
553
- */
554
- NEW = 0,
555
- /**
556
- * @generated from enum value: OK = 1;
557
- */
558
- OK = 1,
559
- /**
560
- * @generated from enum value: ENCRYPTION_FAILED = 2;
561
- */
562
- ENCRYPTION_FAILED = 2,
563
- /**
564
- * @generated from enum value: DECRYPTION_FAILED = 3;
565
- */
566
- DECRYPTION_FAILED = 3,
567
- /**
568
- * @generated from enum value: MISSING_KEY = 4;
569
- */
570
- MISSING_KEY = 4,
571
- /**
572
- * @generated from enum value: KEY_RATCHETED = 5;
573
- */
574
- KEY_RATCHETED = 5,
575
- /**
576
- * @generated from enum value: INTERNAL_ERROR = 6;
577
- */
578
- INTERNAL_ERROR = 6
579
- }
580
- /**
581
- * Describes the enum livekit.proto.EncryptionState.
582
- */
583
- declare const EncryptionStateSchema: GenEnum<EncryptionState>;
584
652
 
585
- export { type E2eeManagerGetFrameCryptorsRequest, E2eeManagerGetFrameCryptorsRequestSchema, type E2eeManagerGetFrameCryptorsResponse, E2eeManagerGetFrameCryptorsResponseSchema, type E2eeManagerSetEnabledRequest, E2eeManagerSetEnabledRequestSchema, type E2eeManagerSetEnabledResponse, E2eeManagerSetEnabledResponseSchema, type E2eeOptions, E2eeOptionsSchema, type E2eeRequest, E2eeRequestSchema, type E2eeResponse, E2eeResponseSchema, EncryptionState, EncryptionStateSchema, EncryptionType, EncryptionTypeSchema, type FrameCryptor, FrameCryptorSchema, type FrameCryptorSetEnabledRequest, FrameCryptorSetEnabledRequestSchema, type FrameCryptorSetEnabledResponse, FrameCryptorSetEnabledResponseSchema, type FrameCryptorSetKeyIndexRequest, FrameCryptorSetKeyIndexRequestSchema, type FrameCryptorSetKeyIndexResponse, FrameCryptorSetKeyIndexResponseSchema, type GetKeyRequest, GetKeyRequestSchema, type GetKeyResponse, GetKeyResponseSchema, type GetSharedKeyRequest, GetSharedKeyRequestSchema, type GetSharedKeyResponse, GetSharedKeyResponseSchema, type KeyProviderOptions, KeyProviderOptionsSchema, type RatchetKeyRequest, RatchetKeyRequestSchema, type RatchetKeyResponse, RatchetKeyResponseSchema, type RatchetSharedKeyRequest, RatchetSharedKeyRequestSchema, type RatchetSharedKeyResponse, RatchetSharedKeyResponseSchema, type SetKeyRequest, SetKeyRequestSchema, type SetKeyResponse, SetKeyResponseSchema, type SetSharedKeyRequest, SetSharedKeyRequestSchema, type SetSharedKeyResponse, SetSharedKeyResponseSchema, file_e2ee };
653
+ export { E2eeManagerGetFrameCryptorsRequest, E2eeManagerGetFrameCryptorsResponse, E2eeManagerSetEnabledRequest, E2eeManagerSetEnabledResponse, E2eeOptions, E2eeRequest, E2eeResponse, EncryptionState, EncryptionType, FrameCryptor, FrameCryptorSetEnabledRequest, FrameCryptorSetEnabledResponse, FrameCryptorSetKeyIndexRequest, FrameCryptorSetKeyIndexResponse, GetKeyRequest, GetKeyResponse, GetSharedKeyRequest, GetSharedKeyResponse, KeyProviderOptions, RatchetKeyRequest, RatchetKeyResponse, RatchetSharedKeyRequest, RatchetSharedKeyResponse, SetKeyRequest, SetKeyResponse, SetSharedKeyRequest, SetSharedKeyResponse };