@remnawave/backend-contract 2.6.11 → 2.6.13
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/bandwidth-stats.d.ts +0 -6
- package/build/backend/api/controllers/bandwidth-stats.d.ts.map +1 -1
- package/build/backend/api/controllers/bandwidth-stats.js +1 -9
- package/build/backend/api/controllers/index.d.ts +1 -0
- package/build/backend/api/controllers/index.d.ts.map +1 -1
- package/build/backend/api/controllers/index.js +1 -0
- package/build/backend/api/controllers/ip-control.d.ts +7 -0
- package/build/backend/api/controllers/ip-control.d.ts.map +1 -0
- package/build/backend/api/controllers/ip-control.js +12 -0
- package/build/backend/api/controllers-info.d.ts +4 -0
- package/build/backend/api/controllers-info.d.ts.map +1 -1
- package/build/backend/api/controllers-info.js +4 -0
- package/build/backend/api/routes.d.ts +5 -4
- package/build/backend/api/routes.d.ts.map +1 -1
- package/build/backend/api/routes.js +5 -4
- package/build/backend/commands/bandwidth-stats/index.d.ts +0 -1
- package/build/backend/commands/bandwidth-stats/index.d.ts.map +1 -1
- package/build/backend/commands/bandwidth-stats/index.js +0 -1
- package/build/backend/commands/index.d.ts +1 -0
- package/build/backend/commands/index.d.ts.map +1 -1
- package/build/backend/commands/index.js +1 -0
- package/build/backend/commands/ip-control/drop-connections.command.d.ts +126 -0
- package/build/backend/commands/ip-control/drop-connections.command.d.ts.map +1 -0
- package/build/backend/commands/ip-control/drop-connections.command.js +48 -0
- package/build/backend/commands/{bandwidth-stats/user-ips/get-user-ips-result.command.d.ts → ip-control/fetch-ips-result.command.d.ts} +3 -3
- package/build/backend/commands/ip-control/fetch-ips-result.command.d.ts.map +1 -0
- package/build/backend/commands/{bandwidth-stats/user-ips/get-user-ips-result.command.js → ip-control/fetch-ips-result.command.js} +11 -11
- package/build/backend/commands/{bandwidth-stats/user-ips/create-user-ips-job.command.d.ts → ip-control/fetch-ips.command.d.ts} +3 -3
- package/build/backend/commands/ip-control/fetch-ips.command.d.ts.map +1 -0
- package/build/backend/commands/ip-control/fetch-ips.command.js +20 -0
- package/build/backend/commands/ip-control/index.d.ts +4 -0
- package/build/backend/commands/ip-control/index.d.ts.map +1 -0
- package/build/{frontend/commands/bandwidth-stats/user-ips → backend/commands/ip-control}/index.js +3 -2
- 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/frontend/api/controllers/bandwidth-stats.js +1 -9
- package/build/frontend/api/controllers/index.js +1 -0
- package/build/frontend/api/controllers/ip-control.js +12 -0
- package/build/frontend/api/controllers-info.js +4 -0
- package/build/frontend/api/routes.js +5 -4
- package/build/frontend/commands/bandwidth-stats/index.js +0 -1
- package/build/frontend/commands/index.js +1 -0
- package/build/frontend/commands/ip-control/drop-connections.command.js +48 -0
- package/build/frontend/commands/{bandwidth-stats/user-ips/get-user-ips-result.command.js → ip-control/fetch-ips-result.command.js} +11 -11
- package/build/frontend/commands/ip-control/fetch-ips.command.js +20 -0
- package/build/{backend/commands/bandwidth-stats/user-ips → frontend/commands/ip-control}/index.js +3 -2
- package/build/frontend/constants/errors/errors.js +5 -0
- package/package.json +1 -1
- package/build/backend/commands/bandwidth-stats/user-ips/create-user-ips-job.command.d.ts.map +0 -1
- package/build/backend/commands/bandwidth-stats/user-ips/create-user-ips-job.command.js +0 -20
- package/build/backend/commands/bandwidth-stats/user-ips/get-user-ips-result.command.d.ts.map +0 -1
- package/build/backend/commands/bandwidth-stats/user-ips/index.d.ts +0 -3
- package/build/backend/commands/bandwidth-stats/user-ips/index.d.ts.map +0 -1
- package/build/frontend/commands/bandwidth-stats/user-ips/create-user-ips-job.command.js +0 -20
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
export declare const BANDWIDTH_STATS_CONTROLLER: "bandwidth-stats";
|
|
2
2
|
export declare const BANDWIDTH_STATS_NODES_ROUTE: "nodes";
|
|
3
3
|
export declare const BANDWIDTH_STATS_USERS_ROUTE: "users";
|
|
4
|
-
export declare const BANDWIDTH_STATS_USER_IPS_ROUTE: "user-ips";
|
|
5
4
|
export declare const BANDWIDTH_STATS_NODES_CONTROLLER: "bandwidth-stats/nodes";
|
|
6
5
|
export declare const BANDWIDTH_STATS_USERS_CONTROLLER: "bandwidth-stats/users";
|
|
7
|
-
export declare const BANDWIDTH_STATS_USER_IPS_CONTROLLER: "bandwidth-stats/user-ips";
|
|
8
6
|
export declare const BANDWIDTH_STATS_ROUTES: {
|
|
9
7
|
readonly NODES: {
|
|
10
8
|
readonly GET: "";
|
|
@@ -14,10 +12,6 @@ export declare const BANDWIDTH_STATS_ROUTES: {
|
|
|
14
12
|
readonly USERS: {
|
|
15
13
|
readonly GET_BY_UUID: (uuid: string) => string;
|
|
16
14
|
};
|
|
17
|
-
readonly USER_IPS: {
|
|
18
|
-
readonly CREATE: (uuid: string) => string;
|
|
19
|
-
readonly GET_RESULT: (jobId: string) => string;
|
|
20
|
-
};
|
|
21
15
|
readonly LEGACY: {
|
|
22
16
|
readonly NODES: {
|
|
23
17
|
readonly GET_USERS: (uuid: string) => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bandwidth-stats.d.ts","sourceRoot":"","sources":["../../../../api/controllers/bandwidth-stats.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B,EAAG,iBAA0B,CAAC;AAErE,eAAO,MAAM,2BAA2B,EAAG,OAAgB,CAAC;AAC5D,eAAO,MAAM,2BAA2B,EAAG,OAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"bandwidth-stats.d.ts","sourceRoot":"","sources":["../../../../api/controllers/bandwidth-stats.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,0BAA0B,EAAG,iBAA0B,CAAC;AAErE,eAAO,MAAM,2BAA2B,EAAG,OAAgB,CAAC;AAC5D,eAAO,MAAM,2BAA2B,EAAG,OAAgB,CAAC;AAE5D,eAAO,MAAM,gCAAgC,yBAC8B,CAAC;AAC5E,eAAO,MAAM,gCAAgC,yBAC8B,CAAC;AAO5E,eAAO,MAAM,sBAAsB;;;;mCAOT,MAAM;;;qCAIJ,MAAM;;;;uCAKJ,MAAM;;;yCAIJ,MAAM;;;CAG5B,CAAC"}
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BANDWIDTH_STATS_ROUTES = exports.
|
|
3
|
+
exports.BANDWIDTH_STATS_ROUTES = exports.BANDWIDTH_STATS_USERS_CONTROLLER = exports.BANDWIDTH_STATS_NODES_CONTROLLER = exports.BANDWIDTH_STATS_USERS_ROUTE = exports.BANDWIDTH_STATS_NODES_ROUTE = exports.BANDWIDTH_STATS_CONTROLLER = void 0;
|
|
4
4
|
exports.BANDWIDTH_STATS_CONTROLLER = 'bandwidth-stats';
|
|
5
5
|
exports.BANDWIDTH_STATS_NODES_ROUTE = 'nodes';
|
|
6
6
|
exports.BANDWIDTH_STATS_USERS_ROUTE = 'users';
|
|
7
|
-
exports.BANDWIDTH_STATS_USER_IPS_ROUTE = 'user-ips';
|
|
8
7
|
exports.BANDWIDTH_STATS_NODES_CONTROLLER = `${exports.BANDWIDTH_STATS_CONTROLLER}/${exports.BANDWIDTH_STATS_NODES_ROUTE}`;
|
|
9
8
|
exports.BANDWIDTH_STATS_USERS_CONTROLLER = `${exports.BANDWIDTH_STATS_CONTROLLER}/${exports.BANDWIDTH_STATS_USERS_ROUTE}`;
|
|
10
|
-
exports.BANDWIDTH_STATS_USER_IPS_CONTROLLER = `${exports.BANDWIDTH_STATS_CONTROLLER}/${exports.BANDWIDTH_STATS_USER_IPS_ROUTE}`;
|
|
11
9
|
// Variants:
|
|
12
10
|
// 1. Nodes -> Metrics
|
|
13
11
|
// 2. Nodes -> Management -> Show usage (!need legacy)
|
|
@@ -25,12 +23,6 @@ exports.BANDWIDTH_STATS_ROUTES = {
|
|
|
25
23
|
// GET /bandwidth-stats/users/:userUuid –– Users -> User -> Show Usage
|
|
26
24
|
GET_BY_UUID: (uuid) => `${uuid}`,
|
|
27
25
|
},
|
|
28
|
-
USER_IPS: {
|
|
29
|
-
// POST /bandwidth-stats/user-ips/:userUuid — create job
|
|
30
|
-
CREATE: (uuid) => `${uuid}`,
|
|
31
|
-
// GET /bandwidth-stats/user-ips/result/:jobId — get job result
|
|
32
|
-
GET_RESULT: (jobId) => `result/${jobId}`,
|
|
33
|
-
},
|
|
34
26
|
LEGACY: {
|
|
35
27
|
NODES: {
|
|
36
28
|
// GET /bandwidth-stats/nodes/:nodeUuid/users/legacy –– Nodes -> Management -> Show usage (legacy)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../api/controllers/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../api/controllers/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
|
|
@@ -23,6 +23,7 @@ __exportStar(require("./hosts"), exports);
|
|
|
23
23
|
__exportStar(require("./hwid"), exports);
|
|
24
24
|
__exportStar(require("./infra-billing"), exports);
|
|
25
25
|
__exportStar(require("./internal-squads"), exports);
|
|
26
|
+
__exportStar(require("./ip-control"), exports);
|
|
26
27
|
__exportStar(require("./keygen"), exports);
|
|
27
28
|
__exportStar(require("./nodes"), exports);
|
|
28
29
|
__exportStar(require("./passkeys"), exports);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const IP_CONTROL_CONTROLLER: "ip-control";
|
|
2
|
+
export declare const IP_CONTROL_ROUTES: {
|
|
3
|
+
readonly FETCH_IPS: (uuid: string) => string;
|
|
4
|
+
readonly GET_FETCH_IPS_RESULT: (jobId: string) => string;
|
|
5
|
+
readonly DROP_CONNECTIONS: "drop-connections";
|
|
6
|
+
};
|
|
7
|
+
//# sourceMappingURL=ip-control.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ip-control.d.ts","sourceRoot":"","sources":["../../../../api/controllers/ip-control.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,EAAG,YAAqB,CAAC;AAE3D,eAAO,MAAM,iBAAiB;+BAER,MAAM;2CAEM,MAAM;;CAG9B,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IP_CONTROL_ROUTES = exports.IP_CONTROL_CONTROLLER = void 0;
|
|
4
|
+
exports.IP_CONTROL_CONTROLLER = 'ip-control';
|
|
5
|
+
exports.IP_CONTROL_ROUTES = {
|
|
6
|
+
// POST /ip-control/fetch-ips/:userUuid
|
|
7
|
+
FETCH_IPS: (uuid) => `fetch-ips/${uuid}`,
|
|
8
|
+
// GET /ip-control/fetch-ips/result/:jobId
|
|
9
|
+
GET_FETCH_IPS_RESULT: (jobId) => `fetch-ips/result/${jobId}`,
|
|
10
|
+
// POST /ip-control/drop-connections
|
|
11
|
+
DROP_CONNECTIONS: 'drop-connections',
|
|
12
|
+
};
|
|
@@ -39,6 +39,10 @@ export declare const CONTROLLERS_INFO: {
|
|
|
39
39
|
readonly tag: "Bandwidth Stats Controller";
|
|
40
40
|
readonly description: "";
|
|
41
41
|
};
|
|
42
|
+
readonly IP_CONTROL: {
|
|
43
|
+
readonly tag: "IP Management Controller";
|
|
44
|
+
readonly description: "Management of IP addresses and connections.";
|
|
45
|
+
};
|
|
42
46
|
readonly CONFIG_PROFILES: {
|
|
43
47
|
readonly tag: "Config Profiles Controller";
|
|
44
48
|
readonly description: "Management of Config Profiles.";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"controllers-info.d.ts","sourceRoot":"","sources":["../../../api/controllers-info.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"controllers-info.d.ts","sourceRoot":"","sources":["../../../api/controllers-info.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwGnB,CAAC"}
|
|
@@ -42,6 +42,10 @@ exports.CONTROLLERS_INFO = {
|
|
|
42
42
|
tag: 'Bandwidth Stats Controller',
|
|
43
43
|
description: '',
|
|
44
44
|
},
|
|
45
|
+
IP_CONTROL: {
|
|
46
|
+
tag: 'IP Management Controller',
|
|
47
|
+
description: 'Management of IP addresses and connections.',
|
|
48
|
+
},
|
|
45
49
|
CONFIG_PROFILES: {
|
|
46
50
|
tag: 'Config Profiles Controller',
|
|
47
51
|
description: 'Management of Config Profiles.',
|
|
@@ -263,10 +263,6 @@ export declare const REST_API: {
|
|
|
263
263
|
readonly USERS: {
|
|
264
264
|
readonly GET_BY_UUID: (uuid: string) => string;
|
|
265
265
|
};
|
|
266
|
-
readonly USER_IPS: {
|
|
267
|
-
readonly CREATE: (uuid: string) => string;
|
|
268
|
-
readonly GET_RESULT: (jobId: string) => string;
|
|
269
|
-
};
|
|
270
266
|
readonly LEGACY: {
|
|
271
267
|
readonly NODES: {
|
|
272
268
|
readonly GET_USERS: (uuid: string) => string;
|
|
@@ -276,5 +272,10 @@ export declare const REST_API: {
|
|
|
276
272
|
};
|
|
277
273
|
};
|
|
278
274
|
};
|
|
275
|
+
readonly IP_CONTROL: {
|
|
276
|
+
readonly FETCH_IPS: (uuid: string) => string;
|
|
277
|
+
readonly GET_FETCH_IPS_RESULT: (jobId: string) => string;
|
|
278
|
+
readonly DROP_CONNECTIONS: "/api/ip-control/drop-connections";
|
|
279
|
+
};
|
|
279
280
|
};
|
|
280
281
|
//# sourceMappingURL=routes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../api/routes.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,EAAG,MAAe,CAAC;AACpC,eAAO,MAAM,YAAY,EAAG,UAAmB,CAAC;AAChD,eAAO,MAAM,WAAW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lC,CAAC"}
|
|
@@ -300,10 +300,6 @@ exports.REST_API = {
|
|
|
300
300
|
USERS: {
|
|
301
301
|
GET_BY_UUID: (uuid) => `${exports.ROOT}/${CONTROLLERS.BANDWIDTH_STATS_CONTROLLER}/${CONTROLLERS.BANDWIDTH_STATS_USERS_ROUTE}/${CONTROLLERS.BANDWIDTH_STATS_ROUTES.USERS.GET_BY_UUID(uuid)}`,
|
|
302
302
|
},
|
|
303
|
-
USER_IPS: {
|
|
304
|
-
CREATE: (uuid) => `${exports.ROOT}/${CONTROLLERS.BANDWIDTH_STATS_CONTROLLER}/${CONTROLLERS.BANDWIDTH_STATS_USER_IPS_ROUTE}/${CONTROLLERS.BANDWIDTH_STATS_ROUTES.USER_IPS.CREATE(uuid)}`,
|
|
305
|
-
GET_RESULT: (jobId) => `${exports.ROOT}/${CONTROLLERS.BANDWIDTH_STATS_CONTROLLER}/${CONTROLLERS.BANDWIDTH_STATS_USER_IPS_ROUTE}/${CONTROLLERS.BANDWIDTH_STATS_ROUTES.USER_IPS.GET_RESULT(jobId)}`,
|
|
306
|
-
},
|
|
307
303
|
LEGACY: {
|
|
308
304
|
NODES: {
|
|
309
305
|
GET_USERS: (uuid) => `${exports.ROOT}/${CONTROLLERS.BANDWIDTH_STATS_CONTROLLER}/${CONTROLLERS.BANDWIDTH_STATS_NODES_ROUTE}/${CONTROLLERS.BANDWIDTH_STATS_ROUTES.LEGACY.NODES.GET_USERS(uuid)}`,
|
|
@@ -313,4 +309,9 @@ exports.REST_API = {
|
|
|
313
309
|
},
|
|
314
310
|
},
|
|
315
311
|
},
|
|
312
|
+
IP_CONTROL: {
|
|
313
|
+
FETCH_IPS: (uuid) => `${exports.ROOT}/${CONTROLLERS.IP_CONTROL_CONTROLLER}/${CONTROLLERS.IP_CONTROL_ROUTES.FETCH_IPS(uuid)}`,
|
|
314
|
+
GET_FETCH_IPS_RESULT: (jobId) => `${exports.ROOT}/${CONTROLLERS.IP_CONTROL_CONTROLLER}/${CONTROLLERS.IP_CONTROL_ROUTES.GET_FETCH_IPS_RESULT(jobId)}`,
|
|
315
|
+
DROP_CONNECTIONS: `${exports.ROOT}/${CONTROLLERS.IP_CONTROL_CONTROLLER}/${CONTROLLERS.IP_CONTROL_ROUTES.DROP_CONNECTIONS}`,
|
|
316
|
+
},
|
|
316
317
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commands/bandwidth-stats/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commands/bandwidth-stats/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
|
|
@@ -16,5 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./legacy"), exports);
|
|
18
18
|
__exportStar(require("./nodes"), exports);
|
|
19
|
-
__exportStar(require("./user-ips"), exports);
|
|
20
19
|
__exportStar(require("./users"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../commands/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../commands/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
|
|
@@ -23,6 +23,7 @@ __exportStar(require("./hosts"), exports);
|
|
|
23
23
|
__exportStar(require("./hwid"), exports);
|
|
24
24
|
__exportStar(require("./infra-billing"), exports);
|
|
25
25
|
__exportStar(require("./internal-squads"), exports);
|
|
26
|
+
__exportStar(require("./ip-control"), exports);
|
|
26
27
|
__exportStar(require("./keygen"), exports);
|
|
27
28
|
__exportStar(require("./nodes"), exports);
|
|
28
29
|
__exportStar(require("./passkeys"), exports);
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace DropConnectionsCommand {
|
|
3
|
+
const url: "/api/ip-control/drop-connections";
|
|
4
|
+
const TSQ_url: "/api/ip-control/drop-connections";
|
|
5
|
+
const endpointDetails: import("../../constants").EndpointDetails;
|
|
6
|
+
const DropBySchema: z.ZodDiscriminatedUnion<"by", [z.ZodObject<{
|
|
7
|
+
by: z.ZodLiteral<"userUuids">;
|
|
8
|
+
userUuids: z.ZodArray<z.ZodString, "many">;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
by: "userUuids";
|
|
11
|
+
userUuids: string[];
|
|
12
|
+
}, {
|
|
13
|
+
by: "userUuids";
|
|
14
|
+
userUuids: string[];
|
|
15
|
+
}>, z.ZodObject<{
|
|
16
|
+
by: z.ZodLiteral<"ipAddresses">;
|
|
17
|
+
ipAddresses: z.ZodArray<z.ZodString, "many">;
|
|
18
|
+
}, "strip", z.ZodTypeAny, {
|
|
19
|
+
by: "ipAddresses";
|
|
20
|
+
ipAddresses: string[];
|
|
21
|
+
}, {
|
|
22
|
+
by: "ipAddresses";
|
|
23
|
+
ipAddresses: string[];
|
|
24
|
+
}>]>;
|
|
25
|
+
const TargetNodesSchema: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
|
|
26
|
+
target: z.ZodLiteral<"allNodes">;
|
|
27
|
+
}, "strip", z.ZodTypeAny, {
|
|
28
|
+
target: "allNodes";
|
|
29
|
+
}, {
|
|
30
|
+
target: "allNodes";
|
|
31
|
+
}>, z.ZodObject<{
|
|
32
|
+
target: z.ZodLiteral<"specificNodes">;
|
|
33
|
+
nodeUuids: z.ZodArray<z.ZodString, "many">;
|
|
34
|
+
}, "strip", z.ZodTypeAny, {
|
|
35
|
+
target: "specificNodes";
|
|
36
|
+
nodeUuids: string[];
|
|
37
|
+
}, {
|
|
38
|
+
target: "specificNodes";
|
|
39
|
+
nodeUuids: string[];
|
|
40
|
+
}>]>;
|
|
41
|
+
const RequestSchema: z.ZodObject<{
|
|
42
|
+
dropBy: z.ZodDiscriminatedUnion<"by", [z.ZodObject<{
|
|
43
|
+
by: z.ZodLiteral<"userUuids">;
|
|
44
|
+
userUuids: z.ZodArray<z.ZodString, "many">;
|
|
45
|
+
}, "strip", z.ZodTypeAny, {
|
|
46
|
+
by: "userUuids";
|
|
47
|
+
userUuids: string[];
|
|
48
|
+
}, {
|
|
49
|
+
by: "userUuids";
|
|
50
|
+
userUuids: string[];
|
|
51
|
+
}>, z.ZodObject<{
|
|
52
|
+
by: z.ZodLiteral<"ipAddresses">;
|
|
53
|
+
ipAddresses: z.ZodArray<z.ZodString, "many">;
|
|
54
|
+
}, "strip", z.ZodTypeAny, {
|
|
55
|
+
by: "ipAddresses";
|
|
56
|
+
ipAddresses: string[];
|
|
57
|
+
}, {
|
|
58
|
+
by: "ipAddresses";
|
|
59
|
+
ipAddresses: string[];
|
|
60
|
+
}>]>;
|
|
61
|
+
targetNodes: z.ZodDiscriminatedUnion<"target", [z.ZodObject<{
|
|
62
|
+
target: z.ZodLiteral<"allNodes">;
|
|
63
|
+
}, "strip", z.ZodTypeAny, {
|
|
64
|
+
target: "allNodes";
|
|
65
|
+
}, {
|
|
66
|
+
target: "allNodes";
|
|
67
|
+
}>, z.ZodObject<{
|
|
68
|
+
target: z.ZodLiteral<"specificNodes">;
|
|
69
|
+
nodeUuids: z.ZodArray<z.ZodString, "many">;
|
|
70
|
+
}, "strip", z.ZodTypeAny, {
|
|
71
|
+
target: "specificNodes";
|
|
72
|
+
nodeUuids: string[];
|
|
73
|
+
}, {
|
|
74
|
+
target: "specificNodes";
|
|
75
|
+
nodeUuids: string[];
|
|
76
|
+
}>]>;
|
|
77
|
+
}, "strip", z.ZodTypeAny, {
|
|
78
|
+
dropBy: {
|
|
79
|
+
by: "userUuids";
|
|
80
|
+
userUuids: string[];
|
|
81
|
+
} | {
|
|
82
|
+
by: "ipAddresses";
|
|
83
|
+
ipAddresses: string[];
|
|
84
|
+
};
|
|
85
|
+
targetNodes: {
|
|
86
|
+
target: "allNodes";
|
|
87
|
+
} | {
|
|
88
|
+
target: "specificNodes";
|
|
89
|
+
nodeUuids: string[];
|
|
90
|
+
};
|
|
91
|
+
}, {
|
|
92
|
+
dropBy: {
|
|
93
|
+
by: "userUuids";
|
|
94
|
+
userUuids: string[];
|
|
95
|
+
} | {
|
|
96
|
+
by: "ipAddresses";
|
|
97
|
+
ipAddresses: string[];
|
|
98
|
+
};
|
|
99
|
+
targetNodes: {
|
|
100
|
+
target: "allNodes";
|
|
101
|
+
} | {
|
|
102
|
+
target: "specificNodes";
|
|
103
|
+
nodeUuids: string[];
|
|
104
|
+
};
|
|
105
|
+
}>;
|
|
106
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
107
|
+
const ResponseSchema: z.ZodObject<{
|
|
108
|
+
response: z.ZodObject<{
|
|
109
|
+
eventSent: z.ZodBoolean;
|
|
110
|
+
}, "strip", z.ZodTypeAny, {
|
|
111
|
+
eventSent: boolean;
|
|
112
|
+
}, {
|
|
113
|
+
eventSent: boolean;
|
|
114
|
+
}>;
|
|
115
|
+
}, "strip", z.ZodTypeAny, {
|
|
116
|
+
response: {
|
|
117
|
+
eventSent: boolean;
|
|
118
|
+
};
|
|
119
|
+
}, {
|
|
120
|
+
response: {
|
|
121
|
+
eventSent: boolean;
|
|
122
|
+
};
|
|
123
|
+
}>;
|
|
124
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
125
|
+
}
|
|
126
|
+
//# sourceMappingURL=drop-connections.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drop-connections.command.d.ts","sourceRoot":"","sources":["../../../../commands/ip-control/drop-connections.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,sBAAsB,CAAC;IAC7B,MAAM,GAAG,oCAAuC,CAAC;IACjD,MAAM,OAAO,oCAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,YAAY;;;;;;;;;;;;;;;;;;QAavB,CAAC;IAEI,MAAM,iBAAiB;;;;;;;;;;;;;;;QAY5B,CAAC;IAEI,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAGxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DropConnectionsCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const api_1 = require("../../api");
|
|
6
|
+
const constants_1 = require("../../constants");
|
|
7
|
+
var DropConnectionsCommand;
|
|
8
|
+
(function (DropConnectionsCommand) {
|
|
9
|
+
DropConnectionsCommand.url = api_1.REST_API.IP_CONTROL.DROP_CONNECTIONS;
|
|
10
|
+
DropConnectionsCommand.TSQ_url = DropConnectionsCommand.url;
|
|
11
|
+
DropConnectionsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.IP_CONTROL_ROUTES.DROP_CONNECTIONS, 'post', 'Drop Connections for Users or IPs');
|
|
12
|
+
DropConnectionsCommand.DropBySchema = zod_1.z.discriminatedUnion('by', [
|
|
13
|
+
zod_1.z
|
|
14
|
+
.object({
|
|
15
|
+
by: zod_1.z.literal('userUuids'),
|
|
16
|
+
userUuids: zod_1.z.array(zod_1.z.string().uuid()).min(1),
|
|
17
|
+
})
|
|
18
|
+
.describe('Drop by user UUIDs'),
|
|
19
|
+
zod_1.z
|
|
20
|
+
.object({
|
|
21
|
+
by: zod_1.z.literal('ipAddresses'),
|
|
22
|
+
ipAddresses: zod_1.z.array(zod_1.z.string().ip()).min(1),
|
|
23
|
+
})
|
|
24
|
+
.describe('Drop by IP addresses'),
|
|
25
|
+
]);
|
|
26
|
+
DropConnectionsCommand.TargetNodesSchema = zod_1.z.discriminatedUnion('target', [
|
|
27
|
+
zod_1.z
|
|
28
|
+
.object({
|
|
29
|
+
target: zod_1.z.literal('allNodes'),
|
|
30
|
+
})
|
|
31
|
+
.describe('Target all connected nodes'),
|
|
32
|
+
zod_1.z
|
|
33
|
+
.object({
|
|
34
|
+
target: zod_1.z.literal('specificNodes'),
|
|
35
|
+
nodeUuids: zod_1.z.array(zod_1.z.string().uuid()).min(1),
|
|
36
|
+
})
|
|
37
|
+
.describe('Target specific nodes'),
|
|
38
|
+
]);
|
|
39
|
+
DropConnectionsCommand.RequestSchema = zod_1.z.object({
|
|
40
|
+
dropBy: DropConnectionsCommand.DropBySchema,
|
|
41
|
+
targetNodes: DropConnectionsCommand.TargetNodesSchema,
|
|
42
|
+
});
|
|
43
|
+
DropConnectionsCommand.ResponseSchema = zod_1.z.object({
|
|
44
|
+
response: zod_1.z.object({
|
|
45
|
+
eventSent: zod_1.z.boolean(),
|
|
46
|
+
}),
|
|
47
|
+
});
|
|
48
|
+
})(DropConnectionsCommand || (exports.DropConnectionsCommand = DropConnectionsCommand = {}));
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare namespace
|
|
2
|
+
export declare namespace FetchIpsResultCommand {
|
|
3
3
|
const url: (jobId: string) => string;
|
|
4
4
|
const TSQ_url: string;
|
|
5
|
-
const endpointDetails: import("
|
|
5
|
+
const endpointDetails: import("../../constants").EndpointDetails;
|
|
6
6
|
const RequestSchema: z.ZodObject<{
|
|
7
7
|
jobId: z.ZodString;
|
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -153,4 +153,4 @@ export declare namespace GetUserIpsResultCommand {
|
|
|
153
153
|
}>;
|
|
154
154
|
type Response = z.infer<typeof ResponseSchema>;
|
|
155
155
|
}
|
|
156
|
-
//# sourceMappingURL=
|
|
156
|
+
//# sourceMappingURL=fetch-ips-result.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetch-ips-result.command.d.ts","sourceRoot":"","sources":["../../../../commands/ip-control/fetch-ips-result.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,qBAAqB,CAAC;IAC5B,MAAM,GAAG,2BAA2C,CAAC;IACrD,MAAM,OAAO,QAAgB,CAAC;IAE9B,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAyBzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.FetchIpsResultCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
const api_1 = require("
|
|
6
|
-
const constants_1 = require("
|
|
7
|
-
var
|
|
8
|
-
(function (
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
5
|
+
const api_1 = require("../../api");
|
|
6
|
+
const constants_1 = require("../../constants");
|
|
7
|
+
var FetchIpsResultCommand;
|
|
8
|
+
(function (FetchIpsResultCommand) {
|
|
9
|
+
FetchIpsResultCommand.url = api_1.REST_API.IP_CONTROL.GET_FETCH_IPS_RESULT;
|
|
10
|
+
FetchIpsResultCommand.TSQ_url = FetchIpsResultCommand.url(':jobId');
|
|
11
|
+
FetchIpsResultCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.IP_CONTROL_ROUTES.GET_FETCH_IPS_RESULT(':jobId'), 'get', 'Get IP List Result by Job ID');
|
|
12
|
+
FetchIpsResultCommand.RequestSchema = zod_1.z.object({
|
|
13
13
|
jobId: zod_1.z.string(),
|
|
14
14
|
});
|
|
15
|
-
|
|
15
|
+
FetchIpsResultCommand.ResponseSchema = zod_1.z.object({
|
|
16
16
|
response: zod_1.z.object({
|
|
17
17
|
isCompleted: zod_1.z.boolean(),
|
|
18
18
|
isFailed: zod_1.z.boolean(),
|
|
@@ -36,4 +36,4 @@ var GetUserIpsResultCommand;
|
|
|
36
36
|
.nullable(),
|
|
37
37
|
}),
|
|
38
38
|
});
|
|
39
|
-
})(
|
|
39
|
+
})(FetchIpsResultCommand || (exports.FetchIpsResultCommand = FetchIpsResultCommand = {}));
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare namespace
|
|
2
|
+
export declare namespace FetchIpsCommand {
|
|
3
3
|
const url: (uuid: string) => string;
|
|
4
4
|
const TSQ_url: string;
|
|
5
|
-
const endpointDetails: import("
|
|
5
|
+
const endpointDetails: import("../../constants").EndpointDetails;
|
|
6
6
|
const RequestSchema: z.ZodObject<{
|
|
7
7
|
uuid: z.ZodString;
|
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -30,4 +30,4 @@ export declare namespace CreateUserIpsJobCommand {
|
|
|
30
30
|
}>;
|
|
31
31
|
type Response = z.infer<typeof ResponseSchema>;
|
|
32
32
|
}
|
|
33
|
-
//# sourceMappingURL=
|
|
33
|
+
//# sourceMappingURL=fetch-ips.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fetch-ips.command.d.ts","sourceRoot":"","sources":["../../../../commands/ip-control/fetch-ips.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,eAAe,CAAC;IACtB,MAAM,GAAG,0BAAgC,CAAC;IAC1C,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FetchIpsCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const api_1 = require("../../api");
|
|
6
|
+
const constants_1 = require("../../constants");
|
|
7
|
+
var FetchIpsCommand;
|
|
8
|
+
(function (FetchIpsCommand) {
|
|
9
|
+
FetchIpsCommand.url = api_1.REST_API.IP_CONTROL.FETCH_IPS;
|
|
10
|
+
FetchIpsCommand.TSQ_url = FetchIpsCommand.url(':uuid');
|
|
11
|
+
FetchIpsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.IP_CONTROL_ROUTES.FETCH_IPS(':uuid'), 'post', 'Request IP List for User');
|
|
12
|
+
FetchIpsCommand.RequestSchema = zod_1.z.object({
|
|
13
|
+
uuid: zod_1.z.string().uuid(),
|
|
14
|
+
});
|
|
15
|
+
FetchIpsCommand.ResponseSchema = zod_1.z.object({
|
|
16
|
+
response: zod_1.z.object({
|
|
17
|
+
jobId: zod_1.z.string(),
|
|
18
|
+
}),
|
|
19
|
+
});
|
|
20
|
+
})(FetchIpsCommand || (exports.FetchIpsCommand = FetchIpsCommand = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commands/ip-control/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qBAAqB,CAAC"}
|
package/build/{frontend/commands/bandwidth-stats/user-ips → backend/commands/ip-control}/index.js
RENAMED
|
@@ -14,5 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./
|
|
18
|
-
__exportStar(require("./
|
|
17
|
+
__exportStar(require("./drop-connections.command"), exports);
|
|
18
|
+
__exportStar(require("./fetch-ips-result.command"), exports);
|
|
19
|
+
__exportStar(require("./fetch-ips.command"), exports);
|
|
@@ -1129,5 +1129,10 @@ export declare const ERRORS: {
|
|
|
1129
1129
|
readonly message: "Job result fetch failed or job not found";
|
|
1130
1130
|
readonly httpCode: 404;
|
|
1131
1131
|
};
|
|
1132
|
+
readonly CONNECTED_NODES_NOT_FOUND: {
|
|
1133
|
+
readonly code: "A219";
|
|
1134
|
+
readonly message: "Connected nodes not found";
|
|
1135
|
+
readonly httpCode: 404;
|
|
1136
|
+
};
|
|
1132
1137
|
};
|
|
1133
1138
|
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../constants/errors/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA0rBN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0G3B,CAAC"}
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BANDWIDTH_STATS_ROUTES = exports.
|
|
3
|
+
exports.BANDWIDTH_STATS_ROUTES = exports.BANDWIDTH_STATS_USERS_CONTROLLER = exports.BANDWIDTH_STATS_NODES_CONTROLLER = exports.BANDWIDTH_STATS_USERS_ROUTE = exports.BANDWIDTH_STATS_NODES_ROUTE = exports.BANDWIDTH_STATS_CONTROLLER = void 0;
|
|
4
4
|
exports.BANDWIDTH_STATS_CONTROLLER = 'bandwidth-stats';
|
|
5
5
|
exports.BANDWIDTH_STATS_NODES_ROUTE = 'nodes';
|
|
6
6
|
exports.BANDWIDTH_STATS_USERS_ROUTE = 'users';
|
|
7
|
-
exports.BANDWIDTH_STATS_USER_IPS_ROUTE = 'user-ips';
|
|
8
7
|
exports.BANDWIDTH_STATS_NODES_CONTROLLER = `${exports.BANDWIDTH_STATS_CONTROLLER}/${exports.BANDWIDTH_STATS_NODES_ROUTE}`;
|
|
9
8
|
exports.BANDWIDTH_STATS_USERS_CONTROLLER = `${exports.BANDWIDTH_STATS_CONTROLLER}/${exports.BANDWIDTH_STATS_USERS_ROUTE}`;
|
|
10
|
-
exports.BANDWIDTH_STATS_USER_IPS_CONTROLLER = `${exports.BANDWIDTH_STATS_CONTROLLER}/${exports.BANDWIDTH_STATS_USER_IPS_ROUTE}`;
|
|
11
9
|
// Variants:
|
|
12
10
|
// 1. Nodes -> Metrics
|
|
13
11
|
// 2. Nodes -> Management -> Show usage (!need legacy)
|
|
@@ -25,12 +23,6 @@ exports.BANDWIDTH_STATS_ROUTES = {
|
|
|
25
23
|
// GET /bandwidth-stats/users/:userUuid –– Users -> User -> Show Usage
|
|
26
24
|
GET_BY_UUID: (uuid) => `${uuid}`,
|
|
27
25
|
},
|
|
28
|
-
USER_IPS: {
|
|
29
|
-
// POST /bandwidth-stats/user-ips/:userUuid — create job
|
|
30
|
-
CREATE: (uuid) => `${uuid}`,
|
|
31
|
-
// GET /bandwidth-stats/user-ips/result/:jobId — get job result
|
|
32
|
-
GET_RESULT: (jobId) => `result/${jobId}`,
|
|
33
|
-
},
|
|
34
26
|
LEGACY: {
|
|
35
27
|
NODES: {
|
|
36
28
|
// GET /bandwidth-stats/nodes/:nodeUuid/users/legacy –– Nodes -> Management -> Show usage (legacy)
|
|
@@ -23,6 +23,7 @@ __exportStar(require("./hosts"), exports);
|
|
|
23
23
|
__exportStar(require("./hwid"), exports);
|
|
24
24
|
__exportStar(require("./infra-billing"), exports);
|
|
25
25
|
__exportStar(require("./internal-squads"), exports);
|
|
26
|
+
__exportStar(require("./ip-control"), exports);
|
|
26
27
|
__exportStar(require("./keygen"), exports);
|
|
27
28
|
__exportStar(require("./nodes"), exports);
|
|
28
29
|
__exportStar(require("./passkeys"), exports);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IP_CONTROL_ROUTES = exports.IP_CONTROL_CONTROLLER = void 0;
|
|
4
|
+
exports.IP_CONTROL_CONTROLLER = 'ip-control';
|
|
5
|
+
exports.IP_CONTROL_ROUTES = {
|
|
6
|
+
// POST /ip-control/fetch-ips/:userUuid
|
|
7
|
+
FETCH_IPS: (uuid) => `fetch-ips/${uuid}`,
|
|
8
|
+
// GET /ip-control/fetch-ips/result/:jobId
|
|
9
|
+
GET_FETCH_IPS_RESULT: (jobId) => `fetch-ips/result/${jobId}`,
|
|
10
|
+
// POST /ip-control/drop-connections
|
|
11
|
+
DROP_CONNECTIONS: 'drop-connections',
|
|
12
|
+
};
|
|
@@ -42,6 +42,10 @@ exports.CONTROLLERS_INFO = {
|
|
|
42
42
|
tag: 'Bandwidth Stats Controller',
|
|
43
43
|
description: '',
|
|
44
44
|
},
|
|
45
|
+
IP_CONTROL: {
|
|
46
|
+
tag: 'IP Management Controller',
|
|
47
|
+
description: 'Management of IP addresses and connections.',
|
|
48
|
+
},
|
|
45
49
|
CONFIG_PROFILES: {
|
|
46
50
|
tag: 'Config Profiles Controller',
|
|
47
51
|
description: 'Management of Config Profiles.',
|
|
@@ -300,10 +300,6 @@ exports.REST_API = {
|
|
|
300
300
|
USERS: {
|
|
301
301
|
GET_BY_UUID: (uuid) => `${exports.ROOT}/${CONTROLLERS.BANDWIDTH_STATS_CONTROLLER}/${CONTROLLERS.BANDWIDTH_STATS_USERS_ROUTE}/${CONTROLLERS.BANDWIDTH_STATS_ROUTES.USERS.GET_BY_UUID(uuid)}`,
|
|
302
302
|
},
|
|
303
|
-
USER_IPS: {
|
|
304
|
-
CREATE: (uuid) => `${exports.ROOT}/${CONTROLLERS.BANDWIDTH_STATS_CONTROLLER}/${CONTROLLERS.BANDWIDTH_STATS_USER_IPS_ROUTE}/${CONTROLLERS.BANDWIDTH_STATS_ROUTES.USER_IPS.CREATE(uuid)}`,
|
|
305
|
-
GET_RESULT: (jobId) => `${exports.ROOT}/${CONTROLLERS.BANDWIDTH_STATS_CONTROLLER}/${CONTROLLERS.BANDWIDTH_STATS_USER_IPS_ROUTE}/${CONTROLLERS.BANDWIDTH_STATS_ROUTES.USER_IPS.GET_RESULT(jobId)}`,
|
|
306
|
-
},
|
|
307
303
|
LEGACY: {
|
|
308
304
|
NODES: {
|
|
309
305
|
GET_USERS: (uuid) => `${exports.ROOT}/${CONTROLLERS.BANDWIDTH_STATS_CONTROLLER}/${CONTROLLERS.BANDWIDTH_STATS_NODES_ROUTE}/${CONTROLLERS.BANDWIDTH_STATS_ROUTES.LEGACY.NODES.GET_USERS(uuid)}`,
|
|
@@ -313,4 +309,9 @@ exports.REST_API = {
|
|
|
313
309
|
},
|
|
314
310
|
},
|
|
315
311
|
},
|
|
312
|
+
IP_CONTROL: {
|
|
313
|
+
FETCH_IPS: (uuid) => `${exports.ROOT}/${CONTROLLERS.IP_CONTROL_CONTROLLER}/${CONTROLLERS.IP_CONTROL_ROUTES.FETCH_IPS(uuid)}`,
|
|
314
|
+
GET_FETCH_IPS_RESULT: (jobId) => `${exports.ROOT}/${CONTROLLERS.IP_CONTROL_CONTROLLER}/${CONTROLLERS.IP_CONTROL_ROUTES.GET_FETCH_IPS_RESULT(jobId)}`,
|
|
315
|
+
DROP_CONNECTIONS: `${exports.ROOT}/${CONTROLLERS.IP_CONTROL_CONTROLLER}/${CONTROLLERS.IP_CONTROL_ROUTES.DROP_CONNECTIONS}`,
|
|
316
|
+
},
|
|
316
317
|
};
|
|
@@ -16,5 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./legacy"), exports);
|
|
18
18
|
__exportStar(require("./nodes"), exports);
|
|
19
|
-
__exportStar(require("./user-ips"), exports);
|
|
20
19
|
__exportStar(require("./users"), exports);
|
|
@@ -23,6 +23,7 @@ __exportStar(require("./hosts"), exports);
|
|
|
23
23
|
__exportStar(require("./hwid"), exports);
|
|
24
24
|
__exportStar(require("./infra-billing"), exports);
|
|
25
25
|
__exportStar(require("./internal-squads"), exports);
|
|
26
|
+
__exportStar(require("./ip-control"), exports);
|
|
26
27
|
__exportStar(require("./keygen"), exports);
|
|
27
28
|
__exportStar(require("./nodes"), exports);
|
|
28
29
|
__exportStar(require("./passkeys"), exports);
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DropConnectionsCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const api_1 = require("../../api");
|
|
6
|
+
const constants_1 = require("../../constants");
|
|
7
|
+
var DropConnectionsCommand;
|
|
8
|
+
(function (DropConnectionsCommand) {
|
|
9
|
+
DropConnectionsCommand.url = api_1.REST_API.IP_CONTROL.DROP_CONNECTIONS;
|
|
10
|
+
DropConnectionsCommand.TSQ_url = DropConnectionsCommand.url;
|
|
11
|
+
DropConnectionsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.IP_CONTROL_ROUTES.DROP_CONNECTIONS, 'post', 'Drop Connections for Users or IPs');
|
|
12
|
+
DropConnectionsCommand.DropBySchema = zod_1.z.discriminatedUnion('by', [
|
|
13
|
+
zod_1.z
|
|
14
|
+
.object({
|
|
15
|
+
by: zod_1.z.literal('userUuids'),
|
|
16
|
+
userUuids: zod_1.z.array(zod_1.z.string().uuid()).min(1),
|
|
17
|
+
})
|
|
18
|
+
.describe('Drop by user UUIDs'),
|
|
19
|
+
zod_1.z
|
|
20
|
+
.object({
|
|
21
|
+
by: zod_1.z.literal('ipAddresses'),
|
|
22
|
+
ipAddresses: zod_1.z.array(zod_1.z.string().ip()).min(1),
|
|
23
|
+
})
|
|
24
|
+
.describe('Drop by IP addresses'),
|
|
25
|
+
]);
|
|
26
|
+
DropConnectionsCommand.TargetNodesSchema = zod_1.z.discriminatedUnion('target', [
|
|
27
|
+
zod_1.z
|
|
28
|
+
.object({
|
|
29
|
+
target: zod_1.z.literal('allNodes'),
|
|
30
|
+
})
|
|
31
|
+
.describe('Target all connected nodes'),
|
|
32
|
+
zod_1.z
|
|
33
|
+
.object({
|
|
34
|
+
target: zod_1.z.literal('specificNodes'),
|
|
35
|
+
nodeUuids: zod_1.z.array(zod_1.z.string().uuid()).min(1),
|
|
36
|
+
})
|
|
37
|
+
.describe('Target specific nodes'),
|
|
38
|
+
]);
|
|
39
|
+
DropConnectionsCommand.RequestSchema = zod_1.z.object({
|
|
40
|
+
dropBy: DropConnectionsCommand.DropBySchema,
|
|
41
|
+
targetNodes: DropConnectionsCommand.TargetNodesSchema,
|
|
42
|
+
});
|
|
43
|
+
DropConnectionsCommand.ResponseSchema = zod_1.z.object({
|
|
44
|
+
response: zod_1.z.object({
|
|
45
|
+
eventSent: zod_1.z.boolean(),
|
|
46
|
+
}),
|
|
47
|
+
});
|
|
48
|
+
})(DropConnectionsCommand || (exports.DropConnectionsCommand = DropConnectionsCommand = {}));
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.FetchIpsResultCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
const api_1 = require("
|
|
6
|
-
const constants_1 = require("
|
|
7
|
-
var
|
|
8
|
-
(function (
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
5
|
+
const api_1 = require("../../api");
|
|
6
|
+
const constants_1 = require("../../constants");
|
|
7
|
+
var FetchIpsResultCommand;
|
|
8
|
+
(function (FetchIpsResultCommand) {
|
|
9
|
+
FetchIpsResultCommand.url = api_1.REST_API.IP_CONTROL.GET_FETCH_IPS_RESULT;
|
|
10
|
+
FetchIpsResultCommand.TSQ_url = FetchIpsResultCommand.url(':jobId');
|
|
11
|
+
FetchIpsResultCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.IP_CONTROL_ROUTES.GET_FETCH_IPS_RESULT(':jobId'), 'get', 'Get IP List Result by Job ID');
|
|
12
|
+
FetchIpsResultCommand.RequestSchema = zod_1.z.object({
|
|
13
13
|
jobId: zod_1.z.string(),
|
|
14
14
|
});
|
|
15
|
-
|
|
15
|
+
FetchIpsResultCommand.ResponseSchema = zod_1.z.object({
|
|
16
16
|
response: zod_1.z.object({
|
|
17
17
|
isCompleted: zod_1.z.boolean(),
|
|
18
18
|
isFailed: zod_1.z.boolean(),
|
|
@@ -36,4 +36,4 @@ var GetUserIpsResultCommand;
|
|
|
36
36
|
.nullable(),
|
|
37
37
|
}),
|
|
38
38
|
});
|
|
39
|
-
})(
|
|
39
|
+
})(FetchIpsResultCommand || (exports.FetchIpsResultCommand = FetchIpsResultCommand = {}));
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FetchIpsCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const api_1 = require("../../api");
|
|
6
|
+
const constants_1 = require("../../constants");
|
|
7
|
+
var FetchIpsCommand;
|
|
8
|
+
(function (FetchIpsCommand) {
|
|
9
|
+
FetchIpsCommand.url = api_1.REST_API.IP_CONTROL.FETCH_IPS;
|
|
10
|
+
FetchIpsCommand.TSQ_url = FetchIpsCommand.url(':uuid');
|
|
11
|
+
FetchIpsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.IP_CONTROL_ROUTES.FETCH_IPS(':uuid'), 'post', 'Request IP List for User');
|
|
12
|
+
FetchIpsCommand.RequestSchema = zod_1.z.object({
|
|
13
|
+
uuid: zod_1.z.string().uuid(),
|
|
14
|
+
});
|
|
15
|
+
FetchIpsCommand.ResponseSchema = zod_1.z.object({
|
|
16
|
+
response: zod_1.z.object({
|
|
17
|
+
jobId: zod_1.z.string(),
|
|
18
|
+
}),
|
|
19
|
+
});
|
|
20
|
+
})(FetchIpsCommand || (exports.FetchIpsCommand = FetchIpsCommand = {}));
|
package/build/{backend/commands/bandwidth-stats/user-ips → frontend/commands/ip-control}/index.js
RENAMED
|
@@ -14,5 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./
|
|
18
|
-
__exportStar(require("./
|
|
17
|
+
__exportStar(require("./drop-connections.command"), exports);
|
|
18
|
+
__exportStar(require("./fetch-ips-result.command"), exports);
|
|
19
|
+
__exportStar(require("./fetch-ips.command"), exports);
|
package/package.json
CHANGED
package/build/backend/commands/bandwidth-stats/user-ips/create-user-ips-job.command.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"create-user-ips-job.command.d.ts","sourceRoot":"","sources":["../../../../../commands/bandwidth-stats/user-ips/create-user-ips-job.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,uBAAuB,CAAC;IAC9B,MAAM,GAAG,0BAA2C,CAAC;IACrD,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CreateUserIpsJobCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const api_1 = require("../../../api");
|
|
6
|
-
const constants_1 = require("../../../constants");
|
|
7
|
-
var CreateUserIpsJobCommand;
|
|
8
|
-
(function (CreateUserIpsJobCommand) {
|
|
9
|
-
CreateUserIpsJobCommand.url = api_1.REST_API.BANDWIDTH_STATS.USER_IPS.CREATE;
|
|
10
|
-
CreateUserIpsJobCommand.TSQ_url = CreateUserIpsJobCommand.url(':uuid');
|
|
11
|
-
CreateUserIpsJobCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.BANDWIDTH_STATS_ROUTES.USER_IPS.CREATE(':uuid'), 'post', 'Create User IPs Job');
|
|
12
|
-
CreateUserIpsJobCommand.RequestSchema = zod_1.z.object({
|
|
13
|
-
uuid: zod_1.z.string().uuid(),
|
|
14
|
-
});
|
|
15
|
-
CreateUserIpsJobCommand.ResponseSchema = zod_1.z.object({
|
|
16
|
-
response: zod_1.z.object({
|
|
17
|
-
jobId: zod_1.z.string(),
|
|
18
|
-
}),
|
|
19
|
-
});
|
|
20
|
-
})(CreateUserIpsJobCommand || (exports.CreateUserIpsJobCommand = CreateUserIpsJobCommand = {}));
|
package/build/backend/commands/bandwidth-stats/user-ips/get-user-ips-result.command.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-user-ips-result.command.d.ts","sourceRoot":"","sources":["../../../../../commands/bandwidth-stats/user-ips/get-user-ips-result.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,uBAAuB,CAAC;IAC9B,MAAM,GAAG,2BAA+C,CAAC;IACzD,MAAM,OAAO,QAAgB,CAAC;IAE9B,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAyBzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../commands/bandwidth-stats/user-ips/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+BAA+B,CAAC"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CreateUserIpsJobCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const api_1 = require("../../../api");
|
|
6
|
-
const constants_1 = require("../../../constants");
|
|
7
|
-
var CreateUserIpsJobCommand;
|
|
8
|
-
(function (CreateUserIpsJobCommand) {
|
|
9
|
-
CreateUserIpsJobCommand.url = api_1.REST_API.BANDWIDTH_STATS.USER_IPS.CREATE;
|
|
10
|
-
CreateUserIpsJobCommand.TSQ_url = CreateUserIpsJobCommand.url(':uuid');
|
|
11
|
-
CreateUserIpsJobCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.BANDWIDTH_STATS_ROUTES.USER_IPS.CREATE(':uuid'), 'post', 'Create User IPs Job');
|
|
12
|
-
CreateUserIpsJobCommand.RequestSchema = zod_1.z.object({
|
|
13
|
-
uuid: zod_1.z.string().uuid(),
|
|
14
|
-
});
|
|
15
|
-
CreateUserIpsJobCommand.ResponseSchema = zod_1.z.object({
|
|
16
|
-
response: zod_1.z.object({
|
|
17
|
-
jobId: zod_1.z.string(),
|
|
18
|
-
}),
|
|
19
|
-
});
|
|
20
|
-
})(CreateUserIpsJobCommand || (exports.CreateUserIpsJobCommand = CreateUserIpsJobCommand = {}));
|