chrome-types 0.1.70 → 0.1.74

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 +23 -8
  2. package/index.d.ts +23 -8
  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 Wed Nov 17 2021 22:27:59 GMT+0000 (Coordinated Universal Time)
18
- // Built at 59836cee87c7f89a5dbc869bbd3ae4d2290487bb
17
+ // Generated on Wed Dec 15 2021 22:29:07 GMT+0000 (Coordinated Universal Time)
18
+ // Built at 3b76b1d66afc55f20ba6462f45fbafd2d3d026d6
19
19
 
20
20
  // Includes all types, including MV2 + Platform Apps APIs.
21
21
 
@@ -11908,7 +11908,7 @@ declare namespace chrome {
11908
11908
  ): void;
11909
11909
 
11910
11910
  /**
11911
- * Fetches the device's hostname as set by DeviceHostnameTemplate policy. If the current user is not affiliated or no hostname has been set by the the enterprise policy, returns an empty string.
11911
+ * Fetches the device's hostname as set by DeviceHostnameTemplate policy. If the current user is not affiliated or no hostname has been set by the enterprise policy, returns an empty string.
11912
11912
  *
11913
11913
  * @chrome-returns-extra since Pending
11914
11914
  * @since Chrome 82
@@ -11916,7 +11916,7 @@ declare namespace chrome {
11916
11916
  export function getDeviceHostname(): Promise<string>;
11917
11917
 
11918
11918
  /**
11919
- * Fetches the device's hostname as set by DeviceHostnameTemplate policy. If the current user is not affiliated or no hostname has been set by the the enterprise policy, returns an empty string.
11919
+ * Fetches the device's hostname as set by DeviceHostnameTemplate policy. If the current user is not affiliated or no hostname has been set by the enterprise policy, returns an empty string.
11920
11920
  *
11921
11921
  * @param callback Called with hostname of the device.
11922
11922
  * @since Chrome 82
@@ -12589,6 +12589,13 @@ declare namespace chrome {
12589
12589
  windowId?: number,
12590
12590
  ): Window[];
12591
12591
 
12592
+ /**
12593
+ * Retrieves the state of the extension's access to Incognito-mode. This corresponds to the user-controlled per-extension 'Allowed in Incognito' setting accessible via the chrome://extensions page.
12594
+ *
12595
+ * @chrome-returns-extra since Pending
12596
+ */
12597
+ export function isAllowedIncognitoAccess(): Promise<boolean>;
12598
+
12592
12599
  /**
12593
12600
  * Retrieves the state of the extension's access to Incognito-mode. This corresponds to the user-controlled per-extension 'Allowed in Incognito' setting accessible via the chrome://extensions page.
12594
12601
  */
@@ -12597,11 +12604,18 @@ declare namespace chrome {
12597
12604
  /**
12598
12605
  * @param isAllowedAccess True if the extension has access to Incognito mode, false otherwise.
12599
12606
  */
12600
- callback: (
12607
+ callback?: (
12601
12608
  isAllowedAccess: boolean,
12602
12609
  ) => void,
12603
12610
  ): void;
12604
12611
 
12612
+ /**
12613
+ * Retrieves the state of the extension's access to the 'file://' scheme. This corresponds to the user-controlled per-extension 'Allow access to File URLs' setting accessible via the chrome://extensions page.
12614
+ *
12615
+ * @chrome-returns-extra since Pending
12616
+ */
12617
+ export function isAllowedFileSchemeAccess(): Promise<boolean>;
12618
+
12605
12619
  /**
12606
12620
  * Retrieves the state of the extension's access to the 'file://' scheme. This corresponds to the user-controlled per-extension 'Allow access to File URLs' setting accessible via the chrome://extensions page.
12607
12621
  */
@@ -12610,7 +12624,7 @@ declare namespace chrome {
12610
12624
  /**
12611
12625
  * @param isAllowedAccess True if the extension can access the 'file://' scheme, false otherwise.
12612
12626
  */
12613
- callback: (
12627
+ callback?: (
12614
12628
  isAllowedAccess: boolean,
12615
12629
  ) => void,
12616
12630
  ): void;
@@ -12990,6 +13004,7 @@ declare namespace chrome {
12990
13004
  * @chrome-permission fileBrowserHandler
12991
13005
  * @chrome-disallow-service-workers
12992
13006
  * @chrome-platform chromeos
13007
+ * @chrome-platform lacros
12993
13008
  */
12994
13009
  export namespace fileBrowserHandler {
12995
13010
 
@@ -21371,7 +21386,7 @@ declare namespace chrome {
21371
21386
  /**
21372
21387
  * The maximum number of times that {@link submitJob} can be called per minute.
21373
21388
  */
21374
- export const MAX_SUBMIT_JOB_CALLS_PER_MINUTE: 20;
21389
+ export const MAX_SUBMIT_JOB_CALLS_PER_MINUTE: 40;
21375
21390
 
21376
21391
  /**
21377
21392
  * The maximum number of times that {@link getPrinterInfo} can be called per minute.
@@ -27120,7 +27135,7 @@ declare namespace chrome {
27120
27135
  /**
27121
27136
  * The group's color.
27122
27137
  */
27123
- export type Color = "grey" | "blue" | "red" | "yellow" | "green" | "pink" | "purple" | "cyan";
27138
+ export type Color = "grey" | "blue" | "red" | "yellow" | "green" | "pink" | "purple" | "cyan" | "orange";
27124
27139
 
27125
27140
  export interface TabGroup {
27126
27141
 
package/index.d.ts CHANGED
@@ -14,8 +14,8 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- // Generated on Wed Nov 17 2021 22:27:54 GMT+0000 (Coordinated Universal Time)
18
- // Built at 59836cee87c7f89a5dbc869bbd3ae4d2290487bb
17
+ // Generated on Wed Dec 15 2021 22:29:01 GMT+0000 (Coordinated Universal Time)
18
+ // Built at 3b76b1d66afc55f20ba6462f45fbafd2d3d026d6
19
19
 
20
20
  // Includes MV3+ APIs only.
21
21
 
@@ -7879,7 +7879,7 @@ declare namespace chrome {
7879
7879
  ): void;
7880
7880
 
7881
7881
  /**
7882
- * Fetches the device's hostname as set by DeviceHostnameTemplate policy. If the current user is not affiliated or no hostname has been set by the the enterprise policy, returns an empty string.
7882
+ * Fetches the device's hostname as set by DeviceHostnameTemplate policy. If the current user is not affiliated or no hostname has been set by the enterprise policy, returns an empty string.
7883
7883
  *
7884
7884
  * @chrome-returns-extra since Pending
7885
7885
  * @since Chrome 82
@@ -7887,7 +7887,7 @@ declare namespace chrome {
7887
7887
  export function getDeviceHostname(): Promise<string>;
7888
7888
 
7889
7889
  /**
7890
- * Fetches the device's hostname as set by DeviceHostnameTemplate policy. If the current user is not affiliated or no hostname has been set by the the enterprise policy, returns an empty string.
7890
+ * Fetches the device's hostname as set by DeviceHostnameTemplate policy. If the current user is not affiliated or no hostname has been set by the enterprise policy, returns an empty string.
7891
7891
  *
7892
7892
  * @param callback Called with hostname of the device.
7893
7893
  * @since Chrome 82
@@ -8455,6 +8455,13 @@ declare namespace chrome {
8455
8455
  */
8456
8456
  export function getBackgroundPage(): Window | undefined;
8457
8457
 
8458
+ /**
8459
+ * Retrieves the state of the extension's access to Incognito-mode. This corresponds to the user-controlled per-extension 'Allowed in Incognito' setting accessible via the chrome://extensions page.
8460
+ *
8461
+ * @chrome-returns-extra since Pending
8462
+ */
8463
+ export function isAllowedIncognitoAccess(): Promise<boolean>;
8464
+
8458
8465
  /**
8459
8466
  * Retrieves the state of the extension's access to Incognito-mode. This corresponds to the user-controlled per-extension 'Allowed in Incognito' setting accessible via the chrome://extensions page.
8460
8467
  */
@@ -8463,11 +8470,18 @@ declare namespace chrome {
8463
8470
  /**
8464
8471
  * @param isAllowedAccess True if the extension has access to Incognito mode, false otherwise.
8465
8472
  */
8466
- callback: (
8473
+ callback?: (
8467
8474
  isAllowedAccess: boolean,
8468
8475
  ) => void,
8469
8476
  ): void;
8470
8477
 
8478
+ /**
8479
+ * Retrieves the state of the extension's access to the 'file://' scheme. This corresponds to the user-controlled per-extension 'Allow access to File URLs' setting accessible via the chrome://extensions page.
8480
+ *
8481
+ * @chrome-returns-extra since Pending
8482
+ */
8483
+ export function isAllowedFileSchemeAccess(): Promise<boolean>;
8484
+
8471
8485
  /**
8472
8486
  * Retrieves the state of the extension's access to the 'file://' scheme. This corresponds to the user-controlled per-extension 'Allow access to File URLs' setting accessible via the chrome://extensions page.
8473
8487
  */
@@ -8476,7 +8490,7 @@ declare namespace chrome {
8476
8490
  /**
8477
8491
  * @param isAllowedAccess True if the extension can access the 'file://' scheme, false otherwise.
8478
8492
  */
8479
- callback: (
8493
+ callback?: (
8480
8494
  isAllowedAccess: boolean,
8481
8495
  ) => void,
8482
8496
  ): void;
@@ -8856,6 +8870,7 @@ declare namespace chrome {
8856
8870
  * @chrome-permission fileBrowserHandler
8857
8871
  * @chrome-disallow-service-workers
8858
8872
  * @chrome-platform chromeos
8873
+ * @chrome-platform lacros
8859
8874
  */
8860
8875
  export namespace fileBrowserHandler {
8861
8876
 
@@ -14293,7 +14308,7 @@ declare namespace chrome {
14293
14308
  /**
14294
14309
  * The maximum number of times that {@link submitJob} can be called per minute.
14295
14310
  */
14296
- export const MAX_SUBMIT_JOB_CALLS_PER_MINUTE: 20;
14311
+ export const MAX_SUBMIT_JOB_CALLS_PER_MINUTE: 40;
14297
14312
 
14298
14313
  /**
14299
14314
  * The maximum number of times that {@link getPrinterInfo} can be called per minute.
@@ -17569,7 +17584,7 @@ declare namespace chrome {
17569
17584
  /**
17570
17585
  * The group's color.
17571
17586
  */
17572
- export type Color = "grey" | "blue" | "red" | "yellow" | "green" | "pink" | "purple" | "cyan";
17587
+ export type Color = "grey" | "blue" | "red" | "yellow" | "green" | "pink" | "purple" | "cyan" | "orange";
17573
17588
 
17574
17589
  export interface TabGroup {
17575
17590
 
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "type": "module",
6
6
  "name": "chrome-types",
7
7
  "config": {
8
- "build-hash": "7a537eca1cf5f1bd"
8
+ "build-hash": "5dbc01a35996ed47"
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.70"
19
+ "version": "0.1.74"
20
20
  }