@remnawave/backend-contract 2.0.0-alpha.8 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (280) hide show
  1. package/build/backend/api/controllers/auth.d.ts +2 -0
  2. package/build/backend/api/controllers/auth.d.ts.map +1 -1
  3. package/build/backend/api/controllers/auth.js +2 -0
  4. package/build/backend/api/controllers/index.d.ts +1 -0
  5. package/build/backend/api/controllers/index.d.ts.map +1 -1
  6. package/build/backend/api/controllers/index.js +1 -0
  7. package/build/backend/api/controllers/infra-billing.d.ts +16 -0
  8. package/build/backend/api/controllers/infra-billing.d.ts.map +1 -0
  9. package/build/backend/api/controllers/infra-billing.js +18 -0
  10. package/build/backend/api/controllers/internal-squads.d.ts +4 -0
  11. package/build/backend/api/controllers/internal-squads.d.ts.map +1 -1
  12. package/build/backend/api/controllers/internal-squads.js +5 -0
  13. package/build/backend/api/controllers/subscription.d.ts +1 -0
  14. package/build/backend/api/controllers/subscription.d.ts.map +1 -1
  15. package/build/backend/api/controllers/subscription.js +1 -0
  16. package/build/backend/api/controllers/system.d.ts +1 -0
  17. package/build/backend/api/controllers/system.d.ts.map +1 -1
  18. package/build/backend/api/controllers/system.js +1 -0
  19. package/build/backend/api/routes.d.ts +22 -0
  20. package/build/backend/api/routes.d.ts.map +1 -1
  21. package/build/backend/api/routes.js +22 -0
  22. package/build/backend/commands/api-tokens/create.command.d.ts +0 -3
  23. package/build/backend/commands/api-tokens/create.command.d.ts.map +1 -1
  24. package/build/backend/commands/api-tokens/create.command.js +0 -1
  25. package/build/backend/commands/api-tokens/find.command.d.ts +0 -7
  26. package/build/backend/commands/api-tokens/find.command.d.ts.map +1 -1
  27. package/build/backend/commands/auth/get-status.command.d.ts +23 -0
  28. package/build/backend/commands/auth/get-status.command.d.ts.map +1 -1
  29. package/build/backend/commands/auth/get-status.command.js +3 -0
  30. package/build/backend/commands/auth/oauth2/authorize.command.d.ts +36 -0
  31. package/build/backend/commands/auth/oauth2/authorize.command.d.ts.map +1 -0
  32. package/build/backend/commands/auth/oauth2/authorize.command.js +20 -0
  33. package/build/backend/commands/auth/oauth2/callback.command.d.ts +43 -0
  34. package/build/backend/commands/auth/oauth2/callback.command.d.ts.map +1 -0
  35. package/build/backend/commands/auth/oauth2/callback.command.js +22 -0
  36. package/build/backend/commands/auth/oauth2/index.d.ts +2 -0
  37. package/build/backend/commands/auth/oauth2/index.d.ts.map +1 -1
  38. package/build/backend/commands/auth/oauth2/index.js +2 -0
  39. package/build/backend/commands/config-profiles/create-config-profile.command.js +2 -2
  40. package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts +31 -10
  41. package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts.map +1 -1
  42. package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts +31 -10
  43. package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts.map +1 -1
  44. package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts +31 -10
  45. package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts.map +1 -1
  46. package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.d.ts +31 -10
  47. package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.d.ts.map +1 -1
  48. package/build/backend/commands/hosts/bulk/set-port-to-many-hosts.command.d.ts +31 -10
  49. package/build/backend/commands/hosts/bulk/set-port-to-many-hosts.command.d.ts.map +1 -1
  50. package/build/backend/commands/hosts/create.command.d.ts +52 -19
  51. package/build/backend/commands/hosts/create.command.d.ts.map +1 -1
  52. package/build/backend/commands/hosts/create.command.js +13 -13
  53. package/build/backend/commands/hosts/get-all.command.d.ts +31 -10
  54. package/build/backend/commands/hosts/get-all.command.d.ts.map +1 -1
  55. package/build/backend/commands/hosts/get-one.command.d.ts +31 -10
  56. package/build/backend/commands/hosts/get-one.command.d.ts.map +1 -1
  57. package/build/backend/commands/hosts/reorder.command.d.ts +11 -2
  58. package/build/backend/commands/hosts/reorder.command.d.ts.map +1 -1
  59. package/build/backend/commands/hosts/update.command.d.ts +63 -21
  60. package/build/backend/commands/hosts/update.command.d.ts.map +1 -1
  61. package/build/backend/commands/hosts/update.command.js +10 -11
  62. package/build/backend/commands/index.d.ts +1 -0
  63. package/build/backend/commands/index.d.ts.map +1 -1
  64. package/build/backend/commands/index.js +1 -0
  65. package/build/backend/commands/infra-billing/create-bill-record.command.d.ts +125 -0
  66. package/build/backend/commands/infra-billing/create-bill-record.command.d.ts.map +1 -0
  67. package/build/backend/commands/infra-billing/create-bill-record.command.js +30 -0
  68. package/build/backend/commands/infra-billing/create-billing-node.command.d.ts +467 -0
  69. package/build/backend/commands/infra-billing/create-billing-node.command.d.ts.map +1 -0
  70. package/build/backend/commands/infra-billing/create-billing-node.command.js +38 -0
  71. package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts +123 -0
  72. package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts.map +1 -0
  73. package/build/backend/commands/infra-billing/create-infra-provider.command.js +24 -0
  74. package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.d.ts +119 -0
  75. package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.d.ts.map +1 -0
  76. package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.js +22 -0
  77. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts +461 -0
  78. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts.map +1 -0
  79. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.js +29 -0
  80. package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.d.ts +33 -0
  81. package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.d.ts.map +1 -0
  82. package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.js +20 -0
  83. package/build/backend/commands/infra-billing/get-bill-records.command.d.ts +122 -0
  84. package/build/backend/commands/infra-billing/get-bill-records.command.d.ts.map +1 -0
  85. package/build/backend/commands/infra-billing/get-bill-records.command.js +31 -0
  86. package/build/backend/commands/infra-billing/get-billing-nodes.command.d.ts +453 -0
  87. package/build/backend/commands/infra-billing/get-billing-nodes.command.d.ts.map +1 -0
  88. package/build/backend/commands/infra-billing/get-billing-nodes.command.js +26 -0
  89. package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts +117 -0
  90. package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts.map +1 -0
  91. package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.js +19 -0
  92. package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts +156 -0
  93. package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts.map +1 -0
  94. package/build/backend/commands/infra-billing/get-infra-providers.command.js +19 -0
  95. package/build/backend/commands/infra-billing/index.d.ts +13 -0
  96. package/build/backend/commands/infra-billing/index.d.ts.map +1 -0
  97. package/build/backend/commands/infra-billing/index.js +28 -0
  98. package/build/backend/commands/infra-billing/update-billing-node.command.d.ts +464 -0
  99. package/build/backend/commands/infra-billing/update-billing-node.command.d.ts.map +1 -0
  100. package/build/backend/commands/infra-billing/update-billing-node.command.js +35 -0
  101. package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts +126 -0
  102. package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts.map +1 -0
  103. package/build/backend/commands/infra-billing/update-infra-provider.command.js +26 -0
  104. package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.d.ts +33 -0
  105. package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.d.ts.map +1 -0
  106. package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.js +20 -0
  107. package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.d.ts +33 -0
  108. package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.d.ts.map +1 -0
  109. package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.js +20 -0
  110. package/build/backend/commands/internal-squads/bulk-actions/index.d.ts +3 -0
  111. package/build/backend/commands/internal-squads/bulk-actions/index.d.ts.map +1 -0
  112. package/build/backend/commands/internal-squads/bulk-actions/index.js +18 -0
  113. package/build/backend/commands/internal-squads/create-internal-squad.command.js +2 -2
  114. package/build/backend/commands/internal-squads/{get-internal-squad-by-uuid..d.ts → get-internal-squad-by-uuid.d.ts} +1 -1
  115. package/build/backend/commands/internal-squads/get-internal-squad-by-uuid.d.ts.map +1 -0
  116. package/build/backend/commands/internal-squads/index.d.ts +2 -1
  117. package/build/backend/commands/internal-squads/index.d.ts.map +1 -1
  118. package/build/backend/commands/internal-squads/index.js +2 -1
  119. package/build/backend/commands/nodes/actions/disable.command.d.ts +166 -68
  120. package/build/backend/commands/nodes/actions/disable.command.d.ts.map +1 -1
  121. package/build/backend/commands/nodes/actions/enable.command.d.ts +166 -68
  122. package/build/backend/commands/nodes/actions/enable.command.d.ts.map +1 -1
  123. package/build/backend/commands/nodes/actions/reorder.command.d.ts +240 -92
  124. package/build/backend/commands/nodes/actions/reorder.command.d.ts.map +1 -1
  125. package/build/backend/commands/nodes/create.command.d.ts +187 -74
  126. package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
  127. package/build/backend/commands/nodes/create.command.js +7 -4
  128. package/build/backend/commands/nodes/get-all.command.d.ts +166 -68
  129. package/build/backend/commands/nodes/get-all.command.d.ts.map +1 -1
  130. package/build/backend/commands/nodes/get-one.command.d.ts +166 -68
  131. package/build/backend/commands/nodes/get-one.command.d.ts.map +1 -1
  132. package/build/backend/commands/nodes/stats/get-node-user-usage-by-range.command.d.ts +4 -4
  133. package/build/backend/commands/nodes/stats/get-nodes-usage-by-range.command.d.ts +4 -4
  134. package/build/backend/commands/nodes/update.command.d.ts +261 -98
  135. package/build/backend/commands/nodes/update.command.d.ts.map +1 -1
  136. package/build/backend/commands/nodes/update.command.js +9 -4
  137. package/build/backend/commands/subscription/get-raw-subscription-by-short-uuid.command.d.ts +354 -0
  138. package/build/backend/commands/subscription/get-raw-subscription-by-short-uuid.command.d.ts.map +1 -0
  139. package/build/backend/commands/subscription/get-raw-subscription-by-short-uuid.command.js +67 -0
  140. package/build/backend/commands/subscription/get-subscription-info-by-short-uuid.command.d.ts +4 -4
  141. package/build/backend/commands/subscription/index.d.ts +1 -0
  142. package/build/backend/commands/subscription/index.d.ts.map +1 -1
  143. package/build/backend/commands/subscription/index.js +1 -0
  144. package/build/backend/commands/subscriptions/get-all-subscriptions.command.d.ts +6 -6
  145. package/build/backend/commands/subscriptions/get-by/get-subscription-by-username.command.d.ts +4 -4
  146. package/build/backend/commands/system/get-nodes-metrics.command.d.ts +153 -0
  147. package/build/backend/commands/system/get-nodes-metrics.command.d.ts.map +1 -0
  148. package/build/backend/commands/system/get-nodes-metrics.command.js +33 -0
  149. package/build/backend/commands/system/index.d.ts +1 -0
  150. package/build/backend/commands/system/index.d.ts.map +1 -1
  151. package/build/backend/commands/system/index.js +1 -0
  152. package/build/backend/commands/users/create-user.command.d.ts +6 -6
  153. package/build/backend/commands/users/create-user.command.d.ts.map +1 -1
  154. package/build/backend/commands/users/create-user.command.js +2 -4
  155. package/build/backend/commands/users/get-user-usage-by-range.command.d.ts +4 -4
  156. package/build/backend/constants/errors/errors.d.ts +115 -0
  157. package/build/backend/constants/errors/errors.d.ts.map +1 -1
  158. package/build/backend/constants/errors/errors.js +115 -0
  159. package/build/backend/constants/events/events.d.ts +11 -0
  160. package/build/backend/constants/events/events.d.ts.map +1 -1
  161. package/build/backend/constants/events/events.js +10 -0
  162. package/build/backend/constants/headers/headers.constants.d.ts +3 -0
  163. package/build/backend/constants/headers/headers.constants.d.ts.map +1 -0
  164. package/build/backend/constants/headers/headers.constants.js +5 -0
  165. package/build/backend/constants/headers/index.d.ts +2 -0
  166. package/build/backend/constants/headers/index.d.ts.map +1 -0
  167. package/build/backend/constants/headers/index.js +17 -0
  168. package/build/backend/constants/index.d.ts +3 -0
  169. package/build/backend/constants/index.d.ts.map +1 -1
  170. package/build/backend/constants/index.js +3 -0
  171. package/build/backend/constants/messaging/index.d.ts +2 -0
  172. package/build/backend/constants/messaging/index.d.ts.map +1 -0
  173. package/build/backend/constants/messaging/index.js +17 -0
  174. package/build/backend/constants/messaging/messaging.constants.d.ts +13 -0
  175. package/build/backend/constants/messaging/messaging.constants.d.ts.map +1 -0
  176. package/build/backend/constants/messaging/messaging.constants.js +19 -0
  177. package/build/backend/constants/metrics/metric-names.constant.d.ts +17 -0
  178. package/build/backend/constants/metrics/metric-names.constant.d.ts.map +1 -1
  179. package/build/backend/constants/metrics/metric-names.constant.js +17 -0
  180. package/build/backend/constants/oauth2/index.d.ts +2 -0
  181. package/build/backend/constants/oauth2/index.d.ts.map +1 -0
  182. package/build/backend/constants/oauth2/index.js +17 -0
  183. package/build/backend/constants/oauth2/providers.contants.d.ts +9 -0
  184. package/build/backend/constants/oauth2/providers.contants.d.ts.map +1 -0
  185. package/build/backend/constants/oauth2/providers.contants.js +9 -0
  186. package/build/backend/constants/templates/template-keys.d.ts +1 -1
  187. package/build/backend/constants/templates/template-keys.d.ts.map +1 -1
  188. package/build/backend/constants/templates/template-keys.js +1 -0
  189. package/build/backend/models/api-tokens.schema.d.ts +0 -3
  190. package/build/backend/models/api-tokens.schema.d.ts.map +1 -1
  191. package/build/backend/models/api-tokens.schema.js +0 -1
  192. package/build/backend/models/{extented-users.schema.d.ts → extended-users.schema.d.ts} +1 -1
  193. package/build/backend/models/{extented-users.schema.d.ts.map → extended-users.schema.d.ts.map} +1 -1
  194. package/build/backend/models/hosts.schema.d.ts +21 -6
  195. package/build/backend/models/hosts.schema.d.ts.map +1 -1
  196. package/build/backend/models/hosts.schema.js +5 -2
  197. package/build/backend/models/index.d.ts +5 -1
  198. package/build/backend/models/index.d.ts.map +1 -1
  199. package/build/backend/models/index.js +5 -1
  200. package/build/backend/models/infra-billing-available-node.schema.d.ts +117 -0
  201. package/build/backend/models/infra-billing-available-node.schema.d.ts.map +1 -0
  202. package/build/backend/models/infra-billing-available-node.schema.js +9 -0
  203. package/build/backend/models/infra-billing-history-record.schema.d.ts +44 -0
  204. package/build/backend/models/infra-billing-history-record.schema.d.ts.map +1 -0
  205. package/build/backend/models/infra-billing-history-record.schema.js +19 -0
  206. package/build/backend/models/infra-billing-node.schema.d.ts +180 -0
  207. package/build/backend/models/infra-billing-node.schema.d.ts.map +1 -0
  208. package/build/backend/models/infra-billing-node.schema.js +34 -0
  209. package/build/backend/models/infra-provider.schema.d.ts +87 -0
  210. package/build/backend/models/infra-provider.schema.d.ts.map +1 -0
  211. package/build/backend/models/infra-provider.schema.js +41 -0
  212. package/build/backend/models/nodes.schema.d.ts +120 -46
  213. package/build/backend/models/nodes.schema.d.ts.map +1 -1
  214. package/build/backend/models/nodes.schema.js +8 -2
  215. package/build/frontend/api/controllers/auth.js +2 -0
  216. package/build/frontend/api/controllers/index.js +1 -0
  217. package/build/frontend/api/controllers/infra-billing.js +18 -0
  218. package/build/frontend/api/controllers/internal-squads.js +5 -0
  219. package/build/frontend/api/controllers/subscription.js +1 -0
  220. package/build/frontend/api/controllers/system.js +1 -0
  221. package/build/frontend/api/routes.js +22 -0
  222. package/build/frontend/commands/api-tokens/create.command.js +0 -1
  223. package/build/frontend/commands/auth/get-status.command.js +3 -0
  224. package/build/frontend/commands/auth/oauth2/authorize.command.js +20 -0
  225. package/build/frontend/commands/auth/oauth2/callback.command.js +22 -0
  226. package/build/frontend/commands/auth/oauth2/index.js +2 -0
  227. package/build/frontend/commands/config-profiles/create-config-profile.command.js +2 -2
  228. package/build/frontend/commands/hosts/create.command.js +13 -13
  229. package/build/frontend/commands/hosts/update.command.js +10 -11
  230. package/build/frontend/commands/index.js +1 -0
  231. package/build/frontend/commands/infra-billing/create-bill-record.command.js +30 -0
  232. package/build/frontend/commands/infra-billing/create-billing-node.command.js +38 -0
  233. package/build/frontend/commands/infra-billing/create-infra-provider.command.js +24 -0
  234. package/build/frontend/commands/infra-billing/delete-bill-record-by-uuid.command.js +22 -0
  235. package/build/frontend/commands/infra-billing/delete-billing-node-by-uuid.command.js +29 -0
  236. package/build/frontend/commands/infra-billing/delete-infra-provider-by-uuid.command.js +20 -0
  237. package/build/frontend/commands/infra-billing/get-bill-records.command.js +31 -0
  238. package/build/frontend/commands/infra-billing/get-billing-nodes.command.js +26 -0
  239. package/build/frontend/commands/infra-billing/get-infra-provider-by-uuid.command.js +19 -0
  240. package/build/frontend/commands/infra-billing/get-infra-providers.command.js +19 -0
  241. package/build/frontend/commands/infra-billing/index.js +28 -0
  242. package/build/frontend/commands/infra-billing/update-billing-node.command.js +35 -0
  243. package/build/frontend/commands/infra-billing/update-infra-provider.command.js +26 -0
  244. package/build/frontend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.js +20 -0
  245. package/build/frontend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.js +20 -0
  246. package/build/frontend/commands/internal-squads/bulk-actions/index.js +18 -0
  247. package/build/frontend/commands/internal-squads/create-internal-squad.command.js +2 -2
  248. package/build/frontend/commands/internal-squads/index.js +2 -1
  249. package/build/frontend/commands/nodes/create.command.js +7 -4
  250. package/build/frontend/commands/nodes/update.command.js +9 -4
  251. package/build/frontend/commands/subscription/get-raw-subscription-by-short-uuid.command.js +67 -0
  252. package/build/frontend/commands/subscription/index.js +1 -0
  253. package/build/frontend/commands/system/get-nodes-metrics.command.js +33 -0
  254. package/build/frontend/commands/system/index.js +1 -0
  255. package/build/frontend/commands/users/create-user.command.js +2 -4
  256. package/build/frontend/constants/errors/errors.js +115 -0
  257. package/build/frontend/constants/events/events.js +10 -0
  258. package/build/frontend/constants/headers/headers.constants.js +5 -0
  259. package/build/frontend/constants/headers/index.js +17 -0
  260. package/build/frontend/constants/index.js +3 -0
  261. package/build/frontend/constants/messaging/index.js +17 -0
  262. package/build/frontend/constants/messaging/messaging.constants.js +19 -0
  263. package/build/frontend/constants/metrics/metric-names.constant.js +17 -0
  264. package/build/frontend/constants/oauth2/index.js +17 -0
  265. package/build/frontend/constants/oauth2/providers.contants.js +9 -0
  266. package/build/frontend/constants/templates/template-keys.js +1 -0
  267. package/build/frontend/models/api-tokens.schema.js +0 -1
  268. package/build/frontend/models/hosts.schema.js +5 -2
  269. package/build/frontend/models/index.js +5 -1
  270. package/build/frontend/models/infra-billing-available-node.schema.js +9 -0
  271. package/build/frontend/models/infra-billing-history-record.schema.js +19 -0
  272. package/build/frontend/models/infra-billing-node.schema.js +34 -0
  273. package/build/frontend/models/infra-provider.schema.js +41 -0
  274. package/build/frontend/models/nodes.schema.js +8 -2
  275. package/package.json +2 -2
  276. package/build/backend/commands/internal-squads/get-internal-squad-by-uuid..d.ts.map +0 -1
  277. /package/build/backend/commands/internal-squads/{get-internal-squad-by-uuid..js → get-internal-squad-by-uuid.js} +0 -0
  278. /package/build/backend/models/{extented-users.schema.js → extended-users.schema.js} +0 -0
  279. /package/build/frontend/commands/internal-squads/{get-internal-squad-by-uuid..js → get-internal-squad-by-uuid.js} +0 -0
  280. /package/build/frontend/models/{extented-users.schema.js → extended-users.schema.js} +0 -0
@@ -13,23 +13,39 @@ export declare namespace CreateNodeCommand {
13
13
  trafficResetDay: z.ZodOptional<z.ZodNumber>;
14
14
  countryCode: z.ZodDefault<z.ZodString>;
15
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">>;
16
+ configProfile: z.ZodObject<{
17
+ activeConfigProfileUuid: z.ZodString;
18
+ activeInbounds: z.ZodArray<z.ZodString, "many">;
19
+ }, "strip", z.ZodTypeAny, {
20
+ activeConfigProfileUuid: string;
21
+ activeInbounds: string[];
22
+ }, {
23
+ activeConfigProfileUuid: string;
24
+ activeInbounds: string[];
25
+ }>;
26
+ providerUuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
18
27
  }, "strip", z.ZodTypeAny, {
19
28
  name: string;
20
29
  countryCode: string;
21
30
  address: string;
22
31
  isTrafficTrackingActive: boolean;
32
+ configProfile: {
33
+ activeConfigProfileUuid: string;
34
+ activeInbounds: string[];
35
+ };
23
36
  port?: number | undefined;
24
37
  trafficLimitBytes?: number | undefined;
25
38
  trafficResetDay?: number | undefined;
26
39
  notifyPercent?: number | undefined;
27
40
  consumptionMultiplier?: number | undefined;
28
- activeConfigProfileUuid?: string | undefined;
29
- activeInbounds?: string[] | undefined;
41
+ providerUuid?: string | null | undefined;
30
42
  }, {
31
43
  name: string;
32
44
  address: string;
45
+ configProfile: {
46
+ activeConfigProfileUuid: string;
47
+ activeInbounds: string[];
48
+ };
33
49
  port?: number | undefined;
34
50
  countryCode?: string | undefined;
35
51
  trafficLimitBytes?: number | undefined;
@@ -37,8 +53,7 @@ export declare namespace CreateNodeCommand {
37
53
  trafficResetDay?: number | undefined;
38
54
  notifyPercent?: number | undefined;
39
55
  consumptionMultiplier?: number | undefined;
40
- activeConfigProfileUuid?: string | undefined;
41
- activeInbounds?: string[] | undefined;
56
+ providerUuid?: string | null | undefined;
42
57
  }>;
43
58
  type Request = z.infer<typeof RequestSchema>;
44
59
  const ResponseSchema: z.ZodObject<{
@@ -55,6 +70,7 @@ export declare namespace CreateNodeCommand {
55
70
  lastStatusChange: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
56
71
  lastStatusMessage: z.ZodNullable<z.ZodString>;
57
72
  xrayVersion: z.ZodNullable<z.ZodString>;
73
+ nodeVersion: z.ZodNullable<z.ZodString>;
58
74
  xrayUptime: z.ZodString;
59
75
  isTrafficTrackingActive: z.ZodBoolean;
60
76
  trafficResetDay: z.ZodNullable<z.ZodNumber>;
@@ -70,39 +86,96 @@ export declare namespace CreateNodeCommand {
70
86
  totalRam: z.ZodNullable<z.ZodString>;
71
87
  createdAt: z.ZodEffects<z.ZodString, Date, string>;
72
88
  updatedAt: z.ZodEffects<z.ZodString, Date, string>;
73
- activeConfigProfileUuid: z.ZodNullable<z.ZodString>;
74
- activeInbounds: z.ZodNullable<z.ZodArray<z.ZodObject<{
89
+ configProfile: z.ZodObject<{
90
+ activeConfigProfileUuid: z.ZodNullable<z.ZodString>;
91
+ activeInbounds: z.ZodArray<z.ZodObject<{
92
+ uuid: z.ZodString;
93
+ profileUuid: z.ZodString;
94
+ tag: z.ZodString;
95
+ type: z.ZodString;
96
+ network: z.ZodNullable<z.ZodString>;
97
+ security: z.ZodNullable<z.ZodString>;
98
+ port: z.ZodNullable<z.ZodNumber>;
99
+ rawInbound: z.ZodNullable<z.ZodUnknown>;
100
+ }, "strip", z.ZodTypeAny, {
101
+ type: string;
102
+ uuid: string;
103
+ profileUuid: string;
104
+ tag: string;
105
+ network: string | null;
106
+ security: string | null;
107
+ port: number | null;
108
+ rawInbound?: unknown;
109
+ }, {
110
+ type: string;
111
+ uuid: string;
112
+ profileUuid: string;
113
+ tag: string;
114
+ network: string | null;
115
+ security: string | null;
116
+ port: number | null;
117
+ rawInbound?: unknown;
118
+ }>, "many">;
119
+ }, "strip", z.ZodTypeAny, {
120
+ activeConfigProfileUuid: string | null;
121
+ activeInbounds: {
122
+ type: string;
123
+ uuid: string;
124
+ profileUuid: string;
125
+ tag: string;
126
+ network: string | null;
127
+ security: string | null;
128
+ port: number | null;
129
+ rawInbound?: unknown;
130
+ }[];
131
+ }, {
132
+ activeConfigProfileUuid: string | null;
133
+ activeInbounds: {
134
+ type: string;
135
+ uuid: string;
136
+ profileUuid: string;
137
+ tag: string;
138
+ network: string | null;
139
+ security: string | null;
140
+ port: number | null;
141
+ rawInbound?: unknown;
142
+ }[];
143
+ }>;
144
+ providerUuid: z.ZodNullable<z.ZodString>;
145
+ provider: z.ZodNullable<z.ZodObject<{
75
146
  uuid: z.ZodString;
76
- profileUuid: z.ZodString;
77
- tag: z.ZodString;
78
- type: z.ZodString;
79
- network: z.ZodNullable<z.ZodString>;
80
- security: z.ZodNullable<z.ZodString>;
81
- port: z.ZodNullable<z.ZodNumber>;
82
- rawInbound: z.ZodNullable<z.ZodUnknown>;
147
+ name: z.ZodString;
148
+ faviconLink: z.ZodNullable<z.ZodString>;
149
+ loginUrl: z.ZodNullable<z.ZodString>;
150
+ createdAt: z.ZodEffects<z.ZodString, Date, string>;
151
+ updatedAt: z.ZodEffects<z.ZodString, Date, string>;
83
152
  }, "strip", z.ZodTypeAny, {
84
- type: string;
85
153
  uuid: string;
86
- profileUuid: string;
87
- tag: string;
88
- network: string | null;
89
- security: string | null;
90
- port: number | null;
91
- rawInbound?: unknown;
154
+ createdAt: Date;
155
+ updatedAt: Date;
156
+ name: string;
157
+ faviconLink: string | null;
158
+ loginUrl: string | null;
92
159
  }, {
93
- type: string;
94
160
  uuid: string;
95
- profileUuid: string;
96
- tag: string;
97
- network: string | null;
98
- security: string | null;
99
- port: number | null;
100
- rawInbound?: unknown;
101
- }>, "many">>;
161
+ createdAt: string;
162
+ updatedAt: string;
163
+ name: string;
164
+ faviconLink: string | null;
165
+ loginUrl: string | null;
166
+ }>>;
102
167
  }, "strip", z.ZodTypeAny, {
103
168
  uuid: string;
104
169
  createdAt: Date;
105
170
  updatedAt: Date;
171
+ provider: {
172
+ uuid: string;
173
+ createdAt: Date;
174
+ updatedAt: Date;
175
+ name: string;
176
+ faviconLink: string | null;
177
+ loginUrl: string | null;
178
+ } | null;
106
179
  name: string;
107
180
  port: number | null;
108
181
  countryCode: string;
@@ -117,6 +190,7 @@ export declare namespace CreateNodeCommand {
117
190
  lastStatusChange: Date | null;
118
191
  lastStatusMessage: string | null;
119
192
  xrayVersion: string | null;
193
+ nodeVersion: string | null;
120
194
  xrayUptime: string;
121
195
  isTrafficTrackingActive: boolean;
122
196
  trafficResetDay: number | null;
@@ -127,21 +201,32 @@ export declare namespace CreateNodeCommand {
127
201
  cpuCount: number | null;
128
202
  cpuModel: string | null;
129
203
  totalRam: string | null;
130
- activeConfigProfileUuid: string | null;
131
- activeInbounds: {
132
- type: string;
133
- uuid: string;
134
- profileUuid: string;
135
- tag: string;
136
- network: string | null;
137
- security: string | null;
138
- port: number | null;
139
- rawInbound?: unknown;
140
- }[] | null;
204
+ configProfile: {
205
+ activeConfigProfileUuid: string | null;
206
+ activeInbounds: {
207
+ type: string;
208
+ uuid: string;
209
+ profileUuid: string;
210
+ tag: string;
211
+ network: string | null;
212
+ security: string | null;
213
+ port: number | null;
214
+ rawInbound?: unknown;
215
+ }[];
216
+ };
217
+ providerUuid: string | null;
141
218
  }, {
142
219
  uuid: string;
143
220
  createdAt: string;
144
221
  updatedAt: string;
222
+ provider: {
223
+ uuid: string;
224
+ createdAt: string;
225
+ updatedAt: string;
226
+ name: string;
227
+ faviconLink: string | null;
228
+ loginUrl: string | null;
229
+ } | null;
145
230
  name: string;
146
231
  port: number | null;
147
232
  countryCode: string;
@@ -156,6 +241,7 @@ export declare namespace CreateNodeCommand {
156
241
  lastStatusChange: string | null;
157
242
  lastStatusMessage: string | null;
158
243
  xrayVersion: string | null;
244
+ nodeVersion: string | null;
159
245
  xrayUptime: string;
160
246
  isTrafficTrackingActive: boolean;
161
247
  trafficResetDay: number | null;
@@ -166,23 +252,34 @@ export declare namespace CreateNodeCommand {
166
252
  cpuCount: number | null;
167
253
  cpuModel: string | null;
168
254
  totalRam: string | null;
169
- activeConfigProfileUuid: string | null;
170
- activeInbounds: {
171
- type: string;
172
- uuid: string;
173
- profileUuid: string;
174
- tag: string;
175
- network: string | null;
176
- security: string | null;
177
- port: number | null;
178
- rawInbound?: unknown;
179
- }[] | null;
255
+ configProfile: {
256
+ activeConfigProfileUuid: string | null;
257
+ activeInbounds: {
258
+ type: string;
259
+ uuid: string;
260
+ profileUuid: string;
261
+ tag: string;
262
+ network: string | null;
263
+ security: string | null;
264
+ port: number | null;
265
+ rawInbound?: unknown;
266
+ }[];
267
+ };
268
+ providerUuid: string | null;
180
269
  }>;
181
270
  }, "strip", z.ZodTypeAny, {
182
271
  response: {
183
272
  uuid: string;
184
273
  createdAt: Date;
185
274
  updatedAt: Date;
275
+ provider: {
276
+ uuid: string;
277
+ createdAt: Date;
278
+ updatedAt: Date;
279
+ name: string;
280
+ faviconLink: string | null;
281
+ loginUrl: string | null;
282
+ } | null;
186
283
  name: string;
187
284
  port: number | null;
188
285
  countryCode: string;
@@ -197,6 +294,7 @@ export declare namespace CreateNodeCommand {
197
294
  lastStatusChange: Date | null;
198
295
  lastStatusMessage: string | null;
199
296
  xrayVersion: string | null;
297
+ nodeVersion: string | null;
200
298
  xrayUptime: string;
201
299
  isTrafficTrackingActive: boolean;
202
300
  trafficResetDay: number | null;
@@ -207,23 +305,34 @@ export declare namespace CreateNodeCommand {
207
305
  cpuCount: number | null;
208
306
  cpuModel: string | null;
209
307
  totalRam: string | null;
210
- activeConfigProfileUuid: string | null;
211
- activeInbounds: {
212
- type: string;
213
- uuid: string;
214
- profileUuid: string;
215
- tag: string;
216
- network: string | null;
217
- security: string | null;
218
- port: number | null;
219
- rawInbound?: unknown;
220
- }[] | null;
308
+ configProfile: {
309
+ activeConfigProfileUuid: string | null;
310
+ activeInbounds: {
311
+ type: string;
312
+ uuid: string;
313
+ profileUuid: string;
314
+ tag: string;
315
+ network: string | null;
316
+ security: string | null;
317
+ port: number | null;
318
+ rawInbound?: unknown;
319
+ }[];
320
+ };
321
+ providerUuid: string | null;
221
322
  };
222
323
  }, {
223
324
  response: {
224
325
  uuid: string;
225
326
  createdAt: string;
226
327
  updatedAt: string;
328
+ provider: {
329
+ uuid: string;
330
+ createdAt: string;
331
+ updatedAt: string;
332
+ name: string;
333
+ faviconLink: string | null;
334
+ loginUrl: string | null;
335
+ } | null;
227
336
  name: string;
228
337
  port: number | null;
229
338
  countryCode: string;
@@ -238,6 +347,7 @@ export declare namespace CreateNodeCommand {
238
347
  lastStatusChange: string | null;
239
348
  lastStatusMessage: string | null;
240
349
  xrayVersion: string | null;
350
+ nodeVersion: string | null;
241
351
  xrayUptime: string;
242
352
  isTrafficTrackingActive: boolean;
243
353
  trafficResetDay: number | null;
@@ -248,17 +358,20 @@ export declare namespace CreateNodeCommand {
248
358
  cpuCount: number | null;
249
359
  cpuModel: string | null;
250
360
  totalRam: string | null;
251
- activeConfigProfileUuid: string | null;
252
- activeInbounds: {
253
- type: string;
254
- uuid: string;
255
- profileUuid: string;
256
- tag: string;
257
- network: string | null;
258
- security: string | null;
259
- port: number | null;
260
- rawInbound?: unknown;
261
- }[] | null;
361
+ configProfile: {
362
+ activeConfigProfileUuid: string | null;
363
+ activeInbounds: {
364
+ type: string;
365
+ uuid: string;
366
+ profileUuid: string;
367
+ tag: string;
368
+ network: string | null;
369
+ security: string | null;
370
+ port: number | null;
371
+ rawInbound?: unknown;
372
+ }[];
373
+ };
374
+ providerUuid: string | null;
262
375
  };
263
376
  }>;
264
377
  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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAuCxB,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA0CxB,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"}
@@ -35,10 +35,13 @@ var CreateNodeCommand;
35
35
  .number()
36
36
  .min(0.1, 'Consumption multiplier must be greater than 0')
37
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
- })),
38
+ configProfile: zod_1.z.object({
39
+ activeConfigProfileUuid: zod_1.z.string().uuid(),
40
+ activeInbounds: zod_1.z.array(zod_1.z.string().uuid(), {
41
+ invalid_type_error: 'Config profile inbound UUID must be an array of UUIDs',
42
+ }),
43
+ }),
44
+ providerUuid: zod_1.z.optional(zod_1.z.nullable(zod_1.z.string().uuid())),
42
45
  });
43
46
  CreateNodeCommand.ResponseSchema = zod_1.z.object({
44
47
  response: models_1.NodesSchema,