@webref/idl 3.62.1 → 3.64.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.
@@ -8,4 +8,6 @@ interface CrashReportBody : ReportBody {
8
8
  [Default] object toJSON();
9
9
  readonly attribute DOMString? reason;
10
10
  readonly attribute DOMString? stack;
11
+ readonly attribute DOMString? is_top_level;
12
+ readonly attribute DocumentVisibilityState? page_visibility;
11
13
  };
@@ -1,17 +1,30 @@
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: Digital Credentials (https://wicg.github.io/digital-credentials/)
4
+ // Source: Digital Credentials (https://w3c-fedid.github.io/digital-credentials/)
5
5
 
6
6
  partial dictionary CredentialRequestOptions {
7
7
  DigitalCredentialRequestOptions digital;
8
8
  };
9
9
 
10
10
  dictionary DigitalCredentialRequestOptions {
11
- sequence<DigitalCredentialRequest> requests;
11
+ sequence<DigitalCredentialGetRequest> requests;
12
12
  };
13
13
 
14
- dictionary DigitalCredentialRequest {
14
+ dictionary DigitalCredentialGetRequest {
15
+ required DOMString protocol;
16
+ required object data;
17
+ };
18
+
19
+ partial dictionary CredentialCreationOptions {
20
+ DigitalCredentialCreationOptions digital;
21
+ };
22
+
23
+ dictionary DigitalCredentialCreationOptions {
24
+ sequence<DigitalCredentialCreateRequest> requests;
25
+ };
26
+
27
+ dictionary DigitalCredentialCreateRequest {
15
28
  required DOMString protocol;
16
29
  required object data;
17
30
  };
package/html.idl CHANGED
@@ -1542,28 +1542,6 @@ interface TextMetrics {
1542
1542
  readonly attribute double ideographicBaseline;
1543
1543
  };
1544
1544
 
1545
- typedef (Uint8ClampedArray or Float16Array) ImageDataArray;
1546
-
1547
- enum ImageDataPixelFormat { "rgba-unorm8", "rgba-float16" };
1548
-
1549
- dictionary ImageDataSettings {
1550
- PredefinedColorSpace colorSpace;
1551
- ImageDataPixelFormat pixelFormat = "rgba-unorm8";
1552
- };
1553
-
1554
- [Exposed=(Window,Worker),
1555
- Serializable]
1556
- interface ImageData {
1557
- constructor(unsigned long sw, unsigned long sh, optional ImageDataSettings settings = {});
1558
- constructor(ImageDataArray data, unsigned long sw, optional unsigned long sh, optional ImageDataSettings settings = {});
1559
-
1560
- readonly attribute unsigned long width;
1561
- readonly attribute unsigned long height;
1562
- readonly attribute ImageDataArray data;
1563
- readonly attribute ImageDataPixelFormat pixelFormat;
1564
- readonly attribute PredefinedColorSpace colorSpace;
1565
- };
1566
-
1567
1545
  [Exposed=(Window,Worker)]
1568
1546
  interface Path2D {
1569
1547
  constructor(optional (Path2D or DOMString) path);
@@ -2476,6 +2454,28 @@ interface MimeType {
2476
2454
  readonly attribute Plugin enabledPlugin;
2477
2455
  };
2478
2456
 
2457
+ typedef (Uint8ClampedArray or Float16Array) ImageDataArray;
2458
+
2459
+ enum ImageDataPixelFormat { "rgba-unorm8", "rgba-float16" };
2460
+
2461
+ dictionary ImageDataSettings {
2462
+ PredefinedColorSpace colorSpace;
2463
+ ImageDataPixelFormat pixelFormat = "rgba-unorm8";
2464
+ };
2465
+
2466
+ [Exposed=(Window,Worker),
2467
+ Serializable]
2468
+ interface ImageData {
2469
+ constructor(unsigned long sw, unsigned long sh, optional ImageDataSettings settings = {});
2470
+ constructor(ImageDataArray data, unsigned long sw, optional unsigned long sh, optional ImageDataSettings settings = {});
2471
+
2472
+ readonly attribute unsigned long width;
2473
+ readonly attribute unsigned long height;
2474
+ readonly attribute ImageDataArray data;
2475
+ readonly attribute ImageDataPixelFormat pixelFormat;
2476
+ readonly attribute PredefinedColorSpace colorSpace;
2477
+ };
2478
+
2479
2479
  [Exposed=(Window,Worker), Serializable, Transferable]
2480
2480
  interface ImageBitmap {
2481
2481
  readonly attribute unsigned long width;
@@ -91,11 +91,11 @@ dictionary MediaCapabilitiesInfo {
91
91
 
92
92
  dictionary MediaCapabilitiesDecodingInfo : MediaCapabilitiesInfo {
93
93
  required MediaKeySystemAccess? keySystemAccess;
94
- MediaDecodingConfiguration configuration;
94
+ required MediaDecodingConfiguration configuration;
95
95
  };
96
96
 
97
97
  dictionary MediaCapabilitiesEncodingInfo : MediaCapabilitiesInfo {
98
- MediaEncodingConfiguration configuration;
98
+ required MediaEncodingConfiguration configuration;
99
99
  };
100
100
 
101
101
  [Exposed=Window]
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.62.1",
4
+ "version": "3.64.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/w3c/webref.git"
package/paint-timing.idl CHANGED
@@ -10,5 +10,7 @@ interface mixin PaintTimingMixin {
10
10
  };
11
11
 
12
12
  [Exposed=Window]
13
- interface PerformancePaintTiming : PerformanceEntry {};
13
+ interface PerformancePaintTiming : PerformanceEntry {
14
+ [Default] object toJSON();
15
+ };
14
16
  PerformancePaintTiming includes PaintTimingMixin;
@@ -25,8 +25,8 @@ interface PrivateAttribution {
25
25
 
26
26
  dictionary PrivateAttributionImpressionOptions {
27
27
  required unsigned long histogramIndex;
28
- unsigned long filterData = 0;
29
- required USVString conversionSite;
28
+ unsigned long matchValue = 0;
29
+ sequence<USVString> conversionSites = [];
30
30
  unsigned long lifetimeDays = 30;
31
31
  };
32
32
 
@@ -42,7 +42,7 @@ dictionary PrivateAttributionConversionOptions {
42
42
  required unsigned long histogramSize;
43
43
 
44
44
  unsigned long lookbackDays;
45
- unsigned long filterData;
45
+ sequence<unsigned long> matchValue = [];
46
46
  sequence<USVString> impressionSites = [];
47
47
  sequence<USVString> intermediarySites = [];
48
48
 
package/speech-api.idl CHANGED
@@ -3,7 +3,7 @@
3
3
  // (https://github.com/w3c/webref)
4
4
  // Source: Web Speech API (https://webaudio.github.io/web-speech-api/)
5
5
 
6
- [Exposed=Window]
6
+ [SecureContext, Exposed=Window]
7
7
  interface SpeechRecognition : EventTarget {
8
8
  constructor();
9
9
 
@@ -61,7 +61,7 @@ enum AvailabilityStatus {
61
61
  "available"
62
62
  };
63
63
 
64
- [Exposed=Window]
64
+ [SecureContext, Exposed=Window]
65
65
  interface SpeechRecognitionErrorEvent : Event {
66
66
  constructor(DOMString type, SpeechRecognitionErrorEventInit eventInitDict);
67
67
  readonly attribute SpeechRecognitionErrorCode error;
@@ -74,14 +74,14 @@ dictionary SpeechRecognitionErrorEventInit : EventInit {
74
74
  };
75
75
 
76
76
  // Item in N-best list
77
- [Exposed=Window]
77
+ [SecureContext, Exposed=Window]
78
78
  interface SpeechRecognitionAlternative {
79
79
  readonly attribute DOMString transcript;
80
80
  readonly attribute float confidence;
81
81
  };
82
82
 
83
83
  // A complete one-shot simple response
84
- [Exposed=Window]
84
+ [SecureContext, Exposed=Window]
85
85
  interface SpeechRecognitionResult {
86
86
  readonly attribute unsigned long length;
87
87
  getter SpeechRecognitionAlternative item(unsigned long index);
@@ -89,14 +89,14 @@ interface SpeechRecognitionResult {
89
89
  };
90
90
 
91
91
  // A collection of responses (used in continuous mode)
92
- [Exposed=Window]
92
+ [SecureContext, Exposed=Window]
93
93
  interface SpeechRecognitionResultList {
94
94
  readonly attribute unsigned long length;
95
95
  getter SpeechRecognitionResult item(unsigned long index);
96
96
  };
97
97
 
98
98
  // A full response, which could be interim or final, part of a continuous response or not
99
- [Exposed=Window]
99
+ [SecureContext, Exposed=Window]
100
100
  interface SpeechRecognitionEvent : Event {
101
101
  constructor(DOMString type, SpeechRecognitionEventInit eventInitDict);
102
102
  readonly attribute unsigned long resultIndex;
@@ -109,7 +109,7 @@ dictionary SpeechRecognitionEventInit : EventInit {
109
109
  };
110
110
 
111
111
  // The object representing a phrase for contextual biasing.
112
- [Exposed=Window]
112
+ [SecureContext, Exposed=Window]
113
113
  interface SpeechRecognitionPhrase {
114
114
  constructor(DOMString phrase, optional float boost = 1.0);
115
115
  readonly attribute DOMString phrase;
@@ -117,7 +117,7 @@ interface SpeechRecognitionPhrase {
117
117
  };
118
118
 
119
119
  // The object representing a list of phrases for contextual biasing.
120
- [Exposed=Window]
120
+ [SecureContext, Exposed=Window]
121
121
  interface SpeechRecognitionPhraseList {
122
122
  constructor(sequence<SpeechRecognitionPhrase> phrases);
123
123
  readonly attribute unsigned long length;
package/sri.idl ADDED
@@ -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: Subresource Integrity (https://w3c.github.io/webappsec-subresource-integrity/)
5
+
6
+ [Exposed=Window]
7
+ interface IntegrityPolicyViolationReportBody : ReportBody {
8
+ [Default] object toJSON();
9
+ readonly attribute USVString documentURL;
10
+ readonly attribute USVString blockedURL;
11
+ readonly attribute USVString destination;
12
+ readonly attribute boolean reportOnly;
13
+ };
@@ -0,0 +1,85 @@
1
+ // GENERATED CONTENT - DO NOT EDIT
2
+ // Content was automatically extracted by Reffy into webref
3
+ // (https://github.com/w3c/webref)
4
+ // Source: Translator and Language Detector APIs (https://webmachinelearning.github.io/translation-api/)
5
+
6
+ [Exposed=Window, SecureContext]
7
+ interface Translator {
8
+ static Promise<Translator> create(TranslatorCreateOptions options);
9
+ static Promise<Availability> availability(TranslatorCreateCoreOptions options);
10
+
11
+ Promise<DOMString> translate(
12
+ DOMString input,
13
+ optional TranslatorTranslateOptions options = {}
14
+ );
15
+ ReadableStream translateStreaming(
16
+ DOMString input,
17
+ optional TranslatorTranslateOptions options = {}
18
+ );
19
+
20
+ readonly attribute DOMString sourceLanguage;
21
+ readonly attribute DOMString targetLanguage;
22
+
23
+ Promise<double> measureInputUsage(
24
+ DOMString input,
25
+ optional TranslatorTranslateOptions options = {}
26
+ );
27
+ readonly attribute unrestricted double inputQuota;
28
+ };
29
+ Translator includes DestroyableModel;
30
+
31
+ dictionary TranslatorCreateCoreOptions {
32
+ required DOMString sourceLanguage;
33
+ required DOMString targetLanguage;
34
+ };
35
+
36
+ dictionary TranslatorCreateOptions : TranslatorCreateCoreOptions {
37
+ AbortSignal signal;
38
+ CreateMonitorCallback monitor;
39
+ };
40
+
41
+ dictionary TranslatorTranslateOptions {
42
+ AbortSignal signal;
43
+ };
44
+
45
+ [Exposed=Window, SecureContext]
46
+ interface LanguageDetector {
47
+ static Promise<LanguageDetector> create(
48
+ optional LanguageDetectorCreateOptions options = {}
49
+ );
50
+ static Promise<Availability> availability(
51
+ optional LanguageDetectorCreateCoreOptions options = {}
52
+ );
53
+
54
+ Promise<sequence<LanguageDetectionResult>> detect(
55
+ DOMString input,
56
+ optional LanguageDetectorDetectOptions options = {}
57
+ );
58
+
59
+ readonly attribute FrozenArray<DOMString>? expectedInputLanguages;
60
+
61
+ Promise<double> measureInputUsage(
62
+ DOMString input,
63
+ optional LanguageDetectorDetectOptions options = {}
64
+ );
65
+ readonly attribute unrestricted double inputQuota;
66
+ };
67
+ LanguageDetector includes DestroyableModel;
68
+
69
+ dictionary LanguageDetectorCreateCoreOptions {
70
+ sequence<DOMString> expectedInputLanguages;
71
+ };
72
+
73
+ dictionary LanguageDetectorCreateOptions : LanguageDetectorCreateCoreOptions {
74
+ AbortSignal signal;
75
+ CreateMonitorCallback monitor;
76
+ };
77
+
78
+ dictionary LanguageDetectorDetectOptions {
79
+ AbortSignal signal;
80
+ };
81
+
82
+ dictionary LanguageDetectionResult {
83
+ DOMString detectedLanguage;
84
+ double confidence;
85
+ };
package/webnn.idl CHANGED
@@ -799,8 +799,7 @@ partial dictionary MLOpSupportLimits {
799
799
  enum MLPaddingMode {
800
800
  "constant",
801
801
  "edge",
802
- "reflection",
803
- "symmetric"
802
+ "reflection"
804
803
  };
805
804
 
806
805
  dictionary MLPadOptions : MLOperatorOptions {
@@ -55,6 +55,17 @@ dictionary SFrameTransformErrorEventInit : EventInit {
55
55
  CryptoKeyID? keyID;
56
56
  };
57
57
 
58
+ dictionary RTCEncodedFrameMetadata {
59
+ unsigned long synchronizationSource;
60
+ octet payloadType;
61
+ sequence<unsigned long> contributingSources;
62
+ unsigned long rtpTimestamp;
63
+ DOMHighResTimeStamp receiveTime;
64
+ DOMHighResTimeStamp captureTime;
65
+ DOMHighResTimeStamp senderCaptureTimeOffset;
66
+ DOMString mimeType;
67
+ };
68
+
58
69
  // New enum for video frame types. Will eventually re-use the equivalent defined
59
70
  // by WebCodecs.
60
71
  enum RTCEncodedVideoFrameType {
@@ -63,22 +74,14 @@ enum RTCEncodedVideoFrameType {
63
74
  "delta",
64
75
  };
65
76
 
66
- dictionary RTCEncodedVideoFrameMetadata {
77
+ dictionary RTCEncodedVideoFrameMetadata : RTCEncodedFrameMetadata {
67
78
  unsigned long long frameId;
68
79
  sequence<unsigned long long> dependencies;
69
80
  unsigned short width;
70
81
  unsigned short height;
71
82
  unsigned long spatialIndex;
72
83
  unsigned long temporalIndex;
73
- unsigned long synchronizationSource;
74
- octet payloadType;
75
- sequence<unsigned long> contributingSources;
76
84
  long long timestamp; // microseconds
77
- unsigned long rtpTimestamp;
78
- DOMHighResTimeStamp receiveTime;
79
- DOMHighResTimeStamp captureTime;
80
- DOMHighResTimeStamp senderCaptureTimeOffset;
81
- DOMString mimeType;
82
85
  };
83
86
 
84
87
  dictionary RTCEncodedVideoFrameOptions {
@@ -95,16 +98,9 @@ interface RTCEncodedVideoFrame {
95
98
  RTCEncodedVideoFrameMetadata getMetadata();
96
99
  };
97
100
 
98
- dictionary RTCEncodedAudioFrameMetadata {
99
- unsigned long synchronizationSource;
100
- octet payloadType;
101
- sequence<unsigned long> contributingSources;
101
+ dictionary RTCEncodedAudioFrameMetadata : RTCEncodedFrameMetadata {
102
102
  short sequenceNumber;
103
- unsigned long rtpTimestamp;
104
- DOMHighResTimeStamp receiveTime;
105
- DOMHighResTimeStamp captureTime;
106
- DOMHighResTimeStamp senderCaptureTimeOffset;
107
- DOMString mimeType;
103
+ double audioLevel;
108
104
  };
109
105
 
110
106
  dictionary RTCEncodedAudioFrameOptions {
package/webtransport.idl CHANGED
@@ -27,6 +27,7 @@ interface WebTransport {
27
27
  constructor(USVString url, optional WebTransportOptions options = {});
28
28
 
29
29
  Promise<WebTransportConnectionStats> getStats();
30
+ [NewObject] Promise<ArrayBuffer> exportKeyingMaterial(BufferSource label, optional BufferSource context);
30
31
  readonly attribute Promise<undefined> ready;
31
32
  readonly attribute WebTransportReliabilityMode reliability;
32
33
  readonly attribute WebTransportCongestionControl congestionControl;