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