@remnawave/backend-contract 2.2.20 → 2.2.22
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/remnawave-settings/get-remnawave-settings.command.d.ts +26 -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 +44 -0
- package/build/backend/commands/remnawave-settings/update-remnawave-settings.command.d.ts.map +1 -1
- package/build/backend/commands/remnawave-settings/update-remnawave-settings.command.js +1 -0
- package/build/backend/constants/errors/errors.d.ts +10 -0
- package/build/backend/constants/errors/errors.d.ts.map +1 -1
- package/build/backend/constants/errors/errors.js +10 -0
- package/build/backend/models/remnawave-settings/branding-settings.schema.d.ts +13 -0
- package/build/backend/models/remnawave-settings/branding-settings.schema.d.ts.map +1 -0
- package/build/backend/models/remnawave-settings/branding-settings.schema.js +11 -0
- package/build/backend/models/remnawave-settings/index.d.ts +1 -0
- package/build/backend/models/remnawave-settings/index.d.ts.map +1 -1
- package/build/backend/models/remnawave-settings/index.js +1 -0
- package/build/backend/models/remnawave-settings/oauth2-settings.schema.js +1 -1
- package/build/backend/models/remnawave-settings/passkey-settings.schema.js +2 -2
- package/build/backend/models/remnawave-settings/remnawave-settings.schema.d.ts +18 -0
- package/build/backend/models/remnawave-settings/remnawave-settings.schema.d.ts.map +1 -1
- package/build/backend/models/remnawave-settings/remnawave-settings.schema.js +2 -0
- package/build/frontend/commands/remnawave-settings/update-remnawave-settings.command.js +1 -0
- package/build/frontend/constants/errors/errors.js +10 -0
- package/build/frontend/models/remnawave-settings/branding-settings.schema.js +11 -0
- package/build/frontend/models/remnawave-settings/index.js +1 -0
- package/build/frontend/models/remnawave-settings/oauth2-settings.schema.js +1 -1
- package/build/frontend/models/remnawave-settings/passkey-settings.schema.js +2 -2
- package/build/frontend/models/remnawave-settings/remnawave-settings.schema.js +2 -0
- package/package.json +3 -2
|
@@ -131,6 +131,16 @@ export declare namespace GetRemnawaveSettingsCommand {
|
|
|
131
131
|
}, {
|
|
132
132
|
enabled: boolean;
|
|
133
133
|
}>>;
|
|
134
|
+
brandingSettings: z.ZodNullable<z.ZodObject<{
|
|
135
|
+
title: z.ZodNullable<z.ZodString>;
|
|
136
|
+
logoUrl: z.ZodNullable<z.ZodString>;
|
|
137
|
+
}, "strip", z.ZodTypeAny, {
|
|
138
|
+
title: string | null;
|
|
139
|
+
logoUrl: string | null;
|
|
140
|
+
}, {
|
|
141
|
+
title: string | null;
|
|
142
|
+
logoUrl: string | null;
|
|
143
|
+
}>>;
|
|
134
144
|
}, "strip", z.ZodTypeAny, {
|
|
135
145
|
passkeySettings: {
|
|
136
146
|
enabled: boolean;
|
|
@@ -166,6 +176,10 @@ export declare namespace GetRemnawaveSettingsCommand {
|
|
|
166
176
|
passwordSettings: {
|
|
167
177
|
enabled: boolean;
|
|
168
178
|
} | null;
|
|
179
|
+
brandingSettings: {
|
|
180
|
+
title: string | null;
|
|
181
|
+
logoUrl: string | null;
|
|
182
|
+
} | null;
|
|
169
183
|
}, {
|
|
170
184
|
passkeySettings: {
|
|
171
185
|
enabled: boolean;
|
|
@@ -201,6 +215,10 @@ export declare namespace GetRemnawaveSettingsCommand {
|
|
|
201
215
|
passwordSettings: {
|
|
202
216
|
enabled: boolean;
|
|
203
217
|
} | null;
|
|
218
|
+
brandingSettings: {
|
|
219
|
+
title: string | null;
|
|
220
|
+
logoUrl: string | null;
|
|
221
|
+
} | null;
|
|
204
222
|
}>;
|
|
205
223
|
}, "strip", z.ZodTypeAny, {
|
|
206
224
|
response: {
|
|
@@ -238,6 +256,10 @@ export declare namespace GetRemnawaveSettingsCommand {
|
|
|
238
256
|
passwordSettings: {
|
|
239
257
|
enabled: boolean;
|
|
240
258
|
} | null;
|
|
259
|
+
brandingSettings: {
|
|
260
|
+
title: string | null;
|
|
261
|
+
logoUrl: string | null;
|
|
262
|
+
} | null;
|
|
241
263
|
};
|
|
242
264
|
}, {
|
|
243
265
|
response: {
|
|
@@ -275,6 +297,10 @@ export declare namespace GetRemnawaveSettingsCommand {
|
|
|
275
297
|
passwordSettings: {
|
|
276
298
|
enabled: boolean;
|
|
277
299
|
} | null;
|
|
300
|
+
brandingSettings: {
|
|
301
|
+
title: string | null;
|
|
302
|
+
logoUrl: string | null;
|
|
303
|
+
} | null;
|
|
278
304
|
};
|
|
279
305
|
}>;
|
|
280
306
|
type Response = z.infer<typeof ResponseSchema>;
|
|
@@ -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"}
|
|
@@ -130,6 +130,16 @@ export declare namespace UpdateRemnawaveSettingsCommand {
|
|
|
130
130
|
}, {
|
|
131
131
|
enabled: boolean;
|
|
132
132
|
}>>;
|
|
133
|
+
brandingSettings: z.ZodOptional<z.ZodObject<{
|
|
134
|
+
title: z.ZodNullable<z.ZodString>;
|
|
135
|
+
logoUrl: z.ZodNullable<z.ZodString>;
|
|
136
|
+
}, "strip", z.ZodTypeAny, {
|
|
137
|
+
title: string | null;
|
|
138
|
+
logoUrl: string | null;
|
|
139
|
+
}, {
|
|
140
|
+
title: string | null;
|
|
141
|
+
logoUrl: string | null;
|
|
142
|
+
}>>;
|
|
133
143
|
}, "strip", z.ZodTypeAny, {
|
|
134
144
|
passkeySettings?: {
|
|
135
145
|
enabled: boolean;
|
|
@@ -165,6 +175,10 @@ export declare namespace UpdateRemnawaveSettingsCommand {
|
|
|
165
175
|
passwordSettings?: {
|
|
166
176
|
enabled: boolean;
|
|
167
177
|
} | undefined;
|
|
178
|
+
brandingSettings?: {
|
|
179
|
+
title: string | null;
|
|
180
|
+
logoUrl: string | null;
|
|
181
|
+
} | undefined;
|
|
168
182
|
}, {
|
|
169
183
|
passkeySettings?: {
|
|
170
184
|
enabled: boolean;
|
|
@@ -200,6 +214,10 @@ export declare namespace UpdateRemnawaveSettingsCommand {
|
|
|
200
214
|
passwordSettings?: {
|
|
201
215
|
enabled: boolean;
|
|
202
216
|
} | undefined;
|
|
217
|
+
brandingSettings?: {
|
|
218
|
+
title: string | null;
|
|
219
|
+
logoUrl: string | null;
|
|
220
|
+
} | undefined;
|
|
203
221
|
}>;
|
|
204
222
|
type Request = z.infer<typeof RequestSchema>;
|
|
205
223
|
const ResponseSchema: z.ZodObject<{
|
|
@@ -330,6 +348,16 @@ export declare namespace UpdateRemnawaveSettingsCommand {
|
|
|
330
348
|
}, {
|
|
331
349
|
enabled: boolean;
|
|
332
350
|
}>>;
|
|
351
|
+
brandingSettings: z.ZodNullable<z.ZodObject<{
|
|
352
|
+
title: z.ZodNullable<z.ZodString>;
|
|
353
|
+
logoUrl: z.ZodNullable<z.ZodString>;
|
|
354
|
+
}, "strip", z.ZodTypeAny, {
|
|
355
|
+
title: string | null;
|
|
356
|
+
logoUrl: string | null;
|
|
357
|
+
}, {
|
|
358
|
+
title: string | null;
|
|
359
|
+
logoUrl: string | null;
|
|
360
|
+
}>>;
|
|
333
361
|
}, "strip", z.ZodTypeAny, {
|
|
334
362
|
passkeySettings: {
|
|
335
363
|
enabled: boolean;
|
|
@@ -365,6 +393,10 @@ export declare namespace UpdateRemnawaveSettingsCommand {
|
|
|
365
393
|
passwordSettings: {
|
|
366
394
|
enabled: boolean;
|
|
367
395
|
} | null;
|
|
396
|
+
brandingSettings: {
|
|
397
|
+
title: string | null;
|
|
398
|
+
logoUrl: string | null;
|
|
399
|
+
} | null;
|
|
368
400
|
}, {
|
|
369
401
|
passkeySettings: {
|
|
370
402
|
enabled: boolean;
|
|
@@ -400,6 +432,10 @@ export declare namespace UpdateRemnawaveSettingsCommand {
|
|
|
400
432
|
passwordSettings: {
|
|
401
433
|
enabled: boolean;
|
|
402
434
|
} | null;
|
|
435
|
+
brandingSettings: {
|
|
436
|
+
title: string | null;
|
|
437
|
+
logoUrl: string | null;
|
|
438
|
+
} | null;
|
|
403
439
|
}>;
|
|
404
440
|
}, "strip", z.ZodTypeAny, {
|
|
405
441
|
response: {
|
|
@@ -437,6 +473,10 @@ export declare namespace UpdateRemnawaveSettingsCommand {
|
|
|
437
473
|
passwordSettings: {
|
|
438
474
|
enabled: boolean;
|
|
439
475
|
} | null;
|
|
476
|
+
brandingSettings: {
|
|
477
|
+
title: string | null;
|
|
478
|
+
logoUrl: string | null;
|
|
479
|
+
} | null;
|
|
440
480
|
};
|
|
441
481
|
}, {
|
|
442
482
|
response: {
|
|
@@ -474,6 +514,10 @@ export declare namespace UpdateRemnawaveSettingsCommand {
|
|
|
474
514
|
passwordSettings: {
|
|
475
515
|
enabled: boolean;
|
|
476
516
|
} | null;
|
|
517
|
+
brandingSettings: {
|
|
518
|
+
title: string | null;
|
|
519
|
+
logoUrl: string | null;
|
|
520
|
+
} | null;
|
|
477
521
|
};
|
|
478
522
|
}>;
|
|
479
523
|
type Response = z.infer<typeof ResponseSchema>;
|
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;
|
|
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"}
|
|
@@ -15,6 +15,7 @@ var UpdateRemnawaveSettingsCommand;
|
|
|
15
15
|
oauth2Settings: models_1.Oauth2SettingsSchema.optional(),
|
|
16
16
|
tgAuthSettings: models_1.TgAuthSettingsSchema.optional(),
|
|
17
17
|
passwordSettings: models_1.PasswordAuthSettingsSchema.optional(),
|
|
18
|
+
brandingSettings: models_1.BrandingSettingsSchema.optional(),
|
|
18
19
|
});
|
|
19
20
|
UpdateRemnawaveSettingsCommand.ResponseSchema = zod_1.z.object({
|
|
20
21
|
response: models_1.RemnawaveSettingsSchema,
|
|
@@ -1024,5 +1024,15 @@ export declare const ERRORS: {
|
|
|
1024
1024
|
readonly message: "Delete passkey error";
|
|
1025
1025
|
readonly httpCode: 500;
|
|
1026
1026
|
};
|
|
1027
|
+
readonly VALIDATE_REMNAAWAVE_SETTINGS_ERROR: {
|
|
1028
|
+
readonly code: "A199";
|
|
1029
|
+
readonly message: "Validate Remnawave settings error";
|
|
1030
|
+
readonly httpCode: 500;
|
|
1031
|
+
readonly withMessage: (message: string) => {
|
|
1032
|
+
code: string;
|
|
1033
|
+
message: string;
|
|
1034
|
+
httpCode: number;
|
|
1035
|
+
};
|
|
1036
|
+
};
|
|
1027
1037
|
};
|
|
1028
1038
|
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../constants/errors/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAwJY,MAAM;;;;;;;;;;wCAUN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA4IN,MAAM
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../constants/errors/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAwJY,MAAM;;;;;;;;;;wCAUN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA4IN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA0rBN,MAAM;;;;;;CAM3B,CAAC"}
|
|
@@ -995,4 +995,14 @@ exports.ERRORS = {
|
|
|
995
995
|
message: 'Delete passkey error',
|
|
996
996
|
httpCode: 500,
|
|
997
997
|
},
|
|
998
|
+
VALIDATE_REMNAAWAVE_SETTINGS_ERROR: {
|
|
999
|
+
code: 'A199',
|
|
1000
|
+
message: 'Validate Remnawave settings error',
|
|
1001
|
+
httpCode: 500,
|
|
1002
|
+
withMessage: (message) => ({
|
|
1003
|
+
code: 'A199',
|
|
1004
|
+
message,
|
|
1005
|
+
httpCode: 500,
|
|
1006
|
+
}),
|
|
1007
|
+
},
|
|
998
1008
|
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
export declare const BrandingSettingsSchema: z.ZodObject<{
|
|
3
|
+
title: z.ZodNullable<z.ZodString>;
|
|
4
|
+
logoUrl: z.ZodNullable<z.ZodString>;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
title: string | null;
|
|
7
|
+
logoUrl: string | null;
|
|
8
|
+
}, {
|
|
9
|
+
title: string | null;
|
|
10
|
+
logoUrl: string | null;
|
|
11
|
+
}>;
|
|
12
|
+
export type TBrandingSettings = z.infer<typeof BrandingSettingsSchema>;
|
|
13
|
+
//# sourceMappingURL=branding-settings.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"branding-settings.schema.d.ts","sourceRoot":"","sources":["../../../../models/remnawave-settings/branding-settings.schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,eAAO,MAAM,sBAAsB;;;;;;;;;EAGjC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.BrandingSettingsSchema = void 0;
|
|
7
|
+
const zod_1 = __importDefault(require("zod"));
|
|
8
|
+
exports.BrandingSettingsSchema = zod_1.default.object({
|
|
9
|
+
title: zod_1.default.nullable(zod_1.default.string()),
|
|
10
|
+
logoUrl: zod_1.default.nullable(zod_1.default.string().url()),
|
|
11
|
+
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../models/remnawave-settings/index.ts"],"names":[],"mappings":"AAAA,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iCAAiC,CAAC;AAChD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../models/remnawave-settings/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iCAAiC,CAAC;AAChD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC"}
|
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./branding-settings.schema"), exports);
|
|
17
18
|
__exportStar(require("./oauth2-settings.schema"), exports);
|
|
18
19
|
__exportStar(require("./passkey-settings.schema"), exports);
|
|
19
20
|
__exportStar(require("./password-auth-settings.schema"), exports);
|
|
@@ -20,7 +20,7 @@ exports.Oauth2SettingsSchema = zod_1.default.object({
|
|
|
20
20
|
plainDomain: zod_1.default.nullable(zod_1.default.string().refine((val) => val === 'localhost' ||
|
|
21
21
|
(0, isFQDN_1.default)(val, {
|
|
22
22
|
require_tld: true,
|
|
23
|
-
}), 'Must be a valid fully qualified domain name (FQDN), e.g. "
|
|
23
|
+
}), 'Must be a valid fully qualified domain name (FQDN), e.g. "remna.st"')),
|
|
24
24
|
allowedEmails: zod_1.default.array(zod_1.default.string()),
|
|
25
25
|
}),
|
|
26
26
|
yandex: zod_1.default.object({
|
|
@@ -12,7 +12,7 @@ exports.PasskeySettingsSchema = zod_1.default.object({
|
|
|
12
12
|
rpId: zod_1.default.nullable(zod_1.default.string().refine((val) => val === 'localhost' ||
|
|
13
13
|
(0, isFQDN_1.default)(val, {
|
|
14
14
|
require_tld: true,
|
|
15
|
-
}), 'Must be a valid fully qualified domain name (FQDN), e.g. "
|
|
15
|
+
}), 'Must be a valid fully qualified domain name (FQDN), e.g. "remna.st"')),
|
|
16
16
|
origin: zod_1.default.nullable(zod_1.default.string().refine((val) => /^http[s]?:\/\/localhost:\d+$/.test(val) ||
|
|
17
17
|
(0, isURL_1.default)(val, {
|
|
18
18
|
protocols: ['http', 'https'],
|
|
@@ -21,5 +21,5 @@ exports.PasskeySettingsSchema = zod_1.default.object({
|
|
|
21
21
|
allow_fragments: false,
|
|
22
22
|
allow_query_components: false,
|
|
23
23
|
allow_trailing_dot: false,
|
|
24
|
-
}), 'Must be a valid URL, e.g. "https://
|
|
24
|
+
}), 'Must be a valid URL, e.g. "https://remna.st"')),
|
|
25
25
|
});
|
|
@@ -126,6 +126,16 @@ export declare const RemnawaveSettingsSchema: z.ZodObject<{
|
|
|
126
126
|
}, {
|
|
127
127
|
enabled: boolean;
|
|
128
128
|
}>>;
|
|
129
|
+
brandingSettings: z.ZodNullable<z.ZodObject<{
|
|
130
|
+
title: z.ZodNullable<z.ZodString>;
|
|
131
|
+
logoUrl: z.ZodNullable<z.ZodString>;
|
|
132
|
+
}, "strip", z.ZodTypeAny, {
|
|
133
|
+
title: string | null;
|
|
134
|
+
logoUrl: string | null;
|
|
135
|
+
}, {
|
|
136
|
+
title: string | null;
|
|
137
|
+
logoUrl: string | null;
|
|
138
|
+
}>>;
|
|
129
139
|
}, "strip", z.ZodTypeAny, {
|
|
130
140
|
passkeySettings: {
|
|
131
141
|
enabled: boolean;
|
|
@@ -161,6 +171,10 @@ export declare const RemnawaveSettingsSchema: z.ZodObject<{
|
|
|
161
171
|
passwordSettings: {
|
|
162
172
|
enabled: boolean;
|
|
163
173
|
} | null;
|
|
174
|
+
brandingSettings: {
|
|
175
|
+
title: string | null;
|
|
176
|
+
logoUrl: string | null;
|
|
177
|
+
} | null;
|
|
164
178
|
}, {
|
|
165
179
|
passkeySettings: {
|
|
166
180
|
enabled: boolean;
|
|
@@ -196,6 +210,10 @@ export declare const RemnawaveSettingsSchema: z.ZodObject<{
|
|
|
196
210
|
passwordSettings: {
|
|
197
211
|
enabled: boolean;
|
|
198
212
|
} | null;
|
|
213
|
+
brandingSettings: {
|
|
214
|
+
title: string | null;
|
|
215
|
+
logoUrl: string | null;
|
|
216
|
+
} | null;
|
|
199
217
|
}>;
|
|
200
218
|
export type TRemnawaveSettings = z.infer<typeof RemnawaveSettingsSchema>;
|
|
201
219
|
//# sourceMappingURL=remnawave-settings.schema.d.ts.map
|
|
@@ -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;
|
|
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"}
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.RemnawaveSettingsSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const password_auth_settings_schema_1 = require("./password-auth-settings.schema");
|
|
6
|
+
const branding_settings_schema_1 = require("./branding-settings.schema");
|
|
6
7
|
const passkey_settings_schema_1 = require("./passkey-settings.schema");
|
|
7
8
|
const tg_auth_settings_schema_1 = require("./tg-auth-settings.schema");
|
|
8
9
|
const oauth2_settings_schema_1 = require("./oauth2-settings.schema");
|
|
@@ -11,4 +12,5 @@ exports.RemnawaveSettingsSchema = zod_1.z.object({
|
|
|
11
12
|
oauth2Settings: zod_1.z.nullable(oauth2_settings_schema_1.Oauth2SettingsSchema),
|
|
12
13
|
tgAuthSettings: zod_1.z.nullable(tg_auth_settings_schema_1.TgAuthSettingsSchema),
|
|
13
14
|
passwordSettings: zod_1.z.nullable(password_auth_settings_schema_1.PasswordAuthSettingsSchema),
|
|
15
|
+
brandingSettings: zod_1.z.nullable(branding_settings_schema_1.BrandingSettingsSchema),
|
|
14
16
|
});
|
|
@@ -15,6 +15,7 @@ var UpdateRemnawaveSettingsCommand;
|
|
|
15
15
|
oauth2Settings: models_1.Oauth2SettingsSchema.optional(),
|
|
16
16
|
tgAuthSettings: models_1.TgAuthSettingsSchema.optional(),
|
|
17
17
|
passwordSettings: models_1.PasswordAuthSettingsSchema.optional(),
|
|
18
|
+
brandingSettings: models_1.BrandingSettingsSchema.optional(),
|
|
18
19
|
});
|
|
19
20
|
UpdateRemnawaveSettingsCommand.ResponseSchema = zod_1.z.object({
|
|
20
21
|
response: models_1.RemnawaveSettingsSchema,
|
|
@@ -995,4 +995,14 @@ exports.ERRORS = {
|
|
|
995
995
|
message: 'Delete passkey error',
|
|
996
996
|
httpCode: 500,
|
|
997
997
|
},
|
|
998
|
+
VALIDATE_REMNAAWAVE_SETTINGS_ERROR: {
|
|
999
|
+
code: 'A199',
|
|
1000
|
+
message: 'Validate Remnawave settings error',
|
|
1001
|
+
httpCode: 500,
|
|
1002
|
+
withMessage: (message) => ({
|
|
1003
|
+
code: 'A199',
|
|
1004
|
+
message,
|
|
1005
|
+
httpCode: 500,
|
|
1006
|
+
}),
|
|
1007
|
+
},
|
|
998
1008
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.BrandingSettingsSchema = void 0;
|
|
7
|
+
const zod_1 = __importDefault(require("zod"));
|
|
8
|
+
exports.BrandingSettingsSchema = zod_1.default.object({
|
|
9
|
+
title: zod_1.default.nullable(zod_1.default.string()),
|
|
10
|
+
logoUrl: zod_1.default.nullable(zod_1.default.string().url()),
|
|
11
|
+
});
|
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./branding-settings.schema"), exports);
|
|
17
18
|
__exportStar(require("./oauth2-settings.schema"), exports);
|
|
18
19
|
__exportStar(require("./passkey-settings.schema"), exports);
|
|
19
20
|
__exportStar(require("./password-auth-settings.schema"), exports);
|
|
@@ -20,7 +20,7 @@ exports.Oauth2SettingsSchema = zod_1.default.object({
|
|
|
20
20
|
plainDomain: zod_1.default.nullable(zod_1.default.string().refine((val) => val === 'localhost' ||
|
|
21
21
|
(0, isFQDN_1.default)(val, {
|
|
22
22
|
require_tld: true,
|
|
23
|
-
}), 'Must be a valid fully qualified domain name (FQDN), e.g. "
|
|
23
|
+
}), 'Must be a valid fully qualified domain name (FQDN), e.g. "remna.st"')),
|
|
24
24
|
allowedEmails: zod_1.default.array(zod_1.default.string()),
|
|
25
25
|
}),
|
|
26
26
|
yandex: zod_1.default.object({
|
|
@@ -12,7 +12,7 @@ exports.PasskeySettingsSchema = zod_1.default.object({
|
|
|
12
12
|
rpId: zod_1.default.nullable(zod_1.default.string().refine((val) => val === 'localhost' ||
|
|
13
13
|
(0, isFQDN_1.default)(val, {
|
|
14
14
|
require_tld: true,
|
|
15
|
-
}), 'Must be a valid fully qualified domain name (FQDN), e.g. "
|
|
15
|
+
}), 'Must be a valid fully qualified domain name (FQDN), e.g. "remna.st"')),
|
|
16
16
|
origin: zod_1.default.nullable(zod_1.default.string().refine((val) => /^http[s]?:\/\/localhost:\d+$/.test(val) ||
|
|
17
17
|
(0, isURL_1.default)(val, {
|
|
18
18
|
protocols: ['http', 'https'],
|
|
@@ -21,5 +21,5 @@ exports.PasskeySettingsSchema = zod_1.default.object({
|
|
|
21
21
|
allow_fragments: false,
|
|
22
22
|
allow_query_components: false,
|
|
23
23
|
allow_trailing_dot: false,
|
|
24
|
-
}), 'Must be a valid URL, e.g. "https://
|
|
24
|
+
}), 'Must be a valid URL, e.g. "https://remna.st"')),
|
|
25
25
|
});
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.RemnawaveSettingsSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const password_auth_settings_schema_1 = require("./password-auth-settings.schema");
|
|
6
|
+
const branding_settings_schema_1 = require("./branding-settings.schema");
|
|
6
7
|
const passkey_settings_schema_1 = require("./passkey-settings.schema");
|
|
7
8
|
const tg_auth_settings_schema_1 = require("./tg-auth-settings.schema");
|
|
8
9
|
const oauth2_settings_schema_1 = require("./oauth2-settings.schema");
|
|
@@ -11,4 +12,5 @@ exports.RemnawaveSettingsSchema = zod_1.z.object({
|
|
|
11
12
|
oauth2Settings: zod_1.z.nullable(oauth2_settings_schema_1.Oauth2SettingsSchema),
|
|
12
13
|
tgAuthSettings: zod_1.z.nullable(tg_auth_settings_schema_1.TgAuthSettingsSchema),
|
|
13
14
|
passwordSettings: zod_1.z.nullable(password_auth_settings_schema_1.PasswordAuthSettingsSchema),
|
|
15
|
+
brandingSettings: zod_1.z.nullable(branding_settings_schema_1.BrandingSettingsSchema),
|
|
14
16
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remnawave/backend-contract",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.22",
|
|
4
4
|
"public": true,
|
|
5
5
|
"license": "AGPL-3.0-only",
|
|
6
6
|
"description": "A contract library for Remnawave Backend. It can be used in backend and frontend.",
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
"zod": "^3.25.76"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"validator": "13.15.15"
|
|
34
|
+
"validator": "13.15.15",
|
|
35
|
+
"@types/validator": "13.15.3"
|
|
35
36
|
}
|
|
36
37
|
}
|