{"_id":"@ai-billing/google-vertex","_rev":"2-a3bc94984e3683624c0324ab39828fb2","name":"@ai-billing/google-vertex","dist-tags":{"alpha":"0.0.0","latest":"0.0.1"},"versions":{"0.0.0":{"name":"@ai-billing/google-vertex","version":"0.0.0","license":"Apache-2.0","_id":"@ai-billing/google-vertex@0.0.0","maintainers":[{"name":"audrzejq","email":"audrzejq@gmail.com"},{"name":"osquar","email":"oskar@narev.ai"}],"homepage":"https://github.com/narevai/ai-billing#readme","bugs":{"url":"https://github.com/narevai/ai-billing/issues"},"dist":{"shasum":"00788a53026c199a0080b74059695be242ac277e","tarball":"https://registry.npmjs.org/@ai-billing/google-vertex/-/google-vertex-0.0.0.tgz","fileCount":57,"integrity":"sha512-EBUZq0d2fdb59ZVDha3njwYnwxU2SGfc4w9sfL6IdOT5st5tV5LbyEXl+IMCfvjpuQgZn48TCxBGihMzqGF5nw==","signatures":[{"sig":"MEQCICzHgxOL0EEr6CWOl1Kfm4ZIjFSss/vVoAYfAUEYj8KxAiBl6H9vjvrG7QP4fwmsY9Sp6qRm/U5YF4k+msGFislkig==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":97577},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=20.0.0"},"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"gitHead":"12ae5bd31c3ab51653907d0533421b5a8ac62565","scripts":{"dev":"tsup --watch","lint":"oxlint","test":"vitest run","build":"tsup","prepack":"node -e \"require('fs').copyFileSync('../../LICENSE', 'LICENSE')\"","postpack":"node -e \"require('fs').rmSync('LICENSE', { force: true })\"","test:watch":"vitest","check-types":"tsc --noEmit","docs:generate":"typedoc --options typedoc.json","test:coverage":"vitest run --coverage"},"_npmUser":{"name":"audrzejq","email":"audrzejq@gmail.com"},"repository":{"url":"git+https://github.com/narevai/ai-billing.git","type":"git","directory":"packages/google-vertex"},"_npmVersion":"11.19.0","description":"Google Vertex AI provider for the AI Billing.","directories":{},"_nodeVersion":"24.20.0","dependencies":{"@ai-billing/core":"workspace:*","@ai-billing/types":"workspace:*"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"ai":"^7.0.0","zod":"catalog:","tsup":"catalog:","ai-v6":"npm:ai@^6.0.138","vitest":"catalog:","typedoc":"catalog:","typescript":"catalog:","@ai-sdk/provider":"catalog:","@edge-runtime/vm":"catalog:","@ai-billing/testing":"workspace:*","typedoc-plugin-markdown":"catalog:","@ai-billing/typescript-config":"workspace:*"},"peerDependencies":{"@ai-sdk/google-vertex":"^3.0.0 || ^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/google-vertex_0.0.0_1788815068538_0.6653600814163456","host":"s3://npm-registry-packages-npm-production"}},"0.0.1":{"_id":"@ai-billing/google-vertex@0.0.1","bugs":{"url":"https://github.com/narevai/ai-billing/issues"},"dist":{"shasum":"ce16703af41c8bf15c4ac7254ae5cde3b33f7c8d","tarball":"https://registry.npmjs.org/@ai-billing/google-vertex/-/google-vertex-0.0.1.tgz","fileCount":57,"integrity":"sha512-f8Z9j4MkIENo0/O62hTScRbnfi7mperkxzhQST5TfxQGdD4VKjFHanPS2Cl9ELRMBvbOWLOW+yvqZwAGvJ6+kw==","signatures":[{"sig":"MEUCIGm2kFkKiZawAdxlItjVxXIjlLc0C52Cir+Vkt7YRhxzAiEA9I6O+GR6xiRZW9UAW87fyccoKy61DWHrZSVIPWI/cYE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCDy3axx88e0Dijo6WgQB90KTM1xXpEBRVsLvJWNA/DUAIhAKAsDlKVl0xQ9xca+ARpT7r8XWx3v6nb1AyP350E9WCD"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ai-billing%2fgoogle-vertex@0.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":97398},"main":"./dist/index.js","name":"@ai-billing/google-vertex","type":"module","_from":"file:ai-billing-google-vertex-0.0.1.tgz","types":"./dist/index.d.ts","engines":{"node":">=20.0.0"},"exports":{".":{"import":{"types":"./dist/index.d.ts","default":"./dist/index.js"},"require":{"types":"./dist/index.d.cts","default":"./dist/index.cjs"}}},"license":"Apache-2.0","scripts":{"dev":"tsup --watch","lint":"oxlint","test":"vitest run","build":"tsup","test:watch":"vitest","check-types":"tsc --noEmit","docs:generate":"typedoc --options typedoc.json","test:coverage":"vitest run --coverage"},"version":"0.0.1","_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:8dd6d56f-d3ff-4bd9-ad8e-1dfc010e3932"}},"homepage":"https://github.com/narevai/ai-billing#readme","_resolved":"/tmp/29f1c0700c4aab5bc8e5f98e6b80267b/ai-billing-google-vertex-0.0.1.tgz","_integrity":"sha512-f8Z9j4MkIENo0/O62hTScRbnfi7mperkxzhQST5TfxQGdD4VKjFHanPS2Cl9ELRMBvbOWLOW+yvqZwAGvJ6+kw==","repository":{"url":"git+https://github.com/narevai/ai-billing.git","type":"git","directory":"packages/google-vertex"},"_npmVersion":"11.19.0","description":"Google Vertex AI provider for the AI Billing.","directories":{},"maintainers":[{"name":"audrzejq","email":"audrzejq@gmail.com"},{"name":"osquar","email":"oskar@narev.ai"}],"_nodeVersion":"24.20.0","dependencies":{"@ai-billing/core":"0.1.6","@ai-billing/types":"0.0.4"},"publishConfig":{"access":"public","provenance":true},"_hasShrinkwrap":false,"devDependencies":{"ai":"^7.0.0","zod":"^4.3.6","tsup":"^8.5.1","ai-v6":"npm:ai@^6.0.138","vitest":"4.1.11","typedoc":"^0.28.19","typescript":"5.9.3","@ai-sdk/provider":"^4.0.10","@edge-runtime/vm":"^5.0.0","@ai-billing/testing":"0.1.0","typedoc-plugin-markdown":"^4.11.0","@ai-billing/typescript-config":"0.0.1"},"peerDependencies":{"@ai-sdk/google-vertex":"^3.0.0 || ^4.0.0"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/google-vertex_0.0.1_1788820633319_0.5752069851677266"}}},"time":{"created":"2026-09-07T21:04:28.354Z","modified":"2026-09-07T22:37:13.752Z","0.0.0":"2026-09-07T21:04:28.673Z","0.0.1":"2026-09-07T22:37:13.398Z"},"bugs":{"url":"https://github.com/narevai/ai-billing/issues"},"license":"Apache-2.0","homepage":"https://github.com/narevai/ai-billing#readme","repository":{"url":"git+https://github.com/narevai/ai-billing.git","type":"git","directory":"packages/google-vertex"},"description":"Google Vertex AI provider for the AI Billing.","maintainers":[{"name":"audrzejq","email":"audrzejq@gmail.com"},{"name":"osquar","email":"oskar@narev.ai"}],"readme":"# @ai-billing/google-vertex\nGoogle Vertex AI provider for the AI Billing.\n\n**Installation**\n```bash\nnpm install @ai-billing/core @ai-billing/google-vertex\n```\n\n**Usage notes**\nGoogle Vertex AI's Gemini models report reasoning (\"thoughts\") tokens separately from the visible\ncompletion tokens (`thoughtsTokenCount` in `providerMetadata.vertex.usageMetadata`), and this package\nadds them back into the billed completion count, mirroring `@ai-billing/google`'s handling of the same\nGemini-native usage shape.\n\nVertex also reports `trafficType` (`ON_DEMAND` vs `PROVISIONED`, i.e. committed-throughput calls).\n`ModelPricing` has no field for a provisioned-throughput rate, so this package bills every call at the\nsame resolved rate regardless of `trafficType` — a known, intentional limitation. The raw `trafficType`\nvalue is surfaced on the emitted billing event's `usage.subProvider` field so downstream consumers can\nfilter or re-rate provisioned traffic themselves.\n\n**Documentation**\nFor full usage instructions and examples, please refer to the [Documentation](https://www.narev.ai/docs/sdk/ai-billing).\n","readmeFilename":"README.md"}