@webref/idl 3.62.1 → 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/package.json +1 -1
- package/speech-api.idl +8 -8
- package/translation-api.idl +85 -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
|
};
|
package/package.json
CHANGED
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
|
+
};
|