@qnsp/storage-sdk
v0.3.4
Published
TypeScript SDK client for the QNSP storage-service API.
Maintainers
Readme
@qnsp/storage-sdk
TypeScript SDK client for the QNSP storage-service API.
Part of the Quantum-Native Security Platform (QNSP).
Installation
pnpm add @qnsp/storage-sdkQuick Start
import { StorageClient } from "@qnsp/storage-sdk";
const storage = new StorageClient({
baseUrl: "https://api.qnsp.cuilabs.io",
apiKey: "YOUR_API_KEY",
tenantId: "your-tenant-id",
});
const upload = await storage.initiateUpload({
name: "report.pdf",
mimeType: "application/pdf",
sizeBytes: data.byteLength,
});
await storage.uploadPart(upload.uploadId, 1, data);
await storage.completeUpload(upload.uploadId);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
