@remnawave/backend-contract 0.3.28 → 0.3.29
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/create.command.d.ts +6 -6
- package/build/backend/commands/hosts/create.command.js +1 -1
- package/build/backend/commands/hosts/get-all.command.d.ts +4 -4
- package/build/backend/commands/hosts/get-one.command.d.ts +4 -4
- package/build/backend/commands/hosts/reorder.command.d.ts +2 -2
- package/build/backend/commands/hosts/update.command.d.ts +6 -6
- package/build/backend/models/hosts.schema.d.ts +3 -3
- package/build/backend/models/hosts.schema.js +1 -1
- package/build/frontend/commands/hosts/create.command.js +1 -1
- package/build/frontend/models/hosts.schema.js +1 -1
- package/package.json +1 -1
@@ -28,11 +28,11 @@ export declare namespace CreateHostCommand {
|
|
28
28
|
}>>>;
|
29
29
|
allowInsecure: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
30
30
|
isDisabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
31
|
-
securityLayer: z.ZodOptional<z.ZodNativeEnum<{
|
31
|
+
securityLayer: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<{
|
32
32
|
readonly DEFAULT: "DEFAULT";
|
33
33
|
readonly TLS: "TLS";
|
34
34
|
readonly NONE: "NONE";
|
35
|
-
}
|
35
|
+
}>>>;
|
36
36
|
}, "strip", z.ZodTypeAny, {
|
37
37
|
inboundUuid: string;
|
38
38
|
remark: string;
|
@@ -76,11 +76,11 @@ export declare namespace CreateHostCommand {
|
|
76
76
|
fingerprint: z.ZodNullable<z.ZodString>;
|
77
77
|
allowInsecure: z.ZodDefault<z.ZodBoolean>;
|
78
78
|
isDisabled: z.ZodDefault<z.ZodBoolean>;
|
79
|
-
securityLayer: z.ZodNativeEnum<{
|
79
|
+
securityLayer: z.ZodDefault<z.ZodNativeEnum<{
|
80
80
|
readonly DEFAULT: "DEFAULT";
|
81
81
|
readonly TLS: "TLS";
|
82
82
|
readonly NONE: "NONE";
|
83
|
-
}
|
83
|
+
}>>;
|
84
84
|
}, "strip", z.ZodTypeAny, {
|
85
85
|
uuid: string;
|
86
86
|
path: string | null;
|
@@ -108,9 +108,9 @@ export declare namespace CreateHostCommand {
|
|
108
108
|
host: string | null;
|
109
109
|
alpn: string | null;
|
110
110
|
fingerprint: string | null;
|
111
|
-
securityLayer: "DEFAULT" | "TLS" | "NONE";
|
112
111
|
allowInsecure?: boolean | undefined;
|
113
112
|
isDisabled?: boolean | undefined;
|
113
|
+
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
114
114
|
}>;
|
115
115
|
}, "strip", z.ZodTypeAny, {
|
116
116
|
response: {
|
@@ -142,9 +142,9 @@ export declare namespace CreateHostCommand {
|
|
142
142
|
host: string | null;
|
143
143
|
alpn: string | null;
|
144
144
|
fingerprint: string | null;
|
145
|
-
securityLayer: "DEFAULT" | "TLS" | "NONE";
|
146
145
|
allowInsecure?: boolean | undefined;
|
147
146
|
isDisabled?: boolean | undefined;
|
147
|
+
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
148
148
|
};
|
149
149
|
}>;
|
150
150
|
type Response = z.infer<typeof ResponseSchema>;
|
@@ -37,7 +37,7 @@ var CreateHostCommand;
|
|
37
37
|
fingerprint: zod_1.z.optional(zod_1.z.nativeEnum(hosts_1.FINGERPRINTS).nullable()),
|
38
38
|
allowInsecure: zod_1.z.optional(zod_1.z.boolean().default(false)),
|
39
39
|
isDisabled: zod_1.z.optional(zod_1.z.boolean().default(false)),
|
40
|
-
securityLayer: zod_1.z.optional(zod_1.z.nativeEnum(hosts_1.SECURITY_LAYERS)),
|
40
|
+
securityLayer: zod_1.z.optional(zod_1.z.nativeEnum(hosts_1.SECURITY_LAYERS).default(hosts_1.SECURITY_LAYERS.DEFAULT)),
|
41
41
|
});
|
42
42
|
CreateHostCommand.ResponseSchema = zod_1.z.object({
|
43
43
|
response: models_1.HostsSchema,
|
@@ -17,11 +17,11 @@ export declare namespace GetAllHostsCommand {
|
|
17
17
|
fingerprint: z.ZodNullable<z.ZodString>;
|
18
18
|
allowInsecure: z.ZodDefault<z.ZodBoolean>;
|
19
19
|
isDisabled: z.ZodDefault<z.ZodBoolean>;
|
20
|
-
securityLayer: z.ZodNativeEnum<{
|
20
|
+
securityLayer: z.ZodDefault<z.ZodNativeEnum<{
|
21
21
|
readonly DEFAULT: "DEFAULT";
|
22
22
|
readonly TLS: "TLS";
|
23
23
|
readonly NONE: "NONE";
|
24
|
-
}
|
24
|
+
}>>;
|
25
25
|
}, "strip", z.ZodTypeAny, {
|
26
26
|
uuid: string;
|
27
27
|
path: string | null;
|
@@ -49,9 +49,9 @@ export declare namespace GetAllHostsCommand {
|
|
49
49
|
host: string | null;
|
50
50
|
alpn: string | null;
|
51
51
|
fingerprint: string | null;
|
52
|
-
securityLayer: "DEFAULT" | "TLS" | "NONE";
|
53
52
|
allowInsecure?: boolean | undefined;
|
54
53
|
isDisabled?: boolean | undefined;
|
54
|
+
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
55
55
|
}>, "many">;
|
56
56
|
}, "strip", z.ZodTypeAny, {
|
57
57
|
response: {
|
@@ -83,9 +83,9 @@ export declare namespace GetAllHostsCommand {
|
|
83
83
|
host: string | null;
|
84
84
|
alpn: string | null;
|
85
85
|
fingerprint: string | null;
|
86
|
-
securityLayer: "DEFAULT" | "TLS" | "NONE";
|
87
86
|
allowInsecure?: boolean | undefined;
|
88
87
|
isDisabled?: boolean | undefined;
|
88
|
+
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
89
89
|
}[];
|
90
90
|
}>;
|
91
91
|
type Response = z.infer<typeof ResponseSchema>;
|
@@ -25,11 +25,11 @@ export declare namespace GetOneHostCommand {
|
|
25
25
|
fingerprint: z.ZodNullable<z.ZodString>;
|
26
26
|
allowInsecure: z.ZodDefault<z.ZodBoolean>;
|
27
27
|
isDisabled: z.ZodDefault<z.ZodBoolean>;
|
28
|
-
securityLayer: z.ZodNativeEnum<{
|
28
|
+
securityLayer: z.ZodDefault<z.ZodNativeEnum<{
|
29
29
|
readonly DEFAULT: "DEFAULT";
|
30
30
|
readonly TLS: "TLS";
|
31
31
|
readonly NONE: "NONE";
|
32
|
-
}
|
32
|
+
}>>;
|
33
33
|
}, "strip", z.ZodTypeAny, {
|
34
34
|
uuid: string;
|
35
35
|
path: string | null;
|
@@ -57,9 +57,9 @@ export declare namespace GetOneHostCommand {
|
|
57
57
|
host: string | null;
|
58
58
|
alpn: string | null;
|
59
59
|
fingerprint: string | null;
|
60
|
-
securityLayer: "DEFAULT" | "TLS" | "NONE";
|
61
60
|
allowInsecure?: boolean | undefined;
|
62
61
|
isDisabled?: boolean | undefined;
|
62
|
+
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
63
63
|
}>;
|
64
64
|
}, "strip", z.ZodTypeAny, {
|
65
65
|
response: {
|
@@ -91,9 +91,9 @@ export declare namespace GetOneHostCommand {
|
|
91
91
|
host: string | null;
|
92
92
|
alpn: string | null;
|
93
93
|
fingerprint: string | null;
|
94
|
-
securityLayer: "DEFAULT" | "TLS" | "NONE";
|
95
94
|
allowInsecure?: boolean | undefined;
|
96
95
|
isDisabled?: boolean | undefined;
|
96
|
+
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
97
97
|
};
|
98
98
|
}>;
|
99
99
|
type Response = z.infer<typeof ResponseSchema>;
|
@@ -17,11 +17,11 @@ export declare namespace ReorderHostCommand {
|
|
17
17
|
fingerprint: z.ZodNullable<z.ZodString>;
|
18
18
|
allowInsecure: z.ZodDefault<z.ZodBoolean>;
|
19
19
|
isDisabled: z.ZodDefault<z.ZodBoolean>;
|
20
|
-
securityLayer: z.ZodNativeEnum<{
|
20
|
+
securityLayer: z.ZodDefault<z.ZodNativeEnum<{
|
21
21
|
readonly DEFAULT: "DEFAULT";
|
22
22
|
readonly TLS: "TLS";
|
23
23
|
readonly NONE: "NONE";
|
24
|
-
}
|
24
|
+
}>>;
|
25
25
|
}, "uuid" | "viewPosition">, "strip", z.ZodTypeAny, {
|
26
26
|
uuid: string;
|
27
27
|
viewPosition: number;
|
@@ -16,11 +16,11 @@ export declare namespace UpdateHostCommand {
|
|
16
16
|
fingerprint: z.ZodNullable<z.ZodString>;
|
17
17
|
allowInsecure: z.ZodDefault<z.ZodBoolean>;
|
18
18
|
isDisabled: z.ZodDefault<z.ZodBoolean>;
|
19
|
-
securityLayer: z.ZodNativeEnum<{
|
19
|
+
securityLayer: z.ZodDefault<z.ZodNativeEnum<{
|
20
20
|
readonly DEFAULT: "DEFAULT";
|
21
21
|
readonly TLS: "TLS";
|
22
22
|
readonly NONE: "NONE";
|
23
|
-
}
|
23
|
+
}>>;
|
24
24
|
}, "uuid">, {
|
25
25
|
inboundUuid: z.ZodOptional<z.ZodString>;
|
26
26
|
remark: z.ZodOptional<z.ZodString>;
|
@@ -97,11 +97,11 @@ export declare namespace UpdateHostCommand {
|
|
97
97
|
fingerprint: z.ZodNullable<z.ZodString>;
|
98
98
|
allowInsecure: z.ZodDefault<z.ZodBoolean>;
|
99
99
|
isDisabled: z.ZodDefault<z.ZodBoolean>;
|
100
|
-
securityLayer: z.ZodNativeEnum<{
|
100
|
+
securityLayer: z.ZodDefault<z.ZodNativeEnum<{
|
101
101
|
readonly DEFAULT: "DEFAULT";
|
102
102
|
readonly TLS: "TLS";
|
103
103
|
readonly NONE: "NONE";
|
104
|
-
}
|
104
|
+
}>>;
|
105
105
|
}, "strip", z.ZodTypeAny, {
|
106
106
|
uuid: string;
|
107
107
|
path: string | null;
|
@@ -129,9 +129,9 @@ export declare namespace UpdateHostCommand {
|
|
129
129
|
host: string | null;
|
130
130
|
alpn: string | null;
|
131
131
|
fingerprint: string | null;
|
132
|
-
securityLayer: "DEFAULT" | "TLS" | "NONE";
|
133
132
|
allowInsecure?: boolean | undefined;
|
134
133
|
isDisabled?: boolean | undefined;
|
134
|
+
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
135
135
|
}>;
|
136
136
|
}, "strip", z.ZodTypeAny, {
|
137
137
|
response: {
|
@@ -163,9 +163,9 @@ export declare namespace UpdateHostCommand {
|
|
163
163
|
host: string | null;
|
164
164
|
alpn: string | null;
|
165
165
|
fingerprint: string | null;
|
166
|
-
securityLayer: "DEFAULT" | "TLS" | "NONE";
|
167
166
|
allowInsecure?: boolean | undefined;
|
168
167
|
isDisabled?: boolean | undefined;
|
168
|
+
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
169
169
|
};
|
170
170
|
}>;
|
171
171
|
type Response = z.infer<typeof ResponseSchema>;
|
@@ -13,11 +13,11 @@ export declare const HostsSchema: z.ZodObject<{
|
|
13
13
|
fingerprint: z.ZodNullable<z.ZodString>;
|
14
14
|
allowInsecure: z.ZodDefault<z.ZodBoolean>;
|
15
15
|
isDisabled: z.ZodDefault<z.ZodBoolean>;
|
16
|
-
securityLayer: z.ZodNativeEnum<{
|
16
|
+
securityLayer: z.ZodDefault<z.ZodNativeEnum<{
|
17
17
|
readonly DEFAULT: "DEFAULT";
|
18
18
|
readonly TLS: "TLS";
|
19
19
|
readonly NONE: "NONE";
|
20
|
-
}
|
20
|
+
}>>;
|
21
21
|
}, "strip", z.ZodTypeAny, {
|
22
22
|
uuid: string;
|
23
23
|
path: string | null;
|
@@ -45,8 +45,8 @@ export declare const HostsSchema: z.ZodObject<{
|
|
45
45
|
host: string | null;
|
46
46
|
alpn: string | null;
|
47
47
|
fingerprint: string | null;
|
48
|
-
securityLayer: "DEFAULT" | "TLS" | "NONE";
|
49
48
|
allowInsecure?: boolean | undefined;
|
50
49
|
isDisabled?: boolean | undefined;
|
50
|
+
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
51
51
|
}>;
|
52
52
|
//# sourceMappingURL=hosts.schema.d.ts.map
|
@@ -17,5 +17,5 @@ exports.HostsSchema = zod_1.z.object({
|
|
17
17
|
fingerprint: zod_1.z.string().nullable(),
|
18
18
|
allowInsecure: zod_1.z.boolean().default(false),
|
19
19
|
isDisabled: zod_1.z.boolean().default(false),
|
20
|
-
securityLayer: zod_1.z.nativeEnum(hosts_1.SECURITY_LAYERS),
|
20
|
+
securityLayer: zod_1.z.nativeEnum(hosts_1.SECURITY_LAYERS).default(hosts_1.SECURITY_LAYERS.DEFAULT),
|
21
21
|
});
|
@@ -37,7 +37,7 @@ var CreateHostCommand;
|
|
37
37
|
fingerprint: zod_1.z.optional(zod_1.z.nativeEnum(hosts_1.FINGERPRINTS).nullable()),
|
38
38
|
allowInsecure: zod_1.z.optional(zod_1.z.boolean().default(false)),
|
39
39
|
isDisabled: zod_1.z.optional(zod_1.z.boolean().default(false)),
|
40
|
-
securityLayer: zod_1.z.optional(zod_1.z.nativeEnum(hosts_1.SECURITY_LAYERS)),
|
40
|
+
securityLayer: zod_1.z.optional(zod_1.z.nativeEnum(hosts_1.SECURITY_LAYERS).default(hosts_1.SECURITY_LAYERS.DEFAULT)),
|
41
41
|
});
|
42
42
|
CreateHostCommand.ResponseSchema = zod_1.z.object({
|
43
43
|
response: models_1.HostsSchema,
|
@@ -17,5 +17,5 @@ exports.HostsSchema = zod_1.z.object({
|
|
17
17
|
fingerprint: zod_1.z.string().nullable(),
|
18
18
|
allowInsecure: zod_1.z.boolean().default(false),
|
19
19
|
isDisabled: zod_1.z.boolean().default(false),
|
20
|
-
securityLayer: zod_1.z.nativeEnum(hosts_1.SECURITY_LAYERS),
|
20
|
+
securityLayer: zod_1.z.nativeEnum(hosts_1.SECURITY_LAYERS).default(hosts_1.SECURITY_LAYERS.DEFAULT),
|
21
21
|
});
|