@remnawave/backend-contract 0.7.26 → 2.0.0-alpha.10

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 (310) hide show
  1. package/build/backend/api/controllers/config-profiles.d.ts +11 -0
  2. package/build/backend/api/controllers/config-profiles.d.ts.map +1 -0
  3. package/build/backend/api/controllers/config-profiles.js +13 -0
  4. package/build/backend/api/controllers/index.d.ts +3 -2
  5. package/build/backend/api/controllers/index.d.ts.map +1 -1
  6. package/build/backend/api/controllers/index.js +3 -2
  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 +22 -0
  10. package/build/backend/api/controllers/internal-squads.d.ts +9 -0
  11. package/build/backend/api/controllers/internal-squads.d.ts.map +1 -0
  12. package/build/backend/api/controllers/internal-squads.js +11 -0
  13. package/build/backend/api/controllers/users.d.ts +2 -2
  14. package/build/backend/api/controllers/users.d.ts.map +1 -1
  15. package/build/backend/api/controllers/users.js +2 -2
  16. package/build/backend/api/routes.d.ts +32 -16
  17. package/build/backend/api/routes.d.ts.map +1 -1
  18. package/build/backend/api/routes.js +32 -16
  19. package/build/backend/commands/config-profiles/create-config-profile.command.d.ts +161 -0
  20. package/build/backend/commands/config-profiles/create-config-profile.command.d.ts.map +1 -0
  21. package/build/backend/commands/config-profiles/create-config-profile.command.js +24 -0
  22. package/build/backend/commands/config-profiles/delete-config-profile.command.d.ts +33 -0
  23. package/build/backend/commands/config-profiles/delete-config-profile.command.d.ts.map +1 -0
  24. package/build/backend/commands/config-profiles/delete-config-profile.command.js +20 -0
  25. package/build/backend/commands/config-profiles/get-all-inbounds.command.d.ts +93 -0
  26. package/build/backend/commands/config-profiles/get-all-inbounds.command.d.ts.map +1 -0
  27. package/build/backend/commands/config-profiles/get-all-inbounds.command.js +19 -0
  28. package/build/backend/commands/config-profiles/get-config-profile-by-uuid.command.d.ts +154 -0
  29. package/build/backend/commands/config-profiles/get-config-profile-by-uuid.command.d.ts.map +1 -0
  30. package/build/backend/commands/config-profiles/get-config-profile-by-uuid.command.js +19 -0
  31. package/build/backend/commands/config-profiles/get-config-profiles.command.d.ts +203 -0
  32. package/build/backend/commands/config-profiles/get-config-profiles.command.d.ts.map +1 -0
  33. package/build/backend/commands/config-profiles/get-config-profiles.command.js +19 -0
  34. package/build/backend/commands/config-profiles/get-inbounds-by-profile-uuid.command.d.ts +101 -0
  35. package/build/backend/commands/config-profiles/get-inbounds-by-profile-uuid.command.d.ts.map +1 -0
  36. package/build/backend/commands/config-profiles/get-inbounds-by-profile-uuid.command.js +22 -0
  37. package/build/backend/commands/config-profiles/index.d.ts +8 -0
  38. package/build/backend/commands/config-profiles/index.d.ts.map +1 -0
  39. package/build/backend/commands/config-profiles/index.js +23 -0
  40. package/build/backend/commands/config-profiles/update-config-profile.command.d.ts +161 -0
  41. package/build/backend/commands/config-profiles/update-config-profile.command.d.ts.map +1 -0
  42. package/build/backend/commands/config-profiles/update-config-profile.command.js +20 -0
  43. package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts +10 -10
  44. package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts +10 -10
  45. package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts +10 -10
  46. package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.d.ts +16 -13
  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-inbound-to-many-hosts.command.js +2 -1
  49. package/build/backend/commands/hosts/bulk/set-port-to-many-hosts.command.d.ts +10 -10
  50. package/build/backend/commands/hosts/create.command.d.ts +18 -15
  51. package/build/backend/commands/hosts/create.command.d.ts.map +1 -1
  52. package/build/backend/commands/hosts/create.command.js +9 -2
  53. package/build/backend/commands/hosts/get-all.command.d.ts +10 -10
  54. package/build/backend/commands/hosts/get-one.command.d.ts +10 -10
  55. package/build/backend/commands/hosts/reorder.command.d.ts +2 -2
  56. package/build/backend/commands/hosts/update.command.d.ts +20 -17
  57. package/build/backend/commands/hosts/update.command.d.ts.map +1 -1
  58. package/build/backend/commands/hosts/update.command.js +7 -1
  59. package/build/backend/commands/index.d.ts +3 -2
  60. package/build/backend/commands/index.d.ts.map +1 -1
  61. package/build/backend/commands/index.js +3 -2
  62. package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts +123 -0
  63. package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts.map +1 -0
  64. package/build/backend/commands/infra-billing/create-infra-provider.command.js +24 -0
  65. package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.d.ts +33 -0
  66. package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.d.ts.map +1 -0
  67. package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.js +20 -0
  68. package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts +117 -0
  69. package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts.map +1 -0
  70. package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.js +19 -0
  71. package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts +156 -0
  72. package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts.map +1 -0
  73. package/build/backend/commands/infra-billing/get-infra-providers.command.js +19 -0
  74. package/build/backend/commands/infra-billing/index.d.ts +6 -0
  75. package/build/backend/commands/infra-billing/index.d.ts.map +1 -0
  76. package/build/backend/commands/{inbounds/bulk → infra-billing}/index.js +5 -4
  77. package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts +126 -0
  78. package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts.map +1 -0
  79. package/build/backend/commands/infra-billing/update-infra-provider.command.js +26 -0
  80. package/build/backend/commands/internal-squads/create-internal-squad.command.d.ts +145 -0
  81. package/build/backend/commands/internal-squads/create-internal-squad.command.d.ts.map +1 -0
  82. package/build/backend/commands/internal-squads/create-internal-squad.command.js +24 -0
  83. package/build/backend/commands/internal-squads/delete-internal-squad.command.d.ts +33 -0
  84. package/build/backend/commands/internal-squads/delete-internal-squad.command.d.ts.map +1 -0
  85. package/build/backend/commands/internal-squads/delete-internal-squad.command.js +20 -0
  86. package/build/backend/commands/internal-squads/get-internal-squad-by-uuid..d.ts +142 -0
  87. package/build/backend/commands/internal-squads/get-internal-squad-by-uuid..d.ts.map +1 -0
  88. package/build/backend/commands/internal-squads/get-internal-squad-by-uuid..js +19 -0
  89. package/build/backend/commands/internal-squads/get-internal-squads.command.d.ts +187 -0
  90. package/build/backend/commands/internal-squads/get-internal-squads.command.d.ts.map +1 -0
  91. package/build/backend/commands/internal-squads/get-internal-squads.command.js +19 -0
  92. package/build/backend/commands/internal-squads/index.d.ts +6 -0
  93. package/build/backend/commands/internal-squads/index.d.ts.map +1 -0
  94. package/build/backend/commands/{xray → internal-squads}/index.js +5 -2
  95. package/build/backend/commands/internal-squads/update-internal-squad.command.d.ts +145 -0
  96. package/build/backend/commands/internal-squads/update-internal-squad.command.d.ts.map +1 -0
  97. package/build/backend/commands/internal-squads/update-internal-squad.command.js +20 -0
  98. package/build/backend/commands/nodes/actions/disable.command.d.ts +184 -22
  99. package/build/backend/commands/nodes/actions/disable.command.d.ts.map +1 -1
  100. package/build/backend/commands/nodes/actions/enable.command.d.ts +184 -22
  101. package/build/backend/commands/nodes/actions/enable.command.d.ts.map +1 -1
  102. package/build/backend/commands/nodes/actions/reorder.command.d.ts +260 -24
  103. package/build/backend/commands/nodes/actions/reorder.command.d.ts.map +1 -1
  104. package/build/backend/commands/nodes/create.command.d.ts +199 -31
  105. package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
  106. package/build/backend/commands/nodes/create.command.js +5 -3
  107. package/build/backend/commands/nodes/get-all.command.d.ts +184 -22
  108. package/build/backend/commands/nodes/get-all.command.d.ts.map +1 -1
  109. package/build/backend/commands/nodes/get-one.command.d.ts +184 -22
  110. package/build/backend/commands/nodes/get-one.command.d.ts.map +1 -1
  111. package/build/backend/commands/nodes/stats/get-node-user-usage-by-range.command.d.ts +4 -4
  112. package/build/backend/commands/nodes/stats/get-nodes-usage-by-range.command.d.ts +4 -4
  113. package/build/backend/commands/nodes/stats/get-realtime-usage.command.d.ts +4 -4
  114. package/build/backend/commands/nodes/update.command.d.ts +275 -33
  115. package/build/backend/commands/nodes/update.command.d.ts.map +1 -1
  116. package/build/backend/commands/nodes/update.command.js +5 -3
  117. package/build/backend/commands/users/actions/disable-user.command.d.ts +12 -38
  118. package/build/backend/commands/users/actions/disable-user.command.d.ts.map +1 -1
  119. package/build/backend/commands/users/actions/enable-user.command.d.ts +12 -38
  120. package/build/backend/commands/users/actions/enable-user.command.d.ts.map +1 -1
  121. package/build/backend/commands/users/actions/index.d.ts +0 -1
  122. package/build/backend/commands/users/actions/index.d.ts.map +1 -1
  123. package/build/backend/commands/users/actions/index.js +0 -1
  124. package/build/backend/commands/users/actions/reset-user-traffic.command.d.ts +12 -38
  125. package/build/backend/commands/users/actions/reset-user-traffic.command.d.ts.map +1 -1
  126. package/build/backend/commands/users/actions/revoke-user-subscription.command.d.ts +12 -38
  127. package/build/backend/commands/users/actions/revoke-user-subscription.command.d.ts.map +1 -1
  128. package/build/backend/commands/users/bulk/{bulk-update-users-inbounds.command.d.ts → bulk-update-users-squads.command.d.ts} +7 -7
  129. package/build/backend/commands/users/bulk/bulk-update-users-squads.command.d.ts.map +1 -0
  130. package/build/backend/commands/users/bulk/bulk-update-users-squads.command.js +23 -0
  131. package/build/backend/commands/users/bulk/index.d.ts +1 -1
  132. package/build/backend/commands/users/bulk/index.d.ts.map +1 -1
  133. package/build/backend/commands/users/bulk/index.js +1 -1
  134. package/build/backend/commands/users/create-user.command.d.ts +15 -47
  135. package/build/backend/commands/users/create-user.command.d.ts.map +1 -1
  136. package/build/backend/commands/users/create-user.command.js +5 -16
  137. package/build/backend/commands/users/get-all-users.command.d.ts +16 -50
  138. package/build/backend/commands/users/get-all-users.command.d.ts.map +1 -1
  139. package/build/backend/commands/users/get-by/get-user-by-email.command.d.ts +12 -38
  140. package/build/backend/commands/users/get-by/get-user-by-email.command.d.ts.map +1 -1
  141. package/build/backend/commands/users/get-by/get-user-by-short-uuid.command.d.ts +12 -38
  142. package/build/backend/commands/users/get-by/get-user-by-short-uuid.command.d.ts.map +1 -1
  143. package/build/backend/commands/users/get-by/get-user-by-tag.command.d.ts +12 -38
  144. package/build/backend/commands/users/get-by/get-user-by-tag.command.d.ts.map +1 -1
  145. package/build/backend/commands/users/get-by/get-user-by-telegram-id.command.d.ts +12 -38
  146. package/build/backend/commands/users/get-by/get-user-by-telegram-id.command.d.ts.map +1 -1
  147. package/build/backend/commands/users/get-by/get-user-by-username.command.d.ts +12 -38
  148. package/build/backend/commands/users/get-by/get-user-by-username.command.d.ts.map +1 -1
  149. package/build/backend/commands/users/get-by/index.d.ts +0 -1
  150. package/build/backend/commands/users/get-by/index.d.ts.map +1 -1
  151. package/build/backend/commands/users/get-by/index.js +0 -1
  152. package/build/backend/commands/users/get-user-accessible-nodes.command.d.ts +114 -0
  153. package/build/backend/commands/users/get-user-accessible-nodes.command.d.ts.map +1 -0
  154. package/build/backend/commands/users/get-user-accessible-nodes.command.js +31 -0
  155. package/build/backend/commands/users/get-user-by-uuid.command.d.ts +12 -38
  156. package/build/backend/commands/users/get-user-by-uuid.command.d.ts.map +1 -1
  157. package/build/backend/commands/users/get-user-usage-by-range.command.d.ts +4 -4
  158. package/build/backend/commands/users/index.d.ts +1 -0
  159. package/build/backend/commands/users/index.d.ts.map +1 -1
  160. package/build/backend/commands/users/index.js +1 -0
  161. package/build/backend/commands/users/update-user.command.d.ts +19 -55
  162. package/build/backend/commands/users/update-user.command.d.ts.map +1 -1
  163. package/build/backend/commands/users/update-user.command.js +5 -5
  164. package/build/backend/constants/errors/errors.d.ts +115 -0
  165. package/build/backend/constants/errors/errors.d.ts.map +1 -1
  166. package/build/backend/constants/errors/errors.js +115 -0
  167. package/build/backend/models/base-internal-squad.schema.d.ts +12 -0
  168. package/build/backend/models/base-internal-squad.schema.d.ts.map +1 -0
  169. package/build/backend/models/base-internal-squad.schema.js +8 -0
  170. package/build/backend/models/{inbounds.schema.d.ts → config-profile-inbounds.schema.d.ts} +11 -2
  171. package/build/backend/models/config-profile-inbounds.schema.d.ts.map +1 -0
  172. package/build/{frontend/models/inbounds.schema.js → backend/models/config-profile-inbounds.schema.js} +5 -2
  173. package/build/backend/models/config-profile.schema.d.ts +92 -0
  174. package/build/backend/models/config-profile.schema.d.ts.map +1 -0
  175. package/build/backend/models/config-profile.schema.js +24 -0
  176. package/build/backend/models/extented-users.schema.d.ts +8 -26
  177. package/build/backend/models/extented-users.schema.d.ts.map +1 -1
  178. package/build/backend/models/hosts.schema.d.ts +6 -6
  179. package/build/backend/models/hosts.schema.d.ts.map +1 -1
  180. package/build/backend/models/hosts.schema.js +2 -2
  181. package/build/backend/models/index.d.ts +5 -2
  182. package/build/backend/models/index.d.ts.map +1 -1
  183. package/build/backend/models/index.js +5 -2
  184. package/build/backend/models/infra-provider.schema.d.ts +65 -0
  185. package/build/backend/models/infra-provider.schema.d.ts.map +1 -0
  186. package/build/backend/models/infra-provider.schema.js +27 -0
  187. package/build/backend/models/internal-squad.schema.d.ts +84 -0
  188. package/build/backend/models/internal-squad.schema.d.ts.map +1 -0
  189. package/build/backend/models/internal-squad.schema.js +22 -0
  190. package/build/backend/models/nodes.schema.d.ts +130 -12
  191. package/build/backend/models/nodes.schema.d.ts.map +1 -1
  192. package/build/backend/models/nodes.schema.js +6 -2
  193. package/build/backend/models/users.schema.d.ts +8 -26
  194. package/build/backend/models/users.schema.d.ts.map +1 -1
  195. package/build/backend/models/users.schema.js +2 -3
  196. package/build/frontend/api/controllers/config-profiles.js +13 -0
  197. package/build/frontend/api/controllers/index.js +3 -2
  198. package/build/frontend/api/controllers/infra-billing.js +22 -0
  199. package/build/frontend/api/controllers/internal-squads.js +11 -0
  200. package/build/frontend/api/controllers/users.js +2 -2
  201. package/build/frontend/api/routes.js +32 -16
  202. package/build/frontend/commands/config-profiles/create-config-profile.command.js +24 -0
  203. package/build/frontend/commands/config-profiles/delete-config-profile.command.js +20 -0
  204. package/build/frontend/commands/config-profiles/get-all-inbounds.command.js +19 -0
  205. package/build/frontend/commands/config-profiles/get-config-profile-by-uuid.command.js +19 -0
  206. package/build/frontend/commands/config-profiles/get-config-profiles.command.js +19 -0
  207. package/build/frontend/commands/config-profiles/get-inbounds-by-profile-uuid.command.js +22 -0
  208. package/build/frontend/commands/config-profiles/index.js +23 -0
  209. package/build/frontend/commands/config-profiles/update-config-profile.command.js +20 -0
  210. package/build/frontend/commands/hosts/bulk/set-inbound-to-many-hosts.command.js +2 -1
  211. package/build/frontend/commands/hosts/create.command.js +9 -2
  212. package/build/frontend/commands/hosts/update.command.js +7 -1
  213. package/build/frontend/commands/index.js +3 -2
  214. package/build/frontend/commands/infra-billing/create-infra-provider.command.js +24 -0
  215. package/build/frontend/commands/infra-billing/delete-infra-provider-by-uuid.command.js +20 -0
  216. package/build/frontend/commands/infra-billing/get-infra-provider-by-uuid.command.js +19 -0
  217. package/build/frontend/commands/infra-billing/get-infra-providers.command.js +19 -0
  218. package/build/frontend/commands/{inbounds/bulk → infra-billing}/index.js +5 -4
  219. package/build/frontend/commands/infra-billing/update-infra-provider.command.js +26 -0
  220. package/build/frontend/commands/internal-squads/create-internal-squad.command.js +24 -0
  221. package/build/frontend/commands/internal-squads/delete-internal-squad.command.js +20 -0
  222. package/build/frontend/commands/internal-squads/get-internal-squad-by-uuid..js +19 -0
  223. package/build/frontend/commands/internal-squads/get-internal-squads.command.js +19 -0
  224. package/build/{backend/commands/inbounds → frontend/commands/internal-squads}/index.js +5 -3
  225. package/build/frontend/commands/internal-squads/update-internal-squad.command.js +20 -0
  226. package/build/frontend/commands/nodes/create.command.js +5 -3
  227. package/build/frontend/commands/nodes/update.command.js +5 -3
  228. package/build/frontend/commands/users/actions/index.js +0 -1
  229. package/build/frontend/commands/users/bulk/bulk-update-users-squads.command.js +23 -0
  230. package/build/frontend/commands/users/bulk/index.js +1 -1
  231. package/build/frontend/commands/users/create-user.command.js +5 -16
  232. package/build/frontend/commands/users/get-by/index.js +0 -1
  233. package/build/frontend/commands/users/get-user-accessible-nodes.command.js +31 -0
  234. package/build/frontend/commands/users/index.js +1 -0
  235. package/build/frontend/commands/users/update-user.command.js +5 -5
  236. package/build/frontend/constants/errors/errors.js +115 -0
  237. package/build/frontend/models/base-internal-squad.schema.js +8 -0
  238. package/build/{backend/models/inbounds.schema.js → frontend/models/config-profile-inbounds.schema.js} +5 -2
  239. package/build/frontend/models/config-profile.schema.js +24 -0
  240. package/build/frontend/models/hosts.schema.js +2 -2
  241. package/build/frontend/models/index.js +5 -2
  242. package/build/frontend/models/infra-provider.schema.js +27 -0
  243. package/build/frontend/models/internal-squad.schema.js +22 -0
  244. package/build/frontend/models/nodes.schema.js +6 -2
  245. package/build/frontend/models/users.schema.js +2 -3
  246. package/package.json +1 -1
  247. package/build/backend/api/controllers/inbounds.d.ts +0 -12
  248. package/build/backend/api/controllers/inbounds.d.ts.map +0 -1
  249. package/build/backend/api/controllers/inbounds.js +0 -14
  250. package/build/backend/api/controllers/xray.d.ts +0 -6
  251. package/build/backend/api/controllers/xray.d.ts.map +0 -1
  252. package/build/backend/api/controllers/xray.js +0 -8
  253. package/build/backend/commands/inbounds/bulk/add-inbound-to-nodes.command.d.ts +0 -33
  254. package/build/backend/commands/inbounds/bulk/add-inbound-to-nodes.command.d.ts.map +0 -1
  255. package/build/backend/commands/inbounds/bulk/add-inbound-to-nodes.command.js +0 -24
  256. package/build/backend/commands/inbounds/bulk/add-inbound-to-users.command.d.ts +0 -33
  257. package/build/backend/commands/inbounds/bulk/add-inbound-to-users.command.d.ts.map +0 -1
  258. package/build/backend/commands/inbounds/bulk/add-inbound-to-users.command.js +0 -24
  259. package/build/backend/commands/inbounds/bulk/index.d.ts +0 -5
  260. package/build/backend/commands/inbounds/bulk/index.d.ts.map +0 -1
  261. package/build/backend/commands/inbounds/bulk/remove-inbound-from-nodes.command.d.ts +0 -33
  262. package/build/backend/commands/inbounds/bulk/remove-inbound-from-nodes.command.d.ts.map +0 -1
  263. package/build/backend/commands/inbounds/bulk/remove-inbound-from-nodes.command.js +0 -24
  264. package/build/backend/commands/inbounds/bulk/remove-inbound-from-users.command.d.ts +0 -33
  265. package/build/backend/commands/inbounds/bulk/remove-inbound-from-users.command.d.ts.map +0 -1
  266. package/build/backend/commands/inbounds/bulk/remove-inbound-from-users.command.js +0 -24
  267. package/build/backend/commands/inbounds/get-full-inbounds.command.d.ts +0 -115
  268. package/build/backend/commands/inbounds/get-full-inbounds.command.d.ts.map +0 -1
  269. package/build/backend/commands/inbounds/get-full-inbounds.command.js +0 -16
  270. package/build/backend/commands/inbounds/get-inbounds.command.d.ts +0 -50
  271. package/build/backend/commands/inbounds/get-inbounds.command.d.ts.map +0 -1
  272. package/build/backend/commands/inbounds/get-inbounds.command.js +0 -22
  273. package/build/backend/commands/inbounds/index.d.ts +0 -4
  274. package/build/backend/commands/inbounds/index.d.ts.map +0 -1
  275. package/build/backend/commands/users/actions/activate-all-inbounds.command.d.ts +0 -271
  276. package/build/backend/commands/users/actions/activate-all-inbounds.command.d.ts.map +0 -1
  277. package/build/backend/commands/users/actions/activate-all-inbounds.command.js +0 -19
  278. package/build/backend/commands/users/bulk/bulk-update-users-inbounds.command.d.ts.map +0 -1
  279. package/build/backend/commands/users/bulk/bulk-update-users-inbounds.command.js +0 -23
  280. package/build/backend/commands/users/get-by/get-user-by-subscription-uuid.command.d.ts +0 -271
  281. package/build/backend/commands/users/get-by/get-user-by-subscription-uuid.command.d.ts.map +0 -1
  282. package/build/backend/commands/users/get-by/get-user-by-subscription-uuid.command.js +0 -19
  283. package/build/backend/commands/xray/get-config.command.d.ts +0 -25
  284. package/build/backend/commands/xray/get-config.command.d.ts.map +0 -1
  285. package/build/backend/commands/xray/get-config.command.js +0 -17
  286. package/build/backend/commands/xray/index.d.ts +0 -3
  287. package/build/backend/commands/xray/index.d.ts.map +0 -1
  288. package/build/backend/commands/xray/update-config.command.d.ts +0 -27
  289. package/build/backend/commands/xray/update-config.command.d.ts.map +0 -1
  290. package/build/backend/commands/xray/update-config.command.js +0 -18
  291. package/build/backend/models/full-inbounds.schema.d.ts +0 -67
  292. package/build/backend/models/full-inbounds.schema.d.ts.map +0 -1
  293. package/build/backend/models/full-inbounds.schema.js +0 -21
  294. package/build/backend/models/inbounds.schema.d.ts.map +0 -1
  295. package/build/frontend/api/controllers/inbounds.js +0 -14
  296. package/build/frontend/api/controllers/xray.js +0 -8
  297. package/build/frontend/commands/inbounds/bulk/add-inbound-to-nodes.command.js +0 -24
  298. package/build/frontend/commands/inbounds/bulk/add-inbound-to-users.command.js +0 -24
  299. package/build/frontend/commands/inbounds/bulk/remove-inbound-from-nodes.command.js +0 -24
  300. package/build/frontend/commands/inbounds/bulk/remove-inbound-from-users.command.js +0 -24
  301. package/build/frontend/commands/inbounds/get-full-inbounds.command.js +0 -16
  302. package/build/frontend/commands/inbounds/get-inbounds.command.js +0 -22
  303. package/build/frontend/commands/inbounds/index.js +0 -19
  304. package/build/frontend/commands/users/actions/activate-all-inbounds.command.js +0 -19
  305. package/build/frontend/commands/users/bulk/bulk-update-users-inbounds.command.js +0 -23
  306. package/build/frontend/commands/users/get-by/get-user-by-subscription-uuid.command.js +0 -19
  307. package/build/frontend/commands/xray/get-config.command.js +0 -17
  308. package/build/frontend/commands/xray/index.js +0 -18
  309. package/build/frontend/commands/xray/update-config.command.js +0 -18
  310. package/build/frontend/models/full-inbounds.schema.js +0 -21
@@ -11,31 +11,37 @@ export declare namespace CreateNodeCommand {
11
11
  trafficLimitBytes: z.ZodOptional<z.ZodNumber>;
12
12
  notifyPercent: z.ZodOptional<z.ZodNumber>;
13
13
  trafficResetDay: z.ZodOptional<z.ZodNumber>;
14
- excludedInbounds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
15
14
  countryCode: z.ZodDefault<z.ZodString>;
16
15
  consumptionMultiplier: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
16
+ activeConfigProfileUuid: z.ZodOptional<z.ZodString>;
17
+ activeInbounds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
18
+ providerUuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
17
19
  }, "strip", z.ZodTypeAny, {
18
- address: string;
19
20
  name: string;
20
- isTrafficTrackingActive: boolean;
21
21
  countryCode: string;
22
- trafficLimitBytes?: number | undefined;
22
+ address: string;
23
+ isTrafficTrackingActive: boolean;
23
24
  port?: number | undefined;
25
+ trafficLimitBytes?: number | undefined;
24
26
  trafficResetDay?: number | undefined;
25
27
  notifyPercent?: number | undefined;
26
28
  consumptionMultiplier?: number | undefined;
27
- excludedInbounds?: string[] | undefined;
29
+ activeConfigProfileUuid?: string | undefined;
30
+ activeInbounds?: string[] | undefined;
31
+ providerUuid?: string | null | undefined;
28
32
  }, {
29
- address: string;
30
33
  name: string;
31
- trafficLimitBytes?: number | undefined;
34
+ address: string;
32
35
  port?: number | undefined;
36
+ countryCode?: string | undefined;
37
+ trafficLimitBytes?: number | undefined;
33
38
  isTrafficTrackingActive?: boolean | undefined;
34
39
  trafficResetDay?: number | undefined;
35
40
  notifyPercent?: number | undefined;
36
- countryCode?: string | undefined;
37
41
  consumptionMultiplier?: number | undefined;
38
- excludedInbounds?: string[] | undefined;
42
+ activeConfigProfileUuid?: string | undefined;
43
+ activeInbounds?: string[] | undefined;
44
+ providerUuid?: string | null | undefined;
39
45
  }>;
40
46
  type Request = z.infer<typeof RequestSchema>;
41
47
  const ResponseSchema: z.ZodObject<{
@@ -67,35 +73,110 @@ export declare namespace CreateNodeCommand {
67
73
  totalRam: z.ZodNullable<z.ZodString>;
68
74
  createdAt: z.ZodEffects<z.ZodString, Date, string>;
69
75
  updatedAt: z.ZodEffects<z.ZodString, Date, string>;
70
- excludedInbounds: z.ZodArray<z.ZodObject<{
76
+ activeConfigProfileUuid: z.ZodNullable<z.ZodString>;
77
+ activeInbounds: z.ZodNullable<z.ZodArray<z.ZodObject<{
71
78
  uuid: z.ZodString;
79
+ profileUuid: z.ZodString;
72
80
  tag: z.ZodString;
73
81
  type: z.ZodString;
74
82
  network: z.ZodNullable<z.ZodString>;
75
83
  security: z.ZodNullable<z.ZodString>;
84
+ port: z.ZodNullable<z.ZodNumber>;
85
+ rawInbound: z.ZodNullable<z.ZodUnknown>;
76
86
  }, "strip", z.ZodTypeAny, {
77
87
  type: string;
78
88
  uuid: string;
89
+ profileUuid: string;
79
90
  tag: string;
80
91
  network: string | null;
81
92
  security: string | null;
93
+ port: number | null;
94
+ rawInbound?: unknown;
82
95
  }, {
83
96
  type: string;
84
97
  uuid: string;
98
+ profileUuid: string;
85
99
  tag: string;
86
100
  network: string | null;
87
101
  security: string | null;
88
- }>, "many">;
102
+ port: number | null;
103
+ rawInbound?: unknown;
104
+ }>, "many">>;
105
+ providerUuid: z.ZodNullable<z.ZodString>;
106
+ provider: z.ZodNullable<z.ZodObject<{
107
+ uuid: z.ZodString;
108
+ name: z.ZodString;
109
+ faviconLink: z.ZodNullable<z.ZodString>;
110
+ loginUrl: z.ZodNullable<z.ZodString>;
111
+ createdAt: z.ZodEffects<z.ZodString, Date, string>;
112
+ updatedAt: z.ZodEffects<z.ZodString, Date, string>;
113
+ billingHistory: z.ZodObject<{
114
+ totalAmount: z.ZodNumber;
115
+ totalBills: z.ZodNumber;
116
+ }, "strip", z.ZodTypeAny, {
117
+ totalAmount: number;
118
+ totalBills: number;
119
+ }, {
120
+ totalAmount: number;
121
+ totalBills: number;
122
+ }>;
123
+ billingNodes: z.ZodArray<z.ZodObject<{
124
+ nodeUuid: z.ZodString;
125
+ name: z.ZodString;
126
+ countryCode: z.ZodString;
127
+ }, "strip", z.ZodTypeAny, {
128
+ name: string;
129
+ countryCode: string;
130
+ nodeUuid: string;
131
+ }, {
132
+ name: string;
133
+ countryCode: string;
134
+ nodeUuid: string;
135
+ }>, "many">;
136
+ }, "strip", z.ZodTypeAny, {
137
+ uuid: string;
138
+ createdAt: Date;
139
+ updatedAt: Date;
140
+ name: string;
141
+ faviconLink: string | null;
142
+ loginUrl: string | null;
143
+ billingHistory: {
144
+ totalAmount: number;
145
+ totalBills: number;
146
+ };
147
+ billingNodes: {
148
+ name: string;
149
+ countryCode: string;
150
+ nodeUuid: string;
151
+ }[];
152
+ }, {
153
+ uuid: string;
154
+ createdAt: string;
155
+ updatedAt: string;
156
+ name: string;
157
+ faviconLink: string | null;
158
+ loginUrl: string | null;
159
+ billingHistory: {
160
+ totalAmount: number;
161
+ totalBills: number;
162
+ };
163
+ billingNodes: {
164
+ name: string;
165
+ countryCode: string;
166
+ nodeUuid: string;
167
+ }[];
168
+ }>>;
89
169
  }, "strip", z.ZodTypeAny, {
90
170
  uuid: string;
91
171
  createdAt: Date;
92
172
  updatedAt: Date;
93
- trafficLimitBytes: number | null;
173
+ name: string;
94
174
  port: number | null;
175
+ countryCode: string;
176
+ trafficLimitBytes: number | null;
95
177
  viewPosition: number;
96
178
  address: string;
97
179
  isDisabled: boolean;
98
- name: string;
99
180
  isConnected: boolean;
100
181
  isConnecting: boolean;
101
182
  isNodeOnline: boolean;
@@ -109,28 +190,50 @@ export declare namespace CreateNodeCommand {
109
190
  trafficUsedBytes: number | null;
110
191
  notifyPercent: number | null;
111
192
  usersOnline: number | null;
112
- countryCode: string;
113
193
  consumptionMultiplier: number;
114
194
  cpuCount: number | null;
115
195
  cpuModel: string | null;
116
196
  totalRam: string | null;
117
- excludedInbounds: {
197
+ activeConfigProfileUuid: string | null;
198
+ activeInbounds: {
118
199
  type: string;
119
200
  uuid: string;
201
+ profileUuid: string;
120
202
  tag: string;
121
203
  network: string | null;
122
204
  security: string | null;
123
- }[];
205
+ port: number | null;
206
+ rawInbound?: unknown;
207
+ }[] | null;
208
+ providerUuid: string | null;
209
+ provider: {
210
+ uuid: string;
211
+ createdAt: Date;
212
+ updatedAt: Date;
213
+ name: string;
214
+ faviconLink: string | null;
215
+ loginUrl: string | null;
216
+ billingHistory: {
217
+ totalAmount: number;
218
+ totalBills: number;
219
+ };
220
+ billingNodes: {
221
+ name: string;
222
+ countryCode: string;
223
+ nodeUuid: string;
224
+ }[];
225
+ } | null;
124
226
  }, {
125
227
  uuid: string;
126
228
  createdAt: string;
127
229
  updatedAt: string;
128
- trafficLimitBytes: number | null;
230
+ name: string;
129
231
  port: number | null;
232
+ countryCode: string;
233
+ trafficLimitBytes: number | null;
130
234
  viewPosition: number;
131
235
  address: string;
132
236
  isDisabled: boolean;
133
- name: string;
134
237
  isConnected: boolean;
135
238
  isConnecting: boolean;
136
239
  isNodeOnline: boolean;
@@ -144,30 +247,52 @@ export declare namespace CreateNodeCommand {
144
247
  trafficUsedBytes: number | null;
145
248
  notifyPercent: number | null;
146
249
  usersOnline: number | null;
147
- countryCode: string;
148
250
  consumptionMultiplier: number;
149
251
  cpuCount: number | null;
150
252
  cpuModel: string | null;
151
253
  totalRam: string | null;
152
- excludedInbounds: {
254
+ activeConfigProfileUuid: string | null;
255
+ activeInbounds: {
153
256
  type: string;
154
257
  uuid: string;
258
+ profileUuid: string;
155
259
  tag: string;
156
260
  network: string | null;
157
261
  security: string | null;
158
- }[];
262
+ port: number | null;
263
+ rawInbound?: unknown;
264
+ }[] | null;
265
+ providerUuid: string | null;
266
+ provider: {
267
+ uuid: string;
268
+ createdAt: string;
269
+ updatedAt: string;
270
+ name: string;
271
+ faviconLink: string | null;
272
+ loginUrl: string | null;
273
+ billingHistory: {
274
+ totalAmount: number;
275
+ totalBills: number;
276
+ };
277
+ billingNodes: {
278
+ name: string;
279
+ countryCode: string;
280
+ nodeUuid: string;
281
+ }[];
282
+ } | null;
159
283
  }>;
160
284
  }, "strip", z.ZodTypeAny, {
161
285
  response: {
162
286
  uuid: string;
163
287
  createdAt: Date;
164
288
  updatedAt: Date;
165
- trafficLimitBytes: number | null;
289
+ name: string;
166
290
  port: number | null;
291
+ countryCode: string;
292
+ trafficLimitBytes: number | null;
167
293
  viewPosition: number;
168
294
  address: string;
169
295
  isDisabled: boolean;
170
- name: string;
171
296
  isConnected: boolean;
172
297
  isConnecting: boolean;
173
298
  isNodeOnline: boolean;
@@ -181,30 +306,52 @@ export declare namespace CreateNodeCommand {
181
306
  trafficUsedBytes: number | null;
182
307
  notifyPercent: number | null;
183
308
  usersOnline: number | null;
184
- countryCode: string;
185
309
  consumptionMultiplier: number;
186
310
  cpuCount: number | null;
187
311
  cpuModel: string | null;
188
312
  totalRam: string | null;
189
- excludedInbounds: {
313
+ activeConfigProfileUuid: string | null;
314
+ activeInbounds: {
190
315
  type: string;
191
316
  uuid: string;
317
+ profileUuid: string;
192
318
  tag: string;
193
319
  network: string | null;
194
320
  security: string | null;
195
- }[];
321
+ port: number | null;
322
+ rawInbound?: unknown;
323
+ }[] | null;
324
+ providerUuid: string | null;
325
+ provider: {
326
+ uuid: string;
327
+ createdAt: Date;
328
+ updatedAt: Date;
329
+ name: string;
330
+ faviconLink: string | null;
331
+ loginUrl: string | null;
332
+ billingHistory: {
333
+ totalAmount: number;
334
+ totalBills: number;
335
+ };
336
+ billingNodes: {
337
+ name: string;
338
+ countryCode: string;
339
+ nodeUuid: string;
340
+ }[];
341
+ } | null;
196
342
  };
197
343
  }, {
198
344
  response: {
199
345
  uuid: string;
200
346
  createdAt: string;
201
347
  updatedAt: string;
202
- trafficLimitBytes: number | null;
348
+ name: string;
203
349
  port: number | null;
350
+ countryCode: string;
351
+ trafficLimitBytes: number | null;
204
352
  viewPosition: number;
205
353
  address: string;
206
354
  isDisabled: boolean;
207
- name: string;
208
355
  isConnected: boolean;
209
356
  isConnecting: boolean;
210
357
  isNodeOnline: boolean;
@@ -218,18 +365,39 @@ export declare namespace CreateNodeCommand {
218
365
  trafficUsedBytes: number | null;
219
366
  notifyPercent: number | null;
220
367
  usersOnline: number | null;
221
- countryCode: string;
222
368
  consumptionMultiplier: number;
223
369
  cpuCount: number | null;
224
370
  cpuModel: string | null;
225
371
  totalRam: string | null;
226
- excludedInbounds: {
372
+ activeConfigProfileUuid: string | null;
373
+ activeInbounds: {
227
374
  type: string;
228
375
  uuid: string;
376
+ profileUuid: string;
229
377
  tag: string;
230
378
  network: string | null;
231
379
  security: string | null;
232
- }[];
380
+ port: number | null;
381
+ rawInbound?: unknown;
382
+ }[] | null;
383
+ providerUuid: string | null;
384
+ provider: {
385
+ uuid: string;
386
+ createdAt: string;
387
+ updatedAt: string;
388
+ name: string;
389
+ faviconLink: string | null;
390
+ loginUrl: string | null;
391
+ billingHistory: {
392
+ totalAmount: number;
393
+ totalBills: number;
394
+ };
395
+ billingNodes: {
396
+ name: string;
397
+ countryCode: string;
398
+ nodeUuid: string;
399
+ }[];
400
+ } | null;
233
401
  };
234
402
  }>;
235
403
  type Response = z.infer<typeof ResponseSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"create.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/create.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,eAAwB,CAAC;IAClC,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAsCxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"create.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/create.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,eAAwB,CAAC;IAClC,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAwCxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -26,9 +26,6 @@ var CreateNodeCommand;
26
26
  .int()
27
27
  .min(1, 'Traffic reset day must be greater than 0')
28
28
  .max(31, 'Traffic reset day must be less than 31')),
29
- excludedInbounds: zod_1.z.optional(zod_1.z.array(zod_1.z.string().uuid(), {
30
- invalid_type_error: 'Excluded inbounds must be an array of UUIDs',
31
- })),
32
29
  countryCode: zod_1.z
33
30
  .string()
34
31
  .max(2, 'Country code must be 2 characters')
@@ -38,6 +35,11 @@ var CreateNodeCommand;
38
35
  .number()
39
36
  .min(0.1, 'Consumption multiplier must be greater than 0')
40
37
  .transform((n) => Number(n.toFixed(1)))),
38
+ activeConfigProfileUuid: zod_1.z.optional(zod_1.z.string().uuid()),
39
+ activeInbounds: zod_1.z.optional(zod_1.z.array(zod_1.z.string().uuid(), {
40
+ invalid_type_error: 'Active inbounds must be an array of UUIDs',
41
+ })),
42
+ providerUuid: zod_1.z.optional(zod_1.z.nullable(zod_1.z.string().uuid())),
41
43
  });
42
44
  CreateNodeCommand.ResponseSchema = zod_1.z.object({
43
45
  response: models_1.NodesSchema,