@remnawave/backend-contract 0.0.57 → 0.0.61
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 +16 -0
- package/build/backend/api/controllers/users.d.ts.map +1 -0
- package/build/{api → backend/api}/controllers/users.js +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 +64 -0
- package/build/backend/api/routes.d.ts.map +1 -0
- package/build/{api → backend/api}/routes.js +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 +196 -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 +160 -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 +160 -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 +280 -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 +254 -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 +160 -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 +160 -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-username.command.d.ts +160 -0
- package/build/backend/commands/users/get-user-by-username.command.d.ts.map +1 -0
- package/build/backend/commands/users/get-user-by-username.command.js +17 -0
- package/build/backend/commands/users/get-user-by-uuid.command.d.ts +160 -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} +2 -0
- package/build/backend/commands/users/index.d.ts.map +1 -0
- package/build/{commands → backend/commands}/users/index.js +1 -0
- package/build/backend/commands/users/revoke-user-subscription.command.d.ts +160 -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 +208 -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 +89 -0
- package/build/backend/models/users.schema.d.ts.map +1 -0
- package/build/{models → backend/models}/users.schema.js +2 -1
- 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} +7 -4
- package/build/frontend/api/controllers/xray.js +8 -0
- package/build/frontend/api/index.js +18 -0
- package/build/frontend/api/routes.js +100 -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-username.command.js +17 -0
- package/build/frontend/commands/users/get-user-by-uuid.command.js +17 -0
- package/build/frontend/commands/users/index.js +28 -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 +35 -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/xray.js +0 -0
- /package/build/{api → backend/api}/index.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/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
@@ -0,0 +1,208 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare namespace UpdateUserCommand {
|
3
|
+
const url: "/api/users/update";
|
4
|
+
const TSQ_url: "/api/users/update";
|
5
|
+
const RequestSchema: z.ZodObject<z.objectUtil.extendShape<Pick<{
|
6
|
+
uuid: z.ZodString;
|
7
|
+
subscriptionUuid: z.ZodString;
|
8
|
+
shortUuid: z.ZodString;
|
9
|
+
username: z.ZodString;
|
10
|
+
status: z.ZodDefault<z.ZodEnum<["DISABLED" | "ACTIVE" | "LIMITED" | "EXPIRED", ...("DISABLED" | "ACTIVE" | "LIMITED" | "EXPIRED")[]]>>;
|
11
|
+
usedTrafficBytes: z.ZodNumber;
|
12
|
+
lifetimeUsedTrafficBytes: z.ZodNumber;
|
13
|
+
trafficLimitBytes: z.ZodDefault<z.ZodNumber>;
|
14
|
+
trafficLimitStrategy: z.ZodDefault<z.ZodEnum<["MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK", ...("MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK")[]]>>;
|
15
|
+
subLastUserAgent: z.ZodNullable<z.ZodString>;
|
16
|
+
subLastOpenedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
17
|
+
expireAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
18
|
+
onlineAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
19
|
+
subRevokedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
20
|
+
lastTrafficResetAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
21
|
+
trojanPassword: z.ZodString;
|
22
|
+
vlessUuid: z.ZodString;
|
23
|
+
ssPassword: z.ZodString;
|
24
|
+
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
25
|
+
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
26
|
+
activeUserInbounds: z.ZodArray<z.ZodObject<{
|
27
|
+
uuid: z.ZodString;
|
28
|
+
tag: z.ZodString;
|
29
|
+
type: z.ZodString;
|
30
|
+
}, "strip", z.ZodTypeAny, {
|
31
|
+
uuid: string;
|
32
|
+
type: string;
|
33
|
+
tag: string;
|
34
|
+
}, {
|
35
|
+
uuid: string;
|
36
|
+
type: string;
|
37
|
+
tag: string;
|
38
|
+
}>, "many">;
|
39
|
+
}, "uuid">, {
|
40
|
+
status: z.ZodOptional<z.ZodDefault<z.ZodEnum<["DISABLED" | "ACTIVE" | "LIMITED" | "EXPIRED", ...("DISABLED" | "ACTIVE" | "LIMITED" | "EXPIRED")[]]>>>;
|
41
|
+
trafficLimitBytes: z.ZodOptional<z.ZodNumber>;
|
42
|
+
trafficLimitStrategy: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodDefault<z.ZodEnum<["MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK", ...("MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK")[]]>>>>, "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK", "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | undefined>;
|
43
|
+
activeUserInbounds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
44
|
+
expireAt: z.ZodOptional<z.ZodEffects<z.ZodDate, Date, Date>>;
|
45
|
+
}>, "strip", z.ZodTypeAny, {
|
46
|
+
uuid: string;
|
47
|
+
trafficLimitStrategy: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK";
|
48
|
+
status?: "DISABLED" | "ACTIVE" | "LIMITED" | "EXPIRED" | undefined;
|
49
|
+
trafficLimitBytes?: number | undefined;
|
50
|
+
expireAt?: Date | undefined;
|
51
|
+
activeUserInbounds?: string[] | undefined;
|
52
|
+
}, {
|
53
|
+
uuid: string;
|
54
|
+
status?: "DISABLED" | "ACTIVE" | "LIMITED" | "EXPIRED" | undefined;
|
55
|
+
trafficLimitBytes?: number | undefined;
|
56
|
+
trafficLimitStrategy?: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | undefined;
|
57
|
+
expireAt?: Date | undefined;
|
58
|
+
activeUserInbounds?: string[] | undefined;
|
59
|
+
}>;
|
60
|
+
type Request = z.infer<typeof RequestSchema>;
|
61
|
+
const ResponseSchema: z.ZodObject<{
|
62
|
+
response: z.ZodObject<{
|
63
|
+
uuid: z.ZodString;
|
64
|
+
subscriptionUuid: z.ZodString;
|
65
|
+
shortUuid: z.ZodString;
|
66
|
+
username: z.ZodString;
|
67
|
+
status: z.ZodDefault<z.ZodEnum<["DISABLED" | "ACTIVE" | "LIMITED" | "EXPIRED", ...("DISABLED" | "ACTIVE" | "LIMITED" | "EXPIRED")[]]>>;
|
68
|
+
usedTrafficBytes: z.ZodNumber;
|
69
|
+
lifetimeUsedTrafficBytes: z.ZodNumber;
|
70
|
+
trafficLimitBytes: z.ZodDefault<z.ZodNumber>;
|
71
|
+
trafficLimitStrategy: z.ZodDefault<z.ZodEnum<["MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK", ...("MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK")[]]>>;
|
72
|
+
subLastUserAgent: z.ZodNullable<z.ZodString>;
|
73
|
+
subLastOpenedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
74
|
+
expireAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
75
|
+
onlineAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
76
|
+
subRevokedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
77
|
+
lastTrafficResetAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
78
|
+
trojanPassword: z.ZodString;
|
79
|
+
vlessUuid: z.ZodString;
|
80
|
+
ssPassword: z.ZodString;
|
81
|
+
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
82
|
+
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
83
|
+
activeUserInbounds: z.ZodArray<z.ZodObject<{
|
84
|
+
uuid: z.ZodString;
|
85
|
+
tag: z.ZodString;
|
86
|
+
type: z.ZodString;
|
87
|
+
}, "strip", z.ZodTypeAny, {
|
88
|
+
uuid: string;
|
89
|
+
type: string;
|
90
|
+
tag: string;
|
91
|
+
}, {
|
92
|
+
uuid: string;
|
93
|
+
type: string;
|
94
|
+
tag: string;
|
95
|
+
}>, "many">;
|
96
|
+
}, "strip", z.ZodTypeAny, {
|
97
|
+
uuid: string;
|
98
|
+
username: string;
|
99
|
+
status: "DISABLED" | "ACTIVE" | "LIMITED" | "EXPIRED";
|
100
|
+
createdAt: Date;
|
101
|
+
updatedAt: Date;
|
102
|
+
trafficLimitBytes: number;
|
103
|
+
subscriptionUuid: string;
|
104
|
+
shortUuid: string;
|
105
|
+
usedTrafficBytes: number;
|
106
|
+
lifetimeUsedTrafficBytes: number;
|
107
|
+
trafficLimitStrategy: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK";
|
108
|
+
subLastUserAgent: string | null;
|
109
|
+
subLastOpenedAt: Date | null;
|
110
|
+
expireAt: Date | null;
|
111
|
+
onlineAt: Date | null;
|
112
|
+
subRevokedAt: Date | null;
|
113
|
+
lastTrafficResetAt: Date | null;
|
114
|
+
trojanPassword: string;
|
115
|
+
vlessUuid: string;
|
116
|
+
ssPassword: string;
|
117
|
+
activeUserInbounds: {
|
118
|
+
uuid: string;
|
119
|
+
type: string;
|
120
|
+
tag: string;
|
121
|
+
}[];
|
122
|
+
}, {
|
123
|
+
uuid: string;
|
124
|
+
username: string;
|
125
|
+
createdAt: string;
|
126
|
+
updatedAt: string;
|
127
|
+
subscriptionUuid: string;
|
128
|
+
shortUuid: string;
|
129
|
+
usedTrafficBytes: number;
|
130
|
+
lifetimeUsedTrafficBytes: number;
|
131
|
+
subLastUserAgent: string | null;
|
132
|
+
subLastOpenedAt: string | null;
|
133
|
+
expireAt: string | null;
|
134
|
+
onlineAt: string | null;
|
135
|
+
subRevokedAt: string | null;
|
136
|
+
lastTrafficResetAt: string | null;
|
137
|
+
trojanPassword: string;
|
138
|
+
vlessUuid: string;
|
139
|
+
ssPassword: string;
|
140
|
+
activeUserInbounds: {
|
141
|
+
uuid: string;
|
142
|
+
type: string;
|
143
|
+
tag: string;
|
144
|
+
}[];
|
145
|
+
status?: "DISABLED" | "ACTIVE" | "LIMITED" | "EXPIRED" | undefined;
|
146
|
+
trafficLimitBytes?: number | undefined;
|
147
|
+
trafficLimitStrategy?: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | undefined;
|
148
|
+
}>;
|
149
|
+
}, "strip", z.ZodTypeAny, {
|
150
|
+
response: {
|
151
|
+
uuid: string;
|
152
|
+
username: string;
|
153
|
+
status: "DISABLED" | "ACTIVE" | "LIMITED" | "EXPIRED";
|
154
|
+
createdAt: Date;
|
155
|
+
updatedAt: Date;
|
156
|
+
trafficLimitBytes: number;
|
157
|
+
subscriptionUuid: string;
|
158
|
+
shortUuid: string;
|
159
|
+
usedTrafficBytes: number;
|
160
|
+
lifetimeUsedTrafficBytes: number;
|
161
|
+
trafficLimitStrategy: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK";
|
162
|
+
subLastUserAgent: string | null;
|
163
|
+
subLastOpenedAt: Date | null;
|
164
|
+
expireAt: Date | null;
|
165
|
+
onlineAt: Date | null;
|
166
|
+
subRevokedAt: Date | null;
|
167
|
+
lastTrafficResetAt: Date | null;
|
168
|
+
trojanPassword: string;
|
169
|
+
vlessUuid: string;
|
170
|
+
ssPassword: string;
|
171
|
+
activeUserInbounds: {
|
172
|
+
uuid: string;
|
173
|
+
type: string;
|
174
|
+
tag: string;
|
175
|
+
}[];
|
176
|
+
};
|
177
|
+
}, {
|
178
|
+
response: {
|
179
|
+
uuid: string;
|
180
|
+
username: string;
|
181
|
+
createdAt: string;
|
182
|
+
updatedAt: string;
|
183
|
+
subscriptionUuid: string;
|
184
|
+
shortUuid: string;
|
185
|
+
usedTrafficBytes: number;
|
186
|
+
lifetimeUsedTrafficBytes: number;
|
187
|
+
subLastUserAgent: string | null;
|
188
|
+
subLastOpenedAt: string | null;
|
189
|
+
expireAt: string | null;
|
190
|
+
onlineAt: string | null;
|
191
|
+
subRevokedAt: string | null;
|
192
|
+
lastTrafficResetAt: string | null;
|
193
|
+
trojanPassword: string;
|
194
|
+
vlessUuid: string;
|
195
|
+
ssPassword: string;
|
196
|
+
activeUserInbounds: {
|
197
|
+
uuid: string;
|
198
|
+
type: string;
|
199
|
+
tag: string;
|
200
|
+
}[];
|
201
|
+
status?: "DISABLED" | "ACTIVE" | "LIMITED" | "EXPIRED" | undefined;
|
202
|
+
trafficLimitBytes?: number | undefined;
|
203
|
+
trafficLimitStrategy?: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | undefined;
|
204
|
+
};
|
205
|
+
}>;
|
206
|
+
type Response = z.infer<typeof ResponseSchema>;
|
207
|
+
}
|
208
|
+
//# sourceMappingURL=update-user.command.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"update-user.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/update-user.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,qBAAwB,CAAC;IAClC,MAAM,OAAO,qBAAM,CAAC;IAEpB,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAyCxB,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,24 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare namespace GetXrayConfigCommand {
|
3
|
+
const url: "/api/xray/get-config";
|
4
|
+
const TSQ_url: "/api/xray/get-config";
|
5
|
+
const ResponseSchema: z.ZodObject<{
|
6
|
+
response: z.ZodObject<{
|
7
|
+
config: z.ZodRecord<z.ZodString, z.ZodAny>;
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
9
|
+
config: Record<string, any>;
|
10
|
+
}, {
|
11
|
+
config: Record<string, any>;
|
12
|
+
}>;
|
13
|
+
}, "strip", z.ZodTypeAny, {
|
14
|
+
response: {
|
15
|
+
config: Record<string, any>;
|
16
|
+
};
|
17
|
+
}, {
|
18
|
+
response: {
|
19
|
+
config: Record<string, any>;
|
20
|
+
};
|
21
|
+
}>;
|
22
|
+
type Response = z.infer<typeof ResponseSchema>;
|
23
|
+
}
|
24
|
+
//# sourceMappingURL=get-config.command.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"get-config.command.d.ts","sourceRoot":"","sources":["../../../../commands/xray/get-config.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,yBAAiB,oBAAoB,CAAC;IAC3B,MAAM,GAAG,wBAA2B,CAAC;IACrC,MAAM,OAAO,wBAAM,CAAC;IAEpB,MAAM,cAAc;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commands/xray/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC"}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare namespace UpdateXrayConfigCommand {
|
3
|
+
const url: "/api/xray/update-config";
|
4
|
+
const TSQ_url: "/api/xray/update-config";
|
5
|
+
const RequestSchema: z.ZodRecord<z.ZodString, z.ZodAny>;
|
6
|
+
type Request = z.infer<typeof RequestSchema>;
|
7
|
+
const ResponseSchema: z.ZodObject<{
|
8
|
+
response: z.ZodObject<{
|
9
|
+
config: z.ZodRecord<z.ZodString, z.ZodAny>;
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
11
|
+
config: Record<string, any>;
|
12
|
+
}, {
|
13
|
+
config: Record<string, any>;
|
14
|
+
}>;
|
15
|
+
}, "strip", z.ZodTypeAny, {
|
16
|
+
response: {
|
17
|
+
config: Record<string, any>;
|
18
|
+
};
|
19
|
+
}, {
|
20
|
+
response: {
|
21
|
+
config: Record<string, any>;
|
22
|
+
};
|
23
|
+
}>;
|
24
|
+
type Response = z.infer<typeof ResponseSchema>;
|
25
|
+
}
|
26
|
+
//# sourceMappingURL=update-config.command.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"update-config.command.d.ts","sourceRoot":"","sources":["../../../../commands/xray/update-config.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,uBAAuB,CAAC;IAC9B,MAAM,GAAG,2BAA8B,CAAC;IACxC,MAAM,OAAO,2BAAM,CAAC;IAEpB,MAAM,aAAa,oCAAoB,CAAC;IAE/C,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
@@ -0,0 +1,293 @@
|
|
1
|
+
export declare const ERRORS: {
|
2
|
+
readonly INTERNAL_SERVER_ERROR: {
|
3
|
+
readonly code: "A001";
|
4
|
+
readonly message: "Server error";
|
5
|
+
readonly httpCode: 500;
|
6
|
+
};
|
7
|
+
readonly LOGIN_ERROR: {
|
8
|
+
readonly code: "A002";
|
9
|
+
readonly message: "Login error";
|
10
|
+
readonly httpCode: 500;
|
11
|
+
};
|
12
|
+
readonly UNAUTHORIZED: {
|
13
|
+
readonly code: "A003";
|
14
|
+
readonly message: "Unauthorized";
|
15
|
+
readonly httpCode: 401;
|
16
|
+
};
|
17
|
+
readonly FORBIDDEN_ROLE_ERROR: {
|
18
|
+
readonly code: "A004";
|
19
|
+
readonly message: "Forbidden role error";
|
20
|
+
readonly httpCode: 403;
|
21
|
+
};
|
22
|
+
readonly CREATE_API_TOKEN_ERROR: {
|
23
|
+
readonly code: "A005";
|
24
|
+
readonly message: "Create API token error";
|
25
|
+
readonly httpCode: 500;
|
26
|
+
};
|
27
|
+
readonly DELETE_API_TOKEN_ERROR: {
|
28
|
+
readonly code: "A006";
|
29
|
+
readonly message: "Delete API token error";
|
30
|
+
readonly httpCode: 500;
|
31
|
+
};
|
32
|
+
readonly REQUESTED_TOKEN_NOT_FOUND: {
|
33
|
+
readonly code: "A007";
|
34
|
+
readonly message: "Requested token not found";
|
35
|
+
readonly httpCode: 404;
|
36
|
+
};
|
37
|
+
readonly FIND_ALL_API_TOKENS_ERROR: {
|
38
|
+
readonly code: "A008";
|
39
|
+
readonly message: "Find all API tokens error";
|
40
|
+
readonly httpCode: 500;
|
41
|
+
};
|
42
|
+
readonly GET_PUBLIC_KEY_ERROR: {
|
43
|
+
readonly code: "A009";
|
44
|
+
readonly message: "Get public key error";
|
45
|
+
readonly httpCode: 500;
|
46
|
+
};
|
47
|
+
readonly ENABLE_NODE_ERROR: {
|
48
|
+
readonly code: "A010";
|
49
|
+
readonly message: "Enable node error";
|
50
|
+
readonly httpCode: 500;
|
51
|
+
};
|
52
|
+
readonly NODE_NOT_FOUND: {
|
53
|
+
readonly code: "A011";
|
54
|
+
readonly message: "Node not found";
|
55
|
+
readonly httpCode: 404;
|
56
|
+
};
|
57
|
+
readonly CONFIG_NOT_FOUND: {
|
58
|
+
readonly code: "A012";
|
59
|
+
readonly message: "Configuration not found";
|
60
|
+
readonly httpCode: 404;
|
61
|
+
};
|
62
|
+
readonly UPDATE_CONFIG_ERROR: {
|
63
|
+
readonly code: "A013";
|
64
|
+
readonly message: "Error updating configuration";
|
65
|
+
readonly httpCode: 500;
|
66
|
+
};
|
67
|
+
readonly GET_CONFIG_ERROR: {
|
68
|
+
readonly code: "A014";
|
69
|
+
readonly message: "Error retrieving configuration";
|
70
|
+
readonly httpCode: 500;
|
71
|
+
};
|
72
|
+
readonly DELETE_MANY_INBOUNDS_ERROR: {
|
73
|
+
readonly code: "A015";
|
74
|
+
readonly message: "Delete many inbounds error";
|
75
|
+
readonly httpCode: 500;
|
76
|
+
};
|
77
|
+
readonly CREATE_MANY_INBOUNDS_ERROR: {
|
78
|
+
readonly code: "A016";
|
79
|
+
readonly message: "Create many inbounds error";
|
80
|
+
readonly httpCode: 500;
|
81
|
+
};
|
82
|
+
readonly FIND_ALL_INBOUNDS_ERROR: {
|
83
|
+
readonly code: "A017";
|
84
|
+
readonly message: "Find all inbounds error";
|
85
|
+
readonly httpCode: 500;
|
86
|
+
};
|
87
|
+
readonly CREATE_USER_ERROR: {
|
88
|
+
readonly code: "A018";
|
89
|
+
readonly message: "Failed to create user";
|
90
|
+
readonly httpCode: 500;
|
91
|
+
};
|
92
|
+
readonly USER_USERNAME_ALREADY_EXISTS: {
|
93
|
+
readonly code: "A019";
|
94
|
+
readonly message: "User username already exists";
|
95
|
+
readonly httpCode: 400;
|
96
|
+
};
|
97
|
+
readonly USER_SHORT_UUID_ALREADY_EXISTS: {
|
98
|
+
readonly code: "A020";
|
99
|
+
readonly message: "User short UUID already exists";
|
100
|
+
readonly httpCode: 400;
|
101
|
+
};
|
102
|
+
readonly USER_SUBSCRIPTION_UUID_ALREADY_EXISTS: {
|
103
|
+
readonly code: "A021";
|
104
|
+
readonly message: "User subscription UUID already exists";
|
105
|
+
readonly httpCode: 400;
|
106
|
+
};
|
107
|
+
readonly CREATE_USER_WITH_INBOUNDS_ERROR: {
|
108
|
+
readonly code: "A022";
|
109
|
+
readonly message: "User creation successful, but inbound creation failed. User not created.";
|
110
|
+
readonly httpCode: 500;
|
111
|
+
};
|
112
|
+
readonly CANT_GET_CREATED_USER_WITH_INBOUNDS: {
|
113
|
+
readonly code: "A023";
|
114
|
+
readonly message: "User creation successful, but failed to get created user with inbounds.";
|
115
|
+
readonly httpCode: 500;
|
116
|
+
};
|
117
|
+
readonly GET_ALL_USERS_ERROR: {
|
118
|
+
readonly code: "A024";
|
119
|
+
readonly message: "Get all users error";
|
120
|
+
readonly httpCode: 500;
|
121
|
+
};
|
122
|
+
readonly USER_NOT_FOUND: {
|
123
|
+
readonly code: "A025";
|
124
|
+
readonly message: "User not found";
|
125
|
+
readonly httpCode: 404;
|
126
|
+
};
|
127
|
+
readonly GET_USER_BY_ERROR: {
|
128
|
+
readonly code: "A026";
|
129
|
+
readonly message: "Get user by error";
|
130
|
+
readonly httpCode: 500;
|
131
|
+
};
|
132
|
+
readonly REVOKE_USER_SUBSCRIPTION_ERROR: {
|
133
|
+
readonly code: "A027";
|
134
|
+
readonly message: "Revoke user subscription error";
|
135
|
+
readonly httpCode: 500;
|
136
|
+
};
|
137
|
+
readonly DISABLE_USER_ERROR: {
|
138
|
+
readonly code: "A028";
|
139
|
+
readonly message: "Disable user error";
|
140
|
+
readonly httpCode: 500;
|
141
|
+
};
|
142
|
+
readonly USER_ALREADY_DISABLED: {
|
143
|
+
readonly code: "A029";
|
144
|
+
readonly message: "User already disabled";
|
145
|
+
readonly httpCode: 400;
|
146
|
+
};
|
147
|
+
readonly USER_ALREADY_ENABLED: {
|
148
|
+
readonly code: "A030";
|
149
|
+
readonly message: "User already enabled";
|
150
|
+
readonly httpCode: 400;
|
151
|
+
};
|
152
|
+
readonly ENABLE_USER_ERROR: {
|
153
|
+
readonly code: "A031";
|
154
|
+
readonly message: "Enable user error";
|
155
|
+
readonly httpCode: 500;
|
156
|
+
};
|
157
|
+
readonly CREATE_NODE_ERROR: {
|
158
|
+
readonly code: "A032";
|
159
|
+
readonly message: "Create node error";
|
160
|
+
readonly httpCode: 500;
|
161
|
+
};
|
162
|
+
readonly NODE_NAME_ALREADY_EXISTS: {
|
163
|
+
readonly code: "A033";
|
164
|
+
readonly message: "Node name already exists";
|
165
|
+
readonly httpCode: 400;
|
166
|
+
};
|
167
|
+
readonly NODE_ADDRESS_ALREADY_EXISTS: {
|
168
|
+
readonly code: "A034";
|
169
|
+
readonly message: "Node address already exists";
|
170
|
+
readonly httpCode: 400;
|
171
|
+
};
|
172
|
+
readonly NODE_ERROR_WITH_MSG: {
|
173
|
+
readonly code: "N001";
|
174
|
+
readonly message: "";
|
175
|
+
readonly httpCode: 500;
|
176
|
+
readonly withMessage: (message: string) => {
|
177
|
+
code: string;
|
178
|
+
message: string;
|
179
|
+
httpCode: number;
|
180
|
+
};
|
181
|
+
};
|
182
|
+
readonly NODE_ERROR_500_WITH_MSG: {
|
183
|
+
readonly code: "N002";
|
184
|
+
readonly message: "";
|
185
|
+
readonly httpCode: 500;
|
186
|
+
readonly withMessage: (message: string) => {
|
187
|
+
code: string;
|
188
|
+
message: string;
|
189
|
+
httpCode: number;
|
190
|
+
};
|
191
|
+
};
|
192
|
+
readonly RESTART_NODE_ERROR: {
|
193
|
+
readonly code: "A035";
|
194
|
+
readonly message: "Restart node error";
|
195
|
+
readonly httpCode: 500;
|
196
|
+
};
|
197
|
+
readonly GET_CONFIG_WITH_USERS_ERROR: {
|
198
|
+
readonly code: "A036";
|
199
|
+
readonly message: "Get config with users error";
|
200
|
+
readonly httpCode: 500;
|
201
|
+
};
|
202
|
+
readonly DELETE_USER_ERROR: {
|
203
|
+
readonly code: "A037";
|
204
|
+
readonly message: "Delete user error";
|
205
|
+
readonly httpCode: 500;
|
206
|
+
};
|
207
|
+
readonly UPDATE_NODE_ERROR: {
|
208
|
+
readonly code: "A038";
|
209
|
+
readonly message: "Update node error";
|
210
|
+
readonly httpCode: 500;
|
211
|
+
};
|
212
|
+
readonly UPDATE_USER_ERROR: {
|
213
|
+
readonly code: "A039";
|
214
|
+
readonly message: "Update user error";
|
215
|
+
readonly httpCode: 500;
|
216
|
+
};
|
217
|
+
readonly INCREMENT_USED_TRAFFIC_ERROR: {
|
218
|
+
readonly code: "A040";
|
219
|
+
readonly message: "Increment used traffic error";
|
220
|
+
readonly httpCode: 500;
|
221
|
+
};
|
222
|
+
readonly GET_ALL_NODES_ERROR: {
|
223
|
+
readonly code: "A041";
|
224
|
+
readonly message: "Get all nodes error";
|
225
|
+
readonly httpCode: 500;
|
226
|
+
};
|
227
|
+
readonly GET_ONE_NODE_ERROR: {
|
228
|
+
readonly code: "A042";
|
229
|
+
readonly message: "Get one node error";
|
230
|
+
readonly httpCode: 500;
|
231
|
+
};
|
232
|
+
readonly DELETE_NODE_ERROR: {
|
233
|
+
readonly code: "A043";
|
234
|
+
readonly message: "Delete node error";
|
235
|
+
readonly httpCode: 500;
|
236
|
+
};
|
237
|
+
readonly CREATE_HOST_ERROR: {
|
238
|
+
readonly code: "A044";
|
239
|
+
readonly message: "Create host error";
|
240
|
+
readonly httpCode: 500;
|
241
|
+
};
|
242
|
+
readonly HOST_REMARK_ALREADY_EXISTS: {
|
243
|
+
readonly code: "A045";
|
244
|
+
readonly message: "Host remark already exists";
|
245
|
+
readonly httpCode: 400;
|
246
|
+
};
|
247
|
+
readonly HOST_NOT_FOUND: {
|
248
|
+
readonly code: "A046";
|
249
|
+
readonly message: "Host not found";
|
250
|
+
readonly httpCode: 404;
|
251
|
+
};
|
252
|
+
readonly DELETE_HOST_ERROR: {
|
253
|
+
readonly code: "A047";
|
254
|
+
readonly message: "Delete host error";
|
255
|
+
readonly httpCode: 500;
|
256
|
+
};
|
257
|
+
readonly GET_USER_STATS_ERROR: {
|
258
|
+
readonly code: "A048";
|
259
|
+
readonly message: "Get user stats error";
|
260
|
+
readonly httpCode: 500;
|
261
|
+
};
|
262
|
+
readonly UPDATE_USER_WITH_INBOUNDS_ERROR: {
|
263
|
+
readonly code: "A049";
|
264
|
+
readonly message: "Update user with inbounds error";
|
265
|
+
readonly httpCode: 500;
|
266
|
+
};
|
267
|
+
readonly GET_ALL_HOSTS_ERROR: {
|
268
|
+
readonly code: "A050";
|
269
|
+
readonly message: "Get all hosts error";
|
270
|
+
readonly httpCode: 500;
|
271
|
+
};
|
272
|
+
readonly REORDER_HOSTS_ERROR: {
|
273
|
+
readonly code: "A051";
|
274
|
+
readonly message: "Reorder hosts error";
|
275
|
+
readonly httpCode: 500;
|
276
|
+
};
|
277
|
+
readonly UPDATE_HOST_ERROR: {
|
278
|
+
readonly code: "A052";
|
279
|
+
readonly message: "Update host error";
|
280
|
+
readonly httpCode: 500;
|
281
|
+
};
|
282
|
+
readonly CREATE_CONFIG_ERROR: {
|
283
|
+
readonly code: "A053";
|
284
|
+
readonly message: "Create config error";
|
285
|
+
readonly httpCode: 500;
|
286
|
+
};
|
287
|
+
readonly ENABLED_NODES_NOT_FOUND: {
|
288
|
+
readonly code: "A054";
|
289
|
+
readonly message: "Enabled nodes not found";
|
290
|
+
readonly httpCode: 409;
|
291
|
+
};
|
292
|
+
};
|
293
|
+
//# sourceMappingURL=errors.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../constants/errors/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAwJY,MAAM;;;;;;;;;;wCAUN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0G3B,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../constants/errors/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
export declare const EVENTS: {
|
2
|
+
USER: {
|
3
|
+
CREATED: string;
|
4
|
+
MODIFIED: string;
|
5
|
+
DELETED: string;
|
6
|
+
REVOKED: string;
|
7
|
+
DISABLED: string;
|
8
|
+
ENABLED: string;
|
9
|
+
LIMITED: string;
|
10
|
+
EXPIRED: string;
|
11
|
+
TRAFFIC_RESET: string;
|
12
|
+
TRAFFIC_REACHED: string;
|
13
|
+
};
|
14
|
+
NODE: {
|
15
|
+
CREATED: string;
|
16
|
+
MODIFIED: string;
|
17
|
+
DISABLED: string;
|
18
|
+
ENABLED: string;
|
19
|
+
DELETED: string;
|
20
|
+
CONNECTION_LOST: string;
|
21
|
+
CONNECTION_RESTORED: string;
|
22
|
+
RESTARTED: string;
|
23
|
+
};
|
24
|
+
};
|
25
|
+
//# sourceMappingURL=events.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../../constants/events/events.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;CAuBlB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../constants/events/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
export declare const ALPN: {
|
2
|
+
readonly HTTP_1_1: "http/1.1";
|
3
|
+
readonly H2: "h2";
|
4
|
+
readonly H_COMBINED: "h2,http/1.1";
|
5
|
+
};
|
6
|
+
export type TAlpn = [keyof typeof ALPN][number];
|
7
|
+
export declare const ALPN_VALUES: ("http/1.1" | "h2" | "h2,http/1.1")[];
|
8
|
+
//# sourceMappingURL=alpn.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"alpn.d.ts","sourceRoot":"","sources":["../../../../constants/hosts/alpn.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI;;;;CAIP,CAAC;AAEX,MAAM,MAAM,KAAK,GAAG,CAAC,MAAM,OAAO,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC;AAChD,eAAO,MAAM,WAAW,uCAAsB,CAAC"}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
export declare const FINGERPRINTS: {
|
2
|
+
readonly CHROME: "chrome";
|
3
|
+
readonly FIREFOX: "firefox";
|
4
|
+
readonly SAFARI: "safari";
|
5
|
+
readonly IOS: "ios";
|
6
|
+
readonly ANDROID: "android";
|
7
|
+
readonly EDGE: "edge";
|
8
|
+
readonly QQ: "qq";
|
9
|
+
readonly RANDOM: "random";
|
10
|
+
readonly RANDOMIZED: "randomized";
|
11
|
+
};
|
12
|
+
export type TFingerprints = [keyof typeof FINGERPRINTS][number];
|
13
|
+
export declare const FINGERPRINTS_VALUES: ("chrome" | "firefox" | "safari" | "ios" | "android" | "edge" | "qq" | "random" | "randomized")[];
|
14
|
+
//# sourceMappingURL=fingerprints.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"fingerprints.d.ts","sourceRoot":"","sources":["../../../../constants/hosts/fingerprints.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY;;;;;;;;;;CAUf,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;AAChE,eAAO,MAAM,mBAAmB,mGAA8B,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../constants/hosts/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,gBAAgB,CAAC"}
|