{
  "name": "@google/genai",
  "version": "1.43.0",
  "description": "",
  "type": "module",
  "main": "dist/node/index.mjs",
  "module": "dist/web/index.mjs",
  "browser": "dist/web/index.mjs",
  "typings": "dist/genai.d.ts",
  "exports": {
    ".": {
      "browser": {
        "types": "./dist/web/web.d.ts",
        "import": "./dist/web/index.mjs",
        "default": "./dist/web/index.mjs"
      },
      "node": {
        "types": "./dist/node/node.d.ts",
        "import": "./dist/node/index.mjs",
        "require": "./dist/node/index.cjs",
        "default": "./dist/node/index.mjs"
      },
      "types": "./dist/genai.d.ts",
      "import": "./dist/index.mjs",
      "require": "./dist/index.cjs",
      "default": "./dist/index.mjs"
    },
    "./web": {
      "types": "./dist/web/web.d.ts",
      "import": "./dist/web/index.mjs",
      "default": "./dist/web/index.mjs"
    },
    "./node": {
      "types": "./dist/node/node.d.ts",
      "import": "./dist/node/index.mjs",
      "default": "./dist/node/index.mjs"
    },
    "./tokenizer": {
      "node": {
        "types": "./dist/tokenizer/node.d.ts",
        "import": "./dist/tokenizer/node.mjs",
        "require": "./dist/tokenizer/node.cjs",
        "default": "./dist/tokenizer/node.mjs"
      },
      "types": "./dist/tokenizer/node.d.ts",
      "import": "./dist/tokenizer/node.mjs",
      "require": "./dist/tokenizer/node.cjs",
      "default": "./dist/tokenizer/node.mjs"
    },
    "./tokenizer/node": {
      "types": "./dist/tokenizer/node.d.ts",
      "import": "./dist/tokenizer/node.mjs",
      "require": "./dist/tokenizer/node.cjs",
      "default": "./dist/tokenizer/node.mjs"
    }
  },
  "scripts": {
    "prepare": "node scripts/prepare.js",
    "build": "patch-package && rollup -c && npm-run-all --parallel api-extractor:dev:* && node scripts/ignore_missing_mcp_dep.js",
    "build-prod": "patch-package && rollup -c && npm-run-all --parallel api-extractor:prod:* && node scripts/ignore_missing_mcp_dep.js",
    "api-extractor:dev:main": "api-extractor run --local --verbose",
    "api-extractor:dev:node": "api-extractor run -c api-extractor.node.json --local --verbose",
    "api-extractor:dev:web": "api-extractor run -c api-extractor.web.json --local --verbose",
    "api-extractor:dev:tokenizer-node": "api-extractor run -c api-extractor.tokenizer-node.json --local --verbose",
    "api-extractor:prod:main": "api-extractor run --verbose",
    "api-extractor:prod:node": "api-extractor run -c api-extractor.node.json --verbose",
    "api-extractor:prod:web": "api-extractor run -c api-extractor.web.json --verbose",
    "api-extractor:prod:tokenizer-node": "api-extractor run -c api-extractor.tokenizer-node.json --verbose",
    "unit-test": "tsc && cp src/cross/sentencepiece/sentencepiece_model.pb.js dist/src/cross/sentencepiece/ && jasmine dist/test/unit/**/*_test.js dist/test/unit/**/**/*_test.js dist/test/unit/*_test.js",
    "system-test": "tsc && jasmine dist/test/system/**/*_test.js",
    "test-server-tests": "tsc && GOOGLE_CLOUD_PROJECT=googcloudproj GOOGLE_CLOUD_LOCATION=googcloudloc jasmine dist/test/system/node/*_test.js -- --test-server",
    "test-server-tests:record": "tsc && jasmine --fail-fast dist/test/system/node/*_test.js -- --test-server --record",
    "docs": "typedoc && node --loader ts-node/esm scripts/add_docsite_license_headers.ts",
    "pages-main": "node --loader ts-node/esm scripts/generate_pages.ts main",
    "pages-release": "node --loader ts-node/esm scripts/generate_pages.ts release",
    "format": "prettier '**/*.ts' '**/*.mjs' '**/*.json' --write",
    "lint": "eslint '**/*.ts'",
    "lint-fix": "eslint --fix '**/*.ts'",
    "coverage-report": "./test/generate_report.sh",
    "generate-proto": "pbjs -t static-module -w es6 -o src/cross/sentencepiece/sentencepiece_model.pb.js src/cross/sentencepiece/sentencepiece_model.proto && pbts -o src/cross/sentencepiece/sentencepiece_model.pb.d.ts src/cross/sentencepiece/sentencepiece_model.pb.js && sed -i.bak 's/import \\* as \\$protobuf from \"protobufjs\\/minimal\"/import \\$protobuf from \"protobufjs\\/minimal.js\"/' src/cross/sentencepiece/sentencepiece_model.pb.js && rm src/cross/sentencepiece/sentencepiece_model.pb.js.bak"
  },
  "engines": {
    "node": ">=20.0.0"
  },
  "overrides": {
    "tmp": "^0.2.4"
  },
  "files": [
    "dist/genai.d.ts",
    "dist/index.mjs",
    "dist/index.cjs",
    "dist/index.mjs.map",
    "dist/node/index.mjs",
    "dist/node/index.cjs",
    "dist/node/index.mjs.map",
    "dist/node/node.d.ts",
    "dist/web/index.mjs",
    "dist/web/index.mjs.map",
    "dist/web/web.d.ts",
    "dist/tokenizer/node.mjs",
    "dist/tokenizer/node.cjs",
    "dist/tokenizer/node.mjs.map",
    "dist/tokenizer/node.d.ts",
    "node/package.json",
    "web/package.json"
  ],
  "devDependencies": {
    "@cfworker/json-schema": "^4.1.1",
    "@eslint/js": "9.20.0",
    "@microsoft/api-extractor": "^7.52.9",
    "@modelcontextprotocol/sdk": "^1.25.2",
    "@rollup/plugin-json": "^6.1.0",
    "@types/jasmine": "^5.1.2",
    "@types/node": "^20.9.0",
    "@types/node-fetch": "^2.6.13",
    "@types/unist": "^3.0.3",
    "@types/ws": "^8.5.14",
    "c8": "^10.1.3",
    "eslint": "8.57.0",
    "gts": "^5.2.0",
    "jasmine": "^5.5.0",
    "jasmine-reporters": "^2.4.0",
    "node-fetch": "^3.3.2",
    "npm-run-all": "^4.1.5",
    "nyc": "^17.1.0",
    "patch-package": "^8.0.1",
    "prettier": "3.3.3",
    "prettier-plugin-organize-imports": "^4.1.0",
    "protobufjs-cli": "^1.1.3",
    "rollup-plugin-typescript2": "^0.36.0",
    "test-server-sdk": "^0.2.9",
    "ts-node": "^10.9.2",
    "tslib": "^2.8.1",
    "tsx": "^4.19.4",
    "typedoc": "^0.27.0",
    "typescript": "~5.4.0",
    "typescript-eslint": "8.24.1",
    "undici": "^7.16.0",
    "undici-types": "^7.16.0",
    "zod": "^3.25.0",
    "zod-to-json-schema": "^3.25.0"
  },
  "dependencies": {
    "google-auth-library": "^10.3.0",
    "p-retry": "^4.6.2",
    "protobufjs": "^7.5.4",
    "ws": "^8.18.0"
  },
  "peerDependencies": {
    "@modelcontextprotocol/sdk": "^1.25.2"
  },
  "peerDependenciesMeta": {
    "@modelcontextprotocol/sdk": {
      "optional": true
    }
  },
  "repository": {
    "type": "git",
    "url": "https://github.com/googleapis/js-genai.git"
  },
  "bugs": {
    "url": "https://github.com/googleapis/js-genai/issues"
  },
  "homepage": "https://github.com/googleapis/js-genai#readme",
  "author": "",
  "license": "Apache-2.0"
}
