@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
|
@@ -4,7 +4,7 @@ exports.GetUserByUuidCommand = 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 GetUserByUuidCommand;
|
|
9
9
|
(function (GetUserByUuidCommand) {
|
|
10
10
|
GetUserByUuidCommand.url = api_1.REST_API.USERS.GET_BY_UUID;
|
|
@@ -13,7 +13,5 @@ var GetUserByUuidCommand;
|
|
|
13
13
|
GetUserByUuidCommand.RequestParamSchema = zod_1.z.object({
|
|
14
14
|
uuid: zod_1.z.string().uuid(),
|
|
15
15
|
});
|
|
16
|
-
GetUserByUuidCommand.ResponseSchema =
|
|
17
|
-
response: models_1.ExtendedUsersSchema,
|
|
18
|
-
});
|
|
16
|
+
GetUserByUuidCommand.ResponseSchema = user_response_1.UserResponseSchema;
|
|
19
17
|
})(GetUserByUuidCommand || (exports.GetUserByUuidCommand = GetUserByUuidCommand = {}));
|
|
@@ -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 UpdateUserCommand;
|
|
9
10
|
(function (UpdateUserCommand) {
|
|
10
11
|
UpdateUserCommand.url = api_1.REST_API.USERS.UPDATE;
|
|
@@ -75,7 +76,5 @@ var UpdateUserCommand;
|
|
|
75
76
|
.refine((data) => data.uuid || data.username, {
|
|
76
77
|
message: 'Either uuid or username must be provided',
|
|
77
78
|
});
|
|
78
|
-
UpdateUserCommand.ResponseSchema =
|
|
79
|
-
response: models_1.ExtendedUsersSchema,
|
|
80
|
-
});
|
|
79
|
+
UpdateUserCommand.ResponseSchema = user_response_1.UserResponseSchema;
|
|
81
80
|
})(UpdateUserCommand || (exports.UpdateUserCommand = UpdateUserCommand = {}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.UserResponseSchema = void 0;
|
|
7
|
+
const zod_1 = __importDefault(require("zod"));
|
|
8
|
+
const extended_users_schema_1 = require("../../models/extended-users.schema");
|
|
9
|
+
exports.UserResponseSchema = zod_1.default.object({
|
|
10
|
+
response: extended_users_schema_1.ExtendedUsersSchema,
|
|
11
|
+
});
|
package/package.json
CHANGED