@remnawave/backend-contract 0.3.68 → 0.3.69
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/hosts/bulk/set-port-to-many-hosts.command.js +1 -1
- package/build/backend/commands/users/bulk-all/bulk-all-update-users.command.js +1 -1
- package/build/backend/constants/errors/errors.d.ts +1 -1
- package/build/backend/constants/errors/errors.js +1 -1
- package/build/frontend/commands/hosts/bulk/set-port-to-many-hosts.command.js +1 -1
- package/build/frontend/commands/users/bulk-all/bulk-all-update-users.command.js +1 -1
- package/build/frontend/constants/errors/errors.js +1 -1
- package/package.json +1 -1
@@ -10,7 +10,7 @@ var SetPortToManyHostsCommand;
|
|
10
10
|
SetPortToManyHostsCommand.TSQ_url = SetPortToManyHostsCommand.url;
|
11
11
|
SetPortToManyHostsCommand.RequestSchema = zod_1.z.object({
|
12
12
|
uuids: zod_1.z.array(zod_1.z.string().uuid()),
|
13
|
-
port: zod_1.z.number(),
|
13
|
+
port: zod_1.z.number().int().min(1).max(65535),
|
14
14
|
});
|
15
15
|
SetPortToManyHostsCommand.ResponseSchema = zod_1.z.object({
|
16
16
|
response: zod_1.z.array(models_1.HostsSchema),
|
@@ -16,7 +16,7 @@ var BulkAllUpdateUsersCommand;
|
|
16
16
|
invalid_type_error: 'Traffic limit must be a number',
|
17
17
|
})
|
18
18
|
.int('Traffic limit must be an integer')
|
19
|
-
.min(0, 'Traffic limit must be
|
19
|
+
.min(0, 'Traffic limit must be 0 or greater')
|
20
20
|
.describe('Traffic limit in bytes. 0 - unlimited')),
|
21
21
|
trafficLimitStrategy: zod_1.z.optional(zod_1.z
|
22
22
|
.nativeEnum(constants_1.RESET_PERIODS, {
|
@@ -10,7 +10,7 @@ var SetPortToManyHostsCommand;
|
|
10
10
|
SetPortToManyHostsCommand.TSQ_url = SetPortToManyHostsCommand.url;
|
11
11
|
SetPortToManyHostsCommand.RequestSchema = zod_1.z.object({
|
12
12
|
uuids: zod_1.z.array(zod_1.z.string().uuid()),
|
13
|
-
port: zod_1.z.number(),
|
13
|
+
port: zod_1.z.number().int().min(1).max(65535),
|
14
14
|
});
|
15
15
|
SetPortToManyHostsCommand.ResponseSchema = zod_1.z.object({
|
16
16
|
response: zod_1.z.array(models_1.HostsSchema),
|
@@ -16,7 +16,7 @@ var BulkAllUpdateUsersCommand;
|
|
16
16
|
invalid_type_error: 'Traffic limit must be a number',
|
17
17
|
})
|
18
18
|
.int('Traffic limit must be an integer')
|
19
|
-
.min(0, 'Traffic limit must be
|
19
|
+
.min(0, 'Traffic limit must be 0 or greater')
|
20
20
|
.describe('Traffic limit in bytes. 0 - unlimited')),
|
21
21
|
trafficLimitStrategy: zod_1.z.optional(zod_1.z
|
22
22
|
.nativeEnum(constants_1.RESET_PERIODS, {
|