{
  "openapi": "3.1.0",
  "info": {
    "title": "RungLab Developer Intelligence API",
    "version": "1.0.0",
    "description": "Zero-key Developer Intelligence gateway unifying Agentic Web & AEO/DNS audits, OpenAPI 2.0/3.0/3.1 breaking-change diffing and OWASP/AI token cost audits, OpenSSF/OSV/EPSS supply-chain risk scoring, W3C Web Baseline lookup, and ClearlyDefined license auditing.",
    "contact": {
      "name": "RungLab Support",
      "email": "support@runglab.dev",
      "url": "https://hub.runglab.dev"
    },
    "license": {
      "name": "MIT",
      "url": "https://opensource.org/licenses/MIT"
    }
  },
  "servers": [
    {
      "url": "https://hub.runglab.dev",
      "description": "RungLab RapidAPI Production Gateway"
    }
  ],
  "tags": [
    {
      "name": "Discovery",
      "description": "Public gateway metadata, health check, and OpenAPI schema."
    },
    {
      "name": "Agentic Web",
      "description": "A2A Agent Cards, MCP discovery, robots.txt AI matrix, DNS, and HTTP security headers."
    },
    {
      "name": "OpenAPI Governance",
      "description": "Breaking-change diffing, SemVer calculation, OWASP API Top 10 audit, and AI token cost estimation."
    },
    {
      "name": "Supply Chain",
      "description": "Parallel OSV.dev, deps.dev, OpenSSF Scorecard, and FIRST EPSS vulnerability intelligence."
    },
    {
      "name": "Ecosystem Standards",
      "description": "W3C/Chrome Web Platform Baseline and Linux Foundation ClearlyDefined license intelligence."
    }
  ],
  "security": [
    {
      "RapidAPIProxySecret": []
    },
    {
      "HubAdminBearer": []
    }
  ],
  "paths": {
    "/": {
      "get": {
        "operationId": "getGatewayIndex",
        "tags": [
          "Discovery"
        ],
        "summary": "Gateway catalog and endpoint index",
        "description": "Returns service metadata and available Developer Intelligence API endpoints.",
        "security": [],
        "responses": {
          "200": {
            "description": "Gateway metadata and endpoint directory",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayIndexResponse"
                }
              }
            }
          }
        }
      }
    },
    "/health": {
      "get": {
        "operationId": "getHealth",
        "tags": [
          "Discovery"
        ],
        "summary": "Service health probe",
        "description": "Returns gateway liveness status and version metadata without authentication.",
        "security": [],
        "responses": {
          "200": {
            "description": "Gateway is healthy",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HealthResponse"
                }
              }
            }
          }
        }
      }
    },
    "/openapi.json": {
      "get": {
        "operationId": "getOpenApiSpec",
        "tags": [
          "Discovery"
        ],
        "summary": "OpenAPI 3.1.0 schema document",
        "description": "Serves this complete OpenAPI 3.1.0 schema for RapidAPI Studio and SDK generators.",
        "security": [],
        "responses": {
          "200": {
            "description": "OpenAPI 3.1.0 JSON schema",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "additionalProperties": true
                }
              }
            }
          }
        }
      }
    },
    "/v1/agentic/audit": {
      "get": {
        "operationId": "auditAgenticDomain",
        "tags": [
          "Agentic Web"
        ],
        "summary": "Audit domain AEO, A2A Agent Card, MCP, DNS, and security headers",
        "description": "Audits a public domain for /.well-known/agent-card.json, MCP server discovery, /llms.txt, RFC 9309 12-bot AI crawler matrix, SPF/DMARC/MX/DKIM/CAA via Cloudflare DoH, and HTTP security headers.",
        "security": [
          {
            "RapidAPIProxySecret": []
          },
          {
            "HubAdminBearer": []
          }
        ],
        "parameters": [
          {
            "name": "domain",
            "in": "query",
            "required": true,
            "description": "Public domain name or URL to audit (e.g. stripe.com).",
            "schema": {
              "type": "string",
              "minLength": 3,
              "maxLength": 253,
              "format": "hostname"
            },
            "example": "stripe.com"
          },
          {
            "name": "refresh",
            "in": "query",
            "required": false,
            "description": "Set to 1 to bypass edge cache after the 60-second cooldown.",
            "schema": {
              "type": "string",
              "enum": [
                "0",
                "1"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Complete agentic readiness, DNS, and web security audit report",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AgenticAuditResponse"
                }
              }
            }
          },
          "400": {
            "description": "Missing or invalid domain parameter",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Invalid or missing RapidAPI proxy secret",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "Blocked by SSRF protection (private/internal IP or disallowed target)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "502": {
            "description": "Upstream audit error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/openapi/diff": {
      "post": {
        "operationId": "diffOpenApiSpecs",
        "tags": [
          "OpenAPI Governance"
        ],
        "summary": "Diff two OpenAPI 2.0/3.0/3.1 specs for breaking changes and token delta",
        "description": "Compares inline JSON or YAML OpenAPI specs to compute breaking changes, security regressions, recommended SemVer bump, OWASP API Top 10 audit score, and AI/MCP tool token cost delta (512 KB body cap).",
        "security": [
          {
            "RapidAPIProxySecret": []
          },
          {
            "HubAdminBearer": []
          }
        ],
        "requestBody": {
          "required": true,
          "description": "Inline base and target OpenAPI specifications plus optional policyMode.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OpenApiDiffRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OpenAPI breaking-change diff, SemVer bump, OWASP audit, and AI token cost simulation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenApiAnalysisResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid JSON body or malformed OpenAPI specification",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Invalid or missing RapidAPI proxy secret",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Payload exceeds 512 KB limit",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "YAML bomb or unsafe structure rejected",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/openapi/audit": {
      "post": {
        "operationId": "auditOpenApiSpec",
        "tags": [
          "OpenAPI Governance"
        ],
        "summary": "Audit an OpenAPI 2.0/3.0/3.1 spec for OWASP API security and AI token cost",
        "description": "Evaluates an inline JSON or YAML OpenAPI spec for OWASP API Top 10 security posture, schema rigor, contract completeness, and AI/MCP tool token cost estimation (512 KB body cap).",
        "security": [
          {
            "RapidAPIProxySecret": []
          },
          {
            "HubAdminBearer": []
          }
        ],
        "requestBody": {
          "required": true,
          "description": "Inline OpenAPI specification and optional policyMode.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/OpenApiAuditRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OpenAPI OWASP API Top 10 score, findings, and AI token cost simulation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OpenApiAnalysisResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid JSON body or malformed OpenAPI specification",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Invalid or missing RapidAPI proxy secret",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Payload exceeds 512 KB limit",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "422": {
            "description": "YAML bomb or unsafe structure rejected",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/supply-chain/audit": {
      "post": {
        "operationId": "auditSupplyChain",
        "tags": [
          "Supply Chain"
        ],
        "summary": "Audit OSS packages and GitHub repositories via OSV, deps.dev, Scorecard, and EPSS",
        "description": "Queries Google OSV.dev, Google deps.dev, OpenSSF Scorecard, and FIRST EPSS in parallel for up to 15 packages and/or a GitHub repository, returning a unified risk score, A-F grade, CVEs with EPSS scores, and Scorecard breakdown.",
        "security": [
          {
            "RapidAPIProxySecret": []
          },
          {
            "HubAdminBearer": []
          }
        ],
        "requestBody": {
          "required": true,
          "description": "Up to 15 packages and/or a GitHub repository (owner/repo).",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SupplyChainAuditRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Unified supply-chain risk score, CVEs with EPSS probabilities, and Scorecard breakdown",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SupplyChainAuditResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid package target, >15 packages, or invalid githubRepo",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Invalid or missing RapidAPI proxy secret",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "Request body exceeds 64 KB limit",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/web-baseline/search": {
      "get": {
        "operationId": "searchWebBaseline",
        "tags": [
          "Ecosystem Standards"
        ],
        "summary": "Search W3C/Chrome Web Platform Baseline feature support",
        "description": "Queries api.webstatus.dev/v1/features and returns normalized Baseline status, browser ship versions, Web Platform Tests interoperability scores, Chrome usage telemetry, and AI coding guidance.",
        "security": [
          {
            "RapidAPIProxySecret": []
          },
          {
            "HubAdminBearer": []
          }
        ],
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": true,
            "description": "WebStatus.dev search query (e.g. popover or baseline_status:widely).",
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 200
            },
            "example": "popover"
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Maximum number of features to return (1 to 20, default 10).",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 20,
              "default": 10
            },
            "example": 5
          }
        ],
        "responses": {
          "200": {
            "description": "Normalized Web Platform Baseline feature records",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WebBaselineSearchResponse"
                }
              }
            }
          },
          "400": {
            "description": "Missing query or invalid limit parameter",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Invalid or missing RapidAPI proxy secret",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "502": {
            "description": "WebStatus.dev upstream failure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    },
    "/v1/license/clearlydefined": {
      "get": {
        "operationId": "auditClearlyDefinedLicense",
        "tags": [
          "Ecosystem Standards"
        ],
        "summary": "Audit package license provenance and copyleft exposure via ClearlyDefined",
        "description": "Queries api.clearlydefined.io/definitions/{coords} and evaluates declared vs file-discovered licenses, hidden copyleft risks, attribution parties, and commercial-permissive compliance.",
        "security": [
          {
            "RapidAPIProxySecret": []
          },
          {
            "HubAdminBearer": []
          }
        ],
        "parameters": [
          {
            "name": "coords",
            "in": "query",
            "required": true,
            "description": "5-segment ClearlyDefined coordinates: type/provider/namespace/name/revision.",
            "schema": {
              "type": "string",
              "minLength": 9,
              "maxLength": 256
            },
            "example": "npm/npmjs/-/lodash/4.17.21"
          }
        ],
        "responses": {
          "200": {
            "description": "Normalized ClearlyDefined license provenance and copyleft risk verdict",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClearlyDefinedResponse"
                }
              }
            }
          },
          "400": {
            "description": "Missing or malformed ClearlyDefined coordinates",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "description": "Invalid or missing RapidAPI proxy secret",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "404": {
            "description": "ClearlyDefined definition not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "502": {
            "description": "ClearlyDefined upstream failure",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "RapidAPIProxySecret": {
        "type": "apiKey",
        "in": "header",
        "name": "X-RapidAPI-Proxy-Secret",
        "description": "Shared proxy secret injected by RapidAPI Hub when configured."
      },
      "HubAdminBearer": {
        "type": "http",
        "scheme": "bearer",
        "description": "Optional Bearer token for direct RungLab smoke tests when HUB_ADMIN_KEY is configured."
      }
    },
    "schemas": {
      "ErrorResponse": {
        "type": "object",
        "required": [
          "ok",
          "error",
          "message"
        ],
        "properties": {
          "ok": {
            "type": "boolean",
            "enum": [
              false
            ]
          },
          "error": {
            "type": "string",
            "maxLength": 64
          },
          "message": {
            "type": "string",
            "maxLength": 1000
          }
        }
      },
      "GatewayIndexResponse": {
        "type": "object",
        "required": [
          "ok",
          "service",
          "name",
          "version",
          "endpoints"
        ],
        "properties": {
          "ok": {
            "type": "boolean"
          },
          "service": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "version": {
            "type": "string"
          },
          "docs": {
            "type": "string"
          },
          "health": {
            "type": "string"
          },
          "endpoints": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "method",
                "path",
                "summary"
              ],
              "properties": {
                "method": {
                  "type": "string"
                },
                "path": {
                  "type": "string"
                },
                "summary": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "HealthResponse": {
        "type": "object",
        "required": [
          "ok",
          "status",
          "service",
          "version",
          "timestamp"
        ],
        "properties": {
          "ok": {
            "type": "boolean"
          },
          "status": {
            "type": "string",
            "enum": [
              "healthy"
            ]
          },
          "service": {
            "type": "string"
          },
          "version": {
            "type": "string"
          },
          "timestamp": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "AgenticAuditResponse": {
        "type": "object",
        "required": [
          "ok",
          "version",
          "domain",
          "auditedAt",
          "overallScore",
          "grade",
          "pillars",
          "aeo",
          "dns",
          "security",
          "findings"
        ],
        "properties": {
          "ok": {
            "type": "boolean"
          },
          "version": {
            "type": "string"
          },
          "domain": {
            "type": "string"
          },
          "auditedAt": {
            "type": "string",
            "format": "date-time"
          },
          "durationMs": {
            "type": "integer",
            "minimum": 0
          },
          "cached": {
            "type": "boolean"
          },
          "overallScore": {
            "type": "integer",
            "minimum": 0,
            "maximum": 100
          },
          "grade": {
            "type": "string",
            "enum": [
              "A+",
              "A",
              "A-",
              "B+",
              "B",
              "B-",
              "C+",
              "C",
              "D",
              "F"
            ]
          },
          "summary": {
            "type": "string"
          },
          "pillars": {
            "type": "object",
            "additionalProperties": true
          },
          "aeo": {
            "type": "object",
            "additionalProperties": true
          },
          "dns": {
            "type": "object",
            "additionalProperties": true
          },
          "security": {
            "type": "object",
            "additionalProperties": true
          },
          "findings": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          },
          "remediations": {
            "type": "object",
            "additionalProperties": true
          }
        }
      },
      "OpenApiAuditRequest": {
        "type": "object",
        "required": [
          "spec"
        ],
        "properties": {
          "spec": {
            "oneOf": [
              {
                "type": "string",
                "minLength": 2,
                "maxLength": 524288
              },
              {
                "type": "object",
                "additionalProperties": true
              }
            ],
            "description": "Inline OpenAPI 2.0/3.0/3.1 JSON or YAML string, or parsed OpenAPI object."
          },
          "policyMode": {
            "type": "string",
            "enum": [
              "balanced",
              "strict",
              "audit-only"
            ],
            "default": "balanced",
            "description": "Governance threshold preset."
          }
        }
      },
      "OpenApiDiffRequest": {
        "type": "object",
        "required": [
          "baseSpec",
          "targetSpec"
        ],
        "properties": {
          "baseSpec": {
            "oneOf": [
              {
                "type": "string",
                "minLength": 2,
                "maxLength": 524288
              },
              {
                "type": "object",
                "additionalProperties": true
              }
            ],
            "description": "Baseline OpenAPI 2.0/3.0/3.1 JSON/YAML string or object."
          },
          "targetSpec": {
            "oneOf": [
              {
                "type": "string",
                "minLength": 2,
                "maxLength": 524288
              },
              {
                "type": "object",
                "additionalProperties": true
              }
            ],
            "description": "Candidate target OpenAPI 2.0/3.0/3.1 JSON/YAML string or object."
          },
          "policyMode": {
            "type": "string",
            "enum": [
              "balanced",
              "strict",
              "audit-only"
            ],
            "default": "balanced",
            "description": "Governance threshold preset."
          }
        }
      },
      "OpenApiAnalysisResponse": {
        "type": "object",
        "required": [
          "ok",
          "mode",
          "auditScore",
          "auditGrade",
          "policyMode",
          "policyCompliant",
          "recommendedSemverBump",
          "pillarScores",
          "aiCostSimulation"
        ],
        "properties": {
          "ok": {
            "type": "boolean"
          },
          "mode": {
            "type": "string",
            "enum": [
              "audit",
              "diff"
            ]
          },
          "auditScore": {
            "type": "integer",
            "minimum": 0,
            "maximum": 100
          },
          "auditGrade": {
            "type": "string",
            "enum": [
              "A",
              "B",
              "C",
              "D",
              "F"
            ]
          },
          "policyMode": {
            "type": "string",
            "enum": [
              "balanced",
              "strict",
              "audit-only"
            ]
          },
          "policyCompliant": {
            "type": "boolean"
          },
          "policyReasons": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "hasBreakingChanges": {
            "type": "boolean"
          },
          "breakingChangeCount": {
            "type": "integer",
            "minimum": 0
          },
          "securityRegressionCount": {
            "type": "integer",
            "minimum": 0
          },
          "additiveChangeCount": {
            "type": "integer",
            "minimum": 0
          },
          "recommendedSemverBump": {
            "type": "string",
            "enum": [
              "major",
              "minor",
              "patch",
              "none"
            ]
          },
          "pillarScores": {
            "type": "object",
            "additionalProperties": true
          },
          "aiCostSimulation": {
            "type": "object",
            "additionalProperties": true
          },
          "diffSummary": {
            "type": [
              "object",
              "null"
            ],
            "additionalProperties": true
          },
          "findings": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          },
          "recommendations": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "SupplyChainPackageInput": {
        "type": "object",
        "required": [
          "ecosystem",
          "name"
        ],
        "properties": {
          "ecosystem": {
            "type": "string",
            "enum": [
              "npm",
              "pypi",
              "cargo",
              "go",
              "maven",
              "nuget"
            ],
            "description": "Package ecosystem identifier."
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "description": "Package name (e.g. lodash, org.apache.logging.log4j:log4j-core)."
          },
          "version": {
            "type": "string",
            "minLength": 1,
            "maxLength": 80,
            "description": "Optional package version; defaults to upstream default version."
          }
        }
      },
      "SupplyChainAuditRequest": {
        "type": "object",
        "properties": {
          "packages": {
            "type": "array",
            "maxItems": 15,
            "items": {
              "$ref": "#/components/schemas/SupplyChainPackageInput"
            },
            "description": "Up to 15 OSS packages to audit."
          },
          "githubRepo": {
            "type": "string",
            "maxLength": 150,
            "description": "Optional GitHub repository in owner/repo format."
          },
          "policyMode": {
            "type": "string",
            "enum": [
              "balanced",
              "strict",
              "audit-only"
            ],
            "default": "balanced",
            "description": "Supply-chain policy threshold preset."
          }
        }
      },
      "SupplyChainAuditResponse": {
        "type": "object",
        "required": [
          "ok",
          "riskScore",
          "grade",
          "policyMode",
          "policyCompliant",
          "totals",
          "packages",
          "cves",
          "scorecards"
        ],
        "properties": {
          "ok": {
            "type": "boolean"
          },
          "riskScore": {
            "type": "integer",
            "minimum": 0,
            "maximum": 100
          },
          "grade": {
            "type": "string",
            "enum": [
              "A",
              "B",
              "C",
              "D",
              "F"
            ]
          },
          "policyMode": {
            "type": "string",
            "enum": [
              "balanced",
              "strict",
              "audit-only"
            ]
          },
          "policyCompliant": {
            "type": "boolean"
          },
          "policyReasons": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "summary": {
            "type": "string"
          },
          "totals": {
            "type": "object",
            "additionalProperties": true
          },
          "packages": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          },
          "cves": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          },
          "scorecards": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          },
          "diagnostics": {
            "type": "object",
            "additionalProperties": true
          },
          "auditedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "WebBaselineSearchResponse": {
        "type": "object",
        "required": [
          "ok",
          "query",
          "limit",
          "count",
          "features",
          "fetchedAt"
        ],
        "properties": {
          "ok": {
            "type": "boolean"
          },
          "query": {
            "type": "string"
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 20
          },
          "totalAvailable": {
            "type": [
              "integer",
              "null"
            ]
          },
          "count": {
            "type": "integer",
            "minimum": 0
          },
          "features": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          },
          "fetchedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "ClearlyDefinedResponse": {
        "type": "object",
        "required": [
          "ok",
          "coordinates",
          "ecosystem",
          "name",
          "revision",
          "definitionFound",
          "policyEvaluation",
          "fetchedAt"
        ],
        "properties": {
          "ok": {
            "type": "boolean"
          },
          "coordinates": {
            "type": "string"
          },
          "ecosystem": {
            "type": "string"
          },
          "provider": {
            "type": "string"
          },
          "namespace": {
            "type": [
              "string",
              "null"
            ]
          },
          "name": {
            "type": "string"
          },
          "revision": {
            "type": "string"
          },
          "definitionFound": {
            "type": "boolean"
          },
          "declaredLicense": {
            "type": [
              "string",
              "null"
            ]
          },
          "discoveredLicenses": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "attributionParties": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "filesCount": {
            "type": [
              "integer",
              "null"
            ]
          },
          "scores": {
            "type": "object",
            "additionalProperties": true
          },
          "urls": {
            "type": "object",
            "additionalProperties": true
          },
          "policyEvaluation": {
            "type": "object",
            "additionalProperties": true
          },
          "fetchedAt": {
            "type": "string",
            "format": "date-time"
          }
        }
      }
    }
  }
}