@remnawave/backend-contract 2.9.0 → 2.9.1
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/delete.command.d.ts +0 -8
- package/build/backend/commands/api-tokens/delete.command.d.ts.map +1 -1
- package/build/backend/commands/api-tokens/delete.command.js +0 -3
- package/build/backend/commands/config-profiles/delete-config-profile.command.d.ts +0 -18
- package/build/backend/commands/config-profiles/delete-config-profile.command.d.ts.map +1 -1
- package/build/backend/commands/config-profiles/delete-config-profile.command.js +0 -5
- package/build/backend/commands/external-squads/bulk-actions/add-users-to-external-squad.command.d.ts +0 -18
- package/build/backend/commands/external-squads/bulk-actions/add-users-to-external-squad.command.d.ts.map +1 -1
- package/build/backend/commands/external-squads/bulk-actions/add-users-to-external-squad.command.js +0 -5
- package/build/backend/commands/external-squads/bulk-actions/delete-users-from-external-squad.command.d.ts +0 -18
- package/build/backend/commands/external-squads/bulk-actions/delete-users-from-external-squad.command.d.ts.map +1 -1
- package/build/backend/commands/external-squads/bulk-actions/delete-users-from-external-squad.command.js +0 -5
- package/build/backend/commands/external-squads/delete-external-squad.command.d.ts +0 -18
- package/build/backend/commands/external-squads/delete-external-squad.command.d.ts.map +1 -1
- package/build/backend/commands/external-squads/delete-external-squad.command.js +0 -5
- package/build/backend/commands/hosts/delete.command.d.ts +0 -18
- package/build/backend/commands/hosts/delete.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/delete.command.js +0 -5
- package/build/backend/commands/infra-billing/delete-bill-record.command.d.ts +0 -104
- package/build/backend/commands/infra-billing/delete-bill-record.command.d.ts.map +1 -1
- package/build/backend/commands/infra-billing/delete-bill-record.command.js +0 -7
- package/build/backend/commands/infra-billing/delete-billing-node.command.d.ts +0 -743
- package/build/backend/commands/infra-billing/delete-billing-node.command.d.ts.map +1 -1
- package/build/backend/commands/infra-billing/delete-billing-node.command.js +0 -14
- package/build/backend/commands/infra-billing/delete-infra-provider.command.d.ts +0 -18
- package/build/backend/commands/infra-billing/delete-infra-provider.command.d.ts.map +1 -1
- package/build/backend/commands/infra-billing/delete-infra-provider.command.js +0 -5
- package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.d.ts +0 -18
- package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.d.ts.map +1 -1
- package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.js +0 -5
- package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.d.ts +0 -18
- package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.d.ts.map +1 -1
- package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.js +0 -5
- package/build/backend/commands/internal-squads/delete-internal-squad.command.d.ts +0 -18
- package/build/backend/commands/internal-squads/delete-internal-squad.command.d.ts.map +1 -1
- package/build/backend/commands/internal-squads/delete-internal-squad.command.js +0 -5
- package/build/backend/commands/ip-control/drop-connections.command.d.ts +0 -18
- package/build/backend/commands/ip-control/drop-connections.command.d.ts.map +1 -1
- package/build/backend/commands/ip-control/drop-connections.command.js +0 -5
- package/build/backend/commands/node-plugins/delete-node-plugin.command.d.ts +0 -18
- package/build/backend/commands/node-plugins/delete-node-plugin.command.d.ts.map +1 -1
- package/build/backend/commands/node-plugins/delete-node-plugin.command.js +0 -5
- package/build/backend/commands/node-plugins/executor.command.d.ts +0 -18
- package/build/backend/commands/node-plugins/executor.command.d.ts.map +1 -1
- package/build/backend/commands/node-plugins/executor.command.js +0 -5
- package/build/backend/commands/node-plugins/torrent-blocker/truncate-torrent-blocker-reports.command.d.ts +0 -711
- package/build/backend/commands/node-plugins/torrent-blocker/truncate-torrent-blocker-reports.command.d.ts.map +1 -1
- package/build/backend/commands/node-plugins/torrent-blocker/truncate-torrent-blocker-reports.command.js +0 -8
- package/build/backend/commands/nodes/actions/disable.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/disable.command.js +2 -4
- package/build/backend/commands/nodes/actions/enable.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/enable.command.js +2 -4
- package/build/backend/commands/nodes/actions/reset-traffic.command.d.ts +0 -18
- package/build/backend/commands/nodes/actions/reset-traffic.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/reset-traffic.command.js +0 -5
- package/build/backend/commands/nodes/actions/restart-all.command.d.ts +0 -18
- package/build/backend/commands/nodes/actions/restart-all.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/restart-all.command.js +0 -5
- package/build/backend/commands/nodes/actions/restart.command.d.ts +0 -18
- package/build/backend/commands/nodes/actions/restart.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/restart.command.js +0 -5
- package/build/backend/commands/nodes/bulk-actions/actions.command.d.ts +0 -18
- package/build/backend/commands/nodes/bulk-actions/actions.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/bulk-actions/actions.command.js +0 -5
- package/build/backend/commands/nodes/bulk-actions/bulk-update.command.d.ts +0 -18
- package/build/backend/commands/nodes/bulk-actions/bulk-update.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/bulk-actions/bulk-update.command.js +0 -5
- package/build/backend/commands/nodes/bulk-actions/profile-modification.command.d.ts +0 -18
- package/build/backend/commands/nodes/bulk-actions/profile-modification.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/bulk-actions/profile-modification.command.js +0 -5
- package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/create.command.js +2 -4
- package/build/backend/commands/nodes/delete.command.d.ts +0 -18
- package/build/backend/commands/nodes/delete.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/delete.command.js +0 -5
- package/build/backend/commands/nodes/get-node.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/get-node.command.js +2 -4
- package/build/backend/commands/nodes/node.response.d.ts +581 -0
- package/build/backend/commands/nodes/node.response.d.ts.map +1 -0
- package/build/backend/commands/nodes/node.response.js +8 -0
- package/build/backend/commands/nodes/update.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/update.command.js +2 -3
- package/build/backend/commands/passkeys/delete-passkey.command.d.ts +0 -53
- package/build/backend/commands/passkeys/delete-passkey.command.d.ts.map +1 -1
- package/build/backend/commands/passkeys/delete-passkey.command.js +0 -22
- package/build/backend/commands/snippets/delete-snippet.command.d.ts +0 -44
- package/build/backend/commands/snippets/delete-snippet.command.d.ts.map +1 -1
- package/build/backend/commands/snippets/delete-snippet.command.js +0 -7
- package/build/backend/commands/subscription-page-configs/delete-subpage-config.command.d.ts +0 -18
- package/build/backend/commands/subscription-page-configs/delete-subpage-config.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-page-configs/delete-subpage-config.command.js +0 -5
- package/build/backend/commands/subscription-template/delete-subscription-template.command.d.ts +0 -18
- package/build/backend/commands/subscription-template/delete-subscription-template.command.d.ts.map +1 -1
- package/build/backend/commands/subscription-template/delete-subscription-template.command.js +0 -5
- package/build/backend/commands/users/actions/disable-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/actions/disable-user.command.js +2 -4
- package/build/backend/commands/users/actions/enable-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/actions/enable-user.command.js +2 -4
- package/build/backend/commands/users/actions/reset-user-traffic.command.d.ts.map +1 -1
- package/build/backend/commands/users/actions/reset-user-traffic.command.js +2 -4
- package/build/backend/commands/users/actions/revoke-user-subscription.command.d.ts.map +1 -1
- package/build/backend/commands/users/actions/revoke-user-subscription.command.js +2 -4
- package/build/backend/commands/users/bulk/bulk-delete-users-by-status.command.d.ts +0 -18
- package/build/backend/commands/users/bulk/bulk-delete-users-by-status.command.d.ts.map +1 -1
- package/build/backend/commands/users/bulk/bulk-delete-users-by-status.command.js +0 -5
- package/build/backend/commands/users/bulk/bulk-delete-users.command.d.ts +0 -18
- package/build/backend/commands/users/bulk/bulk-delete-users.command.d.ts.map +1 -1
- package/build/backend/commands/users/bulk/bulk-delete-users.command.js +0 -5
- package/build/backend/commands/users/bulk/bulk-extend-expiration-date.command.d.ts +0 -18
- package/build/backend/commands/users/bulk/bulk-extend-expiration-date.command.d.ts.map +1 -1
- package/build/backend/commands/users/bulk/bulk-extend-expiration-date.command.js +0 -5
- package/build/backend/commands/users/bulk/bulk-reset-traffic-users.command.d.ts +0 -18
- package/build/backend/commands/users/bulk/bulk-reset-traffic-users.command.d.ts.map +1 -1
- package/build/backend/commands/users/bulk/bulk-reset-traffic-users.command.js +0 -5
- package/build/backend/commands/users/bulk/bulk-revoke-users-subscription.command.d.ts +0 -18
- package/build/backend/commands/users/bulk/bulk-revoke-users-subscription.command.d.ts.map +1 -1
- package/build/backend/commands/users/bulk/bulk-revoke-users-subscription.command.js +0 -5
- package/build/backend/commands/users/bulk/bulk-update-users-squads.command.d.ts +0 -18
- package/build/backend/commands/users/bulk/bulk-update-users-squads.command.d.ts.map +1 -1
- package/build/backend/commands/users/bulk/bulk-update-users-squads.command.js +0 -5
- package/build/backend/commands/users/bulk/bulk-update-users.command.d.ts +0 -18
- package/build/backend/commands/users/bulk/bulk-update-users.command.d.ts.map +1 -1
- package/build/backend/commands/users/bulk/bulk-update-users.command.js +0 -5
- package/build/backend/commands/users/bulk-all/bulk-all-extend-expiration-date.command.d.ts +0 -18
- package/build/backend/commands/users/bulk-all/bulk-all-extend-expiration-date.command.d.ts.map +1 -1
- package/build/backend/commands/users/bulk-all/bulk-all-extend-expiration-date.command.js +0 -5
- package/build/backend/commands/users/bulk-all/bulk-all-reset-traffic-users.command.d.ts +0 -19
- package/build/backend/commands/users/bulk-all/bulk-all-reset-traffic-users.command.d.ts.map +1 -1
- package/build/backend/commands/users/bulk-all/bulk-all-reset-traffic-users.command.js +0 -6
- package/build/backend/commands/users/bulk-all/bulk-all-update-users.command.d.ts +0 -18
- package/build/backend/commands/users/bulk-all/bulk-all-update-users.command.d.ts.map +1 -1
- package/build/backend/commands/users/bulk-all/bulk-all-update-users.command.js +0 -5
- package/build/backend/commands/users/create-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/create-user.command.js +2 -3
- package/build/backend/commands/users/delete-user.command.d.ts +0 -18
- package/build/backend/commands/users/delete-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/delete-user.command.js +0 -5
- package/build/backend/commands/users/get-by/get-user-by-id.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-by/get-user-by-id.command.js +2 -4
- package/build/backend/commands/users/get-by/get-user-by-short-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-by/get-user-by-short-uuid.command.js +2 -4
- package/build/backend/commands/users/get-by/get-user-by-username.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-by/get-user-by-username.command.js +2 -4
- package/build/backend/commands/users/get-user-by-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-user-by-uuid.command.js +2 -4
- package/build/backend/commands/users/update-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/update-user.command.js +2 -3
- package/build/backend/commands/users/user.response.d.ts +214 -0
- package/build/backend/commands/users/user.response.d.ts.map +1 -0
- package/build/backend/commands/users/user.response.js +11 -0
- package/build/frontend/commands/api-tokens/delete.command.js +0 -3
- package/build/frontend/commands/config-profiles/delete-config-profile.command.js +0 -5
- package/build/frontend/commands/external-squads/bulk-actions/add-users-to-external-squad.command.js +0 -5
- package/build/frontend/commands/external-squads/bulk-actions/delete-users-from-external-squad.command.js +0 -5
- package/build/frontend/commands/external-squads/delete-external-squad.command.js +0 -5
- package/build/frontend/commands/hosts/delete.command.js +0 -5
- package/build/frontend/commands/infra-billing/delete-bill-record.command.js +0 -7
- package/build/frontend/commands/infra-billing/delete-billing-node.command.js +0 -14
- package/build/frontend/commands/infra-billing/delete-infra-provider.command.js +0 -5
- package/build/frontend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.js +0 -5
- package/build/frontend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.js +0 -5
- package/build/frontend/commands/internal-squads/delete-internal-squad.command.js +0 -5
- package/build/frontend/commands/ip-control/drop-connections.command.js +0 -5
- package/build/frontend/commands/node-plugins/delete-node-plugin.command.js +0 -5
- package/build/frontend/commands/node-plugins/executor.command.js +0 -5
- package/build/frontend/commands/node-plugins/torrent-blocker/truncate-torrent-blocker-reports.command.js +0 -8
- package/build/frontend/commands/nodes/actions/disable.command.js +2 -4
- package/build/frontend/commands/nodes/actions/enable.command.js +2 -4
- package/build/frontend/commands/nodes/actions/reset-traffic.command.js +0 -5
- package/build/frontend/commands/nodes/actions/restart-all.command.js +0 -5
- package/build/frontend/commands/nodes/actions/restart.command.js +0 -5
- package/build/frontend/commands/nodes/bulk-actions/actions.command.js +0 -5
- package/build/frontend/commands/nodes/bulk-actions/bulk-update.command.js +0 -5
- package/build/frontend/commands/nodes/bulk-actions/profile-modification.command.js +0 -5
- package/build/frontend/commands/nodes/create.command.js +2 -4
- package/build/frontend/commands/nodes/delete.command.js +0 -5
- package/build/frontend/commands/nodes/get-node.command.js +2 -4
- package/build/frontend/commands/nodes/node.response.js +8 -0
- package/build/frontend/commands/nodes/update.command.js +2 -3
- package/build/frontend/commands/passkeys/delete-passkey.command.js +0 -22
- package/build/frontend/commands/snippets/delete-snippet.command.js +0 -7
- package/build/frontend/commands/subscription-page-configs/delete-subpage-config.command.js +0 -5
- package/build/frontend/commands/subscription-template/delete-subscription-template.command.js +0 -5
- package/build/frontend/commands/users/actions/disable-user.command.js +2 -4
- package/build/frontend/commands/users/actions/enable-user.command.js +2 -4
- package/build/frontend/commands/users/actions/reset-user-traffic.command.js +2 -4
- package/build/frontend/commands/users/actions/revoke-user-subscription.command.js +2 -4
- package/build/frontend/commands/users/bulk/bulk-delete-users-by-status.command.js +0 -5
- package/build/frontend/commands/users/bulk/bulk-delete-users.command.js +0 -5
- package/build/frontend/commands/users/bulk/bulk-extend-expiration-date.command.js +0 -5
- package/build/frontend/commands/users/bulk/bulk-reset-traffic-users.command.js +0 -5
- package/build/frontend/commands/users/bulk/bulk-revoke-users-subscription.command.js +0 -5
- package/build/frontend/commands/users/bulk/bulk-update-users-squads.command.js +0 -5
- package/build/frontend/commands/users/bulk/bulk-update-users.command.js +0 -5
- package/build/frontend/commands/users/bulk-all/bulk-all-extend-expiration-date.command.js +0 -5
- package/build/frontend/commands/users/bulk-all/bulk-all-reset-traffic-users.command.js +0 -6
- package/build/frontend/commands/users/bulk-all/bulk-all-update-users.command.js +0 -5
- package/build/frontend/commands/users/create-user.command.js +2 -3
- package/build/frontend/commands/users/delete-user.command.js +0 -5
- package/build/frontend/commands/users/get-by/get-user-by-id.command.js +2 -4
- package/build/frontend/commands/users/get-by/get-user-by-short-uuid.command.js +2 -4
- package/build/frontend/commands/users/get-by/get-user-by-username.command.js +2 -4
- package/build/frontend/commands/users/get-user-by-uuid.command.js +2 -4
- package/build/frontend/commands/users/update-user.command.js +2 -3
- package/build/frontend/commands/users/user.response.js +11 -0
- package/package.json +1 -1
|
@@ -12,9 +12,4 @@ var DeleteInfraProviderCommand;
|
|
|
12
12
|
DeleteInfraProviderCommand.RequestParamSchema = zod_1.z.object({
|
|
13
13
|
uuid: zod_1.z.string().uuid(),
|
|
14
14
|
});
|
|
15
|
-
DeleteInfraProviderCommand.ResponseSchema = zod_1.z.object({
|
|
16
|
-
response: zod_1.z.object({
|
|
17
|
-
isDeleted: zod_1.z.boolean(),
|
|
18
|
-
}),
|
|
19
|
-
});
|
|
20
15
|
})(DeleteInfraProviderCommand || (exports.DeleteInfraProviderCommand = DeleteInfraProviderCommand = {}));
|
package/build/frontend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.js
CHANGED
|
@@ -12,9 +12,4 @@ var AddUsersToInternalSquadCommand;
|
|
|
12
12
|
AddUsersToInternalSquadCommand.RequestParamSchema = zod_1.z.object({
|
|
13
13
|
uuid: zod_1.z.string().uuid(),
|
|
14
14
|
});
|
|
15
|
-
AddUsersToInternalSquadCommand.ResponseSchema = zod_1.z.object({
|
|
16
|
-
response: zod_1.z.object({
|
|
17
|
-
eventSent: zod_1.z.boolean(),
|
|
18
|
-
}),
|
|
19
|
-
});
|
|
20
15
|
})(AddUsersToInternalSquadCommand || (exports.AddUsersToInternalSquadCommand = AddUsersToInternalSquadCommand = {}));
|
|
@@ -12,9 +12,4 @@ var DeleteUsersFromInternalSquadCommand;
|
|
|
12
12
|
DeleteUsersFromInternalSquadCommand.RequestParamSchema = zod_1.z.object({
|
|
13
13
|
uuid: zod_1.z.string().uuid(),
|
|
14
14
|
});
|
|
15
|
-
DeleteUsersFromInternalSquadCommand.ResponseSchema = zod_1.z.object({
|
|
16
|
-
response: zod_1.z.object({
|
|
17
|
-
eventSent: zod_1.z.boolean(),
|
|
18
|
-
}),
|
|
19
|
-
});
|
|
20
15
|
})(DeleteUsersFromInternalSquadCommand || (exports.DeleteUsersFromInternalSquadCommand = DeleteUsersFromInternalSquadCommand = {}));
|
|
@@ -12,9 +12,4 @@ var DeleteInternalSquadCommand;
|
|
|
12
12
|
DeleteInternalSquadCommand.RequestParamSchema = zod_1.z.object({
|
|
13
13
|
uuid: zod_1.z.string().uuid(),
|
|
14
14
|
});
|
|
15
|
-
DeleteInternalSquadCommand.ResponseSchema = zod_1.z.object({
|
|
16
|
-
response: zod_1.z.object({
|
|
17
|
-
isDeleted: zod_1.z.boolean(),
|
|
18
|
-
}),
|
|
19
|
-
});
|
|
20
15
|
})(DeleteInternalSquadCommand || (exports.DeleteInternalSquadCommand = DeleteInternalSquadCommand = {}));
|
|
@@ -40,9 +40,4 @@ var DropConnectionsCommand;
|
|
|
40
40
|
dropBy: DropConnectionsCommand.DropBySchema,
|
|
41
41
|
targetNodes: DropConnectionsCommand.TargetNodesSchema,
|
|
42
42
|
});
|
|
43
|
-
DropConnectionsCommand.ResponseSchema = zod_1.z.object({
|
|
44
|
-
response: zod_1.z.object({
|
|
45
|
-
eventSent: zod_1.z.boolean(),
|
|
46
|
-
}),
|
|
47
|
-
});
|
|
48
43
|
})(DropConnectionsCommand || (exports.DropConnectionsCommand = DropConnectionsCommand = {}));
|
|
@@ -12,9 +12,4 @@ var DeleteNodePluginCommand;
|
|
|
12
12
|
DeleteNodePluginCommand.RequestParamSchema = zod_1.z.object({
|
|
13
13
|
uuid: zod_1.z.string().uuid(),
|
|
14
14
|
});
|
|
15
|
-
DeleteNodePluginCommand.ResponseSchema = zod_1.z.object({
|
|
16
|
-
response: zod_1.z.object({
|
|
17
|
-
isDeleted: zod_1.z.boolean(),
|
|
18
|
-
}),
|
|
19
|
-
});
|
|
20
15
|
})(DeleteNodePluginCommand || (exports.DeleteNodePluginCommand = DeleteNodePluginCommand = {}));
|
|
@@ -50,9 +50,4 @@ var PluginExecutorCommand;
|
|
|
50
50
|
command: PluginExecutorCommand.CommandSchema,
|
|
51
51
|
targetNodes: PluginExecutorCommand.TargetNodesSchema,
|
|
52
52
|
});
|
|
53
|
-
PluginExecutorCommand.ResponseSchema = zod_1.z.object({
|
|
54
|
-
response: zod_1.z.object({
|
|
55
|
-
eventSent: zod_1.z.boolean(),
|
|
56
|
-
}),
|
|
57
|
-
});
|
|
58
53
|
})(PluginExecutorCommand || (exports.PluginExecutorCommand = PluginExecutorCommand = {}));
|
|
@@ -1,19 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.TruncateTorrentBlockerReportsCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
4
|
const api_1 = require("../../../api");
|
|
6
5
|
const constants_1 = require("../../../constants");
|
|
7
|
-
const models_1 = require("../../../models");
|
|
8
6
|
var TruncateTorrentBlockerReportsCommand;
|
|
9
7
|
(function (TruncateTorrentBlockerReportsCommand) {
|
|
10
8
|
TruncateTorrentBlockerReportsCommand.url = api_1.REST_API.NODE_PLUGINS.TORRENT_BLOCKER.TRUNCATE_REPORTS;
|
|
11
9
|
TruncateTorrentBlockerReportsCommand.TSQ_url = TruncateTorrentBlockerReportsCommand.url;
|
|
12
10
|
TruncateTorrentBlockerReportsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.NODE_PLUGINS_ROUTES.TORRENT_BLOCKER.TRUNCATE_REPORTS, 'delete', 'Truncate Torrent Blocker Reports', { scope: 'truncate', kind: 'write' });
|
|
13
|
-
TruncateTorrentBlockerReportsCommand.ResponseSchema = zod_1.z.object({
|
|
14
|
-
response: zod_1.z.object({
|
|
15
|
-
records: zod_1.z.array(models_1.TorrentBlockerReportSchema),
|
|
16
|
-
total: zod_1.z.number(),
|
|
17
|
-
}),
|
|
18
|
-
});
|
|
19
11
|
})(TruncateTorrentBlockerReportsCommand || (exports.TruncateTorrentBlockerReportsCommand = TruncateTorrentBlockerReportsCommand = {}));
|
|
@@ -4,7 +4,7 @@ exports.DisableNodeCommand = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const api_1 = require("../../../api");
|
|
6
6
|
const constants_1 = require("../../../constants");
|
|
7
|
-
const
|
|
7
|
+
const node_response_1 = require("../node.response");
|
|
8
8
|
var DisableNodeCommand;
|
|
9
9
|
(function (DisableNodeCommand) {
|
|
10
10
|
DisableNodeCommand.url = api_1.REST_API.NODES.ACTIONS.DISABLE;
|
|
@@ -13,7 +13,5 @@ var DisableNodeCommand;
|
|
|
13
13
|
DisableNodeCommand.RequestParamSchema = zod_1.z.object({
|
|
14
14
|
uuid: zod_1.z.string().uuid(),
|
|
15
15
|
});
|
|
16
|
-
DisableNodeCommand.ResponseSchema =
|
|
17
|
-
response: models_1.NodesSchema,
|
|
18
|
-
});
|
|
16
|
+
DisableNodeCommand.ResponseSchema = node_response_1.NodeResponseSchema;
|
|
19
17
|
})(DisableNodeCommand || (exports.DisableNodeCommand = DisableNodeCommand = {}));
|
|
@@ -4,7 +4,7 @@ exports.EnableNodeCommand = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const api_1 = require("../../../api");
|
|
6
6
|
const constants_1 = require("../../../constants");
|
|
7
|
-
const
|
|
7
|
+
const node_response_1 = require("../node.response");
|
|
8
8
|
var EnableNodeCommand;
|
|
9
9
|
(function (EnableNodeCommand) {
|
|
10
10
|
EnableNodeCommand.url = api_1.REST_API.NODES.ACTIONS.ENABLE;
|
|
@@ -13,7 +13,5 @@ var EnableNodeCommand;
|
|
|
13
13
|
EnableNodeCommand.RequestParamSchema = zod_1.z.object({
|
|
14
14
|
uuid: zod_1.z.string().uuid(),
|
|
15
15
|
});
|
|
16
|
-
EnableNodeCommand.ResponseSchema =
|
|
17
|
-
response: models_1.NodesSchema,
|
|
18
|
-
});
|
|
16
|
+
EnableNodeCommand.ResponseSchema = node_response_1.NodeResponseSchema;
|
|
19
17
|
})(EnableNodeCommand || (exports.EnableNodeCommand = EnableNodeCommand = {}));
|
|
@@ -12,9 +12,4 @@ var ResetNodeTrafficCommand;
|
|
|
12
12
|
ResetNodeTrafficCommand.RequestParamSchema = zod_1.z.object({
|
|
13
13
|
uuid: zod_1.z.string().uuid(),
|
|
14
14
|
});
|
|
15
|
-
ResetNodeTrafficCommand.ResponseSchema = zod_1.z.object({
|
|
16
|
-
response: zod_1.z.object({
|
|
17
|
-
eventSent: zod_1.z.boolean(),
|
|
18
|
-
}),
|
|
19
|
-
});
|
|
20
15
|
})(ResetNodeTrafficCommand || (exports.ResetNodeTrafficCommand = ResetNodeTrafficCommand = {}));
|
|
@@ -12,9 +12,4 @@ var RestartAllNodesCommand;
|
|
|
12
12
|
RestartAllNodesCommand.RequestBodySchema = zod_1.z.object({
|
|
13
13
|
forceRestart: zod_1.z.boolean(),
|
|
14
14
|
});
|
|
15
|
-
RestartAllNodesCommand.ResponseSchema = zod_1.z.object({
|
|
16
|
-
response: zod_1.z.object({
|
|
17
|
-
eventSent: zod_1.z.boolean(),
|
|
18
|
-
}),
|
|
19
|
-
});
|
|
20
15
|
})(RestartAllNodesCommand || (exports.RestartAllNodesCommand = RestartAllNodesCommand = {}));
|
|
@@ -15,9 +15,4 @@ var RestartNodeCommand;
|
|
|
15
15
|
RestartNodeCommand.RequestBodySchema = zod_1.z.object({
|
|
16
16
|
forceRestart: zod_1.z.boolean(),
|
|
17
17
|
});
|
|
18
|
-
RestartNodeCommand.ResponseSchema = zod_1.z.object({
|
|
19
|
-
response: zod_1.z.object({
|
|
20
|
-
eventSent: zod_1.z.boolean(),
|
|
21
|
-
}),
|
|
22
|
-
});
|
|
23
18
|
})(RestartNodeCommand || (exports.RestartNodeCommand = RestartNodeCommand = {}));
|
|
@@ -13,9 +13,4 @@ var BulkNodesActionsCommand;
|
|
|
13
13
|
uuids: zod_1.z.array(zod_1.z.string().uuid()).min(1, 'Must be at least 1 Node UUID'),
|
|
14
14
|
action: zod_1.z.nativeEnum(constants_1.NODES_BULK_ACTIONS),
|
|
15
15
|
});
|
|
16
|
-
BulkNodesActionsCommand.ResponseSchema = zod_1.z.object({
|
|
17
|
-
response: zod_1.z.object({
|
|
18
|
-
eventSent: zod_1.z.boolean(),
|
|
19
|
-
}),
|
|
20
|
-
});
|
|
21
16
|
})(BulkNodesActionsCommand || (exports.BulkNodesActionsCommand = BulkNodesActionsCommand = {}));
|
|
@@ -34,9 +34,4 @@ var BulkNodesUpdateCommand;
|
|
|
34
34
|
note: zod_1.z.optional(zod_1.z.string().max(255, 'Note must be less than 255 characters').nullable()),
|
|
35
35
|
}),
|
|
36
36
|
});
|
|
37
|
-
BulkNodesUpdateCommand.ResponseSchema = zod_1.z.object({
|
|
38
|
-
response: zod_1.z.object({
|
|
39
|
-
eventSent: zod_1.z.boolean(),
|
|
40
|
-
}),
|
|
41
|
-
});
|
|
42
37
|
})(BulkNodesUpdateCommand || (exports.BulkNodesUpdateCommand = BulkNodesUpdateCommand = {}));
|
|
@@ -20,9 +20,4 @@ var BulkNodesProfileModificationCommand;
|
|
|
20
20
|
.min(1, 'Must be at least 1 inbound UUID'),
|
|
21
21
|
}),
|
|
22
22
|
});
|
|
23
|
-
BulkNodesProfileModificationCommand.ResponseSchema = zod_1.z.object({
|
|
24
|
-
response: zod_1.z.object({
|
|
25
|
-
eventSent: zod_1.z.boolean(),
|
|
26
|
-
}),
|
|
27
|
-
});
|
|
28
23
|
})(BulkNodesProfileModificationCommand || (exports.BulkNodesProfileModificationCommand = BulkNodesProfileModificationCommand = {}));
|
|
@@ -4,7 +4,7 @@ exports.CreateNodeCommand = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const api_1 = require("../../api");
|
|
6
6
|
const constants_1 = require("../../constants");
|
|
7
|
-
const
|
|
7
|
+
const node_response_1 = require("./node.response");
|
|
8
8
|
var CreateNodeCommand;
|
|
9
9
|
(function (CreateNodeCommand) {
|
|
10
10
|
CreateNodeCommand.url = api_1.REST_API.NODES.CREATE;
|
|
@@ -67,7 +67,5 @@ var CreateNodeCommand;
|
|
|
67
67
|
activePluginUuid: zod_1.z.optional(zod_1.z.nullable(zod_1.z.string().uuid())),
|
|
68
68
|
note: zod_1.z.optional(zod_1.z.string().max(255, 'Note must be less than 255 characters')),
|
|
69
69
|
});
|
|
70
|
-
CreateNodeCommand.ResponseSchema =
|
|
71
|
-
response: models_1.NodesSchema,
|
|
72
|
-
});
|
|
70
|
+
CreateNodeCommand.ResponseSchema = node_response_1.NodeResponseSchema;
|
|
73
71
|
})(CreateNodeCommand || (exports.CreateNodeCommand = CreateNodeCommand = {}));
|
|
@@ -12,9 +12,4 @@ var DeleteNodeCommand;
|
|
|
12
12
|
DeleteNodeCommand.RequestParamSchema = zod_1.z.object({
|
|
13
13
|
uuid: zod_1.z.string().uuid(),
|
|
14
14
|
});
|
|
15
|
-
DeleteNodeCommand.ResponseSchema = zod_1.z.object({
|
|
16
|
-
response: zod_1.z.object({
|
|
17
|
-
isDeleted: zod_1.z.boolean(),
|
|
18
|
-
}),
|
|
19
|
-
});
|
|
20
15
|
})(DeleteNodeCommand || (exports.DeleteNodeCommand = DeleteNodeCommand = {}));
|
|
@@ -4,7 +4,7 @@ exports.GetNodeCommand = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const api_1 = require("../../api");
|
|
6
6
|
const constants_1 = require("../../constants");
|
|
7
|
-
const
|
|
7
|
+
const node_response_1 = require("./node.response");
|
|
8
8
|
var GetNodeCommand;
|
|
9
9
|
(function (GetNodeCommand) {
|
|
10
10
|
GetNodeCommand.url = api_1.REST_API.NODES.GET_BY_UUID;
|
|
@@ -13,7 +13,5 @@ var GetNodeCommand;
|
|
|
13
13
|
GetNodeCommand.RequestParamSchema = zod_1.z.object({
|
|
14
14
|
uuid: zod_1.z.string().uuid(),
|
|
15
15
|
});
|
|
16
|
-
GetNodeCommand.ResponseSchema =
|
|
17
|
-
response: models_1.NodesSchema,
|
|
18
|
-
});
|
|
16
|
+
GetNodeCommand.ResponseSchema = node_response_1.NodeResponseSchema;
|
|
19
17
|
})(GetNodeCommand || (exports.GetNodeCommand = GetNodeCommand = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NodeResponseSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const models_1 = require("../../models");
|
|
6
|
+
exports.NodeResponseSchema = zod_1.z.object({
|
|
7
|
+
response: models_1.NodesSchema,
|
|
8
|
+
});
|
|
@@ -5,6 +5,7 @@ const zod_1 = require("zod");
|
|
|
5
5
|
const api_1 = require("../../api");
|
|
6
6
|
const constants_1 = require("../../constants");
|
|
7
7
|
const models_1 = require("../../models");
|
|
8
|
+
const node_response_1 = require("./node.response");
|
|
8
9
|
var UpdateNodeCommand;
|
|
9
10
|
(function (UpdateNodeCommand) {
|
|
10
11
|
UpdateNodeCommand.url = api_1.REST_API.NODES.UPDATE;
|
|
@@ -66,7 +67,5 @@ var UpdateNodeCommand;
|
|
|
66
67
|
activePluginUuid: zod_1.z.optional(zod_1.z.nullable(zod_1.z.string().uuid())),
|
|
67
68
|
note: zod_1.z.optional(zod_1.z.string().max(255, 'Note must be less than 255 characters').nullable()),
|
|
68
69
|
});
|
|
69
|
-
UpdateNodeCommand.ResponseSchema =
|
|
70
|
-
response: models_1.NodesSchema,
|
|
71
|
-
});
|
|
70
|
+
UpdateNodeCommand.ResponseSchema = node_response_1.NodeResponseSchema;
|
|
72
71
|
})(UpdateNodeCommand || (exports.UpdateNodeCommand = UpdateNodeCommand = {}));
|
|
@@ -12,26 +12,4 @@ var DeletePasskeyCommand;
|
|
|
12
12
|
DeletePasskeyCommand.RequestBodySchema = zod_1.z.object({
|
|
13
13
|
id: zod_1.z.string(),
|
|
14
14
|
});
|
|
15
|
-
DeletePasskeyCommand.ResponseSchema = zod_1.z.object({
|
|
16
|
-
response: zod_1.z.object({
|
|
17
|
-
passkeys: zod_1.z.array(zod_1.z.object({
|
|
18
|
-
id: zod_1.z.string(),
|
|
19
|
-
name: zod_1.z.string(),
|
|
20
|
-
createdAt: zod_1.z
|
|
21
|
-
.string({
|
|
22
|
-
invalid_type_error: 'Invalid date format',
|
|
23
|
-
})
|
|
24
|
-
.datetime({ message: 'Invalid date format', offset: true, local: true })
|
|
25
|
-
.transform((str) => new Date(str))
|
|
26
|
-
.describe('Created date. Format: 2025-01-17T15:38:45.065Z'),
|
|
27
|
-
lastUsedAt: zod_1.z
|
|
28
|
-
.string({
|
|
29
|
-
invalid_type_error: 'Invalid date format',
|
|
30
|
-
})
|
|
31
|
-
.datetime({ message: 'Invalid date format', offset: true, local: true })
|
|
32
|
-
.transform((str) => new Date(str))
|
|
33
|
-
.describe('Last used date. Format: 2025-01-17T15:38:45.065Z'),
|
|
34
|
-
})),
|
|
35
|
-
}),
|
|
36
|
-
});
|
|
37
15
|
})(DeletePasskeyCommand || (exports.DeletePasskeyCommand = DeletePasskeyCommand = {}));
|
|
@@ -4,7 +4,6 @@ exports.DeleteSnippetCommand = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const api_1 = require("../../api");
|
|
6
6
|
const constants_1 = require("../../constants");
|
|
7
|
-
const models_1 = require("../../models");
|
|
8
7
|
var DeleteSnippetCommand;
|
|
9
8
|
(function (DeleteSnippetCommand) {
|
|
10
9
|
DeleteSnippetCommand.url = api_1.REST_API.SNIPPETS.DELETE;
|
|
@@ -17,10 +16,4 @@ var DeleteSnippetCommand;
|
|
|
17
16
|
.max(255, 'Name must be less than 255 characters')
|
|
18
17
|
.regex(/^[A-Za-z0-9_\s-]+$/, 'Name can only contain letters, numbers, underscores, dashes and spaces'),
|
|
19
18
|
});
|
|
20
|
-
DeleteSnippetCommand.ResponseSchema = zod_1.z.object({
|
|
21
|
-
response: zod_1.z.object({
|
|
22
|
-
total: zod_1.z.number(),
|
|
23
|
-
snippets: zod_1.z.array(models_1.SnippetsSchema),
|
|
24
|
-
}),
|
|
25
|
-
});
|
|
26
19
|
})(DeleteSnippetCommand || (exports.DeleteSnippetCommand = DeleteSnippetCommand = {}));
|
|
@@ -12,9 +12,4 @@ var DeleteSubpageConfigCommand;
|
|
|
12
12
|
DeleteSubpageConfigCommand.RequestParamSchema = zod_1.z.object({
|
|
13
13
|
uuid: zod_1.z.string().uuid(),
|
|
14
14
|
});
|
|
15
|
-
DeleteSubpageConfigCommand.ResponseSchema = zod_1.z.object({
|
|
16
|
-
response: zod_1.z.object({
|
|
17
|
-
isDeleted: zod_1.z.boolean(),
|
|
18
|
-
}),
|
|
19
|
-
});
|
|
20
15
|
})(DeleteSubpageConfigCommand || (exports.DeleteSubpageConfigCommand = DeleteSubpageConfigCommand = {}));
|
package/build/frontend/commands/subscription-template/delete-subscription-template.command.js
CHANGED
|
@@ -12,9 +12,4 @@ var DeleteSubscriptionTemplateCommand;
|
|
|
12
12
|
DeleteSubscriptionTemplateCommand.RequestParamSchema = zod_1.z.object({
|
|
13
13
|
uuid: zod_1.z.string().uuid(),
|
|
14
14
|
});
|
|
15
|
-
DeleteSubscriptionTemplateCommand.ResponseSchema = zod_1.z.object({
|
|
16
|
-
response: zod_1.z.object({
|
|
17
|
-
isDeleted: zod_1.z.boolean(),
|
|
18
|
-
}),
|
|
19
|
-
});
|
|
20
15
|
})(DeleteSubscriptionTemplateCommand || (exports.DeleteSubscriptionTemplateCommand = DeleteSubscriptionTemplateCommand = {}));
|
|
@@ -4,7 +4,7 @@ exports.DisableUserCommand = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const api_1 = require("../../../api");
|
|
6
6
|
const constants_1 = require("../../../constants");
|
|
7
|
-
const
|
|
7
|
+
const user_response_1 = require("../user.response");
|
|
8
8
|
var DisableUserCommand;
|
|
9
9
|
(function (DisableUserCommand) {
|
|
10
10
|
DisableUserCommand.url = api_1.REST_API.USERS.ACTIONS.DISABLE;
|
|
@@ -13,7 +13,5 @@ var DisableUserCommand;
|
|
|
13
13
|
DisableUserCommand.RequestParamSchema = zod_1.z.object({
|
|
14
14
|
uuid: zod_1.z.string().uuid(),
|
|
15
15
|
});
|
|
16
|
-
DisableUserCommand.ResponseSchema =
|
|
17
|
-
response: models_1.ExtendedUsersSchema,
|
|
18
|
-
});
|
|
16
|
+
DisableUserCommand.ResponseSchema = user_response_1.UserResponseSchema;
|
|
19
17
|
})(DisableUserCommand || (exports.DisableUserCommand = DisableUserCommand = {}));
|
|
@@ -4,7 +4,7 @@ exports.EnableUserCommand = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const api_1 = require("../../../api");
|
|
6
6
|
const constants_1 = require("../../../constants");
|
|
7
|
-
const
|
|
7
|
+
const user_response_1 = require("../user.response");
|
|
8
8
|
var EnableUserCommand;
|
|
9
9
|
(function (EnableUserCommand) {
|
|
10
10
|
EnableUserCommand.url = api_1.REST_API.USERS.ACTIONS.ENABLE;
|
|
@@ -13,7 +13,5 @@ var EnableUserCommand;
|
|
|
13
13
|
EnableUserCommand.RequestParamSchema = zod_1.z.object({
|
|
14
14
|
uuid: zod_1.z.string().uuid(),
|
|
15
15
|
});
|
|
16
|
-
EnableUserCommand.ResponseSchema =
|
|
17
|
-
response: models_1.ExtendedUsersSchema,
|
|
18
|
-
});
|
|
16
|
+
EnableUserCommand.ResponseSchema = user_response_1.UserResponseSchema;
|
|
19
17
|
})(EnableUserCommand || (exports.EnableUserCommand = EnableUserCommand = {}));
|
|
@@ -4,7 +4,7 @@ exports.ResetUserTrafficCommand = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const api_1 = require("../../../api");
|
|
6
6
|
const constants_1 = require("../../../constants");
|
|
7
|
-
const
|
|
7
|
+
const user_response_1 = require("../user.response");
|
|
8
8
|
var ResetUserTrafficCommand;
|
|
9
9
|
(function (ResetUserTrafficCommand) {
|
|
10
10
|
ResetUserTrafficCommand.url = api_1.REST_API.USERS.ACTIONS.RESET_TRAFFIC;
|
|
@@ -13,7 +13,5 @@ var ResetUserTrafficCommand;
|
|
|
13
13
|
ResetUserTrafficCommand.RequestParamSchema = zod_1.z.object({
|
|
14
14
|
uuid: zod_1.z.string().uuid(),
|
|
15
15
|
});
|
|
16
|
-
ResetUserTrafficCommand.ResponseSchema =
|
|
17
|
-
response: models_1.ExtendedUsersSchema,
|
|
18
|
-
});
|
|
16
|
+
ResetUserTrafficCommand.ResponseSchema = user_response_1.UserResponseSchema;
|
|
19
17
|
})(ResetUserTrafficCommand || (exports.ResetUserTrafficCommand = ResetUserTrafficCommand = {}));
|
|
@@ -4,7 +4,7 @@ exports.RevokeUserSubscriptionCommand = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const api_1 = require("../../../api");
|
|
6
6
|
const constants_1 = require("../../../constants");
|
|
7
|
-
const
|
|
7
|
+
const user_response_1 = require("../user.response");
|
|
8
8
|
var RevokeUserSubscriptionCommand;
|
|
9
9
|
(function (RevokeUserSubscriptionCommand) {
|
|
10
10
|
RevokeUserSubscriptionCommand.url = api_1.REST_API.USERS.ACTIONS.REVOKE_SUBSCRIPTION;
|
|
@@ -24,7 +24,5 @@ var RevokeUserSubscriptionCommand;
|
|
|
24
24
|
.max(48, { message: 'Short UUID must be at most 48 characters' })
|
|
25
25
|
.describe('Optional. If not provided, a new short UUID will be generated by Remnawave. Please note that it is strongly recommended to allow Remnawave to generate the short UUID.')),
|
|
26
26
|
}));
|
|
27
|
-
RevokeUserSubscriptionCommand.ResponseSchema =
|
|
28
|
-
response: models_1.ExtendedUsersSchema,
|
|
29
|
-
});
|
|
27
|
+
RevokeUserSubscriptionCommand.ResponseSchema = user_response_1.UserResponseSchema;
|
|
30
28
|
})(RevokeUserSubscriptionCommand || (exports.RevokeUserSubscriptionCommand = RevokeUserSubscriptionCommand = {}));
|
|
@@ -13,9 +13,4 @@ var BulkDeleteUsersByStatusCommand;
|
|
|
13
13
|
BulkDeleteUsersByStatusCommand.RequestBodySchema = zod_1.z.object({
|
|
14
14
|
status: models_1.UsersSchema.shape.status,
|
|
15
15
|
});
|
|
16
|
-
BulkDeleteUsersByStatusCommand.ResponseSchema = zod_1.z.object({
|
|
17
|
-
response: zod_1.z.object({
|
|
18
|
-
affectedRows: zod_1.z.number(),
|
|
19
|
-
}),
|
|
20
|
-
});
|
|
21
16
|
})(BulkDeleteUsersByStatusCommand || (exports.BulkDeleteUsersByStatusCommand = BulkDeleteUsersByStatusCommand = {}));
|
|
@@ -15,9 +15,4 @@ var BulkDeleteUsersCommand;
|
|
|
15
15
|
.min(1, 'Must be at least 1 user UUID')
|
|
16
16
|
.max(500, 'Maximum 500 user UUIDs'),
|
|
17
17
|
});
|
|
18
|
-
BulkDeleteUsersCommand.ResponseSchema = zod_1.z.object({
|
|
19
|
-
response: zod_1.z.object({
|
|
20
|
-
affectedRows: zod_1.z.number(),
|
|
21
|
-
}),
|
|
22
|
-
});
|
|
23
18
|
})(BulkDeleteUsersCommand || (exports.BulkDeleteUsersCommand = BulkDeleteUsersCommand = {}));
|
|
@@ -20,9 +20,4 @@ var BulkExtendExpirationDateCommand;
|
|
|
20
20
|
.min(1, 'Extend days must be greater than 0')
|
|
21
21
|
.max(9999, 'Maximum 9999 days'),
|
|
22
22
|
});
|
|
23
|
-
BulkExtendExpirationDateCommand.ResponseSchema = zod_1.z.object({
|
|
24
|
-
response: zod_1.z.object({
|
|
25
|
-
affectedRows: zod_1.z.number(),
|
|
26
|
-
}),
|
|
27
|
-
});
|
|
28
23
|
})(BulkExtendExpirationDateCommand || (exports.BulkExtendExpirationDateCommand = BulkExtendExpirationDateCommand = {}));
|
|
@@ -15,9 +15,4 @@ var BulkResetTrafficUsersCommand;
|
|
|
15
15
|
.min(1, 'Must be at least 1 user UUID')
|
|
16
16
|
.max(500, 'Maximum 500 user UUIDs'),
|
|
17
17
|
});
|
|
18
|
-
BulkResetTrafficUsersCommand.ResponseSchema = zod_1.z.object({
|
|
19
|
-
response: zod_1.z.object({
|
|
20
|
-
affectedRows: zod_1.z.number(),
|
|
21
|
-
}),
|
|
22
|
-
});
|
|
23
18
|
})(BulkResetTrafficUsersCommand || (exports.BulkResetTrafficUsersCommand = BulkResetTrafficUsersCommand = {}));
|
|
@@ -15,9 +15,4 @@ var BulkRevokeUsersSubscriptionCommand;
|
|
|
15
15
|
.min(1, 'Must be at least 1 user UUID')
|
|
16
16
|
.max(500, 'Maximum 500 user UUIDs'),
|
|
17
17
|
});
|
|
18
|
-
BulkRevokeUsersSubscriptionCommand.ResponseSchema = zod_1.z.object({
|
|
19
|
-
response: zod_1.z.object({
|
|
20
|
-
affectedRows: zod_1.z.number(),
|
|
21
|
-
}),
|
|
22
|
-
});
|
|
23
18
|
})(BulkRevokeUsersSubscriptionCommand || (exports.BulkRevokeUsersSubscriptionCommand = BulkRevokeUsersSubscriptionCommand = {}));
|
|
@@ -18,9 +18,4 @@ var BulkUpdateUsersSquadsCommand;
|
|
|
18
18
|
invalid_type_error: 'Enabled internal squads must be an array of UUIDs',
|
|
19
19
|
}),
|
|
20
20
|
});
|
|
21
|
-
BulkUpdateUsersSquadsCommand.ResponseSchema = zod_1.z.object({
|
|
22
|
-
response: zod_1.z.object({
|
|
23
|
-
affectedRows: zod_1.z.number(),
|
|
24
|
-
}),
|
|
25
|
-
});
|
|
26
21
|
})(BulkUpdateUsersSquadsCommand || (exports.BulkUpdateUsersSquadsCommand = BulkUpdateUsersSquadsCommand = {}));
|
|
@@ -51,9 +51,4 @@ var BulkUpdateUsersCommand;
|
|
|
51
51
|
.describe('Optional. External squad UUID.'),
|
|
52
52
|
}),
|
|
53
53
|
});
|
|
54
|
-
BulkUpdateUsersCommand.ResponseSchema = zod_1.z.object({
|
|
55
|
-
response: zod_1.z.object({
|
|
56
|
-
affectedRows: zod_1.z.number(),
|
|
57
|
-
}),
|
|
58
|
-
});
|
|
59
54
|
})(BulkUpdateUsersCommand || (exports.BulkUpdateUsersCommand = BulkUpdateUsersCommand = {}));
|
|
@@ -12,9 +12,4 @@ var BulkAllExtendExpirationDateCommand;
|
|
|
12
12
|
BulkAllExtendExpirationDateCommand.RequestBodySchema = zod_1.z.object({
|
|
13
13
|
extendDays: zod_1.z.number().int().min(1, 'Extend days must be greater than 0'),
|
|
14
14
|
});
|
|
15
|
-
BulkAllExtendExpirationDateCommand.ResponseSchema = zod_1.z.object({
|
|
16
|
-
response: zod_1.z.object({
|
|
17
|
-
eventSent: zod_1.z.boolean(),
|
|
18
|
-
}),
|
|
19
|
-
});
|
|
20
15
|
})(BulkAllExtendExpirationDateCommand || (exports.BulkAllExtendExpirationDateCommand = BulkAllExtendExpirationDateCommand = {}));
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BulkAllResetTrafficUsersCommand = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
4
|
const api_1 = require("../../../api");
|
|
6
5
|
const constants_1 = require("../../../constants");
|
|
7
6
|
var BulkAllResetTrafficUsersCommand;
|
|
@@ -9,9 +8,4 @@ var BulkAllResetTrafficUsersCommand;
|
|
|
9
8
|
BulkAllResetTrafficUsersCommand.url = api_1.REST_API.USERS.BULK.ALL.RESET_TRAFFIC;
|
|
10
9
|
BulkAllResetTrafficUsersCommand.TSQ_url = BulkAllResetTrafficUsersCommand.url;
|
|
11
10
|
BulkAllResetTrafficUsersCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.USERS_ROUTES.BULK.ALL.RESET_TRAFFIC, 'post', 'Reset user used traffic for all users', { scope: 'bulk-all-reset-traffic', kind: 'write' });
|
|
12
|
-
BulkAllResetTrafficUsersCommand.ResponseSchema = zod_1.z.object({
|
|
13
|
-
response: zod_1.z.object({
|
|
14
|
-
eventSent: zod_1.z.boolean(),
|
|
15
|
-
}),
|
|
16
|
-
});
|
|
17
11
|
})(BulkAllResetTrafficUsersCommand || (exports.BulkAllResetTrafficUsersCommand = BulkAllResetTrafficUsersCommand = {}));
|
|
@@ -42,9 +42,4 @@ var BulkAllUpdateUsersCommand;
|
|
|
42
42
|
.nullable()),
|
|
43
43
|
hwidDeviceLimit: zod_1.z.optional(zod_1.z.number().int().min(0, 'Device limit must be non-negative').nullable()),
|
|
44
44
|
});
|
|
45
|
-
BulkAllUpdateUsersCommand.ResponseSchema = zod_1.z.object({
|
|
46
|
-
response: zod_1.z.object({
|
|
47
|
-
eventSent: zod_1.z.boolean(),
|
|
48
|
-
}),
|
|
49
|
-
});
|
|
50
45
|
})(BulkAllUpdateUsersCommand || (exports.BulkAllUpdateUsersCommand = BulkAllUpdateUsersCommand = {}));
|
|
@@ -5,6 +5,7 @@ const zod_1 = require("zod");
|
|
|
5
5
|
const api_1 = require("../../api");
|
|
6
6
|
const constants_1 = require("../../constants");
|
|
7
7
|
const models_1 = require("../../models");
|
|
8
|
+
const user_response_1 = require("./user.response");
|
|
8
9
|
var CreateUserCommand;
|
|
9
10
|
(function (CreateUserCommand) {
|
|
10
11
|
CreateUserCommand.url = api_1.REST_API.USERS.CREATE;
|
|
@@ -133,7 +134,5 @@ var CreateUserCommand;
|
|
|
133
134
|
.optional(zod_1.z.nullable(zod_1.z.string().uuid()))
|
|
134
135
|
.describe('Optional. External squad UUID.'),
|
|
135
136
|
});
|
|
136
|
-
CreateUserCommand.ResponseSchema =
|
|
137
|
-
response: models_1.ExtendedUsersSchema,
|
|
138
|
-
});
|
|
137
|
+
CreateUserCommand.ResponseSchema = user_response_1.UserResponseSchema;
|
|
139
138
|
})(CreateUserCommand || (exports.CreateUserCommand = CreateUserCommand = {}));
|
|
@@ -12,9 +12,4 @@ var DeleteUserCommand;
|
|
|
12
12
|
DeleteUserCommand.RequestParamSchema = zod_1.z.object({
|
|
13
13
|
uuid: zod_1.z.string().uuid(),
|
|
14
14
|
});
|
|
15
|
-
DeleteUserCommand.ResponseSchema = zod_1.z.object({
|
|
16
|
-
response: zod_1.z.object({
|
|
17
|
-
isDeleted: zod_1.z.boolean(),
|
|
18
|
-
}),
|
|
19
|
-
});
|
|
20
15
|
})(DeleteUserCommand || (exports.DeleteUserCommand = DeleteUserCommand = {}));
|
|
@@ -4,7 +4,7 @@ exports.GetUserByIdCommand = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const api_1 = require("../../../api");
|
|
6
6
|
const constants_1 = require("../../../constants");
|
|
7
|
-
const
|
|
7
|
+
const user_response_1 = require("../user.response");
|
|
8
8
|
var GetUserByIdCommand;
|
|
9
9
|
(function (GetUserByIdCommand) {
|
|
10
10
|
GetUserByIdCommand.url = api_1.REST_API.USERS.GET_BY.ID;
|
|
@@ -13,7 +13,5 @@ var GetUserByIdCommand;
|
|
|
13
13
|
GetUserByIdCommand.RequestParamSchema = zod_1.z.object({
|
|
14
14
|
id: zod_1.z.coerce.bigint(),
|
|
15
15
|
});
|
|
16
|
-
GetUserByIdCommand.ResponseSchema =
|
|
17
|
-
response: models_1.ExtendedUsersSchema,
|
|
18
|
-
});
|
|
16
|
+
GetUserByIdCommand.ResponseSchema = user_response_1.UserResponseSchema;
|
|
19
17
|
})(GetUserByIdCommand || (exports.GetUserByIdCommand = GetUserByIdCommand = {}));
|
|
@@ -4,7 +4,7 @@ exports.GetUserByShortUuidCommand = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const api_1 = require("../../../api");
|
|
6
6
|
const constants_1 = require("../../../constants");
|
|
7
|
-
const
|
|
7
|
+
const user_response_1 = require("../user.response");
|
|
8
8
|
var GetUserByShortUuidCommand;
|
|
9
9
|
(function (GetUserByShortUuidCommand) {
|
|
10
10
|
GetUserByShortUuidCommand.url = api_1.REST_API.USERS.GET_BY.SHORT_UUID;
|
|
@@ -13,7 +13,5 @@ var GetUserByShortUuidCommand;
|
|
|
13
13
|
GetUserByShortUuidCommand.RequestParamSchema = zod_1.z.object({
|
|
14
14
|
shortUuid: zod_1.z.string(),
|
|
15
15
|
});
|
|
16
|
-
GetUserByShortUuidCommand.ResponseSchema =
|
|
17
|
-
response: models_1.ExtendedUsersSchema,
|
|
18
|
-
});
|
|
16
|
+
GetUserByShortUuidCommand.ResponseSchema = user_response_1.UserResponseSchema;
|
|
19
17
|
})(GetUserByShortUuidCommand || (exports.GetUserByShortUuidCommand = GetUserByShortUuidCommand = {}));
|
|
@@ -4,7 +4,7 @@ exports.GetUserByUsernameCommand = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const api_1 = require("../../../api");
|
|
6
6
|
const constants_1 = require("../../../constants");
|
|
7
|
-
const
|
|
7
|
+
const user_response_1 = require("../user.response");
|
|
8
8
|
var GetUserByUsernameCommand;
|
|
9
9
|
(function (GetUserByUsernameCommand) {
|
|
10
10
|
GetUserByUsernameCommand.url = api_1.REST_API.USERS.GET_BY.USERNAME;
|
|
@@ -13,7 +13,5 @@ var GetUserByUsernameCommand;
|
|
|
13
13
|
GetUserByUsernameCommand.RequestParamSchema = zod_1.z.object({
|
|
14
14
|
username: zod_1.z.string(),
|
|
15
15
|
});
|
|
16
|
-
GetUserByUsernameCommand.ResponseSchema =
|
|
17
|
-
response: models_1.ExtendedUsersSchema,
|
|
18
|
-
});
|
|
16
|
+
GetUserByUsernameCommand.ResponseSchema = user_response_1.UserResponseSchema;
|
|
19
17
|
})(GetUserByUsernameCommand || (exports.GetUserByUsernameCommand = GetUserByUsernameCommand = {}));
|