import { z } from "zod"; /** * Schema for centralized backup tracking table (_appwrite_backups) * * Tracks all backups created for databases, buckets, and comprehensive backups */ export type BackupType = 'database' | 'bucket' | 'comprehensive'; export type BackupFormat = 'json' | 'zip'; export type BackupStatus = 'completed' | 'partial' | 'failed'; export type RestorationStatus = 'completed' | 'partial' | 'failed' | 'not_restored'; export declare const BACKUP_TYPES: readonly ["database", "bucket", "comprehensive"]; export declare const BACKUP_FORMATS: readonly ["json", "zip"]; export declare const BACKUP_STATUSES: readonly ["completed", "partial", "failed"]; export declare const RESTORATION_STATUSES: readonly ["completed", "partial", "failed", "not_restored"]; export declare const BackupTypeSchema: z.ZodEnum<{ bucket: "bucket"; database: "database"; comprehensive: "comprehensive"; }>; export declare const BackupFormatSchema: z.ZodEnum<{ json: "json"; zip: "zip"; }>; export declare const BackupStatusSchema: z.ZodEnum<{ completed: "completed"; failed: "failed"; partial: "partial"; }>; export declare const RestorationStatusSchema: z.ZodEnum<{ completed: "completed"; failed: "failed"; partial: "partial"; not_restored: "not_restored"; }>; export interface BackupMetadata { $id: string; $createdAt: string; $updatedAt: string; backupType: BackupType; backupId: string; manifestFileId?: string; format: BackupFormat; sizeBytes: number; databaseId?: string; bucketId?: string; comprehensiveBackupId?: string; collections?: number; documents?: number; fileCount?: number; status: BackupStatus; error?: string; restoredAt?: string; restorationStatus: RestorationStatus; restorationError?: string; } export declare const BackupMetadataSchema: z.ZodObject<{ $id: z.ZodString; $createdAt: z.ZodString; $updatedAt: z.ZodString; backupType: z.ZodEnum<{ bucket: "bucket"; database: "database"; comprehensive: "comprehensive"; }>; backupId: z.ZodString; manifestFileId: z.ZodOptional; format: z.ZodEnum<{ json: "json"; zip: "zip"; }>; sizeBytes: z.ZodNumber; databaseId: z.ZodOptional; bucketId: z.ZodOptional; comprehensiveBackupId: z.ZodOptional; collections: z.ZodOptional; documents: z.ZodOptional; fileCount: z.ZodOptional; status: z.ZodEnum<{ completed: "completed"; failed: "failed"; partial: "partial"; }>; error: z.ZodOptional; restoredAt: z.ZodOptional; restorationStatus: z.ZodDefault>; restorationError: z.ZodOptional; }, z.core.$strip>; export declare const BACKUP_TABLE_ID = "appwrite_backups"; export declare const BACKUP_TABLE_NAME = "Backup Tracking";