@types/chrome 0.1.36 → 0.1.38

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. chrome/README.md +1 -1
  2. chrome/index.d.ts +56 -6
  3. 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: Wed, 21 Jan 2026 21:05:50 GMT
11
+ * Last updated: Mon, 16 Mar 2026 22:44:30 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
  *
@@ -4067,14 +4074,17 @@ declare namespace chrome {
4067
4074
  id: string;
4068
4075
  /**
4069
4076
  * Implements the WebCrypto's SubtleCrypto interface. The cryptographic operations, including key generation, are hardware-backed.
4070
- * Only non-extractable keys can be generated. The supported key types are RSASSA-PKCS1-V1_5 and RSA-OAEP (on Chrome versions 134+) with `modulusLength` up to 2048 and ECDSA with `namedCurve` P-256. Each RSASSA-PKCS1-V1_5 and ECDSA key can be used for signing data at most once, unless the extension is allowlisted through the KeyPermissions policy, in which case the key can be used indefinitely. RSA-OAEP keys are supported since Chrome version 134 and can be used by extensions allowlisted through that same policy to unwrap other keys.
4077
+ *
4078
+ * Only non-extractable keys can be generated. The supported key types are RSASSA-PKCS1-V1_5 with `modulusLength` up to 2048 and ECDSA with `namedCurve` P-256. Each key can be used for signing data at most once, unless the extension is allowlisted by the KeyPermissions policy, in which case the key can be used indefinitely.
4079
+ *
4071
4080
  * Keys generated on a specific `Token` cannot be used with any other Tokens, nor can they be used with `window.crypto.subtle`. Equally, `Key` objects created with `window.crypto.subtle` cannot be used with this interface.
4072
4081
  */
4073
4082
  subtleCrypto: SubtleCrypto;
4074
4083
  /**
4075
- * Implements the WebCrypto's SubtleCrypto interface. The cryptographic operations, including key generation, are software-backed.
4076
- * Protection of the keys, and thus implementation of the non-extractable property, is done in software, so the keys are less protected than hardware-backed keys.
4077
- * Only non-extractable keys can be generated. The supported key types are RSASSA-PKCS1-V1_5 and RSA-OAEP (on Chrome versions 134+) with `modulusLength` up to 2048. Each RSASSA-PKCS1-V1_5 key can be used for signing data at most once, unless the extension is allowlisted through the KeyPermissions policy, in which case the key can be used indefinitely. RSA-OAEP keys are supported since Chrome version 134 and can be used by extensions allowlisted through that same policy to unwrap other keys.
4084
+ * Implements the WebCrypto's SubtleCrypto interface. The cryptographic operations, including key generation, are software-backed. Protection of the keys, and thus implementation of the non-extractable property, is done in software, so the keys are less protected than hardware-backed keys.
4085
+ *
4086
+ * Only non-extractable keys can be generated. The only supported key type is RSASSA-PKCS1-V1_5 with `modulusLength` up to 2048. up to 2048. Each key can be used for signing data at most once, unless the extension is allowlisted through the KeyPermissions policy, in which case the key can be used indefinitely.
4087
+ *
4078
4088
  * Keys generated on a specific `Token` cannot be used with any other Tokens, nor can they be used with `window.crypto.subtle`. Equally, `Key` objects created with `window.crypto.subtle` cannot be used with this interface.
4079
4089
  * @since Chrome 97
4080
4090
  */
@@ -9683,7 +9693,7 @@ declare namespace chrome {
9683
9693
  /** Sent after onSuspend to indicate that the app won't be unloaded after all. */
9684
9694
  export const onSuspendCanceled: events.Event<() => void>;
9685
9695
 
9686
- /** Fired when a message is sent from either an extension process (by {@link runtime.sendMessage}) or a content script (by {@link tabs.sendMessage}). */
9696
+ /** Fired when a message is sent from either {@link runtime.sendMessage} or {@link tabs.sendMessage}. */
9687
9697
  export const onMessage: events.Event<
9688
9698
  (message: any, sender: MessageSender, sendResponse: (response?: any) => void) => void
9689
9699
  >;
@@ -11047,6 +11057,11 @@ declare namespace chrome {
11047
11057
  height?: number | undefined;
11048
11058
  /** The session ID used to uniquely identify a tab obtained from the {@link sessions} API. */
11049
11059
  sessionId?: string | undefined;
11060
+ /**
11061
+ * The ID of the Split View that the tab belongs to.
11062
+ * @since Chrome 140
11063
+ */
11064
+ splitViewId?: number | undefined;
11050
11065
  /**
11051
11066
  * The ID of the group that the tab belongs to.
11052
11067
  * @since Chrome 88
@@ -11118,6 +11133,12 @@ declare namespace chrome {
11118
11133
  */
11119
11134
  export const MAX_CAPTURE_VISIBLE_TAB_CALLS_PER_SECOND = 2;
11120
11135
 
11136
+ /**
11137
+ * An ID that represents the absence of a split tab.
11138
+ * @since Chrome 140
11139
+ */
11140
+ export const SPLIT_VIEW_ID_NONE: -1;
11141
+
11121
11142
  /**
11122
11143
  * An ID that represents the absence of a browser tab.
11123
11144
  * @since Chrome 46
@@ -11561,7 +11582,7 @@ declare namespace chrome {
11561
11582
  export function duplicate(tabId: number, callback: (tab?: Tab) => void): void;
11562
11583
 
11563
11584
  /**
11564
- * Sends a single message to the content script(s) in the specified tab, with an optional callback to run when a response is sent back. The {@link runtime.onMessage} event is fired in each content script running in the specified tab for the current extension.
11585
+ * Sends a single message to the content script(s) in the specified tab. The {@link runtime.onMessage} event is fired in each content script running in the specified tab for the current extension.
11565
11586
  *
11566
11587
  * Can return its result via Promise in Manifest V3 or later since Chrome 99.
11567
11588
  */
@@ -14083,6 +14104,30 @@ declare namespace chrome {
14083
14104
  responseHeaders?: HeaderInfo[];
14084
14105
  }
14085
14106
 
14107
+ /** @since Chrome 145 */
14108
+ export enum RuleConditionKeys {
14109
+ URL_FILTER = "urlFilter",
14110
+ REGEX_FILTER = "regexFilter",
14111
+ IS_URL_FILTER_CASE_SENSITIVE = "isUrlFilterCaseSensitive",
14112
+ INITIATOR_DOMAINS = "initiatorDomains",
14113
+ EXCLUDED_INITIATOR_DOMAINS = "excludedInitiatorDomains",
14114
+ REQUEST_DOMAINS = "requestDomains",
14115
+ EXCLUDED_REQUEST_DOMAINS = "excludedRequestDomains",
14116
+ TOP_DOMAINS = "topDomains",
14117
+ EXCLUDED_TOP_DOMAINS = "excludedTopDomains",
14118
+ DOMAINS = "domains",
14119
+ EXCLUDED_DOMAINS = "excludedDomains",
14120
+ RESOURCE_TYPES = "resourceTypes",
14121
+ EXCLUDED_RESOURCE_TYPES = "excludedResourceTypes",
14122
+ REQUEST_METHODS = "requestMethods",
14123
+ EXCLUDED_REQUEST_METHODS = "excludedRequestMethods",
14124
+ DOMAIN_TYPE = "domainType",
14125
+ TAB_IDS = "tabIds",
14126
+ EXCLUDED_TAB_IDS = "excludedTabIds",
14127
+ RESPONSE_HEADERS = "responseHeaders",
14128
+ EXCLUDED_RESPONSE_HEADERS = "excludedResponseHeaders",
14129
+ }
14130
+
14086
14131
  export interface MatchedRule {
14087
14132
  /** A matching rule's ID. */
14088
14133
  ruleId: number;
@@ -14303,6 +14348,11 @@ declare namespace chrome {
14303
14348
  responseHeaders?: { [name: string]: unknown };
14304
14349
  /** 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. */
14305
14350
  tabId?: number;
14351
+ /**
14352
+ * The associated top-level frame URL (if any) for the request.
14353
+ * @since Chrome 145
14354
+ */
14355
+ topUrl?: string;
14306
14356
  /** The resource type of the hypothetical request. */
14307
14357
  type: `${ResourceType}`;
14308
14358
  /** The URL of the hypothetical request. */
chrome/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/chrome",
3
- "version": "0.1.36",
3
+ "version": "0.1.38",
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": "cc28e9fba1d030948e2ff2d1ad8cb6b3ffd3907b16fe324446fe8c4c96bd2bd9",
97
+ "typesPublisherContentHash": "c61640331b717ffedc21826f78c5f1415848bc89734b65b169e28ca4faff7337",
98
98
  "typeScriptVersion": "5.2"
99
99
  }