chrome-types 0.1.271 → 0.1.273

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 +25 -25
  2. package/index.d.ts +25 -25
  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 Fri Mar 08 2024 22:29:36 GMT+0000 (Coordinated Universal Time)
18
- // Built at 3c828ed9409f4242affd7006e86770e7737776f4
17
+ // Generated on Wed Mar 13 2024 22:28:57 GMT+0000 (Coordinated Universal Time)
18
+ // Built at 234817aae8fbd917079408c00e70cfc8d9416b6d
19
19
 
20
20
  // Includes all types, including MV2 + Platform Apps APIs.
21
21
 
@@ -6591,7 +6591,7 @@ declare namespace chrome {
6591
6591
  /**
6592
6592
  * Properties of the new context menu item.
6593
6593
  *
6594
- * @since Pending
6594
+ * @since Chrome 123
6595
6595
  */
6596
6596
  export interface CreateProperties {
6597
6597
 
@@ -6686,7 +6686,7 @@ declare namespace chrome {
6686
6686
  /**
6687
6687
  * Updates a previously created context menu item.
6688
6688
  *
6689
- * @chrome-returns-extra since Pending
6689
+ * @chrome-returns-extra since Chrome 123
6690
6690
  * @param id The ID of the item to update.
6691
6691
  * @param updateProperties The properties to update. Accepts the same values as the {@link contextMenus.create} function.
6692
6692
  */
@@ -6798,7 +6798,7 @@ declare namespace chrome {
6798
6798
  /**
6799
6799
  * Removes a context menu item.
6800
6800
  *
6801
- * @chrome-returns-extra since Pending
6801
+ * @chrome-returns-extra since Chrome 123
6802
6802
  * @param menuItemId The ID of the context menu item to remove.
6803
6803
  */
6804
6804
  export function remove(
@@ -6822,7 +6822,7 @@ declare namespace chrome {
6822
6822
  /**
6823
6823
  * Removes all context menu items added by this extension.
6824
6824
  *
6825
- * @chrome-returns-extra since Pending
6825
+ * @chrome-returns-extra since Chrome 123
6826
6826
  */
6827
6827
  export function removeAll(): Promise<void>;
6828
6828
 
@@ -11067,7 +11067,7 @@ declare namespace chrome {
11067
11067
  /**
11068
11068
  * Opens the downloaded file now if the {@link DownloadItem} is complete; otherwise returns an error through {@link runtime.lastError}. This method requires the `"downloads.open"` permission in addition to the `"downloads"` permission. An {@link onChanged} event fires when the item is opened for the first time. This method can only be called in response to a user gesture.
11069
11069
  *
11070
- * @chrome-returns-extra since Pending
11070
+ * @chrome-returns-extra since Chrome 123
11071
11071
  * @param downloadId The identifier for the downloaded file.
11072
11072
  */
11073
11073
  export function open(
@@ -11085,7 +11085,7 @@ declare namespace chrome {
11085
11085
  downloadId: number,
11086
11086
 
11087
11087
  /**
11088
- * @since Pending
11088
+ * @since Chrome 123
11089
11089
  */
11090
11090
  callback?: () => void,
11091
11091
  ): void;
@@ -11903,7 +11903,7 @@ declare namespace chrome {
11903
11903
  /**
11904
11904
  * Matches if the host part of the URL is an IP address and is contained in any of the CIDR blocks specified in the array.
11905
11905
  *
11906
- * @since Pending
11906
+ * @since Chrome 123
11907
11907
  */
11908
11908
  cidrBlocks?: string[];
11909
11909
  }
@@ -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
  */
@@ -29503,7 +29503,7 @@ declare namespace chrome {
29503
29503
  /**
29504
29504
  * An index that represents the absence of a tab index in a tab\_strip.
29505
29505
  *
29506
- * @since Pending
29506
+ * @since Chrome 123
29507
29507
  */
29508
29508
  export const TAB_INDEX_NONE: -1;
29509
29509
 
package/index.d.ts CHANGED
@@ -14,8 +14,8 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- // Generated on Fri Mar 08 2024 22:29:31 GMT+0000 (Coordinated Universal Time)
18
- // Built at 3c828ed9409f4242affd7006e86770e7737776f4
17
+ // Generated on Wed Mar 13 2024 22:28:53 GMT+0000 (Coordinated Universal Time)
18
+ // Built at 234817aae8fbd917079408c00e70cfc8d9416b6d
19
19
 
20
20
  // Includes MV3+ APIs only.
21
21
 
@@ -3337,7 +3337,7 @@ declare namespace chrome {
3337
3337
  /**
3338
3338
  * Properties of the new context menu item.
3339
3339
  *
3340
- * @since Pending
3340
+ * @since Chrome 123
3341
3341
  */
3342
3342
  export interface CreateProperties {
3343
3343
 
@@ -3432,7 +3432,7 @@ declare namespace chrome {
3432
3432
  /**
3433
3433
  * Updates a previously created context menu item.
3434
3434
  *
3435
- * @chrome-returns-extra since Pending
3435
+ * @chrome-returns-extra since Chrome 123
3436
3436
  * @param id The ID of the item to update.
3437
3437
  * @param updateProperties The properties to update. Accepts the same values as the {@link contextMenus.create} function.
3438
3438
  */
@@ -3544,7 +3544,7 @@ declare namespace chrome {
3544
3544
  /**
3545
3545
  * Removes a context menu item.
3546
3546
  *
3547
- * @chrome-returns-extra since Pending
3547
+ * @chrome-returns-extra since Chrome 123
3548
3548
  * @param menuItemId The ID of the context menu item to remove.
3549
3549
  */
3550
3550
  export function remove(
@@ -3568,7 +3568,7 @@ declare namespace chrome {
3568
3568
  /**
3569
3569
  * Removes all context menu items added by this extension.
3570
3570
  *
3571
- * @chrome-returns-extra since Pending
3571
+ * @chrome-returns-extra since Chrome 123
3572
3572
  */
3573
3573
  export function removeAll(): Promise<void>;
3574
3574
 
@@ -7197,7 +7197,7 @@ declare namespace chrome {
7197
7197
  /**
7198
7198
  * Opens the downloaded file now if the {@link DownloadItem} is complete; otherwise returns an error through {@link runtime.lastError}. This method requires the `"downloads.open"` permission in addition to the `"downloads"` permission. An {@link onChanged} event fires when the item is opened for the first time. This method can only be called in response to a user gesture.
7199
7199
  *
7200
- * @chrome-returns-extra since Pending
7200
+ * @chrome-returns-extra since Chrome 123
7201
7201
  * @param downloadId The identifier for the downloaded file.
7202
7202
  */
7203
7203
  export function open(
@@ -7215,7 +7215,7 @@ declare namespace chrome {
7215
7215
  downloadId: number,
7216
7216
 
7217
7217
  /**
7218
- * @since Pending
7218
+ * @since Chrome 123
7219
7219
  */
7220
7220
  callback?: () => void,
7221
7221
  ): void;
@@ -8033,7 +8033,7 @@ declare namespace chrome {
8033
8033
  /**
8034
8034
  * Matches if the host part of the URL is an IP address and is contained in any of the CIDR blocks specified in the array.
8035
8035
  *
8036
- * @since Pending
8036
+ * @since Chrome 123
8037
8037
  */
8038
8038
  cidrBlocks?: string[];
8039
8039
  }
@@ -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
  */
@@ -22733,7 +22733,7 @@ declare namespace chrome {
22733
22733
  /**
22734
22734
  * An index that represents the absence of a tab index in a tab\_strip.
22735
22735
  *
22736
- * @since Pending
22736
+ * @since Chrome 123
22737
22737
  */
22738
22738
  export const TAB_INDEX_NONE: -1;
22739
22739
 
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "type": "module",
6
6
  "name": "chrome-types",
7
7
  "config": {
8
- "build-hash": "8067b65e7a646a3e"
8
+ "build-hash": "2e7485175413be3b"
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.271"
19
+ "version": "0.1.273"
20
20
  }