add missing externs to repo
This commit is contained in:
3
externs/webextension_polyfill/proxy/OnErrorErrorType.hx
Normal file
3
externs/webextension_polyfill/proxy/OnErrorErrorType.hx
Normal file
@@ -0,0 +1,3 @@
|
||||
package webextension_polyfill.proxy;
|
||||
|
||||
typedef OnErrorErrorType = { };
|
79
externs/webextension_polyfill/proxy/OnRequestDetailsType.hx
Normal file
79
externs/webextension_polyfill/proxy/OnRequestDetailsType.hx
Normal file
@@ -0,0 +1,79 @@
|
||||
package webextension_polyfill.proxy;
|
||||
|
||||
typedef OnRequestDetailsType = {
|
||||
/**
|
||||
The ID of the request. Request IDs are unique within a browser session. As a result,
|
||||
they could be used to relate different events of the same request.
|
||||
**/
|
||||
var requestId : String;
|
||||
var url : String;
|
||||
/**
|
||||
Standard HTTP method.
|
||||
**/
|
||||
var method : String;
|
||||
/**
|
||||
The value 0 indicates that the request happens in the main frame; a positive value indicates the ID of a subframe in
|
||||
which the request happens. If the document of a (sub-)frame is loaded (<code>type</code> is <code>main_frame</code>
|
||||
or <code>sub_frame</code>), <code>frameId</code> indicates the ID of this frame, not the ID of the outer frame.
|
||||
Frame IDs are unique within a tab.
|
||||
**/
|
||||
var frameId : Float;
|
||||
/**
|
||||
ID of frame that wraps the frame which sent the request. Set to -1 if no parent frame exists.
|
||||
**/
|
||||
var parentFrameId : Float;
|
||||
/**
|
||||
True for private browsing requests.
|
||||
Optional.
|
||||
**/
|
||||
@:optional
|
||||
var incognito : Bool;
|
||||
/**
|
||||
The cookie store ID of the contextual identity.
|
||||
Optional.
|
||||
**/
|
||||
@:optional
|
||||
var cookieStoreId : String;
|
||||
/**
|
||||
URL of the resource that triggered this request.
|
||||
Optional.
|
||||
**/
|
||||
@:optional
|
||||
var originUrl : String;
|
||||
/**
|
||||
URL of the page into which the requested resource will be loaded.
|
||||
Optional.
|
||||
**/
|
||||
@:optional
|
||||
var documentUrl : String;
|
||||
/**
|
||||
The ID of the tab in which the request takes place. Set to -1 if the request isn't related to a tab.
|
||||
**/
|
||||
var tabId : Float;
|
||||
/**
|
||||
How the requested resource will be used.
|
||||
**/
|
||||
var type : webextension_polyfill.declarativenetrequest.ResourceType;
|
||||
/**
|
||||
The time when this signal is triggered, in milliseconds since the epoch.
|
||||
**/
|
||||
var timeStamp : Float;
|
||||
/**
|
||||
Indicates if this response was fetched from disk cache.
|
||||
**/
|
||||
var fromCache : Bool;
|
||||
/**
|
||||
The HTTP request headers that are going to be sent out with this request.
|
||||
Optional.
|
||||
**/
|
||||
@:optional
|
||||
var requestHeaders : webextension_polyfill.webrequest.HttpHeaders;
|
||||
/**
|
||||
Url classification if the request has been classified.
|
||||
**/
|
||||
var urlClassification : webextension_polyfill.webrequest.UrlClassification;
|
||||
/**
|
||||
Indicates if this request and its content window hierarchy is third party.
|
||||
**/
|
||||
var thirdParty : Bool;
|
||||
};
|
17
externs/webextension_polyfill/proxy/OnRequestEvent.hx
Normal file
17
externs/webextension_polyfill/proxy/OnRequestEvent.hx
Normal file
@@ -0,0 +1,17 @@
|
||||
package webextension_polyfill.proxy;
|
||||
|
||||
/**
|
||||
Fired when proxy data is needed for a request.
|
||||
**/
|
||||
typedef OnRequestEvent = {
|
||||
/**
|
||||
Registers an event listener <em>callback</em> to an event.
|
||||
**/
|
||||
function addListener(callback:(details:OnRequestDetailsType) -> Void, filter:webextension_polyfill.webrequest.RequestFilter, ?extraInfoSpec:Array<String>):Void;
|
||||
/**
|
||||
Deregisters an event listener <em>callback</em> from an event.
|
||||
**/
|
||||
function removeListener(callback:(details:OnRequestDetailsType) -> Void):Void;
|
||||
function hasListener(callback:(details:OnRequestDetailsType) -> Void):Bool;
|
||||
function hasListeners():Bool;
|
||||
};
|
75
externs/webextension_polyfill/proxy/ProxyConfig.hx
Normal file
75
externs/webextension_polyfill/proxy/ProxyConfig.hx
Normal file
@@ -0,0 +1,75 @@
|
||||
package webextension_polyfill.proxy;
|
||||
|
||||
/**
|
||||
An object which describes proxy settings.
|
||||
**/
|
||||
typedef ProxyConfig = {
|
||||
/**
|
||||
The type of proxy to use.
|
||||
Optional.
|
||||
**/
|
||||
@:optional
|
||||
var proxyType : ProxyConfigProxyTypeEnum;
|
||||
/**
|
||||
The address of the http proxy, can include a port.
|
||||
Optional.
|
||||
**/
|
||||
@:optional
|
||||
var http : String;
|
||||
/**
|
||||
Use the http proxy server for all protocols.
|
||||
Optional.
|
||||
**/
|
||||
@:optional
|
||||
var httpProxyAll : Bool;
|
||||
/**
|
||||
The address of the ssl proxy, can include a port.
|
||||
Optional.
|
||||
**/
|
||||
@:optional
|
||||
var ssl : String;
|
||||
/**
|
||||
The address of the socks proxy, can include a port.
|
||||
Optional.
|
||||
**/
|
||||
@:optional
|
||||
var socks : String;
|
||||
/**
|
||||
The version of the socks proxy.
|
||||
Optional.
|
||||
**/
|
||||
@:optional
|
||||
var socksVersion : Float;
|
||||
/**
|
||||
A list of hosts which should not be proxied.
|
||||
Optional.
|
||||
**/
|
||||
@:optional
|
||||
var passthrough : String;
|
||||
/**
|
||||
A URL to use to configure the proxy.
|
||||
Optional.
|
||||
**/
|
||||
@:optional
|
||||
var autoConfigUrl : String;
|
||||
/**
|
||||
Do not prompt for authentication if password is saved.
|
||||
Optional.
|
||||
**/
|
||||
@:optional
|
||||
var autoLogin : Bool;
|
||||
/**
|
||||
Proxy DNS when using SOCKS v5.
|
||||
Optional.
|
||||
**/
|
||||
@:optional
|
||||
var proxyDNS : Bool;
|
||||
/**
|
||||
If true (the default value), do not use newer TLS protocol features that might have interoperability problems on the
|
||||
Internet. This is intended only for use with critical infrastructure like the updates,
|
||||
and is only available to privileged addons.
|
||||
Optional.
|
||||
**/
|
||||
@:optional
|
||||
var respectBeConservative : Bool;
|
||||
};
|
@@ -0,0 +1,6 @@
|
||||
package webextension_polyfill.proxy;
|
||||
|
||||
/**
|
||||
The type of proxy to use.
|
||||
**/
|
||||
typedef ProxyConfigProxyTypeEnum = String;
|
16
externs/webextension_polyfill/proxy/Static.hx
Normal file
16
externs/webextension_polyfill/proxy/Static.hx
Normal file
@@ -0,0 +1,16 @@
|
||||
package webextension_polyfill.proxy;
|
||||
|
||||
typedef Static = {
|
||||
/**
|
||||
Fired when proxy data is needed for a request.
|
||||
**/
|
||||
var onRequest : OnRequestEvent;
|
||||
/**
|
||||
Notifies about errors caused by the invalid use of the proxy API.
|
||||
**/
|
||||
var onError : webextension_polyfill.events.Event<(error:OnErrorErrorType) -> Void>;
|
||||
/**
|
||||
Configures proxy settings. This setting's value is an object of type ProxyConfig.
|
||||
**/
|
||||
var settings : webextension_polyfill.types.Setting;
|
||||
};
|
Reference in New Issue
Block a user