@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.
- package/build/backend/api/controllers/connections.d.ts +9 -0
- package/build/backend/api/controllers/connections.d.ts.map +1 -0
- package/build/backend/api/controllers/connections.js +16 -0
- package/build/backend/api/controllers/index.d.ts +1 -1
- package/build/backend/api/controllers/index.d.ts.map +1 -1
- package/build/backend/api/controllers/index.js +1 -1
- package/build/backend/api/controllers-info.d.ts +4 -4
- package/build/backend/api/controllers-info.js +4 -4
- package/build/backend/api/routes.d.ts +6 -6
- package/build/backend/api/routes.d.ts.map +1 -1
- package/build/backend/api/routes.js +6 -6
- package/build/backend/commands/api-tokens/create.command.d.ts +9 -54
- package/build/backend/commands/api-tokens/create.command.d.ts.map +1 -1
- package/build/backend/commands/api-tokens/delete.command.d.ts +2 -6
- package/build/backend/commands/api-tokens/delete.command.d.ts.map +1 -1
- package/build/backend/commands/api-tokens/delete.command.js +1 -1
- package/build/backend/commands/api-tokens/get-api-tokens.command.d.ts +9 -91
- package/build/backend/commands/api-tokens/get-api-tokens.command.d.ts.map +1 -1
- package/build/backend/commands/api-tokens/get-scopes.command.d.ts +21 -144
- package/build/backend/commands/api-tokens/get-scopes.command.d.ts.map +1 -1
- package/build/backend/commands/auth/get-status.command.d.ts +8 -122
- package/build/backend/commands/auth/get-status.command.d.ts.map +1 -1
- package/build/backend/commands/auth/get-status.command.js +1 -1
- package/build/backend/commands/auth/login.command.d.ts +3 -21
- package/build/backend/commands/auth/login.command.d.ts.map +1 -1
- package/build/backend/commands/auth/oauth2/authorize.command.d.ts +5 -21
- package/build/backend/commands/auth/oauth2/authorize.command.d.ts.map +1 -1
- package/build/backend/commands/auth/oauth2/authorize.command.js +2 -2
- package/build/backend/commands/auth/oauth2/callback.command.d.ts +4 -24
- package/build/backend/commands/auth/oauth2/callback.command.d.ts.map +1 -1
- package/build/backend/commands/auth/oauth2/callback.command.js +1 -1
- package/build/backend/commands/auth/passkey/get-authentication-options.command.d.ts +1 -5
- package/build/backend/commands/auth/passkey/get-authentication-options.command.d.ts.map +1 -1
- package/build/backend/commands/auth/passkey/verify-authentication.command.d.ts +3 -19
- package/build/backend/commands/auth/passkey/verify-authentication.command.d.ts.map +1 -1
- package/build/backend/commands/auth/register.command.d.ts +3 -21
- package/build/backend/commands/auth/register.command.d.ts.map +1 -1
- package/build/backend/commands/bandwidth-stats/legacy/get-legacy-stats-node-user-usage.command.d.ts +10 -48
- package/build/backend/commands/bandwidth-stats/legacy/get-legacy-stats-node-user-usage.command.d.ts.map +1 -1
- package/build/backend/commands/bandwidth-stats/legacy/get-legacy-stats-node-user-usage.command.js +5 -5
- package/build/backend/commands/bandwidth-stats/legacy/get-legacy-user-usage.command.d.ts +10 -52
- package/build/backend/commands/bandwidth-stats/legacy/get-legacy-user-usage.command.d.ts.map +1 -1
- package/build/backend/commands/bandwidth-stats/legacy/get-legacy-user-usage.command.js +5 -5
- package/build/backend/commands/bandwidth-stats/nodes/get-stats-node-users-usage.command.d.ts +11 -67
- package/build/backend/commands/bandwidth-stats/nodes/get-stats-node-users-usage.command.d.ts.map +1 -1
- package/build/backend/commands/bandwidth-stats/nodes/get-stats-node-users-usage.command.js +3 -3
- package/build/backend/commands/bandwidth-stats/nodes/get-stats-nodes-usage.command.d.ts +13 -123
- package/build/backend/commands/bandwidth-stats/nodes/get-stats-nodes-usage.command.d.ts.map +1 -1
- package/build/backend/commands/bandwidth-stats/nodes/get-stats-nodes-usage.command.js +4 -4
- package/build/backend/commands/bandwidth-stats/nodes/get-stats-nodes-users-usage.command.d.ts +11 -67
- package/build/backend/commands/bandwidth-stats/nodes/get-stats-nodes-users-usage.command.d.ts.map +1 -1
- package/build/backend/commands/bandwidth-stats/nodes/get-stats-nodes-users-usage.command.js +3 -3
- package/build/backend/commands/bandwidth-stats/users/get-stats-user-usage.command.d.ts +15 -129
- package/build/backend/commands/bandwidth-stats/users/get-stats-user-usage.command.d.ts.map +1 -1
- package/build/backend/commands/bandwidth-stats/users/get-stats-user-usage.command.js +5 -5
- package/build/backend/commands/config-profiles/actions/reorder.command.d.ts +17 -252
- package/build/backend/commands/config-profiles/actions/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/config-profiles/create-config-profile.command.d.ts +13 -141
- package/build/backend/commands/config-profiles/create-config-profile.command.d.ts.map +1 -1
- package/build/backend/commands/config-profiles/create-config-profile.command.js +1 -1
- package/build/backend/commands/config-profiles/delete-config-profile.command.d.ts +2 -6
- package/build/backend/commands/config-profiles/delete-config-profile.command.d.ts.map +1 -1
- package/build/backend/commands/config-profiles/delete-config-profile.command.js +1 -1
- package/build/backend/commands/config-profiles/get-all-inbounds.command.d.ts +6 -83
- package/build/backend/commands/config-profiles/get-all-inbounds.command.d.ts.map +1 -1
- package/build/backend/commands/config-profiles/get-all-inbounds.command.js +1 -1
- package/build/backend/commands/config-profiles/get-computed-config-profile-by-uuid.command.d.ts +13 -135
- package/build/backend/commands/config-profiles/get-computed-config-profile-by-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/config-profiles/get-computed-config-profile-by-uuid.command.js +1 -1
- package/build/backend/commands/config-profiles/get-config-profile-by-uuid.command.d.ts +13 -135
- package/build/backend/commands/config-profiles/get-config-profile-by-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/config-profiles/get-config-profile-by-uuid.command.js +1 -1
- package/build/backend/commands/config-profiles/get-config-profiles.command.d.ts +12 -186
- package/build/backend/commands/config-profiles/get-config-profiles.command.d.ts.map +1 -1
- package/build/backend/commands/config-profiles/get-inbounds-by-profile-uuid.command.d.ts +8 -89
- package/build/backend/commands/config-profiles/get-inbounds-by-profile-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/config-profiles/get-inbounds-by-profile-uuid.command.js +2 -2
- package/build/backend/commands/config-profiles/update-config-profile.command.d.ts +14 -140
- package/build/backend/commands/config-profiles/update-config-profile.command.d.ts.map +1 -1
- package/build/backend/commands/config-profiles/update-config-profile.command.js +2 -2
- package/build/backend/commands/connections/connections-by-node-result.command.d.ts +29 -0
- package/build/backend/commands/connections/connections-by-node-result.command.d.ts.map +1 -0
- package/build/backend/commands/{ip-control/fetch-users-ips-result.command.js → connections/connections-by-node-result.command.js} +11 -12
- package/build/backend/commands/connections/connections-by-node.command.d.ts +17 -0
- package/build/backend/commands/connections/connections-by-node.command.d.ts.map +1 -0
- package/build/backend/commands/connections/connections-by-node.command.js +20 -0
- package/build/backend/commands/connections/connections-by-user-result.command.d.ts +37 -0
- package/build/backend/commands/connections/connections-by-user-result.command.d.ts.map +1 -0
- package/build/{frontend/commands/ip-control/fetch-ips-result.command.js → backend/commands/connections/connections-by-user-result.command.js} +12 -13
- package/build/backend/commands/connections/connections-by-user.command.d.ts +17 -0
- package/build/backend/commands/connections/connections-by-user.command.d.ts.map +1 -0
- package/build/backend/commands/connections/connections-by-user.command.js +20 -0
- package/build/backend/commands/connections/drop-connections.command.d.ts +36 -0
- package/build/backend/commands/connections/drop-connections.command.d.ts.map +1 -0
- package/build/backend/commands/{ip-control → connections}/drop-connections.command.js +5 -5
- package/build/backend/commands/connections/index.d.ts +6 -0
- package/build/backend/commands/connections/index.d.ts.map +1 -0
- package/build/backend/commands/{ip-control → connections}/index.js +4 -4
- package/build/backend/commands/external-squads/actions/reorder.command.d.ts +29 -482
- package/build/backend/commands/external-squads/actions/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/external-squads/bulk-actions/add-users-to-external-squad.command.d.ts +2 -6
- package/build/backend/commands/external-squads/bulk-actions/add-users-to-external-squad.command.d.ts.map +1 -1
- package/build/backend/commands/external-squads/bulk-actions/add-users-to-external-squad.command.js +1 -1
- package/build/backend/commands/external-squads/bulk-actions/delete-users-from-external-squad.command.d.ts +2 -6
- package/build/backend/commands/external-squads/bulk-actions/delete-users-from-external-squad.command.d.ts.map +1 -1
- package/build/backend/commands/external-squads/bulk-actions/delete-users-from-external-squad.command.js +1 -1
- package/build/backend/commands/external-squads/create-external-squad.command.d.ts +24 -262
- package/build/backend/commands/external-squads/create-external-squad.command.d.ts.map +1 -1
- package/build/backend/commands/external-squads/delete-external-squad.command.d.ts +2 -6
- package/build/backend/commands/external-squads/delete-external-squad.command.d.ts.map +1 -1
- package/build/backend/commands/external-squads/delete-external-squad.command.js +1 -1
- package/build/backend/commands/external-squads/get-external-squad-by-uuid.command.d.ts +25 -263
- package/build/backend/commands/external-squads/get-external-squad-by-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/external-squads/get-external-squad-by-uuid.command.js +1 -1
- package/build/backend/commands/external-squads/get-external-squads.command.d.ts +24 -356
- package/build/backend/commands/external-squads/get-external-squads.command.d.ts.map +1 -1
- package/build/backend/commands/external-squads/update-external-squad.command.d.ts +41 -403
- package/build/backend/commands/external-squads/update-external-squad.command.d.ts.map +1 -1
- package/build/backend/commands/external-squads/update-external-squad.command.js +8 -8
- package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts +2 -6
- package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/bulk/delete-many-hosts.command.js +1 -1
- package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts +2 -6
- package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/bulk/disable-many-hosts.command.js +1 -1
- package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts +2 -6
- package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/bulk/enable-many-hosts.command.js +1 -1
- package/build/backend/commands/hosts/bulk/update-many-hosts.command.d.ts +16 -93
- package/build/backend/commands/hosts/bulk/update-many-hosts.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/bulk/update-many-hosts.command.js +1 -1
- package/build/backend/commands/hosts/create.command.d.ts +33 -261
- package/build/backend/commands/hosts/create.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/create.command.js +12 -17
- package/build/backend/commands/hosts/delete.command.d.ts +2 -6
- package/build/backend/commands/hosts/delete.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/delete.command.js +1 -1
- package/build/backend/commands/hosts/get-host.command.d.ts +20 -178
- package/build/backend/commands/hosts/get-host.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/get-host.command.js +1 -1
- package/build/backend/commands/hosts/get-hosts.command.d.ts +18 -172
- package/build/backend/commands/hosts/get-hosts.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/host.response.d.ts +18 -172
- package/build/backend/commands/hosts/host.response.d.ts.map +1 -1
- package/build/backend/commands/hosts/reorder.command.d.ts +7 -98
- package/build/backend/commands/hosts/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/tags/get-hosts-tags.command.d.ts +3 -15
- package/build/backend/commands/hosts/tags/get-hosts-tags.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/update.command.d.ts +35 -330
- package/build/backend/commands/hosts/update.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/update.command.js +12 -17
- package/build/backend/commands/hwid/create-user-hwid-device.command.d.ts +7 -99
- package/build/backend/commands/hwid/create-user-hwid-device.command.d.ts.map +1 -1
- package/build/backend/commands/hwid/create-user-hwid-device.command.js +1 -1
- package/build/backend/commands/hwid/delete-all-user-hwid-devices.command.d.ts +7 -87
- package/build/backend/commands/hwid/delete-all-user-hwid-devices.command.d.ts.map +1 -1
- package/build/backend/commands/hwid/delete-all-user-hwid-devices.command.js +1 -1
- package/build/backend/commands/hwid/delete-user-hwid-device.command.d.ts +7 -89
- package/build/backend/commands/hwid/delete-user-hwid-device.command.d.ts.map +1 -1
- package/build/backend/commands/hwid/delete-user-hwid-device.command.js +1 -1
- package/build/backend/commands/hwid/get-hwid-devices-stats.command.d.ts +5 -93
- package/build/backend/commands/hwid/get-hwid-devices-stats.command.d.ts.map +1 -1
- package/build/backend/commands/hwid/get-hwid-devices.command.d.ts +13 -127
- package/build/backend/commands/hwid/get-hwid-devices.command.d.ts.map +1 -1
- package/build/backend/commands/hwid/get-top-users-by-hwid-devices.command.d.ts +7 -59
- package/build/backend/commands/hwid/get-top-users-by-hwid-devices.command.d.ts.map +1 -1
- package/build/backend/commands/hwid/get-top-users-by-hwid-devices.command.js +1 -1
- package/build/backend/commands/hwid/get-user-hwid-devices.command.d.ts +7 -87
- package/build/backend/commands/hwid/get-user-hwid-devices.command.d.ts.map +1 -1
- package/build/backend/commands/hwid/get-user-hwid-devices.command.js +1 -1
- package/build/backend/commands/index.d.ts +1 -1
- package/build/backend/commands/index.d.ts.map +1 -1
- package/build/backend/commands/index.js +1 -1
- package/build/backend/commands/infra-billing/create-bill-record.command.d.ts +12 -107
- package/build/backend/commands/infra-billing/create-bill-record.command.d.ts.map +1 -1
- package/build/backend/commands/infra-billing/create-bill-record.command.js +4 -7
- package/build/backend/commands/infra-billing/create-billing-node.command.d.ts +23 -739
- package/build/backend/commands/infra-billing/create-billing-node.command.d.ts.map +1 -1
- package/build/backend/commands/infra-billing/create-billing-node.command.js +4 -7
- package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts +12 -120
- package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts.map +1 -1
- package/build/backend/commands/infra-billing/create-infra-provider.command.js +2 -2
- package/build/backend/commands/infra-billing/delete-bill-record.command.d.ts +2 -6
- package/build/backend/commands/infra-billing/delete-bill-record.command.d.ts.map +1 -1
- package/build/backend/commands/infra-billing/delete-bill-record.command.js +1 -1
- package/build/backend/commands/infra-billing/delete-billing-node.command.d.ts +2 -6
- package/build/backend/commands/infra-billing/delete-billing-node.command.d.ts.map +1 -1
- package/build/backend/commands/infra-billing/delete-billing-node.command.js +1 -1
- package/build/backend/commands/infra-billing/delete-infra-provider.command.d.ts +2 -6
- package/build/backend/commands/infra-billing/delete-infra-provider.command.d.ts.map +1 -1
- package/build/backend/commands/infra-billing/delete-infra-provider.command.js +1 -1
- package/build/backend/commands/infra-billing/get-bill-records.command.d.ts +12 -105
- package/build/backend/commands/infra-billing/get-bill-records.command.d.ts.map +1 -1
- package/build/backend/commands/infra-billing/get-bill-records.command.js +2 -2
- package/build/backend/commands/infra-billing/get-billing-nodes.command.d.ts +19 -725
- package/build/backend/commands/infra-billing/get-billing-nodes.command.d.ts.map +1 -1
- package/build/backend/commands/infra-billing/get-infra-provider.command.d.ts +11 -115
- package/build/backend/commands/infra-billing/get-infra-provider.command.d.ts.map +1 -1
- package/build/backend/commands/infra-billing/get-infra-provider.command.js +1 -1
- package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts +10 -158
- package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts.map +1 -1
- package/build/backend/commands/infra-billing/update-billing-node.command.d.ts +22 -734
- package/build/backend/commands/infra-billing/update-billing-node.command.d.ts.map +1 -1
- package/build/backend/commands/infra-billing/update-billing-node.command.js +3 -6
- package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts +13 -123
- package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts.map +1 -1
- package/build/backend/commands/infra-billing/update-infra-provider.command.js +4 -8
- package/build/backend/commands/internal-squads/actions/reorder.command.d.ts +16 -233
- package/build/backend/commands/internal-squads/actions/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.d.ts +2 -6
- package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.d.ts.map +1 -1
- package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.js +1 -1
- package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.d.ts +2 -6
- package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.d.ts.map +1 -1
- package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.js +1 -1
- package/build/backend/commands/internal-squads/create-internal-squad.command.d.ts +12 -126
- package/build/backend/commands/internal-squads/create-internal-squad.command.d.ts.map +1 -1
- package/build/backend/commands/internal-squads/create-internal-squad.command.js +3 -3
- package/build/backend/commands/internal-squads/delete-internal-squad.command.d.ts +2 -6
- package/build/backend/commands/internal-squads/delete-internal-squad.command.d.ts.map +1 -1
- package/build/backend/commands/internal-squads/delete-internal-squad.command.js +1 -1
- package/build/backend/commands/internal-squads/get-internal-squad-accessible-nodes.command.d.ts +9 -71
- package/build/backend/commands/internal-squads/get-internal-squad-accessible-nodes.command.d.ts.map +1 -1
- package/build/backend/commands/internal-squads/get-internal-squad-accessible-nodes.command.js +4 -4
- package/build/backend/commands/internal-squads/get-internal-squad.command.d.ts +12 -124
- package/build/backend/commands/internal-squads/get-internal-squad.command.d.ts.map +1 -1
- package/build/backend/commands/internal-squads/get-internal-squad.command.js +1 -1
- package/build/backend/commands/internal-squads/get-internal-squads.command.d.ts +11 -171
- package/build/backend/commands/internal-squads/get-internal-squads.command.d.ts.map +1 -1
- package/build/backend/commands/internal-squads/update-internal-squad.command.d.ts +13 -129
- package/build/backend/commands/internal-squads/update-internal-squad.command.d.ts.map +1 -1
- package/build/backend/commands/internal-squads/update-internal-squad.command.js +2 -2
- package/build/backend/commands/keygen/get-node-secret-key.command.d.ts +2 -14
- package/build/backend/commands/keygen/get-node-secret-key.command.d.ts.map +1 -1
- package/build/backend/commands/metadata/node/get-node-metadata.command.d.ts +5 -29
- package/build/backend/commands/metadata/node/get-node-metadata.command.d.ts.map +1 -1
- package/build/backend/commands/metadata/node/get-node-metadata.command.js +2 -2
- package/build/backend/commands/metadata/node/upsert-node-metadata.command.d.ts +7 -39
- package/build/backend/commands/metadata/node/upsert-node-metadata.command.d.ts.map +1 -1
- package/build/backend/commands/metadata/node/upsert-node-metadata.command.js +3 -3
- package/build/backend/commands/metadata/user/get-user-metadata.command.d.ts +5 -29
- package/build/backend/commands/metadata/user/get-user-metadata.command.d.ts.map +1 -1
- package/build/backend/commands/metadata/user/get-user-metadata.command.js +2 -2
- package/build/backend/commands/metadata/user/upsert-user-metadata.command.d.ts +7 -39
- package/build/backend/commands/metadata/user/upsert-user-metadata.command.d.ts.map +1 -1
- package/build/backend/commands/metadata/user/upsert-user-metadata.command.js +3 -3
- package/build/backend/commands/node-plugins/actions/clone-node-plugin.command.d.ts +4 -33
- package/build/backend/commands/node-plugins/actions/clone-node-plugin.command.d.ts.map +1 -1
- package/build/backend/commands/node-plugins/actions/clone-node-plugin.command.js +1 -1
- package/build/backend/commands/node-plugins/actions/reorder.command.d.ts +6 -70
- package/build/backend/commands/node-plugins/actions/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/node-plugins/create-node-plugin.command.d.ts +3 -31
- package/build/backend/commands/node-plugins/create-node-plugin.command.d.ts.map +1 -1
- package/build/backend/commands/node-plugins/delete-node-plugin.command.d.ts +2 -6
- package/build/backend/commands/node-plugins/delete-node-plugin.command.d.ts.map +1 -1
- package/build/backend/commands/node-plugins/delete-node-plugin.command.js +1 -1
- package/build/backend/commands/node-plugins/executor.command.d.ts +23 -137
- package/build/backend/commands/node-plugins/executor.command.d.ts.map +1 -1
- package/build/backend/commands/node-plugins/executor.command.js +3 -3
- package/build/backend/commands/node-plugins/get-node-plugin.command.d.ts +4 -33
- package/build/backend/commands/node-plugins/get-node-plugin.command.d.ts.map +1 -1
- package/build/backend/commands/node-plugins/get-node-plugin.command.js +1 -1
- package/build/backend/commands/node-plugins/get-node-plugins.command.d.ts +3 -49
- package/build/backend/commands/node-plugins/get-node-plugins.command.d.ts.map +1 -1
- package/build/backend/commands/node-plugins/torrent-blocker/get-torrent-blocker-reports-stats.command.d.ts +7 -123
- package/build/backend/commands/node-plugins/torrent-blocker/get-torrent-blocker-reports-stats.command.d.ts.map +1 -1
- package/build/backend/commands/node-plugins/torrent-blocker/get-torrent-blocker-reports-stats.command.js +2 -2
- package/build/backend/commands/node-plugins/torrent-blocker/get-torrent-blocker-reports.command.d.ts +23 -725
- package/build/backend/commands/node-plugins/torrent-blocker/get-torrent-blocker-reports.command.d.ts.map +1 -1
- package/build/backend/commands/node-plugins/update-node-plugin.command.d.ts +4 -37
- package/build/backend/commands/node-plugins/update-node-plugin.command.d.ts.map +1 -1
- package/build/backend/commands/node-plugins/update-node-plugin.command.js +1 -1
- package/build/backend/commands/nodes/actions/disable.command.d.ts +32 -532
- package/build/backend/commands/nodes/actions/disable.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/disable.command.js +1 -1
- package/build/backend/commands/nodes/actions/enable.command.d.ts +32 -532
- package/build/backend/commands/nodes/actions/enable.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/enable.command.js +1 -1
- package/build/backend/commands/nodes/actions/reorder.command.d.ts +35 -796
- package/build/backend/commands/nodes/actions/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/reset-traffic.command.d.ts +2 -6
- package/build/backend/commands/nodes/actions/reset-traffic.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/reset-traffic.command.js +1 -1
- package/build/backend/commands/nodes/actions/restart-all.command.d.ts +1 -5
- package/build/backend/commands/nodes/actions/restart-all.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/restart.command.d.ts +3 -11
- package/build/backend/commands/nodes/actions/restart.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/restart.command.js +1 -1
- package/build/backend/commands/nodes/bulk-actions/actions.command.d.ts +3 -9
- package/build/backend/commands/nodes/bulk-actions/actions.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/bulk-actions/actions.command.js +2 -2
- package/build/backend/commands/nodes/bulk-actions/bulk-update.command.d.ts +8 -46
- package/build/backend/commands/nodes/bulk-actions/bulk-update.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/bulk-actions/bulk-update.command.js +9 -9
- package/build/backend/commands/nodes/bulk-actions/profile-modification.command.d.ts +5 -23
- package/build/backend/commands/nodes/bulk-actions/profile-modification.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/bulk-actions/profile-modification.command.js +3 -7
- package/build/backend/commands/nodes/create.command.d.ts +42 -584
- package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/create.command.js +16 -36
- package/build/backend/commands/nodes/delete.command.d.ts +2 -6
- package/build/backend/commands/nodes/delete.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/delete.command.js +1 -1
- package/build/backend/commands/nodes/get-node.command.d.ts +32 -532
- package/build/backend/commands/nodes/get-node.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/get-node.command.js +1 -1
- package/build/backend/commands/nodes/get-nodes.command.d.ts +30 -526
- package/build/backend/commands/nodes/get-nodes.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/node.response.d.ts +30 -526
- package/build/backend/commands/nodes/node.response.d.ts.map +1 -1
- package/build/backend/commands/nodes/tags/get-nodes-tags.command.d.ts +3 -15
- package/build/backend/commands/nodes/tags/get-nodes-tags.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/update.command.d.ts +41 -836
- package/build/backend/commands/nodes/update.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/update.command.js +17 -29
- package/build/backend/commands/passkeys/delete-passkey.command.d.ts +1 -5
- package/build/backend/commands/passkeys/delete-passkey.command.d.ts.map +1 -1
- package/build/backend/commands/passkeys/get-passkeys.command.d.ts +5 -47
- package/build/backend/commands/passkeys/get-passkeys.command.d.ts.map +1 -1
- package/build/backend/commands/passkeys/get-passkeys.command.js +4 -10
- package/build/backend/commands/passkeys/get-registration-options.command.d.ts +1 -5
- package/build/backend/commands/passkeys/get-registration-options.command.d.ts.map +1 -1
- package/build/backend/commands/passkeys/update-passkey.command.d.ts +6 -54
- package/build/backend/commands/passkeys/update-passkey.command.d.ts.map +1 -1
- package/build/backend/commands/passkeys/update-passkey.command.js +6 -8
- package/build/backend/commands/passkeys/verify-registration.command.d.ts +3 -19
- package/build/backend/commands/passkeys/verify-registration.command.d.ts.map +1 -1
- package/build/backend/commands/remnawave-settings/get-remnawave-settings.command.d.ts +25 -457
- package/build/backend/commands/remnawave-settings/get-remnawave-settings.command.d.ts.map +1 -1
- package/build/backend/commands/remnawave-settings/update-remnawave-settings.command.d.ts +49 -789
- package/build/backend/commands/remnawave-settings/update-remnawave-settings.command.d.ts.map +1 -1
- package/build/backend/commands/snippets/create-snippet.command.d.ts +5 -45
- package/build/backend/commands/snippets/create-snippet.command.d.ts.map +1 -1
- package/build/backend/commands/snippets/create-snippet.command.js +3 -3
- package/build/backend/commands/snippets/delete-snippet.command.d.ts +1 -5
- package/build/backend/commands/snippets/delete-snippet.command.d.ts.map +1 -1
- package/build/backend/commands/snippets/get-snippets.command.d.ts +3 -37
- package/build/backend/commands/snippets/get-snippets.command.d.ts.map +1 -1
- package/build/backend/commands/snippets/update-snippet.command.d.ts +5 -45
- package/build/backend/commands/snippets/update-snippet.command.d.ts.map +1 -1
- package/build/backend/commands/snippets/update-snippet.command.js +3 -3
- package/build/backend/commands/subscription/get-subscription-by-short-uuid-by-client-type.command.d.ts +2 -8
- package/build/backend/commands/subscription/get-subscription-by-short-uuid-by-client-type.command.d.ts.map +1 -1
- package/build/backend/commands/subscription/get-subscription-by-short-uuid-by-client-type.command.js +2 -2
- package/build/backend/commands/subscription/get-subscription-by-short-uuid.command.d.ts +1 -5
- package/build/backend/commands/subscription/get-subscription-by-short-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/subscription/get-subscription-info-by-short-uuid.command.d.ts +8 -124
- package/build/backend/commands/subscription/get-subscription-info-by-short-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-page-configs/actions/clone-subpage-config.command.d.ts +4 -33
- package/build/backend/commands/subscription-page-configs/actions/clone-subpage-config.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-page-configs/actions/clone-subpage-config.command.js +1 -1
- package/build/backend/commands/subscription-page-configs/actions/reorder.command.d.ts +6 -70
- package/build/backend/commands/subscription-page-configs/actions/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-page-configs/create-subpage-config.command.d.ts +3 -31
- package/build/backend/commands/subscription-page-configs/create-subpage-config.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-page-configs/delete-subpage-config.command.d.ts +2 -6
- package/build/backend/commands/subscription-page-configs/delete-subpage-config.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-page-configs/delete-subpage-config.command.js +1 -1
- package/build/backend/commands/subscription-page-configs/get-subpage-config.command.d.ts +4 -33
- package/build/backend/commands/subscription-page-configs/get-subpage-config.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-page-configs/get-subpage-config.command.js +1 -1
- package/build/backend/commands/subscription-page-configs/get-subpage-configs.command.d.ts +3 -49
- package/build/backend/commands/subscription-page-configs/get-subpage-configs.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-page-configs/update-subpage-config.command.d.ts +4 -37
- package/build/backend/commands/subscription-page-configs/update-subpage-config.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-page-configs/update-subpage-config.command.js +1 -1
- package/build/backend/commands/subscription-request-history/get-subscription-request-history-stats.command.d.ts +5 -57
- package/build/backend/commands/subscription-request-history/get-subscription-request-history-stats.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-request-history/get-subscription-request-history-stats.command.js +1 -3
- package/build/backend/commands/subscription-request-history/get-subscription-request-history.command.d.ts +12 -102
- package/build/backend/commands/subscription-request-history/get-subscription-request-history.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-settings/get-subscription-settings.command.d.ts +31 -492
- package/build/backend/commands/subscription-settings/get-subscription-settings.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-settings/update-subscription-settings.command.d.ts +59 -847
- package/build/backend/commands/subscription-settings/update-subscription-settings.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-settings/update-subscription-settings.command.js +3 -6
- package/build/backend/commands/subscription-template/actions/reorder.command.d.ts +7 -92
- package/build/backend/commands/subscription-template/actions/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-template/create-template.command.d.ts +5 -43
- package/build/backend/commands/subscription-template/create-template.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-template/create-template.command.js +3 -3
- package/build/backend/commands/subscription-template/delete-subscription-template.command.d.ts +2 -6
- package/build/backend/commands/subscription-template/delete-subscription-template.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-template/delete-subscription-template.command.js +1 -1
- package/build/backend/commands/subscription-template/get-template.command.d.ts +5 -41
- package/build/backend/commands/subscription-template/get-template.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-template/get-template.command.js +1 -1
- package/build/backend/commands/subscription-template/get-templates.command.d.ts +4 -62
- package/build/backend/commands/subscription-template/get-templates.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-template/update-template.command.d.ts +6 -48
- package/build/backend/commands/subscription-template/update-template.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-template/update-template.command.js +4 -4
- package/build/backend/commands/subscriptions/get-by/get-connection-keys-by-uuid.command.d.ts +7 -31
- package/build/backend/commands/subscriptions/get-by/get-connection-keys-by-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/subscriptions/get-by/get-connection-keys-by-uuid.command.js +1 -1
- package/build/backend/commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.d.ts +102 -1301
- package/build/backend/commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.js +1 -1
- package/build/backend/commands/subscriptions/get-by/get-subscription-by-short-uuid-protected.command.d.ts +8 -124
- package/build/backend/commands/subscriptions/get-by/get-subscription-by-short-uuid-protected.command.d.ts.map +1 -1
- package/build/backend/commands/subscriptions/get-by/get-subscription-by-username.command.d.ts +8 -124
- package/build/backend/commands/subscriptions/get-by/get-subscription-by-username.command.d.ts.map +1 -1
- package/build/backend/commands/subscriptions/get-by/get-subscription-by-uuid.command.d.ts +9 -125
- package/build/backend/commands/subscriptions/get-by/get-subscription-by-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/subscriptions/get-by/get-subscription-by-uuid.command.js +1 -1
- package/build/backend/commands/subscriptions/get-subscriptions.command.d.ts +11 -181
- package/build/backend/commands/subscriptions/get-subscriptions.command.d.ts.map +1 -1
- package/build/backend/commands/subscriptions/get-subscriptions.command.js +5 -8
- package/build/backend/commands/subscriptions/subpage/get-subpage-config-by-shortuuid.command.d.ts +5 -29
- package/build/backend/commands/subscriptions/subpage/get-subpage-config-by-shortuuid.command.d.ts.map +1 -1
- package/build/backend/commands/subscriptions/subpage/get-subpage-config-by-shortuuid.command.js +1 -1
- package/build/backend/commands/system/get-bandwidth-stats.command.d.ts +8 -160
- package/build/backend/commands/system/get-bandwidth-stats.command.d.ts.map +1 -1
- package/build/backend/commands/system/get-metadata.command.d.ts +6 -118
- package/build/backend/commands/system/get-metadata.command.d.ts.map +1 -1
- package/build/backend/commands/system/get-nodes-metrics.command.d.ts +5 -129
- package/build/backend/commands/system/get-nodes-metrics.command.d.ts.map +1 -1
- package/build/backend/commands/system/get-nodes-statistics.d.ts +4 -44
- package/build/backend/commands/system/get-nodes-statistics.d.ts.map +1 -1
- package/build/backend/commands/system/get-recap.command.d.ts +5 -89
- package/build/backend/commands/system/get-recap.command.d.ts.map +1 -1
- package/build/backend/commands/system/get-recap.command.js +1 -3
- package/build/backend/commands/system/get-remnawave-health.command.d.ts +3 -99
- package/build/backend/commands/system/get-remnawave-health.command.d.ts.map +1 -1
- package/build/backend/commands/system/get-stats.command.d.ts +14 -151
- package/build/backend/commands/system/get-stats.command.d.ts.map +1 -1
- package/build/backend/commands/system/get-stats.command.js +1 -1
- package/build/backend/commands/system/testers/test-srr-matcher.command.d.ts +35 -545
- package/build/backend/commands/system/testers/test-srr-matcher.command.d.ts.map +1 -1
- package/build/backend/commands/system/testers/test-srr-matcher.command.js +1 -1
- package/build/backend/commands/system/tools/generate-x25519.command.d.ts +3 -33
- package/build/backend/commands/system/tools/generate-x25519.command.d.ts.map +1 -1
- package/build/backend/commands/users/actions/disable-user.command.d.ts +26 -193
- package/build/backend/commands/users/actions/disable-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/actions/disable-user.command.js +1 -1
- package/build/backend/commands/users/actions/enable-user.command.d.ts +26 -193
- package/build/backend/commands/users/actions/enable-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/actions/enable-user.command.js +1 -1
- package/build/backend/commands/users/actions/reset-user-traffic.command.d.ts +26 -193
- package/build/backend/commands/users/actions/reset-user-traffic.command.d.ts.map +1 -1
- package/build/backend/commands/users/actions/reset-user-traffic.command.js +1 -1
- package/build/backend/commands/users/actions/revoke-user-subscription.command.d.ts +28 -204
- package/build/backend/commands/users/actions/revoke-user-subscription.command.d.ts.map +1 -1
- package/build/backend/commands/users/actions/revoke-user-subscription.command.js +3 -3
- package/build/backend/commands/users/bulk/bulk-delete-users-by-status.command.d.ts +3 -7
- package/build/backend/commands/users/bulk/bulk-delete-users-by-status.command.d.ts.map +1 -1
- package/build/backend/commands/users/bulk/bulk-delete-users.command.d.ts +2 -6
- package/build/backend/commands/users/bulk/bulk-delete-users.command.d.ts.map +1 -1
- package/build/backend/commands/users/bulk/bulk-delete-users.command.js +1 -4
- package/build/backend/commands/users/bulk/bulk-extend-expiration-date.command.d.ts +3 -9
- package/build/backend/commands/users/bulk/bulk-extend-expiration-date.command.d.ts.map +1 -1
- package/build/backend/commands/users/bulk/bulk-extend-expiration-date.command.js +2 -9
- package/build/backend/commands/users/bulk/bulk-reset-traffic-users.command.d.ts +2 -6
- package/build/backend/commands/users/bulk/bulk-reset-traffic-users.command.d.ts.map +1 -1
- package/build/backend/commands/users/bulk/bulk-reset-traffic-users.command.js +1 -4
- package/build/backend/commands/users/bulk/bulk-revoke-users-subscription.command.d.ts +2 -6
- package/build/backend/commands/users/bulk/bulk-revoke-users-subscription.command.d.ts.map +1 -1
- package/build/backend/commands/users/bulk/bulk-revoke-users-subscription.command.js +1 -4
- package/build/backend/commands/users/bulk/bulk-update-users-squads.command.d.ts +3 -9
- package/build/backend/commands/users/bulk/bulk-update-users-squads.command.d.ts.map +1 -1
- package/build/backend/commands/users/bulk/bulk-update-users-squads.command.js +2 -7
- package/build/backend/commands/users/bulk/bulk-update-users.command.d.ts +10 -60
- package/build/backend/commands/users/bulk/bulk-update-users.command.d.ts.map +1 -1
- package/build/backend/commands/users/bulk/bulk-update-users.command.js +11 -26
- package/build/backend/commands/users/bulk-all/bulk-all-extend-expiration-date.command.d.ts +2 -6
- package/build/backend/commands/users/bulk-all/bulk-all-extend-expiration-date.command.d.ts.map +1 -1
- package/build/backend/commands/users/bulk-all/bulk-all-extend-expiration-date.command.js +1 -1
- package/build/backend/commands/users/bulk-all/bulk-all-update-users.command.d.ts +7 -27
- package/build/backend/commands/users/bulk-all/bulk-all-update-users.command.d.ts.map +1 -1
- package/build/backend/commands/users/bulk-all/bulk-all-update-users.command.js +10 -21
- package/build/backend/commands/users/create-user.command.d.ts +38 -241
- package/build/backend/commands/users/create-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/create-user.command.js +25 -63
- package/build/backend/commands/users/delete-user.command.d.ts +2 -6
- package/build/backend/commands/users/delete-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/delete-user.command.js +1 -1
- package/build/backend/commands/users/get-by/get-user-by-id.command.d.ts +26 -193
- package/build/backend/commands/users/get-by/get-user-by-id.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-by/get-user-by-id.command.js +1 -1
- package/build/backend/commands/users/get-by/get-user-by-short-uuid.command.d.ts +25 -192
- package/build/backend/commands/users/get-by/get-user-by-short-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-by/get-user-by-username.command.d.ts +25 -192
- package/build/backend/commands/users/get-by/get-user-by-username.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-user-accessible-nodes.command.d.ts +10 -96
- package/build/backend/commands/users/get-user-accessible-nodes.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-user-accessible-nodes.command.js +4 -4
- package/build/backend/commands/users/get-user-by-uuid.command.d.ts +26 -193
- package/build/backend/commands/users/get-user-by-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-user-by-uuid.command.js +1 -1
- package/build/backend/commands/users/get-user-subscription-request-history.command.d.ts +6 -62
- package/build/backend/commands/users/get-user-subscription-request-history.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-user-subscription-request-history.command.js +2 -4
- package/build/backend/commands/users/get-users-stream.command.d.ts +33 -300
- package/build/backend/commands/users/get-users-stream.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-users-stream.command.js +10 -11
- package/build/backend/commands/users/get-users.command.d.ts +33 -316
- package/build/backend/commands/users/get-users.command.d.ts.map +1 -1
- package/build/backend/commands/users/resolve-user.command.d.ts +6 -50
- package/build/backend/commands/users/resolve-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/resolve-user.command.js +3 -3
- package/build/backend/commands/users/tags/get-users-tags.command.d.ts +3 -15
- package/build/backend/commands/users/tags/get-users-tags.command.d.ts.map +1 -1
- package/build/backend/commands/users/update-user.command.d.ts +38 -254
- package/build/backend/commands/users/update-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/update-user.command.js +14 -39
- package/build/backend/commands/users/user.response.d.ts +24 -187
- package/build/backend/commands/users/user.response.d.ts.map +1 -1
- package/build/backend/models/api-tokens.schema.d.ts +6 -20
- package/build/backend/models/api-tokens.schema.d.ts.map +1 -1
- package/build/backend/models/api-tokens.schema.js +4 -10
- package/build/backend/models/auth.schema.d.ts +1 -5
- package/build/backend/models/auth.schema.d.ts.map +1 -1
- package/build/backend/models/base-internal-squad.schema.d.ts +2 -8
- package/build/backend/models/base-internal-squad.schema.d.ts.map +1 -1
- package/build/backend/models/base-internal-squad.schema.js +1 -1
- package/build/backend/models/base-stat.schema.d.ts +1 -9
- package/build/backend/models/base-stat.schema.d.ts.map +1 -1
- package/build/backend/models/config-profile-inbounds.schema.d.ts +3 -21
- package/build/backend/models/config-profile-inbounds.schema.d.ts.map +1 -1
- package/build/backend/models/config-profile-inbounds.schema.js +2 -2
- package/build/backend/models/config-profile.schema.d.ts +10 -80
- package/build/backend/models/config-profile.schema.d.ts.map +1 -1
- package/build/backend/models/config-profile.schema.js +5 -9
- package/build/backend/models/extended-users.schema.d.ts +23 -112
- package/build/backend/models/extended-users.schema.d.ts.map +1 -1
- package/build/backend/models/external-squad.schema.d.ts +22 -166
- package/build/backend/models/external-squad.schema.d.ts.map +1 -1
- package/build/backend/models/external-squad.schema.js +7 -11
- package/build/backend/models/external-squads/external-squad-host-overrides.schema.d.ts +2 -8
- package/build/backend/models/external-squads/external-squad-host-overrides.schema.d.ts.map +1 -1
- package/build/backend/models/external-squads/external-squad-subscription-settings.schema.d.ts +2 -22
- package/build/backend/models/external-squads/external-squad-subscription-settings.schema.d.ts.map +1 -1
- package/build/backend/models/hosts.schema.d.ts +17 -95
- package/build/backend/models/hosts.schema.d.ts.map +1 -1
- package/build/backend/models/hosts.schema.js +13 -13
- package/build/backend/models/hwid-user-device.schema.d.ts +3 -23
- package/build/backend/models/hwid-user-device.schema.d.ts.map +1 -1
- package/build/backend/models/hwid-user-device.schema.js +2 -6
- package/build/backend/models/infra-billing-available-node.schema.d.ts +3 -259
- package/build/backend/models/infra-billing-available-node.schema.d.ts.map +1 -1
- package/build/backend/models/infra-billing-history-record.schema.d.ts +7 -38
- package/build/backend/models/infra-billing-history-record.schema.d.ts.map +1 -1
- package/build/backend/models/infra-billing-history-record.schema.js +3 -5
- package/build/backend/models/infra-billing-node.schema.d.ts +13 -319
- package/build/backend/models/infra-billing-node.schema.d.ts.map +1 -1
- package/build/backend/models/infra-billing-node.schema.js +6 -12
- package/build/backend/models/infra-provider.schema.d.ts +12 -86
- package/build/backend/models/infra-provider.schema.d.ts.map +1 -1
- package/build/backend/models/infra-provider.schema.js +7 -15
- package/build/backend/models/internal-squad.schema.d.ts +9 -73
- package/build/backend/models/internal-squad.schema.d.ts.map +1 -1
- package/build/backend/models/internal-squad.schema.js +4 -8
- package/build/backend/models/last-connected-node.schema.d.ts +2 -10
- package/build/backend/models/last-connected-node.schema.d.ts.map +1 -1
- package/build/backend/models/last-connected-node.schema.js +1 -3
- package/build/backend/models/node-plugin.schema.d.ts +1 -11
- package/build/backend/models/node-plugin.schema.d.ts.map +1 -1
- package/build/backend/models/node-system.schema.d.ts +14 -194
- package/build/backend/models/node-system.schema.d.ts.map +1 -1
- package/build/backend/models/node-system.schema.js +1 -1
- package/build/backend/models/nodes.schema.d.ts +29 -361
- package/build/backend/models/nodes.schema.d.ts.map +1 -1
- package/build/backend/models/nodes.schema.js +11 -17
- package/build/backend/models/remnawave-settings/branding-settings.schema.d.ts +1 -7
- package/build/backend/models/remnawave-settings/branding-settings.schema.d.ts.map +1 -1
- package/build/backend/models/remnawave-settings/oauth2-settings.schema.d.ts +18 -188
- package/build/backend/models/remnawave-settings/oauth2-settings.schema.d.ts.map +1 -1
- package/build/backend/models/remnawave-settings/passkey-settings.schema.d.ts +3 -11
- package/build/backend/models/remnawave-settings/passkey-settings.schema.d.ts.map +1 -1
- package/build/backend/models/remnawave-settings/password-auth-settings.schema.d.ts +1 -5
- package/build/backend/models/remnawave-settings/password-auth-settings.schema.d.ts.map +1 -1
- package/build/backend/models/remnawave-settings/remnawave-settings.schema.d.ts +24 -332
- package/build/backend/models/remnawave-settings/remnawave-settings.schema.d.ts.map +1 -1
- package/build/backend/models/resolved-proxy-config.schema.d.ts +168 -1224
- package/build/backend/models/resolved-proxy-config.schema.d.ts.map +1 -1
- package/build/backend/models/resolved-proxy-config.schema.js +18 -18
- package/build/backend/models/response-rules/response-rule-condition.schema.d.ts +2 -12
- package/build/backend/models/response-rules/response-rule-condition.schema.d.ts.map +1 -1
- package/build/backend/models/response-rules/response-rule-condition.schema.js +1 -1
- package/build/backend/models/response-rules/response-rule-modifications.schema.d.ts +14 -58
- package/build/backend/models/response-rules/response-rule-modifications.schema.d.ts.map +1 -1
- package/build/backend/models/response-rules/response-rule-settings.schema.d.ts +1 -5
- package/build/backend/models/response-rules/response-rule-settings.schema.d.ts.map +1 -1
- package/build/backend/models/response-rules/response-rule.schema.d.ts +28 -246
- package/build/backend/models/response-rules/response-rule.schema.d.ts.map +1 -1
- package/build/backend/models/response-rules/response-rule.schema.js +2 -2
- package/build/backend/models/response-rules/response-rules-config.schema.d.ts +17 -200
- package/build/backend/models/response-rules/response-rules-config.schema.d.ts.map +1 -1
- package/build/backend/models/response-rules/response-rules-config.schema.js +1 -1
- package/build/backend/models/snippets.schema.d.ts +1 -7
- package/build/backend/models/snippets.schema.d.ts.map +1 -1
- package/build/backend/models/subscripion-page-config.schema.d.ts +1 -11
- package/build/backend/models/subscripion-page-config.schema.d.ts.map +1 -1
- package/build/backend/models/subscription-info.schema.d.ts +6 -74
- package/build/backend/models/subscription-info.schema.d.ts.map +1 -1
- package/build/backend/models/subscription-info.schema.js +3 -5
- package/build/backend/models/subscription-request-history.schema.d.ts +2 -14
- package/build/backend/models/subscription-request-history.schema.d.ts.map +1 -1
- package/build/backend/models/subscription-request-history.schema.js +1 -4
- package/build/backend/models/subscription-settings/custom-remarks.schema.d.ts +7 -21
- package/build/backend/models/subscription-settings/custom-remarks.schema.d.ts.map +1 -1
- package/build/backend/models/subscription-settings/hwid-settings.schema.d.ts +1 -9
- package/build/backend/models/subscription-settings/hwid-settings.schema.d.ts.map +1 -1
- package/build/backend/models/subscription-settings.schema.d.ts +30 -361
- package/build/backend/models/subscription-settings.schema.d.ts.map +1 -1
- package/build/backend/models/subscription-settings.schema.js +4 -13
- package/build/backend/models/subscription-template.schema.d.ts +2 -16
- package/build/backend/models/subscription-template.schema.d.ts.map +1 -1
- package/build/backend/models/tanstack-query/tanstask-query-filter.schema.d.ts +1 -7
- package/build/backend/models/tanstack-query/tanstask-query-filter.schema.d.ts.map +1 -1
- package/build/backend/models/tanstack-query/tanstask-query-request-query.schema.d.ts +8 -46
- package/build/backend/models/tanstack-query/tanstask-query-request-query.schema.d.ts.map +1 -1
- package/build/backend/models/tanstack-query/tanstask-query-sorting.schema.d.ts +1 -7
- package/build/backend/models/tanstack-query/tanstask-query-sorting.schema.d.ts.map +1 -1
- package/build/backend/models/torrent-blocker-report.schema.d.ts +13 -505
- package/build/backend/models/torrent-blocker-report.schema.d.ts.map +1 -1
- package/build/backend/models/torrent-blocker-report.schema.js +3 -8
- package/build/backend/models/user-traffic.schema.d.ts +4 -16
- package/build/backend/models/user-traffic.schema.d.ts.map +1 -1
- package/build/backend/models/user-traffic.schema.js +3 -9
- package/build/backend/models/users.schema.d.ts +17 -63
- package/build/backend/models/users.schema.d.ts.map +1 -1
- package/build/backend/models/users.schema.js +14 -33
- package/build/backend/models/webhook/webhook.schema.d.ts +437 -4841
- package/build/backend/models/webhook/webhook.schema.d.ts.map +1 -1
- package/build/backend/models/xray-json-advanced/remnawave-injector.schema.d.ts +31 -197
- package/build/backend/models/xray-json-advanced/remnawave-injector.schema.d.ts.map +1 -1
- package/build/frontend/api/controllers/connections.js +16 -0
- package/build/frontend/api/controllers/index.js +1 -1
- package/build/frontend/api/controllers-info.js +4 -4
- package/build/frontend/api/routes.js +6 -6
- package/build/frontend/commands/api-tokens/delete.command.js +1 -1
- package/build/frontend/commands/auth/get-status.command.js +1 -1
- package/build/frontend/commands/auth/oauth2/authorize.command.js +2 -2
- package/build/frontend/commands/auth/oauth2/callback.command.js +1 -1
- package/build/frontend/commands/bandwidth-stats/legacy/get-legacy-stats-node-user-usage.command.js +5 -5
- package/build/frontend/commands/bandwidth-stats/legacy/get-legacy-user-usage.command.js +5 -5
- package/build/frontend/commands/bandwidth-stats/nodes/get-stats-node-users-usage.command.js +3 -3
- package/build/frontend/commands/bandwidth-stats/nodes/get-stats-nodes-usage.command.js +4 -4
- package/build/frontend/commands/bandwidth-stats/nodes/get-stats-nodes-users-usage.command.js +3 -3
- package/build/frontend/commands/bandwidth-stats/users/get-stats-user-usage.command.js +5 -5
- package/build/frontend/commands/config-profiles/create-config-profile.command.js +1 -1
- package/build/frontend/commands/config-profiles/delete-config-profile.command.js +1 -1
- package/build/frontend/commands/config-profiles/get-all-inbounds.command.js +1 -1
- package/build/frontend/commands/config-profiles/get-computed-config-profile-by-uuid.command.js +1 -1
- package/build/frontend/commands/config-profiles/get-config-profile-by-uuid.command.js +1 -1
- package/build/frontend/commands/config-profiles/get-inbounds-by-profile-uuid.command.js +2 -2
- package/build/frontend/commands/config-profiles/update-config-profile.command.js +2 -2
- package/build/frontend/commands/{ip-control/fetch-users-ips-result.command.js → connections/connections-by-node-result.command.js} +11 -12
- package/build/frontend/commands/connections/connections-by-node.command.js +20 -0
- package/build/{backend/commands/ip-control/fetch-ips-result.command.js → frontend/commands/connections/connections-by-user-result.command.js} +12 -13
- package/build/frontend/commands/connections/connections-by-user.command.js +20 -0
- package/build/frontend/commands/{ip-control → connections}/drop-connections.command.js +5 -5
- package/build/frontend/commands/{ip-control → connections}/index.js +4 -4
- package/build/frontend/commands/external-squads/bulk-actions/add-users-to-external-squad.command.js +1 -1
- package/build/frontend/commands/external-squads/bulk-actions/delete-users-from-external-squad.command.js +1 -1
- package/build/frontend/commands/external-squads/delete-external-squad.command.js +1 -1
- package/build/frontend/commands/external-squads/get-external-squad-by-uuid.command.js +1 -1
- package/build/frontend/commands/external-squads/update-external-squad.command.js +8 -8
- package/build/frontend/commands/hosts/bulk/delete-many-hosts.command.js +1 -1
- package/build/frontend/commands/hosts/bulk/disable-many-hosts.command.js +1 -1
- package/build/frontend/commands/hosts/bulk/enable-many-hosts.command.js +1 -1
- package/build/frontend/commands/hosts/bulk/update-many-hosts.command.js +1 -1
- package/build/frontend/commands/hosts/create.command.js +12 -17
- package/build/frontend/commands/hosts/delete.command.js +1 -1
- package/build/frontend/commands/hosts/get-host.command.js +1 -1
- package/build/frontend/commands/hosts/update.command.js +12 -17
- package/build/frontend/commands/hwid/create-user-hwid-device.command.js +1 -1
- package/build/frontend/commands/hwid/delete-all-user-hwid-devices.command.js +1 -1
- package/build/frontend/commands/hwid/delete-user-hwid-device.command.js +1 -1
- package/build/frontend/commands/hwid/get-top-users-by-hwid-devices.command.js +1 -1
- package/build/frontend/commands/hwid/get-user-hwid-devices.command.js +1 -1
- package/build/frontend/commands/index.js +1 -1
- package/build/frontend/commands/infra-billing/create-bill-record.command.js +4 -7
- package/build/frontend/commands/infra-billing/create-billing-node.command.js +4 -7
- package/build/frontend/commands/infra-billing/create-infra-provider.command.js +2 -2
- package/build/frontend/commands/infra-billing/delete-bill-record.command.js +1 -1
- package/build/frontend/commands/infra-billing/delete-billing-node.command.js +1 -1
- package/build/frontend/commands/infra-billing/delete-infra-provider.command.js +1 -1
- package/build/frontend/commands/infra-billing/get-bill-records.command.js +2 -2
- package/build/frontend/commands/infra-billing/get-infra-provider.command.js +1 -1
- package/build/frontend/commands/infra-billing/update-billing-node.command.js +3 -6
- package/build/frontend/commands/infra-billing/update-infra-provider.command.js +4 -8
- package/build/frontend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.js +1 -1
- package/build/frontend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.js +1 -1
- package/build/frontend/commands/internal-squads/create-internal-squad.command.js +3 -3
- package/build/frontend/commands/internal-squads/delete-internal-squad.command.js +1 -1
- package/build/frontend/commands/internal-squads/get-internal-squad-accessible-nodes.command.js +4 -4
- package/build/frontend/commands/internal-squads/get-internal-squad.command.js +1 -1
- package/build/frontend/commands/internal-squads/update-internal-squad.command.js +2 -2
- package/build/frontend/commands/metadata/node/get-node-metadata.command.js +2 -2
- package/build/frontend/commands/metadata/node/upsert-node-metadata.command.js +3 -3
- package/build/frontend/commands/metadata/user/get-user-metadata.command.js +2 -2
- package/build/frontend/commands/metadata/user/upsert-user-metadata.command.js +3 -3
- package/build/frontend/commands/node-plugins/actions/clone-node-plugin.command.js +1 -1
- package/build/frontend/commands/node-plugins/delete-node-plugin.command.js +1 -1
- package/build/frontend/commands/node-plugins/executor.command.js +3 -3
- package/build/frontend/commands/node-plugins/get-node-plugin.command.js +1 -1
- package/build/frontend/commands/node-plugins/torrent-blocker/get-torrent-blocker-reports-stats.command.js +2 -2
- package/build/frontend/commands/node-plugins/update-node-plugin.command.js +1 -1
- package/build/frontend/commands/nodes/actions/disable.command.js +1 -1
- package/build/frontend/commands/nodes/actions/enable.command.js +1 -1
- package/build/frontend/commands/nodes/actions/reset-traffic.command.js +1 -1
- package/build/frontend/commands/nodes/actions/restart.command.js +1 -1
- package/build/frontend/commands/nodes/bulk-actions/actions.command.js +2 -2
- package/build/frontend/commands/nodes/bulk-actions/bulk-update.command.js +9 -9
- package/build/frontend/commands/nodes/bulk-actions/profile-modification.command.js +3 -7
- package/build/frontend/commands/nodes/create.command.js +16 -36
- package/build/frontend/commands/nodes/delete.command.js +1 -1
- package/build/frontend/commands/nodes/get-node.command.js +1 -1
- package/build/frontend/commands/nodes/update.command.js +17 -29
- package/build/frontend/commands/passkeys/get-passkeys.command.js +4 -10
- package/build/frontend/commands/passkeys/update-passkey.command.js +6 -8
- package/build/frontend/commands/snippets/create-snippet.command.js +3 -3
- package/build/frontend/commands/snippets/update-snippet.command.js +3 -3
- package/build/frontend/commands/subscription/get-subscription-by-short-uuid-by-client-type.command.js +2 -2
- package/build/frontend/commands/subscription-page-configs/actions/clone-subpage-config.command.js +1 -1
- package/build/frontend/commands/subscription-page-configs/delete-subpage-config.command.js +1 -1
- package/build/frontend/commands/subscription-page-configs/get-subpage-config.command.js +1 -1
- package/build/frontend/commands/subscription-page-configs/update-subpage-config.command.js +1 -1
- package/build/frontend/commands/subscription-request-history/get-subscription-request-history-stats.command.js +1 -3
- package/build/frontend/commands/subscription-settings/update-subscription-settings.command.js +3 -6
- package/build/frontend/commands/subscription-template/create-template.command.js +3 -3
- package/build/frontend/commands/subscription-template/delete-subscription-template.command.js +1 -1
- package/build/frontend/commands/subscription-template/get-template.command.js +1 -1
- package/build/frontend/commands/subscription-template/update-template.command.js +4 -4
- package/build/frontend/commands/subscriptions/get-by/get-connection-keys-by-uuid.command.js +1 -1
- package/build/frontend/commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.js +1 -1
- package/build/frontend/commands/subscriptions/get-by/get-subscription-by-uuid.command.js +1 -1
- package/build/frontend/commands/subscriptions/get-subscriptions.command.js +5 -8
- package/build/frontend/commands/subscriptions/subpage/get-subpage-config-by-shortuuid.command.js +1 -1
- package/build/frontend/commands/system/get-recap.command.js +1 -3
- package/build/frontend/commands/system/get-stats.command.js +1 -1
- package/build/frontend/commands/system/testers/test-srr-matcher.command.js +1 -1
- package/build/frontend/commands/users/actions/disable-user.command.js +1 -1
- package/build/frontend/commands/users/actions/enable-user.command.js +1 -1
- package/build/frontend/commands/users/actions/reset-user-traffic.command.js +1 -1
- package/build/frontend/commands/users/actions/revoke-user-subscription.command.js +3 -3
- package/build/frontend/commands/users/bulk/bulk-delete-users.command.js +1 -4
- package/build/frontend/commands/users/bulk/bulk-extend-expiration-date.command.js +2 -9
- package/build/frontend/commands/users/bulk/bulk-reset-traffic-users.command.js +1 -4
- package/build/frontend/commands/users/bulk/bulk-revoke-users-subscription.command.js +1 -4
- package/build/frontend/commands/users/bulk/bulk-update-users-squads.command.js +2 -7
- package/build/frontend/commands/users/bulk/bulk-update-users.command.js +11 -26
- package/build/frontend/commands/users/bulk-all/bulk-all-extend-expiration-date.command.js +1 -1
- package/build/frontend/commands/users/bulk-all/bulk-all-update-users.command.js +10 -21
- package/build/frontend/commands/users/create-user.command.js +25 -63
- package/build/frontend/commands/users/delete-user.command.js +1 -1
- package/build/frontend/commands/users/get-by/get-user-by-id.command.js +1 -1
- package/build/frontend/commands/users/get-user-accessible-nodes.command.js +4 -4
- package/build/frontend/commands/users/get-user-by-uuid.command.js +1 -1
- package/build/frontend/commands/users/get-user-subscription-request-history.command.js +2 -4
- package/build/frontend/commands/users/get-users-stream.command.js +10 -11
- package/build/frontend/commands/users/resolve-user.command.js +3 -3
- package/build/frontend/commands/users/update-user.command.js +14 -39
- package/build/frontend/models/api-tokens.schema.js +4 -10
- package/build/frontend/models/base-internal-squad.schema.js +1 -1
- package/build/frontend/models/config-profile-inbounds.schema.js +2 -2
- package/build/frontend/models/config-profile.schema.js +5 -9
- package/build/frontend/models/external-squad.schema.js +7 -11
- package/build/frontend/models/hosts.schema.js +13 -13
- package/build/frontend/models/hwid-user-device.schema.js +2 -6
- package/build/frontend/models/infra-billing-history-record.schema.js +3 -5
- package/build/frontend/models/infra-billing-node.schema.js +6 -12
- package/build/frontend/models/infra-provider.schema.js +7 -15
- package/build/frontend/models/internal-squad.schema.js +4 -8
- package/build/frontend/models/last-connected-node.schema.js +1 -3
- package/build/frontend/models/node-system.schema.js +1 -1
- package/build/frontend/models/nodes.schema.js +11 -17
- package/build/frontend/models/resolved-proxy-config.schema.js +18 -18
- package/build/frontend/models/response-rules/response-rule-condition.schema.js +1 -1
- package/build/frontend/models/response-rules/response-rule.schema.js +2 -2
- package/build/frontend/models/response-rules/response-rules-config.schema.js +1 -1
- package/build/frontend/models/subscription-info.schema.js +3 -5
- package/build/frontend/models/subscription-request-history.schema.js +1 -4
- package/build/frontend/models/subscription-settings.schema.js +4 -13
- package/build/frontend/models/torrent-blocker-report.schema.js +3 -8
- package/build/frontend/models/user-traffic.schema.js +3 -9
- package/build/frontend/models/users.schema.js +14 -33
- package/package.json +2 -2
- package/build/backend/api/controllers/ip-control.d.ts +0 -9
- package/build/backend/api/controllers/ip-control.d.ts.map +0 -1
- package/build/backend/api/controllers/ip-control.js +0 -16
- package/build/backend/commands/ip-control/drop-connections.command.d.ts +0 -108
- package/build/backend/commands/ip-control/drop-connections.command.d.ts.map +0 -1
- package/build/backend/commands/ip-control/fetch-ips-result.command.d.ts +0 -189
- package/build/backend/commands/ip-control/fetch-ips-result.command.d.ts.map +0 -1
- package/build/backend/commands/ip-control/fetch-ips.command.d.ts +0 -33
- package/build/backend/commands/ip-control/fetch-ips.command.d.ts.map +0 -1
- package/build/backend/commands/ip-control/fetch-ips.command.js +0 -20
- package/build/backend/commands/ip-control/fetch-users-ips-result.command.d.ts +0 -131
- package/build/backend/commands/ip-control/fetch-users-ips-result.command.d.ts.map +0 -1
- package/build/backend/commands/ip-control/fetch-users-ips.command.d.ts +0 -33
- package/build/backend/commands/ip-control/fetch-users-ips.command.d.ts.map +0 -1
- package/build/backend/commands/ip-control/fetch-users-ips.command.js +0 -20
- package/build/backend/commands/ip-control/index.d.ts +0 -6
- package/build/backend/commands/ip-control/index.d.ts.map +0 -1
- package/build/frontend/api/controllers/ip-control.js +0 -16
- package/build/frontend/commands/ip-control/fetch-ips.command.js +0 -20
- 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
|
|
17
|
-
.max(255
|
|
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.
|
|
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
|
|
17
|
-
.max(255
|
|
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.
|
|
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.
|
|
14
|
-
|
|
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 = {}));
|
package/build/frontend/commands/subscription-page-configs/actions/clone-subpage-config.command.js
CHANGED
|
@@ -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.
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
})),
|
package/build/frontend/commands/subscription-settings/update-subscription-settings.command.js
CHANGED
|
@@ -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.
|
|
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.
|
|
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
|
|
17
|
-
.max(255
|
|
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.
|
|
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,
|
package/build/frontend/commands/subscription-template/delete-subscription-template.command.js
CHANGED
|
@@ -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.
|
|
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.
|
|
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.
|
|
14
|
+
uuid: zod_1.z.uuid(),
|
|
15
15
|
name: zod_1.z
|
|
16
16
|
.string()
|
|
17
|
-
.min(2
|
|
18
|
-
.max(255
|
|
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.
|
|
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.
|
|
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({
|
package/build/frontend/commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.js
CHANGED
|
@@ -18,7 +18,7 @@ var GetRawSubscriptionByShortUuidCommand;
|
|
|
18
18
|
.string()
|
|
19
19
|
.transform((str) => str === 'true')
|
|
20
20
|
.optional()
|
|
21
|
-
.
|
|
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.
|
|
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
|
|
20
|
-
.max(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.
|
|
44
|
-
trafficLimitStrategy: zod_1.z.
|
|
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()),
|
package/build/frontend/commands/subscriptions/subpage/get-subpage-config-by-shortuuid.command.js
CHANGED
|
@@ -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.
|
|
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(
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
|
24
|
-
.max(48
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
23
|
-
|
|
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
|
-
|
|
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.
|
|
41
|
-
telegramId: zod_1.z.
|
|
42
|
-
email: zod_1.z.
|
|
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.
|
|
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.
|
|
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:
|
|
16
|
-
trafficLimitBytes: zod_1.z.optional(zod_1.z
|
|
17
|
-
|
|
18
|
-
|
|
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
|
-
|
|
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.
|
|
36
|
-
telegramId: zod_1.z.
|
|
37
|
-
email: zod_1.z.
|
|
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.
|
|
32
|
+
hwidDeviceLimit: zod_1.z.int().min(0).nullish(),
|
|
44
33
|
});
|
|
45
34
|
})(BulkAllUpdateUsersCommand || (exports.BulkAllUpdateUsersCommand = BulkAllUpdateUsersCommand = {}));
|