{
  "openapi": "3.1.0",
  "info": {
    "title": "STAKR.space public directory",
    "version": "0.2.0",
    "description": "Read-only published operator records and evidence. No authentication, live telemetry or paid RPC is provided.",
    "contact": {
      "name": "STAKR.space",
      "email": "welcome@stakr.space",
      "url": "https://stakr.space/contact/"
    }
  },
  "servers": [
    {
      "url": "https://stakr.space"
    }
  ],
  "paths": {
    "/data/networks.json": {
      "get": {
        "operationId": "listNetworks",
        "summary": "Read the directory snapshot",
        "responses": {
          "200": {
            "description": "Published records, not live operation data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Directory"
                }
              }
            }
          }
        }
      }
    },
    "/data/networks/{slug}.json": {
      "get": {
        "operationId": "getNetwork",
        "summary": "Read one network record",
        "parameters": [
          {
            "name": "slug",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "solana",
                "ethereum",
                "symbiotic",
                "eigenlayer",
                "monad",
                "hyperliquid",
                "cosmoshub",
                "fermah",
                "interfold",
                "aztec",
                "marlin",
                "symbiosis",
                "canton",
                "octra"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Published network record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Network"
                }
              }
            }
          },
          "404": {
            "description": "Unknown network"
          }
        }
      }
    },
    "/data/evidence.json": {
      "get": {
        "operationId": "getEvidence",
        "summary": "Read evidence scope and source URLs",
        "responses": {
          "200": {
            "description": "Evidence ledger",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "reviewedAt",
                    "publisher",
                    "records"
                  ],
                  "properties": {
                    "reviewedAt": {
                      "type": "string",
                      "format": "date"
                    },
                    "publisher": {
                      "type": "string"
                    },
                    "records": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "network",
                          "source",
                          "resource",
                          "scope"
                        ]
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/data/capabilities.json": {
      "get": {
        "operationId": "getCapabilities",
        "summary": "Read supported and unavailable website capabilities",
        "responses": {
          "200": {
            "description": "Capability inventory",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "version",
                    "readOnly",
                    "capabilities",
                    "unavailable"
                  ]
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Network": {
        "type": "object",
        "required": [
          "slug",
          "name",
          "role",
          "category",
          "source",
          "status",
          "environment",
          "reviewedAt",
          "url",
          "paidRpcAvailable",
          "telemetry"
        ],
        "properties": {
          "slug": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "role": {
            "type": "string"
          },
          "category": {
            "type": "string",
            "enum": [
              "Staking",
              "Restaking",
              "Compute"
            ]
          },
          "source": {
            "type": "string",
            "format": "uri"
          },
          "evidenceSource": {
            "type": "string",
            "format": "uri"
          },
          "official": {
            "type": "string",
            "format": "uri"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "logo": {
            "type": "string",
            "format": "uri"
          },
          "id": {
            "type": "string"
          },
          "status": {
            "type": "string"
          },
          "environment": {
            "type": "string"
          },
          "reviewedAt": {
            "type": "string",
            "format": "date"
          },
          "paidRpcAvailable": {
            "const": false
          },
          "telemetry": {
            "type": "null"
          }
        }
      },
      "Directory": {
        "type": "object",
        "required": [
          "version",
          "reviewedAt",
          "paidRpcAvailable",
          "networks"
        ],
        "properties": {
          "version": {
            "type": "string"
          },
          "reviewedAt": {
            "type": "string",
            "format": "date"
          },
          "paidRpcAvailable": {
            "const": false
          },
          "networks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Network"
            }
          }
        }
      }
    }
  }
}