{
  "name": "@stacks/stacks-blockchain-api-types",
  "version": "7.14.1",
  "access": "public",
  "description": "TypeScript descriptions of Stacks 2.0 blockchain API entities",
  "main": "index.js",
  "types": "index.d.ts",
  "scripts": {
    "build": "rimraf .tmp && run-s generate:schemas generate:git-info generate:docs generate:postman",
    "test": "rimraf .tmp && run-s lint:yaml lint:json lint:openapi validate:schemas",
    "lint:yaml": "yamllint ./openapi.yaml",
    "lint:json": "jsonlint-cli ./api/**/*.json ./entities/**/*.json",
    "lint:openapi": "swagger-cli validate ./openapi.yaml",
    "generate:types": "ts-node ./scripts/generate-types.ts",
    "generate:schemas": "gulp && npm run generate:types",
    "generate:git-info": "npm run generate:git-info --prefix .. && export API_VERSION=$(shx tail -n 1 ../.git-info) && speccy resolve --output .tmp/openapi.resolved.yaml openapi.yaml && shx sed -i 'STACKS_API_VERSION' ${API_VERSION:-1.0.0} .tmp/openapi.resolved.yaml > /dev/null && any-json convert .tmp/openapi.resolved.yaml .tmp/openapi.json",
    "generate:docs": "redoc-cli bundle --output .tmp/index.html .tmp/openapi.resolved.yaml",
    "generate:postman": "openapi2postmanv2 --spec .tmp/openapi.resolved.yaml --output .tmp/collection.json --options folderStrategy=Tags,requestParametersResolution=Example,exampleParametersResolution=Example,schemaFaker=false 2>/dev/null",
    "validate:schemas": "rimraf .tmp && gulp flattenSchemas --silent && ts-node ./scripts/validate-schemas.ts",
    "deploy:docs": "npm run build && gulp deployDocs"
  },
  "author": "@hirosystems",
  "license": "ISC",
  "repository": {
    "type": "git",
    "url": "https://github.com/hirosystems/stacks-blockchain-api.git",
    "directory": "docs"
  },
  "files": [
    "openapi.yaml",
    "index.d.ts",
    "generated.d.ts",
    "socket-io/**/*",
    "api/**/*",
    "entities/**/*"
  ],
  "devDependencies": {
    "@apidevtools/json-schema-ref-parser": "9.0.7",
    "@apidevtools/swagger-cli": "4.0.4",
    "@types/json-schema-merge-allof": "0.6.0",
    "@types/node": "^18.13.0",
    "ajv": "6.12.6",
    "any-json": "^3.1.0",
    "chalk": "4.1.1",
    "del": "5.1.0",
    "glob": "7.1.6",
    "gulp": "4.0.2",
    "gulp-gh-pages": "0.6.0-6",
    "gulp-jsonschema-deref": "0.0.3",
    "json-schema": "0.2.5",
    "json-schema-merge-allof": "0.7.0",
    "json-schema-to-typescript": "10.1.4",
    "jsonlint-cli": "1.0.1",
    "npm-run-all": "4.1.5",
    "openapi-to-postmanv2": "2.13.0",
    "redoc-cli": "0.13.16",
    "shx": "0.3.3",
    "speccy": "0.11.0",
    "ts-node": "^10.8.2",
    "typescript": "^4.7.4",
    "yaml-lint": "1.2.4"
  }
}
