chrome-types 0.1.425 → 0.1.426
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.
- package/_all.d.ts +87 -17
- package/index.d.ts +87 -2
- 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
|
|
18
|
-
// Built at
|
|
17
|
+
// Generated on Wed May 06 2026 10:48:30 GMT+0000 (Coordinated Universal Time)
|
|
18
|
+
// Built at 9c1ba794e512e2960457c8cc2dc5b45941ee1e80
|
|
19
19
|
|
|
20
20
|
// Includes all types, including MV2 + Platform Apps APIs.
|
|
21
21
|
|
|
@@ -1684,9 +1684,6 @@ declare namespace chrome {
|
|
|
1684
1684
|
* @chrome-permission appview
|
|
1685
1685
|
* @chrome-platform-apps
|
|
1686
1686
|
* @chrome-platform chromeos
|
|
1687
|
-
* @chrome-platform linux
|
|
1688
|
-
* @chrome-platform mac
|
|
1689
|
-
* @chrome-platform win
|
|
1690
1687
|
*/
|
|
1691
1688
|
export namespace appviewTag {
|
|
1692
1689
|
|
|
@@ -2047,9 +2044,6 @@ declare namespace chrome {
|
|
|
2047
2044
|
* @chrome-manifest bluetooth
|
|
2048
2045
|
* @chrome-platform-apps
|
|
2049
2046
|
* @chrome-platform chromeos
|
|
2050
|
-
* @chrome-platform linux
|
|
2051
|
-
* @chrome-platform mac
|
|
2052
|
-
* @chrome-platform win
|
|
2053
2047
|
*/
|
|
2054
2048
|
export namespace bluetooth {
|
|
2055
2049
|
|
|
@@ -2363,9 +2357,6 @@ declare namespace chrome {
|
|
|
2363
2357
|
* @chrome-manifest bluetooth
|
|
2364
2358
|
* @chrome-platform-apps
|
|
2365
2359
|
* @chrome-platform chromeos
|
|
2366
|
-
* @chrome-platform linux
|
|
2367
|
-
* @chrome-platform win
|
|
2368
|
-
* @chrome-platform mac
|
|
2369
2360
|
*/
|
|
2370
2361
|
export namespace bluetoothLowEnergy {
|
|
2371
2362
|
|
|
@@ -3397,9 +3388,6 @@ declare namespace chrome {
|
|
|
3397
3388
|
* @chrome-manifest bluetooth
|
|
3398
3389
|
* @chrome-platform-apps
|
|
3399
3390
|
* @chrome-platform chromeos
|
|
3400
|
-
* @chrome-platform linux
|
|
3401
|
-
* @chrome-platform mac
|
|
3402
|
-
* @chrome-platform win
|
|
3403
3391
|
*/
|
|
3404
3392
|
export namespace bluetoothSocket {
|
|
3405
3393
|
|
|
@@ -19658,6 +19646,88 @@ declare namespace chrome {
|
|
|
19658
19646
|
): void;
|
|
19659
19647
|
}
|
|
19660
19648
|
|
|
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
|
+
|
|
19661
19731
|
/**
|
|
19662
19732
|
* 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
19733
|
*
|
|
@@ -24542,6 +24612,7 @@ declare namespace chrome {
|
|
|
24542
24612
|
/**
|
|
24543
24613
|
* The native client architecture. This may be different from arch on some platforms.
|
|
24544
24614
|
*
|
|
24615
|
+
* @deprecated This enum is deprecated following complete removal of Native Client.
|
|
24545
24616
|
* @chrome-enum "arm" Specifies the native client architecture as arm.
|
|
24546
24617
|
* @chrome-enum "x86-32" Specifies the native client architecture as x86-32.
|
|
24547
24618
|
* @chrome-enum "x86-64" Specifies the native client architecture as x86-64.
|
|
@@ -24568,6 +24639,8 @@ declare namespace chrome {
|
|
|
24568
24639
|
|
|
24569
24640
|
/**
|
|
24570
24641
|
* The native client architecture. This may be different from arch on some platforms.
|
|
24642
|
+
*
|
|
24643
|
+
* @deprecated This attribute is deprecated following complete removal of Native Client.
|
|
24571
24644
|
*/
|
|
24572
24645
|
nacl_arch?: PlatformNaclArch;
|
|
24573
24646
|
}
|
|
@@ -33820,9 +33893,6 @@ declare namespace chrome {
|
|
|
33820
33893
|
* @chrome-permission usb
|
|
33821
33894
|
* @chrome-platform-apps
|
|
33822
33895
|
* @chrome-platform chromeos
|
|
33823
|
-
* @chrome-platform linux
|
|
33824
|
-
* @chrome-platform mac
|
|
33825
|
-
* @chrome-platform win
|
|
33826
33896
|
*/
|
|
33827
33897
|
export namespace usb {
|
|
33828
33898
|
|
package/index.d.ts
CHANGED
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
// Generated on
|
|
18
|
-
// Built at
|
|
17
|
+
// Generated on Wed May 06 2026 10:48:25 GMT+0000 (Coordinated Universal Time)
|
|
18
|
+
// Built at 9c1ba794e512e2960457c8cc2dc5b45941ee1e80
|
|
19
19
|
|
|
20
20
|
// Includes MV3+ APIs only.
|
|
21
21
|
|
|
@@ -14737,6 +14737,88 @@ declare namespace chrome {
|
|
|
14737
14737
|
}
|
|
14738
14738
|
}
|
|
14739
14739
|
|
|
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
|
+
|
|
14740
14822
|
/**
|
|
14741
14823
|
* Use the `chrome.notifications` API to create rich notifications using templates and show these notifications to users in the system tray.
|
|
14742
14824
|
*
|
|
@@ -17334,6 +17416,7 @@ declare namespace chrome {
|
|
|
17334
17416
|
/**
|
|
17335
17417
|
* The native client architecture. This may be different from arch on some platforms.
|
|
17336
17418
|
*
|
|
17419
|
+
* @deprecated This enum is deprecated following complete removal of Native Client.
|
|
17337
17420
|
* @chrome-enum "arm" Specifies the native client architecture as arm.
|
|
17338
17421
|
* @chrome-enum "x86-32" Specifies the native client architecture as x86-32.
|
|
17339
17422
|
* @chrome-enum "x86-64" Specifies the native client architecture as x86-64.
|
|
@@ -17360,6 +17443,8 @@ declare namespace chrome {
|
|
|
17360
17443
|
|
|
17361
17444
|
/**
|
|
17362
17445
|
* The native client architecture. This may be different from arch on some platforms.
|
|
17446
|
+
*
|
|
17447
|
+
* @deprecated This attribute is deprecated following complete removal of Native Client.
|
|
17363
17448
|
*/
|
|
17364
17449
|
nacl_arch?: PlatformNaclArch;
|
|
17365
17450
|
}
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"type": "module",
|
|
6
6
|
"name": "chrome-types",
|
|
7
7
|
"config": {
|
|
8
|
-
"build-hash": "
|
|
8
|
+
"build-hash": "93a6682ef8cf2844"
|
|
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.
|
|
19
|
+
"version": "0.1.426"
|
|
20
20
|
}
|