@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
@@ -0,0 +1,23 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./create-config-profile.command"), exports);
|
18
|
+
__exportStar(require("./delete-config-profile.command"), exports);
|
19
|
+
__exportStar(require("./get-all-inbounds.command"), exports);
|
20
|
+
__exportStar(require("./get-config-profile-by-uuid.command"), exports);
|
21
|
+
__exportStar(require("./get-config-profiles.command"), exports);
|
22
|
+
__exportStar(require("./get-inbounds-by-profile-uuid.command"), exports);
|
23
|
+
__exportStar(require("./update-config-profile.command"), exports);
|
@@ -0,0 +1,20 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.UpdateConfigProfileCommand = void 0;
|
4
|
+
const zod_1 = require("zod");
|
5
|
+
const api_1 = require("../../api");
|
6
|
+
const constants_1 = require("../../constants");
|
7
|
+
const models_1 = require("../../models");
|
8
|
+
var UpdateConfigProfileCommand;
|
9
|
+
(function (UpdateConfigProfileCommand) {
|
10
|
+
UpdateConfigProfileCommand.url = api_1.REST_API.CONFIG_PROFILES.UPDATE;
|
11
|
+
UpdateConfigProfileCommand.TSQ_url = UpdateConfigProfileCommand.url;
|
12
|
+
UpdateConfigProfileCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.CONFIG_PROFILES_ROUTES.UPDATE, 'patch', 'Update Core Config in specific config profile');
|
13
|
+
UpdateConfigProfileCommand.RequestSchema = zod_1.z.object({
|
14
|
+
uuid: zod_1.z.string().uuid('UUID must be a valid UUID'),
|
15
|
+
config: zod_1.z.object({}).passthrough(),
|
16
|
+
});
|
17
|
+
UpdateConfigProfileCommand.ResponseSchema = zod_1.z.object({
|
18
|
+
response: models_1.ConfigProfileSchema,
|
19
|
+
});
|
20
|
+
})(UpdateConfigProfileCommand || (exports.UpdateConfigProfileCommand = UpdateConfigProfileCommand = {}));
|
@@ -12,7 +12,8 @@ var SetInboundToManyHostsCommand;
|
|
12
12
|
SetInboundToManyHostsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.HOSTS_ROUTES.BULK.SET_INBOUND, 'post', 'Set inbound to hosts by UUIDs');
|
13
13
|
SetInboundToManyHostsCommand.RequestSchema = zod_1.z.object({
|
14
14
|
uuids: zod_1.z.array(zod_1.z.string().uuid()),
|
15
|
-
|
15
|
+
configProfileUuid: zod_1.z.string().uuid(),
|
16
|
+
configProfileInboundUuid: zod_1.z.string().uuid(),
|
16
17
|
});
|
17
18
|
SetInboundToManyHostsCommand.ResponseSchema = zod_1.z.object({
|
18
19
|
response: zod_1.z.array(models_1.HostsSchema),
|
@@ -11,11 +11,18 @@ var CreateHostCommand;
|
|
11
11
|
CreateHostCommand.TSQ_url = CreateHostCommand.url;
|
12
12
|
CreateHostCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.HOSTS_ROUTES.CREATE, 'post', 'Create a new host');
|
13
13
|
CreateHostCommand.RequestSchema = zod_1.z.object({
|
14
|
-
|
14
|
+
configProfileUuid: zod_1.z
|
15
|
+
.string({
|
16
|
+
invalid_type_error: 'Config Profile UUID must be a string',
|
17
|
+
})
|
18
|
+
.uuid('Config Profile UUID must be a valid UUID')
|
19
|
+
.optional(),
|
20
|
+
configProfileInboundUuid: zod_1.z
|
15
21
|
.string({
|
16
22
|
invalid_type_error: 'Inbound UUID must be a string',
|
17
23
|
})
|
18
|
-
.uuid('Inbound UUID must be a valid UUID')
|
24
|
+
.uuid('Inbound UUID must be a valid UUID')
|
25
|
+
.optional(),
|
19
26
|
remark: zod_1.z
|
20
27
|
.string({
|
21
28
|
invalid_type_error: 'Remark must be a string',
|
@@ -13,7 +13,13 @@ var UpdateHostCommand;
|
|
13
13
|
UpdateHostCommand.RequestSchema = models_1.HostsSchema.pick({
|
14
14
|
uuid: true,
|
15
15
|
}).extend({
|
16
|
-
|
16
|
+
configProfileUuid: zod_1.z
|
17
|
+
.string({
|
18
|
+
invalid_type_error: 'Config Profile UUID must be a string',
|
19
|
+
})
|
20
|
+
.uuid('Config Profile UUID must be a valid UUID')
|
21
|
+
.optional(),
|
22
|
+
configProfileInboundUuid: zod_1.z
|
17
23
|
.string({
|
18
24
|
invalid_type_error: 'Inbound UUID must be a string',
|
19
25
|
})
|
@@ -16,9 +16,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
17
|
__exportStar(require("./api-tokens"), exports);
|
18
18
|
__exportStar(require("./auth"), exports);
|
19
|
+
__exportStar(require("./config-profiles"), exports);
|
19
20
|
__exportStar(require("./hosts"), exports);
|
20
21
|
__exportStar(require("./hwid"), exports);
|
21
|
-
__exportStar(require("./
|
22
|
+
__exportStar(require("./infra-billing"), exports);
|
23
|
+
__exportStar(require("./internal-squads"), exports);
|
22
24
|
__exportStar(require("./keygen"), exports);
|
23
25
|
__exportStar(require("./nodes"), exports);
|
24
26
|
__exportStar(require("./subscription"), exports);
|
@@ -27,4 +29,3 @@ __exportStar(require("./subscription-template"), exports);
|
|
27
29
|
__exportStar(require("./subscriptions"), exports);
|
28
30
|
__exportStar(require("./system"), exports);
|
29
31
|
__exportStar(require("./users"), exports);
|
30
|
-
__exportStar(require("./xray"), exports);
|
@@ -0,0 +1,24 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.CreateInfraProviderCommand = void 0;
|
4
|
+
const zod_1 = require("zod");
|
5
|
+
const api_1 = require("../../api");
|
6
|
+
const constants_1 = require("../../constants");
|
7
|
+
const models_1 = require("../../models");
|
8
|
+
var CreateInfraProviderCommand;
|
9
|
+
(function (CreateInfraProviderCommand) {
|
10
|
+
CreateInfraProviderCommand.url = api_1.REST_API.INFRA_BILLING.CREATE_PROVIDER;
|
11
|
+
CreateInfraProviderCommand.TSQ_url = CreateInfraProviderCommand.url;
|
12
|
+
CreateInfraProviderCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INFRA_BILLING_ROUTES.CREATE_PROVIDER, 'post', 'Create infra provider');
|
13
|
+
CreateInfraProviderCommand.RequestSchema = zod_1.z.object({
|
14
|
+
name: zod_1.z
|
15
|
+
.string()
|
16
|
+
.min(2, 'Name must be at least 2 characters')
|
17
|
+
.max(30, 'Name must be less than 255 characters'),
|
18
|
+
faviconLink: zod_1.z.string().url().optional(),
|
19
|
+
loginUrl: zod_1.z.string().url().optional(),
|
20
|
+
});
|
21
|
+
CreateInfraProviderCommand.ResponseSchema = zod_1.z.object({
|
22
|
+
response: models_1.InfraProviderSchema,
|
23
|
+
});
|
24
|
+
})(CreateInfraProviderCommand || (exports.CreateInfraProviderCommand = CreateInfraProviderCommand = {}));
|
@@ -0,0 +1,20 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.DeleteInfraProviderByUuidCommand = void 0;
|
4
|
+
const zod_1 = require("zod");
|
5
|
+
const api_1 = require("../../api");
|
6
|
+
const constants_1 = require("../../constants");
|
7
|
+
var DeleteInfraProviderByUuidCommand;
|
8
|
+
(function (DeleteInfraProviderByUuidCommand) {
|
9
|
+
DeleteInfraProviderByUuidCommand.url = api_1.REST_API.INFRA_BILLING.DELETE_PROVIDER(':uuid');
|
10
|
+
DeleteInfraProviderByUuidCommand.TSQ_url = DeleteInfraProviderByUuidCommand.url;
|
11
|
+
DeleteInfraProviderByUuidCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INFRA_BILLING_ROUTES.DELETE_PROVIDER(':uuid'), 'delete', 'Delete infra provider by uuid');
|
12
|
+
DeleteInfraProviderByUuidCommand.RequestSchema = zod_1.z.object({
|
13
|
+
uuid: zod_1.z.string().uuid(),
|
14
|
+
});
|
15
|
+
DeleteInfraProviderByUuidCommand.ResponseSchema = zod_1.z.object({
|
16
|
+
response: zod_1.z.object({
|
17
|
+
isDeleted: zod_1.z.boolean(),
|
18
|
+
}),
|
19
|
+
});
|
20
|
+
})(DeleteInfraProviderByUuidCommand || (exports.DeleteInfraProviderByUuidCommand = DeleteInfraProviderByUuidCommand = {}));
|
@@ -0,0 +1,19 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.GetInfraProviderByUuidCommand = void 0;
|
4
|
+
const zod_1 = require("zod");
|
5
|
+
const api_1 = require("../../api");
|
6
|
+
const constants_1 = require("../../constants");
|
7
|
+
const models_1 = require("../../models");
|
8
|
+
var GetInfraProviderByUuidCommand;
|
9
|
+
(function (GetInfraProviderByUuidCommand) {
|
10
|
+
GetInfraProviderByUuidCommand.url = api_1.REST_API.INFRA_BILLING.GET_PROVIDER_BY_UUID(':uuid');
|
11
|
+
GetInfraProviderByUuidCommand.TSQ_url = GetInfraProviderByUuidCommand.url;
|
12
|
+
GetInfraProviderByUuidCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INFRA_BILLING_ROUTES.GET_PROVIDER_BY_UUID(':uuid'), 'get', 'Get infra provider by uuid');
|
13
|
+
GetInfraProviderByUuidCommand.RequestSchema = zod_1.z.object({
|
14
|
+
uuid: zod_1.z.string().uuid(),
|
15
|
+
});
|
16
|
+
GetInfraProviderByUuidCommand.ResponseSchema = zod_1.z.object({
|
17
|
+
response: models_1.InfraProviderSchema,
|
18
|
+
});
|
19
|
+
})(GetInfraProviderByUuidCommand || (exports.GetInfraProviderByUuidCommand = GetInfraProviderByUuidCommand = {}));
|
@@ -0,0 +1,19 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.GetInfraProvidersCommand = void 0;
|
4
|
+
const zod_1 = require("zod");
|
5
|
+
const api_1 = require("../../api");
|
6
|
+
const constants_1 = require("../../constants");
|
7
|
+
const models_1 = require("../../models");
|
8
|
+
var GetInfraProvidersCommand;
|
9
|
+
(function (GetInfraProvidersCommand) {
|
10
|
+
GetInfraProvidersCommand.url = api_1.REST_API.INFRA_BILLING.GET_PROVIDERS;
|
11
|
+
GetInfraProvidersCommand.TSQ_url = GetInfraProvidersCommand.url;
|
12
|
+
GetInfraProvidersCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INFRA_BILLING_ROUTES.GET_PROVIDERS, 'get', 'Get all infra providers');
|
13
|
+
GetInfraProvidersCommand.ResponseSchema = zod_1.z.object({
|
14
|
+
response: zod_1.z.object({
|
15
|
+
total: zod_1.z.number(),
|
16
|
+
providers: zod_1.z.array(models_1.InfraProviderSchema),
|
17
|
+
}),
|
18
|
+
});
|
19
|
+
})(GetInfraProvidersCommand || (exports.GetInfraProvidersCommand = GetInfraProvidersCommand = {}));
|
@@ -14,7 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
-
__exportStar(require("./
|
18
|
-
__exportStar(require("./
|
19
|
-
__exportStar(require("./
|
20
|
-
__exportStar(require("./
|
17
|
+
__exportStar(require("./create-infra-provider.command"), exports);
|
18
|
+
__exportStar(require("./delete-infra-provider-by-uuid.command"), exports);
|
19
|
+
__exportStar(require("./get-infra-provider-by-uuid.command"), exports);
|
20
|
+
__exportStar(require("./get-infra-providers.command"), exports);
|
21
|
+
__exportStar(require("./update-infra-provider.command"), exports);
|
@@ -0,0 +1,26 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.UpdateInfraProviderCommand = void 0;
|
4
|
+
const zod_1 = require("zod");
|
5
|
+
const api_1 = require("../../api");
|
6
|
+
const constants_1 = require("../../constants");
|
7
|
+
const models_1 = require("../../models");
|
8
|
+
var UpdateInfraProviderCommand;
|
9
|
+
(function (UpdateInfraProviderCommand) {
|
10
|
+
UpdateInfraProviderCommand.url = api_1.REST_API.INFRA_BILLING.UPDATE_PROVIDER;
|
11
|
+
UpdateInfraProviderCommand.TSQ_url = UpdateInfraProviderCommand.url;
|
12
|
+
UpdateInfraProviderCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INFRA_BILLING_ROUTES.UPDATE_PROVIDER, 'patch', 'Update infra provider');
|
13
|
+
UpdateInfraProviderCommand.RequestSchema = zod_1.z.object({
|
14
|
+
uuid: zod_1.z.string().uuid(),
|
15
|
+
name: zod_1.z
|
16
|
+
.string()
|
17
|
+
.min(2, 'Name must be at least 2 characters')
|
18
|
+
.max(30, 'Name must be less than 255 characters')
|
19
|
+
.optional(),
|
20
|
+
faviconLink: zod_1.z.optional(zod_1.z.nullable(zod_1.z.string().url())),
|
21
|
+
loginUrl: zod_1.z.optional(zod_1.z.nullable(zod_1.z.string().url())),
|
22
|
+
});
|
23
|
+
UpdateInfraProviderCommand.ResponseSchema = zod_1.z.object({
|
24
|
+
response: models_1.InfraProviderSchema,
|
25
|
+
});
|
26
|
+
})(UpdateInfraProviderCommand || (exports.UpdateInfraProviderCommand = UpdateInfraProviderCommand = {}));
|
@@ -0,0 +1,24 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.CreateInternalSquadCommand = void 0;
|
4
|
+
const zod_1 = require("zod");
|
5
|
+
const api_1 = require("../../api");
|
6
|
+
const constants_1 = require("../../constants");
|
7
|
+
const models_1 = require("../../models");
|
8
|
+
var CreateInternalSquadCommand;
|
9
|
+
(function (CreateInternalSquadCommand) {
|
10
|
+
CreateInternalSquadCommand.url = api_1.REST_API.INTERNAL_SQUADS.CREATE;
|
11
|
+
CreateInternalSquadCommand.TSQ_url = CreateInternalSquadCommand.url;
|
12
|
+
CreateInternalSquadCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INTERNAL_SQUADS_ROUTES.CREATE, 'post', 'Create internal squad');
|
13
|
+
CreateInternalSquadCommand.RequestSchema = zod_1.z.object({
|
14
|
+
name: zod_1.z
|
15
|
+
.string()
|
16
|
+
.min(2, 'Name must be at least 2 characters')
|
17
|
+
.max(20, 'Name must be less than 20 characters')
|
18
|
+
.regex(/^[A-Za-z0-9_-]+$/, 'Name can only contain letters, numbers, underscores and dashes'),
|
19
|
+
inbounds: zod_1.z.array(zod_1.z.string().uuid()),
|
20
|
+
});
|
21
|
+
CreateInternalSquadCommand.ResponseSchema = zod_1.z.object({
|
22
|
+
response: models_1.InternalSquadSchema,
|
23
|
+
});
|
24
|
+
})(CreateInternalSquadCommand || (exports.CreateInternalSquadCommand = CreateInternalSquadCommand = {}));
|
@@ -0,0 +1,20 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.DeleteInternalSquadCommand = void 0;
|
4
|
+
const zod_1 = require("zod");
|
5
|
+
const api_1 = require("../../api");
|
6
|
+
const constants_1 = require("../../constants");
|
7
|
+
var DeleteInternalSquadCommand;
|
8
|
+
(function (DeleteInternalSquadCommand) {
|
9
|
+
DeleteInternalSquadCommand.url = api_1.REST_API.INTERNAL_SQUADS.DELETE;
|
10
|
+
DeleteInternalSquadCommand.TSQ_url = DeleteInternalSquadCommand.url(':uuid');
|
11
|
+
DeleteInternalSquadCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INTERNAL_SQUADS_ROUTES.DELETE(':uuid'), 'delete', 'Delete internal squad');
|
12
|
+
DeleteInternalSquadCommand.RequestSchema = zod_1.z.object({
|
13
|
+
uuid: zod_1.z.string().uuid(),
|
14
|
+
});
|
15
|
+
DeleteInternalSquadCommand.ResponseSchema = zod_1.z.object({
|
16
|
+
response: zod_1.z.object({
|
17
|
+
isDeleted: zod_1.z.boolean(),
|
18
|
+
}),
|
19
|
+
});
|
20
|
+
})(DeleteInternalSquadCommand || (exports.DeleteInternalSquadCommand = DeleteInternalSquadCommand = {}));
|
@@ -0,0 +1,19 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.GetInternalSquadByUuidCommand = void 0;
|
4
|
+
const zod_1 = require("zod");
|
5
|
+
const api_1 = require("../../api");
|
6
|
+
const constants_1 = require("../../constants");
|
7
|
+
const models_1 = require("../../models");
|
8
|
+
var GetInternalSquadByUuidCommand;
|
9
|
+
(function (GetInternalSquadByUuidCommand) {
|
10
|
+
GetInternalSquadByUuidCommand.url = api_1.REST_API.INTERNAL_SQUADS.GET_BY_UUID;
|
11
|
+
GetInternalSquadByUuidCommand.TSQ_url = GetInternalSquadByUuidCommand.url(':uuid');
|
12
|
+
GetInternalSquadByUuidCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INTERNAL_SQUADS_ROUTES.GET_BY_UUID(':uuid'), 'get', 'Get internal squad by uuid');
|
13
|
+
GetInternalSquadByUuidCommand.RequestSchema = zod_1.z.object({
|
14
|
+
uuid: zod_1.z.string().uuid(),
|
15
|
+
});
|
16
|
+
GetInternalSquadByUuidCommand.ResponseSchema = zod_1.z.object({
|
17
|
+
response: models_1.InternalSquadSchema,
|
18
|
+
});
|
19
|
+
})(GetInternalSquadByUuidCommand || (exports.GetInternalSquadByUuidCommand = GetInternalSquadByUuidCommand = {}));
|
@@ -0,0 +1,19 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.GetInternalSquadsCommand = void 0;
|
4
|
+
const zod_1 = require("zod");
|
5
|
+
const api_1 = require("../../api");
|
6
|
+
const constants_1 = require("../../constants");
|
7
|
+
const models_1 = require("../../models");
|
8
|
+
var GetInternalSquadsCommand;
|
9
|
+
(function (GetInternalSquadsCommand) {
|
10
|
+
GetInternalSquadsCommand.url = api_1.REST_API.INTERNAL_SQUADS.GET;
|
11
|
+
GetInternalSquadsCommand.TSQ_url = GetInternalSquadsCommand.url;
|
12
|
+
GetInternalSquadsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INTERNAL_SQUADS_ROUTES.GET, 'get', 'Get all internal squads');
|
13
|
+
GetInternalSquadsCommand.ResponseSchema = zod_1.z.object({
|
14
|
+
response: zod_1.z.object({
|
15
|
+
total: zod_1.z.number(),
|
16
|
+
internalSquads: zod_1.z.array(models_1.InternalSquadSchema),
|
17
|
+
}),
|
18
|
+
});
|
19
|
+
})(GetInternalSquadsCommand || (exports.GetInternalSquadsCommand = GetInternalSquadsCommand = {}));
|
@@ -14,6 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
-
__exportStar(require("./
|
18
|
-
__exportStar(require("./
|
19
|
-
__exportStar(require("./get-
|
17
|
+
__exportStar(require("./create-internal-squad.command"), exports);
|
18
|
+
__exportStar(require("./delete-internal-squad.command"), exports);
|
19
|
+
__exportStar(require("./get-internal-squad-by-uuid."), exports);
|
20
|
+
__exportStar(require("./get-internal-squads.command"), exports);
|
21
|
+
__exportStar(require("./update-internal-squad.command"), exports);
|
@@ -0,0 +1,20 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.UpdateInternalSquadCommand = void 0;
|
4
|
+
const zod_1 = require("zod");
|
5
|
+
const api_1 = require("../../api");
|
6
|
+
const constants_1 = require("../../constants");
|
7
|
+
const models_1 = require("../../models");
|
8
|
+
var UpdateInternalSquadCommand;
|
9
|
+
(function (UpdateInternalSquadCommand) {
|
10
|
+
UpdateInternalSquadCommand.url = api_1.REST_API.INTERNAL_SQUADS.UPDATE;
|
11
|
+
UpdateInternalSquadCommand.TSQ_url = UpdateInternalSquadCommand.url;
|
12
|
+
UpdateInternalSquadCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INTERNAL_SQUADS_ROUTES.UPDATE, 'patch', 'Update internal squad');
|
13
|
+
UpdateInternalSquadCommand.RequestSchema = zod_1.z.object({
|
14
|
+
uuid: zod_1.z.string().uuid(),
|
15
|
+
inbounds: zod_1.z.array(zod_1.z.string().uuid()),
|
16
|
+
});
|
17
|
+
UpdateInternalSquadCommand.ResponseSchema = zod_1.z.object({
|
18
|
+
response: models_1.InternalSquadSchema,
|
19
|
+
});
|
20
|
+
})(UpdateInternalSquadCommand || (exports.UpdateInternalSquadCommand = UpdateInternalSquadCommand = {}));
|
@@ -26,9 +26,6 @@ var CreateNodeCommand;
|
|
26
26
|
.int()
|
27
27
|
.min(1, 'Traffic reset day must be greater than 0')
|
28
28
|
.max(31, 'Traffic reset day must be less than 31')),
|
29
|
-
excludedInbounds: zod_1.z.optional(zod_1.z.array(zod_1.z.string().uuid(), {
|
30
|
-
invalid_type_error: 'Excluded inbounds must be an array of UUIDs',
|
31
|
-
})),
|
32
29
|
countryCode: zod_1.z
|
33
30
|
.string()
|
34
31
|
.max(2, 'Country code must be 2 characters')
|
@@ -38,6 +35,11 @@ var CreateNodeCommand;
|
|
38
35
|
.number()
|
39
36
|
.min(0.1, 'Consumption multiplier must be greater than 0')
|
40
37
|
.transform((n) => Number(n.toFixed(1)))),
|
38
|
+
activeConfigProfileUuid: zod_1.z.optional(zod_1.z.string().uuid()),
|
39
|
+
activeInbounds: zod_1.z.optional(zod_1.z.array(zod_1.z.string().uuid(), {
|
40
|
+
invalid_type_error: 'Active inbounds must be an array of UUIDs',
|
41
|
+
})),
|
42
|
+
providerUuid: zod_1.z.optional(zod_1.z.nullable(zod_1.z.string().uuid())),
|
41
43
|
});
|
42
44
|
CreateNodeCommand.ResponseSchema = zod_1.z.object({
|
43
45
|
response: models_1.NodesSchema,
|
@@ -26,14 +26,16 @@ var UpdateNodeCommand;
|
|
26
26
|
.number()
|
27
27
|
.min(1, 'Traffic reset day must be greater than 0')
|
28
28
|
.max(31, 'Traffic reset day must be less than 31')),
|
29
|
-
excludedInbounds: zod_1.z.optional(zod_1.z.array(zod_1.z.string().uuid(), {
|
30
|
-
invalid_type_error: 'Excluded inbounds must be an array of UUIDs',
|
31
|
-
})),
|
32
29
|
countryCode: zod_1.z.optional(zod_1.z.string().max(2, 'Country code must be 2 characters').toUpperCase()),
|
33
30
|
consumptionMultiplier: zod_1.z.optional(zod_1.z
|
34
31
|
.number()
|
35
32
|
.min(0.1, 'Consumption multiplier must be greater than 0')
|
36
33
|
.transform((n) => Number(n.toFixed(1)))),
|
34
|
+
activeConfigProfileUuid: zod_1.z.optional(zod_1.z.string().uuid()),
|
35
|
+
activeInbounds: zod_1.z.optional(zod_1.z.array(zod_1.z.string().uuid(), {
|
36
|
+
invalid_type_error: 'Active inbounds must be an array of UUIDs',
|
37
|
+
})),
|
38
|
+
providerUuid: zod_1.z.optional(zod_1.z.nullable(zod_1.z.string().uuid())),
|
37
39
|
});
|
38
40
|
UpdateNodeCommand.ResponseSchema = zod_1.z.object({
|
39
41
|
response: models_1.NodesSchema,
|
@@ -14,7 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
-
__exportStar(require("./activate-all-inbounds.command"), exports);
|
18
17
|
__exportStar(require("./disable-user.command"), exports);
|
19
18
|
__exportStar(require("./enable-user.command"), exports);
|
20
19
|
__exportStar(require("./reset-user-traffic.command"), exports);
|
@@ -0,0 +1,23 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.BulkUpdateUsersSquadsCommand = void 0;
|
4
|
+
const zod_1 = require("zod");
|
5
|
+
const constants_1 = require("../../../constants");
|
6
|
+
const api_1 = require("../../../api");
|
7
|
+
var BulkUpdateUsersSquadsCommand;
|
8
|
+
(function (BulkUpdateUsersSquadsCommand) {
|
9
|
+
BulkUpdateUsersSquadsCommand.url = api_1.REST_API.USERS.BULK.UPDATE_SQUADS;
|
10
|
+
BulkUpdateUsersSquadsCommand.TSQ_url = BulkUpdateUsersSquadsCommand.url;
|
11
|
+
BulkUpdateUsersSquadsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.BULK.UPDATE_SQUADS, 'post', 'Bulk update users internal squads by UUIDs');
|
12
|
+
BulkUpdateUsersSquadsCommand.RequestSchema = zod_1.z.object({
|
13
|
+
uuids: zod_1.z.array(zod_1.z.string().uuid()),
|
14
|
+
activeInternalSquads: zod_1.z.array(zod_1.z.string().uuid(), {
|
15
|
+
invalid_type_error: 'Enabled internal squads must be an array of UUIDs',
|
16
|
+
}),
|
17
|
+
});
|
18
|
+
BulkUpdateUsersSquadsCommand.ResponseSchema = zod_1.z.object({
|
19
|
+
response: zod_1.z.object({
|
20
|
+
affectedRows: zod_1.z.number(),
|
21
|
+
}),
|
22
|
+
});
|
23
|
+
})(BulkUpdateUsersSquadsCommand || (exports.BulkUpdateUsersSquadsCommand = BulkUpdateUsersSquadsCommand = {}));
|
@@ -18,5 +18,5 @@ __exportStar(require("./bulk-delete-users-by-status.command"), exports);
|
|
18
18
|
__exportStar(require("./bulk-delete-users.command"), exports);
|
19
19
|
__exportStar(require("./bulk-reset-traffic-users.command"), exports);
|
20
20
|
__exportStar(require("./bulk-revoke-users-subscription.command"), exports);
|
21
|
-
__exportStar(require("./bulk-update-users-
|
21
|
+
__exportStar(require("./bulk-update-users-squads.command"), exports);
|
22
22
|
__exportStar(require("./bulk-update-users.command"), exports);
|
@@ -24,13 +24,6 @@ var CreateUserCommand;
|
|
24
24
|
.optional()
|
25
25
|
.default(constants_1.USERS_STATUS.ACTIVE)
|
26
26
|
.describe('Optional. User account status. Defaults to ACTIVE.'),
|
27
|
-
subscriptionUuid: zod_1.z
|
28
|
-
.string({
|
29
|
-
invalid_type_error: 'Subscription UUID must be a string',
|
30
|
-
})
|
31
|
-
.uuid('Invalid subscription UUID format')
|
32
|
-
.optional()
|
33
|
-
.describe('Optional. UUID for user subscription. Must be a valid UUID format.'),
|
34
27
|
shortUuid: zod_1.z
|
35
28
|
.string({
|
36
29
|
invalid_type_error: 'Short UUID must be a string',
|
@@ -81,12 +74,6 @@ var CreateUserCommand;
|
|
81
74
|
});
|
82
75
|
}
|
83
76
|
})),
|
84
|
-
activeUserInbounds: zod_1.z
|
85
|
-
.array(zod_1.z.string().uuid(), {
|
86
|
-
invalid_type_error: 'Enabled inbounds must be an array',
|
87
|
-
})
|
88
|
-
.optional()
|
89
|
-
.describe('Optional. Array of UUIDs representing enabled inbound connections.'),
|
90
77
|
expireAt: zod_1.z
|
91
78
|
.string({
|
92
79
|
required_error: 'Expiration date is required',
|
@@ -135,10 +122,12 @@ var CreateUserCommand;
|
|
135
122
|
.int('Device limit must be an integer')
|
136
123
|
.min(0, 'Device limit must be greater than 0')
|
137
124
|
.describe('Optional. Maximum number of hardware devices allowed. Must be a positive integer.')),
|
138
|
-
|
139
|
-
.
|
125
|
+
activeInternalSquads: zod_1.z
|
126
|
+
.array(zod_1.z.string().uuid(), {
|
127
|
+
invalid_type_error: 'Enabled internal squads must be an array',
|
128
|
+
})
|
140
129
|
.optional()
|
141
|
-
.describe('Optional.
|
130
|
+
.describe('Optional. Array of UUIDs representing enabled internal squads.'),
|
142
131
|
});
|
143
132
|
CreateUserCommand.ResponseSchema = zod_1.z.object({
|
144
133
|
response: models_1.ExtendedUsersSchema,
|
@@ -16,7 +16,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
17
|
__exportStar(require("./get-user-by-email.command"), exports);
|
18
18
|
__exportStar(require("./get-user-by-short-uuid.command"), exports);
|
19
|
-
__exportStar(require("./get-user-by-subscription-uuid.command"), exports);
|
20
19
|
__exportStar(require("./get-user-by-tag.command"), exports);
|
21
20
|
__exportStar(require("./get-user-by-telegram-id.command"), exports);
|
22
21
|
__exportStar(require("./get-user-by-username.command"), exports);
|
@@ -0,0 +1,31 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.GetUserAccessibleNodesCommand = void 0;
|
4
|
+
const zod_1 = require("zod");
|
5
|
+
const constants_1 = require("../../constants");
|
6
|
+
const api_1 = require("../../api");
|
7
|
+
var GetUserAccessibleNodesCommand;
|
8
|
+
(function (GetUserAccessibleNodesCommand) {
|
9
|
+
GetUserAccessibleNodesCommand.url = api_1.REST_API.USERS.ACCESSIBLE_NODES;
|
10
|
+
GetUserAccessibleNodesCommand.TSQ_url = GetUserAccessibleNodesCommand.url(':uuid');
|
11
|
+
GetUserAccessibleNodesCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.ACCESSIBLE_NODES(':uuid'), 'get', 'Get user accessible nodes');
|
12
|
+
GetUserAccessibleNodesCommand.RequestSchema = zod_1.z.object({
|
13
|
+
uuid: zod_1.z.string().uuid(),
|
14
|
+
});
|
15
|
+
GetUserAccessibleNodesCommand.ResponseSchema = zod_1.z.object({
|
16
|
+
response: zod_1.z.object({
|
17
|
+
userUuid: zod_1.z.string().uuid(),
|
18
|
+
activeNodes: zod_1.z.array(zod_1.z.object({
|
19
|
+
uuid: zod_1.z.string().uuid(),
|
20
|
+
nodeName: zod_1.z.string(),
|
21
|
+
countryCode: zod_1.z.string(),
|
22
|
+
configProfileUuid: zod_1.z.string().uuid(),
|
23
|
+
configProfileName: zod_1.z.string(),
|
24
|
+
activeSquads: zod_1.z.array(zod_1.z.object({
|
25
|
+
squadName: zod_1.z.string(),
|
26
|
+
activeInbounds: zod_1.z.array(zod_1.z.string()),
|
27
|
+
})),
|
28
|
+
})),
|
29
|
+
}),
|
30
|
+
});
|
31
|
+
})(GetUserAccessibleNodesCommand || (exports.GetUserAccessibleNodesCommand = GetUserAccessibleNodesCommand = {}));
|
@@ -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);
|
@@ -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,
|