{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/scribase-com/json-schema/scribase-com-post-v1-organizations-org-projects-project-backups-backupid-restore-r2-schema.json",
  "title": "PostV1OrganizationsOrgProjectsProjectBackupsBackupidRestoreR2",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/scribase-com-openapi-generated.yml#/components/schemas/PostV1OrganizationsOrgProjectsProjectBackupsBackupidRestoreR2",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Restore operation identifier."
    },
    "source": {
      "type": "object",
      "description": "Identifiers of the source environment."
    },
    "target": {
      "type": "object",
      "description": "Identifiers of the target environment."
    },
    "source_backup_id": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "description": "One of pending, restored, or failed."
    },
    "created_at_epoch_seconds": {
      "type": "integer"
    },
    "relation_count": {
      "type": "integer",
      "description": "Number of relations restored."
    },
    "rls_relation_count": {
      "type": "integer",
      "description": "Number of RLS‑protected relations restored."
    },
    "evidence_sha256": {
      "type": "string",
      "description": "SHA‑256 of the evidence record (present when completed)."
    },
    "restored_at_epoch_seconds": {
      "type": "integer"
    }
  }
}