@remnawave/backend-contract 2.0.0-alpha.8 → 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 (280) 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/index.d.ts +1 -0
  5. package/build/backend/api/controllers/index.d.ts.map +1 -1
  6. package/build/backend/api/controllers/index.js +1 -0
  7. package/build/backend/api/controllers/infra-billing.d.ts +16 -0
  8. package/build/backend/api/controllers/infra-billing.d.ts.map +1 -0
  9. package/build/backend/api/controllers/infra-billing.js +18 -0
  10. package/build/backend/api/controllers/internal-squads.d.ts +4 -0
  11. package/build/backend/api/controllers/internal-squads.d.ts.map +1 -1
  12. package/build/backend/api/controllers/internal-squads.js +5 -0
  13. package/build/backend/api/controllers/subscription.d.ts +1 -0
  14. package/build/backend/api/controllers/subscription.d.ts.map +1 -1
  15. package/build/backend/api/controllers/subscription.js +1 -0
  16. package/build/backend/api/controllers/system.d.ts +1 -0
  17. package/build/backend/api/controllers/system.d.ts.map +1 -1
  18. package/build/backend/api/controllers/system.js +1 -0
  19. package/build/backend/api/routes.d.ts +22 -0
  20. package/build/backend/api/routes.d.ts.map +1 -1
  21. package/build/backend/api/routes.js +22 -0
  22. package/build/backend/commands/api-tokens/create.command.d.ts +0 -3
  23. package/build/backend/commands/api-tokens/create.command.d.ts.map +1 -1
  24. package/build/backend/commands/api-tokens/create.command.js +0 -1
  25. package/build/backend/commands/api-tokens/find.command.d.ts +0 -7
  26. package/build/backend/commands/api-tokens/find.command.d.ts.map +1 -1
  27. package/build/backend/commands/auth/get-status.command.d.ts +23 -0
  28. package/build/backend/commands/auth/get-status.command.d.ts.map +1 -1
  29. package/build/backend/commands/auth/get-status.command.js +3 -0
  30. package/build/backend/commands/auth/oauth2/authorize.command.d.ts +36 -0
  31. package/build/backend/commands/auth/oauth2/authorize.command.d.ts.map +1 -0
  32. package/build/backend/commands/auth/oauth2/authorize.command.js +20 -0
  33. package/build/backend/commands/auth/oauth2/callback.command.d.ts +43 -0
  34. package/build/backend/commands/auth/oauth2/callback.command.d.ts.map +1 -0
  35. package/build/backend/commands/auth/oauth2/callback.command.js +22 -0
  36. package/build/backend/commands/auth/oauth2/index.d.ts +2 -0
  37. package/build/backend/commands/auth/oauth2/index.d.ts.map +1 -1
  38. package/build/backend/commands/auth/oauth2/index.js +2 -0
  39. package/build/backend/commands/config-profiles/create-config-profile.command.js +2 -2
  40. package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts +31 -10
  41. package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts.map +1 -1
  42. package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts +31 -10
  43. package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts.map +1 -1
  44. package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts +31 -10
  45. package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts.map +1 -1
  46. package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.d.ts +31 -10
  47. package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.d.ts.map +1 -1
  48. package/build/backend/commands/hosts/bulk/set-port-to-many-hosts.command.d.ts +31 -10
  49. package/build/backend/commands/hosts/bulk/set-port-to-many-hosts.command.d.ts.map +1 -1
  50. package/build/backend/commands/hosts/create.command.d.ts +52 -19
  51. package/build/backend/commands/hosts/create.command.d.ts.map +1 -1
  52. package/build/backend/commands/hosts/create.command.js +13 -13
  53. package/build/backend/commands/hosts/get-all.command.d.ts +31 -10
  54. package/build/backend/commands/hosts/get-all.command.d.ts.map +1 -1
  55. package/build/backend/commands/hosts/get-one.command.d.ts +31 -10
  56. package/build/backend/commands/hosts/get-one.command.d.ts.map +1 -1
  57. package/build/backend/commands/hosts/reorder.command.d.ts +11 -2
  58. package/build/backend/commands/hosts/reorder.command.d.ts.map +1 -1
  59. package/build/backend/commands/hosts/update.command.d.ts +63 -21
  60. package/build/backend/commands/hosts/update.command.d.ts.map +1 -1
  61. package/build/backend/commands/hosts/update.command.js +10 -11
  62. package/build/backend/commands/index.d.ts +1 -0
  63. package/build/backend/commands/index.d.ts.map +1 -1
  64. package/build/backend/commands/index.js +1 -0
  65. package/build/backend/commands/infra-billing/create-bill-record.command.d.ts +125 -0
  66. package/build/backend/commands/infra-billing/create-bill-record.command.d.ts.map +1 -0
  67. package/build/backend/commands/infra-billing/create-bill-record.command.js +30 -0
  68. package/build/backend/commands/infra-billing/create-billing-node.command.d.ts +467 -0
  69. package/build/backend/commands/infra-billing/create-billing-node.command.d.ts.map +1 -0
  70. package/build/backend/commands/infra-billing/create-billing-node.command.js +38 -0
  71. package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts +123 -0
  72. package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts.map +1 -0
  73. package/build/backend/commands/infra-billing/create-infra-provider.command.js +24 -0
  74. package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.d.ts +119 -0
  75. package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.d.ts.map +1 -0
  76. package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.js +22 -0
  77. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts +461 -0
  78. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts.map +1 -0
  79. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.js +29 -0
  80. package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.d.ts +33 -0
  81. package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.d.ts.map +1 -0
  82. package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.js +20 -0
  83. package/build/backend/commands/infra-billing/get-bill-records.command.d.ts +122 -0
  84. package/build/backend/commands/infra-billing/get-bill-records.command.d.ts.map +1 -0
  85. package/build/backend/commands/infra-billing/get-bill-records.command.js +31 -0
  86. package/build/backend/commands/infra-billing/get-billing-nodes.command.d.ts +453 -0
  87. package/build/backend/commands/infra-billing/get-billing-nodes.command.d.ts.map +1 -0
  88. package/build/backend/commands/infra-billing/get-billing-nodes.command.js +26 -0
  89. package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts +117 -0
  90. package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts.map +1 -0
  91. package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.js +19 -0
  92. package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts +156 -0
  93. package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts.map +1 -0
  94. package/build/backend/commands/infra-billing/get-infra-providers.command.js +19 -0
  95. package/build/backend/commands/infra-billing/index.d.ts +13 -0
  96. package/build/backend/commands/infra-billing/index.d.ts.map +1 -0
  97. package/build/backend/commands/infra-billing/index.js +28 -0
  98. package/build/backend/commands/infra-billing/update-billing-node.command.d.ts +464 -0
  99. package/build/backend/commands/infra-billing/update-billing-node.command.d.ts.map +1 -0
  100. package/build/backend/commands/infra-billing/update-billing-node.command.js +35 -0
  101. package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts +126 -0
  102. package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts.map +1 -0
  103. package/build/backend/commands/infra-billing/update-infra-provider.command.js +26 -0
  104. package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.d.ts +33 -0
  105. package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.d.ts.map +1 -0
  106. package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.js +20 -0
  107. package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.d.ts +33 -0
  108. package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.d.ts.map +1 -0
  109. package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.js +20 -0
  110. package/build/backend/commands/internal-squads/bulk-actions/index.d.ts +3 -0
  111. package/build/backend/commands/internal-squads/bulk-actions/index.d.ts.map +1 -0
  112. package/build/backend/commands/internal-squads/bulk-actions/index.js +18 -0
  113. package/build/backend/commands/internal-squads/create-internal-squad.command.js +2 -2
  114. package/build/backend/commands/internal-squads/{get-internal-squad-by-uuid..d.ts → get-internal-squad-by-uuid.d.ts} +1 -1
  115. package/build/backend/commands/internal-squads/get-internal-squad-by-uuid.d.ts.map +1 -0
  116. package/build/backend/commands/internal-squads/index.d.ts +2 -1
  117. package/build/backend/commands/internal-squads/index.d.ts.map +1 -1
  118. package/build/backend/commands/internal-squads/index.js +2 -1
  119. package/build/backend/commands/nodes/actions/disable.command.d.ts +166 -68
  120. package/build/backend/commands/nodes/actions/disable.command.d.ts.map +1 -1
  121. package/build/backend/commands/nodes/actions/enable.command.d.ts +166 -68
  122. package/build/backend/commands/nodes/actions/enable.command.d.ts.map +1 -1
  123. package/build/backend/commands/nodes/actions/reorder.command.d.ts +240 -92
  124. package/build/backend/commands/nodes/actions/reorder.command.d.ts.map +1 -1
  125. package/build/backend/commands/nodes/create.command.d.ts +187 -74
  126. package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
  127. package/build/backend/commands/nodes/create.command.js +7 -4
  128. package/build/backend/commands/nodes/get-all.command.d.ts +166 -68
  129. package/build/backend/commands/nodes/get-all.command.d.ts.map +1 -1
  130. package/build/backend/commands/nodes/get-one.command.d.ts +166 -68
  131. package/build/backend/commands/nodes/get-one.command.d.ts.map +1 -1
  132. package/build/backend/commands/nodes/stats/get-node-user-usage-by-range.command.d.ts +4 -4
  133. package/build/backend/commands/nodes/stats/get-nodes-usage-by-range.command.d.ts +4 -4
  134. package/build/backend/commands/nodes/update.command.d.ts +261 -98
  135. package/build/backend/commands/nodes/update.command.d.ts.map +1 -1
  136. package/build/backend/commands/nodes/update.command.js +9 -4
  137. package/build/backend/commands/subscription/get-raw-subscription-by-short-uuid.command.d.ts +354 -0
  138. package/build/backend/commands/subscription/get-raw-subscription-by-short-uuid.command.d.ts.map +1 -0
  139. package/build/backend/commands/subscription/get-raw-subscription-by-short-uuid.command.js +67 -0
  140. package/build/backend/commands/subscription/get-subscription-info-by-short-uuid.command.d.ts +4 -4
  141. package/build/backend/commands/subscription/index.d.ts +1 -0
  142. package/build/backend/commands/subscription/index.d.ts.map +1 -1
  143. package/build/backend/commands/subscription/index.js +1 -0
  144. package/build/backend/commands/subscriptions/get-all-subscriptions.command.d.ts +6 -6
  145. package/build/backend/commands/subscriptions/get-by/get-subscription-by-username.command.d.ts +4 -4
  146. package/build/backend/commands/system/get-nodes-metrics.command.d.ts +153 -0
  147. package/build/backend/commands/system/get-nodes-metrics.command.d.ts.map +1 -0
  148. package/build/backend/commands/system/get-nodes-metrics.command.js +33 -0
  149. package/build/backend/commands/system/index.d.ts +1 -0
  150. package/build/backend/commands/system/index.d.ts.map +1 -1
  151. package/build/backend/commands/system/index.js +1 -0
  152. package/build/backend/commands/users/create-user.command.d.ts +6 -6
  153. package/build/backend/commands/users/create-user.command.d.ts.map +1 -1
  154. package/build/backend/commands/users/create-user.command.js +2 -4
  155. package/build/backend/commands/users/get-user-usage-by-range.command.d.ts +4 -4
  156. package/build/backend/constants/errors/errors.d.ts +115 -0
  157. package/build/backend/constants/errors/errors.d.ts.map +1 -1
  158. package/build/backend/constants/errors/errors.js +115 -0
  159. package/build/backend/constants/events/events.d.ts +11 -0
  160. package/build/backend/constants/events/events.d.ts.map +1 -1
  161. package/build/backend/constants/events/events.js +10 -0
  162. package/build/backend/constants/headers/headers.constants.d.ts +3 -0
  163. package/build/backend/constants/headers/headers.constants.d.ts.map +1 -0
  164. package/build/backend/constants/headers/headers.constants.js +5 -0
  165. package/build/backend/constants/headers/index.d.ts +2 -0
  166. package/build/backend/constants/headers/index.d.ts.map +1 -0
  167. package/build/backend/constants/headers/index.js +17 -0
  168. package/build/backend/constants/index.d.ts +3 -0
  169. package/build/backend/constants/index.d.ts.map +1 -1
  170. package/build/backend/constants/index.js +3 -0
  171. package/build/backend/constants/messaging/index.d.ts +2 -0
  172. package/build/backend/constants/messaging/index.d.ts.map +1 -0
  173. package/build/backend/constants/messaging/index.js +17 -0
  174. package/build/backend/constants/messaging/messaging.constants.d.ts +13 -0
  175. package/build/backend/constants/messaging/messaging.constants.d.ts.map +1 -0
  176. package/build/backend/constants/messaging/messaging.constants.js +19 -0
  177. package/build/backend/constants/metrics/metric-names.constant.d.ts +17 -0
  178. package/build/backend/constants/metrics/metric-names.constant.d.ts.map +1 -1
  179. package/build/backend/constants/metrics/metric-names.constant.js +17 -0
  180. package/build/backend/constants/oauth2/index.d.ts +2 -0
  181. package/build/backend/constants/oauth2/index.d.ts.map +1 -0
  182. package/build/backend/constants/oauth2/index.js +17 -0
  183. package/build/backend/constants/oauth2/providers.contants.d.ts +9 -0
  184. package/build/backend/constants/oauth2/providers.contants.d.ts.map +1 -0
  185. package/build/backend/constants/oauth2/providers.contants.js +9 -0
  186. package/build/backend/constants/templates/template-keys.d.ts +1 -1
  187. package/build/backend/constants/templates/template-keys.d.ts.map +1 -1
  188. package/build/backend/constants/templates/template-keys.js +1 -0
  189. package/build/backend/models/api-tokens.schema.d.ts +0 -3
  190. package/build/backend/models/api-tokens.schema.d.ts.map +1 -1
  191. package/build/backend/models/api-tokens.schema.js +0 -1
  192. package/build/backend/models/{extented-users.schema.d.ts → extended-users.schema.d.ts} +1 -1
  193. package/build/backend/models/{extented-users.schema.d.ts.map → extended-users.schema.d.ts.map} +1 -1
  194. package/build/backend/models/hosts.schema.d.ts +21 -6
  195. package/build/backend/models/hosts.schema.d.ts.map +1 -1
  196. package/build/backend/models/hosts.schema.js +5 -2
  197. package/build/backend/models/index.d.ts +5 -1
  198. package/build/backend/models/index.d.ts.map +1 -1
  199. package/build/backend/models/index.js +5 -1
  200. package/build/backend/models/infra-billing-available-node.schema.d.ts +117 -0
  201. package/build/backend/models/infra-billing-available-node.schema.d.ts.map +1 -0
  202. package/build/backend/models/infra-billing-available-node.schema.js +9 -0
  203. package/build/backend/models/infra-billing-history-record.schema.d.ts +44 -0
  204. package/build/backend/models/infra-billing-history-record.schema.d.ts.map +1 -0
  205. package/build/backend/models/infra-billing-history-record.schema.js +19 -0
  206. package/build/backend/models/infra-billing-node.schema.d.ts +180 -0
  207. package/build/backend/models/infra-billing-node.schema.d.ts.map +1 -0
  208. package/build/backend/models/infra-billing-node.schema.js +34 -0
  209. package/build/backend/models/infra-provider.schema.d.ts +87 -0
  210. package/build/backend/models/infra-provider.schema.d.ts.map +1 -0
  211. package/build/backend/models/infra-provider.schema.js +41 -0
  212. package/build/backend/models/nodes.schema.d.ts +120 -46
  213. package/build/backend/models/nodes.schema.d.ts.map +1 -1
  214. package/build/backend/models/nodes.schema.js +8 -2
  215. package/build/frontend/api/controllers/auth.js +2 -0
  216. package/build/frontend/api/controllers/index.js +1 -0
  217. package/build/frontend/api/controllers/infra-billing.js +18 -0
  218. package/build/frontend/api/controllers/internal-squads.js +5 -0
  219. package/build/frontend/api/controllers/subscription.js +1 -0
  220. package/build/frontend/api/controllers/system.js +1 -0
  221. package/build/frontend/api/routes.js +22 -0
  222. package/build/frontend/commands/api-tokens/create.command.js +0 -1
  223. package/build/frontend/commands/auth/get-status.command.js +3 -0
  224. package/build/frontend/commands/auth/oauth2/authorize.command.js +20 -0
  225. package/build/frontend/commands/auth/oauth2/callback.command.js +22 -0
  226. package/build/frontend/commands/auth/oauth2/index.js +2 -0
  227. package/build/frontend/commands/config-profiles/create-config-profile.command.js +2 -2
  228. package/build/frontend/commands/hosts/create.command.js +13 -13
  229. package/build/frontend/commands/hosts/update.command.js +10 -11
  230. package/build/frontend/commands/index.js +1 -0
  231. package/build/frontend/commands/infra-billing/create-bill-record.command.js +30 -0
  232. package/build/frontend/commands/infra-billing/create-billing-node.command.js +38 -0
  233. package/build/frontend/commands/infra-billing/create-infra-provider.command.js +24 -0
  234. package/build/frontend/commands/infra-billing/delete-bill-record-by-uuid.command.js +22 -0
  235. package/build/frontend/commands/infra-billing/delete-billing-node-by-uuid.command.js +29 -0
  236. package/build/frontend/commands/infra-billing/delete-infra-provider-by-uuid.command.js +20 -0
  237. package/build/frontend/commands/infra-billing/get-bill-records.command.js +31 -0
  238. package/build/frontend/commands/infra-billing/get-billing-nodes.command.js +26 -0
  239. package/build/frontend/commands/infra-billing/get-infra-provider-by-uuid.command.js +19 -0
  240. package/build/frontend/commands/infra-billing/get-infra-providers.command.js +19 -0
  241. package/build/frontend/commands/infra-billing/index.js +28 -0
  242. package/build/frontend/commands/infra-billing/update-billing-node.command.js +35 -0
  243. package/build/frontend/commands/infra-billing/update-infra-provider.command.js +26 -0
  244. package/build/frontend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.js +20 -0
  245. package/build/frontend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.js +20 -0
  246. package/build/frontend/commands/internal-squads/bulk-actions/index.js +18 -0
  247. package/build/frontend/commands/internal-squads/create-internal-squad.command.js +2 -2
  248. package/build/frontend/commands/internal-squads/index.js +2 -1
  249. package/build/frontend/commands/nodes/create.command.js +7 -4
  250. package/build/frontend/commands/nodes/update.command.js +9 -4
  251. package/build/frontend/commands/subscription/get-raw-subscription-by-short-uuid.command.js +67 -0
  252. package/build/frontend/commands/subscription/index.js +1 -0
  253. package/build/frontend/commands/system/get-nodes-metrics.command.js +33 -0
  254. package/build/frontend/commands/system/index.js +1 -0
  255. package/build/frontend/commands/users/create-user.command.js +2 -4
  256. package/build/frontend/constants/errors/errors.js +115 -0
  257. package/build/frontend/constants/events/events.js +10 -0
  258. package/build/frontend/constants/headers/headers.constants.js +5 -0
  259. package/build/frontend/constants/headers/index.js +17 -0
  260. package/build/frontend/constants/index.js +3 -0
  261. package/build/frontend/constants/messaging/index.js +17 -0
  262. package/build/frontend/constants/messaging/messaging.constants.js +19 -0
  263. package/build/frontend/constants/metrics/metric-names.constant.js +17 -0
  264. package/build/frontend/constants/oauth2/index.js +17 -0
  265. package/build/frontend/constants/oauth2/providers.contants.js +9 -0
  266. package/build/frontend/constants/templates/template-keys.js +1 -0
  267. package/build/frontend/models/api-tokens.schema.js +0 -1
  268. package/build/frontend/models/hosts.schema.js +5 -2
  269. package/build/frontend/models/index.js +5 -1
  270. package/build/frontend/models/infra-billing-available-node.schema.js +9 -0
  271. package/build/frontend/models/infra-billing-history-record.schema.js +19 -0
  272. package/build/frontend/models/infra-billing-node.schema.js +34 -0
  273. package/build/frontend/models/infra-provider.schema.js +41 -0
  274. package/build/frontend/models/nodes.schema.js +8 -2
  275. package/package.json +2 -2
  276. package/build/backend/commands/internal-squads/get-internal-squad-by-uuid..d.ts.map +0 -1
  277. /package/build/backend/commands/internal-squads/{get-internal-squad-by-uuid..js → get-internal-squad-by-uuid.js} +0 -0
  278. /package/build/backend/models/{extented-users.schema.js → extended-users.schema.js} +0 -0
  279. /package/build/frontend/commands/internal-squads/{get-internal-squad-by-uuid..js → get-internal-squad-by-uuid.js} +0 -0
  280. /package/build/frontend/models/{extented-users.schema.js → extended-users.schema.js} +0 -0
@@ -0,0 +1,180 @@
1
+ import { z } from 'zod';
2
+ export declare const InfraBillingNodeSchema: z.ZodObject<{
3
+ uuid: z.ZodString;
4
+ nodeUuid: z.ZodString;
5
+ providerUuid: z.ZodString;
6
+ provider: z.ZodObject<Pick<{
7
+ uuid: z.ZodString;
8
+ name: z.ZodString;
9
+ faviconLink: z.ZodNullable<z.ZodString>;
10
+ loginUrl: z.ZodNullable<z.ZodString>;
11
+ createdAt: z.ZodEffects<z.ZodString, Date, string>;
12
+ updatedAt: z.ZodEffects<z.ZodString, Date, string>;
13
+ }, "uuid" | "name" | "faviconLink" | "loginUrl">, "strip", z.ZodTypeAny, {
14
+ uuid: string;
15
+ name: string;
16
+ faviconLink: string | null;
17
+ loginUrl: string | null;
18
+ }, {
19
+ uuid: string;
20
+ name: string;
21
+ faviconLink: string | null;
22
+ loginUrl: string | null;
23
+ }>;
24
+ node: z.ZodObject<Pick<{
25
+ uuid: z.ZodString;
26
+ name: z.ZodString;
27
+ address: z.ZodString;
28
+ port: z.ZodNullable<z.ZodNumber>;
29
+ isConnected: z.ZodBoolean;
30
+ isDisabled: z.ZodBoolean;
31
+ isConnecting: z.ZodBoolean;
32
+ isNodeOnline: z.ZodBoolean;
33
+ isXrayRunning: z.ZodBoolean;
34
+ lastStatusChange: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
35
+ lastStatusMessage: z.ZodNullable<z.ZodString>;
36
+ xrayVersion: z.ZodNullable<z.ZodString>;
37
+ nodeVersion: z.ZodNullable<z.ZodString>;
38
+ xrayUptime: z.ZodString;
39
+ isTrafficTrackingActive: z.ZodBoolean;
40
+ trafficResetDay: z.ZodNullable<z.ZodNumber>;
41
+ trafficLimitBytes: z.ZodNullable<z.ZodNumber>;
42
+ trafficUsedBytes: z.ZodNullable<z.ZodNumber>;
43
+ notifyPercent: z.ZodNullable<z.ZodNumber>;
44
+ usersOnline: z.ZodNullable<z.ZodNumber>;
45
+ viewPosition: z.ZodNumber;
46
+ countryCode: z.ZodString;
47
+ consumptionMultiplier: z.ZodNumber;
48
+ cpuCount: z.ZodNullable<z.ZodNumber>;
49
+ cpuModel: z.ZodNullable<z.ZodString>;
50
+ totalRam: z.ZodNullable<z.ZodString>;
51
+ createdAt: z.ZodEffects<z.ZodString, Date, string>;
52
+ updatedAt: z.ZodEffects<z.ZodString, Date, string>;
53
+ configProfile: z.ZodObject<{
54
+ activeConfigProfileUuid: z.ZodNullable<z.ZodString>;
55
+ activeInbounds: z.ZodArray<z.ZodObject<{
56
+ uuid: z.ZodString;
57
+ profileUuid: z.ZodString;
58
+ tag: z.ZodString;
59
+ type: z.ZodString;
60
+ network: z.ZodNullable<z.ZodString>;
61
+ security: z.ZodNullable<z.ZodString>;
62
+ port: z.ZodNullable<z.ZodNumber>;
63
+ rawInbound: z.ZodNullable<z.ZodUnknown>;
64
+ }, "strip", z.ZodTypeAny, {
65
+ type: string;
66
+ uuid: string;
67
+ profileUuid: string;
68
+ tag: string;
69
+ network: string | null;
70
+ security: string | null;
71
+ port: number | null;
72
+ rawInbound?: unknown;
73
+ }, {
74
+ type: string;
75
+ uuid: string;
76
+ profileUuid: string;
77
+ tag: string;
78
+ network: string | null;
79
+ security: string | null;
80
+ port: number | null;
81
+ rawInbound?: unknown;
82
+ }>, "many">;
83
+ }, "strip", z.ZodTypeAny, {
84
+ activeConfigProfileUuid: string | null;
85
+ activeInbounds: {
86
+ type: string;
87
+ uuid: string;
88
+ profileUuid: string;
89
+ tag: string;
90
+ network: string | null;
91
+ security: string | null;
92
+ port: number | null;
93
+ rawInbound?: unknown;
94
+ }[];
95
+ }, {
96
+ activeConfigProfileUuid: string | null;
97
+ activeInbounds: {
98
+ type: string;
99
+ uuid: string;
100
+ profileUuid: string;
101
+ tag: string;
102
+ network: string | null;
103
+ security: string | null;
104
+ port: number | null;
105
+ rawInbound?: unknown;
106
+ }[];
107
+ }>;
108
+ providerUuid: z.ZodNullable<z.ZodString>;
109
+ provider: z.ZodNullable<z.ZodObject<{
110
+ uuid: z.ZodString;
111
+ name: z.ZodString;
112
+ faviconLink: z.ZodNullable<z.ZodString>;
113
+ loginUrl: z.ZodNullable<z.ZodString>;
114
+ createdAt: z.ZodEffects<z.ZodString, Date, string>;
115
+ updatedAt: z.ZodEffects<z.ZodString, Date, string>;
116
+ }, "strip", z.ZodTypeAny, {
117
+ uuid: string;
118
+ createdAt: Date;
119
+ updatedAt: Date;
120
+ name: string;
121
+ faviconLink: string | null;
122
+ loginUrl: string | null;
123
+ }, {
124
+ uuid: string;
125
+ createdAt: string;
126
+ updatedAt: string;
127
+ name: string;
128
+ faviconLink: string | null;
129
+ loginUrl: string | null;
130
+ }>>;
131
+ }, "uuid" | "name" | "countryCode">, "strip", z.ZodTypeAny, {
132
+ uuid: string;
133
+ name: string;
134
+ countryCode: string;
135
+ }, {
136
+ uuid: string;
137
+ name: string;
138
+ countryCode: string;
139
+ }>;
140
+ nextBillingAt: z.ZodEffects<z.ZodString, Date, string>;
141
+ createdAt: z.ZodEffects<z.ZodString, Date, string>;
142
+ updatedAt: z.ZodEffects<z.ZodString, Date, string>;
143
+ }, "strip", z.ZodTypeAny, {
144
+ uuid: string;
145
+ createdAt: Date;
146
+ updatedAt: Date;
147
+ provider: {
148
+ uuid: string;
149
+ name: string;
150
+ faviconLink: string | null;
151
+ loginUrl: string | null;
152
+ };
153
+ nodeUuid: string;
154
+ providerUuid: string;
155
+ node: {
156
+ uuid: string;
157
+ name: string;
158
+ countryCode: string;
159
+ };
160
+ nextBillingAt: Date;
161
+ }, {
162
+ uuid: string;
163
+ createdAt: string;
164
+ updatedAt: string;
165
+ provider: {
166
+ uuid: string;
167
+ name: string;
168
+ faviconLink: string | null;
169
+ loginUrl: string | null;
170
+ };
171
+ nodeUuid: string;
172
+ providerUuid: string;
173
+ node: {
174
+ uuid: string;
175
+ name: string;
176
+ countryCode: string;
177
+ };
178
+ nextBillingAt: string;
179
+ }>;
180
+ //# sourceMappingURL=infra-billing-node.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"infra-billing-node.schema.d.ts","sourceRoot":"","sources":["../../../models/infra-billing-node.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6BjC,CAAC"}
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InfraBillingNodeSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const infra_provider_schema_1 = require("./infra-provider.schema");
6
+ const nodes_schema_1 = require("./nodes.schema");
7
+ exports.InfraBillingNodeSchema = zod_1.z.object({
8
+ uuid: zod_1.z.string().uuid(),
9
+ nodeUuid: zod_1.z.string().uuid(),
10
+ providerUuid: zod_1.z.string().uuid(),
11
+ provider: infra_provider_schema_1.PartialInfraProviderSchema.pick({
12
+ uuid: true,
13
+ name: true,
14
+ loginUrl: true,
15
+ faviconLink: true,
16
+ }),
17
+ node: nodes_schema_1.NodesSchema.pick({
18
+ uuid: true,
19
+ name: true,
20
+ countryCode: true,
21
+ }),
22
+ nextBillingAt: zod_1.z
23
+ .string()
24
+ .datetime()
25
+ .transform((str) => new Date(str)),
26
+ createdAt: zod_1.z
27
+ .string()
28
+ .datetime()
29
+ .transform((str) => new Date(str)),
30
+ updatedAt: zod_1.z
31
+ .string()
32
+ .datetime()
33
+ .transform((str) => new Date(str)),
34
+ });
@@ -0,0 +1,87 @@
1
+ import { z } from 'zod';
2
+ export declare const InfraProviderSchema: z.ZodObject<{
3
+ uuid: z.ZodString;
4
+ name: z.ZodString;
5
+ faviconLink: z.ZodNullable<z.ZodString>;
6
+ loginUrl: z.ZodNullable<z.ZodString>;
7
+ createdAt: z.ZodEffects<z.ZodString, Date, string>;
8
+ updatedAt: z.ZodEffects<z.ZodString, Date, string>;
9
+ billingHistory: z.ZodObject<{
10
+ totalAmount: z.ZodNumber;
11
+ totalBills: z.ZodNumber;
12
+ }, "strip", z.ZodTypeAny, {
13
+ totalAmount: number;
14
+ totalBills: number;
15
+ }, {
16
+ totalAmount: number;
17
+ totalBills: number;
18
+ }>;
19
+ billingNodes: z.ZodArray<z.ZodObject<{
20
+ nodeUuid: z.ZodString;
21
+ name: z.ZodString;
22
+ countryCode: z.ZodString;
23
+ }, "strip", z.ZodTypeAny, {
24
+ name: string;
25
+ countryCode: string;
26
+ nodeUuid: string;
27
+ }, {
28
+ name: string;
29
+ countryCode: string;
30
+ nodeUuid: string;
31
+ }>, "many">;
32
+ }, "strip", z.ZodTypeAny, {
33
+ uuid: string;
34
+ createdAt: Date;
35
+ updatedAt: Date;
36
+ name: string;
37
+ faviconLink: string | null;
38
+ loginUrl: string | null;
39
+ billingHistory: {
40
+ totalAmount: number;
41
+ totalBills: number;
42
+ };
43
+ billingNodes: {
44
+ name: string;
45
+ countryCode: string;
46
+ nodeUuid: string;
47
+ }[];
48
+ }, {
49
+ uuid: string;
50
+ createdAt: string;
51
+ updatedAt: string;
52
+ name: string;
53
+ faviconLink: string | null;
54
+ loginUrl: string | null;
55
+ billingHistory: {
56
+ totalAmount: number;
57
+ totalBills: number;
58
+ };
59
+ billingNodes: {
60
+ name: string;
61
+ countryCode: string;
62
+ nodeUuid: string;
63
+ }[];
64
+ }>;
65
+ export declare const PartialInfraProviderSchema: z.ZodObject<{
66
+ uuid: z.ZodString;
67
+ name: z.ZodString;
68
+ faviconLink: z.ZodNullable<z.ZodString>;
69
+ loginUrl: z.ZodNullable<z.ZodString>;
70
+ createdAt: z.ZodEffects<z.ZodString, Date, string>;
71
+ updatedAt: z.ZodEffects<z.ZodString, Date, string>;
72
+ }, "strip", z.ZodTypeAny, {
73
+ uuid: string;
74
+ createdAt: Date;
75
+ updatedAt: Date;
76
+ name: string;
77
+ faviconLink: string | null;
78
+ loginUrl: string | null;
79
+ }, {
80
+ uuid: string;
81
+ createdAt: string;
82
+ updatedAt: string;
83
+ name: string;
84
+ faviconLink: string | null;
85
+ loginUrl: string | null;
86
+ }>;
87
+ //# sourceMappingURL=infra-provider.schema.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"infra-provider.schema.d.ts","sourceRoot":"","sources":["../../../models/infra-provider.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0B9B,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;EAcrC,CAAC"}
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PartialInfraProviderSchema = exports.InfraProviderSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ exports.InfraProviderSchema = zod_1.z.object({
6
+ uuid: zod_1.z.string().uuid(),
7
+ name: zod_1.z.string(),
8
+ faviconLink: zod_1.z.nullable(zod_1.z.string()),
9
+ loginUrl: zod_1.z.nullable(zod_1.z.string()),
10
+ createdAt: zod_1.z
11
+ .string()
12
+ .datetime()
13
+ .transform((str) => new Date(str)),
14
+ updatedAt: zod_1.z
15
+ .string()
16
+ .datetime()
17
+ .transform((str) => new Date(str)),
18
+ billingHistory: zod_1.z.object({
19
+ totalAmount: zod_1.z.number(),
20
+ totalBills: zod_1.z.number(),
21
+ }),
22
+ billingNodes: zod_1.z.array(zod_1.z.object({
23
+ nodeUuid: zod_1.z.string().uuid(),
24
+ name: zod_1.z.string(),
25
+ countryCode: zod_1.z.string(),
26
+ })),
27
+ });
28
+ exports.PartialInfraProviderSchema = zod_1.z.object({
29
+ uuid: zod_1.z.string().uuid(),
30
+ name: zod_1.z.string(),
31
+ faviconLink: zod_1.z.nullable(zod_1.z.string()),
32
+ loginUrl: zod_1.z.nullable(zod_1.z.string()),
33
+ createdAt: zod_1.z
34
+ .string()
35
+ .datetime()
36
+ .transform((str) => new Date(str)),
37
+ updatedAt: zod_1.z
38
+ .string()
39
+ .datetime()
40
+ .transform((str) => new Date(str)),
41
+ });
@@ -12,6 +12,7 @@ export declare const NodesSchema: z.ZodObject<{
12
12
  lastStatusChange: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
13
13
  lastStatusMessage: z.ZodNullable<z.ZodString>;
14
14
  xrayVersion: z.ZodNullable<z.ZodString>;
15
+ nodeVersion: z.ZodNullable<z.ZodString>;
15
16
  xrayUptime: z.ZodString;
16
17
  isTrafficTrackingActive: z.ZodBoolean;
17
18
  trafficResetDay: z.ZodNullable<z.ZodNumber>;
@@ -27,39 +28,96 @@ export declare const NodesSchema: z.ZodObject<{
27
28
  totalRam: z.ZodNullable<z.ZodString>;
28
29
  createdAt: z.ZodEffects<z.ZodString, Date, string>;
29
30
  updatedAt: z.ZodEffects<z.ZodString, Date, string>;
30
- activeConfigProfileUuid: z.ZodNullable<z.ZodString>;
31
- activeInbounds: z.ZodNullable<z.ZodArray<z.ZodObject<{
31
+ configProfile: z.ZodObject<{
32
+ activeConfigProfileUuid: z.ZodNullable<z.ZodString>;
33
+ activeInbounds: z.ZodArray<z.ZodObject<{
34
+ uuid: z.ZodString;
35
+ profileUuid: z.ZodString;
36
+ tag: z.ZodString;
37
+ type: z.ZodString;
38
+ network: z.ZodNullable<z.ZodString>;
39
+ security: z.ZodNullable<z.ZodString>;
40
+ port: z.ZodNullable<z.ZodNumber>;
41
+ rawInbound: z.ZodNullable<z.ZodUnknown>;
42
+ }, "strip", z.ZodTypeAny, {
43
+ type: string;
44
+ uuid: string;
45
+ profileUuid: string;
46
+ tag: string;
47
+ network: string | null;
48
+ security: string | null;
49
+ port: number | null;
50
+ rawInbound?: unknown;
51
+ }, {
52
+ type: string;
53
+ uuid: string;
54
+ profileUuid: string;
55
+ tag: string;
56
+ network: string | null;
57
+ security: string | null;
58
+ port: number | null;
59
+ rawInbound?: unknown;
60
+ }>, "many">;
61
+ }, "strip", z.ZodTypeAny, {
62
+ activeConfigProfileUuid: string | null;
63
+ activeInbounds: {
64
+ type: string;
65
+ uuid: string;
66
+ profileUuid: string;
67
+ tag: string;
68
+ network: string | null;
69
+ security: string | null;
70
+ port: number | null;
71
+ rawInbound?: unknown;
72
+ }[];
73
+ }, {
74
+ activeConfigProfileUuid: string | null;
75
+ activeInbounds: {
76
+ type: string;
77
+ uuid: string;
78
+ profileUuid: string;
79
+ tag: string;
80
+ network: string | null;
81
+ security: string | null;
82
+ port: number | null;
83
+ rawInbound?: unknown;
84
+ }[];
85
+ }>;
86
+ providerUuid: z.ZodNullable<z.ZodString>;
87
+ provider: z.ZodNullable<z.ZodObject<{
32
88
  uuid: z.ZodString;
33
- profileUuid: z.ZodString;
34
- tag: z.ZodString;
35
- type: z.ZodString;
36
- network: z.ZodNullable<z.ZodString>;
37
- security: z.ZodNullable<z.ZodString>;
38
- port: z.ZodNullable<z.ZodNumber>;
39
- rawInbound: z.ZodNullable<z.ZodUnknown>;
89
+ name: z.ZodString;
90
+ faviconLink: z.ZodNullable<z.ZodString>;
91
+ loginUrl: z.ZodNullable<z.ZodString>;
92
+ createdAt: z.ZodEffects<z.ZodString, Date, string>;
93
+ updatedAt: z.ZodEffects<z.ZodString, Date, string>;
40
94
  }, "strip", z.ZodTypeAny, {
41
- type: string;
42
95
  uuid: string;
43
- profileUuid: string;
44
- tag: string;
45
- network: string | null;
46
- security: string | null;
47
- port: number | null;
48
- rawInbound?: unknown;
96
+ createdAt: Date;
97
+ updatedAt: Date;
98
+ name: string;
99
+ faviconLink: string | null;
100
+ loginUrl: string | null;
49
101
  }, {
50
- type: string;
51
102
  uuid: string;
52
- profileUuid: string;
53
- tag: string;
54
- network: string | null;
55
- security: string | null;
56
- port: number | null;
57
- rawInbound?: unknown;
58
- }>, "many">>;
103
+ createdAt: string;
104
+ updatedAt: string;
105
+ name: string;
106
+ faviconLink: string | null;
107
+ loginUrl: string | null;
108
+ }>>;
59
109
  }, "strip", z.ZodTypeAny, {
60
110
  uuid: string;
61
111
  createdAt: Date;
62
112
  updatedAt: Date;
113
+ provider: {
114
+ uuid: string;
115
+ createdAt: Date;
116
+ updatedAt: Date;
117
+ name: string;
118
+ faviconLink: string | null;
119
+ loginUrl: string | null;
120
+ } | null;
63
121
  name: string;
64
122
  port: number | null;
65
123
  countryCode: string;
@@ -74,6 +132,7 @@ export declare const NodesSchema: z.ZodObject<{
74
132
  lastStatusChange: Date | null;
75
133
  lastStatusMessage: string | null;
76
134
  xrayVersion: string | null;
135
+ nodeVersion: string | null;
77
136
  xrayUptime: string;
78
137
  isTrafficTrackingActive: boolean;
79
138
  trafficResetDay: number | null;
@@ -84,21 +143,32 @@ export declare const NodesSchema: z.ZodObject<{
84
143
  cpuCount: number | null;
85
144
  cpuModel: string | null;
86
145
  totalRam: string | null;
87
- activeConfigProfileUuid: string | null;
88
- activeInbounds: {
89
- type: string;
90
- uuid: string;
91
- profileUuid: string;
92
- tag: string;
93
- network: string | null;
94
- security: string | null;
95
- port: number | null;
96
- rawInbound?: unknown;
97
- }[] | null;
146
+ configProfile: {
147
+ activeConfigProfileUuid: string | null;
148
+ activeInbounds: {
149
+ type: string;
150
+ uuid: string;
151
+ profileUuid: string;
152
+ tag: string;
153
+ network: string | null;
154
+ security: string | null;
155
+ port: number | null;
156
+ rawInbound?: unknown;
157
+ }[];
158
+ };
159
+ providerUuid: string | null;
98
160
  }, {
99
161
  uuid: string;
100
162
  createdAt: string;
101
163
  updatedAt: string;
164
+ provider: {
165
+ uuid: string;
166
+ createdAt: string;
167
+ updatedAt: string;
168
+ name: string;
169
+ faviconLink: string | null;
170
+ loginUrl: string | null;
171
+ } | null;
102
172
  name: string;
103
173
  port: number | null;
104
174
  countryCode: string;
@@ -113,6 +183,7 @@ export declare const NodesSchema: z.ZodObject<{
113
183
  lastStatusChange: string | null;
114
184
  lastStatusMessage: string | null;
115
185
  xrayVersion: string | null;
186
+ nodeVersion: string | null;
116
187
  xrayUptime: string;
117
188
  isTrafficTrackingActive: boolean;
118
189
  trafficResetDay: number | null;
@@ -123,16 +194,19 @@ export declare const NodesSchema: z.ZodObject<{
123
194
  cpuCount: number | null;
124
195
  cpuModel: string | null;
125
196
  totalRam: string | null;
126
- activeConfigProfileUuid: string | null;
127
- activeInbounds: {
128
- type: string;
129
- uuid: string;
130
- profileUuid: string;
131
- tag: string;
132
- network: string | null;
133
- security: string | null;
134
- port: number | null;
135
- rawInbound?: unknown;
136
- }[] | null;
197
+ configProfile: {
198
+ activeConfigProfileUuid: string | null;
199
+ activeInbounds: {
200
+ type: string;
201
+ uuid: string;
202
+ profileUuid: string;
203
+ tag: string;
204
+ network: string | null;
205
+ security: string | null;
206
+ port: number | null;
207
+ rawInbound?: unknown;
208
+ }[];
209
+ };
210
+ providerUuid: string | null;
137
211
  }>;
138
212
  //# sourceMappingURL=nodes.schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"nodes.schema.d.ts","sourceRoot":"","sources":["../../../models/nodes.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6CtB,CAAC"}
1
+ {"version":3,"file":"nodes.schema.d.ts","sourceRoot":"","sources":["../../../models/nodes.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmDtB,CAAC"}
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.NodesSchema = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const config_profile_inbounds_schema_1 = require("./config-profile-inbounds.schema");
6
+ const infra_provider_schema_1 = require("./infra-provider.schema");
6
7
  exports.NodesSchema = zod_1.z.object({
7
8
  uuid: zod_1.z.string().uuid(),
8
9
  name: zod_1.z.string(),
@@ -19,6 +20,7 @@ exports.NodesSchema = zod_1.z.object({
19
20
  .transform((str) => new Date(str))),
20
21
  lastStatusMessage: zod_1.z.nullable(zod_1.z.string()),
21
22
  xrayVersion: zod_1.z.nullable(zod_1.z.string()),
23
+ nodeVersion: zod_1.z.nullable(zod_1.z.string()),
22
24
  xrayUptime: zod_1.z.string(),
23
25
  isTrafficTrackingActive: zod_1.z.boolean(),
24
26
  trafficResetDay: zod_1.z.nullable(zod_1.z.number().int()),
@@ -40,6 +42,10 @@ exports.NodesSchema = zod_1.z.object({
40
42
  .string()
41
43
  .datetime()
42
44
  .transform((str) => new Date(str)),
43
- activeConfigProfileUuid: zod_1.z.nullable(zod_1.z.string().uuid()),
44
- activeInbounds: zod_1.z.nullable(zod_1.z.array(config_profile_inbounds_schema_1.ConfigProfileInboundsSchema)),
45
+ configProfile: zod_1.z.object({
46
+ activeConfigProfileUuid: zod_1.z.nullable(zod_1.z.string().uuid()),
47
+ activeInbounds: zod_1.z.array(config_profile_inbounds_schema_1.ConfigProfileInboundsSchema),
48
+ }),
49
+ providerUuid: zod_1.z.nullable(zod_1.z.string().uuid()),
50
+ provider: zod_1.z.nullable(infra_provider_schema_1.PartialInfraProviderSchema),
45
51
  });
@@ -8,5 +8,7 @@ exports.AUTH_ROUTES = {
8
8
  GET_STATUS: 'status',
9
9
  OAUTH2: {
10
10
  TELEGRAM_CALLBACK: 'oauth2/tg/callback',
11
+ AUTHORIZE: 'oauth2/authorize',
12
+ CALLBACK: 'oauth2/callback',
11
13
  },
12
14
  };
@@ -19,6 +19,7 @@ __exportStar(require("./auth"), exports);
19
19
  __exportStar(require("./config-profiles"), exports);
20
20
  __exportStar(require("./hosts"), exports);
21
21
  __exportStar(require("./hwid"), exports);
22
+ __exportStar(require("./infra-billing"), exports);
22
23
  __exportStar(require("./internal-squads"), exports);
23
24
  __exportStar(require("./keygen"), exports);
24
25
  __exportStar(require("./nodes"), exports);
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.INFRA_BILLING_ROUTES = exports.INFRA_BILLING_CONTROLLER = void 0;
4
+ exports.INFRA_BILLING_CONTROLLER = 'infra-billing';
5
+ exports.INFRA_BILLING_ROUTES = {
6
+ GET_PROVIDERS: 'providers', // Get list of all providers // get
7
+ CREATE_PROVIDER: 'providers', // Create new provider // post
8
+ UPDATE_PROVIDER: 'providers', // Update provider by uuid // patch
9
+ DELETE_PROVIDER: (uuid) => `providers/${uuid}`, // Delete provider by uuid // delete
10
+ GET_PROVIDER_BY_UUID: (uuid) => `providers/${uuid}`, // Get provider by uuid // get
11
+ GET_BILLING_NODES: 'nodes', // Get list of all nodes billing // get
12
+ CREATE_BILLING_NODE: 'nodes', // Create new node billing // post
13
+ UPDATE_BILLING_NODE: 'nodes', // Update node billing by uuid // patch
14
+ DELETE_BILLING_NODE: (uuid) => `nodes/${uuid}`, // Delete node billing by uuid // delete
15
+ GET_BILLING_HISTORY: 'history', // Get list of all nodes billing history // get
16
+ CREATE_BILLING_HISTORY: 'history', // Create new node billing history // post
17
+ DELETE_BILLING_HISTORY: (uuid) => `history/${uuid}`, // Delete node billing history by uuid // delete
18
+ };
@@ -2,10 +2,15 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.INTERNAL_SQUADS_ROUTES = exports.INTERNAL_SQUADS_CONTROLLER = void 0;
4
4
  exports.INTERNAL_SQUADS_CONTROLLER = 'internal-squads';
5
+ const BULK_ACTIONS_ROUTE = 'bulk-actions';
5
6
  exports.INTERNAL_SQUADS_ROUTES = {
6
7
  GET: '', // Get list of all internal squads // get
7
8
  CREATE: '', // Create new internal squad // post
8
9
  UPDATE: '', // Update internal squad by uuid // patch
9
10
  GET_BY_UUID: (uuid) => `${uuid}`, // Get internal squad by uuid // get
10
11
  DELETE: (uuid) => `${uuid}`, // Delete internal squad by uuid // delete
12
+ BULK_ACTIONS: {
13
+ ADD_USERS: (uuid) => `${uuid}/${BULK_ACTIONS_ROUTE}/add-users`, // Add users to internal squad // post
14
+ REMOVE_USERS: (uuid) => `${uuid}/${BULK_ACTIONS_ROUTE}/remove-users`, // Remove users from internal squad // delete
15
+ },
11
16
  };
@@ -6,4 +6,5 @@ exports.SUBSCRIPTION_ROUTES = {
6
6
  GET: '',
7
7
  GET_OUTLINE: '/outline',
8
8
  GET_INFO: (shortUuid) => `${shortUuid}/info`,
9
+ GET_RAW: (shortUuid) => `${shortUuid}/raw`,
9
10
  };
@@ -7,6 +7,7 @@ exports.SYSTEM_ROUTES = {
7
7
  SYSTEM_STATS: 'stats',
8
8
  BANDWIDTH_STATS: 'stats/bandwidth',
9
9
  NODES_STATS: 'stats/nodes',
10
+ NODES_METRICS: 'nodes/metrics',
10
11
  },
11
12
  HEALTH: 'health',
12
13
  };