QNSI

Build Pattern · TypeScript

Build a PQC-Secured Contract Management Platform

Source-linked contract-management integration pattern spanning storage, search, AI, and audit surfaces.

Evaluate a source-linked contract-management integration across Vault, SSE-X, AI Orchestrator, and Audit contracts. End-to-end retention, encrypted search, enclave processing, and audit behavior are NOT VERIFIED.

Verification boundary: Source presence and snippet rendering do not prove mounted routes, encryption semantics, retention, AI isolation, audit coverage, or deployment behavior; all remain NOT VERIFIED.

NOT VERIFIEDDeployment timing
TypeScriptPrimary SDK
4Source surfaces

QNSI services used

Stack

Code

Published SDK calls

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

Store a contract + index for clause searchtypescript
import { QnsiClient } from "@heossihq/qnsi";

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

// Source-linked Vault call; PQC envelope execution is NOT VERIFIED
const secret = await qnsp.vault.createSecret({
  name: `contract:${contractId}`,
  payloadB64: pdfBase64,
  retention: { lockUntil: "2055-12-31" },
});

// 2. Extract + index clauses for encrypted search
await qnsp.search.upsertVectors("contracts", [{
  id: contractId,
  vector: clauseEmbedding,
  metadata: { counterparty, signedAt },
}]);

// 3. Audit
await qnsp.audit.logEvent({
  eventType: "contract.created",
  payload: { contractId, secretId: secret.id },
});
Clause search across encrypted indextypescript
const hits = await qnsp.search.query("contracts", {
  vector: queryEmbedding,
  topK: 20,
  filter: { counterparty: "Acme Corp" },
});

// hits[].id maps back to vault secret IDs - fetch under access control
for (const hit of hits.matches) {
  const secret = await qnsp.vault.getSecret(`contract:${hit.id}`);
  // decrypted plaintext is in secret.payloadB64
}

Evaluate

Inspect the source-linked integration surface