QNSI

Build Pattern · TypeScript

Build WORM-Style Investment Document Archives

Source-linked archive pattern for evaluating retention, audit, and searchable-encryption contracts.

Evaluate an archive workflow against source-linked Vault retention, Audit, and SSE-X contracts. WORM enforcement, regulatory alignment, PQC envelopes, and end-to-end runtime behavior are NOT VERIFIED.

Verification boundary: The pattern is not evidence of WORM enforcement, regulatory compliance, immutable audit coverage, searchable encryption, or deployment behavior; all remain NOT VERIFIED.

NOT VERIFIEDDeployment timing
TypeScriptPrimary SDK
3Source surfaces

QNSI services used

Stack

Code

Published SDK calls

Snippets show source-linked SDK call shapes. Route reachability and deployment behavior remain NOT VERIFIED.

WORM-style retention with SEC 17a-4 compliancetypescript
import { QnsiClient } from "@heossihq/qnsi";

const qnsp = new QnsiClient({ apiKey: process.env.QNSI_API_KEY! });

// Vault with retention lock (immutable until expiry)
const secret = await qnsp.vault.createSecret({
  name: `trade-confirm:${tradeId}`,
  payloadB64: confirmDocBase64,
  retention: {
    lockUntil: "2030-12-31",  // SEC 17a-4: minimum 3 years
    immutable: true,           // WORM enforcement
  },
  metadata: {
    pqcAlgorithm: "ml-kem-768",
    regulatoryClass: "sec-17a-4",
  },
});

// Source-linked Audit call; ML-DSA signing and ingestion are NOT VERIFIED
await qnsp.audit.logEvent({
  eventType: "trade.confirm.archived",
  payload: { tradeId, secretId: secret.id, retainUntil: "2030-12-31" },
});

Evaluate

Inspect the source-linked integration surface