@webref/idl 3.18.2 → 3.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -28,11 +28,12 @@ interface PressureObserver {
28
28
  [Exposed=Window] static Promise<PermissionState> requestPermission();
29
29
  };
30
30
 
31
- dictionary PressureRecord {
32
- PressureSource source;
33
- PressureState state;
34
- sequence<PressureFactor> factors;
35
- DOMHighResTimeStamp time;
31
+ [Exposed=(DedicatedWorker,SharedWorker,Window), SecureContext]
32
+ interface PressureRecord {
33
+ readonly attribute PressureSource source;
34
+ readonly attribute PressureState state;
35
+ readonly attribute FrozenArray<PressureFactor> factors;
36
+ readonly attribute DOMHighResTimeStamp time;
36
37
  };
37
38
 
38
39
  dictionary PressureObserverOptions {
@@ -1,20 +1,20 @@
1
1
  // GENERATED CONTENT - DO NOT EDIT
2
2
  // Content was automatically extracted by Reffy into webref
3
3
  // (https://github.com/w3c/webref)
4
- // Source: CSS Shared Element Transitions Module Level 1 (https://drafts.csswg.org/css-shared-element-transitions-1/)
4
+ // Source: CSS View Transitions Module Level 1 (https://drafts.csswg.org/css-view-transitions-1/)
5
5
 
6
6
  partial interface Document {
7
- DOMTransition createTransition(DOMTransitionInit init);
7
+ ViewTransition createTransition(ViewTransitionInit init);
8
8
  };
9
9
 
10
- dictionary DOMTransitionInit {
10
+ dictionary ViewTransitionInit {
11
11
  required UpdateDOMCallback updateDOM;
12
12
  };
13
13
 
14
14
  callback UpdateDOMCallback = Promise<any> ();
15
15
 
16
16
  [Exposed=Window]
17
- interface DOMTransition {
17
+ interface ViewTransition {
18
18
  undefined skipTransition();
19
19
  readonly attribute Promise<undefined> finished;
20
20
  readonly attribute Promise<undefined> ready;
package/fs.idl CHANGED
@@ -75,7 +75,7 @@ interface FileSystemWritableFileStream : WritableStream {
75
75
  };
76
76
 
77
77
  dictionary FileSystemReadWriteOptions {
78
- [EnforceRange] required unsigned long long at;
78
+ [EnforceRange] unsigned long long at = 0;
79
79
  };
80
80
 
81
81
  [Exposed=DedicatedWorker, SecureContext]
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@webref/idl",
3
3
  "description": "Web IDL definitions of the web platform",
4
- "version": "3.18.2",
4
+ "version": "3.20.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/w3c/webref.git"
@@ -7,10 +7,15 @@ partial interface MediaDevices {
7
7
  Promise<MediaStream> getDisplayMedia(optional DisplayMediaStreamOptions options = {});
8
8
  };
9
9
 
10
+ enum CaptureStartFocusBehavior {
11
+ "focus-captured-surface",
12
+ "no-focus-change"
13
+ };
14
+
10
15
  [Exposed=Window, SecureContext]
11
16
  interface CaptureController {
12
17
  constructor();
13
- // TODO: Add setFocusBehavior() in a separate PR.
18
+ undefined setFocusBehavior(CaptureStartFocusBehavior focusBehavior);
14
19
  };
15
20
 
16
21
  enum SelfCapturePreferenceEnum {
@@ -31,7 +36,7 @@ enum SurfaceSwitchingPreferenceEnum {
31
36
  dictionary DisplayMediaStreamOptions {
32
37
  (boolean or MediaTrackConstraints) video = true;
33
38
  (boolean or MediaTrackConstraints) audio = false;
34
- CaptureController controller = null;
39
+ CaptureController controller;
35
40
  SelfCapturePreferenceEnum selfBrowserSurface;
36
41
  SystemAudioPreferenceEnum systemAudio;
37
42
  SurfaceSwitchingPreferenceEnum surfaceSwitching;
package/webaudio.idl CHANGED
@@ -64,16 +64,23 @@ enum AudioContextLatencyCategory {
64
64
  "playback"
65
65
  };
66
66
 
67
+ enum AudioSinkType {
68
+ "none"
69
+ };
70
+
67
71
  [Exposed=Window]
68
72
  interface AudioContext : BaseAudioContext {
69
73
  constructor (optional AudioContextOptions contextOptions = {});
70
74
  readonly attribute double baseLatency;
71
75
  readonly attribute double outputLatency;
76
+ [SecureContext] readonly attribute (DOMString or AudioSinkInfo) sinkId;
72
77
  [SecureContext] readonly attribute AudioRenderCapacity renderCapacity;
78
+ attribute EventHandler onsinkchange;
73
79
  AudioTimestamp getOutputTimestamp ();
74
80
  Promise<undefined> resume ();
75
81
  Promise<undefined> suspend ();
76
82
  Promise<undefined> close ();
83
+ [SecureContext] Promise<undefined> setSinkId ((DOMString or AudioSinkOptions) sinkId);
77
84
  MediaElementAudioSourceNode createMediaElementSource (HTMLMediaElement mediaElement);
78
85
  MediaStreamAudioSourceNode createMediaStreamSource (MediaStream mediaStream);
79
86
  MediaStreamTrackAudioSourceNode createMediaStreamTrackSource (
@@ -84,6 +91,16 @@ interface AudioContext : BaseAudioContext {
84
91
  dictionary AudioContextOptions {
85
92
  (AudioContextLatencyCategory or double) latencyHint = "interactive";
86
93
  float sampleRate;
94
+ (DOMString or AudioSinkOptions) sinkId;
95
+ };
96
+
97
+ dictionary AudioSinkOptions {
98
+ required AudioSinkType type;
99
+ };
100
+
101
+ [Exposed=Window]
102
+ interface AudioSinkInfo {
103
+ readonly attribute AudioSinkType type;
87
104
  };
88
105
 
89
106
  dictionary AudioTimestamp {
package/webauthn.idl CHANGED
@@ -125,6 +125,7 @@ interface AuthenticatorAssertionResponse : AuthenticatorResponse {
125
125
  [SameObject] readonly attribute ArrayBuffer authenticatorData;
126
126
  [SameObject] readonly attribute ArrayBuffer signature;
127
127
  [SameObject] readonly attribute ArrayBuffer? userHandle;
128
+ [SameObject] readonly attribute ArrayBuffer? attestationObject;
128
129
  };
129
130
 
130
131
  dictionary PublicKeyCredentialParameters {
@@ -143,6 +144,7 @@ dictionary PublicKeyCredentialCreationOptions {
143
144
  sequence<PublicKeyCredentialDescriptor> excludeCredentials = [];
144
145
  AuthenticatorSelectionCriteria authenticatorSelection;
145
146
  DOMString attestation = "none";
147
+ sequence<DOMString> attestationFormats = [];
146
148
  AuthenticationExtensionsClientInputs extensions;
147
149
  };
148
150
 
@@ -190,6 +192,8 @@ dictionary PublicKeyCredentialRequestOptions {
190
192
  USVString rpId;
191
193
  sequence<PublicKeyCredentialDescriptor> allowCredentials = [];
192
194
  DOMString userVerification = "preferred";
195
+ DOMString attestation = "none";
196
+ sequence<DOMString> attestationFormats = [];
193
197
  AuthenticationExtensionsClientInputs extensions;
194
198
  };
195
199
 
@@ -325,3 +329,21 @@ typedef sequence<UvmEntry> UvmEntries;
325
329
  partial dictionary AuthenticationExtensionsClientOutputs {
326
330
  UvmEntries uvm;
327
331
  };
332
+
333
+ dictionary AuthenticationExtensionsDevicePublicKeyInputs {
334
+ DOMString attestation = "none";
335
+ sequence<DOMString> attestationFormats = [];
336
+ };
337
+
338
+ partial dictionary AuthenticationExtensionsClientInputs {
339
+ AuthenticationExtensionsDevicePublicKeyInputs devicePubKey;
340
+ };
341
+
342
+ dictionary AuthenticationExtensionsDevicePublicKeyOutputs {
343
+ ArrayBuffer authenticatorOutput;
344
+ ArrayBuffer signature;
345
+ };
346
+
347
+ partial dictionary AuthenticationExtensionsClientOutputs {
348
+ AuthenticationExtensionsDevicePublicKeyOutputs devicePubKey;
349
+ };
@@ -0,0 +1,17 @@
1
+ // GENERATED CONTENT - DO NOT EDIT
2
+ // Content was automatically extracted by Reffy into webref
3
+ // (https://github.com/w3c/webref)
4
+ // Source: AAC WebCodecs Registration (https://w3c.github.io/webcodecs/aac_codec_registration.html)
5
+
6
+ partial dictionary AudioEncoderConfig {
7
+ AacEncoderConfig aac;
8
+ };
9
+
10
+ dictionary AacEncoderConfig {
11
+ AacBitstreamFormat format = "aac";
12
+ };
13
+
14
+ enum AacBitstreamFormat {
15
+ "aac",
16
+ "adts",
17
+ };
@@ -0,0 +1,17 @@
1
+ // GENERATED CONTENT - DO NOT EDIT
2
+ // Content was automatically extracted by Reffy into webref
3
+ // (https://github.com/w3c/webref)
4
+ // Source: AVC (H.264) WebCodecs Registration (https://w3c.github.io/webcodecs/avc_codec_registration.html)
5
+
6
+ partial dictionary VideoEncoderConfig {
7
+ AvcEncoderConfig avc;
8
+ };
9
+
10
+ dictionary AvcEncoderConfig {
11
+ AvcBitstreamFormat format = "avc";
12
+ };
13
+
14
+ enum AvcBitstreamFormat {
15
+ "annexb",
16
+ "avc",
17
+ };
@@ -0,0 +1,17 @@
1
+ // GENERATED CONTENT - DO NOT EDIT
2
+ // Content was automatically extracted by Reffy into webref
3
+ // (https://github.com/w3c/webref)
4
+ // Source: HEVC (H.265) WebCodecs Registration (https://w3c.github.io/webcodecs/hevc_codec_registration.html)
5
+
6
+ partial dictionary VideoEncoderConfig {
7
+ HevcEncoderConfig hevc;
8
+ };
9
+
10
+ dictionary HevcEncoderConfig {
11
+ HevcBitstreamFormat format = "hevc";
12
+ };
13
+
14
+ enum HevcBitstreamFormat {
15
+ "annexb",
16
+ "hevc",
17
+ };
@@ -0,0 +1,18 @@
1
+ // GENERATED CONTENT - DO NOT EDIT
2
+ // Content was automatically extracted by Reffy into webref
3
+ // (https://github.com/w3c/webref)
4
+ // Source: Opus WebCodecs Registration (https://w3c.github.io/webcodecs/opus_codec_registration.html)
5
+
6
+ partial dictionary AudioEncoderConfig {
7
+ OpusEncoderConfig opus;
8
+ };
9
+
10
+ dictionary OpusEncoderConfig {
11
+ OpusBitstreamFormat format = "opus";
12
+ [EnforceRange] unsigned long frameDuration;
13
+ };
14
+
15
+ enum OpusBitstreamFormat {
16
+ "opus",
17
+ "ogg",
18
+ };
package/webcodecs.idl CHANGED
@@ -146,7 +146,7 @@ dictionary AudioDecoderConfig {
146
146
 
147
147
  dictionary VideoDecoderConfig {
148
148
  required DOMString codec;
149
- BufferSource description;
149
+ [AllowShared] BufferSource description;
150
150
  [EnforceRange] unsigned long codedWidth;
151
151
  [EnforceRange] unsigned long codedHeight;
152
152
  [EnforceRange] unsigned long displayAspectWidth;
@@ -206,7 +206,7 @@ enum CodecState {
206
206
 
207
207
  callback WebCodecsErrorCallback = undefined(DOMException error);
208
208
 
209
- [Exposed=(Window,DedicatedWorker)]
209
+ [Exposed=(Window,DedicatedWorker), Serializable]
210
210
  interface EncodedAudioChunk {
211
211
  constructor(EncodedAudioChunkInit init);
212
212
  readonly attribute EncodedAudioChunkType type;
@@ -229,7 +229,7 @@ enum EncodedAudioChunkType {
229
229
  "delta",
230
230
  };
231
231
 
232
- [Exposed=(Window,DedicatedWorker)]
232
+ [Exposed=(Window,DedicatedWorker), Serializable]
233
233
  interface EncodedVideoChunk {
234
234
  constructor(EncodedVideoChunkInit init);
235
235
  readonly attribute EncodedVideoChunkType type;
@@ -244,7 +244,7 @@ dictionary EncodedVideoChunkInit {
244
244
  required EncodedVideoChunkType type;
245
245
  [EnforceRange] required long long timestamp; // microseconds
246
246
  [EnforceRange] unsigned long long duration; // microseconds
247
- required BufferSource data;
247
+ required [AllowShared] BufferSource data;
248
248
  };
249
249
 
250
250
  enum EncodedVideoChunkType {
@@ -400,29 +400,35 @@ interface VideoColorSpace {
400
400
  };
401
401
 
402
402
  dictionary VideoColorSpaceInit {
403
- VideoColorPrimaries primaries;
404
- VideoTransferCharacteristics transfer;
405
- VideoMatrixCoefficients matrix;
406
- boolean fullRange;
403
+ VideoColorPrimaries? primaries;
404
+ VideoTransferCharacteristics? transfer;
405
+ VideoMatrixCoefficients? matrix;
406
+ boolean? fullRange;
407
407
  };
408
408
 
409
409
  enum VideoColorPrimaries {
410
- "bt709", // BT.709, sRGB
411
- "bt470bg", // BT.601 PAL
412
- "smpte170m", // BT.601 NTSC
410
+ "bt709",
411
+ "bt470bg",
412
+ "smpte170m",
413
+ "bt2020",
414
+ "smpte432",
413
415
  };
414
416
 
415
417
  enum VideoTransferCharacteristics {
416
- "bt709", // BT.709
417
- "smpte170m", // BT.601 (functionally the same as bt709)
418
- "iec61966-2-1", // sRGB
418
+ "bt709",
419
+ "smpte170m",
420
+ "iec61966-2-1",
421
+ "linear",
422
+ "pq",
423
+ "hlg",
419
424
  };
420
425
 
421
426
  enum VideoMatrixCoefficients {
422
- "rgb", // sRGB
423
- "bt709", // BT.709
424
- "bt470bg", // BT.601 PAL
425
- "smpte170m", // BT.601 NTSC (functionally the same as bt470bg)
427
+ "rgb",
428
+ "bt709",
429
+ "bt470bg",
430
+ "smpte170m",
431
+ "bt2020-ncl",
426
432
  };
427
433
 
428
434
  [Exposed=(Window,DedicatedWorker), SecureContext]
package/webrtc-stats.idl CHANGED
@@ -42,7 +42,6 @@ dictionary RTCReceivedRtpStreamStats : RTCRtpStreamStats {
42
42
  unsigned long long packetsReceived;
43
43
  long long packetsLost;
44
44
  double jitter;
45
- unsigned long framesDropped;
46
45
  };
47
46
 
48
47
  dictionary RTCInboundRtpStreamStats : RTCReceivedRtpStreamStats {
@@ -52,6 +51,7 @@ dictionary RTCInboundRtpStreamStats : RTCReceivedRtpStreamStats {
52
51
  DOMString remoteId;
53
52
  unsigned long framesDecoded;
54
53
  unsigned long keyFramesDecoded;
54
+ unsigned long framesDropped;
55
55
  unsigned long frameWidth;
56
56
  unsigned long frameHeight;
57
57
  double framesPerSecond;
@@ -59,6 +59,10 @@ dictionary RTCInboundRtpStreamStats : RTCReceivedRtpStreamStats {
59
59
  double totalDecodeTime;
60
60
  double totalInterFrameDelay;
61
61
  double totalSquaredInterFrameDelay;
62
+ unsigned long pauseCount;
63
+ double totalPausesDuration;
64
+ unsigned long freezeCount;
65
+ double totalFreezesDuration;
62
66
  DOMHighResTimeStamp lastPacketReceivedTimestamp;
63
67
  unsigned long long headerBytesReceived;
64
68
  unsigned long long packetsDiscarded;
@@ -87,6 +91,8 @@ dictionary RTCInboundRtpStreamStats : RTCReceivedRtpStreamStats {
87
91
  DOMString decoderImplementation;
88
92
  DOMString playoutId;
89
93
  boolean powerEfficientDecoder;
94
+ unsigned long framesAssembledFromMultiplePackets;
95
+ double totalAssemblyTime;
90
96
  };
91
97
 
92
98
  dictionary RTCRemoteInboundRtpStreamStats : RTCReceivedRtpStreamStats {
@@ -231,6 +237,11 @@ dictionary RTCIceCandidateStats : RTCStats {
231
237
  long priority;
232
238
  DOMString url;
233
239
  RTCIceServerTransportProtocol relayProtocol;
240
+ DOMString foundation;
241
+ DOMString relatedAddress;
242
+ long relatedPort;
243
+ DOMString usernameFragment;
244
+ RTCIceTcpCandidateType tcpType;
234
245
  };
235
246
 
236
247
  dictionary RTCIceCandidatePairStats : RTCStats {
package/webrtc.idl CHANGED
@@ -316,6 +316,7 @@ dictionary RTCRtpCodingParameters {
316
316
  dictionary RTCRtpEncodingParameters : RTCRtpCodingParameters {
317
317
  boolean active = true;
318
318
  unsigned long maxBitrate;
319
+ double maxFramerate;
319
320
  double scaleResolutionDownBy;
320
321
  };
321
322
 
package/webtransport.idl CHANGED
@@ -113,8 +113,8 @@ dictionary WebTransportReceiveStreamStats {
113
113
 
114
114
  [Exposed=(Window,Worker), SecureContext]
115
115
  interface WebTransportBidirectionalStream {
116
- readonly attribute ReadableStream readable;
117
- readonly attribute WritableStream writable;
116
+ readonly attribute WebTransportReceiveStream readable;
117
+ readonly attribute WebTransportSendStream writable;
118
118
  };
119
119
 
120
120
  [Exposed=(Window,Worker), SecureContext]