Skip to content

Commit be7a765

Browse files
Sync interfaces/ with @webref/idl 3.63.0 (#52530)
Co-authored-by: wpt-pr-bot <[email protected]> No change to WPT results.
1 parent 99e8d52 commit be7a765

File tree

5 files changed

+112
-13
lines changed

5 files changed

+112
-13
lines changed

interfaces/crash-reporting.idl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,6 @@ interface CrashReportBody : ReportBody {
88
[Default] object toJSON();
99
readonly attribute DOMString? reason;
1010
readonly attribute DOMString? stack;
11+
readonly attribute DOMString? is_top_level;
12+
readonly attribute DocumentVisibilityState? page_visibility;
1113
};

interfaces/digital-credentials.idl

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,30 @@
11
// GENERATED CONTENT - DO NOT EDIT
22
// Content was automatically extracted by Reffy into webref
33
// (https://github.com/w3c/webref)
4-
// Source: Digital Credentials (https://wicg.github.io/digital-credentials/)
4+
// Source: Digital Credentials (https://w3c-fedid.github.io/digital-credentials/)
55

66
partial dictionary CredentialRequestOptions {
77
DigitalCredentialRequestOptions digital;
88
};
99

1010
dictionary DigitalCredentialRequestOptions {
11-
sequence<DigitalCredentialRequest> requests;
11+
sequence<DigitalCredentialGetRequest> requests;
1212
};
1313

14-
dictionary DigitalCredentialRequest {
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 {
1528
required DOMString protocol;
1629
required object data;
1730
};

interfaces/speech-api.idl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// (https://github.com/w3c/webref)
44
// Source: Web Speech API (https://webaudio.github.io/web-speech-api/)
55

6-
[Exposed=Window]
6+
[SecureContext, Exposed=Window]
77
interface SpeechRecognition : EventTarget {
88
constructor();
99

@@ -61,7 +61,7 @@ enum AvailabilityStatus {
6161
"available"
6262
};
6363

64-
[Exposed=Window]
64+
[SecureContext, Exposed=Window]
6565
interface SpeechRecognitionErrorEvent : Event {
6666
constructor(DOMString type, SpeechRecognitionErrorEventInit eventInitDict);
6767
readonly attribute SpeechRecognitionErrorCode error;
@@ -74,29 +74,29 @@ dictionary SpeechRecognitionErrorEventInit : EventInit {
7474
};
7575

7676
// Item in N-best list
77-
[Exposed=Window]
77+
[SecureContext, Exposed=Window]
7878
interface SpeechRecognitionAlternative {
7979
readonly attribute DOMString transcript;
8080
readonly attribute float confidence;
8181
};
8282

8383
// A complete one-shot simple response
84-
[Exposed=Window]
84+
[SecureContext, Exposed=Window]
8585
interface SpeechRecognitionResult {
8686
readonly attribute unsigned long length;
8787
getter SpeechRecognitionAlternative item(unsigned long index);
8888
readonly attribute boolean isFinal;
8989
};
9090

9191
// A collection of responses (used in continuous mode)
92-
[Exposed=Window]
92+
[SecureContext, Exposed=Window]
9393
interface SpeechRecognitionResultList {
9494
readonly attribute unsigned long length;
9595
getter SpeechRecognitionResult item(unsigned long index);
9696
};
9797

9898
// A full response, which could be interim or final, part of a continuous response or not
99-
[Exposed=Window]
99+
[SecureContext, Exposed=Window]
100100
interface SpeechRecognitionEvent : Event {
101101
constructor(DOMString type, SpeechRecognitionEventInit eventInitDict);
102102
readonly attribute unsigned long resultIndex;
@@ -109,15 +109,15 @@ dictionary SpeechRecognitionEventInit : EventInit {
109109
};
110110

111111
// The object representing a phrase for contextual biasing.
112-
[Exposed=Window]
112+
[SecureContext, Exposed=Window]
113113
interface SpeechRecognitionPhrase {
114114
constructor(DOMString phrase, optional float boost = 1.0);
115115
readonly attribute DOMString phrase;
116116
readonly attribute float boost;
117117
};
118118

119119
// The object representing a list of phrases for contextual biasing.
120-
[Exposed=Window]
120+
[SecureContext, Exposed=Window]
121121
interface SpeechRecognitionPhraseList {
122122
constructor(sequence<SpeechRecognitionPhrase> phrases);
123123
readonly attribute unsigned long length;

interfaces/translation-api.idl

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
};

interfaces/webnn.idl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -799,8 +799,7 @@ partial dictionary MLOpSupportLimits {
799799
enum MLPaddingMode {
800800
"constant",
801801
"edge",
802-
"reflection",
803-
"symmetric"
802+
"reflection"
804803
};
805804

806805
dictionary MLPadOptions : MLOperatorOptions {

0 commit comments

Comments
 (0)