chrome-types 0.1.224 → 0.1.226
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 +52 -2
- package/index.d.ts +52 -2
- 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 Mon Aug 21 2023 17:32:18 GMT+0000 (Coordinated Universal Time)
|
|
18
|
+
// Built at 7fa6540d0387194f33211ebcd4cdda4b2c1cc89a
|
|
19
19
|
|
|
20
20
|
// Includes all types, including MV2 + Platform Apps APIs.
|
|
21
21
|
|
|
@@ -8543,6 +8543,56 @@ declare namespace chrome {
|
|
|
8543
8543
|
) => void,
|
|
8544
8544
|
): void;
|
|
8545
8545
|
|
|
8546
|
+
/**
|
|
8547
|
+
* Disables and enables individual static rules in a {@link Ruleset}. Changes to rules belonging to a disabled {@link Ruleset} will take effect the next time that it becomes enabled.
|
|
8548
|
+
*
|
|
8549
|
+
* @since Chrome 111
|
|
8550
|
+
*/
|
|
8551
|
+
export function updateStaticRules(
|
|
8552
|
+
|
|
8553
|
+
options: UpdateStaticRulesOptions,
|
|
8554
|
+
): Promise<void>;
|
|
8555
|
+
|
|
8556
|
+
/**
|
|
8557
|
+
* Disables and enables individual static rules in a {@link Ruleset}. Changes to rules belonging to a disabled {@link Ruleset} will take effect the next time that it becomes enabled.
|
|
8558
|
+
*
|
|
8559
|
+
* @param callback Called once the update is complete. In case of an error, {@link runtime.lastError} will be set and no change will be made to the enabled static rules.
|
|
8560
|
+
* @since Chrome 111
|
|
8561
|
+
*/
|
|
8562
|
+
export function updateStaticRules(
|
|
8563
|
+
|
|
8564
|
+
options: UpdateStaticRulesOptions,
|
|
8565
|
+
|
|
8566
|
+
callback?: () => void,
|
|
8567
|
+
): void;
|
|
8568
|
+
|
|
8569
|
+
/**
|
|
8570
|
+
* Returns the list of static rules in the given {@link Ruleset} that are currently disabled.
|
|
8571
|
+
*
|
|
8572
|
+
* @param options Specifies the ruleset to query.
|
|
8573
|
+
* @since Chrome 111
|
|
8574
|
+
*/
|
|
8575
|
+
export function getDisabledRuleIds(
|
|
8576
|
+
|
|
8577
|
+
options: GetDisabledRuleIdsOptions,
|
|
8578
|
+
): Promise<number[]>;
|
|
8579
|
+
|
|
8580
|
+
/**
|
|
8581
|
+
* Returns the list of static rules in the given {@link Ruleset} that are currently disabled.
|
|
8582
|
+
*
|
|
8583
|
+
* @param options Specifies the ruleset to query.
|
|
8584
|
+
* @param callback Called with a list of ids that correspond to the disabled rules in that ruleset.
|
|
8585
|
+
* @since Chrome 111
|
|
8586
|
+
*/
|
|
8587
|
+
export function getDisabledRuleIds(
|
|
8588
|
+
|
|
8589
|
+
options: GetDisabledRuleIdsOptions,
|
|
8590
|
+
|
|
8591
|
+
callback?: (
|
|
8592
|
+
disabledRuleIds: number[],
|
|
8593
|
+
) => void,
|
|
8594
|
+
): void;
|
|
8595
|
+
|
|
8546
8596
|
/**
|
|
8547
8597
|
* Returns all rules matched for the extension. Callers can optionally filter the list of matched rules by specifying a `filter`. This method is only available to extensions with the `declarativeNetRequestFeedback` permission or having the `activeTab` permission granted for the `tabId` specified in `filter`. Note: Rules not associated with an active document that were matched more than five minutes ago will not be returned.
|
|
8548
8598
|
*
|
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 Mon Aug 21 2023 17:32:13 GMT+0000 (Coordinated Universal Time)
|
|
18
|
+
// Built at 7fa6540d0387194f33211ebcd4cdda4b2c1cc89a
|
|
19
19
|
|
|
20
20
|
// Includes MV3+ APIs only.
|
|
21
21
|
|
|
@@ -5289,6 +5289,56 @@ declare namespace chrome {
|
|
|
5289
5289
|
) => void,
|
|
5290
5290
|
): void;
|
|
5291
5291
|
|
|
5292
|
+
/**
|
|
5293
|
+
* Disables and enables individual static rules in a {@link Ruleset}. Changes to rules belonging to a disabled {@link Ruleset} will take effect the next time that it becomes enabled.
|
|
5294
|
+
*
|
|
5295
|
+
* @since Chrome 111
|
|
5296
|
+
*/
|
|
5297
|
+
export function updateStaticRules(
|
|
5298
|
+
|
|
5299
|
+
options: UpdateStaticRulesOptions,
|
|
5300
|
+
): Promise<void>;
|
|
5301
|
+
|
|
5302
|
+
/**
|
|
5303
|
+
* Disables and enables individual static rules in a {@link Ruleset}. Changes to rules belonging to a disabled {@link Ruleset} will take effect the next time that it becomes enabled.
|
|
5304
|
+
*
|
|
5305
|
+
* @param callback Called once the update is complete. In case of an error, {@link runtime.lastError} will be set and no change will be made to the enabled static rules.
|
|
5306
|
+
* @since Chrome 111
|
|
5307
|
+
*/
|
|
5308
|
+
export function updateStaticRules(
|
|
5309
|
+
|
|
5310
|
+
options: UpdateStaticRulesOptions,
|
|
5311
|
+
|
|
5312
|
+
callback?: () => void,
|
|
5313
|
+
): void;
|
|
5314
|
+
|
|
5315
|
+
/**
|
|
5316
|
+
* Returns the list of static rules in the given {@link Ruleset} that are currently disabled.
|
|
5317
|
+
*
|
|
5318
|
+
* @param options Specifies the ruleset to query.
|
|
5319
|
+
* @since Chrome 111
|
|
5320
|
+
*/
|
|
5321
|
+
export function getDisabledRuleIds(
|
|
5322
|
+
|
|
5323
|
+
options: GetDisabledRuleIdsOptions,
|
|
5324
|
+
): Promise<number[]>;
|
|
5325
|
+
|
|
5326
|
+
/**
|
|
5327
|
+
* Returns the list of static rules in the given {@link Ruleset} that are currently disabled.
|
|
5328
|
+
*
|
|
5329
|
+
* @param options Specifies the ruleset to query.
|
|
5330
|
+
* @param callback Called with a list of ids that correspond to the disabled rules in that ruleset.
|
|
5331
|
+
* @since Chrome 111
|
|
5332
|
+
*/
|
|
5333
|
+
export function getDisabledRuleIds(
|
|
5334
|
+
|
|
5335
|
+
options: GetDisabledRuleIdsOptions,
|
|
5336
|
+
|
|
5337
|
+
callback?: (
|
|
5338
|
+
disabledRuleIds: number[],
|
|
5339
|
+
) => void,
|
|
5340
|
+
): void;
|
|
5341
|
+
|
|
5292
5342
|
/**
|
|
5293
5343
|
* Returns all rules matched for the extension. Callers can optionally filter the list of matched rules by specifying a `filter`. This method is only available to extensions with the `declarativeNetRequestFeedback` permission or having the `activeTab` permission granted for the `tabId` specified in `filter`. Note: Rules not associated with an active document that were matched more than five minutes ago will not be returned.
|
|
5294
5344
|
*
|
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": "e49f08a68bb71cba"
|
|
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.226"
|
|
20
20
|
}
|