@li0ard/widevine 0.1.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/LICENSE +21 -0
- package/README.md +57 -0
- package/dist/const.d.ts +10 -0
- package/dist/const.js +11 -0
- package/dist/device.d.ts +25 -0
- package/dist/device.js +38 -0
- package/dist/index.d.ts +42 -0
- package/dist/index.js +126 -0
- package/dist/key.d.ts +20 -0
- package/dist/key.js +27 -0
- package/dist/protos/license_protocol.d.ts +1664 -0
- package/dist/protos/license_protocol.js +5317 -0
- package/dist/pssh.d.ts +15 -0
- package/dist/pssh.js +54 -0
- package/dist/session.d.ts +10 -0
- package/dist/session.js +12 -0
- package/dist/utils.d.ts +5 -0
- package/dist/utils.js +33 -0
- package/package.json +44 -0
|
@@ -0,0 +1,1664 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by the protoc-gen-ts. DO NOT EDIT!
|
|
3
|
+
* compiler version: 6.30.2
|
|
4
|
+
* source: license_protocol.proto
|
|
5
|
+
* git: https://github.com/thesayyn/protoc-gen-ts */
|
|
6
|
+
import * as pb_1 from "google-protobuf";
|
|
7
|
+
export declare namespace pywidevine_license_protocol {
|
|
8
|
+
enum LicenseType {
|
|
9
|
+
STREAMING = 1,
|
|
10
|
+
OFFLINE = 2,
|
|
11
|
+
AUTOMATIC = 3
|
|
12
|
+
}
|
|
13
|
+
enum PlatformVerificationStatus {
|
|
14
|
+
PLATFORM_UNVERIFIED = 0,
|
|
15
|
+
PLATFORM_TAMPERED = 1,
|
|
16
|
+
PLATFORM_SOFTWARE_VERIFIED = 2,
|
|
17
|
+
PLATFORM_HARDWARE_VERIFIED = 3,
|
|
18
|
+
PLATFORM_NO_VERIFICATION = 4,
|
|
19
|
+
PLATFORM_SECURE_STORAGE_SOFTWARE_VERIFIED = 5
|
|
20
|
+
}
|
|
21
|
+
enum ProtocolVersion {
|
|
22
|
+
VERSION_2_0 = 20,
|
|
23
|
+
VERSION_2_1 = 21,
|
|
24
|
+
VERSION_2_2 = 22
|
|
25
|
+
}
|
|
26
|
+
enum HashAlgorithmProto {
|
|
27
|
+
HASH_ALGORITHM_UNSPECIFIED = 0,
|
|
28
|
+
HASH_ALGORITHM_SHA_1 = 1,
|
|
29
|
+
HASH_ALGORITHM_SHA_256 = 2,
|
|
30
|
+
HASH_ALGORITHM_SHA_384 = 3
|
|
31
|
+
}
|
|
32
|
+
class LicenseIdentification extends pb_1.Message {
|
|
33
|
+
#private;
|
|
34
|
+
constructor(data?: any[] | {
|
|
35
|
+
request_id?: Uint8Array;
|
|
36
|
+
session_id?: Uint8Array;
|
|
37
|
+
purchase_id?: Uint8Array;
|
|
38
|
+
type?: LicenseType;
|
|
39
|
+
version?: number;
|
|
40
|
+
provider_session_token?: Uint8Array;
|
|
41
|
+
});
|
|
42
|
+
get request_id(): Uint8Array;
|
|
43
|
+
set request_id(value: Uint8Array);
|
|
44
|
+
get has_request_id(): boolean;
|
|
45
|
+
get session_id(): Uint8Array;
|
|
46
|
+
set session_id(value: Uint8Array);
|
|
47
|
+
get has_session_id(): boolean;
|
|
48
|
+
get purchase_id(): Uint8Array;
|
|
49
|
+
set purchase_id(value: Uint8Array);
|
|
50
|
+
get has_purchase_id(): boolean;
|
|
51
|
+
get type(): LicenseType;
|
|
52
|
+
set type(value: LicenseType);
|
|
53
|
+
get has_type(): boolean;
|
|
54
|
+
get version(): number;
|
|
55
|
+
set version(value: number);
|
|
56
|
+
get has_version(): boolean;
|
|
57
|
+
get provider_session_token(): Uint8Array;
|
|
58
|
+
set provider_session_token(value: Uint8Array);
|
|
59
|
+
get has_provider_session_token(): boolean;
|
|
60
|
+
static fromObject(data: {
|
|
61
|
+
request_id?: Uint8Array;
|
|
62
|
+
session_id?: Uint8Array;
|
|
63
|
+
purchase_id?: Uint8Array;
|
|
64
|
+
type?: LicenseType;
|
|
65
|
+
version?: number;
|
|
66
|
+
provider_session_token?: Uint8Array;
|
|
67
|
+
}): LicenseIdentification;
|
|
68
|
+
toObject(): {
|
|
69
|
+
request_id?: Uint8Array;
|
|
70
|
+
session_id?: Uint8Array;
|
|
71
|
+
purchase_id?: Uint8Array;
|
|
72
|
+
type?: LicenseType;
|
|
73
|
+
version?: number;
|
|
74
|
+
provider_session_token?: Uint8Array;
|
|
75
|
+
};
|
|
76
|
+
serialize(): Uint8Array;
|
|
77
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
78
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): LicenseIdentification;
|
|
79
|
+
serializeBinary(): Uint8Array;
|
|
80
|
+
static deserializeBinary(bytes: Uint8Array): LicenseIdentification;
|
|
81
|
+
}
|
|
82
|
+
class License extends pb_1.Message {
|
|
83
|
+
#private;
|
|
84
|
+
constructor(data?: any[] | {
|
|
85
|
+
id?: LicenseIdentification;
|
|
86
|
+
policy?: License.Policy;
|
|
87
|
+
key: License.KeyContainer[];
|
|
88
|
+
license_start_time?: number;
|
|
89
|
+
remote_attestation_verified?: boolean;
|
|
90
|
+
provider_client_token?: Uint8Array;
|
|
91
|
+
protection_scheme?: number;
|
|
92
|
+
srm_requirement?: Uint8Array;
|
|
93
|
+
srm_update?: Uint8Array;
|
|
94
|
+
platform_verification_status?: PlatformVerificationStatus;
|
|
95
|
+
group_ids: Uint8Array[];
|
|
96
|
+
});
|
|
97
|
+
get id(): LicenseIdentification;
|
|
98
|
+
set id(value: LicenseIdentification);
|
|
99
|
+
get has_id(): boolean;
|
|
100
|
+
get policy(): License.Policy;
|
|
101
|
+
set policy(value: License.Policy);
|
|
102
|
+
get has_policy(): boolean;
|
|
103
|
+
get key(): License.KeyContainer[];
|
|
104
|
+
set key(value: License.KeyContainer[]);
|
|
105
|
+
get license_start_time(): number;
|
|
106
|
+
set license_start_time(value: number);
|
|
107
|
+
get has_license_start_time(): boolean;
|
|
108
|
+
get remote_attestation_verified(): boolean;
|
|
109
|
+
set remote_attestation_verified(value: boolean);
|
|
110
|
+
get has_remote_attestation_verified(): boolean;
|
|
111
|
+
get provider_client_token(): Uint8Array;
|
|
112
|
+
set provider_client_token(value: Uint8Array);
|
|
113
|
+
get has_provider_client_token(): boolean;
|
|
114
|
+
get protection_scheme(): number;
|
|
115
|
+
set protection_scheme(value: number);
|
|
116
|
+
get has_protection_scheme(): boolean;
|
|
117
|
+
get srm_requirement(): Uint8Array;
|
|
118
|
+
set srm_requirement(value: Uint8Array);
|
|
119
|
+
get has_srm_requirement(): boolean;
|
|
120
|
+
get srm_update(): Uint8Array;
|
|
121
|
+
set srm_update(value: Uint8Array);
|
|
122
|
+
get has_srm_update(): boolean;
|
|
123
|
+
get platform_verification_status(): PlatformVerificationStatus;
|
|
124
|
+
set platform_verification_status(value: PlatformVerificationStatus);
|
|
125
|
+
get has_platform_verification_status(): boolean;
|
|
126
|
+
get group_ids(): Uint8Array[];
|
|
127
|
+
set group_ids(value: Uint8Array[]);
|
|
128
|
+
static fromObject(data: {
|
|
129
|
+
id?: ReturnType<typeof LicenseIdentification.prototype.toObject>;
|
|
130
|
+
policy?: ReturnType<typeof License.Policy.prototype.toObject>;
|
|
131
|
+
key?: ReturnType<typeof License.KeyContainer.prototype.toObject>[];
|
|
132
|
+
license_start_time?: number;
|
|
133
|
+
remote_attestation_verified?: boolean;
|
|
134
|
+
provider_client_token?: Uint8Array;
|
|
135
|
+
protection_scheme?: number;
|
|
136
|
+
srm_requirement?: Uint8Array;
|
|
137
|
+
srm_update?: Uint8Array;
|
|
138
|
+
platform_verification_status?: PlatformVerificationStatus;
|
|
139
|
+
group_ids: Uint8Array[];
|
|
140
|
+
}): License;
|
|
141
|
+
toObject(): {
|
|
142
|
+
id?: ReturnType<typeof LicenseIdentification.prototype.toObject>;
|
|
143
|
+
policy?: ReturnType<typeof License.Policy.prototype.toObject>;
|
|
144
|
+
key?: ReturnType<typeof License.KeyContainer.prototype.toObject>[];
|
|
145
|
+
license_start_time?: number;
|
|
146
|
+
remote_attestation_verified?: boolean;
|
|
147
|
+
provider_client_token?: Uint8Array;
|
|
148
|
+
protection_scheme?: number;
|
|
149
|
+
srm_requirement?: Uint8Array;
|
|
150
|
+
srm_update?: Uint8Array;
|
|
151
|
+
platform_verification_status?: PlatformVerificationStatus;
|
|
152
|
+
group_ids: Uint8Array[];
|
|
153
|
+
};
|
|
154
|
+
serialize(): Uint8Array;
|
|
155
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
156
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): License;
|
|
157
|
+
serializeBinary(): Uint8Array;
|
|
158
|
+
static deserializeBinary(bytes: Uint8Array): License;
|
|
159
|
+
}
|
|
160
|
+
namespace License {
|
|
161
|
+
class Policy extends pb_1.Message {
|
|
162
|
+
#private;
|
|
163
|
+
constructor(data?: any[] | {
|
|
164
|
+
can_play?: boolean;
|
|
165
|
+
can_persist?: boolean;
|
|
166
|
+
can_renew?: boolean;
|
|
167
|
+
rental_duration_seconds?: number;
|
|
168
|
+
playback_duration_seconds?: number;
|
|
169
|
+
license_duration_seconds?: number;
|
|
170
|
+
renewal_recovery_duration_seconds?: number;
|
|
171
|
+
renewal_server_url?: string;
|
|
172
|
+
renewal_delay_seconds?: number;
|
|
173
|
+
renewal_retry_interval_seconds?: number;
|
|
174
|
+
renew_with_usage?: boolean;
|
|
175
|
+
always_include_client_id?: boolean;
|
|
176
|
+
play_start_grace_period_seconds?: number;
|
|
177
|
+
soft_enforce_playback_duration?: boolean;
|
|
178
|
+
soft_enforce_rental_duration?: boolean;
|
|
179
|
+
});
|
|
180
|
+
get can_play(): boolean;
|
|
181
|
+
set can_play(value: boolean);
|
|
182
|
+
get has_can_play(): boolean;
|
|
183
|
+
get can_persist(): boolean;
|
|
184
|
+
set can_persist(value: boolean);
|
|
185
|
+
get has_can_persist(): boolean;
|
|
186
|
+
get can_renew(): boolean;
|
|
187
|
+
set can_renew(value: boolean);
|
|
188
|
+
get has_can_renew(): boolean;
|
|
189
|
+
get rental_duration_seconds(): number;
|
|
190
|
+
set rental_duration_seconds(value: number);
|
|
191
|
+
get has_rental_duration_seconds(): boolean;
|
|
192
|
+
get playback_duration_seconds(): number;
|
|
193
|
+
set playback_duration_seconds(value: number);
|
|
194
|
+
get has_playback_duration_seconds(): boolean;
|
|
195
|
+
get license_duration_seconds(): number;
|
|
196
|
+
set license_duration_seconds(value: number);
|
|
197
|
+
get has_license_duration_seconds(): boolean;
|
|
198
|
+
get renewal_recovery_duration_seconds(): number;
|
|
199
|
+
set renewal_recovery_duration_seconds(value: number);
|
|
200
|
+
get has_renewal_recovery_duration_seconds(): boolean;
|
|
201
|
+
get renewal_server_url(): string;
|
|
202
|
+
set renewal_server_url(value: string);
|
|
203
|
+
get has_renewal_server_url(): boolean;
|
|
204
|
+
get renewal_delay_seconds(): number;
|
|
205
|
+
set renewal_delay_seconds(value: number);
|
|
206
|
+
get has_renewal_delay_seconds(): boolean;
|
|
207
|
+
get renewal_retry_interval_seconds(): number;
|
|
208
|
+
set renewal_retry_interval_seconds(value: number);
|
|
209
|
+
get has_renewal_retry_interval_seconds(): boolean;
|
|
210
|
+
get renew_with_usage(): boolean;
|
|
211
|
+
set renew_with_usage(value: boolean);
|
|
212
|
+
get has_renew_with_usage(): boolean;
|
|
213
|
+
get always_include_client_id(): boolean;
|
|
214
|
+
set always_include_client_id(value: boolean);
|
|
215
|
+
get has_always_include_client_id(): boolean;
|
|
216
|
+
get play_start_grace_period_seconds(): number;
|
|
217
|
+
set play_start_grace_period_seconds(value: number);
|
|
218
|
+
get has_play_start_grace_period_seconds(): boolean;
|
|
219
|
+
get soft_enforce_playback_duration(): boolean;
|
|
220
|
+
set soft_enforce_playback_duration(value: boolean);
|
|
221
|
+
get has_soft_enforce_playback_duration(): boolean;
|
|
222
|
+
get soft_enforce_rental_duration(): boolean;
|
|
223
|
+
set soft_enforce_rental_duration(value: boolean);
|
|
224
|
+
get has_soft_enforce_rental_duration(): boolean;
|
|
225
|
+
static fromObject(data: {
|
|
226
|
+
can_play?: boolean;
|
|
227
|
+
can_persist?: boolean;
|
|
228
|
+
can_renew?: boolean;
|
|
229
|
+
rental_duration_seconds?: number;
|
|
230
|
+
playback_duration_seconds?: number;
|
|
231
|
+
license_duration_seconds?: number;
|
|
232
|
+
renewal_recovery_duration_seconds?: number;
|
|
233
|
+
renewal_server_url?: string;
|
|
234
|
+
renewal_delay_seconds?: number;
|
|
235
|
+
renewal_retry_interval_seconds?: number;
|
|
236
|
+
renew_with_usage?: boolean;
|
|
237
|
+
always_include_client_id?: boolean;
|
|
238
|
+
play_start_grace_period_seconds?: number;
|
|
239
|
+
soft_enforce_playback_duration?: boolean;
|
|
240
|
+
soft_enforce_rental_duration?: boolean;
|
|
241
|
+
}): Policy;
|
|
242
|
+
toObject(): {
|
|
243
|
+
can_play?: boolean;
|
|
244
|
+
can_persist?: boolean;
|
|
245
|
+
can_renew?: boolean;
|
|
246
|
+
rental_duration_seconds?: number;
|
|
247
|
+
playback_duration_seconds?: number;
|
|
248
|
+
license_duration_seconds?: number;
|
|
249
|
+
renewal_recovery_duration_seconds?: number;
|
|
250
|
+
renewal_server_url?: string;
|
|
251
|
+
renewal_delay_seconds?: number;
|
|
252
|
+
renewal_retry_interval_seconds?: number;
|
|
253
|
+
renew_with_usage?: boolean;
|
|
254
|
+
always_include_client_id?: boolean;
|
|
255
|
+
play_start_grace_period_seconds?: number;
|
|
256
|
+
soft_enforce_playback_duration?: boolean;
|
|
257
|
+
soft_enforce_rental_duration?: boolean;
|
|
258
|
+
};
|
|
259
|
+
serialize(): Uint8Array;
|
|
260
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
261
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Policy;
|
|
262
|
+
serializeBinary(): Uint8Array;
|
|
263
|
+
static deserializeBinary(bytes: Uint8Array): Policy;
|
|
264
|
+
}
|
|
265
|
+
class KeyContainer extends pb_1.Message {
|
|
266
|
+
#private;
|
|
267
|
+
constructor(data?: any[] | {
|
|
268
|
+
id?: Uint8Array;
|
|
269
|
+
iv?: Uint8Array;
|
|
270
|
+
key?: Uint8Array;
|
|
271
|
+
type?: License.KeyContainer.KeyType;
|
|
272
|
+
level?: License.KeyContainer.SecurityLevel;
|
|
273
|
+
required_protection?: License.KeyContainer.OutputProtection;
|
|
274
|
+
requested_protection?: License.KeyContainer.OutputProtection;
|
|
275
|
+
key_control?: License.KeyContainer.KeyControl;
|
|
276
|
+
operator_session_key_permissions?: License.KeyContainer.OperatorSessionKeyPermissions;
|
|
277
|
+
video_resolution_constraints: License.KeyContainer.VideoResolutionConstraint[];
|
|
278
|
+
anti_rollback_usage_table?: boolean;
|
|
279
|
+
track_label?: string;
|
|
280
|
+
});
|
|
281
|
+
get id(): Uint8Array;
|
|
282
|
+
set id(value: Uint8Array);
|
|
283
|
+
get has_id(): boolean;
|
|
284
|
+
get iv(): Uint8Array;
|
|
285
|
+
set iv(value: Uint8Array);
|
|
286
|
+
get has_iv(): boolean;
|
|
287
|
+
get key(): Uint8Array;
|
|
288
|
+
set key(value: Uint8Array);
|
|
289
|
+
get has_key(): boolean;
|
|
290
|
+
get type(): License.KeyContainer.KeyType;
|
|
291
|
+
set type(value: License.KeyContainer.KeyType);
|
|
292
|
+
get has_type(): boolean;
|
|
293
|
+
get level(): License.KeyContainer.SecurityLevel;
|
|
294
|
+
set level(value: License.KeyContainer.SecurityLevel);
|
|
295
|
+
get has_level(): boolean;
|
|
296
|
+
get required_protection(): License.KeyContainer.OutputProtection;
|
|
297
|
+
set required_protection(value: License.KeyContainer.OutputProtection);
|
|
298
|
+
get has_required_protection(): boolean;
|
|
299
|
+
get requested_protection(): License.KeyContainer.OutputProtection;
|
|
300
|
+
set requested_protection(value: License.KeyContainer.OutputProtection);
|
|
301
|
+
get has_requested_protection(): boolean;
|
|
302
|
+
get key_control(): License.KeyContainer.KeyControl;
|
|
303
|
+
set key_control(value: License.KeyContainer.KeyControl);
|
|
304
|
+
get has_key_control(): boolean;
|
|
305
|
+
get operator_session_key_permissions(): License.KeyContainer.OperatorSessionKeyPermissions;
|
|
306
|
+
set operator_session_key_permissions(value: License.KeyContainer.OperatorSessionKeyPermissions);
|
|
307
|
+
get has_operator_session_key_permissions(): boolean;
|
|
308
|
+
get video_resolution_constraints(): License.KeyContainer.VideoResolutionConstraint[];
|
|
309
|
+
set video_resolution_constraints(value: License.KeyContainer.VideoResolutionConstraint[]);
|
|
310
|
+
get anti_rollback_usage_table(): boolean;
|
|
311
|
+
set anti_rollback_usage_table(value: boolean);
|
|
312
|
+
get has_anti_rollback_usage_table(): boolean;
|
|
313
|
+
get track_label(): string;
|
|
314
|
+
set track_label(value: string);
|
|
315
|
+
get has_track_label(): boolean;
|
|
316
|
+
static fromObject(data: {
|
|
317
|
+
id?: Uint8Array;
|
|
318
|
+
iv?: Uint8Array;
|
|
319
|
+
key?: Uint8Array;
|
|
320
|
+
type?: License.KeyContainer.KeyType;
|
|
321
|
+
level?: License.KeyContainer.SecurityLevel;
|
|
322
|
+
required_protection?: ReturnType<typeof License.KeyContainer.OutputProtection.prototype.toObject>;
|
|
323
|
+
requested_protection?: ReturnType<typeof License.KeyContainer.OutputProtection.prototype.toObject>;
|
|
324
|
+
key_control?: ReturnType<typeof License.KeyContainer.KeyControl.prototype.toObject>;
|
|
325
|
+
operator_session_key_permissions?: ReturnType<typeof License.KeyContainer.OperatorSessionKeyPermissions.prototype.toObject>;
|
|
326
|
+
video_resolution_constraints?: ReturnType<typeof License.KeyContainer.VideoResolutionConstraint.prototype.toObject>[];
|
|
327
|
+
anti_rollback_usage_table?: boolean;
|
|
328
|
+
track_label?: string;
|
|
329
|
+
}): KeyContainer;
|
|
330
|
+
toObject(): {
|
|
331
|
+
id?: Uint8Array;
|
|
332
|
+
iv?: Uint8Array;
|
|
333
|
+
key?: Uint8Array;
|
|
334
|
+
type?: License.KeyContainer.KeyType;
|
|
335
|
+
level?: License.KeyContainer.SecurityLevel;
|
|
336
|
+
required_protection?: ReturnType<typeof License.KeyContainer.OutputProtection.prototype.toObject>;
|
|
337
|
+
requested_protection?: ReturnType<typeof License.KeyContainer.OutputProtection.prototype.toObject>;
|
|
338
|
+
key_control?: ReturnType<typeof License.KeyContainer.KeyControl.prototype.toObject>;
|
|
339
|
+
operator_session_key_permissions?: ReturnType<typeof License.KeyContainer.OperatorSessionKeyPermissions.prototype.toObject>;
|
|
340
|
+
video_resolution_constraints?: ReturnType<typeof License.KeyContainer.VideoResolutionConstraint.prototype.toObject>[];
|
|
341
|
+
anti_rollback_usage_table?: boolean;
|
|
342
|
+
track_label?: string;
|
|
343
|
+
};
|
|
344
|
+
serialize(): Uint8Array;
|
|
345
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
346
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): KeyContainer;
|
|
347
|
+
serializeBinary(): Uint8Array;
|
|
348
|
+
static deserializeBinary(bytes: Uint8Array): KeyContainer;
|
|
349
|
+
}
|
|
350
|
+
namespace KeyContainer {
|
|
351
|
+
enum KeyType {
|
|
352
|
+
SIGNING = 1,
|
|
353
|
+
CONTENT = 2,
|
|
354
|
+
KEY_CONTROL = 3,
|
|
355
|
+
OPERATOR_SESSION = 4,
|
|
356
|
+
ENTITLEMENT = 5,
|
|
357
|
+
OEM_CONTENT = 6
|
|
358
|
+
}
|
|
359
|
+
enum SecurityLevel {
|
|
360
|
+
SW_SECURE_CRYPTO = 1,
|
|
361
|
+
SW_SECURE_DECODE = 2,
|
|
362
|
+
HW_SECURE_CRYPTO = 3,
|
|
363
|
+
HW_SECURE_DECODE = 4,
|
|
364
|
+
HW_SECURE_ALL = 5
|
|
365
|
+
}
|
|
366
|
+
class KeyControl extends pb_1.Message {
|
|
367
|
+
#private;
|
|
368
|
+
constructor(data?: any[] | {
|
|
369
|
+
key_control_block?: Uint8Array;
|
|
370
|
+
iv?: Uint8Array;
|
|
371
|
+
});
|
|
372
|
+
get key_control_block(): Uint8Array;
|
|
373
|
+
set key_control_block(value: Uint8Array);
|
|
374
|
+
get has_key_control_block(): boolean;
|
|
375
|
+
get iv(): Uint8Array;
|
|
376
|
+
set iv(value: Uint8Array);
|
|
377
|
+
get has_iv(): boolean;
|
|
378
|
+
static fromObject(data: {
|
|
379
|
+
key_control_block?: Uint8Array;
|
|
380
|
+
iv?: Uint8Array;
|
|
381
|
+
}): KeyControl;
|
|
382
|
+
toObject(): {
|
|
383
|
+
key_control_block?: Uint8Array;
|
|
384
|
+
iv?: Uint8Array;
|
|
385
|
+
};
|
|
386
|
+
serialize(): Uint8Array;
|
|
387
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
388
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): KeyControl;
|
|
389
|
+
serializeBinary(): Uint8Array;
|
|
390
|
+
static deserializeBinary(bytes: Uint8Array): KeyControl;
|
|
391
|
+
}
|
|
392
|
+
class OutputProtection extends pb_1.Message {
|
|
393
|
+
#private;
|
|
394
|
+
constructor(data?: any[] | {
|
|
395
|
+
hdcp?: License.KeyContainer.OutputProtection.HDCP;
|
|
396
|
+
cgms_flags?: License.KeyContainer.OutputProtection.CGMS;
|
|
397
|
+
hdcp_srm_rule?: License.KeyContainer.OutputProtection.HdcpSrmRule;
|
|
398
|
+
disable_analog_output?: boolean;
|
|
399
|
+
disable_digital_output?: boolean;
|
|
400
|
+
});
|
|
401
|
+
get hdcp(): License.KeyContainer.OutputProtection.HDCP;
|
|
402
|
+
set hdcp(value: License.KeyContainer.OutputProtection.HDCP);
|
|
403
|
+
get has_hdcp(): boolean;
|
|
404
|
+
get cgms_flags(): License.KeyContainer.OutputProtection.CGMS;
|
|
405
|
+
set cgms_flags(value: License.KeyContainer.OutputProtection.CGMS);
|
|
406
|
+
get has_cgms_flags(): boolean;
|
|
407
|
+
get hdcp_srm_rule(): License.KeyContainer.OutputProtection.HdcpSrmRule;
|
|
408
|
+
set hdcp_srm_rule(value: License.KeyContainer.OutputProtection.HdcpSrmRule);
|
|
409
|
+
get has_hdcp_srm_rule(): boolean;
|
|
410
|
+
get disable_analog_output(): boolean;
|
|
411
|
+
set disable_analog_output(value: boolean);
|
|
412
|
+
get has_disable_analog_output(): boolean;
|
|
413
|
+
get disable_digital_output(): boolean;
|
|
414
|
+
set disable_digital_output(value: boolean);
|
|
415
|
+
get has_disable_digital_output(): boolean;
|
|
416
|
+
static fromObject(data: {
|
|
417
|
+
hdcp?: License.KeyContainer.OutputProtection.HDCP;
|
|
418
|
+
cgms_flags?: License.KeyContainer.OutputProtection.CGMS;
|
|
419
|
+
hdcp_srm_rule?: License.KeyContainer.OutputProtection.HdcpSrmRule;
|
|
420
|
+
disable_analog_output?: boolean;
|
|
421
|
+
disable_digital_output?: boolean;
|
|
422
|
+
}): OutputProtection;
|
|
423
|
+
toObject(): {
|
|
424
|
+
hdcp?: License.KeyContainer.OutputProtection.HDCP;
|
|
425
|
+
cgms_flags?: License.KeyContainer.OutputProtection.CGMS;
|
|
426
|
+
hdcp_srm_rule?: License.KeyContainer.OutputProtection.HdcpSrmRule;
|
|
427
|
+
disable_analog_output?: boolean;
|
|
428
|
+
disable_digital_output?: boolean;
|
|
429
|
+
};
|
|
430
|
+
serialize(): Uint8Array;
|
|
431
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
432
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): OutputProtection;
|
|
433
|
+
serializeBinary(): Uint8Array;
|
|
434
|
+
static deserializeBinary(bytes: Uint8Array): OutputProtection;
|
|
435
|
+
}
|
|
436
|
+
namespace OutputProtection {
|
|
437
|
+
enum HDCP {
|
|
438
|
+
HDCP_NONE = 0,
|
|
439
|
+
HDCP_V1 = 1,
|
|
440
|
+
HDCP_V2 = 2,
|
|
441
|
+
HDCP_V2_1 = 3,
|
|
442
|
+
HDCP_V2_2 = 4,
|
|
443
|
+
HDCP_V2_3 = 5,
|
|
444
|
+
HDCP_NO_DIGITAL_OUTPUT = 255
|
|
445
|
+
}
|
|
446
|
+
enum CGMS {
|
|
447
|
+
CGMS_NONE = 42,
|
|
448
|
+
COPY_FREE = 0,
|
|
449
|
+
COPY_ONCE = 2,
|
|
450
|
+
COPY_NEVER = 3
|
|
451
|
+
}
|
|
452
|
+
enum HdcpSrmRule {
|
|
453
|
+
HDCP_SRM_RULE_NONE = 0,
|
|
454
|
+
CURRENT_SRM = 1
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
class VideoResolutionConstraint extends pb_1.Message {
|
|
458
|
+
#private;
|
|
459
|
+
constructor(data?: any[] | {
|
|
460
|
+
min_resolution_pixels?: number;
|
|
461
|
+
max_resolution_pixels?: number;
|
|
462
|
+
required_protection?: License.KeyContainer.OutputProtection;
|
|
463
|
+
});
|
|
464
|
+
get min_resolution_pixels(): number;
|
|
465
|
+
set min_resolution_pixels(value: number);
|
|
466
|
+
get has_min_resolution_pixels(): boolean;
|
|
467
|
+
get max_resolution_pixels(): number;
|
|
468
|
+
set max_resolution_pixels(value: number);
|
|
469
|
+
get has_max_resolution_pixels(): boolean;
|
|
470
|
+
get required_protection(): License.KeyContainer.OutputProtection;
|
|
471
|
+
set required_protection(value: License.KeyContainer.OutputProtection);
|
|
472
|
+
get has_required_protection(): boolean;
|
|
473
|
+
static fromObject(data: {
|
|
474
|
+
min_resolution_pixels?: number;
|
|
475
|
+
max_resolution_pixels?: number;
|
|
476
|
+
required_protection?: ReturnType<typeof License.KeyContainer.OutputProtection.prototype.toObject>;
|
|
477
|
+
}): VideoResolutionConstraint;
|
|
478
|
+
toObject(): {
|
|
479
|
+
min_resolution_pixels?: number;
|
|
480
|
+
max_resolution_pixels?: number;
|
|
481
|
+
required_protection?: ReturnType<typeof License.KeyContainer.OutputProtection.prototype.toObject>;
|
|
482
|
+
};
|
|
483
|
+
serialize(): Uint8Array;
|
|
484
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
485
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): VideoResolutionConstraint;
|
|
486
|
+
serializeBinary(): Uint8Array;
|
|
487
|
+
static deserializeBinary(bytes: Uint8Array): VideoResolutionConstraint;
|
|
488
|
+
}
|
|
489
|
+
class OperatorSessionKeyPermissions extends pb_1.Message {
|
|
490
|
+
#private;
|
|
491
|
+
constructor(data?: any[] | {
|
|
492
|
+
allow_encrypt?: boolean;
|
|
493
|
+
allow_decrypt?: boolean;
|
|
494
|
+
allow_sign?: boolean;
|
|
495
|
+
allow_signature_verify?: boolean;
|
|
496
|
+
});
|
|
497
|
+
get allow_encrypt(): boolean;
|
|
498
|
+
set allow_encrypt(value: boolean);
|
|
499
|
+
get has_allow_encrypt(): boolean;
|
|
500
|
+
get allow_decrypt(): boolean;
|
|
501
|
+
set allow_decrypt(value: boolean);
|
|
502
|
+
get has_allow_decrypt(): boolean;
|
|
503
|
+
get allow_sign(): boolean;
|
|
504
|
+
set allow_sign(value: boolean);
|
|
505
|
+
get has_allow_sign(): boolean;
|
|
506
|
+
get allow_signature_verify(): boolean;
|
|
507
|
+
set allow_signature_verify(value: boolean);
|
|
508
|
+
get has_allow_signature_verify(): boolean;
|
|
509
|
+
static fromObject(data: {
|
|
510
|
+
allow_encrypt?: boolean;
|
|
511
|
+
allow_decrypt?: boolean;
|
|
512
|
+
allow_sign?: boolean;
|
|
513
|
+
allow_signature_verify?: boolean;
|
|
514
|
+
}): OperatorSessionKeyPermissions;
|
|
515
|
+
toObject(): {
|
|
516
|
+
allow_encrypt?: boolean;
|
|
517
|
+
allow_decrypt?: boolean;
|
|
518
|
+
allow_sign?: boolean;
|
|
519
|
+
allow_signature_verify?: boolean;
|
|
520
|
+
};
|
|
521
|
+
serialize(): Uint8Array;
|
|
522
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
523
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): OperatorSessionKeyPermissions;
|
|
524
|
+
serializeBinary(): Uint8Array;
|
|
525
|
+
static deserializeBinary(bytes: Uint8Array): OperatorSessionKeyPermissions;
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
class LicenseRequest extends pb_1.Message {
|
|
530
|
+
#private;
|
|
531
|
+
constructor(data?: any[] | {
|
|
532
|
+
client_id?: ClientIdentification;
|
|
533
|
+
content_id?: LicenseRequest.ContentIdentification;
|
|
534
|
+
type?: LicenseRequest.RequestType;
|
|
535
|
+
request_time?: number;
|
|
536
|
+
key_control_nonce_deprecated?: Uint8Array;
|
|
537
|
+
protocol_version?: ProtocolVersion;
|
|
538
|
+
key_control_nonce?: number;
|
|
539
|
+
encrypted_client_id?: EncryptedClientIdentification;
|
|
540
|
+
});
|
|
541
|
+
get client_id(): ClientIdentification;
|
|
542
|
+
set client_id(value: ClientIdentification);
|
|
543
|
+
get has_client_id(): boolean;
|
|
544
|
+
get content_id(): LicenseRequest.ContentIdentification;
|
|
545
|
+
set content_id(value: LicenseRequest.ContentIdentification);
|
|
546
|
+
get has_content_id(): boolean;
|
|
547
|
+
get type(): LicenseRequest.RequestType;
|
|
548
|
+
set type(value: LicenseRequest.RequestType);
|
|
549
|
+
get has_type(): boolean;
|
|
550
|
+
get request_time(): number;
|
|
551
|
+
set request_time(value: number);
|
|
552
|
+
get has_request_time(): boolean;
|
|
553
|
+
get key_control_nonce_deprecated(): Uint8Array;
|
|
554
|
+
set key_control_nonce_deprecated(value: Uint8Array);
|
|
555
|
+
get has_key_control_nonce_deprecated(): boolean;
|
|
556
|
+
get protocol_version(): ProtocolVersion;
|
|
557
|
+
set protocol_version(value: ProtocolVersion);
|
|
558
|
+
get has_protocol_version(): boolean;
|
|
559
|
+
get key_control_nonce(): number;
|
|
560
|
+
set key_control_nonce(value: number);
|
|
561
|
+
get has_key_control_nonce(): boolean;
|
|
562
|
+
get encrypted_client_id(): EncryptedClientIdentification;
|
|
563
|
+
set encrypted_client_id(value: EncryptedClientIdentification);
|
|
564
|
+
get has_encrypted_client_id(): boolean;
|
|
565
|
+
static fromObject(data: {
|
|
566
|
+
client_id?: ReturnType<typeof ClientIdentification.prototype.toObject>;
|
|
567
|
+
content_id?: ReturnType<typeof LicenseRequest.ContentIdentification.prototype.toObject>;
|
|
568
|
+
type?: LicenseRequest.RequestType;
|
|
569
|
+
request_time?: number;
|
|
570
|
+
key_control_nonce_deprecated?: Uint8Array;
|
|
571
|
+
protocol_version?: ProtocolVersion;
|
|
572
|
+
key_control_nonce?: number;
|
|
573
|
+
encrypted_client_id?: ReturnType<typeof EncryptedClientIdentification.prototype.toObject>;
|
|
574
|
+
}): LicenseRequest;
|
|
575
|
+
toObject(): {
|
|
576
|
+
client_id?: ReturnType<typeof ClientIdentification.prototype.toObject>;
|
|
577
|
+
content_id?: ReturnType<typeof LicenseRequest.ContentIdentification.prototype.toObject>;
|
|
578
|
+
type?: LicenseRequest.RequestType;
|
|
579
|
+
request_time?: number;
|
|
580
|
+
key_control_nonce_deprecated?: Uint8Array;
|
|
581
|
+
protocol_version?: ProtocolVersion;
|
|
582
|
+
key_control_nonce?: number;
|
|
583
|
+
encrypted_client_id?: ReturnType<typeof EncryptedClientIdentification.prototype.toObject>;
|
|
584
|
+
};
|
|
585
|
+
serialize(): Uint8Array;
|
|
586
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
587
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): LicenseRequest;
|
|
588
|
+
serializeBinary(): Uint8Array;
|
|
589
|
+
static deserializeBinary(bytes: Uint8Array): LicenseRequest;
|
|
590
|
+
}
|
|
591
|
+
namespace LicenseRequest {
|
|
592
|
+
enum RequestType {
|
|
593
|
+
NEW = 1,
|
|
594
|
+
RENEWAL = 2,
|
|
595
|
+
RELEASE = 3
|
|
596
|
+
}
|
|
597
|
+
class ContentIdentification extends pb_1.Message {
|
|
598
|
+
#private;
|
|
599
|
+
constructor(data?: any[] | ({} & (({
|
|
600
|
+
widevine_pssh_data?: LicenseRequest.ContentIdentification.WidevinePsshData;
|
|
601
|
+
webm_key_id?: never;
|
|
602
|
+
existing_license?: never;
|
|
603
|
+
init_data?: never;
|
|
604
|
+
} | {
|
|
605
|
+
widevine_pssh_data?: never;
|
|
606
|
+
webm_key_id?: LicenseRequest.ContentIdentification.WebmKeyId;
|
|
607
|
+
existing_license?: never;
|
|
608
|
+
init_data?: never;
|
|
609
|
+
} | {
|
|
610
|
+
widevine_pssh_data?: never;
|
|
611
|
+
webm_key_id?: never;
|
|
612
|
+
existing_license?: LicenseRequest.ContentIdentification.ExistingLicense;
|
|
613
|
+
init_data?: never;
|
|
614
|
+
} | {
|
|
615
|
+
widevine_pssh_data?: never;
|
|
616
|
+
webm_key_id?: never;
|
|
617
|
+
existing_license?: never;
|
|
618
|
+
init_data?: LicenseRequest.ContentIdentification.InitData;
|
|
619
|
+
}))));
|
|
620
|
+
get widevine_pssh_data(): LicenseRequest.ContentIdentification.WidevinePsshData;
|
|
621
|
+
set widevine_pssh_data(value: LicenseRequest.ContentIdentification.WidevinePsshData);
|
|
622
|
+
get has_widevine_pssh_data(): boolean;
|
|
623
|
+
get webm_key_id(): LicenseRequest.ContentIdentification.WebmKeyId;
|
|
624
|
+
set webm_key_id(value: LicenseRequest.ContentIdentification.WebmKeyId);
|
|
625
|
+
get has_webm_key_id(): boolean;
|
|
626
|
+
get existing_license(): LicenseRequest.ContentIdentification.ExistingLicense;
|
|
627
|
+
set existing_license(value: LicenseRequest.ContentIdentification.ExistingLicense);
|
|
628
|
+
get has_existing_license(): boolean;
|
|
629
|
+
get init_data(): LicenseRequest.ContentIdentification.InitData;
|
|
630
|
+
set init_data(value: LicenseRequest.ContentIdentification.InitData);
|
|
631
|
+
get has_init_data(): boolean;
|
|
632
|
+
get content_id_variant(): "none" | "widevine_pssh_data" | "webm_key_id" | "existing_license" | "init_data";
|
|
633
|
+
static fromObject(data: {
|
|
634
|
+
widevine_pssh_data?: ReturnType<typeof LicenseRequest.ContentIdentification.WidevinePsshData.prototype.toObject>;
|
|
635
|
+
webm_key_id?: ReturnType<typeof LicenseRequest.ContentIdentification.WebmKeyId.prototype.toObject>;
|
|
636
|
+
existing_license?: ReturnType<typeof LicenseRequest.ContentIdentification.ExistingLicense.prototype.toObject>;
|
|
637
|
+
init_data?: ReturnType<typeof LicenseRequest.ContentIdentification.InitData.prototype.toObject>;
|
|
638
|
+
}): ContentIdentification;
|
|
639
|
+
toObject(): {
|
|
640
|
+
widevine_pssh_data?: ReturnType<typeof LicenseRequest.ContentIdentification.WidevinePsshData.prototype.toObject>;
|
|
641
|
+
webm_key_id?: ReturnType<typeof LicenseRequest.ContentIdentification.WebmKeyId.prototype.toObject>;
|
|
642
|
+
existing_license?: ReturnType<typeof LicenseRequest.ContentIdentification.ExistingLicense.prototype.toObject>;
|
|
643
|
+
init_data?: ReturnType<typeof LicenseRequest.ContentIdentification.InitData.prototype.toObject>;
|
|
644
|
+
};
|
|
645
|
+
serialize(): Uint8Array;
|
|
646
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
647
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ContentIdentification;
|
|
648
|
+
serializeBinary(): Uint8Array;
|
|
649
|
+
static deserializeBinary(bytes: Uint8Array): ContentIdentification;
|
|
650
|
+
}
|
|
651
|
+
namespace ContentIdentification {
|
|
652
|
+
class WidevinePsshData extends pb_1.Message {
|
|
653
|
+
#private;
|
|
654
|
+
constructor(data?: any[] | {
|
|
655
|
+
pssh_data: Uint8Array[];
|
|
656
|
+
license_type?: LicenseType;
|
|
657
|
+
request_id?: Uint8Array;
|
|
658
|
+
});
|
|
659
|
+
get pssh_data(): Uint8Array[];
|
|
660
|
+
set pssh_data(value: Uint8Array[]);
|
|
661
|
+
get license_type(): LicenseType;
|
|
662
|
+
set license_type(value: LicenseType);
|
|
663
|
+
get has_license_type(): boolean;
|
|
664
|
+
get request_id(): Uint8Array;
|
|
665
|
+
set request_id(value: Uint8Array);
|
|
666
|
+
get has_request_id(): boolean;
|
|
667
|
+
static fromObject(data: {
|
|
668
|
+
pssh_data: Uint8Array[];
|
|
669
|
+
license_type?: LicenseType;
|
|
670
|
+
request_id?: Uint8Array;
|
|
671
|
+
}): WidevinePsshData;
|
|
672
|
+
toObject(): {
|
|
673
|
+
pssh_data: Uint8Array[];
|
|
674
|
+
license_type?: LicenseType;
|
|
675
|
+
request_id?: Uint8Array;
|
|
676
|
+
};
|
|
677
|
+
serialize(): Uint8Array;
|
|
678
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
679
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): WidevinePsshData;
|
|
680
|
+
serializeBinary(): Uint8Array;
|
|
681
|
+
static deserializeBinary(bytes: Uint8Array): WidevinePsshData;
|
|
682
|
+
}
|
|
683
|
+
class WebmKeyId extends pb_1.Message {
|
|
684
|
+
#private;
|
|
685
|
+
constructor(data?: any[] | {
|
|
686
|
+
header?: Uint8Array;
|
|
687
|
+
license_type?: LicenseType;
|
|
688
|
+
request_id?: Uint8Array;
|
|
689
|
+
});
|
|
690
|
+
get header(): Uint8Array;
|
|
691
|
+
set header(value: Uint8Array);
|
|
692
|
+
get has_header(): boolean;
|
|
693
|
+
get license_type(): LicenseType;
|
|
694
|
+
set license_type(value: LicenseType);
|
|
695
|
+
get has_license_type(): boolean;
|
|
696
|
+
get request_id(): Uint8Array;
|
|
697
|
+
set request_id(value: Uint8Array);
|
|
698
|
+
get has_request_id(): boolean;
|
|
699
|
+
static fromObject(data: {
|
|
700
|
+
header?: Uint8Array;
|
|
701
|
+
license_type?: LicenseType;
|
|
702
|
+
request_id?: Uint8Array;
|
|
703
|
+
}): WebmKeyId;
|
|
704
|
+
toObject(): {
|
|
705
|
+
header?: Uint8Array;
|
|
706
|
+
license_type?: LicenseType;
|
|
707
|
+
request_id?: Uint8Array;
|
|
708
|
+
};
|
|
709
|
+
serialize(): Uint8Array;
|
|
710
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
711
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): WebmKeyId;
|
|
712
|
+
serializeBinary(): Uint8Array;
|
|
713
|
+
static deserializeBinary(bytes: Uint8Array): WebmKeyId;
|
|
714
|
+
}
|
|
715
|
+
class ExistingLicense extends pb_1.Message {
|
|
716
|
+
#private;
|
|
717
|
+
constructor(data?: any[] | {
|
|
718
|
+
license_id?: LicenseIdentification;
|
|
719
|
+
seconds_since_started?: number;
|
|
720
|
+
seconds_since_last_played?: number;
|
|
721
|
+
session_usage_table_entry?: Uint8Array;
|
|
722
|
+
});
|
|
723
|
+
get license_id(): LicenseIdentification;
|
|
724
|
+
set license_id(value: LicenseIdentification);
|
|
725
|
+
get has_license_id(): boolean;
|
|
726
|
+
get seconds_since_started(): number;
|
|
727
|
+
set seconds_since_started(value: number);
|
|
728
|
+
get has_seconds_since_started(): boolean;
|
|
729
|
+
get seconds_since_last_played(): number;
|
|
730
|
+
set seconds_since_last_played(value: number);
|
|
731
|
+
get has_seconds_since_last_played(): boolean;
|
|
732
|
+
get session_usage_table_entry(): Uint8Array;
|
|
733
|
+
set session_usage_table_entry(value: Uint8Array);
|
|
734
|
+
get has_session_usage_table_entry(): boolean;
|
|
735
|
+
static fromObject(data: {
|
|
736
|
+
license_id?: ReturnType<typeof LicenseIdentification.prototype.toObject>;
|
|
737
|
+
seconds_since_started?: number;
|
|
738
|
+
seconds_since_last_played?: number;
|
|
739
|
+
session_usage_table_entry?: Uint8Array;
|
|
740
|
+
}): ExistingLicense;
|
|
741
|
+
toObject(): {
|
|
742
|
+
license_id?: ReturnType<typeof LicenseIdentification.prototype.toObject>;
|
|
743
|
+
seconds_since_started?: number;
|
|
744
|
+
seconds_since_last_played?: number;
|
|
745
|
+
session_usage_table_entry?: Uint8Array;
|
|
746
|
+
};
|
|
747
|
+
serialize(): Uint8Array;
|
|
748
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
749
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ExistingLicense;
|
|
750
|
+
serializeBinary(): Uint8Array;
|
|
751
|
+
static deserializeBinary(bytes: Uint8Array): ExistingLicense;
|
|
752
|
+
}
|
|
753
|
+
class InitData extends pb_1.Message {
|
|
754
|
+
#private;
|
|
755
|
+
constructor(data?: any[] | {
|
|
756
|
+
init_data_type?: LicenseRequest.ContentIdentification.InitData.InitDataType;
|
|
757
|
+
init_data?: Uint8Array;
|
|
758
|
+
license_type?: LicenseType;
|
|
759
|
+
request_id?: Uint8Array;
|
|
760
|
+
});
|
|
761
|
+
get init_data_type(): LicenseRequest.ContentIdentification.InitData.InitDataType;
|
|
762
|
+
set init_data_type(value: LicenseRequest.ContentIdentification.InitData.InitDataType);
|
|
763
|
+
get has_init_data_type(): boolean;
|
|
764
|
+
get init_data(): Uint8Array;
|
|
765
|
+
set init_data(value: Uint8Array);
|
|
766
|
+
get has_init_data(): boolean;
|
|
767
|
+
get license_type(): LicenseType;
|
|
768
|
+
set license_type(value: LicenseType);
|
|
769
|
+
get has_license_type(): boolean;
|
|
770
|
+
get request_id(): Uint8Array;
|
|
771
|
+
set request_id(value: Uint8Array);
|
|
772
|
+
get has_request_id(): boolean;
|
|
773
|
+
static fromObject(data: {
|
|
774
|
+
init_data_type?: LicenseRequest.ContentIdentification.InitData.InitDataType;
|
|
775
|
+
init_data?: Uint8Array;
|
|
776
|
+
license_type?: LicenseType;
|
|
777
|
+
request_id?: Uint8Array;
|
|
778
|
+
}): InitData;
|
|
779
|
+
toObject(): {
|
|
780
|
+
init_data_type?: LicenseRequest.ContentIdentification.InitData.InitDataType;
|
|
781
|
+
init_data?: Uint8Array;
|
|
782
|
+
license_type?: LicenseType;
|
|
783
|
+
request_id?: Uint8Array;
|
|
784
|
+
};
|
|
785
|
+
serialize(): Uint8Array;
|
|
786
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
787
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): InitData;
|
|
788
|
+
serializeBinary(): Uint8Array;
|
|
789
|
+
static deserializeBinary(bytes: Uint8Array): InitData;
|
|
790
|
+
}
|
|
791
|
+
namespace InitData {
|
|
792
|
+
enum InitDataType {
|
|
793
|
+
CENC = 1,
|
|
794
|
+
WEBM = 2
|
|
795
|
+
}
|
|
796
|
+
}
|
|
797
|
+
}
|
|
798
|
+
}
|
|
799
|
+
class MetricData extends pb_1.Message {
|
|
800
|
+
#private;
|
|
801
|
+
constructor(data?: any[] | {
|
|
802
|
+
stage_name?: string;
|
|
803
|
+
metric_data: MetricData.TypeValue[];
|
|
804
|
+
});
|
|
805
|
+
get stage_name(): string;
|
|
806
|
+
set stage_name(value: string);
|
|
807
|
+
get has_stage_name(): boolean;
|
|
808
|
+
get metric_data(): MetricData.TypeValue[];
|
|
809
|
+
set metric_data(value: MetricData.TypeValue[]);
|
|
810
|
+
static fromObject(data: {
|
|
811
|
+
stage_name?: string;
|
|
812
|
+
metric_data?: ReturnType<typeof MetricData.TypeValue.prototype.toObject>[];
|
|
813
|
+
}): MetricData;
|
|
814
|
+
toObject(): {
|
|
815
|
+
stage_name?: string;
|
|
816
|
+
metric_data?: ReturnType<typeof MetricData.TypeValue.prototype.toObject>[];
|
|
817
|
+
};
|
|
818
|
+
serialize(): Uint8Array;
|
|
819
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
820
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): MetricData;
|
|
821
|
+
serializeBinary(): Uint8Array;
|
|
822
|
+
static deserializeBinary(bytes: Uint8Array): MetricData;
|
|
823
|
+
}
|
|
824
|
+
namespace MetricData {
|
|
825
|
+
enum MetricType {
|
|
826
|
+
LATENCY = 1,
|
|
827
|
+
TIMESTAMP = 2
|
|
828
|
+
}
|
|
829
|
+
class TypeValue extends pb_1.Message {
|
|
830
|
+
#private;
|
|
831
|
+
constructor(data?: any[] | {
|
|
832
|
+
type?: MetricData.MetricType;
|
|
833
|
+
value?: number;
|
|
834
|
+
});
|
|
835
|
+
get type(): MetricData.MetricType;
|
|
836
|
+
set type(value: MetricData.MetricType);
|
|
837
|
+
get has_type(): boolean;
|
|
838
|
+
get value(): number;
|
|
839
|
+
set value(value: number);
|
|
840
|
+
get has_value(): boolean;
|
|
841
|
+
static fromObject(data: {
|
|
842
|
+
type?: MetricData.MetricType;
|
|
843
|
+
value?: number;
|
|
844
|
+
}): TypeValue;
|
|
845
|
+
toObject(): {
|
|
846
|
+
type?: MetricData.MetricType;
|
|
847
|
+
value?: number;
|
|
848
|
+
};
|
|
849
|
+
serialize(): Uint8Array;
|
|
850
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
851
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): TypeValue;
|
|
852
|
+
serializeBinary(): Uint8Array;
|
|
853
|
+
static deserializeBinary(bytes: Uint8Array): TypeValue;
|
|
854
|
+
}
|
|
855
|
+
}
|
|
856
|
+
class VersionInfo extends pb_1.Message {
|
|
857
|
+
#private;
|
|
858
|
+
constructor(data?: any[] | {
|
|
859
|
+
license_sdk_version?: string;
|
|
860
|
+
license_service_version?: string;
|
|
861
|
+
});
|
|
862
|
+
get license_sdk_version(): string;
|
|
863
|
+
set license_sdk_version(value: string);
|
|
864
|
+
get has_license_sdk_version(): boolean;
|
|
865
|
+
get license_service_version(): string;
|
|
866
|
+
set license_service_version(value: string);
|
|
867
|
+
get has_license_service_version(): boolean;
|
|
868
|
+
static fromObject(data: {
|
|
869
|
+
license_sdk_version?: string;
|
|
870
|
+
license_service_version?: string;
|
|
871
|
+
}): VersionInfo;
|
|
872
|
+
toObject(): {
|
|
873
|
+
license_sdk_version?: string;
|
|
874
|
+
license_service_version?: string;
|
|
875
|
+
};
|
|
876
|
+
serialize(): Uint8Array;
|
|
877
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
878
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): VersionInfo;
|
|
879
|
+
serializeBinary(): Uint8Array;
|
|
880
|
+
static deserializeBinary(bytes: Uint8Array): VersionInfo;
|
|
881
|
+
}
|
|
882
|
+
class SignedMessage extends pb_1.Message {
|
|
883
|
+
#private;
|
|
884
|
+
constructor(data?: any[] | {
|
|
885
|
+
type?: SignedMessage.MessageType;
|
|
886
|
+
msg?: Uint8Array;
|
|
887
|
+
signature?: Uint8Array;
|
|
888
|
+
session_key?: Uint8Array;
|
|
889
|
+
remote_attestation?: Uint8Array;
|
|
890
|
+
metric_data: MetricData[];
|
|
891
|
+
service_version_info?: VersionInfo;
|
|
892
|
+
session_key_type?: SignedMessage.SessionKeyType;
|
|
893
|
+
oemcrypto_core_message?: Uint8Array;
|
|
894
|
+
});
|
|
895
|
+
get type(): SignedMessage.MessageType;
|
|
896
|
+
set type(value: SignedMessage.MessageType);
|
|
897
|
+
get has_type(): boolean;
|
|
898
|
+
get msg(): Uint8Array;
|
|
899
|
+
set msg(value: Uint8Array);
|
|
900
|
+
get has_msg(): boolean;
|
|
901
|
+
get signature(): Uint8Array;
|
|
902
|
+
set signature(value: Uint8Array);
|
|
903
|
+
get has_signature(): boolean;
|
|
904
|
+
get session_key(): Uint8Array;
|
|
905
|
+
set session_key(value: Uint8Array);
|
|
906
|
+
get has_session_key(): boolean;
|
|
907
|
+
get remote_attestation(): Uint8Array;
|
|
908
|
+
set remote_attestation(value: Uint8Array);
|
|
909
|
+
get has_remote_attestation(): boolean;
|
|
910
|
+
get metric_data(): MetricData[];
|
|
911
|
+
set metric_data(value: MetricData[]);
|
|
912
|
+
get service_version_info(): VersionInfo;
|
|
913
|
+
set service_version_info(value: VersionInfo);
|
|
914
|
+
get has_service_version_info(): boolean;
|
|
915
|
+
get session_key_type(): SignedMessage.SessionKeyType;
|
|
916
|
+
set session_key_type(value: SignedMessage.SessionKeyType);
|
|
917
|
+
get has_session_key_type(): boolean;
|
|
918
|
+
get oemcrypto_core_message(): Uint8Array;
|
|
919
|
+
set oemcrypto_core_message(value: Uint8Array);
|
|
920
|
+
get has_oemcrypto_core_message(): boolean;
|
|
921
|
+
static fromObject(data: {
|
|
922
|
+
type?: SignedMessage.MessageType;
|
|
923
|
+
msg?: Uint8Array;
|
|
924
|
+
signature?: Uint8Array;
|
|
925
|
+
session_key?: Uint8Array;
|
|
926
|
+
remote_attestation?: Uint8Array;
|
|
927
|
+
metric_data?: ReturnType<typeof MetricData.prototype.toObject>[];
|
|
928
|
+
service_version_info?: ReturnType<typeof VersionInfo.prototype.toObject>;
|
|
929
|
+
session_key_type?: SignedMessage.SessionKeyType;
|
|
930
|
+
oemcrypto_core_message?: Uint8Array;
|
|
931
|
+
}): SignedMessage;
|
|
932
|
+
toObject(): {
|
|
933
|
+
type?: SignedMessage.MessageType;
|
|
934
|
+
msg?: Uint8Array;
|
|
935
|
+
signature?: Uint8Array;
|
|
936
|
+
session_key?: Uint8Array;
|
|
937
|
+
remote_attestation?: Uint8Array;
|
|
938
|
+
metric_data?: ReturnType<typeof MetricData.prototype.toObject>[];
|
|
939
|
+
service_version_info?: ReturnType<typeof VersionInfo.prototype.toObject>;
|
|
940
|
+
session_key_type?: SignedMessage.SessionKeyType;
|
|
941
|
+
oemcrypto_core_message?: Uint8Array;
|
|
942
|
+
};
|
|
943
|
+
serialize(): Uint8Array;
|
|
944
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
945
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): SignedMessage;
|
|
946
|
+
serializeBinary(): Uint8Array;
|
|
947
|
+
static deserializeBinary(bytes: Uint8Array): SignedMessage;
|
|
948
|
+
}
|
|
949
|
+
namespace SignedMessage {
|
|
950
|
+
enum MessageType {
|
|
951
|
+
LICENSE_REQUEST = 1,
|
|
952
|
+
LICENSE = 2,
|
|
953
|
+
ERROR_RESPONSE = 3,
|
|
954
|
+
SERVICE_CERTIFICATE_REQUEST = 4,
|
|
955
|
+
SERVICE_CERTIFICATE = 5,
|
|
956
|
+
SUB_LICENSE = 6,
|
|
957
|
+
CAS_LICENSE_REQUEST = 7,
|
|
958
|
+
CAS_LICENSE = 8,
|
|
959
|
+
EXTERNAL_LICENSE_REQUEST = 9,
|
|
960
|
+
EXTERNAL_LICENSE = 10
|
|
961
|
+
}
|
|
962
|
+
enum SessionKeyType {
|
|
963
|
+
UNDEFINED = 0,
|
|
964
|
+
WRAPPED_AES_KEY = 1,
|
|
965
|
+
EPHERMERAL_ECC_PUBLIC_KEY = 2
|
|
966
|
+
}
|
|
967
|
+
}
|
|
968
|
+
class ClientIdentification extends pb_1.Message {
|
|
969
|
+
#private;
|
|
970
|
+
constructor(data?: any[] | {
|
|
971
|
+
type?: ClientIdentification.TokenType;
|
|
972
|
+
token?: Uint8Array;
|
|
973
|
+
client_info: ClientIdentification.NameValue[];
|
|
974
|
+
provider_client_token?: Uint8Array;
|
|
975
|
+
license_counter?: number;
|
|
976
|
+
client_capabilities?: ClientIdentification.ClientCapabilities;
|
|
977
|
+
vmp_data?: Uint8Array;
|
|
978
|
+
device_credentials: ClientIdentification.ClientCredentials[];
|
|
979
|
+
});
|
|
980
|
+
get type(): ClientIdentification.TokenType;
|
|
981
|
+
set type(value: ClientIdentification.TokenType);
|
|
982
|
+
get has_type(): boolean;
|
|
983
|
+
get token(): Uint8Array;
|
|
984
|
+
set token(value: Uint8Array);
|
|
985
|
+
get has_token(): boolean;
|
|
986
|
+
get client_info(): ClientIdentification.NameValue[];
|
|
987
|
+
set client_info(value: ClientIdentification.NameValue[]);
|
|
988
|
+
get provider_client_token(): Uint8Array;
|
|
989
|
+
set provider_client_token(value: Uint8Array);
|
|
990
|
+
get has_provider_client_token(): boolean;
|
|
991
|
+
get license_counter(): number;
|
|
992
|
+
set license_counter(value: number);
|
|
993
|
+
get has_license_counter(): boolean;
|
|
994
|
+
get client_capabilities(): ClientIdentification.ClientCapabilities;
|
|
995
|
+
set client_capabilities(value: ClientIdentification.ClientCapabilities);
|
|
996
|
+
get has_client_capabilities(): boolean;
|
|
997
|
+
get vmp_data(): Uint8Array;
|
|
998
|
+
set vmp_data(value: Uint8Array);
|
|
999
|
+
get has_vmp_data(): boolean;
|
|
1000
|
+
get device_credentials(): ClientIdentification.ClientCredentials[];
|
|
1001
|
+
set device_credentials(value: ClientIdentification.ClientCredentials[]);
|
|
1002
|
+
static fromObject(data: {
|
|
1003
|
+
type?: ClientIdentification.TokenType;
|
|
1004
|
+
token?: Uint8Array;
|
|
1005
|
+
client_info?: ReturnType<typeof ClientIdentification.NameValue.prototype.toObject>[];
|
|
1006
|
+
provider_client_token?: Uint8Array;
|
|
1007
|
+
license_counter?: number;
|
|
1008
|
+
client_capabilities?: ReturnType<typeof ClientIdentification.ClientCapabilities.prototype.toObject>;
|
|
1009
|
+
vmp_data?: Uint8Array;
|
|
1010
|
+
device_credentials?: ReturnType<typeof ClientIdentification.ClientCredentials.prototype.toObject>[];
|
|
1011
|
+
}): ClientIdentification;
|
|
1012
|
+
toObject(): {
|
|
1013
|
+
type?: ClientIdentification.TokenType;
|
|
1014
|
+
token?: Uint8Array;
|
|
1015
|
+
client_info?: ReturnType<typeof ClientIdentification.NameValue.prototype.toObject>[];
|
|
1016
|
+
provider_client_token?: Uint8Array;
|
|
1017
|
+
license_counter?: number;
|
|
1018
|
+
client_capabilities?: ReturnType<typeof ClientIdentification.ClientCapabilities.prototype.toObject>;
|
|
1019
|
+
vmp_data?: Uint8Array;
|
|
1020
|
+
device_credentials?: ReturnType<typeof ClientIdentification.ClientCredentials.prototype.toObject>[];
|
|
1021
|
+
};
|
|
1022
|
+
serialize(): Uint8Array;
|
|
1023
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
1024
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ClientIdentification;
|
|
1025
|
+
serializeBinary(): Uint8Array;
|
|
1026
|
+
static deserializeBinary(bytes: Uint8Array): ClientIdentification;
|
|
1027
|
+
}
|
|
1028
|
+
namespace ClientIdentification {
|
|
1029
|
+
enum TokenType {
|
|
1030
|
+
KEYBOX = 0,
|
|
1031
|
+
DRM_DEVICE_CERTIFICATE = 1,
|
|
1032
|
+
REMOTE_ATTESTATION_CERTIFICATE = 2,
|
|
1033
|
+
OEM_DEVICE_CERTIFICATE = 3
|
|
1034
|
+
}
|
|
1035
|
+
class NameValue extends pb_1.Message {
|
|
1036
|
+
#private;
|
|
1037
|
+
constructor(data?: any[] | {
|
|
1038
|
+
name?: string;
|
|
1039
|
+
value?: string;
|
|
1040
|
+
});
|
|
1041
|
+
get name(): string;
|
|
1042
|
+
set name(value: string);
|
|
1043
|
+
get has_name(): boolean;
|
|
1044
|
+
get value(): string;
|
|
1045
|
+
set value(value: string);
|
|
1046
|
+
get has_value(): boolean;
|
|
1047
|
+
static fromObject(data: {
|
|
1048
|
+
name?: string;
|
|
1049
|
+
value?: string;
|
|
1050
|
+
}): NameValue;
|
|
1051
|
+
toObject(): {
|
|
1052
|
+
name?: string;
|
|
1053
|
+
value?: string;
|
|
1054
|
+
};
|
|
1055
|
+
serialize(): Uint8Array;
|
|
1056
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
1057
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): NameValue;
|
|
1058
|
+
serializeBinary(): Uint8Array;
|
|
1059
|
+
static deserializeBinary(bytes: Uint8Array): NameValue;
|
|
1060
|
+
}
|
|
1061
|
+
class ClientCapabilities extends pb_1.Message {
|
|
1062
|
+
#private;
|
|
1063
|
+
constructor(data?: any[] | {
|
|
1064
|
+
client_token?: boolean;
|
|
1065
|
+
session_token?: boolean;
|
|
1066
|
+
video_resolution_constraints?: boolean;
|
|
1067
|
+
max_hdcp_version?: ClientIdentification.ClientCapabilities.HdcpVersion;
|
|
1068
|
+
oem_crypto_api_version?: number;
|
|
1069
|
+
anti_rollback_usage_table?: boolean;
|
|
1070
|
+
srm_version?: number;
|
|
1071
|
+
can_update_srm?: boolean;
|
|
1072
|
+
supported_certificate_key_type: ClientIdentification.ClientCapabilities.CertificateKeyType[];
|
|
1073
|
+
analog_output_capabilities?: ClientIdentification.ClientCapabilities.AnalogOutputCapabilities;
|
|
1074
|
+
can_disable_analog_output?: boolean;
|
|
1075
|
+
resource_rating_tier?: number;
|
|
1076
|
+
});
|
|
1077
|
+
get client_token(): boolean;
|
|
1078
|
+
set client_token(value: boolean);
|
|
1079
|
+
get has_client_token(): boolean;
|
|
1080
|
+
get session_token(): boolean;
|
|
1081
|
+
set session_token(value: boolean);
|
|
1082
|
+
get has_session_token(): boolean;
|
|
1083
|
+
get video_resolution_constraints(): boolean;
|
|
1084
|
+
set video_resolution_constraints(value: boolean);
|
|
1085
|
+
get has_video_resolution_constraints(): boolean;
|
|
1086
|
+
get max_hdcp_version(): ClientIdentification.ClientCapabilities.HdcpVersion;
|
|
1087
|
+
set max_hdcp_version(value: ClientIdentification.ClientCapabilities.HdcpVersion);
|
|
1088
|
+
get has_max_hdcp_version(): boolean;
|
|
1089
|
+
get oem_crypto_api_version(): number;
|
|
1090
|
+
set oem_crypto_api_version(value: number);
|
|
1091
|
+
get has_oem_crypto_api_version(): boolean;
|
|
1092
|
+
get anti_rollback_usage_table(): boolean;
|
|
1093
|
+
set anti_rollback_usage_table(value: boolean);
|
|
1094
|
+
get has_anti_rollback_usage_table(): boolean;
|
|
1095
|
+
get srm_version(): number;
|
|
1096
|
+
set srm_version(value: number);
|
|
1097
|
+
get has_srm_version(): boolean;
|
|
1098
|
+
get can_update_srm(): boolean;
|
|
1099
|
+
set can_update_srm(value: boolean);
|
|
1100
|
+
get has_can_update_srm(): boolean;
|
|
1101
|
+
get supported_certificate_key_type(): ClientIdentification.ClientCapabilities.CertificateKeyType[];
|
|
1102
|
+
set supported_certificate_key_type(value: ClientIdentification.ClientCapabilities.CertificateKeyType[]);
|
|
1103
|
+
get analog_output_capabilities(): ClientIdentification.ClientCapabilities.AnalogOutputCapabilities;
|
|
1104
|
+
set analog_output_capabilities(value: ClientIdentification.ClientCapabilities.AnalogOutputCapabilities);
|
|
1105
|
+
get has_analog_output_capabilities(): boolean;
|
|
1106
|
+
get can_disable_analog_output(): boolean;
|
|
1107
|
+
set can_disable_analog_output(value: boolean);
|
|
1108
|
+
get has_can_disable_analog_output(): boolean;
|
|
1109
|
+
get resource_rating_tier(): number;
|
|
1110
|
+
set resource_rating_tier(value: number);
|
|
1111
|
+
get has_resource_rating_tier(): boolean;
|
|
1112
|
+
static fromObject(data: {
|
|
1113
|
+
client_token?: boolean;
|
|
1114
|
+
session_token?: boolean;
|
|
1115
|
+
video_resolution_constraints?: boolean;
|
|
1116
|
+
max_hdcp_version?: ClientIdentification.ClientCapabilities.HdcpVersion;
|
|
1117
|
+
oem_crypto_api_version?: number;
|
|
1118
|
+
anti_rollback_usage_table?: boolean;
|
|
1119
|
+
srm_version?: number;
|
|
1120
|
+
can_update_srm?: boolean;
|
|
1121
|
+
supported_certificate_key_type: ClientIdentification.ClientCapabilities.CertificateKeyType[];
|
|
1122
|
+
analog_output_capabilities?: ClientIdentification.ClientCapabilities.AnalogOutputCapabilities;
|
|
1123
|
+
can_disable_analog_output?: boolean;
|
|
1124
|
+
resource_rating_tier?: number;
|
|
1125
|
+
}): ClientCapabilities;
|
|
1126
|
+
toObject(): {
|
|
1127
|
+
client_token?: boolean;
|
|
1128
|
+
session_token?: boolean;
|
|
1129
|
+
video_resolution_constraints?: boolean;
|
|
1130
|
+
max_hdcp_version?: ClientIdentification.ClientCapabilities.HdcpVersion;
|
|
1131
|
+
oem_crypto_api_version?: number;
|
|
1132
|
+
anti_rollback_usage_table?: boolean;
|
|
1133
|
+
srm_version?: number;
|
|
1134
|
+
can_update_srm?: boolean;
|
|
1135
|
+
supported_certificate_key_type: ClientIdentification.ClientCapabilities.CertificateKeyType[];
|
|
1136
|
+
analog_output_capabilities?: ClientIdentification.ClientCapabilities.AnalogOutputCapabilities;
|
|
1137
|
+
can_disable_analog_output?: boolean;
|
|
1138
|
+
resource_rating_tier?: number;
|
|
1139
|
+
};
|
|
1140
|
+
serialize(): Uint8Array;
|
|
1141
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
1142
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ClientCapabilities;
|
|
1143
|
+
serializeBinary(): Uint8Array;
|
|
1144
|
+
static deserializeBinary(bytes: Uint8Array): ClientCapabilities;
|
|
1145
|
+
}
|
|
1146
|
+
namespace ClientCapabilities {
|
|
1147
|
+
enum HdcpVersion {
|
|
1148
|
+
HDCP_NONE = 0,
|
|
1149
|
+
HDCP_V1 = 1,
|
|
1150
|
+
HDCP_V2 = 2,
|
|
1151
|
+
HDCP_V2_1 = 3,
|
|
1152
|
+
HDCP_V2_2 = 4,
|
|
1153
|
+
HDCP_V2_3 = 5,
|
|
1154
|
+
HDCP_NO_DIGITAL_OUTPUT = 255
|
|
1155
|
+
}
|
|
1156
|
+
enum CertificateKeyType {
|
|
1157
|
+
RSA_2048 = 0,
|
|
1158
|
+
RSA_3072 = 1,
|
|
1159
|
+
ECC_SECP256R1 = 2,
|
|
1160
|
+
ECC_SECP384R1 = 3,
|
|
1161
|
+
ECC_SECP521R1 = 4
|
|
1162
|
+
}
|
|
1163
|
+
enum AnalogOutputCapabilities {
|
|
1164
|
+
ANALOG_OUTPUT_UNKNOWN = 0,
|
|
1165
|
+
ANALOG_OUTPUT_NONE = 1,
|
|
1166
|
+
ANALOG_OUTPUT_SUPPORTED = 2,
|
|
1167
|
+
ANALOG_OUTPUT_SUPPORTS_CGMS_A = 3
|
|
1168
|
+
}
|
|
1169
|
+
}
|
|
1170
|
+
class ClientCredentials extends pb_1.Message {
|
|
1171
|
+
#private;
|
|
1172
|
+
constructor(data?: any[] | {
|
|
1173
|
+
type?: ClientIdentification.TokenType;
|
|
1174
|
+
token?: Uint8Array;
|
|
1175
|
+
});
|
|
1176
|
+
get type(): ClientIdentification.TokenType;
|
|
1177
|
+
set type(value: ClientIdentification.TokenType);
|
|
1178
|
+
get has_type(): boolean;
|
|
1179
|
+
get token(): Uint8Array;
|
|
1180
|
+
set token(value: Uint8Array);
|
|
1181
|
+
get has_token(): boolean;
|
|
1182
|
+
static fromObject(data: {
|
|
1183
|
+
type?: ClientIdentification.TokenType;
|
|
1184
|
+
token?: Uint8Array;
|
|
1185
|
+
}): ClientCredentials;
|
|
1186
|
+
toObject(): {
|
|
1187
|
+
type?: ClientIdentification.TokenType;
|
|
1188
|
+
token?: Uint8Array;
|
|
1189
|
+
};
|
|
1190
|
+
serialize(): Uint8Array;
|
|
1191
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
1192
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ClientCredentials;
|
|
1193
|
+
serializeBinary(): Uint8Array;
|
|
1194
|
+
static deserializeBinary(bytes: Uint8Array): ClientCredentials;
|
|
1195
|
+
}
|
|
1196
|
+
}
|
|
1197
|
+
class EncryptedClientIdentification extends pb_1.Message {
|
|
1198
|
+
#private;
|
|
1199
|
+
constructor(data?: any[] | {
|
|
1200
|
+
provider_id?: string;
|
|
1201
|
+
service_certificate_serial_number?: Uint8Array;
|
|
1202
|
+
encrypted_client_id?: Uint8Array;
|
|
1203
|
+
encrypted_client_id_iv?: Uint8Array;
|
|
1204
|
+
encrypted_privacy_key?: Uint8Array;
|
|
1205
|
+
});
|
|
1206
|
+
get provider_id(): string;
|
|
1207
|
+
set provider_id(value: string);
|
|
1208
|
+
get has_provider_id(): boolean;
|
|
1209
|
+
get service_certificate_serial_number(): Uint8Array;
|
|
1210
|
+
set service_certificate_serial_number(value: Uint8Array);
|
|
1211
|
+
get has_service_certificate_serial_number(): boolean;
|
|
1212
|
+
get encrypted_client_id(): Uint8Array;
|
|
1213
|
+
set encrypted_client_id(value: Uint8Array);
|
|
1214
|
+
get has_encrypted_client_id(): boolean;
|
|
1215
|
+
get encrypted_client_id_iv(): Uint8Array;
|
|
1216
|
+
set encrypted_client_id_iv(value: Uint8Array);
|
|
1217
|
+
get has_encrypted_client_id_iv(): boolean;
|
|
1218
|
+
get encrypted_privacy_key(): Uint8Array;
|
|
1219
|
+
set encrypted_privacy_key(value: Uint8Array);
|
|
1220
|
+
get has_encrypted_privacy_key(): boolean;
|
|
1221
|
+
static fromObject(data: {
|
|
1222
|
+
provider_id?: string;
|
|
1223
|
+
service_certificate_serial_number?: Uint8Array;
|
|
1224
|
+
encrypted_client_id?: Uint8Array;
|
|
1225
|
+
encrypted_client_id_iv?: Uint8Array;
|
|
1226
|
+
encrypted_privacy_key?: Uint8Array;
|
|
1227
|
+
}): EncryptedClientIdentification;
|
|
1228
|
+
toObject(): {
|
|
1229
|
+
provider_id?: string;
|
|
1230
|
+
service_certificate_serial_number?: Uint8Array;
|
|
1231
|
+
encrypted_client_id?: Uint8Array;
|
|
1232
|
+
encrypted_client_id_iv?: Uint8Array;
|
|
1233
|
+
encrypted_privacy_key?: Uint8Array;
|
|
1234
|
+
};
|
|
1235
|
+
serialize(): Uint8Array;
|
|
1236
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
1237
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): EncryptedClientIdentification;
|
|
1238
|
+
serializeBinary(): Uint8Array;
|
|
1239
|
+
static deserializeBinary(bytes: Uint8Array): EncryptedClientIdentification;
|
|
1240
|
+
}
|
|
1241
|
+
class DrmCertificate extends pb_1.Message {
|
|
1242
|
+
#private;
|
|
1243
|
+
constructor(data?: any[] | {
|
|
1244
|
+
type?: DrmCertificate.Type;
|
|
1245
|
+
serial_number?: Uint8Array;
|
|
1246
|
+
creation_time_seconds?: number;
|
|
1247
|
+
expiration_time_seconds?: number;
|
|
1248
|
+
public_key?: Uint8Array;
|
|
1249
|
+
system_id?: number;
|
|
1250
|
+
/** @deprecated*/
|
|
1251
|
+
test_device_deprecated?: boolean;
|
|
1252
|
+
provider_id?: string;
|
|
1253
|
+
service_types: DrmCertificate.ServiceType[];
|
|
1254
|
+
algorithm?: DrmCertificate.Algorithm;
|
|
1255
|
+
rot_id?: Uint8Array;
|
|
1256
|
+
encryption_key?: DrmCertificate.EncryptionKey;
|
|
1257
|
+
});
|
|
1258
|
+
get type(): DrmCertificate.Type;
|
|
1259
|
+
set type(value: DrmCertificate.Type);
|
|
1260
|
+
get has_type(): boolean;
|
|
1261
|
+
get serial_number(): Uint8Array;
|
|
1262
|
+
set serial_number(value: Uint8Array);
|
|
1263
|
+
get has_serial_number(): boolean;
|
|
1264
|
+
get creation_time_seconds(): number;
|
|
1265
|
+
set creation_time_seconds(value: number);
|
|
1266
|
+
get has_creation_time_seconds(): boolean;
|
|
1267
|
+
get expiration_time_seconds(): number;
|
|
1268
|
+
set expiration_time_seconds(value: number);
|
|
1269
|
+
get has_expiration_time_seconds(): boolean;
|
|
1270
|
+
get public_key(): Uint8Array;
|
|
1271
|
+
set public_key(value: Uint8Array);
|
|
1272
|
+
get has_public_key(): boolean;
|
|
1273
|
+
get system_id(): number;
|
|
1274
|
+
set system_id(value: number);
|
|
1275
|
+
get has_system_id(): boolean;
|
|
1276
|
+
/** @deprecated*/
|
|
1277
|
+
get test_device_deprecated(): boolean;
|
|
1278
|
+
/** @deprecated*/
|
|
1279
|
+
set test_device_deprecated(value: boolean);
|
|
1280
|
+
/** @deprecated*/
|
|
1281
|
+
get has_test_device_deprecated(): boolean;
|
|
1282
|
+
get provider_id(): string;
|
|
1283
|
+
set provider_id(value: string);
|
|
1284
|
+
get has_provider_id(): boolean;
|
|
1285
|
+
get service_types(): DrmCertificate.ServiceType[];
|
|
1286
|
+
set service_types(value: DrmCertificate.ServiceType[]);
|
|
1287
|
+
get algorithm(): DrmCertificate.Algorithm;
|
|
1288
|
+
set algorithm(value: DrmCertificate.Algorithm);
|
|
1289
|
+
get has_algorithm(): boolean;
|
|
1290
|
+
get rot_id(): Uint8Array;
|
|
1291
|
+
set rot_id(value: Uint8Array);
|
|
1292
|
+
get has_rot_id(): boolean;
|
|
1293
|
+
get encryption_key(): DrmCertificate.EncryptionKey;
|
|
1294
|
+
set encryption_key(value: DrmCertificate.EncryptionKey);
|
|
1295
|
+
get has_encryption_key(): boolean;
|
|
1296
|
+
static fromObject(data: {
|
|
1297
|
+
type?: DrmCertificate.Type;
|
|
1298
|
+
serial_number?: Uint8Array;
|
|
1299
|
+
creation_time_seconds?: number;
|
|
1300
|
+
expiration_time_seconds?: number;
|
|
1301
|
+
public_key?: Uint8Array;
|
|
1302
|
+
system_id?: number;
|
|
1303
|
+
test_device_deprecated?: boolean;
|
|
1304
|
+
provider_id?: string;
|
|
1305
|
+
service_types: DrmCertificate.ServiceType[];
|
|
1306
|
+
algorithm?: DrmCertificate.Algorithm;
|
|
1307
|
+
rot_id?: Uint8Array;
|
|
1308
|
+
encryption_key?: ReturnType<typeof DrmCertificate.EncryptionKey.prototype.toObject>;
|
|
1309
|
+
}): DrmCertificate;
|
|
1310
|
+
toObject(): {
|
|
1311
|
+
type?: DrmCertificate.Type;
|
|
1312
|
+
serial_number?: Uint8Array;
|
|
1313
|
+
creation_time_seconds?: number;
|
|
1314
|
+
expiration_time_seconds?: number;
|
|
1315
|
+
public_key?: Uint8Array;
|
|
1316
|
+
system_id?: number;
|
|
1317
|
+
test_device_deprecated?: boolean;
|
|
1318
|
+
provider_id?: string;
|
|
1319
|
+
service_types: DrmCertificate.ServiceType[];
|
|
1320
|
+
algorithm?: DrmCertificate.Algorithm;
|
|
1321
|
+
rot_id?: Uint8Array;
|
|
1322
|
+
encryption_key?: ReturnType<typeof DrmCertificate.EncryptionKey.prototype.toObject>;
|
|
1323
|
+
};
|
|
1324
|
+
serialize(): Uint8Array;
|
|
1325
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
1326
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): DrmCertificate;
|
|
1327
|
+
serializeBinary(): Uint8Array;
|
|
1328
|
+
static deserializeBinary(bytes: Uint8Array): DrmCertificate;
|
|
1329
|
+
}
|
|
1330
|
+
namespace DrmCertificate {
|
|
1331
|
+
enum Type {
|
|
1332
|
+
ROOT = 0,
|
|
1333
|
+
DEVICE_MODEL = 1,
|
|
1334
|
+
DEVICE = 2,
|
|
1335
|
+
SERVICE = 3,
|
|
1336
|
+
PROVISIONER = 4
|
|
1337
|
+
}
|
|
1338
|
+
enum ServiceType {
|
|
1339
|
+
UNKNOWN_SERVICE_TYPE = 0,
|
|
1340
|
+
LICENSE_SERVER_SDK = 1,
|
|
1341
|
+
LICENSE_SERVER_PROXY_SDK = 2,
|
|
1342
|
+
PROVISIONING_SDK = 3,
|
|
1343
|
+
CAS_PROXY_SDK = 4
|
|
1344
|
+
}
|
|
1345
|
+
enum Algorithm {
|
|
1346
|
+
UNKNOWN_ALGORITHM = 0,
|
|
1347
|
+
RSA = 1,
|
|
1348
|
+
ECC_SECP256R1 = 2,
|
|
1349
|
+
ECC_SECP384R1 = 3,
|
|
1350
|
+
ECC_SECP521R1 = 4
|
|
1351
|
+
}
|
|
1352
|
+
class EncryptionKey extends pb_1.Message {
|
|
1353
|
+
#private;
|
|
1354
|
+
constructor(data?: any[] | {
|
|
1355
|
+
public_key?: Uint8Array;
|
|
1356
|
+
algorithm?: DrmCertificate.Algorithm;
|
|
1357
|
+
});
|
|
1358
|
+
get public_key(): Uint8Array;
|
|
1359
|
+
set public_key(value: Uint8Array);
|
|
1360
|
+
get has_public_key(): boolean;
|
|
1361
|
+
get algorithm(): DrmCertificate.Algorithm;
|
|
1362
|
+
set algorithm(value: DrmCertificate.Algorithm);
|
|
1363
|
+
get has_algorithm(): boolean;
|
|
1364
|
+
static fromObject(data: {
|
|
1365
|
+
public_key?: Uint8Array;
|
|
1366
|
+
algorithm?: DrmCertificate.Algorithm;
|
|
1367
|
+
}): EncryptionKey;
|
|
1368
|
+
toObject(): {
|
|
1369
|
+
public_key?: Uint8Array;
|
|
1370
|
+
algorithm?: DrmCertificate.Algorithm;
|
|
1371
|
+
};
|
|
1372
|
+
serialize(): Uint8Array;
|
|
1373
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
1374
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): EncryptionKey;
|
|
1375
|
+
serializeBinary(): Uint8Array;
|
|
1376
|
+
static deserializeBinary(bytes: Uint8Array): EncryptionKey;
|
|
1377
|
+
}
|
|
1378
|
+
}
|
|
1379
|
+
class SignedDrmCertificate extends pb_1.Message {
|
|
1380
|
+
#private;
|
|
1381
|
+
constructor(data?: any[] | {
|
|
1382
|
+
drm_certificate?: Uint8Array;
|
|
1383
|
+
signature?: Uint8Array;
|
|
1384
|
+
signer?: SignedDrmCertificate;
|
|
1385
|
+
hash_algorithm?: HashAlgorithmProto;
|
|
1386
|
+
});
|
|
1387
|
+
get drm_certificate(): Uint8Array;
|
|
1388
|
+
set drm_certificate(value: Uint8Array);
|
|
1389
|
+
get has_drm_certificate(): boolean;
|
|
1390
|
+
get signature(): Uint8Array;
|
|
1391
|
+
set signature(value: Uint8Array);
|
|
1392
|
+
get has_signature(): boolean;
|
|
1393
|
+
get signer(): SignedDrmCertificate;
|
|
1394
|
+
set signer(value: SignedDrmCertificate);
|
|
1395
|
+
get has_signer(): boolean;
|
|
1396
|
+
get hash_algorithm(): HashAlgorithmProto;
|
|
1397
|
+
set hash_algorithm(value: HashAlgorithmProto);
|
|
1398
|
+
get has_hash_algorithm(): boolean;
|
|
1399
|
+
static fromObject(data: {
|
|
1400
|
+
drm_certificate?: Uint8Array;
|
|
1401
|
+
signature?: Uint8Array;
|
|
1402
|
+
signer?: ReturnType<typeof SignedDrmCertificate.prototype.toObject>;
|
|
1403
|
+
hash_algorithm?: HashAlgorithmProto;
|
|
1404
|
+
}): SignedDrmCertificate;
|
|
1405
|
+
toObject(): {
|
|
1406
|
+
drm_certificate?: Uint8Array;
|
|
1407
|
+
signature?: Uint8Array;
|
|
1408
|
+
signer?: ReturnType<typeof SignedDrmCertificate.prototype.toObject>;
|
|
1409
|
+
hash_algorithm?: HashAlgorithmProto;
|
|
1410
|
+
};
|
|
1411
|
+
serialize(): Uint8Array;
|
|
1412
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
1413
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): SignedDrmCertificate;
|
|
1414
|
+
serializeBinary(): Uint8Array;
|
|
1415
|
+
static deserializeBinary(bytes: Uint8Array): SignedDrmCertificate;
|
|
1416
|
+
}
|
|
1417
|
+
class WidevinePsshData extends pb_1.Message {
|
|
1418
|
+
#private;
|
|
1419
|
+
constructor(data?: any[] | {
|
|
1420
|
+
key_ids: Uint8Array[];
|
|
1421
|
+
content_id?: Uint8Array;
|
|
1422
|
+
crypto_period_index?: number;
|
|
1423
|
+
protection_scheme?: number;
|
|
1424
|
+
crypto_period_seconds?: number;
|
|
1425
|
+
type?: WidevinePsshData.Type;
|
|
1426
|
+
key_sequence?: number;
|
|
1427
|
+
group_ids: Uint8Array[];
|
|
1428
|
+
entitled_keys: WidevinePsshData.EntitledKey[];
|
|
1429
|
+
video_feature?: string;
|
|
1430
|
+
/** @deprecated*/
|
|
1431
|
+
algorithm?: WidevinePsshData.Algorithm;
|
|
1432
|
+
/** @deprecated*/
|
|
1433
|
+
provider?: string;
|
|
1434
|
+
/** @deprecated*/
|
|
1435
|
+
track_type?: string;
|
|
1436
|
+
/** @deprecated*/
|
|
1437
|
+
policy?: string;
|
|
1438
|
+
/** @deprecated*/
|
|
1439
|
+
grouped_license?: Uint8Array;
|
|
1440
|
+
});
|
|
1441
|
+
get key_ids(): Uint8Array[];
|
|
1442
|
+
set key_ids(value: Uint8Array[]);
|
|
1443
|
+
get content_id(): Uint8Array;
|
|
1444
|
+
set content_id(value: Uint8Array);
|
|
1445
|
+
get has_content_id(): boolean;
|
|
1446
|
+
get crypto_period_index(): number;
|
|
1447
|
+
set crypto_period_index(value: number);
|
|
1448
|
+
get has_crypto_period_index(): boolean;
|
|
1449
|
+
get protection_scheme(): number;
|
|
1450
|
+
set protection_scheme(value: number);
|
|
1451
|
+
get has_protection_scheme(): boolean;
|
|
1452
|
+
get crypto_period_seconds(): number;
|
|
1453
|
+
set crypto_period_seconds(value: number);
|
|
1454
|
+
get has_crypto_period_seconds(): boolean;
|
|
1455
|
+
get type(): WidevinePsshData.Type;
|
|
1456
|
+
set type(value: WidevinePsshData.Type);
|
|
1457
|
+
get has_type(): boolean;
|
|
1458
|
+
get key_sequence(): number;
|
|
1459
|
+
set key_sequence(value: number);
|
|
1460
|
+
get has_key_sequence(): boolean;
|
|
1461
|
+
get group_ids(): Uint8Array[];
|
|
1462
|
+
set group_ids(value: Uint8Array[]);
|
|
1463
|
+
get entitled_keys(): WidevinePsshData.EntitledKey[];
|
|
1464
|
+
set entitled_keys(value: WidevinePsshData.EntitledKey[]);
|
|
1465
|
+
get video_feature(): string;
|
|
1466
|
+
set video_feature(value: string);
|
|
1467
|
+
get has_video_feature(): boolean;
|
|
1468
|
+
/** @deprecated*/
|
|
1469
|
+
get algorithm(): WidevinePsshData.Algorithm;
|
|
1470
|
+
/** @deprecated*/
|
|
1471
|
+
set algorithm(value: WidevinePsshData.Algorithm);
|
|
1472
|
+
/** @deprecated*/
|
|
1473
|
+
get has_algorithm(): boolean;
|
|
1474
|
+
/** @deprecated*/
|
|
1475
|
+
get provider(): string;
|
|
1476
|
+
/** @deprecated*/
|
|
1477
|
+
set provider(value: string);
|
|
1478
|
+
/** @deprecated*/
|
|
1479
|
+
get has_provider(): boolean;
|
|
1480
|
+
/** @deprecated*/
|
|
1481
|
+
get track_type(): string;
|
|
1482
|
+
/** @deprecated*/
|
|
1483
|
+
set track_type(value: string);
|
|
1484
|
+
/** @deprecated*/
|
|
1485
|
+
get has_track_type(): boolean;
|
|
1486
|
+
/** @deprecated*/
|
|
1487
|
+
get policy(): string;
|
|
1488
|
+
/** @deprecated*/
|
|
1489
|
+
set policy(value: string);
|
|
1490
|
+
/** @deprecated*/
|
|
1491
|
+
get has_policy(): boolean;
|
|
1492
|
+
/** @deprecated*/
|
|
1493
|
+
get grouped_license(): Uint8Array;
|
|
1494
|
+
/** @deprecated*/
|
|
1495
|
+
set grouped_license(value: Uint8Array);
|
|
1496
|
+
/** @deprecated*/
|
|
1497
|
+
get has_grouped_license(): boolean;
|
|
1498
|
+
static fromObject(data: {
|
|
1499
|
+
key_ids: Uint8Array[];
|
|
1500
|
+
content_id?: Uint8Array;
|
|
1501
|
+
crypto_period_index?: number;
|
|
1502
|
+
protection_scheme?: number;
|
|
1503
|
+
crypto_period_seconds?: number;
|
|
1504
|
+
type?: WidevinePsshData.Type;
|
|
1505
|
+
key_sequence?: number;
|
|
1506
|
+
group_ids: Uint8Array[];
|
|
1507
|
+
entitled_keys?: ReturnType<typeof WidevinePsshData.EntitledKey.prototype.toObject>[];
|
|
1508
|
+
video_feature?: string;
|
|
1509
|
+
algorithm?: WidevinePsshData.Algorithm;
|
|
1510
|
+
provider?: string;
|
|
1511
|
+
track_type?: string;
|
|
1512
|
+
policy?: string;
|
|
1513
|
+
grouped_license?: Uint8Array;
|
|
1514
|
+
}): WidevinePsshData;
|
|
1515
|
+
toObject(): {
|
|
1516
|
+
key_ids: Uint8Array[];
|
|
1517
|
+
content_id?: Uint8Array;
|
|
1518
|
+
crypto_period_index?: number;
|
|
1519
|
+
protection_scheme?: number;
|
|
1520
|
+
crypto_period_seconds?: number;
|
|
1521
|
+
type?: WidevinePsshData.Type;
|
|
1522
|
+
key_sequence?: number;
|
|
1523
|
+
group_ids: Uint8Array[];
|
|
1524
|
+
entitled_keys?: ReturnType<typeof WidevinePsshData.EntitledKey.prototype.toObject>[];
|
|
1525
|
+
video_feature?: string;
|
|
1526
|
+
algorithm?: WidevinePsshData.Algorithm;
|
|
1527
|
+
provider?: string;
|
|
1528
|
+
track_type?: string;
|
|
1529
|
+
policy?: string;
|
|
1530
|
+
grouped_license?: Uint8Array;
|
|
1531
|
+
};
|
|
1532
|
+
serialize(): Uint8Array;
|
|
1533
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
1534
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): WidevinePsshData;
|
|
1535
|
+
serializeBinary(): Uint8Array;
|
|
1536
|
+
static deserializeBinary(bytes: Uint8Array): WidevinePsshData;
|
|
1537
|
+
}
|
|
1538
|
+
namespace WidevinePsshData {
|
|
1539
|
+
enum Type {
|
|
1540
|
+
SINGLE = 0,
|
|
1541
|
+
ENTITLEMENT = 1,
|
|
1542
|
+
ENTITLED_KEY = 2
|
|
1543
|
+
}
|
|
1544
|
+
enum Algorithm {
|
|
1545
|
+
UNENCRYPTED = 0,
|
|
1546
|
+
AESCTR = 1
|
|
1547
|
+
}
|
|
1548
|
+
class EntitledKey extends pb_1.Message {
|
|
1549
|
+
#private;
|
|
1550
|
+
constructor(data?: any[] | {
|
|
1551
|
+
entitlement_key_id?: Uint8Array;
|
|
1552
|
+
key_id?: Uint8Array;
|
|
1553
|
+
key?: Uint8Array;
|
|
1554
|
+
iv?: Uint8Array;
|
|
1555
|
+
entitlement_key_size_bytes?: number;
|
|
1556
|
+
});
|
|
1557
|
+
get entitlement_key_id(): Uint8Array;
|
|
1558
|
+
set entitlement_key_id(value: Uint8Array);
|
|
1559
|
+
get has_entitlement_key_id(): boolean;
|
|
1560
|
+
get key_id(): Uint8Array;
|
|
1561
|
+
set key_id(value: Uint8Array);
|
|
1562
|
+
get has_key_id(): boolean;
|
|
1563
|
+
get key(): Uint8Array;
|
|
1564
|
+
set key(value: Uint8Array);
|
|
1565
|
+
get has_key(): boolean;
|
|
1566
|
+
get iv(): Uint8Array;
|
|
1567
|
+
set iv(value: Uint8Array);
|
|
1568
|
+
get has_iv(): boolean;
|
|
1569
|
+
get entitlement_key_size_bytes(): number;
|
|
1570
|
+
set entitlement_key_size_bytes(value: number);
|
|
1571
|
+
get has_entitlement_key_size_bytes(): boolean;
|
|
1572
|
+
static fromObject(data: {
|
|
1573
|
+
entitlement_key_id?: Uint8Array;
|
|
1574
|
+
key_id?: Uint8Array;
|
|
1575
|
+
key?: Uint8Array;
|
|
1576
|
+
iv?: Uint8Array;
|
|
1577
|
+
entitlement_key_size_bytes?: number;
|
|
1578
|
+
}): EntitledKey;
|
|
1579
|
+
toObject(): {
|
|
1580
|
+
entitlement_key_id?: Uint8Array;
|
|
1581
|
+
key_id?: Uint8Array;
|
|
1582
|
+
key?: Uint8Array;
|
|
1583
|
+
iv?: Uint8Array;
|
|
1584
|
+
entitlement_key_size_bytes?: number;
|
|
1585
|
+
};
|
|
1586
|
+
serialize(): Uint8Array;
|
|
1587
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
1588
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): EntitledKey;
|
|
1589
|
+
serializeBinary(): Uint8Array;
|
|
1590
|
+
static deserializeBinary(bytes: Uint8Array): EntitledKey;
|
|
1591
|
+
}
|
|
1592
|
+
}
|
|
1593
|
+
class FileHashes extends pb_1.Message {
|
|
1594
|
+
#private;
|
|
1595
|
+
constructor(data?: any[] | {
|
|
1596
|
+
signer?: Uint8Array;
|
|
1597
|
+
signatures: FileHashes.Signature[];
|
|
1598
|
+
});
|
|
1599
|
+
get signer(): Uint8Array;
|
|
1600
|
+
set signer(value: Uint8Array);
|
|
1601
|
+
get has_signer(): boolean;
|
|
1602
|
+
get signatures(): FileHashes.Signature[];
|
|
1603
|
+
set signatures(value: FileHashes.Signature[]);
|
|
1604
|
+
static fromObject(data: {
|
|
1605
|
+
signer?: Uint8Array;
|
|
1606
|
+
signatures?: ReturnType<typeof FileHashes.Signature.prototype.toObject>[];
|
|
1607
|
+
}): FileHashes;
|
|
1608
|
+
toObject(): {
|
|
1609
|
+
signer?: Uint8Array;
|
|
1610
|
+
signatures?: ReturnType<typeof FileHashes.Signature.prototype.toObject>[];
|
|
1611
|
+
};
|
|
1612
|
+
serialize(): Uint8Array;
|
|
1613
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
1614
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): FileHashes;
|
|
1615
|
+
serializeBinary(): Uint8Array;
|
|
1616
|
+
static deserializeBinary(bytes: Uint8Array): FileHashes;
|
|
1617
|
+
}
|
|
1618
|
+
namespace FileHashes {
|
|
1619
|
+
class Signature extends pb_1.Message {
|
|
1620
|
+
#private;
|
|
1621
|
+
constructor(data?: any[] | {
|
|
1622
|
+
filename?: string;
|
|
1623
|
+
test_signing?: boolean;
|
|
1624
|
+
SHA512Hash?: Uint8Array;
|
|
1625
|
+
main_exe?: boolean;
|
|
1626
|
+
signature?: Uint8Array;
|
|
1627
|
+
});
|
|
1628
|
+
get filename(): string;
|
|
1629
|
+
set filename(value: string);
|
|
1630
|
+
get has_filename(): boolean;
|
|
1631
|
+
get test_signing(): boolean;
|
|
1632
|
+
set test_signing(value: boolean);
|
|
1633
|
+
get has_test_signing(): boolean;
|
|
1634
|
+
get SHA512Hash(): Uint8Array;
|
|
1635
|
+
set SHA512Hash(value: Uint8Array);
|
|
1636
|
+
get has_SHA512Hash(): boolean;
|
|
1637
|
+
get main_exe(): boolean;
|
|
1638
|
+
set main_exe(value: boolean);
|
|
1639
|
+
get has_main_exe(): boolean;
|
|
1640
|
+
get signature(): Uint8Array;
|
|
1641
|
+
set signature(value: Uint8Array);
|
|
1642
|
+
get has_signature(): boolean;
|
|
1643
|
+
static fromObject(data: {
|
|
1644
|
+
filename?: string;
|
|
1645
|
+
test_signing?: boolean;
|
|
1646
|
+
SHA512Hash?: Uint8Array;
|
|
1647
|
+
main_exe?: boolean;
|
|
1648
|
+
signature?: Uint8Array;
|
|
1649
|
+
}): Signature;
|
|
1650
|
+
toObject(): {
|
|
1651
|
+
filename?: string;
|
|
1652
|
+
test_signing?: boolean;
|
|
1653
|
+
SHA512Hash?: Uint8Array;
|
|
1654
|
+
main_exe?: boolean;
|
|
1655
|
+
signature?: Uint8Array;
|
|
1656
|
+
};
|
|
1657
|
+
serialize(): Uint8Array;
|
|
1658
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
1659
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Signature;
|
|
1660
|
+
serializeBinary(): Uint8Array;
|
|
1661
|
+
static deserializeBinary(bytes: Uint8Array): Signature;
|
|
1662
|
+
}
|
|
1663
|
+
}
|
|
1664
|
+
}
|