@types/serviceworker 0.0.135 → 0.0.137

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/README.md CHANGED
@@ -28,4 +28,4 @@ This project does not respect semantic versioning as almost every change could p
28
28
 
29
29
  ## Deploy Metadata
30
30
 
31
- You can read what changed in version 0.0.135 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fserviceworker%400.0.135.
31
+ You can read what changed in version 0.0.137 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fserviceworker%400.0.137.
package/index.d.ts CHANGED
@@ -362,6 +362,10 @@ interface KeyAlgorithm {
362
362
  name: string;
363
363
  }
364
364
 
365
+ interface KeySystemTrackConfiguration {
366
+ robustness?: string;
367
+ }
368
+
365
369
  interface LockInfo {
366
370
  clientId?: string;
367
371
  mode?: LockMode;
@@ -381,11 +385,9 @@ interface LockOptions {
381
385
  }
382
386
 
383
387
  interface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {
384
- configuration?: MediaDecodingConfiguration;
385
388
  }
386
389
 
387
390
  interface MediaCapabilitiesEncodingInfo extends MediaCapabilitiesInfo {
388
- configuration?: MediaEncodingConfiguration;
389
391
  }
390
392
 
391
393
  interface MediaCapabilitiesInfo {
@@ -394,12 +396,23 @@ interface MediaCapabilitiesInfo {
394
396
  supported: boolean;
395
397
  }
396
398
 
399
+ interface MediaCapabilitiesKeySystemConfiguration {
400
+ audio?: KeySystemTrackConfiguration;
401
+ distinctiveIdentifier?: MediaKeysRequirement;
402
+ initDataType?: string;
403
+ keySystem: string;
404
+ persistentState?: MediaKeysRequirement;
405
+ sessionTypes?: string[];
406
+ video?: KeySystemTrackConfiguration;
407
+ }
408
+
397
409
  interface MediaConfiguration {
398
410
  audio?: AudioConfiguration;
399
411
  video?: VideoConfiguration;
400
412
  }
401
413
 
402
414
  interface MediaDecodingConfiguration extends MediaConfiguration {
415
+ keySystemConfiguration?: MediaCapabilitiesKeySystemConfiguration;
403
416
  type: MediaDecodingType;
404
417
  }
405
418
 
@@ -1860,7 +1873,7 @@ interface Crypto {
1860
1873
  */
1861
1874
  readonly subtle: SubtleCrypto;
1862
1875
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/getRandomValues) */
1863
- getRandomValues<T extends ArrayBufferView | null>(array: T): T;
1876
+ getRandomValues<T extends ArrayBufferView>(array: T): T;
1864
1877
  /**
1865
1878
  * Available only in secure contexts.
1866
1879
  *
@@ -9227,6 +9240,7 @@ type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "u
9227
9240
  type LockMode = "exclusive" | "shared";
9228
9241
  type MediaDecodingType = "file" | "media-source" | "webrtc";
9229
9242
  type MediaEncodingType = "record" | "webrtc";
9243
+ type MediaKeysRequirement = "not-allowed" | "optional" | "required";
9230
9244
  type NotificationDirection = "auto" | "ltr" | "rtl";
9231
9245
  type NotificationPermission = "default" | "denied" | "granted";
9232
9246
  type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/serviceworker",
3
- "version": "0.0.135",
3
+ "version": "0.0.137",
4
4
  "description": "Types for the global scope of Service Workers",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [],
package/ts5.5/index.d.ts CHANGED
@@ -362,6 +362,10 @@ interface KeyAlgorithm {
362
362
  name: string;
363
363
  }
364
364
 
365
+ interface KeySystemTrackConfiguration {
366
+ robustness?: string;
367
+ }
368
+
365
369
  interface LockInfo {
366
370
  clientId?: string;
367
371
  mode?: LockMode;
@@ -381,11 +385,9 @@ interface LockOptions {
381
385
  }
382
386
 
383
387
  interface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {
384
- configuration?: MediaDecodingConfiguration;
385
388
  }
386
389
 
387
390
  interface MediaCapabilitiesEncodingInfo extends MediaCapabilitiesInfo {
388
- configuration?: MediaEncodingConfiguration;
389
391
  }
390
392
 
391
393
  interface MediaCapabilitiesInfo {
@@ -394,12 +396,23 @@ interface MediaCapabilitiesInfo {
394
396
  supported: boolean;
395
397
  }
396
398
 
399
+ interface MediaCapabilitiesKeySystemConfiguration {
400
+ audio?: KeySystemTrackConfiguration;
401
+ distinctiveIdentifier?: MediaKeysRequirement;
402
+ initDataType?: string;
403
+ keySystem: string;
404
+ persistentState?: MediaKeysRequirement;
405
+ sessionTypes?: string[];
406
+ video?: KeySystemTrackConfiguration;
407
+ }
408
+
397
409
  interface MediaConfiguration {
398
410
  audio?: AudioConfiguration;
399
411
  video?: VideoConfiguration;
400
412
  }
401
413
 
402
414
  interface MediaDecodingConfiguration extends MediaConfiguration {
415
+ keySystemConfiguration?: MediaCapabilitiesKeySystemConfiguration;
403
416
  type: MediaDecodingType;
404
417
  }
405
418
 
@@ -1860,7 +1873,7 @@ interface Crypto {
1860
1873
  */
1861
1874
  readonly subtle: SubtleCrypto;
1862
1875
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/getRandomValues) */
1863
- getRandomValues<T extends ArrayBufferView | null>(array: T): T;
1876
+ getRandomValues<T extends ArrayBufferView>(array: T): T;
1864
1877
  /**
1865
1878
  * Available only in secure contexts.
1866
1879
  *
@@ -9227,6 +9240,7 @@ type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "u
9227
9240
  type LockMode = "exclusive" | "shared";
9228
9241
  type MediaDecodingType = "file" | "media-source" | "webrtc";
9229
9242
  type MediaEncodingType = "record" | "webrtc";
9243
+ type MediaKeysRequirement = "not-allowed" | "optional" | "required";
9230
9244
  type NotificationDirection = "auto" | "ltr" | "rtl";
9231
9245
  type NotificationPermission = "default" | "denied" | "granted";
9232
9246
  type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu";
package/ts5.6/index.d.ts CHANGED
@@ -362,6 +362,10 @@ interface KeyAlgorithm {
362
362
  name: string;
363
363
  }
364
364
 
365
+ interface KeySystemTrackConfiguration {
366
+ robustness?: string;
367
+ }
368
+
365
369
  interface LockInfo {
366
370
  clientId?: string;
367
371
  mode?: LockMode;
@@ -381,11 +385,9 @@ interface LockOptions {
381
385
  }
382
386
 
383
387
  interface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {
384
- configuration?: MediaDecodingConfiguration;
385
388
  }
386
389
 
387
390
  interface MediaCapabilitiesEncodingInfo extends MediaCapabilitiesInfo {
388
- configuration?: MediaEncodingConfiguration;
389
391
  }
390
392
 
391
393
  interface MediaCapabilitiesInfo {
@@ -394,12 +396,23 @@ interface MediaCapabilitiesInfo {
394
396
  supported: boolean;
395
397
  }
396
398
 
399
+ interface MediaCapabilitiesKeySystemConfiguration {
400
+ audio?: KeySystemTrackConfiguration;
401
+ distinctiveIdentifier?: MediaKeysRequirement;
402
+ initDataType?: string;
403
+ keySystem: string;
404
+ persistentState?: MediaKeysRequirement;
405
+ sessionTypes?: string[];
406
+ video?: KeySystemTrackConfiguration;
407
+ }
408
+
397
409
  interface MediaConfiguration {
398
410
  audio?: AudioConfiguration;
399
411
  video?: VideoConfiguration;
400
412
  }
401
413
 
402
414
  interface MediaDecodingConfiguration extends MediaConfiguration {
415
+ keySystemConfiguration?: MediaCapabilitiesKeySystemConfiguration;
403
416
  type: MediaDecodingType;
404
417
  }
405
418
 
@@ -1860,7 +1873,7 @@ interface Crypto {
1860
1873
  */
1861
1874
  readonly subtle: SubtleCrypto;
1862
1875
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Crypto/getRandomValues) */
1863
- getRandomValues<T extends ArrayBufferView | null>(array: T): T;
1876
+ getRandomValues<T extends ArrayBufferView>(array: T): T;
1864
1877
  /**
1865
1878
  * Available only in secure contexts.
1866
1879
  *
@@ -9227,6 +9240,7 @@ type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "u
9227
9240
  type LockMode = "exclusive" | "shared";
9228
9241
  type MediaDecodingType = "file" | "media-source" | "webrtc";
9229
9242
  type MediaEncodingType = "record" | "webrtc";
9243
+ type MediaKeysRequirement = "not-allowed" | "optional" | "required";
9230
9244
  type NotificationDirection = "auto" | "ltr" | "rtl";
9231
9245
  type NotificationPermission = "default" | "denied" | "granted";
9232
9246
  type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu";