@remnawave/backend-contract 2.8.27 → 2.8.29
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/users.d.ts +1 -0
- package/build/backend/api/controllers/users.d.ts.map +1 -1
- package/build/backend/api/controllers/users.js +1 -0
- package/build/backend/api/routes.d.ts +1 -0
- package/build/backend/api/routes.d.ts.map +1 -1
- package/build/backend/api/routes.js +1 -0
- package/build/backend/commands/api-tokens/create.command.js +1 -1
- package/build/backend/commands/api-tokens/find.command.js +1 -1
- package/build/backend/commands/auth/get-status.command.js +1 -1
- package/build/backend/commands/auth/login.command.js +1 -1
- package/build/backend/commands/auth/oauth2/authorize.command.js +1 -1
- package/build/backend/commands/auth/oauth2/callback.command.js +1 -1
- package/build/backend/commands/auth/passkey/get-authentication-options.command.js +1 -1
- package/build/backend/commands/auth/passkey/verify-authentication.command.js +1 -1
- package/build/backend/commands/auth/register.command.js +1 -1
- package/build/backend/commands/config-profiles/get-all-inbounds.command.js +1 -1
- package/build/backend/commands/config-profiles/get-inbounds-by-profile-uuid.command.js +1 -1
- package/build/backend/commands/external-squads/update-external-squad.command.js +2 -2
- package/build/backend/commands/hosts/bulk/delete-many-hosts.command.js +1 -1
- package/build/backend/commands/hosts/bulk/disable-many-hosts.command.js +1 -1
- package/build/backend/commands/hosts/bulk/enable-many-hosts.command.js +1 -1
- package/build/backend/commands/hosts/bulk/update-many-hosts.command.js +2 -2
- package/build/backend/commands/hosts/create.command.js +1 -1
- package/build/backend/commands/hosts/delete.command.js +1 -1
- package/build/backend/commands/hosts/get-all.command.js +1 -1
- package/build/backend/commands/hosts/get-one.command.js +1 -1
- package/build/backend/commands/hosts/reorder.command.js +1 -1
- package/build/backend/commands/hosts/tags/get-all-host-tags.command.js +1 -1
- package/build/backend/commands/hosts/update.command.js +1 -1
- package/build/backend/commands/hwid/create-user-hwid-device.command.js +1 -1
- package/build/backend/commands/hwid/delete-all-user-hwid-devices.command.js +1 -1
- package/build/backend/commands/hwid/delete-user-hwid-device.command.js +1 -1
- package/build/backend/commands/hwid/get-all-hwid-devices.command.js +2 -2
- package/build/backend/commands/hwid/get-hwid-devices-stats.command.js +1 -1
- package/build/backend/commands/hwid/get-top-users-by-hwid-devices.command.js +1 -1
- package/build/backend/commands/hwid/get-user-hwid-devices.command.js +1 -1
- package/build/backend/commands/infra-billing/create-bill-record.command.js +1 -1
- package/build/backend/commands/infra-billing/create-billing-node.command.d.ts +18 -18
- package/build/backend/commands/infra-billing/create-billing-node.command.js +1 -1
- package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.js +1 -1
- package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts +18 -18
- package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.js +1 -1
- package/build/backend/commands/infra-billing/get-bill-records.command.js +1 -1
- package/build/backend/commands/infra-billing/get-billing-nodes.command.d.ts +18 -18
- package/build/backend/commands/infra-billing/get-billing-nodes.command.js +1 -1
- package/build/backend/commands/infra-billing/update-billing-node.command.d.ts +18 -18
- package/build/backend/commands/infra-billing/update-billing-node.command.js +1 -1
- package/build/backend/commands/keygen/get-pubkey.command.js +1 -1
- package/build/backend/commands/node-plugins/torrent-blocker/get-torrent-blocker-reports.command.d.ts +6 -6
- package/build/backend/commands/node-plugins/torrent-blocker/get-torrent-blocker-reports.command.js +1 -1
- package/build/backend/commands/node-plugins/torrent-blocker/truncate-torrent-blocker-reports.command.d.ts +6 -6
- package/build/backend/commands/node-plugins/torrent-blocker/truncate-torrent-blocker-reports.command.js +1 -1
- package/build/backend/commands/nodes/actions/disable.command.js +1 -1
- package/build/backend/commands/nodes/actions/enable.command.js +1 -1
- package/build/backend/commands/nodes/actions/reorder.command.js +1 -1
- package/build/backend/commands/nodes/actions/reset-traffic.command.js +1 -1
- package/build/backend/commands/nodes/actions/restart-all.command.js +1 -1
- package/build/backend/commands/nodes/actions/restart.command.js +1 -1
- package/build/backend/commands/nodes/bulk-actions/actions.command.js +1 -1
- package/build/backend/commands/nodes/bulk-actions/bulk-update.command.js +1 -1
- package/build/backend/commands/nodes/bulk-actions/profile-modification.command.js +1 -1
- package/build/backend/commands/nodes/create.command.js +1 -1
- package/build/backend/commands/nodes/delete.command.js +1 -1
- package/build/backend/commands/nodes/get-all.command.js +1 -1
- package/build/backend/commands/nodes/get-one.command.js +1 -1
- package/build/backend/commands/nodes/tags/get-all-nodes-tags.command.js +1 -1
- package/build/backend/commands/nodes/update.command.js +1 -1
- package/build/backend/commands/remnawave-settings/get-remnawave-settings.command.js +1 -1
- package/build/backend/commands/remnawave-settings/update-remnawave-settings.command.js +1 -1
- package/build/backend/commands/subscription/get-subscription-by-short-uuid-by-client-type.command.js +1 -1
- package/build/backend/commands/subscription/get-subscription-info-by-short-uuid.command.js +1 -1
- package/build/backend/commands/subscription-page-configs/actions/clone-subpage-config.command.js +1 -1
- package/build/backend/commands/subscription-page-configs/actions/reorder.command.js +1 -1
- package/build/backend/commands/subscription-page-configs/create-subpage-config.command.js +1 -1
- package/build/backend/commands/subscription-page-configs/get-subpage-config.command.js +1 -1
- package/build/backend/commands/subscription-page-configs/get-subpage-configs.command.js +1 -1
- package/build/backend/commands/subscription-page-configs/update-subpage-config.command.js +1 -1
- package/build/backend/commands/subscription-request-history/get-subscription-request-history.command.js +1 -1
- package/build/backend/commands/subscription-settings/get-subscription-settings.command.js +1 -1
- package/build/backend/commands/subscription-settings/update-subscription-settings.command.js +1 -1
- package/build/backend/commands/subscription-template/actions/reorder.command.js +1 -1
- package/build/backend/commands/subscription-template/create-template.command.js +1 -1
- package/build/backend/commands/subscription-template/get-template.command.js +1 -1
- package/build/backend/commands/subscription-template/get-templates.command.js +1 -1
- package/build/backend/commands/subscription-template/update-template.command.js +1 -1
- package/build/backend/commands/subscriptions/get-all-subscriptions.command.js +1 -1
- package/build/backend/commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.js +1 -1
- package/build/backend/commands/subscriptions/get-by/get-subscription-by-short-uuid-protected.command.js +1 -1
- package/build/backend/commands/subscriptions/get-by/get-subscription-by-username.command.js +1 -1
- package/build/backend/commands/subscriptions/get-by/get-subscription-by-uuid.command.js +1 -1
- package/build/backend/commands/system/get-bandwidth-stats.command.js +2 -2
- package/build/backend/commands/system/get-metadata.command.js +1 -1
- package/build/backend/commands/system/get-nodes-metrics.command.js +1 -1
- package/build/backend/commands/system/get-nodes-statistics.js +1 -1
- package/build/backend/commands/system/get-recap.command.js +1 -1
- package/build/backend/commands/system/get-remnawave-health.command.js +1 -1
- package/build/backend/commands/system/get-stats.command.js +1 -1
- package/build/backend/commands/system/testers/test-srr-matcher.command.js +1 -1
- package/build/backend/commands/system/tools/encrypt-happ-cryptolink.command.js +1 -1
- package/build/backend/commands/system/tools/generate-x25519.command.js +1 -1
- package/build/backend/commands/users/actions/disable-user.command.js +1 -1
- package/build/backend/commands/users/actions/enable-user.command.js +1 -1
- package/build/backend/commands/users/actions/reset-user-traffic.command.js +1 -1
- package/build/backend/commands/users/actions/revoke-user-subscription.command.js +1 -1
- package/build/backend/commands/users/bulk/bulk-delete-users-by-status.command.js +1 -1
- package/build/backend/commands/users/bulk/bulk-delete-users.command.js +1 -1
- package/build/backend/commands/users/bulk/bulk-extend-expiration-date.command.js +1 -1
- package/build/backend/commands/users/bulk/bulk-reset-traffic-users.command.js +1 -1
- package/build/backend/commands/users/bulk/bulk-revoke-users-subscription.command.js +1 -1
- package/build/backend/commands/users/bulk/bulk-update-users-squads.command.js +1 -1
- package/build/backend/commands/users/bulk/bulk-update-users.command.js +1 -1
- package/build/backend/commands/users/bulk-all/bulk-all-extend-expiration-date.command.js +1 -1
- package/build/backend/commands/users/bulk-all/bulk-all-reset-traffic-users.command.js +1 -1
- package/build/backend/commands/users/bulk-all/bulk-all-update-users.command.js +1 -1
- package/build/backend/commands/users/create-user.command.js +1 -1
- package/build/backend/commands/users/delete-user.command.js +1 -1
- package/build/backend/commands/users/get-all-users.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-all-users.command.js +3 -3
- package/build/backend/commands/users/get-by/get-user-by-email.command.js +1 -1
- package/build/backend/commands/users/get-by/get-user-by-id.command.js +1 -1
- package/build/backend/commands/users/get-by/get-user-by-short-uuid.command.js +1 -1
- package/build/backend/commands/users/get-by/get-user-by-tag.command.js +1 -1
- package/build/backend/commands/users/get-by/get-user-by-telegram-id.command.js +1 -1
- package/build/backend/commands/users/get-by/get-user-by-username.command.js +1 -1
- package/build/backend/commands/users/get-user-accessible-nodes.command.js +1 -1
- package/build/backend/commands/users/get-user-by-uuid.command.js +1 -1
- package/build/backend/commands/users/get-user-subscription-request-history.command.js +1 -1
- package/build/backend/commands/users/get-users-stream.command.d.ts +321 -0
- package/build/backend/commands/users/get-users-stream.command.d.ts.map +1 -0
- package/build/backend/commands/users/get-users-stream.command.js +37 -0
- 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/resolve-user.command.js +1 -1
- package/build/backend/commands/users/tags/get-all-tags.command.js +1 -1
- package/build/backend/commands/users/update-user.command.js +1 -1
- package/build/backend/models/external-squad.schema.js +1 -1
- package/build/backend/models/hosts.schema.js +1 -1
- package/build/backend/models/infra-billing-node.schema.d.ts +6 -6
- package/build/backend/models/remnawave-settings/passkey-settings.schema.js +1 -1
- package/build/backend/models/remnawave-settings/remnawave-settings.schema.js +2 -2
- package/build/backend/models/response-rules/response-rule.schema.js +2 -2
- package/build/backend/models/response-rules/response-rules-config.schema.js +2 -2
- package/build/backend/models/subscription-settings.schema.js +1 -1
- package/build/backend/models/tanstack-query/tanstask-query-request-query.schema.js +1 -1
- package/build/backend/models/torrent-blocker-report.schema.d.ts +2 -2
- package/build/backend/models/webhook/webhook.schema.js +1 -1
- package/build/frontend/api/controllers/users.js +1 -0
- package/build/frontend/api/routes.js +1 -0
- package/build/frontend/commands/api-tokens/create.command.js +1 -1
- package/build/frontend/commands/api-tokens/find.command.js +1 -1
- package/build/frontend/commands/auth/get-status.command.js +1 -1
- package/build/frontend/commands/auth/login.command.js +1 -1
- package/build/frontend/commands/auth/oauth2/authorize.command.js +1 -1
- package/build/frontend/commands/auth/oauth2/callback.command.js +1 -1
- package/build/frontend/commands/auth/passkey/get-authentication-options.command.js +1 -1
- package/build/frontend/commands/auth/passkey/verify-authentication.command.js +1 -1
- package/build/frontend/commands/auth/register.command.js +1 -1
- package/build/frontend/commands/config-profiles/get-all-inbounds.command.js +1 -1
- package/build/frontend/commands/config-profiles/get-inbounds-by-profile-uuid.command.js +1 -1
- package/build/frontend/commands/external-squads/update-external-squad.command.js +2 -2
- package/build/frontend/commands/hosts/bulk/delete-many-hosts.command.js +1 -1
- package/build/frontend/commands/hosts/bulk/disable-many-hosts.command.js +1 -1
- package/build/frontend/commands/hosts/bulk/enable-many-hosts.command.js +1 -1
- package/build/frontend/commands/hosts/bulk/update-many-hosts.command.js +2 -2
- package/build/frontend/commands/hosts/create.command.js +1 -1
- package/build/frontend/commands/hosts/delete.command.js +1 -1
- package/build/frontend/commands/hosts/get-all.command.js +1 -1
- package/build/frontend/commands/hosts/get-one.command.js +1 -1
- package/build/frontend/commands/hosts/reorder.command.js +1 -1
- package/build/frontend/commands/hosts/tags/get-all-host-tags.command.js +1 -1
- package/build/frontend/commands/hosts/update.command.js +1 -1
- package/build/frontend/commands/hwid/create-user-hwid-device.command.js +1 -1
- package/build/frontend/commands/hwid/delete-all-user-hwid-devices.command.js +1 -1
- package/build/frontend/commands/hwid/delete-user-hwid-device.command.js +1 -1
- package/build/frontend/commands/hwid/get-all-hwid-devices.command.js +2 -2
- package/build/frontend/commands/hwid/get-hwid-devices-stats.command.js +1 -1
- package/build/frontend/commands/hwid/get-top-users-by-hwid-devices.command.js +1 -1
- package/build/frontend/commands/hwid/get-user-hwid-devices.command.js +1 -1
- package/build/frontend/commands/infra-billing/create-bill-record.command.js +1 -1
- package/build/frontend/commands/infra-billing/create-billing-node.command.js +1 -1
- package/build/frontend/commands/infra-billing/delete-bill-record-by-uuid.command.js +1 -1
- package/build/frontend/commands/infra-billing/delete-billing-node-by-uuid.command.js +1 -1
- package/build/frontend/commands/infra-billing/get-bill-records.command.js +1 -1
- package/build/frontend/commands/infra-billing/get-billing-nodes.command.js +1 -1
- package/build/frontend/commands/infra-billing/update-billing-node.command.js +1 -1
- package/build/frontend/commands/keygen/get-pubkey.command.js +1 -1
- package/build/frontend/commands/node-plugins/torrent-blocker/get-torrent-blocker-reports.command.js +1 -1
- package/build/frontend/commands/node-plugins/torrent-blocker/truncate-torrent-blocker-reports.command.js +1 -1
- package/build/frontend/commands/nodes/actions/disable.command.js +1 -1
- package/build/frontend/commands/nodes/actions/enable.command.js +1 -1
- package/build/frontend/commands/nodes/actions/reorder.command.js +1 -1
- package/build/frontend/commands/nodes/actions/reset-traffic.command.js +1 -1
- package/build/frontend/commands/nodes/actions/restart-all.command.js +1 -1
- package/build/frontend/commands/nodes/actions/restart.command.js +1 -1
- package/build/frontend/commands/nodes/bulk-actions/actions.command.js +1 -1
- package/build/frontend/commands/nodes/bulk-actions/bulk-update.command.js +1 -1
- package/build/frontend/commands/nodes/bulk-actions/profile-modification.command.js +1 -1
- package/build/frontend/commands/nodes/create.command.js +1 -1
- package/build/frontend/commands/nodes/delete.command.js +1 -1
- package/build/frontend/commands/nodes/get-all.command.js +1 -1
- package/build/frontend/commands/nodes/get-one.command.js +1 -1
- package/build/frontend/commands/nodes/tags/get-all-nodes-tags.command.js +1 -1
- package/build/frontend/commands/nodes/update.command.js +1 -1
- package/build/frontend/commands/remnawave-settings/get-remnawave-settings.command.js +1 -1
- package/build/frontend/commands/remnawave-settings/update-remnawave-settings.command.js +1 -1
- package/build/frontend/commands/subscription/get-subscription-by-short-uuid-by-client-type.command.js +1 -1
- package/build/frontend/commands/subscription/get-subscription-info-by-short-uuid.command.js +1 -1
- package/build/frontend/commands/subscription-page-configs/actions/clone-subpage-config.command.js +1 -1
- package/build/frontend/commands/subscription-page-configs/actions/reorder.command.js +1 -1
- package/build/frontend/commands/subscription-page-configs/create-subpage-config.command.js +1 -1
- package/build/frontend/commands/subscription-page-configs/get-subpage-config.command.js +1 -1
- package/build/frontend/commands/subscription-page-configs/get-subpage-configs.command.js +1 -1
- package/build/frontend/commands/subscription-page-configs/update-subpage-config.command.js +1 -1
- package/build/frontend/commands/subscription-request-history/get-subscription-request-history.command.js +1 -1
- package/build/frontend/commands/subscription-settings/get-subscription-settings.command.js +1 -1
- package/build/frontend/commands/subscription-settings/update-subscription-settings.command.js +1 -1
- package/build/frontend/commands/subscription-template/actions/reorder.command.js +1 -1
- package/build/frontend/commands/subscription-template/create-template.command.js +1 -1
- package/build/frontend/commands/subscription-template/get-template.command.js +1 -1
- package/build/frontend/commands/subscription-template/get-templates.command.js +1 -1
- package/build/frontend/commands/subscription-template/update-template.command.js +1 -1
- package/build/frontend/commands/subscriptions/get-all-subscriptions.command.js +1 -1
- package/build/frontend/commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.js +1 -1
- package/build/frontend/commands/subscriptions/get-by/get-subscription-by-short-uuid-protected.command.js +1 -1
- package/build/frontend/commands/subscriptions/get-by/get-subscription-by-username.command.js +1 -1
- package/build/frontend/commands/subscriptions/get-by/get-subscription-by-uuid.command.js +1 -1
- package/build/frontend/commands/system/get-bandwidth-stats.command.js +2 -2
- package/build/frontend/commands/system/get-metadata.command.js +1 -1
- package/build/frontend/commands/system/get-nodes-metrics.command.js +1 -1
- package/build/frontend/commands/system/get-nodes-statistics.js +1 -1
- package/build/frontend/commands/system/get-recap.command.js +1 -1
- package/build/frontend/commands/system/get-remnawave-health.command.js +1 -1
- package/build/frontend/commands/system/get-stats.command.js +1 -1
- package/build/frontend/commands/system/testers/test-srr-matcher.command.js +1 -1
- package/build/frontend/commands/system/tools/encrypt-happ-cryptolink.command.js +1 -1
- package/build/frontend/commands/system/tools/generate-x25519.command.js +1 -1
- package/build/frontend/commands/users/actions/disable-user.command.js +1 -1
- package/build/frontend/commands/users/actions/enable-user.command.js +1 -1
- package/build/frontend/commands/users/actions/reset-user-traffic.command.js +1 -1
- package/build/frontend/commands/users/actions/revoke-user-subscription.command.js +1 -1
- package/build/frontend/commands/users/bulk/bulk-delete-users-by-status.command.js +1 -1
- package/build/frontend/commands/users/bulk/bulk-delete-users.command.js +1 -1
- package/build/frontend/commands/users/bulk/bulk-extend-expiration-date.command.js +1 -1
- package/build/frontend/commands/users/bulk/bulk-reset-traffic-users.command.js +1 -1
- package/build/frontend/commands/users/bulk/bulk-revoke-users-subscription.command.js +1 -1
- package/build/frontend/commands/users/bulk/bulk-update-users-squads.command.js +1 -1
- package/build/frontend/commands/users/bulk/bulk-update-users.command.js +1 -1
- package/build/frontend/commands/users/bulk-all/bulk-all-extend-expiration-date.command.js +1 -1
- package/build/frontend/commands/users/bulk-all/bulk-all-reset-traffic-users.command.js +1 -1
- package/build/frontend/commands/users/bulk-all/bulk-all-update-users.command.js +1 -1
- package/build/frontend/commands/users/create-user.command.js +1 -1
- package/build/frontend/commands/users/delete-user.command.js +1 -1
- package/build/frontend/commands/users/get-all-users.command.js +3 -3
- package/build/frontend/commands/users/get-by/get-user-by-email.command.js +1 -1
- package/build/frontend/commands/users/get-by/get-user-by-id.command.js +1 -1
- package/build/frontend/commands/users/get-by/get-user-by-short-uuid.command.js +1 -1
- package/build/frontend/commands/users/get-by/get-user-by-tag.command.js +1 -1
- package/build/frontend/commands/users/get-by/get-user-by-telegram-id.command.js +1 -1
- package/build/frontend/commands/users/get-by/get-user-by-username.command.js +1 -1
- package/build/frontend/commands/users/get-user-accessible-nodes.command.js +1 -1
- package/build/frontend/commands/users/get-user-by-uuid.command.js +1 -1
- package/build/frontend/commands/users/get-user-subscription-request-history.command.js +1 -1
- package/build/frontend/commands/users/get-users-stream.command.js +37 -0
- package/build/frontend/commands/users/index.js +1 -0
- package/build/frontend/commands/users/resolve-user.command.js +1 -1
- package/build/frontend/commands/users/tags/get-all-tags.command.js +1 -1
- package/build/frontend/commands/users/update-user.command.js +1 -1
- package/build/frontend/models/external-squad.schema.js +1 -1
- package/build/frontend/models/hosts.schema.js +1 -1
- package/build/frontend/models/remnawave-settings/passkey-settings.schema.js +1 -1
- package/build/frontend/models/remnawave-settings/remnawave-settings.schema.js +2 -2
- package/build/frontend/models/response-rules/response-rule.schema.js +2 -2
- package/build/frontend/models/response-rules/response-rules-config.schema.js +2 -2
- package/build/frontend/models/subscription-settings.schema.js +1 -1
- package/build/frontend/models/tanstack-query/tanstask-query-request-query.schema.js +1 -1
- package/build/frontend/models/webhook/webhook.schema.js +1 -1
- package/package.json +13 -13
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CreateUserCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const api_1 = require("../../api");
|
|
5
6
|
const constants_1 = require("../../constants");
|
|
6
7
|
const models_1 = require("../../models");
|
|
7
|
-
const api_1 = require("../../api");
|
|
8
8
|
var CreateUserCommand;
|
|
9
9
|
(function (CreateUserCommand) {
|
|
10
10
|
CreateUserCommand.url = api_1.REST_API.USERS.CREATE;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.DeleteUserCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
const constants_1 = require("../../constants");
|
|
6
5
|
const api_1 = require("../../api");
|
|
6
|
+
const constants_1 = require("../../constants");
|
|
7
7
|
var DeleteUserCommand;
|
|
8
8
|
(function (DeleteUserCommand) {
|
|
9
9
|
DeleteUserCommand.url = api_1.REST_API.USERS.DELETE;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-all-users.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/get-all-users.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,eAAqB,CAAC;IAC/B,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"get-all-users.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/get-all-users.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,eAAqB,CAAC;IAC/B,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAQ3B,CAAC;IAEK,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAkC,CAAC;IAElE,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAEvD,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAKzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GetAllUsersCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
const models_1 = require("../../models");
|
|
6
|
-
const constants_1 = require("../../constants");
|
|
7
5
|
const api_1 = require("../../api");
|
|
6
|
+
const constants_1 = require("../../constants");
|
|
7
|
+
const models_1 = require("../../models");
|
|
8
8
|
var GetAllUsersCommand;
|
|
9
9
|
(function (GetAllUsersCommand) {
|
|
10
10
|
GetAllUsersCommand.url = api_1.REST_API.USERS.GET;
|
|
11
11
|
GetAllUsersCommand.TSQ_url = GetAllUsersCommand.url;
|
|
12
|
-
GetAllUsersCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.GET, 'get', 'Get all users', {
|
|
12
|
+
GetAllUsersCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.GET, 'get', 'Get all users using offset-based pagination', {
|
|
13
13
|
scope: 'list',
|
|
14
14
|
kind: 'read',
|
|
15
15
|
});
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GetUserByEmailCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const api_1 = require("../../../api");
|
|
5
6
|
const constants_1 = require("../../../constants");
|
|
6
7
|
const models_1 = require("../../../models");
|
|
7
|
-
const api_1 = require("../../../api");
|
|
8
8
|
var GetUserByEmailCommand;
|
|
9
9
|
(function (GetUserByEmailCommand) {
|
|
10
10
|
GetUserByEmailCommand.url = api_1.REST_API.USERS.GET_BY.EMAIL;
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GetUserByIdCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const api_1 = require("../../../api");
|
|
5
6
|
const constants_1 = require("../../../constants");
|
|
6
7
|
const models_1 = require("../../../models");
|
|
7
|
-
const api_1 = require("../../../api");
|
|
8
8
|
var GetUserByIdCommand;
|
|
9
9
|
(function (GetUserByIdCommand) {
|
|
10
10
|
GetUserByIdCommand.url = api_1.REST_API.USERS.GET_BY.ID;
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GetUserByShortUuidCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const api_1 = require("../../../api");
|
|
5
6
|
const constants_1 = require("../../../constants");
|
|
6
7
|
const models_1 = require("../../../models");
|
|
7
|
-
const api_1 = require("../../../api");
|
|
8
8
|
var GetUserByShortUuidCommand;
|
|
9
9
|
(function (GetUserByShortUuidCommand) {
|
|
10
10
|
GetUserByShortUuidCommand.url = api_1.REST_API.USERS.GET_BY.SHORT_UUID;
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GetUserByTagCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const api_1 = require("../../../api");
|
|
5
6
|
const constants_1 = require("../../../constants");
|
|
6
7
|
const models_1 = require("../../../models");
|
|
7
|
-
const api_1 = require("../../../api");
|
|
8
8
|
var GetUserByTagCommand;
|
|
9
9
|
(function (GetUserByTagCommand) {
|
|
10
10
|
GetUserByTagCommand.url = api_1.REST_API.USERS.GET_BY.TAG;
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GetUserByTelegramIdCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const api_1 = require("../../../api");
|
|
5
6
|
const constants_1 = require("../../../constants");
|
|
6
7
|
const models_1 = require("../../../models");
|
|
7
|
-
const api_1 = require("../../../api");
|
|
8
8
|
var GetUserByTelegramIdCommand;
|
|
9
9
|
(function (GetUserByTelegramIdCommand) {
|
|
10
10
|
GetUserByTelegramIdCommand.url = api_1.REST_API.USERS.GET_BY.TELEGRAM_ID;
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GetUserByUsernameCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const api_1 = require("../../../api");
|
|
5
6
|
const constants_1 = require("../../../constants");
|
|
6
7
|
const models_1 = require("../../../models");
|
|
7
|
-
const api_1 = require("../../../api");
|
|
8
8
|
var GetUserByUsernameCommand;
|
|
9
9
|
(function (GetUserByUsernameCommand) {
|
|
10
10
|
GetUserByUsernameCommand.url = api_1.REST_API.USERS.GET_BY.USERNAME;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GetUserAccessibleNodesCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
const constants_1 = require("../../constants");
|
|
6
5
|
const api_1 = require("../../api");
|
|
6
|
+
const constants_1 = require("../../constants");
|
|
7
7
|
var GetUserAccessibleNodesCommand;
|
|
8
8
|
(function (GetUserAccessibleNodesCommand) {
|
|
9
9
|
GetUserAccessibleNodesCommand.url = api_1.REST_API.USERS.ACCESSIBLE_NODES;
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GetUserByUuidCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const api_1 = require("../../api");
|
|
5
6
|
const constants_1 = require("../../constants");
|
|
6
7
|
const models_1 = require("../../models");
|
|
7
|
-
const api_1 = require("../../api");
|
|
8
8
|
var GetUserByUuidCommand;
|
|
9
9
|
(function (GetUserByUuidCommand) {
|
|
10
10
|
GetUserByUuidCommand.url = api_1.REST_API.USERS.GET_BY_UUID;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GetUserSubscriptionRequestHistoryCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
const constants_1 = require("../../constants");
|
|
6
5
|
const api_1 = require("../../api");
|
|
6
|
+
const constants_1 = require("../../constants");
|
|
7
7
|
var GetUserSubscriptionRequestHistoryCommand;
|
|
8
8
|
(function (GetUserSubscriptionRequestHistoryCommand) {
|
|
9
9
|
GetUserSubscriptionRequestHistoryCommand.url = api_1.REST_API.USERS.SUBSCRIPTION_REQUEST_HISTORY;
|
|
@@ -0,0 +1,321 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace GetUsersStreamCommand {
|
|
3
|
+
const url: "/api/users/stream";
|
|
4
|
+
const TSQ_url: "/api/users/stream";
|
|
5
|
+
const endpointDetails: import("../../constants").EndpointDetails;
|
|
6
|
+
const RequestQuerySchema: z.ZodObject<{
|
|
7
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
8
|
+
size: z.ZodDefault<z.ZodNumber>;
|
|
9
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
|
+
size: number;
|
|
11
|
+
cursor?: string | undefined;
|
|
12
|
+
}, {
|
|
13
|
+
size?: number | undefined;
|
|
14
|
+
cursor?: string | undefined;
|
|
15
|
+
}>;
|
|
16
|
+
type RequestQuery = z.infer<typeof RequestQuerySchema>;
|
|
17
|
+
const ResponseSchema: z.ZodObject<{
|
|
18
|
+
response: z.ZodObject<{
|
|
19
|
+
users: z.ZodArray<z.ZodObject<{
|
|
20
|
+
uuid: z.ZodString;
|
|
21
|
+
id: z.ZodNumber;
|
|
22
|
+
shortUuid: z.ZodString;
|
|
23
|
+
username: z.ZodString;
|
|
24
|
+
status: z.ZodDefault<z.ZodNativeEnum<{
|
|
25
|
+
readonly ACTIVE: "ACTIVE";
|
|
26
|
+
readonly DISABLED: "DISABLED";
|
|
27
|
+
readonly LIMITED: "LIMITED";
|
|
28
|
+
readonly EXPIRED: "EXPIRED";
|
|
29
|
+
}>>;
|
|
30
|
+
trafficLimitBytes: z.ZodDefault<z.ZodNumber>;
|
|
31
|
+
trafficLimitStrategy: z.ZodDefault<z.ZodNativeEnum<{
|
|
32
|
+
readonly NO_RESET: "NO_RESET";
|
|
33
|
+
readonly DAY: "DAY";
|
|
34
|
+
readonly WEEK: "WEEK";
|
|
35
|
+
readonly MONTH: "MONTH";
|
|
36
|
+
readonly MONTH_ROLLING: "MONTH_ROLLING";
|
|
37
|
+
}>>;
|
|
38
|
+
expireAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
39
|
+
telegramId: z.ZodNullable<z.ZodNumber>;
|
|
40
|
+
email: z.ZodNullable<z.ZodString>;
|
|
41
|
+
description: z.ZodNullable<z.ZodString>;
|
|
42
|
+
tag: z.ZodNullable<z.ZodString>;
|
|
43
|
+
hwidDeviceLimit: z.ZodNullable<z.ZodNumber>;
|
|
44
|
+
externalSquadUuid: z.ZodNullable<z.ZodString>;
|
|
45
|
+
trojanPassword: z.ZodString;
|
|
46
|
+
vlessUuid: z.ZodString;
|
|
47
|
+
ssPassword: z.ZodString;
|
|
48
|
+
lastTriggeredThreshold: z.ZodDefault<z.ZodNumber>;
|
|
49
|
+
subRevokedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
|
50
|
+
lastTrafficResetAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
|
51
|
+
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
52
|
+
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
53
|
+
} & {
|
|
54
|
+
subscriptionUrl: z.ZodString;
|
|
55
|
+
activeInternalSquads: z.ZodArray<z.ZodObject<{
|
|
56
|
+
uuid: z.ZodString;
|
|
57
|
+
name: z.ZodString;
|
|
58
|
+
}, "strip", z.ZodTypeAny, {
|
|
59
|
+
uuid: string;
|
|
60
|
+
name: string;
|
|
61
|
+
}, {
|
|
62
|
+
uuid: string;
|
|
63
|
+
name: string;
|
|
64
|
+
}>, "many">;
|
|
65
|
+
userTraffic: z.ZodObject<{
|
|
66
|
+
usedTrafficBytes: z.ZodNumber;
|
|
67
|
+
lifetimeUsedTrafficBytes: z.ZodNumber;
|
|
68
|
+
onlineAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
|
69
|
+
firstConnectedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
|
70
|
+
lastConnectedNodeUuid: z.ZodNullable<z.ZodString>;
|
|
71
|
+
}, "strip", z.ZodTypeAny, {
|
|
72
|
+
usedTrafficBytes: number;
|
|
73
|
+
lifetimeUsedTrafficBytes: number;
|
|
74
|
+
onlineAt: Date | null;
|
|
75
|
+
firstConnectedAt: Date | null;
|
|
76
|
+
lastConnectedNodeUuid: string | null;
|
|
77
|
+
}, {
|
|
78
|
+
usedTrafficBytes: number;
|
|
79
|
+
lifetimeUsedTrafficBytes: number;
|
|
80
|
+
onlineAt: string | null;
|
|
81
|
+
firstConnectedAt: string | null;
|
|
82
|
+
lastConnectedNodeUuid: string | null;
|
|
83
|
+
}>;
|
|
84
|
+
}, "strip", z.ZodTypeAny, {
|
|
85
|
+
status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
|
|
86
|
+
uuid: string;
|
|
87
|
+
createdAt: Date;
|
|
88
|
+
updatedAt: Date;
|
|
89
|
+
description: string | null;
|
|
90
|
+
username: string;
|
|
91
|
+
tag: string | null;
|
|
92
|
+
id: number;
|
|
93
|
+
shortUuid: string;
|
|
94
|
+
trafficLimitBytes: number;
|
|
95
|
+
trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | "MONTH_ROLLING";
|
|
96
|
+
expireAt: Date;
|
|
97
|
+
telegramId: number | null;
|
|
98
|
+
email: string | null;
|
|
99
|
+
hwidDeviceLimit: number | null;
|
|
100
|
+
externalSquadUuid: string | null;
|
|
101
|
+
trojanPassword: string;
|
|
102
|
+
vlessUuid: string;
|
|
103
|
+
ssPassword: string;
|
|
104
|
+
lastTriggeredThreshold: number;
|
|
105
|
+
subRevokedAt: Date | null;
|
|
106
|
+
lastTrafficResetAt: Date | null;
|
|
107
|
+
subscriptionUrl: string;
|
|
108
|
+
activeInternalSquads: {
|
|
109
|
+
uuid: string;
|
|
110
|
+
name: string;
|
|
111
|
+
}[];
|
|
112
|
+
userTraffic: {
|
|
113
|
+
usedTrafficBytes: number;
|
|
114
|
+
lifetimeUsedTrafficBytes: number;
|
|
115
|
+
onlineAt: Date | null;
|
|
116
|
+
firstConnectedAt: Date | null;
|
|
117
|
+
lastConnectedNodeUuid: string | null;
|
|
118
|
+
};
|
|
119
|
+
}, {
|
|
120
|
+
uuid: string;
|
|
121
|
+
createdAt: string;
|
|
122
|
+
updatedAt: string;
|
|
123
|
+
description: string | null;
|
|
124
|
+
username: string;
|
|
125
|
+
tag: string | null;
|
|
126
|
+
id: number;
|
|
127
|
+
shortUuid: string;
|
|
128
|
+
expireAt: string;
|
|
129
|
+
telegramId: number | null;
|
|
130
|
+
email: string | null;
|
|
131
|
+
hwidDeviceLimit: number | null;
|
|
132
|
+
externalSquadUuid: string | null;
|
|
133
|
+
trojanPassword: string;
|
|
134
|
+
vlessUuid: string;
|
|
135
|
+
ssPassword: string;
|
|
136
|
+
subRevokedAt: string | null;
|
|
137
|
+
lastTrafficResetAt: string | null;
|
|
138
|
+
subscriptionUrl: string;
|
|
139
|
+
activeInternalSquads: {
|
|
140
|
+
uuid: string;
|
|
141
|
+
name: string;
|
|
142
|
+
}[];
|
|
143
|
+
userTraffic: {
|
|
144
|
+
usedTrafficBytes: number;
|
|
145
|
+
lifetimeUsedTrafficBytes: number;
|
|
146
|
+
onlineAt: string | null;
|
|
147
|
+
firstConnectedAt: string | null;
|
|
148
|
+
lastConnectedNodeUuid: string | null;
|
|
149
|
+
};
|
|
150
|
+
status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
|
|
151
|
+
trafficLimitBytes?: number | undefined;
|
|
152
|
+
trafficLimitStrategy?: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | "MONTH_ROLLING" | undefined;
|
|
153
|
+
lastTriggeredThreshold?: number | undefined;
|
|
154
|
+
}>, "many">;
|
|
155
|
+
nextCursor: z.ZodNullable<z.ZodString>;
|
|
156
|
+
hasMore: z.ZodBoolean;
|
|
157
|
+
}, "strip", z.ZodTypeAny, {
|
|
158
|
+
users: {
|
|
159
|
+
status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
|
|
160
|
+
uuid: string;
|
|
161
|
+
createdAt: Date;
|
|
162
|
+
updatedAt: Date;
|
|
163
|
+
description: string | null;
|
|
164
|
+
username: string;
|
|
165
|
+
tag: string | null;
|
|
166
|
+
id: number;
|
|
167
|
+
shortUuid: string;
|
|
168
|
+
trafficLimitBytes: number;
|
|
169
|
+
trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | "MONTH_ROLLING";
|
|
170
|
+
expireAt: Date;
|
|
171
|
+
telegramId: number | null;
|
|
172
|
+
email: string | null;
|
|
173
|
+
hwidDeviceLimit: number | null;
|
|
174
|
+
externalSquadUuid: string | null;
|
|
175
|
+
trojanPassword: string;
|
|
176
|
+
vlessUuid: string;
|
|
177
|
+
ssPassword: string;
|
|
178
|
+
lastTriggeredThreshold: number;
|
|
179
|
+
subRevokedAt: Date | null;
|
|
180
|
+
lastTrafficResetAt: Date | null;
|
|
181
|
+
subscriptionUrl: string;
|
|
182
|
+
activeInternalSquads: {
|
|
183
|
+
uuid: string;
|
|
184
|
+
name: string;
|
|
185
|
+
}[];
|
|
186
|
+
userTraffic: {
|
|
187
|
+
usedTrafficBytes: number;
|
|
188
|
+
lifetimeUsedTrafficBytes: number;
|
|
189
|
+
onlineAt: Date | null;
|
|
190
|
+
firstConnectedAt: Date | null;
|
|
191
|
+
lastConnectedNodeUuid: string | null;
|
|
192
|
+
};
|
|
193
|
+
}[];
|
|
194
|
+
nextCursor: string | null;
|
|
195
|
+
hasMore: boolean;
|
|
196
|
+
}, {
|
|
197
|
+
users: {
|
|
198
|
+
uuid: string;
|
|
199
|
+
createdAt: string;
|
|
200
|
+
updatedAt: string;
|
|
201
|
+
description: string | null;
|
|
202
|
+
username: string;
|
|
203
|
+
tag: string | null;
|
|
204
|
+
id: number;
|
|
205
|
+
shortUuid: string;
|
|
206
|
+
expireAt: string;
|
|
207
|
+
telegramId: number | null;
|
|
208
|
+
email: string | null;
|
|
209
|
+
hwidDeviceLimit: number | null;
|
|
210
|
+
externalSquadUuid: string | null;
|
|
211
|
+
trojanPassword: string;
|
|
212
|
+
vlessUuid: string;
|
|
213
|
+
ssPassword: string;
|
|
214
|
+
subRevokedAt: string | null;
|
|
215
|
+
lastTrafficResetAt: string | null;
|
|
216
|
+
subscriptionUrl: string;
|
|
217
|
+
activeInternalSquads: {
|
|
218
|
+
uuid: string;
|
|
219
|
+
name: string;
|
|
220
|
+
}[];
|
|
221
|
+
userTraffic: {
|
|
222
|
+
usedTrafficBytes: number;
|
|
223
|
+
lifetimeUsedTrafficBytes: number;
|
|
224
|
+
onlineAt: string | null;
|
|
225
|
+
firstConnectedAt: string | null;
|
|
226
|
+
lastConnectedNodeUuid: string | null;
|
|
227
|
+
};
|
|
228
|
+
status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
|
|
229
|
+
trafficLimitBytes?: number | undefined;
|
|
230
|
+
trafficLimitStrategy?: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | "MONTH_ROLLING" | undefined;
|
|
231
|
+
lastTriggeredThreshold?: number | undefined;
|
|
232
|
+
}[];
|
|
233
|
+
nextCursor: string | null;
|
|
234
|
+
hasMore: boolean;
|
|
235
|
+
}>;
|
|
236
|
+
}, "strip", z.ZodTypeAny, {
|
|
237
|
+
response: {
|
|
238
|
+
users: {
|
|
239
|
+
status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
|
|
240
|
+
uuid: string;
|
|
241
|
+
createdAt: Date;
|
|
242
|
+
updatedAt: Date;
|
|
243
|
+
description: string | null;
|
|
244
|
+
username: string;
|
|
245
|
+
tag: string | null;
|
|
246
|
+
id: number;
|
|
247
|
+
shortUuid: string;
|
|
248
|
+
trafficLimitBytes: number;
|
|
249
|
+
trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | "MONTH_ROLLING";
|
|
250
|
+
expireAt: Date;
|
|
251
|
+
telegramId: number | null;
|
|
252
|
+
email: string | null;
|
|
253
|
+
hwidDeviceLimit: number | null;
|
|
254
|
+
externalSquadUuid: string | null;
|
|
255
|
+
trojanPassword: string;
|
|
256
|
+
vlessUuid: string;
|
|
257
|
+
ssPassword: string;
|
|
258
|
+
lastTriggeredThreshold: number;
|
|
259
|
+
subRevokedAt: Date | null;
|
|
260
|
+
lastTrafficResetAt: Date | null;
|
|
261
|
+
subscriptionUrl: string;
|
|
262
|
+
activeInternalSquads: {
|
|
263
|
+
uuid: string;
|
|
264
|
+
name: string;
|
|
265
|
+
}[];
|
|
266
|
+
userTraffic: {
|
|
267
|
+
usedTrafficBytes: number;
|
|
268
|
+
lifetimeUsedTrafficBytes: number;
|
|
269
|
+
onlineAt: Date | null;
|
|
270
|
+
firstConnectedAt: Date | null;
|
|
271
|
+
lastConnectedNodeUuid: string | null;
|
|
272
|
+
};
|
|
273
|
+
}[];
|
|
274
|
+
nextCursor: string | null;
|
|
275
|
+
hasMore: boolean;
|
|
276
|
+
};
|
|
277
|
+
}, {
|
|
278
|
+
response: {
|
|
279
|
+
users: {
|
|
280
|
+
uuid: string;
|
|
281
|
+
createdAt: string;
|
|
282
|
+
updatedAt: string;
|
|
283
|
+
description: string | null;
|
|
284
|
+
username: string;
|
|
285
|
+
tag: string | null;
|
|
286
|
+
id: number;
|
|
287
|
+
shortUuid: string;
|
|
288
|
+
expireAt: string;
|
|
289
|
+
telegramId: number | null;
|
|
290
|
+
email: string | null;
|
|
291
|
+
hwidDeviceLimit: number | null;
|
|
292
|
+
externalSquadUuid: string | null;
|
|
293
|
+
trojanPassword: string;
|
|
294
|
+
vlessUuid: string;
|
|
295
|
+
ssPassword: string;
|
|
296
|
+
subRevokedAt: string | null;
|
|
297
|
+
lastTrafficResetAt: string | null;
|
|
298
|
+
subscriptionUrl: string;
|
|
299
|
+
activeInternalSquads: {
|
|
300
|
+
uuid: string;
|
|
301
|
+
name: string;
|
|
302
|
+
}[];
|
|
303
|
+
userTraffic: {
|
|
304
|
+
usedTrafficBytes: number;
|
|
305
|
+
lifetimeUsedTrafficBytes: number;
|
|
306
|
+
onlineAt: string | null;
|
|
307
|
+
firstConnectedAt: string | null;
|
|
308
|
+
lastConnectedNodeUuid: string | null;
|
|
309
|
+
};
|
|
310
|
+
status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
|
|
311
|
+
trafficLimitBytes?: number | undefined;
|
|
312
|
+
trafficLimitStrategy?: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | "MONTH_ROLLING" | undefined;
|
|
313
|
+
lastTriggeredThreshold?: number | undefined;
|
|
314
|
+
}[];
|
|
315
|
+
nextCursor: string | null;
|
|
316
|
+
hasMore: boolean;
|
|
317
|
+
};
|
|
318
|
+
}>;
|
|
319
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
320
|
+
}
|
|
321
|
+
//# sourceMappingURL=get-users-stream.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-users-stream.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/get-users-stream.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,qBAAqB,CAAC;IAC5B,MAAM,GAAG,qBAAwB,CAAC;IAClC,MAAM,OAAO,qBAAM,CAAC;IAEpB,MAAM,eAAe,2CAK3B,CAAC;IAEK,MAAM,kBAAkB;;;;;;;;;MAe7B,CAAC;IAEH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAEvD,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MASzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetUsersStreamCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const api_1 = require("../../api");
|
|
6
|
+
const constants_1 = require("../../constants");
|
|
7
|
+
const models_1 = require("../../models");
|
|
8
|
+
var GetUsersStreamCommand;
|
|
9
|
+
(function (GetUsersStreamCommand) {
|
|
10
|
+
GetUsersStreamCommand.url = api_1.REST_API.USERS.STREAM;
|
|
11
|
+
GetUsersStreamCommand.TSQ_url = GetUsersStreamCommand.url;
|
|
12
|
+
GetUsersStreamCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.STREAM, 'get', 'Get all users using cursor-based (keyset) pagination', { scope: 'stream', kind: 'read' });
|
|
13
|
+
GetUsersStreamCommand.RequestQuerySchema = zod_1.z.object({
|
|
14
|
+
cursor: zod_1.z
|
|
15
|
+
.string()
|
|
16
|
+
.regex(/^\d+$/, 'Cursor must be a positive integer string')
|
|
17
|
+
.optional()
|
|
18
|
+
.describe('Cursor for pagination — pass the nextCursor from the previous response. Omit on the first request.'),
|
|
19
|
+
size: zod_1.z.coerce
|
|
20
|
+
.number()
|
|
21
|
+
.int()
|
|
22
|
+
.min(1, 'Size (limit) must be greater than 0')
|
|
23
|
+
.max(1000, 'Size (limit) must be less than 1000')
|
|
24
|
+
.describe('Number of results to return, no more than 1000')
|
|
25
|
+
.default(250),
|
|
26
|
+
});
|
|
27
|
+
GetUsersStreamCommand.ResponseSchema = zod_1.z.object({
|
|
28
|
+
response: zod_1.z.object({
|
|
29
|
+
users: zod_1.z.array(models_1.ExtendedUsersSchema),
|
|
30
|
+
nextCursor: zod_1.z
|
|
31
|
+
.string()
|
|
32
|
+
.nullable()
|
|
33
|
+
.describe('Cursor to fetch the next page, or null if there are no more results'),
|
|
34
|
+
hasMore: zod_1.z.boolean().describe('Whether there are more results to fetch'),
|
|
35
|
+
}),
|
|
36
|
+
});
|
|
37
|
+
})(GetUsersStreamCommand || (exports.GetUsersStreamCommand = GetUsersStreamCommand = {}));
|
|
@@ -8,6 +8,7 @@ export * from './get-by';
|
|
|
8
8
|
export * from './get-user-accessible-nodes.command';
|
|
9
9
|
export * from './get-user-by-uuid.command';
|
|
10
10
|
export * from './get-user-subscription-request-history.command';
|
|
11
|
+
export * from './get-users-stream.command';
|
|
11
12
|
export * from './resolve-user.command';
|
|
12
13
|
export * from './tags';
|
|
13
14
|
export * from './update-user.command';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commands/users/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAE3B,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AAEtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commands/users/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAE3B,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AAEtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,UAAU,CAAC;AACzB,cAAc,qCAAqC,CAAC;AAEpD,cAAc,4BAA4B,CAAC;AAE3C,cAAc,iDAAiD,CAAC;AAChE,cAAc,4BAA4B,CAAC;AAE3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,QAAQ,CAAC;AACvB,cAAc,uBAAuB,CAAC"}
|
|
@@ -24,6 +24,7 @@ __exportStar(require("./get-by"), exports);
|
|
|
24
24
|
__exportStar(require("./get-user-accessible-nodes.command"), exports);
|
|
25
25
|
__exportStar(require("./get-user-by-uuid.command"), exports);
|
|
26
26
|
__exportStar(require("./get-user-subscription-request-history.command"), exports);
|
|
27
|
+
__exportStar(require("./get-users-stream.command"), exports);
|
|
27
28
|
__exportStar(require("./resolve-user.command"), exports);
|
|
28
29
|
__exportStar(require("./tags"), exports);
|
|
29
30
|
__exportStar(require("./update-user.command"), exports);
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ResolveUserCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
const constants_1 = require("../../constants");
|
|
6
5
|
const api_1 = require("../../api");
|
|
6
|
+
const constants_1 = require("../../constants");
|
|
7
7
|
var ResolveUserCommand;
|
|
8
8
|
(function (ResolveUserCommand) {
|
|
9
9
|
ResolveUserCommand.url = api_1.REST_API.USERS.RESOLVE;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.GetAllTagsCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
const constants_1 = require("../../../constants");
|
|
6
5
|
const api_1 = require("../../../api");
|
|
6
|
+
const constants_1 = require("../../../constants");
|
|
7
7
|
var GetAllTagsCommand;
|
|
8
8
|
(function (GetAllTagsCommand) {
|
|
9
9
|
GetAllTagsCommand.url = api_1.REST_API.USERS.TAGS.GET;
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.UpdateUserCommand = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const api_1 = require("../../api");
|
|
5
6
|
const constants_1 = require("../../constants");
|
|
6
7
|
const models_1 = require("../../models");
|
|
7
|
-
const api_1 = require("../../api");
|
|
8
8
|
var UpdateUserCommand;
|
|
9
9
|
(function (UpdateUserCommand) {
|
|
10
10
|
UpdateUserCommand.url = api_1.REST_API.USERS.UPDATE;
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ExternalSquadSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const constants_1 = require("../constants");
|
|
5
6
|
const external_squads_1 = require("./external-squads");
|
|
6
7
|
const subscription_settings_1 = require("./subscription-settings");
|
|
7
|
-
const constants_1 = require("../constants");
|
|
8
8
|
exports.ExternalSquadSchema = zod_1.z.object({
|
|
9
9
|
uuid: zod_1.z.string().uuid(),
|
|
10
10
|
viewPosition: zod_1.z.number().int(),
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.HostsSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
const hosts_1 = require("../constants/hosts");
|
|
6
5
|
const constants_1 = require("../constants");
|
|
6
|
+
const hosts_1 = require("../constants/hosts");
|
|
7
7
|
exports.HostsSchema = zod_1.z.object({
|
|
8
8
|
uuid: zod_1.z.string().uuid(),
|
|
9
9
|
viewPosition: zod_1.z.number().int(),
|
|
@@ -287,14 +287,14 @@ export declare const InfraBillingNodeSchema: z.ZodObject<{
|
|
|
287
287
|
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
288
288
|
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
289
289
|
}, "strip", z.ZodTypeAny, {
|
|
290
|
-
uuid: string;
|
|
291
|
-
createdAt: Date;
|
|
292
|
-
updatedAt: Date;
|
|
293
290
|
node: {
|
|
294
291
|
uuid: string;
|
|
295
292
|
countryCode: string;
|
|
296
293
|
name: string;
|
|
297
294
|
} | null;
|
|
295
|
+
uuid: string;
|
|
296
|
+
createdAt: Date;
|
|
297
|
+
updatedAt: Date;
|
|
298
298
|
provider: {
|
|
299
299
|
uuid: string;
|
|
300
300
|
name: string;
|
|
@@ -306,14 +306,14 @@ export declare const InfraBillingNodeSchema: z.ZodObject<{
|
|
|
306
306
|
providerUuid: string;
|
|
307
307
|
nextBillingAt: Date;
|
|
308
308
|
}, {
|
|
309
|
-
uuid: string;
|
|
310
|
-
createdAt: string;
|
|
311
|
-
updatedAt: string;
|
|
312
309
|
node: {
|
|
313
310
|
uuid: string;
|
|
314
311
|
countryCode: string;
|
|
315
312
|
name: string;
|
|
316
313
|
} | null;
|
|
314
|
+
uuid: string;
|
|
315
|
+
createdAt: string;
|
|
316
|
+
updatedAt: string;
|
|
317
317
|
provider: {
|
|
318
318
|
uuid: string;
|
|
319
319
|
name: string;
|
|
@@ -23,7 +23,7 @@ exports.PasskeySettingsSchema = zod_1.default.object({
|
|
|
23
23
|
if (/^http:\/\/localhost:\d+$/.test(value)) {
|
|
24
24
|
return true;
|
|
25
25
|
}
|
|
26
|
-
if (/^https:\/\/(?=.*\.[a-z]{2,})[^\s
|
|
26
|
+
if (/^https:\/\/(?=.*\.[a-z]{2,})[^\s/?#]+$/i.test(value)) {
|
|
27
27
|
return true;
|
|
28
28
|
}
|
|
29
29
|
return false;
|