@remnawave/node-contract
Advanced tools
| import { z } from 'zod'; | ||
| export declare namespace GetUsersIpListCommand { | ||
| const url: "/node/stats/get-users-ip-list"; | ||
| const ResponseSchema: z.ZodObject<{ | ||
| response: z.ZodObject<{ | ||
| users: z.ZodArray<z.ZodObject<{ | ||
| userId: z.ZodString; | ||
| ips: z.ZodArray<z.ZodObject<{ | ||
| ip: z.ZodString; | ||
| lastSeen: z.ZodEffects<z.ZodString, Date, string>; | ||
| }, "strip", z.ZodTypeAny, { | ||
| ip: string; | ||
| lastSeen: Date; | ||
| }, { | ||
| ip: string; | ||
| lastSeen: string; | ||
| }>, "many">; | ||
| }, "strip", z.ZodTypeAny, { | ||
| userId: string; | ||
| ips: { | ||
| ip: string; | ||
| lastSeen: Date; | ||
| }[]; | ||
| }, { | ||
| userId: string; | ||
| ips: { | ||
| ip: string; | ||
| lastSeen: string; | ||
| }[]; | ||
| }>, "many">; | ||
| }, "strip", z.ZodTypeAny, { | ||
| users: { | ||
| userId: string; | ||
| ips: { | ||
| ip: string; | ||
| lastSeen: Date; | ||
| }[]; | ||
| }[]; | ||
| }, { | ||
| users: { | ||
| userId: string; | ||
| ips: { | ||
| ip: string; | ||
| lastSeen: string; | ||
| }[]; | ||
| }[]; | ||
| }>; | ||
| }, "strip", z.ZodTypeAny, { | ||
| response: { | ||
| users: { | ||
| userId: string; | ||
| ips: { | ||
| ip: string; | ||
| lastSeen: Date; | ||
| }[]; | ||
| }[]; | ||
| }; | ||
| }, { | ||
| response: { | ||
| users: { | ||
| userId: string; | ||
| ips: { | ||
| ip: string; | ||
| lastSeen: string; | ||
| }[]; | ||
| }[]; | ||
| }; | ||
| }>; | ||
| type Response = z.infer<typeof ResponseSchema>; | ||
| } | ||
| //# sourceMappingURL=get-users-ip-list.command.d.ts.map |
| {"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"} |
| "use strict"; | ||
| Object.defineProperty(exports, "__esModule", { value: true }); | ||
| exports.GetUsersIpListCommand = void 0; | ||
| const zod_1 = require("zod"); | ||
| const api_1 = require("../../api"); | ||
| var GetUsersIpListCommand; | ||
| (function (GetUsersIpListCommand) { | ||
| GetUsersIpListCommand.url = api_1.REST_API.STATS.GET_USERS_IP_LIST; | ||
| GetUsersIpListCommand.ResponseSchema = zod_1.z.object({ | ||
| response: zod_1.z.object({ | ||
| users: zod_1.z.array(zod_1.z.object({ | ||
| userId: zod_1.z.string(), | ||
| ips: zod_1.z.array(zod_1.z.object({ | ||
| ip: zod_1.z.string(), | ||
| lastSeen: zod_1.z | ||
| .string() | ||
| .datetime({ | ||
| local: true, | ||
| offset: true, | ||
| }) | ||
| .transform((str) => new Date(str)), | ||
| })), | ||
| })), | ||
| }), | ||
| }); | ||
| })(GetUsersIpListCommand || (exports.GetUsersIpListCommand = GetUsersIpListCommand = {})); |
@@ -12,3 +12,4 @@ export declare const STATS_CONTROLLER: "stats"; | ||
| readonly GET_USER_IP_LIST: "get-user-ip-list"; | ||
| readonly GET_USERS_IP_LIST: "get-users-ip-list"; | ||
| }; | ||
| //# sourceMappingURL=stats.d.ts.map |
@@ -1,1 +0,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"} | ||
| {"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"} |
@@ -15,2 +15,3 @@ "use strict"; | ||
| GET_USER_IP_LIST: 'get-user-ip-list', | ||
| GET_USERS_IP_LIST: 'get-users-ip-list', | ||
| }; |
@@ -19,2 +19,3 @@ export declare const ROOT: "/node"; | ||
| readonly GET_USER_IP_LIST: "/node/stats/get-user-ip-list"; | ||
| readonly GET_USERS_IP_LIST: "/node/stats/get-users-ip-list"; | ||
| }; | ||
@@ -21,0 +22,0 @@ readonly HANDLER: { |
@@ -1,1 +0,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"} | ||
| {"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"} |
@@ -56,2 +56,3 @@ "use strict"; | ||
| GET_USER_IP_LIST: `${exports.ROOT}/${CONTROLLERS.STATS_CONTROLLER}/${CONTROLLERS.STATS_ROUTES.GET_USER_IP_LIST}`, | ||
| GET_USERS_IP_LIST: `${exports.ROOT}/${CONTROLLERS.STATS_CONTROLLER}/${CONTROLLERS.STATS_ROUTES.GET_USERS_IP_LIST}`, | ||
| }, | ||
@@ -58,0 +59,0 @@ HANDLER: { |
@@ -9,3 +9,4 @@ export * from './get-all-inbounds-stats.command'; | ||
| export * from './get-user-online-status.command'; | ||
| export * from './get-users-ip-list.command'; | ||
| export * from './get-users-stats.command'; | ||
| //# sourceMappingURL=index.d.ts.map |
@@ -1,1 +0,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"} | ||
| {"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"} |
@@ -25,2 +25,3 @@ "use strict"; | ||
| __exportStar(require("./get-user-online-status.command"), exports); | ||
| __exportStar(require("./get-users-ip-list.command"), exports); | ||
| __exportStar(require("./get-users-stats.command"), exports); |
+1
-1
| { | ||
| "name": "@remnawave/node-contract", | ||
| "version": "2.6.9", | ||
| "version": "2.6.10", | ||
| "description": "A node-contract library for Remnawave Panel", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
154976
2.58%178
1.71%3733
2.81%