@solongate/proxy 0.81.24 → 0.81.26
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/audit.d.ts +13 -0
- package/dist/commands/index.js +8 -0
- package/dist/index.js +253 -256
- package/dist/tui/hooks.d.ts +3 -0
- package/dist/tui/index.js +209 -201
- package/dist/tui/local-log.d.ts +4 -0
- package/package.json +1 -1
- package/dist/tui/panels/Agents.d.ts +0 -4
- package/dist/tui/panels/Stats.d.ts +0 -3
|
@@ -12,6 +12,19 @@ export interface AuditQuery {
|
|
|
12
12
|
signal?: 'dlp' | 'ratelimit';
|
|
13
13
|
}
|
|
14
14
|
export declare function list(query?: AuditQuery): Promise<AuditList>;
|
|
15
|
+
export declare function remove(ids: string[]): Promise<{
|
|
16
|
+
deleted: {
|
|
17
|
+
logs: number;
|
|
18
|
+
agents: number;
|
|
19
|
+
};
|
|
20
|
+
}>;
|
|
21
|
+
/** Deletes EVERY audit log of the project (agents/sessions are kept). */
|
|
22
|
+
export declare function removeAll(): Promise<{
|
|
23
|
+
deleted: {
|
|
24
|
+
logs: number;
|
|
25
|
+
agents: number;
|
|
26
|
+
};
|
|
27
|
+
}>;
|
|
15
28
|
export declare function whitelist(id: string, scope?: 'exact' | 'tool'): Promise<{
|
|
16
29
|
ok: true;
|
|
17
30
|
deduped: boolean;
|
package/dist/commands/index.js
CHANGED
|
@@ -291,11 +291,19 @@ var audit_exports = {};
|
|
|
291
291
|
__export(audit_exports, {
|
|
292
292
|
block: () => block,
|
|
293
293
|
list: () => list2,
|
|
294
|
+
remove: () => remove2,
|
|
295
|
+
removeAll: () => removeAll,
|
|
294
296
|
whitelist: () => whitelist
|
|
295
297
|
});
|
|
296
298
|
function list2(query = {}) {
|
|
297
299
|
return request("GET", "/audit-logs", { query });
|
|
298
300
|
}
|
|
301
|
+
function remove2(ids) {
|
|
302
|
+
return request("DELETE", "/audit-logs", { body: { ids } });
|
|
303
|
+
}
|
|
304
|
+
function removeAll() {
|
|
305
|
+
return request("DELETE", "/audit-logs", { body: { scope: "logs" } });
|
|
306
|
+
}
|
|
299
307
|
function whitelist(id, scope = "exact") {
|
|
300
308
|
return request("POST", `/audit-logs/${encodeURIComponent(id)}/whitelist`, { body: { scope } });
|
|
301
309
|
}
|