chrome-types 0.1.454 → 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 +15 -8
  2. package/index.d.ts +15 -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 Fri Oct 09 2026 22:39:06 GMT+0000 (Coordinated Universal Time)
18
- // Built at 49096065226e0c8463ceb998f7323fb14a30d820
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
  /**
@@ -19668,7 +19675,7 @@ declare namespace chrome {
19668
19675
  * Sets the configuration options for a specified MIME type.
19669
19676
  *
19670
19677
  * @param mimeType The MIME type to configure. It must be a MIME type the extension handles through mime\_types\_handler.
19671
- * @param options The new options to use.
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(
@@ -19682,7 +19689,7 @@ declare namespace chrome {
19682
19689
  * Sets the configuration options for a specified MIME type.
19683
19690
  *
19684
19691
  * @param mimeType The MIME type to configure. It must be a MIME type the extension handles through mime\_types\_handler.
19685
- * @param options The new options to use.
19692
+ * @param options The options to change.
19686
19693
  */
19687
19694
  export function setMimeHandlerOptions(
19688
19695
 
@@ -19694,7 +19701,7 @@ declare namespace chrome {
19694
19701
  ): void;
19695
19702
 
19696
19703
  /**
19697
- * Reads the options for a MIME type. Returns the manifest entry's values 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
19706
  * @param mimeType The MIME type whose options to read. It must be a MIME type the extension handles through mime\_types\_handler.
19700
19707
  * @returns Promise resolved with the options for the MIME type.
@@ -19705,7 +19712,7 @@ declare namespace chrome {
19705
19712
  ): Promise<MimeHandlerOptions>;
19706
19713
 
19707
19714
  /**
19708
- * Reads the options for a MIME type. Returns the manifest entry's values 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
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
  */
package/index.d.ts CHANGED
@@ -14,8 +14,8 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- // Generated on Fri Oct 09 2026 22:39:03 GMT+0000 (Coordinated Universal Time)
18
- // Built at 49096065226e0c8463ceb998f7323fb14a30d820
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
  /**
@@ -14759,7 +14766,7 @@ declare namespace chrome {
14759
14766
  * Sets the configuration options for a specified MIME type.
14760
14767
  *
14761
14768
  * @param mimeType The MIME type to configure. It must be a MIME type the extension handles through mime\_types\_handler.
14762
- * @param options The new options to use.
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(
@@ -14773,7 +14780,7 @@ declare namespace chrome {
14773
14780
  * Sets the configuration options for a specified MIME type.
14774
14781
  *
14775
14782
  * @param mimeType The MIME type to configure. It must be a MIME type the extension handles through mime\_types\_handler.
14776
- * @param options The new options to use.
14783
+ * @param options The options to change.
14777
14784
  */
14778
14785
  export function setMimeHandlerOptions(
14779
14786
 
@@ -14785,7 +14792,7 @@ declare namespace chrome {
14785
14792
  ): void;
14786
14793
 
14787
14794
  /**
14788
- * Reads the options for a MIME type. Returns the manifest entry's values 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
14797
  * @param mimeType The MIME type whose options to read. It must be a MIME type the extension handles through mime\_types\_handler.
14791
14798
  * @returns Promise resolved with the options for the MIME type.
@@ -14796,7 +14803,7 @@ declare namespace chrome {
14796
14803
  ): Promise<MimeHandlerOptions>;
14797
14804
 
14798
14805
  /**
14799
- * Reads the options for a MIME type. Returns the manifest entry's values 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
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
  */
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "type": "module",
6
6
  "name": "chrome-types",
7
7
  "config": {
8
- "build-hash": "d18594df7cba484c"
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.454"
19
+ "version": "0.1.455"
20
20
  }