---
title: Restorer
description: Commits for one request. Make one per request with `restorer`.
updated_at: '2026-11-19T14:58:02+01:00'
created_at: '2026-11-19T13:39:54+01:00'
symbol:
  kind: interface
  name: Restorer
  signatures:
    - interface Restorer
  members:
    - name: claims
      kind: method
      signature: >-
        claims(vaultPath: string, markdown: string, self: string):
        ReadonlySet<string> | undefined
      description: >-
        The pages `markdown` at `vaultPath` claims, as permissions name them,
        when it publishes as page `self` now.
    - name: restore
      kind: method
      signature: >-
        restore(restore:
        [[reference/api/plugin-submissions/restore/Restore-interface|Restore]]):
        Promise<[[reference/api/plugin-submissions/restore/Restored|Restored]]>
      description: >-
        Commit `restore.markdown` at its page's path as `restore.account`,
        record it as their save with the commits it undoes, then take back what
        those commits' saves earned. GitHub failing throws `CommitsUnavailable`;
        anything `beforeMove` throws propagates, and nothing moves. A failed
        record or take-back is logged: the commit stands, and credit takes back
        what the undone saves earned on its next run.
  source: >-
    https://github.com/mia-cx/svartz/blob/711f3906a713c8b9a5a572d0f34c85e90c3bc3d1/packages/plugin-submissions/src/restore.ts#L72
---

# Restorer
