/** * Management API (self-hosted runtime administration). * * The Platform operates a "Management" surface distinct from project-level * Platform CRUD: it controls the self-hosted runtime that executes * customer deployments (ADR-070 PaaS reconciler). Namespaced under * `/management/*` on the Platform host. * * GET /management/resources/databases/:id/backups * POST /management/resources/databases/:id/restore * POST /management/resources/databases/:id/restore-in-place * * The `backups.ts` namespace wraps project-level customer backups (user * DB backups shown in the Console); this module wraps the runtime-fabric * control plane that reconciles managed database resources under the hood. * Two different audiences — do not merge. * * @see docs/adr/ADR-070-paas-reconciler-architecture.md */ import type { Client } from './client.js'; export interface ManagedBackup { readonly id: string; readonly databaseId: string; readonly createdAt: string; readonly sizeBytes: number; readonly method: 'snapshot' | 'pitr'; readonly status: 'completed' | 'in_progress' | 'failed'; } export declare const backups: (client: Client, databaseId: string) => Promise<{ backups: readonly ManagedBackup[]; }>; export interface RestoreInput { /** RFC-3339 timestamp within the WAL retention window. */ readonly targetTime: string; } export interface RestoreResult { readonly restored: boolean; readonly resourceId?: string; readonly targetTime?: string; readonly message?: string; } /** * PITR restore to a new managed database resource; original remains untouched. */ export declare const restore: (client: Client, databaseId: string, body: RestoreInput) => Promise; /** * PITR restore IN PLACE from the target point-in-time. Destructive: * the caller must hold a * maintenance window and have explicit acknowledgement. */ export declare const restoreInPlace: (client: Client, databaseId: string, body: RestoreInput & { readonly acknowledgeDestructive: true; }) => Promise; //# sourceMappingURL=management.d.ts.map