{
    "openapi": "3.1.0",
    "info": {
        "title": "Eclat AI Commerce Discovery",
        "version": "1.0.15",
        "description": "Public, read-only AI discovery endpoints for the WooCommerce catalog."
    },
    "servers": [
        {
            "url": "https://www.eclat.ro"
        }
    ],
    "paths": {
        "/llms.txt": {
            "get": {
                "summary": "AI-oriented site summary in Markdown.",
                "operationId": "getLlmsTxt",
                "responses": {
                    "200": {
                        "description": "Markdown discovery document.",
                        "content": {
                            "text/markdown": {
                                "schema": {
                                    "type": "string"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/ai-products.json": {
            "get": {
                "summary": "Public AI-readable WooCommerce product catalog.",
                "operationId": "getAiProducts",
                "responses": {
                    "200": {
                        "description": "Product catalog with public prices, stock status and product URLs.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object",
                                    "properties": {
                                        "site": {
                                            "type": "string"
                                        },
                                        "home_url": {
                                            "type": "string",
                                            "format": "uri"
                                        },
                                        "generated_at": {
                                            "type": "string",
                                            "format": "date-time"
                                        },
                                        "products": {
                                            "type": "array",
                                            "items": {
                                                "type": "object"
                                            }
                                        }
                                    },
                                    "required": [
                                        "site",
                                        "home_url",
                                        "generated_at",
                                        "products"
                                    ]
                                }
                            }
                        }
                    }
                }
            }
        },
        "/.well-known/ai-agent.json": {
            "get": {
                "summary": "AI agent card for this WooCommerce store.",
                "operationId": "getAiAgentCard",
                "responses": {
                    "200": {
                        "description": "Agent card with discovery links, commerce capabilities and safe-use policies.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/.well-known/mcp.json": {
            "get": {
                "summary": "MCP discovery document.",
                "operationId": "getMcpDiscovery",
                "responses": {
                    "200": {
                        "description": "MCP endpoint, OAuth metadata and safe public resources.",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "type": "object"
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}