@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.
@@ -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 greater than 0')
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, {
@@ -465,7 +465,7 @@ export declare const ERRORS: {
465
465
  readonly httpCode: 500;
466
466
  };
467
467
  readonly BULK_UPDATE_ALL_USERS_ERROR: {
468
- readonly code: "A087";
468
+ readonly code: "A089";
469
469
  readonly message: "Bulk update all users error";
470
470
  readonly httpCode: 500;
471
471
  };
@@ -436,7 +436,7 @@ exports.ERRORS = {
436
436
  httpCode: 500,
437
437
  },
438
438
  BULK_UPDATE_ALL_USERS_ERROR: {
439
- code: 'A087',
439
+ code: 'A089',
440
440
  message: 'Bulk update all users error',
441
441
  httpCode: 500,
442
442
  },
@@ -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 greater than 0')
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, {
@@ -436,7 +436,7 @@ exports.ERRORS = {
436
436
  httpCode: 500,
437
437
  },
438
438
  BULK_UPDATE_ALL_USERS_ERROR: {
439
- code: 'A087',
439
+ code: 'A089',
440
440
  message: 'Bulk update all users error',
441
441
  httpCode: 500,
442
442
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/backend-contract",
3
- "version": "0.3.68",
3
+ "version": "0.3.69",
4
4
  "public": true,
5
5
  "license": "AGPL-3.0-only",
6
6
  "description": "A contract library for Remnawave Backend. It can be used in backend and frontend.",