chrome-types 0.1.425 → 0.1.427

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 +135 -21
  2. package/index.d.ts +135 -3
  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 Thu Mar 19 2026 10:52:21 GMT+0000 (Coordinated Universal Time)
18
- // Built at a414b0ac3f73ddcc94b28dca6914bd09b6757fc6
17
+ // Generated on Wed May 13 2026 20:31:36 GMT+0000 (Coordinated Universal Time)
18
+ // Built at 077f70b0e0b2584f8c62ddd9453e8bb5979dc422
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
  /**
@@ -1684,9 +1698,6 @@ declare namespace chrome {
1684
1698
  * @chrome-permission appview
1685
1699
  * @chrome-platform-apps
1686
1700
  * @chrome-platform chromeos
1687
- * @chrome-platform linux
1688
- * @chrome-platform mac
1689
- * @chrome-platform win
1690
1701
  */
1691
1702
  export namespace appviewTag {
1692
1703
 
@@ -2047,9 +2058,6 @@ declare namespace chrome {
2047
2058
  * @chrome-manifest bluetooth
2048
2059
  * @chrome-platform-apps
2049
2060
  * @chrome-platform chromeos
2050
- * @chrome-platform linux
2051
- * @chrome-platform mac
2052
- * @chrome-platform win
2053
2061
  */
2054
2062
  export namespace bluetooth {
2055
2063
 
@@ -2363,9 +2371,6 @@ declare namespace chrome {
2363
2371
  * @chrome-manifest bluetooth
2364
2372
  * @chrome-platform-apps
2365
2373
  * @chrome-platform chromeos
2366
- * @chrome-platform linux
2367
- * @chrome-platform win
2368
- * @chrome-platform mac
2369
2374
  */
2370
2375
  export namespace bluetoothLowEnergy {
2371
2376
 
@@ -3397,9 +3402,6 @@ declare namespace chrome {
3397
3402
  * @chrome-manifest bluetooth
3398
3403
  * @chrome-platform-apps
3399
3404
  * @chrome-platform chromeos
3400
- * @chrome-platform linux
3401
- * @chrome-platform mac
3402
- * @chrome-platform win
3403
3405
  */
3404
3406
  export namespace bluetoothSocket {
3405
3407
 
@@ -6516,7 +6518,7 @@ declare namespace chrome {
6516
6518
  *
6517
6519
  * @since Chrome 44
6518
6520
  */
6519
- 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";
6520
6522
 
6521
6523
  /**
6522
6524
  * The type of menu item.
@@ -19658,6 +19660,101 @@ declare namespace chrome {
19658
19660
  ): void;
19659
19661
  }
19660
19662
 
19663
+ /**
19664
+ * Use the `chrome.mimeHandler` API to handle MIME type streams in third-party extensions.
19665
+ *
19666
+ * @since Pending
19667
+ * @chrome-manifest mime_types_handler
19668
+ * @chrome-platform chromeos
19669
+ * @chrome-platform linux
19670
+ * @chrome-platform mac
19671
+ * @chrome-platform win
19672
+ */
19673
+ export namespace mimeHandler {
19674
+
19675
+ export interface StreamInfo {
19676
+
19677
+ /**
19678
+ * The MIME type of the intercepted content.
19679
+ */
19680
+ mimeType: string;
19681
+
19682
+ /**
19683
+ * The original URL the user navigated to.
19684
+ */
19685
+ originalUrl: string;
19686
+
19687
+ /**
19688
+ * The URL to fetch the stream data from.
19689
+ */
19690
+ streamUrl: string;
19691
+
19692
+ /**
19693
+ * The tab ID containing the document.
19694
+ */
19695
+ tabId: number;
19696
+
19697
+ /**
19698
+ * HTTP response headers as key-value pairs.
19699
+ */
19700
+ responseHeaders: {[name: string]: any};
19701
+
19702
+ /**
19703
+ * True if loaded in an embedded context (iframe/embed/object).
19704
+ */
19705
+ embedded: boolean;
19706
+ }
19707
+
19708
+ /**
19709
+ * Retrieves stream information for the current MIME handler context. Must be called from within a MIME handler extension page.
19710
+ */
19711
+ export function getStreamInfo(): Promise<StreamInfo>;
19712
+
19713
+ /**
19714
+ * Retrieves stream information for the current MIME handler context. Must be called from within a MIME handler extension page.
19715
+ */
19716
+ export function getStreamInfo(
19717
+
19718
+ callback?: (
19719
+ info: StreamInfo,
19720
+ ) => void,
19721
+ ): void;
19722
+
19723
+ /**
19724
+ * Aborts current stream handling and hands the content off to the user agent's native handler. After this call the extension frame will be torn down; callers should not expect further execution.
19725
+ */
19726
+ export function abortAndFallbackToNativeHandler(): Promise<void>;
19727
+
19728
+ /**
19729
+ * Aborts current stream handling and hands the content off to the user agent's native handler. After this call the extension frame will be torn down; callers should not expect further execution.
19730
+ */
19731
+ export function abortAndFallbackToNativeHandler(
19732
+
19733
+ callback?: () => void,
19734
+ ): void;
19735
+ }
19736
+
19737
+ /**
19738
+ * `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.
19739
+ *
19740
+ * @since Pending
19741
+ */
19742
+ export namespace mimeHandlers {
19743
+
19744
+ export interface MimeHandlerMimeTypeConfig {
19745
+
19746
+ /**
19747
+ * Relative path to the handler page within the extension.
19748
+ */
19749
+ handler_url: string;
19750
+
19751
+ /**
19752
+ * Whether the handler supports being embedded in iframe/embed/object elements. Defaults to false when absent.
19753
+ */
19754
+ can_embed?: boolean;
19755
+ }
19756
+ }
19757
+
19661
19758
  /**
19662
19759
  * 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.
19663
19760
  *
@@ -22115,6 +22212,26 @@ declare namespace chrome {
22115
22212
 
22116
22213
  callback?: () => void,
22117
22214
  ): void;
22215
+
22216
+ /**
22217
+ * Determines whether the extension has an active document.
22218
+ *
22219
+ * @returns Promise that resolves with the result of whether the extension has an active offscreen document.
22220
+ * @since Pending
22221
+ */
22222
+ export function hasDocument(): Promise<boolean>;
22223
+
22224
+ /**
22225
+ * Determines whether the extension has an active document.
22226
+ *
22227
+ * @since Pending
22228
+ */
22229
+ export function hasDocument(
22230
+
22231
+ callback?: (
22232
+ result: boolean,
22233
+ ) => void,
22234
+ ): void;
22118
22235
  }
22119
22236
 
22120
22237
  /**
@@ -24542,6 +24659,7 @@ declare namespace chrome {
24542
24659
  /**
24543
24660
  * The native client architecture. This may be different from arch on some platforms.
24544
24661
  *
24662
+ * @deprecated This enum is deprecated following complete removal of Native Client.
24545
24663
  * @chrome-enum "arm" Specifies the native client architecture as arm.
24546
24664
  * @chrome-enum "x86-32" Specifies the native client architecture as x86-32.
24547
24665
  * @chrome-enum "x86-64" Specifies the native client architecture as x86-64.
@@ -24568,6 +24686,8 @@ declare namespace chrome {
24568
24686
 
24569
24687
  /**
24570
24688
  * The native client architecture. This may be different from arch on some platforms.
24689
+ *
24690
+ * @deprecated This attribute is deprecated following complete removal of Native Client.
24571
24691
  */
24572
24692
  nacl_arch?: PlatformNaclArch;
24573
24693
  }
@@ -33820,9 +33940,6 @@ declare namespace chrome {
33820
33940
  * @chrome-permission usb
33821
33941
  * @chrome-platform-apps
33822
33942
  * @chrome-platform chromeos
33823
- * @chrome-platform linux
33824
- * @chrome-platform mac
33825
- * @chrome-platform win
33826
33943
  */
33827
33944
  export namespace usb {
33828
33945
 
@@ -38039,9 +38156,6 @@ declare namespace chrome {
38039
38156
  * @chrome-permission webview
38040
38157
  * @chrome-platform-apps
38041
38158
  * @chrome-platform chromeos
38042
- * @chrome-platform linux
38043
- * @chrome-platform mac
38044
- * @chrome-platform win
38045
38159
  */
38046
38160
  export namespace webviewTag {
38047
38161
 
package/index.d.ts CHANGED
@@ -14,8 +14,8 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- // Generated on Thu Mar 19 2026 10:52:16 GMT+0000 (Coordinated Universal Time)
18
- // Built at a414b0ac3f73ddcc94b28dca6914bd09b6757fc6
17
+ // Generated on Wed May 13 2026 20:31:31 GMT+0000 (Coordinated Universal Time)
18
+ // Built at 077f70b0e0b2584f8c62ddd9453e8bb5979dc422
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,6 +14751,101 @@ declare namespace chrome {
14737
14751
  }
14738
14752
  }
14739
14753
 
14754
+ /**
14755
+ * Use the `chrome.mimeHandler` API to handle MIME type streams in third-party extensions.
14756
+ *
14757
+ * @since Pending
14758
+ * @chrome-manifest mime_types_handler
14759
+ * @chrome-platform chromeos
14760
+ * @chrome-platform linux
14761
+ * @chrome-platform mac
14762
+ * @chrome-platform win
14763
+ */
14764
+ export namespace mimeHandler {
14765
+
14766
+ export interface StreamInfo {
14767
+
14768
+ /**
14769
+ * The MIME type of the intercepted content.
14770
+ */
14771
+ mimeType: string;
14772
+
14773
+ /**
14774
+ * The original URL the user navigated to.
14775
+ */
14776
+ originalUrl: string;
14777
+
14778
+ /**
14779
+ * The URL to fetch the stream data from.
14780
+ */
14781
+ streamUrl: string;
14782
+
14783
+ /**
14784
+ * The tab ID containing the document.
14785
+ */
14786
+ tabId: number;
14787
+
14788
+ /**
14789
+ * HTTP response headers as key-value pairs.
14790
+ */
14791
+ responseHeaders: {[name: string]: any};
14792
+
14793
+ /**
14794
+ * True if loaded in an embedded context (iframe/embed/object).
14795
+ */
14796
+ embedded: boolean;
14797
+ }
14798
+
14799
+ /**
14800
+ * Retrieves stream information for the current MIME handler context. Must be called from within a MIME handler extension page.
14801
+ */
14802
+ export function getStreamInfo(): Promise<StreamInfo>;
14803
+
14804
+ /**
14805
+ * Retrieves stream information for the current MIME handler context. Must be called from within a MIME handler extension page.
14806
+ */
14807
+ export function getStreamInfo(
14808
+
14809
+ callback?: (
14810
+ info: StreamInfo,
14811
+ ) => void,
14812
+ ): void;
14813
+
14814
+ /**
14815
+ * Aborts current stream handling and hands the content off to the user agent's native handler. After this call the extension frame will be torn down; callers should not expect further execution.
14816
+ */
14817
+ export function abortAndFallbackToNativeHandler(): Promise<void>;
14818
+
14819
+ /**
14820
+ * Aborts current stream handling and hands the content off to the user agent's native handler. After this call the extension frame will be torn down; callers should not expect further execution.
14821
+ */
14822
+ export function abortAndFallbackToNativeHandler(
14823
+
14824
+ callback?: () => void,
14825
+ ): void;
14826
+ }
14827
+
14828
+ /**
14829
+ * `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.
14830
+ *
14831
+ * @since Pending
14832
+ */
14833
+ export namespace mimeHandlers {
14834
+
14835
+ export interface MimeHandlerMimeTypeConfig {
14836
+
14837
+ /**
14838
+ * Relative path to the handler page within the extension.
14839
+ */
14840
+ handler_url: string;
14841
+
14842
+ /**
14843
+ * Whether the handler supports being embedded in iframe/embed/object elements. Defaults to false when absent.
14844
+ */
14845
+ can_embed?: boolean;
14846
+ }
14847
+ }
14848
+
14740
14849
  /**
14741
14850
  * Use the `chrome.notifications` API to create rich notifications using templates and show these notifications to users in the system tray.
14742
14851
  *
@@ -15187,6 +15296,26 @@ declare namespace chrome {
15187
15296
 
15188
15297
  callback?: () => void,
15189
15298
  ): void;
15299
+
15300
+ /**
15301
+ * Determines whether the extension has an active document.
15302
+ *
15303
+ * @returns Promise that resolves with the result of whether the extension has an active offscreen document.
15304
+ * @since Pending
15305
+ */
15306
+ export function hasDocument(): Promise<boolean>;
15307
+
15308
+ /**
15309
+ * Determines whether the extension has an active document.
15310
+ *
15311
+ * @since Pending
15312
+ */
15313
+ export function hasDocument(
15314
+
15315
+ callback?: (
15316
+ result: boolean,
15317
+ ) => void,
15318
+ ): void;
15190
15319
  }
15191
15320
 
15192
15321
  /**
@@ -17334,6 +17463,7 @@ declare namespace chrome {
17334
17463
  /**
17335
17464
  * The native client architecture. This may be different from arch on some platforms.
17336
17465
  *
17466
+ * @deprecated This enum is deprecated following complete removal of Native Client.
17337
17467
  * @chrome-enum "arm" Specifies the native client architecture as arm.
17338
17468
  * @chrome-enum "x86-32" Specifies the native client architecture as x86-32.
17339
17469
  * @chrome-enum "x86-64" Specifies the native client architecture as x86-64.
@@ -17360,6 +17490,8 @@ declare namespace chrome {
17360
17490
 
17361
17491
  /**
17362
17492
  * The native client architecture. This may be different from arch on some platforms.
17493
+ *
17494
+ * @deprecated This attribute is deprecated following complete removal of Native Client.
17363
17495
  */
17364
17496
  nacl_arch?: PlatformNaclArch;
17365
17497
  }
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "type": "module",
6
6
  "name": "chrome-types",
7
7
  "config": {
8
- "build-hash": "164847160f93e33f"
8
+ "build-hash": "59ca8136a271fc42"
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.425"
19
+ "version": "0.1.427"
20
20
  }