{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/publishwith-ai/json-schema/publishwith-ai-source-response-schema.json",
  "title": "SourceResponse",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/publishwith-ai-openapi.yml#/components/schemas/SourceResponse",
  "type": "object",
  "properties": {
    "artifact_id": {
      "type": "string",
      "format": "uuid"
    },
    "mode": {
      "type": "string",
      "enum": [
        "static",
        "dynamic"
      ]
    },
    "version": {
      "type": "integer",
      "description": "The version these source files belong to."
    },
    "files": {
      "type": "object",
      "description": "Map of filename to content, the same shape publishArtifact accepts.\nText files (.md, .html, .css, .js, .json, ...) are inline UTF-8;\nbinary assets (.png, fonts, ...) are base64-encoded.\n",
      "properties": {
        "index.html": {
          "type": "string"
        },
        "index.md": {
          "type": "string"
        }
      },
      "additionalProperties": {
        "type": "string"
      }
    }
  }
}