@webref/idl 3.61.5 → 3.62.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/fedcm.idl +4 -2
- package/image-capture.idl +1 -1
- package/mediastream-recording.idl +1 -1
- package/package.json +1 -1
- package/turtledove.idl +7 -0
- package/webcodecs.idl +1 -1
- package/webgpu.idl +1 -0
- package/webnn.idl +6 -0
- package/webxr-depth-sensing.idl +6 -1
- package/webxr.idl +7 -2
- package/writing-assistance-apis.idl +193 -0
- /package/{WebCryptoAPI.idl → webcrypto.idl} +0 -0
package/fedcm.idl
CHANGED
|
@@ -84,8 +84,10 @@ dictionary IdentityProviderAPIConfig {
|
|
|
84
84
|
|
|
85
85
|
dictionary IdentityProviderAccount {
|
|
86
86
|
required USVString id;
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
USVString name;
|
|
88
|
+
USVString email;
|
|
89
|
+
USVString tel;
|
|
90
|
+
USVString username;
|
|
89
91
|
USVString given_name;
|
|
90
92
|
USVString picture;
|
|
91
93
|
sequence<USVString> approved_clients;
|
package/image-capture.idl
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// (https://github.com/w3c/webref)
|
|
4
4
|
// Source: MediaStream Image Capture (https://w3c.github.io/mediacapture-image/)
|
|
5
5
|
|
|
6
|
-
[Exposed=Window]
|
|
6
|
+
[Exposed=Window, SecureContext]
|
|
7
7
|
interface ImageCapture {
|
|
8
8
|
constructor(MediaStreamTrack videoTrack);
|
|
9
9
|
Promise<Blob> takePhoto(optional PhotoSettings photoSettings = {});
|
package/package.json
CHANGED
package/turtledove.idl
CHANGED
|
@@ -206,6 +206,7 @@ partial interface Navigator {
|
|
|
206
206
|
[Exposed=InterestGroupScriptRunnerGlobalScope]
|
|
207
207
|
interface InterestGroupScriptRunnerGlobalScope {
|
|
208
208
|
readonly attribute PrivateAggregation? privateAggregation;
|
|
209
|
+
readonly attribute ProtectedAudienceUtilities protectedAudience;
|
|
209
210
|
};
|
|
210
211
|
|
|
211
212
|
dictionary PASignalValue {
|
|
@@ -220,6 +221,12 @@ dictionary PAExtendedHistogramContribution {
|
|
|
220
221
|
bigint filteringId = 0;
|
|
221
222
|
};
|
|
222
223
|
|
|
224
|
+
[Exposed=InterestGroupScriptRunnerGlobalScope]
|
|
225
|
+
interface ProtectedAudienceUtilities {
|
|
226
|
+
Uint8Array encodeUtf8(USVString input);
|
|
227
|
+
USVString decodeUtf8(Uint8Array bytes);
|
|
228
|
+
};
|
|
229
|
+
|
|
223
230
|
[Exposed=InterestGroupBiddingAndScoringScriptRunnerGlobalScope]
|
|
224
231
|
interface ForDebuggingOnly {
|
|
225
232
|
undefined reportAdAuctionWin(USVString url);
|
package/webcodecs.idl
CHANGED
|
@@ -141,7 +141,7 @@ dictionary AudioDecoderConfig {
|
|
|
141
141
|
required DOMString codec;
|
|
142
142
|
[EnforceRange] required unsigned long sampleRate;
|
|
143
143
|
[EnforceRange] required unsigned long numberOfChannels;
|
|
144
|
-
|
|
144
|
+
AllowSharedBufferSource description;
|
|
145
145
|
};
|
|
146
146
|
|
|
147
147
|
dictionary VideoDecoderConfig {
|
package/webgpu.idl
CHANGED
package/webnn.idl
CHANGED
|
@@ -36,6 +36,8 @@ interface MLContext {
|
|
|
36
36
|
undefined dispatch(MLGraph graph, MLNamedTensors inputs, MLNamedTensors outputs);
|
|
37
37
|
|
|
38
38
|
Promise<MLTensor> createTensor(MLTensorDescriptor descriptor);
|
|
39
|
+
Promise<MLTensor> createConstantTensor(
|
|
40
|
+
MLOperandDescriptor descriptor, AllowSharedBufferSource inputData);
|
|
39
41
|
|
|
40
42
|
Promise<ArrayBuffer> readTensor(MLTensor tensor);
|
|
41
43
|
Promise<undefined> readTensor(MLTensor tensor, AllowSharedBufferSource outputData);
|
|
@@ -133,6 +135,7 @@ interface MLTensor {
|
|
|
133
135
|
readonly attribute FrozenArray<unsigned long> shape;
|
|
134
136
|
readonly attribute boolean readable;
|
|
135
137
|
readonly attribute boolean writable;
|
|
138
|
+
readonly attribute boolean constant;
|
|
136
139
|
|
|
137
140
|
undefined destroy();
|
|
138
141
|
};
|
|
@@ -154,6 +157,9 @@ interface MLGraphBuilder {
|
|
|
154
157
|
// Create a scalar operand from the specified number of the specified type.
|
|
155
158
|
MLOperand constant(MLOperandDataType type, MLNumber value);
|
|
156
159
|
|
|
160
|
+
// Create an operand from a specified constant tensor.
|
|
161
|
+
MLOperand constant(MLTensor tensor);
|
|
162
|
+
|
|
157
163
|
// Compile the graph up to the specified output operands asynchronously.
|
|
158
164
|
Promise<MLGraph> build(MLNamedOperands outputs);
|
|
159
165
|
};
|
package/webxr-depth-sensing.idl
CHANGED
|
@@ -34,6 +34,10 @@ partial interface XRSession {
|
|
|
34
34
|
readonly attribute XRDepthUsage depthUsage;
|
|
35
35
|
readonly attribute XRDepthDataFormat depthDataFormat;
|
|
36
36
|
readonly attribute XRDepthType? depthType;
|
|
37
|
+
readonly attribute boolean? depthActive;
|
|
38
|
+
|
|
39
|
+
undefined pauseDepthSensing();
|
|
40
|
+
undefined resumeDepthSensing();
|
|
37
41
|
};
|
|
38
42
|
|
|
39
43
|
[SecureContext, Exposed=Window]
|
|
@@ -43,9 +47,10 @@ interface XRDepthInformation {
|
|
|
43
47
|
|
|
44
48
|
[SameObject] readonly attribute XRRigidTransform normDepthBufferFromNormView;
|
|
45
49
|
readonly attribute float rawValueToMeters;
|
|
46
|
-
readonly attribute XRView? view;
|
|
47
50
|
};
|
|
48
51
|
|
|
52
|
+
XRDepthInformation includes XRViewGeometry;
|
|
53
|
+
|
|
49
54
|
[Exposed=Window]
|
|
50
55
|
interface XRCPUDepthInformation : XRDepthInformation {
|
|
51
56
|
[SameObject] readonly attribute ArrayBuffer data;
|
package/webxr.idl
CHANGED
|
@@ -118,6 +118,11 @@ interface XRBoundedReferenceSpace : XRReferenceSpace {
|
|
|
118
118
|
readonly attribute FrozenArray<DOMPointReadOnly> boundsGeometry;
|
|
119
119
|
};
|
|
120
120
|
|
|
121
|
+
[SecureContext, Exposed=Window] interface mixin XRViewGeometry {
|
|
122
|
+
readonly attribute Float32Array projectionMatrix;
|
|
123
|
+
[SameObject] readonly attribute XRRigidTransform transform;
|
|
124
|
+
};
|
|
125
|
+
|
|
121
126
|
enum XREye {
|
|
122
127
|
"none",
|
|
123
128
|
"left",
|
|
@@ -126,13 +131,13 @@ enum XREye {
|
|
|
126
131
|
|
|
127
132
|
[SecureContext, Exposed=Window] interface XRView {
|
|
128
133
|
readonly attribute XREye eye;
|
|
129
|
-
readonly attribute Float32Array projectionMatrix;
|
|
130
|
-
[SameObject] readonly attribute XRRigidTransform transform;
|
|
131
134
|
readonly attribute double? recommendedViewportScale;
|
|
132
135
|
|
|
133
136
|
undefined requestViewportScale(double? scale);
|
|
134
137
|
};
|
|
135
138
|
|
|
139
|
+
XRView includes XRViewGeometry;
|
|
140
|
+
|
|
136
141
|
[SecureContext, Exposed=Window] interface XRViewport {
|
|
137
142
|
readonly attribute long x;
|
|
138
143
|
readonly attribute long y;
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
// GENERATED CONTENT - DO NOT EDIT
|
|
2
|
+
// Content was automatically extracted by Reffy into webref
|
|
3
|
+
// (https://github.com/w3c/webref)
|
|
4
|
+
// Source: Writing Assistance APIs (https://webmachinelearning.github.io/writing-assistance-apis/)
|
|
5
|
+
|
|
6
|
+
[Exposed=Window, SecureContext]
|
|
7
|
+
interface Summarizer {
|
|
8
|
+
static Promise<Summarizer> create(optional SummarizerCreateOptions options = {});
|
|
9
|
+
static Promise<Availability> availability(optional SummarizerCreateCoreOptions options = {});
|
|
10
|
+
|
|
11
|
+
Promise<DOMString> summarize(
|
|
12
|
+
DOMString input,
|
|
13
|
+
optional SummarizerSummarizeOptions options = {}
|
|
14
|
+
);
|
|
15
|
+
ReadableStream summarizeStreaming(
|
|
16
|
+
DOMString input,
|
|
17
|
+
optional SummarizerSummarizeOptions options = {}
|
|
18
|
+
);
|
|
19
|
+
|
|
20
|
+
readonly attribute DOMString sharedContext;
|
|
21
|
+
readonly attribute SummarizerType type;
|
|
22
|
+
readonly attribute SummarizerFormat format;
|
|
23
|
+
readonly attribute SummarizerLength length;
|
|
24
|
+
|
|
25
|
+
readonly attribute FrozenArray<DOMString>? expectedInputLanguages;
|
|
26
|
+
readonly attribute FrozenArray<DOMString>? expectedContextLanguages;
|
|
27
|
+
readonly attribute DOMString? outputLanguage;
|
|
28
|
+
|
|
29
|
+
Promise<double> measureInputUsage(
|
|
30
|
+
DOMString input,
|
|
31
|
+
optional SummarizerSummarizeOptions options = {}
|
|
32
|
+
);
|
|
33
|
+
readonly attribute unrestricted double inputQuota;
|
|
34
|
+
};
|
|
35
|
+
Summarizer includes DestroyableModel;
|
|
36
|
+
|
|
37
|
+
dictionary SummarizerCreateCoreOptions {
|
|
38
|
+
SummarizerType type = "key-points";
|
|
39
|
+
SummarizerFormat format = "markdown";
|
|
40
|
+
SummarizerLength length = "short";
|
|
41
|
+
|
|
42
|
+
sequence<DOMString> expectedInputLanguages;
|
|
43
|
+
sequence<DOMString> expectedContextLanguages;
|
|
44
|
+
DOMString outputLanguage;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
dictionary SummarizerCreateOptions : SummarizerCreateCoreOptions {
|
|
48
|
+
AbortSignal signal;
|
|
49
|
+
CreateMonitorCallback monitor;
|
|
50
|
+
|
|
51
|
+
DOMString sharedContext;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
dictionary SummarizerSummarizeOptions {
|
|
55
|
+
AbortSignal signal;
|
|
56
|
+
DOMString context;
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
enum SummarizerType { "tl;dr", "teaser", "key-points", "headline" };
|
|
60
|
+
enum SummarizerFormat { "plain-text", "markdown" };
|
|
61
|
+
enum SummarizerLength { "short", "medium", "long" };
|
|
62
|
+
|
|
63
|
+
[Exposed=Window, SecureContext]
|
|
64
|
+
interface Writer {
|
|
65
|
+
static Promise<Writer> create(optional WriterCreateOptions options = {});
|
|
66
|
+
static Promise<Availability> availability(optional WriterCreateCoreOptions options = {});
|
|
67
|
+
|
|
68
|
+
Promise<DOMString> write(
|
|
69
|
+
DOMString input,
|
|
70
|
+
optional WriterWriteOptions options = {}
|
|
71
|
+
);
|
|
72
|
+
ReadableStream writeStreaming(
|
|
73
|
+
DOMString input,
|
|
74
|
+
optional WriterWriteOptions options = {}
|
|
75
|
+
);
|
|
76
|
+
|
|
77
|
+
readonly attribute DOMString sharedContext;
|
|
78
|
+
readonly attribute WriterTone tone;
|
|
79
|
+
readonly attribute WriterFormat format;
|
|
80
|
+
readonly attribute WriterLength length;
|
|
81
|
+
|
|
82
|
+
readonly attribute FrozenArray<DOMString>? expectedInputLanguages;
|
|
83
|
+
readonly attribute FrozenArray<DOMString>? expectedContextLanguages;
|
|
84
|
+
readonly attribute DOMString? outputLanguage;
|
|
85
|
+
|
|
86
|
+
Promise<double> measureInputUsage(
|
|
87
|
+
DOMString input,
|
|
88
|
+
optional WriterWriteOptions options = {}
|
|
89
|
+
);
|
|
90
|
+
readonly attribute unrestricted double inputQuota;
|
|
91
|
+
};
|
|
92
|
+
Writer includes DestroyableModel;
|
|
93
|
+
|
|
94
|
+
dictionary WriterCreateCoreOptions {
|
|
95
|
+
WriterTone tone = "neutral";
|
|
96
|
+
WriterFormat format = "markdown";
|
|
97
|
+
WriterLength length = "short";
|
|
98
|
+
|
|
99
|
+
sequence<DOMString> expectedInputLanguages;
|
|
100
|
+
sequence<DOMString> expectedContextLanguages;
|
|
101
|
+
DOMString outputLanguage;
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
dictionary WriterCreateOptions : WriterCreateCoreOptions {
|
|
105
|
+
AbortSignal signal;
|
|
106
|
+
CreateMonitorCallback monitor;
|
|
107
|
+
|
|
108
|
+
DOMString sharedContext;
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
dictionary WriterWriteOptions {
|
|
112
|
+
DOMString context;
|
|
113
|
+
AbortSignal signal;
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
enum WriterTone { "formal", "neutral", "casual" };
|
|
117
|
+
enum WriterFormat { "plain-text", "markdown" };
|
|
118
|
+
enum WriterLength { "short", "medium", "long" };
|
|
119
|
+
|
|
120
|
+
[Exposed=Window, SecureContext]
|
|
121
|
+
interface Rewriter {
|
|
122
|
+
static Promise<Rewriter> create(optional RewriterCreateOptions options = {});
|
|
123
|
+
static Promise<Availability> availability(optional RewriterCreateCoreOptions options = {});
|
|
124
|
+
|
|
125
|
+
Promise<DOMString> rewrite(
|
|
126
|
+
DOMString input,
|
|
127
|
+
optional RewriterRewriteOptions options = {}
|
|
128
|
+
);
|
|
129
|
+
ReadableStream rewriteStreaming(
|
|
130
|
+
DOMString input,
|
|
131
|
+
optional RewriterRewriteOptions options = {}
|
|
132
|
+
);
|
|
133
|
+
|
|
134
|
+
readonly attribute DOMString sharedContext;
|
|
135
|
+
readonly attribute RewriterTone tone;
|
|
136
|
+
readonly attribute RewriterFormat format;
|
|
137
|
+
readonly attribute RewriterLength length;
|
|
138
|
+
|
|
139
|
+
readonly attribute FrozenArray<DOMString>? expectedInputLanguages;
|
|
140
|
+
readonly attribute FrozenArray<DOMString>? expectedContextLanguages;
|
|
141
|
+
readonly attribute DOMString? outputLanguage;
|
|
142
|
+
|
|
143
|
+
Promise<double> measureInputUsage(
|
|
144
|
+
DOMString input,
|
|
145
|
+
optional RewriterRewriteOptions options = {}
|
|
146
|
+
);
|
|
147
|
+
readonly attribute unrestricted double inputQuota;
|
|
148
|
+
};
|
|
149
|
+
Rewriter includes DestroyableModel;
|
|
150
|
+
|
|
151
|
+
dictionary RewriterCreateCoreOptions {
|
|
152
|
+
RewriterTone tone = "as-is";
|
|
153
|
+
RewriterFormat format = "as-is";
|
|
154
|
+
RewriterLength length = "as-is";
|
|
155
|
+
|
|
156
|
+
sequence<DOMString> expectedInputLanguages;
|
|
157
|
+
sequence<DOMString> expectedContextLanguages;
|
|
158
|
+
DOMString outputLanguage;
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
dictionary RewriterCreateOptions : RewriterCreateCoreOptions {
|
|
162
|
+
AbortSignal signal;
|
|
163
|
+
CreateMonitorCallback monitor;
|
|
164
|
+
|
|
165
|
+
DOMString sharedContext;
|
|
166
|
+
};
|
|
167
|
+
|
|
168
|
+
dictionary RewriterRewriteOptions {
|
|
169
|
+
DOMString context;
|
|
170
|
+
AbortSignal signal;
|
|
171
|
+
};
|
|
172
|
+
|
|
173
|
+
enum RewriterTone { "as-is", "more-formal", "more-casual" };
|
|
174
|
+
enum RewriterFormat { "as-is", "plain-text", "markdown" };
|
|
175
|
+
enum RewriterLength { "as-is", "shorter", "longer" };
|
|
176
|
+
|
|
177
|
+
[Exposed=Window, SecureContext]
|
|
178
|
+
interface CreateMonitor : EventTarget {
|
|
179
|
+
attribute EventHandler ondownloadprogress;
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
callback CreateMonitorCallback = undefined (CreateMonitor monitor);
|
|
183
|
+
|
|
184
|
+
enum Availability {
|
|
185
|
+
"unavailable",
|
|
186
|
+
"downloadable",
|
|
187
|
+
"downloading",
|
|
188
|
+
"available"
|
|
189
|
+
};
|
|
190
|
+
|
|
191
|
+
interface mixin DestroyableModel {
|
|
192
|
+
undefined destroy();
|
|
193
|
+
};
|
|
File without changes
|