@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
|
@@ -1,31 +1,30 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.ConnectionsByNodeResultCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const api_1 = require("../../api");
|
|
6
6
|
const constants_1 = require("../../constants");
|
|
7
|
-
var
|
|
8
|
-
(function (
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
var ConnectionsByNodeResultCommand;
|
|
8
|
+
(function (ConnectionsByNodeResultCommand) {
|
|
9
|
+
ConnectionsByNodeResultCommand.url = api_1.REST_API.CONNECTIONS.CONNECTIONS_BY_NODE_RESULT;
|
|
10
|
+
ConnectionsByNodeResultCommand.TSQ_url = ConnectionsByNodeResultCommand.url(':jobId');
|
|
11
|
+
ConnectionsByNodeResultCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.CONNECTIONS_ROUTES.CONNECTIONS_BY_NODE_RESULT(':jobId'), 'get', 'Get Connections for Node by Job ID', { scope: 'by-node-result', kind: 'read' });
|
|
12
|
+
ConnectionsByNodeResultCommand.RequestParamSchema = zod_1.z.object({
|
|
13
13
|
jobId: zod_1.z.string(),
|
|
14
14
|
});
|
|
15
|
-
|
|
15
|
+
ConnectionsByNodeResultCommand.ResponseSchema = zod_1.z.object({
|
|
16
16
|
response: zod_1.z.object({
|
|
17
17
|
isCompleted: zod_1.z.boolean(),
|
|
18
18
|
isFailed: zod_1.z.boolean(),
|
|
19
19
|
result: zod_1.z
|
|
20
20
|
.object({
|
|
21
21
|
success: zod_1.z.boolean(),
|
|
22
|
-
nodeUuid: zod_1.z.
|
|
22
|
+
nodeUuid: zod_1.z.uuid(),
|
|
23
23
|
users: zod_1.z.array(zod_1.z.object({
|
|
24
24
|
userId: zod_1.z.string(),
|
|
25
25
|
ips: zod_1.z.array(zod_1.z.object({
|
|
26
26
|
ip: zod_1.z.string(),
|
|
27
|
-
lastSeen: zod_1.z
|
|
28
|
-
.string()
|
|
27
|
+
lastSeen: zod_1.z.iso
|
|
29
28
|
.datetime({
|
|
30
29
|
local: true,
|
|
31
30
|
offset: true,
|
|
@@ -37,4 +36,4 @@ var FetchUsersIpsResultCommand;
|
|
|
37
36
|
.nullable(),
|
|
38
37
|
}),
|
|
39
38
|
});
|
|
40
|
-
})(
|
|
39
|
+
})(ConnectionsByNodeResultCommand || (exports.ConnectionsByNodeResultCommand = ConnectionsByNodeResultCommand = {}));
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConnectionsByNodeCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const api_1 = require("../../api");
|
|
6
|
+
const constants_1 = require("../../constants");
|
|
7
|
+
var ConnectionsByNodeCommand;
|
|
8
|
+
(function (ConnectionsByNodeCommand) {
|
|
9
|
+
ConnectionsByNodeCommand.url = api_1.REST_API.CONNECTIONS.CONNECTIONS_BY_NODE;
|
|
10
|
+
ConnectionsByNodeCommand.TSQ_url = ConnectionsByNodeCommand.url(':nodeUuid');
|
|
11
|
+
ConnectionsByNodeCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.CONNECTIONS_ROUTES.CONNECTIONS_BY_NODE(':nodeUuid'), 'post', 'Request Connections for Node', { scope: 'by-node', kind: 'read' });
|
|
12
|
+
ConnectionsByNodeCommand.RequestParamSchema = zod_1.z.object({
|
|
13
|
+
nodeUuid: zod_1.z.uuid().describe('Node UUID'),
|
|
14
|
+
});
|
|
15
|
+
ConnectionsByNodeCommand.ResponseSchema = zod_1.z.object({
|
|
16
|
+
response: zod_1.z.object({
|
|
17
|
+
jobId: zod_1.z.string(),
|
|
18
|
+
}),
|
|
19
|
+
});
|
|
20
|
+
})(ConnectionsByNodeCommand || (exports.ConnectionsByNodeCommand = ConnectionsByNodeCommand = {}));
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.ConnectionsByUserResultCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const api_1 = require("../../api");
|
|
6
6
|
const constants_1 = require("../../constants");
|
|
7
|
-
var
|
|
8
|
-
(function (
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
var ConnectionsByUserResultCommand;
|
|
8
|
+
(function (ConnectionsByUserResultCommand) {
|
|
9
|
+
ConnectionsByUserResultCommand.url = api_1.REST_API.CONNECTIONS.CONNECTIONS_BY_USER_RESULT;
|
|
10
|
+
ConnectionsByUserResultCommand.TSQ_url = ConnectionsByUserResultCommand.url(':jobId');
|
|
11
|
+
ConnectionsByUserResultCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.CONNECTIONS_ROUTES.CONNECTIONS_BY_USER_RESULT(':jobId'), 'get', 'Get Connections for User by Job ID', { scope: 'by-user-result', kind: 'read' });
|
|
12
|
+
ConnectionsByUserResultCommand.RequestParamSchema = zod_1.z.object({
|
|
13
13
|
jobId: zod_1.z.string(),
|
|
14
14
|
});
|
|
15
|
-
|
|
15
|
+
ConnectionsByUserResultCommand.ResponseSchema = zod_1.z.object({
|
|
16
16
|
response: zod_1.z.object({
|
|
17
17
|
isCompleted: zod_1.z.boolean(),
|
|
18
18
|
isFailed: zod_1.z.boolean(),
|
|
@@ -24,16 +24,15 @@ var FetchIpsResultCommand;
|
|
|
24
24
|
result: zod_1.z
|
|
25
25
|
.object({
|
|
26
26
|
success: zod_1.z.boolean(),
|
|
27
|
-
userUuid: zod_1.z.
|
|
27
|
+
userUuid: zod_1.z.uuid(),
|
|
28
28
|
userId: zod_1.z.string(),
|
|
29
29
|
nodes: zod_1.z.array(zod_1.z.object({
|
|
30
|
-
nodeUuid: zod_1.z.
|
|
30
|
+
nodeUuid: zod_1.z.uuid(),
|
|
31
31
|
nodeName: zod_1.z.string(),
|
|
32
32
|
countryCode: zod_1.z.string(),
|
|
33
33
|
ips: zod_1.z.array(zod_1.z.object({
|
|
34
34
|
ip: zod_1.z.string(),
|
|
35
|
-
lastSeen: zod_1.z
|
|
36
|
-
.string()
|
|
35
|
+
lastSeen: zod_1.z.iso
|
|
37
36
|
.datetime({
|
|
38
37
|
local: true,
|
|
39
38
|
offset: true,
|
|
@@ -45,4 +44,4 @@ var FetchIpsResultCommand;
|
|
|
45
44
|
.nullable(),
|
|
46
45
|
}),
|
|
47
46
|
});
|
|
48
|
-
})(
|
|
47
|
+
})(ConnectionsByUserResultCommand || (exports.ConnectionsByUserResultCommand = ConnectionsByUserResultCommand = {}));
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConnectionsByUserCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const api_1 = require("../../api");
|
|
6
|
+
const constants_1 = require("../../constants");
|
|
7
|
+
var ConnectionsByUserCommand;
|
|
8
|
+
(function (ConnectionsByUserCommand) {
|
|
9
|
+
ConnectionsByUserCommand.url = api_1.REST_API.CONNECTIONS.CONNECTIONS_BY_USER;
|
|
10
|
+
ConnectionsByUserCommand.TSQ_url = ConnectionsByUserCommand.url(':uuid');
|
|
11
|
+
ConnectionsByUserCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.CONNECTIONS_ROUTES.CONNECTIONS_BY_USER(':uuid'), 'post', 'Request Connections for User', { scope: 'by-user', kind: 'read' });
|
|
12
|
+
ConnectionsByUserCommand.RequestParamSchema = zod_1.z.object({
|
|
13
|
+
uuid: zod_1.z.uuid().describe('User UUID'),
|
|
14
|
+
});
|
|
15
|
+
ConnectionsByUserCommand.ResponseSchema = zod_1.z.object({
|
|
16
|
+
response: zod_1.z.object({
|
|
17
|
+
jobId: zod_1.z.string(),
|
|
18
|
+
}),
|
|
19
|
+
});
|
|
20
|
+
})(ConnectionsByUserCommand || (exports.ConnectionsByUserCommand = ConnectionsByUserCommand = {}));
|
|
@@ -6,20 +6,20 @@ const api_1 = require("../../api");
|
|
|
6
6
|
const constants_1 = require("../../constants");
|
|
7
7
|
var DropConnectionsCommand;
|
|
8
8
|
(function (DropConnectionsCommand) {
|
|
9
|
-
DropConnectionsCommand.url = api_1.REST_API.
|
|
9
|
+
DropConnectionsCommand.url = api_1.REST_API.CONNECTIONS.DROP_CONNECTIONS;
|
|
10
10
|
DropConnectionsCommand.TSQ_url = DropConnectionsCommand.url;
|
|
11
|
-
DropConnectionsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.
|
|
11
|
+
DropConnectionsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.CONNECTIONS_ROUTES.DROP_CONNECTIONS, 'post', 'Drop Connections for Users or IPs', { scope: 'drop', kind: 'write' });
|
|
12
12
|
DropConnectionsCommand.DropBySchema = zod_1.z.discriminatedUnion('by', [
|
|
13
13
|
zod_1.z
|
|
14
14
|
.object({
|
|
15
15
|
by: zod_1.z.literal('userUuids'),
|
|
16
|
-
userUuids: zod_1.z.array(zod_1.z.
|
|
16
|
+
userUuids: zod_1.z.array(zod_1.z.uuid()).min(1),
|
|
17
17
|
})
|
|
18
18
|
.describe('Drop by user UUIDs'),
|
|
19
19
|
zod_1.z
|
|
20
20
|
.object({
|
|
21
21
|
by: zod_1.z.literal('ipAddresses'),
|
|
22
|
-
ipAddresses: zod_1.z.array(zod_1.z.
|
|
22
|
+
ipAddresses: zod_1.z.array(zod_1.z.union([zod_1.z.ipv4(), zod_1.z.ipv6()])).min(1),
|
|
23
23
|
})
|
|
24
24
|
.describe('Drop by IP addresses'),
|
|
25
25
|
]);
|
|
@@ -32,7 +32,7 @@ var DropConnectionsCommand;
|
|
|
32
32
|
zod_1.z
|
|
33
33
|
.object({
|
|
34
34
|
target: zod_1.z.literal('specificNodes'),
|
|
35
|
-
nodeUuids: zod_1.z.array(zod_1.z.
|
|
35
|
+
nodeUuids: zod_1.z.array(zod_1.z.uuid()).min(1),
|
|
36
36
|
})
|
|
37
37
|
.describe('Target specific nodes'),
|
|
38
38
|
]);
|
|
@@ -15,7 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./drop-connections.command"), exports);
|
|
18
|
-
__exportStar(require("./
|
|
19
|
-
__exportStar(require("./
|
|
20
|
-
__exportStar(require("./
|
|
21
|
-
__exportStar(require("./
|
|
18
|
+
__exportStar(require("./connections-by-user-result.command"), exports);
|
|
19
|
+
__exportStar(require("./connections-by-user.command"), exports);
|
|
20
|
+
__exportStar(require("./connections-by-node-result.command"), exports);
|
|
21
|
+
__exportStar(require("./connections-by-node.command"), exports);
|
package/build/frontend/commands/external-squads/bulk-actions/add-users-to-external-squad.command.js
CHANGED
|
@@ -10,6 +10,6 @@ var AddUsersToExternalSquadCommand;
|
|
|
10
10
|
AddUsersToExternalSquadCommand.TSQ_url = AddUsersToExternalSquadCommand.url(':uuid');
|
|
11
11
|
AddUsersToExternalSquadCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.EXTERNAL_SQUADS_ROUTES.BULK_ACTIONS.ADD_USERS(':uuid'), 'post', 'Add all users to external squad', { scope: 'add-users', kind: 'write' });
|
|
12
12
|
AddUsersToExternalSquadCommand.RequestParamSchema = zod_1.z.object({
|
|
13
|
-
uuid: zod_1.z.
|
|
13
|
+
uuid: zod_1.z.uuid().describe('UUID of the external squad'),
|
|
14
14
|
});
|
|
15
15
|
})(AddUsersToExternalSquadCommand || (exports.AddUsersToExternalSquadCommand = AddUsersToExternalSquadCommand = {}));
|
|
@@ -10,6 +10,6 @@ var DeleteUsersFromExternalSquadCommand;
|
|
|
10
10
|
DeleteUsersFromExternalSquadCommand.TSQ_url = DeleteUsersFromExternalSquadCommand.url(':uuid');
|
|
11
11
|
DeleteUsersFromExternalSquadCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.EXTERNAL_SQUADS_ROUTES.BULK_ACTIONS.REMOVE_USERS(':uuid'), 'delete', 'Delete users from external squad', { scope: 'remove-users', kind: 'write' });
|
|
12
12
|
DeleteUsersFromExternalSquadCommand.RequestParamSchema = zod_1.z.object({
|
|
13
|
-
uuid: zod_1.z.
|
|
13
|
+
uuid: zod_1.z.uuid().describe('UUID of the external squad'),
|
|
14
14
|
});
|
|
15
15
|
})(DeleteUsersFromExternalSquadCommand || (exports.DeleteUsersFromExternalSquadCommand = DeleteUsersFromExternalSquadCommand = {}));
|
|
@@ -10,6 +10,6 @@ var DeleteExternalSquadCommand;
|
|
|
10
10
|
DeleteExternalSquadCommand.TSQ_url = DeleteExternalSquadCommand.url(':uuid');
|
|
11
11
|
DeleteExternalSquadCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.EXTERNAL_SQUADS_ROUTES.DELETE(':uuid'), 'delete', 'Delete external squad', { scope: 'delete', kind: 'write' });
|
|
12
12
|
DeleteExternalSquadCommand.RequestParamSchema = zod_1.z.object({
|
|
13
|
-
uuid: zod_1.z.
|
|
13
|
+
uuid: zod_1.z.uuid().describe('UUID of the external squad'),
|
|
14
14
|
});
|
|
15
15
|
})(DeleteExternalSquadCommand || (exports.DeleteExternalSquadCommand = DeleteExternalSquadCommand = {}));
|
|
@@ -11,7 +11,7 @@ var GetExternalSquadByUuidCommand;
|
|
|
11
11
|
GetExternalSquadByUuidCommand.TSQ_url = GetExternalSquadByUuidCommand.url(':uuid');
|
|
12
12
|
GetExternalSquadByUuidCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.EXTERNAL_SQUADS_ROUTES.GET_BY_UUID(':uuid'), 'get', 'Get external squad by uuid', { scope: 'get', kind: 'read' });
|
|
13
13
|
GetExternalSquadByUuidCommand.RequestParamSchema = zod_1.z.object({
|
|
14
|
-
uuid: zod_1.z.
|
|
14
|
+
uuid: zod_1.z.uuid().describe('UUID of the external squad'),
|
|
15
15
|
});
|
|
16
16
|
GetExternalSquadByUuidCommand.ResponseSchema = zod_1.z.object({
|
|
17
17
|
response: models_1.ExternalSquadSchema,
|
|
@@ -11,27 +11,27 @@ var UpdateExternalSquadCommand;
|
|
|
11
11
|
UpdateExternalSquadCommand.TSQ_url = UpdateExternalSquadCommand.url;
|
|
12
12
|
UpdateExternalSquadCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.EXTERNAL_SQUADS_ROUTES.UPDATE, 'patch', 'Update external squad', { scope: 'update', kind: 'write' });
|
|
13
13
|
UpdateExternalSquadCommand.RequestBodySchema = zod_1.z.object({
|
|
14
|
-
uuid: zod_1.z.
|
|
14
|
+
uuid: zod_1.z.uuid().describe('UUID of the external squad'),
|
|
15
15
|
name: zod_1.z
|
|
16
16
|
.string()
|
|
17
|
-
.min(2
|
|
18
|
-
.max(30
|
|
17
|
+
.min(2)
|
|
18
|
+
.max(30)
|
|
19
19
|
.regex(/^[A-Za-z0-9_\s-]+$/, 'Name can only contain letters, numbers, underscores, dashes and spaces')
|
|
20
20
|
.optional(),
|
|
21
21
|
templates: zod_1.z
|
|
22
22
|
.array(zod_1.z.object({
|
|
23
|
-
templateUuid: zod_1.z.
|
|
23
|
+
templateUuid: zod_1.z.uuid().describe('UUID of the subscription template'),
|
|
24
24
|
templateType: zod_1.z
|
|
25
|
-
.
|
|
25
|
+
.enum(constants_1.SUBSCRIPTION_TEMPLATE_TYPE)
|
|
26
26
|
.describe('Type of the subscription template'),
|
|
27
27
|
}))
|
|
28
28
|
.optional(),
|
|
29
29
|
subscriptionSettings: models_1.ExternalSquadSubscriptionSettingsSchema.optional(),
|
|
30
30
|
hostOverrides: models_1.ExternalSquadHostOverridesSchema.optional(),
|
|
31
31
|
responseHeaders: models_1.ExternalSquadResponseHeadersSchema.optional(),
|
|
32
|
-
hwidSettings:
|
|
33
|
-
customRemarks:
|
|
34
|
-
subpageConfigUuid: zod_1.z.
|
|
32
|
+
hwidSettings: models_1.HwidSettingsSchema.nullish(),
|
|
33
|
+
customRemarks: models_1.CustomRemarksSchema.nullish(),
|
|
34
|
+
subpageConfigUuid: zod_1.z.uuid().nullish(),
|
|
35
35
|
});
|
|
36
36
|
UpdateExternalSquadCommand.ResponseSchema = zod_1.z.object({
|
|
37
37
|
response: models_1.ExternalSquadSchema,
|
|
@@ -10,6 +10,6 @@ var BulkDeleteHostsCommand;
|
|
|
10
10
|
BulkDeleteHostsCommand.TSQ_url = BulkDeleteHostsCommand.url;
|
|
11
11
|
BulkDeleteHostsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.HOSTS_ROUTES.BULK.DELETE_HOSTS, 'post', 'Delete hosts by UUIDs', { scope: 'bulk-delete', kind: 'write' });
|
|
12
12
|
BulkDeleteHostsCommand.RequestBodySchema = zod_1.z.object({
|
|
13
|
-
uuids: zod_1.z.array(zod_1.z.
|
|
13
|
+
uuids: zod_1.z.array(zod_1.z.uuid()),
|
|
14
14
|
});
|
|
15
15
|
})(BulkDeleteHostsCommand || (exports.BulkDeleteHostsCommand = BulkDeleteHostsCommand = {}));
|
|
@@ -10,6 +10,6 @@ var BulkDisableHostsCommand;
|
|
|
10
10
|
BulkDisableHostsCommand.TSQ_url = BulkDisableHostsCommand.url;
|
|
11
11
|
BulkDisableHostsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.HOSTS_ROUTES.BULK.DISABLE_HOSTS, 'post', 'Disable hosts by UUIDs', { scope: 'bulk-disable', kind: 'write' });
|
|
12
12
|
BulkDisableHostsCommand.RequestBodySchema = zod_1.z.object({
|
|
13
|
-
uuids: zod_1.z.array(zod_1.z.
|
|
13
|
+
uuids: zod_1.z.array(zod_1.z.uuid()),
|
|
14
14
|
});
|
|
15
15
|
})(BulkDisableHostsCommand || (exports.BulkDisableHostsCommand = BulkDisableHostsCommand = {}));
|
|
@@ -10,6 +10,6 @@ var BulkEnableHostsCommand;
|
|
|
10
10
|
BulkEnableHostsCommand.TSQ_url = BulkEnableHostsCommand.url;
|
|
11
11
|
BulkEnableHostsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.HOSTS_ROUTES.BULK.ENABLE_HOSTS, 'post', 'Enable hosts by UUIDs', { scope: 'bulk-enable', kind: 'write' });
|
|
12
12
|
BulkEnableHostsCommand.RequestBodySchema = zod_1.z.object({
|
|
13
|
-
uuids: zod_1.z.array(zod_1.z.
|
|
13
|
+
uuids: zod_1.z.array(zod_1.z.uuid()),
|
|
14
14
|
});
|
|
15
15
|
})(BulkEnableHostsCommand || (exports.BulkEnableHostsCommand = BulkEnableHostsCommand = {}));
|
|
@@ -13,6 +13,6 @@ var UpdateManyHostsCommand;
|
|
|
13
13
|
UpdateManyHostsCommand.RequestBodySchema = update_command_1.UpdateHostCommand.RequestBodySchema.omit({ uuid: true })
|
|
14
14
|
.partial()
|
|
15
15
|
.extend({
|
|
16
|
-
uuids: zod_1.z.array(zod_1.z.
|
|
16
|
+
uuids: zod_1.z.array(zod_1.z.uuid()).min(1),
|
|
17
17
|
});
|
|
18
18
|
})(UpdateManyHostsCommand || (exports.UpdateManyHostsCommand = UpdateManyHostsCommand = {}));
|
|
@@ -12,29 +12,24 @@ var CreateHostCommand;
|
|
|
12
12
|
CreateHostCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.HOSTS_ROUTES.CREATE, 'post', 'Create a new host', { scope: 'create', kind: 'write' });
|
|
13
13
|
CreateHostCommand.RequestBodySchema = zod_1.z.object({
|
|
14
14
|
inbound: zod_1.z.object({
|
|
15
|
-
configProfileUuid: zod_1.z.
|
|
16
|
-
configProfileInboundUuid: zod_1.z.
|
|
15
|
+
configProfileUuid: zod_1.z.uuid(),
|
|
16
|
+
configProfileInboundUuid: zod_1.z.uuid(),
|
|
17
17
|
}),
|
|
18
18
|
remark: zod_1.z.string().min(1).max(100),
|
|
19
19
|
address: zod_1.z.string(),
|
|
20
|
-
port: zod_1.z.
|
|
20
|
+
port: zod_1.z.int(),
|
|
21
21
|
path: zod_1.z.string().nullish(),
|
|
22
22
|
sni: zod_1.z.string().nullish(),
|
|
23
23
|
host: zod_1.z.string().nullish(),
|
|
24
|
-
alpn: zod_1.z.
|
|
24
|
+
alpn: zod_1.z.enum(constants_1.ALPN).nullish(),
|
|
25
25
|
fingerprint: zod_1.z.string().nullish(),
|
|
26
26
|
isDisabled: zod_1.z.optional(zod_1.z.boolean().default(false)),
|
|
27
|
-
securityLayer: zod_1.z.optional(zod_1.z.
|
|
27
|
+
securityLayer: zod_1.z.optional(zod_1.z.enum(constants_1.SECURITY_LAYERS).default(constants_1.SECURITY_LAYERS.DEFAULT)),
|
|
28
28
|
xhttpExtraParams: zod_1.z.unknown().nullish(),
|
|
29
29
|
muxParams: zod_1.z.unknown().nullish(),
|
|
30
30
|
sockoptParams: zod_1.z.unknown().nullish(),
|
|
31
31
|
finalMask: zod_1.z.unknown().nullish(),
|
|
32
|
-
serverDescription: zod_1.z
|
|
33
|
-
.string()
|
|
34
|
-
.max(30, {
|
|
35
|
-
message: 'Server description must be less than 30 characters',
|
|
36
|
-
})
|
|
37
|
-
.nullish(),
|
|
32
|
+
serverDescription: zod_1.z.string().max(30).nullish(),
|
|
38
33
|
tags: zod_1.z.optional(zod_1.z
|
|
39
34
|
.array(zod_1.z
|
|
40
35
|
.string()
|
|
@@ -46,17 +41,17 @@ var CreateHostCommand;
|
|
|
46
41
|
keepSniBlank: zod_1.z.optional(zod_1.z.boolean().default(false)),
|
|
47
42
|
pinnedPeerCertSha256: zod_1.z.string().nullish(),
|
|
48
43
|
verifyPeerCertByName: zod_1.z.string().nullish(),
|
|
49
|
-
vlessRouteId: zod_1.z.
|
|
44
|
+
vlessRouteId: zod_1.z.int().min(0).max(65535).nullish(),
|
|
50
45
|
shuffleHost: zod_1.z.optional(zod_1.z.boolean().default(false)),
|
|
51
46
|
mihomoX25519: zod_1.z.optional(zod_1.z.boolean().default(false)),
|
|
52
|
-
mihomoIpVersion: zod_1.z.
|
|
53
|
-
nodes: zod_1.z.optional(zod_1.z.array(zod_1.z.
|
|
54
|
-
xrayJsonTemplateUuid: zod_1.z.
|
|
47
|
+
mihomoIpVersion: zod_1.z.enum(constants_1.MIHOMO_IP_VERSION).nullish(),
|
|
48
|
+
nodes: zod_1.z.optional(zod_1.z.array(zod_1.z.uuid())),
|
|
49
|
+
xrayJsonTemplateUuid: zod_1.z.uuid().nullish(),
|
|
55
50
|
excludedInternalSquads: zod_1.z
|
|
56
|
-
.optional(zod_1.z.array(zod_1.z.
|
|
51
|
+
.optional(zod_1.z.array(zod_1.z.uuid()))
|
|
57
52
|
.describe('Optional. Internal squads from which the host will be excluded.'),
|
|
58
53
|
excludeFromSubscriptionTypes: zod_1.z
|
|
59
|
-
.optional(zod_1.z.array(zod_1.z.
|
|
54
|
+
.optional(zod_1.z.array(zod_1.z.enum(constants_1.SUBSCRIPTION_TEMPLATE_TYPE)))
|
|
60
55
|
.describe('Optional. Subscription types from which the host will be excluded from.'),
|
|
61
56
|
});
|
|
62
57
|
CreateHostCommand.ResponseSchema = host_response_1.HostResponseSchema;
|
|
@@ -10,6 +10,6 @@ var DeleteHostCommand;
|
|
|
10
10
|
DeleteHostCommand.TSQ_url = DeleteHostCommand.url(':uuid');
|
|
11
11
|
DeleteHostCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.HOSTS_ROUTES.DELETE(':uuid'), 'delete', 'Delete a host by UUID', { scope: 'delete', kind: 'write' });
|
|
12
12
|
DeleteHostCommand.RequestParamSchema = zod_1.z.object({
|
|
13
|
-
uuid: zod_1.z.
|
|
13
|
+
uuid: zod_1.z.uuid(),
|
|
14
14
|
});
|
|
15
15
|
})(DeleteHostCommand || (exports.DeleteHostCommand = DeleteHostCommand = {}));
|
|
@@ -11,7 +11,7 @@ var GetHostCommand;
|
|
|
11
11
|
GetHostCommand.TSQ_url = GetHostCommand.url(':uuid');
|
|
12
12
|
GetHostCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.HOSTS_ROUTES.GET_BY_UUID(':uuid'), 'get', 'Get a host by UUID', { scope: 'get', kind: 'read' });
|
|
13
13
|
GetHostCommand.RequestParamSchema = zod_1.z.object({
|
|
14
|
-
uuid: zod_1.z.
|
|
14
|
+
uuid: zod_1.z.uuid(),
|
|
15
15
|
});
|
|
16
16
|
GetHostCommand.ResponseSchema = host_response_1.HostResponseSchema;
|
|
17
17
|
})(GetHostCommand || (exports.GetHostCommand = GetHostCommand = {}));
|
|
@@ -16,30 +16,25 @@ var UpdateHostCommand;
|
|
|
16
16
|
}).extend({
|
|
17
17
|
inbound: zod_1.z
|
|
18
18
|
.object({
|
|
19
|
-
configProfileUuid: zod_1.z.
|
|
20
|
-
configProfileInboundUuid: zod_1.z.
|
|
19
|
+
configProfileUuid: zod_1.z.uuid(),
|
|
20
|
+
configProfileInboundUuid: zod_1.z.uuid(),
|
|
21
21
|
})
|
|
22
22
|
.optional(),
|
|
23
23
|
remark: zod_1.z.string().min(1).max(100).optional(),
|
|
24
24
|
address: zod_1.z.string().optional(),
|
|
25
|
-
port: zod_1.z.
|
|
25
|
+
port: zod_1.z.int().optional(),
|
|
26
26
|
path: zod_1.z.string().nullish(),
|
|
27
27
|
sni: zod_1.z.string().nullish(),
|
|
28
28
|
host: zod_1.z.string().nullish(),
|
|
29
|
-
alpn: zod_1.z.
|
|
29
|
+
alpn: zod_1.z.enum(constants_1.ALPN).nullish(),
|
|
30
30
|
fingerprint: zod_1.z.string().nullish(),
|
|
31
31
|
isDisabled: zod_1.z.boolean().default(false),
|
|
32
|
-
securityLayer: zod_1.z.optional(zod_1.z.
|
|
32
|
+
securityLayer: zod_1.z.optional(zod_1.z.enum(constants_1.SECURITY_LAYERS)),
|
|
33
33
|
xhttpExtraParams: zod_1.z.unknown().nullish(),
|
|
34
34
|
muxParams: zod_1.z.unknown().nullish(),
|
|
35
35
|
sockoptParams: zod_1.z.unknown().nullish(),
|
|
36
36
|
finalMask: zod_1.z.unknown().nullish(),
|
|
37
|
-
serverDescription: zod_1.z
|
|
38
|
-
.string()
|
|
39
|
-
.max(30, {
|
|
40
|
-
message: 'Server description must be less than 30 characters',
|
|
41
|
-
})
|
|
42
|
-
.nullish(),
|
|
37
|
+
serverDescription: zod_1.z.string().max(30).nullish(),
|
|
43
38
|
tags: zod_1.z.optional(zod_1.z
|
|
44
39
|
.array(zod_1.z
|
|
45
40
|
.string()
|
|
@@ -49,19 +44,19 @@ var UpdateHostCommand;
|
|
|
49
44
|
isHidden: zod_1.z.optional(zod_1.z.boolean()),
|
|
50
45
|
overrideSniFromAddress: zod_1.z.optional(zod_1.z.boolean()),
|
|
51
46
|
keepSniBlank: zod_1.z.optional(zod_1.z.boolean()),
|
|
52
|
-
vlessRouteId: zod_1.z.optional(zod_1.z.
|
|
47
|
+
vlessRouteId: zod_1.z.optional(zod_1.z.int().min(0).max(65535).nullable()),
|
|
53
48
|
pinnedPeerCertSha256: zod_1.z.string().nullish(),
|
|
54
49
|
verifyPeerCertByName: zod_1.z.string().nullish(),
|
|
55
50
|
shuffleHost: zod_1.z.optional(zod_1.z.boolean()),
|
|
56
51
|
mihomoX25519: zod_1.z.optional(zod_1.z.boolean()),
|
|
57
|
-
mihomoIpVersion: zod_1.z.
|
|
58
|
-
nodes: zod_1.z.optional(zod_1.z.array(zod_1.z.
|
|
59
|
-
xrayJsonTemplateUuid: zod_1.z.
|
|
52
|
+
mihomoIpVersion: zod_1.z.enum(constants_1.MIHOMO_IP_VERSION).nullish(),
|
|
53
|
+
nodes: zod_1.z.optional(zod_1.z.array(zod_1.z.uuid())),
|
|
54
|
+
xrayJsonTemplateUuid: zod_1.z.uuid().nullish(),
|
|
60
55
|
excludedInternalSquads: zod_1.z
|
|
61
|
-
.optional(zod_1.z.array(zod_1.z.
|
|
56
|
+
.optional(zod_1.z.array(zod_1.z.uuid()))
|
|
62
57
|
.describe('Optional. Internal squads from which the host will be excluded.'),
|
|
63
58
|
excludeFromSubscriptionTypes: zod_1.z
|
|
64
|
-
.optional(zod_1.z.array(zod_1.z.
|
|
59
|
+
.optional(zod_1.z.array(zod_1.z.enum(constants_1.SUBSCRIPTION_TEMPLATE_TYPE)))
|
|
65
60
|
.describe('Optional. Subscription types from which the host will be excluded from.'),
|
|
66
61
|
});
|
|
67
62
|
UpdateHostCommand.ResponseSchema = host_response_1.HostResponseSchema;
|
|
@@ -12,7 +12,7 @@ var CreateUserHwidDeviceCommand;
|
|
|
12
12
|
CreateUserHwidDeviceCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.HWID_ROUTES.CREATE_USER_HWID_DEVICE, 'post', 'Create a user HWID device', { scope: 'create', kind: 'write' });
|
|
13
13
|
CreateUserHwidDeviceCommand.RequestBodySchema = zod_1.z.object({
|
|
14
14
|
hwid: zod_1.z.string(),
|
|
15
|
-
userUuid: zod_1.z.
|
|
15
|
+
userUuid: zod_1.z.uuid(),
|
|
16
16
|
platform: zod_1.z.optional(zod_1.z.string()),
|
|
17
17
|
osVersion: zod_1.z.optional(zod_1.z.string()),
|
|
18
18
|
deviceModel: zod_1.z.optional(zod_1.z.string()),
|
|
@@ -11,7 +11,7 @@ var DeleteAllUserHwidDevicesCommand;
|
|
|
11
11
|
DeleteAllUserHwidDevicesCommand.TSQ_url = DeleteAllUserHwidDevicesCommand.url;
|
|
12
12
|
DeleteAllUserHwidDevicesCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.HWID_ROUTES.DELETE_ALL_USER_HWID_DEVICES, 'post', 'Delete all user HWID devices', { scope: 'delete-all', kind: 'write' });
|
|
13
13
|
DeleteAllUserHwidDevicesCommand.RequestBodySchema = zod_1.z.object({
|
|
14
|
-
userUuid: zod_1.z.
|
|
14
|
+
userUuid: zod_1.z.uuid(),
|
|
15
15
|
});
|
|
16
16
|
DeleteAllUserHwidDevicesCommand.ResponseSchema = zod_1.z.object({
|
|
17
17
|
response: zod_1.z.object({
|
|
@@ -11,7 +11,7 @@ var DeleteUserHwidDeviceCommand;
|
|
|
11
11
|
DeleteUserHwidDeviceCommand.TSQ_url = DeleteUserHwidDeviceCommand.url;
|
|
12
12
|
DeleteUserHwidDeviceCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.HWID_ROUTES.DELETE_USER_HWID_DEVICE, 'post', 'Delete a user HWID device', { scope: 'delete', kind: 'write' });
|
|
13
13
|
DeleteUserHwidDeviceCommand.RequestBodySchema = zod_1.z.object({
|
|
14
|
-
userUuid: zod_1.z.
|
|
14
|
+
userUuid: zod_1.z.uuid(),
|
|
15
15
|
hwid: zod_1.z.string(),
|
|
16
16
|
});
|
|
17
17
|
DeleteUserHwidDeviceCommand.ResponseSchema = zod_1.z.object({
|
|
@@ -24,7 +24,7 @@ var GetTopUsersByHwidDevicesCommand;
|
|
|
24
24
|
GetTopUsersByHwidDevicesCommand.ResponseSchema = zod_1.z.object({
|
|
25
25
|
response: zod_1.z.object({
|
|
26
26
|
users: zod_1.z.array(zod_1.z.object({
|
|
27
|
-
userUuid: zod_1.z.
|
|
27
|
+
userUuid: zod_1.z.uuid(),
|
|
28
28
|
id: zod_1.z.number(),
|
|
29
29
|
username: zod_1.z.string(),
|
|
30
30
|
devicesCount: zod_1.z.number(),
|
|
@@ -11,7 +11,7 @@ var GetUserHwidDevicesCommand;
|
|
|
11
11
|
GetUserHwidDevicesCommand.TSQ_url = GetUserHwidDevicesCommand.url(':userUuid');
|
|
12
12
|
GetUserHwidDevicesCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.HWID_ROUTES.GET_USER_HWID_DEVICES(':userUuid'), 'get', 'Get user HWID devices', { scope: 'list-by-user', kind: 'read' });
|
|
13
13
|
GetUserHwidDevicesCommand.RequestParamSchema = zod_1.z.object({
|
|
14
|
-
userUuid: zod_1.z.
|
|
14
|
+
userUuid: zod_1.z.uuid(),
|
|
15
15
|
});
|
|
16
16
|
GetUserHwidDevicesCommand.ResponseSchema = zod_1.z.object({
|
|
17
17
|
response: zod_1.z.object({
|
|
@@ -23,7 +23,7 @@ __exportStar(require("./hosts"), exports);
|
|
|
23
23
|
__exportStar(require("./hwid"), exports);
|
|
24
24
|
__exportStar(require("./infra-billing"), exports);
|
|
25
25
|
__exportStar(require("./internal-squads"), exports);
|
|
26
|
-
__exportStar(require("./
|
|
26
|
+
__exportStar(require("./connections"), exports);
|
|
27
27
|
__exportStar(require("./keygen"), exports);
|
|
28
28
|
__exportStar(require("./metadata"), exports);
|
|
29
29
|
__exportStar(require("./node-plugins"), exports);
|
|
@@ -11,13 +11,10 @@ var CreateInfraBillingRecordCommand;
|
|
|
11
11
|
CreateInfraBillingRecordCommand.TSQ_url = CreateInfraBillingRecordCommand.url;
|
|
12
12
|
CreateInfraBillingRecordCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INFRA_BILLING_ROUTES.CREATE_BILLING_HISTORY, 'post', 'Create infra billing history', { scope: 'create-bill-record', kind: 'write' });
|
|
13
13
|
CreateInfraBillingRecordCommand.RequestBodySchema = zod_1.z.object({
|
|
14
|
-
providerUuid: zod_1.z.
|
|
15
|
-
amount: zod_1.z.number().min(0
|
|
16
|
-
billedAt: zod_1.z
|
|
17
|
-
.
|
|
18
|
-
invalid_type_error: 'Invalid date format',
|
|
19
|
-
})
|
|
20
|
-
.datetime({ message: 'Invalid date format', offset: true, local: true })
|
|
14
|
+
providerUuid: zod_1.z.uuid(),
|
|
15
|
+
amount: zod_1.z.number().min(0),
|
|
16
|
+
billedAt: zod_1.z.iso
|
|
17
|
+
.datetime({ offset: true, local: true })
|
|
21
18
|
.transform((str) => new Date(str))
|
|
22
19
|
.describe('Billing date. Format: 2025-01-17T15:38:45.065Z'),
|
|
23
20
|
});
|
|
@@ -11,14 +11,11 @@ var CreateInfraBillingNodeCommand;
|
|
|
11
11
|
CreateInfraBillingNodeCommand.TSQ_url = CreateInfraBillingNodeCommand.url;
|
|
12
12
|
CreateInfraBillingNodeCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INFRA_BILLING_ROUTES.CREATE_BILLING_NODE, 'post', 'Create infra billing node', { scope: 'create-billing-node', kind: 'write' });
|
|
13
13
|
CreateInfraBillingNodeCommand.RequestBodySchema = zod_1.z.object({
|
|
14
|
-
providerUuid: zod_1.z.
|
|
15
|
-
nodeUuid: zod_1.z.
|
|
14
|
+
providerUuid: zod_1.z.uuid(),
|
|
15
|
+
nodeUuid: zod_1.z.uuid().nullable(),
|
|
16
16
|
name: zod_1.z.string().min(1).max(255).nullable(),
|
|
17
|
-
nextBillingAt: zod_1.z
|
|
18
|
-
.
|
|
19
|
-
invalid_type_error: 'Invalid date format',
|
|
20
|
-
})
|
|
21
|
-
.datetime({ message: 'Invalid date format', offset: true, local: true })
|
|
17
|
+
nextBillingAt: zod_1.z.iso
|
|
18
|
+
.datetime({ offset: true, local: true })
|
|
22
19
|
.transform((str) => new Date(str))
|
|
23
20
|
.describe('Next billing date. Format: 2025-01-17T15:38:45.065Z'),
|
|
24
21
|
});
|
|
@@ -15,8 +15,8 @@ var CreateInfraProviderCommand;
|
|
|
15
15
|
.string()
|
|
16
16
|
.min(2, 'Name must be at least 2 characters')
|
|
17
17
|
.max(30, 'Name must be less than 30 characters'),
|
|
18
|
-
faviconLink: zod_1.z.
|
|
19
|
-
loginUrl: zod_1.z.
|
|
18
|
+
faviconLink: zod_1.z.url().optional(),
|
|
19
|
+
loginUrl: zod_1.z.url().optional(),
|
|
20
20
|
});
|
|
21
21
|
CreateInfraProviderCommand.ResponseSchema = zod_1.z.object({
|
|
22
22
|
response: models_1.InfraProviderSchema,
|
|
@@ -10,6 +10,6 @@ var DeleteInfraBillingRecordCommand;
|
|
|
10
10
|
DeleteInfraBillingRecordCommand.TSQ_url = DeleteInfraBillingRecordCommand.url(':uuid');
|
|
11
11
|
DeleteInfraBillingRecordCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INFRA_BILLING_ROUTES.DELETE_BILLING_HISTORY(':uuid'), 'delete', 'Delete infra billing history', { scope: 'delete-bill-record', kind: 'write' });
|
|
12
12
|
DeleteInfraBillingRecordCommand.RequestParamSchema = zod_1.z.object({
|
|
13
|
-
uuid: zod_1.z.
|
|
13
|
+
uuid: zod_1.z.uuid(),
|
|
14
14
|
});
|
|
15
15
|
})(DeleteInfraBillingRecordCommand || (exports.DeleteInfraBillingRecordCommand = DeleteInfraBillingRecordCommand = {}));
|
|
@@ -10,6 +10,6 @@ var DeleteInfraBillingNodeCommand;
|
|
|
10
10
|
DeleteInfraBillingNodeCommand.TSQ_url = DeleteInfraBillingNodeCommand.url(':uuid');
|
|
11
11
|
DeleteInfraBillingNodeCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INFRA_BILLING_ROUTES.DELETE_BILLING_NODE(':uuid'), 'delete', 'Delete infra billing node', { scope: 'delete-billing-node', kind: 'write' });
|
|
12
12
|
DeleteInfraBillingNodeCommand.RequestParamSchema = zod_1.z.object({
|
|
13
|
-
uuid: zod_1.z.
|
|
13
|
+
uuid: zod_1.z.uuid(),
|
|
14
14
|
});
|
|
15
15
|
})(DeleteInfraBillingNodeCommand || (exports.DeleteInfraBillingNodeCommand = DeleteInfraBillingNodeCommand = {}));
|
|
@@ -10,6 +10,6 @@ var DeleteInfraProviderCommand;
|
|
|
10
10
|
DeleteInfraProviderCommand.TSQ_url = DeleteInfraProviderCommand.url(':uuid');
|
|
11
11
|
DeleteInfraProviderCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INFRA_BILLING_ROUTES.DELETE_PROVIDER(':uuid'), 'delete', 'Delete infra provider by uuid', { scope: 'delete-provider', kind: 'write' });
|
|
12
12
|
DeleteInfraProviderCommand.RequestParamSchema = zod_1.z.object({
|
|
13
|
-
uuid: zod_1.z.
|
|
13
|
+
uuid: zod_1.z.uuid(),
|
|
14
14
|
});
|
|
15
15
|
})(DeleteInfraProviderCommand || (exports.DeleteInfraProviderCommand = DeleteInfraProviderCommand = {}));
|
|
@@ -17,8 +17,8 @@ var GetInfraBillingRecordsCommand;
|
|
|
17
17
|
.describe('Start index (offset) of the billing history records to return, default is 0'),
|
|
18
18
|
size: zod_1.z.coerce
|
|
19
19
|
.number()
|
|
20
|
-
.min(1
|
|
21
|
-
.max(500
|
|
20
|
+
.min(1)
|
|
21
|
+
.max(500)
|
|
22
22
|
.describe('Number of billing records to return, no more than 500')
|
|
23
23
|
.default(50),
|
|
24
24
|
});
|
|
@@ -11,7 +11,7 @@ var GetInfraProviderCommand;
|
|
|
11
11
|
GetInfraProviderCommand.TSQ_url = GetInfraProviderCommand.url(':uuid');
|
|
12
12
|
GetInfraProviderCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INFRA_BILLING_ROUTES.GET_PROVIDER_BY_UUID(':uuid'), 'get', 'Get infra provider by uuid', { scope: 'get-provider', kind: 'read' });
|
|
13
13
|
GetInfraProviderCommand.RequestParamSchema = zod_1.z.object({
|
|
14
|
-
uuid: zod_1.z.
|
|
14
|
+
uuid: zod_1.z.uuid(),
|
|
15
15
|
});
|
|
16
16
|
GetInfraProviderCommand.ResponseSchema = zod_1.z.object({
|
|
17
17
|
response: models_1.InfraProviderSchema,
|