chrome-types 0.1.242 → 0.1.244

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 +45 -49
  2. package/index.d.ts +45 -49
  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 Fri Nov 10 2023 22:30:19 GMT+0000 (Coordinated Universal Time)
18
- // Built at 1a4f48fcb53e7010d05ddd87d3bb771616cfa109
17
+ // Generated on Tue Nov 14 2023 22:29:47 GMT+0000 (Coordinated Universal Time)
18
+ // Built at b8a39f2bd08915e20a1b7524c9a67567c5f056b5
19
19
 
20
20
  // Includes all types, including MV2 + Platform Apps APIs.
21
21
 
@@ -6301,6 +6301,11 @@ declare namespace chrome {
6301
6301
  */
6302
6302
  export type AutoVerifyContentSetting = "allow" | "block";
6303
6303
 
6304
+ /**
6305
+ * @since Pending
6306
+ */
6307
+ export type ClipboardContentSetting = "allow" | "block" | "ask";
6308
+
6304
6309
  /**
6305
6310
  * @since Chrome 44
6306
6311
  */
@@ -6462,6 +6467,18 @@ declare namespace chrome {
6462
6467
  */
6463
6468
  export const microphone: ContentSetting<MicrophoneContentSetting>;
6464
6469
 
6470
+ /**
6471
+ * Whether to allow sites to access the clipboard via advanced capabilities of the Async Clipboard API. "Advanced" capabilities include anything besides writing built-in formats after a user gesture, i.e. the ability to read, the ability to write custom formats, and the ability to write without a user gesture. One of
6472
+ * `allow`: Allow sites to use advanced clipboard capabilities,
6473
+ * `block`: Don't allow sites to use advanced clipboard capabilties,
6474
+ * `ask`: Ask when a site wants to use advanced clipboard capabilities.
6475
+ * Default is `ask`.
6476
+ * The primary URL is the URL of the document which requested clipboard access. The secondary URL is not used.
6477
+ *
6478
+ * @since Pending
6479
+ */
6480
+ export const clipboard: ContentSetting<ClipboardContentSetting>;
6481
+
6465
6482
  /**
6466
6483
  * Whether to allow sites to access the camera. One of
6467
6484
  * `allow`: Allow sites to access the camera,
@@ -6950,7 +6967,7 @@ declare namespace chrome {
6950
6967
  ): void;
6951
6968
 
6952
6969
  /**
6953
- * Retrieves all cookies from a single cookie store that match the given information. The cookies returned will be sorted, with those with the longest path first. If multiple cookies have the same path length, those with the earliest creation time will be first. Only retrieves cookies for domains which the extension has host permissions to
6970
+ * Retrieves all cookies from a single cookie store that match the given information. The cookies returned will be sorted, with those with the longest path first. If multiple cookies have the same path length, those with the earliest creation time will be first. Only retrieves cookies for domains which the extension has host permissions to.
6954
6971
  *
6955
6972
  * @chrome-returns-extra since Chrome 88
6956
6973
  * @param details Information to filter the cookies being retrieved.
@@ -7004,7 +7021,7 @@ declare namespace chrome {
7004
7021
  ): Promise<Cookie[]>;
7005
7022
 
7006
7023
  /**
7007
- * Retrieves all cookies from a single cookie store that match the given information. The cookies returned will be sorted, with those with the longest path first. If multiple cookies have the same path length, those with the earliest creation time will be first. Only retrieves cookies for domains which the extension has host permissions to
7024
+ * Retrieves all cookies from a single cookie store that match the given information. The cookies returned will be sorted, with those with the longest path first. If multiple cookies have the same path length, those with the earliest creation time will be first. Only retrieves cookies for domains which the extension has host permissions to.
7008
7025
  *
7009
7026
  * @param details Information to filter the cookies being retrieved.
7010
7027
  */
@@ -8370,11 +8387,32 @@ declare namespace chrome {
8370
8387
  export const GUARANTEED_MINIMUM_STATIC_RULES: 30000;
8371
8388
 
8372
8389
  /**
8373
- * The maximum number of combined dynamic and session scoped rules an extension can add.
8390
+ * The maximum number of dynamic rules that an extension can add.
8374
8391
  *
8375
- * @since Chrome 90
8392
+ * @since Missing 89 vs 119
8393
+ */
8394
+ export const MAX_NUMBER_OF_DYNAMIC_RULES: 30000;
8395
+
8396
+ /**
8397
+ * The maximum number of "unsafe" dynamic rules that an extension can add.
8398
+ *
8399
+ * @since Pending
8400
+ */
8401
+ export const MAX_NUMBER_OF_UNSAFE_DYNAMIC_RULES: 5000;
8402
+
8403
+ /**
8404
+ * The maximum number of session scoped rules that an extension can add.
8405
+ *
8406
+ * @since Pending
8407
+ */
8408
+ export const MAX_NUMBER_OF_SESSION_RULES: 5000;
8409
+
8410
+ /**
8411
+ * The maximum number of "unsafe" session scoped rules that an extension can add.
8412
+ *
8413
+ * @since Pending
8376
8414
  */
8377
- export const MAX_NUMBER_OF_DYNAMIC_AND_SESSION_RULES: 5000;
8415
+ export const MAX_NUMBER_OF_UNSAFE_SESSION_RULES: 5000;
8378
8416
 
8379
8417
  /**
8380
8418
  * Time interval within which `MAX_GETMATCHEDRULES_CALLS_PER_INTERVAL getMatchedRules` calls can be made, specified in minutes. Additional calls will fail immediately and set {@link runtime.lastError}. Note: `getMatchedRules` calls associated with a user gesture are exempt from the quota.
@@ -11234,48 +11272,6 @@ declare namespace chrome {
11234
11272
  ): void;
11235
11273
  }
11236
11274
 
11237
- /**
11238
- * Use the `chrome.enterprise.kioskInput` API to change input settings for Kiosk sessions. Note: This API is only available extensions and Chrome apps installed by enterprise policy in ChromeOS Kiosk sessions.
11239
- *
11240
- * @since Pending
11241
- * @chrome-permission enterprise.kioskInput
11242
- * @chrome-install-location policy
11243
- * @chrome-platform chromeos
11244
- */
11245
- export namespace enterprise.kioskInput {
11246
-
11247
- export interface SetCurrentInputMethodOptions {
11248
-
11249
- /**
11250
- * 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.
11251
- */
11252
- inputMethodId: string;
11253
- }
11254
-
11255
- /**
11256
- * 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.
11257
- *
11258
- * @param options Object containing the fields defined in {@link SetCurrentInputMethodOptions}.
11259
- */
11260
- export function setCurrentInputMethod(
11261
-
11262
- options: SetCurrentInputMethodOptions,
11263
- ): Promise<void>;
11264
-
11265
- /**
11266
- * 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.
11267
- *
11268
- * @param options Object containing the fields defined in {@link SetCurrentInputMethodOptions}.
11269
- * @param callback Called when the input method is changed or if there is an error.
11270
- */
11271
- export function setCurrentInputMethod(
11272
-
11273
- options: SetCurrentInputMethodOptions,
11274
-
11275
- callback?: () => void,
11276
- ): void;
11277
- }
11278
-
11279
11275
  /**
11280
11276
  * 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.
11281
11277
  *
package/index.d.ts CHANGED
@@ -14,8 +14,8 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- // Generated on Fri Nov 10 2023 22:30:12 GMT+0000 (Coordinated Universal Time)
18
- // Built at 1a4f48fcb53e7010d05ddd87d3bb771616cfa109
17
+ // Generated on Tue Nov 14 2023 22:29:42 GMT+0000 (Coordinated Universal Time)
18
+ // Built at b8a39f2bd08915e20a1b7524c9a67567c5f056b5
19
19
 
20
20
  // Includes MV3+ APIs only.
21
21
 
@@ -3047,6 +3047,11 @@ declare namespace chrome {
3047
3047
  */
3048
3048
  export type AutoVerifyContentSetting = "allow" | "block";
3049
3049
 
3050
+ /**
3051
+ * @since Pending
3052
+ */
3053
+ export type ClipboardContentSetting = "allow" | "block" | "ask";
3054
+
3050
3055
  /**
3051
3056
  * @since Chrome 44
3052
3057
  */
@@ -3208,6 +3213,18 @@ declare namespace chrome {
3208
3213
  */
3209
3214
  export const microphone: ContentSetting<MicrophoneContentSetting>;
3210
3215
 
3216
+ /**
3217
+ * Whether to allow sites to access the clipboard via advanced capabilities of the Async Clipboard API. "Advanced" capabilities include anything besides writing built-in formats after a user gesture, i.e. the ability to read, the ability to write custom formats, and the ability to write without a user gesture. One of
3218
+ * `allow`: Allow sites to use advanced clipboard capabilities,
3219
+ * `block`: Don't allow sites to use advanced clipboard capabilties,
3220
+ * `ask`: Ask when a site wants to use advanced clipboard capabilities.
3221
+ * Default is `ask`.
3222
+ * The primary URL is the URL of the document which requested clipboard access. The secondary URL is not used.
3223
+ *
3224
+ * @since Pending
3225
+ */
3226
+ export const clipboard: ContentSetting<ClipboardContentSetting>;
3227
+
3211
3228
  /**
3212
3229
  * Whether to allow sites to access the camera. One of
3213
3230
  * `allow`: Allow sites to access the camera,
@@ -3696,7 +3713,7 @@ declare namespace chrome {
3696
3713
  ): void;
3697
3714
 
3698
3715
  /**
3699
- * Retrieves all cookies from a single cookie store that match the given information. The cookies returned will be sorted, with those with the longest path first. If multiple cookies have the same path length, those with the earliest creation time will be first. Only retrieves cookies for domains which the extension has host permissions to
3716
+ * Retrieves all cookies from a single cookie store that match the given information. The cookies returned will be sorted, with those with the longest path first. If multiple cookies have the same path length, those with the earliest creation time will be first. Only retrieves cookies for domains which the extension has host permissions to.
3700
3717
  *
3701
3718
  * @chrome-returns-extra since Chrome 88
3702
3719
  * @param details Information to filter the cookies being retrieved.
@@ -3750,7 +3767,7 @@ declare namespace chrome {
3750
3767
  ): Promise<Cookie[]>;
3751
3768
 
3752
3769
  /**
3753
- * Retrieves all cookies from a single cookie store that match the given information. The cookies returned will be sorted, with those with the longest path first. If multiple cookies have the same path length, those with the earliest creation time will be first. Only retrieves cookies for domains which the extension has host permissions to
3770
+ * Retrieves all cookies from a single cookie store that match the given information. The cookies returned will be sorted, with those with the longest path first. If multiple cookies have the same path length, those with the earliest creation time will be first. Only retrieves cookies for domains which the extension has host permissions to.
3754
3771
  *
3755
3772
  * @param details Information to filter the cookies being retrieved.
3756
3773
  */
@@ -5116,11 +5133,32 @@ declare namespace chrome {
5116
5133
  export const GUARANTEED_MINIMUM_STATIC_RULES: 30000;
5117
5134
 
5118
5135
  /**
5119
- * The maximum number of combined dynamic and session scoped rules an extension can add.
5136
+ * The maximum number of dynamic rules that an extension can add.
5120
5137
  *
5121
- * @since Chrome 90
5138
+ * @since Missing 89 vs 119
5139
+ */
5140
+ export const MAX_NUMBER_OF_DYNAMIC_RULES: 30000;
5141
+
5142
+ /**
5143
+ * The maximum number of "unsafe" dynamic rules that an extension can add.
5144
+ *
5145
+ * @since Pending
5146
+ */
5147
+ export const MAX_NUMBER_OF_UNSAFE_DYNAMIC_RULES: 5000;
5148
+
5149
+ /**
5150
+ * The maximum number of session scoped rules that an extension can add.
5151
+ *
5152
+ * @since Pending
5153
+ */
5154
+ export const MAX_NUMBER_OF_SESSION_RULES: 5000;
5155
+
5156
+ /**
5157
+ * The maximum number of "unsafe" session scoped rules that an extension can add.
5158
+ *
5159
+ * @since Pending
5122
5160
  */
5123
- export const MAX_NUMBER_OF_DYNAMIC_AND_SESSION_RULES: 5000;
5161
+ export const MAX_NUMBER_OF_UNSAFE_SESSION_RULES: 5000;
5124
5162
 
5125
5163
  /**
5126
5164
  * Time interval within which `MAX_GETMATCHEDRULES_CALLS_PER_INTERVAL getMatchedRules` calls can be made, specified in minutes. Additional calls will fail immediately and set {@link runtime.lastError}. Note: `getMatchedRules` calls associated with a user gesture are exempt from the quota.
@@ -7364,48 +7402,6 @@ declare namespace chrome {
7364
7402
  ): void;
7365
7403
  }
7366
7404
 
7367
- /**
7368
- * Use the `chrome.enterprise.kioskInput` API to change input settings for Kiosk sessions. Note: This API is only available extensions and Chrome apps installed by enterprise policy in ChromeOS Kiosk sessions.
7369
- *
7370
- * @since Pending
7371
- * @chrome-permission enterprise.kioskInput
7372
- * @chrome-install-location policy
7373
- * @chrome-platform chromeos
7374
- */
7375
- export namespace enterprise.kioskInput {
7376
-
7377
- export interface SetCurrentInputMethodOptions {
7378
-
7379
- /**
7380
- * 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.
7381
- */
7382
- inputMethodId: string;
7383
- }
7384
-
7385
- /**
7386
- * 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.
7387
- *
7388
- * @param options Object containing the fields defined in {@link SetCurrentInputMethodOptions}.
7389
- */
7390
- export function setCurrentInputMethod(
7391
-
7392
- options: SetCurrentInputMethodOptions,
7393
- ): Promise<void>;
7394
-
7395
- /**
7396
- * 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.
7397
- *
7398
- * @param options Object containing the fields defined in {@link SetCurrentInputMethodOptions}.
7399
- * @param callback Called when the input method is changed or if there is an error.
7400
- */
7401
- export function setCurrentInputMethod(
7402
-
7403
- options: SetCurrentInputMethodOptions,
7404
-
7405
- callback?: () => void,
7406
- ): void;
7407
- }
7408
-
7409
7405
  /**
7410
7406
  * 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.
7411
7407
  *
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "type": "module",
6
6
  "name": "chrome-types",
7
7
  "config": {
8
- "build-hash": "14bba66470c70cfc"
8
+ "build-hash": "67bf45bedebe744f"
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.242"
19
+ "version": "0.1.244"
20
20
  }