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

View file

@ -224,7 +224,7 @@ export function ExportDialog({
</Label>
</div>
<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).
</p>

View file

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