@remnawave/node-contract 0.3.3 → 0.3.5
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/index.d.ts +1 -0
- package/build/api/controllers/index.d.ts.map +1 -1
- package/build/api/controllers/index.js +1 -0
- package/build/api/controllers/vision.d.ts +6 -0
- package/build/api/controllers/vision.d.ts.map +1 -0
- package/build/api/controllers/vision.js +8 -0
- package/build/api/controllers/xray.d.ts +1 -0
- package/build/api/controllers/xray.d.ts.map +1 -1
- package/build/api/controllers/xray.js +1 -0
- package/build/api/routes.d.ts +5 -0
- package/build/api/routes.d.ts.map +1 -1
- package/build/api/routes.js +5 -0
- package/build/commands/index.d.ts +1 -0
- package/build/commands/index.d.ts.map +1 -1
- package/build/commands/index.js +1 -0
- package/build/commands/vision/block-ip.command.d.ts +39 -0
- package/build/commands/vision/block-ip.command.d.ts.map +1 -0
- package/build/commands/vision/block-ip.command.js +19 -0
- package/build/commands/vision/index.d.ts +3 -0
- package/build/commands/vision/index.d.ts.map +1 -0
- package/build/commands/vision/index.js +18 -0
- package/build/commands/vision/unblock-ip.command.d.ts +39 -0
- package/build/commands/vision/unblock-ip.command.d.ts.map +1 -0
- package/build/commands/vision/unblock-ip.command.js +19 -0
- package/build/commands/xray/get-node-health-check.command.d.ts +33 -0
- package/build/commands/xray/get-node-health-check.command.d.ts.map +1 -0
- package/build/commands/xray/get-node-health-check.command.js +16 -0
- package/build/commands/xray/index.d.ts +1 -0
- package/build/commands/xray/index.d.ts.map +1 -1
- package/build/commands/xray/index.js +1 -0
- package/build/constants/xray/stats.d.ts +10 -15
- package/build/constants/xray/stats.d.ts.map +1 -1
- package/build/constants/xray/stats.js +11 -16
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../api/controllers/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../api/controllers/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC"}
|
|
@@ -16,4 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./handler"), exports);
|
|
18
18
|
__exportStar(require("./stats"), exports);
|
|
19
|
+
__exportStar(require("./vision"), exports);
|
|
19
20
|
__exportStar(require("./xray"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vision.d.ts","sourceRoot":"","sources":["../../../api/controllers/vision.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,EAAG,QAAiB,CAAC;AAEnD,eAAO,MAAM,aAAa;;;CAGhB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"xray.d.ts","sourceRoot":"","sources":["../../../api/controllers/xray.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,EAAG,MAAe,CAAC;AAE/C,eAAO,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"xray.d.ts","sourceRoot":"","sources":["../../../api/controllers/xray.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,EAAG,MAAe,CAAC;AAE/C,eAAO,MAAM,WAAW;;;;;CAKd,CAAC"}
|
package/build/api/routes.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export declare const REST_API: {
|
|
|
4
4
|
readonly START: "/node/xray/start";
|
|
5
5
|
readonly STOP: "/node/xray/stop";
|
|
6
6
|
readonly STATUS: "/node/xray/status";
|
|
7
|
+
readonly NODE_HEALTH_CHECK: "/node/xray/healthcheck";
|
|
7
8
|
};
|
|
8
9
|
readonly STATS: {
|
|
9
10
|
readonly GET_USER_ONLINE_STATUS: "/node/stats/get-user-online-status";
|
|
@@ -20,5 +21,9 @@ export declare const REST_API: {
|
|
|
20
21
|
readonly GET_INBOUND_USERS_COUNT: "/node/handler/get-inbound-users-count";
|
|
21
22
|
readonly GET_INBOUND_USERS: "/node/handler/get-inbound-users";
|
|
22
23
|
};
|
|
24
|
+
readonly VISION: {
|
|
25
|
+
readonly UNBLOCK_IP: "vision/unblock-ip";
|
|
26
|
+
readonly BLOCK_IP: "vision/block-ip";
|
|
27
|
+
};
|
|
23
28
|
};
|
|
24
29
|
//# sourceMappingURL=routes.d.ts.map
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;CA0BX,CAAC"}
|
package/build/api/routes.js
CHANGED
|
@@ -41,6 +41,7 @@ exports.REST_API = {
|
|
|
41
41
|
START: `${exports.ROOT}/${CONTROLLERS.XRAY_CONTROLLER}/${CONTROLLERS.XRAY_ROUTES.START}`,
|
|
42
42
|
STOP: `${exports.ROOT}/${CONTROLLERS.XRAY_CONTROLLER}/${CONTROLLERS.XRAY_ROUTES.STOP}`,
|
|
43
43
|
STATUS: `${exports.ROOT}/${CONTROLLERS.XRAY_CONTROLLER}/${CONTROLLERS.XRAY_ROUTES.STATUS}`,
|
|
44
|
+
NODE_HEALTH_CHECK: `${exports.ROOT}/${CONTROLLERS.XRAY_CONTROLLER}/${CONTROLLERS.XRAY_ROUTES.NODE_HEALTH_CHECK}`,
|
|
44
45
|
},
|
|
45
46
|
STATS: {
|
|
46
47
|
GET_USER_ONLINE_STATUS: `${exports.ROOT}/${CONTROLLERS.STATS_CONTROLLER}/${CONTROLLERS.STATS_ROUTES.GET_USER_ONLINE_STATUS}`,
|
|
@@ -57,4 +58,8 @@ exports.REST_API = {
|
|
|
57
58
|
GET_INBOUND_USERS_COUNT: `${exports.ROOT}/${CONTROLLERS.HANDLER_CONTROLLER}/${CONTROLLERS.HANDLER_ROUTES.GET_INBOUND_USERS_COUNT}`,
|
|
58
59
|
GET_INBOUND_USERS: `${exports.ROOT}/${CONTROLLERS.HANDLER_CONTROLLER}/${CONTROLLERS.HANDLER_ROUTES.GET_INBOUND_USERS}`,
|
|
59
60
|
},
|
|
61
|
+
VISION: {
|
|
62
|
+
UNBLOCK_IP: `${CONTROLLERS.VISION_CONTROLLER}/${CONTROLLERS.VISION_ROUTES.UNBLOCK_IP}`,
|
|
63
|
+
BLOCK_IP: `${CONTROLLERS.VISION_CONTROLLER}/${CONTROLLERS.VISION_ROUTES.BLOCK_IP}`,
|
|
64
|
+
},
|
|
60
65
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../commands/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../commands/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC"}
|
package/build/commands/index.js
CHANGED
|
@@ -16,4 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./handler"), exports);
|
|
18
18
|
__exportStar(require("./stats"), exports);
|
|
19
|
+
__exportStar(require("./vision"), exports);
|
|
19
20
|
__exportStar(require("./xray"), exports);
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace BlockIpCommand {
|
|
3
|
+
const url: "vision/block-ip";
|
|
4
|
+
const RequestSchema: z.ZodObject<{
|
|
5
|
+
ip: z.ZodString;
|
|
6
|
+
username: z.ZodString;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
username: string;
|
|
9
|
+
ip: string;
|
|
10
|
+
}, {
|
|
11
|
+
username: string;
|
|
12
|
+
ip: string;
|
|
13
|
+
}>;
|
|
14
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
15
|
+
const ResponseSchema: z.ZodObject<{
|
|
16
|
+
response: z.ZodObject<{
|
|
17
|
+
success: z.ZodBoolean;
|
|
18
|
+
error: z.ZodNullable<z.ZodString>;
|
|
19
|
+
}, "strip", z.ZodTypeAny, {
|
|
20
|
+
success: boolean;
|
|
21
|
+
error: string | null;
|
|
22
|
+
}, {
|
|
23
|
+
success: boolean;
|
|
24
|
+
error: string | null;
|
|
25
|
+
}>;
|
|
26
|
+
}, "strip", z.ZodTypeAny, {
|
|
27
|
+
response: {
|
|
28
|
+
success: boolean;
|
|
29
|
+
error: string | null;
|
|
30
|
+
};
|
|
31
|
+
}, {
|
|
32
|
+
response: {
|
|
33
|
+
success: boolean;
|
|
34
|
+
error: string | null;
|
|
35
|
+
};
|
|
36
|
+
}>;
|
|
37
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=block-ip.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"block-ip.command.d.ts","sourceRoot":"","sources":["../../../commands/vision/block-ip.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,yBAAiB,cAAc,CAAC;IACrB,MAAM,GAAG,mBAA2B,CAAC;IAErC,MAAM,aAAa;;;;;;;;;MAGxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;MAKzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BlockIpCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const api_1 = require("../../api");
|
|
6
|
+
var BlockIpCommand;
|
|
7
|
+
(function (BlockIpCommand) {
|
|
8
|
+
BlockIpCommand.url = api_1.REST_API.VISION.BLOCK_IP;
|
|
9
|
+
BlockIpCommand.RequestSchema = zod_1.z.object({
|
|
10
|
+
ip: zod_1.z.string(),
|
|
11
|
+
username: zod_1.z.string(),
|
|
12
|
+
});
|
|
13
|
+
BlockIpCommand.ResponseSchema = zod_1.z.object({
|
|
14
|
+
response: zod_1.z.object({
|
|
15
|
+
success: zod_1.z.boolean(),
|
|
16
|
+
error: zod_1.z.string().nullable(),
|
|
17
|
+
}),
|
|
18
|
+
});
|
|
19
|
+
})(BlockIpCommand || (exports.BlockIpCommand = BlockIpCommand = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../commands/vision/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./block-ip.command"), exports);
|
|
18
|
+
__exportStar(require("./unblock-ip.command"), exports);
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace UnblockIpCommand {
|
|
3
|
+
const url: "vision/unblock-ip";
|
|
4
|
+
const RequestSchema: z.ZodObject<{
|
|
5
|
+
ip: z.ZodString;
|
|
6
|
+
username: z.ZodString;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
username: string;
|
|
9
|
+
ip: string;
|
|
10
|
+
}, {
|
|
11
|
+
username: string;
|
|
12
|
+
ip: string;
|
|
13
|
+
}>;
|
|
14
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
15
|
+
const ResponseSchema: z.ZodObject<{
|
|
16
|
+
response: z.ZodObject<{
|
|
17
|
+
success: z.ZodBoolean;
|
|
18
|
+
error: z.ZodNullable<z.ZodString>;
|
|
19
|
+
}, "strip", z.ZodTypeAny, {
|
|
20
|
+
success: boolean;
|
|
21
|
+
error: string | null;
|
|
22
|
+
}, {
|
|
23
|
+
success: boolean;
|
|
24
|
+
error: string | null;
|
|
25
|
+
}>;
|
|
26
|
+
}, "strip", z.ZodTypeAny, {
|
|
27
|
+
response: {
|
|
28
|
+
success: boolean;
|
|
29
|
+
error: string | null;
|
|
30
|
+
};
|
|
31
|
+
}, {
|
|
32
|
+
response: {
|
|
33
|
+
success: boolean;
|
|
34
|
+
error: string | null;
|
|
35
|
+
};
|
|
36
|
+
}>;
|
|
37
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=unblock-ip.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unblock-ip.command.d.ts","sourceRoot":"","sources":["../../../commands/vision/unblock-ip.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,yBAAiB,gBAAgB,CAAC;IACvB,MAAM,GAAG,qBAA6B,CAAC;IAEvC,MAAM,aAAa;;;;;;;;;MAGxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;MAKzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UnblockIpCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const api_1 = require("../../api");
|
|
6
|
+
var UnblockIpCommand;
|
|
7
|
+
(function (UnblockIpCommand) {
|
|
8
|
+
UnblockIpCommand.url = api_1.REST_API.VISION.UNBLOCK_IP;
|
|
9
|
+
UnblockIpCommand.RequestSchema = zod_1.z.object({
|
|
10
|
+
ip: zod_1.z.string(),
|
|
11
|
+
username: zod_1.z.string(),
|
|
12
|
+
});
|
|
13
|
+
UnblockIpCommand.ResponseSchema = zod_1.z.object({
|
|
14
|
+
response: zod_1.z.object({
|
|
15
|
+
success: zod_1.z.boolean(),
|
|
16
|
+
error: zod_1.z.string().nullable(),
|
|
17
|
+
}),
|
|
18
|
+
});
|
|
19
|
+
})(UnblockIpCommand || (exports.UnblockIpCommand = UnblockIpCommand = {}));
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace GetNodeHealthCheckCommand {
|
|
3
|
+
const url: "/node/xray/healthcheck";
|
|
4
|
+
const ResponseSchema: z.ZodObject<{
|
|
5
|
+
response: z.ZodObject<{
|
|
6
|
+
isAlive: z.ZodBoolean;
|
|
7
|
+
xrayInternalStatusCached: z.ZodBoolean;
|
|
8
|
+
xrayVersion: z.ZodNullable<z.ZodString>;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
isAlive: boolean;
|
|
11
|
+
xrayInternalStatusCached: boolean;
|
|
12
|
+
xrayVersion: string | null;
|
|
13
|
+
}, {
|
|
14
|
+
isAlive: boolean;
|
|
15
|
+
xrayInternalStatusCached: boolean;
|
|
16
|
+
xrayVersion: string | null;
|
|
17
|
+
}>;
|
|
18
|
+
}, "strip", z.ZodTypeAny, {
|
|
19
|
+
response: {
|
|
20
|
+
isAlive: boolean;
|
|
21
|
+
xrayInternalStatusCached: boolean;
|
|
22
|
+
xrayVersion: string | null;
|
|
23
|
+
};
|
|
24
|
+
}, {
|
|
25
|
+
response: {
|
|
26
|
+
isAlive: boolean;
|
|
27
|
+
xrayInternalStatusCached: boolean;
|
|
28
|
+
xrayVersion: string | null;
|
|
29
|
+
};
|
|
30
|
+
}>;
|
|
31
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=get-node-health-check.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-node-health-check.command.d.ts","sourceRoot":"","sources":["../../../commands/xray/get-node-health-check.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,yBAAiB,yBAAyB,CAAC;IAChC,MAAM,GAAG,0BAAkC,CAAC;IAE5C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;MAMzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetNodeHealthCheckCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const api_1 = require("../../api");
|
|
6
|
+
var GetNodeHealthCheckCommand;
|
|
7
|
+
(function (GetNodeHealthCheckCommand) {
|
|
8
|
+
GetNodeHealthCheckCommand.url = api_1.REST_API.XRAY.NODE_HEALTH_CHECK;
|
|
9
|
+
GetNodeHealthCheckCommand.ResponseSchema = zod_1.z.object({
|
|
10
|
+
response: zod_1.z.object({
|
|
11
|
+
isAlive: zod_1.z.boolean(),
|
|
12
|
+
xrayInternalStatusCached: zod_1.z.boolean(),
|
|
13
|
+
xrayVersion: zod_1.z.string().nullable(),
|
|
14
|
+
}),
|
|
15
|
+
});
|
|
16
|
+
})(GetNodeHealthCheckCommand || (exports.GetNodeHealthCheckCommand = GetNodeHealthCheckCommand = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../commands/xray/index.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC;AACjD,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../commands/xray/index.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC;AAChD,cAAc,kCAAkC,CAAC;AACjD,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC"}
|
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./get-node-health-check.command"), exports);
|
|
17
18
|
__exportStar(require("./get-status-and-version.command"), exports);
|
|
18
19
|
__exportStar(require("./start.command"), exports);
|
|
19
20
|
__exportStar(require("./stop.command"), exports);
|
|
@@ -4,7 +4,6 @@ export declare const XRAY_DEFAULT_POLICY_MODEL: {
|
|
|
4
4
|
readonly '0': {
|
|
5
5
|
readonly statsUserUplink: true;
|
|
6
6
|
readonly statsUserDownlink: true;
|
|
7
|
-
readonly statsUserOnline: true;
|
|
8
7
|
};
|
|
9
8
|
};
|
|
10
9
|
readonly system: {
|
|
@@ -20,26 +19,22 @@ export declare const XRAY_DEFAULT_STATS_MODEL: {
|
|
|
20
19
|
};
|
|
21
20
|
export declare const XRAY_DEFAULT_API_MODEL: {
|
|
22
21
|
readonly api: {
|
|
23
|
-
readonly services: readonly ["HandlerService", "StatsService", "
|
|
24
|
-
readonly
|
|
25
|
-
readonly tag: "API";
|
|
22
|
+
readonly services: readonly ["HandlerService", "StatsService", "RoutingService"];
|
|
23
|
+
readonly tag: "api";
|
|
26
24
|
};
|
|
27
|
-
readonly metrics: {
|
|
28
|
-
readonly tag: "metrics_out";
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
export declare const XRAY_ROUTING_RULES_MODEL: {
|
|
32
|
-
readonly type: "field";
|
|
33
|
-
readonly inboundTag: readonly ["metrics_in"];
|
|
34
|
-
readonly outboundTag: "metrics_out";
|
|
35
25
|
};
|
|
36
26
|
export declare const XRAY_API_INBOUND_MODEL: {
|
|
27
|
+
readonly tag: "api";
|
|
28
|
+
readonly port: 61000;
|
|
37
29
|
readonly listen: "127.0.0.1";
|
|
38
|
-
readonly port: 61002;
|
|
39
30
|
readonly protocol: "dokodemo-door";
|
|
40
31
|
readonly settings: {
|
|
41
|
-
readonly address: "
|
|
32
|
+
readonly address: "127.0.0.1";
|
|
42
33
|
};
|
|
43
|
-
|
|
34
|
+
};
|
|
35
|
+
export declare const XRAY_ROUTING_RULES_MODEL: {
|
|
36
|
+
readonly type: "field";
|
|
37
|
+
readonly inboundTag: readonly ["api"];
|
|
38
|
+
readonly outboundTag: "api";
|
|
44
39
|
};
|
|
45
40
|
//# sourceMappingURL=stats.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stats.d.ts","sourceRoot":"","sources":["../../../constants/xray/stats.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yBAAyB
|
|
1
|
+
{"version":3,"file":"stats.d.ts","sourceRoot":"","sources":["../../../constants/xray/stats.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;CAe5B,CAAC;AAEX,eAAO,MAAM,wBAAwB;;CAE3B,CAAC;AAEX,eAAO,MAAM,sBAAsB;;;;;CAKzB,CAAC;AAEX,eAAO,MAAM,sBAAsB;;;;;;;;CAQzB,CAAC;AAEX,eAAO,MAAM,wBAAwB;;;;CAI3B,CAAC"}
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.XRAY_ROUTING_RULES_MODEL = exports.XRAY_API_INBOUND_MODEL = exports.XRAY_DEFAULT_API_MODEL = exports.XRAY_DEFAULT_STATS_MODEL = exports.XRAY_DEFAULT_POLICY_MODEL = void 0;
|
|
4
4
|
exports.XRAY_DEFAULT_POLICY_MODEL = {
|
|
5
5
|
policy: {
|
|
6
6
|
levels: {
|
|
7
7
|
'0': {
|
|
8
8
|
statsUserUplink: true,
|
|
9
9
|
statsUserDownlink: true,
|
|
10
|
-
statsUserOnline: true,
|
|
11
10
|
},
|
|
12
11
|
},
|
|
13
12
|
system: {
|
|
@@ -23,25 +22,21 @@ exports.XRAY_DEFAULT_STATS_MODEL = {
|
|
|
23
22
|
};
|
|
24
23
|
exports.XRAY_DEFAULT_API_MODEL = {
|
|
25
24
|
api: {
|
|
26
|
-
services: ['HandlerService', 'StatsService', '
|
|
27
|
-
|
|
28
|
-
tag: 'API',
|
|
25
|
+
services: ['HandlerService', 'StatsService', 'RoutingService'],
|
|
26
|
+
tag: 'api',
|
|
29
27
|
},
|
|
30
|
-
metrics: {
|
|
31
|
-
tag: 'metrics_out',
|
|
32
|
-
},
|
|
33
|
-
};
|
|
34
|
-
exports.XRAY_ROUTING_RULES_MODEL = {
|
|
35
|
-
type: 'field',
|
|
36
|
-
inboundTag: ['metrics_in'],
|
|
37
|
-
outboundTag: 'metrics_out',
|
|
38
28
|
};
|
|
39
29
|
exports.XRAY_API_INBOUND_MODEL = {
|
|
30
|
+
tag: 'api',
|
|
31
|
+
port: 61000,
|
|
40
32
|
listen: '127.0.0.1',
|
|
41
|
-
port: 61002,
|
|
42
33
|
protocol: 'dokodemo-door',
|
|
43
34
|
settings: {
|
|
44
|
-
address: '
|
|
35
|
+
address: '127.0.0.1',
|
|
45
36
|
},
|
|
46
|
-
|
|
37
|
+
};
|
|
38
|
+
exports.XRAY_ROUTING_RULES_MODEL = {
|
|
39
|
+
type: 'field',
|
|
40
|
+
inboundTag: ['api'],
|
|
41
|
+
outboundTag: 'api',
|
|
47
42
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remnawave/node-contract",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.5",
|
|
4
4
|
"description": "A node-contract library for Remnawave Panel",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"bugs": {
|
|
22
22
|
"url": "https://github.com/remnawave/node/issues"
|
|
23
23
|
},
|
|
24
|
-
"license": "
|
|
24
|
+
"license": "AGPL-3.0-only",
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"zod": "^3.22.4"
|
|
27
27
|
}
|