{"_id":"@altertable/lakehouse","_rev":"3-5bfaf01b70b2cdd2a5a1ec45034c3954","name":"@altertable/lakehouse","dist-tags":{"latest":"0.2.2"},"versions":{"0.2.0":{"name":"@altertable/lakehouse","version":"0.2.0","license":"MIT","_id":"@altertable/lakehouse@0.2.0","maintainers":[{"name":"mchataigner","email":"mathieu.chataigner@gmail.com"},{"name":"redox","email":"sylvain.utard@gmail.com"},{"name":"utay","email":"yannickutard@gmail.com"},{"name":"shipow","email":"shipowlata@gmail.com"},{"name":"francoischalifour","email":"francois.chalifour@gmail.com"}],"dist":{"shasum":"2ead3194b4e27a52a420164b55d33f79a3970a34","tarball":"https://registry.npmjs.org/@altertable/lakehouse/-/lakehouse-0.2.0.tgz","fileCount":14,"integrity":"sha512-N/ZZbxfaxzH8Ow7nY2ANJZ4xSx3bK5CvYs6oiRBMnsWitH+T+U86MSBzYiI1hurn0QfiSPtpyhZfaJfo9i4J6g==","signatures":[{"sig":"MEYCIQCG2LduxP1TyCYQwQFUd+sccLVVFAUjF4/bBz5ftz0Y6gIhAOefuIH4dQnviRqu+UpG8l64E98dQKz19fYWq1dp3jVM","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":33701},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"gitHead":"9eb6eee4237d9f180ea00ae546d83c83f24cc856","scripts":{"lint":"tsc --noEmit -p tsconfig.json","test":"npm run build && node --test dist/tests/**/*.test.js","build":"tsc -p tsconfig.json"},"_npmUser":{"name":"francoischalifour","email":"francois.chalifour@gmail.com"},"_npmVersion":"11.12.1","description":"Altertable Lakehouse JS/TS API client","directories":{},"_nodeVersion":"25.9.0","_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.8.3","@types/node":"^22.15.21"},"_npmOperationalInternal":{"tmp":"tmp/lakehouse_0.2.0_1781095543321_0.7529311705423865","host":"s3://npm-registry-packages-npm-production"}},"0.2.2":{"name":"@altertable/lakehouse","version":"0.2.2","description":"Altertable Lakehouse JS/TS API client","license":"MIT","repository":{"type":"git","url":"git+https://github.com/altertable-ai/altertable-lakehouse-js.git"},"type":"module","main":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"}},"engines":{"node":">=18"},"scripts":{"build":"tsc -p tsconfig.json","lint":"tsc --noEmit -p tsconfig.json","test":"npm run build && node --test dist/tests/**/*.test.js"},"devDependencies":{"@types/node":"^22.15.21","typescript":"^5.8.3"},"gitHead":"b5b7094d6ef0bce5041a1d632439b1137a4d04fd","_id":"@altertable/lakehouse@0.2.2","bugs":{"url":"https://github.com/altertable-ai/altertable-lakehouse-js/issues"},"homepage":"https://github.com/altertable-ai/altertable-lakehouse-js#readme","_nodeVersion":"24.18.0","_npmVersion":"11.16.0","dist":{"integrity":"sha512-J21omnmxZCB5ZkDeLtFjFhUZEogxoS94gGk6jdNcmvTG3wq0f8hIecmy8ubDWX9LSyrX90MeofpfjqNUFbY0jg==","shasum":"40160c09831c72bd4ce93c90d956a084faa85346","tarball":"https://registry.npmjs.org/@altertable/lakehouse/-/lakehouse-0.2.2.tgz","fileCount":14,"unpackedSize":35512,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@altertable%2flakehouse@0.2.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDNpSwHfuMG3wCtAVWToefVqF59eSJTzHeafS1JFB6IDQIgYXYmTqwJe33S+wwJNfAsG/KYQ7skmVKS3LNW4v3PPLc="}]},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:23f0157f-0bf9-4160-bb83-8c72350ce982"}},"directories":{},"maintainers":[{"name":"redox","email":"sylvain.utard@gmail.com"},{"name":"utay","email":"yannickutard@gmail.com"},{"name":"shipow","email":"shipowlata@gmail.com"},{"name":"francoischalifour","email":"francois.chalifour@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/lakehouse_0.2.2_1785752497805_0.04937449810306327"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-10T12:45:43.073Z","modified":"2026-08-03T10:21:38.325Z","0.2.0":"2026-06-10T12:45:43.455Z","0.2.2":"2026-08-03T10:21:37.956Z"},"license":"MIT","description":"Altertable Lakehouse JS/TS API client","maintainers":[{"name":"redox","email":"sylvain.utard@gmail.com"},{"name":"utay","email":"yannickutard@gmail.com"},{"name":"shipow","email":"shipowlata@gmail.com"},{"name":"francoischalifour","email":"francois.chalifour@gmail.com"}],"readme":"# Altertable Lakehouse JS/TS SDK\n\nTypeScript-first client for the Altertable Lakehouse API.\n\n## Installation\n\n```bash\nnpm install @altertable/lakehouse\n```\n\n## Configuration\n\n```ts\nimport { AltertableLakehouseClient } from '@altertable/lakehouse';\n\nconst client = new AltertableLakehouseClient({\n  username: process.env.ALTERTABLE_USERNAME,\n  password: process.env.ALTERTABLE_PASSWORD,\n  // or basicAuthToken: process.env.ALTERTABLE_BASIC_AUTH_TOKEN,\n  userAgentSuffix: 'my-app/1.0.0',\n});\n```\n\nThe client defaults to `https://api.altertable.ai`, uses HTTP Basic auth, enables configurable retries, and uses a 60s default read timeout. Override `baseUrl`, `connectTimeoutMs`, `readTimeoutMs`, and `retryPolicy` when needed.\n\n## Examples\n\n### append\n\n```ts\nawait client.append({\n  catalog: 'memory',\n  schema: 'main',\n  table: 'events',\n  body: { user_id: 1, action: 'signup' },\n});\n\nawait client.append({\n  catalog: 'memory',\n  schema: 'main',\n  table: 'events',\n  body: [\n    { user_id: 2, action: 'login' },\n    { user_id: 3, action: 'purchase' },\n  ],\n});\n```\n\n### query (streamed)\n\n```ts\nconst result = await client.query({ statement: 'SELECT 42 AS answer' });\nconsole.log(result.metadata);\nconsole.log(result.columns);\nfor await (const row of result.rows) {\n  console.log(row);\n}\n```\n\n### queryAll\n\n```ts\nconst result = await client.queryAll({ statement: 'SELECT 42 AS answer' });\nconsole.log(result.rows);\n```\n\n### getQuery\n\n```ts\nconst log = await client.getQuery('123e4567-e89b-12d3-a456-426614174000');\nconsole.log(log);\n```\n\n### cancelQuery\n\n```ts\nconst cancelled = await client.cancelQuery(\n  '123e4567-e89b-12d3-a456-426614174000',\n  '123e4567-e89b-12d3-a456-426614174001',\n);\nconsole.log(cancelled);\n```\n\n### upsert\n\n```ts\nawait client.upsert(\n  {\n    catalog: 'memory',\n    schema: 'main',\n    table: 'events',\n    mode: 'create',\n  },\n  'id,name\\n1,Alice\\n',\n);\n```\n\n### validate\n\n```ts\nconst validation = await client.validate({ statement: 'SELECT 1' });\nconsole.log(validation.valid);\n```\n\n## Development\n\n```bash\nnpm install\nnpm run lint\nnpm test\nnpm run build\n```\n","readmeFilename":"README.md","homepage":"https://github.com/altertable-ai/altertable-lakehouse-js#readme","repository":{"type":"git","url":"git+https://github.com/altertable-ai/altertable-lakehouse-js.git"},"bugs":{"url":"https://github.com/altertable-ai/altertable-lakehouse-js/issues"}}