{"_id":"@biowiki/gateway-sdk","name":"@biowiki/gateway-sdk","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@biowiki/gateway-sdk","version":"0.1.0","description":"Node.js client for signed BioWiki API Gateway requests.","type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"scripts":{"build":"node scripts/build.js","test":"node --test","prepack":"npm run test && npm run build","prepublishOnly":"npm run test && npm run build"},"publishConfig":{"access":"restricted"},"engines":{"node":">=24 <25"},"gitHead":"b22d018e917d73d2a92d2ca254a1703891672cf9","_id":"@biowiki/gateway-sdk@0.1.0","_nodeVersion":"24.19.0","_npmVersion":"11.17.0","dist":{"integrity":"sha512-G1L4iLIp7eARtxk/3iQ8hY+kV+iCTzRzHxav/OnBxhfBmUwHRD7oefgIBdwx6tkw7LSWHRo4UUuiUSkqbzK4Mw==","shasum":"f6c1c3886e080c7c7a632cb310e436f553dca76d","tarball":"https://registry.npmjs.org/@biowiki/gateway-sdk/-/gateway-sdk-0.1.0.tgz","fileCount":5,"unpackedSize":10114,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIHrXM95NWBcHYk/6ITqklmVlbW/ReCwAbGxNZFxoEQ5gAiEAr0IhKALtaxlPBiKKQEjgHeh569CFk7C3xg7j9xaJxqI="}]},"_npmUser":{"name":"liuzcbiowiki","email":"liuzc@biowiki.com.hk"},"directories":{},"maintainers":[{"name":"liuzcbiowiki","email":"liuzc@biowiki.com.hk"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/gateway-sdk_0.1.0_1787880659679_0.7159935109515256"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-28T01:30:59.477Z","0.1.0":"2026-08-28T01:30:59.813Z","modified":"2026-08-28T01:31:00.102Z"},"maintainers":[{"name":"liuzcbiowiki","email":"liuzc@biowiki.com.hk"}],"description":"Node.js client for signed BioWiki API Gateway requests.","readme":"# @biowiki/gateway-sdk\n\nNode.js-only client for BioWiki API Gateway. It generates the required HMAC-SHA256 application signature and forwards user authorization, tenant selection, trace ID, and request ID.\n\n## Install\n\n```bash\nnpm install @biowiki/gateway-sdk@0.1.0\n```\n\nConfigure the `@biowiki` scope in `.npmrc` to use the company private Registry. See `.npmrc.example`.\n\n## Use\n\n```js\nimport { GatewayClient } from '@biowiki/gateway-sdk';\n\nconst gateway = new GatewayClient({\n  baseUrl: process.env.GATEWAY_BASE_URL,\n  appId: process.env.GATEWAY_APP_ID,\n  appSecret: process.env.GATEWAY_APP_SECRET,\n  environment: process.env.GATEWAY_APP_ENVIRONMENT || 'production'\n});\n\nconst result = await gateway.get('/api/v1/example', {\n  authorization: req.header('authorization'),\n  tenantId: req.header('x-tenant-id'),\n  requestId: req.requestId,\n  traceId: req.traceId\n});\n```\n\n`appSecret` is server-only. Do not import this package in a browser bundle and do not expose it through `VITE_*`, `NEXT_PUBLIC_*`, or similar client-visible variables.\n\n## Publish\n\n```bash\nnpm test\nnpm run build\nnpm pack --dry-run\nnpm publish --registry=\"$NPM_REGISTRY\"\n```\n","readmeFilename":"README.md","_rev":"1-8873336d9649e1677b68999da8f3b77a"}