@livekit/rtc-node 0.12.2 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/audio_frame.cjs +2 -2
- package/dist/audio_frame.cjs.map +1 -1
- package/dist/audio_frame.d.cts +2 -3
- package/dist/audio_frame.d.ts +2 -3
- package/dist/audio_frame.d.ts.map +1 -1
- package/dist/audio_frame.js +3 -3
- package/dist/audio_frame.js.map +1 -1
- package/dist/audio_resampler.cjs +10 -7
- package/dist/audio_resampler.cjs.map +1 -1
- package/dist/audio_resampler.d.cts +2 -3
- package/dist/audio_resampler.d.ts +2 -3
- package/dist/audio_resampler.d.ts.map +1 -1
- package/dist/audio_resampler.js +13 -10
- package/dist/audio_resampler.js.map +1 -1
- package/dist/audio_source.cjs +6 -4
- package/dist/audio_source.cjs.map +1 -1
- package/dist/audio_source.d.cts +3 -3
- package/dist/audio_source.d.ts +3 -3
- package/dist/audio_source.d.ts.map +1 -1
- package/dist/audio_source.js +9 -7
- package/dist/audio_source.js.map +1 -1
- package/dist/audio_stream.cjs +1 -2
- package/dist/audio_stream.cjs.map +1 -1
- package/dist/audio_stream.d.cts +2 -3
- package/dist/audio_stream.d.ts +2 -3
- package/dist/audio_stream.d.ts.map +1 -1
- package/dist/audio_stream.js +2 -3
- package/dist/audio_stream.js.map +1 -1
- package/dist/e2ee.cjs +19 -20
- package/dist/e2ee.cjs.map +1 -1
- package/dist/e2ee.d.cts +0 -1
- package/dist/e2ee.d.ts +0 -1
- package/dist/e2ee.d.ts.map +1 -1
- package/dist/e2ee.js +29 -30
- package/dist/e2ee.js.map +1 -1
- package/dist/ffi_client.cjs +6 -5
- package/dist/ffi_client.cjs.map +1 -1
- package/dist/ffi_client.d.cts +10 -10
- package/dist/ffi_client.d.ts +10 -10
- package/dist/ffi_client.d.ts.map +1 -1
- package/dist/ffi_client.js +6 -10
- package/dist/ffi_client.js.map +1 -1
- package/dist/index.cjs +16 -49
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -35
- package/dist/index.d.ts +6 -35
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -46
- package/dist/index.js.map +1 -1
- package/dist/napi/native.d.cjs.map +1 -1
- package/dist/napi/native.d.ts +5 -5
- package/dist/native.d.ts +5 -5
- package/dist/participant.cjs +57 -34
- package/dist/participant.cjs.map +1 -1
- package/dist/participant.d.cts +10 -10
- package/dist/participant.d.ts +10 -10
- package/dist/participant.d.ts.map +1 -1
- package/dist/participant.js +75 -50
- package/dist/participant.js.map +1 -1
- package/dist/proto/audio_frame_pb.cjs +977 -125
- package/dist/proto/audio_frame_pb.cjs.map +1 -1
- package/dist/proto/audio_frame_pb.d.cts +502 -417
- package/dist/proto/audio_frame_pb.d.ts +502 -417
- package/dist/proto/audio_frame_pb.d.ts.map +1 -1
- package/dist/proto/audio_frame_pb.js +943 -85
- package/dist/proto/audio_frame_pb.js.map +1 -1
- package/dist/proto/e2ee_pb.cjs +700 -85
- package/dist/proto/e2ee_pb.cjs.map +1 -1
- package/dist/proto/e2ee_pb.d.cts +331 -263
- package/dist/proto/e2ee_pb.d.ts +331 -263
- package/dist/proto/e2ee_pb.d.ts.map +1 -1
- package/dist/proto/e2ee_pb.js +675 -57
- package/dist/proto/e2ee_pb.js.map +1 -1
- package/dist/proto/ffi_pb.cjs +369 -36
- package/dist/proto/ffi_pb.cjs.map +1 -1
- package/dist/proto/ffi_pb.d.cts +156 -109
- package/dist/proto/ffi_pb.d.ts +156 -109
- package/dist/proto/ffi_pb.d.ts.map +1 -1
- package/dist/proto/ffi_pb.js +364 -29
- package/dist/proto/ffi_pb.js.map +1 -1
- package/dist/proto/handle_pb.cjs +27 -7
- package/dist/proto/handle_pb.cjs.map +1 -1
- package/dist/proto/handle_pb.d.cts +13 -15
- package/dist/proto/handle_pb.d.ts +13 -15
- package/dist/proto/handle_pb.d.ts.map +1 -1
- package/dist/proto/handle_pb.js +26 -5
- package/dist/proto/handle_pb.js.map +1 -1
- package/dist/proto/participant_pb.cjs +112 -15
- package/dist/proto/participant_pb.cjs.map +1 -1
- package/dist/proto/participant_pb.d.cts +140 -52
- package/dist/proto/participant_pb.d.ts +140 -52
- package/dist/proto/participant_pb.d.ts.map +1 -1
- package/dist/proto/participant_pb.js +109 -11
- package/dist/proto/participant_pb.js.map +1 -1
- package/dist/proto/room_pb.cjs +2693 -302
- package/dist/proto/room_pb.cjs.map +1 -1
- package/dist/proto/room_pb.d.cts +1265 -862
- package/dist/proto/room_pb.d.ts +1265 -862
- package/dist/proto/room_pb.d.ts.map +1 -1
- package/dist/proto/room_pb.js +2603 -210
- package/dist/proto/room_pb.js.map +1 -1
- package/dist/proto/rpc_pb.cjs +302 -37
- package/dist/proto/rpc_pb.cjs.map +1 -1
- package/dist/proto/rpc_pb.d.cts +138 -108
- package/dist/proto/rpc_pb.d.ts +138 -108
- package/dist/proto/rpc_pb.d.ts.map +1 -1
- package/dist/proto/rpc_pb.js +291 -25
- package/dist/proto/rpc_pb.js.map +1 -1
- package/dist/proto/stats_pb.cjs +1253 -139
- package/dist/proto/stats_pb.cjs.map +1 -1
- package/dist/proto/stats_pb.d.cts +803 -692
- package/dist/proto/stats_pb.d.ts +803 -692
- package/dist/proto/stats_pb.d.ts.map +1 -1
- package/dist/proto/stats_pb.js +1216 -93
- package/dist/proto/stats_pb.js.map +1 -1
- package/dist/proto/track_pb.cjs +462 -64
- package/dist/proto/track_pb.cjs.map +1 -1
- package/dist/proto/track_pb.d.cts +250 -218
- package/dist/proto/track_pb.d.ts +250 -218
- package/dist/proto/track_pb.d.ts.map +1 -1
- package/dist/proto/track_pb.js +447 -45
- package/dist/proto/track_pb.js.map +1 -1
- package/dist/proto/track_publication_pb.cjs +130 -0
- package/dist/proto/track_publication_pb.cjs.map +1 -0
- package/dist/proto/track_publication_pb.d.cts +80 -0
- package/dist/proto/track_publication_pb.d.ts +80 -0
- package/dist/proto/track_publication_pb.d.ts.map +1 -0
- package/dist/proto/track_publication_pb.js +103 -0
- package/dist/proto/track_publication_pb.js.map +1 -0
- package/dist/proto/video_frame_pb.cjs +648 -88
- package/dist/proto/video_frame_pb.cjs.map +1 -1
- package/dist/proto/video_frame_pb.d.cts +371 -328
- package/dist/proto/video_frame_pb.d.ts +371 -328
- package/dist/proto/video_frame_pb.d.ts.map +1 -1
- package/dist/proto/video_frame_pb.js +626 -60
- package/dist/proto/video_frame_pb.js.map +1 -1
- package/dist/room.cjs +93 -125
- package/dist/room.cjs.map +1 -1
- package/dist/room.d.cts +6 -17
- package/dist/room.d.ts +6 -17
- package/dist/room.d.ts.map +1 -1
- package/dist/room.js +92 -122
- package/dist/room.js.map +1 -1
- package/dist/rpc.cjs.map +1 -1
- package/dist/rpc.d.cts +0 -1
- package/dist/rpc.d.ts +0 -1
- package/dist/rpc.js.map +1 -1
- package/dist/track.cjs +12 -8
- package/dist/track.cjs.map +1 -1
- package/dist/track.d.cts +8 -9
- package/dist/track.d.ts +8 -9
- package/dist/track.d.ts.map +1 -1
- package/dist/track.js +13 -9
- package/dist/track.js.map +1 -1
- package/dist/track_publication.cjs +21 -12
- package/dist/track_publication.cjs.map +1 -1
- package/dist/track_publication.d.cts +12 -13
- package/dist/track_publication.d.ts +12 -13
- package/dist/track_publication.d.ts.map +1 -1
- package/dist/track_publication.js +22 -13
- package/dist/track_publication.js.map +1 -1
- package/dist/version.cjs +1 -1
- package/dist/version.cjs.map +1 -1
- package/dist/version.d.cts +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/dist/video_frame.cjs +26 -45
- package/dist/video_frame.cjs.map +1 -1
- package/dist/video_frame.d.cts +2 -3
- package/dist/video_frame.d.ts +2 -3
- package/dist/video_frame.d.ts.map +1 -1
- package/dist/video_frame.js +29 -48
- package/dist/video_frame.js.map +1 -1
- package/dist/video_source.cjs +7 -4
- package/dist/video_source.cjs.map +1 -1
- package/dist/video_source.d.cts +4 -4
- package/dist/video_source.d.ts +4 -4
- package/dist/video_source.d.ts.map +1 -1
- package/dist/video_source.js +9 -6
- package/dist/video_source.js.map +1 -1
- package/dist/video_stream.cjs +16 -5
- package/dist/video_stream.cjs.map +1 -1
- package/dist/video_stream.d.cts +3 -4
- package/dist/video_stream.d.ts +3 -4
- package/dist/video_stream.d.ts.map +1 -1
- package/dist/video_stream.js +17 -6
- package/dist/video_stream.js.map +1 -1
- package/package.json +9 -9
- package/src/audio_frame.ts +10 -10
- package/src/audio_resampler.ts +15 -13
- package/src/audio_source.ts +11 -8
- package/src/audio_stream.ts +3 -4
- package/src/e2ee.ts +36 -37
- package/src/ffi_client.ts +8 -16
- package/src/index.ts +5 -68
- package/src/napi/native.d.ts +5 -5
- package/src/participant.ts +100 -72
- package/src/proto/audio_frame_pb.ts +1220 -496
- package/src/proto/e2ee_pb.ts +858 -337
- package/src/proto/ffi_pb.ts +442 -135
- package/src/proto/handle_pb.ts +33 -19
- package/src/proto/participant_pb.ts +225 -60
- package/src/proto/room_pb.ts +3149 -1013
- package/src/proto/rpc_pb.ts +358 -129
- package/src/proto/stats_pb.ts +1891 -877
- package/src/proto/track_pb.ts +587 -253
- package/src/proto/track_publication_pb.ts +180 -0
- package/src/proto/video_frame_pb.ts +861 -394
- package/src/room.ts +143 -188
- package/src/rpc.ts +1 -1
- package/src/track.ts +16 -17
- package/src/track_publication.ts +25 -26
- package/src/version.ts +1 -1
- package/src/video_frame.ts +48 -72
- package/src/video_source.ts +11 -8
- package/src/video_stream.ts +18 -8
package/src/proto/e2ee_pb.ts
CHANGED
|
@@ -12,479 +12,1013 @@
|
|
|
12
12
|
// See the License for the specific language governing permissions and
|
|
13
13
|
// limitations under the License.
|
|
14
14
|
|
|
15
|
-
// @generated by protoc-gen-es
|
|
15
|
+
// @generated by protoc-gen-es v1.10.0 with parameter "target=ts,import_extension=.js"
|
|
16
16
|
// @generated from file e2ee.proto (package livekit.proto, syntax proto2)
|
|
17
17
|
/* eslint-disable */
|
|
18
|
+
// @ts-nocheck
|
|
18
19
|
|
|
19
|
-
import type {
|
|
20
|
-
import {
|
|
21
|
-
import type { Message } from "@bufbuild/protobuf";
|
|
20
|
+
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
21
|
+
import { Message, proto2 } from "@bufbuild/protobuf";
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* @generated from enum livekit.proto.EncryptionType
|
|
25
|
+
*/
|
|
26
|
+
export enum EncryptionType {
|
|
27
|
+
/**
|
|
28
|
+
* @generated from enum value: NONE = 0;
|
|
29
|
+
*/
|
|
30
|
+
NONE = 0,
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* @generated from enum value: GCM = 1;
|
|
34
|
+
*/
|
|
35
|
+
GCM = 1,
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @generated from enum value: CUSTOM = 2;
|
|
39
|
+
*/
|
|
40
|
+
CUSTOM = 2,
|
|
41
|
+
}
|
|
42
|
+
// Retrieve enum metadata with: proto2.getEnumType(EncryptionType)
|
|
43
|
+
proto2.util.setEnumType(EncryptionType, "livekit.proto.EncryptionType", [
|
|
44
|
+
{ no: 0, name: "NONE" },
|
|
45
|
+
{ no: 1, name: "GCM" },
|
|
46
|
+
{ no: 2, name: "CUSTOM" },
|
|
47
|
+
]);
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* @generated from enum livekit.proto.EncryptionState
|
|
25
51
|
*/
|
|
26
|
-
export
|
|
27
|
-
|
|
52
|
+
export enum EncryptionState {
|
|
53
|
+
/**
|
|
54
|
+
* @generated from enum value: NEW = 0;
|
|
55
|
+
*/
|
|
56
|
+
NEW = 0,
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* @generated from enum value: OK = 1;
|
|
60
|
+
*/
|
|
61
|
+
OK = 1,
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* @generated from enum value: ENCRYPTION_FAILED = 2;
|
|
65
|
+
*/
|
|
66
|
+
ENCRYPTION_FAILED = 2,
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* @generated from enum value: DECRYPTION_FAILED = 3;
|
|
70
|
+
*/
|
|
71
|
+
DECRYPTION_FAILED = 3,
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* @generated from enum value: MISSING_KEY = 4;
|
|
75
|
+
*/
|
|
76
|
+
MISSING_KEY = 4,
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* @generated from enum value: KEY_RATCHETED = 5;
|
|
80
|
+
*/
|
|
81
|
+
KEY_RATCHETED = 5,
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* @generated from enum value: INTERNAL_ERROR = 6;
|
|
85
|
+
*/
|
|
86
|
+
INTERNAL_ERROR = 6,
|
|
87
|
+
}
|
|
88
|
+
// Retrieve enum metadata with: proto2.getEnumType(EncryptionState)
|
|
89
|
+
proto2.util.setEnumType(EncryptionState, "livekit.proto.EncryptionState", [
|
|
90
|
+
{ no: 0, name: "NEW" },
|
|
91
|
+
{ no: 1, name: "OK" },
|
|
92
|
+
{ no: 2, name: "ENCRYPTION_FAILED" },
|
|
93
|
+
{ no: 3, name: "DECRYPTION_FAILED" },
|
|
94
|
+
{ no: 4, name: "MISSING_KEY" },
|
|
95
|
+
{ no: 5, name: "KEY_RATCHETED" },
|
|
96
|
+
{ no: 6, name: "INTERNAL_ERROR" },
|
|
97
|
+
]);
|
|
28
98
|
|
|
29
99
|
/**
|
|
30
100
|
* @generated from message livekit.proto.FrameCryptor
|
|
31
101
|
*/
|
|
32
|
-
export
|
|
102
|
+
export class FrameCryptor extends Message<FrameCryptor> {
|
|
33
103
|
/**
|
|
34
104
|
* @generated from field: required string participant_identity = 1;
|
|
35
105
|
*/
|
|
36
|
-
participantIdentity
|
|
106
|
+
participantIdentity?: string;
|
|
37
107
|
|
|
38
108
|
/**
|
|
39
109
|
* @generated from field: required string track_sid = 2;
|
|
40
110
|
*/
|
|
41
|
-
trackSid
|
|
111
|
+
trackSid?: string;
|
|
42
112
|
|
|
43
113
|
/**
|
|
44
114
|
* @generated from field: required int32 key_index = 3;
|
|
45
115
|
*/
|
|
46
|
-
keyIndex
|
|
116
|
+
keyIndex?: number;
|
|
47
117
|
|
|
48
118
|
/**
|
|
49
119
|
* @generated from field: required bool enabled = 4;
|
|
50
120
|
*/
|
|
51
|
-
enabled
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
121
|
+
enabled?: boolean;
|
|
122
|
+
|
|
123
|
+
constructor(data?: PartialMessage<FrameCryptor>) {
|
|
124
|
+
super();
|
|
125
|
+
proto2.util.initPartial(data, this);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
static readonly runtime: typeof proto2 = proto2;
|
|
129
|
+
static readonly typeName = "livekit.proto.FrameCryptor";
|
|
130
|
+
static readonly fields: FieldList = proto2.util.newFieldList(() => [
|
|
131
|
+
{ no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true },
|
|
132
|
+
{ no: 2, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true },
|
|
133
|
+
{ no: 3, name: "key_index", kind: "scalar", T: 5 /* ScalarType.INT32 */, req: true },
|
|
134
|
+
{ no: 4, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true },
|
|
135
|
+
]);
|
|
136
|
+
|
|
137
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FrameCryptor {
|
|
138
|
+
return new FrameCryptor().fromBinary(bytes, options);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FrameCryptor {
|
|
142
|
+
return new FrameCryptor().fromJson(jsonValue, options);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FrameCryptor {
|
|
146
|
+
return new FrameCryptor().fromJsonString(jsonString, options);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
static equals(a: FrameCryptor | PlainMessage<FrameCryptor> | undefined, b: FrameCryptor | PlainMessage<FrameCryptor> | undefined): boolean {
|
|
150
|
+
return proto2.util.equals(FrameCryptor, a, b);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
60
153
|
|
|
61
154
|
/**
|
|
62
155
|
* @generated from message livekit.proto.KeyProviderOptions
|
|
63
156
|
*/
|
|
64
|
-
export
|
|
157
|
+
export class KeyProviderOptions extends Message<KeyProviderOptions> {
|
|
65
158
|
/**
|
|
66
159
|
* Only specify if you want to use a shared_key
|
|
67
160
|
*
|
|
68
161
|
* @generated from field: optional bytes shared_key = 1;
|
|
69
162
|
*/
|
|
70
|
-
sharedKey
|
|
163
|
+
sharedKey?: Uint8Array;
|
|
71
164
|
|
|
72
165
|
/**
|
|
73
166
|
* @generated from field: required int32 ratchet_window_size = 2;
|
|
74
167
|
*/
|
|
75
|
-
ratchetWindowSize
|
|
168
|
+
ratchetWindowSize?: number;
|
|
76
169
|
|
|
77
170
|
/**
|
|
78
171
|
* @generated from field: required bytes ratchet_salt = 3;
|
|
79
172
|
*/
|
|
80
|
-
ratchetSalt
|
|
173
|
+
ratchetSalt?: Uint8Array;
|
|
81
174
|
|
|
82
175
|
/**
|
|
83
176
|
* -1 = no tolerance
|
|
84
177
|
*
|
|
85
178
|
* @generated from field: required int32 failure_tolerance = 4;
|
|
86
179
|
*/
|
|
87
|
-
failureTolerance
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
180
|
+
failureTolerance?: number;
|
|
181
|
+
|
|
182
|
+
constructor(data?: PartialMessage<KeyProviderOptions>) {
|
|
183
|
+
super();
|
|
184
|
+
proto2.util.initPartial(data, this);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
static readonly runtime: typeof proto2 = proto2;
|
|
188
|
+
static readonly typeName = "livekit.proto.KeyProviderOptions";
|
|
189
|
+
static readonly fields: FieldList = proto2.util.newFieldList(() => [
|
|
190
|
+
{ no: 1, name: "shared_key", kind: "scalar", T: 12 /* ScalarType.BYTES */, opt: true },
|
|
191
|
+
{ no: 2, name: "ratchet_window_size", kind: "scalar", T: 5 /* ScalarType.INT32 */, req: true },
|
|
192
|
+
{ no: 3, name: "ratchet_salt", kind: "scalar", T: 12 /* ScalarType.BYTES */, req: true },
|
|
193
|
+
{ no: 4, name: "failure_tolerance", kind: "scalar", T: 5 /* ScalarType.INT32 */, req: true },
|
|
194
|
+
]);
|
|
195
|
+
|
|
196
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): KeyProviderOptions {
|
|
197
|
+
return new KeyProviderOptions().fromBinary(bytes, options);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): KeyProviderOptions {
|
|
201
|
+
return new KeyProviderOptions().fromJson(jsonValue, options);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): KeyProviderOptions {
|
|
205
|
+
return new KeyProviderOptions().fromJsonString(jsonString, options);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
static equals(a: KeyProviderOptions | PlainMessage<KeyProviderOptions> | undefined, b: KeyProviderOptions | PlainMessage<KeyProviderOptions> | undefined): boolean {
|
|
209
|
+
return proto2.util.equals(KeyProviderOptions, a, b);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
96
212
|
|
|
97
213
|
/**
|
|
98
214
|
* @generated from message livekit.proto.E2eeOptions
|
|
99
215
|
*/
|
|
100
|
-
export
|
|
216
|
+
export class E2eeOptions extends Message<E2eeOptions> {
|
|
101
217
|
/**
|
|
102
218
|
* @generated from field: required livekit.proto.EncryptionType encryption_type = 1;
|
|
103
219
|
*/
|
|
104
|
-
encryptionType
|
|
220
|
+
encryptionType?: EncryptionType;
|
|
105
221
|
|
|
106
222
|
/**
|
|
107
223
|
* @generated from field: required livekit.proto.KeyProviderOptions key_provider_options = 2;
|
|
108
224
|
*/
|
|
109
225
|
keyProviderOptions?: KeyProviderOptions;
|
|
110
|
-
};
|
|
111
226
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
227
|
+
constructor(data?: PartialMessage<E2eeOptions>) {
|
|
228
|
+
super();
|
|
229
|
+
proto2.util.initPartial(data, this);
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
static readonly runtime: typeof proto2 = proto2;
|
|
233
|
+
static readonly typeName = "livekit.proto.E2eeOptions";
|
|
234
|
+
static readonly fields: FieldList = proto2.util.newFieldList(() => [
|
|
235
|
+
{ no: 1, name: "encryption_type", kind: "enum", T: proto2.getEnumType(EncryptionType), req: true },
|
|
236
|
+
{ no: 2, name: "key_provider_options", kind: "message", T: KeyProviderOptions, req: true },
|
|
237
|
+
]);
|
|
238
|
+
|
|
239
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): E2eeOptions {
|
|
240
|
+
return new E2eeOptions().fromBinary(bytes, options);
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): E2eeOptions {
|
|
244
|
+
return new E2eeOptions().fromJson(jsonValue, options);
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): E2eeOptions {
|
|
248
|
+
return new E2eeOptions().fromJsonString(jsonString, options);
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
static equals(a: E2eeOptions | PlainMessage<E2eeOptions> | undefined, b: E2eeOptions | PlainMessage<E2eeOptions> | undefined): boolean {
|
|
252
|
+
return proto2.util.equals(E2eeOptions, a, b);
|
|
253
|
+
}
|
|
254
|
+
}
|
|
118
255
|
|
|
119
256
|
/**
|
|
120
257
|
* @generated from message livekit.proto.E2eeManagerSetEnabledRequest
|
|
121
258
|
*/
|
|
122
|
-
export
|
|
259
|
+
export class E2eeManagerSetEnabledRequest extends Message<E2eeManagerSetEnabledRequest> {
|
|
123
260
|
/**
|
|
124
261
|
* @generated from field: required bool enabled = 1;
|
|
125
262
|
*/
|
|
126
|
-
enabled
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
263
|
+
enabled?: boolean;
|
|
264
|
+
|
|
265
|
+
constructor(data?: PartialMessage<E2eeManagerSetEnabledRequest>) {
|
|
266
|
+
super();
|
|
267
|
+
proto2.util.initPartial(data, this);
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
static readonly runtime: typeof proto2 = proto2;
|
|
271
|
+
static readonly typeName = "livekit.proto.E2eeManagerSetEnabledRequest";
|
|
272
|
+
static readonly fields: FieldList = proto2.util.newFieldList(() => [
|
|
273
|
+
{ no: 1, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true },
|
|
274
|
+
]);
|
|
275
|
+
|
|
276
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): E2eeManagerSetEnabledRequest {
|
|
277
|
+
return new E2eeManagerSetEnabledRequest().fromBinary(bytes, options);
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): E2eeManagerSetEnabledRequest {
|
|
281
|
+
return new E2eeManagerSetEnabledRequest().fromJson(jsonValue, options);
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): E2eeManagerSetEnabledRequest {
|
|
285
|
+
return new E2eeManagerSetEnabledRequest().fromJsonString(jsonString, options);
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
static equals(a: E2eeManagerSetEnabledRequest | PlainMessage<E2eeManagerSetEnabledRequest> | undefined, b: E2eeManagerSetEnabledRequest | PlainMessage<E2eeManagerSetEnabledRequest> | undefined): boolean {
|
|
289
|
+
return proto2.util.equals(E2eeManagerSetEnabledRequest, a, b);
|
|
290
|
+
}
|
|
291
|
+
}
|
|
135
292
|
|
|
136
293
|
/**
|
|
137
294
|
* @generated from message livekit.proto.E2eeManagerSetEnabledResponse
|
|
138
295
|
*/
|
|
139
|
-
export
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
296
|
+
export class E2eeManagerSetEnabledResponse extends Message<E2eeManagerSetEnabledResponse> {
|
|
297
|
+
constructor(data?: PartialMessage<E2eeManagerSetEnabledResponse>) {
|
|
298
|
+
super();
|
|
299
|
+
proto2.util.initPartial(data, this);
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
static readonly runtime: typeof proto2 = proto2;
|
|
303
|
+
static readonly typeName = "livekit.proto.E2eeManagerSetEnabledResponse";
|
|
304
|
+
static readonly fields: FieldList = proto2.util.newFieldList(() => [
|
|
305
|
+
]);
|
|
306
|
+
|
|
307
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): E2eeManagerSetEnabledResponse {
|
|
308
|
+
return new E2eeManagerSetEnabledResponse().fromBinary(bytes, options);
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): E2eeManagerSetEnabledResponse {
|
|
312
|
+
return new E2eeManagerSetEnabledResponse().fromJson(jsonValue, options);
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): E2eeManagerSetEnabledResponse {
|
|
316
|
+
return new E2eeManagerSetEnabledResponse().fromJsonString(jsonString, options);
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
static equals(a: E2eeManagerSetEnabledResponse | PlainMessage<E2eeManagerSetEnabledResponse> | undefined, b: E2eeManagerSetEnabledResponse | PlainMessage<E2eeManagerSetEnabledResponse> | undefined): boolean {
|
|
320
|
+
return proto2.util.equals(E2eeManagerSetEnabledResponse, a, b);
|
|
321
|
+
}
|
|
322
|
+
}
|
|
148
323
|
|
|
149
324
|
/**
|
|
150
325
|
* @generated from message livekit.proto.E2eeManagerGetFrameCryptorsRequest
|
|
151
326
|
*/
|
|
152
|
-
export
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
327
|
+
export class E2eeManagerGetFrameCryptorsRequest extends Message<E2eeManagerGetFrameCryptorsRequest> {
|
|
328
|
+
constructor(data?: PartialMessage<E2eeManagerGetFrameCryptorsRequest>) {
|
|
329
|
+
super();
|
|
330
|
+
proto2.util.initPartial(data, this);
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
static readonly runtime: typeof proto2 = proto2;
|
|
334
|
+
static readonly typeName = "livekit.proto.E2eeManagerGetFrameCryptorsRequest";
|
|
335
|
+
static readonly fields: FieldList = proto2.util.newFieldList(() => [
|
|
336
|
+
]);
|
|
337
|
+
|
|
338
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): E2eeManagerGetFrameCryptorsRequest {
|
|
339
|
+
return new E2eeManagerGetFrameCryptorsRequest().fromBinary(bytes, options);
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): E2eeManagerGetFrameCryptorsRequest {
|
|
343
|
+
return new E2eeManagerGetFrameCryptorsRequest().fromJson(jsonValue, options);
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): E2eeManagerGetFrameCryptorsRequest {
|
|
347
|
+
return new E2eeManagerGetFrameCryptorsRequest().fromJsonString(jsonString, options);
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
static equals(a: E2eeManagerGetFrameCryptorsRequest | PlainMessage<E2eeManagerGetFrameCryptorsRequest> | undefined, b: E2eeManagerGetFrameCryptorsRequest | PlainMessage<E2eeManagerGetFrameCryptorsRequest> | undefined): boolean {
|
|
351
|
+
return proto2.util.equals(E2eeManagerGetFrameCryptorsRequest, a, b);
|
|
352
|
+
}
|
|
353
|
+
}
|
|
161
354
|
|
|
162
355
|
/**
|
|
163
356
|
* @generated from message livekit.proto.E2eeManagerGetFrameCryptorsResponse
|
|
164
357
|
*/
|
|
165
|
-
export
|
|
358
|
+
export class E2eeManagerGetFrameCryptorsResponse extends Message<E2eeManagerGetFrameCryptorsResponse> {
|
|
166
359
|
/**
|
|
167
360
|
* @generated from field: repeated livekit.proto.FrameCryptor frame_cryptors = 1;
|
|
168
361
|
*/
|
|
169
|
-
frameCryptors: FrameCryptor[];
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
362
|
+
frameCryptors: FrameCryptor[] = [];
|
|
363
|
+
|
|
364
|
+
constructor(data?: PartialMessage<E2eeManagerGetFrameCryptorsResponse>) {
|
|
365
|
+
super();
|
|
366
|
+
proto2.util.initPartial(data, this);
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
static readonly runtime: typeof proto2 = proto2;
|
|
370
|
+
static readonly typeName = "livekit.proto.E2eeManagerGetFrameCryptorsResponse";
|
|
371
|
+
static readonly fields: FieldList = proto2.util.newFieldList(() => [
|
|
372
|
+
{ no: 1, name: "frame_cryptors", kind: "message", T: FrameCryptor, repeated: true },
|
|
373
|
+
]);
|
|
374
|
+
|
|
375
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): E2eeManagerGetFrameCryptorsResponse {
|
|
376
|
+
return new E2eeManagerGetFrameCryptorsResponse().fromBinary(bytes, options);
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): E2eeManagerGetFrameCryptorsResponse {
|
|
380
|
+
return new E2eeManagerGetFrameCryptorsResponse().fromJson(jsonValue, options);
|
|
381
|
+
}
|
|
382
|
+
|
|
383
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): E2eeManagerGetFrameCryptorsResponse {
|
|
384
|
+
return new E2eeManagerGetFrameCryptorsResponse().fromJsonString(jsonString, options);
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
static equals(a: E2eeManagerGetFrameCryptorsResponse | PlainMessage<E2eeManagerGetFrameCryptorsResponse> | undefined, b: E2eeManagerGetFrameCryptorsResponse | PlainMessage<E2eeManagerGetFrameCryptorsResponse> | undefined): boolean {
|
|
388
|
+
return proto2.util.equals(E2eeManagerGetFrameCryptorsResponse, a, b);
|
|
389
|
+
}
|
|
390
|
+
}
|
|
178
391
|
|
|
179
392
|
/**
|
|
180
393
|
* @generated from message livekit.proto.FrameCryptorSetEnabledRequest
|
|
181
394
|
*/
|
|
182
|
-
export
|
|
395
|
+
export class FrameCryptorSetEnabledRequest extends Message<FrameCryptorSetEnabledRequest> {
|
|
183
396
|
/**
|
|
184
397
|
* @generated from field: required string participant_identity = 1;
|
|
185
398
|
*/
|
|
186
|
-
participantIdentity
|
|
399
|
+
participantIdentity?: string;
|
|
187
400
|
|
|
188
401
|
/**
|
|
189
402
|
* @generated from field: required string track_sid = 2;
|
|
190
403
|
*/
|
|
191
|
-
trackSid
|
|
404
|
+
trackSid?: string;
|
|
192
405
|
|
|
193
406
|
/**
|
|
194
407
|
* @generated from field: required bool enabled = 3;
|
|
195
408
|
*/
|
|
196
|
-
enabled
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
409
|
+
enabled?: boolean;
|
|
410
|
+
|
|
411
|
+
constructor(data?: PartialMessage<FrameCryptorSetEnabledRequest>) {
|
|
412
|
+
super();
|
|
413
|
+
proto2.util.initPartial(data, this);
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
static readonly runtime: typeof proto2 = proto2;
|
|
417
|
+
static readonly typeName = "livekit.proto.FrameCryptorSetEnabledRequest";
|
|
418
|
+
static readonly fields: FieldList = proto2.util.newFieldList(() => [
|
|
419
|
+
{ no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true },
|
|
420
|
+
{ no: 2, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true },
|
|
421
|
+
{ no: 3, name: "enabled", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true },
|
|
422
|
+
]);
|
|
423
|
+
|
|
424
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FrameCryptorSetEnabledRequest {
|
|
425
|
+
return new FrameCryptorSetEnabledRequest().fromBinary(bytes, options);
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FrameCryptorSetEnabledRequest {
|
|
429
|
+
return new FrameCryptorSetEnabledRequest().fromJson(jsonValue, options);
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FrameCryptorSetEnabledRequest {
|
|
433
|
+
return new FrameCryptorSetEnabledRequest().fromJsonString(jsonString, options);
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
static equals(a: FrameCryptorSetEnabledRequest | PlainMessage<FrameCryptorSetEnabledRequest> | undefined, b: FrameCryptorSetEnabledRequest | PlainMessage<FrameCryptorSetEnabledRequest> | undefined): boolean {
|
|
437
|
+
return proto2.util.equals(FrameCryptorSetEnabledRequest, a, b);
|
|
438
|
+
}
|
|
439
|
+
}
|
|
205
440
|
|
|
206
441
|
/**
|
|
207
442
|
* @generated from message livekit.proto.FrameCryptorSetEnabledResponse
|
|
208
443
|
*/
|
|
209
|
-
export
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
444
|
+
export class FrameCryptorSetEnabledResponse extends Message<FrameCryptorSetEnabledResponse> {
|
|
445
|
+
constructor(data?: PartialMessage<FrameCryptorSetEnabledResponse>) {
|
|
446
|
+
super();
|
|
447
|
+
proto2.util.initPartial(data, this);
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
static readonly runtime: typeof proto2 = proto2;
|
|
451
|
+
static readonly typeName = "livekit.proto.FrameCryptorSetEnabledResponse";
|
|
452
|
+
static readonly fields: FieldList = proto2.util.newFieldList(() => [
|
|
453
|
+
]);
|
|
454
|
+
|
|
455
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FrameCryptorSetEnabledResponse {
|
|
456
|
+
return new FrameCryptorSetEnabledResponse().fromBinary(bytes, options);
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FrameCryptorSetEnabledResponse {
|
|
460
|
+
return new FrameCryptorSetEnabledResponse().fromJson(jsonValue, options);
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FrameCryptorSetEnabledResponse {
|
|
464
|
+
return new FrameCryptorSetEnabledResponse().fromJsonString(jsonString, options);
|
|
465
|
+
}
|
|
466
|
+
|
|
467
|
+
static equals(a: FrameCryptorSetEnabledResponse | PlainMessage<FrameCryptorSetEnabledResponse> | undefined, b: FrameCryptorSetEnabledResponse | PlainMessage<FrameCryptorSetEnabledResponse> | undefined): boolean {
|
|
468
|
+
return proto2.util.equals(FrameCryptorSetEnabledResponse, a, b);
|
|
469
|
+
}
|
|
470
|
+
}
|
|
218
471
|
|
|
219
472
|
/**
|
|
220
473
|
* @generated from message livekit.proto.FrameCryptorSetKeyIndexRequest
|
|
221
474
|
*/
|
|
222
|
-
export
|
|
475
|
+
export class FrameCryptorSetKeyIndexRequest extends Message<FrameCryptorSetKeyIndexRequest> {
|
|
223
476
|
/**
|
|
224
477
|
* @generated from field: required string participant_identity = 1;
|
|
225
478
|
*/
|
|
226
|
-
participantIdentity
|
|
479
|
+
participantIdentity?: string;
|
|
227
480
|
|
|
228
481
|
/**
|
|
229
482
|
* @generated from field: required string track_sid = 2;
|
|
230
483
|
*/
|
|
231
|
-
trackSid
|
|
484
|
+
trackSid?: string;
|
|
232
485
|
|
|
233
486
|
/**
|
|
234
487
|
* @generated from field: required int32 key_index = 3;
|
|
235
488
|
*/
|
|
236
|
-
keyIndex
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
489
|
+
keyIndex?: number;
|
|
490
|
+
|
|
491
|
+
constructor(data?: PartialMessage<FrameCryptorSetKeyIndexRequest>) {
|
|
492
|
+
super();
|
|
493
|
+
proto2.util.initPartial(data, this);
|
|
494
|
+
}
|
|
495
|
+
|
|
496
|
+
static readonly runtime: typeof proto2 = proto2;
|
|
497
|
+
static readonly typeName = "livekit.proto.FrameCryptorSetKeyIndexRequest";
|
|
498
|
+
static readonly fields: FieldList = proto2.util.newFieldList(() => [
|
|
499
|
+
{ no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true },
|
|
500
|
+
{ no: 2, name: "track_sid", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true },
|
|
501
|
+
{ no: 3, name: "key_index", kind: "scalar", T: 5 /* ScalarType.INT32 */, req: true },
|
|
502
|
+
]);
|
|
503
|
+
|
|
504
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FrameCryptorSetKeyIndexRequest {
|
|
505
|
+
return new FrameCryptorSetKeyIndexRequest().fromBinary(bytes, options);
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FrameCryptorSetKeyIndexRequest {
|
|
509
|
+
return new FrameCryptorSetKeyIndexRequest().fromJson(jsonValue, options);
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FrameCryptorSetKeyIndexRequest {
|
|
513
|
+
return new FrameCryptorSetKeyIndexRequest().fromJsonString(jsonString, options);
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
static equals(a: FrameCryptorSetKeyIndexRequest | PlainMessage<FrameCryptorSetKeyIndexRequest> | undefined, b: FrameCryptorSetKeyIndexRequest | PlainMessage<FrameCryptorSetKeyIndexRequest> | undefined): boolean {
|
|
517
|
+
return proto2.util.equals(FrameCryptorSetKeyIndexRequest, a, b);
|
|
518
|
+
}
|
|
519
|
+
}
|
|
245
520
|
|
|
246
521
|
/**
|
|
247
522
|
* @generated from message livekit.proto.FrameCryptorSetKeyIndexResponse
|
|
248
523
|
*/
|
|
249
|
-
export
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
524
|
+
export class FrameCryptorSetKeyIndexResponse extends Message<FrameCryptorSetKeyIndexResponse> {
|
|
525
|
+
constructor(data?: PartialMessage<FrameCryptorSetKeyIndexResponse>) {
|
|
526
|
+
super();
|
|
527
|
+
proto2.util.initPartial(data, this);
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
static readonly runtime: typeof proto2 = proto2;
|
|
531
|
+
static readonly typeName = "livekit.proto.FrameCryptorSetKeyIndexResponse";
|
|
532
|
+
static readonly fields: FieldList = proto2.util.newFieldList(() => [
|
|
533
|
+
]);
|
|
534
|
+
|
|
535
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FrameCryptorSetKeyIndexResponse {
|
|
536
|
+
return new FrameCryptorSetKeyIndexResponse().fromBinary(bytes, options);
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FrameCryptorSetKeyIndexResponse {
|
|
540
|
+
return new FrameCryptorSetKeyIndexResponse().fromJson(jsonValue, options);
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FrameCryptorSetKeyIndexResponse {
|
|
544
|
+
return new FrameCryptorSetKeyIndexResponse().fromJsonString(jsonString, options);
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
static equals(a: FrameCryptorSetKeyIndexResponse | PlainMessage<FrameCryptorSetKeyIndexResponse> | undefined, b: FrameCryptorSetKeyIndexResponse | PlainMessage<FrameCryptorSetKeyIndexResponse> | undefined): boolean {
|
|
548
|
+
return proto2.util.equals(FrameCryptorSetKeyIndexResponse, a, b);
|
|
549
|
+
}
|
|
550
|
+
}
|
|
258
551
|
|
|
259
552
|
/**
|
|
260
553
|
* @generated from message livekit.proto.SetSharedKeyRequest
|
|
261
554
|
*/
|
|
262
|
-
export
|
|
555
|
+
export class SetSharedKeyRequest extends Message<SetSharedKeyRequest> {
|
|
263
556
|
/**
|
|
264
557
|
* @generated from field: required bytes shared_key = 1;
|
|
265
558
|
*/
|
|
266
|
-
sharedKey
|
|
559
|
+
sharedKey?: Uint8Array;
|
|
267
560
|
|
|
268
561
|
/**
|
|
269
562
|
* @generated from field: required int32 key_index = 2;
|
|
270
563
|
*/
|
|
271
|
-
keyIndex
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
564
|
+
keyIndex?: number;
|
|
565
|
+
|
|
566
|
+
constructor(data?: PartialMessage<SetSharedKeyRequest>) {
|
|
567
|
+
super();
|
|
568
|
+
proto2.util.initPartial(data, this);
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
static readonly runtime: typeof proto2 = proto2;
|
|
572
|
+
static readonly typeName = "livekit.proto.SetSharedKeyRequest";
|
|
573
|
+
static readonly fields: FieldList = proto2.util.newFieldList(() => [
|
|
574
|
+
{ no: 1, name: "shared_key", kind: "scalar", T: 12 /* ScalarType.BYTES */, req: true },
|
|
575
|
+
{ no: 2, name: "key_index", kind: "scalar", T: 5 /* ScalarType.INT32 */, req: true },
|
|
576
|
+
]);
|
|
577
|
+
|
|
578
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SetSharedKeyRequest {
|
|
579
|
+
return new SetSharedKeyRequest().fromBinary(bytes, options);
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SetSharedKeyRequest {
|
|
583
|
+
return new SetSharedKeyRequest().fromJson(jsonValue, options);
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SetSharedKeyRequest {
|
|
587
|
+
return new SetSharedKeyRequest().fromJsonString(jsonString, options);
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
static equals(a: SetSharedKeyRequest | PlainMessage<SetSharedKeyRequest> | undefined, b: SetSharedKeyRequest | PlainMessage<SetSharedKeyRequest> | undefined): boolean {
|
|
591
|
+
return proto2.util.equals(SetSharedKeyRequest, a, b);
|
|
592
|
+
}
|
|
593
|
+
}
|
|
280
594
|
|
|
281
595
|
/**
|
|
282
596
|
* @generated from message livekit.proto.SetSharedKeyResponse
|
|
283
597
|
*/
|
|
284
|
-
export
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
598
|
+
export class SetSharedKeyResponse extends Message<SetSharedKeyResponse> {
|
|
599
|
+
constructor(data?: PartialMessage<SetSharedKeyResponse>) {
|
|
600
|
+
super();
|
|
601
|
+
proto2.util.initPartial(data, this);
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
static readonly runtime: typeof proto2 = proto2;
|
|
605
|
+
static readonly typeName = "livekit.proto.SetSharedKeyResponse";
|
|
606
|
+
static readonly fields: FieldList = proto2.util.newFieldList(() => [
|
|
607
|
+
]);
|
|
608
|
+
|
|
609
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SetSharedKeyResponse {
|
|
610
|
+
return new SetSharedKeyResponse().fromBinary(bytes, options);
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SetSharedKeyResponse {
|
|
614
|
+
return new SetSharedKeyResponse().fromJson(jsonValue, options);
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SetSharedKeyResponse {
|
|
618
|
+
return new SetSharedKeyResponse().fromJsonString(jsonString, options);
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
static equals(a: SetSharedKeyResponse | PlainMessage<SetSharedKeyResponse> | undefined, b: SetSharedKeyResponse | PlainMessage<SetSharedKeyResponse> | undefined): boolean {
|
|
622
|
+
return proto2.util.equals(SetSharedKeyResponse, a, b);
|
|
623
|
+
}
|
|
624
|
+
}
|
|
293
625
|
|
|
294
626
|
/**
|
|
295
627
|
* @generated from message livekit.proto.RatchetSharedKeyRequest
|
|
296
628
|
*/
|
|
297
|
-
export
|
|
629
|
+
export class RatchetSharedKeyRequest extends Message<RatchetSharedKeyRequest> {
|
|
298
630
|
/**
|
|
299
631
|
* @generated from field: required int32 key_index = 1;
|
|
300
632
|
*/
|
|
301
|
-
keyIndex
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
633
|
+
keyIndex?: number;
|
|
634
|
+
|
|
635
|
+
constructor(data?: PartialMessage<RatchetSharedKeyRequest>) {
|
|
636
|
+
super();
|
|
637
|
+
proto2.util.initPartial(data, this);
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
static readonly runtime: typeof proto2 = proto2;
|
|
641
|
+
static readonly typeName = "livekit.proto.RatchetSharedKeyRequest";
|
|
642
|
+
static readonly fields: FieldList = proto2.util.newFieldList(() => [
|
|
643
|
+
{ no: 1, name: "key_index", kind: "scalar", T: 5 /* ScalarType.INT32 */, req: true },
|
|
644
|
+
]);
|
|
645
|
+
|
|
646
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RatchetSharedKeyRequest {
|
|
647
|
+
return new RatchetSharedKeyRequest().fromBinary(bytes, options);
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RatchetSharedKeyRequest {
|
|
651
|
+
return new RatchetSharedKeyRequest().fromJson(jsonValue, options);
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RatchetSharedKeyRequest {
|
|
655
|
+
return new RatchetSharedKeyRequest().fromJsonString(jsonString, options);
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
static equals(a: RatchetSharedKeyRequest | PlainMessage<RatchetSharedKeyRequest> | undefined, b: RatchetSharedKeyRequest | PlainMessage<RatchetSharedKeyRequest> | undefined): boolean {
|
|
659
|
+
return proto2.util.equals(RatchetSharedKeyRequest, a, b);
|
|
660
|
+
}
|
|
661
|
+
}
|
|
310
662
|
|
|
311
663
|
/**
|
|
312
664
|
* @generated from message livekit.proto.RatchetSharedKeyResponse
|
|
313
665
|
*/
|
|
314
|
-
export
|
|
666
|
+
export class RatchetSharedKeyResponse extends Message<RatchetSharedKeyResponse> {
|
|
315
667
|
/**
|
|
316
668
|
* @generated from field: optional bytes new_key = 1;
|
|
317
669
|
*/
|
|
318
|
-
newKey
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
670
|
+
newKey?: Uint8Array;
|
|
671
|
+
|
|
672
|
+
constructor(data?: PartialMessage<RatchetSharedKeyResponse>) {
|
|
673
|
+
super();
|
|
674
|
+
proto2.util.initPartial(data, this);
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
static readonly runtime: typeof proto2 = proto2;
|
|
678
|
+
static readonly typeName = "livekit.proto.RatchetSharedKeyResponse";
|
|
679
|
+
static readonly fields: FieldList = proto2.util.newFieldList(() => [
|
|
680
|
+
{ no: 1, name: "new_key", kind: "scalar", T: 12 /* ScalarType.BYTES */, opt: true },
|
|
681
|
+
]);
|
|
682
|
+
|
|
683
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RatchetSharedKeyResponse {
|
|
684
|
+
return new RatchetSharedKeyResponse().fromBinary(bytes, options);
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RatchetSharedKeyResponse {
|
|
688
|
+
return new RatchetSharedKeyResponse().fromJson(jsonValue, options);
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RatchetSharedKeyResponse {
|
|
692
|
+
return new RatchetSharedKeyResponse().fromJsonString(jsonString, options);
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
static equals(a: RatchetSharedKeyResponse | PlainMessage<RatchetSharedKeyResponse> | undefined, b: RatchetSharedKeyResponse | PlainMessage<RatchetSharedKeyResponse> | undefined): boolean {
|
|
696
|
+
return proto2.util.equals(RatchetSharedKeyResponse, a, b);
|
|
697
|
+
}
|
|
698
|
+
}
|
|
327
699
|
|
|
328
700
|
/**
|
|
329
701
|
* @generated from message livekit.proto.GetSharedKeyRequest
|
|
330
702
|
*/
|
|
331
|
-
export
|
|
703
|
+
export class GetSharedKeyRequest extends Message<GetSharedKeyRequest> {
|
|
332
704
|
/**
|
|
333
705
|
* @generated from field: required int32 key_index = 1;
|
|
334
706
|
*/
|
|
335
|
-
keyIndex
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
707
|
+
keyIndex?: number;
|
|
708
|
+
|
|
709
|
+
constructor(data?: PartialMessage<GetSharedKeyRequest>) {
|
|
710
|
+
super();
|
|
711
|
+
proto2.util.initPartial(data, this);
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
static readonly runtime: typeof proto2 = proto2;
|
|
715
|
+
static readonly typeName = "livekit.proto.GetSharedKeyRequest";
|
|
716
|
+
static readonly fields: FieldList = proto2.util.newFieldList(() => [
|
|
717
|
+
{ no: 1, name: "key_index", kind: "scalar", T: 5 /* ScalarType.INT32 */, req: true },
|
|
718
|
+
]);
|
|
719
|
+
|
|
720
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetSharedKeyRequest {
|
|
721
|
+
return new GetSharedKeyRequest().fromBinary(bytes, options);
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetSharedKeyRequest {
|
|
725
|
+
return new GetSharedKeyRequest().fromJson(jsonValue, options);
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetSharedKeyRequest {
|
|
729
|
+
return new GetSharedKeyRequest().fromJsonString(jsonString, options);
|
|
730
|
+
}
|
|
731
|
+
|
|
732
|
+
static equals(a: GetSharedKeyRequest | PlainMessage<GetSharedKeyRequest> | undefined, b: GetSharedKeyRequest | PlainMessage<GetSharedKeyRequest> | undefined): boolean {
|
|
733
|
+
return proto2.util.equals(GetSharedKeyRequest, a, b);
|
|
734
|
+
}
|
|
735
|
+
}
|
|
344
736
|
|
|
345
737
|
/**
|
|
346
738
|
* @generated from message livekit.proto.GetSharedKeyResponse
|
|
347
739
|
*/
|
|
348
|
-
export
|
|
740
|
+
export class GetSharedKeyResponse extends Message<GetSharedKeyResponse> {
|
|
349
741
|
/**
|
|
350
742
|
* @generated from field: optional bytes key = 1;
|
|
351
743
|
*/
|
|
352
|
-
key
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
744
|
+
key?: Uint8Array;
|
|
745
|
+
|
|
746
|
+
constructor(data?: PartialMessage<GetSharedKeyResponse>) {
|
|
747
|
+
super();
|
|
748
|
+
proto2.util.initPartial(data, this);
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
static readonly runtime: typeof proto2 = proto2;
|
|
752
|
+
static readonly typeName = "livekit.proto.GetSharedKeyResponse";
|
|
753
|
+
static readonly fields: FieldList = proto2.util.newFieldList(() => [
|
|
754
|
+
{ no: 1, name: "key", kind: "scalar", T: 12 /* ScalarType.BYTES */, opt: true },
|
|
755
|
+
]);
|
|
756
|
+
|
|
757
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetSharedKeyResponse {
|
|
758
|
+
return new GetSharedKeyResponse().fromBinary(bytes, options);
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetSharedKeyResponse {
|
|
762
|
+
return new GetSharedKeyResponse().fromJson(jsonValue, options);
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetSharedKeyResponse {
|
|
766
|
+
return new GetSharedKeyResponse().fromJsonString(jsonString, options);
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
static equals(a: GetSharedKeyResponse | PlainMessage<GetSharedKeyResponse> | undefined, b: GetSharedKeyResponse | PlainMessage<GetSharedKeyResponse> | undefined): boolean {
|
|
770
|
+
return proto2.util.equals(GetSharedKeyResponse, a, b);
|
|
771
|
+
}
|
|
772
|
+
}
|
|
361
773
|
|
|
362
774
|
/**
|
|
363
775
|
* @generated from message livekit.proto.SetKeyRequest
|
|
364
776
|
*/
|
|
365
|
-
export
|
|
777
|
+
export class SetKeyRequest extends Message<SetKeyRequest> {
|
|
366
778
|
/**
|
|
367
779
|
* @generated from field: required string participant_identity = 1;
|
|
368
780
|
*/
|
|
369
|
-
participantIdentity
|
|
781
|
+
participantIdentity?: string;
|
|
370
782
|
|
|
371
783
|
/**
|
|
372
784
|
* @generated from field: required bytes key = 2;
|
|
373
785
|
*/
|
|
374
|
-
key
|
|
786
|
+
key?: Uint8Array;
|
|
375
787
|
|
|
376
788
|
/**
|
|
377
789
|
* @generated from field: required int32 key_index = 3;
|
|
378
790
|
*/
|
|
379
|
-
keyIndex
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
791
|
+
keyIndex?: number;
|
|
792
|
+
|
|
793
|
+
constructor(data?: PartialMessage<SetKeyRequest>) {
|
|
794
|
+
super();
|
|
795
|
+
proto2.util.initPartial(data, this);
|
|
796
|
+
}
|
|
797
|
+
|
|
798
|
+
static readonly runtime: typeof proto2 = proto2;
|
|
799
|
+
static readonly typeName = "livekit.proto.SetKeyRequest";
|
|
800
|
+
static readonly fields: FieldList = proto2.util.newFieldList(() => [
|
|
801
|
+
{ no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true },
|
|
802
|
+
{ no: 2, name: "key", kind: "scalar", T: 12 /* ScalarType.BYTES */, req: true },
|
|
803
|
+
{ no: 3, name: "key_index", kind: "scalar", T: 5 /* ScalarType.INT32 */, req: true },
|
|
804
|
+
]);
|
|
805
|
+
|
|
806
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SetKeyRequest {
|
|
807
|
+
return new SetKeyRequest().fromBinary(bytes, options);
|
|
808
|
+
}
|
|
809
|
+
|
|
810
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SetKeyRequest {
|
|
811
|
+
return new SetKeyRequest().fromJson(jsonValue, options);
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SetKeyRequest {
|
|
815
|
+
return new SetKeyRequest().fromJsonString(jsonString, options);
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
static equals(a: SetKeyRequest | PlainMessage<SetKeyRequest> | undefined, b: SetKeyRequest | PlainMessage<SetKeyRequest> | undefined): boolean {
|
|
819
|
+
return proto2.util.equals(SetKeyRequest, a, b);
|
|
820
|
+
}
|
|
821
|
+
}
|
|
388
822
|
|
|
389
823
|
/**
|
|
390
824
|
* @generated from message livekit.proto.SetKeyResponse
|
|
391
825
|
*/
|
|
392
|
-
export
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
826
|
+
export class SetKeyResponse extends Message<SetKeyResponse> {
|
|
827
|
+
constructor(data?: PartialMessage<SetKeyResponse>) {
|
|
828
|
+
super();
|
|
829
|
+
proto2.util.initPartial(data, this);
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
static readonly runtime: typeof proto2 = proto2;
|
|
833
|
+
static readonly typeName = "livekit.proto.SetKeyResponse";
|
|
834
|
+
static readonly fields: FieldList = proto2.util.newFieldList(() => [
|
|
835
|
+
]);
|
|
836
|
+
|
|
837
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SetKeyResponse {
|
|
838
|
+
return new SetKeyResponse().fromBinary(bytes, options);
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SetKeyResponse {
|
|
842
|
+
return new SetKeyResponse().fromJson(jsonValue, options);
|
|
843
|
+
}
|
|
844
|
+
|
|
845
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SetKeyResponse {
|
|
846
|
+
return new SetKeyResponse().fromJsonString(jsonString, options);
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
static equals(a: SetKeyResponse | PlainMessage<SetKeyResponse> | undefined, b: SetKeyResponse | PlainMessage<SetKeyResponse> | undefined): boolean {
|
|
850
|
+
return proto2.util.equals(SetKeyResponse, a, b);
|
|
851
|
+
}
|
|
852
|
+
}
|
|
401
853
|
|
|
402
854
|
/**
|
|
403
855
|
* @generated from message livekit.proto.RatchetKeyRequest
|
|
404
856
|
*/
|
|
405
|
-
export
|
|
857
|
+
export class RatchetKeyRequest extends Message<RatchetKeyRequest> {
|
|
406
858
|
/**
|
|
407
859
|
* @generated from field: required string participant_identity = 1;
|
|
408
860
|
*/
|
|
409
|
-
participantIdentity
|
|
861
|
+
participantIdentity?: string;
|
|
410
862
|
|
|
411
863
|
/**
|
|
412
864
|
* @generated from field: required int32 key_index = 2;
|
|
413
865
|
*/
|
|
414
|
-
keyIndex
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
866
|
+
keyIndex?: number;
|
|
867
|
+
|
|
868
|
+
constructor(data?: PartialMessage<RatchetKeyRequest>) {
|
|
869
|
+
super();
|
|
870
|
+
proto2.util.initPartial(data, this);
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
static readonly runtime: typeof proto2 = proto2;
|
|
874
|
+
static readonly typeName = "livekit.proto.RatchetKeyRequest";
|
|
875
|
+
static readonly fields: FieldList = proto2.util.newFieldList(() => [
|
|
876
|
+
{ no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true },
|
|
877
|
+
{ no: 2, name: "key_index", kind: "scalar", T: 5 /* ScalarType.INT32 */, req: true },
|
|
878
|
+
]);
|
|
879
|
+
|
|
880
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RatchetKeyRequest {
|
|
881
|
+
return new RatchetKeyRequest().fromBinary(bytes, options);
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RatchetKeyRequest {
|
|
885
|
+
return new RatchetKeyRequest().fromJson(jsonValue, options);
|
|
886
|
+
}
|
|
887
|
+
|
|
888
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RatchetKeyRequest {
|
|
889
|
+
return new RatchetKeyRequest().fromJsonString(jsonString, options);
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
static equals(a: RatchetKeyRequest | PlainMessage<RatchetKeyRequest> | undefined, b: RatchetKeyRequest | PlainMessage<RatchetKeyRequest> | undefined): boolean {
|
|
893
|
+
return proto2.util.equals(RatchetKeyRequest, a, b);
|
|
894
|
+
}
|
|
895
|
+
}
|
|
423
896
|
|
|
424
897
|
/**
|
|
425
898
|
* @generated from message livekit.proto.RatchetKeyResponse
|
|
426
899
|
*/
|
|
427
|
-
export
|
|
900
|
+
export class RatchetKeyResponse extends Message<RatchetKeyResponse> {
|
|
428
901
|
/**
|
|
429
902
|
* @generated from field: optional bytes new_key = 1;
|
|
430
903
|
*/
|
|
431
|
-
newKey
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
904
|
+
newKey?: Uint8Array;
|
|
905
|
+
|
|
906
|
+
constructor(data?: PartialMessage<RatchetKeyResponse>) {
|
|
907
|
+
super();
|
|
908
|
+
proto2.util.initPartial(data, this);
|
|
909
|
+
}
|
|
910
|
+
|
|
911
|
+
static readonly runtime: typeof proto2 = proto2;
|
|
912
|
+
static readonly typeName = "livekit.proto.RatchetKeyResponse";
|
|
913
|
+
static readonly fields: FieldList = proto2.util.newFieldList(() => [
|
|
914
|
+
{ no: 1, name: "new_key", kind: "scalar", T: 12 /* ScalarType.BYTES */, opt: true },
|
|
915
|
+
]);
|
|
916
|
+
|
|
917
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RatchetKeyResponse {
|
|
918
|
+
return new RatchetKeyResponse().fromBinary(bytes, options);
|
|
919
|
+
}
|
|
920
|
+
|
|
921
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RatchetKeyResponse {
|
|
922
|
+
return new RatchetKeyResponse().fromJson(jsonValue, options);
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RatchetKeyResponse {
|
|
926
|
+
return new RatchetKeyResponse().fromJsonString(jsonString, options);
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
static equals(a: RatchetKeyResponse | PlainMessage<RatchetKeyResponse> | undefined, b: RatchetKeyResponse | PlainMessage<RatchetKeyResponse> | undefined): boolean {
|
|
930
|
+
return proto2.util.equals(RatchetKeyResponse, a, b);
|
|
931
|
+
}
|
|
932
|
+
}
|
|
440
933
|
|
|
441
934
|
/**
|
|
442
935
|
* @generated from message livekit.proto.GetKeyRequest
|
|
443
936
|
*/
|
|
444
|
-
export
|
|
937
|
+
export class GetKeyRequest extends Message<GetKeyRequest> {
|
|
445
938
|
/**
|
|
446
939
|
* @generated from field: required string participant_identity = 1;
|
|
447
940
|
*/
|
|
448
|
-
participantIdentity
|
|
941
|
+
participantIdentity?: string;
|
|
449
942
|
|
|
450
943
|
/**
|
|
451
944
|
* @generated from field: required int32 key_index = 2;
|
|
452
945
|
*/
|
|
453
|
-
keyIndex
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
946
|
+
keyIndex?: number;
|
|
947
|
+
|
|
948
|
+
constructor(data?: PartialMessage<GetKeyRequest>) {
|
|
949
|
+
super();
|
|
950
|
+
proto2.util.initPartial(data, this);
|
|
951
|
+
}
|
|
952
|
+
|
|
953
|
+
static readonly runtime: typeof proto2 = proto2;
|
|
954
|
+
static readonly typeName = "livekit.proto.GetKeyRequest";
|
|
955
|
+
static readonly fields: FieldList = proto2.util.newFieldList(() => [
|
|
956
|
+
{ no: 1, name: "participant_identity", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true },
|
|
957
|
+
{ no: 2, name: "key_index", kind: "scalar", T: 5 /* ScalarType.INT32 */, req: true },
|
|
958
|
+
]);
|
|
959
|
+
|
|
960
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetKeyRequest {
|
|
961
|
+
return new GetKeyRequest().fromBinary(bytes, options);
|
|
962
|
+
}
|
|
963
|
+
|
|
964
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetKeyRequest {
|
|
965
|
+
return new GetKeyRequest().fromJson(jsonValue, options);
|
|
966
|
+
}
|
|
967
|
+
|
|
968
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetKeyRequest {
|
|
969
|
+
return new GetKeyRequest().fromJsonString(jsonString, options);
|
|
970
|
+
}
|
|
971
|
+
|
|
972
|
+
static equals(a: GetKeyRequest | PlainMessage<GetKeyRequest> | undefined, b: GetKeyRequest | PlainMessage<GetKeyRequest> | undefined): boolean {
|
|
973
|
+
return proto2.util.equals(GetKeyRequest, a, b);
|
|
974
|
+
}
|
|
975
|
+
}
|
|
462
976
|
|
|
463
977
|
/**
|
|
464
978
|
* @generated from message livekit.proto.GetKeyResponse
|
|
465
979
|
*/
|
|
466
|
-
export
|
|
980
|
+
export class GetKeyResponse extends Message<GetKeyResponse> {
|
|
467
981
|
/**
|
|
468
982
|
* @generated from field: optional bytes key = 1;
|
|
469
983
|
*/
|
|
470
|
-
key
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
984
|
+
key?: Uint8Array;
|
|
985
|
+
|
|
986
|
+
constructor(data?: PartialMessage<GetKeyResponse>) {
|
|
987
|
+
super();
|
|
988
|
+
proto2.util.initPartial(data, this);
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
static readonly runtime: typeof proto2 = proto2;
|
|
992
|
+
static readonly typeName = "livekit.proto.GetKeyResponse";
|
|
993
|
+
static readonly fields: FieldList = proto2.util.newFieldList(() => [
|
|
994
|
+
{ no: 1, name: "key", kind: "scalar", T: 12 /* ScalarType.BYTES */, opt: true },
|
|
995
|
+
]);
|
|
996
|
+
|
|
997
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetKeyResponse {
|
|
998
|
+
return new GetKeyResponse().fromBinary(bytes, options);
|
|
999
|
+
}
|
|
1000
|
+
|
|
1001
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetKeyResponse {
|
|
1002
|
+
return new GetKeyResponse().fromJson(jsonValue, options);
|
|
1003
|
+
}
|
|
1004
|
+
|
|
1005
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetKeyResponse {
|
|
1006
|
+
return new GetKeyResponse().fromJsonString(jsonString, options);
|
|
1007
|
+
}
|
|
1008
|
+
|
|
1009
|
+
static equals(a: GetKeyResponse | PlainMessage<GetKeyResponse> | undefined, b: GetKeyResponse | PlainMessage<GetKeyResponse> | undefined): boolean {
|
|
1010
|
+
return proto2.util.equals(GetKeyResponse, a, b);
|
|
1011
|
+
}
|
|
1012
|
+
}
|
|
479
1013
|
|
|
480
1014
|
/**
|
|
481
1015
|
* @generated from message livekit.proto.E2eeRequest
|
|
482
1016
|
*/
|
|
483
|
-
export
|
|
1017
|
+
export class E2eeRequest extends Message<E2eeRequest> {
|
|
484
1018
|
/**
|
|
485
1019
|
* @generated from field: required uint64 room_handle = 1;
|
|
486
1020
|
*/
|
|
487
|
-
roomHandle
|
|
1021
|
+
roomHandle?: bigint;
|
|
488
1022
|
|
|
489
1023
|
/**
|
|
490
1024
|
* @generated from oneof livekit.proto.E2eeRequest.message
|
|
@@ -549,20 +1083,50 @@ export type E2eeRequest = Message<"livekit.proto.E2eeRequest"> & {
|
|
|
549
1083
|
*/
|
|
550
1084
|
value: GetKeyRequest;
|
|
551
1085
|
case: "getKey";
|
|
552
|
-
} | { case: undefined; value?: undefined };
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
1086
|
+
} | { case: undefined; value?: undefined } = { case: undefined };
|
|
1087
|
+
|
|
1088
|
+
constructor(data?: PartialMessage<E2eeRequest>) {
|
|
1089
|
+
super();
|
|
1090
|
+
proto2.util.initPartial(data, this);
|
|
1091
|
+
}
|
|
1092
|
+
|
|
1093
|
+
static readonly runtime: typeof proto2 = proto2;
|
|
1094
|
+
static readonly typeName = "livekit.proto.E2eeRequest";
|
|
1095
|
+
static readonly fields: FieldList = proto2.util.newFieldList(() => [
|
|
1096
|
+
{ no: 1, name: "room_handle", kind: "scalar", T: 4 /* ScalarType.UINT64 */, req: true },
|
|
1097
|
+
{ no: 2, name: "manager_set_enabled", kind: "message", T: E2eeManagerSetEnabledRequest, oneof: "message" },
|
|
1098
|
+
{ no: 3, name: "manager_get_frame_cryptors", kind: "message", T: E2eeManagerGetFrameCryptorsRequest, oneof: "message" },
|
|
1099
|
+
{ no: 4, name: "cryptor_set_enabled", kind: "message", T: FrameCryptorSetEnabledRequest, oneof: "message" },
|
|
1100
|
+
{ no: 5, name: "cryptor_set_key_index", kind: "message", T: FrameCryptorSetKeyIndexRequest, oneof: "message" },
|
|
1101
|
+
{ no: 6, name: "set_shared_key", kind: "message", T: SetSharedKeyRequest, oneof: "message" },
|
|
1102
|
+
{ no: 7, name: "ratchet_shared_key", kind: "message", T: RatchetSharedKeyRequest, oneof: "message" },
|
|
1103
|
+
{ no: 8, name: "get_shared_key", kind: "message", T: GetSharedKeyRequest, oneof: "message" },
|
|
1104
|
+
{ no: 9, name: "set_key", kind: "message", T: SetKeyRequest, oneof: "message" },
|
|
1105
|
+
{ no: 10, name: "ratchet_key", kind: "message", T: RatchetKeyRequest, oneof: "message" },
|
|
1106
|
+
{ no: 11, name: "get_key", kind: "message", T: GetKeyRequest, oneof: "message" },
|
|
1107
|
+
]);
|
|
1108
|
+
|
|
1109
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): E2eeRequest {
|
|
1110
|
+
return new E2eeRequest().fromBinary(bytes, options);
|
|
1111
|
+
}
|
|
1112
|
+
|
|
1113
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): E2eeRequest {
|
|
1114
|
+
return new E2eeRequest().fromJson(jsonValue, options);
|
|
1115
|
+
}
|
|
1116
|
+
|
|
1117
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): E2eeRequest {
|
|
1118
|
+
return new E2eeRequest().fromJsonString(jsonString, options);
|
|
1119
|
+
}
|
|
1120
|
+
|
|
1121
|
+
static equals(a: E2eeRequest | PlainMessage<E2eeRequest> | undefined, b: E2eeRequest | PlainMessage<E2eeRequest> | undefined): boolean {
|
|
1122
|
+
return proto2.util.equals(E2eeRequest, a, b);
|
|
1123
|
+
}
|
|
1124
|
+
}
|
|
561
1125
|
|
|
562
1126
|
/**
|
|
563
1127
|
* @generated from message livekit.proto.E2eeResponse
|
|
564
1128
|
*/
|
|
565
|
-
export
|
|
1129
|
+
export class E2eeResponse extends Message<E2eeResponse> {
|
|
566
1130
|
/**
|
|
567
1131
|
* @generated from oneof livekit.proto.E2eeResponse.message
|
|
568
1132
|
*/
|
|
@@ -626,85 +1190,42 @@ export type E2eeResponse = Message<"livekit.proto.E2eeResponse"> & {
|
|
|
626
1190
|
*/
|
|
627
1191
|
value: GetKeyResponse;
|
|
628
1192
|
case: "getKey";
|
|
629
|
-
} | { case: undefined; value?: undefined };
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
1193
|
+
} | { case: undefined; value?: undefined } = { case: undefined };
|
|
1194
|
+
|
|
1195
|
+
constructor(data?: PartialMessage<E2eeResponse>) {
|
|
1196
|
+
super();
|
|
1197
|
+
proto2.util.initPartial(data, this);
|
|
1198
|
+
}
|
|
1199
|
+
|
|
1200
|
+
static readonly runtime: typeof proto2 = proto2;
|
|
1201
|
+
static readonly typeName = "livekit.proto.E2eeResponse";
|
|
1202
|
+
static readonly fields: FieldList = proto2.util.newFieldList(() => [
|
|
1203
|
+
{ no: 1, name: "manager_set_enabled", kind: "message", T: E2eeManagerSetEnabledResponse, oneof: "message" },
|
|
1204
|
+
{ no: 2, name: "manager_get_frame_cryptors", kind: "message", T: E2eeManagerGetFrameCryptorsResponse, oneof: "message" },
|
|
1205
|
+
{ no: 3, name: "cryptor_set_enabled", kind: "message", T: FrameCryptorSetEnabledResponse, oneof: "message" },
|
|
1206
|
+
{ no: 4, name: "cryptor_set_key_index", kind: "message", T: FrameCryptorSetKeyIndexResponse, oneof: "message" },
|
|
1207
|
+
{ no: 5, name: "set_shared_key", kind: "message", T: SetSharedKeyResponse, oneof: "message" },
|
|
1208
|
+
{ no: 6, name: "ratchet_shared_key", kind: "message", T: RatchetSharedKeyResponse, oneof: "message" },
|
|
1209
|
+
{ no: 7, name: "get_shared_key", kind: "message", T: GetSharedKeyResponse, oneof: "message" },
|
|
1210
|
+
{ no: 8, name: "set_key", kind: "message", T: SetKeyResponse, oneof: "message" },
|
|
1211
|
+
{ no: 9, name: "ratchet_key", kind: "message", T: RatchetKeyResponse, oneof: "message" },
|
|
1212
|
+
{ no: 10, name: "get_key", kind: "message", T: GetKeyResponse, oneof: "message" },
|
|
1213
|
+
]);
|
|
1214
|
+
|
|
1215
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): E2eeResponse {
|
|
1216
|
+
return new E2eeResponse().fromBinary(bytes, options);
|
|
1217
|
+
}
|
|
1218
|
+
|
|
1219
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): E2eeResponse {
|
|
1220
|
+
return new E2eeResponse().fromJson(jsonValue, options);
|
|
1221
|
+
}
|
|
1222
|
+
|
|
1223
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): E2eeResponse {
|
|
1224
|
+
return new E2eeResponse().fromJsonString(jsonString, options);
|
|
1225
|
+
}
|
|
1226
|
+
|
|
1227
|
+
static equals(a: E2eeResponse | PlainMessage<E2eeResponse> | undefined, b: E2eeResponse | PlainMessage<E2eeResponse> | undefined): boolean {
|
|
1228
|
+
return proto2.util.equals(E2eeResponse, a, b);
|
|
1229
|
+
}
|
|
657
1230
|
}
|
|
658
1231
|
|
|
659
|
-
/**
|
|
660
|
-
* Describes the enum livekit.proto.EncryptionType.
|
|
661
|
-
*/
|
|
662
|
-
export const EncryptionTypeSchema: GenEnum<EncryptionType> = /*@__PURE__*/
|
|
663
|
-
enumDesc(file_e2ee, 0);
|
|
664
|
-
|
|
665
|
-
/**
|
|
666
|
-
* @generated from enum livekit.proto.EncryptionState
|
|
667
|
-
*/
|
|
668
|
-
export enum EncryptionState {
|
|
669
|
-
/**
|
|
670
|
-
* @generated from enum value: NEW = 0;
|
|
671
|
-
*/
|
|
672
|
-
NEW = 0,
|
|
673
|
-
|
|
674
|
-
/**
|
|
675
|
-
* @generated from enum value: OK = 1;
|
|
676
|
-
*/
|
|
677
|
-
OK = 1,
|
|
678
|
-
|
|
679
|
-
/**
|
|
680
|
-
* @generated from enum value: ENCRYPTION_FAILED = 2;
|
|
681
|
-
*/
|
|
682
|
-
ENCRYPTION_FAILED = 2,
|
|
683
|
-
|
|
684
|
-
/**
|
|
685
|
-
* @generated from enum value: DECRYPTION_FAILED = 3;
|
|
686
|
-
*/
|
|
687
|
-
DECRYPTION_FAILED = 3,
|
|
688
|
-
|
|
689
|
-
/**
|
|
690
|
-
* @generated from enum value: MISSING_KEY = 4;
|
|
691
|
-
*/
|
|
692
|
-
MISSING_KEY = 4,
|
|
693
|
-
|
|
694
|
-
/**
|
|
695
|
-
* @generated from enum value: KEY_RATCHETED = 5;
|
|
696
|
-
*/
|
|
697
|
-
KEY_RATCHETED = 5,
|
|
698
|
-
|
|
699
|
-
/**
|
|
700
|
-
* @generated from enum value: INTERNAL_ERROR = 6;
|
|
701
|
-
*/
|
|
702
|
-
INTERNAL_ERROR = 6,
|
|
703
|
-
}
|
|
704
|
-
|
|
705
|
-
/**
|
|
706
|
-
* Describes the enum livekit.proto.EncryptionState.
|
|
707
|
-
*/
|
|
708
|
-
export const EncryptionStateSchema: GenEnum<EncryptionState> = /*@__PURE__*/
|
|
709
|
-
enumDesc(file_e2ee, 1);
|
|
710
|
-
|