few missing corrections related to all users export instead of just admin
This commit is contained in:
parent
63f67b3b30
commit
66f8ff0e50
3 changed files with 15 additions and 11 deletions
|
|
@ -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>;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -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>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue