chrome-types 0.1.426 → 0.1.428

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 +37 -88
  2. package/index.d.ts +37 -85
  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 May 06 2026 10:48:30 GMT+0000 (Coordinated Universal Time)
18
- // Built at 9c1ba794e512e2960457c8cc2dc5b45941ee1e80
17
+ // Generated on Thu May 14 2026 12:52:08 GMT+0000 (Coordinated Universal Time)
18
+ // Built at 82ec76f8d58e969e5bf46638d80448d6e1ae808a
19
19
 
20
20
  // Includes all types, including MV2 + Platform Apps APIs.
21
21
 
@@ -749,6 +749,13 @@ declare namespace chrome {
749
749
  * If not null, the alarm is a repeating alarm and will fire again in `periodInMinutes` minutes.
750
750
  */
751
751
  periodInMinutes?: number;
752
+
753
+ /**
754
+ * Whether the alarm should persist across sessions (browser restarts).
755
+ *
756
+ * @since Pending
757
+ */
758
+ persistAcrossSessions: boolean;
752
759
  }
753
760
 
754
761
  export interface AlarmCreateInfo {
@@ -767,6 +774,13 @@ declare namespace chrome {
767
774
  * If set, the onAlarm event should fire every `periodInMinutes` minutes after the initial event specified by `when` or `delayInMinutes`. If not set, the alarm will only fire once.
768
775
  */
769
776
  periodInMinutes?: number;
777
+
778
+ /**
779
+ * Whether the alarm should persist across sessions (browser restarts). In Chrome, this defaults to true to match historical behavior, but you should set this explicitly to maximize compatibility across browsers.
780
+ *
781
+ * @since Pending
782
+ */
783
+ persistAcrossSessions?: boolean;
770
784
  }
771
785
 
772
786
  /**
@@ -6504,7 +6518,7 @@ declare namespace chrome {
6504
6518
  *
6505
6519
  * @since Chrome 44
6506
6520
  */
6507
- export type ContextType = "all" | "page" | "frame" | "selection" | "link" | "editable" | "image" | "video" | "audio" | "launcher" | "browser_action" | "page_action" | "action";
6521
+ export type ContextType = "all" | "page" | "frame" | "selection" | "link" | "editable" | "image" | "video" | "audio" | "launcher" | "browser_action" | "page_action" | "action" | "tab";
6508
6522
 
6509
6523
  /**
6510
6524
  * The type of menu item.
@@ -19646,88 +19660,6 @@ declare namespace chrome {
19646
19660
  ): void;
19647
19661
  }
19648
19662
 
19649
- /**
19650
- * Use the `chrome.mimeHandler` API to handle MIME type streams in third-party extensions.
19651
- *
19652
- * @since Pending
19653
- * @chrome-manifest mime_types_handler
19654
- * @chrome-platform chromeos
19655
- * @chrome-platform linux
19656
- * @chrome-platform mac
19657
- * @chrome-platform win
19658
- */
19659
- export namespace mimeHandler {
19660
-
19661
- export interface StreamInfo {
19662
-
19663
- /**
19664
- * The MIME type of the intercepted content.
19665
- */
19666
- mimeType: string;
19667
-
19668
- /**
19669
- * The original URL the user navigated to.
19670
- */
19671
- originalUrl: string;
19672
-
19673
- /**
19674
- * The URL to fetch the stream data from.
19675
- */
19676
- streamUrl: string;
19677
-
19678
- /**
19679
- * The tab ID containing the document.
19680
- */
19681
- tabId: number;
19682
-
19683
- /**
19684
- * HTTP response headers as key-value pairs.
19685
- */
19686
- responseHeaders: {[name: string]: any};
19687
-
19688
- /**
19689
- * True if loaded in an embedded context (iframe/embed/object).
19690
- */
19691
- embedded: boolean;
19692
- }
19693
-
19694
- /**
19695
- * Retrieves stream information for the current MIME handler context. Must be called from within a MIME handler extension page.
19696
- */
19697
- export function getStreamInfo(): Promise<StreamInfo>;
19698
-
19699
- /**
19700
- * Retrieves stream information for the current MIME handler context. Must be called from within a MIME handler extension page.
19701
- */
19702
- export function getStreamInfo(
19703
-
19704
- callback?: (
19705
- info: StreamInfo,
19706
- ) => void,
19707
- ): void;
19708
- }
19709
-
19710
- /**
19711
- * `mime_types_handler` manifest key definition (dict format). The key maps MIME type strings to per-type handler configuration. WebIDL has no record type; the outer map is declared as `object` and the parser iterates base::DictValue, calling MimeHandlerMimeTypeConfig::FromValue() per entry — the same pattern used by file\_handlers.webidl for its `accept` field.
19712
- *
19713
- * @since Pending
19714
- */
19715
- export namespace mimeHandlers {
19716
-
19717
- export interface MimeHandlerMimeTypeConfig {
19718
-
19719
- /**
19720
- * Relative path to the handler page within the extension.
19721
- */
19722
- handler_url: string;
19723
-
19724
- /**
19725
- * Whether the handler supports being embedded in iframe/embed/object elements. Defaults to false when absent.
19726
- */
19727
- can_embed?: boolean;
19728
- }
19729
- }
19730
-
19731
19663
  /**
19732
19664
  * The `chrome.networking.onc` API is used for configuring network connections (Cellular, Ethernet, VPN or WiFi). This API is available in auto-launched Chrome OS kiosk sessions.
19733
19665
  *
@@ -22185,6 +22117,26 @@ declare namespace chrome {
22185
22117
 
22186
22118
  callback?: () => void,
22187
22119
  ): void;
22120
+
22121
+ /**
22122
+ * Determines whether the extension has an active document.
22123
+ *
22124
+ * @returns Promise that resolves with the result of whether the extension has an active offscreen document.
22125
+ * @since Pending
22126
+ */
22127
+ export function hasDocument(): Promise<boolean>;
22128
+
22129
+ /**
22130
+ * Determines whether the extension has an active document.
22131
+ *
22132
+ * @since Pending
22133
+ */
22134
+ export function hasDocument(
22135
+
22136
+ callback?: (
22137
+ result: boolean,
22138
+ ) => void,
22139
+ ): void;
22188
22140
  }
22189
22141
 
22190
22142
  /**
@@ -38109,9 +38061,6 @@ declare namespace chrome {
38109
38061
  * @chrome-permission webview
38110
38062
  * @chrome-platform-apps
38111
38063
  * @chrome-platform chromeos
38112
- * @chrome-platform linux
38113
- * @chrome-platform mac
38114
- * @chrome-platform win
38115
38064
  */
38116
38065
  export namespace webviewTag {
38117
38066
 
package/index.d.ts CHANGED
@@ -14,8 +14,8 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- // Generated on Wed May 06 2026 10:48:25 GMT+0000 (Coordinated Universal Time)
18
- // Built at 9c1ba794e512e2960457c8cc2dc5b45941ee1e80
17
+ // Generated on Thu May 14 2026 12:52:04 GMT+0000 (Coordinated Universal Time)
18
+ // Built at 82ec76f8d58e969e5bf46638d80448d6e1ae808a
19
19
 
20
20
  // Includes MV3+ APIs only.
21
21
 
@@ -807,6 +807,13 @@ declare namespace chrome {
807
807
  * If not null, the alarm is a repeating alarm and will fire again in `periodInMinutes` minutes.
808
808
  */
809
809
  periodInMinutes?: number;
810
+
811
+ /**
812
+ * Whether the alarm should persist across sessions (browser restarts).
813
+ *
814
+ * @since Pending
815
+ */
816
+ persistAcrossSessions: boolean;
810
817
  }
811
818
 
812
819
  export interface AlarmCreateInfo {
@@ -825,6 +832,13 @@ declare namespace chrome {
825
832
  * If set, the onAlarm event should fire every `periodInMinutes` minutes after the initial event specified by `when` or `delayInMinutes`. If not set, the alarm will only fire once.
826
833
  */
827
834
  periodInMinutes?: number;
835
+
836
+ /**
837
+ * Whether the alarm should persist across sessions (browser restarts). In Chrome, this defaults to true to match historical behavior, but you should set this explicitly to maximize compatibility across browsers.
838
+ *
839
+ * @since Pending
840
+ */
841
+ persistAcrossSessions?: boolean;
828
842
  }
829
843
 
830
844
  /**
@@ -3323,7 +3337,7 @@ declare namespace chrome {
3323
3337
  *
3324
3338
  * @since Chrome 44
3325
3339
  */
3326
- export type ContextType = "all" | "page" | "frame" | "selection" | "link" | "editable" | "image" | "video" | "audio" | "launcher" | "browser_action" | "page_action" | "action";
3340
+ export type ContextType = "all" | "page" | "frame" | "selection" | "link" | "editable" | "image" | "video" | "audio" | "launcher" | "browser_action" | "page_action" | "action" | "tab";
3327
3341
 
3328
3342
  /**
3329
3343
  * The type of menu item.
@@ -14737,88 +14751,6 @@ declare namespace chrome {
14737
14751
  }
14738
14752
  }
14739
14753
 
14740
- /**
14741
- * Use the `chrome.mimeHandler` API to handle MIME type streams in third-party extensions.
14742
- *
14743
- * @since Pending
14744
- * @chrome-manifest mime_types_handler
14745
- * @chrome-platform chromeos
14746
- * @chrome-platform linux
14747
- * @chrome-platform mac
14748
- * @chrome-platform win
14749
- */
14750
- export namespace mimeHandler {
14751
-
14752
- export interface StreamInfo {
14753
-
14754
- /**
14755
- * The MIME type of the intercepted content.
14756
- */
14757
- mimeType: string;
14758
-
14759
- /**
14760
- * The original URL the user navigated to.
14761
- */
14762
- originalUrl: string;
14763
-
14764
- /**
14765
- * The URL to fetch the stream data from.
14766
- */
14767
- streamUrl: string;
14768
-
14769
- /**
14770
- * The tab ID containing the document.
14771
- */
14772
- tabId: number;
14773
-
14774
- /**
14775
- * HTTP response headers as key-value pairs.
14776
- */
14777
- responseHeaders: {[name: string]: any};
14778
-
14779
- /**
14780
- * True if loaded in an embedded context (iframe/embed/object).
14781
- */
14782
- embedded: boolean;
14783
- }
14784
-
14785
- /**
14786
- * Retrieves stream information for the current MIME handler context. Must be called from within a MIME handler extension page.
14787
- */
14788
- export function getStreamInfo(): Promise<StreamInfo>;
14789
-
14790
- /**
14791
- * Retrieves stream information for the current MIME handler context. Must be called from within a MIME handler extension page.
14792
- */
14793
- export function getStreamInfo(
14794
-
14795
- callback?: (
14796
- info: StreamInfo,
14797
- ) => void,
14798
- ): void;
14799
- }
14800
-
14801
- /**
14802
- * `mime_types_handler` manifest key definition (dict format). The key maps MIME type strings to per-type handler configuration. WebIDL has no record type; the outer map is declared as `object` and the parser iterates base::DictValue, calling MimeHandlerMimeTypeConfig::FromValue() per entry — the same pattern used by file\_handlers.webidl for its `accept` field.
14803
- *
14804
- * @since Pending
14805
- */
14806
- export namespace mimeHandlers {
14807
-
14808
- export interface MimeHandlerMimeTypeConfig {
14809
-
14810
- /**
14811
- * Relative path to the handler page within the extension.
14812
- */
14813
- handler_url: string;
14814
-
14815
- /**
14816
- * Whether the handler supports being embedded in iframe/embed/object elements. Defaults to false when absent.
14817
- */
14818
- can_embed?: boolean;
14819
- }
14820
- }
14821
-
14822
14754
  /**
14823
14755
  * Use the `chrome.notifications` API to create rich notifications using templates and show these notifications to users in the system tray.
14824
14756
  *
@@ -15269,6 +15201,26 @@ declare namespace chrome {
15269
15201
 
15270
15202
  callback?: () => void,
15271
15203
  ): void;
15204
+
15205
+ /**
15206
+ * Determines whether the extension has an active document.
15207
+ *
15208
+ * @returns Promise that resolves with the result of whether the extension has an active offscreen document.
15209
+ * @since Pending
15210
+ */
15211
+ export function hasDocument(): Promise<boolean>;
15212
+
15213
+ /**
15214
+ * Determines whether the extension has an active document.
15215
+ *
15216
+ * @since Pending
15217
+ */
15218
+ export function hasDocument(
15219
+
15220
+ callback?: (
15221
+ result: boolean,
15222
+ ) => void,
15223
+ ): void;
15272
15224
  }
15273
15225
 
15274
15226
  /**
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "type": "module",
6
6
  "name": "chrome-types",
7
7
  "config": {
8
- "build-hash": "93a6682ef8cf2844"
8
+ "build-hash": "a0f095b7317261e7"
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.426"
19
+ "version": "0.1.428"
20
20
  }