@remnawave/backend-contract 2.1.1 → 2.1.3

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.
Files changed (23) hide show
  1. package/build/backend/commands/nodes/create.command.js +1 -1
  2. package/build/backend/commands/nodes/update.command.js +1 -1
  3. package/build/backend/commands/subscription/get-raw-subscription-by-short-uuid.command.d.ts +96 -0
  4. package/build/backend/commands/subscription/get-raw-subscription-by-short-uuid.command.d.ts.map +1 -1
  5. package/build/backend/commands/subscription/get-raw-subscription-by-short-uuid.command.js +17 -0
  6. package/build/backend/commands/users/create-user.command.js +2 -2
  7. package/build/backend/constants/cache-keys/cache-keys.constants.d.ts +4 -0
  8. package/build/backend/constants/cache-keys/cache-keys.constants.d.ts.map +1 -0
  9. package/build/backend/constants/cache-keys/cache-keys.constants.js +6 -0
  10. package/build/backend/constants/cache-keys/index.d.ts +2 -0
  11. package/build/backend/constants/cache-keys/index.d.ts.map +1 -0
  12. package/build/backend/constants/cache-keys/index.js +17 -0
  13. package/build/backend/constants/index.d.ts +1 -0
  14. package/build/backend/constants/index.d.ts.map +1 -1
  15. package/build/backend/constants/index.js +1 -0
  16. package/build/frontend/commands/nodes/create.command.js +1 -1
  17. package/build/frontend/commands/nodes/update.command.js +1 -1
  18. package/build/frontend/commands/subscription/get-raw-subscription-by-short-uuid.command.js +17 -0
  19. package/build/frontend/commands/users/create-user.command.js +2 -2
  20. package/build/frontend/constants/cache-keys/cache-keys.constants.js +6 -0
  21. package/build/frontend/constants/cache-keys/index.js +17 -0
  22. package/build/frontend/constants/index.js +1 -0
  23. package/package.json +1 -1
@@ -11,7 +11,7 @@ var CreateNodeCommand;
11
11
  CreateNodeCommand.TSQ_url = CreateNodeCommand.url;
12
12
  CreateNodeCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.NODES_ROUTES.CREATE, 'post', 'Create a new node');
13
13
  CreateNodeCommand.RequestSchema = zod_1.z.object({
14
- name: zod_1.z.string().min(5, 'Minimum 5 characters!'),
14
+ name: zod_1.z.string().min(3, 'Minimum 3 characters!'),
15
15
  address: zod_1.z.string().min(2, 'Minimum 2 characters!'),
16
16
  port: zod_1.z.number().int().min(1, 'Port is required').optional(),
17
17
  isTrafficTrackingActive: zod_1.z.boolean().optional().default(false),
@@ -13,7 +13,7 @@ var UpdateNodeCommand;
13
13
  UpdateNodeCommand.RequestSchema = models_1.NodesSchema.pick({
14
14
  uuid: true,
15
15
  }).extend({
16
- name: zod_1.z.optional(zod_1.z.string().min(5, 'Min. 5 characters')),
16
+ name: zod_1.z.optional(zod_1.z.string().min(3, 'Min. 3 characters')),
17
17
  address: zod_1.z.optional(zod_1.z.string().min(2, 'Min. 2 characters')),
18
18
  port: zod_1.z.optional(zod_1.z.number()),
19
19
  isTrafficTrackingActive: zod_1.z.optional(zod_1.z.boolean()),
@@ -11,6 +11,14 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
11
11
  shortUuid: string;
12
12
  }>;
13
13
  type Request = z.infer<typeof RequestSchema>;
14
+ const RequestQuerySchema: z.ZodObject<{
15
+ withDisabledHosts: z.ZodDefault<z.ZodOptional<z.ZodEffects<z.ZodString, boolean, string>>>;
16
+ }, "strip", z.ZodTypeAny, {
17
+ withDisabledHosts: boolean;
18
+ }, {
19
+ withDisabledHosts?: string | undefined;
20
+ }>;
21
+ type RequestQuery = z.infer<typeof RequestQuerySchema>;
14
22
  const ResponseSchema: z.ZodObject<{
15
23
  response: z.ZodObject<{
16
24
  user: z.ZodObject<{
@@ -104,6 +112,34 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
104
112
  method?: string | null | undefined;
105
113
  } | null | undefined;
106
114
  }>>>;
115
+ dbData: z.ZodOptional<z.ZodObject<{
116
+ rawInbound: z.ZodNullable<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
117
+ tag: z.ZodString;
118
+ uuid: z.ZodString;
119
+ configProfileUuid: z.ZodNullable<z.ZodString>;
120
+ configProfileInboundUuid: z.ZodNullable<z.ZodString>;
121
+ isDisabled: z.ZodBoolean;
122
+ viewPosition: z.ZodNumber;
123
+ remark: z.ZodString;
124
+ }, "strip", z.ZodTypeAny, {
125
+ uuid: string;
126
+ tag: string;
127
+ rawInbound: {} | null;
128
+ viewPosition: number;
129
+ remark: string;
130
+ isDisabled: boolean;
131
+ configProfileUuid: string | null;
132
+ configProfileInboundUuid: string | null;
133
+ }, {
134
+ uuid: string;
135
+ tag: string;
136
+ rawInbound: {} | null;
137
+ viewPosition: number;
138
+ remark: string;
139
+ isDisabled: boolean;
140
+ configProfileUuid: string | null;
141
+ configProfileInboundUuid: string | null;
142
+ }>>;
107
143
  }, "strip", z.ZodTypeAny, {
108
144
  path?: string | null | undefined;
109
145
  password?: string | null | undefined;
@@ -135,6 +171,16 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
135
171
  method?: string | null | undefined;
136
172
  } | null | undefined;
137
173
  } | null | undefined;
174
+ dbData?: {
175
+ uuid: string;
176
+ tag: string;
177
+ rawInbound: {} | null;
178
+ viewPosition: number;
179
+ remark: string;
180
+ isDisabled: boolean;
181
+ configProfileUuid: string | null;
182
+ configProfileInboundUuid: string | null;
183
+ } | undefined;
138
184
  }, {
139
185
  path?: string | null | undefined;
140
186
  password?: string | null | undefined;
@@ -166,6 +212,16 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
166
212
  method?: string | null | undefined;
167
213
  } | null | undefined;
168
214
  } | null | undefined;
215
+ dbData?: {
216
+ uuid: string;
217
+ tag: string;
218
+ rawInbound: {} | null;
219
+ viewPosition: number;
220
+ remark: string;
221
+ isDisabled: boolean;
222
+ configProfileUuid: string | null;
223
+ configProfileInboundUuid: string | null;
224
+ } | undefined;
169
225
  }>, "many">;
170
226
  headers: z.ZodRecord<z.ZodString, z.ZodString>;
171
227
  isHwidLimited: z.ZodBoolean;
@@ -213,6 +269,16 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
213
269
  method?: string | null | undefined;
214
270
  } | null | undefined;
215
271
  } | null | undefined;
272
+ dbData?: {
273
+ uuid: string;
274
+ tag: string;
275
+ rawInbound: {} | null;
276
+ viewPosition: number;
277
+ remark: string;
278
+ isDisabled: boolean;
279
+ configProfileUuid: string | null;
280
+ configProfileInboundUuid: string | null;
281
+ } | undefined;
216
282
  }[];
217
283
  headers: Record<string, string>;
218
284
  isHwidLimited: boolean;
@@ -260,6 +326,16 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
260
326
  method?: string | null | undefined;
261
327
  } | null | undefined;
262
328
  } | null | undefined;
329
+ dbData?: {
330
+ uuid: string;
331
+ tag: string;
332
+ rawInbound: {} | null;
333
+ viewPosition: number;
334
+ remark: string;
335
+ isDisabled: boolean;
336
+ configProfileUuid: string | null;
337
+ configProfileInboundUuid: string | null;
338
+ } | undefined;
263
339
  }[];
264
340
  headers: Record<string, string>;
265
341
  isHwidLimited: boolean;
@@ -309,6 +385,16 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
309
385
  method?: string | null | undefined;
310
386
  } | null | undefined;
311
387
  } | null | undefined;
388
+ dbData?: {
389
+ uuid: string;
390
+ tag: string;
391
+ rawInbound: {} | null;
392
+ viewPosition: number;
393
+ remark: string;
394
+ isDisabled: boolean;
395
+ configProfileUuid: string | null;
396
+ configProfileInboundUuid: string | null;
397
+ } | undefined;
312
398
  }[];
313
399
  headers: Record<string, string>;
314
400
  isHwidLimited: boolean;
@@ -358,6 +444,16 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
358
444
  method?: string | null | undefined;
359
445
  } | null | undefined;
360
446
  } | null | undefined;
447
+ dbData?: {
448
+ uuid: string;
449
+ tag: string;
450
+ rawInbound: {} | null;
451
+ viewPosition: number;
452
+ remark: string;
453
+ isDisabled: boolean;
454
+ configProfileUuid: string | null;
455
+ configProfileInboundUuid: string | null;
456
+ } | undefined;
361
457
  }[];
362
458
  headers: Record<string, string>;
363
459
  isHwidLimited: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"get-raw-subscription-by-short-uuid.command.d.ts","sourceRoot":"","sources":["../../../../commands/subscription/get-raw-subscription-by-short-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,oCAAoC,CAAC;IAC3C,MAAM,GAAG,+BAAgC,CAAC;IAC1C,MAAM,OAAO,QAAoB,CAAC;IAElC,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAkEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"get-raw-subscription-by-short-uuid.command.d.ts","sourceRoot":"","sources":["../../../../commands/subscription/get-raw-subscription-by-short-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,oCAAoC,CAAC;IAC3C,MAAM,GAAG,+BAAgC,CAAC;IAC1C,MAAM,OAAO,QAAoB,CAAC;IAElC,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,kBAAkB;;;;;;MAM7B,CAAC;IAEH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAEvD,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA8EzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -13,6 +13,13 @@ var GetRawSubscriptionByShortUuidCommand;
13
13
  GetRawSubscriptionByShortUuidCommand.RequestSchema = zod_1.z.object({
14
14
  shortUuid: zod_1.z.string(),
15
15
  });
16
+ GetRawSubscriptionByShortUuidCommand.RequestQuerySchema = zod_1.z.object({
17
+ withDisabledHosts: zod_1.z
18
+ .string()
19
+ .transform((str) => str === 'true')
20
+ .optional()
21
+ .default('false'),
22
+ });
16
23
  GetRawSubscriptionByShortUuidCommand.ResponseSchema = zod_1.z.object({
17
24
  response: zod_1.z.object({
18
25
  user: zod_1.z.object({
@@ -61,6 +68,16 @@ var GetRawSubscriptionByShortUuidCommand;
61
68
  method: zod_1.z.optional(zod_1.z.nullable(zod_1.z.string())),
62
69
  }))),
63
70
  }))),
71
+ dbData: zod_1.z.optional(zod_1.z.object({
72
+ rawInbound: zod_1.z.nullable(zod_1.z.object({})),
73
+ tag: zod_1.z.string(),
74
+ uuid: zod_1.z.string(),
75
+ configProfileUuid: zod_1.z.nullable(zod_1.z.string()),
76
+ configProfileInboundUuid: zod_1.z.nullable(zod_1.z.string()),
77
+ isDisabled: zod_1.z.boolean(),
78
+ viewPosition: zod_1.z.number(),
79
+ remark: zod_1.z.string(),
80
+ })),
64
81
  })),
65
82
  headers: zod_1.z.record(zod_1.z.string(), zod_1.z.string()),
66
83
  isHwidLimited: zod_1.z.boolean(),
@@ -18,8 +18,8 @@ var CreateUserCommand;
18
18
  })
19
19
  .regex(/^[a-zA-Z0-9_-]+$/, 'Username can only contain letters, numbers, underscores and dashes')
20
20
  .max(36, 'Username must be less than 36 characters')
21
- .min(6, 'Username must be at least 6 characters')
22
- .describe('Unique username for the user. Required. Must be 6-36 characters long and contain only letters, numbers, underscores and dashes.'),
21
+ .min(3, 'Username must be at least 3 characters')
22
+ .describe('Unique username for the user. Required. Must be 3-36 characters long and contain only letters, numbers, underscores and dashes.'),
23
23
  status: models_1.UsersSchema.shape.status
24
24
  .optional()
25
25
  .default(constants_1.USERS_STATUS.ACTIVE)
@@ -0,0 +1,4 @@
1
+ export declare const CACHE_KEYS: {
2
+ readonly SUBSCRIPTION_SETTINGS: "subscription_settings";
3
+ };
4
+ //# sourceMappingURL=cache-keys.constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cache-keys.constants.d.ts","sourceRoot":"","sources":["../../../../constants/cache-keys/cache-keys.constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;CAEb,CAAC"}
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CACHE_KEYS = void 0;
4
+ exports.CACHE_KEYS = {
5
+ SUBSCRIPTION_SETTINGS: 'subscription_settings',
6
+ };
@@ -0,0 +1,2 @@
1
+ export * from './cache-keys.constants';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../constants/cache-keys/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./cache-keys.constants"), exports);
@@ -1,3 +1,4 @@
1
+ export * from './cache-keys';
1
2
  export * from './endpoint-details';
2
3
  export * from './errors';
3
4
  export * from './events';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,yBAAyB,CAAC;AACxC,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,yBAAyB,CAAC;AACxC,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./cache-keys"), exports);
17
18
  __exportStar(require("./endpoint-details"), exports);
18
19
  __exportStar(require("./errors"), exports);
19
20
  __exportStar(require("./events"), exports);
@@ -11,7 +11,7 @@ var CreateNodeCommand;
11
11
  CreateNodeCommand.TSQ_url = CreateNodeCommand.url;
12
12
  CreateNodeCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.NODES_ROUTES.CREATE, 'post', 'Create a new node');
13
13
  CreateNodeCommand.RequestSchema = zod_1.z.object({
14
- name: zod_1.z.string().min(5, 'Minimum 5 characters!'),
14
+ name: zod_1.z.string().min(3, 'Minimum 3 characters!'),
15
15
  address: zod_1.z.string().min(2, 'Minimum 2 characters!'),
16
16
  port: zod_1.z.number().int().min(1, 'Port is required').optional(),
17
17
  isTrafficTrackingActive: zod_1.z.boolean().optional().default(false),
@@ -13,7 +13,7 @@ var UpdateNodeCommand;
13
13
  UpdateNodeCommand.RequestSchema = models_1.NodesSchema.pick({
14
14
  uuid: true,
15
15
  }).extend({
16
- name: zod_1.z.optional(zod_1.z.string().min(5, 'Min. 5 characters')),
16
+ name: zod_1.z.optional(zod_1.z.string().min(3, 'Min. 3 characters')),
17
17
  address: zod_1.z.optional(zod_1.z.string().min(2, 'Min. 2 characters')),
18
18
  port: zod_1.z.optional(zod_1.z.number()),
19
19
  isTrafficTrackingActive: zod_1.z.optional(zod_1.z.boolean()),
@@ -13,6 +13,13 @@ var GetRawSubscriptionByShortUuidCommand;
13
13
  GetRawSubscriptionByShortUuidCommand.RequestSchema = zod_1.z.object({
14
14
  shortUuid: zod_1.z.string(),
15
15
  });
16
+ GetRawSubscriptionByShortUuidCommand.RequestQuerySchema = zod_1.z.object({
17
+ withDisabledHosts: zod_1.z
18
+ .string()
19
+ .transform((str) => str === 'true')
20
+ .optional()
21
+ .default('false'),
22
+ });
16
23
  GetRawSubscriptionByShortUuidCommand.ResponseSchema = zod_1.z.object({
17
24
  response: zod_1.z.object({
18
25
  user: zod_1.z.object({
@@ -61,6 +68,16 @@ var GetRawSubscriptionByShortUuidCommand;
61
68
  method: zod_1.z.optional(zod_1.z.nullable(zod_1.z.string())),
62
69
  }))),
63
70
  }))),
71
+ dbData: zod_1.z.optional(zod_1.z.object({
72
+ rawInbound: zod_1.z.nullable(zod_1.z.object({})),
73
+ tag: zod_1.z.string(),
74
+ uuid: zod_1.z.string(),
75
+ configProfileUuid: zod_1.z.nullable(zod_1.z.string()),
76
+ configProfileInboundUuid: zod_1.z.nullable(zod_1.z.string()),
77
+ isDisabled: zod_1.z.boolean(),
78
+ viewPosition: zod_1.z.number(),
79
+ remark: zod_1.z.string(),
80
+ })),
64
81
  })),
65
82
  headers: zod_1.z.record(zod_1.z.string(), zod_1.z.string()),
66
83
  isHwidLimited: zod_1.z.boolean(),
@@ -18,8 +18,8 @@ var CreateUserCommand;
18
18
  })
19
19
  .regex(/^[a-zA-Z0-9_-]+$/, 'Username can only contain letters, numbers, underscores and dashes')
20
20
  .max(36, 'Username must be less than 36 characters')
21
- .min(6, 'Username must be at least 6 characters')
22
- .describe('Unique username for the user. Required. Must be 6-36 characters long and contain only letters, numbers, underscores and dashes.'),
21
+ .min(3, 'Username must be at least 3 characters')
22
+ .describe('Unique username for the user. Required. Must be 3-36 characters long and contain only letters, numbers, underscores and dashes.'),
23
23
  status: models_1.UsersSchema.shape.status
24
24
  .optional()
25
25
  .default(constants_1.USERS_STATUS.ACTIVE)
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CACHE_KEYS = void 0;
4
+ exports.CACHE_KEYS = {
5
+ SUBSCRIPTION_SETTINGS: 'subscription_settings',
6
+ };
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./cache-keys.constants"), exports);
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./cache-keys"), exports);
17
18
  __exportStar(require("./endpoint-details"), exports);
18
19
  __exportStar(require("./errors"), exports);
19
20
  __exportStar(require("./events"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/backend-contract",
3
- "version": "2.1.1",
3
+ "version": "2.1.3",
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.",