youraitools-api / tree / public/aiax/sections/pkgguard_package.json ยท raw (this view has old GitHub links rewritten for the mirror; raw is byte-exact)
{
 "aiax_version": "0.1",
 "section_id": "pkgguard_package",
 "purpose": "PkgGuard: Is this package version safe to install? Known vulnerabilities (CVE/GHSA ids, severity, CVSS score, fixed-in versions) and malicious-package flags for one npm, PyPI, Go, crates.io, Packagist, RubyGems, Maven or NuGet package version, from OSV.dev.",
 "inputs": {
  "type": "object",
  "properties": {
   "ecosystem": {
    "type": "string",
    "description": "One of npm, PyPI, Go, crates.io, Packagist, RubyGems, Maven, NuGet, Pub, Hex (default npm)"
   },
   "name": {
    "type": "string",
    "description": "Package name, e.g. lodash"
   },
   "version": {
    "type": "string",
    "description": "Exact version, e.g. 4.17.15"
   }
  },
  "required": [
   "name",
   "version"
  ]
 },
 "outputs": {
  "type": "object",
  "properties": {
   "tier": {
    "type": "string"
   },
   "package_count": {
    "type": "integer"
   },
   "scanned_count": {
    "type": "integer"
   },
   "unpinned_count": {
    "type": "integer"
   },
   "vulnerable_count": {
    "type": "integer"
   },
   "malicious_count": {
    "type": "integer"
   },
   "advisory_count": {
    "type": "integer"
   },
   "verdict": {
    "type": "string"
   },
   "highest_severity": {
    "type": "string"
   },
   "packages": {
    "type": "array",
    "items": {
     "type": "object",
     "properties": {
      "ecosystem": {
       "type": "string"
      },
      "name": {
       "type": "string"
      },
      "version": {
       "type": "string"
      },
      "version_source": {
       "type": "string"
      },
      "malicious": {
       "type": "boolean"
      },
      "highest_severity": {
       "type": "string"
      },
      "vuln_count": {
       "type": "integer"
      },
      "vulns": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "id": {
          "type": "string"
         },
         "malicious": {
          "type": "boolean"
         },
         "severity": {
          "type": "string"
         },
         "cvss_score": {
          "type": "number"
         },
         "summary": {
          "type": "string"
         },
         "aliases": {
          "type": "array",
          "items": {
           "type": "string"
          }
         },
         "fixed_in": {
          "type": "array",
          "items": {
           "type": "string"
          }
         },
         "url": {
          "type": "string"
         }
        }
       }
      }
     }
    }
   },
   "source": {
    "type": "object",
    "properties": {
     "name": {
      "type": "string"
     }
    }
   },
   "disclaimer": {
    "type": "string"
   }
  }
 },
 "pricing": {
  "model": "per_call",
  "amount": "0.001",
  "currency": "USDC",
  "rail": "x402"
 },
 "examples": [
  {
   "description": "GET /pkgguard/v1/package, paid over x402 (USDC on Base); an unpaid call answers 402 with the terms.",
   "request": {
    "method": "GET",
    "url": "https://api.youraitools.co/pkgguard/v1/package",
    "query": {
     "ecosystem": "npm",
     "name": "lodash",
     "version": "4.17.15"
    }
   },
   "response": {
    "tier": "full",
    "package_count": 1,
    "scanned_count": 1,
    "unpinned_count": 0,
    "vulnerable_count": 1,
    "malicious_count": 0,
    "advisory_count": 6,
    "verdict": "vulnerable",
    "highest_severity": "HIGH",
    "packages": [
     {
      "ecosystem": "npm",
      "name": "lodash",
      "version": "4.17.15",
      "version_source": "exact",
      "malicious": false,
      "highest_severity": "HIGH",
      "vuln_count": 6,
      "vulns": [
       {
        "id": "GHSA-35jh-r3h4-6jhm",
        "malicious": false,
        "severity": "HIGH",
        "cvss_score": 7.2,
        "summary": "Command Injection in lodash",
        "aliases": [
         "CVE-2021-23337"
        ],
        "fixed_in": [
         "4.17.21"
        ],
        "url": "https://osv.dev/vulnerability/GHSA-35jh-r3h4-6jhm"
       }
      ]
     }
    ],
    "source": {
     "name": "OSV.dev"
    },
    "disclaimer": "Informational: lists published advisories from OSV.dev for the versions given."
   }
  }
 ],
 "pact_mandate_template": null,
 "extensions": {
  "youraitools": {
   "endpoint": "https://api.youraitools.co/pkgguard/v1/package",
   "network": "eip155:8453",
   "x402_versions": [
    2,
    1
   ],
   "mcp": "https://api.youraitools.co/pkgguard/mcp",
   "openapi": "https://api.youraitools.co/pkgguard/openapi.json"
  }
 }
}

agentgate-source: code mirror on Cloudflare Pages. All repos