@types/webworker 0.0.9 → 0.0.10

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
@@ -45,4 +45,4 @@ This project does not respect semantic versioning as almost every change could p
45
45
 
46
46
  ## Deploy Metadata
47
47
 
48
- You can read what changed in version 0.0.9 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fwebworker%400.0.9.
48
+ You can read what changed in version 0.0.10 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fwebworker%400.0.10.
package/index.d.ts CHANGED
@@ -466,6 +466,10 @@ interface KeyAlgorithm {
466
466
  name: string;
467
467
  }
468
468
 
469
+ interface KeySystemTrackConfiguration {
470
+ robustness?: string;
471
+ }
472
+
469
473
  interface LockInfo {
470
474
  clientId?: string;
471
475
  mode?: LockMode;
@@ -485,11 +489,9 @@ interface LockOptions {
485
489
  }
486
490
 
487
491
  interface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {
488
- configuration?: MediaDecodingConfiguration;
489
492
  }
490
493
 
491
494
  interface MediaCapabilitiesEncodingInfo extends MediaCapabilitiesInfo {
492
- configuration?: MediaEncodingConfiguration;
493
495
  }
494
496
 
495
497
  interface MediaCapabilitiesInfo {
@@ -498,12 +500,23 @@ interface MediaCapabilitiesInfo {
498
500
  supported: boolean;
499
501
  }
500
502
 
503
+ interface MediaCapabilitiesKeySystemConfiguration {
504
+ audio?: KeySystemTrackConfiguration;
505
+ distinctiveIdentifier?: MediaKeysRequirement;
506
+ initDataType?: string;
507
+ keySystem: string;
508
+ persistentState?: MediaKeysRequirement;
509
+ sessionTypes?: string[];
510
+ video?: KeySystemTrackConfiguration;
511
+ }
512
+
501
513
  interface MediaConfiguration {
502
514
  audio?: AudioConfiguration;
503
515
  video?: VideoConfiguration;
504
516
  }
505
517
 
506
518
  interface MediaDecodingConfiguration extends MediaConfiguration {
519
+ keySystemConfiguration?: MediaCapabilitiesKeySystemConfiguration;
507
520
  type: MediaDecodingType;
508
521
  }
509
522
 
@@ -636,21 +649,23 @@ interface QueuingStrategyInit {
636
649
  highWaterMark: number;
637
650
  }
638
651
 
639
- interface RTCEncodedAudioFrameMetadata {
652
+ interface RTCEncodedAudioFrameMetadata extends RTCEncodedFrameMetadata {
653
+ sequenceNumber?: number;
654
+ }
655
+
656
+ interface RTCEncodedFrameMetadata {
640
657
  contributingSources?: number[];
658
+ mimeType?: string;
641
659
  payloadType?: number;
642
- sequenceNumber?: number;
660
+ rtpTimestamp?: number;
643
661
  synchronizationSource?: number;
644
662
  }
645
663
 
646
- interface RTCEncodedVideoFrameMetadata {
647
- contributingSources?: number[];
664
+ interface RTCEncodedVideoFrameMetadata extends RTCEncodedFrameMetadata {
648
665
  dependencies?: number[];
649
666
  frameId?: number;
650
667
  height?: number;
651
- payloadType?: number;
652
668
  spatialIndex?: number;
653
- synchronizationSource?: number;
654
669
  temporalIndex?: number;
655
670
  timestamp?: number;
656
671
  width?: number;
@@ -10425,6 +10440,7 @@ type LatencyMode = "quality" | "realtime";
10425
10440
  type LockMode = "exclusive" | "shared";
10426
10441
  type MediaDecodingType = "file" | "media-source" | "webrtc";
10427
10442
  type MediaEncodingType = "record" | "webrtc";
10443
+ type MediaKeysRequirement = "not-allowed" | "optional" | "required";
10428
10444
  type NotificationDirection = "auto" | "ltr" | "rtl";
10429
10445
  type NotificationPermission = "default" | "denied" | "granted";
10430
10446
  type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/webworker",
3
- "version": "0.0.9",
3
+ "version": "0.0.10",
4
4
  "description": "Types for the global scope of Web Workers",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [],
package/ts5.5/index.d.ts CHANGED
@@ -466,6 +466,10 @@ interface KeyAlgorithm {
466
466
  name: string;
467
467
  }
468
468
 
469
+ interface KeySystemTrackConfiguration {
470
+ robustness?: string;
471
+ }
472
+
469
473
  interface LockInfo {
470
474
  clientId?: string;
471
475
  mode?: LockMode;
@@ -485,11 +489,9 @@ interface LockOptions {
485
489
  }
486
490
 
487
491
  interface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {
488
- configuration?: MediaDecodingConfiguration;
489
492
  }
490
493
 
491
494
  interface MediaCapabilitiesEncodingInfo extends MediaCapabilitiesInfo {
492
- configuration?: MediaEncodingConfiguration;
493
495
  }
494
496
 
495
497
  interface MediaCapabilitiesInfo {
@@ -498,12 +500,23 @@ interface MediaCapabilitiesInfo {
498
500
  supported: boolean;
499
501
  }
500
502
 
503
+ interface MediaCapabilitiesKeySystemConfiguration {
504
+ audio?: KeySystemTrackConfiguration;
505
+ distinctiveIdentifier?: MediaKeysRequirement;
506
+ initDataType?: string;
507
+ keySystem: string;
508
+ persistentState?: MediaKeysRequirement;
509
+ sessionTypes?: string[];
510
+ video?: KeySystemTrackConfiguration;
511
+ }
512
+
501
513
  interface MediaConfiguration {
502
514
  audio?: AudioConfiguration;
503
515
  video?: VideoConfiguration;
504
516
  }
505
517
 
506
518
  interface MediaDecodingConfiguration extends MediaConfiguration {
519
+ keySystemConfiguration?: MediaCapabilitiesKeySystemConfiguration;
507
520
  type: MediaDecodingType;
508
521
  }
509
522
 
@@ -636,21 +649,23 @@ interface QueuingStrategyInit {
636
649
  highWaterMark: number;
637
650
  }
638
651
 
639
- interface RTCEncodedAudioFrameMetadata {
652
+ interface RTCEncodedAudioFrameMetadata extends RTCEncodedFrameMetadata {
653
+ sequenceNumber?: number;
654
+ }
655
+
656
+ interface RTCEncodedFrameMetadata {
640
657
  contributingSources?: number[];
658
+ mimeType?: string;
641
659
  payloadType?: number;
642
- sequenceNumber?: number;
660
+ rtpTimestamp?: number;
643
661
  synchronizationSource?: number;
644
662
  }
645
663
 
646
- interface RTCEncodedVideoFrameMetadata {
647
- contributingSources?: number[];
664
+ interface RTCEncodedVideoFrameMetadata extends RTCEncodedFrameMetadata {
648
665
  dependencies?: number[];
649
666
  frameId?: number;
650
667
  height?: number;
651
- payloadType?: number;
652
668
  spatialIndex?: number;
653
- synchronizationSource?: number;
654
669
  temporalIndex?: number;
655
670
  timestamp?: number;
656
671
  width?: number;
@@ -10425,6 +10440,7 @@ type LatencyMode = "quality" | "realtime";
10425
10440
  type LockMode = "exclusive" | "shared";
10426
10441
  type MediaDecodingType = "file" | "media-source" | "webrtc";
10427
10442
  type MediaEncodingType = "record" | "webrtc";
10443
+ type MediaKeysRequirement = "not-allowed" | "optional" | "required";
10428
10444
  type NotificationDirection = "auto" | "ltr" | "rtl";
10429
10445
  type NotificationPermission = "default" | "denied" | "granted";
10430
10446
  type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu";
package/ts5.6/index.d.ts CHANGED
@@ -466,6 +466,10 @@ interface KeyAlgorithm {
466
466
  name: string;
467
467
  }
468
468
 
469
+ interface KeySystemTrackConfiguration {
470
+ robustness?: string;
471
+ }
472
+
469
473
  interface LockInfo {
470
474
  clientId?: string;
471
475
  mode?: LockMode;
@@ -485,11 +489,9 @@ interface LockOptions {
485
489
  }
486
490
 
487
491
  interface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {
488
- configuration?: MediaDecodingConfiguration;
489
492
  }
490
493
 
491
494
  interface MediaCapabilitiesEncodingInfo extends MediaCapabilitiesInfo {
492
- configuration?: MediaEncodingConfiguration;
493
495
  }
494
496
 
495
497
  interface MediaCapabilitiesInfo {
@@ -498,12 +500,23 @@ interface MediaCapabilitiesInfo {
498
500
  supported: boolean;
499
501
  }
500
502
 
503
+ interface MediaCapabilitiesKeySystemConfiguration {
504
+ audio?: KeySystemTrackConfiguration;
505
+ distinctiveIdentifier?: MediaKeysRequirement;
506
+ initDataType?: string;
507
+ keySystem: string;
508
+ persistentState?: MediaKeysRequirement;
509
+ sessionTypes?: string[];
510
+ video?: KeySystemTrackConfiguration;
511
+ }
512
+
501
513
  interface MediaConfiguration {
502
514
  audio?: AudioConfiguration;
503
515
  video?: VideoConfiguration;
504
516
  }
505
517
 
506
518
  interface MediaDecodingConfiguration extends MediaConfiguration {
519
+ keySystemConfiguration?: MediaCapabilitiesKeySystemConfiguration;
507
520
  type: MediaDecodingType;
508
521
  }
509
522
 
@@ -636,21 +649,23 @@ interface QueuingStrategyInit {
636
649
  highWaterMark: number;
637
650
  }
638
651
 
639
- interface RTCEncodedAudioFrameMetadata {
652
+ interface RTCEncodedAudioFrameMetadata extends RTCEncodedFrameMetadata {
653
+ sequenceNumber?: number;
654
+ }
655
+
656
+ interface RTCEncodedFrameMetadata {
640
657
  contributingSources?: number[];
658
+ mimeType?: string;
641
659
  payloadType?: number;
642
- sequenceNumber?: number;
660
+ rtpTimestamp?: number;
643
661
  synchronizationSource?: number;
644
662
  }
645
663
 
646
- interface RTCEncodedVideoFrameMetadata {
647
- contributingSources?: number[];
664
+ interface RTCEncodedVideoFrameMetadata extends RTCEncodedFrameMetadata {
648
665
  dependencies?: number[];
649
666
  frameId?: number;
650
667
  height?: number;
651
- payloadType?: number;
652
668
  spatialIndex?: number;
653
- synchronizationSource?: number;
654
669
  temporalIndex?: number;
655
670
  timestamp?: number;
656
671
  width?: number;
@@ -10425,6 +10440,7 @@ type LatencyMode = "quality" | "realtime";
10425
10440
  type LockMode = "exclusive" | "shared";
10426
10441
  type MediaDecodingType = "file" | "media-source" | "webrtc";
10427
10442
  type MediaEncodingType = "record" | "webrtc";
10443
+ type MediaKeysRequirement = "not-allowed" | "optional" | "required";
10428
10444
  type NotificationDirection = "auto" | "ltr" | "rtl";
10429
10445
  type NotificationPermission = "default" | "denied" | "granted";
10430
10446
  type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu";