@remnawave/backend-contract 0.0.63 → 0.0.65

Sign up to get free protection for your applications and to get access to all the features.
Files changed (140) hide show
  1. package/build/backend/api/controllers/nodes.d.ts +3 -0
  2. package/build/backend/api/controllers/nodes.d.ts.map +1 -1
  3. package/build/backend/api/controllers/nodes.js +3 -0
  4. package/build/backend/api/index.d.ts +1 -1
  5. package/build/backend/api/index.d.ts.map +1 -1
  6. package/build/backend/api/index.js +1 -1
  7. package/build/backend/api/routes.d.ts +3 -0
  8. package/build/backend/api/routes.d.ts.map +1 -1
  9. package/build/backend/api/routes.js +3 -0
  10. package/build/backend/commands/api-tokens/create.command.d.ts.map +1 -1
  11. package/build/backend/commands/api-tokens/delete.command.d.ts.map +1 -1
  12. package/build/backend/commands/api-tokens/find.command.d.ts.map +1 -1
  13. package/build/backend/commands/api-tokens/find.command.js +1 -1
  14. package/build/backend/commands/auth/login.command.d.ts.map +1 -1
  15. package/build/backend/commands/hosts/create.command.d.ts.map +1 -1
  16. package/build/backend/commands/hosts/create.command.js +2 -2
  17. package/build/backend/commands/hosts/delete.command.d.ts.map +1 -1
  18. package/build/backend/commands/hosts/get-all.command.d.ts.map +1 -1
  19. package/build/backend/commands/hosts/get-all.command.js +1 -1
  20. package/build/backend/commands/hosts/reorder.command.d.ts.map +1 -1
  21. package/build/backend/commands/hosts/reorder.command.js +1 -1
  22. package/build/backend/commands/hosts/update.command.d.ts.map +1 -1
  23. package/build/backend/commands/hosts/update.command.js +2 -2
  24. package/build/backend/commands/inbounds/get-inbounds.command.d.ts.map +1 -1
  25. package/build/backend/commands/inbounds/get-inbounds.command.js +1 -1
  26. package/build/backend/commands/keygen/get-pubkey.command.d.ts.map +1 -1
  27. package/build/backend/commands/nodes/create.command.d.ts +36 -0
  28. package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
  29. package/build/backend/commands/nodes/create.command.js +4 -1
  30. package/build/backend/commands/nodes/delete.command.d.ts.map +1 -1
  31. package/build/backend/commands/nodes/disable.command.d.ts +33 -0
  32. package/build/backend/commands/nodes/disable.command.d.ts.map +1 -1
  33. package/build/backend/commands/nodes/disable.command.js +1 -1
  34. package/build/backend/commands/nodes/enable.command.d.ts +33 -0
  35. package/build/backend/commands/nodes/enable.command.d.ts.map +1 -1
  36. package/build/backend/commands/nodes/enable.command.js +1 -1
  37. package/build/backend/commands/nodes/get-all.command.d.ts +33 -0
  38. package/build/backend/commands/nodes/get-all.command.d.ts.map +1 -1
  39. package/build/backend/commands/nodes/get-all.command.js +1 -1
  40. package/build/backend/commands/nodes/get-nodes-usage-by-range.command.d.ts +70 -0
  41. package/build/backend/commands/nodes/get-nodes-usage-by-range.command.d.ts.map +1 -0
  42. package/build/backend/commands/nodes/get-nodes-usage-by-range.command.js +26 -0
  43. package/build/backend/commands/nodes/get-one.command.d.ts +33 -0
  44. package/build/backend/commands/nodes/get-one.command.d.ts.map +1 -1
  45. package/build/backend/commands/nodes/get-one.command.js +1 -1
  46. package/build/backend/commands/nodes/index.d.ts +1 -0
  47. package/build/backend/commands/nodes/index.d.ts.map +1 -1
  48. package/build/backend/commands/nodes/index.js +1 -0
  49. package/build/backend/commands/nodes/restart-all.command.d.ts.map +1 -1
  50. package/build/backend/commands/nodes/restart.command.d.ts.map +1 -1
  51. package/build/backend/commands/nodes/update.command.d.ts +49 -0
  52. package/build/backend/commands/nodes/update.command.d.ts.map +1 -1
  53. package/build/backend/commands/nodes/update.command.js +4 -1
  54. package/build/backend/commands/subscription/get-subscription-by-short-uuid.command.d.ts.map +1 -1
  55. package/build/backend/commands/subscription/get-subscription-info-by-short-uuid.command.d.ts.map +1 -1
  56. package/build/backend/commands/subscription/get-subscription-info-by-short-uuid.command.js +1 -1
  57. package/build/backend/commands/system/get-bandwidth-stats.command.d.ts.map +1 -1
  58. package/build/backend/commands/system/get-bandwidth-stats.command.js +1 -1
  59. package/build/backend/commands/system/get-nodes-statistics.d.ts.map +1 -1
  60. package/build/backend/commands/system/get-stats.command.d.ts.map +1 -1
  61. package/build/backend/commands/system/get-stats.command.js +1 -1
  62. package/build/backend/commands/users/create-user.command.d.ts.map +1 -1
  63. package/build/backend/commands/users/create-user.command.js +1 -1
  64. package/build/backend/commands/users/delete-user.command.d.ts.map +1 -1
  65. package/build/backend/commands/users/disable-user.command.ts.d.ts.map +1 -1
  66. package/build/backend/commands/users/disable-user.command.ts.js +1 -1
  67. package/build/backend/commands/users/enable-user.command.d.ts.map +1 -1
  68. package/build/backend/commands/users/enable-user.command.js +1 -1
  69. package/build/backend/commands/users/get-all-users-v2.command.d.ts.map +1 -1
  70. package/build/backend/commands/users/get-all-users-v2.command.js +1 -1
  71. package/build/backend/commands/users/get-all-users.command.d.ts +1 -1
  72. package/build/backend/commands/users/get-all-users.command.d.ts.map +1 -1
  73. package/build/backend/commands/users/get-all-users.command.js +1 -1
  74. package/build/backend/commands/users/get-user-by-short-uuid.command.d.ts.map +1 -1
  75. package/build/backend/commands/users/get-user-by-short-uuid.command.js +1 -1
  76. package/build/backend/commands/users/get-user-by-subscription-uuid.command.d.ts.map +1 -1
  77. package/build/backend/commands/users/get-user-by-subscription-uuid.command.js +1 -1
  78. package/build/backend/commands/users/get-user-by-username.command.d.ts.map +1 -1
  79. package/build/backend/commands/users/get-user-by-username.command.js +1 -1
  80. package/build/backend/commands/users/get-user-by-uuid.command.d.ts.map +1 -1
  81. package/build/backend/commands/users/get-user-by-uuid.command.js +1 -1
  82. package/build/backend/commands/users/index.d.ts +1 -1
  83. package/build/backend/commands/users/index.d.ts.map +1 -1
  84. package/build/backend/commands/users/index.js +1 -1
  85. package/build/backend/commands/users/revoke-user-subscription.command.d.ts.map +1 -1
  86. package/build/backend/commands/users/revoke-user-subscription.command.js +1 -1
  87. package/build/backend/commands/users/update-user.command.d.ts.map +1 -1
  88. package/build/backend/commands/users/update-user.command.js +1 -1
  89. package/build/backend/commands/xray/get-config.command.d.ts.map +1 -1
  90. package/build/backend/commands/xray/update-config.command.d.ts.map +1 -1
  91. package/build/backend/constants/errors/errors.d.ts +5 -0
  92. package/build/backend/constants/errors/errors.d.ts.map +1 -1
  93. package/build/backend/constants/errors/errors.js +5 -0
  94. package/build/backend/constants/index.d.ts +1 -1
  95. package/build/backend/constants/index.d.ts.map +1 -1
  96. package/build/backend/constants/index.js +1 -1
  97. package/build/backend/constants/nodes/index.d.ts +1 -1
  98. package/build/backend/constants/nodes/index.d.ts.map +1 -1
  99. package/build/backend/constants/nodes/index.js +1 -1
  100. package/build/backend/models/nodes.schema.d.ts +23 -0
  101. package/build/backend/models/nodes.schema.d.ts.map +1 -1
  102. package/build/backend/models/nodes.schema.js +2 -0
  103. package/build/backend/models/users.schema.d.ts.map +1 -1
  104. package/build/frontend/api/controllers/nodes.js +3 -0
  105. package/build/frontend/api/index.js +1 -1
  106. package/build/frontend/api/routes.js +3 -0
  107. package/build/frontend/commands/api-tokens/find.command.js +1 -1
  108. package/build/frontend/commands/hosts/create.command.js +2 -2
  109. package/build/frontend/commands/hosts/get-all.command.js +1 -1
  110. package/build/frontend/commands/hosts/reorder.command.js +1 -1
  111. package/build/frontend/commands/hosts/update.command.js +2 -2
  112. package/build/frontend/commands/inbounds/get-inbounds.command.js +1 -1
  113. package/build/frontend/commands/nodes/create.command.js +4 -1
  114. package/build/frontend/commands/nodes/disable.command.js +1 -1
  115. package/build/frontend/commands/nodes/enable.command.js +1 -1
  116. package/build/frontend/commands/nodes/get-all.command.js +1 -1
  117. package/build/frontend/commands/nodes/get-nodes-usage-by-range.command.js +26 -0
  118. package/build/frontend/commands/nodes/get-one.command.js +1 -1
  119. package/build/frontend/commands/nodes/index.js +1 -0
  120. package/build/frontend/commands/nodes/update.command.js +4 -1
  121. package/build/frontend/commands/subscription/get-subscription-info-by-short-uuid.command.js +1 -1
  122. package/build/frontend/commands/system/get-bandwidth-stats.command.js +1 -1
  123. package/build/frontend/commands/system/get-stats.command.js +1 -1
  124. package/build/frontend/commands/users/create-user.command.js +1 -1
  125. package/build/frontend/commands/users/disable-user.command.ts.js +1 -1
  126. package/build/frontend/commands/users/enable-user.command.js +1 -1
  127. package/build/frontend/commands/users/get-all-users-v2.command.js +1 -1
  128. package/build/frontend/commands/users/get-all-users.command.js +1 -1
  129. package/build/frontend/commands/users/get-user-by-short-uuid.command.js +1 -1
  130. package/build/frontend/commands/users/get-user-by-subscription-uuid.command.js +1 -1
  131. package/build/frontend/commands/users/get-user-by-username.command.js +1 -1
  132. package/build/frontend/commands/users/get-user-by-uuid.command.js +1 -1
  133. package/build/frontend/commands/users/index.js +1 -1
  134. package/build/frontend/commands/users/revoke-user-subscription.command.js +1 -1
  135. package/build/frontend/commands/users/update-user.command.js +1 -1
  136. package/build/frontend/constants/errors/errors.js +5 -0
  137. package/build/frontend/constants/index.js +1 -1
  138. package/build/frontend/constants/nodes/index.js +1 -1
  139. package/build/frontend/models/nodes.schema.js +2 -0
  140. package/package.json +1 -1
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./status"), exports);
18
17
  __exportStar(require("./cycle"), exports);
18
+ __exportStar(require("./status"), exports);
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.NodesSchema = void 0;
4
4
  const zod_1 = require("zod");
5
+ const inbounds_schema_1 = require("./inbounds.schema");
5
6
  exports.NodesSchema = zod_1.z.object({
6
7
  uuid: zod_1.z.string().uuid(),
7
8
  name: zod_1.z.string(),
@@ -26,4 +27,5 @@ exports.NodesSchema = zod_1.z.object({
26
27
  totalRam: zod_1.z.nullable(zod_1.z.string()),
27
28
  createdAt: zod_1.z.string().transform((str) => new Date(str)),
28
29
  updatedAt: zod_1.z.string().transform((str) => new Date(str)),
30
+ excludedInbounds: zod_1.z.array(inbounds_schema_1.InboundsSchema),
29
31
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/backend-contract",
3
- "version": "0.0.63",
3
+ "version": "0.0.65",
4
4
  "description": "A contract library for Remnawave",
5
5
  "main": "build/backend/index.js",
6
6
  "browser": "build/frontend/index.js",