> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bijection.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Reviewed document generation

> Capture figures, render on your own infrastructure, review, release and mail the result

> [!NOTE]
>
> These examples describe the current Bijection CLI and SDK source. Use builds
> from the same source commit for these APIs. The public CLI and npm SDK
> are published independently and may lag this reference.

The [document deliverables application](https://github.com/bijectionhq/bijection/tree/main/examples/document-deliverables)
keeps a finance team's figures and notes under a protected label, renders
monthly reports on an external renderer, has someone independent review
them, releases them to members and announces them by mail. The
[document guide](https://docs.bijection.com/files/documents) explains the documents library it uses.

```mermaid theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
flowchart LR
    Source[Figures and notes under finance] --> Capture[Frozen capture]
    Capture --> Render[External renderer task]
    Render --> Stored[Rendered file under finance]
    Stored --> Review[Independent review verdict]
    Review --> Release[Release through reportRelease]
    Release --> Mail[Mail through Notify]
```

## The app tree

| Path | What it holds |
| - | - |
| `access.*` | The `finance` label, the `reportRelease` release and the roles |
| `figures.*`, `reports.*`, `deliveries.*` | The app's own tables and functions |
| `docs` | The documents library: notes, templates and reports |
| `reviews` | Review verdicts, recorded by `reviews.recorder` |
| `notify`, `inbox` | The Notify app and the notices library |
| `renderer.token`, `renderer.upload` | The secrets the renderer presents and posts with |

Figures, notes and rendered reports stay under `finance`. A report leaves
that label only through `reportRelease`, a reviewed edge down the label
order, so `bijection check` lists the release among the grave acts of the
function that discloses it.

## Prepare the renderer

Rendering capacity runs on your infrastructure. Set the renderer's
credentials with `bijection secret set renderer.token` and
`bijection secret set renderer.upload`. The renderer posts each rendered
file to the library's `POST /documents/renders` route with that bearer.

## Review before release

A capture freezes its inputs: edits made after it never enter the render.
The rendered file is stored under `finance`. A reviewer other than the
author records a verdict on that exact file, and `reports.release`
discloses only a report whose verdict passed. Generation, release and
mail are separate tasks, each with its own `once` and result. A finished
render is not a release, and a release is not a delivery.

`deliveries.send` mails a released report to one address through Notify,
and its continuation `deliveries.mailed` records the result. Notify alone
holds the mail provider and its secret, and it applies its consent and
suppression rules.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.