chrome-types 0.1.438 → 0.1.440

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 +78 -9
  2. package/index.d.ts +78 -9
  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 Aug 07 2026 10:30:43 GMT+0000 (Coordinated Universal Time)
18
- // Built at 643e7af1cc7bface538c316062390a4c4ff955b8
17
+ // Generated on Fri Aug 21 2026 10:21:31 GMT+0000 (Coordinated Universal Time)
18
+ // Built at 881af3b2eae819b52a9b19b3d5fe172bbf943cca
19
19
 
20
20
  // Includes all types, including MV2 + Platform Apps APIs.
21
21
 
@@ -763,7 +763,7 @@ declare namespace chrome {
763
763
  /**
764
764
  * Name of this alarm.
765
765
  *
766
- * @since Pending
766
+ * @since Chrome 152
767
767
  */
768
768
  name?: string;
769
769
 
@@ -4939,6 +4939,7 @@ declare namespace chrome {
4939
4939
  * Websites' appcaches.
4940
4940
  *
4941
4941
  * @deprecated Support for appcache has been removed. This data type will be ignored.
4942
+ * @chrome-deprecated-since Chrome 152
4942
4943
  */
4943
4944
  appcache?: boolean;
4944
4945
 
@@ -5022,6 +5023,7 @@ declare namespace chrome {
5022
5023
  * Websites' WebSQL data.
5023
5024
  *
5024
5025
  * @deprecated Support for WebSQL has been removed. This data type will be ignored.
5026
+ * @chrome-deprecated-since Chrome 152
5025
5027
  */
5026
5028
  webSQL?: boolean;
5027
5029
  }
@@ -5103,6 +5105,7 @@ declare namespace chrome {
5103
5105
  * @chrome-returns-extra since Chrome 96
5104
5106
  * @returns Resolves when websites' appcache data has been cleared.
5105
5107
  * @deprecated Support for appcache has been removed. This function has no effect.
5108
+ * @chrome-deprecated-since Chrome 152
5106
5109
  */
5107
5110
  export function removeAppcache(
5108
5111
 
@@ -5113,6 +5116,7 @@ declare namespace chrome {
5113
5116
  * Clears websites' appcache data.
5114
5117
  *
5115
5118
  * @deprecated Support for appcache has been removed. This function has no effect.
5119
+ * @chrome-deprecated-since Chrome 152
5116
5120
  */
5117
5121
  export function removeAppcache(
5118
5122
 
@@ -5395,6 +5399,7 @@ declare namespace chrome {
5395
5399
  * @chrome-returns-extra since Chrome 96
5396
5400
  * @returns Resolves when websites' WebSQL databases have been cleared.
5397
5401
  * @deprecated Support for WebSQL has been removed. This function has no effect.
5402
+ * @chrome-deprecated-since Chrome 152
5398
5403
  */
5399
5404
  export function removeWebSQL(
5400
5405
 
@@ -5405,6 +5410,7 @@ declare namespace chrome {
5405
5410
  * Clears websites' WebSQL data.
5406
5411
  *
5407
5412
  * @deprecated Support for WebSQL has been removed. This function has no effect.
5413
+ * @chrome-deprecated-since Chrome 152
5408
5414
  */
5409
5415
  export function removeWebSQL(
5410
5416
 
@@ -10202,7 +10208,7 @@ declare namespace chrome {
10202
10208
  /**
10203
10209
  * Creates a pane within panel's sidebar.
10204
10210
  *
10205
- * @chrome-returns-extra since Pending
10211
+ * @chrome-returns-extra since Chrome 152
10206
10212
  * @param title Text that is displayed in sidebar caption.
10207
10213
  * @returns A callback invoked when the sidebar is created.
10208
10214
  */
@@ -10242,7 +10248,7 @@ declare namespace chrome {
10242
10248
  /**
10243
10249
  * Creates a pane within panel's sidebar.
10244
10250
  *
10245
- * @chrome-returns-extra since Pending
10251
+ * @chrome-returns-extra since Chrome 152
10246
10252
  * @param title Text that is displayed in sidebar caption.
10247
10253
  * @returns A callback invoked when the sidebar is created.
10248
10254
  */
@@ -10348,7 +10354,7 @@ declare namespace chrome {
10348
10354
  /**
10349
10355
  * Sets an expression that is evaluated within the inspected page. The result is displayed in the sidebar pane.
10350
10356
  *
10351
- * @chrome-returns-extra since Pending
10357
+ * @chrome-returns-extra since Chrome 152
10352
10358
  * @param expression An expression to be evaluated in context of the inspected page. JavaScript objects and DOM nodes are displayed in an expandable tree similar to the console/watch.
10353
10359
  * @param rootTitle An optional title for the root of the expression tree.
10354
10360
  * @returns A callback invoked after the sidebar pane is updated with the expression evaluation results.
@@ -10378,7 +10384,7 @@ declare namespace chrome {
10378
10384
  /**
10379
10385
  * Sets a JSON-compliant object to be displayed in the sidebar pane.
10380
10386
  *
10381
- * @chrome-returns-extra since Pending
10387
+ * @chrome-returns-extra since Chrome 152
10382
10388
  * @param jsonObject An object to be displayed in context of the inspected page. Evaluated in the context of the caller (API client).
10383
10389
  * @param rootTitle An optional title for the root of the expression tree.
10384
10390
  * @returns A callback invoked after the sidebar is updated with the object.
@@ -10472,7 +10478,7 @@ declare namespace chrome {
10472
10478
  /**
10473
10479
  * Creates an extension panel.
10474
10480
  *
10475
- * @chrome-returns-extra since Pending
10481
+ * @chrome-returns-extra since Chrome 152
10476
10482
  * @param title Title that is displayed next to the extension icon in the Developer Tools toolbar.
10477
10483
  * @param iconPath Path of the panel's icon relative to the extension directory.
10478
10484
  * @param pagePath Path of the panel's HTML page relative to the extension directory.
@@ -10530,7 +10536,7 @@ declare namespace chrome {
10530
10536
  /**
10531
10537
  * Requests DevTools to open a URL in a Developer Tools panel.
10532
10538
  *
10533
- * @chrome-returns-extra since Pending
10539
+ * @chrome-returns-extra since Chrome 152
10534
10540
  * @param url The URL of the resource to open.
10535
10541
  * @param lineNumber Specifies the line number to scroll to when the resource is loaded.
10536
10542
  * @param columnNumber Specifies the column number to scroll to when the resource is loaded.
@@ -24623,6 +24629,69 @@ declare namespace chrome {
24623
24629
  ) => void>;
24624
24630
  }
24625
24631
 
24632
+ /**
24633
+ * Use the `chrome.publicSuffix` API to query the browser's Public Suffix List (PSL).
24634
+ *
24635
+ * @since Pending
24636
+ * @chrome-permission publicSuffix
24637
+ */
24638
+ export namespace publicSuffix {
24639
+
24640
+ /**
24641
+ * The encoding to use for returned domains.
24642
+ */
24643
+ export type DomainEncoding = "punycode" | "display";
24644
+
24645
+ export interface DomainOptions {
24646
+
24647
+ /**
24648
+ * The encoding to use for the returned domain. Defaults to "punycode", but pass "display" if displaying the domain to the user. Generally, "display" will use Unicode, except in cases where that would be unsafe due to ["Unicode confusables"](https://www.unicode.org/reports/tr39/#Confusable_Detection).
24649
+ */
24650
+ encoding?: DomainEncoding;
24651
+
24652
+ /**
24653
+ * Whether IP addresses may be returned as domains. Defaults to false. Note: When allowed, IP addresses are returned without being looked up in the Public Suffix List.
24654
+ */
24655
+ allowIPAddress?: boolean;
24656
+
24657
+ /**
24658
+ * Whether known public suffixes may be returned as domains. Defaults to false.
24659
+ */
24660
+ allowPlainSuffix?: boolean;
24661
+
24662
+ /**
24663
+ * Whether unknown TLDs should be considered as a public suffix. For example, for non-public hostnames like `printer.internal-network`. Defaults to false.
24664
+ */
24665
+ allowUnknownSuffix?: boolean;
24666
+ }
24667
+
24668
+ /**
24669
+ * Determines whether `hostname` is itself a known public suffix.
24670
+ */
24671
+ export function isKnownSuffix(
24672
+
24673
+ hostname: string,
24674
+ ): boolean;
24675
+
24676
+ /**
24677
+ * Gets the known public suffix for `hostname`, if any.
24678
+ */
24679
+ export function getKnownSuffix(
24680
+
24681
+ hostname: string,
24682
+ ): string | undefined;
24683
+
24684
+ /**
24685
+ * Gets the registrable domain for `hostname`, if any.
24686
+ */
24687
+ export function getDomain(
24688
+
24689
+ hostname: string,
24690
+
24691
+ options?: DomainOptions,
24692
+ ): string | undefined;
24693
+ }
24694
+
24626
24695
  /**
24627
24696
  * Use the `chrome.readingList` API to read from and modify the items in the [Reading List](https://support.google.com/chrome/answer/7343019).
24628
24697
  *
package/index.d.ts CHANGED
@@ -14,8 +14,8 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- // Generated on Fri Aug 07 2026 10:30:40 GMT+0000 (Coordinated Universal Time)
18
- // Built at 643e7af1cc7bface538c316062390a4c4ff955b8
17
+ // Generated on Fri Aug 21 2026 10:21:27 GMT+0000 (Coordinated Universal Time)
18
+ // Built at 881af3b2eae819b52a9b19b3d5fe172bbf943cca
19
19
 
20
20
  // Includes MV3+ APIs only.
21
21
 
@@ -821,7 +821,7 @@ declare namespace chrome {
821
821
  /**
822
822
  * Name of this alarm.
823
823
  *
824
- * @since Pending
824
+ * @since Chrome 152
825
825
  */
826
826
  name?: string;
827
827
 
@@ -1886,6 +1886,7 @@ declare namespace chrome {
1886
1886
  * Websites' appcaches.
1887
1887
  *
1888
1888
  * @deprecated Support for appcache has been removed. This data type will be ignored.
1889
+ * @chrome-deprecated-since Chrome 152
1889
1890
  */
1890
1891
  appcache?: boolean;
1891
1892
 
@@ -1969,6 +1970,7 @@ declare namespace chrome {
1969
1970
  * Websites' WebSQL data.
1970
1971
  *
1971
1972
  * @deprecated Support for WebSQL has been removed. This data type will be ignored.
1973
+ * @chrome-deprecated-since Chrome 152
1972
1974
  */
1973
1975
  webSQL?: boolean;
1974
1976
  }
@@ -2050,6 +2052,7 @@ declare namespace chrome {
2050
2052
  * @chrome-returns-extra since Chrome 96
2051
2053
  * @returns Resolves when websites' appcache data has been cleared.
2052
2054
  * @deprecated Support for appcache has been removed. This function has no effect.
2055
+ * @chrome-deprecated-since Chrome 152
2053
2056
  */
2054
2057
  export function removeAppcache(
2055
2058
 
@@ -2060,6 +2063,7 @@ declare namespace chrome {
2060
2063
  * Clears websites' appcache data.
2061
2064
  *
2062
2065
  * @deprecated Support for appcache has been removed. This function has no effect.
2066
+ * @chrome-deprecated-since Chrome 152
2063
2067
  */
2064
2068
  export function removeAppcache(
2065
2069
 
@@ -2342,6 +2346,7 @@ declare namespace chrome {
2342
2346
  * @chrome-returns-extra since Chrome 96
2343
2347
  * @returns Resolves when websites' WebSQL databases have been cleared.
2344
2348
  * @deprecated Support for WebSQL has been removed. This function has no effect.
2349
+ * @chrome-deprecated-since Chrome 152
2345
2350
  */
2346
2351
  export function removeWebSQL(
2347
2352
 
@@ -2352,6 +2357,7 @@ declare namespace chrome {
2352
2357
  * Clears websites' WebSQL data.
2353
2358
  *
2354
2359
  * @deprecated Support for WebSQL has been removed. This function has no effect.
2360
+ * @chrome-deprecated-since Chrome 152
2355
2361
  */
2356
2362
  export function removeWebSQL(
2357
2363
 
@@ -6468,7 +6474,7 @@ declare namespace chrome {
6468
6474
  /**
6469
6475
  * Creates a pane within panel's sidebar.
6470
6476
  *
6471
- * @chrome-returns-extra since Pending
6477
+ * @chrome-returns-extra since Chrome 152
6472
6478
  * @param title Text that is displayed in sidebar caption.
6473
6479
  * @returns A callback invoked when the sidebar is created.
6474
6480
  */
@@ -6508,7 +6514,7 @@ declare namespace chrome {
6508
6514
  /**
6509
6515
  * Creates a pane within panel's sidebar.
6510
6516
  *
6511
- * @chrome-returns-extra since Pending
6517
+ * @chrome-returns-extra since Chrome 152
6512
6518
  * @param title Text that is displayed in sidebar caption.
6513
6519
  * @returns A callback invoked when the sidebar is created.
6514
6520
  */
@@ -6614,7 +6620,7 @@ declare namespace chrome {
6614
6620
  /**
6615
6621
  * Sets an expression that is evaluated within the inspected page. The result is displayed in the sidebar pane.
6616
6622
  *
6617
- * @chrome-returns-extra since Pending
6623
+ * @chrome-returns-extra since Chrome 152
6618
6624
  * @param expression An expression to be evaluated in context of the inspected page. JavaScript objects and DOM nodes are displayed in an expandable tree similar to the console/watch.
6619
6625
  * @param rootTitle An optional title for the root of the expression tree.
6620
6626
  * @returns A callback invoked after the sidebar pane is updated with the expression evaluation results.
@@ -6644,7 +6650,7 @@ declare namespace chrome {
6644
6650
  /**
6645
6651
  * Sets a JSON-compliant object to be displayed in the sidebar pane.
6646
6652
  *
6647
- * @chrome-returns-extra since Pending
6653
+ * @chrome-returns-extra since Chrome 152
6648
6654
  * @param jsonObject An object to be displayed in context of the inspected page. Evaluated in the context of the caller (API client).
6649
6655
  * @param rootTitle An optional title for the root of the expression tree.
6650
6656
  * @returns A callback invoked after the sidebar is updated with the object.
@@ -6738,7 +6744,7 @@ declare namespace chrome {
6738
6744
  /**
6739
6745
  * Creates an extension panel.
6740
6746
  *
6741
- * @chrome-returns-extra since Pending
6747
+ * @chrome-returns-extra since Chrome 152
6742
6748
  * @param title Title that is displayed next to the extension icon in the Developer Tools toolbar.
6743
6749
  * @param iconPath Path of the panel's icon relative to the extension directory.
6744
6750
  * @param pagePath Path of the panel's HTML page relative to the extension directory.
@@ -6796,7 +6802,7 @@ declare namespace chrome {
6796
6802
  /**
6797
6803
  * Requests DevTools to open a URL in a Developer Tools panel.
6798
6804
  *
6799
- * @chrome-returns-extra since Pending
6805
+ * @chrome-returns-extra since Chrome 152
6800
6806
  * @param url The URL of the resource to open.
6801
6807
  * @param lineNumber Specifies the line number to scroll to when the resource is loaded.
6802
6808
  * @param columnNumber Specifies the column number to scroll to when the resource is loaded.
@@ -17427,6 +17433,69 @@ declare namespace chrome {
17427
17433
  ) => void>;
17428
17434
  }
17429
17435
 
17436
+ /**
17437
+ * Use the `chrome.publicSuffix` API to query the browser's Public Suffix List (PSL).
17438
+ *
17439
+ * @since Pending
17440
+ * @chrome-permission publicSuffix
17441
+ */
17442
+ export namespace publicSuffix {
17443
+
17444
+ /**
17445
+ * The encoding to use for returned domains.
17446
+ */
17447
+ export type DomainEncoding = "punycode" | "display";
17448
+
17449
+ export interface DomainOptions {
17450
+
17451
+ /**
17452
+ * The encoding to use for the returned domain. Defaults to "punycode", but pass "display" if displaying the domain to the user. Generally, "display" will use Unicode, except in cases where that would be unsafe due to ["Unicode confusables"](https://www.unicode.org/reports/tr39/#Confusable_Detection).
17453
+ */
17454
+ encoding?: DomainEncoding;
17455
+
17456
+ /**
17457
+ * Whether IP addresses may be returned as domains. Defaults to false. Note: When allowed, IP addresses are returned without being looked up in the Public Suffix List.
17458
+ */
17459
+ allowIPAddress?: boolean;
17460
+
17461
+ /**
17462
+ * Whether known public suffixes may be returned as domains. Defaults to false.
17463
+ */
17464
+ allowPlainSuffix?: boolean;
17465
+
17466
+ /**
17467
+ * Whether unknown TLDs should be considered as a public suffix. For example, for non-public hostnames like `printer.internal-network`. Defaults to false.
17468
+ */
17469
+ allowUnknownSuffix?: boolean;
17470
+ }
17471
+
17472
+ /**
17473
+ * Determines whether `hostname` is itself a known public suffix.
17474
+ */
17475
+ export function isKnownSuffix(
17476
+
17477
+ hostname: string,
17478
+ ): boolean;
17479
+
17480
+ /**
17481
+ * Gets the known public suffix for `hostname`, if any.
17482
+ */
17483
+ export function getKnownSuffix(
17484
+
17485
+ hostname: string,
17486
+ ): string | undefined;
17487
+
17488
+ /**
17489
+ * Gets the registrable domain for `hostname`, if any.
17490
+ */
17491
+ export function getDomain(
17492
+
17493
+ hostname: string,
17494
+
17495
+ options?: DomainOptions,
17496
+ ): string | undefined;
17497
+ }
17498
+
17430
17499
  /**
17431
17500
  * Use the `chrome.readingList` API to read from and modify the items in the [Reading List](https://support.google.com/chrome/answer/7343019).
17432
17501
  *
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "type": "module",
6
6
  "name": "chrome-types",
7
7
  "config": {
8
- "build-hash": "8fc63e7eb4b9cdb2"
8
+ "build-hash": "0a3a6f049500804d"
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.438"
19
+ "version": "0.1.440"
20
20
  }