@types/chrome 0.1.35 → 0.1.37
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.
- chrome/README.md +1 -1
- chrome/index.d.ts +91 -2
- chrome/package.json +2 -2
chrome/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for chrome (https://developer.chrome.com/
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chrome.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Fri, 20 Feb 2026 20:44:11 GMT
|
|
12
12
|
* Dependencies: [@types/filesystem](https://npmjs.com/package/@types/filesystem), [@types/har-format](https://npmjs.com/package/@types/har-format)
|
|
13
13
|
|
|
14
14
|
# Credits
|
chrome/index.d.ts
CHANGED
|
@@ -692,9 +692,16 @@ declare namespace chrome {
|
|
|
692
692
|
|
|
693
693
|
/** @deprecated Bookmark write operations are no longer limited by Chrome. */
|
|
694
694
|
export const MAX_WRITE_OPERATIONS_PER_HOUR: 1000000;
|
|
695
|
+
|
|
695
696
|
/** @deprecated Bookmark write operations are no longer limited by Chrome. */
|
|
696
697
|
export const MAX_SUSTAINED_WRITE_OPERATIONS_PER_MINUTE: 1000000;
|
|
697
698
|
|
|
699
|
+
/**
|
|
700
|
+
* The `id` associated with the root level node.
|
|
701
|
+
* @since Chrome 145
|
|
702
|
+
*/
|
|
703
|
+
export const ROOT_NODE_ID = "0";
|
|
704
|
+
|
|
698
705
|
/**
|
|
699
706
|
* Creates a bookmark or folder under the specified parentId. If url is NULL or missing, it will be a folder.
|
|
700
707
|
*
|
|
@@ -1029,7 +1036,7 @@ declare namespace chrome {
|
|
|
1029
1036
|
cookies?: boolean | undefined;
|
|
1030
1037
|
/**
|
|
1031
1038
|
* Stored passwords.
|
|
1032
|
-
* @deprecated Support for password deletion through extensions has been removed. This data type will be ignored.
|
|
1039
|
+
* @deprecated since Chrome 144. Support for password deletion through extensions has been removed. This data type will be ignored.
|
|
1033
1040
|
*/
|
|
1034
1041
|
passwords?: boolean | undefined;
|
|
1035
1042
|
/**
|
|
@@ -1125,7 +1132,7 @@ declare namespace chrome {
|
|
|
1125
1132
|
* Clears the browser's stored passwords.
|
|
1126
1133
|
*
|
|
1127
1134
|
* Can return its result via Promise in Manifest V3 or later since Chrome 96.
|
|
1128
|
-
* @deprecated Support for password deletion through extensions has been removed. This function has no effect.
|
|
1135
|
+
* @deprecated since Chrome 144. Support for password deletion through extensions has been removed. This function has no effect.
|
|
1129
1136
|
*/
|
|
1130
1137
|
export function removePasswords(options: RemovalOptions): Promise<void>;
|
|
1131
1138
|
export function removePasswords(options: RemovalOptions, callback: () => void): void;
|
|
@@ -3779,6 +3786,8 @@ declare namespace chrome {
|
|
|
3779
3786
|
BLOCKED_SCAN_FAILED = "blockedScanFailed",
|
|
3780
3787
|
/** For use by the Secure Enterprise Browser extension. When required, Chrome will block the download to disc and download the file directly to Google Drive. */
|
|
3781
3788
|
FORCE_SAVE_TO_GDRIVE = "forceSaveToGdrive",
|
|
3789
|
+
/** For use by the Secure Enterprise Browser extension. When required, Chrome will block the download to disc and download the file directly to OneDrive. */
|
|
3790
|
+
FORCE_SAVE_TO_ONEDRIVE = "forceSaveToOnedrive",
|
|
3782
3791
|
}
|
|
3783
3792
|
|
|
3784
3793
|
export interface DownloadItem {
|
|
@@ -11045,6 +11054,11 @@ declare namespace chrome {
|
|
|
11045
11054
|
height?: number | undefined;
|
|
11046
11055
|
/** The session ID used to uniquely identify a tab obtained from the {@link sessions} API. */
|
|
11047
11056
|
sessionId?: string | undefined;
|
|
11057
|
+
/**
|
|
11058
|
+
* The ID of the Split View that the tab belongs to.
|
|
11059
|
+
* @since Chrome 145
|
|
11060
|
+
*/
|
|
11061
|
+
splitViewId?: number | undefined;
|
|
11048
11062
|
/**
|
|
11049
11063
|
* The ID of the group that the tab belongs to.
|
|
11050
11064
|
* @since Chrome 88
|
|
@@ -11116,6 +11130,12 @@ declare namespace chrome {
|
|
|
11116
11130
|
*/
|
|
11117
11131
|
export const MAX_CAPTURE_VISIBLE_TAB_CALLS_PER_SECOND = 2;
|
|
11118
11132
|
|
|
11133
|
+
/**
|
|
11134
|
+
* An ID that represents the absence of a split tab.
|
|
11135
|
+
* @since Chrome 145
|
|
11136
|
+
*/
|
|
11137
|
+
export const SPLIT_VIEW_ID_NONE: -1;
|
|
11138
|
+
|
|
11119
11139
|
/**
|
|
11120
11140
|
* An ID that represents the absence of a browser tab.
|
|
11121
11141
|
* @since Chrome 46
|
|
@@ -13085,6 +13105,10 @@ declare namespace chrome {
|
|
|
13085
13105
|
EXTRA_HEADERS = "extraHeaders",
|
|
13086
13106
|
/** Specifies that the response headers should be included in the event. */
|
|
13087
13107
|
RESPONSE_HEADERS = "responseHeaders",
|
|
13108
|
+
/** Specifies that the SecurityInfo should be included in the event. */
|
|
13109
|
+
SECURITY_INFO = "securityInfo",
|
|
13110
|
+
/** Specifies that the SecurityInfo with raw bytes of certificates should be included in the event. */
|
|
13111
|
+
SECURITY_INFO_RAW_DER = "securityInfoRawDer",
|
|
13088
13112
|
}
|
|
13089
13113
|
|
|
13090
13114
|
/** @since Chrome 44 */
|
|
@@ -13145,6 +13169,23 @@ declare namespace chrome {
|
|
|
13145
13169
|
OTHER = "other",
|
|
13146
13170
|
}
|
|
13147
13171
|
|
|
13172
|
+
/** @since Chrome 144 */
|
|
13173
|
+
export interface SecurityInfo {
|
|
13174
|
+
/** A list of certificates */
|
|
13175
|
+
certificates: {
|
|
13176
|
+
/** Fingerprints of the certificate. */
|
|
13177
|
+
fingerprint: {
|
|
13178
|
+
/** sha256 fingerprint of the certificate. */
|
|
13179
|
+
sha256: string;
|
|
13180
|
+
};
|
|
13181
|
+
/** Raw bytes of DER encoded server certificate */
|
|
13182
|
+
rawDER?: ArrayBuffer;
|
|
13183
|
+
}[];
|
|
13184
|
+
|
|
13185
|
+
/** State of the connection. One of secure, insecure, broken. */
|
|
13186
|
+
state: string;
|
|
13187
|
+
}
|
|
13188
|
+
|
|
13148
13189
|
/** Contains data uploaded in a URL request. */
|
|
13149
13190
|
export interface UploadData {
|
|
13150
13191
|
/** An ArrayBuffer with a copy of the data. */
|
|
@@ -13282,6 +13323,11 @@ declare namespace chrome {
|
|
|
13282
13323
|
export interface OnHeadersReceivedDetails extends WebRequestDetails {
|
|
13283
13324
|
/** The HTTP response headers that have been received with this response. */
|
|
13284
13325
|
responseHeaders?: HttpHeader[];
|
|
13326
|
+
/**
|
|
13327
|
+
* Information about the TLS/QUIC connection used for the underlying connection. Only provided if `securityInfo` is specified in the `extraInfoSpec` parameter.
|
|
13328
|
+
* @since Chrome 144
|
|
13329
|
+
*/
|
|
13330
|
+
securityInfo?: SecurityInfo;
|
|
13285
13331
|
/** Standard HTTP status code returned by the server. */
|
|
13286
13332
|
statusCode: number;
|
|
13287
13333
|
/** HTTP status line of the response or the 'HTTP/0.9 200 OK' string for HTTP/0.9 responses (i.e., responses that lack a status line) or an empty string if there are no headers.*/
|
|
@@ -14055,6 +14101,30 @@ declare namespace chrome {
|
|
|
14055
14101
|
responseHeaders?: HeaderInfo[];
|
|
14056
14102
|
}
|
|
14057
14103
|
|
|
14104
|
+
/** @since Chrome 145 */
|
|
14105
|
+
export enum RuleConditionKeys {
|
|
14106
|
+
URL_FILTER = "urlFilter",
|
|
14107
|
+
REGEX_FILTER = "regexFilter",
|
|
14108
|
+
IS_URL_FILTER_CASE_SENSITIVE = "isUrlFilterCaseSensitive",
|
|
14109
|
+
INITIATOR_DOMAINS = "initiatorDomains",
|
|
14110
|
+
EXCLUDED_INITIATOR_DOMAINS = "excludedInitiatorDomains",
|
|
14111
|
+
REQUEST_DOMAINS = "requestDomains",
|
|
14112
|
+
EXCLUDED_REQUEST_DOMAINS = "excludedRequestDomains",
|
|
14113
|
+
TOP_DOMAINS = "topDomains",
|
|
14114
|
+
EXCLUDED_TOP_DOMAINS = "excludedTopDomains",
|
|
14115
|
+
DOMAINS = "domains",
|
|
14116
|
+
EXCLUDED_DOMAINS = "excludedDomains",
|
|
14117
|
+
RESOURCE_TYPES = "resourceTypes",
|
|
14118
|
+
EXCLUDED_RESOURCE_TYPES = "excludedResourceTypes",
|
|
14119
|
+
REQUEST_METHODS = "requestMethods",
|
|
14120
|
+
EXCLUDED_REQUEST_METHODS = "excludedRequestMethods",
|
|
14121
|
+
DOMAIN_TYPE = "domainType",
|
|
14122
|
+
TAB_IDS = "tabIds",
|
|
14123
|
+
EXCLUDED_TAB_IDS = "excludedTabIds",
|
|
14124
|
+
RESPONSE_HEADERS = "responseHeaders",
|
|
14125
|
+
EXCLUDED_RESPONSE_HEADERS = "excludedResponseHeaders",
|
|
14126
|
+
}
|
|
14127
|
+
|
|
14058
14128
|
export interface MatchedRule {
|
|
14059
14129
|
/** A matching rule's ID. */
|
|
14060
14130
|
ruleId: number;
|
|
@@ -14275,6 +14345,11 @@ declare namespace chrome {
|
|
|
14275
14345
|
responseHeaders?: { [name: string]: unknown };
|
|
14276
14346
|
/** The ID of the tab in which the hypothetical request takes place. Does not need to correspond to a real tab ID. Default is -1, meaning that the request isn't related to a tab. */
|
|
14277
14347
|
tabId?: number;
|
|
14348
|
+
/**
|
|
14349
|
+
* The associated top-level frame URL (if any) for the request.
|
|
14350
|
+
* @since Chrome 145
|
|
14351
|
+
*/
|
|
14352
|
+
topUrl?: string;
|
|
14278
14353
|
/** The resource type of the hypothetical request. */
|
|
14279
14354
|
type: `${ResourceType}`;
|
|
14280
14355
|
/** The URL of the hypothetical request. */
|
|
@@ -14541,6 +14616,14 @@ declare namespace chrome {
|
|
|
14541
14616
|
default_path: string;
|
|
14542
14617
|
}
|
|
14543
14618
|
|
|
14619
|
+
/**
|
|
14620
|
+
* Closes the extension's side panel. This is a no-op if the panel is already closed.
|
|
14621
|
+
* @param options Specifies the context in which to close the side panel.
|
|
14622
|
+
* @since Chrome 141
|
|
14623
|
+
*/
|
|
14624
|
+
export function close(options: CloseOptions): Promise<void>;
|
|
14625
|
+
export function close(options: CloseOptions, callback: () => void): void;
|
|
14626
|
+
|
|
14544
14627
|
/**
|
|
14545
14628
|
* Returns the side panel's current layout.
|
|
14546
14629
|
* @since Chrome 140
|
|
@@ -14593,6 +14676,12 @@ declare namespace chrome {
|
|
|
14593
14676
|
export function setPanelBehavior(behavior: PanelBehavior): Promise<void>;
|
|
14594
14677
|
export function setPanelBehavior(behavior: PanelBehavior, callback: () => void): void;
|
|
14595
14678
|
|
|
14679
|
+
/**
|
|
14680
|
+
* Fired when the extension's side panel is closed.
|
|
14681
|
+
* @since Chrome 142
|
|
14682
|
+
*/
|
|
14683
|
+
const onClosed: events.Event<(info: PanelClosedInfo) => void>;
|
|
14684
|
+
|
|
14596
14685
|
/**
|
|
14597
14686
|
* Fired when the extension's side panel is opened.
|
|
14598
14687
|
* @since Chrome 141
|
chrome/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/chrome",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.37",
|
|
4
4
|
"description": "TypeScript definitions for chrome",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chrome",
|
|
6
6
|
"license": "MIT",
|
|
@@ -94,6 +94,6 @@
|
|
|
94
94
|
"@types/har-format": "*"
|
|
95
95
|
},
|
|
96
96
|
"peerDependencies": {},
|
|
97
|
-
"typesPublisherContentHash": "
|
|
97
|
+
"typesPublisherContentHash": "df76fec6a021d0929c93f32b59caf85c79097833cae716247457666f15a39396",
|
|
98
98
|
"typeScriptVersion": "5.2"
|
|
99
99
|
}
|