corrected schema for export after changes

This commit is contained in:
Jakub Trávník 2025-12-16 11:48:55 +01:00
parent bf36f9aa56
commit 63f67b3b30

View file

@ -20,17 +20,21 @@ export type FullExportBody = typeof fullExportBodySchema.infer;
export type SecretsMode = typeof secretsModeSchema.infer;
const exportResponseSchema = type({
"version?": "number",
version: "number",
"exportedAt?": "string",
"recoveryKey?": "string",
"volumes?": "unknown[]",
"repositories?": "unknown[]",
"backupSchedules?": "unknown[]",
"notificationDestinations?": "unknown[]",
"admin?": type({
"users?": type({
"id?": "number",
username: "string",
"passwordHash?": "string",
"recoveryKey?": "string",
}).or("null"),
"createdAt?": "number",
"updatedAt?": "number",
"hasDownloadedResticPassword?": "boolean",
}).array(),
});
const errorResponseSchema = type({