{"_id":"@ambiten/adapter-types","_rev":"2-ac775a796d153713ade04bcdd2b303e6","name":"@ambiten/adapter-types","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@ambiten/adapter-types","version":"1.0.0","keywords":[],"author":"","license":"ISC","_id":"@ambiten/adapter-types@1.0.0","maintainers":[{"name":"abimongo","email":"padave805@gmail.com"}],"homepage":"https://ambiten.dev","bugs":{"url":"https://github.com/AmbitenHQ/ambiten/issues"},"dist":{"shasum":"eaa94d6b117e11f55bd9308179af0332a8f4c643","tarball":"https://registry.npmjs.org/@ambiten/adapter-types/-/adapter-types-1.0.0.tgz","fileCount":15,"integrity":"sha512-xuLlboe0R+XAndXeEUGzxiT+Jro9R18u3wYTfIVWTWXc6I14zTb6UBKOptiz97hBJr8VRny1KIndF6wthuBg7w==","signatures":[{"sig":"MEQCIHtInaRxtk8aV6xeilMJmIqCdmIf3nPdr8zytlyqqYQwAiAv3y6ffgAorzFOOPtZ6thkE+QvPAD+hRISOIKCl/+4sg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":15398},"main":"./dist/index.js","_from":"file:ambiten-adapter-types-1.0.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","engines":{"node":">=20.11.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"}},"scripts":{"build":"tsc -b tsconfig.json --force","clean":"rimraf dist","release":"pnpm changeset version","changeset":"pnpm run changeset"},"_npmUser":{"name":"abimongo","email":"padave805@gmail.com"},"_resolved":"/tmp/3128123e6f7948fac19e2c7e90a8713c/ambiten-adapter-types-1.0.0.tgz","_integrity":"sha512-xuLlboe0R+XAndXeEUGzxiT+Jro9R18u3wYTfIVWTWXc6I14zTb6UBKOptiz97hBJr8VRny1KIndF6wthuBg7w==","repository":{"url":"git+https://github.com/AmbitenHQ/ambiten.git","type":"git","directory":"packages/adapter-types"},"_npmVersion":"11.17.0","description":"Ambiten multi-tenancy adapter types","directories":{},"sideEffects":false,"_nodeVersion":"22.22.3","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","ts-jest":"^29.4.9","typescript":"^5.9.3","@types/jest":"^29.5.14","@testing-library/jest-dom":"^6.9.1"},"_npmOperationalInternal":{"tmp":"tmp/adapter-types_1.0.0_1781347257834_0.2042213791089036","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@ambiten/adapter-types","version":"1.0.1","description":"Ambiten multi-tenancy adapter types","main":"./dist/cjs/index.js","module":"./dist/esm/index.js","types":"./dist/esm/index.d.ts","sideEffects":false,"exports":{".":{"import":{"types":"./dist/esm/index.d.ts","default":"./dist/esm/index.js"},"require":{"types":"./dist/cjs/index.js","default":"./dist/cjs/index.js"}}},"keywords":[],"author":"","license":"ISC","repository":{"type":"git","url":"git+https://github.com/AmbitenHQ/ambiten.git","directory":"packages/adapter-types"},"bugs":{"url":"https://github.com/AmbitenHQ/ambiten/issues"},"homepage":"https://docs.ambiten.dev","publishConfig":{"access":"public"},"engines":{"node":">=20.11.0"},"devDependencies":{"@testing-library/jest-dom":"^6.9.1","@types/jest":"^29.5.14","jest":"^29.7.0","ts-jest":"^29.4.9","typescript":"^5.9.3"},"scripts":{"build:esm":"tsc -b tsconfig.esm.json --force","build:cjs":"tsc -b tsconfig.json --force","build":"pnpm run clean && pnpm run build:esm && pnpm run build:cjs ","changeset":"pnpm run changeset","release":"pnpm changeset version","clean":"rimraf dist","postbuild:esm":"node scripts/add-esm-type.js"},"_id":"@ambiten/adapter-types@1.0.1","_integrity":"sha512-IfGXEvAPHfChQPqgCZQjZKpQuWl5yrXLVIwgjIuukIR2e//uqe674gWQs/K8Zysq2FcekrcnSwmpS1vvT32vAw==","_resolved":"/tmp/42a8228c8e1162104669087c53df012c/ambiten-adapter-types-1.0.1.tgz","_from":"file:ambiten-adapter-types-1.0.1.tgz","_nodeVersion":"22.23.2","_npmVersion":"12.0.2","dist":{"integrity":"sha512-IfGXEvAPHfChQPqgCZQjZKpQuWl5yrXLVIwgjIuukIR2e//uqe674gWQs/K8Zysq2FcekrcnSwmpS1vvT32vAw==","shasum":"cefc95fb2b23becbc5af44098e10c2d2414e54a0","tarball":"https://registry.npmjs.org/@ambiten/adapter-types/-/adapter-types-1.0.1.tgz","fileCount":28,"unpackedSize":26118,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQC7mRjmDuRxaFnABcFjhlLRkoyvN8b8bSyPmxH8Wcs69QIgXdkKhhGg2gcuptQTAXBs5Lwoz2w/epUtaZvlDNqszl0="}]},"_npmUser":{"name":"abimongo","email":"padave805@gmail.com"},"directories":{},"maintainers":[{"name":"abimongo","email":"padave805@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/adapter-types_1.0.1_1789376742868_0.15111877123243844"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-13T10:40:57.600Z","modified":"2026-09-14T09:05:43.197Z","1.0.0":"2026-06-13T10:40:57.981Z","1.0.1":"2026-09-14T09:05:42.989Z"},"bugs":{"url":"https://github.com/AmbitenHQ/ambiten/issues"},"license":"ISC","homepage":"https://docs.ambiten.dev","keywords":[],"repository":{"type":"git","url":"git+https://github.com/AmbitenHQ/ambiten.git","directory":"packages/adapter-types"},"description":"Ambiten multi-tenancy adapter types","maintainers":[{"name":"abimongo","email":"padave805@gmail.com"}],"readme":"<div style=\"display: flex; align-items: center;\">\n<p >\n  <img\n    src=\"https://raw.githubusercontent.com/AmbitenHQ/ambiten/main/assets/ambiten-mark-192x192.png\"\n    width=\"56\"\n    alt=\"Ambiten\"\n  />  \n</p> <h2> @ambiten/adapter-types</h2>\n</div>\n\n<p align=\"center\">\n  <strong>Shared adapter contracts for the Ambiten ecosystem.</strong>\n</p>\n\n<p align=\"center\">\n  Provides the TypeScript interfaces, runtime contracts, and adapter definitions used by the Ambiten adapter architecture.\n</p>\n\n<p align=\"center\">\n  <a href=\"https://www.npmjs.com/package/@ambiten/adapter-types\">\n    <img src=\"https://img.shields.io/npm/v/@ambiten/adapter-types?style=flat-square\" alt=\"npm version\" />\n  </a>\n  <!-- <a href=\"https://ambiten.dev\">\n    <img src=\"https://img.shields.io/badge/docs-ambiten.dev-22c55e?style=flat-square\" alt=\"documentation\" />\n  </a> -->\n    <a href=\"https://github.com/AmbitenHQ/ambiten/stargazers\">\n    <img src=\"https://img.shields.io/github/stars/AmbitenHQ/ambiten?style=flat-square&color=1E88E5\" alt=\"GitHub stars\" />\n  </a>\n</p>\n\n---\n\n## Overview\n\n`@ambiten/adapter-types` contains the shared contracts used throughout the Ambiten adapter ecosystem.\n\nIt defines the interfaces, execution contracts, context structures, adapter definitions, and runtime types that allow framework integrations to participate consistently in the Ambiten runtime model.\n\nMost applications will never import this package directly. Instead, it is consumed by adapter implementations and runtime infrastructure packages.\n\nThe purpose of the package is to ensure that every adapter operates against a common set of runtime expectations.\n\n## Installation\n\nThis package is installed automatically by Ambiten adapter packages and typically does not need to be added manually.\n\n```bash\nnpm install @ambiten/adapter-types\n```\n\n## Architectural Position\n\nThe package sits at the foundation of the adapter ecosystem.\n\n```text\nAdapter Types\n      ↓\nAdapter Runtime\n      ↓\nFramework Adapters\n      ↓\nAmbiten Core\n```\n\nThe contracts defined here provide a common language between all adapter implementations.\n\n## What the Package Provides\n\nThe package contains the shared types required to build adapter integrations and runtime infrastructure.\n\nThese definitions may include:\n\n* Adapter contracts\n* Runtime context interfaces\n* Execution lifecycle contracts\n* Tenant resolution contracts\n* Request metadata structures\n* Transaction-related definitions\n\nBy centralizing these definitions, adapters remain consistent and easier to maintain across the ecosystem.\n\n## Adapter Development\n\nFramework adapters are built against the contracts exposed by this package.\n\nA custom adapter can implement the required interfaces while still participating fully in the Ambiten execution model.\n\n```text\nCustom Framework\n        ↓\nAdapter Contract\n        ↓\nAdapter Runtime\n        ↓\nAmbiten Context\n```\n\nThis allows new integrations to be added without modifying the core runtime architecture.\n\n## Why a Separate Package?\n\nSeparating contracts from implementation provides several benefits.\n\nAdapter packages can share a single source of truth for runtime definitions, reducing duplication and preventing contract drift across framework integrations.\n\nIt also allows adapter-runtime and framework-specific adapters to evolve independently while remaining compatible through stable shared interfaces.\n\n## Who Should Use This Package?\n\nMost developers should use one of the framework adapters directly:\n\n* `@ambiten/adapter-express`\n* `@ambiten/adapter-fastify`\n* `@ambiten/adapter-nestjs`\n* `@ambiten/adapter-graphql`\n* `@ambiten/adapter-lambda`\n\nDirect usage of `@ambiten/adapter-types` is generally intended for adapter authors, framework integration developers, and contributors extending the adapter ecosystem.\n\n## Documentation\n\nComplete documentation is available at:\n\nhttps://docs.ambiten.dev\n\n## Related Packages\n\n* `@ambiten/core`\n* `@ambiten/adapter-runtime`\n* `@ambiten/adapter-express`\n* `@ambiten/adapter-fastify`\n* `@ambiten/adapter-nestjs`\n* `@ambiten/adapter-graphql`\n* `@ambiten/adapter-lambda`\n\n## License\n\nMIT\n","readmeFilename":"README.md"}