@remnawave/backend-contract 0.5.4 → 0.5.6
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/commands/api-tokens/create.command.d.ts +1 -1
- package/build/backend/commands/api-tokens/create.command.js +1 -1
- package/build/backend/commands/api-tokens/delete.command.d.ts +1 -1
- package/build/backend/commands/api-tokens/delete.command.js +1 -1
- package/build/backend/commands/api-tokens/find.command.d.ts +1 -1
- package/build/backend/commands/api-tokens/find.command.js +1 -1
- package/build/backend/commands/auth/get-status.command.d.ts +1 -1
- package/build/backend/commands/auth/get-status.command.js +1 -1
- package/build/backend/commands/auth/login.command.d.ts +1 -1
- package/build/backend/commands/auth/login.command.js +1 -1
- package/build/backend/commands/auth/register.command.d.ts +1 -1
- package/build/backend/commands/auth/register.command.js +1 -1
- package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts +1 -1
- package/build/backend/commands/hosts/bulk/delete-many-hosts.command.js +1 -1
- package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts +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.d.ts +1 -1
- package/build/backend/commands/hosts/bulk/enable-many-hosts.command.js +1 -1
- package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.d.ts +1 -1
- package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.js +1 -1
- package/build/backend/commands/hosts/bulk/set-port-to-many-hosts.command.d.ts +1 -1
- package/build/backend/commands/hosts/bulk/set-port-to-many-hosts.command.js +1 -1
- package/build/backend/commands/hosts/create.command.d.ts +1 -1
- package/build/backend/commands/hosts/create.command.js +1 -1
- package/build/backend/commands/hosts/delete.command.d.ts +1 -1
- package/build/backend/commands/hosts/delete.command.js +1 -1
- package/build/backend/commands/hosts/get-all.command.d.ts +1 -1
- package/build/backend/commands/hosts/get-all.command.js +1 -1
- package/build/backend/commands/hosts/get-one.command.d.ts +1 -1
- package/build/backend/commands/hosts/get-one.command.js +1 -1
- package/build/backend/commands/hosts/reorder.command.d.ts +1 -1
- package/build/backend/commands/hosts/reorder.command.js +1 -1
- package/build/backend/commands/hosts/update.command.d.ts +4 -4
- package/build/backend/commands/hosts/update.command.js +1 -1
- package/build/backend/commands/hwid/create-user-hwid-device.command.d.ts +1 -1
- package/build/backend/commands/hwid/create-user-hwid-device.command.js +1 -1
- package/build/backend/commands/hwid/delete-user-hwid-device.command.d.ts +1 -1
- package/build/backend/commands/hwid/delete-user-hwid-device.command.js +1 -1
- package/build/backend/commands/hwid/get-user-hwid-devices.command.d.ts +1 -1
- package/build/backend/commands/hwid/get-user-hwid-devices.command.js +1 -1
- package/build/backend/commands/inbounds/bulk/add-inbound-to-nodes.command.d.ts +1 -1
- package/build/backend/commands/inbounds/bulk/add-inbound-to-nodes.command.js +1 -1
- package/build/backend/commands/inbounds/bulk/add-inbound-to-users.command.d.ts +1 -1
- package/build/backend/commands/inbounds/bulk/add-inbound-to-users.command.js +1 -1
- package/build/backend/commands/inbounds/bulk/remove-inbound-from-nodes.command.d.ts +1 -1
- package/build/backend/commands/inbounds/bulk/remove-inbound-from-nodes.command.js +1 -1
- package/build/backend/commands/inbounds/bulk/remove-inbound-from-users.command.d.ts +1 -1
- package/build/backend/commands/inbounds/bulk/remove-inbound-from-users.command.js +1 -1
- package/build/backend/commands/inbounds/get-full-inbounds.command.d.ts +1 -1
- package/build/backend/commands/inbounds/get-full-inbounds.command.js +1 -1
- package/build/backend/commands/inbounds/get-inbounds.command.d.ts +1 -1
- package/build/backend/commands/inbounds/get-inbounds.command.js +1 -1
- package/build/backend/commands/keygen/get-pubkey.command.d.ts +1 -1
- package/build/backend/commands/keygen/get-pubkey.command.js +1 -1
- package/build/backend/commands/nodes/actions/disable.command.d.ts +1 -1
- package/build/backend/commands/nodes/actions/disable.command.js +1 -1
- package/build/backend/commands/nodes/actions/enable.command.d.ts +1 -1
- package/build/backend/commands/nodes/actions/enable.command.js +1 -1
- package/build/backend/commands/nodes/actions/reorder.command.d.ts +1 -1
- package/build/backend/commands/nodes/actions/reorder.command.js +1 -1
- package/build/backend/commands/nodes/actions/restart-all.command.d.ts +1 -1
- package/build/backend/commands/nodes/actions/restart-all.command.js +1 -1
- package/build/backend/commands/nodes/actions/restart.command.d.ts +1 -1
- package/build/backend/commands/nodes/actions/restart.command.js +1 -1
- package/build/backend/commands/nodes/create.command.d.ts +1 -1
- package/build/backend/commands/nodes/create.command.js +1 -1
- package/build/backend/commands/nodes/delete.command.d.ts +1 -1
- package/build/backend/commands/nodes/delete.command.js +1 -1
- package/build/backend/commands/nodes/get-all.command.d.ts +1 -1
- package/build/backend/commands/nodes/get-all.command.js +1 -1
- package/build/backend/commands/nodes/get-one.command.d.ts +1 -1
- package/build/backend/commands/nodes/get-one.command.js +1 -1
- package/build/backend/commands/nodes/stats/get-node-user-usage-by-range.command.d.ts +1 -1
- package/build/backend/commands/nodes/stats/get-node-user-usage-by-range.command.js +1 -1
- package/build/backend/commands/nodes/stats/get-nodes-usage-by-range.command.d.ts +1 -1
- package/build/backend/commands/nodes/stats/get-nodes-usage-by-range.command.js +1 -1
- package/build/backend/commands/nodes/stats/get-realtime-usage.command.d.ts +1 -1
- package/build/backend/commands/nodes/stats/get-realtime-usage.command.js +1 -1
- package/build/backend/commands/nodes/update.command.d.ts +4 -4
- package/build/backend/commands/nodes/update.command.js +1 -1
- package/build/backend/commands/subscription/get-subscription-info-by-short-uuid.command.d.ts +1 -1
- package/build/backend/commands/subscription/get-subscription-info-by-short-uuid.command.js +1 -1
- package/build/backend/commands/subscription-settings/get-subscription-settings.command.d.ts +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.d.ts +1 -1
- package/build/backend/commands/subscription-settings/update-subscription-settings.command.js +1 -1
- package/build/backend/commands/subscription-template/get-template.command.d.ts +1 -1
- package/build/backend/commands/subscription-template/get-template.command.js +1 -1
- package/build/backend/commands/subscription-template/update-template.command.d.ts +1 -1
- package/build/backend/commands/subscription-template/update-template.command.js +1 -1
- package/build/backend/commands/system/get-bandwidth-stats.command.d.ts +1 -1
- package/build/backend/commands/system/get-bandwidth-stats.command.js +1 -1
- package/build/backend/commands/system/get-nodes-statistics.d.ts +1 -1
- package/build/backend/commands/system/get-nodes-statistics.js +1 -1
- package/build/backend/commands/system/get-stats.command.d.ts +1 -1
- package/build/backend/commands/system/get-stats.command.js +1 -1
- package/build/backend/commands/users/actions/activate-all-inbounds.command.d.ts +4 -4
- package/build/backend/commands/users/actions/activate-all-inbounds.command.js +1 -1
- package/build/backend/commands/users/actions/disable-user.command.d.ts +4 -4
- package/build/backend/commands/users/actions/disable-user.command.js +1 -1
- package/build/backend/commands/users/actions/enable-user.command.d.ts +4 -4
- package/build/backend/commands/users/actions/enable-user.command.js +1 -1
- package/build/backend/commands/users/actions/reset-user-traffic.command.d.ts +4 -4
- package/build/backend/commands/users/actions/reset-user-traffic.command.js +1 -1
- package/build/backend/commands/users/actions/revoke-user-subscription.command.d.ts +4 -4
- 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.d.ts +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.d.ts +1 -1
- package/build/backend/commands/users/bulk/bulk-delete-users.command.js +1 -1
- package/build/backend/commands/users/bulk/bulk-reset-traffic-users.command.d.ts +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.d.ts +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-inbounds.command.d.ts +1 -1
- package/build/backend/commands/users/bulk/bulk-update-users-inbounds.command.js +1 -1
- package/build/backend/commands/users/bulk/bulk-update-users.command.d.ts +1 -1
- package/build/backend/commands/users/bulk/bulk-update-users.command.js +1 -1
- package/build/backend/commands/users/bulk-all/bulk-all-reset-traffic-users.command.d.ts +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.d.ts +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.d.ts +4 -4
- package/build/backend/commands/users/create-user.command.js +1 -1
- package/build/backend/commands/users/delete-user.command.d.ts +1 -1
- package/build/backend/commands/users/delete-user.command.js +1 -1
- package/build/backend/commands/users/get-all-users.command.d.ts +4 -4
- package/build/backend/commands/users/get-all-users.command.js +1 -1
- package/build/backend/commands/users/get-by/get-user-by-email.command.d.ts +4 -4
- 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-short-uuid.command.d.ts +4 -4
- 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-subscription-uuid.command.d.ts +4 -4
- package/build/backend/commands/users/get-by/get-user-by-subscription-uuid.command.js +1 -1
- package/build/backend/commands/users/get-by/get-user-by-telegram-id.command.d.ts +4 -4
- 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.d.ts +4 -4
- package/build/backend/commands/users/get-by/get-user-by-username.command.js +1 -1
- package/build/backend/commands/users/get-user-by-uuid.command.d.ts +4 -4
- package/build/backend/commands/users/get-user-by-uuid.command.js +1 -1
- package/build/backend/commands/users/get-user-usage-by-range.command.d.ts +1 -1
- package/build/backend/commands/users/get-user-usage-by-range.command.js +1 -1
- package/build/backend/commands/users/update-user.command.d.ts +7 -7
- package/build/backend/commands/users/update-user.command.js +1 -1
- package/build/backend/commands/xray/get-config.command.d.ts +1 -1
- package/build/backend/commands/xray/get-config.command.js +1 -1
- package/build/backend/commands/xray/update-config.command.d.ts +1 -1
- package/build/backend/commands/xray/update-config.command.js +1 -1
- package/build/backend/constants/{base-api/base-api-endpoint.d.ts → endpoint-details/endpoint-details.d.ts} +3 -3
- package/build/backend/constants/endpoint-details/endpoint-details.d.ts.map +1 -0
- package/build/backend/constants/{base-api/base-api-endpoint.js → endpoint-details/endpoint-details.js} +2 -2
- package/build/backend/constants/endpoint-details/index.d.ts +2 -0
- package/build/backend/constants/endpoint-details/index.d.ts.map +1 -0
- package/build/backend/constants/{base-api → endpoint-details}/index.js +1 -1
- package/build/backend/constants/index.d.ts +1 -1
- package/build/backend/constants/index.d.ts.map +1 -1
- package/build/backend/constants/index.js +1 -1
- package/build/backend/models/extented-users.schema.d.ts +3 -3
- package/build/frontend/commands/api-tokens/create.command.js +1 -1
- package/build/frontend/commands/api-tokens/delete.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/register.command.js +1 -1
- 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/set-inbound-to-many-hosts.command.js +1 -1
- package/build/frontend/commands/hosts/bulk/set-port-to-many-hosts.command.js +1 -1
- 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/update.command.js +1 -1
- package/build/frontend/commands/hwid/create-user-hwid-device.command.js +1 -1
- package/build/frontend/commands/hwid/delete-user-hwid-device.command.js +1 -1
- package/build/frontend/commands/hwid/get-user-hwid-devices.command.js +1 -1
- package/build/frontend/commands/inbounds/bulk/add-inbound-to-nodes.command.js +1 -1
- package/build/frontend/commands/inbounds/bulk/add-inbound-to-users.command.js +1 -1
- package/build/frontend/commands/inbounds/bulk/remove-inbound-from-nodes.command.js +1 -1
- package/build/frontend/commands/inbounds/bulk/remove-inbound-from-users.command.js +1 -1
- package/build/frontend/commands/inbounds/get-full-inbounds.command.js +1 -1
- package/build/frontend/commands/inbounds/get-inbounds.command.js +1 -1
- package/build/frontend/commands/keygen/get-pubkey.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/restart-all.command.js +1 -1
- package/build/frontend/commands/nodes/actions/restart.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/stats/get-node-user-usage-by-range.command.js +1 -1
- package/build/frontend/commands/nodes/stats/get-nodes-usage-by-range.command.js +1 -1
- package/build/frontend/commands/nodes/stats/get-realtime-usage.command.js +1 -1
- package/build/frontend/commands/nodes/update.command.js +1 -1
- package/build/frontend/commands/subscription/get-subscription-info-by-short-uuid.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/get-template.command.js +1 -1
- package/build/frontend/commands/subscription-template/update-template.command.js +1 -1
- package/build/frontend/commands/system/get-bandwidth-stats.command.js +1 -1
- package/build/frontend/commands/system/get-nodes-statistics.js +1 -1
- package/build/frontend/commands/system/get-stats.command.js +1 -1
- package/build/frontend/commands/users/actions/activate-all-inbounds.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-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-inbounds.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-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 +1 -1
- 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-short-uuid.command.js +1 -1
- package/build/frontend/commands/users/get-by/get-user-by-subscription-uuid.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-by-uuid.command.js +1 -1
- package/build/frontend/commands/users/get-user-usage-by-range.command.js +1 -1
- package/build/frontend/commands/users/update-user.command.js +1 -1
- package/build/frontend/commands/xray/get-config.command.js +1 -1
- package/build/frontend/commands/xray/update-config.command.js +1 -1
- package/build/frontend/constants/{base-api/base-api-endpoint.js → endpoint-details/endpoint-details.js} +2 -2
- package/build/frontend/constants/{base-api → endpoint-details}/index.js +1 -1
- package/build/frontend/constants/index.js +1 -1
- package/package.json +1 -1
- package/build/backend/constants/base-api/base-api-endpoint.d.ts.map +0 -1
- package/build/backend/constants/base-api/index.d.ts +0 -2
- package/build/backend/constants/base-api/index.d.ts.map +0 -1
@@ -9,7 +9,7 @@ var ResetUserTrafficCommand;
|
|
9
9
|
(function (ResetUserTrafficCommand) {
|
10
10
|
ResetUserTrafficCommand.url = api_1.REST_API.USERS.ACTIONS.RESET_TRAFFIC;
|
11
11
|
ResetUserTrafficCommand.TSQ_url = ResetUserTrafficCommand.url(':uuid');
|
12
|
-
ResetUserTrafficCommand.
|
12
|
+
ResetUserTrafficCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.ACTIONS.RESET_TRAFFIC(':uuid'), 'post', 'Reset user traffic');
|
13
13
|
ResetUserTrafficCommand.RequestSchema = zod_1.z.object({
|
14
14
|
uuid: zod_1.z.string().uuid(),
|
15
15
|
});
|
@@ -2,7 +2,7 @@ import { z } from 'zod';
|
|
2
2
|
export declare namespace RevokeUserSubscriptionCommand {
|
3
3
|
const url: (uuid: string) => string;
|
4
4
|
const TSQ_url: string;
|
5
|
-
const
|
5
|
+
const endpointDetails: import("../../../constants").EndpointDetails;
|
6
6
|
const RequestSchema: z.ZodObject<{
|
7
7
|
uuid: z.ZodString;
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
@@ -12,7 +12,7 @@ export declare namespace RevokeUserSubscriptionCommand {
|
|
12
12
|
}>;
|
13
13
|
type Request = z.infer<typeof RequestSchema>;
|
14
14
|
const ResponseSchema: z.ZodObject<{
|
15
|
-
response: z.ZodObject<
|
15
|
+
response: z.ZodObject<{
|
16
16
|
uuid: z.ZodString;
|
17
17
|
subscriptionUuid: z.ZodString;
|
18
18
|
shortUuid: z.ZodString;
|
@@ -66,7 +66,7 @@ export declare namespace RevokeUserSubscriptionCommand {
|
|
66
66
|
network: string | null;
|
67
67
|
security: string | null;
|
68
68
|
}>, "many">;
|
69
|
-
}
|
69
|
+
} & {
|
70
70
|
subscriptionUrl: z.ZodString;
|
71
71
|
lastConnectedNode: z.ZodNullable<z.ZodObject<{
|
72
72
|
connectedAt: z.ZodEffects<z.ZodString, Date, string>;
|
@@ -85,7 +85,7 @@ export declare namespace RevokeUserSubscriptionCommand {
|
|
85
85
|
}, {
|
86
86
|
cryptoLink: string;
|
87
87
|
}>;
|
88
|
-
}
|
88
|
+
}, "strip", z.ZodTypeAny, {
|
89
89
|
status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
|
90
90
|
uuid: string;
|
91
91
|
createdAt: Date;
|
@@ -9,7 +9,7 @@ var RevokeUserSubscriptionCommand;
|
|
9
9
|
(function (RevokeUserSubscriptionCommand) {
|
10
10
|
RevokeUserSubscriptionCommand.url = api_1.REST_API.USERS.ACTIONS.REVOKE_SUBSCRIPTION;
|
11
11
|
RevokeUserSubscriptionCommand.TSQ_url = RevokeUserSubscriptionCommand.url(':uuid');
|
12
|
-
RevokeUserSubscriptionCommand.
|
12
|
+
RevokeUserSubscriptionCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.ACTIONS.REVOKE_SUBSCRIPTION(':uuid'), 'post', 'Revoke user subscription');
|
13
13
|
RevokeUserSubscriptionCommand.RequestSchema = zod_1.z.object({
|
14
14
|
uuid: zod_1.z.string().uuid(),
|
15
15
|
});
|
@@ -2,7 +2,7 @@ import { z } from 'zod';
|
|
2
2
|
export declare namespace BulkDeleteUsersByStatusCommand {
|
3
3
|
const url: "/api/users/bulk/delete-by-status";
|
4
4
|
const TSQ_url: "/api/users/bulk/delete-by-status";
|
5
|
-
const
|
5
|
+
const endpointDetails: import("../../../constants").EndpointDetails;
|
6
6
|
const RequestSchema: z.ZodObject<{
|
7
7
|
status: z.ZodDefault<z.ZodNativeEnum<{
|
8
8
|
readonly ACTIVE: "ACTIVE";
|
@@ -9,7 +9,7 @@ var BulkDeleteUsersByStatusCommand;
|
|
9
9
|
(function (BulkDeleteUsersByStatusCommand) {
|
10
10
|
BulkDeleteUsersByStatusCommand.url = api_1.REST_API.USERS.BULK.DELETE_BY_STATUS;
|
11
11
|
BulkDeleteUsersByStatusCommand.TSQ_url = BulkDeleteUsersByStatusCommand.url;
|
12
|
-
BulkDeleteUsersByStatusCommand.
|
12
|
+
BulkDeleteUsersByStatusCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.BULK.DELETE_BY_STATUS, 'post', 'Bulk delete users by status');
|
13
13
|
BulkDeleteUsersByStatusCommand.RequestSchema = zod_1.z.object({
|
14
14
|
status: models_1.UsersSchema.shape.status,
|
15
15
|
});
|
@@ -2,7 +2,7 @@ import { z } from 'zod';
|
|
2
2
|
export declare namespace BulkDeleteUsersCommand {
|
3
3
|
const url: "/api/users/bulk/delete";
|
4
4
|
const TSQ_url: "/api/users/bulk/delete";
|
5
|
-
const
|
5
|
+
const endpointDetails: import("../../../constants").EndpointDetails;
|
6
6
|
const RequestSchema: z.ZodObject<{
|
7
7
|
uuids: z.ZodArray<z.ZodString, "many">;
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
@@ -8,7 +8,7 @@ var BulkDeleteUsersCommand;
|
|
8
8
|
(function (BulkDeleteUsersCommand) {
|
9
9
|
BulkDeleteUsersCommand.url = api_1.REST_API.USERS.BULK.DELETE;
|
10
10
|
BulkDeleteUsersCommand.TSQ_url = BulkDeleteUsersCommand.url;
|
11
|
-
BulkDeleteUsersCommand.
|
11
|
+
BulkDeleteUsersCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.BULK.DELETE, 'post', 'Bulk delete users by UUIDs');
|
12
12
|
BulkDeleteUsersCommand.RequestSchema = zod_1.z.object({
|
13
13
|
uuids: zod_1.z.array(zod_1.z.string().uuid()),
|
14
14
|
});
|
@@ -2,7 +2,7 @@ import { z } from 'zod';
|
|
2
2
|
export declare namespace BulkResetTrafficUsersCommand {
|
3
3
|
const url: "/api/users/bulk/reset-traffic";
|
4
4
|
const TSQ_url: "/api/users/bulk/reset-traffic";
|
5
|
-
const
|
5
|
+
const endpointDetails: import("../../../constants").EndpointDetails;
|
6
6
|
const RequestSchema: z.ZodObject<{
|
7
7
|
uuids: z.ZodArray<z.ZodString, "many">;
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
@@ -8,7 +8,7 @@ var BulkResetTrafficUsersCommand;
|
|
8
8
|
(function (BulkResetTrafficUsersCommand) {
|
9
9
|
BulkResetTrafficUsersCommand.url = api_1.REST_API.USERS.BULK.RESET_TRAFFIC;
|
10
10
|
BulkResetTrafficUsersCommand.TSQ_url = BulkResetTrafficUsersCommand.url;
|
11
|
-
BulkResetTrafficUsersCommand.
|
11
|
+
BulkResetTrafficUsersCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.BULK.RESET_TRAFFIC, 'post', 'Bulk reset traffic users by UUIDs');
|
12
12
|
BulkResetTrafficUsersCommand.RequestSchema = zod_1.z.object({
|
13
13
|
uuids: zod_1.z.array(zod_1.z.string().uuid()),
|
14
14
|
});
|
@@ -2,7 +2,7 @@ import { z } from 'zod';
|
|
2
2
|
export declare namespace BulkRevokeUsersSubscriptionCommand {
|
3
3
|
const url: "/api/users/bulk/revoke-subscription";
|
4
4
|
const TSQ_url: "/api/users/bulk/revoke-subscription";
|
5
|
-
const
|
5
|
+
const endpointDetails: import("../../../constants").EndpointDetails;
|
6
6
|
const RequestSchema: z.ZodObject<{
|
7
7
|
uuids: z.ZodArray<z.ZodString, "many">;
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
@@ -8,7 +8,7 @@ var BulkRevokeUsersSubscriptionCommand;
|
|
8
8
|
(function (BulkRevokeUsersSubscriptionCommand) {
|
9
9
|
BulkRevokeUsersSubscriptionCommand.url = api_1.REST_API.USERS.BULK.REVOKE_SUBSCRIPTION;
|
10
10
|
BulkRevokeUsersSubscriptionCommand.TSQ_url = BulkRevokeUsersSubscriptionCommand.url;
|
11
|
-
BulkRevokeUsersSubscriptionCommand.
|
11
|
+
BulkRevokeUsersSubscriptionCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.BULK.REVOKE_SUBSCRIPTION, 'post', 'Revoke users subscription by User UUIDs');
|
12
12
|
BulkRevokeUsersSubscriptionCommand.RequestSchema = zod_1.z.object({
|
13
13
|
uuids: zod_1.z.array(zod_1.z.string().uuid()),
|
14
14
|
});
|
@@ -2,7 +2,7 @@ import { z } from 'zod';
|
|
2
2
|
export declare namespace BulkUpdateUsersInboundsCommand {
|
3
3
|
const url: "/api/users/bulk/update-inbounds";
|
4
4
|
const TSQ_url: "/api/users/bulk/update-inbounds";
|
5
|
-
const
|
5
|
+
const endpointDetails: import("../../../constants").EndpointDetails;
|
6
6
|
const RequestSchema: z.ZodObject<{
|
7
7
|
uuids: z.ZodArray<z.ZodString, "many">;
|
8
8
|
activeUserInbounds: z.ZodArray<z.ZodString, "many">;
|
@@ -8,7 +8,7 @@ var BulkUpdateUsersInboundsCommand;
|
|
8
8
|
(function (BulkUpdateUsersInboundsCommand) {
|
9
9
|
BulkUpdateUsersInboundsCommand.url = api_1.REST_API.USERS.BULK.UPDATE_INBOUNDS;
|
10
10
|
BulkUpdateUsersInboundsCommand.TSQ_url = BulkUpdateUsersInboundsCommand.url;
|
11
|
-
BulkUpdateUsersInboundsCommand.
|
11
|
+
BulkUpdateUsersInboundsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.BULK.UPDATE_INBOUNDS, 'post', 'Bulk update users inbounds by UUIDs');
|
12
12
|
BulkUpdateUsersInboundsCommand.RequestSchema = zod_1.z.object({
|
13
13
|
uuids: zod_1.z.array(zod_1.z.string().uuid()),
|
14
14
|
activeUserInbounds: zod_1.z.array(zod_1.z.string().uuid(), {
|
@@ -2,7 +2,7 @@ import { z } from 'zod';
|
|
2
2
|
export declare namespace BulkUpdateUsersCommand {
|
3
3
|
const url: "/api/users/bulk/update";
|
4
4
|
const TSQ_url: "/api/users/bulk/update";
|
5
|
-
const
|
5
|
+
const endpointDetails: import("../../../constants").EndpointDetails;
|
6
6
|
const RequestSchema: z.ZodObject<{
|
7
7
|
uuids: z.ZodArray<z.ZodString, "many">;
|
8
8
|
fields: z.ZodObject<{
|
@@ -10,7 +10,7 @@ var BulkUpdateUsersCommand;
|
|
10
10
|
(function (BulkUpdateUsersCommand) {
|
11
11
|
BulkUpdateUsersCommand.url = api_1.REST_API.USERS.BULK.UPDATE;
|
12
12
|
BulkUpdateUsersCommand.TSQ_url = BulkUpdateUsersCommand.url;
|
13
|
-
BulkUpdateUsersCommand.
|
13
|
+
BulkUpdateUsersCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.BULK.UPDATE, 'post', 'Bulk update users by UUIDs');
|
14
14
|
BulkUpdateUsersCommand.RequestSchema = zod_1.z.object({
|
15
15
|
uuids: zod_1.z.array(zod_1.z.string().uuid()),
|
16
16
|
fields: zod_1.z.object({
|
@@ -2,7 +2,7 @@ import { z } from 'zod';
|
|
2
2
|
export declare namespace BulkAllResetTrafficUsersCommand {
|
3
3
|
const url: "/api/users/bulk/all/reset-traffic";
|
4
4
|
const TSQ_url: "/api/users/bulk/all/reset-traffic";
|
5
|
-
const
|
5
|
+
const endpointDetails: import("../../../constants").EndpointDetails;
|
6
6
|
const ResponseSchema: z.ZodObject<{
|
7
7
|
response: z.ZodObject<{
|
8
8
|
eventSent: z.ZodBoolean;
|
@@ -8,7 +8,7 @@ var BulkAllResetTrafficUsersCommand;
|
|
8
8
|
(function (BulkAllResetTrafficUsersCommand) {
|
9
9
|
BulkAllResetTrafficUsersCommand.url = api_1.REST_API.USERS.BULK.ALL.RESET_TRAFFIC;
|
10
10
|
BulkAllResetTrafficUsersCommand.TSQ_url = BulkAllResetTrafficUsersCommand.url;
|
11
|
-
BulkAllResetTrafficUsersCommand.
|
11
|
+
BulkAllResetTrafficUsersCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.BULK.ALL.RESET_TRAFFIC, 'post', 'Reset user used traffic for all users');
|
12
12
|
BulkAllResetTrafficUsersCommand.ResponseSchema = zod_1.z.object({
|
13
13
|
response: zod_1.z.object({
|
14
14
|
eventSent: zod_1.z.boolean(),
|
@@ -2,7 +2,7 @@ import { z } from 'zod';
|
|
2
2
|
export declare namespace BulkAllUpdateUsersCommand {
|
3
3
|
const url: "/api/users/bulk/all/update";
|
4
4
|
const TSQ_url: "/api/users/bulk/all/update";
|
5
|
-
const
|
5
|
+
const endpointDetails: import("../../../constants").EndpointDetails;
|
6
6
|
const RequestSchema: z.ZodObject<{
|
7
7
|
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<{
|
8
8
|
readonly ACTIVE: "ACTIVE";
|
@@ -10,7 +10,7 @@ var BulkAllUpdateUsersCommand;
|
|
10
10
|
(function (BulkAllUpdateUsersCommand) {
|
11
11
|
BulkAllUpdateUsersCommand.url = api_1.REST_API.USERS.BULK.ALL.UPDATE;
|
12
12
|
BulkAllUpdateUsersCommand.TSQ_url = BulkAllUpdateUsersCommand.url;
|
13
|
-
BulkAllUpdateUsersCommand.
|
13
|
+
BulkAllUpdateUsersCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.BULK.ALL.UPDATE, 'post', 'Bulk update all users');
|
14
14
|
BulkAllUpdateUsersCommand.RequestSchema = zod_1.z.object({
|
15
15
|
status: models_1.UsersSchema.shape.status.optional(),
|
16
16
|
trafficLimitBytes: zod_1.z.optional(zod_1.z
|
@@ -2,7 +2,7 @@ import { z } from 'zod';
|
|
2
2
|
export declare namespace CreateUserCommand {
|
3
3
|
const url: "/api/users/";
|
4
4
|
const TSQ_url: "/api/users/";
|
5
|
-
const
|
5
|
+
const endpointDetails: import("../../constants").EndpointDetails;
|
6
6
|
const RequestSchema: z.ZodObject<{
|
7
7
|
username: z.ZodString;
|
8
8
|
status: z.ZodDefault<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<{
|
@@ -73,7 +73,7 @@ export declare namespace CreateUserCommand {
|
|
73
73
|
}>;
|
74
74
|
type Request = z.infer<typeof RequestSchema>;
|
75
75
|
const ResponseSchema: z.ZodObject<{
|
76
|
-
response: z.ZodObject<
|
76
|
+
response: z.ZodObject<{
|
77
77
|
uuid: z.ZodString;
|
78
78
|
subscriptionUuid: z.ZodString;
|
79
79
|
shortUuid: z.ZodString;
|
@@ -127,7 +127,7 @@ export declare namespace CreateUserCommand {
|
|
127
127
|
network: string | null;
|
128
128
|
security: string | null;
|
129
129
|
}>, "many">;
|
130
|
-
}
|
130
|
+
} & {
|
131
131
|
subscriptionUrl: z.ZodString;
|
132
132
|
lastConnectedNode: z.ZodNullable<z.ZodObject<{
|
133
133
|
connectedAt: z.ZodEffects<z.ZodString, Date, string>;
|
@@ -146,7 +146,7 @@ export declare namespace CreateUserCommand {
|
|
146
146
|
}, {
|
147
147
|
cryptoLink: string;
|
148
148
|
}>;
|
149
|
-
}
|
149
|
+
}, "strip", z.ZodTypeAny, {
|
150
150
|
status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
|
151
151
|
uuid: string;
|
152
152
|
createdAt: Date;
|
@@ -9,7 +9,7 @@ var CreateUserCommand;
|
|
9
9
|
(function (CreateUserCommand) {
|
10
10
|
CreateUserCommand.url = api_1.REST_API.USERS.CREATE;
|
11
11
|
CreateUserCommand.TSQ_url = CreateUserCommand.url;
|
12
|
-
CreateUserCommand.
|
12
|
+
CreateUserCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.CREATE, 'post', 'Create a new user');
|
13
13
|
CreateUserCommand.RequestSchema = zod_1.z.object({
|
14
14
|
username: zod_1.z
|
15
15
|
.string({
|
@@ -2,7 +2,7 @@ import { z } from 'zod';
|
|
2
2
|
export declare namespace DeleteUserCommand {
|
3
3
|
const url: (uuid: string) => string;
|
4
4
|
const TSQ_url: string;
|
5
|
-
const
|
5
|
+
const endpointDetails: import("../../constants").EndpointDetails;
|
6
6
|
const RequestSchema: z.ZodObject<{
|
7
7
|
uuid: z.ZodString;
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
@@ -8,7 +8,7 @@ var DeleteUserCommand;
|
|
8
8
|
(function (DeleteUserCommand) {
|
9
9
|
DeleteUserCommand.url = api_1.REST_API.USERS.DELETE;
|
10
10
|
DeleteUserCommand.TSQ_url = DeleteUserCommand.url(':uuid');
|
11
|
-
DeleteUserCommand.
|
11
|
+
DeleteUserCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.DELETE(':uuid'), 'delete', 'Delete user');
|
12
12
|
DeleteUserCommand.RequestSchema = zod_1.z.object({
|
13
13
|
uuid: zod_1.z.string().uuid(),
|
14
14
|
});
|
@@ -2,7 +2,7 @@ import { z } from 'zod';
|
|
2
2
|
export declare namespace GetAllUsersCommand {
|
3
3
|
const url: "/api/users/";
|
4
4
|
const TSQ_url: "/api/users/";
|
5
|
-
const
|
5
|
+
const endpointDetails: import("../../constants").EndpointDetails;
|
6
6
|
const RequestQuerySchema: z.ZodObject<{
|
7
7
|
start: z.ZodDefault<z.ZodNumber>;
|
8
8
|
size: z.ZodDefault<z.ZodNumber>;
|
@@ -58,7 +58,7 @@ export declare namespace GetAllUsersCommand {
|
|
58
58
|
type RequestQuery = z.infer<typeof RequestQuerySchema>;
|
59
59
|
const ResponseSchema: z.ZodObject<{
|
60
60
|
response: z.ZodObject<{
|
61
|
-
users: z.ZodArray<z.ZodObject<
|
61
|
+
users: z.ZodArray<z.ZodObject<{
|
62
62
|
uuid: z.ZodString;
|
63
63
|
subscriptionUuid: z.ZodString;
|
64
64
|
shortUuid: z.ZodString;
|
@@ -112,7 +112,7 @@ export declare namespace GetAllUsersCommand {
|
|
112
112
|
network: string | null;
|
113
113
|
security: string | null;
|
114
114
|
}>, "many">;
|
115
|
-
}
|
115
|
+
} & {
|
116
116
|
subscriptionUrl: z.ZodString;
|
117
117
|
lastConnectedNode: z.ZodNullable<z.ZodObject<{
|
118
118
|
connectedAt: z.ZodEffects<z.ZodString, Date, string>;
|
@@ -131,7 +131,7 @@ export declare namespace GetAllUsersCommand {
|
|
131
131
|
}, {
|
132
132
|
cryptoLink: string;
|
133
133
|
}>;
|
134
|
-
}
|
134
|
+
}, "strip", z.ZodTypeAny, {
|
135
135
|
status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
|
136
136
|
uuid: string;
|
137
137
|
createdAt: Date;
|
@@ -9,7 +9,7 @@ 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.
|
12
|
+
GetAllUsersCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.GET, 'get', 'Get all users');
|
13
13
|
const FilterSchema = zod_1.z.object({
|
14
14
|
id: zod_1.z.string(),
|
15
15
|
value: zod_1.z.unknown(),
|
@@ -2,7 +2,7 @@ import { z } from 'zod';
|
|
2
2
|
export declare namespace GetUserByEmailCommand {
|
3
3
|
const url: (email: string) => string;
|
4
4
|
const TSQ_url: string;
|
5
|
-
const
|
5
|
+
const endpointDetails: import("../../../constants").EndpointDetails;
|
6
6
|
const RequestSchema: z.ZodObject<{
|
7
7
|
email: z.ZodString;
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
@@ -12,7 +12,7 @@ export declare namespace GetUserByEmailCommand {
|
|
12
12
|
}>;
|
13
13
|
type Request = z.infer<typeof RequestSchema>;
|
14
14
|
const ResponseSchema: z.ZodObject<{
|
15
|
-
response: z.ZodArray<z.ZodObject<
|
15
|
+
response: z.ZodArray<z.ZodObject<{
|
16
16
|
uuid: z.ZodString;
|
17
17
|
subscriptionUuid: z.ZodString;
|
18
18
|
shortUuid: z.ZodString;
|
@@ -66,7 +66,7 @@ export declare namespace GetUserByEmailCommand {
|
|
66
66
|
network: string | null;
|
67
67
|
security: string | null;
|
68
68
|
}>, "many">;
|
69
|
-
}
|
69
|
+
} & {
|
70
70
|
subscriptionUrl: z.ZodString;
|
71
71
|
lastConnectedNode: z.ZodNullable<z.ZodObject<{
|
72
72
|
connectedAt: z.ZodEffects<z.ZodString, Date, string>;
|
@@ -85,7 +85,7 @@ export declare namespace GetUserByEmailCommand {
|
|
85
85
|
}, {
|
86
86
|
cryptoLink: string;
|
87
87
|
}>;
|
88
|
-
}
|
88
|
+
}, "strip", z.ZodTypeAny, {
|
89
89
|
status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
|
90
90
|
uuid: string;
|
91
91
|
createdAt: Date;
|
@@ -9,7 +9,7 @@ var GetUserByEmailCommand;
|
|
9
9
|
(function (GetUserByEmailCommand) {
|
10
10
|
GetUserByEmailCommand.url = api_1.REST_API.USERS.GET_BY.EMAIL;
|
11
11
|
GetUserByEmailCommand.TSQ_url = GetUserByEmailCommand.url(':email');
|
12
|
-
GetUserByEmailCommand.
|
12
|
+
GetUserByEmailCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.GET_BY.EMAIL(':email'), 'get', 'Get users by email');
|
13
13
|
GetUserByEmailCommand.RequestSchema = zod_1.z.object({
|
14
14
|
email: zod_1.z.string().email(),
|
15
15
|
});
|
@@ -2,7 +2,7 @@ import { z } from 'zod';
|
|
2
2
|
export declare namespace GetUserByShortUuidCommand {
|
3
3
|
const url: (shortUuid: string) => string;
|
4
4
|
const TSQ_url: string;
|
5
|
-
const
|
5
|
+
const endpointDetails: import("../../../constants").EndpointDetails;
|
6
6
|
const RequestSchema: z.ZodObject<{
|
7
7
|
shortUuid: z.ZodString;
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
@@ -12,7 +12,7 @@ export declare namespace GetUserByShortUuidCommand {
|
|
12
12
|
}>;
|
13
13
|
type Request = z.infer<typeof RequestSchema>;
|
14
14
|
const ResponseSchema: z.ZodObject<{
|
15
|
-
response: z.ZodObject<
|
15
|
+
response: z.ZodObject<{
|
16
16
|
uuid: z.ZodString;
|
17
17
|
subscriptionUuid: z.ZodString;
|
18
18
|
shortUuid: z.ZodString;
|
@@ -66,7 +66,7 @@ export declare namespace GetUserByShortUuidCommand {
|
|
66
66
|
network: string | null;
|
67
67
|
security: string | null;
|
68
68
|
}>, "many">;
|
69
|
-
}
|
69
|
+
} & {
|
70
70
|
subscriptionUrl: z.ZodString;
|
71
71
|
lastConnectedNode: z.ZodNullable<z.ZodObject<{
|
72
72
|
connectedAt: z.ZodEffects<z.ZodString, Date, string>;
|
@@ -85,7 +85,7 @@ export declare namespace GetUserByShortUuidCommand {
|
|
85
85
|
}, {
|
86
86
|
cryptoLink: string;
|
87
87
|
}>;
|
88
|
-
}
|
88
|
+
}, "strip", z.ZodTypeAny, {
|
89
89
|
status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
|
90
90
|
uuid: string;
|
91
91
|
createdAt: Date;
|
@@ -9,7 +9,7 @@ var GetUserByShortUuidCommand;
|
|
9
9
|
(function (GetUserByShortUuidCommand) {
|
10
10
|
GetUserByShortUuidCommand.url = api_1.REST_API.USERS.GET_BY.SHORT_UUID;
|
11
11
|
GetUserByShortUuidCommand.TSQ_url = GetUserByShortUuidCommand.url(':shortUuid');
|
12
|
-
GetUserByShortUuidCommand.
|
12
|
+
GetUserByShortUuidCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.GET_BY.SHORT_UUID(':shortUuid'), 'get', 'Get user by Short UUID');
|
13
13
|
GetUserByShortUuidCommand.RequestSchema = zod_1.z.object({
|
14
14
|
shortUuid: zod_1.z.string(),
|
15
15
|
});
|
@@ -2,7 +2,7 @@ import { z } from 'zod';
|
|
2
2
|
export declare namespace GetUserBySubscriptionUuidCommand {
|
3
3
|
const url: (subscriptionUuid: string) => string;
|
4
4
|
const TSQ_url: string;
|
5
|
-
const
|
5
|
+
const endpointDetails: import("../../../constants").EndpointDetails;
|
6
6
|
const RequestSchema: z.ZodObject<{
|
7
7
|
subscriptionUuid: z.ZodString;
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
@@ -12,7 +12,7 @@ export declare namespace GetUserBySubscriptionUuidCommand {
|
|
12
12
|
}>;
|
13
13
|
type Request = z.infer<typeof RequestSchema>;
|
14
14
|
const ResponseSchema: z.ZodObject<{
|
15
|
-
response: z.ZodObject<
|
15
|
+
response: z.ZodObject<{
|
16
16
|
uuid: z.ZodString;
|
17
17
|
subscriptionUuid: z.ZodString;
|
18
18
|
shortUuid: z.ZodString;
|
@@ -66,7 +66,7 @@ export declare namespace GetUserBySubscriptionUuidCommand {
|
|
66
66
|
network: string | null;
|
67
67
|
security: string | null;
|
68
68
|
}>, "many">;
|
69
|
-
}
|
69
|
+
} & {
|
70
70
|
subscriptionUrl: z.ZodString;
|
71
71
|
lastConnectedNode: z.ZodNullable<z.ZodObject<{
|
72
72
|
connectedAt: z.ZodEffects<z.ZodString, Date, string>;
|
@@ -85,7 +85,7 @@ export declare namespace GetUserBySubscriptionUuidCommand {
|
|
85
85
|
}, {
|
86
86
|
cryptoLink: string;
|
87
87
|
}>;
|
88
|
-
}
|
88
|
+
}, "strip", z.ZodTypeAny, {
|
89
89
|
status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
|
90
90
|
uuid: string;
|
91
91
|
createdAt: Date;
|
@@ -9,7 +9,7 @@ var GetUserBySubscriptionUuidCommand;
|
|
9
9
|
(function (GetUserBySubscriptionUuidCommand) {
|
10
10
|
GetUserBySubscriptionUuidCommand.url = api_1.REST_API.USERS.GET_BY.SUBSCRIPTION_UUID;
|
11
11
|
GetUserBySubscriptionUuidCommand.TSQ_url = GetUserBySubscriptionUuidCommand.url(':subscriptionUuid');
|
12
|
-
GetUserBySubscriptionUuidCommand.
|
12
|
+
GetUserBySubscriptionUuidCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.GET_BY.SUBSCRIPTION_UUID(':subscriptionUuid'), 'get', 'Get user by subscription UUID');
|
13
13
|
GetUserBySubscriptionUuidCommand.RequestSchema = zod_1.z.object({
|
14
14
|
subscriptionUuid: zod_1.z.string(),
|
15
15
|
});
|
@@ -2,7 +2,7 @@ import { z } from 'zod';
|
|
2
2
|
export declare namespace GetUserByTelegramIdCommand {
|
3
3
|
const url: (telegramId: string) => string;
|
4
4
|
const TSQ_url: string;
|
5
|
-
const
|
5
|
+
const endpointDetails: import("../../../constants").EndpointDetails;
|
6
6
|
const RequestSchema: z.ZodObject<{
|
7
7
|
telegramId: z.ZodString;
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
@@ -12,7 +12,7 @@ export declare namespace GetUserByTelegramIdCommand {
|
|
12
12
|
}>;
|
13
13
|
type Request = z.infer<typeof RequestSchema>;
|
14
14
|
const ResponseSchema: z.ZodObject<{
|
15
|
-
response: z.ZodArray<z.ZodObject<
|
15
|
+
response: z.ZodArray<z.ZodObject<{
|
16
16
|
uuid: z.ZodString;
|
17
17
|
subscriptionUuid: z.ZodString;
|
18
18
|
shortUuid: z.ZodString;
|
@@ -66,7 +66,7 @@ export declare namespace GetUserByTelegramIdCommand {
|
|
66
66
|
network: string | null;
|
67
67
|
security: string | null;
|
68
68
|
}>, "many">;
|
69
|
-
}
|
69
|
+
} & {
|
70
70
|
subscriptionUrl: z.ZodString;
|
71
71
|
lastConnectedNode: z.ZodNullable<z.ZodObject<{
|
72
72
|
connectedAt: z.ZodEffects<z.ZodString, Date, string>;
|
@@ -85,7 +85,7 @@ export declare namespace GetUserByTelegramIdCommand {
|
|
85
85
|
}, {
|
86
86
|
cryptoLink: string;
|
87
87
|
}>;
|
88
|
-
}
|
88
|
+
}, "strip", z.ZodTypeAny, {
|
89
89
|
status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
|
90
90
|
uuid: string;
|
91
91
|
createdAt: Date;
|
@@ -9,7 +9,7 @@ var GetUserByTelegramIdCommand;
|
|
9
9
|
(function (GetUserByTelegramIdCommand) {
|
10
10
|
GetUserByTelegramIdCommand.url = api_1.REST_API.USERS.GET_BY.TELEGRAM_ID;
|
11
11
|
GetUserByTelegramIdCommand.TSQ_url = GetUserByTelegramIdCommand.url(':telegramId');
|
12
|
-
GetUserByTelegramIdCommand.
|
12
|
+
GetUserByTelegramIdCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.GET_BY.TELEGRAM_ID(':telegramId'), 'get', 'Get users by telegram ID');
|
13
13
|
GetUserByTelegramIdCommand.RequestSchema = zod_1.z.object({
|
14
14
|
telegramId: zod_1.z.string(),
|
15
15
|
});
|
@@ -2,7 +2,7 @@ import { z } from 'zod';
|
|
2
2
|
export declare namespace GetUserByUsernameCommand {
|
3
3
|
const url: (username: string) => string;
|
4
4
|
const TSQ_url: string;
|
5
|
-
const
|
5
|
+
const endpointDetails: import("../../../constants").EndpointDetails;
|
6
6
|
const RequestSchema: z.ZodObject<{
|
7
7
|
username: z.ZodString;
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
@@ -12,7 +12,7 @@ export declare namespace GetUserByUsernameCommand {
|
|
12
12
|
}>;
|
13
13
|
type Request = z.infer<typeof RequestSchema>;
|
14
14
|
const ResponseSchema: z.ZodObject<{
|
15
|
-
response: z.ZodObject<
|
15
|
+
response: z.ZodObject<{
|
16
16
|
uuid: z.ZodString;
|
17
17
|
subscriptionUuid: z.ZodString;
|
18
18
|
shortUuid: z.ZodString;
|
@@ -66,7 +66,7 @@ export declare namespace GetUserByUsernameCommand {
|
|
66
66
|
network: string | null;
|
67
67
|
security: string | null;
|
68
68
|
}>, "many">;
|
69
|
-
}
|
69
|
+
} & {
|
70
70
|
subscriptionUrl: z.ZodString;
|
71
71
|
lastConnectedNode: z.ZodNullable<z.ZodObject<{
|
72
72
|
connectedAt: z.ZodEffects<z.ZodString, Date, string>;
|
@@ -85,7 +85,7 @@ export declare namespace GetUserByUsernameCommand {
|
|
85
85
|
}, {
|
86
86
|
cryptoLink: string;
|
87
87
|
}>;
|
88
|
-
}
|
88
|
+
}, "strip", z.ZodTypeAny, {
|
89
89
|
status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
|
90
90
|
uuid: string;
|
91
91
|
createdAt: Date;
|
@@ -9,7 +9,7 @@ var GetUserByUsernameCommand;
|
|
9
9
|
(function (GetUserByUsernameCommand) {
|
10
10
|
GetUserByUsernameCommand.url = api_1.REST_API.USERS.GET_BY.USERNAME;
|
11
11
|
GetUserByUsernameCommand.TSQ_url = GetUserByUsernameCommand.url(':username');
|
12
|
-
GetUserByUsernameCommand.
|
12
|
+
GetUserByUsernameCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.GET_BY.USERNAME(':username'), 'get', 'Get user by username');
|
13
13
|
GetUserByUsernameCommand.RequestSchema = zod_1.z.object({
|
14
14
|
username: zod_1.z.string(),
|
15
15
|
});
|
@@ -2,7 +2,7 @@ import { z } from 'zod';
|
|
2
2
|
export declare namespace GetUserByUuidCommand {
|
3
3
|
const url: (uuid: string) => string;
|
4
4
|
const TSQ_url: string;
|
5
|
-
const
|
5
|
+
const endpointDetails: import("../../constants").EndpointDetails;
|
6
6
|
const RequestSchema: z.ZodObject<{
|
7
7
|
uuid: z.ZodString;
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
@@ -12,7 +12,7 @@ export declare namespace GetUserByUuidCommand {
|
|
12
12
|
}>;
|
13
13
|
type Request = z.infer<typeof RequestSchema>;
|
14
14
|
const ResponseSchema: z.ZodObject<{
|
15
|
-
response: z.ZodObject<
|
15
|
+
response: z.ZodObject<{
|
16
16
|
uuid: z.ZodString;
|
17
17
|
subscriptionUuid: z.ZodString;
|
18
18
|
shortUuid: z.ZodString;
|
@@ -66,7 +66,7 @@ export declare namespace GetUserByUuidCommand {
|
|
66
66
|
network: string | null;
|
67
67
|
security: string | null;
|
68
68
|
}>, "many">;
|
69
|
-
}
|
69
|
+
} & {
|
70
70
|
subscriptionUrl: z.ZodString;
|
71
71
|
lastConnectedNode: z.ZodNullable<z.ZodObject<{
|
72
72
|
connectedAt: z.ZodEffects<z.ZodString, Date, string>;
|
@@ -85,7 +85,7 @@ export declare namespace GetUserByUuidCommand {
|
|
85
85
|
}, {
|
86
86
|
cryptoLink: string;
|
87
87
|
}>;
|
88
|
-
}
|
88
|
+
}, "strip", z.ZodTypeAny, {
|
89
89
|
status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
|
90
90
|
uuid: string;
|
91
91
|
createdAt: Date;
|
@@ -9,7 +9,7 @@ var GetUserByUuidCommand;
|
|
9
9
|
(function (GetUserByUuidCommand) {
|
10
10
|
GetUserByUuidCommand.url = api_1.REST_API.USERS.GET_BY_UUID;
|
11
11
|
GetUserByUuidCommand.TSQ_url = GetUserByUuidCommand.url(':uuid');
|
12
|
-
GetUserByUuidCommand.
|
12
|
+
GetUserByUuidCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.GET_BY_UUID(':uuid'), 'get', 'Get user by UUID');
|
13
13
|
GetUserByUuidCommand.RequestSchema = zod_1.z.object({
|
14
14
|
uuid: zod_1.z.string().uuid(),
|
15
15
|
});
|
@@ -2,7 +2,7 @@ import { z } from 'zod';
|
|
2
2
|
export declare namespace GetUserUsageByRangeCommand {
|
3
3
|
const url: (uuid: string) => string;
|
4
4
|
const TSQ_url: string;
|
5
|
-
const
|
5
|
+
const endpointDetails: import("../../constants").EndpointDetails;
|
6
6
|
const RequestSchema: z.ZodObject<{
|
7
7
|
uuid: z.ZodString;
|
8
8
|
}, "strip", z.ZodTypeAny, {
|