@remnawave/backend-contract 2.0.0-alpha.3 → 2.0.0-alpha.31

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 (223) hide show
  1. package/build/backend/api/controllers/index.d.ts +1 -0
  2. package/build/backend/api/controllers/index.d.ts.map +1 -1
  3. package/build/backend/api/controllers/index.js +1 -0
  4. package/build/backend/api/controllers/infra-billing.d.ts +16 -0
  5. package/build/backend/api/controllers/infra-billing.d.ts.map +1 -0
  6. package/build/backend/api/controllers/infra-billing.js +18 -0
  7. package/build/backend/api/controllers/internal-squads.d.ts +4 -0
  8. package/build/backend/api/controllers/internal-squads.d.ts.map +1 -1
  9. package/build/backend/api/controllers/internal-squads.js +5 -0
  10. package/build/backend/api/controllers/users.d.ts +1 -0
  11. package/build/backend/api/controllers/users.d.ts.map +1 -1
  12. package/build/backend/api/controllers/users.js +1 -0
  13. package/build/backend/api/routes.d.ts +19 -0
  14. package/build/backend/api/routes.d.ts.map +1 -1
  15. package/build/backend/api/routes.js +19 -0
  16. package/build/backend/commands/config-profiles/create-config-profile.command.js +2 -2
  17. package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts +31 -10
  18. package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts.map +1 -1
  19. package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts +31 -10
  20. package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts.map +1 -1
  21. package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts +31 -10
  22. package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts.map +1 -1
  23. package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.d.ts +31 -10
  24. package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.d.ts.map +1 -1
  25. package/build/backend/commands/hosts/bulk/set-port-to-many-hosts.command.d.ts +31 -10
  26. package/build/backend/commands/hosts/bulk/set-port-to-many-hosts.command.d.ts.map +1 -1
  27. package/build/backend/commands/hosts/create.command.d.ts +52 -19
  28. package/build/backend/commands/hosts/create.command.d.ts.map +1 -1
  29. package/build/backend/commands/hosts/create.command.js +13 -13
  30. package/build/backend/commands/hosts/get-all.command.d.ts +31 -10
  31. package/build/backend/commands/hosts/get-all.command.d.ts.map +1 -1
  32. package/build/backend/commands/hosts/get-one.command.d.ts +31 -10
  33. package/build/backend/commands/hosts/get-one.command.d.ts.map +1 -1
  34. package/build/backend/commands/hosts/reorder.command.d.ts +11 -2
  35. package/build/backend/commands/hosts/reorder.command.d.ts.map +1 -1
  36. package/build/backend/commands/hosts/update.command.d.ts +63 -21
  37. package/build/backend/commands/hosts/update.command.d.ts.map +1 -1
  38. package/build/backend/commands/hosts/update.command.js +10 -11
  39. package/build/backend/commands/index.d.ts +1 -0
  40. package/build/backend/commands/index.d.ts.map +1 -1
  41. package/build/backend/commands/index.js +1 -0
  42. package/build/backend/commands/infra-billing/create-bill-record.command.d.ts +125 -0
  43. package/build/backend/commands/infra-billing/create-bill-record.command.d.ts.map +1 -0
  44. package/build/backend/commands/infra-billing/create-bill-record.command.js +30 -0
  45. package/build/backend/commands/infra-billing/create-billing-node.command.d.ts +467 -0
  46. package/build/backend/commands/infra-billing/create-billing-node.command.d.ts.map +1 -0
  47. package/build/backend/commands/infra-billing/create-billing-node.command.js +38 -0
  48. package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts +123 -0
  49. package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts.map +1 -0
  50. package/build/backend/commands/infra-billing/create-infra-provider.command.js +24 -0
  51. package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.d.ts +119 -0
  52. package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.d.ts.map +1 -0
  53. package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.js +22 -0
  54. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts +461 -0
  55. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts.map +1 -0
  56. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.js +29 -0
  57. package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.d.ts +33 -0
  58. package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.d.ts.map +1 -0
  59. package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.js +20 -0
  60. package/build/backend/commands/infra-billing/get-bill-records.command.d.ts +122 -0
  61. package/build/backend/commands/infra-billing/get-bill-records.command.d.ts.map +1 -0
  62. package/build/backend/commands/infra-billing/get-bill-records.command.js +31 -0
  63. package/build/backend/commands/infra-billing/get-billing-nodes.command.d.ts +453 -0
  64. package/build/backend/commands/infra-billing/get-billing-nodes.command.d.ts.map +1 -0
  65. package/build/backend/commands/infra-billing/get-billing-nodes.command.js +26 -0
  66. package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts +117 -0
  67. package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts.map +1 -0
  68. package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.js +19 -0
  69. package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts +156 -0
  70. package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts.map +1 -0
  71. package/build/backend/commands/infra-billing/get-infra-providers.command.js +19 -0
  72. package/build/backend/commands/infra-billing/index.d.ts +13 -0
  73. package/build/backend/commands/infra-billing/index.d.ts.map +1 -0
  74. package/build/backend/commands/infra-billing/index.js +28 -0
  75. package/build/backend/commands/infra-billing/update-billing-node.command.d.ts +464 -0
  76. package/build/backend/commands/infra-billing/update-billing-node.command.d.ts.map +1 -0
  77. package/build/backend/commands/infra-billing/update-billing-node.command.js +35 -0
  78. package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts +126 -0
  79. package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts.map +1 -0
  80. package/build/backend/commands/infra-billing/update-infra-provider.command.js +26 -0
  81. package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.d.ts +33 -0
  82. package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.d.ts.map +1 -0
  83. package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.js +20 -0
  84. package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.d.ts +33 -0
  85. package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.d.ts.map +1 -0
  86. package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.js +20 -0
  87. package/build/backend/commands/internal-squads/bulk-actions/index.d.ts +3 -0
  88. package/build/backend/commands/internal-squads/bulk-actions/index.d.ts.map +1 -0
  89. package/build/backend/commands/internal-squads/bulk-actions/index.js +18 -0
  90. package/build/backend/commands/internal-squads/create-internal-squad.command.js +2 -2
  91. package/build/backend/commands/internal-squads/{get-internal-squad-by-uuid..d.ts → get-internal-squad-by-uuid.d.ts} +1 -1
  92. package/build/backend/commands/internal-squads/get-internal-squad-by-uuid.d.ts.map +1 -0
  93. package/build/backend/commands/internal-squads/index.d.ts +2 -1
  94. package/build/backend/commands/internal-squads/index.d.ts.map +1 -1
  95. package/build/backend/commands/internal-squads/index.js +2 -1
  96. package/build/backend/commands/nodes/actions/disable.command.d.ts +162 -64
  97. package/build/backend/commands/nodes/actions/disable.command.d.ts.map +1 -1
  98. package/build/backend/commands/nodes/actions/enable.command.d.ts +162 -64
  99. package/build/backend/commands/nodes/actions/enable.command.d.ts.map +1 -1
  100. package/build/backend/commands/nodes/actions/reorder.command.d.ts +236 -88
  101. package/build/backend/commands/nodes/actions/reorder.command.d.ts.map +1 -1
  102. package/build/backend/commands/nodes/create.command.d.ts +183 -70
  103. package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
  104. package/build/backend/commands/nodes/create.command.js +7 -4
  105. package/build/backend/commands/nodes/get-all.command.d.ts +162 -64
  106. package/build/backend/commands/nodes/get-all.command.d.ts.map +1 -1
  107. package/build/backend/commands/nodes/get-one.command.d.ts +162 -64
  108. package/build/backend/commands/nodes/get-one.command.d.ts.map +1 -1
  109. package/build/backend/commands/nodes/stats/get-node-user-usage-by-range.command.d.ts +4 -4
  110. package/build/backend/commands/nodes/stats/get-nodes-usage-by-range.command.d.ts +4 -4
  111. package/build/backend/commands/nodes/update.command.d.ts +257 -94
  112. package/build/backend/commands/nodes/update.command.d.ts.map +1 -1
  113. package/build/backend/commands/nodes/update.command.js +9 -4
  114. package/build/backend/commands/users/get-user-accessible-nodes.command.d.ts +114 -0
  115. package/build/backend/commands/users/get-user-accessible-nodes.command.d.ts.map +1 -0
  116. package/build/backend/commands/users/get-user-accessible-nodes.command.js +31 -0
  117. package/build/backend/commands/users/get-user-usage-by-range.command.d.ts +4 -4
  118. package/build/backend/commands/users/index.d.ts +1 -0
  119. package/build/backend/commands/users/index.d.ts.map +1 -1
  120. package/build/backend/commands/users/index.js +1 -0
  121. package/build/backend/constants/errors/errors.d.ts +105 -0
  122. package/build/backend/constants/errors/errors.d.ts.map +1 -1
  123. package/build/backend/constants/errors/errors.js +105 -0
  124. package/build/backend/constants/events/events.d.ts +11 -0
  125. package/build/backend/constants/events/events.d.ts.map +1 -1
  126. package/build/backend/constants/events/events.js +10 -0
  127. package/build/backend/constants/headers/headers.contants.d.ts +3 -0
  128. package/build/backend/constants/headers/headers.contants.d.ts.map +1 -0
  129. package/build/backend/constants/headers/headers.contants.js +5 -0
  130. package/build/backend/constants/headers/index.d.ts +2 -0
  131. package/build/backend/constants/headers/index.d.ts.map +1 -0
  132. package/build/backend/constants/headers/index.js +17 -0
  133. package/build/backend/constants/index.d.ts +2 -0
  134. package/build/backend/constants/index.d.ts.map +1 -1
  135. package/build/backend/constants/index.js +2 -0
  136. package/build/backend/constants/messaging/index.d.ts +2 -0
  137. package/build/backend/constants/messaging/index.d.ts.map +1 -0
  138. package/build/backend/constants/messaging/index.js +17 -0
  139. package/build/backend/constants/messaging/messaging.constants.d.ts +13 -0
  140. package/build/backend/constants/messaging/messaging.constants.d.ts.map +1 -0
  141. package/build/backend/constants/messaging/messaging.constants.js +19 -0
  142. package/build/backend/constants/metrics/metric-names.constant.d.ts +16 -0
  143. package/build/backend/constants/metrics/metric-names.constant.d.ts.map +1 -1
  144. package/build/backend/constants/metrics/metric-names.constant.js +16 -0
  145. package/build/backend/constants/templates/template-keys.d.ts +1 -1
  146. package/build/backend/constants/templates/template-keys.d.ts.map +1 -1
  147. package/build/backend/constants/templates/template-keys.js +1 -0
  148. package/build/backend/models/{extented-users.schema.d.ts → extended-users.schema.d.ts} +1 -1
  149. package/build/backend/models/{extented-users.schema.d.ts.map → extended-users.schema.d.ts.map} +1 -1
  150. package/build/backend/models/hosts.schema.d.ts +21 -6
  151. package/build/backend/models/hosts.schema.d.ts.map +1 -1
  152. package/build/backend/models/hosts.schema.js +5 -2
  153. package/build/backend/models/index.d.ts +5 -1
  154. package/build/backend/models/index.d.ts.map +1 -1
  155. package/build/backend/models/index.js +5 -1
  156. package/build/backend/models/infra-billing-available-node.schema.d.ts +117 -0
  157. package/build/backend/models/infra-billing-available-node.schema.d.ts.map +1 -0
  158. package/build/backend/models/infra-billing-available-node.schema.js +9 -0
  159. package/build/backend/models/infra-billing-history-record.schema.d.ts +44 -0
  160. package/build/backend/models/infra-billing-history-record.schema.d.ts.map +1 -0
  161. package/build/backend/models/infra-billing-history-record.schema.js +19 -0
  162. package/build/backend/models/infra-billing-node.schema.d.ts +180 -0
  163. package/build/backend/models/infra-billing-node.schema.d.ts.map +1 -0
  164. package/build/backend/models/infra-billing-node.schema.js +34 -0
  165. package/build/backend/models/infra-provider.schema.d.ts +87 -0
  166. package/build/backend/models/infra-provider.schema.d.ts.map +1 -0
  167. package/build/backend/models/infra-provider.schema.js +41 -0
  168. package/build/backend/models/nodes.schema.d.ts +118 -44
  169. package/build/backend/models/nodes.schema.d.ts.map +1 -1
  170. package/build/backend/models/nodes.schema.js +8 -2
  171. package/build/frontend/api/controllers/index.js +1 -0
  172. package/build/frontend/api/controllers/infra-billing.js +18 -0
  173. package/build/frontend/api/controllers/internal-squads.js +5 -0
  174. package/build/frontend/api/controllers/users.js +1 -0
  175. package/build/frontend/api/routes.js +19 -0
  176. package/build/frontend/commands/config-profiles/create-config-profile.command.js +2 -2
  177. package/build/frontend/commands/hosts/create.command.js +13 -13
  178. package/build/frontend/commands/hosts/update.command.js +10 -11
  179. package/build/frontend/commands/index.js +1 -0
  180. package/build/frontend/commands/infra-billing/create-bill-record.command.js +30 -0
  181. package/build/frontend/commands/infra-billing/create-billing-node.command.js +38 -0
  182. package/build/frontend/commands/infra-billing/create-infra-provider.command.js +24 -0
  183. package/build/frontend/commands/infra-billing/delete-bill-record-by-uuid.command.js +22 -0
  184. package/build/frontend/commands/infra-billing/delete-billing-node-by-uuid.command.js +29 -0
  185. package/build/frontend/commands/infra-billing/delete-infra-provider-by-uuid.command.js +20 -0
  186. package/build/frontend/commands/infra-billing/get-bill-records.command.js +31 -0
  187. package/build/frontend/commands/infra-billing/get-billing-nodes.command.js +26 -0
  188. package/build/frontend/commands/infra-billing/get-infra-provider-by-uuid.command.js +19 -0
  189. package/build/frontend/commands/infra-billing/get-infra-providers.command.js +19 -0
  190. package/build/frontend/commands/infra-billing/index.js +28 -0
  191. package/build/frontend/commands/infra-billing/update-billing-node.command.js +35 -0
  192. package/build/frontend/commands/infra-billing/update-infra-provider.command.js +26 -0
  193. package/build/frontend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.js +20 -0
  194. package/build/frontend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.js +20 -0
  195. package/build/frontend/commands/internal-squads/bulk-actions/index.js +18 -0
  196. package/build/frontend/commands/internal-squads/create-internal-squad.command.js +2 -2
  197. package/build/frontend/commands/internal-squads/index.js +2 -1
  198. package/build/frontend/commands/nodes/create.command.js +7 -4
  199. package/build/frontend/commands/nodes/update.command.js +9 -4
  200. package/build/frontend/commands/users/get-user-accessible-nodes.command.js +31 -0
  201. package/build/frontend/commands/users/index.js +1 -0
  202. package/build/frontend/constants/errors/errors.js +105 -0
  203. package/build/frontend/constants/events/events.js +10 -0
  204. package/build/frontend/constants/headers/headers.contants.js +5 -0
  205. package/build/frontend/constants/headers/index.js +17 -0
  206. package/build/frontend/constants/index.js +2 -0
  207. package/build/frontend/constants/messaging/index.js +17 -0
  208. package/build/frontend/constants/messaging/messaging.constants.js +19 -0
  209. package/build/frontend/constants/metrics/metric-names.constant.js +16 -0
  210. package/build/frontend/constants/templates/template-keys.js +1 -0
  211. package/build/frontend/models/hosts.schema.js +5 -2
  212. package/build/frontend/models/index.js +5 -1
  213. package/build/frontend/models/infra-billing-available-node.schema.js +9 -0
  214. package/build/frontend/models/infra-billing-history-record.schema.js +19 -0
  215. package/build/frontend/models/infra-billing-node.schema.js +34 -0
  216. package/build/frontend/models/infra-provider.schema.js +41 -0
  217. package/build/frontend/models/nodes.schema.js +8 -2
  218. package/package.json +2 -2
  219. package/build/backend/commands/internal-squads/get-internal-squad-by-uuid..d.ts.map +0 -1
  220. /package/build/backend/commands/internal-squads/{get-internal-squad-by-uuid..js → get-internal-squad-by-uuid.js} +0 -0
  221. /package/build/backend/models/{extented-users.schema.js → extended-users.schema.js} +0 -0
  222. /package/build/frontend/commands/internal-squads/{get-internal-squad-by-uuid..js → get-internal-squad-by-uuid.js} +0 -0
  223. /package/build/frontend/models/{extented-users.schema.js → extended-users.schema.js} +0 -0
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetUserAccessibleNodesCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const constants_1 = require("../../constants");
6
+ const api_1 = require("../../api");
7
+ var GetUserAccessibleNodesCommand;
8
+ (function (GetUserAccessibleNodesCommand) {
9
+ GetUserAccessibleNodesCommand.url = api_1.REST_API.USERS.ACCESSIBLE_NODES;
10
+ GetUserAccessibleNodesCommand.TSQ_url = GetUserAccessibleNodesCommand.url(':uuid');
11
+ GetUserAccessibleNodesCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.ACCESSIBLE_NODES(':uuid'), 'get', 'Get user accessible nodes');
12
+ GetUserAccessibleNodesCommand.RequestSchema = zod_1.z.object({
13
+ uuid: zod_1.z.string().uuid(),
14
+ });
15
+ GetUserAccessibleNodesCommand.ResponseSchema = zod_1.z.object({
16
+ response: zod_1.z.object({
17
+ userUuid: zod_1.z.string().uuid(),
18
+ activeNodes: zod_1.z.array(zod_1.z.object({
19
+ uuid: zod_1.z.string().uuid(),
20
+ nodeName: zod_1.z.string(),
21
+ countryCode: zod_1.z.string(),
22
+ configProfileUuid: zod_1.z.string().uuid(),
23
+ configProfileName: zod_1.z.string(),
24
+ activeSquads: zod_1.z.array(zod_1.z.object({
25
+ squadName: zod_1.z.string(),
26
+ activeInbounds: zod_1.z.array(zod_1.z.string()),
27
+ })),
28
+ })),
29
+ }),
30
+ });
31
+ })(GetUserAccessibleNodesCommand || (exports.GetUserAccessibleNodesCommand = GetUserAccessibleNodesCommand = {}));
@@ -33,30 +33,30 @@ export declare namespace GetUserUsageByRangeCommand {
33
33
  date: Date;
34
34
  nodeName: string;
35
35
  userUuid: string;
36
- total: number;
37
36
  nodeUuid: string;
37
+ total: number;
38
38
  }, {
39
39
  date: string;
40
40
  nodeName: string;
41
41
  userUuid: string;
42
- total: number;
43
42
  nodeUuid: string;
43
+ total: number;
44
44
  }>, "many">;
45
45
  }, "strip", z.ZodTypeAny, {
46
46
  response: {
47
47
  date: Date;
48
48
  nodeName: string;
49
49
  userUuid: string;
50
- total: number;
51
50
  nodeUuid: string;
51
+ total: number;
52
52
  }[];
53
53
  }, {
54
54
  response: {
55
55
  date: string;
56
56
  nodeName: string;
57
57
  userUuid: string;
58
- total: number;
59
58
  nodeUuid: string;
59
+ total: number;
60
60
  }[];
61
61
  }>;
62
62
  type Response = z.infer<typeof ResponseSchema>;
@@ -5,6 +5,7 @@ export * from './create-user.command';
5
5
  export * from './delete-user.command';
6
6
  export * from './get-all-users.command';
7
7
  export * from './get-by';
8
+ export * from './get-user-accessible-nodes.command';
8
9
  export * from './get-user-by-uuid.command';
9
10
  export * from './get-user-usage-by-range.command';
10
11
  export * from './tags';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commands/users/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAE3B,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AAEtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,UAAU,CAAC;AAEzB,cAAc,4BAA4B,CAAC;AAE3C,cAAc,mCAAmC,CAAC;AAClD,cAAc,QAAQ,CAAC;AAEvB,cAAc,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commands/users/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAE3B,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AAEtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,UAAU,CAAC;AAEzB,cAAc,qCAAqC,CAAC;AAEpD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mCAAmC,CAAC;AAElD,cAAc,QAAQ,CAAC;AACvB,cAAc,uBAAuB,CAAC"}
@@ -21,6 +21,7 @@ __exportStar(require("./create-user.command"), exports);
21
21
  __exportStar(require("./delete-user.command"), exports);
22
22
  __exportStar(require("./get-all-users.command"), exports);
23
23
  __exportStar(require("./get-by"), exports);
24
+ __exportStar(require("./get-user-accessible-nodes.command"), exports);
24
25
  __exportStar(require("./get-user-by-uuid.command"), exports);
25
26
  __exportStar(require("./get-user-usage-by-range.command"), exports);
26
27
  __exportStar(require("./tags"), exports);
@@ -649,5 +649,110 @@ export declare const ERRORS: {
649
649
  readonly message: "Config profile inbound not found in specified profile";
650
650
  readonly httpCode: 404;
651
651
  };
652
+ readonly GET_USER_ACCESSIBLE_NODES_ERROR: {
653
+ readonly code: "A125";
654
+ readonly message: "Get user accessible nodes error";
655
+ readonly httpCode: 500;
656
+ };
657
+ readonly GET_INFRA_PROVIDERS_ERROR: {
658
+ readonly code: "A126";
659
+ readonly message: "Get infra providers error";
660
+ readonly httpCode: 500;
661
+ };
662
+ readonly GET_INFRA_PROVIDER_BY_UUID_ERROR: {
663
+ readonly code: "A127";
664
+ readonly message: "Get infra provider by UUID error";
665
+ readonly httpCode: 500;
666
+ };
667
+ readonly INFRA_PROVIDER_NOT_FOUND: {
668
+ readonly code: "A128";
669
+ readonly message: "Infra provider not found";
670
+ readonly httpCode: 404;
671
+ };
672
+ readonly DELETE_INFRA_PROVIDER_BY_UUID_ERROR: {
673
+ readonly code: "A129";
674
+ readonly message: "Delete infra provider by UUID error";
675
+ readonly httpCode: 500;
676
+ };
677
+ readonly CREATE_INFRA_PROVIDER_ERROR: {
678
+ readonly code: "A130";
679
+ readonly message: "Create infra provider error";
680
+ readonly httpCode: 500;
681
+ };
682
+ readonly UPDATE_INFRA_PROVIDER_ERROR: {
683
+ readonly code: "A131";
684
+ readonly message: "Update infra provider error";
685
+ readonly httpCode: 500;
686
+ };
687
+ readonly CREATE_INFRA_BILLING_HISTORY_RECORD_ERROR: {
688
+ readonly code: "A132";
689
+ readonly message: "Create infra billing history record error";
690
+ readonly httpCode: 500;
691
+ };
692
+ readonly GET_INFRA_BILLING_HISTORY_RECORDS_ERROR: {
693
+ readonly code: "A133";
694
+ readonly message: "Get infra billing history records error";
695
+ readonly httpCode: 500;
696
+ };
697
+ readonly DELETE_INFRA_BILLING_HISTORY_RECORD_BY_UUID_ERROR: {
698
+ readonly code: "A134";
699
+ readonly message: "Delete infra billing history record by UUID error";
700
+ readonly httpCode: 500;
701
+ };
702
+ readonly GET_BILLING_NODES_ERROR: {
703
+ readonly code: "A135";
704
+ readonly message: "Get billing nodes error";
705
+ readonly httpCode: 500;
706
+ };
707
+ readonly UPDATE_INFRA_BILLING_NODE_ERROR: {
708
+ readonly code: "A136";
709
+ readonly message: "Update infra billing node error";
710
+ readonly httpCode: 500;
711
+ };
712
+ readonly CREATE_INFRA_BILLING_NODE_ERROR: {
713
+ readonly code: "A137";
714
+ readonly message: "Create infra billing node error";
715
+ readonly httpCode: 500;
716
+ };
717
+ readonly DELETE_INFRA_BILLING_NODE_BY_UUID_ERROR: {
718
+ readonly code: "A138";
719
+ readonly message: "Delete infra billing node by UUID error";
720
+ readonly httpCode: 500;
721
+ };
722
+ readonly GET_BILLING_NODES_FOR_NOTIFICATIONS_ERROR: {
723
+ readonly code: "A139";
724
+ readonly message: "Get billing nodes for notifications error";
725
+ readonly httpCode: 500;
726
+ };
727
+ readonly ADD_USERS_TO_INTERNAL_SQUAD_ERROR: {
728
+ readonly code: "A140";
729
+ readonly message: "Add users to internal squad error";
730
+ readonly httpCode: 500;
731
+ };
732
+ readonly INTERNAL_SQUAD_BULK_ACTIONS_ERROR: {
733
+ readonly code: "A141";
734
+ readonly message: "Internal squad bulk actions error";
735
+ readonly httpCode: 500;
736
+ };
737
+ readonly REMOVE_USERS_FROM_INTERNAL_SQUAD_ERROR: {
738
+ readonly code: "A142";
739
+ readonly message: "Remove users from internal squad error";
740
+ readonly httpCode: 500;
741
+ };
742
+ readonly DELETE_CONFIG_PROFILE_BY_UUID_ERROR: {
743
+ readonly code: "A143";
744
+ readonly message: "Delete config profile by UUID error";
745
+ readonly httpCode: 500;
746
+ };
747
+ readonly RESERVED_INTERNAL_SQUAD_NAME: {
748
+ readonly code: "A144";
749
+ readonly message: "This name is reserved by Remnawave. Please use a different name.";
750
+ readonly httpCode: 400;
751
+ };
752
+ readonly RESERVED_CONFIG_PROFILE_NAME: {
753
+ readonly code: "A145";
754
+ readonly message: "This name is reserved by Remnawave. Please use a different name.";
755
+ readonly httpCode: 400;
756
+ };
652
757
  };
653
758
  //# sourceMappingURL=errors.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../constants/errors/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAwJY,MAAM;;;;;;;;;;wCAUN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA4IN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+T3B,CAAC"}
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../constants/errors/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAwJY,MAAM;;;;;;;;;;wCAUN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA4IN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwa3B,CAAC"}
@@ -620,4 +620,109 @@ exports.ERRORS = {
620
620
  message: 'Config profile inbound not found in specified profile',
621
621
  httpCode: 404,
622
622
  },
623
+ GET_USER_ACCESSIBLE_NODES_ERROR: {
624
+ code: 'A125',
625
+ message: 'Get user accessible nodes error',
626
+ httpCode: 500,
627
+ },
628
+ GET_INFRA_PROVIDERS_ERROR: {
629
+ code: 'A126',
630
+ message: 'Get infra providers error',
631
+ httpCode: 500,
632
+ },
633
+ GET_INFRA_PROVIDER_BY_UUID_ERROR: {
634
+ code: 'A127',
635
+ message: 'Get infra provider by UUID error',
636
+ httpCode: 500,
637
+ },
638
+ INFRA_PROVIDER_NOT_FOUND: {
639
+ code: 'A128',
640
+ message: 'Infra provider not found',
641
+ httpCode: 404,
642
+ },
643
+ DELETE_INFRA_PROVIDER_BY_UUID_ERROR: {
644
+ code: 'A129',
645
+ message: 'Delete infra provider by UUID error',
646
+ httpCode: 500,
647
+ },
648
+ CREATE_INFRA_PROVIDER_ERROR: {
649
+ code: 'A130',
650
+ message: 'Create infra provider error',
651
+ httpCode: 500,
652
+ },
653
+ UPDATE_INFRA_PROVIDER_ERROR: {
654
+ code: 'A131',
655
+ message: 'Update infra provider error',
656
+ httpCode: 500,
657
+ },
658
+ CREATE_INFRA_BILLING_HISTORY_RECORD_ERROR: {
659
+ code: 'A132',
660
+ message: 'Create infra billing history record error',
661
+ httpCode: 500,
662
+ },
663
+ GET_INFRA_BILLING_HISTORY_RECORDS_ERROR: {
664
+ code: 'A133',
665
+ message: 'Get infra billing history records error',
666
+ httpCode: 500,
667
+ },
668
+ DELETE_INFRA_BILLING_HISTORY_RECORD_BY_UUID_ERROR: {
669
+ code: 'A134',
670
+ message: 'Delete infra billing history record by UUID error',
671
+ httpCode: 500,
672
+ },
673
+ GET_BILLING_NODES_ERROR: {
674
+ code: 'A135',
675
+ message: 'Get billing nodes error',
676
+ httpCode: 500,
677
+ },
678
+ UPDATE_INFRA_BILLING_NODE_ERROR: {
679
+ code: 'A136',
680
+ message: 'Update infra billing node error',
681
+ httpCode: 500,
682
+ },
683
+ CREATE_INFRA_BILLING_NODE_ERROR: {
684
+ code: 'A137',
685
+ message: 'Create infra billing node error',
686
+ httpCode: 500,
687
+ },
688
+ DELETE_INFRA_BILLING_NODE_BY_UUID_ERROR: {
689
+ code: 'A138',
690
+ message: 'Delete infra billing node by UUID error',
691
+ httpCode: 500,
692
+ },
693
+ GET_BILLING_NODES_FOR_NOTIFICATIONS_ERROR: {
694
+ code: 'A139',
695
+ message: 'Get billing nodes for notifications error',
696
+ httpCode: 500,
697
+ },
698
+ ADD_USERS_TO_INTERNAL_SQUAD_ERROR: {
699
+ code: 'A140',
700
+ message: 'Add users to internal squad error',
701
+ httpCode: 500,
702
+ },
703
+ INTERNAL_SQUAD_BULK_ACTIONS_ERROR: {
704
+ code: 'A141',
705
+ message: 'Internal squad bulk actions error',
706
+ httpCode: 500,
707
+ },
708
+ REMOVE_USERS_FROM_INTERNAL_SQUAD_ERROR: {
709
+ code: 'A142',
710
+ message: 'Remove users from internal squad error',
711
+ httpCode: 500,
712
+ },
713
+ DELETE_CONFIG_PROFILE_BY_UUID_ERROR: {
714
+ code: 'A143',
715
+ message: 'Delete config profile by UUID error',
716
+ httpCode: 500,
717
+ },
718
+ RESERVED_INTERNAL_SQUAD_NAME: {
719
+ code: 'A144',
720
+ message: 'This name is reserved by Remnawave. Please use a different name.',
721
+ httpCode: 400,
722
+ },
723
+ RESERVED_CONFIG_PROFILE_NAME: {
724
+ code: 'A145',
725
+ message: 'This name is reserved by Remnawave. Please use a different name.',
726
+ httpCode: 400,
727
+ },
623
728
  };
@@ -36,13 +36,24 @@ export declare const EVENTS: {
36
36
  readonly ERRORS: {
37
37
  readonly BANDWIDTH_USAGE_THRESHOLD_REACHED_MAX_NOTIFICATIONS: "errors.bandwidth_usage_threshold_reached_max_notifications";
38
38
  };
39
+ readonly CRM: {
40
+ readonly INFRA_BILLING_NODE_PAYMENT_IN_7_DAYS: "crm.infra_billing_node_payment_in_7_days";
41
+ readonly INFRA_BILLING_NODE_PAYMENT_IN_48HRS: "crm.infra_billing_node_payment_in_48hrs";
42
+ readonly INFRA_BILLING_NODE_PAYMENT_IN_24HRS: "crm.infra_billing_node_payment_in_24hrs";
43
+ readonly INFRA_BILLING_NODE_PAYMENT_DUE_TODAY: "crm.infra_billing_node_payment_due_today";
44
+ readonly INFRA_BILLING_NODE_PAYMENT_OVERDUE_24HRS: "crm.infra_billing_node_payment_overdue_24hrs";
45
+ readonly INFRA_BILLING_NODE_PAYMENT_OVERDUE_48HRS: "crm.infra_billing_node_payment_overdue_48hrs";
46
+ readonly INFRA_BILLING_NODE_PAYMENT_OVERDUE_7_DAYS: "crm.infra_billing_node_payment_overdue_7_days";
47
+ };
39
48
  readonly CATCH_ALL_USER_EVENTS: "user.*";
40
49
  readonly CATCH_ALL_NODE_EVENTS: "node.*";
41
50
  readonly CATCH_ALL_SERVICE_EVENTS: "service.*";
42
51
  readonly CATCH_ALL_ERRORS_EVENTS: "errors.*";
52
+ readonly CATCH_ALL_CRM_EVENTS: "crm.*";
43
53
  };
44
54
  export type TNodeEvents = (typeof EVENTS.NODE)[keyof typeof EVENTS.NODE];
45
55
  export type TUserEvents = (typeof EVENTS.USER)[keyof typeof EVENTS.USER];
46
56
  export type TServiceEvents = (typeof EVENTS.SERVICE)[keyof typeof EVENTS.SERVICE];
47
57
  export type TErrorsEvents = (typeof EVENTS.ERRORS)[keyof typeof EVENTS.ERRORS];
58
+ export type TCRMEvents = (typeof EVENTS.CRM)[keyof typeof EVENTS.CRM];
48
59
  //# sourceMappingURL=events.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../../constants/events/events.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2CT,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC,MAAM,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC;AACzE,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC,MAAM,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC;AACzE,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,OAAO,MAAM,CAAC,OAAO,CAAC,CAAC;AAClF,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,MAAM,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC"}
1
+ {"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../../constants/events/events.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsDT,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC,MAAM,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC;AACzE,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC,MAAM,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC;AACzE,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,OAAO,MAAM,CAAC,OAAO,CAAC,CAAC;AAClF,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,MAAM,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC;AAC/E,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,MAAM,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC"}
@@ -39,8 +39,18 @@ exports.EVENTS = {
39
39
  ERRORS: {
40
40
  BANDWIDTH_USAGE_THRESHOLD_REACHED_MAX_NOTIFICATIONS: 'errors.bandwidth_usage_threshold_reached_max_notifications',
41
41
  },
42
+ CRM: {
43
+ INFRA_BILLING_NODE_PAYMENT_IN_7_DAYS: 'crm.infra_billing_node_payment_in_7_days',
44
+ INFRA_BILLING_NODE_PAYMENT_IN_48HRS: 'crm.infra_billing_node_payment_in_48hrs',
45
+ INFRA_BILLING_NODE_PAYMENT_IN_24HRS: 'crm.infra_billing_node_payment_in_24hrs',
46
+ INFRA_BILLING_NODE_PAYMENT_DUE_TODAY: 'crm.infra_billing_node_payment_due_today',
47
+ INFRA_BILLING_NODE_PAYMENT_OVERDUE_24HRS: 'crm.infra_billing_node_payment_overdue_24hrs',
48
+ INFRA_BILLING_NODE_PAYMENT_OVERDUE_48HRS: 'crm.infra_billing_node_payment_overdue_48hrs',
49
+ INFRA_BILLING_NODE_PAYMENT_OVERDUE_7_DAYS: 'crm.infra_billing_node_payment_overdue_7_days',
50
+ },
42
51
  CATCH_ALL_USER_EVENTS: 'user.*',
43
52
  CATCH_ALL_NODE_EVENTS: 'node.*',
44
53
  CATCH_ALL_SERVICE_EVENTS: 'service.*',
45
54
  CATCH_ALL_ERRORS_EVENTS: 'errors.*',
55
+ CATCH_ALL_CRM_EVENTS: 'crm.*',
46
56
  };
@@ -0,0 +1,3 @@
1
+ export declare const REMNAWAVE_CLIENT_TYPE_HEADER = "X-Remnawave-Client-Type";
2
+ export declare const REMNAWAVE_CLIENT_TYPE_BROWSER = "browser";
3
+ //# sourceMappingURL=headers.contants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"headers.contants.d.ts","sourceRoot":"","sources":["../../../../constants/headers/headers.contants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,4BAA4B,4BAA4B,CAAC;AAEtE,eAAO,MAAM,6BAA6B,YAAY,CAAC"}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.REMNAWAVE_CLIENT_TYPE_BROWSER = exports.REMNAWAVE_CLIENT_TYPE_HEADER = void 0;
4
+ exports.REMNAWAVE_CLIENT_TYPE_HEADER = 'X-Remnawave-Client-Type';
5
+ exports.REMNAWAVE_CLIENT_TYPE_BROWSER = 'browser';
@@ -0,0 +1,2 @@
1
+ export * from './headers.contants';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../constants/headers/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./headers.contants"), exports);
@@ -1,7 +1,9 @@
1
1
  export * from './endpoint-details';
2
2
  export * from './errors';
3
3
  export * from './events';
4
+ export * from './headers';
4
5
  export * from './hosts';
6
+ export * from './messaging';
5
7
  export * from './metrics';
6
8
  export * from './nodes';
7
9
  export * from './roles';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,yBAAyB,CAAC;AACxC,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,yBAAyB,CAAC;AACxC,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}
@@ -17,7 +17,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./endpoint-details"), exports);
18
18
  __exportStar(require("./errors"), exports);
19
19
  __exportStar(require("./events"), exports);
20
+ __exportStar(require("./headers"), exports);
20
21
  __exportStar(require("./hosts"), exports);
22
+ __exportStar(require("./messaging"), exports);
21
23
  __exportStar(require("./metrics"), exports);
22
24
  __exportStar(require("./nodes"), exports);
23
25
  __exportStar(require("./roles"), exports);
@@ -0,0 +1,2 @@
1
+ export * from './messaging.constants';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../constants/messaging/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./messaging.constants"), exports);
@@ -0,0 +1,13 @@
1
+ export declare enum MessagingChannels {
2
+ EVENT = "redis-event"
3
+ }
4
+ export declare enum MessagingBuses {
5
+ EVENT = "event.bus"
6
+ }
7
+ export declare enum MessagingQueues {
8
+ EVENT = "event-queue"
9
+ }
10
+ export declare enum MessagingMessages {
11
+ NODE_METRICS = "node.metrics"
12
+ }
13
+ //# sourceMappingURL=messaging.constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"messaging.constants.d.ts","sourceRoot":"","sources":["../../../../constants/messaging/messaging.constants.ts"],"names":[],"mappings":"AAAA,oBAAY,iBAAiB;IACzB,KAAK,gBAAgB;CACxB;AAED,oBAAY,cAAc;IACtB,KAAK,cAAc;CACtB;AAED,oBAAY,eAAe;IACvB,KAAK,gBAAgB;CACxB;AAED,oBAAY,iBAAiB;IACzB,YAAY,iBAAiB;CAChC"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MessagingMessages = exports.MessagingQueues = exports.MessagingBuses = exports.MessagingChannels = void 0;
4
+ var MessagingChannels;
5
+ (function (MessagingChannels) {
6
+ MessagingChannels["EVENT"] = "redis-event";
7
+ })(MessagingChannels || (exports.MessagingChannels = MessagingChannels = {}));
8
+ var MessagingBuses;
9
+ (function (MessagingBuses) {
10
+ MessagingBuses["EVENT"] = "event.bus";
11
+ })(MessagingBuses || (exports.MessagingBuses = MessagingBuses = {}));
12
+ var MessagingQueues;
13
+ (function (MessagingQueues) {
14
+ MessagingQueues["EVENT"] = "event-queue";
15
+ })(MessagingQueues || (exports.MessagingQueues = MessagingQueues = {}));
16
+ var MessagingMessages;
17
+ (function (MessagingMessages) {
18
+ MessagingMessages["NODE_METRICS"] = "node.metrics";
19
+ })(MessagingMessages || (exports.MessagingMessages = MessagingMessages = {}));
@@ -3,6 +3,22 @@ export declare const METRIC_NAMES: {
3
3
  readonly NODE_STATUS: "node_status";
4
4
  readonly USERS_STATUS: "users_status";
5
5
  readonly USERS_TOTAL: "users_total";
6
+ readonly NODE_INBOUND_UPLOAD_BYTES: "node_inbound_upload_bytes";
7
+ readonly NODE_INBOUND_DOWNLOAD_BYTES: "node_inbound_download_bytes";
8
+ readonly NODE_OUTBOUND_UPLOAD_BYTES: "node_outbound_upload_bytes";
9
+ readonly NODE_OUTBOUND_DOWNLOAD_BYTES: "node_outbound_download_bytes";
10
+ readonly NODEJS_HEAP_USED_BYTES: "nodejs_heap_used_bytes";
11
+ readonly NODEJS_HEAP_TOTAL_BYTES: "nodejs_heap_total_bytes";
12
+ readonly NODEJS_HEAP_USAGE_PERCENT: "nodejs_heap_usage_percent";
13
+ readonly NODEJS_ACTIVE_HANDLERS: "nodejs_active_handlers";
14
+ readonly NODEJS_ACTIVE_REQUESTS: "nodejs_active_requests";
15
+ readonly NODEJS_CPU_USAGE_PERCENT: "nodejs_cpu_usage_percent";
16
+ readonly NODEJS_MEMORY_USAGE_BYTES: "nodejs_memory_usage_bytes";
17
+ readonly NODEJS_EVENT_LOOP_LATENCY_P50: "nodejs_event_loop_latency_p50";
18
+ readonly NODEJS_EVENT_LOOP_LATENCY_P95: "nodejs_event_loop_latency_p95";
19
+ readonly NODEJS_HTTP_REQ_RATE: "nodejs_http_req_rate";
20
+ readonly NODEJS_HTTP_REQ_LATENCY_P95: "nodejs_http_req_latency_p95";
21
+ readonly NODEJS_HTTP_REQ_LATENCY_P50: "nodejs_http_req_latency_p50";
6
22
  };
7
23
  export type TMetricNames = typeof METRIC_NAMES;
8
24
  export type TMetricNamesKeys = (typeof METRIC_NAMES)[keyof typeof METRIC_NAMES];
@@ -1 +1 @@
1
- {"version":3,"file":"metric-names.constant.d.ts","sourceRoot":"","sources":["../../../../constants/metrics/metric-names.constant.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY;;;;;CAKf,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG,OAAO,YAAY,CAAC;AAC/C,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC"}
1
+ {"version":3,"file":"metric-names.constant.d.ts","sourceRoot":"","sources":["../../../../constants/metrics/metric-names.constant.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;CAqBf,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG,OAAO,YAAY,CAAC;AAC/C,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC"}
@@ -6,4 +6,20 @@ exports.METRIC_NAMES = {
6
6
  NODE_STATUS: 'node_status',
7
7
  USERS_STATUS: 'users_status',
8
8
  USERS_TOTAL: 'users_total',
9
+ NODE_INBOUND_UPLOAD_BYTES: 'node_inbound_upload_bytes',
10
+ NODE_INBOUND_DOWNLOAD_BYTES: 'node_inbound_download_bytes',
11
+ NODE_OUTBOUND_UPLOAD_BYTES: 'node_outbound_upload_bytes',
12
+ NODE_OUTBOUND_DOWNLOAD_BYTES: 'node_outbound_download_bytes',
13
+ NODEJS_HEAP_USED_BYTES: 'nodejs_heap_used_bytes',
14
+ NODEJS_HEAP_TOTAL_BYTES: 'nodejs_heap_total_bytes',
15
+ NODEJS_HEAP_USAGE_PERCENT: 'nodejs_heap_usage_percent',
16
+ NODEJS_ACTIVE_HANDLERS: 'nodejs_active_handlers',
17
+ NODEJS_ACTIVE_REQUESTS: 'nodejs_active_requests',
18
+ NODEJS_CPU_USAGE_PERCENT: 'nodejs_cpu_usage_percent',
19
+ NODEJS_MEMORY_USAGE_BYTES: 'nodejs_memory_usage_bytes',
20
+ NODEJS_EVENT_LOOP_LATENCY_P50: 'nodejs_event_loop_latency_p50',
21
+ NODEJS_EVENT_LOOP_LATENCY_P95: 'nodejs_event_loop_latency_p95',
22
+ NODEJS_HTTP_REQ_RATE: 'nodejs_http_req_rate',
23
+ NODEJS_HTTP_REQ_LATENCY_P95: 'nodejs_http_req_latency_p95',
24
+ NODEJS_HTTP_REQ_LATENCY_P50: 'nodejs_http_req_latency_p50',
9
25
  };
@@ -1,3 +1,3 @@
1
- export declare const TEMPLATE_KEYS: readonly ["DAYS_LEFT", "TRAFFIC_USED", "TRAFFIC_LEFT", "STATUS", "TOTAL_TRAFFIC", "USERNAME", "EMAIL", "TELEGRAM_ID", "SUBSCRIPTION_URL"];
1
+ export declare const TEMPLATE_KEYS: readonly ["DAYS_LEFT", "TRAFFIC_USED", "TRAFFIC_LEFT", "STATUS", "TOTAL_TRAFFIC", "USERNAME", "EMAIL", "TELEGRAM_ID", "SUBSCRIPTION_URL", "TAG"];
2
2
  export type TemplateKeys = (typeof TEMPLATE_KEYS)[number];
3
3
  //# sourceMappingURL=template-keys.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"template-keys.d.ts","sourceRoot":"","sources":["../../../../constants/templates/template-keys.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,2IAUhB,CAAC;AACX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC"}
1
+ {"version":3,"file":"template-keys.d.ts","sourceRoot":"","sources":["../../../../constants/templates/template-keys.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,kJAWhB,CAAC;AACX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC"}
@@ -11,4 +11,5 @@ exports.TEMPLATE_KEYS = [
11
11
  'EMAIL',
12
12
  'TELEGRAM_ID',
13
13
  'SUBSCRIPTION_URL',
14
+ 'TAG',
14
15
  ];
@@ -144,4 +144,4 @@ export declare const ExtendedUsersSchema: z.ZodObject<{
144
144
  trafficLimitStrategy?: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | undefined;
145
145
  lastTriggeredThreshold?: number | undefined;
146
146
  }>;
147
- //# sourceMappingURL=extented-users.schema.d.ts.map
147
+ //# sourceMappingURL=extended-users.schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"extented-users.schema.d.ts","sourceRoot":"","sources":["../../../models/extented-users.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI9B,CAAC"}
1
+ {"version":3,"file":"extended-users.schema.d.ts","sourceRoot":"","sources":["../../../models/extended-users.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI9B,CAAC"}
@@ -17,8 +17,17 @@ export declare const HostsSchema: z.ZodObject<{
17
17
  readonly NONE: "NONE";
18
18
  }>>;
19
19
  xHttpExtraParams: z.ZodNullable<z.ZodUnknown>;
20
- configProfileUuid: z.ZodNullable<z.ZodString>;
21
- configProfileInboundUuid: z.ZodNullable<z.ZodString>;
20
+ inbound: z.ZodObject<{
21
+ configProfileUuid: z.ZodNullable<z.ZodString>;
22
+ configProfileInboundUuid: z.ZodNullable<z.ZodString>;
23
+ }, "strip", z.ZodTypeAny, {
24
+ configProfileUuid: string | null;
25
+ configProfileInboundUuid: string | null;
26
+ }, {
27
+ configProfileUuid: string | null;
28
+ configProfileInboundUuid: string | null;
29
+ }>;
30
+ serverDescription: z.ZodNullable<z.ZodString>;
22
31
  }, "strip", z.ZodTypeAny, {
23
32
  path: string | null;
24
33
  uuid: string;
@@ -32,8 +41,11 @@ export declare const HostsSchema: z.ZodObject<{
32
41
  fingerprint: string | null;
33
42
  isDisabled: boolean;
34
43
  securityLayer: "DEFAULT" | "TLS" | "NONE";
35
- configProfileUuid: string | null;
36
- configProfileInboundUuid: string | null;
44
+ inbound: {
45
+ configProfileUuid: string | null;
46
+ configProfileInboundUuid: string | null;
47
+ };
48
+ serverDescription: string | null;
37
49
  xHttpExtraParams?: unknown;
38
50
  }, {
39
51
  path: string | null;
@@ -46,8 +58,11 @@ export declare const HostsSchema: z.ZodObject<{
46
58
  host: string | null;
47
59
  alpn: string | null;
48
60
  fingerprint: string | null;
49
- configProfileUuid: string | null;
50
- configProfileInboundUuid: string | null;
61
+ inbound: {
62
+ configProfileUuid: string | null;
63
+ configProfileInboundUuid: string | null;
64
+ };
65
+ serverDescription: string | null;
51
66
  isDisabled?: boolean | undefined;
52
67
  securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
53
68
  xHttpExtraParams?: unknown;