chrome-types 0.1.310 → 0.1.312
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/_all.d.ts +53 -2
- package/index.d.ts +53 -2
- package/package.json +2 -2
package/_all.d.ts
CHANGED
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
// Generated on Tue Oct
|
|
18
|
-
// Built at
|
|
17
|
+
// Generated on Tue Oct 22 2024 22:31:13 GMT+0000 (Coordinated Universal Time)
|
|
18
|
+
// Built at fb4bebb91f8e8605559e3fd14641980a0f4ae8f0
|
|
19
19
|
|
|
20
20
|
// Includes all types, including MV2 + Platform Apps APIs.
|
|
21
21
|
|
|
@@ -32836,6 +32836,36 @@ declare namespace chrome {
|
|
|
32836
32836
|
*/
|
|
32837
32837
|
export type VoiceGender = "male" | "female";
|
|
32838
32838
|
|
|
32839
|
+
/**
|
|
32840
|
+
* The install status of a voice.
|
|
32841
|
+
*
|
|
32842
|
+
* @since Pending
|
|
32843
|
+
*/
|
|
32844
|
+
export type LanguageInstallStatus = "notInstalled" | "installing" | "installed" | "failed";
|
|
32845
|
+
|
|
32846
|
+
/**
|
|
32847
|
+
* Install status of a language.
|
|
32848
|
+
*
|
|
32849
|
+
* @since Pending
|
|
32850
|
+
*/
|
|
32851
|
+
export interface LanguageStatus {
|
|
32852
|
+
|
|
32853
|
+
/**
|
|
32854
|
+
* Language string in the form of language code-region code, where the region may be omitted. Examples are en, en-AU, zh-CH.
|
|
32855
|
+
*/
|
|
32856
|
+
lang: string;
|
|
32857
|
+
|
|
32858
|
+
/**
|
|
32859
|
+
* Installation status.
|
|
32860
|
+
*/
|
|
32861
|
+
installStatus: LanguageInstallStatus;
|
|
32862
|
+
|
|
32863
|
+
/**
|
|
32864
|
+
* Detail about installation failures. Optionally populated if the language failed to install.
|
|
32865
|
+
*/
|
|
32866
|
+
error?: string;
|
|
32867
|
+
}
|
|
32868
|
+
|
|
32839
32869
|
/**
|
|
32840
32870
|
* Options specified to the tts.speak() method.
|
|
32841
32871
|
*
|
|
@@ -32981,6 +33011,16 @@ declare namespace chrome {
|
|
|
32981
33011
|
lang: string,
|
|
32982
33012
|
) => void>;
|
|
32983
33013
|
|
|
33014
|
+
/**
|
|
33015
|
+
* Fired when a TTS client requests the install status of a language.
|
|
33016
|
+
*
|
|
33017
|
+
* @since Pending
|
|
33018
|
+
*/
|
|
33019
|
+
export const onLanguageStatusRequest: events.Event<(
|
|
33020
|
+
requestor: TtsClient,
|
|
33021
|
+
lang: string,
|
|
33022
|
+
) => void>;
|
|
33023
|
+
|
|
32984
33024
|
/**
|
|
32985
33025
|
* Called by an engine to update its list of voices. This list overrides any voices declared in this extension's manifest.
|
|
32986
33026
|
*
|
|
@@ -32991,6 +33031,17 @@ declare namespace chrome {
|
|
|
32991
33031
|
|
|
32992
33032
|
voices: tts.TtsVoice[],
|
|
32993
33033
|
): void;
|
|
33034
|
+
|
|
33035
|
+
/**
|
|
33036
|
+
* Called by an engine when a language install is attempted, and when a language is uninstalled. Also called in response to a status request from a client. When a voice is installed or uninstalled, the engine should also call ttsEngine.updateVoices to register the voice.
|
|
33037
|
+
*
|
|
33038
|
+
* @param status The install status of the language.
|
|
33039
|
+
* @since Pending
|
|
33040
|
+
*/
|
|
33041
|
+
export function updateLanguage(
|
|
33042
|
+
|
|
33043
|
+
status: LanguageStatus,
|
|
33044
|
+
): void;
|
|
32994
33045
|
}
|
|
32995
33046
|
|
|
32996
33047
|
/**
|
package/index.d.ts
CHANGED
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
// Generated on Tue Oct
|
|
18
|
-
// Built at
|
|
17
|
+
// Generated on Tue Oct 22 2024 22:31:08 GMT+0000 (Coordinated Universal Time)
|
|
18
|
+
// Built at fb4bebb91f8e8605559e3fd14641980a0f4ae8f0
|
|
19
19
|
|
|
20
20
|
// Includes MV3+ APIs only.
|
|
21
21
|
|
|
@@ -25688,6 +25688,36 @@ declare namespace chrome {
|
|
|
25688
25688
|
*/
|
|
25689
25689
|
export type VoiceGender = "male" | "female";
|
|
25690
25690
|
|
|
25691
|
+
/**
|
|
25692
|
+
* The install status of a voice.
|
|
25693
|
+
*
|
|
25694
|
+
* @since Pending
|
|
25695
|
+
*/
|
|
25696
|
+
export type LanguageInstallStatus = "notInstalled" | "installing" | "installed" | "failed";
|
|
25697
|
+
|
|
25698
|
+
/**
|
|
25699
|
+
* Install status of a language.
|
|
25700
|
+
*
|
|
25701
|
+
* @since Pending
|
|
25702
|
+
*/
|
|
25703
|
+
export interface LanguageStatus {
|
|
25704
|
+
|
|
25705
|
+
/**
|
|
25706
|
+
* Language string in the form of language code-region code, where the region may be omitted. Examples are en, en-AU, zh-CH.
|
|
25707
|
+
*/
|
|
25708
|
+
lang: string;
|
|
25709
|
+
|
|
25710
|
+
/**
|
|
25711
|
+
* Installation status.
|
|
25712
|
+
*/
|
|
25713
|
+
installStatus: LanguageInstallStatus;
|
|
25714
|
+
|
|
25715
|
+
/**
|
|
25716
|
+
* Detail about installation failures. Optionally populated if the language failed to install.
|
|
25717
|
+
*/
|
|
25718
|
+
error?: string;
|
|
25719
|
+
}
|
|
25720
|
+
|
|
25691
25721
|
/**
|
|
25692
25722
|
* Options specified to the tts.speak() method.
|
|
25693
25723
|
*
|
|
@@ -25833,6 +25863,16 @@ declare namespace chrome {
|
|
|
25833
25863
|
lang: string,
|
|
25834
25864
|
) => void>;
|
|
25835
25865
|
|
|
25866
|
+
/**
|
|
25867
|
+
* Fired when a TTS client requests the install status of a language.
|
|
25868
|
+
*
|
|
25869
|
+
* @since Pending
|
|
25870
|
+
*/
|
|
25871
|
+
export const onLanguageStatusRequest: events.Event<(
|
|
25872
|
+
requestor: TtsClient,
|
|
25873
|
+
lang: string,
|
|
25874
|
+
) => void>;
|
|
25875
|
+
|
|
25836
25876
|
/**
|
|
25837
25877
|
* Called by an engine to update its list of voices. This list overrides any voices declared in this extension's manifest.
|
|
25838
25878
|
*
|
|
@@ -25843,6 +25883,17 @@ declare namespace chrome {
|
|
|
25843
25883
|
|
|
25844
25884
|
voices: tts.TtsVoice[],
|
|
25845
25885
|
): void;
|
|
25886
|
+
|
|
25887
|
+
/**
|
|
25888
|
+
* Called by an engine when a language install is attempted, and when a language is uninstalled. Also called in response to a status request from a client. When a voice is installed or uninstalled, the engine should also call ttsEngine.updateVoices to register the voice.
|
|
25889
|
+
*
|
|
25890
|
+
* @param status The install status of the language.
|
|
25891
|
+
* @since Pending
|
|
25892
|
+
*/
|
|
25893
|
+
export function updateLanguage(
|
|
25894
|
+
|
|
25895
|
+
status: LanguageStatus,
|
|
25896
|
+
): void;
|
|
25846
25897
|
}
|
|
25847
25898
|
|
|
25848
25899
|
/**
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"type": "module",
|
|
6
6
|
"name": "chrome-types",
|
|
7
7
|
"config": {
|
|
8
|
-
"build-hash": "
|
|
8
|
+
"build-hash": "2f2ba4c0667c5342"
|
|
9
9
|
},
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
@@ -16,5 +16,5 @@
|
|
|
16
16
|
"url": "https://github.com/GoogleChrome/chrome-types/issues"
|
|
17
17
|
},
|
|
18
18
|
"homepage": "https://github.com/GoogleChrome/chrome-types",
|
|
19
|
-
"version": "0.1.
|
|
19
|
+
"version": "0.1.312"
|
|
20
20
|
}
|