{"_id":"@boltz.one/sdk-web","_rev":"2-3354b8d07ee7f3657dc5b2e04d40bca5","name":"@boltz.one/sdk-web","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"@boltz.one/sdk-web","version":"0.1.0","_id":"@boltz.one/sdk-web@0.1.0","maintainers":[{"name":"dknguyen","email":"dknguyen2304@gmail.com"}],"homepage":"https://github.com/boltz-one/core#readme","bugs":{"url":"https://github.com/boltz-one/core/issues"},"dist":{"shasum":"942672b04199788200a7ca17f044dd20ac5bad88","tarball":"https://registry.npmjs.org/@boltz.one/sdk-web/-/sdk-web-0.1.0.tgz","fileCount":25,"integrity":"sha512-WajJ71g0I7MD3d3PXUiBojND8sLyRRDtH0zF76qXGSOoovFLqwTBfRnz8pCmBd3v+TA7kAfrbnk3jgcnQFWc6w==","signatures":[{"sig":"MEQCIFm7eIEp1klL89meFtKlMAICXxYYOoSa4kBPmDIu2dWfAiBePxJCyy/7FjtXHd11DiS0gQ3s46C3j7JnxoJ7AU/AJw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":16983},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./api":{"types":"./dist/api/index.d.ts","import":"./dist/api/index.js"},"./iam":{"types":"./dist/iam/index.d.ts","import":"./dist/iam/index.js"},"./react":{"types":"./dist/react/index.d.ts","import":"./dist/react/index.js"}},"gitHead":"c4e313018e549263d7c772ff6238f47df7d7de97","scripts":{"dev":"tsc -p tsconfig.json --watch","lint":"eslint . --max-warnings 0","build":"tsc -p tsconfig.json","clean":"rm -rf dist .turbo","check-types":"tsc -p tsconfig.json --noEmit"},"_npmUser":{"name":"dknguyen","email":"dknguyen2304@gmail.com"},"repository":{"url":"git+https://github.com/boltz-one/core.git","type":"git","directory":"packages/sdk-web"},"_npmVersion":"10.9.8","description":"Frontend SDK: Platform/Auth/Tenant/Permission/FeatureFlag/Telemetry providers, hooks, components, routing, API client, IAM client","directories":{},"_nodeVersion":"22.22.3","dependencies":{"zod":"^3.23.8","react":"^19.2.0","react-dom":"^19.2.0","@boltz.one/sdk-core":"^0.1.0","@boltz.one/contracts":"^0.1.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^9.39.1","typescript":"5.9.2","@types/react":"19.2.2","@types/react-dom":"19.2.2","@boltz.one/eslint-config":"*","@boltz.one/typescript-config":"*"},"peerDependencies":{"react":">=18","react-dom":">=18"},"_npmOperationalInternal":{"tmp":"tmp/sdk-web_0.1.0_1782014422133_0.378428628612852","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@boltz.one/sdk-web","version":"0.1.1","description":"Frontend SDK: Platform/Auth/Tenant/Permission/FeatureFlag/Telemetry providers, hooks, components, routing, API client, IAM client","type":"module","main":"./dist/index.js","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./react":{"types":"./dist/react/index.d.ts","import":"./dist/react/index.js"},"./iam":{"types":"./dist/iam/index.d.ts","import":"./dist/iam/index.js"},"./api":{"types":"./dist/api/index.d.ts","import":"./dist/api/index.js"}},"scripts":{"build":"tsc -p tsconfig.json","dev":"tsc -p tsconfig.json --watch","lint":"eslint . --max-warnings 0","check-types":"tsc -p tsconfig.json --noEmit","clean":"rm -rf dist .turbo"},"dependencies":{"@boltz.one/contracts":"^0.1.1","@boltz.one/sdk-core":"^0.1.1","react":"^19.2.0","react-dom":"^19.2.0","zod":"^3.23.8"},"devDependencies":{"@boltz.one/eslint-config":"*","@boltz.one/typescript-config":"*","@types/react":"19.2.2","@types/react-dom":"19.2.2","eslint":"^9.39.1","typescript":"5.9.2"},"peerDependencies":{"react":">=18","react-dom":">=18"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"repository":{"type":"git","url":"git+https://github.com/boltz-one/core.git","directory":"packages/sdk-web"},"_id":"@boltz.one/sdk-web@0.1.1","gitHead":"9ef15b365727e2d0e059e6eee794f755e0f6af54","bugs":{"url":"https://github.com/boltz-one/core/issues"},"homepage":"https://github.com/boltz-one/core#readme","_nodeVersion":"22.22.3","_npmVersion":"10.9.8","dist":{"integrity":"sha512-3ftzV3Pzop/TzI8V56RbWwXfCTCivvfkyLxG5mshQclEsMXgP3bYj/LiDNS7H9xpOR8Skrb8KEue9WOpOmovFQ==","shasum":"f2ae8d111da769f5d4ec3562487e786f1b85fa43","tarball":"https://registry.npmjs.org/@boltz.one/sdk-web/-/sdk-web-0.1.1.tgz","fileCount":26,"unpackedSize":18384,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIHqPZDC1oV9ocHUeJxu0cw3+g2FJWJUMpJ8v8BASC3btAiAThBq0z+upaERhbinXADS5EW/crk990mNeLxEc0TA3sA=="}]},"_npmUser":{"name":"dknguyen","email":"dknguyen2304@gmail.com"},"directories":{},"maintainers":[{"name":"dknguyen","email":"dknguyen2304@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sdk-web_0.1.1_1782014758075_0.2535051785713982"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-21T04:00:22.011Z","modified":"2026-06-21T04:05:58.325Z","0.1.0":"2026-06-21T04:00:22.265Z","0.1.1":"2026-06-21T04:05:58.200Z"},"bugs":{"url":"https://github.com/boltz-one/core/issues"},"homepage":"https://github.com/boltz-one/core#readme","repository":{"type":"git","url":"git+https://github.com/boltz-one/core.git","directory":"packages/sdk-web"},"description":"Frontend SDK: Platform/Auth/Tenant/Permission/FeatureFlag/Telemetry providers, hooks, components, routing, API client, IAM client","maintainers":[{"name":"dknguyen","email":"dknguyen2304@gmail.com"}],"readme":"# @boltz.one/sdk-web\n\nFrontend SDK (**React**) của Boltz One: providers, hooks, components, routing và\nclient gọi API/IAM cho Shell và các micro app.\n\n## Cài đặt\n\n```sh\nbun add @boltz.one/sdk-web @boltz.one/sdk-core @boltz.one/contracts\n```\n\n`react` và `react-dom` (>=18) là **peerDependencies** — app tiêu thụ tự cung cấp.\n\n## Entry points\n\n| Import | Nội dung |\n| --- | --- |\n| `@boltz.one/sdk-web` | Surface chính (providers, types) |\n| `@boltz.one/sdk-web/react` | Providers (Platform/Auth/Tenant/Permission/FeatureFlag/Telemetry), hooks, gates |\n| `@boltz.one/sdk-web/iam` | `IamClient` — kiểm tra quyền phía client (`PermissionSnapshot`) |\n| `@boltz.one/sdk-web/api` | `createApiClient` (BFF) + hook `useApi` |\n\n## Sử dụng\n\n```tsx\nimport { createApiClient } from '@boltz.one/sdk-web/api';\nimport { IamClient } from '@boltz.one/sdk-web/iam';\n\nconst api = createApiClient({ baseUrl: '/bff' });\nconst iam = new IamClient({ api });\n```\n\nClient API/IAM build trên [`@boltz.one/sdk-core/api-client`](https://www.npmjs.com/package/@boltz.one/sdk-core)\nvà dùng schema từ [`@boltz.one/contracts`](https://www.npmjs.com/package/@boltz.one/contracts),\nđảm bảo type khớp với backend.\n\n> Để scaffold micro app mới dùng sẵn bộ SDK + config này, xem\n> [`@boltz.one/create-app`](https://www.npmjs.com/package/@boltz.one/create-app).\n\n## License\n\nMIT\n","readmeFilename":"README.md"}