@remnawave/backend-contract 0.7.11 → 0.7.12

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.
@@ -16,7 +16,7 @@ export declare namespace CreateUserCommand {
16
16
  trojanPassword: z.ZodOptional<z.ZodString>;
17
17
  vlessUuid: z.ZodOptional<z.ZodString>;
18
18
  ssPassword: z.ZodOptional<z.ZodString>;
19
- trafficLimitBytes: z.ZodNumber;
19
+ trafficLimitBytes: z.ZodOptional<z.ZodNumber>;
20
20
  trafficLimitStrategy: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<{
21
21
  readonly NO_RESET: "NO_RESET";
22
22
  readonly DAY: "DAY";
@@ -25,8 +25,8 @@ export declare namespace CreateUserCommand {
25
25
  }>>>>, "MONTH" | "NO_RESET" | "DAY" | "WEEK", "MONTH" | "NO_RESET" | "DAY" | "WEEK" | undefined>;
26
26
  activeUserInbounds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
27
27
  expireAt: z.ZodEffects<z.ZodString, Date, string>;
28
- createdAt: z.ZodEffects<z.ZodString, Date, string>;
29
- lastTrafficResetAt: z.ZodEffects<z.ZodString, Date, string>;
28
+ createdAt: z.ZodOptional<z.ZodEffects<z.ZodString, Date, string>>;
29
+ lastTrafficResetAt: z.ZodOptional<z.ZodEffects<z.ZodString, Date, string>>;
30
30
  description: z.ZodOptional<z.ZodString>;
31
31
  tag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
32
32
  telegramId: z.ZodOptional<z.ZodNumber>;
@@ -35,16 +35,16 @@ export declare namespace CreateUserCommand {
35
35
  activateAllInbounds: z.ZodOptional<z.ZodBoolean>;
36
36
  }, "strip", z.ZodTypeAny, {
37
37
  status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
38
- createdAt: Date;
39
38
  username: string;
40
- trafficLimitBytes: number;
41
39
  trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
42
40
  expireAt: Date;
43
- lastTrafficResetAt: Date;
41
+ createdAt?: Date | undefined;
44
42
  tag?: string | null | undefined;
45
43
  subscriptionUuid?: string | undefined;
46
44
  shortUuid?: string | undefined;
45
+ trafficLimitBytes?: number | undefined;
47
46
  description?: string | undefined;
47
+ lastTrafficResetAt?: Date | undefined;
48
48
  trojanPassword?: string | undefined;
49
49
  vlessUuid?: string | undefined;
50
50
  ssPassword?: string | undefined;
@@ -54,17 +54,17 @@ export declare namespace CreateUserCommand {
54
54
  activeUserInbounds?: string[] | undefined;
55
55
  activateAllInbounds?: boolean | undefined;
56
56
  }, {
57
- createdAt: string;
58
57
  username: string;
59
- trafficLimitBytes: number;
60
58
  expireAt: string;
61
- lastTrafficResetAt: string;
62
59
  status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
60
+ createdAt?: string | undefined;
63
61
  tag?: string | null | undefined;
64
62
  subscriptionUuid?: string | undefined;
65
63
  shortUuid?: string | undefined;
64
+ trafficLimitBytes?: number | undefined;
66
65
  description?: string | undefined;
67
66
  trafficLimitStrategy?: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | undefined;
67
+ lastTrafficResetAt?: string | undefined;
68
68
  trojanPassword?: string | undefined;
69
69
  vlessUuid?: string | undefined;
70
70
  ssPassword?: string | undefined;
@@ -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;AAMxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,eAAwB,CAAC;IAClC,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAqJxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAA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EzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -66,6 +66,7 @@ var CreateUserCommand;
66
66
  })
67
67
  .int('Traffic limit must be an integer')
68
68
  .min(0, 'Traffic limit must be greater than 0')
69
+ .optional()
69
70
  .describe('Optional. Traffic limit in bytes. Set to 0 for unlimited traffic.'),
70
71
  trafficLimitStrategy: models_1.UsersSchema.shape.trafficLimitStrategy
71
72
  .describe('Optional. Strategy for resetting traffic limits. Defaults to NO_RESET. Must be a valid reset period.')
@@ -102,6 +103,7 @@ var CreateUserCommand;
102
103
  })
103
104
  .datetime({ message: 'Invalid date format', offset: true, local: true })
104
105
  .transform((str) => new Date(str))
106
+ .optional()
105
107
  .describe('Optional. Account creation date. Format: 2025-01-17T15:38:45.065Z'),
106
108
  lastTrafficResetAt: zod_1.z
107
109
  .string({
@@ -109,6 +111,7 @@ var CreateUserCommand;
109
111
  })
110
112
  .datetime({ message: 'Invalid date format', offset: true, local: true })
111
113
  .transform((str) => new Date(str))
114
+ .optional()
112
115
  .describe('Optional. Date of last traffic reset. Format: 2025-01-17T15:38:45.065Z'),
113
116
  description: zod_1.z
114
117
  .string()
@@ -66,6 +66,7 @@ var CreateUserCommand;
66
66
  })
67
67
  .int('Traffic limit must be an integer')
68
68
  .min(0, 'Traffic limit must be greater than 0')
69
+ .optional()
69
70
  .describe('Optional. Traffic limit in bytes. Set to 0 for unlimited traffic.'),
70
71
  trafficLimitStrategy: models_1.UsersSchema.shape.trafficLimitStrategy
71
72
  .describe('Optional. Strategy for resetting traffic limits. Defaults to NO_RESET. Must be a valid reset period.')
@@ -102,6 +103,7 @@ var CreateUserCommand;
102
103
  })
103
104
  .datetime({ message: 'Invalid date format', offset: true, local: true })
104
105
  .transform((str) => new Date(str))
106
+ .optional()
105
107
  .describe('Optional. Account creation date. Format: 2025-01-17T15:38:45.065Z'),
106
108
  lastTrafficResetAt: zod_1.z
107
109
  .string({
@@ -109,6 +111,7 @@ var CreateUserCommand;
109
111
  })
110
112
  .datetime({ message: 'Invalid date format', offset: true, local: true })
111
113
  .transform((str) => new Date(str))
114
+ .optional()
112
115
  .describe('Optional. Date of last traffic reset. Format: 2025-01-17T15:38:45.065Z'),
113
116
  description: zod_1.z
114
117
  .string()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/backend-contract",
3
- "version": "0.7.11",
3
+ "version": "0.7.12",
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.",