@remnawave/backend-contract 2.9.2 → 2.9.4

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 (800) hide show
  1. package/build/backend/api/controllers/connections.d.ts +9 -0
  2. package/build/backend/api/controllers/connections.d.ts.map +1 -0
  3. package/build/backend/api/controllers/connections.js +16 -0
  4. package/build/backend/api/controllers/index.d.ts +1 -1
  5. package/build/backend/api/controllers/index.d.ts.map +1 -1
  6. package/build/backend/api/controllers/index.js +1 -1
  7. package/build/backend/api/controllers-info.d.ts +4 -4
  8. package/build/backend/api/controllers-info.js +4 -4
  9. package/build/backend/api/routes.d.ts +6 -6
  10. package/build/backend/api/routes.d.ts.map +1 -1
  11. package/build/backend/api/routes.js +6 -6
  12. package/build/backend/commands/api-tokens/create.command.d.ts +9 -54
  13. package/build/backend/commands/api-tokens/create.command.d.ts.map +1 -1
  14. package/build/backend/commands/api-tokens/delete.command.d.ts +2 -6
  15. package/build/backend/commands/api-tokens/delete.command.d.ts.map +1 -1
  16. package/build/backend/commands/api-tokens/delete.command.js +1 -1
  17. package/build/backend/commands/api-tokens/get-api-tokens.command.d.ts +9 -91
  18. package/build/backend/commands/api-tokens/get-api-tokens.command.d.ts.map +1 -1
  19. package/build/backend/commands/api-tokens/get-scopes.command.d.ts +21 -144
  20. package/build/backend/commands/api-tokens/get-scopes.command.d.ts.map +1 -1
  21. package/build/backend/commands/auth/get-status.command.d.ts +8 -122
  22. package/build/backend/commands/auth/get-status.command.d.ts.map +1 -1
  23. package/build/backend/commands/auth/get-status.command.js +1 -1
  24. package/build/backend/commands/auth/login.command.d.ts +3 -21
  25. package/build/backend/commands/auth/login.command.d.ts.map +1 -1
  26. package/build/backend/commands/auth/oauth2/authorize.command.d.ts +5 -21
  27. package/build/backend/commands/auth/oauth2/authorize.command.d.ts.map +1 -1
  28. package/build/backend/commands/auth/oauth2/authorize.command.js +2 -2
  29. package/build/backend/commands/auth/oauth2/callback.command.d.ts +4 -24
  30. package/build/backend/commands/auth/oauth2/callback.command.d.ts.map +1 -1
  31. package/build/backend/commands/auth/oauth2/callback.command.js +1 -1
  32. package/build/backend/commands/auth/passkey/get-authentication-options.command.d.ts +1 -5
  33. package/build/backend/commands/auth/passkey/get-authentication-options.command.d.ts.map +1 -1
  34. package/build/backend/commands/auth/passkey/verify-authentication.command.d.ts +3 -19
  35. package/build/backend/commands/auth/passkey/verify-authentication.command.d.ts.map +1 -1
  36. package/build/backend/commands/auth/register.command.d.ts +3 -21
  37. package/build/backend/commands/auth/register.command.d.ts.map +1 -1
  38. package/build/backend/commands/bandwidth-stats/legacy/get-legacy-stats-node-user-usage.command.d.ts +10 -48
  39. package/build/backend/commands/bandwidth-stats/legacy/get-legacy-stats-node-user-usage.command.d.ts.map +1 -1
  40. package/build/backend/commands/bandwidth-stats/legacy/get-legacy-stats-node-user-usage.command.js +5 -5
  41. package/build/backend/commands/bandwidth-stats/legacy/get-legacy-user-usage.command.d.ts +10 -52
  42. package/build/backend/commands/bandwidth-stats/legacy/get-legacy-user-usage.command.d.ts.map +1 -1
  43. package/build/backend/commands/bandwidth-stats/legacy/get-legacy-user-usage.command.js +5 -5
  44. package/build/backend/commands/bandwidth-stats/nodes/get-stats-node-users-usage.command.d.ts +11 -67
  45. package/build/backend/commands/bandwidth-stats/nodes/get-stats-node-users-usage.command.d.ts.map +1 -1
  46. package/build/backend/commands/bandwidth-stats/nodes/get-stats-node-users-usage.command.js +3 -3
  47. package/build/backend/commands/bandwidth-stats/nodes/get-stats-nodes-usage.command.d.ts +13 -123
  48. package/build/backend/commands/bandwidth-stats/nodes/get-stats-nodes-usage.command.d.ts.map +1 -1
  49. package/build/backend/commands/bandwidth-stats/nodes/get-stats-nodes-usage.command.js +4 -4
  50. package/build/backend/commands/bandwidth-stats/nodes/get-stats-nodes-users-usage.command.d.ts +11 -67
  51. package/build/backend/commands/bandwidth-stats/nodes/get-stats-nodes-users-usage.command.d.ts.map +1 -1
  52. package/build/backend/commands/bandwidth-stats/nodes/get-stats-nodes-users-usage.command.js +3 -3
  53. package/build/backend/commands/bandwidth-stats/users/get-stats-user-usage.command.d.ts +15 -129
  54. package/build/backend/commands/bandwidth-stats/users/get-stats-user-usage.command.d.ts.map +1 -1
  55. package/build/backend/commands/bandwidth-stats/users/get-stats-user-usage.command.js +5 -5
  56. package/build/backend/commands/config-profiles/actions/reorder.command.d.ts +17 -252
  57. package/build/backend/commands/config-profiles/actions/reorder.command.d.ts.map +1 -1
  58. package/build/backend/commands/config-profiles/create-config-profile.command.d.ts +13 -141
  59. package/build/backend/commands/config-profiles/create-config-profile.command.d.ts.map +1 -1
  60. package/build/backend/commands/config-profiles/create-config-profile.command.js +1 -1
  61. package/build/backend/commands/config-profiles/delete-config-profile.command.d.ts +2 -6
  62. package/build/backend/commands/config-profiles/delete-config-profile.command.d.ts.map +1 -1
  63. package/build/backend/commands/config-profiles/delete-config-profile.command.js +1 -1
  64. package/build/backend/commands/config-profiles/get-all-inbounds.command.d.ts +6 -83
  65. package/build/backend/commands/config-profiles/get-all-inbounds.command.d.ts.map +1 -1
  66. package/build/backend/commands/config-profiles/get-all-inbounds.command.js +1 -1
  67. package/build/backend/commands/config-profiles/get-computed-config-profile-by-uuid.command.d.ts +13 -135
  68. package/build/backend/commands/config-profiles/get-computed-config-profile-by-uuid.command.d.ts.map +1 -1
  69. package/build/backend/commands/config-profiles/get-computed-config-profile-by-uuid.command.js +1 -1
  70. package/build/backend/commands/config-profiles/get-config-profile-by-uuid.command.d.ts +13 -135
  71. package/build/backend/commands/config-profiles/get-config-profile-by-uuid.command.d.ts.map +1 -1
  72. package/build/backend/commands/config-profiles/get-config-profile-by-uuid.command.js +1 -1
  73. package/build/backend/commands/config-profiles/get-config-profiles.command.d.ts +12 -186
  74. package/build/backend/commands/config-profiles/get-config-profiles.command.d.ts.map +1 -1
  75. package/build/backend/commands/config-profiles/get-inbounds-by-profile-uuid.command.d.ts +8 -89
  76. package/build/backend/commands/config-profiles/get-inbounds-by-profile-uuid.command.d.ts.map +1 -1
  77. package/build/backend/commands/config-profiles/get-inbounds-by-profile-uuid.command.js +2 -2
  78. package/build/backend/commands/config-profiles/update-config-profile.command.d.ts +14 -140
  79. package/build/backend/commands/config-profiles/update-config-profile.command.d.ts.map +1 -1
  80. package/build/backend/commands/config-profiles/update-config-profile.command.js +2 -2
  81. package/build/backend/commands/connections/connections-by-node-result.command.d.ts +29 -0
  82. package/build/backend/commands/connections/connections-by-node-result.command.d.ts.map +1 -0
  83. package/build/backend/commands/{ip-control/fetch-users-ips-result.command.js → connections/connections-by-node-result.command.js} +11 -12
  84. package/build/backend/commands/connections/connections-by-node.command.d.ts +17 -0
  85. package/build/backend/commands/connections/connections-by-node.command.d.ts.map +1 -0
  86. package/build/backend/commands/connections/connections-by-node.command.js +20 -0
  87. package/build/backend/commands/connections/connections-by-user-result.command.d.ts +37 -0
  88. package/build/backend/commands/connections/connections-by-user-result.command.d.ts.map +1 -0
  89. package/build/{frontend/commands/ip-control/fetch-ips-result.command.js → backend/commands/connections/connections-by-user-result.command.js} +12 -13
  90. package/build/backend/commands/connections/connections-by-user.command.d.ts +17 -0
  91. package/build/backend/commands/connections/connections-by-user.command.d.ts.map +1 -0
  92. package/build/backend/commands/connections/connections-by-user.command.js +20 -0
  93. package/build/backend/commands/connections/drop-connections.command.d.ts +36 -0
  94. package/build/backend/commands/connections/drop-connections.command.d.ts.map +1 -0
  95. package/build/backend/commands/{ip-control → connections}/drop-connections.command.js +5 -5
  96. package/build/backend/commands/connections/index.d.ts +6 -0
  97. package/build/backend/commands/connections/index.d.ts.map +1 -0
  98. package/build/backend/commands/{ip-control → connections}/index.js +4 -4
  99. package/build/backend/commands/external-squads/actions/reorder.command.d.ts +29 -482
  100. package/build/backend/commands/external-squads/actions/reorder.command.d.ts.map +1 -1
  101. package/build/backend/commands/external-squads/bulk-actions/add-users-to-external-squad.command.d.ts +2 -6
  102. package/build/backend/commands/external-squads/bulk-actions/add-users-to-external-squad.command.d.ts.map +1 -1
  103. package/build/backend/commands/external-squads/bulk-actions/add-users-to-external-squad.command.js +1 -1
  104. package/build/backend/commands/external-squads/bulk-actions/delete-users-from-external-squad.command.d.ts +2 -6
  105. package/build/backend/commands/external-squads/bulk-actions/delete-users-from-external-squad.command.d.ts.map +1 -1
  106. package/build/backend/commands/external-squads/bulk-actions/delete-users-from-external-squad.command.js +1 -1
  107. package/build/backend/commands/external-squads/create-external-squad.command.d.ts +24 -262
  108. package/build/backend/commands/external-squads/create-external-squad.command.d.ts.map +1 -1
  109. package/build/backend/commands/external-squads/delete-external-squad.command.d.ts +2 -6
  110. package/build/backend/commands/external-squads/delete-external-squad.command.d.ts.map +1 -1
  111. package/build/backend/commands/external-squads/delete-external-squad.command.js +1 -1
  112. package/build/backend/commands/external-squads/get-external-squad-by-uuid.command.d.ts +25 -263
  113. package/build/backend/commands/external-squads/get-external-squad-by-uuid.command.d.ts.map +1 -1
  114. package/build/backend/commands/external-squads/get-external-squad-by-uuid.command.js +1 -1
  115. package/build/backend/commands/external-squads/get-external-squads.command.d.ts +24 -356
  116. package/build/backend/commands/external-squads/get-external-squads.command.d.ts.map +1 -1
  117. package/build/backend/commands/external-squads/update-external-squad.command.d.ts +41 -403
  118. package/build/backend/commands/external-squads/update-external-squad.command.d.ts.map +1 -1
  119. package/build/backend/commands/external-squads/update-external-squad.command.js +8 -8
  120. package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts +2 -6
  121. package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts.map +1 -1
  122. package/build/backend/commands/hosts/bulk/delete-many-hosts.command.js +1 -1
  123. package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts +2 -6
  124. package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts.map +1 -1
  125. package/build/backend/commands/hosts/bulk/disable-many-hosts.command.js +1 -1
  126. package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts +2 -6
  127. package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts.map +1 -1
  128. package/build/backend/commands/hosts/bulk/enable-many-hosts.command.js +1 -1
  129. package/build/backend/commands/hosts/bulk/update-many-hosts.command.d.ts +16 -93
  130. package/build/backend/commands/hosts/bulk/update-many-hosts.command.d.ts.map +1 -1
  131. package/build/backend/commands/hosts/bulk/update-many-hosts.command.js +1 -1
  132. package/build/backend/commands/hosts/create.command.d.ts +33 -261
  133. package/build/backend/commands/hosts/create.command.d.ts.map +1 -1
  134. package/build/backend/commands/hosts/create.command.js +12 -17
  135. package/build/backend/commands/hosts/delete.command.d.ts +2 -6
  136. package/build/backend/commands/hosts/delete.command.d.ts.map +1 -1
  137. package/build/backend/commands/hosts/delete.command.js +1 -1
  138. package/build/backend/commands/hosts/get-host.command.d.ts +20 -178
  139. package/build/backend/commands/hosts/get-host.command.d.ts.map +1 -1
  140. package/build/backend/commands/hosts/get-host.command.js +1 -1
  141. package/build/backend/commands/hosts/get-hosts.command.d.ts +18 -172
  142. package/build/backend/commands/hosts/get-hosts.command.d.ts.map +1 -1
  143. package/build/backend/commands/hosts/host.response.d.ts +18 -172
  144. package/build/backend/commands/hosts/host.response.d.ts.map +1 -1
  145. package/build/backend/commands/hosts/reorder.command.d.ts +7 -98
  146. package/build/backend/commands/hosts/reorder.command.d.ts.map +1 -1
  147. package/build/backend/commands/hosts/tags/get-hosts-tags.command.d.ts +3 -15
  148. package/build/backend/commands/hosts/tags/get-hosts-tags.command.d.ts.map +1 -1
  149. package/build/backend/commands/hosts/update.command.d.ts +35 -330
  150. package/build/backend/commands/hosts/update.command.d.ts.map +1 -1
  151. package/build/backend/commands/hosts/update.command.js +12 -17
  152. package/build/backend/commands/hwid/create-user-hwid-device.command.d.ts +7 -99
  153. package/build/backend/commands/hwid/create-user-hwid-device.command.d.ts.map +1 -1
  154. package/build/backend/commands/hwid/create-user-hwid-device.command.js +1 -1
  155. package/build/backend/commands/hwid/delete-all-user-hwid-devices.command.d.ts +7 -87
  156. package/build/backend/commands/hwid/delete-all-user-hwid-devices.command.d.ts.map +1 -1
  157. package/build/backend/commands/hwid/delete-all-user-hwid-devices.command.js +1 -1
  158. package/build/backend/commands/hwid/delete-user-hwid-device.command.d.ts +7 -89
  159. package/build/backend/commands/hwid/delete-user-hwid-device.command.d.ts.map +1 -1
  160. package/build/backend/commands/hwid/delete-user-hwid-device.command.js +1 -1
  161. package/build/backend/commands/hwid/get-hwid-devices-stats.command.d.ts +5 -93
  162. package/build/backend/commands/hwid/get-hwid-devices-stats.command.d.ts.map +1 -1
  163. package/build/backend/commands/hwid/get-hwid-devices.command.d.ts +13 -127
  164. package/build/backend/commands/hwid/get-hwid-devices.command.d.ts.map +1 -1
  165. package/build/backend/commands/hwid/get-top-users-by-hwid-devices.command.d.ts +7 -59
  166. package/build/backend/commands/hwid/get-top-users-by-hwid-devices.command.d.ts.map +1 -1
  167. package/build/backend/commands/hwid/get-top-users-by-hwid-devices.command.js +1 -1
  168. package/build/backend/commands/hwid/get-user-hwid-devices.command.d.ts +7 -87
  169. package/build/backend/commands/hwid/get-user-hwid-devices.command.d.ts.map +1 -1
  170. package/build/backend/commands/hwid/get-user-hwid-devices.command.js +1 -1
  171. package/build/backend/commands/index.d.ts +1 -1
  172. package/build/backend/commands/index.d.ts.map +1 -1
  173. package/build/backend/commands/index.js +1 -1
  174. package/build/backend/commands/infra-billing/create-bill-record.command.d.ts +12 -107
  175. package/build/backend/commands/infra-billing/create-bill-record.command.d.ts.map +1 -1
  176. package/build/backend/commands/infra-billing/create-bill-record.command.js +4 -7
  177. package/build/backend/commands/infra-billing/create-billing-node.command.d.ts +23 -739
  178. package/build/backend/commands/infra-billing/create-billing-node.command.d.ts.map +1 -1
  179. package/build/backend/commands/infra-billing/create-billing-node.command.js +4 -7
  180. package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts +12 -120
  181. package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts.map +1 -1
  182. package/build/backend/commands/infra-billing/create-infra-provider.command.js +2 -2
  183. package/build/backend/commands/infra-billing/delete-bill-record.command.d.ts +2 -6
  184. package/build/backend/commands/infra-billing/delete-bill-record.command.d.ts.map +1 -1
  185. package/build/backend/commands/infra-billing/delete-bill-record.command.js +1 -1
  186. package/build/backend/commands/infra-billing/delete-billing-node.command.d.ts +2 -6
  187. package/build/backend/commands/infra-billing/delete-billing-node.command.d.ts.map +1 -1
  188. package/build/backend/commands/infra-billing/delete-billing-node.command.js +1 -1
  189. package/build/backend/commands/infra-billing/delete-infra-provider.command.d.ts +2 -6
  190. package/build/backend/commands/infra-billing/delete-infra-provider.command.d.ts.map +1 -1
  191. package/build/backend/commands/infra-billing/delete-infra-provider.command.js +1 -1
  192. package/build/backend/commands/infra-billing/get-bill-records.command.d.ts +12 -105
  193. package/build/backend/commands/infra-billing/get-bill-records.command.d.ts.map +1 -1
  194. package/build/backend/commands/infra-billing/get-bill-records.command.js +2 -2
  195. package/build/backend/commands/infra-billing/get-billing-nodes.command.d.ts +19 -725
  196. package/build/backend/commands/infra-billing/get-billing-nodes.command.d.ts.map +1 -1
  197. package/build/backend/commands/infra-billing/get-infra-provider.command.d.ts +11 -115
  198. package/build/backend/commands/infra-billing/get-infra-provider.command.d.ts.map +1 -1
  199. package/build/backend/commands/infra-billing/get-infra-provider.command.js +1 -1
  200. package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts +10 -158
  201. package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts.map +1 -1
  202. package/build/backend/commands/infra-billing/update-billing-node.command.d.ts +22 -734
  203. package/build/backend/commands/infra-billing/update-billing-node.command.d.ts.map +1 -1
  204. package/build/backend/commands/infra-billing/update-billing-node.command.js +3 -6
  205. package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts +13 -123
  206. package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts.map +1 -1
  207. package/build/backend/commands/infra-billing/update-infra-provider.command.js +4 -8
  208. package/build/backend/commands/internal-squads/actions/reorder.command.d.ts +16 -233
  209. package/build/backend/commands/internal-squads/actions/reorder.command.d.ts.map +1 -1
  210. package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.d.ts +2 -6
  211. package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.d.ts.map +1 -1
  212. package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.js +1 -1
  213. package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.d.ts +2 -6
  214. package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.d.ts.map +1 -1
  215. package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.js +1 -1
  216. package/build/backend/commands/internal-squads/create-internal-squad.command.d.ts +12 -126
  217. package/build/backend/commands/internal-squads/create-internal-squad.command.d.ts.map +1 -1
  218. package/build/backend/commands/internal-squads/create-internal-squad.command.js +3 -3
  219. package/build/backend/commands/internal-squads/delete-internal-squad.command.d.ts +2 -6
  220. package/build/backend/commands/internal-squads/delete-internal-squad.command.d.ts.map +1 -1
  221. package/build/backend/commands/internal-squads/delete-internal-squad.command.js +1 -1
  222. package/build/backend/commands/internal-squads/get-internal-squad-accessible-nodes.command.d.ts +9 -71
  223. package/build/backend/commands/internal-squads/get-internal-squad-accessible-nodes.command.d.ts.map +1 -1
  224. package/build/backend/commands/internal-squads/get-internal-squad-accessible-nodes.command.js +4 -4
  225. package/build/backend/commands/internal-squads/get-internal-squad.command.d.ts +12 -124
  226. package/build/backend/commands/internal-squads/get-internal-squad.command.d.ts.map +1 -1
  227. package/build/backend/commands/internal-squads/get-internal-squad.command.js +1 -1
  228. package/build/backend/commands/internal-squads/get-internal-squads.command.d.ts +11 -171
  229. package/build/backend/commands/internal-squads/get-internal-squads.command.d.ts.map +1 -1
  230. package/build/backend/commands/internal-squads/update-internal-squad.command.d.ts +13 -129
  231. package/build/backend/commands/internal-squads/update-internal-squad.command.d.ts.map +1 -1
  232. package/build/backend/commands/internal-squads/update-internal-squad.command.js +2 -2
  233. package/build/backend/commands/keygen/get-node-secret-key.command.d.ts +2 -14
  234. package/build/backend/commands/keygen/get-node-secret-key.command.d.ts.map +1 -1
  235. package/build/backend/commands/metadata/node/get-node-metadata.command.d.ts +5 -29
  236. package/build/backend/commands/metadata/node/get-node-metadata.command.d.ts.map +1 -1
  237. package/build/backend/commands/metadata/node/get-node-metadata.command.js +2 -2
  238. package/build/backend/commands/metadata/node/upsert-node-metadata.command.d.ts +7 -39
  239. package/build/backend/commands/metadata/node/upsert-node-metadata.command.d.ts.map +1 -1
  240. package/build/backend/commands/metadata/node/upsert-node-metadata.command.js +3 -3
  241. package/build/backend/commands/metadata/user/get-user-metadata.command.d.ts +5 -29
  242. package/build/backend/commands/metadata/user/get-user-metadata.command.d.ts.map +1 -1
  243. package/build/backend/commands/metadata/user/get-user-metadata.command.js +2 -2
  244. package/build/backend/commands/metadata/user/upsert-user-metadata.command.d.ts +7 -39
  245. package/build/backend/commands/metadata/user/upsert-user-metadata.command.d.ts.map +1 -1
  246. package/build/backend/commands/metadata/user/upsert-user-metadata.command.js +3 -3
  247. package/build/backend/commands/node-plugins/actions/clone-node-plugin.command.d.ts +4 -33
  248. package/build/backend/commands/node-plugins/actions/clone-node-plugin.command.d.ts.map +1 -1
  249. package/build/backend/commands/node-plugins/actions/clone-node-plugin.command.js +1 -1
  250. package/build/backend/commands/node-plugins/actions/reorder.command.d.ts +6 -70
  251. package/build/backend/commands/node-plugins/actions/reorder.command.d.ts.map +1 -1
  252. package/build/backend/commands/node-plugins/create-node-plugin.command.d.ts +3 -31
  253. package/build/backend/commands/node-plugins/create-node-plugin.command.d.ts.map +1 -1
  254. package/build/backend/commands/node-plugins/delete-node-plugin.command.d.ts +2 -6
  255. package/build/backend/commands/node-plugins/delete-node-plugin.command.d.ts.map +1 -1
  256. package/build/backend/commands/node-plugins/delete-node-plugin.command.js +1 -1
  257. package/build/backend/commands/node-plugins/executor.command.d.ts +23 -137
  258. package/build/backend/commands/node-plugins/executor.command.d.ts.map +1 -1
  259. package/build/backend/commands/node-plugins/executor.command.js +3 -3
  260. package/build/backend/commands/node-plugins/get-node-plugin.command.d.ts +4 -33
  261. package/build/backend/commands/node-plugins/get-node-plugin.command.d.ts.map +1 -1
  262. package/build/backend/commands/node-plugins/get-node-plugin.command.js +1 -1
  263. package/build/backend/commands/node-plugins/get-node-plugins.command.d.ts +3 -49
  264. package/build/backend/commands/node-plugins/get-node-plugins.command.d.ts.map +1 -1
  265. package/build/backend/commands/node-plugins/torrent-blocker/get-torrent-blocker-reports-stats.command.d.ts +7 -123
  266. package/build/backend/commands/node-plugins/torrent-blocker/get-torrent-blocker-reports-stats.command.d.ts.map +1 -1
  267. package/build/backend/commands/node-plugins/torrent-blocker/get-torrent-blocker-reports-stats.command.js +2 -2
  268. package/build/backend/commands/node-plugins/torrent-blocker/get-torrent-blocker-reports.command.d.ts +23 -725
  269. package/build/backend/commands/node-plugins/torrent-blocker/get-torrent-blocker-reports.command.d.ts.map +1 -1
  270. package/build/backend/commands/node-plugins/update-node-plugin.command.d.ts +4 -37
  271. package/build/backend/commands/node-plugins/update-node-plugin.command.d.ts.map +1 -1
  272. package/build/backend/commands/node-plugins/update-node-plugin.command.js +1 -1
  273. package/build/backend/commands/nodes/actions/disable.command.d.ts +32 -532
  274. package/build/backend/commands/nodes/actions/disable.command.d.ts.map +1 -1
  275. package/build/backend/commands/nodes/actions/disable.command.js +1 -1
  276. package/build/backend/commands/nodes/actions/enable.command.d.ts +32 -532
  277. package/build/backend/commands/nodes/actions/enable.command.d.ts.map +1 -1
  278. package/build/backend/commands/nodes/actions/enable.command.js +1 -1
  279. package/build/backend/commands/nodes/actions/reorder.command.d.ts +35 -796
  280. package/build/backend/commands/nodes/actions/reorder.command.d.ts.map +1 -1
  281. package/build/backend/commands/nodes/actions/reset-traffic.command.d.ts +2 -6
  282. package/build/backend/commands/nodes/actions/reset-traffic.command.d.ts.map +1 -1
  283. package/build/backend/commands/nodes/actions/reset-traffic.command.js +1 -1
  284. package/build/backend/commands/nodes/actions/restart-all.command.d.ts +1 -5
  285. package/build/backend/commands/nodes/actions/restart-all.command.d.ts.map +1 -1
  286. package/build/backend/commands/nodes/actions/restart.command.d.ts +3 -11
  287. package/build/backend/commands/nodes/actions/restart.command.d.ts.map +1 -1
  288. package/build/backend/commands/nodes/actions/restart.command.js +1 -1
  289. package/build/backend/commands/nodes/bulk-actions/actions.command.d.ts +3 -9
  290. package/build/backend/commands/nodes/bulk-actions/actions.command.d.ts.map +1 -1
  291. package/build/backend/commands/nodes/bulk-actions/actions.command.js +2 -2
  292. package/build/backend/commands/nodes/bulk-actions/bulk-update.command.d.ts +8 -46
  293. package/build/backend/commands/nodes/bulk-actions/bulk-update.command.d.ts.map +1 -1
  294. package/build/backend/commands/nodes/bulk-actions/bulk-update.command.js +9 -9
  295. package/build/backend/commands/nodes/bulk-actions/profile-modification.command.d.ts +5 -23
  296. package/build/backend/commands/nodes/bulk-actions/profile-modification.command.d.ts.map +1 -1
  297. package/build/backend/commands/nodes/bulk-actions/profile-modification.command.js +3 -7
  298. package/build/backend/commands/nodes/create.command.d.ts +42 -584
  299. package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
  300. package/build/backend/commands/nodes/create.command.js +16 -36
  301. package/build/backend/commands/nodes/delete.command.d.ts +2 -6
  302. package/build/backend/commands/nodes/delete.command.d.ts.map +1 -1
  303. package/build/backend/commands/nodes/delete.command.js +1 -1
  304. package/build/backend/commands/nodes/get-node.command.d.ts +32 -532
  305. package/build/backend/commands/nodes/get-node.command.d.ts.map +1 -1
  306. package/build/backend/commands/nodes/get-node.command.js +1 -1
  307. package/build/backend/commands/nodes/get-nodes.command.d.ts +30 -526
  308. package/build/backend/commands/nodes/get-nodes.command.d.ts.map +1 -1
  309. package/build/backend/commands/nodes/node.response.d.ts +30 -526
  310. package/build/backend/commands/nodes/node.response.d.ts.map +1 -1
  311. package/build/backend/commands/nodes/tags/get-nodes-tags.command.d.ts +3 -15
  312. package/build/backend/commands/nodes/tags/get-nodes-tags.command.d.ts.map +1 -1
  313. package/build/backend/commands/nodes/update.command.d.ts +41 -836
  314. package/build/backend/commands/nodes/update.command.d.ts.map +1 -1
  315. package/build/backend/commands/nodes/update.command.js +17 -29
  316. package/build/backend/commands/passkeys/delete-passkey.command.d.ts +1 -5
  317. package/build/backend/commands/passkeys/delete-passkey.command.d.ts.map +1 -1
  318. package/build/backend/commands/passkeys/get-passkeys.command.d.ts +5 -47
  319. package/build/backend/commands/passkeys/get-passkeys.command.d.ts.map +1 -1
  320. package/build/backend/commands/passkeys/get-passkeys.command.js +4 -10
  321. package/build/backend/commands/passkeys/get-registration-options.command.d.ts +1 -5
  322. package/build/backend/commands/passkeys/get-registration-options.command.d.ts.map +1 -1
  323. package/build/backend/commands/passkeys/update-passkey.command.d.ts +6 -54
  324. package/build/backend/commands/passkeys/update-passkey.command.d.ts.map +1 -1
  325. package/build/backend/commands/passkeys/update-passkey.command.js +6 -8
  326. package/build/backend/commands/passkeys/verify-registration.command.d.ts +3 -19
  327. package/build/backend/commands/passkeys/verify-registration.command.d.ts.map +1 -1
  328. package/build/backend/commands/remnawave-settings/get-remnawave-settings.command.d.ts +25 -457
  329. package/build/backend/commands/remnawave-settings/get-remnawave-settings.command.d.ts.map +1 -1
  330. package/build/backend/commands/remnawave-settings/update-remnawave-settings.command.d.ts +49 -789
  331. package/build/backend/commands/remnawave-settings/update-remnawave-settings.command.d.ts.map +1 -1
  332. package/build/backend/commands/snippets/create-snippet.command.d.ts +5 -45
  333. package/build/backend/commands/snippets/create-snippet.command.d.ts.map +1 -1
  334. package/build/backend/commands/snippets/create-snippet.command.js +3 -3
  335. package/build/backend/commands/snippets/delete-snippet.command.d.ts +1 -5
  336. package/build/backend/commands/snippets/delete-snippet.command.d.ts.map +1 -1
  337. package/build/backend/commands/snippets/get-snippets.command.d.ts +3 -37
  338. package/build/backend/commands/snippets/get-snippets.command.d.ts.map +1 -1
  339. package/build/backend/commands/snippets/update-snippet.command.d.ts +5 -45
  340. package/build/backend/commands/snippets/update-snippet.command.d.ts.map +1 -1
  341. package/build/backend/commands/snippets/update-snippet.command.js +3 -3
  342. package/build/backend/commands/subscription/get-subscription-by-short-uuid-by-client-type.command.d.ts +2 -8
  343. package/build/backend/commands/subscription/get-subscription-by-short-uuid-by-client-type.command.d.ts.map +1 -1
  344. package/build/backend/commands/subscription/get-subscription-by-short-uuid-by-client-type.command.js +2 -2
  345. package/build/backend/commands/subscription/get-subscription-by-short-uuid.command.d.ts +1 -5
  346. package/build/backend/commands/subscription/get-subscription-by-short-uuid.command.d.ts.map +1 -1
  347. package/build/backend/commands/subscription/get-subscription-info-by-short-uuid.command.d.ts +8 -124
  348. package/build/backend/commands/subscription/get-subscription-info-by-short-uuid.command.d.ts.map +1 -1
  349. package/build/backend/commands/subscription-page-configs/actions/clone-subpage-config.command.d.ts +4 -33
  350. package/build/backend/commands/subscription-page-configs/actions/clone-subpage-config.command.d.ts.map +1 -1
  351. package/build/backend/commands/subscription-page-configs/actions/clone-subpage-config.command.js +1 -1
  352. package/build/backend/commands/subscription-page-configs/actions/reorder.command.d.ts +6 -70
  353. package/build/backend/commands/subscription-page-configs/actions/reorder.command.d.ts.map +1 -1
  354. package/build/backend/commands/subscription-page-configs/create-subpage-config.command.d.ts +3 -31
  355. package/build/backend/commands/subscription-page-configs/create-subpage-config.command.d.ts.map +1 -1
  356. package/build/backend/commands/subscription-page-configs/delete-subpage-config.command.d.ts +2 -6
  357. package/build/backend/commands/subscription-page-configs/delete-subpage-config.command.d.ts.map +1 -1
  358. package/build/backend/commands/subscription-page-configs/delete-subpage-config.command.js +1 -1
  359. package/build/backend/commands/subscription-page-configs/get-subpage-config.command.d.ts +4 -33
  360. package/build/backend/commands/subscription-page-configs/get-subpage-config.command.d.ts.map +1 -1
  361. package/build/backend/commands/subscription-page-configs/get-subpage-config.command.js +1 -1
  362. package/build/backend/commands/subscription-page-configs/get-subpage-configs.command.d.ts +3 -49
  363. package/build/backend/commands/subscription-page-configs/get-subpage-configs.command.d.ts.map +1 -1
  364. package/build/backend/commands/subscription-page-configs/update-subpage-config.command.d.ts +4 -37
  365. package/build/backend/commands/subscription-page-configs/update-subpage-config.command.d.ts.map +1 -1
  366. package/build/backend/commands/subscription-page-configs/update-subpage-config.command.js +1 -1
  367. package/build/backend/commands/subscription-request-history/get-subscription-request-history-stats.command.d.ts +5 -57
  368. package/build/backend/commands/subscription-request-history/get-subscription-request-history-stats.command.d.ts.map +1 -1
  369. package/build/backend/commands/subscription-request-history/get-subscription-request-history-stats.command.js +1 -3
  370. package/build/backend/commands/subscription-request-history/get-subscription-request-history.command.d.ts +12 -102
  371. package/build/backend/commands/subscription-request-history/get-subscription-request-history.command.d.ts.map +1 -1
  372. package/build/backend/commands/subscription-settings/get-subscription-settings.command.d.ts +31 -492
  373. package/build/backend/commands/subscription-settings/get-subscription-settings.command.d.ts.map +1 -1
  374. package/build/backend/commands/subscription-settings/update-subscription-settings.command.d.ts +59 -847
  375. package/build/backend/commands/subscription-settings/update-subscription-settings.command.d.ts.map +1 -1
  376. package/build/backend/commands/subscription-settings/update-subscription-settings.command.js +3 -6
  377. package/build/backend/commands/subscription-template/actions/reorder.command.d.ts +7 -92
  378. package/build/backend/commands/subscription-template/actions/reorder.command.d.ts.map +1 -1
  379. package/build/backend/commands/subscription-template/create-template.command.d.ts +5 -43
  380. package/build/backend/commands/subscription-template/create-template.command.d.ts.map +1 -1
  381. package/build/backend/commands/subscription-template/create-template.command.js +3 -3
  382. package/build/backend/commands/subscription-template/delete-subscription-template.command.d.ts +2 -6
  383. package/build/backend/commands/subscription-template/delete-subscription-template.command.d.ts.map +1 -1
  384. package/build/backend/commands/subscription-template/delete-subscription-template.command.js +1 -1
  385. package/build/backend/commands/subscription-template/get-template.command.d.ts +5 -41
  386. package/build/backend/commands/subscription-template/get-template.command.d.ts.map +1 -1
  387. package/build/backend/commands/subscription-template/get-template.command.js +1 -1
  388. package/build/backend/commands/subscription-template/get-templates.command.d.ts +4 -62
  389. package/build/backend/commands/subscription-template/get-templates.command.d.ts.map +1 -1
  390. package/build/backend/commands/subscription-template/update-template.command.d.ts +6 -48
  391. package/build/backend/commands/subscription-template/update-template.command.d.ts.map +1 -1
  392. package/build/backend/commands/subscription-template/update-template.command.js +4 -4
  393. package/build/backend/commands/subscriptions/get-by/get-connection-keys-by-uuid.command.d.ts +7 -31
  394. package/build/backend/commands/subscriptions/get-by/get-connection-keys-by-uuid.command.d.ts.map +1 -1
  395. package/build/backend/commands/subscriptions/get-by/get-connection-keys-by-uuid.command.js +1 -1
  396. package/build/backend/commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.d.ts +102 -1301
  397. package/build/backend/commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.d.ts.map +1 -1
  398. package/build/backend/commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.js +1 -1
  399. package/build/backend/commands/subscriptions/get-by/get-subscription-by-short-uuid-protected.command.d.ts +8 -124
  400. package/build/backend/commands/subscriptions/get-by/get-subscription-by-short-uuid-protected.command.d.ts.map +1 -1
  401. package/build/backend/commands/subscriptions/get-by/get-subscription-by-username.command.d.ts +8 -124
  402. package/build/backend/commands/subscriptions/get-by/get-subscription-by-username.command.d.ts.map +1 -1
  403. package/build/backend/commands/subscriptions/get-by/get-subscription-by-uuid.command.d.ts +9 -125
  404. package/build/backend/commands/subscriptions/get-by/get-subscription-by-uuid.command.d.ts.map +1 -1
  405. package/build/backend/commands/subscriptions/get-by/get-subscription-by-uuid.command.js +1 -1
  406. package/build/backend/commands/subscriptions/get-subscriptions.command.d.ts +11 -181
  407. package/build/backend/commands/subscriptions/get-subscriptions.command.d.ts.map +1 -1
  408. package/build/backend/commands/subscriptions/get-subscriptions.command.js +5 -8
  409. package/build/backend/commands/subscriptions/subpage/get-subpage-config-by-shortuuid.command.d.ts +5 -29
  410. package/build/backend/commands/subscriptions/subpage/get-subpage-config-by-shortuuid.command.d.ts.map +1 -1
  411. package/build/backend/commands/subscriptions/subpage/get-subpage-config-by-shortuuid.command.js +1 -1
  412. package/build/backend/commands/system/get-bandwidth-stats.command.d.ts +8 -160
  413. package/build/backend/commands/system/get-bandwidth-stats.command.d.ts.map +1 -1
  414. package/build/backend/commands/system/get-metadata.command.d.ts +6 -118
  415. package/build/backend/commands/system/get-metadata.command.d.ts.map +1 -1
  416. package/build/backend/commands/system/get-nodes-metrics.command.d.ts +5 -129
  417. package/build/backend/commands/system/get-nodes-metrics.command.d.ts.map +1 -1
  418. package/build/backend/commands/system/get-nodes-statistics.d.ts +4 -44
  419. package/build/backend/commands/system/get-nodes-statistics.d.ts.map +1 -1
  420. package/build/backend/commands/system/get-recap.command.d.ts +5 -89
  421. package/build/backend/commands/system/get-recap.command.d.ts.map +1 -1
  422. package/build/backend/commands/system/get-recap.command.js +1 -3
  423. package/build/backend/commands/system/get-remnawave-health.command.d.ts +3 -99
  424. package/build/backend/commands/system/get-remnawave-health.command.d.ts.map +1 -1
  425. package/build/backend/commands/system/get-stats.command.d.ts +14 -151
  426. package/build/backend/commands/system/get-stats.command.d.ts.map +1 -1
  427. package/build/backend/commands/system/get-stats.command.js +1 -1
  428. package/build/backend/commands/system/testers/test-srr-matcher.command.d.ts +35 -545
  429. package/build/backend/commands/system/testers/test-srr-matcher.command.d.ts.map +1 -1
  430. package/build/backend/commands/system/testers/test-srr-matcher.command.js +1 -1
  431. package/build/backend/commands/system/tools/generate-x25519.command.d.ts +3 -33
  432. package/build/backend/commands/system/tools/generate-x25519.command.d.ts.map +1 -1
  433. package/build/backend/commands/users/actions/disable-user.command.d.ts +26 -193
  434. package/build/backend/commands/users/actions/disable-user.command.d.ts.map +1 -1
  435. package/build/backend/commands/users/actions/disable-user.command.js +1 -1
  436. package/build/backend/commands/users/actions/enable-user.command.d.ts +26 -193
  437. package/build/backend/commands/users/actions/enable-user.command.d.ts.map +1 -1
  438. package/build/backend/commands/users/actions/enable-user.command.js +1 -1
  439. package/build/backend/commands/users/actions/reset-user-traffic.command.d.ts +26 -193
  440. package/build/backend/commands/users/actions/reset-user-traffic.command.d.ts.map +1 -1
  441. package/build/backend/commands/users/actions/reset-user-traffic.command.js +1 -1
  442. package/build/backend/commands/users/actions/revoke-user-subscription.command.d.ts +28 -204
  443. package/build/backend/commands/users/actions/revoke-user-subscription.command.d.ts.map +1 -1
  444. package/build/backend/commands/users/actions/revoke-user-subscription.command.js +3 -3
  445. package/build/backend/commands/users/bulk/bulk-delete-users-by-status.command.d.ts +3 -7
  446. package/build/backend/commands/users/bulk/bulk-delete-users-by-status.command.d.ts.map +1 -1
  447. package/build/backend/commands/users/bulk/bulk-delete-users.command.d.ts +2 -6
  448. package/build/backend/commands/users/bulk/bulk-delete-users.command.d.ts.map +1 -1
  449. package/build/backend/commands/users/bulk/bulk-delete-users.command.js +1 -4
  450. package/build/backend/commands/users/bulk/bulk-extend-expiration-date.command.d.ts +3 -9
  451. package/build/backend/commands/users/bulk/bulk-extend-expiration-date.command.d.ts.map +1 -1
  452. package/build/backend/commands/users/bulk/bulk-extend-expiration-date.command.js +2 -9
  453. package/build/backend/commands/users/bulk/bulk-reset-traffic-users.command.d.ts +2 -6
  454. package/build/backend/commands/users/bulk/bulk-reset-traffic-users.command.d.ts.map +1 -1
  455. package/build/backend/commands/users/bulk/bulk-reset-traffic-users.command.js +1 -4
  456. package/build/backend/commands/users/bulk/bulk-revoke-users-subscription.command.d.ts +2 -6
  457. package/build/backend/commands/users/bulk/bulk-revoke-users-subscription.command.d.ts.map +1 -1
  458. package/build/backend/commands/users/bulk/bulk-revoke-users-subscription.command.js +1 -4
  459. package/build/backend/commands/users/bulk/bulk-update-users-squads.command.d.ts +3 -9
  460. package/build/backend/commands/users/bulk/bulk-update-users-squads.command.d.ts.map +1 -1
  461. package/build/backend/commands/users/bulk/bulk-update-users-squads.command.js +2 -7
  462. package/build/backend/commands/users/bulk/bulk-update-users.command.d.ts +10 -60
  463. package/build/backend/commands/users/bulk/bulk-update-users.command.d.ts.map +1 -1
  464. package/build/backend/commands/users/bulk/bulk-update-users.command.js +11 -26
  465. package/build/backend/commands/users/bulk-all/bulk-all-extend-expiration-date.command.d.ts +2 -6
  466. package/build/backend/commands/users/bulk-all/bulk-all-extend-expiration-date.command.d.ts.map +1 -1
  467. package/build/backend/commands/users/bulk-all/bulk-all-extend-expiration-date.command.js +1 -1
  468. package/build/backend/commands/users/bulk-all/bulk-all-update-users.command.d.ts +7 -27
  469. package/build/backend/commands/users/bulk-all/bulk-all-update-users.command.d.ts.map +1 -1
  470. package/build/backend/commands/users/bulk-all/bulk-all-update-users.command.js +10 -21
  471. package/build/backend/commands/users/create-user.command.d.ts +38 -241
  472. package/build/backend/commands/users/create-user.command.d.ts.map +1 -1
  473. package/build/backend/commands/users/create-user.command.js +25 -63
  474. package/build/backend/commands/users/delete-user.command.d.ts +2 -6
  475. package/build/backend/commands/users/delete-user.command.d.ts.map +1 -1
  476. package/build/backend/commands/users/delete-user.command.js +1 -1
  477. package/build/backend/commands/users/get-by/get-user-by-id.command.d.ts +26 -193
  478. package/build/backend/commands/users/get-by/get-user-by-id.command.d.ts.map +1 -1
  479. package/build/backend/commands/users/get-by/get-user-by-id.command.js +1 -1
  480. package/build/backend/commands/users/get-by/get-user-by-short-uuid.command.d.ts +25 -192
  481. package/build/backend/commands/users/get-by/get-user-by-short-uuid.command.d.ts.map +1 -1
  482. package/build/backend/commands/users/get-by/get-user-by-username.command.d.ts +25 -192
  483. package/build/backend/commands/users/get-by/get-user-by-username.command.d.ts.map +1 -1
  484. package/build/backend/commands/users/get-user-accessible-nodes.command.d.ts +10 -96
  485. package/build/backend/commands/users/get-user-accessible-nodes.command.d.ts.map +1 -1
  486. package/build/backend/commands/users/get-user-accessible-nodes.command.js +4 -4
  487. package/build/backend/commands/users/get-user-by-uuid.command.d.ts +26 -193
  488. package/build/backend/commands/users/get-user-by-uuid.command.d.ts.map +1 -1
  489. package/build/backend/commands/users/get-user-by-uuid.command.js +1 -1
  490. package/build/backend/commands/users/get-user-subscription-request-history.command.d.ts +6 -62
  491. package/build/backend/commands/users/get-user-subscription-request-history.command.d.ts.map +1 -1
  492. package/build/backend/commands/users/get-user-subscription-request-history.command.js +2 -4
  493. package/build/backend/commands/users/get-users-stream.command.d.ts +33 -300
  494. package/build/backend/commands/users/get-users-stream.command.d.ts.map +1 -1
  495. package/build/backend/commands/users/get-users-stream.command.js +10 -11
  496. package/build/backend/commands/users/get-users.command.d.ts +33 -316
  497. package/build/backend/commands/users/get-users.command.d.ts.map +1 -1
  498. package/build/backend/commands/users/resolve-user.command.d.ts +6 -50
  499. package/build/backend/commands/users/resolve-user.command.d.ts.map +1 -1
  500. package/build/backend/commands/users/resolve-user.command.js +3 -3
  501. package/build/backend/commands/users/tags/get-users-tags.command.d.ts +3 -15
  502. package/build/backend/commands/users/tags/get-users-tags.command.d.ts.map +1 -1
  503. package/build/backend/commands/users/update-user.command.d.ts +38 -254
  504. package/build/backend/commands/users/update-user.command.d.ts.map +1 -1
  505. package/build/backend/commands/users/update-user.command.js +14 -39
  506. package/build/backend/commands/users/user.response.d.ts +24 -187
  507. package/build/backend/commands/users/user.response.d.ts.map +1 -1
  508. package/build/backend/models/api-tokens.schema.d.ts +6 -20
  509. package/build/backend/models/api-tokens.schema.d.ts.map +1 -1
  510. package/build/backend/models/api-tokens.schema.js +4 -10
  511. package/build/backend/models/auth.schema.d.ts +1 -5
  512. package/build/backend/models/auth.schema.d.ts.map +1 -1
  513. package/build/backend/models/base-internal-squad.schema.d.ts +2 -8
  514. package/build/backend/models/base-internal-squad.schema.d.ts.map +1 -1
  515. package/build/backend/models/base-internal-squad.schema.js +1 -1
  516. package/build/backend/models/base-stat.schema.d.ts +1 -9
  517. package/build/backend/models/base-stat.schema.d.ts.map +1 -1
  518. package/build/backend/models/config-profile-inbounds.schema.d.ts +3 -21
  519. package/build/backend/models/config-profile-inbounds.schema.d.ts.map +1 -1
  520. package/build/backend/models/config-profile-inbounds.schema.js +2 -2
  521. package/build/backend/models/config-profile.schema.d.ts +10 -80
  522. package/build/backend/models/config-profile.schema.d.ts.map +1 -1
  523. package/build/backend/models/config-profile.schema.js +5 -9
  524. package/build/backend/models/extended-users.schema.d.ts +23 -112
  525. package/build/backend/models/extended-users.schema.d.ts.map +1 -1
  526. package/build/backend/models/external-squad.schema.d.ts +22 -166
  527. package/build/backend/models/external-squad.schema.d.ts.map +1 -1
  528. package/build/backend/models/external-squad.schema.js +7 -11
  529. package/build/backend/models/external-squads/external-squad-host-overrides.schema.d.ts +2 -8
  530. package/build/backend/models/external-squads/external-squad-host-overrides.schema.d.ts.map +1 -1
  531. package/build/backend/models/external-squads/external-squad-subscription-settings.schema.d.ts +2 -22
  532. package/build/backend/models/external-squads/external-squad-subscription-settings.schema.d.ts.map +1 -1
  533. package/build/backend/models/hosts.schema.d.ts +17 -95
  534. package/build/backend/models/hosts.schema.d.ts.map +1 -1
  535. package/build/backend/models/hosts.schema.js +13 -13
  536. package/build/backend/models/hwid-user-device.schema.d.ts +3 -23
  537. package/build/backend/models/hwid-user-device.schema.d.ts.map +1 -1
  538. package/build/backend/models/hwid-user-device.schema.js +2 -6
  539. package/build/backend/models/infra-billing-available-node.schema.d.ts +3 -259
  540. package/build/backend/models/infra-billing-available-node.schema.d.ts.map +1 -1
  541. package/build/backend/models/infra-billing-history-record.schema.d.ts +7 -38
  542. package/build/backend/models/infra-billing-history-record.schema.d.ts.map +1 -1
  543. package/build/backend/models/infra-billing-history-record.schema.js +3 -5
  544. package/build/backend/models/infra-billing-node.schema.d.ts +13 -319
  545. package/build/backend/models/infra-billing-node.schema.d.ts.map +1 -1
  546. package/build/backend/models/infra-billing-node.schema.js +6 -12
  547. package/build/backend/models/infra-provider.schema.d.ts +12 -86
  548. package/build/backend/models/infra-provider.schema.d.ts.map +1 -1
  549. package/build/backend/models/infra-provider.schema.js +7 -15
  550. package/build/backend/models/internal-squad.schema.d.ts +9 -73
  551. package/build/backend/models/internal-squad.schema.d.ts.map +1 -1
  552. package/build/backend/models/internal-squad.schema.js +4 -8
  553. package/build/backend/models/last-connected-node.schema.d.ts +2 -10
  554. package/build/backend/models/last-connected-node.schema.d.ts.map +1 -1
  555. package/build/backend/models/last-connected-node.schema.js +1 -3
  556. package/build/backend/models/node-plugin.schema.d.ts +1 -11
  557. package/build/backend/models/node-plugin.schema.d.ts.map +1 -1
  558. package/build/backend/models/node-system.schema.d.ts +14 -194
  559. package/build/backend/models/node-system.schema.d.ts.map +1 -1
  560. package/build/backend/models/node-system.schema.js +1 -1
  561. package/build/backend/models/nodes.schema.d.ts +29 -361
  562. package/build/backend/models/nodes.schema.d.ts.map +1 -1
  563. package/build/backend/models/nodes.schema.js +11 -17
  564. package/build/backend/models/remnawave-settings/branding-settings.schema.d.ts +1 -7
  565. package/build/backend/models/remnawave-settings/branding-settings.schema.d.ts.map +1 -1
  566. package/build/backend/models/remnawave-settings/oauth2-settings.schema.d.ts +18 -188
  567. package/build/backend/models/remnawave-settings/oauth2-settings.schema.d.ts.map +1 -1
  568. package/build/backend/models/remnawave-settings/passkey-settings.schema.d.ts +3 -11
  569. package/build/backend/models/remnawave-settings/passkey-settings.schema.d.ts.map +1 -1
  570. package/build/backend/models/remnawave-settings/password-auth-settings.schema.d.ts +1 -5
  571. package/build/backend/models/remnawave-settings/password-auth-settings.schema.d.ts.map +1 -1
  572. package/build/backend/models/remnawave-settings/remnawave-settings.schema.d.ts +24 -332
  573. package/build/backend/models/remnawave-settings/remnawave-settings.schema.d.ts.map +1 -1
  574. package/build/backend/models/resolved-proxy-config.schema.d.ts +168 -1224
  575. package/build/backend/models/resolved-proxy-config.schema.d.ts.map +1 -1
  576. package/build/backend/models/resolved-proxy-config.schema.js +18 -18
  577. package/build/backend/models/response-rules/response-rule-condition.schema.d.ts +2 -12
  578. package/build/backend/models/response-rules/response-rule-condition.schema.d.ts.map +1 -1
  579. package/build/backend/models/response-rules/response-rule-condition.schema.js +1 -1
  580. package/build/backend/models/response-rules/response-rule-modifications.schema.d.ts +14 -58
  581. package/build/backend/models/response-rules/response-rule-modifications.schema.d.ts.map +1 -1
  582. package/build/backend/models/response-rules/response-rule-settings.schema.d.ts +1 -5
  583. package/build/backend/models/response-rules/response-rule-settings.schema.d.ts.map +1 -1
  584. package/build/backend/models/response-rules/response-rule.schema.d.ts +28 -246
  585. package/build/backend/models/response-rules/response-rule.schema.d.ts.map +1 -1
  586. package/build/backend/models/response-rules/response-rule.schema.js +2 -2
  587. package/build/backend/models/response-rules/response-rules-config.schema.d.ts +17 -200
  588. package/build/backend/models/response-rules/response-rules-config.schema.d.ts.map +1 -1
  589. package/build/backend/models/response-rules/response-rules-config.schema.js +1 -1
  590. package/build/backend/models/snippets.schema.d.ts +1 -7
  591. package/build/backend/models/snippets.schema.d.ts.map +1 -1
  592. package/build/backend/models/subscripion-page-config.schema.d.ts +1 -11
  593. package/build/backend/models/subscripion-page-config.schema.d.ts.map +1 -1
  594. package/build/backend/models/subscription-info.schema.d.ts +6 -74
  595. package/build/backend/models/subscription-info.schema.d.ts.map +1 -1
  596. package/build/backend/models/subscription-info.schema.js +3 -5
  597. package/build/backend/models/subscription-request-history.schema.d.ts +2 -14
  598. package/build/backend/models/subscription-request-history.schema.d.ts.map +1 -1
  599. package/build/backend/models/subscription-request-history.schema.js +1 -4
  600. package/build/backend/models/subscription-settings/custom-remarks.schema.d.ts +7 -21
  601. package/build/backend/models/subscription-settings/custom-remarks.schema.d.ts.map +1 -1
  602. package/build/backend/models/subscription-settings/hwid-settings.schema.d.ts +1 -9
  603. package/build/backend/models/subscription-settings/hwid-settings.schema.d.ts.map +1 -1
  604. package/build/backend/models/subscription-settings.schema.d.ts +30 -361
  605. package/build/backend/models/subscription-settings.schema.d.ts.map +1 -1
  606. package/build/backend/models/subscription-settings.schema.js +4 -13
  607. package/build/backend/models/subscription-template.schema.d.ts +2 -16
  608. package/build/backend/models/subscription-template.schema.d.ts.map +1 -1
  609. package/build/backend/models/tanstack-query/tanstask-query-filter.schema.d.ts +1 -7
  610. package/build/backend/models/tanstack-query/tanstask-query-filter.schema.d.ts.map +1 -1
  611. package/build/backend/models/tanstack-query/tanstask-query-request-query.schema.d.ts +8 -46
  612. package/build/backend/models/tanstack-query/tanstask-query-request-query.schema.d.ts.map +1 -1
  613. package/build/backend/models/tanstack-query/tanstask-query-sorting.schema.d.ts +1 -7
  614. package/build/backend/models/tanstack-query/tanstask-query-sorting.schema.d.ts.map +1 -1
  615. package/build/backend/models/torrent-blocker-report.schema.d.ts +13 -505
  616. package/build/backend/models/torrent-blocker-report.schema.d.ts.map +1 -1
  617. package/build/backend/models/torrent-blocker-report.schema.js +3 -8
  618. package/build/backend/models/user-traffic.schema.d.ts +4 -16
  619. package/build/backend/models/user-traffic.schema.d.ts.map +1 -1
  620. package/build/backend/models/user-traffic.schema.js +3 -9
  621. package/build/backend/models/users.schema.d.ts +17 -63
  622. package/build/backend/models/users.schema.d.ts.map +1 -1
  623. package/build/backend/models/users.schema.js +14 -33
  624. package/build/backend/models/webhook/webhook.schema.d.ts +437 -4841
  625. package/build/backend/models/webhook/webhook.schema.d.ts.map +1 -1
  626. package/build/backend/models/xray-json-advanced/remnawave-injector.schema.d.ts +31 -197
  627. package/build/backend/models/xray-json-advanced/remnawave-injector.schema.d.ts.map +1 -1
  628. package/build/frontend/api/controllers/connections.js +16 -0
  629. package/build/frontend/api/controllers/index.js +1 -1
  630. package/build/frontend/api/controllers-info.js +4 -4
  631. package/build/frontend/api/routes.js +6 -6
  632. package/build/frontend/commands/api-tokens/delete.command.js +1 -1
  633. package/build/frontend/commands/auth/get-status.command.js +1 -1
  634. package/build/frontend/commands/auth/oauth2/authorize.command.js +2 -2
  635. package/build/frontend/commands/auth/oauth2/callback.command.js +1 -1
  636. package/build/frontend/commands/bandwidth-stats/legacy/get-legacy-stats-node-user-usage.command.js +5 -5
  637. package/build/frontend/commands/bandwidth-stats/legacy/get-legacy-user-usage.command.js +5 -5
  638. package/build/frontend/commands/bandwidth-stats/nodes/get-stats-node-users-usage.command.js +3 -3
  639. package/build/frontend/commands/bandwidth-stats/nodes/get-stats-nodes-usage.command.js +4 -4
  640. package/build/frontend/commands/bandwidth-stats/nodes/get-stats-nodes-users-usage.command.js +3 -3
  641. package/build/frontend/commands/bandwidth-stats/users/get-stats-user-usage.command.js +5 -5
  642. package/build/frontend/commands/config-profiles/create-config-profile.command.js +1 -1
  643. package/build/frontend/commands/config-profiles/delete-config-profile.command.js +1 -1
  644. package/build/frontend/commands/config-profiles/get-all-inbounds.command.js +1 -1
  645. package/build/frontend/commands/config-profiles/get-computed-config-profile-by-uuid.command.js +1 -1
  646. package/build/frontend/commands/config-profiles/get-config-profile-by-uuid.command.js +1 -1
  647. package/build/frontend/commands/config-profiles/get-inbounds-by-profile-uuid.command.js +2 -2
  648. package/build/frontend/commands/config-profiles/update-config-profile.command.js +2 -2
  649. package/build/frontend/commands/{ip-control/fetch-users-ips-result.command.js → connections/connections-by-node-result.command.js} +11 -12
  650. package/build/frontend/commands/connections/connections-by-node.command.js +20 -0
  651. package/build/{backend/commands/ip-control/fetch-ips-result.command.js → frontend/commands/connections/connections-by-user-result.command.js} +12 -13
  652. package/build/frontend/commands/connections/connections-by-user.command.js +20 -0
  653. package/build/frontend/commands/{ip-control → connections}/drop-connections.command.js +5 -5
  654. package/build/frontend/commands/{ip-control → connections}/index.js +4 -4
  655. package/build/frontend/commands/external-squads/bulk-actions/add-users-to-external-squad.command.js +1 -1
  656. package/build/frontend/commands/external-squads/bulk-actions/delete-users-from-external-squad.command.js +1 -1
  657. package/build/frontend/commands/external-squads/delete-external-squad.command.js +1 -1
  658. package/build/frontend/commands/external-squads/get-external-squad-by-uuid.command.js +1 -1
  659. package/build/frontend/commands/external-squads/update-external-squad.command.js +8 -8
  660. package/build/frontend/commands/hosts/bulk/delete-many-hosts.command.js +1 -1
  661. package/build/frontend/commands/hosts/bulk/disable-many-hosts.command.js +1 -1
  662. package/build/frontend/commands/hosts/bulk/enable-many-hosts.command.js +1 -1
  663. package/build/frontend/commands/hosts/bulk/update-many-hosts.command.js +1 -1
  664. package/build/frontend/commands/hosts/create.command.js +12 -17
  665. package/build/frontend/commands/hosts/delete.command.js +1 -1
  666. package/build/frontend/commands/hosts/get-host.command.js +1 -1
  667. package/build/frontend/commands/hosts/update.command.js +12 -17
  668. package/build/frontend/commands/hwid/create-user-hwid-device.command.js +1 -1
  669. package/build/frontend/commands/hwid/delete-all-user-hwid-devices.command.js +1 -1
  670. package/build/frontend/commands/hwid/delete-user-hwid-device.command.js +1 -1
  671. package/build/frontend/commands/hwid/get-top-users-by-hwid-devices.command.js +1 -1
  672. package/build/frontend/commands/hwid/get-user-hwid-devices.command.js +1 -1
  673. package/build/frontend/commands/index.js +1 -1
  674. package/build/frontend/commands/infra-billing/create-bill-record.command.js +4 -7
  675. package/build/frontend/commands/infra-billing/create-billing-node.command.js +4 -7
  676. package/build/frontend/commands/infra-billing/create-infra-provider.command.js +2 -2
  677. package/build/frontend/commands/infra-billing/delete-bill-record.command.js +1 -1
  678. package/build/frontend/commands/infra-billing/delete-billing-node.command.js +1 -1
  679. package/build/frontend/commands/infra-billing/delete-infra-provider.command.js +1 -1
  680. package/build/frontend/commands/infra-billing/get-bill-records.command.js +2 -2
  681. package/build/frontend/commands/infra-billing/get-infra-provider.command.js +1 -1
  682. package/build/frontend/commands/infra-billing/update-billing-node.command.js +3 -6
  683. package/build/frontend/commands/infra-billing/update-infra-provider.command.js +4 -8
  684. package/build/frontend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.js +1 -1
  685. package/build/frontend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.js +1 -1
  686. package/build/frontend/commands/internal-squads/create-internal-squad.command.js +3 -3
  687. package/build/frontend/commands/internal-squads/delete-internal-squad.command.js +1 -1
  688. package/build/frontend/commands/internal-squads/get-internal-squad-accessible-nodes.command.js +4 -4
  689. package/build/frontend/commands/internal-squads/get-internal-squad.command.js +1 -1
  690. package/build/frontend/commands/internal-squads/update-internal-squad.command.js +2 -2
  691. package/build/frontend/commands/metadata/node/get-node-metadata.command.js +2 -2
  692. package/build/frontend/commands/metadata/node/upsert-node-metadata.command.js +3 -3
  693. package/build/frontend/commands/metadata/user/get-user-metadata.command.js +2 -2
  694. package/build/frontend/commands/metadata/user/upsert-user-metadata.command.js +3 -3
  695. package/build/frontend/commands/node-plugins/actions/clone-node-plugin.command.js +1 -1
  696. package/build/frontend/commands/node-plugins/delete-node-plugin.command.js +1 -1
  697. package/build/frontend/commands/node-plugins/executor.command.js +3 -3
  698. package/build/frontend/commands/node-plugins/get-node-plugin.command.js +1 -1
  699. package/build/frontend/commands/node-plugins/torrent-blocker/get-torrent-blocker-reports-stats.command.js +2 -2
  700. package/build/frontend/commands/node-plugins/update-node-plugin.command.js +1 -1
  701. package/build/frontend/commands/nodes/actions/disable.command.js +1 -1
  702. package/build/frontend/commands/nodes/actions/enable.command.js +1 -1
  703. package/build/frontend/commands/nodes/actions/reset-traffic.command.js +1 -1
  704. package/build/frontend/commands/nodes/actions/restart.command.js +1 -1
  705. package/build/frontend/commands/nodes/bulk-actions/actions.command.js +2 -2
  706. package/build/frontend/commands/nodes/bulk-actions/bulk-update.command.js +9 -9
  707. package/build/frontend/commands/nodes/bulk-actions/profile-modification.command.js +3 -7
  708. package/build/frontend/commands/nodes/create.command.js +16 -36
  709. package/build/frontend/commands/nodes/delete.command.js +1 -1
  710. package/build/frontend/commands/nodes/get-node.command.js +1 -1
  711. package/build/frontend/commands/nodes/update.command.js +17 -29
  712. package/build/frontend/commands/passkeys/get-passkeys.command.js +4 -10
  713. package/build/frontend/commands/passkeys/update-passkey.command.js +6 -8
  714. package/build/frontend/commands/snippets/create-snippet.command.js +3 -3
  715. package/build/frontend/commands/snippets/update-snippet.command.js +3 -3
  716. package/build/frontend/commands/subscription/get-subscription-by-short-uuid-by-client-type.command.js +2 -2
  717. package/build/frontend/commands/subscription-page-configs/actions/clone-subpage-config.command.js +1 -1
  718. package/build/frontend/commands/subscription-page-configs/delete-subpage-config.command.js +1 -1
  719. package/build/frontend/commands/subscription-page-configs/get-subpage-config.command.js +1 -1
  720. package/build/frontend/commands/subscription-page-configs/update-subpage-config.command.js +1 -1
  721. package/build/frontend/commands/subscription-request-history/get-subscription-request-history-stats.command.js +1 -3
  722. package/build/frontend/commands/subscription-settings/update-subscription-settings.command.js +3 -6
  723. package/build/frontend/commands/subscription-template/create-template.command.js +3 -3
  724. package/build/frontend/commands/subscription-template/delete-subscription-template.command.js +1 -1
  725. package/build/frontend/commands/subscription-template/get-template.command.js +1 -1
  726. package/build/frontend/commands/subscription-template/update-template.command.js +4 -4
  727. package/build/frontend/commands/subscriptions/get-by/get-connection-keys-by-uuid.command.js +1 -1
  728. package/build/frontend/commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.js +1 -1
  729. package/build/frontend/commands/subscriptions/get-by/get-subscription-by-uuid.command.js +1 -1
  730. package/build/frontend/commands/subscriptions/get-subscriptions.command.js +5 -8
  731. package/build/frontend/commands/subscriptions/subpage/get-subpage-config-by-shortuuid.command.js +1 -1
  732. package/build/frontend/commands/system/get-recap.command.js +1 -3
  733. package/build/frontend/commands/system/get-stats.command.js +1 -1
  734. package/build/frontend/commands/system/testers/test-srr-matcher.command.js +1 -1
  735. package/build/frontend/commands/users/actions/disable-user.command.js +1 -1
  736. package/build/frontend/commands/users/actions/enable-user.command.js +1 -1
  737. package/build/frontend/commands/users/actions/reset-user-traffic.command.js +1 -1
  738. package/build/frontend/commands/users/actions/revoke-user-subscription.command.js +3 -3
  739. package/build/frontend/commands/users/bulk/bulk-delete-users.command.js +1 -4
  740. package/build/frontend/commands/users/bulk/bulk-extend-expiration-date.command.js +2 -9
  741. package/build/frontend/commands/users/bulk/bulk-reset-traffic-users.command.js +1 -4
  742. package/build/frontend/commands/users/bulk/bulk-revoke-users-subscription.command.js +1 -4
  743. package/build/frontend/commands/users/bulk/bulk-update-users-squads.command.js +2 -7
  744. package/build/frontend/commands/users/bulk/bulk-update-users.command.js +11 -26
  745. package/build/frontend/commands/users/bulk-all/bulk-all-extend-expiration-date.command.js +1 -1
  746. package/build/frontend/commands/users/bulk-all/bulk-all-update-users.command.js +10 -21
  747. package/build/frontend/commands/users/create-user.command.js +25 -63
  748. package/build/frontend/commands/users/delete-user.command.js +1 -1
  749. package/build/frontend/commands/users/get-by/get-user-by-id.command.js +1 -1
  750. package/build/frontend/commands/users/get-user-accessible-nodes.command.js +4 -4
  751. package/build/frontend/commands/users/get-user-by-uuid.command.js +1 -1
  752. package/build/frontend/commands/users/get-user-subscription-request-history.command.js +2 -4
  753. package/build/frontend/commands/users/get-users-stream.command.js +10 -11
  754. package/build/frontend/commands/users/resolve-user.command.js +3 -3
  755. package/build/frontend/commands/users/update-user.command.js +14 -39
  756. package/build/frontend/models/api-tokens.schema.js +4 -10
  757. package/build/frontend/models/base-internal-squad.schema.js +1 -1
  758. package/build/frontend/models/config-profile-inbounds.schema.js +2 -2
  759. package/build/frontend/models/config-profile.schema.js +5 -9
  760. package/build/frontend/models/external-squad.schema.js +7 -11
  761. package/build/frontend/models/hosts.schema.js +13 -13
  762. package/build/frontend/models/hwid-user-device.schema.js +2 -6
  763. package/build/frontend/models/infra-billing-history-record.schema.js +3 -5
  764. package/build/frontend/models/infra-billing-node.schema.js +6 -12
  765. package/build/frontend/models/infra-provider.schema.js +7 -15
  766. package/build/frontend/models/internal-squad.schema.js +4 -8
  767. package/build/frontend/models/last-connected-node.schema.js +1 -3
  768. package/build/frontend/models/node-system.schema.js +1 -1
  769. package/build/frontend/models/nodes.schema.js +11 -17
  770. package/build/frontend/models/resolved-proxy-config.schema.js +18 -18
  771. package/build/frontend/models/response-rules/response-rule-condition.schema.js +1 -1
  772. package/build/frontend/models/response-rules/response-rule.schema.js +2 -2
  773. package/build/frontend/models/response-rules/response-rules-config.schema.js +1 -1
  774. package/build/frontend/models/subscription-info.schema.js +3 -5
  775. package/build/frontend/models/subscription-request-history.schema.js +1 -4
  776. package/build/frontend/models/subscription-settings.schema.js +4 -13
  777. package/build/frontend/models/torrent-blocker-report.schema.js +3 -8
  778. package/build/frontend/models/user-traffic.schema.js +3 -9
  779. package/build/frontend/models/users.schema.js +14 -33
  780. package/package.json +2 -2
  781. package/build/backend/api/controllers/ip-control.d.ts +0 -9
  782. package/build/backend/api/controllers/ip-control.d.ts.map +0 -1
  783. package/build/backend/api/controllers/ip-control.js +0 -16
  784. package/build/backend/commands/ip-control/drop-connections.command.d.ts +0 -108
  785. package/build/backend/commands/ip-control/drop-connections.command.d.ts.map +0 -1
  786. package/build/backend/commands/ip-control/fetch-ips-result.command.d.ts +0 -189
  787. package/build/backend/commands/ip-control/fetch-ips-result.command.d.ts.map +0 -1
  788. package/build/backend/commands/ip-control/fetch-ips.command.d.ts +0 -33
  789. package/build/backend/commands/ip-control/fetch-ips.command.d.ts.map +0 -1
  790. package/build/backend/commands/ip-control/fetch-ips.command.js +0 -20
  791. package/build/backend/commands/ip-control/fetch-users-ips-result.command.d.ts +0 -131
  792. package/build/backend/commands/ip-control/fetch-users-ips-result.command.d.ts.map +0 -1
  793. package/build/backend/commands/ip-control/fetch-users-ips.command.d.ts +0 -33
  794. package/build/backend/commands/ip-control/fetch-users-ips.command.d.ts.map +0 -1
  795. package/build/backend/commands/ip-control/fetch-users-ips.command.js +0 -20
  796. package/build/backend/commands/ip-control/index.d.ts +0 -6
  797. package/build/backend/commands/ip-control/index.d.ts.map +0 -1
  798. package/build/frontend/api/controllers/ip-control.js +0 -16
  799. package/build/frontend/commands/ip-control/fetch-ips.command.js +0 -20
  800. package/build/frontend/commands/ip-control/fetch-users-ips.command.js +0 -20
@@ -13,10 +13,10 @@ var CreateSnippetCommand;
13
13
  CreateSnippetCommand.RequestBodySchema = zod_1.z.object({
14
14
  name: zod_1.z
15
15
  .string()
16
- .min(2, 'Name must be at least 2 characters')
17
- .max(255, 'Name must be less than 255 characters')
16
+ .min(2)
17
+ .max(255)
18
18
  .regex(/^[A-Za-z0-9_\s-]+$/, 'Name can only contain letters, numbers, underscores, dashes and spaces'),
19
- snippet: zod_1.z.array(zod_1.z.object({}).passthrough()),
19
+ snippet: zod_1.z.array(zod_1.z.looseObject({})),
20
20
  });
21
21
  CreateSnippetCommand.ResponseSchema = zod_1.z.object({
22
22
  response: zod_1.z.object({
@@ -13,10 +13,10 @@ var UpdateSnippetCommand;
13
13
  UpdateSnippetCommand.RequestBodySchema = zod_1.z.object({
14
14
  name: zod_1.z
15
15
  .string()
16
- .min(2, 'Name must be at least 2 characters')
17
- .max(255, 'Name must be less than 255 characters')
16
+ .min(2)
17
+ .max(255)
18
18
  .regex(/^[A-Za-z0-9_\s-]+$/, 'Name can only contain letters, numbers, underscores, dashes and spaces'),
19
- snippet: zod_1.z.array(zod_1.z.object({}).passthrough()),
19
+ snippet: zod_1.z.array(zod_1.z.looseObject({})),
20
20
  });
21
21
  UpdateSnippetCommand.ResponseSchema = zod_1.z.object({
22
22
  response: zod_1.z.object({
@@ -10,8 +10,8 @@ var GetSubscriptionByShortUuidByClientTypeCommand;
10
10
  GetSubscriptionByShortUuidByClientTypeCommand.TSQ_url = GetSubscriptionByShortUuidByClientTypeCommand.url(':shortUuid');
11
11
  GetSubscriptionByShortUuidByClientTypeCommand.RequestParamSchema = zod_1.z.object({
12
12
  shortUuid: zod_1.z.string(),
13
- clientType: zod_1.z.nativeEnum(constants_1.REQUEST_TEMPLATE_TYPE, {
14
- message: 'Invalid client type.',
13
+ clientType: zod_1.z.enum(constants_1.REQUEST_TEMPLATE_TYPE, {
14
+ error: 'Invalid client type.'
15
15
  }),
16
16
  });
17
17
  })(GetSubscriptionByShortUuidByClientTypeCommand || (exports.GetSubscriptionByShortUuidByClientTypeCommand = GetSubscriptionByShortUuidByClientTypeCommand = {}));
@@ -11,7 +11,7 @@ var CloneSubpageConfigCommand;
11
11
  CloneSubpageConfigCommand.TSQ_url = CloneSubpageConfigCommand.url;
12
12
  CloneSubpageConfigCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.SUBSCRIPTION_PAGE_CONFIGS_ROUTES.ACTIONS.CLONE, 'post', 'Clone subscription page config', { scope: 'clone', kind: 'write' });
13
13
  CloneSubpageConfigCommand.RequestBodySchema = zod_1.z.object({
14
- cloneFromUuid: zod_1.z.string().uuid(),
14
+ cloneFromUuid: zod_1.z.uuid(),
15
15
  });
16
16
  CloneSubpageConfigCommand.ResponseSchema = zod_1.z.object({
17
17
  response: models_1.SubscriptionPageConfigSchema.extend({
@@ -10,6 +10,6 @@ var DeleteSubpageConfigCommand;
10
10
  DeleteSubpageConfigCommand.TSQ_url = DeleteSubpageConfigCommand.url(':uuid');
11
11
  DeleteSubpageConfigCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.SUBSCRIPTION_PAGE_CONFIGS_ROUTES.DELETE(':uuid'), 'delete', 'Delete subscription page config', { scope: 'delete', kind: 'write' });
12
12
  DeleteSubpageConfigCommand.RequestParamSchema = zod_1.z.object({
13
- uuid: zod_1.z.string().uuid(),
13
+ uuid: zod_1.z.uuid(),
14
14
  });
15
15
  })(DeleteSubpageConfigCommand || (exports.DeleteSubpageConfigCommand = DeleteSubpageConfigCommand = {}));
@@ -11,7 +11,7 @@ var GetSubpageConfigCommand;
11
11
  GetSubpageConfigCommand.TSQ_url = GetSubpageConfigCommand.url(':uuid');
12
12
  GetSubpageConfigCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.SUBSCRIPTION_PAGE_CONFIGS_ROUTES.GET(':uuid'), 'get', 'Get subscription page config by uuid', { scope: 'get', kind: 'read' });
13
13
  GetSubpageConfigCommand.RequestParamSchema = zod_1.z.object({
14
- uuid: zod_1.z.string().uuid(),
14
+ uuid: zod_1.z.uuid(),
15
15
  });
16
16
  GetSubpageConfigCommand.ResponseSchema = zod_1.z.object({
17
17
  response: models_1.SubscriptionPageConfigSchema.extend({
@@ -11,7 +11,7 @@ var UpdateSubpageConfigCommand;
11
11
  UpdateSubpageConfigCommand.TSQ_url = UpdateSubpageConfigCommand.url;
12
12
  UpdateSubpageConfigCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.SUBSCRIPTION_PAGE_CONFIGS_ROUTES.UPDATE, 'patch', 'Update subscription page config', { scope: 'update', kind: 'write' });
13
13
  UpdateSubpageConfigCommand.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
17
  .min(2, 'Name must be at least 2 characters')
@@ -16,9 +16,7 @@ var GetSubscriptionRequestHistoryStatsCommand;
16
16
  count: zod_1.z.number(),
17
17
  })),
18
18
  hourlyRequestStats: zod_1.z.array(zod_1.z.object({
19
- dateTime: zod_1.z
20
- .string()
21
- .datetime()
19
+ dateTime: zod_1.z.iso.datetime()
22
20
  .transform((str) => new Date(str)),
23
21
  requestCount: zod_1.z.number(),
24
22
  })),
@@ -11,16 +11,13 @@ var UpdateSubscriptionSettingsCommand;
11
11
  UpdateSubscriptionSettingsCommand.TSQ_url = UpdateSubscriptionSettingsCommand.url;
12
12
  UpdateSubscriptionSettingsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.SUBSCRIPTION_SETTINGS_ROUTES.UPDATE, 'patch', 'Update subscription settings', { scope: 'update', kind: 'write' });
13
13
  UpdateSubscriptionSettingsCommand.RequestBodySchema = zod_1.z.object({
14
- uuid: zod_1.z.string().uuid(),
14
+ uuid: zod_1.z.uuid(),
15
15
  profileTitle: zod_1.z.optional(zod_1.z.string()),
16
16
  supportLink: zod_1.z.optional(zod_1.z.string()),
17
- profileUpdateInterval: zod_1.z.optional(zod_1.z.number().int()),
17
+ profileUpdateInterval: zod_1.z.optional(zod_1.z.int()),
18
18
  isProfileWebpageUrlEnabled: zod_1.z.optional(zod_1.z.boolean()),
19
19
  serveJsonAtBaseSubscription: zod_1.z.optional(zod_1.z.boolean()),
20
- happAnnounce: zod_1.z.optional(zod_1.z
21
- .string()
22
- .max(200, { message: 'Announce must be less than 200 characters' })
23
- .nullable()),
20
+ happAnnounce: zod_1.z.optional(zod_1.z.string().max(200).nullable()),
24
21
  happRouting: zod_1.z.optional(zod_1.z.string().nullable()),
25
22
  isShowCustomRemarks: zod_1.z.optional(zod_1.z.boolean()),
26
23
  customRemarks: zod_1.z.optional(models_1.CustomRemarksSchema),
@@ -13,10 +13,10 @@ var CreateSubscriptionTemplateCommand;
13
13
  CreateSubscriptionTemplateCommand.RequestBodySchema = zod_1.z.object({
14
14
  name: zod_1.z
15
15
  .string()
16
- .min(2, 'Name must be at least 2 characters')
17
- .max(255, 'Name must be less than 255 characters')
16
+ .min(2)
17
+ .max(255)
18
18
  .regex(/^[A-Za-z0-9_\s-]+$/, 'Name can only contain letters, numbers, underscores, dashes and spaces'),
19
- templateType: zod_1.z.nativeEnum(constants_1.SUBSCRIPTION_TEMPLATE_TYPE),
19
+ templateType: zod_1.z.enum(constants_1.SUBSCRIPTION_TEMPLATE_TYPE),
20
20
  });
21
21
  CreateSubscriptionTemplateCommand.ResponseSchema = zod_1.z.object({
22
22
  response: models_1.SubscriptionTemplateSchema,
@@ -10,6 +10,6 @@ var DeleteSubscriptionTemplateCommand;
10
10
  DeleteSubscriptionTemplateCommand.TSQ_url = DeleteSubscriptionTemplateCommand.url(':uuid');
11
11
  DeleteSubscriptionTemplateCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.SUBSCRIPTION_TEMPLATE_ROUTES.DELETE(':uuid'), 'delete', 'Delete subscription template', { scope: 'delete', kind: 'write' });
12
12
  DeleteSubscriptionTemplateCommand.RequestParamSchema = zod_1.z.object({
13
- uuid: zod_1.z.string().uuid(),
13
+ uuid: zod_1.z.uuid(),
14
14
  });
15
15
  })(DeleteSubscriptionTemplateCommand || (exports.DeleteSubscriptionTemplateCommand = DeleteSubscriptionTemplateCommand = {}));
@@ -11,7 +11,7 @@ var GetSubscriptionTemplateCommand;
11
11
  GetSubscriptionTemplateCommand.TSQ_url = GetSubscriptionTemplateCommand.url(':uuid');
12
12
  GetSubscriptionTemplateCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.SUBSCRIPTION_TEMPLATE_ROUTES.GET(':uuid'), 'get', 'Get subscription template by uuid', { scope: 'get', kind: 'read' });
13
13
  GetSubscriptionTemplateCommand.RequestParamSchema = zod_1.z.object({
14
- uuid: zod_1.z.string().uuid(),
14
+ uuid: zod_1.z.uuid(),
15
15
  });
16
16
  GetSubscriptionTemplateCommand.ResponseSchema = zod_1.z.object({
17
17
  response: models_1.SubscriptionTemplateSchema,
@@ -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 = {}));