@remnawave/backend-contract 2.8.31 → 2.8.32
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/backend/commands/hwid/get-hwid-devices-stats.command.d.ts +34 -26
- package/build/backend/commands/hwid/get-hwid-devices-stats.command.d.ts.map +1 -1
- package/build/backend/commands/hwid/get-hwid-devices-stats.command.js +4 -4
- package/build/backend/constants/cache-keys/cache-keys.constants.d.ts +4 -0
- package/build/backend/constants/cache-keys/cache-keys.constants.d.ts.map +1 -1
- package/build/backend/constants/cache-keys/cache-keys.constants.js +4 -0
- package/build/frontend/commands/hwid/get-hwid-devices-stats.command.js +4 -4
- package/build/frontend/constants/cache-keys/cache-keys.constants.js +4 -0
- package/package.json +1 -1
|
@@ -8,22 +8,30 @@ export declare namespace GetHwidDevicesStatsCommand {
|
|
|
8
8
|
byPlatform: z.ZodArray<z.ZodObject<{
|
|
9
9
|
platform: z.ZodString;
|
|
10
10
|
count: z.ZodNumber;
|
|
11
|
+
byApp: z.ZodArray<z.ZodObject<{
|
|
12
|
+
app: z.ZodString;
|
|
13
|
+
count: z.ZodNumber;
|
|
14
|
+
}, "strip", z.ZodTypeAny, {
|
|
15
|
+
count: number;
|
|
16
|
+
app: string;
|
|
17
|
+
}, {
|
|
18
|
+
count: number;
|
|
19
|
+
app: string;
|
|
20
|
+
}>, "many">;
|
|
11
21
|
}, "strip", z.ZodTypeAny, {
|
|
12
22
|
platform: string;
|
|
13
23
|
count: number;
|
|
24
|
+
byApp: {
|
|
25
|
+
count: number;
|
|
26
|
+
app: string;
|
|
27
|
+
}[];
|
|
14
28
|
}, {
|
|
15
29
|
platform: string;
|
|
16
30
|
count: number;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}, "strip", z.ZodTypeAny, {
|
|
22
|
-
count: number;
|
|
23
|
-
app: string;
|
|
24
|
-
}, {
|
|
25
|
-
count: number;
|
|
26
|
-
app: string;
|
|
31
|
+
byApp: {
|
|
32
|
+
count: number;
|
|
33
|
+
app: string;
|
|
34
|
+
}[];
|
|
27
35
|
}>, "many">;
|
|
28
36
|
stats: z.ZodObject<{
|
|
29
37
|
totalUniqueDevices: z.ZodNumber;
|
|
@@ -47,10 +55,10 @@ export declare namespace GetHwidDevicesStatsCommand {
|
|
|
47
55
|
byPlatform: {
|
|
48
56
|
platform: string;
|
|
49
57
|
count: number;
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
58
|
+
byApp: {
|
|
59
|
+
count: number;
|
|
60
|
+
app: string;
|
|
61
|
+
}[];
|
|
54
62
|
}[];
|
|
55
63
|
}, {
|
|
56
64
|
stats: {
|
|
@@ -61,10 +69,10 @@ export declare namespace GetHwidDevicesStatsCommand {
|
|
|
61
69
|
byPlatform: {
|
|
62
70
|
platform: string;
|
|
63
71
|
count: number;
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
72
|
+
byApp: {
|
|
73
|
+
count: number;
|
|
74
|
+
app: string;
|
|
75
|
+
}[];
|
|
68
76
|
}[];
|
|
69
77
|
}>;
|
|
70
78
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -77,10 +85,10 @@ export declare namespace GetHwidDevicesStatsCommand {
|
|
|
77
85
|
byPlatform: {
|
|
78
86
|
platform: string;
|
|
79
87
|
count: number;
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
88
|
+
byApp: {
|
|
89
|
+
count: number;
|
|
90
|
+
app: string;
|
|
91
|
+
}[];
|
|
84
92
|
}[];
|
|
85
93
|
};
|
|
86
94
|
}, {
|
|
@@ -93,10 +101,10 @@ export declare namespace GetHwidDevicesStatsCommand {
|
|
|
93
101
|
byPlatform: {
|
|
94
102
|
platform: string;
|
|
95
103
|
count: number;
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
104
|
+
byApp: {
|
|
105
|
+
count: number;
|
|
106
|
+
app: string;
|
|
107
|
+
}[];
|
|
100
108
|
}[];
|
|
101
109
|
};
|
|
102
110
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-hwid-devices-stats.command.d.ts","sourceRoot":"","sources":["../../../../commands/hwid/get-hwid-devices-stats.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,0BAA0B,CAAC;IACjC,MAAM,GAAG,2BAAsB,CAAC;IAChC,MAAM,OAAO,2BAAM,CAAC;IAEpB,MAAM,eAAe,2CAK3B,CAAC;IAEK,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"get-hwid-devices-stats.command.d.ts","sourceRoot":"","sources":["../../../../commands/hwid/get-hwid-devices-stats.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,0BAA0B,CAAC;IACjC,MAAM,GAAG,2BAAsB,CAAC;IAChC,MAAM,OAAO,2BAAM,CAAC;IAEpB,MAAM,eAAe,2CAK3B,CAAC;IAEK,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAoBzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -14,10 +14,10 @@ var GetHwidDevicesStatsCommand;
|
|
|
14
14
|
byPlatform: zod_1.z.array(zod_1.z.object({
|
|
15
15
|
platform: zod_1.z.string(),
|
|
16
16
|
count: zod_1.z.number(),
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
byApp: zod_1.z.array(zod_1.z.object({
|
|
18
|
+
app: zod_1.z.string(),
|
|
19
|
+
count: zod_1.z.number(),
|
|
20
|
+
})),
|
|
21
21
|
})),
|
|
22
22
|
stats: zod_1.z.object({
|
|
23
23
|
totalUniqueDevices: zod_1.z.number(),
|
|
@@ -11,6 +11,8 @@ export declare const CACHE_KEYS: {
|
|
|
11
11
|
readonly NODE_USERS_ONLINE: (uuid: string) => string;
|
|
12
12
|
readonly NODE_VERSIONS: (uuid: string) => string;
|
|
13
13
|
readonly NODE_XRAY_UPTIME: (uuid: string) => string;
|
|
14
|
+
readonly RAW_INBOUND: (uuid: string) => string;
|
|
15
|
+
readonly XRAY_JSON_TEMPLATE: (uuid: string) => string;
|
|
14
16
|
};
|
|
15
17
|
export declare const CACHE_KEYS_TTL: {
|
|
16
18
|
readonly REMNAWAVE_SETTINGS: 86400;
|
|
@@ -19,6 +21,8 @@ export declare const CACHE_KEYS_TTL: {
|
|
|
19
21
|
readonly NODE_SYSTEM_STATS: 30;
|
|
20
22
|
readonly NODE_USERS_ONLINE: 16;
|
|
21
23
|
readonly NODE_XRAY_UPTIME: 16;
|
|
24
|
+
readonly RAW_INBOUND: 3600;
|
|
25
|
+
readonly XRAY_JSON_TEMPLATE: 3600;
|
|
22
26
|
};
|
|
23
27
|
export declare const INTERNAL_CACHE_KEYS: {
|
|
24
28
|
readonly NODE_USER_USAGE_PREFIX: "node_user_usage:";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cache-keys.constants.d.ts","sourceRoot":"","sources":["../../../../constants/cache-keys/cache-keys.constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AAErE,eAAO,MAAM,UAAU;;6CAEa,MAAM;2CACR,MAAM,QAAQ,yBAAyB;kDAEhC,MAAM;oDACJ,MAAM;;sCAEpB,MAAM;uCACL,MAAM;uCACN,MAAM;mCACV,MAAM;sCACH,MAAM;
|
|
1
|
+
{"version":3,"file":"cache-keys.constants.d.ts","sourceRoot":"","sources":["../../../../constants/cache-keys/cache-keys.constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AAErE,eAAO,MAAM,UAAU;;6CAEa,MAAM;2CACR,MAAM,QAAQ,yBAAyB;kDAEhC,MAAM;oDACJ,MAAM;;sCAEpB,MAAM;uCACL,MAAM;uCACN,MAAM;mCACV,MAAM;sCACH,MAAM;iCACX,MAAM;wCACC,MAAM;CAC3B,CAAC;AAEX,eAAO,MAAM,cAAc;;;;;;;;;CASjB,CAAC;AAEX,eAAO,MAAM,mBAAmB;;uCAEF,MAAM;;;;CAK1B,CAAC;AAEX,eAAO,MAAM,uBAAuB;;CAE1B,CAAC"}
|
|
@@ -13,6 +13,8 @@ exports.CACHE_KEYS = {
|
|
|
13
13
|
NODE_USERS_ONLINE: (uuid) => `node_users_online:${uuid}`,
|
|
14
14
|
NODE_VERSIONS: (uuid) => `node_versions:${uuid}`,
|
|
15
15
|
NODE_XRAY_UPTIME: (uuid) => `node_xray_uptime:${uuid}`,
|
|
16
|
+
RAW_INBOUND: (uuid) => `raw_inbound:${uuid}`,
|
|
17
|
+
XRAY_JSON_TEMPLATE: (uuid) => `xray_json_template:${uuid}`,
|
|
16
18
|
};
|
|
17
19
|
exports.CACHE_KEYS_TTL = {
|
|
18
20
|
REMNAWAVE_SETTINGS: 86400, // 1 day
|
|
@@ -21,6 +23,8 @@ exports.CACHE_KEYS_TTL = {
|
|
|
21
23
|
NODE_SYSTEM_STATS: 30, // 30 seconds
|
|
22
24
|
NODE_USERS_ONLINE: 16, // 16 seconds
|
|
23
25
|
NODE_XRAY_UPTIME: 16, // 16 seconds
|
|
26
|
+
RAW_INBOUND: 3600, // 1 hour
|
|
27
|
+
XRAY_JSON_TEMPLATE: 3600, // 1 hour
|
|
24
28
|
};
|
|
25
29
|
exports.INTERNAL_CACHE_KEYS = {
|
|
26
30
|
NODE_USER_USAGE_PREFIX: 'node_user_usage:',
|
|
@@ -14,10 +14,10 @@ var GetHwidDevicesStatsCommand;
|
|
|
14
14
|
byPlatform: zod_1.z.array(zod_1.z.object({
|
|
15
15
|
platform: zod_1.z.string(),
|
|
16
16
|
count: zod_1.z.number(),
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
byApp: zod_1.z.array(zod_1.z.object({
|
|
18
|
+
app: zod_1.z.string(),
|
|
19
|
+
count: zod_1.z.number(),
|
|
20
|
+
})),
|
|
21
21
|
})),
|
|
22
22
|
stats: zod_1.z.object({
|
|
23
23
|
totalUniqueDevices: zod_1.z.number(),
|
|
@@ -13,6 +13,8 @@ exports.CACHE_KEYS = {
|
|
|
13
13
|
NODE_USERS_ONLINE: (uuid) => `node_users_online:${uuid}`,
|
|
14
14
|
NODE_VERSIONS: (uuid) => `node_versions:${uuid}`,
|
|
15
15
|
NODE_XRAY_UPTIME: (uuid) => `node_xray_uptime:${uuid}`,
|
|
16
|
+
RAW_INBOUND: (uuid) => `raw_inbound:${uuid}`,
|
|
17
|
+
XRAY_JSON_TEMPLATE: (uuid) => `xray_json_template:${uuid}`,
|
|
16
18
|
};
|
|
17
19
|
exports.CACHE_KEYS_TTL = {
|
|
18
20
|
REMNAWAVE_SETTINGS: 86400, // 1 day
|
|
@@ -21,6 +23,8 @@ exports.CACHE_KEYS_TTL = {
|
|
|
21
23
|
NODE_SYSTEM_STATS: 30, // 30 seconds
|
|
22
24
|
NODE_USERS_ONLINE: 16, // 16 seconds
|
|
23
25
|
NODE_XRAY_UPTIME: 16, // 16 seconds
|
|
26
|
+
RAW_INBOUND: 3600, // 1 hour
|
|
27
|
+
XRAY_JSON_TEMPLATE: 3600, // 1 hour
|
|
24
28
|
};
|
|
25
29
|
exports.INTERNAL_CACHE_KEYS = {
|
|
26
30
|
NODE_USER_USAGE_PREFIX: 'node_user_usage:',
|
package/package.json
CHANGED