@remnawave/backend-contract 2.9.1 → 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/hosts/bulk/delete-many-hosts.command.d.ts +0 -218
- package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/bulk/delete-many-hosts.command.js +0 -4
- package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts +0 -218
- package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/bulk/disable-many-hosts.command.js +0 -4
- package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts +0 -218
- package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/bulk/enable-many-hosts.command.js +0 -4
- package/build/backend/commands/hosts/bulk/update-many-hosts.command.d.ts +0 -218
- package/build/backend/commands/hosts/bulk/update-many-hosts.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/bulk/update-many-hosts.command.js +0 -4
- package/build/backend/commands/hosts/create.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/create.command.js +5 -22
- package/build/backend/commands/hosts/get-host.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/get-host.command.js +2 -4
- package/build/backend/commands/hosts/host.response.d.ts +219 -0
- package/build/backend/commands/hosts/host.response.d.ts.map +1 -0
- package/build/backend/commands/hosts/host.response.js +8 -0
- package/build/backend/commands/hosts/update.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/update.command.js +5 -22
- 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/hosts/bulk/delete-many-hosts.command.js +0 -4
- package/build/frontend/commands/hosts/bulk/disable-many-hosts.command.js +0 -4
- package/build/frontend/commands/hosts/bulk/enable-many-hosts.command.js +0 -4
- package/build/frontend/commands/hosts/bulk/update-many-hosts.command.js +0 -4
- package/build/frontend/commands/hosts/create.command.js +5 -22
- package/build/frontend/commands/hosts/get-host.command.js +2 -4
- package/build/frontend/commands/hosts/host.response.js +8 -0
- package/build/frontend/commands/hosts/update.command.js +5 -22
- 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
|
@@ -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);
|
|
@@ -4,7 +4,6 @@ exports.BulkDeleteHostsCommand = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const api_1 = require("../../../api");
|
|
6
6
|
const constants_1 = require("../../../constants");
|
|
7
|
-
const models_1 = require("../../../models");
|
|
8
7
|
var BulkDeleteHostsCommand;
|
|
9
8
|
(function (BulkDeleteHostsCommand) {
|
|
10
9
|
BulkDeleteHostsCommand.url = api_1.REST_API.HOSTS.BULK.DELETE_HOSTS;
|
|
@@ -13,7 +12,4 @@ var BulkDeleteHostsCommand;
|
|
|
13
12
|
BulkDeleteHostsCommand.RequestBodySchema = zod_1.z.object({
|
|
14
13
|
uuids: zod_1.z.array(zod_1.z.string().uuid()),
|
|
15
14
|
});
|
|
16
|
-
BulkDeleteHostsCommand.ResponseSchema = zod_1.z.object({
|
|
17
|
-
response: zod_1.z.array(models_1.HostsSchema),
|
|
18
|
-
});
|
|
19
15
|
})(BulkDeleteHostsCommand || (exports.BulkDeleteHostsCommand = BulkDeleteHostsCommand = {}));
|
|
@@ -4,7 +4,6 @@ exports.BulkDisableHostsCommand = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const api_1 = require("../../../api");
|
|
6
6
|
const constants_1 = require("../../../constants");
|
|
7
|
-
const models_1 = require("../../../models");
|
|
8
7
|
var BulkDisableHostsCommand;
|
|
9
8
|
(function (BulkDisableHostsCommand) {
|
|
10
9
|
BulkDisableHostsCommand.url = api_1.REST_API.HOSTS.BULK.DISABLE_HOSTS;
|
|
@@ -13,7 +12,4 @@ var BulkDisableHostsCommand;
|
|
|
13
12
|
BulkDisableHostsCommand.RequestBodySchema = zod_1.z.object({
|
|
14
13
|
uuids: zod_1.z.array(zod_1.z.string().uuid()),
|
|
15
14
|
});
|
|
16
|
-
BulkDisableHostsCommand.ResponseSchema = zod_1.z.object({
|
|
17
|
-
response: zod_1.z.array(models_1.HostsSchema),
|
|
18
|
-
});
|
|
19
15
|
})(BulkDisableHostsCommand || (exports.BulkDisableHostsCommand = BulkDisableHostsCommand = {}));
|
|
@@ -4,7 +4,6 @@ exports.BulkEnableHostsCommand = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const api_1 = require("../../../api");
|
|
6
6
|
const constants_1 = require("../../../constants");
|
|
7
|
-
const models_1 = require("../../../models");
|
|
8
7
|
var BulkEnableHostsCommand;
|
|
9
8
|
(function (BulkEnableHostsCommand) {
|
|
10
9
|
BulkEnableHostsCommand.url = api_1.REST_API.HOSTS.BULK.ENABLE_HOSTS;
|
|
@@ -13,7 +12,4 @@ var BulkEnableHostsCommand;
|
|
|
13
12
|
BulkEnableHostsCommand.RequestBodySchema = zod_1.z.object({
|
|
14
13
|
uuids: zod_1.z.array(zod_1.z.string().uuid()),
|
|
15
14
|
});
|
|
16
|
-
BulkEnableHostsCommand.ResponseSchema = zod_1.z.object({
|
|
17
|
-
response: zod_1.z.array(models_1.HostsSchema),
|
|
18
|
-
});
|
|
19
15
|
})(BulkEnableHostsCommand || (exports.BulkEnableHostsCommand = BulkEnableHostsCommand = {}));
|
|
@@ -4,7 +4,6 @@ exports.UpdateManyHostsCommand = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const api_1 = require("../../../api");
|
|
6
6
|
const constants_1 = require("../../../constants");
|
|
7
|
-
const models_1 = require("../../../models");
|
|
8
7
|
const update_command_1 = require("../update.command");
|
|
9
8
|
var UpdateManyHostsCommand;
|
|
10
9
|
(function (UpdateManyHostsCommand) {
|
|
@@ -16,7 +15,4 @@ var UpdateManyHostsCommand;
|
|
|
16
15
|
.extend({
|
|
17
16
|
uuids: zod_1.z.array(zod_1.z.string().uuid()).min(1, 'Must be at least 1 host UUID'),
|
|
18
17
|
});
|
|
19
|
-
UpdateManyHostsCommand.ResponseSchema = zod_1.z.object({
|
|
20
|
-
response: zod_1.z.array(models_1.HostsSchema),
|
|
21
|
-
});
|
|
22
18
|
})(UpdateManyHostsCommand || (exports.UpdateManyHostsCommand = UpdateManyHostsCommand = {}));
|
|
@@ -4,7 +4,7 @@ exports.CreateHostCommand = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const api_1 = require("../../api");
|
|
6
6
|
const constants_1 = require("../../constants");
|
|
7
|
-
const
|
|
7
|
+
const host_response_1 = require("./host.response");
|
|
8
8
|
var CreateHostCommand;
|
|
9
9
|
(function (CreateHostCommand) {
|
|
10
10
|
CreateHostCommand.url = api_1.REST_API.HOSTS.CREATE;
|
|
@@ -15,24 +15,9 @@ var CreateHostCommand;
|
|
|
15
15
|
configProfileUuid: zod_1.z.string().uuid(),
|
|
16
16
|
configProfileInboundUuid: zod_1.z.string().uuid(),
|
|
17
17
|
}),
|
|
18
|
-
remark: zod_1.z
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
})
|
|
22
|
-
.min(1, {
|
|
23
|
-
message: 'Remark must be at least 1 character',
|
|
24
|
-
})
|
|
25
|
-
.max(40, {
|
|
26
|
-
message: 'Remark must be less than 40 characters',
|
|
27
|
-
}),
|
|
28
|
-
address: zod_1.z.string({
|
|
29
|
-
invalid_type_error: 'Address must be a string',
|
|
30
|
-
}),
|
|
31
|
-
port: zod_1.z
|
|
32
|
-
.number({
|
|
33
|
-
invalid_type_error: 'Port must be an integer',
|
|
34
|
-
})
|
|
35
|
-
.int(),
|
|
18
|
+
remark: zod_1.z.string().min(1).max(100),
|
|
19
|
+
address: zod_1.z.string(),
|
|
20
|
+
port: zod_1.z.number().int(),
|
|
36
21
|
path: zod_1.z.string().nullish(),
|
|
37
22
|
sni: zod_1.z.string().nullish(),
|
|
38
23
|
host: zod_1.z.string().nullish(),
|
|
@@ -74,7 +59,5 @@ var CreateHostCommand;
|
|
|
74
59
|
.optional(zod_1.z.array(zod_1.z.nativeEnum(constants_1.SUBSCRIPTION_TEMPLATE_TYPE)))
|
|
75
60
|
.describe('Optional. Subscription types from which the host will be excluded from.'),
|
|
76
61
|
});
|
|
77
|
-
CreateHostCommand.ResponseSchema =
|
|
78
|
-
response: models_1.HostsSchema,
|
|
79
|
-
});
|
|
62
|
+
CreateHostCommand.ResponseSchema = host_response_1.HostResponseSchema;
|
|
80
63
|
})(CreateHostCommand || (exports.CreateHostCommand = CreateHostCommand = {}));
|
|
@@ -4,7 +4,7 @@ exports.GetHostCommand = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const api_1 = require("../../api");
|
|
6
6
|
const constants_1 = require("../../constants");
|
|
7
|
-
const
|
|
7
|
+
const host_response_1 = require("./host.response");
|
|
8
8
|
var GetHostCommand;
|
|
9
9
|
(function (GetHostCommand) {
|
|
10
10
|
GetHostCommand.url = api_1.REST_API.HOSTS.GET_BY_UUID;
|
|
@@ -13,7 +13,5 @@ var GetHostCommand;
|
|
|
13
13
|
GetHostCommand.RequestParamSchema = zod_1.z.object({
|
|
14
14
|
uuid: zod_1.z.string().uuid(),
|
|
15
15
|
});
|
|
16
|
-
GetHostCommand.ResponseSchema =
|
|
17
|
-
response: models_1.HostsSchema,
|
|
18
|
-
});
|
|
16
|
+
GetHostCommand.ResponseSchema = host_response_1.HostResponseSchema;
|
|
19
17
|
})(GetHostCommand || (exports.GetHostCommand = GetHostCommand = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HostResponseSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const hosts_schema_1 = require("../../models/hosts.schema");
|
|
6
|
+
exports.HostResponseSchema = zod_1.z.object({
|
|
7
|
+
response: hosts_schema_1.HostsSchema,
|
|
8
|
+
});
|
|
@@ -5,6 +5,7 @@ const zod_1 = require("zod");
|
|
|
5
5
|
const api_1 = require("../../api");
|
|
6
6
|
const constants_1 = require("../../constants");
|
|
7
7
|
const models_1 = require("../../models");
|
|
8
|
+
const host_response_1 = require("./host.response");
|
|
8
9
|
var UpdateHostCommand;
|
|
9
10
|
(function (UpdateHostCommand) {
|
|
10
11
|
UpdateHostCommand.url = api_1.REST_API.HOSTS.UPDATE;
|
|
@@ -19,25 +20,9 @@ var UpdateHostCommand;
|
|
|
19
20
|
configProfileInboundUuid: zod_1.z.string().uuid(),
|
|
20
21
|
})
|
|
21
22
|
.optional(),
|
|
22
|
-
remark: zod_1.z
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
})
|
|
26
|
-
.max(40, {
|
|
27
|
-
message: 'Remark must be less than 40 characters',
|
|
28
|
-
})
|
|
29
|
-
.optional(),
|
|
30
|
-
address: zod_1.z
|
|
31
|
-
.string({
|
|
32
|
-
invalid_type_error: 'Address must be a string',
|
|
33
|
-
})
|
|
34
|
-
.optional(),
|
|
35
|
-
port: zod_1.z
|
|
36
|
-
.number({
|
|
37
|
-
invalid_type_error: 'Port must be an integer',
|
|
38
|
-
})
|
|
39
|
-
.int()
|
|
40
|
-
.optional(),
|
|
23
|
+
remark: zod_1.z.string().min(1).max(100).optional(),
|
|
24
|
+
address: zod_1.z.string().optional(),
|
|
25
|
+
port: zod_1.z.number().int().optional(),
|
|
41
26
|
path: zod_1.z.string().nullish(),
|
|
42
27
|
sni: zod_1.z.string().nullish(),
|
|
43
28
|
host: zod_1.z.string().nullish(),
|
|
@@ -79,7 +64,5 @@ var UpdateHostCommand;
|
|
|
79
64
|
.optional(zod_1.z.array(zod_1.z.nativeEnum(constants_1.SUBSCRIPTION_TEMPLATE_TYPE)))
|
|
80
65
|
.describe('Optional. Subscription types from which the host will be excluded from.'),
|
|
81
66
|
});
|
|
82
|
-
UpdateHostCommand.ResponseSchema =
|
|
83
|
-
response: models_1.HostsSchema,
|
|
84
|
-
});
|
|
67
|
+
UpdateHostCommand.ResponseSchema = host_response_1.HostResponseSchema;
|
|
85
68
|
})(UpdateHostCommand || (exports.UpdateHostCommand = UpdateHostCommand = {}));
|
|
@@ -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 = {}));
|