@types/sharedworker 0.0.161 → 0.0.162

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.161 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fsharedworker%400.0.161.
31
+ You can read what changed in version 0.0.162 at https://github.com/microsoft/TypeScript-DOM-lib-generator/releases/tag/%40types%2Fsharedworker%400.0.162.
package/index.d.ts CHANGED
@@ -306,6 +306,10 @@ interface KeyAlgorithm {
306
306
  name: string;
307
307
  }
308
308
 
309
+ interface KeySystemTrackConfiguration {
310
+ robustness?: string;
311
+ }
312
+
309
313
  interface LockInfo {
310
314
  clientId?: string;
311
315
  mode?: LockMode;
@@ -325,11 +329,9 @@ interface LockOptions {
325
329
  }
326
330
 
327
331
  interface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {
328
- configuration?: MediaDecodingConfiguration;
329
332
  }
330
333
 
331
334
  interface MediaCapabilitiesEncodingInfo extends MediaCapabilitiesInfo {
332
- configuration?: MediaEncodingConfiguration;
333
335
  }
334
336
 
335
337
  interface MediaCapabilitiesInfo {
@@ -338,12 +340,23 @@ interface MediaCapabilitiesInfo {
338
340
  supported: boolean;
339
341
  }
340
342
 
343
+ interface MediaCapabilitiesKeySystemConfiguration {
344
+ audio?: KeySystemTrackConfiguration;
345
+ distinctiveIdentifier?: MediaKeysRequirement;
346
+ initDataType?: string;
347
+ keySystem: string;
348
+ persistentState?: MediaKeysRequirement;
349
+ sessionTypes?: string[];
350
+ video?: KeySystemTrackConfiguration;
351
+ }
352
+
341
353
  interface MediaConfiguration {
342
354
  audio?: AudioConfiguration;
343
355
  video?: VideoConfiguration;
344
356
  }
345
357
 
346
358
  interface MediaDecodingConfiguration extends MediaConfiguration {
359
+ keySystemConfiguration?: MediaCapabilitiesKeySystemConfiguration;
347
360
  type: MediaDecodingType;
348
361
  }
349
362
 
@@ -9138,6 +9151,7 @@ type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "u
9138
9151
  type LockMode = "exclusive" | "shared";
9139
9152
  type MediaDecodingType = "file" | "media-source" | "webrtc";
9140
9153
  type MediaEncodingType = "record" | "webrtc";
9154
+ type MediaKeysRequirement = "not-allowed" | "optional" | "required";
9141
9155
  type NotificationDirection = "auto" | "ltr" | "rtl";
9142
9156
  type NotificationPermission = "default" | "denied" | "granted";
9143
9157
  type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/sharedworker",
3
- "version": "0.0.161",
3
+ "version": "0.0.162",
4
4
  "description": "Types for the global scope of Shared Workers",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [],
package/ts5.5/index.d.ts CHANGED
@@ -306,6 +306,10 @@ interface KeyAlgorithm {
306
306
  name: string;
307
307
  }
308
308
 
309
+ interface KeySystemTrackConfiguration {
310
+ robustness?: string;
311
+ }
312
+
309
313
  interface LockInfo {
310
314
  clientId?: string;
311
315
  mode?: LockMode;
@@ -325,11 +329,9 @@ interface LockOptions {
325
329
  }
326
330
 
327
331
  interface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {
328
- configuration?: MediaDecodingConfiguration;
329
332
  }
330
333
 
331
334
  interface MediaCapabilitiesEncodingInfo extends MediaCapabilitiesInfo {
332
- configuration?: MediaEncodingConfiguration;
333
335
  }
334
336
 
335
337
  interface MediaCapabilitiesInfo {
@@ -338,12 +340,23 @@ interface MediaCapabilitiesInfo {
338
340
  supported: boolean;
339
341
  }
340
342
 
343
+ interface MediaCapabilitiesKeySystemConfiguration {
344
+ audio?: KeySystemTrackConfiguration;
345
+ distinctiveIdentifier?: MediaKeysRequirement;
346
+ initDataType?: string;
347
+ keySystem: string;
348
+ persistentState?: MediaKeysRequirement;
349
+ sessionTypes?: string[];
350
+ video?: KeySystemTrackConfiguration;
351
+ }
352
+
341
353
  interface MediaConfiguration {
342
354
  audio?: AudioConfiguration;
343
355
  video?: VideoConfiguration;
344
356
  }
345
357
 
346
358
  interface MediaDecodingConfiguration extends MediaConfiguration {
359
+ keySystemConfiguration?: MediaCapabilitiesKeySystemConfiguration;
347
360
  type: MediaDecodingType;
348
361
  }
349
362
 
@@ -9138,6 +9151,7 @@ type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "u
9138
9151
  type LockMode = "exclusive" | "shared";
9139
9152
  type MediaDecodingType = "file" | "media-source" | "webrtc";
9140
9153
  type MediaEncodingType = "record" | "webrtc";
9154
+ type MediaKeysRequirement = "not-allowed" | "optional" | "required";
9141
9155
  type NotificationDirection = "auto" | "ltr" | "rtl";
9142
9156
  type NotificationPermission = "default" | "denied" | "granted";
9143
9157
  type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu";
package/ts5.6/index.d.ts CHANGED
@@ -306,6 +306,10 @@ interface KeyAlgorithm {
306
306
  name: string;
307
307
  }
308
308
 
309
+ interface KeySystemTrackConfiguration {
310
+ robustness?: string;
311
+ }
312
+
309
313
  interface LockInfo {
310
314
  clientId?: string;
311
315
  mode?: LockMode;
@@ -325,11 +329,9 @@ interface LockOptions {
325
329
  }
326
330
 
327
331
  interface MediaCapabilitiesDecodingInfo extends MediaCapabilitiesInfo {
328
- configuration?: MediaDecodingConfiguration;
329
332
  }
330
333
 
331
334
  interface MediaCapabilitiesEncodingInfo extends MediaCapabilitiesInfo {
332
- configuration?: MediaEncodingConfiguration;
333
335
  }
334
336
 
335
337
  interface MediaCapabilitiesInfo {
@@ -338,12 +340,23 @@ interface MediaCapabilitiesInfo {
338
340
  supported: boolean;
339
341
  }
340
342
 
343
+ interface MediaCapabilitiesKeySystemConfiguration {
344
+ audio?: KeySystemTrackConfiguration;
345
+ distinctiveIdentifier?: MediaKeysRequirement;
346
+ initDataType?: string;
347
+ keySystem: string;
348
+ persistentState?: MediaKeysRequirement;
349
+ sessionTypes?: string[];
350
+ video?: KeySystemTrackConfiguration;
351
+ }
352
+
341
353
  interface MediaConfiguration {
342
354
  audio?: AudioConfiguration;
343
355
  video?: VideoConfiguration;
344
356
  }
345
357
 
346
358
  interface MediaDecodingConfiguration extends MediaConfiguration {
359
+ keySystemConfiguration?: MediaCapabilitiesKeySystemConfiguration;
347
360
  type: MediaDecodingType;
348
361
  }
349
362
 
@@ -9138,6 +9151,7 @@ type KeyUsage = "decrypt" | "deriveBits" | "deriveKey" | "encrypt" | "sign" | "u
9138
9151
  type LockMode = "exclusive" | "shared";
9139
9152
  type MediaDecodingType = "file" | "media-source" | "webrtc";
9140
9153
  type MediaEncodingType = "record" | "webrtc";
9154
+ type MediaKeysRequirement = "not-allowed" | "optional" | "required";
9141
9155
  type NotificationDirection = "auto" | "ltr" | "rtl";
9142
9156
  type NotificationPermission = "default" | "denied" | "granted";
9143
9157
  type OffscreenRenderingContextId = "2d" | "bitmaprenderer" | "webgl" | "webgl2" | "webgpu";