{
  "openapi": "3.1.0",
  "info": {
    "title": "Luwi Public Company Information API",
    "version": "1.1.0",
    "description": "Read-only public company, product, and service information for Luwi. This API does not provide project intake, account, payment, or product-system operations."
  },
  "servers": [
    {
      "url": "https://luwi.ae",
      "description": "Production"
    }
  ],
  "paths": {
    "/api/site.json": {
      "get": {
        "operationId": "getCompanyInformation",
        "summary": "Get public Luwi company, product, and service information",
        "responses": {
          "200": {
            "description": "Public company information",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CompanyInformation"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "CompanyInformation": {
        "type": "object",
        "required": [
          "name",
          "url",
          "contact",
          "products",
          "services"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "contact": {
            "type": "object"
          },
          "products": {
            "type": "array",
            "items": {
              "type": "object"
            }
          },
          "services": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Service"
            }
          }
        }
      },
      "Service": {
        "type": "object",
        "required": [
          "name",
          "url",
          "description",
          "pricing"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "description": {
            "type": "string"
          },
          "deliverable": {
            "type": "string"
          },
          "partner": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "url": {
                "type": "string",
                "format": "uri"
              }
            }
          },
          "pricing": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ServicePrice"
            }
          },
          "repeat_audits": {
            "type": "string"
          },
          "learn_more_url": {
            "type": "string",
            "format": "uri"
          },
          "sample_report_url": {
            "type": "string",
            "format": "uri"
          },
          "request": {
            "type": "object",
            "properties": {
              "label": {
                "type": "string"
              },
              "method": {
                "type": "string",
                "enum": [
                  "mx_audit_modal"
                ]
              },
              "url": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      },
      "ServicePrice": {
        "type": "object",
        "required": [
          "name",
          "amount",
          "currency",
          "unit"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "amount": {
            "type": "number",
            "minimum": 0
          },
          "currency": {
            "type": "string",
            "enum": [
              "USD"
            ]
          },
          "unit": {
            "type": "string"
          },
          "description": {
            "type": "string"
          }
        }
      }
    }
  }
}
