corrected schema for export after changes
This commit is contained in:
parent
bf36f9aa56
commit
63f67b3b30
1 changed files with 8 additions and 4 deletions
|
|
@ -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({
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue