{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rendry-io/json-schema/rendry-io-generations-response-schema.json",
  "title": "GenerationsResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rendry-io-generations-api-openapi.yml#/components/schemas/GenerationsResponse",
  "type": "object",
  "required": [
    "items"
  ],
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Generation"
      }
    },
    "next_cursor": {
      "type": "string",
      "description": "Pass as `before` to fetch the next page; absent at the end of the feed"
    }
  },
  "$defs": {
    "Generation": {
      "type": "object",
      "description": "One render job of the account, as the feed shows it.",
      "required": [
        "id",
        "status",
        "created_at"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "url": {
          "type": "string",
          "description": "Path under /api/v1/files/… relative to the API origin — prefix https://rendry.io to download. Historical image results are public. New document attempt files and their page previews require the authenticated owner; a user asset (user_assets/…) is served only to its owner."
        },
        "status": {
          "type": "string",
          "enum": [
            "queued",
            "processing",
            "done",
            "error"
          ]
        },
        "preset_id": {
          "type": "string"
        },
        "width": {
          "type": "integer"
        },
        "height": {
          "type": "integer"
        },
        "format": {
          "type": "string"
        },
        "page_count": {
          "type": "integer",
          "description": "Documents: pages in the file"
        },
        "channel": {
          "type": "string",
          "enum": [
            "ui",
            "api",
            "agent"
          ],
          "description": "ui: the editor; api: REST and batch doors; agent: MCP"
        },
        "error": {
          "type": "string"
        },
        "created_at": {
          "type": "string"
        }
      }
    }
  }
}