@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,84 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare namespace GetAllHostsCommand {
|
3
|
+
const url: "/api/hosts/all";
|
4
|
+
const TSQ_url: "/api/hosts/all";
|
5
|
+
const ResponseSchema: z.ZodObject<{
|
6
|
+
response: z.ZodArray<z.ZodObject<{
|
7
|
+
uuid: z.ZodString;
|
8
|
+
inboundUuid: z.ZodString;
|
9
|
+
viewPosition: z.ZodNumber;
|
10
|
+
remark: z.ZodString;
|
11
|
+
address: z.ZodString;
|
12
|
+
port: z.ZodNumber;
|
13
|
+
path: z.ZodNullable<z.ZodString>;
|
14
|
+
sni: z.ZodNullable<z.ZodString>;
|
15
|
+
host: z.ZodNullable<z.ZodString>;
|
16
|
+
alpn: z.ZodNullable<z.ZodString>;
|
17
|
+
fingerprint: z.ZodNullable<z.ZodString>;
|
18
|
+
allowInsecure: z.ZodDefault<z.ZodBoolean>;
|
19
|
+
isDisabled: z.ZodDefault<z.ZodBoolean>;
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
21
|
+
uuid: string;
|
22
|
+
path: string | null;
|
23
|
+
inboundUuid: string;
|
24
|
+
viewPosition: number;
|
25
|
+
remark: string;
|
26
|
+
address: string;
|
27
|
+
port: number;
|
28
|
+
sni: string | null;
|
29
|
+
host: string | null;
|
30
|
+
alpn: string | null;
|
31
|
+
fingerprint: string | null;
|
32
|
+
allowInsecure: boolean;
|
33
|
+
isDisabled: boolean;
|
34
|
+
}, {
|
35
|
+
uuid: string;
|
36
|
+
path: string | null;
|
37
|
+
inboundUuid: string;
|
38
|
+
viewPosition: number;
|
39
|
+
remark: string;
|
40
|
+
address: string;
|
41
|
+
port: number;
|
42
|
+
sni: string | null;
|
43
|
+
host: string | null;
|
44
|
+
alpn: string | null;
|
45
|
+
fingerprint: string | null;
|
46
|
+
allowInsecure?: boolean | undefined;
|
47
|
+
isDisabled?: boolean | undefined;
|
48
|
+
}>, "many">;
|
49
|
+
}, "strip", z.ZodTypeAny, {
|
50
|
+
response: {
|
51
|
+
uuid: string;
|
52
|
+
path: string | null;
|
53
|
+
inboundUuid: string;
|
54
|
+
viewPosition: number;
|
55
|
+
remark: string;
|
56
|
+
address: string;
|
57
|
+
port: number;
|
58
|
+
sni: string | null;
|
59
|
+
host: string | null;
|
60
|
+
alpn: string | null;
|
61
|
+
fingerprint: string | null;
|
62
|
+
allowInsecure: boolean;
|
63
|
+
isDisabled: boolean;
|
64
|
+
}[];
|
65
|
+
}, {
|
66
|
+
response: {
|
67
|
+
uuid: string;
|
68
|
+
path: string | null;
|
69
|
+
inboundUuid: string;
|
70
|
+
viewPosition: number;
|
71
|
+
remark: string;
|
72
|
+
address: string;
|
73
|
+
port: number;
|
74
|
+
sni: string | null;
|
75
|
+
host: string | null;
|
76
|
+
alpn: string | null;
|
77
|
+
fingerprint: string | null;
|
78
|
+
allowInsecure?: boolean | undefined;
|
79
|
+
isDisabled?: boolean | undefined;
|
80
|
+
}[];
|
81
|
+
}>;
|
82
|
+
type Response = z.infer<typeof ResponseSchema>;
|
83
|
+
}
|
84
|
+
//# sourceMappingURL=get-all.command.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"get-all.command.d.ts","sourceRoot":"","sources":["../../../../commands/hosts/get-all.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,kBAAyB,CAAC;IACnC,MAAM,OAAO,kBAAM,CAAC;IAEpB,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,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/hosts/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC"}
|
@@ -0,0 +1,58 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare namespace ReorderHostCommand {
|
3
|
+
const url: "/api/hosts/reorder";
|
4
|
+
const TSQ_url: "/api/hosts/reorder";
|
5
|
+
const RequestSchema: z.ZodObject<{
|
6
|
+
hosts: z.ZodArray<z.ZodObject<Pick<{
|
7
|
+
uuid: z.ZodString;
|
8
|
+
inboundUuid: z.ZodString;
|
9
|
+
viewPosition: z.ZodNumber;
|
10
|
+
remark: z.ZodString;
|
11
|
+
address: z.ZodString;
|
12
|
+
port: z.ZodNumber;
|
13
|
+
path: z.ZodNullable<z.ZodString>;
|
14
|
+
sni: z.ZodNullable<z.ZodString>;
|
15
|
+
host: z.ZodNullable<z.ZodString>;
|
16
|
+
alpn: z.ZodNullable<z.ZodString>;
|
17
|
+
fingerprint: z.ZodNullable<z.ZodString>;
|
18
|
+
allowInsecure: z.ZodDefault<z.ZodBoolean>;
|
19
|
+
isDisabled: z.ZodDefault<z.ZodBoolean>;
|
20
|
+
}, "uuid" | "viewPosition">, "strip", z.ZodTypeAny, {
|
21
|
+
uuid: string;
|
22
|
+
viewPosition: number;
|
23
|
+
}, {
|
24
|
+
uuid: string;
|
25
|
+
viewPosition: number;
|
26
|
+
}>, "many">;
|
27
|
+
}, "strip", z.ZodTypeAny, {
|
28
|
+
hosts: {
|
29
|
+
uuid: string;
|
30
|
+
viewPosition: number;
|
31
|
+
}[];
|
32
|
+
}, {
|
33
|
+
hosts: {
|
34
|
+
uuid: string;
|
35
|
+
viewPosition: number;
|
36
|
+
}[];
|
37
|
+
}>;
|
38
|
+
type Request = z.infer<typeof RequestSchema>;
|
39
|
+
const ResponseSchema: z.ZodObject<{
|
40
|
+
response: z.ZodObject<{
|
41
|
+
isUpdated: z.ZodBoolean;
|
42
|
+
}, "strip", z.ZodTypeAny, {
|
43
|
+
isUpdated: boolean;
|
44
|
+
}, {
|
45
|
+
isUpdated: boolean;
|
46
|
+
}>;
|
47
|
+
}, "strip", z.ZodTypeAny, {
|
48
|
+
response: {
|
49
|
+
isUpdated: boolean;
|
50
|
+
};
|
51
|
+
}, {
|
52
|
+
response: {
|
53
|
+
isUpdated: boolean;
|
54
|
+
};
|
55
|
+
}>;
|
56
|
+
type Response = z.infer<typeof ResponseSchema>;
|
57
|
+
}
|
58
|
+
//# sourceMappingURL=reorder.command.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"reorder.command.d.ts","sourceRoot":"","sources":["../../../../commands/hosts/reorder.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,sBAAyB,CAAC;IACnC,MAAM,OAAO,sBAAM,CAAC;IAEpB,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAOxB,CAAC;IACH,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,138 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare namespace UpdateHostCommand {
|
3
|
+
const url: "/api/hosts/update";
|
4
|
+
const TSQ_url: "/api/hosts/update";
|
5
|
+
const RequestSchema: z.ZodObject<z.objectUtil.extendShape<Pick<{
|
6
|
+
uuid: z.ZodString;
|
7
|
+
inboundUuid: z.ZodString;
|
8
|
+
viewPosition: z.ZodNumber;
|
9
|
+
remark: z.ZodString;
|
10
|
+
address: z.ZodString;
|
11
|
+
port: z.ZodNumber;
|
12
|
+
path: z.ZodNullable<z.ZodString>;
|
13
|
+
sni: z.ZodNullable<z.ZodString>;
|
14
|
+
host: z.ZodNullable<z.ZodString>;
|
15
|
+
alpn: z.ZodNullable<z.ZodString>;
|
16
|
+
fingerprint: z.ZodNullable<z.ZodString>;
|
17
|
+
allowInsecure: z.ZodDefault<z.ZodBoolean>;
|
18
|
+
isDisabled: z.ZodDefault<z.ZodBoolean>;
|
19
|
+
}, "uuid">, {
|
20
|
+
inboundUuid: z.ZodOptional<z.ZodString>;
|
21
|
+
remark: z.ZodOptional<z.ZodString>;
|
22
|
+
address: z.ZodOptional<z.ZodString>;
|
23
|
+
port: z.ZodOptional<z.ZodNumber>;
|
24
|
+
path: z.ZodOptional<z.ZodString>;
|
25
|
+
sni: z.ZodOptional<z.ZodString>;
|
26
|
+
host: z.ZodOptional<z.ZodString>;
|
27
|
+
alpn: z.ZodOptional<z.ZodNullable<z.ZodEnum<["http/1.1" | "h2" | "h2,http/1.1", ...("http/1.1" | "h2" | "h2,http/1.1")[]]>>>;
|
28
|
+
fingerprint: z.ZodOptional<z.ZodNullable<z.ZodEnum<["chrome" | "firefox" | "safari" | "ios" | "android" | "edge" | "qq" | "random" | "randomized", ...("chrome" | "firefox" | "safari" | "ios" | "android" | "edge" | "qq" | "random" | "randomized")[]]>>>;
|
29
|
+
allowInsecure: z.ZodOptional<z.ZodBoolean>;
|
30
|
+
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
31
|
+
}>, "strip", z.ZodTypeAny, {
|
32
|
+
uuid: string;
|
33
|
+
path?: string | undefined;
|
34
|
+
inboundUuid?: string | undefined;
|
35
|
+
remark?: string | undefined;
|
36
|
+
address?: string | undefined;
|
37
|
+
port?: number | undefined;
|
38
|
+
sni?: string | undefined;
|
39
|
+
host?: string | undefined;
|
40
|
+
alpn?: "http/1.1" | "h2" | "h2,http/1.1" | null | undefined;
|
41
|
+
fingerprint?: "chrome" | "firefox" | "safari" | "ios" | "android" | "edge" | "qq" | "random" | "randomized" | null | undefined;
|
42
|
+
allowInsecure?: boolean | undefined;
|
43
|
+
isDisabled?: boolean | undefined;
|
44
|
+
}, {
|
45
|
+
uuid: string;
|
46
|
+
path?: string | undefined;
|
47
|
+
inboundUuid?: string | undefined;
|
48
|
+
remark?: string | undefined;
|
49
|
+
address?: string | undefined;
|
50
|
+
port?: number | undefined;
|
51
|
+
sni?: string | undefined;
|
52
|
+
host?: string | undefined;
|
53
|
+
alpn?: "http/1.1" | "h2" | "h2,http/1.1" | null | undefined;
|
54
|
+
fingerprint?: "chrome" | "firefox" | "safari" | "ios" | "android" | "edge" | "qq" | "random" | "randomized" | null | undefined;
|
55
|
+
allowInsecure?: boolean | undefined;
|
56
|
+
isDisabled?: boolean | undefined;
|
57
|
+
}>;
|
58
|
+
type Request = z.infer<typeof RequestSchema>;
|
59
|
+
const ResponseSchema: z.ZodObject<{
|
60
|
+
response: z.ZodObject<{
|
61
|
+
uuid: z.ZodString;
|
62
|
+
inboundUuid: z.ZodString;
|
63
|
+
viewPosition: z.ZodNumber;
|
64
|
+
remark: z.ZodString;
|
65
|
+
address: z.ZodString;
|
66
|
+
port: z.ZodNumber;
|
67
|
+
path: z.ZodNullable<z.ZodString>;
|
68
|
+
sni: z.ZodNullable<z.ZodString>;
|
69
|
+
host: z.ZodNullable<z.ZodString>;
|
70
|
+
alpn: z.ZodNullable<z.ZodString>;
|
71
|
+
fingerprint: z.ZodNullable<z.ZodString>;
|
72
|
+
allowInsecure: z.ZodDefault<z.ZodBoolean>;
|
73
|
+
isDisabled: z.ZodDefault<z.ZodBoolean>;
|
74
|
+
}, "strip", z.ZodTypeAny, {
|
75
|
+
uuid: string;
|
76
|
+
path: string | null;
|
77
|
+
inboundUuid: string;
|
78
|
+
viewPosition: number;
|
79
|
+
remark: string;
|
80
|
+
address: string;
|
81
|
+
port: number;
|
82
|
+
sni: string | null;
|
83
|
+
host: string | null;
|
84
|
+
alpn: string | null;
|
85
|
+
fingerprint: string | null;
|
86
|
+
allowInsecure: boolean;
|
87
|
+
isDisabled: boolean;
|
88
|
+
}, {
|
89
|
+
uuid: string;
|
90
|
+
path: string | null;
|
91
|
+
inboundUuid: string;
|
92
|
+
viewPosition: number;
|
93
|
+
remark: string;
|
94
|
+
address: string;
|
95
|
+
port: number;
|
96
|
+
sni: string | null;
|
97
|
+
host: string | null;
|
98
|
+
alpn: string | null;
|
99
|
+
fingerprint: string | null;
|
100
|
+
allowInsecure?: boolean | undefined;
|
101
|
+
isDisabled?: boolean | undefined;
|
102
|
+
}>;
|
103
|
+
}, "strip", z.ZodTypeAny, {
|
104
|
+
response: {
|
105
|
+
uuid: string;
|
106
|
+
path: string | null;
|
107
|
+
inboundUuid: string;
|
108
|
+
viewPosition: number;
|
109
|
+
remark: string;
|
110
|
+
address: string;
|
111
|
+
port: number;
|
112
|
+
sni: string | null;
|
113
|
+
host: string | null;
|
114
|
+
alpn: string | null;
|
115
|
+
fingerprint: string | null;
|
116
|
+
allowInsecure: boolean;
|
117
|
+
isDisabled: boolean;
|
118
|
+
};
|
119
|
+
}, {
|
120
|
+
response: {
|
121
|
+
uuid: string;
|
122
|
+
path: string | null;
|
123
|
+
inboundUuid: string;
|
124
|
+
viewPosition: number;
|
125
|
+
remark: string;
|
126
|
+
address: string;
|
127
|
+
port: number;
|
128
|
+
sni: string | null;
|
129
|
+
host: string | null;
|
130
|
+
alpn: string | null;
|
131
|
+
fingerprint: string | null;
|
132
|
+
allowInsecure?: boolean | undefined;
|
133
|
+
isDisabled?: boolean | undefined;
|
134
|
+
};
|
135
|
+
}>;
|
136
|
+
type Response = z.infer<typeof ResponseSchema>;
|
137
|
+
}
|
138
|
+
//# sourceMappingURL=update.command.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"update.command.d.ts","sourceRoot":"","sources":["../../../../commands/hosts/update.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,qBAAwB,CAAC;IAClC,MAAM,OAAO,qBAAM,CAAC;IAEpB,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAqCxB,CAAC;IACH,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,34 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare namespace GetInboundsCommand {
|
3
|
+
const url: "/api/inbounds/";
|
4
|
+
const TSQ_url: "/api/inbounds/";
|
5
|
+
const ResponseSchema: z.ZodObject<{
|
6
|
+
response: z.ZodArray<z.ZodObject<{
|
7
|
+
uuid: z.ZodString;
|
8
|
+
tag: z.ZodString;
|
9
|
+
type: z.ZodString;
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
11
|
+
uuid: string;
|
12
|
+
type: string;
|
13
|
+
tag: string;
|
14
|
+
}, {
|
15
|
+
uuid: string;
|
16
|
+
type: string;
|
17
|
+
tag: string;
|
18
|
+
}>, "many">;
|
19
|
+
}, "strip", z.ZodTypeAny, {
|
20
|
+
response: {
|
21
|
+
uuid: string;
|
22
|
+
type: string;
|
23
|
+
tag: string;
|
24
|
+
}[];
|
25
|
+
}, {
|
26
|
+
response: {
|
27
|
+
uuid: string;
|
28
|
+
type: string;
|
29
|
+
tag: string;
|
30
|
+
}[];
|
31
|
+
}>;
|
32
|
+
type Response = z.infer<typeof ResponseSchema>;
|
33
|
+
}
|
34
|
+
//# sourceMappingURL=get-inbounds.command.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"get-inbounds.command.d.ts","sourceRoot":"","sources":["../../../../commands/inbounds/get-inbounds.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,kBAAiC,CAAC;IAC3C,MAAM,OAAO,kBAAM,CAAC;IAEpB,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,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/inbounds/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../commands/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC"}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare namespace GetPubKeyCommand {
|
3
|
+
const url: "/api/keygen/get";
|
4
|
+
const TSQ_url: "/api/keygen/get";
|
5
|
+
const ResponseSchema: z.ZodObject<{
|
6
|
+
response: z.ZodObject<{
|
7
|
+
pubKey: z.ZodString;
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
9
|
+
pubKey: string;
|
10
|
+
}, {
|
11
|
+
pubKey: string;
|
12
|
+
}>;
|
13
|
+
}, "strip", z.ZodTypeAny, {
|
14
|
+
response: {
|
15
|
+
pubKey: string;
|
16
|
+
};
|
17
|
+
}, {
|
18
|
+
response: {
|
19
|
+
pubKey: string;
|
20
|
+
};
|
21
|
+
}>;
|
22
|
+
type Response = z.infer<typeof ResponseSchema>;
|
23
|
+
}
|
24
|
+
//# sourceMappingURL=get-pubkey.command.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"get-pubkey.command.d.ts","sourceRoot":"","sources":["../../../../commands/keygen/get-pubkey.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,gBAAgB,CAAC;IACvB,MAAM,GAAG,mBAAsB,CAAC;IAChC,MAAM,OAAO,mBAAM,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/keygen/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC"}
|
@@ -0,0 +1,155 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare namespace CreateNodeCommand {
|
3
|
+
const url: "/api/nodes/create";
|
4
|
+
const TSQ_url: "/api/nodes/create";
|
5
|
+
const RequestSchema: z.ZodObject<{
|
6
|
+
name: z.ZodString;
|
7
|
+
address: z.ZodString;
|
8
|
+
port: z.ZodOptional<z.ZodNumber>;
|
9
|
+
isTrafficTrackingActive: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
10
|
+
trafficLimitBytes: z.ZodOptional<z.ZodNumber>;
|
11
|
+
notifyPercent: z.ZodOptional<z.ZodNumber>;
|
12
|
+
trafficResetDay: z.ZodOptional<z.ZodNumber>;
|
13
|
+
}, "strip", z.ZodTypeAny, {
|
14
|
+
address: string;
|
15
|
+
name: string;
|
16
|
+
isTrafficTrackingActive: boolean;
|
17
|
+
port?: number | undefined;
|
18
|
+
trafficResetDay?: number | undefined;
|
19
|
+
trafficLimitBytes?: number | undefined;
|
20
|
+
notifyPercent?: number | undefined;
|
21
|
+
}, {
|
22
|
+
address: string;
|
23
|
+
name: string;
|
24
|
+
port?: number | undefined;
|
25
|
+
isTrafficTrackingActive?: boolean | undefined;
|
26
|
+
trafficResetDay?: number | undefined;
|
27
|
+
trafficLimitBytes?: number | undefined;
|
28
|
+
notifyPercent?: number | undefined;
|
29
|
+
}>;
|
30
|
+
type Request = z.infer<typeof RequestSchema>;
|
31
|
+
const ResponseSchema: z.ZodObject<{
|
32
|
+
response: z.ZodObject<{
|
33
|
+
uuid: z.ZodString;
|
34
|
+
name: z.ZodString;
|
35
|
+
address: z.ZodString;
|
36
|
+
port: z.ZodNullable<z.ZodNumber>;
|
37
|
+
isConnected: z.ZodBoolean;
|
38
|
+
isDisabled: z.ZodBoolean;
|
39
|
+
isConnecting: z.ZodBoolean;
|
40
|
+
isNodeOnline: z.ZodBoolean;
|
41
|
+
isXrayRunning: z.ZodBoolean;
|
42
|
+
lastStatusChange: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
43
|
+
lastStatusMessage: z.ZodNullable<z.ZodString>;
|
44
|
+
xrayVersion: z.ZodNullable<z.ZodString>;
|
45
|
+
isTrafficTrackingActive: z.ZodBoolean;
|
46
|
+
trafficResetDay: z.ZodNullable<z.ZodNumber>;
|
47
|
+
trafficLimitBytes: z.ZodNullable<z.ZodNumber>;
|
48
|
+
trafficUsedBytes: z.ZodNullable<z.ZodNumber>;
|
49
|
+
notifyPercent: z.ZodNullable<z.ZodNumber>;
|
50
|
+
cpuCount: z.ZodNullable<z.ZodNumber>;
|
51
|
+
cpuModel: z.ZodNullable<z.ZodString>;
|
52
|
+
totalRam: z.ZodNullable<z.ZodString>;
|
53
|
+
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
54
|
+
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
55
|
+
}, "strip", z.ZodTypeAny, {
|
56
|
+
uuid: string;
|
57
|
+
createdAt: Date;
|
58
|
+
updatedAt: Date;
|
59
|
+
address: string;
|
60
|
+
port: number | null;
|
61
|
+
isDisabled: boolean;
|
62
|
+
name: string;
|
63
|
+
isConnected: boolean;
|
64
|
+
isConnecting: boolean;
|
65
|
+
isNodeOnline: boolean;
|
66
|
+
isXrayRunning: boolean;
|
67
|
+
lastStatusChange: Date | null;
|
68
|
+
lastStatusMessage: string | null;
|
69
|
+
xrayVersion: string | null;
|
70
|
+
isTrafficTrackingActive: boolean;
|
71
|
+
trafficResetDay: number | null;
|
72
|
+
trafficLimitBytes: number | null;
|
73
|
+
trafficUsedBytes: number | null;
|
74
|
+
notifyPercent: number | null;
|
75
|
+
cpuCount: number | null;
|
76
|
+
cpuModel: string | null;
|
77
|
+
totalRam: string | null;
|
78
|
+
}, {
|
79
|
+
uuid: string;
|
80
|
+
createdAt: string;
|
81
|
+
updatedAt: string;
|
82
|
+
address: string;
|
83
|
+
port: number | null;
|
84
|
+
isDisabled: boolean;
|
85
|
+
name: string;
|
86
|
+
isConnected: boolean;
|
87
|
+
isConnecting: boolean;
|
88
|
+
isNodeOnline: boolean;
|
89
|
+
isXrayRunning: boolean;
|
90
|
+
lastStatusChange: string | null;
|
91
|
+
lastStatusMessage: string | null;
|
92
|
+
xrayVersion: string | null;
|
93
|
+
isTrafficTrackingActive: boolean;
|
94
|
+
trafficResetDay: number | null;
|
95
|
+
trafficLimitBytes: number | null;
|
96
|
+
trafficUsedBytes: number | null;
|
97
|
+
notifyPercent: number | null;
|
98
|
+
cpuCount: number | null;
|
99
|
+
cpuModel: string | null;
|
100
|
+
totalRam: string | null;
|
101
|
+
}>;
|
102
|
+
}, "strip", z.ZodTypeAny, {
|
103
|
+
response: {
|
104
|
+
uuid: string;
|
105
|
+
createdAt: Date;
|
106
|
+
updatedAt: Date;
|
107
|
+
address: string;
|
108
|
+
port: number | null;
|
109
|
+
isDisabled: boolean;
|
110
|
+
name: string;
|
111
|
+
isConnected: boolean;
|
112
|
+
isConnecting: boolean;
|
113
|
+
isNodeOnline: boolean;
|
114
|
+
isXrayRunning: boolean;
|
115
|
+
lastStatusChange: Date | null;
|
116
|
+
lastStatusMessage: string | null;
|
117
|
+
xrayVersion: string | null;
|
118
|
+
isTrafficTrackingActive: boolean;
|
119
|
+
trafficResetDay: number | null;
|
120
|
+
trafficLimitBytes: number | null;
|
121
|
+
trafficUsedBytes: number | null;
|
122
|
+
notifyPercent: number | null;
|
123
|
+
cpuCount: number | null;
|
124
|
+
cpuModel: string | null;
|
125
|
+
totalRam: string | null;
|
126
|
+
};
|
127
|
+
}, {
|
128
|
+
response: {
|
129
|
+
uuid: string;
|
130
|
+
createdAt: string;
|
131
|
+
updatedAt: string;
|
132
|
+
address: string;
|
133
|
+
port: number | null;
|
134
|
+
isDisabled: boolean;
|
135
|
+
name: string;
|
136
|
+
isConnected: boolean;
|
137
|
+
isConnecting: boolean;
|
138
|
+
isNodeOnline: boolean;
|
139
|
+
isXrayRunning: boolean;
|
140
|
+
lastStatusChange: string | null;
|
141
|
+
lastStatusMessage: string | null;
|
142
|
+
xrayVersion: string | null;
|
143
|
+
isTrafficTrackingActive: boolean;
|
144
|
+
trafficResetDay: number | null;
|
145
|
+
trafficLimitBytes: number | null;
|
146
|
+
trafficUsedBytes: number | null;
|
147
|
+
notifyPercent: number | null;
|
148
|
+
cpuCount: number | null;
|
149
|
+
cpuModel: string | null;
|
150
|
+
totalRam: string | null;
|
151
|
+
};
|
152
|
+
}>;
|
153
|
+
type Response = z.infer<typeof ResponseSchema>;
|
154
|
+
}
|
155
|
+
//# sourceMappingURL=create.command.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"create.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/create.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,qBAAwB,CAAC;IAClC,MAAM,OAAO,qBAAM,CAAC;IAEpB,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;MAsBxB,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,32 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare namespace DeleteNodeCommand {
|
3
|
+
const url: (uuid: string) => string;
|
4
|
+
const TSQ_url: string;
|
5
|
+
const RequestSchema: z.ZodObject<{
|
6
|
+
uuid: z.ZodString;
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
8
|
+
uuid: string;
|
9
|
+
}, {
|
10
|
+
uuid: string;
|
11
|
+
}>;
|
12
|
+
type Request = z.infer<typeof RequestSchema>;
|
13
|
+
const ResponseSchema: z.ZodObject<{
|
14
|
+
response: z.ZodObject<{
|
15
|
+
isDeleted: z.ZodBoolean;
|
16
|
+
}, "strip", z.ZodTypeAny, {
|
17
|
+
isDeleted: boolean;
|
18
|
+
}, {
|
19
|
+
isDeleted: boolean;
|
20
|
+
}>;
|
21
|
+
}, "strip", z.ZodTypeAny, {
|
22
|
+
response: {
|
23
|
+
isDeleted: boolean;
|
24
|
+
};
|
25
|
+
}, {
|
26
|
+
response: {
|
27
|
+
isDeleted: boolean;
|
28
|
+
};
|
29
|
+
}>;
|
30
|
+
type Response = z.infer<typeof ResponseSchema>;
|
31
|
+
}
|
32
|
+
//# sourceMappingURL=delete.command.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"delete.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/delete.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,0BAAwB,CAAC;IAClC,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,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"}
|