{
  "openapi": "3.1.0",
  "info": {
    "title": "Marek Malinowski Portfolio & Workshop Inquiry API",
    "version": "1.0.0",
    "description": "API for programmatic inquiries, executive workshop booking, and stage speaking availability for Marek Malinowski.",
    "contact": {
      "name": "Marek Malinowski",
      "email": "marek@meetmarek.com",
      "url": "https://meetmarek.com"
    }
  },
  "servers": [
    {
      "url": "https://meetmarek.com",
      "description": "Production Server"
    }
  ],
  "paths": {
    "/api/status": {
      "get": {
        "summary": "Service health and discovery status",
        "operationId": "getServiceStatus",
        "responses": {
          "200": {
            "description": "Service is operational and agent ready",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StatusResponse"
                }
              }
            }
          }
        }
      }
    },
    "/api/inquiries": {
      "post": {
        "summary": "Submit booking inquiry for workshops, speaking, or MC",
        "operationId": "submitInquiry",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InquiryRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Inquiry received successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InquiryResponse"
                }
              }
            }
          },
          "400": {
            "description": "Validation error"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "StatusResponse": {
        "type": "object",
        "properties": {
          "status": { "type": "string", "example": "ok" },
          "version": { "type": "string", "example": "1.0.0" },
          "agentReady": { "type": "boolean", "example": true },
          "endpoints": {
            "type": "object",
            "properties": {
              "apiCatalog": { "type": "string", "example": "/.well-known/api-catalog" },
              "aiCatalog": { "type": "string", "example": "/.well-known/ai-catalog.json" },
              "mcpCard": { "type": "string", "example": "/.well-known/mcp/server-card.json" }
            }
          }
        }
      },
      "InquiryRequest": {
        "type": "object",
        "required": ["name", "email", "service", "message"],
        "properties": {
          "name": { "type": "string", "description": "Full name of the organizer" },
          "email": { "type": "string", "format": "email", "description": "Work email address" },
          "service": {
            "type": "string",
            "enum": ["workshop", "mc", "coaching", "remarkable", "custom"],
            "description": "Service format requested"
          },
          "message": { "type": "string", "description": "Session details, target dates, and audience size" }
        }
      },
      "InquiryResponse": {
        "type": "object",
        "properties": {
          "success": { "type": "boolean", "example": true },
          "message": { "type": "string", "example": "Inquiry received. Marek will respond within 24 hours." }
        }
      }
    }
  }
}
