@webref/idl 3.22.6 → 3.24.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.
File without changes
package/fs.idl CHANGED
@@ -75,7 +75,7 @@ interface FileSystemWritableFileStream : WritableStream {
75
75
  };
76
76
 
77
77
  dictionary FileSystemReadWriteOptions {
78
- [EnforceRange] unsigned long long at = 0;
78
+ [EnforceRange] unsigned long long at;
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.22.6",
4
+ "version": "3.24.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/w3c/webref.git"
@@ -0,0 +1,13 @@
1
+ // GENERATED CONTENT - DO NOT EDIT
2
+ // Content was automatically extracted by Reffy into webref
3
+ // (https://github.com/w3c/webref)
4
+ // Source: FLAC WebCodecs Registration (https://w3c.github.io/webcodecs/flac_codec_registration.html)
5
+
6
+ partial dictionary AudioEncoderConfig {
7
+ FlacEncoderConfig flac;
8
+ };
9
+
10
+ dictionary FlacEncoderConfig {
11
+ [EnforceRange] unsigned long blockSize = 0;
12
+ [EnforceRange] unsigned long compressLevel = 5;
13
+ };
package/webgpu.idl CHANGED
@@ -106,7 +106,6 @@ enum GPUFeatureName {
106
106
  "timestamp-query",
107
107
  "indirect-first-instance",
108
108
  "shader-f16",
109
- "bgra8unorm-storage",
110
109
  "rg11b10ufloat-renderable"
111
110
  };
112
111
 
@@ -585,6 +584,21 @@ interface GPUCompilationInfo {
585
584
  readonly attribute FrozenArray<GPUCompilationMessage> messages;
586
585
  };
587
586
 
587
+ [Exposed=(Window, DedicatedWorker), SecureContext, Serializable]
588
+ interface GPUPipelineError : DOMException {
589
+ constructor(DOMString message, GPUPipelineErrorInit options);
590
+ readonly attribute GPUPipelineErrorReason reason;
591
+ };
592
+
593
+ dictionary GPUPipelineErrorInit {
594
+ required GPUPipelineErrorReason reason;
595
+ };
596
+
597
+ enum GPUPipelineErrorReason {
598
+ "validation",
599
+ "internal"
600
+ };
601
+
588
602
  enum GPUAutoLayoutMode {
589
603
  "auto"
590
604
  };
package/webnn.idl CHANGED
@@ -82,7 +82,7 @@ dictionary MLOperandDescriptor {
82
82
  interface MLOperand {};
83
83
 
84
84
  [SecureContext, Exposed=(Window, DedicatedWorker)]
85
- interface MLOperator {};
85
+ interface MLActivation {};
86
86
 
87
87
  typedef record<DOMString, MLOperand> MLNamedOperands;
88
88
 
@@ -121,7 +121,7 @@ dictionary MLBatchNormalizationOptions {
121
121
  MLOperand bias;
122
122
  long axis = 1;
123
123
  float epsilon = 1e-5;
124
- MLOperator activation;
124
+ MLActivation activation;
125
125
  };
126
126
 
127
127
  partial interface MLGraphBuilder {
@@ -136,7 +136,7 @@ dictionary MLClampOptions {
136
136
 
137
137
  partial interface MLGraphBuilder {
138
138
  MLOperand clamp(MLOperand x, optional MLClampOptions options = {});
139
- MLOperator clamp(optional MLClampOptions options = {});
139
+ MLActivation clamp(optional MLClampOptions options = {});
140
140
  };
141
141
 
142
142
  partial interface MLGraphBuilder {
@@ -165,7 +165,7 @@ dictionary MLConv2dOptions {
165
165
  MLInputOperandLayout inputLayout = "nchw";
166
166
  MLConv2dFilterOperandLayout filterLayout = "oihw";
167
167
  MLOperand bias;
168
- MLOperator activation;
168
+ MLActivation activation;
169
169
  };
170
170
 
171
171
  partial interface MLGraphBuilder {
@@ -189,7 +189,7 @@ dictionary MLConvTranspose2dOptions {
189
189
  MLInputOperandLayout inputLayout = "nchw";
190
190
  MLConvTranspose2dFilterOperandLayout filterLayout = "iohw";
191
191
  MLOperand bias;
192
- MLOperator activation;
192
+ MLActivation activation;
193
193
  };
194
194
 
195
195
  partial interface MLGraphBuilder {
@@ -225,7 +225,7 @@ dictionary MLEluOptions {
225
225
 
226
226
  partial interface MLGraphBuilder {
227
227
  MLOperand elu(MLOperand x, optional MLEluOptions options = {});
228
- MLOperator elu(optional MLEluOptions options = {});
228
+ MLActivation elu(optional MLEluOptions options = {});
229
229
  };
230
230
 
231
231
  dictionary MLGemmOptions {
@@ -240,7 +240,7 @@ partial interface MLGraphBuilder {
240
240
  MLOperand gemm(MLOperand a, MLOperand b, optional MLGemmOptions options = {});
241
241
  };
242
242
 
243
- enum MLRecurrentNetworkWeightLayout {
243
+ enum MLGruWeightLayout {
244
244
  "zrn", // update-reset-new gate ordering
245
245
  "rzn" // reset-update-new gate ordering
246
246
  };
@@ -258,26 +258,31 @@ dictionary MLGruOptions {
258
258
  boolean resetAfter = true;
259
259
  boolean returnSequence = false;
260
260
  MLRecurrentNetworkDirection direction = "forward";
261
- MLRecurrentNetworkWeightLayout layout = "zrn";
262
- sequence<MLOperator> activations;
261
+ MLGruWeightLayout layout = "zrn";
262
+ sequence<MLActivation> activations;
263
263
  };
264
264
 
265
265
  partial interface MLGraphBuilder {
266
266
  sequence<MLOperand> gru(MLOperand input, MLOperand weight, MLOperand recurrentWeight,
267
- long steps, long hiddenSize, optional MLGruOptions options = {});
267
+
268
+ unsigned long steps, unsigned long hiddenSize,
269
+
270
+ optional MLGruOptions options = {});
268
271
  };
269
272
 
270
273
  dictionary MLGruCellOptions {
271
274
  MLOperand bias;
272
275
  MLOperand recurrentBias;
273
276
  boolean resetAfter = true;
274
- MLRecurrentNetworkWeightLayout layout = "zrn";
275
- sequence<MLOperator> activations;
277
+ MLGruWeightLayout layout = "zrn";
278
+ sequence<MLActivation> activations;
276
279
  };
277
280
 
278
281
  partial interface MLGraphBuilder {
279
282
  MLOperand gruCell(MLOperand input, MLOperand weight, MLOperand recurrentWeight,
280
- MLOperand hiddenState, long hiddenSize, optional MLGruCellOptions options = {});
283
+ MLOperand hiddenState, unsigned long hiddenSize,
284
+
285
+ optional MLGruCellOptions options = {});
281
286
  };
282
287
 
283
288
  dictionary MLHardSigmoidOptions {
@@ -287,12 +292,12 @@ dictionary MLHardSigmoidOptions {
287
292
 
288
293
  partial interface MLGraphBuilder {
289
294
  MLOperand hardSigmoid(MLOperand x, optional MLHardSigmoidOptions options = {});
290
- MLOperator hardSigmoid(optional MLHardSigmoidOptions options = {});
295
+ MLActivation hardSigmoid(optional MLHardSigmoidOptions options = {});
291
296
  };
292
297
 
293
298
  partial interface MLGraphBuilder {
294
299
  MLOperand hardSwish(MLOperand x);
295
- MLOperator hardSwish();
300
+ MLActivation hardSwish();
296
301
  };
297
302
 
298
303
  dictionary MLInstanceNormalizationOptions {
@@ -313,11 +318,7 @@ dictionary MLLeakyReluOptions {
313
318
 
314
319
  partial interface MLGraphBuilder {
315
320
  MLOperand leakyRelu(MLOperand x, optional MLLeakyReluOptions options = {});
316
- MLOperator leakyRelu(optional MLLeakyReluOptions options = {});
317
- };
318
-
319
- partial interface MLGraphBuilder {
320
- MLOperand matmul(MLOperand a, MLOperand b);
321
+ MLActivation leakyRelu(optional MLLeakyReluOptions options = {});
321
322
  };
322
323
 
323
324
  dictionary MLLinearOptions {
@@ -327,7 +328,51 @@ dictionary MLLinearOptions {
327
328
 
328
329
  partial interface MLGraphBuilder {
329
330
  MLOperand linear(MLOperand x, optional MLLinearOptions options = {});
330
- MLOperator linear(optional MLLinearOptions options = {});
331
+ MLActivation linear(optional MLLinearOptions options = {});
332
+ };
333
+
334
+ enum MLLstmWeightLayout {
335
+ "iofg", // input-output-forget-cell gate ordering
336
+ "ifgo" // input-forget-cell-output gate ordering
337
+ };
338
+
339
+ dictionary MLLstmOptions {
340
+ MLOperand bias;
341
+ MLOperand recurrentBias;
342
+ MLOperand peepholeWeight;
343
+ MLOperand initialHiddenState;
344
+ MLOperand initialCellState;
345
+ boolean returnSequence = false;
346
+ MLRecurrentNetworkDirection direction = "forward";
347
+ MLLstmWeightLayout layout = "iofg";
348
+ sequence<MLActivation> activations;
349
+ };
350
+
351
+ partial interface MLGraphBuilder {
352
+ sequence<MLOperand> lstm(MLOperand input, MLOperand weight, MLOperand recurrentWeight,
353
+
354
+ unsigned long steps, unsigned long hiddenSize,
355
+
356
+ optional MLLstmOptions options = {});
357
+ };
358
+
359
+ dictionary MLLstmCellOptions {
360
+ MLOperand bias;
361
+ MLOperand recurrentBias;
362
+ MLOperand peepholeWeight;
363
+ MLLstmWeightLayout layout = "iofg";
364
+ sequence<MLActivation> activations;
365
+ };
366
+
367
+ partial interface MLGraphBuilder {
368
+ sequence<MLOperand> lstmCell(MLOperand input, MLOperand weight, MLOperand recurrentWeight,
369
+ MLOperand hiddenState, MLOperand cellState, unsigned long hiddenSize,
370
+
371
+ optional MLLstmCellOptions options = {});
372
+ };
373
+
374
+ partial interface MLGraphBuilder {
375
+ MLOperand matmul(MLOperand a, MLOperand b);
331
376
  };
332
377
 
333
378
  enum MLPaddingMode {
@@ -388,7 +433,7 @@ partial interface MLGraphBuilder {
388
433
 
389
434
  partial interface MLGraphBuilder {
390
435
  MLOperand relu(MLOperand x);
391
- MLOperator relu();
436
+ MLActivation relu();
392
437
  };
393
438
 
394
439
  enum MLInterpolationMode {
@@ -413,7 +458,7 @@ partial interface MLGraphBuilder {
413
458
 
414
459
  partial interface MLGraphBuilder {
415
460
  MLOperand sigmoid(MLOperand x);
416
- MLOperator sigmoid();
461
+ MLActivation sigmoid();
417
462
  };
418
463
 
419
464
  dictionary MLSliceOptions {
@@ -427,6 +472,7 @@ partial interface MLGraphBuilder {
427
472
 
428
473
  partial interface MLGraphBuilder {
429
474
  MLOperand softmax(MLOperand x);
475
+ MLActivation softmax();
430
476
  };
431
477
 
432
478
  dictionary MLSoftplusOptions {
@@ -435,12 +481,12 @@ dictionary MLSoftplusOptions {
435
481
 
436
482
  partial interface MLGraphBuilder {
437
483
  MLOperand softplus(MLOperand x, optional MLSoftplusOptions options = {});
438
- MLOperator softplus(optional MLSoftplusOptions options = {});
484
+ MLActivation softplus(optional MLSoftplusOptions options = {});
439
485
  };
440
486
 
441
487
  partial interface MLGraphBuilder {
442
488
  MLOperand softsign(MLOperand x);
443
- MLOperator softsign();
489
+ MLActivation softsign();
444
490
  };
445
491
 
446
492
  dictionary MLSplitOptions {
@@ -463,7 +509,7 @@ partial interface MLGraphBuilder {
463
509
 
464
510
  partial interface MLGraphBuilder {
465
511
  MLOperand tanh(MLOperand x);
466
- MLOperator tanh();
512
+ MLActivation tanh();
467
513
  };
468
514
 
469
515
  dictionary MLTransposeOptions {