@webref/idl 3.7.2 → 3.10.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/FedCM.idl +40 -0
- package/html.idl +6 -11
- package/mediacapture-viewport.idl +9 -0
- package/package.json +1 -1
- package/webaudio.idl +28 -0
- package/webgpu.idl +1 -1
- package/webnn.idl +49 -13
- package/webrtc-stats.idl +7 -0
- package/webtransport.idl +25 -2
- package/window-placement.idl +42 -0
- package/origin-policy.idl +0 -8
package/FedCM.idl
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// GENERATED CONTENT - DO NOT EDIT
|
|
2
|
+
// Content was automatically extracted by Reffy into webref
|
|
3
|
+
// (https://github.com/w3c/webref)
|
|
4
|
+
// Source: Federated Credential Management API (https://fedidcg.github.io/FedCM/)
|
|
5
|
+
|
|
6
|
+
[Exposed=Window, SecureContext]
|
|
7
|
+
dictionary FederatedAccountLoginRequest {
|
|
8
|
+
AbortSignal signal;
|
|
9
|
+
USVString nonce;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
[Exposed=Window, SecureContext]
|
|
13
|
+
partial interface FederatedCredential {
|
|
14
|
+
Promise<FederatedTokens> login(optional FederatedAccountLoginRequest request = {});
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
[Exposed=Window, SecureContext]
|
|
18
|
+
dictionary FederatedTokens {
|
|
19
|
+
USVString idToken;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
[Exposed=Window, SecureContext]
|
|
23
|
+
partial interface FederatedCredential {
|
|
24
|
+
Promise<undefined> revoke(USVString hint);
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
[Exposed=Window, SecureContext]
|
|
28
|
+
partial interface FederatedCredential {
|
|
29
|
+
Promise<undefined> logout();
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
dictionary FederatedCredentialLogoutRpsRequest {
|
|
33
|
+
required USVString url;
|
|
34
|
+
required USVString accountId;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
[Exposed=Window, SecureContext]
|
|
38
|
+
partial interface FederatedCredential {
|
|
39
|
+
static Promise<undefined> logoutRPs(sequence<FederatedCredentialLogoutRpsRequest> logoutRequests);
|
|
40
|
+
};
|
package/html.idl
CHANGED
|
@@ -496,16 +496,6 @@ interface HTMLObjectElement : HTMLElement {
|
|
|
496
496
|
// also has obsolete members
|
|
497
497
|
};
|
|
498
498
|
|
|
499
|
-
[Exposed=Window]
|
|
500
|
-
interface HTMLParamElement : HTMLElement {
|
|
501
|
-
[HTMLConstructor] constructor();
|
|
502
|
-
|
|
503
|
-
[CEReactions] attribute DOMString name;
|
|
504
|
-
[CEReactions] attribute DOMString value;
|
|
505
|
-
|
|
506
|
-
// also has obsolete members
|
|
507
|
-
};
|
|
508
|
-
|
|
509
499
|
[Exposed=Window]
|
|
510
500
|
interface HTMLVideoElement : HTMLMediaElement {
|
|
511
501
|
[HTMLConstructor] constructor();
|
|
@@ -2593,7 +2583,12 @@ partial interface HTMLParagraphElement {
|
|
|
2593
2583
|
[CEReactions] attribute DOMString align;
|
|
2594
2584
|
};
|
|
2595
2585
|
|
|
2596
|
-
|
|
2586
|
+
[Exposed=Window]
|
|
2587
|
+
interface HTMLParamElement : HTMLElement {
|
|
2588
|
+
[HTMLConstructor] constructor();
|
|
2589
|
+
|
|
2590
|
+
[CEReactions] attribute DOMString name;
|
|
2591
|
+
[CEReactions] attribute DOMString value;
|
|
2597
2592
|
[CEReactions] attribute DOMString type;
|
|
2598
2593
|
[CEReactions] attribute DOMString valueType;
|
|
2599
2594
|
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// GENERATED CONTENT - DO NOT EDIT
|
|
2
|
+
// Content was automatically extracted by Reffy into webref
|
|
3
|
+
// (https://github.com/w3c/webref)
|
|
4
|
+
// Source: Viewport Capture (https://w3c.github.io/mediacapture-viewport/)
|
|
5
|
+
|
|
6
|
+
partial interface MediaDevices {
|
|
7
|
+
Promise<MediaStream> getViewportMedia(
|
|
8
|
+
optional DisplayMediaStreamConstraints constraints = {});
|
|
9
|
+
};
|
package/package.json
CHANGED
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,33 @@ dictionary AudioTimestamp {
|
|
|
90
91
|
DOMHighResTimeStamp performanceTime;
|
|
91
92
|
};
|
|
92
93
|
|
|
94
|
+
[Exposed=Window]
|
|
95
|
+
interface AudioRenderCapacity : EventTarget {
|
|
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 : Event {
|
|
107
|
+
constructor (DOMString type, optional AudioRenderCapacityEventInit eventInitDict = {});
|
|
108
|
+
readonly attribute double timestamp;
|
|
109
|
+
readonly attribute double averageLoad;
|
|
110
|
+
readonly attribute double peakLoad;
|
|
111
|
+
readonly attribute double underrunRatio;
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
dictionary AudioRenderCapacityEventInit : EventInit {
|
|
115
|
+
double timestamp = 0;
|
|
116
|
+
double averageLoad = 0;
|
|
117
|
+
double peakLoad = 0;
|
|
118
|
+
double underrunRatio = 0;
|
|
119
|
+
};
|
|
120
|
+
|
|
93
121
|
[Exposed=Window]
|
|
94
122
|
interface OfflineAudioContext : BaseAudioContext {
|
|
95
123
|
constructor(OfflineAudioContextOptions contextOptions);
|
package/webgpu.idl
CHANGED
package/webnn.idl
CHANGED
|
@@ -9,10 +9,9 @@ interface mixin NavigatorML {
|
|
|
9
9
|
Navigator includes NavigatorML;
|
|
10
10
|
WorkerNavigator includes NavigatorML;
|
|
11
11
|
|
|
12
|
-
enum
|
|
13
|
-
"
|
|
14
|
-
"gpu"
|
|
15
|
-
"cpu"
|
|
12
|
+
enum MLDeviceType {
|
|
13
|
+
"cpu",
|
|
14
|
+
"gpu"
|
|
16
15
|
};
|
|
17
16
|
|
|
18
17
|
enum MLPowerPreference {
|
|
@@ -22,20 +21,43 @@ enum MLPowerPreference {
|
|
|
22
21
|
};
|
|
23
22
|
|
|
24
23
|
dictionary MLContextOptions {
|
|
25
|
-
|
|
24
|
+
MLDeviceType deviceType = "cpu";
|
|
26
25
|
MLPowerPreference powerPreference = "default";
|
|
27
26
|
};
|
|
28
27
|
|
|
29
28
|
[SecureContext, Exposed=(Window, DedicatedWorker)]
|
|
30
29
|
interface ML {
|
|
31
30
|
MLContext createContext(optional MLContextOptions options = {});
|
|
32
|
-
MLContext createContext(WebGLRenderingContext glContext);
|
|
33
31
|
MLContext createContext(GPUDevice gpuDevice);
|
|
32
|
+
MLContext createContext(WebGLRenderingContext glContext);
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
dictionary MLArrayInput {
|
|
36
|
+
required ArrayBufferView resource;
|
|
37
|
+
required sequence<long> dimensions;
|
|
34
38
|
};
|
|
35
39
|
|
|
40
|
+
typedef record<DOMString, (ArrayBufferView or MLArrayInput)> MLNamedArrayInputs;
|
|
41
|
+
typedef record<DOMString, ArrayBufferView> MLNamedArrayOutputs;
|
|
42
|
+
|
|
36
43
|
[SecureContext, Exposed=(Window, DedicatedWorker)]
|
|
37
44
|
interface MLContext {};
|
|
38
45
|
|
|
46
|
+
partial interface MLContext {
|
|
47
|
+
[Exposed=(DedicatedWorker)]
|
|
48
|
+
undefined compute(MLGraph graph, MLNamedArrayInputs inputs, MLNamedArrayOutputs outputs);
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
partial interface MLContext {
|
|
52
|
+
Promise<undefined> computeAsync(MLGraph graph, MLNamedArrayInputs inputs,
|
|
53
|
+
|
|
54
|
+
MLNamedArrayOutputs outputs);
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
partial interface MLContext {
|
|
58
|
+
MLCommandEncoder createCommandEncoder();
|
|
59
|
+
};
|
|
60
|
+
|
|
39
61
|
enum MLInputOperandLayout {
|
|
40
62
|
"nchw",
|
|
41
63
|
"nhwc"
|
|
@@ -90,6 +112,7 @@ interface MLGraphBuilder {
|
|
|
90
112
|
MLOperand constant(double value, optional MLOperandType type = "float32");
|
|
91
113
|
|
|
92
114
|
// Compile the graph up to the specified output operands
|
|
115
|
+
[Exposed=(DedicatedWorker)]
|
|
93
116
|
MLGraph build(MLNamedOperands outputs);
|
|
94
117
|
};
|
|
95
118
|
|
|
@@ -454,17 +477,30 @@ partial interface MLGraphBuilder {
|
|
|
454
477
|
MLOperand transpose(MLOperand input, optional MLTransposeOptions options = {});
|
|
455
478
|
};
|
|
456
479
|
|
|
457
|
-
|
|
480
|
+
[SecureContext, Exposed=(Window, DedicatedWorker)]
|
|
481
|
+
interface MLGraph {};
|
|
482
|
+
|
|
483
|
+
typedef (GPUBuffer or GPUTexture) MLGPUResource;
|
|
458
484
|
|
|
459
|
-
dictionary
|
|
460
|
-
required
|
|
485
|
+
dictionary MLGPUInput {
|
|
486
|
+
required MLGPUResource resource;
|
|
461
487
|
required sequence<long> dimensions;
|
|
462
488
|
};
|
|
463
489
|
|
|
464
|
-
typedef record<DOMString, (
|
|
465
|
-
typedef record<DOMString,
|
|
490
|
+
typedef record<DOMString, (MLGPUResource or MLGPUInput)> MLNamedGPUInputs;
|
|
491
|
+
typedef record<DOMString, MLGPUResource> MLNamedGPUOutputs;
|
|
466
492
|
|
|
467
493
|
[SecureContext, Exposed=(Window, DedicatedWorker)]
|
|
468
|
-
interface
|
|
469
|
-
|
|
494
|
+
interface MLCommandEncoder {};
|
|
495
|
+
|
|
496
|
+
partial interface MLCommandEncoder {
|
|
497
|
+
undefined initializeGraph(MLGraph graph);
|
|
498
|
+
};
|
|
499
|
+
|
|
500
|
+
partial interface MLCommandEncoder {
|
|
501
|
+
undefined dispatch(MLGraph graph, MLNamedGPUInputs inputs, MLNamedGPUOutputs outputs);
|
|
502
|
+
};
|
|
503
|
+
|
|
504
|
+
partial interface MLCommandEncoder {
|
|
505
|
+
GPUCommandBuffer finish(optional GPUCommandBufferDescriptor descriptor = {});
|
|
470
506
|
};
|
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<
|
|
35
|
-
/* a ReadableStream of
|
|
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;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
// GENERATED CONTENT - DO NOT EDIT
|
|
2
|
+
// Content was automatically extracted by Reffy into webref
|
|
3
|
+
// (https://github.com/w3c/webref)
|
|
4
|
+
// Source: Multi-Screen Window Placement (https://w3c.github.io/window-placement/)
|
|
5
|
+
|
|
6
|
+
partial interface Screen /* : EventTarget */ {
|
|
7
|
+
[SecureContext]
|
|
8
|
+
readonly attribute boolean isExtended;
|
|
9
|
+
|
|
10
|
+
[SecureContext]
|
|
11
|
+
attribute EventHandler onchange;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
partial interface Window {
|
|
15
|
+
[SecureContext]
|
|
16
|
+
Promise<ScreenDetails> getScreenDetails();
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
[Exposed=Window, SecureContext]
|
|
20
|
+
interface ScreenDetails : EventTarget {
|
|
21
|
+
readonly attribute FrozenArray<ScreenDetailed> screens;
|
|
22
|
+
readonly attribute ScreenDetailed currentScreen;
|
|
23
|
+
|
|
24
|
+
attribute EventHandler onscreenschange;
|
|
25
|
+
attribute EventHandler oncurrentscreenchange;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
[Exposed=Window, SecureContext]
|
|
29
|
+
interface ScreenDetailed : Screen {
|
|
30
|
+
readonly attribute long availLeft;
|
|
31
|
+
readonly attribute long availTop;
|
|
32
|
+
readonly attribute long left;
|
|
33
|
+
readonly attribute long top;
|
|
34
|
+
readonly attribute boolean isPrimary;
|
|
35
|
+
readonly attribute boolean isInternal;
|
|
36
|
+
readonly attribute float devicePixelRatio;
|
|
37
|
+
readonly attribute DOMString label;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
partial dictionary FullscreenOptions {
|
|
41
|
+
ScreenDetailed screen;
|
|
42
|
+
};
|
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
|
-
};
|