{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/makespdf-com/json-schema/makespdf-com-artifact-list-schema.json",
  "title": "ArtifactList",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/makespdf-com-openapi.json#/components/schemas/ArtifactList",
  "type": "object",
  "required": [
    "items",
    "total",
    "limit",
    "offset"
  ],
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Artifact"
      }
    },
    "total": {
      "type": "integer"
    },
    "limit": {
      "type": "integer"
    },
    "offset": {
      "type": "integer"
    }
  },
  "$defs": {
    "Artifact": {
      "type": "object",
      "required": [
        "artifactId",
        "kind",
        "status",
        "createdAt",
        "expiresAt",
        "hasPdf"
      ],
      "properties": {
        "artifactId": {
          "type": "string"
        },
        "kind": {
          "type": "string",
          "enum": [
            "markdown",
            "canvas",
            "dsl-preview",
            "dsl-render",
            "alt-text-report",
            "tag-report"
          ]
        },
        "origin": {
          "type": "string",
          "enum": [
            "ui",
            "api",
            "cli"
          ]
        },
        "templateId": {
          "type": [
            "string",
            "null"
          ]
        },
        "templateName": {
          "type": [
            "string",
            "null"
          ]
        },
        "status": {
          "type": "string",
          "enum": [
            "success",
            "error"
          ]
        },
        "pageCount": {
          "type": [
            "integer",
            "null"
          ]
        },
        "byteSize": {
          "type": [
            "integer",
            "null"
          ]
        },
        "creditsCharged": {
          "type": [
            "integer",
            "null"
          ]
        },
        "errorMessage": {
          "type": [
            "string",
            "null"
          ]
        },
        "createdAt": {
          "type": "string",
          "format": "date-time"
        },
        "expiresAt": {
          "type": "string",
          "format": "date-time"
        },
        "hasPdf": {
          "type": "boolean"
        }
      }
    }
  }
}