{
  "openapi": "3.1.0",
  "info": {
    "title": "JewelLens API",
    "version": "1",
    "description": "A provenance-aware visual research assistant for jewellery, not an appraisal. A report separates what was observed, what is only possible, what you confirmed and what a photograph can never establish. Authenticate with an API key (Authorization: Bearer <key> or X-API-Key). Only starting an analysis is billed, after it succeeds; the preview, corrections, pieces, comparison, share links and history are free (on the dashboard)."
  },
  "servers": [
    {
      "url": "/"
    }
  ],
  "security": [
    {
      "bearer": []
    },
    {
      "apiKey": []
    }
  ],
  "paths": {
    "/api/v1/meta": {
      "get": {
        "summary": "Vocabularies and guidance",
        "operationId": "getMeta",
        "tags": [
          "Reference"
        ],
        "description": "The closed lists a request may use, the photo-role guidance and the four limits. Free.",
        "responses": {
          "200": {
            "description": "Vocabularies",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetaView"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          }
        }
      }
    },
    "/api/v1/preview": {
      "post": {
        "summary": "Check photo quality (free)",
        "operationId": "previewPhotos",
        "tags": [
          "Analysis"
        ],
        "description": "Measures each photo locally (sharpness, glare, exposure, resolution, measured palette) and returns specific tips. No AI is used and nothing is billed or stored. Send JSON with base64 photos, or multipart with `photos` files and `roles`.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PreviewRequest"
              }
            },
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "photos": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    },
                    "description": "One to four JPEG or PNG files, repeat the field."
                  },
                  "roles": {
                    "type": "string",
                    "description": "Comma-separated roles, one per photo in order (overview, back, hallmark, detail); may be repeated. Default: overview, back, hallmark, detail by position."
                  },
                  "facts": {
                    "type": "string",
                    "description": "JSON object of customer facts (see Facts)."
                  },
                  "piece_id": {
                    "type": "string"
                  }
                },
                "required": [
                  "photos"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Per-photo measurements",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PreviewView"
                }
              }
            }
          },
          "413": {
            "description": "A photo is too large"
          },
          "415": {
            "description": "A photo is not a JPEG or PNG"
          },
          "422": {
            "description": "Invalid roles or photo count"
          },
          "429": {
            "description": "Hourly preview quota reached"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          }
        }
      }
    },
    "/api/v1/analyses": {
      "post": {
        "summary": "Start an analysis (billed on success)",
        "operationId": "startAnalysis",
        "tags": [
          "Analysis"
        ],
        "description": "Queues one analysis of one to four photos of a single piece and returns 202 with a job to poll. It is billed only when the report is delivered, under one identifier minted here; an unusable photo (422), a refusal or a failure bills nothing. Send JSON with base64 `photos`, or multipart with `photos` files, `roles`, `facts` (JSON) and optional `piece_id`.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/StartRequest"
              }
            },
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "photos": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    },
                    "description": "One to four JPEG or PNG files, repeat the field."
                  },
                  "roles": {
                    "type": "string",
                    "description": "Comma-separated roles, one per photo in order (overview, back, hallmark, detail); may be repeated. Default: overview, back, hallmark, detail by position."
                  },
                  "facts": {
                    "type": "string",
                    "description": "JSON object of customer facts (see Facts)."
                  },
                  "piece_id": {
                    "type": "string"
                  }
                },
                "required": [
                  "photos"
                ]
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Queued",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Accepted"
                }
              }
            }
          },
          "402": {
            "description": "Empty wallet (body carries top_up_url)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "403": {
            "description": "No active subscription (body carries subscribe_url)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "413": {
            "description": "A photo is too large"
          },
          "415": {
            "description": "A photo is not a JPEG or PNG"
          },
          "422": {
            "description": "Invalid input, including an unusable photo (the detail names the photo and why)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Hourly quota or too many analyses running",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          }
        }
      },
      "get": {
        "summary": "List analyses",
        "operationId": "listAnalyses",
        "tags": [
          "Analysis"
        ],
        "description": "Newest first. Page with `before` set to the `created_at` of the last row you received.",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "before",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "RFC 3339 time or Unix seconds."
          },
          {
            "name": "category",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Summaries",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/AnalysisSummary"
                  }
                }
              }
            }
          },
          "422": {
            "description": "Invalid parameter",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          }
        }
      }
    },
    "/api/v1/analyses/{id}": {
      "get": {
        "summary": "Fetch an analysis",
        "operationId": "getAnalysis",
        "tags": [
          "Analysis"
        ],
        "description": "The delivered report (`report`) with its piece, feedback and share links.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The analysis",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AnalysisView"
                }
              }
            }
          },
          "404": {
            "description": "Not found or no longer retained",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          }
        }
      },
      "delete": {
        "summary": "Delete an analysis",
        "operationId": "deleteAnalysis",
        "tags": [
          "Analysis"
        ],
        "description": "Deletes the report, its history row, its link to a piece, its feedback and every share link.",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "Deleted"
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          }
        }
      }
    },
    "/api/v1/jobs/{id}": {
      "get": {
        "summary": "Poll a job",
        "operationId": "getJob",
        "tags": [
          "Analysis"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Job state",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobView"
                }
              }
            }
          },
          "404": {
            "description": "Not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearer": {
        "type": "http",
        "scheme": "bearer"
      },
      "apiKey": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-Key"
      }
    },
    "responses": {
      "Unauthorized": {
        "description": "Missing or invalid API key",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      }
    },
    "schemas": {
      "Problem": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "integer"
          },
          "detail": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "errors": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "field": {
                  "type": "string"
                },
                "message": {
                  "type": "string"
                }
              }
            }
          },
          "timestamp": {
            "type": "integer"
          },
          "top_up_url": {
            "type": "string"
          },
          "subscribe_url": {
            "type": "string"
          }
        },
        "required": [
          "status",
          "title",
          "code"
        ],
        "description": "RFC 7807 problem details."
      },
      "Fact": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "value": {
            "type": "string"
          },
          "display": {
            "type": "string"
          },
          "label": {
            "type": "string",
            "enum": [
              "observed",
              "possible",
              "confirmed",
              "not_verifiable"
            ]
          },
          "confidence": {
            "type": "string",
            "enum": [
              "low",
              "medium",
              "high"
            ]
          },
          "source": {
            "type": "string",
            "enum": [
              "model",
              "measured",
              "parsed",
              "customer"
            ]
          },
          "uncertain": {
            "type": "boolean"
          },
          "editable": {
            "type": "boolean"
          },
          "note": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "display",
          "label"
        ]
      },
      "Fineness": {
        "type": "object",
        "properties": {
          "mark": {
            "type": "string"
          },
          "metal": {
            "type": "string"
          },
          "parts": {
            "type": "integer"
          },
          "percent": {
            "type": "number"
          },
          "karat": {
            "type": "number"
          },
          "meaning": {
            "type": "string"
          }
        }
      },
      "Hallmark": {
        "type": "object",
        "properties": {
          "present": {
            "type": "boolean"
          },
          "raw": {
            "type": "string"
          },
          "normalized": {
            "type": "string"
          },
          "tokens": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "certainty": {
            "type": "string",
            "enum": [
              "certain",
              "uncertain",
              "unreadable",
              "absent"
            ]
          },
          "claims": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Fineness"
            }
          },
          "indicators": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "label": {
            "type": "string",
            "enum": [
              "observed",
              "possible",
              "confirmed",
              "not_verifiable"
            ]
          },
          "corrected": {
            "type": "boolean"
          }
        },
        "required": [
          "present",
          "certainty"
        ],
        "description": "The parsed stamp. The text is observed; what it claims is never verifiable by photograph."
      },
      "Style": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "period": {
            "type": "string"
          },
          "confidence": {
            "type": "string",
            "enum": [
              "low",
              "medium",
              "high"
            ]
          },
          "reason": {
            "type": "string"
          },
          "evidence": {
            "type": "string",
            "enum": [
              "observed",
              "possible",
              "confirmed",
              "not_verifiable"
            ]
          }
        }
      },
      "Issue": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "photo": {
            "type": "integer"
          },
          "location": {
            "type": "string"
          },
          "confidence": {
            "type": "string",
            "enum": [
              "low",
              "medium",
              "high"
            ]
          },
          "attention": {
            "type": "boolean"
          },
          "advice": {
            "type": "string"
          },
          "evidence": {
            "type": "string",
            "enum": [
              "observed",
              "possible",
              "confirmed",
              "not_verifiable"
            ]
          }
        }
      },
      "CareTip": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "text": {
            "type": "string"
          },
          "basis": {
            "type": "string"
          }
        }
      },
      "CheckItem": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "text": {
            "type": "string"
          },
          "why": {
            "type": "string"
          },
          "priority": {
            "type": "string",
            "enum": [
              "first",
              "next",
              "optional"
            ]
          },
          "trigger": {
            "type": "string"
          }
        }
      },
      "Reference": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "source": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "maker": {
            "type": "string"
          },
          "date": {
            "type": "string"
          },
          "medium": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "image_url": {
            "type": "string"
          },
          "credit": {
            "type": "string"
          },
          "rights": {
            "type": "string"
          },
          "query": {
            "type": "string"
          },
          "match_kind": {
            "type": "string"
          }
        }
      },
      "Photo": {
        "type": "object",
        "properties": {
          "index": {
            "type": "integer"
          },
          "role": {
            "type": "string",
            "enum": [
              "overview",
              "back",
              "hallmark",
              "detail"
            ]
          },
          "width": {
            "type": "integer"
          },
          "height": {
            "type": "integer"
          },
          "quality": {
            "type": "integer"
          },
          "usable": {
            "type": "boolean"
          },
          "tips": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "glare_share": {
            "type": "number"
          },
          "sharpness": {
            "type": "number"
          },
          "palette": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "Check": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "ok": {
            "type": "boolean"
          },
          "detail": {
            "type": "string"
          }
        }
      },
      "Facts": {
        "type": "object",
        "properties": {
          "material": {
            "type": "string",
            "enum": [
              "gold",
              "silver",
              "platinum",
              "plated",
              "base_metal",
              "other"
            ]
          },
          "stones": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "none",
                "hard",
                "pearl",
                "soft",
                "glass",
                "unknown"
              ]
            }
          },
          "weight_g": {
            "type": "number"
          },
          "length_mm": {
            "type": "number"
          },
          "width_mm": {
            "type": "number"
          },
          "provenance": {
            "type": "string"
          },
          "category_hint": {
            "type": "string"
          }
        },
        "description": "What the customer states about the piece. Everything here is confirmed (their word) and optional."
      },
      "Report": {
        "type": "object",
        "properties": {
          "version": {
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "photos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Photo"
            }
          },
          "facts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Fact"
            }
          },
          "hallmark": {
            "$ref": "#/components/schemas/Hallmark"
          },
          "styles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Style"
            }
          },
          "issues": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Issue"
            }
          },
          "settings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "stated": {
            "$ref": "#/components/schemas/Facts"
          },
          "care": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CareTip"
            }
          },
          "checklist": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CheckItem"
            }
          },
          "references": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Reference"
            }
          },
          "references_status": {
            "type": "string",
            "enum": [
              "ok",
              "none",
              "unavailable",
              "skipped"
            ]
          },
          "references_note": {
            "type": "string"
          },
          "checks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Check"
            }
          },
          "checks_passed": {
            "type": "boolean"
          },
          "summary": {
            "type": "string"
          },
          "summary_by_ai": {
            "type": "boolean"
          },
          "notes": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "limits": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "verified_material": {
            "type": "null"
          },
          "appraisal": {
            "type": "null"
          },
          "recommended_next_step": {
            "type": "string"
          },
          "edits": {
            "type": "integer"
          },
          "prompt": {
            "type": "string"
          },
          "prompt_fingerprint": {
            "type": "string"
          },
          "thumbnail": {
            "type": "string"
          }
        },
        "description": "The stored outcome of one analysis. Every fact carries a label (observed, possible, confirmed, not_verifiable). verified_material and appraisal are always null: the report makes no authenticity, purity, stone or value claim."
      },
      "PhotoUpload": {
        "type": "object",
        "properties": {
          "role": {
            "type": "string",
            "enum": [
              "overview",
              "back",
              "hallmark",
              "detail"
            ]
          },
          "filename": {
            "type": "string"
          },
          "data": {
            "type": "string"
          }
        },
        "required": [
          "data"
        ],
        "description": "One photo as base64 (a data: URL is accepted). JPEG or PNG."
      },
      "StartRequest": {
        "type": "object",
        "properties": {
          "photos": {
            "type": "array",
            "minItems": 1,
            "maxItems": 4,
            "items": {
              "$ref": "#/components/schemas/PhotoUpload"
            }
          },
          "facts": {
            "$ref": "#/components/schemas/Facts"
          },
          "piece_id": {
            "type": "string"
          }
        },
        "required": [
          "photos"
        ]
      },
      "PreviewRequest": {
        "type": "object",
        "properties": {
          "photos": {
            "type": "array",
            "minItems": 1,
            "maxItems": 4,
            "items": {
              "$ref": "#/components/schemas/PhotoUpload"
            }
          }
        },
        "required": [
          "photos"
        ]
      },
      "PreviewView": {
        "type": "object",
        "properties": {
          "photos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Photo"
            }
          },
          "usable": {
            "type": "boolean"
          }
        },
        "required": [
          "photos",
          "usable"
        ]
      },
      "Accepted": {
        "type": "object",
        "properties": {
          "job_id": {
            "type": "string"
          },
          "analysis_id": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "queued",
              "running",
              "succeeded",
              "failed"
            ]
          },
          "poll": {
            "type": "string"
          }
        },
        "required": [
          "job_id",
          "analysis_id",
          "status",
          "poll"
        ]
      },
      "JobView": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "status": {
            "type": "string",
            "enum": [
              "queued",
              "running",
              "succeeded",
              "failed"
            ]
          },
          "analysis_id": {
            "type": "string"
          },
          "error": {
            "type": "string"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "required": [
          "id",
          "status"
        ]
      },
      "HallmarkBrief": {
        "type": "object",
        "properties": {
          "raw": {
            "type": "string"
          },
          "certainty": {
            "type": "string"
          },
          "claim": {
            "type": "string"
          }
        }
      },
      "AnalysisSummary": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "error": {
            "type": "string"
          },
          "category": {
            "type": "string"
          },
          "category_label": {
            "type": "string"
          },
          "top_style": {
            "type": "string"
          },
          "top_style_label": {
            "type": "string"
          },
          "hallmark": {
            "$ref": "#/components/schemas/HallmarkBrief"
          },
          "issues": {
            "type": "integer"
          },
          "attention": {
            "type": "integer"
          },
          "quality": {
            "type": "integer"
          },
          "checks_passed": {
            "type": "boolean"
          },
          "edits": {
            "type": "integer"
          },
          "photos": {
            "type": "integer"
          },
          "references": {
            "type": "integer"
          },
          "piece_id": {
            "type": "string"
          },
          "piece_name": {
            "type": "string"
          },
          "thumbnail_url": {
            "type": "string"
          },
          "units": {
            "type": "integer"
          }
        },
        "required": [
          "id",
          "status",
          "created_at"
        ]
      },
      "AnalysisView": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "piece_id": {
            "type": "string"
          },
          "piece_name": {
            "type": "string"
          },
          "report": {
            "$ref": "#/components/schemas/Report"
          },
          "has_thumbnail": {
            "type": "boolean"
          },
          "feedback": {
            "type": "object",
            "properties": {
              "report_id": {
                "type": "string"
              },
              "useful": {
                "type": "boolean"
              },
              "note": {
                "type": "string"
              }
            }
          },
          "shares": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "report_id": {
                  "type": "string"
                },
                "live": {
                  "type": "boolean"
                }
              }
            }
          },
          "units": {
            "type": "integer"
          },
          "cost_eur": {
            "type": "number"
          },
          "source": {
            "type": "string"
          }
        },
        "required": [
          "id",
          "created_at",
          "report"
        ]
      },
      "Option": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "label": {
            "type": "string"
          }
        }
      },
      "MetaView": {
        "type": "object",
        "properties": {
          "categories": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Option"
            }
          },
          "roles": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "guidance": {
                  "type": "string"
                },
                "recommended": {
                  "type": "boolean"
                }
              }
            }
          },
          "metal_colours": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Option"
            }
          },
          "materials": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Option"
            }
          },
          "stone_kinds": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Option"
            }
          },
          "stone_colours": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Option"
            }
          },
          "settings": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Option"
            }
          },
          "locations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Option"
            }
          },
          "styles": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "label": {
                  "type": "string"
                },
                "period": {
                  "type": "string"
                }
              }
            }
          },
          "issues": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "attention": {
                  "type": "boolean"
                },
                "advice": {
                  "type": "string"
                }
              }
            }
          },
          "labels": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "meaning": {
                  "type": "string"
                }
              }
            }
          },
          "certainties": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Option"
            }
          },
          "photos": {
            "type": "object",
            "properties": {
              "max_photos": {
                "type": "integer"
              },
              "max_mb": {
                "type": "integer"
              },
              "formats": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "client_max_side": {
                "type": "integer"
              },
              "hallmark_min_side": {
                "type": "integer"
              },
              "general_min_side": {
                "type": "integer"
              }
            }
          },
          "facts": {
            "type": "object",
            "properties": {
              "weight_min_g": {
                "type": "number"
              },
              "weight_max_g": {
                "type": "number"
              },
              "size_min_mm": {
                "type": "number"
              },
              "size_max_mm": {
                "type": "number"
              },
              "provenance_max_chars": {
                "type": "integer"
              }
            }
          },
          "limits": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "description": "Closed vocabularies, what the evidence labels mean, photo-role guidance and the four things a report never says."
      }
    }
  }
}
