@remnawave/backend-contract 0.0.56 → 0.0.60

Sign up to get free protection for your applications and to get access to all the features.
Files changed (446) hide show
  1. package/build/backend/api/controllers/api-tokens.d.ts +7 -0
  2. package/build/backend/api/controllers/api-tokens.d.ts.map +1 -0
  3. package/build/backend/api/controllers/auth.d.ts +5 -0
  4. package/build/backend/api/controllers/auth.d.ts.map +1 -0
  5. package/build/backend/api/controllers/hosts.d.ts +10 -0
  6. package/build/backend/api/controllers/hosts.d.ts.map +1 -0
  7. package/build/backend/api/controllers/inbounds.d.ts +5 -0
  8. package/build/backend/api/controllers/inbounds.d.ts.map +1 -0
  9. package/{api/controllers/index.ts → build/backend/api/controllers/index.d.ts} +1 -0
  10. package/build/backend/api/controllers/index.d.ts.map +1 -0
  11. package/build/backend/api/controllers/keygen.d.ts +5 -0
  12. package/build/backend/api/controllers/keygen.d.ts.map +1 -0
  13. package/build/backend/api/controllers/nodes.d.ts +13 -0
  14. package/build/backend/api/controllers/nodes.d.ts.map +1 -0
  15. package/build/backend/api/controllers/subscription.d.ts +6 -0
  16. package/build/backend/api/controllers/subscription.d.ts.map +1 -0
  17. package/build/backend/api/controllers/system.d.ts +9 -0
  18. package/build/backend/api/controllers/system.d.ts.map +1 -0
  19. package/build/backend/api/controllers/users.d.ts +15 -0
  20. package/build/backend/api/controllers/users.d.ts.map +1 -0
  21. package/build/backend/api/controllers/xray.d.ts +6 -0
  22. package/build/backend/api/controllers/xray.d.ts.map +1 -0
  23. package/{api/index.ts → build/backend/api/index.d.ts} +1 -0
  24. package/build/backend/api/index.d.ts.map +1 -0
  25. package/build/backend/api/routes.d.ts +63 -0
  26. package/build/backend/api/routes.d.ts.map +1 -0
  27. package/build/backend/commands/api-tokens/create.command.d.ts +40 -0
  28. package/build/backend/commands/api-tokens/create.command.d.ts.map +1 -0
  29. package/build/backend/commands/api-tokens/delete.command.d.ts +22 -0
  30. package/build/backend/commands/api-tokens/delete.command.d.ts.map +1 -0
  31. package/build/backend/commands/api-tokens/find.command.d.ts +49 -0
  32. package/build/backend/commands/api-tokens/find.command.d.ts.map +1 -0
  33. package/{commands/api-tokens/index.ts → build/backend/commands/api-tokens/index.d.ts} +1 -0
  34. package/build/backend/commands/api-tokens/index.d.ts.map +1 -0
  35. package/build/backend/commands/auth/index.d.ts +2 -0
  36. package/build/backend/commands/auth/index.d.ts.map +1 -0
  37. package/build/backend/commands/auth/login.command.d.ts +35 -0
  38. package/build/backend/commands/auth/login.command.d.ts.map +1 -0
  39. package/build/backend/commands/hosts/create.command.d.ts +122 -0
  40. package/build/backend/commands/hosts/create.command.d.ts.map +1 -0
  41. package/build/backend/commands/hosts/delete.command.d.ts +32 -0
  42. package/build/backend/commands/hosts/delete.command.d.ts.map +1 -0
  43. package/build/backend/commands/hosts/get-all.command.d.ts +84 -0
  44. package/build/backend/commands/hosts/get-all.command.d.ts.map +1 -0
  45. package/{commands/hosts/index.ts → build/backend/commands/hosts/index.d.ts} +1 -0
  46. package/build/backend/commands/hosts/index.d.ts.map +1 -0
  47. package/build/backend/commands/hosts/reorder.command.d.ts +58 -0
  48. package/build/backend/commands/hosts/reorder.command.d.ts.map +1 -0
  49. package/build/backend/commands/hosts/update.command.d.ts +138 -0
  50. package/build/backend/commands/hosts/update.command.d.ts.map +1 -0
  51. package/build/backend/commands/inbounds/get-inbounds.command.d.ts +34 -0
  52. package/build/backend/commands/inbounds/get-inbounds.command.d.ts.map +1 -0
  53. package/{commands/inbounds/index.ts → build/backend/commands/inbounds/index.d.ts} +1 -0
  54. package/build/backend/commands/inbounds/index.d.ts.map +1 -0
  55. package/{commands/index.ts → build/backend/commands/index.d.ts} +1 -0
  56. package/build/backend/commands/index.d.ts.map +1 -0
  57. package/build/backend/commands/keygen/get-pubkey.command.d.ts +24 -0
  58. package/build/backend/commands/keygen/get-pubkey.command.d.ts.map +1 -0
  59. package/{commands/keygen/index.ts → build/backend/commands/keygen/index.d.ts} +1 -0
  60. package/build/backend/commands/keygen/index.d.ts.map +1 -0
  61. package/build/backend/commands/nodes/create.command.d.ts +155 -0
  62. package/build/backend/commands/nodes/create.command.d.ts.map +1 -0
  63. package/build/backend/commands/nodes/delete.command.d.ts +32 -0
  64. package/build/backend/commands/nodes/delete.command.d.ts.map +1 -0
  65. package/build/backend/commands/nodes/disable.command.d.ts +137 -0
  66. package/build/backend/commands/nodes/disable.command.d.ts.map +1 -0
  67. package/build/backend/commands/nodes/enable.command.d.ts +137 -0
  68. package/build/backend/commands/nodes/enable.command.d.ts.map +1 -0
  69. package/build/backend/commands/nodes/get-all.command.d.ts +129 -0
  70. package/build/backend/commands/nodes/get-all.command.d.ts.map +1 -0
  71. package/build/backend/commands/nodes/get-one.command.d.ts +137 -0
  72. package/build/backend/commands/nodes/get-one.command.d.ts.map +1 -0
  73. package/{commands/nodes/index.ts → build/backend/commands/nodes/index.d.ts} +1 -0
  74. package/build/backend/commands/nodes/index.d.ts.map +1 -0
  75. package/build/backend/commands/nodes/restart-all.command.d.ts +24 -0
  76. package/build/backend/commands/nodes/restart-all.command.d.ts.map +1 -0
  77. package/build/backend/commands/nodes/restart.command.d.ts +32 -0
  78. package/build/backend/commands/nodes/restart.command.d.ts.map +1 -0
  79. package/build/backend/commands/nodes/update.command.d.ts +180 -0
  80. package/build/backend/commands/nodes/update.command.d.ts.map +1 -0
  81. package/build/backend/commands/subscription/get-subscription-by-short-uuid.command.d.ts +14 -0
  82. package/build/backend/commands/subscription/get-subscription-by-short-uuid.command.d.ts.map +1 -0
  83. package/build/backend/commands/subscription/get-subscription-info-by-short-uuid.command.d.ts +100 -0
  84. package/build/backend/commands/subscription/get-subscription-info-by-short-uuid.command.d.ts.map +1 -0
  85. package/{commands/subscription/index.ts → build/backend/commands/subscription/index.d.ts} +1 -0
  86. package/build/backend/commands/subscription/index.d.ts.map +1 -0
  87. package/build/backend/commands/system/get-bandwidth-stats.command.d.ts +192 -0
  88. package/build/backend/commands/system/get-bandwidth-stats.command.d.ts.map +1 -0
  89. package/build/backend/commands/system/get-nodes-statistics.d.ts +60 -0
  90. package/build/backend/commands/system/get-nodes-statistics.d.ts.map +1 -0
  91. package/build/backend/commands/system/get-stats.command.d.ts +150 -0
  92. package/build/backend/commands/system/get-stats.command.d.ts.map +1 -0
  93. package/{commands/system/index.ts → build/backend/commands/system/index.d.ts} +1 -0
  94. package/build/backend/commands/system/index.d.ts.map +1 -0
  95. package/build/backend/commands/users/create-user.command.d.ts +191 -0
  96. package/build/backend/commands/users/create-user.command.d.ts.map +1 -0
  97. package/build/{commands → backend/commands}/users/create-user.command.js +9 -0
  98. package/build/backend/commands/users/delete-user.command.d.ts +32 -0
  99. package/build/backend/commands/users/delete-user.command.d.ts.map +1 -0
  100. package/build/backend/commands/users/disable-user.command.ts.d.ts +155 -0
  101. package/build/backend/commands/users/disable-user.command.ts.d.ts.map +1 -0
  102. package/build/backend/commands/users/enable-user.command.d.ts +155 -0
  103. package/build/backend/commands/users/enable-user.command.d.ts.map +1 -0
  104. package/build/backend/commands/users/get-all-users-v2.command.d.ts +273 -0
  105. package/build/backend/commands/users/get-all-users-v2.command.d.ts.map +1 -0
  106. package/build/backend/commands/users/get-all-users.command.d.ts +247 -0
  107. package/build/backend/commands/users/get-all-users.command.d.ts.map +1 -0
  108. package/build/backend/commands/users/get-user-by-short-uuid.command.d.ts +155 -0
  109. package/build/backend/commands/users/get-user-by-short-uuid.command.d.ts.map +1 -0
  110. package/build/backend/commands/users/get-user-by-subscription-uuid.command.d.ts +155 -0
  111. package/build/backend/commands/users/get-user-by-subscription-uuid.command.d.ts.map +1 -0
  112. package/build/backend/commands/users/get-user-by-uuid.command.d.ts +155 -0
  113. package/build/backend/commands/users/get-user-by-uuid.command.d.ts.map +1 -0
  114. package/{commands/users/index.ts → build/backend/commands/users/index.d.ts} +1 -0
  115. package/build/backend/commands/users/index.d.ts.map +1 -0
  116. package/build/backend/commands/users/revoke-user-subscription.command.d.ts +155 -0
  117. package/build/backend/commands/users/revoke-user-subscription.command.d.ts.map +1 -0
  118. package/build/backend/commands/users/update-user.command.d.ts +202 -0
  119. package/build/backend/commands/users/update-user.command.d.ts.map +1 -0
  120. package/build/backend/commands/xray/get-config.command.d.ts +24 -0
  121. package/build/backend/commands/xray/get-config.command.d.ts.map +1 -0
  122. package/{commands/xray/index.ts → build/backend/commands/xray/index.d.ts} +1 -0
  123. package/build/backend/commands/xray/index.d.ts.map +1 -0
  124. package/build/backend/commands/xray/update-config.command.d.ts +26 -0
  125. package/build/backend/commands/xray/update-config.command.d.ts.map +1 -0
  126. package/build/backend/constants/errors/errors.d.ts +293 -0
  127. package/build/backend/constants/errors/errors.d.ts.map +1 -0
  128. package/build/backend/constants/errors/index.d.ts +2 -0
  129. package/build/backend/constants/errors/index.d.ts.map +1 -0
  130. package/build/backend/constants/events/events.d.ts +25 -0
  131. package/build/backend/constants/events/events.d.ts.map +1 -0
  132. package/build/backend/constants/events/index.d.ts +2 -0
  133. package/build/backend/constants/events/index.d.ts.map +1 -0
  134. package/build/backend/constants/hosts/alpn.d.ts +8 -0
  135. package/build/backend/constants/hosts/alpn.d.ts.map +1 -0
  136. package/build/backend/constants/hosts/fingerprints.d.ts +14 -0
  137. package/build/backend/constants/hosts/fingerprints.d.ts.map +1 -0
  138. package/{constants/hosts/index.ts → build/backend/constants/hosts/index.d.ts} +1 -0
  139. package/build/backend/constants/hosts/index.d.ts.map +1 -0
  140. package/{constants/index.ts → build/backend/constants/index.d.ts} +1 -0
  141. package/build/backend/constants/index.d.ts.map +1 -0
  142. package/build/backend/constants/nodes/cycle/cycle.d.ts +7 -0
  143. package/build/backend/constants/nodes/cycle/cycle.d.ts.map +1 -0
  144. package/build/backend/constants/nodes/cycle/index.d.ts +2 -0
  145. package/build/backend/constants/nodes/cycle/index.d.ts.map +1 -0
  146. package/{constants/nodes/index.ts → build/backend/constants/nodes/index.d.ts} +1 -0
  147. package/build/backend/constants/nodes/index.d.ts.map +1 -0
  148. package/{constants/nodes/status/index.ts → build/backend/constants/nodes/status/index.d.ts} +1 -0
  149. package/build/backend/constants/nodes/status/index.d.ts.map +1 -0
  150. package/build/backend/constants/nodes/status/status.constant.d.ts +8 -0
  151. package/build/backend/constants/nodes/status/status.constant.d.ts.map +1 -0
  152. package/build/backend/constants/roles/index.d.ts +2 -0
  153. package/build/backend/constants/roles/index.d.ts.map +1 -0
  154. package/build/backend/constants/roles/role.d.ts +7 -0
  155. package/build/backend/constants/roles/role.d.ts.map +1 -0
  156. package/{constants/templates/index.ts → build/backend/constants/templates/index.d.ts} +1 -0
  157. package/build/backend/constants/templates/index.d.ts.map +1 -0
  158. package/build/backend/constants/templates/template-keys.d.ts +3 -0
  159. package/build/backend/constants/templates/template-keys.d.ts.map +1 -0
  160. package/build/backend/constants/templates/user-statuses.d.ts +7 -0
  161. package/build/backend/constants/templates/user-statuses.d.ts.map +1 -0
  162. package/{constants/users/index.ts → build/backend/constants/users/index.d.ts} +1 -0
  163. package/build/backend/constants/users/index.d.ts.map +1 -0
  164. package/{constants/users/reset-periods/index.ts → build/backend/constants/users/reset-periods/index.d.ts} +1 -0
  165. package/build/backend/constants/users/reset-periods/index.d.ts.map +1 -0
  166. package/build/backend/constants/users/reset-periods/reset-periods.constant.d.ts +10 -0
  167. package/build/backend/constants/users/reset-periods/reset-periods.constant.d.ts.map +1 -0
  168. package/{constants/users/status/index.ts → build/backend/constants/users/status/index.d.ts} +1 -0
  169. package/build/backend/constants/users/status/index.d.ts.map +1 -0
  170. package/build/backend/constants/users/status/status.constant.d.ts +9 -0
  171. package/build/backend/constants/users/status/status.constant.d.ts.map +1 -0
  172. package/{index.ts → build/backend/index.d.ts} +1 -0
  173. package/build/backend/index.d.ts.map +1 -0
  174. package/build/backend/models/api-tokens.schema.d.ts +24 -0
  175. package/build/backend/models/api-tokens.schema.d.ts.map +1 -0
  176. package/build/backend/models/auth.schema.d.ts +9 -0
  177. package/build/backend/models/auth.schema.d.ts.map +1 -0
  178. package/build/backend/models/base-stat.schema.d.ts +15 -0
  179. package/build/backend/models/base-stat.schema.d.ts.map +1 -0
  180. package/build/backend/models/hosts.schema.d.ts +45 -0
  181. package/build/backend/models/hosts.schema.d.ts.map +1 -0
  182. package/build/backend/models/inbounds.schema.d.ts +15 -0
  183. package/build/backend/models/inbounds.schema.d.ts.map +1 -0
  184. package/{models/index.ts → build/backend/models/index.d.ts} +1 -0
  185. package/build/backend/models/index.d.ts.map +1 -0
  186. package/build/backend/models/nodes.schema.d.ts +72 -0
  187. package/build/backend/models/nodes.schema.d.ts.map +1 -0
  188. package/build/backend/models/users.schema.d.ts +86 -0
  189. package/build/backend/models/users.schema.d.ts.map +1 -0
  190. package/build/frontend/api/controllers/api-tokens.js +9 -0
  191. package/build/frontend/api/controllers/auth.js +7 -0
  192. package/build/frontend/api/controllers/hosts.js +12 -0
  193. package/build/frontend/api/controllers/inbounds.js +7 -0
  194. package/build/frontend/api/controllers/index.js +26 -0
  195. package/build/frontend/api/controllers/keygen.js +7 -0
  196. package/{api/controllers/nodes.ts → build/frontend/api/controllers/nodes.js} +6 -5
  197. package/build/frontend/api/controllers/subscription.js +8 -0
  198. package/build/frontend/api/controllers/system.js +11 -0
  199. package/{api/controllers/users.ts → build/frontend/api/controllers/users.js} +6 -4
  200. package/build/frontend/api/controllers/xray.js +8 -0
  201. package/build/frontend/api/index.js +18 -0
  202. package/build/frontend/api/routes.js +99 -0
  203. package/build/frontend/commands/api-tokens/create.command.js +20 -0
  204. package/build/frontend/commands/api-tokens/delete.command.js +16 -0
  205. package/build/frontend/commands/api-tokens/find.command.js +14 -0
  206. package/build/frontend/commands/api-tokens/index.js +19 -0
  207. package/build/frontend/commands/auth/index.js +17 -0
  208. package/build/frontend/commands/auth/login.command.js +19 -0
  209. package/build/frontend/commands/hosts/create.command.js +45 -0
  210. package/build/frontend/commands/hosts/delete.command.js +18 -0
  211. package/build/frontend/commands/hosts/get-all.command.js +14 -0
  212. package/build/frontend/commands/hosts/index.js +21 -0
  213. package/build/frontend/commands/hosts/reorder.command.js +22 -0
  214. package/build/frontend/commands/hosts/update.command.js +52 -0
  215. package/build/frontend/commands/inbounds/get-inbounds.command.js +14 -0
  216. package/build/frontend/commands/inbounds/index.js +17 -0
  217. package/build/frontend/commands/index.js +26 -0
  218. package/build/frontend/commands/keygen/get-pubkey.command.js +15 -0
  219. package/build/frontend/commands/keygen/index.js +17 -0
  220. package/build/frontend/commands/nodes/create.command.js +31 -0
  221. package/build/frontend/commands/nodes/delete.command.js +18 -0
  222. package/build/frontend/commands/nodes/disable.command.js +17 -0
  223. package/build/frontend/commands/nodes/enable.command.js +17 -0
  224. package/build/frontend/commands/nodes/get-all.command.js +14 -0
  225. package/build/frontend/commands/nodes/get-one.command.js +17 -0
  226. package/build/frontend/commands/nodes/index.js +25 -0
  227. package/build/frontend/commands/nodes/restart-all.command.js +15 -0
  228. package/build/frontend/commands/nodes/restart.command.js +18 -0
  229. package/build/frontend/commands/nodes/update.command.js +31 -0
  230. package/build/frontend/commands/subscription/get-subscription-by-short-uuid.command.js +13 -0
  231. package/build/frontend/commands/subscription/get-subscription-info-by-short-uuid.command.js +29 -0
  232. package/build/frontend/commands/subscription/index.js +18 -0
  233. package/build/frontend/commands/system/get-bandwidth-stats.command.js +23 -0
  234. package/build/frontend/commands/system/get-nodes-statistics.js +22 -0
  235. package/build/frontend/commands/system/get-stats.command.js +37 -0
  236. package/build/frontend/commands/system/index.js +19 -0
  237. package/build/frontend/commands/users/create-user.command.js +111 -0
  238. package/build/frontend/commands/users/delete-user.command.js +18 -0
  239. package/build/frontend/commands/users/disable-user.command.ts.js +17 -0
  240. package/build/frontend/commands/users/enable-user.command.js +17 -0
  241. package/build/frontend/commands/users/get-all-users-v2.command.js +42 -0
  242. package/build/frontend/commands/users/get-all-users.command.js +49 -0
  243. package/build/frontend/commands/users/get-user-by-short-uuid.command.js +17 -0
  244. package/build/frontend/commands/users/get-user-by-subscription-uuid.command.js +17 -0
  245. package/build/frontend/commands/users/get-user-by-uuid.command.js +17 -0
  246. package/build/frontend/commands/users/index.js +27 -0
  247. package/build/frontend/commands/users/revoke-user-subscription.command.js +17 -0
  248. package/build/frontend/commands/users/update-user.command.js +57 -0
  249. package/build/frontend/commands/xray/get-config.command.js +15 -0
  250. package/build/frontend/commands/xray/index.js +18 -0
  251. package/build/frontend/commands/xray/update-config.command.js +16 -0
  252. package/{constants/errors/errors.ts → build/frontend/constants/errors/errors.js} +7 -5
  253. package/build/frontend/constants/errors/index.js +17 -0
  254. package/{constants/events/events.ts → build/frontend/constants/events/events.js} +4 -1
  255. package/build/frontend/constants/events/index.js +17 -0
  256. package/build/frontend/constants/hosts/alpn.js +9 -0
  257. package/build/frontend/constants/hosts/fingerprints.js +15 -0
  258. package/build/frontend/constants/hosts/index.js +18 -0
  259. package/build/frontend/constants/index.js +23 -0
  260. package/build/frontend/constants/nodes/cycle/cycle.js +8 -0
  261. package/build/frontend/constants/nodes/cycle/index.js +17 -0
  262. package/build/frontend/constants/nodes/index.js +18 -0
  263. package/build/frontend/constants/nodes/status/index.js +17 -0
  264. package/build/frontend/constants/nodes/status/status.constant.js +9 -0
  265. package/build/frontend/constants/roles/index.js +17 -0
  266. package/build/frontend/constants/roles/role.js +7 -0
  267. package/build/frontend/constants/templates/index.js +18 -0
  268. package/build/frontend/constants/templates/template-keys.js +10 -0
  269. package/build/frontend/constants/templates/user-statuses.js +9 -0
  270. package/build/frontend/constants/users/index.js +18 -0
  271. package/build/frontend/constants/users/reset-periods/index.js +17 -0
  272. package/build/frontend/constants/users/reset-periods/reset-periods.constant.js +11 -0
  273. package/build/frontend/constants/users/status/index.js +17 -0
  274. package/build/frontend/constants/users/status/status.constant.js +10 -0
  275. package/build/frontend/index.js +20 -0
  276. package/build/frontend/models/api-tokens.schema.js +12 -0
  277. package/build/frontend/models/auth.schema.js +7 -0
  278. package/build/frontend/models/base-stat.schema.js +9 -0
  279. package/build/frontend/models/hosts.schema.js +19 -0
  280. package/build/frontend/models/inbounds.schema.js +9 -0
  281. package/build/frontend/models/index.js +23 -0
  282. package/build/frontend/models/nodes.schema.js +28 -0
  283. package/build/frontend/models/users.schema.js +34 -0
  284. package/package.json +13 -5
  285. package/api/controllers/api-tokens.ts +0 -7
  286. package/api/controllers/auth.ts +0 -5
  287. package/api/controllers/hosts.ts +0 -10
  288. package/api/controllers/inbounds.ts +0 -5
  289. package/api/controllers/keygen.ts +0 -5
  290. package/api/controllers/subscription.ts +0 -6
  291. package/api/controllers/system.ts +0 -9
  292. package/api/controllers/xray.ts +0 -6
  293. package/api/routes.ts +0 -81
  294. package/commands/api-tokens/create.command.ts +0 -23
  295. package/commands/api-tokens/delete.command.ts +0 -19
  296. package/commands/api-tokens/find.command.ts +0 -14
  297. package/commands/auth/index.ts +0 -1
  298. package/commands/auth/login.command.ts +0 -21
  299. package/commands/hosts/create.command.ts +0 -49
  300. package/commands/hosts/delete.command.ts +0 -21
  301. package/commands/hosts/get-all.command.ts +0 -14
  302. package/commands/hosts/reorder.command.ts +0 -26
  303. package/commands/hosts/update.command.ts +0 -56
  304. package/commands/inbounds/get-inbounds.command.ts +0 -14
  305. package/commands/keygen/get-pubkey.command.ts +0 -15
  306. package/commands/nodes/create.command.ts +0 -40
  307. package/commands/nodes/delete.command.ts +0 -21
  308. package/commands/nodes/disable.command.ts +0 -20
  309. package/commands/nodes/enable.command.ts +0 -20
  310. package/commands/nodes/get-all.command.ts +0 -14
  311. package/commands/nodes/get-one.command.ts +0 -20
  312. package/commands/nodes/restart-all.command.ts +0 -14
  313. package/commands/nodes/restart.command.ts +0 -21
  314. package/commands/nodes/update.command.ts +0 -38
  315. package/commands/subscription/get-subscription-by-short-uuid.command.ts +0 -13
  316. package/commands/subscription/get-subscription-info-by-short-uuid.command.ts +0 -32
  317. package/commands/system/get-bandwidth-stats.command.ts +0 -26
  318. package/commands/system/get-nodes-statistics.ts +0 -27
  319. package/commands/system/get-stats.command.ts +0 -43
  320. package/commands/users/create-user.command.ts +0 -108
  321. package/commands/users/delete-user.command.ts +0 -20
  322. package/commands/users/disable-user.command.ts.ts +0 -19
  323. package/commands/users/enable-user.command.ts +0 -20
  324. package/commands/users/get-all-users-v2.command.ts +0 -62
  325. package/commands/users/get-all-users.command.ts +0 -62
  326. package/commands/users/get-user-by-short-uuid.command.ts +0 -20
  327. package/commands/users/get-user-by-subscription-uuid.command.ts +0 -20
  328. package/commands/users/get-user-by-uuid.command.ts +0 -20
  329. package/commands/users/revoke-user-subscription.command.ts +0 -20
  330. package/commands/users/update-user.command.ts +0 -60
  331. package/commands/xray/get-config.command.ts +0 -14
  332. package/commands/xray/update-config.command.ts +0 -19
  333. package/constants/errors/index.ts +0 -1
  334. package/constants/events/index.ts +0 -1
  335. package/constants/hosts/alpn.ts +0 -8
  336. package/constants/hosts/fingerprints.ts +0 -14
  337. package/constants/nodes/cycle/cycle.ts +0 -7
  338. package/constants/nodes/cycle/index.ts +0 -1
  339. package/constants/nodes/status/status.constant.ts +0 -8
  340. package/constants/roles/index.ts +0 -1
  341. package/constants/roles/role.ts +0 -7
  342. package/constants/templates/template-keys.ts +0 -8
  343. package/constants/templates/user-statuses.ts +0 -6
  344. package/constants/users/reset-periods/reset-periods.constant.ts +0 -10
  345. package/constants/users/status/status.constant.ts +0 -9
  346. package/models/api-tokens.schema.ts +0 -11
  347. package/models/auth.schema.ts +0 -5
  348. package/models/base-stat.schema.ts +0 -7
  349. package/models/hosts.schema.ts +0 -17
  350. package/models/inbounds.schema.ts +0 -7
  351. package/models/nodes.schema.ts +0 -28
  352. package/models/users.schema.ts +0 -38
  353. package/tsconfig.json +0 -103
  354. /package/build/{api → backend/api}/controllers/api-tokens.js +0 -0
  355. /package/build/{api → backend/api}/controllers/auth.js +0 -0
  356. /package/build/{api → backend/api}/controllers/hosts.js +0 -0
  357. /package/build/{api → backend/api}/controllers/inbounds.js +0 -0
  358. /package/build/{api → backend/api}/controllers/index.js +0 -0
  359. /package/build/{api → backend/api}/controllers/keygen.js +0 -0
  360. /package/build/{api → backend/api}/controllers/nodes.js +0 -0
  361. /package/build/{api → backend/api}/controllers/subscription.js +0 -0
  362. /package/build/{api → backend/api}/controllers/system.js +0 -0
  363. /package/build/{api → backend/api}/controllers/users.js +0 -0
  364. /package/build/{api → backend/api}/controllers/xray.js +0 -0
  365. /package/build/{api → backend/api}/index.js +0 -0
  366. /package/build/{api → backend/api}/routes.js +0 -0
  367. /package/build/{commands → backend/commands}/api-tokens/create.command.js +0 -0
  368. /package/build/{commands → backend/commands}/api-tokens/delete.command.js +0 -0
  369. /package/build/{commands → backend/commands}/api-tokens/find.command.js +0 -0
  370. /package/build/{commands → backend/commands}/api-tokens/index.js +0 -0
  371. /package/build/{commands → backend/commands}/auth/index.js +0 -0
  372. /package/build/{commands → backend/commands}/auth/login.command.js +0 -0
  373. /package/build/{commands → backend/commands}/hosts/create.command.js +0 -0
  374. /package/build/{commands → backend/commands}/hosts/delete.command.js +0 -0
  375. /package/build/{commands → backend/commands}/hosts/get-all.command.js +0 -0
  376. /package/build/{commands → backend/commands}/hosts/index.js +0 -0
  377. /package/build/{commands → backend/commands}/hosts/reorder.command.js +0 -0
  378. /package/build/{commands → backend/commands}/hosts/update.command.js +0 -0
  379. /package/build/{commands → backend/commands}/inbounds/get-inbounds.command.js +0 -0
  380. /package/build/{commands → backend/commands}/inbounds/index.js +0 -0
  381. /package/build/{commands → backend/commands}/index.js +0 -0
  382. /package/build/{commands → backend/commands}/keygen/get-pubkey.command.js +0 -0
  383. /package/build/{commands → backend/commands}/keygen/index.js +0 -0
  384. /package/build/{commands → backend/commands}/nodes/create.command.js +0 -0
  385. /package/build/{commands → backend/commands}/nodes/delete.command.js +0 -0
  386. /package/build/{commands → backend/commands}/nodes/disable.command.js +0 -0
  387. /package/build/{commands → backend/commands}/nodes/enable.command.js +0 -0
  388. /package/build/{commands → backend/commands}/nodes/get-all.command.js +0 -0
  389. /package/build/{commands → backend/commands}/nodes/get-one.command.js +0 -0
  390. /package/build/{commands → backend/commands}/nodes/index.js +0 -0
  391. /package/build/{commands → backend/commands}/nodes/restart-all.command.js +0 -0
  392. /package/build/{commands → backend/commands}/nodes/restart.command.js +0 -0
  393. /package/build/{commands → backend/commands}/nodes/update.command.js +0 -0
  394. /package/build/{commands → backend/commands}/subscription/get-subscription-by-short-uuid.command.js +0 -0
  395. /package/build/{commands → backend/commands}/subscription/get-subscription-info-by-short-uuid.command.js +0 -0
  396. /package/build/{commands → backend/commands}/subscription/index.js +0 -0
  397. /package/build/{commands → backend/commands}/system/get-bandwidth-stats.command.js +0 -0
  398. /package/build/{commands → backend/commands}/system/get-nodes-statistics.js +0 -0
  399. /package/build/{commands → backend/commands}/system/get-stats.command.js +0 -0
  400. /package/build/{commands → backend/commands}/system/index.js +0 -0
  401. /package/build/{commands → backend/commands}/users/delete-user.command.js +0 -0
  402. /package/build/{commands → backend/commands}/users/disable-user.command.ts.js +0 -0
  403. /package/build/{commands → backend/commands}/users/enable-user.command.js +0 -0
  404. /package/build/{commands → backend/commands}/users/get-all-users-v2.command.js +0 -0
  405. /package/build/{commands → backend/commands}/users/get-all-users.command.js +0 -0
  406. /package/build/{commands → backend/commands}/users/get-user-by-short-uuid.command.js +0 -0
  407. /package/build/{commands → backend/commands}/users/get-user-by-subscription-uuid.command.js +0 -0
  408. /package/build/{commands → backend/commands}/users/get-user-by-uuid.command.js +0 -0
  409. /package/build/{commands → backend/commands}/users/index.js +0 -0
  410. /package/build/{commands → backend/commands}/users/revoke-user-subscription.command.js +0 -0
  411. /package/build/{commands → backend/commands}/users/update-user.command.js +0 -0
  412. /package/build/{commands → backend/commands}/xray/get-config.command.js +0 -0
  413. /package/build/{commands → backend/commands}/xray/index.js +0 -0
  414. /package/build/{commands → backend/commands}/xray/update-config.command.js +0 -0
  415. /package/build/{constants → backend/constants}/errors/errors.js +0 -0
  416. /package/build/{constants → backend/constants}/errors/index.js +0 -0
  417. /package/build/{constants → backend/constants}/events/events.js +0 -0
  418. /package/build/{constants → backend/constants}/events/index.js +0 -0
  419. /package/build/{constants → backend/constants}/hosts/alpn.js +0 -0
  420. /package/build/{constants → backend/constants}/hosts/fingerprints.js +0 -0
  421. /package/build/{constants → backend/constants}/hosts/index.js +0 -0
  422. /package/build/{constants → backend/constants}/index.js +0 -0
  423. /package/build/{constants → backend/constants}/nodes/cycle/cycle.js +0 -0
  424. /package/build/{constants → backend/constants}/nodes/cycle/index.js +0 -0
  425. /package/build/{constants → backend/constants}/nodes/index.js +0 -0
  426. /package/build/{constants → backend/constants}/nodes/status/index.js +0 -0
  427. /package/build/{constants → backend/constants}/nodes/status/status.constant.js +0 -0
  428. /package/build/{constants → backend/constants}/roles/index.js +0 -0
  429. /package/build/{constants → backend/constants}/roles/role.js +0 -0
  430. /package/build/{constants → backend/constants}/templates/index.js +0 -0
  431. /package/build/{constants → backend/constants}/templates/template-keys.js +0 -0
  432. /package/build/{constants → backend/constants}/templates/user-statuses.js +0 -0
  433. /package/build/{constants → backend/constants}/users/index.js +0 -0
  434. /package/build/{constants → backend/constants}/users/reset-periods/index.js +0 -0
  435. /package/build/{constants → backend/constants}/users/reset-periods/reset-periods.constant.js +0 -0
  436. /package/build/{constants → backend/constants}/users/status/index.js +0 -0
  437. /package/build/{constants → backend/constants}/users/status/status.constant.js +0 -0
  438. /package/build/{index.js → backend/index.js} +0 -0
  439. /package/build/{models → backend/models}/api-tokens.schema.js +0 -0
  440. /package/build/{models → backend/models}/auth.schema.js +0 -0
  441. /package/build/{models → backend/models}/base-stat.schema.js +0 -0
  442. /package/build/{models → backend/models}/hosts.schema.js +0 -0
  443. /package/build/{models → backend/models}/inbounds.schema.js +0 -0
  444. /package/build/{models → backend/models}/index.js +0 -0
  445. /package/build/{models → backend/models}/nodes.schema.js +0 -0
  446. /package/build/{models → backend/models}/users.schema.js +0 -0
@@ -0,0 +1,137 @@
1
+ import { z } from 'zod';
2
+ export declare namespace DisableNodeCommand {
3
+ const url: (uuid: string) => string;
4
+ const TSQ_url: string;
5
+ const RequestSchema: z.ZodObject<{
6
+ uuid: z.ZodString;
7
+ }, "strip", z.ZodTypeAny, {
8
+ uuid: string;
9
+ }, {
10
+ uuid: string;
11
+ }>;
12
+ type Request = z.infer<typeof RequestSchema>;
13
+ const ResponseSchema: z.ZodObject<{
14
+ response: z.ZodObject<{
15
+ uuid: z.ZodString;
16
+ name: z.ZodString;
17
+ address: z.ZodString;
18
+ port: z.ZodNullable<z.ZodNumber>;
19
+ isConnected: z.ZodBoolean;
20
+ isDisabled: z.ZodBoolean;
21
+ isConnecting: z.ZodBoolean;
22
+ isNodeOnline: z.ZodBoolean;
23
+ isXrayRunning: z.ZodBoolean;
24
+ lastStatusChange: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
25
+ lastStatusMessage: z.ZodNullable<z.ZodString>;
26
+ xrayVersion: z.ZodNullable<z.ZodString>;
27
+ isTrafficTrackingActive: z.ZodBoolean;
28
+ trafficResetDay: z.ZodNullable<z.ZodNumber>;
29
+ trafficLimitBytes: z.ZodNullable<z.ZodNumber>;
30
+ trafficUsedBytes: z.ZodNullable<z.ZodNumber>;
31
+ notifyPercent: z.ZodNullable<z.ZodNumber>;
32
+ cpuCount: z.ZodNullable<z.ZodNumber>;
33
+ cpuModel: z.ZodNullable<z.ZodString>;
34
+ totalRam: z.ZodNullable<z.ZodString>;
35
+ createdAt: z.ZodEffects<z.ZodString, Date, string>;
36
+ updatedAt: z.ZodEffects<z.ZodString, Date, string>;
37
+ }, "strip", z.ZodTypeAny, {
38
+ uuid: string;
39
+ createdAt: Date;
40
+ updatedAt: Date;
41
+ address: string;
42
+ port: number | null;
43
+ isDisabled: boolean;
44
+ name: string;
45
+ isConnected: boolean;
46
+ isConnecting: boolean;
47
+ isNodeOnline: boolean;
48
+ isXrayRunning: boolean;
49
+ lastStatusChange: Date | null;
50
+ lastStatusMessage: string | null;
51
+ xrayVersion: string | null;
52
+ isTrafficTrackingActive: boolean;
53
+ trafficResetDay: number | null;
54
+ trafficLimitBytes: number | null;
55
+ trafficUsedBytes: number | null;
56
+ notifyPercent: number | null;
57
+ cpuCount: number | null;
58
+ cpuModel: string | null;
59
+ totalRam: string | null;
60
+ }, {
61
+ uuid: string;
62
+ createdAt: string;
63
+ updatedAt: string;
64
+ address: string;
65
+ port: number | null;
66
+ isDisabled: boolean;
67
+ name: string;
68
+ isConnected: boolean;
69
+ isConnecting: boolean;
70
+ isNodeOnline: boolean;
71
+ isXrayRunning: boolean;
72
+ lastStatusChange: string | null;
73
+ lastStatusMessage: string | null;
74
+ xrayVersion: string | null;
75
+ isTrafficTrackingActive: boolean;
76
+ trafficResetDay: number | null;
77
+ trafficLimitBytes: number | null;
78
+ trafficUsedBytes: number | null;
79
+ notifyPercent: number | null;
80
+ cpuCount: number | null;
81
+ cpuModel: string | null;
82
+ totalRam: string | null;
83
+ }>;
84
+ }, "strip", z.ZodTypeAny, {
85
+ response: {
86
+ uuid: string;
87
+ createdAt: Date;
88
+ updatedAt: Date;
89
+ address: string;
90
+ port: number | null;
91
+ isDisabled: boolean;
92
+ name: string;
93
+ isConnected: boolean;
94
+ isConnecting: boolean;
95
+ isNodeOnline: boolean;
96
+ isXrayRunning: boolean;
97
+ lastStatusChange: Date | null;
98
+ lastStatusMessage: string | null;
99
+ xrayVersion: string | null;
100
+ isTrafficTrackingActive: boolean;
101
+ trafficResetDay: number | null;
102
+ trafficLimitBytes: number | null;
103
+ trafficUsedBytes: number | null;
104
+ notifyPercent: number | null;
105
+ cpuCount: number | null;
106
+ cpuModel: string | null;
107
+ totalRam: string | null;
108
+ };
109
+ }, {
110
+ response: {
111
+ uuid: string;
112
+ createdAt: string;
113
+ updatedAt: string;
114
+ address: string;
115
+ port: number | null;
116
+ isDisabled: boolean;
117
+ name: string;
118
+ isConnected: boolean;
119
+ isConnecting: boolean;
120
+ isNodeOnline: boolean;
121
+ isXrayRunning: boolean;
122
+ lastStatusChange: string | null;
123
+ lastStatusMessage: string | null;
124
+ xrayVersion: string | null;
125
+ isTrafficTrackingActive: boolean;
126
+ trafficResetDay: number | null;
127
+ trafficLimitBytes: number | null;
128
+ trafficUsedBytes: number | null;
129
+ notifyPercent: number | null;
130
+ cpuCount: number | null;
131
+ cpuModel: string | null;
132
+ totalRam: string | null;
133
+ };
134
+ }>;
135
+ type Response = z.infer<typeof ResponseSchema>;
136
+ }
137
+ //# sourceMappingURL=disable.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"disable.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/disable.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,0BAAyB,CAAC;IACnC,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,aAAa;;;;;;MAExB,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"}
@@ -0,0 +1,137 @@
1
+ import { z } from 'zod';
2
+ export declare namespace EnableNodeCommand {
3
+ const url: (uuid: string) => string;
4
+ const TSQ_url: string;
5
+ const RequestSchema: z.ZodObject<{
6
+ uuid: z.ZodString;
7
+ }, "strip", z.ZodTypeAny, {
8
+ uuid: string;
9
+ }, {
10
+ uuid: string;
11
+ }>;
12
+ type Request = z.infer<typeof RequestSchema>;
13
+ const ResponseSchema: z.ZodObject<{
14
+ response: z.ZodObject<{
15
+ uuid: z.ZodString;
16
+ name: z.ZodString;
17
+ address: z.ZodString;
18
+ port: z.ZodNullable<z.ZodNumber>;
19
+ isConnected: z.ZodBoolean;
20
+ isDisabled: z.ZodBoolean;
21
+ isConnecting: z.ZodBoolean;
22
+ isNodeOnline: z.ZodBoolean;
23
+ isXrayRunning: z.ZodBoolean;
24
+ lastStatusChange: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
25
+ lastStatusMessage: z.ZodNullable<z.ZodString>;
26
+ xrayVersion: z.ZodNullable<z.ZodString>;
27
+ isTrafficTrackingActive: z.ZodBoolean;
28
+ trafficResetDay: z.ZodNullable<z.ZodNumber>;
29
+ trafficLimitBytes: z.ZodNullable<z.ZodNumber>;
30
+ trafficUsedBytes: z.ZodNullable<z.ZodNumber>;
31
+ notifyPercent: z.ZodNullable<z.ZodNumber>;
32
+ cpuCount: z.ZodNullable<z.ZodNumber>;
33
+ cpuModel: z.ZodNullable<z.ZodString>;
34
+ totalRam: z.ZodNullable<z.ZodString>;
35
+ createdAt: z.ZodEffects<z.ZodString, Date, string>;
36
+ updatedAt: z.ZodEffects<z.ZodString, Date, string>;
37
+ }, "strip", z.ZodTypeAny, {
38
+ uuid: string;
39
+ createdAt: Date;
40
+ updatedAt: Date;
41
+ address: string;
42
+ port: number | null;
43
+ isDisabled: boolean;
44
+ name: string;
45
+ isConnected: boolean;
46
+ isConnecting: boolean;
47
+ isNodeOnline: boolean;
48
+ isXrayRunning: boolean;
49
+ lastStatusChange: Date | null;
50
+ lastStatusMessage: string | null;
51
+ xrayVersion: string | null;
52
+ isTrafficTrackingActive: boolean;
53
+ trafficResetDay: number | null;
54
+ trafficLimitBytes: number | null;
55
+ trafficUsedBytes: number | null;
56
+ notifyPercent: number | null;
57
+ cpuCount: number | null;
58
+ cpuModel: string | null;
59
+ totalRam: string | null;
60
+ }, {
61
+ uuid: string;
62
+ createdAt: string;
63
+ updatedAt: string;
64
+ address: string;
65
+ port: number | null;
66
+ isDisabled: boolean;
67
+ name: string;
68
+ isConnected: boolean;
69
+ isConnecting: boolean;
70
+ isNodeOnline: boolean;
71
+ isXrayRunning: boolean;
72
+ lastStatusChange: string | null;
73
+ lastStatusMessage: string | null;
74
+ xrayVersion: string | null;
75
+ isTrafficTrackingActive: boolean;
76
+ trafficResetDay: number | null;
77
+ trafficLimitBytes: number | null;
78
+ trafficUsedBytes: number | null;
79
+ notifyPercent: number | null;
80
+ cpuCount: number | null;
81
+ cpuModel: string | null;
82
+ totalRam: string | null;
83
+ }>;
84
+ }, "strip", z.ZodTypeAny, {
85
+ response: {
86
+ uuid: string;
87
+ createdAt: Date;
88
+ updatedAt: Date;
89
+ address: string;
90
+ port: number | null;
91
+ isDisabled: boolean;
92
+ name: string;
93
+ isConnected: boolean;
94
+ isConnecting: boolean;
95
+ isNodeOnline: boolean;
96
+ isXrayRunning: boolean;
97
+ lastStatusChange: Date | null;
98
+ lastStatusMessage: string | null;
99
+ xrayVersion: string | null;
100
+ isTrafficTrackingActive: boolean;
101
+ trafficResetDay: number | null;
102
+ trafficLimitBytes: number | null;
103
+ trafficUsedBytes: number | null;
104
+ notifyPercent: number | null;
105
+ cpuCount: number | null;
106
+ cpuModel: string | null;
107
+ totalRam: string | null;
108
+ };
109
+ }, {
110
+ response: {
111
+ uuid: string;
112
+ createdAt: string;
113
+ updatedAt: string;
114
+ address: string;
115
+ port: number | null;
116
+ isDisabled: boolean;
117
+ name: string;
118
+ isConnected: boolean;
119
+ isConnecting: boolean;
120
+ isNodeOnline: boolean;
121
+ isXrayRunning: boolean;
122
+ lastStatusChange: string | null;
123
+ lastStatusMessage: string | null;
124
+ xrayVersion: string | null;
125
+ isTrafficTrackingActive: boolean;
126
+ trafficResetDay: number | null;
127
+ trafficLimitBytes: number | null;
128
+ trafficUsedBytes: number | null;
129
+ notifyPercent: number | null;
130
+ cpuCount: number | null;
131
+ cpuModel: string | null;
132
+ totalRam: string | null;
133
+ };
134
+ }>;
135
+ type Response = z.infer<typeof ResponseSchema>;
136
+ }
137
+ //# sourceMappingURL=enable.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enable.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/enable.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,0BAAwB,CAAC;IAClC,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,aAAa;;;;;;MAExB,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"}
@@ -0,0 +1,129 @@
1
+ import { z } from 'zod';
2
+ export declare namespace GetAllNodesCommand {
3
+ const url: "/api/nodes/get-all";
4
+ const TSQ_url: "/api/nodes/get-all";
5
+ const ResponseSchema: z.ZodObject<{
6
+ response: z.ZodArray<z.ZodObject<{
7
+ uuid: z.ZodString;
8
+ name: z.ZodString;
9
+ address: z.ZodString;
10
+ port: z.ZodNullable<z.ZodNumber>;
11
+ isConnected: z.ZodBoolean;
12
+ isDisabled: z.ZodBoolean;
13
+ isConnecting: z.ZodBoolean;
14
+ isNodeOnline: z.ZodBoolean;
15
+ isXrayRunning: z.ZodBoolean;
16
+ lastStatusChange: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
17
+ lastStatusMessage: z.ZodNullable<z.ZodString>;
18
+ xrayVersion: z.ZodNullable<z.ZodString>;
19
+ isTrafficTrackingActive: z.ZodBoolean;
20
+ trafficResetDay: z.ZodNullable<z.ZodNumber>;
21
+ trafficLimitBytes: z.ZodNullable<z.ZodNumber>;
22
+ trafficUsedBytes: z.ZodNullable<z.ZodNumber>;
23
+ notifyPercent: z.ZodNullable<z.ZodNumber>;
24
+ cpuCount: z.ZodNullable<z.ZodNumber>;
25
+ cpuModel: z.ZodNullable<z.ZodString>;
26
+ totalRam: z.ZodNullable<z.ZodString>;
27
+ createdAt: z.ZodEffects<z.ZodString, Date, string>;
28
+ updatedAt: z.ZodEffects<z.ZodString, Date, string>;
29
+ }, "strip", z.ZodTypeAny, {
30
+ uuid: string;
31
+ createdAt: Date;
32
+ updatedAt: Date;
33
+ address: string;
34
+ port: number | null;
35
+ isDisabled: boolean;
36
+ name: string;
37
+ isConnected: boolean;
38
+ isConnecting: boolean;
39
+ isNodeOnline: boolean;
40
+ isXrayRunning: boolean;
41
+ lastStatusChange: Date | null;
42
+ lastStatusMessage: string | null;
43
+ xrayVersion: string | null;
44
+ isTrafficTrackingActive: boolean;
45
+ trafficResetDay: number | null;
46
+ trafficLimitBytes: number | null;
47
+ trafficUsedBytes: number | null;
48
+ notifyPercent: number | null;
49
+ cpuCount: number | null;
50
+ cpuModel: string | null;
51
+ totalRam: string | null;
52
+ }, {
53
+ uuid: string;
54
+ createdAt: string;
55
+ updatedAt: string;
56
+ address: string;
57
+ port: number | null;
58
+ isDisabled: boolean;
59
+ name: string;
60
+ isConnected: boolean;
61
+ isConnecting: boolean;
62
+ isNodeOnline: boolean;
63
+ isXrayRunning: boolean;
64
+ lastStatusChange: string | null;
65
+ lastStatusMessage: string | null;
66
+ xrayVersion: string | null;
67
+ isTrafficTrackingActive: boolean;
68
+ trafficResetDay: number | null;
69
+ trafficLimitBytes: number | null;
70
+ trafficUsedBytes: number | null;
71
+ notifyPercent: number | null;
72
+ cpuCount: number | null;
73
+ cpuModel: string | null;
74
+ totalRam: string | null;
75
+ }>, "many">;
76
+ }, "strip", z.ZodTypeAny, {
77
+ response: {
78
+ uuid: string;
79
+ createdAt: Date;
80
+ updatedAt: Date;
81
+ address: string;
82
+ port: number | null;
83
+ isDisabled: boolean;
84
+ name: string;
85
+ isConnected: boolean;
86
+ isConnecting: boolean;
87
+ isNodeOnline: boolean;
88
+ isXrayRunning: boolean;
89
+ lastStatusChange: Date | null;
90
+ lastStatusMessage: string | null;
91
+ xrayVersion: string | null;
92
+ isTrafficTrackingActive: boolean;
93
+ trafficResetDay: number | null;
94
+ trafficLimitBytes: number | null;
95
+ trafficUsedBytes: number | null;
96
+ notifyPercent: number | null;
97
+ cpuCount: number | null;
98
+ cpuModel: string | null;
99
+ totalRam: string | null;
100
+ }[];
101
+ }, {
102
+ response: {
103
+ uuid: string;
104
+ createdAt: string;
105
+ updatedAt: string;
106
+ address: string;
107
+ port: number | null;
108
+ isDisabled: boolean;
109
+ name: string;
110
+ isConnected: boolean;
111
+ isConnecting: boolean;
112
+ isNodeOnline: boolean;
113
+ isXrayRunning: boolean;
114
+ lastStatusChange: string | null;
115
+ lastStatusMessage: string | null;
116
+ xrayVersion: string | null;
117
+ isTrafficTrackingActive: boolean;
118
+ trafficResetDay: number | null;
119
+ trafficLimitBytes: number | null;
120
+ trafficUsedBytes: number | null;
121
+ notifyPercent: number | null;
122
+ cpuCount: number | null;
123
+ cpuModel: string | null;
124
+ totalRam: string | null;
125
+ }[];
126
+ }>;
127
+ type Response = z.infer<typeof ResponseSchema>;
128
+ }
129
+ //# sourceMappingURL=get-all.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-all.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/get-all.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,sBAAyB,CAAC;IACnC,MAAM,OAAO,sBAAM,CAAC;IAEpB,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -0,0 +1,137 @@
1
+ import { z } from 'zod';
2
+ export declare namespace GetOneNodeCommand {
3
+ const url: (uuid: string) => string;
4
+ const TSQ_url: string;
5
+ const RequestSchema: z.ZodObject<{
6
+ uuid: z.ZodString;
7
+ }, "strip", z.ZodTypeAny, {
8
+ uuid: string;
9
+ }, {
10
+ uuid: string;
11
+ }>;
12
+ type Request = z.infer<typeof RequestSchema>;
13
+ const ResponseSchema: z.ZodObject<{
14
+ response: z.ZodObject<{
15
+ uuid: z.ZodString;
16
+ name: z.ZodString;
17
+ address: z.ZodString;
18
+ port: z.ZodNullable<z.ZodNumber>;
19
+ isConnected: z.ZodBoolean;
20
+ isDisabled: z.ZodBoolean;
21
+ isConnecting: z.ZodBoolean;
22
+ isNodeOnline: z.ZodBoolean;
23
+ isXrayRunning: z.ZodBoolean;
24
+ lastStatusChange: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
25
+ lastStatusMessage: z.ZodNullable<z.ZodString>;
26
+ xrayVersion: z.ZodNullable<z.ZodString>;
27
+ isTrafficTrackingActive: z.ZodBoolean;
28
+ trafficResetDay: z.ZodNullable<z.ZodNumber>;
29
+ trafficLimitBytes: z.ZodNullable<z.ZodNumber>;
30
+ trafficUsedBytes: z.ZodNullable<z.ZodNumber>;
31
+ notifyPercent: z.ZodNullable<z.ZodNumber>;
32
+ cpuCount: z.ZodNullable<z.ZodNumber>;
33
+ cpuModel: z.ZodNullable<z.ZodString>;
34
+ totalRam: z.ZodNullable<z.ZodString>;
35
+ createdAt: z.ZodEffects<z.ZodString, Date, string>;
36
+ updatedAt: z.ZodEffects<z.ZodString, Date, string>;
37
+ }, "strip", z.ZodTypeAny, {
38
+ uuid: string;
39
+ createdAt: Date;
40
+ updatedAt: Date;
41
+ address: string;
42
+ port: number | null;
43
+ isDisabled: boolean;
44
+ name: string;
45
+ isConnected: boolean;
46
+ isConnecting: boolean;
47
+ isNodeOnline: boolean;
48
+ isXrayRunning: boolean;
49
+ lastStatusChange: Date | null;
50
+ lastStatusMessage: string | null;
51
+ xrayVersion: string | null;
52
+ isTrafficTrackingActive: boolean;
53
+ trafficResetDay: number | null;
54
+ trafficLimitBytes: number | null;
55
+ trafficUsedBytes: number | null;
56
+ notifyPercent: number | null;
57
+ cpuCount: number | null;
58
+ cpuModel: string | null;
59
+ totalRam: string | null;
60
+ }, {
61
+ uuid: string;
62
+ createdAt: string;
63
+ updatedAt: string;
64
+ address: string;
65
+ port: number | null;
66
+ isDisabled: boolean;
67
+ name: string;
68
+ isConnected: boolean;
69
+ isConnecting: boolean;
70
+ isNodeOnline: boolean;
71
+ isXrayRunning: boolean;
72
+ lastStatusChange: string | null;
73
+ lastStatusMessage: string | null;
74
+ xrayVersion: string | null;
75
+ isTrafficTrackingActive: boolean;
76
+ trafficResetDay: number | null;
77
+ trafficLimitBytes: number | null;
78
+ trafficUsedBytes: number | null;
79
+ notifyPercent: number | null;
80
+ cpuCount: number | null;
81
+ cpuModel: string | null;
82
+ totalRam: string | null;
83
+ }>;
84
+ }, "strip", z.ZodTypeAny, {
85
+ response: {
86
+ uuid: string;
87
+ createdAt: Date;
88
+ updatedAt: Date;
89
+ address: string;
90
+ port: number | null;
91
+ isDisabled: boolean;
92
+ name: string;
93
+ isConnected: boolean;
94
+ isConnecting: boolean;
95
+ isNodeOnline: boolean;
96
+ isXrayRunning: boolean;
97
+ lastStatusChange: Date | null;
98
+ lastStatusMessage: string | null;
99
+ xrayVersion: string | null;
100
+ isTrafficTrackingActive: boolean;
101
+ trafficResetDay: number | null;
102
+ trafficLimitBytes: number | null;
103
+ trafficUsedBytes: number | null;
104
+ notifyPercent: number | null;
105
+ cpuCount: number | null;
106
+ cpuModel: string | null;
107
+ totalRam: string | null;
108
+ };
109
+ }, {
110
+ response: {
111
+ uuid: string;
112
+ createdAt: string;
113
+ updatedAt: string;
114
+ address: string;
115
+ port: number | null;
116
+ isDisabled: boolean;
117
+ name: string;
118
+ isConnected: boolean;
119
+ isConnecting: boolean;
120
+ isNodeOnline: boolean;
121
+ isXrayRunning: boolean;
122
+ lastStatusChange: string | null;
123
+ lastStatusMessage: string | null;
124
+ xrayVersion: string | null;
125
+ isTrafficTrackingActive: boolean;
126
+ trafficResetDay: number | null;
127
+ trafficLimitBytes: number | null;
128
+ trafficUsedBytes: number | null;
129
+ notifyPercent: number | null;
130
+ cpuCount: number | null;
131
+ cpuModel: string | null;
132
+ totalRam: string | null;
133
+ };
134
+ }>;
135
+ type Response = z.infer<typeof ResponseSchema>;
136
+ }
137
+ //# sourceMappingURL=get-one.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-one.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/get-one.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,0BAAyB,CAAC;IACnC,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,aAAa;;;;;;MAExB,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"}
@@ -7,3 +7,4 @@ export * from './get-one.command';
7
7
  export * from './restart-all.command';
8
8
  export * from './restart.command';
9
9
  export * from './update.command';
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { z } from 'zod';
2
+ export declare namespace RestartAllNodesCommand {
3
+ const url: "/api/nodes/restart-all";
4
+ const TSQ_url: "/api/nodes/restart-all";
5
+ const ResponseSchema: z.ZodObject<{
6
+ response: z.ZodObject<{
7
+ eventSent: z.ZodBoolean;
8
+ }, "strip", z.ZodTypeAny, {
9
+ eventSent: boolean;
10
+ }, {
11
+ eventSent: boolean;
12
+ }>;
13
+ }, "strip", z.ZodTypeAny, {
14
+ response: {
15
+ eventSent: boolean;
16
+ };
17
+ }, {
18
+ response: {
19
+ eventSent: boolean;
20
+ };
21
+ }>;
22
+ type Response = z.infer<typeof ResponseSchema>;
23
+ }
24
+ //# sourceMappingURL=restart-all.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"restart-all.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/restart-all.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,yBAAiB,sBAAsB,CAAC;IAC7B,MAAM,GAAG,0BAA6B,CAAC;IACvC,MAAM,OAAO,0BAAM,CAAC;IAEpB,MAAM,cAAc;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -0,0 +1,32 @@
1
+ import { z } from 'zod';
2
+ export declare namespace RestartNodeCommand {
3
+ const url: (uuid: string) => string;
4
+ const TSQ_url: string;
5
+ const RequestSchema: z.ZodObject<{
6
+ uuid: z.ZodString;
7
+ }, "strip", z.ZodTypeAny, {
8
+ uuid: string;
9
+ }, {
10
+ uuid: string;
11
+ }>;
12
+ type Request = z.infer<typeof RequestSchema>;
13
+ const ResponseSchema: z.ZodObject<{
14
+ response: z.ZodObject<{
15
+ eventSent: z.ZodBoolean;
16
+ }, "strip", z.ZodTypeAny, {
17
+ eventSent: boolean;
18
+ }, {
19
+ eventSent: boolean;
20
+ }>;
21
+ }, "strip", z.ZodTypeAny, {
22
+ response: {
23
+ eventSent: boolean;
24
+ };
25
+ }, {
26
+ response: {
27
+ eventSent: boolean;
28
+ };
29
+ }>;
30
+ type Response = z.infer<typeof ResponseSchema>;
31
+ }
32
+ //# sourceMappingURL=restart.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"restart.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/restart.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,0BAAyB,CAAC;IACnC,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}