chrome-types 0.1.439 → 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 +65 -2
  2. package/index.d.ts +65 -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 Wed Aug 12 2026 22:51:32 GMT+0000 (Coordinated Universal Time)
18
- // Built at 91778f422826a1ed4e7459c2ccc7ab407a4fa649
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
 
@@ -24629,6 +24629,69 @@ declare namespace chrome {
24629
24629
  ) => void>;
24630
24630
  }
24631
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
+
24632
24695
  /**
24633
24696
  * Use the `chrome.readingList` API to read from and modify the items in the [Reading List](https://support.google.com/chrome/answer/7343019).
24634
24697
  *
package/index.d.ts CHANGED
@@ -14,8 +14,8 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- // Generated on Wed Aug 12 2026 22:51:28 GMT+0000 (Coordinated Universal Time)
18
- // Built at 91778f422826a1ed4e7459c2ccc7ab407a4fa649
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
 
@@ -17433,6 +17433,69 @@ declare namespace chrome {
17433
17433
  ) => void>;
17434
17434
  }
17435
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
+
17436
17499
  /**
17437
17500
  * Use the `chrome.readingList` API to read from and modify the items in the [Reading List](https://support.google.com/chrome/answer/7343019).
17438
17501
  *
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "type": "module",
6
6
  "name": "chrome-types",
7
7
  "config": {
8
- "build-hash": "f432240bdaa8d483"
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.439"
19
+ "version": "0.1.440"
20
20
  }