@remnawave/node-contract 3.2.2 → 3.4.0
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/api/controllers/handler.d.ts +0 -2
- package/build/api/controllers/handler.d.ts.map +1 -1
- package/build/api/controllers/handler.js +0 -2
- package/build/api/routes.d.ts +0 -2
- package/build/api/routes.d.ts.map +1 -1
- package/build/api/routes.js +0 -2
- package/build/commands/handler/index.d.ts +0 -2
- package/build/commands/handler/index.d.ts.map +1 -1
- package/build/commands/handler/index.js +0 -2
- package/package.json +2 -2
- package/build/commands/handler/get-inbound-users-count.command.d.ts +0 -15
- package/build/commands/handler/get-inbound-users-count.command.d.ts.map +0 -1
- package/build/commands/handler/get-inbound-users-count.command.js +0 -17
- package/build/commands/handler/get-inbound-users.command.d.ts +0 -19
- package/build/commands/handler/get-inbound-users.command.d.ts.map +0 -1
- package/build/commands/handler/get-inbound-users.command.js +0 -21
|
@@ -4,8 +4,6 @@ export declare const HANDLER_ROUTES: {
|
|
|
4
4
|
readonly ADD_USER: "add-user";
|
|
5
5
|
readonly ADD_USERS: "add-users";
|
|
6
6
|
readonly REMOVE_USERS: "remove-users";
|
|
7
|
-
readonly GET_INBOUND_USERS_COUNT: "get-inbound-users-count";
|
|
8
|
-
readonly GET_INBOUND_USERS: "get-inbound-users";
|
|
9
7
|
readonly DROP_USERS_CONNECTIONS: "drop-users-connections";
|
|
10
8
|
readonly DROP_IPS: "drop-ips";
|
|
11
9
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../../api/controllers/handler.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,EAAG,SAAkB,CAAC;AAErD,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../../api/controllers/handler.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,EAAG,SAAkB,CAAC;AAErD,eAAO,MAAM,cAAc;;;;;;;CAQjB,CAAC"}
|
|
@@ -7,8 +7,6 @@ exports.HANDLER_ROUTES = {
|
|
|
7
7
|
ADD_USER: 'add-user',
|
|
8
8
|
ADD_USERS: 'add-users',
|
|
9
9
|
REMOVE_USERS: 'remove-users',
|
|
10
|
-
GET_INBOUND_USERS_COUNT: 'get-inbound-users-count',
|
|
11
|
-
GET_INBOUND_USERS: 'get-inbound-users',
|
|
12
10
|
DROP_USERS_CONNECTIONS: 'drop-users-connections',
|
|
13
11
|
DROP_IPS: 'drop-ips',
|
|
14
12
|
};
|
package/build/api/routes.d.ts
CHANGED
|
@@ -21,8 +21,6 @@ export declare const REST_API: {
|
|
|
21
21
|
readonly HANDLER: {
|
|
22
22
|
readonly ADD_USER: "/node/handler/add-user";
|
|
23
23
|
readonly REMOVE_USER: "/node/handler/remove-user";
|
|
24
|
-
readonly GET_INBOUND_USERS_COUNT: "/node/handler/get-inbound-users-count";
|
|
25
|
-
readonly GET_INBOUND_USERS: "/node/handler/get-inbound-users";
|
|
26
24
|
readonly ADD_USERS: "/node/handler/add-users";
|
|
27
25
|
readonly REMOVE_USERS: "/node/handler/remove-users";
|
|
28
26
|
readonly DROP_USERS_CONNECTIONS: "/node/handler/drop-users-connections";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../api/routes.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,EAAG,OAAgB,CAAC;AAErC,eAAO,MAAM,QAAQ
|
|
1
|
+
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../api/routes.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,EAAG,OAAgB,CAAC;AAErC,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsCX,CAAC"}
|
package/build/api/routes.js
CHANGED
|
@@ -58,8 +58,6 @@ exports.REST_API = {
|
|
|
58
58
|
HANDLER: {
|
|
59
59
|
ADD_USER: `${exports.ROOT}/${CONTROLLERS.HANDLER_CONTROLLER}/${CONTROLLERS.HANDLER_ROUTES.ADD_USER}`,
|
|
60
60
|
REMOVE_USER: `${exports.ROOT}/${CONTROLLERS.HANDLER_CONTROLLER}/${CONTROLLERS.HANDLER_ROUTES.REMOVE_USER}`,
|
|
61
|
-
GET_INBOUND_USERS_COUNT: `${exports.ROOT}/${CONTROLLERS.HANDLER_CONTROLLER}/${CONTROLLERS.HANDLER_ROUTES.GET_INBOUND_USERS_COUNT}`,
|
|
62
|
-
GET_INBOUND_USERS: `${exports.ROOT}/${CONTROLLERS.HANDLER_CONTROLLER}/${CONTROLLERS.HANDLER_ROUTES.GET_INBOUND_USERS}`,
|
|
63
61
|
ADD_USERS: `${exports.ROOT}/${CONTROLLERS.HANDLER_CONTROLLER}/${CONTROLLERS.HANDLER_ROUTES.ADD_USERS}`,
|
|
64
62
|
REMOVE_USERS: `${exports.ROOT}/${CONTROLLERS.HANDLER_CONTROLLER}/${CONTROLLERS.HANDLER_ROUTES.REMOVE_USERS}`,
|
|
65
63
|
DROP_USERS_CONNECTIONS: `${exports.ROOT}/${CONTROLLERS.HANDLER_CONTROLLER}/${CONTROLLERS.HANDLER_ROUTES.DROP_USERS_CONNECTIONS}`,
|
|
@@ -2,8 +2,6 @@ export * from './add-user.command';
|
|
|
2
2
|
export * from './add-users.command';
|
|
3
3
|
export * from './drop-ips.command';
|
|
4
4
|
export * from './drop-users-connections.command';
|
|
5
|
-
export * from './get-inbound-users-count.command';
|
|
6
|
-
export * from './get-inbound-users.command';
|
|
7
5
|
export * from './remove-user.command';
|
|
8
6
|
export * from './remove-users.command';
|
|
9
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../commands/handler/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kCAAkC,CAAC;AACjD,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../commands/handler/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kCAAkC,CAAC;AACjD,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC"}
|
|
@@ -18,7 +18,5 @@ __exportStar(require("./add-user.command"), exports);
|
|
|
18
18
|
__exportStar(require("./add-users.command"), exports);
|
|
19
19
|
__exportStar(require("./drop-ips.command"), exports);
|
|
20
20
|
__exportStar(require("./drop-users-connections.command"), exports);
|
|
21
|
-
__exportStar(require("./get-inbound-users-count.command"), exports);
|
|
22
|
-
__exportStar(require("./get-inbound-users.command"), exports);
|
|
23
21
|
__exportStar(require("./remove-user.command"), exports);
|
|
24
22
|
__exportStar(require("./remove-users.command"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remnawave/node-contract",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.4.0",
|
|
4
4
|
"description": "A node-contract library for Remnawave Panel",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"homepage": "https://github.com/remnawave",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"build": "tsc"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"zod": "4.
|
|
26
|
+
"zod": "4.5.2"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"typescript": "~5.9.3"
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare namespace GetInboundUsersCountCommand {
|
|
3
|
-
const url: "/node/handler/get-inbound-users-count";
|
|
4
|
-
const RequestSchema: z.ZodObject<{
|
|
5
|
-
tag: z.ZodString;
|
|
6
|
-
}, z.core.$strip>;
|
|
7
|
-
type Request = z.infer<typeof RequestSchema>;
|
|
8
|
-
const ResponseSchema: z.ZodObject<{
|
|
9
|
-
response: z.ZodObject<{
|
|
10
|
-
count: z.ZodNumber;
|
|
11
|
-
}, z.core.$strip>;
|
|
12
|
-
}, z.core.$strip>;
|
|
13
|
-
type Response = z.infer<typeof ResponseSchema>;
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=get-inbound-users-count.command.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-inbound-users-count.command.d.ts","sourceRoot":"","sources":["../../../commands/handler/get-inbound-users-count.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,yBAAiB,2BAA2B,CAAC;IAClC,MAAM,GAAG,yCAA2C,CAAC;IAErD,MAAM,aAAa;;qBAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;qBAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetInboundUsersCountCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const api_1 = require("../../api");
|
|
6
|
-
var GetInboundUsersCountCommand;
|
|
7
|
-
(function (GetInboundUsersCountCommand) {
|
|
8
|
-
GetInboundUsersCountCommand.url = api_1.REST_API.HANDLER.GET_INBOUND_USERS_COUNT;
|
|
9
|
-
GetInboundUsersCountCommand.RequestSchema = zod_1.z.object({
|
|
10
|
-
tag: zod_1.z.string(),
|
|
11
|
-
});
|
|
12
|
-
GetInboundUsersCountCommand.ResponseSchema = zod_1.z.object({
|
|
13
|
-
response: zod_1.z.object({
|
|
14
|
-
count: zod_1.z.number(),
|
|
15
|
-
}),
|
|
16
|
-
});
|
|
17
|
-
})(GetInboundUsersCountCommand || (exports.GetInboundUsersCountCommand = GetInboundUsersCountCommand = {}));
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare namespace GetInboundUsersCommand {
|
|
3
|
-
const url: "/node/handler/get-inbound-users";
|
|
4
|
-
const RequestSchema: z.ZodObject<{
|
|
5
|
-
tag: z.ZodString;
|
|
6
|
-
}, z.core.$strip>;
|
|
7
|
-
type Request = z.infer<typeof RequestSchema>;
|
|
8
|
-
const ResponseSchema: z.ZodObject<{
|
|
9
|
-
response: z.ZodObject<{
|
|
10
|
-
users: z.ZodArray<z.ZodObject<{
|
|
11
|
-
username: z.ZodString;
|
|
12
|
-
email: z.ZodOptional<z.ZodString>;
|
|
13
|
-
level: z.ZodOptional<z.ZodNumber>;
|
|
14
|
-
}, z.core.$strip>>;
|
|
15
|
-
}, z.core.$strip>;
|
|
16
|
-
}, z.core.$strip>;
|
|
17
|
-
type Response = z.infer<typeof ResponseSchema>;
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=get-inbound-users.command.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-inbound-users.command.d.ts","sourceRoot":"","sources":["../../../commands/handler/get-inbound-users.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,yBAAiB,sBAAsB,CAAC;IAC7B,MAAM,GAAG,mCAAqC,CAAC;IAC/C,MAAM,aAAa;;qBAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;qBAUzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetInboundUsersCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const api_1 = require("../../api");
|
|
6
|
-
var GetInboundUsersCommand;
|
|
7
|
-
(function (GetInboundUsersCommand) {
|
|
8
|
-
GetInboundUsersCommand.url = api_1.REST_API.HANDLER.GET_INBOUND_USERS;
|
|
9
|
-
GetInboundUsersCommand.RequestSchema = zod_1.z.object({
|
|
10
|
-
tag: zod_1.z.string(),
|
|
11
|
-
});
|
|
12
|
-
GetInboundUsersCommand.ResponseSchema = zod_1.z.object({
|
|
13
|
-
response: zod_1.z.object({
|
|
14
|
-
users: zod_1.z.array(zod_1.z.object({
|
|
15
|
-
username: zod_1.z.string(),
|
|
16
|
-
email: zod_1.z.string().optional(),
|
|
17
|
-
level: zod_1.z.number().optional(),
|
|
18
|
-
})),
|
|
19
|
-
}),
|
|
20
|
-
});
|
|
21
|
-
})(GetInboundUsersCommand || (exports.GetInboundUsersCommand = GetInboundUsersCommand = {}));
|