chrome-types 0.1.309 → 0.1.310

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.
Files changed (3) hide show
  1. package/_all.d.ts +37 -2
  2. package/index.d.ts +37 -2
  3. 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 14 2024 22:32:16 GMT+0000 (Coordinated Universal Time)
18
- // Built at f0afe5b5fcd80b796176cb18c9c4d038ab4e6a48
17
+ // Generated on Tue Oct 15 2024 22:31:29 GMT+0000 (Coordinated Universal Time)
18
+ // Built at 18b49a45850ca4591121fc0ce749b0d7add1dedf
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
@@ -32946,6 +32971,16 @@ declare namespace chrome {
32946
32971
  */
32947
32972
  export const onResume: events.Event<() => void>;
32948
32973
 
32974
+ /**
32975
+ * 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.
32976
+ *
32977
+ * @since Pending
32978
+ */
32979
+ export const onInstallLanguageRequest: events.Event<(
32980
+ requestor: TtsClient,
32981
+ lang: string,
32982
+ ) => void>;
32983
+
32949
32984
  /**
32950
32985
  * Called by an engine to update its list of voices. This list overrides any voices declared in this extension's manifest.
32951
32986
  *
package/index.d.ts CHANGED
@@ -14,8 +14,8 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- // Generated on Mon Oct 14 2024 22:32:11 GMT+0000 (Coordinated Universal Time)
18
- // Built at f0afe5b5fcd80b796176cb18c9c4d038ab4e6a48
17
+ // Generated on Tue Oct 15 2024 22:31:25 GMT+0000 (Coordinated Universal Time)
18
+ // Built at 18b49a45850ca4591121fc0ce749b0d7add1dedf
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
@@ -25798,6 +25823,16 @@ declare namespace chrome {
25798
25823
  */
25799
25824
  export const onResume: events.Event<() => void>;
25800
25825
 
25826
+ /**
25827
+ * 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.
25828
+ *
25829
+ * @since Pending
25830
+ */
25831
+ export const onInstallLanguageRequest: events.Event<(
25832
+ requestor: TtsClient,
25833
+ lang: string,
25834
+ ) => void>;
25835
+
25801
25836
  /**
25802
25837
  * Called by an engine to update its list of voices. This list overrides any voices declared in this extension's manifest.
25803
25838
  *
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "type": "module",
6
6
  "name": "chrome-types",
7
7
  "config": {
8
- "build-hash": "40a875d0356797b9"
8
+ "build-hash": "6a4aecd7ed64747f"
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.309"
19
+ "version": "0.1.310"
20
20
  }