@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
@@ -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,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.BaseInternalSquadSchema = void 0;
|
4
|
+
const zod_1 = require("zod");
|
5
|
+
exports.BaseInternalSquadSchema = zod_1.z.object({
|
6
|
+
uuid: zod_1.z.string().uuid(),
|
7
|
+
name: zod_1.z.string(),
|
8
|
+
});
|
@@ -1,11 +1,14 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.ConfigProfileInboundsSchema = void 0;
|
4
4
|
const zod_1 = require("zod");
|
5
|
-
exports.
|
5
|
+
exports.ConfigProfileInboundsSchema = zod_1.z.object({
|
6
6
|
uuid: zod_1.z.string().uuid(),
|
7
|
+
profileUuid: zod_1.z.string().uuid(),
|
7
8
|
tag: zod_1.z.string(),
|
8
9
|
type: zod_1.z.string(),
|
9
10
|
network: zod_1.z.nullable(zod_1.z.string()),
|
10
11
|
security: zod_1.z.nullable(zod_1.z.string()),
|
12
|
+
port: zod_1.z.nullable(zod_1.z.number()),
|
13
|
+
rawInbound: zod_1.z.nullable(zod_1.z.unknown()),
|
11
14
|
});
|
@@ -0,0 +1,24 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ConfigProfileSchema = void 0;
|
4
|
+
const zod_1 = require("zod");
|
5
|
+
const config_profile_inbounds_schema_1 = require("./config-profile-inbounds.schema");
|
6
|
+
exports.ConfigProfileSchema = zod_1.z.object({
|
7
|
+
uuid: zod_1.z.string().uuid(),
|
8
|
+
name: zod_1.z.string(),
|
9
|
+
config: zod_1.z.unknown(),
|
10
|
+
inbounds: zod_1.z.array(config_profile_inbounds_schema_1.ConfigProfileInboundsSchema),
|
11
|
+
nodes: zod_1.z.array(zod_1.z.object({
|
12
|
+
uuid: zod_1.z.string().uuid(),
|
13
|
+
name: zod_1.z.string(),
|
14
|
+
countryCode: zod_1.z.string(),
|
15
|
+
})),
|
16
|
+
createdAt: zod_1.z
|
17
|
+
.string()
|
18
|
+
.datetime()
|
19
|
+
.transform((str) => new Date(str)),
|
20
|
+
updatedAt: zod_1.z
|
21
|
+
.string()
|
22
|
+
.datetime()
|
23
|
+
.transform((str) => new Date(str)),
|
24
|
+
});
|
@@ -5,7 +5,6 @@ const zod_1 = require("zod");
|
|
5
5
|
const hosts_1 = require("../constants/hosts");
|
6
6
|
exports.HostsSchema = zod_1.z.object({
|
7
7
|
uuid: zod_1.z.string().uuid(),
|
8
|
-
inboundUuid: zod_1.z.string().uuid(),
|
9
8
|
viewPosition: zod_1.z.number().int(),
|
10
9
|
remark: zod_1.z.string(),
|
11
10
|
address: zod_1.z.string(),
|
@@ -15,8 +14,9 @@ exports.HostsSchema = zod_1.z.object({
|
|
15
14
|
host: zod_1.z.string().nullable(),
|
16
15
|
alpn: zod_1.z.string().nullable(),
|
17
16
|
fingerprint: zod_1.z.string().nullable(),
|
18
|
-
allowInsecure: zod_1.z.boolean().default(false),
|
19
17
|
isDisabled: zod_1.z.boolean().default(false),
|
20
18
|
securityLayer: zod_1.z.nativeEnum(hosts_1.SECURITY_LAYERS).default(hosts_1.SECURITY_LAYERS.DEFAULT),
|
21
19
|
xHttpExtraParams: zod_1.z.nullable(zod_1.z.unknown()),
|
20
|
+
configProfileUuid: zod_1.z.string().uuid().nullable(),
|
21
|
+
configProfileInboundUuid: zod_1.z.string().uuid().nullable(),
|
22
22
|
});
|
@@ -16,13 +16,16 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
17
|
__exportStar(require("./api-tokens.schema"), exports);
|
18
18
|
__exportStar(require("./auth.schema"), exports);
|
19
|
+
__exportStar(require("./base-internal-squad.schema"), exports);
|
19
20
|
__exportStar(require("./base-stat.schema"), exports);
|
21
|
+
__exportStar(require("./config-profile-inbounds.schema"), exports);
|
22
|
+
__exportStar(require("./config-profile.schema"), exports);
|
20
23
|
__exportStar(require("./extented-users.schema"), exports);
|
21
|
-
__exportStar(require("./full-inbounds.schema"), exports);
|
22
24
|
__exportStar(require("./happ.schema"), exports);
|
23
25
|
__exportStar(require("./hosts.schema"), exports);
|
24
26
|
__exportStar(require("./hwid-user-device.schema"), exports);
|
25
|
-
__exportStar(require("./
|
27
|
+
__exportStar(require("./infra-provider.schema"), exports);
|
28
|
+
__exportStar(require("./internal-squad.schema"), exports);
|
26
29
|
__exportStar(require("./last-connected-node.schema"), exports);
|
27
30
|
__exportStar(require("./nodes.schema"), exports);
|
28
31
|
__exportStar(require("./subscription-settings.schema"), exports);
|
@@ -0,0 +1,27 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.InfraProviderSchema = void 0;
|
4
|
+
const zod_1 = require("zod");
|
5
|
+
exports.InfraProviderSchema = zod_1.z.object({
|
6
|
+
uuid: zod_1.z.string().uuid(),
|
7
|
+
name: zod_1.z.string(),
|
8
|
+
faviconLink: zod_1.z.nullable(zod_1.z.string()),
|
9
|
+
loginUrl: zod_1.z.nullable(zod_1.z.string()),
|
10
|
+
createdAt: zod_1.z
|
11
|
+
.string()
|
12
|
+
.datetime()
|
13
|
+
.transform((str) => new Date(str)),
|
14
|
+
updatedAt: zod_1.z
|
15
|
+
.string()
|
16
|
+
.datetime()
|
17
|
+
.transform((str) => new Date(str)),
|
18
|
+
billingHistory: zod_1.z.object({
|
19
|
+
totalAmount: zod_1.z.number(),
|
20
|
+
totalBills: zod_1.z.number(),
|
21
|
+
}),
|
22
|
+
billingNodes: zod_1.z.array(zod_1.z.object({
|
23
|
+
nodeUuid: zod_1.z.string(),
|
24
|
+
name: zod_1.z.string(),
|
25
|
+
countryCode: zod_1.z.string(),
|
26
|
+
})),
|
27
|
+
});
|
@@ -0,0 +1,22 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.InternalSquadSchema = void 0;
|
4
|
+
const zod_1 = require("zod");
|
5
|
+
const config_profile_inbounds_schema_1 = require("./config-profile-inbounds.schema");
|
6
|
+
exports.InternalSquadSchema = zod_1.z.object({
|
7
|
+
uuid: zod_1.z.string().uuid(),
|
8
|
+
name: zod_1.z.string(),
|
9
|
+
info: zod_1.z.object({
|
10
|
+
membersCount: zod_1.z.number(),
|
11
|
+
inboundsCount: zod_1.z.number(),
|
12
|
+
}),
|
13
|
+
inbounds: zod_1.z.array(config_profile_inbounds_schema_1.ConfigProfileInboundsSchema),
|
14
|
+
createdAt: zod_1.z
|
15
|
+
.string()
|
16
|
+
.datetime()
|
17
|
+
.transform((str) => new Date(str)),
|
18
|
+
updatedAt: zod_1.z
|
19
|
+
.string()
|
20
|
+
.datetime()
|
21
|
+
.transform((str) => new Date(str)),
|
22
|
+
});
|
@@ -2,7 +2,8 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.NodesSchema = void 0;
|
4
4
|
const zod_1 = require("zod");
|
5
|
-
const
|
5
|
+
const config_profile_inbounds_schema_1 = require("./config-profile-inbounds.schema");
|
6
|
+
const infra_provider_schema_1 = require("./infra-provider.schema");
|
6
7
|
exports.NodesSchema = zod_1.z.object({
|
7
8
|
uuid: zod_1.z.string().uuid(),
|
8
9
|
name: zod_1.z.string(),
|
@@ -40,5 +41,8 @@ exports.NodesSchema = zod_1.z.object({
|
|
40
41
|
.string()
|
41
42
|
.datetime()
|
42
43
|
.transform((str) => new Date(str)),
|
43
|
-
|
44
|
+
activeConfigProfileUuid: zod_1.z.nullable(zod_1.z.string().uuid()),
|
45
|
+
activeInbounds: zod_1.z.nullable(zod_1.z.array(config_profile_inbounds_schema_1.ConfigProfileInboundsSchema)),
|
46
|
+
providerUuid: zod_1.z.nullable(zod_1.z.string().uuid()),
|
47
|
+
provider: zod_1.z.nullable(infra_provider_schema_1.InfraProviderSchema),
|
44
48
|
});
|
@@ -2,11 +2,10 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.UsersSchema = void 0;
|
4
4
|
const zod_1 = require("zod");
|
5
|
+
const base_internal_squad_schema_1 = require("./base-internal-squad.schema");
|
5
6
|
const constants_1 = require("../constants");
|
6
|
-
const inbounds_schema_1 = require("./inbounds.schema");
|
7
7
|
exports.UsersSchema = zod_1.z.object({
|
8
8
|
uuid: zod_1.z.string().uuid(),
|
9
|
-
subscriptionUuid: zod_1.z.string().uuid(),
|
10
9
|
shortUuid: zod_1.z.string(),
|
11
10
|
username: zod_1.z.string(),
|
12
11
|
status: zod_1.z.nativeEnum(constants_1.USERS_STATUS).default(constants_1.USERS_STATUS.ACTIVE),
|
@@ -60,5 +59,5 @@ exports.UsersSchema = zod_1.z.object({
|
|
60
59
|
.string()
|
61
60
|
.datetime()
|
62
61
|
.transform((str) => new Date(str)),
|
63
|
-
|
62
|
+
activeInternalSquads: zod_1.z.array(base_internal_squad_schema_1.BaseInternalSquadSchema),
|
64
63
|
});
|
package/package.json
CHANGED
@@ -1,12 +0,0 @@
|
|
1
|
-
export declare const INBOUNDS_CONTROLLER: "inbounds";
|
2
|
-
export declare const INBOUNDS_ROUTES: {
|
3
|
-
readonly GET_INBOUNDS: "";
|
4
|
-
readonly GET_FULL_INBOUNDS: "full";
|
5
|
-
readonly BULK: {
|
6
|
-
readonly ADD_INBOUND_TO_USERS: "bulk/add-to-users";
|
7
|
-
readonly REMOVE_INBOUND_FROM_USERS: "bulk/remove-from-users";
|
8
|
-
readonly ADD_INBOUND_TO_NODES: "bulk/add-to-nodes";
|
9
|
-
readonly REMOVE_INBOUND_FROM_NODES: "bulk/remove-from-nodes";
|
10
|
-
};
|
11
|
-
};
|
12
|
-
//# sourceMappingURL=inbounds.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"inbounds.d.ts","sourceRoot":"","sources":["../../../../api/controllers/inbounds.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mBAAmB,EAAG,UAAmB,CAAC;AAEvD,eAAO,MAAM,eAAe;;;;;;;;;CAUlB,CAAC"}
|
@@ -1,14 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.INBOUNDS_ROUTES = exports.INBOUNDS_CONTROLLER = void 0;
|
4
|
-
exports.INBOUNDS_CONTROLLER = 'inbounds';
|
5
|
-
exports.INBOUNDS_ROUTES = {
|
6
|
-
GET_INBOUNDS: '',
|
7
|
-
GET_FULL_INBOUNDS: 'full',
|
8
|
-
BULK: {
|
9
|
-
ADD_INBOUND_TO_USERS: 'bulk/add-to-users',
|
10
|
-
REMOVE_INBOUND_FROM_USERS: 'bulk/remove-from-users',
|
11
|
-
ADD_INBOUND_TO_NODES: 'bulk/add-to-nodes',
|
12
|
-
REMOVE_INBOUND_FROM_NODES: 'bulk/remove-from-nodes',
|
13
|
-
},
|
14
|
-
};
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"xray.d.ts","sourceRoot":"","sources":["../../../../api/controllers/xray.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,EAAG,MAAe,CAAC;AAE/C,eAAO,MAAM,WAAW;;;CAGd,CAAC"}
|
@@ -1,33 +0,0 @@
|
|
1
|
-
import { z } from 'zod';
|
2
|
-
export declare namespace AddInboundToNodesCommand {
|
3
|
-
const url: "/api/inbounds/bulk/add-to-nodes";
|
4
|
-
const TSQ_url: "/api/inbounds/bulk/add-to-nodes";
|
5
|
-
const endpointDetails: import("../../../constants").EndpointDetails;
|
6
|
-
const RequestSchema: z.ZodObject<{
|
7
|
-
inboundUuid: z.ZodString;
|
8
|
-
}, "strip", z.ZodTypeAny, {
|
9
|
-
inboundUuid: string;
|
10
|
-
}, {
|
11
|
-
inboundUuid: string;
|
12
|
-
}>;
|
13
|
-
type Request = z.infer<typeof RequestSchema>;
|
14
|
-
const ResponseSchema: z.ZodObject<{
|
15
|
-
response: z.ZodObject<{
|
16
|
-
isSuccess: z.ZodBoolean;
|
17
|
-
}, "strip", z.ZodTypeAny, {
|
18
|
-
isSuccess: boolean;
|
19
|
-
}, {
|
20
|
-
isSuccess: boolean;
|
21
|
-
}>;
|
22
|
-
}, "strip", z.ZodTypeAny, {
|
23
|
-
response: {
|
24
|
-
isSuccess: boolean;
|
25
|
-
};
|
26
|
-
}, {
|
27
|
-
response: {
|
28
|
-
isSuccess: boolean;
|
29
|
-
};
|
30
|
-
}>;
|
31
|
-
type Response = z.infer<typeof ResponseSchema>;
|
32
|
-
}
|
33
|
-
//# sourceMappingURL=add-inbound-to-nodes.command.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"add-inbound-to-nodes.command.d.ts","sourceRoot":"","sources":["../../../../../commands/inbounds/bulk/add-inbound-to-nodes.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,wBAAwB,CAAC;IAC/B,MAAM,GAAG,mCAA8C,CAAC;IACxD,MAAM,OAAO,mCAAM,CAAC;IAEpB,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAMxB,CAAC;IACH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
@@ -1,24 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.AddInboundToNodesCommand = void 0;
|
4
|
-
const zod_1 = require("zod");
|
5
|
-
const api_1 = require("../../../api");
|
6
|
-
const constants_1 = require("../../../constants");
|
7
|
-
var AddInboundToNodesCommand;
|
8
|
-
(function (AddInboundToNodesCommand) {
|
9
|
-
AddInboundToNodesCommand.url = api_1.REST_API.INBOUNDS.BULK.ADD_INBOUND_TO_NODES;
|
10
|
-
AddInboundToNodesCommand.TSQ_url = AddInboundToNodesCommand.url;
|
11
|
-
AddInboundToNodesCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INBOUNDS_ROUTES.BULK.ADD_INBOUND_TO_NODES, 'post', 'Add inbound to nodes');
|
12
|
-
AddInboundToNodesCommand.RequestSchema = zod_1.z.object({
|
13
|
-
inboundUuid: zod_1.z
|
14
|
-
.string({
|
15
|
-
invalid_type_error: 'Inbound UUID must be a string',
|
16
|
-
})
|
17
|
-
.uuid('Inbound UUID must be a valid UUID'),
|
18
|
-
});
|
19
|
-
AddInboundToNodesCommand.ResponseSchema = zod_1.z.object({
|
20
|
-
response: zod_1.z.object({
|
21
|
-
isSuccess: zod_1.z.boolean(),
|
22
|
-
}),
|
23
|
-
});
|
24
|
-
})(AddInboundToNodesCommand || (exports.AddInboundToNodesCommand = AddInboundToNodesCommand = {}));
|
@@ -1,33 +0,0 @@
|
|
1
|
-
import { z } from 'zod';
|
2
|
-
export declare namespace AddInboundToUsersCommand {
|
3
|
-
const url: "/api/inbounds/bulk/add-to-users";
|
4
|
-
const TSQ_url: "/api/inbounds/bulk/add-to-users";
|
5
|
-
const endpointDetails: import("../../../constants").EndpointDetails;
|
6
|
-
const RequestSchema: z.ZodObject<{
|
7
|
-
inboundUuid: z.ZodString;
|
8
|
-
}, "strip", z.ZodTypeAny, {
|
9
|
-
inboundUuid: string;
|
10
|
-
}, {
|
11
|
-
inboundUuid: string;
|
12
|
-
}>;
|
13
|
-
type Request = z.infer<typeof RequestSchema>;
|
14
|
-
const ResponseSchema: z.ZodObject<{
|
15
|
-
response: z.ZodObject<{
|
16
|
-
isSuccess: z.ZodBoolean;
|
17
|
-
}, "strip", z.ZodTypeAny, {
|
18
|
-
isSuccess: boolean;
|
19
|
-
}, {
|
20
|
-
isSuccess: boolean;
|
21
|
-
}>;
|
22
|
-
}, "strip", z.ZodTypeAny, {
|
23
|
-
response: {
|
24
|
-
isSuccess: boolean;
|
25
|
-
};
|
26
|
-
}, {
|
27
|
-
response: {
|
28
|
-
isSuccess: boolean;
|
29
|
-
};
|
30
|
-
}>;
|
31
|
-
type Response = z.infer<typeof ResponseSchema>;
|
32
|
-
}
|
33
|
-
//# sourceMappingURL=add-inbound-to-users.command.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"add-inbound-to-users.command.d.ts","sourceRoot":"","sources":["../../../../../commands/inbounds/bulk/add-inbound-to-users.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,wBAAwB,CAAC;IAC/B,MAAM,GAAG,mCAA8C,CAAC;IACxD,MAAM,OAAO,mCAAM,CAAC;IAEpB,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAMxB,CAAC;IACH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
@@ -1,24 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.AddInboundToUsersCommand = void 0;
|
4
|
-
const zod_1 = require("zod");
|
5
|
-
const api_1 = require("../../../api");
|
6
|
-
const constants_1 = require("../../../constants");
|
7
|
-
var AddInboundToUsersCommand;
|
8
|
-
(function (AddInboundToUsersCommand) {
|
9
|
-
AddInboundToUsersCommand.url = api_1.REST_API.INBOUNDS.BULK.ADD_INBOUND_TO_USERS;
|
10
|
-
AddInboundToUsersCommand.TSQ_url = AddInboundToUsersCommand.url;
|
11
|
-
AddInboundToUsersCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INBOUNDS_ROUTES.BULK.ADD_INBOUND_TO_USERS, 'post', 'Add inbound to users');
|
12
|
-
AddInboundToUsersCommand.RequestSchema = zod_1.z.object({
|
13
|
-
inboundUuid: zod_1.z
|
14
|
-
.string({
|
15
|
-
invalid_type_error: 'Inbound UUID must be a string',
|
16
|
-
})
|
17
|
-
.uuid('Inbound UUID must be a valid UUID'),
|
18
|
-
});
|
19
|
-
AddInboundToUsersCommand.ResponseSchema = zod_1.z.object({
|
20
|
-
response: zod_1.z.object({
|
21
|
-
isSuccess: zod_1.z.boolean(),
|
22
|
-
}),
|
23
|
-
});
|
24
|
-
})(AddInboundToUsersCommand || (exports.AddInboundToUsersCommand = AddInboundToUsersCommand = {}));
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../commands/inbounds/bulk/index.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qCAAqC,CAAC;AACpD,cAAc,qCAAqC,CAAC"}
|
@@ -1,33 +0,0 @@
|
|
1
|
-
import { z } from 'zod';
|
2
|
-
export declare namespace RemoveInboundFromNodesCommand {
|
3
|
-
const url: "/api/inbounds/bulk/remove-from-nodes";
|
4
|
-
const TSQ_url: "/api/inbounds/bulk/remove-from-nodes";
|
5
|
-
const endpointDetails: import("../../../constants").EndpointDetails;
|
6
|
-
const RequestSchema: z.ZodObject<{
|
7
|
-
inboundUuid: z.ZodString;
|
8
|
-
}, "strip", z.ZodTypeAny, {
|
9
|
-
inboundUuid: string;
|
10
|
-
}, {
|
11
|
-
inboundUuid: string;
|
12
|
-
}>;
|
13
|
-
type Request = z.infer<typeof RequestSchema>;
|
14
|
-
const ResponseSchema: z.ZodObject<{
|
15
|
-
response: z.ZodObject<{
|
16
|
-
isSuccess: z.ZodBoolean;
|
17
|
-
}, "strip", z.ZodTypeAny, {
|
18
|
-
isSuccess: boolean;
|
19
|
-
}, {
|
20
|
-
isSuccess: boolean;
|
21
|
-
}>;
|
22
|
-
}, "strip", z.ZodTypeAny, {
|
23
|
-
response: {
|
24
|
-
isSuccess: boolean;
|
25
|
-
};
|
26
|
-
}, {
|
27
|
-
response: {
|
28
|
-
isSuccess: boolean;
|
29
|
-
};
|
30
|
-
}>;
|
31
|
-
type Response = z.infer<typeof ResponseSchema>;
|
32
|
-
}
|
33
|
-
//# sourceMappingURL=remove-inbound-from-nodes.command.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"remove-inbound-from-nodes.command.d.ts","sourceRoot":"","sources":["../../../../../commands/inbounds/bulk/remove-inbound-from-nodes.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,yBAAiB,6BAA6B,CAAC;IACpC,MAAM,GAAG,wCAAmD,CAAC;IAC7D,MAAM,OAAO,wCAAM,CAAC;IAEpB,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAMxB,CAAC;IACH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
@@ -1,24 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.RemoveInboundFromNodesCommand = void 0;
|
4
|
-
const zod_1 = require("zod");
|
5
|
-
const api_1 = require("../../../api");
|
6
|
-
const constants_1 = require("../../../constants");
|
7
|
-
var RemoveInboundFromNodesCommand;
|
8
|
-
(function (RemoveInboundFromNodesCommand) {
|
9
|
-
RemoveInboundFromNodesCommand.url = api_1.REST_API.INBOUNDS.BULK.REMOVE_INBOUND_FROM_NODES;
|
10
|
-
RemoveInboundFromNodesCommand.TSQ_url = RemoveInboundFromNodesCommand.url;
|
11
|
-
RemoveInboundFromNodesCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INBOUNDS_ROUTES.BULK.REMOVE_INBOUND_FROM_NODES, 'post', 'Remove inbound from nodes');
|
12
|
-
RemoveInboundFromNodesCommand.RequestSchema = zod_1.z.object({
|
13
|
-
inboundUuid: zod_1.z
|
14
|
-
.string({
|
15
|
-
invalid_type_error: 'Inbound UUID must be a string',
|
16
|
-
})
|
17
|
-
.uuid('Inbound UUID must be a valid UUID'),
|
18
|
-
});
|
19
|
-
RemoveInboundFromNodesCommand.ResponseSchema = zod_1.z.object({
|
20
|
-
response: zod_1.z.object({
|
21
|
-
isSuccess: zod_1.z.boolean(),
|
22
|
-
}),
|
23
|
-
});
|
24
|
-
})(RemoveInboundFromNodesCommand || (exports.RemoveInboundFromNodesCommand = RemoveInboundFromNodesCommand = {}));
|
@@ -1,33 +0,0 @@
|
|
1
|
-
import { z } from 'zod';
|
2
|
-
export declare namespace RemoveInboundFromUsersCommand {
|
3
|
-
const url: "/api/inbounds/bulk/remove-from-users";
|
4
|
-
const TSQ_url: "/api/inbounds/bulk/remove-from-users";
|
5
|
-
const endpointDetails: import("../../../constants").EndpointDetails;
|
6
|
-
const RequestSchema: z.ZodObject<{
|
7
|
-
inboundUuid: z.ZodString;
|
8
|
-
}, "strip", z.ZodTypeAny, {
|
9
|
-
inboundUuid: string;
|
10
|
-
}, {
|
11
|
-
inboundUuid: string;
|
12
|
-
}>;
|
13
|
-
type Request = z.infer<typeof RequestSchema>;
|
14
|
-
const ResponseSchema: z.ZodObject<{
|
15
|
-
response: z.ZodObject<{
|
16
|
-
isSuccess: z.ZodBoolean;
|
17
|
-
}, "strip", z.ZodTypeAny, {
|
18
|
-
isSuccess: boolean;
|
19
|
-
}, {
|
20
|
-
isSuccess: boolean;
|
21
|
-
}>;
|
22
|
-
}, "strip", z.ZodTypeAny, {
|
23
|
-
response: {
|
24
|
-
isSuccess: boolean;
|
25
|
-
};
|
26
|
-
}, {
|
27
|
-
response: {
|
28
|
-
isSuccess: boolean;
|
29
|
-
};
|
30
|
-
}>;
|
31
|
-
type Response = z.infer<typeof ResponseSchema>;
|
32
|
-
}
|
33
|
-
//# sourceMappingURL=remove-inbound-from-users.command.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"remove-inbound-from-users.command.d.ts","sourceRoot":"","sources":["../../../../../commands/inbounds/bulk/remove-inbound-from-users.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,6BAA6B,CAAC;IACpC,MAAM,GAAG,wCAAmD,CAAC;IAC7D,MAAM,OAAO,wCAAM,CAAC;IAEpB,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAMxB,CAAC;IACH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
@@ -1,24 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.RemoveInboundFromUsersCommand = void 0;
|
4
|
-
const zod_1 = require("zod");
|
5
|
-
const api_1 = require("../../../api");
|
6
|
-
const constants_1 = require("../../../constants");
|
7
|
-
var RemoveInboundFromUsersCommand;
|
8
|
-
(function (RemoveInboundFromUsersCommand) {
|
9
|
-
RemoveInboundFromUsersCommand.url = api_1.REST_API.INBOUNDS.BULK.REMOVE_INBOUND_FROM_USERS;
|
10
|
-
RemoveInboundFromUsersCommand.TSQ_url = RemoveInboundFromUsersCommand.url;
|
11
|
-
RemoveInboundFromUsersCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.INBOUNDS_ROUTES.BULK.REMOVE_INBOUND_FROM_USERS, 'post', 'Remove inbound from users');
|
12
|
-
RemoveInboundFromUsersCommand.RequestSchema = zod_1.z.object({
|
13
|
-
inboundUuid: zod_1.z
|
14
|
-
.string({
|
15
|
-
invalid_type_error: 'Inbound UUID must be a string',
|
16
|
-
})
|
17
|
-
.uuid('Inbound UUID must be a valid UUID'),
|
18
|
-
});
|
19
|
-
RemoveInboundFromUsersCommand.ResponseSchema = zod_1.z.object({
|
20
|
-
response: zod_1.z.object({
|
21
|
-
isSuccess: zod_1.z.boolean(),
|
22
|
-
}),
|
23
|
-
});
|
24
|
-
})(RemoveInboundFromUsersCommand || (exports.RemoveInboundFromUsersCommand = RemoveInboundFromUsersCommand = {}));
|