{
  "openapi": "3.1.0",
  "info": {
    "title": "Olga Richer Real Estate AI Gateway",
    "version": "0.1",
    "description": "Experimental observation-only machine interface for real-estate enquiries in Ottawa, Ontario, Canada. HTTP 202 means a request was recorded, not that any real-estate action was performed."
  },
  "servers": [
    {
      "url": "https://olgaricher.com",
      "description": "Discovered via olgaricher.com"
    }
  ],
  "paths": {
    "/robots.txt": {
      "get": {
        "operationId": "getRobots",
        "summary": "Crawler discovery policy",
        "responses": {
          "200": {
            "description": "robots.txt",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/llms.txt": {
      "get": {
        "operationId": "getLlmsContext",
        "summary": "Machine-readable service context",
        "responses": {
          "200": {
            "description": "llms.txt context",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/sitemap.xml": {
      "get": {
        "operationId": "getSitemap",
        "summary": "Discovery sitemap",
        "responses": {
          "200": {
            "description": "XML sitemap",
            "content": {
              "application/xml": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/ai/protocol.md": {
      "get": {
        "operationId": "getAiProtocol",
        "summary": "Human and machine-readable Cabbit protocol description",
        "responses": {
          "200": {
            "description": "Protocol documentation",
            "content": {
              "text/markdown": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    },
    "/ai/openapi.json": {
      "get": {
        "operationId": "getOpenApi",
        "summary": "OpenAPI description of this interface",
        "responses": {
          "200": {
            "description": "OpenAPI document"
          }
        }
      }
    },
    "/ai/v1/capabilities": {
      "get": {
        "operationId": "getCapabilities",
        "summary": "Describe currently supported Cabbit AI capabilities",
        "responses": {
          "200": {
            "description": "Capability description",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/ai/v1/request": {
      "post": {
        "operationId": "submitRealEstateRequest",
        "summary": "Submit an observation-only real-estate request",
        "description": "Records a structured request for analysis and possible human follow-up. This endpoint does not book, negotiate, sign, grant property access, or execute a transaction.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": true,
                "properties": {
                  "protocol": {
                    "type": "string"
                  },
                  "request_id": {
                    "type": "string"
                  },
                  "intent": {
                    "type": "string",
                    "enum": [
                      "buyer_search",
                      "seller_inquiry",
                      "property_inquiry",
                      "showing_request",
                      "consultation_request",
                      "relocation_inquiry",
                      "investment_inquiry",
                      "general_question",
                      "human_handoff"
                    ]
                  },
                  "agent": {
                    "type": "object",
                    "additionalProperties": true
                  },
                  "subject": {
                    "type": "object",
                    "additionalProperties": true
                  },
                  "user": {
                    "type": "object",
                    "additionalProperties": true
                  },
                  "preferences": {
                    "type": "object",
                    "additionalProperties": true
                  },
                  "message": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Request recorded; no real-estate action executed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "accepted": {
                      "type": "boolean",
                      "const": true
                    },
                    "protocol": {
                      "type": "string"
                    },
                    "mode": {
                      "type": "string",
                      "const": "observation-only"
                    },
                    "cabbit_request_id": {
                      "type": "string"
                    },
                    "received_intent": {
                      "type": "string"
                    },
                    "action_executed": {
                      "type": "boolean",
                      "const": false
                    }
                  },
                  "required": [
                    "accepted",
                    "mode",
                    "cabbit_request_id",
                    "action_executed"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid JSON request"
          },
          "413": {
            "description": "Request body too large"
          },
          "415": {
            "description": "Content type not supported"
          },
          "503": {
            "description": "Request could not be confirmed as recorded"
          }
        }
      }
    }
  }
}