{
  "openapi": "3.1.0",
  "info": {
    "title": "WhistleLock runtime",
    "version": "0.1.0",
    "summary": "Local drop ledger preview. Not a mailer. Hosted never holds whistle files.",
    "description": "THIS IS: local directory store + TemporalLock-shaped rows + local dead-man copy + optional refresh of an operator-supplied source_url at verify. THIS IS NOT: rotating encrypted identity mailbox; IP-masking/proxy; mixnet/anonymous relay; boot scraper of inboxes; a public website; UL; FoldLock; EmployeeLock; GodLock; legal advice. Hosted API never holds whistle files. Not a mailer.",
    "license": {
      "name": "Apache-2.0",
      "identifier": "Apache-2.0"
    },
    "contact": {
      "name": "Aziel Eliab",
      "url": "https://github.com/AzielEliab/whistlelock"
    }
  },
  "servers": [
    {
      "url": "https://whistlelock-download-tracker.vibelock.workers.dev"
    }
  ],
  "paths": {
    "/v1/health": {
      "get": {
        "operationId": "whistlelock_health",
        "summary": "Liveness. Does not increment download KV. Hosted never holds whistle files.",
        "responses": {
          "200": {
            "description": "ok"
          }
        }
      }
    },
    "/v1/hash-preview": {
      "post": {
        "operationId": "whistlelock_hash-preview",
        "summary": "SHA-256 of posted bytes. Not stored. Hosted never holds whistle files.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              },
              "example": {
                "text": "sample drop"
              }
            },
            "application/octet-stream": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "sha256"
          }
        }
      }
    },
    "/v1/canon-preview": {
      "post": {
        "operationId": "whistlelock_canon-preview",
        "summary": "Hash a proposed ledger row. Not stored. Not a mailer.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object"
              },
              "example": {
                "summary": "sample drop",
                "kind": "drop",
                "prev_hash": "0000000000000000000000000000000000000000000000000000000000000000"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "canonical + row_hash"
          }
        }
      }
    },
    "/v1/skill": {
      "get": {
        "operationId": "whistlelock_skill",
        "summary": "Return WhistleLock skill markdown. Does not increment download KV.",
        "responses": {
          "200": {
            "description": "markdown"
          }
        }
      }
    }
  }
}