@webref/idl 3.41.3 → 3.42.1

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 CHANGED
@@ -18,11 +18,20 @@ partial interface Navigator {
18
18
  [SecureContext] readonly attribute NavigatorLogin login;
19
19
  };
20
20
 
21
+ dictionary IdentityCredentialDisconnectOptions : IdentityProviderConfig {
22
+ required USVString accountHint;
23
+ };
24
+
21
25
  [Exposed=Window, SecureContext]
22
26
  interface IdentityCredential : Credential {
27
+ static Promise<undefined> disconnect(optional IdentityCredentialDisconnectOptions options = {});
23
28
  readonly attribute USVString? token;
24
29
  };
25
30
 
31
+ dictionary DisconnectedAccount {
32
+ required USVString account_id;
33
+ };
34
+
26
35
  partial dictionary CredentialRequestOptions {
27
36
  IdentityCredentialRequestOptions identity;
28
37
  };
@@ -35,13 +44,16 @@ enum IdentityCredentialRequestOptionsContext {
35
44
  };
36
45
 
37
46
  dictionary IdentityCredentialRequestOptions {
38
- required sequence<IdentityProviderConfig> providers;
47
+ required sequence<IdentityProviderRequestOptions> providers;
39
48
  IdentityCredentialRequestOptionsContext context = "signin";
40
49
  };
41
50
 
42
51
  dictionary IdentityProviderConfig {
43
52
  required USVString configURL;
44
53
  required USVString clientId;
54
+ };
55
+
56
+ dictionary IdentityProviderRequestOptions : IdentityProviderConfig {
45
57
  USVString nonce;
46
58
  DOMString loginHint;
47
59
  };
@@ -67,6 +79,7 @@ dictionary IdentityProviderAPIConfig {
67
79
  required USVString client_metadata_endpoint;
68
80
  required USVString id_assertion_endpoint;
69
81
  required USVString login_url;
82
+ USVString disconnect_endpoint;
70
83
  IdentityProviderBranding branding;
71
84
  };
72
85
 
@@ -0,0 +1,12 @@
1
+ // GENERATED CONTENT - DO NOT EDIT
2
+ // Content was automatically extracted by Reffy into webref
3
+ // (https://github.com/w3c/webref)
4
+ // Source: Iframe credentialless (https://wicg.github.io/anonymous-iframe/)
5
+
6
+ partial interface HTMLIFrameElement {
7
+ attribute boolean credentialless;
8
+ };
9
+
10
+ partial interface Window {
11
+ readonly attribute boolean credentialless;
12
+ };
@@ -1,7 +1,7 @@
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 Transitions (https://drafts.csswg.org/css-transitions-1/)
4
+ // Source: CSS Transitions Level 1 (https://drafts.csswg.org/css-transitions-1/)
5
5
 
6
6
  [Exposed=Window]
7
7
  interface TransitionEvent : Event {
package/html.idl CHANGED
@@ -1872,6 +1872,7 @@ interface Navigation : EventTarget {
1872
1872
  readonly attribute NavigationHistoryEntry? currentEntry;
1873
1873
  undefined updateCurrentEntry(NavigationUpdateCurrentEntryOptions options);
1874
1874
  readonly attribute NavigationTransition? transition;
1875
+ readonly attribute NavigationActivation? activation;
1875
1876
 
1876
1877
  readonly attribute boolean canGoBack;
1877
1878
  readonly attribute boolean canGoForward;
@@ -1944,6 +1945,13 @@ interface NavigationTransition {
1944
1945
  readonly attribute Promise<undefined> finished;
1945
1946
  };
1946
1947
 
1948
+ [Exposed=Window]
1949
+ interface NavigationActivation {
1950
+ readonly attribute NavigationHistoryEntry? from;
1951
+ readonly attribute NavigationHistoryEntry entry;
1952
+ readonly attribute NavigationType navigationType;
1953
+ };
1954
+
1947
1955
  [Exposed=Window]
1948
1956
  interface NavigateEvent : Event {
1949
1957
  constructor(DOMString type, NavigateEventInit eventInitDict);
@@ -2083,12 +2091,12 @@ dictionary ErrorEventInit : EventInit {
2083
2091
  interface PromiseRejectionEvent : Event {
2084
2092
  constructor(DOMString type, PromiseRejectionEventInit eventInitDict);
2085
2093
 
2086
- readonly attribute Promise<any> promise;
2094
+ readonly attribute object promise;
2087
2095
  readonly attribute any reason;
2088
2096
  };
2089
2097
 
2090
2098
  dictionary PromiseRejectionEventInit : EventInit {
2091
- required Promise<any> promise;
2099
+ required object promise;
2092
2100
  any reason;
2093
2101
  };
2094
2102
 
@@ -15,7 +15,7 @@ interface DeviceOrientationEvent : Event {
15
15
  readonly attribute double? gamma;
16
16
  readonly attribute boolean absolute;
17
17
 
18
- static Promise<PermissionState> requestPermission();
18
+ static Promise<PermissionState> requestPermission(optional boolean absolute = false);
19
19
  };
20
20
 
21
21
  dictionary DeviceOrientationEventInit : EventInit {
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.41.3",
4
+ "version": "3.42.1",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/w3c/webref.git"
package/uievents.idl CHANGED
@@ -101,7 +101,7 @@ dictionary WheelEventInit : MouseEventInit {
101
101
  [Exposed=Window]
102
102
  interface InputEvent : UIEvent {
103
103
  constructor(DOMString type, optional InputEventInit eventInitDict = {});
104
- readonly attribute DOMString? data;
104
+ readonly attribute USVString? data;
105
105
  readonly attribute boolean isComposing;
106
106
  readonly attribute DOMString inputType;
107
107
  };
@@ -147,7 +147,7 @@ dictionary KeyboardEventInit : EventModifierInit {
147
147
  [Exposed=Window]
148
148
  interface CompositionEvent : UIEvent {
149
149
  constructor(DOMString type, optional CompositionEventInit eventInitDict = {});
150
- readonly attribute DOMString data;
150
+ readonly attribute USVString data;
151
151
  };
152
152
 
153
153
  dictionary CompositionEventInit : UIEventInit {
package/webnn.idl CHANGED
@@ -37,35 +37,26 @@ interface ML {
37
37
  };
38
38
 
39
39
  [SecureContext, Exposed=(Window, DedicatedWorker)]
40
- interface MLGraph {};
41
-
42
- enum MLInputOperandLayout {
43
- "nchw",
44
- "nhwc"
40
+ interface MLActivation {
45
41
  };
46
42
 
47
- enum MLOperandDataType {
48
- "float32",
49
- "float16",
50
- "int32",
51
- "uint32",
52
- "int8",
53
- "uint8"
54
- };
43
+ typedef (GPUBuffer or GPUTexture) MLGPUResource;
55
44
 
56
- dictionary MLOperandDescriptor {
57
- // The operand data type.
58
- required MLOperandDataType dataType;
45
+ typedef record<DOMString, MLGPUResource> MLNamedGPUResources;
59
46
 
60
- // The dimensions field is only required for tensor operands.
61
- sequence<unsigned long> dimensions;
47
+ [SecureContext, Exposed=(Window, DedicatedWorker)]
48
+ interface MLCommandEncoder {};
49
+
50
+ partial interface MLCommandEncoder {
51
+ undefined initializeGraph(MLGraph graph);
62
52
  };
63
53
 
64
- [SecureContext, Exposed=(Window, DedicatedWorker)]
65
- interface MLOperand {};
54
+ partial interface MLCommandEncoder {
55
+ undefined dispatch(MLGraph graph, MLNamedGPUResources inputs, MLNamedGPUResources outputs);
56
+ };
66
57
 
67
- [SecureContext, Exposed=(Window, DedicatedWorker)]
68
- interface MLActivation {
58
+ partial interface MLCommandEncoder {
59
+ GPUCommandBuffer finish(optional GPUCommandBufferDescriptor descriptor = {});
69
60
  };
70
61
 
71
62
  typedef record<DOMString, ArrayBufferView> MLNamedArrayBufferViews;
@@ -93,24 +84,8 @@ partial interface MLContext {
93
84
  MLCommandEncoder createCommandEncoder();
94
85
  };
95
86
 
96
- typedef (GPUBuffer or GPUTexture) MLGPUResource;
97
-
98
- typedef record<DOMString, MLGPUResource> MLNamedGPUResources;
99
-
100
87
  [SecureContext, Exposed=(Window, DedicatedWorker)]
101
- interface MLCommandEncoder {};
102
-
103
- partial interface MLCommandEncoder {
104
- undefined initializeGraph(MLGraph graph);
105
- };
106
-
107
- partial interface MLCommandEncoder {
108
- undefined dispatch(MLGraph graph, MLNamedGPUResources inputs, MLNamedGPUResources outputs);
109
- };
110
-
111
- partial interface MLCommandEncoder {
112
- GPUCommandBuffer finish(optional GPUCommandBufferDescriptor descriptor = {});
113
- };
88
+ interface MLGraph {};
114
89
 
115
90
  typedef record<DOMString, MLOperand> MLNamedOperands;
116
91
 
@@ -134,7 +109,7 @@ interface MLGraphBuilder {
134
109
  MLOperand constant(MLOperandDescriptor descriptor, MLBufferView bufferView);
135
110
 
136
111
  // Create a single-value operand from the specified number of the specified type.
137
- MLOperand constant(double value, optional MLOperandDataType dataType = "float32");
112
+ MLOperand constant(double value, optional MLOperandDataType type = "float32");
138
113
 
139
114
  // Compile the graph up to the specified output operands asynchronously.
140
115
  Promise<MLGraph> build(MLNamedOperands outputs);
@@ -144,6 +119,17 @@ interface MLGraphBuilder {
144
119
  MLGraph buildSync(MLNamedOperands outputs);
145
120
  };
146
121
 
122
+ dictionary MLArgMinMaxOptions {
123
+ sequence<unsigned long> axes = null;
124
+ boolean keepDimensions = false;
125
+ boolean selectLastIndex = false;
126
+ };
127
+
128
+ partial interface MLGraphBuilder {
129
+ MLOperand argMin(MLOperand input, optional MLArgMinMaxOptions options = {});
130
+ MLOperand argMax(MLOperand input, optional MLArgMinMaxOptions options = {});
131
+ };
132
+
147
133
  dictionary MLBatchNormalizationOptions {
148
134
  MLOperand scale;
149
135
  MLOperand bias;
@@ -157,13 +143,17 @@ partial interface MLGraphBuilder {
157
143
  optional MLBatchNormalizationOptions options = {});
158
144
  };
159
145
 
146
+ partial interface MLGraphBuilder {
147
+ MLOperand cast(MLOperand input, MLOperandDataType type);
148
+ };
149
+
160
150
  dictionary MLClampOptions {
161
151
  float minValue;
162
152
  float maxValue;
163
153
  };
164
154
 
165
155
  partial interface MLGraphBuilder {
166
- MLOperand clamp(MLOperand operand, optional MLClampOptions options = {});
156
+ MLOperand clamp(MLOperand input, optional MLClampOptions options = {});
167
157
  MLActivation clamp(optional MLClampOptions options = {});
168
158
  };
169
159
 
@@ -235,15 +225,28 @@ partial interface MLGraphBuilder {
235
225
  MLOperand pow(MLOperand a, MLOperand b);
236
226
  };
237
227
 
228
+ partial interface MLGraphBuilder {
229
+ MLOperand equal(MLOperand a, MLOperand b);
230
+ MLOperand greater(MLOperand a, MLOperand b);
231
+ MLOperand greaterOrEqual(MLOperand a, MLOperand b);
232
+ MLOperand lesser(MLOperand a, MLOperand b);
233
+ MLOperand lesserOrEqual(MLOperand a, MLOperand b);
234
+ MLOperand not(MLOperand a);
235
+ };
236
+
238
237
  partial interface MLGraphBuilder {
239
238
  MLOperand abs(MLOperand input);
240
239
  MLOperand ceil(MLOperand input);
241
240
  MLOperand cos(MLOperand input);
241
+ MLOperand erf(MLOperand input);
242
242
  MLOperand exp(MLOperand input);
243
243
  MLOperand floor(MLOperand input);
244
+ MLOperand identity(MLOperand input);
244
245
  MLOperand log(MLOperand input);
245
246
  MLOperand neg(MLOperand input);
247
+ MLOperand reciprocal(MLOperand input);
246
248
  MLOperand sin(MLOperand input);
249
+ MLOperand sqrt(MLOperand input);
247
250
  MLOperand tan(MLOperand input);
248
251
  };
249
252
 
@@ -256,6 +259,18 @@ partial interface MLGraphBuilder {
256
259
  MLActivation elu(optional MLEluOptions options = {});
257
260
  };
258
261
 
262
+ partial interface MLGraphBuilder {
263
+ MLOperand expand(MLOperand input, sequence<unsigned long> newShape);
264
+ };
265
+
266
+ dictionary MLGatherOptions {
267
+ unsigned long axis = 0;
268
+ };
269
+
270
+ partial interface MLGraphBuilder {
271
+ MLOperand gather(MLOperand input, MLOperand indices, optional MLGatherOptions options = {});
272
+ };
273
+
259
274
  dictionary MLGemmOptions {
260
275
  MLOperand c;
261
276
  float alpha = 1.0;
@@ -337,6 +352,17 @@ partial interface MLGraphBuilder {
337
352
  optional MLInstanceNormalizationOptions options = {});
338
353
  };
339
354
 
355
+ dictionary MLLayerNormalizationOptions {
356
+ MLOperand scale;
357
+ MLOperand bias;
358
+ sequence<unsigned long> axes;
359
+ float epsilon = 1e-5;
360
+ };
361
+
362
+ partial interface MLGraphBuilder {
363
+ MLOperand layerNormalization(MLOperand input, optional MLLayerNormalizationOptions options = {});
364
+ };
365
+
340
366
  dictionary MLLeakyReluOptions {
341
367
  float alpha = 0.01;
342
368
  };
@@ -523,14 +549,6 @@ partial interface MLGraphBuilder {
523
549
  optional MLSplitOptions options = {});
524
550
  };
525
551
 
526
- dictionary MLSqueezeOptions {
527
- sequence<unsigned long> axes;
528
- };
529
-
530
- partial interface MLGraphBuilder {
531
- MLOperand squeeze(MLOperand input, optional MLSqueezeOptions options = {});
532
- };
533
-
534
552
  partial interface MLGraphBuilder {
535
553
  MLOperand tanh(MLOperand input);
536
554
  MLActivation tanh();
@@ -543,3 +561,51 @@ dictionary MLTransposeOptions {
543
561
  partial interface MLGraphBuilder {
544
562
  MLOperand transpose(MLOperand input, optional MLTransposeOptions options = {});
545
563
  };
564
+
565
+ dictionary MLTriangularOptions {
566
+ boolean upper = true;
567
+ long diagonal = 0;
568
+ };
569
+
570
+ partial interface MLGraphBuilder {
571
+ MLOperand triangular(MLOperand input, optional MLTriangularOptions options = {});
572
+ };
573
+
574
+ partial interface MLGraphBuilder {
575
+ MLOperand where(MLOperand condition, MLOperand input, MLOperand other);
576
+ };
577
+
578
+ [SecureContext, Exposed=(Window, DedicatedWorker)]
579
+ interface MLOperand {};
580
+
581
+ partial interface MLOperand {
582
+ MLOperandDataType dataType();
583
+ };
584
+
585
+ partial interface MLOperand {
586
+ sequence<unsigned long> shape();
587
+ };
588
+
589
+ enum MLInputOperandLayout {
590
+ "nchw",
591
+ "nhwc"
592
+ };
593
+
594
+ enum MLOperandDataType {
595
+ "float32",
596
+ "float16",
597
+ "int32",
598
+ "uint32",
599
+ "int64",
600
+ "uint64",
601
+ "int8",
602
+ "uint8"
603
+ };
604
+
605
+ dictionary MLOperandDescriptor {
606
+ // The operand type.
607
+ required MLOperandDataType dataType;
608
+
609
+ // The dimensions field is only required for tensor operands.
610
+ sequence<unsigned long> dimensions;
611
+ };
@@ -112,12 +112,16 @@ partial interface DedicatedWorkerGlobalScope {
112
112
  };
113
113
 
114
114
  [Exposed=DedicatedWorker]
115
- interface RTCRtpScriptTransformer {
115
+ interface RTCRtpScriptTransformer : EventTarget {
116
+ // Attributes and methods related to the transformer source
116
117
  readonly attribute ReadableStream readable;
117
- readonly attribute WritableStream writable;
118
- readonly attribute any options;
119
118
  Promise<unsigned long long> generateKeyFrame(optional DOMString rid);
120
119
  Promise<undefined> sendKeyFrameRequest();
120
+ // Attributes and methods related to the transformer sink
121
+ readonly attribute WritableStream writable;
122
+ attribute EventHandler onkeyframerequest;
123
+ // Attributes for configuring the Javascript code
124
+ readonly attribute any options;
121
125
  };
122
126
 
123
127
  [Exposed=Window]
@@ -125,6 +129,12 @@ interface RTCRtpScriptTransform {
125
129
  constructor(Worker worker, optional any options, optional sequence<object> transfer);
126
130
  };
127
131
 
132
+ [Exposed=DedicatedWorker]
133
+ interface KeyFrameRequestEvent : Event {
134
+ constructor(DOMString type, optional DOMString rid);
135
+ readonly attribute DOMString? rid;
136
+ };
137
+
128
138
  partial interface RTCRtpSender {
129
139
  Promise<undefined> generateKeyFrame(optional sequence <DOMString> rids);
130
140
  };
package/webtransport.idl CHANGED
@@ -39,6 +39,8 @@ interface WebTransport {
39
39
  /* a ReadableStream of WebTransportReceiveStream objects */
40
40
  readonly attribute ReadableStream incomingUnidirectionalStreams;
41
41
  WebTransportSendGroup createSendGroup();
42
+
43
+ static readonly attribute boolean supportsReliableOnly;
42
44
  };
43
45
 
44
46
  enum WebTransportReliabilityMode {