@remnawave/backend-contract 0.0.82 → 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,6 +17,7 @@ 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.ZodOptional<z.ZodBoolean>;
20
21
  }, "strip", z.ZodTypeAny, {
21
22
  username: string;
22
23
  status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
@@ -32,6 +33,7 @@ export declare namespace CreateUserCommand {
32
33
  vlessUuid?: string | undefined;
33
34
  ssPassword?: string | undefined;
34
35
  activeUserInbounds?: string[] | undefined;
36
+ activateAllInbounds?: boolean | undefined;
35
37
  }, {
36
38
  username: string;
37
39
  expireAt: Date;
@@ -47,6 +49,7 @@ export declare namespace CreateUserCommand {
47
49
  vlessUuid?: string | undefined;
48
50
  ssPassword?: string | undefined;
49
51
  activeUserInbounds?: string[] | undefined;
52
+ activateAllInbounds?: boolean | undefined;
50
53
  }>;
51
54
  type Request = z.infer<typeof RequestSchema>;
52
55
  const ResponseSchema: z.ZodObject<{
@@ -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,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAmGxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
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,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAoGxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -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,6 +105,7 @@ var CreateUserCommand;
105
105
  })
106
106
  .optional(),
107
107
  description: zod_1.z.string().optional(),
108
+ activateAllInbounds: zod_1.z.boolean().optional(),
108
109
  });
109
110
  CreateUserCommand.ResponseSchema = zod_1.z.object({
110
111
  response: models_1.UsersSchema,
@@ -304,5 +304,10 @@ export declare const ERRORS: {
304
304
  readonly message: "Reorder nodes error";
305
305
  readonly httpCode: 500;
306
306
  };
307
+ readonly GET_ALL_INBOUNDS_ERROR: {
308
+ readonly code: "A058";
309
+ readonly message: "Get all inbounds error";
310
+ readonly httpCode: 500;
311
+ };
307
312
  };
308
313
  //# sourceMappingURL=errors.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../constants/errors/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAwJY,MAAM;;;;;;;;;;wCAUN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyH3B,CAAC"}
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../constants/errors/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAwJY,MAAM;;;;;;;;;;wCAUN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8H3B,CAAC"}
@@ -283,4 +283,9 @@ exports.ERRORS = {
283
283
  message: 'Reorder nodes error',
284
284
  httpCode: 500,
285
285
  },
286
+ GET_ALL_INBOUNDS_ERROR: {
287
+ code: 'A058',
288
+ message: 'Get all inbounds error',
289
+ httpCode: 500,
290
+ },
286
291
  };
@@ -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,6 +105,7 @@ var CreateUserCommand;
105
105
  })
106
106
  .optional(),
107
107
  description: zod_1.z.string().optional(),
108
+ activateAllInbounds: zod_1.z.boolean().optional(),
108
109
  });
109
110
  CreateUserCommand.ResponseSchema = zod_1.z.object({
110
111
  response: models_1.UsersSchema,
@@ -283,4 +283,9 @@ exports.ERRORS = {
283
283
  message: 'Reorder nodes error',
284
284
  httpCode: 500,
285
285
  },
286
+ GET_ALL_INBOUNDS_ERROR: {
287
+ code: 'A058',
288
+ message: 'Get all inbounds error',
289
+ httpCode: 500,
290
+ },
286
291
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/backend-contract",
3
- "version": "0.0.82",
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.",