---
title: '@svartz/plugin-submissions/restore'
description: The `@svartz/plugin-submissions/restore` entry point.
updated_at: '2026-11-19T14:58:02+01:00'
---

# @svartz/plugin-submissions/restore

## Interfaces

- [Restore](https://svartz.dev/reference/api/plugin-submissions/restore/restore-interface.md) — One page's content to commit back.
- [Restorer](https://svartz.dev/reference/api/plugin-submissions/restore/restorer-interface.md) — Commits for one request. Make one per request with `restorer`.

## Types

- [Restored](https://svartz.dev/reference/api/plugin-submissions/restore/restored.md) — What `Restorer.restore` did: committed, or why not. `unchanged` when the branch already held the content, `changed` when its file isn't the one the caller read, `protected` when a rule for the branch refuses the commit, `busy` when the branch moved on meanwhile. Only `commit` moved the branch.
- [RouteClaims](https://svartz.dev/reference/api/plugin-submissions/restore/routeclaims.md) — The routes the last build allocated, which a note's frontmatter can claim: JSON, for server data.

## Functions

- [commitAttribution](https://svartz.dev/reference/api/plugin-submissions/restore/commitattribution.md) — The account a commit is authored as, with its linked GitHub account as co-author, and the App's bot that commits it.
- [restorer](https://svartz.dev/reference/api/plugin-submissions/restore/restorer-function.md) — Restores a vault's pages. Only a GitHub App commits as an account, so with a token `commits` is false and every restore throws. `token` shares a `sourceToken` with the vault's commit reader.
