azot 0.4.5 → 0.4.6

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