{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/autorfp-ai/json-schema/autorfp-ai-site-identity-schema.json",
  "title": "SiteIdentity",
  "x-generated": "2026-12-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/autorfp-ai-openapi.json#/components/schemas/SiteIdentity",
  "type": "object",
  "required": [
    "name",
    "legalName",
    "description",
    "documentation",
    "openapi",
    "mcp",
    "access"
  ],
  "properties": {
    "name": {
      "type": "string"
    },
    "legalName": {
      "type": "string"
    },
    "description": {
      "type": "string"
    },
    "documentation": {
      "type": "string",
      "format": "uri"
    },
    "openapi": {
      "type": "string",
      "format": "uri"
    },
    "openapiAliases": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uri"
      }
    },
    "llms": {
      "type": "string",
      "format": "uri"
    },
    "sitemap": {
      "type": "string",
      "format": "uri"
    },
    "apiCatalog": {
      "type": "string",
      "format": "uri"
    },
    "auth": {
      "type": "string",
      "format": "uri"
    },
    "mcp": {
      "type": "object",
      "required": [
        "transport",
        "endpoint",
        "discovery",
        "scopes"
      ],
      "properties": {
        "transport": {
          "type": "string",
          "const": "streamable-http"
        },
        "endpoint": {
          "type": "string",
          "format": "uri"
        },
        "discovery": {
          "type": "string",
          "format": "uri"
        },
        "scopes": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "access": {
      "type": "object",
      "required": [
        "publicDiscovery",
        "workspaceMcp"
      ],
      "properties": {
        "publicDiscovery": {
          "type": "string",
          "const": "no_credentials"
        },
        "workspaceMcp": {
          "type": "string",
          "const": "oauth2_authorization_code_pkce"
        },
        "trial": {
          "type": "object",
          "properties": {
            "kind": {
              "type": "string"
            },
            "documentation": {
              "type": "string",
              "format": "uri"
            }
          }
        }
      }
    }
  }
}