@remnawave/backend-contract 2.9.3 → 2.9.5

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 (767) hide show
  1. package/build/backend/commands/api-tokens/create.command.d.ts +9 -54
  2. package/build/backend/commands/api-tokens/create.command.d.ts.map +1 -1
  3. package/build/backend/commands/api-tokens/delete.command.d.ts +2 -6
  4. package/build/backend/commands/api-tokens/delete.command.d.ts.map +1 -1
  5. package/build/backend/commands/api-tokens/delete.command.js +1 -1
  6. package/build/backend/commands/api-tokens/get-api-tokens.command.d.ts +9 -91
  7. package/build/backend/commands/api-tokens/get-api-tokens.command.d.ts.map +1 -1
  8. package/build/backend/commands/api-tokens/get-scopes.command.d.ts +21 -144
  9. package/build/backend/commands/api-tokens/get-scopes.command.d.ts.map +1 -1
  10. package/build/backend/commands/auth/get-status.command.d.ts +8 -122
  11. package/build/backend/commands/auth/get-status.command.d.ts.map +1 -1
  12. package/build/backend/commands/auth/get-status.command.js +1 -1
  13. package/build/backend/commands/auth/login.command.d.ts +3 -21
  14. package/build/backend/commands/auth/login.command.d.ts.map +1 -1
  15. package/build/backend/commands/auth/oauth2/authorize.command.d.ts +5 -21
  16. package/build/backend/commands/auth/oauth2/authorize.command.d.ts.map +1 -1
  17. package/build/backend/commands/auth/oauth2/authorize.command.js +2 -2
  18. package/build/backend/commands/auth/oauth2/callback.command.d.ts +4 -24
  19. package/build/backend/commands/auth/oauth2/callback.command.d.ts.map +1 -1
  20. package/build/backend/commands/auth/oauth2/callback.command.js +1 -1
  21. package/build/backend/commands/auth/passkey/get-authentication-options.command.d.ts +1 -5
  22. package/build/backend/commands/auth/passkey/get-authentication-options.command.d.ts.map +1 -1
  23. package/build/backend/commands/auth/passkey/verify-authentication.command.d.ts +3 -19
  24. package/build/backend/commands/auth/passkey/verify-authentication.command.d.ts.map +1 -1
  25. package/build/backend/commands/auth/register.command.d.ts +3 -21
  26. package/build/backend/commands/auth/register.command.d.ts.map +1 -1
  27. package/build/backend/commands/bandwidth-stats/legacy/get-legacy-stats-node-user-usage.command.d.ts +10 -48
  28. package/build/backend/commands/bandwidth-stats/legacy/get-legacy-stats-node-user-usage.command.d.ts.map +1 -1
  29. package/build/backend/commands/bandwidth-stats/legacy/get-legacy-stats-node-user-usage.command.js +5 -5
  30. package/build/backend/commands/bandwidth-stats/legacy/get-legacy-user-usage.command.d.ts +10 -52
  31. package/build/backend/commands/bandwidth-stats/legacy/get-legacy-user-usage.command.d.ts.map +1 -1
  32. package/build/backend/commands/bandwidth-stats/legacy/get-legacy-user-usage.command.js +5 -5
  33. package/build/backend/commands/bandwidth-stats/nodes/get-stats-node-users-usage.command.d.ts +11 -67
  34. package/build/backend/commands/bandwidth-stats/nodes/get-stats-node-users-usage.command.d.ts.map +1 -1
  35. package/build/backend/commands/bandwidth-stats/nodes/get-stats-node-users-usage.command.js +3 -3
  36. package/build/backend/commands/bandwidth-stats/nodes/get-stats-nodes-usage.command.d.ts +13 -123
  37. package/build/backend/commands/bandwidth-stats/nodes/get-stats-nodes-usage.command.d.ts.map +1 -1
  38. package/build/backend/commands/bandwidth-stats/nodes/get-stats-nodes-usage.command.js +4 -4
  39. package/build/backend/commands/bandwidth-stats/nodes/get-stats-nodes-users-usage.command.d.ts +11 -67
  40. package/build/backend/commands/bandwidth-stats/nodes/get-stats-nodes-users-usage.command.d.ts.map +1 -1
  41. package/build/backend/commands/bandwidth-stats/nodes/get-stats-nodes-users-usage.command.js +3 -3
  42. package/build/backend/commands/bandwidth-stats/users/get-stats-user-usage.command.d.ts +15 -129
  43. package/build/backend/commands/bandwidth-stats/users/get-stats-user-usage.command.d.ts.map +1 -1
  44. package/build/backend/commands/bandwidth-stats/users/get-stats-user-usage.command.js +5 -5
  45. package/build/backend/commands/config-profiles/actions/reorder.command.d.ts +17 -252
  46. package/build/backend/commands/config-profiles/actions/reorder.command.d.ts.map +1 -1
  47. package/build/backend/commands/config-profiles/create-config-profile.command.d.ts +13 -141
  48. package/build/backend/commands/config-profiles/create-config-profile.command.d.ts.map +1 -1
  49. package/build/backend/commands/config-profiles/create-config-profile.command.js +1 -1
  50. package/build/backend/commands/config-profiles/delete-config-profile.command.d.ts +2 -6
  51. package/build/backend/commands/config-profiles/delete-config-profile.command.d.ts.map +1 -1
  52. package/build/backend/commands/config-profiles/delete-config-profile.command.js +1 -1
  53. package/build/backend/commands/config-profiles/get-all-inbounds.command.d.ts +6 -83
  54. package/build/backend/commands/config-profiles/get-all-inbounds.command.d.ts.map +1 -1
  55. package/build/backend/commands/config-profiles/get-all-inbounds.command.js +1 -1
  56. package/build/backend/commands/config-profiles/get-computed-config-profile-by-uuid.command.d.ts +13 -135
  57. package/build/backend/commands/config-profiles/get-computed-config-profile-by-uuid.command.d.ts.map +1 -1
  58. package/build/backend/commands/config-profiles/get-computed-config-profile-by-uuid.command.js +1 -1
  59. package/build/backend/commands/config-profiles/get-config-profile-by-uuid.command.d.ts +13 -135
  60. package/build/backend/commands/config-profiles/get-config-profile-by-uuid.command.d.ts.map +1 -1
  61. package/build/backend/commands/config-profiles/get-config-profile-by-uuid.command.js +1 -1
  62. package/build/backend/commands/config-profiles/get-config-profiles.command.d.ts +12 -186
  63. package/build/backend/commands/config-profiles/get-config-profiles.command.d.ts.map +1 -1
  64. package/build/backend/commands/config-profiles/get-inbounds-by-profile-uuid.command.d.ts +8 -89
  65. package/build/backend/commands/config-profiles/get-inbounds-by-profile-uuid.command.d.ts.map +1 -1
  66. package/build/backend/commands/config-profiles/get-inbounds-by-profile-uuid.command.js +2 -2
  67. package/build/backend/commands/config-profiles/update-config-profile.command.d.ts +14 -140
  68. package/build/backend/commands/config-profiles/update-config-profile.command.d.ts.map +1 -1
  69. package/build/backend/commands/config-profiles/update-config-profile.command.js +2 -2
  70. package/build/backend/commands/connections/connections-by-node-result.command.d.ts +8 -110
  71. package/build/backend/commands/connections/connections-by-node-result.command.d.ts.map +1 -1
  72. package/build/backend/commands/connections/connections-by-node-result.command.js +2 -3
  73. package/build/backend/commands/connections/connections-by-node.command.d.ts +4 -20
  74. package/build/backend/commands/connections/connections-by-node.command.d.ts.map +1 -1
  75. package/build/backend/commands/connections/connections-by-node.command.js +1 -1
  76. package/build/backend/commands/connections/connections-by-user-result.command.d.ts +10 -162
  77. package/build/backend/commands/connections/connections-by-user-result.command.d.ts.map +1 -1
  78. package/build/backend/commands/connections/connections-by-user-result.command.js +3 -4
  79. package/build/backend/commands/connections/connections-by-user.command.d.ts +4 -20
  80. package/build/backend/commands/connections/connections-by-user.command.d.ts.map +1 -1
  81. package/build/backend/commands/connections/connections-by-user.command.js +1 -1
  82. package/build/backend/commands/connections/drop-connections.command.d.ts +19 -91
  83. package/build/backend/commands/connections/drop-connections.command.d.ts.map +1 -1
  84. package/build/backend/commands/connections/drop-connections.command.js +3 -3
  85. package/build/backend/commands/external-squads/actions/reorder.command.d.ts +29 -482
  86. package/build/backend/commands/external-squads/actions/reorder.command.d.ts.map +1 -1
  87. package/build/backend/commands/external-squads/bulk-actions/add-users-to-external-squad.command.d.ts +2 -6
  88. package/build/backend/commands/external-squads/bulk-actions/add-users-to-external-squad.command.d.ts.map +1 -1
  89. package/build/backend/commands/external-squads/bulk-actions/add-users-to-external-squad.command.js +1 -1
  90. package/build/backend/commands/external-squads/bulk-actions/delete-users-from-external-squad.command.d.ts +2 -6
  91. package/build/backend/commands/external-squads/bulk-actions/delete-users-from-external-squad.command.d.ts.map +1 -1
  92. package/build/backend/commands/external-squads/bulk-actions/delete-users-from-external-squad.command.js +1 -1
  93. package/build/backend/commands/external-squads/create-external-squad.command.d.ts +24 -262
  94. package/build/backend/commands/external-squads/create-external-squad.command.d.ts.map +1 -1
  95. package/build/backend/commands/external-squads/delete-external-squad.command.d.ts +2 -6
  96. package/build/backend/commands/external-squads/delete-external-squad.command.d.ts.map +1 -1
  97. package/build/backend/commands/external-squads/delete-external-squad.command.js +1 -1
  98. package/build/backend/commands/external-squads/get-external-squad-by-uuid.command.d.ts +25 -263
  99. package/build/backend/commands/external-squads/get-external-squad-by-uuid.command.d.ts.map +1 -1
  100. package/build/backend/commands/external-squads/get-external-squad-by-uuid.command.js +1 -1
  101. package/build/backend/commands/external-squads/get-external-squads.command.d.ts +24 -356
  102. package/build/backend/commands/external-squads/get-external-squads.command.d.ts.map +1 -1
  103. package/build/backend/commands/external-squads/update-external-squad.command.d.ts +41 -403
  104. package/build/backend/commands/external-squads/update-external-squad.command.d.ts.map +1 -1
  105. package/build/backend/commands/external-squads/update-external-squad.command.js +8 -8
  106. package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts +2 -6
  107. package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts.map +1 -1
  108. package/build/backend/commands/hosts/bulk/delete-many-hosts.command.js +1 -1
  109. package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts +2 -6
  110. package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts.map +1 -1
  111. package/build/backend/commands/hosts/bulk/disable-many-hosts.command.js +1 -1
  112. package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts +2 -6
  113. package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts.map +1 -1
  114. package/build/backend/commands/hosts/bulk/enable-many-hosts.command.js +1 -1
  115. package/build/backend/commands/hosts/bulk/update-many-hosts.command.d.ts +16 -93
  116. package/build/backend/commands/hosts/bulk/update-many-hosts.command.d.ts.map +1 -1
  117. package/build/backend/commands/hosts/bulk/update-many-hosts.command.js +1 -1
  118. package/build/backend/commands/hosts/create.command.d.ts +33 -261
  119. package/build/backend/commands/hosts/create.command.d.ts.map +1 -1
  120. package/build/backend/commands/hosts/create.command.js +12 -17
  121. package/build/backend/commands/hosts/delete.command.d.ts +2 -6
  122. package/build/backend/commands/hosts/delete.command.d.ts.map +1 -1
  123. package/build/backend/commands/hosts/delete.command.js +1 -1
  124. package/build/backend/commands/hosts/get-host.command.d.ts +20 -178
  125. package/build/backend/commands/hosts/get-host.command.d.ts.map +1 -1
  126. package/build/backend/commands/hosts/get-host.command.js +1 -1
  127. package/build/backend/commands/hosts/get-hosts.command.d.ts +18 -172
  128. package/build/backend/commands/hosts/get-hosts.command.d.ts.map +1 -1
  129. package/build/backend/commands/hosts/host.response.d.ts +18 -172
  130. package/build/backend/commands/hosts/host.response.d.ts.map +1 -1
  131. package/build/backend/commands/hosts/reorder.command.d.ts +7 -98
  132. package/build/backend/commands/hosts/reorder.command.d.ts.map +1 -1
  133. package/build/backend/commands/hosts/tags/get-hosts-tags.command.d.ts +3 -15
  134. package/build/backend/commands/hosts/tags/get-hosts-tags.command.d.ts.map +1 -1
  135. package/build/backend/commands/hosts/update.command.d.ts +35 -330
  136. package/build/backend/commands/hosts/update.command.d.ts.map +1 -1
  137. package/build/backend/commands/hosts/update.command.js +12 -17
  138. package/build/backend/commands/hwid/create-user-hwid-device.command.d.ts +7 -99
  139. package/build/backend/commands/hwid/create-user-hwid-device.command.d.ts.map +1 -1
  140. package/build/backend/commands/hwid/create-user-hwid-device.command.js +1 -1
  141. package/build/backend/commands/hwid/delete-all-user-hwid-devices.command.d.ts +7 -87
  142. package/build/backend/commands/hwid/delete-all-user-hwid-devices.command.d.ts.map +1 -1
  143. package/build/backend/commands/hwid/delete-all-user-hwid-devices.command.js +1 -1
  144. package/build/backend/commands/hwid/delete-user-hwid-device.command.d.ts +7 -89
  145. package/build/backend/commands/hwid/delete-user-hwid-device.command.d.ts.map +1 -1
  146. package/build/backend/commands/hwid/delete-user-hwid-device.command.js +1 -1
  147. package/build/backend/commands/hwid/get-hwid-devices-stats.command.d.ts +5 -93
  148. package/build/backend/commands/hwid/get-hwid-devices-stats.command.d.ts.map +1 -1
  149. package/build/backend/commands/hwid/get-hwid-devices.command.d.ts +13 -127
  150. package/build/backend/commands/hwid/get-hwid-devices.command.d.ts.map +1 -1
  151. package/build/backend/commands/hwid/get-top-users-by-hwid-devices.command.d.ts +7 -59
  152. package/build/backend/commands/hwid/get-top-users-by-hwid-devices.command.d.ts.map +1 -1
  153. package/build/backend/commands/hwid/get-top-users-by-hwid-devices.command.js +1 -1
  154. package/build/backend/commands/hwid/get-user-hwid-devices.command.d.ts +7 -87
  155. package/build/backend/commands/hwid/get-user-hwid-devices.command.d.ts.map +1 -1
  156. package/build/backend/commands/hwid/get-user-hwid-devices.command.js +1 -1
  157. package/build/backend/commands/infra-billing/create-bill-record.command.d.ts +12 -107
  158. package/build/backend/commands/infra-billing/create-bill-record.command.d.ts.map +1 -1
  159. package/build/backend/commands/infra-billing/create-bill-record.command.js +4 -7
  160. package/build/backend/commands/infra-billing/create-billing-node.command.d.ts +23 -739
  161. package/build/backend/commands/infra-billing/create-billing-node.command.d.ts.map +1 -1
  162. package/build/backend/commands/infra-billing/create-billing-node.command.js +4 -7
  163. package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts +12 -120
  164. package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts.map +1 -1
  165. package/build/backend/commands/infra-billing/create-infra-provider.command.js +2 -2
  166. package/build/backend/commands/infra-billing/delete-bill-record.command.d.ts +2 -6
  167. package/build/backend/commands/infra-billing/delete-bill-record.command.d.ts.map +1 -1
  168. package/build/backend/commands/infra-billing/delete-bill-record.command.js +1 -1
  169. package/build/backend/commands/infra-billing/delete-billing-node.command.d.ts +2 -6
  170. package/build/backend/commands/infra-billing/delete-billing-node.command.d.ts.map +1 -1
  171. package/build/backend/commands/infra-billing/delete-billing-node.command.js +1 -1
  172. package/build/backend/commands/infra-billing/delete-infra-provider.command.d.ts +2 -6
  173. package/build/backend/commands/infra-billing/delete-infra-provider.command.d.ts.map +1 -1
  174. package/build/backend/commands/infra-billing/delete-infra-provider.command.js +1 -1
  175. package/build/backend/commands/infra-billing/get-bill-records.command.d.ts +12 -105
  176. package/build/backend/commands/infra-billing/get-bill-records.command.d.ts.map +1 -1
  177. package/build/backend/commands/infra-billing/get-bill-records.command.js +2 -2
  178. package/build/backend/commands/infra-billing/get-billing-nodes.command.d.ts +19 -725
  179. package/build/backend/commands/infra-billing/get-billing-nodes.command.d.ts.map +1 -1
  180. package/build/backend/commands/infra-billing/get-infra-provider.command.d.ts +11 -115
  181. package/build/backend/commands/infra-billing/get-infra-provider.command.d.ts.map +1 -1
  182. package/build/backend/commands/infra-billing/get-infra-provider.command.js +1 -1
  183. package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts +10 -158
  184. package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts.map +1 -1
  185. package/build/backend/commands/infra-billing/update-billing-node.command.d.ts +22 -734
  186. package/build/backend/commands/infra-billing/update-billing-node.command.d.ts.map +1 -1
  187. package/build/backend/commands/infra-billing/update-billing-node.command.js +3 -6
  188. package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts +13 -123
  189. package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts.map +1 -1
  190. package/build/backend/commands/infra-billing/update-infra-provider.command.js +4 -8
  191. package/build/backend/commands/internal-squads/actions/reorder.command.d.ts +16 -233
  192. package/build/backend/commands/internal-squads/actions/reorder.command.d.ts.map +1 -1
  193. package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.d.ts +2 -6
  194. package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.d.ts.map +1 -1
  195. package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.js +1 -1
  196. package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.d.ts +2 -6
  197. package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.d.ts.map +1 -1
  198. package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.js +1 -1
  199. package/build/backend/commands/internal-squads/create-internal-squad.command.d.ts +12 -126
  200. package/build/backend/commands/internal-squads/create-internal-squad.command.d.ts.map +1 -1
  201. package/build/backend/commands/internal-squads/create-internal-squad.command.js +3 -3
  202. package/build/backend/commands/internal-squads/delete-internal-squad.command.d.ts +2 -6
  203. package/build/backend/commands/internal-squads/delete-internal-squad.command.d.ts.map +1 -1
  204. package/build/backend/commands/internal-squads/delete-internal-squad.command.js +1 -1
  205. package/build/backend/commands/internal-squads/get-internal-squad-accessible-nodes.command.d.ts +9 -71
  206. package/build/backend/commands/internal-squads/get-internal-squad-accessible-nodes.command.d.ts.map +1 -1
  207. package/build/backend/commands/internal-squads/get-internal-squad-accessible-nodes.command.js +4 -4
  208. package/build/backend/commands/internal-squads/get-internal-squad.command.d.ts +12 -124
  209. package/build/backend/commands/internal-squads/get-internal-squad.command.d.ts.map +1 -1
  210. package/build/backend/commands/internal-squads/get-internal-squad.command.js +1 -1
  211. package/build/backend/commands/internal-squads/get-internal-squads.command.d.ts +11 -171
  212. package/build/backend/commands/internal-squads/get-internal-squads.command.d.ts.map +1 -1
  213. package/build/backend/commands/internal-squads/update-internal-squad.command.d.ts +13 -129
  214. package/build/backend/commands/internal-squads/update-internal-squad.command.d.ts.map +1 -1
  215. package/build/backend/commands/internal-squads/update-internal-squad.command.js +2 -2
  216. package/build/backend/commands/keygen/get-node-secret-key.command.d.ts +2 -14
  217. package/build/backend/commands/keygen/get-node-secret-key.command.d.ts.map +1 -1
  218. package/build/backend/commands/metadata/node/get-node-metadata.command.d.ts +5 -29
  219. package/build/backend/commands/metadata/node/get-node-metadata.command.d.ts.map +1 -1
  220. package/build/backend/commands/metadata/node/get-node-metadata.command.js +2 -2
  221. package/build/backend/commands/metadata/node/upsert-node-metadata.command.d.ts +7 -39
  222. package/build/backend/commands/metadata/node/upsert-node-metadata.command.d.ts.map +1 -1
  223. package/build/backend/commands/metadata/node/upsert-node-metadata.command.js +3 -3
  224. package/build/backend/commands/metadata/user/get-user-metadata.command.d.ts +5 -29
  225. package/build/backend/commands/metadata/user/get-user-metadata.command.d.ts.map +1 -1
  226. package/build/backend/commands/metadata/user/get-user-metadata.command.js +2 -2
  227. package/build/backend/commands/metadata/user/upsert-user-metadata.command.d.ts +7 -39
  228. package/build/backend/commands/metadata/user/upsert-user-metadata.command.d.ts.map +1 -1
  229. package/build/backend/commands/metadata/user/upsert-user-metadata.command.js +3 -3
  230. package/build/backend/commands/node-plugins/actions/clone-node-plugin.command.d.ts +5 -34
  231. package/build/backend/commands/node-plugins/actions/clone-node-plugin.command.d.ts.map +1 -1
  232. package/build/backend/commands/node-plugins/actions/clone-node-plugin.command.js +1 -1
  233. package/build/backend/commands/node-plugins/actions/reorder.command.d.ts +8 -72
  234. package/build/backend/commands/node-plugins/actions/reorder.command.d.ts.map +1 -1
  235. package/build/backend/commands/node-plugins/create-node-plugin.command.d.ts +4 -32
  236. package/build/backend/commands/node-plugins/create-node-plugin.command.d.ts.map +1 -1
  237. package/build/backend/commands/node-plugins/delete-node-plugin.command.d.ts +2 -6
  238. package/build/backend/commands/node-plugins/delete-node-plugin.command.d.ts.map +1 -1
  239. package/build/backend/commands/node-plugins/delete-node-plugin.command.js +1 -1
  240. package/build/backend/commands/node-plugins/executor.command.d.ts +23 -137
  241. package/build/backend/commands/node-plugins/executor.command.d.ts.map +1 -1
  242. package/build/backend/commands/node-plugins/executor.command.js +3 -3
  243. package/build/backend/commands/node-plugins/get-node-plugin.command.d.ts +5 -34
  244. package/build/backend/commands/node-plugins/get-node-plugin.command.d.ts.map +1 -1
  245. package/build/backend/commands/node-plugins/get-node-plugin.command.js +1 -1
  246. package/build/backend/commands/node-plugins/get-node-plugins.command.d.ts +4 -50
  247. package/build/backend/commands/node-plugins/get-node-plugins.command.d.ts.map +1 -1
  248. package/build/backend/commands/node-plugins/torrent-blocker/get-torrent-blocker-reports-stats.command.d.ts +7 -123
  249. package/build/backend/commands/node-plugins/torrent-blocker/get-torrent-blocker-reports-stats.command.d.ts.map +1 -1
  250. package/build/backend/commands/node-plugins/torrent-blocker/get-torrent-blocker-reports-stats.command.js +2 -2
  251. package/build/backend/commands/node-plugins/torrent-blocker/get-torrent-blocker-reports.command.d.ts +23 -725
  252. package/build/backend/commands/node-plugins/torrent-blocker/get-torrent-blocker-reports.command.d.ts.map +1 -1
  253. package/build/backend/commands/node-plugins/update-node-plugin.command.d.ts +5 -38
  254. package/build/backend/commands/node-plugins/update-node-plugin.command.d.ts.map +1 -1
  255. package/build/backend/commands/node-plugins/update-node-plugin.command.js +1 -1
  256. package/build/backend/commands/nodes/actions/disable.command.d.ts +32 -532
  257. package/build/backend/commands/nodes/actions/disable.command.d.ts.map +1 -1
  258. package/build/backend/commands/nodes/actions/disable.command.js +1 -1
  259. package/build/backend/commands/nodes/actions/enable.command.d.ts +32 -532
  260. package/build/backend/commands/nodes/actions/enable.command.d.ts.map +1 -1
  261. package/build/backend/commands/nodes/actions/enable.command.js +1 -1
  262. package/build/backend/commands/nodes/actions/reorder.command.d.ts +35 -796
  263. package/build/backend/commands/nodes/actions/reorder.command.d.ts.map +1 -1
  264. package/build/backend/commands/nodes/actions/reset-traffic.command.d.ts +2 -6
  265. package/build/backend/commands/nodes/actions/reset-traffic.command.d.ts.map +1 -1
  266. package/build/backend/commands/nodes/actions/reset-traffic.command.js +1 -1
  267. package/build/backend/commands/nodes/actions/restart-all.command.d.ts +1 -5
  268. package/build/backend/commands/nodes/actions/restart-all.command.d.ts.map +1 -1
  269. package/build/backend/commands/nodes/actions/restart.command.d.ts +3 -11
  270. package/build/backend/commands/nodes/actions/restart.command.d.ts.map +1 -1
  271. package/build/backend/commands/nodes/actions/restart.command.js +1 -1
  272. package/build/backend/commands/nodes/bulk-actions/actions.command.d.ts +3 -9
  273. package/build/backend/commands/nodes/bulk-actions/actions.command.d.ts.map +1 -1
  274. package/build/backend/commands/nodes/bulk-actions/actions.command.js +2 -2
  275. package/build/backend/commands/nodes/bulk-actions/bulk-update.command.d.ts +8 -46
  276. package/build/backend/commands/nodes/bulk-actions/bulk-update.command.d.ts.map +1 -1
  277. package/build/backend/commands/nodes/bulk-actions/bulk-update.command.js +9 -9
  278. package/build/backend/commands/nodes/bulk-actions/profile-modification.command.d.ts +5 -23
  279. package/build/backend/commands/nodes/bulk-actions/profile-modification.command.d.ts.map +1 -1
  280. package/build/backend/commands/nodes/bulk-actions/profile-modification.command.js +3 -7
  281. package/build/backend/commands/nodes/create.command.d.ts +42 -584
  282. package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
  283. package/build/backend/commands/nodes/create.command.js +16 -36
  284. package/build/backend/commands/nodes/delete.command.d.ts +2 -6
  285. package/build/backend/commands/nodes/delete.command.d.ts.map +1 -1
  286. package/build/backend/commands/nodes/delete.command.js +1 -1
  287. package/build/backend/commands/nodes/get-node.command.d.ts +32 -532
  288. package/build/backend/commands/nodes/get-node.command.d.ts.map +1 -1
  289. package/build/backend/commands/nodes/get-node.command.js +1 -1
  290. package/build/backend/commands/nodes/get-nodes.command.d.ts +30 -526
  291. package/build/backend/commands/nodes/get-nodes.command.d.ts.map +1 -1
  292. package/build/backend/commands/nodes/node.response.d.ts +30 -526
  293. package/build/backend/commands/nodes/node.response.d.ts.map +1 -1
  294. package/build/backend/commands/nodes/tags/get-nodes-tags.command.d.ts +3 -15
  295. package/build/backend/commands/nodes/tags/get-nodes-tags.command.d.ts.map +1 -1
  296. package/build/backend/commands/nodes/update.command.d.ts +41 -836
  297. package/build/backend/commands/nodes/update.command.d.ts.map +1 -1
  298. package/build/backend/commands/nodes/update.command.js +17 -29
  299. package/build/backend/commands/passkeys/delete-passkey.command.d.ts +1 -5
  300. package/build/backend/commands/passkeys/delete-passkey.command.d.ts.map +1 -1
  301. package/build/backend/commands/passkeys/get-passkeys.command.d.ts +5 -47
  302. package/build/backend/commands/passkeys/get-passkeys.command.d.ts.map +1 -1
  303. package/build/backend/commands/passkeys/get-passkeys.command.js +4 -10
  304. package/build/backend/commands/passkeys/get-registration-options.command.d.ts +1 -5
  305. package/build/backend/commands/passkeys/get-registration-options.command.d.ts.map +1 -1
  306. package/build/backend/commands/passkeys/update-passkey.command.d.ts +6 -54
  307. package/build/backend/commands/passkeys/update-passkey.command.d.ts.map +1 -1
  308. package/build/backend/commands/passkeys/update-passkey.command.js +6 -8
  309. package/build/backend/commands/passkeys/verify-registration.command.d.ts +3 -19
  310. package/build/backend/commands/passkeys/verify-registration.command.d.ts.map +1 -1
  311. package/build/backend/commands/remnawave-settings/get-remnawave-settings.command.d.ts +25 -457
  312. package/build/backend/commands/remnawave-settings/get-remnawave-settings.command.d.ts.map +1 -1
  313. package/build/backend/commands/remnawave-settings/update-remnawave-settings.command.d.ts +49 -789
  314. package/build/backend/commands/remnawave-settings/update-remnawave-settings.command.d.ts.map +1 -1
  315. package/build/backend/commands/snippets/create-snippet.command.d.ts +5 -45
  316. package/build/backend/commands/snippets/create-snippet.command.d.ts.map +1 -1
  317. package/build/backend/commands/snippets/create-snippet.command.js +3 -3
  318. package/build/backend/commands/snippets/delete-snippet.command.d.ts +1 -5
  319. package/build/backend/commands/snippets/delete-snippet.command.d.ts.map +1 -1
  320. package/build/backend/commands/snippets/get-snippets.command.d.ts +3 -37
  321. package/build/backend/commands/snippets/get-snippets.command.d.ts.map +1 -1
  322. package/build/backend/commands/snippets/update-snippet.command.d.ts +5 -45
  323. package/build/backend/commands/snippets/update-snippet.command.d.ts.map +1 -1
  324. package/build/backend/commands/snippets/update-snippet.command.js +3 -3
  325. package/build/backend/commands/subscription/get-subscription-by-short-uuid-by-client-type.command.d.ts +2 -8
  326. package/build/backend/commands/subscription/get-subscription-by-short-uuid-by-client-type.command.d.ts.map +1 -1
  327. package/build/backend/commands/subscription/get-subscription-by-short-uuid-by-client-type.command.js +2 -2
  328. package/build/backend/commands/subscription/get-subscription-by-short-uuid.command.d.ts +1 -5
  329. package/build/backend/commands/subscription/get-subscription-by-short-uuid.command.d.ts.map +1 -1
  330. package/build/backend/commands/subscription/get-subscription-info-by-short-uuid.command.d.ts +8 -124
  331. package/build/backend/commands/subscription/get-subscription-info-by-short-uuid.command.d.ts.map +1 -1
  332. package/build/backend/commands/subscription-page-configs/actions/clone-subpage-config.command.d.ts +5 -34
  333. package/build/backend/commands/subscription-page-configs/actions/clone-subpage-config.command.d.ts.map +1 -1
  334. package/build/backend/commands/subscription-page-configs/actions/clone-subpage-config.command.js +1 -1
  335. package/build/backend/commands/subscription-page-configs/actions/reorder.command.d.ts +8 -72
  336. package/build/backend/commands/subscription-page-configs/actions/reorder.command.d.ts.map +1 -1
  337. package/build/backend/commands/subscription-page-configs/create-subpage-config.command.d.ts +4 -32
  338. package/build/backend/commands/subscription-page-configs/create-subpage-config.command.d.ts.map +1 -1
  339. package/build/backend/commands/subscription-page-configs/delete-subpage-config.command.d.ts +2 -6
  340. package/build/backend/commands/subscription-page-configs/delete-subpage-config.command.d.ts.map +1 -1
  341. package/build/backend/commands/subscription-page-configs/delete-subpage-config.command.js +1 -1
  342. package/build/backend/commands/subscription-page-configs/get-subpage-config.command.d.ts +5 -34
  343. package/build/backend/commands/subscription-page-configs/get-subpage-config.command.d.ts.map +1 -1
  344. package/build/backend/commands/subscription-page-configs/get-subpage-config.command.js +1 -1
  345. package/build/backend/commands/subscription-page-configs/get-subpage-configs.command.d.ts +4 -50
  346. package/build/backend/commands/subscription-page-configs/get-subpage-configs.command.d.ts.map +1 -1
  347. package/build/backend/commands/subscription-page-configs/update-subpage-config.command.d.ts +5 -38
  348. package/build/backend/commands/subscription-page-configs/update-subpage-config.command.d.ts.map +1 -1
  349. package/build/backend/commands/subscription-page-configs/update-subpage-config.command.js +1 -1
  350. package/build/backend/commands/subscription-request-history/get-subscription-request-history-stats.command.d.ts +5 -57
  351. package/build/backend/commands/subscription-request-history/get-subscription-request-history-stats.command.d.ts.map +1 -1
  352. package/build/backend/commands/subscription-request-history/get-subscription-request-history-stats.command.js +1 -3
  353. package/build/backend/commands/subscription-request-history/get-subscription-request-history.command.d.ts +12 -102
  354. package/build/backend/commands/subscription-request-history/get-subscription-request-history.command.d.ts.map +1 -1
  355. package/build/backend/commands/subscription-settings/get-subscription-settings.command.d.ts +31 -492
  356. package/build/backend/commands/subscription-settings/get-subscription-settings.command.d.ts.map +1 -1
  357. package/build/backend/commands/subscription-settings/update-subscription-settings.command.d.ts +59 -847
  358. package/build/backend/commands/subscription-settings/update-subscription-settings.command.d.ts.map +1 -1
  359. package/build/backend/commands/subscription-settings/update-subscription-settings.command.js +3 -6
  360. package/build/backend/commands/subscription-template/actions/reorder.command.d.ts +9 -94
  361. package/build/backend/commands/subscription-template/actions/reorder.command.d.ts.map +1 -1
  362. package/build/backend/commands/subscription-template/create-template.command.d.ts +6 -44
  363. package/build/backend/commands/subscription-template/create-template.command.d.ts.map +1 -1
  364. package/build/backend/commands/subscription-template/create-template.command.js +3 -3
  365. package/build/backend/commands/subscription-template/delete-subscription-template.command.d.ts +2 -6
  366. package/build/backend/commands/subscription-template/delete-subscription-template.command.d.ts.map +1 -1
  367. package/build/backend/commands/subscription-template/delete-subscription-template.command.js +1 -1
  368. package/build/backend/commands/subscription-template/get-template.command.d.ts +6 -42
  369. package/build/backend/commands/subscription-template/get-template.command.d.ts.map +1 -1
  370. package/build/backend/commands/subscription-template/get-template.command.js +1 -1
  371. package/build/backend/commands/subscription-template/get-templates.command.d.ts +5 -63
  372. package/build/backend/commands/subscription-template/get-templates.command.d.ts.map +1 -1
  373. package/build/backend/commands/subscription-template/update-template.command.d.ts +7 -49
  374. package/build/backend/commands/subscription-template/update-template.command.d.ts.map +1 -1
  375. package/build/backend/commands/subscription-template/update-template.command.js +4 -4
  376. package/build/backend/commands/subscriptions/get-by/get-connection-keys-by-uuid.command.d.ts +7 -31
  377. package/build/backend/commands/subscriptions/get-by/get-connection-keys-by-uuid.command.d.ts.map +1 -1
  378. package/build/backend/commands/subscriptions/get-by/get-connection-keys-by-uuid.command.js +1 -1
  379. package/build/backend/commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.d.ts +102 -1301
  380. package/build/backend/commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.d.ts.map +1 -1
  381. package/build/backend/commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.js +1 -1
  382. package/build/backend/commands/subscriptions/get-by/get-subscription-by-short-uuid-protected.command.d.ts +8 -124
  383. package/build/backend/commands/subscriptions/get-by/get-subscription-by-short-uuid-protected.command.d.ts.map +1 -1
  384. package/build/backend/commands/subscriptions/get-by/get-subscription-by-username.command.d.ts +8 -124
  385. package/build/backend/commands/subscriptions/get-by/get-subscription-by-username.command.d.ts.map +1 -1
  386. package/build/backend/commands/subscriptions/get-by/get-subscription-by-uuid.command.d.ts +9 -125
  387. package/build/backend/commands/subscriptions/get-by/get-subscription-by-uuid.command.d.ts.map +1 -1
  388. package/build/backend/commands/subscriptions/get-by/get-subscription-by-uuid.command.js +1 -1
  389. package/build/backend/commands/subscriptions/get-subscriptions.command.d.ts +11 -181
  390. package/build/backend/commands/subscriptions/get-subscriptions.command.d.ts.map +1 -1
  391. package/build/backend/commands/subscriptions/get-subscriptions.command.js +5 -8
  392. package/build/backend/commands/subscriptions/subpage/get-subpage-config-by-shortuuid.command.d.ts +5 -29
  393. package/build/backend/commands/subscriptions/subpage/get-subpage-config-by-shortuuid.command.d.ts.map +1 -1
  394. package/build/backend/commands/subscriptions/subpage/get-subpage-config-by-shortuuid.command.js +1 -1
  395. package/build/backend/commands/system/get-bandwidth-stats.command.d.ts +8 -160
  396. package/build/backend/commands/system/get-bandwidth-stats.command.d.ts.map +1 -1
  397. package/build/backend/commands/system/get-metadata.command.d.ts +6 -118
  398. package/build/backend/commands/system/get-metadata.command.d.ts.map +1 -1
  399. package/build/backend/commands/system/get-nodes-metrics.command.d.ts +5 -129
  400. package/build/backend/commands/system/get-nodes-metrics.command.d.ts.map +1 -1
  401. package/build/backend/commands/system/get-nodes-statistics.d.ts +4 -44
  402. package/build/backend/commands/system/get-nodes-statistics.d.ts.map +1 -1
  403. package/build/backend/commands/system/get-recap.command.d.ts +5 -89
  404. package/build/backend/commands/system/get-recap.command.d.ts.map +1 -1
  405. package/build/backend/commands/system/get-recap.command.js +1 -3
  406. package/build/backend/commands/system/get-remnawave-health.command.d.ts +3 -99
  407. package/build/backend/commands/system/get-remnawave-health.command.d.ts.map +1 -1
  408. package/build/backend/commands/system/get-stats.command.d.ts +14 -151
  409. package/build/backend/commands/system/get-stats.command.d.ts.map +1 -1
  410. package/build/backend/commands/system/get-stats.command.js +1 -1
  411. package/build/backend/commands/system/testers/test-srr-matcher.command.d.ts +35 -545
  412. package/build/backend/commands/system/testers/test-srr-matcher.command.d.ts.map +1 -1
  413. package/build/backend/commands/system/testers/test-srr-matcher.command.js +1 -1
  414. package/build/backend/commands/system/tools/generate-x25519.command.d.ts +3 -33
  415. package/build/backend/commands/system/tools/generate-x25519.command.d.ts.map +1 -1
  416. package/build/backend/commands/users/actions/disable-user.command.d.ts +26 -193
  417. package/build/backend/commands/users/actions/disable-user.command.d.ts.map +1 -1
  418. package/build/backend/commands/users/actions/disable-user.command.js +1 -1
  419. package/build/backend/commands/users/actions/enable-user.command.d.ts +26 -193
  420. package/build/backend/commands/users/actions/enable-user.command.d.ts.map +1 -1
  421. package/build/backend/commands/users/actions/enable-user.command.js +1 -1
  422. package/build/backend/commands/users/actions/reset-user-traffic.command.d.ts +26 -193
  423. package/build/backend/commands/users/actions/reset-user-traffic.command.d.ts.map +1 -1
  424. package/build/backend/commands/users/actions/reset-user-traffic.command.js +1 -1
  425. package/build/backend/commands/users/actions/revoke-user-subscription.command.d.ts +28 -204
  426. package/build/backend/commands/users/actions/revoke-user-subscription.command.d.ts.map +1 -1
  427. package/build/backend/commands/users/actions/revoke-user-subscription.command.js +3 -3
  428. package/build/backend/commands/users/bulk/bulk-delete-users-by-status.command.d.ts +3 -7
  429. package/build/backend/commands/users/bulk/bulk-delete-users-by-status.command.d.ts.map +1 -1
  430. package/build/backend/commands/users/bulk/bulk-delete-users.command.d.ts +2 -6
  431. package/build/backend/commands/users/bulk/bulk-delete-users.command.d.ts.map +1 -1
  432. package/build/backend/commands/users/bulk/bulk-delete-users.command.js +1 -4
  433. package/build/backend/commands/users/bulk/bulk-extend-expiration-date.command.d.ts +3 -9
  434. package/build/backend/commands/users/bulk/bulk-extend-expiration-date.command.d.ts.map +1 -1
  435. package/build/backend/commands/users/bulk/bulk-extend-expiration-date.command.js +2 -9
  436. package/build/backend/commands/users/bulk/bulk-reset-traffic-users.command.d.ts +2 -6
  437. package/build/backend/commands/users/bulk/bulk-reset-traffic-users.command.d.ts.map +1 -1
  438. package/build/backend/commands/users/bulk/bulk-reset-traffic-users.command.js +1 -4
  439. package/build/backend/commands/users/bulk/bulk-revoke-users-subscription.command.d.ts +2 -6
  440. package/build/backend/commands/users/bulk/bulk-revoke-users-subscription.command.d.ts.map +1 -1
  441. package/build/backend/commands/users/bulk/bulk-revoke-users-subscription.command.js +1 -4
  442. package/build/backend/commands/users/bulk/bulk-update-users-squads.command.d.ts +3 -9
  443. package/build/backend/commands/users/bulk/bulk-update-users-squads.command.d.ts.map +1 -1
  444. package/build/backend/commands/users/bulk/bulk-update-users-squads.command.js +2 -7
  445. package/build/backend/commands/users/bulk/bulk-update-users.command.d.ts +10 -60
  446. package/build/backend/commands/users/bulk/bulk-update-users.command.d.ts.map +1 -1
  447. package/build/backend/commands/users/bulk/bulk-update-users.command.js +11 -26
  448. package/build/backend/commands/users/bulk-all/bulk-all-extend-expiration-date.command.d.ts +2 -6
  449. package/build/backend/commands/users/bulk-all/bulk-all-extend-expiration-date.command.d.ts.map +1 -1
  450. package/build/backend/commands/users/bulk-all/bulk-all-extend-expiration-date.command.js +1 -1
  451. package/build/backend/commands/users/bulk-all/bulk-all-update-users.command.d.ts +7 -27
  452. package/build/backend/commands/users/bulk-all/bulk-all-update-users.command.d.ts.map +1 -1
  453. package/build/backend/commands/users/bulk-all/bulk-all-update-users.command.js +10 -21
  454. package/build/backend/commands/users/create-user.command.d.ts +38 -241
  455. package/build/backend/commands/users/create-user.command.d.ts.map +1 -1
  456. package/build/backend/commands/users/create-user.command.js +25 -63
  457. package/build/backend/commands/users/delete-user.command.d.ts +2 -6
  458. package/build/backend/commands/users/delete-user.command.d.ts.map +1 -1
  459. package/build/backend/commands/users/delete-user.command.js +1 -1
  460. package/build/backend/commands/users/get-by/get-user-by-id.command.d.ts +26 -193
  461. package/build/backend/commands/users/get-by/get-user-by-id.command.d.ts.map +1 -1
  462. package/build/backend/commands/users/get-by/get-user-by-id.command.js +1 -1
  463. package/build/backend/commands/users/get-by/get-user-by-short-uuid.command.d.ts +25 -192
  464. package/build/backend/commands/users/get-by/get-user-by-short-uuid.command.d.ts.map +1 -1
  465. package/build/backend/commands/users/get-by/get-user-by-username.command.d.ts +25 -192
  466. package/build/backend/commands/users/get-by/get-user-by-username.command.d.ts.map +1 -1
  467. package/build/backend/commands/users/get-user-accessible-nodes.command.d.ts +10 -96
  468. package/build/backend/commands/users/get-user-accessible-nodes.command.d.ts.map +1 -1
  469. package/build/backend/commands/users/get-user-accessible-nodes.command.js +4 -4
  470. package/build/backend/commands/users/get-user-by-uuid.command.d.ts +26 -193
  471. package/build/backend/commands/users/get-user-by-uuid.command.d.ts.map +1 -1
  472. package/build/backend/commands/users/get-user-by-uuid.command.js +1 -1
  473. package/build/backend/commands/users/get-user-subscription-request-history.command.d.ts +6 -62
  474. package/build/backend/commands/users/get-user-subscription-request-history.command.d.ts.map +1 -1
  475. package/build/backend/commands/users/get-user-subscription-request-history.command.js +2 -4
  476. package/build/backend/commands/users/get-users-stream.command.d.ts +33 -300
  477. package/build/backend/commands/users/get-users-stream.command.d.ts.map +1 -1
  478. package/build/backend/commands/users/get-users-stream.command.js +10 -11
  479. package/build/backend/commands/users/get-users.command.d.ts +33 -316
  480. package/build/backend/commands/users/get-users.command.d.ts.map +1 -1
  481. package/build/backend/commands/users/resolve-user.command.d.ts +6 -50
  482. package/build/backend/commands/users/resolve-user.command.d.ts.map +1 -1
  483. package/build/backend/commands/users/resolve-user.command.js +3 -3
  484. package/build/backend/commands/users/tags/get-users-tags.command.d.ts +3 -15
  485. package/build/backend/commands/users/tags/get-users-tags.command.d.ts.map +1 -1
  486. package/build/backend/commands/users/update-user.command.d.ts +38 -254
  487. package/build/backend/commands/users/update-user.command.d.ts.map +1 -1
  488. package/build/backend/commands/users/update-user.command.js +14 -39
  489. package/build/backend/commands/users/user.response.d.ts +24 -187
  490. package/build/backend/commands/users/user.response.d.ts.map +1 -1
  491. package/build/backend/models/api-tokens.schema.d.ts +6 -20
  492. package/build/backend/models/api-tokens.schema.d.ts.map +1 -1
  493. package/build/backend/models/api-tokens.schema.js +4 -10
  494. package/build/backend/models/auth.schema.d.ts +1 -5
  495. package/build/backend/models/auth.schema.d.ts.map +1 -1
  496. package/build/backend/models/base-internal-squad.schema.d.ts +2 -8
  497. package/build/backend/models/base-internal-squad.schema.d.ts.map +1 -1
  498. package/build/backend/models/base-internal-squad.schema.js +1 -1
  499. package/build/backend/models/base-stat.schema.d.ts +1 -9
  500. package/build/backend/models/base-stat.schema.d.ts.map +1 -1
  501. package/build/backend/models/config-profile-inbounds.schema.d.ts +3 -21
  502. package/build/backend/models/config-profile-inbounds.schema.d.ts.map +1 -1
  503. package/build/backend/models/config-profile-inbounds.schema.js +2 -2
  504. package/build/backend/models/config-profile.schema.d.ts +10 -80
  505. package/build/backend/models/config-profile.schema.d.ts.map +1 -1
  506. package/build/backend/models/config-profile.schema.js +5 -9
  507. package/build/backend/models/extended-users.schema.d.ts +23 -112
  508. package/build/backend/models/extended-users.schema.d.ts.map +1 -1
  509. package/build/backend/models/external-squad.schema.d.ts +22 -166
  510. package/build/backend/models/external-squad.schema.d.ts.map +1 -1
  511. package/build/backend/models/external-squad.schema.js +7 -11
  512. package/build/backend/models/external-squads/external-squad-host-overrides.schema.d.ts +2 -8
  513. package/build/backend/models/external-squads/external-squad-host-overrides.schema.d.ts.map +1 -1
  514. package/build/backend/models/external-squads/external-squad-subscription-settings.schema.d.ts +2 -22
  515. package/build/backend/models/external-squads/external-squad-subscription-settings.schema.d.ts.map +1 -1
  516. package/build/backend/models/hosts.schema.d.ts +17 -95
  517. package/build/backend/models/hosts.schema.d.ts.map +1 -1
  518. package/build/backend/models/hosts.schema.js +13 -13
  519. package/build/backend/models/hwid-user-device.schema.d.ts +3 -23
  520. package/build/backend/models/hwid-user-device.schema.d.ts.map +1 -1
  521. package/build/backend/models/hwid-user-device.schema.js +2 -6
  522. package/build/backend/models/infra-billing-available-node.schema.d.ts +3 -259
  523. package/build/backend/models/infra-billing-available-node.schema.d.ts.map +1 -1
  524. package/build/backend/models/infra-billing-history-record.schema.d.ts +7 -38
  525. package/build/backend/models/infra-billing-history-record.schema.d.ts.map +1 -1
  526. package/build/backend/models/infra-billing-history-record.schema.js +3 -5
  527. package/build/backend/models/infra-billing-node.schema.d.ts +13 -319
  528. package/build/backend/models/infra-billing-node.schema.d.ts.map +1 -1
  529. package/build/backend/models/infra-billing-node.schema.js +6 -12
  530. package/build/backend/models/infra-provider.schema.d.ts +12 -86
  531. package/build/backend/models/infra-provider.schema.d.ts.map +1 -1
  532. package/build/backend/models/infra-provider.schema.js +7 -15
  533. package/build/backend/models/internal-squad.schema.d.ts +9 -73
  534. package/build/backend/models/internal-squad.schema.d.ts.map +1 -1
  535. package/build/backend/models/internal-squad.schema.js +4 -8
  536. package/build/backend/models/last-connected-node.schema.d.ts +2 -10
  537. package/build/backend/models/last-connected-node.schema.d.ts.map +1 -1
  538. package/build/backend/models/last-connected-node.schema.js +1 -3
  539. package/build/backend/models/node-plugin.schema.d.ts +2 -12
  540. package/build/backend/models/node-plugin.schema.d.ts.map +1 -1
  541. package/build/backend/models/node-plugin.schema.js +1 -1
  542. package/build/backend/models/node-system.schema.d.ts +14 -194
  543. package/build/backend/models/node-system.schema.d.ts.map +1 -1
  544. package/build/backend/models/node-system.schema.js +1 -1
  545. package/build/backend/models/nodes.schema.d.ts +29 -361
  546. package/build/backend/models/nodes.schema.d.ts.map +1 -1
  547. package/build/backend/models/nodes.schema.js +11 -17
  548. package/build/backend/models/remnawave-settings/branding-settings.schema.d.ts +1 -7
  549. package/build/backend/models/remnawave-settings/branding-settings.schema.d.ts.map +1 -1
  550. package/build/backend/models/remnawave-settings/oauth2-settings.schema.d.ts +18 -188
  551. package/build/backend/models/remnawave-settings/oauth2-settings.schema.d.ts.map +1 -1
  552. package/build/backend/models/remnawave-settings/passkey-settings.schema.d.ts +3 -11
  553. package/build/backend/models/remnawave-settings/passkey-settings.schema.d.ts.map +1 -1
  554. package/build/backend/models/remnawave-settings/password-auth-settings.schema.d.ts +1 -5
  555. package/build/backend/models/remnawave-settings/password-auth-settings.schema.d.ts.map +1 -1
  556. package/build/backend/models/remnawave-settings/remnawave-settings.schema.d.ts +24 -332
  557. package/build/backend/models/remnawave-settings/remnawave-settings.schema.d.ts.map +1 -1
  558. package/build/backend/models/resolved-proxy-config.schema.d.ts +168 -1224
  559. package/build/backend/models/resolved-proxy-config.schema.d.ts.map +1 -1
  560. package/build/backend/models/resolved-proxy-config.schema.js +18 -18
  561. package/build/backend/models/response-rules/response-rule-condition.schema.d.ts +2 -12
  562. package/build/backend/models/response-rules/response-rule-condition.schema.d.ts.map +1 -1
  563. package/build/backend/models/response-rules/response-rule-condition.schema.js +1 -1
  564. package/build/backend/models/response-rules/response-rule-modifications.schema.d.ts +14 -58
  565. package/build/backend/models/response-rules/response-rule-modifications.schema.d.ts.map +1 -1
  566. package/build/backend/models/response-rules/response-rule-settings.schema.d.ts +1 -5
  567. package/build/backend/models/response-rules/response-rule-settings.schema.d.ts.map +1 -1
  568. package/build/backend/models/response-rules/response-rule.schema.d.ts +28 -246
  569. package/build/backend/models/response-rules/response-rule.schema.d.ts.map +1 -1
  570. package/build/backend/models/response-rules/response-rule.schema.js +2 -2
  571. package/build/backend/models/response-rules/response-rules-config.schema.d.ts +17 -200
  572. package/build/backend/models/response-rules/response-rules-config.schema.d.ts.map +1 -1
  573. package/build/backend/models/response-rules/response-rules-config.schema.js +2 -2
  574. package/build/backend/models/snippets.schema.d.ts +1 -7
  575. package/build/backend/models/snippets.schema.d.ts.map +1 -1
  576. package/build/backend/models/subscripion-page-config.schema.d.ts +2 -12
  577. package/build/backend/models/subscripion-page-config.schema.d.ts.map +1 -1
  578. package/build/backend/models/subscripion-page-config.schema.js +1 -1
  579. package/build/backend/models/subscription-info.schema.d.ts +6 -74
  580. package/build/backend/models/subscription-info.schema.d.ts.map +1 -1
  581. package/build/backend/models/subscription-info.schema.js +3 -5
  582. package/build/backend/models/subscription-request-history.schema.d.ts +2 -14
  583. package/build/backend/models/subscription-request-history.schema.d.ts.map +1 -1
  584. package/build/backend/models/subscription-request-history.schema.js +1 -4
  585. package/build/backend/models/subscription-settings/custom-remarks.schema.d.ts +7 -21
  586. package/build/backend/models/subscription-settings/custom-remarks.schema.d.ts.map +1 -1
  587. package/build/backend/models/subscription-settings/hwid-settings.schema.d.ts +1 -9
  588. package/build/backend/models/subscription-settings/hwid-settings.schema.d.ts.map +1 -1
  589. package/build/backend/models/subscription-settings.schema.d.ts +30 -361
  590. package/build/backend/models/subscription-settings.schema.d.ts.map +1 -1
  591. package/build/backend/models/subscription-settings.schema.js +4 -13
  592. package/build/backend/models/subscription-template.schema.d.ts +3 -17
  593. package/build/backend/models/subscription-template.schema.d.ts.map +1 -1
  594. package/build/backend/models/subscription-template.schema.js +2 -2
  595. package/build/backend/models/tanstack-query/tanstask-query-filter.schema.d.ts +1 -7
  596. package/build/backend/models/tanstack-query/tanstask-query-filter.schema.d.ts.map +1 -1
  597. package/build/backend/models/tanstack-query/tanstask-query-request-query.schema.d.ts +8 -46
  598. package/build/backend/models/tanstack-query/tanstask-query-request-query.schema.d.ts.map +1 -1
  599. package/build/backend/models/tanstack-query/tanstask-query-sorting.schema.d.ts +1 -7
  600. package/build/backend/models/tanstack-query/tanstask-query-sorting.schema.d.ts.map +1 -1
  601. package/build/backend/models/torrent-blocker-report.schema.d.ts +13 -505
  602. package/build/backend/models/torrent-blocker-report.schema.d.ts.map +1 -1
  603. package/build/backend/models/torrent-blocker-report.schema.js +3 -8
  604. package/build/backend/models/user-traffic.schema.d.ts +4 -16
  605. package/build/backend/models/user-traffic.schema.d.ts.map +1 -1
  606. package/build/backend/models/user-traffic.schema.js +3 -9
  607. package/build/backend/models/users.schema.d.ts +17 -63
  608. package/build/backend/models/users.schema.d.ts.map +1 -1
  609. package/build/backend/models/users.schema.js +14 -33
  610. package/build/backend/models/webhook/webhook.schema.d.ts +441 -4845
  611. package/build/backend/models/webhook/webhook.schema.d.ts.map +1 -1
  612. package/build/backend/models/webhook/webhook.schema.js +2 -2
  613. package/build/backend/models/xray-json-advanced/remnawave-injector.schema.d.ts +31 -197
  614. package/build/backend/models/xray-json-advanced/remnawave-injector.schema.d.ts.map +1 -1
  615. package/build/backend/models/xray-json-advanced/remnawave-injector.schema.js +1 -1
  616. package/build/frontend/commands/api-tokens/delete.command.js +1 -1
  617. package/build/frontend/commands/auth/get-status.command.js +1 -1
  618. package/build/frontend/commands/auth/oauth2/authorize.command.js +2 -2
  619. package/build/frontend/commands/auth/oauth2/callback.command.js +1 -1
  620. package/build/frontend/commands/bandwidth-stats/legacy/get-legacy-stats-node-user-usage.command.js +5 -5
  621. package/build/frontend/commands/bandwidth-stats/legacy/get-legacy-user-usage.command.js +5 -5
  622. package/build/frontend/commands/bandwidth-stats/nodes/get-stats-node-users-usage.command.js +3 -3
  623. package/build/frontend/commands/bandwidth-stats/nodes/get-stats-nodes-usage.command.js +4 -4
  624. package/build/frontend/commands/bandwidth-stats/nodes/get-stats-nodes-users-usage.command.js +3 -3
  625. package/build/frontend/commands/bandwidth-stats/users/get-stats-user-usage.command.js +5 -5
  626. package/build/frontend/commands/config-profiles/create-config-profile.command.js +1 -1
  627. package/build/frontend/commands/config-profiles/delete-config-profile.command.js +1 -1
  628. package/build/frontend/commands/config-profiles/get-all-inbounds.command.js +1 -1
  629. package/build/frontend/commands/config-profiles/get-computed-config-profile-by-uuid.command.js +1 -1
  630. package/build/frontend/commands/config-profiles/get-config-profile-by-uuid.command.js +1 -1
  631. package/build/frontend/commands/config-profiles/get-inbounds-by-profile-uuid.command.js +2 -2
  632. package/build/frontend/commands/config-profiles/update-config-profile.command.js +2 -2
  633. package/build/frontend/commands/connections/connections-by-node-result.command.js +2 -3
  634. package/build/frontend/commands/connections/connections-by-node.command.js +1 -1
  635. package/build/frontend/commands/connections/connections-by-user-result.command.js +3 -4
  636. package/build/frontend/commands/connections/connections-by-user.command.js +1 -1
  637. package/build/frontend/commands/connections/drop-connections.command.js +3 -3
  638. package/build/frontend/commands/external-squads/bulk-actions/add-users-to-external-squad.command.js +1 -1
  639. package/build/frontend/commands/external-squads/bulk-actions/delete-users-from-external-squad.command.js +1 -1
  640. package/build/frontend/commands/external-squads/delete-external-squad.command.js +1 -1
  641. package/build/frontend/commands/external-squads/get-external-squad-by-uuid.command.js +1 -1
  642. package/build/frontend/commands/external-squads/update-external-squad.command.js +8 -8
  643. package/build/frontend/commands/hosts/bulk/delete-many-hosts.command.js +1 -1
  644. package/build/frontend/commands/hosts/bulk/disable-many-hosts.command.js +1 -1
  645. package/build/frontend/commands/hosts/bulk/enable-many-hosts.command.js +1 -1
  646. package/build/frontend/commands/hosts/bulk/update-many-hosts.command.js +1 -1
  647. package/build/frontend/commands/hosts/create.command.js +12 -17
  648. package/build/frontend/commands/hosts/delete.command.js +1 -1
  649. package/build/frontend/commands/hosts/get-host.command.js +1 -1
  650. package/build/frontend/commands/hosts/update.command.js +12 -17
  651. package/build/frontend/commands/hwid/create-user-hwid-device.command.js +1 -1
  652. package/build/frontend/commands/hwid/delete-all-user-hwid-devices.command.js +1 -1
  653. package/build/frontend/commands/hwid/delete-user-hwid-device.command.js +1 -1
  654. package/build/frontend/commands/hwid/get-top-users-by-hwid-devices.command.js +1 -1
  655. package/build/frontend/commands/hwid/get-user-hwid-devices.command.js +1 -1
  656. package/build/frontend/commands/infra-billing/create-bill-record.command.js +4 -7
  657. package/build/frontend/commands/infra-billing/create-billing-node.command.js +4 -7
  658. package/build/frontend/commands/infra-billing/create-infra-provider.command.js +2 -2
  659. package/build/frontend/commands/infra-billing/delete-bill-record.command.js +1 -1
  660. package/build/frontend/commands/infra-billing/delete-billing-node.command.js +1 -1
  661. package/build/frontend/commands/infra-billing/delete-infra-provider.command.js +1 -1
  662. package/build/frontend/commands/infra-billing/get-bill-records.command.js +2 -2
  663. package/build/frontend/commands/infra-billing/get-infra-provider.command.js +1 -1
  664. package/build/frontend/commands/infra-billing/update-billing-node.command.js +3 -6
  665. package/build/frontend/commands/infra-billing/update-infra-provider.command.js +4 -8
  666. package/build/frontend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.js +1 -1
  667. package/build/frontend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.js +1 -1
  668. package/build/frontend/commands/internal-squads/create-internal-squad.command.js +3 -3
  669. package/build/frontend/commands/internal-squads/delete-internal-squad.command.js +1 -1
  670. package/build/frontend/commands/internal-squads/get-internal-squad-accessible-nodes.command.js +4 -4
  671. package/build/frontend/commands/internal-squads/get-internal-squad.command.js +1 -1
  672. package/build/frontend/commands/internal-squads/update-internal-squad.command.js +2 -2
  673. package/build/frontend/commands/metadata/node/get-node-metadata.command.js +2 -2
  674. package/build/frontend/commands/metadata/node/upsert-node-metadata.command.js +3 -3
  675. package/build/frontend/commands/metadata/user/get-user-metadata.command.js +2 -2
  676. package/build/frontend/commands/metadata/user/upsert-user-metadata.command.js +3 -3
  677. package/build/frontend/commands/node-plugins/actions/clone-node-plugin.command.js +1 -1
  678. package/build/frontend/commands/node-plugins/delete-node-plugin.command.js +1 -1
  679. package/build/frontend/commands/node-plugins/executor.command.js +3 -3
  680. package/build/frontend/commands/node-plugins/get-node-plugin.command.js +1 -1
  681. package/build/frontend/commands/node-plugins/torrent-blocker/get-torrent-blocker-reports-stats.command.js +2 -2
  682. package/build/frontend/commands/node-plugins/update-node-plugin.command.js +1 -1
  683. package/build/frontend/commands/nodes/actions/disable.command.js +1 -1
  684. package/build/frontend/commands/nodes/actions/enable.command.js +1 -1
  685. package/build/frontend/commands/nodes/actions/reset-traffic.command.js +1 -1
  686. package/build/frontend/commands/nodes/actions/restart.command.js +1 -1
  687. package/build/frontend/commands/nodes/bulk-actions/actions.command.js +2 -2
  688. package/build/frontend/commands/nodes/bulk-actions/bulk-update.command.js +9 -9
  689. package/build/frontend/commands/nodes/bulk-actions/profile-modification.command.js +3 -7
  690. package/build/frontend/commands/nodes/create.command.js +16 -36
  691. package/build/frontend/commands/nodes/delete.command.js +1 -1
  692. package/build/frontend/commands/nodes/get-node.command.js +1 -1
  693. package/build/frontend/commands/nodes/update.command.js +17 -29
  694. package/build/frontend/commands/passkeys/get-passkeys.command.js +4 -10
  695. package/build/frontend/commands/passkeys/update-passkey.command.js +6 -8
  696. package/build/frontend/commands/snippets/create-snippet.command.js +3 -3
  697. package/build/frontend/commands/snippets/update-snippet.command.js +3 -3
  698. package/build/frontend/commands/subscription/get-subscription-by-short-uuid-by-client-type.command.js +2 -2
  699. package/build/frontend/commands/subscription-page-configs/actions/clone-subpage-config.command.js +1 -1
  700. package/build/frontend/commands/subscription-page-configs/delete-subpage-config.command.js +1 -1
  701. package/build/frontend/commands/subscription-page-configs/get-subpage-config.command.js +1 -1
  702. package/build/frontend/commands/subscription-page-configs/update-subpage-config.command.js +1 -1
  703. package/build/frontend/commands/subscription-request-history/get-subscription-request-history-stats.command.js +1 -3
  704. package/build/frontend/commands/subscription-settings/update-subscription-settings.command.js +3 -6
  705. package/build/frontend/commands/subscription-template/create-template.command.js +3 -3
  706. package/build/frontend/commands/subscription-template/delete-subscription-template.command.js +1 -1
  707. package/build/frontend/commands/subscription-template/get-template.command.js +1 -1
  708. package/build/frontend/commands/subscription-template/update-template.command.js +4 -4
  709. package/build/frontend/commands/subscriptions/get-by/get-connection-keys-by-uuid.command.js +1 -1
  710. package/build/frontend/commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.js +1 -1
  711. package/build/frontend/commands/subscriptions/get-by/get-subscription-by-uuid.command.js +1 -1
  712. package/build/frontend/commands/subscriptions/get-subscriptions.command.js +5 -8
  713. package/build/frontend/commands/subscriptions/subpage/get-subpage-config-by-shortuuid.command.js +1 -1
  714. package/build/frontend/commands/system/get-recap.command.js +1 -3
  715. package/build/frontend/commands/system/get-stats.command.js +1 -1
  716. package/build/frontend/commands/system/testers/test-srr-matcher.command.js +1 -1
  717. package/build/frontend/commands/users/actions/disable-user.command.js +1 -1
  718. package/build/frontend/commands/users/actions/enable-user.command.js +1 -1
  719. package/build/frontend/commands/users/actions/reset-user-traffic.command.js +1 -1
  720. package/build/frontend/commands/users/actions/revoke-user-subscription.command.js +3 -3
  721. package/build/frontend/commands/users/bulk/bulk-delete-users.command.js +1 -4
  722. package/build/frontend/commands/users/bulk/bulk-extend-expiration-date.command.js +2 -9
  723. package/build/frontend/commands/users/bulk/bulk-reset-traffic-users.command.js +1 -4
  724. package/build/frontend/commands/users/bulk/bulk-revoke-users-subscription.command.js +1 -4
  725. package/build/frontend/commands/users/bulk/bulk-update-users-squads.command.js +2 -7
  726. package/build/frontend/commands/users/bulk/bulk-update-users.command.js +11 -26
  727. package/build/frontend/commands/users/bulk-all/bulk-all-extend-expiration-date.command.js +1 -1
  728. package/build/frontend/commands/users/bulk-all/bulk-all-update-users.command.js +10 -21
  729. package/build/frontend/commands/users/create-user.command.js +25 -63
  730. package/build/frontend/commands/users/delete-user.command.js +1 -1
  731. package/build/frontend/commands/users/get-by/get-user-by-id.command.js +1 -1
  732. package/build/frontend/commands/users/get-user-accessible-nodes.command.js +4 -4
  733. package/build/frontend/commands/users/get-user-by-uuid.command.js +1 -1
  734. package/build/frontend/commands/users/get-user-subscription-request-history.command.js +2 -4
  735. package/build/frontend/commands/users/get-users-stream.command.js +10 -11
  736. package/build/frontend/commands/users/resolve-user.command.js +3 -3
  737. package/build/frontend/commands/users/update-user.command.js +14 -39
  738. package/build/frontend/models/api-tokens.schema.js +4 -10
  739. package/build/frontend/models/base-internal-squad.schema.js +1 -1
  740. package/build/frontend/models/config-profile-inbounds.schema.js +2 -2
  741. package/build/frontend/models/config-profile.schema.js +5 -9
  742. package/build/frontend/models/external-squad.schema.js +7 -11
  743. package/build/frontend/models/hosts.schema.js +13 -13
  744. package/build/frontend/models/hwid-user-device.schema.js +2 -6
  745. package/build/frontend/models/infra-billing-history-record.schema.js +3 -5
  746. package/build/frontend/models/infra-billing-node.schema.js +6 -12
  747. package/build/frontend/models/infra-provider.schema.js +7 -15
  748. package/build/frontend/models/internal-squad.schema.js +4 -8
  749. package/build/frontend/models/last-connected-node.schema.js +1 -3
  750. package/build/frontend/models/node-plugin.schema.js +1 -1
  751. package/build/frontend/models/node-system.schema.js +1 -1
  752. package/build/frontend/models/nodes.schema.js +11 -17
  753. package/build/frontend/models/resolved-proxy-config.schema.js +18 -18
  754. package/build/frontend/models/response-rules/response-rule-condition.schema.js +1 -1
  755. package/build/frontend/models/response-rules/response-rule.schema.js +2 -2
  756. package/build/frontend/models/response-rules/response-rules-config.schema.js +2 -2
  757. package/build/frontend/models/subscripion-page-config.schema.js +1 -1
  758. package/build/frontend/models/subscription-info.schema.js +3 -5
  759. package/build/frontend/models/subscription-request-history.schema.js +1 -4
  760. package/build/frontend/models/subscription-settings.schema.js +4 -13
  761. package/build/frontend/models/subscription-template.schema.js +2 -2
  762. package/build/frontend/models/torrent-blocker-report.schema.js +3 -8
  763. package/build/frontend/models/user-traffic.schema.js +3 -9
  764. package/build/frontend/models/users.schema.js +14 -33
  765. package/build/frontend/models/webhook/webhook.schema.js +2 -2
  766. package/build/frontend/models/xray-json-advanced/remnawave-injector.schema.js +1 -1
  767. package/package.json +2 -2
@@ -11,14 +11,14 @@ var UpdateSubscriptionTemplateCommand;
11
11
  UpdateSubscriptionTemplateCommand.TSQ_url = UpdateSubscriptionTemplateCommand.url;
12
12
  UpdateSubscriptionTemplateCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.SUBSCRIPTION_TEMPLATE_ROUTES.UPDATE, 'patch', 'Update subscription template', { scope: 'update', kind: 'write' });
13
13
  UpdateSubscriptionTemplateCommand.RequestBodySchema = zod_1.z.object({
14
- uuid: zod_1.z.string().uuid(),
14
+ uuid: zod_1.z.uuid(),
15
15
  name: zod_1.z
16
16
  .string()
17
- .min(2, 'Name must be at least 2 characters')
18
- .max(255, 'Name must be less than 255 characters')
17
+ .min(2)
18
+ .max(255)
19
19
  .regex(/^[A-Za-z0-9_\s-]+$/, 'Name can only contain letters, numbers, underscores, dashes and spaces')
20
20
  .optional(),
21
- templateJson: zod_1.z.optional(zod_1.z.object({}).passthrough()),
21
+ templateJson: zod_1.z.optional(zod_1.z.looseObject({})),
22
22
  encodedTemplateYaml: zod_1.z.optional(zod_1.z.string()),
23
23
  });
24
24
  UpdateSubscriptionTemplateCommand.ResponseSchema = zod_1.z.object({
@@ -10,7 +10,7 @@ var GetConnectionKeysByUuidCommand;
10
10
  GetConnectionKeysByUuidCommand.TSQ_url = GetConnectionKeysByUuidCommand.url(':uuid');
11
11
  GetConnectionKeysByUuidCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.SUBSCRIPTIONS_ROUTES.GET_CONNECTION_KEYS_BY_UUID(':uuid'), 'get', 'Get connection keys (base64 format) by uuid', { scope: 'connection-keys', kind: 'read' });
12
12
  GetConnectionKeysByUuidCommand.RequestParamSchema = zod_1.z.object({
13
- uuid: zod_1.z.string().uuid().describe('User UUID'),
13
+ uuid: zod_1.z.uuid().describe('User UUID'),
14
14
  });
15
15
  GetConnectionKeysByUuidCommand.ResponseSchema = zod_1.z.object({
16
16
  response: zod_1.z.object({
@@ -18,7 +18,7 @@ var GetRawSubscriptionByShortUuidCommand;
18
18
  .string()
19
19
  .transform((str) => str === 'true')
20
20
  .optional()
21
- .default('false'),
21
+ .prefault('false'),
22
22
  });
23
23
  GetRawSubscriptionByShortUuidCommand.ResponseSchema = zod_1.z.object({
24
24
  response: zod_1.z.object({
@@ -11,7 +11,7 @@ var GetSubscriptionByUuidCommand;
11
11
  GetSubscriptionByUuidCommand.TSQ_url = GetSubscriptionByUuidCommand.url(':uuid');
12
12
  GetSubscriptionByUuidCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.SUBSCRIPTIONS_ROUTES.GET_BY.UUID(':uuid'), 'get', 'Get subscription by uuid', { scope: 'by-uuid', kind: 'read' });
13
13
  GetSubscriptionByUuidCommand.RequestParamSchema = zod_1.z.object({
14
- uuid: zod_1.z.string().uuid().describe('User UUID'),
14
+ uuid: zod_1.z.uuid().describe('User UUID'),
15
15
  });
16
16
  GetSubscriptionByUuidCommand.ResponseSchema = zod_1.z.object({
17
17
  response: models_1.SubscriptionInfoSchema,
@@ -16,8 +16,8 @@ var GetSubscriptionsCommand;
16
16
  .describe('Start index (offset) of the users to return, default is 0'),
17
17
  size: zod_1.z.coerce
18
18
  .number()
19
- .min(1, 'Size (limit) must be greater than 0')
20
- .max(500, 'Size (limit) must be less than 500')
19
+ .min(1)
20
+ .max(500)
21
21
  .describe('Number of subscriptions to return, no more than 500')
22
22
  .default(25),
23
23
  });
@@ -35,13 +35,10 @@ var GetSubscriptionsCommand;
35
35
  trafficLimitBytes: zod_1.z.string(),
36
36
  lifetimeTrafficUsedBytes: zod_1.z.string(),
37
37
  username: zod_1.z.string(),
38
- expiresAt: zod_1.z
39
- .string()
40
- .datetime()
41
- .transform((str) => new Date(str)),
38
+ expiresAt: zod_1.z.iso.datetime().transform((str) => new Date(str)),
42
39
  isActive: zod_1.z.boolean(),
43
- userStatus: zod_1.z.nativeEnum(constants_1.USERS_STATUS),
44
- trafficLimitStrategy: zod_1.z.nativeEnum(constants_1.RESET_PERIODS),
40
+ userStatus: zod_1.z.enum(constants_1.USERS_STATUS),
41
+ trafficLimitStrategy: zod_1.z.enum(constants_1.RESET_PERIODS),
45
42
  }),
46
43
  links: zod_1.z.array(zod_1.z.string()),
47
44
  ssConfLinks: zod_1.z.record(zod_1.z.string(), zod_1.z.string()),
@@ -17,7 +17,7 @@ var GetSubpageConfigByShortUuidCommand;
17
17
  });
18
18
  GetSubpageConfigByShortUuidCommand.ResponseSchema = zod_1.z.object({
19
19
  response: zod_1.z.object({
20
- subpageConfigUuid: zod_1.z.string().uuid().nullable(),
20
+ subpageConfigUuid: zod_1.z.uuid().nullable(),
21
21
  webpageAllowed: zod_1.z.boolean(),
22
22
  }),
23
23
  });
@@ -24,9 +24,7 @@ var GetRecapCommand;
24
24
  distinctCountries: zod_1.z.number(),
25
25
  }),
26
26
  version: zod_1.z.string(),
27
- initDate: zod_1.z
28
- .string()
29
- .datetime({ local: true, offset: true })
27
+ initDate: zod_1.z.iso.datetime({ local: true, offset: true })
30
28
  .transform((str) => new Date(str)),
31
29
  }),
32
30
  });
@@ -26,7 +26,7 @@ var GetStatsCommand;
26
26
  uptime: zod_1.z.number(),
27
27
  timestamp: zod_1.z.number(),
28
28
  users: zod_1.z.object({
29
- statusCounts: zod_1.z.record(zod_1.z.enum(Object.values(constants_2.USERS_STATUS)), zod_1.z.number()),
29
+ statusCounts: zod_1.z.record(zod_1.z.enum(constants_2.USERS_STATUS), zod_1.z.number()),
30
30
  totalUsers: zod_1.z.number(),
31
31
  }),
32
32
  onlineStats: zod_1.z.object({
@@ -16,7 +16,7 @@ var TestSrrMatcherCommand;
16
16
  TestSrrMatcherCommand.ResponseSchema = zod_1.z.object({
17
17
  response: zod_1.z.object({
18
18
  matched: zod_1.z.boolean(),
19
- responseType: zod_1.z.nativeEnum(constants_1.RESPONSE_RULES_RESPONSE_TYPES),
19
+ responseType: zod_1.z.enum(constants_1.RESPONSE_RULES_RESPONSE_TYPES),
20
20
  matchedRule: zod_1.z.nullable(models_1.ResponseRuleSchema),
21
21
  inputHeaders: zod_1.z.record(zod_1.z.string(), zod_1.z.string()),
22
22
  outputHeaders: zod_1.z.record(zod_1.z.string(), zod_1.z.string()),
@@ -11,7 +11,7 @@ var DisableUserCommand;
11
11
  DisableUserCommand.TSQ_url = DisableUserCommand.url(':uuid');
12
12
  DisableUserCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.ACTIONS.DISABLE(':uuid'), 'post', 'Disable user', { scope: 'disable', kind: 'write' });
13
13
  DisableUserCommand.RequestParamSchema = zod_1.z.object({
14
- uuid: zod_1.z.string().uuid(),
14
+ uuid: zod_1.z.uuid(),
15
15
  });
16
16
  DisableUserCommand.ResponseSchema = user_response_1.UserResponseSchema;
17
17
  })(DisableUserCommand || (exports.DisableUserCommand = DisableUserCommand = {}));
@@ -11,7 +11,7 @@ var EnableUserCommand;
11
11
  EnableUserCommand.TSQ_url = EnableUserCommand.url(':uuid');
12
12
  EnableUserCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.ACTIONS.ENABLE(':uuid'), 'post', 'Enable user', { scope: 'enable', kind: 'write' });
13
13
  EnableUserCommand.RequestParamSchema = zod_1.z.object({
14
- uuid: zod_1.z.string().uuid(),
14
+ uuid: zod_1.z.uuid(),
15
15
  });
16
16
  EnableUserCommand.ResponseSchema = user_response_1.UserResponseSchema;
17
17
  })(EnableUserCommand || (exports.EnableUserCommand = EnableUserCommand = {}));
@@ -11,7 +11,7 @@ var ResetUserTrafficCommand;
11
11
  ResetUserTrafficCommand.TSQ_url = ResetUserTrafficCommand.url(':uuid');
12
12
  ResetUserTrafficCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.ACTIONS.RESET_TRAFFIC(':uuid'), 'post', 'Reset user traffic', { scope: 'reset-traffic', kind: 'write' });
13
13
  ResetUserTrafficCommand.RequestParamSchema = zod_1.z.object({
14
- uuid: zod_1.z.string().uuid(),
14
+ uuid: zod_1.z.uuid(),
15
15
  });
16
16
  ResetUserTrafficCommand.ResponseSchema = user_response_1.UserResponseSchema;
17
17
  })(ResetUserTrafficCommand || (exports.ResetUserTrafficCommand = ResetUserTrafficCommand = {}));
@@ -11,7 +11,7 @@ var RevokeUserSubscriptionCommand;
11
11
  RevokeUserSubscriptionCommand.TSQ_url = RevokeUserSubscriptionCommand.url(':uuid');
12
12
  RevokeUserSubscriptionCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.ACTIONS.REVOKE_SUBSCRIPTION(':uuid'), 'post', 'Revoke user subscription', { scope: 'revoke-subscription', kind: 'write' });
13
13
  RevokeUserSubscriptionCommand.RequestParamSchema = zod_1.z.object({
14
- uuid: zod_1.z.string().uuid(),
14
+ uuid: zod_1.z.uuid(),
15
15
  });
16
16
  RevokeUserSubscriptionCommand.RequestBodySchema = zod_1.z.preprocess((val) => val || {}, zod_1.z.object({
17
17
  revokeOnlyPasswords: zod_1.z.optional(zod_1.z
@@ -20,8 +20,8 @@ var RevokeUserSubscriptionCommand;
20
20
  .describe('Optional. If true, only passwords will be revoked, without changing the short UUID (Subscription URL).')),
21
21
  shortUuid: zod_1.z.optional(zod_1.z
22
22
  .string()
23
- .min(6, { message: 'Short UUID must be at least 6 characters' })
24
- .max(48, { message: 'Short UUID must be at most 48 characters' })
23
+ .min(6)
24
+ .max(48)
25
25
  .describe('Optional. If not provided, a new short UUID will be generated by Remnawave. Please note that it is strongly recommended to allow Remnawave to generate the short UUID.')),
26
26
  }));
27
27
  RevokeUserSubscriptionCommand.ResponseSchema = user_response_1.UserResponseSchema;
@@ -10,9 +10,6 @@ var BulkDeleteUsersCommand;
10
10
  BulkDeleteUsersCommand.TSQ_url = BulkDeleteUsersCommand.url;
11
11
  BulkDeleteUsersCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.BULK.DELETE, 'post', 'Bulk delete users by UUIDs', { scope: 'bulk-delete', kind: 'write' });
12
12
  BulkDeleteUsersCommand.RequestBodySchema = zod_1.z.object({
13
- uuids: zod_1.z
14
- .array(zod_1.z.string().uuid())
15
- .min(1, 'Must be at least 1 user UUID')
16
- .max(500, 'Maximum 500 user UUIDs'),
13
+ uuids: zod_1.z.array(zod_1.z.uuid()).min(1).max(500),
17
14
  });
18
15
  })(BulkDeleteUsersCommand || (exports.BulkDeleteUsersCommand = BulkDeleteUsersCommand = {}));
@@ -10,14 +10,7 @@ var BulkExtendExpirationDateCommand;
10
10
  BulkExtendExpirationDateCommand.TSQ_url = BulkExtendExpirationDateCommand.url;
11
11
  BulkExtendExpirationDateCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.BULK.EXTEND_EXPIRATION_DATE, 'post', 'Extend expiration date for specified users by days', { scope: 'bulk-extend-expiration-date', kind: 'write' });
12
12
  BulkExtendExpirationDateCommand.RequestBodySchema = zod_1.z.object({
13
- uuids: zod_1.z
14
- .array(zod_1.z.string().uuid())
15
- .min(1, 'Must be at least 1 user UUID')
16
- .max(500, 'Maximum 500 user UUIDs'),
17
- extendDays: zod_1.z
18
- .number()
19
- .int()
20
- .min(1, 'Extend days must be greater than 0')
21
- .max(9999, 'Maximum 9999 days'),
13
+ uuids: zod_1.z.array(zod_1.z.uuid()).min(1).max(500),
14
+ extendDays: zod_1.z.int().min(1).max(9999),
22
15
  });
23
16
  })(BulkExtendExpirationDateCommand || (exports.BulkExtendExpirationDateCommand = BulkExtendExpirationDateCommand = {}));
@@ -10,9 +10,6 @@ var BulkResetTrafficUsersCommand;
10
10
  BulkResetTrafficUsersCommand.TSQ_url = BulkResetTrafficUsersCommand.url;
11
11
  BulkResetTrafficUsersCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.BULK.RESET_TRAFFIC, 'post', 'Bulk reset traffic users by UUIDs', { scope: 'bulk-reset-traffic', kind: 'write' });
12
12
  BulkResetTrafficUsersCommand.RequestBodySchema = zod_1.z.object({
13
- uuids: zod_1.z
14
- .array(zod_1.z.string().uuid())
15
- .min(1, 'Must be at least 1 user UUID')
16
- .max(500, 'Maximum 500 user UUIDs'),
13
+ uuids: zod_1.z.array(zod_1.z.uuid()).min(1).max(500),
17
14
  });
18
15
  })(BulkResetTrafficUsersCommand || (exports.BulkResetTrafficUsersCommand = BulkResetTrafficUsersCommand = {}));
@@ -10,9 +10,6 @@ var BulkRevokeUsersSubscriptionCommand;
10
10
  BulkRevokeUsersSubscriptionCommand.TSQ_url = BulkRevokeUsersSubscriptionCommand.url;
11
11
  BulkRevokeUsersSubscriptionCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.BULK.REVOKE_SUBSCRIPTION, 'post', 'Revoke users subscription by User UUIDs', { scope: 'bulk-revoke-subscription', kind: 'write' });
12
12
  BulkRevokeUsersSubscriptionCommand.RequestBodySchema = zod_1.z.object({
13
- uuids: zod_1.z
14
- .array(zod_1.z.string().uuid())
15
- .min(1, 'Must be at least 1 user UUID')
16
- .max(500, 'Maximum 500 user UUIDs'),
13
+ uuids: zod_1.z.array(zod_1.z.uuid()).min(1).max(500),
17
14
  });
18
15
  })(BulkRevokeUsersSubscriptionCommand || (exports.BulkRevokeUsersSubscriptionCommand = BulkRevokeUsersSubscriptionCommand = {}));
@@ -10,12 +10,7 @@ var BulkUpdateUsersSquadsCommand;
10
10
  BulkUpdateUsersSquadsCommand.TSQ_url = BulkUpdateUsersSquadsCommand.url;
11
11
  BulkUpdateUsersSquadsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.BULK.UPDATE_SQUADS, 'post', 'Bulk update users internal squads by UUIDs', { scope: 'bulk-update-squads', kind: 'write' });
12
12
  BulkUpdateUsersSquadsCommand.RequestBodySchema = zod_1.z.object({
13
- uuids: zod_1.z
14
- .array(zod_1.z.string().uuid())
15
- .min(1, 'Must be at least 1 user UUID')
16
- .max(500, 'Maximum 500 user UUIDs'),
17
- activeInternalSquads: zod_1.z.array(zod_1.z.string().uuid(), {
18
- invalid_type_error: 'Enabled internal squads must be an array of UUIDs',
19
- }),
13
+ uuids: zod_1.z.array(zod_1.z.uuid()).min(1).max(500),
14
+ activeInternalSquads: zod_1.z.array(zod_1.z.uuid()),
20
15
  });
21
16
  })(BulkUpdateUsersSquadsCommand || (exports.BulkUpdateUsersSquadsCommand = BulkUpdateUsersSquadsCommand = {}));
@@ -12,43 +12,28 @@ var BulkUpdateUsersCommand;
12
12
  BulkUpdateUsersCommand.TSQ_url = BulkUpdateUsersCommand.url;
13
13
  BulkUpdateUsersCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.BULK.UPDATE, 'post', 'Bulk update users by UUIDs', { scope: 'bulk-update-users', kind: 'write' });
14
14
  BulkUpdateUsersCommand.RequestBodySchema = zod_1.z.object({
15
- uuids: zod_1.z
16
- .array(zod_1.z.string().uuid())
17
- .min(1, 'Must be at least 1 user UUID')
18
- .max(500, 'Maximum 500 user UUIDs'),
15
+ uuids: zod_1.z.array(zod_1.z.uuid()).min(1).max(500),
19
16
  fields: zod_1.z.object({
20
17
  status: models_1.UsersSchema.shape.status.optional(),
21
- trafficLimitBytes: zod_1.z.optional(zod_1.z
22
- .number({
23
- invalid_type_error: 'Traffic limit must be a number',
24
- })
25
- .min(0, 'Traffic limit must be greater than 0')
26
- .describe('Traffic limit in bytes. 0 - unlimited')),
27
- trafficLimitStrategy: zod_1.z.optional(zod_1.z
28
- .nativeEnum(constants_2.RESET_PERIODS, {
29
- description: 'Available reset periods',
30
- })
31
- .describe('Traffic limit reset strategy')),
32
- expireAt: zod_1.z.optional(zod_1.z
33
- .string()
34
- .datetime({ local: true, offset: true, message: 'Invalid date format' })
18
+ trafficLimitBytes: zod_1.z.optional(zod_1.z.number().min(0).describe('Traffic limit in bytes. 0 - unlimited')),
19
+ trafficLimitStrategy: zod_1.z.optional(zod_1.z.enum(constants_2.RESET_PERIODS).describe('Available reset periods')),
20
+ expireAt: zod_1.z.optional(zod_1.z.iso
21
+ .datetime({ local: true, offset: true })
35
22
  .transform((str) => new Date(str))
36
23
  .refine((date) => date > new Date(), {
37
- message: 'Expiration date cannot be in the past',
24
+ error: 'Expiration date cannot be in the past',
38
25
  })
39
26
  .describe('Expiration date: 2025-01-17T15:38:45.065Z')),
40
- description: zod_1.z.optional(zod_1.z.string().nullable()),
41
- telegramId: zod_1.z.optional(zod_1.z.number().int().nullable()),
42
- email: zod_1.z.optional(zod_1.z.string().email('Invalid email format').nullable()),
27
+ description: zod_1.z.string().nullish(),
28
+ telegramId: zod_1.z.number().nullish(),
29
+ email: zod_1.z.email().nullish(),
43
30
  tag: zod_1.z.optional(zod_1.z
44
31
  .string()
45
32
  .regex(/^[A-Z0-9_]+$/, 'Tag can only contain uppercase letters, numbers, underscores')
46
33
  .max(16, 'Tag must be less than 16 characters')
47
34
  .nullable()),
48
- hwidDeviceLimit: zod_1.z.optional(zod_1.z.number().int().min(0, 'Device limit must be non-negative').nullable()),
49
- externalSquadUuid: zod_1.z
50
- .optional(zod_1.z.nullable(zod_1.z.string().uuid()))
51
- .describe('Optional. External squad UUID.'),
35
+ hwidDeviceLimit: zod_1.z.int().min(0).nullish(),
36
+ externalSquadUuid: zod_1.z.uuid().nullish().describe('Optional. External squad UUID.'),
52
37
  }),
53
38
  });
54
39
  })(BulkUpdateUsersCommand || (exports.BulkUpdateUsersCommand = BulkUpdateUsersCommand = {}));
@@ -10,6 +10,6 @@ var BulkAllExtendExpirationDateCommand;
10
10
  BulkAllExtendExpirationDateCommand.TSQ_url = BulkAllExtendExpirationDateCommand.url;
11
11
  BulkAllExtendExpirationDateCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.BULK.ALL.EXTEND_EXPIRATION_DATE, 'post', 'Extend expiration date for all users by days', { scope: 'bulk-all-extend-expiration-date', kind: 'write' });
12
12
  BulkAllExtendExpirationDateCommand.RequestBodySchema = zod_1.z.object({
13
- extendDays: zod_1.z.number().int().min(1, 'Extend days must be greater than 0'),
13
+ extendDays: zod_1.z.int().min(1),
14
14
  });
15
15
  })(BulkAllExtendExpirationDateCommand || (exports.BulkAllExtendExpirationDateCommand = BulkAllExtendExpirationDateCommand = {}));
@@ -5,41 +5,30 @@ const zod_1 = require("zod");
5
5
  const api_1 = require("../../../api");
6
6
  const constants_1 = require("../../../constants");
7
7
  const constants_2 = require("../../../constants");
8
- const models_1 = require("../../../models");
9
8
  var BulkAllUpdateUsersCommand;
10
9
  (function (BulkAllUpdateUsersCommand) {
11
10
  BulkAllUpdateUsersCommand.url = api_1.REST_API.USERS.BULK.ALL.UPDATE;
12
11
  BulkAllUpdateUsersCommand.TSQ_url = BulkAllUpdateUsersCommand.url;
13
12
  BulkAllUpdateUsersCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.BULK.ALL.UPDATE, 'post', 'Bulk update all users', { scope: 'bulk-all-update-users', kind: 'write' });
14
13
  BulkAllUpdateUsersCommand.RequestBodySchema = zod_1.z.object({
15
- status: models_1.UsersSchema.shape.status.optional(),
16
- trafficLimitBytes: zod_1.z.optional(zod_1.z
17
- .number({
18
- invalid_type_error: 'Traffic limit must be a number',
19
- })
20
- .min(0, 'Traffic limit must be 0 or greater')
21
- .describe('Traffic limit in bytes. 0 - unlimited')),
22
- trafficLimitStrategy: zod_1.z.optional(zod_1.z
23
- .nativeEnum(constants_2.RESET_PERIODS, {
24
- description: 'Available reset periods',
25
- })
26
- .describe('Traffic limit reset strategy')),
27
- expireAt: zod_1.z.optional(zod_1.z
28
- .string()
29
- .datetime({ local: true, offset: true, message: 'Invalid date format' })
14
+ status: zod_1.z.enum(constants_1.USERS_STATUS).optional(),
15
+ trafficLimitBytes: zod_1.z.optional(zod_1.z.number().min(0).describe('Traffic limit in bytes. 0 - unlimited')),
16
+ trafficLimitStrategy: zod_1.z.optional(zod_1.z.enum(constants_2.RESET_PERIODS).describe('Available reset periods')),
17
+ expireAt: zod_1.z.optional(zod_1.z.iso
18
+ .datetime({ local: true, offset: true })
30
19
  .transform((str) => new Date(str))
31
20
  .refine((date) => date > new Date(), {
32
- message: 'Expiration date cannot be in the past',
21
+ error: 'Expiration date cannot be in the past',
33
22
  })
34
23
  .describe('Expiration date: 2025-01-17T15:38:45.065Z')),
35
- description: zod_1.z.optional(zod_1.z.string().nullable()),
36
- telegramId: zod_1.z.optional(zod_1.z.number().int().nullable()),
37
- email: zod_1.z.optional(zod_1.z.string().email('Invalid email format').nullable()),
24
+ description: zod_1.z.string().nullish(),
25
+ telegramId: zod_1.z.number().nullish(),
26
+ email: zod_1.z.email().nullish(),
38
27
  tag: zod_1.z.optional(zod_1.z
39
28
  .string()
40
29
  .regex(/^[A-Z0-9_]+$/, 'Tag can only contain uppercase letters, numbers, underscores')
41
30
  .max(16, 'Tag must be less than 16 characters')
42
31
  .nullable()),
43
- hwidDeviceLimit: zod_1.z.optional(zod_1.z.number().int().min(0, 'Device limit must be non-negative').nullable()),
32
+ hwidDeviceLimit: zod_1.z.int().min(0).nullish(),
44
33
  });
45
34
  })(BulkAllUpdateUsersCommand || (exports.BulkAllUpdateUsersCommand = BulkAllUpdateUsersCommand = {}));
@@ -4,7 +4,6 @@ exports.CreateUserCommand = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const api_1 = require("../../api");
6
6
  const constants_1 = require("../../constants");
7
- const models_1 = require("../../models");
8
7
  const user_response_1 = require("./user.response");
9
8
  var CreateUserCommand;
10
9
  (function (CreateUserCommand) {
@@ -13,88 +12,53 @@ var CreateUserCommand;
13
12
  CreateUserCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.CREATE, 'post', 'Create a new user', { scope: 'create', kind: 'write' });
14
13
  CreateUserCommand.RequestBodySchema = zod_1.z.object({
15
14
  username: zod_1.z
16
- .string({
17
- required_error: 'Username is required',
18
- invalid_type_error: 'Username must be a string',
19
- })
15
+ .string()
20
16
  .regex(/^[a-zA-Z0-9_-]+$/, 'Username can only contain letters, numbers, underscores and dashes')
21
17
  .max(36, 'Username must be less than 36 characters')
22
18
  .min(3, 'Username must be at least 3 characters')
23
19
  .describe('Unique username for the user. Required. Must be 3-36 characters long and contain only letters, numbers, underscores and dashes.'),
24
- status: models_1.UsersSchema.shape.status
25
- .optional()
20
+ status: zod_1.z
21
+ .enum(constants_1.USERS_STATUS)
26
22
  .default(constants_1.USERS_STATUS.ACTIVE)
27
- .describe('Optional. User account status. Defaults to ACTIVE.'),
28
- shortUuid: zod_1.z
29
- .string({
30
- invalid_type_error: 'Short UUID must be a string',
31
- })
32
23
  .optional()
33
- .describe('Optional. Short UUID identifier for the user.'),
24
+ .describe('Optional. User account status. Defaults to ACTIVE.'),
25
+ shortUuid: zod_1.z.string().optional().describe('Optional. Short UUID identifier for the user.'),
34
26
  trojanPassword: zod_1.z
35
- .string({
36
- invalid_type_error: 'Trojan password must be a string',
37
- })
27
+ .string()
38
28
  .min(8, 'Trojan password must be at least 8 characters')
39
29
  .max(32, 'Trojan password must be less than 32 characters')
40
30
  .optional()
41
31
  .describe('Optional. Password for Trojan protocol. Must be 8-32 characters.'),
42
32
  vlessUuid: zod_1.z
43
- .string({
44
- invalid_type_error: 'Vless UUID must be a string',
45
- })
46
33
  .uuid('Invalid Vless UUID format')
47
34
  .optional()
48
35
  .describe('Optional. UUID for VLESS protocol. Must be a valid UUID format.'),
49
36
  ssPassword: zod_1.z
50
- .string({
51
- invalid_type_error: 'SS password must be a string',
52
- })
37
+ .string()
53
38
  .min(8, 'SS password must be at least 8 characters')
54
39
  .max(32, 'SS password must be less than 32 characters')
55
40
  .optional()
56
41
  .describe('Optional. Password for Shadowsocks protocol. Must be 8-32 characters.'),
57
42
  trafficLimitBytes: zod_1.z
58
- .number({
59
- invalid_type_error: 'Traffic limit must be a number',
60
- })
43
+ .number()
61
44
  .min(0, 'Traffic limit must be greater than 0')
62
45
  .optional()
63
46
  .describe('Optional. Traffic limit in bytes. Set to 0 for unlimited traffic.'),
64
- trafficLimitStrategy: zod_1.z.optional(models_1.UsersSchema.shape.trafficLimitStrategy
47
+ trafficLimitStrategy: zod_1.z.optional(zod_1.z
48
+ .enum(constants_1.RESET_PERIODS)
65
49
  .default(constants_1.RESET_PERIODS.NO_RESET)
66
- .superRefine((val, ctx) => {
67
- if (val && !Object.values(constants_1.RESET_PERIODS).includes(val)) {
68
- ctx.addIssue({
69
- code: zod_1.z.ZodIssueCode.invalid_enum_value,
70
- message: 'Invalid traffic limit strategy',
71
- path: ['trafficLimitStrategy'],
72
- received: val,
73
- options: Object.values(constants_1.RESET_PERIODS),
74
- });
75
- }
76
- })),
77
- expireAt: zod_1.z
78
- .string({
79
- required_error: 'Expiration date is required',
80
- invalid_type_error: 'Invalid date format',
81
- })
82
- .datetime({ message: 'Invalid date format', offset: true, local: true })
50
+ .describe('Available reset periods')),
51
+ expireAt: zod_1.z.iso
52
+ .datetime({ offset: true, local: true })
83
53
  .transform((str) => new Date(str))
84
54
  .describe('Account expiration date. Required. Format: 2025-01-17T15:38:45.065Z'),
85
- createdAt: zod_1.z
86
- .string({
87
- invalid_type_error: 'Invalid date format',
88
- })
89
- .datetime({ message: 'Invalid date format', offset: true, local: true })
55
+ createdAt: zod_1.z.iso
56
+ .datetime({ offset: true, local: true })
90
57
  .transform((str) => new Date(str))
91
58
  .optional()
92
59
  .describe('Optional. Account creation date. Format: 2025-01-17T15:38:45.065Z'),
93
- lastTrafficResetAt: zod_1.z
94
- .string({
95
- invalid_type_error: 'Invalid date format',
96
- })
97
- .datetime({ message: 'Invalid date format', offset: true, local: true })
60
+ lastTrafficResetAt: zod_1.z.iso
61
+ .datetime({ offset: true, local: true })
98
62
  .transform((str) => new Date(str))
99
63
  .optional()
100
64
  .describe('Optional. Date of last traffic reset. Format: 2025-01-17T15:38:45.065Z'),
@@ -110,28 +74,26 @@ var CreateUserCommand;
110
74
  .nullable())
111
75
  .describe('Optional. User tag for categorization. Max 16 characters, uppercase letters, numbers and underscores only.'),
112
76
  telegramId: zod_1.z
113
- .optional(zod_1.z.number().int().nullable())
77
+ .number()
78
+ .nullish()
114
79
  .describe('Optional. Telegram user ID for notifications. Must be an integer.'),
115
80
  email: zod_1.z
116
- .optional(zod_1.z.string().email('Invalid email format').nullable())
81
+ .email()
82
+ .nullish()
117
83
  .describe('Optional. User email address. Must be a valid email format.'),
118
84
  hwidDeviceLimit: zod_1.z.optional(zod_1.z
119
- .number({ invalid_type_error: 'Device limit must be a number' })
120
- .int('Device limit must be an integer')
121
- .min(0, 'Device limit must be greater than 0')
85
+ .int()
86
+ .min(0)
122
87
  .describe('Optional. Maximum number of hardware devices allowed. Must be a positive integer.')),
123
88
  activeInternalSquads: zod_1.z
124
- .array(zod_1.z.string().uuid(), {
125
- invalid_type_error: 'Enabled internal squads must be an array',
126
- })
89
+ .array(zod_1.z.uuid())
127
90
  .optional()
128
91
  .describe('Optional. Array of UUIDs representing enabled internal squads.'),
129
92
  uuid: zod_1.z.optional(zod_1.z
130
- .string()
131
93
  .uuid()
132
94
  .describe('Optional. Pass UUID to create user with specific UUID, otherwise it will be generated automatically.')),
133
95
  externalSquadUuid: zod_1.z
134
- .optional(zod_1.z.nullable(zod_1.z.string().uuid()))
96
+ .optional(zod_1.z.nullable(zod_1.z.uuid()))
135
97
  .describe('Optional. External squad UUID.'),
136
98
  });
137
99
  CreateUserCommand.ResponseSchema = user_response_1.UserResponseSchema;
@@ -10,6 +10,6 @@ var DeleteUserCommand;
10
10
  DeleteUserCommand.TSQ_url = DeleteUserCommand.url(':uuid');
11
11
  DeleteUserCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.DELETE(':uuid'), 'delete', 'Delete user', { scope: 'delete', kind: 'write' });
12
12
  DeleteUserCommand.RequestParamSchema = zod_1.z.object({
13
- uuid: zod_1.z.string().uuid(),
13
+ uuid: zod_1.z.uuid(),
14
14
  });
15
15
  })(DeleteUserCommand || (exports.DeleteUserCommand = DeleteUserCommand = {}));
@@ -11,7 +11,7 @@ var GetUserByIdCommand;
11
11
  GetUserByIdCommand.TSQ_url = GetUserByIdCommand.url(':id');
12
12
  GetUserByIdCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.GET_BY.ID(':id'), 'get', 'Get user by ID', { scope: 'by-id', kind: 'read' });
13
13
  GetUserByIdCommand.RequestParamSchema = zod_1.z.object({
14
- id: zod_1.z.coerce.bigint(),
14
+ id: zod_1.z.string().transform(BigInt),
15
15
  });
16
16
  GetUserByIdCommand.ResponseSchema = user_response_1.UserResponseSchema;
17
17
  })(GetUserByIdCommand || (exports.GetUserByIdCommand = GetUserByIdCommand = {}));
@@ -10,16 +10,16 @@ var GetUserAccessibleNodesCommand;
10
10
  GetUserAccessibleNodesCommand.TSQ_url = GetUserAccessibleNodesCommand.url(':uuid');
11
11
  GetUserAccessibleNodesCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.ACCESSIBLE_NODES(':uuid'), 'get', 'Get user accessible nodes', { scope: 'accessible-nodes', kind: 'read' });
12
12
  GetUserAccessibleNodesCommand.RequestParamSchema = zod_1.z.object({
13
- uuid: zod_1.z.string().uuid(),
13
+ uuid: zod_1.z.uuid(),
14
14
  });
15
15
  GetUserAccessibleNodesCommand.ResponseSchema = zod_1.z.object({
16
16
  response: zod_1.z.object({
17
- userUuid: zod_1.z.string().uuid(),
17
+ userUuid: zod_1.z.uuid(),
18
18
  activeNodes: zod_1.z.array(zod_1.z.object({
19
- uuid: zod_1.z.string().uuid(),
19
+ uuid: zod_1.z.uuid(),
20
20
  nodeName: zod_1.z.string(),
21
21
  countryCode: zod_1.z.string(),
22
- configProfileUuid: zod_1.z.string().uuid(),
22
+ configProfileUuid: zod_1.z.uuid(),
23
23
  configProfileName: zod_1.z.string(),
24
24
  activeSquads: zod_1.z.array(zod_1.z.object({
25
25
  squadName: zod_1.z.string(),
@@ -11,7 +11,7 @@ var GetUserByUuidCommand;
11
11
  GetUserByUuidCommand.TSQ_url = GetUserByUuidCommand.url(':uuid');
12
12
  GetUserByUuidCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.GET_BY_UUID(':uuid'), 'get', 'Get user by UUID', { scope: 'by-uuid', kind: 'read' });
13
13
  GetUserByUuidCommand.RequestParamSchema = zod_1.z.object({
14
- uuid: zod_1.z.string().uuid(),
14
+ uuid: zod_1.z.uuid(),
15
15
  });
16
16
  GetUserByUuidCommand.ResponseSchema = user_response_1.UserResponseSchema;
17
17
  })(GetUserByUuidCommand || (exports.GetUserByUuidCommand = GetUserByUuidCommand = {}));
@@ -10,7 +10,7 @@ var GetUserSubscriptionRequestHistoryCommand;
10
10
  GetUserSubscriptionRequestHistoryCommand.TSQ_url = GetUserSubscriptionRequestHistoryCommand.url(':uuid');
11
11
  GetUserSubscriptionRequestHistoryCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.SUBSCRIPTION_REQUEST_HISTORY(':uuid'), 'get', 'Get user subscription request history, recent 24 records', { scope: 'subscription-request-history', kind: 'read' });
12
12
  GetUserSubscriptionRequestHistoryCommand.RequestParamSchema = zod_1.z.object({
13
- uuid: zod_1.z.string().uuid(),
13
+ uuid: zod_1.z.uuid(),
14
14
  });
15
15
  GetUserSubscriptionRequestHistoryCommand.ResponseSchema = zod_1.z.object({
16
16
  response: zod_1.z.object({
@@ -18,9 +18,7 @@ var GetUserSubscriptionRequestHistoryCommand;
18
18
  records: zod_1.z.array(zod_1.z.object({
19
19
  id: zod_1.z.number(),
20
20
  userId: zod_1.z.number(),
21
- requestAt: zod_1.z
22
- .string()
23
- .datetime()
21
+ requestAt: zod_1.z.iso.datetime()
24
22
  .transform((str) => new Date(str)),
25
23
  requestIp: zod_1.z.string().optional().nullable(),
26
24
  userAgent: zod_1.z.string().optional().nullable(),