chrome-types 0.1.232 → 0.1.233
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.
- package/_all.d.ts +36 -23
- package/index.d.ts +36 -23
- 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
|
|
18
|
-
// Built at
|
|
17
|
+
// Generated on Wed Oct 18 2023 22:34:57 GMT+0000 (Coordinated Universal Time)
|
|
18
|
+
// Built at 21919053e93b8cae4243b76c725831f21b7e4e9c
|
|
19
19
|
|
|
20
20
|
// Includes all types, including MV2 + Platform Apps APIs.
|
|
21
21
|
|
|
@@ -8394,14 +8394,14 @@ declare namespace chrome {
|
|
|
8394
8394
|
/**
|
|
8395
8395
|
* The maximum number of static `Rulesets` an extension can specify as part of the `"rule_resources"` manifest key.
|
|
8396
8396
|
*/
|
|
8397
|
-
export const MAX_NUMBER_OF_STATIC_RULESETS:
|
|
8397
|
+
export const MAX_NUMBER_OF_STATIC_RULESETS: 100;
|
|
8398
8398
|
|
|
8399
8399
|
/**
|
|
8400
8400
|
* The maximum number of static `Rulesets` an extension can enable at any one time.
|
|
8401
8401
|
*
|
|
8402
8402
|
* @since Chrome 94
|
|
8403
8403
|
*/
|
|
8404
|
-
export const MAX_NUMBER_OF_ENABLED_STATIC_RULESETS:
|
|
8404
|
+
export const MAX_NUMBER_OF_ENABLED_STATIC_RULESETS: 50;
|
|
8405
8405
|
|
|
8406
8406
|
/**
|
|
8407
8407
|
* Ruleset ID for the dynamic rules added by the extension.
|
|
@@ -22613,7 +22613,7 @@ declare namespace chrome {
|
|
|
22613
22613
|
}
|
|
22614
22614
|
|
|
22615
22615
|
/**
|
|
22616
|
-
* Use the `chrome.readingList` API to read from and modify the items in the Reading List.
|
|
22616
|
+
* Use the `chrome.readingList` API to read from and modify the items in the [Reading List](https://support.google.com/chrome/answer/7343019).
|
|
22617
22617
|
*
|
|
22618
22618
|
* @alpha
|
|
22619
22619
|
* @chrome-permission readingList
|
|
@@ -22635,17 +22635,17 @@ declare namespace chrome {
|
|
|
22635
22635
|
title: string;
|
|
22636
22636
|
|
|
22637
22637
|
/**
|
|
22638
|
-
*
|
|
22638
|
+
* Will be `true` if the entry has been read.
|
|
22639
22639
|
*/
|
|
22640
22640
|
hasBeenRead: boolean;
|
|
22641
22641
|
|
|
22642
22642
|
/**
|
|
22643
|
-
* The last
|
|
22643
|
+
* The last time the entry was updated. This value is in milliseconds since Jan 1, 1970.
|
|
22644
22644
|
*/
|
|
22645
22645
|
lastUpdateTime: number;
|
|
22646
22646
|
|
|
22647
22647
|
/**
|
|
22648
|
-
* The
|
|
22648
|
+
* The time the entry was created. Recorded in milliseconds since Jan 1, 1970.
|
|
22649
22649
|
*/
|
|
22650
22650
|
creationTime: number;
|
|
22651
22651
|
}
|
|
@@ -22663,7 +22663,7 @@ declare namespace chrome {
|
|
|
22663
22663
|
title: string;
|
|
22664
22664
|
|
|
22665
22665
|
/**
|
|
22666
|
-
*
|
|
22666
|
+
* Will be `true` if the entry has been read.
|
|
22667
22667
|
*/
|
|
22668
22668
|
hasBeenRead: boolean;
|
|
22669
22669
|
}
|
|
@@ -22684,12 +22684,12 @@ declare namespace chrome {
|
|
|
22684
22684
|
url: string;
|
|
22685
22685
|
|
|
22686
22686
|
/**
|
|
22687
|
-
* The
|
|
22687
|
+
* The new title. The existing tile remains if a value isn't provided.
|
|
22688
22688
|
*/
|
|
22689
22689
|
title?: string;
|
|
22690
22690
|
|
|
22691
22691
|
/**
|
|
22692
|
-
* The updated read status.
|
|
22692
|
+
* The updated read status. The existing status remains if a value isn't provided.
|
|
22693
22693
|
*/
|
|
22694
22694
|
hasBeenRead?: boolean;
|
|
22695
22695
|
}
|
|
@@ -22697,37 +22697,37 @@ declare namespace chrome {
|
|
|
22697
22697
|
export interface QueryInfo {
|
|
22698
22698
|
|
|
22699
22699
|
/**
|
|
22700
|
-
*
|
|
22700
|
+
* A url to search for.
|
|
22701
22701
|
*/
|
|
22702
22702
|
url?: string;
|
|
22703
22703
|
|
|
22704
22704
|
/**
|
|
22705
|
-
*
|
|
22705
|
+
* A title to search for.
|
|
22706
22706
|
*/
|
|
22707
22707
|
title?: string;
|
|
22708
22708
|
|
|
22709
22709
|
/**
|
|
22710
|
-
*
|
|
22710
|
+
* Indicates whether to search for read (`true`) or unread (code>false) items.
|
|
22711
22711
|
*/
|
|
22712
22712
|
hasBeenRead?: boolean;
|
|
22713
22713
|
}
|
|
22714
22714
|
|
|
22715
22715
|
/**
|
|
22716
|
-
* Triggered when a ReadingListEntry
|
|
22716
|
+
* Triggered when a `ReadingListEntry` is added to the reading list.
|
|
22717
22717
|
*/
|
|
22718
22718
|
export const onEntryAdded: events.Event<(
|
|
22719
22719
|
entry: ReadingListEntry,
|
|
22720
22720
|
) => void>;
|
|
22721
22721
|
|
|
22722
22722
|
/**
|
|
22723
|
-
* Triggered when a ReadingListEntry is removed from the reading list.
|
|
22723
|
+
* Triggered when a `ReadingListEntry` is removed from the reading list.
|
|
22724
22724
|
*/
|
|
22725
22725
|
export const onEntryRemoved: events.Event<(
|
|
22726
22726
|
entry: ReadingListEntry,
|
|
22727
22727
|
) => void>;
|
|
22728
22728
|
|
|
22729
22729
|
/**
|
|
22730
|
-
* Triggered when a ReadingListEntry
|
|
22730
|
+
* Triggered when a `ReadingListEntry` is updated in the reading list.
|
|
22731
22731
|
*/
|
|
22732
22732
|
export const onEntryUpdated: events.Event<(
|
|
22733
22733
|
entry: ReadingListEntry,
|
|
@@ -22780,7 +22780,7 @@ declare namespace chrome {
|
|
|
22780
22780
|
): void;
|
|
22781
22781
|
|
|
22782
22782
|
/**
|
|
22783
|
-
* Updates
|
|
22783
|
+
* Updates a reading list entry if it exists.
|
|
22784
22784
|
*
|
|
22785
22785
|
* @param info The entry to update.
|
|
22786
22786
|
*/
|
|
@@ -22790,7 +22790,7 @@ declare namespace chrome {
|
|
|
22790
22790
|
): Promise<void>;
|
|
22791
22791
|
|
|
22792
22792
|
/**
|
|
22793
|
-
* Updates
|
|
22793
|
+
* Updates a reading list entry if it exists.
|
|
22794
22794
|
*
|
|
22795
22795
|
* @param info The entry to update.
|
|
22796
22796
|
* @param callback Invoked once the matched entries have been updated.
|
|
@@ -22803,9 +22803,9 @@ declare namespace chrome {
|
|
|
22803
22803
|
): void;
|
|
22804
22804
|
|
|
22805
22805
|
/**
|
|
22806
|
-
* Retrieves all entries
|
|
22806
|
+
* Retrieves all entries that match the `QueryInfo` properties. Properties that are not provided will not be matched.
|
|
22807
22807
|
*
|
|
22808
|
-
* @param info The
|
|
22808
|
+
* @param info The properties to search for.
|
|
22809
22809
|
*/
|
|
22810
22810
|
export function query(
|
|
22811
22811
|
|
|
@@ -22813,9 +22813,9 @@ declare namespace chrome {
|
|
|
22813
22813
|
): Promise<ReadingListEntry[]>;
|
|
22814
22814
|
|
|
22815
22815
|
/**
|
|
22816
|
-
* Retrieves all entries
|
|
22816
|
+
* Retrieves all entries that match the `QueryInfo` properties. Properties that are not provided will not be matched.
|
|
22817
22817
|
*
|
|
22818
|
-
* @param info The
|
|
22818
|
+
* @param info The properties to search for.
|
|
22819
22819
|
* @param callback Invoked once the entries have been matched.
|
|
22820
22820
|
*/
|
|
22821
22821
|
export function query(
|
|
@@ -32548,6 +32548,14 @@ declare namespace chrome {
|
|
|
32548
32548
|
*/
|
|
32549
32549
|
export namespace userScripts {
|
|
32550
32550
|
|
|
32551
|
+
/**
|
|
32552
|
+
* The JavaScript world for a user script to execute within.
|
|
32553
|
+
*
|
|
32554
|
+
* @chrome-enum "MAIN" Specifies the execution environment of the DOM, which is the execution environment shared with the host page's JavaScript.
|
|
32555
|
+
* @chrome-enum "USER\_SCRIPT" Specifies the execution enviroment that is specific to user scripts and is exempt from the page's CSP.
|
|
32556
|
+
*/
|
|
32557
|
+
export type ExecutionWorld = "MAIN" | "USER_SCRIPT";
|
|
32558
|
+
|
|
32551
32559
|
export interface ScriptSource {
|
|
32552
32560
|
|
|
32553
32561
|
/**
|
|
@@ -32602,6 +32610,11 @@ declare namespace chrome {
|
|
|
32602
32610
|
* Specifies when JavaScript files are injected into the web page. The preferred and default value is `document_idle`.
|
|
32603
32611
|
*/
|
|
32604
32612
|
runAt?: extensionTypes.RunAt;
|
|
32613
|
+
|
|
32614
|
+
/**
|
|
32615
|
+
* The JavaScript execution environment to run the script in. The default is `` `USER_SCRIPT` ``.
|
|
32616
|
+
*/
|
|
32617
|
+
world?: ExecutionWorld;
|
|
32605
32618
|
}
|
|
32606
32619
|
|
|
32607
32620
|
export interface UserScriptFilter {
|
package/index.d.ts
CHANGED
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
// Generated on
|
|
18
|
-
// Built at
|
|
17
|
+
// Generated on Wed Oct 18 2023 22:34:48 GMT+0000 (Coordinated Universal Time)
|
|
18
|
+
// Built at 21919053e93b8cae4243b76c725831f21b7e4e9c
|
|
19
19
|
|
|
20
20
|
// Includes MV3+ APIs only.
|
|
21
21
|
|
|
@@ -5140,14 +5140,14 @@ declare namespace chrome {
|
|
|
5140
5140
|
/**
|
|
5141
5141
|
* The maximum number of static `Rulesets` an extension can specify as part of the `"rule_resources"` manifest key.
|
|
5142
5142
|
*/
|
|
5143
|
-
export const MAX_NUMBER_OF_STATIC_RULESETS:
|
|
5143
|
+
export const MAX_NUMBER_OF_STATIC_RULESETS: 100;
|
|
5144
5144
|
|
|
5145
5145
|
/**
|
|
5146
5146
|
* The maximum number of static `Rulesets` an extension can enable at any one time.
|
|
5147
5147
|
*
|
|
5148
5148
|
* @since Chrome 94
|
|
5149
5149
|
*/
|
|
5150
|
-
export const MAX_NUMBER_OF_ENABLED_STATIC_RULESETS:
|
|
5150
|
+
export const MAX_NUMBER_OF_ENABLED_STATIC_RULESETS: 50;
|
|
5151
5151
|
|
|
5152
5152
|
/**
|
|
5153
5153
|
* Ruleset ID for the dynamic rules added by the extension.
|
|
@@ -17377,7 +17377,7 @@ declare namespace chrome {
|
|
|
17377
17377
|
}
|
|
17378
17378
|
|
|
17379
17379
|
/**
|
|
17380
|
-
* Use the `chrome.readingList` API to read from and modify the items in the Reading List.
|
|
17380
|
+
* Use the `chrome.readingList` API to read from and modify the items in the [Reading List](https://support.google.com/chrome/answer/7343019).
|
|
17381
17381
|
*
|
|
17382
17382
|
* @alpha
|
|
17383
17383
|
* @chrome-permission readingList
|
|
@@ -17399,17 +17399,17 @@ declare namespace chrome {
|
|
|
17399
17399
|
title: string;
|
|
17400
17400
|
|
|
17401
17401
|
/**
|
|
17402
|
-
*
|
|
17402
|
+
* Will be `true` if the entry has been read.
|
|
17403
17403
|
*/
|
|
17404
17404
|
hasBeenRead: boolean;
|
|
17405
17405
|
|
|
17406
17406
|
/**
|
|
17407
|
-
* The last
|
|
17407
|
+
* The last time the entry was updated. This value is in milliseconds since Jan 1, 1970.
|
|
17408
17408
|
*/
|
|
17409
17409
|
lastUpdateTime: number;
|
|
17410
17410
|
|
|
17411
17411
|
/**
|
|
17412
|
-
* The
|
|
17412
|
+
* The time the entry was created. Recorded in milliseconds since Jan 1, 1970.
|
|
17413
17413
|
*/
|
|
17414
17414
|
creationTime: number;
|
|
17415
17415
|
}
|
|
@@ -17427,7 +17427,7 @@ declare namespace chrome {
|
|
|
17427
17427
|
title: string;
|
|
17428
17428
|
|
|
17429
17429
|
/**
|
|
17430
|
-
*
|
|
17430
|
+
* Will be `true` if the entry has been read.
|
|
17431
17431
|
*/
|
|
17432
17432
|
hasBeenRead: boolean;
|
|
17433
17433
|
}
|
|
@@ -17448,12 +17448,12 @@ declare namespace chrome {
|
|
|
17448
17448
|
url: string;
|
|
17449
17449
|
|
|
17450
17450
|
/**
|
|
17451
|
-
* The
|
|
17451
|
+
* The new title. The existing tile remains if a value isn't provided.
|
|
17452
17452
|
*/
|
|
17453
17453
|
title?: string;
|
|
17454
17454
|
|
|
17455
17455
|
/**
|
|
17456
|
-
* The updated read status.
|
|
17456
|
+
* The updated read status. The existing status remains if a value isn't provided.
|
|
17457
17457
|
*/
|
|
17458
17458
|
hasBeenRead?: boolean;
|
|
17459
17459
|
}
|
|
@@ -17461,37 +17461,37 @@ declare namespace chrome {
|
|
|
17461
17461
|
export interface QueryInfo {
|
|
17462
17462
|
|
|
17463
17463
|
/**
|
|
17464
|
-
*
|
|
17464
|
+
* A url to search for.
|
|
17465
17465
|
*/
|
|
17466
17466
|
url?: string;
|
|
17467
17467
|
|
|
17468
17468
|
/**
|
|
17469
|
-
*
|
|
17469
|
+
* A title to search for.
|
|
17470
17470
|
*/
|
|
17471
17471
|
title?: string;
|
|
17472
17472
|
|
|
17473
17473
|
/**
|
|
17474
|
-
*
|
|
17474
|
+
* Indicates whether to search for read (`true`) or unread (code>false) items.
|
|
17475
17475
|
*/
|
|
17476
17476
|
hasBeenRead?: boolean;
|
|
17477
17477
|
}
|
|
17478
17478
|
|
|
17479
17479
|
/**
|
|
17480
|
-
* Triggered when a ReadingListEntry
|
|
17480
|
+
* Triggered when a `ReadingListEntry` is added to the reading list.
|
|
17481
17481
|
*/
|
|
17482
17482
|
export const onEntryAdded: events.Event<(
|
|
17483
17483
|
entry: ReadingListEntry,
|
|
17484
17484
|
) => void>;
|
|
17485
17485
|
|
|
17486
17486
|
/**
|
|
17487
|
-
* Triggered when a ReadingListEntry is removed from the reading list.
|
|
17487
|
+
* Triggered when a `ReadingListEntry` is removed from the reading list.
|
|
17488
17488
|
*/
|
|
17489
17489
|
export const onEntryRemoved: events.Event<(
|
|
17490
17490
|
entry: ReadingListEntry,
|
|
17491
17491
|
) => void>;
|
|
17492
17492
|
|
|
17493
17493
|
/**
|
|
17494
|
-
* Triggered when a ReadingListEntry
|
|
17494
|
+
* Triggered when a `ReadingListEntry` is updated in the reading list.
|
|
17495
17495
|
*/
|
|
17496
17496
|
export const onEntryUpdated: events.Event<(
|
|
17497
17497
|
entry: ReadingListEntry,
|
|
@@ -17544,7 +17544,7 @@ declare namespace chrome {
|
|
|
17544
17544
|
): void;
|
|
17545
17545
|
|
|
17546
17546
|
/**
|
|
17547
|
-
* Updates
|
|
17547
|
+
* Updates a reading list entry if it exists.
|
|
17548
17548
|
*
|
|
17549
17549
|
* @param info The entry to update.
|
|
17550
17550
|
*/
|
|
@@ -17554,7 +17554,7 @@ declare namespace chrome {
|
|
|
17554
17554
|
): Promise<void>;
|
|
17555
17555
|
|
|
17556
17556
|
/**
|
|
17557
|
-
* Updates
|
|
17557
|
+
* Updates a reading list entry if it exists.
|
|
17558
17558
|
*
|
|
17559
17559
|
* @param info The entry to update.
|
|
17560
17560
|
* @param callback Invoked once the matched entries have been updated.
|
|
@@ -17567,9 +17567,9 @@ declare namespace chrome {
|
|
|
17567
17567
|
): void;
|
|
17568
17568
|
|
|
17569
17569
|
/**
|
|
17570
|
-
* Retrieves all entries
|
|
17570
|
+
* Retrieves all entries that match the `QueryInfo` properties. Properties that are not provided will not be matched.
|
|
17571
17571
|
*
|
|
17572
|
-
* @param info The
|
|
17572
|
+
* @param info The properties to search for.
|
|
17573
17573
|
*/
|
|
17574
17574
|
export function query(
|
|
17575
17575
|
|
|
@@ -17577,9 +17577,9 @@ declare namespace chrome {
|
|
|
17577
17577
|
): Promise<ReadingListEntry[]>;
|
|
17578
17578
|
|
|
17579
17579
|
/**
|
|
17580
|
-
* Retrieves all entries
|
|
17580
|
+
* Retrieves all entries that match the `QueryInfo` properties. Properties that are not provided will not be matched.
|
|
17581
17581
|
*
|
|
17582
|
-
* @param info The
|
|
17582
|
+
* @param info The properties to search for.
|
|
17583
17583
|
* @param callback Invoked once the entries have been matched.
|
|
17584
17584
|
*/
|
|
17585
17585
|
export function query(
|
|
@@ -25420,6 +25420,14 @@ declare namespace chrome {
|
|
|
25420
25420
|
*/
|
|
25421
25421
|
export namespace userScripts {
|
|
25422
25422
|
|
|
25423
|
+
/**
|
|
25424
|
+
* The JavaScript world for a user script to execute within.
|
|
25425
|
+
*
|
|
25426
|
+
* @chrome-enum "MAIN" Specifies the execution environment of the DOM, which is the execution environment shared with the host page's JavaScript.
|
|
25427
|
+
* @chrome-enum "USER\_SCRIPT" Specifies the execution enviroment that is specific to user scripts and is exempt from the page's CSP.
|
|
25428
|
+
*/
|
|
25429
|
+
export type ExecutionWorld = "MAIN" | "USER_SCRIPT";
|
|
25430
|
+
|
|
25423
25431
|
export interface ScriptSource {
|
|
25424
25432
|
|
|
25425
25433
|
/**
|
|
@@ -25474,6 +25482,11 @@ declare namespace chrome {
|
|
|
25474
25482
|
* Specifies when JavaScript files are injected into the web page. The preferred and default value is `document_idle`.
|
|
25475
25483
|
*/
|
|
25476
25484
|
runAt?: extensionTypes.RunAt;
|
|
25485
|
+
|
|
25486
|
+
/**
|
|
25487
|
+
* The JavaScript execution environment to run the script in. The default is `` `USER_SCRIPT` ``.
|
|
25488
|
+
*/
|
|
25489
|
+
world?: ExecutionWorld;
|
|
25477
25490
|
}
|
|
25478
25491
|
|
|
25479
25492
|
export interface UserScriptFilter {
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"type": "module",
|
|
6
6
|
"name": "chrome-types",
|
|
7
7
|
"config": {
|
|
8
|
-
"build-hash": "
|
|
8
|
+
"build-hash": "15d73e1c97e3d83e"
|
|
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.
|
|
19
|
+
"version": "0.1.233"
|
|
20
20
|
}
|