@webref/idl 3.62.0 → 3.63.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/crash-reporting.idl +2 -0
- package/digital-credentials.idl +16 -3
- package/largest-contentful-paint.idl +2 -1
- package/package.json +1 -1
- package/service-workers.idl +1 -1
- package/speech-api.idl +8 -8
- package/translation-api.idl +85 -0
- package/webauthn.idl +52 -0
- package/webnn.idl +1 -2
package/crash-reporting.idl
CHANGED
package/digital-credentials.idl
CHANGED
|
@@ -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://
|
|
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<
|
|
11
|
+
sequence<DigitalCredentialGetRequest> requests;
|
|
12
12
|
};
|
|
13
13
|
|
|
14
|
-
dictionary
|
|
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
|
};
|
|
@@ -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/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;
|
|
@@ -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/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
|
+
};
|