{
  "name": "@blockfrost/openapi",
  "version": "0.1.93",
  "description": "OpenAPI specifications for blockfrost.io",
  "repository": "git@github.com:blockfrost/openapi.git",
  "author": "admin@blockfrost.io",
  "main": "lib/index.js",
  "files": [
    "lib/**/*",
    "openapi.yaml",
    "json-schema.json"
  ],
  "scripts": {
    "prepublish": "yarn build",
    "build": "yarn sync-version && rimraf lib && yarn tsc && yarn bundle && yarn generate-types && yarn generate-json-schema",
    "copy-spec": "cp ./openapi.yaml ./docs/blockfrost-openapi.yaml",
    "lint": "scalar validate ./src/definitions.yaml",
    "bundle": "yarn redocly bundle -o ./blockfrost-openapi.yaml src/definitions.yaml && yarn openapi-merge-cli && yarn redocly bundle -o ./openapi.json ./openapi.yaml && yarn copy-spec && yarn build:midnight-docs",
    "build:midnight-docs": "yarn spectaql ./spectaql.yaml && cp ./midnight-indexer-api.graphql ./docs/midnight/midnight-indexer-api.graphql",
    "generate-types": "yarn openapi-typescript ./openapi.yaml --output ./src/generated-types.ts",
    "generate-types:rust": "rimraf ./rust/src/models && openapi-generator-cli generate -i openapi.yaml -g rust -o ./rust -c rust/openapi-generator.json -t rust/templates --global-property models,modelDocs=false,apis=false,apiDocs=false,supportingFiles && node rust/fix-cargo.js",
    "generate-types:rust:docker": "rimraf ./rust/src/models && docker run --rm -v \"$PWD:/local\" openapitools/openapi-generator-cli:v7.20.0 generate -i /local/openapi.yaml -g rust -o /local/rust -c /local/rust/openapi-generator.json -t /local/rust/templates --global-property models,modelDocs=false,apis=false,apiDocs=false,supportingFiles && node rust/fix-cargo.js",
    "generate-json-schema": "node lib/scripts/generate-json-schema.js > json-schema.json",
    "sync-version": "ts-node ./src/scripts/sync-version.ts",
    "test": "vitest",
    "coverage": "vitest run --coverage"
  },
  "devDependencies": {
    "@openapitools/openapi-generator-cli": "2.31.0",
    "@redocly/cli": "1.26.0",
    "@scalar/cli": "^0.2.265",
    "@types/node": "^22.10.2",
    "@vitest/coverage-v8": "2.1.8",
    "openapi-merge-cli": "^1.3.2",
    "openapi-typescript": "7.4.4",
    "spectaql": "^3.0.6",
    "ts-node": "^10.9.2",
    "typescript": "^5.7.2",
    "vitest": "2.1.8"
  },
  "dependencies": {
    "ajv": "^8.17.1",
    "cbor": "^9.0.2",
    "rimraf": "6.0.1",
    "yaml": "^2.6.1"
  },
  "packageManager": "yarn@4.5.0",
  "engines": {
    "node": ">=20"
  }
}
