@push.rocks/smartproxy 3.34.0 → 3.37.1
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/dist_ts/00_commitinfo_data.js +3 -3
- package/dist_ts/classes.networkproxy.d.ts +85 -0
- package/dist_ts/classes.networkproxy.js +385 -6
- package/dist_ts/classes.portproxy.d.ts +31 -0
- package/dist_ts/classes.portproxy.js +196 -189
- package/dist_ts/classes.snihandler.d.ts +45 -0
- package/dist_ts/classes.snihandler.js +274 -0
- package/dist_ts/index.d.ts +1 -0
- package/dist_ts/index.js +2 -1
- package/package.json +5 -5
- package/ts/00_commitinfo_data.ts +2 -2
- package/ts/classes.networkproxy.ts +461 -6
- package/ts/classes.portproxy.ts +232 -204
- package/ts/classes.snihandler.ts +331 -0
- package/ts/index.ts +1 -0
|
@@ -48,6 +48,16 @@ export interface IPortProxySettings extends plugins.tls.TlsOptions {
|
|
|
48
48
|
extendedKeepAliveLifetime?: number;
|
|
49
49
|
useNetworkProxy?: number[];
|
|
50
50
|
networkProxyPort?: number;
|
|
51
|
+
acme?: {
|
|
52
|
+
enabled?: boolean;
|
|
53
|
+
port?: number;
|
|
54
|
+
contactEmail?: string;
|
|
55
|
+
useProduction?: boolean;
|
|
56
|
+
renewThresholdDays?: number;
|
|
57
|
+
autoRenew?: boolean;
|
|
58
|
+
certificateStore?: string;
|
|
59
|
+
skipConfiguredCerts?: boolean;
|
|
60
|
+
};
|
|
51
61
|
}
|
|
52
62
|
export declare class PortProxy {
|
|
53
63
|
private netServers;
|
|
@@ -65,6 +75,27 @@ export declare class PortProxy {
|
|
|
65
75
|
* Initialize NetworkProxy instance
|
|
66
76
|
*/
|
|
67
77
|
private initializeNetworkProxy;
|
|
78
|
+
/**
|
|
79
|
+
* Updates the domain configurations for the proxy
|
|
80
|
+
* @param newDomainConfigs The new domain configurations
|
|
81
|
+
*/
|
|
82
|
+
updateDomainConfigs(newDomainConfigs: IDomainConfig[]): Promise<void>;
|
|
83
|
+
/**
|
|
84
|
+
* Updates the ACME certificate settings
|
|
85
|
+
* @param acmeSettings New ACME settings
|
|
86
|
+
*/
|
|
87
|
+
updateAcmeSettings(acmeSettings: IPortProxySettings['acme']): Promise<void>;
|
|
88
|
+
/**
|
|
89
|
+
* Synchronizes PortProxy domain configurations to NetworkProxy
|
|
90
|
+
* This allows domains configured in PortProxy to be used by NetworkProxy
|
|
91
|
+
*/
|
|
92
|
+
private syncDomainConfigsToNetworkProxy;
|
|
93
|
+
/**
|
|
94
|
+
* Requests a certificate for a specific domain
|
|
95
|
+
* @param domain The domain to request a certificate for
|
|
96
|
+
* @returns Promise that resolves to true if the request was successful, false otherwise
|
|
97
|
+
*/
|
|
98
|
+
requestCertificate(domain: string): Promise<boolean>;
|
|
68
99
|
/**
|
|
69
100
|
* Forwards a TLS connection to a NetworkProxy for handling
|
|
70
101
|
* @param connectionId - Unique connection identifier
|