{"_id":"@cubewire/wallet-ts-sdk","_rev":"4-5e317893e42d215bfef27dbcfabc484b","name":"@cubewire/wallet-ts-sdk","dist-tags":{"latest":"0.2.9"},"versions":{"0.2.6":{"name":"@cubewire/wallet-ts-sdk","version":"0.2.6","author":{"name":"CubeWire"},"license":"MIT","_id":"@cubewire/wallet-ts-sdk@0.2.6","maintainers":[{"name":"satvikp8io","email":"satvik.saxena@p8.io"},{"name":"gkp8io","email":"gowtham@p8.io"}],"homepage":"https://docs.cubewire.com","bugs":{"url":"https://github.com/Cubewire/wallet-ts-sdk/issues"},"dist":{"shasum":"041aa8ef6d924556a156e10a323cdd388c647d04","tarball":"https://registry.npmjs.org/@cubewire/wallet-ts-sdk/-/wallet-ts-sdk-0.2.6.tgz","fileCount":3070,"integrity":"sha512-2b9SNQwFgJWxWfXuGxvPPnbWsqL5BLa6+YIm/A0yVFoI8cIFOhU0gJDo/sGhAJw+UEVLxbXbn9xWnI/W1UZ+gQ==","signatures":[{"sig":"MEQCIH9RkR993eInSeH0EK/Pn1Tgqo2FljtR1SIlws86Qe+5AiBfmQ77AX3h1zEp+eP9esuih1rqg7C3pS40o2ogC4TU3w==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8977222},"main":"./esm/index.js","type":"module","types":"./esm/index.d.ts","exports":{".":{"types":"./esm/index.d.ts","source":"./src/index.ts","default":"./esm/index.js"},"./*":{"types":"./esm/*.d.ts","source":"./src/*.ts","default":"./esm/*.js"},"./*.js":{"types":"./esm/*.d.ts","source":"./src/*.ts","default":"./esm/*.js"},"./types":{"types":"./esm/types/index.d.ts","source":"./src/types/index.ts","default":"./esm/types/index.js"},"./models":{"types":"./esm/models/index.d.ts","source":"./src/models/index.ts","default":"./esm/models/index.js"},"./package.json":"./package.json","./models/errors":{"types":"./esm/models/errors/index.d.ts","source":"./src/models/errors/index.ts","default":"./esm/models/errors/index.js"},"./models/operations":{"types":"./esm/models/operations/index.d.ts","source":"./src/models/operations/index.ts","default":"./esm/models/operations/index.js"}},"gitHead":"bbdfa4c6fc36fadb9c5c4167934fb51bbb3dcb8b","scripts":{"lint":"oxlint --max-warnings=0 --deny-warnings src/**/*.ts src/**/*.tsx","test":"vitest run","build":"tsgo","test:unit":"vitest run --config vitest.unit.config.ts","typecheck":"tsgo --noEmit","verify-pack":"node scripts/verify-pack.mjs","check-version":"node scripts/check-version.mjs","prepublishOnly":"npm run check-version && npm run build && npm run test:unit && npm run verify-pack"},"_npmUser":{"name":"satvikp8io","email":"satvik.saxena@p8.io"},"repository":{"url":"git+https://github.com/Cubewire/wallet-ts-sdk.git","type":"git"},"_npmVersion":"11.4.2","description":"TypeScript SDK for the Cubewire Wallet API (Speakeasy-generated, typed client and models).","directories":{},"sideEffects":false,"_nodeVersion":"22.17.0","dependencies":{"zod":"^3.25.65 || ^4.0.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"devDependencies":{"dotenv":"^16.4.7","oxlint":"^1.60.0","vitest":"^4.1.6","typescript":"~5.8.3","semantic-release":"^22.0.12","@semantic-release/exec":"^6.0.3","@semantic-release/github":"^9.2.6","@typescript/native-preview":"7.0.0-dev.20260302.1","@semantic-release/commit-analyzer":"^11.1.0","conventional-changelog-conventionalcommits":"^7.0.2"},"_npmOperationalInternal":{"tmp":"tmp/wallet-ts-sdk_0.2.6_1779170180560_0.9875703052178353","host":"s3://npm-registry-packages-npm-production"}},"0.2.7":{"name":"@cubewire/wallet-ts-sdk","version":"0.2.7","author":{"name":"CubeWire"},"license":"MIT","_id":"@cubewire/wallet-ts-sdk@0.2.7","maintainers":[{"name":"satvikp8io","email":"satvik.saxena@p8.io"},{"name":"gkp8io","email":"gowtham@p8.io"},{"name":"thomasp8io","email":"thomas.parker@p8.io"}],"homepage":"https://docs.cubewire.com","bugs":{"url":"https://github.com/Cubewire/wallet-ts-sdk/issues"},"dist":{"shasum":"42490cd01b73f4584d9dde53b13bade70b796155","tarball":"https://registry.npmjs.org/@cubewire/wallet-ts-sdk/-/wallet-ts-sdk-0.2.7.tgz","fileCount":3646,"integrity":"sha512-DpR2jP3ohW6ZaN1YIoR3H2XWUMwtIdylM4ShAD0BhG1/3bVf0thlPHEBNK61fbg8WghfZt5WJ8G/TPgTUCtW0A==","signatures":[{"sig":"MEQCIGv89PNzPCVHnB9KDEVsHtsS/ypahXiS/55lmmR0mqMLAiAgTMbzmMGu3lNrXkr6acWk1sHZ3y7MPkTAoLKZODBoLQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10557291},"main":"./esm/index.js","type":"module","types":"./esm/index.d.ts","exports":{".":{"types":"./esm/index.d.ts","source":"./src/index.ts","default":"./esm/index.js"},"./*":{"types":"./esm/*.d.ts","source":"./src/*.ts","default":"./esm/*.js"},"./*.js":{"types":"./esm/*.d.ts","source":"./src/*.ts","default":"./esm/*.js"},"./types":{"types":"./esm/types/index.d.ts","source":"./src/types/index.ts","default":"./esm/types/index.js"},"./models":{"types":"./esm/models/index.d.ts","source":"./src/models/index.ts","default":"./esm/models/index.js"},"./package.json":"./package.json","./models/errors":{"types":"./esm/models/errors/index.d.ts","source":"./src/models/errors/index.ts","default":"./esm/models/errors/index.js"},"./models/operations":{"types":"./esm/models/operations/index.d.ts","source":"./src/models/operations/index.ts","default":"./esm/models/operations/index.js"}},"gitHead":"201dcc2b2f8209f74eda5a30b9c2377b02944333","scripts":{"lint":"oxlint --max-warnings=0 --deny-warnings src/**/*.ts src/**/*.tsx","test":"vitest run","build":"tsgo","test:unit":"vitest run --config vitest.unit.config.ts","typecheck":"tsgo --noEmit","verify-pack":"node scripts/verify-pack.mjs","check-version":"node scripts/check-version.mjs","prepublishOnly":"npm run check-version && npm run build && npm run test:unit && npm run verify-pack"},"_npmUser":{"name":"thomasp8io","email":"thomas.parker@p8.io"},"repository":{"url":"git+https://github.com/Cubewire/wallet-ts-sdk.git","type":"git"},"_npmVersion":"10.9.3","description":"TypeScript SDK for the Cubewire Wallet API (Speakeasy-generated, typed client and models).","directories":{},"sideEffects":false,"_nodeVersion":"22.20.0","dependencies":{"zod":"^3.25.65 || ^4.0.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"devDependencies":{"dotenv":"^16.4.7","oxlint":"^1.60.0","vitest":"^4.1.6","typescript":"~5.8.3","semantic-release":"^22.0.12","@semantic-release/exec":"^6.0.3","@semantic-release/github":"^9.2.6","@typescript/native-preview":"7.0.0-dev.20260302.1","@semantic-release/commit-analyzer":"^11.1.0","conventional-changelog-conventionalcommits":"^7.0.2"},"_npmOperationalInternal":{"tmp":"tmp/wallet-ts-sdk_0.2.7_1780022410003_0.0015890610234137181","host":"s3://npm-registry-packages-npm-production"}},"0.2.8":{"name":"@cubewire/wallet-ts-sdk","version":"0.2.8","author":{"name":"CubeWire"},"license":"MIT","_id":"@cubewire/wallet-ts-sdk@0.2.8","maintainers":[{"name":"satvikp8io","email":"satvik.saxena@p8.io"},{"name":"gkp8io","email":"gowtham@p8.io"},{"name":"thomasp8io","email":"thomas.parker@p8.io"}],"homepage":"https://docs.cubewire.com","bugs":{"url":"https://github.com/Cubewire/wallet-ts-sdk/issues"},"dist":{"shasum":"e896e5b987c20b0bb1e92d5c0656e5c4f1b5786c","tarball":"https://registry.npmjs.org/@cubewire/wallet-ts-sdk/-/wallet-ts-sdk-0.2.8.tgz","fileCount":3646,"integrity":"sha512-lFSsXxwCIJoA+k6+RE+wnUbNGBvdYNmaVBSQRK2WAhTKMf2lGdXo3rT/AgP28ofPvnyw7Ffl36Mg25BKCTT/sw==","signatures":[{"sig":"MEYCIQCNFZv245n9Iool26wanA8G8S3rbjsi2AfXM7BcrD551AIhANVc/2qzw69thH+RpReZL1bsIcemh/sk9vuiKzBZyPNi","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":10557361},"main":"./esm/index.js","type":"module","types":"./esm/index.d.ts","exports":{".":{"types":"./esm/index.d.ts","source":"./src/index.ts","default":"./esm/index.js"},"./*":{"types":"./esm/*.d.ts","source":"./src/*.ts","default":"./esm/*.js"},"./*.js":{"types":"./esm/*.d.ts","source":"./src/*.ts","default":"./esm/*.js"},"./types":{"types":"./esm/types/index.d.ts","source":"./src/types/index.ts","default":"./esm/types/index.js"},"./models":{"types":"./esm/models/index.d.ts","source":"./src/models/index.ts","default":"./esm/models/index.js"},"./package.json":"./package.json","./models/errors":{"types":"./esm/models/errors/index.d.ts","source":"./src/models/errors/index.ts","default":"./esm/models/errors/index.js"},"./models/operations":{"types":"./esm/models/operations/index.d.ts","source":"./src/models/operations/index.ts","default":"./esm/models/operations/index.js"}},"gitHead":"f0d9289cd76fc2e508af7b67a1297b6073652162","scripts":{"lint":"oxlint --max-warnings=0 --deny-warnings src/**/*.ts src/**/*.tsx","test":"vitest run","build":"tsgo","test:unit":"vitest run --config vitest.unit.config.ts","typecheck":"tsgo --noEmit","verify-pack":"node scripts/verify-pack.mjs","check-version":"node scripts/check-version.mjs","prepublishOnly":"npm run check-version && npm run build && npm run test:unit && npm run verify-pack"},"_npmUser":{"name":"thomasp8io","email":"thomas.parker@p8.io"},"repository":{"url":"git+https://github.com/Cubewire/wallet-ts-sdk.git","type":"git"},"_npmVersion":"10.9.3","description":"TypeScript SDK for the Cubewire Wallet API (Speakeasy-generated, typed client and models).","directories":{},"sideEffects":false,"_nodeVersion":"22.20.0","dependencies":{"zod":"^3.25.65 || ^4.0.0"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_hasShrinkwrap":false,"devDependencies":{"dotenv":"^16.4.7","oxlint":"^1.60.0","vitest":"^4.1.6","typescript":"~5.8.3","semantic-release":"^22.0.12","@semantic-release/exec":"^6.0.3","@semantic-release/github":"^9.2.6","@typescript/native-preview":"7.0.0-dev.20260302.1","@semantic-release/commit-analyzer":"^11.1.0","conventional-changelog-conventionalcommits":"^7.0.2"},"_npmOperationalInternal":{"tmp":"tmp/wallet-ts-sdk_0.2.8_1780023656509_0.8321223143244334","host":"s3://npm-registry-packages-npm-production"}},"0.2.9":{"name":"@cubewire/wallet-ts-sdk","version":"0.2.9","description":"TypeScript SDK for the Cubewire Wallet API (Speakeasy-generated, typed client and models).","author":{"name":"CubeWire"},"license":"MIT","homepage":"https://docs.cubewire.com","repository":{"type":"git","url":"git+https://github.com/Cubewire/wallet-ts-sdk.git"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"type":"module","main":"./esm/index.js","exports":{".":{"source":"./src/index.ts","types":"./esm/index.d.ts","default":"./esm/index.js"},"./package.json":"./package.json","./types":{"source":"./src/types/index.ts","types":"./esm/types/index.d.ts","default":"./esm/types/index.js"},"./models/errors":{"source":"./src/models/errors/index.ts","types":"./esm/models/errors/index.d.ts","default":"./esm/models/errors/index.js"},"./models":{"source":"./src/models/index.ts","types":"./esm/models/index.d.ts","default":"./esm/models/index.js"},"./models/operations":{"source":"./src/models/operations/index.ts","types":"./esm/models/operations/index.d.ts","default":"./esm/models/operations/index.js"},"./*.js":{"source":"./src/*.ts","types":"./esm/*.d.ts","default":"./esm/*.js"},"./*":{"source":"./src/*.ts","types":"./esm/*.d.ts","default":"./esm/*.js"}},"sideEffects":false,"scripts":{"lint":"oxlint --max-warnings=0 --deny-warnings src/**/*.ts src/**/*.tsx","typecheck":"tsgo --noEmit","build":"tsgo","check-version":"node scripts/check-version.mjs","verify-pack":"node scripts/verify-pack.mjs","prepublishOnly":"npm run check-version && npm run build && npm run test:unit && npm run verify-pack","test":"vitest run","test:unit":"vitest run --config vitest.unit.config.ts"},"devDependencies":{"@semantic-release/commit-analyzer":"^11.1.0","@semantic-release/exec":"^6.0.3","@semantic-release/github":"^9.2.6","@typescript/native-preview":"7.0.0-dev.20260302.1","conventional-changelog-conventionalcommits":"^7.0.2","dotenv":"^16.4.7","oxlint":"^1.60.0","semantic-release":"^22.0.12","typescript":"~5.8.3","vitest":"^4.1.6"},"dependencies":{"zod":"^3.25.65 || ^4.0.0"},"_id":"@cubewire/wallet-ts-sdk@0.2.9","gitHead":"377a1b28b2f66f17fcda9ce8b343d2ba8a3f32bd","types":"./esm/index.d.ts","bugs":{"url":"https://github.com/Cubewire/wallet-ts-sdk/issues"},"_nodeVersion":"22.20.0","_npmVersion":"10.9.3","dist":{"integrity":"sha512-lkp86dFcbHqkuHKLv6DtoXPqH8O2yISsZ0eJUinrwrfNiDldSTYoHHeHcWMBkD20RNaldAFXuAwKHGu3bSTKCQ==","shasum":"b4aa0b92222f606fad3b6d6c1f6c89fa0bf0e737","tarball":"https://registry.npmjs.org/@cubewire/wallet-ts-sdk/-/wallet-ts-sdk-0.2.9.tgz","fileCount":3646,"unpackedSize":10557382,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIE/Tc/8RHFOjHnTcmRjBooFI5MnDCpPpJC/dec8PUuqfAiBcC2WQCajnswJeLCCJNHuTP+aoFf1pr8pyfz0Tz60aYQ=="}]},"_npmUser":{"name":"thomasp8io","email":"thomas.parker@p8.io"},"directories":{},"maintainers":[{"name":"satvikp8io","email":"satvik.saxena@p8.io"},{"name":"gkp8io","email":"gowtham@p8.io"},{"name":"thomasp8io","email":"thomas.parker@p8.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/wallet-ts-sdk_0.2.9_1782720323099_0.0858838914017217"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-19T05:56:20.434Z","modified":"2026-06-29T08:05:23.353Z","0.2.6":"2026-05-19T05:56:20.782Z","0.2.7":"2026-05-29T02:40:10.335Z","0.2.8":"2026-05-29T03:00:56.939Z","0.2.9":"2026-06-29T08:05:23.238Z"},"bugs":{"url":"https://github.com/Cubewire/wallet-ts-sdk/issues"},"author":{"name":"CubeWire"},"license":"MIT","homepage":"https://docs.cubewire.com","repository":{"type":"git","url":"git+https://github.com/Cubewire/wallet-ts-sdk.git"},"description":"TypeScript SDK for the Cubewire Wallet API (Speakeasy-generated, typed client and models).","maintainers":[{"name":"satvikp8io","email":"satvik.saxena@p8.io"},{"name":"gkp8io","email":"gowtham@p8.io"},{"name":"thomasp8io","email":"thomas.parker@p8.io"}],"readme":"# @cubewire/wallet-ts-sdk\n\nType-safe TypeScript SDK for the [Cubewire Wallet](https://cubewire.com) API — manage vaults, transactions, policies, signing, and more.\n\n[![npm version](https://badge.fury.io/js/%40cubewire%2Fwallet-ts-sdk.svg)](https://www.npmjs.com/package/@cubewire/wallet-ts-sdk)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\n## Features\n\n- **Full Wallet API coverage** — vaults, transactions, signing, policies, assets, networks, webhooks, and more\n- **Type-safe** — generated models and operations with full TypeScript types\n- **Tree-shakeable** — standalone functions for minimal bundle size ([FUNCTIONS.md](./FUNCTIONS.md))\n- **Configurable retries** — built-in backoff strategy for transient failures\n- **Multi-runtime** — Node.js 18+, Bun, Deno, and browsers ([RUNTIMES.md](./RUNTIMES.md))\n\n## Installation\n\n```bash\nnpm install @cubewire/wallet-ts-sdk\n```\n\n> This package is published as an ES Module (ESM) only. For CommonJS, use `await import()`.\n\n## Quick Start\n\n**1. Get API credentials** (a client ID and client secret) from the [Cubewire Dashboard](https://wallet.cubewire.com) → Settings → API Keys.\n\n**2. Exchange your credentials for a short-lived access token** via the OAuth2 client-credentials flow, then pass it as `bearerAuth`:\n\n```typescript\nimport { SDK } from \"@cubewire/wallet-ts-sdk\";\n\nconst serverURL = \"https://api.cubewire.com\";\n\nconst { accessToken } = await new SDK({ serverURL }).oAuth2.requestOauth2AccessToken({\n  grantType: \"client_credentials\",\n  clientId: process.env.CUBEWIRE_CLIENT_ID!,\n  clientSecret: process.env.CUBEWIRE_CLIENT_SECRET!,\n});\n\nconst sdk = new SDK({ serverURL, bearerAuth: accessToken });\n```\n\n> Access tokens are short-lived. `bearerAuth` also accepts a `() => Promise<string>` callback, so you can fetch and refresh the token on demand.\n\n**3. Make API calls:**\n\n```typescript\nconst vaults = await sdk.vaults.getVaults();\n\nconst tx = await sdk.transactions.createTransactionSend({\n  sender: { vaultId: \"e06476b1-e31b-433f-a225-d43ded705399\" },\n  chainId: 1,\n  recipient: { address: \"0x...\" },\n  asset: { type: \"native\" },\n  amount: \"1.5\",\n});\n```\n\n## Available Resources\n\n| Resource | Description |\n|---|---|\n| `sdk.vaults` | Create, list, update, and manage vaults |\n| `sdk.transactions` | Send, broadcast, simulate, and query transactions |\n| `sdk.contracts` | Read contract state, deploy, and manage smart contract interactions |\n| `sdk.signing` | Sign data and EIP-712 typed data |\n| `sdk.policies` | Create and manage transaction policies |\n| `sdk.assets` | Discover and manage vault assets and balances |\n| `sdk.networks` | Configure blockchain networks and tokens |\n| `sdk.organizations` | Manage organization settings, HSM, and compliance |\n| `sdk.roles` | Manage roles and permissions |\n| `sdk.webhooks` | Create and manage webhooks |\n| `sdk.auditLogs` | Query audit logs and compliance reports |\n| `sdk.namedLists` | Manage named lists for policy conditions |\n| `sdk.oAuth2` | Request OAuth2 access tokens |\n\nFor the full list of operations, see [FUNCTIONS.md](./FUNCTIONS.md) or the [API reference on GitHub](https://github.com/Cubewire/wallet-ts-sdk/tree/master/docs/sdks).\n\n## Error Handling\n\nAll HTTP errors extend `SDKError`:\n\n```typescript\nimport { SDK } from \"@cubewire/wallet-ts-sdk\";\nimport * as errors from \"@cubewire/wallet-ts-sdk/models/errors\";\n\ntry {\n  const result = await sdk.vaults.getVaultsById({ id: \"...\" });\n} catch (error) {\n  if (error instanceof errors.SDKError) {\n    console.log(error.statusCode); // e.g. 404\n    console.log(error.message);\n    console.log(error.body);\n  }\n}\n```\n\n## Retries\n\nOverride the default retry strategy per-call or globally:\n\n```typescript\nconst result = await sdk.vaults.getVaults({}, {\n  retries: {\n    strategy: \"backoff\",\n    backoff: {\n      initialInterval: 1,\n      maxInterval: 50,\n      exponent: 1.1,\n      maxElapsedTime: 100,\n    },\n    retryConnectionErrors: false,\n  },\n});\n```\n\n## Documentation\n\nFull guides and API reference at **[docs.cubewire.com](https://docs.cubewire.com)**:\n\n- [Introduction](https://docs.cubewire.com/wallet/docs/introduction)\n- [Authentication & OAuth2](https://docs.cubewire.com/wallet/docs/oauth2)\n- [Managing Vaults](https://docs.cubewire.com/wallet/docs/manage-vaults)\n- [Transactions](https://docs.cubewire.com/wallet/docs/manage-transactions)\n- [Smart Contracts](https://docs.cubewire.com/wallet/docs/manage-smart-contracts)\n- [Policies & Approvals](https://docs.cubewire.com/wallet/docs/manage-policies)\n- [Networks](https://docs.cubewire.com/wallet/docs/manage-networks)\n\n## Contributing\n\nThis SDK is generated by [Speakeasy](https://www.speakeasy.com). Manual changes to generated files will be overwritten on the next generation. Report issues or feature requests upstream.\n\n## License\n\n[MIT](LICENSE) © Cubewire\n","readmeFilename":"README.md"}