@remnawave/backend-contract 2.0.0-alpha.32 → 2.0.0-alpha.34

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.
@@ -27,8 +27,8 @@ export declare namespace CreateUserCommand {
27
27
  lastTrafficResetAt: z.ZodOptional<z.ZodEffects<z.ZodString, Date, string>>;
28
28
  description: z.ZodOptional<z.ZodString>;
29
29
  tag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
30
- telegramId: z.ZodOptional<z.ZodNumber>;
31
- email: z.ZodOptional<z.ZodString>;
30
+ telegramId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
31
+ email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
32
  hwidDeviceLimit: z.ZodOptional<z.ZodNumber>;
33
33
  activeInternalSquads: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
34
34
  }, "strip", z.ZodTypeAny, {
@@ -45,8 +45,8 @@ export declare namespace CreateUserCommand {
45
45
  trojanPassword?: string | undefined;
46
46
  vlessUuid?: string | undefined;
47
47
  ssPassword?: string | undefined;
48
- telegramId?: number | undefined;
49
- email?: string | undefined;
48
+ telegramId?: number | null | undefined;
49
+ email?: string | null | undefined;
50
50
  hwidDeviceLimit?: number | undefined;
51
51
  activeInternalSquads?: string[] | undefined;
52
52
  }, {
@@ -63,8 +63,8 @@ export declare namespace CreateUserCommand {
63
63
  trojanPassword?: string | undefined;
64
64
  vlessUuid?: string | undefined;
65
65
  ssPassword?: string | undefined;
66
- telegramId?: number | undefined;
67
- email?: string | undefined;
66
+ telegramId?: number | null | undefined;
67
+ email?: string | null | undefined;
68
68
  hwidDeviceLimit?: number | undefined;
69
69
  activeInternalSquads?: string[] | undefined;
70
70
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"create-user.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/create-user.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMx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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -110,12 +110,10 @@ var CreateUserCommand;
110
110
  .nullable())
111
111
  .describe('Optional. User tag for categorization. Max 16 characters, uppercase letters, numbers and underscores only.'),
112
112
  telegramId: zod_1.z
113
- .optional(zod_1.z.number().int())
113
+ .optional(zod_1.z.number().int().nullable())
114
114
  .describe('Optional. Telegram user ID for notifications. Must be an integer.'),
115
115
  email: zod_1.z
116
- .string()
117
- .email('Invalid email format')
118
- .optional()
116
+ .optional(zod_1.z.string().email('Invalid email format').nullable())
119
117
  .describe('Optional. User email address. Must be a valid email format.'),
120
118
  hwidDeviceLimit: zod_1.z.optional(zod_1.z
121
119
  .number({ invalid_type_error: 'Device limit must be a number' })
@@ -110,12 +110,10 @@ var CreateUserCommand;
110
110
  .nullable())
111
111
  .describe('Optional. User tag for categorization. Max 16 characters, uppercase letters, numbers and underscores only.'),
112
112
  telegramId: zod_1.z
113
- .optional(zod_1.z.number().int())
113
+ .optional(zod_1.z.number().int().nullable())
114
114
  .describe('Optional. Telegram user ID for notifications. Must be an integer.'),
115
115
  email: zod_1.z
116
- .string()
117
- .email('Invalid email format')
118
- .optional()
116
+ .optional(zod_1.z.string().email('Invalid email format').nullable())
119
117
  .describe('Optional. User email address. Must be a valid email format.'),
120
118
  hwidDeviceLimit: zod_1.z.optional(zod_1.z
121
119
  .number({ invalid_type_error: 'Device limit must be a number' })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/backend-contract",
3
- "version": "2.0.0-alpha.32",
3
+ "version": "2.0.0-alpha.34",
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.",