@remnawave/backend-contract 0.4.4 → 0.4.5
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.
- package/build/backend/commands/users/create-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/create-user.command.js +5 -1
- package/build/backend/commands/users/update-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/update-user.command.js +1 -1
- package/build/backend/models/hwid-user-device.schema.js +1 -1
- package/build/backend/models/subscription-settings.schema.d.ts.map +1 -1
- package/build/backend/models/subscription-settings.schema.js +1 -1
- package/build/frontend/commands/users/create-user.command.js +5 -1
- package/build/frontend/commands/users/update-user.command.js +1 -1
- package/build/frontend/models/hwid-user-device.schema.js +1 -1
- package/build/frontend/models/subscription-settings.schema.js +1 -1
- package/package.json +1 -1
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA8GxB,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"}
|
@@ -105,7 +105,11 @@ var CreateUserCommand;
|
|
105
105
|
description: zod_1.z.string().optional(),
|
106
106
|
telegramId: zod_1.z.optional(zod_1.z.number().int()),
|
107
107
|
email: zod_1.z.string().email('Invalid email format').optional(),
|
108
|
-
hwidDeviceLimit: zod_1.z.optional(zod_1.z
|
108
|
+
hwidDeviceLimit: zod_1.z.optional(zod_1.z
|
109
|
+
.number({ invalid_type_error: 'Device limit must be a number' })
|
110
|
+
.int('Device limit must be an integer')
|
111
|
+
.min(0, 'Device limit must be greater than 0')
|
112
|
+
.describe('Device limit')),
|
109
113
|
activateAllInbounds: zod_1.z.boolean().optional(),
|
110
114
|
});
|
111
115
|
CreateUserCommand.ResponseSchema = zod_1.z.object({
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"update-user.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/update-user.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,qBAAwB,CAAC;IAClC,MAAM,OAAO,qBAAM,CAAC;IAEpB,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
1
|
+
{"version":3,"file":"update-user.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/update-user.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,qBAAwB,CAAC;IAClC,MAAM,OAAO,qBAAM,CAAC;IAEpB,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA8CxB,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"}
|
@@ -52,7 +52,7 @@ var UpdateUserCommand;
|
|
52
52
|
description: zod_1.z.optional(zod_1.z.string().nullable()),
|
53
53
|
telegramId: zod_1.z.optional(zod_1.z.number().int().nullable()),
|
54
54
|
email: zod_1.z.optional(zod_1.z.string().email('Invalid email format').nullable()),
|
55
|
-
hwidDeviceLimit: zod_1.z.optional(zod_1.z.number().int().nullable()),
|
55
|
+
hwidDeviceLimit: zod_1.z.optional(zod_1.z.number().int().min(0, 'Device limit must be non-negative').nullable()),
|
56
56
|
});
|
57
57
|
UpdateUserCommand.ResponseSchema = zod_1.z.object({
|
58
58
|
response: models_1.ExtendedUsersSchema,
|
@@ -4,7 +4,7 @@ exports.HwidUserDeviceSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
5
5
|
exports.HwidUserDeviceSchema = zod_1.z.object({
|
6
6
|
hwid: zod_1.z.string(),
|
7
|
-
userUuid: zod_1.z.string(),
|
7
|
+
userUuid: zod_1.z.string().uuid(),
|
8
8
|
platform: zod_1.z.nullable(zod_1.z.string()),
|
9
9
|
osVersion: zod_1.z.nullable(zod_1.z.string()),
|
10
10
|
deviceModel: zod_1.z.nullable(zod_1.z.string()),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"subscription-settings.schema.d.ts","sourceRoot":"","sources":["../../../models/subscription-settings.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
1
|
+
{"version":3,"file":"subscription-settings.schema.d.ts","sourceRoot":"","sources":["../../../models/subscription-settings.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqCrC,CAAC"}
|
@@ -19,7 +19,7 @@ exports.SubscriptionSettingsSchema = zod_1.z.object({
|
|
19
19
|
expiredUsersRemarks: zod_1.z.array(zod_1.z.string()),
|
20
20
|
limitedUsersRemarks: zod_1.z.array(zod_1.z.string()),
|
21
21
|
disabledUsersRemarks: zod_1.z.array(zod_1.z.string()),
|
22
|
-
customResponseHeaders: zod_1.z.nullable(zod_1.z.record(zod_1.z.string(), zod_1.z.string())),
|
22
|
+
customResponseHeaders: zod_1.z.nullable(zod_1.z.record(zod_1.z.string().regex(/^[!#$%&'*+-.^_`|~0-9a-zA-Z]+$/, 'Invalid header name'), zod_1.z.string())),
|
23
23
|
createdAt: zod_1.z
|
24
24
|
.string()
|
25
25
|
.datetime()
|
@@ -105,7 +105,11 @@ var CreateUserCommand;
|
|
105
105
|
description: zod_1.z.string().optional(),
|
106
106
|
telegramId: zod_1.z.optional(zod_1.z.number().int()),
|
107
107
|
email: zod_1.z.string().email('Invalid email format').optional(),
|
108
|
-
hwidDeviceLimit: zod_1.z.optional(zod_1.z
|
108
|
+
hwidDeviceLimit: zod_1.z.optional(zod_1.z
|
109
|
+
.number({ invalid_type_error: 'Device limit must be a number' })
|
110
|
+
.int('Device limit must be an integer')
|
111
|
+
.min(0, 'Device limit must be greater than 0')
|
112
|
+
.describe('Device limit')),
|
109
113
|
activateAllInbounds: zod_1.z.boolean().optional(),
|
110
114
|
});
|
111
115
|
CreateUserCommand.ResponseSchema = zod_1.z.object({
|
@@ -52,7 +52,7 @@ var UpdateUserCommand;
|
|
52
52
|
description: zod_1.z.optional(zod_1.z.string().nullable()),
|
53
53
|
telegramId: zod_1.z.optional(zod_1.z.number().int().nullable()),
|
54
54
|
email: zod_1.z.optional(zod_1.z.string().email('Invalid email format').nullable()),
|
55
|
-
hwidDeviceLimit: zod_1.z.optional(zod_1.z.number().int().nullable()),
|
55
|
+
hwidDeviceLimit: zod_1.z.optional(zod_1.z.number().int().min(0, 'Device limit must be non-negative').nullable()),
|
56
56
|
});
|
57
57
|
UpdateUserCommand.ResponseSchema = zod_1.z.object({
|
58
58
|
response: models_1.ExtendedUsersSchema,
|
@@ -4,7 +4,7 @@ exports.HwidUserDeviceSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
5
5
|
exports.HwidUserDeviceSchema = zod_1.z.object({
|
6
6
|
hwid: zod_1.z.string(),
|
7
|
-
userUuid: zod_1.z.string(),
|
7
|
+
userUuid: zod_1.z.string().uuid(),
|
8
8
|
platform: zod_1.z.nullable(zod_1.z.string()),
|
9
9
|
osVersion: zod_1.z.nullable(zod_1.z.string()),
|
10
10
|
deviceModel: zod_1.z.nullable(zod_1.z.string()),
|
@@ -19,7 +19,7 @@ exports.SubscriptionSettingsSchema = zod_1.z.object({
|
|
19
19
|
expiredUsersRemarks: zod_1.z.array(zod_1.z.string()),
|
20
20
|
limitedUsersRemarks: zod_1.z.array(zod_1.z.string()),
|
21
21
|
disabledUsersRemarks: zod_1.z.array(zod_1.z.string()),
|
22
|
-
customResponseHeaders: zod_1.z.nullable(zod_1.z.record(zod_1.z.string(), zod_1.z.string())),
|
22
|
+
customResponseHeaders: zod_1.z.nullable(zod_1.z.record(zod_1.z.string().regex(/^[!#$%&'*+-.^_`|~0-9a-zA-Z]+$/, 'Invalid header name'), zod_1.z.string())),
|
23
23
|
createdAt: zod_1.z
|
24
24
|
.string()
|
25
25
|
.datetime()
|