@remnawave/backend-contract 0.0.83 → 0.0.84

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.
@@ -17,13 +17,12 @@ export declare namespace CreateUserCommand {
17
17
  createdAt: z.ZodOptional<z.ZodEffects<z.ZodDate, Date, Date>>;
18
18
  lastTrafficResetAt: z.ZodOptional<z.ZodEffects<z.ZodDate, Date, Date>>;
19
19
  description: z.ZodOptional<z.ZodString>;
20
- activateAllInbounds: z.ZodDefault<z.ZodBoolean>;
20
+ activateAllInbounds: z.ZodOptional<z.ZodBoolean>;
21
21
  }, "strip", z.ZodTypeAny, {
22
22
  username: string;
23
23
  status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
24
24
  trafficLimitStrategy: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH";
25
25
  expireAt: Date;
26
- activateAllInbounds: boolean;
27
26
  createdAt?: Date | undefined;
28
27
  trafficLimitBytes?: number | undefined;
29
28
  subscriptionUuid?: string | undefined;
@@ -34,6 +33,7 @@ export declare namespace CreateUserCommand {
34
33
  vlessUuid?: string | undefined;
35
34
  ssPassword?: string | undefined;
36
35
  activeUserInbounds?: string[] | undefined;
36
+ activateAllInbounds?: boolean | undefined;
37
37
  }, {
38
38
  username: string;
39
39
  expireAt: Date;
@@ -16,7 +16,7 @@ var CreateUserCommand;
16
16
  invalid_type_error: 'Username must be a string',
17
17
  })
18
18
  .regex(/^[a-zA-Z0-9_-]+$/, 'Username can only contain letters, numbers, underscores and dashes')
19
- .max(32, 'Username must be less than 32 characters')
19
+ .max(34, 'Username must be less than 34 characters')
20
20
  .min(6, 'Username must be at least 6 characters'),
21
21
  status: models_1.UsersSchema.shape.status.optional().default(constants_1.USERS_STATUS.ACTIVE),
22
22
  subscriptionUuid: zod_1.z
@@ -105,7 +105,7 @@ var CreateUserCommand;
105
105
  })
106
106
  .optional(),
107
107
  description: zod_1.z.string().optional(),
108
- activateAllInbounds: zod_1.z.boolean().default(false),
108
+ activateAllInbounds: zod_1.z.boolean().optional(),
109
109
  });
110
110
  CreateUserCommand.ResponseSchema = zod_1.z.object({
111
111
  response: models_1.UsersSchema,
@@ -16,7 +16,7 @@ var CreateUserCommand;
16
16
  invalid_type_error: 'Username must be a string',
17
17
  })
18
18
  .regex(/^[a-zA-Z0-9_-]+$/, 'Username can only contain letters, numbers, underscores and dashes')
19
- .max(32, 'Username must be less than 32 characters')
19
+ .max(34, 'Username must be less than 34 characters')
20
20
  .min(6, 'Username must be at least 6 characters'),
21
21
  status: models_1.UsersSchema.shape.status.optional().default(constants_1.USERS_STATUS.ACTIVE),
22
22
  subscriptionUuid: zod_1.z
@@ -105,7 +105,7 @@ var CreateUserCommand;
105
105
  })
106
106
  .optional(),
107
107
  description: zod_1.z.string().optional(),
108
- activateAllInbounds: zod_1.z.boolean().default(false),
108
+ activateAllInbounds: zod_1.z.boolean().optional(),
109
109
  });
110
110
  CreateUserCommand.ResponseSchema = zod_1.z.object({
111
111
  response: models_1.UsersSchema,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/backend-contract",
3
- "version": "0.0.83",
3
+ "version": "0.0.84",
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.",