@remnawave/backend-contract 2.0.0-alpha.20 → 2.0.0-alpha.21
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 +26 -10
- 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 +26 -10
- 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 +26 -10
- 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 +26 -10
- 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 +26 -10
- 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 +44 -19
- package/build/backend/commands/hosts/create.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/create.command.js +7 -13
- package/build/backend/commands/hosts/get-all.command.d.ts +26 -10
- package/build/backend/commands/hosts/get-all.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/get-one.command.d.ts +26 -10
- package/build/backend/commands/hosts/get-one.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/reorder.command.d.ts +10 -2
- package/build/backend/commands/hosts/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/update.command.d.ts +54 -21
- package/build/backend/commands/hosts/update.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/update.command.js +4 -11
- package/build/backend/models/hosts.schema.d.ts +18 -6
- package/build/backend/models/hosts.schema.d.ts.map +1 -1
- package/build/backend/models/hosts.schema.js +4 -2
- package/build/frontend/commands/hosts/create.command.js +7 -13
- package/build/frontend/commands/hosts/update.command.js +4 -11
- package/build/frontend/models/hosts.schema.js +4 -2
- package/package.json +1 -1
@@ -30,8 +30,16 @@ export declare namespace BulkDeleteHostsCommand {
|
|
30
30
|
readonly NONE: "NONE";
|
31
31
|
}>>;
|
32
32
|
xHttpExtraParams: z.ZodNullable<z.ZodUnknown>;
|
33
|
-
|
34
|
-
|
33
|
+
inbound: z.ZodObject<{
|
34
|
+
configProfileUuid: z.ZodNullable<z.ZodString>;
|
35
|
+
configProfileInboundUuid: z.ZodNullable<z.ZodString>;
|
36
|
+
}, "strip", z.ZodTypeAny, {
|
37
|
+
configProfileUuid: string | null;
|
38
|
+
configProfileInboundUuid: string | null;
|
39
|
+
}, {
|
40
|
+
configProfileUuid: string | null;
|
41
|
+
configProfileInboundUuid: string | null;
|
42
|
+
}>;
|
35
43
|
}, "strip", z.ZodTypeAny, {
|
36
44
|
path: string | null;
|
37
45
|
uuid: string;
|
@@ -45,8 +53,10 @@ export declare namespace BulkDeleteHostsCommand {
|
|
45
53
|
fingerprint: string | null;
|
46
54
|
isDisabled: boolean;
|
47
55
|
securityLayer: "DEFAULT" | "TLS" | "NONE";
|
48
|
-
|
49
|
-
|
56
|
+
inbound: {
|
57
|
+
configProfileUuid: string | null;
|
58
|
+
configProfileInboundUuid: string | null;
|
59
|
+
};
|
50
60
|
xHttpExtraParams?: unknown;
|
51
61
|
}, {
|
52
62
|
path: string | null;
|
@@ -59,8 +69,10 @@ export declare namespace BulkDeleteHostsCommand {
|
|
59
69
|
host: string | null;
|
60
70
|
alpn: string | null;
|
61
71
|
fingerprint: string | null;
|
62
|
-
|
63
|
-
|
72
|
+
inbound: {
|
73
|
+
configProfileUuid: string | null;
|
74
|
+
configProfileInboundUuid: string | null;
|
75
|
+
};
|
64
76
|
isDisabled?: boolean | undefined;
|
65
77
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
66
78
|
xHttpExtraParams?: unknown;
|
@@ -79,8 +91,10 @@ export declare namespace BulkDeleteHostsCommand {
|
|
79
91
|
fingerprint: string | null;
|
80
92
|
isDisabled: boolean;
|
81
93
|
securityLayer: "DEFAULT" | "TLS" | "NONE";
|
82
|
-
|
83
|
-
|
94
|
+
inbound: {
|
95
|
+
configProfileUuid: string | null;
|
96
|
+
configProfileInboundUuid: string | null;
|
97
|
+
};
|
84
98
|
xHttpExtraParams?: unknown;
|
85
99
|
}[];
|
86
100
|
}, {
|
@@ -95,8 +109,10 @@ export declare namespace BulkDeleteHostsCommand {
|
|
95
109
|
host: string | null;
|
96
110
|
alpn: string | null;
|
97
111
|
fingerprint: string | null;
|
98
|
-
|
99
|
-
|
112
|
+
inbound: {
|
113
|
+
configProfileUuid: string | null;
|
114
|
+
configProfileInboundUuid: string | null;
|
115
|
+
};
|
100
116
|
isDisabled?: boolean | undefined;
|
101
117
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
102
118
|
xHttpExtraParams?: unknown;
|
@@ -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"}
|
@@ -30,8 +30,16 @@ export declare namespace BulkDisableHostsCommand {
|
|
30
30
|
readonly NONE: "NONE";
|
31
31
|
}>>;
|
32
32
|
xHttpExtraParams: z.ZodNullable<z.ZodUnknown>;
|
33
|
-
|
34
|
-
|
33
|
+
inbound: z.ZodObject<{
|
34
|
+
configProfileUuid: z.ZodNullable<z.ZodString>;
|
35
|
+
configProfileInboundUuid: z.ZodNullable<z.ZodString>;
|
36
|
+
}, "strip", z.ZodTypeAny, {
|
37
|
+
configProfileUuid: string | null;
|
38
|
+
configProfileInboundUuid: string | null;
|
39
|
+
}, {
|
40
|
+
configProfileUuid: string | null;
|
41
|
+
configProfileInboundUuid: string | null;
|
42
|
+
}>;
|
35
43
|
}, "strip", z.ZodTypeAny, {
|
36
44
|
path: string | null;
|
37
45
|
uuid: string;
|
@@ -45,8 +53,10 @@ export declare namespace BulkDisableHostsCommand {
|
|
45
53
|
fingerprint: string | null;
|
46
54
|
isDisabled: boolean;
|
47
55
|
securityLayer: "DEFAULT" | "TLS" | "NONE";
|
48
|
-
|
49
|
-
|
56
|
+
inbound: {
|
57
|
+
configProfileUuid: string | null;
|
58
|
+
configProfileInboundUuid: string | null;
|
59
|
+
};
|
50
60
|
xHttpExtraParams?: unknown;
|
51
61
|
}, {
|
52
62
|
path: string | null;
|
@@ -59,8 +69,10 @@ export declare namespace BulkDisableHostsCommand {
|
|
59
69
|
host: string | null;
|
60
70
|
alpn: string | null;
|
61
71
|
fingerprint: string | null;
|
62
|
-
|
63
|
-
|
72
|
+
inbound: {
|
73
|
+
configProfileUuid: string | null;
|
74
|
+
configProfileInboundUuid: string | null;
|
75
|
+
};
|
64
76
|
isDisabled?: boolean | undefined;
|
65
77
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
66
78
|
xHttpExtraParams?: unknown;
|
@@ -79,8 +91,10 @@ export declare namespace BulkDisableHostsCommand {
|
|
79
91
|
fingerprint: string | null;
|
80
92
|
isDisabled: boolean;
|
81
93
|
securityLayer: "DEFAULT" | "TLS" | "NONE";
|
82
|
-
|
83
|
-
|
94
|
+
inbound: {
|
95
|
+
configProfileUuid: string | null;
|
96
|
+
configProfileInboundUuid: string | null;
|
97
|
+
};
|
84
98
|
xHttpExtraParams?: unknown;
|
85
99
|
}[];
|
86
100
|
}, {
|
@@ -95,8 +109,10 @@ export declare namespace BulkDisableHostsCommand {
|
|
95
109
|
host: string | null;
|
96
110
|
alpn: string | null;
|
97
111
|
fingerprint: string | null;
|
98
|
-
|
99
|
-
|
112
|
+
inbound: {
|
113
|
+
configProfileUuid: string | null;
|
114
|
+
configProfileInboundUuid: string | null;
|
115
|
+
};
|
100
116
|
isDisabled?: boolean | undefined;
|
101
117
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
102
118
|
xHttpExtraParams?: unknown;
|
@@ -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"}
|
@@ -30,8 +30,16 @@ export declare namespace BulkEnableHostsCommand {
|
|
30
30
|
readonly NONE: "NONE";
|
31
31
|
}>>;
|
32
32
|
xHttpExtraParams: z.ZodNullable<z.ZodUnknown>;
|
33
|
-
|
34
|
-
|
33
|
+
inbound: z.ZodObject<{
|
34
|
+
configProfileUuid: z.ZodNullable<z.ZodString>;
|
35
|
+
configProfileInboundUuid: z.ZodNullable<z.ZodString>;
|
36
|
+
}, "strip", z.ZodTypeAny, {
|
37
|
+
configProfileUuid: string | null;
|
38
|
+
configProfileInboundUuid: string | null;
|
39
|
+
}, {
|
40
|
+
configProfileUuid: string | null;
|
41
|
+
configProfileInboundUuid: string | null;
|
42
|
+
}>;
|
35
43
|
}, "strip", z.ZodTypeAny, {
|
36
44
|
path: string | null;
|
37
45
|
uuid: string;
|
@@ -45,8 +53,10 @@ export declare namespace BulkEnableHostsCommand {
|
|
45
53
|
fingerprint: string | null;
|
46
54
|
isDisabled: boolean;
|
47
55
|
securityLayer: "DEFAULT" | "TLS" | "NONE";
|
48
|
-
|
49
|
-
|
56
|
+
inbound: {
|
57
|
+
configProfileUuid: string | null;
|
58
|
+
configProfileInboundUuid: string | null;
|
59
|
+
};
|
50
60
|
xHttpExtraParams?: unknown;
|
51
61
|
}, {
|
52
62
|
path: string | null;
|
@@ -59,8 +69,10 @@ export declare namespace BulkEnableHostsCommand {
|
|
59
69
|
host: string | null;
|
60
70
|
alpn: string | null;
|
61
71
|
fingerprint: string | null;
|
62
|
-
|
63
|
-
|
72
|
+
inbound: {
|
73
|
+
configProfileUuid: string | null;
|
74
|
+
configProfileInboundUuid: string | null;
|
75
|
+
};
|
64
76
|
isDisabled?: boolean | undefined;
|
65
77
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
66
78
|
xHttpExtraParams?: unknown;
|
@@ -79,8 +91,10 @@ export declare namespace BulkEnableHostsCommand {
|
|
79
91
|
fingerprint: string | null;
|
80
92
|
isDisabled: boolean;
|
81
93
|
securityLayer: "DEFAULT" | "TLS" | "NONE";
|
82
|
-
|
83
|
-
|
94
|
+
inbound: {
|
95
|
+
configProfileUuid: string | null;
|
96
|
+
configProfileInboundUuid: string | null;
|
97
|
+
};
|
84
98
|
xHttpExtraParams?: unknown;
|
85
99
|
}[];
|
86
100
|
}, {
|
@@ -95,8 +109,10 @@ export declare namespace BulkEnableHostsCommand {
|
|
95
109
|
host: string | null;
|
96
110
|
alpn: string | null;
|
97
111
|
fingerprint: string | null;
|
98
|
-
|
99
|
-
|
112
|
+
inbound: {
|
113
|
+
configProfileUuid: string | null;
|
114
|
+
configProfileInboundUuid: string | null;
|
115
|
+
};
|
100
116
|
isDisabled?: boolean | undefined;
|
101
117
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
102
118
|
xHttpExtraParams?: unknown;
|
@@ -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"}
|
@@ -36,8 +36,16 @@ export declare namespace SetInboundToManyHostsCommand {
|
|
36
36
|
readonly NONE: "NONE";
|
37
37
|
}>>;
|
38
38
|
xHttpExtraParams: z.ZodNullable<z.ZodUnknown>;
|
39
|
-
|
40
|
-
|
39
|
+
inbound: z.ZodObject<{
|
40
|
+
configProfileUuid: z.ZodNullable<z.ZodString>;
|
41
|
+
configProfileInboundUuid: z.ZodNullable<z.ZodString>;
|
42
|
+
}, "strip", z.ZodTypeAny, {
|
43
|
+
configProfileUuid: string | null;
|
44
|
+
configProfileInboundUuid: string | null;
|
45
|
+
}, {
|
46
|
+
configProfileUuid: string | null;
|
47
|
+
configProfileInboundUuid: string | null;
|
48
|
+
}>;
|
41
49
|
}, "strip", z.ZodTypeAny, {
|
42
50
|
path: string | null;
|
43
51
|
uuid: string;
|
@@ -51,8 +59,10 @@ export declare namespace SetInboundToManyHostsCommand {
|
|
51
59
|
fingerprint: string | null;
|
52
60
|
isDisabled: boolean;
|
53
61
|
securityLayer: "DEFAULT" | "TLS" | "NONE";
|
54
|
-
|
55
|
-
|
62
|
+
inbound: {
|
63
|
+
configProfileUuid: string | null;
|
64
|
+
configProfileInboundUuid: string | null;
|
65
|
+
};
|
56
66
|
xHttpExtraParams?: unknown;
|
57
67
|
}, {
|
58
68
|
path: string | null;
|
@@ -65,8 +75,10 @@ export declare namespace SetInboundToManyHostsCommand {
|
|
65
75
|
host: string | null;
|
66
76
|
alpn: string | null;
|
67
77
|
fingerprint: string | null;
|
68
|
-
|
69
|
-
|
78
|
+
inbound: {
|
79
|
+
configProfileUuid: string | null;
|
80
|
+
configProfileInboundUuid: string | null;
|
81
|
+
};
|
70
82
|
isDisabled?: boolean | undefined;
|
71
83
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
72
84
|
xHttpExtraParams?: unknown;
|
@@ -85,8 +97,10 @@ export declare namespace SetInboundToManyHostsCommand {
|
|
85
97
|
fingerprint: string | null;
|
86
98
|
isDisabled: boolean;
|
87
99
|
securityLayer: "DEFAULT" | "TLS" | "NONE";
|
88
|
-
|
89
|
-
|
100
|
+
inbound: {
|
101
|
+
configProfileUuid: string | null;
|
102
|
+
configProfileInboundUuid: string | null;
|
103
|
+
};
|
90
104
|
xHttpExtraParams?: unknown;
|
91
105
|
}[];
|
92
106
|
}, {
|
@@ -101,8 +115,10 @@ export declare namespace SetInboundToManyHostsCommand {
|
|
101
115
|
host: string | null;
|
102
116
|
alpn: string | null;
|
103
117
|
fingerprint: string | null;
|
104
|
-
|
105
|
-
|
118
|
+
inbound: {
|
119
|
+
configProfileUuid: string | null;
|
120
|
+
configProfileInboundUuid: string | null;
|
121
|
+
};
|
106
122
|
isDisabled?: boolean | undefined;
|
107
123
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
108
124
|
xHttpExtraParams?: unknown;
|
@@ -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"}
|
@@ -33,8 +33,16 @@ export declare namespace SetPortToManyHostsCommand {
|
|
33
33
|
readonly NONE: "NONE";
|
34
34
|
}>>;
|
35
35
|
xHttpExtraParams: z.ZodNullable<z.ZodUnknown>;
|
36
|
-
|
37
|
-
|
36
|
+
inbound: z.ZodObject<{
|
37
|
+
configProfileUuid: z.ZodNullable<z.ZodString>;
|
38
|
+
configProfileInboundUuid: z.ZodNullable<z.ZodString>;
|
39
|
+
}, "strip", z.ZodTypeAny, {
|
40
|
+
configProfileUuid: string | null;
|
41
|
+
configProfileInboundUuid: string | null;
|
42
|
+
}, {
|
43
|
+
configProfileUuid: string | null;
|
44
|
+
configProfileInboundUuid: string | null;
|
45
|
+
}>;
|
38
46
|
}, "strip", z.ZodTypeAny, {
|
39
47
|
path: string | null;
|
40
48
|
uuid: string;
|
@@ -48,8 +56,10 @@ export declare namespace SetPortToManyHostsCommand {
|
|
48
56
|
fingerprint: string | null;
|
49
57
|
isDisabled: boolean;
|
50
58
|
securityLayer: "DEFAULT" | "TLS" | "NONE";
|
51
|
-
|
52
|
-
|
59
|
+
inbound: {
|
60
|
+
configProfileUuid: string | null;
|
61
|
+
configProfileInboundUuid: string | null;
|
62
|
+
};
|
53
63
|
xHttpExtraParams?: unknown;
|
54
64
|
}, {
|
55
65
|
path: string | null;
|
@@ -62,8 +72,10 @@ export declare namespace SetPortToManyHostsCommand {
|
|
62
72
|
host: string | null;
|
63
73
|
alpn: string | null;
|
64
74
|
fingerprint: string | null;
|
65
|
-
|
66
|
-
|
75
|
+
inbound: {
|
76
|
+
configProfileUuid: string | null;
|
77
|
+
configProfileInboundUuid: string | null;
|
78
|
+
};
|
67
79
|
isDisabled?: boolean | undefined;
|
68
80
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
69
81
|
xHttpExtraParams?: unknown;
|
@@ -82,8 +94,10 @@ export declare namespace SetPortToManyHostsCommand {
|
|
82
94
|
fingerprint: string | null;
|
83
95
|
isDisabled: boolean;
|
84
96
|
securityLayer: "DEFAULT" | "TLS" | "NONE";
|
85
|
-
|
86
|
-
|
97
|
+
inbound: {
|
98
|
+
configProfileUuid: string | null;
|
99
|
+
configProfileInboundUuid: string | null;
|
100
|
+
};
|
87
101
|
xHttpExtraParams?: unknown;
|
88
102
|
}[];
|
89
103
|
}, {
|
@@ -98,8 +112,10 @@ export declare namespace SetPortToManyHostsCommand {
|
|
98
112
|
host: string | null;
|
99
113
|
alpn: string | null;
|
100
114
|
fingerprint: string | null;
|
101
|
-
|
102
|
-
|
115
|
+
inbound: {
|
116
|
+
configProfileUuid: string | null;
|
117
|
+
configProfileInboundUuid: string | null;
|
118
|
+
};
|
103
119
|
isDisabled?: boolean | undefined;
|
104
120
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
105
121
|
xHttpExtraParams?: unknown;
|
@@ -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"}
|
@@ -4,8 +4,16 @@ export declare namespace CreateHostCommand {
|
|
4
4
|
const TSQ_url: "/api/hosts/";
|
5
5
|
const endpointDetails: import("../../constants").EndpointDetails;
|
6
6
|
const RequestSchema: z.ZodObject<{
|
7
|
-
|
8
|
-
|
7
|
+
inbound: z.ZodObject<{
|
8
|
+
configProfileUuid: z.ZodString;
|
9
|
+
configProfileInboundUuid: z.ZodString;
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
11
|
+
configProfileUuid: string;
|
12
|
+
configProfileInboundUuid: string;
|
13
|
+
}, {
|
14
|
+
configProfileUuid: string;
|
15
|
+
configProfileInboundUuid: string;
|
16
|
+
}>;
|
9
17
|
remark: z.ZodString;
|
10
18
|
address: z.ZodString;
|
11
19
|
port: z.ZodNumber;
|
@@ -31,7 +39,6 @@ export declare namespace CreateHostCommand {
|
|
31
39
|
readonly RANDOM: "random";
|
32
40
|
readonly RANDOMIZED: "randomized";
|
33
41
|
}>>>;
|
34
|
-
allowInsecure: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
35
42
|
isDisabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
36
43
|
securityLayer: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<{
|
37
44
|
readonly DEFAULT: "DEFAULT";
|
@@ -43,6 +50,10 @@ export declare namespace CreateHostCommand {
|
|
43
50
|
port: number;
|
44
51
|
remark: string;
|
45
52
|
address: string;
|
53
|
+
inbound: {
|
54
|
+
configProfileUuid: string;
|
55
|
+
configProfileInboundUuid: string;
|
56
|
+
};
|
46
57
|
path?: string | undefined;
|
47
58
|
sni?: string | undefined;
|
48
59
|
host?: string | undefined;
|
@@ -51,13 +62,14 @@ export declare namespace CreateHostCommand {
|
|
51
62
|
isDisabled?: boolean | undefined;
|
52
63
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
53
64
|
xHttpExtraParams?: unknown;
|
54
|
-
configProfileUuid?: string | undefined;
|
55
|
-
configProfileInboundUuid?: string | undefined;
|
56
|
-
allowInsecure?: boolean | undefined;
|
57
65
|
}, {
|
58
66
|
port: number;
|
59
67
|
remark: string;
|
60
68
|
address: string;
|
69
|
+
inbound: {
|
70
|
+
configProfileUuid: string;
|
71
|
+
configProfileInboundUuid: string;
|
72
|
+
};
|
61
73
|
path?: string | undefined;
|
62
74
|
sni?: string | undefined;
|
63
75
|
host?: string | undefined;
|
@@ -66,9 +78,6 @@ export declare namespace CreateHostCommand {
|
|
66
78
|
isDisabled?: boolean | undefined;
|
67
79
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
68
80
|
xHttpExtraParams?: unknown;
|
69
|
-
configProfileUuid?: string | undefined;
|
70
|
-
configProfileInboundUuid?: string | undefined;
|
71
|
-
allowInsecure?: boolean | undefined;
|
72
81
|
}>;
|
73
82
|
type Request = z.infer<typeof RequestSchema>;
|
74
83
|
const ResponseSchema: z.ZodObject<{
|
@@ -90,8 +99,16 @@ export declare namespace CreateHostCommand {
|
|
90
99
|
readonly NONE: "NONE";
|
91
100
|
}>>;
|
92
101
|
xHttpExtraParams: z.ZodNullable<z.ZodUnknown>;
|
93
|
-
|
94
|
-
|
102
|
+
inbound: z.ZodObject<{
|
103
|
+
configProfileUuid: z.ZodNullable<z.ZodString>;
|
104
|
+
configProfileInboundUuid: z.ZodNullable<z.ZodString>;
|
105
|
+
}, "strip", z.ZodTypeAny, {
|
106
|
+
configProfileUuid: string | null;
|
107
|
+
configProfileInboundUuid: string | null;
|
108
|
+
}, {
|
109
|
+
configProfileUuid: string | null;
|
110
|
+
configProfileInboundUuid: string | null;
|
111
|
+
}>;
|
95
112
|
}, "strip", z.ZodTypeAny, {
|
96
113
|
path: string | null;
|
97
114
|
uuid: string;
|
@@ -105,8 +122,10 @@ export declare namespace CreateHostCommand {
|
|
105
122
|
fingerprint: string | null;
|
106
123
|
isDisabled: boolean;
|
107
124
|
securityLayer: "DEFAULT" | "TLS" | "NONE";
|
108
|
-
|
109
|
-
|
125
|
+
inbound: {
|
126
|
+
configProfileUuid: string | null;
|
127
|
+
configProfileInboundUuid: string | null;
|
128
|
+
};
|
110
129
|
xHttpExtraParams?: unknown;
|
111
130
|
}, {
|
112
131
|
path: string | null;
|
@@ -119,8 +138,10 @@ export declare namespace CreateHostCommand {
|
|
119
138
|
host: string | null;
|
120
139
|
alpn: string | null;
|
121
140
|
fingerprint: string | null;
|
122
|
-
|
123
|
-
|
141
|
+
inbound: {
|
142
|
+
configProfileUuid: string | null;
|
143
|
+
configProfileInboundUuid: string | null;
|
144
|
+
};
|
124
145
|
isDisabled?: boolean | undefined;
|
125
146
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
126
147
|
xHttpExtraParams?: unknown;
|
@@ -139,8 +160,10 @@ export declare namespace CreateHostCommand {
|
|
139
160
|
fingerprint: string | null;
|
140
161
|
isDisabled: boolean;
|
141
162
|
securityLayer: "DEFAULT" | "TLS" | "NONE";
|
142
|
-
|
143
|
-
|
163
|
+
inbound: {
|
164
|
+
configProfileUuid: string | null;
|
165
|
+
configProfileInboundUuid: string | null;
|
166
|
+
};
|
144
167
|
xHttpExtraParams?: unknown;
|
145
168
|
};
|
146
169
|
}, {
|
@@ -155,8 +178,10 @@ export declare namespace CreateHostCommand {
|
|
155
178
|
host: string | null;
|
156
179
|
alpn: string | null;
|
157
180
|
fingerprint: string | null;
|
158
|
-
|
159
|
-
|
181
|
+
inbound: {
|
182
|
+
configProfileUuid: string | null;
|
183
|
+
configProfileInboundUuid: string | null;
|
184
|
+
};
|
160
185
|
isDisabled?: boolean | undefined;
|
161
186
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
162
187
|
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;AAMxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,eAAwB,CAAC;IAClC,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa
|
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;AAMxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,eAAwB,CAAC;IAClC,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAgCxB,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"}
|
@@ -11,21 +11,16 @@ var CreateHostCommand;
|
|
11
11
|
CreateHostCommand.TSQ_url = CreateHostCommand.url;
|
12
12
|
CreateHostCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.HOSTS_ROUTES.CREATE, 'post', 'Create a new host');
|
13
13
|
CreateHostCommand.RequestSchema = zod_1.z.object({
|
14
|
-
|
15
|
-
.string(
|
16
|
-
|
17
|
-
})
|
18
|
-
.uuid('Config Profile UUID must be a valid UUID')
|
19
|
-
.optional(),
|
20
|
-
configProfileInboundUuid: zod_1.z
|
21
|
-
.string({
|
22
|
-
invalid_type_error: 'Inbound UUID must be a string',
|
23
|
-
})
|
24
|
-
.uuid('Inbound UUID must be a valid UUID')
|
25
|
-
.optional(),
|
14
|
+
inbound: zod_1.z.object({
|
15
|
+
configProfileUuid: zod_1.z.string().uuid(),
|
16
|
+
configProfileInboundUuid: zod_1.z.string().uuid(),
|
17
|
+
}),
|
26
18
|
remark: zod_1.z
|
27
19
|
.string({
|
28
20
|
invalid_type_error: 'Remark must be a string',
|
21
|
+
})
|
22
|
+
.min(1, {
|
23
|
+
message: 'Remark must be at least 1 character',
|
29
24
|
})
|
30
25
|
.max(40, {
|
31
26
|
message: 'Remark must be less than 40 characters',
|
@@ -43,7 +38,6 @@ var CreateHostCommand;
|
|
43
38
|
host: zod_1.z.string().optional(),
|
44
39
|
alpn: zod_1.z.optional(zod_1.z.nativeEnum(constants_1.ALPN).nullable()),
|
45
40
|
fingerprint: zod_1.z.optional(zod_1.z.nativeEnum(constants_1.FINGERPRINTS).nullable()),
|
46
|
-
allowInsecure: zod_1.z.optional(zod_1.z.boolean().default(false)),
|
47
41
|
isDisabled: zod_1.z.optional(zod_1.z.boolean().default(false)),
|
48
42
|
securityLayer: zod_1.z.optional(zod_1.z.nativeEnum(constants_1.SECURITY_LAYERS).default(constants_1.SECURITY_LAYERS.DEFAULT)),
|
49
43
|
xHttpExtraParams: zod_1.z.optional(zod_1.z.nullable(zod_1.z.unknown())),
|
@@ -22,8 +22,16 @@ export declare namespace GetAllHostsCommand {
|
|
22
22
|
readonly NONE: "NONE";
|
23
23
|
}>>;
|
24
24
|
xHttpExtraParams: z.ZodNullable<z.ZodUnknown>;
|
25
|
-
|
26
|
-
|
25
|
+
inbound: z.ZodObject<{
|
26
|
+
configProfileUuid: z.ZodNullable<z.ZodString>;
|
27
|
+
configProfileInboundUuid: z.ZodNullable<z.ZodString>;
|
28
|
+
}, "strip", z.ZodTypeAny, {
|
29
|
+
configProfileUuid: string | null;
|
30
|
+
configProfileInboundUuid: string | null;
|
31
|
+
}, {
|
32
|
+
configProfileUuid: string | null;
|
33
|
+
configProfileInboundUuid: string | null;
|
34
|
+
}>;
|
27
35
|
}, "strip", z.ZodTypeAny, {
|
28
36
|
path: string | null;
|
29
37
|
uuid: string;
|
@@ -37,8 +45,10 @@ export declare namespace GetAllHostsCommand {
|
|
37
45
|
fingerprint: string | null;
|
38
46
|
isDisabled: boolean;
|
39
47
|
securityLayer: "DEFAULT" | "TLS" | "NONE";
|
40
|
-
|
41
|
-
|
48
|
+
inbound: {
|
49
|
+
configProfileUuid: string | null;
|
50
|
+
configProfileInboundUuid: string | null;
|
51
|
+
};
|
42
52
|
xHttpExtraParams?: unknown;
|
43
53
|
}, {
|
44
54
|
path: string | null;
|
@@ -51,8 +61,10 @@ export declare namespace GetAllHostsCommand {
|
|
51
61
|
host: string | null;
|
52
62
|
alpn: string | null;
|
53
63
|
fingerprint: string | null;
|
54
|
-
|
55
|
-
|
64
|
+
inbound: {
|
65
|
+
configProfileUuid: string | null;
|
66
|
+
configProfileInboundUuid: string | null;
|
67
|
+
};
|
56
68
|
isDisabled?: boolean | undefined;
|
57
69
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
58
70
|
xHttpExtraParams?: unknown;
|
@@ -71,8 +83,10 @@ export declare namespace GetAllHostsCommand {
|
|
71
83
|
fingerprint: string | null;
|
72
84
|
isDisabled: boolean;
|
73
85
|
securityLayer: "DEFAULT" | "TLS" | "NONE";
|
74
|
-
|
75
|
-
|
86
|
+
inbound: {
|
87
|
+
configProfileUuid: string | null;
|
88
|
+
configProfileInboundUuid: string | null;
|
89
|
+
};
|
76
90
|
xHttpExtraParams?: unknown;
|
77
91
|
}[];
|
78
92
|
}, {
|
@@ -87,8 +101,10 @@ export declare namespace GetAllHostsCommand {
|
|
87
101
|
host: string | null;
|
88
102
|
alpn: string | null;
|
89
103
|
fingerprint: string | null;
|
90
|
-
|
91
|
-
|
104
|
+
inbound: {
|
105
|
+
configProfileUuid: string | null;
|
106
|
+
configProfileInboundUuid: string | null;
|
107
|
+
};
|
92
108
|
isDisabled?: boolean | undefined;
|
93
109
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
94
110
|
xHttpExtraParams?: unknown;
|
@@ -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"}
|
@@ -30,8 +30,16 @@ export declare namespace GetOneHostCommand {
|
|
30
30
|
readonly NONE: "NONE";
|
31
31
|
}>>;
|
32
32
|
xHttpExtraParams: z.ZodNullable<z.ZodUnknown>;
|
33
|
-
|
34
|
-
|
33
|
+
inbound: z.ZodObject<{
|
34
|
+
configProfileUuid: z.ZodNullable<z.ZodString>;
|
35
|
+
configProfileInboundUuid: z.ZodNullable<z.ZodString>;
|
36
|
+
}, "strip", z.ZodTypeAny, {
|
37
|
+
configProfileUuid: string | null;
|
38
|
+
configProfileInboundUuid: string | null;
|
39
|
+
}, {
|
40
|
+
configProfileUuid: string | null;
|
41
|
+
configProfileInboundUuid: string | null;
|
42
|
+
}>;
|
35
43
|
}, "strip", z.ZodTypeAny, {
|
36
44
|
path: string | null;
|
37
45
|
uuid: string;
|
@@ -45,8 +53,10 @@ export declare namespace GetOneHostCommand {
|
|
45
53
|
fingerprint: string | null;
|
46
54
|
isDisabled: boolean;
|
47
55
|
securityLayer: "DEFAULT" | "TLS" | "NONE";
|
48
|
-
|
49
|
-
|
56
|
+
inbound: {
|
57
|
+
configProfileUuid: string | null;
|
58
|
+
configProfileInboundUuid: string | null;
|
59
|
+
};
|
50
60
|
xHttpExtraParams?: unknown;
|
51
61
|
}, {
|
52
62
|
path: string | null;
|
@@ -59,8 +69,10 @@ export declare namespace GetOneHostCommand {
|
|
59
69
|
host: string | null;
|
60
70
|
alpn: string | null;
|
61
71
|
fingerprint: string | null;
|
62
|
-
|
63
|
-
|
72
|
+
inbound: {
|
73
|
+
configProfileUuid: string | null;
|
74
|
+
configProfileInboundUuid: string | null;
|
75
|
+
};
|
64
76
|
isDisabled?: boolean | undefined;
|
65
77
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
66
78
|
xHttpExtraParams?: unknown;
|
@@ -79,8 +91,10 @@ export declare namespace GetOneHostCommand {
|
|
79
91
|
fingerprint: string | null;
|
80
92
|
isDisabled: boolean;
|
81
93
|
securityLayer: "DEFAULT" | "TLS" | "NONE";
|
82
|
-
|
83
|
-
|
94
|
+
inbound: {
|
95
|
+
configProfileUuid: string | null;
|
96
|
+
configProfileInboundUuid: string | null;
|
97
|
+
};
|
84
98
|
xHttpExtraParams?: unknown;
|
85
99
|
};
|
86
100
|
}, {
|
@@ -95,8 +109,10 @@ export declare namespace GetOneHostCommand {
|
|
95
109
|
host: string | null;
|
96
110
|
alpn: string | null;
|
97
111
|
fingerprint: string | null;
|
98
|
-
|
99
|
-
|
112
|
+
inbound: {
|
113
|
+
configProfileUuid: string | null;
|
114
|
+
configProfileInboundUuid: string | null;
|
115
|
+
};
|
100
116
|
isDisabled?: boolean | undefined;
|
101
117
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
102
118
|
xHttpExtraParams?: unknown;
|
@@ -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"}
|
@@ -22,8 +22,16 @@ export declare namespace ReorderHostCommand {
|
|
22
22
|
readonly NONE: "NONE";
|
23
23
|
}>>;
|
24
24
|
xHttpExtraParams: z.ZodNullable<z.ZodUnknown>;
|
25
|
-
|
26
|
-
|
25
|
+
inbound: z.ZodObject<{
|
26
|
+
configProfileUuid: z.ZodNullable<z.ZodString>;
|
27
|
+
configProfileInboundUuid: z.ZodNullable<z.ZodString>;
|
28
|
+
}, "strip", z.ZodTypeAny, {
|
29
|
+
configProfileUuid: string | null;
|
30
|
+
configProfileInboundUuid: string | null;
|
31
|
+
}, {
|
32
|
+
configProfileUuid: string | null;
|
33
|
+
configProfileInboundUuid: string | null;
|
34
|
+
}>;
|
27
35
|
}, "uuid" | "viewPosition">, "strip", z.ZodTypeAny, {
|
28
36
|
uuid: string;
|
29
37
|
viewPosition: number;
|
@@ -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"}
|
@@ -21,11 +21,27 @@ export declare namespace UpdateHostCommand {
|
|
21
21
|
readonly NONE: "NONE";
|
22
22
|
}>>;
|
23
23
|
xHttpExtraParams: z.ZodNullable<z.ZodUnknown>;
|
24
|
-
|
25
|
-
|
24
|
+
inbound: z.ZodObject<{
|
25
|
+
configProfileUuid: z.ZodNullable<z.ZodString>;
|
26
|
+
configProfileInboundUuid: z.ZodNullable<z.ZodString>;
|
27
|
+
}, "strip", z.ZodTypeAny, {
|
28
|
+
configProfileUuid: string | null;
|
29
|
+
configProfileInboundUuid: string | null;
|
30
|
+
}, {
|
31
|
+
configProfileUuid: string | null;
|
32
|
+
configProfileInboundUuid: string | null;
|
33
|
+
}>;
|
26
34
|
}, "uuid"> & {
|
27
|
-
|
28
|
-
|
35
|
+
inbound: z.ZodOptional<z.ZodObject<{
|
36
|
+
configProfileUuid: z.ZodString;
|
37
|
+
configProfileInboundUuid: z.ZodString;
|
38
|
+
}, "strip", z.ZodTypeAny, {
|
39
|
+
configProfileUuid: string;
|
40
|
+
configProfileInboundUuid: string;
|
41
|
+
}, {
|
42
|
+
configProfileUuid: string;
|
43
|
+
configProfileInboundUuid: string;
|
44
|
+
}>>;
|
29
45
|
remark: z.ZodOptional<z.ZodString>;
|
30
46
|
address: z.ZodOptional<z.ZodString>;
|
31
47
|
port: z.ZodOptional<z.ZodNumber>;
|
@@ -51,7 +67,6 @@ export declare namespace UpdateHostCommand {
|
|
51
67
|
readonly RANDOM: "random";
|
52
68
|
readonly RANDOMIZED: "randomized";
|
53
69
|
}>>>;
|
54
|
-
allowInsecure: z.ZodOptional<z.ZodBoolean>;
|
55
70
|
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
56
71
|
securityLayer: z.ZodOptional<z.ZodNativeEnum<{
|
57
72
|
readonly DEFAULT: "DEFAULT";
|
@@ -72,9 +87,10 @@ export declare namespace UpdateHostCommand {
|
|
72
87
|
isDisabled?: boolean | undefined;
|
73
88
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
74
89
|
xHttpExtraParams?: unknown;
|
75
|
-
|
76
|
-
|
77
|
-
|
90
|
+
inbound?: {
|
91
|
+
configProfileUuid: string;
|
92
|
+
configProfileInboundUuid: string;
|
93
|
+
} | undefined;
|
78
94
|
}, {
|
79
95
|
uuid: string;
|
80
96
|
path?: string | undefined;
|
@@ -88,9 +104,10 @@ export declare namespace UpdateHostCommand {
|
|
88
104
|
isDisabled?: boolean | undefined;
|
89
105
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
90
106
|
xHttpExtraParams?: unknown;
|
91
|
-
|
92
|
-
|
93
|
-
|
107
|
+
inbound?: {
|
108
|
+
configProfileUuid: string;
|
109
|
+
configProfileInboundUuid: string;
|
110
|
+
} | undefined;
|
94
111
|
}>;
|
95
112
|
type Request = z.infer<typeof RequestSchema>;
|
96
113
|
const ResponseSchema: z.ZodObject<{
|
@@ -112,8 +129,16 @@ export declare namespace UpdateHostCommand {
|
|
112
129
|
readonly NONE: "NONE";
|
113
130
|
}>>;
|
114
131
|
xHttpExtraParams: z.ZodNullable<z.ZodUnknown>;
|
115
|
-
|
116
|
-
|
132
|
+
inbound: z.ZodObject<{
|
133
|
+
configProfileUuid: z.ZodNullable<z.ZodString>;
|
134
|
+
configProfileInboundUuid: z.ZodNullable<z.ZodString>;
|
135
|
+
}, "strip", z.ZodTypeAny, {
|
136
|
+
configProfileUuid: string | null;
|
137
|
+
configProfileInboundUuid: string | null;
|
138
|
+
}, {
|
139
|
+
configProfileUuid: string | null;
|
140
|
+
configProfileInboundUuid: string | null;
|
141
|
+
}>;
|
117
142
|
}, "strip", z.ZodTypeAny, {
|
118
143
|
path: string | null;
|
119
144
|
uuid: string;
|
@@ -127,8 +152,10 @@ export declare namespace UpdateHostCommand {
|
|
127
152
|
fingerprint: string | null;
|
128
153
|
isDisabled: boolean;
|
129
154
|
securityLayer: "DEFAULT" | "TLS" | "NONE";
|
130
|
-
|
131
|
-
|
155
|
+
inbound: {
|
156
|
+
configProfileUuid: string | null;
|
157
|
+
configProfileInboundUuid: string | null;
|
158
|
+
};
|
132
159
|
xHttpExtraParams?: unknown;
|
133
160
|
}, {
|
134
161
|
path: string | null;
|
@@ -141,8 +168,10 @@ export declare namespace UpdateHostCommand {
|
|
141
168
|
host: string | null;
|
142
169
|
alpn: string | null;
|
143
170
|
fingerprint: string | null;
|
144
|
-
|
145
|
-
|
171
|
+
inbound: {
|
172
|
+
configProfileUuid: string | null;
|
173
|
+
configProfileInboundUuid: string | null;
|
174
|
+
};
|
146
175
|
isDisabled?: boolean | undefined;
|
147
176
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
148
177
|
xHttpExtraParams?: unknown;
|
@@ -161,8 +190,10 @@ export declare namespace UpdateHostCommand {
|
|
161
190
|
fingerprint: string | null;
|
162
191
|
isDisabled: boolean;
|
163
192
|
securityLayer: "DEFAULT" | "TLS" | "NONE";
|
164
|
-
|
165
|
-
|
193
|
+
inbound: {
|
194
|
+
configProfileUuid: string | null;
|
195
|
+
configProfileInboundUuid: string | null;
|
196
|
+
};
|
166
197
|
xHttpExtraParams?: unknown;
|
167
198
|
};
|
168
199
|
}, {
|
@@ -177,8 +208,10 @@ export declare namespace UpdateHostCommand {
|
|
177
208
|
host: string | null;
|
178
209
|
alpn: string | null;
|
179
210
|
fingerprint: string | null;
|
180
|
-
|
181
|
-
|
211
|
+
inbound: {
|
212
|
+
configProfileUuid: string | null;
|
213
|
+
configProfileInboundUuid: string | null;
|
214
|
+
};
|
182
215
|
isDisabled?: boolean | undefined;
|
183
216
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
184
217
|
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;AAMxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,eAAwB,CAAC;IAClC,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa
|
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;AAMxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,eAAwB,CAAC;IAClC,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAoCxB,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"}
|
@@ -13,17 +13,11 @@ var UpdateHostCommand;
|
|
13
13
|
UpdateHostCommand.RequestSchema = models_1.HostsSchema.pick({
|
14
14
|
uuid: true,
|
15
15
|
}).extend({
|
16
|
-
|
17
|
-
.
|
18
|
-
|
19
|
-
|
20
|
-
.uuid('Config Profile UUID must be a valid UUID')
|
21
|
-
.optional(),
|
22
|
-
configProfileInboundUuid: zod_1.z
|
23
|
-
.string({
|
24
|
-
invalid_type_error: 'Inbound UUID must be a string',
|
16
|
+
inbound: zod_1.z
|
17
|
+
.object({
|
18
|
+
configProfileUuid: zod_1.z.string().uuid(),
|
19
|
+
configProfileInboundUuid: zod_1.z.string().uuid(),
|
25
20
|
})
|
26
|
-
.uuid('Inbound UUID must be a valid UUID')
|
27
21
|
.optional(),
|
28
22
|
remark: zod_1.z
|
29
23
|
.string({
|
@@ -49,7 +43,6 @@ var UpdateHostCommand;
|
|
49
43
|
host: zod_1.z.optional(zod_1.z.string()),
|
50
44
|
alpn: zod_1.z.optional(zod_1.z.nativeEnum(constants_1.ALPN).nullable()),
|
51
45
|
fingerprint: zod_1.z.optional(zod_1.z.nativeEnum(constants_1.FINGERPRINTS).nullable()),
|
52
|
-
allowInsecure: zod_1.z.optional(zod_1.z.boolean()),
|
53
46
|
isDisabled: zod_1.z.optional(zod_1.z.boolean()),
|
54
47
|
securityLayer: zod_1.z.optional(zod_1.z.nativeEnum(constants_1.SECURITY_LAYERS)),
|
55
48
|
xHttpExtraParams: zod_1.z.optional(zod_1.z.nullable(zod_1.z.unknown())),
|
@@ -17,8 +17,16 @@ export declare const HostsSchema: z.ZodObject<{
|
|
17
17
|
readonly NONE: "NONE";
|
18
18
|
}>>;
|
19
19
|
xHttpExtraParams: z.ZodNullable<z.ZodUnknown>;
|
20
|
-
|
21
|
-
|
20
|
+
inbound: z.ZodObject<{
|
21
|
+
configProfileUuid: z.ZodNullable<z.ZodString>;
|
22
|
+
configProfileInboundUuid: z.ZodNullable<z.ZodString>;
|
23
|
+
}, "strip", z.ZodTypeAny, {
|
24
|
+
configProfileUuid: string | null;
|
25
|
+
configProfileInboundUuid: string | null;
|
26
|
+
}, {
|
27
|
+
configProfileUuid: string | null;
|
28
|
+
configProfileInboundUuid: string | null;
|
29
|
+
}>;
|
22
30
|
}, "strip", z.ZodTypeAny, {
|
23
31
|
path: string | null;
|
24
32
|
uuid: string;
|
@@ -32,8 +40,10 @@ export declare const HostsSchema: z.ZodObject<{
|
|
32
40
|
fingerprint: string | null;
|
33
41
|
isDisabled: boolean;
|
34
42
|
securityLayer: "DEFAULT" | "TLS" | "NONE";
|
35
|
-
|
36
|
-
|
43
|
+
inbound: {
|
44
|
+
configProfileUuid: string | null;
|
45
|
+
configProfileInboundUuid: string | null;
|
46
|
+
};
|
37
47
|
xHttpExtraParams?: unknown;
|
38
48
|
}, {
|
39
49
|
path: string | null;
|
@@ -46,8 +56,10 @@ export declare const HostsSchema: z.ZodObject<{
|
|
46
56
|
host: string | null;
|
47
57
|
alpn: string | null;
|
48
58
|
fingerprint: string | null;
|
49
|
-
|
50
|
-
|
59
|
+
inbound: {
|
60
|
+
configProfileUuid: string | null;
|
61
|
+
configProfileInboundUuid: string | null;
|
62
|
+
};
|
51
63
|
isDisabled?: boolean | undefined;
|
52
64
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
53
65
|
xHttpExtraParams?: unknown;
|
@@ -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;AAIxB,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;AAIxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmBtB,CAAC"}
|
@@ -17,6 +17,8 @@ exports.HostsSchema = zod_1.z.object({
|
|
17
17
|
isDisabled: zod_1.z.boolean().default(false),
|
18
18
|
securityLayer: zod_1.z.nativeEnum(hosts_1.SECURITY_LAYERS).default(hosts_1.SECURITY_LAYERS.DEFAULT),
|
19
19
|
xHttpExtraParams: zod_1.z.nullable(zod_1.z.unknown()),
|
20
|
-
|
21
|
-
|
20
|
+
inbound: zod_1.z.object({
|
21
|
+
configProfileUuid: zod_1.z.string().uuid().nullable(),
|
22
|
+
configProfileInboundUuid: zod_1.z.string().uuid().nullable(),
|
23
|
+
}),
|
22
24
|
});
|
@@ -11,21 +11,16 @@ var CreateHostCommand;
|
|
11
11
|
CreateHostCommand.TSQ_url = CreateHostCommand.url;
|
12
12
|
CreateHostCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.HOSTS_ROUTES.CREATE, 'post', 'Create a new host');
|
13
13
|
CreateHostCommand.RequestSchema = zod_1.z.object({
|
14
|
-
|
15
|
-
.string(
|
16
|
-
|
17
|
-
})
|
18
|
-
.uuid('Config Profile UUID must be a valid UUID')
|
19
|
-
.optional(),
|
20
|
-
configProfileInboundUuid: zod_1.z
|
21
|
-
.string({
|
22
|
-
invalid_type_error: 'Inbound UUID must be a string',
|
23
|
-
})
|
24
|
-
.uuid('Inbound UUID must be a valid UUID')
|
25
|
-
.optional(),
|
14
|
+
inbound: zod_1.z.object({
|
15
|
+
configProfileUuid: zod_1.z.string().uuid(),
|
16
|
+
configProfileInboundUuid: zod_1.z.string().uuid(),
|
17
|
+
}),
|
26
18
|
remark: zod_1.z
|
27
19
|
.string({
|
28
20
|
invalid_type_error: 'Remark must be a string',
|
21
|
+
})
|
22
|
+
.min(1, {
|
23
|
+
message: 'Remark must be at least 1 character',
|
29
24
|
})
|
30
25
|
.max(40, {
|
31
26
|
message: 'Remark must be less than 40 characters',
|
@@ -43,7 +38,6 @@ var CreateHostCommand;
|
|
43
38
|
host: zod_1.z.string().optional(),
|
44
39
|
alpn: zod_1.z.optional(zod_1.z.nativeEnum(constants_1.ALPN).nullable()),
|
45
40
|
fingerprint: zod_1.z.optional(zod_1.z.nativeEnum(constants_1.FINGERPRINTS).nullable()),
|
46
|
-
allowInsecure: zod_1.z.optional(zod_1.z.boolean().default(false)),
|
47
41
|
isDisabled: zod_1.z.optional(zod_1.z.boolean().default(false)),
|
48
42
|
securityLayer: zod_1.z.optional(zod_1.z.nativeEnum(constants_1.SECURITY_LAYERS).default(constants_1.SECURITY_LAYERS.DEFAULT)),
|
49
43
|
xHttpExtraParams: zod_1.z.optional(zod_1.z.nullable(zod_1.z.unknown())),
|
@@ -13,17 +13,11 @@ var UpdateHostCommand;
|
|
13
13
|
UpdateHostCommand.RequestSchema = models_1.HostsSchema.pick({
|
14
14
|
uuid: true,
|
15
15
|
}).extend({
|
16
|
-
|
17
|
-
.
|
18
|
-
|
19
|
-
|
20
|
-
.uuid('Config Profile UUID must be a valid UUID')
|
21
|
-
.optional(),
|
22
|
-
configProfileInboundUuid: zod_1.z
|
23
|
-
.string({
|
24
|
-
invalid_type_error: 'Inbound UUID must be a string',
|
16
|
+
inbound: zod_1.z
|
17
|
+
.object({
|
18
|
+
configProfileUuid: zod_1.z.string().uuid(),
|
19
|
+
configProfileInboundUuid: zod_1.z.string().uuid(),
|
25
20
|
})
|
26
|
-
.uuid('Inbound UUID must be a valid UUID')
|
27
21
|
.optional(),
|
28
22
|
remark: zod_1.z
|
29
23
|
.string({
|
@@ -49,7 +43,6 @@ var UpdateHostCommand;
|
|
49
43
|
host: zod_1.z.optional(zod_1.z.string()),
|
50
44
|
alpn: zod_1.z.optional(zod_1.z.nativeEnum(constants_1.ALPN).nullable()),
|
51
45
|
fingerprint: zod_1.z.optional(zod_1.z.nativeEnum(constants_1.FINGERPRINTS).nullable()),
|
52
|
-
allowInsecure: zod_1.z.optional(zod_1.z.boolean()),
|
53
46
|
isDisabled: zod_1.z.optional(zod_1.z.boolean()),
|
54
47
|
securityLayer: zod_1.z.optional(zod_1.z.nativeEnum(constants_1.SECURITY_LAYERS)),
|
55
48
|
xHttpExtraParams: zod_1.z.optional(zod_1.z.nullable(zod_1.z.unknown())),
|
@@ -17,6 +17,8 @@ exports.HostsSchema = zod_1.z.object({
|
|
17
17
|
isDisabled: zod_1.z.boolean().default(false),
|
18
18
|
securityLayer: zod_1.z.nativeEnum(hosts_1.SECURITY_LAYERS).default(hosts_1.SECURITY_LAYERS.DEFAULT),
|
19
19
|
xHttpExtraParams: zod_1.z.nullable(zod_1.z.unknown()),
|
20
|
-
|
21
|
-
|
20
|
+
inbound: zod_1.z.object({
|
21
|
+
configProfileUuid: zod_1.z.string().uuid().nullable(),
|
22
|
+
configProfileInboundUuid: zod_1.z.string().uuid().nullable(),
|
23
|
+
}),
|
22
24
|
});
|
package/package.json
CHANGED