{
  "openapi": "3.1.0",
  "info": {
    "title": "FoldLock runtime",
    "version": "0.3.0",
    "summary": "Algorithmic tether-word suppression. UTF-8 text fold. Not zip.",
    "description": "THIS IS: reversible tether-word suppression on UTF-8 text; 3-byte opcode per tether; exact restore of letters and bound ASCII spaces. THIS IS NOT: zip/zlib/gzip/DEFLATE/zstd/lzma; a claim every file shrinks; UL; EmployeeLock; TemporalLock; GodLock; a published bake-off. Ratios are receipts not trophies. Short strings can grow.",
    "license": {
      "name": "Apache-2.0",
      "identifier": "Apache-2.0"
    },
    "contact": {
      "name": "Aziel Eliab",
      "url": "https://github.com/AzielEliab/foldlock"
    }
  },
  "servers": [
    {
      "url": "https://foldlock-download-tracker.vibelock.workers.dev"
    }
  ],
  "paths": {
    "/v1/health": {
      "get": {
        "operationId": "foldlock_health",
        "summary": "Liveness. Does not increment download KV. Not zip.",
        "responses": {
          "200": {
            "description": "ok"
          }
        }
      }
    },
    "/v1/skill": {
      "get": {
        "operationId": "foldlock_skill",
        "summary": "Return FoldLock skill markdown. Does not increment download KV.",
        "responses": {
          "200": {
            "description": "text/markdown"
          }
        }
      }
    },
    "/v1/fold-preview": {
      "post": {
        "operationId": "foldlock_fold-preview",
        "summary": "Small UTF-8 text in, receipt + FLD3 base64 out. Cap ~8KB. Not zip.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              },
              "example": {
                "text": "the cat and the dog"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "receipt + b64"
          }
        }
      }
    },
    "/v1/unfold-preview": {
      "post": {
        "operationId": "foldlock_unfold-preview",
        "summary": "FLD3 base64 in, verified restore or error. Not zip.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "verified restore"
          }
        }
      }
    }
  }
}