@webref/idl 3.32.0 → 3.33.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/fenced-frame.idl CHANGED
@@ -29,18 +29,23 @@ enum FenceReportingDestination {
29
29
  "buyer",
30
30
  "seller",
31
31
  "component-seller",
32
+ "direct-seller",
32
33
  "shared-storage-select-url",
33
34
  };
34
35
 
35
36
  dictionary FenceEvent {
36
37
  required DOMString eventType;
37
38
  required DOMString eventData;
38
- required sequence<DOMString> destination;
39
+ required sequence<FenceReportingDestination> destination;
39
40
  };
40
41
 
42
+ typedef (FenceEvent or DOMString) ReportEventType;
43
+
41
44
  [Exposed=Window]
42
45
  interface Fence {
43
- undefined reportEvent(FenceEvent event);
46
+ undefined reportEvent(ReportEventType event);
47
+ undefined setReportEventDataForAutomaticBeacons(FenceEvent event);
48
+ sequence<FencedFrameConfig> getNestedConfigs();
44
49
  };
45
50
 
46
51
  partial interface Window {
@@ -104,19 +104,19 @@ dictionary MediaTrackConstraintSet {
104
104
  };
105
105
 
106
106
  dictionary MediaTrackSettings {
107
- long width;
108
- long height;
107
+ unsigned long width;
108
+ unsigned long height;
109
109
  double aspectRatio;
110
110
  double frameRate;
111
111
  DOMString facingMode;
112
112
  DOMString resizeMode;
113
- long sampleRate;
114
- long sampleSize;
113
+ unsigned long sampleRate;
114
+ unsigned long sampleSize;
115
115
  boolean echoCancellation;
116
116
  boolean autoGainControl;
117
117
  boolean noiseSuppression;
118
118
  double latency;
119
- long channelCount;
119
+ unsigned long channelCount;
120
120
  DOMString deviceId;
121
121
  DOMString groupId;
122
122
  };
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.32.0",
4
+ "version": "3.33.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/w3c/webref.git"
@@ -23,6 +23,7 @@ enum ServiceWorkerState {
23
23
  "activated",
24
24
  "redundant"
25
25
  };
26
+
26
27
  [SecureContext, Exposed=(Window,Worker)]
27
28
  interface ServiceWorkerRegistration : EventTarget {
28
29
  readonly attribute ServiceWorker? installing;
@@ -45,6 +46,7 @@ enum ServiceWorkerUpdateViaCache {
45
46
  "all",
46
47
  "none"
47
48
  };
49
+
48
50
  partial interface Navigator {
49
51
  [SecureContext, SameObject] readonly attribute ServiceWorkerContainer serviceWorker;
50
52
  };
@@ -52,6 +54,7 @@ partial interface Navigator {
52
54
  partial interface WorkerNavigator {
53
55
  [SecureContext, SameObject] readonly attribute ServiceWorkerContainer serviceWorker;
54
56
  };
57
+
55
58
  [SecureContext, Exposed=(Window,Worker)]
56
59
  interface ServiceWorkerContainer : EventTarget {
57
60
  readonly attribute ServiceWorker? controller;
@@ -69,11 +72,13 @@ interface ServiceWorkerContainer : EventTarget {
69
72
  attribute EventHandler onmessage; // event.source of message events is ServiceWorker object
70
73
  attribute EventHandler onmessageerror;
71
74
  };
75
+
72
76
  dictionary RegistrationOptions {
73
77
  USVString scope;
74
78
  WorkerType type = "classic";
75
79
  ServiceWorkerUpdateViaCache updateViaCache = "imports";
76
80
  };
81
+
77
82
  [SecureContext, Exposed=(Window,Worker)]
78
83
  interface NavigationPreloadManager {
79
84
  Promise<undefined> enable();
@@ -86,6 +91,7 @@ dictionary NavigationPreloadState {
86
91
  boolean enabled = false;
87
92
  ByteString headerValue;
88
93
  };
94
+
89
95
  [Global=(Worker,ServiceWorker), Exposed=ServiceWorker]
90
96
  interface ServiceWorkerGlobalScope : WorkerGlobalScope {
91
97
  [SameObject] readonly attribute Clients clients;
@@ -101,6 +107,7 @@ interface ServiceWorkerGlobalScope : WorkerGlobalScope {
101
107
  attribute EventHandler onmessage;
102
108
  attribute EventHandler onmessageerror;
103
109
  };
110
+
104
111
  [Exposed=ServiceWorker]
105
112
  interface Client {
106
113
  readonly attribute USVString url;
@@ -126,6 +133,7 @@ enum FrameType {
126
133
  "nested",
127
134
  "none"
128
135
  };
136
+
129
137
  [Exposed=ServiceWorker]
130
138
  interface Clients {
131
139
  // The objects returned will be new instances every time
@@ -134,24 +142,29 @@ interface Clients {
134
142
  [NewObject] Promise<WindowClient?> openWindow(USVString url);
135
143
  [NewObject] Promise<undefined> claim();
136
144
  };
145
+
137
146
  dictionary ClientQueryOptions {
138
147
  boolean includeUncontrolled = false;
139
148
  ClientType type = "window";
140
149
  };
150
+
141
151
  enum ClientType {
142
152
  "window",
143
153
  "worker",
144
154
  "sharedworker",
145
155
  "all"
146
156
  };
157
+
147
158
  [Exposed=ServiceWorker]
148
159
  interface ExtendableEvent : Event {
149
160
  constructor(DOMString type, optional ExtendableEventInit eventInitDict = {});
150
161
  undefined waitUntil(Promise<any> f);
151
162
  };
163
+
152
164
  dictionary ExtendableEventInit : EventInit {
153
165
  // Defined for the forward compatibility across the derived events
154
166
  };
167
+
155
168
  [Exposed=ServiceWorker]
156
169
  interface FetchEvent : ExtendableEvent {
157
170
  constructor(DOMString type, FetchEventInit eventInitDict);
@@ -164,6 +177,7 @@ interface FetchEvent : ExtendableEvent {
164
177
 
165
178
  undefined respondWith(Promise<Response> r);
166
179
  };
180
+
167
181
  dictionary FetchEventInit : ExtendableEventInit {
168
182
  required Request request;
169
183
  Promise<any> preloadResponse;
@@ -172,6 +186,7 @@ dictionary FetchEventInit : ExtendableEventInit {
172
186
  DOMString replacesClientId = "";
173
187
  Promise<undefined> handled;
174
188
  };
189
+
175
190
  [Exposed=ServiceWorker]
176
191
  interface ExtendableMessageEvent : ExtendableEvent {
177
192
  constructor(DOMString type, optional ExtendableMessageEventInit eventInitDict = {});
@@ -181,6 +196,7 @@ interface ExtendableMessageEvent : ExtendableEvent {
181
196
  [SameObject] readonly attribute (Client or ServiceWorker or MessagePort)? source;
182
197
  readonly attribute FrozenArray<MessagePort> ports;
183
198
  };
199
+
184
200
  dictionary ExtendableMessageEventInit : ExtendableEventInit {
185
201
  any data = null;
186
202
  USVString origin = "";
@@ -188,9 +204,11 @@ dictionary ExtendableMessageEventInit : ExtendableEventInit {
188
204
  (Client or ServiceWorker or MessagePort)? source = null;
189
205
  sequence<MessagePort> ports = [];
190
206
  };
207
+
191
208
  partial interface mixin WindowOrWorkerGlobalScope {
192
209
  [SecureContext, SameObject] readonly attribute CacheStorage caches;
193
210
  };
211
+
194
212
  [SecureContext, Exposed=(Window,Worker)]
195
213
  interface Cache {
196
214
  [NewObject] Promise<(Response or undefined)> match(RequestInfo request, optional CacheQueryOptions options = {});
@@ -201,11 +219,13 @@ interface Cache {
201
219
  [NewObject] Promise<boolean> delete(RequestInfo request, optional CacheQueryOptions options = {});
202
220
  [NewObject] Promise<FrozenArray<Request>> keys(optional RequestInfo request, optional CacheQueryOptions options = {});
203
221
  };
222
+
204
223
  dictionary CacheQueryOptions {
205
224
  boolean ignoreSearch = false;
206
225
  boolean ignoreMethod = false;
207
226
  boolean ignoreVary = false;
208
227
  };
228
+
209
229
  [SecureContext, Exposed=(Window,Worker)]
210
230
  interface CacheStorage {
211
231
  [NewObject] Promise<(Response or undefined)> match(RequestInfo request, optional MultiCacheQueryOptions options = {});
package/turtledove.idl CHANGED
@@ -9,7 +9,7 @@ partial interface Navigator {
9
9
  };
10
10
 
11
11
  dictionary AuctionAd {
12
- required USVString renderUrl;
12
+ required USVString renderURL;
13
13
  any metadata;
14
14
  };
15
15
 
@@ -23,16 +23,26 @@ dictionary AuctionAdInterestGroup {
23
23
  record<DOMString, double> prioritySignalsOverrides;
24
24
 
25
25
  DOMString executionMode = "compatibility";
26
- USVString biddingLogicUrl;
27
- USVString biddingWasmHelperUrl;
28
- USVString dailyUpdateUrl;
29
- USVString trustedBiddingSignalsUrl;
26
+ USVString biddingLogicURL;
27
+ USVString biddingWasmHelperURL;
28
+ USVString dailyUpdateURL;
29
+ USVString trustedBiddingSignalsURL;
30
30
  sequence<USVString> trustedBiddingSignalsKeys;
31
31
  any userBiddingSignals;
32
32
  sequence<AuctionAd> ads;
33
33
  sequence<AuctionAd> adComponents;
34
34
  };
35
35
 
36
+ [SecureContext]
37
+ partial interface Navigator {
38
+ Promise<undefined> leaveAdInterestGroup(AuctionAdInterestGroupKey group);
39
+ };
40
+
41
+ dictionary AuctionAdInterestGroupKey {
42
+ required USVString owner;
43
+ required USVString name;
44
+ };
45
+
36
46
  [SecureContext]
37
47
  partial interface Navigator {
38
48
  Promise<USVString?> runAdAuction(AuctionAdConfig config);
@@ -40,8 +50,8 @@ partial interface Navigator {
40
50
 
41
51
  dictionary AuctionAdConfig {
42
52
  required USVString seller;
43
- required USVString decisionLogicUrl;
44
- USVString trustedScoringSignalsUrl;
53
+ required USVString decisionLogicURL;
54
+ USVString trustedScoringSignalsURL;
45
55
  sequence<USVString> interestGroupBuyers;
46
56
  any auctionSignals;
47
57
  any sellerSignals;
@@ -56,3 +66,44 @@ dictionary AuctionAdConfig {
56
66
  sequence<AuctionAdConfig> componentAuctions = [];
57
67
  AbortSignal? signal;
58
68
  };
69
+
70
+ [Exposed=InterestGroupBiddingScriptRunnerGlobalScope,
71
+ Global=InterestGroupBiddingScriptRunnerGlobalScope]
72
+ interface InterestGroupBiddingScriptRunnerGlobalScope {
73
+ boolean setBid();
74
+ boolean setBid(GenerateBidOutput generateBidOutput);
75
+ undefined setPriority(double priority);
76
+ undefined setPrioritySignalsOverride(DOMString key, double priority);
77
+ };
78
+
79
+ [Exposed=InterestGroupScoringScriptRunnerGlobalScope,
80
+ Global=InterestGroupScoringScriptRunnerGlobalScope]
81
+ interface InterestGroupScoringScriptRunnerGlobalScope {
82
+ };
83
+
84
+ [Exposed=InterestGroupReportingScriptRunnerGlobalScope,
85
+ Global=InterestGroupReportingScriptRunnerGlobalScope]
86
+ interface InterestGroupReportingScriptRunnerGlobalScope {
87
+ undefined sendReportTo(DOMString url);
88
+ };
89
+
90
+ dictionary AdRender {
91
+ required DOMString url;
92
+ required DOMString width;
93
+ required DOMString height;
94
+ };
95
+
96
+ dictionary GenerateBidOutput {
97
+ required double bid;
98
+ required (DOMString or AdRender) adRender;
99
+ DOMString ad;
100
+ sequence<(DOMString or AdRender)> adComponents;
101
+ double adCost;
102
+ double modelingSignals;
103
+ boolean allowComponentAuction = false;
104
+ };
105
+
106
+ [SecureContext]
107
+ partial interface Navigator {
108
+ undefined updateAdInterestGroups();
109
+ };
package/webgpu.idl CHANGED
@@ -52,6 +52,11 @@ interface GPUSupportedFeatures {
52
52
  readonly setlike<DOMString>;
53
53
  };
54
54
 
55
+ [Exposed=(Window, DedicatedWorker), SecureContext]
56
+ interface WGSLLanguageFeatures {
57
+ readonly setlike<DOMString>;
58
+ };
59
+
55
60
  [Exposed=(Window, DedicatedWorker), SecureContext]
56
61
  interface GPUAdapterInfo {
57
62
  readonly attribute DOMString vendor;
@@ -70,6 +75,7 @@ WorkerNavigator includes NavigatorGPU;
70
75
  interface GPU {
71
76
  Promise<GPUAdapter?> requestAdapter(optional GPURequestAdapterOptions options = {});
72
77
  GPUTextureFormat getPreferredCanvasFormat();
78
+ [SameObject] readonly attribute WGSLLanguageFeatures wgslLanguageFeatures;
73
79
  };
74
80
 
75
81
  dictionary GPURequestAdapterOptions {
package/webtransport.idl CHANGED
@@ -86,6 +86,7 @@ dictionary WebTransportStats {
86
86
  DOMHighResTimeStamp rttVariation;
87
87
  DOMHighResTimeStamp minRtt;
88
88
  WebTransportDatagramStats datagrams;
89
+ unsigned long long? estimatedSendRate;
89
90
  };
90
91
 
91
92
  dictionary WebTransportDatagramStats {
File without changes