@remnawave/backend-contract 0.0.9 → 0.0.11

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.
@@ -72,10 +72,8 @@ var CreateUserCommand;
72
72
  });
73
73
  }
74
74
  }),
75
- enabledInbounds: zod_1.z
76
- .array(models_1.InboundsSchema.pick({
77
- uuid: true,
78
- }), {
75
+ activeUserInbounds: zod_1.z
76
+ .array(zod_1.z.string().uuid(), {
79
77
  invalid_type_error: 'Enabled inbounds must be an array',
80
78
  })
81
79
  .optional(),
@@ -35,11 +35,9 @@ var UpdateUserCommand;
35
35
  });
36
36
  }
37
37
  }),
38
- enabledInbounds: zod_1.z
39
- .array(models_1.InboundsSchema.pick({
40
- uuid: true,
41
- }), {
42
- invalid_type_error: 'Enabled inbounds must be an array',
38
+ activeUserInbounds: zod_1.z
39
+ .array(zod_1.z.string().uuid(), {
40
+ invalid_type_error: 'Enabled inbounds must be an array of UUIDs',
43
41
  })
44
42
  .optional(),
45
43
  expireAt: zod_1.z.coerce
@@ -73,15 +73,10 @@ export namespace CreateUserCommand {
73
73
  });
74
74
  }
75
75
  }),
76
- enabledInbounds: z
77
- .array(
78
- InboundsSchema.pick({
79
- uuid: true,
80
- }),
81
- {
82
- invalid_type_error: 'Enabled inbounds must be an array',
83
- },
84
- )
76
+ activeUserInbounds: z
77
+ .array(z.string().uuid(), {
78
+ invalid_type_error: 'Enabled inbounds must be an array',
79
+ })
85
80
  .optional(),
86
81
  expireAt: z.coerce
87
82
  .date({
@@ -33,15 +33,10 @@ export namespace UpdateUserCommand {
33
33
  });
34
34
  }
35
35
  }),
36
- enabledInbounds: z
37
- .array(
38
- InboundsSchema.pick({
39
- uuid: true,
40
- }),
41
- {
42
- invalid_type_error: 'Enabled inbounds must be an array',
43
- },
44
- )
36
+ activeUserInbounds: z
37
+ .array(z.string().uuid(), {
38
+ invalid_type_error: 'Enabled inbounds must be an array of UUIDs',
39
+ })
45
40
  .optional(),
46
41
  expireAt: z.coerce
47
42
  .date({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/backend-contract",
3
- "version": "0.0.9",
3
+ "version": "0.0.11",
4
4
  "description": "A contract library for Remnawave",
5
5
  "main": "index.js",
6
6
  "scripts": {