fix: Upgrade @wxt-dev/browser to latest @types/chrome version
This commit is contained in:
committed by
github-actions[bot]
parent
30cf8e6d54
commit
bbcb7f7cdd
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@wxt-dev/browser",
|
||||
"description": "Provides a cross-browser API for using extension APIs and types based on @types/chrome",
|
||||
"version": "0.0.324",
|
||||
"version": "0.0.325",
|
||||
"type": "module",
|
||||
"main": "src/index.mjs",
|
||||
"types": "src/index.d.ts",
|
||||
@@ -23,7 +23,7 @@
|
||||
"src"
|
||||
],
|
||||
"devDependencies": {
|
||||
"@types/chrome": "0.0.324",
|
||||
"@types/chrome": "0.0.325",
|
||||
"fs-extra": "^11.3.0",
|
||||
"nano-spawn": "^0.2.0",
|
||||
"tsx": "4.19.4",
|
||||
|
||||
+366
-9
@@ -1385,6 +1385,246 @@ export namespace Browser {
|
||||
export function removeIndexedDB(options: RemovalOptions, callback: () => void): void;
|
||||
}
|
||||
|
||||
////////////////////
|
||||
// Certificate Provider
|
||||
////////////////////
|
||||
/**
|
||||
* Use this API to expose certificates to the platform which can use these certificates for TLS authentications.
|
||||
*
|
||||
* Manifest: "certificateProvider"
|
||||
* @platform ChromeOS only
|
||||
* @since Chrome 46
|
||||
*/
|
||||
export namespace certificateProvider {
|
||||
/** Types of supported cryptographic signature algorithms. */
|
||||
export enum Algorithm {
|
||||
/**
|
||||
* Specifies the RSASSA PKCS#1 v1.5 signature algorithm with the MD5-SHA-1 hashing. The extension must not prepend a DigestInfo prefix but only add PKCS#1 padding.
|
||||
* @deprecated This algorithm is deprecated and will never be requested by Chrome as of version 109.
|
||||
*/
|
||||
RSASSA_PKCS1_V1_5_MD5_SHA1 = "RSASSA_PKCS1_v1_5_MD5_SHA1",
|
||||
/** Specifies the RSASSA PKCS#1 v1.5 signature algorithm with the SHA-1 hash function. */
|
||||
RSASSA_PKCS1_V1_5_SHA1 = "RSASSA_PKCS1_v1_5_SHA1",
|
||||
/** Specifies the RSASSA PKCS#1 v1.5 signature algorithm with the SHA-256 hashing function. */
|
||||
RSASSA_PKCS1_V1_5_SHA256 = "RSASSA_PKCS1_v1_5_SHA256",
|
||||
/** Specifies the RSASSA PKCS#1 v1.5 signature algorithm with the SHA-384 hashing function. */
|
||||
RSASSA_PKCS1_V1_5_SHA384 = "RSASSA_PKCS1_v1_5_SHA384",
|
||||
/** Specifies the RSASSA PKCS#1 v1.5 signature algorithm with the SHA-512 hashing function. */
|
||||
RSASSA_PKCS1_V1_5_SHA512 = "RSASSA_PKCS1_v1_5_SHA512",
|
||||
/** Specifies the RSASSA PSS signature algorithm with the SHA-256 hashing function, MGF1 mask generation function and the salt of the same size as the hash. */
|
||||
RSASSA_PSS_SHA256 = "RSASSA_PSS_SHA256",
|
||||
/** Specifies the RSASSA PSS signature algorithm with the SHA-384 hashing function, MGF1 mask generation function and the salt of the same size as the hash. */
|
||||
RSASSA_PSS_SHA384 = "RSASSA_PSS_SHA384",
|
||||
/** Specifies the RSASSA PSS signature algorithm with the SHA-512 hashing function, MGF1 mask generation function and the salt of the same size as the hash. */
|
||||
RSASSA_PSS_SHA512 = "RSASSA_PSS_SHA512",
|
||||
}
|
||||
|
||||
export interface CertificateInfo {
|
||||
/** Must be the DER encoding of a X.509 certificate. Currently, only certificates of RSA keys are supported. */
|
||||
certificate: ArrayBuffer;
|
||||
/** Must be set to all hashes supported for this certificate. This extension will only be asked for signatures of digests calculated with one of these hash algorithms. This should be in order of decreasing hash preference. */
|
||||
supportedHashes: `${Hash}`[];
|
||||
}
|
||||
|
||||
/** @since Chrome 86 */
|
||||
export interface CertificatesUpdateRequest {
|
||||
/** Request identifier to be passed to {@link setCertificates}. */
|
||||
certificatesRequestId: number;
|
||||
}
|
||||
|
||||
/** @since Chrome 86 */
|
||||
export interface ClientCertificateInfo {
|
||||
/**
|
||||
* The array must contain the DER encoding of the X.509 client certificate as its first element.
|
||||
*
|
||||
* This must include exactly one certificate.
|
||||
*/
|
||||
certificateChain: ArrayBuffer[];
|
||||
/** All algorithms supported for this certificate. The extension will only be asked for signatures using one of these algorithms. */
|
||||
supportedAlgorithms: `${Algorithm}`[];
|
||||
}
|
||||
|
||||
/**
|
||||
* Types of errors that the extension can report.
|
||||
* @since Chrome 86
|
||||
*/
|
||||
export enum Error {
|
||||
GENERAL_ERROR = "GENERAL_ERROR",
|
||||
}
|
||||
|
||||
/** @deprecated Replaced by {@link Algorithm}.*/
|
||||
export enum Hash {
|
||||
/** Specifies the MD5 and SHA1 hashing algorithms. */
|
||||
MD5_SHA1 = "MD5_SHA1",
|
||||
/** Specifies the SHA1 hashing algorithm. */
|
||||
SHA1 = "SHA1",
|
||||
/** Specifies the SHA256 hashing algorithm. */
|
||||
SHA256 = "SHA256",
|
||||
/** Specifies the SHA384 hashing algorithm. */
|
||||
SHA384 = "SHA384",
|
||||
/** Specifies the SHA512 hashing algorithm. */
|
||||
SHA512 = "SHA512",
|
||||
}
|
||||
|
||||
/**
|
||||
* The types of errors that can be presented to the user through the requestPin function.
|
||||
* @since Chrome 57
|
||||
*/
|
||||
export enum PinRequestErrorType {
|
||||
/** Specifies the PIN is invalid. */
|
||||
INVALID_PIN = "INVALID_PIN",
|
||||
/** Specifies the PUK is invalid. */
|
||||
INVALID_PUK = "INVALID_PUK",
|
||||
/** Specifies the maximum attempt number has been exceeded. */
|
||||
MAX_ATTEMPTS_EXCEEDED = "MAX_ATTEMPTS_EXCEEDED",
|
||||
/** Specifies that the error cannot be represented by the above types. */
|
||||
UNKNOWN_ERROR = "UNKNOWN_ERROR",
|
||||
}
|
||||
|
||||
/**
|
||||
* The type of code being requested by the extension with requestPin function.
|
||||
* @since Chrome 57
|
||||
*/
|
||||
export enum PinRequestType {
|
||||
/** Specifies the requested code is a PIN. */
|
||||
PIN = "PIN",
|
||||
/** Specifies the requested code is a PUK. */
|
||||
PUK = "PUK",
|
||||
}
|
||||
|
||||
/** @since Chrome 57 */
|
||||
export interface PinResponseDetails {
|
||||
/** The code provided by the user. Empty if user closed the dialog or some other error occurred. */
|
||||
userInput?: string | undefined;
|
||||
}
|
||||
|
||||
/** @since Chrome 86 */
|
||||
export interface ReportSignatureDetails {
|
||||
/** Error that occurred while generating the signature, if any. */
|
||||
error?: `${Error}` | undefined;
|
||||
/** Request identifier that was received via the {@link onSignatureRequested} event. */
|
||||
signRequestId: number;
|
||||
/** The signature, if successfully generated. */
|
||||
signature?: ArrayBuffer | undefined;
|
||||
}
|
||||
|
||||
/** @since Chrome 57 */
|
||||
export interface RequestPinDetails {
|
||||
/** The number of attempts left. This is provided so that any UI can present this information to the user. Chrome is not expected to enforce this, instead stopPinRequest should be called by the extension with errorType = MAX_ATTEMPTS_EXCEEDED when the number of pin requests is exceeded. */
|
||||
attemptsLeft?: number | undefined;
|
||||
/** The error template displayed to the user. This should be set if the previous request failed, to notify the user of the failure reason. */
|
||||
errorType?: `${PinRequestErrorType}` | undefined;
|
||||
/** The type of code requested. Default is PIN. */
|
||||
requestType?: `${PinRequestType}` | undefined;
|
||||
/** The ID given by Chrome in SignRequest. */
|
||||
signRequestId: number;
|
||||
}
|
||||
|
||||
/** @since Chrome 86 */
|
||||
export interface SetCertificatesDetails {
|
||||
/** When called in response to {@link onCertificatesUpdateRequested}, should contain the received `certificatesRequestId` value. Otherwise, should be unset. */
|
||||
certificatesRequestId?: number | undefined;
|
||||
/** List of currently available client certificates. */
|
||||
clientCertificates: ClientCertificateInfo[];
|
||||
/** Error that occurred while extracting the certificates, if any. This error will be surfaced to the user when appropriate. */
|
||||
error?: `${Error}` | undefined;
|
||||
}
|
||||
|
||||
/** @since Chrome 86 */
|
||||
export interface SignatureRequest {
|
||||
/** Signature algorithm to be used. */
|
||||
algorithm: `${Algorithm}`;
|
||||
/** The DER encoding of a X.509 certificate. The extension must sign `input` using the associated private key. */
|
||||
certificate: ArrayBuffer;
|
||||
/** Data to be signed. Note that the data is not hashed. */
|
||||
input: ArrayBuffer;
|
||||
/** Request identifier to be passed to {@link reportSignature}. */
|
||||
signRequestId: number;
|
||||
}
|
||||
|
||||
export interface SignRequest {
|
||||
/** The DER encoding of a X.509 certificate. The extension must sign `digest` using the associated private key. */
|
||||
certificate: ArrayBuffer;
|
||||
/** The digest that must be signed. */
|
||||
digest: ArrayBuffer;
|
||||
/** Refers to the hash algorithm that was used to create `digest`. */
|
||||
hash: `${Hash}`;
|
||||
/**
|
||||
* The unique ID to be used by the extension should it need to call a method that requires it, e.g. requestPin.
|
||||
* @since Chrome 57
|
||||
*/
|
||||
signRequestId: number;
|
||||
}
|
||||
|
||||
/** @since Chrome 57 */
|
||||
export interface StopPinRequestDetails {
|
||||
/** The error template. If present it is displayed to user. Intended to contain the reason for stopping the flow if it was caused by an error, e.g. MAX\_ATTEMPTS\_EXCEEDED. */
|
||||
errorType?: `${PinRequestErrorType}` | undefined;
|
||||
/** The ID given by Chrome in SignRequest. */
|
||||
signRequestId: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Should be called as a response to {@link onSignatureRequested}.
|
||||
*
|
||||
* The extension must eventually call this function for every {@link onSignatureRequested} event; the API implementation will stop waiting for this call after some time and respond with a timeout error when this function is called.
|
||||
*
|
||||
* Can return its result via Promise since Chrome 96.
|
||||
* @since Chrome 86
|
||||
*/
|
||||
export function reportSignature(details: ReportSignatureDetails): Promise<void>;
|
||||
export function reportSignature(details: ReportSignatureDetails, callback: () => void): void;
|
||||
|
||||
/**
|
||||
* Requests the PIN from the user. Only one ongoing request at a time is allowed. The requests issued while another flow is ongoing are rejected. It's the extension's responsibility to try again later if another flow is in progress.
|
||||
*
|
||||
* Can return its result via Promise since Chrome 96.
|
||||
* @param details Contains the details about the requested dialog.
|
||||
* @since Chrome 57
|
||||
*/
|
||||
export function requestPin(details: RequestPinDetails): Promise<PinResponseDetails | undefined>;
|
||||
export function requestPin(
|
||||
details: RequestPinDetails,
|
||||
callback: (details?: PinResponseDetails | undefined) => void,
|
||||
): void;
|
||||
|
||||
/**
|
||||
* Sets a list of certificates to use in the browser.
|
||||
*
|
||||
* The extension should call this function after initialization and on every change in the set of currently available certificates. The extension should also call this function in response to {@link onCertificatesUpdateRequested} every time this event is received.
|
||||
*
|
||||
* Can return its result via Promise since Chrome 96.
|
||||
* @param details The certificates to set. Invalid certificates will be ignored.
|
||||
* @since Chrome 86
|
||||
*/
|
||||
export function setCertificates(details: SetCertificatesDetails): Promise<void>;
|
||||
export function setCertificates(details: SetCertificatesDetails, callback: () => void): void;
|
||||
|
||||
/**
|
||||
* Stops the pin request started by the {@link requestPin} function.
|
||||
*
|
||||
* Can return its result via Promise since Chrome 96.
|
||||
* @param details Contains the details about the reason for stopping the request flow.
|
||||
* @since Chrome 57
|
||||
*/
|
||||
export function stopPinRequest(details: StopPinRequestDetails): Promise<void>;
|
||||
export function stopPinRequest(details: StopPinRequestDetails, callback: () => void): void;
|
||||
|
||||
/**
|
||||
* This event fires if the certificates set via {@link setCertificates} are insufficient or the browser requests updated information. The extension must call {@link setCertificates} with the updated list of certificates and the received `certificatesRequestId`.
|
||||
* @since Chrome 86
|
||||
*/
|
||||
export const onCertificatesUpdateRequested: events.Event<(request: CertificatesUpdateRequest) => void>;
|
||||
|
||||
/**
|
||||
* This event fires every time the browser needs to sign a message using a certificate provided by this extension via {@link setCertificates}.
|
||||
*
|
||||
* The extension must sign the input data from `request` using the appropriate algorithm and private key and return it by calling {@link reportSignature} with the received `signRequestId`.
|
||||
* @since Chrome 86
|
||||
*/
|
||||
export const onSignatureRequested: events.Event<(request: SignatureRequest) => void>;
|
||||
}
|
||||
|
||||
////////////////////
|
||||
// Commands
|
||||
////////////////////
|
||||
@@ -12882,6 +13122,123 @@ export namespace Browser {
|
||||
export function setWallpaper(details: WallpaperDetails, callback: (thumbnail?: ArrayBuffer) => void): void;
|
||||
}
|
||||
|
||||
////////////////////
|
||||
// Web Authentication Proxy
|
||||
////////////////////
|
||||
/**
|
||||
* The `Browser.webAuthenticationProxy` API lets remote desktop software running on a remote host intercept Web Authentication API (WebAuthn) requests in order to handle them on a local client.
|
||||
*
|
||||
* Permissions: "webAuthenticationProxy"
|
||||
* @since Chrome 115, MV3
|
||||
*/
|
||||
export namespace webAuthenticationProxy {
|
||||
export interface CreateRequest {
|
||||
/** The `PublicKeyCredentialCreationOptions` passed to `navigator.credentials.create()`, serialized as a JSON string. The serialization format is compatible with [`PublicKeyCredential.parseCreationOptionsFromJSON()`](https://w3c.github.io/webauthn/#sctn-parseCreationOptionsFromJSON). */
|
||||
requestDetailsJson: string;
|
||||
/** An opaque identifier for the request. */
|
||||
requestId: number;
|
||||
}
|
||||
|
||||
export interface CreateResponseDetails {
|
||||
/** The `DOMException` yielded by the remote request, if any. */
|
||||
error?: DOMExceptionDetails | undefined;
|
||||
/** The `requestId` of the `CreateRequest`. */
|
||||
requestId: number;
|
||||
/** The `PublicKeyCredential`, yielded by the remote request, if any, serialized as a JSON string by calling [`PublicKeyCredential.toJSON()`](https://w3c.github.io/webauthn/#dom-publickeycredential-tojson). */
|
||||
responseJson?: string | undefined;
|
||||
}
|
||||
|
||||
export interface DOMExceptionDetails {
|
||||
name: string;
|
||||
message: string;
|
||||
}
|
||||
|
||||
export interface GetRequest {
|
||||
/** The `PublicKeyCredentialRequestOptions` passed to `navigator.credentials.get()`, serialized as a JSON string. The serialization format is compatible with [`PublicKeyCredential.parseRequestOptionsFromJSON()`](https://w3c.github.io/webauthn/#sctn-parseRequestOptionsFromJSON). */
|
||||
requestDetailsJson: string;
|
||||
/** An opaque identifier for the request. */
|
||||
requestId: number;
|
||||
}
|
||||
|
||||
export interface GetResponseDetails {
|
||||
/** The `DOMException` yielded by the remote request, if any. */
|
||||
error?: DOMExceptionDetails | undefined;
|
||||
/** The `requestId` of the `CreateRequest`. */
|
||||
requestId: number;
|
||||
/** The `PublicKeyCredential`, yielded by the remote request, if any, serialized as a JSON string by calling [`PublicKeyCredential.toJSON()`](https://w3c.github.io/webauthn/#dom-publickeycredential-tojson). */
|
||||
responseJson?: string | undefined;
|
||||
}
|
||||
|
||||
export interface IsUvpaaRequest {
|
||||
/** An opaque identifier for the request. */
|
||||
requestId: number;
|
||||
}
|
||||
|
||||
export interface IsUvpaaResponseDetails {
|
||||
isUvpaa: boolean;
|
||||
requestId: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Makes this extension the active Web Authentication API request proxy.
|
||||
*
|
||||
* Remote desktop extensions typically call this method after detecting attachment of a remote session to this host. Once this method returns without error, regular processing of WebAuthn requests is suspended, and events from this extension API are raised.
|
||||
*
|
||||
* This method fails with an error if a different extension is already attached.
|
||||
*
|
||||
* The attached extension must call `detach()` once the remote desktop session has ended in order to resume regular WebAuthn request processing. Extensions automatically become detached if they are unloaded.
|
||||
*
|
||||
* Refer to the `onRemoteSessionStateChange` event for signaling a change of remote session attachment from a native application to to the (possibly suspended) extension.
|
||||
*/
|
||||
export function attach(): Promise<string | undefined>;
|
||||
export function attach(callback: (error?: string | undefined) => void): void;
|
||||
|
||||
/** Reports the result of a `navigator.credentials.create()` call. The extension must call this for every `onCreateRequest` event it has received, unless the request was canceled (in which case, an `onRequestCanceled` event is fired). */
|
||||
export function completeCreateRequest(details: CreateResponseDetails): Promise<void>;
|
||||
export function completeCreateRequest(details: CreateResponseDetails, callback: () => void): void;
|
||||
|
||||
/** Reports the result of a `navigator.credentials.get()` call. The extension must call this for every `onGetRequest` event it has received, unless the request was canceled (in which case, an `onRequestCanceled` event is fired). */
|
||||
export function completeGetRequest(details: GetResponseDetails): Promise<void>;
|
||||
export function completeGetRequest(details: GetResponseDetails, callback: () => void): void;
|
||||
|
||||
/** Reports the result of a `PublicKeyCredential.isUserVerifyingPlatformAuthenticator()` call. The extension must call this for every `onIsUvpaaRequest` event it has received. */
|
||||
export function completeIsUvpaaRequest(details: IsUvpaaResponseDetails): Promise<void>;
|
||||
export function completeIsUvpaaRequest(details: IsUvpaaResponseDetails, callback: () => void): void;
|
||||
|
||||
/**
|
||||
* Removes this extension from being the active Web Authentication API request proxy.
|
||||
*
|
||||
* This method is typically called when the extension detects that a remote desktop session was terminated. Once this method returns, the extension ceases to be the active Web Authentication API request proxy.
|
||||
*
|
||||
* Refer to the `onRemoteSessionStateChange` event for signaling a change of remote session attachment from a native application to to the (possibly suspended) extension.
|
||||
*/
|
||||
export function detach(): Promise<string | undefined>;
|
||||
export function detach(callback: (error?: string | undefined) => void): void;
|
||||
|
||||
/** Fires when a WebAuthn `navigator.credentials.create()` call occurs. The extension must supply a response by calling `completeCreateRequest()` with the `requestId` from `requestInfo`. */
|
||||
export const onCreateRequest: events.Event<(requestInfo: CreateRequest) => void>;
|
||||
|
||||
/** Fires when a WebAuthn `navigator.credentials.get()` call occurs. The extension must supply a response by calling `completeGetRequest()` with the `requestId` from `requestInfo` */
|
||||
export const onGetRequest: events.Event<(requestInfo: GetRequest) => void>;
|
||||
|
||||
/** Fires when a `PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable()` call occurs. The extension must supply a response by calling `completeIsUvpaaRequest()` with the `requestId` from `requestInfo` */
|
||||
export const onIsUvpaaRequest: events.Event<(requestInfo: IsUvpaaRequest) => void>;
|
||||
|
||||
/**
|
||||
* A native application associated with this extension can cause this event to be fired by writing to a file with a name equal to the extension's ID in a directory named `WebAuthenticationProxyRemoteSessionStateChange` inside the [default user data directory](https://chromium.googlesource.com/chromium/src/+/main/docs/user_data_dir.md#default-location)
|
||||
*
|
||||
* The contents of the file should be empty. I.e., it is not necessary to change the contents of the file in order to trigger this event.
|
||||
*
|
||||
* The native host application may use this event mechanism to signal a possible remote session state change (i.e. from detached to attached, or vice versa) while the extension service worker is possibly suspended. In the handler for this event, the extension can call the `attach()` or `detach()` API methods accordingly.
|
||||
*
|
||||
* The event listener must be registered synchronously at load time.
|
||||
*/
|
||||
export const onRemoteSessionStateChange: events.Event<() => void>;
|
||||
|
||||
/** Fires when a `onCreateRequest` or `onGetRequest` event is canceled (because the WebAuthn request was aborted by the caller, or because it timed out). When receiving this event, the extension should cancel processing of the corresponding request on the client side. Extensions cannot complete a request once it has been canceled. */
|
||||
export const onRequestCanceled: events.Event<(requestId: number) => void>;
|
||||
}
|
||||
|
||||
////////////////////
|
||||
// Web Navigation
|
||||
////////////////////
|
||||
@@ -13934,7 +14291,7 @@ export namespace Browser {
|
||||
tabId: number;
|
||||
|
||||
/** The resource type of the request. */
|
||||
type: ResourceType;
|
||||
type: `${ResourceType}`;
|
||||
|
||||
/** The URL of the request. */
|
||||
url: string;
|
||||
@@ -13976,7 +14333,7 @@ export namespace Browser {
|
||||
responseHeaders?: ModifyHeaderInfo[] | undefined;
|
||||
|
||||
/** The type of action to perform. */
|
||||
type: RuleActionType;
|
||||
type: `${RuleActionType}`;
|
||||
}
|
||||
|
||||
export interface RuleCondition {
|
||||
@@ -13984,7 +14341,7 @@ export namespace Browser {
|
||||
* Specifies whether the network request is first-party or third-party to the domain from which it originated.
|
||||
* If omitted, all requests are accepted.
|
||||
*/
|
||||
domainType?: DomainType | undefined;
|
||||
domainType?: `${DomainType}` | undefined;
|
||||
|
||||
/**
|
||||
* @deprecated since Chrome 101. Use initiatorDomains instead.
|
||||
@@ -14071,7 +14428,7 @@ export namespace Browser {
|
||||
* Only one of requestMethods and excludedRequestMethods should be specified.
|
||||
* If neither of them is specified, all request methods are matched.
|
||||
*/
|
||||
excludedRequestMethods?: RequestMethod[] | undefined;
|
||||
excludedRequestMethods?: `${RequestMethod}`[] | undefined;
|
||||
|
||||
/**
|
||||
* List of resource types which the rule won't match.
|
||||
@@ -14079,7 +14436,7 @@ export namespace Browser {
|
||||
* and {@link Browser.declarativeNetRequest.RuleCondition.excludedResourceTypes} should be specified.
|
||||
* If neither of them is specified, all resource types except "main_frame" are blocked.
|
||||
*/
|
||||
excludedResourceTypes?: ResourceType[] | undefined;
|
||||
excludedResourceTypes?: `${ResourceType}`[] | undefined;
|
||||
|
||||
/**
|
||||
* List of {@link Browser.tabs.Tab.id} which the rule should not match.
|
||||
@@ -14110,7 +14467,7 @@ export namespace Browser {
|
||||
* Note: Specifying a {@link Browser.declarativeNetRequest.RuleCondition.requestMethods} rule condition will also exclude non-HTTP(s) requests,
|
||||
* whereas specifying {@link Browser.declarativeNetRequest.RuleCondition.excludedRequestMethods} will not.
|
||||
*/
|
||||
requestMethods?: RequestMethod[];
|
||||
requestMethods?: `${RequestMethod}`[] | undefined;
|
||||
|
||||
/**
|
||||
* List of {@link Browser.tabs.Tab.id} which the rule should not match.
|
||||
@@ -14152,7 +14509,7 @@ export namespace Browser {
|
||||
*
|
||||
* Note: this must be specified for allowAllRequests rules and may only include the sub_frame and main_frame resource types.
|
||||
*/
|
||||
resourceTypes?: ResourceType[] | undefined;
|
||||
resourceTypes?: `${ResourceType}`[] | undefined;
|
||||
|
||||
/**
|
||||
* Rule does not match if the request matches any response header condition in this list (if specified). If both `excludedResponseHeaders` and `responseHeaders` are specified, then the `excludedResponseHeaders` property takes precedence.
|
||||
@@ -14222,7 +14579,7 @@ export namespace Browser {
|
||||
header: string;
|
||||
|
||||
/** The operation to be performed on a header. */
|
||||
operation: HeaderOperation;
|
||||
operation: `${HeaderOperation}`;
|
||||
|
||||
/** The new value for the header.
|
||||
* Must be specified for append and set operations.
|
||||
@@ -14304,7 +14661,7 @@ export namespace Browser {
|
||||
/** Specifies the reason why the regular expression is not supported.
|
||||
* Only provided if isSupported is false.
|
||||
*/
|
||||
reason?: UnsupportedRegexReason | undefined;
|
||||
reason?: `${UnsupportedRegexReason}` | undefined;
|
||||
}
|
||||
|
||||
export interface TabActionCountUpdate {
|
||||
|
||||
Generated
+5
-5
@@ -167,8 +167,8 @@ importers:
|
||||
version: 1.2.15
|
||||
devDependencies:
|
||||
'@types/chrome':
|
||||
specifier: 0.0.324
|
||||
version: 0.0.324
|
||||
specifier: 0.0.325
|
||||
version: 0.0.325
|
||||
fs-extra:
|
||||
specifier: ^11.3.0
|
||||
version: 11.3.0
|
||||
@@ -1929,8 +1929,8 @@ packages:
|
||||
'@types/babel__traverse@7.20.6':
|
||||
resolution: {integrity: sha512-r1bzfrm0tomOI8g1SzvCaQHo6Lcv6zu0EA+W2kHrt8dyrHQxGzBBL4kdkzIS+jBMV+EYcMAEAqXqYaLJq5rOZg==}
|
||||
|
||||
'@types/chrome@0.0.324':
|
||||
resolution: {integrity: sha512-puFoA5uJbN9+oaD/MjtMY13H7vPvO/IlSP4pe+uD/c+hB7HsbcOOLVRZlRWgkDSqupw4R+53pS9K9ORHYyMBCg==}
|
||||
'@types/chrome@0.0.325':
|
||||
resolution: {integrity: sha512-iHsXfUeAjQ8a+zMGCRNHESApb/gBV6eRlukks5gqDjUP4atF/j4BLKnVVLxyG/6PARRrupwkZvULUI+ovR9luQ==}
|
||||
|
||||
'@types/conventional-commits-parser@5.0.1':
|
||||
resolution: {integrity: sha512-7uz5EHdzz2TqoMfV7ee61Egf5y6NkcO4FB/1iCCQnbeiI1F3xzv3vK5dBCXUCLQgGYS+mUeigK1iKQzvED+QnQ==}
|
||||
@@ -6082,7 +6082,7 @@ snapshots:
|
||||
dependencies:
|
||||
'@babel/types': 7.27.0
|
||||
|
||||
'@types/chrome@0.0.324':
|
||||
'@types/chrome@0.0.325':
|
||||
dependencies:
|
||||
'@types/filesystem': 0.0.36
|
||||
'@types/har-format': 1.2.15
|
||||
|
||||
Reference in New Issue
Block a user