@webref/idl 3.44.0 → 3.44.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/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.44.0",
4
+ "version": "3.44.1",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/w3c/webref.git"
package/webnn.idl CHANGED
@@ -31,21 +31,15 @@ interface ML {
31
31
  Promise<MLContext> createContext(GPUDevice gpuDevice);
32
32
  };
33
33
 
34
- [SecureContext, Exposed=(Window, DedicatedWorker)]
35
- interface MLActivation {
36
- };
37
-
38
34
  typedef record<DOMString, ArrayBufferView> MLNamedArrayBufferViews;
39
35
 
40
- [SecureContext, Exposed=(Window, DedicatedWorker)]
41
- interface MLContext {};
42
-
43
36
  dictionary MLComputeResult {
44
37
  MLNamedArrayBufferViews inputs;
45
38
  MLNamedArrayBufferViews outputs;
46
39
  };
47
40
 
48
- partial interface MLContext {
41
+ [SecureContext, Exposed=(Window, DedicatedWorker)]
42
+ interface MLContext {
49
43
  Promise<MLComputeResult> compute(
50
44
  MLGraph graph, MLNamedArrayBufferViews inputs, MLNamedArrayBufferViews outputs);
51
45
  };
@@ -53,6 +47,40 @@ partial interface MLContext {
53
47
  [SecureContext, Exposed=(Window, DedicatedWorker)]
54
48
  interface MLGraph {};
55
49
 
50
+ enum MLInputOperandLayout {
51
+ "nchw",
52
+ "nhwc"
53
+ };
54
+
55
+ enum MLOperandDataType {
56
+ "float32",
57
+ "float16",
58
+ "int32",
59
+ "uint32",
60
+ "int64",
61
+ "uint64",
62
+ "int8",
63
+ "uint8"
64
+ };
65
+
66
+ dictionary MLOperandDescriptor {
67
+ // The operand type.
68
+ required MLOperandDataType dataType;
69
+
70
+ // The dimensions field is empty for scalar operands,
71
+ // and non-empty for tensor operands.
72
+ sequence<unsigned long> dimensions = [];
73
+ };
74
+
75
+ [SecureContext, Exposed=(Window, DedicatedWorker)]
76
+ interface MLOperand {
77
+ MLOperandDataType dataType();
78
+ sequence<unsigned long> shape();
79
+ };
80
+
81
+ [SecureContext, Exposed=(Window, DedicatedWorker)]
82
+ interface MLActivation {};
83
+
56
84
  typedef record<DOMString, MLOperand> MLNamedOperands;
57
85
 
58
86
  [SecureContext, Exposed=(Window, DedicatedWorker)]
@@ -122,17 +150,10 @@ enum MLConv2dFilterOperandLayout {
122
150
  "ihwo"
123
151
  };
124
152
 
125
- enum MLAutoPad {
126
- "explicit",
127
- "same-upper",
128
- "same-lower"
129
- };
130
-
131
153
  dictionary MLConv2dOptions {
132
154
  sequence<unsigned long> padding;
133
155
  sequence<unsigned long> strides;
134
156
  sequence<unsigned long> dilations;
135
- MLAutoPad autoPad = "explicit";
136
157
  unsigned long groups = 1;
137
158
  MLInputOperandLayout inputLayout = "nchw";
138
159
  MLConv2dFilterOperandLayout filterLayout = "oihw";
@@ -156,7 +177,6 @@ dictionary MLConvTranspose2dOptions {
156
177
  sequence<unsigned long> dilations;
157
178
  sequence<unsigned long> outputPadding;
158
179
  sequence<unsigned long> outputSizes;
159
- MLAutoPad autoPad = "explicit";
160
180
  unsigned long groups = 1;
161
181
  MLInputOperandLayout inputLayout = "nchw";
162
182
  MLConvTranspose2dFilterOperandLayout filterLayout = "iohw";
@@ -406,7 +426,6 @@ dictionary MLPool2dOptions {
406
426
  sequence<unsigned long> padding;
407
427
  sequence<unsigned long> strides;
408
428
  sequence<unsigned long> dilations;
409
- MLAutoPad autoPad = "explicit";
410
429
  MLInputOperandLayout layout = "nchw";
411
430
  MLRoundingType roundingType = "floor";
412
431
  sequence<unsigned long> outputSizes;
@@ -528,38 +547,3 @@ partial interface MLGraphBuilder {
528
547
  partial interface MLGraphBuilder {
529
548
  MLOperand where(MLOperand condition, MLOperand input, MLOperand other);
530
549
  };
531
-
532
- [SecureContext, Exposed=(Window, DedicatedWorker)]
533
- interface MLOperand {};
534
-
535
- partial interface MLOperand {
536
- MLOperandDataType dataType();
537
- };
538
-
539
- partial interface MLOperand {
540
- sequence<unsigned long> shape();
541
- };
542
-
543
- enum MLInputOperandLayout {
544
- "nchw",
545
- "nhwc"
546
- };
547
-
548
- enum MLOperandDataType {
549
- "float32",
550
- "float16",
551
- "int32",
552
- "uint32",
553
- "int64",
554
- "uint64",
555
- "int8",
556
- "uint8"
557
- };
558
-
559
- dictionary MLOperandDescriptor {
560
- // The operand type.
561
- required MLOperandDataType dataType;
562
-
563
- // The dimensions field is only required for tensor operands.
564
- sequence<unsigned long> dimensions = [];
565
- };
package/webtransport.idl CHANGED
@@ -23,6 +23,9 @@ interface WebTransport {
23
23
  readonly attribute Promise<undefined> ready;
24
24
  readonly attribute WebTransportReliabilityMode reliability;
25
25
  readonly attribute WebTransportCongestionControl congestionControl;
26
+ [EnforceRange] attribute unsigned short? anticipatedConcurrentIncomingUnidirectionalStreams;
27
+ [EnforceRange] attribute unsigned short? anticipatedConcurrentIncomingBidirectionalStreams;
28
+
26
29
  readonly attribute Promise<WebTransportCloseInfo> closed;
27
30
  readonly attribute Promise<undefined> draining;
28
31
  undefined close(optional WebTransportCloseInfo closeInfo = {});
@@ -59,6 +62,8 @@ dictionary WebTransportOptions {
59
62
  boolean requireUnreliable = false;
60
63
  sequence<WebTransportHash> serverCertificateHashes;
61
64
  WebTransportCongestionControl congestionControl = "default";
65
+ [EnforceRange] unsigned short? anticipatedConcurrentIncomingUnidirectionalStreams = null;
66
+ [EnforceRange] unsigned short? anticipatedConcurrentIncomingBidirectionalStreams = null;
62
67
  };
63
68
 
64
69
  enum WebTransportCongestionControl {