chrome-types 0.1.431 → 0.1.432
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 +138 -2
- package/index.d.ts +138 -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 Tue Jun 30 2026 15:04:04 GMT+0000 (Coordinated Universal Time)
|
|
18
|
+
// Built at 3c88aa6eb1e253537519a86dd54f93f64cd46fe9
|
|
19
19
|
|
|
20
20
|
// Includes all types, including MV2 + Platform Apps APIs.
|
|
21
21
|
|
|
@@ -19830,6 +19830,142 @@ declare namespace chrome {
|
|
|
19830
19830
|
): void;
|
|
19831
19831
|
}
|
|
19832
19832
|
|
|
19833
|
+
/**
|
|
19834
|
+
* Use the `chrome.mimeHandler` API to handle MIME type streams in third-party extensions.
|
|
19835
|
+
*
|
|
19836
|
+
* @since Pending
|
|
19837
|
+
* @chrome-manifest mime_types_handler
|
|
19838
|
+
* @chrome-platform chromeos
|
|
19839
|
+
* @chrome-platform linux
|
|
19840
|
+
* @chrome-platform mac
|
|
19841
|
+
* @chrome-platform win
|
|
19842
|
+
*/
|
|
19843
|
+
export namespace mimeHandler {
|
|
19844
|
+
|
|
19845
|
+
export interface StreamInfo {
|
|
19846
|
+
|
|
19847
|
+
/**
|
|
19848
|
+
* The MIME type of the intercepted content.
|
|
19849
|
+
*/
|
|
19850
|
+
mimeType: string;
|
|
19851
|
+
|
|
19852
|
+
/**
|
|
19853
|
+
* The original URL the user navigated to.
|
|
19854
|
+
*/
|
|
19855
|
+
originalUrl: string;
|
|
19856
|
+
|
|
19857
|
+
/**
|
|
19858
|
+
* The URL to fetch the stream data from.
|
|
19859
|
+
*/
|
|
19860
|
+
streamUrl: string;
|
|
19861
|
+
|
|
19862
|
+
/**
|
|
19863
|
+
* The tab ID containing the document.
|
|
19864
|
+
*/
|
|
19865
|
+
tabId: number;
|
|
19866
|
+
|
|
19867
|
+
/**
|
|
19868
|
+
* HTTP response headers as key-value pairs.
|
|
19869
|
+
*/
|
|
19870
|
+
responseHeaders: {[name: string]: any};
|
|
19871
|
+
|
|
19872
|
+
/**
|
|
19873
|
+
* True if loaded in an embedded context (iframe/embed/object).
|
|
19874
|
+
*/
|
|
19875
|
+
embedded: boolean;
|
|
19876
|
+
}
|
|
19877
|
+
|
|
19878
|
+
export interface MimeHandlerOptions {
|
|
19879
|
+
|
|
19880
|
+
/**
|
|
19881
|
+
* Whether this handler is active for the given MIME type.
|
|
19882
|
+
*/
|
|
19883
|
+
enabled: boolean;
|
|
19884
|
+
}
|
|
19885
|
+
|
|
19886
|
+
/**
|
|
19887
|
+
* Retrieves stream information for the current MIME handler context. Must be called from within a MIME handler extension page.
|
|
19888
|
+
*/
|
|
19889
|
+
export function getStreamInfo(): Promise<StreamInfo>;
|
|
19890
|
+
|
|
19891
|
+
/**
|
|
19892
|
+
* Retrieves stream information for the current MIME handler context. Must be called from within a MIME handler extension page.
|
|
19893
|
+
*/
|
|
19894
|
+
export function getStreamInfo(
|
|
19895
|
+
|
|
19896
|
+
callback?: (
|
|
19897
|
+
info: StreamInfo,
|
|
19898
|
+
) => void,
|
|
19899
|
+
): void;
|
|
19900
|
+
|
|
19901
|
+
/**
|
|
19902
|
+
* 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.
|
|
19903
|
+
*/
|
|
19904
|
+
export function abortAndFallbackToNativeHandler(): Promise<void>;
|
|
19905
|
+
|
|
19906
|
+
/**
|
|
19907
|
+
* 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.
|
|
19908
|
+
*/
|
|
19909
|
+
export function abortAndFallbackToNativeHandler(
|
|
19910
|
+
|
|
19911
|
+
callback?: () => void,
|
|
19912
|
+
): void;
|
|
19913
|
+
|
|
19914
|
+
/**
|
|
19915
|
+
* Sets the configuration options for a specified MIME type.
|
|
19916
|
+
*
|
|
19917
|
+
* @param mimeType The MIME type to configure.
|
|
19918
|
+
* @param options The new options to use.
|
|
19919
|
+
* @returns Promise resolved when the configuration has been set.
|
|
19920
|
+
*/
|
|
19921
|
+
export function setMimeHandlerOptions(
|
|
19922
|
+
|
|
19923
|
+
mimeType: string,
|
|
19924
|
+
|
|
19925
|
+
options: MimeHandlerOptions,
|
|
19926
|
+
): Promise<void>;
|
|
19927
|
+
|
|
19928
|
+
/**
|
|
19929
|
+
* Sets the configuration options for a specified MIME type.
|
|
19930
|
+
*
|
|
19931
|
+
* @param mimeType The MIME type to configure.
|
|
19932
|
+
* @param options The new options to use.
|
|
19933
|
+
*/
|
|
19934
|
+
export function setMimeHandlerOptions(
|
|
19935
|
+
|
|
19936
|
+
mimeType: string,
|
|
19937
|
+
|
|
19938
|
+
options: MimeHandlerOptions,
|
|
19939
|
+
|
|
19940
|
+
callback?: () => void,
|
|
19941
|
+
): void;
|
|
19942
|
+
|
|
19943
|
+
/**
|
|
19944
|
+
* Reads the persisted options for a MIME type. Returns defaults (enabled=true) if none have been stored.
|
|
19945
|
+
*
|
|
19946
|
+
* @param mimeType The MIME type whose options to read.
|
|
19947
|
+
* @returns Promise resolved with the persisted options for the MIME type.
|
|
19948
|
+
*/
|
|
19949
|
+
export function getMimeHandlerOptions(
|
|
19950
|
+
|
|
19951
|
+
mimeType: string,
|
|
19952
|
+
): Promise<MimeHandlerOptions>;
|
|
19953
|
+
|
|
19954
|
+
/**
|
|
19955
|
+
* Reads the persisted options for a MIME type. Returns defaults (enabled=true) if none have been stored.
|
|
19956
|
+
*
|
|
19957
|
+
* @param mimeType The MIME type whose options to read.
|
|
19958
|
+
*/
|
|
19959
|
+
export function getMimeHandlerOptions(
|
|
19960
|
+
|
|
19961
|
+
mimeType: string,
|
|
19962
|
+
|
|
19963
|
+
callback?: (
|
|
19964
|
+
options: MimeHandlerOptions,
|
|
19965
|
+
) => void,
|
|
19966
|
+
): void;
|
|
19967
|
+
}
|
|
19968
|
+
|
|
19833
19969
|
/**
|
|
19834
19970
|
* 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.
|
|
19835
19971
|
*
|
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 Tue Jun 30 2026 15:04:01 GMT+0000 (Coordinated Universal Time)
|
|
18
|
+
// Built at 3c88aa6eb1e253537519a86dd54f93f64cd46fe9
|
|
19
19
|
|
|
20
20
|
// Includes MV3+ APIs only.
|
|
21
21
|
|
|
@@ -14921,6 +14921,142 @@ declare namespace chrome {
|
|
|
14921
14921
|
}
|
|
14922
14922
|
}
|
|
14923
14923
|
|
|
14924
|
+
/**
|
|
14925
|
+
* Use the `chrome.mimeHandler` API to handle MIME type streams in third-party extensions.
|
|
14926
|
+
*
|
|
14927
|
+
* @since Pending
|
|
14928
|
+
* @chrome-manifest mime_types_handler
|
|
14929
|
+
* @chrome-platform chromeos
|
|
14930
|
+
* @chrome-platform linux
|
|
14931
|
+
* @chrome-platform mac
|
|
14932
|
+
* @chrome-platform win
|
|
14933
|
+
*/
|
|
14934
|
+
export namespace mimeHandler {
|
|
14935
|
+
|
|
14936
|
+
export interface StreamInfo {
|
|
14937
|
+
|
|
14938
|
+
/**
|
|
14939
|
+
* The MIME type of the intercepted content.
|
|
14940
|
+
*/
|
|
14941
|
+
mimeType: string;
|
|
14942
|
+
|
|
14943
|
+
/**
|
|
14944
|
+
* The original URL the user navigated to.
|
|
14945
|
+
*/
|
|
14946
|
+
originalUrl: string;
|
|
14947
|
+
|
|
14948
|
+
/**
|
|
14949
|
+
* The URL to fetch the stream data from.
|
|
14950
|
+
*/
|
|
14951
|
+
streamUrl: string;
|
|
14952
|
+
|
|
14953
|
+
/**
|
|
14954
|
+
* The tab ID containing the document.
|
|
14955
|
+
*/
|
|
14956
|
+
tabId: number;
|
|
14957
|
+
|
|
14958
|
+
/**
|
|
14959
|
+
* HTTP response headers as key-value pairs.
|
|
14960
|
+
*/
|
|
14961
|
+
responseHeaders: {[name: string]: any};
|
|
14962
|
+
|
|
14963
|
+
/**
|
|
14964
|
+
* True if loaded in an embedded context (iframe/embed/object).
|
|
14965
|
+
*/
|
|
14966
|
+
embedded: boolean;
|
|
14967
|
+
}
|
|
14968
|
+
|
|
14969
|
+
export interface MimeHandlerOptions {
|
|
14970
|
+
|
|
14971
|
+
/**
|
|
14972
|
+
* Whether this handler is active for the given MIME type.
|
|
14973
|
+
*/
|
|
14974
|
+
enabled: boolean;
|
|
14975
|
+
}
|
|
14976
|
+
|
|
14977
|
+
/**
|
|
14978
|
+
* Retrieves stream information for the current MIME handler context. Must be called from within a MIME handler extension page.
|
|
14979
|
+
*/
|
|
14980
|
+
export function getStreamInfo(): Promise<StreamInfo>;
|
|
14981
|
+
|
|
14982
|
+
/**
|
|
14983
|
+
* Retrieves stream information for the current MIME handler context. Must be called from within a MIME handler extension page.
|
|
14984
|
+
*/
|
|
14985
|
+
export function getStreamInfo(
|
|
14986
|
+
|
|
14987
|
+
callback?: (
|
|
14988
|
+
info: StreamInfo,
|
|
14989
|
+
) => void,
|
|
14990
|
+
): void;
|
|
14991
|
+
|
|
14992
|
+
/**
|
|
14993
|
+
* 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.
|
|
14994
|
+
*/
|
|
14995
|
+
export function abortAndFallbackToNativeHandler(): Promise<void>;
|
|
14996
|
+
|
|
14997
|
+
/**
|
|
14998
|
+
* 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.
|
|
14999
|
+
*/
|
|
15000
|
+
export function abortAndFallbackToNativeHandler(
|
|
15001
|
+
|
|
15002
|
+
callback?: () => void,
|
|
15003
|
+
): void;
|
|
15004
|
+
|
|
15005
|
+
/**
|
|
15006
|
+
* Sets the configuration options for a specified MIME type.
|
|
15007
|
+
*
|
|
15008
|
+
* @param mimeType The MIME type to configure.
|
|
15009
|
+
* @param options The new options to use.
|
|
15010
|
+
* @returns Promise resolved when the configuration has been set.
|
|
15011
|
+
*/
|
|
15012
|
+
export function setMimeHandlerOptions(
|
|
15013
|
+
|
|
15014
|
+
mimeType: string,
|
|
15015
|
+
|
|
15016
|
+
options: MimeHandlerOptions,
|
|
15017
|
+
): Promise<void>;
|
|
15018
|
+
|
|
15019
|
+
/**
|
|
15020
|
+
* Sets the configuration options for a specified MIME type.
|
|
15021
|
+
*
|
|
15022
|
+
* @param mimeType The MIME type to configure.
|
|
15023
|
+
* @param options The new options to use.
|
|
15024
|
+
*/
|
|
15025
|
+
export function setMimeHandlerOptions(
|
|
15026
|
+
|
|
15027
|
+
mimeType: string,
|
|
15028
|
+
|
|
15029
|
+
options: MimeHandlerOptions,
|
|
15030
|
+
|
|
15031
|
+
callback?: () => void,
|
|
15032
|
+
): void;
|
|
15033
|
+
|
|
15034
|
+
/**
|
|
15035
|
+
* Reads the persisted options for a MIME type. Returns defaults (enabled=true) if none have been stored.
|
|
15036
|
+
*
|
|
15037
|
+
* @param mimeType The MIME type whose options to read.
|
|
15038
|
+
* @returns Promise resolved with the persisted options for the MIME type.
|
|
15039
|
+
*/
|
|
15040
|
+
export function getMimeHandlerOptions(
|
|
15041
|
+
|
|
15042
|
+
mimeType: string,
|
|
15043
|
+
): Promise<MimeHandlerOptions>;
|
|
15044
|
+
|
|
15045
|
+
/**
|
|
15046
|
+
* Reads the persisted options for a MIME type. Returns defaults (enabled=true) if none have been stored.
|
|
15047
|
+
*
|
|
15048
|
+
* @param mimeType The MIME type whose options to read.
|
|
15049
|
+
*/
|
|
15050
|
+
export function getMimeHandlerOptions(
|
|
15051
|
+
|
|
15052
|
+
mimeType: string,
|
|
15053
|
+
|
|
15054
|
+
callback?: (
|
|
15055
|
+
options: MimeHandlerOptions,
|
|
15056
|
+
) => void,
|
|
15057
|
+
): void;
|
|
15058
|
+
}
|
|
15059
|
+
|
|
14924
15060
|
/**
|
|
14925
15061
|
* Use the `chrome.notifications` API to create rich notifications using templates and show these notifications to users in the system tray.
|
|
14926
15062
|
*
|
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": "7c9bacebcdb319a9"
|
|
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.432"
|
|
20
20
|
}
|