@remnawave/backend-contract 3.2.1 → 3.2.2

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 (22) hide show
  1. package/build/backend/commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.d.ts +1 -1
  2. package/build/backend/commands/users/actions/disable-user.command.d.ts +1 -1
  3. package/build/backend/commands/users/actions/enable-user.command.d.ts +1 -1
  4. package/build/backend/commands/users/actions/extend-user.command.d.ts +1 -1
  5. package/build/backend/commands/users/actions/reset-user-traffic.command.d.ts +1 -1
  6. package/build/backend/commands/users/actions/revoke-user-subscription.command.d.ts +1 -1
  7. package/build/backend/commands/users/create-user.command.d.ts +2 -2
  8. package/build/backend/commands/users/create-user.command.js +1 -1
  9. package/build/backend/commands/users/get-by/get-user-by-short-uuid.command.d.ts +1 -1
  10. package/build/backend/commands/users/get-by/get-user-by-username.command.d.ts +1 -1
  11. package/build/backend/commands/users/get-user-by-id.command.d.ts +1 -1
  12. package/build/backend/commands/users/get-users-stream.command.d.ts +1 -1
  13. package/build/backend/commands/users/get-users.command.d.ts +1 -1
  14. package/build/backend/commands/users/update-user.command.d.ts +1 -1
  15. package/build/backend/commands/users/user.response.d.ts +1 -1
  16. package/build/backend/models/extended-users.schema.d.ts +1 -1
  17. package/build/backend/models/users.schema.d.ts +1 -1
  18. package/build/backend/models/users.schema.js +1 -1
  19. package/build/backend/models/webhook/webhook.schema.d.ts +6 -6
  20. package/build/frontend/commands/users/create-user.command.js +1 -1
  21. package/build/frontend/models/users.schema.js +1 -1
  22. package/package.json +1 -1
@@ -37,7 +37,7 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
37
37
  hwidDeviceLimit: z.ZodNullable<z.ZodInt>;
38
38
  externalSquadUuid: z.ZodNullable<z.ZodUUID>;
39
39
  trojanPassword: z.ZodString;
40
- vlessUuid: z.ZodUUID;
40
+ vlessUuid: z.ZodGUID;
41
41
  ssPassword: z.ZodString;
42
42
  lastTriggeredThreshold: z.ZodInt;
43
43
  subRevokedAt: z.ZodNullable<z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>>;
@@ -33,7 +33,7 @@ export declare namespace DisableUserCommand {
33
33
  hwidDeviceLimit: z.ZodNullable<z.ZodInt>;
34
34
  externalSquadUuid: z.ZodNullable<z.ZodUUID>;
35
35
  trojanPassword: z.ZodString;
36
- vlessUuid: z.ZodUUID;
36
+ vlessUuid: z.ZodGUID;
37
37
  ssPassword: z.ZodString;
38
38
  lastTriggeredThreshold: z.ZodInt;
39
39
  subRevokedAt: z.ZodNullable<z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>>;
@@ -33,7 +33,7 @@ export declare namespace EnableUserCommand {
33
33
  hwidDeviceLimit: z.ZodNullable<z.ZodInt>;
34
34
  externalSquadUuid: z.ZodNullable<z.ZodUUID>;
35
35
  trojanPassword: z.ZodString;
36
- vlessUuid: z.ZodUUID;
36
+ vlessUuid: z.ZodGUID;
37
37
  ssPassword: z.ZodString;
38
38
  lastTriggeredThreshold: z.ZodInt;
39
39
  subRevokedAt: z.ZodNullable<z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>>;
@@ -36,7 +36,7 @@ export declare namespace ExtendUserCommand {
36
36
  hwidDeviceLimit: z.ZodNullable<z.ZodInt>;
37
37
  externalSquadUuid: z.ZodNullable<z.ZodUUID>;
38
38
  trojanPassword: z.ZodString;
39
- vlessUuid: z.ZodUUID;
39
+ vlessUuid: z.ZodGUID;
40
40
  ssPassword: z.ZodString;
41
41
  lastTriggeredThreshold: z.ZodInt;
42
42
  subRevokedAt: z.ZodNullable<z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>>;
@@ -33,7 +33,7 @@ export declare namespace ResetUserTrafficCommand {
33
33
  hwidDeviceLimit: z.ZodNullable<z.ZodInt>;
34
34
  externalSquadUuid: z.ZodNullable<z.ZodUUID>;
35
35
  trojanPassword: z.ZodString;
36
- vlessUuid: z.ZodUUID;
36
+ vlessUuid: z.ZodGUID;
37
37
  ssPassword: z.ZodString;
38
38
  lastTriggeredThreshold: z.ZodInt;
39
39
  subRevokedAt: z.ZodNullable<z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>>;
@@ -37,7 +37,7 @@ export declare namespace RevokeUserSubscriptionCommand {
37
37
  hwidDeviceLimit: z.ZodNullable<z.ZodInt>;
38
38
  externalSquadUuid: z.ZodNullable<z.ZodUUID>;
39
39
  trojanPassword: z.ZodString;
40
- vlessUuid: z.ZodUUID;
40
+ vlessUuid: z.ZodGUID;
41
41
  ssPassword: z.ZodString;
42
42
  lastTriggeredThreshold: z.ZodInt;
43
43
  subRevokedAt: z.ZodNullable<z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>>;
@@ -13,7 +13,7 @@ export declare namespace CreateUserCommand {
13
13
  }>>>;
14
14
  shortUuid: z.ZodOptional<z.ZodString>;
15
15
  trojanPassword: z.ZodOptional<z.ZodString>;
16
- vlessUuid: z.ZodOptional<z.ZodUUID>;
16
+ vlessUuid: z.ZodOptional<z.ZodGUID>;
17
17
  ssPassword: z.ZodOptional<z.ZodString>;
18
18
  trafficLimitBytes: z.ZodOptional<z.ZodNumber>;
19
19
  trafficLimitStrategy: z.ZodOptional<z.ZodDefault<z.ZodEnum<{
@@ -61,7 +61,7 @@ export declare namespace CreateUserCommand {
61
61
  hwidDeviceLimit: z.ZodNullable<z.ZodInt>;
62
62
  externalSquadUuid: z.ZodNullable<z.ZodUUID>;
63
63
  trojanPassword: z.ZodString;
64
- vlessUuid: z.ZodUUID;
64
+ vlessUuid: z.ZodGUID;
65
65
  ssPassword: z.ZodString;
66
66
  lastTriggeredThreshold: z.ZodInt;
67
67
  subRevokedAt: z.ZodNullable<z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>>;
@@ -30,7 +30,7 @@ var CreateUserCommand;
30
30
  .optional()
31
31
  .describe('Optional. Password for Trojan protocol. Must be 8-32 characters.'),
32
32
  vlessUuid: zod_1.z
33
- .uuid('Invalid Vless UUID format')
33
+ .guid('Invalid Vless UUID format')
34
34
  .optional()
35
35
  .describe('Optional. UUID for VLESS protocol. Must be a valid UUID format.'),
36
36
  ssPassword: zod_1.z
@@ -33,7 +33,7 @@ export declare namespace GetUserByShortUuidCommand {
33
33
  hwidDeviceLimit: z.ZodNullable<z.ZodInt>;
34
34
  externalSquadUuid: z.ZodNullable<z.ZodUUID>;
35
35
  trojanPassword: z.ZodString;
36
- vlessUuid: z.ZodUUID;
36
+ vlessUuid: z.ZodGUID;
37
37
  ssPassword: z.ZodString;
38
38
  lastTriggeredThreshold: z.ZodInt;
39
39
  subRevokedAt: z.ZodNullable<z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>>;
@@ -33,7 +33,7 @@ export declare namespace GetUserByUsernameCommand {
33
33
  hwidDeviceLimit: z.ZodNullable<z.ZodInt>;
34
34
  externalSquadUuid: z.ZodNullable<z.ZodUUID>;
35
35
  trojanPassword: z.ZodString;
36
- vlessUuid: z.ZodUUID;
36
+ vlessUuid: z.ZodGUID;
37
37
  ssPassword: z.ZodString;
38
38
  lastTriggeredThreshold: z.ZodInt;
39
39
  subRevokedAt: z.ZodNullable<z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>>;
@@ -33,7 +33,7 @@ export declare namespace GetUserByIdCommand {
33
33
  hwidDeviceLimit: z.ZodNullable<z.ZodInt>;
34
34
  externalSquadUuid: z.ZodNullable<z.ZodUUID>;
35
35
  trojanPassword: z.ZodString;
36
- vlessUuid: z.ZodUUID;
36
+ vlessUuid: z.ZodGUID;
37
37
  ssPassword: z.ZodString;
38
38
  lastTriggeredThreshold: z.ZodInt;
39
39
  subRevokedAt: z.ZodNullable<z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>>;
@@ -52,7 +52,7 @@ export declare namespace GetUsersStreamCommand {
52
52
  hwidDeviceLimit: z.ZodNullable<z.ZodInt>;
53
53
  externalSquadUuid: z.ZodNullable<z.ZodUUID>;
54
54
  trojanPassword: z.ZodString;
55
- vlessUuid: z.ZodUUID;
55
+ vlessUuid: z.ZodGUID;
56
56
  ssPassword: z.ZodString;
57
57
  lastTriggeredThreshold: z.ZodInt;
58
58
  subRevokedAt: z.ZodNullable<z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>>;
@@ -45,7 +45,7 @@ export declare namespace GetUsersCommand {
45
45
  hwidDeviceLimit: z.ZodNullable<z.ZodInt>;
46
46
  externalSquadUuid: z.ZodNullable<z.ZodUUID>;
47
47
  trojanPassword: z.ZodString;
48
- vlessUuid: z.ZodUUID;
48
+ vlessUuid: z.ZodGUID;
49
49
  ssPassword: z.ZodString;
50
50
  lastTriggeredThreshold: z.ZodInt;
51
51
  subRevokedAt: z.ZodNullable<z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>>;
@@ -54,7 +54,7 @@ export declare namespace UpdateUserCommand {
54
54
  hwidDeviceLimit: z.ZodNullable<z.ZodInt>;
55
55
  externalSquadUuid: z.ZodNullable<z.ZodUUID>;
56
56
  trojanPassword: z.ZodString;
57
- vlessUuid: z.ZodUUID;
57
+ vlessUuid: z.ZodGUID;
58
58
  ssPassword: z.ZodString;
59
59
  lastTriggeredThreshold: z.ZodInt;
60
60
  subRevokedAt: z.ZodNullable<z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>>;
@@ -26,7 +26,7 @@ export declare const UserResponseSchema: z.ZodObject<{
26
26
  hwidDeviceLimit: z.ZodNullable<z.ZodInt>;
27
27
  externalSquadUuid: z.ZodNullable<z.ZodUUID>;
28
28
  trojanPassword: z.ZodString;
29
- vlessUuid: z.ZodUUID;
29
+ vlessUuid: z.ZodGUID;
30
30
  ssPassword: z.ZodString;
31
31
  lastTriggeredThreshold: z.ZodInt;
32
32
  subRevokedAt: z.ZodNullable<z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>>;
@@ -25,7 +25,7 @@ export declare const ExtendedUsersSchema: z.ZodObject<{
25
25
  hwidDeviceLimit: z.ZodNullable<z.ZodInt>;
26
26
  externalSquadUuid: z.ZodNullable<z.ZodUUID>;
27
27
  trojanPassword: z.ZodString;
28
- vlessUuid: z.ZodUUID;
28
+ vlessUuid: z.ZodGUID;
29
29
  ssPassword: z.ZodString;
30
30
  lastTriggeredThreshold: z.ZodInt;
31
31
  subRevokedAt: z.ZodNullable<z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>>;
@@ -25,7 +25,7 @@ export declare const UsersSchema: z.ZodObject<{
25
25
  hwidDeviceLimit: z.ZodNullable<z.ZodInt>;
26
26
  externalSquadUuid: z.ZodNullable<z.ZodUUID>;
27
27
  trojanPassword: z.ZodString;
28
- vlessUuid: z.ZodUUID;
28
+ vlessUuid: z.ZodGUID;
29
29
  ssPassword: z.ZodString;
30
30
  lastTriggeredThreshold: z.ZodInt;
31
31
  subRevokedAt: z.ZodNullable<z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>>;
@@ -18,7 +18,7 @@ exports.UsersSchema = zod_1.z.object({
18
18
  hwidDeviceLimit: zod_1.z.nullable(zod_1.z.int()),
19
19
  externalSquadUuid: zod_1.z.nullable(zod_1.z.uuid()),
20
20
  trojanPassword: zod_1.z.string(),
21
- vlessUuid: zod_1.z.uuid(),
21
+ vlessUuid: zod_1.z.guid(),
22
22
  ssPassword: zod_1.z.string(),
23
23
  lastTriggeredThreshold: zod_1.z.int(),
24
24
  subRevokedAt: zod_1.z.nullable(zod_1.z.iso.datetime().transform((str) => new Date(str))),
@@ -43,7 +43,7 @@ export declare const RemnawaveWebhookUserEvents: z.ZodObject<{
43
43
  hwidDeviceLimit: z.ZodNullable<z.ZodInt>;
44
44
  externalSquadUuid: z.ZodNullable<z.ZodUUID>;
45
45
  trojanPassword: z.ZodString;
46
- vlessUuid: z.ZodUUID;
46
+ vlessUuid: z.ZodGUID;
47
47
  ssPassword: z.ZodString;
48
48
  lastTriggeredThreshold: z.ZodInt;
49
49
  subRevokedAt: z.ZodNullable<z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>>;
@@ -102,7 +102,7 @@ export declare const RemnawaveWebhookUserHwidDevicesEvents: z.ZodObject<{
102
102
  hwidDeviceLimit: z.ZodNullable<z.ZodInt>;
103
103
  externalSquadUuid: z.ZodNullable<z.ZodUUID>;
104
104
  trojanPassword: z.ZodString;
105
- vlessUuid: z.ZodUUID;
105
+ vlessUuid: z.ZodGUID;
106
106
  ssPassword: z.ZodString;
107
107
  lastTriggeredThreshold: z.ZodInt;
108
108
  subRevokedAt: z.ZodNullable<z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>>;
@@ -441,7 +441,7 @@ export declare const RemnawaveWebhookTorrentBlockerEvents: z.ZodObject<{
441
441
  hwidDeviceLimit: z.ZodNullable<z.ZodInt>;
442
442
  externalSquadUuid: z.ZodNullable<z.ZodUUID>;
443
443
  trojanPassword: z.ZodString;
444
- vlessUuid: z.ZodUUID;
444
+ vlessUuid: z.ZodGUID;
445
445
  ssPassword: z.ZodString;
446
446
  lastTriggeredThreshold: z.ZodInt;
447
447
  subRevokedAt: z.ZodNullable<z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>>;
@@ -532,7 +532,7 @@ export declare const RemnawaveWebhookEventSchema: z.ZodDiscriminatedUnion<[z.Zod
532
532
  hwidDeviceLimit: z.ZodNullable<z.ZodInt>;
533
533
  externalSquadUuid: z.ZodNullable<z.ZodUUID>;
534
534
  trojanPassword: z.ZodString;
535
- vlessUuid: z.ZodUUID;
535
+ vlessUuid: z.ZodGUID;
536
536
  ssPassword: z.ZodString;
537
537
  lastTriggeredThreshold: z.ZodInt;
538
538
  subRevokedAt: z.ZodNullable<z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>>;
@@ -590,7 +590,7 @@ export declare const RemnawaveWebhookEventSchema: z.ZodDiscriminatedUnion<[z.Zod
590
590
  hwidDeviceLimit: z.ZodNullable<z.ZodInt>;
591
591
  externalSquadUuid: z.ZodNullable<z.ZodUUID>;
592
592
  trojanPassword: z.ZodString;
593
- vlessUuid: z.ZodUUID;
593
+ vlessUuid: z.ZodGUID;
594
594
  ssPassword: z.ZodString;
595
595
  lastTriggeredThreshold: z.ZodInt;
596
596
  subRevokedAt: z.ZodNullable<z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>>;
@@ -924,7 +924,7 @@ export declare const RemnawaveWebhookEventSchema: z.ZodDiscriminatedUnion<[z.Zod
924
924
  hwidDeviceLimit: z.ZodNullable<z.ZodInt>;
925
925
  externalSquadUuid: z.ZodNullable<z.ZodUUID>;
926
926
  trojanPassword: z.ZodString;
927
- vlessUuid: z.ZodUUID;
927
+ vlessUuid: z.ZodGUID;
928
928
  ssPassword: z.ZodString;
929
929
  lastTriggeredThreshold: z.ZodInt;
930
930
  subRevokedAt: z.ZodNullable<z.ZodPipe<z.ZodISODateTime, z.ZodTransform<Date, string>>>;
@@ -30,7 +30,7 @@ var CreateUserCommand;
30
30
  .optional()
31
31
  .describe('Optional. Password for Trojan protocol. Must be 8-32 characters.'),
32
32
  vlessUuid: zod_1.z
33
- .uuid('Invalid Vless UUID format')
33
+ .guid('Invalid Vless UUID format')
34
34
  .optional()
35
35
  .describe('Optional. UUID for VLESS protocol. Must be a valid UUID format.'),
36
36
  ssPassword: zod_1.z
@@ -18,7 +18,7 @@ exports.UsersSchema = zod_1.z.object({
18
18
  hwidDeviceLimit: zod_1.z.nullable(zod_1.z.int()),
19
19
  externalSquadUuid: zod_1.z.nullable(zod_1.z.uuid()),
20
20
  trojanPassword: zod_1.z.string(),
21
- vlessUuid: zod_1.z.uuid(),
21
+ vlessUuid: zod_1.z.guid(),
22
22
  ssPassword: zod_1.z.string(),
23
23
  lastTriggeredThreshold: zod_1.z.int(),
24
24
  subRevokedAt: zod_1.z.nullable(zod_1.z.iso.datetime().transform((str) => new Date(str))),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/backend-contract",
3
- "version": "3.2.1",
3
+ "version": "3.2.2",
4
4
  "description": "A contract library for Remnawave Backend. It can be used in backend and frontend.",
5
5
  "keywords": [],
6
6
  "homepage": "https://github.com/remnawave",