@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 @@
|
|
1
|
+
{"version":3,"file":"cycle.d.ts","sourceRoot":"","sources":["../../../../../constants/nodes/cycle/cycle.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW;;;CAGd,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,CAAC,MAAM,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC;AAC7D,eAAO,MAAM,kBAAkB,sBAA6B,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../constants/nodes/cycle/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../constants/nodes/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../constants/nodes/status/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
export declare const NODES_STATUS: {
|
2
|
+
readonly CONNECTED: "CONNECTED";
|
3
|
+
readonly DISCONNECTED: "DISCONNECTED";
|
4
|
+
readonly DISABLED: "DISABLED";
|
5
|
+
};
|
6
|
+
export type TNodesStatus = [keyof typeof NODES_STATUS][number];
|
7
|
+
export declare const NODES_STATUS_VALUES: ("CONNECTED" | "DISCONNECTED" | "DISABLED")[];
|
8
|
+
//# sourceMappingURL=status.constant.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"status.constant.d.ts","sourceRoot":"","sources":["../../../../../constants/nodes/status/status.constant.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY;;;;CAIf,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;AAC/D,eAAO,MAAM,mBAAmB,+CAA8B,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../constants/roles/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"role.d.ts","sourceRoot":"","sources":["../../../../constants/roles/role.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI;;;CAGP,CAAC;AAEX,MAAM,MAAM,KAAK,GAAG,OAAO,IAAI,CAAC;AAChC,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,IAAI,CAAC,CAAC,MAAM,OAAO,IAAI,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../constants/templates/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"template-keys.d.ts","sourceRoot":"","sources":["../../../../constants/templates/template-keys.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,mFAMhB,CAAC;AACX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"user-statuses.d.ts","sourceRoot":"","sources":["../../../../constants/templates/user-statuses.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB;;;;;CAKzB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../constants/users/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../constants/users/reset-periods/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
export declare const RESET_PERIODS: {
|
2
|
+
readonly NO_RESET: "NO_RESET";
|
3
|
+
readonly DAY: "DAY";
|
4
|
+
readonly WEEK: "WEEK";
|
5
|
+
readonly MONTH: "MONTH";
|
6
|
+
readonly YEAR: "YEAR";
|
7
|
+
};
|
8
|
+
export type TResetPeriods = [keyof typeof RESET_PERIODS][number];
|
9
|
+
export declare const RESET_PERIODS_VALUES: ("MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK")[];
|
10
|
+
//# sourceMappingURL=reset-periods.constant.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"reset-periods.constant.d.ts","sourceRoot":"","sources":["../../../../../constants/users/reset-periods/reset-periods.constant.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa;;;;;;CAMhB,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC;AACjE,eAAO,MAAM,oBAAoB,oDAA+B,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../constants/users/status/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
export declare const USERS_STATUS: {
|
2
|
+
readonly ACTIVE: "ACTIVE";
|
3
|
+
readonly DISABLED: "DISABLED";
|
4
|
+
readonly LIMITED: "LIMITED";
|
5
|
+
readonly EXPIRED: "EXPIRED";
|
6
|
+
};
|
7
|
+
export type TUsersStatus = [keyof typeof USERS_STATUS][number];
|
8
|
+
export declare const USERS_STATUS_VALUES: ("DISABLED" | "ACTIVE" | "LIMITED" | "EXPIRED")[];
|
9
|
+
//# sourceMappingURL=status.constant.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"status.constant.d.ts","sourceRoot":"","sources":["../../../../../constants/users/status/status.constant.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY;;;;;CAKf,CAAC;AAEX,MAAM,MAAM,YAAY,GAAG,CAAC,MAAM,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC;AAC/D,eAAO,MAAM,mBAAmB,mDAA8B,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC"}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare const ApiTokensSchema: z.ZodObject<{
|
3
|
+
uuid: z.ZodString;
|
4
|
+
token: z.ZodString;
|
5
|
+
tokenName: z.ZodString;
|
6
|
+
tokenDescription: z.ZodNullable<z.ZodString>;
|
7
|
+
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
8
|
+
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
10
|
+
uuid: string;
|
11
|
+
tokenName: string;
|
12
|
+
tokenDescription: string | null;
|
13
|
+
token: string;
|
14
|
+
createdAt: Date;
|
15
|
+
updatedAt: Date;
|
16
|
+
}, {
|
17
|
+
uuid: string;
|
18
|
+
tokenName: string;
|
19
|
+
tokenDescription: string | null;
|
20
|
+
token: string;
|
21
|
+
createdAt: string;
|
22
|
+
updatedAt: string;
|
23
|
+
}>;
|
24
|
+
//# sourceMappingURL=api-tokens.schema.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"api-tokens.schema.d.ts","sourceRoot":"","sources":["../../../models/api-tokens.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;EAQ1B,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"auth.schema.d.ts","sourceRoot":"","sources":["../../../models/auth.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,UAAU;;;;;;EAErB,CAAC"}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare const BaseStatSchema: z.ZodObject<{
|
3
|
+
current: z.ZodString;
|
4
|
+
previous: z.ZodString;
|
5
|
+
difference: z.ZodString;
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
7
|
+
current: string;
|
8
|
+
previous: string;
|
9
|
+
difference: string;
|
10
|
+
}, {
|
11
|
+
current: string;
|
12
|
+
previous: string;
|
13
|
+
difference: string;
|
14
|
+
}>;
|
15
|
+
//# sourceMappingURL=base-stat.schema.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"base-stat.schema.d.ts","sourceRoot":"","sources":["../../../models/base-stat.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,cAAc;;;;;;;;;;;;EAIzB,CAAC"}
|
@@ -0,0 +1,45 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare const HostsSchema: z.ZodObject<{
|
3
|
+
uuid: z.ZodString;
|
4
|
+
inboundUuid: z.ZodString;
|
5
|
+
viewPosition: z.ZodNumber;
|
6
|
+
remark: z.ZodString;
|
7
|
+
address: z.ZodString;
|
8
|
+
port: z.ZodNumber;
|
9
|
+
path: z.ZodNullable<z.ZodString>;
|
10
|
+
sni: z.ZodNullable<z.ZodString>;
|
11
|
+
host: z.ZodNullable<z.ZodString>;
|
12
|
+
alpn: z.ZodNullable<z.ZodString>;
|
13
|
+
fingerprint: z.ZodNullable<z.ZodString>;
|
14
|
+
allowInsecure: z.ZodDefault<z.ZodBoolean>;
|
15
|
+
isDisabled: z.ZodDefault<z.ZodBoolean>;
|
16
|
+
}, "strip", z.ZodTypeAny, {
|
17
|
+
uuid: string;
|
18
|
+
path: string | null;
|
19
|
+
inboundUuid: string;
|
20
|
+
viewPosition: number;
|
21
|
+
remark: string;
|
22
|
+
address: string;
|
23
|
+
port: number;
|
24
|
+
sni: string | null;
|
25
|
+
host: string | null;
|
26
|
+
alpn: string | null;
|
27
|
+
fingerprint: string | null;
|
28
|
+
allowInsecure: boolean;
|
29
|
+
isDisabled: boolean;
|
30
|
+
}, {
|
31
|
+
uuid: string;
|
32
|
+
path: string | null;
|
33
|
+
inboundUuid: string;
|
34
|
+
viewPosition: number;
|
35
|
+
remark: string;
|
36
|
+
address: string;
|
37
|
+
port: number;
|
38
|
+
sni: string | null;
|
39
|
+
host: string | null;
|
40
|
+
alpn: string | null;
|
41
|
+
fingerprint: string | null;
|
42
|
+
allowInsecure?: boolean | undefined;
|
43
|
+
isDisabled?: boolean | undefined;
|
44
|
+
}>;
|
45
|
+
//# sourceMappingURL=hosts.schema.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"hosts.schema.d.ts","sourceRoot":"","sources":["../../../models/hosts.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EActB,CAAC"}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare const InboundsSchema: z.ZodObject<{
|
3
|
+
uuid: z.ZodString;
|
4
|
+
tag: z.ZodString;
|
5
|
+
type: z.ZodString;
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
7
|
+
uuid: string;
|
8
|
+
type: string;
|
9
|
+
tag: string;
|
10
|
+
}, {
|
11
|
+
uuid: string;
|
12
|
+
type: string;
|
13
|
+
tag: string;
|
14
|
+
}>;
|
15
|
+
//# sourceMappingURL=inbounds.schema.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"inbounds.schema.d.ts","sourceRoot":"","sources":["../../../models/inbounds.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,cAAc;;;;;;;;;;;;EAIzB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../models/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC"}
|
@@ -0,0 +1,72 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare const NodesSchema: z.ZodObject<{
|
3
|
+
uuid: z.ZodString;
|
4
|
+
name: z.ZodString;
|
5
|
+
address: z.ZodString;
|
6
|
+
port: z.ZodNullable<z.ZodNumber>;
|
7
|
+
isConnected: z.ZodBoolean;
|
8
|
+
isDisabled: z.ZodBoolean;
|
9
|
+
isConnecting: z.ZodBoolean;
|
10
|
+
isNodeOnline: z.ZodBoolean;
|
11
|
+
isXrayRunning: z.ZodBoolean;
|
12
|
+
lastStatusChange: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
13
|
+
lastStatusMessage: z.ZodNullable<z.ZodString>;
|
14
|
+
xrayVersion: z.ZodNullable<z.ZodString>;
|
15
|
+
isTrafficTrackingActive: z.ZodBoolean;
|
16
|
+
trafficResetDay: z.ZodNullable<z.ZodNumber>;
|
17
|
+
trafficLimitBytes: z.ZodNullable<z.ZodNumber>;
|
18
|
+
trafficUsedBytes: z.ZodNullable<z.ZodNumber>;
|
19
|
+
notifyPercent: z.ZodNullable<z.ZodNumber>;
|
20
|
+
cpuCount: z.ZodNullable<z.ZodNumber>;
|
21
|
+
cpuModel: z.ZodNullable<z.ZodString>;
|
22
|
+
totalRam: z.ZodNullable<z.ZodString>;
|
23
|
+
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
24
|
+
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
25
|
+
}, "strip", z.ZodTypeAny, {
|
26
|
+
uuid: string;
|
27
|
+
createdAt: Date;
|
28
|
+
updatedAt: Date;
|
29
|
+
address: string;
|
30
|
+
port: number | null;
|
31
|
+
isDisabled: boolean;
|
32
|
+
name: string;
|
33
|
+
isConnected: boolean;
|
34
|
+
isConnecting: boolean;
|
35
|
+
isNodeOnline: boolean;
|
36
|
+
isXrayRunning: boolean;
|
37
|
+
lastStatusChange: Date | null;
|
38
|
+
lastStatusMessage: string | null;
|
39
|
+
xrayVersion: string | null;
|
40
|
+
isTrafficTrackingActive: boolean;
|
41
|
+
trafficResetDay: number | null;
|
42
|
+
trafficLimitBytes: number | null;
|
43
|
+
trafficUsedBytes: number | null;
|
44
|
+
notifyPercent: number | null;
|
45
|
+
cpuCount: number | null;
|
46
|
+
cpuModel: string | null;
|
47
|
+
totalRam: string | null;
|
48
|
+
}, {
|
49
|
+
uuid: string;
|
50
|
+
createdAt: string;
|
51
|
+
updatedAt: string;
|
52
|
+
address: string;
|
53
|
+
port: number | null;
|
54
|
+
isDisabled: boolean;
|
55
|
+
name: string;
|
56
|
+
isConnected: boolean;
|
57
|
+
isConnecting: boolean;
|
58
|
+
isNodeOnline: boolean;
|
59
|
+
isXrayRunning: boolean;
|
60
|
+
lastStatusChange: string | null;
|
61
|
+
lastStatusMessage: string | null;
|
62
|
+
xrayVersion: string | null;
|
63
|
+
isTrafficTrackingActive: boolean;
|
64
|
+
trafficResetDay: number | null;
|
65
|
+
trafficLimitBytes: number | null;
|
66
|
+
trafficUsedBytes: number | null;
|
67
|
+
notifyPercent: number | null;
|
68
|
+
cpuCount: number | null;
|
69
|
+
cpuModel: string | null;
|
70
|
+
totalRam: string | null;
|
71
|
+
}>;
|
72
|
+
//# sourceMappingURL=nodes.schema.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"nodes.schema.d.ts","sourceRoot":"","sources":["../../../models/nodes.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAyBtB,CAAC"}
|
@@ -0,0 +1,86 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare const UsersSchema: z.ZodObject<{
|
3
|
+
uuid: z.ZodString;
|
4
|
+
subscriptionUuid: z.ZodString;
|
5
|
+
shortUuid: z.ZodString;
|
6
|
+
username: z.ZodString;
|
7
|
+
status: z.ZodDefault<z.ZodEnum<["DISABLED" | "ACTIVE" | "LIMITED" | "EXPIRED", ...("DISABLED" | "ACTIVE" | "LIMITED" | "EXPIRED")[]]>>;
|
8
|
+
usedTrafficBytes: z.ZodDefault<z.ZodNumber>;
|
9
|
+
trafficLimitBytes: z.ZodDefault<z.ZodNumber>;
|
10
|
+
trafficLimitStrategy: z.ZodDefault<z.ZodEnum<["MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK", ...("MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK")[]]>>;
|
11
|
+
subLastUserAgent: z.ZodNullable<z.ZodString>;
|
12
|
+
subLastOpenedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
13
|
+
expireAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
14
|
+
onlineAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
15
|
+
subRevokedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
16
|
+
lastTrafficResetAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
17
|
+
trojanPassword: z.ZodString;
|
18
|
+
vlessUuid: z.ZodString;
|
19
|
+
ssPassword: z.ZodString;
|
20
|
+
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
21
|
+
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
22
|
+
activeUserInbounds: z.ZodArray<z.ZodObject<{
|
23
|
+
uuid: z.ZodString;
|
24
|
+
tag: z.ZodString;
|
25
|
+
type: z.ZodString;
|
26
|
+
}, "strip", z.ZodTypeAny, {
|
27
|
+
uuid: string;
|
28
|
+
type: string;
|
29
|
+
tag: string;
|
30
|
+
}, {
|
31
|
+
uuid: string;
|
32
|
+
type: string;
|
33
|
+
tag: string;
|
34
|
+
}>, "many">;
|
35
|
+
}, "strip", z.ZodTypeAny, {
|
36
|
+
uuid: string;
|
37
|
+
status: "DISABLED" | "ACTIVE" | "LIMITED" | "EXPIRED";
|
38
|
+
createdAt: Date;
|
39
|
+
updatedAt: Date;
|
40
|
+
username: string;
|
41
|
+
trafficLimitBytes: number;
|
42
|
+
subscriptionUuid: string;
|
43
|
+
shortUuid: string;
|
44
|
+
usedTrafficBytes: number;
|
45
|
+
trafficLimitStrategy: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK";
|
46
|
+
subLastUserAgent: string | null;
|
47
|
+
subLastOpenedAt: Date | null;
|
48
|
+
expireAt: Date | null;
|
49
|
+
onlineAt: Date | null;
|
50
|
+
subRevokedAt: Date | null;
|
51
|
+
lastTrafficResetAt: Date | null;
|
52
|
+
trojanPassword: string;
|
53
|
+
vlessUuid: string;
|
54
|
+
ssPassword: string;
|
55
|
+
activeUserInbounds: {
|
56
|
+
uuid: string;
|
57
|
+
type: string;
|
58
|
+
tag: string;
|
59
|
+
}[];
|
60
|
+
}, {
|
61
|
+
uuid: string;
|
62
|
+
createdAt: string;
|
63
|
+
updatedAt: string;
|
64
|
+
username: string;
|
65
|
+
subscriptionUuid: string;
|
66
|
+
shortUuid: string;
|
67
|
+
subLastUserAgent: string | null;
|
68
|
+
subLastOpenedAt: string | null;
|
69
|
+
expireAt: string | null;
|
70
|
+
onlineAt: string | null;
|
71
|
+
subRevokedAt: string | null;
|
72
|
+
lastTrafficResetAt: string | null;
|
73
|
+
trojanPassword: string;
|
74
|
+
vlessUuid: string;
|
75
|
+
ssPassword: string;
|
76
|
+
activeUserInbounds: {
|
77
|
+
uuid: string;
|
78
|
+
type: string;
|
79
|
+
tag: string;
|
80
|
+
}[];
|
81
|
+
status?: "DISABLED" | "ACTIVE" | "LIMITED" | "EXPIRED" | undefined;
|
82
|
+
trafficLimitBytes?: number | undefined;
|
83
|
+
usedTrafficBytes?: number | undefined;
|
84
|
+
trafficLimitStrategy?: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | undefined;
|
85
|
+
}>;
|
86
|
+
//# sourceMappingURL=users.schema.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"users.schema.d.ts","sourceRoot":"","sources":["../../../models/users.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiCtB,CAAC"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.API_TOKENS_ROUTES = exports.API_TOKENS_CONTROLLER = void 0;
|
4
|
+
exports.API_TOKENS_CONTROLLER = 'tokens';
|
5
|
+
exports.API_TOKENS_ROUTES = {
|
6
|
+
CREATE: 'create',
|
7
|
+
DELETE: 'delete',
|
8
|
+
GET_ALL: '',
|
9
|
+
};
|
@@ -0,0 +1,12 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.HOSTS_ROUTES = exports.HOSTS_CONTROLLER = void 0;
|
4
|
+
exports.HOSTS_CONTROLLER = 'hosts';
|
5
|
+
exports.HOSTS_ROUTES = {
|
6
|
+
CREATE: 'create',
|
7
|
+
DELETE: 'delete',
|
8
|
+
GET_ALL: 'all',
|
9
|
+
UPDATE: 'update',
|
10
|
+
UPDATE_MANY: 'many',
|
11
|
+
REORDER: 'reorder',
|
12
|
+
};
|
@@ -0,0 +1,26 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./api-tokens"), exports);
|
18
|
+
__exportStar(require("./auth"), exports);
|
19
|
+
__exportStar(require("./hosts"), exports);
|
20
|
+
__exportStar(require("./inbounds"), exports);
|
21
|
+
__exportStar(require("./keygen"), exports);
|
22
|
+
__exportStar(require("./nodes"), exports);
|
23
|
+
__exportStar(require("./subscription"), exports);
|
24
|
+
__exportStar(require("./system"), exports);
|
25
|
+
__exportStar(require("./users"), exports);
|
26
|
+
__exportStar(require("./xray"), exports);
|
@@ -1,14 +1,15 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.NODES_ROUTES = exports.NODES_CONTROLLER = void 0;
|
4
|
+
exports.NODES_CONTROLLER = 'nodes';
|
5
|
+
exports.NODES_ROUTES = {
|
4
6
|
CREATE: 'create',
|
5
7
|
ENABLE: 'enable',
|
6
8
|
RESTART: 'restart',
|
7
9
|
RESTART_ALL: 'restart-all',
|
8
|
-
|
9
10
|
DELETE: 'delete',
|
10
11
|
UPDATE: 'update',
|
11
12
|
DISABLE: 'disable',
|
12
13
|
GET_ALL: 'get-all',
|
13
14
|
GET_ONE: 'get-one',
|
14
|
-
}
|
15
|
+
};
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.SUBSCRIPTION_ROUTES = exports.SUBSCRIPTION_CONTROLLER = void 0;
|
4
|
+
exports.SUBSCRIPTION_CONTROLLER = 'sub';
|
5
|
+
exports.SUBSCRIPTION_ROUTES = {
|
6
|
+
GET: '',
|
7
|
+
GET_INFO: '/info',
|
8
|
+
};
|
@@ -0,0 +1,11 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.SYSTEM_ROUTES = exports.SYSTEM_CONTROLLER = void 0;
|
4
|
+
exports.SYSTEM_CONTROLLER = 'system';
|
5
|
+
exports.SYSTEM_ROUTES = {
|
6
|
+
STATS: 'stats',
|
7
|
+
BANDWIDTH: 'bandwidth',
|
8
|
+
STATISTIC: {
|
9
|
+
NODES: 'statistics/nodes',
|
10
|
+
},
|
11
|
+
};
|
@@ -1,6 +1,8 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.USERS_ROUTES = exports.USERS_CONTROLLER = void 0;
|
4
|
+
exports.USERS_CONTROLLER = 'users';
|
5
|
+
exports.USERS_ROUTES = {
|
4
6
|
CREATE: '',
|
5
7
|
GET_BY_UUID: 'uuid',
|
6
8
|
GET_BY_SHORT_UUID: 'short-uuid',
|
@@ -12,4 +14,4 @@ export const USERS_ROUTES = {
|
|
12
14
|
ENABLE_USER: 'enable',
|
13
15
|
DELETE_USER: 'delete',
|
14
16
|
UPDATE: 'update',
|
15
|
-
}
|
17
|
+
};
|