@remnawave/backend-contract 0.0.56 → 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/{commands → backend/commands}/users/create-user.command.js +9 -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 -108
- 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/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":"api-tokens.d.ts","sourceRoot":"","sources":["../../../../api/controllers/api-tokens.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,EAAG,QAAiB,CAAC;AAEvD,eAAO,MAAM,iBAAiB;;;;CAIpB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../../api/controllers/auth.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,EAAG,MAAe,CAAC;AAE/C,eAAO,MAAM,WAAW;;CAEd,CAAC"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
export declare const HOSTS_CONTROLLER: "hosts";
|
2
|
+
export declare const HOSTS_ROUTES: {
|
3
|
+
readonly CREATE: "create";
|
4
|
+
readonly DELETE: "delete";
|
5
|
+
readonly GET_ALL: "all";
|
6
|
+
readonly UPDATE: "update";
|
7
|
+
readonly UPDATE_MANY: "many";
|
8
|
+
readonly REORDER: "reorder";
|
9
|
+
};
|
10
|
+
//# sourceMappingURL=hosts.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"hosts.d.ts","sourceRoot":"","sources":["../../../../api/controllers/hosts.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,EAAG,OAAgB,CAAC;AAEjD,eAAO,MAAM,YAAY;;;;;;;CAOf,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"inbounds.d.ts","sourceRoot":"","sources":["../../../../api/controllers/inbounds.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,EAAG,UAAmB,CAAC;AAEvD,eAAO,MAAM,eAAe;;CAElB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../api/controllers/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 @@
|
|
1
|
+
{"version":3,"file":"keygen.d.ts","sourceRoot":"","sources":["../../../../api/controllers/keygen.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,EAAG,QAAiB,CAAC;AAEnD,eAAO,MAAM,aAAa;;CAEhB,CAAC"}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
export declare const NODES_CONTROLLER: "nodes";
|
2
|
+
export declare const NODES_ROUTES: {
|
3
|
+
readonly CREATE: "create";
|
4
|
+
readonly ENABLE: "enable";
|
5
|
+
readonly RESTART: "restart";
|
6
|
+
readonly RESTART_ALL: "restart-all";
|
7
|
+
readonly DELETE: "delete";
|
8
|
+
readonly UPDATE: "update";
|
9
|
+
readonly DISABLE: "disable";
|
10
|
+
readonly GET_ALL: "get-all";
|
11
|
+
readonly GET_ONE: "get-one";
|
12
|
+
};
|
13
|
+
//# sourceMappingURL=nodes.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"nodes.d.ts","sourceRoot":"","sources":["../../../../api/controllers/nodes.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,EAAG,OAAgB,CAAC;AAEjD,eAAO,MAAM,YAAY;;;;;;;;;;CAWf,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"subscription.d.ts","sourceRoot":"","sources":["../../../../api/controllers/subscription.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,EAAG,KAAc,CAAC;AAEtD,eAAO,MAAM,mBAAmB;;;CAGtB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"system.d.ts","sourceRoot":"","sources":["../../../../api/controllers/system.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,EAAG,QAAiB,CAAC;AAEnD,eAAO,MAAM,aAAa;;;;;;CAMhB,CAAC"}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
export declare const USERS_CONTROLLER: "users";
|
2
|
+
export declare const USERS_ROUTES: {
|
3
|
+
readonly CREATE: "";
|
4
|
+
readonly GET_BY_UUID: "uuid";
|
5
|
+
readonly GET_BY_SHORT_UUID: "short-uuid";
|
6
|
+
readonly GET_BY_SUBSCRIPTION_UUID: "sub-uuid";
|
7
|
+
readonly GET_ALL: "";
|
8
|
+
readonly GET_ALL_V2: "v2";
|
9
|
+
readonly REVOKE_SUBSCRIPTION: "revoke";
|
10
|
+
readonly DISABLE_USER: "disable";
|
11
|
+
readonly ENABLE_USER: "enable";
|
12
|
+
readonly DELETE_USER: "delete";
|
13
|
+
readonly UPDATE: "update";
|
14
|
+
};
|
15
|
+
//# sourceMappingURL=users.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../../../api/controllers/users.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,EAAG,OAAgB,CAAC;AAEjD,eAAO,MAAM,YAAY;;;;;;;;;;;;CAYf,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"xray.d.ts","sourceRoot":"","sources":["../../../../api/controllers/xray.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,EAAG,MAAe,CAAC;AAE/C,eAAO,MAAM,WAAW;;;CAGd,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../api/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC"}
|
@@ -0,0 +1,63 @@
|
|
1
|
+
export declare const ROOT: "/api";
|
2
|
+
export declare const REST_API: {
|
3
|
+
readonly AUTH: {
|
4
|
+
readonly LOGIN: "/api/auth/login";
|
5
|
+
};
|
6
|
+
readonly API_TOKENS: {
|
7
|
+
readonly CREATE: "/api/tokens/create";
|
8
|
+
readonly DELETE: (uuid: string) => string;
|
9
|
+
readonly GET_ALL: "/api/tokens/";
|
10
|
+
};
|
11
|
+
readonly KEYGEN: {
|
12
|
+
readonly GET: "/api/keygen/get";
|
13
|
+
};
|
14
|
+
readonly NODES: {
|
15
|
+
readonly CREATE: "/api/nodes/create";
|
16
|
+
readonly DELETE: (uuid: string) => string;
|
17
|
+
readonly UPDATE: "/api/nodes/update";
|
18
|
+
readonly GET_ALL: "/api/nodes/get-all";
|
19
|
+
readonly RESTART: (uuid: string) => string;
|
20
|
+
readonly GET_ONE: (uuid: string) => string;
|
21
|
+
readonly DISABLE: (uuid: string) => string;
|
22
|
+
readonly ENABLE: (uuid: string) => string;
|
23
|
+
readonly RESTART_ALL: "/api/nodes/restart-all";
|
24
|
+
};
|
25
|
+
readonly XRAY: {
|
26
|
+
readonly GET_CONFIG: "/api/xray/get-config";
|
27
|
+
readonly UPDATE_CONFIG: "/api/xray/update-config";
|
28
|
+
};
|
29
|
+
readonly INBOUNDS: {
|
30
|
+
readonly GET_INBOUNDS: "/api/inbounds/";
|
31
|
+
};
|
32
|
+
readonly USERS: {
|
33
|
+
readonly CREATE: "/api/users/";
|
34
|
+
readonly GET_BY_UUID: (uuid: string) => string;
|
35
|
+
readonly GET_BY_SHORT_UUID: (shortUuid: string) => string;
|
36
|
+
readonly GET_BY_SUBSCRIPTION_UUID: (subscriptionUuid: string) => string;
|
37
|
+
readonly GET_ALL: "/api/users/";
|
38
|
+
readonly REVOKE_SUBSCRIPTION: (uuid: string) => string;
|
39
|
+
readonly DISABLE_USER: (uuid: string) => string;
|
40
|
+
readonly ENABLE_USER: (uuid: string) => string;
|
41
|
+
readonly DELETE_USER: (uuid: string) => string;
|
42
|
+
readonly UPDATE: "/api/users/update";
|
43
|
+
readonly GET_ALL_V2: "/api/users/v2";
|
44
|
+
};
|
45
|
+
readonly SUBSCRIPTION: {
|
46
|
+
readonly GET: (shortUuid: string) => string;
|
47
|
+
readonly GET_INFO: (shortUuid: string) => string;
|
48
|
+
};
|
49
|
+
readonly HOSTS: {
|
50
|
+
readonly CREATE: "/api/hosts/create";
|
51
|
+
readonly GET_ALL: "/api/hosts/all";
|
52
|
+
readonly UPDATE: "/api/hosts/update";
|
53
|
+
readonly UPDATE_MANY: "/api/hosts/many";
|
54
|
+
readonly REORDER: "/api/hosts/reorder";
|
55
|
+
readonly DELETE: (uuid: string) => string;
|
56
|
+
};
|
57
|
+
readonly SYSTEM: {
|
58
|
+
readonly STATS: "/api/system/stats";
|
59
|
+
readonly BANDWIDTH: "/api/system/bandwidth";
|
60
|
+
readonly NODES_STATISTIC: "/api/system/statistics/nodes";
|
61
|
+
};
|
62
|
+
};
|
63
|
+
//# sourceMappingURL=routes.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../api/routes.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,EAAG,MAAe,CAAC;AAEpC,eAAO,MAAM,QAAQ;;;;;;gCAME,MAAM;;;;;;;;gCASN,MAAM;;;iCAIL,MAAM;iCAEN,MAAM;iCAEN,MAAM;gCAEP,MAAM;;;;;;;;;;;;qCAaD,MAAM;gDAEK,MAAM;8DAEQ,MAAM;;6CAGvB,MAAM;sCAEb,MAAM;qCAEP,MAAM;qCAEN,MAAM;;;;;kCAMT,MAAM;uCAED,MAAM;;;;;;;;gCASb,MAAM;;;;;;;CAQnB,CAAC"}
|
@@ -0,0 +1,40 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare namespace CreateApiTokenCommand {
|
3
|
+
const url: "/api/tokens/create";
|
4
|
+
const TSQ_url: "/api/tokens/create";
|
5
|
+
const RequestSchema: z.ZodObject<{
|
6
|
+
tokenName: z.ZodString;
|
7
|
+
tokenDescription: z.ZodNullable<z.ZodString>;
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
9
|
+
tokenName: string;
|
10
|
+
tokenDescription: string | null;
|
11
|
+
}, {
|
12
|
+
tokenName: string;
|
13
|
+
tokenDescription: string | null;
|
14
|
+
}>;
|
15
|
+
type Request = z.infer<typeof RequestSchema>;
|
16
|
+
const ResponseSchema: z.ZodObject<{
|
17
|
+
response: z.ZodObject<{
|
18
|
+
token: z.ZodString;
|
19
|
+
uuid: z.ZodString;
|
20
|
+
}, "strip", z.ZodTypeAny, {
|
21
|
+
uuid: string;
|
22
|
+
token: string;
|
23
|
+
}, {
|
24
|
+
uuid: string;
|
25
|
+
token: string;
|
26
|
+
}>;
|
27
|
+
}, "strip", z.ZodTypeAny, {
|
28
|
+
response: {
|
29
|
+
uuid: string;
|
30
|
+
token: string;
|
31
|
+
};
|
32
|
+
}, {
|
33
|
+
response: {
|
34
|
+
uuid: string;
|
35
|
+
token: string;
|
36
|
+
};
|
37
|
+
}>;
|
38
|
+
type Response = z.infer<typeof ResponseSchema>;
|
39
|
+
}
|
40
|
+
//# sourceMappingURL=create.command.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"create.command.d.ts","sourceRoot":"","sources":["../../../../commands/api-tokens/create.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,qBAAqB,CAAC;IAC5B,MAAM,GAAG,sBAA6B,CAAC;IACvC,MAAM,OAAO,sBAAM,CAAC;IAEpB,MAAM,aAAa;;;;;;;;;MAGxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;MAKzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare namespace DeleteApiTokenCommand {
|
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.ZodBoolean;
|
15
|
+
}, "strip", z.ZodTypeAny, {
|
16
|
+
response: boolean;
|
17
|
+
}, {
|
18
|
+
response: boolean;
|
19
|
+
}>;
|
20
|
+
type Response = z.infer<typeof ResponseSchema>;
|
21
|
+
}
|
22
|
+
//# sourceMappingURL=delete.command.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"delete.command.d.ts","sourceRoot":"","sources":["../../../../commands/api-tokens/delete.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,qBAAqB,CAAC;IAC5B,MAAM,GAAG,0BAA6B,CAAC;IACvC,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
@@ -0,0 +1,49 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare namespace FindAllApiTokensCommand {
|
3
|
+
const url: "/api/tokens/";
|
4
|
+
const TSQ_url: "/api/tokens/";
|
5
|
+
const ResponseSchema: z.ZodObject<{
|
6
|
+
response: z.ZodArray<z.ZodObject<{
|
7
|
+
uuid: z.ZodString;
|
8
|
+
token: z.ZodString;
|
9
|
+
tokenName: z.ZodString;
|
10
|
+
tokenDescription: z.ZodNullable<z.ZodString>;
|
11
|
+
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
12
|
+
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
13
|
+
}, "strip", z.ZodTypeAny, {
|
14
|
+
uuid: string;
|
15
|
+
tokenName: string;
|
16
|
+
tokenDescription: string | null;
|
17
|
+
token: string;
|
18
|
+
createdAt: Date;
|
19
|
+
updatedAt: Date;
|
20
|
+
}, {
|
21
|
+
uuid: string;
|
22
|
+
tokenName: string;
|
23
|
+
tokenDescription: string | null;
|
24
|
+
token: string;
|
25
|
+
createdAt: string;
|
26
|
+
updatedAt: string;
|
27
|
+
}>, "many">;
|
28
|
+
}, "strip", z.ZodTypeAny, {
|
29
|
+
response: {
|
30
|
+
uuid: string;
|
31
|
+
tokenName: string;
|
32
|
+
tokenDescription: string | null;
|
33
|
+
token: string;
|
34
|
+
createdAt: Date;
|
35
|
+
updatedAt: Date;
|
36
|
+
}[];
|
37
|
+
}, {
|
38
|
+
response: {
|
39
|
+
uuid: string;
|
40
|
+
tokenName: string;
|
41
|
+
tokenDescription: string | null;
|
42
|
+
token: string;
|
43
|
+
createdAt: string;
|
44
|
+
updatedAt: string;
|
45
|
+
}[];
|
46
|
+
}>;
|
47
|
+
type Response = z.infer<typeof ResponseSchema>;
|
48
|
+
}
|
49
|
+
//# sourceMappingURL=find.command.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"find.command.d.ts","sourceRoot":"","sources":["../../../../commands/api-tokens/find.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,yBAAiB,uBAAuB,CAAC;IAC9B,MAAM,GAAG,gBAA8B,CAAC;IACxC,MAAM,OAAO,gBAAM,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/api-tokens/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commands/auth/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare namespace LoginCommand {
|
3
|
+
const url: "/api/auth/login";
|
4
|
+
const TSQ_url: "/api/auth/login";
|
5
|
+
const RequestSchema: z.ZodObject<{
|
6
|
+
username: z.ZodString;
|
7
|
+
password: z.ZodString;
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
9
|
+
username: string;
|
10
|
+
password: string;
|
11
|
+
}, {
|
12
|
+
username: string;
|
13
|
+
password: string;
|
14
|
+
}>;
|
15
|
+
type Request = z.infer<typeof RequestSchema>;
|
16
|
+
const ResponseSchema: z.ZodObject<{
|
17
|
+
response: z.ZodObject<{
|
18
|
+
accessToken: z.ZodString;
|
19
|
+
}, "strip", z.ZodTypeAny, {
|
20
|
+
accessToken: string;
|
21
|
+
}, {
|
22
|
+
accessToken: string;
|
23
|
+
}>;
|
24
|
+
}, "strip", z.ZodTypeAny, {
|
25
|
+
response: {
|
26
|
+
accessToken: string;
|
27
|
+
};
|
28
|
+
}, {
|
29
|
+
response: {
|
30
|
+
accessToken: string;
|
31
|
+
};
|
32
|
+
}>;
|
33
|
+
type Response = z.infer<typeof ResponseSchema>;
|
34
|
+
}
|
35
|
+
//# sourceMappingURL=login.command.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"login.command.d.ts","sourceRoot":"","sources":["../../../../commands/auth/login.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,yBAAiB,YAAY,CAAC;IACnB,MAAM,GAAG,mBAAsB,CAAC;IAChC,MAAM,OAAO,mBAAM,CAAC;IAEpB,MAAM,aAAa;;;;;;;;;MAGxB,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"}
|
@@ -0,0 +1,122 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare namespace CreateHostCommand {
|
3
|
+
const url: "/api/hosts/create";
|
4
|
+
const TSQ_url: "/api/hosts/create";
|
5
|
+
const RequestSchema: z.ZodObject<{
|
6
|
+
inboundUuid: z.ZodString;
|
7
|
+
remark: z.ZodString;
|
8
|
+
address: z.ZodString;
|
9
|
+
port: z.ZodNumber;
|
10
|
+
path: z.ZodOptional<z.ZodString>;
|
11
|
+
sni: z.ZodOptional<z.ZodString>;
|
12
|
+
host: z.ZodOptional<z.ZodString>;
|
13
|
+
alpn: z.ZodOptional<z.ZodNullable<z.ZodEnum<["http/1.1" | "h2" | "h2,http/1.1", ...("http/1.1" | "h2" | "h2,http/1.1")[]]>>>;
|
14
|
+
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")[]]>>>;
|
15
|
+
allowInsecure: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
16
|
+
isDisabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
17
|
+
}, "strip", z.ZodTypeAny, {
|
18
|
+
inboundUuid: string;
|
19
|
+
remark: string;
|
20
|
+
address: string;
|
21
|
+
port: number;
|
22
|
+
path?: string | undefined;
|
23
|
+
sni?: string | undefined;
|
24
|
+
host?: string | undefined;
|
25
|
+
alpn?: "http/1.1" | "h2" | "h2,http/1.1" | null | undefined;
|
26
|
+
fingerprint?: "chrome" | "firefox" | "safari" | "ios" | "android" | "edge" | "qq" | "random" | "randomized" | null | undefined;
|
27
|
+
allowInsecure?: boolean | undefined;
|
28
|
+
isDisabled?: boolean | undefined;
|
29
|
+
}, {
|
30
|
+
inboundUuid: string;
|
31
|
+
remark: string;
|
32
|
+
address: string;
|
33
|
+
port: number;
|
34
|
+
path?: string | undefined;
|
35
|
+
sni?: string | undefined;
|
36
|
+
host?: string | undefined;
|
37
|
+
alpn?: "http/1.1" | "h2" | "h2,http/1.1" | null | undefined;
|
38
|
+
fingerprint?: "chrome" | "firefox" | "safari" | "ios" | "android" | "edge" | "qq" | "random" | "randomized" | null | undefined;
|
39
|
+
allowInsecure?: boolean | undefined;
|
40
|
+
isDisabled?: boolean | undefined;
|
41
|
+
}>;
|
42
|
+
type Request = z.infer<typeof RequestSchema>;
|
43
|
+
const ResponseSchema: z.ZodObject<{
|
44
|
+
response: z.ZodObject<{
|
45
|
+
uuid: z.ZodString;
|
46
|
+
inboundUuid: z.ZodString;
|
47
|
+
viewPosition: z.ZodNumber;
|
48
|
+
remark: z.ZodString;
|
49
|
+
address: z.ZodString;
|
50
|
+
port: z.ZodNumber;
|
51
|
+
path: z.ZodNullable<z.ZodString>;
|
52
|
+
sni: z.ZodNullable<z.ZodString>;
|
53
|
+
host: z.ZodNullable<z.ZodString>;
|
54
|
+
alpn: z.ZodNullable<z.ZodString>;
|
55
|
+
fingerprint: z.ZodNullable<z.ZodString>;
|
56
|
+
allowInsecure: z.ZodDefault<z.ZodBoolean>;
|
57
|
+
isDisabled: z.ZodDefault<z.ZodBoolean>;
|
58
|
+
}, "strip", z.ZodTypeAny, {
|
59
|
+
uuid: string;
|
60
|
+
path: string | null;
|
61
|
+
inboundUuid: string;
|
62
|
+
viewPosition: number;
|
63
|
+
remark: string;
|
64
|
+
address: string;
|
65
|
+
port: number;
|
66
|
+
sni: string | null;
|
67
|
+
host: string | null;
|
68
|
+
alpn: string | null;
|
69
|
+
fingerprint: string | null;
|
70
|
+
allowInsecure: boolean;
|
71
|
+
isDisabled: boolean;
|
72
|
+
}, {
|
73
|
+
uuid: string;
|
74
|
+
path: string | null;
|
75
|
+
inboundUuid: string;
|
76
|
+
viewPosition: number;
|
77
|
+
remark: string;
|
78
|
+
address: string;
|
79
|
+
port: number;
|
80
|
+
sni: string | null;
|
81
|
+
host: string | null;
|
82
|
+
alpn: string | null;
|
83
|
+
fingerprint: string | null;
|
84
|
+
allowInsecure?: boolean | undefined;
|
85
|
+
isDisabled?: boolean | undefined;
|
86
|
+
}>;
|
87
|
+
}, "strip", z.ZodTypeAny, {
|
88
|
+
response: {
|
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;
|
101
|
+
isDisabled: boolean;
|
102
|
+
};
|
103
|
+
}, {
|
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 | undefined;
|
117
|
+
isDisabled?: boolean | undefined;
|
118
|
+
};
|
119
|
+
}>;
|
120
|
+
type Response = z.infer<typeof ResponseSchema>;
|
121
|
+
}
|
122
|
+
//# sourceMappingURL=create.command.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"create.command.d.ts","sourceRoot":"","sources":["../../../../commands/hosts/create.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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA8BxB,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,32 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare namespace DeleteHostCommand {
|
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/hosts/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"}
|