chrome-types 0.1.309 → 0.1.311
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 +78 -2
- package/index.d.ts +78 -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 Mon Oct
|
|
18
|
-
// Built at
|
|
17
|
+
// Generated on Mon Oct 21 2024 22:32:45 GMT+0000 (Coordinated Universal Time)
|
|
18
|
+
// Built at 9c5b28be7f43e0f74c0ec2b6c687fa0de7c1e0f4
|
|
19
19
|
|
|
20
20
|
// Includes all types, including MV2 + Platform Apps APIs.
|
|
21
21
|
|
|
@@ -32804,6 +32804,31 @@ declare namespace chrome {
|
|
|
32804
32804
|
*/
|
|
32805
32805
|
export namespace ttsEngine {
|
|
32806
32806
|
|
|
32807
|
+
/**
|
|
32808
|
+
* Type of requestor.
|
|
32809
|
+
*
|
|
32810
|
+
* @since Pending
|
|
32811
|
+
*/
|
|
32812
|
+
export type TtsClientSource = "chromefeature" | "extension";
|
|
32813
|
+
|
|
32814
|
+
/**
|
|
32815
|
+
* Identifier for the client requesting status.
|
|
32816
|
+
*
|
|
32817
|
+
* @since Pending
|
|
32818
|
+
*/
|
|
32819
|
+
export interface TtsClient {
|
|
32820
|
+
|
|
32821
|
+
/**
|
|
32822
|
+
* Client making a language management request. For an extension, this is the unique extension ID. For Chrome features, this is the human-readable name of the feature.
|
|
32823
|
+
*/
|
|
32824
|
+
id: string;
|
|
32825
|
+
|
|
32826
|
+
/**
|
|
32827
|
+
* Type of requestor.
|
|
32828
|
+
*/
|
|
32829
|
+
source: TtsClientSource;
|
|
32830
|
+
}
|
|
32831
|
+
|
|
32807
32832
|
/**
|
|
32808
32833
|
* @deprecated Gender is deprecated and will be ignored.
|
|
32809
32834
|
* @since Chrome 54
|
|
@@ -32811,6 +32836,36 @@ declare namespace chrome {
|
|
|
32811
32836
|
*/
|
|
32812
32837
|
export type VoiceGender = "male" | "female";
|
|
32813
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 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
|
+
|
|
32814
32869
|
/**
|
|
32815
32870
|
* Options specified to the tts.speak() method.
|
|
32816
32871
|
*
|
|
@@ -32946,6 +33001,16 @@ declare namespace chrome {
|
|
|
32946
33001
|
*/
|
|
32947
33002
|
export const onResume: events.Event<() => void>;
|
|
32948
33003
|
|
|
33004
|
+
/**
|
|
33005
|
+
* Fired when a TTS client requests to install a new language. The engine should attempt to download and install the language, and call ttsEngine.updateLanguage with the result. On success, the engine should also call ttsEngine.updateVoices to register the newly available voices.
|
|
33006
|
+
*
|
|
33007
|
+
* @since Pending
|
|
33008
|
+
*/
|
|
33009
|
+
export const onInstallLanguageRequest: events.Event<(
|
|
33010
|
+
requestor: TtsClient,
|
|
33011
|
+
lang: string,
|
|
33012
|
+
) => void>;
|
|
33013
|
+
|
|
32949
33014
|
/**
|
|
32950
33015
|
* Called by an engine to update its list of voices. This list overrides any voices declared in this extension's manifest.
|
|
32951
33016
|
*
|
|
@@ -32956,6 +33021,17 @@ declare namespace chrome {
|
|
|
32956
33021
|
|
|
32957
33022
|
voices: tts.TtsVoice[],
|
|
32958
33023
|
): void;
|
|
33024
|
+
|
|
33025
|
+
/**
|
|
33026
|
+
* 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.
|
|
33027
|
+
*
|
|
33028
|
+
* @param status The install status of the language.
|
|
33029
|
+
* @since Pending
|
|
33030
|
+
*/
|
|
33031
|
+
export function updateLanguage(
|
|
33032
|
+
|
|
33033
|
+
status: LanguageStatus,
|
|
33034
|
+
): void;
|
|
32959
33035
|
}
|
|
32960
33036
|
|
|
32961
33037
|
/**
|
package/index.d.ts
CHANGED
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
// Generated on Mon Oct
|
|
18
|
-
// Built at
|
|
17
|
+
// Generated on Mon Oct 21 2024 22:32:40 GMT+0000 (Coordinated Universal Time)
|
|
18
|
+
// Built at 9c5b28be7f43e0f74c0ec2b6c687fa0de7c1e0f4
|
|
19
19
|
|
|
20
20
|
// Includes MV3+ APIs only.
|
|
21
21
|
|
|
@@ -25656,6 +25656,31 @@ declare namespace chrome {
|
|
|
25656
25656
|
*/
|
|
25657
25657
|
export namespace ttsEngine {
|
|
25658
25658
|
|
|
25659
|
+
/**
|
|
25660
|
+
* Type of requestor.
|
|
25661
|
+
*
|
|
25662
|
+
* @since Pending
|
|
25663
|
+
*/
|
|
25664
|
+
export type TtsClientSource = "chromefeature" | "extension";
|
|
25665
|
+
|
|
25666
|
+
/**
|
|
25667
|
+
* Identifier for the client requesting status.
|
|
25668
|
+
*
|
|
25669
|
+
* @since Pending
|
|
25670
|
+
*/
|
|
25671
|
+
export interface TtsClient {
|
|
25672
|
+
|
|
25673
|
+
/**
|
|
25674
|
+
* Client making a language management request. For an extension, this is the unique extension ID. For Chrome features, this is the human-readable name of the feature.
|
|
25675
|
+
*/
|
|
25676
|
+
id: string;
|
|
25677
|
+
|
|
25678
|
+
/**
|
|
25679
|
+
* Type of requestor.
|
|
25680
|
+
*/
|
|
25681
|
+
source: TtsClientSource;
|
|
25682
|
+
}
|
|
25683
|
+
|
|
25659
25684
|
/**
|
|
25660
25685
|
* @deprecated Gender is deprecated and will be ignored.
|
|
25661
25686
|
* @since Chrome 54
|
|
@@ -25663,6 +25688,36 @@ declare namespace chrome {
|
|
|
25663
25688
|
*/
|
|
25664
25689
|
export type VoiceGender = "male" | "female";
|
|
25665
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 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
|
+
|
|
25666
25721
|
/**
|
|
25667
25722
|
* Options specified to the tts.speak() method.
|
|
25668
25723
|
*
|
|
@@ -25798,6 +25853,16 @@ declare namespace chrome {
|
|
|
25798
25853
|
*/
|
|
25799
25854
|
export const onResume: events.Event<() => void>;
|
|
25800
25855
|
|
|
25856
|
+
/**
|
|
25857
|
+
* Fired when a TTS client requests to install a new language. The engine should attempt to download and install the language, and call ttsEngine.updateLanguage with the result. On success, the engine should also call ttsEngine.updateVoices to register the newly available voices.
|
|
25858
|
+
*
|
|
25859
|
+
* @since Pending
|
|
25860
|
+
*/
|
|
25861
|
+
export const onInstallLanguageRequest: events.Event<(
|
|
25862
|
+
requestor: TtsClient,
|
|
25863
|
+
lang: string,
|
|
25864
|
+
) => void>;
|
|
25865
|
+
|
|
25801
25866
|
/**
|
|
25802
25867
|
* Called by an engine to update its list of voices. This list overrides any voices declared in this extension's manifest.
|
|
25803
25868
|
*
|
|
@@ -25808,6 +25873,17 @@ declare namespace chrome {
|
|
|
25808
25873
|
|
|
25809
25874
|
voices: tts.TtsVoice[],
|
|
25810
25875
|
): void;
|
|
25876
|
+
|
|
25877
|
+
/**
|
|
25878
|
+
* 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.
|
|
25879
|
+
*
|
|
25880
|
+
* @param status The install status of the language.
|
|
25881
|
+
* @since Pending
|
|
25882
|
+
*/
|
|
25883
|
+
export function updateLanguage(
|
|
25884
|
+
|
|
25885
|
+
status: LanguageStatus,
|
|
25886
|
+
): void;
|
|
25811
25887
|
}
|
|
25812
25888
|
|
|
25813
25889
|
/**
|
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": "5286a4e5f0638a01"
|
|
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.311"
|
|
20
20
|
}
|