@solongate/proxy 0.79.0 → 0.81.0
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/api-client/settings.d.ts +6 -0
- package/dist/commands/index.js +9 -1
- package/dist/index.js +489 -136
- package/dist/tui/config.d.ts +6 -0
- package/dist/tui/index.js +385 -51
- package/dist/tui/panels/Agents.d.ts +4 -0
- package/dist/tui/theme.d.ts +2 -3
- package/package.json +1 -1
|
@@ -20,6 +20,12 @@ export interface GuardStatus {
|
|
|
20
20
|
outdated_count: number;
|
|
21
21
|
}
|
|
22
22
|
export declare function getGuardStatus(): Promise<GuardStatus>;
|
|
23
|
+
export declare function getSelfProtection(): Promise<{
|
|
24
|
+
enabled: boolean;
|
|
25
|
+
}>;
|
|
26
|
+
export declare function setSelfProtection(enabled: boolean): Promise<{
|
|
27
|
+
enabled: boolean;
|
|
28
|
+
}>;
|
|
23
29
|
export interface AlertRule {
|
|
24
30
|
id: string;
|
|
25
31
|
name: string;
|
package/dist/commands/index.js
CHANGED
|
@@ -204,8 +204,10 @@ __export(settings_exports, {
|
|
|
204
204
|
getGuardStatus: () => getGuardStatus,
|
|
205
205
|
getRateLimitHistory: () => getRateLimitHistory,
|
|
206
206
|
getSecurityLayers: () => getSecurityLayers,
|
|
207
|
+
getSelfProtection: () => getSelfProtection,
|
|
207
208
|
getWebhooks: () => getWebhooks,
|
|
208
|
-
setSecurityLayers: () => setSecurityLayers
|
|
209
|
+
setSecurityLayers: () => setSecurityLayers,
|
|
210
|
+
setSelfProtection: () => setSelfProtection
|
|
209
211
|
});
|
|
210
212
|
function getSecurityLayers() {
|
|
211
213
|
return request("GET", "/settings/security-layers");
|
|
@@ -222,6 +224,12 @@ function clearRateLimitHistory() {
|
|
|
222
224
|
function getGuardStatus() {
|
|
223
225
|
return request("GET", "/settings/guard-status");
|
|
224
226
|
}
|
|
227
|
+
function getSelfProtection() {
|
|
228
|
+
return request("GET", "/settings/self-protection");
|
|
229
|
+
}
|
|
230
|
+
function setSelfProtection(enabled) {
|
|
231
|
+
return request("PUT", "/settings/self-protection", { body: { enabled } });
|
|
232
|
+
}
|
|
225
233
|
function getAlerts() {
|
|
226
234
|
return request("GET", "/settings/denial-alerts");
|
|
227
235
|
}
|