chrome-types 0.1.453 → 0.1.455

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 +20 -13
  2. package/index.d.ts +20 -13
  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 Oct 07 2026 22:27:21 GMT+0000 (Coordinated Universal Time)
18
- // Built at 9f85e246754e0d04926e7d1b3cc3ded10f430606
17
+ // Generated on Tue Oct 13 2026 23:03:30 GMT+0000 (Coordinated Universal Time)
18
+ // Built at 22cdddd858c5676db8e2ec079c93897f45911f70
19
19
 
20
20
  // Includes all types, including MV2 + Platform Apps APIs.
21
21
 
@@ -19631,9 +19631,16 @@ declare namespace chrome {
19631
19631
  export interface MimeHandlerOptions {
19632
19632
 
19633
19633
  /**
19634
- * Whether this handler is active for the given MIME type.
19634
+ * Whether this handler is enabled. Defaults to the manifest entry's `enabled` value.
19635
19635
  */
19636
- enabled: boolean;
19636
+ enabled?: boolean;
19637
+
19638
+ /**
19639
+ * Whether this handler may be used for embedded loads (iframe, embed, object). Defaults to the manifest entry's `can_embed` value. Has no effect while `enabled` is false.
19640
+ *
19641
+ * @since Pending
19642
+ */
19643
+ canEmbed?: boolean;
19637
19644
  }
19638
19645
 
19639
19646
  /**
@@ -19667,8 +19674,8 @@ declare namespace chrome {
19667
19674
  /**
19668
19675
  * Sets the configuration options for a specified MIME type.
19669
19676
  *
19670
- * @param mimeType The MIME type to configure.
19671
- * @param options The new options to use.
19677
+ * @param mimeType The MIME type to configure. It must be a MIME type the extension handles through mime\_types\_handler.
19678
+ * @param options The options to change.
19672
19679
  * @returns Promise resolved when the configuration has been set.
19673
19680
  */
19674
19681
  export function setMimeHandlerOptions(
@@ -19681,8 +19688,8 @@ declare namespace chrome {
19681
19688
  /**
19682
19689
  * Sets the configuration options for a specified MIME type.
19683
19690
  *
19684
- * @param mimeType The MIME type to configure.
19685
- * @param options The new options to use.
19691
+ * @param mimeType The MIME type to configure. It must be a MIME type the extension handles through mime\_types\_handler.
19692
+ * @param options The options to change.
19686
19693
  */
19687
19694
  export function setMimeHandlerOptions(
19688
19695
 
@@ -19694,10 +19701,10 @@ declare namespace chrome {
19694
19701
  ): void;
19695
19702
 
19696
19703
  /**
19697
- * Reads the persisted options for a MIME type. Returns defaults (enabled=true) if none have been stored.
19704
+ * Reads the options for a MIME type. Each member is the value the extension set, or the manifest entry's value if the extension has not set it.
19698
19705
  *
19699
- * @param mimeType The MIME type whose options to read.
19700
- * @returns Promise resolved with the persisted options for the MIME type.
19706
+ * @param mimeType The MIME type whose options to read. It must be a MIME type the extension handles through mime\_types\_handler.
19707
+ * @returns Promise resolved with the options for the MIME type.
19701
19708
  */
19702
19709
  export function getMimeHandlerOptions(
19703
19710
 
@@ -19705,9 +19712,9 @@ declare namespace chrome {
19705
19712
  ): Promise<MimeHandlerOptions>;
19706
19713
 
19707
19714
  /**
19708
- * Reads the persisted options for a MIME type. Returns defaults (enabled=true) if none have been stored.
19715
+ * Reads the options for a MIME type. Each member is the value the extension set, or the manifest entry's value if the extension has not set it.
19709
19716
  *
19710
- * @param mimeType The MIME type whose options to read.
19717
+ * @param mimeType The MIME type whose options to read. It must be a MIME type the extension handles through mime\_types\_handler.
19711
19718
  */
19712
19719
  export function getMimeHandlerOptions(
19713
19720
 
package/index.d.ts CHANGED
@@ -14,8 +14,8 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- // Generated on Wed Oct 07 2026 22:27:19 GMT+0000 (Coordinated Universal Time)
18
- // Built at 9f85e246754e0d04926e7d1b3cc3ded10f430606
17
+ // Generated on Tue Oct 13 2026 23:03:27 GMT+0000 (Coordinated Universal Time)
18
+ // Built at 22cdddd858c5676db8e2ec079c93897f45911f70
19
19
 
20
20
  // Includes MV3+ APIs only.
21
21
 
@@ -14722,9 +14722,16 @@ declare namespace chrome {
14722
14722
  export interface MimeHandlerOptions {
14723
14723
 
14724
14724
  /**
14725
- * Whether this handler is active for the given MIME type.
14725
+ * Whether this handler is enabled. Defaults to the manifest entry's `enabled` value.
14726
14726
  */
14727
- enabled: boolean;
14727
+ enabled?: boolean;
14728
+
14729
+ /**
14730
+ * Whether this handler may be used for embedded loads (iframe, embed, object). Defaults to the manifest entry's `can_embed` value. Has no effect while `enabled` is false.
14731
+ *
14732
+ * @since Pending
14733
+ */
14734
+ canEmbed?: boolean;
14728
14735
  }
14729
14736
 
14730
14737
  /**
@@ -14758,8 +14765,8 @@ declare namespace chrome {
14758
14765
  /**
14759
14766
  * Sets the configuration options for a specified MIME type.
14760
14767
  *
14761
- * @param mimeType The MIME type to configure.
14762
- * @param options The new options to use.
14768
+ * @param mimeType The MIME type to configure. It must be a MIME type the extension handles through mime\_types\_handler.
14769
+ * @param options The options to change.
14763
14770
  * @returns Promise resolved when the configuration has been set.
14764
14771
  */
14765
14772
  export function setMimeHandlerOptions(
@@ -14772,8 +14779,8 @@ declare namespace chrome {
14772
14779
  /**
14773
14780
  * Sets the configuration options for a specified MIME type.
14774
14781
  *
14775
- * @param mimeType The MIME type to configure.
14776
- * @param options The new options to use.
14782
+ * @param mimeType The MIME type to configure. It must be a MIME type the extension handles through mime\_types\_handler.
14783
+ * @param options The options to change.
14777
14784
  */
14778
14785
  export function setMimeHandlerOptions(
14779
14786
 
@@ -14785,10 +14792,10 @@ declare namespace chrome {
14785
14792
  ): void;
14786
14793
 
14787
14794
  /**
14788
- * Reads the persisted options for a MIME type. Returns defaults (enabled=true) if none have been stored.
14795
+ * Reads the options for a MIME type. Each member is the value the extension set, or the manifest entry's value if the extension has not set it.
14789
14796
  *
14790
- * @param mimeType The MIME type whose options to read.
14791
- * @returns Promise resolved with the persisted options for the MIME type.
14797
+ * @param mimeType The MIME type whose options to read. It must be a MIME type the extension handles through mime\_types\_handler.
14798
+ * @returns Promise resolved with the options for the MIME type.
14792
14799
  */
14793
14800
  export function getMimeHandlerOptions(
14794
14801
 
@@ -14796,9 +14803,9 @@ declare namespace chrome {
14796
14803
  ): Promise<MimeHandlerOptions>;
14797
14804
 
14798
14805
  /**
14799
- * Reads the persisted options for a MIME type. Returns defaults (enabled=true) if none have been stored.
14806
+ * Reads the options for a MIME type. Each member is the value the extension set, or the manifest entry's value if the extension has not set it.
14800
14807
  *
14801
- * @param mimeType The MIME type whose options to read.
14808
+ * @param mimeType The MIME type whose options to read. It must be a MIME type the extension handles through mime\_types\_handler.
14802
14809
  */
14803
14810
  export function getMimeHandlerOptions(
14804
14811
 
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "type": "module",
6
6
  "name": "chrome-types",
7
7
  "config": {
8
- "build-hash": "fe28cfca40bc03c0"
8
+ "build-hash": "bcb5fc22401b628a"
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.453"
19
+ "version": "0.1.455"
20
20
  }