@remnawave/backend-contract 0.7.26 → 2.0.0-alpha.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/backend/api/controllers/config-profiles.d.ts +11 -0
- package/build/backend/api/controllers/config-profiles.d.ts.map +1 -0
- package/build/backend/api/controllers/config-profiles.js +13 -0
- package/build/backend/api/controllers/index.d.ts +3 -2
- package/build/backend/api/controllers/index.d.ts.map +1 -1
- package/build/backend/api/controllers/index.js +3 -2
- package/build/backend/api/controllers/infra-billing.d.ts +16 -0
- package/build/backend/api/controllers/infra-billing.d.ts.map +1 -0
- package/build/backend/api/controllers/infra-billing.js +22 -0
- package/build/backend/api/controllers/internal-squads.d.ts +9 -0
- package/build/backend/api/controllers/internal-squads.d.ts.map +1 -0
- package/build/backend/api/controllers/internal-squads.js +11 -0
- package/build/backend/api/controllers/users.d.ts +2 -2
- package/build/backend/api/controllers/users.d.ts.map +1 -1
- package/build/backend/api/controllers/users.js +2 -2
- package/build/backend/api/routes.d.ts +32 -16
- package/build/backend/api/routes.d.ts.map +1 -1
- package/build/backend/api/routes.js +32 -16
- package/build/backend/commands/config-profiles/create-config-profile.command.d.ts +161 -0
- package/build/backend/commands/config-profiles/create-config-profile.command.d.ts.map +1 -0
- package/build/backend/commands/config-profiles/create-config-profile.command.js +24 -0
- package/build/backend/commands/config-profiles/delete-config-profile.command.d.ts +33 -0
- package/build/backend/commands/config-profiles/delete-config-profile.command.d.ts.map +1 -0
- package/build/backend/commands/config-profiles/delete-config-profile.command.js +20 -0
- package/build/backend/commands/config-profiles/get-all-inbounds.command.d.ts +93 -0
- package/build/backend/commands/config-profiles/get-all-inbounds.command.d.ts.map +1 -0
- package/build/backend/commands/config-profiles/get-all-inbounds.command.js +19 -0
- package/build/backend/commands/config-profiles/get-config-profile-by-uuid.command.d.ts +154 -0
- package/build/backend/commands/config-profiles/get-config-profile-by-uuid.command.d.ts.map +1 -0
- package/build/backend/commands/config-profiles/get-config-profile-by-uuid.command.js +19 -0
- package/build/backend/commands/config-profiles/get-config-profiles.command.d.ts +203 -0
- package/build/backend/commands/config-profiles/get-config-profiles.command.d.ts.map +1 -0
- package/build/backend/commands/config-profiles/get-config-profiles.command.js +19 -0
- package/build/backend/commands/config-profiles/get-inbounds-by-profile-uuid.command.d.ts +101 -0
- package/build/backend/commands/config-profiles/get-inbounds-by-profile-uuid.command.d.ts.map +1 -0
- package/build/backend/commands/config-profiles/get-inbounds-by-profile-uuid.command.js +22 -0
- package/build/backend/commands/config-profiles/index.d.ts +8 -0
- package/build/backend/commands/config-profiles/index.d.ts.map +1 -0
- package/build/backend/commands/config-profiles/index.js +23 -0
- package/build/backend/commands/config-profiles/update-config-profile.command.d.ts +161 -0
- package/build/backend/commands/config-profiles/update-config-profile.command.d.ts.map +1 -0
- package/build/backend/commands/config-profiles/update-config-profile.command.js +20 -0
- package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts +10 -10
- package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts +10 -10
- package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts +10 -10
- package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.d.ts +16 -13
- package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.js +2 -1
- package/build/backend/commands/hosts/bulk/set-port-to-many-hosts.command.d.ts +10 -10
- package/build/backend/commands/hosts/create.command.d.ts +18 -15
- package/build/backend/commands/hosts/create.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/create.command.js +9 -2
- package/build/backend/commands/hosts/get-all.command.d.ts +10 -10
- package/build/backend/commands/hosts/get-one.command.d.ts +10 -10
- package/build/backend/commands/hosts/reorder.command.d.ts +2 -2
- package/build/backend/commands/hosts/update.command.d.ts +20 -17
- package/build/backend/commands/hosts/update.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/update.command.js +7 -1
- package/build/backend/commands/index.d.ts +3 -2
- package/build/backend/commands/index.d.ts.map +1 -1
- package/build/backend/commands/index.js +3 -2
- package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts +123 -0
- package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/create-infra-provider.command.js +24 -0
- package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.d.ts +33 -0
- package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.js +20 -0
- package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts +117 -0
- package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.js +19 -0
- package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts +156 -0
- package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/get-infra-providers.command.js +19 -0
- package/build/backend/commands/infra-billing/index.d.ts +6 -0
- package/build/backend/commands/infra-billing/index.d.ts.map +1 -0
- package/build/backend/commands/{inbounds/bulk → infra-billing}/index.js +5 -4
- package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts +126 -0
- package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/update-infra-provider.command.js +26 -0
- package/build/backend/commands/internal-squads/create-internal-squad.command.d.ts +145 -0
- package/build/backend/commands/internal-squads/create-internal-squad.command.d.ts.map +1 -0
- package/build/backend/commands/internal-squads/create-internal-squad.command.js +24 -0
- package/build/backend/commands/internal-squads/delete-internal-squad.command.d.ts +33 -0
- package/build/backend/commands/internal-squads/delete-internal-squad.command.d.ts.map +1 -0
- package/build/backend/commands/internal-squads/delete-internal-squad.command.js +20 -0
- package/build/backend/commands/internal-squads/get-internal-squad-by-uuid..d.ts +142 -0
- package/build/backend/commands/internal-squads/get-internal-squad-by-uuid..d.ts.map +1 -0
- package/build/backend/commands/internal-squads/get-internal-squad-by-uuid..js +19 -0
- package/build/backend/commands/internal-squads/get-internal-squads.command.d.ts +187 -0
- package/build/backend/commands/internal-squads/get-internal-squads.command.d.ts.map +1 -0
- package/build/backend/commands/internal-squads/get-internal-squads.command.js +19 -0
- package/build/backend/commands/internal-squads/index.d.ts +6 -0
- package/build/backend/commands/internal-squads/index.d.ts.map +1 -0
- package/build/backend/commands/{xray → internal-squads}/index.js +5 -2
- package/build/backend/commands/internal-squads/update-internal-squad.command.d.ts +145 -0
- package/build/backend/commands/internal-squads/update-internal-squad.command.d.ts.map +1 -0
- package/build/backend/commands/internal-squads/update-internal-squad.command.js +20 -0
- package/build/backend/commands/nodes/actions/disable.command.d.ts +184 -22
- package/build/backend/commands/nodes/actions/disable.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/enable.command.d.ts +184 -22
- package/build/backend/commands/nodes/actions/enable.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/reorder.command.d.ts +260 -24
- package/build/backend/commands/nodes/actions/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/create.command.d.ts +199 -31
- package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/create.command.js +5 -3
- package/build/backend/commands/nodes/get-all.command.d.ts +184 -22
- package/build/backend/commands/nodes/get-all.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/get-one.command.d.ts +184 -22
- package/build/backend/commands/nodes/get-one.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/stats/get-node-user-usage-by-range.command.d.ts +4 -4
- package/build/backend/commands/nodes/stats/get-nodes-usage-by-range.command.d.ts +4 -4
- package/build/backend/commands/nodes/stats/get-realtime-usage.command.d.ts +4 -4
- package/build/backend/commands/nodes/update.command.d.ts +275 -33
- package/build/backend/commands/nodes/update.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/update.command.js +5 -3
- package/build/backend/commands/users/actions/disable-user.command.d.ts +12 -38
- package/build/backend/commands/users/actions/disable-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/actions/enable-user.command.d.ts +12 -38
- package/build/backend/commands/users/actions/enable-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/actions/index.d.ts +0 -1
- package/build/backend/commands/users/actions/index.d.ts.map +1 -1
- package/build/backend/commands/users/actions/index.js +0 -1
- package/build/backend/commands/users/actions/reset-user-traffic.command.d.ts +12 -38
- package/build/backend/commands/users/actions/reset-user-traffic.command.d.ts.map +1 -1
- package/build/backend/commands/users/actions/revoke-user-subscription.command.d.ts +12 -38
- package/build/backend/commands/users/actions/revoke-user-subscription.command.d.ts.map +1 -1
- package/build/backend/commands/users/bulk/{bulk-update-users-inbounds.command.d.ts → bulk-update-users-squads.command.d.ts} +7 -7
- package/build/backend/commands/users/bulk/bulk-update-users-squads.command.d.ts.map +1 -0
- package/build/backend/commands/users/bulk/bulk-update-users-squads.command.js +23 -0
- package/build/backend/commands/users/bulk/index.d.ts +1 -1
- package/build/backend/commands/users/bulk/index.d.ts.map +1 -1
- package/build/backend/commands/users/bulk/index.js +1 -1
- package/build/backend/commands/users/create-user.command.d.ts +15 -47
- package/build/backend/commands/users/create-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/create-user.command.js +5 -16
- package/build/backend/commands/users/get-all-users.command.d.ts +16 -50
- package/build/backend/commands/users/get-all-users.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-by/get-user-by-email.command.d.ts +12 -38
- package/build/backend/commands/users/get-by/get-user-by-email.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-by/get-user-by-short-uuid.command.d.ts +12 -38
- package/build/backend/commands/users/get-by/get-user-by-short-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-by/get-user-by-tag.command.d.ts +12 -38
- package/build/backend/commands/users/get-by/get-user-by-tag.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-by/get-user-by-telegram-id.command.d.ts +12 -38
- package/build/backend/commands/users/get-by/get-user-by-telegram-id.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-by/get-user-by-username.command.d.ts +12 -38
- package/build/backend/commands/users/get-by/get-user-by-username.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-by/index.d.ts +0 -1
- package/build/backend/commands/users/get-by/index.d.ts.map +1 -1
- package/build/backend/commands/users/get-by/index.js +0 -1
- package/build/backend/commands/users/get-user-accessible-nodes.command.d.ts +114 -0
- package/build/backend/commands/users/get-user-accessible-nodes.command.d.ts.map +1 -0
- package/build/backend/commands/users/get-user-accessible-nodes.command.js +31 -0
- package/build/backend/commands/users/get-user-by-uuid.command.d.ts +12 -38
- package/build/backend/commands/users/get-user-by-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-user-usage-by-range.command.d.ts +4 -4
- package/build/backend/commands/users/index.d.ts +1 -0
- package/build/backend/commands/users/index.d.ts.map +1 -1
- package/build/backend/commands/users/index.js +1 -0
- package/build/backend/commands/users/update-user.command.d.ts +19 -55
- package/build/backend/commands/users/update-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/update-user.command.js +5 -5
- package/build/backend/constants/errors/errors.d.ts +115 -0
- package/build/backend/constants/errors/errors.d.ts.map +1 -1
- package/build/backend/constants/errors/errors.js +115 -0
- package/build/backend/models/base-internal-squad.schema.d.ts +12 -0
- package/build/backend/models/base-internal-squad.schema.d.ts.map +1 -0
- package/build/backend/models/base-internal-squad.schema.js +8 -0
- package/build/backend/models/{inbounds.schema.d.ts → config-profile-inbounds.schema.d.ts} +11 -2
- package/build/backend/models/config-profile-inbounds.schema.d.ts.map +1 -0
- package/build/{frontend/models/inbounds.schema.js → backend/models/config-profile-inbounds.schema.js} +5 -2
- package/build/backend/models/config-profile.schema.d.ts +92 -0
- package/build/backend/models/config-profile.schema.d.ts.map +1 -0
- package/build/backend/models/config-profile.schema.js +24 -0
- package/build/backend/models/extented-users.schema.d.ts +8 -26
- package/build/backend/models/extented-users.schema.d.ts.map +1 -1
- package/build/backend/models/hosts.schema.d.ts +6 -6
- package/build/backend/models/hosts.schema.d.ts.map +1 -1
- package/build/backend/models/hosts.schema.js +2 -2
- package/build/backend/models/index.d.ts +5 -2
- package/build/backend/models/index.d.ts.map +1 -1
- package/build/backend/models/index.js +5 -2
- package/build/backend/models/infra-provider.schema.d.ts +65 -0
- package/build/backend/models/infra-provider.schema.d.ts.map +1 -0
- package/build/backend/models/infra-provider.schema.js +27 -0
- package/build/backend/models/internal-squad.schema.d.ts +84 -0
- package/build/backend/models/internal-squad.schema.d.ts.map +1 -0
- package/build/backend/models/internal-squad.schema.js +22 -0
- package/build/backend/models/nodes.schema.d.ts +130 -12
- package/build/backend/models/nodes.schema.d.ts.map +1 -1
- package/build/backend/models/nodes.schema.js +6 -2
- package/build/backend/models/users.schema.d.ts +8 -26
- package/build/backend/models/users.schema.d.ts.map +1 -1
- package/build/backend/models/users.schema.js +2 -3
- package/build/frontend/api/controllers/config-profiles.js +13 -0
- package/build/frontend/api/controllers/index.js +3 -2
- package/build/frontend/api/controllers/infra-billing.js +22 -0
- package/build/frontend/api/controllers/internal-squads.js +11 -0
- package/build/frontend/api/controllers/users.js +2 -2
- package/build/frontend/api/routes.js +32 -16
- package/build/frontend/commands/config-profiles/create-config-profile.command.js +24 -0
- package/build/frontend/commands/config-profiles/delete-config-profile.command.js +20 -0
- package/build/frontend/commands/config-profiles/get-all-inbounds.command.js +19 -0
- package/build/frontend/commands/config-profiles/get-config-profile-by-uuid.command.js +19 -0
- package/build/frontend/commands/config-profiles/get-config-profiles.command.js +19 -0
- package/build/frontend/commands/config-profiles/get-inbounds-by-profile-uuid.command.js +22 -0
- package/build/frontend/commands/config-profiles/index.js +23 -0
- package/build/frontend/commands/config-profiles/update-config-profile.command.js +20 -0
- package/build/frontend/commands/hosts/bulk/set-inbound-to-many-hosts.command.js +2 -1
- package/build/frontend/commands/hosts/create.command.js +9 -2
- package/build/frontend/commands/hosts/update.command.js +7 -1
- package/build/frontend/commands/index.js +3 -2
- package/build/frontend/commands/infra-billing/create-infra-provider.command.js +24 -0
- package/build/frontend/commands/infra-billing/delete-infra-provider-by-uuid.command.js +20 -0
- package/build/frontend/commands/infra-billing/get-infra-provider-by-uuid.command.js +19 -0
- package/build/frontend/commands/infra-billing/get-infra-providers.command.js +19 -0
- package/build/frontend/commands/{inbounds/bulk → infra-billing}/index.js +5 -4
- package/build/frontend/commands/infra-billing/update-infra-provider.command.js +26 -0
- package/build/frontend/commands/internal-squads/create-internal-squad.command.js +24 -0
- package/build/frontend/commands/internal-squads/delete-internal-squad.command.js +20 -0
- package/build/frontend/commands/internal-squads/get-internal-squad-by-uuid..js +19 -0
- package/build/frontend/commands/internal-squads/get-internal-squads.command.js +19 -0
- package/build/{backend/commands/inbounds → frontend/commands/internal-squads}/index.js +5 -3
- package/build/frontend/commands/internal-squads/update-internal-squad.command.js +20 -0
- package/build/frontend/commands/nodes/create.command.js +5 -3
- package/build/frontend/commands/nodes/update.command.js +5 -3
- package/build/frontend/commands/users/actions/index.js +0 -1
- package/build/frontend/commands/users/bulk/bulk-update-users-squads.command.js +23 -0
- package/build/frontend/commands/users/bulk/index.js +1 -1
- package/build/frontend/commands/users/create-user.command.js +5 -16
- package/build/frontend/commands/users/get-by/index.js +0 -1
- package/build/frontend/commands/users/get-user-accessible-nodes.command.js +31 -0
- package/build/frontend/commands/users/index.js +1 -0
- package/build/frontend/commands/users/update-user.command.js +5 -5
- package/build/frontend/constants/errors/errors.js +115 -0
- package/build/frontend/models/base-internal-squad.schema.js +8 -0
- package/build/{backend/models/inbounds.schema.js → frontend/models/config-profile-inbounds.schema.js} +5 -2
- package/build/frontend/models/config-profile.schema.js +24 -0
- package/build/frontend/models/hosts.schema.js +2 -2
- package/build/frontend/models/index.js +5 -2
- package/build/frontend/models/infra-provider.schema.js +27 -0
- package/build/frontend/models/internal-squad.schema.js +22 -0
- package/build/frontend/models/nodes.schema.js +6 -2
- package/build/frontend/models/users.schema.js +2 -3
- package/package.json +1 -1
- package/build/backend/api/controllers/inbounds.d.ts +0 -12
- package/build/backend/api/controllers/inbounds.d.ts.map +0 -1
- package/build/backend/api/controllers/inbounds.js +0 -14
- package/build/backend/api/controllers/xray.d.ts +0 -6
- package/build/backend/api/controllers/xray.d.ts.map +0 -1
- package/build/backend/api/controllers/xray.js +0 -8
- package/build/backend/commands/inbounds/bulk/add-inbound-to-nodes.command.d.ts +0 -33
- package/build/backend/commands/inbounds/bulk/add-inbound-to-nodes.command.d.ts.map +0 -1
- package/build/backend/commands/inbounds/bulk/add-inbound-to-nodes.command.js +0 -24
- package/build/backend/commands/inbounds/bulk/add-inbound-to-users.command.d.ts +0 -33
- package/build/backend/commands/inbounds/bulk/add-inbound-to-users.command.d.ts.map +0 -1
- package/build/backend/commands/inbounds/bulk/add-inbound-to-users.command.js +0 -24
- package/build/backend/commands/inbounds/bulk/index.d.ts +0 -5
- package/build/backend/commands/inbounds/bulk/index.d.ts.map +0 -1
- package/build/backend/commands/inbounds/bulk/remove-inbound-from-nodes.command.d.ts +0 -33
- package/build/backend/commands/inbounds/bulk/remove-inbound-from-nodes.command.d.ts.map +0 -1
- package/build/backend/commands/inbounds/bulk/remove-inbound-from-nodes.command.js +0 -24
- package/build/backend/commands/inbounds/bulk/remove-inbound-from-users.command.d.ts +0 -33
- package/build/backend/commands/inbounds/bulk/remove-inbound-from-users.command.d.ts.map +0 -1
- package/build/backend/commands/inbounds/bulk/remove-inbound-from-users.command.js +0 -24
- package/build/backend/commands/inbounds/get-full-inbounds.command.d.ts +0 -115
- package/build/backend/commands/inbounds/get-full-inbounds.command.d.ts.map +0 -1
- package/build/backend/commands/inbounds/get-full-inbounds.command.js +0 -16
- package/build/backend/commands/inbounds/get-inbounds.command.d.ts +0 -50
- package/build/backend/commands/inbounds/get-inbounds.command.d.ts.map +0 -1
- package/build/backend/commands/inbounds/get-inbounds.command.js +0 -22
- package/build/backend/commands/inbounds/index.d.ts +0 -4
- package/build/backend/commands/inbounds/index.d.ts.map +0 -1
- package/build/backend/commands/users/actions/activate-all-inbounds.command.d.ts +0 -271
- package/build/backend/commands/users/actions/activate-all-inbounds.command.d.ts.map +0 -1
- package/build/backend/commands/users/actions/activate-all-inbounds.command.js +0 -19
- package/build/backend/commands/users/bulk/bulk-update-users-inbounds.command.d.ts.map +0 -1
- package/build/backend/commands/users/bulk/bulk-update-users-inbounds.command.js +0 -23
- package/build/backend/commands/users/get-by/get-user-by-subscription-uuid.command.d.ts +0 -271
- package/build/backend/commands/users/get-by/get-user-by-subscription-uuid.command.d.ts.map +0 -1
- package/build/backend/commands/users/get-by/get-user-by-subscription-uuid.command.js +0 -19
- package/build/backend/commands/xray/get-config.command.d.ts +0 -25
- package/build/backend/commands/xray/get-config.command.d.ts.map +0 -1
- package/build/backend/commands/xray/get-config.command.js +0 -17
- package/build/backend/commands/xray/index.d.ts +0 -3
- package/build/backend/commands/xray/index.d.ts.map +0 -1
- package/build/backend/commands/xray/update-config.command.d.ts +0 -27
- package/build/backend/commands/xray/update-config.command.d.ts.map +0 -1
- package/build/backend/commands/xray/update-config.command.js +0 -18
- package/build/backend/models/full-inbounds.schema.d.ts +0 -67
- package/build/backend/models/full-inbounds.schema.d.ts.map +0 -1
- package/build/backend/models/full-inbounds.schema.js +0 -21
- package/build/backend/models/inbounds.schema.d.ts.map +0 -1
- package/build/frontend/api/controllers/inbounds.js +0 -14
- package/build/frontend/api/controllers/xray.js +0 -8
- package/build/frontend/commands/inbounds/bulk/add-inbound-to-nodes.command.js +0 -24
- package/build/frontend/commands/inbounds/bulk/add-inbound-to-users.command.js +0 -24
- package/build/frontend/commands/inbounds/bulk/remove-inbound-from-nodes.command.js +0 -24
- package/build/frontend/commands/inbounds/bulk/remove-inbound-from-users.command.js +0 -24
- package/build/frontend/commands/inbounds/get-full-inbounds.command.js +0 -16
- package/build/frontend/commands/inbounds/get-inbounds.command.js +0 -22
- package/build/frontend/commands/inbounds/index.js +0 -19
- package/build/frontend/commands/users/actions/activate-all-inbounds.command.js +0 -19
- package/build/frontend/commands/users/bulk/bulk-update-users-inbounds.command.js +0 -23
- package/build/frontend/commands/users/get-by/get-user-by-subscription-uuid.command.js +0 -19
- package/build/frontend/commands/xray/get-config.command.js +0 -17
- package/build/frontend/commands/xray/index.js +0 -18
- package/build/frontend/commands/xray/update-config.command.js +0 -18
- package/build/frontend/models/full-inbounds.schema.js +0 -21
@@ -14,7 +14,6 @@ export declare namespace GetUserByUuidCommand {
|
|
14
14
|
const ResponseSchema: z.ZodObject<{
|
15
15
|
response: z.ZodObject<{
|
16
16
|
uuid: z.ZodString;
|
17
|
-
subscriptionUuid: z.ZodString;
|
18
17
|
shortUuid: z.ZodString;
|
19
18
|
username: z.ZodString;
|
20
19
|
status: z.ZodDefault<z.ZodNativeEnum<{
|
@@ -50,24 +49,15 @@ export declare namespace GetUserByUuidCommand {
|
|
50
49
|
lastTriggeredThreshold: z.ZodDefault<z.ZodNumber>;
|
51
50
|
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
52
51
|
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
53
|
-
|
52
|
+
activeInternalSquads: z.ZodArray<z.ZodObject<{
|
54
53
|
uuid: z.ZodString;
|
55
|
-
|
56
|
-
type: z.ZodString;
|
57
|
-
network: z.ZodNullable<z.ZodString>;
|
58
|
-
security: z.ZodNullable<z.ZodString>;
|
54
|
+
name: z.ZodString;
|
59
55
|
}, "strip", z.ZodTypeAny, {
|
60
|
-
type: string;
|
61
56
|
uuid: string;
|
62
|
-
|
63
|
-
network: string | null;
|
64
|
-
security: string | null;
|
57
|
+
name: string;
|
65
58
|
}, {
|
66
|
-
type: string;
|
67
59
|
uuid: string;
|
68
|
-
|
69
|
-
network: string | null;
|
70
|
-
security: string | null;
|
60
|
+
name: string;
|
71
61
|
}>, "many">;
|
72
62
|
} & {
|
73
63
|
subscriptionUrl: z.ZodString;
|
@@ -95,7 +85,6 @@ export declare namespace GetUserByUuidCommand {
|
|
95
85
|
updatedAt: Date;
|
96
86
|
username: string;
|
97
87
|
tag: string | null;
|
98
|
-
subscriptionUuid: string;
|
99
88
|
shortUuid: string;
|
100
89
|
usedTrafficBytes: number;
|
101
90
|
lifetimeUsedTrafficBytes: number;
|
@@ -116,12 +105,9 @@ export declare namespace GetUserByUuidCommand {
|
|
116
105
|
hwidDeviceLimit: number | null;
|
117
106
|
firstConnectedAt: Date | null;
|
118
107
|
lastTriggeredThreshold: number;
|
119
|
-
|
120
|
-
type: string;
|
108
|
+
activeInternalSquads: {
|
121
109
|
uuid: string;
|
122
|
-
|
123
|
-
network: string | null;
|
124
|
-
security: string | null;
|
110
|
+
name: string;
|
125
111
|
}[];
|
126
112
|
subscriptionUrl: string;
|
127
113
|
lastConnectedNode: {
|
@@ -137,7 +123,6 @@ export declare namespace GetUserByUuidCommand {
|
|
137
123
|
updatedAt: string;
|
138
124
|
username: string;
|
139
125
|
tag: string | null;
|
140
|
-
subscriptionUuid: string;
|
141
126
|
shortUuid: string;
|
142
127
|
usedTrafficBytes: number;
|
143
128
|
lifetimeUsedTrafficBytes: number;
|
@@ -155,12 +140,9 @@ export declare namespace GetUserByUuidCommand {
|
|
155
140
|
email: string | null;
|
156
141
|
hwidDeviceLimit: number | null;
|
157
142
|
firstConnectedAt: string | null;
|
158
|
-
|
159
|
-
type: string;
|
143
|
+
activeInternalSquads: {
|
160
144
|
uuid: string;
|
161
|
-
|
162
|
-
network: string | null;
|
163
|
-
security: string | null;
|
145
|
+
name: string;
|
164
146
|
}[];
|
165
147
|
subscriptionUrl: string;
|
166
148
|
lastConnectedNode: {
|
@@ -183,7 +165,6 @@ export declare namespace GetUserByUuidCommand {
|
|
183
165
|
updatedAt: Date;
|
184
166
|
username: string;
|
185
167
|
tag: string | null;
|
186
|
-
subscriptionUuid: string;
|
187
168
|
shortUuid: string;
|
188
169
|
usedTrafficBytes: number;
|
189
170
|
lifetimeUsedTrafficBytes: number;
|
@@ -204,12 +185,9 @@ export declare namespace GetUserByUuidCommand {
|
|
204
185
|
hwidDeviceLimit: number | null;
|
205
186
|
firstConnectedAt: Date | null;
|
206
187
|
lastTriggeredThreshold: number;
|
207
|
-
|
208
|
-
type: string;
|
188
|
+
activeInternalSquads: {
|
209
189
|
uuid: string;
|
210
|
-
|
211
|
-
network: string | null;
|
212
|
-
security: string | null;
|
190
|
+
name: string;
|
213
191
|
}[];
|
214
192
|
subscriptionUrl: string;
|
215
193
|
lastConnectedNode: {
|
@@ -227,7 +205,6 @@ export declare namespace GetUserByUuidCommand {
|
|
227
205
|
updatedAt: string;
|
228
206
|
username: string;
|
229
207
|
tag: string | null;
|
230
|
-
subscriptionUuid: string;
|
231
208
|
shortUuid: string;
|
232
209
|
usedTrafficBytes: number;
|
233
210
|
lifetimeUsedTrafficBytes: number;
|
@@ -245,12 +222,9 @@ export declare namespace GetUserByUuidCommand {
|
|
245
222
|
email: string | null;
|
246
223
|
hwidDeviceLimit: number | null;
|
247
224
|
firstConnectedAt: string | null;
|
248
|
-
|
249
|
-
type: string;
|
225
|
+
activeInternalSquads: {
|
250
226
|
uuid: string;
|
251
|
-
|
252
|
-
network: string | null;
|
253
|
-
security: string | null;
|
227
|
+
name: string;
|
254
228
|
}[];
|
255
229
|
subscriptionUrl: string;
|
256
230
|
lastConnectedNode: {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"get-user-by-uuid.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/get-user-by-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,oBAAoB,CAAC;IAC3B,MAAM,GAAG,0BAA6B,CAAC;IACvC,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc
|
1
|
+
{"version":3,"file":"get-user-by-uuid.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/get-user-by-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,oBAAoB,CAAC;IAC3B,MAAM,GAAG,0BAA6B,CAAC;IACvC,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,eAAe,2CAI3B,CAAC;IAEK,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"}
|
@@ -33,30 +33,30 @@ export declare namespace GetUserUsageByRangeCommand {
|
|
33
33
|
date: Date;
|
34
34
|
nodeName: string;
|
35
35
|
userUuid: string;
|
36
|
-
total: number;
|
37
36
|
nodeUuid: string;
|
37
|
+
total: number;
|
38
38
|
}, {
|
39
39
|
date: string;
|
40
40
|
nodeName: string;
|
41
41
|
userUuid: string;
|
42
|
-
total: number;
|
43
42
|
nodeUuid: string;
|
43
|
+
total: number;
|
44
44
|
}>, "many">;
|
45
45
|
}, "strip", z.ZodTypeAny, {
|
46
46
|
response: {
|
47
47
|
date: Date;
|
48
48
|
nodeName: string;
|
49
49
|
userUuid: string;
|
50
|
-
total: number;
|
51
50
|
nodeUuid: string;
|
51
|
+
total: number;
|
52
52
|
}[];
|
53
53
|
}, {
|
54
54
|
response: {
|
55
55
|
date: string;
|
56
56
|
nodeName: string;
|
57
57
|
userUuid: string;
|
58
|
-
total: number;
|
59
58
|
nodeUuid: string;
|
59
|
+
total: number;
|
60
60
|
}[];
|
61
61
|
}>;
|
62
62
|
type Response = z.infer<typeof ResponseSchema>;
|
@@ -5,6 +5,7 @@ export * from './create-user.command';
|
|
5
5
|
export * from './delete-user.command';
|
6
6
|
export * from './get-all-users.command';
|
7
7
|
export * from './get-by';
|
8
|
+
export * from './get-user-accessible-nodes.command';
|
8
9
|
export * from './get-user-by-uuid.command';
|
9
10
|
export * from './get-user-usage-by-range.command';
|
10
11
|
export * from './tags';
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commands/users/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAE3B,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AAEtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,UAAU,CAAC;AAEzB,cAAc,4BAA4B,CAAC;
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commands/users/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAE3B,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AAEtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,UAAU,CAAC;AAEzB,cAAc,qCAAqC,CAAC;AAEpD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mCAAmC,CAAC;AAElD,cAAc,QAAQ,CAAC;AACvB,cAAc,uBAAuB,CAAC"}
|
@@ -21,6 +21,7 @@ __exportStar(require("./create-user.command"), exports);
|
|
21
21
|
__exportStar(require("./delete-user.command"), exports);
|
22
22
|
__exportStar(require("./get-all-users.command"), exports);
|
23
23
|
__exportStar(require("./get-by"), exports);
|
24
|
+
__exportStar(require("./get-user-accessible-nodes.command"), exports);
|
24
25
|
__exportStar(require("./get-user-by-uuid.command"), exports);
|
25
26
|
__exportStar(require("./get-user-usage-by-range.command"), exports);
|
26
27
|
__exportStar(require("./tags"), exports);
|
@@ -5,7 +5,6 @@ export declare namespace UpdateUserCommand {
|
|
5
5
|
const endpointDetails: import("../../constants").EndpointDetails;
|
6
6
|
const RequestSchema: z.ZodObject<Pick<{
|
7
7
|
uuid: z.ZodString;
|
8
|
-
subscriptionUuid: z.ZodString;
|
9
8
|
shortUuid: z.ZodString;
|
10
9
|
username: z.ZodString;
|
11
10
|
status: z.ZodDefault<z.ZodNativeEnum<{
|
@@ -41,24 +40,15 @@ export declare namespace UpdateUserCommand {
|
|
41
40
|
lastTriggeredThreshold: z.ZodDefault<z.ZodNumber>;
|
42
41
|
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
43
42
|
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
44
|
-
|
43
|
+
activeInternalSquads: z.ZodArray<z.ZodObject<{
|
45
44
|
uuid: z.ZodString;
|
46
|
-
|
47
|
-
type: z.ZodString;
|
48
|
-
network: z.ZodNullable<z.ZodString>;
|
49
|
-
security: z.ZodNullable<z.ZodString>;
|
45
|
+
name: z.ZodString;
|
50
46
|
}, "strip", z.ZodTypeAny, {
|
51
|
-
type: string;
|
52
47
|
uuid: string;
|
53
|
-
|
54
|
-
network: string | null;
|
55
|
-
security: string | null;
|
48
|
+
name: string;
|
56
49
|
}, {
|
57
|
-
type: string;
|
58
50
|
uuid: string;
|
59
|
-
|
60
|
-
network: string | null;
|
61
|
-
security: string | null;
|
51
|
+
name: string;
|
62
52
|
}>, "many">;
|
63
53
|
}, "uuid"> & {
|
64
54
|
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<{
|
@@ -74,13 +64,13 @@ export declare namespace UpdateUserCommand {
|
|
74
64
|
readonly WEEK: "WEEK";
|
75
65
|
readonly MONTH: "MONTH";
|
76
66
|
}>>, "MONTH" | "NO_RESET" | "DAY" | "WEEK", "MONTH" | "NO_RESET" | "DAY" | "WEEK" | undefined>>;
|
77
|
-
activeUserInbounds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
78
67
|
expireAt: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, Date, string>, Date, string>>;
|
79
68
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
80
69
|
tag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
81
70
|
telegramId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
82
71
|
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
83
72
|
hwidDeviceLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
73
|
+
activeInternalSquads: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
84
74
|
}, "strip", z.ZodTypeAny, {
|
85
75
|
uuid: string;
|
86
76
|
status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
|
@@ -92,7 +82,7 @@ export declare namespace UpdateUserCommand {
|
|
92
82
|
telegramId?: number | null | undefined;
|
93
83
|
email?: string | null | undefined;
|
94
84
|
hwidDeviceLimit?: number | null | undefined;
|
95
|
-
|
85
|
+
activeInternalSquads?: string[] | undefined;
|
96
86
|
}, {
|
97
87
|
uuid: string;
|
98
88
|
status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
|
@@ -104,13 +94,12 @@ export declare namespace UpdateUserCommand {
|
|
104
94
|
telegramId?: number | null | undefined;
|
105
95
|
email?: string | null | undefined;
|
106
96
|
hwidDeviceLimit?: number | null | undefined;
|
107
|
-
|
97
|
+
activeInternalSquads?: string[] | undefined;
|
108
98
|
}>;
|
109
99
|
type Request = z.infer<typeof RequestSchema>;
|
110
100
|
const ResponseSchema: z.ZodObject<{
|
111
101
|
response: z.ZodObject<{
|
112
102
|
uuid: z.ZodString;
|
113
|
-
subscriptionUuid: z.ZodString;
|
114
103
|
shortUuid: z.ZodString;
|
115
104
|
username: z.ZodString;
|
116
105
|
status: z.ZodDefault<z.ZodNativeEnum<{
|
@@ -146,24 +135,15 @@ export declare namespace UpdateUserCommand {
|
|
146
135
|
lastTriggeredThreshold: z.ZodDefault<z.ZodNumber>;
|
147
136
|
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
148
137
|
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
149
|
-
|
138
|
+
activeInternalSquads: z.ZodArray<z.ZodObject<{
|
150
139
|
uuid: z.ZodString;
|
151
|
-
|
152
|
-
type: z.ZodString;
|
153
|
-
network: z.ZodNullable<z.ZodString>;
|
154
|
-
security: z.ZodNullable<z.ZodString>;
|
140
|
+
name: z.ZodString;
|
155
141
|
}, "strip", z.ZodTypeAny, {
|
156
|
-
type: string;
|
157
142
|
uuid: string;
|
158
|
-
|
159
|
-
network: string | null;
|
160
|
-
security: string | null;
|
143
|
+
name: string;
|
161
144
|
}, {
|
162
|
-
type: string;
|
163
145
|
uuid: string;
|
164
|
-
|
165
|
-
network: string | null;
|
166
|
-
security: string | null;
|
146
|
+
name: string;
|
167
147
|
}>, "many">;
|
168
148
|
} & {
|
169
149
|
subscriptionUrl: z.ZodString;
|
@@ -191,7 +171,6 @@ export declare namespace UpdateUserCommand {
|
|
191
171
|
updatedAt: Date;
|
192
172
|
username: string;
|
193
173
|
tag: string | null;
|
194
|
-
subscriptionUuid: string;
|
195
174
|
shortUuid: string;
|
196
175
|
usedTrafficBytes: number;
|
197
176
|
lifetimeUsedTrafficBytes: number;
|
@@ -212,12 +191,9 @@ export declare namespace UpdateUserCommand {
|
|
212
191
|
hwidDeviceLimit: number | null;
|
213
192
|
firstConnectedAt: Date | null;
|
214
193
|
lastTriggeredThreshold: number;
|
215
|
-
|
216
|
-
type: string;
|
194
|
+
activeInternalSquads: {
|
217
195
|
uuid: string;
|
218
|
-
|
219
|
-
network: string | null;
|
220
|
-
security: string | null;
|
196
|
+
name: string;
|
221
197
|
}[];
|
222
198
|
subscriptionUrl: string;
|
223
199
|
lastConnectedNode: {
|
@@ -233,7 +209,6 @@ export declare namespace UpdateUserCommand {
|
|
233
209
|
updatedAt: string;
|
234
210
|
username: string;
|
235
211
|
tag: string | null;
|
236
|
-
subscriptionUuid: string;
|
237
212
|
shortUuid: string;
|
238
213
|
usedTrafficBytes: number;
|
239
214
|
lifetimeUsedTrafficBytes: number;
|
@@ -251,12 +226,9 @@ export declare namespace UpdateUserCommand {
|
|
251
226
|
email: string | null;
|
252
227
|
hwidDeviceLimit: number | null;
|
253
228
|
firstConnectedAt: string | null;
|
254
|
-
|
255
|
-
type: string;
|
229
|
+
activeInternalSquads: {
|
256
230
|
uuid: string;
|
257
|
-
|
258
|
-
network: string | null;
|
259
|
-
security: string | null;
|
231
|
+
name: string;
|
260
232
|
}[];
|
261
233
|
subscriptionUrl: string;
|
262
234
|
lastConnectedNode: {
|
@@ -279,7 +251,6 @@ export declare namespace UpdateUserCommand {
|
|
279
251
|
updatedAt: Date;
|
280
252
|
username: string;
|
281
253
|
tag: string | null;
|
282
|
-
subscriptionUuid: string;
|
283
254
|
shortUuid: string;
|
284
255
|
usedTrafficBytes: number;
|
285
256
|
lifetimeUsedTrafficBytes: number;
|
@@ -300,12 +271,9 @@ export declare namespace UpdateUserCommand {
|
|
300
271
|
hwidDeviceLimit: number | null;
|
301
272
|
firstConnectedAt: Date | null;
|
302
273
|
lastTriggeredThreshold: number;
|
303
|
-
|
304
|
-
type: string;
|
274
|
+
activeInternalSquads: {
|
305
275
|
uuid: string;
|
306
|
-
|
307
|
-
network: string | null;
|
308
|
-
security: string | null;
|
276
|
+
name: string;
|
309
277
|
}[];
|
310
278
|
subscriptionUrl: string;
|
311
279
|
lastConnectedNode: {
|
@@ -323,7 +291,6 @@ export declare namespace UpdateUserCommand {
|
|
323
291
|
updatedAt: string;
|
324
292
|
username: string;
|
325
293
|
tag: string | null;
|
326
|
-
subscriptionUuid: string;
|
327
294
|
shortUuid: string;
|
328
295
|
usedTrafficBytes: number;
|
329
296
|
lifetimeUsedTrafficBytes: number;
|
@@ -341,12 +308,9 @@ export declare namespace UpdateUserCommand {
|
|
341
308
|
email: string | null;
|
342
309
|
hwidDeviceLimit: number | null;
|
343
310
|
firstConnectedAt: string | null;
|
344
|
-
|
345
|
-
type: string;
|
311
|
+
activeInternalSquads: {
|
346
312
|
uuid: string;
|
347
|
-
|
348
|
-
network: string | null;
|
349
|
-
security: string | null;
|
313
|
+
name: string;
|
350
314
|
}[];
|
351
315
|
subscriptionUrl: string;
|
352
316
|
lastConnectedNode: {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"update-user.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/update-user.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,eAAwB,CAAC;IAClC,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa
|
1
|
+
{"version":3,"file":"update-user.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/update-user.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,eAAwB,CAAC;IAClC,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAwDxB,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"}
|
@@ -36,11 +36,6 @@ var UpdateUserCommand;
|
|
36
36
|
}
|
37
37
|
})
|
38
38
|
.optional(),
|
39
|
-
activeUserInbounds: zod_1.z
|
40
|
-
.array(zod_1.z.string().uuid(), {
|
41
|
-
invalid_type_error: 'Enabled inbounds must be an array of UUIDs',
|
42
|
-
})
|
43
|
-
.optional(),
|
44
39
|
expireAt: zod_1.z
|
45
40
|
.string()
|
46
41
|
.datetime({ local: true, offset: true, message: 'Invalid date format' })
|
@@ -59,6 +54,11 @@ var UpdateUserCommand;
|
|
59
54
|
telegramId: zod_1.z.optional(zod_1.z.number().int().nullable()),
|
60
55
|
email: zod_1.z.optional(zod_1.z.string().email('Invalid email format').nullable()),
|
61
56
|
hwidDeviceLimit: zod_1.z.optional(zod_1.z.number().int().min(0, 'Device limit must be non-negative').nullable()),
|
57
|
+
activeInternalSquads: zod_1.z
|
58
|
+
.array(zod_1.z.string().uuid(), {
|
59
|
+
invalid_type_error: 'Enabled internal squads must be an array of UUIDs',
|
60
|
+
})
|
61
|
+
.optional(),
|
62
62
|
});
|
63
63
|
UpdateUserCommand.ResponseSchema = zod_1.z.object({
|
64
64
|
response: models_1.ExtendedUsersSchema,
|
@@ -569,5 +569,120 @@ export declare const ERRORS: {
|
|
569
569
|
readonly message: "Vacuum table error";
|
570
570
|
readonly httpCode: 500;
|
571
571
|
};
|
572
|
+
readonly GET_CONFIG_PROFILES_ERROR: {
|
573
|
+
readonly code: "A109";
|
574
|
+
readonly message: "Get config profiles error";
|
575
|
+
readonly httpCode: 500;
|
576
|
+
};
|
577
|
+
readonly GET_CONFIG_PROFILE_BY_UUID_ERROR: {
|
578
|
+
readonly code: "A110";
|
579
|
+
readonly message: "Get config profile by UUID error";
|
580
|
+
readonly httpCode: 500;
|
581
|
+
};
|
582
|
+
readonly CONFIG_PROFILE_NOT_FOUND: {
|
583
|
+
readonly code: "A111";
|
584
|
+
readonly message: "Config profile not found";
|
585
|
+
readonly httpCode: 404;
|
586
|
+
};
|
587
|
+
readonly CREATE_CONFIG_PROFILE_ERROR: {
|
588
|
+
readonly code: "A112";
|
589
|
+
readonly message: "Create config profile error";
|
590
|
+
readonly httpCode: 500;
|
591
|
+
};
|
592
|
+
readonly INBOUNDS_WITH_SAME_TAG_ALREADY_EXISTS: {
|
593
|
+
readonly code: "A113";
|
594
|
+
readonly message: "Inbounds with same tag already exists in database. Inbound tags must be unique.";
|
595
|
+
readonly httpCode: 409;
|
596
|
+
};
|
597
|
+
readonly CONFIG_PROFILE_NAME_ALREADY_EXISTS: {
|
598
|
+
readonly code: "A114";
|
599
|
+
readonly message: "Config profile name already exists in database. Config profile names must be unique.";
|
600
|
+
readonly httpCode: 409;
|
601
|
+
};
|
602
|
+
readonly GET_INBOUNDS_BY_PROFILE_UUID_ERROR: {
|
603
|
+
readonly code: "A115";
|
604
|
+
readonly message: "Get inbounds by profile UUID error";
|
605
|
+
readonly httpCode: 500;
|
606
|
+
};
|
607
|
+
readonly GET_INTERNAL_SQUADS_ERROR: {
|
608
|
+
readonly code: "A116";
|
609
|
+
readonly message: "Get internal squads error";
|
610
|
+
readonly httpCode: 500;
|
611
|
+
};
|
612
|
+
readonly GET_INTERNAL_SQUAD_BY_UUID_ERROR: {
|
613
|
+
readonly code: "A117";
|
614
|
+
readonly message: "Get internal squad by UUID error";
|
615
|
+
readonly httpCode: 500;
|
616
|
+
};
|
617
|
+
readonly INTERNAL_SQUAD_NOT_FOUND: {
|
618
|
+
readonly code: "A118";
|
619
|
+
readonly message: "Internal squad not found";
|
620
|
+
readonly httpCode: 404;
|
621
|
+
};
|
622
|
+
readonly CREATE_INTERNAL_SQUAD_ERROR: {
|
623
|
+
readonly code: "A119";
|
624
|
+
readonly message: "Create internal squad error";
|
625
|
+
readonly httpCode: 500;
|
626
|
+
};
|
627
|
+
readonly INTERNAL_SQUAD_NAME_ALREADY_EXISTS: {
|
628
|
+
readonly code: "A120";
|
629
|
+
readonly message: "Internal squad name already exists";
|
630
|
+
readonly httpCode: 409;
|
631
|
+
};
|
632
|
+
readonly UPDATE_INTERNAL_SQUAD_ERROR: {
|
633
|
+
readonly code: "A121";
|
634
|
+
readonly message: "Update internal squad error";
|
635
|
+
readonly httpCode: 500;
|
636
|
+
};
|
637
|
+
readonly DELETE_INTERNAL_SQUAD_ERROR: {
|
638
|
+
readonly code: "A122";
|
639
|
+
readonly message: "Delete internal squad error";
|
640
|
+
readonly httpCode: 500;
|
641
|
+
};
|
642
|
+
readonly CREATE_USER_WITH_INTERNAL_SQUAD_ERROR: {
|
643
|
+
readonly code: "A123";
|
644
|
+
readonly message: "Create user with internal squad error";
|
645
|
+
readonly httpCode: 500;
|
646
|
+
};
|
647
|
+
readonly CONFIG_PROFILE_INBOUND_NOT_FOUND_IN_SPECIFIED_PROFILE: {
|
648
|
+
readonly code: "A124";
|
649
|
+
readonly message: "Config profile inbound not found in specified profile";
|
650
|
+
readonly httpCode: 404;
|
651
|
+
};
|
652
|
+
readonly GET_USER_ACCESSIBLE_NODES_ERROR: {
|
653
|
+
readonly code: "A125";
|
654
|
+
readonly message: "Get user accessible nodes error";
|
655
|
+
readonly httpCode: 500;
|
656
|
+
};
|
657
|
+
readonly GET_INFRA_PROVIDERS_ERROR: {
|
658
|
+
readonly code: "A126";
|
659
|
+
readonly message: "Get infra providers error";
|
660
|
+
readonly httpCode: 500;
|
661
|
+
};
|
662
|
+
readonly GET_INFRA_PROVIDER_BY_UUID_ERROR: {
|
663
|
+
readonly code: "A127";
|
664
|
+
readonly message: "Get infra provider by UUID error";
|
665
|
+
readonly httpCode: 500;
|
666
|
+
};
|
667
|
+
readonly INFRA_PROVIDER_NOT_FOUND: {
|
668
|
+
readonly code: "A128";
|
669
|
+
readonly message: "Infra provider not found";
|
670
|
+
readonly httpCode: 404;
|
671
|
+
};
|
672
|
+
readonly DELETE_INFRA_PROVIDER_BY_UUID_ERROR: {
|
673
|
+
readonly code: "A129";
|
674
|
+
readonly message: "Delete infra provider by UUID error";
|
675
|
+
readonly httpCode: 500;
|
676
|
+
};
|
677
|
+
readonly CREATE_INFRA_PROVIDER_ERROR: {
|
678
|
+
readonly code: "A130";
|
679
|
+
readonly message: "Create infra provider error";
|
680
|
+
readonly httpCode: 500;
|
681
|
+
};
|
682
|
+
readonly UPDATE_INFRA_PROVIDER_ERROR: {
|
683
|
+
readonly code: "A131";
|
684
|
+
readonly message: "Update infra provider error";
|
685
|
+
readonly httpCode: 500;
|
686
|
+
};
|
572
687
|
};
|
573
688
|
//# sourceMappingURL=errors.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../constants/errors/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAwJY,MAAM;;;;;;;;;;wCAUN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA4IN,MAAM
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../constants/errors/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAwJY,MAAM;;;;;;;;;;wCAUN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA4IN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkW3B,CAAC"}
|
@@ -540,4 +540,119 @@ exports.ERRORS = {
|
|
540
540
|
message: 'Vacuum table error',
|
541
541
|
httpCode: 500,
|
542
542
|
},
|
543
|
+
GET_CONFIG_PROFILES_ERROR: {
|
544
|
+
code: 'A109',
|
545
|
+
message: 'Get config profiles error',
|
546
|
+
httpCode: 500,
|
547
|
+
},
|
548
|
+
GET_CONFIG_PROFILE_BY_UUID_ERROR: {
|
549
|
+
code: 'A110',
|
550
|
+
message: 'Get config profile by UUID error',
|
551
|
+
httpCode: 500,
|
552
|
+
},
|
553
|
+
CONFIG_PROFILE_NOT_FOUND: {
|
554
|
+
code: 'A111',
|
555
|
+
message: 'Config profile not found',
|
556
|
+
httpCode: 404,
|
557
|
+
},
|
558
|
+
CREATE_CONFIG_PROFILE_ERROR: {
|
559
|
+
code: 'A112',
|
560
|
+
message: 'Create config profile error',
|
561
|
+
httpCode: 500,
|
562
|
+
},
|
563
|
+
INBOUNDS_WITH_SAME_TAG_ALREADY_EXISTS: {
|
564
|
+
code: 'A113',
|
565
|
+
message: 'Inbounds with same tag already exists in database. Inbound tags must be unique.',
|
566
|
+
httpCode: 409,
|
567
|
+
},
|
568
|
+
CONFIG_PROFILE_NAME_ALREADY_EXISTS: {
|
569
|
+
code: 'A114',
|
570
|
+
message: 'Config profile name already exists in database. Config profile names must be unique.',
|
571
|
+
httpCode: 409,
|
572
|
+
},
|
573
|
+
GET_INBOUNDS_BY_PROFILE_UUID_ERROR: {
|
574
|
+
code: 'A115',
|
575
|
+
message: 'Get inbounds by profile UUID error',
|
576
|
+
httpCode: 500,
|
577
|
+
},
|
578
|
+
GET_INTERNAL_SQUADS_ERROR: {
|
579
|
+
code: 'A116',
|
580
|
+
message: 'Get internal squads error',
|
581
|
+
httpCode: 500,
|
582
|
+
},
|
583
|
+
GET_INTERNAL_SQUAD_BY_UUID_ERROR: {
|
584
|
+
code: 'A117',
|
585
|
+
message: 'Get internal squad by UUID error',
|
586
|
+
httpCode: 500,
|
587
|
+
},
|
588
|
+
INTERNAL_SQUAD_NOT_FOUND: {
|
589
|
+
code: 'A118',
|
590
|
+
message: 'Internal squad not found',
|
591
|
+
httpCode: 404,
|
592
|
+
},
|
593
|
+
CREATE_INTERNAL_SQUAD_ERROR: {
|
594
|
+
code: 'A119',
|
595
|
+
message: 'Create internal squad error',
|
596
|
+
httpCode: 500,
|
597
|
+
},
|
598
|
+
INTERNAL_SQUAD_NAME_ALREADY_EXISTS: {
|
599
|
+
code: 'A120',
|
600
|
+
message: 'Internal squad name already exists',
|
601
|
+
httpCode: 409,
|
602
|
+
},
|
603
|
+
UPDATE_INTERNAL_SQUAD_ERROR: {
|
604
|
+
code: 'A121',
|
605
|
+
message: 'Update internal squad error',
|
606
|
+
httpCode: 500,
|
607
|
+
},
|
608
|
+
DELETE_INTERNAL_SQUAD_ERROR: {
|
609
|
+
code: 'A122',
|
610
|
+
message: 'Delete internal squad error',
|
611
|
+
httpCode: 500,
|
612
|
+
},
|
613
|
+
CREATE_USER_WITH_INTERNAL_SQUAD_ERROR: {
|
614
|
+
code: 'A123',
|
615
|
+
message: 'Create user with internal squad error',
|
616
|
+
httpCode: 500,
|
617
|
+
},
|
618
|
+
CONFIG_PROFILE_INBOUND_NOT_FOUND_IN_SPECIFIED_PROFILE: {
|
619
|
+
code: 'A124',
|
620
|
+
message: 'Config profile inbound not found in specified profile',
|
621
|
+
httpCode: 404,
|
622
|
+
},
|
623
|
+
GET_USER_ACCESSIBLE_NODES_ERROR: {
|
624
|
+
code: 'A125',
|
625
|
+
message: 'Get user accessible nodes error',
|
626
|
+
httpCode: 500,
|
627
|
+
},
|
628
|
+
GET_INFRA_PROVIDERS_ERROR: {
|
629
|
+
code: 'A126',
|
630
|
+
message: 'Get infra providers error',
|
631
|
+
httpCode: 500,
|
632
|
+
},
|
633
|
+
GET_INFRA_PROVIDER_BY_UUID_ERROR: {
|
634
|
+
code: 'A127',
|
635
|
+
message: 'Get infra provider by UUID error',
|
636
|
+
httpCode: 500,
|
637
|
+
},
|
638
|
+
INFRA_PROVIDER_NOT_FOUND: {
|
639
|
+
code: 'A128',
|
640
|
+
message: 'Infra provider not found',
|
641
|
+
httpCode: 404,
|
642
|
+
},
|
643
|
+
DELETE_INFRA_PROVIDER_BY_UUID_ERROR: {
|
644
|
+
code: 'A129',
|
645
|
+
message: 'Delete infra provider by UUID error',
|
646
|
+
httpCode: 500,
|
647
|
+
},
|
648
|
+
CREATE_INFRA_PROVIDER_ERROR: {
|
649
|
+
code: 'A130',
|
650
|
+
message: 'Create infra provider error',
|
651
|
+
httpCode: 500,
|
652
|
+
},
|
653
|
+
UPDATE_INFRA_PROVIDER_ERROR: {
|
654
|
+
code: 'A131',
|
655
|
+
message: 'Update infra provider error',
|
656
|
+
httpCode: 500,
|
657
|
+
},
|
543
658
|
};
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare const BaseInternalSquadSchema: z.ZodObject<{
|
3
|
+
uuid: z.ZodString;
|
4
|
+
name: z.ZodString;
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
6
|
+
uuid: string;
|
7
|
+
name: string;
|
8
|
+
}, {
|
9
|
+
uuid: string;
|
10
|
+
name: string;
|
11
|
+
}>;
|
12
|
+
//# sourceMappingURL=base-internal-squad.schema.d.ts.map
|