@remnawave/backend-contract 2.6.15 → 2.6.16
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/models/xray-json-advanced/remnawave-injector.schema.d.ts +74 -0
- package/build/backend/models/xray-json-advanced/remnawave-injector.schema.d.ts.map +1 -1
- package/build/backend/models/xray-json-advanced/remnawave-injector.schema.js +1 -0
- package/build/frontend/models/xray-json-advanced/remnawave-injector.schema.js +1 -0
- package/package.json +1 -1
|
@@ -33,6 +33,74 @@ declare const HostSelectorSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
|
33
33
|
}, {
|
|
34
34
|
type: "sameTagAsRecipient";
|
|
35
35
|
}>]>;
|
|
36
|
+
declare const InjectHostsEntrySchema: z.ZodObject<{
|
|
37
|
+
selector: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
38
|
+
type: z.ZodLiteral<"uuids">;
|
|
39
|
+
values: z.ZodArray<z.ZodString, "many">;
|
|
40
|
+
}, "strip", z.ZodTypeAny, {
|
|
41
|
+
values: string[];
|
|
42
|
+
type: "uuids";
|
|
43
|
+
}, {
|
|
44
|
+
values: string[];
|
|
45
|
+
type: "uuids";
|
|
46
|
+
}>, z.ZodObject<{
|
|
47
|
+
type: z.ZodLiteral<"remarkRegex">;
|
|
48
|
+
pattern: z.ZodString;
|
|
49
|
+
}, "strip", z.ZodTypeAny, {
|
|
50
|
+
type: "remarkRegex";
|
|
51
|
+
pattern: string;
|
|
52
|
+
}, {
|
|
53
|
+
type: "remarkRegex";
|
|
54
|
+
pattern: string;
|
|
55
|
+
}>, z.ZodObject<{
|
|
56
|
+
type: z.ZodLiteral<"tagRegex">;
|
|
57
|
+
pattern: z.ZodString;
|
|
58
|
+
}, "strip", z.ZodTypeAny, {
|
|
59
|
+
type: "tagRegex";
|
|
60
|
+
pattern: string;
|
|
61
|
+
}, {
|
|
62
|
+
type: "tagRegex";
|
|
63
|
+
pattern: string;
|
|
64
|
+
}>, z.ZodObject<{
|
|
65
|
+
type: z.ZodLiteral<"sameTagAsRecipient">;
|
|
66
|
+
}, "strip", z.ZodTypeAny, {
|
|
67
|
+
type: "sameTagAsRecipient";
|
|
68
|
+
}, {
|
|
69
|
+
type: "sameTagAsRecipient";
|
|
70
|
+
}>]>;
|
|
71
|
+
selectFrom: z.ZodOptional<z.ZodEnum<["ALL", "HIDDEN", "NOT_HIDDEN"]>>;
|
|
72
|
+
tagPrefix: z.ZodString;
|
|
73
|
+
}, "strip", z.ZodTypeAny, {
|
|
74
|
+
selector: {
|
|
75
|
+
values: string[];
|
|
76
|
+
type: "uuids";
|
|
77
|
+
} | {
|
|
78
|
+
type: "remarkRegex";
|
|
79
|
+
pattern: string;
|
|
80
|
+
} | {
|
|
81
|
+
type: "tagRegex";
|
|
82
|
+
pattern: string;
|
|
83
|
+
} | {
|
|
84
|
+
type: "sameTagAsRecipient";
|
|
85
|
+
};
|
|
86
|
+
tagPrefix: string;
|
|
87
|
+
selectFrom?: "ALL" | "HIDDEN" | "NOT_HIDDEN" | undefined;
|
|
88
|
+
}, {
|
|
89
|
+
selector: {
|
|
90
|
+
values: string[];
|
|
91
|
+
type: "uuids";
|
|
92
|
+
} | {
|
|
93
|
+
type: "remarkRegex";
|
|
94
|
+
pattern: string;
|
|
95
|
+
} | {
|
|
96
|
+
type: "tagRegex";
|
|
97
|
+
pattern: string;
|
|
98
|
+
} | {
|
|
99
|
+
type: "sameTagAsRecipient";
|
|
100
|
+
};
|
|
101
|
+
tagPrefix: string;
|
|
102
|
+
selectFrom?: "ALL" | "HIDDEN" | "NOT_HIDDEN" | undefined;
|
|
103
|
+
}>;
|
|
36
104
|
export declare const RemnawaveInjectorSchema: z.ZodObject<{
|
|
37
105
|
injectHosts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
38
106
|
selector: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
@@ -69,6 +137,7 @@ export declare const RemnawaveInjectorSchema: z.ZodObject<{
|
|
|
69
137
|
}, {
|
|
70
138
|
type: "sameTagAsRecipient";
|
|
71
139
|
}>]>;
|
|
140
|
+
selectFrom: z.ZodOptional<z.ZodEnum<["ALL", "HIDDEN", "NOT_HIDDEN"]>>;
|
|
72
141
|
tagPrefix: z.ZodString;
|
|
73
142
|
}, "strip", z.ZodTypeAny, {
|
|
74
143
|
selector: {
|
|
@@ -84,6 +153,7 @@ export declare const RemnawaveInjectorSchema: z.ZodObject<{
|
|
|
84
153
|
type: "sameTagAsRecipient";
|
|
85
154
|
};
|
|
86
155
|
tagPrefix: string;
|
|
156
|
+
selectFrom?: "ALL" | "HIDDEN" | "NOT_HIDDEN" | undefined;
|
|
87
157
|
}, {
|
|
88
158
|
selector: {
|
|
89
159
|
values: string[];
|
|
@@ -98,6 +168,7 @@ export declare const RemnawaveInjectorSchema: z.ZodObject<{
|
|
|
98
168
|
type: "sameTagAsRecipient";
|
|
99
169
|
};
|
|
100
170
|
tagPrefix: string;
|
|
171
|
+
selectFrom?: "ALL" | "HIDDEN" | "NOT_HIDDEN" | undefined;
|
|
101
172
|
}>, "many">>;
|
|
102
173
|
}, "strip", z.ZodTypeAny, {
|
|
103
174
|
injectHosts?: {
|
|
@@ -114,6 +185,7 @@ export declare const RemnawaveInjectorSchema: z.ZodObject<{
|
|
|
114
185
|
type: "sameTagAsRecipient";
|
|
115
186
|
};
|
|
116
187
|
tagPrefix: string;
|
|
188
|
+
selectFrom?: "ALL" | "HIDDEN" | "NOT_HIDDEN" | undefined;
|
|
117
189
|
}[] | undefined;
|
|
118
190
|
}, {
|
|
119
191
|
injectHosts?: {
|
|
@@ -130,9 +202,11 @@ export declare const RemnawaveInjectorSchema: z.ZodObject<{
|
|
|
130
202
|
type: "sameTagAsRecipient";
|
|
131
203
|
};
|
|
132
204
|
tagPrefix: string;
|
|
205
|
+
selectFrom?: "ALL" | "HIDDEN" | "NOT_HIDDEN" | undefined;
|
|
133
206
|
}[] | undefined;
|
|
134
207
|
}>;
|
|
135
208
|
export type TRemnawaveInjector = z.infer<typeof RemnawaveInjectorSchema>;
|
|
136
209
|
export type TRemnawaveInjectorSelector = z.infer<typeof HostSelectorSchema>;
|
|
210
|
+
export type TRemnawaveInjectorSelectFrom = z.infer<typeof InjectHostsEntrySchema>['selectFrom'];
|
|
137
211
|
export {};
|
|
138
212
|
//# sourceMappingURL=remnawave-injector.schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remnawave-injector.schema.d.ts","sourceRoot":"","sources":["../../../../models/xray-json-advanced/remnawave-injector.schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,QAAA,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAgBtB,CAAC;
|
|
1
|
+
{"version":3,"file":"remnawave-injector.schema.d.ts","sourceRoot":"","sources":["../../../../models/xray-json-advanced/remnawave-injector.schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,QAAA,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAgBtB,CAAC;AAEH,QAAA,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI1B,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAElC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACzE,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC5E,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC,YAAY,CAAC,CAAC"}
|
|
@@ -24,6 +24,7 @@ const HostSelectorSchema = zod_1.default.discriminatedUnion('type', [
|
|
|
24
24
|
]);
|
|
25
25
|
const InjectHostsEntrySchema = zod_1.default.object({
|
|
26
26
|
selector: HostSelectorSchema,
|
|
27
|
+
selectFrom: zod_1.default.enum(['ALL', 'HIDDEN', 'NOT_HIDDEN']).optional(),
|
|
27
28
|
tagPrefix: zod_1.default.string().min(1),
|
|
28
29
|
});
|
|
29
30
|
exports.RemnawaveInjectorSchema = zod_1.default.object({
|
|
@@ -24,6 +24,7 @@ const HostSelectorSchema = zod_1.default.discriminatedUnion('type', [
|
|
|
24
24
|
]);
|
|
25
25
|
const InjectHostsEntrySchema = zod_1.default.object({
|
|
26
26
|
selector: HostSelectorSchema,
|
|
27
|
+
selectFrom: zod_1.default.enum(['ALL', 'HIDDEN', 'NOT_HIDDEN']).optional(),
|
|
27
28
|
tagPrefix: zod_1.default.string().min(1),
|
|
28
29
|
});
|
|
29
30
|
exports.RemnawaveInjectorSchema = zod_1.default.object({
|