@remnawave/backend-contract 2.6.33 → 2.6.35
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/build/backend/api/controllers/node-plugins.d.ts +5 -0
- package/build/backend/api/controllers/node-plugins.d.ts.map +1 -1
- package/build/backend/api/controllers/node-plugins.js +6 -0
- package/build/backend/api/routes.d.ts +5 -0
- package/build/backend/api/routes.d.ts.map +1 -1
- package/build/backend/api/routes.js +5 -0
- package/build/backend/commands/node-plugins/index.d.ts +1 -0
- package/build/backend/commands/node-plugins/index.d.ts.map +1 -1
- package/build/backend/commands/node-plugins/index.js +1 -0
- package/build/backend/commands/node-plugins/torrent-blocker/get-torrent-blocker-reports-stats.command.d.ts +60 -0
- package/build/backend/commands/node-plugins/torrent-blocker/get-torrent-blocker-reports-stats.command.d.ts.map +1 -0
- package/build/backend/commands/node-plugins/torrent-blocker/get-torrent-blocker-reports-stats.command.js +22 -0
- package/build/backend/commands/node-plugins/torrent-blocker/get-torrent-blocker-reports.command.d.ts +626 -0
- package/build/backend/commands/node-plugins/torrent-blocker/get-torrent-blocker-reports.command.d.ts.map +1 -0
- package/build/backend/commands/node-plugins/torrent-blocker/get-torrent-blocker-reports.command.js +20 -0
- package/build/backend/commands/node-plugins/torrent-blocker/index.d.ts +4 -0
- package/build/backend/commands/node-plugins/torrent-blocker/index.d.ts.map +1 -0
- package/build/backend/commands/node-plugins/torrent-blocker/index.js +19 -0
- package/build/backend/commands/node-plugins/torrent-blocker/truncate-torrent-blocker-reports.command.d.ts +573 -0
- package/build/backend/commands/node-plugins/torrent-blocker/truncate-torrent-blocker-reports.command.d.ts.map +1 -0
- package/build/backend/commands/node-plugins/torrent-blocker/truncate-torrent-blocker-reports.command.js +19 -0
- package/build/backend/constants/errors/errors.d.ts +5 -0
- package/build/backend/constants/errors/errors.d.ts.map +1 -1
- package/build/backend/constants/errors/errors.js +5 -0
- package/build/backend/models/index.d.ts +1 -0
- package/build/backend/models/index.d.ts.map +1 -1
- package/build/backend/models/index.js +1 -0
- package/build/backend/models/torrent-blocker-report.schema.d.ts +390 -0
- package/build/backend/models/torrent-blocker-report.schema.d.ts.map +1 -0
- package/build/backend/models/torrent-blocker-report.schema.js +55 -0
- package/build/backend/models/webhook/webhook.schema.d.ts +16 -16
- package/build/frontend/api/controllers/node-plugins.js +6 -0
- package/build/frontend/api/routes.js +5 -0
- package/build/frontend/commands/node-plugins/index.js +1 -0
- package/build/frontend/commands/node-plugins/torrent-blocker/get-torrent-blocker-reports-stats.command.js +22 -0
- package/build/frontend/commands/node-plugins/torrent-blocker/get-torrent-blocker-reports.command.js +20 -0
- package/build/frontend/commands/node-plugins/torrent-blocker/index.js +19 -0
- package/build/frontend/commands/node-plugins/torrent-blocker/truncate-torrent-blocker-reports.command.js +19 -0
- package/build/frontend/constants/errors/errors.js +5 -0
- package/build/frontend/models/index.js +1 -0
- package/build/frontend/models/torrent-blocker-report.schema.js +55 -0
- package/package.json +1 -1
|
@@ -10,5 +10,10 @@ export declare const NODE_PLUGINS_ROUTES: {
|
|
|
10
10
|
readonly CLONE: "actions/clone";
|
|
11
11
|
};
|
|
12
12
|
readonly EXECUTOR: "executor";
|
|
13
|
+
readonly TORRENT_BLOCKER: {
|
|
14
|
+
readonly GET_REPORTS: "torrent-blocker";
|
|
15
|
+
readonly GET_REPORTS_STATS: "torrent-blocker/stats";
|
|
16
|
+
readonly TRUNCATE_REPORTS: "torrent-blocker/truncate";
|
|
17
|
+
};
|
|
13
18
|
};
|
|
14
19
|
//# sourceMappingURL=node-plugins.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node-plugins.d.ts","sourceRoot":"","sources":["../../../../api/controllers/node-plugins.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,EAAG,cAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"node-plugins.d.ts","sourceRoot":"","sources":["../../../../api/controllers/node-plugins.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,EAAG,cAAuB,CAAC;AAK/D,eAAO,MAAM,mBAAmB;;yBAEhB,MAAM;;4BAEH,MAAM;;;;;;;;;;;;CAef,CAAC"}
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.NODE_PLUGINS_ROUTES = exports.NODE_PLUGINS_CONTROLLER = void 0;
|
|
4
4
|
exports.NODE_PLUGINS_CONTROLLER = 'node-plugins';
|
|
5
5
|
const ACTIONS_ROUTE = 'actions';
|
|
6
|
+
const TORRENT_BLOCKER_ROUTE = 'torrent-blocker';
|
|
6
7
|
exports.NODE_PLUGINS_ROUTES = {
|
|
7
8
|
GET_ALL: '', // get
|
|
8
9
|
GET: (uuid) => `${uuid}`, // get
|
|
@@ -14,4 +15,9 @@ exports.NODE_PLUGINS_ROUTES = {
|
|
|
14
15
|
CLONE: `${ACTIONS_ROUTE}/clone`,
|
|
15
16
|
},
|
|
16
17
|
EXECUTOR: 'executor',
|
|
18
|
+
TORRENT_BLOCKER: {
|
|
19
|
+
GET_REPORTS: `${TORRENT_BLOCKER_ROUTE}`,
|
|
20
|
+
GET_REPORTS_STATS: `${TORRENT_BLOCKER_ROUTE}/stats`,
|
|
21
|
+
TRUNCATE_REPORTS: `${TORRENT_BLOCKER_ROUTE}/truncate`,
|
|
22
|
+
},
|
|
17
23
|
};
|
|
@@ -265,6 +265,11 @@ export declare const REST_API: {
|
|
|
265
265
|
readonly CLONE: "/api/node-plugins/actions/clone";
|
|
266
266
|
};
|
|
267
267
|
readonly EXECUTOR: "/api/node-plugins/executor";
|
|
268
|
+
readonly TORRENT_BLOCKER: {
|
|
269
|
+
readonly GET_REPORTS: "/api/node-plugins/torrent-blocker";
|
|
270
|
+
readonly GET_REPORTS_STATS: "/api/node-plugins/torrent-blocker/stats";
|
|
271
|
+
readonly TRUNCATE_REPORTS: "/api/node-plugins/torrent-blocker/truncate";
|
|
272
|
+
};
|
|
268
273
|
};
|
|
269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;;;;;;;;qCAiBjB,MAAM;gCAIX,MAAM;;uCAKC,MAAM;0CAEH,MAAM;;;;;;;;;;;6BAYnB,MAAM;;;gCAIH,MAAM;;;;;;;;6BAST,MAAM;;;gCAIH,MAAM;;;;;;;;;;;;;;;;;uCAkBC,MAAM;;;yCAIJ,MAAM;;;;2CAKJ,MAAM;;;6CAIJ,MAAM;;;;;mCAMhB,MAAM;+CAEM,MAAM;;;;;iCAMpB,MAAM;oCAEH,MAAM;;;iCAIT,MAAM;oCAEH,MAAM;;;CAIvB,CAAC"}
|
|
@@ -302,6 +302,11 @@ exports.REST_API = {
|
|
|
302
302
|
CLONE: `${exports.ROOT}/${CONTROLLERS.NODE_PLUGINS_CONTROLLER}/${CONTROLLERS.NODE_PLUGINS_ROUTES.ACTIONS.CLONE}`,
|
|
303
303
|
},
|
|
304
304
|
EXECUTOR: `${exports.ROOT}/${CONTROLLERS.NODE_PLUGINS_CONTROLLER}/${CONTROLLERS.NODE_PLUGINS_ROUTES.EXECUTOR}`,
|
|
305
|
+
TORRENT_BLOCKER: {
|
|
306
|
+
GET_REPORTS: `${exports.ROOT}/${CONTROLLERS.NODE_PLUGINS_CONTROLLER}/${CONTROLLERS.NODE_PLUGINS_ROUTES.TORRENT_BLOCKER.GET_REPORTS}`,
|
|
307
|
+
GET_REPORTS_STATS: `${exports.ROOT}/${CONTROLLERS.NODE_PLUGINS_CONTROLLER}/${CONTROLLERS.NODE_PLUGINS_ROUTES.TORRENT_BLOCKER.GET_REPORTS_STATS}`,
|
|
308
|
+
TRUNCATE_REPORTS: `${exports.ROOT}/${CONTROLLERS.NODE_PLUGINS_CONTROLLER}/${CONTROLLERS.NODE_PLUGINS_ROUTES.TORRENT_BLOCKER.TRUNCATE_REPORTS}`,
|
|
309
|
+
},
|
|
305
310
|
},
|
|
306
311
|
BANDWIDTH_STATS: {
|
|
307
312
|
NODES: {
|
|
@@ -4,5 +4,6 @@ export * from './delete-node-plugin.command';
|
|
|
4
4
|
export * from './executor.command';
|
|
5
5
|
export * from './get-node-plugin.command';
|
|
6
6
|
export * from './get-node-plugins.command';
|
|
7
|
+
export * from './torrent-blocker';
|
|
7
8
|
export * from './update-node-plugin.command';
|
|
8
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commands/node-plugins/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commands/node-plugins/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mBAAmB,CAAC;AAClC,cAAc,8BAA8B,CAAC"}
|
|
@@ -20,4 +20,5 @@ __exportStar(require("./delete-node-plugin.command"), exports);
|
|
|
20
20
|
__exportStar(require("./executor.command"), exports);
|
|
21
21
|
__exportStar(require("./get-node-plugin.command"), exports);
|
|
22
22
|
__exportStar(require("./get-node-plugins.command"), exports);
|
|
23
|
+
__exportStar(require("./torrent-blocker"), exports);
|
|
23
24
|
__exportStar(require("./update-node-plugin.command"), exports);
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace GetTorrentBlockerReportsStatsCommand {
|
|
3
|
+
const url: "/api/node-plugins/torrent-blocker/stats";
|
|
4
|
+
const TSQ_url: "/api/node-plugins/torrent-blocker/stats";
|
|
5
|
+
const endpointDetails: import("../../../constants").EndpointDetails;
|
|
6
|
+
const ResponseSchema: z.ZodObject<{
|
|
7
|
+
response: z.ZodObject<{
|
|
8
|
+
stats: z.ZodObject<{
|
|
9
|
+
distinctNodes: z.ZodNumber;
|
|
10
|
+
distinctUsers: z.ZodNumber;
|
|
11
|
+
totalReports: z.ZodNumber;
|
|
12
|
+
reportsLast24Hours: z.ZodNumber;
|
|
13
|
+
}, "strip", z.ZodTypeAny, {
|
|
14
|
+
distinctNodes: number;
|
|
15
|
+
distinctUsers: number;
|
|
16
|
+
totalReports: number;
|
|
17
|
+
reportsLast24Hours: number;
|
|
18
|
+
}, {
|
|
19
|
+
distinctNodes: number;
|
|
20
|
+
distinctUsers: number;
|
|
21
|
+
totalReports: number;
|
|
22
|
+
reportsLast24Hours: number;
|
|
23
|
+
}>;
|
|
24
|
+
}, "strip", z.ZodTypeAny, {
|
|
25
|
+
stats: {
|
|
26
|
+
distinctNodes: number;
|
|
27
|
+
distinctUsers: number;
|
|
28
|
+
totalReports: number;
|
|
29
|
+
reportsLast24Hours: number;
|
|
30
|
+
};
|
|
31
|
+
}, {
|
|
32
|
+
stats: {
|
|
33
|
+
distinctNodes: number;
|
|
34
|
+
distinctUsers: number;
|
|
35
|
+
totalReports: number;
|
|
36
|
+
reportsLast24Hours: number;
|
|
37
|
+
};
|
|
38
|
+
}>;
|
|
39
|
+
}, "strip", z.ZodTypeAny, {
|
|
40
|
+
response: {
|
|
41
|
+
stats: {
|
|
42
|
+
distinctNodes: number;
|
|
43
|
+
distinctUsers: number;
|
|
44
|
+
totalReports: number;
|
|
45
|
+
reportsLast24Hours: number;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
}, {
|
|
49
|
+
response: {
|
|
50
|
+
stats: {
|
|
51
|
+
distinctNodes: number;
|
|
52
|
+
distinctUsers: number;
|
|
53
|
+
totalReports: number;
|
|
54
|
+
reportsLast24Hours: number;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
}>;
|
|
58
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=get-torrent-blocker-reports-stats.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-torrent-blocker-reports-stats.command.d.ts","sourceRoot":"","sources":["../../../../../commands/node-plugins/torrent-blocker/get-torrent-blocker-reports-stats.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,oCAAoC,CAAC;IAC3C,MAAM,GAAG,2CAA0D,CAAC;IACpE,MAAM,OAAO,2CAAM,CAAC;IAEpB,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MASzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetTorrentBlockerReportsStatsCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const api_1 = require("../../../api");
|
|
6
|
+
const constants_1 = require("../../../constants");
|
|
7
|
+
var GetTorrentBlockerReportsStatsCommand;
|
|
8
|
+
(function (GetTorrentBlockerReportsStatsCommand) {
|
|
9
|
+
GetTorrentBlockerReportsStatsCommand.url = api_1.REST_API.NODE_PLUGINS.TORRENT_BLOCKER.GET_REPORTS_STATS;
|
|
10
|
+
GetTorrentBlockerReportsStatsCommand.TSQ_url = GetTorrentBlockerReportsStatsCommand.url;
|
|
11
|
+
GetTorrentBlockerReportsStatsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.NODE_PLUGINS_ROUTES.TORRENT_BLOCKER.GET_REPORTS_STATS, 'get', 'Get Torrent Blocker Reports Stats');
|
|
12
|
+
GetTorrentBlockerReportsStatsCommand.ResponseSchema = zod_1.z.object({
|
|
13
|
+
response: zod_1.z.object({
|
|
14
|
+
stats: zod_1.z.object({
|
|
15
|
+
distinctNodes: zod_1.z.number(),
|
|
16
|
+
distinctUsers: zod_1.z.number(),
|
|
17
|
+
totalReports: zod_1.z.number(),
|
|
18
|
+
reportsLast24Hours: zod_1.z.number(),
|
|
19
|
+
}),
|
|
20
|
+
}),
|
|
21
|
+
});
|
|
22
|
+
})(GetTorrentBlockerReportsStatsCommand || (exports.GetTorrentBlockerReportsStatsCommand = GetTorrentBlockerReportsStatsCommand = {}));
|