youraitools-api / tree / aiax-src/pr-pkgguard-package.json ยท raw (this view has old GitHub links rewritten for the mirror; raw is byte-exact)
{
 "x402Version": 2,
 "error": "Payment required",
 "resource": {
  "url": "https://api.youraitools.co/pkgguard/v1/package",
  "description": "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.",
  "mimeType": "application/json",
  "serviceName": "PkgGuard by AgentGate",
  "tags": [
   "security",
   "dependencies",
   "vulnerability-scan",
   "supply-chain",
   "malware"
  ],
  "iconUrl": "https://agentgate-source.pages.dev/icons/pkgguard.png"
 },
 "accepts": [
  {
   "scheme": "exact",
   "network": "eip155:8453",
   "amount": "1000",
   "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
   "payTo": "0x3c1A1E01e790Cd326495631B3b38Bd7068F08d6F",
   "maxTimeoutSeconds": 120,
   "extra": {
    "name": "USD Coin",
    "version": "2"
   }
  }
 ],
 "extensions": {
  "bazaar": {
   "info": {
    "input": {
     "type": "http",
     "queryParams": {
      "ecosystem": "npm",
      "name": "lodash",
      "version": "4.17.15"
     },
     "method": "GET"
    },
    "output": {
     "type": "json",
     "example": {
      "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."
     }
    }
   },
   "schema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
     "input": {
      "type": "object",
      "properties": {
       "type": {
        "type": "string",
        "const": "http"
       },
       "method": {
        "type": "string",
        "enum": [
         "GET"
        ]
       },
       "queryParams": {
        "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"
        ]
       }
      },
      "required": [
       "type",
       "method"
      ],
      "additionalProperties": false
     },
     "output": {
      "type": "object",
      "properties": {
       "type": {
        "type": "string"
       },
       "example": {
        "type": "object"
       }
      },
      "required": [
       "type"
      ]
     }
    },
    "required": [
     "input"
    ]
   }
  }
 }
}

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