@remnawave/node-contract
Advanced tools
Comparing version 0.2.7 to 0.2.8
@@ -8,3 +8,5 @@ export declare const STATS_CONTROLLER: "stats"; | ||
readonly GET_OUTBOUND_STATS: "get-outbound-stats"; | ||
readonly GET_ALL_OUTBOUNDS_STATS: "get-all-outbounds-stats"; | ||
readonly GET_ALL_INBOUNDS_STATS: "get-all-inbounds-stats"; | ||
}; | ||
//# sourceMappingURL=stats.d.ts.map |
@@ -11,2 +11,4 @@ "use strict"; | ||
GET_OUTBOUND_STATS: 'get-outbound-stats', | ||
GET_ALL_OUTBOUNDS_STATS: 'get-all-outbounds-stats', | ||
GET_ALL_INBOUNDS_STATS: 'get-all-inbounds-stats', | ||
}; |
@@ -14,2 +14,4 @@ export declare const ROOT: "/node"; | ||
readonly GET_OUTBOUND_STATS: "/node/stats/get-outbound-stats"; | ||
readonly GET_ALL_OUTBOUNDS_STATS: "/node/stats/get-all-outbounds-stats"; | ||
readonly GET_ALL_INBOUNDS_STATS: "/node/stats/get-all-inbounds-stats"; | ||
}; | ||
@@ -16,0 +18,0 @@ readonly HANDLER: { |
@@ -41,2 +41,4 @@ "use strict"; | ||
GET_OUTBOUND_STATS: `${exports.ROOT}/${CONTROLLERS.STATS_CONTROLLER}/${CONTROLLERS.STATS_ROUTES.GET_OUTBOUND_STATS}`, | ||
GET_ALL_OUTBOUNDS_STATS: `${exports.ROOT}/${CONTROLLERS.STATS_CONTROLLER}/${CONTROLLERS.STATS_ROUTES.GET_ALL_OUTBOUNDS_STATS}`, | ||
GET_ALL_INBOUNDS_STATS: `${exports.ROOT}/${CONTROLLERS.STATS_CONTROLLER}/${CONTROLLERS.STATS_ROUTES.GET_ALL_INBOUNDS_STATS}`, | ||
}, | ||
@@ -43,0 +45,0 @@ HANDLER: { |
@@ -22,4 +22,4 @@ import { z } from 'zod'; | ||
type: "trojan"; | ||
tag: string; | ||
username: string; | ||
tag: string; | ||
password: string; | ||
@@ -29,4 +29,4 @@ level: number; | ||
type: "trojan"; | ||
tag: string; | ||
username: string; | ||
tag: string; | ||
password: string; | ||
@@ -43,4 +43,4 @@ level?: number | undefined; | ||
type: "vless"; | ||
tag: string; | ||
username: string; | ||
tag: string; | ||
level: number; | ||
@@ -51,4 +51,4 @@ uuid: string; | ||
type: "vless"; | ||
tag: string; | ||
username: string; | ||
tag: string; | ||
uuid: string; | ||
@@ -67,4 +67,4 @@ flow: "" | "xtls-rprx-vision"; | ||
type: "shadowsocks"; | ||
tag: string; | ||
username: string; | ||
tag: string; | ||
password: string; | ||
@@ -76,4 +76,4 @@ level: number; | ||
type: "shadowsocks"; | ||
tag: string; | ||
username: string; | ||
tag: string; | ||
password: string; | ||
@@ -91,4 +91,4 @@ cipherType: CipherType; | ||
type: "shadowsocks2022"; | ||
tag: string; | ||
username: string; | ||
tag: string; | ||
level: number; | ||
@@ -98,4 +98,4 @@ key: string; | ||
type: "shadowsocks2022"; | ||
tag: string; | ||
username: string; | ||
tag: string; | ||
key: string; | ||
@@ -112,4 +112,4 @@ level?: number | undefined; | ||
type: "socks"; | ||
tag: string; | ||
username: string; | ||
tag: string; | ||
level: number; | ||
@@ -120,4 +120,4 @@ socks_username: string; | ||
type: "socks"; | ||
tag: string; | ||
username: string; | ||
tag: string; | ||
socks_username: string; | ||
@@ -135,4 +135,4 @@ socks_password: string; | ||
type: "http"; | ||
tag: string; | ||
username: string; | ||
tag: string; | ||
level: number; | ||
@@ -143,4 +143,4 @@ http_username: string; | ||
type: "http"; | ||
tag: string; | ||
username: string; | ||
tag: string; | ||
http_username: string; | ||
@@ -153,4 +153,4 @@ http_password: string; | ||
type: "trojan"; | ||
tag: string; | ||
username: string; | ||
tag: string; | ||
password: string; | ||
@@ -160,4 +160,4 @@ level: number; | ||
type: "vless"; | ||
tag: string; | ||
username: string; | ||
tag: string; | ||
level: number; | ||
@@ -168,4 +168,4 @@ uuid: string; | ||
type: "shadowsocks"; | ||
tag: string; | ||
username: string; | ||
tag: string; | ||
password: string; | ||
@@ -177,4 +177,4 @@ level: number; | ||
type: "shadowsocks2022"; | ||
tag: string; | ||
username: string; | ||
tag: string; | ||
level: number; | ||
@@ -184,4 +184,4 @@ key: string; | ||
type: "socks"; | ||
tag: string; | ||
username: string; | ||
tag: string; | ||
level: number; | ||
@@ -192,4 +192,4 @@ socks_username: string; | ||
type: "http"; | ||
tag: string; | ||
username: string; | ||
tag: string; | ||
level: number; | ||
@@ -202,4 +202,4 @@ http_username: string; | ||
type: "trojan"; | ||
tag: string; | ||
username: string; | ||
tag: string; | ||
password: string; | ||
@@ -209,4 +209,4 @@ level?: number | undefined; | ||
type: "vless"; | ||
tag: string; | ||
username: string; | ||
tag: string; | ||
uuid: string; | ||
@@ -217,4 +217,4 @@ flow: "" | "xtls-rprx-vision"; | ||
type: "shadowsocks"; | ||
tag: string; | ||
username: string; | ||
tag: string; | ||
password: string; | ||
@@ -226,4 +226,4 @@ cipherType: CipherType; | ||
type: "shadowsocks2022"; | ||
tag: string; | ||
username: string; | ||
tag: string; | ||
key: string; | ||
@@ -233,4 +233,4 @@ level?: number | undefined; | ||
type: "socks"; | ||
tag: string; | ||
username: string; | ||
tag: string; | ||
socks_username: string; | ||
@@ -241,4 +241,4 @@ socks_password: string; | ||
type: "http"; | ||
tag: string; | ||
username: string; | ||
tag: string; | ||
http_username: string; | ||
@@ -245,0 +245,0 @@ http_password: string; |
@@ -21,21 +21,21 @@ import { z } from 'zod'; | ||
}, "strip", z.ZodTypeAny, { | ||
inbound: string; | ||
downlink: number; | ||
uplink: number; | ||
}, { | ||
inbound: string; | ||
}, { | ||
downlink: number; | ||
uplink: number; | ||
inbound: string; | ||
}>; | ||
}, "strip", z.ZodTypeAny, { | ||
response: { | ||
inbound: string; | ||
downlink: number; | ||
uplink: number; | ||
inbound: string; | ||
}; | ||
}, { | ||
response: { | ||
inbound: string; | ||
downlink: number; | ||
uplink: number; | ||
inbound: string; | ||
}; | ||
@@ -42,0 +42,0 @@ }>; |
@@ -19,21 +19,21 @@ import { z } from 'zod'; | ||
}, "strip", z.ZodTypeAny, { | ||
username: string; | ||
downlink: number; | ||
uplink: number; | ||
username: string; | ||
}, { | ||
username: string; | ||
downlink: number; | ||
uplink: number; | ||
username: string; | ||
}>, "many">; | ||
}, "strip", z.ZodTypeAny, { | ||
users: { | ||
username: string; | ||
downlink: number; | ||
uplink: number; | ||
username: string; | ||
}[]; | ||
}, { | ||
users: { | ||
username: string; | ||
downlink: number; | ||
uplink: number; | ||
username: string; | ||
}[]; | ||
@@ -44,5 +44,5 @@ }>; | ||
users: { | ||
username: string; | ||
downlink: number; | ||
uplink: number; | ||
username: string; | ||
}[]; | ||
@@ -53,5 +53,5 @@ }; | ||
users: { | ||
username: string; | ||
downlink: number; | ||
uplink: number; | ||
username: string; | ||
}[]; | ||
@@ -58,0 +58,0 @@ }; |
@@ -0,6 +1,8 @@ | ||
export * from './get-all-inbounds-stats.command'; | ||
export * from './get-all-outbounds-stats.command'; | ||
export * from './get-inbound-stats.command'; | ||
export * from './get-outbound-stats.command'; | ||
export * from './get-system-stats.command'; | ||
export * from './get-user-online-status.command'; | ||
export * from './get-system-stats.command'; | ||
export * from './get-users-stats.command'; | ||
export * from './get-inbound-stats.command'; | ||
export * from './get-outbound-stats.command'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -17,6 +17,8 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__exportStar(require("./get-all-inbounds-stats.command"), exports); | ||
__exportStar(require("./get-all-outbounds-stats.command"), exports); | ||
__exportStar(require("./get-inbound-stats.command"), exports); | ||
__exportStar(require("./get-outbound-stats.command"), exports); | ||
__exportStar(require("./get-system-stats.command"), exports); | ||
__exportStar(require("./get-user-online-status.command"), exports); | ||
__exportStar(require("./get-system-stats.command"), exports); | ||
__exportStar(require("./get-users-stats.command"), exports); | ||
__exportStar(require("./get-inbound-stats.command"), exports); | ||
__exportStar(require("./get-outbound-stats.command"), exports); |
@@ -62,3 +62,13 @@ export declare const ERRORS: { | ||
}; | ||
readonly FAILED_TO_GET_INBOUNDS_STATS: { | ||
readonly code: "A015"; | ||
readonly message: "Failed to get inbounds stats"; | ||
readonly httpCode: 500; | ||
}; | ||
readonly FAILED_TO_GET_OUTBOUNDS_STATS: { | ||
readonly code: "A016"; | ||
readonly message: "Failed to get outbounds stats"; | ||
readonly httpCode: 500; | ||
}; | ||
}; | ||
//# sourceMappingURL=errors.d.ts.map |
@@ -41,2 +41,12 @@ "use strict"; | ||
}, | ||
FAILED_TO_GET_INBOUNDS_STATS: { | ||
code: 'A015', | ||
message: 'Failed to get inbounds stats', | ||
httpCode: 500, | ||
}, | ||
FAILED_TO_GET_OUTBOUNDS_STATS: { | ||
code: 'A016', | ||
message: 'Failed to get outbounds stats', | ||
httpCode: 500, | ||
}, | ||
}; |
{ | ||
"name": "@remnawave/node-contract", | ||
"version": "0.2.7", | ||
"version": "0.2.8", | ||
"description": "A node-contract library for Remnawave Panel", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
73612
103
1751