chrome-types 0.1.45 → 0.1.46

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 (2) hide show
  1. package/index.d.ts +180 -1
  2. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -80,7 +80,7 @@ declare namespace browserAction {
80
80
 
81
81
  }
82
82
 
83
- // Generated on Thu Sep 30 2021 22:23:30 GMT+0000 (Coordinated Universal Time)
83
+ // Generated on Fri Oct 01 2021 22:23:28 GMT+0000 (Coordinated Universal Time)
84
84
 
85
85
 
86
86
  declare namespace chrome {
@@ -4779,6 +4779,17 @@ declare namespace chrome {
4779
4779
  */
4780
4780
  namespace _debugger {
4781
4781
 
4782
+ /**
4783
+ * Attaches debugger to the given target.
4784
+ *
4785
+ * @param target Debugging target to which you want to attach.
4786
+ * @param requiredVersion Required debugging protocol version ("0.1"). One can only attach to the debuggee with matching major version and greater or equal minor version. List of the protocol versions can be obtained [here](https://developer.chrome.com/devtools/docs/debugger-protocol).
4787
+ */
4788
+ export function attach(
4789
+ target: Debuggee,
4790
+ requiredVersion: string,
4791
+ ): Promise<void>;
4792
+
4782
4793
  /**
4783
4794
  * Attaches debugger to the given target.
4784
4795
  *
@@ -4792,6 +4803,15 @@ declare namespace chrome {
4792
4803
  callback?: () => void,
4793
4804
  ): void;
4794
4805
 
4806
+ /**
4807
+ * Detaches debugger from the given target.
4808
+ *
4809
+ * @param target Debugging target from which you want to detach.
4810
+ */
4811
+ export function detach(
4812
+ target: Debuggee,
4813
+ ): Promise<void>;
4814
+
4795
4815
  /**
4796
4816
  * Detaches debugger from the given target.
4797
4817
  *
@@ -4803,6 +4823,19 @@ declare namespace chrome {
4803
4823
  callback?: () => void,
4804
4824
  ): void;
4805
4825
 
4826
+ /**
4827
+ * Sends given command to the debugging target.
4828
+ *
4829
+ * @param target Debugging target to which you want to send the command.
4830
+ * @param method Method name. Should be one of the methods defined by the [remote debugging protocol](https://developer.chrome.com/devtools/docs/debugger-protocol).
4831
+ * @param commandParams JSON object with request parameters. This object must conform to the remote debugging params scheme for given method.
4832
+ */
4833
+ export function sendCommand(
4834
+ target: Debuggee,
4835
+ method: string,
4836
+ commandParams?: {[name: string]: any},
4837
+ ): Promise<{[name: string]: any}>;
4838
+
4806
4839
  /**
4807
4840
  * Sends given command to the debugging target.
4808
4841
  *
@@ -4823,6 +4856,11 @@ declare namespace chrome {
4823
4856
  ) => void,
4824
4857
  ): void;
4825
4858
 
4859
+ /**
4860
+ * Returns the list of available debug targets.
4861
+ */
4862
+ export function getTargets(): Promise<TargetInfo[]>;
4863
+
4826
4864
  /**
4827
4865
  * Returns the list of available debug targets.
4828
4866
  *
@@ -10447,6 +10485,35 @@ declare namespace chrome {
10447
10485
  */
10448
10486
  export namespace history {
10449
10487
 
10488
+ /**
10489
+ * Searches the history for the last visit time of each page matching the query.
10490
+ *
10491
+ * @param query
10492
+ */
10493
+ export function search(
10494
+ query: {
10495
+ /**
10496
+ * A free-text query to the history service. Leave empty to retrieve all pages.
10497
+ */
10498
+ text: string,
10499
+
10500
+ /**
10501
+ * Limit results to those visited after this date, represented in milliseconds since the epoch. If not specified, this defaults to 24 hours in the past.
10502
+ */
10503
+ startTime?: number,
10504
+
10505
+ /**
10506
+ * Limit results to those visited before this date, represented in milliseconds since the epoch.
10507
+ */
10508
+ endTime?: number,
10509
+
10510
+ /**
10511
+ * The maximum number of results to retrieve. Defaults to 100.
10512
+ */
10513
+ maxResults?: number,
10514
+ },
10515
+ ): Promise<HistoryItem[]>;
10516
+
10450
10517
  /**
10451
10518
  * Searches the history for the last visit time of each page matching the query.
10452
10519
  *
@@ -10480,6 +10547,15 @@ declare namespace chrome {
10480
10547
  ) => void,
10481
10548
  ): void;
10482
10549
 
10550
+ /**
10551
+ * Retrieves information about visits to a URL.
10552
+ *
10553
+ * @param details
10554
+ */
10555
+ export function getVisits(
10556
+ details: UrlDetails,
10557
+ ): Promise<VisitItem[]>;
10558
+
10483
10559
  /**
10484
10560
  * Retrieves information about visits to a URL.
10485
10561
  *
@@ -10493,6 +10569,15 @@ declare namespace chrome {
10493
10569
  ) => void,
10494
10570
  ): void;
10495
10571
 
10572
+ /**
10573
+ * Adds a URL to the history at the current time with a [transition type](https://developer.chrome.com/docs/extensions/reference/history/#transition_types) of "link".
10574
+ *
10575
+ * @param details
10576
+ */
10577
+ export function addUrl(
10578
+ details: UrlDetails,
10579
+ ): Promise<void>;
10580
+
10496
10581
  /**
10497
10582
  * Adds a URL to the history at the current time with a [transition type](https://developer.chrome.com/docs/extensions/reference/history/#transition_types) of "link".
10498
10583
  *
@@ -10504,6 +10589,15 @@ declare namespace chrome {
10504
10589
  callback?: () => void,
10505
10590
  ): void;
10506
10591
 
10592
+ /**
10593
+ * Removes all occurrences of the given URL from the history.
10594
+ *
10595
+ * @param details
10596
+ */
10597
+ export function deleteUrl(
10598
+ details: UrlDetails,
10599
+ ): Promise<void>;
10600
+
10507
10601
  /**
10508
10602
  * Removes all occurrences of the given URL from the history.
10509
10603
  *
@@ -10515,6 +10609,25 @@ declare namespace chrome {
10515
10609
  callback?: () => void,
10516
10610
  ): void;
10517
10611
 
10612
+ /**
10613
+ * Removes all items within the specified date range from the history. Pages will not be removed from the history unless all visits fall within the range.
10614
+ *
10615
+ * @param range
10616
+ */
10617
+ export function deleteRange(
10618
+ range: {
10619
+ /**
10620
+ * Items added to history after this date, represented in milliseconds since the epoch.
10621
+ */
10622
+ startTime: number,
10623
+
10624
+ /**
10625
+ * Items added to history before this date, represented in milliseconds since the epoch.
10626
+ */
10627
+ endTime: number,
10628
+ },
10629
+ ): Promise<void>;
10630
+
10518
10631
  /**
10519
10632
  * Removes all items within the specified date range from the history. Pages will not be removed from the history unless all visits fall within the range.
10520
10633
  *
@@ -10536,6 +10649,11 @@ declare namespace chrome {
10536
10649
  callback: () => void,
10537
10650
  ): void;
10538
10651
 
10652
+ /**
10653
+ * Deletes all items from the history.
10654
+ */
10655
+ export function deleteAll(): Promise<void>;
10656
+
10539
10657
  /**
10540
10658
  * Deletes all items from the history.
10541
10659
  *
@@ -11859,6 +11977,11 @@ declare namespace chrome {
11859
11977
  */
11860
11978
  export namespace instanceID {
11861
11979
 
11980
+ /**
11981
+ * Retrieves an identifier for the app instance. The instance ID will be returned by the `callback`. The same ID will be returned as long as the application identity has not been revoked or expired.
11982
+ */
11983
+ export function getID(): Promise<string>;
11984
+
11862
11985
  /**
11863
11986
  * Retrieves an identifier for the app instance. The instance ID will be returned by the `callback`. The same ID will be returned as long as the application identity has not been revoked or expired.
11864
11987
  *
@@ -11873,6 +11996,11 @@ declare namespace chrome {
11873
11996
  ) => void,
11874
11997
  ): void;
11875
11998
 
11999
+ /**
12000
+ * Retrieves the time when the InstanceID has been generated. The creation time will be returned by the `callback`.
12001
+ */
12002
+ export function getCreationTime(): Promise<number>;
12003
+
11876
12004
  /**
11877
12005
  * Retrieves the time when the InstanceID has been generated. The creation time will be returned by the `callback`.
11878
12006
  *
@@ -11887,6 +12015,33 @@ declare namespace chrome {
11887
12015
  ) => void,
11888
12016
  ): void;
11889
12017
 
12018
+ /**
12019
+ * Return a token that allows the authorized entity to access the service defined by scope.
12020
+ *
12021
+ * @param getTokenParams Parameters for getToken.
12022
+ */
12023
+ export function getToken(
12024
+ getTokenParams: {
12025
+ /**
12026
+ * Identifies the entity that is authorized to access resources associated with this Instance ID. It can be a project ID from [Google developer console](https://code.google.com/apis/console).
12027
+ */
12028
+ authorizedEntity: string,
12029
+
12030
+ /**
12031
+ * Identifies authorized actions that the authorized entity can take. E.g. for sending GCM messages, `GCM` scope should be used.
12032
+ */
12033
+ scope: string,
12034
+
12035
+ /**
12036
+ * Allows including a small number of string key/value pairs that will be associated with the token and may be used in processing the request.
12037
+ *
12038
+ * @deprecated options are deprecated and will be ignored.
12039
+ * @deprecated-since Chrome 89
12040
+ */
12041
+ options?: {[name: string]: string},
12042
+ },
12043
+ ): Promise<string>;
12044
+
11890
12045
  /**
11891
12046
  * Return a token that allows the authorized entity to access the service defined by scope.
11892
12047
  *
@@ -11921,6 +12076,25 @@ declare namespace chrome {
11921
12076
  ) => void,
11922
12077
  ): void;
11923
12078
 
12079
+ /**
12080
+ * Revokes a granted token.
12081
+ *
12082
+ * @param deleteTokenParams Parameters for deleteToken.
12083
+ */
12084
+ export function deleteToken(
12085
+ deleteTokenParams: {
12086
+ /**
12087
+ * The authorized entity that is used to obtain the token.
12088
+ */
12089
+ authorizedEntity: string,
12090
+
12091
+ /**
12092
+ * The scope that is used to obtain the token.
12093
+ */
12094
+ scope: string,
12095
+ },
12096
+ ): Promise<void>;
12097
+
11924
12098
  /**
11925
12099
  * Revokes a granted token.
11926
12100
  *
@@ -11942,6 +12116,11 @@ declare namespace chrome {
11942
12116
  callback: () => void,
11943
12117
  ): void;
11944
12118
 
12119
+ /**
12120
+ * Resets the app instance identifier and revokes all tokens associated with it.
12121
+ */
12122
+ export function deleteID(): Promise<void>;
12123
+
11945
12124
  /**
11946
12125
  * Resets the app instance identifier and revokes all tokens associated with it.
11947
12126
  *
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "types": "index.d.ts",
5
5
  "type": "module",
6
6
  "name": "chrome-types",
7
- "version": "0.1.45",
7
+ "version": "0.1.46",
8
8
  "repository": {
9
9
  "type": "git",
10
10
  "url": "git+https://github.com/GoogleChrome/chrome-types.git"