@livekit/rtc-node 0.0.2 → 0.0.4
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.
- package/Cargo.toml +21 -0
- package/build.rs +5 -0
- package/dist/audio_frame.d.ts +14 -0
- package/dist/audio_frame.d.ts.map +1 -0
- package/dist/audio_frame.js +36 -0
- package/dist/audio_frame.js.map +1 -0
- package/dist/audio_source.d.ts +14 -0
- package/dist/audio_source.d.ts.map +1 -0
- package/dist/audio_source.js +42 -0
- package/dist/audio_source.js.map +1 -0
- package/dist/audio_stream.d.ts +24 -0
- package/dist/audio_stream.d.ts.map +1 -0
- package/dist/audio_stream.js +54 -0
- package/dist/audio_stream.js.map +1 -0
- package/dist/e2ee.d.ts +44 -0
- package/dist/e2ee.d.ts.map +1 -0
- package/dist/e2ee.js +232 -0
- package/dist/e2ee.js.map +1 -0
- package/dist/ffi_client.d.ts +23 -0
- package/dist/ffi_client.d.ts.map +1 -0
- package/dist/ffi_client.js +57 -0
- package/dist/ffi_client.js.map +1 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +71 -0
- package/dist/index.js.map +1 -0
- package/dist/native.d.ts +14 -0
- package/dist/native.d.ts.map +1 -0
- package/dist/native.js +297 -0
- package/dist/native.js.map +1 -0
- package/dist/participant.d.ts +30 -0
- package/dist/participant.d.ts.map +1 -0
- package/dist/participant.js +120 -0
- package/dist/participant.js.map +1 -0
- package/dist/proto/audio_frame_pb.d.ts +556 -0
- package/dist/proto/audio_frame_pb.d.ts.map +1 -0
- package/dist/proto/audio_frame_pb.js +861 -0
- package/dist/proto/audio_frame_pb.js.map +1 -0
- package/dist/proto/e2ee_pb.d.ts +652 -0
- package/dist/proto/e2ee_pb.d.ts.map +1 -0
- package/dist/proto/e2ee_pb.js +906 -0
- package/dist/proto/e2ee_pb.js.map +1 -0
- package/dist/proto/ffi_pb.d.ts +672 -0
- package/dist/proto/ffi_pb.d.ts.map +1 -0
- package/dist/proto/ffi_pb.js +459 -0
- package/dist/proto/ffi_pb.js.map +1 -0
- package/dist/proto/handle_pb.d.ts +30 -0
- package/dist/proto/handle_pb.d.ts.map +1 -0
- package/dist/proto/handle_pb.js +59 -0
- package/dist/proto/handle_pb.js.map +1 -0
- package/dist/proto/participant_pb.d.ts +54 -0
- package/dist/proto/participant_pb.d.ts.map +1 -0
- package/dist/proto/participant_pb.js +93 -0
- package/dist/proto/participant_pb.js.map +1 -0
- package/dist/proto/room_pb.d.ts +1480 -0
- package/dist/proto/room_pb.d.ts.map +1 -0
- package/dist/proto/room_pb.js +2172 -0
- package/dist/proto/room_pb.js.map +1 -0
- package/dist/proto/stats_pb.d.ts +1713 -0
- package/dist/proto/stats_pb.d.ts.map +1 -0
- package/dist/proto/stats_pb.js +2238 -0
- package/dist/proto/stats_pb.js.map +1 -0
- package/dist/proto/track_pb.d.ts +353 -0
- package/dist/proto/track_pb.d.ts.map +1 -0
- package/dist/proto/track_pb.js +550 -0
- package/dist/proto/track_pb.js.map +1 -0
- package/dist/proto/video_frame_pb.d.ts +855 -0
- package/dist/proto/video_frame_pb.d.ts.map +1 -0
- package/dist/proto/video_frame_pb.js +1214 -0
- package/dist/proto/video_frame_pb.js.map +1 -0
- package/dist/room.d.ts +95 -0
- package/dist/room.d.ts.map +1 -0
- package/dist/room.js +285 -0
- package/dist/room.js.map +1 -0
- package/dist/track.d.ts +35 -0
- package/dist/track.d.ts.map +1 -0
- package/dist/track.js +72 -0
- package/dist/track.js.map +1 -0
- package/dist/track_publication.d.ts +31 -0
- package/dist/track_publication.d.ts.map +1 -0
- package/dist/track_publication.js +66 -0
- package/dist/track_publication.js.map +1 -0
- package/dist/video_frame.d.ts +111 -0
- package/dist/video_frame.d.ts.map +1 -0
- package/dist/video_frame.js +364 -0
- package/dist/video_frame.js.map +1 -0
- package/dist/video_source.d.ts +14 -0
- package/dist/video_source.d.ts.map +1 -0
- package/dist/video_source.js +44 -0
- package/dist/video_source.js.map +1 -0
- package/dist/video_stream.d.ts +24 -0
- package/dist/video_stream.d.ts.map +1 -0
- package/dist/video_stream.js +56 -0
- package/dist/video_stream.js.map +1 -0
- package/package.json +19 -14
- package/src/audio_frame.ts +45 -0
- package/src/audio_source.ts +64 -0
- package/src/audio_stream.ts +74 -0
- package/src/e2ee.ts +311 -0
- package/src/ffi_client.ts +68 -0
- package/src/index.ts +52 -0
- package/src/lib.rs +5 -0
- package/src/native.d.ts +14 -0
- package/src/native.js +269 -0
- package/src/nodejs.rs +115 -0
- package/src/participant.ts +171 -0
- package/src/proto/audio_frame_pb.ts +1121 -0
- package/src/proto/e2ee_pb.ts +1231 -0
- package/src/proto/ffi_pb.ts +969 -0
- package/src/proto/handle_pb.ts +69 -0
- package/src/proto/participant_pb.ts +121 -0
- package/src/proto/room_pb.ts +2843 -0
- package/src/proto/stats_pb.ts +2955 -0
- package/src/proto/track_pb.ts +683 -0
- package/src/proto/video_frame_pb.ts +1568 -0
- package/src/room.ts +370 -0
- package/src/track.ts +101 -0
- package/src/track_publication.ts +90 -0
- package/src/video_frame.ts +620 -0
- package/src/video_source.ts +61 -0
- package/src/video_stream.ts +76 -0
|
@@ -0,0 +1,906 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright 2023 LiveKit, Inc.
|
|
3
|
+
//
|
|
4
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
+
// you may not use this file except in compliance with the License.
|
|
6
|
+
// You may obtain a copy of the License at
|
|
7
|
+
//
|
|
8
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
+
//
|
|
10
|
+
// Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
// See the License for the specific language governing permissions and
|
|
14
|
+
// limitations under the License.
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.E2eeResponse = exports.E2eeRequest = exports.GetKeyResponse = exports.GetKeyRequest = exports.RatchetKeyResponse = exports.RatchetKeyRequest = exports.SetKeyResponse = exports.SetKeyRequest = exports.GetSharedKeyResponse = exports.GetSharedKeyRequest = exports.RatchetSharedKeyResponse = exports.RatchetSharedKeyRequest = exports.SetSharedKeyResponse = exports.SetSharedKeyRequest = exports.FrameCryptorSetKeyIndexResponse = exports.FrameCryptorSetKeyIndexRequest = exports.FrameCryptorSetEnabledResponse = exports.FrameCryptorSetEnabledRequest = exports.E2eeManagerGetFrameCryptorsResponse = exports.E2eeManagerGetFrameCryptorsRequest = exports.E2eeManagerSetEnabledResponse = exports.E2eeManagerSetEnabledRequest = exports.E2eeOptions = exports.KeyProviderOptions = exports.FrameCryptor = exports.EncryptionState = exports.EncryptionType = void 0;
|
|
17
|
+
const protobuf_1 = require("@bufbuild/protobuf");
|
|
18
|
+
/**
|
|
19
|
+
* @generated from enum livekit.proto.EncryptionType
|
|
20
|
+
*/
|
|
21
|
+
var EncryptionType;
|
|
22
|
+
(function (EncryptionType) {
|
|
23
|
+
/**
|
|
24
|
+
* @generated from enum value: NONE = 0;
|
|
25
|
+
*/
|
|
26
|
+
EncryptionType[EncryptionType["NONE"] = 0] = "NONE";
|
|
27
|
+
/**
|
|
28
|
+
* @generated from enum value: GCM = 1;
|
|
29
|
+
*/
|
|
30
|
+
EncryptionType[EncryptionType["GCM"] = 1] = "GCM";
|
|
31
|
+
/**
|
|
32
|
+
* @generated from enum value: CUSTOM = 2;
|
|
33
|
+
*/
|
|
34
|
+
EncryptionType[EncryptionType["CUSTOM"] = 2] = "CUSTOM";
|
|
35
|
+
})(EncryptionType || (exports.EncryptionType = EncryptionType = {}));
|
|
36
|
+
// Retrieve enum metadata with: proto3.getEnumType(EncryptionType)
|
|
37
|
+
protobuf_1.proto3.util.setEnumType(EncryptionType, "livekit.proto.EncryptionType", [
|
|
38
|
+
{ no: 0, name: "NONE" },
|
|
39
|
+
{ no: 1, name: "GCM" },
|
|
40
|
+
{ no: 2, name: "CUSTOM" },
|
|
41
|
+
]);
|
|
42
|
+
/**
|
|
43
|
+
* @generated from enum livekit.proto.EncryptionState
|
|
44
|
+
*/
|
|
45
|
+
var EncryptionState;
|
|
46
|
+
(function (EncryptionState) {
|
|
47
|
+
/**
|
|
48
|
+
* @generated from enum value: NEW = 0;
|
|
49
|
+
*/
|
|
50
|
+
EncryptionState[EncryptionState["NEW"] = 0] = "NEW";
|
|
51
|
+
/**
|
|
52
|
+
* @generated from enum value: OK = 1;
|
|
53
|
+
*/
|
|
54
|
+
EncryptionState[EncryptionState["OK"] = 1] = "OK";
|
|
55
|
+
/**
|
|
56
|
+
* @generated from enum value: ENCRYPTION_FAILED = 2;
|
|
57
|
+
*/
|
|
58
|
+
EncryptionState[EncryptionState["ENCRYPTION_FAILED"] = 2] = "ENCRYPTION_FAILED";
|
|
59
|
+
/**
|
|
60
|
+
* @generated from enum value: DECRYPTION_FAILED = 3;
|
|
61
|
+
*/
|
|
62
|
+
EncryptionState[EncryptionState["DECRYPTION_FAILED"] = 3] = "DECRYPTION_FAILED";
|
|
63
|
+
/**
|
|
64
|
+
* @generated from enum value: MISSING_KEY = 4;
|
|
65
|
+
*/
|
|
66
|
+
EncryptionState[EncryptionState["MISSING_KEY"] = 4] = "MISSING_KEY";
|
|
67
|
+
/**
|
|
68
|
+
* @generated from enum value: KEY_RATCHETED = 5;
|
|
69
|
+
*/
|
|
70
|
+
EncryptionState[EncryptionState["KEY_RATCHETED"] = 5] = "KEY_RATCHETED";
|
|
71
|
+
/**
|
|
72
|
+
* @generated from enum value: INTERNAL_ERROR = 6;
|
|
73
|
+
*/
|
|
74
|
+
EncryptionState[EncryptionState["INTERNAL_ERROR"] = 6] = "INTERNAL_ERROR";
|
|
75
|
+
})(EncryptionState || (exports.EncryptionState = EncryptionState = {}));
|
|
76
|
+
// Retrieve enum metadata with: proto3.getEnumType(EncryptionState)
|
|
77
|
+
protobuf_1.proto3.util.setEnumType(EncryptionState, "livekit.proto.EncryptionState", [
|
|
78
|
+
{ no: 0, name: "NEW" },
|
|
79
|
+
{ no: 1, name: "OK" },
|
|
80
|
+
{ no: 2, name: "ENCRYPTION_FAILED" },
|
|
81
|
+
{ no: 3, name: "DECRYPTION_FAILED" },
|
|
82
|
+
{ no: 4, name: "MISSING_KEY" },
|
|
83
|
+
{ no: 5, name: "KEY_RATCHETED" },
|
|
84
|
+
{ no: 6, name: "INTERNAL_ERROR" },
|
|
85
|
+
]);
|
|
86
|
+
/**
|
|
87
|
+
* @generated from message livekit.proto.FrameCryptor
|
|
88
|
+
*/
|
|
89
|
+
class FrameCryptor extends protobuf_1.Message {
|
|
90
|
+
constructor(data) {
|
|
91
|
+
super();
|
|
92
|
+
/**
|
|
93
|
+
* @generated from field: string participant_identity = 1;
|
|
94
|
+
*/
|
|
95
|
+
this.participantIdentity = "";
|
|
96
|
+
/**
|
|
97
|
+
* @generated from field: string track_sid = 2;
|
|
98
|
+
*/
|
|
99
|
+
this.trackSid = "";
|
|
100
|
+
/**
|
|
101
|
+
* @generated from field: int32 key_index = 3;
|
|
102
|
+
*/
|
|
103
|
+
this.keyIndex = 0;
|
|
104
|
+
/**
|
|
105
|
+
* @generated from field: bool enabled = 4;
|
|
106
|
+
*/
|
|
107
|
+
this.enabled = false;
|
|
108
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
109
|
+
}
|
|
110
|
+
static fromBinary(bytes, options) {
|
|
111
|
+
return new FrameCryptor().fromBinary(bytes, options);
|
|
112
|
+
}
|
|
113
|
+
static fromJson(jsonValue, options) {
|
|
114
|
+
return new FrameCryptor().fromJson(jsonValue, options);
|
|
115
|
+
}
|
|
116
|
+
static fromJsonString(jsonString, options) {
|
|
117
|
+
return new FrameCryptor().fromJsonString(jsonString, options);
|
|
118
|
+
}
|
|
119
|
+
static equals(a, b) {
|
|
120
|
+
return protobuf_1.proto3.util.equals(FrameCryptor, a, b);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
exports.FrameCryptor = FrameCryptor;
|
|
124
|
+
FrameCryptor.runtime = protobuf_1.proto3;
|
|
125
|
+
FrameCryptor.typeName = "livekit.proto.FrameCryptor";
|
|
126
|
+
FrameCryptor.fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
127
|
+
{ no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
128
|
+
{ no: 2, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
129
|
+
{ no: 3, name: "key_index", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
130
|
+
{ no: 4, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
131
|
+
]);
|
|
132
|
+
/**
|
|
133
|
+
* @generated from message livekit.proto.KeyProviderOptions
|
|
134
|
+
*/
|
|
135
|
+
class KeyProviderOptions extends protobuf_1.Message {
|
|
136
|
+
constructor(data) {
|
|
137
|
+
super();
|
|
138
|
+
/**
|
|
139
|
+
* @generated from field: int32 ratchet_window_size = 2;
|
|
140
|
+
*/
|
|
141
|
+
this.ratchetWindowSize = 0;
|
|
142
|
+
/**
|
|
143
|
+
* @generated from field: bytes ratchet_salt = 3;
|
|
144
|
+
*/
|
|
145
|
+
this.ratchetSalt = new Uint8Array(0);
|
|
146
|
+
/**
|
|
147
|
+
* -1 = no tolerence
|
|
148
|
+
*
|
|
149
|
+
* @generated from field: int32 failure_tolerance = 4;
|
|
150
|
+
*/
|
|
151
|
+
this.failureTolerance = 0;
|
|
152
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
153
|
+
}
|
|
154
|
+
static fromBinary(bytes, options) {
|
|
155
|
+
return new KeyProviderOptions().fromBinary(bytes, options);
|
|
156
|
+
}
|
|
157
|
+
static fromJson(jsonValue, options) {
|
|
158
|
+
return new KeyProviderOptions().fromJson(jsonValue, options);
|
|
159
|
+
}
|
|
160
|
+
static fromJsonString(jsonString, options) {
|
|
161
|
+
return new KeyProviderOptions().fromJsonString(jsonString, options);
|
|
162
|
+
}
|
|
163
|
+
static equals(a, b) {
|
|
164
|
+
return protobuf_1.proto3.util.equals(KeyProviderOptions, a, b);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
exports.KeyProviderOptions = KeyProviderOptions;
|
|
168
|
+
KeyProviderOptions.runtime = protobuf_1.proto3;
|
|
169
|
+
KeyProviderOptions.typeName = "livekit.proto.KeyProviderOptions";
|
|
170
|
+
KeyProviderOptions.fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
171
|
+
{ no: 1, name: "shared_key", kind: "scalar", T: 12 /* ScalarType.BYTES */, opt: true },
|
|
172
|
+
{ no: 2, name: "ratchet_window_size", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
173
|
+
{ no: 3, name: "ratchet_salt", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
|
174
|
+
{ no: 4, name: "failure_tolerance", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
175
|
+
]);
|
|
176
|
+
/**
|
|
177
|
+
* @generated from message livekit.proto.E2eeOptions
|
|
178
|
+
*/
|
|
179
|
+
class E2eeOptions extends protobuf_1.Message {
|
|
180
|
+
constructor(data) {
|
|
181
|
+
super();
|
|
182
|
+
/**
|
|
183
|
+
* @generated from field: livekit.proto.EncryptionType encryption_type = 1;
|
|
184
|
+
*/
|
|
185
|
+
this.encryptionType = EncryptionType.NONE;
|
|
186
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
187
|
+
}
|
|
188
|
+
static fromBinary(bytes, options) {
|
|
189
|
+
return new E2eeOptions().fromBinary(bytes, options);
|
|
190
|
+
}
|
|
191
|
+
static fromJson(jsonValue, options) {
|
|
192
|
+
return new E2eeOptions().fromJson(jsonValue, options);
|
|
193
|
+
}
|
|
194
|
+
static fromJsonString(jsonString, options) {
|
|
195
|
+
return new E2eeOptions().fromJsonString(jsonString, options);
|
|
196
|
+
}
|
|
197
|
+
static equals(a, b) {
|
|
198
|
+
return protobuf_1.proto3.util.equals(E2eeOptions, a, b);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
exports.E2eeOptions = E2eeOptions;
|
|
202
|
+
E2eeOptions.runtime = protobuf_1.proto3;
|
|
203
|
+
E2eeOptions.typeName = "livekit.proto.E2eeOptions";
|
|
204
|
+
E2eeOptions.fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
205
|
+
{ no: 1, name: "encryption_type", kind: "enum", T: protobuf_1.proto3.getEnumType(EncryptionType) },
|
|
206
|
+
{ no: 2, name: "key_provider_options", kind: "message", T: KeyProviderOptions },
|
|
207
|
+
]);
|
|
208
|
+
/**
|
|
209
|
+
* @generated from message livekit.proto.E2eeManagerSetEnabledRequest
|
|
210
|
+
*/
|
|
211
|
+
class E2eeManagerSetEnabledRequest extends protobuf_1.Message {
|
|
212
|
+
constructor(data) {
|
|
213
|
+
super();
|
|
214
|
+
/**
|
|
215
|
+
* @generated from field: bool enabled = 1;
|
|
216
|
+
*/
|
|
217
|
+
this.enabled = false;
|
|
218
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
219
|
+
}
|
|
220
|
+
static fromBinary(bytes, options) {
|
|
221
|
+
return new E2eeManagerSetEnabledRequest().fromBinary(bytes, options);
|
|
222
|
+
}
|
|
223
|
+
static fromJson(jsonValue, options) {
|
|
224
|
+
return new E2eeManagerSetEnabledRequest().fromJson(jsonValue, options);
|
|
225
|
+
}
|
|
226
|
+
static fromJsonString(jsonString, options) {
|
|
227
|
+
return new E2eeManagerSetEnabledRequest().fromJsonString(jsonString, options);
|
|
228
|
+
}
|
|
229
|
+
static equals(a, b) {
|
|
230
|
+
return protobuf_1.proto3.util.equals(E2eeManagerSetEnabledRequest, a, b);
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
exports.E2eeManagerSetEnabledRequest = E2eeManagerSetEnabledRequest;
|
|
234
|
+
E2eeManagerSetEnabledRequest.runtime = protobuf_1.proto3;
|
|
235
|
+
E2eeManagerSetEnabledRequest.typeName = "livekit.proto.E2eeManagerSetEnabledRequest";
|
|
236
|
+
E2eeManagerSetEnabledRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
237
|
+
{ no: 1, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
238
|
+
]);
|
|
239
|
+
/**
|
|
240
|
+
* @generated from message livekit.proto.E2eeManagerSetEnabledResponse
|
|
241
|
+
*/
|
|
242
|
+
class E2eeManagerSetEnabledResponse extends protobuf_1.Message {
|
|
243
|
+
constructor(data) {
|
|
244
|
+
super();
|
|
245
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
246
|
+
}
|
|
247
|
+
static fromBinary(bytes, options) {
|
|
248
|
+
return new E2eeManagerSetEnabledResponse().fromBinary(bytes, options);
|
|
249
|
+
}
|
|
250
|
+
static fromJson(jsonValue, options) {
|
|
251
|
+
return new E2eeManagerSetEnabledResponse().fromJson(jsonValue, options);
|
|
252
|
+
}
|
|
253
|
+
static fromJsonString(jsonString, options) {
|
|
254
|
+
return new E2eeManagerSetEnabledResponse().fromJsonString(jsonString, options);
|
|
255
|
+
}
|
|
256
|
+
static equals(a, b) {
|
|
257
|
+
return protobuf_1.proto3.util.equals(E2eeManagerSetEnabledResponse, a, b);
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
exports.E2eeManagerSetEnabledResponse = E2eeManagerSetEnabledResponse;
|
|
261
|
+
E2eeManagerSetEnabledResponse.runtime = protobuf_1.proto3;
|
|
262
|
+
E2eeManagerSetEnabledResponse.typeName = "livekit.proto.E2eeManagerSetEnabledResponse";
|
|
263
|
+
E2eeManagerSetEnabledResponse.fields = protobuf_1.proto3.util.newFieldList(() => []);
|
|
264
|
+
/**
|
|
265
|
+
* @generated from message livekit.proto.E2eeManagerGetFrameCryptorsRequest
|
|
266
|
+
*/
|
|
267
|
+
class E2eeManagerGetFrameCryptorsRequest extends protobuf_1.Message {
|
|
268
|
+
constructor(data) {
|
|
269
|
+
super();
|
|
270
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
271
|
+
}
|
|
272
|
+
static fromBinary(bytes, options) {
|
|
273
|
+
return new E2eeManagerGetFrameCryptorsRequest().fromBinary(bytes, options);
|
|
274
|
+
}
|
|
275
|
+
static fromJson(jsonValue, options) {
|
|
276
|
+
return new E2eeManagerGetFrameCryptorsRequest().fromJson(jsonValue, options);
|
|
277
|
+
}
|
|
278
|
+
static fromJsonString(jsonString, options) {
|
|
279
|
+
return new E2eeManagerGetFrameCryptorsRequest().fromJsonString(jsonString, options);
|
|
280
|
+
}
|
|
281
|
+
static equals(a, b) {
|
|
282
|
+
return protobuf_1.proto3.util.equals(E2eeManagerGetFrameCryptorsRequest, a, b);
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
exports.E2eeManagerGetFrameCryptorsRequest = E2eeManagerGetFrameCryptorsRequest;
|
|
286
|
+
E2eeManagerGetFrameCryptorsRequest.runtime = protobuf_1.proto3;
|
|
287
|
+
E2eeManagerGetFrameCryptorsRequest.typeName = "livekit.proto.E2eeManagerGetFrameCryptorsRequest";
|
|
288
|
+
E2eeManagerGetFrameCryptorsRequest.fields = protobuf_1.proto3.util.newFieldList(() => []);
|
|
289
|
+
/**
|
|
290
|
+
* @generated from message livekit.proto.E2eeManagerGetFrameCryptorsResponse
|
|
291
|
+
*/
|
|
292
|
+
class E2eeManagerGetFrameCryptorsResponse extends protobuf_1.Message {
|
|
293
|
+
constructor(data) {
|
|
294
|
+
super();
|
|
295
|
+
/**
|
|
296
|
+
* @generated from field: repeated livekit.proto.FrameCryptor frame_cryptors = 1;
|
|
297
|
+
*/
|
|
298
|
+
this.frameCryptors = [];
|
|
299
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
300
|
+
}
|
|
301
|
+
static fromBinary(bytes, options) {
|
|
302
|
+
return new E2eeManagerGetFrameCryptorsResponse().fromBinary(bytes, options);
|
|
303
|
+
}
|
|
304
|
+
static fromJson(jsonValue, options) {
|
|
305
|
+
return new E2eeManagerGetFrameCryptorsResponse().fromJson(jsonValue, options);
|
|
306
|
+
}
|
|
307
|
+
static fromJsonString(jsonString, options) {
|
|
308
|
+
return new E2eeManagerGetFrameCryptorsResponse().fromJsonString(jsonString, options);
|
|
309
|
+
}
|
|
310
|
+
static equals(a, b) {
|
|
311
|
+
return protobuf_1.proto3.util.equals(E2eeManagerGetFrameCryptorsResponse, a, b);
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
exports.E2eeManagerGetFrameCryptorsResponse = E2eeManagerGetFrameCryptorsResponse;
|
|
315
|
+
E2eeManagerGetFrameCryptorsResponse.runtime = protobuf_1.proto3;
|
|
316
|
+
E2eeManagerGetFrameCryptorsResponse.typeName = "livekit.proto.E2eeManagerGetFrameCryptorsResponse";
|
|
317
|
+
E2eeManagerGetFrameCryptorsResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
318
|
+
{ no: 1, name: "frame_cryptors", kind: "message", T: FrameCryptor, repeated: true },
|
|
319
|
+
]);
|
|
320
|
+
/**
|
|
321
|
+
* @generated from message livekit.proto.FrameCryptorSetEnabledRequest
|
|
322
|
+
*/
|
|
323
|
+
class FrameCryptorSetEnabledRequest extends protobuf_1.Message {
|
|
324
|
+
constructor(data) {
|
|
325
|
+
super();
|
|
326
|
+
/**
|
|
327
|
+
* @generated from field: string participant_identity = 1;
|
|
328
|
+
*/
|
|
329
|
+
this.participantIdentity = "";
|
|
330
|
+
/**
|
|
331
|
+
* @generated from field: string track_sid = 2;
|
|
332
|
+
*/
|
|
333
|
+
this.trackSid = "";
|
|
334
|
+
/**
|
|
335
|
+
* @generated from field: bool enabled = 3;
|
|
336
|
+
*/
|
|
337
|
+
this.enabled = false;
|
|
338
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
339
|
+
}
|
|
340
|
+
static fromBinary(bytes, options) {
|
|
341
|
+
return new FrameCryptorSetEnabledRequest().fromBinary(bytes, options);
|
|
342
|
+
}
|
|
343
|
+
static fromJson(jsonValue, options) {
|
|
344
|
+
return new FrameCryptorSetEnabledRequest().fromJson(jsonValue, options);
|
|
345
|
+
}
|
|
346
|
+
static fromJsonString(jsonString, options) {
|
|
347
|
+
return new FrameCryptorSetEnabledRequest().fromJsonString(jsonString, options);
|
|
348
|
+
}
|
|
349
|
+
static equals(a, b) {
|
|
350
|
+
return protobuf_1.proto3.util.equals(FrameCryptorSetEnabledRequest, a, b);
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
exports.FrameCryptorSetEnabledRequest = FrameCryptorSetEnabledRequest;
|
|
354
|
+
FrameCryptorSetEnabledRequest.runtime = protobuf_1.proto3;
|
|
355
|
+
FrameCryptorSetEnabledRequest.typeName = "livekit.proto.FrameCryptorSetEnabledRequest";
|
|
356
|
+
FrameCryptorSetEnabledRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
357
|
+
{ no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
358
|
+
{ no: 2, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
359
|
+
{ no: 3, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
360
|
+
]);
|
|
361
|
+
/**
|
|
362
|
+
* @generated from message livekit.proto.FrameCryptorSetEnabledResponse
|
|
363
|
+
*/
|
|
364
|
+
class FrameCryptorSetEnabledResponse extends protobuf_1.Message {
|
|
365
|
+
constructor(data) {
|
|
366
|
+
super();
|
|
367
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
368
|
+
}
|
|
369
|
+
static fromBinary(bytes, options) {
|
|
370
|
+
return new FrameCryptorSetEnabledResponse().fromBinary(bytes, options);
|
|
371
|
+
}
|
|
372
|
+
static fromJson(jsonValue, options) {
|
|
373
|
+
return new FrameCryptorSetEnabledResponse().fromJson(jsonValue, options);
|
|
374
|
+
}
|
|
375
|
+
static fromJsonString(jsonString, options) {
|
|
376
|
+
return new FrameCryptorSetEnabledResponse().fromJsonString(jsonString, options);
|
|
377
|
+
}
|
|
378
|
+
static equals(a, b) {
|
|
379
|
+
return protobuf_1.proto3.util.equals(FrameCryptorSetEnabledResponse, a, b);
|
|
380
|
+
}
|
|
381
|
+
}
|
|
382
|
+
exports.FrameCryptorSetEnabledResponse = FrameCryptorSetEnabledResponse;
|
|
383
|
+
FrameCryptorSetEnabledResponse.runtime = protobuf_1.proto3;
|
|
384
|
+
FrameCryptorSetEnabledResponse.typeName = "livekit.proto.FrameCryptorSetEnabledResponse";
|
|
385
|
+
FrameCryptorSetEnabledResponse.fields = protobuf_1.proto3.util.newFieldList(() => []);
|
|
386
|
+
/**
|
|
387
|
+
* @generated from message livekit.proto.FrameCryptorSetKeyIndexRequest
|
|
388
|
+
*/
|
|
389
|
+
class FrameCryptorSetKeyIndexRequest extends protobuf_1.Message {
|
|
390
|
+
constructor(data) {
|
|
391
|
+
super();
|
|
392
|
+
/**
|
|
393
|
+
* @generated from field: string participant_identity = 1;
|
|
394
|
+
*/
|
|
395
|
+
this.participantIdentity = "";
|
|
396
|
+
/**
|
|
397
|
+
* @generated from field: string track_sid = 2;
|
|
398
|
+
*/
|
|
399
|
+
this.trackSid = "";
|
|
400
|
+
/**
|
|
401
|
+
* @generated from field: int32 key_index = 3;
|
|
402
|
+
*/
|
|
403
|
+
this.keyIndex = 0;
|
|
404
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
405
|
+
}
|
|
406
|
+
static fromBinary(bytes, options) {
|
|
407
|
+
return new FrameCryptorSetKeyIndexRequest().fromBinary(bytes, options);
|
|
408
|
+
}
|
|
409
|
+
static fromJson(jsonValue, options) {
|
|
410
|
+
return new FrameCryptorSetKeyIndexRequest().fromJson(jsonValue, options);
|
|
411
|
+
}
|
|
412
|
+
static fromJsonString(jsonString, options) {
|
|
413
|
+
return new FrameCryptorSetKeyIndexRequest().fromJsonString(jsonString, options);
|
|
414
|
+
}
|
|
415
|
+
static equals(a, b) {
|
|
416
|
+
return protobuf_1.proto3.util.equals(FrameCryptorSetKeyIndexRequest, a, b);
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
exports.FrameCryptorSetKeyIndexRequest = FrameCryptorSetKeyIndexRequest;
|
|
420
|
+
FrameCryptorSetKeyIndexRequest.runtime = protobuf_1.proto3;
|
|
421
|
+
FrameCryptorSetKeyIndexRequest.typeName = "livekit.proto.FrameCryptorSetKeyIndexRequest";
|
|
422
|
+
FrameCryptorSetKeyIndexRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
423
|
+
{ no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
424
|
+
{ no: 2, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
425
|
+
{ no: 3, name: "key_index", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
426
|
+
]);
|
|
427
|
+
/**
|
|
428
|
+
* @generated from message livekit.proto.FrameCryptorSetKeyIndexResponse
|
|
429
|
+
*/
|
|
430
|
+
class FrameCryptorSetKeyIndexResponse extends protobuf_1.Message {
|
|
431
|
+
constructor(data) {
|
|
432
|
+
super();
|
|
433
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
434
|
+
}
|
|
435
|
+
static fromBinary(bytes, options) {
|
|
436
|
+
return new FrameCryptorSetKeyIndexResponse().fromBinary(bytes, options);
|
|
437
|
+
}
|
|
438
|
+
static fromJson(jsonValue, options) {
|
|
439
|
+
return new FrameCryptorSetKeyIndexResponse().fromJson(jsonValue, options);
|
|
440
|
+
}
|
|
441
|
+
static fromJsonString(jsonString, options) {
|
|
442
|
+
return new FrameCryptorSetKeyIndexResponse().fromJsonString(jsonString, options);
|
|
443
|
+
}
|
|
444
|
+
static equals(a, b) {
|
|
445
|
+
return protobuf_1.proto3.util.equals(FrameCryptorSetKeyIndexResponse, a, b);
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
exports.FrameCryptorSetKeyIndexResponse = FrameCryptorSetKeyIndexResponse;
|
|
449
|
+
FrameCryptorSetKeyIndexResponse.runtime = protobuf_1.proto3;
|
|
450
|
+
FrameCryptorSetKeyIndexResponse.typeName = "livekit.proto.FrameCryptorSetKeyIndexResponse";
|
|
451
|
+
FrameCryptorSetKeyIndexResponse.fields = protobuf_1.proto3.util.newFieldList(() => []);
|
|
452
|
+
/**
|
|
453
|
+
* @generated from message livekit.proto.SetSharedKeyRequest
|
|
454
|
+
*/
|
|
455
|
+
class SetSharedKeyRequest extends protobuf_1.Message {
|
|
456
|
+
constructor(data) {
|
|
457
|
+
super();
|
|
458
|
+
/**
|
|
459
|
+
* @generated from field: bytes shared_key = 1;
|
|
460
|
+
*/
|
|
461
|
+
this.sharedKey = new Uint8Array(0);
|
|
462
|
+
/**
|
|
463
|
+
* @generated from field: int32 key_index = 2;
|
|
464
|
+
*/
|
|
465
|
+
this.keyIndex = 0;
|
|
466
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
467
|
+
}
|
|
468
|
+
static fromBinary(bytes, options) {
|
|
469
|
+
return new SetSharedKeyRequest().fromBinary(bytes, options);
|
|
470
|
+
}
|
|
471
|
+
static fromJson(jsonValue, options) {
|
|
472
|
+
return new SetSharedKeyRequest().fromJson(jsonValue, options);
|
|
473
|
+
}
|
|
474
|
+
static fromJsonString(jsonString, options) {
|
|
475
|
+
return new SetSharedKeyRequest().fromJsonString(jsonString, options);
|
|
476
|
+
}
|
|
477
|
+
static equals(a, b) {
|
|
478
|
+
return protobuf_1.proto3.util.equals(SetSharedKeyRequest, a, b);
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
exports.SetSharedKeyRequest = SetSharedKeyRequest;
|
|
482
|
+
SetSharedKeyRequest.runtime = protobuf_1.proto3;
|
|
483
|
+
SetSharedKeyRequest.typeName = "livekit.proto.SetSharedKeyRequest";
|
|
484
|
+
SetSharedKeyRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
485
|
+
{ no: 1, name: "shared_key", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
|
486
|
+
{ no: 2, name: "key_index", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
487
|
+
]);
|
|
488
|
+
/**
|
|
489
|
+
* @generated from message livekit.proto.SetSharedKeyResponse
|
|
490
|
+
*/
|
|
491
|
+
class SetSharedKeyResponse extends protobuf_1.Message {
|
|
492
|
+
constructor(data) {
|
|
493
|
+
super();
|
|
494
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
495
|
+
}
|
|
496
|
+
static fromBinary(bytes, options) {
|
|
497
|
+
return new SetSharedKeyResponse().fromBinary(bytes, options);
|
|
498
|
+
}
|
|
499
|
+
static fromJson(jsonValue, options) {
|
|
500
|
+
return new SetSharedKeyResponse().fromJson(jsonValue, options);
|
|
501
|
+
}
|
|
502
|
+
static fromJsonString(jsonString, options) {
|
|
503
|
+
return new SetSharedKeyResponse().fromJsonString(jsonString, options);
|
|
504
|
+
}
|
|
505
|
+
static equals(a, b) {
|
|
506
|
+
return protobuf_1.proto3.util.equals(SetSharedKeyResponse, a, b);
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
exports.SetSharedKeyResponse = SetSharedKeyResponse;
|
|
510
|
+
SetSharedKeyResponse.runtime = protobuf_1.proto3;
|
|
511
|
+
SetSharedKeyResponse.typeName = "livekit.proto.SetSharedKeyResponse";
|
|
512
|
+
SetSharedKeyResponse.fields = protobuf_1.proto3.util.newFieldList(() => []);
|
|
513
|
+
/**
|
|
514
|
+
* @generated from message livekit.proto.RatchetSharedKeyRequest
|
|
515
|
+
*/
|
|
516
|
+
class RatchetSharedKeyRequest extends protobuf_1.Message {
|
|
517
|
+
constructor(data) {
|
|
518
|
+
super();
|
|
519
|
+
/**
|
|
520
|
+
* @generated from field: int32 key_index = 1;
|
|
521
|
+
*/
|
|
522
|
+
this.keyIndex = 0;
|
|
523
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
524
|
+
}
|
|
525
|
+
static fromBinary(bytes, options) {
|
|
526
|
+
return new RatchetSharedKeyRequest().fromBinary(bytes, options);
|
|
527
|
+
}
|
|
528
|
+
static fromJson(jsonValue, options) {
|
|
529
|
+
return new RatchetSharedKeyRequest().fromJson(jsonValue, options);
|
|
530
|
+
}
|
|
531
|
+
static fromJsonString(jsonString, options) {
|
|
532
|
+
return new RatchetSharedKeyRequest().fromJsonString(jsonString, options);
|
|
533
|
+
}
|
|
534
|
+
static equals(a, b) {
|
|
535
|
+
return protobuf_1.proto3.util.equals(RatchetSharedKeyRequest, a, b);
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
exports.RatchetSharedKeyRequest = RatchetSharedKeyRequest;
|
|
539
|
+
RatchetSharedKeyRequest.runtime = protobuf_1.proto3;
|
|
540
|
+
RatchetSharedKeyRequest.typeName = "livekit.proto.RatchetSharedKeyRequest";
|
|
541
|
+
RatchetSharedKeyRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
542
|
+
{ no: 1, name: "key_index", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
543
|
+
]);
|
|
544
|
+
/**
|
|
545
|
+
* @generated from message livekit.proto.RatchetSharedKeyResponse
|
|
546
|
+
*/
|
|
547
|
+
class RatchetSharedKeyResponse extends protobuf_1.Message {
|
|
548
|
+
constructor(data) {
|
|
549
|
+
super();
|
|
550
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
551
|
+
}
|
|
552
|
+
static fromBinary(bytes, options) {
|
|
553
|
+
return new RatchetSharedKeyResponse().fromBinary(bytes, options);
|
|
554
|
+
}
|
|
555
|
+
static fromJson(jsonValue, options) {
|
|
556
|
+
return new RatchetSharedKeyResponse().fromJson(jsonValue, options);
|
|
557
|
+
}
|
|
558
|
+
static fromJsonString(jsonString, options) {
|
|
559
|
+
return new RatchetSharedKeyResponse().fromJsonString(jsonString, options);
|
|
560
|
+
}
|
|
561
|
+
static equals(a, b) {
|
|
562
|
+
return protobuf_1.proto3.util.equals(RatchetSharedKeyResponse, a, b);
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
exports.RatchetSharedKeyResponse = RatchetSharedKeyResponse;
|
|
566
|
+
RatchetSharedKeyResponse.runtime = protobuf_1.proto3;
|
|
567
|
+
RatchetSharedKeyResponse.typeName = "livekit.proto.RatchetSharedKeyResponse";
|
|
568
|
+
RatchetSharedKeyResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
569
|
+
{ no: 1, name: "new_key", kind: "scalar", T: 12 /* ScalarType.BYTES */, opt: true },
|
|
570
|
+
]);
|
|
571
|
+
/**
|
|
572
|
+
* @generated from message livekit.proto.GetSharedKeyRequest
|
|
573
|
+
*/
|
|
574
|
+
class GetSharedKeyRequest extends protobuf_1.Message {
|
|
575
|
+
constructor(data) {
|
|
576
|
+
super();
|
|
577
|
+
/**
|
|
578
|
+
* @generated from field: int32 key_index = 1;
|
|
579
|
+
*/
|
|
580
|
+
this.keyIndex = 0;
|
|
581
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
582
|
+
}
|
|
583
|
+
static fromBinary(bytes, options) {
|
|
584
|
+
return new GetSharedKeyRequest().fromBinary(bytes, options);
|
|
585
|
+
}
|
|
586
|
+
static fromJson(jsonValue, options) {
|
|
587
|
+
return new GetSharedKeyRequest().fromJson(jsonValue, options);
|
|
588
|
+
}
|
|
589
|
+
static fromJsonString(jsonString, options) {
|
|
590
|
+
return new GetSharedKeyRequest().fromJsonString(jsonString, options);
|
|
591
|
+
}
|
|
592
|
+
static equals(a, b) {
|
|
593
|
+
return protobuf_1.proto3.util.equals(GetSharedKeyRequest, a, b);
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
exports.GetSharedKeyRequest = GetSharedKeyRequest;
|
|
597
|
+
GetSharedKeyRequest.runtime = protobuf_1.proto3;
|
|
598
|
+
GetSharedKeyRequest.typeName = "livekit.proto.GetSharedKeyRequest";
|
|
599
|
+
GetSharedKeyRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
600
|
+
{ no: 1, name: "key_index", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
601
|
+
]);
|
|
602
|
+
/**
|
|
603
|
+
* @generated from message livekit.proto.GetSharedKeyResponse
|
|
604
|
+
*/
|
|
605
|
+
class GetSharedKeyResponse extends protobuf_1.Message {
|
|
606
|
+
constructor(data) {
|
|
607
|
+
super();
|
|
608
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
609
|
+
}
|
|
610
|
+
static fromBinary(bytes, options) {
|
|
611
|
+
return new GetSharedKeyResponse().fromBinary(bytes, options);
|
|
612
|
+
}
|
|
613
|
+
static fromJson(jsonValue, options) {
|
|
614
|
+
return new GetSharedKeyResponse().fromJson(jsonValue, options);
|
|
615
|
+
}
|
|
616
|
+
static fromJsonString(jsonString, options) {
|
|
617
|
+
return new GetSharedKeyResponse().fromJsonString(jsonString, options);
|
|
618
|
+
}
|
|
619
|
+
static equals(a, b) {
|
|
620
|
+
return protobuf_1.proto3.util.equals(GetSharedKeyResponse, a, b);
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
exports.GetSharedKeyResponse = GetSharedKeyResponse;
|
|
624
|
+
GetSharedKeyResponse.runtime = protobuf_1.proto3;
|
|
625
|
+
GetSharedKeyResponse.typeName = "livekit.proto.GetSharedKeyResponse";
|
|
626
|
+
GetSharedKeyResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
627
|
+
{ no: 1, name: "key", kind: "scalar", T: 12 /* ScalarType.BYTES */, opt: true },
|
|
628
|
+
]);
|
|
629
|
+
/**
|
|
630
|
+
* @generated from message livekit.proto.SetKeyRequest
|
|
631
|
+
*/
|
|
632
|
+
class SetKeyRequest extends protobuf_1.Message {
|
|
633
|
+
constructor(data) {
|
|
634
|
+
super();
|
|
635
|
+
/**
|
|
636
|
+
* @generated from field: string participant_identity = 1;
|
|
637
|
+
*/
|
|
638
|
+
this.participantIdentity = "";
|
|
639
|
+
/**
|
|
640
|
+
* @generated from field: bytes key = 2;
|
|
641
|
+
*/
|
|
642
|
+
this.key = new Uint8Array(0);
|
|
643
|
+
/**
|
|
644
|
+
* @generated from field: int32 key_index = 3;
|
|
645
|
+
*/
|
|
646
|
+
this.keyIndex = 0;
|
|
647
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
648
|
+
}
|
|
649
|
+
static fromBinary(bytes, options) {
|
|
650
|
+
return new SetKeyRequest().fromBinary(bytes, options);
|
|
651
|
+
}
|
|
652
|
+
static fromJson(jsonValue, options) {
|
|
653
|
+
return new SetKeyRequest().fromJson(jsonValue, options);
|
|
654
|
+
}
|
|
655
|
+
static fromJsonString(jsonString, options) {
|
|
656
|
+
return new SetKeyRequest().fromJsonString(jsonString, options);
|
|
657
|
+
}
|
|
658
|
+
static equals(a, b) {
|
|
659
|
+
return protobuf_1.proto3.util.equals(SetKeyRequest, a, b);
|
|
660
|
+
}
|
|
661
|
+
}
|
|
662
|
+
exports.SetKeyRequest = SetKeyRequest;
|
|
663
|
+
SetKeyRequest.runtime = protobuf_1.proto3;
|
|
664
|
+
SetKeyRequest.typeName = "livekit.proto.SetKeyRequest";
|
|
665
|
+
SetKeyRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
666
|
+
{ no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
667
|
+
{ no: 2, name: "key", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
|
|
668
|
+
{ no: 3, name: "key_index", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
669
|
+
]);
|
|
670
|
+
/**
|
|
671
|
+
* @generated from message livekit.proto.SetKeyResponse
|
|
672
|
+
*/
|
|
673
|
+
class SetKeyResponse extends protobuf_1.Message {
|
|
674
|
+
constructor(data) {
|
|
675
|
+
super();
|
|
676
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
677
|
+
}
|
|
678
|
+
static fromBinary(bytes, options) {
|
|
679
|
+
return new SetKeyResponse().fromBinary(bytes, options);
|
|
680
|
+
}
|
|
681
|
+
static fromJson(jsonValue, options) {
|
|
682
|
+
return new SetKeyResponse().fromJson(jsonValue, options);
|
|
683
|
+
}
|
|
684
|
+
static fromJsonString(jsonString, options) {
|
|
685
|
+
return new SetKeyResponse().fromJsonString(jsonString, options);
|
|
686
|
+
}
|
|
687
|
+
static equals(a, b) {
|
|
688
|
+
return protobuf_1.proto3.util.equals(SetKeyResponse, a, b);
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
exports.SetKeyResponse = SetKeyResponse;
|
|
692
|
+
SetKeyResponse.runtime = protobuf_1.proto3;
|
|
693
|
+
SetKeyResponse.typeName = "livekit.proto.SetKeyResponse";
|
|
694
|
+
SetKeyResponse.fields = protobuf_1.proto3.util.newFieldList(() => []);
|
|
695
|
+
/**
|
|
696
|
+
* @generated from message livekit.proto.RatchetKeyRequest
|
|
697
|
+
*/
|
|
698
|
+
class RatchetKeyRequest extends protobuf_1.Message {
|
|
699
|
+
constructor(data) {
|
|
700
|
+
super();
|
|
701
|
+
/**
|
|
702
|
+
* @generated from field: string participant_identity = 1;
|
|
703
|
+
*/
|
|
704
|
+
this.participantIdentity = "";
|
|
705
|
+
/**
|
|
706
|
+
* @generated from field: int32 key_index = 2;
|
|
707
|
+
*/
|
|
708
|
+
this.keyIndex = 0;
|
|
709
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
710
|
+
}
|
|
711
|
+
static fromBinary(bytes, options) {
|
|
712
|
+
return new RatchetKeyRequest().fromBinary(bytes, options);
|
|
713
|
+
}
|
|
714
|
+
static fromJson(jsonValue, options) {
|
|
715
|
+
return new RatchetKeyRequest().fromJson(jsonValue, options);
|
|
716
|
+
}
|
|
717
|
+
static fromJsonString(jsonString, options) {
|
|
718
|
+
return new RatchetKeyRequest().fromJsonString(jsonString, options);
|
|
719
|
+
}
|
|
720
|
+
static equals(a, b) {
|
|
721
|
+
return protobuf_1.proto3.util.equals(RatchetKeyRequest, a, b);
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
exports.RatchetKeyRequest = RatchetKeyRequest;
|
|
725
|
+
RatchetKeyRequest.runtime = protobuf_1.proto3;
|
|
726
|
+
RatchetKeyRequest.typeName = "livekit.proto.RatchetKeyRequest";
|
|
727
|
+
RatchetKeyRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
728
|
+
{ no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
729
|
+
{ no: 2, name: "key_index", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
730
|
+
]);
|
|
731
|
+
/**
|
|
732
|
+
* @generated from message livekit.proto.RatchetKeyResponse
|
|
733
|
+
*/
|
|
734
|
+
class RatchetKeyResponse extends protobuf_1.Message {
|
|
735
|
+
constructor(data) {
|
|
736
|
+
super();
|
|
737
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
738
|
+
}
|
|
739
|
+
static fromBinary(bytes, options) {
|
|
740
|
+
return new RatchetKeyResponse().fromBinary(bytes, options);
|
|
741
|
+
}
|
|
742
|
+
static fromJson(jsonValue, options) {
|
|
743
|
+
return new RatchetKeyResponse().fromJson(jsonValue, options);
|
|
744
|
+
}
|
|
745
|
+
static fromJsonString(jsonString, options) {
|
|
746
|
+
return new RatchetKeyResponse().fromJsonString(jsonString, options);
|
|
747
|
+
}
|
|
748
|
+
static equals(a, b) {
|
|
749
|
+
return protobuf_1.proto3.util.equals(RatchetKeyResponse, a, b);
|
|
750
|
+
}
|
|
751
|
+
}
|
|
752
|
+
exports.RatchetKeyResponse = RatchetKeyResponse;
|
|
753
|
+
RatchetKeyResponse.runtime = protobuf_1.proto3;
|
|
754
|
+
RatchetKeyResponse.typeName = "livekit.proto.RatchetKeyResponse";
|
|
755
|
+
RatchetKeyResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
756
|
+
{ no: 1, name: "new_key", kind: "scalar", T: 12 /* ScalarType.BYTES */, opt: true },
|
|
757
|
+
]);
|
|
758
|
+
/**
|
|
759
|
+
* @generated from message livekit.proto.GetKeyRequest
|
|
760
|
+
*/
|
|
761
|
+
class GetKeyRequest extends protobuf_1.Message {
|
|
762
|
+
constructor(data) {
|
|
763
|
+
super();
|
|
764
|
+
/**
|
|
765
|
+
* @generated from field: string participant_identity = 1;
|
|
766
|
+
*/
|
|
767
|
+
this.participantIdentity = "";
|
|
768
|
+
/**
|
|
769
|
+
* @generated from field: int32 key_index = 2;
|
|
770
|
+
*/
|
|
771
|
+
this.keyIndex = 0;
|
|
772
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
773
|
+
}
|
|
774
|
+
static fromBinary(bytes, options) {
|
|
775
|
+
return new GetKeyRequest().fromBinary(bytes, options);
|
|
776
|
+
}
|
|
777
|
+
static fromJson(jsonValue, options) {
|
|
778
|
+
return new GetKeyRequest().fromJson(jsonValue, options);
|
|
779
|
+
}
|
|
780
|
+
static fromJsonString(jsonString, options) {
|
|
781
|
+
return new GetKeyRequest().fromJsonString(jsonString, options);
|
|
782
|
+
}
|
|
783
|
+
static equals(a, b) {
|
|
784
|
+
return protobuf_1.proto3.util.equals(GetKeyRequest, a, b);
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
exports.GetKeyRequest = GetKeyRequest;
|
|
788
|
+
GetKeyRequest.runtime = protobuf_1.proto3;
|
|
789
|
+
GetKeyRequest.typeName = "livekit.proto.GetKeyRequest";
|
|
790
|
+
GetKeyRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
791
|
+
{ no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
792
|
+
{ no: 2, name: "key_index", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
793
|
+
]);
|
|
794
|
+
/**
|
|
795
|
+
* @generated from message livekit.proto.GetKeyResponse
|
|
796
|
+
*/
|
|
797
|
+
class GetKeyResponse extends protobuf_1.Message {
|
|
798
|
+
constructor(data) {
|
|
799
|
+
super();
|
|
800
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
801
|
+
}
|
|
802
|
+
static fromBinary(bytes, options) {
|
|
803
|
+
return new GetKeyResponse().fromBinary(bytes, options);
|
|
804
|
+
}
|
|
805
|
+
static fromJson(jsonValue, options) {
|
|
806
|
+
return new GetKeyResponse().fromJson(jsonValue, options);
|
|
807
|
+
}
|
|
808
|
+
static fromJsonString(jsonString, options) {
|
|
809
|
+
return new GetKeyResponse().fromJsonString(jsonString, options);
|
|
810
|
+
}
|
|
811
|
+
static equals(a, b) {
|
|
812
|
+
return protobuf_1.proto3.util.equals(GetKeyResponse, a, b);
|
|
813
|
+
}
|
|
814
|
+
}
|
|
815
|
+
exports.GetKeyResponse = GetKeyResponse;
|
|
816
|
+
GetKeyResponse.runtime = protobuf_1.proto3;
|
|
817
|
+
GetKeyResponse.typeName = "livekit.proto.GetKeyResponse";
|
|
818
|
+
GetKeyResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
819
|
+
{ no: 1, name: "key", kind: "scalar", T: 12 /* ScalarType.BYTES */, opt: true },
|
|
820
|
+
]);
|
|
821
|
+
/**
|
|
822
|
+
* @generated from message livekit.proto.E2eeRequest
|
|
823
|
+
*/
|
|
824
|
+
class E2eeRequest extends protobuf_1.Message {
|
|
825
|
+
constructor(data) {
|
|
826
|
+
super();
|
|
827
|
+
/**
|
|
828
|
+
* @generated from field: uint64 room_handle = 1;
|
|
829
|
+
*/
|
|
830
|
+
this.roomHandle = protobuf_1.protoInt64.zero;
|
|
831
|
+
/**
|
|
832
|
+
* @generated from oneof livekit.proto.E2eeRequest.message
|
|
833
|
+
*/
|
|
834
|
+
this.message = { case: undefined };
|
|
835
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
836
|
+
}
|
|
837
|
+
static fromBinary(bytes, options) {
|
|
838
|
+
return new E2eeRequest().fromBinary(bytes, options);
|
|
839
|
+
}
|
|
840
|
+
static fromJson(jsonValue, options) {
|
|
841
|
+
return new E2eeRequest().fromJson(jsonValue, options);
|
|
842
|
+
}
|
|
843
|
+
static fromJsonString(jsonString, options) {
|
|
844
|
+
return new E2eeRequest().fromJsonString(jsonString, options);
|
|
845
|
+
}
|
|
846
|
+
static equals(a, b) {
|
|
847
|
+
return protobuf_1.proto3.util.equals(E2eeRequest, a, b);
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
exports.E2eeRequest = E2eeRequest;
|
|
851
|
+
E2eeRequest.runtime = protobuf_1.proto3;
|
|
852
|
+
E2eeRequest.typeName = "livekit.proto.E2eeRequest";
|
|
853
|
+
E2eeRequest.fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
854
|
+
{ no: 1, name: "room_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
|
|
855
|
+
{ no: 2, name: "manager_set_enabled", kind: "message", T: E2eeManagerSetEnabledRequest, oneof: "message" },
|
|
856
|
+
{ no: 3, name: "manager_get_frame_cryptors", kind: "message", T: E2eeManagerGetFrameCryptorsRequest, oneof: "message" },
|
|
857
|
+
{ no: 4, name: "cryptor_set_enabled", kind: "message", T: FrameCryptorSetEnabledRequest, oneof: "message" },
|
|
858
|
+
{ no: 5, name: "cryptor_set_key_index", kind: "message", T: FrameCryptorSetKeyIndexRequest, oneof: "message" },
|
|
859
|
+
{ no: 6, name: "set_shared_key", kind: "message", T: SetSharedKeyRequest, oneof: "message" },
|
|
860
|
+
{ no: 7, name: "ratchet_shared_key", kind: "message", T: RatchetSharedKeyRequest, oneof: "message" },
|
|
861
|
+
{ no: 8, name: "get_shared_key", kind: "message", T: GetSharedKeyRequest, oneof: "message" },
|
|
862
|
+
{ no: 9, name: "set_key", kind: "message", T: SetKeyRequest, oneof: "message" },
|
|
863
|
+
{ no: 10, name: "ratchet_key", kind: "message", T: RatchetKeyRequest, oneof: "message" },
|
|
864
|
+
{ no: 11, name: "get_key", kind: "message", T: GetKeyRequest, oneof: "message" },
|
|
865
|
+
]);
|
|
866
|
+
/**
|
|
867
|
+
* @generated from message livekit.proto.E2eeResponse
|
|
868
|
+
*/
|
|
869
|
+
class E2eeResponse extends protobuf_1.Message {
|
|
870
|
+
constructor(data) {
|
|
871
|
+
super();
|
|
872
|
+
/**
|
|
873
|
+
* @generated from oneof livekit.proto.E2eeResponse.message
|
|
874
|
+
*/
|
|
875
|
+
this.message = { case: undefined };
|
|
876
|
+
protobuf_1.proto3.util.initPartial(data, this);
|
|
877
|
+
}
|
|
878
|
+
static fromBinary(bytes, options) {
|
|
879
|
+
return new E2eeResponse().fromBinary(bytes, options);
|
|
880
|
+
}
|
|
881
|
+
static fromJson(jsonValue, options) {
|
|
882
|
+
return new E2eeResponse().fromJson(jsonValue, options);
|
|
883
|
+
}
|
|
884
|
+
static fromJsonString(jsonString, options) {
|
|
885
|
+
return new E2eeResponse().fromJsonString(jsonString, options);
|
|
886
|
+
}
|
|
887
|
+
static equals(a, b) {
|
|
888
|
+
return protobuf_1.proto3.util.equals(E2eeResponse, a, b);
|
|
889
|
+
}
|
|
890
|
+
}
|
|
891
|
+
exports.E2eeResponse = E2eeResponse;
|
|
892
|
+
E2eeResponse.runtime = protobuf_1.proto3;
|
|
893
|
+
E2eeResponse.typeName = "livekit.proto.E2eeResponse";
|
|
894
|
+
E2eeResponse.fields = protobuf_1.proto3.util.newFieldList(() => [
|
|
895
|
+
{ no: 1, name: "manager_set_enabled", kind: "message", T: E2eeManagerSetEnabledResponse, oneof: "message" },
|
|
896
|
+
{ no: 2, name: "manager_get_frame_cryptors", kind: "message", T: E2eeManagerGetFrameCryptorsResponse, oneof: "message" },
|
|
897
|
+
{ no: 3, name: "cryptor_set_enabled", kind: "message", T: FrameCryptorSetEnabledResponse, oneof: "message" },
|
|
898
|
+
{ no: 4, name: "cryptor_set_key_index", kind: "message", T: FrameCryptorSetKeyIndexResponse, oneof: "message" },
|
|
899
|
+
{ no: 5, name: "set_shared_key", kind: "message", T: SetSharedKeyResponse, oneof: "message" },
|
|
900
|
+
{ no: 6, name: "ratchet_shared_key", kind: "message", T: RatchetSharedKeyResponse, oneof: "message" },
|
|
901
|
+
{ no: 7, name: "get_shared_key", kind: "message", T: GetSharedKeyResponse, oneof: "message" },
|
|
902
|
+
{ no: 8, name: "set_key", kind: "message", T: SetKeyResponse, oneof: "message" },
|
|
903
|
+
{ no: 9, name: "ratchet_key", kind: "message", T: RatchetKeyResponse, oneof: "message" },
|
|
904
|
+
{ no: 10, name: "get_key", kind: "message", T: GetKeyResponse, oneof: "message" },
|
|
905
|
+
]);
|
|
906
|
+
//# sourceMappingURL=e2ee_pb.js.map
|