@remnawave/backend-contract 2.8.3 → 2.8.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/hosts/bulk/delete-many-hosts.command.d.ts +16 -0
- 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 +16 -0
- package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts +16 -0
- package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.d.ts +16 -0
- package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/bulk/set-port-to-many-hosts.command.d.ts +16 -0
- package/build/backend/commands/hosts/bulk/set-port-to-many-hosts.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/create.command.d.ts +28 -0
- package/build/backend/commands/hosts/create.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/create.command.js +2 -0
- package/build/backend/commands/hosts/get-all.command.d.ts +16 -0
- package/build/backend/commands/hosts/get-all.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/get-one.command.d.ts +16 -0
- package/build/backend/commands/hosts/get-one.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/reorder.command.d.ts +8 -0
- package/build/backend/commands/hosts/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/update.command.d.ts +36 -0
- package/build/backend/commands/hosts/update.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/update.command.js +2 -0
- package/build/backend/commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.d.ts +24 -0
- package/build/backend/commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.d.ts.map +1 -1
- package/build/backend/constants/hosts/index.d.ts +1 -0
- package/build/backend/constants/hosts/index.d.ts.map +1 -1
- package/build/backend/constants/hosts/index.js +1 -0
- package/build/backend/constants/hosts/mihomo-ip-version.d.ts +10 -0
- package/build/backend/constants/hosts/mihomo-ip-version.d.ts.map +1 -0
- package/build/backend/constants/hosts/mihomo-ip-version.js +11 -0
- package/build/backend/models/hosts.schema.d.ts +12 -0
- package/build/backend/models/hosts.schema.d.ts.map +1 -1
- package/build/backend/models/hosts.schema.js +3 -1
- package/build/backend/models/resolved-proxy-config.schema.d.ts +44 -0
- package/build/backend/models/resolved-proxy-config.schema.d.ts.map +1 -1
- package/build/backend/models/resolved-proxy-config.schema.js +2 -0
- package/build/frontend/commands/hosts/create.command.js +2 -0
- package/build/frontend/commands/hosts/update.command.js +2 -0
- package/build/frontend/constants/hosts/index.js +1 -0
- package/build/frontend/constants/hosts/mihomo-ip-version.js +11 -0
- package/build/frontend/models/hosts.schema.js +3 -1
- package/build/frontend/models/resolved-proxy-config.schema.js +2 -0
- package/package.json +1 -1
|
@@ -50,8 +50,16 @@ export declare namespace BulkDeleteHostsCommand {
|
|
|
50
50
|
keepSniBlank: z.ZodDefault<z.ZodBoolean>;
|
|
51
51
|
vlessRouteId: z.ZodNullable<z.ZodNumber>;
|
|
52
52
|
pinnedPeerCertSha256: z.ZodNullable<z.ZodString>;
|
|
53
|
+
verifyPeerCertByName: z.ZodNullable<z.ZodString>;
|
|
53
54
|
shuffleHost: z.ZodBoolean;
|
|
54
55
|
mihomoX25519: z.ZodBoolean;
|
|
56
|
+
mihomoIpVersion: z.ZodNullable<z.ZodNativeEnum<{
|
|
57
|
+
readonly DUAL: "dual";
|
|
58
|
+
readonly IPV4: "ipv4";
|
|
59
|
+
readonly IPV6: "ipv6";
|
|
60
|
+
readonly IPV4_PREFER: "ipv4-prefer";
|
|
61
|
+
readonly IPV6_PREFER: "ipv6-prefer";
|
|
62
|
+
}>>;
|
|
55
63
|
nodes: z.ZodArray<z.ZodString, "many">;
|
|
56
64
|
xrayJsonTemplateUuid: z.ZodNullable<z.ZodString>;
|
|
57
65
|
excludedInternalSquads: z.ZodArray<z.ZodString, "many">;
|
|
@@ -88,8 +96,10 @@ export declare namespace BulkDeleteHostsCommand {
|
|
|
88
96
|
keepSniBlank: boolean;
|
|
89
97
|
vlessRouteId: number | null;
|
|
90
98
|
pinnedPeerCertSha256: string | null;
|
|
99
|
+
verifyPeerCertByName: string | null;
|
|
91
100
|
shuffleHost: boolean;
|
|
92
101
|
mihomoX25519: boolean;
|
|
102
|
+
mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
|
|
93
103
|
xrayJsonTemplateUuid: string | null;
|
|
94
104
|
excludedInternalSquads: string[];
|
|
95
105
|
xHttpExtraParams?: unknown;
|
|
@@ -117,8 +127,10 @@ export declare namespace BulkDeleteHostsCommand {
|
|
|
117
127
|
serverDescription: string | null;
|
|
118
128
|
vlessRouteId: number | null;
|
|
119
129
|
pinnedPeerCertSha256: string | null;
|
|
130
|
+
verifyPeerCertByName: string | null;
|
|
120
131
|
shuffleHost: boolean;
|
|
121
132
|
mihomoX25519: boolean;
|
|
133
|
+
mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
|
|
122
134
|
xrayJsonTemplateUuid: string | null;
|
|
123
135
|
excludedInternalSquads: string[];
|
|
124
136
|
isDisabled?: boolean | undefined;
|
|
@@ -158,8 +170,10 @@ export declare namespace BulkDeleteHostsCommand {
|
|
|
158
170
|
keepSniBlank: boolean;
|
|
159
171
|
vlessRouteId: number | null;
|
|
160
172
|
pinnedPeerCertSha256: string | null;
|
|
173
|
+
verifyPeerCertByName: string | null;
|
|
161
174
|
shuffleHost: boolean;
|
|
162
175
|
mihomoX25519: boolean;
|
|
176
|
+
mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
|
|
163
177
|
xrayJsonTemplateUuid: string | null;
|
|
164
178
|
excludedInternalSquads: string[];
|
|
165
179
|
xHttpExtraParams?: unknown;
|
|
@@ -189,8 +203,10 @@ export declare namespace BulkDeleteHostsCommand {
|
|
|
189
203
|
serverDescription: string | null;
|
|
190
204
|
vlessRouteId: number | null;
|
|
191
205
|
pinnedPeerCertSha256: string | null;
|
|
206
|
+
verifyPeerCertByName: string | null;
|
|
192
207
|
shuffleHost: boolean;
|
|
193
208
|
mihomoX25519: boolean;
|
|
209
|
+
mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
|
|
194
210
|
xrayJsonTemplateUuid: string | null;
|
|
195
211
|
excludedInternalSquads: string[];
|
|
196
212
|
isDisabled?: boolean | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete-many-hosts.command.d.ts","sourceRoot":"","sources":["../../../../../commands/hosts/bulk/delete-many-hosts.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,sBAAsB,CAAC;IAC7B,MAAM,GAAG,0BAAmC,CAAC;IAC7C,MAAM,OAAO,0BAAM,CAAC;IAEpB,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"delete-many-hosts.command.d.ts","sourceRoot":"","sources":["../../../../../commands/hosts/bulk/delete-many-hosts.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,sBAAsB,CAAC;IAC7B,MAAM,GAAG,0BAAmC,CAAC;IAC7C,MAAM,OAAO,0BAAM,CAAC;IAEpB,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,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"}
|
|
@@ -50,8 +50,16 @@ export declare namespace BulkDisableHostsCommand {
|
|
|
50
50
|
keepSniBlank: z.ZodDefault<z.ZodBoolean>;
|
|
51
51
|
vlessRouteId: z.ZodNullable<z.ZodNumber>;
|
|
52
52
|
pinnedPeerCertSha256: z.ZodNullable<z.ZodString>;
|
|
53
|
+
verifyPeerCertByName: z.ZodNullable<z.ZodString>;
|
|
53
54
|
shuffleHost: z.ZodBoolean;
|
|
54
55
|
mihomoX25519: z.ZodBoolean;
|
|
56
|
+
mihomoIpVersion: z.ZodNullable<z.ZodNativeEnum<{
|
|
57
|
+
readonly DUAL: "dual";
|
|
58
|
+
readonly IPV4: "ipv4";
|
|
59
|
+
readonly IPV6: "ipv6";
|
|
60
|
+
readonly IPV4_PREFER: "ipv4-prefer";
|
|
61
|
+
readonly IPV6_PREFER: "ipv6-prefer";
|
|
62
|
+
}>>;
|
|
55
63
|
nodes: z.ZodArray<z.ZodString, "many">;
|
|
56
64
|
xrayJsonTemplateUuid: z.ZodNullable<z.ZodString>;
|
|
57
65
|
excludedInternalSquads: z.ZodArray<z.ZodString, "many">;
|
|
@@ -88,8 +96,10 @@ export declare namespace BulkDisableHostsCommand {
|
|
|
88
96
|
keepSniBlank: boolean;
|
|
89
97
|
vlessRouteId: number | null;
|
|
90
98
|
pinnedPeerCertSha256: string | null;
|
|
99
|
+
verifyPeerCertByName: string | null;
|
|
91
100
|
shuffleHost: boolean;
|
|
92
101
|
mihomoX25519: boolean;
|
|
102
|
+
mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
|
|
93
103
|
xrayJsonTemplateUuid: string | null;
|
|
94
104
|
excludedInternalSquads: string[];
|
|
95
105
|
xHttpExtraParams?: unknown;
|
|
@@ -117,8 +127,10 @@ export declare namespace BulkDisableHostsCommand {
|
|
|
117
127
|
serverDescription: string | null;
|
|
118
128
|
vlessRouteId: number | null;
|
|
119
129
|
pinnedPeerCertSha256: string | null;
|
|
130
|
+
verifyPeerCertByName: string | null;
|
|
120
131
|
shuffleHost: boolean;
|
|
121
132
|
mihomoX25519: boolean;
|
|
133
|
+
mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
|
|
122
134
|
xrayJsonTemplateUuid: string | null;
|
|
123
135
|
excludedInternalSquads: string[];
|
|
124
136
|
isDisabled?: boolean | undefined;
|
|
@@ -158,8 +170,10 @@ export declare namespace BulkDisableHostsCommand {
|
|
|
158
170
|
keepSniBlank: boolean;
|
|
159
171
|
vlessRouteId: number | null;
|
|
160
172
|
pinnedPeerCertSha256: string | null;
|
|
173
|
+
verifyPeerCertByName: string | null;
|
|
161
174
|
shuffleHost: boolean;
|
|
162
175
|
mihomoX25519: boolean;
|
|
176
|
+
mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
|
|
163
177
|
xrayJsonTemplateUuid: string | null;
|
|
164
178
|
excludedInternalSquads: string[];
|
|
165
179
|
xHttpExtraParams?: unknown;
|
|
@@ -189,8 +203,10 @@ export declare namespace BulkDisableHostsCommand {
|
|
|
189
203
|
serverDescription: string | null;
|
|
190
204
|
vlessRouteId: number | null;
|
|
191
205
|
pinnedPeerCertSha256: string | null;
|
|
206
|
+
verifyPeerCertByName: string | null;
|
|
192
207
|
shuffleHost: boolean;
|
|
193
208
|
mihomoX25519: boolean;
|
|
209
|
+
mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
|
|
194
210
|
xrayJsonTemplateUuid: string | null;
|
|
195
211
|
excludedInternalSquads: string[];
|
|
196
212
|
isDisabled?: boolean | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"disable-many-hosts.command.d.ts","sourceRoot":"","sources":["../../../../../commands/hosts/bulk/disable-many-hosts.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,uBAAuB,CAAC;IAC9B,MAAM,GAAG,2BAAoC,CAAC;IAC9C,MAAM,OAAO,2BAAM,CAAC;IAEpB,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"disable-many-hosts.command.d.ts","sourceRoot":"","sources":["../../../../../commands/hosts/bulk/disable-many-hosts.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,uBAAuB,CAAC;IAC9B,MAAM,GAAG,2BAAoC,CAAC;IAC9C,MAAM,OAAO,2BAAM,CAAC;IAEpB,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,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"}
|
|
@@ -50,8 +50,16 @@ export declare namespace BulkEnableHostsCommand {
|
|
|
50
50
|
keepSniBlank: z.ZodDefault<z.ZodBoolean>;
|
|
51
51
|
vlessRouteId: z.ZodNullable<z.ZodNumber>;
|
|
52
52
|
pinnedPeerCertSha256: z.ZodNullable<z.ZodString>;
|
|
53
|
+
verifyPeerCertByName: z.ZodNullable<z.ZodString>;
|
|
53
54
|
shuffleHost: z.ZodBoolean;
|
|
54
55
|
mihomoX25519: z.ZodBoolean;
|
|
56
|
+
mihomoIpVersion: z.ZodNullable<z.ZodNativeEnum<{
|
|
57
|
+
readonly DUAL: "dual";
|
|
58
|
+
readonly IPV4: "ipv4";
|
|
59
|
+
readonly IPV6: "ipv6";
|
|
60
|
+
readonly IPV4_PREFER: "ipv4-prefer";
|
|
61
|
+
readonly IPV6_PREFER: "ipv6-prefer";
|
|
62
|
+
}>>;
|
|
55
63
|
nodes: z.ZodArray<z.ZodString, "many">;
|
|
56
64
|
xrayJsonTemplateUuid: z.ZodNullable<z.ZodString>;
|
|
57
65
|
excludedInternalSquads: z.ZodArray<z.ZodString, "many">;
|
|
@@ -88,8 +96,10 @@ export declare namespace BulkEnableHostsCommand {
|
|
|
88
96
|
keepSniBlank: boolean;
|
|
89
97
|
vlessRouteId: number | null;
|
|
90
98
|
pinnedPeerCertSha256: string | null;
|
|
99
|
+
verifyPeerCertByName: string | null;
|
|
91
100
|
shuffleHost: boolean;
|
|
92
101
|
mihomoX25519: boolean;
|
|
102
|
+
mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
|
|
93
103
|
xrayJsonTemplateUuid: string | null;
|
|
94
104
|
excludedInternalSquads: string[];
|
|
95
105
|
xHttpExtraParams?: unknown;
|
|
@@ -117,8 +127,10 @@ export declare namespace BulkEnableHostsCommand {
|
|
|
117
127
|
serverDescription: string | null;
|
|
118
128
|
vlessRouteId: number | null;
|
|
119
129
|
pinnedPeerCertSha256: string | null;
|
|
130
|
+
verifyPeerCertByName: string | null;
|
|
120
131
|
shuffleHost: boolean;
|
|
121
132
|
mihomoX25519: boolean;
|
|
133
|
+
mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
|
|
122
134
|
xrayJsonTemplateUuid: string | null;
|
|
123
135
|
excludedInternalSquads: string[];
|
|
124
136
|
isDisabled?: boolean | undefined;
|
|
@@ -158,8 +170,10 @@ export declare namespace BulkEnableHostsCommand {
|
|
|
158
170
|
keepSniBlank: boolean;
|
|
159
171
|
vlessRouteId: number | null;
|
|
160
172
|
pinnedPeerCertSha256: string | null;
|
|
173
|
+
verifyPeerCertByName: string | null;
|
|
161
174
|
shuffleHost: boolean;
|
|
162
175
|
mihomoX25519: boolean;
|
|
176
|
+
mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
|
|
163
177
|
xrayJsonTemplateUuid: string | null;
|
|
164
178
|
excludedInternalSquads: string[];
|
|
165
179
|
xHttpExtraParams?: unknown;
|
|
@@ -189,8 +203,10 @@ export declare namespace BulkEnableHostsCommand {
|
|
|
189
203
|
serverDescription: string | null;
|
|
190
204
|
vlessRouteId: number | null;
|
|
191
205
|
pinnedPeerCertSha256: string | null;
|
|
206
|
+
verifyPeerCertByName: string | null;
|
|
192
207
|
shuffleHost: boolean;
|
|
193
208
|
mihomoX25519: boolean;
|
|
209
|
+
mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
|
|
194
210
|
xrayJsonTemplateUuid: string | null;
|
|
195
211
|
excludedInternalSquads: string[];
|
|
196
212
|
isDisabled?: boolean | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enable-many-hosts.command.d.ts","sourceRoot":"","sources":["../../../../../commands/hosts/bulk/enable-many-hosts.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,sBAAsB,CAAC;IAC7B,MAAM,GAAG,0BAAmC,CAAC;IAC7C,MAAM,OAAO,0BAAM,CAAC;IAEpB,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"enable-many-hosts.command.d.ts","sourceRoot":"","sources":["../../../../../commands/hosts/bulk/enable-many-hosts.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,sBAAsB,CAAC;IAC7B,MAAM,GAAG,0BAAmC,CAAC;IAC7C,MAAM,OAAO,0BAAM,CAAC;IAEpB,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,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"}
|
|
@@ -56,8 +56,16 @@ export declare namespace SetInboundToManyHostsCommand {
|
|
|
56
56
|
keepSniBlank: z.ZodDefault<z.ZodBoolean>;
|
|
57
57
|
vlessRouteId: z.ZodNullable<z.ZodNumber>;
|
|
58
58
|
pinnedPeerCertSha256: z.ZodNullable<z.ZodString>;
|
|
59
|
+
verifyPeerCertByName: z.ZodNullable<z.ZodString>;
|
|
59
60
|
shuffleHost: z.ZodBoolean;
|
|
60
61
|
mihomoX25519: z.ZodBoolean;
|
|
62
|
+
mihomoIpVersion: z.ZodNullable<z.ZodNativeEnum<{
|
|
63
|
+
readonly DUAL: "dual";
|
|
64
|
+
readonly IPV4: "ipv4";
|
|
65
|
+
readonly IPV6: "ipv6";
|
|
66
|
+
readonly IPV4_PREFER: "ipv4-prefer";
|
|
67
|
+
readonly IPV6_PREFER: "ipv6-prefer";
|
|
68
|
+
}>>;
|
|
61
69
|
nodes: z.ZodArray<z.ZodString, "many">;
|
|
62
70
|
xrayJsonTemplateUuid: z.ZodNullable<z.ZodString>;
|
|
63
71
|
excludedInternalSquads: z.ZodArray<z.ZodString, "many">;
|
|
@@ -94,8 +102,10 @@ export declare namespace SetInboundToManyHostsCommand {
|
|
|
94
102
|
keepSniBlank: boolean;
|
|
95
103
|
vlessRouteId: number | null;
|
|
96
104
|
pinnedPeerCertSha256: string | null;
|
|
105
|
+
verifyPeerCertByName: string | null;
|
|
97
106
|
shuffleHost: boolean;
|
|
98
107
|
mihomoX25519: boolean;
|
|
108
|
+
mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
|
|
99
109
|
xrayJsonTemplateUuid: string | null;
|
|
100
110
|
excludedInternalSquads: string[];
|
|
101
111
|
xHttpExtraParams?: unknown;
|
|
@@ -123,8 +133,10 @@ export declare namespace SetInboundToManyHostsCommand {
|
|
|
123
133
|
serverDescription: string | null;
|
|
124
134
|
vlessRouteId: number | null;
|
|
125
135
|
pinnedPeerCertSha256: string | null;
|
|
136
|
+
verifyPeerCertByName: string | null;
|
|
126
137
|
shuffleHost: boolean;
|
|
127
138
|
mihomoX25519: boolean;
|
|
139
|
+
mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
|
|
128
140
|
xrayJsonTemplateUuid: string | null;
|
|
129
141
|
excludedInternalSquads: string[];
|
|
130
142
|
isDisabled?: boolean | undefined;
|
|
@@ -164,8 +176,10 @@ export declare namespace SetInboundToManyHostsCommand {
|
|
|
164
176
|
keepSniBlank: boolean;
|
|
165
177
|
vlessRouteId: number | null;
|
|
166
178
|
pinnedPeerCertSha256: string | null;
|
|
179
|
+
verifyPeerCertByName: string | null;
|
|
167
180
|
shuffleHost: boolean;
|
|
168
181
|
mihomoX25519: boolean;
|
|
182
|
+
mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
|
|
169
183
|
xrayJsonTemplateUuid: string | null;
|
|
170
184
|
excludedInternalSquads: string[];
|
|
171
185
|
xHttpExtraParams?: unknown;
|
|
@@ -195,8 +209,10 @@ export declare namespace SetInboundToManyHostsCommand {
|
|
|
195
209
|
serverDescription: string | null;
|
|
196
210
|
vlessRouteId: number | null;
|
|
197
211
|
pinnedPeerCertSha256: string | null;
|
|
212
|
+
verifyPeerCertByName: string | null;
|
|
198
213
|
shuffleHost: boolean;
|
|
199
214
|
mihomoX25519: boolean;
|
|
215
|
+
mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
|
|
200
216
|
xrayJsonTemplateUuid: string | null;
|
|
201
217
|
excludedInternalSquads: string[];
|
|
202
218
|
isDisabled?: boolean | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"set-inbound-to-many-hosts.command.d.ts","sourceRoot":"","sources":["../../../../../commands/hosts/bulk/set-inbound-to-many-hosts.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,4BAA4B,CAAC;IACnC,MAAM,GAAG,+BAAkC,CAAC;IAC5C,MAAM,OAAO,+BAAM,CAAC;IAEpB,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;MAIxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"set-inbound-to-many-hosts.command.d.ts","sourceRoot":"","sources":["../../../../../commands/hosts/bulk/set-inbound-to-many-hosts.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,4BAA4B,CAAC;IACnC,MAAM,GAAG,+BAAkC,CAAC;IAC5C,MAAM,OAAO,+BAAM,CAAC;IAEpB,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;MAIxB,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"}
|
|
@@ -53,8 +53,16 @@ export declare namespace SetPortToManyHostsCommand {
|
|
|
53
53
|
keepSniBlank: z.ZodDefault<z.ZodBoolean>;
|
|
54
54
|
vlessRouteId: z.ZodNullable<z.ZodNumber>;
|
|
55
55
|
pinnedPeerCertSha256: z.ZodNullable<z.ZodString>;
|
|
56
|
+
verifyPeerCertByName: z.ZodNullable<z.ZodString>;
|
|
56
57
|
shuffleHost: z.ZodBoolean;
|
|
57
58
|
mihomoX25519: z.ZodBoolean;
|
|
59
|
+
mihomoIpVersion: z.ZodNullable<z.ZodNativeEnum<{
|
|
60
|
+
readonly DUAL: "dual";
|
|
61
|
+
readonly IPV4: "ipv4";
|
|
62
|
+
readonly IPV6: "ipv6";
|
|
63
|
+
readonly IPV4_PREFER: "ipv4-prefer";
|
|
64
|
+
readonly IPV6_PREFER: "ipv6-prefer";
|
|
65
|
+
}>>;
|
|
58
66
|
nodes: z.ZodArray<z.ZodString, "many">;
|
|
59
67
|
xrayJsonTemplateUuid: z.ZodNullable<z.ZodString>;
|
|
60
68
|
excludedInternalSquads: z.ZodArray<z.ZodString, "many">;
|
|
@@ -91,8 +99,10 @@ export declare namespace SetPortToManyHostsCommand {
|
|
|
91
99
|
keepSniBlank: boolean;
|
|
92
100
|
vlessRouteId: number | null;
|
|
93
101
|
pinnedPeerCertSha256: string | null;
|
|
102
|
+
verifyPeerCertByName: string | null;
|
|
94
103
|
shuffleHost: boolean;
|
|
95
104
|
mihomoX25519: boolean;
|
|
105
|
+
mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
|
|
96
106
|
xrayJsonTemplateUuid: string | null;
|
|
97
107
|
excludedInternalSquads: string[];
|
|
98
108
|
xHttpExtraParams?: unknown;
|
|
@@ -120,8 +130,10 @@ export declare namespace SetPortToManyHostsCommand {
|
|
|
120
130
|
serverDescription: string | null;
|
|
121
131
|
vlessRouteId: number | null;
|
|
122
132
|
pinnedPeerCertSha256: string | null;
|
|
133
|
+
verifyPeerCertByName: string | null;
|
|
123
134
|
shuffleHost: boolean;
|
|
124
135
|
mihomoX25519: boolean;
|
|
136
|
+
mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
|
|
125
137
|
xrayJsonTemplateUuid: string | null;
|
|
126
138
|
excludedInternalSquads: string[];
|
|
127
139
|
isDisabled?: boolean | undefined;
|
|
@@ -161,8 +173,10 @@ export declare namespace SetPortToManyHostsCommand {
|
|
|
161
173
|
keepSniBlank: boolean;
|
|
162
174
|
vlessRouteId: number | null;
|
|
163
175
|
pinnedPeerCertSha256: string | null;
|
|
176
|
+
verifyPeerCertByName: string | null;
|
|
164
177
|
shuffleHost: boolean;
|
|
165
178
|
mihomoX25519: boolean;
|
|
179
|
+
mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
|
|
166
180
|
xrayJsonTemplateUuid: string | null;
|
|
167
181
|
excludedInternalSquads: string[];
|
|
168
182
|
xHttpExtraParams?: unknown;
|
|
@@ -192,8 +206,10 @@ export declare namespace SetPortToManyHostsCommand {
|
|
|
192
206
|
serverDescription: string | null;
|
|
193
207
|
vlessRouteId: number | null;
|
|
194
208
|
pinnedPeerCertSha256: string | null;
|
|
209
|
+
verifyPeerCertByName: string | null;
|
|
195
210
|
shuffleHost: boolean;
|
|
196
211
|
mihomoX25519: boolean;
|
|
212
|
+
mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
|
|
197
213
|
xrayJsonTemplateUuid: string | null;
|
|
198
214
|
excludedInternalSquads: string[];
|
|
199
215
|
isDisabled?: boolean | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"set-port-to-many-hosts.command.d.ts","sourceRoot":"","sources":["../../../../../commands/hosts/bulk/set-port-to-many-hosts.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,yBAAyB,CAAC;IAChC,MAAM,GAAG,4BAA+B,CAAC;IACzC,MAAM,OAAO,4BAAM,CAAC;IAEpB,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;MAGxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"set-port-to-many-hosts.command.d.ts","sourceRoot":"","sources":["../../../../../commands/hosts/bulk/set-port-to-many-hosts.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,yBAAyB,CAAC;IAChC,MAAM,GAAG,4BAA+B,CAAC;IACzC,MAAM,OAAO,4BAAM,CAAC;IAEpB,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;MAGxB,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"}
|
|
@@ -55,9 +55,17 @@ export declare namespace CreateHostCommand {
|
|
|
55
55
|
overrideSniFromAddress: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
56
56
|
keepSniBlank: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
57
57
|
pinnedPeerCertSha256: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
58
|
+
verifyPeerCertByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
58
59
|
vlessRouteId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
59
60
|
shuffleHost: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
60
61
|
mihomoX25519: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
62
|
+
mihomoIpVersion: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<{
|
|
63
|
+
readonly DUAL: "dual";
|
|
64
|
+
readonly IPV4: "ipv4";
|
|
65
|
+
readonly IPV6: "ipv6";
|
|
66
|
+
readonly IPV4_PREFER: "ipv4-prefer";
|
|
67
|
+
readonly IPV6_PREFER: "ipv6-prefer";
|
|
68
|
+
}>>>;
|
|
61
69
|
nodes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
62
70
|
xrayJsonTemplateUuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
63
71
|
excludedInternalSquads: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -96,8 +104,10 @@ export declare namespace CreateHostCommand {
|
|
|
96
104
|
keepSniBlank?: boolean | undefined;
|
|
97
105
|
vlessRouteId?: number | null | undefined;
|
|
98
106
|
pinnedPeerCertSha256?: string | null | undefined;
|
|
107
|
+
verifyPeerCertByName?: string | null | undefined;
|
|
99
108
|
shuffleHost?: boolean | undefined;
|
|
100
109
|
mihomoX25519?: boolean | undefined;
|
|
110
|
+
mihomoIpVersion?: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null | undefined;
|
|
101
111
|
xrayJsonTemplateUuid?: string | null | undefined;
|
|
102
112
|
excludedInternalSquads?: string[] | undefined;
|
|
103
113
|
excludeFromSubscriptionTypes?: ("STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64")[] | undefined;
|
|
@@ -128,8 +138,10 @@ export declare namespace CreateHostCommand {
|
|
|
128
138
|
keepSniBlank?: boolean | undefined;
|
|
129
139
|
vlessRouteId?: number | null | undefined;
|
|
130
140
|
pinnedPeerCertSha256?: string | null | undefined;
|
|
141
|
+
verifyPeerCertByName?: string | null | undefined;
|
|
131
142
|
shuffleHost?: boolean | undefined;
|
|
132
143
|
mihomoX25519?: boolean | undefined;
|
|
144
|
+
mihomoIpVersion?: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null | undefined;
|
|
133
145
|
xrayJsonTemplateUuid?: string | null | undefined;
|
|
134
146
|
excludedInternalSquads?: string[] | undefined;
|
|
135
147
|
excludeFromSubscriptionTypes?: ("STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64")[] | undefined;
|
|
@@ -174,8 +186,16 @@ export declare namespace CreateHostCommand {
|
|
|
174
186
|
keepSniBlank: z.ZodDefault<z.ZodBoolean>;
|
|
175
187
|
vlessRouteId: z.ZodNullable<z.ZodNumber>;
|
|
176
188
|
pinnedPeerCertSha256: z.ZodNullable<z.ZodString>;
|
|
189
|
+
verifyPeerCertByName: z.ZodNullable<z.ZodString>;
|
|
177
190
|
shuffleHost: z.ZodBoolean;
|
|
178
191
|
mihomoX25519: z.ZodBoolean;
|
|
192
|
+
mihomoIpVersion: z.ZodNullable<z.ZodNativeEnum<{
|
|
193
|
+
readonly DUAL: "dual";
|
|
194
|
+
readonly IPV4: "ipv4";
|
|
195
|
+
readonly IPV6: "ipv6";
|
|
196
|
+
readonly IPV4_PREFER: "ipv4-prefer";
|
|
197
|
+
readonly IPV6_PREFER: "ipv6-prefer";
|
|
198
|
+
}>>;
|
|
179
199
|
nodes: z.ZodArray<z.ZodString, "many">;
|
|
180
200
|
xrayJsonTemplateUuid: z.ZodNullable<z.ZodString>;
|
|
181
201
|
excludedInternalSquads: z.ZodArray<z.ZodString, "many">;
|
|
@@ -212,8 +232,10 @@ export declare namespace CreateHostCommand {
|
|
|
212
232
|
keepSniBlank: boolean;
|
|
213
233
|
vlessRouteId: number | null;
|
|
214
234
|
pinnedPeerCertSha256: string | null;
|
|
235
|
+
verifyPeerCertByName: string | null;
|
|
215
236
|
shuffleHost: boolean;
|
|
216
237
|
mihomoX25519: boolean;
|
|
238
|
+
mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
|
|
217
239
|
xrayJsonTemplateUuid: string | null;
|
|
218
240
|
excludedInternalSquads: string[];
|
|
219
241
|
xHttpExtraParams?: unknown;
|
|
@@ -241,8 +263,10 @@ export declare namespace CreateHostCommand {
|
|
|
241
263
|
serverDescription: string | null;
|
|
242
264
|
vlessRouteId: number | null;
|
|
243
265
|
pinnedPeerCertSha256: string | null;
|
|
266
|
+
verifyPeerCertByName: string | null;
|
|
244
267
|
shuffleHost: boolean;
|
|
245
268
|
mihomoX25519: boolean;
|
|
269
|
+
mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
|
|
246
270
|
xrayJsonTemplateUuid: string | null;
|
|
247
271
|
excludedInternalSquads: string[];
|
|
248
272
|
isDisabled?: boolean | undefined;
|
|
@@ -282,8 +306,10 @@ export declare namespace CreateHostCommand {
|
|
|
282
306
|
keepSniBlank: boolean;
|
|
283
307
|
vlessRouteId: number | null;
|
|
284
308
|
pinnedPeerCertSha256: string | null;
|
|
309
|
+
verifyPeerCertByName: string | null;
|
|
285
310
|
shuffleHost: boolean;
|
|
286
311
|
mihomoX25519: boolean;
|
|
312
|
+
mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
|
|
287
313
|
xrayJsonTemplateUuid: string | null;
|
|
288
314
|
excludedInternalSquads: string[];
|
|
289
315
|
xHttpExtraParams?: unknown;
|
|
@@ -313,8 +339,10 @@ export declare namespace CreateHostCommand {
|
|
|
313
339
|
serverDescription: string | null;
|
|
314
340
|
vlessRouteId: number | null;
|
|
315
341
|
pinnedPeerCertSha256: string | null;
|
|
342
|
+
verifyPeerCertByName: string | null;
|
|
316
343
|
shuffleHost: boolean;
|
|
317
344
|
mihomoX25519: boolean;
|
|
345
|
+
mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
|
|
318
346
|
xrayJsonTemplateUuid: string | null;
|
|
319
347
|
excludedInternalSquads: string[];
|
|
320
348
|
isDisabled?: boolean | undefined;
|
|
@@ -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;AAaxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,eAAwB,CAAC;IAClC,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA0ExB,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"}
|
|
@@ -61,9 +61,11 @@ var CreateHostCommand;
|
|
|
61
61
|
overrideSniFromAddress: zod_1.z.optional(zod_1.z.boolean().default(false)),
|
|
62
62
|
keepSniBlank: zod_1.z.optional(zod_1.z.boolean().default(false)),
|
|
63
63
|
pinnedPeerCertSha256: zod_1.z.optional(zod_1.z.string().nullable()),
|
|
64
|
+
verifyPeerCertByName: zod_1.z.optional(zod_1.z.string().nullable()),
|
|
64
65
|
vlessRouteId: zod_1.z.optional(zod_1.z.number().int().min(0).max(65535).nullable()),
|
|
65
66
|
shuffleHost: zod_1.z.optional(zod_1.z.boolean().default(false)),
|
|
66
67
|
mihomoX25519: zod_1.z.optional(zod_1.z.boolean().default(false)),
|
|
68
|
+
mihomoIpVersion: zod_1.z.optional(zod_1.z.nativeEnum(constants_1.MIHOMO_IP_VERSION).nullable()),
|
|
67
69
|
nodes: zod_1.z.optional(zod_1.z.array(zod_1.z.string().uuid())),
|
|
68
70
|
xrayJsonTemplateUuid: zod_1.z.optional(zod_1.z.string().uuid().nullable()),
|
|
69
71
|
excludedInternalSquads: zod_1.z
|
|
@@ -42,8 +42,16 @@ export declare namespace GetAllHostsCommand {
|
|
|
42
42
|
keepSniBlank: z.ZodDefault<z.ZodBoolean>;
|
|
43
43
|
vlessRouteId: z.ZodNullable<z.ZodNumber>;
|
|
44
44
|
pinnedPeerCertSha256: z.ZodNullable<z.ZodString>;
|
|
45
|
+
verifyPeerCertByName: z.ZodNullable<z.ZodString>;
|
|
45
46
|
shuffleHost: z.ZodBoolean;
|
|
46
47
|
mihomoX25519: z.ZodBoolean;
|
|
48
|
+
mihomoIpVersion: z.ZodNullable<z.ZodNativeEnum<{
|
|
49
|
+
readonly DUAL: "dual";
|
|
50
|
+
readonly IPV4: "ipv4";
|
|
51
|
+
readonly IPV6: "ipv6";
|
|
52
|
+
readonly IPV4_PREFER: "ipv4-prefer";
|
|
53
|
+
readonly IPV6_PREFER: "ipv6-prefer";
|
|
54
|
+
}>>;
|
|
47
55
|
nodes: z.ZodArray<z.ZodString, "many">;
|
|
48
56
|
xrayJsonTemplateUuid: z.ZodNullable<z.ZodString>;
|
|
49
57
|
excludedInternalSquads: z.ZodArray<z.ZodString, "many">;
|
|
@@ -80,8 +88,10 @@ export declare namespace GetAllHostsCommand {
|
|
|
80
88
|
keepSniBlank: boolean;
|
|
81
89
|
vlessRouteId: number | null;
|
|
82
90
|
pinnedPeerCertSha256: string | null;
|
|
91
|
+
verifyPeerCertByName: string | null;
|
|
83
92
|
shuffleHost: boolean;
|
|
84
93
|
mihomoX25519: boolean;
|
|
94
|
+
mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
|
|
85
95
|
xrayJsonTemplateUuid: string | null;
|
|
86
96
|
excludedInternalSquads: string[];
|
|
87
97
|
xHttpExtraParams?: unknown;
|
|
@@ -109,8 +119,10 @@ export declare namespace GetAllHostsCommand {
|
|
|
109
119
|
serverDescription: string | null;
|
|
110
120
|
vlessRouteId: number | null;
|
|
111
121
|
pinnedPeerCertSha256: string | null;
|
|
122
|
+
verifyPeerCertByName: string | null;
|
|
112
123
|
shuffleHost: boolean;
|
|
113
124
|
mihomoX25519: boolean;
|
|
125
|
+
mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
|
|
114
126
|
xrayJsonTemplateUuid: string | null;
|
|
115
127
|
excludedInternalSquads: string[];
|
|
116
128
|
isDisabled?: boolean | undefined;
|
|
@@ -150,8 +162,10 @@ export declare namespace GetAllHostsCommand {
|
|
|
150
162
|
keepSniBlank: boolean;
|
|
151
163
|
vlessRouteId: number | null;
|
|
152
164
|
pinnedPeerCertSha256: string | null;
|
|
165
|
+
verifyPeerCertByName: string | null;
|
|
153
166
|
shuffleHost: boolean;
|
|
154
167
|
mihomoX25519: boolean;
|
|
168
|
+
mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
|
|
155
169
|
xrayJsonTemplateUuid: string | null;
|
|
156
170
|
excludedInternalSquads: string[];
|
|
157
171
|
xHttpExtraParams?: unknown;
|
|
@@ -181,8 +195,10 @@ export declare namespace GetAllHostsCommand {
|
|
|
181
195
|
serverDescription: string | null;
|
|
182
196
|
vlessRouteId: number | null;
|
|
183
197
|
pinnedPeerCertSha256: string | null;
|
|
198
|
+
verifyPeerCertByName: string | null;
|
|
184
199
|
shuffleHost: boolean;
|
|
185
200
|
mihomoX25519: boolean;
|
|
201
|
+
mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
|
|
186
202
|
xrayJsonTemplateUuid: string | null;
|
|
187
203
|
excludedInternalSquads: string[];
|
|
188
204
|
isDisabled?: boolean | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-all.command.d.ts","sourceRoot":"","sources":["../../../../commands/hosts/get-all.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,eAAqB,CAAC;IAC/B,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAA+D,CAAC;IAErF,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"get-all.command.d.ts","sourceRoot":"","sources":["../../../../commands/hosts/get-all.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,eAAqB,CAAC;IAC/B,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAA+D,CAAC;IAErF,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -50,8 +50,16 @@ export declare namespace GetOneHostCommand {
|
|
|
50
50
|
keepSniBlank: z.ZodDefault<z.ZodBoolean>;
|
|
51
51
|
vlessRouteId: z.ZodNullable<z.ZodNumber>;
|
|
52
52
|
pinnedPeerCertSha256: z.ZodNullable<z.ZodString>;
|
|
53
|
+
verifyPeerCertByName: z.ZodNullable<z.ZodString>;
|
|
53
54
|
shuffleHost: z.ZodBoolean;
|
|
54
55
|
mihomoX25519: z.ZodBoolean;
|
|
56
|
+
mihomoIpVersion: z.ZodNullable<z.ZodNativeEnum<{
|
|
57
|
+
readonly DUAL: "dual";
|
|
58
|
+
readonly IPV4: "ipv4";
|
|
59
|
+
readonly IPV6: "ipv6";
|
|
60
|
+
readonly IPV4_PREFER: "ipv4-prefer";
|
|
61
|
+
readonly IPV6_PREFER: "ipv6-prefer";
|
|
62
|
+
}>>;
|
|
55
63
|
nodes: z.ZodArray<z.ZodString, "many">;
|
|
56
64
|
xrayJsonTemplateUuid: z.ZodNullable<z.ZodString>;
|
|
57
65
|
excludedInternalSquads: z.ZodArray<z.ZodString, "many">;
|
|
@@ -88,8 +96,10 @@ export declare namespace GetOneHostCommand {
|
|
|
88
96
|
keepSniBlank: boolean;
|
|
89
97
|
vlessRouteId: number | null;
|
|
90
98
|
pinnedPeerCertSha256: string | null;
|
|
99
|
+
verifyPeerCertByName: string | null;
|
|
91
100
|
shuffleHost: boolean;
|
|
92
101
|
mihomoX25519: boolean;
|
|
102
|
+
mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
|
|
93
103
|
xrayJsonTemplateUuid: string | null;
|
|
94
104
|
excludedInternalSquads: string[];
|
|
95
105
|
xHttpExtraParams?: unknown;
|
|
@@ -117,8 +127,10 @@ export declare namespace GetOneHostCommand {
|
|
|
117
127
|
serverDescription: string | null;
|
|
118
128
|
vlessRouteId: number | null;
|
|
119
129
|
pinnedPeerCertSha256: string | null;
|
|
130
|
+
verifyPeerCertByName: string | null;
|
|
120
131
|
shuffleHost: boolean;
|
|
121
132
|
mihomoX25519: boolean;
|
|
133
|
+
mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
|
|
122
134
|
xrayJsonTemplateUuid: string | null;
|
|
123
135
|
excludedInternalSquads: string[];
|
|
124
136
|
isDisabled?: boolean | undefined;
|
|
@@ -158,8 +170,10 @@ export declare namespace GetOneHostCommand {
|
|
|
158
170
|
keepSniBlank: boolean;
|
|
159
171
|
vlessRouteId: number | null;
|
|
160
172
|
pinnedPeerCertSha256: string | null;
|
|
173
|
+
verifyPeerCertByName: string | null;
|
|
161
174
|
shuffleHost: boolean;
|
|
162
175
|
mihomoX25519: boolean;
|
|
176
|
+
mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
|
|
163
177
|
xrayJsonTemplateUuid: string | null;
|
|
164
178
|
excludedInternalSquads: string[];
|
|
165
179
|
xHttpExtraParams?: unknown;
|
|
@@ -189,8 +203,10 @@ export declare namespace GetOneHostCommand {
|
|
|
189
203
|
serverDescription: string | null;
|
|
190
204
|
vlessRouteId: number | null;
|
|
191
205
|
pinnedPeerCertSha256: string | null;
|
|
206
|
+
verifyPeerCertByName: string | null;
|
|
192
207
|
shuffleHost: boolean;
|
|
193
208
|
mihomoX25519: boolean;
|
|
209
|
+
mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
|
|
194
210
|
xrayJsonTemplateUuid: string | null;
|
|
195
211
|
excludedInternalSquads: string[];
|
|
196
212
|
isDisabled?: boolean | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-one.command.d.ts","sourceRoot":"","sources":["../../../../commands/hosts/get-one.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,0BAA6B,CAAC;IACvC,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"get-one.command.d.ts","sourceRoot":"","sources":["../../../../commands/hosts/get-one.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,0BAA6B,CAAC;IACvC,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,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"}
|
|
@@ -42,8 +42,16 @@ export declare namespace ReorderHostCommand {
|
|
|
42
42
|
keepSniBlank: z.ZodDefault<z.ZodBoolean>;
|
|
43
43
|
vlessRouteId: z.ZodNullable<z.ZodNumber>;
|
|
44
44
|
pinnedPeerCertSha256: z.ZodNullable<z.ZodString>;
|
|
45
|
+
verifyPeerCertByName: z.ZodNullable<z.ZodString>;
|
|
45
46
|
shuffleHost: z.ZodBoolean;
|
|
46
47
|
mihomoX25519: z.ZodBoolean;
|
|
48
|
+
mihomoIpVersion: z.ZodNullable<z.ZodNativeEnum<{
|
|
49
|
+
readonly DUAL: "dual";
|
|
50
|
+
readonly IPV4: "ipv4";
|
|
51
|
+
readonly IPV6: "ipv6";
|
|
52
|
+
readonly IPV4_PREFER: "ipv4-prefer";
|
|
53
|
+
readonly IPV6_PREFER: "ipv6-prefer";
|
|
54
|
+
}>>;
|
|
47
55
|
nodes: z.ZodArray<z.ZodString, "many">;
|
|
48
56
|
xrayJsonTemplateUuid: z.ZodNullable<z.ZodString>;
|
|
49
57
|
excludedInternalSquads: z.ZodArray<z.ZodString, "many">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reorder.command.d.ts","sourceRoot":"","sources":["../../../../commands/hosts/reorder.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,8BAAiC,CAAC;IAC3C,MAAM,OAAO,8BAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"reorder.command.d.ts","sourceRoot":"","sources":["../../../../commands/hosts/reorder.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,8BAAiC,CAAC;IAC3C,MAAM,OAAO,8BAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAOxB,CAAC;IACH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -41,8 +41,16 @@ export declare namespace UpdateHostCommand {
|
|
|
41
41
|
keepSniBlank: z.ZodDefault<z.ZodBoolean>;
|
|
42
42
|
vlessRouteId: z.ZodNullable<z.ZodNumber>;
|
|
43
43
|
pinnedPeerCertSha256: z.ZodNullable<z.ZodString>;
|
|
44
|
+
verifyPeerCertByName: z.ZodNullable<z.ZodString>;
|
|
44
45
|
shuffleHost: z.ZodBoolean;
|
|
45
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
|
+
}>>;
|
|
46
54
|
nodes: z.ZodArray<z.ZodString, "many">;
|
|
47
55
|
xrayJsonTemplateUuid: z.ZodNullable<z.ZodString>;
|
|
48
56
|
excludedInternalSquads: z.ZodArray<z.ZodString, "many">;
|
|
@@ -107,8 +115,16 @@ export declare namespace UpdateHostCommand {
|
|
|
107
115
|
keepSniBlank: z.ZodOptional<z.ZodBoolean>;
|
|
108
116
|
vlessRouteId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
109
117
|
pinnedPeerCertSha256: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
118
|
+
verifyPeerCertByName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
110
119
|
shuffleHost: z.ZodOptional<z.ZodBoolean>;
|
|
111
120
|
mihomoX25519: z.ZodOptional<z.ZodBoolean>;
|
|
121
|
+
mihomoIpVersion: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<{
|
|
122
|
+
readonly DUAL: "dual";
|
|
123
|
+
readonly IPV4: "ipv4";
|
|
124
|
+
readonly IPV6: "ipv6";
|
|
125
|
+
readonly IPV4_PREFER: "ipv4-prefer";
|
|
126
|
+
readonly IPV6_PREFER: "ipv6-prefer";
|
|
127
|
+
}>>>;
|
|
112
128
|
nodes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
113
129
|
xrayJsonTemplateUuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
114
130
|
excludedInternalSquads: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
@@ -148,8 +164,10 @@ export declare namespace UpdateHostCommand {
|
|
|
148
164
|
keepSniBlank?: boolean | undefined;
|
|
149
165
|
vlessRouteId?: number | null | undefined;
|
|
150
166
|
pinnedPeerCertSha256?: string | null | undefined;
|
|
167
|
+
verifyPeerCertByName?: string | null | undefined;
|
|
151
168
|
shuffleHost?: boolean | undefined;
|
|
152
169
|
mihomoX25519?: boolean | undefined;
|
|
170
|
+
mihomoIpVersion?: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null | undefined;
|
|
153
171
|
xrayJsonTemplateUuid?: string | null | undefined;
|
|
154
172
|
excludedInternalSquads?: string[] | undefined;
|
|
155
173
|
excludeFromSubscriptionTypes?: ("STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64")[] | undefined;
|
|
@@ -181,8 +199,10 @@ export declare namespace UpdateHostCommand {
|
|
|
181
199
|
keepSniBlank?: boolean | undefined;
|
|
182
200
|
vlessRouteId?: number | null | undefined;
|
|
183
201
|
pinnedPeerCertSha256?: string | null | undefined;
|
|
202
|
+
verifyPeerCertByName?: string | null | undefined;
|
|
184
203
|
shuffleHost?: boolean | undefined;
|
|
185
204
|
mihomoX25519?: boolean | undefined;
|
|
205
|
+
mihomoIpVersion?: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null | undefined;
|
|
186
206
|
xrayJsonTemplateUuid?: string | null | undefined;
|
|
187
207
|
excludedInternalSquads?: string[] | undefined;
|
|
188
208
|
excludeFromSubscriptionTypes?: ("STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64")[] | undefined;
|
|
@@ -227,8 +247,16 @@ export declare namespace UpdateHostCommand {
|
|
|
227
247
|
keepSniBlank: z.ZodDefault<z.ZodBoolean>;
|
|
228
248
|
vlessRouteId: z.ZodNullable<z.ZodNumber>;
|
|
229
249
|
pinnedPeerCertSha256: z.ZodNullable<z.ZodString>;
|
|
250
|
+
verifyPeerCertByName: z.ZodNullable<z.ZodString>;
|
|
230
251
|
shuffleHost: z.ZodBoolean;
|
|
231
252
|
mihomoX25519: z.ZodBoolean;
|
|
253
|
+
mihomoIpVersion: z.ZodNullable<z.ZodNativeEnum<{
|
|
254
|
+
readonly DUAL: "dual";
|
|
255
|
+
readonly IPV4: "ipv4";
|
|
256
|
+
readonly IPV6: "ipv6";
|
|
257
|
+
readonly IPV4_PREFER: "ipv4-prefer";
|
|
258
|
+
readonly IPV6_PREFER: "ipv6-prefer";
|
|
259
|
+
}>>;
|
|
232
260
|
nodes: z.ZodArray<z.ZodString, "many">;
|
|
233
261
|
xrayJsonTemplateUuid: z.ZodNullable<z.ZodString>;
|
|
234
262
|
excludedInternalSquads: z.ZodArray<z.ZodString, "many">;
|
|
@@ -265,8 +293,10 @@ export declare namespace UpdateHostCommand {
|
|
|
265
293
|
keepSniBlank: boolean;
|
|
266
294
|
vlessRouteId: number | null;
|
|
267
295
|
pinnedPeerCertSha256: string | null;
|
|
296
|
+
verifyPeerCertByName: string | null;
|
|
268
297
|
shuffleHost: boolean;
|
|
269
298
|
mihomoX25519: boolean;
|
|
299
|
+
mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
|
|
270
300
|
xrayJsonTemplateUuid: string | null;
|
|
271
301
|
excludedInternalSquads: string[];
|
|
272
302
|
xHttpExtraParams?: unknown;
|
|
@@ -294,8 +324,10 @@ export declare namespace UpdateHostCommand {
|
|
|
294
324
|
serverDescription: string | null;
|
|
295
325
|
vlessRouteId: number | null;
|
|
296
326
|
pinnedPeerCertSha256: string | null;
|
|
327
|
+
verifyPeerCertByName: string | null;
|
|
297
328
|
shuffleHost: boolean;
|
|
298
329
|
mihomoX25519: boolean;
|
|
330
|
+
mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
|
|
299
331
|
xrayJsonTemplateUuid: string | null;
|
|
300
332
|
excludedInternalSquads: string[];
|
|
301
333
|
isDisabled?: boolean | undefined;
|
|
@@ -335,8 +367,10 @@ export declare namespace UpdateHostCommand {
|
|
|
335
367
|
keepSniBlank: boolean;
|
|
336
368
|
vlessRouteId: number | null;
|
|
337
369
|
pinnedPeerCertSha256: string | null;
|
|
370
|
+
verifyPeerCertByName: string | null;
|
|
338
371
|
shuffleHost: boolean;
|
|
339
372
|
mihomoX25519: boolean;
|
|
373
|
+
mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
|
|
340
374
|
xrayJsonTemplateUuid: string | null;
|
|
341
375
|
excludedInternalSquads: string[];
|
|
342
376
|
xHttpExtraParams?: unknown;
|
|
@@ -366,8 +400,10 @@ export declare namespace UpdateHostCommand {
|
|
|
366
400
|
serverDescription: string | null;
|
|
367
401
|
vlessRouteId: number | null;
|
|
368
402
|
pinnedPeerCertSha256: string | null;
|
|
403
|
+
verifyPeerCertByName: string | null;
|
|
369
404
|
shuffleHost: boolean;
|
|
370
405
|
mihomoX25519: boolean;
|
|
406
|
+
mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
|
|
371
407
|
xrayJsonTemplateUuid: string | null;
|
|
372
408
|
excludedInternalSquads: string[];
|
|
373
409
|
isDisabled?: boolean | undefined;
|
|
@@ -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;AAaxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,eAAwB,CAAC;IAClC,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA8ExB,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"}
|
|
@@ -67,8 +67,10 @@ var UpdateHostCommand;
|
|
|
67
67
|
keepSniBlank: zod_1.z.optional(zod_1.z.boolean()),
|
|
68
68
|
vlessRouteId: zod_1.z.optional(zod_1.z.number().int().min(0).max(65535).nullable()),
|
|
69
69
|
pinnedPeerCertSha256: zod_1.z.optional(zod_1.z.string().nullable()),
|
|
70
|
+
verifyPeerCertByName: zod_1.z.optional(zod_1.z.string().nullable()),
|
|
70
71
|
shuffleHost: zod_1.z.optional(zod_1.z.boolean()),
|
|
71
72
|
mihomoX25519: zod_1.z.optional(zod_1.z.boolean()),
|
|
73
|
+
mihomoIpVersion: zod_1.z.optional(zod_1.z.nativeEnum(constants_1.MIHOMO_IP_VERSION).nullable()),
|
|
72
74
|
nodes: zod_1.z.optional(zod_1.z.array(zod_1.z.string().uuid())),
|
|
73
75
|
xrayJsonTemplateUuid: zod_1.z.optional(zod_1.z.string().uuid().nullable()),
|
|
74
76
|
excludedInternalSquads: zod_1.z
|
package/build/backend/commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.d.ts
CHANGED
|
@@ -408,6 +408,14 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
|
|
|
408
408
|
security: z.ZodEnum<["tls", "reality", "none"]>;
|
|
409
409
|
securityOptions: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
410
410
|
pinnedPeerCertSha256: z.ZodNullable<z.ZodString>;
|
|
411
|
+
verifyPeerCertByName: z.ZodNullable<z.ZodString>;
|
|
412
|
+
mihomoIpVersion: z.ZodNullable<z.ZodNativeEnum<{
|
|
413
|
+
readonly DUAL: "dual";
|
|
414
|
+
readonly IPV4: "ipv4";
|
|
415
|
+
readonly IPV6: "ipv6";
|
|
416
|
+
readonly IPV4_PREFER: "ipv4-prefer";
|
|
417
|
+
readonly IPV6_PREFER: "ipv6-prefer";
|
|
418
|
+
}>>;
|
|
411
419
|
alpn: z.ZodNullable<z.ZodString>;
|
|
412
420
|
enableSessionResumption: z.ZodBoolean;
|
|
413
421
|
fingerprint: z.ZodNullable<z.ZodString>;
|
|
@@ -418,6 +426,8 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
|
|
|
418
426
|
alpn: string | null;
|
|
419
427
|
fingerprint: string | null;
|
|
420
428
|
pinnedPeerCertSha256: string | null;
|
|
429
|
+
verifyPeerCertByName: string | null;
|
|
430
|
+
mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
|
|
421
431
|
enableSessionResumption: boolean;
|
|
422
432
|
serverName: string | null;
|
|
423
433
|
echConfigList: string | null;
|
|
@@ -426,6 +436,8 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
|
|
|
426
436
|
alpn: string | null;
|
|
427
437
|
fingerprint: string | null;
|
|
428
438
|
pinnedPeerCertSha256: string | null;
|
|
439
|
+
verifyPeerCertByName: string | null;
|
|
440
|
+
mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
|
|
429
441
|
enableSessionResumption: boolean;
|
|
430
442
|
serverName: string | null;
|
|
431
443
|
echConfigList: string | null;
|
|
@@ -619,6 +631,8 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
|
|
|
619
631
|
alpn: string | null;
|
|
620
632
|
fingerprint: string | null;
|
|
621
633
|
pinnedPeerCertSha256: string | null;
|
|
634
|
+
verifyPeerCertByName: string | null;
|
|
635
|
+
mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
|
|
622
636
|
enableSessionResumption: boolean;
|
|
623
637
|
serverName: string | null;
|
|
624
638
|
echConfigList: string | null;
|
|
@@ -725,6 +739,8 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
|
|
|
725
739
|
alpn: string | null;
|
|
726
740
|
fingerprint: string | null;
|
|
727
741
|
pinnedPeerCertSha256: string | null;
|
|
742
|
+
verifyPeerCertByName: string | null;
|
|
743
|
+
mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
|
|
728
744
|
enableSessionResumption: boolean;
|
|
729
745
|
serverName: string | null;
|
|
730
746
|
echConfigList: string | null;
|
|
@@ -877,6 +893,8 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
|
|
|
877
893
|
alpn: string | null;
|
|
878
894
|
fingerprint: string | null;
|
|
879
895
|
pinnedPeerCertSha256: string | null;
|
|
896
|
+
verifyPeerCertByName: string | null;
|
|
897
|
+
mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
|
|
880
898
|
enableSessionResumption: boolean;
|
|
881
899
|
serverName: string | null;
|
|
882
900
|
echConfigList: string | null;
|
|
@@ -1029,6 +1047,8 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
|
|
|
1029
1047
|
alpn: string | null;
|
|
1030
1048
|
fingerprint: string | null;
|
|
1031
1049
|
pinnedPeerCertSha256: string | null;
|
|
1050
|
+
verifyPeerCertByName: string | null;
|
|
1051
|
+
mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
|
|
1032
1052
|
enableSessionResumption: boolean;
|
|
1033
1053
|
serverName: string | null;
|
|
1034
1054
|
echConfigList: string | null;
|
|
@@ -1183,6 +1203,8 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
|
|
|
1183
1203
|
alpn: string | null;
|
|
1184
1204
|
fingerprint: string | null;
|
|
1185
1205
|
pinnedPeerCertSha256: string | null;
|
|
1206
|
+
verifyPeerCertByName: string | null;
|
|
1207
|
+
mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
|
|
1186
1208
|
enableSessionResumption: boolean;
|
|
1187
1209
|
serverName: string | null;
|
|
1188
1210
|
echConfigList: string | null;
|
|
@@ -1337,6 +1359,8 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
|
|
|
1337
1359
|
alpn: string | null;
|
|
1338
1360
|
fingerprint: string | null;
|
|
1339
1361
|
pinnedPeerCertSha256: string | null;
|
|
1362
|
+
verifyPeerCertByName: string | null;
|
|
1363
|
+
mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
|
|
1340
1364
|
enableSessionResumption: boolean;
|
|
1341
1365
|
serverName: string | null;
|
|
1342
1366
|
echConfigList: string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-raw-subscription-by-short-uuid.command.d.ts","sourceRoot":"","sources":["../../../../../commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,oCAAoC,CAAC;IAC3C,MAAM,GAAG,+BAA+C,CAAC;IACzD,MAAM,OAAO,QAAoB,CAAC;IAElC,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,kBAAkB;;;;;;MAM7B,CAAC;IAEH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAEvD,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"get-raw-subscription-by-short-uuid.command.d.ts","sourceRoot":"","sources":["../../../../../commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,oCAAoC,CAAC;IAC3C,MAAM,GAAG,+BAA+C,CAAC;IACzD,MAAM,OAAO,QAAoB,CAAC;IAElC,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,kBAAkB;;;;;;MAM7B,CAAC;IAEH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAEvD,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAazB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../constants/hosts/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../constants/hosts/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC"}
|
|
@@ -16,4 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./alpn"), exports);
|
|
18
18
|
__exportStar(require("./fingerprints"), exports);
|
|
19
|
+
__exportStar(require("./mihomo-ip-version"), exports);
|
|
19
20
|
__exportStar(require("./security-layers"), exports);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const MIHOMO_IP_VERSION: {
|
|
2
|
+
readonly DUAL: "dual";
|
|
3
|
+
readonly IPV4: "ipv4";
|
|
4
|
+
readonly IPV6: "ipv6";
|
|
5
|
+
readonly IPV4_PREFER: "ipv4-prefer";
|
|
6
|
+
readonly IPV6_PREFER: "ipv6-prefer";
|
|
7
|
+
};
|
|
8
|
+
export type TMihomoIpVersion = (typeof MIHOMO_IP_VERSION)[keyof typeof MIHOMO_IP_VERSION];
|
|
9
|
+
export declare const MIHOMO_IP_VERSION_VALUES: ("dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer")[];
|
|
10
|
+
//# sourceMappingURL=mihomo-ip-version.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mihomo-ip-version.d.ts","sourceRoot":"","sources":["../../../../constants/hosts/mihomo-ip-version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB;;;;;;CAMpB,CAAC;AAEX,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,OAAO,iBAAiB,CAAC,CAAC;AAC1F,eAAO,MAAM,wBAAwB,8DAAmC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MIHOMO_IP_VERSION_VALUES = exports.MIHOMO_IP_VERSION = void 0;
|
|
4
|
+
exports.MIHOMO_IP_VERSION = {
|
|
5
|
+
DUAL: 'dual',
|
|
6
|
+
IPV4: 'ipv4',
|
|
7
|
+
IPV6: 'ipv6',
|
|
8
|
+
IPV4_PREFER: 'ipv4-prefer',
|
|
9
|
+
IPV6_PREFER: 'ipv6-prefer',
|
|
10
|
+
};
|
|
11
|
+
exports.MIHOMO_IP_VERSION_VALUES = Object.values(exports.MIHOMO_IP_VERSION);
|
|
@@ -37,8 +37,16 @@ export declare const HostsSchema: z.ZodObject<{
|
|
|
37
37
|
keepSniBlank: z.ZodDefault<z.ZodBoolean>;
|
|
38
38
|
vlessRouteId: z.ZodNullable<z.ZodNumber>;
|
|
39
39
|
pinnedPeerCertSha256: z.ZodNullable<z.ZodString>;
|
|
40
|
+
verifyPeerCertByName: z.ZodNullable<z.ZodString>;
|
|
40
41
|
shuffleHost: z.ZodBoolean;
|
|
41
42
|
mihomoX25519: z.ZodBoolean;
|
|
43
|
+
mihomoIpVersion: z.ZodNullable<z.ZodNativeEnum<{
|
|
44
|
+
readonly DUAL: "dual";
|
|
45
|
+
readonly IPV4: "ipv4";
|
|
46
|
+
readonly IPV6: "ipv6";
|
|
47
|
+
readonly IPV4_PREFER: "ipv4-prefer";
|
|
48
|
+
readonly IPV6_PREFER: "ipv6-prefer";
|
|
49
|
+
}>>;
|
|
42
50
|
nodes: z.ZodArray<z.ZodString, "many">;
|
|
43
51
|
xrayJsonTemplateUuid: z.ZodNullable<z.ZodString>;
|
|
44
52
|
excludedInternalSquads: z.ZodArray<z.ZodString, "many">;
|
|
@@ -75,8 +83,10 @@ export declare const HostsSchema: z.ZodObject<{
|
|
|
75
83
|
keepSniBlank: boolean;
|
|
76
84
|
vlessRouteId: number | null;
|
|
77
85
|
pinnedPeerCertSha256: string | null;
|
|
86
|
+
verifyPeerCertByName: string | null;
|
|
78
87
|
shuffleHost: boolean;
|
|
79
88
|
mihomoX25519: boolean;
|
|
89
|
+
mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
|
|
80
90
|
xrayJsonTemplateUuid: string | null;
|
|
81
91
|
excludedInternalSquads: string[];
|
|
82
92
|
xHttpExtraParams?: unknown;
|
|
@@ -104,8 +114,10 @@ export declare const HostsSchema: z.ZodObject<{
|
|
|
104
114
|
serverDescription: string | null;
|
|
105
115
|
vlessRouteId: number | null;
|
|
106
116
|
pinnedPeerCertSha256: string | null;
|
|
117
|
+
verifyPeerCertByName: string | null;
|
|
107
118
|
shuffleHost: boolean;
|
|
108
119
|
mihomoX25519: boolean;
|
|
120
|
+
mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
|
|
109
121
|
xrayJsonTemplateUuid: string | null;
|
|
110
122
|
excludedInternalSquads: string[];
|
|
111
123
|
isDisabled?: boolean | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hosts.schema.d.ts","sourceRoot":"","sources":["../../../models/hosts.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"hosts.schema.d.ts","sourceRoot":"","sources":["../../../models/hosts.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuCtB,CAAC"}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.HostsSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
const constants_1 = require("../constants");
|
|
6
5
|
const hosts_1 = require("../constants/hosts");
|
|
6
|
+
const constants_1 = require("../constants");
|
|
7
7
|
exports.HostsSchema = zod_1.z.object({
|
|
8
8
|
uuid: zod_1.z.string().uuid(),
|
|
9
9
|
viewPosition: zod_1.z.number().int(),
|
|
@@ -32,8 +32,10 @@ exports.HostsSchema = zod_1.z.object({
|
|
|
32
32
|
keepSniBlank: zod_1.z.boolean().default(false),
|
|
33
33
|
vlessRouteId: zod_1.z.number().int().min(0).max(65535).nullable(),
|
|
34
34
|
pinnedPeerCertSha256: zod_1.z.string().nullable(),
|
|
35
|
+
verifyPeerCertByName: zod_1.z.string().nullable(),
|
|
35
36
|
shuffleHost: zod_1.z.boolean(),
|
|
36
37
|
mihomoX25519: zod_1.z.boolean(),
|
|
38
|
+
mihomoIpVersion: zod_1.z.nativeEnum(hosts_1.MIHOMO_IP_VERSION).nullable(),
|
|
37
39
|
nodes: zod_1.z.array(zod_1.z.string().uuid()),
|
|
38
40
|
xrayJsonTemplateUuid: zod_1.z.string().uuid().nullable(),
|
|
39
41
|
excludedInternalSquads: zod_1.z.array(zod_1.z.string().uuid()),
|
|
@@ -232,6 +232,14 @@ export declare const HysteriaTransportOptionsSchema: z.ZodObject<{
|
|
|
232
232
|
}>;
|
|
233
233
|
export declare const TlsSecurityOptionsSchema: z.ZodObject<{
|
|
234
234
|
pinnedPeerCertSha256: z.ZodNullable<z.ZodString>;
|
|
235
|
+
verifyPeerCertByName: z.ZodNullable<z.ZodString>;
|
|
236
|
+
mihomoIpVersion: z.ZodNullable<z.ZodNativeEnum<{
|
|
237
|
+
readonly DUAL: "dual";
|
|
238
|
+
readonly IPV4: "ipv4";
|
|
239
|
+
readonly IPV6: "ipv6";
|
|
240
|
+
readonly IPV4_PREFER: "ipv4-prefer";
|
|
241
|
+
readonly IPV6_PREFER: "ipv6-prefer";
|
|
242
|
+
}>>;
|
|
235
243
|
alpn: z.ZodNullable<z.ZodString>;
|
|
236
244
|
enableSessionResumption: z.ZodBoolean;
|
|
237
245
|
fingerprint: z.ZodNullable<z.ZodString>;
|
|
@@ -242,6 +250,8 @@ export declare const TlsSecurityOptionsSchema: z.ZodObject<{
|
|
|
242
250
|
alpn: string | null;
|
|
243
251
|
fingerprint: string | null;
|
|
244
252
|
pinnedPeerCertSha256: string | null;
|
|
253
|
+
verifyPeerCertByName: string | null;
|
|
254
|
+
mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
|
|
245
255
|
enableSessionResumption: boolean;
|
|
246
256
|
serverName: string | null;
|
|
247
257
|
echConfigList: string | null;
|
|
@@ -250,6 +260,8 @@ export declare const TlsSecurityOptionsSchema: z.ZodObject<{
|
|
|
250
260
|
alpn: string | null;
|
|
251
261
|
fingerprint: string | null;
|
|
252
262
|
pinnedPeerCertSha256: string | null;
|
|
263
|
+
verifyPeerCertByName: string | null;
|
|
264
|
+
mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
|
|
253
265
|
enableSessionResumption: boolean;
|
|
254
266
|
serverName: string | null;
|
|
255
267
|
echConfigList: string | null;
|
|
@@ -714,6 +726,14 @@ export declare const SecurityVariantSchema: z.ZodDiscriminatedUnion<"security",
|
|
|
714
726
|
security: z.ZodLiteral<"tls">;
|
|
715
727
|
securityOptions: z.ZodObject<{
|
|
716
728
|
pinnedPeerCertSha256: z.ZodNullable<z.ZodString>;
|
|
729
|
+
verifyPeerCertByName: z.ZodNullable<z.ZodString>;
|
|
730
|
+
mihomoIpVersion: z.ZodNullable<z.ZodNativeEnum<{
|
|
731
|
+
readonly DUAL: "dual";
|
|
732
|
+
readonly IPV4: "ipv4";
|
|
733
|
+
readonly IPV6: "ipv6";
|
|
734
|
+
readonly IPV4_PREFER: "ipv4-prefer";
|
|
735
|
+
readonly IPV6_PREFER: "ipv6-prefer";
|
|
736
|
+
}>>;
|
|
717
737
|
alpn: z.ZodNullable<z.ZodString>;
|
|
718
738
|
enableSessionResumption: z.ZodBoolean;
|
|
719
739
|
fingerprint: z.ZodNullable<z.ZodString>;
|
|
@@ -724,6 +744,8 @@ export declare const SecurityVariantSchema: z.ZodDiscriminatedUnion<"security",
|
|
|
724
744
|
alpn: string | null;
|
|
725
745
|
fingerprint: string | null;
|
|
726
746
|
pinnedPeerCertSha256: string | null;
|
|
747
|
+
verifyPeerCertByName: string | null;
|
|
748
|
+
mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
|
|
727
749
|
enableSessionResumption: boolean;
|
|
728
750
|
serverName: string | null;
|
|
729
751
|
echConfigList: string | null;
|
|
@@ -732,6 +754,8 @@ export declare const SecurityVariantSchema: z.ZodDiscriminatedUnion<"security",
|
|
|
732
754
|
alpn: string | null;
|
|
733
755
|
fingerprint: string | null;
|
|
734
756
|
pinnedPeerCertSha256: string | null;
|
|
757
|
+
verifyPeerCertByName: string | null;
|
|
758
|
+
mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
|
|
735
759
|
enableSessionResumption: boolean;
|
|
736
760
|
serverName: string | null;
|
|
737
761
|
echConfigList: string | null;
|
|
@@ -743,6 +767,8 @@ export declare const SecurityVariantSchema: z.ZodDiscriminatedUnion<"security",
|
|
|
743
767
|
alpn: string | null;
|
|
744
768
|
fingerprint: string | null;
|
|
745
769
|
pinnedPeerCertSha256: string | null;
|
|
770
|
+
verifyPeerCertByName: string | null;
|
|
771
|
+
mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
|
|
746
772
|
enableSessionResumption: boolean;
|
|
747
773
|
serverName: string | null;
|
|
748
774
|
echConfigList: string | null;
|
|
@@ -754,6 +780,8 @@ export declare const SecurityVariantSchema: z.ZodDiscriminatedUnion<"security",
|
|
|
754
780
|
alpn: string | null;
|
|
755
781
|
fingerprint: string | null;
|
|
756
782
|
pinnedPeerCertSha256: string | null;
|
|
783
|
+
verifyPeerCertByName: string | null;
|
|
784
|
+
mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
|
|
757
785
|
enableSessionResumption: boolean;
|
|
758
786
|
serverName: string | null;
|
|
759
787
|
echConfigList: string | null;
|
|
@@ -1088,6 +1116,14 @@ export declare const ResolvedProxyConfigSchema: z.ZodObject<{
|
|
|
1088
1116
|
security: z.ZodEnum<["tls", "reality", "none"]>;
|
|
1089
1117
|
securityOptions: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
1090
1118
|
pinnedPeerCertSha256: z.ZodNullable<z.ZodString>;
|
|
1119
|
+
verifyPeerCertByName: z.ZodNullable<z.ZodString>;
|
|
1120
|
+
mihomoIpVersion: z.ZodNullable<z.ZodNativeEnum<{
|
|
1121
|
+
readonly DUAL: "dual";
|
|
1122
|
+
readonly IPV4: "ipv4";
|
|
1123
|
+
readonly IPV6: "ipv6";
|
|
1124
|
+
readonly IPV4_PREFER: "ipv4-prefer";
|
|
1125
|
+
readonly IPV6_PREFER: "ipv6-prefer";
|
|
1126
|
+
}>>;
|
|
1091
1127
|
alpn: z.ZodNullable<z.ZodString>;
|
|
1092
1128
|
enableSessionResumption: z.ZodBoolean;
|
|
1093
1129
|
fingerprint: z.ZodNullable<z.ZodString>;
|
|
@@ -1098,6 +1134,8 @@ export declare const ResolvedProxyConfigSchema: z.ZodObject<{
|
|
|
1098
1134
|
alpn: string | null;
|
|
1099
1135
|
fingerprint: string | null;
|
|
1100
1136
|
pinnedPeerCertSha256: string | null;
|
|
1137
|
+
verifyPeerCertByName: string | null;
|
|
1138
|
+
mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
|
|
1101
1139
|
enableSessionResumption: boolean;
|
|
1102
1140
|
serverName: string | null;
|
|
1103
1141
|
echConfigList: string | null;
|
|
@@ -1106,6 +1144,8 @@ export declare const ResolvedProxyConfigSchema: z.ZodObject<{
|
|
|
1106
1144
|
alpn: string | null;
|
|
1107
1145
|
fingerprint: string | null;
|
|
1108
1146
|
pinnedPeerCertSha256: string | null;
|
|
1147
|
+
verifyPeerCertByName: string | null;
|
|
1148
|
+
mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
|
|
1109
1149
|
enableSessionResumption: boolean;
|
|
1110
1150
|
serverName: string | null;
|
|
1111
1151
|
echConfigList: string | null;
|
|
@@ -1299,6 +1339,8 @@ export declare const ResolvedProxyConfigSchema: z.ZodObject<{
|
|
|
1299
1339
|
alpn: string | null;
|
|
1300
1340
|
fingerprint: string | null;
|
|
1301
1341
|
pinnedPeerCertSha256: string | null;
|
|
1342
|
+
verifyPeerCertByName: string | null;
|
|
1343
|
+
mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
|
|
1302
1344
|
enableSessionResumption: boolean;
|
|
1303
1345
|
serverName: string | null;
|
|
1304
1346
|
echConfigList: string | null;
|
|
@@ -1405,6 +1447,8 @@ export declare const ResolvedProxyConfigSchema: z.ZodObject<{
|
|
|
1405
1447
|
alpn: string | null;
|
|
1406
1448
|
fingerprint: string | null;
|
|
1407
1449
|
pinnedPeerCertSha256: string | null;
|
|
1450
|
+
verifyPeerCertByName: string | null;
|
|
1451
|
+
mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
|
|
1408
1452
|
enableSessionResumption: boolean;
|
|
1409
1453
|
serverName: string | null;
|
|
1410
1454
|
echConfigList: string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolved-proxy-config.schema.d.ts","sourceRoot":"","sources":["../../../models/resolved-proxy-config.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,0BAA0B;;;;;;;;;;;;EAIrC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;EAEtC,CAAC;AAEH,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;EAK3C,CAAC;AA4BH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEpC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;EAKtC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;EAKnC,CAAC;AAEH,eAAO,MAAM,iCAAiC;;;;;;;;;;;;EAI5C,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;EAIrC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;EAIpC,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;EAExC,CAAC;AAEH,eAAO,MAAM,8BAA8B;;;;;;;;;EAGzC,CAAC;AAEH,eAAO,MAAM,wBAAwB
|
|
1
|
+
{"version":3,"file":"resolved-proxy-config.schema.d.ts","sourceRoot":"","sources":["../../../models/resolved-proxy-config.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,0BAA0B;;;;;;;;;;;;EAIrC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;EAEtC,CAAC;AAEH,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;EAK3C,CAAC;AA4BH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAEpC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;EAKtC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;EAKnC,CAAC;AAEH,eAAO,MAAM,iCAAiC;;;;;;;;;;;;EAI5C,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;EAIrC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;EAIpC,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;EAExC,CAAC;AAEH,eAAO,MAAM,8BAA8B;;;;;;;;;EAGzC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUnC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;EAOvC,CAAC;AAsBH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAKhC,CAAC;AAqCH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAQjC,CAAC;AAgBH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAIhC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAanC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0CpC,CAAC"}
|
|
@@ -77,6 +77,8 @@ exports.HysteriaTransportOptionsSchema = zod_1.z.object({
|
|
|
77
77
|
});
|
|
78
78
|
exports.TlsSecurityOptionsSchema = zod_1.z.object({
|
|
79
79
|
pinnedPeerCertSha256: zod_1.z.string().nullable(),
|
|
80
|
+
verifyPeerCertByName: zod_1.z.string().nullable(),
|
|
81
|
+
mihomoIpVersion: zod_1.z.nativeEnum(constants_1.MIHOMO_IP_VERSION).nullable(),
|
|
80
82
|
alpn: zod_1.z.string().nullable(),
|
|
81
83
|
enableSessionResumption: zod_1.z.boolean(),
|
|
82
84
|
fingerprint: zod_1.z.string().nullable(),
|
|
@@ -61,9 +61,11 @@ var CreateHostCommand;
|
|
|
61
61
|
overrideSniFromAddress: zod_1.z.optional(zod_1.z.boolean().default(false)),
|
|
62
62
|
keepSniBlank: zod_1.z.optional(zod_1.z.boolean().default(false)),
|
|
63
63
|
pinnedPeerCertSha256: zod_1.z.optional(zod_1.z.string().nullable()),
|
|
64
|
+
verifyPeerCertByName: zod_1.z.optional(zod_1.z.string().nullable()),
|
|
64
65
|
vlessRouteId: zod_1.z.optional(zod_1.z.number().int().min(0).max(65535).nullable()),
|
|
65
66
|
shuffleHost: zod_1.z.optional(zod_1.z.boolean().default(false)),
|
|
66
67
|
mihomoX25519: zod_1.z.optional(zod_1.z.boolean().default(false)),
|
|
68
|
+
mihomoIpVersion: zod_1.z.optional(zod_1.z.nativeEnum(constants_1.MIHOMO_IP_VERSION).nullable()),
|
|
67
69
|
nodes: zod_1.z.optional(zod_1.z.array(zod_1.z.string().uuid())),
|
|
68
70
|
xrayJsonTemplateUuid: zod_1.z.optional(zod_1.z.string().uuid().nullable()),
|
|
69
71
|
excludedInternalSquads: zod_1.z
|
|
@@ -67,8 +67,10 @@ var UpdateHostCommand;
|
|
|
67
67
|
keepSniBlank: zod_1.z.optional(zod_1.z.boolean()),
|
|
68
68
|
vlessRouteId: zod_1.z.optional(zod_1.z.number().int().min(0).max(65535).nullable()),
|
|
69
69
|
pinnedPeerCertSha256: zod_1.z.optional(zod_1.z.string().nullable()),
|
|
70
|
+
verifyPeerCertByName: zod_1.z.optional(zod_1.z.string().nullable()),
|
|
70
71
|
shuffleHost: zod_1.z.optional(zod_1.z.boolean()),
|
|
71
72
|
mihomoX25519: zod_1.z.optional(zod_1.z.boolean()),
|
|
73
|
+
mihomoIpVersion: zod_1.z.optional(zod_1.z.nativeEnum(constants_1.MIHOMO_IP_VERSION).nullable()),
|
|
72
74
|
nodes: zod_1.z.optional(zod_1.z.array(zod_1.z.string().uuid())),
|
|
73
75
|
xrayJsonTemplateUuid: zod_1.z.optional(zod_1.z.string().uuid().nullable()),
|
|
74
76
|
excludedInternalSquads: zod_1.z
|
|
@@ -16,4 +16,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./alpn"), exports);
|
|
18
18
|
__exportStar(require("./fingerprints"), exports);
|
|
19
|
+
__exportStar(require("./mihomo-ip-version"), exports);
|
|
19
20
|
__exportStar(require("./security-layers"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MIHOMO_IP_VERSION_VALUES = exports.MIHOMO_IP_VERSION = void 0;
|
|
4
|
+
exports.MIHOMO_IP_VERSION = {
|
|
5
|
+
DUAL: 'dual',
|
|
6
|
+
IPV4: 'ipv4',
|
|
7
|
+
IPV6: 'ipv6',
|
|
8
|
+
IPV4_PREFER: 'ipv4-prefer',
|
|
9
|
+
IPV6_PREFER: 'ipv6-prefer',
|
|
10
|
+
};
|
|
11
|
+
exports.MIHOMO_IP_VERSION_VALUES = Object.values(exports.MIHOMO_IP_VERSION);
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.HostsSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
const constants_1 = require("../constants");
|
|
6
5
|
const hosts_1 = require("../constants/hosts");
|
|
6
|
+
const constants_1 = require("../constants");
|
|
7
7
|
exports.HostsSchema = zod_1.z.object({
|
|
8
8
|
uuid: zod_1.z.string().uuid(),
|
|
9
9
|
viewPosition: zod_1.z.number().int(),
|
|
@@ -32,8 +32,10 @@ exports.HostsSchema = zod_1.z.object({
|
|
|
32
32
|
keepSniBlank: zod_1.z.boolean().default(false),
|
|
33
33
|
vlessRouteId: zod_1.z.number().int().min(0).max(65535).nullable(),
|
|
34
34
|
pinnedPeerCertSha256: zod_1.z.string().nullable(),
|
|
35
|
+
verifyPeerCertByName: zod_1.z.string().nullable(),
|
|
35
36
|
shuffleHost: zod_1.z.boolean(),
|
|
36
37
|
mihomoX25519: zod_1.z.boolean(),
|
|
38
|
+
mihomoIpVersion: zod_1.z.nativeEnum(hosts_1.MIHOMO_IP_VERSION).nullable(),
|
|
37
39
|
nodes: zod_1.z.array(zod_1.z.string().uuid()),
|
|
38
40
|
xrayJsonTemplateUuid: zod_1.z.string().uuid().nullable(),
|
|
39
41
|
excludedInternalSquads: zod_1.z.array(zod_1.z.string().uuid()),
|
|
@@ -77,6 +77,8 @@ exports.HysteriaTransportOptionsSchema = zod_1.z.object({
|
|
|
77
77
|
});
|
|
78
78
|
exports.TlsSecurityOptionsSchema = zod_1.z.object({
|
|
79
79
|
pinnedPeerCertSha256: zod_1.z.string().nullable(),
|
|
80
|
+
verifyPeerCertByName: zod_1.z.string().nullable(),
|
|
81
|
+
mihomoIpVersion: zod_1.z.nativeEnum(constants_1.MIHOMO_IP_VERSION).nullable(),
|
|
80
82
|
alpn: zod_1.z.string().nullable(),
|
|
81
83
|
enableSessionResumption: zod_1.z.boolean(),
|
|
82
84
|
fingerprint: zod_1.z.string().nullable(),
|