---
title: Restore
description: One page's content to commit back.
updated_at: '2026-11-19T14:58:02+01:00'
created_at: '2026-11-19T13:39:54+01:00'
symbol:
  kind: interface
  name: Restore
  signatures:
    - interface Restore
  members:
    - name: account
      kind: property
      signature: 'readonly account: [[reference/api/auth/server/Account|Account]]'
      description: 'Who commits it, as `readSignIn` answered.'
    - name: request
      kind: property
      signature: 'readonly request: Request'
      description: 'The request asking, whose host names the author''s address.'
    - name: page
      kind: property
      signature: 'readonly page: { … }'
      description: >-
        The page: its route below the deployment base, as saves record it, and
        its vault path.
    - name: page.href
      kind: property
      signature: 'readonly href: string'
    - name: page.path
      kind: property
      signature: 'readonly path: string'
    - name: markdown
      kind: property
      signature: 'readonly markdown: string'
    - name: current
      kind: property
      signature: 'readonly current: string'
      description: >-
        The file as the caller read it on the branch: the commit refuses unless
        the branch still holds it.
    - name: undoes
      kind: property
      signature: 'readonly undoes: readonly string[]'
      description: >-
        The commits it undoes, as GitHub lists them for the page: those after
        the restored revision, up to `current`'s. Recorded with the save, so
        none of them earns reputation afterwards, even one whose landing the
        mirror learns of only later, such as a pull request merged a moment
        before; what their saves earned already is taken back.
    - name: title
      kind: property
      signature: 'readonly title: string'
      description: The commit's title.
    - name: note
      kind: property
      signature: 'readonly note: string'
      description: >-
        The paragraph after the title, which history shows as the change's
        summary.
    - name: beforeMove
      kind: method
      signature: >-
        readonly beforeMove(commit: { readonly sha: string; readonly url: string
        }): Promise<void>
      description: >-
        Runs once the commit exists and before the branch moves to it: where the
        caller records the commit it makes.
  source: >-
    https://github.com/mia-cx/svartz/blob/711f3906a713c8b9a5a572d0f34c85e90c3bc3d1/packages/plugin-submissions/src/restore.ts#L38
---

# Restore
