@remnawave/backend-contract 2.6.55 → 2.7.0
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/api/controllers-info.d.ts +1 -1
- package/build/backend/api/controllers-info.js +1 -1
- package/build/backend/commands/infra-billing/create-billing-node.command.d.ts +24 -8
- package/build/backend/commands/infra-billing/create-billing-node.command.d.ts.map +1 -1
- package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts +24 -8
- package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/infra-billing/get-billing-nodes.command.d.ts +24 -8
- package/build/backend/commands/infra-billing/get-billing-nodes.command.d.ts.map +1 -1
- package/build/backend/commands/infra-billing/update-billing-node.command.d.ts +24 -8
- package/build/backend/commands/infra-billing/update-billing-node.command.d.ts.map +1 -1
- package/build/backend/commands/keygen/get-pubkey.command.js +1 -1
- package/build/backend/commands/node-plugins/torrent-blocker/get-torrent-blocker-reports.command.d.ts +12 -4
- package/build/backend/commands/node-plugins/torrent-blocker/get-torrent-blocker-reports.command.d.ts.map +1 -1
- package/build/backend/commands/node-plugins/torrent-blocker/truncate-torrent-blocker-reports.command.d.ts +12 -4
- package/build/backend/commands/node-plugins/torrent-blocker/truncate-torrent-blocker-reports.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/disable.command.d.ts +36 -20
- package/build/backend/commands/nodes/actions/disable.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/enable.command.d.ts +36 -20
- package/build/backend/commands/nodes/actions/enable.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/reorder.command.d.ts +48 -24
- package/build/backend/commands/nodes/actions/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/create.command.d.ts +36 -20
- package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/get-all.command.d.ts +36 -20
- package/build/backend/commands/nodes/get-all.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/get-one.command.d.ts +36 -20
- package/build/backend/commands/nodes/get-one.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/update.command.d.ts +48 -24
- package/build/backend/commands/nodes/update.command.d.ts.map +1 -1
- package/build/backend/constants/cache-keys/cache-keys.constants.d.ts +5 -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 +5 -0
- package/build/backend/models/infra-billing-available-node.schema.d.ts +12 -4
- package/build/backend/models/infra-billing-available-node.schema.d.ts.map +1 -1
- package/build/backend/models/infra-billing-node.schema.d.ts +12 -4
- package/build/backend/models/infra-billing-node.schema.d.ts.map +1 -1
- package/build/backend/models/nodes.schema.d.ts +24 -12
- package/build/backend/models/nodes.schema.d.ts.map +1 -1
- package/build/backend/models/nodes.schema.js +6 -4
- package/build/backend/models/torrent-blocker-report.schema.d.ts +12 -4
- package/build/backend/models/torrent-blocker-report.schema.d.ts.map +1 -1
- package/build/backend/models/webhook/webhook.schema.d.ts +168 -96
- package/build/backend/models/webhook/webhook.schema.d.ts.map +1 -1
- package/build/frontend/api/controllers-info.js +1 -1
- package/build/frontend/commands/keygen/get-pubkey.command.js +1 -1
- package/build/frontend/constants/cache-keys/cache-keys.constants.js +5 -0
- package/build/frontend/models/nodes.schema.js +6 -4
- package/package.json +4 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhook.schema.d.ts","sourceRoot":"","sources":["../../../../models/webhook/webhook.schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAOpB,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AACpF,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAC1F,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AACxF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAClF,MAAM,MAAM,qCAAqC,GAAG,CAAC,CAAC,KAAK,CACvD,OAAO,qCAAqC,CAC/C,CAAC;AACF,MAAM,MAAM,oCAAoC,GAAG,CAAC,CAAC,KAAK,CACtD,OAAO,oCAAoC,CAC9C,CAAC"}
|
|
@@ -88,7 +88,7 @@ exports.CONTROLLERS_INFO = {
|
|
|
88
88
|
},
|
|
89
89
|
KEYGEN: {
|
|
90
90
|
tag: 'Keygen Controller',
|
|
91
|
-
description: 'Generation of
|
|
91
|
+
description: 'Generation of SECRET_KEY for Remnawave Node.',
|
|
92
92
|
},
|
|
93
93
|
SUBSCRIPTION_REQUEST_HISTORY: {
|
|
94
94
|
tag: 'Subscription Request History Controller',
|
|
@@ -8,7 +8,7 @@ var GetPubKeyCommand;
|
|
|
8
8
|
(function (GetPubKeyCommand) {
|
|
9
9
|
GetPubKeyCommand.url = api_1.REST_API.KEYGEN.GET;
|
|
10
10
|
GetPubKeyCommand.TSQ_url = GetPubKeyCommand.url;
|
|
11
|
-
GetPubKeyCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.KEYGEN_ROUTES.GET, 'get', 'Get
|
|
11
|
+
GetPubKeyCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.KEYGEN_ROUTES.GET, 'get', 'Get SECRET_KEY for Remnawave Node');
|
|
12
12
|
GetPubKeyCommand.ResponseSchema = zod_1.z.object({
|
|
13
13
|
response: zod_1.z.object({
|
|
14
14
|
pubKey: zod_1.z.string(),
|
|
@@ -10,12 +10,17 @@ exports.CACHE_KEYS = {
|
|
|
10
10
|
REMNAWAVE_SETTINGS: 'remnawave_settings',
|
|
11
11
|
NODE_SYSTEM_INFO: (uuid) => `node_system_info:${uuid}`,
|
|
12
12
|
NODE_SYSTEM_STATS: (uuid) => `node_system_stats:${uuid}`,
|
|
13
|
+
NODE_USERS_ONLINE: (uuid) => `node_users_online:${uuid}`,
|
|
14
|
+
NODE_VERSIONS: (uuid) => `node_versions:${uuid}`,
|
|
15
|
+
NODE_XRAY_UPTIME: (uuid) => `node_xray_uptime:${uuid}`,
|
|
13
16
|
};
|
|
14
17
|
exports.CACHE_KEYS_TTL = {
|
|
15
18
|
REMNAWAVE_SETTINGS: 86400, // 1 day
|
|
16
19
|
EXTERNAL_SQUAD_SETTINGS: 3600, // 1 hour
|
|
17
20
|
SUBSCRIPTION_SETTINGS: 3600, // 1 hour
|
|
18
21
|
NODE_SYSTEM_STATS: 30, // 30 seconds
|
|
22
|
+
NODE_USERS_ONLINE: 16, // 16 seconds
|
|
23
|
+
NODE_XRAY_UPTIME: 16, // 16 seconds
|
|
19
24
|
};
|
|
20
25
|
exports.INTERNAL_CACHE_KEYS = {
|
|
21
26
|
NODE_USER_USAGE_PREFIX: 'node_user_usage:',
|
|
@@ -18,15 +18,11 @@ exports.NodesSchema = zod_1.z.object({
|
|
|
18
18
|
.datetime()
|
|
19
19
|
.transform((str) => new Date(str))),
|
|
20
20
|
lastStatusMessage: zod_1.z.nullable(zod_1.z.string()),
|
|
21
|
-
xrayVersion: zod_1.z.nullable(zod_1.z.string()),
|
|
22
|
-
nodeVersion: zod_1.z.nullable(zod_1.z.string()),
|
|
23
|
-
xrayUptime: zod_1.z.string(),
|
|
24
21
|
isTrafficTrackingActive: zod_1.z.boolean(),
|
|
25
22
|
trafficResetDay: zod_1.z.nullable(zod_1.z.number().int()),
|
|
26
23
|
trafficLimitBytes: zod_1.z.nullable(zod_1.z.number()),
|
|
27
24
|
trafficUsedBytes: zod_1.z.nullable(zod_1.z.number()),
|
|
28
25
|
notifyPercent: zod_1.z.nullable(zod_1.z.number().int()),
|
|
29
|
-
usersOnline: zod_1.z.nullable(zod_1.z.number().int()),
|
|
30
26
|
viewPosition: zod_1.z.number().int(),
|
|
31
27
|
countryCode: zod_1.z.string(),
|
|
32
28
|
consumptionMultiplier: zod_1.z.number(),
|
|
@@ -47,4 +43,10 @@ exports.NodesSchema = zod_1.z.object({
|
|
|
47
43
|
provider: zod_1.z.nullable(infra_provider_schema_1.PartialInfraProviderSchema),
|
|
48
44
|
activePluginUuid: zod_1.z.nullable(zod_1.z.string().uuid()),
|
|
49
45
|
system: zod_1.z.nullable(node_system_schema_1.NodeSystemSchema),
|
|
46
|
+
versions: zod_1.z.nullable(zod_1.z.object({
|
|
47
|
+
xray: zod_1.z.string(),
|
|
48
|
+
node: zod_1.z.string(),
|
|
49
|
+
})),
|
|
50
|
+
xrayUptime: zod_1.z.number(),
|
|
51
|
+
usersOnline: zod_1.z.number(),
|
|
50
52
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remnawave/backend-contract",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.7.0",
|
|
4
4
|
"public": true,
|
|
5
5
|
"license": "AGPL-3.0-only",
|
|
6
6
|
"description": "A contract library for Remnawave Backend. It can be used in backend and frontend.",
|
|
@@ -29,5 +29,8 @@
|
|
|
29
29
|
"keywords": [],
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"zod": "3.25.76"
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"typescript": "5.9.3"
|
|
32
35
|
}
|
|
33
36
|
}
|