chrome-types 0.1.270 → 0.1.272

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 +19 -19
  2. package/index.d.ts +19 -19
  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 Mon Feb 26 2024 22:30:11 GMT+0000 (Coordinated Universal Time)
18
- // Built at c96c313ac1e6c9b64abc5ee2d50315995770e2c2
17
+ // Generated on Tue Mar 12 2024 22:28:59 GMT+0000 (Coordinated Universal Time)
18
+ // Built at 2929e2e9fe627466519a40152a8ba0d3ee0f61ca
19
19
 
20
20
  // Includes all types, including MV2 + Platform Apps APIs.
21
21
 
@@ -10494,7 +10494,7 @@ declare namespace chrome {
10494
10494
  *
10495
10495
  * The user has accepted the dangerous download.
10496
10496
  */
10497
- export type DangerType = "file" | "url" | "content" | "uncommon" | "host" | "unwanted" | "safe" | "accepted" | "allowlistedByPolicy" | "asyncScanning" | "asyncLocalPasswordScanning" | "passwordProtected" | "blockedTooLarge" | "sensitiveContentWarning" | "sensitiveContentBlock" | "unsupportedFileType" | "deepScannedFailed" | "deepScannedSafe" | "deepScannedOpenedDangerous" | "promptForScanning" | "promptForLocalPasswordScanning" | "accountCompromise";
10497
+ export type DangerType = "file" | "url" | "content" | "uncommon" | "host" | "unwanted" | "safe" | "accepted" | "allowlistedByPolicy" | "asyncScanning" | "asyncLocalPasswordScanning" | "passwordProtected" | "blockedTooLarge" | "sensitiveContentWarning" | "sensitiveContentBlock" | "unsupportedFileType" | "deepScannedFailed" | "deepScannedSafe" | "deepScannedOpenedDangerous" | "promptForScanning" | "promptForLocalPasswordScanning" | "accountCompromise" | "blockedScanFailed";
10498
10498
 
10499
10499
  /**
10500
10500
  * in\_progress
@@ -22990,7 +22990,7 @@ declare namespace chrome {
22990
22990
  }
22991
22991
 
22992
22992
  /**
22993
- * Use the `chrome.runtime` API to retrieve the service worker, return details about the manifest, and listen for and respond to events in the app or extension lifecycle. You can also use this API to convert the relative path of URLs to fully-qualified URLs.
22993
+ * Use the `chrome.runtime` API to retrieve the service worker, return details about the manifest, and listen for and respond to events in the extension lifecycle. You can also use this API to convert the relative path of URLs to fully-qualified URLs.
22994
22994
  */
22995
22995
  export namespace runtime {
22996
22996
 
@@ -23059,7 +23059,7 @@ declare namespace chrome {
23059
23059
  frameId?: number;
23060
23060
 
23061
23061
  /**
23062
- * The ID of the extension or app that opened the connection, if any.
23062
+ * The ID of the extension that opened the connection, if any.
23063
23063
  */
23064
23064
  id?: string;
23065
23065
 
@@ -23076,7 +23076,7 @@ declare namespace chrome {
23076
23076
  nativeApplication?: string;
23077
23077
 
23078
23078
  /**
23079
- * The TLS channel ID of the page or frame that opened the connection, if requested by the extension or app, and if available.
23079
+ * The TLS channel ID of the page or frame that opened the connection, if requested by the extension, and if available.
23080
23080
  */
23081
23081
  tlsChannelId?: string;
23082
23082
 
@@ -23401,7 +23401,7 @@ declare namespace chrome {
23401
23401
  ) => boolean | undefined>;
23402
23402
 
23403
23403
  /**
23404
- * Fired when a message is sent from another extension/app (by {@link runtime.sendMessage}). Cannot be used in a content script.
23404
+ * Fired when a message is sent from another extension (by {@link runtime.sendMessage}). Cannot be used in a content script.
23405
23405
  */
23406
23406
  export const onMessageExternal: events.Event<(
23407
23407
  message: any,
@@ -23529,7 +23529,7 @@ declare namespace chrome {
23529
23529
  *
23530
23530
  * **Important**: Most extensions/apps should **not** use this method, since Chrome already does automatic checks every few hours, and you can listen for the {@link runtime.onUpdateAvailable} event without needing to call requestUpdateCheck.
23531
23531
  *
23532
- * This method is only appropriate to call in very limited circumstances, such as if your extension/app talks to a backend service, and the backend service has determined that the client extension/app version is very far out of date and you'd like to prompt a user to update. Most other uses of requestUpdateCheck, such as calling it unconditionally based on a repeating timer, probably only serve to waste client, network, and server resources.
23532
+ * This method is only appropriate to call in very limited circumstances, such as if your extension talks to a backend service, and the backend service has determined that the client extension version is very far out of date and you'd like to prompt a user to update. Most other uses of requestUpdateCheck, such as calling it unconditionally based on a repeating timer, probably only serve to waste client, network, and server resources.
23533
23533
  *
23534
23534
  * Note: When called with a callback, instead of returning an object this function will return the two properties as separate arguments passed to the callback.
23535
23535
  *
@@ -23553,7 +23553,7 @@ declare namespace chrome {
23553
23553
  *
23554
23554
  * **Important**: Most extensions/apps should **not** use this method, since Chrome already does automatic checks every few hours, and you can listen for the {@link runtime.onUpdateAvailable} event without needing to call requestUpdateCheck.
23555
23555
  *
23556
- * This method is only appropriate to call in very limited circumstances, such as if your extension/app talks to a backend service, and the backend service has determined that the client extension/app version is very far out of date and you'd like to prompt a user to update. Most other uses of requestUpdateCheck, such as calling it unconditionally based on a repeating timer, probably only serve to waste client, network, and server resources.
23556
+ * This method is only appropriate to call in very limited circumstances, such as if your extension talks to a backend service, and the backend service has determined that the client extension version is very far out of date and you'd like to prompt a user to update. Most other uses of requestUpdateCheck, such as calling it unconditionally based on a repeating timer, probably only serve to waste client, network, and server resources.
23557
23557
  *
23558
23558
  * Note: When called with a callback, instead of returning an object this function will return the two properties as separate arguments passed to the callback.
23559
23559
  */
@@ -23613,10 +23613,10 @@ declare namespace chrome {
23613
23613
  ): void;
23614
23614
 
23615
23615
  /**
23616
- * Attempts to connect listeners within an extension/app (such as the background page), or other extensions/apps. This is useful for content scripts connecting to their extension processes, inter-app/extension communication, and [web messaging](https://developer.chrome.com/docs/extensions/manifest/externally_connectable). Note that this does not connect to any listeners in a content script. Extensions may connect to content scripts embedded in tabs via {@link tabs.connect}.
23616
+ * Attempts to connect listeners within an extension (such as the background page), or other extensions/apps. This is useful for content scripts connecting to their extension processes, inter-app/extension communication, and [web messaging](https://developer.chrome.com/docs/extensions/manifest/externally_connectable). Note that this does not connect to any listeners in a content script. Extensions may connect to content scripts embedded in tabs via {@link tabs.connect}.
23617
23617
  *
23618
- * @param extensionId The ID of the extension or app to connect to. If omitted, a connection will be attempted with your own extension. Required if sending messages from a web page for [web messaging](https://developer.chrome.com/docs/extensions/reference/manifest/externally-connectable).
23619
- * @returns Port through which messages can be sent and received. The port's {@link Port onDisconnect} event is fired if the extension/app does not exist.
23618
+ * @param extensionId The ID of the extension to connect to. If omitted, a connection will be attempted with your own extension. Required if sending messages from a web page for [web messaging](https://developer.chrome.com/docs/extensions/reference/manifest/externally-connectable).
23619
+ * @returns Port through which messages can be sent and received. The port's {@link Port onDisconnect} event is fired if the extension does not exist.
23620
23620
  */
23621
23621
  export function connect(
23622
23622
 
@@ -23649,10 +23649,10 @@ declare namespace chrome {
23649
23649
  ): Port;
23650
23650
 
23651
23651
  /**
23652
- * Sends a single message to event listeners within your extension/app or a different extension/app. Similar to {@link runtime.connect} but only sends a single message, with an optional response. If sending to your extension, the {@link runtime.onMessage} event will be fired in every frame of your extension (except for the sender's frame), or {@link runtime.onMessageExternal}, if a different extension. Note that extensions cannot send messages to content scripts using this method. To send messages to content scripts, use {@link tabs.sendMessage}.
23652
+ * Sends a single message to event listeners within your extension or a different extension/app. Similar to {@link runtime.connect} but only sends a single message, with an optional response. If sending to your extension, the {@link runtime.onMessage} event will be fired in every frame of your extension (except for the sender's frame), or {@link runtime.onMessageExternal}, if a different extension. Note that extensions cannot send messages to content scripts using this method. To send messages to content scripts, use {@link tabs.sendMessage}.
23653
23653
  *
23654
23654
  * @chrome-returns-extra since Chrome 99
23655
- * @param extensionId The ID of the extension/app to send the message to. If omitted, the message will be sent to your own extension/app. Required if sending messages from a web page for [web messaging](https://developer.chrome.com/docs/extensions/manifest/externally_connectable).
23655
+ * @param extensionId The ID of the extension to send the message to. If omitted, the message will be sent to your own extension/app. Required if sending messages from a web page for [web messaging](https://developer.chrome.com/docs/extensions/manifest/externally_connectable).
23656
23656
  * @param message The message to send. This message should be a JSON-ifiable object.
23657
23657
  */
23658
23658
  export function sendMessage(
@@ -23671,7 +23671,7 @@ declare namespace chrome {
23671
23671
  ): Promise<any>;
23672
23672
 
23673
23673
  /**
23674
- * Sends a single message to event listeners within your extension/app or a different extension/app. Similar to {@link runtime.connect} but only sends a single message, with an optional response. If sending to your extension, the {@link runtime.onMessage} event will be fired in every frame of your extension (except for the sender's frame), or {@link runtime.onMessageExternal}, if a different extension. Note that extensions cannot send messages to content scripts using this method. To send messages to content scripts, use {@link tabs.sendMessage}.
23674
+ * Sends a single message to event listeners within your extension or a different extension/app. Similar to {@link runtime.connect} but only sends a single message, with an optional response. If sending to your extension, the {@link runtime.onMessage} event will be fired in every frame of your extension (except for the sender's frame), or {@link runtime.onMessageExternal}, if a different extension. Note that extensions cannot send messages to content scripts using this method. To send messages to content scripts, use {@link tabs.sendMessage}.
23675
23675
  *
23676
23676
  * @chrome-returns-extra since Chrome 99
23677
23677
  * @param message The message to send. This message should be a JSON-ifiable object.
@@ -23690,9 +23690,9 @@ declare namespace chrome {
23690
23690
  ): Promise<any>;
23691
23691
 
23692
23692
  /**
23693
- * Sends a single message to event listeners within your extension/app or a different extension/app. Similar to {@link runtime.connect} but only sends a single message, with an optional response. If sending to your extension, the {@link runtime.onMessage} event will be fired in every frame of your extension (except for the sender's frame), or {@link runtime.onMessageExternal}, if a different extension. Note that extensions cannot send messages to content scripts using this method. To send messages to content scripts, use {@link tabs.sendMessage}.
23693
+ * Sends a single message to event listeners within your extension or a different extension/app. Similar to {@link runtime.connect} but only sends a single message, with an optional response. If sending to your extension, the {@link runtime.onMessage} event will be fired in every frame of your extension (except for the sender's frame), or {@link runtime.onMessageExternal}, if a different extension. Note that extensions cannot send messages to content scripts using this method. To send messages to content scripts, use {@link tabs.sendMessage}.
23694
23694
  *
23695
- * @param extensionId The ID of the extension/app to send the message to. If omitted, the message will be sent to your own extension/app. Required if sending messages from a web page for [web messaging](https://developer.chrome.com/docs/extensions/manifest/externally_connectable).
23695
+ * @param extensionId The ID of the extension to send the message to. If omitted, the message will be sent to your own extension/app. Required if sending messages from a web page for [web messaging](https://developer.chrome.com/docs/extensions/manifest/externally_connectable).
23696
23696
  * @param message The message to send. This message should be a JSON-ifiable object.
23697
23697
  */
23698
23698
  export function sendMessage(
@@ -23719,7 +23719,7 @@ declare namespace chrome {
23719
23719
  ): void;
23720
23720
 
23721
23721
  /**
23722
- * Sends a single message to event listeners within your extension/app or a different extension/app. Similar to {@link runtime.connect} but only sends a single message, with an optional response. If sending to your extension, the {@link runtime.onMessage} event will be fired in every frame of your extension (except for the sender's frame), or {@link runtime.onMessageExternal}, if a different extension. Note that extensions cannot send messages to content scripts using this method. To send messages to content scripts, use {@link tabs.sendMessage}.
23722
+ * Sends a single message to event listeners within your extension or a different extension/app. Similar to {@link runtime.connect} but only sends a single message, with an optional response. If sending to your extension, the {@link runtime.onMessage} event will be fired in every frame of your extension (except for the sender's frame), or {@link runtime.onMessageExternal}, if a different extension. Note that extensions cannot send messages to content scripts using this method. To send messages to content scripts, use {@link tabs.sendMessage}.
23723
23723
  *
23724
23724
  * @param message The message to send. This message should be a JSON-ifiable object.
23725
23725
  */
@@ -27533,7 +27533,7 @@ declare namespace chrome {
27533
27533
  };
27534
27534
 
27535
27535
  /**
27536
- * Items in the `managed` storage area are set by the domain administrator, and are read-only for the extension; trying to modify this namespace results in an error.
27536
+ * Items in the `managed` storage area are set by an enterprise policy configured by the domain administrator, and are read-only for the extension; trying to modify this namespace results in an error. For information on configuring a policy, see [Manifest for storage areas](https://developer.chrome.com/docs/extensions/reference/manifest/storage).
27537
27537
  */
27538
27538
  export const managed: StorageArea;
27539
27539
 
package/index.d.ts CHANGED
@@ -14,8 +14,8 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- // Generated on Mon Feb 26 2024 22:30:06 GMT+0000 (Coordinated Universal Time)
18
- // Built at c96c313ac1e6c9b64abc5ee2d50315995770e2c2
17
+ // Generated on Tue Mar 12 2024 22:28:54 GMT+0000 (Coordinated Universal Time)
18
+ // Built at 2929e2e9fe627466519a40152a8ba0d3ee0f61ca
19
19
 
20
20
  // Includes MV3+ APIs only.
21
21
 
@@ -6624,7 +6624,7 @@ declare namespace chrome {
6624
6624
  *
6625
6625
  * The user has accepted the dangerous download.
6626
6626
  */
6627
- export type DangerType = "file" | "url" | "content" | "uncommon" | "host" | "unwanted" | "safe" | "accepted" | "allowlistedByPolicy" | "asyncScanning" | "asyncLocalPasswordScanning" | "passwordProtected" | "blockedTooLarge" | "sensitiveContentWarning" | "sensitiveContentBlock" | "unsupportedFileType" | "deepScannedFailed" | "deepScannedSafe" | "deepScannedOpenedDangerous" | "promptForScanning" | "promptForLocalPasswordScanning" | "accountCompromise";
6627
+ export type DangerType = "file" | "url" | "content" | "uncommon" | "host" | "unwanted" | "safe" | "accepted" | "allowlistedByPolicy" | "asyncScanning" | "asyncLocalPasswordScanning" | "passwordProtected" | "blockedTooLarge" | "sensitiveContentWarning" | "sensitiveContentBlock" | "unsupportedFileType" | "deepScannedFailed" | "deepScannedSafe" | "deepScannedOpenedDangerous" | "promptForScanning" | "promptForLocalPasswordScanning" | "accountCompromise" | "blockedScanFailed";
6628
6628
 
6629
6629
  /**
6630
6630
  * in\_progress
@@ -17764,7 +17764,7 @@ declare namespace chrome {
17764
17764
  }
17765
17765
 
17766
17766
  /**
17767
- * Use the `chrome.runtime` API to retrieve the service worker, return details about the manifest, and listen for and respond to events in the app or extension lifecycle. You can also use this API to convert the relative path of URLs to fully-qualified URLs.
17767
+ * Use the `chrome.runtime` API to retrieve the service worker, return details about the manifest, and listen for and respond to events in the extension lifecycle. You can also use this API to convert the relative path of URLs to fully-qualified URLs.
17768
17768
  */
17769
17769
  export namespace runtime {
17770
17770
 
@@ -17833,7 +17833,7 @@ declare namespace chrome {
17833
17833
  frameId?: number;
17834
17834
 
17835
17835
  /**
17836
- * The ID of the extension or app that opened the connection, if any.
17836
+ * The ID of the extension that opened the connection, if any.
17837
17837
  */
17838
17838
  id?: string;
17839
17839
 
@@ -17850,7 +17850,7 @@ declare namespace chrome {
17850
17850
  nativeApplication?: string;
17851
17851
 
17852
17852
  /**
17853
- * The TLS channel ID of the page or frame that opened the connection, if requested by the extension or app, and if available.
17853
+ * The TLS channel ID of the page or frame that opened the connection, if requested by the extension, and if available.
17854
17854
  */
17855
17855
  tlsChannelId?: string;
17856
17856
 
@@ -18164,7 +18164,7 @@ declare namespace chrome {
18164
18164
  ) => boolean | undefined>;
18165
18165
 
18166
18166
  /**
18167
- * Fired when a message is sent from another extension/app (by {@link runtime.sendMessage}). Cannot be used in a content script.
18167
+ * Fired when a message is sent from another extension (by {@link runtime.sendMessage}). Cannot be used in a content script.
18168
18168
  */
18169
18169
  export const onMessageExternal: events.Event<(
18170
18170
  message: any,
@@ -18292,7 +18292,7 @@ declare namespace chrome {
18292
18292
  *
18293
18293
  * **Important**: Most extensions/apps should **not** use this method, since Chrome already does automatic checks every few hours, and you can listen for the {@link runtime.onUpdateAvailable} event without needing to call requestUpdateCheck.
18294
18294
  *
18295
- * This method is only appropriate to call in very limited circumstances, such as if your extension/app talks to a backend service, and the backend service has determined that the client extension/app version is very far out of date and you'd like to prompt a user to update. Most other uses of requestUpdateCheck, such as calling it unconditionally based on a repeating timer, probably only serve to waste client, network, and server resources.
18295
+ * This method is only appropriate to call in very limited circumstances, such as if your extension talks to a backend service, and the backend service has determined that the client extension version is very far out of date and you'd like to prompt a user to update. Most other uses of requestUpdateCheck, such as calling it unconditionally based on a repeating timer, probably only serve to waste client, network, and server resources.
18296
18296
  *
18297
18297
  * Note: When called with a callback, instead of returning an object this function will return the two properties as separate arguments passed to the callback.
18298
18298
  *
@@ -18316,7 +18316,7 @@ declare namespace chrome {
18316
18316
  *
18317
18317
  * **Important**: Most extensions/apps should **not** use this method, since Chrome already does automatic checks every few hours, and you can listen for the {@link runtime.onUpdateAvailable} event without needing to call requestUpdateCheck.
18318
18318
  *
18319
- * This method is only appropriate to call in very limited circumstances, such as if your extension/app talks to a backend service, and the backend service has determined that the client extension/app version is very far out of date and you'd like to prompt a user to update. Most other uses of requestUpdateCheck, such as calling it unconditionally based on a repeating timer, probably only serve to waste client, network, and server resources.
18319
+ * This method is only appropriate to call in very limited circumstances, such as if your extension talks to a backend service, and the backend service has determined that the client extension version is very far out of date and you'd like to prompt a user to update. Most other uses of requestUpdateCheck, such as calling it unconditionally based on a repeating timer, probably only serve to waste client, network, and server resources.
18320
18320
  *
18321
18321
  * Note: When called with a callback, instead of returning an object this function will return the two properties as separate arguments passed to the callback.
18322
18322
  */
@@ -18376,10 +18376,10 @@ declare namespace chrome {
18376
18376
  ): void;
18377
18377
 
18378
18378
  /**
18379
- * Attempts to connect listeners within an extension/app (such as the background page), or other extensions/apps. This is useful for content scripts connecting to their extension processes, inter-app/extension communication, and [web messaging](https://developer.chrome.com/docs/extensions/manifest/externally_connectable). Note that this does not connect to any listeners in a content script. Extensions may connect to content scripts embedded in tabs via {@link tabs.connect}.
18379
+ * Attempts to connect listeners within an extension (such as the background page), or other extensions/apps. This is useful for content scripts connecting to their extension processes, inter-app/extension communication, and [web messaging](https://developer.chrome.com/docs/extensions/manifest/externally_connectable). Note that this does not connect to any listeners in a content script. Extensions may connect to content scripts embedded in tabs via {@link tabs.connect}.
18380
18380
  *
18381
- * @param extensionId The ID of the extension or app to connect to. If omitted, a connection will be attempted with your own extension. Required if sending messages from a web page for [web messaging](https://developer.chrome.com/docs/extensions/reference/manifest/externally-connectable).
18382
- * @returns Port through which messages can be sent and received. The port's {@link Port onDisconnect} event is fired if the extension/app does not exist.
18381
+ * @param extensionId The ID of the extension to connect to. If omitted, a connection will be attempted with your own extension. Required if sending messages from a web page for [web messaging](https://developer.chrome.com/docs/extensions/reference/manifest/externally-connectable).
18382
+ * @returns Port through which messages can be sent and received. The port's {@link Port onDisconnect} event is fired if the extension does not exist.
18383
18383
  */
18384
18384
  export function connect(
18385
18385
 
@@ -18412,10 +18412,10 @@ declare namespace chrome {
18412
18412
  ): Port;
18413
18413
 
18414
18414
  /**
18415
- * Sends a single message to event listeners within your extension/app or a different extension/app. Similar to {@link runtime.connect} but only sends a single message, with an optional response. If sending to your extension, the {@link runtime.onMessage} event will be fired in every frame of your extension (except for the sender's frame), or {@link runtime.onMessageExternal}, if a different extension. Note that extensions cannot send messages to content scripts using this method. To send messages to content scripts, use {@link tabs.sendMessage}.
18415
+ * Sends a single message to event listeners within your extension or a different extension/app. Similar to {@link runtime.connect} but only sends a single message, with an optional response. If sending to your extension, the {@link runtime.onMessage} event will be fired in every frame of your extension (except for the sender's frame), or {@link runtime.onMessageExternal}, if a different extension. Note that extensions cannot send messages to content scripts using this method. To send messages to content scripts, use {@link tabs.sendMessage}.
18416
18416
  *
18417
18417
  * @chrome-returns-extra since Chrome 99
18418
- * @param extensionId The ID of the extension/app to send the message to. If omitted, the message will be sent to your own extension/app. Required if sending messages from a web page for [web messaging](https://developer.chrome.com/docs/extensions/manifest/externally_connectable).
18418
+ * @param extensionId The ID of the extension to send the message to. If omitted, the message will be sent to your own extension/app. Required if sending messages from a web page for [web messaging](https://developer.chrome.com/docs/extensions/manifest/externally_connectable).
18419
18419
  * @param message The message to send. This message should be a JSON-ifiable object.
18420
18420
  */
18421
18421
  export function sendMessage(
@@ -18434,7 +18434,7 @@ declare namespace chrome {
18434
18434
  ): Promise<any>;
18435
18435
 
18436
18436
  /**
18437
- * Sends a single message to event listeners within your extension/app or a different extension/app. Similar to {@link runtime.connect} but only sends a single message, with an optional response. If sending to your extension, the {@link runtime.onMessage} event will be fired in every frame of your extension (except for the sender's frame), or {@link runtime.onMessageExternal}, if a different extension. Note that extensions cannot send messages to content scripts using this method. To send messages to content scripts, use {@link tabs.sendMessage}.
18437
+ * Sends a single message to event listeners within your extension or a different extension/app. Similar to {@link runtime.connect} but only sends a single message, with an optional response. If sending to your extension, the {@link runtime.onMessage} event will be fired in every frame of your extension (except for the sender's frame), or {@link runtime.onMessageExternal}, if a different extension. Note that extensions cannot send messages to content scripts using this method. To send messages to content scripts, use {@link tabs.sendMessage}.
18438
18438
  *
18439
18439
  * @chrome-returns-extra since Chrome 99
18440
18440
  * @param message The message to send. This message should be a JSON-ifiable object.
@@ -18453,9 +18453,9 @@ declare namespace chrome {
18453
18453
  ): Promise<any>;
18454
18454
 
18455
18455
  /**
18456
- * Sends a single message to event listeners within your extension/app or a different extension/app. Similar to {@link runtime.connect} but only sends a single message, with an optional response. If sending to your extension, the {@link runtime.onMessage} event will be fired in every frame of your extension (except for the sender's frame), or {@link runtime.onMessageExternal}, if a different extension. Note that extensions cannot send messages to content scripts using this method. To send messages to content scripts, use {@link tabs.sendMessage}.
18456
+ * Sends a single message to event listeners within your extension or a different extension/app. Similar to {@link runtime.connect} but only sends a single message, with an optional response. If sending to your extension, the {@link runtime.onMessage} event will be fired in every frame of your extension (except for the sender's frame), or {@link runtime.onMessageExternal}, if a different extension. Note that extensions cannot send messages to content scripts using this method. To send messages to content scripts, use {@link tabs.sendMessage}.
18457
18457
  *
18458
- * @param extensionId The ID of the extension/app to send the message to. If omitted, the message will be sent to your own extension/app. Required if sending messages from a web page for [web messaging](https://developer.chrome.com/docs/extensions/manifest/externally_connectable).
18458
+ * @param extensionId The ID of the extension to send the message to. If omitted, the message will be sent to your own extension/app. Required if sending messages from a web page for [web messaging](https://developer.chrome.com/docs/extensions/manifest/externally_connectable).
18459
18459
  * @param message The message to send. This message should be a JSON-ifiable object.
18460
18460
  */
18461
18461
  export function sendMessage(
@@ -18482,7 +18482,7 @@ declare namespace chrome {
18482
18482
  ): void;
18483
18483
 
18484
18484
  /**
18485
- * Sends a single message to event listeners within your extension/app or a different extension/app. Similar to {@link runtime.connect} but only sends a single message, with an optional response. If sending to your extension, the {@link runtime.onMessage} event will be fired in every frame of your extension (except for the sender's frame), or {@link runtime.onMessageExternal}, if a different extension. Note that extensions cannot send messages to content scripts using this method. To send messages to content scripts, use {@link tabs.sendMessage}.
18485
+ * Sends a single message to event listeners within your extension or a different extension/app. Similar to {@link runtime.connect} but only sends a single message, with an optional response. If sending to your extension, the {@link runtime.onMessage} event will be fired in every frame of your extension (except for the sender's frame), or {@link runtime.onMessageExternal}, if a different extension. Note that extensions cannot send messages to content scripts using this method. To send messages to content scripts, use {@link tabs.sendMessage}.
18486
18486
  *
18487
18487
  * @param message The message to send. This message should be a JSON-ifiable object.
18488
18488
  */
@@ -21023,7 +21023,7 @@ declare namespace chrome {
21023
21023
  };
21024
21024
 
21025
21025
  /**
21026
- * Items in the `managed` storage area are set by the domain administrator, and are read-only for the extension; trying to modify this namespace results in an error.
21026
+ * Items in the `managed` storage area are set by an enterprise policy configured by the domain administrator, and are read-only for the extension; trying to modify this namespace results in an error. For information on configuring a policy, see [Manifest for storage areas](https://developer.chrome.com/docs/extensions/reference/manifest/storage).
21027
21027
  */
21028
21028
  export const managed: StorageArea;
21029
21029
 
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "type": "module",
6
6
  "name": "chrome-types",
7
7
  "config": {
8
- "build-hash": "ed339411e4234df8"
8
+ "build-hash": "1baa6de0c57ae772"
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.270"
19
+ "version": "0.1.272"
20
20
  }