chrome-types 0.1.311 → 0.1.313

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 +56 -3
  2. package/index.d.ts +56 -3
  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 21 2024 22:32:45 GMT+0000 (Coordinated Universal Time)
18
- // Built at 9c5b28be7f43e0f74c0ec2b6c687fa0de7c1e0f4
17
+ // Generated on Tue Oct 29 2024 22:31:40 GMT+0000 (Coordinated Universal Time)
18
+ // Built at 5508ef152b45e6f8f0a7b52e3accccfec95faf35
19
19
 
20
20
  // Includes all types, including MV2 + Platform Apps APIs.
21
21
 
@@ -12190,6 +12190,49 @@ declare namespace chrome {
12190
12190
  ): void;
12191
12191
  }
12192
12192
 
12193
+ /**
12194
+ * Use the `chrome.enterprise.kioskInput` API to change input settings for Kiosk sessions. Note: This API is only available to extensions installed by enterprise policy in ChromeOS Kiosk sessions.
12195
+ *
12196
+ * @since Pending
12197
+ * @chrome-permission enterprise.kioskInput
12198
+ * @chrome-install-location policy
12199
+ * @chrome-platform chromeos
12200
+ * @chrome-platform lacros
12201
+ */
12202
+ export namespace enterprise.kioskInput {
12203
+
12204
+ export interface SetCurrentInputMethodOptions {
12205
+
12206
+ /**
12207
+ * The input method ID to set as current input method. This input method has to be enabled by enterprise policies. Supported IDs are located in https://crsrc.org/c/chrome/browser/resources/chromeos/input\_method.
12208
+ */
12209
+ inputMethodId: string;
12210
+ }
12211
+
12212
+ /**
12213
+ * Sets the current input method. This function only changes the current input method to an enabled input method. Input methods can be enabled by enterprise polices. If the input method ID is invalid, or not enabled, {@link runtime.lastError} will be set with a failure reason.
12214
+ *
12215
+ * @param options Object containing the fields defined in {@link SetCurrentInputMethodOptions}.
12216
+ */
12217
+ export function setCurrentInputMethod(
12218
+
12219
+ options: SetCurrentInputMethodOptions,
12220
+ ): Promise<void>;
12221
+
12222
+ /**
12223
+ * Sets the current input method. This function only changes the current input method to an enabled input method. Input methods can be enabled by enterprise polices. If the input method ID is invalid, or not enabled, {@link runtime.lastError} will be set with a failure reason.
12224
+ *
12225
+ * @param options Object containing the fields defined in {@link SetCurrentInputMethodOptions}.
12226
+ * @param callback Called when the input method is changed or if there is an error.
12227
+ */
12228
+ export function setCurrentInputMethod(
12229
+
12230
+ options: SetCurrentInputMethodOptions,
12231
+
12232
+ callback?: () => void,
12233
+ ): void;
12234
+ }
12235
+
12193
12236
  /**
12194
12237
  * Use the `chrome.enterprise.networkingAttributes` API to read information about your current network. Note: This API is only available to extensions force-installed by enterprise policy.
12195
12238
  *
@@ -32851,7 +32894,7 @@ declare namespace chrome {
32851
32894
  export interface LanguageStatus {
32852
32895
 
32853
32896
  /**
32854
- * Language string in the form language code-region code, where the region may be omitted. Examples are en, en-AU, zh-CH.
32897
+ * Language string in the form of language code-region code, where the region may be omitted. Examples are en, en-AU, zh-CH.
32855
32898
  */
32856
32899
  lang: string;
32857
32900
 
@@ -33011,6 +33054,16 @@ declare namespace chrome {
33011
33054
  lang: string,
33012
33055
  ) => void>;
33013
33056
 
33057
+ /**
33058
+ * Fired when a TTS client requests the install status of a language.
33059
+ *
33060
+ * @since Pending
33061
+ */
33062
+ export const onLanguageStatusRequest: events.Event<(
33063
+ requestor: TtsClient,
33064
+ lang: string,
33065
+ ) => void>;
33066
+
33014
33067
  /**
33015
33068
  * Called by an engine to update its list of voices. This list overrides any voices declared in this extension's manifest.
33016
33069
  *
package/index.d.ts CHANGED
@@ -14,8 +14,8 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- // Generated on Mon Oct 21 2024 22:32:40 GMT+0000 (Coordinated Universal Time)
18
- // Built at 9c5b28be7f43e0f74c0ec2b6c687fa0de7c1e0f4
17
+ // Generated on Tue Oct 29 2024 22:31:35 GMT+0000 (Coordinated Universal Time)
18
+ // Built at 5508ef152b45e6f8f0a7b52e3accccfec95faf35
19
19
 
20
20
  // Includes MV3+ APIs only.
21
21
 
@@ -8320,6 +8320,49 @@ declare namespace chrome {
8320
8320
  ): void;
8321
8321
  }
8322
8322
 
8323
+ /**
8324
+ * Use the `chrome.enterprise.kioskInput` API to change input settings for Kiosk sessions. Note: This API is only available to extensions installed by enterprise policy in ChromeOS Kiosk sessions.
8325
+ *
8326
+ * @since Pending
8327
+ * @chrome-permission enterprise.kioskInput
8328
+ * @chrome-install-location policy
8329
+ * @chrome-platform chromeos
8330
+ * @chrome-platform lacros
8331
+ */
8332
+ export namespace enterprise.kioskInput {
8333
+
8334
+ export interface SetCurrentInputMethodOptions {
8335
+
8336
+ /**
8337
+ * The input method ID to set as current input method. This input method has to be enabled by enterprise policies. Supported IDs are located in https://crsrc.org/c/chrome/browser/resources/chromeos/input\_method.
8338
+ */
8339
+ inputMethodId: string;
8340
+ }
8341
+
8342
+ /**
8343
+ * Sets the current input method. This function only changes the current input method to an enabled input method. Input methods can be enabled by enterprise polices. If the input method ID is invalid, or not enabled, {@link runtime.lastError} will be set with a failure reason.
8344
+ *
8345
+ * @param options Object containing the fields defined in {@link SetCurrentInputMethodOptions}.
8346
+ */
8347
+ export function setCurrentInputMethod(
8348
+
8349
+ options: SetCurrentInputMethodOptions,
8350
+ ): Promise<void>;
8351
+
8352
+ /**
8353
+ * Sets the current input method. This function only changes the current input method to an enabled input method. Input methods can be enabled by enterprise polices. If the input method ID is invalid, or not enabled, {@link runtime.lastError} will be set with a failure reason.
8354
+ *
8355
+ * @param options Object containing the fields defined in {@link SetCurrentInputMethodOptions}.
8356
+ * @param callback Called when the input method is changed or if there is an error.
8357
+ */
8358
+ export function setCurrentInputMethod(
8359
+
8360
+ options: SetCurrentInputMethodOptions,
8361
+
8362
+ callback?: () => void,
8363
+ ): void;
8364
+ }
8365
+
8323
8366
  /**
8324
8367
  * Use the `chrome.enterprise.networkingAttributes` API to read information about your current network. Note: This API is only available to extensions force-installed by enterprise policy.
8325
8368
  *
@@ -25703,7 +25746,7 @@ declare namespace chrome {
25703
25746
  export interface LanguageStatus {
25704
25747
 
25705
25748
  /**
25706
- * Language string in the form language code-region code, where the region may be omitted. Examples are en, en-AU, zh-CH.
25749
+ * Language string in the form of language code-region code, where the region may be omitted. Examples are en, en-AU, zh-CH.
25707
25750
  */
25708
25751
  lang: string;
25709
25752
 
@@ -25863,6 +25906,16 @@ declare namespace chrome {
25863
25906
  lang: string,
25864
25907
  ) => void>;
25865
25908
 
25909
+ /**
25910
+ * Fired when a TTS client requests the install status of a language.
25911
+ *
25912
+ * @since Pending
25913
+ */
25914
+ export const onLanguageStatusRequest: events.Event<(
25915
+ requestor: TtsClient,
25916
+ lang: string,
25917
+ ) => void>;
25918
+
25866
25919
  /**
25867
25920
  * Called by an engine to update its list of voices. This list overrides any voices declared in this extension's manifest.
25868
25921
  *
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "type": "module",
6
6
  "name": "chrome-types",
7
7
  "config": {
8
- "build-hash": "5286a4e5f0638a01"
8
+ "build-hash": "7d91390fb88fae5e"
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.311"
19
+ "version": "0.1.313"
20
20
  }