few missing corrections related to all users export instead of just admin

This commit is contained in:
Jakub Trávník 2025-12-16 12:47:20 +01:00
parent 63f67b3b30
commit 66f8ff0e50
3 changed files with 15 additions and 11 deletions

View file

@ -2631,7 +2631,7 @@ export type ExportFullConfigData = {
export type ExportFullConfigErrors = { export type ExportFullConfigErrors = {
/** /**
* Password required for sensitive export options * Password required for export or authentication failed
*/ */
401: { 401: {
error: string; error: string;
@ -2651,16 +2651,20 @@ export type ExportFullConfigResponses = {
* Full configuration export * Full configuration export
*/ */
200: { 200: {
admin?: { version: number;
username: string;
passwordHash?: string;
recoveryKey?: string;
} | null;
backupSchedules?: Array<unknown>; backupSchedules?: Array<unknown>;
exportedAt?: string; exportedAt?: string;
notificationDestinations?: Array<unknown>; notificationDestinations?: Array<unknown>;
recoveryKey?: string;
repositories?: Array<unknown>; repositories?: Array<unknown>;
version?: number; users?: Array<{
username: string;
createdAt?: number;
hasDownloadedResticPassword?: boolean;
id?: number;
passwordHash?: string;
updatedAt?: number;
}>;
volumes?: Array<unknown>; volumes?: Array<unknown>;
}; };
}; };

View file

@ -224,7 +224,7 @@ export function ExportDialog({
</Label> </Label>
</div> </div>
<p className="text-xs text-muted-foreground ml-7"> <p className="text-xs text-muted-foreground ml-7">
Include the hashed admin password for seamless migration. The password is already securely Include the hashed user passwords for seamless migration. The passwords are already securely
hashed (argon2). hashed (argon2).
</p> </p>

View file

@ -10,9 +10,9 @@ export const fullExportBodySchema = type({
"secretsMode?": secretsModeSchema, "secretsMode?": secretsModeSchema,
/** Password required for authentication */ /** Password required for authentication */
password: "string", password: "string",
/** Include the recovery key (requires password) */ /** Include the recovery key */
"includeRecoveryKey?": "boolean", "includeRecoveryKey?": "boolean",
/** Include the admin password hash */ /** Include the user password hash */
"includePasswordHash?": "boolean", "includePasswordHash?": "boolean",
}); });
@ -55,7 +55,7 @@ export const fullExportDto = describeRoute({
}, },
}, },
401: { 401: {
description: "Password required for sensitive export options", description: "Password required for export or authentication failed",
content: { content: {
"application/json": { "application/json": {
schema: resolver(errorResponseSchema), schema: resolver(errorResponseSchema),