{
  "x402Version": 2,
  "id": 27011,
  "slug": "27011",
  "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",
  "serviceName": "vrsai",
  "iconUrl": "https://res.cloudinary.com/bdb-prod/image/upload/c_fill,ar_1:1,w_256,h_256,f_auto,q_auto/v1787448875/bazaar-icons/150e42f9e211f9b6.png",
  "resourceType": "Monitoring",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x6746dFF7bDB1ED4940DBe50024795AD97CbA09Af",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 60
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "EiJRESZjUCUufSjSb5iDmikXXeKa3C1gQwYCZR4xFocj",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 60
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "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.eyJhbW91bnQiOiIxMDAwMCIsImFzc2V0IjoiMHg4MzM1ODlmQ0Q2ZURiNkUwOGY0YzdDMzJENGY3MWI1NGJkQTAyOTEzIiwibmV0d29yayI6ImVpcDE1NTo4NDUzIiwicGF5VG8iOiIweDY3NDZkRkY3YkRCMUVENDk0MERCZTUwMDI0Nzk1QUQ5N0NiQTA5QWYiLCJyZXNvdXJjZVVybCI6Imh0dHBzOi8vYXBpLnZyc2FpLnRlY2gvdjEvY2FwYWJpbGl0aWVzL3BhY2thZ2VfaW5zdGFsbF9wcmVmbGlnaHQiLCJzY2hlbWUiOiJleGFjdCIsInZhbGlkVW50aWwiOjE3OTE2NDU3NzksInZlcnNpb24iOjF9.ZMR4KkfxrOljN8GHNB7ObWhtX6HF7D8y-wc2JxPW52u2s8ZqZJB8LBrtDW3D_AfrkGnaikzqxSNQBit1UTyfiA"
          },
          {
            "acceptIndex": 1,
            "format": "jws",
            "signature": "eyJhbGciOiJFUzI1NiIsImtpZCI6ImRpZDp3ZWI6dnJzYWkudGVjaCNwcm9kdWN0aW9uLTIwMjYtMDgtMTkifQ.eyJhbW91bnQiOiIxMDAwMCIsImFzc2V0IjoiRVBqRldkZDVBdWZxU1NxZU0ycU4xeHp5YmFwQzhHNHdFR0drWnd5VER0MXYiLCJuZXR3b3JrIjoic29sYW5hOjVleWt0NFVzRnY4UDhOSmRUUkVwWTF2enFLcVpLdmRwIiwicGF5VG8iOiJFaUpSRVNaalVDVXVmU2pTYjVpRG1pa1hYZUthM0MxZ1F3WUNaUjR4Rm9jaiIsInJlc291cmNlVXJsIjoiaHR0cHM6Ly9hcGkudnJzYWkudGVjaC92MS9jYXBhYmlsaXRpZXMvcGFja2FnZV9pbnN0YWxsX3ByZWZsaWdodCIsInNjaGVtZSI6ImV4YWN0IiwidmFsaWRVbnRpbCI6MTc5MTY0NTc3OSwidmVyc2lvbiI6MX0.MImlUSK3LfxiNK9jMJamHswyA-OMkiK0_eI6GLgukeSF5pnhCFhHYI-ScYIILD52W2JxwJ-aKrVJqSL6ehmHVg"
          }
        ]
      },
      "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": [
    "package-security",
    "dependency-risk",
    "package-install",
    "npm",
    "pypi",
    "bazaar",
    "offer-receipt",
    "payment-identifier"
  ],
  "sourceHost": "api.vrsai.tech",
  "lastUpdated": "2026-10-10T15:21:59.926Z",
  "quality": {
    "calls30d": 9,
    "uniquePayers30d": 7,
    "lastCalledAt": "2026-10-10T15:21:59.337Z"
  },
  "metadata": {
    "serviceName": "vrsai",
    "iconUrl": "https://res.cloudinary.com/bdb-prod/image/upload/c_fill,ar_1:1,w_256,h_256,f_auto,q_auto/v1787448875/bazaar-icons/150e42f9e211f9b6.png",
    "extensions": {
      "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.eyJhbW91bnQiOiIxMDAwMCIsImFzc2V0IjoiMHg4MzM1ODlmQ0Q2ZURiNkUwOGY0YzdDMzJENGY3MWI1NGJkQTAyOTEzIiwibmV0d29yayI6ImVpcDE1NTo4NDUzIiwicGF5VG8iOiIweDY3NDZkRkY3YkRCMUVENDk0MERCZTUwMDI0Nzk1QUQ5N0NiQTA5QWYiLCJyZXNvdXJjZVVybCI6Imh0dHBzOi8vYXBpLnZyc2FpLnRlY2gvdjEvY2FwYWJpbGl0aWVzL3BhY2thZ2VfaW5zdGFsbF9wcmVmbGlnaHQiLCJzY2hlbWUiOiJleGFjdCIsInZhbGlkVW50aWwiOjE3OTE2NDU3NzksInZlcnNpb24iOjF9.ZMR4KkfxrOljN8GHNB7ObWhtX6HF7D8y-wc2JxPW52u2s8ZqZJB8LBrtDW3D_AfrkGnaikzqxSNQBit1UTyfiA"
            },
            {
              "acceptIndex": 1,
              "format": "jws",
              "signature": "eyJhbGciOiJFUzI1NiIsImtpZCI6ImRpZDp3ZWI6dnJzYWkudGVjaCNwcm9kdWN0aW9uLTIwMjYtMDgtMTkifQ.eyJhbW91bnQiOiIxMDAwMCIsImFzc2V0IjoiRVBqRldkZDVBdWZxU1NxZU0ycU4xeHp5YmFwQzhHNHdFR0drWnd5VER0MXYiLCJuZXR3b3JrIjoic29sYW5hOjVleWt0NFVzRnY4UDhOSmRUUkVwWTF2enFLcVpLdmRwIiwicGF5VG8iOiJFaUpSRVNaalVDVXVmU2pTYjVpRG1pa1hYZUthM0MxZ1F3WUNaUjR4Rm9jaiIsInJlc291cmNlVXJsIjoiaHR0cHM6Ly9hcGkudnJzYWkudGVjaC92MS9jYXBhYmlsaXRpZXMvcGFja2FnZV9pbnN0YWxsX3ByZWZsaWdodCIsInNjaGVtZSI6ImV4YWN0IiwidmFsaWRVbnRpbCI6MTc5MTY0NTc3OSwidmVyc2lvbiI6MX0.MImlUSK3LfxiNK9jMJamHswyA-OMkiK0_eI6GLgukeSF5pnhCFhHYI-ScYIILD52W2JxwJ-aKrVJqSL6ehmHVg"
            }
          ]
        },
        "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"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "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-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {},
    "type": "string"
  }
}