@remnawave/backend-contract 2.0.0-alpha.9 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (260) hide show
  1. package/build/backend/api/controllers/auth.d.ts +2 -0
  2. package/build/backend/api/controllers/auth.d.ts.map +1 -1
  3. package/build/backend/api/controllers/auth.js +2 -0
  4. package/build/backend/api/controllers/infra-billing.d.ts +1 -1
  5. package/build/backend/api/controllers/infra-billing.d.ts.map +1 -1
  6. package/build/backend/api/controllers/infra-billing.js +1 -5
  7. package/build/backend/api/controllers/internal-squads.d.ts +4 -0
  8. package/build/backend/api/controllers/internal-squads.d.ts.map +1 -1
  9. package/build/backend/api/controllers/internal-squads.js +5 -0
  10. package/build/backend/api/controllers/subscription.d.ts +1 -0
  11. package/build/backend/api/controllers/subscription.d.ts.map +1 -1
  12. package/build/backend/api/controllers/subscription.js +1 -0
  13. package/build/backend/api/controllers/system.d.ts +1 -0
  14. package/build/backend/api/controllers/system.d.ts.map +1 -1
  15. package/build/backend/api/controllers/system.js +1 -0
  16. package/build/backend/api/routes.d.ts +9 -1
  17. package/build/backend/api/routes.d.ts.map +1 -1
  18. package/build/backend/api/routes.js +9 -1
  19. package/build/backend/commands/api-tokens/create.command.d.ts +0 -3
  20. package/build/backend/commands/api-tokens/create.command.d.ts.map +1 -1
  21. package/build/backend/commands/api-tokens/create.command.js +0 -1
  22. package/build/backend/commands/api-tokens/find.command.d.ts +0 -7
  23. package/build/backend/commands/api-tokens/find.command.d.ts.map +1 -1
  24. package/build/backend/commands/auth/get-status.command.d.ts +23 -0
  25. package/build/backend/commands/auth/get-status.command.d.ts.map +1 -1
  26. package/build/backend/commands/auth/get-status.command.js +3 -0
  27. package/build/backend/commands/auth/oauth2/authorize.command.d.ts +36 -0
  28. package/build/backend/commands/auth/oauth2/authorize.command.d.ts.map +1 -0
  29. package/build/backend/commands/auth/oauth2/authorize.command.js +20 -0
  30. package/build/backend/commands/auth/oauth2/callback.command.d.ts +43 -0
  31. package/build/backend/commands/auth/oauth2/callback.command.d.ts.map +1 -0
  32. package/build/backend/commands/auth/oauth2/callback.command.js +22 -0
  33. package/build/backend/commands/auth/oauth2/index.d.ts +2 -0
  34. package/build/backend/commands/auth/oauth2/index.d.ts.map +1 -1
  35. package/build/backend/commands/auth/oauth2/index.js +2 -0
  36. package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts +36 -10
  37. package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts.map +1 -1
  38. package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts +36 -10
  39. package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts.map +1 -1
  40. package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts +36 -10
  41. package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts.map +1 -1
  42. package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.d.ts +36 -10
  43. package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.d.ts.map +1 -1
  44. package/build/backend/commands/hosts/bulk/set-port-to-many-hosts.command.d.ts +36 -10
  45. package/build/backend/commands/hosts/bulk/set-port-to-many-hosts.command.d.ts.map +1 -1
  46. package/build/backend/commands/hosts/create.command.d.ts +60 -19
  47. package/build/backend/commands/hosts/create.command.d.ts.map +1 -1
  48. package/build/backend/commands/hosts/create.command.js +14 -13
  49. package/build/backend/commands/hosts/get-all.command.d.ts +36 -10
  50. package/build/backend/commands/hosts/get-all.command.d.ts.map +1 -1
  51. package/build/backend/commands/hosts/get-one.command.d.ts +36 -10
  52. package/build/backend/commands/hosts/get-one.command.d.ts.map +1 -1
  53. package/build/backend/commands/hosts/reorder.command.d.ts +12 -2
  54. package/build/backend/commands/hosts/reorder.command.d.ts.map +1 -1
  55. package/build/backend/commands/hosts/update.command.d.ts +72 -21
  56. package/build/backend/commands/hosts/update.command.d.ts.map +1 -1
  57. package/build/backend/commands/hosts/update.command.js +11 -11
  58. package/build/backend/commands/infra-billing/create-bill-record.command.d.ts +125 -0
  59. package/build/backend/commands/infra-billing/create-bill-record.command.d.ts.map +1 -0
  60. package/build/backend/commands/infra-billing/create-bill-record.command.js +30 -0
  61. package/build/backend/commands/infra-billing/create-billing-node.command.d.ts +467 -0
  62. package/build/backend/commands/infra-billing/create-billing-node.command.d.ts.map +1 -0
  63. package/build/backend/commands/infra-billing/create-billing-node.command.js +38 -0
  64. package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts +59 -0
  65. package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts.map +1 -1
  66. package/build/backend/commands/infra-billing/create-infra-provider.command.js +1 -1
  67. package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.d.ts +119 -0
  68. package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.d.ts.map +1 -0
  69. package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.js +22 -0
  70. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts +461 -0
  71. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts.map +1 -0
  72. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.js +29 -0
  73. package/build/backend/commands/infra-billing/get-bill-records.command.d.ts +122 -0
  74. package/build/backend/commands/infra-billing/get-bill-records.command.d.ts.map +1 -0
  75. package/build/backend/commands/infra-billing/get-bill-records.command.js +31 -0
  76. package/build/backend/commands/infra-billing/get-billing-nodes.command.d.ts +453 -0
  77. package/build/backend/commands/infra-billing/get-billing-nodes.command.d.ts.map +1 -0
  78. package/build/backend/commands/infra-billing/get-billing-nodes.command.js +26 -0
  79. package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts +59 -0
  80. package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts.map +1 -1
  81. package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts +77 -0
  82. package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts.map +1 -1
  83. package/build/backend/commands/infra-billing/index.d.ts +7 -0
  84. package/build/backend/commands/infra-billing/index.d.ts.map +1 -1
  85. package/build/backend/commands/infra-billing/index.js +7 -0
  86. package/build/backend/commands/infra-billing/update-billing-node.command.d.ts +464 -0
  87. package/build/backend/commands/infra-billing/update-billing-node.command.d.ts.map +1 -0
  88. package/build/backend/commands/infra-billing/update-billing-node.command.js +35 -0
  89. package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts +59 -0
  90. package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts.map +1 -1
  91. package/build/backend/commands/infra-billing/update-infra-provider.command.js +1 -1
  92. package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.d.ts +33 -0
  93. package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.d.ts.map +1 -0
  94. package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.js +20 -0
  95. package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.d.ts +33 -0
  96. package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.d.ts.map +1 -0
  97. package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.js +20 -0
  98. package/build/backend/commands/internal-squads/bulk-actions/index.d.ts +3 -0
  99. package/build/backend/commands/internal-squads/bulk-actions/index.d.ts.map +1 -0
  100. package/build/backend/commands/internal-squads/bulk-actions/index.js +18 -0
  101. package/build/backend/commands/internal-squads/{get-internal-squad-by-uuid..d.ts → get-internal-squad-by-uuid.d.ts} +1 -1
  102. package/build/backend/commands/internal-squads/get-internal-squad-by-uuid.d.ts.map +1 -0
  103. package/build/backend/commands/internal-squads/index.d.ts +2 -1
  104. package/build/backend/commands/internal-squads/index.d.ts.map +1 -1
  105. package/build/backend/commands/internal-squads/index.js +2 -1
  106. package/build/backend/commands/nodes/actions/disable.command.d.ts +140 -101
  107. package/build/backend/commands/nodes/actions/disable.command.d.ts.map +1 -1
  108. package/build/backend/commands/nodes/actions/enable.command.d.ts +140 -101
  109. package/build/backend/commands/nodes/actions/enable.command.d.ts.map +1 -1
  110. package/build/backend/commands/nodes/actions/reorder.command.d.ts +194 -128
  111. package/build/backend/commands/nodes/actions/reorder.command.d.ts.map +1 -1
  112. package/build/backend/commands/nodes/create.command.d.ts +158 -107
  113. package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
  114. package/build/backend/commands/nodes/create.command.js +6 -4
  115. package/build/backend/commands/nodes/get-all.command.d.ts +140 -101
  116. package/build/backend/commands/nodes/get-all.command.d.ts.map +1 -1
  117. package/build/backend/commands/nodes/get-one.command.d.ts +140 -101
  118. package/build/backend/commands/nodes/get-one.command.d.ts.map +1 -1
  119. package/build/backend/commands/nodes/stats/get-node-user-usage-by-range.command.d.ts +4 -4
  120. package/build/backend/commands/nodes/stats/get-nodes-usage-by-range.command.d.ts +4 -4
  121. package/build/backend/commands/nodes/update.command.d.ts +212 -134
  122. package/build/backend/commands/nodes/update.command.d.ts.map +1 -1
  123. package/build/backend/commands/nodes/update.command.js +8 -4
  124. package/build/backend/commands/subscription/get-raw-subscription-by-short-uuid.command.d.ts +361 -0
  125. package/build/backend/commands/subscription/get-raw-subscription-by-short-uuid.command.d.ts.map +1 -0
  126. package/build/backend/commands/subscription/get-raw-subscription-by-short-uuid.command.js +68 -0
  127. package/build/backend/commands/subscription/get-subscription-info-by-short-uuid.command.d.ts +4 -4
  128. package/build/backend/commands/subscription/index.d.ts +1 -0
  129. package/build/backend/commands/subscription/index.d.ts.map +1 -1
  130. package/build/backend/commands/subscription/index.js +1 -0
  131. package/build/backend/commands/subscriptions/get-all-subscriptions.command.d.ts +6 -6
  132. package/build/backend/commands/subscriptions/get-by/get-subscription-by-username.command.d.ts +4 -4
  133. package/build/backend/commands/system/get-nodes-metrics.command.d.ts +153 -0
  134. package/build/backend/commands/system/get-nodes-metrics.command.d.ts.map +1 -0
  135. package/build/backend/commands/system/get-nodes-metrics.command.js +33 -0
  136. package/build/backend/commands/system/index.d.ts +1 -0
  137. package/build/backend/commands/system/index.d.ts.map +1 -1
  138. package/build/backend/commands/system/index.js +1 -0
  139. package/build/backend/commands/users/create-user.command.d.ts +6 -6
  140. package/build/backend/commands/users/create-user.command.d.ts.map +1 -1
  141. package/build/backend/commands/users/create-user.command.js +2 -4
  142. package/build/backend/commands/users/get-user-usage-by-range.command.d.ts +4 -4
  143. package/build/backend/constants/errors/errors.d.ts +85 -0
  144. package/build/backend/constants/errors/errors.d.ts.map +1 -1
  145. package/build/backend/constants/errors/errors.js +85 -0
  146. package/build/backend/constants/events/events.d.ts +11 -0
  147. package/build/backend/constants/events/events.d.ts.map +1 -1
  148. package/build/backend/constants/events/events.js +10 -0
  149. package/build/backend/constants/headers/headers.constants.d.ts +3 -0
  150. package/build/backend/constants/headers/headers.constants.d.ts.map +1 -0
  151. package/build/backend/constants/headers/headers.constants.js +5 -0
  152. package/build/backend/constants/headers/index.d.ts +2 -0
  153. package/build/backend/constants/headers/index.d.ts.map +1 -0
  154. package/build/backend/constants/headers/index.js +17 -0
  155. package/build/backend/constants/index.d.ts +3 -0
  156. package/build/backend/constants/index.d.ts.map +1 -1
  157. package/build/backend/constants/index.js +3 -0
  158. package/build/backend/constants/messaging/index.d.ts +2 -0
  159. package/build/backend/constants/messaging/index.d.ts.map +1 -0
  160. package/build/backend/constants/messaging/index.js +17 -0
  161. package/build/backend/constants/messaging/messaging.constants.d.ts +13 -0
  162. package/build/backend/constants/messaging/messaging.constants.d.ts.map +1 -0
  163. package/build/backend/constants/messaging/messaging.constants.js +19 -0
  164. package/build/backend/constants/metrics/metric-names.constant.d.ts +17 -0
  165. package/build/backend/constants/metrics/metric-names.constant.d.ts.map +1 -1
  166. package/build/backend/constants/metrics/metric-names.constant.js +17 -0
  167. package/build/backend/constants/oauth2/index.d.ts +2 -0
  168. package/build/backend/constants/oauth2/index.d.ts.map +1 -0
  169. package/build/backend/constants/oauth2/index.js +17 -0
  170. package/build/backend/constants/oauth2/providers.contants.d.ts +9 -0
  171. package/build/backend/constants/oauth2/providers.contants.d.ts.map +1 -0
  172. package/build/backend/constants/oauth2/providers.contants.js +9 -0
  173. package/build/backend/constants/templates/template-keys.d.ts +1 -1
  174. package/build/backend/constants/templates/template-keys.d.ts.map +1 -1
  175. package/build/backend/constants/templates/template-keys.js +1 -0
  176. package/build/backend/models/api-tokens.schema.d.ts +0 -3
  177. package/build/backend/models/api-tokens.schema.d.ts.map +1 -1
  178. package/build/backend/models/api-tokens.schema.js +0 -1
  179. package/build/backend/models/{extented-users.schema.d.ts → extended-users.schema.d.ts} +1 -1
  180. package/build/backend/models/{extented-users.schema.d.ts.map → extended-users.schema.d.ts.map} +1 -1
  181. package/build/backend/models/hosts.schema.d.ts +24 -6
  182. package/build/backend/models/hosts.schema.d.ts.map +1 -1
  183. package/build/backend/models/hosts.schema.js +6 -2
  184. package/build/backend/models/index.d.ts +4 -1
  185. package/build/backend/models/index.d.ts.map +1 -1
  186. package/build/backend/models/index.js +4 -1
  187. package/build/backend/models/infra-billing-available-node.schema.d.ts +117 -0
  188. package/build/backend/models/infra-billing-available-node.schema.d.ts.map +1 -0
  189. package/build/backend/models/infra-billing-available-node.schema.js +9 -0
  190. package/build/backend/models/infra-billing-history-record.schema.d.ts +44 -0
  191. package/build/backend/models/infra-billing-history-record.schema.d.ts.map +1 -0
  192. package/build/backend/models/infra-billing-history-record.schema.js +19 -0
  193. package/build/backend/models/infra-billing-node.schema.d.ts +180 -0
  194. package/build/backend/models/infra-billing-node.schema.d.ts.map +1 -0
  195. package/build/backend/models/infra-billing-node.schema.js +34 -0
  196. package/build/backend/models/infra-provider.schema.d.ts +63 -0
  197. package/build/backend/models/infra-provider.schema.d.ts.map +1 -1
  198. package/build/backend/models/infra-provider.schema.js +24 -1
  199. package/build/backend/models/nodes.schema.d.ts +96 -63
  200. package/build/backend/models/nodes.schema.d.ts.map +1 -1
  201. package/build/backend/models/nodes.schema.js +6 -3
  202. package/build/frontend/api/controllers/auth.js +2 -0
  203. package/build/frontend/api/controllers/infra-billing.js +1 -5
  204. package/build/frontend/api/controllers/internal-squads.js +5 -0
  205. package/build/frontend/api/controllers/subscription.js +1 -0
  206. package/build/frontend/api/controllers/system.js +1 -0
  207. package/build/frontend/api/routes.js +9 -1
  208. package/build/frontend/commands/api-tokens/create.command.js +0 -1
  209. package/build/frontend/commands/auth/get-status.command.js +3 -0
  210. package/build/frontend/commands/auth/oauth2/authorize.command.js +20 -0
  211. package/build/frontend/commands/auth/oauth2/callback.command.js +22 -0
  212. package/build/frontend/commands/auth/oauth2/index.js +2 -0
  213. package/build/frontend/commands/hosts/create.command.js +14 -13
  214. package/build/frontend/commands/hosts/update.command.js +11 -11
  215. package/build/frontend/commands/infra-billing/create-bill-record.command.js +30 -0
  216. package/build/frontend/commands/infra-billing/create-billing-node.command.js +38 -0
  217. package/build/frontend/commands/infra-billing/create-infra-provider.command.js +1 -1
  218. package/build/frontend/commands/infra-billing/delete-bill-record-by-uuid.command.js +22 -0
  219. package/build/frontend/commands/infra-billing/delete-billing-node-by-uuid.command.js +29 -0
  220. package/build/frontend/commands/infra-billing/get-bill-records.command.js +31 -0
  221. package/build/frontend/commands/infra-billing/get-billing-nodes.command.js +26 -0
  222. package/build/frontend/commands/infra-billing/index.js +7 -0
  223. package/build/frontend/commands/infra-billing/update-billing-node.command.js +35 -0
  224. package/build/frontend/commands/infra-billing/update-infra-provider.command.js +1 -1
  225. package/build/frontend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.js +20 -0
  226. package/build/frontend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.js +20 -0
  227. package/build/frontend/commands/internal-squads/bulk-actions/index.js +18 -0
  228. package/build/frontend/commands/internal-squads/index.js +2 -1
  229. package/build/frontend/commands/nodes/create.command.js +6 -4
  230. package/build/frontend/commands/nodes/update.command.js +8 -4
  231. package/build/frontend/commands/subscription/get-raw-subscription-by-short-uuid.command.js +68 -0
  232. package/build/frontend/commands/subscription/index.js +1 -0
  233. package/build/frontend/commands/system/get-nodes-metrics.command.js +33 -0
  234. package/build/frontend/commands/system/index.js +1 -0
  235. package/build/frontend/commands/users/create-user.command.js +2 -4
  236. package/build/frontend/constants/errors/errors.js +85 -0
  237. package/build/frontend/constants/events/events.js +10 -0
  238. package/build/frontend/constants/headers/headers.constants.js +5 -0
  239. package/build/frontend/constants/headers/index.js +17 -0
  240. package/build/frontend/constants/index.js +3 -0
  241. package/build/frontend/constants/messaging/index.js +17 -0
  242. package/build/frontend/constants/messaging/messaging.constants.js +19 -0
  243. package/build/frontend/constants/metrics/metric-names.constant.js +17 -0
  244. package/build/frontend/constants/oauth2/index.js +17 -0
  245. package/build/frontend/constants/oauth2/providers.contants.js +9 -0
  246. package/build/frontend/constants/templates/template-keys.js +1 -0
  247. package/build/frontend/models/api-tokens.schema.js +0 -1
  248. package/build/frontend/models/hosts.schema.js +6 -2
  249. package/build/frontend/models/index.js +4 -1
  250. package/build/frontend/models/infra-billing-available-node.schema.js +9 -0
  251. package/build/frontend/models/infra-billing-history-record.schema.js +19 -0
  252. package/build/frontend/models/infra-billing-node.schema.js +34 -0
  253. package/build/frontend/models/infra-provider.schema.js +24 -1
  254. package/build/frontend/models/nodes.schema.js +6 -3
  255. package/package.json +2 -2
  256. package/build/backend/commands/internal-squads/get-internal-squad-by-uuid..d.ts.map +0 -1
  257. /package/build/backend/commands/internal-squads/{get-internal-squad-by-uuid..js → get-internal-squad-by-uuid.js} +0 -0
  258. /package/build/backend/models/{extented-users.schema.js → extended-users.schema.js} +0 -0
  259. /package/build/frontend/commands/internal-squads/{get-internal-squad-by-uuid..js → get-internal-squad-by-uuid.js} +0 -0
  260. /package/build/frontend/models/{extented-users.schema.js → extended-users.schema.js} +0 -0
@@ -16,6 +16,7 @@ export declare namespace UpdateNodeCommand {
16
16
  lastStatusChange: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
17
17
  lastStatusMessage: z.ZodNullable<z.ZodString>;
18
18
  xrayVersion: z.ZodNullable<z.ZodString>;
19
+ nodeVersion: z.ZodNullable<z.ZodString>;
19
20
  xrayUptime: z.ZodString;
20
21
  isTrafficTrackingActive: z.ZodBoolean;
21
22
  trafficResetDay: z.ZodNullable<z.ZodNumber>;
@@ -31,35 +32,61 @@ export declare namespace UpdateNodeCommand {
31
32
  totalRam: z.ZodNullable<z.ZodString>;
32
33
  createdAt: z.ZodEffects<z.ZodString, Date, string>;
33
34
  updatedAt: z.ZodEffects<z.ZodString, Date, string>;
34
- activeConfigProfileUuid: z.ZodNullable<z.ZodString>;
35
- activeInbounds: z.ZodNullable<z.ZodArray<z.ZodObject<{
36
- uuid: z.ZodString;
37
- profileUuid: z.ZodString;
38
- tag: z.ZodString;
39
- type: z.ZodString;
40
- network: z.ZodNullable<z.ZodString>;
41
- security: z.ZodNullable<z.ZodString>;
42
- port: z.ZodNullable<z.ZodNumber>;
43
- rawInbound: z.ZodNullable<z.ZodUnknown>;
35
+ configProfile: z.ZodObject<{
36
+ activeConfigProfileUuid: z.ZodNullable<z.ZodString>;
37
+ activeInbounds: z.ZodArray<z.ZodObject<{
38
+ uuid: z.ZodString;
39
+ profileUuid: z.ZodString;
40
+ tag: z.ZodString;
41
+ type: z.ZodString;
42
+ network: z.ZodNullable<z.ZodString>;
43
+ security: z.ZodNullable<z.ZodString>;
44
+ port: z.ZodNullable<z.ZodNumber>;
45
+ rawInbound: z.ZodNullable<z.ZodUnknown>;
46
+ }, "strip", z.ZodTypeAny, {
47
+ type: string;
48
+ uuid: string;
49
+ profileUuid: string;
50
+ tag: string;
51
+ network: string | null;
52
+ security: string | null;
53
+ port: number | null;
54
+ rawInbound?: unknown;
55
+ }, {
56
+ type: string;
57
+ uuid: string;
58
+ profileUuid: string;
59
+ tag: string;
60
+ network: string | null;
61
+ security: string | null;
62
+ port: number | null;
63
+ rawInbound?: unknown;
64
+ }>, "many">;
44
65
  }, "strip", z.ZodTypeAny, {
45
- type: string;
46
- uuid: string;
47
- profileUuid: string;
48
- tag: string;
49
- network: string | null;
50
- security: string | null;
51
- port: number | null;
52
- rawInbound?: unknown;
66
+ activeConfigProfileUuid: string | null;
67
+ activeInbounds: {
68
+ type: string;
69
+ uuid: string;
70
+ profileUuid: string;
71
+ tag: string;
72
+ network: string | null;
73
+ security: string | null;
74
+ port: number | null;
75
+ rawInbound?: unknown;
76
+ }[];
53
77
  }, {
54
- type: string;
55
- uuid: string;
56
- profileUuid: string;
57
- tag: string;
58
- network: string | null;
59
- security: string | null;
60
- port: number | null;
61
- rawInbound?: unknown;
62
- }>, "many">>;
78
+ activeConfigProfileUuid: string | null;
79
+ activeInbounds: {
80
+ type: string;
81
+ uuid: string;
82
+ profileUuid: string;
83
+ tag: string;
84
+ network: string | null;
85
+ security: string | null;
86
+ port: number | null;
87
+ rawInbound?: unknown;
88
+ }[];
89
+ }>;
63
90
  providerUuid: z.ZodNullable<z.ZodString>;
64
91
  provider: z.ZodNullable<z.ZodObject<{
65
92
  uuid: z.ZodString;
@@ -93,8 +120,16 @@ export declare namespace UpdateNodeCommand {
93
120
  trafficResetDay: z.ZodOptional<z.ZodNumber>;
94
121
  countryCode: z.ZodOptional<z.ZodString>;
95
122
  consumptionMultiplier: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
96
- activeConfigProfileUuid: z.ZodOptional<z.ZodString>;
97
- activeInbounds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
123
+ configProfile: z.ZodOptional<z.ZodObject<{
124
+ activeConfigProfileUuid: z.ZodString;
125
+ activeInbounds: z.ZodArray<z.ZodString, "many">;
126
+ }, "strip", z.ZodTypeAny, {
127
+ activeConfigProfileUuid: string;
128
+ activeInbounds: string[];
129
+ }, {
130
+ activeConfigProfileUuid: string;
131
+ activeInbounds: string[];
132
+ }>>;
98
133
  providerUuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
99
134
  }, "strip", z.ZodTypeAny, {
100
135
  uuid: string;
@@ -107,8 +142,10 @@ export declare namespace UpdateNodeCommand {
107
142
  trafficResetDay?: number | undefined;
108
143
  notifyPercent?: number | undefined;
109
144
  consumptionMultiplier?: number | undefined;
110
- activeConfigProfileUuid?: string | undefined;
111
- activeInbounds?: string[] | undefined;
145
+ configProfile?: {
146
+ activeConfigProfileUuid: string;
147
+ activeInbounds: string[];
148
+ } | undefined;
112
149
  providerUuid?: string | null | undefined;
113
150
  }, {
114
151
  uuid: string;
@@ -121,8 +158,10 @@ export declare namespace UpdateNodeCommand {
121
158
  trafficResetDay?: number | undefined;
122
159
  notifyPercent?: number | undefined;
123
160
  consumptionMultiplier?: number | undefined;
124
- activeConfigProfileUuid?: string | undefined;
125
- activeInbounds?: string[] | undefined;
161
+ configProfile?: {
162
+ activeConfigProfileUuid: string;
163
+ activeInbounds: string[];
164
+ } | undefined;
126
165
  providerUuid?: string | null | undefined;
127
166
  }>;
128
167
  type Request = z.infer<typeof RequestSchema>;
@@ -140,6 +179,7 @@ export declare namespace UpdateNodeCommand {
140
179
  lastStatusChange: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
141
180
  lastStatusMessage: z.ZodNullable<z.ZodString>;
142
181
  xrayVersion: z.ZodNullable<z.ZodString>;
182
+ nodeVersion: z.ZodNullable<z.ZodString>;
143
183
  xrayUptime: z.ZodString;
144
184
  isTrafficTrackingActive: z.ZodBoolean;
145
185
  trafficResetDay: z.ZodNullable<z.ZodNumber>;
@@ -155,35 +195,61 @@ export declare namespace UpdateNodeCommand {
155
195
  totalRam: z.ZodNullable<z.ZodString>;
156
196
  createdAt: z.ZodEffects<z.ZodString, Date, string>;
157
197
  updatedAt: z.ZodEffects<z.ZodString, Date, string>;
158
- activeConfigProfileUuid: z.ZodNullable<z.ZodString>;
159
- activeInbounds: z.ZodNullable<z.ZodArray<z.ZodObject<{
160
- uuid: z.ZodString;
161
- profileUuid: z.ZodString;
162
- tag: z.ZodString;
163
- type: z.ZodString;
164
- network: z.ZodNullable<z.ZodString>;
165
- security: z.ZodNullable<z.ZodString>;
166
- port: z.ZodNullable<z.ZodNumber>;
167
- rawInbound: z.ZodNullable<z.ZodUnknown>;
198
+ configProfile: z.ZodObject<{
199
+ activeConfigProfileUuid: z.ZodNullable<z.ZodString>;
200
+ activeInbounds: z.ZodArray<z.ZodObject<{
201
+ uuid: z.ZodString;
202
+ profileUuid: z.ZodString;
203
+ tag: z.ZodString;
204
+ type: z.ZodString;
205
+ network: z.ZodNullable<z.ZodString>;
206
+ security: z.ZodNullable<z.ZodString>;
207
+ port: z.ZodNullable<z.ZodNumber>;
208
+ rawInbound: z.ZodNullable<z.ZodUnknown>;
209
+ }, "strip", z.ZodTypeAny, {
210
+ type: string;
211
+ uuid: string;
212
+ profileUuid: string;
213
+ tag: string;
214
+ network: string | null;
215
+ security: string | null;
216
+ port: number | null;
217
+ rawInbound?: unknown;
218
+ }, {
219
+ type: string;
220
+ uuid: string;
221
+ profileUuid: string;
222
+ tag: string;
223
+ network: string | null;
224
+ security: string | null;
225
+ port: number | null;
226
+ rawInbound?: unknown;
227
+ }>, "many">;
168
228
  }, "strip", z.ZodTypeAny, {
169
- type: string;
170
- uuid: string;
171
- profileUuid: string;
172
- tag: string;
173
- network: string | null;
174
- security: string | null;
175
- port: number | null;
176
- rawInbound?: unknown;
229
+ activeConfigProfileUuid: string | null;
230
+ activeInbounds: {
231
+ type: string;
232
+ uuid: string;
233
+ profileUuid: string;
234
+ tag: string;
235
+ network: string | null;
236
+ security: string | null;
237
+ port: number | null;
238
+ rawInbound?: unknown;
239
+ }[];
177
240
  }, {
178
- type: string;
179
- uuid: string;
180
- profileUuid: string;
181
- tag: string;
182
- network: string | null;
183
- security: string | null;
184
- port: number | null;
185
- rawInbound?: unknown;
186
- }>, "many">>;
241
+ activeConfigProfileUuid: string | null;
242
+ activeInbounds: {
243
+ type: string;
244
+ uuid: string;
245
+ profileUuid: string;
246
+ tag: string;
247
+ network: string | null;
248
+ security: string | null;
249
+ port: number | null;
250
+ rawInbound?: unknown;
251
+ }[];
252
+ }>;
187
253
  providerUuid: z.ZodNullable<z.ZodString>;
188
254
  provider: z.ZodNullable<z.ZodObject<{
189
255
  uuid: z.ZodString;
@@ -211,6 +277,14 @@ export declare namespace UpdateNodeCommand {
211
277
  uuid: string;
212
278
  createdAt: Date;
213
279
  updatedAt: Date;
280
+ provider: {
281
+ uuid: string;
282
+ createdAt: Date;
283
+ updatedAt: Date;
284
+ name: string;
285
+ faviconLink: string | null;
286
+ loginUrl: string | null;
287
+ } | null;
214
288
  name: string;
215
289
  port: number | null;
216
290
  countryCode: string;
@@ -225,6 +299,7 @@ export declare namespace UpdateNodeCommand {
225
299
  lastStatusChange: Date | null;
226
300
  lastStatusMessage: string | null;
227
301
  xrayVersion: string | null;
302
+ nodeVersion: string | null;
228
303
  xrayUptime: string;
229
304
  isTrafficTrackingActive: boolean;
230
305
  trafficResetDay: number | null;
@@ -235,30 +310,32 @@ export declare namespace UpdateNodeCommand {
235
310
  cpuCount: number | null;
236
311
  cpuModel: string | null;
237
312
  totalRam: string | null;
238
- activeConfigProfileUuid: string | null;
239
- activeInbounds: {
240
- type: string;
241
- uuid: string;
242
- profileUuid: string;
243
- tag: string;
244
- network: string | null;
245
- security: string | null;
246
- port: number | null;
247
- rawInbound?: unknown;
248
- }[] | null;
313
+ configProfile: {
314
+ activeConfigProfileUuid: string | null;
315
+ activeInbounds: {
316
+ type: string;
317
+ uuid: string;
318
+ profileUuid: string;
319
+ tag: string;
320
+ network: string | null;
321
+ security: string | null;
322
+ port: number | null;
323
+ rawInbound?: unknown;
324
+ }[];
325
+ };
249
326
  providerUuid: string | null;
327
+ }, {
328
+ uuid: string;
329
+ createdAt: string;
330
+ updatedAt: string;
250
331
  provider: {
251
332
  uuid: string;
252
- createdAt: Date;
253
- updatedAt: Date;
333
+ createdAt: string;
334
+ updatedAt: string;
254
335
  name: string;
255
336
  faviconLink: string | null;
256
337
  loginUrl: string | null;
257
338
  } | null;
258
- }, {
259
- uuid: string;
260
- createdAt: string;
261
- updatedAt: string;
262
339
  name: string;
263
340
  port: number | null;
264
341
  countryCode: string;
@@ -273,6 +350,7 @@ export declare namespace UpdateNodeCommand {
273
350
  lastStatusChange: string | null;
274
351
  lastStatusMessage: string | null;
275
352
  xrayVersion: string | null;
353
+ nodeVersion: string | null;
276
354
  xrayUptime: string;
277
355
  isTrafficTrackingActive: boolean;
278
356
  trafficResetDay: number | null;
@@ -283,32 +361,34 @@ export declare namespace UpdateNodeCommand {
283
361
  cpuCount: number | null;
284
362
  cpuModel: string | null;
285
363
  totalRam: string | null;
286
- activeConfigProfileUuid: string | null;
287
- activeInbounds: {
288
- type: string;
289
- uuid: string;
290
- profileUuid: string;
291
- tag: string;
292
- network: string | null;
293
- security: string | null;
294
- port: number | null;
295
- rawInbound?: unknown;
296
- }[] | null;
364
+ configProfile: {
365
+ activeConfigProfileUuid: string | null;
366
+ activeInbounds: {
367
+ type: string;
368
+ uuid: string;
369
+ profileUuid: string;
370
+ tag: string;
371
+ network: string | null;
372
+ security: string | null;
373
+ port: number | null;
374
+ rawInbound?: unknown;
375
+ }[];
376
+ };
297
377
  providerUuid: string | null;
298
- provider: {
299
- uuid: string;
300
- createdAt: string;
301
- updatedAt: string;
302
- name: string;
303
- faviconLink: string | null;
304
- loginUrl: string | null;
305
- } | null;
306
378
  }>;
307
379
  }, "strip", z.ZodTypeAny, {
308
380
  response: {
309
381
  uuid: string;
310
382
  createdAt: Date;
311
383
  updatedAt: Date;
384
+ provider: {
385
+ uuid: string;
386
+ createdAt: Date;
387
+ updatedAt: Date;
388
+ name: string;
389
+ faviconLink: string | null;
390
+ loginUrl: string | null;
391
+ } | null;
312
392
  name: string;
313
393
  port: number | null;
314
394
  countryCode: string;
@@ -323,6 +403,7 @@ export declare namespace UpdateNodeCommand {
323
403
  lastStatusChange: Date | null;
324
404
  lastStatusMessage: string | null;
325
405
  xrayVersion: string | null;
406
+ nodeVersion: string | null;
326
407
  xrayUptime: string;
327
408
  isTrafficTrackingActive: boolean;
328
409
  trafficResetDay: number | null;
@@ -333,32 +414,34 @@ export declare namespace UpdateNodeCommand {
333
414
  cpuCount: number | null;
334
415
  cpuModel: string | null;
335
416
  totalRam: string | null;
336
- activeConfigProfileUuid: string | null;
337
- activeInbounds: {
338
- type: string;
339
- uuid: string;
340
- profileUuid: string;
341
- tag: string;
342
- network: string | null;
343
- security: string | null;
344
- port: number | null;
345
- rawInbound?: unknown;
346
- }[] | null;
417
+ configProfile: {
418
+ activeConfigProfileUuid: string | null;
419
+ activeInbounds: {
420
+ type: string;
421
+ uuid: string;
422
+ profileUuid: string;
423
+ tag: string;
424
+ network: string | null;
425
+ security: string | null;
426
+ port: number | null;
427
+ rawInbound?: unknown;
428
+ }[];
429
+ };
347
430
  providerUuid: string | null;
348
- provider: {
349
- uuid: string;
350
- createdAt: Date;
351
- updatedAt: Date;
352
- name: string;
353
- faviconLink: string | null;
354
- loginUrl: string | null;
355
- } | null;
356
431
  };
357
432
  }, {
358
433
  response: {
359
434
  uuid: string;
360
435
  createdAt: string;
361
436
  updatedAt: string;
437
+ provider: {
438
+ uuid: string;
439
+ createdAt: string;
440
+ updatedAt: string;
441
+ name: string;
442
+ faviconLink: string | null;
443
+ loginUrl: string | null;
444
+ } | null;
362
445
  name: string;
363
446
  port: number | null;
364
447
  countryCode: string;
@@ -373,6 +456,7 @@ export declare namespace UpdateNodeCommand {
373
456
  lastStatusChange: string | null;
374
457
  lastStatusMessage: string | null;
375
458
  xrayVersion: string | null;
459
+ nodeVersion: string | null;
376
460
  xrayUptime: string;
377
461
  isTrafficTrackingActive: boolean;
378
462
  trafficResetDay: number | null;
@@ -383,26 +467,20 @@ export declare namespace UpdateNodeCommand {
383
467
  cpuCount: number | null;
384
468
  cpuModel: string | null;
385
469
  totalRam: string | null;
386
- activeConfigProfileUuid: string | null;
387
- activeInbounds: {
388
- type: string;
389
- uuid: string;
390
- profileUuid: string;
391
- tag: string;
392
- network: string | null;
393
- security: string | null;
394
- port: number | null;
395
- rawInbound?: unknown;
396
- }[] | null;
470
+ configProfile: {
471
+ activeConfigProfileUuid: string | null;
472
+ activeInbounds: {
473
+ type: string;
474
+ uuid: string;
475
+ profileUuid: string;
476
+ tag: string;
477
+ network: string | null;
478
+ security: string | null;
479
+ port: number | null;
480
+ rawInbound?: unknown;
481
+ }[];
482
+ };
397
483
  providerUuid: string | null;
398
- provider: {
399
- uuid: string;
400
- createdAt: string;
401
- updatedAt: string;
402
- name: string;
403
- faviconLink: string | null;
404
- loginUrl: string | null;
405
- } | null;
406
484
  };
407
485
  }>;
408
486
  type Response = z.infer<typeof ResponseSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"update.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/update.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,eAAwB,CAAC;IAClC,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAAkE,CAAC;IAExF,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAoCxB,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":"update.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/update.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,eAAwB,CAAC;IAClC,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAAkE,CAAC;IAExF,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"}
@@ -31,10 +31,14 @@ var UpdateNodeCommand;
31
31
  .number()
32
32
  .min(0.1, 'Consumption multiplier must be greater than 0')
33
33
  .transform((n) => Number(n.toFixed(1)))),
34
- activeConfigProfileUuid: zod_1.z.optional(zod_1.z.string().uuid()),
35
- activeInbounds: zod_1.z.optional(zod_1.z.array(zod_1.z.string().uuid(), {
36
- invalid_type_error: 'Active inbounds must be an array of UUIDs',
37
- })),
34
+ configProfile: zod_1.z
35
+ .object({
36
+ activeConfigProfileUuid: zod_1.z.string().uuid(),
37
+ activeInbounds: zod_1.z.array(zod_1.z.string().uuid(), {
38
+ invalid_type_error: 'Must be an array of UUIDs',
39
+ }),
40
+ })
41
+ .optional(),
38
42
  providerUuid: zod_1.z.optional(zod_1.z.nullable(zod_1.z.string().uuid())),
39
43
  });
40
44
  UpdateNodeCommand.ResponseSchema = zod_1.z.object({