@remnawave/backend-contract 2.8.12 → 2.8.15
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/api/controllers/hosts.d.ts +2 -0
- package/build/backend/api/controllers/hosts.d.ts.map +1 -1
- package/build/backend/api/controllers/hosts.js +2 -0
- package/build/backend/api/routes.d.ts +2 -0
- package/build/backend/api/routes.d.ts.map +1 -1
- package/build/backend/api/routes.js +2 -0
- package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts +21 -14
- package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts +233 -0
- package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts.map +1 -0
- package/build/backend/commands/hosts/bulk/disable-many-hosts.command.js +19 -0
- package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts +233 -0
- package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts.map +1 -0
- package/build/backend/commands/hosts/bulk/enable-many-hosts.command.js +19 -0
- package/build/backend/commands/hosts/bulk/index.d.ts +2 -0
- package/build/backend/commands/hosts/bulk/index.d.ts.map +1 -1
- package/build/backend/commands/hosts/bulk/index.js +2 -0
- package/build/backend/commands/hosts/bulk/update-many-hosts.command.d.ts +31 -24
- package/build/backend/commands/hosts/bulk/update-many-hosts.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/create.command.d.ts +32 -25
- package/build/backend/commands/hosts/create.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/create.command.js +17 -17
- package/build/backend/commands/hosts/get-all.command.d.ts +21 -14
- package/build/backend/commands/hosts/get-all.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/get-one.command.d.ts +21 -14
- package/build/backend/commands/hosts/get-one.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/reorder.command.d.ts +11 -4
- package/build/backend/commands/hosts/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/update.command.d.ts +43 -29
- package/build/backend/commands/hosts/update.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/update.command.js +16 -16
- package/build/backend/constants/errors/errors.d.ts +10 -0
- package/build/backend/constants/errors/errors.d.ts.map +1 -1
- package/build/backend/constants/errors/errors.js +10 -0
- package/build/backend/constants/hosts/alpn.d.ts +1 -0
- package/build/backend/constants/hosts/alpn.d.ts.map +1 -1
- package/build/backend/models/hosts.schema.d.ts +16 -9
- package/build/backend/models/hosts.schema.d.ts.map +1 -1
- package/build/backend/models/hosts.schema.js +3 -3
- package/build/frontend/api/controllers/hosts.js +2 -0
- package/build/frontend/api/routes.js +2 -0
- package/build/frontend/commands/hosts/bulk/disable-many-hosts.command.js +19 -0
- package/build/frontend/commands/hosts/bulk/enable-many-hosts.command.js +19 -0
- package/build/frontend/commands/hosts/bulk/index.js +2 -0
- package/build/frontend/commands/hosts/create.command.js +17 -17
- package/build/frontend/commands/hosts/update.command.js +16 -16
- package/build/frontend/constants/errors/errors.js +10 -0
- package/build/frontend/models/hosts.schema.js +3 -3
- package/package.json +1 -1
|
@@ -38,23 +38,23 @@ var UpdateHostCommand;
|
|
|
38
38
|
})
|
|
39
39
|
.int()
|
|
40
40
|
.optional(),
|
|
41
|
-
path: zod_1.z.
|
|
42
|
-
sni: zod_1.z.
|
|
43
|
-
host: zod_1.z.
|
|
44
|
-
alpn: zod_1.z.
|
|
45
|
-
fingerprint: zod_1.z.
|
|
46
|
-
isDisabled: zod_1.z.
|
|
41
|
+
path: zod_1.z.string().nullish(),
|
|
42
|
+
sni: zod_1.z.string().nullish(),
|
|
43
|
+
host: zod_1.z.string().nullish(),
|
|
44
|
+
alpn: zod_1.z.nativeEnum(constants_1.ALPN).nullish(),
|
|
45
|
+
fingerprint: zod_1.z.string().nullish(),
|
|
46
|
+
isDisabled: zod_1.z.boolean().default(false),
|
|
47
47
|
securityLayer: zod_1.z.optional(zod_1.z.nativeEnum(constants_1.SECURITY_LAYERS)),
|
|
48
|
-
xHttpExtraParams: zod_1.z.
|
|
49
|
-
muxParams: zod_1.z.
|
|
50
|
-
sockoptParams: zod_1.z.
|
|
51
|
-
finalMask: zod_1.z.
|
|
52
|
-
serverDescription: zod_1.z
|
|
48
|
+
xHttpExtraParams: zod_1.z.unknown().nullish(),
|
|
49
|
+
muxParams: zod_1.z.unknown().nullish(),
|
|
50
|
+
sockoptParams: zod_1.z.unknown().nullish(),
|
|
51
|
+
finalMask: zod_1.z.unknown().nullish(),
|
|
52
|
+
serverDescription: zod_1.z
|
|
53
53
|
.string()
|
|
54
54
|
.max(30, {
|
|
55
55
|
message: 'Server description must be less than 30 characters',
|
|
56
56
|
})
|
|
57
|
-
.
|
|
57
|
+
.nullish(),
|
|
58
58
|
tags: zod_1.z.optional(zod_1.z
|
|
59
59
|
.array(zod_1.z
|
|
60
60
|
.string()
|
|
@@ -65,13 +65,13 @@ var UpdateHostCommand;
|
|
|
65
65
|
overrideSniFromAddress: zod_1.z.optional(zod_1.z.boolean()),
|
|
66
66
|
keepSniBlank: zod_1.z.optional(zod_1.z.boolean()),
|
|
67
67
|
vlessRouteId: zod_1.z.optional(zod_1.z.number().int().min(0).max(65535).nullable()),
|
|
68
|
-
pinnedPeerCertSha256: zod_1.z.
|
|
69
|
-
verifyPeerCertByName: zod_1.z.
|
|
68
|
+
pinnedPeerCertSha256: zod_1.z.string().nullish(),
|
|
69
|
+
verifyPeerCertByName: zod_1.z.string().nullish(),
|
|
70
70
|
shuffleHost: zod_1.z.optional(zod_1.z.boolean()),
|
|
71
71
|
mihomoX25519: zod_1.z.optional(zod_1.z.boolean()),
|
|
72
|
-
mihomoIpVersion: zod_1.z.
|
|
72
|
+
mihomoIpVersion: zod_1.z.nativeEnum(constants_1.MIHOMO_IP_VERSION).nullish(),
|
|
73
73
|
nodes: zod_1.z.optional(zod_1.z.array(zod_1.z.string().uuid())),
|
|
74
|
-
xrayJsonTemplateUuid: zod_1.z.
|
|
74
|
+
xrayJsonTemplateUuid: zod_1.z.string().uuid().nullish(),
|
|
75
75
|
excludedInternalSquads: zod_1.z
|
|
76
76
|
.optional(zod_1.z.array(zod_1.z.string().uuid()))
|
|
77
77
|
.describe('Optional. Internal squads from which the host will be excluded.'),
|
|
@@ -390,6 +390,16 @@ exports.ERRORS = {
|
|
|
390
390
|
message: 'Delete hosts error',
|
|
391
391
|
httpCode: 500,
|
|
392
392
|
},
|
|
393
|
+
BULK_ENABLE_HOSTS_ERROR: {
|
|
394
|
+
code: 'A080',
|
|
395
|
+
message: 'Bulk enable hosts error',
|
|
396
|
+
httpCode: 500,
|
|
397
|
+
},
|
|
398
|
+
BULK_DISABLE_HOSTS_ERROR: {
|
|
399
|
+
code: 'A081',
|
|
400
|
+
message: 'Bulk disable hosts error',
|
|
401
|
+
httpCode: 500,
|
|
402
|
+
},
|
|
393
403
|
BULK_DELETE_USERS_BY_UUID_ERROR: {
|
|
394
404
|
code: 'A084',
|
|
395
405
|
message: 'Bulk delete users by UUID error',
|
|
@@ -13,9 +13,9 @@ exports.HostsSchema = zod_1.z.object({
|
|
|
13
13
|
path: zod_1.z.string().nullable(),
|
|
14
14
|
sni: zod_1.z.string().nullable(),
|
|
15
15
|
host: zod_1.z.string().nullable(),
|
|
16
|
-
alpn: zod_1.z.
|
|
16
|
+
alpn: zod_1.z.nativeEnum(hosts_1.ALPN).nullable(),
|
|
17
17
|
fingerprint: zod_1.z.string().nullable(),
|
|
18
|
-
isDisabled: zod_1.z.boolean()
|
|
18
|
+
isDisabled: zod_1.z.boolean(),
|
|
19
19
|
securityLayer: zod_1.z.nativeEnum(hosts_1.SECURITY_LAYERS).default(hosts_1.SECURITY_LAYERS.DEFAULT),
|
|
20
20
|
xHttpExtraParams: zod_1.z.nullable(zod_1.z.unknown()),
|
|
21
21
|
muxParams: zod_1.z.nullable(zod_1.z.unknown()),
|
|
@@ -39,5 +39,5 @@ exports.HostsSchema = zod_1.z.object({
|
|
|
39
39
|
nodes: zod_1.z.array(zod_1.z.string().uuid()),
|
|
40
40
|
xrayJsonTemplateUuid: zod_1.z.string().uuid().nullable(),
|
|
41
41
|
excludedInternalSquads: zod_1.z.array(zod_1.z.string().uuid()),
|
|
42
|
-
excludeFromSubscriptionTypes: zod_1.z.array(zod_1.z.nativeEnum(constants_1.SUBSCRIPTION_TEMPLATE_TYPE))
|
|
42
|
+
excludeFromSubscriptionTypes: zod_1.z.array(zod_1.z.nativeEnum(constants_1.SUBSCRIPTION_TEMPLATE_TYPE)),
|
|
43
43
|
});
|