Commit bd5aeb8b authored by github-actions[bot]'s avatar github-actions[bot] Committed by aborovova@mozilla.com
Browse files

Bug 1966363 [wpt PR 52530] - Sync interfaces/ with @webref/idl 3.63.0,

Automatic update from web-platform-tests
Sync interfaces/ with @webref/idl 3.63.0 (#52530)

Co-authored-by: default avatarwpt-pr-bot <wpt-pr-bot@users.noreply.github.com>

No change to WPT results.
--

wpt-commits: be7a765aae51b49ce28f0ed066987fe84412c131
wpt-pr: 52530

Differential Revision: https://phabricator.services.mozilla.com/D250187
parent 54dc8134
Loading
Loading
Loading
Loading
+2 −0
Changes for testing/web-platform/tests/interfaces/crash-reporting.idl: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -8,4 +8,6 @@ interface CrashReportBody : ReportBody {
  [Default] object toJSON();
  readonly attribute DOMString? reason;
  readonly attribute DOMString? stack;
  readonly attribute DOMString? is_top_level;
  readonly attribute DocumentVisibilityState? page_visibility;
};
+16 −3
Changes for testing/web-platform/tests/interfaces/digital-credentials.idl: 16 added lines, 3 removed lines.
Original line number Diff line number Diff line
// GENERATED CONTENT - DO NOT EDIT
// Content was automatically extracted by Reffy into webref
// (https://github.com/w3c/webref)
// Source: Digital Credentials (https://wicg.github.io/digital-credentials/)
// Source: Digital Credentials (https://w3c-fedid.github.io/digital-credentials/)

partial dictionary CredentialRequestOptions {
  DigitalCredentialRequestOptions digital;
};

dictionary DigitalCredentialRequestOptions {
  sequence<DigitalCredentialRequest> requests;
  sequence<DigitalCredentialGetRequest> requests;
};

dictionary DigitalCredentialRequest {
dictionary DigitalCredentialGetRequest {
  required DOMString protocol;
  required object data;
};

partial dictionary CredentialCreationOptions {
  DigitalCredentialCreationOptions digital;
};

dictionary DigitalCredentialCreationOptions {
  sequence<DigitalCredentialCreateRequest> requests;
};

dictionary DigitalCredentialCreateRequest {
  required DOMString protocol;
  required object data;
};
+8 −8
Changes for testing/web-platform/tests/interfaces/speech-api.idl: 8 added lines, 8 removed lines.
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@
// (https://github.com/w3c/webref)
// Source: Web Speech API (https://webaudio.github.io/web-speech-api/)

[Exposed=Window]
[SecureContext, Exposed=Window]
interface SpeechRecognition : EventTarget {
    constructor();

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

[Exposed=Window]
[SecureContext, Exposed=Window]
interface SpeechRecognitionErrorEvent : Event {
    constructor(DOMString type, SpeechRecognitionErrorEventInit eventInitDict);
    readonly attribute SpeechRecognitionErrorCode error;
@@ -74,14 +74,14 @@ dictionary SpeechRecognitionErrorEventInit : EventInit {
};

// Item in N-best list
[Exposed=Window]
[SecureContext, Exposed=Window]
interface SpeechRecognitionAlternative {
    readonly attribute DOMString transcript;
    readonly attribute float confidence;
};

// A complete one-shot simple response
[Exposed=Window]
[SecureContext, Exposed=Window]
interface SpeechRecognitionResult {
    readonly attribute unsigned long length;
    getter SpeechRecognitionAlternative item(unsigned long index);
@@ -89,14 +89,14 @@ interface SpeechRecognitionResult {
};

// A collection of responses (used in continuous mode)
[Exposed=Window]
[SecureContext, Exposed=Window]
interface SpeechRecognitionResultList {
    readonly attribute unsigned long length;
    getter SpeechRecognitionResult item(unsigned long index);
};

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

// The object representing a phrase for contextual biasing.
[Exposed=Window]
[SecureContext, Exposed=Window]
interface SpeechRecognitionPhrase {
    constructor(DOMString phrase, optional float boost = 1.0);
    readonly attribute DOMString phrase;
@@ -117,7 +117,7 @@ interface SpeechRecognitionPhrase {
};

// The object representing a list of phrases for contextual biasing.
[Exposed=Window]
[SecureContext, Exposed=Window]
interface SpeechRecognitionPhraseList {
    constructor(sequence<SpeechRecognitionPhrase> phrases);
    readonly attribute unsigned long length;
+85 −0
Changes for testing/web-platform/tests/interfaces/translation-api.idl: 85 added lines, 0 removed lines.
Original line number Diff line number Diff line
// GENERATED CONTENT - DO NOT EDIT
// Content was automatically extracted by Reffy into webref
// (https://github.com/w3c/webref)
// Source: Translator and Language Detector APIs (https://webmachinelearning.github.io/translation-api/)

[Exposed=Window, SecureContext]
interface Translator {
  static Promise<Translator> create(TranslatorCreateOptions options);
  static Promise<Availability> availability(TranslatorCreateCoreOptions options);

  Promise<DOMString> translate(
    DOMString input,
    optional TranslatorTranslateOptions options = {}
  );
  ReadableStream translateStreaming(
    DOMString input,
    optional TranslatorTranslateOptions options = {}
  );

  readonly attribute DOMString sourceLanguage;
  readonly attribute DOMString targetLanguage;

  Promise<double> measureInputUsage(
    DOMString input,
    optional TranslatorTranslateOptions options = {}
  );
  readonly attribute unrestricted double inputQuota;
};
Translator includes DestroyableModel;

dictionary TranslatorCreateCoreOptions {
  required DOMString sourceLanguage;
  required DOMString targetLanguage;
};

dictionary TranslatorCreateOptions : TranslatorCreateCoreOptions {
  AbortSignal signal;
  CreateMonitorCallback monitor;
};

dictionary TranslatorTranslateOptions {
  AbortSignal signal;
};

[Exposed=Window, SecureContext]
interface LanguageDetector {
  static Promise<LanguageDetector> create(
    optional LanguageDetectorCreateOptions options = {}
  );
  static Promise<Availability> availability(
    optional LanguageDetectorCreateCoreOptions options = {}
  );

  Promise<sequence<LanguageDetectionResult>> detect(
    DOMString input,
    optional LanguageDetectorDetectOptions options = {}
  );

  readonly attribute FrozenArray<DOMString>? expectedInputLanguages;

  Promise<double> measureInputUsage(
    DOMString input,
    optional LanguageDetectorDetectOptions options = {}
  );
  readonly attribute unrestricted double inputQuota;
};
LanguageDetector includes DestroyableModel;

dictionary LanguageDetectorCreateCoreOptions {
  sequence<DOMString> expectedInputLanguages;
};

dictionary LanguageDetectorCreateOptions : LanguageDetectorCreateCoreOptions {
  AbortSignal signal;
  CreateMonitorCallback monitor;
};

dictionary LanguageDetectorDetectOptions {
  AbortSignal signal;
};

dictionary LanguageDetectionResult {
  DOMString detectedLanguage;
  double confidence;
};
+1 −2
Changes for testing/web-platform/tests/interfaces/webnn.idl: 1 added line, 2 removed lines.
Original line number Diff line number Diff line
@@ -799,8 +799,7 @@ partial dictionary MLOpSupportLimits {
enum MLPaddingMode {
  "constant",
  "edge",
  "reflection",
  "symmetric"
  "reflection"
};

dictionary MLPadOptions : MLOperatorOptions {