@remnawave/backend-contract 0.0.57 → 0.0.60
Sign up to get free protection for your applications and to get access to all the features.
- package/build/backend/api/controllers/api-tokens.d.ts +7 -0
- package/build/backend/api/controllers/api-tokens.d.ts.map +1 -0
- package/build/backend/api/controllers/auth.d.ts +5 -0
- package/build/backend/api/controllers/auth.d.ts.map +1 -0
- package/build/backend/api/controllers/hosts.d.ts +10 -0
- package/build/backend/api/controllers/hosts.d.ts.map +1 -0
- package/build/backend/api/controllers/inbounds.d.ts +5 -0
- package/build/backend/api/controllers/inbounds.d.ts.map +1 -0
- package/{api/controllers/index.ts → build/backend/api/controllers/index.d.ts} +1 -0
- package/build/backend/api/controllers/index.d.ts.map +1 -0
- package/build/backend/api/controllers/keygen.d.ts +5 -0
- package/build/backend/api/controllers/keygen.d.ts.map +1 -0
- package/build/backend/api/controllers/nodes.d.ts +13 -0
- package/build/backend/api/controllers/nodes.d.ts.map +1 -0
- package/build/backend/api/controllers/subscription.d.ts +6 -0
- package/build/backend/api/controllers/subscription.d.ts.map +1 -0
- package/build/backend/api/controllers/system.d.ts +9 -0
- package/build/backend/api/controllers/system.d.ts.map +1 -0
- package/build/backend/api/controllers/users.d.ts +15 -0
- package/build/backend/api/controllers/users.d.ts.map +1 -0
- package/build/backend/api/controllers/xray.d.ts +6 -0
- package/build/backend/api/controllers/xray.d.ts.map +1 -0
- package/{api/index.ts → build/backend/api/index.d.ts} +1 -0
- package/build/backend/api/index.d.ts.map +1 -0
- package/build/backend/api/routes.d.ts +63 -0
- package/build/backend/api/routes.d.ts.map +1 -0
- package/build/backend/commands/api-tokens/create.command.d.ts +40 -0
- package/build/backend/commands/api-tokens/create.command.d.ts.map +1 -0
- package/build/backend/commands/api-tokens/delete.command.d.ts +22 -0
- package/build/backend/commands/api-tokens/delete.command.d.ts.map +1 -0
- package/build/backend/commands/api-tokens/find.command.d.ts +49 -0
- package/build/backend/commands/api-tokens/find.command.d.ts.map +1 -0
- package/{commands/api-tokens/index.ts → build/backend/commands/api-tokens/index.d.ts} +1 -0
- package/build/backend/commands/api-tokens/index.d.ts.map +1 -0
- package/build/backend/commands/auth/index.d.ts +2 -0
- package/build/backend/commands/auth/index.d.ts.map +1 -0
- package/build/backend/commands/auth/login.command.d.ts +35 -0
- package/build/backend/commands/auth/login.command.d.ts.map +1 -0
- package/build/backend/commands/hosts/create.command.d.ts +122 -0
- package/build/backend/commands/hosts/create.command.d.ts.map +1 -0
- package/build/backend/commands/hosts/delete.command.d.ts +32 -0
- package/build/backend/commands/hosts/delete.command.d.ts.map +1 -0
- package/build/backend/commands/hosts/get-all.command.d.ts +84 -0
- package/build/backend/commands/hosts/get-all.command.d.ts.map +1 -0
- package/{commands/hosts/index.ts → build/backend/commands/hosts/index.d.ts} +1 -0
- package/build/backend/commands/hosts/index.d.ts.map +1 -0
- package/build/backend/commands/hosts/reorder.command.d.ts +58 -0
- package/build/backend/commands/hosts/reorder.command.d.ts.map +1 -0
- package/build/backend/commands/hosts/update.command.d.ts +138 -0
- package/build/backend/commands/hosts/update.command.d.ts.map +1 -0
- package/build/backend/commands/inbounds/get-inbounds.command.d.ts +34 -0
- package/build/backend/commands/inbounds/get-inbounds.command.d.ts.map +1 -0
- package/{commands/inbounds/index.ts → build/backend/commands/inbounds/index.d.ts} +1 -0
- package/build/backend/commands/inbounds/index.d.ts.map +1 -0
- package/{commands/index.ts → build/backend/commands/index.d.ts} +1 -0
- package/build/backend/commands/index.d.ts.map +1 -0
- package/build/backend/commands/keygen/get-pubkey.command.d.ts +24 -0
- package/build/backend/commands/keygen/get-pubkey.command.d.ts.map +1 -0
- package/{commands/keygen/index.ts → build/backend/commands/keygen/index.d.ts} +1 -0
- package/build/backend/commands/keygen/index.d.ts.map +1 -0
- package/build/backend/commands/nodes/create.command.d.ts +155 -0
- package/build/backend/commands/nodes/create.command.d.ts.map +1 -0
- package/build/backend/commands/nodes/delete.command.d.ts +32 -0
- package/build/backend/commands/nodes/delete.command.d.ts.map +1 -0
- package/build/backend/commands/nodes/disable.command.d.ts +137 -0
- package/build/backend/commands/nodes/disable.command.d.ts.map +1 -0
- package/build/backend/commands/nodes/enable.command.d.ts +137 -0
- package/build/backend/commands/nodes/enable.command.d.ts.map +1 -0
- package/build/backend/commands/nodes/get-all.command.d.ts +129 -0
- package/build/backend/commands/nodes/get-all.command.d.ts.map +1 -0
- package/build/backend/commands/nodes/get-one.command.d.ts +137 -0
- package/build/backend/commands/nodes/get-one.command.d.ts.map +1 -0
- package/{commands/nodes/index.ts → build/backend/commands/nodes/index.d.ts} +1 -0
- package/build/backend/commands/nodes/index.d.ts.map +1 -0
- package/build/backend/commands/nodes/restart-all.command.d.ts +24 -0
- package/build/backend/commands/nodes/restart-all.command.d.ts.map +1 -0
- package/build/backend/commands/nodes/restart.command.d.ts +32 -0
- package/build/backend/commands/nodes/restart.command.d.ts.map +1 -0
- package/build/backend/commands/nodes/update.command.d.ts +180 -0
- package/build/backend/commands/nodes/update.command.d.ts.map +1 -0
- package/build/backend/commands/subscription/get-subscription-by-short-uuid.command.d.ts +14 -0
- package/build/backend/commands/subscription/get-subscription-by-short-uuid.command.d.ts.map +1 -0
- package/build/backend/commands/subscription/get-subscription-info-by-short-uuid.command.d.ts +100 -0
- package/build/backend/commands/subscription/get-subscription-info-by-short-uuid.command.d.ts.map +1 -0
- package/{commands/subscription/index.ts → build/backend/commands/subscription/index.d.ts} +1 -0
- package/build/backend/commands/subscription/index.d.ts.map +1 -0
- package/build/backend/commands/system/get-bandwidth-stats.command.d.ts +192 -0
- package/build/backend/commands/system/get-bandwidth-stats.command.d.ts.map +1 -0
- package/build/backend/commands/system/get-nodes-statistics.d.ts +60 -0
- package/build/backend/commands/system/get-nodes-statistics.d.ts.map +1 -0
- package/build/backend/commands/system/get-stats.command.d.ts +150 -0
- package/build/backend/commands/system/get-stats.command.d.ts.map +1 -0
- package/{commands/system/index.ts → build/backend/commands/system/index.d.ts} +1 -0
- package/build/backend/commands/system/index.d.ts.map +1 -0
- package/build/backend/commands/users/create-user.command.d.ts +191 -0
- package/build/backend/commands/users/create-user.command.d.ts.map +1 -0
- package/build/backend/commands/users/delete-user.command.d.ts +32 -0
- package/build/backend/commands/users/delete-user.command.d.ts.map +1 -0
- package/build/backend/commands/users/disable-user.command.ts.d.ts +155 -0
- package/build/backend/commands/users/disable-user.command.ts.d.ts.map +1 -0
- package/build/backend/commands/users/enable-user.command.d.ts +155 -0
- package/build/backend/commands/users/enable-user.command.d.ts.map +1 -0
- package/build/backend/commands/users/get-all-users-v2.command.d.ts +273 -0
- package/build/backend/commands/users/get-all-users-v2.command.d.ts.map +1 -0
- package/build/backend/commands/users/get-all-users.command.d.ts +247 -0
- package/build/backend/commands/users/get-all-users.command.d.ts.map +1 -0
- package/build/backend/commands/users/get-user-by-short-uuid.command.d.ts +155 -0
- package/build/backend/commands/users/get-user-by-short-uuid.command.d.ts.map +1 -0
- package/build/backend/commands/users/get-user-by-subscription-uuid.command.d.ts +155 -0
- package/build/backend/commands/users/get-user-by-subscription-uuid.command.d.ts.map +1 -0
- package/build/backend/commands/users/get-user-by-uuid.command.d.ts +155 -0
- package/build/backend/commands/users/get-user-by-uuid.command.d.ts.map +1 -0
- package/{commands/users/index.ts → build/backend/commands/users/index.d.ts} +1 -0
- package/build/backend/commands/users/index.d.ts.map +1 -0
- package/build/backend/commands/users/revoke-user-subscription.command.d.ts +155 -0
- package/build/backend/commands/users/revoke-user-subscription.command.d.ts.map +1 -0
- package/build/backend/commands/users/update-user.command.d.ts +202 -0
- package/build/backend/commands/users/update-user.command.d.ts.map +1 -0
- package/build/backend/commands/xray/get-config.command.d.ts +24 -0
- package/build/backend/commands/xray/get-config.command.d.ts.map +1 -0
- package/{commands/xray/index.ts → build/backend/commands/xray/index.d.ts} +1 -0
- package/build/backend/commands/xray/index.d.ts.map +1 -0
- package/build/backend/commands/xray/update-config.command.d.ts +26 -0
- package/build/backend/commands/xray/update-config.command.d.ts.map +1 -0
- package/build/backend/constants/errors/errors.d.ts +293 -0
- package/build/backend/constants/errors/errors.d.ts.map +1 -0
- package/build/backend/constants/errors/index.d.ts +2 -0
- package/build/backend/constants/errors/index.d.ts.map +1 -0
- package/build/backend/constants/events/events.d.ts +25 -0
- package/build/backend/constants/events/events.d.ts.map +1 -0
- package/build/backend/constants/events/index.d.ts +2 -0
- package/build/backend/constants/events/index.d.ts.map +1 -0
- package/build/backend/constants/hosts/alpn.d.ts +8 -0
- package/build/backend/constants/hosts/alpn.d.ts.map +1 -0
- package/build/backend/constants/hosts/fingerprints.d.ts +14 -0
- package/build/backend/constants/hosts/fingerprints.d.ts.map +1 -0
- package/{constants/hosts/index.ts → build/backend/constants/hosts/index.d.ts} +1 -0
- package/build/backend/constants/hosts/index.d.ts.map +1 -0
- package/{constants/index.ts → build/backend/constants/index.d.ts} +1 -0
- package/build/backend/constants/index.d.ts.map +1 -0
- package/build/backend/constants/nodes/cycle/cycle.d.ts +7 -0
- package/build/backend/constants/nodes/cycle/cycle.d.ts.map +1 -0
- package/build/backend/constants/nodes/cycle/index.d.ts +2 -0
- package/build/backend/constants/nodes/cycle/index.d.ts.map +1 -0
- package/{constants/nodes/index.ts → build/backend/constants/nodes/index.d.ts} +1 -0
- package/build/backend/constants/nodes/index.d.ts.map +1 -0
- package/{constants/nodes/status/index.ts → build/backend/constants/nodes/status/index.d.ts} +1 -0
- package/build/backend/constants/nodes/status/index.d.ts.map +1 -0
- package/build/backend/constants/nodes/status/status.constant.d.ts +8 -0
- package/build/backend/constants/nodes/status/status.constant.d.ts.map +1 -0
- package/build/backend/constants/roles/index.d.ts +2 -0
- package/build/backend/constants/roles/index.d.ts.map +1 -0
- package/build/backend/constants/roles/role.d.ts +7 -0
- package/build/backend/constants/roles/role.d.ts.map +1 -0
- package/{constants/templates/index.ts → build/backend/constants/templates/index.d.ts} +1 -0
- package/build/backend/constants/templates/index.d.ts.map +1 -0
- package/build/backend/constants/templates/template-keys.d.ts +3 -0
- package/build/backend/constants/templates/template-keys.d.ts.map +1 -0
- package/build/backend/constants/templates/user-statuses.d.ts +7 -0
- package/build/backend/constants/templates/user-statuses.d.ts.map +1 -0
- package/{constants/users/index.ts → build/backend/constants/users/index.d.ts} +1 -0
- package/build/backend/constants/users/index.d.ts.map +1 -0
- package/{constants/users/reset-periods/index.ts → build/backend/constants/users/reset-periods/index.d.ts} +1 -0
- package/build/backend/constants/users/reset-periods/index.d.ts.map +1 -0
- package/build/backend/constants/users/reset-periods/reset-periods.constant.d.ts +10 -0
- package/build/backend/constants/users/reset-periods/reset-periods.constant.d.ts.map +1 -0
- package/{constants/users/status/index.ts → build/backend/constants/users/status/index.d.ts} +1 -0
- package/build/backend/constants/users/status/index.d.ts.map +1 -0
- package/build/backend/constants/users/status/status.constant.d.ts +9 -0
- package/build/backend/constants/users/status/status.constant.d.ts.map +1 -0
- package/{index.ts → build/backend/index.d.ts} +1 -0
- package/build/backend/index.d.ts.map +1 -0
- package/build/backend/models/api-tokens.schema.d.ts +24 -0
- package/build/backend/models/api-tokens.schema.d.ts.map +1 -0
- package/build/backend/models/auth.schema.d.ts +9 -0
- package/build/backend/models/auth.schema.d.ts.map +1 -0
- package/build/backend/models/base-stat.schema.d.ts +15 -0
- package/build/backend/models/base-stat.schema.d.ts.map +1 -0
- package/build/backend/models/hosts.schema.d.ts +45 -0
- package/build/backend/models/hosts.schema.d.ts.map +1 -0
- package/build/backend/models/inbounds.schema.d.ts +15 -0
- package/build/backend/models/inbounds.schema.d.ts.map +1 -0
- package/{models/index.ts → build/backend/models/index.d.ts} +1 -0
- package/build/backend/models/index.d.ts.map +1 -0
- package/build/backend/models/nodes.schema.d.ts +72 -0
- package/build/backend/models/nodes.schema.d.ts.map +1 -0
- package/build/backend/models/users.schema.d.ts +86 -0
- package/build/backend/models/users.schema.d.ts.map +1 -0
- package/build/frontend/api/controllers/api-tokens.js +9 -0
- package/build/frontend/api/controllers/auth.js +7 -0
- package/build/frontend/api/controllers/hosts.js +12 -0
- package/build/frontend/api/controllers/inbounds.js +7 -0
- package/build/frontend/api/controllers/index.js +26 -0
- package/build/frontend/api/controllers/keygen.js +7 -0
- package/{api/controllers/nodes.ts → build/frontend/api/controllers/nodes.js} +6 -5
- package/build/frontend/api/controllers/subscription.js +8 -0
- package/build/frontend/api/controllers/system.js +11 -0
- package/{api/controllers/users.ts → build/frontend/api/controllers/users.js} +6 -4
- package/build/frontend/api/controllers/xray.js +8 -0
- package/build/frontend/api/index.js +18 -0
- package/build/frontend/api/routes.js +99 -0
- package/build/frontend/commands/api-tokens/create.command.js +20 -0
- package/build/frontend/commands/api-tokens/delete.command.js +16 -0
- package/build/frontend/commands/api-tokens/find.command.js +14 -0
- package/build/frontend/commands/api-tokens/index.js +19 -0
- package/build/frontend/commands/auth/index.js +17 -0
- package/build/frontend/commands/auth/login.command.js +19 -0
- package/build/frontend/commands/hosts/create.command.js +45 -0
- package/build/frontend/commands/hosts/delete.command.js +18 -0
- package/build/frontend/commands/hosts/get-all.command.js +14 -0
- package/build/frontend/commands/hosts/index.js +21 -0
- package/build/frontend/commands/hosts/reorder.command.js +22 -0
- package/build/frontend/commands/hosts/update.command.js +52 -0
- package/build/frontend/commands/inbounds/get-inbounds.command.js +14 -0
- package/build/frontend/commands/inbounds/index.js +17 -0
- package/build/frontend/commands/index.js +26 -0
- package/build/frontend/commands/keygen/get-pubkey.command.js +15 -0
- package/build/frontend/commands/keygen/index.js +17 -0
- package/build/frontend/commands/nodes/create.command.js +31 -0
- package/build/frontend/commands/nodes/delete.command.js +18 -0
- package/build/frontend/commands/nodes/disable.command.js +17 -0
- package/build/frontend/commands/nodes/enable.command.js +17 -0
- package/build/frontend/commands/nodes/get-all.command.js +14 -0
- package/build/frontend/commands/nodes/get-one.command.js +17 -0
- package/build/frontend/commands/nodes/index.js +25 -0
- package/build/frontend/commands/nodes/restart-all.command.js +15 -0
- package/build/frontend/commands/nodes/restart.command.js +18 -0
- package/build/frontend/commands/nodes/update.command.js +31 -0
- package/build/frontend/commands/subscription/get-subscription-by-short-uuid.command.js +13 -0
- package/build/frontend/commands/subscription/get-subscription-info-by-short-uuid.command.js +29 -0
- package/build/frontend/commands/subscription/index.js +18 -0
- package/build/frontend/commands/system/get-bandwidth-stats.command.js +23 -0
- package/build/frontend/commands/system/get-nodes-statistics.js +22 -0
- package/build/frontend/commands/system/get-stats.command.js +37 -0
- package/build/frontend/commands/system/index.js +19 -0
- package/build/frontend/commands/users/create-user.command.js +111 -0
- package/build/frontend/commands/users/delete-user.command.js +18 -0
- package/build/frontend/commands/users/disable-user.command.ts.js +17 -0
- package/build/frontend/commands/users/enable-user.command.js +17 -0
- package/build/frontend/commands/users/get-all-users-v2.command.js +42 -0
- package/build/frontend/commands/users/get-all-users.command.js +49 -0
- package/build/frontend/commands/users/get-user-by-short-uuid.command.js +17 -0
- package/build/frontend/commands/users/get-user-by-subscription-uuid.command.js +17 -0
- package/build/frontend/commands/users/get-user-by-uuid.command.js +17 -0
- package/build/frontend/commands/users/index.js +27 -0
- package/build/frontend/commands/users/revoke-user-subscription.command.js +17 -0
- package/build/frontend/commands/users/update-user.command.js +57 -0
- package/build/frontend/commands/xray/get-config.command.js +15 -0
- package/build/frontend/commands/xray/index.js +18 -0
- package/build/frontend/commands/xray/update-config.command.js +16 -0
- package/{constants/errors/errors.ts → build/frontend/constants/errors/errors.js} +7 -5
- package/build/frontend/constants/errors/index.js +17 -0
- package/{constants/events/events.ts → build/frontend/constants/events/events.js} +4 -1
- package/build/frontend/constants/events/index.js +17 -0
- package/build/frontend/constants/hosts/alpn.js +9 -0
- package/build/frontend/constants/hosts/fingerprints.js +15 -0
- package/build/frontend/constants/hosts/index.js +18 -0
- package/build/frontend/constants/index.js +23 -0
- package/build/frontend/constants/nodes/cycle/cycle.js +8 -0
- package/build/frontend/constants/nodes/cycle/index.js +17 -0
- package/build/frontend/constants/nodes/index.js +18 -0
- package/build/frontend/constants/nodes/status/index.js +17 -0
- package/build/frontend/constants/nodes/status/status.constant.js +9 -0
- package/build/frontend/constants/roles/index.js +17 -0
- package/build/frontend/constants/roles/role.js +7 -0
- package/build/frontend/constants/templates/index.js +18 -0
- package/build/frontend/constants/templates/template-keys.js +10 -0
- package/build/frontend/constants/templates/user-statuses.js +9 -0
- package/build/frontend/constants/users/index.js +18 -0
- package/build/frontend/constants/users/reset-periods/index.js +17 -0
- package/build/frontend/constants/users/reset-periods/reset-periods.constant.js +11 -0
- package/build/frontend/constants/users/status/index.js +17 -0
- package/build/frontend/constants/users/status/status.constant.js +10 -0
- package/build/frontend/index.js +20 -0
- package/build/frontend/models/api-tokens.schema.js +12 -0
- package/build/frontend/models/auth.schema.js +7 -0
- package/build/frontend/models/base-stat.schema.js +9 -0
- package/build/frontend/models/hosts.schema.js +19 -0
- package/build/frontend/models/inbounds.schema.js +9 -0
- package/build/frontend/models/index.js +23 -0
- package/build/frontend/models/nodes.schema.js +28 -0
- package/build/frontend/models/users.schema.js +34 -0
- package/package.json +13 -5
- package/api/controllers/api-tokens.ts +0 -7
- package/api/controllers/auth.ts +0 -5
- package/api/controllers/hosts.ts +0 -10
- package/api/controllers/inbounds.ts +0 -5
- package/api/controllers/keygen.ts +0 -5
- package/api/controllers/subscription.ts +0 -6
- package/api/controllers/system.ts +0 -9
- package/api/controllers/xray.ts +0 -6
- package/api/routes.ts +0 -81
- package/commands/api-tokens/create.command.ts +0 -23
- package/commands/api-tokens/delete.command.ts +0 -19
- package/commands/api-tokens/find.command.ts +0 -14
- package/commands/auth/index.ts +0 -1
- package/commands/auth/login.command.ts +0 -21
- package/commands/hosts/create.command.ts +0 -49
- package/commands/hosts/delete.command.ts +0 -21
- package/commands/hosts/get-all.command.ts +0 -14
- package/commands/hosts/reorder.command.ts +0 -26
- package/commands/hosts/update.command.ts +0 -56
- package/commands/inbounds/get-inbounds.command.ts +0 -14
- package/commands/keygen/get-pubkey.command.ts +0 -15
- package/commands/nodes/create.command.ts +0 -40
- package/commands/nodes/delete.command.ts +0 -21
- package/commands/nodes/disable.command.ts +0 -20
- package/commands/nodes/enable.command.ts +0 -20
- package/commands/nodes/get-all.command.ts +0 -14
- package/commands/nodes/get-one.command.ts +0 -20
- package/commands/nodes/restart-all.command.ts +0 -14
- package/commands/nodes/restart.command.ts +0 -21
- package/commands/nodes/update.command.ts +0 -38
- package/commands/subscription/get-subscription-by-short-uuid.command.ts +0 -13
- package/commands/subscription/get-subscription-info-by-short-uuid.command.ts +0 -32
- package/commands/system/get-bandwidth-stats.command.ts +0 -26
- package/commands/system/get-nodes-statistics.ts +0 -27
- package/commands/system/get-stats.command.ts +0 -43
- package/commands/users/create-user.command.ts +0 -117
- package/commands/users/delete-user.command.ts +0 -20
- package/commands/users/disable-user.command.ts.ts +0 -19
- package/commands/users/enable-user.command.ts +0 -20
- package/commands/users/get-all-users-v2.command.ts +0 -62
- package/commands/users/get-all-users.command.ts +0 -62
- package/commands/users/get-user-by-short-uuid.command.ts +0 -20
- package/commands/users/get-user-by-subscription-uuid.command.ts +0 -20
- package/commands/users/get-user-by-uuid.command.ts +0 -20
- package/commands/users/revoke-user-subscription.command.ts +0 -20
- package/commands/users/update-user.command.ts +0 -60
- package/commands/xray/get-config.command.ts +0 -14
- package/commands/xray/update-config.command.ts +0 -19
- package/constants/errors/index.ts +0 -1
- package/constants/events/index.ts +0 -1
- package/constants/hosts/alpn.ts +0 -8
- package/constants/hosts/fingerprints.ts +0 -14
- package/constants/nodes/cycle/cycle.ts +0 -7
- package/constants/nodes/cycle/index.ts +0 -1
- package/constants/nodes/status/status.constant.ts +0 -8
- package/constants/roles/index.ts +0 -1
- package/constants/roles/role.ts +0 -7
- package/constants/templates/template-keys.ts +0 -8
- package/constants/templates/user-statuses.ts +0 -6
- package/constants/users/reset-periods/reset-periods.constant.ts +0 -10
- package/constants/users/status/status.constant.ts +0 -9
- package/models/api-tokens.schema.ts +0 -11
- package/models/auth.schema.ts +0 -5
- package/models/base-stat.schema.ts +0 -7
- package/models/hosts.schema.ts +0 -17
- package/models/inbounds.schema.ts +0 -7
- package/models/nodes.schema.ts +0 -28
- package/models/users.schema.ts +0 -38
- package/tsconfig.json +0 -103
- /package/build/{api → backend/api}/controllers/api-tokens.js +0 -0
- /package/build/{api → backend/api}/controllers/auth.js +0 -0
- /package/build/{api → backend/api}/controllers/hosts.js +0 -0
- /package/build/{api → backend/api}/controllers/inbounds.js +0 -0
- /package/build/{api → backend/api}/controllers/index.js +0 -0
- /package/build/{api → backend/api}/controllers/keygen.js +0 -0
- /package/build/{api → backend/api}/controllers/nodes.js +0 -0
- /package/build/{api → backend/api}/controllers/subscription.js +0 -0
- /package/build/{api → backend/api}/controllers/system.js +0 -0
- /package/build/{api → backend/api}/controllers/users.js +0 -0
- /package/build/{api → backend/api}/controllers/xray.js +0 -0
- /package/build/{api → backend/api}/index.js +0 -0
- /package/build/{api → backend/api}/routes.js +0 -0
- /package/build/{commands → backend/commands}/api-tokens/create.command.js +0 -0
- /package/build/{commands → backend/commands}/api-tokens/delete.command.js +0 -0
- /package/build/{commands → backend/commands}/api-tokens/find.command.js +0 -0
- /package/build/{commands → backend/commands}/api-tokens/index.js +0 -0
- /package/build/{commands → backend/commands}/auth/index.js +0 -0
- /package/build/{commands → backend/commands}/auth/login.command.js +0 -0
- /package/build/{commands → backend/commands}/hosts/create.command.js +0 -0
- /package/build/{commands → backend/commands}/hosts/delete.command.js +0 -0
- /package/build/{commands → backend/commands}/hosts/get-all.command.js +0 -0
- /package/build/{commands → backend/commands}/hosts/index.js +0 -0
- /package/build/{commands → backend/commands}/hosts/reorder.command.js +0 -0
- /package/build/{commands → backend/commands}/hosts/update.command.js +0 -0
- /package/build/{commands → backend/commands}/inbounds/get-inbounds.command.js +0 -0
- /package/build/{commands → backend/commands}/inbounds/index.js +0 -0
- /package/build/{commands → backend/commands}/index.js +0 -0
- /package/build/{commands → backend/commands}/keygen/get-pubkey.command.js +0 -0
- /package/build/{commands → backend/commands}/keygen/index.js +0 -0
- /package/build/{commands → backend/commands}/nodes/create.command.js +0 -0
- /package/build/{commands → backend/commands}/nodes/delete.command.js +0 -0
- /package/build/{commands → backend/commands}/nodes/disable.command.js +0 -0
- /package/build/{commands → backend/commands}/nodes/enable.command.js +0 -0
- /package/build/{commands → backend/commands}/nodes/get-all.command.js +0 -0
- /package/build/{commands → backend/commands}/nodes/get-one.command.js +0 -0
- /package/build/{commands → backend/commands}/nodes/index.js +0 -0
- /package/build/{commands → backend/commands}/nodes/restart-all.command.js +0 -0
- /package/build/{commands → backend/commands}/nodes/restart.command.js +0 -0
- /package/build/{commands → backend/commands}/nodes/update.command.js +0 -0
- /package/build/{commands → backend/commands}/subscription/get-subscription-by-short-uuid.command.js +0 -0
- /package/build/{commands → backend/commands}/subscription/get-subscription-info-by-short-uuid.command.js +0 -0
- /package/build/{commands → backend/commands}/subscription/index.js +0 -0
- /package/build/{commands → backend/commands}/system/get-bandwidth-stats.command.js +0 -0
- /package/build/{commands → backend/commands}/system/get-nodes-statistics.js +0 -0
- /package/build/{commands → backend/commands}/system/get-stats.command.js +0 -0
- /package/build/{commands → backend/commands}/system/index.js +0 -0
- /package/build/{commands → backend/commands}/users/create-user.command.js +0 -0
- /package/build/{commands → backend/commands}/users/delete-user.command.js +0 -0
- /package/build/{commands → backend/commands}/users/disable-user.command.ts.js +0 -0
- /package/build/{commands → backend/commands}/users/enable-user.command.js +0 -0
- /package/build/{commands → backend/commands}/users/get-all-users-v2.command.js +0 -0
- /package/build/{commands → backend/commands}/users/get-all-users.command.js +0 -0
- /package/build/{commands → backend/commands}/users/get-user-by-short-uuid.command.js +0 -0
- /package/build/{commands → backend/commands}/users/get-user-by-subscription-uuid.command.js +0 -0
- /package/build/{commands → backend/commands}/users/get-user-by-uuid.command.js +0 -0
- /package/build/{commands → backend/commands}/users/index.js +0 -0
- /package/build/{commands → backend/commands}/users/revoke-user-subscription.command.js +0 -0
- /package/build/{commands → backend/commands}/users/update-user.command.js +0 -0
- /package/build/{commands → backend/commands}/xray/get-config.command.js +0 -0
- /package/build/{commands → backend/commands}/xray/index.js +0 -0
- /package/build/{commands → backend/commands}/xray/update-config.command.js +0 -0
- /package/build/{constants → backend/constants}/errors/errors.js +0 -0
- /package/build/{constants → backend/constants}/errors/index.js +0 -0
- /package/build/{constants → backend/constants}/events/events.js +0 -0
- /package/build/{constants → backend/constants}/events/index.js +0 -0
- /package/build/{constants → backend/constants}/hosts/alpn.js +0 -0
- /package/build/{constants → backend/constants}/hosts/fingerprints.js +0 -0
- /package/build/{constants → backend/constants}/hosts/index.js +0 -0
- /package/build/{constants → backend/constants}/index.js +0 -0
- /package/build/{constants → backend/constants}/nodes/cycle/cycle.js +0 -0
- /package/build/{constants → backend/constants}/nodes/cycle/index.js +0 -0
- /package/build/{constants → backend/constants}/nodes/index.js +0 -0
- /package/build/{constants → backend/constants}/nodes/status/index.js +0 -0
- /package/build/{constants → backend/constants}/nodes/status/status.constant.js +0 -0
- /package/build/{constants → backend/constants}/roles/index.js +0 -0
- /package/build/{constants → backend/constants}/roles/role.js +0 -0
- /package/build/{constants → backend/constants}/templates/index.js +0 -0
- /package/build/{constants → backend/constants}/templates/template-keys.js +0 -0
- /package/build/{constants → backend/constants}/templates/user-statuses.js +0 -0
- /package/build/{constants → backend/constants}/users/index.js +0 -0
- /package/build/{constants → backend/constants}/users/reset-periods/index.js +0 -0
- /package/build/{constants → backend/constants}/users/reset-periods/reset-periods.constant.js +0 -0
- /package/build/{constants → backend/constants}/users/status/index.js +0 -0
- /package/build/{constants → backend/constants}/users/status/status.constant.js +0 -0
- /package/build/{index.js → backend/index.js} +0 -0
- /package/build/{models → backend/models}/api-tokens.schema.js +0 -0
- /package/build/{models → backend/models}/auth.schema.js +0 -0
- /package/build/{models → backend/models}/base-stat.schema.js +0 -0
- /package/build/{models → backend/models}/hosts.schema.js +0 -0
- /package/build/{models → backend/models}/inbounds.schema.js +0 -0
- /package/build/{models → backend/models}/index.js +0 -0
- /package/build/{models → backend/models}/nodes.schema.js +0 -0
- /package/build/{models → backend/models}/users.schema.js +0 -0
@@ -0,0 +1,155 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare namespace EnableUserCommand {
|
3
|
+
const url: (uuid: string) => string;
|
4
|
+
const TSQ_url: string;
|
5
|
+
const RequestSchema: z.ZodObject<{
|
6
|
+
uuid: z.ZodString;
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
8
|
+
uuid: string;
|
9
|
+
}, {
|
10
|
+
uuid: string;
|
11
|
+
}>;
|
12
|
+
type Request = z.infer<typeof RequestSchema>;
|
13
|
+
const ResponseSchema: z.ZodObject<{
|
14
|
+
response: z.ZodObject<{
|
15
|
+
uuid: z.ZodString;
|
16
|
+
subscriptionUuid: z.ZodString;
|
17
|
+
shortUuid: z.ZodString;
|
18
|
+
username: z.ZodString;
|
19
|
+
status: z.ZodDefault<z.ZodEnum<["DISABLED" | "ACTIVE" | "LIMITED" | "EXPIRED", ...("DISABLED" | "ACTIVE" | "LIMITED" | "EXPIRED")[]]>>;
|
20
|
+
usedTrafficBytes: z.ZodDefault<z.ZodNumber>;
|
21
|
+
trafficLimitBytes: z.ZodDefault<z.ZodNumber>;
|
22
|
+
trafficLimitStrategy: z.ZodDefault<z.ZodEnum<["MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK", ...("MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK")[]]>>;
|
23
|
+
subLastUserAgent: z.ZodNullable<z.ZodString>;
|
24
|
+
subLastOpenedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
25
|
+
expireAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
26
|
+
onlineAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
27
|
+
subRevokedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
28
|
+
lastTrafficResetAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
29
|
+
trojanPassword: z.ZodString;
|
30
|
+
vlessUuid: z.ZodString;
|
31
|
+
ssPassword: z.ZodString;
|
32
|
+
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
33
|
+
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
34
|
+
activeUserInbounds: z.ZodArray<z.ZodObject<{
|
35
|
+
uuid: z.ZodString;
|
36
|
+
tag: z.ZodString;
|
37
|
+
type: z.ZodString;
|
38
|
+
}, "strip", z.ZodTypeAny, {
|
39
|
+
uuid: string;
|
40
|
+
type: string;
|
41
|
+
tag: string;
|
42
|
+
}, {
|
43
|
+
uuid: string;
|
44
|
+
type: string;
|
45
|
+
tag: string;
|
46
|
+
}>, "many">;
|
47
|
+
}, "strip", z.ZodTypeAny, {
|
48
|
+
uuid: string;
|
49
|
+
status: "DISABLED" | "ACTIVE" | "LIMITED" | "EXPIRED";
|
50
|
+
createdAt: Date;
|
51
|
+
updatedAt: Date;
|
52
|
+
username: string;
|
53
|
+
trafficLimitBytes: number;
|
54
|
+
subscriptionUuid: string;
|
55
|
+
shortUuid: string;
|
56
|
+
usedTrafficBytes: number;
|
57
|
+
trafficLimitStrategy: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK";
|
58
|
+
subLastUserAgent: string | null;
|
59
|
+
subLastOpenedAt: Date | null;
|
60
|
+
expireAt: Date | null;
|
61
|
+
onlineAt: Date | null;
|
62
|
+
subRevokedAt: Date | null;
|
63
|
+
lastTrafficResetAt: Date | null;
|
64
|
+
trojanPassword: string;
|
65
|
+
vlessUuid: string;
|
66
|
+
ssPassword: string;
|
67
|
+
activeUserInbounds: {
|
68
|
+
uuid: string;
|
69
|
+
type: string;
|
70
|
+
tag: string;
|
71
|
+
}[];
|
72
|
+
}, {
|
73
|
+
uuid: string;
|
74
|
+
createdAt: string;
|
75
|
+
updatedAt: string;
|
76
|
+
username: string;
|
77
|
+
subscriptionUuid: string;
|
78
|
+
shortUuid: string;
|
79
|
+
subLastUserAgent: string | null;
|
80
|
+
subLastOpenedAt: string | null;
|
81
|
+
expireAt: string | null;
|
82
|
+
onlineAt: string | null;
|
83
|
+
subRevokedAt: string | null;
|
84
|
+
lastTrafficResetAt: string | null;
|
85
|
+
trojanPassword: string;
|
86
|
+
vlessUuid: string;
|
87
|
+
ssPassword: string;
|
88
|
+
activeUserInbounds: {
|
89
|
+
uuid: string;
|
90
|
+
type: string;
|
91
|
+
tag: string;
|
92
|
+
}[];
|
93
|
+
status?: "DISABLED" | "ACTIVE" | "LIMITED" | "EXPIRED" | undefined;
|
94
|
+
trafficLimitBytes?: number | undefined;
|
95
|
+
usedTrafficBytes?: number | undefined;
|
96
|
+
trafficLimitStrategy?: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | undefined;
|
97
|
+
}>;
|
98
|
+
}, "strip", z.ZodTypeAny, {
|
99
|
+
response: {
|
100
|
+
uuid: string;
|
101
|
+
status: "DISABLED" | "ACTIVE" | "LIMITED" | "EXPIRED";
|
102
|
+
createdAt: Date;
|
103
|
+
updatedAt: Date;
|
104
|
+
username: string;
|
105
|
+
trafficLimitBytes: number;
|
106
|
+
subscriptionUuid: string;
|
107
|
+
shortUuid: string;
|
108
|
+
usedTrafficBytes: number;
|
109
|
+
trafficLimitStrategy: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK";
|
110
|
+
subLastUserAgent: string | null;
|
111
|
+
subLastOpenedAt: Date | null;
|
112
|
+
expireAt: Date | null;
|
113
|
+
onlineAt: Date | null;
|
114
|
+
subRevokedAt: Date | null;
|
115
|
+
lastTrafficResetAt: Date | null;
|
116
|
+
trojanPassword: string;
|
117
|
+
vlessUuid: string;
|
118
|
+
ssPassword: string;
|
119
|
+
activeUserInbounds: {
|
120
|
+
uuid: string;
|
121
|
+
type: string;
|
122
|
+
tag: string;
|
123
|
+
}[];
|
124
|
+
};
|
125
|
+
}, {
|
126
|
+
response: {
|
127
|
+
uuid: string;
|
128
|
+
createdAt: string;
|
129
|
+
updatedAt: string;
|
130
|
+
username: string;
|
131
|
+
subscriptionUuid: string;
|
132
|
+
shortUuid: string;
|
133
|
+
subLastUserAgent: string | null;
|
134
|
+
subLastOpenedAt: string | null;
|
135
|
+
expireAt: string | null;
|
136
|
+
onlineAt: string | null;
|
137
|
+
subRevokedAt: string | null;
|
138
|
+
lastTrafficResetAt: string | null;
|
139
|
+
trojanPassword: string;
|
140
|
+
vlessUuid: string;
|
141
|
+
ssPassword: string;
|
142
|
+
activeUserInbounds: {
|
143
|
+
uuid: string;
|
144
|
+
type: string;
|
145
|
+
tag: string;
|
146
|
+
}[];
|
147
|
+
status?: "DISABLED" | "ACTIVE" | "LIMITED" | "EXPIRED" | undefined;
|
148
|
+
trafficLimitBytes?: number | undefined;
|
149
|
+
usedTrafficBytes?: number | undefined;
|
150
|
+
trafficLimitStrategy?: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | undefined;
|
151
|
+
};
|
152
|
+
}>;
|
153
|
+
type Response = z.infer<typeof ResponseSchema>;
|
154
|
+
}
|
155
|
+
//# sourceMappingURL=enable-user.command.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"enable-user.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/enable-user.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,0BAA6B,CAAC;IACvC,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
@@ -0,0 +1,273 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare namespace GetAllUsersV2Command {
|
3
|
+
const url: "/api/users/v2";
|
4
|
+
const TSQ_url: "/api/users/v2";
|
5
|
+
const RequestQuerySchema: z.ZodObject<{
|
6
|
+
start: z.ZodOptional<z.ZodNumber>;
|
7
|
+
size: z.ZodOptional<z.ZodNumber>;
|
8
|
+
filters: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
|
9
|
+
id: z.ZodString;
|
10
|
+
value: z.ZodUnknown;
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
12
|
+
id: string;
|
13
|
+
value?: unknown;
|
14
|
+
}, {
|
15
|
+
id: string;
|
16
|
+
value?: unknown;
|
17
|
+
}>, "many">, {
|
18
|
+
id: string;
|
19
|
+
value?: unknown;
|
20
|
+
}[], unknown>>;
|
21
|
+
filterModes: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, unknown>>;
|
22
|
+
globalFilterMode: z.ZodOptional<z.ZodString>;
|
23
|
+
sorting: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
|
24
|
+
id: z.ZodString;
|
25
|
+
desc: z.ZodBoolean;
|
26
|
+
}, "strip", z.ZodTypeAny, {
|
27
|
+
id: string;
|
28
|
+
desc: boolean;
|
29
|
+
}, {
|
30
|
+
id: string;
|
31
|
+
desc: boolean;
|
32
|
+
}>, "many">, {
|
33
|
+
id: string;
|
34
|
+
desc: boolean;
|
35
|
+
}[], unknown>>;
|
36
|
+
}, "strip", z.ZodTypeAny, {
|
37
|
+
start?: number | undefined;
|
38
|
+
size?: number | undefined;
|
39
|
+
filters?: {
|
40
|
+
id: string;
|
41
|
+
value?: unknown;
|
42
|
+
}[] | undefined;
|
43
|
+
filterModes?: Record<string, string> | undefined;
|
44
|
+
globalFilterMode?: string | undefined;
|
45
|
+
sorting?: {
|
46
|
+
id: string;
|
47
|
+
desc: boolean;
|
48
|
+
}[] | undefined;
|
49
|
+
}, {
|
50
|
+
start?: number | undefined;
|
51
|
+
size?: number | undefined;
|
52
|
+
filters?: unknown;
|
53
|
+
filterModes?: unknown;
|
54
|
+
globalFilterMode?: string | undefined;
|
55
|
+
sorting?: unknown;
|
56
|
+
}>;
|
57
|
+
type RequestQuery = z.infer<typeof RequestQuerySchema>;
|
58
|
+
const ResponseSchema: z.ZodObject<{
|
59
|
+
response: z.ZodObject<{
|
60
|
+
users: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
|
61
|
+
uuid: z.ZodString;
|
62
|
+
subscriptionUuid: z.ZodString;
|
63
|
+
shortUuid: z.ZodString;
|
64
|
+
username: z.ZodString;
|
65
|
+
status: z.ZodDefault<z.ZodEnum<["DISABLED" | "ACTIVE" | "LIMITED" | "EXPIRED", ...("DISABLED" | "ACTIVE" | "LIMITED" | "EXPIRED")[]]>>;
|
66
|
+
usedTrafficBytes: z.ZodDefault<z.ZodNumber>;
|
67
|
+
trafficLimitBytes: z.ZodDefault<z.ZodNumber>;
|
68
|
+
trafficLimitStrategy: z.ZodDefault<z.ZodEnum<["MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK", ...("MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK")[]]>>;
|
69
|
+
subLastUserAgent: z.ZodNullable<z.ZodString>;
|
70
|
+
subLastOpenedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
71
|
+
expireAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
72
|
+
onlineAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
73
|
+
subRevokedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
74
|
+
lastTrafficResetAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
75
|
+
trojanPassword: z.ZodString;
|
76
|
+
vlessUuid: z.ZodString;
|
77
|
+
ssPassword: z.ZodString;
|
78
|
+
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
79
|
+
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
80
|
+
activeUserInbounds: z.ZodArray<z.ZodObject<{
|
81
|
+
uuid: z.ZodString;
|
82
|
+
tag: z.ZodString;
|
83
|
+
type: z.ZodString;
|
84
|
+
}, "strip", z.ZodTypeAny, {
|
85
|
+
uuid: string;
|
86
|
+
type: string;
|
87
|
+
tag: string;
|
88
|
+
}, {
|
89
|
+
uuid: string;
|
90
|
+
type: string;
|
91
|
+
tag: string;
|
92
|
+
}>, "many">;
|
93
|
+
}, {
|
94
|
+
totalUsedBytes: z.ZodString;
|
95
|
+
}>, "strip", z.ZodTypeAny, {
|
96
|
+
uuid: string;
|
97
|
+
status: "DISABLED" | "ACTIVE" | "LIMITED" | "EXPIRED";
|
98
|
+
createdAt: Date;
|
99
|
+
updatedAt: Date;
|
100
|
+
username: string;
|
101
|
+
trafficLimitBytes: number;
|
102
|
+
subscriptionUuid: string;
|
103
|
+
shortUuid: string;
|
104
|
+
usedTrafficBytes: number;
|
105
|
+
trafficLimitStrategy: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK";
|
106
|
+
subLastUserAgent: string | null;
|
107
|
+
subLastOpenedAt: Date | null;
|
108
|
+
expireAt: Date | null;
|
109
|
+
onlineAt: Date | null;
|
110
|
+
subRevokedAt: Date | null;
|
111
|
+
lastTrafficResetAt: Date | null;
|
112
|
+
trojanPassword: string;
|
113
|
+
vlessUuid: string;
|
114
|
+
ssPassword: string;
|
115
|
+
activeUserInbounds: {
|
116
|
+
uuid: string;
|
117
|
+
type: string;
|
118
|
+
tag: string;
|
119
|
+
}[];
|
120
|
+
totalUsedBytes: string;
|
121
|
+
}, {
|
122
|
+
uuid: string;
|
123
|
+
createdAt: string;
|
124
|
+
updatedAt: string;
|
125
|
+
username: string;
|
126
|
+
subscriptionUuid: string;
|
127
|
+
shortUuid: string;
|
128
|
+
subLastUserAgent: string | null;
|
129
|
+
subLastOpenedAt: string | null;
|
130
|
+
expireAt: string | null;
|
131
|
+
onlineAt: string | null;
|
132
|
+
subRevokedAt: string | null;
|
133
|
+
lastTrafficResetAt: string | null;
|
134
|
+
trojanPassword: string;
|
135
|
+
vlessUuid: string;
|
136
|
+
ssPassword: string;
|
137
|
+
activeUserInbounds: {
|
138
|
+
uuid: string;
|
139
|
+
type: string;
|
140
|
+
tag: string;
|
141
|
+
}[];
|
142
|
+
totalUsedBytes: string;
|
143
|
+
status?: "DISABLED" | "ACTIVE" | "LIMITED" | "EXPIRED" | undefined;
|
144
|
+
trafficLimitBytes?: number | undefined;
|
145
|
+
usedTrafficBytes?: number | undefined;
|
146
|
+
trafficLimitStrategy?: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | undefined;
|
147
|
+
}>, "many">;
|
148
|
+
total: z.ZodNumber;
|
149
|
+
}, "strip", z.ZodTypeAny, {
|
150
|
+
users: {
|
151
|
+
uuid: string;
|
152
|
+
status: "DISABLED" | "ACTIVE" | "LIMITED" | "EXPIRED";
|
153
|
+
createdAt: Date;
|
154
|
+
updatedAt: Date;
|
155
|
+
username: string;
|
156
|
+
trafficLimitBytes: number;
|
157
|
+
subscriptionUuid: string;
|
158
|
+
shortUuid: string;
|
159
|
+
usedTrafficBytes: number;
|
160
|
+
trafficLimitStrategy: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK";
|
161
|
+
subLastUserAgent: string | null;
|
162
|
+
subLastOpenedAt: Date | null;
|
163
|
+
expireAt: Date | null;
|
164
|
+
onlineAt: Date | null;
|
165
|
+
subRevokedAt: Date | null;
|
166
|
+
lastTrafficResetAt: Date | null;
|
167
|
+
trojanPassword: string;
|
168
|
+
vlessUuid: string;
|
169
|
+
ssPassword: string;
|
170
|
+
activeUserInbounds: {
|
171
|
+
uuid: string;
|
172
|
+
type: string;
|
173
|
+
tag: string;
|
174
|
+
}[];
|
175
|
+
totalUsedBytes: string;
|
176
|
+
}[];
|
177
|
+
total: number;
|
178
|
+
}, {
|
179
|
+
users: {
|
180
|
+
uuid: string;
|
181
|
+
createdAt: string;
|
182
|
+
updatedAt: string;
|
183
|
+
username: string;
|
184
|
+
subscriptionUuid: string;
|
185
|
+
shortUuid: string;
|
186
|
+
subLastUserAgent: string | null;
|
187
|
+
subLastOpenedAt: string | null;
|
188
|
+
expireAt: string | null;
|
189
|
+
onlineAt: string | null;
|
190
|
+
subRevokedAt: string | null;
|
191
|
+
lastTrafficResetAt: string | null;
|
192
|
+
trojanPassword: string;
|
193
|
+
vlessUuid: string;
|
194
|
+
ssPassword: string;
|
195
|
+
activeUserInbounds: {
|
196
|
+
uuid: string;
|
197
|
+
type: string;
|
198
|
+
tag: string;
|
199
|
+
}[];
|
200
|
+
totalUsedBytes: string;
|
201
|
+
status?: "DISABLED" | "ACTIVE" | "LIMITED" | "EXPIRED" | undefined;
|
202
|
+
trafficLimitBytes?: number | undefined;
|
203
|
+
usedTrafficBytes?: number | undefined;
|
204
|
+
trafficLimitStrategy?: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | undefined;
|
205
|
+
}[];
|
206
|
+
total: number;
|
207
|
+
}>;
|
208
|
+
}, "strip", z.ZodTypeAny, {
|
209
|
+
response: {
|
210
|
+
users: {
|
211
|
+
uuid: string;
|
212
|
+
status: "DISABLED" | "ACTIVE" | "LIMITED" | "EXPIRED";
|
213
|
+
createdAt: Date;
|
214
|
+
updatedAt: Date;
|
215
|
+
username: string;
|
216
|
+
trafficLimitBytes: number;
|
217
|
+
subscriptionUuid: string;
|
218
|
+
shortUuid: string;
|
219
|
+
usedTrafficBytes: number;
|
220
|
+
trafficLimitStrategy: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK";
|
221
|
+
subLastUserAgent: string | null;
|
222
|
+
subLastOpenedAt: Date | null;
|
223
|
+
expireAt: Date | null;
|
224
|
+
onlineAt: Date | null;
|
225
|
+
subRevokedAt: Date | null;
|
226
|
+
lastTrafficResetAt: Date | null;
|
227
|
+
trojanPassword: string;
|
228
|
+
vlessUuid: string;
|
229
|
+
ssPassword: string;
|
230
|
+
activeUserInbounds: {
|
231
|
+
uuid: string;
|
232
|
+
type: string;
|
233
|
+
tag: string;
|
234
|
+
}[];
|
235
|
+
totalUsedBytes: string;
|
236
|
+
}[];
|
237
|
+
total: number;
|
238
|
+
};
|
239
|
+
}, {
|
240
|
+
response: {
|
241
|
+
users: {
|
242
|
+
uuid: string;
|
243
|
+
createdAt: string;
|
244
|
+
updatedAt: string;
|
245
|
+
username: string;
|
246
|
+
subscriptionUuid: string;
|
247
|
+
shortUuid: string;
|
248
|
+
subLastUserAgent: string | null;
|
249
|
+
subLastOpenedAt: string | null;
|
250
|
+
expireAt: string | null;
|
251
|
+
onlineAt: string | null;
|
252
|
+
subRevokedAt: string | null;
|
253
|
+
lastTrafficResetAt: string | null;
|
254
|
+
trojanPassword: string;
|
255
|
+
vlessUuid: string;
|
256
|
+
ssPassword: string;
|
257
|
+
activeUserInbounds: {
|
258
|
+
uuid: string;
|
259
|
+
type: string;
|
260
|
+
tag: string;
|
261
|
+
}[];
|
262
|
+
totalUsedBytes: string;
|
263
|
+
status?: "DISABLED" | "ACTIVE" | "LIMITED" | "EXPIRED" | undefined;
|
264
|
+
trafficLimitBytes?: number | undefined;
|
265
|
+
usedTrafficBytes?: number | undefined;
|
266
|
+
trafficLimitStrategy?: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | undefined;
|
267
|
+
}[];
|
268
|
+
total: number;
|
269
|
+
};
|
270
|
+
}>;
|
271
|
+
type Response = z.infer<typeof ResponseSchema>;
|
272
|
+
}
|
273
|
+
//# sourceMappingURL=get-all-users-v2.command.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"get-all-users-v2.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/get-all-users-v2.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,yBAAiB,oBAAoB,CAAC;IAC3B,MAAM,GAAG,iBAA4B,CAAC;IACtC,MAAM,OAAO,iBAAM,CAAC;IAapB,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAyB7B,CAAC;IAEH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAEvD,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAUzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
@@ -0,0 +1,247 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare namespace GetAllUsersCommand {
|
3
|
+
const url: "/api/users/";
|
4
|
+
const TSQ_url: "/api/users/";
|
5
|
+
const SortableFields: readonly ["username", "status", "expireAt", "createdAt", "onlineAt", "usedTrafficBytes", "trafficLimitBytes"];
|
6
|
+
const SearchableFields: readonly ["username", "shortUuid", "subscriptionUuid", "uuid", "status"];
|
7
|
+
type SortableField = (typeof SortableFields)[number];
|
8
|
+
type SearchableField = (typeof SearchableFields)[number];
|
9
|
+
const RequestQuerySchema: z.ZodObject<{
|
10
|
+
limit: z.ZodEffects<z.ZodDefault<z.ZodString>, number, string | undefined>;
|
11
|
+
offset: z.ZodEffects<z.ZodDefault<z.ZodString>, number, string | undefined>;
|
12
|
+
orderBy: z.ZodDefault<z.ZodEnum<["username", "status", "expireAt", "createdAt", "onlineAt", "usedTrafficBytes", "trafficLimitBytes"]>>;
|
13
|
+
orderDir: z.ZodDefault<z.ZodEnum<["asc", "desc"]>>;
|
14
|
+
search: z.ZodOptional<z.ZodString>;
|
15
|
+
searchBy: z.ZodDefault<z.ZodEnum<["username", "shortUuid", "subscriptionUuid", "uuid", "status"]>>;
|
16
|
+
}, "strip", z.ZodTypeAny, {
|
17
|
+
limit: number;
|
18
|
+
offset: number;
|
19
|
+
orderBy: "status" | "createdAt" | "username" | "trafficLimitBytes" | "usedTrafficBytes" | "expireAt" | "onlineAt";
|
20
|
+
orderDir: "desc" | "asc";
|
21
|
+
searchBy: "uuid" | "status" | "username" | "subscriptionUuid" | "shortUuid";
|
22
|
+
search?: string | undefined;
|
23
|
+
}, {
|
24
|
+
limit?: string | undefined;
|
25
|
+
offset?: string | undefined;
|
26
|
+
orderBy?: "status" | "createdAt" | "username" | "trafficLimitBytes" | "usedTrafficBytes" | "expireAt" | "onlineAt" | undefined;
|
27
|
+
orderDir?: "desc" | "asc" | undefined;
|
28
|
+
search?: string | undefined;
|
29
|
+
searchBy?: "uuid" | "status" | "username" | "subscriptionUuid" | "shortUuid" | undefined;
|
30
|
+
}>;
|
31
|
+
type RequestQuery = z.infer<typeof RequestQuerySchema>;
|
32
|
+
const ResponseSchema: z.ZodObject<{
|
33
|
+
response: z.ZodObject<{
|
34
|
+
users: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
|
35
|
+
uuid: z.ZodString;
|
36
|
+
subscriptionUuid: z.ZodString;
|
37
|
+
shortUuid: z.ZodString;
|
38
|
+
username: z.ZodString;
|
39
|
+
status: z.ZodDefault<z.ZodEnum<["DISABLED" | "ACTIVE" | "LIMITED" | "EXPIRED", ...("DISABLED" | "ACTIVE" | "LIMITED" | "EXPIRED")[]]>>;
|
40
|
+
usedTrafficBytes: z.ZodDefault<z.ZodNumber>;
|
41
|
+
trafficLimitBytes: z.ZodDefault<z.ZodNumber>;
|
42
|
+
trafficLimitStrategy: z.ZodDefault<z.ZodEnum<["MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK", ...("MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK")[]]>>;
|
43
|
+
subLastUserAgent: z.ZodNullable<z.ZodString>;
|
44
|
+
subLastOpenedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
45
|
+
expireAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
46
|
+
onlineAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
47
|
+
subRevokedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
48
|
+
lastTrafficResetAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
49
|
+
trojanPassword: z.ZodString;
|
50
|
+
vlessUuid: z.ZodString;
|
51
|
+
ssPassword: z.ZodString;
|
52
|
+
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
53
|
+
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
54
|
+
activeUserInbounds: z.ZodArray<z.ZodObject<{
|
55
|
+
uuid: z.ZodString;
|
56
|
+
tag: z.ZodString;
|
57
|
+
type: z.ZodString;
|
58
|
+
}, "strip", z.ZodTypeAny, {
|
59
|
+
uuid: string;
|
60
|
+
type: string;
|
61
|
+
tag: string;
|
62
|
+
}, {
|
63
|
+
uuid: string;
|
64
|
+
type: string;
|
65
|
+
tag: string;
|
66
|
+
}>, "many">;
|
67
|
+
}, {
|
68
|
+
totalUsedBytes: z.ZodString;
|
69
|
+
}>, "strip", z.ZodTypeAny, {
|
70
|
+
uuid: string;
|
71
|
+
status: "DISABLED" | "ACTIVE" | "LIMITED" | "EXPIRED";
|
72
|
+
createdAt: Date;
|
73
|
+
updatedAt: Date;
|
74
|
+
username: string;
|
75
|
+
trafficLimitBytes: number;
|
76
|
+
subscriptionUuid: string;
|
77
|
+
shortUuid: string;
|
78
|
+
usedTrafficBytes: number;
|
79
|
+
trafficLimitStrategy: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK";
|
80
|
+
subLastUserAgent: string | null;
|
81
|
+
subLastOpenedAt: Date | null;
|
82
|
+
expireAt: Date | null;
|
83
|
+
onlineAt: Date | null;
|
84
|
+
subRevokedAt: Date | null;
|
85
|
+
lastTrafficResetAt: Date | null;
|
86
|
+
trojanPassword: string;
|
87
|
+
vlessUuid: string;
|
88
|
+
ssPassword: string;
|
89
|
+
activeUserInbounds: {
|
90
|
+
uuid: string;
|
91
|
+
type: string;
|
92
|
+
tag: string;
|
93
|
+
}[];
|
94
|
+
totalUsedBytes: string;
|
95
|
+
}, {
|
96
|
+
uuid: string;
|
97
|
+
createdAt: string;
|
98
|
+
updatedAt: string;
|
99
|
+
username: string;
|
100
|
+
subscriptionUuid: string;
|
101
|
+
shortUuid: string;
|
102
|
+
subLastUserAgent: string | null;
|
103
|
+
subLastOpenedAt: string | null;
|
104
|
+
expireAt: string | null;
|
105
|
+
onlineAt: string | null;
|
106
|
+
subRevokedAt: string | null;
|
107
|
+
lastTrafficResetAt: string | null;
|
108
|
+
trojanPassword: string;
|
109
|
+
vlessUuid: string;
|
110
|
+
ssPassword: string;
|
111
|
+
activeUserInbounds: {
|
112
|
+
uuid: string;
|
113
|
+
type: string;
|
114
|
+
tag: string;
|
115
|
+
}[];
|
116
|
+
totalUsedBytes: string;
|
117
|
+
status?: "DISABLED" | "ACTIVE" | "LIMITED" | "EXPIRED" | undefined;
|
118
|
+
trafficLimitBytes?: number | undefined;
|
119
|
+
usedTrafficBytes?: number | undefined;
|
120
|
+
trafficLimitStrategy?: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | undefined;
|
121
|
+
}>, "many">;
|
122
|
+
total: z.ZodNumber;
|
123
|
+
}, "strip", z.ZodTypeAny, {
|
124
|
+
users: {
|
125
|
+
uuid: string;
|
126
|
+
status: "DISABLED" | "ACTIVE" | "LIMITED" | "EXPIRED";
|
127
|
+
createdAt: Date;
|
128
|
+
updatedAt: Date;
|
129
|
+
username: string;
|
130
|
+
trafficLimitBytes: number;
|
131
|
+
subscriptionUuid: string;
|
132
|
+
shortUuid: string;
|
133
|
+
usedTrafficBytes: number;
|
134
|
+
trafficLimitStrategy: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK";
|
135
|
+
subLastUserAgent: string | null;
|
136
|
+
subLastOpenedAt: Date | null;
|
137
|
+
expireAt: Date | null;
|
138
|
+
onlineAt: Date | null;
|
139
|
+
subRevokedAt: Date | null;
|
140
|
+
lastTrafficResetAt: Date | null;
|
141
|
+
trojanPassword: string;
|
142
|
+
vlessUuid: string;
|
143
|
+
ssPassword: string;
|
144
|
+
activeUserInbounds: {
|
145
|
+
uuid: string;
|
146
|
+
type: string;
|
147
|
+
tag: string;
|
148
|
+
}[];
|
149
|
+
totalUsedBytes: string;
|
150
|
+
}[];
|
151
|
+
total: number;
|
152
|
+
}, {
|
153
|
+
users: {
|
154
|
+
uuid: string;
|
155
|
+
createdAt: string;
|
156
|
+
updatedAt: string;
|
157
|
+
username: string;
|
158
|
+
subscriptionUuid: string;
|
159
|
+
shortUuid: string;
|
160
|
+
subLastUserAgent: string | null;
|
161
|
+
subLastOpenedAt: string | null;
|
162
|
+
expireAt: string | null;
|
163
|
+
onlineAt: string | null;
|
164
|
+
subRevokedAt: string | null;
|
165
|
+
lastTrafficResetAt: string | null;
|
166
|
+
trojanPassword: string;
|
167
|
+
vlessUuid: string;
|
168
|
+
ssPassword: string;
|
169
|
+
activeUserInbounds: {
|
170
|
+
uuid: string;
|
171
|
+
type: string;
|
172
|
+
tag: string;
|
173
|
+
}[];
|
174
|
+
totalUsedBytes: string;
|
175
|
+
status?: "DISABLED" | "ACTIVE" | "LIMITED" | "EXPIRED" | undefined;
|
176
|
+
trafficLimitBytes?: number | undefined;
|
177
|
+
usedTrafficBytes?: number | undefined;
|
178
|
+
trafficLimitStrategy?: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | undefined;
|
179
|
+
}[];
|
180
|
+
total: number;
|
181
|
+
}>;
|
182
|
+
}, "strip", z.ZodTypeAny, {
|
183
|
+
response: {
|
184
|
+
users: {
|
185
|
+
uuid: string;
|
186
|
+
status: "DISABLED" | "ACTIVE" | "LIMITED" | "EXPIRED";
|
187
|
+
createdAt: Date;
|
188
|
+
updatedAt: Date;
|
189
|
+
username: string;
|
190
|
+
trafficLimitBytes: number;
|
191
|
+
subscriptionUuid: string;
|
192
|
+
shortUuid: string;
|
193
|
+
usedTrafficBytes: number;
|
194
|
+
trafficLimitStrategy: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK";
|
195
|
+
subLastUserAgent: string | null;
|
196
|
+
subLastOpenedAt: Date | null;
|
197
|
+
expireAt: Date | null;
|
198
|
+
onlineAt: Date | null;
|
199
|
+
subRevokedAt: Date | null;
|
200
|
+
lastTrafficResetAt: Date | null;
|
201
|
+
trojanPassword: string;
|
202
|
+
vlessUuid: string;
|
203
|
+
ssPassword: string;
|
204
|
+
activeUserInbounds: {
|
205
|
+
uuid: string;
|
206
|
+
type: string;
|
207
|
+
tag: string;
|
208
|
+
}[];
|
209
|
+
totalUsedBytes: string;
|
210
|
+
}[];
|
211
|
+
total: number;
|
212
|
+
};
|
213
|
+
}, {
|
214
|
+
response: {
|
215
|
+
users: {
|
216
|
+
uuid: string;
|
217
|
+
createdAt: string;
|
218
|
+
updatedAt: string;
|
219
|
+
username: string;
|
220
|
+
subscriptionUuid: string;
|
221
|
+
shortUuid: string;
|
222
|
+
subLastUserAgent: string | null;
|
223
|
+
subLastOpenedAt: string | null;
|
224
|
+
expireAt: string | null;
|
225
|
+
onlineAt: string | null;
|
226
|
+
subRevokedAt: string | null;
|
227
|
+
lastTrafficResetAt: string | null;
|
228
|
+
trojanPassword: string;
|
229
|
+
vlessUuid: string;
|
230
|
+
ssPassword: string;
|
231
|
+
activeUserInbounds: {
|
232
|
+
uuid: string;
|
233
|
+
type: string;
|
234
|
+
tag: string;
|
235
|
+
}[];
|
236
|
+
totalUsedBytes: string;
|
237
|
+
status?: "DISABLED" | "ACTIVE" | "LIMITED" | "EXPIRED" | undefined;
|
238
|
+
trafficLimitBytes?: number | undefined;
|
239
|
+
usedTrafficBytes?: number | undefined;
|
240
|
+
trafficLimitStrategy?: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | undefined;
|
241
|
+
}[];
|
242
|
+
total: number;
|
243
|
+
};
|
244
|
+
}>;
|
245
|
+
type Response = z.infer<typeof ResponseSchema>;
|
246
|
+
}
|
247
|
+
//# sourceMappingURL=get-all-users.command.d.ts.map
|