{
  "x402Version": 2,
  "id": 7283,
  "slug": "7283",
  "resource": "https://api.vrsai.tech/v1/capabilities/package_install_preflight",
  "description": "Check an exact npm or PyPI package version immediately before installation using current registry, vulnerability, malicious-package, withdrawal/deprecation, and verified provenance evidence. Returns ALLOW, REVIEW, BLOCK, or UNKNOWN with machine-readable reasons.",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x6746dFF7bDB1ED4940DBe50024795AD97CbA09Af",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "10000",
      "maxTimeoutSeconds": 60
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "EiJRESZjUCUufSjSb5iDmikXXeKa3C1gQwYCZR4xFocj",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "10000",
      "maxTimeoutSeconds": 60
    }
  ],
  "outputSchema": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "purl": "pkg:npm/%40colors/colors@1.5.0"
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "decision": "ALLOW",
            "evidence": [
              {
                "attempts": 1,
                "latency_ms": 120,
                "observed_at": "2026-08-26T00:00:00.000Z",
                "source": "npm_registry",
                "status": "OK"
              },
              {
                "attempts": 1,
                "latency_ms": 240,
                "observed_at": "2026-08-26T00:00:00.000Z",
                "source": "osv",
                "status": "OK"
              },
              {
                "attempts": 1,
                "latency_ms": 90,
                "observed_at": "2026-08-26T00:00:00.000Z",
                "source": "deps_dev",
                "status": "OK"
              }
            ],
            "input_fingerprint": "sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
            "observations": {
              "deps_dev": {
                "advisory_ids": [],
                "canonical_name": "@colors/colors",
                "canonical_version": "1.5.0",
                "licenses": [
                  "MIT"
                ]
              },
              "evidence_complete": true,
              "provenance": {
                "attestation_types": [],
                "expected_repository_match": "NOT_REQUESTED",
                "source_repositories": [],
                "verified": false
              },
              "registry": {
                "deprecated": false,
                "distribution_hashes": [],
                "exists": true,
                "install_scripts": [],
                "integrity": "sha512-fixture-integrity",
                "repository_metadata": {
                  "url": "https://github.com/Marak/colors.js",
                  "verified": false
                },
                "yanked": "NONE",
                "yanked_reasons": []
              },
              "vulnerabilities": {
                "families": [],
                "family_count": 0,
                "malicious_package_signal": false,
                "max_severity": "NONE",
                "raw_record_count": 0
              }
            },
            "observed_at": "2026-08-26T00:00:00.000Z",
            "package": {
              "ecosystem": "npm",
              "name": "@colors/colors",
              "purl": "pkg:npm/%40colors/colors@1.5.0",
              "version": "1.5.0"
            },
            "policy_version": "balanced-2026-08-26",
            "reason_codes": [
              "NO_BLOCKING_SIGNAL_OBSERVED"
            ],
            "unknowns": []
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    },
    "offer-receipt": {
      "info": {
        "offers": [
          {
            "acceptIndex": 0,
            "format": "jws",
            "signature": "eyJhbGciOiJFUzI1NiIsImtpZCI6ImRpZDp3ZWI6dnJzYWkudGVjaCNwcm9kdWN0aW9uLTIwMjYtMDgtMTkifQ.eyJhbW91bnQiOiIxMDAwMCIsImFzc2V0IjoiMHg4MzM1ODlmQ0Q2ZURiNkUwOGY0YzdDMzJENGY3MWI1NGJkQTAyOTEzIiwibmV0d29yayI6ImVpcDE1NTo4NDUzIiwicGF5VG8iOiIweDY3NDZkRkY3YkRCMUVENDk0MERCZTUwMDI0Nzk1QUQ5N0NiQTA5QWYiLCJyZXNvdXJjZVVybCI6Imh0dHBzOi8vYXBpLnZyc2FpLnRlY2gvdjEvY2FwYWJpbGl0aWVzL3BhY2thZ2VfaW5zdGFsbF9wcmVmbGlnaHQiLCJzY2hlbWUiOiJleGFjdCIsInZhbGlkVW50aWwiOjE3ODk2MjY1NDMsInZlcnNpb24iOjF9.0zUydVQ-YQ8mXh7L3j9rYf8rDwpPPQ9Smlxd-K0VIUyF9QCHnONlV79QBHZuHPv8fZp5h8Qf5PjtGWwRGZKHGg"
          },
          {
            "acceptIndex": 1,
            "format": "jws",
            "signature": "eyJhbGciOiJFUzI1NiIsImtpZCI6ImRpZDp3ZWI6dnJzYWkudGVjaCNwcm9kdWN0aW9uLTIwMjYtMDgtMTkifQ.eyJhbW91bnQiOiIxMDAwMCIsImFzc2V0IjoiRVBqRldkZDVBdWZxU1NxZU0ycU4xeHp5YmFwQzhHNHdFR0drWnd5VER0MXYiLCJuZXR3b3JrIjoic29sYW5hOjVleWt0NFVzRnY4UDhOSmRUUkVwWTF2enFLcVpLdmRwIiwicGF5VG8iOiJFaUpSRVNaalVDVXVmU2pTYjVpRG1pa1hYZUthM0MxZ1F3WUNaUjR4Rm9jaiIsInJlc291cmNlVXJsIjoiaHR0cHM6Ly9hcGkudnJzYWkudGVjaC92MS9jYXBhYmlsaXRpZXMvcGFja2FnZV9pbnN0YWxsX3ByZWZsaWdodCIsInNjaGVtZSI6ImV4YWN0IiwidmFsaWRVbnRpbCI6MTc4OTYyNjU0MywidmVyc2lvbiI6MX0.PpAvZu4MsvfXVOzK5ika3J7HR2UF5QDh-KHhEiZENSDCC0-tpSEdC6v6CvNVHdTZpsNJ3caK-6Tj5a2AbanJkA"
          }
        ]
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "offers": {
            "items": {
              "properties": {
                "acceptIndex": {
                  "type": "integer"
                },
                "format": {
                  "type": "string"
                },
                "payload": {
                  "properties": {
                    "amount": {
                      "type": "string"
                    },
                    "asset": {
                      "type": "string"
                    },
                    "network": {
                      "type": "string"
                    },
                    "payTo": {
                      "type": "string"
                    },
                    "resourceUrl": {
                      "type": "string"
                    },
                    "scheme": {
                      "type": "string"
                    },
                    "validUntil": {
                      "type": "integer"
                    },
                    "version": {
                      "type": "integer"
                    }
                  },
                  "required": [
                    "version",
                    "resourceUrl",
                    "scheme",
                    "network",
                    "asset",
                    "payTo",
                    "amount"
                  ],
                  "type": "object"
                },
                "signature": {
                  "type": "string"
                }
              },
              "required": [
                "format",
                "signature"
              ],
              "type": "object"
            },
            "type": "array"
          }
        },
        "required": [
          "offers"
        ],
        "type": "object"
      }
    },
    "payment-identifier": {
      "info": {
        "required": false
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "id": {
            "maxLength": 128,
            "minLength": 16,
            "pattern": "^[a-zA-Z0-9_-]+$",
            "type": "string"
          },
          "required": {
            "type": "boolean"
          }
        },
        "required": [
          "required"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar",
    "offer-receipt",
    "payment-identifier"
  ],
  "sourceHost": "api.vrsai.tech",
  "lastUpdated": "2026-09-17T06:28:03.789Z",
  "quality": {
    "calls30d": 8,
    "uniquePayers30d": 5,
    "lastCalledAt": "2026-09-17T06:28:03.543Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.vrsai.tech",
    "manifest_name": "api.vrsai.tech",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-09-18T22:00:31.484Z"
  }
}