@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.
Files changed (56) hide show
  1. package/build/backend/commands/infra-billing/create-billing-node.command.d.ts +160 -6
  2. package/build/backend/commands/infra-billing/create-billing-node.command.d.ts.map +1 -1
  3. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts +160 -6
  4. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts.map +1 -1
  5. package/build/backend/commands/infra-billing/get-billing-nodes.command.d.ts +160 -6
  6. package/build/backend/commands/infra-billing/get-billing-nodes.command.d.ts.map +1 -1
  7. package/build/backend/commands/infra-billing/update-billing-node.command.d.ts +160 -6
  8. package/build/backend/commands/infra-billing/update-billing-node.command.d.ts.map +1 -1
  9. package/build/backend/commands/node-plugins/torrent-blocker/get-torrent-blocker-reports.command.d.ts +80 -3
  10. package/build/backend/commands/node-plugins/torrent-blocker/get-torrent-blocker-reports.command.d.ts.map +1 -1
  11. package/build/backend/commands/node-plugins/torrent-blocker/truncate-torrent-blocker-reports.command.d.ts +80 -3
  12. package/build/backend/commands/node-plugins/torrent-blocker/truncate-torrent-blocker-reports.command.d.ts.map +1 -1
  13. package/build/backend/commands/nodes/actions/disable.command.d.ts +152 -15
  14. package/build/backend/commands/nodes/actions/disable.command.d.ts.map +1 -1
  15. package/build/backend/commands/nodes/actions/enable.command.d.ts +152 -15
  16. package/build/backend/commands/nodes/actions/enable.command.d.ts.map +1 -1
  17. package/build/backend/commands/nodes/actions/reorder.command.d.ts +232 -18
  18. package/build/backend/commands/nodes/actions/reorder.command.d.ts.map +1 -1
  19. package/build/backend/commands/nodes/create.command.d.ts +152 -15
  20. package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
  21. package/build/backend/commands/nodes/get-all.command.d.ts +152 -15
  22. package/build/backend/commands/nodes/get-all.command.d.ts.map +1 -1
  23. package/build/backend/commands/nodes/get-one.command.d.ts +152 -15
  24. package/build/backend/commands/nodes/get-one.command.d.ts.map +1 -1
  25. package/build/backend/commands/nodes/update.command.d.ts +232 -18
  26. package/build/backend/commands/nodes/update.command.d.ts.map +1 -1
  27. package/build/backend/commands/system/get-remnawave-health.command.d.ts +6 -6
  28. package/build/backend/commands/system/get-stats.command.d.ts +4 -25
  29. package/build/backend/commands/system/get-stats.command.d.ts.map +1 -1
  30. package/build/backend/commands/system/get-stats.command.js +0 -3
  31. package/build/backend/constants/cache-keys/cache-keys.constants.d.ts +6 -5
  32. package/build/backend/constants/cache-keys/cache-keys.constants.d.ts.map +1 -1
  33. package/build/backend/constants/cache-keys/cache-keys.constants.js +6 -5
  34. package/build/backend/models/index.d.ts +1 -0
  35. package/build/backend/models/index.d.ts.map +1 -1
  36. package/build/backend/models/index.js +1 -0
  37. package/build/backend/models/infra-billing-available-node.schema.d.ts +80 -3
  38. package/build/backend/models/infra-billing-available-node.schema.d.ts.map +1 -1
  39. package/build/backend/models/infra-billing-node.schema.d.ts +80 -3
  40. package/build/backend/models/infra-billing-node.schema.d.ts.map +1 -1
  41. package/build/backend/models/node-system.schema.d.ts +129 -0
  42. package/build/backend/models/node-system.schema.d.ts.map +1 -0
  43. package/build/backend/models/node-system.schema.js +24 -0
  44. package/build/backend/models/nodes.schema.d.ts +116 -9
  45. package/build/backend/models/nodes.schema.d.ts.map +1 -1
  46. package/build/backend/models/nodes.schema.js +2 -3
  47. package/build/backend/models/torrent-blocker-report.schema.d.ts +80 -3
  48. package/build/backend/models/torrent-blocker-report.schema.d.ts.map +1 -1
  49. package/build/backend/models/webhook/webhook.schema.d.ts +680 -72
  50. package/build/backend/models/webhook/webhook.schema.d.ts.map +1 -1
  51. package/build/frontend/commands/system/get-stats.command.js +0 -3
  52. package/build/frontend/constants/cache-keys/cache-keys.constants.js +6 -5
  53. package/build/frontend/models/index.js +1 -0
  54. package/build/frontend/models/node-system.schema.js +24 -0
  55. package/build/frontend/models/nodes.schema.js +2 -3
  56. package/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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"}
@@ -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
- SHORT_UUID_RANGE: 'short_uuid_range',
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: 86400000, // 1 day
15
- EXTERNAL_SQUAD_SETTINGS: 3600000, // 1 hour
16
- SUBSCRIPTION_SETTINGS: 3600000, // 1 hour
17
- SHORT_UUID_RANGE: 86400000, // 1 day
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
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/backend-contract",
3
- "version": "2.6.49",
3
+ "version": "2.6.51",
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.",