From a7e36e98d7e4fe79809a6f2b1c636377f33236aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Tr=C3=A1vn=C3=ADk?= Date: Wed, 3 Dec 2025 08:33:50 +0100 Subject: [PATCH] Add 401 error response for password requirement in export endpoints --- app/client/api-client/types.gen.ts | 12 ++++++++++++ .../modules/lifecycle/config-export.dto.ts | 16 ++++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/app/client/api-client/types.gen.ts b/app/client/api-client/types.gen.ts index d025a2fe..33078a5d 100644 --- a/app/client/api-client/types.gen.ts +++ b/app/client/api-client/types.gen.ts @@ -2691,6 +2691,12 @@ export type ExportVolumesErrors = { 400: { error: string; }; + /** + * Password required for export + */ + 401: { + error: string; + }; /** * Volume not found */ @@ -2849,6 +2855,12 @@ export type ExportBackupSchedulesErrors = { 400: { error: string; }; + /** + * Password required for export + */ + 401: { + error: string; + }; /** * Backup schedule not found */ diff --git a/app/server/modules/lifecycle/config-export.dto.ts b/app/server/modules/lifecycle/config-export.dto.ts index f0e66859..ce5d53ab 100644 --- a/app/server/modules/lifecycle/config-export.dto.ts +++ b/app/server/modules/lifecycle/config-export.dto.ts @@ -133,6 +133,14 @@ export const volumesExportDto = describeRoute({ }, }, }, + 401: { + description: "Password required for export", + content: { + "application/json": { + schema: resolver(errorResponseSchema), + }, + }, + }, 404: { description: "Volume not found", content: { @@ -269,6 +277,14 @@ export const backupSchedulesExportDto = describeRoute({ }, }, }, + 401: { + description: "Password required for export", + content: { + "application/json": { + schema: resolver(errorResponseSchema), + }, + }, + }, 404: { description: "Backup schedule not found", content: {