/** * Database / storage backups — list / trigger / restore / delete. * * GET /backups?projectId=&envId= * POST /backups/trigger — schedule a fresh backup * POST /backups/:id/restore — restore into same or alternate DB * DELETE /backups/:id * * Routes live under the Platform API (`/api/v1/backups/*`). Previously * accessed via `authedFetch` in the CLI; promoted to a first-class SDK * module per ADR-077 trio-completeness. */ import type { BackupEntry, DeleteBackupResult, ListBackupsResult, RestoreBackupResult, TriggerBackupResult } from '@sylphx/contract'; import type { Client } from './client.js'; export type BackupStatus = BackupEntry['status']; export type Backup = BackupEntry; export type ListResult = ListBackupsResult; export declare const list: (client: Client, projectId: string, envId?: string) => Promise; export declare const trigger: (client: Client, projectId: string, envId: string) => Promise; export declare const restore: (client: Client, backupId: string, targetDatabaseUrl?: string) => Promise; /** * Point-in-time recovery. Targets a specific timestamp between the most * recent base backup and current time; the platform walks WAL to land * exactly there. Phase 4b Matrix-2 gap closure. */ export declare const restorePointInTime: (client: Client, databaseId: string, body: { /** RFC-3339 timestamp to restore to (must lie within WAL retention window). */ readonly targetTime: string; /** When true, restore into the same DB in place (destructive). Otherwise a new branch DB is created. */ readonly inPlace?: boolean; /** Optional explicit target database URL for restore-to-external. */ readonly targetDatabaseUrl?: string; }) => Promise<{ success: boolean; message: string; restoredToTimestamp: string; }>; /** * In-place restore from a known backup — overwrites the source DB * without a new branch. Destructive; requires the caller to hold a * maintenance window. */ export declare const restoreInPlace: (client: Client, backupId: string) => Promise<{ success: boolean; message: string; }>; declare const _delete: (client: Client, backupId: string) => Promise; export { _delete as delete }; //# sourceMappingURL=backups.d.ts.map