@remnawave/backend-contract 2.8.9 → 2.8.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.
- package/build/backend/api/controllers/hosts.d.ts +1 -4
- package/build/backend/api/controllers/hosts.d.ts.map +1 -1
- package/build/backend/api/controllers/hosts.js +1 -4
- package/build/backend/api/routes.d.ts +1 -4
- package/build/backend/api/routes.d.ts.map +1 -1
- package/build/backend/api/routes.js +1 -4
- package/build/backend/commands/hosts/bulk/index.d.ts +1 -4
- package/build/backend/commands/hosts/bulk/index.d.ts.map +1 -1
- package/build/backend/commands/hosts/bulk/index.js +1 -4
- package/build/backend/commands/hosts/bulk/{set-port-to-many-hosts.command.d.ts → update-many-hosts.command.d.ts} +194 -8
- package/build/backend/commands/hosts/bulk/update-many-hosts.command.d.ts.map +1 -0
- package/build/backend/commands/hosts/bulk/update-many-hosts.command.js +20 -0
- package/build/backend/commands/hosts/create.command.d.ts +3 -13
- package/build/backend/commands/hosts/create.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/create.command.js +1 -1
- package/build/backend/commands/hosts/update.command.d.ts +3 -13
- package/build/backend/commands/hosts/update.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/update.command.js +1 -1
- package/build/backend/constants/errors/errors.d.ts +5 -20
- package/build/backend/constants/errors/errors.d.ts.map +1 -1
- package/build/backend/constants/errors/errors.js +5 -20
- package/build/backend/constants/hosts/fingerprints.d.ts +1 -13
- package/build/backend/constants/hosts/fingerprints.d.ts.map +1 -1
- package/build/backend/constants/hosts/fingerprints.js +13 -13
- package/build/frontend/api/controllers/hosts.js +1 -4
- package/build/frontend/api/routes.js +1 -4
- package/build/frontend/commands/hosts/bulk/index.js +1 -4
- package/build/frontend/commands/hosts/bulk/update-many-hosts.command.js +20 -0
- package/build/frontend/commands/hosts/create.command.js +1 -1
- package/build/frontend/commands/hosts/update.command.js +1 -1
- package/build/frontend/constants/errors/errors.js +5 -20
- package/build/frontend/constants/hosts/fingerprints.js +13 -13
- package/package.json +1 -1
- package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts +0 -226
- package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts.map +0 -1
- package/build/backend/commands/hosts/bulk/disable-many-hosts.command.js +0 -19
- package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts +0 -226
- package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts.map +0 -1
- package/build/backend/commands/hosts/bulk/enable-many-hosts.command.js +0 -19
- package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.d.ts +0 -232
- package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.d.ts.map +0 -1
- package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.js +0 -21
- package/build/backend/commands/hosts/bulk/set-port-to-many-hosts.command.d.ts.map +0 -1
- package/build/backend/commands/hosts/bulk/set-port-to-many-hosts.command.js +0 -20
- package/build/frontend/commands/hosts/bulk/disable-many-hosts.command.js +0 -19
- package/build/frontend/commands/hosts/bulk/enable-many-hosts.command.js +0 -19
- package/build/frontend/commands/hosts/bulk/set-inbound-to-many-hosts.command.js +0 -21
- package/build/frontend/commands/hosts/bulk/set-port-to-many-hosts.command.js +0 -20
|
@@ -10,11 +10,8 @@ export declare const HOSTS_ROUTES: {
|
|
|
10
10
|
readonly REORDER: "actions/reorder";
|
|
11
11
|
};
|
|
12
12
|
readonly BULK: {
|
|
13
|
-
readonly ENABLE_HOSTS: "bulk/enable";
|
|
14
|
-
readonly DISABLE_HOSTS: "bulk/disable";
|
|
15
13
|
readonly DELETE_HOSTS: "bulk/delete";
|
|
16
|
-
readonly
|
|
17
|
-
readonly SET_PORT: "bulk/set-port";
|
|
14
|
+
readonly UPDATE: "bulk/update";
|
|
18
15
|
};
|
|
19
16
|
readonly TAGS: {
|
|
20
17
|
readonly GET: "tags";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hosts.d.ts","sourceRoot":"","sources":["../../../../api/controllers/hosts.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,EAAG,OAAgB,CAAC;AAEjD,eAAO,MAAM,kBAAkB,EAAG,SAAkB,CAAC;AAErD,eAAO,MAAM,YAAY;;;;iCAID,MAAM;4BACX,MAAM
|
|
1
|
+
{"version":3,"file":"hosts.d.ts","sourceRoot":"","sources":["../../../../api/controllers/hosts.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,EAAG,OAAgB,CAAC;AAEjD,eAAO,MAAM,kBAAkB,EAAG,SAAkB,CAAC;AAErD,eAAO,MAAM,YAAY;;;;iCAID,MAAM;4BACX,MAAM;;;;;;;;;;;CAcf,CAAC"}
|
|
@@ -13,11 +13,8 @@ exports.HOSTS_ROUTES = {
|
|
|
13
13
|
REORDER: `${exports.HOST_ACTIONS_ROUTE}/reorder`,
|
|
14
14
|
},
|
|
15
15
|
BULK: {
|
|
16
|
-
ENABLE_HOSTS: 'bulk/enable',
|
|
17
|
-
DISABLE_HOSTS: 'bulk/disable',
|
|
18
16
|
DELETE_HOSTS: 'bulk/delete',
|
|
19
|
-
|
|
20
|
-
SET_PORT: 'bulk/set-port',
|
|
17
|
+
UPDATE: 'bulk/update',
|
|
21
18
|
},
|
|
22
19
|
TAGS: {
|
|
23
20
|
GET: 'tags',
|
|
@@ -111,11 +111,8 @@ export declare const REST_API: {
|
|
|
111
111
|
readonly REORDER: "/api/hosts/actions/reorder";
|
|
112
112
|
};
|
|
113
113
|
readonly BULK: {
|
|
114
|
-
readonly ENABLE_HOSTS: "/api/hosts/bulk/enable";
|
|
115
|
-
readonly DISABLE_HOSTS: "/api/hosts/bulk/disable";
|
|
116
114
|
readonly DELETE_HOSTS: "/api/hosts/bulk/delete";
|
|
117
|
-
readonly
|
|
118
|
-
readonly SET_PORT: "/api/hosts/bulk/set-port";
|
|
115
|
+
readonly UPDATE: "/api/hosts/bulk/update";
|
|
119
116
|
};
|
|
120
117
|
readonly TAGS: {
|
|
121
118
|
readonly GET: "/api/hosts/tags";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../api/routes.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,EAAG,MAAe,CAAC;AACpC,eAAO,MAAM,YAAY,EAAG,UAAmB,CAAC;AAChD,eAAO,MAAM,WAAW,EAAG,SAAkB,CAAC;AAC9C,eAAO,MAAM,cAAc,EAAG,SAAkB,CAAC;AAEjD,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;gCAyBE,MAAM;;;;;;;;;qCAYD,MAAM;;gCAGX,MAAM;;;;;oCAOF,MAAM;qCAIL,MAAM;qCAIN,MAAM;;2CAKA,MAAM;;;;;;;;;;;;;gCAiBjB,MAAM;qCAGD,MAAM;0CAED,MAAM;sDAEM,MAAM;;qCAMvB,MAAM;oCAIP,MAAM;2CAIC,MAAM;iDAIA,MAAM;;;8BAOzB,MAAM;6CAES,MAAM;0CAIT,MAAM;2DAIW,MAAM;+CAIlB,MAAM;oCAIjB,MAAM;gCAIV,MAAM;;;;;;;;;;;;;;;;;;;;;;kCAyBJ,MAAM;uCAED,MAAM;;;;;;qCASR,MAAM;gCAEX,MAAM
|
|
1
|
+
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../api/routes.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,EAAG,MAAe,CAAC;AACpC,eAAO,MAAM,YAAY,EAAG,UAAmB,CAAC;AAChD,eAAO,MAAM,WAAW,EAAG,SAAkB,CAAC;AAC9C,eAAO,MAAM,cAAc,EAAG,SAAkB,CAAC;AAEjD,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;gCAyBE,MAAM;;;;;;;;;qCAYD,MAAM;;gCAGX,MAAM;;;;;oCAOF,MAAM;qCAIL,MAAM;qCAIN,MAAM;;2CAKA,MAAM;;;;;;;;;;;;;gCAiBjB,MAAM;qCAGD,MAAM;0CAED,MAAM;sDAEM,MAAM;;qCAMvB,MAAM;oCAIP,MAAM;2CAIC,MAAM;iDAIA,MAAM;;;8BAOzB,MAAM;6CAES,MAAM;0CAIT,MAAM;2DAIW,MAAM;+CAIlB,MAAM;oCAIjB,MAAM;gCAIV,MAAM;;;;;;;;;;;;;;;;;;;;;;kCAyBJ,MAAM;uCAED,MAAM;;;;;;qCASR,MAAM;gCAEX,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAkCT,MAAM;;gCAKH,MAAM;;;;;;;;;;;;;;mDAiBa,MAAM;;;;;;;;;0CAYf,MAAM;kCAId,MAAM;6CAIK,MAAM;iDAIF,MAAM;;;6CAMV,MAAM;;qDAKE,MAAM;;;;;;qCAStB,MAAM;gCAIX,MAAM;sDAIgB,MAAM;6DAIC,MAAM;;;;;;;;;;qCAa9B,MAAM;gCAIX,MAAM;0CAII,MAAM;;uCAKT,MAAM;0CAEH,MAAM;;;;;;;;;;yCAWP,MAAM;8CAED,MAAM;;;;6CAMP,MAAM;;;gDAKH,MAAM;;;;;;;;;;;;;;;;qCAiBjB,MAAM;gCAIX,MAAM;;uCAKC,MAAM;0CAEH,MAAM;;;;;;;;;;;6BAYnB,MAAM;;;gCAIH,MAAM;;;;;;;;6BAST,MAAM;;;gCAIH,MAAM;;;;;;;;;;;;;;;;;uCAkBC,MAAM;;;;yCAKJ,MAAM;;;;2CAKJ,MAAM;;;6CAIJ,MAAM;;;;;mCAMhB,MAAM;+CAEM,MAAM;;6CAGR,MAAM;qDAEE,MAAM;;;;iCAK1B,MAAM;oCAEH,MAAM;;;iCAIT,MAAM;oCAEH,MAAM;;;CAIvB,CAAC"}
|
|
@@ -148,11 +148,8 @@ exports.REST_API = {
|
|
|
148
148
|
REORDER: `${exports.ROOT}/${CONTROLLERS.HOSTS_CONTROLLER}/${CONTROLLERS.HOSTS_ROUTES.ACTIONS.REORDER}`,
|
|
149
149
|
},
|
|
150
150
|
BULK: {
|
|
151
|
-
ENABLE_HOSTS: `${exports.ROOT}/${CONTROLLERS.HOSTS_CONTROLLER}/${CONTROLLERS.HOSTS_ROUTES.BULK.ENABLE_HOSTS}`,
|
|
152
|
-
DISABLE_HOSTS: `${exports.ROOT}/${CONTROLLERS.HOSTS_CONTROLLER}/${CONTROLLERS.HOSTS_ROUTES.BULK.DISABLE_HOSTS}`,
|
|
153
151
|
DELETE_HOSTS: `${exports.ROOT}/${CONTROLLERS.HOSTS_CONTROLLER}/${CONTROLLERS.HOSTS_ROUTES.BULK.DELETE_HOSTS}`,
|
|
154
|
-
|
|
155
|
-
SET_PORT: `${exports.ROOT}/${CONTROLLERS.HOSTS_CONTROLLER}/${CONTROLLERS.HOSTS_ROUTES.BULK.SET_PORT}`,
|
|
152
|
+
UPDATE: `${exports.ROOT}/${CONTROLLERS.HOSTS_CONTROLLER}/${CONTROLLERS.HOSTS_ROUTES.BULK.UPDATE}`,
|
|
156
153
|
},
|
|
157
154
|
TAGS: {
|
|
158
155
|
GET: `${exports.ROOT}/${CONTROLLERS.HOSTS_CONTROLLER}/${CONTROLLERS.HOSTS_ROUTES.TAGS.GET}`,
|
|
@@ -1,6 +1,3 @@
|
|
|
1
1
|
export * from './delete-many-hosts.command';
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './enable-many-hosts.command';
|
|
4
|
-
export * from './set-inbound-to-many-hosts.command';
|
|
5
|
-
export * from './set-port-to-many-hosts.command';
|
|
2
|
+
export * from './update-many-hosts.command';
|
|
6
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../commands/hosts/bulk/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../commands/hosts/bulk/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC"}
|
|
@@ -15,7 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./delete-many-hosts.command"), exports);
|
|
18
|
-
__exportStar(require("./
|
|
19
|
-
__exportStar(require("./enable-many-hosts.command"), exports);
|
|
20
|
-
__exportStar(require("./set-inbound-to-many-hosts.command"), exports);
|
|
21
|
-
__exportStar(require("./set-port-to-many-hosts.command"), exports);
|
|
18
|
+
__exportStar(require("./update-many-hosts.command"), exports);
|
|
@@ -1,17 +1,203 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare namespace
|
|
3
|
-
const url: "/api/hosts/bulk/
|
|
4
|
-
const TSQ_url: "/api/hosts/bulk/
|
|
2
|
+
export declare namespace UpdateManyHostsCommand {
|
|
3
|
+
const url: "/api/hosts/bulk/update";
|
|
4
|
+
const TSQ_url: "/api/hosts/bulk/update";
|
|
5
5
|
const endpointDetails: import("../../../constants").EndpointDetails;
|
|
6
|
-
const RequestSchema: z.ZodObject<{
|
|
7
|
-
|
|
6
|
+
const RequestSchema: z.ZodObject<Omit<Pick<{
|
|
7
|
+
uuid: z.ZodString;
|
|
8
|
+
viewPosition: z.ZodNumber;
|
|
9
|
+
remark: z.ZodString;
|
|
10
|
+
address: z.ZodString;
|
|
8
11
|
port: z.ZodNumber;
|
|
12
|
+
path: z.ZodNullable<z.ZodString>;
|
|
13
|
+
sni: z.ZodNullable<z.ZodString>;
|
|
14
|
+
host: z.ZodNullable<z.ZodString>;
|
|
15
|
+
alpn: z.ZodNullable<z.ZodString>;
|
|
16
|
+
fingerprint: z.ZodNullable<z.ZodString>;
|
|
17
|
+
isDisabled: z.ZodDefault<z.ZodBoolean>;
|
|
18
|
+
securityLayer: z.ZodDefault<z.ZodNativeEnum<{
|
|
19
|
+
readonly DEFAULT: "DEFAULT";
|
|
20
|
+
readonly TLS: "TLS";
|
|
21
|
+
readonly NONE: "NONE";
|
|
22
|
+
}>>;
|
|
23
|
+
xHttpExtraParams: z.ZodNullable<z.ZodUnknown>;
|
|
24
|
+
muxParams: z.ZodNullable<z.ZodUnknown>;
|
|
25
|
+
sockoptParams: z.ZodNullable<z.ZodUnknown>;
|
|
26
|
+
finalMask: z.ZodNullable<z.ZodUnknown>;
|
|
27
|
+
inbound: z.ZodObject<{
|
|
28
|
+
configProfileUuid: z.ZodNullable<z.ZodString>;
|
|
29
|
+
configProfileInboundUuid: z.ZodNullable<z.ZodString>;
|
|
30
|
+
}, "strip", z.ZodTypeAny, {
|
|
31
|
+
configProfileUuid: string | null;
|
|
32
|
+
configProfileInboundUuid: string | null;
|
|
33
|
+
}, {
|
|
34
|
+
configProfileUuid: string | null;
|
|
35
|
+
configProfileInboundUuid: string | null;
|
|
36
|
+
}>;
|
|
37
|
+
serverDescription: z.ZodNullable<z.ZodString>;
|
|
38
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
39
|
+
isHidden: z.ZodDefault<z.ZodBoolean>;
|
|
40
|
+
overrideSniFromAddress: z.ZodDefault<z.ZodBoolean>;
|
|
41
|
+
keepSniBlank: z.ZodDefault<z.ZodBoolean>;
|
|
42
|
+
vlessRouteId: z.ZodNullable<z.ZodNumber>;
|
|
43
|
+
pinnedPeerCertSha256: z.ZodNullable<z.ZodString>;
|
|
44
|
+
verifyPeerCertByName: z.ZodNullable<z.ZodString>;
|
|
45
|
+
shuffleHost: z.ZodBoolean;
|
|
46
|
+
mihomoX25519: z.ZodBoolean;
|
|
47
|
+
mihomoIpVersion: z.ZodNullable<z.ZodNativeEnum<{
|
|
48
|
+
readonly DUAL: "dual";
|
|
49
|
+
readonly IPV4: "ipv4";
|
|
50
|
+
readonly IPV6: "ipv6";
|
|
51
|
+
readonly IPV4_PREFER: "ipv4-prefer";
|
|
52
|
+
readonly IPV6_PREFER: "ipv6-prefer";
|
|
53
|
+
}>>;
|
|
54
|
+
nodes: z.ZodArray<z.ZodString, "many">;
|
|
55
|
+
xrayJsonTemplateUuid: z.ZodNullable<z.ZodString>;
|
|
56
|
+
excludedInternalSquads: z.ZodArray<z.ZodString, "many">;
|
|
57
|
+
excludeFromSubscriptionTypes: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<{
|
|
58
|
+
readonly XRAY_JSON: "XRAY_JSON";
|
|
59
|
+
readonly XRAY_BASE64: "XRAY_BASE64";
|
|
60
|
+
readonly MIHOMO: "MIHOMO";
|
|
61
|
+
readonly STASH: "STASH";
|
|
62
|
+
readonly CLASH: "CLASH";
|
|
63
|
+
readonly SINGBOX: "SINGBOX";
|
|
64
|
+
}>, "many">>;
|
|
65
|
+
}, "uuid"> & {
|
|
66
|
+
inbound: z.ZodOptional<z.ZodObject<{
|
|
67
|
+
configProfileUuid: z.ZodString;
|
|
68
|
+
configProfileInboundUuid: z.ZodString;
|
|
69
|
+
}, "strip", z.ZodTypeAny, {
|
|
70
|
+
configProfileUuid: string;
|
|
71
|
+
configProfileInboundUuid: string;
|
|
72
|
+
}, {
|
|
73
|
+
configProfileUuid: string;
|
|
74
|
+
configProfileInboundUuid: string;
|
|
75
|
+
}>>;
|
|
76
|
+
remark: z.ZodOptional<z.ZodString>;
|
|
77
|
+
address: z.ZodOptional<z.ZodString>;
|
|
78
|
+
port: z.ZodOptional<z.ZodNumber>;
|
|
79
|
+
path: z.ZodOptional<z.ZodString>;
|
|
80
|
+
sni: z.ZodOptional<z.ZodString>;
|
|
81
|
+
host: z.ZodOptional<z.ZodString>;
|
|
82
|
+
alpn: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<{
|
|
83
|
+
readonly H3: "h3";
|
|
84
|
+
readonly H2: "h2";
|
|
85
|
+
readonly HTTP_1_1: "http/1.1";
|
|
86
|
+
readonly H_COMBINED: "h2,http/1.1";
|
|
87
|
+
readonly H3_H2_H1_COMBINED: "h3,h2,http/1.1";
|
|
88
|
+
readonly H3_H2_COMBINED: "h3,h2";
|
|
89
|
+
}>>>;
|
|
90
|
+
fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
91
|
+
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
92
|
+
securityLayer: z.ZodOptional<z.ZodNativeEnum<{
|
|
93
|
+
readonly DEFAULT: "DEFAULT";
|
|
94
|
+
readonly TLS: "TLS";
|
|
95
|
+
readonly NONE: "NONE";
|
|
96
|
+
}>>;
|
|
97
|
+
xHttpExtraParams: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
|
98
|
+
muxParams: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
|
99
|
+
sockoptParams: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
|
100
|
+
finalMask: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
|
101
|
+
serverDescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
102
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
103
|
+
isHidden: z.ZodOptional<z.ZodBoolean>;
|
|
104
|
+
overrideSniFromAddress: z.ZodOptional<z.ZodBoolean>;
|
|
105
|
+
keepSniBlank: z.ZodOptional<z.ZodBoolean>;
|
|
106
|
+
vlessRouteId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
107
|
+
pinnedPeerCertSha256: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
108
|
+
verifyPeerCertByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
109
|
+
shuffleHost: z.ZodOptional<z.ZodBoolean>;
|
|
110
|
+
mihomoX25519: z.ZodOptional<z.ZodBoolean>;
|
|
111
|
+
mihomoIpVersion: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<{
|
|
112
|
+
readonly DUAL: "dual";
|
|
113
|
+
readonly IPV4: "ipv4";
|
|
114
|
+
readonly IPV6: "ipv6";
|
|
115
|
+
readonly IPV4_PREFER: "ipv4-prefer";
|
|
116
|
+
readonly IPV6_PREFER: "ipv6-prefer";
|
|
117
|
+
}>>>;
|
|
118
|
+
nodes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
119
|
+
xrayJsonTemplateUuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
120
|
+
excludedInternalSquads: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
121
|
+
excludeFromSubscriptionTypes: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<{
|
|
122
|
+
readonly XRAY_JSON: "XRAY_JSON";
|
|
123
|
+
readonly XRAY_BASE64: "XRAY_BASE64";
|
|
124
|
+
readonly MIHOMO: "MIHOMO";
|
|
125
|
+
readonly STASH: "STASH";
|
|
126
|
+
readonly CLASH: "CLASH";
|
|
127
|
+
readonly SINGBOX: "SINGBOX";
|
|
128
|
+
}>, "many">>;
|
|
129
|
+
}, "uuid"> & {
|
|
130
|
+
uuids: z.ZodArray<z.ZodString, "many">;
|
|
9
131
|
}, "strip", z.ZodTypeAny, {
|
|
10
|
-
port: number;
|
|
11
132
|
uuids: string[];
|
|
133
|
+
nodes?: string[] | undefined;
|
|
134
|
+
tags?: string[] | undefined;
|
|
135
|
+
path?: string | undefined;
|
|
136
|
+
port?: number | undefined;
|
|
137
|
+
remark?: string | undefined;
|
|
138
|
+
address?: string | undefined;
|
|
139
|
+
sni?: string | undefined;
|
|
140
|
+
host?: string | undefined;
|
|
141
|
+
alpn?: "h3" | "h2" | "http/1.1" | "h2,http/1.1" | "h3,h2,http/1.1" | "h3,h2" | null | undefined;
|
|
142
|
+
fingerprint?: string | null | undefined;
|
|
143
|
+
isDisabled?: boolean | undefined;
|
|
144
|
+
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
|
145
|
+
xHttpExtraParams?: unknown;
|
|
146
|
+
muxParams?: unknown;
|
|
147
|
+
sockoptParams?: unknown;
|
|
148
|
+
finalMask?: unknown;
|
|
149
|
+
inbound?: {
|
|
150
|
+
configProfileUuid: string;
|
|
151
|
+
configProfileInboundUuid: string;
|
|
152
|
+
} | undefined;
|
|
153
|
+
serverDescription?: string | null | undefined;
|
|
154
|
+
isHidden?: boolean | undefined;
|
|
155
|
+
overrideSniFromAddress?: boolean | undefined;
|
|
156
|
+
keepSniBlank?: boolean | undefined;
|
|
157
|
+
vlessRouteId?: number | null | undefined;
|
|
158
|
+
pinnedPeerCertSha256?: string | null | undefined;
|
|
159
|
+
verifyPeerCertByName?: string | null | undefined;
|
|
160
|
+
shuffleHost?: boolean | undefined;
|
|
161
|
+
mihomoX25519?: boolean | undefined;
|
|
162
|
+
mihomoIpVersion?: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null | undefined;
|
|
163
|
+
xrayJsonTemplateUuid?: string | null | undefined;
|
|
164
|
+
excludedInternalSquads?: string[] | undefined;
|
|
165
|
+
excludeFromSubscriptionTypes?: ("STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64")[] | undefined;
|
|
12
166
|
}, {
|
|
13
|
-
port: number;
|
|
14
167
|
uuids: string[];
|
|
168
|
+
nodes?: string[] | undefined;
|
|
169
|
+
tags?: string[] | undefined;
|
|
170
|
+
path?: string | undefined;
|
|
171
|
+
port?: number | undefined;
|
|
172
|
+
remark?: string | undefined;
|
|
173
|
+
address?: string | undefined;
|
|
174
|
+
sni?: string | undefined;
|
|
175
|
+
host?: string | undefined;
|
|
176
|
+
alpn?: "h3" | "h2" | "http/1.1" | "h2,http/1.1" | "h3,h2,http/1.1" | "h3,h2" | null | undefined;
|
|
177
|
+
fingerprint?: string | null | undefined;
|
|
178
|
+
isDisabled?: boolean | undefined;
|
|
179
|
+
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
|
180
|
+
xHttpExtraParams?: unknown;
|
|
181
|
+
muxParams?: unknown;
|
|
182
|
+
sockoptParams?: unknown;
|
|
183
|
+
finalMask?: unknown;
|
|
184
|
+
inbound?: {
|
|
185
|
+
configProfileUuid: string;
|
|
186
|
+
configProfileInboundUuid: string;
|
|
187
|
+
} | undefined;
|
|
188
|
+
serverDescription?: string | null | undefined;
|
|
189
|
+
isHidden?: boolean | undefined;
|
|
190
|
+
overrideSniFromAddress?: boolean | undefined;
|
|
191
|
+
keepSniBlank?: boolean | undefined;
|
|
192
|
+
vlessRouteId?: number | null | undefined;
|
|
193
|
+
pinnedPeerCertSha256?: string | null | undefined;
|
|
194
|
+
verifyPeerCertByName?: string | null | undefined;
|
|
195
|
+
shuffleHost?: boolean | undefined;
|
|
196
|
+
mihomoX25519?: boolean | undefined;
|
|
197
|
+
mihomoIpVersion?: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null | undefined;
|
|
198
|
+
xrayJsonTemplateUuid?: string | null | undefined;
|
|
199
|
+
excludedInternalSquads?: string[] | undefined;
|
|
200
|
+
excludeFromSubscriptionTypes?: ("STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64")[] | undefined;
|
|
15
201
|
}>;
|
|
16
202
|
type Request = z.infer<typeof RequestSchema>;
|
|
17
203
|
const ResponseSchema: z.ZodObject<{
|
|
@@ -226,4 +412,4 @@ export declare namespace SetPortToManyHostsCommand {
|
|
|
226
412
|
}>;
|
|
227
413
|
type Response = z.infer<typeof ResponseSchema>;
|
|
228
414
|
}
|
|
229
|
-
//# sourceMappingURL=
|
|
415
|
+
//# sourceMappingURL=update-many-hosts.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-many-hosts.command.d.ts","sourceRoot":"","sources":["../../../../../commands/hosts/bulk/update-many-hosts.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,yBAAiB,sBAAsB,CAAC;IAC7B,MAAM,GAAG,0BAA6B,CAAC;IACvC,MAAM,OAAO,0BAAM,CAAC;IAEpB,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAExB,CAAC;IACH,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"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateManyHostsCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const constants_1 = require("../../../constants");
|
|
6
|
+
const api_1 = require("../../../api");
|
|
7
|
+
const update_command_1 = require("../update.command");
|
|
8
|
+
const models_1 = require("../../../models");
|
|
9
|
+
var UpdateManyHostsCommand;
|
|
10
|
+
(function (UpdateManyHostsCommand) {
|
|
11
|
+
UpdateManyHostsCommand.url = api_1.REST_API.HOSTS.BULK.UPDATE;
|
|
12
|
+
UpdateManyHostsCommand.TSQ_url = UpdateManyHostsCommand.url;
|
|
13
|
+
UpdateManyHostsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.HOSTS_ROUTES.BULK.UPDATE, 'patch', 'Update many hosts');
|
|
14
|
+
UpdateManyHostsCommand.RequestSchema = update_command_1.UpdateHostCommand.RequestSchema.omit({ uuid: true }).extend({
|
|
15
|
+
uuids: zod_1.z.array(zod_1.z.string().uuid()).min(1, 'Must be at least 1 host UUID'),
|
|
16
|
+
});
|
|
17
|
+
UpdateManyHostsCommand.ResponseSchema = zod_1.z.object({
|
|
18
|
+
response: zod_1.z.array(models_1.HostsSchema),
|
|
19
|
+
});
|
|
20
|
+
})(UpdateManyHostsCommand || (exports.UpdateManyHostsCommand = UpdateManyHostsCommand = {}));
|
|
@@ -28,17 +28,7 @@ export declare namespace CreateHostCommand {
|
|
|
28
28
|
readonly H3_H2_H1_COMBINED: "h3,h2,http/1.1";
|
|
29
29
|
readonly H3_H2_COMBINED: "h3,h2";
|
|
30
30
|
}>>>;
|
|
31
|
-
fingerprint: z.ZodOptional<z.ZodNullable<z.
|
|
32
|
-
readonly CHROME: "chrome";
|
|
33
|
-
readonly FIREFOX: "firefox";
|
|
34
|
-
readonly SAFARI: "safari";
|
|
35
|
-
readonly IOS: "ios";
|
|
36
|
-
readonly ANDROID: "android";
|
|
37
|
-
readonly EDGE: "edge";
|
|
38
|
-
readonly QQ: "qq";
|
|
39
|
-
readonly RANDOM: "random";
|
|
40
|
-
readonly RANDOMIZED: "randomized";
|
|
41
|
-
}>>>;
|
|
31
|
+
fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
42
32
|
isDisabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
43
33
|
securityLayer: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<{
|
|
44
34
|
readonly DEFAULT: "DEFAULT";
|
|
@@ -91,7 +81,7 @@ export declare namespace CreateHostCommand {
|
|
|
91
81
|
sni?: string | undefined;
|
|
92
82
|
host?: string | undefined;
|
|
93
83
|
alpn?: "h3" | "h2" | "http/1.1" | "h2,http/1.1" | "h3,h2,http/1.1" | "h3,h2" | null | undefined;
|
|
94
|
-
fingerprint?:
|
|
84
|
+
fingerprint?: string | null | undefined;
|
|
95
85
|
isDisabled?: boolean | undefined;
|
|
96
86
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
|
97
87
|
xHttpExtraParams?: unknown;
|
|
@@ -125,7 +115,7 @@ export declare namespace CreateHostCommand {
|
|
|
125
115
|
sni?: string | undefined;
|
|
126
116
|
host?: string | undefined;
|
|
127
117
|
alpn?: "h3" | "h2" | "http/1.1" | "h2,http/1.1" | "h3,h2,http/1.1" | "h3,h2" | null | undefined;
|
|
128
|
-
fingerprint?:
|
|
118
|
+
fingerprint?: string | null | undefined;
|
|
129
119
|
isDisabled?: boolean | undefined;
|
|
130
120
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
|
131
121
|
xHttpExtraParams?: unknown;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.command.d.ts","sourceRoot":"","sources":["../../../../commands/hosts/create.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"create.command.d.ts","sourceRoot":"","sources":["../../../../commands/hosts/create.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAYxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,eAAwB,CAAC;IAClC,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAyExB,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"}
|
|
@@ -37,7 +37,7 @@ var CreateHostCommand;
|
|
|
37
37
|
sni: zod_1.z.string().optional(),
|
|
38
38
|
host: zod_1.z.string().optional(),
|
|
39
39
|
alpn: zod_1.z.optional(zod_1.z.nativeEnum(constants_1.ALPN).nullable()),
|
|
40
|
-
fingerprint: zod_1.z.optional(zod_1.z.
|
|
40
|
+
fingerprint: zod_1.z.optional(zod_1.z.string().nullable()),
|
|
41
41
|
isDisabled: zod_1.z.optional(zod_1.z.boolean().default(false)),
|
|
42
42
|
securityLayer: zod_1.z.optional(zod_1.z.nativeEnum(constants_1.SECURITY_LAYERS).default(constants_1.SECURITY_LAYERS.DEFAULT)),
|
|
43
43
|
xHttpExtraParams: zod_1.z.optional(zod_1.z.nullable(zod_1.z.unknown())),
|
|
@@ -87,17 +87,7 @@ export declare namespace UpdateHostCommand {
|
|
|
87
87
|
readonly H3_H2_H1_COMBINED: "h3,h2,http/1.1";
|
|
88
88
|
readonly H3_H2_COMBINED: "h3,h2";
|
|
89
89
|
}>>>;
|
|
90
|
-
fingerprint: z.ZodOptional<z.ZodNullable<z.
|
|
91
|
-
readonly CHROME: "chrome";
|
|
92
|
-
readonly FIREFOX: "firefox";
|
|
93
|
-
readonly SAFARI: "safari";
|
|
94
|
-
readonly IOS: "ios";
|
|
95
|
-
readonly ANDROID: "android";
|
|
96
|
-
readonly EDGE: "edge";
|
|
97
|
-
readonly QQ: "qq";
|
|
98
|
-
readonly RANDOM: "random";
|
|
99
|
-
readonly RANDOMIZED: "randomized";
|
|
100
|
-
}>>>;
|
|
90
|
+
fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
101
91
|
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
|
102
92
|
securityLayer: z.ZodOptional<z.ZodNativeEnum<{
|
|
103
93
|
readonly DEFAULT: "DEFAULT";
|
|
@@ -147,7 +137,7 @@ export declare namespace UpdateHostCommand {
|
|
|
147
137
|
sni?: string | undefined;
|
|
148
138
|
host?: string | undefined;
|
|
149
139
|
alpn?: "h3" | "h2" | "http/1.1" | "h2,http/1.1" | "h3,h2,http/1.1" | "h3,h2" | null | undefined;
|
|
150
|
-
fingerprint?:
|
|
140
|
+
fingerprint?: string | null | undefined;
|
|
151
141
|
isDisabled?: boolean | undefined;
|
|
152
142
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
|
153
143
|
xHttpExtraParams?: unknown;
|
|
@@ -182,7 +172,7 @@ export declare namespace UpdateHostCommand {
|
|
|
182
172
|
sni?: string | undefined;
|
|
183
173
|
host?: string | undefined;
|
|
184
174
|
alpn?: "h3" | "h2" | "http/1.1" | "h2,http/1.1" | "h3,h2,http/1.1" | "h3,h2" | null | undefined;
|
|
185
|
-
fingerprint?:
|
|
175
|
+
fingerprint?: string | null | undefined;
|
|
186
176
|
isDisabled?: boolean | undefined;
|
|
187
177
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
|
188
178
|
xHttpExtraParams?: unknown;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update.command.d.ts","sourceRoot":"","sources":["../../../../commands/hosts/update.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"update.command.d.ts","sourceRoot":"","sources":["../../../../commands/hosts/update.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAYxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,eAAwB,CAAC;IAClC,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA6ExB,CAAC;IACH,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"}
|
|
@@ -42,7 +42,7 @@ var UpdateHostCommand;
|
|
|
42
42
|
sni: zod_1.z.optional(zod_1.z.string()),
|
|
43
43
|
host: zod_1.z.optional(zod_1.z.string()),
|
|
44
44
|
alpn: zod_1.z.optional(zod_1.z.nativeEnum(constants_1.ALPN).nullable()),
|
|
45
|
-
fingerprint: zod_1.z.optional(zod_1.z.
|
|
45
|
+
fingerprint: zod_1.z.optional(zod_1.z.string().nullable()),
|
|
46
46
|
isDisabled: zod_1.z.optional(zod_1.z.boolean()),
|
|
47
47
|
securityLayer: zod_1.z.optional(zod_1.z.nativeEnum(constants_1.SECURITY_LAYERS)),
|
|
48
48
|
xHttpExtraParams: zod_1.z.optional(zod_1.z.nullable(zod_1.z.unknown())),
|
|
@@ -419,26 +419,6 @@ export declare const ERRORS: {
|
|
|
419
419
|
readonly message: "Delete hosts error";
|
|
420
420
|
readonly httpCode: 500;
|
|
421
421
|
};
|
|
422
|
-
readonly BULK_ENABLE_HOSTS_ERROR: {
|
|
423
|
-
readonly code: "A080";
|
|
424
|
-
readonly message: "Bulk enable hosts error";
|
|
425
|
-
readonly httpCode: 500;
|
|
426
|
-
};
|
|
427
|
-
readonly BULK_DISABLE_HOSTS_ERROR: {
|
|
428
|
-
readonly code: "A081";
|
|
429
|
-
readonly message: "Bulk disable hosts error";
|
|
430
|
-
readonly httpCode: 500;
|
|
431
|
-
};
|
|
432
|
-
readonly SET_INBOUND_TO_HOSTS_ERROR: {
|
|
433
|
-
readonly code: "A082";
|
|
434
|
-
readonly message: "Set inbound to hosts error";
|
|
435
|
-
readonly httpCode: 500;
|
|
436
|
-
};
|
|
437
|
-
readonly SET_PORT_TO_HOSTS_ERROR: {
|
|
438
|
-
readonly code: "A083";
|
|
439
|
-
readonly message: "Set port to hosts error";
|
|
440
|
-
readonly httpCode: 500;
|
|
441
|
-
};
|
|
442
422
|
readonly BULK_DELETE_USERS_BY_UUID_ERROR: {
|
|
443
423
|
readonly code: "A084";
|
|
444
424
|
readonly message: "Bulk delete users by UUID error";
|
|
@@ -1174,5 +1154,10 @@ export declare const ERRORS: {
|
|
|
1174
1154
|
readonly message: "Get torrent blocker reports error";
|
|
1175
1155
|
readonly httpCode: 500;
|
|
1176
1156
|
};
|
|
1157
|
+
readonly UPDATE_HOSTS_ERROR: {
|
|
1158
|
+
readonly code: "A228";
|
|
1159
|
+
readonly message: "Update hosts error";
|
|
1160
|
+
readonly httpCode: 500;
|
|
1161
|
+
};
|
|
1177
1162
|
};
|
|
1178
1163
|
//# 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA4IN,MAAM
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../constants/errors/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAwJY,MAAM;;;;;;;;;;wCAUN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA4IN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAiqBN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4J3B,CAAC"}
|
|
@@ -390,26 +390,6 @@ 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
|
-
},
|
|
403
|
-
SET_INBOUND_TO_HOSTS_ERROR: {
|
|
404
|
-
code: 'A082',
|
|
405
|
-
message: 'Set inbound to hosts error',
|
|
406
|
-
httpCode: 500,
|
|
407
|
-
},
|
|
408
|
-
SET_PORT_TO_HOSTS_ERROR: {
|
|
409
|
-
code: 'A083',
|
|
410
|
-
message: 'Set port to hosts error',
|
|
411
|
-
httpCode: 500,
|
|
412
|
-
},
|
|
413
393
|
BULK_DELETE_USERS_BY_UUID_ERROR: {
|
|
414
394
|
code: 'A084',
|
|
415
395
|
message: 'Bulk delete users by UUID error',
|
|
@@ -1145,4 +1125,9 @@ exports.ERRORS = {
|
|
|
1145
1125
|
message: 'Get torrent blocker reports error',
|
|
1146
1126
|
httpCode: 500,
|
|
1147
1127
|
},
|
|
1128
|
+
UPDATE_HOSTS_ERROR: {
|
|
1129
|
+
code: 'A228',
|
|
1130
|
+
message: 'Update hosts error',
|
|
1131
|
+
httpCode: 500,
|
|
1132
|
+
},
|
|
1148
1133
|
};
|
|
@@ -1,14 +1,2 @@
|
|
|
1
|
-
export declare const FINGERPRINTS:
|
|
2
|
-
readonly CHROME: "chrome";
|
|
3
|
-
readonly FIREFOX: "firefox";
|
|
4
|
-
readonly SAFARI: "safari";
|
|
5
|
-
readonly IOS: "ios";
|
|
6
|
-
readonly ANDROID: "android";
|
|
7
|
-
readonly EDGE: "edge";
|
|
8
|
-
readonly QQ: "qq";
|
|
9
|
-
readonly RANDOM: "random";
|
|
10
|
-
readonly RANDOMIZED: "randomized";
|
|
11
|
-
};
|
|
12
|
-
export type TFingerprints = [keyof typeof FINGERPRINTS][number];
|
|
13
|
-
export declare const FINGERPRINTS_VALUES: ("chrome" | "firefox" | "safari" | "ios" | "android" | "edge" | "qq" | "random" | "randomized")[];
|
|
1
|
+
export declare const FINGERPRINTS: readonly ["randomized", "android", "firefox", "chrome", "safari", "edge", "ios", "qq", "360", "random"];
|
|
14
2
|
//# sourceMappingURL=fingerprints.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fingerprints.d.ts","sourceRoot":"","sources":["../../../../constants/hosts/fingerprints.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"fingerprints.d.ts","sourceRoot":"","sources":["../../../../constants/hosts/fingerprints.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,yGAWf,CAAC"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.FINGERPRINTS =
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
3
|
+
exports.FINGERPRINTS = void 0;
|
|
4
|
+
exports.FINGERPRINTS = [
|
|
5
|
+
'randomized',
|
|
6
|
+
'android',
|
|
7
|
+
'firefox',
|
|
8
|
+
'chrome',
|
|
9
|
+
'safari',
|
|
10
|
+
'edge',
|
|
11
|
+
'ios',
|
|
12
|
+
'qq',
|
|
13
|
+
'360',
|
|
14
|
+
'random',
|
|
15
|
+
];
|
|
@@ -13,11 +13,8 @@ exports.HOSTS_ROUTES = {
|
|
|
13
13
|
REORDER: `${exports.HOST_ACTIONS_ROUTE}/reorder`,
|
|
14
14
|
},
|
|
15
15
|
BULK: {
|
|
16
|
-
ENABLE_HOSTS: 'bulk/enable',
|
|
17
|
-
DISABLE_HOSTS: 'bulk/disable',
|
|
18
16
|
DELETE_HOSTS: 'bulk/delete',
|
|
19
|
-
|
|
20
|
-
SET_PORT: 'bulk/set-port',
|
|
17
|
+
UPDATE: 'bulk/update',
|
|
21
18
|
},
|
|
22
19
|
TAGS: {
|
|
23
20
|
GET: 'tags',
|
|
@@ -148,11 +148,8 @@ exports.REST_API = {
|
|
|
148
148
|
REORDER: `${exports.ROOT}/${CONTROLLERS.HOSTS_CONTROLLER}/${CONTROLLERS.HOSTS_ROUTES.ACTIONS.REORDER}`,
|
|
149
149
|
},
|
|
150
150
|
BULK: {
|
|
151
|
-
ENABLE_HOSTS: `${exports.ROOT}/${CONTROLLERS.HOSTS_CONTROLLER}/${CONTROLLERS.HOSTS_ROUTES.BULK.ENABLE_HOSTS}`,
|
|
152
|
-
DISABLE_HOSTS: `${exports.ROOT}/${CONTROLLERS.HOSTS_CONTROLLER}/${CONTROLLERS.HOSTS_ROUTES.BULK.DISABLE_HOSTS}`,
|
|
153
151
|
DELETE_HOSTS: `${exports.ROOT}/${CONTROLLERS.HOSTS_CONTROLLER}/${CONTROLLERS.HOSTS_ROUTES.BULK.DELETE_HOSTS}`,
|
|
154
|
-
|
|
155
|
-
SET_PORT: `${exports.ROOT}/${CONTROLLERS.HOSTS_CONTROLLER}/${CONTROLLERS.HOSTS_ROUTES.BULK.SET_PORT}`,
|
|
152
|
+
UPDATE: `${exports.ROOT}/${CONTROLLERS.HOSTS_CONTROLLER}/${CONTROLLERS.HOSTS_ROUTES.BULK.UPDATE}`,
|
|
156
153
|
},
|
|
157
154
|
TAGS: {
|
|
158
155
|
GET: `${exports.ROOT}/${CONTROLLERS.HOSTS_CONTROLLER}/${CONTROLLERS.HOSTS_ROUTES.TAGS.GET}`,
|
|
@@ -15,7 +15,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./delete-many-hosts.command"), exports);
|
|
18
|
-
__exportStar(require("./
|
|
19
|
-
__exportStar(require("./enable-many-hosts.command"), exports);
|
|
20
|
-
__exportStar(require("./set-inbound-to-many-hosts.command"), exports);
|
|
21
|
-
__exportStar(require("./set-port-to-many-hosts.command"), exports);
|
|
18
|
+
__exportStar(require("./update-many-hosts.command"), exports);
|