{
  "openapi": "3.1.0",
  "info": {
    "title": "ToolMint Dependency Migration",
    "version": "0.1.0",
    "description": "npm/PyPI upgrade delta: curated playbooks + changelog/release heuristics. Pay per call with USDC on Base via x402.",
    "x-guidance": "Use GET /delta?eco=npm&name=react&from=17.0.2&to=18.2.0 or GET /delta/{eco}/{name}?from=&to=. Free playbook list: GET /playbooks. Unpaid paid-routes receive HTTP 402 (USDC on Base). Free: /, /health, /playbooks, /openapi.json, /.well-known/x402.",
    "contact": {
      "email": "toolmint.dev@gmail.com",
      "name": "ToolMint",
      "url": "https://toolmint.toolmint.workers.dev"
    },
    "x-homepage": "https://toolmint.toolmint.workers.dev"
  },
  "paths": {
    "/health": {
      "get": {
        "operationId": "health",
        "summary": "Liveness",
        "security": [],
        "responses": {
          "200": {
            "description": "ok"
          }
        }
      }
    },
    "/playbooks": {
      "get": {
        "operationId": "list_playbooks",
        "summary": "Curated playbook package list",
        "security": [],
        "responses": {
          "200": {
            "description": "ok"
          }
        }
      }
    },
    "/delta": {
      "get": {
        "operationId": "dep_migration_delta",
        "summary": "Migration delta for a package upgrade",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.050000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ],
          "network": "eip155:8453",
          "payTo": "0xfbF7413bcB3a604936775C96FDbe0b0C9c9E37F5",
          "asset": "USDC",
          "scheme": "exact",
          "amountAtomic": "50000"
        },
        "parameters": [
          {
            "name": "eco",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "npm",
                "pypi"
              ]
            }
          },
          {
            "name": "name",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Delta JSON"
          },
          "402": {
            "description": "Payment Required"
          }
        }
      }
    },
    "/delta/{eco}/{name}": {
      "get": {
        "operationId": "dep_migration_delta_path",
        "summary": "Migration delta by path",
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.050000"
          },
          "protocols": [
            {
              "x402": {}
            }
          ],
          "network": "eip155:8453",
          "payTo": "0xfbF7413bcB3a604936775C96FDbe0b0C9c9E37F5",
          "asset": "USDC",
          "scheme": "exact",
          "amountAtomic": "50000"
        },
        "parameters": [
          {
            "name": "eco",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "npm",
                "pypi"
              ]
            }
          },
          {
            "name": "name",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Delta JSON"
          },
          "402": {
            "description": "Payment Required"
          }
        }
      }
    }
  }
}