@remnawave/backend-contract 2.6.49 → 2.6.51
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/infra-billing/create-billing-node.command.d.ts +160 -6
- 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 +160 -6
- 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 +160 -6
- 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 +160 -6
- package/build/backend/commands/infra-billing/update-billing-node.command.d.ts.map +1 -1
- package/build/backend/commands/node-plugins/torrent-blocker/get-torrent-blocker-reports.command.d.ts +80 -3
- 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 +80 -3
- 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 +152 -15
- package/build/backend/commands/nodes/actions/disable.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/enable.command.d.ts +152 -15
- package/build/backend/commands/nodes/actions/enable.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/reorder.command.d.ts +232 -18
- package/build/backend/commands/nodes/actions/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/create.command.d.ts +152 -15
- package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/get-all.command.d.ts +152 -15
- package/build/backend/commands/nodes/get-all.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/get-one.command.d.ts +152 -15
- package/build/backend/commands/nodes/get-one.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/update.command.d.ts +232 -18
- package/build/backend/commands/nodes/update.command.d.ts.map +1 -1
- package/build/backend/commands/system/get-remnawave-health.command.d.ts +6 -6
- package/build/backend/commands/system/get-stats.command.d.ts +4 -25
- package/build/backend/commands/system/get-stats.command.d.ts.map +1 -1
- package/build/backend/commands/system/get-stats.command.js +0 -3
- package/build/backend/constants/cache-keys/cache-keys.constants.d.ts +6 -5
- package/build/backend/constants/cache-keys/cache-keys.constants.d.ts.map +1 -1
- package/build/backend/constants/cache-keys/cache-keys.constants.js +6 -5
- package/build/backend/models/index.d.ts +1 -0
- package/build/backend/models/index.d.ts.map +1 -1
- package/build/backend/models/index.js +1 -0
- package/build/backend/models/infra-billing-available-node.schema.d.ts +80 -3
- package/build/backend/models/infra-billing-available-node.schema.d.ts.map +1 -1
- package/build/backend/models/infra-billing-node.schema.d.ts +80 -3
- package/build/backend/models/infra-billing-node.schema.d.ts.map +1 -1
- package/build/backend/models/node-system.schema.d.ts +129 -0
- package/build/backend/models/node-system.schema.d.ts.map +1 -0
- package/build/backend/models/node-system.schema.js +24 -0
- package/build/backend/models/nodes.schema.d.ts +116 -9
- package/build/backend/models/nodes.schema.d.ts.map +1 -1
- package/build/backend/models/nodes.schema.js +2 -3
- package/build/backend/models/torrent-blocker-report.schema.d.ts +80 -3
- package/build/backend/models/torrent-blocker-report.schema.d.ts.map +1 -1
- package/build/backend/models/webhook/webhook.schema.d.ts +680 -72
- package/build/backend/models/webhook/webhook.schema.d.ts.map +1 -1
- package/build/frontend/commands/system/get-stats.command.js +0 -3
- package/build/frontend/constants/cache-keys/cache-keys.constants.js +6 -5
- package/build/frontend/models/index.js +1 -0
- package/build/frontend/models/node-system.schema.js +24 -0
- package/build/frontend/models/nodes.schema.js +2 -3
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhook.schema.d.ts","sourceRoot":"","sources":["../../../../models/webhook/webhook.schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,K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M,qCAAqC,GAAG,CAAC,CAAC,KAAK,CACvD,OAAO,qCAAqC,CAC/C,CAAC;AACF,MAAM,MAAM,oCAAoC,GAAG,CAAC,CAAC,KAAK,CACtD,OAAO,oCAAoC,CAC9C,CAAC"}
|
|
@@ -17,14 +17,11 @@ var GetStatsCommand;
|
|
|
17
17
|
response: zod_1.z.object({
|
|
18
18
|
cpu: zod_1.z.object({
|
|
19
19
|
cores: zod_1.z.number(),
|
|
20
|
-
physicalCores: zod_1.z.number(),
|
|
21
20
|
}),
|
|
22
21
|
memory: zod_1.z.object({
|
|
23
22
|
total: zod_1.z.number(),
|
|
24
23
|
free: zod_1.z.number(),
|
|
25
24
|
used: zod_1.z.number(),
|
|
26
|
-
active: zod_1.z.number(),
|
|
27
|
-
available: zod_1.z.number(),
|
|
28
25
|
}),
|
|
29
26
|
uptime: zod_1.z.number(),
|
|
30
27
|
timestamp: zod_1.z.number(),
|
|
@@ -8,13 +8,14 @@ exports.CACHE_KEYS = {
|
|
|
8
8
|
PASSKEY_REGISTRATION_OPTIONS: (uuid) => `passkey_registration_options:${uuid}`,
|
|
9
9
|
PASSKEY_AUTHENTICATION_OPTIONS: (uuid) => `passkey_authentication_options:${uuid}`,
|
|
10
10
|
REMNAWAVE_SETTINGS: 'remnawave_settings',
|
|
11
|
-
|
|
11
|
+
NODE_SYSTEM_INFO: (uuid) => `node_system_info:${uuid}`,
|
|
12
|
+
NODE_SYSTEM_STATS: (uuid) => `node_system_stats:${uuid}`,
|
|
12
13
|
};
|
|
13
14
|
exports.CACHE_KEYS_TTL = {
|
|
14
|
-
REMNAWAVE_SETTINGS:
|
|
15
|
-
EXTERNAL_SQUAD_SETTINGS:
|
|
16
|
-
SUBSCRIPTION_SETTINGS:
|
|
17
|
-
|
|
15
|
+
REMNAWAVE_SETTINGS: 86400, // 1 day
|
|
16
|
+
EXTERNAL_SQUAD_SETTINGS: 3600, // 1 hour
|
|
17
|
+
SUBSCRIPTION_SETTINGS: 3600, // 1 hour
|
|
18
|
+
NODE_SYSTEM_STATS: 30, // 30 seconds
|
|
18
19
|
};
|
|
19
20
|
exports.INTERNAL_CACHE_KEYS = {
|
|
20
21
|
NODE_USER_USAGE_PREFIX: 'node_user_usage:',
|
|
@@ -32,6 +32,7 @@ __exportStar(require("./infra-provider.schema"), exports);
|
|
|
32
32
|
__exportStar(require("./internal-squad.schema"), exports);
|
|
33
33
|
__exportStar(require("./last-connected-node.schema"), exports);
|
|
34
34
|
__exportStar(require("./node-plugin.schema"), exports);
|
|
35
|
+
__exportStar(require("./node-system.schema"), exports);
|
|
35
36
|
__exportStar(require("./nodes.schema"), exports);
|
|
36
37
|
__exportStar(require("./remnawave-settings"), exports);
|
|
37
38
|
__exportStar(require("./response-rules"), exports);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NodeSystemSchema = exports.NodeSystemStatsSchema = exports.NodeSystemInfoSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.NodeSystemInfoSchema = zod_1.z.object({
|
|
6
|
+
arch: zod_1.z.string(),
|
|
7
|
+
cpus: zod_1.z.number().int(),
|
|
8
|
+
cpuModel: zod_1.z.string(),
|
|
9
|
+
memoryTotal: zod_1.z.number(),
|
|
10
|
+
hostname: zod_1.z.string(),
|
|
11
|
+
platform: zod_1.z.string(),
|
|
12
|
+
release: zod_1.z.string(),
|
|
13
|
+
type: zod_1.z.string(),
|
|
14
|
+
version: zod_1.z.string(),
|
|
15
|
+
networkInterfaces: zod_1.z.array(zod_1.z.string()),
|
|
16
|
+
});
|
|
17
|
+
exports.NodeSystemStatsSchema = zod_1.z.object({
|
|
18
|
+
memoryFree: zod_1.z.number(),
|
|
19
|
+
uptime: zod_1.z.number(),
|
|
20
|
+
});
|
|
21
|
+
exports.NodeSystemSchema = zod_1.z.object({
|
|
22
|
+
info: exports.NodeSystemInfoSchema,
|
|
23
|
+
stats: exports.NodeSystemStatsSchema,
|
|
24
|
+
});
|
|
@@ -4,6 +4,7 @@ exports.NodesSchema = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const config_profile_inbounds_schema_1 = require("./config-profile-inbounds.schema");
|
|
6
6
|
const infra_provider_schema_1 = require("./infra-provider.schema");
|
|
7
|
+
const node_system_schema_1 = require("./node-system.schema");
|
|
7
8
|
exports.NodesSchema = zod_1.z.object({
|
|
8
9
|
uuid: zod_1.z.string().uuid(),
|
|
9
10
|
name: zod_1.z.string(),
|
|
@@ -30,9 +31,6 @@ exports.NodesSchema = zod_1.z.object({
|
|
|
30
31
|
countryCode: zod_1.z.string(),
|
|
31
32
|
consumptionMultiplier: zod_1.z.number(),
|
|
32
33
|
tags: zod_1.z.array(zod_1.z.string()),
|
|
33
|
-
cpuCount: zod_1.z.nullable(zod_1.z.number().int()),
|
|
34
|
-
cpuModel: zod_1.z.nullable(zod_1.z.string()),
|
|
35
|
-
totalRam: zod_1.z.nullable(zod_1.z.string()),
|
|
36
34
|
createdAt: zod_1.z
|
|
37
35
|
.string()
|
|
38
36
|
.datetime()
|
|
@@ -48,4 +46,5 @@ exports.NodesSchema = zod_1.z.object({
|
|
|
48
46
|
providerUuid: zod_1.z.nullable(zod_1.z.string().uuid()),
|
|
49
47
|
provider: zod_1.z.nullable(infra_provider_schema_1.PartialInfraProviderSchema),
|
|
50
48
|
activePluginUuid: zod_1.z.nullable(zod_1.z.string().uuid()),
|
|
49
|
+
system: zod_1.z.nullable(node_system_schema_1.NodeSystemSchema),
|
|
51
50
|
});
|