{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/namemy-app/json-schema/namemy-app-landing-page-output-schema.json",
  "title": "LandingPageOutput",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/namemy-app-openapi.yml#/components/schemas/LandingPageOutput",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "ready",
        "deployed",
        "failed"
      ]
    },
    "name": {
      "type": "string"
    },
    "industry": {
      "type": "string"
    },
    "files": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "path",
          "content"
        ],
        "properties": {
          "path": {
            "type": "string",
            "description": "Relative file path inside the generated site bundle"
          },
          "content": {
            "type": "string",
            "description": "File contents (UTF-8 text for HTML/CSS/JS)"
          }
        }
      }
    },
    "config": {
      "type": "object",
      "description": "Declarative landing-page config consumed by the deployer",
      "properties": {
        "theme": {
          "type": "string",
          "enum": [
            "default",
            "dark",
            "minimal"
          ]
        },
        "hero": {
          "type": "object",
          "properties": {
            "headline": {
              "type": "string"
            },
            "subheadline": {
              "type": "string"
            },
            "primaryCta": {
              "type": "string"
            },
            "primaryCtaUrl": {
              "type": "string"
            }
          }
        },
        "sections": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "hero",
                  "features",
                  "pricing",
                  "testimonials",
                  "faq",
                  "cta",
                  "footer"
                ]
              },
              "heading": {
                "type": "string"
              },
              "body": {
                "type": "string"
              }
            }
          }
        },
        "seo": {
          "type": "object",
          "properties": {
            "title": {
              "type": "string"
            },
            "description": {
              "type": "string"
            },
            "canonical": {
              "type": "string"
            }
          }
        }
      }
    },
    "preview": {
      "type": "string",
      "description": "Preview URL for the generated page (pre-deploy)"
    },
    "deployUrl": {
      "type": "string",
      "description": "Endpoint to POST to in order to deploy: /api/v1/landing-pages/{id}/deploy"
    }
  }
}