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; export type SecretsMode = typeof secretsModeSchema.infer;
const exportResponseSchema = type({ const exportResponseSchema = type({
"version?": "number", version: "number",
"exportedAt?": "string", "exportedAt?": "string",
"recoveryKey?": "string",
"volumes?": "unknown[]", "volumes?": "unknown[]",
"repositories?": "unknown[]", "repositories?": "unknown[]",
"backupSchedules?": "unknown[]", "backupSchedules?": "unknown[]",
"notificationDestinations?": "unknown[]", "notificationDestinations?": "unknown[]",
"admin?": type({ "users?": type({
"id?": "number",
username: "string", username: "string",
"passwordHash?": "string", "passwordHash?": "string",
"recoveryKey?": "string", "createdAt?": "number",
}).or("null"), "updatedAt?": "number",
"hasDownloadedResticPassword?": "boolean",
}).array(),
}); });
const errorResponseSchema = type({ const errorResponseSchema = type({