@qnsp/vault-sdk
v0.3.3
Published
TypeScript SDK client for the QNSP vault-service API. Provides secret management with envelope encryption, versioning, and rotation.
Maintainers
Readme
@qnsp/vault-sdk
TypeScript SDK client for the QNSP vault-service API. Provides secret management with envelope encryption, versioning, and rotation.
Part of the Quantum-Native Security Platform (QNSP).
Installation
pnpm add @qnsp/vault-sdkQuick Start
import { VaultClient } from "@qnsp/vault-sdk";
const vault = new VaultClient({
baseUrl: "https://api.qnsp.cuilabs.io",
apiKey: "YOUR_API_KEY",
});
const secret = await vault.createSecret({
tenantId: "your-tenant-id",
name: "db/credentials",
payload: btoa(JSON.stringify({ user: "admin", pass: "s3cret" })),
});
const retrieved = await vault.getSecret(secret.id);Documentation
Requirements
- Node.js >= 24.12.0 (
enginesinpackage.json; QNSP monorepo baseline) - A QNSP account and API key — sign up free with GitHub, Google, or email
