@webref/idl 3.8.0 → 3.9.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.
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.8.0",
4
+ "version": "3.9.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/w3c/webref.git"
package/webaudio.idl CHANGED
@@ -69,6 +69,7 @@ interface AudioContext : BaseAudioContext {
69
69
  constructor (optional AudioContextOptions contextOptions = {});
70
70
  readonly attribute double baseLatency;
71
71
  readonly attribute double outputLatency;
72
+ [SecureContext] readonly attribute AudioRenderCapacity renderCapacity;
72
73
  AudioTimestamp getOutputTimestamp ();
73
74
  Promise<undefined> resume ();
74
75
  Promise<undefined> suspend ();
@@ -90,6 +91,27 @@ dictionary AudioTimestamp {
90
91
  DOMHighResTimeStamp performanceTime;
91
92
  };
92
93
 
94
+ [Exposed=Window]
95
+ interface AudioRenderCapacity {
96
+ undefined start(optional AudioRenderCapacityOptions options = {});
97
+ undefined stop();
98
+ attribute EventHandler onupdate;
99
+ };
100
+
101
+ dictionary AudioRenderCapacityOptions {
102
+ double updateInterval = 1;
103
+ };
104
+
105
+ [Exposed=Window]
106
+ interface AudioRenderCapacityEvent {
107
+ constructor (DOMString type, double timestamp, double averageLoad,
108
+ double peakLoad, double underrunRatio);
109
+ readonly attribute double timestamp;
110
+ readonly attribute double averageLoad;
111
+ readonly attribute double peakLoad;
112
+ readonly attribute double underrunRatio;
113
+ };
114
+
93
115
  [Exposed=Window]
94
116
  interface OfflineAudioContext : BaseAudioContext {
95
117
  constructor(OfflineAudioContextOptions contextOptions);
package/webgpu.idl CHANGED
@@ -4,7 +4,7 @@
4
4
  // Source: WebGPU (https://gpuweb.github.io/gpuweb/)
5
5
 
6
6
  interface mixin GPUObjectBase {
7
- attribute (USVString or undefined) label;
7
+ attribute USVString label;
8
8
  };
9
9
 
10
10
  dictionary GPUObjectDescriptorBase {
package/webrtc-stats.idl CHANGED
@@ -283,11 +283,18 @@ dictionary RTCTransportStats : RTCStats {
283
283
  DOMString remoteCertificateId;
284
284
  DOMString tlsVersion;
285
285
  DOMString dtlsCipher;
286
+ RTCDtlsRole dtlsRole;
286
287
  DOMString srtpCipher;
287
288
  DOMString tlsGroup;
288
289
  unsigned long selectedCandidatePairChanges;
289
290
  };
290
291
 
292
+ enum RTCDtlsRole {
293
+ "client",
294
+ "server",
295
+ "unknown",
296
+ };
297
+
291
298
  dictionary RTCSctpTransportStats : RTCStats {
292
299
  DOMString transportId;
293
300
  double smoothedRoundTripTime;
package/webtransport.idl CHANGED
@@ -31,8 +31,8 @@ interface WebTransport {
31
31
  /* a ReadableStream of WebTransportBidirectionalStream objects */
32
32
  readonly attribute ReadableStream incomingBidirectionalStreams;
33
33
 
34
- Promise<WritableStream> createUnidirectionalStream();
35
- /* a ReadableStream of ReceiveStreams */
34
+ Promise<WebTransportSendStream> createUnidirectionalStream();
35
+ /* a ReadableStream of WebTransportReceiveStream objects */
36
36
  readonly attribute ReadableStream incomingUnidirectionalStreams;
37
37
  };
38
38
 
@@ -80,6 +80,29 @@ dictionary WebTransportDatagramStats {
80
80
  unsigned long long lostOutgoing;
81
81
  };
82
82
 
83
+ [Exposed=(Window,Worker), SecureContext]
84
+ interface WebTransportSendStream : WritableStream {
85
+ Promise<WebTransportSendStreamStats> getStats();
86
+ };
87
+
88
+ dictionary WebTransportSendStreamStats {
89
+ DOMHighResTimeStamp timestamp;
90
+ unsigned long long bytesWritten;
91
+ unsigned long long bytesSent;
92
+ unsigned long long bytesAcknowledged;
93
+ };
94
+
95
+ [Exposed=(Window,Worker), SecureContext]
96
+ interface WebTransportReceiveStream : ReadableStream {
97
+ Promise<WebTransportReceiveStreamStats> getStats();
98
+ };
99
+
100
+ dictionary WebTransportReceiveStreamStats {
101
+ DOMHighResTimeStamp timestamp;
102
+ unsigned long long bytesReceived;
103
+ unsigned long long bytesRead;
104
+ };
105
+
83
106
  [Exposed=(Window,Worker), SecureContext]
84
107
  interface WebTransportBidirectionalStream {
85
108
  readonly attribute ReadableStream readable;
package/origin-policy.idl DELETED
@@ -1,8 +0,0 @@
1
- // GENERATED CONTENT - DO NOT EDIT
2
- // Content was automatically extracted by Reffy into webref
3
- // (https://github.com/w3c/webref)
4
- // Source: Origin Policy (https://wicg.github.io/origin-policy/)
5
-
6
- partial interface mixin WindowOrWorkerGlobalScope {
7
- readonly attribute FrozenArray<DOMString> originPolicyIds;
8
- };