{
  "openapi": "3.1.0",
  "info": {
    "title": "Tidy Mac public API",
    "version": "1.0.0",
    "description": "Read-only facts about Tidy Mac for assistants and agents. No authentication, no API key. There is no write API: buying, licences and app downloads happen on the website.",
    "contact": {
      "email": "hello@tidymac.space",
      "url": "https://tidymac.space/contact/"
    }
  },
  "servers": [
    {
      "url": "https://tidymac.space"
    }
  ],
  "paths": {
    "/ai.json": {
      "get": {
        "operationId": "getProductSnapshot",
        "summary": "Product facts: what Tidy Mac does, price, platform, latest version and key links",
        "responses": {
          "200": {
            "description": "Snapshot",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    },
    "/download/latest.json": {
      "get": {
        "operationId": "getLatestRelease",
        "summary": "The latest version of the app",
        "responses": {
          "200": {
            "description": "Latest release",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "type": "string",
                      "example": "2.2.0"
                    },
                    "date": {
                      "type": "string",
                      "format": "date"
                    },
                    "size": {
                      "type": "integer",
                      "description": "DMG size in bytes"
                    },
                    "sha256": {
                      "type": "string"
                    },
                    "notes": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/releases.json": {
      "get": {
        "operationId": "listReleases",
        "summary": "Every release, newest first",
        "responses": {
          "200": {
            "description": "Releases",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "version": {
                        "type": "string",
                        "example": "2.2.0"
                      },
                      "date": {
                        "type": "string",
                        "format": "date"
                      },
                      "size": {
                        "type": "integer",
                        "description": "DMG size in bytes"
                      },
                      "sha256": {
                        "type": "string"
                      },
                      "build": {
                        "type": "string"
                      },
                      "notes": {
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/{page}/index.md": {
      "get": {
        "operationId": "getPageMarkdown",
        "summary": "Markdown version of any page (also served for Accept: text/markdown). The list is at /catalog.md.",
        "parameters": [
          {
            "name": "page",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "learn/what-is-system-data-on-mac"
          }
        ],
        "responses": {
          "200": {
            "description": "Markdown with YAML front matter",
            "content": {
              "text/markdown": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    }
  }
}