@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 @@
|
|
1
|
+
{"version":3,"file":"base-internal-squad.schema.d.ts","sourceRoot":"","sources":["../../../models/base-internal-squad.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,uBAAuB;;;;;;;;;EAGlC,CAAC"}
|
@@ -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,21 +1,30 @@
|
|
1
1
|
import { z } from 'zod';
|
2
|
-
export declare const
|
2
|
+
export declare const ConfigProfileInboundsSchema: z.ZodObject<{
|
3
3
|
uuid: z.ZodString;
|
4
|
+
profileUuid: z.ZodString;
|
4
5
|
tag: z.ZodString;
|
5
6
|
type: z.ZodString;
|
6
7
|
network: z.ZodNullable<z.ZodString>;
|
7
8
|
security: z.ZodNullable<z.ZodString>;
|
9
|
+
port: z.ZodNullable<z.ZodNumber>;
|
10
|
+
rawInbound: z.ZodNullable<z.ZodUnknown>;
|
8
11
|
}, "strip", z.ZodTypeAny, {
|
9
12
|
type: string;
|
10
13
|
uuid: string;
|
14
|
+
profileUuid: string;
|
11
15
|
tag: string;
|
12
16
|
network: string | null;
|
13
17
|
security: string | null;
|
18
|
+
port: number | null;
|
19
|
+
rawInbound?: unknown;
|
14
20
|
}, {
|
15
21
|
type: string;
|
16
22
|
uuid: string;
|
23
|
+
profileUuid: string;
|
17
24
|
tag: string;
|
18
25
|
network: string | null;
|
19
26
|
security: string | null;
|
27
|
+
port: number | null;
|
28
|
+
rawInbound?: unknown;
|
20
29
|
}>;
|
21
|
-
//# sourceMappingURL=inbounds.schema.d.ts.map
|
30
|
+
//# sourceMappingURL=config-profile-inbounds.schema.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"config-profile-inbounds.schema.d.ts","sourceRoot":"","sources":["../../../models/config-profile-inbounds.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUtC,CAAC"}
|
@@ -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,92 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare const ConfigProfileSchema: z.ZodObject<{
|
3
|
+
uuid: z.ZodString;
|
4
|
+
name: z.ZodString;
|
5
|
+
config: z.ZodUnknown;
|
6
|
+
inbounds: z.ZodArray<z.ZodObject<{
|
7
|
+
uuid: z.ZodString;
|
8
|
+
profileUuid: z.ZodString;
|
9
|
+
tag: z.ZodString;
|
10
|
+
type: z.ZodString;
|
11
|
+
network: z.ZodNullable<z.ZodString>;
|
12
|
+
security: z.ZodNullable<z.ZodString>;
|
13
|
+
port: z.ZodNullable<z.ZodNumber>;
|
14
|
+
rawInbound: z.ZodNullable<z.ZodUnknown>;
|
15
|
+
}, "strip", z.ZodTypeAny, {
|
16
|
+
type: string;
|
17
|
+
uuid: string;
|
18
|
+
profileUuid: string;
|
19
|
+
tag: string;
|
20
|
+
network: string | null;
|
21
|
+
security: string | null;
|
22
|
+
port: number | null;
|
23
|
+
rawInbound?: unknown;
|
24
|
+
}, {
|
25
|
+
type: string;
|
26
|
+
uuid: string;
|
27
|
+
profileUuid: string;
|
28
|
+
tag: string;
|
29
|
+
network: string | null;
|
30
|
+
security: string | null;
|
31
|
+
port: number | null;
|
32
|
+
rawInbound?: unknown;
|
33
|
+
}>, "many">;
|
34
|
+
nodes: z.ZodArray<z.ZodObject<{
|
35
|
+
uuid: z.ZodString;
|
36
|
+
name: z.ZodString;
|
37
|
+
countryCode: z.ZodString;
|
38
|
+
}, "strip", z.ZodTypeAny, {
|
39
|
+
uuid: string;
|
40
|
+
name: string;
|
41
|
+
countryCode: string;
|
42
|
+
}, {
|
43
|
+
uuid: string;
|
44
|
+
name: string;
|
45
|
+
countryCode: string;
|
46
|
+
}>, "many">;
|
47
|
+
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
48
|
+
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
49
|
+
}, "strip", z.ZodTypeAny, {
|
50
|
+
inbounds: {
|
51
|
+
type: string;
|
52
|
+
uuid: string;
|
53
|
+
profileUuid: string;
|
54
|
+
tag: string;
|
55
|
+
network: string | null;
|
56
|
+
security: string | null;
|
57
|
+
port: number | null;
|
58
|
+
rawInbound?: unknown;
|
59
|
+
}[];
|
60
|
+
nodes: {
|
61
|
+
uuid: string;
|
62
|
+
name: string;
|
63
|
+
countryCode: string;
|
64
|
+
}[];
|
65
|
+
uuid: string;
|
66
|
+
createdAt: Date;
|
67
|
+
updatedAt: Date;
|
68
|
+
name: string;
|
69
|
+
config?: unknown;
|
70
|
+
}, {
|
71
|
+
inbounds: {
|
72
|
+
type: string;
|
73
|
+
uuid: string;
|
74
|
+
profileUuid: string;
|
75
|
+
tag: string;
|
76
|
+
network: string | null;
|
77
|
+
security: string | null;
|
78
|
+
port: number | null;
|
79
|
+
rawInbound?: unknown;
|
80
|
+
}[];
|
81
|
+
nodes: {
|
82
|
+
uuid: string;
|
83
|
+
name: string;
|
84
|
+
countryCode: string;
|
85
|
+
}[];
|
86
|
+
uuid: string;
|
87
|
+
createdAt: string;
|
88
|
+
updatedAt: string;
|
89
|
+
name: string;
|
90
|
+
config?: unknown;
|
91
|
+
}>;
|
92
|
+
//# sourceMappingURL=config-profile.schema.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"config-profile.schema.d.ts","sourceRoot":"","sources":["../../../models/config-profile.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqB9B,CAAC"}
|
@@ -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
|
+
});
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import { z } from 'zod';
|
2
2
|
export declare const ExtendedUsersSchema: z.ZodObject<{
|
3
3
|
uuid: z.ZodString;
|
4
|
-
subscriptionUuid: z.ZodString;
|
5
4
|
shortUuid: z.ZodString;
|
6
5
|
username: z.ZodString;
|
7
6
|
status: z.ZodDefault<z.ZodNativeEnum<{
|
@@ -37,24 +36,15 @@ export declare const ExtendedUsersSchema: z.ZodObject<{
|
|
37
36
|
lastTriggeredThreshold: z.ZodDefault<z.ZodNumber>;
|
38
37
|
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
39
38
|
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
40
|
-
|
39
|
+
activeInternalSquads: z.ZodArray<z.ZodObject<{
|
41
40
|
uuid: z.ZodString;
|
42
|
-
|
43
|
-
type: z.ZodString;
|
44
|
-
network: z.ZodNullable<z.ZodString>;
|
45
|
-
security: z.ZodNullable<z.ZodString>;
|
41
|
+
name: z.ZodString;
|
46
42
|
}, "strip", z.ZodTypeAny, {
|
47
|
-
type: string;
|
48
43
|
uuid: string;
|
49
|
-
|
50
|
-
network: string | null;
|
51
|
-
security: string | null;
|
44
|
+
name: string;
|
52
45
|
}, {
|
53
|
-
type: string;
|
54
46
|
uuid: string;
|
55
|
-
|
56
|
-
network: string | null;
|
57
|
-
security: string | null;
|
47
|
+
name: string;
|
58
48
|
}>, "many">;
|
59
49
|
} & {
|
60
50
|
subscriptionUrl: z.ZodString;
|
@@ -82,7 +72,6 @@ export declare const ExtendedUsersSchema: z.ZodObject<{
|
|
82
72
|
updatedAt: Date;
|
83
73
|
username: string;
|
84
74
|
tag: string | null;
|
85
|
-
subscriptionUuid: string;
|
86
75
|
shortUuid: string;
|
87
76
|
usedTrafficBytes: number;
|
88
77
|
lifetimeUsedTrafficBytes: number;
|
@@ -103,12 +92,9 @@ export declare const ExtendedUsersSchema: z.ZodObject<{
|
|
103
92
|
hwidDeviceLimit: number | null;
|
104
93
|
firstConnectedAt: Date | null;
|
105
94
|
lastTriggeredThreshold: number;
|
106
|
-
|
107
|
-
type: string;
|
95
|
+
activeInternalSquads: {
|
108
96
|
uuid: string;
|
109
|
-
|
110
|
-
network: string | null;
|
111
|
-
security: string | null;
|
97
|
+
name: string;
|
112
98
|
}[];
|
113
99
|
subscriptionUrl: string;
|
114
100
|
lastConnectedNode: {
|
@@ -124,7 +110,6 @@ export declare const ExtendedUsersSchema: z.ZodObject<{
|
|
124
110
|
updatedAt: string;
|
125
111
|
username: string;
|
126
112
|
tag: string | null;
|
127
|
-
subscriptionUuid: string;
|
128
113
|
shortUuid: string;
|
129
114
|
usedTrafficBytes: number;
|
130
115
|
lifetimeUsedTrafficBytes: number;
|
@@ -142,12 +127,9 @@ export declare const ExtendedUsersSchema: z.ZodObject<{
|
|
142
127
|
email: string | null;
|
143
128
|
hwidDeviceLimit: number | null;
|
144
129
|
firstConnectedAt: string | null;
|
145
|
-
|
146
|
-
type: string;
|
130
|
+
activeInternalSquads: {
|
147
131
|
uuid: string;
|
148
|
-
|
149
|
-
network: string | null;
|
150
|
-
security: string | null;
|
132
|
+
name: string;
|
151
133
|
}[];
|
152
134
|
subscriptionUrl: string;
|
153
135
|
lastConnectedNode: {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"extented-users.schema.d.ts","sourceRoot":"","sources":["../../../models/extented-users.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,mBAAmB
|
1
|
+
{"version":3,"file":"extented-users.schema.d.ts","sourceRoot":"","sources":["../../../models/extented-users.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI9B,CAAC"}
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import { z } from 'zod';
|
2
2
|
export declare const HostsSchema: z.ZodObject<{
|
3
3
|
uuid: z.ZodString;
|
4
|
-
inboundUuid: z.ZodString;
|
5
4
|
viewPosition: z.ZodNumber;
|
6
5
|
remark: z.ZodString;
|
7
6
|
address: z.ZodString;
|
@@ -11,7 +10,6 @@ export declare const HostsSchema: z.ZodObject<{
|
|
11
10
|
host: z.ZodNullable<z.ZodString>;
|
12
11
|
alpn: z.ZodNullable<z.ZodString>;
|
13
12
|
fingerprint: z.ZodNullable<z.ZodString>;
|
14
|
-
allowInsecure: z.ZodDefault<z.ZodBoolean>;
|
15
13
|
isDisabled: z.ZodDefault<z.ZodBoolean>;
|
16
14
|
securityLayer: z.ZodDefault<z.ZodNativeEnum<{
|
17
15
|
readonly DEFAULT: "DEFAULT";
|
@@ -19,11 +17,12 @@ export declare const HostsSchema: z.ZodObject<{
|
|
19
17
|
readonly NONE: "NONE";
|
20
18
|
}>>;
|
21
19
|
xHttpExtraParams: z.ZodNullable<z.ZodUnknown>;
|
20
|
+
configProfileUuid: z.ZodNullable<z.ZodString>;
|
21
|
+
configProfileInboundUuid: z.ZodNullable<z.ZodString>;
|
22
22
|
}, "strip", z.ZodTypeAny, {
|
23
23
|
path: string | null;
|
24
24
|
uuid: string;
|
25
25
|
port: number;
|
26
|
-
inboundUuid: string;
|
27
26
|
viewPosition: number;
|
28
27
|
remark: string;
|
29
28
|
address: string;
|
@@ -31,15 +30,15 @@ export declare const HostsSchema: z.ZodObject<{
|
|
31
30
|
host: string | null;
|
32
31
|
alpn: string | null;
|
33
32
|
fingerprint: string | null;
|
34
|
-
allowInsecure: boolean;
|
35
33
|
isDisabled: boolean;
|
36
34
|
securityLayer: "DEFAULT" | "TLS" | "NONE";
|
35
|
+
configProfileUuid: string | null;
|
36
|
+
configProfileInboundUuid: string | null;
|
37
37
|
xHttpExtraParams?: unknown;
|
38
38
|
}, {
|
39
39
|
path: string | null;
|
40
40
|
uuid: string;
|
41
41
|
port: number;
|
42
|
-
inboundUuid: string;
|
43
42
|
viewPosition: number;
|
44
43
|
remark: string;
|
45
44
|
address: string;
|
@@ -47,7 +46,8 @@ export declare const HostsSchema: z.ZodObject<{
|
|
47
46
|
host: string | null;
|
48
47
|
alpn: string | null;
|
49
48
|
fingerprint: string | null;
|
50
|
-
|
49
|
+
configProfileUuid: string | null;
|
50
|
+
configProfileInboundUuid: string | null;
|
51
51
|
isDisabled?: boolean | undefined;
|
52
52
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
53
53
|
xHttpExtraParams?: unknown;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"hosts.schema.d.ts","sourceRoot":"","sources":["../../../models/hosts.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
1
|
+
{"version":3,"file":"hosts.schema.d.ts","sourceRoot":"","sources":["../../../models/hosts.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiBtB,CAAC"}
|
@@ -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
|
});
|
@@ -1,12 +1,15 @@
|
|
1
1
|
export * from './api-tokens.schema';
|
2
2
|
export * from './auth.schema';
|
3
|
+
export * from './base-internal-squad.schema';
|
3
4
|
export * from './base-stat.schema';
|
5
|
+
export * from './config-profile-inbounds.schema';
|
6
|
+
export * from './config-profile.schema';
|
4
7
|
export * from './extented-users.schema';
|
5
|
-
export * from './full-inbounds.schema';
|
6
8
|
export * from './happ.schema';
|
7
9
|
export * from './hosts.schema';
|
8
10
|
export * from './hwid-user-device.schema';
|
9
|
-
export * from './
|
11
|
+
export * from './infra-provider.schema';
|
12
|
+
export * from './internal-squad.schema';
|
10
13
|
export * from './last-connected-node.schema';
|
11
14
|
export * from './nodes.schema';
|
12
15
|
export * from './subscription-settings.schema';
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../models/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../models/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,CAAC;AACnC,cAAc,kCAAkC,CAAC;AACjD,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gBAAgB,CAAC"}
|
@@ -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,65 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare const InfraProviderSchema: z.ZodObject<{
|
3
|
+
uuid: z.ZodString;
|
4
|
+
name: z.ZodString;
|
5
|
+
faviconLink: z.ZodNullable<z.ZodString>;
|
6
|
+
loginUrl: z.ZodNullable<z.ZodString>;
|
7
|
+
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
8
|
+
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
9
|
+
billingHistory: z.ZodObject<{
|
10
|
+
totalAmount: z.ZodNumber;
|
11
|
+
totalBills: z.ZodNumber;
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
13
|
+
totalAmount: number;
|
14
|
+
totalBills: number;
|
15
|
+
}, {
|
16
|
+
totalAmount: number;
|
17
|
+
totalBills: number;
|
18
|
+
}>;
|
19
|
+
billingNodes: z.ZodArray<z.ZodObject<{
|
20
|
+
nodeUuid: z.ZodString;
|
21
|
+
name: z.ZodString;
|
22
|
+
countryCode: z.ZodString;
|
23
|
+
}, "strip", z.ZodTypeAny, {
|
24
|
+
name: string;
|
25
|
+
countryCode: string;
|
26
|
+
nodeUuid: string;
|
27
|
+
}, {
|
28
|
+
name: string;
|
29
|
+
countryCode: string;
|
30
|
+
nodeUuid: string;
|
31
|
+
}>, "many">;
|
32
|
+
}, "strip", z.ZodTypeAny, {
|
33
|
+
uuid: string;
|
34
|
+
createdAt: Date;
|
35
|
+
updatedAt: Date;
|
36
|
+
name: string;
|
37
|
+
faviconLink: string | null;
|
38
|
+
loginUrl: string | null;
|
39
|
+
billingHistory: {
|
40
|
+
totalAmount: number;
|
41
|
+
totalBills: number;
|
42
|
+
};
|
43
|
+
billingNodes: {
|
44
|
+
name: string;
|
45
|
+
countryCode: string;
|
46
|
+
nodeUuid: string;
|
47
|
+
}[];
|
48
|
+
}, {
|
49
|
+
uuid: string;
|
50
|
+
createdAt: string;
|
51
|
+
updatedAt: string;
|
52
|
+
name: string;
|
53
|
+
faviconLink: string | null;
|
54
|
+
loginUrl: string | null;
|
55
|
+
billingHistory: {
|
56
|
+
totalAmount: number;
|
57
|
+
totalBills: number;
|
58
|
+
};
|
59
|
+
billingNodes: {
|
60
|
+
name: string;
|
61
|
+
countryCode: string;
|
62
|
+
nodeUuid: string;
|
63
|
+
}[];
|
64
|
+
}>;
|
65
|
+
//# sourceMappingURL=infra-provider.schema.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"infra-provider.schema.d.ts","sourceRoot":"","sources":["../../../models/infra-provider.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0B9B,CAAC"}
|
@@ -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,84 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare const InternalSquadSchema: z.ZodObject<{
|
3
|
+
uuid: z.ZodString;
|
4
|
+
name: z.ZodString;
|
5
|
+
info: z.ZodObject<{
|
6
|
+
membersCount: z.ZodNumber;
|
7
|
+
inboundsCount: z.ZodNumber;
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
9
|
+
membersCount: number;
|
10
|
+
inboundsCount: number;
|
11
|
+
}, {
|
12
|
+
membersCount: number;
|
13
|
+
inboundsCount: number;
|
14
|
+
}>;
|
15
|
+
inbounds: z.ZodArray<z.ZodObject<{
|
16
|
+
uuid: z.ZodString;
|
17
|
+
profileUuid: z.ZodString;
|
18
|
+
tag: z.ZodString;
|
19
|
+
type: z.ZodString;
|
20
|
+
network: z.ZodNullable<z.ZodString>;
|
21
|
+
security: z.ZodNullable<z.ZodString>;
|
22
|
+
port: z.ZodNullable<z.ZodNumber>;
|
23
|
+
rawInbound: z.ZodNullable<z.ZodUnknown>;
|
24
|
+
}, "strip", z.ZodTypeAny, {
|
25
|
+
type: string;
|
26
|
+
uuid: string;
|
27
|
+
profileUuid: string;
|
28
|
+
tag: string;
|
29
|
+
network: string | null;
|
30
|
+
security: string | null;
|
31
|
+
port: number | null;
|
32
|
+
rawInbound?: unknown;
|
33
|
+
}, {
|
34
|
+
type: string;
|
35
|
+
uuid: string;
|
36
|
+
profileUuid: string;
|
37
|
+
tag: string;
|
38
|
+
network: string | null;
|
39
|
+
security: string | null;
|
40
|
+
port: number | null;
|
41
|
+
rawInbound?: unknown;
|
42
|
+
}>, "many">;
|
43
|
+
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
44
|
+
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
45
|
+
}, "strip", z.ZodTypeAny, {
|
46
|
+
inbounds: {
|
47
|
+
type: string;
|
48
|
+
uuid: string;
|
49
|
+
profileUuid: string;
|
50
|
+
tag: string;
|
51
|
+
network: string | null;
|
52
|
+
security: string | null;
|
53
|
+
port: number | null;
|
54
|
+
rawInbound?: unknown;
|
55
|
+
}[];
|
56
|
+
uuid: string;
|
57
|
+
createdAt: Date;
|
58
|
+
updatedAt: Date;
|
59
|
+
name: string;
|
60
|
+
info: {
|
61
|
+
membersCount: number;
|
62
|
+
inboundsCount: number;
|
63
|
+
};
|
64
|
+
}, {
|
65
|
+
inbounds: {
|
66
|
+
type: string;
|
67
|
+
uuid: string;
|
68
|
+
profileUuid: string;
|
69
|
+
tag: string;
|
70
|
+
network: string | null;
|
71
|
+
security: string | null;
|
72
|
+
port: number | null;
|
73
|
+
rawInbound?: unknown;
|
74
|
+
}[];
|
75
|
+
uuid: string;
|
76
|
+
createdAt: string;
|
77
|
+
updatedAt: string;
|
78
|
+
name: string;
|
79
|
+
info: {
|
80
|
+
membersCount: number;
|
81
|
+
inboundsCount: number;
|
82
|
+
};
|
83
|
+
}>;
|
84
|
+
//# sourceMappingURL=internal-squad.schema.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"internal-squad.schema.d.ts","sourceRoot":"","sources":["../../../models/internal-squad.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmB9B,CAAC"}
|
@@ -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
|
+
});
|