@remnawave/backend-contract 2.0.0-alpha.9 → 2.0.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.
Files changed (260) hide show
  1. package/build/backend/api/controllers/auth.d.ts +2 -0
  2. package/build/backend/api/controllers/auth.d.ts.map +1 -1
  3. package/build/backend/api/controllers/auth.js +2 -0
  4. package/build/backend/api/controllers/infra-billing.d.ts +1 -1
  5. package/build/backend/api/controllers/infra-billing.d.ts.map +1 -1
  6. package/build/backend/api/controllers/infra-billing.js +1 -5
  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/subscription.d.ts +1 -0
  11. package/build/backend/api/controllers/subscription.d.ts.map +1 -1
  12. package/build/backend/api/controllers/subscription.js +1 -0
  13. package/build/backend/api/controllers/system.d.ts +1 -0
  14. package/build/backend/api/controllers/system.d.ts.map +1 -1
  15. package/build/backend/api/controllers/system.js +1 -0
  16. package/build/backend/api/routes.d.ts +9 -1
  17. package/build/backend/api/routes.d.ts.map +1 -1
  18. package/build/backend/api/routes.js +9 -1
  19. package/build/backend/commands/api-tokens/create.command.d.ts +0 -3
  20. package/build/backend/commands/api-tokens/create.command.d.ts.map +1 -1
  21. package/build/backend/commands/api-tokens/create.command.js +0 -1
  22. package/build/backend/commands/api-tokens/find.command.d.ts +0 -7
  23. package/build/backend/commands/api-tokens/find.command.d.ts.map +1 -1
  24. package/build/backend/commands/auth/get-status.command.d.ts +23 -0
  25. package/build/backend/commands/auth/get-status.command.d.ts.map +1 -1
  26. package/build/backend/commands/auth/get-status.command.js +3 -0
  27. package/build/backend/commands/auth/oauth2/authorize.command.d.ts +36 -0
  28. package/build/backend/commands/auth/oauth2/authorize.command.d.ts.map +1 -0
  29. package/build/backend/commands/auth/oauth2/authorize.command.js +20 -0
  30. package/build/backend/commands/auth/oauth2/callback.command.d.ts +43 -0
  31. package/build/backend/commands/auth/oauth2/callback.command.d.ts.map +1 -0
  32. package/build/backend/commands/auth/oauth2/callback.command.js +22 -0
  33. package/build/backend/commands/auth/oauth2/index.d.ts +2 -0
  34. package/build/backend/commands/auth/oauth2/index.d.ts.map +1 -1
  35. package/build/backend/commands/auth/oauth2/index.js +2 -0
  36. package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts +31 -10
  37. package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts.map +1 -1
  38. package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts +31 -10
  39. package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts.map +1 -1
  40. package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts +31 -10
  41. package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts.map +1 -1
  42. package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.d.ts +31 -10
  43. package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.d.ts.map +1 -1
  44. package/build/backend/commands/hosts/bulk/set-port-to-many-hosts.command.d.ts +31 -10
  45. package/build/backend/commands/hosts/bulk/set-port-to-many-hosts.command.d.ts.map +1 -1
  46. package/build/backend/commands/hosts/create.command.d.ts +52 -19
  47. package/build/backend/commands/hosts/create.command.d.ts.map +1 -1
  48. package/build/backend/commands/hosts/create.command.js +13 -13
  49. package/build/backend/commands/hosts/get-all.command.d.ts +31 -10
  50. package/build/backend/commands/hosts/get-all.command.d.ts.map +1 -1
  51. package/build/backend/commands/hosts/get-one.command.d.ts +31 -10
  52. package/build/backend/commands/hosts/get-one.command.d.ts.map +1 -1
  53. package/build/backend/commands/hosts/reorder.command.d.ts +11 -2
  54. package/build/backend/commands/hosts/reorder.command.d.ts.map +1 -1
  55. package/build/backend/commands/hosts/update.command.d.ts +63 -21
  56. package/build/backend/commands/hosts/update.command.d.ts.map +1 -1
  57. package/build/backend/commands/hosts/update.command.js +10 -11
  58. package/build/backend/commands/infra-billing/create-bill-record.command.d.ts +125 -0
  59. package/build/backend/commands/infra-billing/create-bill-record.command.d.ts.map +1 -0
  60. package/build/backend/commands/infra-billing/create-bill-record.command.js +30 -0
  61. package/build/backend/commands/infra-billing/create-billing-node.command.d.ts +467 -0
  62. package/build/backend/commands/infra-billing/create-billing-node.command.d.ts.map +1 -0
  63. package/build/backend/commands/infra-billing/create-billing-node.command.js +38 -0
  64. package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts +59 -0
  65. package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts.map +1 -1
  66. package/build/backend/commands/infra-billing/create-infra-provider.command.js +1 -1
  67. package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.d.ts +119 -0
  68. package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.d.ts.map +1 -0
  69. package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.js +22 -0
  70. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts +461 -0
  71. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts.map +1 -0
  72. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.js +29 -0
  73. package/build/backend/commands/infra-billing/get-bill-records.command.d.ts +122 -0
  74. package/build/backend/commands/infra-billing/get-bill-records.command.d.ts.map +1 -0
  75. package/build/backend/commands/infra-billing/get-bill-records.command.js +31 -0
  76. package/build/backend/commands/infra-billing/get-billing-nodes.command.d.ts +453 -0
  77. package/build/backend/commands/infra-billing/get-billing-nodes.command.d.ts.map +1 -0
  78. package/build/backend/commands/infra-billing/get-billing-nodes.command.js +26 -0
  79. package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts +59 -0
  80. package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts.map +1 -1
  81. package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts +77 -0
  82. package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts.map +1 -1
  83. package/build/backend/commands/infra-billing/index.d.ts +7 -0
  84. package/build/backend/commands/infra-billing/index.d.ts.map +1 -1
  85. package/build/backend/commands/infra-billing/index.js +7 -0
  86. package/build/backend/commands/infra-billing/update-billing-node.command.d.ts +464 -0
  87. package/build/backend/commands/infra-billing/update-billing-node.command.d.ts.map +1 -0
  88. package/build/backend/commands/infra-billing/update-billing-node.command.js +35 -0
  89. package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts +59 -0
  90. package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts.map +1 -1
  91. package/build/backend/commands/infra-billing/update-infra-provider.command.js +1 -1
  92. package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.d.ts +33 -0
  93. package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.d.ts.map +1 -0
  94. package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.js +20 -0
  95. package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.d.ts +33 -0
  96. package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.d.ts.map +1 -0
  97. package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.js +20 -0
  98. package/build/backend/commands/internal-squads/bulk-actions/index.d.ts +3 -0
  99. package/build/backend/commands/internal-squads/bulk-actions/index.d.ts.map +1 -0
  100. package/build/backend/commands/internal-squads/bulk-actions/index.js +18 -0
  101. package/build/backend/commands/internal-squads/{get-internal-squad-by-uuid..d.ts → get-internal-squad-by-uuid.d.ts} +1 -1
  102. package/build/backend/commands/internal-squads/get-internal-squad-by-uuid.d.ts.map +1 -0
  103. package/build/backend/commands/internal-squads/index.d.ts +2 -1
  104. package/build/backend/commands/internal-squads/index.d.ts.map +1 -1
  105. package/build/backend/commands/internal-squads/index.js +2 -1
  106. package/build/backend/commands/nodes/actions/disable.command.d.ts +140 -101
  107. package/build/backend/commands/nodes/actions/disable.command.d.ts.map +1 -1
  108. package/build/backend/commands/nodes/actions/enable.command.d.ts +140 -101
  109. package/build/backend/commands/nodes/actions/enable.command.d.ts.map +1 -1
  110. package/build/backend/commands/nodes/actions/reorder.command.d.ts +194 -128
  111. package/build/backend/commands/nodes/actions/reorder.command.d.ts.map +1 -1
  112. package/build/backend/commands/nodes/create.command.d.ts +158 -107
  113. package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
  114. package/build/backend/commands/nodes/create.command.js +6 -4
  115. package/build/backend/commands/nodes/get-all.command.d.ts +140 -101
  116. package/build/backend/commands/nodes/get-all.command.d.ts.map +1 -1
  117. package/build/backend/commands/nodes/get-one.command.d.ts +140 -101
  118. package/build/backend/commands/nodes/get-one.command.d.ts.map +1 -1
  119. package/build/backend/commands/nodes/stats/get-node-user-usage-by-range.command.d.ts +4 -4
  120. package/build/backend/commands/nodes/stats/get-nodes-usage-by-range.command.d.ts +4 -4
  121. package/build/backend/commands/nodes/update.command.d.ts +212 -134
  122. package/build/backend/commands/nodes/update.command.d.ts.map +1 -1
  123. package/build/backend/commands/nodes/update.command.js +8 -4
  124. package/build/backend/commands/subscription/get-raw-subscription-by-short-uuid.command.d.ts +354 -0
  125. package/build/backend/commands/subscription/get-raw-subscription-by-short-uuid.command.d.ts.map +1 -0
  126. package/build/backend/commands/subscription/get-raw-subscription-by-short-uuid.command.js +67 -0
  127. package/build/backend/commands/subscription/get-subscription-info-by-short-uuid.command.d.ts +4 -4
  128. package/build/backend/commands/subscription/index.d.ts +1 -0
  129. package/build/backend/commands/subscription/index.d.ts.map +1 -1
  130. package/build/backend/commands/subscription/index.js +1 -0
  131. package/build/backend/commands/subscriptions/get-all-subscriptions.command.d.ts +6 -6
  132. package/build/backend/commands/subscriptions/get-by/get-subscription-by-username.command.d.ts +4 -4
  133. package/build/backend/commands/system/get-nodes-metrics.command.d.ts +153 -0
  134. package/build/backend/commands/system/get-nodes-metrics.command.d.ts.map +1 -0
  135. package/build/backend/commands/system/get-nodes-metrics.command.js +33 -0
  136. package/build/backend/commands/system/index.d.ts +1 -0
  137. package/build/backend/commands/system/index.d.ts.map +1 -1
  138. package/build/backend/commands/system/index.js +1 -0
  139. package/build/backend/commands/users/create-user.command.d.ts +6 -6
  140. package/build/backend/commands/users/create-user.command.d.ts.map +1 -1
  141. package/build/backend/commands/users/create-user.command.js +2 -4
  142. package/build/backend/commands/users/get-user-usage-by-range.command.d.ts +4 -4
  143. package/build/backend/constants/errors/errors.d.ts +85 -0
  144. package/build/backend/constants/errors/errors.d.ts.map +1 -1
  145. package/build/backend/constants/errors/errors.js +85 -0
  146. package/build/backend/constants/events/events.d.ts +11 -0
  147. package/build/backend/constants/events/events.d.ts.map +1 -1
  148. package/build/backend/constants/events/events.js +10 -0
  149. package/build/backend/constants/headers/headers.constants.d.ts +3 -0
  150. package/build/backend/constants/headers/headers.constants.d.ts.map +1 -0
  151. package/build/backend/constants/headers/headers.constants.js +5 -0
  152. package/build/backend/constants/headers/index.d.ts +2 -0
  153. package/build/backend/constants/headers/index.d.ts.map +1 -0
  154. package/build/backend/constants/headers/index.js +17 -0
  155. package/build/backend/constants/index.d.ts +3 -0
  156. package/build/backend/constants/index.d.ts.map +1 -1
  157. package/build/backend/constants/index.js +3 -0
  158. package/build/backend/constants/messaging/index.d.ts +2 -0
  159. package/build/backend/constants/messaging/index.d.ts.map +1 -0
  160. package/build/backend/constants/messaging/index.js +17 -0
  161. package/build/backend/constants/messaging/messaging.constants.d.ts +13 -0
  162. package/build/backend/constants/messaging/messaging.constants.d.ts.map +1 -0
  163. package/build/backend/constants/messaging/messaging.constants.js +19 -0
  164. package/build/backend/constants/metrics/metric-names.constant.d.ts +17 -0
  165. package/build/backend/constants/metrics/metric-names.constant.d.ts.map +1 -1
  166. package/build/backend/constants/metrics/metric-names.constant.js +17 -0
  167. package/build/backend/constants/oauth2/index.d.ts +2 -0
  168. package/build/backend/constants/oauth2/index.d.ts.map +1 -0
  169. package/build/backend/constants/oauth2/index.js +17 -0
  170. package/build/backend/constants/oauth2/providers.contants.d.ts +9 -0
  171. package/build/backend/constants/oauth2/providers.contants.d.ts.map +1 -0
  172. package/build/backend/constants/oauth2/providers.contants.js +9 -0
  173. package/build/backend/constants/templates/template-keys.d.ts +1 -1
  174. package/build/backend/constants/templates/template-keys.d.ts.map +1 -1
  175. package/build/backend/constants/templates/template-keys.js +1 -0
  176. package/build/backend/models/api-tokens.schema.d.ts +0 -3
  177. package/build/backend/models/api-tokens.schema.d.ts.map +1 -1
  178. package/build/backend/models/api-tokens.schema.js +0 -1
  179. package/build/backend/models/{extented-users.schema.d.ts → extended-users.schema.d.ts} +1 -1
  180. package/build/backend/models/{extented-users.schema.d.ts.map → extended-users.schema.d.ts.map} +1 -1
  181. package/build/backend/models/hosts.schema.d.ts +21 -6
  182. package/build/backend/models/hosts.schema.d.ts.map +1 -1
  183. package/build/backend/models/hosts.schema.js +5 -2
  184. package/build/backend/models/index.d.ts +4 -1
  185. package/build/backend/models/index.d.ts.map +1 -1
  186. package/build/backend/models/index.js +4 -1
  187. package/build/backend/models/infra-billing-available-node.schema.d.ts +117 -0
  188. package/build/backend/models/infra-billing-available-node.schema.d.ts.map +1 -0
  189. package/build/backend/models/infra-billing-available-node.schema.js +9 -0
  190. package/build/backend/models/infra-billing-history-record.schema.d.ts +44 -0
  191. package/build/backend/models/infra-billing-history-record.schema.d.ts.map +1 -0
  192. package/build/backend/models/infra-billing-history-record.schema.js +19 -0
  193. package/build/backend/models/infra-billing-node.schema.d.ts +180 -0
  194. package/build/backend/models/infra-billing-node.schema.d.ts.map +1 -0
  195. package/build/backend/models/infra-billing-node.schema.js +34 -0
  196. package/build/backend/models/infra-provider.schema.d.ts +63 -0
  197. package/build/backend/models/infra-provider.schema.d.ts.map +1 -1
  198. package/build/backend/models/infra-provider.schema.js +24 -1
  199. package/build/backend/models/nodes.schema.d.ts +96 -63
  200. package/build/backend/models/nodes.schema.d.ts.map +1 -1
  201. package/build/backend/models/nodes.schema.js +6 -3
  202. package/build/frontend/api/controllers/auth.js +2 -0
  203. package/build/frontend/api/controllers/infra-billing.js +1 -5
  204. package/build/frontend/api/controllers/internal-squads.js +5 -0
  205. package/build/frontend/api/controllers/subscription.js +1 -0
  206. package/build/frontend/api/controllers/system.js +1 -0
  207. package/build/frontend/api/routes.js +9 -1
  208. package/build/frontend/commands/api-tokens/create.command.js +0 -1
  209. package/build/frontend/commands/auth/get-status.command.js +3 -0
  210. package/build/frontend/commands/auth/oauth2/authorize.command.js +20 -0
  211. package/build/frontend/commands/auth/oauth2/callback.command.js +22 -0
  212. package/build/frontend/commands/auth/oauth2/index.js +2 -0
  213. package/build/frontend/commands/hosts/create.command.js +13 -13
  214. package/build/frontend/commands/hosts/update.command.js +10 -11
  215. package/build/frontend/commands/infra-billing/create-bill-record.command.js +30 -0
  216. package/build/frontend/commands/infra-billing/create-billing-node.command.js +38 -0
  217. package/build/frontend/commands/infra-billing/create-infra-provider.command.js +1 -1
  218. package/build/frontend/commands/infra-billing/delete-bill-record-by-uuid.command.js +22 -0
  219. package/build/frontend/commands/infra-billing/delete-billing-node-by-uuid.command.js +29 -0
  220. package/build/frontend/commands/infra-billing/get-bill-records.command.js +31 -0
  221. package/build/frontend/commands/infra-billing/get-billing-nodes.command.js +26 -0
  222. package/build/frontend/commands/infra-billing/index.js +7 -0
  223. package/build/frontend/commands/infra-billing/update-billing-node.command.js +35 -0
  224. package/build/frontend/commands/infra-billing/update-infra-provider.command.js +1 -1
  225. package/build/frontend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.js +20 -0
  226. package/build/frontend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.js +20 -0
  227. package/build/frontend/commands/internal-squads/bulk-actions/index.js +18 -0
  228. package/build/frontend/commands/internal-squads/index.js +2 -1
  229. package/build/frontend/commands/nodes/create.command.js +6 -4
  230. package/build/frontend/commands/nodes/update.command.js +8 -4
  231. package/build/frontend/commands/subscription/get-raw-subscription-by-short-uuid.command.js +67 -0
  232. package/build/frontend/commands/subscription/index.js +1 -0
  233. package/build/frontend/commands/system/get-nodes-metrics.command.js +33 -0
  234. package/build/frontend/commands/system/index.js +1 -0
  235. package/build/frontend/commands/users/create-user.command.js +2 -4
  236. package/build/frontend/constants/errors/errors.js +85 -0
  237. package/build/frontend/constants/events/events.js +10 -0
  238. package/build/frontend/constants/headers/headers.constants.js +5 -0
  239. package/build/frontend/constants/headers/index.js +17 -0
  240. package/build/frontend/constants/index.js +3 -0
  241. package/build/frontend/constants/messaging/index.js +17 -0
  242. package/build/frontend/constants/messaging/messaging.constants.js +19 -0
  243. package/build/frontend/constants/metrics/metric-names.constant.js +17 -0
  244. package/build/frontend/constants/oauth2/index.js +17 -0
  245. package/build/frontend/constants/oauth2/providers.contants.js +9 -0
  246. package/build/frontend/constants/templates/template-keys.js +1 -0
  247. package/build/frontend/models/api-tokens.schema.js +0 -1
  248. package/build/frontend/models/hosts.schema.js +5 -2
  249. package/build/frontend/models/index.js +4 -1
  250. package/build/frontend/models/infra-billing-available-node.schema.js +9 -0
  251. package/build/frontend/models/infra-billing-history-record.schema.js +19 -0
  252. package/build/frontend/models/infra-billing-node.schema.js +34 -0
  253. package/build/frontend/models/infra-provider.schema.js +24 -1
  254. package/build/frontend/models/nodes.schema.js +6 -3
  255. package/package.json +2 -2
  256. package/build/backend/commands/internal-squads/get-internal-squad-by-uuid..d.ts.map +0 -1
  257. /package/build/backend/commands/internal-squads/{get-internal-squad-by-uuid..js → get-internal-squad-by-uuid.js} +0 -0
  258. /package/build/backend/models/{extented-users.schema.js → extended-users.schema.js} +0 -0
  259. /package/build/frontend/commands/internal-squads/{get-internal-squad-by-uuid..js → get-internal-squad-by-uuid.js} +0 -0
  260. /package/build/frontend/models/{extented-users.schema.js → extended-users.schema.js} +0 -0
@@ -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 = {}));
@@ -2,7 +2,24 @@ export declare const METRIC_NAMES: {
2
2
  readonly NODE_ONLINE_USERS: "node_online_users";
3
3
  readonly NODE_STATUS: "node_status";
4
4
  readonly USERS_STATUS: "users_status";
5
+ readonly USERS_ONLINE_STATS: "users_online_stats";
5
6
  readonly USERS_TOTAL: "users_total";
7
+ readonly NODE_INBOUND_UPLOAD_BYTES: "node_inbound_upload_bytes";
8
+ readonly NODE_INBOUND_DOWNLOAD_BYTES: "node_inbound_download_bytes";
9
+ readonly NODE_OUTBOUND_UPLOAD_BYTES: "node_outbound_upload_bytes";
10
+ readonly NODE_OUTBOUND_DOWNLOAD_BYTES: "node_outbound_download_bytes";
11
+ readonly NODEJS_HEAP_USED_BYTES: "nodejs_heap_used_bytes";
12
+ readonly NODEJS_HEAP_TOTAL_BYTES: "nodejs_heap_total_bytes";
13
+ readonly NODEJS_HEAP_USAGE_PERCENT: "nodejs_heap_usage_percent";
14
+ readonly NODEJS_ACTIVE_HANDLERS: "nodejs_active_handlers";
15
+ readonly NODEJS_ACTIVE_REQUESTS: "nodejs_active_requests";
16
+ readonly NODEJS_CPU_USAGE_PERCENT: "nodejs_cpu_usage_percent";
17
+ readonly NODEJS_MEMORY_USAGE_BYTES: "nodejs_memory_usage_bytes";
18
+ readonly NODEJS_EVENT_LOOP_LATENCY_P50: "nodejs_event_loop_latency_p50";
19
+ readonly NODEJS_EVENT_LOOP_LATENCY_P95: "nodejs_event_loop_latency_p95";
20
+ readonly NODEJS_HTTP_REQ_RATE: "nodejs_http_req_rate";
21
+ readonly NODEJS_HTTP_REQ_LATENCY_P95: "nodejs_http_req_latency_p95";
22
+ readonly NODEJS_HTTP_REQ_LATENCY_P50: "nodejs_http_req_latency_p50";
6
23
  };
7
24
  export type TMetricNames = typeof METRIC_NAMES;
8
25
  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;;;;;;;;;;;;;;;;;;;;;;CAsBf,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"}
@@ -5,5 +5,22 @@ exports.METRIC_NAMES = {
5
5
  NODE_ONLINE_USERS: 'node_online_users',
6
6
  NODE_STATUS: 'node_status',
7
7
  USERS_STATUS: 'users_status',
8
+ USERS_ONLINE_STATS: 'users_online_stats',
8
9
  USERS_TOTAL: 'users_total',
10
+ NODE_INBOUND_UPLOAD_BYTES: 'node_inbound_upload_bytes',
11
+ NODE_INBOUND_DOWNLOAD_BYTES: 'node_inbound_download_bytes',
12
+ NODE_OUTBOUND_UPLOAD_BYTES: 'node_outbound_upload_bytes',
13
+ NODE_OUTBOUND_DOWNLOAD_BYTES: 'node_outbound_download_bytes',
14
+ NODEJS_HEAP_USED_BYTES: 'nodejs_heap_used_bytes',
15
+ NODEJS_HEAP_TOTAL_BYTES: 'nodejs_heap_total_bytes',
16
+ NODEJS_HEAP_USAGE_PERCENT: 'nodejs_heap_usage_percent',
17
+ NODEJS_ACTIVE_HANDLERS: 'nodejs_active_handlers',
18
+ NODEJS_ACTIVE_REQUESTS: 'nodejs_active_requests',
19
+ NODEJS_CPU_USAGE_PERCENT: 'nodejs_cpu_usage_percent',
20
+ NODEJS_MEMORY_USAGE_BYTES: 'nodejs_memory_usage_bytes',
21
+ NODEJS_EVENT_LOOP_LATENCY_P50: 'nodejs_event_loop_latency_p50',
22
+ NODEJS_EVENT_LOOP_LATENCY_P95: 'nodejs_event_loop_latency_p95',
23
+ NODEJS_HTTP_REQ_RATE: 'nodejs_http_req_rate',
24
+ NODEJS_HTTP_REQ_LATENCY_P95: 'nodejs_http_req_latency_p95',
25
+ NODEJS_HTTP_REQ_LATENCY_P50: 'nodejs_http_req_latency_p50',
9
26
  };
@@ -0,0 +1,2 @@
1
+ export * from './providers.contants';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../constants/oauth2/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,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("./providers.contants"), exports);
@@ -0,0 +1,9 @@
1
+ export declare const OAUTH2_PROVIDERS: {
2
+ readonly GITHUB: "github";
3
+ readonly POCKETID: "pocketid";
4
+ readonly YANDEX: "yandex";
5
+ };
6
+ export type TOAuth2Providers = [keyof typeof OAUTH2_PROVIDERS][number];
7
+ export type TOAuth2ProvidersKeys = (typeof OAUTH2_PROVIDERS)[keyof typeof OAUTH2_PROVIDERS];
8
+ export declare const OAUTH2_PROVIDERS_VALUES: ("github" | "pocketid" | "yandex")[];
9
+ //# sourceMappingURL=providers.contants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"providers.contants.d.ts","sourceRoot":"","sources":["../../../../constants/oauth2/providers.contants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB;;;;CAInB,CAAC;AAEX,MAAM,MAAM,gBAAgB,GAAG,CAAC,MAAM,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;AACvE,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,OAAO,gBAAgB,CAAC,CAAC;AAC5F,eAAO,MAAM,uBAAuB,sCAAkC,CAAC"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OAUTH2_PROVIDERS_VALUES = exports.OAUTH2_PROVIDERS = void 0;
4
+ exports.OAUTH2_PROVIDERS = {
5
+ GITHUB: 'github',
6
+ POCKETID: 'pocketid',
7
+ YANDEX: 'yandex',
8
+ };
9
+ exports.OAUTH2_PROVIDERS_VALUES = Object.values(exports.OAUTH2_PROVIDERS);
@@ -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
  ];
@@ -3,19 +3,16 @@ export declare const ApiTokensSchema: z.ZodObject<{
3
3
  uuid: z.ZodString;
4
4
  token: z.ZodString;
5
5
  tokenName: z.ZodString;
6
- tokenDescription: z.ZodNullable<z.ZodString>;
7
6
  createdAt: z.ZodEffects<z.ZodString, Date, string>;
8
7
  updatedAt: z.ZodEffects<z.ZodString, Date, string>;
9
8
  }, "strip", z.ZodTypeAny, {
10
9
  tokenName: string;
11
- tokenDescription: string | null;
12
10
  token: string;
13
11
  uuid: string;
14
12
  createdAt: Date;
15
13
  updatedAt: Date;
16
14
  }, {
17
15
  tokenName: string;
18
- tokenDescription: string | null;
19
16
  token: string;
20
17
  uuid: string;
21
18
  createdAt: string;
@@ -1 +1 @@
1
- {"version":3,"file":"api-tokens.schema.d.ts","sourceRoot":"","sources":["../../../models/api-tokens.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;EAc1B,CAAC"}
1
+ {"version":3,"file":"api-tokens.schema.d.ts","sourceRoot":"","sources":["../../../models/api-tokens.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;EAa1B,CAAC"}
@@ -6,7 +6,6 @@ exports.ApiTokensSchema = zod_1.z.object({
6
6
  uuid: zod_1.z.string().uuid(),
7
7
  token: zod_1.z.string(),
8
8
  tokenName: zod_1.z.string(),
9
- tokenDescription: zod_1.z.nullable(zod_1.z.string()),
10
9
  createdAt: zod_1.z
11
10
  .string()
12
11
  .datetime()
@@ -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;
@@ -1 +1 @@
1
- {"version":3,"file":"hosts.schema.d.ts","sourceRoot":"","sources":["../../../models/hosts.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiBtB,CAAC"}
1
+ {"version":3,"file":"hosts.schema.d.ts","sourceRoot":"","sources":["../../../models/hosts.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqBtB,CAAC"}
@@ -17,6 +17,9 @@ exports.HostsSchema = zod_1.z.object({
17
17
  isDisabled: zod_1.z.boolean().default(false),
18
18
  securityLayer: zod_1.z.nativeEnum(hosts_1.SECURITY_LAYERS).default(hosts_1.SECURITY_LAYERS.DEFAULT),
19
19
  xHttpExtraParams: zod_1.z.nullable(zod_1.z.unknown()),
20
- configProfileUuid: zod_1.z.string().uuid().nullable(),
21
- configProfileInboundUuid: zod_1.z.string().uuid().nullable(),
20
+ inbound: zod_1.z.object({
21
+ configProfileUuid: zod_1.z.string().uuid().nullable(),
22
+ configProfileInboundUuid: zod_1.z.string().uuid().nullable(),
23
+ }),
24
+ serverDescription: zod_1.z.string().nullable(),
22
25
  });
@@ -4,10 +4,13 @@ export * from './base-internal-squad.schema';
4
4
  export * from './base-stat.schema';
5
5
  export * from './config-profile-inbounds.schema';
6
6
  export * from './config-profile.schema';
7
- export * from './extented-users.schema';
7
+ export * from './extended-users.schema';
8
8
  export * from './happ.schema';
9
9
  export * from './hosts.schema';
10
10
  export * from './hwid-user-device.schema';
11
+ export * from './infra-billing-available-node.schema';
12
+ export * from './infra-billing-history-record.schema';
13
+ export * from './infra-billing-node.schema';
11
14
  export * from './infra-provider.schema';
12
15
  export * from './internal-squad.schema';
13
16
  export * from './last-connected-node.schema';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../models/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,CAAC;AACnC,cAAc,kCAAkC,CAAC;AACjD,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../models/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,CAAC;AACnC,cAAc,kCAAkC,CAAC;AACjD,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gBAAgB,CAAC"}
@@ -20,10 +20,13 @@ __exportStar(require("./base-internal-squad.schema"), exports);
20
20
  __exportStar(require("./base-stat.schema"), exports);
21
21
  __exportStar(require("./config-profile-inbounds.schema"), exports);
22
22
  __exportStar(require("./config-profile.schema"), exports);
23
- __exportStar(require("./extented-users.schema"), exports);
23
+ __exportStar(require("./extended-users.schema"), exports);
24
24
  __exportStar(require("./happ.schema"), exports);
25
25
  __exportStar(require("./hosts.schema"), exports);
26
26
  __exportStar(require("./hwid-user-device.schema"), exports);
27
+ __exportStar(require("./infra-billing-available-node.schema"), exports);
28
+ __exportStar(require("./infra-billing-history-record.schema"), exports);
29
+ __exportStar(require("./infra-billing-node.schema"), exports);
27
30
  __exportStar(require("./infra-provider.schema"), exports);
28
31
  __exportStar(require("./internal-squad.schema"), exports);
29
32
  __exportStar(require("./last-connected-node.schema"), exports);
@@ -0,0 +1,117 @@
1
+ export declare const InfraBillingAvailableNodeSchema: import("zod").ZodObject<Pick<{
2
+ uuid: import("zod").ZodString;
3
+ name: import("zod").ZodString;
4
+ address: import("zod").ZodString;
5
+ port: import("zod").ZodNullable<import("zod").ZodNumber>;
6
+ isConnected: import("zod").ZodBoolean;
7
+ isDisabled: import("zod").ZodBoolean;
8
+ isConnecting: import("zod").ZodBoolean;
9
+ isNodeOnline: import("zod").ZodBoolean;
10
+ isXrayRunning: import("zod").ZodBoolean;
11
+ lastStatusChange: import("zod").ZodNullable<import("zod").ZodEffects<import("zod").ZodString, Date, string>>;
12
+ lastStatusMessage: import("zod").ZodNullable<import("zod").ZodString>;
13
+ xrayVersion: import("zod").ZodNullable<import("zod").ZodString>;
14
+ nodeVersion: import("zod").ZodNullable<import("zod").ZodString>;
15
+ xrayUptime: import("zod").ZodString;
16
+ isTrafficTrackingActive: import("zod").ZodBoolean;
17
+ trafficResetDay: import("zod").ZodNullable<import("zod").ZodNumber>;
18
+ trafficLimitBytes: import("zod").ZodNullable<import("zod").ZodNumber>;
19
+ trafficUsedBytes: import("zod").ZodNullable<import("zod").ZodNumber>;
20
+ notifyPercent: import("zod").ZodNullable<import("zod").ZodNumber>;
21
+ usersOnline: import("zod").ZodNullable<import("zod").ZodNumber>;
22
+ viewPosition: import("zod").ZodNumber;
23
+ countryCode: import("zod").ZodString;
24
+ consumptionMultiplier: import("zod").ZodNumber;
25
+ cpuCount: import("zod").ZodNullable<import("zod").ZodNumber>;
26
+ cpuModel: import("zod").ZodNullable<import("zod").ZodString>;
27
+ totalRam: import("zod").ZodNullable<import("zod").ZodString>;
28
+ createdAt: import("zod").ZodEffects<import("zod").ZodString, Date, string>;
29
+ updatedAt: import("zod").ZodEffects<import("zod").ZodString, Date, string>;
30
+ configProfile: import("zod").ZodObject<{
31
+ activeConfigProfileUuid: import("zod").ZodNullable<import("zod").ZodString>;
32
+ activeInbounds: import("zod").ZodArray<import("zod").ZodObject<{
33
+ uuid: import("zod").ZodString;
34
+ profileUuid: import("zod").ZodString;
35
+ tag: import("zod").ZodString;
36
+ type: import("zod").ZodString;
37
+ network: import("zod").ZodNullable<import("zod").ZodString>;
38
+ security: import("zod").ZodNullable<import("zod").ZodString>;
39
+ port: import("zod").ZodNullable<import("zod").ZodNumber>;
40
+ rawInbound: import("zod").ZodNullable<import("zod").ZodUnknown>;
41
+ }, "strip", import("zod").ZodTypeAny, {
42
+ type: string;
43
+ uuid: string;
44
+ profileUuid: string;
45
+ tag: string;
46
+ network: string | null;
47
+ security: string | null;
48
+ port: number | null;
49
+ rawInbound?: unknown;
50
+ }, {
51
+ type: string;
52
+ uuid: string;
53
+ profileUuid: string;
54
+ tag: string;
55
+ network: string | null;
56
+ security: string | null;
57
+ port: number | null;
58
+ rawInbound?: unknown;
59
+ }>, "many">;
60
+ }, "strip", import("zod").ZodTypeAny, {
61
+ activeConfigProfileUuid: string | null;
62
+ activeInbounds: {
63
+ type: string;
64
+ uuid: string;
65
+ profileUuid: string;
66
+ tag: string;
67
+ network: string | null;
68
+ security: string | null;
69
+ port: number | null;
70
+ rawInbound?: unknown;
71
+ }[];
72
+ }, {
73
+ activeConfigProfileUuid: string | null;
74
+ activeInbounds: {
75
+ type: string;
76
+ uuid: string;
77
+ profileUuid: string;
78
+ tag: string;
79
+ network: string | null;
80
+ security: string | null;
81
+ port: number | null;
82
+ rawInbound?: unknown;
83
+ }[];
84
+ }>;
85
+ providerUuid: import("zod").ZodNullable<import("zod").ZodString>;
86
+ provider: import("zod").ZodNullable<import("zod").ZodObject<{
87
+ uuid: import("zod").ZodString;
88
+ name: import("zod").ZodString;
89
+ faviconLink: import("zod").ZodNullable<import("zod").ZodString>;
90
+ loginUrl: import("zod").ZodNullable<import("zod").ZodString>;
91
+ createdAt: import("zod").ZodEffects<import("zod").ZodString, Date, string>;
92
+ updatedAt: import("zod").ZodEffects<import("zod").ZodString, Date, string>;
93
+ }, "strip", import("zod").ZodTypeAny, {
94
+ uuid: string;
95
+ createdAt: Date;
96
+ updatedAt: Date;
97
+ name: string;
98
+ faviconLink: string | null;
99
+ loginUrl: string | null;
100
+ }, {
101
+ uuid: string;
102
+ createdAt: string;
103
+ updatedAt: string;
104
+ name: string;
105
+ faviconLink: string | null;
106
+ loginUrl: string | null;
107
+ }>>;
108
+ }, "uuid" | "name" | "countryCode">, "strip", import("zod").ZodTypeAny, {
109
+ uuid: string;
110
+ name: string;
111
+ countryCode: string;
112
+ }, {
113
+ uuid: string;
114
+ name: string;
115
+ countryCode: string;
116
+ }>;
117
+ //# sourceMappingURL=infra-billing-available-node.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"infra-billing-available-node.schema.d.ts","sourceRoot":"","sources":["../../../models/infra-billing-available-node.schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI1C,CAAC"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InfraBillingAvailableNodeSchema = void 0;
4
+ const nodes_schema_1 = require("./nodes.schema");
5
+ exports.InfraBillingAvailableNodeSchema = nodes_schema_1.NodesSchema.pick({
6
+ uuid: true,
7
+ name: true,
8
+ countryCode: true,
9
+ });
@@ -0,0 +1,44 @@
1
+ import { z } from 'zod';
2
+ export declare const InfraBillingHistoryRecordSchema: z.ZodObject<{
3
+ uuid: z.ZodString;
4
+ providerUuid: z.ZodString;
5
+ amount: z.ZodNumber;
6
+ billedAt: z.ZodEffects<z.ZodString, Date, string>;
7
+ provider: z.ZodObject<Omit<{
8
+ uuid: z.ZodString;
9
+ name: z.ZodString;
10
+ faviconLink: z.ZodNullable<z.ZodString>;
11
+ loginUrl: z.ZodNullable<z.ZodString>;
12
+ createdAt: z.ZodEffects<z.ZodString, Date, string>;
13
+ updatedAt: z.ZodEffects<z.ZodString, Date, string>;
14
+ }, "createdAt" | "updatedAt" | "loginUrl">, "strip", z.ZodTypeAny, {
15
+ uuid: string;
16
+ name: string;
17
+ faviconLink: string | null;
18
+ }, {
19
+ uuid: string;
20
+ name: string;
21
+ faviconLink: string | null;
22
+ }>;
23
+ }, "strip", z.ZodTypeAny, {
24
+ uuid: string;
25
+ provider: {
26
+ uuid: string;
27
+ name: string;
28
+ faviconLink: string | null;
29
+ };
30
+ providerUuid: string;
31
+ amount: number;
32
+ billedAt: Date;
33
+ }, {
34
+ uuid: string;
35
+ provider: {
36
+ uuid: string;
37
+ name: string;
38
+ faviconLink: string | null;
39
+ };
40
+ providerUuid: string;
41
+ amount: number;
42
+ billedAt: string;
43
+ }>;
44
+ //# sourceMappingURL=infra-billing-history-record.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"infra-billing-history-record.schema.d.ts","sourceRoot":"","sources":["../../../models/infra-billing-history-record.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAa1C,CAAC"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InfraBillingHistoryRecordSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const infra_provider_schema_1 = require("./infra-provider.schema");
6
+ exports.InfraBillingHistoryRecordSchema = zod_1.z.object({
7
+ uuid: zod_1.z.string().uuid(),
8
+ providerUuid: zod_1.z.string().uuid(),
9
+ amount: zod_1.z.number(),
10
+ billedAt: zod_1.z
11
+ .string()
12
+ .datetime()
13
+ .transform((str) => new Date(str)),
14
+ provider: infra_provider_schema_1.PartialInfraProviderSchema.omit({
15
+ createdAt: true,
16
+ updatedAt: true,
17
+ loginUrl: true,
18
+ }),
19
+ });