@remnawave/backend-contract 2.5.8 → 2.5.10
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/auth/get-status.command.d.ts +9 -8
- package/build/backend/commands/auth/get-status.command.d.ts.map +1 -1
- package/build/backend/commands/auth/oauth2/authorize.command.d.ts +3 -2
- package/build/backend/commands/auth/oauth2/authorize.command.d.ts.map +1 -1
- package/build/backend/commands/auth/oauth2/callback.command.d.ts +3 -2
- package/build/backend/commands/auth/oauth2/callback.command.d.ts.map +1 -1
- package/build/backend/commands/remnawave-settings/get-remnawave-settings.command.d.ts +61 -0
- package/build/backend/commands/remnawave-settings/get-remnawave-settings.command.d.ts.map +1 -1
- package/build/backend/commands/remnawave-settings/update-remnawave-settings.command.d.ts +108 -0
- package/build/backend/commands/remnawave-settings/update-remnawave-settings.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-user-accessible-nodes.command.d.ts +9 -53
- package/build/backend/commands/users/get-user-accessible-nodes.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-user-accessible-nodes.command.js +1 -5
- package/build/backend/constants/oauth2/providers.contants.d.ts +2 -1
- package/build/backend/constants/oauth2/providers.contants.d.ts.map +1 -1
- package/build/backend/constants/oauth2/providers.contants.js +1 -0
- package/build/backend/models/remnawave-settings/oauth2-settings.schema.d.ts +33 -0
- package/build/backend/models/remnawave-settings/oauth2-settings.schema.d.ts.map +1 -1
- package/build/backend/models/remnawave-settings/oauth2-settings.schema.js +17 -0
- package/build/backend/models/remnawave-settings/remnawave-settings.schema.d.ts +47 -0
- package/build/backend/models/remnawave-settings/remnawave-settings.schema.d.ts.map +1 -1
- package/build/frontend/commands/users/get-user-accessible-nodes.command.js +1 -5
- package/build/frontend/constants/oauth2/providers.contants.js +1 -0
- package/build/frontend/models/remnawave-settings/oauth2-settings.schema.js +17 -0
- package/package.json +1 -1
|
@@ -30,11 +30,12 @@ export declare namespace GetStatusCommand {
|
|
|
30
30
|
readonly GITHUB: "github";
|
|
31
31
|
readonly POCKETID: "pocketid";
|
|
32
32
|
readonly YANDEX: "yandex";
|
|
33
|
+
readonly KEYCLOAK: "keycloak";
|
|
33
34
|
}>, z.ZodBoolean>;
|
|
34
35
|
}, "strip", z.ZodTypeAny, {
|
|
35
|
-
providers: Partial<Record<"github" | "pocketid" | "yandex", boolean>>;
|
|
36
|
+
providers: Partial<Record<"github" | "pocketid" | "yandex" | "keycloak", boolean>>;
|
|
36
37
|
}, {
|
|
37
|
-
providers: Partial<Record<"github" | "pocketid" | "yandex", boolean>>;
|
|
38
|
+
providers: Partial<Record<"github" | "pocketid" | "yandex" | "keycloak", boolean>>;
|
|
38
39
|
}>;
|
|
39
40
|
password: z.ZodObject<{
|
|
40
41
|
enabled: z.ZodBoolean;
|
|
@@ -52,7 +53,7 @@ export declare namespace GetStatusCommand {
|
|
|
52
53
|
botId: number | null;
|
|
53
54
|
};
|
|
54
55
|
oauth2: {
|
|
55
|
-
providers: Partial<Record<"github" | "pocketid" | "yandex", boolean>>;
|
|
56
|
+
providers: Partial<Record<"github" | "pocketid" | "yandex" | "keycloak", boolean>>;
|
|
56
57
|
};
|
|
57
58
|
password: {
|
|
58
59
|
enabled: boolean;
|
|
@@ -66,7 +67,7 @@ export declare namespace GetStatusCommand {
|
|
|
66
67
|
botId: number | null;
|
|
67
68
|
};
|
|
68
69
|
oauth2: {
|
|
69
|
-
providers: Partial<Record<"github" | "pocketid" | "yandex", boolean>>;
|
|
70
|
+
providers: Partial<Record<"github" | "pocketid" | "yandex" | "keycloak", boolean>>;
|
|
70
71
|
};
|
|
71
72
|
password: {
|
|
72
73
|
enabled: boolean;
|
|
@@ -94,7 +95,7 @@ export declare namespace GetStatusCommand {
|
|
|
94
95
|
botId: number | null;
|
|
95
96
|
};
|
|
96
97
|
oauth2: {
|
|
97
|
-
providers: Partial<Record<"github" | "pocketid" | "yandex", boolean>>;
|
|
98
|
+
providers: Partial<Record<"github" | "pocketid" | "yandex" | "keycloak", boolean>>;
|
|
98
99
|
};
|
|
99
100
|
password: {
|
|
100
101
|
enabled: boolean;
|
|
@@ -116,7 +117,7 @@ export declare namespace GetStatusCommand {
|
|
|
116
117
|
botId: number | null;
|
|
117
118
|
};
|
|
118
119
|
oauth2: {
|
|
119
|
-
providers: Partial<Record<"github" | "pocketid" | "yandex", boolean>>;
|
|
120
|
+
providers: Partial<Record<"github" | "pocketid" | "yandex" | "keycloak", boolean>>;
|
|
120
121
|
};
|
|
121
122
|
password: {
|
|
122
123
|
enabled: boolean;
|
|
@@ -140,7 +141,7 @@ export declare namespace GetStatusCommand {
|
|
|
140
141
|
botId: number | null;
|
|
141
142
|
};
|
|
142
143
|
oauth2: {
|
|
143
|
-
providers: Partial<Record<"github" | "pocketid" | "yandex", boolean>>;
|
|
144
|
+
providers: Partial<Record<"github" | "pocketid" | "yandex" | "keycloak", boolean>>;
|
|
144
145
|
};
|
|
145
146
|
password: {
|
|
146
147
|
enabled: boolean;
|
|
@@ -164,7 +165,7 @@ export declare namespace GetStatusCommand {
|
|
|
164
165
|
botId: number | null;
|
|
165
166
|
};
|
|
166
167
|
oauth2: {
|
|
167
|
-
providers: Partial<Record<"github" | "pocketid" | "yandex", boolean>>;
|
|
168
|
+
providers: Partial<Record<"github" | "pocketid" | "yandex" | "keycloak", boolean>>;
|
|
168
169
|
};
|
|
169
170
|
password: {
|
|
170
171
|
enabled: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-status.command.d.ts","sourceRoot":"","sources":["../../../../commands/auth/get-status.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,gBAAgB,CAAC;IACvB,MAAM,GAAG,oBAA2B,CAAC;IACrC,MAAM,OAAO,oBAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"get-status.command.d.ts","sourceRoot":"","sources":["../../../../commands/auth/get-status.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,gBAAgB,CAAC;IACvB,MAAM,GAAG,oBAA2B,CAAC;IACrC,MAAM,OAAO,oBAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA0BzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -8,11 +8,12 @@ export declare namespace OAuth2AuthorizeCommand {
|
|
|
8
8
|
readonly GITHUB: "github";
|
|
9
9
|
readonly POCKETID: "pocketid";
|
|
10
10
|
readonly YANDEX: "yandex";
|
|
11
|
+
readonly KEYCLOAK: "keycloak";
|
|
11
12
|
}>;
|
|
12
13
|
}, "strip", z.ZodTypeAny, {
|
|
13
|
-
provider: "github" | "pocketid" | "yandex";
|
|
14
|
+
provider: "github" | "pocketid" | "yandex" | "keycloak";
|
|
14
15
|
}, {
|
|
15
|
-
provider: "github" | "pocketid" | "yandex";
|
|
16
|
+
provider: "github" | "pocketid" | "yandex" | "keycloak";
|
|
16
17
|
}>;
|
|
17
18
|
const ResponseSchema: z.ZodObject<{
|
|
18
19
|
response: z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authorize.command.d.ts","sourceRoot":"","sources":["../../../../../commands/auth/oauth2/authorize.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,sBAAsB,CAAC;IAC7B,MAAM,GAAG,8BAAiC,CAAC;IAC3C,MAAM,OAAO,8BAAM,CAAC;IAEpB,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"authorize.command.d.ts","sourceRoot":"","sources":["../../../../../commands/auth/oauth2/authorize.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,sBAAsB,CAAC;IAC7B,MAAM,GAAG,8BAAiC,CAAC;IAC3C,MAAM,OAAO,8BAAM,CAAC;IAEpB,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;MAExB,CAAC;IAEI,MAAM,cAAc;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -8,16 +8,17 @@ export declare namespace OAuth2CallbackCommand {
|
|
|
8
8
|
readonly GITHUB: "github";
|
|
9
9
|
readonly POCKETID: "pocketid";
|
|
10
10
|
readonly YANDEX: "yandex";
|
|
11
|
+
readonly KEYCLOAK: "keycloak";
|
|
11
12
|
}>;
|
|
12
13
|
code: z.ZodString;
|
|
13
14
|
state: z.ZodString;
|
|
14
15
|
}, "strip", z.ZodTypeAny, {
|
|
15
16
|
code: string;
|
|
16
|
-
provider: "github" | "pocketid" | "yandex";
|
|
17
|
+
provider: "github" | "pocketid" | "yandex" | "keycloak";
|
|
17
18
|
state: string;
|
|
18
19
|
}, {
|
|
19
20
|
code: string;
|
|
20
|
-
provider: "github" | "pocketid" | "yandex";
|
|
21
|
+
provider: "github" | "pocketid" | "yandex" | "keycloak";
|
|
21
22
|
state: string;
|
|
22
23
|
}>;
|
|
23
24
|
type Request = z.infer<typeof RequestSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"callback.command.d.ts","sourceRoot":"","sources":["../../../../../commands/auth/oauth2/callback.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,qBAAqB,CAAC;IAC5B,MAAM,GAAG,6BAAgC,CAAC;IAC1C,MAAM,OAAO,6BAAM,CAAC;IAEpB,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"callback.command.d.ts","sourceRoot":"","sources":["../../../../../commands/auth/oauth2/callback.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,qBAAqB,CAAC;IAC5B,MAAM,GAAG,6BAAgC,CAAC;IAC1C,MAAM,OAAO,6BAAM,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;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -70,6 +70,25 @@ export declare namespace GetRemnawaveSettingsCommand {
|
|
|
70
70
|
clientSecret: string | null;
|
|
71
71
|
allowedEmails: string[];
|
|
72
72
|
}>;
|
|
73
|
+
keycloak: z.ZodObject<{
|
|
74
|
+
enabled: z.ZodBoolean;
|
|
75
|
+
clientId: z.ZodNullable<z.ZodString>;
|
|
76
|
+
clientSecret: z.ZodNullable<z.ZodString>;
|
|
77
|
+
domain: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
|
|
78
|
+
allowedEmails: z.ZodArray<z.ZodString, "many">;
|
|
79
|
+
}, "strip", z.ZodTypeAny, {
|
|
80
|
+
enabled: boolean;
|
|
81
|
+
clientId: string | null;
|
|
82
|
+
clientSecret: string | null;
|
|
83
|
+
allowedEmails: string[];
|
|
84
|
+
domain: string | null;
|
|
85
|
+
}, {
|
|
86
|
+
enabled: boolean;
|
|
87
|
+
clientId: string | null;
|
|
88
|
+
clientSecret: string | null;
|
|
89
|
+
allowedEmails: string[];
|
|
90
|
+
domain: string | null;
|
|
91
|
+
}>;
|
|
73
92
|
}, "strip", z.ZodTypeAny, {
|
|
74
93
|
github: {
|
|
75
94
|
enabled: boolean;
|
|
@@ -90,6 +109,13 @@ export declare namespace GetRemnawaveSettingsCommand {
|
|
|
90
109
|
clientSecret: string | null;
|
|
91
110
|
allowedEmails: string[];
|
|
92
111
|
};
|
|
112
|
+
keycloak: {
|
|
113
|
+
enabled: boolean;
|
|
114
|
+
clientId: string | null;
|
|
115
|
+
clientSecret: string | null;
|
|
116
|
+
allowedEmails: string[];
|
|
117
|
+
domain: string | null;
|
|
118
|
+
};
|
|
93
119
|
}, {
|
|
94
120
|
github: {
|
|
95
121
|
enabled: boolean;
|
|
@@ -110,6 +136,13 @@ export declare namespace GetRemnawaveSettingsCommand {
|
|
|
110
136
|
clientSecret: string | null;
|
|
111
137
|
allowedEmails: string[];
|
|
112
138
|
};
|
|
139
|
+
keycloak: {
|
|
140
|
+
enabled: boolean;
|
|
141
|
+
clientId: string | null;
|
|
142
|
+
clientSecret: string | null;
|
|
143
|
+
allowedEmails: string[];
|
|
144
|
+
domain: string | null;
|
|
145
|
+
};
|
|
113
146
|
}>>;
|
|
114
147
|
tgAuthSettings: z.ZodNullable<z.ZodObject<{
|
|
115
148
|
enabled: z.ZodBoolean;
|
|
@@ -167,6 +200,13 @@ export declare namespace GetRemnawaveSettingsCommand {
|
|
|
167
200
|
clientSecret: string | null;
|
|
168
201
|
allowedEmails: string[];
|
|
169
202
|
};
|
|
203
|
+
keycloak: {
|
|
204
|
+
enabled: boolean;
|
|
205
|
+
clientId: string | null;
|
|
206
|
+
clientSecret: string | null;
|
|
207
|
+
allowedEmails: string[];
|
|
208
|
+
domain: string | null;
|
|
209
|
+
};
|
|
170
210
|
} | null;
|
|
171
211
|
tgAuthSettings: {
|
|
172
212
|
enabled: boolean;
|
|
@@ -206,6 +246,13 @@ export declare namespace GetRemnawaveSettingsCommand {
|
|
|
206
246
|
clientSecret: string | null;
|
|
207
247
|
allowedEmails: string[];
|
|
208
248
|
};
|
|
249
|
+
keycloak: {
|
|
250
|
+
enabled: boolean;
|
|
251
|
+
clientId: string | null;
|
|
252
|
+
clientSecret: string | null;
|
|
253
|
+
allowedEmails: string[];
|
|
254
|
+
domain: string | null;
|
|
255
|
+
};
|
|
209
256
|
} | null;
|
|
210
257
|
tgAuthSettings: {
|
|
211
258
|
enabled: boolean;
|
|
@@ -247,6 +294,13 @@ export declare namespace GetRemnawaveSettingsCommand {
|
|
|
247
294
|
clientSecret: string | null;
|
|
248
295
|
allowedEmails: string[];
|
|
249
296
|
};
|
|
297
|
+
keycloak: {
|
|
298
|
+
enabled: boolean;
|
|
299
|
+
clientId: string | null;
|
|
300
|
+
clientSecret: string | null;
|
|
301
|
+
allowedEmails: string[];
|
|
302
|
+
domain: string | null;
|
|
303
|
+
};
|
|
250
304
|
} | null;
|
|
251
305
|
tgAuthSettings: {
|
|
252
306
|
enabled: boolean;
|
|
@@ -288,6 +342,13 @@ export declare namespace GetRemnawaveSettingsCommand {
|
|
|
288
342
|
clientSecret: string | null;
|
|
289
343
|
allowedEmails: string[];
|
|
290
344
|
};
|
|
345
|
+
keycloak: {
|
|
346
|
+
enabled: boolean;
|
|
347
|
+
clientId: string | null;
|
|
348
|
+
clientSecret: string | null;
|
|
349
|
+
allowedEmails: string[];
|
|
350
|
+
domain: string | null;
|
|
351
|
+
};
|
|
291
352
|
} | null;
|
|
292
353
|
tgAuthSettings: {
|
|
293
354
|
enabled: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-remnawave-settings.command.d.ts","sourceRoot":"","sources":["../../../../commands/remnawave-settings/get-remnawave-settings.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,2BAA2B,CAAC;IAClC,MAAM,GAAG,4BAAmC,CAAC;IAC7C,MAAM,OAAO,4BAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"get-remnawave-settings.command.d.ts","sourceRoot":"","sources":["../../../../commands/remnawave-settings/get-remnawave-settings.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,2BAA2B,CAAC;IAClC,MAAM,GAAG,4BAAmC,CAAC;IAC7C,MAAM,OAAO,4BAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -69,6 +69,25 @@ export declare namespace UpdateRemnawaveSettingsCommand {
|
|
|
69
69
|
clientSecret: string | null;
|
|
70
70
|
allowedEmails: string[];
|
|
71
71
|
}>;
|
|
72
|
+
keycloak: z.ZodObject<{
|
|
73
|
+
enabled: z.ZodBoolean;
|
|
74
|
+
clientId: z.ZodNullable<z.ZodString>;
|
|
75
|
+
clientSecret: z.ZodNullable<z.ZodString>;
|
|
76
|
+
domain: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
|
|
77
|
+
allowedEmails: z.ZodArray<z.ZodString, "many">;
|
|
78
|
+
}, "strip", z.ZodTypeAny, {
|
|
79
|
+
enabled: boolean;
|
|
80
|
+
clientId: string | null;
|
|
81
|
+
clientSecret: string | null;
|
|
82
|
+
allowedEmails: string[];
|
|
83
|
+
domain: string | null;
|
|
84
|
+
}, {
|
|
85
|
+
enabled: boolean;
|
|
86
|
+
clientId: string | null;
|
|
87
|
+
clientSecret: string | null;
|
|
88
|
+
allowedEmails: string[];
|
|
89
|
+
domain: string | null;
|
|
90
|
+
}>;
|
|
72
91
|
}, "strip", z.ZodTypeAny, {
|
|
73
92
|
github: {
|
|
74
93
|
enabled: boolean;
|
|
@@ -89,6 +108,13 @@ export declare namespace UpdateRemnawaveSettingsCommand {
|
|
|
89
108
|
clientSecret: string | null;
|
|
90
109
|
allowedEmails: string[];
|
|
91
110
|
};
|
|
111
|
+
keycloak: {
|
|
112
|
+
enabled: boolean;
|
|
113
|
+
clientId: string | null;
|
|
114
|
+
clientSecret: string | null;
|
|
115
|
+
allowedEmails: string[];
|
|
116
|
+
domain: string | null;
|
|
117
|
+
};
|
|
92
118
|
}, {
|
|
93
119
|
github: {
|
|
94
120
|
enabled: boolean;
|
|
@@ -109,6 +135,13 @@ export declare namespace UpdateRemnawaveSettingsCommand {
|
|
|
109
135
|
clientSecret: string | null;
|
|
110
136
|
allowedEmails: string[];
|
|
111
137
|
};
|
|
138
|
+
keycloak: {
|
|
139
|
+
enabled: boolean;
|
|
140
|
+
clientId: string | null;
|
|
141
|
+
clientSecret: string | null;
|
|
142
|
+
allowedEmails: string[];
|
|
143
|
+
domain: string | null;
|
|
144
|
+
};
|
|
112
145
|
}>>;
|
|
113
146
|
tgAuthSettings: z.ZodOptional<z.ZodObject<{
|
|
114
147
|
enabled: z.ZodBoolean;
|
|
@@ -166,6 +199,13 @@ export declare namespace UpdateRemnawaveSettingsCommand {
|
|
|
166
199
|
clientSecret: string | null;
|
|
167
200
|
allowedEmails: string[];
|
|
168
201
|
};
|
|
202
|
+
keycloak: {
|
|
203
|
+
enabled: boolean;
|
|
204
|
+
clientId: string | null;
|
|
205
|
+
clientSecret: string | null;
|
|
206
|
+
allowedEmails: string[];
|
|
207
|
+
domain: string | null;
|
|
208
|
+
};
|
|
169
209
|
} | undefined;
|
|
170
210
|
tgAuthSettings?: {
|
|
171
211
|
enabled: boolean;
|
|
@@ -205,6 +245,13 @@ export declare namespace UpdateRemnawaveSettingsCommand {
|
|
|
205
245
|
clientSecret: string | null;
|
|
206
246
|
allowedEmails: string[];
|
|
207
247
|
};
|
|
248
|
+
keycloak: {
|
|
249
|
+
enabled: boolean;
|
|
250
|
+
clientId: string | null;
|
|
251
|
+
clientSecret: string | null;
|
|
252
|
+
allowedEmails: string[];
|
|
253
|
+
domain: string | null;
|
|
254
|
+
};
|
|
208
255
|
} | undefined;
|
|
209
256
|
tgAuthSettings?: {
|
|
210
257
|
enabled: boolean;
|
|
@@ -287,6 +334,25 @@ export declare namespace UpdateRemnawaveSettingsCommand {
|
|
|
287
334
|
clientSecret: string | null;
|
|
288
335
|
allowedEmails: string[];
|
|
289
336
|
}>;
|
|
337
|
+
keycloak: z.ZodObject<{
|
|
338
|
+
enabled: z.ZodBoolean;
|
|
339
|
+
clientId: z.ZodNullable<z.ZodString>;
|
|
340
|
+
clientSecret: z.ZodNullable<z.ZodString>;
|
|
341
|
+
domain: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
|
|
342
|
+
allowedEmails: z.ZodArray<z.ZodString, "many">;
|
|
343
|
+
}, "strip", z.ZodTypeAny, {
|
|
344
|
+
enabled: boolean;
|
|
345
|
+
clientId: string | null;
|
|
346
|
+
clientSecret: string | null;
|
|
347
|
+
allowedEmails: string[];
|
|
348
|
+
domain: string | null;
|
|
349
|
+
}, {
|
|
350
|
+
enabled: boolean;
|
|
351
|
+
clientId: string | null;
|
|
352
|
+
clientSecret: string | null;
|
|
353
|
+
allowedEmails: string[];
|
|
354
|
+
domain: string | null;
|
|
355
|
+
}>;
|
|
290
356
|
}, "strip", z.ZodTypeAny, {
|
|
291
357
|
github: {
|
|
292
358
|
enabled: boolean;
|
|
@@ -307,6 +373,13 @@ export declare namespace UpdateRemnawaveSettingsCommand {
|
|
|
307
373
|
clientSecret: string | null;
|
|
308
374
|
allowedEmails: string[];
|
|
309
375
|
};
|
|
376
|
+
keycloak: {
|
|
377
|
+
enabled: boolean;
|
|
378
|
+
clientId: string | null;
|
|
379
|
+
clientSecret: string | null;
|
|
380
|
+
allowedEmails: string[];
|
|
381
|
+
domain: string | null;
|
|
382
|
+
};
|
|
310
383
|
}, {
|
|
311
384
|
github: {
|
|
312
385
|
enabled: boolean;
|
|
@@ -327,6 +400,13 @@ export declare namespace UpdateRemnawaveSettingsCommand {
|
|
|
327
400
|
clientSecret: string | null;
|
|
328
401
|
allowedEmails: string[];
|
|
329
402
|
};
|
|
403
|
+
keycloak: {
|
|
404
|
+
enabled: boolean;
|
|
405
|
+
clientId: string | null;
|
|
406
|
+
clientSecret: string | null;
|
|
407
|
+
allowedEmails: string[];
|
|
408
|
+
domain: string | null;
|
|
409
|
+
};
|
|
330
410
|
}>>;
|
|
331
411
|
tgAuthSettings: z.ZodNullable<z.ZodObject<{
|
|
332
412
|
enabled: z.ZodBoolean;
|
|
@@ -384,6 +464,13 @@ export declare namespace UpdateRemnawaveSettingsCommand {
|
|
|
384
464
|
clientSecret: string | null;
|
|
385
465
|
allowedEmails: string[];
|
|
386
466
|
};
|
|
467
|
+
keycloak: {
|
|
468
|
+
enabled: boolean;
|
|
469
|
+
clientId: string | null;
|
|
470
|
+
clientSecret: string | null;
|
|
471
|
+
allowedEmails: string[];
|
|
472
|
+
domain: string | null;
|
|
473
|
+
};
|
|
387
474
|
} | null;
|
|
388
475
|
tgAuthSettings: {
|
|
389
476
|
enabled: boolean;
|
|
@@ -423,6 +510,13 @@ export declare namespace UpdateRemnawaveSettingsCommand {
|
|
|
423
510
|
clientSecret: string | null;
|
|
424
511
|
allowedEmails: string[];
|
|
425
512
|
};
|
|
513
|
+
keycloak: {
|
|
514
|
+
enabled: boolean;
|
|
515
|
+
clientId: string | null;
|
|
516
|
+
clientSecret: string | null;
|
|
517
|
+
allowedEmails: string[];
|
|
518
|
+
domain: string | null;
|
|
519
|
+
};
|
|
426
520
|
} | null;
|
|
427
521
|
tgAuthSettings: {
|
|
428
522
|
enabled: boolean;
|
|
@@ -464,6 +558,13 @@ export declare namespace UpdateRemnawaveSettingsCommand {
|
|
|
464
558
|
clientSecret: string | null;
|
|
465
559
|
allowedEmails: string[];
|
|
466
560
|
};
|
|
561
|
+
keycloak: {
|
|
562
|
+
enabled: boolean;
|
|
563
|
+
clientId: string | null;
|
|
564
|
+
clientSecret: string | null;
|
|
565
|
+
allowedEmails: string[];
|
|
566
|
+
domain: string | null;
|
|
567
|
+
};
|
|
467
568
|
} | null;
|
|
468
569
|
tgAuthSettings: {
|
|
469
570
|
enabled: boolean;
|
|
@@ -505,6 +606,13 @@ export declare namespace UpdateRemnawaveSettingsCommand {
|
|
|
505
606
|
clientSecret: string | null;
|
|
506
607
|
allowedEmails: string[];
|
|
507
608
|
};
|
|
609
|
+
keycloak: {
|
|
610
|
+
enabled: boolean;
|
|
611
|
+
clientId: string | null;
|
|
612
|
+
clientSecret: string | null;
|
|
613
|
+
allowedEmails: string[];
|
|
614
|
+
domain: string | null;
|
|
615
|
+
};
|
|
508
616
|
} | null;
|
|
509
617
|
tgAuthSettings: {
|
|
510
618
|
enabled: boolean;
|
package/build/backend/commands/remnawave-settings/update-remnawave-settings.command.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-remnawave-settings.command.d.ts","sourceRoot":"","sources":["../../../../commands/remnawave-settings/update-remnawave-settings.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAaxB,yBAAiB,8BAA8B,CAAC;IACrC,MAAM,GAAG,4BAAsC,CAAC;IAChD,MAAM,OAAO,4BAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"update-remnawave-settings.command.d.ts","sourceRoot":"","sources":["../../../../commands/remnawave-settings/update-remnawave-settings.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAaxB,yBAAiB,8BAA8B,CAAC;IACrC,MAAM,GAAG,4BAAsC,CAAC;IAChD,MAAM,OAAO,4BAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAMxB,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,32 +22,12 @@ export declare namespace GetUserAccessibleNodesCommand {
|
|
|
22
22
|
configProfileName: z.ZodString;
|
|
23
23
|
activeSquads: z.ZodArray<z.ZodObject<{
|
|
24
24
|
squadName: z.ZodString;
|
|
25
|
-
activeInbounds: z.ZodArray<z.
|
|
26
|
-
uuid: z.ZodString;
|
|
27
|
-
tag: z.ZodString;
|
|
28
|
-
type: z.ZodString;
|
|
29
|
-
}, "strip", z.ZodTypeAny, {
|
|
30
|
-
type: string;
|
|
31
|
-
uuid: string;
|
|
32
|
-
tag: string;
|
|
33
|
-
}, {
|
|
34
|
-
type: string;
|
|
35
|
-
uuid: string;
|
|
36
|
-
tag: string;
|
|
37
|
-
}>, "many">;
|
|
25
|
+
activeInbounds: z.ZodArray<z.ZodString, "many">;
|
|
38
26
|
}, "strip", z.ZodTypeAny, {
|
|
39
|
-
activeInbounds:
|
|
40
|
-
type: string;
|
|
41
|
-
uuid: string;
|
|
42
|
-
tag: string;
|
|
43
|
-
}[];
|
|
27
|
+
activeInbounds: string[];
|
|
44
28
|
squadName: string;
|
|
45
29
|
}, {
|
|
46
|
-
activeInbounds:
|
|
47
|
-
type: string;
|
|
48
|
-
uuid: string;
|
|
49
|
-
tag: string;
|
|
50
|
-
}[];
|
|
30
|
+
activeInbounds: string[];
|
|
51
31
|
squadName: string;
|
|
52
32
|
}>, "many">;
|
|
53
33
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -56,11 +36,7 @@ export declare namespace GetUserAccessibleNodesCommand {
|
|
|
56
36
|
countryCode: string;
|
|
57
37
|
configProfileUuid: string;
|
|
58
38
|
activeSquads: {
|
|
59
|
-
activeInbounds:
|
|
60
|
-
type: string;
|
|
61
|
-
uuid: string;
|
|
62
|
-
tag: string;
|
|
63
|
-
}[];
|
|
39
|
+
activeInbounds: string[];
|
|
64
40
|
squadName: string;
|
|
65
41
|
}[];
|
|
66
42
|
configProfileName: string;
|
|
@@ -70,11 +46,7 @@ export declare namespace GetUserAccessibleNodesCommand {
|
|
|
70
46
|
countryCode: string;
|
|
71
47
|
configProfileUuid: string;
|
|
72
48
|
activeSquads: {
|
|
73
|
-
activeInbounds:
|
|
74
|
-
type: string;
|
|
75
|
-
uuid: string;
|
|
76
|
-
tag: string;
|
|
77
|
-
}[];
|
|
49
|
+
activeInbounds: string[];
|
|
78
50
|
squadName: string;
|
|
79
51
|
}[];
|
|
80
52
|
configProfileName: string;
|
|
@@ -87,11 +59,7 @@ export declare namespace GetUserAccessibleNodesCommand {
|
|
|
87
59
|
countryCode: string;
|
|
88
60
|
configProfileUuid: string;
|
|
89
61
|
activeSquads: {
|
|
90
|
-
activeInbounds:
|
|
91
|
-
type: string;
|
|
92
|
-
uuid: string;
|
|
93
|
-
tag: string;
|
|
94
|
-
}[];
|
|
62
|
+
activeInbounds: string[];
|
|
95
63
|
squadName: string;
|
|
96
64
|
}[];
|
|
97
65
|
configProfileName: string;
|
|
@@ -104,11 +72,7 @@ export declare namespace GetUserAccessibleNodesCommand {
|
|
|
104
72
|
countryCode: string;
|
|
105
73
|
configProfileUuid: string;
|
|
106
74
|
activeSquads: {
|
|
107
|
-
activeInbounds:
|
|
108
|
-
type: string;
|
|
109
|
-
uuid: string;
|
|
110
|
-
tag: string;
|
|
111
|
-
}[];
|
|
75
|
+
activeInbounds: string[];
|
|
112
76
|
squadName: string;
|
|
113
77
|
}[];
|
|
114
78
|
configProfileName: string;
|
|
@@ -123,11 +87,7 @@ export declare namespace GetUserAccessibleNodesCommand {
|
|
|
123
87
|
countryCode: string;
|
|
124
88
|
configProfileUuid: string;
|
|
125
89
|
activeSquads: {
|
|
126
|
-
activeInbounds:
|
|
127
|
-
type: string;
|
|
128
|
-
uuid: string;
|
|
129
|
-
tag: string;
|
|
130
|
-
}[];
|
|
90
|
+
activeInbounds: string[];
|
|
131
91
|
squadName: string;
|
|
132
92
|
}[];
|
|
133
93
|
configProfileName: string;
|
|
@@ -142,11 +102,7 @@ export declare namespace GetUserAccessibleNodesCommand {
|
|
|
142
102
|
countryCode: string;
|
|
143
103
|
configProfileUuid: string;
|
|
144
104
|
activeSquads: {
|
|
145
|
-
activeInbounds:
|
|
146
|
-
type: string;
|
|
147
|
-
uuid: string;
|
|
148
|
-
tag: string;
|
|
149
|
-
}[];
|
|
105
|
+
activeInbounds: string[];
|
|
150
106
|
squadName: string;
|
|
151
107
|
}[];
|
|
152
108
|
configProfileName: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-user-accessible-nodes.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/get-user-accessible-nodes.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,6BAA6B,CAAC;IACpC,MAAM,GAAG,0BAAkC,CAAC;IAC5C,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-user-accessible-nodes.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/get-user-accessible-nodes.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,6BAA6B,CAAC;IACpC,MAAM,GAAG,0BAAkC,CAAC;IAC5C,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAmBzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -23,11 +23,7 @@ var GetUserAccessibleNodesCommand;
|
|
|
23
23
|
configProfileName: zod_1.z.string(),
|
|
24
24
|
activeSquads: zod_1.z.array(zod_1.z.object({
|
|
25
25
|
squadName: zod_1.z.string(),
|
|
26
|
-
activeInbounds: zod_1.z.array(zod_1.z.
|
|
27
|
-
uuid: zod_1.z.string().uuid(),
|
|
28
|
-
tag: zod_1.z.string(),
|
|
29
|
-
type: zod_1.z.string(),
|
|
30
|
-
})),
|
|
26
|
+
activeInbounds: zod_1.z.array(zod_1.z.string()),
|
|
31
27
|
})),
|
|
32
28
|
})),
|
|
33
29
|
}),
|
|
@@ -2,8 +2,9 @@ export declare const OAUTH2_PROVIDERS: {
|
|
|
2
2
|
readonly GITHUB: "github";
|
|
3
3
|
readonly POCKETID: "pocketid";
|
|
4
4
|
readonly YANDEX: "yandex";
|
|
5
|
+
readonly KEYCLOAK: "keycloak";
|
|
5
6
|
};
|
|
6
7
|
export type TOAuth2Providers = [keyof typeof OAUTH2_PROVIDERS][number];
|
|
7
8
|
export type TOAuth2ProvidersKeys = (typeof OAUTH2_PROVIDERS)[keyof typeof OAUTH2_PROVIDERS];
|
|
8
|
-
export declare const OAUTH2_PROVIDERS_VALUES: ("github" | "pocketid" | "yandex")[];
|
|
9
|
+
export declare const OAUTH2_PROVIDERS_VALUES: ("github" | "pocketid" | "yandex" | "keycloak")[];
|
|
9
10
|
//# sourceMappingURL=providers.contants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"providers.contants.d.ts","sourceRoot":"","sources":["../../../../constants/oauth2/providers.contants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"providers.contants.d.ts","sourceRoot":"","sources":["../../../../constants/oauth2/providers.contants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB;;;;;CAKnB,CAAC;AAEX,MAAM,MAAM,gBAAgB,GAAG,CAAC,MAAM,OAAO,gBAAgB,CAAC,CAAC,MAAM,CAAC,CAAC;AACvE,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,OAAO,gBAAgB,CAAC,CAAC;AAC5F,eAAO,MAAM,uBAAuB,mDAAkC,CAAC"}
|
|
@@ -51,6 +51,25 @@ export declare const Oauth2SettingsSchema: z.ZodObject<{
|
|
|
51
51
|
clientSecret: string | null;
|
|
52
52
|
allowedEmails: string[];
|
|
53
53
|
}>;
|
|
54
|
+
keycloak: z.ZodObject<{
|
|
55
|
+
enabled: z.ZodBoolean;
|
|
56
|
+
clientId: z.ZodNullable<z.ZodString>;
|
|
57
|
+
clientSecret: z.ZodNullable<z.ZodString>;
|
|
58
|
+
domain: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
|
|
59
|
+
allowedEmails: z.ZodArray<z.ZodString, "many">;
|
|
60
|
+
}, "strip", z.ZodTypeAny, {
|
|
61
|
+
enabled: boolean;
|
|
62
|
+
clientId: string | null;
|
|
63
|
+
clientSecret: string | null;
|
|
64
|
+
allowedEmails: string[];
|
|
65
|
+
domain: string | null;
|
|
66
|
+
}, {
|
|
67
|
+
enabled: boolean;
|
|
68
|
+
clientId: string | null;
|
|
69
|
+
clientSecret: string | null;
|
|
70
|
+
allowedEmails: string[];
|
|
71
|
+
domain: string | null;
|
|
72
|
+
}>;
|
|
54
73
|
}, "strip", z.ZodTypeAny, {
|
|
55
74
|
github: {
|
|
56
75
|
enabled: boolean;
|
|
@@ -71,6 +90,13 @@ export declare const Oauth2SettingsSchema: z.ZodObject<{
|
|
|
71
90
|
clientSecret: string | null;
|
|
72
91
|
allowedEmails: string[];
|
|
73
92
|
};
|
|
93
|
+
keycloak: {
|
|
94
|
+
enabled: boolean;
|
|
95
|
+
clientId: string | null;
|
|
96
|
+
clientSecret: string | null;
|
|
97
|
+
allowedEmails: string[];
|
|
98
|
+
domain: string | null;
|
|
99
|
+
};
|
|
74
100
|
}, {
|
|
75
101
|
github: {
|
|
76
102
|
enabled: boolean;
|
|
@@ -91,6 +117,13 @@ export declare const Oauth2SettingsSchema: z.ZodObject<{
|
|
|
91
117
|
clientSecret: string | null;
|
|
92
118
|
allowedEmails: string[];
|
|
93
119
|
};
|
|
120
|
+
keycloak: {
|
|
121
|
+
enabled: boolean;
|
|
122
|
+
clientId: string | null;
|
|
123
|
+
clientSecret: string | null;
|
|
124
|
+
allowedEmails: string[];
|
|
125
|
+
domain: string | null;
|
|
126
|
+
};
|
|
94
127
|
}>;
|
|
95
128
|
export type TOauth2Settings = z.infer<typeof Oauth2SettingsSchema>;
|
|
96
129
|
//# sourceMappingURL=oauth2-settings.schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"oauth2-settings.schema.d.ts","sourceRoot":"","sources":["../../../../models/remnawave-settings/oauth2-settings.schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"oauth2-settings.schema.d.ts","sourceRoot":"","sources":["../../../../models/remnawave-settings/oauth2-settings.schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0D/B,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
|
|
@@ -33,4 +33,21 @@ exports.Oauth2SettingsSchema = zod_1.default.object({
|
|
|
33
33
|
clientSecret: zod_1.default.nullable(zod_1.default.string()),
|
|
34
34
|
allowedEmails: zod_1.default.array(zod_1.default.string()),
|
|
35
35
|
}),
|
|
36
|
+
keycloak: zod_1.default.object({
|
|
37
|
+
enabled: zod_1.default.boolean(),
|
|
38
|
+
clientId: zod_1.default.nullable(zod_1.default.string()),
|
|
39
|
+
clientSecret: zod_1.default.nullable(zod_1.default.string()),
|
|
40
|
+
domain: zod_1.default.nullable(zod_1.default.string().refine((val) => {
|
|
41
|
+
return true;
|
|
42
|
+
// const fqdnRegex =
|
|
43
|
+
// /(?=^.{4,253}$)(^((?!-)[a-zA-Z0-9-]{0,62}[a-zA-Z0-9]\.)+[a-zA-Z]{2,63}$)/;
|
|
44
|
+
// if (fqdnRegex.test(val)) {
|
|
45
|
+
// return true;
|
|
46
|
+
// }
|
|
47
|
+
// return false;
|
|
48
|
+
}, {
|
|
49
|
+
message: 'Must be a valid fully qualified domain name (FQDN), e.g. "docs.rw"',
|
|
50
|
+
})),
|
|
51
|
+
allowedEmails: zod_1.default.array(zod_1.default.string()),
|
|
52
|
+
}),
|
|
36
53
|
});
|
|
@@ -65,6 +65,25 @@ export declare const RemnawaveSettingsSchema: z.ZodObject<{
|
|
|
65
65
|
clientSecret: string | null;
|
|
66
66
|
allowedEmails: string[];
|
|
67
67
|
}>;
|
|
68
|
+
keycloak: z.ZodObject<{
|
|
69
|
+
enabled: z.ZodBoolean;
|
|
70
|
+
clientId: z.ZodNullable<z.ZodString>;
|
|
71
|
+
clientSecret: z.ZodNullable<z.ZodString>;
|
|
72
|
+
domain: z.ZodNullable<z.ZodEffects<z.ZodString, string, string>>;
|
|
73
|
+
allowedEmails: z.ZodArray<z.ZodString, "many">;
|
|
74
|
+
}, "strip", z.ZodTypeAny, {
|
|
75
|
+
enabled: boolean;
|
|
76
|
+
clientId: string | null;
|
|
77
|
+
clientSecret: string | null;
|
|
78
|
+
allowedEmails: string[];
|
|
79
|
+
domain: string | null;
|
|
80
|
+
}, {
|
|
81
|
+
enabled: boolean;
|
|
82
|
+
clientId: string | null;
|
|
83
|
+
clientSecret: string | null;
|
|
84
|
+
allowedEmails: string[];
|
|
85
|
+
domain: string | null;
|
|
86
|
+
}>;
|
|
68
87
|
}, "strip", z.ZodTypeAny, {
|
|
69
88
|
github: {
|
|
70
89
|
enabled: boolean;
|
|
@@ -85,6 +104,13 @@ export declare const RemnawaveSettingsSchema: z.ZodObject<{
|
|
|
85
104
|
clientSecret: string | null;
|
|
86
105
|
allowedEmails: string[];
|
|
87
106
|
};
|
|
107
|
+
keycloak: {
|
|
108
|
+
enabled: boolean;
|
|
109
|
+
clientId: string | null;
|
|
110
|
+
clientSecret: string | null;
|
|
111
|
+
allowedEmails: string[];
|
|
112
|
+
domain: string | null;
|
|
113
|
+
};
|
|
88
114
|
}, {
|
|
89
115
|
github: {
|
|
90
116
|
enabled: boolean;
|
|
@@ -105,6 +131,13 @@ export declare const RemnawaveSettingsSchema: z.ZodObject<{
|
|
|
105
131
|
clientSecret: string | null;
|
|
106
132
|
allowedEmails: string[];
|
|
107
133
|
};
|
|
134
|
+
keycloak: {
|
|
135
|
+
enabled: boolean;
|
|
136
|
+
clientId: string | null;
|
|
137
|
+
clientSecret: string | null;
|
|
138
|
+
allowedEmails: string[];
|
|
139
|
+
domain: string | null;
|
|
140
|
+
};
|
|
108
141
|
}>>;
|
|
109
142
|
tgAuthSettings: z.ZodNullable<z.ZodObject<{
|
|
110
143
|
enabled: z.ZodBoolean;
|
|
@@ -162,6 +195,13 @@ export declare const RemnawaveSettingsSchema: z.ZodObject<{
|
|
|
162
195
|
clientSecret: string | null;
|
|
163
196
|
allowedEmails: string[];
|
|
164
197
|
};
|
|
198
|
+
keycloak: {
|
|
199
|
+
enabled: boolean;
|
|
200
|
+
clientId: string | null;
|
|
201
|
+
clientSecret: string | null;
|
|
202
|
+
allowedEmails: string[];
|
|
203
|
+
domain: string | null;
|
|
204
|
+
};
|
|
165
205
|
} | null;
|
|
166
206
|
tgAuthSettings: {
|
|
167
207
|
enabled: boolean;
|
|
@@ -201,6 +241,13 @@ export declare const RemnawaveSettingsSchema: z.ZodObject<{
|
|
|
201
241
|
clientSecret: string | null;
|
|
202
242
|
allowedEmails: string[];
|
|
203
243
|
};
|
|
244
|
+
keycloak: {
|
|
245
|
+
enabled: boolean;
|
|
246
|
+
clientId: string | null;
|
|
247
|
+
clientSecret: string | null;
|
|
248
|
+
allowedEmails: string[];
|
|
249
|
+
domain: string | null;
|
|
250
|
+
};
|
|
204
251
|
} | null;
|
|
205
252
|
tgAuthSettings: {
|
|
206
253
|
enabled: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remnawave-settings.schema.d.ts","sourceRoot":"","sources":["../../../../models/remnawave-settings/remnawave-settings.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,uBAAuB
|
|
1
|
+
{"version":3,"file":"remnawave-settings.schema.d.ts","sourceRoot":"","sources":["../../../../models/remnawave-settings/remnawave-settings.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMlC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
|
|
@@ -23,11 +23,7 @@ var GetUserAccessibleNodesCommand;
|
|
|
23
23
|
configProfileName: zod_1.z.string(),
|
|
24
24
|
activeSquads: zod_1.z.array(zod_1.z.object({
|
|
25
25
|
squadName: zod_1.z.string(),
|
|
26
|
-
activeInbounds: zod_1.z.array(zod_1.z.
|
|
27
|
-
uuid: zod_1.z.string().uuid(),
|
|
28
|
-
tag: zod_1.z.string(),
|
|
29
|
-
type: zod_1.z.string(),
|
|
30
|
-
})),
|
|
26
|
+
activeInbounds: zod_1.z.array(zod_1.z.string()),
|
|
31
27
|
})),
|
|
32
28
|
})),
|
|
33
29
|
}),
|
|
@@ -33,4 +33,21 @@ exports.Oauth2SettingsSchema = zod_1.default.object({
|
|
|
33
33
|
clientSecret: zod_1.default.nullable(zod_1.default.string()),
|
|
34
34
|
allowedEmails: zod_1.default.array(zod_1.default.string()),
|
|
35
35
|
}),
|
|
36
|
+
keycloak: zod_1.default.object({
|
|
37
|
+
enabled: zod_1.default.boolean(),
|
|
38
|
+
clientId: zod_1.default.nullable(zod_1.default.string()),
|
|
39
|
+
clientSecret: zod_1.default.nullable(zod_1.default.string()),
|
|
40
|
+
domain: zod_1.default.nullable(zod_1.default.string().refine((val) => {
|
|
41
|
+
return true;
|
|
42
|
+
// const fqdnRegex =
|
|
43
|
+
// /(?=^.{4,253}$)(^((?!-)[a-zA-Z0-9-]{0,62}[a-zA-Z0-9]\.)+[a-zA-Z]{2,63}$)/;
|
|
44
|
+
// if (fqdnRegex.test(val)) {
|
|
45
|
+
// return true;
|
|
46
|
+
// }
|
|
47
|
+
// return false;
|
|
48
|
+
}, {
|
|
49
|
+
message: 'Must be a valid fully qualified domain name (FQDN), e.g. "docs.rw"',
|
|
50
|
+
})),
|
|
51
|
+
allowedEmails: zod_1.default.array(zod_1.default.string()),
|
|
52
|
+
}),
|
|
36
53
|
});
|