azot 0.8.3 → 0.9.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.
@@ -1,2454 +0,0 @@
1
- import * as $protobuf from 'protobufjs';
2
- import Long from 'long';
3
-
4
- /** PlatformVerificationStatus enum. */
5
- declare enum PlatformVerificationStatus {
6
- PLATFORM_UNVERIFIED = 0,
7
- PLATFORM_TAMPERED = 1,
8
- PLATFORM_SOFTWARE_VERIFIED = 2,
9
- PLATFORM_HARDWARE_VERIFIED = 3,
10
- PLATFORM_NO_VERIFICATION = 4,
11
- PLATFORM_SECURE_STORAGE_SOFTWARE_VERIFIED = 5,
12
- }
13
-
14
- /** Represents a License. */
15
- declare class License implements ILicense {
16
- /**
17
- * Constructs a new License.
18
- * @param [p] Properties to set
19
- */
20
- constructor(p?: ILicense);
21
-
22
- /** License id. */
23
- public id?: ILicenseIdentification | null;
24
-
25
- /** License policy. */
26
- public policy?: License.IPolicy | null;
27
-
28
- /** License key. */
29
- public key: License.IKeyContainer[];
30
-
31
- /** License licenseStartTime. */
32
- public licenseStartTime: number | Long;
33
-
34
- /** License remoteAttestationVerified. */
35
- public remoteAttestationVerified: boolean;
36
-
37
- /** License providerClientToken. */
38
- public providerClientToken: Uint8Array;
39
-
40
- /** License protectionScheme. */
41
- public protectionScheme: number;
42
-
43
- /** License srmRequirement. */
44
- public srmRequirement: Uint8Array;
45
-
46
- /** License srmUpdate. */
47
- public srmUpdate: Uint8Array;
48
-
49
- /** License platformVerificationStatus. */
50
- public platformVerificationStatus: PlatformVerificationStatus;
51
-
52
- /** License groupIds. */
53
- public groupIds: Uint8Array[];
54
-
55
- /**
56
- * Creates a new License instance using the specified properties.
57
- * @param [properties] Properties to set
58
- * @returns License instance
59
- */
60
- public static create(properties?: ILicense): License;
61
-
62
- /**
63
- * Encodes the specified License message. Does not implicitly {@link License.verify|verify} messages.
64
- * @param m License message or plain object to encode
65
- * @param [w] Writer to encode to
66
- * @returns Writer
67
- */
68
- public static encode(m: ILicense, w?: $protobuf.Writer): $protobuf.Writer;
69
-
70
- /**
71
- * Encodes the specified License message, length delimited. Does not implicitly {@link License.verify|verify} messages.
72
- * @param message License message or plain object to encode
73
- * @param [writer] Writer to encode to
74
- * @returns Writer
75
- */
76
- public static encodeDelimited(
77
- message: ILicense,
78
- writer?: $protobuf.Writer,
79
- ): $protobuf.Writer;
80
-
81
- /**
82
- * Decodes a License message from the specified reader or buffer.
83
- * @param r Reader or buffer to decode from
84
- * @param [l] Message length if known beforehand
85
- * @returns License
86
- * @throws {Error} If the payload is not a reader or valid buffer
87
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
88
- */
89
- public static decode(r: $protobuf.Reader | Uint8Array, l?: number): License;
90
-
91
- /**
92
- * Decodes a License message from the specified reader or buffer, length delimited.
93
- * @param reader Reader or buffer to decode from
94
- * @returns License
95
- * @throws {Error} If the payload is not a reader or valid buffer
96
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
97
- */
98
- public static decodeDelimited(reader: $protobuf.Reader | Uint8Array): License;
99
-
100
- /**
101
- * Creates a License message from a plain object. Also converts values to their respective internal types.
102
- * @param d Plain object
103
- * @returns License
104
- */
105
- public static fromObject(d: { [k: string]: any }): License;
106
-
107
- /**
108
- * Creates a plain object from a License message. Also converts values to other types if specified.
109
- * @param m License
110
- * @param [o] Conversion options
111
- * @returns Plain object
112
- */
113
- public static toObject(
114
- m: License,
115
- o?: $protobuf.IConversionOptions,
116
- ): { [k: string]: any };
117
-
118
- /**
119
- * Converts this License to JSON.
120
- * @returns JSON object
121
- */
122
- public toJSON(): { [k: string]: any };
123
-
124
- /**
125
- * Gets the default type url for License
126
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
127
- * @returns The default type url
128
- */
129
- public static getTypeUrl(typeUrlPrefix?: string): string;
130
- }
131
-
132
- declare namespace License {
133
- /** Properties of a Policy. */
134
- interface IPolicy {
135
- /** Policy canPlay */
136
- canPlay?: boolean | null;
137
-
138
- /** Policy canPersist */
139
- canPersist?: boolean | null;
140
-
141
- /** Policy canRenew */
142
- canRenew?: boolean | null;
143
-
144
- /** Policy rentalDurationSeconds */
145
- rentalDurationSeconds?: number | Long | null;
146
-
147
- /** Policy playbackDurationSeconds */
148
- playbackDurationSeconds?: number | Long | null;
149
-
150
- /** Policy licenseDurationSeconds */
151
- licenseDurationSeconds?: number | Long | null;
152
-
153
- /** Policy renewalRecoveryDurationSeconds */
154
- renewalRecoveryDurationSeconds?: number | Long | null;
155
-
156
- /** Policy renewalServerUrl */
157
- renewalServerUrl?: string | null;
158
-
159
- /** Policy renewalDelaySeconds */
160
- renewalDelaySeconds?: number | Long | null;
161
-
162
- /** Policy renewalRetryIntervalSeconds */
163
- renewalRetryIntervalSeconds?: number | Long | null;
164
-
165
- /** Policy renewWithUsage */
166
- renewWithUsage?: boolean | null;
167
-
168
- /** Policy alwaysIncludeClientId */
169
- alwaysIncludeClientId?: boolean | null;
170
-
171
- /** Policy playStartGracePeriodSeconds */
172
- playStartGracePeriodSeconds?: number | Long | null;
173
-
174
- /** Policy softEnforcePlaybackDuration */
175
- softEnforcePlaybackDuration?: boolean | null;
176
-
177
- /** Policy softEnforceRentalDuration */
178
- softEnforceRentalDuration?: boolean | null;
179
- }
180
-
181
- /** Represents a Policy. */
182
- class Policy implements IPolicy {
183
- /**
184
- * Constructs a new Policy.
185
- * @param [p] Properties to set
186
- */
187
- constructor(p?: License.IPolicy);
188
-
189
- /** Policy canPlay. */
190
- public canPlay: boolean;
191
-
192
- /** Policy canPersist. */
193
- public canPersist: boolean;
194
-
195
- /** Policy canRenew. */
196
- public canRenew: boolean;
197
-
198
- /** Policy rentalDurationSeconds. */
199
- public rentalDurationSeconds: number | Long;
200
-
201
- /** Policy playbackDurationSeconds. */
202
- public playbackDurationSeconds: number | Long;
203
-
204
- /** Policy licenseDurationSeconds. */
205
- public licenseDurationSeconds: number | Long;
206
-
207
- /** Policy renewalRecoveryDurationSeconds. */
208
- public renewalRecoveryDurationSeconds: number | Long;
209
-
210
- /** Policy renewalServerUrl. */
211
- public renewalServerUrl: string;
212
-
213
- /** Policy renewalDelaySeconds. */
214
- public renewalDelaySeconds: number | Long;
215
-
216
- /** Policy renewalRetryIntervalSeconds. */
217
- public renewalRetryIntervalSeconds: number | Long;
218
-
219
- /** Policy renewWithUsage. */
220
- public renewWithUsage: boolean;
221
-
222
- /** Policy alwaysIncludeClientId. */
223
- public alwaysIncludeClientId: boolean;
224
-
225
- /** Policy playStartGracePeriodSeconds. */
226
- public playStartGracePeriodSeconds: number | Long;
227
-
228
- /** Policy softEnforcePlaybackDuration. */
229
- public softEnforcePlaybackDuration: boolean;
230
-
231
- /** Policy softEnforceRentalDuration. */
232
- public softEnforceRentalDuration: boolean;
233
-
234
- /**
235
- * Creates a new Policy instance using the specified properties.
236
- * @param [properties] Properties to set
237
- * @returns Policy instance
238
- */
239
- public static create(properties?: License.IPolicy): License.Policy;
240
-
241
- /**
242
- * Encodes the specified Policy message. Does not implicitly {@link License.Policy.verify|verify} messages.
243
- * @param m Policy message or plain object to encode
244
- * @param [w] Writer to encode to
245
- * @returns Writer
246
- */
247
- public static encode(
248
- m: License.IPolicy,
249
- w?: $protobuf.Writer,
250
- ): $protobuf.Writer;
251
-
252
- /**
253
- * Encodes the specified Policy message, length delimited. Does not implicitly {@link License.Policy.verify|verify} messages.
254
- * @param message Policy message or plain object to encode
255
- * @param [writer] Writer to encode to
256
- * @returns Writer
257
- */
258
- public static encodeDelimited(
259
- message: License.IPolicy,
260
- writer?: $protobuf.Writer,
261
- ): $protobuf.Writer;
262
-
263
- /**
264
- * Decodes a Policy message from the specified reader or buffer.
265
- * @param r Reader or buffer to decode from
266
- * @param [l] Message length if known beforehand
267
- * @returns Policy
268
- * @throws {Error} If the payload is not a reader or valid buffer
269
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
270
- */
271
- public static decode(
272
- r: $protobuf.Reader | Uint8Array,
273
- l?: number,
274
- ): License.Policy;
275
-
276
- /**
277
- * Decodes a Policy message from the specified reader or buffer, length delimited.
278
- * @param reader Reader or buffer to decode from
279
- * @returns Policy
280
- * @throws {Error} If the payload is not a reader or valid buffer
281
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
282
- */
283
- public static decodeDelimited(
284
- reader: $protobuf.Reader | Uint8Array,
285
- ): License.Policy;
286
-
287
- /**
288
- * Creates a Policy message from a plain object. Also converts values to their respective internal types.
289
- * @param d Plain object
290
- * @returns Policy
291
- */
292
- public static fromObject(d: { [k: string]: any }): License.Policy;
293
-
294
- /**
295
- * Creates a plain object from a Policy message. Also converts values to other types if specified.
296
- * @param m Policy
297
- * @param [o] Conversion options
298
- * @returns Plain object
299
- */
300
- public static toObject(
301
- m: License.Policy,
302
- o?: $protobuf.IConversionOptions,
303
- ): { [k: string]: any };
304
-
305
- /**
306
- * Converts this Policy to JSON.
307
- * @returns JSON object
308
- */
309
- public toJSON(): { [k: string]: any };
310
-
311
- /**
312
- * Gets the default type url for Policy
313
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
314
- * @returns The default type url
315
- */
316
- public static getTypeUrl(typeUrlPrefix?: string): string;
317
- }
318
-
319
- /** Properties of a KeyContainer. */
320
- interface IKeyContainer {
321
- /** KeyContainer id */
322
- id?: Uint8Array | null;
323
-
324
- /** KeyContainer iv */
325
- iv?: Uint8Array | null;
326
-
327
- /** KeyContainer key */
328
- key?: Uint8Array | null;
329
-
330
- /** KeyContainer type */
331
- type?: License.KeyContainer.KeyType | null;
332
-
333
- /** KeyContainer level */
334
- level?: License.KeyContainer.SecurityLevel | null;
335
-
336
- /** KeyContainer requiredProtection */
337
- requiredProtection?: License.KeyContainer.IOutputProtection | null;
338
-
339
- /** KeyContainer requestedProtection */
340
- requestedProtection?: License.KeyContainer.IOutputProtection | null;
341
-
342
- /** KeyContainer keyControl */
343
- keyControl?: License.KeyContainer.IKeyControl | null;
344
-
345
- /** KeyContainer operatorSessionKeyPermissions */
346
- operatorSessionKeyPermissions?: License.KeyContainer.IOperatorSessionKeyPermissions | null;
347
-
348
- /** KeyContainer videoResolutionConstraints */
349
- videoResolutionConstraints?:
350
- | License.KeyContainer.IVideoResolutionConstraint[]
351
- | null;
352
-
353
- /** KeyContainer antiRollbackUsageTable */
354
- antiRollbackUsageTable?: boolean | null;
355
-
356
- /** KeyContainer trackLabel */
357
- trackLabel?: string | null;
358
- }
359
-
360
- /** Represents a KeyContainer. */
361
- class KeyContainer implements IKeyContainer {
362
- /**
363
- * Constructs a new KeyContainer.
364
- * @param [p] Properties to set
365
- */
366
- constructor(p?: License.IKeyContainer);
367
-
368
- /** KeyContainer id. */
369
- public id: Uint8Array;
370
-
371
- /** KeyContainer iv. */
372
- public iv: Uint8Array;
373
-
374
- /** KeyContainer key. */
375
- public key: Uint8Array;
376
-
377
- /** KeyContainer type. */
378
- public type: License.KeyContainer.KeyType;
379
-
380
- /** KeyContainer level. */
381
- public level: License.KeyContainer.SecurityLevel;
382
-
383
- /** KeyContainer requiredProtection. */
384
- public requiredProtection?: License.KeyContainer.IOutputProtection | null;
385
-
386
- /** KeyContainer requestedProtection. */
387
- public requestedProtection?: License.KeyContainer.IOutputProtection | null;
388
-
389
- /** KeyContainer keyControl. */
390
- public keyControl?: License.KeyContainer.IKeyControl | null;
391
-
392
- /** KeyContainer operatorSessionKeyPermissions. */
393
- public operatorSessionKeyPermissions?: License.KeyContainer.IOperatorSessionKeyPermissions | null;
394
-
395
- /** KeyContainer videoResolutionConstraints. */
396
- public videoResolutionConstraints: License.KeyContainer.IVideoResolutionConstraint[];
397
-
398
- /** KeyContainer antiRollbackUsageTable. */
399
- public antiRollbackUsageTable: boolean;
400
-
401
- /** KeyContainer trackLabel. */
402
- public trackLabel: string;
403
-
404
- /**
405
- * Creates a new KeyContainer instance using the specified properties.
406
- * @param [properties] Properties to set
407
- * @returns KeyContainer instance
408
- */
409
- public static create(
410
- properties?: License.IKeyContainer,
411
- ): License.KeyContainer;
412
-
413
- /**
414
- * Encodes the specified KeyContainer message. Does not implicitly {@link License.KeyContainer.verify|verify} messages.
415
- * @param m KeyContainer message or plain object to encode
416
- * @param [w] Writer to encode to
417
- * @returns Writer
418
- */
419
- public static encode(
420
- m: License.IKeyContainer,
421
- w?: $protobuf.Writer,
422
- ): $protobuf.Writer;
423
-
424
- /**
425
- * Encodes the specified KeyContainer message, length delimited. Does not implicitly {@link License.KeyContainer.verify|verify} messages.
426
- * @param message KeyContainer message or plain object to encode
427
- * @param [writer] Writer to encode to
428
- * @returns Writer
429
- */
430
- public static encodeDelimited(
431
- message: License.IKeyContainer,
432
- writer?: $protobuf.Writer,
433
- ): $protobuf.Writer;
434
-
435
- /**
436
- * Decodes a KeyContainer message from the specified reader or buffer.
437
- * @param r Reader or buffer to decode from
438
- * @param [l] Message length if known beforehand
439
- * @returns KeyContainer
440
- * @throws {Error} If the payload is not a reader or valid buffer
441
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
442
- */
443
- public static decode(
444
- r: $protobuf.Reader | Uint8Array,
445
- l?: number,
446
- ): License.KeyContainer;
447
-
448
- /**
449
- * Decodes a KeyContainer message from the specified reader or buffer, length delimited.
450
- * @param reader Reader or buffer to decode from
451
- * @returns KeyContainer
452
- * @throws {Error} If the payload is not a reader or valid buffer
453
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
454
- */
455
- public static decodeDelimited(
456
- reader: $protobuf.Reader | Uint8Array,
457
- ): License.KeyContainer;
458
-
459
- /**
460
- * Creates a KeyContainer message from a plain object. Also converts values to their respective internal types.
461
- * @param d Plain object
462
- * @returns KeyContainer
463
- */
464
- public static fromObject(d: { [k: string]: any }): License.KeyContainer;
465
-
466
- /**
467
- * Creates a plain object from a KeyContainer message. Also converts values to other types if specified.
468
- * @param m KeyContainer
469
- * @param [o] Conversion options
470
- * @returns Plain object
471
- */
472
- public static toObject(
473
- m: License.KeyContainer,
474
- o?: $protobuf.IConversionOptions,
475
- ): { [k: string]: any };
476
-
477
- /**
478
- * Converts this KeyContainer to JSON.
479
- * @returns JSON object
480
- */
481
- public toJSON(): { [k: string]: any };
482
-
483
- /**
484
- * Gets the default type url for KeyContainer
485
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
486
- * @returns The default type url
487
- */
488
- public static getTypeUrl(typeUrlPrefix?: string): string;
489
- }
490
-
491
- namespace KeyContainer {
492
- /** KeyType enum. */
493
- enum KeyType {
494
- SIGNING = 1,
495
- CONTENT = 2,
496
- KEY_CONTROL = 3,
497
- OPERATOR_SESSION = 4,
498
- ENTITLEMENT = 5,
499
- OEM_CONTENT = 6,
500
- }
501
-
502
- /** SecurityLevel enum. */
503
- enum SecurityLevel {
504
- SW_SECURE_CRYPTO = 1,
505
- SW_SECURE_DECODE = 2,
506
- HW_SECURE_CRYPTO = 3,
507
- HW_SECURE_DECODE = 4,
508
- HW_SECURE_ALL = 5,
509
- }
510
-
511
- /** Properties of a KeyControl. */
512
- interface IKeyControl {
513
- /** KeyControl keyControlBlock */
514
- keyControlBlock?: Uint8Array | null;
515
-
516
- /** KeyControl iv */
517
- iv?: Uint8Array | null;
518
- }
519
-
520
- /** Represents a KeyControl. */
521
- class KeyControl implements IKeyControl {
522
- /**
523
- * Constructs a new KeyControl.
524
- * @param [p] Properties to set
525
- */
526
- constructor(p?: License.KeyContainer.IKeyControl);
527
-
528
- /** KeyControl keyControlBlock. */
529
- public keyControlBlock: Uint8Array;
530
-
531
- /** KeyControl iv. */
532
- public iv: Uint8Array;
533
-
534
- /**
535
- * Creates a new KeyControl instance using the specified properties.
536
- * @param [properties] Properties to set
537
- * @returns KeyControl instance
538
- */
539
- public static create(
540
- properties?: License.KeyContainer.IKeyControl,
541
- ): License.KeyContainer.KeyControl;
542
-
543
- /**
544
- * Encodes the specified KeyControl message. Does not implicitly {@link License.KeyContainer.KeyControl.verify|verify} messages.
545
- * @param m KeyControl message or plain object to encode
546
- * @param [w] Writer to encode to
547
- * @returns Writer
548
- */
549
- public static encode(
550
- m: License.KeyContainer.IKeyControl,
551
- w?: $protobuf.Writer,
552
- ): $protobuf.Writer;
553
-
554
- /**
555
- * Encodes the specified KeyControl message, length delimited. Does not implicitly {@link License.KeyContainer.KeyControl.verify|verify} messages.
556
- * @param message KeyControl message or plain object to encode
557
- * @param [writer] Writer to encode to
558
- * @returns Writer
559
- */
560
- public static encodeDelimited(
561
- message: License.KeyContainer.IKeyControl,
562
- writer?: $protobuf.Writer,
563
- ): $protobuf.Writer;
564
-
565
- /**
566
- * Decodes a KeyControl message from the specified reader or buffer.
567
- * @param r Reader or buffer to decode from
568
- * @param [l] Message length if known beforehand
569
- * @returns KeyControl
570
- * @throws {Error} If the payload is not a reader or valid buffer
571
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
572
- */
573
- public static decode(
574
- r: $protobuf.Reader | Uint8Array,
575
- l?: number,
576
- ): License.KeyContainer.KeyControl;
577
-
578
- /**
579
- * Decodes a KeyControl message from the specified reader or buffer, length delimited.
580
- * @param reader Reader or buffer to decode from
581
- * @returns KeyControl
582
- * @throws {Error} If the payload is not a reader or valid buffer
583
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
584
- */
585
- public static decodeDelimited(
586
- reader: $protobuf.Reader | Uint8Array,
587
- ): License.KeyContainer.KeyControl;
588
-
589
- /**
590
- * Creates a KeyControl message from a plain object. Also converts values to their respective internal types.
591
- * @param d Plain object
592
- * @returns KeyControl
593
- */
594
- public static fromObject(d: {
595
- [k: string]: any;
596
- }): License.KeyContainer.KeyControl;
597
-
598
- /**
599
- * Creates a plain object from a KeyControl message. Also converts values to other types if specified.
600
- * @param m KeyControl
601
- * @param [o] Conversion options
602
- * @returns Plain object
603
- */
604
- public static toObject(
605
- m: License.KeyContainer.KeyControl,
606
- o?: $protobuf.IConversionOptions,
607
- ): { [k: string]: any };
608
-
609
- /**
610
- * Converts this KeyControl to JSON.
611
- * @returns JSON object
612
- */
613
- public toJSON(): { [k: string]: any };
614
-
615
- /**
616
- * Gets the default type url for KeyControl
617
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
618
- * @returns The default type url
619
- */
620
- public static getTypeUrl(typeUrlPrefix?: string): string;
621
- }
622
-
623
- /** Properties of an OutputProtection. */
624
- interface IOutputProtection {
625
- /** OutputProtection hdcp */
626
- hdcp?: License.KeyContainer.OutputProtection.HDCP | null;
627
-
628
- /** OutputProtection cgmsFlags */
629
- cgmsFlags?: License.KeyContainer.OutputProtection.CGMS | null;
630
-
631
- /** OutputProtection hdcpSrmRule */
632
- hdcpSrmRule?: License.KeyContainer.OutputProtection.HdcpSrmRule | null;
633
-
634
- /** OutputProtection disableAnalogOutput */
635
- disableAnalogOutput?: boolean | null;
636
-
637
- /** OutputProtection disableDigitalOutput */
638
- disableDigitalOutput?: boolean | null;
639
- }
640
-
641
- /** Represents an OutputProtection. */
642
- class OutputProtection implements IOutputProtection {
643
- /**
644
- * Constructs a new OutputProtection.
645
- * @param [p] Properties to set
646
- */
647
- constructor(p?: License.KeyContainer.IOutputProtection);
648
-
649
- /** OutputProtection hdcp. */
650
- public hdcp: License.KeyContainer.OutputProtection.HDCP;
651
-
652
- /** OutputProtection cgmsFlags. */
653
- public cgmsFlags: License.KeyContainer.OutputProtection.CGMS;
654
-
655
- /** OutputProtection hdcpSrmRule. */
656
- public hdcpSrmRule: License.KeyContainer.OutputProtection.HdcpSrmRule;
657
-
658
- /** OutputProtection disableAnalogOutput. */
659
- public disableAnalogOutput: boolean;
660
-
661
- /** OutputProtection disableDigitalOutput. */
662
- public disableDigitalOutput: boolean;
663
-
664
- /**
665
- * Creates a new OutputProtection instance using the specified properties.
666
- * @param [properties] Properties to set
667
- * @returns OutputProtection instance
668
- */
669
- public static create(
670
- properties?: License.KeyContainer.IOutputProtection,
671
- ): License.KeyContainer.OutputProtection;
672
-
673
- /**
674
- * Encodes the specified OutputProtection message. Does not implicitly {@link License.KeyContainer.OutputProtection.verify|verify} messages.
675
- * @param m OutputProtection message or plain object to encode
676
- * @param [w] Writer to encode to
677
- * @returns Writer
678
- */
679
- public static encode(
680
- m: License.KeyContainer.IOutputProtection,
681
- w?: $protobuf.Writer,
682
- ): $protobuf.Writer;
683
-
684
- /**
685
- * Encodes the specified OutputProtection message, length delimited. Does not implicitly {@link License.KeyContainer.OutputProtection.verify|verify} messages.
686
- * @param message OutputProtection message or plain object to encode
687
- * @param [writer] Writer to encode to
688
- * @returns Writer
689
- */
690
- public static encodeDelimited(
691
- message: License.KeyContainer.IOutputProtection,
692
- writer?: $protobuf.Writer,
693
- ): $protobuf.Writer;
694
-
695
- /**
696
- * Decodes an OutputProtection message from the specified reader or buffer.
697
- * @param r Reader or buffer to decode from
698
- * @param [l] Message length if known beforehand
699
- * @returns OutputProtection
700
- * @throws {Error} If the payload is not a reader or valid buffer
701
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
702
- */
703
- public static decode(
704
- r: $protobuf.Reader | Uint8Array,
705
- l?: number,
706
- ): License.KeyContainer.OutputProtection;
707
-
708
- /**
709
- * Decodes an OutputProtection message from the specified reader or buffer, length delimited.
710
- * @param reader Reader or buffer to decode from
711
- * @returns OutputProtection
712
- * @throws {Error} If the payload is not a reader or valid buffer
713
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
714
- */
715
- public static decodeDelimited(
716
- reader: $protobuf.Reader | Uint8Array,
717
- ): License.KeyContainer.OutputProtection;
718
-
719
- /**
720
- * Creates an OutputProtection message from a plain object. Also converts values to their respective internal types.
721
- * @param d Plain object
722
- * @returns OutputProtection
723
- */
724
- public static fromObject(d: {
725
- [k: string]: any;
726
- }): License.KeyContainer.OutputProtection;
727
-
728
- /**
729
- * Creates a plain object from an OutputProtection message. Also converts values to other types if specified.
730
- * @param m OutputProtection
731
- * @param [o] Conversion options
732
- * @returns Plain object
733
- */
734
- public static toObject(
735
- m: License.KeyContainer.OutputProtection,
736
- o?: $protobuf.IConversionOptions,
737
- ): { [k: string]: any };
738
-
739
- /**
740
- * Converts this OutputProtection to JSON.
741
- * @returns JSON object
742
- */
743
- public toJSON(): { [k: string]: any };
744
-
745
- /**
746
- * Gets the default type url for OutputProtection
747
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
748
- * @returns The default type url
749
- */
750
- public static getTypeUrl(typeUrlPrefix?: string): string;
751
- }
752
-
753
- namespace OutputProtection {
754
- /** HDCP enum. */
755
- enum HDCP {
756
- HDCP_NONE = 0,
757
- HDCP_V1 = 1,
758
- HDCP_V2 = 2,
759
- HDCP_V2_1 = 3,
760
- HDCP_V2_2 = 4,
761
- HDCP_V2_3 = 5,
762
- HDCP_NO_DIGITAL_OUTPUT = 255,
763
- }
764
-
765
- /** CGMS enum. */
766
- enum CGMS {
767
- CGMS_NONE = 42,
768
- COPY_FREE = 0,
769
- COPY_ONCE = 2,
770
- COPY_NEVER = 3,
771
- }
772
-
773
- /** HdcpSrmRule enum. */
774
- enum HdcpSrmRule {
775
- HDCP_SRM_RULE_NONE = 0,
776
- CURRENT_SRM = 1,
777
- }
778
- }
779
-
780
- /** Properties of a VideoResolutionConstraint. */
781
- interface IVideoResolutionConstraint {
782
- /** VideoResolutionConstraint minResolutionPixels */
783
- minResolutionPixels?: number | null;
784
-
785
- /** VideoResolutionConstraint maxResolutionPixels */
786
- maxResolutionPixels?: number | null;
787
-
788
- /** VideoResolutionConstraint requiredProtection */
789
- requiredProtection?: License.KeyContainer.IOutputProtection | null;
790
- }
791
-
792
- /** Represents a VideoResolutionConstraint. */
793
- class VideoResolutionConstraint implements IVideoResolutionConstraint {
794
- /**
795
- * Constructs a new VideoResolutionConstraint.
796
- * @param [p] Properties to set
797
- */
798
- constructor(p?: License.KeyContainer.IVideoResolutionConstraint);
799
-
800
- /** VideoResolutionConstraint minResolutionPixels. */
801
- public minResolutionPixels: number;
802
-
803
- /** VideoResolutionConstraint maxResolutionPixels. */
804
- public maxResolutionPixels: number;
805
-
806
- /** VideoResolutionConstraint requiredProtection. */
807
- public requiredProtection?: License.KeyContainer.IOutputProtection | null;
808
-
809
- /**
810
- * Creates a new VideoResolutionConstraint instance using the specified properties.
811
- * @param [properties] Properties to set
812
- * @returns VideoResolutionConstraint instance
813
- */
814
- public static create(
815
- properties?: License.KeyContainer.IVideoResolutionConstraint,
816
- ): License.KeyContainer.VideoResolutionConstraint;
817
-
818
- /**
819
- * Encodes the specified VideoResolutionConstraint message. Does not implicitly {@link License.KeyContainer.VideoResolutionConstraint.verify|verify} messages.
820
- * @param m VideoResolutionConstraint message or plain object to encode
821
- * @param [w] Writer to encode to
822
- * @returns Writer
823
- */
824
- public static encode(
825
- m: License.KeyContainer.IVideoResolutionConstraint,
826
- w?: $protobuf.Writer,
827
- ): $protobuf.Writer;
828
-
829
- /**
830
- * Encodes the specified VideoResolutionConstraint message, length delimited. Does not implicitly {@link License.KeyContainer.VideoResolutionConstraint.verify|verify} messages.
831
- * @param message VideoResolutionConstraint message or plain object to encode
832
- * @param [writer] Writer to encode to
833
- * @returns Writer
834
- */
835
- public static encodeDelimited(
836
- message: License.KeyContainer.IVideoResolutionConstraint,
837
- writer?: $protobuf.Writer,
838
- ): $protobuf.Writer;
839
-
840
- /**
841
- * Decodes a VideoResolutionConstraint message from the specified reader or buffer.
842
- * @param r Reader or buffer to decode from
843
- * @param [l] Message length if known beforehand
844
- * @returns VideoResolutionConstraint
845
- * @throws {Error} If the payload is not a reader or valid buffer
846
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
847
- */
848
- public static decode(
849
- r: $protobuf.Reader | Uint8Array,
850
- l?: number,
851
- ): License.KeyContainer.VideoResolutionConstraint;
852
-
853
- /**
854
- * Decodes a VideoResolutionConstraint message from the specified reader or buffer, length delimited.
855
- * @param reader Reader or buffer to decode from
856
- * @returns VideoResolutionConstraint
857
- * @throws {Error} If the payload is not a reader or valid buffer
858
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
859
- */
860
- public static decodeDelimited(
861
- reader: $protobuf.Reader | Uint8Array,
862
- ): License.KeyContainer.VideoResolutionConstraint;
863
-
864
- /**
865
- * Creates a VideoResolutionConstraint message from a plain object. Also converts values to their respective internal types.
866
- * @param d Plain object
867
- * @returns VideoResolutionConstraint
868
- */
869
- public static fromObject(d: {
870
- [k: string]: any;
871
- }): License.KeyContainer.VideoResolutionConstraint;
872
-
873
- /**
874
- * Creates a plain object from a VideoResolutionConstraint message. Also converts values to other types if specified.
875
- * @param m VideoResolutionConstraint
876
- * @param [o] Conversion options
877
- * @returns Plain object
878
- */
879
- public static toObject(
880
- m: License.KeyContainer.VideoResolutionConstraint,
881
- o?: $protobuf.IConversionOptions,
882
- ): { [k: string]: any };
883
-
884
- /**
885
- * Converts this VideoResolutionConstraint to JSON.
886
- * @returns JSON object
887
- */
888
- public toJSON(): { [k: string]: any };
889
-
890
- /**
891
- * Gets the default type url for VideoResolutionConstraint
892
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
893
- * @returns The default type url
894
- */
895
- public static getTypeUrl(typeUrlPrefix?: string): string;
896
- }
897
-
898
- /** Properties of an OperatorSessionKeyPermissions. */
899
- interface IOperatorSessionKeyPermissions {
900
- /** OperatorSessionKeyPermissions allowEncrypt */
901
- allowEncrypt?: boolean | null;
902
-
903
- /** OperatorSessionKeyPermissions allowDecrypt */
904
- allowDecrypt?: boolean | null;
905
-
906
- /** OperatorSessionKeyPermissions allowSign */
907
- allowSign?: boolean | null;
908
-
909
- /** OperatorSessionKeyPermissions allowSignatureVerify */
910
- allowSignatureVerify?: boolean | null;
911
- }
912
-
913
- /** Represents an OperatorSessionKeyPermissions. */
914
- class OperatorSessionKeyPermissions
915
- implements IOperatorSessionKeyPermissions
916
- {
917
- /**
918
- * Constructs a new OperatorSessionKeyPermissions.
919
- * @param [p] Properties to set
920
- */
921
- constructor(p?: License.KeyContainer.IOperatorSessionKeyPermissions);
922
-
923
- /** OperatorSessionKeyPermissions allowEncrypt. */
924
- public allowEncrypt: boolean;
925
-
926
- /** OperatorSessionKeyPermissions allowDecrypt. */
927
- public allowDecrypt: boolean;
928
-
929
- /** OperatorSessionKeyPermissions allowSign. */
930
- public allowSign: boolean;
931
-
932
- /** OperatorSessionKeyPermissions allowSignatureVerify. */
933
- public allowSignatureVerify: boolean;
934
-
935
- /**
936
- * Creates a new OperatorSessionKeyPermissions instance using the specified properties.
937
- * @param [properties] Properties to set
938
- * @returns OperatorSessionKeyPermissions instance
939
- */
940
- public static create(
941
- properties?: License.KeyContainer.IOperatorSessionKeyPermissions,
942
- ): License.KeyContainer.OperatorSessionKeyPermissions;
943
-
944
- /**
945
- * Encodes the specified OperatorSessionKeyPermissions message. Does not implicitly {@link License.KeyContainer.OperatorSessionKeyPermissions.verify|verify} messages.
946
- * @param m OperatorSessionKeyPermissions message or plain object to encode
947
- * @param [w] Writer to encode to
948
- * @returns Writer
949
- */
950
- public static encode(
951
- m: License.KeyContainer.IOperatorSessionKeyPermissions,
952
- w?: $protobuf.Writer,
953
- ): $protobuf.Writer;
954
-
955
- /**
956
- * Encodes the specified OperatorSessionKeyPermissions message, length delimited. Does not implicitly {@link License.KeyContainer.OperatorSessionKeyPermissions.verify|verify} messages.
957
- * @param message OperatorSessionKeyPermissions message or plain object to encode
958
- * @param [writer] Writer to encode to
959
- * @returns Writer
960
- */
961
- public static encodeDelimited(
962
- message: License.KeyContainer.IOperatorSessionKeyPermissions,
963
- writer?: $protobuf.Writer,
964
- ): $protobuf.Writer;
965
-
966
- /**
967
- * Decodes an OperatorSessionKeyPermissions message from the specified reader or buffer.
968
- * @param r Reader or buffer to decode from
969
- * @param [l] Message length if known beforehand
970
- * @returns OperatorSessionKeyPermissions
971
- * @throws {Error} If the payload is not a reader or valid buffer
972
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
973
- */
974
- public static decode(
975
- r: $protobuf.Reader | Uint8Array,
976
- l?: number,
977
- ): License.KeyContainer.OperatorSessionKeyPermissions;
978
-
979
- /**
980
- * Decodes an OperatorSessionKeyPermissions message from the specified reader or buffer, length delimited.
981
- * @param reader Reader or buffer to decode from
982
- * @returns OperatorSessionKeyPermissions
983
- * @throws {Error} If the payload is not a reader or valid buffer
984
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
985
- */
986
- public static decodeDelimited(
987
- reader: $protobuf.Reader | Uint8Array,
988
- ): License.KeyContainer.OperatorSessionKeyPermissions;
989
-
990
- /**
991
- * Creates an OperatorSessionKeyPermissions message from a plain object. Also converts values to their respective internal types.
992
- * @param d Plain object
993
- * @returns OperatorSessionKeyPermissions
994
- */
995
- public static fromObject(d: {
996
- [k: string]: any;
997
- }): License.KeyContainer.OperatorSessionKeyPermissions;
998
-
999
- /**
1000
- * Creates a plain object from an OperatorSessionKeyPermissions message. Also converts values to other types if specified.
1001
- * @param m OperatorSessionKeyPermissions
1002
- * @param [o] Conversion options
1003
- * @returns Plain object
1004
- */
1005
- public static toObject(
1006
- m: License.KeyContainer.OperatorSessionKeyPermissions,
1007
- o?: $protobuf.IConversionOptions,
1008
- ): { [k: string]: any };
1009
-
1010
- /**
1011
- * Converts this OperatorSessionKeyPermissions to JSON.
1012
- * @returns JSON object
1013
- */
1014
- public toJSON(): { [k: string]: any };
1015
-
1016
- /**
1017
- * Gets the default type url for OperatorSessionKeyPermissions
1018
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1019
- * @returns The default type url
1020
- */
1021
- public static getTypeUrl(typeUrlPrefix?: string): string;
1022
- }
1023
- }
1024
- }
1025
-
1026
- /** HashAlgorithmProto enum. */
1027
- declare enum HashAlgorithmProto {
1028
- HASH_ALGORITHM_UNSPECIFIED = 0,
1029
- HASH_ALGORITHM_SHA_1 = 1,
1030
- HASH_ALGORITHM_SHA_256 = 2,
1031
- HASH_ALGORITHM_SHA_384 = 3,
1032
- }
1033
-
1034
- /** Represents a ClientIdentification. */
1035
- declare class ClientIdentification implements IClientIdentification {
1036
- /**
1037
- * Constructs a new ClientIdentification.
1038
- * @param [p] Properties to set
1039
- */
1040
- constructor(p?: IClientIdentification);
1041
-
1042
- /** ClientIdentification type. */
1043
- public type: ClientIdentification.TokenType;
1044
-
1045
- /** ClientIdentification token. */
1046
- public token: Uint8Array;
1047
-
1048
- /** ClientIdentification clientInfo. */
1049
- public clientInfo: ClientIdentification.INameValue[];
1050
-
1051
- /** ClientIdentification providerClientToken. */
1052
- public providerClientToken: Uint8Array;
1053
-
1054
- /** ClientIdentification licenseCounter. */
1055
- public licenseCounter: number;
1056
-
1057
- /** ClientIdentification clientCapabilities. */
1058
- public clientCapabilities?: ClientIdentification.IClientCapabilities | null;
1059
-
1060
- /** ClientIdentification vmpData. */
1061
- public vmpData: Uint8Array;
1062
-
1063
- /** ClientIdentification deviceCredentials. */
1064
- public deviceCredentials: ClientIdentification.IClientCredentials[];
1065
-
1066
- /**
1067
- * Creates a new ClientIdentification instance using the specified properties.
1068
- * @param [properties] Properties to set
1069
- * @returns ClientIdentification instance
1070
- */
1071
- public static create(
1072
- properties?: IClientIdentification,
1073
- ): ClientIdentification;
1074
-
1075
- /**
1076
- * Encodes the specified ClientIdentification message. Does not implicitly {@link ClientIdentification.verify|verify} messages.
1077
- * @param m ClientIdentification message or plain object to encode
1078
- * @param [w] Writer to encode to
1079
- * @returns Writer
1080
- */
1081
- public static encode(
1082
- m: IClientIdentification,
1083
- w?: $protobuf.Writer,
1084
- ): $protobuf.Writer;
1085
-
1086
- /**
1087
- * Encodes the specified ClientIdentification message, length delimited. Does not implicitly {@link ClientIdentification.verify|verify} messages.
1088
- * @param message ClientIdentification message or plain object to encode
1089
- * @param [writer] Writer to encode to
1090
- * @returns Writer
1091
- */
1092
- public static encodeDelimited(
1093
- message: IClientIdentification,
1094
- writer?: $protobuf.Writer,
1095
- ): $protobuf.Writer;
1096
-
1097
- /**
1098
- * Decodes a ClientIdentification message from the specified reader or buffer.
1099
- * @param r Reader or buffer to decode from
1100
- * @param [l] Message length if known beforehand
1101
- * @returns ClientIdentification
1102
- * @throws {Error} If the payload is not a reader or valid buffer
1103
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1104
- */
1105
- public static decode(
1106
- r: $protobuf.Reader | Uint8Array,
1107
- l?: number,
1108
- ): ClientIdentification;
1109
-
1110
- /**
1111
- * Decodes a ClientIdentification message from the specified reader or buffer, length delimited.
1112
- * @param reader Reader or buffer to decode from
1113
- * @returns ClientIdentification
1114
- * @throws {Error} If the payload is not a reader or valid buffer
1115
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1116
- */
1117
- public static decodeDelimited(
1118
- reader: $protobuf.Reader | Uint8Array,
1119
- ): ClientIdentification;
1120
-
1121
- /**
1122
- * Creates a ClientIdentification message from a plain object. Also converts values to their respective internal types.
1123
- * @param d Plain object
1124
- * @returns ClientIdentification
1125
- */
1126
- public static fromObject(d: { [k: string]: any }): ClientIdentification;
1127
-
1128
- /**
1129
- * Creates a plain object from a ClientIdentification message. Also converts values to other types if specified.
1130
- * @param m ClientIdentification
1131
- * @param [o] Conversion options
1132
- * @returns Plain object
1133
- */
1134
- public static toObject(
1135
- m: ClientIdentification,
1136
- o?: $protobuf.IConversionOptions,
1137
- ): { [k: string]: any };
1138
-
1139
- /**
1140
- * Converts this ClientIdentification to JSON.
1141
- * @returns JSON object
1142
- */
1143
- public toJSON(): { [k: string]: any };
1144
-
1145
- /**
1146
- * Gets the default type url for ClientIdentification
1147
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1148
- * @returns The default type url
1149
- */
1150
- public static getTypeUrl(typeUrlPrefix?: string): string;
1151
- }
1152
-
1153
- declare namespace ClientIdentification {
1154
- /** TokenType enum. */
1155
- enum TokenType {
1156
- KEYBOX = 0,
1157
- DRM_DEVICE_CERTIFICATE = 1,
1158
- REMOTE_ATTESTATION_CERTIFICATE = 2,
1159
- OEM_DEVICE_CERTIFICATE = 3,
1160
- }
1161
-
1162
- /** Properties of a NameValue. */
1163
- interface INameValue {
1164
- /** NameValue name */
1165
- name?: string | null;
1166
-
1167
- /** NameValue value */
1168
- value?: string | null;
1169
- }
1170
-
1171
- /** Represents a NameValue. */
1172
- class NameValue implements INameValue {
1173
- /**
1174
- * Constructs a new NameValue.
1175
- * @param [p] Properties to set
1176
- */
1177
- constructor(p?: ClientIdentification.INameValue);
1178
-
1179
- /** NameValue name. */
1180
- public name: string;
1181
-
1182
- /** NameValue value. */
1183
- public value: string;
1184
-
1185
- /**
1186
- * Creates a new NameValue instance using the specified properties.
1187
- * @param [properties] Properties to set
1188
- * @returns NameValue instance
1189
- */
1190
- public static create(
1191
- properties?: ClientIdentification.INameValue,
1192
- ): ClientIdentification.NameValue;
1193
-
1194
- /**
1195
- * Encodes the specified NameValue message. Does not implicitly {@link ClientIdentification.NameValue.verify|verify} messages.
1196
- * @param m NameValue message or plain object to encode
1197
- * @param [w] Writer to encode to
1198
- * @returns Writer
1199
- */
1200
- public static encode(
1201
- m: ClientIdentification.INameValue,
1202
- w?: $protobuf.Writer,
1203
- ): $protobuf.Writer;
1204
-
1205
- /**
1206
- * Encodes the specified NameValue message, length delimited. Does not implicitly {@link ClientIdentification.NameValue.verify|verify} messages.
1207
- * @param message NameValue message or plain object to encode
1208
- * @param [writer] Writer to encode to
1209
- * @returns Writer
1210
- */
1211
- public static encodeDelimited(
1212
- message: ClientIdentification.INameValue,
1213
- writer?: $protobuf.Writer,
1214
- ): $protobuf.Writer;
1215
-
1216
- /**
1217
- * Decodes a NameValue message from the specified reader or buffer.
1218
- * @param r Reader or buffer to decode from
1219
- * @param [l] Message length if known beforehand
1220
- * @returns NameValue
1221
- * @throws {Error} If the payload is not a reader or valid buffer
1222
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1223
- */
1224
- public static decode(
1225
- r: $protobuf.Reader | Uint8Array,
1226
- l?: number,
1227
- ): ClientIdentification.NameValue;
1228
-
1229
- /**
1230
- * Decodes a NameValue message from the specified reader or buffer, length delimited.
1231
- * @param reader Reader or buffer to decode from
1232
- * @returns NameValue
1233
- * @throws {Error} If the payload is not a reader or valid buffer
1234
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1235
- */
1236
- public static decodeDelimited(
1237
- reader: $protobuf.Reader | Uint8Array,
1238
- ): ClientIdentification.NameValue;
1239
-
1240
- /**
1241
- * Creates a NameValue message from a plain object. Also converts values to their respective internal types.
1242
- * @param d Plain object
1243
- * @returns NameValue
1244
- */
1245
- public static fromObject(d: {
1246
- [k: string]: any;
1247
- }): ClientIdentification.NameValue;
1248
-
1249
- /**
1250
- * Creates a plain object from a NameValue message. Also converts values to other types if specified.
1251
- * @param m NameValue
1252
- * @param [o] Conversion options
1253
- * @returns Plain object
1254
- */
1255
- public static toObject(
1256
- m: ClientIdentification.NameValue,
1257
- o?: $protobuf.IConversionOptions,
1258
- ): { [k: string]: any };
1259
-
1260
- /**
1261
- * Converts this NameValue to JSON.
1262
- * @returns JSON object
1263
- */
1264
- public toJSON(): { [k: string]: any };
1265
-
1266
- /**
1267
- * Gets the default type url for NameValue
1268
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1269
- * @returns The default type url
1270
- */
1271
- public static getTypeUrl(typeUrlPrefix?: string): string;
1272
- }
1273
-
1274
- /** Properties of a ClientCapabilities. */
1275
- interface IClientCapabilities {
1276
- /** ClientCapabilities clientToken */
1277
- clientToken?: boolean | null;
1278
-
1279
- /** ClientCapabilities sessionToken */
1280
- sessionToken?: boolean | null;
1281
-
1282
- /** ClientCapabilities videoResolutionConstraints */
1283
- videoResolutionConstraints?: boolean | null;
1284
-
1285
- /** ClientCapabilities maxHdcpVersion */
1286
- maxHdcpVersion?: ClientIdentification.ClientCapabilities.HdcpVersion | null;
1287
-
1288
- /** ClientCapabilities oemCryptoApiVersion */
1289
- oemCryptoApiVersion?: number | null;
1290
-
1291
- /** ClientCapabilities antiRollbackUsageTable */
1292
- antiRollbackUsageTable?: boolean | null;
1293
-
1294
- /** ClientCapabilities srmVersion */
1295
- srmVersion?: number | null;
1296
-
1297
- /** ClientCapabilities canUpdateSrm */
1298
- canUpdateSrm?: boolean | null;
1299
-
1300
- /** ClientCapabilities supportedCertificateKeyType */
1301
- supportedCertificateKeyType?:
1302
- | ClientIdentification.ClientCapabilities.CertificateKeyType[]
1303
- | null;
1304
-
1305
- /** ClientCapabilities analogOutputCapabilities */
1306
- analogOutputCapabilities?: ClientIdentification.ClientCapabilities.AnalogOutputCapabilities | null;
1307
-
1308
- /** ClientCapabilities canDisableAnalogOutput */
1309
- canDisableAnalogOutput?: boolean | null;
1310
-
1311
- /** ClientCapabilities resourceRatingTier */
1312
- resourceRatingTier?: number | null;
1313
- }
1314
-
1315
- /** Represents a ClientCapabilities. */
1316
- class ClientCapabilities implements IClientCapabilities {
1317
- /**
1318
- * Constructs a new ClientCapabilities.
1319
- * @param [p] Properties to set
1320
- */
1321
- constructor(p?: ClientIdentification.IClientCapabilities);
1322
-
1323
- /** ClientCapabilities clientToken. */
1324
- public clientToken: boolean;
1325
-
1326
- /** ClientCapabilities sessionToken. */
1327
- public sessionToken: boolean;
1328
-
1329
- /** ClientCapabilities videoResolutionConstraints. */
1330
- public videoResolutionConstraints: boolean;
1331
-
1332
- /** ClientCapabilities maxHdcpVersion. */
1333
- public maxHdcpVersion: ClientIdentification.ClientCapabilities.HdcpVersion;
1334
-
1335
- /** ClientCapabilities oemCryptoApiVersion. */
1336
- public oemCryptoApiVersion: number;
1337
-
1338
- /** ClientCapabilities antiRollbackUsageTable. */
1339
- public antiRollbackUsageTable: boolean;
1340
-
1341
- /** ClientCapabilities srmVersion. */
1342
- public srmVersion: number;
1343
-
1344
- /** ClientCapabilities canUpdateSrm. */
1345
- public canUpdateSrm: boolean;
1346
-
1347
- /** ClientCapabilities supportedCertificateKeyType. */
1348
- public supportedCertificateKeyType: ClientIdentification.ClientCapabilities.CertificateKeyType[];
1349
-
1350
- /** ClientCapabilities analogOutputCapabilities. */
1351
- public analogOutputCapabilities: ClientIdentification.ClientCapabilities.AnalogOutputCapabilities;
1352
-
1353
- /** ClientCapabilities canDisableAnalogOutput. */
1354
- public canDisableAnalogOutput: boolean;
1355
-
1356
- /** ClientCapabilities resourceRatingTier. */
1357
- public resourceRatingTier: number;
1358
-
1359
- /**
1360
- * Creates a new ClientCapabilities instance using the specified properties.
1361
- * @param [properties] Properties to set
1362
- * @returns ClientCapabilities instance
1363
- */
1364
- public static create(
1365
- properties?: ClientIdentification.IClientCapabilities,
1366
- ): ClientIdentification.ClientCapabilities;
1367
-
1368
- /**
1369
- * Encodes the specified ClientCapabilities message. Does not implicitly {@link ClientIdentification.ClientCapabilities.verify|verify} messages.
1370
- * @param m ClientCapabilities message or plain object to encode
1371
- * @param [w] Writer to encode to
1372
- * @returns Writer
1373
- */
1374
- public static encode(
1375
- m: ClientIdentification.IClientCapabilities,
1376
- w?: $protobuf.Writer,
1377
- ): $protobuf.Writer;
1378
-
1379
- /**
1380
- * Encodes the specified ClientCapabilities message, length delimited. Does not implicitly {@link ClientIdentification.ClientCapabilities.verify|verify} messages.
1381
- * @param message ClientCapabilities message or plain object to encode
1382
- * @param [writer] Writer to encode to
1383
- * @returns Writer
1384
- */
1385
- public static encodeDelimited(
1386
- message: ClientIdentification.IClientCapabilities,
1387
- writer?: $protobuf.Writer,
1388
- ): $protobuf.Writer;
1389
-
1390
- /**
1391
- * Decodes a ClientCapabilities message from the specified reader or buffer.
1392
- * @param r Reader or buffer to decode from
1393
- * @param [l] Message length if known beforehand
1394
- * @returns ClientCapabilities
1395
- * @throws {Error} If the payload is not a reader or valid buffer
1396
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1397
- */
1398
- public static decode(
1399
- r: $protobuf.Reader | Uint8Array,
1400
- l?: number,
1401
- ): ClientIdentification.ClientCapabilities;
1402
-
1403
- /**
1404
- * Decodes a ClientCapabilities message from the specified reader or buffer, length delimited.
1405
- * @param reader Reader or buffer to decode from
1406
- * @returns ClientCapabilities
1407
- * @throws {Error} If the payload is not a reader or valid buffer
1408
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1409
- */
1410
- public static decodeDelimited(
1411
- reader: $protobuf.Reader | Uint8Array,
1412
- ): ClientIdentification.ClientCapabilities;
1413
-
1414
- /**
1415
- * Creates a ClientCapabilities message from a plain object. Also converts values to their respective internal types.
1416
- * @param d Plain object
1417
- * @returns ClientCapabilities
1418
- */
1419
- public static fromObject(d: {
1420
- [k: string]: any;
1421
- }): ClientIdentification.ClientCapabilities;
1422
-
1423
- /**
1424
- * Creates a plain object from a ClientCapabilities message. Also converts values to other types if specified.
1425
- * @param m ClientCapabilities
1426
- * @param [o] Conversion options
1427
- * @returns Plain object
1428
- */
1429
- public static toObject(
1430
- m: ClientIdentification.ClientCapabilities,
1431
- o?: $protobuf.IConversionOptions,
1432
- ): { [k: string]: any };
1433
-
1434
- /**
1435
- * Converts this ClientCapabilities to JSON.
1436
- * @returns JSON object
1437
- */
1438
- public toJSON(): { [k: string]: any };
1439
-
1440
- /**
1441
- * Gets the default type url for ClientCapabilities
1442
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1443
- * @returns The default type url
1444
- */
1445
- public static getTypeUrl(typeUrlPrefix?: string): string;
1446
- }
1447
-
1448
- namespace ClientCapabilities {
1449
- /** HdcpVersion enum. */
1450
- enum HdcpVersion {
1451
- HDCP_NONE = 0,
1452
- HDCP_V1 = 1,
1453
- HDCP_V2 = 2,
1454
- HDCP_V2_1 = 3,
1455
- HDCP_V2_2 = 4,
1456
- HDCP_V2_3 = 5,
1457
- HDCP_NO_DIGITAL_OUTPUT = 255,
1458
- }
1459
-
1460
- /** CertificateKeyType enum. */
1461
- enum CertificateKeyType {
1462
- RSA_2048 = 0,
1463
- RSA_3072 = 1,
1464
- ECC_SECP256R1 = 2,
1465
- ECC_SECP384R1 = 3,
1466
- ECC_SECP521R1 = 4,
1467
- }
1468
-
1469
- /** AnalogOutputCapabilities enum. */
1470
- enum AnalogOutputCapabilities {
1471
- ANALOG_OUTPUT_UNKNOWN = 0,
1472
- ANALOG_OUTPUT_NONE = 1,
1473
- ANALOG_OUTPUT_SUPPORTED = 2,
1474
- ANALOG_OUTPUT_SUPPORTS_CGMS_A = 3,
1475
- }
1476
- }
1477
-
1478
- /** Properties of a ClientCredentials. */
1479
- interface IClientCredentials {
1480
- /** ClientCredentials type */
1481
- type?: ClientIdentification.TokenType | null;
1482
-
1483
- /** ClientCredentials token */
1484
- token?: Uint8Array | null;
1485
- }
1486
-
1487
- /** Represents a ClientCredentials. */
1488
- class ClientCredentials implements IClientCredentials {
1489
- /**
1490
- * Constructs a new ClientCredentials.
1491
- * @param [p] Properties to set
1492
- */
1493
- constructor(p?: ClientIdentification.IClientCredentials);
1494
-
1495
- /** ClientCredentials type. */
1496
- public type: ClientIdentification.TokenType;
1497
-
1498
- /** ClientCredentials token. */
1499
- public token: Uint8Array;
1500
-
1501
- /**
1502
- * Creates a new ClientCredentials instance using the specified properties.
1503
- * @param [properties] Properties to set
1504
- * @returns ClientCredentials instance
1505
- */
1506
- public static create(
1507
- properties?: ClientIdentification.IClientCredentials,
1508
- ): ClientIdentification.ClientCredentials;
1509
-
1510
- /**
1511
- * Encodes the specified ClientCredentials message. Does not implicitly {@link ClientIdentification.ClientCredentials.verify|verify} messages.
1512
- * @param m ClientCredentials message or plain object to encode
1513
- * @param [w] Writer to encode to
1514
- * @returns Writer
1515
- */
1516
- public static encode(
1517
- m: ClientIdentification.IClientCredentials,
1518
- w?: $protobuf.Writer,
1519
- ): $protobuf.Writer;
1520
-
1521
- /**
1522
- * Encodes the specified ClientCredentials message, length delimited. Does not implicitly {@link ClientIdentification.ClientCredentials.verify|verify} messages.
1523
- * @param message ClientCredentials message or plain object to encode
1524
- * @param [writer] Writer to encode to
1525
- * @returns Writer
1526
- */
1527
- public static encodeDelimited(
1528
- message: ClientIdentification.IClientCredentials,
1529
- writer?: $protobuf.Writer,
1530
- ): $protobuf.Writer;
1531
-
1532
- /**
1533
- * Decodes a ClientCredentials message from the specified reader or buffer.
1534
- * @param r Reader or buffer to decode from
1535
- * @param [l] Message length if known beforehand
1536
- * @returns ClientCredentials
1537
- * @throws {Error} If the payload is not a reader or valid buffer
1538
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1539
- */
1540
- public static decode(
1541
- r: $protobuf.Reader | Uint8Array,
1542
- l?: number,
1543
- ): ClientIdentification.ClientCredentials;
1544
-
1545
- /**
1546
- * Decodes a ClientCredentials message from the specified reader or buffer, length delimited.
1547
- * @param reader Reader or buffer to decode from
1548
- * @returns ClientCredentials
1549
- * @throws {Error} If the payload is not a reader or valid buffer
1550
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1551
- */
1552
- public static decodeDelimited(
1553
- reader: $protobuf.Reader | Uint8Array,
1554
- ): ClientIdentification.ClientCredentials;
1555
-
1556
- /**
1557
- * Creates a ClientCredentials message from a plain object. Also converts values to their respective internal types.
1558
- * @param d Plain object
1559
- * @returns ClientCredentials
1560
- */
1561
- public static fromObject(d: {
1562
- [k: string]: any;
1563
- }): ClientIdentification.ClientCredentials;
1564
-
1565
- /**
1566
- * Creates a plain object from a ClientCredentials message. Also converts values to other types if specified.
1567
- * @param m ClientCredentials
1568
- * @param [o] Conversion options
1569
- * @returns Plain object
1570
- */
1571
- public static toObject(
1572
- m: ClientIdentification.ClientCredentials,
1573
- o?: $protobuf.IConversionOptions,
1574
- ): { [k: string]: any };
1575
-
1576
- /**
1577
- * Converts this ClientCredentials to JSON.
1578
- * @returns JSON object
1579
- */
1580
- public toJSON(): { [k: string]: any };
1581
-
1582
- /**
1583
- * Gets the default type url for ClientCredentials
1584
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1585
- * @returns The default type url
1586
- */
1587
- public static getTypeUrl(typeUrlPrefix?: string): string;
1588
- }
1589
- }
1590
-
1591
- /** Represents an EncryptedClientIdentification. */
1592
- declare class EncryptedClientIdentification
1593
- implements IEncryptedClientIdentification
1594
- {
1595
- /**
1596
- * Constructs a new EncryptedClientIdentification.
1597
- * @param [p] Properties to set
1598
- */
1599
- constructor(p?: IEncryptedClientIdentification);
1600
-
1601
- /** EncryptedClientIdentification providerId. */
1602
- public providerId: string;
1603
-
1604
- /** EncryptedClientIdentification serviceCertificateSerialNumber. */
1605
- public serviceCertificateSerialNumber: Uint8Array;
1606
-
1607
- /** EncryptedClientIdentification encryptedClientId. */
1608
- public encryptedClientId: Uint8Array;
1609
-
1610
- /** EncryptedClientIdentification encryptedClientIdIv. */
1611
- public encryptedClientIdIv: Uint8Array;
1612
-
1613
- /** EncryptedClientIdentification encryptedPrivacyKey. */
1614
- public encryptedPrivacyKey: Uint8Array;
1615
-
1616
- /**
1617
- * Creates a new EncryptedClientIdentification instance using the specified properties.
1618
- * @param [properties] Properties to set
1619
- * @returns EncryptedClientIdentification instance
1620
- */
1621
- public static create(
1622
- properties?: IEncryptedClientIdentification,
1623
- ): EncryptedClientIdentification;
1624
-
1625
- /**
1626
- * Encodes the specified EncryptedClientIdentification message. Does not implicitly {@link EncryptedClientIdentification.verify|verify} messages.
1627
- * @param m EncryptedClientIdentification message or plain object to encode
1628
- * @param [w] Writer to encode to
1629
- * @returns Writer
1630
- */
1631
- public static encode(
1632
- m: IEncryptedClientIdentification,
1633
- w?: $protobuf.Writer,
1634
- ): $protobuf.Writer;
1635
-
1636
- /**
1637
- * Encodes the specified EncryptedClientIdentification message, length delimited. Does not implicitly {@link EncryptedClientIdentification.verify|verify} messages.
1638
- * @param message EncryptedClientIdentification message or plain object to encode
1639
- * @param [writer] Writer to encode to
1640
- * @returns Writer
1641
- */
1642
- public static encodeDelimited(
1643
- message: IEncryptedClientIdentification,
1644
- writer?: $protobuf.Writer,
1645
- ): $protobuf.Writer;
1646
-
1647
- /**
1648
- * Decodes an EncryptedClientIdentification message from the specified reader or buffer.
1649
- * @param r Reader or buffer to decode from
1650
- * @param [l] Message length if known beforehand
1651
- * @returns EncryptedClientIdentification
1652
- * @throws {Error} If the payload is not a reader or valid buffer
1653
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1654
- */
1655
- public static decode(
1656
- r: $protobuf.Reader | Uint8Array,
1657
- l?: number,
1658
- ): EncryptedClientIdentification;
1659
-
1660
- /**
1661
- * Decodes an EncryptedClientIdentification message from the specified reader or buffer, length delimited.
1662
- * @param reader Reader or buffer to decode from
1663
- * @returns EncryptedClientIdentification
1664
- * @throws {Error} If the payload is not a reader or valid buffer
1665
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1666
- */
1667
- public static decodeDelimited(
1668
- reader: $protobuf.Reader | Uint8Array,
1669
- ): EncryptedClientIdentification;
1670
-
1671
- /**
1672
- * Creates an EncryptedClientIdentification message from a plain object. Also converts values to their respective internal types.
1673
- * @param d Plain object
1674
- * @returns EncryptedClientIdentification
1675
- */
1676
- public static fromObject(d: {
1677
- [k: string]: any;
1678
- }): EncryptedClientIdentification;
1679
-
1680
- /**
1681
- * Creates a plain object from an EncryptedClientIdentification message. Also converts values to other types if specified.
1682
- * @param m EncryptedClientIdentification
1683
- * @param [o] Conversion options
1684
- * @returns Plain object
1685
- */
1686
- public static toObject(
1687
- m: EncryptedClientIdentification,
1688
- o?: $protobuf.IConversionOptions,
1689
- ): { [k: string]: any };
1690
-
1691
- /**
1692
- * Converts this EncryptedClientIdentification to JSON.
1693
- * @returns JSON object
1694
- */
1695
- public toJSON(): { [k: string]: any };
1696
-
1697
- /**
1698
- * Gets the default type url for EncryptedClientIdentification
1699
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1700
- * @returns The default type url
1701
- */
1702
- public static getTypeUrl(typeUrlPrefix?: string): string;
1703
- }
1704
-
1705
- /** Represents a DrmCertificate. */
1706
- declare class DrmCertificate implements IDrmCertificate {
1707
- /**
1708
- * Constructs a new DrmCertificate.
1709
- * @param [p] Properties to set
1710
- */
1711
- constructor(p?: IDrmCertificate);
1712
-
1713
- /** DrmCertificate type. */
1714
- public type: DrmCertificate.Type;
1715
-
1716
- /** DrmCertificate serialNumber. */
1717
- public serialNumber: Uint8Array;
1718
-
1719
- /** DrmCertificate creationTimeSeconds. */
1720
- public creationTimeSeconds: number;
1721
-
1722
- /** DrmCertificate expirationTimeSeconds. */
1723
- public expirationTimeSeconds: number;
1724
-
1725
- /** DrmCertificate publicKey. */
1726
- public publicKey: Uint8Array;
1727
-
1728
- /** DrmCertificate systemId. */
1729
- public systemId: number;
1730
-
1731
- /** DrmCertificate testDeviceDeprecated. */
1732
- public testDeviceDeprecated: boolean;
1733
-
1734
- /** DrmCertificate providerId. */
1735
- public providerId: string;
1736
-
1737
- /** DrmCertificate serviceTypes. */
1738
- public serviceTypes: DrmCertificate.ServiceType[];
1739
-
1740
- /** DrmCertificate algorithm. */
1741
- public algorithm: DrmCertificate.Algorithm;
1742
-
1743
- /** DrmCertificate rotId. */
1744
- public rotId: Uint8Array;
1745
-
1746
- /** DrmCertificate encryptionKey. */
1747
- public encryptionKey?: DrmCertificate.IEncryptionKey | null;
1748
-
1749
- /**
1750
- * Creates a new DrmCertificate instance using the specified properties.
1751
- * @param [properties] Properties to set
1752
- * @returns DrmCertificate instance
1753
- */
1754
- public static create(properties?: IDrmCertificate): DrmCertificate;
1755
-
1756
- /**
1757
- * Encodes the specified DrmCertificate message. Does not implicitly {@link DrmCertificate.verify|verify} messages.
1758
- * @param m DrmCertificate message or plain object to encode
1759
- * @param [w] Writer to encode to
1760
- * @returns Writer
1761
- */
1762
- public static encode(
1763
- m: IDrmCertificate,
1764
- w?: $protobuf.Writer,
1765
- ): $protobuf.Writer;
1766
-
1767
- /**
1768
- * Encodes the specified DrmCertificate message, length delimited. Does not implicitly {@link DrmCertificate.verify|verify} messages.
1769
- * @param message DrmCertificate message or plain object to encode
1770
- * @param [writer] Writer to encode to
1771
- * @returns Writer
1772
- */
1773
- public static encodeDelimited(
1774
- message: IDrmCertificate,
1775
- writer?: $protobuf.Writer,
1776
- ): $protobuf.Writer;
1777
-
1778
- /**
1779
- * Decodes a DrmCertificate message from the specified reader or buffer.
1780
- * @param r Reader or buffer to decode from
1781
- * @param [l] Message length if known beforehand
1782
- * @returns DrmCertificate
1783
- * @throws {Error} If the payload is not a reader or valid buffer
1784
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1785
- */
1786
- public static decode(
1787
- r: $protobuf.Reader | Uint8Array,
1788
- l?: number,
1789
- ): DrmCertificate;
1790
-
1791
- /**
1792
- * Decodes a DrmCertificate message from the specified reader or buffer, length delimited.
1793
- * @param reader Reader or buffer to decode from
1794
- * @returns DrmCertificate
1795
- * @throws {Error} If the payload is not a reader or valid buffer
1796
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1797
- */
1798
- public static decodeDelimited(
1799
- reader: $protobuf.Reader | Uint8Array,
1800
- ): DrmCertificate;
1801
-
1802
- /**
1803
- * Creates a DrmCertificate message from a plain object. Also converts values to their respective internal types.
1804
- * @param d Plain object
1805
- * @returns DrmCertificate
1806
- */
1807
- public static fromObject(d: { [k: string]: any }): DrmCertificate;
1808
-
1809
- /**
1810
- * Creates a plain object from a DrmCertificate message. Also converts values to other types if specified.
1811
- * @param m DrmCertificate
1812
- * @param [o] Conversion options
1813
- * @returns Plain object
1814
- */
1815
- public static toObject(
1816
- m: DrmCertificate,
1817
- o?: $protobuf.IConversionOptions,
1818
- ): { [k: string]: any };
1819
-
1820
- /**
1821
- * Converts this DrmCertificate to JSON.
1822
- * @returns JSON object
1823
- */
1824
- public toJSON(): { [k: string]: any };
1825
-
1826
- /**
1827
- * Gets the default type url for DrmCertificate
1828
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1829
- * @returns The default type url
1830
- */
1831
- public static getTypeUrl(typeUrlPrefix?: string): string;
1832
- }
1833
-
1834
- declare namespace DrmCertificate {
1835
- /** Type enum. */
1836
- enum Type {
1837
- ROOT = 0,
1838
- DEVICE_MODEL = 1,
1839
- DEVICE = 2,
1840
- SERVICE = 3,
1841
- PROVISIONER = 4,
1842
- }
1843
-
1844
- /** ServiceType enum. */
1845
- enum ServiceType {
1846
- UNKNOWN_SERVICE_TYPE = 0,
1847
- LICENSE_SERVER_SDK = 1,
1848
- LICENSE_SERVER_PROXY_SDK = 2,
1849
- PROVISIONING_SDK = 3,
1850
- CAS_PROXY_SDK = 4,
1851
- }
1852
-
1853
- /** Algorithm enum. */
1854
- enum Algorithm {
1855
- UNKNOWN_ALGORITHM = 0,
1856
- RSA = 1,
1857
- ECC_SECP256R1 = 2,
1858
- ECC_SECP384R1 = 3,
1859
- ECC_SECP521R1 = 4,
1860
- }
1861
-
1862
- /** Properties of an EncryptionKey. */
1863
- interface IEncryptionKey {
1864
- /** EncryptionKey publicKey */
1865
- publicKey?: Uint8Array | null;
1866
-
1867
- /** EncryptionKey algorithm */
1868
- algorithm?: DrmCertificate.Algorithm | null;
1869
- }
1870
-
1871
- /** Represents an EncryptionKey. */
1872
- class EncryptionKey implements IEncryptionKey {
1873
- /**
1874
- * Constructs a new EncryptionKey.
1875
- * @param [p] Properties to set
1876
- */
1877
- constructor(p?: DrmCertificate.IEncryptionKey);
1878
-
1879
- /** EncryptionKey publicKey. */
1880
- public publicKey: Uint8Array;
1881
-
1882
- /** EncryptionKey algorithm. */
1883
- public algorithm: DrmCertificate.Algorithm;
1884
-
1885
- /**
1886
- * Creates a new EncryptionKey instance using the specified properties.
1887
- * @param [properties] Properties to set
1888
- * @returns EncryptionKey instance
1889
- */
1890
- public static create(
1891
- properties?: DrmCertificate.IEncryptionKey,
1892
- ): DrmCertificate.EncryptionKey;
1893
-
1894
- /**
1895
- * Encodes the specified EncryptionKey message. Does not implicitly {@link DrmCertificate.EncryptionKey.verify|verify} messages.
1896
- * @param m EncryptionKey message or plain object to encode
1897
- * @param [w] Writer to encode to
1898
- * @returns Writer
1899
- */
1900
- public static encode(
1901
- m: DrmCertificate.IEncryptionKey,
1902
- w?: $protobuf.Writer,
1903
- ): $protobuf.Writer;
1904
-
1905
- /**
1906
- * Encodes the specified EncryptionKey message, length delimited. Does not implicitly {@link DrmCertificate.EncryptionKey.verify|verify} messages.
1907
- * @param message EncryptionKey message or plain object to encode
1908
- * @param [writer] Writer to encode to
1909
- * @returns Writer
1910
- */
1911
- public static encodeDelimited(
1912
- message: DrmCertificate.IEncryptionKey,
1913
- writer?: $protobuf.Writer,
1914
- ): $protobuf.Writer;
1915
-
1916
- /**
1917
- * Decodes an EncryptionKey message from the specified reader or buffer.
1918
- * @param r Reader or buffer to decode from
1919
- * @param [l] Message length if known beforehand
1920
- * @returns EncryptionKey
1921
- * @throws {Error} If the payload is not a reader or valid buffer
1922
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1923
- */
1924
- public static decode(
1925
- r: $protobuf.Reader | Uint8Array,
1926
- l?: number,
1927
- ): DrmCertificate.EncryptionKey;
1928
-
1929
- /**
1930
- * Decodes an EncryptionKey message from the specified reader or buffer, length delimited.
1931
- * @param reader Reader or buffer to decode from
1932
- * @returns EncryptionKey
1933
- * @throws {Error} If the payload is not a reader or valid buffer
1934
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1935
- */
1936
- public static decodeDelimited(
1937
- reader: $protobuf.Reader | Uint8Array,
1938
- ): DrmCertificate.EncryptionKey;
1939
-
1940
- /**
1941
- * Creates an EncryptionKey message from a plain object. Also converts values to their respective internal types.
1942
- * @param d Plain object
1943
- * @returns EncryptionKey
1944
- */
1945
- public static fromObject(d: {
1946
- [k: string]: any;
1947
- }): DrmCertificate.EncryptionKey;
1948
-
1949
- /**
1950
- * Creates a plain object from an EncryptionKey message. Also converts values to other types if specified.
1951
- * @param m EncryptionKey
1952
- * @param [o] Conversion options
1953
- * @returns Plain object
1954
- */
1955
- public static toObject(
1956
- m: DrmCertificate.EncryptionKey,
1957
- o?: $protobuf.IConversionOptions,
1958
- ): { [k: string]: any };
1959
-
1960
- /**
1961
- * Converts this EncryptionKey to JSON.
1962
- * @returns JSON object
1963
- */
1964
- public toJSON(): { [k: string]: any };
1965
-
1966
- /**
1967
- * Gets the default type url for EncryptionKey
1968
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1969
- * @returns The default type url
1970
- */
1971
- public static getTypeUrl(typeUrlPrefix?: string): string;
1972
- }
1973
- }
1974
-
1975
- /** Represents a SignedDrmCertificate. */
1976
- declare class SignedDrmCertificate implements ISignedDrmCertificate {
1977
- /**
1978
- * Constructs a new SignedDrmCertificate.
1979
- * @param [p] Properties to set
1980
- */
1981
- constructor(p?: ISignedDrmCertificate);
1982
-
1983
- /** SignedDrmCertificate drmCertificate. */
1984
- public drmCertificate: Uint8Array;
1985
-
1986
- /** SignedDrmCertificate signature. */
1987
- public signature: Uint8Array;
1988
-
1989
- /** SignedDrmCertificate signer. */
1990
- public signer?: ISignedDrmCertificate | null;
1991
-
1992
- /** SignedDrmCertificate hashAlgorithm. */
1993
- public hashAlgorithm: HashAlgorithmProto;
1994
-
1995
- /**
1996
- * Creates a new SignedDrmCertificate instance using the specified properties.
1997
- * @param [properties] Properties to set
1998
- * @returns SignedDrmCertificate instance
1999
- */
2000
- public static create(
2001
- properties?: ISignedDrmCertificate,
2002
- ): SignedDrmCertificate;
2003
-
2004
- /**
2005
- * Encodes the specified SignedDrmCertificate message. Does not implicitly {@link SignedDrmCertificate.verify|verify} messages.
2006
- * @param m SignedDrmCertificate message or plain object to encode
2007
- * @param [w] Writer to encode to
2008
- * @returns Writer
2009
- */
2010
- public static encode(
2011
- m: ISignedDrmCertificate,
2012
- w?: $protobuf.Writer,
2013
- ): $protobuf.Writer;
2014
-
2015
- /**
2016
- * Encodes the specified SignedDrmCertificate message, length delimited. Does not implicitly {@link SignedDrmCertificate.verify|verify} messages.
2017
- * @param message SignedDrmCertificate message or plain object to encode
2018
- * @param [writer] Writer to encode to
2019
- * @returns Writer
2020
- */
2021
- public static encodeDelimited(
2022
- message: ISignedDrmCertificate,
2023
- writer?: $protobuf.Writer,
2024
- ): $protobuf.Writer;
2025
-
2026
- /**
2027
- * Decodes a SignedDrmCertificate message from the specified reader or buffer.
2028
- * @param r Reader or buffer to decode from
2029
- * @param [l] Message length if known beforehand
2030
- * @returns SignedDrmCertificate
2031
- * @throws {Error} If the payload is not a reader or valid buffer
2032
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
2033
- */
2034
- public static decode(
2035
- r: $protobuf.Reader | Uint8Array,
2036
- l?: number,
2037
- ): SignedDrmCertificate;
2038
-
2039
- /**
2040
- * Decodes a SignedDrmCertificate message from the specified reader or buffer, length delimited.
2041
- * @param reader Reader or buffer to decode from
2042
- * @returns SignedDrmCertificate
2043
- * @throws {Error} If the payload is not a reader or valid buffer
2044
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
2045
- */
2046
- public static decodeDelimited(
2047
- reader: $protobuf.Reader | Uint8Array,
2048
- ): SignedDrmCertificate;
2049
-
2050
- /**
2051
- * Creates a SignedDrmCertificate message from a plain object. Also converts values to their respective internal types.
2052
- * @param d Plain object
2053
- * @returns SignedDrmCertificate
2054
- */
2055
- public static fromObject(d: { [k: string]: any }): SignedDrmCertificate;
2056
-
2057
- /**
2058
- * Creates a plain object from a SignedDrmCertificate message. Also converts values to other types if specified.
2059
- * @param m SignedDrmCertificate
2060
- * @param [o] Conversion options
2061
- * @returns Plain object
2062
- */
2063
- public static toObject(
2064
- m: SignedDrmCertificate,
2065
- o?: $protobuf.IConversionOptions,
2066
- ): { [k: string]: any };
2067
-
2068
- /**
2069
- * Converts this SignedDrmCertificate to JSON.
2070
- * @returns JSON object
2071
- */
2072
- public toJSON(): { [k: string]: any };
2073
-
2074
- /**
2075
- * Gets the default type url for SignedDrmCertificate
2076
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
2077
- * @returns The default type url
2078
- */
2079
- public static getTypeUrl(typeUrlPrefix?: string): string;
2080
- }
2081
-
2082
- /** Represents a FileHashes. */
2083
- declare class FileHashes implements IFileHashes {
2084
- /**
2085
- * Constructs a new FileHashes.
2086
- * @param [p] Properties to set
2087
- */
2088
- constructor(p?: IFileHashes);
2089
-
2090
- /** FileHashes signer. */
2091
- public signer: Uint8Array;
2092
-
2093
- /** FileHashes signatures. */
2094
- public signatures: FileHashes.ISignature[];
2095
-
2096
- /**
2097
- * Creates a new FileHashes instance using the specified properties.
2098
- * @param [properties] Properties to set
2099
- * @returns FileHashes instance
2100
- */
2101
- public static create(properties?: IFileHashes): FileHashes;
2102
-
2103
- /**
2104
- * Encodes the specified FileHashes message. Does not implicitly {@link FileHashes.verify|verify} messages.
2105
- * @param m FileHashes message or plain object to encode
2106
- * @param [w] Writer to encode to
2107
- * @returns Writer
2108
- */
2109
- public static encode(m: IFileHashes, w?: $protobuf.Writer): $protobuf.Writer;
2110
-
2111
- /**
2112
- * Encodes the specified FileHashes message, length delimited. Does not implicitly {@link FileHashes.verify|verify} messages.
2113
- * @param message FileHashes message or plain object to encode
2114
- * @param [writer] Writer to encode to
2115
- * @returns Writer
2116
- */
2117
- public static encodeDelimited(
2118
- message: IFileHashes,
2119
- writer?: $protobuf.Writer,
2120
- ): $protobuf.Writer;
2121
-
2122
- /**
2123
- * Decodes a FileHashes message from the specified reader or buffer.
2124
- * @param r Reader or buffer to decode from
2125
- * @param [l] Message length if known beforehand
2126
- * @returns FileHashes
2127
- * @throws {Error} If the payload is not a reader or valid buffer
2128
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
2129
- */
2130
- public static decode(
2131
- r: $protobuf.Reader | Uint8Array,
2132
- l?: number,
2133
- ): FileHashes;
2134
-
2135
- /**
2136
- * Decodes a FileHashes message from the specified reader or buffer, length delimited.
2137
- * @param reader Reader or buffer to decode from
2138
- * @returns FileHashes
2139
- * @throws {Error} If the payload is not a reader or valid buffer
2140
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
2141
- */
2142
- public static decodeDelimited(
2143
- reader: $protobuf.Reader | Uint8Array,
2144
- ): FileHashes;
2145
-
2146
- /**
2147
- * Creates a FileHashes message from a plain object. Also converts values to their respective internal types.
2148
- * @param d Plain object
2149
- * @returns FileHashes
2150
- */
2151
- public static fromObject(d: { [k: string]: any }): FileHashes;
2152
-
2153
- /**
2154
- * Creates a plain object from a FileHashes message. Also converts values to other types if specified.
2155
- * @param m FileHashes
2156
- * @param [o] Conversion options
2157
- * @returns Plain object
2158
- */
2159
- public static toObject(
2160
- m: FileHashes,
2161
- o?: $protobuf.IConversionOptions,
2162
- ): { [k: string]: any };
2163
-
2164
- /**
2165
- * Converts this FileHashes to JSON.
2166
- * @returns JSON object
2167
- */
2168
- public toJSON(): { [k: string]: any };
2169
-
2170
- /**
2171
- * Gets the default type url for FileHashes
2172
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
2173
- * @returns The default type url
2174
- */
2175
- public static getTypeUrl(typeUrlPrefix?: string): string;
2176
- }
2177
-
2178
- declare namespace FileHashes {
2179
- /** Properties of a Signature. */
2180
- interface ISignature {
2181
- /** Signature filename */
2182
- filename?: string | null;
2183
-
2184
- /** Signature testSigning */
2185
- testSigning?: boolean | null;
2186
-
2187
- /** Signature SHA512Hash */
2188
- SHA512Hash?: Uint8Array | null;
2189
-
2190
- /** Signature mainExe */
2191
- mainExe?: boolean | null;
2192
-
2193
- /** Signature signature */
2194
- signature?: Uint8Array | null;
2195
- }
2196
-
2197
- /** Represents a Signature. */
2198
- class Signature implements ISignature {
2199
- /**
2200
- * Constructs a new Signature.
2201
- * @param [p] Properties to set
2202
- */
2203
- constructor(p?: FileHashes.ISignature);
2204
-
2205
- /** Signature filename. */
2206
- public filename: string;
2207
-
2208
- /** Signature testSigning. */
2209
- public testSigning: boolean;
2210
-
2211
- /** Signature SHA512Hash. */
2212
- public SHA512Hash: Uint8Array;
2213
-
2214
- /** Signature mainExe. */
2215
- public mainExe: boolean;
2216
-
2217
- /** Signature signature. */
2218
- public signature: Uint8Array;
2219
-
2220
- /**
2221
- * Creates a new Signature instance using the specified properties.
2222
- * @param [properties] Properties to set
2223
- * @returns Signature instance
2224
- */
2225
- public static create(
2226
- properties?: FileHashes.ISignature,
2227
- ): FileHashes.Signature;
2228
-
2229
- /**
2230
- * Encodes the specified Signature message. Does not implicitly {@link FileHashes.Signature.verify|verify} messages.
2231
- * @param m Signature message or plain object to encode
2232
- * @param [w] Writer to encode to
2233
- * @returns Writer
2234
- */
2235
- public static encode(
2236
- m: FileHashes.ISignature,
2237
- w?: $protobuf.Writer,
2238
- ): $protobuf.Writer;
2239
-
2240
- /**
2241
- * Encodes the specified Signature message, length delimited. Does not implicitly {@link FileHashes.Signature.verify|verify} messages.
2242
- * @param message Signature message or plain object to encode
2243
- * @param [writer] Writer to encode to
2244
- * @returns Writer
2245
- */
2246
- public static encodeDelimited(
2247
- message: FileHashes.ISignature,
2248
- writer?: $protobuf.Writer,
2249
- ): $protobuf.Writer;
2250
-
2251
- /**
2252
- * Decodes a Signature message from the specified reader or buffer.
2253
- * @param r Reader or buffer to decode from
2254
- * @param [l] Message length if known beforehand
2255
- * @returns Signature
2256
- * @throws {Error} If the payload is not a reader or valid buffer
2257
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
2258
- */
2259
- public static decode(
2260
- r: $protobuf.Reader | Uint8Array,
2261
- l?: number,
2262
- ): FileHashes.Signature;
2263
-
2264
- /**
2265
- * Decodes a Signature message from the specified reader or buffer, length delimited.
2266
- * @param reader Reader or buffer to decode from
2267
- * @returns Signature
2268
- * @throws {Error} If the payload is not a reader or valid buffer
2269
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
2270
- */
2271
- public static decodeDelimited(
2272
- reader: $protobuf.Reader | Uint8Array,
2273
- ): FileHashes.Signature;
2274
-
2275
- /**
2276
- * Creates a Signature message from a plain object. Also converts values to their respective internal types.
2277
- * @param d Plain object
2278
- * @returns Signature
2279
- */
2280
- public static fromObject(d: { [k: string]: any }): FileHashes.Signature;
2281
-
2282
- /**
2283
- * Creates a plain object from a Signature message. Also converts values to other types if specified.
2284
- * @param m Signature
2285
- * @param [o] Conversion options
2286
- * @returns Plain object
2287
- */
2288
- public static toObject(
2289
- m: FileHashes.Signature,
2290
- o?: $protobuf.IConversionOptions,
2291
- ): { [k: string]: any };
2292
-
2293
- /**
2294
- * Converts this Signature to JSON.
2295
- * @returns JSON object
2296
- */
2297
- public toJSON(): { [k: string]: any };
2298
-
2299
- /**
2300
- * Gets the default type url for Signature
2301
- * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
2302
- * @returns The default type url
2303
- */
2304
- public static getTypeUrl(typeUrlPrefix?: string): string;
2305
- }
2306
- }
2307
-
2308
- declare class Key {
2309
- id: string;
2310
- value: string;
2311
- type: string;
2312
- level?: string;
2313
- trackLabel?: string;
2314
- permissions: string[];
2315
- constructor(id: string, value: string, type?: string, level?: string, trackLabel?: string, permissions?: string[]);
2316
- toString(): string;
2317
- static fromContainer(container: License.IKeyContainer, encKey: Uint8Array): Promise<Key>;
2318
- }
2319
-
2320
- type Logger = Pick<typeof console, 'debug' | 'error' | 'info' | 'warn'>;
2321
- declare const SESSION_TYPES: {
2322
- readonly temporary: 0;
2323
- readonly 'persistent-license': 1;
2324
- };
2325
- type SessionType = keyof typeof SESSION_TYPES;
2326
- /**
2327
- * https://www.w3.org/TR/encrypted-media-2/#mediakeysession-interface
2328
- */
2329
- declare class Session extends EventTarget {
2330
- #private;
2331
- readonly sessionId: string;
2332
- readonly keyStatuses: MediaKeyStatusMap;
2333
- readonly keys: Map<string, Key>;
2334
- readonly expiration: number;
2335
- readonly closed: Promise<MediaKeySessionClosedReason>;
2336
- onmessage: ((this: MediaKeySession, ev: MediaKeyMessageEvent) => any) | null;
2337
- onkeyschange: ((this: MediaKeySession, ev: Event) => any) | null;
2338
- onkeystatuseschange: ((this: MediaKeySession, ev: Event) => any) | null;
2339
- sessionType: SessionType;
2340
- privacyMode?: boolean;
2341
- constructor(sessionType: SessionType | undefined, client: Client);
2342
- setLogger(logger: Logger): void;
2343
- generateRequest(initDataType: string, initData: BufferSource): Promise<Uint8Array | undefined>;
2344
- waitForLicenseRequest(): Promise<Uint8Array>;
2345
- load(): Promise<boolean>;
2346
- update(response: Uint8Array): Promise<void>;
2347
- getKeys(): Promise<Key[]>;
2348
- close(): Promise<void>;
2349
- remove(): Promise<void>;
2350
- }
2351
-
2352
- declare const CLIENT_TYPE: {
2353
- readonly android: "android";
2354
- readonly chrome: "chrome";
2355
- };
2356
- type ClientType = (typeof CLIENT_TYPE)[keyof typeof CLIENT_TYPE];
2357
- type SecurityLevel = 1 | 2 | 3;
2358
- declare class Client {
2359
- #private;
2360
- id: ClientIdentification;
2361
- type: ClientType;
2362
- securityLevel: SecurityLevel;
2363
- signedDrmCertificate: SignedDrmCertificate;
2364
- drmCertificate: DrmCertificate;
2365
- systemId: number;
2366
- vmp: FileHashes | null;
2367
- info: Map<string, string>;
2368
- static fromPacked(data: Uint8Array, format?: 'wvd' | 'azot'): Promise<Client>;
2369
- static fromUnpacked(id: Uint8Array, key: Uint8Array, vmp?: Uint8Array): Promise<Client>;
2370
- get key(): {
2371
- forDecrypt: CryptoKey;
2372
- forSign: CryptoKey;
2373
- };
2374
- constructor(id: Uint8Array | ClientIdentification, type?: ClientType, securityLevel?: SecurityLevel);
2375
- unpack(): Promise<[id: Uint8Array, key: Uint8Array]>;
2376
- pack(format?: 'wvd' | 'azot'): Promise<Uint8Array>;
2377
- importKey(pkcs1: Uint8Array | string): Promise<{
2378
- forDecrypt: CryptoKey;
2379
- forSign: CryptoKey;
2380
- }>;
2381
- exportKey(): Promise<Uint8Array>;
2382
- decryptWithKey(data: Uint8Array): Promise<Uint8Array>;
2383
- signWithKey(data: Uint8Array): Promise<Uint8Array>;
2384
- encryptId(certificate: SignedDrmCertificate): Promise<EncryptedClientIdentification>;
2385
- toString(): string;
2386
- /**
2387
- * https://www.w3.org/TR/encrypted-media-2/#navigator-extension-requestmediakeysystemaccess
2388
- */
2389
- requestMediaKeySystemAccess(keySystem: string, supportedConfigurations: MediaKeySystemConfiguration[]): {
2390
- keySystem: string;
2391
- createMediaKeys: () => Promise<{
2392
- createSession: (sessionType?: SessionType) => MediaKeySession;
2393
- setServerCertificate: (serverCertificate: BufferSource) => Promise<boolean>;
2394
- getStatusForPolicy: () => Promise<MediaKeyStatus>;
2395
- }>;
2396
- getConfiguration: () => MediaKeySystemConfiguration;
2397
- };
2398
- }
2399
-
2400
- type ConnectParams = {
2401
- baseUrl: string;
2402
- secret: string;
2403
- };
2404
- declare const connect: ({ baseUrl, secret }: ConnectParams) => {
2405
- createSession: (sessionType: SessionType, client: string) => Promise<{
2406
- sessionId: any;
2407
- generateRequest: (initDataType: string, initData: Uint8Array) => Promise<Uint8Array>;
2408
- update: (response: Uint8Array) => Promise<void>;
2409
- getKeys: () => Promise<any>;
2410
- close: () => Promise<void>;
2411
- remove: () => Promise<void>;
2412
- }>;
2413
- };
2414
-
2415
- declare const fromText: (data: string) => {
2416
- toBase64: () => string;
2417
- toHex: () => string;
2418
- toBuffer: () => Uint8Array;
2419
- };
2420
- declare const fromBinary: (data: string) => {
2421
- toBuffer: () => Uint8Array;
2422
- };
2423
- declare const fromBase64: (data: string) => {
2424
- toBuffer: () => Uint8Array;
2425
- toText: () => string;
2426
- toHex: () => string;
2427
- };
2428
- declare const fromBuffer: (data: Uint8Array) => {
2429
- toBase64: () => string;
2430
- toHex: () => string;
2431
- toText: () => string;
2432
- toBinary: () => string;
2433
- };
2434
- declare const fromHex: (data: string) => {
2435
- toBase64: () => string;
2436
- toBuffer: () => Uint8Array;
2437
- toText: () => string;
2438
- };
2439
-
2440
- interface FetchDecryptionKeysParams {
2441
- client: Client;
2442
- pssh: string;
2443
- server: string;
2444
- individualizationServer?: string;
2445
- headers?: Record<string, string>;
2446
- requestFilter?: (body: Uint8Array) => Uint8Array;
2447
- responseFilter?: (data: Uint8Array) => Uint8Array;
2448
- fetch?: typeof fetch;
2449
- requestTemplate?: string;
2450
- logger?: Logger;
2451
- }
2452
- declare const fetchDecryptionKeys: (params: FetchDecryptionKeysParams) => Promise<Key[]>;
2453
-
2454
- export { CLIENT_TYPE, Client, type ClientType, Key, SecurityLevel, Session, connect, fetchDecryptionKeys, fromBase64, fromBinary, fromBuffer, fromHex, fromText };