{"_id":"@agentai-tbl/contracts","_rev":"3-26606ca8487e64f770ccffc356cd5220","name":"@agentai-tbl/contracts","dist-tags":{"latest":"0.12.0"},"versions":{"0.10.0":{"name":"@agentai-tbl/contracts","version":"0.10.0","license":"MIT","_id":"@agentai-tbl/contracts@0.10.0","maintainers":[{"name":"kris-jbl","email":"xystof@pm.me"}],"dist":{"shasum":"3c5ece8eebc34254672eee9cec1038da8ba80845","tarball":"https://registry.npmjs.org/@agentai-tbl/contracts/-/contracts-0.10.0.tgz","fileCount":14,"integrity":"sha512-C/DYWTQMbi3XWtmKyXUvPKiYm5fiRre2tSMXWR91SLqNuTwbnQYeVodhtve78U7b97WBwOGp5SQfje4iAhvVPA==","signatures":[{"sig":"MEUCIA8vzJisLBaxNHte2z0F7Geu4CKzQpCrXm7WumtaGqKOAiEA6sRtHNHHUiRekYcqXwfzD6yr5tTmLR589eKrc54TCV4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":462499},"main":"dist/index.js","_from":"file:agentai-tbl-contracts-0.10.0.tgz","types":"dist/index.d.ts","scripts":{"build":"tsc --project tsconfig.json && tsc --project tsconfig.smoke.json","smoke":"node ./smoke-contracts.js","codegen":"TS_NODE_PROJECT=tsconfig.json ts-node codegen/generate-from-openapi.ts"},"_npmUser":{"name":"kris-jbl","email":"xystof@pm.me"},"_resolved":"/private/var/folders/tf/cglj5w117373lrfwtky2jm380000gp/T/0bb47d25de976fb72467495035ce9e73/agentai-tbl-contracts-0.10.0.tgz","_integrity":"sha512-C/DYWTQMbi3XWtmKyXUvPKiYm5fiRre2tSMXWR91SLqNuTwbnQYeVodhtve78U7b97WBwOGp5SQfje4iAhvVPA==","_npmVersion":"11.6.2","description":"TypeScript/Zod bindings for the Agent AI HTTP contract. The package is built from the `contracts/openapi.json` snapshot, published to npm, and exposes:","directories":{},"_nodeVersion":"25.2.0","dependencies":{"zod":"^3.23.8"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"ts-node":"^10.9.2","typescript":"^5.5.4","@types/node":"^20.16.5"},"_npmOperationalInternal":{"tmp":"tmp/contracts_0.10.0_1763215905138_0.42851266376244057","host":"s3://npm-registry-packages-npm-production"}},"0.10.1":{"name":"@agentai-tbl/contracts","version":"0.10.1","license":"MIT","_id":"@agentai-tbl/contracts@0.10.1","maintainers":[{"name":"kris-jbl","email":"xystof@pm.me"}],"dist":{"shasum":"0fa79faef02e2b4c6bbc0431b7473203f73dc18f","tarball":"https://registry.npmjs.org/@agentai-tbl/contracts/-/contracts-0.10.1.tgz","fileCount":14,"integrity":"sha512-rSK1S7SHKs4BOLIzCXHs8WFLmohqwFJU4x+cY0gXlT3cCuAeiceS8ojr6aRhk23jnrXDhQLXs99Jza76OXENgw==","signatures":[{"sig":"MEUCIQDp1gYMZB79CbkD3kYmHsv7H3CxiRUApUnFSWMjFvMuXAIgYgcvH6tOuJloOVH3e8CAAfjn3iaSK5IBaKBd2kL75Ew=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":185369},"main":"dist/index.js","types":"dist/index.d.ts","gitHead":"6dc590bd859b987953dc4193cbc7af5ae20278ce","scripts":{"build":"tsc --project tsconfig.json && tsc --project tsconfig.smoke.json","smoke":"node ./smoke-contracts.js","codegen":"TS_NODE_PROJECT=tsconfig.json ts-node codegen/generate-from-openapi.ts","prepare":"pnpm run codegen && pnpm run build","generate:contracts":"pnpm run codegen && pnpm run build"},"_npmUser":{"name":"kris-jbl","email":"xystof@pm.me"},"_npmVersion":"11.6.2","description":"TypeScript/Zod bindings for the Agent AI HTTP contract. The package is built from the `contracts/openapi.json` snapshot, published to npm, and exposes:","directories":{},"_nodeVersion":"25.2.0","dependencies":{"zod":"^4.1.12"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"ts-node":"^10.9.2","typescript":"^5.5.4","@types/node":"^20.16.5"},"_npmOperationalInternal":{"tmp":"tmp/contracts_0.10.1_1763538809544_0.25421124597760203","host":"s3://npm-registry-packages-npm-production"}},"0.12.0":{"name":"@agentai-tbl/contracts","version":"0.12.0","license":"MIT","main":"dist/index.js","types":"dist/index.d.ts","publishConfig":{"access":"public"},"dependencies":{"zod":"^4.1.12"},"devDependencies":{"@types/node":"^20.16.5","ts-node":"^10.9.2","typescript":"^5.5.4"},"scripts":{"codegen":"TS_NODE_PROJECT=tsconfig.json ts-node codegen/generate-from-openapi.ts","build":"tsc --project tsconfig.json && tsc --project tsconfig.smoke.json","smoke":"node ./smoke-contracts.js","generate:contracts":"pnpm run codegen && pnpm run build"},"_id":"@agentai-tbl/contracts@0.12.0","description":"TypeScript/Zod bindings for the Agent AI HTTP contract. The package is built from the `contracts/openapi.json` snapshot, published to npm, and exposes:","_integrity":"sha512-32W063bYc1kEniDS7dSXZGhGBIavnIN2BDywdRTN7F3/fK0kE80i5WcFNozP0P1+Rea8g4E+F2y/5WIfJnpfTw==","_resolved":"/private/var/folders/tf/cglj5w117373lrfwtky2jm380000gp/T/a2ef58aca7d435ff3824709793cd169f/agentai-tbl-contracts-0.12.0.tgz","_from":"file:agentai-tbl-contracts-0.12.0.tgz","_nodeVersion":"25.2.0","_npmVersion":"11.6.2","dist":{"integrity":"sha512-32W063bYc1kEniDS7dSXZGhGBIavnIN2BDywdRTN7F3/fK0kE80i5WcFNozP0P1+Rea8g4E+F2y/5WIfJnpfTw==","shasum":"610b92e1f74b081a5b916ebe1724a62ad67ff2a8","tarball":"https://registry.npmjs.org/@agentai-tbl/contracts/-/contracts-0.12.0.tgz","fileCount":14,"unpackedSize":195941,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIC80eHFnP+y5EQy29oP1jEYaBM6hnFM3yuZ/waIfBACKAiBVO5x7RNKkPgwktybzQQUYUd9gU+XqEJ44p5PjIDuGOw=="}]},"_npmUser":{"name":"kris-jbl","email":"xystof@pm.me"},"directories":{},"maintainers":[{"name":"kris-jbl","email":"xystof@pm.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/contracts_0.12.0_1764320521810_0.11081579772894767"},"_hasShrinkwrap":false}},"time":{"created":"2025-11-15T14:11:45.026Z","modified":"2025-11-28T09:02:02.173Z","0.10.0":"2025-11-15T14:11:45.333Z","0.10.1":"2025-11-19T07:53:29.733Z","0.12.0":"2025-11-28T09:02:01.990Z"},"license":"MIT","description":"TypeScript/Zod bindings for the Agent AI HTTP contract. The package is built from the `contracts/openapi.json` snapshot, published to npm, and exposes:","maintainers":[{"name":"kris-jbl","email":"xystof@pm.me"}],"readme":"# @agentai-tbl/contracts\n\nTypeScript/Zod bindings for the Agent AI HTTP contract. The package is built from the\n`contracts/openapi.json` snapshot, published to npm, and exposes:\n\n- **`main`** → `dist/index.js` (CommonJS bundle generated from `src/index.ts`)\n- **`types`** → `dist/index.d.ts` (full TypeScript definitions that mirror the exported Zod schemas)\n\nSee [CHANGELOG.md](../../CHANGELOG.md) for contract history and grab raw OpenAPI snapshots from the GitHub Actions artifacts on `api-v*` tags if you need to inspect past releases.\n\n## Building\n\n```bash\npnpm install\npnpm run prepare\n```\n\n`pnpm run prepare` regenerates the schemas from the OpenAPI snapshot and compiles the\npackage so the `dist/` artifacts referenced by `main`/`types` are ready for linking\ninto downstream consumers.\n\n## Usage\n\n```ts\nimport { Core, Nutrition } from \"@agentai-tbl/contracts\";\n\nconst requestSchema = Nutrition.NutritionRequestSchema;\n```\n\n### Server-first release workflow\n\n- The FastAPI backend is the source of truth for the API contract. When the\n  OpenAPI snapshot changes, bump the package version and publish a new tag so\n  downstream consumers can pick up the update via npm.\n- WebUI/frontend consumers **must** depend on the published package from npmjs;\n  do not vendor local snapshots.\n- Ship frontend changes only after the refreshed package has been published so\n  generated types stay in lockstep with the backend contract.\n\n### Installing from npm\n\nUse the standard pnpm install flow to pull the latest published bundle:\n\n```bash\npnpm add @agentai-tbl/contracts\n```\n\nThe `files` allowlist in `package.json` keeps the published tarball limited to\n`dist/`, `package.json`, and this README so installs stay lean while still\ndelivering the artifacts referenced by `main`/`types`.\n","readmeFilename":"README.md"}