@remnawave/node-contract 0.3.2 → 0.3.4
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 -1
- package/build/api/controllers/index.d.ts.map +1 -1
- package/build/api/controllers/index.js +1 -1
- package/build/api/index.d.ts +1 -1
- package/build/api/index.d.ts.map +1 -1
- package/build/api/index.js +1 -1
- package/build/commands/handler/add-user.command.d.ts +7 -7
- package/build/commands/handler/add-user.command.d.ts.map +1 -1
- package/build/commands/handler/add-user.command.js +2 -2
- package/build/commands/handler/get-inbound-users-count.command.d.ts.map +1 -1
- package/build/commands/handler/get-inbound-users.command.d.ts.map +1 -1
- package/build/commands/handler/index.d.ts +1 -1
- package/build/commands/handler/index.d.ts.map +1 -1
- package/build/commands/handler/index.js +1 -1
- package/build/commands/handler/remove-user.command.d.ts +4 -4
- package/build/commands/handler/remove-user.command.d.ts.map +1 -1
- package/build/commands/index.d.ts +2 -2
- package/build/commands/index.d.ts.map +1 -1
- package/build/commands/index.js +2 -2
- package/build/commands/stats/get-all-inbounds-stats.command.d.ts.map +1 -1
- package/build/commands/stats/get-all-outbounds-stats.command.d.ts.map +1 -1
- package/build/commands/stats/get-inbound-stats.command.d.ts +2 -2
- package/build/commands/stats/get-inbound-stats.command.d.ts.map +1 -1
- package/build/commands/stats/get-outbound-stats.command.d.ts +2 -2
- package/build/commands/stats/get-outbound-stats.command.d.ts.map +1 -1
- package/build/commands/stats/get-system-stats.command.d.ts.map +1 -1
- package/build/commands/stats/get-user-online-status.command.d.ts.map +1 -1
- package/build/commands/stats/get-users-stats.command.d.ts +6 -6
- package/build/commands/stats/get-users-stats.command.d.ts.map +1 -1
- package/build/commands/xray/get-status-and-version.command.d.ts +4 -4
- package/build/commands/xray/get-status-and-version.command.d.ts.map +1 -1
- package/build/commands/xray/index.d.ts +1 -1
- package/build/commands/xray/index.d.ts.map +1 -1
- package/build/commands/xray/index.js +1 -1
- package/build/commands/xray/start.command.d.ts +8 -8
- package/build/commands/xray/start.command.d.ts.map +1 -1
- package/build/commands/xray/stop.command.d.ts.map +1 -1
- package/build/constants/index.d.ts +1 -0
- package/build/constants/index.d.ts.map +1 -1
- package/build/constants/index.js +1 -0
- package/build/constants/internal/index.d.ts +2 -0
- package/build/constants/internal/index.d.ts.map +1 -0
- package/build/constants/internal/index.js +17 -0
- package/build/constants/internal/internal.constants.d.ts +5 -0
- package/build/constants/internal/internal.constants.d.ts.map +1 -0
- package/build/constants/internal/internal.constants.js +7 -0
- package/build/constants/xray/stats.d.ts +9 -14
- package/build/constants/xray/stats.d.ts.map +1 -1
- package/build/constants/xray/stats.js +10 -15
- package/build/index.d.ts +2 -2
- package/build/index.d.ts.map +1 -1
- package/build/index.js +2 -2
- package/package.json +9 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../api/controllers/index.ts"],"names":[],"mappings":"AAAA,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,QAAQ,CAAC"}
|
|
@@ -14,6 +14,6 @@ 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("./handler"), exports);
|
|
17
18
|
__exportStar(require("./stats"), exports);
|
|
18
19
|
__exportStar(require("./xray"), exports);
|
|
19
|
-
__exportStar(require("./handler"), exports);
|
package/build/api/index.d.ts
CHANGED
package/build/api/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../api/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../api/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC"}
|
package/build/api/index.js
CHANGED
|
@@ -14,5 +14,5 @@ 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("./routes"), exports);
|
|
18
17
|
__exportStar(require("./controllers"), exports);
|
|
18
|
+
__exportStar(require("./routes"), exports);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare enum CipherType {
|
|
3
|
-
UNKNOWN = 0,
|
|
4
3
|
AES_128_GCM = 5,
|
|
5
4
|
AES_256_GCM = 6,
|
|
6
5
|
CHACHA20_POLY1305 = 7,
|
|
7
|
-
XCHACHA20_POLY1305 = 8,
|
|
8
6
|
NONE = 9,
|
|
9
|
-
|
|
7
|
+
UNKNOWN = 0,
|
|
8
|
+
UNRECOGNIZED = -1,
|
|
9
|
+
XCHACHA20_POLY1305 = 8
|
|
10
10
|
}
|
|
11
11
|
export declare namespace AddUserCommand {
|
|
12
12
|
const url: "/node/handler/add-user";
|
|
@@ -228,21 +228,21 @@ export declare namespace AddUserCommand {
|
|
|
228
228
|
success: z.ZodBoolean;
|
|
229
229
|
error: z.ZodNullable<z.ZodString>;
|
|
230
230
|
}, "strip", z.ZodTypeAny, {
|
|
231
|
-
error: string | null;
|
|
232
231
|
success: boolean;
|
|
233
|
-
}, {
|
|
234
232
|
error: string | null;
|
|
233
|
+
}, {
|
|
235
234
|
success: boolean;
|
|
235
|
+
error: string | null;
|
|
236
236
|
}>;
|
|
237
237
|
}, "strip", z.ZodTypeAny, {
|
|
238
238
|
response: {
|
|
239
|
-
error: string | null;
|
|
240
239
|
success: boolean;
|
|
240
|
+
error: string | null;
|
|
241
241
|
};
|
|
242
242
|
}, {
|
|
243
243
|
response: {
|
|
244
|
-
error: string | null;
|
|
245
244
|
success: boolean;
|
|
245
|
+
error: string | null;
|
|
246
246
|
};
|
|
247
247
|
}>;
|
|
248
248
|
type Response = z.infer<typeof ResponseSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-user.command.d.ts","sourceRoot":"","sources":["../../../commands/handler/add-user.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"add-user.command.d.ts","sourceRoot":"","sources":["../../../commands/handler/add-user.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,oBAAY,UAAU;IAClB,WAAW,IAAI;IACf,WAAW,IAAI;IACf,iBAAiB,IAAI;IACrB,IAAI,IAAI;IACR,OAAO,IAAI;IACX,YAAY,KAAK;IACjB,kBAAkB,IAAI;CACzB;AAED,yBAAiB,cAAc,CAAC;IACrB,MAAM,GAAG,0BAA4B,CAAC;IAuDtC,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAWxB,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"}
|
|
@@ -5,13 +5,13 @@ const zod_1 = require("zod");
|
|
|
5
5
|
const api_1 = require("../../api");
|
|
6
6
|
var CipherType;
|
|
7
7
|
(function (CipherType) {
|
|
8
|
-
CipherType[CipherType["UNKNOWN"] = 0] = "UNKNOWN";
|
|
9
8
|
CipherType[CipherType["AES_128_GCM"] = 5] = "AES_128_GCM";
|
|
10
9
|
CipherType[CipherType["AES_256_GCM"] = 6] = "AES_256_GCM";
|
|
11
10
|
CipherType[CipherType["CHACHA20_POLY1305"] = 7] = "CHACHA20_POLY1305";
|
|
12
|
-
CipherType[CipherType["XCHACHA20_POLY1305"] = 8] = "XCHACHA20_POLY1305";
|
|
13
11
|
CipherType[CipherType["NONE"] = 9] = "NONE";
|
|
12
|
+
CipherType[CipherType["UNKNOWN"] = 0] = "UNKNOWN";
|
|
14
13
|
CipherType[CipherType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
14
|
+
CipherType[CipherType["XCHACHA20_POLY1305"] = 8] = "XCHACHA20_POLY1305";
|
|
15
15
|
})(CipherType || (exports.CipherType = CipherType = {}));
|
|
16
16
|
var AddUserCommand;
|
|
17
17
|
(function (AddUserCommand) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-inbound-users-count.command.d.ts","sourceRoot":"","sources":["../../../commands/handler/get-inbound-users-count.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"get-inbound-users-count.command.d.ts","sourceRoot":"","sources":["../../../commands/handler/get-inbound-users-count.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,yBAAiB,2BAA2B,CAAC;IAClC,MAAM,GAAG,yCAA2C,CAAC;IAErD,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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-inbound-users.command.d.ts","sourceRoot":"","sources":["../../../commands/handler/get-inbound-users.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"get-inbound-users.command.d.ts","sourceRoot":"","sources":["../../../commands/handler/get-inbound-users.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,yBAAiB,sBAAsB,CAAC;IAC7B,MAAM,GAAG,mCAAqC,CAAC;IAC/C,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAUzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../commands/handler/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../commands/handler/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,mCAAmC,CAAC;AAClD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC"}
|
|
@@ -15,6 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./add-user.command"), exports);
|
|
18
|
-
__exportStar(require("./get-inbound-users.command"), exports);
|
|
19
18
|
__exportStar(require("./get-inbound-users-count.command"), exports);
|
|
19
|
+
__exportStar(require("./get-inbound-users.command"), exports);
|
|
20
20
|
__exportStar(require("./remove-user.command"), exports);
|
|
@@ -17,21 +17,21 @@ export declare namespace RemoveUserCommand {
|
|
|
17
17
|
success: z.ZodBoolean;
|
|
18
18
|
error: z.ZodNullable<z.ZodString>;
|
|
19
19
|
}, "strip", z.ZodTypeAny, {
|
|
20
|
-
error: string | null;
|
|
21
20
|
success: boolean;
|
|
22
|
-
}, {
|
|
23
21
|
error: string | null;
|
|
22
|
+
}, {
|
|
24
23
|
success: boolean;
|
|
24
|
+
error: string | null;
|
|
25
25
|
}>;
|
|
26
26
|
}, "strip", z.ZodTypeAny, {
|
|
27
27
|
response: {
|
|
28
|
-
error: string | null;
|
|
29
28
|
success: boolean;
|
|
29
|
+
error: string | null;
|
|
30
30
|
};
|
|
31
31
|
}, {
|
|
32
32
|
response: {
|
|
33
|
-
error: string | null;
|
|
34
33
|
success: boolean;
|
|
34
|
+
error: string | null;
|
|
35
35
|
};
|
|
36
36
|
}>;
|
|
37
37
|
type Response = z.infer<typeof ResponseSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remove-user.command.d.ts","sourceRoot":"","sources":["../../../commands/handler/remove-user.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"remove-user.command.d.ts","sourceRoot":"","sources":["../../../commands/handler/remove-user.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,6BAA+B,CAAC;IAEzC,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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../commands/index.ts"],"names":[],"mappings":"AAAA,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,QAAQ,CAAC"}
|
package/build/commands/index.js
CHANGED
|
@@ -14,6 +14,6 @@ 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("./xray"), exports);
|
|
18
|
-
__exportStar(require("./stats"), exports);
|
|
19
17
|
__exportStar(require("./handler"), exports);
|
|
18
|
+
__exportStar(require("./stats"), exports);
|
|
19
|
+
__exportStar(require("./xray"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-all-inbounds-stats.command.d.ts","sourceRoot":"","sources":["../../../commands/stats/get-all-inbounds-stats.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"get-all-inbounds-stats.command.d.ts","sourceRoot":"","sources":["../../../commands/stats/get-all-inbounds-stats.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,0BAA0B,CAAC;IACjC,MAAM,GAAG,sCAAwC,CAAC;IAElD,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAUzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-all-outbounds-stats.command.d.ts","sourceRoot":"","sources":["../../../commands/stats/get-all-outbounds-stats.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"get-all-outbounds-stats.command.d.ts","sourceRoot":"","sources":["../../../commands/stats/get-all-outbounds-stats.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,2BAA2B,CAAC;IAClC,MAAM,GAAG,uCAAyC,CAAC;IAEnD,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAUzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -5,11 +5,11 @@ export declare namespace GetInboundStatsCommand {
|
|
|
5
5
|
tag: z.ZodString;
|
|
6
6
|
reset: z.ZodBoolean;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
|
-
reset: boolean;
|
|
9
8
|
tag: string;
|
|
10
|
-
}, {
|
|
11
9
|
reset: boolean;
|
|
10
|
+
}, {
|
|
12
11
|
tag: string;
|
|
12
|
+
reset: boolean;
|
|
13
13
|
}>;
|
|
14
14
|
type Request = z.infer<typeof RequestSchema>;
|
|
15
15
|
const ResponseSchema: z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-inbound-stats.command.d.ts","sourceRoot":"","sources":["../../../commands/stats/get-inbound-stats.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"get-inbound-stats.command.d.ts","sourceRoot":"","sources":["../../../commands/stats/get-inbound-stats.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,yBAAiB,sBAAsB,CAAC;IAC7B,MAAM,GAAG,iCAAmC,CAAC;IAE7C,MAAM,aAAa;;;;;;;;;MAGxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;MAMzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -5,11 +5,11 @@ export declare namespace GetOutboundStatsCommand {
|
|
|
5
5
|
tag: z.ZodString;
|
|
6
6
|
reset: z.ZodBoolean;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
|
-
reset: boolean;
|
|
9
8
|
tag: string;
|
|
10
|
-
}, {
|
|
11
9
|
reset: boolean;
|
|
10
|
+
}, {
|
|
12
11
|
tag: string;
|
|
12
|
+
reset: boolean;
|
|
13
13
|
}>;
|
|
14
14
|
type Request = z.infer<typeof RequestSchema>;
|
|
15
15
|
const ResponseSchema: z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-outbound-stats.command.d.ts","sourceRoot":"","sources":["../../../commands/stats/get-outbound-stats.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"get-outbound-stats.command.d.ts","sourceRoot":"","sources":["../../../commands/stats/get-outbound-stats.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,uBAAuB,CAAC;IAC9B,MAAM,GAAG,kCAAoC,CAAC;IAE9C,MAAM,aAAa;;;;;;;;;MAGxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;MAMzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-system-stats.command.d.ts","sourceRoot":"","sources":["../../../commands/stats/get-system-stats.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"get-system-stats.command.d.ts","sourceRoot":"","sources":["../../../commands/stats/get-system-stats.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,qBAAqB,CAAC;IAC5B,MAAM,GAAG,gCAAkC,CAAC;IAE5C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAazB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-user-online-status.command.d.ts","sourceRoot":"","sources":["../../../commands/stats/get-user-online-status.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"get-user-online-status.command.d.ts","sourceRoot":"","sources":["../../../commands/stats/get-user-online-status.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,0BAA0B,CAAC;IACjC,MAAM,GAAG,sCAAwC,CAAC;IAClD,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"}
|
|
@@ -16,41 +16,41 @@ export declare namespace GetUsersStatsCommand {
|
|
|
16
16
|
downlink: z.ZodNumber;
|
|
17
17
|
uplink: z.ZodNumber;
|
|
18
18
|
}, "strip", z.ZodTypeAny, {
|
|
19
|
+
username: string;
|
|
19
20
|
downlink: number;
|
|
20
21
|
uplink: number;
|
|
21
|
-
username: string;
|
|
22
22
|
}, {
|
|
23
|
+
username: string;
|
|
23
24
|
downlink: number;
|
|
24
25
|
uplink: number;
|
|
25
|
-
username: string;
|
|
26
26
|
}>, "many">;
|
|
27
27
|
}, "strip", z.ZodTypeAny, {
|
|
28
28
|
users: {
|
|
29
|
+
username: string;
|
|
29
30
|
downlink: number;
|
|
30
31
|
uplink: number;
|
|
31
|
-
username: string;
|
|
32
32
|
}[];
|
|
33
33
|
}, {
|
|
34
34
|
users: {
|
|
35
|
+
username: string;
|
|
35
36
|
downlink: number;
|
|
36
37
|
uplink: number;
|
|
37
|
-
username: string;
|
|
38
38
|
}[];
|
|
39
39
|
}>;
|
|
40
40
|
}, "strip", z.ZodTypeAny, {
|
|
41
41
|
response: {
|
|
42
42
|
users: {
|
|
43
|
+
username: string;
|
|
43
44
|
downlink: number;
|
|
44
45
|
uplink: number;
|
|
45
|
-
username: string;
|
|
46
46
|
}[];
|
|
47
47
|
};
|
|
48
48
|
}, {
|
|
49
49
|
response: {
|
|
50
50
|
users: {
|
|
51
|
+
username: string;
|
|
51
52
|
downlink: number;
|
|
52
53
|
uplink: number;
|
|
53
|
-
username: string;
|
|
54
54
|
}[];
|
|
55
55
|
};
|
|
56
56
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-users-stats.command.d.ts","sourceRoot":"","sources":["../../../commands/stats/get-users-stats.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"get-users-stats.command.d.ts","sourceRoot":"","sources":["../../../commands/stats/get-users-stats.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,oBAAoB,CAAC;IAC3B,MAAM,GAAG,+BAAiC,CAAC;IAE3C,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAUzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -6,21 +6,21 @@ export declare namespace GetStatusAndVersionCommand {
|
|
|
6
6
|
isRunning: z.ZodBoolean;
|
|
7
7
|
version: z.ZodNullable<z.ZodString>;
|
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
|
9
|
-
version: string | null;
|
|
10
9
|
isRunning: boolean;
|
|
11
|
-
}, {
|
|
12
10
|
version: string | null;
|
|
11
|
+
}, {
|
|
13
12
|
isRunning: boolean;
|
|
13
|
+
version: string | null;
|
|
14
14
|
}>;
|
|
15
15
|
}, "strip", z.ZodTypeAny, {
|
|
16
16
|
response: {
|
|
17
|
-
version: string | null;
|
|
18
17
|
isRunning: boolean;
|
|
18
|
+
version: string | null;
|
|
19
19
|
};
|
|
20
20
|
}, {
|
|
21
21
|
response: {
|
|
22
|
-
version: string | null;
|
|
23
22
|
isRunning: boolean;
|
|
23
|
+
version: string | null;
|
|
24
24
|
};
|
|
25
25
|
}>;
|
|
26
26
|
type Response = z.infer<typeof ResponseSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-status-and-version.command.d.ts","sourceRoot":"","sources":["../../../commands/xray/get-status-and-version.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"get-status-and-version.command.d.ts","sourceRoot":"","sources":["../../../commands/xray/get-status-and-version.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,yBAAiB,0BAA0B,CAAC;IACjC,MAAM,GAAG,qBAAuB,CAAC;IAEjC,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;MAKzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../commands/xray/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
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"}
|
|
@@ -14,6 +14,6 @@ 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-status-and-version.command"), exports);
|
|
17
18
|
__exportStar(require("./start.command"), exports);
|
|
18
19
|
__exportStar(require("./stop.command"), exports);
|
|
19
|
-
__exportStar(require("./get-status-and-version.command"), exports);
|
|
@@ -22,18 +22,18 @@ export declare namespace StartXrayCommand {
|
|
|
22
22
|
memoryTotal: string;
|
|
23
23
|
}>>;
|
|
24
24
|
}, "strip", z.ZodTypeAny, {
|
|
25
|
-
isStarted: boolean;
|
|
26
|
-
version: string | null;
|
|
27
25
|
error: string | null;
|
|
26
|
+
version: string | null;
|
|
27
|
+
isStarted: boolean;
|
|
28
28
|
systemInformation: {
|
|
29
29
|
cpuCores: number;
|
|
30
30
|
cpuModel: string;
|
|
31
31
|
memoryTotal: string;
|
|
32
32
|
} | null;
|
|
33
33
|
}, {
|
|
34
|
-
isStarted: boolean;
|
|
35
|
-
version: string | null;
|
|
36
34
|
error: string | null;
|
|
35
|
+
version: string | null;
|
|
36
|
+
isStarted: boolean;
|
|
37
37
|
systemInformation: {
|
|
38
38
|
cpuCores: number;
|
|
39
39
|
cpuModel: string;
|
|
@@ -42,9 +42,9 @@ export declare namespace StartXrayCommand {
|
|
|
42
42
|
}>;
|
|
43
43
|
}, "strip", z.ZodTypeAny, {
|
|
44
44
|
response: {
|
|
45
|
-
isStarted: boolean;
|
|
46
|
-
version: string | null;
|
|
47
45
|
error: string | null;
|
|
46
|
+
version: string | null;
|
|
47
|
+
isStarted: boolean;
|
|
48
48
|
systemInformation: {
|
|
49
49
|
cpuCores: number;
|
|
50
50
|
cpuModel: string;
|
|
@@ -53,9 +53,9 @@ export declare namespace StartXrayCommand {
|
|
|
53
53
|
};
|
|
54
54
|
}, {
|
|
55
55
|
response: {
|
|
56
|
-
isStarted: boolean;
|
|
57
|
-
version: string | null;
|
|
58
56
|
error: string | null;
|
|
57
|
+
version: string | null;
|
|
58
|
+
isStarted: boolean;
|
|
59
59
|
systemInformation: {
|
|
60
60
|
cpuCores: number;
|
|
61
61
|
cpuModel: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"start.command.d.ts","sourceRoot":"","sources":["../../../commands/xray/start.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"start.command.d.ts","sourceRoot":"","sources":["../../../commands/xray/start.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,gBAAgB,CAAC;IACvB,MAAM,GAAG,oBAAsB,CAAC;IAChC,MAAM,aAAa,wCAAwB,CAAC;IAEnD,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAazB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stop.command.d.ts","sourceRoot":"","sources":["../../../commands/xray/stop.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"stop.command.d.ts","sourceRoot":"","sources":["../../../commands/xray/stop.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,eAAe,CAAC;IACtB,MAAM,GAAG,mBAAqB,CAAC;IAE/B,MAAM,cAAc;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC"}
|
package/build/constants/index.js
CHANGED
|
@@ -15,5 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./errors"), exports);
|
|
18
|
+
__exportStar(require("./internal"), exports);
|
|
18
19
|
__exportStar(require("./roles"), exports);
|
|
19
20
|
__exportStar(require("./xray"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../constants/internal/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
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("./internal.constants"), exports);
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const XRAY_INTERNAL_API_PORT = 61001;
|
|
2
|
+
export declare const XRAY_INTERNAL_API_CONTROLLER = "internal";
|
|
3
|
+
export declare const XRAY_INTERNAL_API_PATH = "/get-config";
|
|
4
|
+
export declare const XRAY_INTERNAL_FULL_PATH = "/internal/get-config";
|
|
5
|
+
//# sourceMappingURL=internal.constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internal.constants.d.ts","sourceRoot":"","sources":["../../../constants/internal/internal.constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB,QAAQ,CAAC;AAC5C,eAAO,MAAM,4BAA4B,aAAa,CAAC;AACvD,eAAO,MAAM,sBAAsB,gBAAgB,CAAC;AACpD,eAAO,MAAM,uBAAuB,yBAA8D,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.XRAY_INTERNAL_FULL_PATH = exports.XRAY_INTERNAL_API_PATH = exports.XRAY_INTERNAL_API_CONTROLLER = exports.XRAY_INTERNAL_API_PORT = void 0;
|
|
4
|
+
exports.XRAY_INTERNAL_API_PORT = 61001;
|
|
5
|
+
exports.XRAY_INTERNAL_API_CONTROLLER = 'internal';
|
|
6
|
+
exports.XRAY_INTERNAL_API_PATH = '/get-config';
|
|
7
|
+
exports.XRAY_INTERNAL_FULL_PATH = `/${exports.XRAY_INTERNAL_API_CONTROLLER}${exports.XRAY_INTERNAL_API_PATH}`;
|
|
@@ -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: {
|
|
@@ -21,25 +20,21 @@ export declare const XRAY_DEFAULT_STATS_MODEL: {
|
|
|
21
20
|
export declare const XRAY_DEFAULT_API_MODEL: {
|
|
22
21
|
readonly api: {
|
|
23
22
|
readonly services: readonly ["HandlerService", "StatsService", "LoggerService"];
|
|
24
|
-
readonly
|
|
25
|
-
readonly tag: "API";
|
|
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: 61001;
|
|
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: {
|
|
@@ -24,24 +23,20 @@ exports.XRAY_DEFAULT_STATS_MODEL = {
|
|
|
24
23
|
exports.XRAY_DEFAULT_API_MODEL = {
|
|
25
24
|
api: {
|
|
26
25
|
services: ['HandlerService', 'StatsService', 'LoggerService'],
|
|
27
|
-
|
|
28
|
-
tag: 'API',
|
|
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: 61001,
|
|
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/build/index.d.ts
CHANGED
package/build/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC"}
|
package/build/index.js
CHANGED
|
@@ -14,7 +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("./constants"), exports);
|
|
18
|
-
__exportStar(require("./commands"), exports);
|
|
19
17
|
__exportStar(require("./api"), exports);
|
|
18
|
+
__exportStar(require("./commands"), exports);
|
|
19
|
+
__exportStar(require("./constants"), exports);
|
|
20
20
|
__exportStar(require("./models"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remnawave/node-contract",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4",
|
|
4
4
|
"description": "A node-contract library for Remnawave Panel",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -13,6 +13,14 @@
|
|
|
13
13
|
},
|
|
14
14
|
"keywords": [],
|
|
15
15
|
"author": "REMNAWAVE",
|
|
16
|
+
"homepage": "https://github.com/remnawave",
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "https://github.com/remnawave/node"
|
|
20
|
+
},
|
|
21
|
+
"bugs": {
|
|
22
|
+
"url": "https://github.com/remnawave/node/issues"
|
|
23
|
+
},
|
|
16
24
|
"license": "MIT",
|
|
17
25
|
"dependencies": {
|
|
18
26
|
"zod": "^3.22.4"
|