{
  "openapi": "3.2.0",
  "info": {
    "title": "API",
    "description": "Capsule's server surface: one REST contract every client, and every federated server, speaks. The\nserver holds no keys. Every write is sealed on the client before it is sent, and the sync feed\nreturns opaque envelopes, so no operation accepts or returns a plaintext asset.\n\n## Protocol negotiation\n\n| Header | Direction | Rule |\n| --- | --- | --- |\n| `X-Capsule-Protocol` | request | Required on every gated operation. |\n| `X-Capsule-Crypto-Suite` | request | Sent on writes; validated when present. |\n| `X-Capsule-Sidecar-Schema` | request | Validated when present; absence is not refused. |\n| `X-Capsule-Protocol-Min`, `-Max` | response | On every response, including `401`, `413`, `426` and an unrouted `404` or `405`. |\n| `X-Capsule-Min-Client-Build` | response | On every response. Advisory; `0.0.0` means no cutoff. |\n| `X-Request-Id` | response | On every response: a UUIDv7 the server mints. An inbound value is ignored, never echoed. |\n\n- A **write** (any method but `GET` and `HEAD`) whose protocol is outside `[Min, Max]` is\n  `426 error.protocol.version_unsupported`; the window is only in the headers.\n- A **read** (`GET` or `HEAD`) is admitted at any well-formed protocol date, past or future.\n- A missing or malformed header on a gated operation is `400 error.request.malformed`.\n- The advertised window and the enforced one come from one source and cannot differ.\n\nThese operations skip the request gate and still carry the response headers:\n\n- `GET /v1/version`: the probe a client makes before it knows the window.\n- `GET /.well-known/capsule/*`: public discovery.\n- `/s/{opaque_id}` and its `wrapped-secret` and `blob/{hash}` reads: a `426` would break a share\n  link's indistinguishable `404`.\n- `POST /d/{opaque_id}` and `PATCH`/`GET /d/{opaque_id}/{upload_id}`: the drop link pinned its\n  versions when it was issued.\n- `POST /v1/auth/refresh` and `POST /v1/auth/logout`: refusing them would cut off reads that are\n  still allowed, or keep open a session its holder closed. Login and register stay gated.\n\n## Credentials\n\nOne `bearer` security scheme, `Authorization: Bearer`, carries both kinds of credential: a\nsession's access token and a federation capability. Each is verified by the module that issued\nit, and the generated client keeps one credential.\n\n## Errors\n\nEvery rejection is an RFC 9457 problem whose `code` member is a stable `error.*` catalog code.\nA client switches on `code`, never on the status alone, and localizes it itself. `request_id`\nrepeats the response's `X-Request-Id`: a client shows it for the user to quote and never parses\nit. It is declared on every problem but never required, so a client stays lenient toward a\nserver that predates it.\n\nThe common rejection classes and their statuses follow; each operation lists every status it\ncan return.\n\n| Rejection | Status |\n| --- | --- |\n| Structural: bad envelope, unknown enum, sizes | `400` |\n| Unauthenticated or expired token | `401` |\n| Unauthorized: capability, hard quota, suspension | `403` |\n| Not found, including the indistinguishable-`404` surfaces | `404` |\n| Stale state: chain, cursor, directory regression | `409` |\n| Gone: a superseded or deleted record | `410` |\n| Payload too large | `413` |\n| Unsupported chunk media type | `415` |\n| A write forwarded as TLS early data | `425` |\n| Protocol outside `[Min, Max]` | `426` |\n| Rate limited | `429` |\n| A fault the server can explain, such as a store outage | `503` with `Retry-After` |\n| Storage full | `507` |\n| Unexplained internal state, logged at `ERROR` | `500` |",
    "version": "0.0.0"
  },
  "paths": {
    "/v1/auth/register": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Create an account, and open its first session.",
        "description": "# Why it signs you in\n\nThe alternative is `201` with no body and a client that immediately posts the same\ncredentials to `/v1/auth/login`, which is one more round trip for one more chance to fail and\nnothing gained. It also makes the CLI's `capsule register` mean what a person expects: after\nit, you are registered *and* signed in.\n\n# What it does not do\n\n**It does not publish a device directory**, and the account is therefore unable to upload\nuntil its client publishes one. That is not an omission here: there is deliberately no\naccount-creation fallback for invariant 7's floor, precisely so that \"was this device in the\ndirectory\" has an honest answer for a brand-new account, and the honest answer is *no*. A\nclient's first action after registering is `POST /v1/auth/devices/directory`.\n\n# Rate-limited per source\n\nThis is the one unauthenticated write on the surface, and its `409` is an account oracle, so\nevery attempt whose body parses is charged against [`budgets::REGISTRATION_SOURCE`] for the\ntrusted client address **before** the address and password are validated or the registry is\nasked anything: probing costs the prober whatever the answer. A body the `Json` extractor\nrefuses (`400`/`415`/`422`) never reaches the handler and is not charged; it learns nothing\nabout any account. A spent budget is `429 error.auth.rate_limited` and a full limiter\npartition `429 error.auth.registration_at_capacity`, both with `Retry-After`; a counter store\nthat cannot answer is `500`, never an admission.\n\n# `200`, where Salvo answered `201`\n\nKynos's `Created` requires a `Location` — a `201` that does not say *where* tells a client\nsomething exists and not how to reach it, which is a defect the type refuses to let you\ncommit. This server exposes no URL for an account: `GET /v1/auth/profile` is among the\noperations not ported to this server. Inventing a location to satisfy a status would be\ninventing a surface, so the status moved instead. What a caller actually needs — the token\npair — is in the body either way.",
        "operationId": "register_user",
        "parameters": [
          {
            "name": "X-Capsule-Protocol",
            "in": "header",
            "description": "The `YYYY-MM-DD` protocol version this request is written against. Outside the server's `[X-Capsule-Protocol-Min, X-Capsule-Protocol-Max]` window the request is refused with `426`.",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
            }
          },
          {
            "name": "X-Capsule-Crypto-Suite",
            "in": "header",
            "description": "The crypto suite id from the primitives inventory. Sent on writes; a suite this server does not implement is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          },
          {
            "name": "X-Capsule-Sidecar-Schema",
            "in": "header",
            "description": "The sidecar schema version declared at `sidecar_schema` field 0. Sent on metadata updates; a schema newer than this server indexes is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RegisterRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "400": {
            "description": "Bad Request; Invalid registration; Malformed handshake",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "Payload Too Large; the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported Media Type",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TokenResponse"
                }
              }
            }
          },
          "409": {
            "description": "Account already exists",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "403": {
            "description": "Password sign-in disabled",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying (RFC 9110 delta-seconds): the problem's `retry_after` instant, measured from the server's clock.",
                "schema": {
                  "type": "integer",
                  "minimum": 0.0,
                  "format": "uint64"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/RegistrationRateLimitedProblem"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "425": {
            "description": "Too early",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "426": {
            "description": "Protocol version unsupported",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        }
      }
    },
    "/v1/auth/login": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Exchange an email and password for a session — or for a second-factor challenge.",
        "description": "The two advisory identifiers a client may send — `cohort_hash` and `device_id` — are recorded\non the session for the devices listing and gate nothing; an unusable one is dropped rather\nthan refused.\n\n# Two statuses, because there are two outcomes\n\nAn account with a confirmed second factor gets **`202`** and a short-lived\nchallenge: the credentials were accepted and the request is not complete. No session is\nopened, no cohort is recorded and no refresh token is minted, because none of those may exist\nfor an authentication that has not finished — and the client's advisory identifiers ride the\n*completing* request instead, since that is what creates the session they describe.\n\nThe retired surface got this wrong in the most consequential way available: it had all four\nTOTP operations and its login never issued a challenge, so a confirmed second factor gated\nnothing at all.",
        "operationId": "login_user",
        "parameters": [
          {
            "name": "X-Capsule-Protocol",
            "in": "header",
            "description": "The `YYYY-MM-DD` protocol version this request is written against. Outside the server's `[X-Capsule-Protocol-Min, X-Capsule-Protocol-Max]` window the request is refused with `426`.",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
            }
          },
          {
            "name": "X-Capsule-Crypto-Suite",
            "in": "header",
            "description": "The crypto suite id from the primitives inventory. Sent on writes; a suite this server does not implement is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          },
          {
            "name": "X-Capsule-Sidecar-Schema",
            "in": "header",
            "description": "The sidecar schema version declared at `sidecar_schema` field 0. Sent on metadata updates; a schema newer than this server indexes is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LoginRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "400": {
            "description": "Bad Request; Malformed handshake",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "Payload Too Large; the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported Media Type",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "200": {
            "description": "A session was opened; here is its token pair.",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TokenResponse"
                }
              }
            }
          },
          "202": {
            "description": "The password verified; a second factor is required to finish.",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SecondFactorChallenge"
                }
              }
            }
          },
          "401": {
            "description": "Invalid credentials",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "403": {
            "description": "Password sign-in disabled",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "423": {
            "description": "Account locked",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "425": {
            "description": "Too early",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "426": {
            "description": "Protocol version unsupported",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        }
      }
    },
    "/v1/auth/logout/all/challenge": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Issue a single-use challenge for a global sign-out.",
        "description": "**Authenticated by a session token, unlike the revoke itself.** That is not a contradiction\nof the ceremony's asymmetry: a challenge is worthless without the identity key, so handing\none to a stolen token costs nothing — while issuing them unauthenticated would make this an\noracle for whether an account exists. The account comes from the credential and never from a\nrequest field, so a caller cannot ask for somebody else's challenge.",
        "operationId": "revoke_all_challenge",
        "parameters": [
          {
            "name": "X-Capsule-Protocol",
            "in": "header",
            "description": "The `YYYY-MM-DD` protocol version this request is written against. Outside the server's `[X-Capsule-Protocol-Min, X-Capsule-Protocol-Max]` window the request is refused with `426`.",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
            }
          },
          {
            "name": "X-Capsule-Crypto-Suite",
            "in": "header",
            "description": "The crypto suite id from the primitives inventory. Sent on writes; a suite this server does not implement is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          },
          {
            "name": "X-Capsule-Sidecar-Schema",
            "in": "header",
            "description": "The sidecar schema version declared at `sidecar_schema` field 0. Sent on metadata updates; a schema newer than this server indexes is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized; Master-key proof required; Master-key proof invalid",
            "headers": {
              "WWW-Authenticate": {
                "description": "The challenge the client must answer, per RFC 9110 section 11.6.1.",
                "schema": {
                  "type": "string"
                },
                "example": "Bearer"
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RevokeChallengeResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "425": {
            "description": "Too early",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request; Malformed handshake",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "426": {
            "description": "Protocol version unsupported",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/auth/logout/all": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Close every session for the account the proof establishes.",
        "description": "**No `Auth`, deliberately.** design/authentication.md gates this on proof of master-key\npossession *instead of* a session token, and the reason is the damage scenario: an attacker\nholding a stolen token could otherwise invoke \"log out of all devices\" and lock the\nlegitimate user out of every device they own. Requiring the identity key means a stolen\ntoken can revoke only itself. The account is established by the burned challenge, so there\nis no account field for a caller to aim at either.\n\nThe caller's own session goes with the rest. That is the ceremony, not an oversight.",
        "operationId": "revoke_all",
        "parameters": [
          {
            "name": "X-Capsule-Protocol",
            "in": "header",
            "description": "The `YYYY-MM-DD` protocol version this request is written against. Outside the server's `[X-Capsule-Protocol-Min, X-Capsule-Protocol-Max]` window the request is refused with `426`.",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
            }
          },
          {
            "name": "X-Capsule-Crypto-Suite",
            "in": "header",
            "description": "The crypto suite id from the primitives inventory. Sent on writes; a suite this server does not implement is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          },
          {
            "name": "X-Capsule-Sidecar-Schema",
            "in": "header",
            "description": "The sidecar schema version declared at `sidecar_schema` field 0. Sent on metadata updates; a schema newer than this server indexes is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RevokeAllRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "400": {
            "description": "Bad Request; Malformed handshake",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "Payload Too Large; the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported Media Type",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RevokeAllResponse"
                }
              }
            }
          },
          "401": {
            "description": "Master-key proof required; Master-key proof invalid",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "425": {
            "description": "Too early",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "426": {
            "description": "Protocol version unsupported",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        }
      }
    },
    "/v1/auth/reauthenticate": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Prove a credential again on the current session, without opening a new one.",
        "description": "**The only way to satisfy the freshness gate sensitive operations enforce**, and it exists\nbecause without it the gate is unusable: `authenticated_at` is deliberately *not* reset by a\nrefresh, so a user signed in an hour ago would otherwise have to sign out entirely to add a\ndevice — and the session they abandoned would linger in their own devices listing.\n\nIt does not mint tokens and does not rotate the session. The caller keeps the credential\nthey already hold; what changes is one timestamp on the record behind it.\n\n# Errors\n\nThe same refusals as a sign-in, for the same reasons: a wrong password is\n`401 error.auth.invalid_credentials`, a locked account is `403`, and the account directory\nfailing is `500`. A caller that guessed a password here learns exactly what it would learn\nat `/v1/auth/login`, and no more. A deployment that refuses passwords answers\n`403 error.auth.password_disabled` before the password is checked, as login does.",
        "operationId": "reauthenticate",
        "parameters": [
          {
            "name": "X-Capsule-Protocol",
            "in": "header",
            "description": "The `YYYY-MM-DD` protocol version this request is written against. Outside the server's `[X-Capsule-Protocol-Min, X-Capsule-Protocol-Max]` window the request is refused with `426`.",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
            }
          },
          {
            "name": "X-Capsule-Crypto-Suite",
            "in": "header",
            "description": "The crypto suite id from the primitives inventory. Sent on writes; a suite this server does not implement is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          },
          {
            "name": "X-Capsule-Sidecar-Schema",
            "in": "header",
            "description": "The sidecar schema version declared at `sidecar_schema` field 0. Sent on metadata updates; a schema newer than this server indexes is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReauthenticateRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "401": {
            "description": "Unauthorized; Invalid credentials",
            "headers": {
              "WWW-Authenticate": {
                "description": "The challenge the client must answer, per RFC 9110 section 11.6.1.",
                "schema": {
                  "type": "string"
                },
                "example": "Bearer"
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden; Password sign-in disabled",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request; Malformed handshake",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "Payload Too Large; the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported Media Type",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReauthenticateResponse"
                }
              }
            }
          },
          "423": {
            "description": "Account locked",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "425": {
            "description": "Too early",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "426": {
            "description": "Protocol version unsupported",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/auth/devices/{session_id}": {
      "delete": {
        "tags": [
          "devices"
        ],
        "summary": "Revoke one of the caller's sessions.",
        "description": "Any live token may do this, including for the session making the request — signing this\ndevice out is a legitimate thing to ask for, and refusing it would only push a client into\ncalling `logout` and hoping the two behave the same.\n\n**Only the caller's own sessions.** The ownership check is against the record the store\nreturns rather than against a separate lookup, so there is no window between checking and\nclosing, and a session id belonging to another account answers exactly as an unknown one\ndoes.",
        "operationId": "revoke_session",
        "parameters": [
          {
            "name": "session_id",
            "in": "path",
            "description": "The session's identifier.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Capsule-Protocol",
            "in": "header",
            "description": "The `YYYY-MM-DD` protocol version this request is written against. Outside the server's `[X-Capsule-Protocol-Min, X-Capsule-Protocol-Max]` window the request is refused with `426`.",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
            }
          },
          {
            "name": "X-Capsule-Crypto-Suite",
            "in": "header",
            "description": "The crypto suite id from the primitives inventory. Sent on writes; a suite this server does not implement is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          },
          {
            "name": "X-Capsule-Sidecar-Schema",
            "in": "header",
            "description": "The sidecar schema version declared at `sidecar_schema` field 0. Sent on metadata updates; a schema newer than this server indexes is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "headers": {
              "WWW-Authenticate": {
                "description": "The challenge the client must answer, per RFC 9110 section 11.6.1.",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Bearer"
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request; Malformed handshake",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "204": {
            "description": "the request succeeded and there is no content to send",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "425": {
            "description": "Too early",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "426": {
            "description": "Protocol version unsupported",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/auth/devices/directory": {
      "post": {
        "tags": [
          "devices"
        ],
        "summary": "Publish the caller's signed device directory.",
        "description": "The bytes are stored verbatim; the server decodes them to read `directory_version` and\nnothing else. The monotonicity comparison is the store's, not this handler's — see\n[`crate::directory`] for why a read-compare-write here would be a rollback window.",
        "operationId": "publish_device_directory",
        "parameters": [
          {
            "name": "X-Capsule-Identity-Key",
            "in": "header",
            "description": "The account's identity public key, standard base64 over the hybrid `classical ‖ ml`\nlayout. Required: invariant 23's second clause is undefined without it.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Capsule-Protocol",
            "in": "header",
            "description": "The `YYYY-MM-DD` protocol version this request is written against. Outside the server's `[X-Capsule-Protocol-Min, X-Capsule-Protocol-Max]` window the request is refused with `426`.",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
            }
          },
          {
            "name": "X-Capsule-Crypto-Suite",
            "in": "header",
            "description": "The crypto suite id from the primitives inventory. Sent on writes; a suite this server does not implement is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          },
          {
            "name": "X-Capsule-Sidecar-Schema",
            "in": "header",
            "description": "The sidecar schema version declared at `sidecar_schema` field 0. Sent on metadata updates; a schema newer than this server indexes is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/cbor": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            }
          },
          "required": true
        },
        "responses": {
          "401": {
            "description": "Unauthorized",
            "headers": {
              "WWW-Authenticate": {
                "description": "The challenge the client must answer, per RFC 9110 section 11.6.1.",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Bearer"
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden; Identity anchor mismatch",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request; Malformed request; Malformed device directory; Malformed handshake",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported media type",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublishDirectoryResponse"
                }
              }
            }
          },
          "409": {
            "description": "Directory version conflict",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/DirectoryConflictProblem"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "425": {
            "description": "Too early",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "426": {
            "description": "Protocol version unsupported",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/auth/escrow": {
      "get": {
        "tags": [
          "escrow"
        ],
        "summary": "Fetch the caller's wrapped master key, verbatim.",
        "description": "The bytes are what a client runs its KDF against, so they come back exactly as they went in.\nThe server never derives, unwraps or re-encodes: a re-encoded wrap is a wrap that no longer\nopens, and the failure would look like a lost master key.",
        "operationId": "fetch_escrow",
        "parameters": [
          {
            "name": "X-Capsule-Protocol",
            "in": "header",
            "description": "The `YYYY-MM-DD` protocol version this request is written against. Outside the server's `[X-Capsule-Protocol-Min, X-Capsule-Protocol-Max]` window the request is refused with `426`.",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
            }
          },
          {
            "name": "X-Capsule-Crypto-Suite",
            "in": "header",
            "description": "The crypto suite id from the primitives inventory. Sent on writes; a suite this server does not implement is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          },
          {
            "name": "X-Capsule-Sidecar-Schema",
            "in": "header",
            "description": "The sidecar schema version declared at `sidecar_schema` field 0. Sent on metadata updates; a schema newer than this server indexes is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "headers": {
              "WWW-Authenticate": {
                "description": "The challenge the client must answer, per RFC 9110 section 11.6.1.",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Bearer"
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            },
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request; Malformed handshake",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      },
      "put": {
        "tags": [
          "escrow"
        ],
        "summary": "Store the caller's wrapped master key, replacing whatever they had.",
        "description": "`PUT`, because there is exactly one escrow per account and this is its address. Storing over\nan existing escrow is the guided re-wrap, and it deletes the old blob in the same operation —\nthe lost recovery secret must stop working, which is the entire point of rotating.",
        "operationId": "store_escrow",
        "parameters": [
          {
            "name": "X-Capsule-Protocol",
            "in": "header",
            "description": "The `YYYY-MM-DD` protocol version this request is written against. Outside the server's `[X-Capsule-Protocol-Min, X-Capsule-Protocol-Max]` window the request is refused with `426`.",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
            }
          },
          {
            "name": "X-Capsule-Crypto-Suite",
            "in": "header",
            "description": "The crypto suite id from the primitives inventory. Sent on writes; a suite this server does not implement is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          },
          {
            "name": "X-Capsule-Sidecar-Schema",
            "in": "header",
            "description": "The sidecar schema version declared at `sidecar_schema` field 0. Sent on metadata updates; a schema newer than this server indexes is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/octet-stream": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            }
          },
          "required": true
        },
        "responses": {
          "401": {
            "description": "Unauthorized",
            "headers": {
              "WWW-Authenticate": {
                "description": "The challenge the client must answer, per RFC 9110 section 11.6.1.",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Bearer"
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported media type",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "400": {
            "description": "Malformed request; Malformed escrow; Bad Request; Malformed handshake",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StoreEscrowResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "425": {
            "description": "Too early",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "426": {
            "description": "Protocol version unsupported",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/auth/escrow/identity": {
      "get": {
        "tags": [
          "escrow"
        ],
        "summary": "Fetch the caller's sealed identity, verbatim.",
        "description": "Byte for byte, like the escrow: the client opens it under the master key it recovered, and\na re-encoded seal is a seal that no longer opens.",
        "operationId": "fetch_sealed_identity",
        "parameters": [
          {
            "name": "X-Capsule-Protocol",
            "in": "header",
            "description": "The `YYYY-MM-DD` protocol version this request is written against. Outside the server's `[X-Capsule-Protocol-Min, X-Capsule-Protocol-Max]` window the request is refused with `426`.",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
            }
          },
          {
            "name": "X-Capsule-Crypto-Suite",
            "in": "header",
            "description": "The crypto suite id from the primitives inventory. Sent on writes; a suite this server does not implement is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          },
          {
            "name": "X-Capsule-Sidecar-Schema",
            "in": "header",
            "description": "The sidecar schema version declared at `sidecar_schema` field 0. Sent on metadata updates; a schema newer than this server indexes is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "headers": {
              "WWW-Authenticate": {
                "description": "The challenge the client must answer, per RFC 9110 section 11.6.1.",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Bearer"
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            },
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request; Malformed handshake",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      },
      "put": {
        "tags": [
          "escrow"
        ],
        "summary": "Store the caller's user identity key sealed under their master key, replacing whatever they had.",
        "description": "The sealed identity is ciphertext the server cannot open — it opens only under the master\nkey, which the escrow holds wrapped under a secret the server never sees. It is stored\nindependently of the escrow: a recovery-secret rotation replaces the escrow and leaves this\nalone, and storing this never touches the escrow. Refused exactly as an escrow is: empty or\npast the same coarse ceiling.",
        "operationId": "store_sealed_identity",
        "parameters": [
          {
            "name": "X-Capsule-Protocol",
            "in": "header",
            "description": "The `YYYY-MM-DD` protocol version this request is written against. Outside the server's `[X-Capsule-Protocol-Min, X-Capsule-Protocol-Max]` window the request is refused with `426`.",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
            }
          },
          {
            "name": "X-Capsule-Crypto-Suite",
            "in": "header",
            "description": "The crypto suite id from the primitives inventory. Sent on writes; a suite this server does not implement is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          },
          {
            "name": "X-Capsule-Sidecar-Schema",
            "in": "header",
            "description": "The sidecar schema version declared at `sidecar_schema` field 0. Sent on metadata updates; a schema newer than this server indexes is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/octet-stream": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            }
          },
          "required": true
        },
        "responses": {
          "401": {
            "description": "Unauthorized",
            "headers": {
              "WWW-Authenticate": {
                "description": "The challenge the client must answer, per RFC 9110 section 11.6.1.",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Bearer"
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported media type",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "400": {
            "description": "Malformed request; Malformed escrow; Bad Request; Malformed handshake",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StoreSealedIdentityResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "425": {
            "description": "Too early",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "426": {
            "description": "Protocol version unsupported",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/auth/escrow/albums/{album_id}": {
      "put": {
        "tags": [
          "escrow"
        ],
        "summary": "Store the caller's key escrow for one album, replacing whatever that album's slot held.",
        "description": "The album's whole key state — every epoch's content key, its signing seeds and its\nauthority — sealed by the client under the account master key, so a device recovered from the\nescrow can open the album (#741). Opaque here: one slot per album, replaced in one operation,\nnever versioned, and refused only empty, past its coarse ceiling, or past the account's bound\non escrowed albums (`409 error.escrow.album_keys_full`, [`crate::escrow::album_keys_fit`]):\nslots are never deleted, so without a bound an account could grow them, and the listing\nevery push reads, without limit. The album id is the\nslot's name and nothing more; the server does not check the album exists, because a client\nescrows an album's keys **before** the album's first asset reaches the server.",
        "operationId": "store_album_keys",
        "parameters": [
          {
            "name": "album_id",
            "in": "path",
            "description": "The album's id, as a canonical lowercase hyphenated UUID.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Capsule-Protocol",
            "in": "header",
            "description": "The `YYYY-MM-DD` protocol version this request is written against. Outside the server's `[X-Capsule-Protocol-Min, X-Capsule-Protocol-Max]` window the request is refused with `426`.",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
            }
          },
          {
            "name": "X-Capsule-Crypto-Suite",
            "in": "header",
            "description": "The crypto suite id from the primitives inventory. Sent on writes; a suite this server does not implement is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          },
          {
            "name": "X-Capsule-Sidecar-Schema",
            "in": "header",
            "description": "The sidecar schema version declared at `sidecar_schema` field 0. Sent on metadata updates; a schema newer than this server indexes is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/octet-stream": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            }
          },
          "required": true
        },
        "responses": {
          "401": {
            "description": "Unauthorized",
            "headers": {
              "WWW-Authenticate": {
                "description": "The challenge the client must answer, per RFC 9110 section 11.6.1.",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Bearer"
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request; Malformed request; Malformed escrow; Malformed handshake",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported media type",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StoreAlbumKeysResponse"
                }
              }
            }
          },
          "409": {
            "description": "Album key escrows full",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "425": {
            "description": "Too early",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "426": {
            "description": "Protocol version unsupported",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/auth/profile": {
      "get": {
        "tags": [
          "profile"
        ],
        "summary": "The caller's own profile.",
        "description": "There is no `{user_id}` segment, for the reason the escrow surface has none: the account\ncomes from the credential, so reading somebody else's profile is not a forbidden request but\nan unrepresentable one. A directory of *other* people's public facts already exists and is a\ndifferent surface — `GET /v1/auth/devices/directory/{user_id}` — which publishes keys and\nnothing else.",
        "operationId": "get_profile",
        "parameters": [
          {
            "name": "X-Capsule-Protocol",
            "in": "header",
            "description": "The `YYYY-MM-DD` protocol version this request is written against. Outside the server's `[X-Capsule-Protocol-Min, X-Capsule-Protocol-Max]` window the request is refused with `426`.",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
            }
          },
          {
            "name": "X-Capsule-Crypto-Suite",
            "in": "header",
            "description": "The crypto suite id from the primitives inventory. Sent on writes; a suite this server does not implement is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          },
          {
            "name": "X-Capsule-Sidecar-Schema",
            "in": "header",
            "description": "The sidecar schema version declared at `sidecar_schema` field 0. Sent on metadata updates; a schema newer than this server indexes is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "headers": {
              "WWW-Authenticate": {
                "description": "The challenge the client must answer, per RFC 9110 section 11.6.1.",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Bearer"
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProfileResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request; Malformed handshake",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      },
      "patch": {
        "tags": [
          "profile"
        ],
        "summary": "Edit the caller's own profile.",
        "description": "`PATCH`, because the body is a partial: what it does not mention, it does not change. An\nempty body is a valid request and answers `200` with the profile unchanged — a client that\nsent nothing asked for nothing, and refusing it would make \"save\" fail on a form nobody\nedited.",
        "operationId": "update_profile",
        "parameters": [
          {
            "name": "X-Capsule-Protocol",
            "in": "header",
            "description": "The `YYYY-MM-DD` protocol version this request is written against. Outside the server's `[X-Capsule-Protocol-Min, X-Capsule-Protocol-Max]` window the request is refused with `426`.",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
            }
          },
          {
            "name": "X-Capsule-Crypto-Suite",
            "in": "header",
            "description": "The crypto suite id from the primitives inventory. Sent on writes; a suite this server does not implement is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          },
          {
            "name": "X-Capsule-Sidecar-Schema",
            "in": "header",
            "description": "The sidecar schema version declared at `sidecar_schema` field 0. Sent on metadata updates; a schema newer than this server indexes is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateProfileRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "401": {
            "description": "Unauthorized",
            "headers": {
              "WWW-Authenticate": {
                "description": "The challenge the client must answer, per RFC 9110 section 11.6.1.",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Bearer"
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request; Invalid profile; Malformed handshake",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "Payload Too Large; the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported Media Type",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProfileResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "425": {
            "description": "Too early",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "426": {
            "description": "Protocol version unsupported",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/auth/password": {
      "post": {
        "tags": [
          "profile"
        ],
        "summary": "Replace the password this account's sessions are opened with.",
        "description": "# Every *other* session ends\n\nA password change whose point is that a credential has leaked would be worthless if the\nsessions opened with the leaked credential kept working. So the change closes every session\nof the account — and then re-opens the caller's own, **under its own session id**, so the\nperson doing the rotation is not signed out of the device they are doing it on while\neverybody else is.\n\nRe-opening the same id rather than minting a new one is what lets this answer `204` with no\nbody: the caller's existing token pair keeps working, because the session it names is still\nthere. Returning a fresh pair was considered and rejected — it would make this a second token\nmint with none of `POST /v1/auth/refresh`'s rotation discipline, for no gain.\n\nThe re-opened record's `authenticated_at` is **now**, and that is not bookkeeping: presenting\nthe current password *is* a credential presentation, so a freshness gate measuring\nfrom anything earlier would be measuring from the wrong moment.\n\n# Why the order is verify, write, revoke\n\nVerification first, because a wrong current password must change nothing. The write next,\nbecause a revocation that ran before it would sign everybody out and then fail. The\nrevocation last, and its failure is **logged and not returned**: the password is already\nchanged, so answering `500` would tell the caller the rotation did not happen when it did,\nand they would try again with a current password that is no longer current.",
        "operationId": "change_password",
        "parameters": [
          {
            "name": "X-Capsule-Protocol",
            "in": "header",
            "description": "The `YYYY-MM-DD` protocol version this request is written against. Outside the server's `[X-Capsule-Protocol-Min, X-Capsule-Protocol-Max]` window the request is refused with `426`.",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
            }
          },
          {
            "name": "X-Capsule-Crypto-Suite",
            "in": "header",
            "description": "The crypto suite id from the primitives inventory. Sent on writes; a suite this server does not implement is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          },
          {
            "name": "X-Capsule-Sidecar-Schema",
            "in": "header",
            "description": "The sidecar schema version declared at `sidecar_schema` field 0. Sent on metadata updates; a schema newer than this server indexes is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ChangePasswordRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "401": {
            "description": "Unauthorized",
            "headers": {
              "WWW-Authenticate": {
                "description": "The challenge the client must answer, per RFC 9110 section 11.6.1.",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Bearer"
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request; Invalid password; Malformed handshake",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "Payload Too Large; the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported Media Type",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "204": {
            "description": "the request succeeded and there is no content to send",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            }
          },
          "423": {
            "description": "Account locked",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "425": {
            "description": "Too early",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "426": {
            "description": "Protocol version unsupported",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/auth/totp/enroll": {
      "post": {
        "tags": [
          "totp"
        ],
        "summary": "Start enrolling an authenticator.",
        "description": "Answers the `otpauth://` URI the app scans. Nothing is gated yet: until a code confirms the\nsecret, sign-in is unchanged — which is what stops a mis-scanned QR code from locking\nsomebody out of their own account.",
        "operationId": "totp_enroll",
        "parameters": [
          {
            "name": "X-Capsule-Protocol",
            "in": "header",
            "description": "The `YYYY-MM-DD` protocol version this request is written against. Outside the server's `[X-Capsule-Protocol-Min, X-Capsule-Protocol-Max]` window the request is refused with `426`.",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
            }
          },
          {
            "name": "X-Capsule-Crypto-Suite",
            "in": "header",
            "description": "The crypto suite id from the primitives inventory. Sent on writes; a suite this server does not implement is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          },
          {
            "name": "X-Capsule-Sidecar-Schema",
            "in": "header",
            "description": "The sidecar schema version declared at `sidecar_schema` field 0. Sent on metadata updates; a schema newer than this server indexes is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "headers": {
              "WWW-Authenticate": {
                "description": "The challenge the client must answer, per RFC 9110 section 11.6.1.",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Bearer"
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnrollmentResponse"
                }
              }
            }
          },
          "409": {
            "description": "Already active",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "425": {
            "description": "Too early",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request; Malformed handshake",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "426": {
            "description": "Protocol version unsupported",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/auth/totp/verify-enrollment": {
      "post": {
        "tags": [
          "totp"
        ],
        "summary": "Confirm an enrollment with a live code.",
        "description": "The confirming code is **spent**: its step goes straight into the replay ledger, so it cannot\nalso complete a sign-in a moment later. That is the one place the ledger's first entry comes\nfrom, and skipping it would leave the newest code in the account's history unused.",
        "operationId": "totp_verify_enrollment",
        "parameters": [
          {
            "name": "X-Capsule-Protocol",
            "in": "header",
            "description": "The `YYYY-MM-DD` protocol version this request is written against. Outside the server's `[X-Capsule-Protocol-Min, X-Capsule-Protocol-Max]` window the request is refused with `426`.",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
            }
          },
          {
            "name": "X-Capsule-Crypto-Suite",
            "in": "header",
            "description": "The crypto suite id from the primitives inventory. Sent on writes; a suite this server does not implement is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          },
          {
            "name": "X-Capsule-Sidecar-Schema",
            "in": "header",
            "description": "The sidecar schema version declared at `sidecar_schema` field 0. Sent on metadata updates; a schema newer than this server indexes is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CodeRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "401": {
            "description": "Unauthorized",
            "headers": {
              "WWW-Authenticate": {
                "description": "The challenge the client must answer, per RFC 9110 section 11.6.1.",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Bearer"
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden; Invalid code",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request; Malformed handshake",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "Payload Too Large; the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported Media Type",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "204": {
            "description": "the request succeeded and there is no content to send",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            }
          },
          "409": {
            "description": "Nothing pending",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "425": {
            "description": "Too early",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "426": {
            "description": "Protocol version unsupported",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/auth/totp/disable": {
      "post": {
        "tags": [
          "totp"
        ],
        "summary": "Remove the second factor, on presentation of a live code.",
        "description": "**A session is not enough.** The whole point of the factor is that a stolen access token is\ninsufficient, and a disable that took only a token would let the token turn off the control\nthat makes it insufficient.",
        "operationId": "totp_disable",
        "parameters": [
          {
            "name": "X-Capsule-Protocol",
            "in": "header",
            "description": "The `YYYY-MM-DD` protocol version this request is written against. Outside the server's `[X-Capsule-Protocol-Min, X-Capsule-Protocol-Max]` window the request is refused with `426`.",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
            }
          },
          {
            "name": "X-Capsule-Crypto-Suite",
            "in": "header",
            "description": "The crypto suite id from the primitives inventory. Sent on writes; a suite this server does not implement is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          },
          {
            "name": "X-Capsule-Sidecar-Schema",
            "in": "header",
            "description": "The sidecar schema version declared at `sidecar_schema` field 0. Sent on metadata updates; a schema newer than this server indexes is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CodeRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "401": {
            "description": "Unauthorized",
            "headers": {
              "WWW-Authenticate": {
                "description": "The challenge the client must answer, per RFC 9110 section 11.6.1.",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Bearer"
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden; Invalid code",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request; Malformed handshake",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "Payload Too Large; the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported Media Type",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "204": {
            "description": "the request succeeded and there is no content to send",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            }
          },
          "409": {
            "description": "Not enrolled",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "425": {
            "description": "Too early",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "426": {
            "description": "Protocol version unsupported",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/auth/login/verify-totp": {
      "post": {
        "tags": [
          "totp"
        ],
        "summary": "Complete a sign-in with a code.",
        "description": "This is where the session is opened — not `POST /v1/auth/login`, which for an account with a\nsecond factor opens nothing. The advisory `cohort_hash` and `device_id` ride *this* request\nfor the same reason: the session they describe is created here.",
        "operationId": "totp_verify_login",
        "parameters": [
          {
            "name": "X-Capsule-Protocol",
            "in": "header",
            "description": "The `YYYY-MM-DD` protocol version this request is written against. Outside the server's `[X-Capsule-Protocol-Min, X-Capsule-Protocol-Max]` window the request is refused with `426`.",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
            }
          },
          {
            "name": "X-Capsule-Crypto-Suite",
            "in": "header",
            "description": "The crypto suite id from the primitives inventory. Sent on writes; a suite this server does not implement is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          },
          {
            "name": "X-Capsule-Sidecar-Schema",
            "in": "header",
            "description": "The sidecar schema version declared at `sidecar_schema` field 0. Sent on metadata updates; a schema newer than this server indexes is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/VerifyLoginRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "400": {
            "description": "Bad Request; Malformed handshake",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "Payload Too Large; the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported Media Type",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TokenResponse"
                }
              }
            }
          },
          "401": {
            "description": "Challenge expired; Invalid code",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "429": {
            "description": "Too many attempts",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "425": {
            "description": "Too early",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "426": {
            "description": "Protocol version unsupported",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        }
      }
    },
    "/v1/auth/oidc/authorize": {
      "post": {
        "tags": [
          "oidc"
        ],
        "summary": "Begin a sign-in through the identity provider.",
        "description": "Unauthenticated: this is how a person *becomes* a session. Nothing about the account is\nknown yet — the ceremony carries fresh random `state`, `nonce` and PKCE material and the\nadmitted redirect URI, and the record behind the `state` lives for ten minutes.\n\nBounded twice, because it is an unauthenticated write into a store: a budget per redirect\nhost ([`budgets::OIDC_AUTHORIZE`]) answers `429` before anything is done, and the store's\nown ceiling answers `503` when it is nevertheless full.",
        "operationId": "begin_oidc_login",
        "parameters": [
          {
            "name": "X-Capsule-Protocol",
            "in": "header",
            "description": "The `YYYY-MM-DD` protocol version this request is written against. Outside the server's `[X-Capsule-Protocol-Min, X-Capsule-Protocol-Max]` window the request is refused with `426`.",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
            }
          },
          {
            "name": "X-Capsule-Crypto-Suite",
            "in": "header",
            "description": "The crypto suite id from the primitives inventory. Sent on writes; a suite this server does not implement is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          },
          {
            "name": "X-Capsule-Sidecar-Schema",
            "in": "header",
            "description": "The sidecar schema version declared at `sidecar_schema` field 0. Sent on metadata updates; a schema newer than this server indexes is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OidcAuthorizeRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "400": {
            "description": "Bad Request; Redirect not admitted; Binding challenge malformed; Malformed handshake",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "Payload Too Large; the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported Media Type",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OidcAuthorizationResponse"
                }
              }
            }
          },
          "404": {
            "description": "Single sign-on not configured",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "429": {
            "description": "Too many sign-ins",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "503": {
            "description": "Sign-in capacity reached",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "425": {
            "description": "Too early",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "426": {
            "description": "Protocol version unsupported",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        }
      }
    },
    "/v1/auth/oidc/callback": {
      "post": {
        "tags": [
          "oidc"
        ],
        "summary": "Finish a sign-in with what the provider's redirect carried.",
        "description": "The `state` is burned first and whatever happens next: a ceremony that survived a failed\ncallback would be a ceremony an attacker could retry a stolen code against. Then the code is\nexchanged and the ID token verified by the provider adapter, the identity is resolved to an\naccount — created on first sight, keyed on `(issuer, subject)`, never linked by address — and\nthe session is opened exactly as a password sign-in opens one, second factor included.",
        "operationId": "complete_oidc_login",
        "parameters": [
          {
            "name": "X-Capsule-Protocol",
            "in": "header",
            "description": "The `YYYY-MM-DD` protocol version this request is written against. Outside the server's `[X-Capsule-Protocol-Min, X-Capsule-Protocol-Max]` window the request is refused with `426`.",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
            }
          },
          {
            "name": "X-Capsule-Crypto-Suite",
            "in": "header",
            "description": "The crypto suite id from the primitives inventory. Sent on writes; a suite this server does not implement is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          },
          {
            "name": "X-Capsule-Sidecar-Schema",
            "in": "header",
            "description": "The sidecar schema version declared at `sidecar_schema` field 0. Sent on metadata updates; a schema newer than this server indexes is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OidcCallbackRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "400": {
            "description": "Bad Request; Malformed handshake",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "Payload Too Large; the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported Media Type",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "200": {
            "description": "A session was opened; here is its token pair.",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TokenResponse"
                }
              }
            }
          },
          "202": {
            "description": "The password verified; a second factor is required to finish.",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SecondFactorChallenge"
                }
              }
            }
          },
          "401": {
            "description": "Sign-in expired; Exchange refused; ID token refused",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "409": {
            "description": "Address already registered",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "425": {
            "description": "Too early",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "426": {
            "description": "Protocol version unsupported",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        }
      }
    },
    "/v1/auth/oidc/device": {
      "post": {
        "tags": [
          "oidc"
        ],
        "summary": "Begin a sign-in through the identity provider for a client with no browser of its own.",
        "description": "Unauthenticated, like the authorize, and bounded the same way: the binding's shape first, then\none deployment-wide budget ([`budgets::OIDC_DEVICE`], `429`), then the provider, then the\nstore's own ceiling (`503`). The provider is asked before anything is written, so a provider\nwithout the grant, or an unconfigured deployment, writes nothing. The provider's device code\nstays here; the client gets a handle of the server's own.",
        "operationId": "begin_oidc_device_login",
        "parameters": [
          {
            "name": "X-Capsule-Protocol",
            "in": "header",
            "description": "The `YYYY-MM-DD` protocol version this request is written against. Outside the server's `[X-Capsule-Protocol-Min, X-Capsule-Protocol-Max]` window the request is refused with `426`.",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
            }
          },
          {
            "name": "X-Capsule-Crypto-Suite",
            "in": "header",
            "description": "The crypto suite id from the primitives inventory. Sent on writes; a suite this server does not implement is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          },
          {
            "name": "X-Capsule-Sidecar-Schema",
            "in": "header",
            "description": "The sidecar schema version declared at `sidecar_schema` field 0. Sent on metadata updates; a schema newer than this server indexes is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OidcDeviceRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "400": {
            "description": "Bad Request; Binding challenge malformed; Malformed handshake",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "Payload Too Large; the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported Media Type",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OidcDeviceAuthorizationResponse"
                }
              }
            }
          },
          "404": {
            "description": "Device sign-in not offered",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "429": {
            "description": "Too many sign-ins",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "503": {
            "description": "Sign-in capacity reached",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "425": {
            "description": "Too early",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "426": {
            "description": "Protocol version unsupported",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        }
      }
    },
    "/v1/auth/oidc/device/poll": {
      "post": {
        "tags": [
          "oidc"
        ],
        "summary": "Poll a device authorization once.",
        "description": "The slot is claimed first, atomically: a poll sooner than one interval after the last is\n`429 error.auth.oidc_device_slow_down` and never reaches the provider, so a client polling too\nfast cannot make this server poll the provider any faster. A due poll checks the client's\nbinding, then asks the provider once. Every terminal answer — a session, a challenge, a\ndenial, an expiry, a refusal — ends the ceremony; `authorization_pending`, `slow_down` and an\nunreachable provider leave it to be polled again. On success the ceremony is ended *before*\nthe session is opened, so two polls collecting one approval open one session.",
        "operationId": "poll_oidc_device_login",
        "parameters": [
          {
            "name": "X-Capsule-Protocol",
            "in": "header",
            "description": "The `YYYY-MM-DD` protocol version this request is written against. Outside the server's `[X-Capsule-Protocol-Min, X-Capsule-Protocol-Max]` window the request is refused with `426`.",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
            }
          },
          {
            "name": "X-Capsule-Crypto-Suite",
            "in": "header",
            "description": "The crypto suite id from the primitives inventory. Sent on writes; a suite this server does not implement is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          },
          {
            "name": "X-Capsule-Sidecar-Schema",
            "in": "header",
            "description": "The sidecar schema version declared at `sidecar_schema` field 0. Sent on metadata updates; a schema newer than this server indexes is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OidcDevicePollRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "400": {
            "description": "Bad Request; Authorization pending; Malformed handshake",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "Payload Too Large; the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported Media Type",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "200": {
            "description": "A session was opened; here is its token pair.",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TokenResponse"
                }
              }
            }
          },
          "202": {
            "description": "The password verified; a second factor is required to finish.",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SecondFactorChallenge"
                }
              }
            }
          },
          "429": {
            "description": "Slow down",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "401": {
            "description": "Sign-in expired; Sign-in declined; Exchange refused; ID token refused",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "409": {
            "description": "Address already registered",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "425": {
            "description": "Too early",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "426": {
            "description": "Protocol version unsupported",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        }
      }
    },
    "/v1/auth/devices/enroll": {
      "post": {
        "tags": [
          "enrollment"
        ],
        "summary": "Issue a one-time enrollment code for the caller's account.",
        "description": "Gated on a recent credential presentation, not merely on a valid session — a stolen token\nmust not be able to enroll a rogue device. See [`crate::enrollment`] for exactly how much\nthat gate can mean.",
        "operationId": "issue_enrollment_code",
        "parameters": [
          {
            "name": "X-Capsule-Protocol",
            "in": "header",
            "description": "The `YYYY-MM-DD` protocol version this request is written against. Outside the server's `[X-Capsule-Protocol-Min, X-Capsule-Protocol-Max]` window the request is refused with `426`.",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
            }
          },
          {
            "name": "X-Capsule-Crypto-Suite",
            "in": "header",
            "description": "The crypto suite id from the primitives inventory. Sent on writes; a suite this server does not implement is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          },
          {
            "name": "X-Capsule-Sidecar-Schema",
            "in": "header",
            "description": "The sidecar schema version declared at `sidecar_schema` field 0. Sent on metadata updates; a schema newer than this server indexes is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "headers": {
              "WWW-Authenticate": {
                "description": "The challenge the client must answer, per RFC 9110 section 11.6.1.",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Bearer"
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden; Local authorization required",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EnrollmentCodeResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "425": {
            "description": "Too early",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request; Malformed handshake",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "426": {
            "description": "Protocol version unsupported",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/auth/devices/enroll/redeem": {
      "post": {
        "tags": [
          "enrollment"
        ],
        "summary": "Redeem a code for a relay channel.",
        "description": "**Unauthenticated, necessarily.** Device B has no account, no session and no key material —\nit is a phone that has just scanned a QR code. The code is the only thing it holds, so the\ncode is the credential.",
        "operationId": "redeem_enrollment_code",
        "parameters": [
          {
            "name": "X-Capsule-Protocol",
            "in": "header",
            "description": "The `YYYY-MM-DD` protocol version this request is written against. Outside the server's `[X-Capsule-Protocol-Min, X-Capsule-Protocol-Max]` window the request is refused with `426`.",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
            }
          },
          {
            "name": "X-Capsule-Crypto-Suite",
            "in": "header",
            "description": "The crypto suite id from the primitives inventory. Sent on writes; a suite this server does not implement is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          },
          {
            "name": "X-Capsule-Sidecar-Schema",
            "in": "header",
            "description": "The sidecar schema version declared at `sidecar_schema` field 0. Sent on metadata updates; a schema newer than this server indexes is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RedeemRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "400": {
            "description": "Bad Request; Malformed handshake",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "Payload Too Large; the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported Media Type",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ChannelResponse"
                }
              }
            }
          },
          "404": {
            "description": "Code refused",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "429": {
            "description": "Too many attempts",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying (RFC 9110 delta-seconds): the problem's `retry_after` instant, measured from the server's clock.",
                "schema": {
                  "type": "integer",
                  "minimum": 0.0,
                  "format": "uint64"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/EnrollmentRateLimitedProblem"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "425": {
            "description": "Too early",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "426": {
            "description": "Protocol version unsupported",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        }
      }
    },
    "/v1/auth/devices/enroll/channel/{channel_id}": {
      "get": {
        "tags": [
          "enrollment"
        ],
        "summary": "Take everything pending in one of a channel's mailboxes.",
        "description": "Destructive: a relayed payload is delivered once. Draining one direction leaves the other\nuntouched, so the two devices do not consume each other's mail.",
        "operationId": "drain_enrollment_channel",
        "parameters": [
          {
            "name": "channel_id",
            "in": "path",
            "description": "The handle a redeemed code returned.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "direction",
            "in": "query",
            "description": "`to_initiator` or `to_enrollee`.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Capsule-Protocol",
            "in": "header",
            "description": "The `YYYY-MM-DD` protocol version this request is written against. Outside the server's `[X-Capsule-Protocol-Min, X-Capsule-Protocol-Max]` window the request is refused with `426`.",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
            }
          },
          {
            "name": "X-Capsule-Crypto-Suite",
            "in": "header",
            "description": "The crypto suite id from the primitives inventory. Sent on writes; a suite this server does not implement is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          },
          {
            "name": "X-Capsule-Sidecar-Schema",
            "in": "header",
            "description": "The sidecar schema version declared at `sidecar_schema` field 0. Sent on metadata updates; a schema newer than this server indexes is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          }
        ],
        "responses": {
          "400": {
            "description": "Bad Request; Malformed relay request; Malformed handshake",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DrainResponse"
                }
              }
            }
          },
          "404": {
            "description": "Channel not found",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        }
      },
      "post": {
        "tags": [
          "enrollment"
        ],
        "summary": "Append a payload to one of a channel's two mailboxes.",
        "description": "Unauthenticated and gated by the handle alone. The relay is a dumb pipe by design — see\n[`crate::enrollment`] — and the safety-code check is what defends the ceremony.",
        "operationId": "relay_enrollment_payload",
        "parameters": [
          {
            "name": "channel_id",
            "in": "path",
            "description": "The handle a redeemed code returned.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Capsule-Protocol",
            "in": "header",
            "description": "The `YYYY-MM-DD` protocol version this request is written against. Outside the server's `[X-Capsule-Protocol-Min, X-Capsule-Protocol-Max]` window the request is refused with `426`.",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
            }
          },
          {
            "name": "X-Capsule-Crypto-Suite",
            "in": "header",
            "description": "The crypto suite id from the primitives inventory. Sent on writes; a suite this server does not implement is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          },
          {
            "name": "X-Capsule-Sidecar-Schema",
            "in": "header",
            "description": "The sidecar schema version declared at `sidecar_schema` field 0. Sent on metadata updates; a schema newer than this server indexes is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RelayRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "400": {
            "description": "Bad Request; Malformed relay request; Malformed handshake",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "Payload Too Large; the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported Media Type",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "204": {
            "description": "the request succeeded and there is no content to send",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            }
          },
          "404": {
            "description": "Channel not found",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "425": {
            "description": "Too early",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "426": {
            "description": "Protocol version unsupported",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        }
      },
      "delete": {
        "tags": [
          "enrollment"
        ],
        "summary": "Close a channel and drop both mailboxes with it.",
        "description": "**The initiator's, and authenticated.** A close is the one relay operation that is not\nidempotent from the other device's point of view — it ends the ceremony — so leaving it on\nthe handle alone would make an abandoned QR code a denial of service. The account is checked\nagainst the channel's recorded initiator, and a channel belonging to another account answers\nexactly as an unknown one does.",
        "operationId": "close_enrollment_channel",
        "parameters": [
          {
            "name": "channel_id",
            "in": "path",
            "description": "The handle a redeemed code returned.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Capsule-Protocol",
            "in": "header",
            "description": "The `YYYY-MM-DD` protocol version this request is written against. Outside the server's `[X-Capsule-Protocol-Min, X-Capsule-Protocol-Max]` window the request is refused with `426`.",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
            }
          },
          {
            "name": "X-Capsule-Crypto-Suite",
            "in": "header",
            "description": "The crypto suite id from the primitives inventory. Sent on writes; a suite this server does not implement is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          },
          {
            "name": "X-Capsule-Sidecar-Schema",
            "in": "header",
            "description": "The sidecar schema version declared at `sidecar_schema` field 0. Sent on metadata updates; a schema newer than this server indexes is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "headers": {
              "WWW-Authenticate": {
                "description": "The challenge the client must answer, per RFC 9110 section 11.6.1.",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Bearer"
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request; Malformed relay request; Malformed handshake",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "204": {
            "description": "the request succeeded and there is no content to send",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            }
          },
          "404": {
            "description": "Channel not found",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "425": {
            "description": "Too early",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "426": {
            "description": "Protocol version unsupported",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/albums": {
      "post": {
        "tags": [
          "albums"
        ],
        "summary": "Bind an album id to the authenticated caller.",
        "description": "Idempotent: the same id from a second device, or after a recovery, is a success that writes\nnothing.",
        "operationId": "provision_album",
        "parameters": [
          {
            "name": "X-Capsule-Protocol",
            "in": "header",
            "description": "The `YYYY-MM-DD` protocol version this request is written against. Outside the server's `[X-Capsule-Protocol-Min, X-Capsule-Protocol-Max]` window the request is refused with `426`.",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
            }
          },
          {
            "name": "X-Capsule-Crypto-Suite",
            "in": "header",
            "description": "The crypto suite id from the primitives inventory. Sent on writes; a suite this server does not implement is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          },
          {
            "name": "X-Capsule-Sidecar-Schema",
            "in": "header",
            "description": "The sidecar schema version declared at `sidecar_schema` field 0. Sent on metadata updates; a schema newer than this server indexes is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProvisionAlbumRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "401": {
            "description": "Unauthorized",
            "headers": {
              "WWW-Authenticate": {
                "description": "The challenge the client must answer, per RFC 9110 section 11.6.1.",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Bearer"
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden; Album not available",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request; Invalid album id; Malformed handshake",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "Payload Too Large; the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported Media Type",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "201": {
            "description": "The album was created and bound to the caller",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProvisionAlbumResponse"
                }
              }
            }
          },
          "200": {
            "description": "The album id was already provisioned to this account; nothing was written",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProvisionAlbumResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "425": {
            "description": "Too early",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "426": {
            "description": "Protocol version unsupported",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/albums/{album_id}/upgrade": {
      "get": {
        "tags": [
          "albums"
        ],
        "summary": "Read the ceremony's phase and the drain count.",
        "description": "The one call a proposer polls between steps 2 and 4. `in_flight` reaching zero is the signal\nthat the tombstone may be committed.",
        "operationId": "album_upgrade_phase",
        "parameters": [
          {
            "name": "album_id",
            "in": "path",
            "description": "The album's id.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Capsule-Protocol",
            "in": "header",
            "description": "The `YYYY-MM-DD` protocol version this request is written against. Outside the server's `[X-Capsule-Protocol-Min, X-Capsule-Protocol-Max]` window the request is refused with `426`.",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
            }
          },
          {
            "name": "X-Capsule-Crypto-Suite",
            "in": "header",
            "description": "The crypto suite id from the primitives inventory. Sent on writes; a suite this server does not implement is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          },
          {
            "name": "X-Capsule-Sidecar-Schema",
            "in": "header",
            "description": "The sidecar schema version declared at `sidecar_schema` field 0. Sent on metadata updates; a schema newer than this server indexes is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "headers": {
              "WWW-Authenticate": {
                "description": "The challenge the client must answer, per RFC 9110 section 11.6.1.",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Bearer"
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request; Malformed handshake",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpgradePhaseResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      },
      "post": {
        "tags": [
          "albums"
        ],
        "summary": "Put an album into upgrade quiescence.",
        "description": "Idempotent under its own `intent_id`: versioning.md is explicit that the same `UpgradeIntent`\nnever produces two forks, and a proposer that lost an acknowledgement re-POSTs the same bytes.",
        "operationId": "begin_album_upgrade",
        "parameters": [
          {
            "name": "album_id",
            "in": "path",
            "description": "The album's id.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Capsule-Protocol",
            "in": "header",
            "description": "The `YYYY-MM-DD` protocol version this request is written against. Outside the server's `[X-Capsule-Protocol-Min, X-Capsule-Protocol-Max]` window the request is refused with `426`.",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
            }
          },
          {
            "name": "X-Capsule-Crypto-Suite",
            "in": "header",
            "description": "The crypto suite id from the primitives inventory. Sent on writes; a suite this server does not implement is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          },
          {
            "name": "X-Capsule-Sidecar-Schema",
            "in": "header",
            "description": "The sidecar schema version declared at `sidecar_schema` field 0. Sent on metadata updates; a schema newer than this server indexes is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/cbor": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            }
          },
          "required": true
        },
        "responses": {
          "401": {
            "description": "Unauthorized",
            "headers": {
              "WWW-Authenticate": {
                "description": "The challenge the client must answer, per RFC 9110 section 11.6.1.",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Bearer"
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden; Proposer not authorized",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request; Malformed request; Malformed handshake",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported media type",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpgradePhaseResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "409": {
            "description": "Upgrade in flight",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "425": {
            "description": "Too early",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "426": {
            "description": "Protocol version unsupported",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      },
      "delete": {
        "tags": [
          "albums"
        ],
        "summary": "Abort a ceremony, returning the album to normal operation.",
        "description": "Named by `intent_id` in the path's own query so that aborting is a statement about *which*\nupgrade — a caller that does not hold the live id gets a `409` rather than the power to\ncancel somebody else's ceremony.",
        "operationId": "abort_album_upgrade",
        "parameters": [
          {
            "name": "album_id",
            "in": "path",
            "description": "The album's id.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "intent_id",
            "in": "query",
            "description": "The ceremony to abort.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Capsule-Protocol",
            "in": "header",
            "description": "The `YYYY-MM-DD` protocol version this request is written against. Outside the server's `[X-Capsule-Protocol-Min, X-Capsule-Protocol-Max]` window the request is refused with `426`.",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
            }
          },
          {
            "name": "X-Capsule-Crypto-Suite",
            "in": "header",
            "description": "The crypto suite id from the primitives inventory. Sent on writes; a suite this server does not implement is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          },
          {
            "name": "X-Capsule-Sidecar-Schema",
            "in": "header",
            "description": "The sidecar schema version declared at `sidecar_schema` field 0. Sent on metadata updates; a schema newer than this server indexes is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "headers": {
              "WWW-Authenticate": {
                "description": "The challenge the client must answer, per RFC 9110 section 11.6.1.",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Bearer"
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request; Malformed request; Malformed handshake",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpgradePhaseResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "409": {
            "description": "Upgrade in flight",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "425": {
            "description": "Too early",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "426": {
            "description": "Protocol version unsupported",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/albums/{album_id}/roster": {
      "put": {
        "tags": [
          "albums"
        ],
        "summary": "Publish the caller's roster for one of their albums.",
        "operationId": "publish_album_roster",
        "parameters": [
          {
            "name": "album_id",
            "in": "path",
            "description": "The album's id.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Capsule-Protocol",
            "in": "header",
            "description": "The `YYYY-MM-DD` protocol version this request is written against. Outside the server's `[X-Capsule-Protocol-Min, X-Capsule-Protocol-Max]` window the request is refused with `426`.",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
            }
          },
          {
            "name": "X-Capsule-Crypto-Suite",
            "in": "header",
            "description": "The crypto suite id from the primitives inventory. Sent on writes; a suite this server does not implement is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          },
          {
            "name": "X-Capsule-Sidecar-Schema",
            "in": "header",
            "description": "The sidecar schema version declared at `sidecar_schema` field 0. Sent on metadata updates; a schema newer than this server indexes is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RosterRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "401": {
            "description": "Unauthorized",
            "headers": {
              "WWW-Authenticate": {
                "description": "The challenge the client must answer, per RFC 9110 section 11.6.1.",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Bearer"
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden; Attester not authorized",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request; Malformed roster; Roster version leap; Malformed handshake",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/RosterVersionLeapProblem"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "Payload Too Large; the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported Media Type",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RosterResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "409": {
            "description": "Roster stale",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/RosterStaleProblem"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "425": {
            "description": "Too early",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "426": {
            "description": "Protocol version unsupported",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/upload/{id}": {
      "delete": {
        "tags": [
          "upload"
        ],
        "summary": "Cancel a session: its record, its accepted chunks and its staged bytes, together.",
        "description": "Refused while finalization is running — it is not interruptible — and refused once the\nsession is terminal, because there is nothing left to cancel and the receipt is what a\nclient should read instead.",
        "operationId": "cancel_upload",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The session's identifier, as `POST /v1/upload` returned it.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Capsule-Protocol",
            "in": "header",
            "description": "The `YYYY-MM-DD` protocol version this request is written against. Outside the server's `[X-Capsule-Protocol-Min, X-Capsule-Protocol-Max]` window the request is refused with `426`.",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
            }
          },
          {
            "name": "X-Capsule-Crypto-Suite",
            "in": "header",
            "description": "The crypto suite id from the primitives inventory. Sent on writes; a suite this server does not implement is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          },
          {
            "name": "X-Capsule-Sidecar-Schema",
            "in": "header",
            "description": "The sidecar schema version declared at `sidecar_schema` field 0. Sent on metadata updates; a schema newer than this server indexes is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "headers": {
              "WWW-Authenticate": {
                "description": "The challenge the client must answer, per RFC 9110 section 11.6.1.",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Bearer"
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request; Malformed handshake",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "204": {
            "description": "the request succeeded and there is no content to send",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            }
          },
          "404": {
            "description": "Upload session not found",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "409": {
            "description": "Session not active",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying (RFC 9110 delta-seconds): the problem's `retry_after` instant, measured from the server's clock.",
                "schema": {
                  "type": "integer",
                  "minimum": 0.0,
                  "format": "uint64"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/UploadCancelUnavailableProblem"
                }
              }
            }
          },
          "425": {
            "description": "Too early",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "426": {
            "description": "Protocol version unsupported",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      },
      "head": {
        "tags": [
          "upload"
        ],
        "summary": "Report a session's progress and state.",
        "description": "The resumption primitive: a client that lost a connection, an acknowledgement, or a process\nasks here and learns the authoritative offset, the declared length and the session's state.\nThe answer carries **no body** — HTTP forbids one on `HEAD`, which is why the protocol puts\nall three on headers.\n\nA session that holds every byte and whose finalization nobody claimed has its finalization\nstarted before it is reported: a client resuming at an offset equal to the size sends nothing\nmore, so this may be the last request it makes about the session. The finalization is never\nawaited — the answer is the state as it stands, `waiting_for_processing` — and the client\npolls this operation, with backoff, until the state is terminal. A `failed_processing` state\ncarries the failure's `error.*` code in `X-Capsule-Upload-Error`.",
        "operationId": "head_upload",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The session's identifier, as `POST /v1/upload` returned it.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Capsule-Protocol",
            "in": "header",
            "description": "The `YYYY-MM-DD` protocol version this request is written against. Outside the server's `[X-Capsule-Protocol-Min, X-Capsule-Protocol-Max]` window the request is refused with `426`.",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
            }
          },
          {
            "name": "X-Capsule-Crypto-Suite",
            "in": "header",
            "description": "The crypto suite id from the primitives inventory. Sent on writes; a suite this server does not implement is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          },
          {
            "name": "X-Capsule-Sidecar-Schema",
            "in": "header",
            "description": "The sidecar schema version declared at `sidecar_schema` field 0. Sent on metadata updates; a schema newer than this server indexes is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "headers": {
              "WWW-Authenticate": {
                "description": "The challenge the client must answer, per RFC 9110 section 11.6.1.",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Bearer"
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request; Malformed handshake",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "200": {
            "description": "Progress and state on X-Capsule-* headers, no body",
            "headers": {
              "X-Capsule-Offset": {
                "description": "The committed prefix: where a client sending in order resumes.",
                "required": true,
                "schema": {
                  "type": "integer",
                  "minimum": 0.0,
                  "format": "uint64"
                }
              },
              "X-Capsule-Committed": {
                "description": "The full committed set, as comma-separated inclusive byte ranges such as\n`0-1048575,2097152-4194303`, never more than 64 of them; empty when nothing is committed.\nA client sending out of order re-plans from this, never from its own record of what it\nsent.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Content-Length": {
                "description": "The declared total, fixed at creation.",
                "required": true,
                "schema": {
                  "type": "integer",
                  "minimum": 0.0,
                  "format": "uint64"
                }
              },
              "X-Capsule-Upload-Status": {
                "description": "Where the session is in its state machine.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Advice": {
                "description": "The server's advice, as on session create.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Session-Expires-In": {
                "description": "Seconds until the session's lifetime cap.",
                "required": true,
                "schema": {
                  "type": "integer",
                  "minimum": 0.0,
                  "format": "uint64"
                }
              },
              "X-Capsule-Session-Idle-Expires-In": {
                "description": "Seconds until the session's survival floor. For a session past `uploading` it equals\nthe lifetime cap's, because such a session is never discarded under pressure.",
                "required": true,
                "schema": {
                  "type": "integer",
                  "minimum": 0.0,
                  "format": "uint64"
                }
              },
              "X-Capsule-Upload-Error": {
                "description": "For a `failed_processing` session, the `error.*` code finalization failed with.\n\nThe one channel through which a client learns `content_hash_mismatch`,\n`envelope_rejected`, `replace_incomplete` or `stale_revival`: no request waits on\nfinalization, so the request that completed the session never hears it.",
                "required": false,
                "schema": {
                  "type": "string"
                }
              },
              "Cache-Control": {
                "description": "`no-store`: progress is not cacheable.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            }
          },
          "404": {
            "description": "Upload session not found",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying (RFC 9110 delta-seconds): the problem's `retry_after` instant, measured from the server's clock.",
                "schema": {
                  "type": "integer",
                  "minimum": 0.0,
                  "format": "uint64"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/UploadHeadUnavailableProblem"
                }
              }
            }
          },
          "413": {
            "description": "the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      },
      "patch": {
        "tags": [
          "upload"
        ],
        "summary": "Write one range of the blob, and finalize when the committed set reaches the declared size.",
        "description": "Every rule the [chunk\ncontract](../../../capsule-docs/src/content/docs/design/transfer/upload.md) fixes is\nchecked before a byte is written — the checksum against the received bytes *first*, so a\nchunk corrupted in transit persists nothing, then admission against the committed set and the\nranges in flight ([`chunk::admit`]).",
        "operationId": "append_chunk",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The session's identifier, as `POST /v1/upload` returned it.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Capsule-Offset",
            "in": "header",
            "description": "Where in the blob this chunk's range starts: a multiple of 4 KiB, anywhere in the blob.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Capsule-Checksum",
            "in": "header",
            "description": "The chunk's SHA-256, bare lowercase hex. Required: the bytes are verified against it\nbefore any of them is written.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Capsule-Protocol",
            "in": "header",
            "description": "The `YYYY-MM-DD` protocol version this request is written against. Outside the server's `[X-Capsule-Protocol-Min, X-Capsule-Protocol-Max]` window the request is refused with `426`.",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
            }
          },
          {
            "name": "X-Capsule-Crypto-Suite",
            "in": "header",
            "description": "The crypto suite id from the primitives inventory. Sent on writes; a suite this server does not implement is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          },
          {
            "name": "X-Capsule-Sidecar-Schema",
            "in": "header",
            "description": "The sidecar schema version declared at `sidecar_schema` field 0. Sent on metadata updates; a schema newer than this server indexes is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/octet-stream": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            }
          },
          "required": true
        },
        "responses": {
          "401": {
            "description": "Unauthorized",
            "headers": {
              "WWW-Authenticate": {
                "description": "The challenge the client must answer, per RFC 9110 section 11.6.1.",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Bearer"
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request; Malformed request; Invalid chunk; Malformed handshake",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported media type",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "408": {
            "description": "Request timeout",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "204": {
            "description": "the request succeeded and there is no content to send",
            "headers": {
              "X-Capsule-Offset": {
                "description": "The committed prefix: where a client sending in order continues.",
                "required": true,
                "schema": {
                  "type": "integer",
                  "minimum": 0.0,
                  "format": "uint64"
                }
              },
              "X-Capsule-Committed": {
                "description": "The full committed set, as comma-separated inclusive byte ranges such as\n`0-1048575,2097152-4194303`, never more than 64 of them; empty when nothing is committed.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Upload-Status": {
                "description": "Where the session stands: `uploading`, or `waiting_for_processing` once it holds every\ndeclared byte. The completing chunk is answered as soon as finalization is claimed, never\nonce it finishes; the client reads the outcome from `HEAD`.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            }
          },
          "404": {
            "description": "Upload session not found",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "409": {
            "description": "Range conflict; Too many ranges in flight; Too fragmented; Session not active",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying (RFC 9110 delta-seconds): the problem's `retry_after` instant, measured from the server's clock.",
                "schema": {
                  "type": "integer",
                  "minimum": 0.0,
                  "format": "uint64"
                }
              },
              "X-Capsule-Committed": {
                "description": "On `error.upload.range_conflict`, the session's committed set to re-plan from: comma-separated inclusive byte ranges, as `HEAD` spells it. Absent on every other refusal.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/UploadChunkConflictProblem"
                }
              }
            }
          },
          "413": {
            "description": "Chunk too large; the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying (RFC 9110 delta-seconds): the problem's `retry_after` instant, measured from the server's clock.",
                "schema": {
                  "type": "integer",
                  "minimum": 0.0,
                  "format": "uint64"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/UploadChunkRateLimitedProblem"
                }
              }
            }
          },
          "507": {
            "description": "Insufficient storage",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying (RFC 9110 delta-seconds): the problem's `retry_after` instant, measured from the server's clock.",
                "schema": {
                  "type": "integer",
                  "minimum": 0.0,
                  "format": "uint64"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/UploadChunkStorageFullProblem"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying (RFC 9110 delta-seconds): the problem's `retry_after` instant, measured from the server's clock.",
                "schema": {
                  "type": "integer",
                  "minimum": 0.0,
                  "format": "uint64"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/UploadChunkUnavailableProblem"
                }
              }
            }
          },
          "425": {
            "description": "Too early",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "426": {
            "description": "Protocol version unsupported",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/storage/verify": {
      "post": {
        "tags": [
          "storage"
        ],
        "summary": "Confirm that the server holds the copies a client is about to stop holding.",
        "description": "A pure read: it writes no blob, no index row and no verdict. Soundness against a racing\ncollection comes from the standing GC grace window rather than from a per-request lease,\nwhich is why nothing here takes one.",
        "operationId": "verify_storage",
        "parameters": [
          {
            "name": "X-Capsule-Protocol",
            "in": "header",
            "description": "The `YYYY-MM-DD` protocol version this request is written against. Outside the server's `[X-Capsule-Protocol-Min, X-Capsule-Protocol-Max]` window the request is refused with `426`.",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
            }
          },
          {
            "name": "X-Capsule-Crypto-Suite",
            "in": "header",
            "description": "The crypto suite id from the primitives inventory. Sent on writes; a suite this server does not implement is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          },
          {
            "name": "X-Capsule-Sidecar-Schema",
            "in": "header",
            "description": "The sidecar schema version declared at `sidecar_schema` field 0. Sent on metadata updates; a schema newer than this server indexes is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StorageVerifyRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "401": {
            "description": "Unauthorized",
            "headers": {
              "WWW-Authenticate": {
                "description": "The challenge the client must answer, per RFC 9110 section 11.6.1.",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Bearer"
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request; Invalid request; Malformed handshake",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "Payload Too Large; the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported Media Type",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StorageVerifyResponse"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying (RFC 9110 delta-seconds): the problem's `retry_after` instant, measured from the server's clock.",
                "schema": {
                  "type": "integer",
                  "minimum": 0.0,
                  "format": "uint64"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/StorageVerifyRateLimitedProblem"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "425": {
            "description": "Too early",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "426": {
            "description": "Protocol version unsupported",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/sync/reannounce": {
      "post": {
        "tags": [
          "sync"
        ],
        "summary": "Restore index rows from the signed manifests a client holds, after a rebuild lost them.",
        "description": "Idempotent per manifest: a row restored once is `already_indexed` the second time, and\nnothing is written again.",
        "operationId": "reannounce_manifests",
        "parameters": [
          {
            "name": "X-Capsule-Protocol",
            "in": "header",
            "description": "The `YYYY-MM-DD` protocol version this request is written against. Outside the server's `[X-Capsule-Protocol-Min, X-Capsule-Protocol-Max]` window the request is refused with `426`.",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
            }
          },
          {
            "name": "X-Capsule-Crypto-Suite",
            "in": "header",
            "description": "The crypto suite id from the primitives inventory. Sent on writes; a suite this server does not implement is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          },
          {
            "name": "X-Capsule-Sidecar-Schema",
            "in": "header",
            "description": "The sidecar schema version declared at `sidecar_schema` field 0. Sent on metadata updates; a schema newer than this server indexes is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ReannounceRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "401": {
            "description": "Unauthorized",
            "headers": {
              "WWW-Authenticate": {
                "description": "The challenge the client must answer, per RFC 9110 section 11.6.1.",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Bearer"
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request; Invalid request; Malformed handshake",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "Payload Too Large; the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported Media Type",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReannounceResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "425": {
            "description": "Too early",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "426": {
            "description": "Protocol version unsupported",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/shares/{opaque_id}": {
      "delete": {
        "tags": [
          "shares"
        ],
        "summary": "Revoke one of the caller's links.",
        "description": "Idempotent from the caller's side and **indistinguishable**: a link that was never theirs, a\nlink that does not exist, and a link they already revoked are all `204`. Revocation is the\none operation where saying \"there was nothing to revoke\" would be a lookup.",
        "operationId": "revoke_share",
        "parameters": [
          {
            "name": "opaque_id",
            "in": "path",
            "description": "The opaque id.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Capsule-Protocol",
            "in": "header",
            "description": "The `YYYY-MM-DD` protocol version this request is written against. Outside the server's `[X-Capsule-Protocol-Min, X-Capsule-Protocol-Max]` window the request is refused with `426`.",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
            }
          },
          {
            "name": "X-Capsule-Crypto-Suite",
            "in": "header",
            "description": "The crypto suite id from the primitives inventory. Sent on writes; a suite this server does not implement is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          },
          {
            "name": "X-Capsule-Sidecar-Schema",
            "in": "header",
            "description": "The sidecar schema version declared at `sidecar_schema` field 0. Sent on metadata updates; a schema newer than this server indexes is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "headers": {
              "WWW-Authenticate": {
                "description": "The challenge the client must answer, per RFC 9110 section 11.6.1.",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Bearer"
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden; Quota grace expired; Quota exceeded; Quota suspended",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request; Malformed share link; Malformed handshake",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "204": {
            "description": "the request succeeded and there is no content to send",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "425": {
            "description": "Too early",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "426": {
            "description": "Protocol version unsupported",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/drops/links": {
      "post": {
        "tags": [
          "drops"
        ],
        "summary": "Provision an upload link.",
        "description": "A link is metadata growth: an owner past their quota grace window is refused\n`403 error.quota.grace_locked`, and one whose quota the operator suspended\n`403 error.quota.suspended`.",
        "operationId": "provision_link",
        "parameters": [
          {
            "name": "X-Capsule-Protocol",
            "in": "header",
            "description": "The `YYYY-MM-DD` protocol version this request is written against. Outside the server's `[X-Capsule-Protocol-Min, X-Capsule-Protocol-Max]` window the request is refused with `426`.",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
            }
          },
          {
            "name": "X-Capsule-Crypto-Suite",
            "in": "header",
            "description": "The crypto suite id from the primitives inventory. Sent on writes; a suite this server does not implement is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          },
          {
            "name": "X-Capsule-Sidecar-Schema",
            "in": "header",
            "description": "The sidecar schema version declared at `sidecar_schema` field 0. Sent on metadata updates; a schema newer than this server indexes is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProvisionLinkRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "401": {
            "description": "Unauthorized",
            "headers": {
              "WWW-Authenticate": {
                "description": "The challenge the client must answer, per RFC 9110 section 11.6.1.",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Bearer"
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden; Quota grace expired; Quota suspended",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request; Malformed upload link; Malformed handshake",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "Payload Too Large; the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported Media Type",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "201": {
            "description": "The upload link is provisioned and accepting drops",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProvisionLinkResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "425": {
            "description": "Too early",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "426": {
            "description": "Protocol version unsupported",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/drops/links/{opaque_id}": {
      "delete": {
        "tags": [
          "drops"
        ],
        "summary": "Revoke one of the caller's links.",
        "description": "Never consults the quota: a revocation frees nothing but is admitted in every state,\nsuspended and past the grace window included.\n\nIndistinguishable and idempotent, for the same reason a share revocation is: saying \"there\nwas nothing to revoke\" would be a lookup.",
        "operationId": "revoke_link",
        "parameters": [
          {
            "name": "opaque_id",
            "in": "path",
            "description": "The opaque id.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Capsule-Protocol",
            "in": "header",
            "description": "The `YYYY-MM-DD` protocol version this request is written against. Outside the server's `[X-Capsule-Protocol-Min, X-Capsule-Protocol-Max]` window the request is refused with `426`.",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
            }
          },
          {
            "name": "X-Capsule-Crypto-Suite",
            "in": "header",
            "description": "The crypto suite id from the primitives inventory. Sent on writes; a suite this server does not implement is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          },
          {
            "name": "X-Capsule-Sidecar-Schema",
            "in": "header",
            "description": "The sidecar schema version declared at `sidecar_schema` field 0. Sent on metadata updates; a schema newer than this server indexes is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "headers": {
              "WWW-Authenticate": {
                "description": "The challenge the client must answer, per RFC 9110 section 11.6.1.",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Bearer"
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden; Quota grace expired; Quota suspended",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request; Malformed upload link; Malformed handshake",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "204": {
            "description": "the request succeeded and there is no content to send",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "425": {
            "description": "Too early",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "426": {
            "description": "Protocol version unsupported",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/drops/{drop_id}/adopt": {
      "post": {
        "tags": [
          "drops"
        ],
        "summary": "Adopt a pending drop into an album.",
        "description": "Invariant 32. The manifest re-runs the create battery — a drop that skipped it would be the\none write on this server that entered an album unvalidated — and its `ciphertext_hash` must\nname a blob in **the caller's own inbox**, which is what stops an adoption from minting an\nasset over somebody else's bytes.\n\nThe row is **claimed, written, then settled**. Across two ports there is no transaction, and\nthe two failure directions are not equal: writing first and deleting after can duplicate a\nphoto, taking first and failing to write loses one. A claim leaves a crash visible in the\nowner's own inbox instead, marked `adopting`.",
        "operationId": "adopt_drop",
        "parameters": [
          {
            "name": "drop_id",
            "in": "path",
            "description": "The drop's identifier.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Capsule-Protocol",
            "in": "header",
            "description": "The `YYYY-MM-DD` protocol version this request is written against. Outside the server's `[X-Capsule-Protocol-Min, X-Capsule-Protocol-Max]` window the request is refused with `426`.",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
            }
          },
          {
            "name": "X-Capsule-Crypto-Suite",
            "in": "header",
            "description": "The crypto suite id from the primitives inventory. Sent on writes; a suite this server does not implement is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          },
          {
            "name": "X-Capsule-Sidecar-Schema",
            "in": "header",
            "description": "The sidecar schema version declared at `sidecar_schema` field 0. Sent on metadata updates; a schema newer than this server indexes is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/AdoptRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "401": {
            "description": "Unauthorized",
            "headers": {
              "WWW-Authenticate": {
                "description": "The challenge the client must answer, per RFC 9110 section 11.6.1.",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Bearer"
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request; Adoption refused; Malformed handshake",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "Payload Too Large; the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported Media Type",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdoptResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "425": {
            "description": "Too early",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "426": {
            "description": "Protocol version unsupported",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/drops/{drop_id}": {
      "delete": {
        "tags": [
          "drops"
        ],
        "summary": "Discard a pending drop.",
        "description": "The bytes become unreferenced and the collector reclaims them; the link's cap is **not**\nrefunded, because the drop did happen — a guest deposited a file and the owner chose not to\nkeep it, which is not the same as a link slot never having been used.",
        "operationId": "discard_drop",
        "parameters": [
          {
            "name": "drop_id",
            "in": "path",
            "description": "The drop's identifier.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Capsule-Protocol",
            "in": "header",
            "description": "The `YYYY-MM-DD` protocol version this request is written against. Outside the server's `[X-Capsule-Protocol-Min, X-Capsule-Protocol-Max]` window the request is refused with `426`.",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
            }
          },
          {
            "name": "X-Capsule-Crypto-Suite",
            "in": "header",
            "description": "The crypto suite id from the primitives inventory. Sent on writes; a suite this server does not implement is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          },
          {
            "name": "X-Capsule-Sidecar-Schema",
            "in": "header",
            "description": "The sidecar schema version declared at `sidecar_schema` field 0. Sent on metadata updates; a schema newer than this server indexes is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "headers": {
              "WWW-Authenticate": {
                "description": "The challenge the client must answer, per RFC 9110 section 11.6.1.",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Bearer"
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request; Malformed handshake",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "204": {
            "description": "the request succeeded and there is no content to send",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "425": {
            "description": "Too early",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "426": {
            "description": "Protocol version unsupported",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/upload": {
      "post": {
        "tags": [
          "upload"
        ],
        "summary": "Open an upload session for one blob of an asset bundle.",
        "description": "Runs the refuse-by-default envelope battery — invariants 1–8 and the top-level↔envelope\nconsistency family — **before** anything is written, then stages the session's file and\nrecords the session. A request whose `(owner, hash, album)` tuple already has an active\nsession gets that session back rather than a second one.\n\nThe quota is checked here and nowhere later: a declared size that would cross the hard limit\nis `403 error.quota.exceeded`, and an account whose quota the operator suspended is\n`403 error.quota.suspended`, both before anything is charged or staged.\n\nA finalized `(owner, hash, album)` is `409 error.upload.duplicate_blob` naming the asset that\nholds the bytes. When the request is a `create` for a *different* asset, the server first\nrecords the existing blob against the requesting asset — custody-receipted and ledgered as a\nfinalization is — so the merge the client performs on the `409` leaves both assets holding a\nreference, and purging one cannot collect bytes the other depends on.",
        "operationId": "create_upload",
        "parameters": [
          {
            "name": "X-Capsule-Protocol",
            "in": "header",
            "description": "The `YYYY-MM-DD` protocol version this request is written against. Outside the server's `[X-Capsule-Protocol-Min, X-Capsule-Protocol-Max]` window the request is refused with `426`.",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
            }
          },
          {
            "name": "X-Capsule-Crypto-Suite",
            "in": "header",
            "description": "The crypto suite id from the primitives inventory. Sent on writes; a suite this server does not implement is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          },
          {
            "name": "X-Capsule-Sidecar-Schema",
            "in": "header",
            "description": "The sidecar schema version declared at `sidecar_schema` field 0. Sent on metadata updates; a schema newer than this server indexes is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateUploadRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "401": {
            "description": "Unauthorized",
            "headers": {
              "WWW-Authenticate": {
                "description": "The challenge the client must answer, per RFC 9110 section 11.6.1.",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Bearer"
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden; Account suspended; Upload not permitted; Quota exceeded; Quota suspended",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request; Invalid upload; Malformed handshake",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "Payload Too Large; File too large; the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported Media Type",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "201": {
            "description": "Upload session created",
            "headers": {
              "Location": {
                "description": "Where the session lives.",
                "required": false,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Advice": {
                "description": "The server's advice, an RFC 9651 dictionary of integers: `chunk`, `sessions`, `ranges`\nand `ttl`. Advisory only; a client clamps every member into its own bounds.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Session-Expires-In": {
                "description": "Seconds until the session's lifetime cap.",
                "required": true,
                "schema": {
                  "type": "integer",
                  "minimum": 0.0,
                  "format": "uint64"
                }
              },
              "X-Capsule-Session-Idle-Expires-In": {
                "description": "Seconds until the session's survival floor, after which it may be discarded under\npressure. Never more than `X-Capsule-Session-Expires-In`.",
                "required": true,
                "schema": {
                  "type": "integer",
                  "minimum": 0.0,
                  "format": "uint64"
                }
              },
              "X-Capsule-Offset": {
                "description": "The committed prefix, on a resumed session.",
                "required": false,
                "schema": {
                  "type": "integer",
                  "minimum": 0.0,
                  "format": "uint64"
                }
              },
              "X-Capsule-Committed": {
                "description": "The full committed set, on a resumed session: comma-separated inclusive byte ranges, as\non `HEAD`.",
                "required": false,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Upload-Status": {
                "description": "Where a resumed session is in its state machine — `waiting_for_processing` once a\nduplicate create has started the finalization of a full session nobody had claimed.",
                "required": false,
                "schema": {
                  "type": "string"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateUploadResponse"
                }
              }
            }
          },
          "200": {
            "description": "The active session for these bytes, to resume",
            "headers": {
              "Location": {
                "description": "Where the session lives.",
                "required": false,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Advice": {
                "description": "The server's advice, an RFC 9651 dictionary of integers: `chunk`, `sessions`, `ranges`\nand `ttl`. Advisory only; a client clamps every member into its own bounds.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Session-Expires-In": {
                "description": "Seconds until the session's lifetime cap.",
                "required": true,
                "schema": {
                  "type": "integer",
                  "minimum": 0.0,
                  "format": "uint64"
                }
              },
              "X-Capsule-Session-Idle-Expires-In": {
                "description": "Seconds until the session's survival floor, after which it may be discarded under\npressure. Never more than `X-Capsule-Session-Expires-In`.",
                "required": true,
                "schema": {
                  "type": "integer",
                  "minimum": 0.0,
                  "format": "uint64"
                }
              },
              "X-Capsule-Offset": {
                "description": "The committed prefix, on a resumed session.",
                "required": false,
                "schema": {
                  "type": "integer",
                  "minimum": 0.0,
                  "format": "uint64"
                }
              },
              "X-Capsule-Committed": {
                "description": "The full committed set, on a resumed session: comma-separated inclusive byte ranges, as\non `HEAD`.",
                "required": false,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Upload-Status": {
                "description": "Where a resumed session is in its state machine — `waiting_for_processing` once a\nduplicate create has started the finalization of a full session nobody had claimed.",
                "required": false,
                "schema": {
                  "type": "string"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateUploadResponse"
                }
              }
            }
          },
          "409": {
            "description": "Album quiescing; Duplicate blob",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/DuplicateBlobProblem"
                }
              }
            }
          },
          "426": {
            "description": "Protocol version unsupported",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying (RFC 9110 delta-seconds): the problem's `retry_after` instant, measured from the server's clock.",
                "schema": {
                  "type": "integer",
                  "minimum": 0.0,
                  "format": "uint64"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/UploadCreateRateLimitedProblem"
                }
              }
            }
          },
          "507": {
            "description": "Insufficient storage",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying (RFC 9110 delta-seconds): the problem's `retry_after` instant, measured from the server's clock.",
                "schema": {
                  "type": "integer",
                  "minimum": 0.0,
                  "format": "uint64"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/UploadCreateStorageFullProblem"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying (RFC 9110 delta-seconds): the problem's `retry_after` instant, measured from the server's clock.",
                "schema": {
                  "type": "integer",
                  "minimum": 0.0,
                  "format": "uint64"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/UploadCreateUnavailableProblem"
                }
              }
            }
          },
          "425": {
            "description": "Too early",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/albums/{album_id}/ops": {
      "post": {
        "tags": [
          "lifecycle"
        ],
        "summary": "Apply one signed lifecycle manifest to an album's asset.",
        "description": "The whole battery runs before anything is written, and a rejection writes nothing —\nincluding the blobs the bundle carries, which are stored only after the manifest has passed\nevery check the server can make without a key.\n\nAn op carrying a metadata blob is metadata growth: past the quota grace window it is\n`403 error.quota.grace_locked`, and while the operator has suspended the account's quota\n`403 error.quota.suspended`. A `delete` or `trash-restore` is never refused by quota.\n\nA `trash-restore` the server accepts at or after the tombstone's signed `retention_until`\nis `409 error.upload.retention_elapsed`: the trash recovers an asset only within its window.",
        "operationId": "album_lifecycle_op",
        "parameters": [
          {
            "name": "album_id",
            "in": "path",
            "description": "The album's identifier.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Capsule-Protocol",
            "in": "header",
            "description": "The `YYYY-MM-DD` protocol version this request is written against. Outside the server's `[X-Capsule-Protocol-Min, X-Capsule-Protocol-Max]` window the request is refused with `426`.",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
            }
          },
          {
            "name": "X-Capsule-Crypto-Suite",
            "in": "header",
            "description": "The crypto suite id from the primitives inventory. Sent on writes; a suite this server does not implement is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          },
          {
            "name": "X-Capsule-Sidecar-Schema",
            "in": "header",
            "description": "The sidecar schema version declared at `sidecar_schema` field 0. Sent on metadata updates; a schema newer than this server indexes is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OpRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "401": {
            "description": "Unauthorized",
            "headers": {
              "WWW-Authenticate": {
                "description": "The challenge the client must answer, per RFC 9110 section 11.6.1.",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Bearer"
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden; Account suspended; Quota grace expired; Quota suspended",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request; Invalid request; Malformed handshake",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "Payload Too Large; the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported Media Type",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpResponse"
                }
              }
            }
          },
          "426": {
            "description": "Upgrade required; Protocol version unsupported",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ProtocolRangeProblem"
                }
              }
            }
          },
          "409": {
            "description": "Stale revival; Retention elapsed",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/StaleRevivalProblem"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "425": {
            "description": "Too early",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/shares": {
      "post": {
        "tags": [
          "shares"
        ],
        "summary": "Register a share link the caller's client has issued.",
        "description": "A link is metadata growth: an account past its quota grace window is refused\n`403 error.quota.grace_locked`, and one whose quota the operator suspended\n`403 error.quota.suspended`.",
        "operationId": "issue_share",
        "parameters": [
          {
            "name": "X-Capsule-Protocol",
            "in": "header",
            "description": "The `YYYY-MM-DD` protocol version this request is written against. Outside the server's `[X-Capsule-Protocol-Min, X-Capsule-Protocol-Max]` window the request is refused with `426`.",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
            }
          },
          {
            "name": "X-Capsule-Crypto-Suite",
            "in": "header",
            "description": "The crypto suite id from the primitives inventory. Sent on writes; a suite this server does not implement is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          },
          {
            "name": "X-Capsule-Sidecar-Schema",
            "in": "header",
            "description": "The sidecar schema version declared at `sidecar_schema` field 0. Sent on metadata updates; a schema newer than this server indexes is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IssueShareRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "401": {
            "description": "Unauthorized",
            "headers": {
              "WWW-Authenticate": {
                "description": "The challenge the client must answer, per RFC 9110 section 11.6.1.",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Bearer"
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden; Quota grace expired; Quota exceeded; Quota suspended",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request; Malformed share link; Malformed handshake",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "Payload Too Large; the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported Media Type",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "201": {
            "description": "The share link is registered and servable",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IssueShareResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "425": {
            "description": "Too early",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "426": {
            "description": "Protocol version unsupported",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/albums/{album_id}/capabilities": {
      "post": {
        "tags": [
          "federation"
        ],
        "summary": "Mint a capability letting one peer server pull one album.",
        "description": "The token is in the response and nowhere else: this server keeps the record, never the\ncredential.\n\nAnswers `404 error.federation.not_configured` when this deployment does not federate —\n`FEDERATION_ENABLED` is off, which is the default — before the credential is read or a store\nis touched.",
        "operationId": "issue_capability",
        "parameters": [
          {
            "name": "album_id",
            "in": "path",
            "description": "The album's id.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Capsule-Protocol",
            "in": "header",
            "description": "The `YYYY-MM-DD` protocol version this request is written against. Outside the server's `[X-Capsule-Protocol-Min, X-Capsule-Protocol-Max]` window the request is refused with `426`.",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
            }
          },
          {
            "name": "X-Capsule-Crypto-Suite",
            "in": "header",
            "description": "The crypto suite id from the primitives inventory. Sent on writes; a suite this server does not implement is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          },
          {
            "name": "X-Capsule-Sidecar-Schema",
            "in": "header",
            "description": "The sidecar schema version declared at `sidecar_schema` field 0. Sent on metadata updates; a schema newer than this server indexes is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MintCapabilityRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "401": {
            "description": "Unauthorized",
            "headers": {
              "WWW-Authenticate": {
                "description": "The challenge the client must answer, per RFC 9110 section 11.6.1.",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Bearer"
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden; Server blocked",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request; Malformed request; Malformed handshake",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "Payload Too Large; the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported Media Type",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "201": {
            "description": "The capability was minted",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MintedCapabilityResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "409": {
            "description": "Member not on roster",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "429": {
            "description": "Rate budget exceeded",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "425": {
            "description": "Too early",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "426": {
            "description": "Protocol version unsupported",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/albums/{album_id}/capabilities/{jti}": {
      "delete": {
        "tags": [
          "federation"
        ],
        "summary": "Revoke one capability of one album.",
        "description": "Idempotent, and silent about what it did: a `jti` that is not a live capability of this\nalbum — never issued, already revoked, or another album's — is the same `204` a revocation\nis, so the operation is not a probe over identifiers.\n\nAnswers `404 error.federation.not_configured` when this deployment does not federate —\n`FEDERATION_ENABLED` is off, which is the default — before the credential is read or a store\nis touched. No capability is honoured while federation is off, so there is nothing a revoke\nwould need to cut in the meantime.",
        "operationId": "revoke_capability",
        "parameters": [
          {
            "name": "album_id",
            "in": "path",
            "description": "The album's id.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "jti",
            "in": "path",
            "description": "The capability's `jti`.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Capsule-Protocol",
            "in": "header",
            "description": "The `YYYY-MM-DD` protocol version this request is written against. Outside the server's `[X-Capsule-Protocol-Min, X-Capsule-Protocol-Max]` window the request is refused with `426`.",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
            }
          },
          {
            "name": "X-Capsule-Crypto-Suite",
            "in": "header",
            "description": "The crypto suite id from the primitives inventory. Sent on writes; a suite this server does not implement is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          },
          {
            "name": "X-Capsule-Sidecar-Schema",
            "in": "header",
            "description": "The sidecar schema version declared at `sidecar_schema` field 0. Sent on metadata updates; a schema newer than this server indexes is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "headers": {
              "WWW-Authenticate": {
                "description": "The challenge the client must answer, per RFC 9110 section 11.6.1.",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Bearer"
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request; Malformed handshake",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "204": {
            "description": "the request succeeded and there is no content to send",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "425": {
            "description": "Too early",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "426": {
            "description": "Protocol version unsupported",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/federation/capabilities/refresh": {
      "post": {
        "tags": [
          "federation"
        ],
        "summary": "Exchange a capability for its successor.",
        "description": "The credential **is** the capability being refreshed; a session token has nothing to refresh\nhere and is refused.\n\nAnswers `404 error.federation.not_configured` when this deployment does not federate —\n`FEDERATION_ENABLED` is off, which is the default — before the credential is verified, a\nbudget is charged or a store is touched.",
        "operationId": "refresh_capability",
        "parameters": [
          {
            "name": "X-Capsule-Request-Signature",
            "in": "header",
            "description": "`t=<Unix seconds>, n=<nonce>, s=<base64url Ed25519 signature>`, made by the peer a\npresented federation capability names, over the request's method, path and capability\n(design/federation.md, \"Request Signatures\"). Required with a capability; ignored with a\nsession token.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Capsule-Protocol",
            "in": "header",
            "description": "The `YYYY-MM-DD` protocol version this request is written against. Outside the server's `[X-Capsule-Protocol-Min, X-Capsule-Protocol-Max]` window the request is refused with `426`.",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
            }
          },
          {
            "name": "X-Capsule-Crypto-Suite",
            "in": "header",
            "description": "The crypto suite id from the primitives inventory. Sent on writes; a suite this server does not implement is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          },
          {
            "name": "X-Capsule-Sidecar-Schema",
            "in": "header",
            "description": "The sidecar schema version declared at `sidecar_schema` field 0. Sent on metadata updates; a schema newer than this server indexes is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "headers": {
              "WWW-Authenticate": {
                "description": "The challenge the client must answer, per RFC 9110 section 11.6.1.",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Bearer"
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden; Capability invalid; Capability revoked; Server blocked; Capability expired",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request; Malformed handshake",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RefreshedCapabilityResponse"
                }
              }
            }
          },
          "409": {
            "description": "Member not on roster",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "429": {
            "description": "Rate budget exceeded",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "425": {
            "description": "Too early",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "426": {
            "description": "Protocol version unsupported",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/federation/reports": {
      "post": {
        "tags": [
          "federation"
        ],
        "summary": "File a signed moderation report from a peer server.",
        "description": "Answers `404 error.federation.not_configured` when this deployment does not federate —\n`FEDERATION_ENABLED` is off, which is the default — before the body is read, a budget is\ncharged or a store is touched.\n\n# Only a pinned peer can file\n\nA report is verified against the peer's **operator-pinned** key, which an operator writes\nwith `capsule-server peer pin`. A peer nobody pinned is answered\n`403 error.federation.peer_unknown`, whatever it signed.\n\n# No bearer, and why that is not \"unauthenticated\"\n\nThe reporting peer holds no capability here — it is reporting *this* server's content, not\npulling it — so there is nothing to present. What it does hold is a key an operator has\n**pinned**, and the report carries its own Ed25519 signature over the canonical CBOR of every\nother field. A report from a server nobody has pinned is `403`: intake is not the moment a\npeer becomes trusted (design/federation.md's TOFU is explicitly not done here).\n\n# The order the checks run in\n\nBounds, then whether it is addressed here and signed just now, then who is speaking, then\nwhether they are welcome, then whether they really said it, then whether they said it before,\nthen how much they may ask for at all, then whose account it is, then whether they have said\nit too often.\n\nEvery field is length-capped first, and `reporting_server` must be a host name, before a store\nis read or a byte is keyed on. The recipient and the freshness window are pure checks on the\nbody. **No budget is charged before the signature verifies** (design/moderation.md): a budget\nkeyed on an origin a body merely claims is one a stranger spends in a real peer's name. What an\nanonymous caller gets before that is one peer-store read and one Ed25519 verification — the\nwork every bearer check costs on any authenticated route.\n\nOnce verified: the nonce is checked (a replay is refused before anything is charged to the\npeer), then [`CounterKey::FederatedIntake`] bounds the peer's total intake, then the nonce is\nspent. Then the **policy** budgets: the contract's per-`(server, account)` limit, and a\nper-peer ceiling that ignores the account, because `reported_user` is a string the peer\nchooses and a peer cycling accounts would otherwise mint itself a fresh allowance each time.\n\n# A signed report is accepted once, here, now\n\nThe claim names its recipient and carries a nonce and the instant it was signed; a report\naddressed to another server, signed more than\n[`REPORT_FRESHNESS`](crate::federation::REPORT_FRESHNESS) from this server's clock, or\ncarrying a nonce this peer already used is `401 error.moderation.report_unsigned`. A peer that\nretries — after a `429`, a timeout, a `500` — signs again with a fresh nonce.\n\nBefore any of that, the bytes parsed are bounded too: the federation group's body cap,\n[`MAX_FEDERATION_BODY_BYTES`](crate::limits::MAX_FEDERATION_BODY_BYTES), refuses a body past\n16 KiB with `413` before it is read — far above any real report, far below the upload\nbackstop every other group carries.\n\n# What accepting one does\n\nIt writes a row an operator will read ([`ModerationStore::pending_reports`](crate::moderation::ModerationStore::pending_reports)) and **nothing\nelse**. A peer's report is an input to a decision, never a decision: no standing changes, no\nserving hold appears, and the reported account sees nothing — because nothing has been done\nto them.\n\n# `202` whether or not the account exists\n\nA report naming an account this server does not host is **accepted on the wire and dropped**,\nwith a `warn` for the operator. It is not filed: an unresolvable report is a permanent orphan\nrow that nobody can act on, which is the reason the check exists at all.\n\nThe answer is deliberately the same one a filed report gets. An earlier version refused with a\ndistinct coded `404`, and that manufactured an account-enumeration oracle out of a check that\ndid not need one: a pinned peer could walk identifiers and read existence off the status line.\n\"Pinned\" is not \"trusted with enumeration\" — a peer key can be compromised, and a peer can be\nadversarial toward its own users while remaining an operator's legitimate partner — and this\ncodebase treats exists-versus-does-not as a first-order defect nearly everywhere else\n([`crate::routes::enroll`]'s indistinguishable code refusal, the album ceremonies' \"not yours\nis not found\", [`crate::serve::authority`]'s `404`/`403` boundary).\n\nProbing is not free even so: every budget above is charged before this point is reached, so a\npeer sweeping identifiers spends its allowance doing it and an operator sees the `warn`.",
        "operationId": "submit_federated_report",
        "parameters": [
          {
            "name": "X-Capsule-Protocol",
            "in": "header",
            "description": "The `YYYY-MM-DD` protocol version this request is written against. Outside the server's `[X-Capsule-Protocol-Min, X-Capsule-Protocol-Max]` window the request is refused with `426`.",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
            }
          },
          {
            "name": "X-Capsule-Crypto-Suite",
            "in": "header",
            "description": "The crypto suite id from the primitives inventory. Sent on writes; a suite this server does not implement is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          },
          {
            "name": "X-Capsule-Sidecar-Schema",
            "in": "header",
            "description": "The sidecar schema version declared at `sidecar_schema` field 0. Sent on metadata updates; a schema newer than this server indexes is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FederatedReportRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "400": {
            "description": "Bad Request; Malformed report; Malformed handshake",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "Payload Too Large; the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported Media Type",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "202": {
            "description": "The report was accepted for review",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/FederatedReportResponse"
                }
              }
            }
          },
          "401": {
            "description": "Report unsigned",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "403": {
            "description": "Peer unknown; Server blocked",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "429": {
            "description": "Report rate limited",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "425": {
            "description": "Too early",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "426": {
            "description": "Protocol version unsupported",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        }
      }
    },
    "/v1/federation/hints": {
      "post": {
        "tags": [
          "federation"
        ],
        "summary": "Receive a signed pull hint from an album's home server.",
        "description": "Answers `404 error.federation.not_configured` when this deployment does not federate —\n`FEDERATION_ENABLED` is off, which is the default — before the body is read, a budget is\ncharged or a store is touched.\n\n# A hint is advisory, and that is all it is\n\nA verified hint brings the job pulling `album_id` from `home_server` forward: no sooner than\none minute after that job's last pull, never for a peer on probation, and never past the\njob's back-off after a failed pull or the peer's open circuit, which the pull worker applies\nto the job exactly as it would have. A hint adds no job, changes nothing about what is pulled or where from, and carries\nnothing that reaches validation. The album is pulled on its own interval whether or not a\nhint ever arrives, so a refused hint costs at most that interval.\n\n# Only a pinned peer can hint, and only about its own albums\n\nThe hint carries its own Ed25519 signature, verified against the key an operator pinned for\n`home_server` with `capsule-server peer pin`; a peer nobody pinned is\n`403 error.federation.peer_unknown`, whatever it signed. The job a hint touches is keyed on the\nsigner, so a peer can only hint about albums this server pulls from that peer.\n\n# The order the checks run in\n\nThe order report intake runs them in: bounds; whether it is addressed here and signed just\nnow; who is speaking; whether they are welcome; whether they really said it; whether they said\nit before; how much they may ask for. **No budget is charged before the signature\nverifies**, so a stranger cannot spend a real peer's hint budget by sending garbage under its\nname. A hint addressed to another server, signed more than five minutes from this server's\nclock, or reusing a nonce this peer already used is `401 error.federation.hint_unsigned`; a\npeer that retries signs again with a fresh nonce.\n\n# `202` whether or not this server pulls the album\n\nA verified, admitted hint is answered `202` with the instant it was received, whatever became\nof it: it moved a job, the job was already due, this server pulls no such album, or the\npeer is on probation. Telling them apart would let a pinned peer walk album ids and read off\nwhich ones this server's members subscribe to. A held job and one that is not cost the same\nwork — one peer read and one schedule operation — so the answer's timing does not tell them\napart either; a peer on probation is answered after the peer read alone, which tells it only\nits own standing.\nOnly a store that could not answer is different: `500 error.federation.unavailable`, which\nsays nothing about any album.",
        "operationId": "submit_pull_hint",
        "parameters": [
          {
            "name": "X-Capsule-Protocol",
            "in": "header",
            "description": "The `YYYY-MM-DD` protocol version this request is written against. Outside the server's `[X-Capsule-Protocol-Min, X-Capsule-Protocol-Max]` window the request is refused with `426`.",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
            }
          },
          {
            "name": "X-Capsule-Crypto-Suite",
            "in": "header",
            "description": "The crypto suite id from the primitives inventory. Sent on writes; a suite this server does not implement is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          },
          {
            "name": "X-Capsule-Sidecar-Schema",
            "in": "header",
            "description": "The sidecar schema version declared at `sidecar_schema` field 0. Sent on metadata updates; a schema newer than this server indexes is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PullHintRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "400": {
            "description": "Bad Request; Malformed hint; Malformed handshake",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "Payload Too Large; the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported Media Type",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "202": {
            "description": "The hint was received",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PullHintResponse"
                }
              }
            }
          },
          "401": {
            "description": "Hint unsigned",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "403": {
            "description": "Peer unknown; Server blocked",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "429": {
            "description": "Hint rate limited",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "425": {
            "description": "Too early",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "426": {
            "description": "Protocol version unsupported",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        }
      }
    },
    "/v1/federation/subscriptions": {
      "get": {
        "tags": [
          "federation"
        ],
        "summary": "List the caller's subscriptions to federated albums, live or lapsed.",
        "description": "Answers `404 error.federation.not_configured` when this deployment does not federate.",
        "operationId": "list_subscriptions",
        "parameters": [
          {
            "name": "X-Capsule-Protocol",
            "in": "header",
            "description": "The `YYYY-MM-DD` protocol version this request is written against. Outside the server's `[X-Capsule-Protocol-Min, X-Capsule-Protocol-Max]` window the request is refused with `426`.",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
            }
          },
          {
            "name": "X-Capsule-Crypto-Suite",
            "in": "header",
            "description": "The crypto suite id from the primitives inventory. Sent on writes; a suite this server does not implement is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          },
          {
            "name": "X-Capsule-Sidecar-Schema",
            "in": "header",
            "description": "The sidecar schema version declared at `sidecar_schema` field 0. Sent on metadata updates; a schema newer than this server indexes is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "headers": {
              "WWW-Authenticate": {
                "description": "The challenge the client must answer, per RFC 9110 section 11.6.1.",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Bearer"
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubscriptionsResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request; Malformed handshake",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      },
      "post": {
        "tags": [
          "federation"
        ],
        "summary": "Subscribe to a federated album with the capability its home server minted for this server.",
        "description": "The capability is verified against the issuer's pinned key before anything is recorded, and\nmust name this server as its recipient. Posting one for an album already subscribed keeps\nwhichever capability lives longer, so a replayed invite never undoes a renewal. An account\nholds at most 1,000 subscriptions; one more is refused `403\nerror.federation.subscription_limit` until the caller unsubscribes from another.\n\nAnswers `404 error.federation.not_configured` when this deployment does not federate —\n`FEDERATION_ENABLED` is off, which is the default — before the credential is read or a store\nis touched.",
        "operationId": "subscribe_album",
        "parameters": [
          {
            "name": "X-Capsule-Protocol",
            "in": "header",
            "description": "The `YYYY-MM-DD` protocol version this request is written against. Outside the server's `[X-Capsule-Protocol-Min, X-Capsule-Protocol-Max]` window the request is refused with `426`.",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
            }
          },
          {
            "name": "X-Capsule-Crypto-Suite",
            "in": "header",
            "description": "The crypto suite id from the primitives inventory. Sent on writes; a suite this server does not implement is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          },
          {
            "name": "X-Capsule-Sidecar-Schema",
            "in": "header",
            "description": "The sidecar schema version declared at `sidecar_schema` field 0. Sent on metadata updates; a schema newer than this server indexes is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SubscribeRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "401": {
            "description": "Unauthorized",
            "headers": {
              "WWW-Authenticate": {
                "description": "The challenge the client must answer, per RFC 9110 section 11.6.1.",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Bearer"
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request; Malformed request; Malformed handshake",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "Payload Too Large; the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported Media Type",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "201": {
            "description": "The subscription was recorded",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubscriptionView"
                }
              }
            }
          },
          "200": {
            "description": "The caller already held this subscription; here it is as it now stands",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SubscriptionView"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "425": {
            "description": "Too early",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "426": {
            "description": "Protocol version unsupported",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/federation/subscriptions/{peer}/{album_id}": {
      "delete": {
        "tags": [
          "federation"
        ],
        "summary": "Stop pulling one federated album for the caller.",
        "description": "Idempotent: a subscription the caller does not hold is the same `204`. Another member's\nsubscription to the same album is untouched, and so is anything already pulled.\n\nAnswers `404 error.federation.not_configured` when this deployment does not federate.",
        "operationId": "unsubscribe_album",
        "parameters": [
          {
            "name": "peer",
            "in": "path",
            "description": "The album's home server.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "album_id",
            "in": "path",
            "description": "The album, as its home server names it.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Capsule-Protocol",
            "in": "header",
            "description": "The `YYYY-MM-DD` protocol version this request is written against. Outside the server's `[X-Capsule-Protocol-Min, X-Capsule-Protocol-Max]` window the request is refused with `426`.",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
            }
          },
          {
            "name": "X-Capsule-Crypto-Suite",
            "in": "header",
            "description": "The crypto suite id from the primitives inventory. Sent on writes; a suite this server does not implement is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          },
          {
            "name": "X-Capsule-Sidecar-Schema",
            "in": "header",
            "description": "The sidecar schema version declared at `sidecar_schema` field 0. Sent on metadata updates; a schema newer than this server indexes is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "headers": {
              "WWW-Authenticate": {
                "description": "The challenge the client must answer, per RFC 9110 section 11.6.1.",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Bearer"
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request; Malformed handshake",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "204": {
            "description": "the request succeeded and there is no content to send",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "425": {
            "description": "Too early",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "426": {
            "description": "Protocol version unsupported",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/federation/subscriptions/{peer}/{album_id}/assets": {
      "get": {
        "tags": [
          "federation"
        ],
        "summary": "List the assets this server pulled for one of the caller's subscriptions, a page at a time.",
        "description": "Each asset is its breadcrumb, read from the latest entry a pull accepted for it, so nothing\nlisted is anything but what passed this server's re-validation. Deleted and purged assets\nare not listed. A subscription nothing has been pulled for yet answers an empty page.\n\nAnswers `404 error.federation.album_not_found` when the caller holds no live subscription to\nthe album, whoever else does; and `404 error.federation.not_configured` when\nthis deployment does not federate.",
        "operationId": "list_pulled_assets",
        "parameters": [
          {
            "name": "peer",
            "in": "path",
            "description": "The album's home server.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "album_id",
            "in": "path",
            "description": "The album, as its home server names it.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "after",
            "in": "query",
            "description": "Resume after this asset id: the `next_after` the previous page answered. Absent starts\nfrom the first asset.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "How many assets to answer: 100 when absent, and clamped into 1 to 1,000.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 4294967295.0,
              "minimum": 0.0,
              "format": "uint32"
            }
          },
          {
            "name": "X-Capsule-Protocol",
            "in": "header",
            "description": "The `YYYY-MM-DD` protocol version this request is written against. Outside the server's `[X-Capsule-Protocol-Min, X-Capsule-Protocol-Max]` window the request is refused with `426`.",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
            }
          },
          {
            "name": "X-Capsule-Crypto-Suite",
            "in": "header",
            "description": "The crypto suite id from the primitives inventory. Sent on writes; a suite this server does not implement is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          },
          {
            "name": "X-Capsule-Sidecar-Schema",
            "in": "header",
            "description": "The sidecar schema version declared at `sidecar_schema` field 0. Sent on metadata updates; a schema newer than this server indexes is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "headers": {
              "WWW-Authenticate": {
                "description": "The challenge the client must answer, per RFC 9110 section 11.6.1.",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Bearer"
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request; Malformed handshake",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PulledAssetsResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/federation/subscriptions/{peer}/{album_id}/assets/{asset_id}/metadata": {
      "get": {
        "tags": [
          "federation"
        ],
        "summary": "Fetch the encrypted metadata blob one asset of a pulled album carries, as the pull stored it.",
        "description": "Opaque octets, byte for byte what the album's home server served and this server verified\nagainst its address: this server holds no key to them. The blob is the one the asset's\nlatest accepted entry carries.\n\nAnswers `404 error.federation.album_not_found` when the caller holds no live subscription to\nthe album, or the album holds no live asset by that id with a metadata blob; and `404\nerror.federation.not_configured` when this deployment does not federate.",
        "operationId": "get_pulled_asset_metadata",
        "parameters": [
          {
            "name": "peer",
            "in": "path",
            "description": "The album's home server.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "album_id",
            "in": "path",
            "description": "The album, as its home server names it.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "asset_id",
            "in": "path",
            "description": "The asset, as its home server names it.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Capsule-Protocol",
            "in": "header",
            "description": "The `YYYY-MM-DD` protocol version this request is written against. Outside the server's `[X-Capsule-Protocol-Min, X-Capsule-Protocol-Max]` window the request is refused with `426`.",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
            }
          },
          {
            "name": "X-Capsule-Crypto-Suite",
            "in": "header",
            "description": "The crypto suite id from the primitives inventory. Sent on writes; a suite this server does not implement is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          },
          {
            "name": "X-Capsule-Sidecar-Schema",
            "in": "header",
            "description": "The sidecar schema version declared at `sidecar_schema` field 0. Sent on metadata updates; a schema newer than this server indexes is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "headers": {
              "WWW-Authenticate": {
                "description": "The challenge the client must answer, per RFC 9110 section 11.6.1.",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Bearer"
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request; Malformed handshake",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            },
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/auth/devices": {
      "get": {
        "tags": [
          "devices"
        ],
        "summary": "List the caller's live sessions and the cohorts they group under.",
        "description": "Scoped by credential with no path parameter, for the same reason the escrow is: the only\naccount entitled to a session ledger is its own, and making that structural beats enforcing\nit.",
        "operationId": "list_devices",
        "parameters": [
          {
            "name": "X-Capsule-Protocol",
            "in": "header",
            "description": "The `YYYY-MM-DD` protocol version this request is written against. Outside the server's `[X-Capsule-Protocol-Min, X-Capsule-Protocol-Max]` window the request is refused with `426`.",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
            }
          },
          {
            "name": "X-Capsule-Crypto-Suite",
            "in": "header",
            "description": "The crypto suite id from the primitives inventory. Sent on writes; a suite this server does not implement is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          },
          {
            "name": "X-Capsule-Sidecar-Schema",
            "in": "header",
            "description": "The sidecar schema version declared at `sidecar_schema` field 0. Sent on metadata updates; a schema newer than this server indexes is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "headers": {
              "WWW-Authenticate": {
                "description": "The challenge the client must answer, per RFC 9110 section 11.6.1.",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Bearer"
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DevicesResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request; Malformed handshake",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/auth/devices/directory/{user_id}": {
      "get": {
        "tags": [
          "devices"
        ],
        "summary": "Fetch a user's signed device directory, verbatim.",
        "description": "The response body is the exact bytes the owner signed. Re-encoding them would detach the\ndocument from its signature, and the failure would look like the *publisher's* bug.",
        "operationId": "fetch_device_directory",
        "parameters": [
          {
            "name": "user_id",
            "in": "path",
            "description": "The account id.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Capsule-Protocol",
            "in": "header",
            "description": "The `YYYY-MM-DD` protocol version this request is written against. Outside the server's `[X-Capsule-Protocol-Min, X-Capsule-Protocol-Max]` window the request is refused with `426`.",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
            }
          },
          {
            "name": "X-Capsule-Crypto-Suite",
            "in": "header",
            "description": "The crypto suite id from the primitives inventory. Sent on writes; a suite this server does not implement is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          },
          {
            "name": "X-Capsule-Sidecar-Schema",
            "in": "header",
            "description": "The sidecar schema version declared at `sidecar_schema` field 0. Sent on metadata updates; a schema newer than this server indexes is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "headers": {
              "WWW-Authenticate": {
                "description": "The challenge the client must answer, per RFC 9110 section 11.6.1.",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Bearer"
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request; Malformed handshake",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            },
            "content": {
              "application/cbor": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/quota": {
      "get": {
        "tags": [
          "quota"
        ],
        "summary": "Report the authenticated uploader's storage-quota snapshot.",
        "description": "Scoped to the caller, and to nobody else: quota is accounted to the *uploader*, and one\naccount's storage use is not another's business.",
        "operationId": "get_quota",
        "parameters": [
          {
            "name": "X-Capsule-Protocol",
            "in": "header",
            "description": "The `YYYY-MM-DD` protocol version this request is written against. Outside the server's `[X-Capsule-Protocol-Min, X-Capsule-Protocol-Max]` window the request is refused with `426`.",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
            }
          },
          {
            "name": "X-Capsule-Crypto-Suite",
            "in": "header",
            "description": "The crypto suite id from the primitives inventory. Sent on writes; a suite this server does not implement is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          },
          {
            "name": "X-Capsule-Sidecar-Schema",
            "in": "header",
            "description": "The sidecar schema version declared at `sidecar_schema` field 0. Sent on metadata updates; a schema newer than this server indexes is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "headers": {
              "WWW-Authenticate": {
                "description": "The challenge the client must answer, per RFC 9110 section 11.6.1.",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Bearer"
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QuotaResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request; Malformed handshake",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/moderation/record": {
      "get": {
        "tags": [
          "moderation"
        ],
        "summary": "Serve the caller's own moderation record.",
        "operationId": "moderation_record",
        "parameters": [
          {
            "name": "X-Capsule-Protocol",
            "in": "header",
            "description": "The `YYYY-MM-DD` protocol version this request is written against. Outside the server's `[X-Capsule-Protocol-Min, X-Capsule-Protocol-Max]` window the request is refused with `426`.",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
            }
          },
          {
            "name": "X-Capsule-Crypto-Suite",
            "in": "header",
            "description": "The crypto suite id from the primitives inventory. Sent on writes; a suite this server does not implement is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          },
          {
            "name": "X-Capsule-Sidecar-Schema",
            "in": "header",
            "description": "The sidecar schema version declared at `sidecar_schema` field 0. Sent on metadata updates; a schema newer than this server indexes is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "headers": {
              "WWW-Authenticate": {
                "description": "The challenge the client must answer, per RFC 9110 section 11.6.1.",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Bearer"
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ModerationRecordResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request; Malformed handshake",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/upload/sessions": {
      "get": {
        "tags": [
          "upload"
        ],
        "summary": "Every upload the caller can resume.",
        "description": "Oldest first, which is the order the store promises and the order a client wants: the oldest\nin-flight session is the one closest to eviction.",
        "operationId": "list_upload_sessions",
        "parameters": [
          {
            "name": "status",
            "in": "query",
            "description": "Return only sessions in this state.\n\nOne of `pending`, `uploading`, `waiting_for_processing`, `completed`,\n`failed_processing` — the same tokens the `X-Capsule-Upload-Status` header carries, so a\nclient filters on the value it was already given rather than on a second vocabulary.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Capsule-Protocol",
            "in": "header",
            "description": "The `YYYY-MM-DD` protocol version this request is written against. Outside the server's `[X-Capsule-Protocol-Min, X-Capsule-Protocol-Max]` window the request is refused with `426`.",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
            }
          },
          {
            "name": "X-Capsule-Crypto-Suite",
            "in": "header",
            "description": "The crypto suite id from the primitives inventory. Sent on writes; a suite this server does not implement is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          },
          {
            "name": "X-Capsule-Sidecar-Schema",
            "in": "header",
            "description": "The sidecar schema version declared at `sidecar_schema` field 0. Sent on metadata updates; a schema newer than this server indexes is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "headers": {
              "WWW-Authenticate": {
                "description": "The challenge the client must answer, per RFC 9110 section 11.6.1.",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Bearer"
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request; Invalid status filter; Malformed handshake",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SessionsResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/upload/{id}/receipt": {
      "get": {
        "tags": [
          "upload"
        ],
        "summary": "Fetch the custody receipt for a finalized upload.",
        "operationId": "get_upload_receipt",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The session's identifier, as `POST /v1/upload` returned it.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Capsule-Protocol",
            "in": "header",
            "description": "The `YYYY-MM-DD` protocol version this request is written against. Outside the server's `[X-Capsule-Protocol-Min, X-Capsule-Protocol-Max]` window the request is refused with `426`.",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
            }
          },
          {
            "name": "X-Capsule-Crypto-Suite",
            "in": "header",
            "description": "The crypto suite id from the primitives inventory. Sent on writes; a suite this server does not implement is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          },
          {
            "name": "X-Capsule-Sidecar-Schema",
            "in": "header",
            "description": "The sidecar schema version declared at `sidecar_schema` field 0. Sent on metadata updates; a schema newer than this server indexes is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "headers": {
              "WWW-Authenticate": {
                "description": "The challenge the client must answer, per RFC 9110 section 11.6.1.",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Bearer"
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request; Malformed handshake",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            },
            "content": {
              "application/cbor": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "409": {
            "description": "Receipt not available",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/sync": {
      "get": {
        "tags": [
          "sync"
        ],
        "summary": "Returns the changes in the caller's library after `cursor`.",
        "description": "Read-only and idempotent: two calls with the same cursor return the same page, because the\ncursor names a position rather than consuming one. That is what makes a lost response\nharmless and a retry free.",
        "operationId": "sync_feed",
        "parameters": [
          {
            "name": "cursor",
            "in": "query",
            "description": "The opaque cursor a previous page returned. Absent means \"from the beginning\".",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page_size",
            "in": "query",
            "description": "How many entries to return. Clamped into the range this server serves.\n\n`u32` and not `usize`: Kynos refuses to describe a platform-width integer, and it is\nright to — a schema whose bounds depend on the server's pointer size is a schema no\nclient can rely on.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 4294967295.0,
              "minimum": 0.0,
              "format": "uint32"
            }
          },
          {
            "name": "album_id",
            "in": "query",
            "description": "One album's page rather than the caller's own feed.\n\nFor the album's owner or any account on its current roster. Positions are the owner's\nsequence numbers filtered to the album, and the cursor is bound to `(caller, album)`, so\nit cannot be presented on the caller's own feed or on another album. Absent: the caller's\nown library, as before.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Capsule-Request-Signature",
            "in": "header",
            "description": "`t=<Unix seconds>, n=<nonce>, s=<base64url Ed25519 signature>`, made by the peer a\npresented federation capability names, over the request's method, path and capability\n(design/federation.md, \"Request Signatures\"). Required with a capability; ignored with a\nsession token.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Capsule-Protocol",
            "in": "header",
            "description": "The `YYYY-MM-DD` protocol version this request is written against. Outside the server's `[X-Capsule-Protocol-Min, X-Capsule-Protocol-Max]` window the request is refused with `426`.",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
            }
          },
          {
            "name": "X-Capsule-Crypto-Suite",
            "in": "header",
            "description": "The crypto suite id from the primitives inventory. Sent on writes; a suite this server does not implement is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          },
          {
            "name": "X-Capsule-Sidecar-Schema",
            "in": "header",
            "description": "The sidecar schema version declared at `sidecar_schema` field 0. Sent on metadata updates; a schema newer than this server indexes is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "headers": {
              "WWW-Authenticate": {
                "description": "The challenge the client must answer, per RFC 9110 section 11.6.1.",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Bearer"
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden; Album access denied; Capability revoked; Audience mismatch; Server blocked",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request; Invalid sync cursor; Malformed handshake",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SyncPageResponse"
                }
              }
            }
          },
          "409": {
            "description": "Stale sync cursor",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "429": {
            "description": "Rate budget exceeded",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/blob/{hash}": {
      "get": {
        "tags": [
          "media"
        ],
        "summary": "Fetch a ciphertext blob by its content address, ranged.",
        "description": "Opaque octets: the server holds no key and this route never learns what it is serving. An\naccount fetches the blobs of its own assets and of the albums it is currently a member of; a\nformer member is told `403`, and everyone else is told what an unknown address is told —\nsee [`crate::serve`] for the boundary and its reasons.\n\nThe one answer that *is* account-scoped is the transient `409`: it reports the caller's own\nin-flight upload and nobody else's.\n\nA federated peer fetches here with a capability instead of a session token, through\nthe same resolution and the same authority.",
        "operationId": "get_blob",
        "parameters": [
          {
            "name": "hash",
            "in": "path",
            "description": "The blob's ciphertext content address, lowercase hex.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Capsule-Request-Signature",
            "in": "header",
            "description": "`t=<Unix seconds>, n=<nonce>, s=<base64url Ed25519 signature>`, made by the peer a\npresented federation capability names, over the request's method, path and capability\n(design/federation.md, \"Request Signatures\"). Required with a capability; ignored with a\nsession token.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Range",
            "in": "header",
            "description": "The part of the representation to transfer, per RFC 9110 section 14.2. A field this operation cannot apply is ignored and the whole representation is sent.",
            "schema": {
              "type": "string",
              "pattern": "^[Bb][Yy][Tt][Ee][Ss]=[ \\t]*(?:\\d+-\\d*|-\\d+)(?:[ \\t]*,[ \\t]*(?:\\d+-\\d*|-\\d+)){0,7}$"
            },
            "example": "bytes=0-1023"
          },
          {
            "name": "If-Range",
            "in": "header",
            "description": "The entity tag the client's partial copy came from, per RFC 9110 section 13.1.5. The `Range` is honoured only if it matches this representation under the strong comparison; otherwise the whole representation is sent.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "description": "The entity tag the client's copy was taken from, per RFC 9110 section 13.1.1",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "If-Unmodified-Since",
            "in": "header",
            "description": "The date the client's copy carries, refused if the representation changed since, per RFC 9110 section 13.1.4",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "description": "The entity tag the client already holds, per RFC 9110 section 13.1.2",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "If-Modified-Since",
            "in": "header",
            "description": "The date the client's copy carries, per RFC 9110 section 13.1.3",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Capsule-Protocol",
            "in": "header",
            "description": "The `YYYY-MM-DD` protocol version this request is written against. Outside the server's `[X-Capsule-Protocol-Min, X-Capsule-Protocol-Max]` window the request is refused with `426`.",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
            }
          },
          {
            "name": "X-Capsule-Crypto-Suite",
            "in": "header",
            "description": "The crypto suite id from the primitives inventory. Sent on writes; a suite this server does not implement is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          },
          {
            "name": "X-Capsule-Sidecar-Schema",
            "in": "header",
            "description": "The sidecar schema version declared at `sidecar_schema` field 0. Sent on metadata updates; a schema newer than this server indexes is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "headers": {
              "WWW-Authenticate": {
                "description": "The challenge the client must answer, per RFC 9110 section 11.6.1.",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Bearer"
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden; Access revoked; Capability revoked; Server blocked; Scope insufficient",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request; Malformed handshake",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "200": {
            "description": "the whole representation",
            "headers": {
              "Accept-Ranges": {
                "schema": {
                  "type": "string"
                }
              },
              "ETag": {
                "schema": {
                  "type": "string"
                }
              },
              "Last-Modified": {
                "schema": {
                  "type": "string"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string"
                }
              },
              "Content-Disposition": {
                "description": "Whether to save or show the representation, and the filename to suggest",
                "schema": {
                  "type": "string"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            },
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "206": {
            "description": "the part the request asked for",
            "headers": {
              "Accept-Ranges": {
                "schema": {
                  "type": "string"
                }
              },
              "ETag": {
                "schema": {
                  "type": "string"
                }
              },
              "Last-Modified": {
                "schema": {
                  "type": "string"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string"
                }
              },
              "Content-Disposition": {
                "description": "Whether to save or show the representation, and the filename to suggest",
                "schema": {
                  "type": "string"
                }
              },
              "Content-Range": {
                "description": "The part of the representation enclosed, and its complete length, per RFC 9110 section 14.4.",
                "required": true,
                "content": {
                  "text/plain": {
                    "schema": {
                      "type": "string",
                      "pattern": "^bytes \\d+-\\d+/\\d+$"
                    }
                  }
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            },
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "304": {
            "description": "the client's copy is current",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              },
              "Last-Modified": {
                "schema": {
                  "type": "string"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "412": {
            "description": "the representation is not the one the client's copy came from",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "416": {
            "description": "Range Not Satisfiable",
            "headers": {
              "Content-Range": {
                "description": "The complete length of the selected representation, per RFC 9110 section 15.5.17.",
                "required": true,
                "content": {
                  "text/plain": {
                    "schema": {
                      "type": "string",
                      "pattern": "^bytes \\*/\\d+$"
                    }
                  }
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "409": {
            "description": "Upload in progress",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "410": {
            "description": "Gone",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "429": {
            "description": "Rate budget exceeded",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/assets/{asset_id}/receipts": {
      "get": {
        "tags": [
          "storage"
        ],
        "summary": "Fetch every custody receipt covering one asset.",
        "operationId": "get_asset_receipts",
        "parameters": [
          {
            "name": "asset_id",
            "in": "path",
            "description": "The asset id.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Capsule-Protocol",
            "in": "header",
            "description": "The `YYYY-MM-DD` protocol version this request is written against. Outside the server's `[X-Capsule-Protocol-Min, X-Capsule-Protocol-Max]` window the request is refused with `426`.",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
            }
          },
          {
            "name": "X-Capsule-Crypto-Suite",
            "in": "header",
            "description": "The crypto suite id from the primitives inventory. Sent on writes; a suite this server does not implement is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          },
          {
            "name": "X-Capsule-Sidecar-Schema",
            "in": "header",
            "description": "The sidecar schema version declared at `sidecar_schema` field 0. Sent on metadata updates; a schema newer than this server indexes is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "headers": {
              "WWW-Authenticate": {
                "description": "The challenge the client must answer, per RFC 9110 section 11.6.1.",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Bearer"
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request; Malformed handshake",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AssetReceiptsResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/drops": {
      "get": {
        "tags": [
          "drops"
        ],
        "summary": "The caller's pending drops.",
        "operationId": "list_inbox",
        "parameters": [
          {
            "name": "X-Capsule-Protocol",
            "in": "header",
            "description": "The `YYYY-MM-DD` protocol version this request is written against. Outside the server's `[X-Capsule-Protocol-Min, X-Capsule-Protocol-Max]` window the request is refused with `426`.",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
            }
          },
          {
            "name": "X-Capsule-Crypto-Suite",
            "in": "header",
            "description": "The crypto suite id from the primitives inventory. Sent on writes; a suite this server does not implement is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          },
          {
            "name": "X-Capsule-Sidecar-Schema",
            "in": "header",
            "description": "The sidecar schema version declared at `sidecar_schema` field 0. Sent on metadata updates; a schema newer than this server indexes is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "headers": {
              "WWW-Authenticate": {
                "description": "The challenge the client must answer, per RFC 9110 section 11.6.1.",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Bearer"
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InboxResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request; Malformed handshake",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/auth/escrow/albums": {
      "get": {
        "tags": [
          "escrow"
        ],
        "summary": "List every album key escrow the caller holds, each blob verbatim.",
        "description": "What `capsule auth recover` reads to give a library created from the master key the\naccount's albums before anything creates one, and what a push compares its albums against\nto re-escrow only the ones that changed. An account that has escrowed no album gets an\nempty list, never a `404`.",
        "operationId": "list_album_keys",
        "parameters": [
          {
            "name": "X-Capsule-Protocol",
            "in": "header",
            "description": "The `YYYY-MM-DD` protocol version this request is written against. Outside the server's `[X-Capsule-Protocol-Min, X-Capsule-Protocol-Max]` window the request is refused with `426`.",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
            }
          },
          {
            "name": "X-Capsule-Crypto-Suite",
            "in": "header",
            "description": "The crypto suite id from the primitives inventory. Sent on writes; a suite this server does not implement is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          },
          {
            "name": "X-Capsule-Sidecar-Schema",
            "in": "header",
            "description": "The sidecar schema version declared at `sidecar_schema` field 0. Sent on metadata updates; a schema newer than this server indexes is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "headers": {
              "WWW-Authenticate": {
                "description": "The challenge the client must answer, per RFC 9110 section 11.6.1.",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Bearer"
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AlbumKeysListing"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request; Malformed handshake",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/auth/activity": {
      "get": {
        "tags": [
          "devices"
        ],
        "summary": "Serve the caller's own activity log, newest first.",
        "operationId": "list_activity",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "description": "The most events to return, newest first. Defaults to 100; a larger value than the log's\nbound (1,000) returns the whole log.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 4294967295.0,
              "minimum": 0.0,
              "format": "uint32"
            }
          },
          {
            "name": "X-Capsule-Protocol",
            "in": "header",
            "description": "The `YYYY-MM-DD` protocol version this request is written against. Outside the server's `[X-Capsule-Protocol-Min, X-Capsule-Protocol-Max]` window the request is refused with `426`.",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
            }
          },
          {
            "name": "X-Capsule-Crypto-Suite",
            "in": "header",
            "description": "The crypto suite id from the primitives inventory. Sent on writes; a suite this server does not implement is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          },
          {
            "name": "X-Capsule-Sidecar-Schema",
            "in": "header",
            "description": "The sidecar schema version declared at `sidecar_schema` field 0. Sent on metadata updates; a schema newer than this server indexes is refused with `400`.",
            "required": false,
            "schema": {
              "type": "integer",
              "maximum": 65535.0,
              "minimum": 0.0
            }
          }
        ],
        "responses": {
          "401": {
            "description": "Unauthorized",
            "headers": {
              "WWW-Authenticate": {
                "description": "The challenge the client must answer, per RFC 9110 section 11.6.1.",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Bearer"
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "400": {
            "description": "Bad Request; Malformed handshake",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ActivityResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/v1/version": {
      "get": {
        "summary": "Reports the server's name and version.",
        "description": "Unauthenticated and side-effect free. Clients use it as a reachability probe before\nattempting a protocol handshake, so it must stay cheap and must never fail for a reason\nthe caller could act on — there is no failure variant, and the return type says so.",
        "operationId": "get_version",
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VersionResponse"
                }
              }
            }
          },
          "413": {
            "description": "the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        }
      }
    },
    "/.well-known/capsule/attestation-keys": {
      "get": {
        "tags": [
          "well-known"
        ],
        "summary": "Serve this server's storage-attestation keys and their append-only history.",
        "description": "Cacheable and unauthenticated. It changes only when a key rotates, and a client that pinned\na stale copy still resolves every receipt signed before it fetched — which is the property\nthe append-only ordering buys.",
        "operationId": "attestation_keys",
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AttestationKeysResponse"
                }
              }
            }
          },
          "413": {
            "description": "the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        }
      }
    },
    "/.well-known/capsule/server-info": {
      "get": {
        "tags": [
          "well-known"
        ],
        "summary": "Serve this server's public, server-scoped facts.",
        "description": "Unauthenticated by contract: a client deciding whether it can talk to this server at all has\nno credential yet, and a peer resolving the key that verifies a capability token must not\nneed one from the server whose claims it is checking.",
        "operationId": "server_info",
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServerInfoResponse"
                }
              }
            }
          },
          "413": {
            "description": "the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        }
      }
    },
    "/.well-known/capsule/deprecation": {
      "get": {
        "tags": [
          "well-known"
        ],
        "summary": "Serve the announced deprecation cutoffs.",
        "description": "The same announcements `server-info` carries, at their own path because that is the URL the\n`Warning:` header on a below-cutoff response points a human at, and because a client polling\nfor a cutoff should not have to refetch the whole discovery record to find one.",
        "operationId": "deprecation_announcements",
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DeprecationsResponse"
                }
              }
            }
          },
          "413": {
            "description": "the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        }
      }
    },
    "/.well-known/capsule/revoked-jti": {
      "get": {
        "tags": [
          "well-known"
        ],
        "summary": "Serve the federation capability revocation list.",
        "description": "Bounded by at most 24 hours of revocations, because an entry past the token's own `exp` is\npruned and a capability token cannot be minted to live longer than that. Public: a peer\nchecking whether a token it holds is still good is, by construction, not yet authenticated\nhere, and the record names no user — only opaque `jti`s.\n\n# Errors\n\nReturns `503` if the revocation list cannot be read. Deliberately *not* an empty list: an\nempty list is the strongest possible claim this endpoint can make — nothing is revoked — and\nserving it on a storage failure would turn an outage into a silent un-revocation of every\ntoken, which is exactly what the peer-side fail-closed rule exists to prevent.",
        "operationId": "revoked_jti",
        "responses": {
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RevokedJtiResponse"
                }
              }
            }
          },
          "503": {
            "description": "Revocation list unavailable",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        }
      }
    },
    "/s/{opaque_id}": {
      "get": {
        "tags": [
          "shares"
        ],
        "summary": "What a viewer needs to begin, for a live link.",
        "operationId": "share_metadata",
        "parameters": [
          {
            "name": "opaque_id",
            "in": "path",
            "description": "The opaque id.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "Bad Request",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SharedMetadataResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying (RFC 9110 delta-seconds): the problem's `retry_after` instant, measured from the server's clock.",
                "schema": {
                  "type": "integer",
                  "minimum": 0.0,
                  "format": "uint64"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ShareMetadataRateLimitedProblem"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        }
      }
    },
    "/s/{opaque_id}/wrapped-secret": {
      "get": {
        "tags": [
          "shares"
        ],
        "summary": "The passphrase-wrapped scope material, when there is one.",
        "description": "The octets the issuer registered as `wrapped_secret`, byte for byte. A viewer fetches this only\nfor a passphrase-protected link; a link with no passphrase carries its scope in the sealed\nmetadata blob instead.\n\nA link with no passphrase answers `404` rather than `204` or an empty body: whether a link is\npassphrase-protected is already disclosed by the metadata record, and a *second* way to ask\nthe same question with a different shape is a second thing to keep consistent.",
        "operationId": "share_wrapped_secret",
        "parameters": [
          {
            "name": "opaque_id",
            "in": "path",
            "description": "The opaque id.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "Bad Request",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            },
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying (RFC 9110 delta-seconds): the problem's `retry_after` instant, measured from the server's clock.",
                "schema": {
                  "type": "integer",
                  "minimum": 0.0,
                  "format": "uint64"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ShareSecretRateLimitedProblem"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        }
      }
    },
    "/s/{opaque_id}/blob/{hash}": {
      "get": {
        "tags": [
          "shares"
        ],
        "summary": "Ciphertext for one of the link's blobs, ranged.",
        "description": "The membership check is the security property: a link serves the addresses its record\nenumerates and nothing else, so it cannot be walked sideways into the album's unstripped\nmetadata. A blob the link does not name is the same `404` as a link that does not exist.\n\nA delivery that carries bytes is recorded in the owner's activity log, aggregated: one\n`share_link.served` per link per window, naming the link and never the blob, and written\noff the response path so it neither slows nor refuses the serve.",
        "operationId": "share_blob",
        "parameters": [
          {
            "name": "opaque_id",
            "in": "path",
            "description": "The opaque id.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "hash",
            "in": "path",
            "description": "The blob's content address.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Range",
            "in": "header",
            "description": "The part of the representation to transfer, per RFC 9110 section 14.2. A field this operation cannot apply is ignored and the whole representation is sent.",
            "schema": {
              "type": "string",
              "pattern": "^[Bb][Yy][Tt][Ee][Ss]=[ \\t]*(?:\\d+-\\d*|-\\d+)(?:[ \\t]*,[ \\t]*(?:\\d+-\\d*|-\\d+)){0,7}$"
            },
            "example": "bytes=0-1023"
          },
          {
            "name": "If-Range",
            "in": "header",
            "description": "The entity tag the client's partial copy came from, per RFC 9110 section 13.1.5. The `Range` is honoured only if it matches this representation under the strong comparison; otherwise the whole representation is sent.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "If-Match",
            "in": "header",
            "description": "The entity tag the client's copy was taken from, per RFC 9110 section 13.1.1",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "If-Unmodified-Since",
            "in": "header",
            "description": "The date the client's copy carries, refused if the representation changed since, per RFC 9110 section 13.1.4",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "If-None-Match",
            "in": "header",
            "description": "The entity tag the client already holds, per RFC 9110 section 13.1.2",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "If-Modified-Since",
            "in": "header",
            "description": "The date the client's copy carries, per RFC 9110 section 13.1.3",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "Bad Request",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "200": {
            "description": "the whole representation",
            "headers": {
              "Accept-Ranges": {
                "schema": {
                  "type": "string"
                }
              },
              "ETag": {
                "schema": {
                  "type": "string"
                }
              },
              "Last-Modified": {
                "schema": {
                  "type": "string"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string"
                }
              },
              "Content-Disposition": {
                "description": "Whether to save or show the representation, and the filename to suggest",
                "schema": {
                  "type": "string"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            },
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "206": {
            "description": "the part the request asked for",
            "headers": {
              "Accept-Ranges": {
                "schema": {
                  "type": "string"
                }
              },
              "ETag": {
                "schema": {
                  "type": "string"
                }
              },
              "Last-Modified": {
                "schema": {
                  "type": "string"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string"
                }
              },
              "Content-Disposition": {
                "description": "Whether to save or show the representation, and the filename to suggest",
                "schema": {
                  "type": "string"
                }
              },
              "Content-Range": {
                "description": "The part of the representation enclosed, and its complete length, per RFC 9110 section 14.4.",
                "required": true,
                "content": {
                  "text/plain": {
                    "schema": {
                      "type": "string",
                      "pattern": "^bytes \\d+-\\d+/\\d+$"
                    }
                  }
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            },
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "304": {
            "description": "the client's copy is current",
            "headers": {
              "ETag": {
                "schema": {
                  "type": "string"
                }
              },
              "Last-Modified": {
                "schema": {
                  "type": "string"
                }
              },
              "Cache-Control": {
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "412": {
            "description": "the representation is not the one the client's copy came from",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            }
          },
          "416": {
            "description": "Range Not Satisfiable",
            "headers": {
              "Content-Range": {
                "description": "The complete length of the selected representation, per RFC 9110 section 15.5.17.",
                "required": true,
                "content": {
                  "text/plain": {
                    "schema": {
                      "type": "string",
                      "pattern": "^bytes \\*/\\d+$"
                    }
                  }
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying (RFC 9110 delta-seconds): the problem's `retry_after` instant, measured from the server's clock.",
                "schema": {
                  "type": "integer",
                  "minimum": 0.0,
                  "format": "uint64"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/ShareBlobRateLimitedProblem"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        }
      }
    },
    "/d/{opaque_id}/{upload_id}": {
      "get": {
        "tags": [
          "drops"
        ],
        "summary": "Report a drop session's state, and its deposit's outcome once it has one.",
        "description": "The completing chunk is answered `waiting_for_processing` before the deposit's re-hash runs,\nso this is where a guest learns whether the drop was filed or refused: `completed`, or\n`failed_processing` with the deposit's `error.*` code. A guest polls it with backoff.\n\nAuthorized exactly as a chunk is: the link's opaque id, live for chunks, plus a session that\nis a drop under that link's owner. Read-only — it starts nothing, so polling it cannot change\nwhat it reports — and it charges no limiter: it reveals nothing the holder of the two ids does\nnot already own, and a poll spending the per-source budget would refuse the guest's next drop.",
        "operationId": "drop_status",
        "parameters": [
          {
            "name": "opaque_id",
            "in": "path",
            "description": "The opaque id of the link the session belongs to.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "upload_id",
            "in": "path",
            "description": "The session id.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "400": {
            "description": "Bad Request",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "200": {
            "description": "The drop session's state",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DropStatusResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        }
      },
      "patch": {
        "tags": [
          "drops"
        ],
        "summary": "Append one chunk to a drop session.",
        "description": "The link is the credential: possession of the opaque id, plus a session that belongs to it.\nEverything after that is [`crate::upload::chunk::write_range`] — the album path's own\nfunction.",
        "operationId": "append_drop_chunk",
        "parameters": [
          {
            "name": "opaque_id",
            "in": "path",
            "description": "The opaque id of the link the session belongs to.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "upload_id",
            "in": "path",
            "description": "The session id.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Capsule-Offset",
            "in": "header",
            "description": "Where in the blob this chunk starts.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-Capsule-Checksum",
            "in": "header",
            "description": "The chunk's SHA-256, bare lowercase hex. Required: the idempotency tuple is undefined\nwithout it.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/octet-stream": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            }
          },
          "required": true
        },
        "responses": {
          "400": {
            "description": "Bad Request; Malformed request; Malformed chunk",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported media type",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "408": {
            "description": "Request timeout",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "204": {
            "description": "the request succeeded and there is no content to send",
            "headers": {
              "X-Capsule-Offset": {
                "description": "Where the session is now.",
                "required": true,
                "schema": {
                  "type": "integer",
                  "minimum": 0.0,
                  "format": "uint64"
                }
              },
              "X-Capsule-Upload-Status": {
                "description": "`uploading`, or `waiting_for_processing` once the drop holds every declared byte and its\ndeposit is running. The deposit is never awaited by the chunk that completes it.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "409": {
            "description": "Chunk refused",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "507": {
            "description": "Insufficient storage",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying (RFC 9110 delta-seconds): the problem's `retry_after` instant, measured from the server's clock.",
                "schema": {
                  "type": "integer",
                  "minimum": 0.0,
                  "format": "uint64"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/DropChunkStorageFullProblem"
                }
              }
            }
          },
          "503": {
            "description": "Service unavailable",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying (RFC 9110 delta-seconds): the problem's `retry_after` instant, measured from the server's clock.",
                "schema": {
                  "type": "integer",
                  "minimum": 0.0,
                  "format": "uint64"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/DropChunkUnavailableProblem"
                }
              }
            }
          },
          "425": {
            "description": "Too early",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        }
      }
    },
    "/v1/auth/refresh": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "Exchange a refresh token for a new pair, rotating the session.",
        "description": "The presented session is **closed** and a new one opened in its place, so a refresh token is\ngood exactly once. The session's advisory provenance — its cohort hash and device id — is\ncarried across the rotation, or the devices listing would lose track of a device every time\nits tokens turned over.",
        "operationId": "refresh_token",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RefreshRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "400": {
            "description": "Bad Request",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "Payload Too Large; the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported Media Type",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "200": {
            "description": "OK",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TokenResponse"
                }
              }
            }
          },
          "401": {
            "description": "Session expired",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "425": {
            "description": "Too early",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        }
      }
    },
    "/v1/auth/logout": {
      "post": {
        "tags": [
          "auth"
        ],
        "summary": "End the session the presented access token was issued against.",
        "description": "Idempotent: a session that is already closed, expired, or was never opened produces the same\nanswer, because \"there is no longer a session\" is what the caller asked for.",
        "operationId": "logout",
        "responses": {
          "401": {
            "description": "Unauthorized",
            "headers": {
              "WWW-Authenticate": {
                "description": "The challenge the client must answer, per RFC 9110 section 11.6.1.",
                "required": true,
                "schema": {
                  "type": "string"
                },
                "example": "Bearer"
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "204": {
            "description": "the request succeeded and there is no content to send",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "425": {
            "description": "Too early",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        },
        "security": [
          {
            "bearer": []
          }
        ]
      }
    },
    "/d/{opaque_id}": {
      "post": {
        "tags": [
          "drops"
        ],
        "summary": "Open a drop session through a link.",
        "description": "Invariants 26–30 in order: the link admits the file and reserves its caps in one store\noperation, then the owner's quota is charged, then the declaration is checked. A drop the\nowner's quota will not admit is `403 error.quota.exceeded`, or `403 error.quota.suspended`\nwhile the operator has suspended the owner's quota.",
        "operationId": "create_drop",
        "parameters": [
          {
            "name": "opaque_id",
            "in": "path",
            "description": "The opaque id.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateDropRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "400": {
            "description": "Bad Request; Malformed drop",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "408": {
            "description": "Request Timeout",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "413": {
            "description": "Payload Too Large; File too large; the request body exceeds the configured limit",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/FileTooLargeProblem"
                }
              }
            }
          },
          "415": {
            "description": "Unsupported Media Type",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "422": {
            "description": "Unprocessable Entity",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "201": {
            "description": "A drop session is open and accepting chunks",
            "headers": {
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateDropResponse"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "403": {
            "description": "Passphrase required; Quota exceeded; Quota suspended",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "409": {
            "description": "Link capacity exhausted",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "429": {
            "description": "Too many requests",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying (RFC 9110 delta-seconds): the problem's `retry_after` instant, measured from the server's clock.",
                "schema": {
                  "type": "integer",
                  "minimum": 0.0,
                  "format": "uint64"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/DropRateLimitedProblem"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          },
          "425": {
            "description": "Too early",
            "headers": {
              "X-Capsule-Protocol-Min": {
                "description": "The oldest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Protocol-Max": {
                "description": "The newest protocol version this server accepts.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
                }
              },
              "X-Capsule-Min-Client-Build": {
                "description": "The semver client build below which this server will stop answering. Advisory: `0.0.0` when no cutoff has been announced.",
                "required": true,
                "schema": {
                  "type": "string",
                  "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$"
                }
              },
              "X-Request-Id": {
                "description": "The UUIDv7 this server minted for the request. Quote it when reporting a failure: it names the request's log lines. Never taken from the client.",
                "required": true,
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/CodedProblem"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "RegisterRequest": {
        "properties": {
          "email": {
            "type": "string",
            "description": "The address the account is identified by."
          },
          "password": {
            "type": "string",
            "description": "The password that will authenticate this account's **sessions**.\n\nNever the master key's input: the master key does not derive from it and is never visible\nto the credential verifier. Hashed by the registry adapter and never retained, logged, or\nechoed."
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "email",
          "password"
        ],
        "description": "The `POST /v1/auth/register` body.\n\nDeliberately the *smallest* thing that can create an account: an address and a password. No\ndisplay name, no profile, no invitation code — every one of those would be a field the server\nstores about a person, and this server's whole posture is that it stores as little as it can."
      },
      "Problem": {
        "properties": {
          "type": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "integer",
            "maximum": 65535.0,
            "minimum": 0.0,
            "format": "uint16"
          },
          "detail": {
            "type": "string"
          },
          "instance": {
            "type": "string"
          }
        },
        "additionalProperties": true,
        "type": "object",
        "required": [
          "type",
          "status"
        ],
        "title": "Problem Details",
        "description": "An RFC 9457 problem detail."
      },
      "TokenResponse": {
        "properties": {
          "access_token": {
            "type": "string",
            "description": "The short-lived credential for ordinary requests."
          },
          "refresh_token": {
            "type": "string",
            "description": "The long-lived credential that buys new pairs from `POST /v1/auth/refresh`."
          },
          "token_type": {
            "type": "string",
            "description": "Always `Bearer`."
          },
          "expires_by": {
            "type": "integer",
            "minimum": 0.0,
            "format": "uint64",
            "description": "The **absolute** Unix-seconds instant `access_token` stops being honoured.\n\nAbsolute rather than a duration, which is what the field has always carried despite its\nname; the SDK depends on it."
          }
        },
        "type": "object",
        "required": [
          "access_token",
          "refresh_token",
          "token_type",
          "expires_by"
        ],
        "description": "A freshly issued token pair.\n\nThe field names and `expires_by`'s meaning are a live client contract — `capsule-sdk`'s\n`TokenResponseBody` reads exactly these — so they are preserved verbatim from the Salvo\nsurface. `Debug` is hand-written; both tokens are bearer credentials.\n\n`Deserialize` is derived so the suite reads the pair back through the same type the server\nwrote — a test that pulled `access_token` out of a `serde_json::Value` would still pass if\nthe field were renamed on the way out."
      },
      "LoginRequest": {
        "properties": {
          "email": {
            "type": "string",
            "description": "The account's email address."
          },
          "password": {
            "type": "string",
            "description": "The account's password.\n\nVerified by the account directory and never retained, logged, or echoed."
          },
          "cohort_hash": {
            "type": [
              "string",
              "null"
            ],
            "description": "An advisory device-cohort hash grouping one physical device's re-enrollments.\n\nLegibility metadata only: no authorization path reads it, and an unusable value is\ndropped rather than refused — a sign-in must not fail over a field that gates nothing."
          },
          "device_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "The directory device the client claims to be, as a UUID.\n\nClient-asserted and unverified. Dropped, not refused, when it is not a usable UUID, for\nthe same reason as `cohort_hash`."
          }
        },
        "type": "object",
        "required": [
          "email",
          "password"
        ],
        "description": "Credentials, plus the two advisory identifiers a client may volunteer.\n\n`Debug` is hand-written. A derived one would print the password into any log line, panic\nmessage or `tracing` field that formatted the request — which is the single worst thing this\nfile could do, and is one `#[derive(Debug)]` away at all times.\nNo `#[schema(min_length = ...)]` on either credential, deliberately. Kynos 0.1.0 publishes a\nstring constraint into the document but does not enforce it on the request path — an empty\npassword reaches the handler — so declaring one would put a promise in the contract that the\nserver does not keep, which is the exact class of drift this rebuild exists to remove. Length\nis a body-size concern and belongs to a limits middleware; it is recorded as owed rather than\nasserted here."
      },
      "SecondFactorChallenge": {
        "properties": {
          "mfa_token": {
            "type": "string",
            "description": "The token to present alongside the code."
          },
          "expires_by": {
            "type": "integer",
            "minimum": 0.0,
            "format": "uint64",
            "description": "The **absolute** Unix-seconds instant the challenge stops being honoured.\n\nAbsolute rather than a duration, matching `TokenResponse::expires_by`, so a client has\none convention rather than two."
          }
        },
        "type": "object",
        "required": [
          "mfa_token",
          "expires_by"
        ],
        "description": "A half-finished sign-in.\n\n`Debug` is hand-written: the token is a credential, even though it authenticates nothing on\nits own."
      },
      "RevokeChallengeResponse": {
        "properties": {
          "challenge": {
            "type": "string",
            "description": "The single-use token. Burned on the first attempt, successful or not."
          },
          "expires_at": {
            "type": "string",
            "description": "When it stops being redeemable, RFC 3339."
          }
        },
        "type": "object",
        "required": [
          "challenge",
          "expires_at"
        ],
        "description": "The challenge a global sign-out is signed over."
      },
      "RevokeAllRequest": {
        "properties": {
          "challenge": {
            "type": "string",
            "description": "The challenge that was issued."
          },
          "proof": {
            "type": "string",
            "description": "The account identity key's hybrid signature over\n[`revoke_all_signing_bytes`](capsule_core::crypto::revoke::revoke_all_signing_bytes),\ncanonical CBOR, base64."
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "challenge",
          "proof"
        ],
        "description": "A master-key proof over an issued challenge."
      },
      "RevokeAllResponse": {
        "properties": {
          "revoked": {
            "type": "integer",
            "minimum": 0.0,
            "format": "uint64",
            "description": "How many sessions were closed — the caller's own among them.\n\nCounted from the records the store actually removed, never from a separately maintained\nindex. The Salvo implementation read a per-user set that `revoke_session` did not clean\nup, so this number inflated by one for every prior refresh; here the record and\nits listing entry are one fact, so there is nothing left to disagree."
          }
        },
        "type": "object",
        "required": [
          "revoked"
        ],
        "description": "What a global sign-out closed."
      },
      "ReauthenticateRequest": {
        "properties": {
          "password": {
            "type": "string",
            "description": "The account's password."
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "password"
        ],
        "description": "A password, re-presented on a session that already exists."
      },
      "ReauthenticateResponse": {
        "properties": {
          "authenticated_at": {
            "type": "string",
            "description": "The moment the credential was accepted, RFC 3339.\n\nReturned so a client can decide locally whether a gated operation will be admitted,\nrather than discovering it from a `403` in the middle of a ceremony."
          }
        },
        "type": "object",
        "required": [
          "authenticated_at"
        ],
        "description": "When the re-authenticated session's freshness window last opened."
      },
      "PublishDirectoryResponse": {
        "properties": {
          "directory_version": {
            "type": "integer",
            "minimum": 0.0,
            "format": "uint64",
            "description": "The version now stored, which equals the submitted one."
          }
        },
        "type": "object",
        "required": [
          "directory_version"
        ],
        "description": "The accepted version, echoed so a client knows what is now in force."
      },
      "StoreEscrowResponse": {
        "properties": {
          "stored_at": {
            "type": "string",
            "description": "When the server accepted it, RFC 3339.\n\nEchoed so a client can tell whether a cached copy is current — the stale-cache rule,\nwhich exists because a rotation from another device would otherwise manufacture false\nverification failures on this one."
          },
          "replaced": {
            "type": "boolean",
            "description": "Whether this displaced an earlier escrow.\n\nA rotation and a first escrow are different events for a client: one completes account\nsetup, and the other means the previous recovery secret has stopped working."
          }
        },
        "type": "object",
        "required": [
          "stored_at",
          "replaced"
        ],
        "description": "What storing an escrow did."
      },
      "StoreSealedIdentityResponse": {
        "properties": {
          "stored_at": {
            "type": "string",
            "description": "When the server accepted it, RFC 3339."
          },
          "replaced": {
            "type": "boolean",
            "description": "Whether this displaced an earlier sealed identity — a reseal after a master-key\nrotation, rather than the account's first."
          }
        },
        "type": "object",
        "required": [
          "stored_at",
          "replaced"
        ],
        "description": "What storing a sealed identity did."
      },
      "StoreAlbumKeysResponse": {
        "properties": {
          "album_id": {
            "type": "string",
            "description": "The album, echoed."
          },
          "stored_at": {
            "type": "string",
            "description": "When the server accepted it, RFC 3339."
          },
          "replaced": {
            "type": "boolean",
            "description": "Whether this displaced an earlier escrow of this album's keys — the album changed since\n(an epoch was rotated in), rather than this being its first."
          }
        },
        "type": "object",
        "required": [
          "album_id",
          "stored_at",
          "replaced"
        ],
        "description": "What storing an album key escrow did."
      },
      "UpdateProfileRequest": {
        "properties": {
          "display_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The display name to set, clear (`null`), or leave alone (absent)."
          }
        },
        "additionalProperties": false,
        "type": "object",
        "description": "A partial edit of the caller's profile.\n\n`display_name` is a **doubly** optional field on the wire, and the two levels mean different\nthings: an absent key leaves the name alone, and an explicit `null` clears it. That is what\n`#[serde(default)]` over a [`DisplayNameEdit`] buys, and it is the whole reason this body is\nnot `deny_unknown_fields`-plus-a-flat-option: a flat one cannot tell \"I did not mention the\nname\" from \"remove the name\", so every partial update would wipe a field the caller never\nsent."
      },
      "ProfileResponse": {
        "properties": {
          "user_id": {
            "type": "string",
            "description": "The account identifier every manifest and every session names."
          },
          "email": {
            "type": [
              "string",
              "null"
            ],
            "description": "The address this account signs in with, if it has one.\n\nRead-only on this surface. Changing it needs proof that the caller controls the new\naddress, and this server has no way to obtain one; see [`crate::auth::profile`].\n\nAbsent for a federated account whose provider asserted no verified address. A client\nrendering the profile falls back to the display name, and from that to the account id."
          },
          "display_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "The name the account chose to be shown as, if it chose one.\n\nAbsent rather than `null` when unset, so a client's \"has a name\" test is a key test."
          },
          "created_at": {
            "type": "string",
            "description": "When the account was created, RFC 3339."
          }
        },
        "type": "object",
        "required": [
          "user_id",
          "created_at"
        ],
        "description": "An account's profile as it is served.\n\n`Deserialize` is derived so the suite reads it back through the same type the server wrote —\na test pulling `display_name` out of a `serde_json::Value` would still pass if the field were\nrenamed on the way out."
      },
      "ChangePasswordRequest": {
        "properties": {
          "current_password": {
            "type": "string",
            "description": "The password currently in use, which authorizes the change.\n\nVerified through the same directory method a sign-in uses, so a locked account is locked\nhere too."
          },
          "new_password": {
            "type": "string",
            "description": "The password to replace it with."
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "current_password",
          "new_password"
        ],
        "description": "The two passwords a rotation needs.\n\n`Debug` is hand-written for the reason `routes::auth`'s bodies are: a derived one would print\nboth credentials into any log line that formatted the request."
      },
      "EnrollmentResponse": {
        "properties": {
          "provisioning_uri": {
            "type": "string",
            "description": "The `otpauth://` URI an authenticator app scans.\n\nIt carries the shared secret, so it is a credential: served once, over the authenticated\nchannel, and never fetchable again. Losing it before confirming means enrolling again,\nwhich is why a *pending* enrollment is replaceable without ceremony."
          }
        },
        "type": "object",
        "required": [
          "provisioning_uri"
        ],
        "description": "A freshly issued, unconfirmed enrollment."
      },
      "CodeRequest": {
        "properties": {
          "totp_code": {
            "type": "string",
            "description": "The code the authenticator app is showing."
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "totp_code"
        ],
        "description": "A six-digit code, and nothing else."
      },
      "VerifyLoginRequest": {
        "properties": {
          "mfa_token": {
            "type": "string",
            "description": "The challenge issued by `POST /v1/auth/login`."
          },
          "totp_code": {
            "type": "string",
            "description": "The code the authenticator app is showing."
          },
          "cohort_hash": {
            "type": [
              "string",
              "null"
            ],
            "description": "An advisory device-cohort hash grouping one physical device's re-enrollments."
          },
          "device_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "The directory device the client claims to be, as a UUID."
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "mfa_token",
          "totp_code"
        ],
        "description": "Completing a sign-in with a second factor.\n\nIt carries the same two advisory identifiers `LoginRequest` does, because *this* is the\nrequest that opens the session: without them a TOTP sign-in would land in the devices view as\nan unknown, ungrouped device."
      },
      "OidcAuthorizeRequest": {
        "properties": {
          "redirect_uri": {
            "type": "string",
            "description": "Where the provider should send the person back: the client's own callback.\n\nAdmitted if it is the deployment's configured redirect URL exactly, or a loopback IP\nliteral (`http://127.0.0.1:{port}/…`, `http://[::1]:{port}/…`) on any port when the\ndeployment allows loopback redirects — the shape a CLI's or desktop app's listener has\n(RFC 8252 §7.3). Stored with the ceremony and replayed byte for byte to the token endpoint."
          },
          "binding_challenge": {
            "type": "string",
            "description": "The client's binding to this ceremony: the S256 hash — unpadded base64url of the SHA-256,\n43 characters — of a fresh secret of at least 256 bits that the client generates, keeps,\nand presents as `binding_verifier` at the callback.\n\nThe server's own PKCE verifier binds the code to this server; this binds the callback to\nthe client that began the ceremony, so a `state` and `code` carried to another client — a\nlogin-CSRF victim's — are refused there. Anything but 43 base64url characters is a `400`."
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "redirect_uri",
          "binding_challenge"
        ],
        "description": "The `POST /v1/auth/oidc/authorize` body."
      },
      "OidcAuthorizationResponse": {
        "properties": {
          "authorization_url": {
            "type": "string",
            "description": "The provider's authorization endpoint with the whole request in its query: `response_type`,\n`client_id`, `redirect_uri`, `scope`, `state`, `nonce`, `code_challenge`,\n`code_challenge_method`."
          },
          "state": {
            "type": "string",
            "description": "The `state` the provider will echo on the redirect. Present it, with the `code`, to the\ncallback. Good once, and until `expires_by`."
          },
          "expires_by": {
            "type": "integer",
            "minimum": 0.0,
            "format": "uint64",
            "description": "The **absolute** Unix-seconds instant the ceremony stops being redeemable."
          }
        },
        "type": "object",
        "required": [
          "authorization_url",
          "state",
          "expires_by"
        ],
        "description": "A begun ceremony: where to send the person, and the `state` that comes back."
      },
      "OidcCallbackRequest": {
        "properties": {
          "state": {
            "type": "string",
            "description": "The `state` the authorize answered with, as the redirect echoed it."
          },
          "code": {
            "type": "string",
            "description": "The authorization `code` the redirect carried."
          },
          "binding_verifier": {
            "type": "string",
            "description": "The secret whose S256 hash the authorize carried as `binding_challenge`. A callback whose\nsecret does not hash to it is refused as an unknown `state` is, and burns the `state`."
          },
          "cohort_hash": {
            "type": [
              "string",
              "null"
            ],
            "description": "An advisory device-cohort hash. Legibility metadata only; an unusable\nvalue is dropped rather than refused."
          },
          "device_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "The directory device the client claims to be, as a UUID. Dropped, not\nrefused, when it is not a usable UUID."
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "state",
          "code",
          "binding_verifier"
        ],
        "description": "The `POST /v1/auth/oidc/callback` body: what the provider's redirect carried, plus the two\nadvisory identifiers a client may volunteer for the session this request opens.\n\nStrict, like [`OidcAuthorizeRequest`]: a client that forwards the provider's whole redirect\nquery — `error`, `error_description`, `iss` (RFC 9207) — gets a `422` naming the field rather\nthan a callback that quietly ignored what the provider said."
      },
      "OidcDeviceRequest": {
        "properties": {
          "binding_challenge": {
            "type": "string",
            "description": "The client's binding to this ceremony, exactly as on the authorize: the S256 hash —\nunpadded base64url of the SHA-256, 43 characters — of a fresh secret of at least 256 bits\nthe client keeps and presents as `binding_verifier` on every poll. Anything but 43\nbase64url characters is a `400`."
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "binding_challenge"
        ],
        "description": "The `POST /v1/auth/oidc/device` body."
      },
      "OidcDeviceAuthorizationResponse": {
        "properties": {
          "handle": {
            "type": "string",
            "description": "The handle to poll `POST /v1/auth/oidc/device/poll` with. The server's own, never the\nprovider's device code. Good until `expires_by`, and ended by the first terminal answer."
          },
          "user_code": {
            "type": "string",
            "description": "The code the person types at `verification_uri`. Show it exactly."
          },
          "verification_uri": {
            "type": "string",
            "description": "Where the person goes, on any device with a browser, to type `user_code`."
          },
          "verification_uri_complete": {
            "type": [
              "string",
              "null"
            ],
            "description": "The same address with the code already in it, when the provider offers one — what a\nclient renders as a QR code or a link."
          },
          "interval": {
            "type": "integer",
            "minimum": 0.0,
            "format": "uint64",
            "description": "How many seconds to wait before the first poll and between polls. Add five on every\n`error.auth.oidc_device_slow_down` (RFC 8628 §3.5); the server does the same, so the two\nstay in step without the new interval being sent."
          },
          "expires_by": {
            "type": "integer",
            "minimum": 0.0,
            "format": "uint64",
            "description": "The **absolute** Unix-seconds instant the ceremony stops being honoured: the provider's\n`expires_in` or the server's fifteen minutes, whichever is sooner."
          }
        },
        "type": "object",
        "required": [
          "handle",
          "user_code",
          "verification_uri",
          "interval",
          "expires_by"
        ],
        "description": "A begun device authorization: what to show the person, and the handle to poll with."
      },
      "OidcDevicePollRequest": {
        "properties": {
          "handle": {
            "type": "string",
            "description": "The `handle` the begin answered with."
          },
          "binding_verifier": {
            "type": "string",
            "description": "The secret whose S256 hash the begin carried as `binding_challenge`. A poll whose secret\ndoes not hash to it ends the ceremony and is answered as an unknown handle is."
          },
          "cohort_hash": {
            "type": [
              "string",
              "null"
            ],
            "description": "An advisory device-cohort hash. Legibility metadata only."
          },
          "device_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "The directory device the client claims to be, as a UUID."
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "handle",
          "binding_verifier"
        ],
        "description": "The `POST /v1/auth/oidc/device/poll` body: the handle, the client's binding, and the two\nadvisory identifiers a client may volunteer for the session a successful poll opens."
      },
      "EnrollmentCodeResponse": {
        "properties": {
          "code": {
            "type": "string",
            "description": "The full-entropy code the QR payload carries."
          },
          "text_fallback": {
            "type": "string",
            "description": "The shorter transcribable numeric fallback.\n\nDeliberately weaker than the QR payload and safe because it never stands alone:\nredemption is single-use and expires, and channel integrity rests on the safety-code\ncheck rather than on this value."
          },
          "expires_at": {
            "type": "string",
            "description": "When both spellings stop being redeemable, RFC 3339."
          }
        },
        "type": "object",
        "required": [
          "code",
          "text_fallback",
          "expires_at"
        ],
        "description": "A freshly issued enrollment code."
      },
      "RedeemRequest": {
        "properties": {
          "code": {
            "type": "string",
            "description": "Either spelling of the issued code."
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "code"
        ],
        "description": "The code a device presents."
      },
      "ChannelResponse": {
        "properties": {
          "channel_id": {
            "type": "string",
            "description": "The handle both devices relay through. Possession of it *is* the capability."
          },
          "expires_at": {
            "type": "string",
            "description": "When the channel closes on its own, RFC 3339."
          }
        },
        "type": "object",
        "required": [
          "channel_id",
          "expires_at"
        ],
        "description": "The channel a redeemed code opens."
      },
      "RelayRequest": {
        "properties": {
          "direction": {
            "type": "string",
            "description": "Which mailbox to append to: `to_initiator` or `to_enrollee`."
          },
          "payload": {
            "type": "string",
            "description": "The opaque payload. The server never inspects it."
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "direction",
          "payload"
        ],
        "description": "One relayed payload."
      },
      "ProvisionAlbumRequest": {
        "properties": {
          "album_id": {
            "type": "string",
            "description": "The client-derived album id, as a canonical lowercase hyphenated UUID."
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "album_id"
        ],
        "description": "The provisioning request."
      },
      "ProvisionAlbumResponse": {
        "properties": {
          "album_id": {
            "type": "string",
            "description": "The album, echoed."
          },
          "protocol_version": {
            "type": "string",
            "description": "The protocol date the album is pinned to — the server's, fixed at creation."
          },
          "created": {
            "type": "boolean",
            "description": "Whether this call created the album. Advisory; both answers mean the same thing."
          }
        },
        "type": "object",
        "required": [
          "album_id",
          "protocol_version",
          "created"
        ],
        "description": "What provisioning did."
      },
      "UpgradePhaseResponse": {
        "properties": {
          "album_id": {
            "type": "string",
            "description": "The album, echoed."
          },
          "intent_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "The ceremony in flight, or absent when the album is in normal operation.\n\nAbsent also covers *expired*: the deadline passing aborts the upgrade, so there is nothing\nleft to be in."
          },
          "to_protocol_version": {
            "type": [
              "string",
              "null"
            ],
            "description": "The protocol version the fork will be pinned to, when a ceremony is in flight."
          },
          "expires_at": {
            "type": [
              "string",
              "null"
            ],
            "description": "When the window closes, RFC 3339, on the **server's** clock."
          },
          "in_flight": {
            "type": "integer",
            "minimum": 0.0,
            "format": "uint64",
            "description": "How many upload sessions are still in flight against this album.\n\nThe drain signal of versioning.md step 3: the proposer waits for zero. A count rather than\na listing, because the proposer needs to know *whether* to wait and has no business seeing\nother members' upload identifiers to find out."
          }
        },
        "type": "object",
        "required": [
          "album_id",
          "in_flight"
        ],
        "description": "The ceremony this album is in, as a client polls it."
      },
      "RosterRequest": {
        "properties": {
          "roster_cbor": {
            "type": "string",
            "description": "The signed roster, as standard base64 of its canonical CBOR encoding."
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "roster_cbor"
        ],
        "description": "The publish request."
      },
      "RosterResponse": {
        "properties": {
          "album_id": {
            "type": "string",
            "description": "The album, echoed."
          },
          "roster_version": {
            "type": "integer",
            "minimum": 0.0,
            "format": "uint64",
            "description": "The roster version the server holds after this call."
          },
          "amk_epoch": {
            "type": "integer",
            "minimum": 0.0,
            "format": "uint64",
            "description": "The AMK epoch that roster reflects."
          },
          "member_count": {
            "type": "integer",
            "minimum": 0.0,
            "format": "uint64",
            "description": "How many members the held roster names, the owner excluded."
          },
          "replayed": {
            "type": "boolean",
            "description": "Whether this call was a replay of the roster already held. Advisory: both answers mean\n\"the server holds this roster\"."
          }
        },
        "type": "object",
        "required": [
          "album_id",
          "roster_version",
          "amk_epoch",
          "member_count",
          "replayed"
        ],
        "description": "What the server now holds for the album."
      },
      "AssetVerifyRequest": {
        "properties": {
          "asset_id": {
            "type": "string",
            "description": "The asset."
          },
          "blob_hashes": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "description": "Every content address the client would be trusting the server with. The verdict is a\nconjunction over exactly these, so a client asks about what it is about to delete."
          }
        },
        "type": "object",
        "required": [
          "asset_id",
          "blob_hashes"
        ],
        "description": "One asset to verify, with the exact copies the client is relying on."
      },
      "StorageVerifyRequest": {
        "properties": {
          "assets": {
            "items": {
              "$ref": "#/components/schemas/AssetVerifyRequest"
            },
            "type": "array",
            "description": "The assets to verify."
          },
          "deep": {
            "type": "boolean",
            "description": "Also re-read and re-hash the bytes.\n\nAbsent or `false` is the structural check: ask the index and the store whether the bytes\nare there. `true` additionally re-hashes them, which is the only way to catch silent\ncorruption — `stored` is a question about the filesystem, and a corrupt blob is still\nstored.\n\n**Rate-limited per account**, because a deep scan reads and hashes every declared blob\nand an unbounded one is an I/O-amplification attack costing the caller one small JSON\nbody. Past the budget the *structural* verdict still comes back and each blob's `deep`\nreads `rate_limited`: throwing away a good structural answer because the optional half\nwas throttled would make the limiter cost more than it saves."
          },
          "attestation_nonce": {
            "type": [
              "string",
              "null"
            ],
            "description": "Ask for the **signed** verdict, bound to this nonce: 32 bytes the client drew fresh for\nthis request, as 64 lowercase hex characters.\n\nWhen present the response carries `attestation`, the same verdicts signed under the\nserver attestation key with this nonce inside the signature, so the client can keep the\nanswer as evidence and a replayed answer to an earlier request is refused.\n\n**Rate-limited per account from the same budget as `deep`.** Unlike `deep`, a throttled\nsigned request is refused whole with `429`: a client that asked for evidence and silently\ngot an unsigned answer would hold nothing it could later show anyone."
          }
        },
        "type": "object",
        "required": [
          "assets"
        ],
        "description": "The `POST /v1/storage/verify` body."
      },
      "BlobVerdictResponse": {
        "properties": {
          "hash": {
            "type": "string",
            "description": "The address, as the client declared it."
          },
          "role": {
            "type": "string",
            "description": "The role the asset holds it under — `unknown` for a hash the asset does not hold."
          },
          "stored": {
            "type": "boolean",
            "description": "The bytes are present at that address."
          },
          "indexed": {
            "type": "boolean",
            "description": "A live asset of the caller's references the address."
          },
          "retrievable": {
            "type": "boolean",
            "description": "Nothing is withholding it."
          },
          "deep": {
            "type": [
              "string",
              "null"
            ],
            "description": "What a deep scan found: `intact`, `corrupt`, or `rate_limited`.\n\n**Absent when no deep scan ran**, and the absence is load-bearing: it is the difference\nbetween \"we did not look at the bytes\" and \"we looked and they were fine\", and a client\ndeciding whether to release its only copy has to be able to tell those apart."
          }
        },
        "type": "object",
        "required": [
          "hash",
          "role",
          "stored",
          "indexed",
          "retrievable"
        ],
        "description": "One declared blob's verdict."
      },
      "StorageVerdictResponse": {
        "properties": {
          "asset_id": {
            "type": "string",
            "description": "The asset the client asked about."
          },
          "durable": {
            "type": "boolean",
            "description": "Every declared blob is stored ∧ indexed ∧ retrievable. **This is the field that gates a\ndeletion**, so it is false whenever the server cannot say otherwise."
          },
          "blobs": {
            "items": {
              "$ref": "#/components/schemas/BlobVerdictResponse"
            },
            "type": "array",
            "description": "One entry per declared hash, in declaration order and never shortened."
          },
          "checked_at": {
            "type": "string",
            "description": "The server's own clock at verification, RFC 3339. Never the client's."
          }
        },
        "type": "object",
        "required": [
          "asset_id",
          "durable",
          "blobs",
          "checked_at"
        ],
        "description": "One asset's verdict."
      },
      "StorageVerifyResponse": {
        "properties": {
          "verdicts": {
            "items": {
              "$ref": "#/components/schemas/StorageVerdictResponse"
            },
            "type": "array",
            "description": "One verdict per requested asset, in request order."
          },
          "attestation": {
            "type": [
              "string",
              "null"
            ],
            "description": "The signed verdict, present exactly when the request carried `attestation_nonce`: base64\nof the canonical-CBOR `StorageAttestation` (`capsule_core::crypto::storage_attestation`).\n\nThe signed bytes are the evidence; `verdicts` is a reading of the same answer for a client\nthat does not need to keep it. A client verifies the signature under the pinned\nattestation key, checks the nonce is the one it sent and that the verdicts answer the\nassets and hashes it asked about, then keeps the bytes as they arrived."
          }
        },
        "type": "object",
        "required": [
          "verdicts"
        ],
        "description": "The `POST /v1/storage/verify` response."
      },
      "ReannounceRequest": {
        "properties": {
          "manifests": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "description": "Each asset's chain-head provenance record, base64 of the exact bytes the client holds:\nthe same bytes the feed's `manifest_cbor` carries and an upload's `provenance` blob is."
          }
        },
        "type": "object",
        "required": [
          "manifests"
        ],
        "description": "The `POST /v1/sync/reannounce` body."
      },
      "ReannounceOutcome": {
        "type": "string",
        "enum": [
          "restored",
          "already_indexed",
          "missing_blobs",
          "refused"
        ],
        "description": "What re-announcing one manifest did."
      },
      "ReannounceResult": {
        "properties": {
          "asset_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "The asset the manifest names. Absent only when it did not decode far enough to name one."
          },
          "outcome": {
            "$ref": "#/components/schemas/ReannounceOutcome",
            "description": "What happened."
          },
          "sync_seq": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 0.0,
            "format": "uint64",
            "description": "The position a restored row was published at."
          },
          "missing": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "description": "The content addresses the store does not hold, for `missing_blobs`. Empty otherwise."
          },
          "code": {
            "type": [
              "string",
              "null"
            ],
            "description": "The stable `error.sync.reannounce_*` code, for `refused`."
          }
        },
        "type": "object",
        "required": [
          "outcome"
        ],
        "description": "One manifest's answer."
      },
      "ReannounceResponse": {
        "properties": {
          "results": {
            "items": {
              "$ref": "#/components/schemas/ReannounceResult"
            },
            "type": "array",
            "description": "One answer per manifest, in request order and never shortened."
          }
        },
        "type": "object",
        "required": [
          "results"
        ],
        "description": "The `POST /v1/sync/reannounce` response."
      },
      "ProvisionLinkRequest": {
        "properties": {
          "opaque_id": {
            "type": "string",
            "description": "The 128-bit opaque id, 32 lowercase hex characters, from the client's CSPRNG."
          },
          "drop_pubkey": {
            "type": "string",
            "description": "The Drop Key's public half, base64. Opaque here — the server never decapsulates."
          },
          "crypto_suite_id": {
            "type": "integer",
            "maximum": 65535.0,
            "minimum": 0.0,
            "format": "uint16",
            "description": "The suite a drop must be sealed under."
          },
          "expires_at": {
            "type": [
              "string",
              "null"
            ],
            "description": "When the link stops accepting drops, RFC 3339."
          },
          "max_total_bytes": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 0.0,
            "format": "uint64",
            "description": "Cumulative bytes across every drop on this link."
          },
          "max_file_count": {
            "type": [
              "integer",
              "null"
            ],
            "maximum": 4294967295.0,
            "minimum": 0.0,
            "format": "uint32",
            "description": "How many files the link may deposit."
          },
          "max_file_size": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 0.0,
            "format": "uint64",
            "description": "The largest single file."
          },
          "single_use": {
            "type": "boolean",
            "description": "Whether the link dies after its first successful drop."
          },
          "passphrase_verifier": {
            "type": [
              "string",
              "null"
            ],
            "description": "An Argon2id **verifier**, base64, when the link is passphrase-gated.\n\nA verifier and never a passphrase: this is an abuse gate the server checks, which is why\nit is stored here at all — unlike a share link's passphrase, which protects decryption\nand which the server never sees in any form."
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "opaque_id",
          "drop_pubkey",
          "crypto_suite_id"
        ],
        "description": "A link the owner is provisioning."
      },
      "ProvisionLinkResponse": {
        "properties": {
          "opaque_id": {
            "type": "string",
            "description": "The opaque id, echoed."
          }
        },
        "type": "object",
        "required": [
          "opaque_id"
        ],
        "description": "Confirmation that a link is live."
      },
      "ManifestEnvelope": {
        "properties": {
          "crypto_suite_id": {
            "type": "integer",
            "maximum": 65535.0,
            "minimum": 0.0,
            "format": "uint16",
            "description": "The crypto suite the blob was sealed under. Must equal the top-level declaration."
          },
          "protocol_version": {
            "type": "string",
            "description": "The protocol date the manifest was written under (`YYYY-MM-DD`)."
          },
          "album_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "The album the asset belongs to. Must equal the top-level declaration."
          },
          "file_id": {
            "type": "string",
            "description": "The asset this blob belongs to — the same id across the bundle's members."
          },
          "amk_version": {
            "type": "integer",
            "maximum": 4294967295.0,
            "minimum": 0.0,
            "format": "uint32",
            "description": "The album-key epoch the manifest was written under."
          },
          "ciphertext_hash": {
            "type": "string",
            "description": "The ciphertext content hash, lowercase hex. Must equal the top-level `hash`.\n\n**This names the blob this session is uploading, not the manifest's own\n`ciphertext_hash`.** For the original the two coincide; for a metadata or provenance\nsession they do not, and the projection reuses the manifest's field name for a per-blob\ndeclaration. Invisible for a `create`, because the bundle is assembled in a pending row\nnobody can see and no member has to name another. It is not invisible for a `replace`,\nwhich is why [`Self::original_blob_hash`] exists."
          },
          "plaintext_size": {
            "type": "integer",
            "minimum": 0.0,
            "format": "uint64",
            "description": "The plaintext length the manifest commits to."
          },
          "chunk_size": {
            "type": "integer",
            "maximum": 4294967295.0,
            "minimum": 0.0,
            "format": "uint32",
            "description": "The STREAM plaintext chunk size."
          },
          "key_mode": {
            "type": "string",
            "description": "`derived` or `wrapped`."
          },
          "metadata_blob_hash": {
            "type": [
              "string",
              "null"
            ],
            "description": "The content hash of the bundle's metadata blob, when the manifest commits to one."
          },
          "original_blob_hash": {
            "type": [
              "string",
              "null"
            ],
            "description": "The content hash of the bundle's **original** blob, when the manifest commits to one.\n\nThe manifest's own `ciphertext_hash`, under a name that cannot be confused with\n[`Self::ciphertext_hash`]'s per-session meaning. Optional on the wire and **required on a\n`replace`**: a replace re-points roles that already have bytes, so it has to be applied\nas one act, and the only member of the bundle that can carry the whole change is the\nmanifest — which therefore has to be able to name the original it commits to.\n\nA `create` may omit it. Its bundle is assembled incrementally in a row nobody can see,\nso no member needs to name another and requiring it would be a wire change for no gain."
          },
          "derivative_role": {
            "type": [
              "string",
              "null"
            ],
            "description": "The derivative's role — `thumbnail`, `preview`, or `embedding` — copied from its signed\n`DerivativeManifest.role`. **Required on a `derivative` blob and refused on every other**.\n\nThe server cannot read the signed derivative manifest (it is key-free), so the closed\nstill-format check the tier table requires of every receiver runs over this declared\npair instead. A forged pair buys nothing: the client that verifies the signed manifest\nruns the same check over the signed values."
          },
          "derivative_format": {
            "type": [
              "string",
              "null"
            ],
            "description": "The derivative's format — `DerivativeManifest.format`, e.g. `image/jxl`. Required and\nrefused exactly as [`Self::derivative_role`] is, and must equal the blob's declared\n`content_type`. For a `thumbnail` or `preview` an unrecognised value is\n[`GateReject::UnknownDerivativeFormat`]."
          },
          "created_by_user": {
            "type": "string",
            "description": "The account that created the asset."
          },
          "created_by_device": {
            "type": "string",
            "description": "The device that created it, as a UUID — invariant 7's subject."
          },
          "client_version": {
            "type": "string",
            "description": "The client build that wrote the manifest."
          },
          "timestamp": {
            "type": "string",
            "description": "The manifest's self-asserted RFC3339 timestamp — invariants 7 and 8's subject."
          },
          "action": {
            "type": "string",
            "description": "The lifecycle action. `create` or `replace` on this surface — the two that move blob\nbytes — and see [`GateReject::ActionNotAllowed`] for the rest."
          },
          "prior_provenance_hash": {
            "type": [
              "string",
              "null"
            ],
            "description": "The provenance chain position this write continues from."
          },
          "retention_until": {
            "type": [
              "string",
              "null"
            ],
            "description": "The retention floor the manifest carries, when it carries one."
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "crypto_suite_id",
          "protocol_version",
          "file_id",
          "amk_version",
          "ciphertext_hash",
          "plaintext_size",
          "chunk_size",
          "key_mode",
          "created_by_user",
          "created_by_device",
          "client_version",
          "timestamp",
          "action"
        ],
        "description": "The server-visible mirror of the signed manifest's envelope fields, as declared at\n`POST /v1/upload`.\n\nStrict (`deny_unknown_fields`) like the rest of the transport JSON. The Postel asymmetry\nthe design draws — tolerant inside documents that outlive us, strict on the wire we own —\nputs unknown-key tolerance in the *signed CBOR interiors*, never in this JSON projection."
      },
      "AdoptRequest": {
        "properties": {
          "album_id": {
            "type": "string",
            "description": "The album to adopt into."
          },
          "asset_id": {
            "type": "string",
            "description": "The asset the drop becomes."
          },
          "size": {
            "type": "integer",
            "minimum": 0.0,
            "format": "uint64",
            "description": "The blob's declared size — the inbox row's, restated and checked against it."
          },
          "hash": {
            "type": "string",
            "description": "The ciphertext hash, which must name **this drop's** blob."
          },
          "content_type": {
            "type": "string",
            "description": "The declared content type."
          },
          "crypto_suite_id": {
            "type": "integer",
            "maximum": 65535.0,
            "minimum": 0.0,
            "format": "uint16",
            "description": "The crypto suite."
          },
          "protocol_version": {
            "type": "string",
            "description": "The protocol version the manifest is written against."
          },
          "key_mode": {
            "type": "string",
            "description": "How the asset's key is carried. `derived` or `wrapped` (invariant 32)."
          },
          "manifest_envelope": {
            "$ref": "#/components/schemas/ManifestEnvelope",
            "description": "The signed manifest envelope, verbatim."
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "album_id",
          "asset_id",
          "size",
          "hash",
          "content_type",
          "crypto_suite_id",
          "protocol_version",
          "key_mode",
          "manifest_envelope"
        ],
        "description": "The owner's signed `create` over a drop already in their inbox.\n\nThe same shape a `POST /v1/upload` create carries, minus everything about transferring bytes:\nthe blob is already committed, so there is no size to negotiate and no session to open. What\nremains is the manifest, which is the whole point — a drop becomes an asset only when the\n**owner** signs for it."
      },
      "AdoptResponse": {
        "properties": {
          "asset_id": {
            "type": "string",
            "description": "The asset the drop became."
          }
        },
        "type": "object",
        "required": [
          "asset_id"
        ],
        "description": "What adoption produced."
      },
      "WireBlobRole": {
        "type": "string",
        "enum": [
          "original",
          "derivative",
          "metadata",
          "provenance",
          "backup",
          "derivative_manifest"
        ],
        "description": "A blob's role in its asset bundle, as the wire spells it.\n\nA wire type of its own rather than a serde derive on [`BlobRole`]: the state ports'\nrecords deliberately derive no serde traits, so that a record cannot be smuggled through a\nstore built for another. The mapping is one `match` in one direction."
      },
      "CreateUploadRequest": {
        "properties": {
          "size": {
            "type": "integer",
            "minimum": 0.0,
            "format": "uint64",
            "description": "The ciphertext length in bytes. Immutable for the session's life."
          },
          "hash": {
            "type": "string",
            "description": "The ciphertext content hash, lowercase hex; the digest length is the suite's."
          },
          "content_type": {
            "type": "string",
            "description": "The media type, from the closed enum this protocol version fixes."
          },
          "crypto_suite_id": {
            "type": "integer",
            "maximum": 65535.0,
            "minimum": 0.0,
            "format": "uint16",
            "description": "The crypto suite the blob was sealed under."
          },
          "protocol_version": {
            "type": "string",
            "description": "The protocol date (`YYYY-MM-DD`) this session is pinned to."
          },
          "blob_role": {
            "$ref": "#/components/schemas/WireBlobRole",
            "description": "The blob's role in its bundle."
          },
          "manifest_envelope": {
            "$ref": "#/components/schemas/ManifestEnvelope",
            "description": "The unencrypted manifest fields the server validates."
          },
          "album_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "The album the asset is filed into.\n\nOptional on the wire because the contract reserves the shape for owner-scoped kinds and\nfor the album-upgrade ceremony; **required by this server**, which has no way to check\ninvariant 6 without one and refuses rather than skipping it."
          },
          "owner_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "The owner the asset is filed under, when the client wants to say so.\n\nAdvisory, never decisive: the asset is filed under the **album's** owner, which the write\nauthority answers from the album record — the uploader when it is their album, the owner\nwhen the uploader is a writer on its roster. A declared owner that is anyone\nelse, the uploading member included, is refused `error.upload.owner_not_permitted`."
          },
          "intent_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "The album-upgrade intent this write belongs to, when it belongs to one.\n\nCarried onto the session verbatim and read by nobody in this port; the album-upgrade\nceremony gives it meaning."
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "size",
          "hash",
          "content_type",
          "crypto_suite_id",
          "protocol_version",
          "blob_role",
          "manifest_envelope"
        ],
        "description": "The body of `POST /v1/upload`.\n\nStrict (`deny_unknown_fields`): an unknown field is a client bug and is refused rather than\nignored. Plaintext metadata — a filename, a capture date, dimensions — is deliberately\nabsent: it rides the encrypted metadata blob and never the wire request."
      },
      "CreateUploadResponse": {
        "properties": {
          "id": {
            "type": "string",
            "description": "The session's identifier."
          },
          "upload_url": {
            "type": "string",
            "description": "Where to send chunks."
          },
          "suggested_chunk_size": {
            "type": "integer",
            "minimum": 0.0,
            "format": "uint64",
            "description": "A starting chunk size. A suggestion only — the client owns adaptation."
          }
        },
        "type": "object",
        "required": [
          "id",
          "upload_url",
          "suggested_chunk_size"
        ],
        "description": "What a client needs to start sending bytes."
      },
      "OpRequest": {
        "properties": {
          "manifest_envelope": {
            "$ref": "#/components/schemas/ManifestEnvelope",
            "description": "The server-visible projection of the signed manifest's fields, exactly as\n`POST /v1/upload` carries it. Its `album_id` must equal the path segment and its\n`action` must be one this surface accepts."
          },
          "manifest_cbor": {
            "type": "string",
            "description": "The signed manifest itself, base64 of the canonical CBOR.\n\nStored verbatim as the asset's new provenance blob, so the feed serves the exact bytes\nthe client signed for a lifecycle write as it already does for an upload. The\nserver does not parse it: base64 is a transport encoding, and `decode(encode(b)) == b`."
          },
          "metadata_blob": {
            "type": [
              "string",
              "null"
            ],
            "description": "The encrypted metadata blob, base64, present exactly when the action carries one.\n\nIts content hash must equal the manifest's committed `metadata_blob_hash`\n(invariant 25). The server holds no key and never reads it."
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "manifest_envelope",
          "manifest_cbor"
        ],
        "description": "The signed manifest bundle a lifecycle write carries."
      },
      "OpResponse": {
        "properties": {
          "asset_id": {
            "type": "string",
            "description": "The asset the op chained onto."
          },
          "sync_seq": {
            "type": "integer",
            "minimum": 0.0,
            "format": "uint64",
            "description": "The feed position it occupies. On a replay, the position the *first* application took."
          },
          "action": {
            "type": "string",
            "description": "The action that was applied."
          },
          "replayed": {
            "type": "boolean",
            "description": "Whether this response is a replay of an already-applied manifest.\n\nAdvisory, and deliberately not something a correct client needs: the other three fields\nare identical either way, which is what \"byte-identical prior response\" means."
          }
        },
        "type": "object",
        "required": [
          "asset_id",
          "sync_seq",
          "action",
          "replayed"
        ],
        "description": "What a lifecycle write did."
      },
      "IssueShareRequest": {
        "properties": {
          "opaque_id": {
            "type": "string",
            "description": "The 128-bit opaque id, 32 lowercase hex characters, drawn from the client's CSPRNG.\n\nMinted by the client rather than the server because the client is what knows the\nfragment secret the id is paired with; the server checks its shape and stores it."
          },
          "metadata_hash": {
            "type": "string",
            "description": "The metadata blob a viewer starts from. Must appear in `serves`.\n\nThe blob is the issuer's sealed share metadata record (`share-metadata/v1`, built by\n`capsule_core::sharing::publish_share`), opaque to this server."
          },
          "serves": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "description": "Every blob this link may serve, and nothing else.\n\nEnumerated by the issuing client, which is what makes the boundary-crossing strip\nstick: the client points the link at blobs it prepared for export, and the server has no\npath from an opaque id to anything outside this set."
          },
          "wrapped_secret": {
            "type": [
              "string",
              "null"
            ],
            "description": "The passphrase-wrapped scope material, base64, when the link is passphrase-protected.\n\nOpaque to this server. The passphrase never crosses the wire — unwrap is client-side.\nAbsent for a link with no passphrase, whose scope travels inside the sealed metadata blob."
          },
          "expires_at": {
            "type": [
              "string",
              "null"
            ],
            "description": "When the link stops being live, RFC 3339. Absent means no expiry."
          },
          "metadata_blob": {
            "type": [
              "string",
              "null"
            ],
            "description": "The sealed metadata record itself, base64.\n\nIts SHA-256 must equal `metadata_hash`, and it may be at most 8 MiB decoded. The server\nstores it before it records the link, so a viewer's first fetch finds it, and keeps it\nfor as long as the link is live. It counts against the caller's storage quota, and is\nrefused when its new bytes would carry the account to its hard limit. Opaque to this\nserver: it is sealed under material derived from the URL fragment, which never reaches\nit.\n\nOptional so an older client still registers a link; such a link serves its metadata\nonly if the blob is already in the store."
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "opaque_id",
          "metadata_hash",
          "serves"
        ],
        "description": "A link the owner's client has issued."
      },
      "IssueShareResponse": {
        "properties": {
          "opaque_id": {
            "type": "string",
            "description": "The opaque id, echoed."
          }
        },
        "type": "object",
        "required": [
          "opaque_id"
        ],
        "description": "Confirmation that a link is now servable."
      },
      "WireScope": {
        "type": "string",
        "enum": [
          "read",
          "read-derivative-only"
        ],
        "description": "What a capability permits, on the wire.\n\nA mirror of [`Scope`] rather than the type itself, for the reason\n[`WireBlobRole`](crate::routes::upload::WireBlobRole) is one: the domain enum is not a schema\ntype, and the wire spelling is a contract that should not move when an internal name does."
      },
      "MintCapabilityRequest": {
        "properties": {
          "peer": {
            "type": "string",
            "description": "The peer server the grant is for, as its own `server-info` names it (`other.tld`)."
          },
          "member": {
            "type": "string",
            "description": "The roster member whose access the grant carries, as the owner listed them."
          },
          "scope": {
            "$ref": "#/components/schemas/WireScope",
            "description": "What the grant permits."
          },
          "ttl_seconds": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 0.0,
            "format": "uint64",
            "description": "How long **one token** should live, in seconds. Clamped to the 24-hour ceiling; absent is\nsix hours."
          },
          "renewable_until": {
            "type": [
              "string",
              "null"
            ],
            "description": "The absolute deadline the whole grant dies at, RFC 3339 — and the only thing that makes\nit **renewable**.\n\nAbsent, the default, is a grant that cannot be refreshed at all: it lives exactly\n`ttl_seconds` and then the owner mints again if they still mean to share. Present, it\nmust be in the future and at most ninety days out."
          }
        },
        "type": "object",
        "required": [
          "peer",
          "member",
          "scope"
        ],
        "description": "The mint request."
      },
      "MintedCapabilityResponse": {
        "properties": {
          "token": {
            "type": "string",
            "description": "The signed capability, to be carried as `Authorization: Bearer`."
          },
          "jti": {
            "type": "string",
            "description": "Its identifier, and the key it is revoked by."
          },
          "album_id": {
            "type": "string",
            "description": "The album it scopes to."
          },
          "peer": {
            "type": "string",
            "description": "The peer it was minted for."
          },
          "member": {
            "type": "string",
            "description": "The roster member whose access it carries."
          },
          "scope": {
            "$ref": "#/components/schemas/WireScope",
            "description": "What it permits."
          },
          "issued_at": {
            "type": "string",
            "description": "When it was minted, RFC 3339."
          },
          "expires_at": {
            "type": "string",
            "description": "When **this token** stops being honoured, RFC 3339."
          },
          "not_after": {
            "type": "string",
            "description": "When the **whole grant** dies, RFC 3339. Equal to `expires_at` when it is not renewable."
          },
          "renewable": {
            "type": "boolean",
            "description": "Whether a refresh may issue a successor from this grant.\n\nStated plainly rather than left to be inferred from the two timestamps above: how long\nan owner is sharing for is the decision this response reports back to them."
          },
          "min_protocol_version": {
            "type": "string",
            "description": "The album's pinned protocol date, which the peer must speak to pull."
          }
        },
        "type": "object",
        "required": [
          "token",
          "jti",
          "album_id",
          "peer",
          "member",
          "scope",
          "issued_at",
          "expires_at",
          "not_after",
          "renewable",
          "min_protocol_version"
        ],
        "description": "A freshly minted capability.\n\nThe token is returned **once**. Nothing on this server can produce it again — a stored grant\nre-signs byte-for-byte, but only the refresh operation does that, and only for its holder."
      },
      "RefreshedCapabilityResponse": {
        "properties": {
          "token": {
            "type": "string",
            "description": "The successor token."
          },
          "jti": {
            "type": "string",
            "description": "Its identifier."
          },
          "expires_at": {
            "type": "string",
            "description": "When this token stops being honoured, RFC 3339."
          },
          "not_after": {
            "type": "string",
            "description": "When the whole grant dies, RFC 3339 — unchanged by this or any refresh."
          },
          "replayed": {
            "type": "boolean",
            "description": "Whether this call issued the successor, or answered one an earlier call already issued.\n\nAdvisory. A peer never branches on it: both answers mean \"here is the token to keep\npulling with\"."
          }
        },
        "type": "object",
        "required": [
          "token",
          "jti",
          "expires_at",
          "not_after",
          "replayed"
        ],
        "description": "A refreshed capability."
      },
      "FederatedReportRequest": {
        "properties": {
          "reporting_server": {
            "type": "string",
            "description": "The peer filing the report, as its own `server-info` names it."
          },
          "recipient_server": {
            "type": "string",
            "description": "The server the report is addressed to — this one, as its own `server-info` names it."
          },
          "nonce": {
            "type": "string",
            "description": "A value the peer never signs twice: 16 to 64 bytes, a UUID being the obvious choice."
          },
          "reported_user": {
            "type": "string",
            "description": "The account on this server the report is about."
          },
          "asset_hash": {
            "type": "string",
            "description": "The content address of the asset complained about."
          },
          "album_id": {
            "type": "string",
            "description": "The album it was pulled from."
          },
          "reason": {
            "type": [
              "string",
              "null"
            ],
            "description": "A short reason, where the peer gives one."
          },
          "reported_at": {
            "type": "string",
            "description": "When the peer signed the report, RFC 3339. Refused when more than five minutes from this\nserver's clock either way."
          },
          "signature": {
            "type": "string",
            "description": "The peer's Ed25519 signature over the canonical CBOR of the fields above, base64."
          }
        },
        "type": "object",
        "required": [
          "reporting_server",
          "recipient_server",
          "nonce",
          "reported_user",
          "asset_hash",
          "album_id",
          "reported_at",
          "signature"
        ],
        "description": "A moderation report one peer server files against an account on this one.\n\nEvery field except `signature` is covered by the signature, in canonical CBOR — see\n[`ReportClaim`]."
      },
      "FederatedReportResponse": {
        "properties": {
          "report_id": {
            "type": "string",
            "description": "This server's identifier for the report."
          },
          "received_at": {
            "type": "string",
            "description": "When this server accepted it, RFC 3339."
          }
        },
        "type": "object",
        "required": [
          "report_id",
          "received_at"
        ],
        "description": "An accepted report.\n\nThe identifier is this server's, so an operator and the reporting peer can talk about one\nreport. Nothing about the reported account is echoed — accepting a report says nothing about\nwhether it is true, and a body that reported on the account's standing would say it does."
      },
      "PullHintRequest": {
        "properties": {
          "home_server": {
            "type": "string",
            "description": "The album's home server, which sends and signs the hint, as its own `server-info` names\nit."
          },
          "recipient_server": {
            "type": "string",
            "description": "The server the hint is addressed to — this one, as its own `server-info` names it."
          },
          "nonce": {
            "type": "string",
            "description": "A value the peer never signs twice: 16 to 64 bytes, a UUID being the obvious choice."
          },
          "album_id": {
            "type": "string",
            "description": "The album that has news, as its home server names it."
          },
          "sent_at": {
            "type": "string",
            "description": "When the peer signed the hint, RFC 3339. Refused when more than five minutes from this\nserver's clock either way."
          },
          "signature": {
            "type": "string",
            "description": "The peer's Ed25519 signature over the canonical CBOR of the fields above and the\n`context` `capsule-federation-hint-v1`, base64."
          }
        },
        "type": "object",
        "required": [
          "home_server",
          "recipient_server",
          "nonce",
          "album_id",
          "sent_at",
          "signature"
        ],
        "description": "An advisory hint from an album's home server: \"album A has news\".\n\nEvery field except `signature` is covered by the signature, in canonical CBOR with a fixed\n`context` — see [`HintClaim`]."
      },
      "PullHintResponse": {
        "properties": {
          "received_at": {
            "type": "string",
            "description": "When this server accepted the hint, RFC 3339."
          }
        },
        "type": "object",
        "required": [
          "received_at"
        ],
        "description": "An accepted hint.\n\nSays when it was received and nothing else: in particular not whether this server pulls the\nalbum, which a hint must never be a way to learn."
      },
      "SubscribeRequest": {
        "properties": {
          "issuer": {
            "type": "string",
            "description": "The album's home server, which minted the capability, as its own `server-info` names\nitself (`home.tld`)."
          },
          "token": {
            "type": "string",
            "description": "The capability, exactly as the invite carried it."
          }
        },
        "type": "object",
        "required": [
          "issuer",
          "token"
        ],
        "description": "The subscription request: the capability a member's client received in a share invite."
      },
      "SubscriptionView": {
        "properties": {
          "peer": {
            "type": "string",
            "description": "The album's home server, which every pull fetches from."
          },
          "album_id": {
            "type": "string",
            "description": "The album, as its home server names it."
          },
          "scope": {
            "$ref": "#/components/schemas/WireScope",
            "description": "What the capability permits."
          },
          "jti": {
            "type": "string",
            "description": "The capability's `jti`."
          },
          "issued_at": {
            "type": "string",
            "description": "When the capability was issued, RFC 3339."
          },
          "expires_at": {
            "type": "string",
            "description": "When the capability stops being honoured, RFC 3339."
          },
          "subscribed_at": {
            "type": "string",
            "description": "When this subscription was first recorded, RFC 3339."
          },
          "live": {
            "type": "boolean",
            "description": "Whether the capability is still honoured, so the album is still being pulled.\n\n`false` means the capability lapsed before anything renewed it; posting a fresh invite\nrevives the subscription."
          }
        },
        "type": "object",
        "required": [
          "peer",
          "album_id",
          "scope",
          "jti",
          "issued_at",
          "expires_at",
          "subscribed_at",
          "live"
        ],
        "description": "One subscription, as its subscriber sees it. Never the token."
      },
      "SubscriptionsResponse": {
        "properties": {
          "subscriptions": {
            "items": {
              "$ref": "#/components/schemas/SubscriptionView"
            },
            "type": "array",
            "description": "Every subscription, live or lapsed, ordered by peer and then album."
          }
        },
        "type": "object",
        "required": [
          "subscriptions"
        ],
        "description": "The caller's subscriptions."
      },
      "PulledAssetView": {
        "properties": {
          "asset_id": {
            "type": "string",
            "description": "The asset, as its home server names it."
          },
          "head": {
            "type": "string",
            "description": "Its chain head: the hash of its latest accepted provenance record, lowercase hex."
          },
          "timestamp": {
            "type": "string",
            "description": "When the head record says it was written, RFC 3339. Self-asserted by its author."
          },
          "author": {
            "type": "string",
            "description": "The account that wrote the head record, on the album's home server."
          },
          "size": {
            "type": "integer",
            "minimum": 0.0,
            "format": "uint64",
            "description": "The asset's plaintext size in bytes."
          }
        },
        "type": "object",
        "required": [
          "asset_id",
          "head",
          "timestamp",
          "author",
          "size"
        ],
        "description": "One asset of a pulled album: its breadcrumb, built from the latest entry this server's pull\naccepted for it."
      },
      "PulledAssetsResponse": {
        "properties": {
          "peer": {
            "type": "string",
            "description": "The album's home server."
          },
          "album_id": {
            "type": "string",
            "description": "The album, as its home server names it."
          },
          "assets": {
            "items": {
              "$ref": "#/components/schemas/PulledAssetView"
            },
            "type": "array",
            "description": "The album's live assets after `after`, by asset id in byte order. Deleted and purged\nassets are not listed."
          },
          "next_after": {
            "type": [
              "string",
              "null"
            ],
            "description": "The `after` that asks for the next page; absent once a page came back short, so the\nalbum has been listed to its end."
          }
        },
        "type": "object",
        "required": [
          "peer",
          "album_id",
          "assets"
        ],
        "description": "A page of the assets this server pulled for one of the caller's subscriptions."
      },
      "SessionView": {
        "properties": {
          "session_id": {
            "type": "string",
            "description": "The session's identifier — what a revoke names."
          },
          "created_at": {
            "type": "string",
            "description": "When this session *record* was minted, RFC 3339.\n\nA refresh rotates the session, so after one this is the rotation time and not the\nsign-in. `authenticated_at` is the field that answers \"when did you last sign in\"."
          },
          "authenticated_at": {
            "type": "string",
            "description": "When the user last proved a credential on this session's lineage, RFC 3339.\n\nCarried forward across refreshes, so it is the one timestamp here that means what a\nuser reading a devices list expects \"signed in\" to mean. It is also what the\ncross-device add's freshness gate reads, so a client can show why an add is\nabout to ask for a password again."
          },
          "last_active_at": {
            "type": "string",
            "description": "When it was last seen, RFC 3339.\n\nMoved forward by any authenticated request on the session, so it is current to within\nthe touch interval."
          },
          "user_agent": {
            "type": [
              "string",
              "null"
            ],
            "description": "The `User-Agent` the opening ceremony carried, if any."
          },
          "ip_address": {
            "type": [
              "string",
              "null"
            ],
            "description": "The address the opening ceremony came from, if any."
          },
          "cohort_hash": {
            "type": [
              "string",
              "null"
            ],
            "description": "The advisory cohort this session asserted, if any. Grouping only."
          },
          "device_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "The directory device the client claimed to be, if any.\n\nA different identifier space from `cohort_hash`: this names one directory device, the\ncohort groups re-enrollments of one physical device. Both are client-asserted; neither\ngates anything."
          },
          "current": {
            "type": "boolean",
            "description": "Whether this is the session making the request.\n\nSo a client can label \"this device\" without comparing tokens it should not be handling,\nand so revoking the current session is a deliberate act rather than an accident."
          }
        },
        "type": "object",
        "required": [
          "session_id",
          "created_at",
          "authenticated_at",
          "last_active_at",
          "current"
        ],
        "description": "One live session."
      },
      "CohortView": {
        "properties": {
          "cohort_hash": {
            "type": "string",
            "description": "The advisory hash."
          },
          "first_seen": {
            "type": "string",
            "description": "The first time this account was seen under it, RFC 3339.\n\nWhat lets a client say *\"a device you've used before\"* about a session whose own\n`device_id` is new — which is the entire reason the map is durable."
          },
          "last_seen": {
            "type": "string",
            "description": "The most recent time, RFC 3339."
          }
        },
        "type": "object",
        "required": [
          "cohort_hash",
          "first_seen",
          "last_seen"
        ],
        "description": "One cohort this account has been seen under."
      },
      "DevicesResponse": {
        "properties": {
          "sessions": {
            "items": {
              "$ref": "#/components/schemas/SessionView"
            },
            "type": "array",
            "description": "Every live session, oldest first."
          },
          "cohorts": {
            "items": {
              "$ref": "#/components/schemas/CohortView"
            },
            "type": "array",
            "description": "Every cohort this account has ever been seen under, oldest first sighting first.\n\nServed **beside** the sessions rather than folded into them, because a cohort outlives\nthe sessions that carried it: a reinstall's new session groups with a cohort whose other\nsessions expired months ago, and a client that only had per-session cohorts could not\nsay \"you have used this device before\"."
          }
        },
        "type": "object",
        "required": [
          "sessions",
          "cohorts"
        ],
        "description": "The session ledger."
      },
      "DrainResponse": {
        "properties": {
          "payloads": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "description": "The payloads in arrival order, removed by this call. Possibly empty."
          }
        },
        "type": "object",
        "required": [
          "payloads"
        ],
        "description": "Everything pending in one mailbox."
      },
      "QuotaResponse": {
        "properties": {
          "used": {
            "type": "integer",
            "minimum": 0.0,
            "format": "uint64",
            "description": "Bytes charged to the caller."
          },
          "soft_limit": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 0.0,
            "format": "uint64",
            "description": "Where the warning starts, or absent on an unlimited deployment."
          },
          "hard_limit": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 0.0,
            "format": "uint64",
            "description": "Where uploads stop, or absent on an unlimited deployment."
          },
          "state": {
            "type": "string",
            "description": "The classified state: `ok`, `soft_warning`, `hard_exceeded`, `grace_expired`,\n`suspended`."
          }
        },
        "type": "object",
        "required": [
          "used",
          "state"
        ],
        "description": "A user's quota snapshot."
      },
      "ModerationEventResponse": {
        "properties": {
          "action": {
            "type": "string",
            "description": "What was done: `suspended`, `reinstated`, `taken_down`, `legal_hold`, `hold_lifted`."
          },
          "asset_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "The asset, when the action was about one rather than about the account."
          },
          "at": {
            "type": "string",
            "description": "When it happened, RFC 3339."
          },
          "reason": {
            "type": [
              "string",
              "null"
            ],
            "description": "Why, where policy permits.\n\nAbsent is a real answer — a legal hold may come with an obligation not to disclose it —\nand reads as \"we are not able to say\", which is honest where a fabricated reason would\nnot be."
          }
        },
        "type": "object",
        "required": [
          "action",
          "at"
        ],
        "description": "One thing that was done to the account."
      },
      "ModerationRecordResponse": {
        "properties": {
          "standing": {
            "type": "string",
            "description": "`active` or `suspended`."
          },
          "suspended_since": {
            "type": [
              "string",
              "null"
            ],
            "description": "When a suspension began, RFC 3339. Absent while the account is active."
          },
          "events": {
            "items": {
              "$ref": "#/components/schemas/ModerationEventResponse"
            },
            "type": "array",
            "description": "Everything done to this account, oldest first.\n\nA reinstatement does not erase the suspension it lifted: the record is what a user reads\nto understand their own account, and one that deleted its own history would leave them\nunable to see that anything ever happened."
          }
        },
        "type": "object",
        "required": [
          "standing",
          "events"
        ],
        "description": "The caller's moderation record."
      },
      "SessionSummary": {
        "properties": {
          "id": {
            "type": "string",
            "description": "The session id, which is what `PATCH /v1/upload/{id}` resumes against."
          },
          "asset_id": {
            "type": "string",
            "description": "The asset the bundle belongs to, so a client can group a bundle's sessions."
          },
          "album_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "The album it is filed into, when it named one."
          },
          "blob_role": {
            "type": "string",
            "description": "This blob's role in its bundle: `original`, `derivative`, `metadata`, `provenance` or\n`backup`."
          },
          "status": {
            "type": "string",
            "description": "Where the session is in its state machine."
          },
          "received_bytes": {
            "type": "integer",
            "minimum": 0.0,
            "format": "uint64",
            "description": "The committed prefix — where a client sending in order resumes. One that sends out of\norder reads the full committed set from `HEAD`'s `X-Capsule-Committed`."
          },
          "total_size": {
            "type": "integer",
            "minimum": 0.0,
            "format": "uint64",
            "description": "The declared total."
          },
          "created_at": {
            "type": "string",
            "description": "When the session was created, RFC 3339."
          },
          "last_progress_at": {
            "type": "string",
            "description": "When the last chunk was accepted, RFC 3339, or the creation time if none.\n\nWhat the survival floor is measured from, so a client can tell which of its stalled\nsessions is closest to being evicted."
          },
          "error_code": {
            "type": [
              "string",
              "null"
            ],
            "description": "For a `failed_processing` session, the `error.*` code finalization failed with — the\nsame code `HEAD` carries in `X-Capsule-Upload-Error`. Absent for every other state."
          }
        },
        "type": "object",
        "required": [
          "id",
          "asset_id",
          "blob_role",
          "status",
          "received_bytes",
          "total_size",
          "created_at",
          "last_progress_at"
        ],
        "description": "One in-flight upload, as the resumption listing serves it.\n\nDeliberately not the whole [`UploadSessionRecord`]. The manifest envelope, the expected hash\nand the crypto pin are finalization's inputs and are already the client's own — echoing them\nto every listing would put a signed document in a response nobody reads it from."
      },
      "SessionsResponse": {
        "properties": {
          "sessions": {
            "items": {
              "$ref": "#/components/schemas/SessionSummary"
            },
            "type": "array",
            "description": "Every session the caller can resume, oldest first, ties broken by upload id."
          }
        },
        "type": "object",
        "required": [
          "sessions"
        ],
        "description": "The listing."
      },
      "WireChangeKind": {
        "type": "string",
        "enum": [
          "created",
          "updated",
          "deleted"
        ],
        "description": "What an entry is, relative to the client that asked for it."
      },
      "SyncBlobRef": {
        "properties": {
          "role": {
            "$ref": "#/components/schemas/WireBlobRole",
            "description": "The blob's role in the bundle."
          },
          "hash": {
            "type": "string",
            "description": "Its ciphertext content address, lowercase hex."
          },
          "size": {
            "type": "integer",
            "minimum": 0.0,
            "format": "uint64",
            "description": "Its size in bytes, so a client can budget a fetch before issuing one."
          }
        },
        "type": "object",
        "required": [
          "role",
          "hash",
          "size"
        ],
        "description": "One blob an asset holds."
      },
      "SyncEntry": {
        "properties": {
          "asset_id": {
            "type": "string",
            "description": "The asset that changed."
          },
          "album_id": {
            "type": "string",
            "description": "The album it belongs to. The client keeps its anti-rewind high-water mark per album."
          },
          "protocol_version": {
            "type": "string",
            "description": "The album's pinned protocol date. A client refuses an entry above its own maximum\nrather than applying it partially."
          },
          "sync_seq": {
            "type": "integer",
            "minimum": 0.0,
            "format": "uint64",
            "description": "The entry's position. Strictly increasing within a page, and therefore within any album\nthe page touches."
          },
          "change": {
            "$ref": "#/components/schemas/WireChangeKind",
            "description": "What this is to the client that asked."
          },
          "manifest_cbor": {
            "type": [
              "string",
              "null"
            ],
            "description": "The signed manifest, base64 of the provenance blob's exact bytes.\n\nOn a tombstone, the signed `delete` record, whose `retention_until` is the asset's\nretention window; absent once a purge has dropped it. Absent too — with a loud\nserver-side log — when the index names a provenance blob the store cannot produce."
          },
          "metadata_blob": {
            "type": [
              "string",
              "null"
            ],
            "description": "The encrypted metadata blob's content address.\n\nOn a tombstone in the owner's own feed, the asset's live metadata blob, which a restore\nneeds; absent once a purge has dropped it. Absent on a tombstone in any album page, an\naccount's or a peer's."
          },
          "blobs": {
            "items": {
              "$ref": "#/components/schemas/SyncBlobRef"
            },
            "type": "array",
            "description": "The asset's original and derivative blobs.\n\nOn a tombstone in the owner's own feed, only its original, which a restore needs; empty\nonce a purge has dropped it. Empty on a tombstone in any album page."
          },
          "derivative_manifests": {
            "items": {
              "type": "string"
            },
            "type": "array",
            "description": "The asset's signed derivative manifests, each base64 of its `derivative_manifest`\nblob's exact bytes, in address order (#556).\n\nWhat a receiver opens a thumbnail or preview with: the manifest names the derivative's\n`ciphertext_hash`, `nonce_prefix` and AMK epoch, and the blob list carries none of\nthem. Served verbatim for the reason [`Self::manifest_cbor`] is. Empty on a\ntombstone; a manifest the store cannot produce is left out with a loud server-side log."
          },
          "original_held": {
            "type": "boolean",
            "description": "Whether the original has landed. `false` is the derived `awaiting-original` state.\n\nOn a tombstone in the owner's own feed, whether the original a restore needs is held;\n`false` once a purge has dropped it. Always `false` on a tombstone in any album page."
          },
          "purged": {
            "type": "boolean",
            "description": "Whether the asset has been purged: its retention window closed and the server dropped\nits references, so no `trash-restore` can bring it back (#885).\n\nOnly ever `true` on a tombstone. This, not an absent `manifest_cbor`, is a client's\nevidence of a purge: the manifest is also absent when the store cannot produce it. A\nserver that predates the field sends no key, which reads as `false`."
          },
          "changed_at": {
            "type": "string",
            "description": "When the change happened, RFC 3339."
          }
        },
        "type": "object",
        "required": [
          "asset_id",
          "album_id",
          "protocol_version",
          "sync_seq",
          "change",
          "blobs",
          "original_held",
          "changed_at"
        ],
        "description": "One change in a library."
      },
      "SyncPageResponse": {
        "properties": {
          "entries": {
            "items": {
              "$ref": "#/components/schemas/SyncEntry"
            },
            "type": "array",
            "description": "The changes, in `sync_seq` order."
          },
          "next_cursor": {
            "type": "string",
            "description": "The cursor that resumes after the last entry.\n\nAlways present, including on an empty page, where it re-mints the position the client\narrived with. A client therefore never has to decide whether to keep its old cursor."
          },
          "has_more": {
            "type": "boolean",
            "description": "Whether the server holds changes beyond this page.\n\nAnswered from the owner's high-water mark rather than by fetching one more entry, so a\ncaught-up client is told so without paying for a page it will not receive."
          }
        },
        "type": "object",
        "required": [
          "entries",
          "next_cursor",
          "has_more"
        ],
        "description": "A page of the feed."
      },
      "AssetReceipt": {
        "properties": {
          "receipt_seq": {
            "type": "integer",
            "minimum": 0.0,
            "format": "uint64",
            "description": "Strictly monotonic per server. The chain position this receipt cannot be moved from."
          },
          "server_id": {
            "type": "string",
            "description": "This server's canonical origin — what binds the receipt to one server."
          },
          "server_key_id": {
            "type": "string",
            "description": "The attestation key fingerprint that signed, hex. Survives rotation, which is why the\nkey is named rather than assumed."
          },
          "prior_receipt_hash": {
            "type": [
              "string",
              "null"
            ],
            "description": "SHA-256 of the previous receipt in the server's log, hex. Absent for the first receipt\nthis server ever issued."
          },
          "upload_id": {
            "type": "string",
            "description": "The upload session that produced custody."
          },
          "blob_role": {
            "type": "string",
            "description": "`original`, `derivative`, `metadata` or `provenance`."
          },
          "ciphertext_hash": {
            "type": "string",
            "description": "The server-recomputed ciphertext content address, hex."
          },
          "size": {
            "type": "integer",
            "minimum": 0.0,
            "format": "uint64",
            "description": "Ciphertext size in bytes."
          },
          "envelope_hash": {
            "type": [
              "string",
              "null"
            ],
            "description": "SHA-256 of the asset's signed manifest, hex — present on the `provenance` receipt and\nabsent on every other, because the manifest commits to the rest."
          },
          "received_at": {
            "type": "string",
            "description": "The server's trusted clock at the finalization commit, RFC 3339."
          },
          "receipt_cbor": {
            "type": "string",
            "description": "The full signed receipt as canonical CBOR, base64.\n\n**This is the receipt.** Verify the hybrid signature over these bytes under the key\n`server_key_id` names, from `/.well-known/capsule/attestation-keys`; everything above is\na reading of them."
          }
        },
        "type": "object",
        "required": [
          "receipt_seq",
          "server_id",
          "server_key_id",
          "upload_id",
          "blob_role",
          "ciphertext_hash",
          "size",
          "received_at",
          "receipt_cbor"
        ],
        "description": "One custody receipt, decoded, beside the bytes that were signed."
      },
      "AssetReceiptsResponse": {
        "properties": {
          "asset_id": {
            "type": "string",
            "description": "The asset the chain belongs to, echoed so a client batching requests can tell the\nanswers apart."
          },
          "receipts": {
            "items": {
              "$ref": "#/components/schemas/AssetReceipt"
            },
            "type": "array",
            "description": "Every receipt covering the asset, in `receipt_seq` order."
          }
        },
        "type": "object",
        "required": [
          "asset_id",
          "receipts"
        ],
        "description": "The chain."
      },
      "InboxEntryResponse": {
        "properties": {
          "drop_id": {
            "type": "string",
            "description": "The drop's identifier, which adoption and discard name."
          },
          "opaque_id": {
            "type": "string",
            "description": "The link it arrived through."
          },
          "ciphertext_hash": {
            "type": "string",
            "description": "The ciphertext's content address."
          },
          "size": {
            "type": "integer",
            "minimum": 0.0,
            "format": "uint64",
            "description": "How many bytes."
          },
          "content_type": {
            "type": "string",
            "description": "The guest's declared content type."
          },
          "kem_ct": {
            "type": "string",
            "description": "`K` encapsulated to the link's Drop Key, base64. The owner decapsulates."
          },
          "suggested_filename": {
            "type": [
              "string",
              "null"
            ],
            "description": "Guest-supplied and **unverified**.\n\nA guest chose this text. A client rendering it treats it as untrusted input — it is the\none field on this surface an anonymous party authored."
          },
          "received_at": {
            "type": "string",
            "description": "When it landed, RFC 3339."
          },
          "adopting": {
            "type": "boolean",
            "description": "Whether an adoption currently holds this row.\n\nSurfaced rather than hidden: a crash between claim and settle leaves a row here, and an\nowner who cannot see it cannot act on it."
          }
        },
        "type": "object",
        "required": [
          "drop_id",
          "opaque_id",
          "ciphertext_hash",
          "size",
          "content_type",
          "kem_ct",
          "received_at",
          "adopting"
        ],
        "description": "One drop waiting for the owner."
      },
      "InboxResponse": {
        "properties": {
          "drops": {
            "items": {
              "$ref": "#/components/schemas/InboxEntryResponse"
            },
            "type": "array",
            "description": "Everything waiting, oldest first."
          }
        },
        "type": "object",
        "required": [
          "drops"
        ],
        "description": "The owner's pending drops."
      },
      "EscrowedAlbumKeys": {
        "properties": {
          "album_id": {
            "type": "string",
            "description": "The album the keys are of."
          },
          "blob": {
            "type": "string",
            "description": "The sealed keys, standard base64 — exactly the bytes the client stored."
          },
          "stored_at": {
            "type": "string",
            "description": "When the server accepted them, RFC 3339."
          }
        },
        "type": "object",
        "required": [
          "album_id",
          "blob",
          "stored_at"
        ],
        "description": "One album key escrow, as the listing carries it."
      },
      "AlbumKeysListing": {
        "properties": {
          "albums": {
            "items": {
              "$ref": "#/components/schemas/EscrowedAlbumKeys"
            },
            "type": "array",
            "description": "One entry per escrowed album, in album id order. Empty when none is held: an account\nwith no albums is a state, not a missing resource."
          }
        },
        "type": "object",
        "required": [
          "albums"
        ],
        "description": "Every album key escrow the caller holds."
      },
      "ActivityEventView": {
        "properties": {
          "event_id": {
            "type": "string",
            "description": "The server's id for the event."
          },
          "kind": {
            "type": "string",
            "description": "What happened, e.g. `sign_in.password` or `session.revoked`.\n\nThe set is closed per server version and grows additively: a client renders a kind it\ndoes not know as a generic entry with its time, and never refuses the listing for one."
          },
          "at": {
            "type": "string",
            "description": "When it was recorded, RFC 3339."
          },
          "request_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "The `X-Request-Id` of the request that caused it — the string an operator finds the\nrequest's log lines by."
          },
          "session_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "The session that acted, when one did. Absent for a sign-in and for a revoke-all."
          },
          "subject": {
            "type": [
              "string",
              "null"
            ],
            "description": "What the event is about: a session, a share link, a drop link or a peer server, by its id."
          }
        },
        "type": "object",
        "required": [
          "event_id",
          "kind",
          "at"
        ],
        "description": "One event in the caller's activity log."
      },
      "ActivityResponse": {
        "properties": {
          "events": {
            "items": {
              "$ref": "#/components/schemas/ActivityEventView"
            },
            "type": "array",
            "description": "The newest events inside the retention window (90 days), newest first."
          }
        },
        "type": "object",
        "required": [
          "events"
        ],
        "description": "The caller's activity log."
      },
      "VersionResponse": {
        "properties": {
          "name": {
            "type": "string",
            "description": "The server package name."
          },
          "version": {
            "type": "string",
            "description": "The server package version."
          }
        },
        "type": "object",
        "required": [
          "name",
          "version"
        ],
        "description": "Identifies the running server.\n\nDeliberately incurious: a name and a version, no build host, no commit, no uptime, no\nfeature list. This endpoint is unauthenticated, so everything it returns is public, and a\nkey-free server has no reason to hand an anonymous caller a fingerprint of its deployment.\nExact client build identification runs the other way — clients tell the server\nwhat they are, not the reverse."
      },
      "PublishedKeyResponse": {
        "properties": {
          "key_id": {
            "type": "string",
            "description": "The fingerprint a receipt's `server_key_id` selects on, lowercase hex."
          },
          "public": {
            "type": "string",
            "description": "The hybrid public key, base64 (Ed25519 ‖ ML-DSA-65)."
          },
          "algorithm": {
            "type": "string",
            "description": "The signature algorithm this key is used with."
          },
          "active_from": {
            "type": "string",
            "description": "When it began signing, RFC 3339."
          },
          "active_to": {
            "type": [
              "string",
              "null"
            ],
            "description": "When it stopped, or absent while it is the active key."
          }
        },
        "type": "object",
        "required": [
          "key_id",
          "public",
          "algorithm",
          "active_from"
        ],
        "description": "One published attestation key."
      },
      "AttestationKeysResponse": {
        "properties": {
          "server_id": {
            "type": "string",
            "description": "This server's canonical origin — the other half of the binding that refuses a\ncross-server replay."
          },
          "keys": {
            "items": {
              "$ref": "#/components/schemas/PublishedKeyResponse"
            },
            "type": "array",
            "description": "Every key this server has signed with, oldest first, the active one last."
          }
        },
        "type": "object",
        "required": [
          "server_id",
          "keys"
        ],
        "description": "The `.well-known/capsule/attestation-keys` record."
      },
      "OidcEndpointsResponse": {
        "properties": {
          "authorize": {
            "type": "string",
            "description": "Where a client asks for an authorization URL."
          },
          "callback": {
            "type": "string",
            "description": "Where a client presents the `state` and `code` the provider's redirect carried."
          }
        },
        "type": "object",
        "required": [
          "authorize",
          "callback"
        ],
        "description": "The OIDC ceremony's endpoints."
      },
      "AuthEndpointsResponse": {
        "properties": {
          "login": {
            "type": "string",
            "description": "Where a session is opened."
          },
          "refresh": {
            "type": "string",
            "description": "Where an access token is rotated."
          },
          "logout": {
            "type": "string",
            "description": "Where a session is ended."
          },
          "oidc": {
            "anyOf": [
              {
                "$ref": "#/components/schemas/OidcEndpointsResponse"
              },
              {
                "type": "null"
              }
            ],
            "description": "Where a sign-in through an external identity provider begins and ends, or `null` when\nthis deployment has none. Always present, so a client reads one field rather than\nprobing for one."
          },
          "password_disabled": {
            "type": "boolean",
            "description": "`true` when this deployment refuses password registration and sign-in, so a client\noffers only `oidc`. Absent means `false`: a server that predates the switch accepts\npasswords, so a client reads a missing field the way it reads `false`."
          }
        },
        "type": "object",
        "required": [
          "login",
          "refresh",
          "logout"
        ],
        "description": "The auth ceremony's endpoints."
      },
      "ProtocolWindowResponse": {
        "properties": {
          "min": {
            "type": "string",
            "description": "The oldest version still accepted for writes."
          },
          "max": {
            "type": "string",
            "description": "The newest version this server speaks."
          }
        },
        "type": "object",
        "required": [
          "min",
          "max"
        ],
        "description": "The accepted `protocol_version` range."
      },
      "DeprecationResponse": {
        "properties": {
          "min_protocol_version": {
            "type": "string",
            "description": "The lowest `protocol_version` that remains accepted after the cutoff."
          },
          "announced_at": {
            "type": "string",
            "description": "When the announcement was first published, RFC 3339."
          },
          "cutoff": {
            "type": "string",
            "description": "When versions below `min_protocol_version` stop being accepted, RFC 3339."
          },
          "detail_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Where a human reads what to do about it."
          }
        },
        "type": "object",
        "required": [
          "min_protocol_version",
          "announced_at",
          "cutoff"
        ],
        "description": "One announced deprecation cutoff."
      },
      "ServerInfoResponse": {
        "properties": {
          "server_id": {
            "type": "string",
            "description": "This server's canonical origin."
          },
          "api_base_url": {
            "type": "string",
            "description": "Where the versioned API lives."
          },
          "auth": {
            "$ref": "#/components/schemas/AuthEndpointsResponse",
            "description": "Where a client performs the auth ceremony."
          },
          "federation_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Where federated peers talk to this server. Absent when it does not federate."
          },
          "protocol_version": {
            "$ref": "#/components/schemas/ProtocolWindowResponse",
            "description": "The `protocol_version` range accepted for writes today, both ends inclusive."
          },
          "signing_key": {
            "type": "string",
            "description": "The raw Ed25519 public key this server's tokens verify under, base64."
          },
          "signing_algorithm": {
            "type": "string",
            "description": "The signature algorithm that key is used with."
          },
          "deprecations": {
            "items": {
              "$ref": "#/components/schemas/DeprecationResponse"
            },
            "type": "array",
            "description": "Announced deprecation cutoffs, in announcement order. Empty when none is pending."
          }
        },
        "type": "object",
        "required": [
          "server_id",
          "api_base_url",
          "auth",
          "protocol_version",
          "signing_key",
          "signing_algorithm",
          "deprecations"
        ],
        "description": "The `.well-known/capsule/server-info` record.\n\nServer-scoped facts only. The registry's rule — *never a user list* — is structural here:\nthis type holds no user-shaped field, so there is nothing for a future edit to leak through."
      },
      "DeprecationsResponse": {
        "properties": {
          "announcements": {
            "items": {
              "$ref": "#/components/schemas/DeprecationResponse"
            },
            "type": "array",
            "description": "Every announced cutoff, in announcement order."
          }
        },
        "type": "object",
        "required": [
          "announcements"
        ],
        "description": "The `.well-known/capsule/deprecation` record."
      },
      "RevokedTokenResponse": {
        "properties": {
          "jti": {
            "type": "string",
            "description": "The token's `jti` claim."
          },
          "expires_at": {
            "type": "string",
            "description": "The token's own `exp`, RFC 3339. After this the entry is pruned."
          }
        },
        "type": "object",
        "required": [
          "jti",
          "expires_at"
        ],
        "description": "One revoked capability token."
      },
      "RevokedJtiResponse": {
        "properties": {
          "generated_at": {
            "type": "string",
            "description": "When this snapshot was taken, RFC 3339.\n\nPart of the record rather than left to an HTTP `Date`, because the staleness rule a peer\napplies is a property of the list's content — a verifier reasoning from a transport\nheader would be trusting a cache to be honest about its own age."
          },
          "max_staleness_seconds": {
            "type": "integer",
            "maximum": 4294967295.0,
            "minimum": 0.0,
            "format": "uint32",
            "description": "How stale a cached copy of this list may be before it stops being usable, in seconds.\n\nPublished so the rule is discoverable rather than a constant every peer implementation\nhas to have read the same document to know."
          },
          "revoked": {
            "items": {
              "$ref": "#/components/schemas/RevokedTokenResponse"
            },
            "type": "array",
            "description": "Every revoked `jti` not yet past its own expiry, soonest expiry first."
          }
        },
        "type": "object",
        "required": [
          "generated_at",
          "max_staleness_seconds",
          "revoked"
        ],
        "description": "The `.well-known/capsule/revoked-jti` record."
      },
      "SharedMetadataResponse": {
        "properties": {
          "metadata_hash": {
            "type": "string",
            "description": "The metadata blob's content address; fetch it from `/s/{opaque_id}/blob/{hash}`."
          },
          "passphrase_protected": {
            "type": "boolean",
            "description": "Whether a passphrase is required before the scope material can be opened.\n\nThe one property of the link this path discloses, and it has to: a viewer cannot know to\nask for a passphrase otherwise. It says nothing about *what* the link points at."
          }
        },
        "type": "object",
        "required": [
          "metadata_hash",
          "passphrase_protected"
        ],
        "description": "What a viewer needs to start."
      },
      "DropStatusResponse": {
        "properties": {
          "status": {
            "type": "string",
            "description": "Where the session is in its state machine: `pending`, `uploading`,\n`waiting_for_processing` while its deposit runs, then `completed` once the drop is in its\nowner's inbox, or `failed_processing` once the deposit refused it."
          },
          "received_bytes": {
            "type": "integer",
            "minimum": 0.0,
            "format": "uint64",
            "description": "Bytes durably accepted so far — the offset a resumed upload continues from."
          },
          "total_size": {
            "type": "integer",
            "minimum": 0.0,
            "format": "uint64",
            "description": "The declared total."
          },
          "error_code": {
            "type": [
              "string",
              "null"
            ],
            "description": "For a `failed_processing` session, the `error.*` code the deposit failed with. Absent for\nevery other state."
          }
        },
        "type": "object",
        "required": [
          "status",
          "received_bytes",
          "total_size"
        ],
        "description": "What a guest's drop session is doing, as its status probe reports it.\n\nThe session's own state and nothing else: no drop id, no owner, no link totals. Every field\nis one the guest already holds or is owed — the bytes they sent, the size they declared, and\nthe outcome of the deposit they started."
      },
      "RefreshRequest": {
        "properties": {
          "refresh_token": {
            "type": "string",
            "description": "The refresh token issued by a previous login or refresh.\n\nUnconstrained in the schema for the reason [`LoginRequest`] records: an empty one is a\ntoken that does not verify, which is a 401 the handler already answers correctly."
          }
        },
        "type": "object",
        "required": [
          "refresh_token"
        ],
        "description": "The refresh token being exchanged for a new pair.\n\n`Debug` is hand-written, for the same reason as [`LoginRequest`]: this field is a live\ncredential."
      },
      "CreateDropRequest": {
        "properties": {
          "content_type": {
            "type": "string",
            "description": "The declared content type, from the link's pinned protocol enum (invariant 27)."
          },
          "size": {
            "type": "integer",
            "minimum": 0.0,
            "format": "uint64",
            "description": "The ciphertext's total length."
          },
          "ciphertext_hash": {
            "type": "string",
            "description": "The lowercase-hex SHA-256 finalization verifies against."
          },
          "kem_ct": {
            "type": "string",
            "description": "`K` encapsulated to the link's Drop Key, base64. Length fixed by the suite\n(invariant 30)."
          },
          "passphrase_proof": {
            "type": [
              "string",
              "null"
            ],
            "description": "The Argon2id **proof** for a passphrase-gated link, base64.\n\nRequired exactly when the link carries a verifier, and absent otherwise. The passphrase\nitself is never transmitted: what travels is the derived proof, and the KDF's cost is\nwhat rate-limits guessing on top of the per-link limiter.\n\nIt gates a **write** and adds no confidentiality — the guest already encrypts every\nasset. What it limits is *who may spend the owner's quota*\n([Web Upload](../../../capsule-docs/src/content/docs/design/web-upload.md))."
          },
          "suggested_filename": {
            "type": [
              "string",
              "null"
            ],
            "description": "Guest-supplied and unverified. Advisory only."
          }
        },
        "additionalProperties": false,
        "type": "object",
        "required": [
          "content_type",
          "size",
          "ciphertext_hash",
          "kem_ct"
        ],
        "description": "A guest's declared drop.\n\n**No `album_id`, no `amk_version`, no manifest, no provenance.** `deny_unknown_fields` is\nwhat enforces invariant 30's *absence* clause: a drop that names an album is a `400` rather\nthan a field the server quietly ignores, because ignoring it would let a guest believe they\nhad written into an album."
      },
      "CreateDropResponse": {
        "properties": {
          "upload_id": {
            "type": "string",
            "description": "The session id, and the last path segment of the chunk endpoint."
          },
          "suggested_chunk_size": {
            "type": "integer",
            "minimum": 0.0,
            "format": "uint64",
            "description": "The chunk size to start with."
          }
        },
        "type": "object",
        "required": [
          "upload_id",
          "suggested_chunk_size"
        ],
        "description": "The session a guest uploads into."
      },
      "CodedProblem": {
        "properties": {
          "type": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "integer",
            "maximum": 65535.0,
            "minimum": 0.0,
            "format": "uint16"
          },
          "detail": {
            "type": "string"
          },
          "instance": {
            "type": "string"
          },
          "code": {
            "type": "string",
            "description": "The stable `error.*` catalog code. The client localizes this; `detail` stays English. Present on every problem this server renders."
          },
          "request_id": {
            "type": "string",
            "description": "The UUIDv7 this server minted for the request, as the `X-Request-Id` header carries it. Quote it when reporting the failure: it names the request's log lines."
          }
        },
        "additionalProperties": true,
        "type": "object",
        "required": [
          "type",
          "status",
          "code"
        ],
        "title": "CodedProblem",
        "description": "An RFC 9457 problem detail."
      },
      "ProtocolRangeProblem": {
        "properties": {
          "type": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "integer",
            "maximum": 65535.0,
            "minimum": 0.0,
            "format": "uint16"
          },
          "detail": {
            "type": "string"
          },
          "instance": {
            "type": "string"
          },
          "code": {
            "type": "string",
            "description": "The stable `error.*` catalog code. The client localizes this; `detail` stays English. Present on every problem this server renders."
          },
          "request_id": {
            "type": "string",
            "description": "The UUIDv7 this server minted for the request, as the `X-Request-Id` header carries it. Quote it when reporting the failure: it names the request's log lines."
          },
          "protocol_min": {
            "type": "string",
            "description": "The oldest protocol date this server still speaks (`YYYY-MM-DD`)."
          },
          "protocol_max": {
            "type": "string",
            "description": "The newest protocol date this server speaks (`YYYY-MM-DD`)."
          }
        },
        "additionalProperties": true,
        "type": "object",
        "required": [
          "type",
          "status",
          "code"
        ],
        "title": "ProtocolRangeProblem",
        "description": "An RFC 9457 problem detail."
      },
      "DuplicateBlobProblem": {
        "properties": {
          "type": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "integer",
            "maximum": 65535.0,
            "minimum": 0.0,
            "format": "uint16"
          },
          "detail": {
            "type": "string"
          },
          "instance": {
            "type": "string"
          },
          "code": {
            "type": "string",
            "description": "The stable `error.*` catalog code. The client localizes this; `detail` stays English. Present on every problem this server renders."
          },
          "request_id": {
            "type": "string",
            "description": "The UUIDv7 this server minted for the request, as the `X-Request-Id` header carries it. Quote it when reporting the failure: it names the request's log lines."
          },
          "existing_asset": {
            "type": "string",
            "description": "The asset already holding these exact bytes in the same album. Structured so a client merges rather than re-parsing a sentence."
          }
        },
        "additionalProperties": true,
        "type": "object",
        "required": [
          "type",
          "status",
          "code"
        ],
        "title": "DuplicateBlobProblem",
        "description": "An RFC 9457 problem detail."
      },
      "UploadChunkConflictProblem": {
        "properties": {
          "type": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "integer",
            "maximum": 65535.0,
            "minimum": 0.0,
            "format": "uint16"
          },
          "detail": {
            "type": "string"
          },
          "instance": {
            "type": "string"
          },
          "code": {
            "type": "string",
            "description": "The stable `error.*` catalog code. The client localizes this; `detail` stays English. Present on every problem this server renders."
          },
          "request_id": {
            "type": "string",
            "description": "The UUIDv7 this server minted for the request, as the `X-Request-Id` header carries it. Quote it when reporting the failure: it names the request's log lines."
          },
          "committed": {
            "type": [
              "string",
              "null"
            ],
            "description": "On `error.upload.range_conflict`, the session's committed set as `X-Capsule-Committed` spells it, which the response also carries: comma-separated inclusive byte ranges. The client re-plans from it. Absent on every other conflict."
          },
          "retry_after": {
            "type": [
              "integer",
              "null"
            ],
            "format": "uint64",
            "description": "When the caller may retry, as Unix seconds; the `Retry-After` header carries the same instant as a delay. Set on `error.upload.too_many_in_flight`, and on `range_conflict` and `too_fragmented` when a range of the session is in flight."
          }
        },
        "additionalProperties": true,
        "type": "object",
        "required": [
          "type",
          "status",
          "code"
        ],
        "title": "UploadChunkConflictProblem",
        "description": "An RFC 9457 problem detail."
      },
      "DirectoryConflictProblem": {
        "properties": {
          "type": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "integer",
            "maximum": 65535.0,
            "minimum": 0.0,
            "format": "uint16"
          },
          "detail": {
            "type": "string"
          },
          "instance": {
            "type": "string"
          },
          "code": {
            "type": "string",
            "description": "The stable `error.*` catalog code. The client localizes this; `detail` stays English. Present on every problem this server renders."
          },
          "request_id": {
            "type": "string",
            "description": "The UUIDv7 this server minted for the request, as the `X-Request-Id` header carries it. Quote it when reporting the failure: it names the request's log lines."
          },
          "submitted": {
            "type": "integer",
            "description": "The directory version the request carried."
          },
          "stored": {
            "type": "integer",
            "description": "The version the server holds. A client re-signs above this one."
          }
        },
        "additionalProperties": true,
        "type": "object",
        "required": [
          "type",
          "status",
          "code"
        ],
        "title": "DirectoryConflictProblem",
        "description": "An RFC 9457 problem detail."
      },
      "RosterVersionLeapProblem": {
        "properties": {
          "type": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "integer",
            "maximum": 65535.0,
            "minimum": 0.0,
            "format": "uint16"
          },
          "detail": {
            "type": "string"
          },
          "instance": {
            "type": "string"
          },
          "code": {
            "type": "string",
            "description": "The stable `error.*` catalog code. The client localizes this; `detail` stays English. Present on every problem this server renders."
          },
          "request_id": {
            "type": "string",
            "description": "The UUIDv7 this server minted for the request, as the `X-Request-Id` header carries it. Quote it when reporting the failure: it names the request's log lines."
          },
          "current_version": {
            "type": "integer",
            "format": "uint64",
            "description": "The roster version the server holds; `0` when it holds none."
          },
          "max_version": {
            "type": "integer",
            "format": "uint64",
            "description": "The highest version this album would have accepted. A client re-signs the same roster at `current_version + 1`; a version nothing could supersede would freeze the album's membership."
          }
        },
        "additionalProperties": true,
        "type": "object",
        "required": [
          "type",
          "status",
          "code"
        ],
        "title": "RosterVersionLeapProblem",
        "description": "An RFC 9457 problem detail."
      },
      "RosterStaleProblem": {
        "properties": {
          "type": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "integer",
            "maximum": 65535.0,
            "minimum": 0.0,
            "format": "uint16"
          },
          "detail": {
            "type": "string"
          },
          "instance": {
            "type": "string"
          },
          "code": {
            "type": "string",
            "description": "The stable `error.*` catalog code. The client localizes this; `detail` stays English. Present on every problem this server renders."
          },
          "request_id": {
            "type": "string",
            "description": "The UUIDv7 this server minted for the request, as the `X-Request-Id` header carries it. Quote it when reporting the failure: it names the request's log lines."
          },
          "current_version": {
            "type": "integer",
            "format": "uint64",
            "description": "The roster version the server holds. A client re-syncs and republishes above it."
          }
        },
        "additionalProperties": true,
        "type": "object",
        "required": [
          "type",
          "status",
          "code"
        ],
        "title": "RosterStaleProblem",
        "description": "An RFC 9457 problem detail."
      },
      "StaleRevivalProblem": {
        "properties": {
          "type": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "integer",
            "maximum": 65535.0,
            "minimum": 0.0,
            "format": "uint16"
          },
          "detail": {
            "type": "string"
          },
          "instance": {
            "type": "string"
          },
          "code": {
            "type": "string",
            "description": "The stable `error.*` catalog code. The client localizes this; `detail` stays English. Present on every problem this server renders."
          },
          "request_id": {
            "type": "string",
            "description": "The UUIDv7 this server minted for the request, as the `X-Request-Id` header carries it. Quote it when reporting the failure: it names the request's log lines."
          },
          "chain_head": {
            "type": [
              "string",
              "null"
            ],
            "description": "The manifest hash the asset's chain is actually at. Absent when the conflict is not a chain conflict, which is why it is nullable."
          },
          "retention_until": {
            "type": [
              "string",
              "null"
            ],
            "description": "On `error.upload.retention_elapsed`, the signed retention floor (RFC 3339) the trash-restore came too late for. Absent on every other conflict, which is why it is nullable."
          }
        },
        "additionalProperties": true,
        "type": "object",
        "required": [
          "type",
          "status",
          "code"
        ],
        "title": "StaleRevivalProblem",
        "description": "An RFC 9457 problem detail."
      },
      "FileTooLargeProblem": {
        "properties": {
          "type": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "integer",
            "maximum": 65535.0,
            "minimum": 0.0,
            "format": "uint16"
          },
          "detail": {
            "type": "string"
          },
          "instance": {
            "type": "string"
          },
          "code": {
            "type": "string",
            "description": "The stable `error.*` catalog code. The client localizes this; `detail` stays English. Present on every problem this server renders."
          },
          "request_id": {
            "type": "string",
            "description": "The UUIDv7 this server minted for the request, as the `X-Request-Id` header carries it. Quote it when reporting the failure: it names the request's log lines."
          },
          "limit": {
            "type": "integer",
            "description": "The largest file this drop link accepts, in bytes."
          }
        },
        "additionalProperties": true,
        "type": "object",
        "required": [
          "type",
          "status",
          "code"
        ],
        "title": "FileTooLargeProblem",
        "description": "An RFC 9457 problem detail."
      },
      "DropRateLimitedProblem": {
        "properties": {
          "type": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "integer",
            "maximum": 65535.0,
            "minimum": 0.0,
            "format": "uint16"
          },
          "detail": {
            "type": "string"
          },
          "instance": {
            "type": "string"
          },
          "code": {
            "type": "string",
            "description": "The stable `error.*` catalog code. The client localizes this; `detail` stays English. Present on every problem this server renders."
          },
          "request_id": {
            "type": "string",
            "description": "The UUIDv7 this server minted for the request, as the `X-Request-Id` header carries it. Quote it when reporting the failure: it names the request's log lines."
          },
          "retry_after": {
            "type": "integer",
            "format": "uint64",
            "description": "When the caller may retry, as Unix seconds. From the limiter's own window when a budget is spent, and an upper bound of one window when the limiter is at capacity."
          }
        },
        "additionalProperties": true,
        "type": "object",
        "required": [
          "type",
          "status",
          "code"
        ],
        "title": "DropRateLimitedProblem",
        "description": "An RFC 9457 problem detail."
      },
      "EnrollmentRateLimitedProblem": {
        "properties": {
          "type": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "integer",
            "maximum": 65535.0,
            "minimum": 0.0,
            "format": "uint16"
          },
          "detail": {
            "type": "string"
          },
          "instance": {
            "type": "string"
          },
          "code": {
            "type": "string",
            "description": "The stable `error.*` catalog code. The client localizes this; `detail` stays English. Present on every problem this server renders."
          },
          "request_id": {
            "type": "string",
            "description": "The UUIDv7 this server minted for the request, as the `X-Request-Id` header carries it. Quote it when reporting the failure: it names the request's log lines."
          },
          "retry_after": {
            "type": "integer",
            "format": "uint64",
            "description": "When the caller may retry, as Unix seconds. From the limiter's own window when a budget is spent, and an upper bound of one window when the limiter is at capacity."
          }
        },
        "additionalProperties": true,
        "type": "object",
        "required": [
          "type",
          "status",
          "code"
        ],
        "title": "EnrollmentRateLimitedProblem",
        "description": "An RFC 9457 problem detail."
      },
      "ShareMetadataRateLimitedProblem": {
        "properties": {
          "type": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "integer",
            "maximum": 65535.0,
            "minimum": 0.0,
            "format": "uint16"
          },
          "detail": {
            "type": "string"
          },
          "instance": {
            "type": "string"
          },
          "code": {
            "type": "string",
            "description": "The stable `error.*` catalog code. The client localizes this; `detail` stays English. Present on every problem this server renders."
          },
          "request_id": {
            "type": "string",
            "description": "The UUIDv7 this server minted for the request, as the `X-Request-Id` header carries it. Quote it when reporting the failure: it names the request's log lines."
          },
          "retry_after": {
            "type": "integer",
            "format": "uint64",
            "description": "When the caller may retry, as Unix seconds. From the limiter's own window when a budget is spent, and an upper bound of one window when the limiter is at capacity."
          }
        },
        "additionalProperties": true,
        "type": "object",
        "required": [
          "type",
          "status",
          "code"
        ],
        "title": "ShareMetadataRateLimitedProblem",
        "description": "An RFC 9457 problem detail."
      },
      "ShareSecretRateLimitedProblem": {
        "properties": {
          "type": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "integer",
            "maximum": 65535.0,
            "minimum": 0.0,
            "format": "uint16"
          },
          "detail": {
            "type": "string"
          },
          "instance": {
            "type": "string"
          },
          "code": {
            "type": "string",
            "description": "The stable `error.*` catalog code. The client localizes this; `detail` stays English. Present on every problem this server renders."
          },
          "request_id": {
            "type": "string",
            "description": "The UUIDv7 this server minted for the request, as the `X-Request-Id` header carries it. Quote it when reporting the failure: it names the request's log lines."
          },
          "retry_after": {
            "type": "integer",
            "format": "uint64",
            "description": "When the caller may retry, as Unix seconds. From the limiter's own window when a budget is spent, and an upper bound of one window when the limiter is at capacity."
          }
        },
        "additionalProperties": true,
        "type": "object",
        "required": [
          "type",
          "status",
          "code"
        ],
        "title": "ShareSecretRateLimitedProblem",
        "description": "An RFC 9457 problem detail."
      },
      "StorageVerifyRateLimitedProblem": {
        "properties": {
          "type": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "integer",
            "maximum": 65535.0,
            "minimum": 0.0,
            "format": "uint16"
          },
          "detail": {
            "type": "string"
          },
          "instance": {
            "type": "string"
          },
          "code": {
            "type": "string",
            "description": "The stable `error.*` catalog code. The client localizes this; `detail` stays English. Present on every problem this server renders."
          },
          "request_id": {
            "type": "string",
            "description": "The UUIDv7 this server minted for the request, as the `X-Request-Id` header carries it. Quote it when reporting the failure: it names the request's log lines."
          },
          "retry_after": {
            "type": "integer",
            "format": "uint64",
            "description": "When the caller may retry, as Unix seconds. From the limiter's own window when a budget is spent, and an upper bound of one window when the limiter is at capacity."
          }
        },
        "additionalProperties": true,
        "type": "object",
        "required": [
          "type",
          "status",
          "code"
        ],
        "title": "StorageVerifyRateLimitedProblem",
        "description": "An RFC 9457 problem detail."
      },
      "ShareBlobRateLimitedProblem": {
        "properties": {
          "type": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "integer",
            "maximum": 65535.0,
            "minimum": 0.0,
            "format": "uint16"
          },
          "detail": {
            "type": "string"
          },
          "instance": {
            "type": "string"
          },
          "code": {
            "type": "string",
            "description": "The stable `error.*` catalog code. The client localizes this; `detail` stays English. Present on every problem this server renders."
          },
          "request_id": {
            "type": "string",
            "description": "The UUIDv7 this server minted for the request, as the `X-Request-Id` header carries it. Quote it when reporting the failure: it names the request's log lines."
          },
          "retry_after": {
            "type": "integer",
            "format": "uint64",
            "description": "When the caller may retry, as Unix seconds. From the limiter's own window when a budget is spent, and an upper bound of one window when the limiter is at capacity."
          }
        },
        "additionalProperties": true,
        "type": "object",
        "required": [
          "type",
          "status",
          "code"
        ],
        "title": "ShareBlobRateLimitedProblem",
        "description": "An RFC 9457 problem detail."
      },
      "RegistrationRateLimitedProblem": {
        "properties": {
          "type": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "integer",
            "maximum": 65535.0,
            "minimum": 0.0,
            "format": "uint16"
          },
          "detail": {
            "type": "string"
          },
          "instance": {
            "type": "string"
          },
          "code": {
            "type": "string",
            "description": "The stable `error.*` catalog code. The client localizes this; `detail` stays English. Present on every problem this server renders."
          },
          "request_id": {
            "type": "string",
            "description": "The UUIDv7 this server minted for the request, as the `X-Request-Id` header carries it. Quote it when reporting the failure: it names the request's log lines."
          },
          "retry_after": {
            "type": "integer",
            "format": "uint64",
            "description": "When the caller may retry, as Unix seconds. From the limiter's own window when a budget is spent, and an upper bound of one window when the limiter is at capacity."
          }
        },
        "additionalProperties": true,
        "type": "object",
        "required": [
          "type",
          "status",
          "code"
        ],
        "title": "RegistrationRateLimitedProblem",
        "description": "An RFC 9457 problem detail."
      },
      "UploadCreateRateLimitedProblem": {
        "properties": {
          "type": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "integer",
            "maximum": 65535.0,
            "minimum": 0.0,
            "format": "uint16"
          },
          "detail": {
            "type": "string"
          },
          "instance": {
            "type": "string"
          },
          "code": {
            "type": "string",
            "description": "The stable `error.*` catalog code. The client localizes this; `detail` stays English. Present on every problem this server renders."
          },
          "request_id": {
            "type": "string",
            "description": "The UUIDv7 this server minted for the request, as the `X-Request-Id` header carries it. Quote it when reporting the failure: it names the request's log lines."
          },
          "retry_after": {
            "type": "integer",
            "format": "uint64",
            "description": "When the caller may retry, as Unix seconds; the `Retry-After` header carries the same instant as a delay. The client waits, then resumes from `HEAD` at the authoritative offset."
          }
        },
        "additionalProperties": true,
        "type": "object",
        "required": [
          "type",
          "status",
          "code"
        ],
        "title": "UploadCreateRateLimitedProblem",
        "description": "An RFC 9457 problem detail."
      },
      "UploadCreateUnavailableProblem": {
        "properties": {
          "type": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "integer",
            "maximum": 65535.0,
            "minimum": 0.0,
            "format": "uint16"
          },
          "detail": {
            "type": "string"
          },
          "instance": {
            "type": "string"
          },
          "code": {
            "type": "string",
            "description": "The stable `error.*` catalog code. The client localizes this; `detail` stays English. Present on every problem this server renders."
          },
          "request_id": {
            "type": "string",
            "description": "The UUIDv7 this server minted for the request, as the `X-Request-Id` header carries it. Quote it when reporting the failure: it names the request's log lines."
          },
          "retry_after": {
            "type": "integer",
            "format": "uint64",
            "description": "When the caller may retry, as Unix seconds; the `Retry-After` header carries the same instant as a delay. The client waits, then resumes from `HEAD` at the authoritative offset."
          }
        },
        "additionalProperties": true,
        "type": "object",
        "required": [
          "type",
          "status",
          "code"
        ],
        "title": "UploadCreateUnavailableProblem",
        "description": "An RFC 9457 problem detail."
      },
      "UploadCreateStorageFullProblem": {
        "properties": {
          "type": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "integer",
            "maximum": 65535.0,
            "minimum": 0.0,
            "format": "uint16"
          },
          "detail": {
            "type": "string"
          },
          "instance": {
            "type": "string"
          },
          "code": {
            "type": "string",
            "description": "The stable `error.*` catalog code. The client localizes this; `detail` stays English. Present on every problem this server renders."
          },
          "request_id": {
            "type": "string",
            "description": "The UUIDv7 this server minted for the request, as the `X-Request-Id` header carries it. Quote it when reporting the failure: it names the request's log lines."
          },
          "retry_after": {
            "type": "integer",
            "format": "uint64",
            "description": "When the caller may retry, as Unix seconds; the `Retry-After` header carries the same instant as a delay. The client waits, then resumes from `HEAD` at the authoritative offset."
          }
        },
        "additionalProperties": true,
        "type": "object",
        "required": [
          "type",
          "status",
          "code"
        ],
        "title": "UploadCreateStorageFullProblem",
        "description": "An RFC 9457 problem detail."
      },
      "UploadChunkRateLimitedProblem": {
        "properties": {
          "type": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "integer",
            "maximum": 65535.0,
            "minimum": 0.0,
            "format": "uint16"
          },
          "detail": {
            "type": "string"
          },
          "instance": {
            "type": "string"
          },
          "code": {
            "type": "string",
            "description": "The stable `error.*` catalog code. The client localizes this; `detail` stays English. Present on every problem this server renders."
          },
          "request_id": {
            "type": "string",
            "description": "The UUIDv7 this server minted for the request, as the `X-Request-Id` header carries it. Quote it when reporting the failure: it names the request's log lines."
          },
          "retry_after": {
            "type": "integer",
            "format": "uint64",
            "description": "When the caller may retry, as Unix seconds; the `Retry-After` header carries the same instant as a delay. The client waits, then resumes from `HEAD` at the authoritative offset."
          }
        },
        "additionalProperties": true,
        "type": "object",
        "required": [
          "type",
          "status",
          "code"
        ],
        "title": "UploadChunkRateLimitedProblem",
        "description": "An RFC 9457 problem detail."
      },
      "UploadChunkUnavailableProblem": {
        "properties": {
          "type": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "integer",
            "maximum": 65535.0,
            "minimum": 0.0,
            "format": "uint16"
          },
          "detail": {
            "type": "string"
          },
          "instance": {
            "type": "string"
          },
          "code": {
            "type": "string",
            "description": "The stable `error.*` catalog code. The client localizes this; `detail` stays English. Present on every problem this server renders."
          },
          "request_id": {
            "type": "string",
            "description": "The UUIDv7 this server minted for the request, as the `X-Request-Id` header carries it. Quote it when reporting the failure: it names the request's log lines."
          },
          "retry_after": {
            "type": "integer",
            "format": "uint64",
            "description": "When the caller may retry, as Unix seconds; the `Retry-After` header carries the same instant as a delay. The client waits, then resumes from `HEAD` at the authoritative offset."
          }
        },
        "additionalProperties": true,
        "type": "object",
        "required": [
          "type",
          "status",
          "code"
        ],
        "title": "UploadChunkUnavailableProblem",
        "description": "An RFC 9457 problem detail."
      },
      "UploadChunkStorageFullProblem": {
        "properties": {
          "type": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "integer",
            "maximum": 65535.0,
            "minimum": 0.0,
            "format": "uint16"
          },
          "detail": {
            "type": "string"
          },
          "instance": {
            "type": "string"
          },
          "code": {
            "type": "string",
            "description": "The stable `error.*` catalog code. The client localizes this; `detail` stays English. Present on every problem this server renders."
          },
          "request_id": {
            "type": "string",
            "description": "The UUIDv7 this server minted for the request, as the `X-Request-Id` header carries it. Quote it when reporting the failure: it names the request's log lines."
          },
          "retry_after": {
            "type": "integer",
            "format": "uint64",
            "description": "When the caller may retry, as Unix seconds; the `Retry-After` header carries the same instant as a delay. The client waits, then resumes from `HEAD` at the authoritative offset."
          }
        },
        "additionalProperties": true,
        "type": "object",
        "required": [
          "type",
          "status",
          "code"
        ],
        "title": "UploadChunkStorageFullProblem",
        "description": "An RFC 9457 problem detail."
      },
      "UploadHeadUnavailableProblem": {
        "properties": {
          "type": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "integer",
            "maximum": 65535.0,
            "minimum": 0.0,
            "format": "uint16"
          },
          "detail": {
            "type": "string"
          },
          "instance": {
            "type": "string"
          },
          "code": {
            "type": "string",
            "description": "The stable `error.*` catalog code. The client localizes this; `detail` stays English. Present on every problem this server renders."
          },
          "request_id": {
            "type": "string",
            "description": "The UUIDv7 this server minted for the request, as the `X-Request-Id` header carries it. Quote it when reporting the failure: it names the request's log lines."
          },
          "retry_after": {
            "type": "integer",
            "format": "uint64",
            "description": "When the caller may retry, as Unix seconds; the `Retry-After` header carries the same instant as a delay. The client waits, then resumes from `HEAD` at the authoritative offset."
          }
        },
        "additionalProperties": true,
        "type": "object",
        "required": [
          "type",
          "status",
          "code"
        ],
        "title": "UploadHeadUnavailableProblem",
        "description": "An RFC 9457 problem detail."
      },
      "UploadCancelUnavailableProblem": {
        "properties": {
          "type": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "integer",
            "maximum": 65535.0,
            "minimum": 0.0,
            "format": "uint16"
          },
          "detail": {
            "type": "string"
          },
          "instance": {
            "type": "string"
          },
          "code": {
            "type": "string",
            "description": "The stable `error.*` catalog code. The client localizes this; `detail` stays English. Present on every problem this server renders."
          },
          "request_id": {
            "type": "string",
            "description": "The UUIDv7 this server minted for the request, as the `X-Request-Id` header carries it. Quote it when reporting the failure: it names the request's log lines."
          },
          "retry_after": {
            "type": "integer",
            "format": "uint64",
            "description": "When the caller may retry, as Unix seconds; the `Retry-After` header carries the same instant as a delay. The client waits, then resumes from `HEAD` at the authoritative offset."
          }
        },
        "additionalProperties": true,
        "type": "object",
        "required": [
          "type",
          "status",
          "code"
        ],
        "title": "UploadCancelUnavailableProblem",
        "description": "An RFC 9457 problem detail."
      },
      "DropChunkUnavailableProblem": {
        "properties": {
          "type": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "integer",
            "maximum": 65535.0,
            "minimum": 0.0,
            "format": "uint16"
          },
          "detail": {
            "type": "string"
          },
          "instance": {
            "type": "string"
          },
          "code": {
            "type": "string",
            "description": "The stable `error.*` catalog code. The client localizes this; `detail` stays English. Present on every problem this server renders."
          },
          "request_id": {
            "type": "string",
            "description": "The UUIDv7 this server minted for the request, as the `X-Request-Id` header carries it. Quote it when reporting the failure: it names the request's log lines."
          },
          "retry_after": {
            "type": "integer",
            "format": "uint64",
            "description": "When the guest may retry, as Unix seconds; the `Retry-After` header carries the same instant as a delay. The guest waits, then resends the same chunk at the same offset."
          }
        },
        "additionalProperties": true,
        "type": "object",
        "required": [
          "type",
          "status",
          "code"
        ],
        "title": "DropChunkUnavailableProblem",
        "description": "An RFC 9457 problem detail."
      },
      "DropChunkStorageFullProblem": {
        "properties": {
          "type": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "integer",
            "maximum": 65535.0,
            "minimum": 0.0,
            "format": "uint16"
          },
          "detail": {
            "type": "string"
          },
          "instance": {
            "type": "string"
          },
          "code": {
            "type": "string",
            "description": "The stable `error.*` catalog code. The client localizes this; `detail` stays English. Present on every problem this server renders."
          },
          "request_id": {
            "type": "string",
            "description": "The UUIDv7 this server minted for the request, as the `X-Request-Id` header carries it. Quote it when reporting the failure: it names the request's log lines."
          },
          "retry_after": {
            "type": "integer",
            "format": "uint64",
            "description": "When the guest may retry, as Unix seconds; the `Retry-After` header carries the same instant as a delay. The guest waits, then resends the same chunk at the same offset."
          }
        },
        "additionalProperties": true,
        "type": "object",
        "required": [
          "type",
          "status",
          "code"
        ],
        "title": "DropChunkStorageFullProblem",
        "description": "An RFC 9457 problem detail."
      }
    },
    "securitySchemes": {
      "bearer": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "description": "A Capsule bearer credential: a short-lived access token, issued by `POST /v1/auth/login` and rotated by `POST /v1/auth/refresh`, or, on the federation pull reads, a federation capability."
      }
    }
  },
  "tags": [
    {
      "name": "auth",
      "description": "Establishing, rotating and ending a session."
    },
    {
      "name": "devices",
      "description": "The session ledger and the signed device directory: listing an account's devices, revoking one, and publishing and fetching the keys to trust for them."
    },
    {
      "name": "escrow",
      "description": "Storing and fetching the wrapped account master key. Opaque to the server."
    },
    {
      "name": "profile",
      "description": "What an account knows about itself, and changing its password."
    },
    {
      "name": "totp",
      "description": "Enrolling a time-based one-time-password authenticator, and signing in with it."
    },
    {
      "name": "oidc",
      "description": "Signing in through an external OpenID Connect identity provider."
    },
    {
      "name": "enrollment",
      "description": "Cross-device add: the one-time code, and the relay channel it opens."
    },
    {
      "name": "albums",
      "description": "Binding a client-derived album id to its owner."
    },
    {
      "name": "upload",
      "description": "Opening a resumable upload session and feeding it chunks."
    },
    {
      "name": "storage",
      "description": "Confirming durability before a client destroys its local copy."
    },
    {
      "name": "sync",
      "description": "Discovering what changed in a library, as an opaque, resumable feed."
    },
    {
      "name": "shares",
      "description": "Public share links. The only surface served without an account."
    },
    {
      "name": "drops",
      "description": "Guest uploads through a capability link, and the inbox they land in."
    },
    {
      "name": "lifecycle",
      "description": "Applying a signed lifecycle manifest to an album's assets."
    },
    {
      "name": "federation",
      "description": "Minting, revoking and refreshing the capability a peer server pulls with."
    },
    {
      "name": "quota",
      "description": "Reporting storage use so a client can act before an import fails."
    },
    {
      "name": "moderation",
      "description": "An account's own moderation record. No silent operations."
    },
    {
      "name": "media",
      "description": "Fetching content-addressed ciphertext, resumably."
    },
    {
      "name": "well-known",
      "description": "Public, server-scoped discovery records. Never a user list."
    }
  ]
}
