@remnawave/node-contract 2.6.6 → 2.6.7
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/commands/stats/get-user-ip-list.command.d.ts +26 -5
- package/build/commands/stats/get-user-ip-list.command.d.ts.map +1 -1
- package/build/commands/stats/get-user-ip-list.command.js +7 -1
- package/build/constants/xray/stats.d.ts +1 -0
- package/build/constants/xray/stats.d.ts.map +1 -1
- package/build/constants/xray/stats.js +2 -1
- package/package.json +1 -1
|
@@ -11,19 +11,40 @@ export declare namespace GetUserIpListCommand {
|
|
|
11
11
|
type Request = z.infer<typeof RequestSchema>;
|
|
12
12
|
const ResponseSchema: z.ZodObject<{
|
|
13
13
|
response: z.ZodObject<{
|
|
14
|
-
ips: z.ZodArray<z.
|
|
14
|
+
ips: z.ZodArray<z.ZodObject<{
|
|
15
|
+
ip: z.ZodString;
|
|
16
|
+
lastSeen: z.ZodEffects<z.ZodString, Date, string>;
|
|
17
|
+
}, "strip", z.ZodTypeAny, {
|
|
18
|
+
ip: string;
|
|
19
|
+
lastSeen: Date;
|
|
20
|
+
}, {
|
|
21
|
+
ip: string;
|
|
22
|
+
lastSeen: string;
|
|
23
|
+
}>, "many">;
|
|
15
24
|
}, "strip", z.ZodTypeAny, {
|
|
16
|
-
ips:
|
|
25
|
+
ips: {
|
|
26
|
+
ip: string;
|
|
27
|
+
lastSeen: Date;
|
|
28
|
+
}[];
|
|
17
29
|
}, {
|
|
18
|
-
ips:
|
|
30
|
+
ips: {
|
|
31
|
+
ip: string;
|
|
32
|
+
lastSeen: string;
|
|
33
|
+
}[];
|
|
19
34
|
}>;
|
|
20
35
|
}, "strip", z.ZodTypeAny, {
|
|
21
36
|
response: {
|
|
22
|
-
ips:
|
|
37
|
+
ips: {
|
|
38
|
+
ip: string;
|
|
39
|
+
lastSeen: Date;
|
|
40
|
+
}[];
|
|
23
41
|
};
|
|
24
42
|
}, {
|
|
25
43
|
response: {
|
|
26
|
-
ips:
|
|
44
|
+
ips: {
|
|
45
|
+
ip: string;
|
|
46
|
+
lastSeen: string;
|
|
47
|
+
}[];
|
|
27
48
|
};
|
|
28
49
|
}>;
|
|
29
50
|
type Response = z.infer<typeof ResponseSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-user-ip-list.command.d.ts","sourceRoot":"","sources":["../../../commands/stats/get-user-ip-list.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,oBAAoB,CAAC;IAC3B,MAAM,GAAG,gCAAkC,CAAC;IAE5C,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"get-user-ip-list.command.d.ts","sourceRoot":"","sources":["../../../commands/stats/get-user-ip-list.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,oBAAoB,CAAC;IAC3B,MAAM,GAAG,gCAAkC,CAAC;IAE5C,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAYzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -11,7 +11,13 @@ var GetUserIpListCommand;
|
|
|
11
11
|
});
|
|
12
12
|
GetUserIpListCommand.ResponseSchema = zod_1.z.object({
|
|
13
13
|
response: zod_1.z.object({
|
|
14
|
-
ips: zod_1.z.array(zod_1.z.
|
|
14
|
+
ips: zod_1.z.array(zod_1.z.object({
|
|
15
|
+
ip: zod_1.z.string(),
|
|
16
|
+
lastSeen: zod_1.z
|
|
17
|
+
.string()
|
|
18
|
+
.datetime({ local: true, offset: true, message: 'Invalid date format' })
|
|
19
|
+
.transform((str) => new Date(str)),
|
|
20
|
+
})),
|
|
15
21
|
}),
|
|
16
22
|
});
|
|
17
23
|
})(GetUserIpListCommand || (exports.GetUserIpListCommand = GetUserIpListCommand = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stats.d.ts","sourceRoot":"","sources":["../../../constants/xray/stats.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;CAgB5B,CAAC;AAEX,eAAO,MAAM,wBAAwB;;CAE3B,CAAC;AAEX,eAAO,MAAM,sBAAsB;;;;;CAKzB,CAAC;AAEX,eAAO,MAAM,sBAAsB,GAAI,mDAKpC;IACC,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;CACxB;;;;;;;;;;;;;;;;;;;;;;;;CAqCc,CAAC;AAEhB,eAAO,MAAM,wBAAwB;;;CAG3B,CAAC;AAEX,eAAO,MAAM,wCAAwC,GAAI,iBAEtD;IACC,UAAU,EAAE,MAAM,CAAC;CACtB;;;;;;;CAOC,CAAC;AAEH,eAAO,MAAM,mCAAmC;;;CAGtC,CAAC"}
|
|
1
|
+
{"version":3,"file":"stats.d.ts","sourceRoot":"","sources":["../../../constants/xray/stats.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;CAgB5B,CAAC;AAEX,eAAO,MAAM,wBAAwB;;CAE3B,CAAC;AAEX,eAAO,MAAM,sBAAsB;;;;;CAKzB,CAAC;AAEX,eAAO,MAAM,sBAAsB,GAAI,mDAKpC;IACC,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;CACxB;;;;;;;;;;;;;;;;;;;;;;;;CAqCc,CAAC;AAEhB,eAAO,MAAM,wBAAwB;;;CAG3B,CAAC;AAEX,eAAO,MAAM,wCAAwC,GAAI,iBAEtD;IACC,UAAU,EAAE,MAAM,CAAC;CACtB;;;;;;;CAOC,CAAC;AAEH,eAAO,MAAM,mCAAmC;;;CAGtC,CAAC;AAEX,eAAO,MAAM,iCAAiC,yBAAyB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.XRAY_TORRENT_BLOCKER_OUTBOUND_MODEL = exports.XRAY_TORRENT_BLOCKER_ROUTING_RULES_MODEL = 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;
|
|
3
|
+
exports.XRAY_TORRENT_BLOCKER_OUTBOUND_TAG = exports.XRAY_TORRENT_BLOCKER_OUTBOUND_MODEL = exports.XRAY_TORRENT_BLOCKER_ROUTING_RULES_MODEL = 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: {
|
|
@@ -82,3 +82,4 @@ exports.XRAY_TORRENT_BLOCKER_OUTBOUND_MODEL = {
|
|
|
82
82
|
tag: 'RW_TB_OUTBOUND_BLOCK',
|
|
83
83
|
protocol: 'blackhole',
|
|
84
84
|
};
|
|
85
|
+
exports.XRAY_TORRENT_BLOCKER_OUTBOUND_TAG = 'RW_TB_OUTBOUND_BLOCK';
|