chrome-types 0.1.72 → 0.1.76

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 +161 -13
  2. package/index.d.ts +114 -10
  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 Sun Nov 28 2021 22:27:41 GMT+0000 (Coordinated Universal Time)
18
- // Built at 1eb17e15be59ac864df2dd46b1d5cf8452086414
17
+ // Generated on Tue Dec 28 2021 22:28:31 GMT+0000 (Coordinated Universal Time)
18
+ // Built at 7965be8be52e2689ad17e4cdf599aa2fc88fb968
19
19
 
20
20
  // Includes all types, including MV2 + Platform Apps APIs.
21
21
 
@@ -12487,6 +12487,33 @@ declare namespace chrome {
12487
12487
  sendResponse: () => void,
12488
12488
  ) => void>;
12489
12489
 
12490
+ /**
12491
+ * Sends a single request to other listeners within the extension. Similar to {@link runtime.connect}, but only sends a single request with an optional response. The {@link extension.onRequest} event is fired in each page of the extension.
12492
+ *
12493
+ * @chrome-returns-extra since Pending
12494
+ * @param extensionId The extension ID of the extension you want to connect to. If omitted, default is your own extension.
12495
+ * @deprecated Please use {@link runtime.sendMessage}.
12496
+ * @chrome-max-manifest MV2
12497
+ */
12498
+ export function sendRequest(
12499
+
12500
+ extensionId: string,
12501
+
12502
+ request: any,
12503
+ ): Promise<any>;
12504
+
12505
+ /**
12506
+ * Sends a single request to other listeners within the extension. Similar to {@link runtime.connect}, but only sends a single request with an optional response. The {@link extension.onRequest} event is fired in each page of the extension.
12507
+ *
12508
+ * @chrome-returns-extra since Pending
12509
+ * @deprecated Please use {@link runtime.sendMessage}.
12510
+ * @chrome-max-manifest MV2
12511
+ */
12512
+ export function sendRequest(
12513
+
12514
+ request: any,
12515
+ ): Promise<any>;
12516
+
12490
12517
  /**
12491
12518
  * Sends a single request to other listeners within the extension. Similar to {@link runtime.connect}, but only sends a single request with an optional response. The {@link extension.onRequest} event is fired in each page of the extension.
12492
12519
  *
@@ -12502,8 +12529,9 @@ declare namespace chrome {
12502
12529
 
12503
12530
  /**
12504
12531
  * @param response The JSON response object sent by the handler of the request. If an error occurs while connecting to the extension, the callback will be called with no arguments and {@link runtime.lastError} will be set to the error message.
12532
+ * @since Pending
12505
12533
  */
12506
- responseCallback?: (
12534
+ callback?: (
12507
12535
  response: any,
12508
12536
  ) => void,
12509
12537
  ): void;
@@ -12520,8 +12548,9 @@ declare namespace chrome {
12520
12548
 
12521
12549
  /**
12522
12550
  * @param response The JSON response object sent by the handler of the request. If an error occurs while connecting to the extension, the callback will be called with no arguments and {@link runtime.lastError} will be set to the error message.
12551
+ * @since Pending
12523
12552
  */
12524
- responseCallback?: (
12553
+ callback?: (
12525
12554
  response: any,
12526
12555
  ) => void,
12527
12556
  ): void;
@@ -12589,6 +12618,13 @@ declare namespace chrome {
12589
12618
  windowId?: number,
12590
12619
  ): Window[];
12591
12620
 
12621
+ /**
12622
+ * Retrieves the state of the extension's access to Incognito-mode. This corresponds to the user-controlled per-extension 'Allowed in Incognito' setting accessible via the chrome://extensions page.
12623
+ *
12624
+ * @chrome-returns-extra since Pending
12625
+ */
12626
+ export function isAllowedIncognitoAccess(): Promise<boolean>;
12627
+
12592
12628
  /**
12593
12629
  * Retrieves the state of the extension's access to Incognito-mode. This corresponds to the user-controlled per-extension 'Allowed in Incognito' setting accessible via the chrome://extensions page.
12594
12630
  */
@@ -12597,11 +12633,18 @@ declare namespace chrome {
12597
12633
  /**
12598
12634
  * @param isAllowedAccess True if the extension has access to Incognito mode, false otherwise.
12599
12635
  */
12600
- callback: (
12636
+ callback?: (
12601
12637
  isAllowedAccess: boolean,
12602
12638
  ) => void,
12603
12639
  ): void;
12604
12640
 
12641
+ /**
12642
+ * Retrieves the state of the extension's access to the 'file://' scheme. This corresponds to the user-controlled per-extension 'Allow access to File URLs' setting accessible via the chrome://extensions page.
12643
+ *
12644
+ * @chrome-returns-extra since Pending
12645
+ */
12646
+ export function isAllowedFileSchemeAccess(): Promise<boolean>;
12647
+
12605
12648
  /**
12606
12649
  * Retrieves the state of the extension's access to the 'file://' scheme. This corresponds to the user-controlled per-extension 'Allow access to File URLs' setting accessible via the chrome://extensions page.
12607
12650
  */
@@ -12610,7 +12653,7 @@ declare namespace chrome {
12610
12653
  /**
12611
12654
  * @param isAllowedAccess True if the extension can access the 'file://' scheme, false otherwise.
12612
12655
  */
12613
- callback: (
12656
+ callback?: (
12614
12657
  isAllowedAccess: boolean,
12615
12658
  ) => void,
12616
12659
  ): void;
@@ -12990,6 +13033,7 @@ declare namespace chrome {
12990
13033
  * @chrome-permission fileBrowserHandler
12991
13034
  * @chrome-disallow-service-workers
12992
13035
  * @chrome-platform chromeos
13036
+ * @chrome-platform lacros
12993
13037
  */
12994
13038
  export namespace fileBrowserHandler {
12995
13039
 
@@ -22442,6 +22486,14 @@ declare namespace chrome {
22442
22486
  reason: OnRestartRequiredReason,
22443
22487
  ) => void>;
22444
22488
 
22489
+ /**
22490
+ * Retrieves the JavaScript 'window' object for the background page running inside the current extension/app. If the background page is an event page, the system will ensure it is loaded before calling the callback. If there is no background page, an error is set.
22491
+ *
22492
+ * @chrome-returns-extra since Pending
22493
+ * @chrome-disallow-service-workers
22494
+ */
22495
+ export function getBackgroundPage(): Promise<Window | undefined>;
22496
+
22445
22497
  /**
22446
22498
  * Retrieves the JavaScript 'window' object for the background page running inside the current extension/app. If the background page is an event page, the system will ensure it is loaded before calling the callback. If there is no background page, an error is set.
22447
22499
  *
@@ -22452,7 +22504,7 @@ declare namespace chrome {
22452
22504
  /**
22453
22505
  * @param backgroundPage The JavaScript 'window' object for the background page.
22454
22506
  */
22455
- callback: (
22507
+ callback?: (
22456
22508
  backgroundPage?: Window,
22457
22509
  ) => void,
22458
22510
  ): void;
@@ -22588,6 +22640,47 @@ declare namespace chrome {
22588
22640
  application: string,
22589
22641
  ): Port;
22590
22642
 
22643
+ /**
22644
+ * 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}.
22645
+ *
22646
+ * @chrome-returns-extra since Pending
22647
+ * @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).
22648
+ * @param message The message to send. This message should be a JSON-ifiable object.
22649
+ */
22650
+ export function sendMessage(
22651
+
22652
+ extensionId: string,
22653
+
22654
+ message: any,
22655
+
22656
+ options?: {
22657
+
22658
+ /**
22659
+ * Whether the TLS channel ID will be passed into onMessageExternal for processes that are listening for the connection event.
22660
+ */
22661
+ includeTlsChannelId?: boolean,
22662
+ },
22663
+ ): Promise<any>;
22664
+
22665
+ /**
22666
+ * 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}.
22667
+ *
22668
+ * @chrome-returns-extra since Pending
22669
+ * @param message The message to send. This message should be a JSON-ifiable object.
22670
+ */
22671
+ export function sendMessage(
22672
+
22673
+ message: any,
22674
+
22675
+ options?: {
22676
+
22677
+ /**
22678
+ * Whether the TLS channel ID will be passed into onMessageExternal for processes that are listening for the connection event.
22679
+ */
22680
+ includeTlsChannelId?: boolean,
22681
+ },
22682
+ ): Promise<any>;
22683
+
22591
22684
  /**
22592
22685
  * 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}.
22593
22686
  *
@@ -22610,8 +22703,9 @@ declare namespace chrome {
22610
22703
 
22611
22704
  /**
22612
22705
  * @param response The JSON response object sent by the handler of the message. If an error occurs while connecting to the extension, the callback will be called with no arguments and {@link runtime.lastError} will be set to the error message.
22706
+ * @since Pending
22613
22707
  */
22614
- responseCallback?: (
22708
+ callback?: (
22615
22709
  response: any,
22616
22710
  ) => void,
22617
22711
  ): void;
@@ -22635,12 +22729,28 @@ declare namespace chrome {
22635
22729
 
22636
22730
  /**
22637
22731
  * @param response The JSON response object sent by the handler of the message. If an error occurs while connecting to the extension, the callback will be called with no arguments and {@link runtime.lastError} will be set to the error message.
22732
+ * @since Pending
22638
22733
  */
22639
- responseCallback?: (
22734
+ callback?: (
22640
22735
  response: any,
22641
22736
  ) => void,
22642
22737
  ): void;
22643
22738
 
22739
+ /**
22740
+ * Send a single message to a native application.
22741
+ *
22742
+ * @chrome-returns-extra since Pending
22743
+ * @param application The name of the native messaging host.
22744
+ * @param message The message that will be passed to the native messaging host.
22745
+ * @chrome-permission nativeMessaging
22746
+ */
22747
+ export function sendNativeMessage(
22748
+
22749
+ application: string,
22750
+
22751
+ message: {[name: string]: any},
22752
+ ): Promise<any>;
22753
+
22644
22754
  /**
22645
22755
  * Send a single message to a native application.
22646
22756
  *
@@ -22656,8 +22766,9 @@ declare namespace chrome {
22656
22766
 
22657
22767
  /**
22658
22768
  * @param response The response message sent by the native messaging host. If an error occurs while connecting to the native messaging host, the callback will be called with no arguments and {@link runtime.lastError} will be set to the error message.
22769
+ * @since Pending
22659
22770
  */
22660
- responseCallback?: (
22771
+ callback?: (
22661
22772
  response: any,
22662
22773
  ) => void,
22663
22774
  ): void;
@@ -27120,7 +27231,7 @@ declare namespace chrome {
27120
27231
  /**
27121
27232
  * The group's color.
27122
27233
  */
27123
- export type Color = "grey" | "blue" | "red" | "yellow" | "green" | "pink" | "purple" | "cyan";
27234
+ export type Color = "grey" | "blue" | "red" | "yellow" | "green" | "pink" | "purple" | "cyan" | "orange";
27124
27235
 
27125
27236
  export interface TabGroup {
27126
27237
 
@@ -27939,6 +28050,20 @@ declare namespace chrome {
27939
28050
  },
27940
28051
  ): runtime.Port;
27941
28052
 
28053
+ /**
28054
+ * Sends a single request to the content script(s) in the specified tab, with an optional callback to run when a response is sent back. The {@link extension.onRequest} event is fired in each content script running in the specified tab for the current extension.
28055
+ *
28056
+ * @chrome-returns-extra since Pending
28057
+ * @deprecated Please use {@link runtime.sendMessage}.
28058
+ * @chrome-max-manifest MV2
28059
+ */
28060
+ export function sendRequest(
28061
+
28062
+ tabId: number,
28063
+
28064
+ request: any,
28065
+ ): Promise<any>;
28066
+
27942
28067
  /**
27943
28068
  * Sends a single request to the content script(s) in the specified tab, with an optional callback to run when a response is sent back. The {@link extension.onRequest} event is fired in each content script running in the specified tab for the current extension.
27944
28069
  *
@@ -27953,12 +28078,34 @@ declare namespace chrome {
27953
28078
 
27954
28079
  /**
27955
28080
  * @param response The JSON response object sent by the handler of the request. If an error occurs while connecting to the specified tab, the callback is called with no arguments and {@link runtime.lastError} is set to the error message.
28081
+ * @since Pending
27956
28082
  */
27957
- responseCallback?: (
28083
+ callback?: (
27958
28084
  response: any,
27959
28085
  ) => void,
27960
28086
  ): void;
27961
28087
 
28088
+ /**
28089
+ * 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.
28090
+ *
28091
+ * @chrome-returns-extra since Pending
28092
+ * @param message The message to send. This message should be a JSON-ifiable object.
28093
+ */
28094
+ export function sendMessage(
28095
+
28096
+ tabId: number,
28097
+
28098
+ message: any,
28099
+
28100
+ options?: {
28101
+
28102
+ /**
28103
+ * Send a message to a specific [frame](https://developer.chrome.com/docs/extensions/reference/webNavigation/#frame_ids) identified by `frameId` instead of all frames in the tab.
28104
+ */
28105
+ frameId?: number,
28106
+ },
28107
+ ): Promise<any>;
28108
+
27962
28109
  /**
27963
28110
  * 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.
27964
28111
  *
@@ -27980,8 +28127,9 @@ declare namespace chrome {
27980
28127
 
27981
28128
  /**
27982
28129
  * @param response The JSON response object sent by the handler of the message. If an error occurs while connecting to the specified tab, the callback is called with no arguments and {@link runtime.lastError} is set to the error message.
28130
+ * @since Pending
27983
28131
  */
27984
- responseCallback?: (
28132
+ callback?: (
27985
28133
  response: any,
27986
28134
  ) => void,
27987
28135
  ): void;
package/index.d.ts CHANGED
@@ -14,8 +14,8 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- // Generated on Sun Nov 28 2021 22:27:36 GMT+0000 (Coordinated Universal Time)
18
- // Built at 1eb17e15be59ac864df2dd46b1d5cf8452086414
17
+ // Generated on Tue Dec 28 2021 22:28:26 GMT+0000 (Coordinated Universal Time)
18
+ // Built at 7965be8be52e2689ad17e4cdf599aa2fc88fb968
19
19
 
20
20
  // Includes MV3+ APIs only.
21
21
 
@@ -8455,6 +8455,13 @@ declare namespace chrome {
8455
8455
  */
8456
8456
  export function getBackgroundPage(): Window | undefined;
8457
8457
 
8458
+ /**
8459
+ * Retrieves the state of the extension's access to Incognito-mode. This corresponds to the user-controlled per-extension 'Allowed in Incognito' setting accessible via the chrome://extensions page.
8460
+ *
8461
+ * @chrome-returns-extra since Pending
8462
+ */
8463
+ export function isAllowedIncognitoAccess(): Promise<boolean>;
8464
+
8458
8465
  /**
8459
8466
  * Retrieves the state of the extension's access to Incognito-mode. This corresponds to the user-controlled per-extension 'Allowed in Incognito' setting accessible via the chrome://extensions page.
8460
8467
  */
@@ -8463,11 +8470,18 @@ declare namespace chrome {
8463
8470
  /**
8464
8471
  * @param isAllowedAccess True if the extension has access to Incognito mode, false otherwise.
8465
8472
  */
8466
- callback: (
8473
+ callback?: (
8467
8474
  isAllowedAccess: boolean,
8468
8475
  ) => void,
8469
8476
  ): void;
8470
8477
 
8478
+ /**
8479
+ * Retrieves the state of the extension's access to the 'file://' scheme. This corresponds to the user-controlled per-extension 'Allow access to File URLs' setting accessible via the chrome://extensions page.
8480
+ *
8481
+ * @chrome-returns-extra since Pending
8482
+ */
8483
+ export function isAllowedFileSchemeAccess(): Promise<boolean>;
8484
+
8471
8485
  /**
8472
8486
  * Retrieves the state of the extension's access to the 'file://' scheme. This corresponds to the user-controlled per-extension 'Allow access to File URLs' setting accessible via the chrome://extensions page.
8473
8487
  */
@@ -8476,7 +8490,7 @@ declare namespace chrome {
8476
8490
  /**
8477
8491
  * @param isAllowedAccess True if the extension can access the 'file://' scheme, false otherwise.
8478
8492
  */
8479
- callback: (
8493
+ callback?: (
8480
8494
  isAllowedAccess: boolean,
8481
8495
  ) => void,
8482
8496
  ): void;
@@ -8856,6 +8870,7 @@ declare namespace chrome {
8856
8870
  * @chrome-permission fileBrowserHandler
8857
8871
  * @chrome-disallow-service-workers
8858
8872
  * @chrome-platform chromeos
8873
+ * @chrome-platform lacros
8859
8874
  */
8860
8875
  export namespace fileBrowserHandler {
8861
8876
 
@@ -15353,6 +15368,14 @@ declare namespace chrome {
15353
15368
  reason: OnRestartRequiredReason,
15354
15369
  ) => void>;
15355
15370
 
15371
+ /**
15372
+ * Retrieves the JavaScript 'window' object for the background page running inside the current extension/app. If the background page is an event page, the system will ensure it is loaded before calling the callback. If there is no background page, an error is set.
15373
+ *
15374
+ * @chrome-returns-extra since Pending
15375
+ * @chrome-disallow-service-workers
15376
+ */
15377
+ export function getBackgroundPage(): Promise<Window | undefined>;
15378
+
15356
15379
  /**
15357
15380
  * Retrieves the JavaScript 'window' object for the background page running inside the current extension/app. If the background page is an event page, the system will ensure it is loaded before calling the callback. If there is no background page, an error is set.
15358
15381
  *
@@ -15363,7 +15386,7 @@ declare namespace chrome {
15363
15386
  /**
15364
15387
  * @param backgroundPage The JavaScript 'window' object for the background page.
15365
15388
  */
15366
- callback: (
15389
+ callback?: (
15367
15390
  backgroundPage?: Window,
15368
15391
  ) => void,
15369
15392
  ): void;
@@ -15499,6 +15522,47 @@ declare namespace chrome {
15499
15522
  application: string,
15500
15523
  ): Port;
15501
15524
 
15525
+ /**
15526
+ * 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}.
15527
+ *
15528
+ * @chrome-returns-extra since Pending
15529
+ * @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).
15530
+ * @param message The message to send. This message should be a JSON-ifiable object.
15531
+ */
15532
+ export function sendMessage(
15533
+
15534
+ extensionId: string,
15535
+
15536
+ message: any,
15537
+
15538
+ options?: {
15539
+
15540
+ /**
15541
+ * Whether the TLS channel ID will be passed into onMessageExternal for processes that are listening for the connection event.
15542
+ */
15543
+ includeTlsChannelId?: boolean,
15544
+ },
15545
+ ): Promise<any>;
15546
+
15547
+ /**
15548
+ * 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}.
15549
+ *
15550
+ * @chrome-returns-extra since Pending
15551
+ * @param message The message to send. This message should be a JSON-ifiable object.
15552
+ */
15553
+ export function sendMessage(
15554
+
15555
+ message: any,
15556
+
15557
+ options?: {
15558
+
15559
+ /**
15560
+ * Whether the TLS channel ID will be passed into onMessageExternal for processes that are listening for the connection event.
15561
+ */
15562
+ includeTlsChannelId?: boolean,
15563
+ },
15564
+ ): Promise<any>;
15565
+
15502
15566
  /**
15503
15567
  * 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}.
15504
15568
  *
@@ -15521,8 +15585,9 @@ declare namespace chrome {
15521
15585
 
15522
15586
  /**
15523
15587
  * @param response The JSON response object sent by the handler of the message. If an error occurs while connecting to the extension, the callback will be called with no arguments and {@link runtime.lastError} will be set to the error message.
15588
+ * @since Pending
15524
15589
  */
15525
- responseCallback?: (
15590
+ callback?: (
15526
15591
  response: any,
15527
15592
  ) => void,
15528
15593
  ): void;
@@ -15546,12 +15611,28 @@ declare namespace chrome {
15546
15611
 
15547
15612
  /**
15548
15613
  * @param response The JSON response object sent by the handler of the message. If an error occurs while connecting to the extension, the callback will be called with no arguments and {@link runtime.lastError} will be set to the error message.
15614
+ * @since Pending
15549
15615
  */
15550
- responseCallback?: (
15616
+ callback?: (
15551
15617
  response: any,
15552
15618
  ) => void,
15553
15619
  ): void;
15554
15620
 
15621
+ /**
15622
+ * Send a single message to a native application.
15623
+ *
15624
+ * @chrome-returns-extra since Pending
15625
+ * @param application The name of the native messaging host.
15626
+ * @param message The message that will be passed to the native messaging host.
15627
+ * @chrome-permission nativeMessaging
15628
+ */
15629
+ export function sendNativeMessage(
15630
+
15631
+ application: string,
15632
+
15633
+ message: {[name: string]: any},
15634
+ ): Promise<any>;
15635
+
15555
15636
  /**
15556
15637
  * Send a single message to a native application.
15557
15638
  *
@@ -15567,8 +15648,9 @@ declare namespace chrome {
15567
15648
 
15568
15649
  /**
15569
15650
  * @param response The response message sent by the native messaging host. If an error occurs while connecting to the native messaging host, the callback will be called with no arguments and {@link runtime.lastError} will be set to the error message.
15651
+ * @since Pending
15570
15652
  */
15571
- responseCallback?: (
15653
+ callback?: (
15572
15654
  response: any,
15573
15655
  ) => void,
15574
15656
  ): void;
@@ -17569,7 +17651,7 @@ declare namespace chrome {
17569
17651
  /**
17570
17652
  * The group's color.
17571
17653
  */
17572
- export type Color = "grey" | "blue" | "red" | "yellow" | "green" | "pink" | "purple" | "cyan";
17654
+ export type Color = "grey" | "blue" | "red" | "yellow" | "green" | "pink" | "purple" | "cyan" | "orange";
17573
17655
 
17574
17656
  export interface TabGroup {
17575
17657
 
@@ -18333,6 +18415,27 @@ declare namespace chrome {
18333
18415
  },
18334
18416
  ): runtime.Port;
18335
18417
 
18418
+ /**
18419
+ * 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.
18420
+ *
18421
+ * @chrome-returns-extra since Pending
18422
+ * @param message The message to send. This message should be a JSON-ifiable object.
18423
+ */
18424
+ export function sendMessage(
18425
+
18426
+ tabId: number,
18427
+
18428
+ message: any,
18429
+
18430
+ options?: {
18431
+
18432
+ /**
18433
+ * Send a message to a specific [frame](https://developer.chrome.com/docs/extensions/reference/webNavigation/#frame_ids) identified by `frameId` instead of all frames in the tab.
18434
+ */
18435
+ frameId?: number,
18436
+ },
18437
+ ): Promise<any>;
18438
+
18336
18439
  /**
18337
18440
  * 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.
18338
18441
  *
@@ -18354,8 +18457,9 @@ declare namespace chrome {
18354
18457
 
18355
18458
  /**
18356
18459
  * @param response The JSON response object sent by the handler of the message. If an error occurs while connecting to the specified tab, the callback is called with no arguments and {@link runtime.lastError} is set to the error message.
18460
+ * @since Pending
18357
18461
  */
18358
- responseCallback?: (
18462
+ callback?: (
18359
18463
  response: any,
18360
18464
  ) => void,
18361
18465
  ): void;
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "type": "module",
6
6
  "name": "chrome-types",
7
7
  "config": {
8
- "build-hash": "2c997a3731772930"
8
+ "build-hash": "41b904c21a85313d"
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.72"
19
+ "version": "0.1.76"
20
20
  }