@remnawave/backend-contract 2.9.2 → 2.9.3
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/connections.d.ts +9 -0
- package/build/backend/api/controllers/connections.d.ts.map +1 -0
- package/build/backend/api/controllers/connections.js +16 -0
- package/build/backend/api/controllers/index.d.ts +1 -1
- package/build/backend/api/controllers/index.d.ts.map +1 -1
- package/build/backend/api/controllers/index.js +1 -1
- package/build/backend/api/controllers-info.d.ts +4 -4
- package/build/backend/api/controllers-info.js +4 -4
- package/build/backend/api/routes.d.ts +6 -6
- package/build/backend/api/routes.d.ts.map +1 -1
- package/build/backend/api/routes.js +6 -6
- package/build/backend/commands/{ip-control/fetch-users-ips-result.command.d.ts → connections/connections-by-node-result.command.d.ts} +2 -2
- package/build/backend/commands/connections/connections-by-node-result.command.d.ts.map +1 -0
- package/build/backend/commands/{ip-control/fetch-users-ips-result.command.js → connections/connections-by-node-result.command.js} +9 -9
- package/build/backend/commands/{ip-control/fetch-users-ips.command.d.ts → connections/connections-by-node.command.d.ts} +3 -3
- package/build/backend/commands/connections/connections-by-node.command.d.ts.map +1 -0
- package/build/backend/commands/connections/connections-by-node.command.js +20 -0
- package/build/backend/commands/{ip-control/fetch-ips-result.command.d.ts → connections/connections-by-user-result.command.d.ts} +2 -2
- package/build/backend/commands/connections/connections-by-user-result.command.d.ts.map +1 -0
- package/build/{frontend/commands/ip-control/fetch-ips-result.command.js → backend/commands/connections/connections-by-user-result.command.js} +9 -9
- package/build/backend/commands/{ip-control/fetch-ips.command.d.ts → connections/connections-by-user.command.d.ts} +2 -2
- package/build/backend/commands/connections/connections-by-user.command.d.ts.map +1 -0
- package/build/backend/commands/connections/connections-by-user.command.js +20 -0
- package/build/backend/commands/{ip-control → connections}/drop-connections.command.d.ts +2 -2
- package/build/backend/commands/connections/drop-connections.command.d.ts.map +1 -0
- package/build/backend/commands/{ip-control → connections}/drop-connections.command.js +2 -2
- package/build/backend/commands/connections/index.d.ts +6 -0
- package/build/backend/commands/connections/index.d.ts.map +1 -0
- package/build/backend/commands/{ip-control → connections}/index.js +4 -4
- package/build/backend/commands/index.d.ts +1 -1
- package/build/backend/commands/index.d.ts.map +1 -1
- package/build/backend/commands/index.js +1 -1
- package/build/frontend/api/controllers/connections.js +16 -0
- package/build/frontend/api/controllers/index.js +1 -1
- package/build/frontend/api/controllers-info.js +4 -4
- package/build/frontend/api/routes.js +6 -6
- package/build/frontend/commands/{ip-control/fetch-users-ips-result.command.js → connections/connections-by-node-result.command.js} +9 -9
- package/build/frontend/commands/connections/connections-by-node.command.js +20 -0
- package/build/{backend/commands/ip-control/fetch-ips-result.command.js → frontend/commands/connections/connections-by-user-result.command.js} +9 -9
- package/build/frontend/commands/connections/connections-by-user.command.js +20 -0
- package/build/frontend/commands/{ip-control → connections}/drop-connections.command.js +2 -2
- package/build/frontend/commands/{ip-control → connections}/index.js +4 -4
- package/build/frontend/commands/index.js +1 -1
- package/package.json +1 -1
- package/build/backend/api/controllers/ip-control.d.ts +0 -9
- package/build/backend/api/controllers/ip-control.d.ts.map +0 -1
- package/build/backend/api/controllers/ip-control.js +0 -16
- package/build/backend/commands/ip-control/drop-connections.command.d.ts.map +0 -1
- package/build/backend/commands/ip-control/fetch-ips-result.command.d.ts.map +0 -1
- package/build/backend/commands/ip-control/fetch-ips.command.d.ts.map +0 -1
- package/build/backend/commands/ip-control/fetch-ips.command.js +0 -20
- package/build/backend/commands/ip-control/fetch-users-ips-result.command.d.ts.map +0 -1
- package/build/backend/commands/ip-control/fetch-users-ips.command.d.ts.map +0 -1
- package/build/backend/commands/ip-control/fetch-users-ips.command.js +0 -20
- package/build/backend/commands/ip-control/index.d.ts +0 -6
- package/build/backend/commands/ip-control/index.d.ts.map +0 -1
- package/build/frontend/api/controllers/ip-control.js +0 -16
- package/build/frontend/commands/ip-control/fetch-ips.command.js +0 -20
- package/build/frontend/commands/ip-control/fetch-users-ips.command.js +0 -20
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const CONNECTIONS_CONTROLLER: "connections";
|
|
2
|
+
export declare const CONNECTIONS_ROUTES: {
|
|
3
|
+
readonly CONNECTIONS_BY_USER: (uuid: string) => string;
|
|
4
|
+
readonly CONNECTIONS_BY_USER_RESULT: (jobId: string) => string;
|
|
5
|
+
readonly CONNECTIONS_BY_NODE: (uuid: string) => string;
|
|
6
|
+
readonly CONNECTIONS_BY_NODE_RESULT: (jobId: string) => string;
|
|
7
|
+
readonly DROP_CONNECTIONS: "drop";
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=connections.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connections.d.ts","sourceRoot":"","sources":["../../../../api/controllers/connections.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB,EAAG,aAAsB,CAAC;AAE7D,eAAO,MAAM,kBAAkB;yCAEC,MAAM;iDAEE,MAAM;yCAGd,MAAM;iDAEE,MAAM;;CAIpC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CONNECTIONS_ROUTES = exports.CONNECTIONS_CONTROLLER = void 0;
|
|
4
|
+
exports.CONNECTIONS_CONTROLLER = 'connections';
|
|
5
|
+
exports.CONNECTIONS_ROUTES = {
|
|
6
|
+
// POST
|
|
7
|
+
CONNECTIONS_BY_USER: (uuid) => `by-user/${uuid}`,
|
|
8
|
+
// GET
|
|
9
|
+
CONNECTIONS_BY_USER_RESULT: (jobId) => `by-user/${jobId}`,
|
|
10
|
+
// POST
|
|
11
|
+
CONNECTIONS_BY_NODE: (uuid) => `by-node/${uuid}`,
|
|
12
|
+
// GET
|
|
13
|
+
CONNECTIONS_BY_NODE_RESULT: (jobId) => `by-node/${jobId}`,
|
|
14
|
+
// POST
|
|
15
|
+
DROP_CONNECTIONS: 'drop',
|
|
16
|
+
};
|
|
@@ -7,7 +7,7 @@ export * from './hosts';
|
|
|
7
7
|
export * from './hwid';
|
|
8
8
|
export * from './infra-billing';
|
|
9
9
|
export * from './internal-squads';
|
|
10
|
-
export * from './
|
|
10
|
+
export * from './connections';
|
|
11
11
|
export * from './keygen';
|
|
12
12
|
export * from './metadata';
|
|
13
13
|
export * from './node-plugins';
|
|
@@ -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,
|
|
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,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,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,7 +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("./
|
|
26
|
+
__exportStar(require("./connections"), exports);
|
|
27
27
|
__exportStar(require("./keygen"), exports);
|
|
28
28
|
__exportStar(require("./metadata"), exports);
|
|
29
29
|
__exportStar(require("./node-plugins"), exports);
|
|
@@ -54,10 +54,10 @@ export declare const CONTROLLERS_INFO: {
|
|
|
54
54
|
readonly description: "";
|
|
55
55
|
readonly resource: "bandwidth-stats";
|
|
56
56
|
};
|
|
57
|
-
readonly
|
|
58
|
-
readonly tag: "
|
|
59
|
-
readonly description: "Management of
|
|
60
|
-
readonly resource: "
|
|
57
|
+
readonly CONNECTIONS: {
|
|
58
|
+
readonly tag: "Connections Controller";
|
|
59
|
+
readonly description: "Management of connections by user and node.";
|
|
60
|
+
readonly resource: "connections";
|
|
61
61
|
};
|
|
62
62
|
readonly CONFIG_PROFILES: {
|
|
63
63
|
readonly tag: "Config Profiles Controller";
|
|
@@ -57,10 +57,10 @@ exports.CONTROLLERS_INFO = {
|
|
|
57
57
|
description: '',
|
|
58
58
|
resource: 'bandwidth-stats',
|
|
59
59
|
},
|
|
60
|
-
|
|
61
|
-
tag: '
|
|
62
|
-
description: 'Management of
|
|
63
|
-
resource: '
|
|
60
|
+
CONNECTIONS: {
|
|
61
|
+
tag: 'Connections Controller',
|
|
62
|
+
description: 'Management of connections by user and node.',
|
|
63
|
+
resource: 'connections',
|
|
64
64
|
},
|
|
65
65
|
CONFIG_PROFILES: {
|
|
66
66
|
tag: 'Config Profiles Controller',
|
|
@@ -288,12 +288,12 @@ export declare const REST_API: {
|
|
|
288
288
|
};
|
|
289
289
|
};
|
|
290
290
|
};
|
|
291
|
-
readonly
|
|
292
|
-
readonly
|
|
293
|
-
readonly
|
|
294
|
-
readonly
|
|
295
|
-
readonly
|
|
296
|
-
readonly
|
|
291
|
+
readonly CONNECTIONS: {
|
|
292
|
+
readonly CONNECTIONS_BY_USER: (uuid: string) => string;
|
|
293
|
+
readonly CONNECTIONS_BY_USER_RESULT: (jobId: string) => string;
|
|
294
|
+
readonly CONNECTIONS_BY_NODE: (uuid: string) => string;
|
|
295
|
+
readonly CONNECTIONS_BY_NODE_RESULT: (jobId: string) => string;
|
|
296
|
+
readonly DROP_CONNECTIONS: "/api/connections/drop";
|
|
297
297
|
};
|
|
298
298
|
readonly METADATA: {
|
|
299
299
|
readonly NODE: {
|
|
@@ -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,EAAG,SAAkB,CAAC;AAC9C,eAAO,MAAM,cAAc,EAAG,SAAkB,CAAC;AAEjD,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;gCAyBE,MAAM;;;;;;;;;;qCAaD,MAAM;;gCAGX,MAAM;;;;;oCAOF,MAAM;qCAIL,MAAM;qCAIN,MAAM;;2CAKA,MAAM;;;;;;;;;;;;;;gCAkBjB,MAAM;qCAGD,MAAM;0CAED,MAAM;sDAEM,MAAM;;qCAMvB,MAAM;oCAIP,MAAM;2CAIC,MAAM;iDAIA,MAAM;;;8BAOzB,MAAM;6CAES,MAAM;0CAIT,MAAM;;;;;;;;;;;;;;;;;;;;;;kCAyBd,MAAM;uCAED,MAAM;;;;;;qCASR,MAAM;gCAEX,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAmCT,MAAM;;gCAKH,MAAM;;;;;;;;;;;;;;mDAiBa,MAAM;;;;;;;;;0CAYf,MAAM;kCAId,MAAM;6CAIK,MAAM;iDAIF,MAAM;;;6CAMV,MAAM;;qDAKE,MAAM;;;;;;qCAStB,MAAM;gCAIX,MAAM;sDAIgB,MAAM;6DAIC,MAAM;;;;;;;;;;qCAa9B,MAAM;gCAIX,MAAM;0CAII,MAAM;;uCAKT,MAAM;0CAEH,MAAM;;;;;;;;;;yCAWP,MAAM;8CAED,MAAM;;;;6CAMP,MAAM;;;gDAKH,MAAM;;;;;;;;;;;;;;;;qCAiBjB,MAAM;gCAIX,MAAM;;uCAKC,MAAM;0CAEH,MAAM;;;;;;;;;;;6BAYnB,MAAM;;;gCAIH,MAAM;;;;;;;;6BAST,MAAM;;;gCAIH,MAAM;;;;;;;;;;;;;;;;;uCAkBC,MAAM;;;;yCAKJ,MAAM;;;;2CAKJ,MAAM;;;6CAIJ,MAAM;;;;;
|
|
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,EAAG,SAAkB,CAAC;AAC9C,eAAO,MAAM,cAAc,EAAG,SAAkB,CAAC;AAEjD,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;gCAyBE,MAAM;;;;;;;;;;qCAaD,MAAM;;gCAGX,MAAM;;;;;oCAOF,MAAM;qCAIL,MAAM;qCAIN,MAAM;;2CAKA,MAAM;;;;;;;;;;;;;;gCAkBjB,MAAM;qCAGD,MAAM;0CAED,MAAM;sDAEM,MAAM;;qCAMvB,MAAM;oCAIP,MAAM;2CAIC,MAAM;iDAIA,MAAM;;;8BAOzB,MAAM;6CAES,MAAM;0CAIT,MAAM;;;;;;;;;;;;;;;;;;;;;;kCAyBd,MAAM;uCAED,MAAM;;;;;;qCASR,MAAM;gCAEX,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAmCT,MAAM;;gCAKH,MAAM;;;;;;;;;;;;;;mDAiBa,MAAM;;;;;;;;;0CAYf,MAAM;kCAId,MAAM;6CAIK,MAAM;iDAIF,MAAM;;;6CAMV,MAAM;;qDAKE,MAAM;;;;;;qCAStB,MAAM;gCAIX,MAAM;sDAIgB,MAAM;6DAIC,MAAM;;;;;;;;;;qCAa9B,MAAM;gCAIX,MAAM;0CAII,MAAM;;uCAKT,MAAM;0CAEH,MAAM;;;;;;;;;;yCAWP,MAAM;8CAED,MAAM;;;;6CAMP,MAAM;;;gDAKH,MAAM;;;;;;;;;;;;;;;;qCAiBjB,MAAM;gCAIX,MAAM;;uCAKC,MAAM;0CAEH,MAAM;;;;;;;;;;;6BAYnB,MAAM;;;gCAIH,MAAM;;;;;;;;6BAST,MAAM;;;gCAIH,MAAM;;;;;;;;;;;;;;;;;uCAkBC,MAAM;;;;yCAKJ,MAAM;;;;2CAKJ,MAAM;;;6CAIJ,MAAM;;;;;6CAMN,MAAM;qDAEE,MAAM;6CAEd,MAAM;qDAEE,MAAM;;;;;iCAM1B,MAAM;oCAEH,MAAM;;;iCAIT,MAAM;oCAEH,MAAM;;;CAIvB,CAAC"}
|
|
@@ -325,12 +325,12 @@ exports.REST_API = {
|
|
|
325
325
|
},
|
|
326
326
|
},
|
|
327
327
|
},
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
328
|
+
CONNECTIONS: {
|
|
329
|
+
CONNECTIONS_BY_USER: (uuid) => `${exports.ROOT}/${CONTROLLERS.CONNECTIONS_CONTROLLER}/${CONTROLLERS.CONNECTIONS_ROUTES.CONNECTIONS_BY_USER(uuid)}`,
|
|
330
|
+
CONNECTIONS_BY_USER_RESULT: (jobId) => `${exports.ROOT}/${CONTROLLERS.CONNECTIONS_CONTROLLER}/${CONTROLLERS.CONNECTIONS_ROUTES.CONNECTIONS_BY_USER_RESULT(jobId)}`,
|
|
331
|
+
CONNECTIONS_BY_NODE: (uuid) => `${exports.ROOT}/${CONTROLLERS.CONNECTIONS_CONTROLLER}/${CONTROLLERS.CONNECTIONS_ROUTES.CONNECTIONS_BY_NODE(uuid)}`,
|
|
332
|
+
CONNECTIONS_BY_NODE_RESULT: (jobId) => `${exports.ROOT}/${CONTROLLERS.CONNECTIONS_CONTROLLER}/${CONTROLLERS.CONNECTIONS_ROUTES.CONNECTIONS_BY_NODE_RESULT(jobId)}`,
|
|
333
|
+
DROP_CONNECTIONS: `${exports.ROOT}/${CONTROLLERS.CONNECTIONS_CONTROLLER}/${CONTROLLERS.CONNECTIONS_ROUTES.DROP_CONNECTIONS}`,
|
|
334
334
|
},
|
|
335
335
|
METADATA: {
|
|
336
336
|
NODE: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare namespace
|
|
2
|
+
export declare namespace ConnectionsByNodeResultCommand {
|
|
3
3
|
const url: (jobId: string) => string;
|
|
4
4
|
const TSQ_url: string;
|
|
5
5
|
const endpointDetails: import("../../constants").EndpointDetails;
|
|
@@ -128,4 +128,4 @@ export declare namespace FetchUsersIpsResultCommand {
|
|
|
128
128
|
type RequestParam = z.infer<typeof RequestParamSchema>;
|
|
129
129
|
type Response = z.infer<typeof ResponseSchema>;
|
|
130
130
|
}
|
|
131
|
-
//# sourceMappingURL=
|
|
131
|
+
//# sourceMappingURL=connections-by-node-result.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connections-by-node-result.command.d.ts","sourceRoot":"","sources":["../../../../commands/connections/connections-by-node-result.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,8BAA8B,CAAC;IACrC,MAAM,GAAG,2BAAkD,CAAC;IAC5D,MAAM,OAAO,QAAgB,CAAC;IAE9B,MAAM,eAAe,2CAK3B,CAAC;IAEK,MAAM,kBAAkB;;;;;;MAE7B,CAAC;IAEI,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA4BzB,CAAC;IAEH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAC9D,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.ConnectionsByNodeResultCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const api_1 = require("../../api");
|
|
6
6
|
const constants_1 = require("../../constants");
|
|
7
|
-
var
|
|
8
|
-
(function (
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
var ConnectionsByNodeResultCommand;
|
|
8
|
+
(function (ConnectionsByNodeResultCommand) {
|
|
9
|
+
ConnectionsByNodeResultCommand.url = api_1.REST_API.CONNECTIONS.CONNECTIONS_BY_NODE_RESULT;
|
|
10
|
+
ConnectionsByNodeResultCommand.TSQ_url = ConnectionsByNodeResultCommand.url(':jobId');
|
|
11
|
+
ConnectionsByNodeResultCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.CONNECTIONS_ROUTES.CONNECTIONS_BY_NODE_RESULT(':jobId'), 'get', 'Get Connections for Node by Job ID', { scope: 'by-node-result', kind: 'read' });
|
|
12
|
+
ConnectionsByNodeResultCommand.RequestParamSchema = zod_1.z.object({
|
|
13
13
|
jobId: zod_1.z.string(),
|
|
14
14
|
});
|
|
15
|
-
|
|
15
|
+
ConnectionsByNodeResultCommand.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(),
|
|
@@ -37,4 +37,4 @@ var FetchUsersIpsResultCommand;
|
|
|
37
37
|
.nullable(),
|
|
38
38
|
}),
|
|
39
39
|
});
|
|
40
|
-
})(
|
|
40
|
+
})(ConnectionsByNodeResultCommand || (exports.ConnectionsByNodeResultCommand = ConnectionsByNodeResultCommand = {}));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare namespace
|
|
3
|
-
const url: (
|
|
2
|
+
export declare namespace ConnectionsByNodeCommand {
|
|
3
|
+
const url: (uuid: string) => string;
|
|
4
4
|
const TSQ_url: string;
|
|
5
5
|
const endpointDetails: import("../../constants").EndpointDetails;
|
|
6
6
|
const RequestParamSchema: z.ZodObject<{
|
|
@@ -30,4 +30,4 @@ export declare namespace FetchUsersIpsCommand {
|
|
|
30
30
|
type RequestParam = z.infer<typeof RequestParamSchema>;
|
|
31
31
|
type Response = z.infer<typeof ResponseSchema>;
|
|
32
32
|
}
|
|
33
|
-
//# sourceMappingURL=
|
|
33
|
+
//# sourceMappingURL=connections-by-node.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connections-by-node.command.d.ts","sourceRoot":"","sources":["../../../../commands/connections/connections-by-node.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,wBAAwB,CAAC;IAC/B,MAAM,GAAG,0BAA2C,CAAC;IACrD,MAAM,OAAO,QAAmB,CAAC;IAEjC,MAAM,eAAe,2CAK3B,CAAC;IAEK,MAAM,kBAAkB;;;;;;MAE7B,CAAC;IAEI,MAAM,cAAc;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAC9D,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.ConnectionsByNodeCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const api_1 = require("../../api");
|
|
6
|
+
const constants_1 = require("../../constants");
|
|
7
|
+
var ConnectionsByNodeCommand;
|
|
8
|
+
(function (ConnectionsByNodeCommand) {
|
|
9
|
+
ConnectionsByNodeCommand.url = api_1.REST_API.CONNECTIONS.CONNECTIONS_BY_NODE;
|
|
10
|
+
ConnectionsByNodeCommand.TSQ_url = ConnectionsByNodeCommand.url(':nodeUuid');
|
|
11
|
+
ConnectionsByNodeCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.CONNECTIONS_ROUTES.CONNECTIONS_BY_NODE(':nodeUuid'), 'post', 'Request Connections for Node', { scope: 'by-node', kind: 'read' });
|
|
12
|
+
ConnectionsByNodeCommand.RequestParamSchema = zod_1.z.object({
|
|
13
|
+
nodeUuid: zod_1.z.string().uuid().describe('Node UUID'),
|
|
14
|
+
});
|
|
15
|
+
ConnectionsByNodeCommand.ResponseSchema = zod_1.z.object({
|
|
16
|
+
response: zod_1.z.object({
|
|
17
|
+
jobId: zod_1.z.string(),
|
|
18
|
+
}),
|
|
19
|
+
});
|
|
20
|
+
})(ConnectionsByNodeCommand || (exports.ConnectionsByNodeCommand = ConnectionsByNodeCommand = {}));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare namespace
|
|
2
|
+
export declare namespace ConnectionsByUserResultCommand {
|
|
3
3
|
const url: (jobId: string) => string;
|
|
4
4
|
const TSQ_url: string;
|
|
5
5
|
const endpointDetails: import("../../constants").EndpointDetails;
|
|
@@ -186,4 +186,4 @@ export declare namespace FetchIpsResultCommand {
|
|
|
186
186
|
type RequestParam = z.infer<typeof RequestParamSchema>;
|
|
187
187
|
type Response = z.infer<typeof ResponseSchema>;
|
|
188
188
|
}
|
|
189
|
-
//# sourceMappingURL=
|
|
189
|
+
//# sourceMappingURL=connections-by-user-result.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connections-by-user-result.command.d.ts","sourceRoot":"","sources":["../../../../commands/connections/connections-by-user-result.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,8BAA8B,CAAC;IACrC,MAAM,GAAG,2BAAkD,CAAC;IAC5D,MAAM,OAAO,QAAgB,CAAC;IAE9B,MAAM,eAAe,2CAK3B,CAAC;IAEK,MAAM,kBAAkB;;;;;;MAE7B,CAAC;IAEI,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAoCzB,CAAC;IAEH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAC9D,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.ConnectionsByUserResultCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const api_1 = require("../../api");
|
|
6
6
|
const constants_1 = require("../../constants");
|
|
7
|
-
var
|
|
8
|
-
(function (
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
var ConnectionsByUserResultCommand;
|
|
8
|
+
(function (ConnectionsByUserResultCommand) {
|
|
9
|
+
ConnectionsByUserResultCommand.url = api_1.REST_API.CONNECTIONS.CONNECTIONS_BY_USER_RESULT;
|
|
10
|
+
ConnectionsByUserResultCommand.TSQ_url = ConnectionsByUserResultCommand.url(':jobId');
|
|
11
|
+
ConnectionsByUserResultCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.CONNECTIONS_ROUTES.CONNECTIONS_BY_USER_RESULT(':jobId'), 'get', 'Get Connections for User by Job ID', { scope: 'by-user-result', kind: 'read' });
|
|
12
|
+
ConnectionsByUserResultCommand.RequestParamSchema = zod_1.z.object({
|
|
13
13
|
jobId: zod_1.z.string(),
|
|
14
14
|
});
|
|
15
|
-
|
|
15
|
+
ConnectionsByUserResultCommand.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(),
|
|
@@ -45,4 +45,4 @@ var FetchIpsResultCommand;
|
|
|
45
45
|
.nullable(),
|
|
46
46
|
}),
|
|
47
47
|
});
|
|
48
|
-
})(
|
|
48
|
+
})(ConnectionsByUserResultCommand || (exports.ConnectionsByUserResultCommand = ConnectionsByUserResultCommand = {}));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare namespace
|
|
2
|
+
export declare namespace ConnectionsByUserCommand {
|
|
3
3
|
const url: (uuid: string) => string;
|
|
4
4
|
const TSQ_url: string;
|
|
5
5
|
const endpointDetails: import("../../constants").EndpointDetails;
|
|
@@ -30,4 +30,4 @@ export declare namespace FetchIpsCommand {
|
|
|
30
30
|
type RequestParam = z.infer<typeof RequestParamSchema>;
|
|
31
31
|
type Response = z.infer<typeof ResponseSchema>;
|
|
32
32
|
}
|
|
33
|
-
//# sourceMappingURL=
|
|
33
|
+
//# sourceMappingURL=connections-by-user.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connections-by-user.command.d.ts","sourceRoot":"","sources":["../../../../commands/connections/connections-by-user.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,wBAAwB,CAAC;IAC/B,MAAM,GAAG,0BAA2C,CAAC;IACrD,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,eAAe,2CAK3B,CAAC;IAEK,MAAM,kBAAkB;;;;;;MAE7B,CAAC;IAEI,MAAM,cAAc;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAC9D,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.ConnectionsByUserCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const api_1 = require("../../api");
|
|
6
|
+
const constants_1 = require("../../constants");
|
|
7
|
+
var ConnectionsByUserCommand;
|
|
8
|
+
(function (ConnectionsByUserCommand) {
|
|
9
|
+
ConnectionsByUserCommand.url = api_1.REST_API.CONNECTIONS.CONNECTIONS_BY_USER;
|
|
10
|
+
ConnectionsByUserCommand.TSQ_url = ConnectionsByUserCommand.url(':uuid');
|
|
11
|
+
ConnectionsByUserCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.CONNECTIONS_ROUTES.CONNECTIONS_BY_USER(':uuid'), 'post', 'Request Connections for User', { scope: 'by-user', kind: 'read' });
|
|
12
|
+
ConnectionsByUserCommand.RequestParamSchema = zod_1.z.object({
|
|
13
|
+
uuid: zod_1.z.string().uuid().describe('User UUID'),
|
|
14
|
+
});
|
|
15
|
+
ConnectionsByUserCommand.ResponseSchema = zod_1.z.object({
|
|
16
|
+
response: zod_1.z.object({
|
|
17
|
+
jobId: zod_1.z.string(),
|
|
18
|
+
}),
|
|
19
|
+
});
|
|
20
|
+
})(ConnectionsByUserCommand || (exports.ConnectionsByUserCommand = ConnectionsByUserCommand = {}));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare namespace DropConnectionsCommand {
|
|
3
|
-
const url: "/api/
|
|
4
|
-
const TSQ_url: "/api/
|
|
3
|
+
const url: "/api/connections/drop";
|
|
4
|
+
const TSQ_url: "/api/connections/drop";
|
|
5
5
|
const endpointDetails: import("../../constants").EndpointDetails;
|
|
6
6
|
const DropBySchema: z.ZodDiscriminatedUnion<"by", [z.ZodObject<{
|
|
7
7
|
by: z.ZodLiteral<"userUuids">;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drop-connections.command.d.ts","sourceRoot":"","sources":["../../../../commands/connections/drop-connections.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,sBAAsB,CAAC;IAC7B,MAAM,GAAG,yBAAwC,CAAC;IAClD,MAAM,OAAO,yBAAM,CAAC;IAEpB,MAAM,eAAe,2CAK3B,CAAC;IAEK,MAAM,YAAY;;;;;;;;;;;;;;;;;;QAavB,CAAC;IAEI,MAAM,iBAAiB;;;;;;;;;;;;;;;QAY5B,CAAC;IAEI,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAG5B,CAAC;IAEH,KAAY,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;CAC/D"}
|
|
@@ -6,9 +6,9 @@ const api_1 = require("../../api");
|
|
|
6
6
|
const constants_1 = require("../../constants");
|
|
7
7
|
var DropConnectionsCommand;
|
|
8
8
|
(function (DropConnectionsCommand) {
|
|
9
|
-
DropConnectionsCommand.url = api_1.REST_API.
|
|
9
|
+
DropConnectionsCommand.url = api_1.REST_API.CONNECTIONS.DROP_CONNECTIONS;
|
|
10
10
|
DropConnectionsCommand.TSQ_url = DropConnectionsCommand.url;
|
|
11
|
-
DropConnectionsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.
|
|
11
|
+
DropConnectionsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.CONNECTIONS_ROUTES.DROP_CONNECTIONS, 'post', 'Drop Connections for Users or IPs', { scope: 'drop', kind: 'write' });
|
|
12
12
|
DropConnectionsCommand.DropBySchema = zod_1.z.discriminatedUnion('by', [
|
|
13
13
|
zod_1.z
|
|
14
14
|
.object({
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from './drop-connections.command';
|
|
2
|
+
export * from './connections-by-user-result.command';
|
|
3
|
+
export * from './connections-by-user.command';
|
|
4
|
+
export * from './connections-by-node-result.command';
|
|
5
|
+
export * from './connections-by-node.command';
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commands/connections/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sCAAsC,CAAC;AACrD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,sCAAsC,CAAC;AACrD,cAAc,+BAA+B,CAAC"}
|
|
@@ -15,7 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./drop-connections.command"), exports);
|
|
18
|
-
__exportStar(require("./
|
|
19
|
-
__exportStar(require("./
|
|
20
|
-
__exportStar(require("./
|
|
21
|
-
__exportStar(require("./
|
|
18
|
+
__exportStar(require("./connections-by-user-result.command"), exports);
|
|
19
|
+
__exportStar(require("./connections-by-user.command"), exports);
|
|
20
|
+
__exportStar(require("./connections-by-node-result.command"), exports);
|
|
21
|
+
__exportStar(require("./connections-by-node.command"), exports);
|
|
@@ -7,7 +7,7 @@ export * from './hosts';
|
|
|
7
7
|
export * from './hwid';
|
|
8
8
|
export * from './infra-billing';
|
|
9
9
|
export * from './internal-squads';
|
|
10
|
-
export * from './
|
|
10
|
+
export * from './connections';
|
|
11
11
|
export * from './keygen';
|
|
12
12
|
export * from './metadata';
|
|
13
13
|
export * from './node-plugins';
|
|
@@ -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,
|
|
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,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,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,7 +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("./
|
|
26
|
+
__exportStar(require("./connections"), exports);
|
|
27
27
|
__exportStar(require("./keygen"), exports);
|
|
28
28
|
__exportStar(require("./metadata"), exports);
|
|
29
29
|
__exportStar(require("./node-plugins"), exports);
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CONNECTIONS_ROUTES = exports.CONNECTIONS_CONTROLLER = void 0;
|
|
4
|
+
exports.CONNECTIONS_CONTROLLER = 'connections';
|
|
5
|
+
exports.CONNECTIONS_ROUTES = {
|
|
6
|
+
// POST
|
|
7
|
+
CONNECTIONS_BY_USER: (uuid) => `by-user/${uuid}`,
|
|
8
|
+
// GET
|
|
9
|
+
CONNECTIONS_BY_USER_RESULT: (jobId) => `by-user/${jobId}`,
|
|
10
|
+
// POST
|
|
11
|
+
CONNECTIONS_BY_NODE: (uuid) => `by-node/${uuid}`,
|
|
12
|
+
// GET
|
|
13
|
+
CONNECTIONS_BY_NODE_RESULT: (jobId) => `by-node/${jobId}`,
|
|
14
|
+
// POST
|
|
15
|
+
DROP_CONNECTIONS: 'drop',
|
|
16
|
+
};
|
|
@@ -23,7 +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("./
|
|
26
|
+
__exportStar(require("./connections"), exports);
|
|
27
27
|
__exportStar(require("./keygen"), exports);
|
|
28
28
|
__exportStar(require("./metadata"), exports);
|
|
29
29
|
__exportStar(require("./node-plugins"), exports);
|
|
@@ -57,10 +57,10 @@ exports.CONTROLLERS_INFO = {
|
|
|
57
57
|
description: '',
|
|
58
58
|
resource: 'bandwidth-stats',
|
|
59
59
|
},
|
|
60
|
-
|
|
61
|
-
tag: '
|
|
62
|
-
description: 'Management of
|
|
63
|
-
resource: '
|
|
60
|
+
CONNECTIONS: {
|
|
61
|
+
tag: 'Connections Controller',
|
|
62
|
+
description: 'Management of connections by user and node.',
|
|
63
|
+
resource: 'connections',
|
|
64
64
|
},
|
|
65
65
|
CONFIG_PROFILES: {
|
|
66
66
|
tag: 'Config Profiles Controller',
|
|
@@ -325,12 +325,12 @@ exports.REST_API = {
|
|
|
325
325
|
},
|
|
326
326
|
},
|
|
327
327
|
},
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
328
|
+
CONNECTIONS: {
|
|
329
|
+
CONNECTIONS_BY_USER: (uuid) => `${exports.ROOT}/${CONTROLLERS.CONNECTIONS_CONTROLLER}/${CONTROLLERS.CONNECTIONS_ROUTES.CONNECTIONS_BY_USER(uuid)}`,
|
|
330
|
+
CONNECTIONS_BY_USER_RESULT: (jobId) => `${exports.ROOT}/${CONTROLLERS.CONNECTIONS_CONTROLLER}/${CONTROLLERS.CONNECTIONS_ROUTES.CONNECTIONS_BY_USER_RESULT(jobId)}`,
|
|
331
|
+
CONNECTIONS_BY_NODE: (uuid) => `${exports.ROOT}/${CONTROLLERS.CONNECTIONS_CONTROLLER}/${CONTROLLERS.CONNECTIONS_ROUTES.CONNECTIONS_BY_NODE(uuid)}`,
|
|
332
|
+
CONNECTIONS_BY_NODE_RESULT: (jobId) => `${exports.ROOT}/${CONTROLLERS.CONNECTIONS_CONTROLLER}/${CONTROLLERS.CONNECTIONS_ROUTES.CONNECTIONS_BY_NODE_RESULT(jobId)}`,
|
|
333
|
+
DROP_CONNECTIONS: `${exports.ROOT}/${CONTROLLERS.CONNECTIONS_CONTROLLER}/${CONTROLLERS.CONNECTIONS_ROUTES.DROP_CONNECTIONS}`,
|
|
334
334
|
},
|
|
335
335
|
METADATA: {
|
|
336
336
|
NODE: {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.ConnectionsByNodeResultCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const api_1 = require("../../api");
|
|
6
6
|
const constants_1 = require("../../constants");
|
|
7
|
-
var
|
|
8
|
-
(function (
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
var ConnectionsByNodeResultCommand;
|
|
8
|
+
(function (ConnectionsByNodeResultCommand) {
|
|
9
|
+
ConnectionsByNodeResultCommand.url = api_1.REST_API.CONNECTIONS.CONNECTIONS_BY_NODE_RESULT;
|
|
10
|
+
ConnectionsByNodeResultCommand.TSQ_url = ConnectionsByNodeResultCommand.url(':jobId');
|
|
11
|
+
ConnectionsByNodeResultCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.CONNECTIONS_ROUTES.CONNECTIONS_BY_NODE_RESULT(':jobId'), 'get', 'Get Connections for Node by Job ID', { scope: 'by-node-result', kind: 'read' });
|
|
12
|
+
ConnectionsByNodeResultCommand.RequestParamSchema = zod_1.z.object({
|
|
13
13
|
jobId: zod_1.z.string(),
|
|
14
14
|
});
|
|
15
|
-
|
|
15
|
+
ConnectionsByNodeResultCommand.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(),
|
|
@@ -37,4 +37,4 @@ var FetchUsersIpsResultCommand;
|
|
|
37
37
|
.nullable(),
|
|
38
38
|
}),
|
|
39
39
|
});
|
|
40
|
-
})(
|
|
40
|
+
})(ConnectionsByNodeResultCommand || (exports.ConnectionsByNodeResultCommand = ConnectionsByNodeResultCommand = {}));
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConnectionsByNodeCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const api_1 = require("../../api");
|
|
6
|
+
const constants_1 = require("../../constants");
|
|
7
|
+
var ConnectionsByNodeCommand;
|
|
8
|
+
(function (ConnectionsByNodeCommand) {
|
|
9
|
+
ConnectionsByNodeCommand.url = api_1.REST_API.CONNECTIONS.CONNECTIONS_BY_NODE;
|
|
10
|
+
ConnectionsByNodeCommand.TSQ_url = ConnectionsByNodeCommand.url(':nodeUuid');
|
|
11
|
+
ConnectionsByNodeCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.CONNECTIONS_ROUTES.CONNECTIONS_BY_NODE(':nodeUuid'), 'post', 'Request Connections for Node', { scope: 'by-node', kind: 'read' });
|
|
12
|
+
ConnectionsByNodeCommand.RequestParamSchema = zod_1.z.object({
|
|
13
|
+
nodeUuid: zod_1.z.string().uuid().describe('Node UUID'),
|
|
14
|
+
});
|
|
15
|
+
ConnectionsByNodeCommand.ResponseSchema = zod_1.z.object({
|
|
16
|
+
response: zod_1.z.object({
|
|
17
|
+
jobId: zod_1.z.string(),
|
|
18
|
+
}),
|
|
19
|
+
});
|
|
20
|
+
})(ConnectionsByNodeCommand || (exports.ConnectionsByNodeCommand = ConnectionsByNodeCommand = {}));
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.ConnectionsByUserResultCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const api_1 = require("../../api");
|
|
6
6
|
const constants_1 = require("../../constants");
|
|
7
|
-
var
|
|
8
|
-
(function (
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
var ConnectionsByUserResultCommand;
|
|
8
|
+
(function (ConnectionsByUserResultCommand) {
|
|
9
|
+
ConnectionsByUserResultCommand.url = api_1.REST_API.CONNECTIONS.CONNECTIONS_BY_USER_RESULT;
|
|
10
|
+
ConnectionsByUserResultCommand.TSQ_url = ConnectionsByUserResultCommand.url(':jobId');
|
|
11
|
+
ConnectionsByUserResultCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.CONNECTIONS_ROUTES.CONNECTIONS_BY_USER_RESULT(':jobId'), 'get', 'Get Connections for User by Job ID', { scope: 'by-user-result', kind: 'read' });
|
|
12
|
+
ConnectionsByUserResultCommand.RequestParamSchema = zod_1.z.object({
|
|
13
13
|
jobId: zod_1.z.string(),
|
|
14
14
|
});
|
|
15
|
-
|
|
15
|
+
ConnectionsByUserResultCommand.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(),
|
|
@@ -45,4 +45,4 @@ var FetchIpsResultCommand;
|
|
|
45
45
|
.nullable(),
|
|
46
46
|
}),
|
|
47
47
|
});
|
|
48
|
-
})(
|
|
48
|
+
})(ConnectionsByUserResultCommand || (exports.ConnectionsByUserResultCommand = ConnectionsByUserResultCommand = {}));
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConnectionsByUserCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const api_1 = require("../../api");
|
|
6
|
+
const constants_1 = require("../../constants");
|
|
7
|
+
var ConnectionsByUserCommand;
|
|
8
|
+
(function (ConnectionsByUserCommand) {
|
|
9
|
+
ConnectionsByUserCommand.url = api_1.REST_API.CONNECTIONS.CONNECTIONS_BY_USER;
|
|
10
|
+
ConnectionsByUserCommand.TSQ_url = ConnectionsByUserCommand.url(':uuid');
|
|
11
|
+
ConnectionsByUserCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.CONNECTIONS_ROUTES.CONNECTIONS_BY_USER(':uuid'), 'post', 'Request Connections for User', { scope: 'by-user', kind: 'read' });
|
|
12
|
+
ConnectionsByUserCommand.RequestParamSchema = zod_1.z.object({
|
|
13
|
+
uuid: zod_1.z.string().uuid().describe('User UUID'),
|
|
14
|
+
});
|
|
15
|
+
ConnectionsByUserCommand.ResponseSchema = zod_1.z.object({
|
|
16
|
+
response: zod_1.z.object({
|
|
17
|
+
jobId: zod_1.z.string(),
|
|
18
|
+
}),
|
|
19
|
+
});
|
|
20
|
+
})(ConnectionsByUserCommand || (exports.ConnectionsByUserCommand = ConnectionsByUserCommand = {}));
|
|
@@ -6,9 +6,9 @@ const api_1 = require("../../api");
|
|
|
6
6
|
const constants_1 = require("../../constants");
|
|
7
7
|
var DropConnectionsCommand;
|
|
8
8
|
(function (DropConnectionsCommand) {
|
|
9
|
-
DropConnectionsCommand.url = api_1.REST_API.
|
|
9
|
+
DropConnectionsCommand.url = api_1.REST_API.CONNECTIONS.DROP_CONNECTIONS;
|
|
10
10
|
DropConnectionsCommand.TSQ_url = DropConnectionsCommand.url;
|
|
11
|
-
DropConnectionsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.
|
|
11
|
+
DropConnectionsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.CONNECTIONS_ROUTES.DROP_CONNECTIONS, 'post', 'Drop Connections for Users or IPs', { scope: 'drop', kind: 'write' });
|
|
12
12
|
DropConnectionsCommand.DropBySchema = zod_1.z.discriminatedUnion('by', [
|
|
13
13
|
zod_1.z
|
|
14
14
|
.object({
|
|
@@ -15,7 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./drop-connections.command"), exports);
|
|
18
|
-
__exportStar(require("./
|
|
19
|
-
__exportStar(require("./
|
|
20
|
-
__exportStar(require("./
|
|
21
|
-
__exportStar(require("./
|
|
18
|
+
__exportStar(require("./connections-by-user-result.command"), exports);
|
|
19
|
+
__exportStar(require("./connections-by-user.command"), exports);
|
|
20
|
+
__exportStar(require("./connections-by-node-result.command"), exports);
|
|
21
|
+
__exportStar(require("./connections-by-node.command"), exports);
|
|
@@ -23,7 +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("./
|
|
26
|
+
__exportStar(require("./connections"), exports);
|
|
27
27
|
__exportStar(require("./keygen"), exports);
|
|
28
28
|
__exportStar(require("./metadata"), exports);
|
|
29
29
|
__exportStar(require("./node-plugins"), exports);
|
package/package.json
CHANGED
|
@@ -1,9 +0,0 @@
|
|
|
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
|
-
readonly FETCH_USERS_IPS: (nodeUuid: string) => string;
|
|
7
|
-
readonly GET_FETCH_USERS_IPS_RESULT: (jobId: string) => string;
|
|
8
|
-
};
|
|
9
|
-
//# sourceMappingURL=ip-control.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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;;yCAIR,MAAM;iDAEE,MAAM;CACpC,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
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
|
-
// POST /ip-control/fetch-users-ips/:nodeUuid
|
|
13
|
-
FETCH_USERS_IPS: (nodeUuid) => `fetch-users-ips/${nodeUuid}`,
|
|
14
|
-
// GET /ip-control/fetch-users-ips/result/:jobId
|
|
15
|
-
GET_FETCH_USERS_IPS_RESULT: (jobId) => `fetch-users-ips/result/${jobId}`,
|
|
16
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
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,2CAK3B,CAAC;IAEK,MAAM,YAAY;;;;;;;;;;;;;;;;;;QAavB,CAAC;IAEI,MAAM,iBAAiB;;;;;;;;;;;;;;;QAY5B,CAAC;IAEI,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAG5B,CAAC;IAEH,KAAY,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;CAC/D"}
|
|
@@ -1 +0,0 @@
|
|
|
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,2CAK3B,CAAC;IAEK,MAAM,kBAAkB;;;;;;MAE7B,CAAC;IAEI,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAoCzB,CAAC;IAEH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAC9D,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -1 +0,0 @@
|
|
|
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,2CAK3B,CAAC;IAEK,MAAM,kBAAkB;;;;;;MAE7B,CAAC;IAEI,MAAM,cAAc;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAC9D,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.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', { scope: 'fetch-ips', kind: 'read' });
|
|
12
|
-
FetchIpsCommand.RequestParamSchema = zod_1.z.object({
|
|
13
|
-
uuid: zod_1.z.string().uuid().describe('User 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 = {}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-users-ips-result.command.d.ts","sourceRoot":"","sources":["../../../../commands/ip-control/fetch-users-ips-result.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,0BAA0B,CAAC;IACjC,MAAM,GAAG,2BAAiD,CAAC;IAC3D,MAAM,OAAO,QAAgB,CAAC;IAE9B,MAAM,eAAe,2CAK3B,CAAC;IAEK,MAAM,kBAAkB;;;;;;MAE7B,CAAC;IAEI,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA4BzB,CAAC;IAEH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAC9D,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fetch-users-ips.command.d.ts","sourceRoot":"","sources":["../../../../commands/ip-control/fetch-users-ips.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,oBAAoB,CAAC;IAC3B,MAAM,GAAG,8BAAsC,CAAC;IAChD,MAAM,OAAO,QAAmB,CAAC;IAEjC,MAAM,eAAe,2CAK3B,CAAC;IAEK,MAAM,kBAAkB;;;;;;MAE7B,CAAC;IAEI,MAAM,cAAc;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAC9D,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.FetchUsersIpsCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const api_1 = require("../../api");
|
|
6
|
-
const constants_1 = require("../../constants");
|
|
7
|
-
var FetchUsersIpsCommand;
|
|
8
|
-
(function (FetchUsersIpsCommand) {
|
|
9
|
-
FetchUsersIpsCommand.url = api_1.REST_API.IP_CONTROL.FETCH_USERS_IPS;
|
|
10
|
-
FetchUsersIpsCommand.TSQ_url = FetchUsersIpsCommand.url(':nodeUuid');
|
|
11
|
-
FetchUsersIpsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.IP_CONTROL_ROUTES.FETCH_USERS_IPS(':nodeUuid'), 'post', 'Request Users IPs List for Node', { scope: 'fetch-users-ips', kind: 'read' });
|
|
12
|
-
FetchUsersIpsCommand.RequestParamSchema = zod_1.z.object({
|
|
13
|
-
nodeUuid: zod_1.z.string().uuid().describe('Node UUID'),
|
|
14
|
-
});
|
|
15
|
-
FetchUsersIpsCommand.ResponseSchema = zod_1.z.object({
|
|
16
|
-
response: zod_1.z.object({
|
|
17
|
-
jobId: zod_1.z.string(),
|
|
18
|
-
}),
|
|
19
|
-
});
|
|
20
|
-
})(FetchUsersIpsCommand || (exports.FetchUsersIpsCommand = FetchUsersIpsCommand = {}));
|
|
@@ -1 +0,0 @@
|
|
|
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;AACpC,cAAc,kCAAkC,CAAC;AACjD,cAAc,2BAA2B,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
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
|
-
// POST /ip-control/fetch-users-ips/:nodeUuid
|
|
13
|
-
FETCH_USERS_IPS: (nodeUuid) => `fetch-users-ips/${nodeUuid}`,
|
|
14
|
-
// GET /ip-control/fetch-users-ips/result/:jobId
|
|
15
|
-
GET_FETCH_USERS_IPS_RESULT: (jobId) => `fetch-users-ips/result/${jobId}`,
|
|
16
|
-
};
|
|
@@ -1,20 +0,0 @@
|
|
|
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', { scope: 'fetch-ips', kind: 'read' });
|
|
12
|
-
FetchIpsCommand.RequestParamSchema = zod_1.z.object({
|
|
13
|
-
uuid: zod_1.z.string().uuid().describe('User 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 = {}));
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FetchUsersIpsCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const api_1 = require("../../api");
|
|
6
|
-
const constants_1 = require("../../constants");
|
|
7
|
-
var FetchUsersIpsCommand;
|
|
8
|
-
(function (FetchUsersIpsCommand) {
|
|
9
|
-
FetchUsersIpsCommand.url = api_1.REST_API.IP_CONTROL.FETCH_USERS_IPS;
|
|
10
|
-
FetchUsersIpsCommand.TSQ_url = FetchUsersIpsCommand.url(':nodeUuid');
|
|
11
|
-
FetchUsersIpsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.IP_CONTROL_ROUTES.FETCH_USERS_IPS(':nodeUuid'), 'post', 'Request Users IPs List for Node', { scope: 'fetch-users-ips', kind: 'read' });
|
|
12
|
-
FetchUsersIpsCommand.RequestParamSchema = zod_1.z.object({
|
|
13
|
-
nodeUuid: zod_1.z.string().uuid().describe('Node UUID'),
|
|
14
|
-
});
|
|
15
|
-
FetchUsersIpsCommand.ResponseSchema = zod_1.z.object({
|
|
16
|
-
response: zod_1.z.object({
|
|
17
|
-
jobId: zod_1.z.string(),
|
|
18
|
-
}),
|
|
19
|
-
});
|
|
20
|
-
})(FetchUsersIpsCommand || (exports.FetchUsersIpsCommand = FetchUsersIpsCommand = {}));
|