@remnawave/node-contract 2.6.0 → 2.6.1

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.
@@ -6,5 +6,7 @@ export declare const HANDLER_ROUTES: {
6
6
  readonly REMOVE_USERS: "remove-users";
7
7
  readonly GET_INBOUND_USERS_COUNT: "get-inbound-users-count";
8
8
  readonly GET_INBOUND_USERS: "get-inbound-users";
9
+ readonly DROP_USERS_CONNECTIONS: "drop-users-connections";
10
+ readonly DROP_IPS: "drop-ips";
9
11
  };
10
12
  //# sourceMappingURL=handler.d.ts.map
@@ -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;;;;;;;CAOjB,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;;;;;;;;;CAUjB,CAAC"}
@@ -9,4 +9,6 @@ exports.HANDLER_ROUTES = {
9
9
  REMOVE_USERS: 'remove-users',
10
10
  GET_INBOUND_USERS_COUNT: 'get-inbound-users-count',
11
11
  GET_INBOUND_USERS: 'get-inbound-users',
12
+ DROP_USERS_CONNECTIONS: 'drop-users-connections',
13
+ DROP_IPS: 'drop-ips',
12
14
  };
@@ -24,6 +24,8 @@ export declare const REST_API: {
24
24
  readonly GET_INBOUND_USERS: "/node/handler/get-inbound-users";
25
25
  readonly ADD_USERS: "/node/handler/add-users";
26
26
  readonly REMOVE_USERS: "/node/handler/remove-users";
27
+ readonly DROP_USERS_CONNECTIONS: "/node/handler/drop-users-connections";
28
+ readonly DROP_IPS: "/node/handler/drop-ips";
27
29
  };
28
30
  readonly VISION: {
29
31
  readonly UNBLOCK_IP: "vision/unblock-ip";
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8BX,CAAC"}
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgCX,CAAC"}
@@ -61,6 +61,8 @@ exports.REST_API = {
61
61
  GET_INBOUND_USERS: `${exports.ROOT}/${CONTROLLERS.HANDLER_CONTROLLER}/${CONTROLLERS.HANDLER_ROUTES.GET_INBOUND_USERS}`,
62
62
  ADD_USERS: `${exports.ROOT}/${CONTROLLERS.HANDLER_CONTROLLER}/${CONTROLLERS.HANDLER_ROUTES.ADD_USERS}`,
63
63
  REMOVE_USERS: `${exports.ROOT}/${CONTROLLERS.HANDLER_CONTROLLER}/${CONTROLLERS.HANDLER_ROUTES.REMOVE_USERS}`,
64
+ DROP_USERS_CONNECTIONS: `${exports.ROOT}/${CONTROLLERS.HANDLER_CONTROLLER}/${CONTROLLERS.HANDLER_ROUTES.DROP_USERS_CONNECTIONS}`,
65
+ DROP_IPS: `${exports.ROOT}/${CONTROLLERS.HANDLER_CONTROLLER}/${CONTROLLERS.HANDLER_ROUTES.DROP_IPS}`,
64
66
  },
65
67
  VISION: {
66
68
  UNBLOCK_IP: `${CONTROLLERS.VISION_CONTROLLER}/${CONTROLLERS.VISION_ROUTES.UNBLOCK_IP}`,
@@ -0,0 +1,31 @@
1
+ import { z } from 'zod';
2
+ export declare namespace DropIpsCommand {
3
+ const url: "/node/handler/drop-ips";
4
+ const RequestSchema: z.ZodObject<{
5
+ ips: z.ZodArray<z.ZodString, "many">;
6
+ }, "strip", z.ZodTypeAny, {
7
+ ips: string[];
8
+ }, {
9
+ ips: string[];
10
+ }>;
11
+ type Request = z.infer<typeof RequestSchema>;
12
+ const ResponseSchema: z.ZodObject<{
13
+ response: z.ZodObject<{
14
+ success: z.ZodBoolean;
15
+ }, "strip", z.ZodTypeAny, {
16
+ success: boolean;
17
+ }, {
18
+ success: boolean;
19
+ }>;
20
+ }, "strip", z.ZodTypeAny, {
21
+ response: {
22
+ success: boolean;
23
+ };
24
+ }, {
25
+ response: {
26
+ success: boolean;
27
+ };
28
+ }>;
29
+ type Response = z.infer<typeof ResponseSchema>;
30
+ }
31
+ //# sourceMappingURL=drop-ips.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"drop-ips.command.d.ts","sourceRoot":"","sources":["../../../commands/handler/drop-ips.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,yBAAiB,cAAc,CAAC;IACrB,MAAM,GAAG,0BAA4B,CAAC;IAEtC,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DropIpsCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const api_1 = require("../../api");
6
+ var DropIpsCommand;
7
+ (function (DropIpsCommand) {
8
+ DropIpsCommand.url = api_1.REST_API.HANDLER.DROP_IPS;
9
+ DropIpsCommand.RequestSchema = zod_1.z.object({
10
+ ips: zod_1.z.array(zod_1.z.string()).min(1),
11
+ });
12
+ DropIpsCommand.ResponseSchema = zod_1.z.object({
13
+ response: zod_1.z.object({
14
+ success: zod_1.z.boolean(),
15
+ }),
16
+ });
17
+ })(DropIpsCommand || (exports.DropIpsCommand = DropIpsCommand = {}));
@@ -0,0 +1,31 @@
1
+ import { z } from 'zod';
2
+ export declare namespace DropUsersConnectionsCommand {
3
+ const url: "/node/handler/drop-users-connections";
4
+ const RequestSchema: z.ZodObject<{
5
+ userIds: z.ZodArray<z.ZodString, "many">;
6
+ }, "strip", z.ZodTypeAny, {
7
+ userIds: string[];
8
+ }, {
9
+ userIds: string[];
10
+ }>;
11
+ type Request = z.infer<typeof RequestSchema>;
12
+ const ResponseSchema: z.ZodObject<{
13
+ response: z.ZodObject<{
14
+ success: z.ZodBoolean;
15
+ }, "strip", z.ZodTypeAny, {
16
+ success: boolean;
17
+ }, {
18
+ success: boolean;
19
+ }>;
20
+ }, "strip", z.ZodTypeAny, {
21
+ response: {
22
+ success: boolean;
23
+ };
24
+ }, {
25
+ response: {
26
+ success: boolean;
27
+ };
28
+ }>;
29
+ type Response = z.infer<typeof ResponseSchema>;
30
+ }
31
+ //# sourceMappingURL=drop-users-connections.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"drop-users-connections.command.d.ts","sourceRoot":"","sources":["../../../commands/handler/drop-users-connections.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,yBAAiB,2BAA2B,CAAC;IAClC,MAAM,GAAG,wCAA0C,CAAC;IAEpD,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DropUsersConnectionsCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const api_1 = require("../../api");
6
+ var DropUsersConnectionsCommand;
7
+ (function (DropUsersConnectionsCommand) {
8
+ DropUsersConnectionsCommand.url = api_1.REST_API.HANDLER.DROP_USERS_CONNECTIONS;
9
+ DropUsersConnectionsCommand.RequestSchema = zod_1.z.object({
10
+ userIds: zod_1.z.array(zod_1.z.string()).min(1),
11
+ });
12
+ DropUsersConnectionsCommand.ResponseSchema = zod_1.z.object({
13
+ response: zod_1.z.object({
14
+ success: zod_1.z.boolean(),
15
+ }),
16
+ });
17
+ })(DropUsersConnectionsCommand || (exports.DropUsersConnectionsCommand = DropUsersConnectionsCommand = {}));
@@ -1,5 +1,7 @@
1
1
  export * from './add-user.command';
2
2
  export * from './add-users.command';
3
+ export * from './drop-ips.command';
4
+ export * from './drop-users-connections.command';
3
5
  export * from './get-inbound-users-count.command';
4
6
  export * from './get-inbound-users.command';
5
7
  export * from './remove-user.command';
@@ -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,mCAAmC,CAAC;AAClD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,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,mCAAmC,CAAC;AAClD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC"}
@@ -16,6 +16,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./add-user.command"), exports);
18
18
  __exportStar(require("./add-users.command"), exports);
19
+ __exportStar(require("./drop-ips.command"), exports);
20
+ __exportStar(require("./drop-users-connections.command"), exports);
19
21
  __exportStar(require("./get-inbound-users-count.command"), exports);
20
22
  __exportStar(require("./get-inbound-users.command"), exports);
21
23
  __exportStar(require("./remove-user.command"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/node-contract",
3
- "version": "2.6.0",
3
+ "version": "2.6.1",
4
4
  "description": "A node-contract library for Remnawave Panel",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",