@webref/idl 3.61.5 → 3.62.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/fedcm.idl +4 -2
- package/image-capture.idl +1 -1
- package/largest-contentful-paint.idl +2 -1
- package/mediastream-recording.idl +1 -1
- package/package.json +1 -1
- package/service-workers.idl +1 -1
- package/turtledove.idl +7 -0
- package/webauthn.idl +52 -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 = {});
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
|
|
6
6
|
[Exposed=Window]
|
|
7
7
|
interface LargestContentfulPaint : PerformanceEntry {
|
|
8
|
-
readonly attribute DOMHighResTimeStamp renderTime;
|
|
9
8
|
readonly attribute DOMHighResTimeStamp loadTime;
|
|
10
9
|
readonly attribute unsigned long size;
|
|
11
10
|
readonly attribute DOMString id;
|
|
@@ -13,3 +12,5 @@ interface LargestContentfulPaint : PerformanceEntry {
|
|
|
13
12
|
readonly attribute Element? element;
|
|
14
13
|
[Default] object toJSON();
|
|
15
14
|
};
|
|
15
|
+
|
|
16
|
+
LargestContentfulPaint includes PaintTimingMixin;
|
package/package.json
CHANGED
package/service-workers.idl
CHANGED
|
@@ -34,7 +34,7 @@ interface ServiceWorkerRegistration : EventTarget {
|
|
|
34
34
|
readonly attribute USVString scope;
|
|
35
35
|
readonly attribute ServiceWorkerUpdateViaCache updateViaCache;
|
|
36
36
|
|
|
37
|
-
[NewObject] Promise<
|
|
37
|
+
[NewObject] Promise<ServiceWorkerRegistration> update();
|
|
38
38
|
[NewObject] Promise<boolean> unregister();
|
|
39
39
|
|
|
40
40
|
// event
|
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/webauthn.idl
CHANGED
|
@@ -311,22 +311,37 @@ enum PublicKeyCredentialHint {
|
|
|
311
311
|
partial dictionary AuthenticationExtensionsClientInputs {
|
|
312
312
|
DOMString appid;
|
|
313
313
|
};
|
|
314
|
+
partial dictionary AuthenticationExtensionsClientInputsJSON {
|
|
315
|
+
DOMString appid;
|
|
316
|
+
};
|
|
314
317
|
|
|
315
318
|
partial dictionary AuthenticationExtensionsClientOutputs {
|
|
316
319
|
boolean appid;
|
|
317
320
|
};
|
|
321
|
+
partial dictionary AuthenticationExtensionsClientOutputsJSON {
|
|
322
|
+
boolean appid;
|
|
323
|
+
};
|
|
318
324
|
|
|
319
325
|
partial dictionary AuthenticationExtensionsClientInputs {
|
|
320
326
|
DOMString appidExclude;
|
|
321
327
|
};
|
|
328
|
+
partial dictionary AuthenticationExtensionsClientInputsJSON {
|
|
329
|
+
DOMString appidExclude;
|
|
330
|
+
};
|
|
322
331
|
|
|
323
332
|
partial dictionary AuthenticationExtensionsClientOutputs {
|
|
324
333
|
boolean appidExclude;
|
|
325
334
|
};
|
|
335
|
+
partial dictionary AuthenticationExtensionsClientOutputsJSON {
|
|
336
|
+
boolean appidExclude;
|
|
337
|
+
};
|
|
326
338
|
|
|
327
339
|
partial dictionary AuthenticationExtensionsClientInputs {
|
|
328
340
|
boolean credProps;
|
|
329
341
|
};
|
|
342
|
+
partial dictionary AuthenticationExtensionsClientInputsJSON {
|
|
343
|
+
boolean credProps;
|
|
344
|
+
};
|
|
330
345
|
|
|
331
346
|
dictionary CredentialPropertiesOutput {
|
|
332
347
|
boolean rk;
|
|
@@ -335,33 +350,57 @@ dictionary CredentialPropertiesOutput {
|
|
|
335
350
|
partial dictionary AuthenticationExtensionsClientOutputs {
|
|
336
351
|
CredentialPropertiesOutput credProps;
|
|
337
352
|
};
|
|
353
|
+
partial dictionary AuthenticationExtensionsClientOutputsJSON {
|
|
354
|
+
CredentialPropertiesOutput credProps;
|
|
355
|
+
};
|
|
338
356
|
|
|
339
357
|
dictionary AuthenticationExtensionsPRFValues {
|
|
340
358
|
required BufferSource first;
|
|
341
359
|
BufferSource second;
|
|
342
360
|
};
|
|
361
|
+
dictionary AuthenticationExtensionsPRFValuesJSON {
|
|
362
|
+
required Base64URLString first;
|
|
363
|
+
Base64URLString second;
|
|
364
|
+
};
|
|
343
365
|
|
|
344
366
|
dictionary AuthenticationExtensionsPRFInputs {
|
|
345
367
|
AuthenticationExtensionsPRFValues eval;
|
|
346
368
|
record<DOMString, AuthenticationExtensionsPRFValues> evalByCredential;
|
|
347
369
|
};
|
|
370
|
+
dictionary AuthenticationExtensionsPRFInputsJSON {
|
|
371
|
+
AuthenticationExtensionsPRFValuesJSON eval;
|
|
372
|
+
record<DOMString, AuthenticationExtensionsPRFValuesJSON> evalByCredential;
|
|
373
|
+
};
|
|
348
374
|
|
|
349
375
|
partial dictionary AuthenticationExtensionsClientInputs {
|
|
350
376
|
AuthenticationExtensionsPRFInputs prf;
|
|
351
377
|
};
|
|
378
|
+
partial dictionary AuthenticationExtensionsClientInputsJSON {
|
|
379
|
+
AuthenticationExtensionsPRFInputsJSON prf;
|
|
380
|
+
};
|
|
352
381
|
|
|
353
382
|
dictionary AuthenticationExtensionsPRFOutputs {
|
|
354
383
|
boolean enabled;
|
|
355
384
|
AuthenticationExtensionsPRFValues results;
|
|
356
385
|
};
|
|
386
|
+
dictionary AuthenticationExtensionsPRFOutputsJSON {
|
|
387
|
+
boolean enabled;
|
|
388
|
+
AuthenticationExtensionsPRFValuesJSON results;
|
|
389
|
+
};
|
|
357
390
|
|
|
358
391
|
partial dictionary AuthenticationExtensionsClientOutputs {
|
|
359
392
|
AuthenticationExtensionsPRFOutputs prf;
|
|
360
393
|
};
|
|
394
|
+
partial dictionary AuthenticationExtensionsClientOutputsJSON {
|
|
395
|
+
AuthenticationExtensionsPRFOutputsJSON prf;
|
|
396
|
+
};
|
|
361
397
|
|
|
362
398
|
partial dictionary AuthenticationExtensionsClientInputs {
|
|
363
399
|
AuthenticationExtensionsLargeBlobInputs largeBlob;
|
|
364
400
|
};
|
|
401
|
+
partial dictionary AuthenticationExtensionsClientInputsJSON {
|
|
402
|
+
AuthenticationExtensionsLargeBlobInputsJSON largeBlob;
|
|
403
|
+
};
|
|
365
404
|
|
|
366
405
|
enum LargeBlobSupport {
|
|
367
406
|
"required",
|
|
@@ -373,13 +412,26 @@ dictionary AuthenticationExtensionsLargeBlobInputs {
|
|
|
373
412
|
boolean read;
|
|
374
413
|
BufferSource write;
|
|
375
414
|
};
|
|
415
|
+
dictionary AuthenticationExtensionsLargeBlobInputsJSON {
|
|
416
|
+
DOMString support;
|
|
417
|
+
boolean read;
|
|
418
|
+
Base64URLString write;
|
|
419
|
+
};
|
|
376
420
|
|
|
377
421
|
partial dictionary AuthenticationExtensionsClientOutputs {
|
|
378
422
|
AuthenticationExtensionsLargeBlobOutputs largeBlob;
|
|
379
423
|
};
|
|
424
|
+
partial dictionary AuthenticationExtensionsClientOutputsJSON {
|
|
425
|
+
AuthenticationExtensionsLargeBlobOutputsJSON largeBlob;
|
|
426
|
+
};
|
|
380
427
|
|
|
381
428
|
dictionary AuthenticationExtensionsLargeBlobOutputs {
|
|
382
429
|
boolean supported;
|
|
383
430
|
ArrayBuffer blob;
|
|
384
431
|
boolean written;
|
|
385
432
|
};
|
|
433
|
+
dictionary AuthenticationExtensionsLargeBlobOutputsJSON {
|
|
434
|
+
boolean supported;
|
|
435
|
+
Base64URLString blob;
|
|
436
|
+
boolean written;
|
|
437
|
+
};
|
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
|