@types/chrome 0.0.289 → 0.0.291
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.
- chrome/README.md +1 -1
- chrome/index.d.ts +204 -65
- chrome/package.json +2 -2
chrome/README.md
CHANGED
@@ -8,7 +8,7 @@ This package contains type definitions for chrome (http://developer.chrome.com/e
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chrome.
|
9
9
|
|
10
10
|
### Additional Details
|
11
|
-
* Last updated:
|
11
|
+
* Last updated: Wed, 08 Jan 2025 18:02:30 GMT
|
12
12
|
* Dependencies: [@types/filesystem](https://npmjs.com/package/@types/filesystem), [@types/har-format](https://npmjs.com/package/@types/har-format)
|
13
13
|
|
14
14
|
# Credits
|
chrome/index.d.ts
CHANGED
@@ -14,60 +14,125 @@ declare namespace chrome {
|
|
14
14
|
// Accessibility Features
|
15
15
|
////////////////////
|
16
16
|
/**
|
17
|
-
* Use the chrome.accessibilityFeatures API to manage Chrome's accessibility features. This API relies on the ChromeSetting prototype of the type API for getting and setting individual accessibility features. In order to get feature states the extension must request accessibilityFeatures.read permission. For modifying feature state, the extension needs accessibilityFeatures.modify permission. Note that accessibilityFeatures.modify does not imply accessibilityFeatures.read permission.
|
18
|
-
*
|
19
|
-
* Permissions: "accessibilityFeatures.read"
|
20
|
-
* Important: This API works only on Chrome OS.
|
17
|
+
* Use the chrome.accessibilityFeatures API to manage Chrome's accessibility features. This API relies on the ChromeSetting prototype of the type API for getting and setting individual accessibility features. In order to get feature states the extension must request `accessibilityFeatures.read` permission. For modifying feature state, the extension needs `accessibilityFeatures.modify` permission. Note that `accessibilityFeatures.modify` does not imply `accessibilityFeatures.read` permission.
|
18
|
+
* Permissions: "accessibilityFeatures.read", "accessibilityFeatures.modify"
|
21
19
|
*/
|
22
20
|
export namespace accessibilityFeatures {
|
23
|
-
/**
|
24
|
-
export
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
/**
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
/**
|
38
|
-
* **ChromeOS only.**
|
39
|
-
* Caret highlighting.
|
21
|
+
/** `get()` requires `accessibilityFeatures.read` permission. `set()` and `clear()` require `accessibilityFeatures.modify` permission. */
|
22
|
+
export const animationPolicy: chrome.types.ChromeSetting<"allowed" | "once" | "none">;
|
23
|
+
|
24
|
+
/**
|
25
|
+
* Auto mouse click after mouse stops moving. The value indicates whether the feature is enabled or not.
|
26
|
+
* `get()` requires `accessibilityFeatures.read` permission. `set()` and `clear()` require `accessibilityFeatures.modify` permission.
|
27
|
+
* @platform ChromeOS only
|
28
|
+
*/
|
29
|
+
export const autoclick: chrome.types.ChromeSetting<boolean>;
|
30
|
+
|
31
|
+
/**
|
32
|
+
* Caret highlighting. The value indicates whether the feature is enabled or not.
|
33
|
+
* `get()` requires `accessibilityFeatures.read` permission. `set()` and `clear()` require `accessibilityFeatures.modify` permission.
|
34
|
+
* @platform ChromeOS only
|
40
35
|
* @since Chrome 51
|
41
36
|
*/
|
42
|
-
export
|
37
|
+
export const caretHighlight: chrome.types.ChromeSetting<boolean>;
|
38
|
+
|
43
39
|
/**
|
44
|
-
*
|
45
|
-
*
|
40
|
+
* Cursor color. The value indicates whether the feature is enabled or not, doesn't indicate the color of it.
|
41
|
+
* `get()` requires `accessibilityFeatures.read` permission. `set()` and `clear()` require `accessibilityFeatures.modify` permission.
|
42
|
+
* @platform ChromeOS only
|
43
|
+
* @since Chrome 85
|
44
|
+
*/
|
45
|
+
export const cursorColor: chrome.types.ChromeSetting<boolean>;
|
46
|
+
|
47
|
+
/**
|
48
|
+
* Cursor highlighting. The value indicates whether the feature is enabled or not.
|
49
|
+
* `get()` requires `accessibilityFeatures.read` permission. `set()` and `clear()` require `accessibilityFeatures.modify` permission.
|
50
|
+
* @platform ChromeOS only
|
46
51
|
* @since Chrome 51
|
47
52
|
*/
|
48
|
-
export
|
53
|
+
export const cursorHighlight: chrome.types.ChromeSetting<boolean>;
|
54
|
+
|
55
|
+
/**
|
56
|
+
* Dictation. The value indicates whether the feature is enabled or not.
|
57
|
+
* `get()` requires `accessibilityFeatures.read` permission. `set()` and `clear()` require `accessibilityFeatures.modify` permission.
|
58
|
+
* @platform ChromeOS only
|
59
|
+
* @since Chrome 90
|
60
|
+
*/
|
61
|
+
export const dictation: chrome.types.ChromeSetting<boolean>;
|
62
|
+
|
49
63
|
/**
|
50
|
-
*
|
51
|
-
*
|
64
|
+
* Docked magnifier. The value indicates whether docked magnifier feature is enabled or not.
|
65
|
+
* `get()` requires `accessibilityFeatures.read` permission. `set()` and `clear()` require `accessibilityFeatures.modify` permission.
|
66
|
+
* @platform ChromeOS only
|
67
|
+
* @since Chrome 87
|
68
|
+
*/
|
69
|
+
export const dockedMagnifier: chrome.types.ChromeSetting<boolean>;
|
70
|
+
|
71
|
+
/**
|
72
|
+
* Focus highlighting. The value indicates whether the feature is enabled or not.
|
73
|
+
* `get()` requires `accessibilityFeatures.read` permission. `set()` and `clear()` require `accessibilityFeatures.modify` permission.
|
74
|
+
* @platform ChromeOS only
|
52
75
|
* @since Chrome 51
|
53
76
|
*/
|
54
|
-
export
|
77
|
+
export const focusHighlight: chrome.types.ChromeSetting<boolean>;
|
78
|
+
|
79
|
+
/**
|
80
|
+
* High contrast rendering mode. The value indicates whether the feature is enabled or not.
|
81
|
+
* `get()` requires `accessibilityFeatures.read` permission. `set()` and `clear()` require `accessibilityFeatures.modify` permission.
|
82
|
+
* @platform ChromeOS only
|
83
|
+
*/
|
84
|
+
export const highContrast: chrome.types.ChromeSetting<boolean>;
|
85
|
+
|
86
|
+
/**
|
87
|
+
* Enlarged cursor. The value indicates whether the feature is enabled or not.
|
88
|
+
* `get()` requires `accessibilityFeatures.read` permission. `set()` and `clear()` require `accessibilityFeatures.modify` permission.
|
89
|
+
* @platform ChromeOS only
|
90
|
+
*/
|
91
|
+
export const largeCursor: chrome.types.ChromeSetting<boolean>;
|
92
|
+
|
93
|
+
/**
|
94
|
+
* Full screen magnification. The value indicates whether the feature is enabled or not.
|
95
|
+
* `get()` requires `accessibilityFeatures.read` permission. `set()` and `clear()` require `accessibilityFeatures.modify` permission.
|
96
|
+
* @platform ChromeOS only
|
97
|
+
*/
|
98
|
+
export const screenMagnifier: chrome.types.ChromeSetting<boolean>;
|
99
|
+
|
55
100
|
/**
|
56
|
-
*
|
57
|
-
*
|
101
|
+
* Select-to-speak. The value indicates whether the feature is enabled or not.
|
102
|
+
* `get()` requires `accessibilityFeatures.read` permission. `set()` and `clear()` require `accessibilityFeatures.modify` permission.
|
103
|
+
* @platform ChromeOS only
|
58
104
|
* @since Chrome 51
|
59
105
|
*/
|
60
|
-
export
|
106
|
+
export const selectToSpeak: chrome.types.ChromeSetting<boolean>;
|
107
|
+
|
108
|
+
/**
|
109
|
+
* Spoken feedback (text-to-speech). The value indicates whether the feature is enabled or not.
|
110
|
+
* `get()` requires `accessibilityFeatures.read` permission. `set()` and `clear()` require `accessibilityFeatures.modify` permission.
|
111
|
+
* @platform ChromeOS only
|
112
|
+
*/
|
113
|
+
export const spokenFeedback: chrome.types.ChromeSetting<boolean>;
|
114
|
+
|
115
|
+
/**
|
116
|
+
* Sticky modifier keys (like shift or alt). The value indicates whether the feature is enabled or not.
|
117
|
+
* `get()` requires `accessibilityFeatures.read` permission. `set()` and `clear()` require `accessibilityFeatures.modify` permission.
|
118
|
+
* @platform ChromeOS only
|
119
|
+
*/
|
120
|
+
export const stickyKeys: chrome.types.ChromeSetting<boolean>;
|
121
|
+
|
61
122
|
/**
|
62
|
-
*
|
63
|
-
*
|
123
|
+
* Switch Access. The value indicates whether the feature is enabled or not.
|
124
|
+
* `get()` requires `accessibilityFeatures.read` permission. `set()` and `clear()` require `accessibilityFeatures.modify` permission.
|
125
|
+
* @platform ChromeOS only
|
64
126
|
* @since Chrome 51
|
65
127
|
*/
|
66
|
-
export
|
128
|
+
export const switchAccess: chrome.types.ChromeSetting<boolean>;
|
129
|
+
|
67
130
|
/**
|
68
|
-
*
|
131
|
+
* Virtual on-screen keyboard. The value indicates whether the feature is enabled or not.
|
132
|
+
* `get()` requires `accessibilityFeatures.read` permission. `set()` and `clear()` require `accessibilityFeatures.modify` permission.
|
133
|
+
* @platform ChromeOS only
|
69
134
|
*/
|
70
|
-
export
|
135
|
+
export const virtualKeyboard: chrome.types.ChromeSetting<boolean>;
|
71
136
|
}
|
72
137
|
|
73
138
|
////////////////////
|
@@ -112,8 +177,6 @@ declare namespace chrome {
|
|
112
177
|
popup: string;
|
113
178
|
}
|
114
179
|
|
115
|
-
export interface BrowserClickedEvent extends chrome.events.Event<(tab: chrome.tabs.Tab) => void> {}
|
116
|
-
|
117
180
|
export interface TabIconDetails {
|
118
181
|
/** Optional. Either a relative image path or a dictionary {size -> relative image path} pointing to icon to be set. If the icon is specified as a dictionary, the actual image to be used is chosen depending on screen's pixel density. If the number of image pixels that fit into one screen space unit equals scale, then image with size scale * 19 will be selected. Initially only scales 1 and 2 will be supported. At least one image must be specified. Note that 'details.path = foo' is equivalent to 'details.imageData = {'19': foo}' */
|
119
182
|
path?: string | { [index: number]: string } | undefined;
|
@@ -133,11 +196,21 @@ declare namespace chrome {
|
|
133
196
|
tabId?: number | undefined;
|
134
197
|
}
|
135
198
|
|
199
|
+
/**
|
200
|
+
* The collection of user-specified settings relating to an extension's action.
|
201
|
+
* @since Chrome 91
|
202
|
+
*/
|
136
203
|
export interface UserSettings {
|
137
204
|
/** Whether the extension's action icon is visible on browser windows' top-level toolbar (i.e., whether the extension has been 'pinned' by the user). */
|
138
205
|
isOnToolbar: boolean;
|
139
206
|
}
|
140
207
|
|
208
|
+
/** @since Chrome 130 */
|
209
|
+
export interface UserSettingsChange {
|
210
|
+
/** Whether the extension's action icon is visible on browser windows' top-level toolbar (i.e., whether the extension has been 'pinned' by the user). */
|
211
|
+
isOnToolbar?: boolean;
|
212
|
+
}
|
213
|
+
|
141
214
|
/**
|
142
215
|
* @since Chrome 88
|
143
216
|
* Disables the action for a tab.
|
@@ -358,7 +431,13 @@ declare namespace chrome {
|
|
358
431
|
export function setTitle(details: TitleDetails, callback: () => void): void;
|
359
432
|
|
360
433
|
/** Fired when an action icon is clicked. This event will not fire if the action has a popup. */
|
361
|
-
export
|
434
|
+
export const onClicked: chrome.events.Event<(tab: chrome.tabs.Tab) => void>;
|
435
|
+
|
436
|
+
/**
|
437
|
+
* Fired when user-specified settings relating to an extension's action change.
|
438
|
+
* @since Chrome 130
|
439
|
+
*/
|
440
|
+
export const onUserSettingsChanged: chrome.events.Event<(change: UserSettingsChange) => void>;
|
362
441
|
}
|
363
442
|
|
364
443
|
////////////////////
|
@@ -3408,15 +3487,15 @@ declare namespace chrome {
|
|
3408
3487
|
id: string;
|
3409
3488
|
/**
|
3410
3489
|
* Implements the WebCrypto's SubtleCrypto interface. The cryptographic operations, including key generation, are hardware-backed.
|
3411
|
-
* Only non-extractable RSASSA-PKCS1-V1_5
|
3412
|
-
* Keys generated on a specific Token cannot be used with any other Tokens, nor can they be used with window.crypto.subtle
|
3490
|
+
* Only non-extractable keys can be generated. The supported key types are RSASSA-PKCS1-V1_5 and RSA-OAEP (on Chrome versions 134+) with `modulusLength` up to 2048 and ECDSA with `namedCurve` P-256. Each RSASSA-PKCS1-V1_5 and ECDSA key can be used for signing data at most once, unless the extension is allowlisted through the KeyPermissions policy, in which case the key can be used indefinitely. RSA-OAEP keys are supported since Chrome version 134 and can be used by extensions allowlisted through that same policy to unwrap other keys.
|
3491
|
+
* Keys generated on a specific `Token` cannot be used with any other Tokens, nor can they be used with `window.crypto.subtle`. Equally, `Key` objects created with `window.crypto.subtle` cannot be used with this interface.
|
3413
3492
|
*/
|
3414
3493
|
subtleCrypto: SubtleCrypto;
|
3415
3494
|
/**
|
3416
3495
|
* Implements the WebCrypto's SubtleCrypto interface. The cryptographic operations, including key generation, are software-backed.
|
3417
3496
|
* Protection of the keys, and thus implementation of the non-extractable property, is done in software, so the keys are less protected than hardware-backed keys.
|
3418
|
-
* Only non-extractable RSASSA-PKCS1-V1_5
|
3419
|
-
* Keys generated on a specific Token cannot be used with any other Tokens, nor can they be used with window.crypto.subtle
|
3497
|
+
* Only non-extractable keys can be generated. The supported key types are RSASSA-PKCS1-V1_5 and RSA-OAEP (on Chrome versions 134+) with `modulusLength` up to 2048. Each RSASSA-PKCS1-V1_5 key can be used for signing data at most once, unless the extension is allowlisted through the KeyPermissions policy, in which case the key can be used indefinitely. RSA-OAEP keys are supported since Chrome version 134 and can be used by extensions allowlisted through that same policy to unwrap other keys.
|
3498
|
+
* Keys generated on a specific `Token` cannot be used with any other Tokens, nor can they be used with `window.crypto.subtle`. Equally, `Key` objects created with `window.crypto.subtle` cannot be used with this interface.
|
3420
3499
|
* @since Chrome 97
|
3421
3500
|
*/
|
3422
3501
|
softwareBackedSubtleCrypto: SubtleCrypto;
|
@@ -8266,7 +8345,7 @@ declare namespace chrome {
|
|
8266
8345
|
export function connectNative(application: string): Port;
|
8267
8346
|
/**
|
8268
8347
|
* 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.
|
8269
|
-
* @
|
8348
|
+
* @deprecated Background pages do not exist in MV3 extensions.
|
8270
8349
|
*/
|
8271
8350
|
export function getBackgroundPage(): Promise<Window>;
|
8272
8351
|
/** 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. */
|
@@ -12718,37 +12797,74 @@ declare namespace chrome {
|
|
12718
12797
|
|
12719
12798
|
export namespace declarativeNetRequest {
|
12720
12799
|
/** Ruleset ID for the dynamic rules added by the extension. */
|
12721
|
-
export const DYNAMIC_RULESET_ID:
|
12800
|
+
export const DYNAMIC_RULESET_ID: "_dynamic";
|
12722
12801
|
|
12723
|
-
/**
|
12724
|
-
*
|
12725
|
-
*
|
12802
|
+
/**
|
12803
|
+
* Time interval within which `MAX_GETMATCHEDRULES_CALLS_PER_INTERVAL getMatchedRules` calls can be made, specified in minutes.
|
12804
|
+
* Additional calls will fail immediately and set {@link runtime.lastError}.
|
12805
|
+
* Note: `getMatchedRules` calls associated with a user gesture are exempt from the quota.
|
12726
12806
|
*/
|
12727
|
-
export const GETMATCHEDRULES_QUOTA_INTERVAL:
|
12807
|
+
export const GETMATCHEDRULES_QUOTA_INTERVAL: 10;
|
12728
12808
|
|
12729
|
-
/**
|
12809
|
+
/**
|
12810
|
+
* The minimum number of static rules guaranteed to an extension across its enabled static rulesets.
|
12730
12811
|
* Any rules above this limit will count towards the global rule limit.
|
12812
|
+
* @since Chrome 89
|
12731
12813
|
*/
|
12732
|
-
export const GUARANTEED_MINIMUM_STATIC_RULES:
|
12814
|
+
export const GUARANTEED_MINIMUM_STATIC_RULES: 30000;
|
12815
|
+
|
12816
|
+
/** The number of times `getMatchedRules` can be called within a period of `GETMATCHEDRULES_QUOTA_INTERVAL`. */
|
12817
|
+
export const MAX_GETMATCHEDRULES_CALLS_PER_INTERVAL: 20;
|
12733
12818
|
|
12734
|
-
/** The number of
|
12735
|
-
export const
|
12819
|
+
/** The maximum number of dynamic rules that an extension can add. */
|
12820
|
+
export const MAX_NUMBER_OF_DYNAMIC_RULES: 30000;
|
12821
|
+
|
12822
|
+
/**
|
12823
|
+
* The maximum number of static `Rulesets` an extension can enable at any one time.
|
12824
|
+
* @since Chrome 94
|
12825
|
+
*/
|
12826
|
+
export const MAX_NUMBER_OF_ENABLED_STATIC_RULESETS: 50;
|
12736
12827
|
|
12737
12828
|
/** The maximum number of combined dynamic and session scoped rules an extension can add. */
|
12738
|
-
export const MAX_NUMBER_OF_DYNAMIC_AND_SESSION_RULES:
|
12829
|
+
export const MAX_NUMBER_OF_DYNAMIC_AND_SESSION_RULES: 5000;
|
12739
12830
|
|
12740
|
-
/**
|
12831
|
+
/**
|
12832
|
+
* The maximum number of regular expression rules that an extension can add.
|
12741
12833
|
* This limit is evaluated separately for the set of dynamic rules and those specified in the rule resources file.
|
12742
12834
|
*/
|
12743
|
-
export const MAX_NUMBER_OF_REGEX_RULES:
|
12835
|
+
export const MAX_NUMBER_OF_REGEX_RULES: 1000;
|
12836
|
+
|
12837
|
+
/**
|
12838
|
+
* The maximum number of session scoped rules that an extension can add.
|
12839
|
+
* @since Chrome 120
|
12840
|
+
*/
|
12841
|
+
export const MAX_NUMBER_OF_SESSION_RULES: 5000;
|
12842
|
+
|
12843
|
+
/** The maximum number of static `Rulesets` an extension can specify as part of the `"rule_resources"` manifest key. */
|
12844
|
+
export const MAX_NUMBER_OF_STATIC_RULESETS: 100;
|
12845
|
+
|
12846
|
+
/**
|
12847
|
+
* The maximum number of "unsafe" dynamic rules that an extension can add.
|
12848
|
+
* @since Chrome 120
|
12849
|
+
*/
|
12850
|
+
export const MAX_NUMBER_OF_UNSAFE_DYNAMIC_RULES: 5000;
|
12744
12851
|
|
12745
|
-
/**
|
12746
|
-
|
12852
|
+
/**
|
12853
|
+
* The maximum number of "unsafe" session scoped rules that an extension can add.
|
12854
|
+
* @since Chrome 120
|
12855
|
+
*/
|
12856
|
+
export const MAX_NUMBER_OF_UNSAFE_SESSION_RULES: 5000;
|
12747
12857
|
|
12748
|
-
/**
|
12749
|
-
|
12858
|
+
/**
|
12859
|
+
* Ruleset ID for the session-scoped rules added by the extension.
|
12860
|
+
* @since Chrome 90
|
12861
|
+
*/
|
12862
|
+
export const SESSION_RULESET_ID: "_session";
|
12750
12863
|
|
12751
|
-
/**
|
12864
|
+
/**
|
12865
|
+
* This describes the HTTP request method of a network request.
|
12866
|
+
* @since Chrome 91
|
12867
|
+
*/
|
12752
12868
|
export enum RequestMethod {
|
12753
12869
|
CONNECT = "connect",
|
12754
12870
|
DELETE = "delete",
|
@@ -12758,6 +12874,7 @@ declare namespace chrome {
|
|
12758
12874
|
PATCH = "patch",
|
12759
12875
|
POST = "post",
|
12760
12876
|
PUT = "put",
|
12877
|
+
OTHER = "other",
|
12761
12878
|
}
|
12762
12879
|
|
12763
12880
|
/** This describes the resource type of the network request. */
|
@@ -12774,37 +12891,59 @@ declare namespace chrome {
|
|
12774
12891
|
CSP_REPORT = "csp_report",
|
12775
12892
|
MEDIA = "media",
|
12776
12893
|
WEBSOCKET = "websocket",
|
12894
|
+
WEBTRANSPORT = "webtransport",
|
12895
|
+
WEBBUNDLE = "webbundle",
|
12777
12896
|
OTHER = "other",
|
12778
12897
|
}
|
12779
12898
|
|
12780
12899
|
/** Describes the kind of action to take if a given RuleCondition matches. */
|
12781
12900
|
export enum RuleActionType {
|
12901
|
+
/** Block the network request. */
|
12782
12902
|
BLOCK = "block",
|
12903
|
+
/** Redirect the network request. */
|
12783
12904
|
REDIRECT = "redirect",
|
12905
|
+
/** Allow the network request. The request won't be intercepted if there is an allow rule which matches it. */
|
12784
12906
|
ALLOW = "allow",
|
12907
|
+
/** Upgrade the network request url's scheme to https if the request is http or ftp. */
|
12785
12908
|
UPGRADE_SCHEME = "upgradeScheme",
|
12909
|
+
/** Modify request/response headers from the network request. */
|
12786
12910
|
MODIFY_HEADERS = "modifyHeaders",
|
12911
|
+
/** Allow all requests within a frame hierarchy, including the frame request itself. */
|
12787
12912
|
ALLOW_ALL_REQUESTS = "allowAllRequests",
|
12788
12913
|
}
|
12789
12914
|
|
12790
|
-
/**
|
12915
|
+
/**
|
12916
|
+
* Describes the reason why a given regular expression isn't supported.
|
12917
|
+
* @since Chrome 87
|
12918
|
+
*/
|
12791
12919
|
export enum UnsupportedRegexReason {
|
12920
|
+
/** The regular expression is syntactically incorrect, or uses features not available in the RE2 syntax. */
|
12792
12921
|
SYNTAX_ERROR = "syntaxError",
|
12922
|
+
/** The regular expression exceeds the memory limit. */
|
12793
12923
|
MEMORY_LIMIT_EXCEEDED = "memoryLimitExceeded",
|
12794
12924
|
}
|
12795
12925
|
|
12796
|
-
/**
|
12926
|
+
/**
|
12927
|
+
* This describes whether the request is first or third party to the frame in which it originated.
|
12797
12928
|
* A request is said to be first party if it has the same domain (eTLD+1) as the frame in which the request originated.
|
12798
12929
|
*/
|
12799
12930
|
export enum DomainType {
|
12931
|
+
/** The network request is first party to the frame in which it originated. */
|
12800
12932
|
FIRST_PARTY = "firstParty",
|
12933
|
+
/* The network request is third party to the frame in which it originated. */
|
12801
12934
|
THIRD_PARTY = "thirdParty",
|
12802
12935
|
}
|
12803
12936
|
|
12804
|
-
/**
|
12937
|
+
/**
|
12938
|
+
* This describes the possible operations for a "modifyHeaders" rule.
|
12939
|
+
* @since Chrome 86
|
12940
|
+
*/
|
12805
12941
|
export enum HeaderOperation {
|
12942
|
+
/** Adds a new entry for the specified header. This operation is not supported for request headers. */
|
12806
12943
|
APPEND = "append",
|
12944
|
+
/** Sets a new value for the specified header, removing any existing headers with the same name. */
|
12807
12945
|
SET = "set",
|
12946
|
+
/** Removes all entries for the specified header. */
|
12808
12947
|
REMOVE = "remove",
|
12809
12948
|
}
|
12810
12949
|
|
@@ -13673,7 +13812,7 @@ declare namespace chrome {
|
|
13673
13812
|
id: string;
|
13674
13813
|
/** Specifies wildcard patterns for pages this user script will be injected into. */
|
13675
13814
|
includeGlobs?: string[];
|
13676
|
-
/** The list of ScriptSource objects defining sources of scripts to be injected into matching pages.
|
13815
|
+
/** The list of ScriptSource objects defining sources of scripts to be injected into matching pages. This property must be specified for {@link register}, and when specified it must be a non-empty array.*/
|
13677
13816
|
js: ScriptSource[];
|
13678
13817
|
/** Specifies which pages this user script will be injected into. See Match Patterns for more details on the syntax of these strings. This property must be specified for ${ref:register}. */
|
13679
13818
|
matches?: string[];
|
chrome/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@types/chrome",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.291",
|
4
4
|
"description": "TypeScript definitions for chrome",
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chrome",
|
6
6
|
"license": "MIT",
|
@@ -94,6 +94,6 @@
|
|
94
94
|
"@types/har-format": "*"
|
95
95
|
},
|
96
96
|
"peerDependencies": {},
|
97
|
-
"typesPublisherContentHash": "
|
97
|
+
"typesPublisherContentHash": "dbf0463e5c551f12fa07437137f3aaf7830c2e455201602adbe89debf1dcf956",
|
98
98
|
"typeScriptVersion": "5.0"
|
99
99
|
}
|