@remnawave/node-contract 2.6.9 → 2.6.10

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.
@@ -9,5 +9,6 @@ export declare const STATS_ROUTES: {
9
9
  readonly GET_ALL_INBOUNDS_STATS: "get-all-inbounds-stats";
10
10
  readonly GET_COMBINED_STATS: "get-combined-stats";
11
11
  readonly GET_USER_IP_LIST: "get-user-ip-list";
12
+ readonly GET_USERS_IP_LIST: "get-users-ip-list";
12
13
  };
13
14
  //# sourceMappingURL=stats.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"stats.d.ts","sourceRoot":"","sources":["../../../api/controllers/stats.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,EAAG,OAAgB,CAAC;AAEjD,eAAO,MAAM,YAAY;;;;;;;;;;CAcf,CAAC"}
1
+ {"version":3,"file":"stats.d.ts","sourceRoot":"","sources":["../../../api/controllers/stats.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,EAAG,OAAgB,CAAC;AAEjD,eAAO,MAAM,YAAY;;;;;;;;;;;CAef,CAAC"}
@@ -12,4 +12,5 @@ exports.STATS_ROUTES = {
12
12
  GET_ALL_INBOUNDS_STATS: 'get-all-inbounds-stats',
13
13
  GET_COMBINED_STATS: 'get-combined-stats',
14
14
  GET_USER_IP_LIST: 'get-user-ip-list',
15
+ GET_USERS_IP_LIST: 'get-users-ip-list',
15
16
  };
@@ -16,6 +16,7 @@ export declare const REST_API: {
16
16
  readonly GET_ALL_INBOUNDS_STATS: "/node/stats/get-all-inbounds-stats";
17
17
  readonly GET_COMBINED_STATS: "/node/stats/get-combined-stats";
18
18
  readonly GET_USER_IP_LIST: "/node/stats/get-user-ip-list";
19
+ readonly GET_USERS_IP_LIST: "/node/stats/get-users-ip-list";
19
20
  };
20
21
  readonly HANDLER: {
21
22
  readonly ADD_USER: "/node/handler/add-user";
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2CX,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4CX,CAAC"}
@@ -53,6 +53,7 @@ exports.REST_API = {
53
53
  GET_ALL_INBOUNDS_STATS: `${exports.ROOT}/${CONTROLLERS.STATS_CONTROLLER}/${CONTROLLERS.STATS_ROUTES.GET_ALL_INBOUNDS_STATS}`,
54
54
  GET_COMBINED_STATS: `${exports.ROOT}/${CONTROLLERS.STATS_CONTROLLER}/${CONTROLLERS.STATS_ROUTES.GET_COMBINED_STATS}`,
55
55
  GET_USER_IP_LIST: `${exports.ROOT}/${CONTROLLERS.STATS_CONTROLLER}/${CONTROLLERS.STATS_ROUTES.GET_USER_IP_LIST}`,
56
+ GET_USERS_IP_LIST: `${exports.ROOT}/${CONTROLLERS.STATS_CONTROLLER}/${CONTROLLERS.STATS_ROUTES.GET_USERS_IP_LIST}`,
56
57
  },
57
58
  HANDLER: {
58
59
  ADD_USER: `${exports.ROOT}/${CONTROLLERS.HANDLER_CONTROLLER}/${CONTROLLERS.HANDLER_ROUTES.ADD_USER}`,
@@ -0,0 +1,71 @@
1
+ import { z } from 'zod';
2
+ export declare namespace GetUsersIpListCommand {
3
+ const url: "/node/stats/get-users-ip-list";
4
+ const ResponseSchema: z.ZodObject<{
5
+ response: z.ZodObject<{
6
+ users: z.ZodArray<z.ZodObject<{
7
+ userId: z.ZodString;
8
+ ips: z.ZodArray<z.ZodObject<{
9
+ ip: z.ZodString;
10
+ lastSeen: z.ZodEffects<z.ZodString, Date, string>;
11
+ }, "strip", z.ZodTypeAny, {
12
+ ip: string;
13
+ lastSeen: Date;
14
+ }, {
15
+ ip: string;
16
+ lastSeen: string;
17
+ }>, "many">;
18
+ }, "strip", z.ZodTypeAny, {
19
+ userId: string;
20
+ ips: {
21
+ ip: string;
22
+ lastSeen: Date;
23
+ }[];
24
+ }, {
25
+ userId: string;
26
+ ips: {
27
+ ip: string;
28
+ lastSeen: string;
29
+ }[];
30
+ }>, "many">;
31
+ }, "strip", z.ZodTypeAny, {
32
+ users: {
33
+ userId: string;
34
+ ips: {
35
+ ip: string;
36
+ lastSeen: Date;
37
+ }[];
38
+ }[];
39
+ }, {
40
+ users: {
41
+ userId: string;
42
+ ips: {
43
+ ip: string;
44
+ lastSeen: string;
45
+ }[];
46
+ }[];
47
+ }>;
48
+ }, "strip", z.ZodTypeAny, {
49
+ response: {
50
+ users: {
51
+ userId: string;
52
+ ips: {
53
+ ip: string;
54
+ lastSeen: Date;
55
+ }[];
56
+ }[];
57
+ };
58
+ }, {
59
+ response: {
60
+ users: {
61
+ userId: string;
62
+ ips: {
63
+ ip: string;
64
+ lastSeen: string;
65
+ }[];
66
+ }[];
67
+ };
68
+ }>;
69
+ type Response = z.infer<typeof ResponseSchema>;
70
+ }
71
+ //# sourceMappingURL=get-users-ip-list.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-users-ip-list.command.d.ts","sourceRoot":"","sources":["../../../commands/stats/get-users-ip-list.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,qBAAqB,CAAC;IAC5B,MAAM,GAAG,iCAAmC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAoBzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetUsersIpListCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const api_1 = require("../../api");
6
+ var GetUsersIpListCommand;
7
+ (function (GetUsersIpListCommand) {
8
+ GetUsersIpListCommand.url = api_1.REST_API.STATS.GET_USERS_IP_LIST;
9
+ GetUsersIpListCommand.ResponseSchema = zod_1.z.object({
10
+ response: zod_1.z.object({
11
+ users: zod_1.z.array(zod_1.z.object({
12
+ userId: zod_1.z.string(),
13
+ ips: zod_1.z.array(zod_1.z.object({
14
+ ip: zod_1.z.string(),
15
+ lastSeen: zod_1.z
16
+ .string()
17
+ .datetime({
18
+ local: true,
19
+ offset: true,
20
+ })
21
+ .transform((str) => new Date(str)),
22
+ })),
23
+ })),
24
+ }),
25
+ });
26
+ })(GetUsersIpListCommand || (exports.GetUsersIpListCommand = GetUsersIpListCommand = {}));
@@ -6,5 +6,6 @@ export * from './get-outbound-stats.command';
6
6
  export * from './get-system-stats.command';
7
7
  export * from './get-user-ip-list.command';
8
8
  export * from './get-user-online-status.command';
9
+ export * from './get-users-ip-list.command';
9
10
  export * from './get-users-stats.command';
10
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../commands/stats/index.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC;AACjD,cAAc,mCAAmC,CAAC;AAClD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kCAAkC,CAAC;AACjD,cAAc,2BAA2B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../commands/stats/index.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC;AACjD,cAAc,mCAAmC,CAAC;AAClD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kCAAkC,CAAC;AACjD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC"}
@@ -22,4 +22,5 @@ __exportStar(require("./get-outbound-stats.command"), exports);
22
22
  __exportStar(require("./get-system-stats.command"), exports);
23
23
  __exportStar(require("./get-user-ip-list.command"), exports);
24
24
  __exportStar(require("./get-user-online-status.command"), exports);
25
+ __exportStar(require("./get-users-ip-list.command"), exports);
25
26
  __exportStar(require("./get-users-stats.command"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/node-contract",
3
- "version": "2.6.9",
3
+ "version": "2.6.10",
4
4
  "description": "A node-contract library for Remnawave Panel",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",