@siax/doc0 (0.1.0)
Published 2026-09-22 00:01:08 +00:00 by admin
Installation
@siax:registry=https://git.siax.io/api/packages/sax3l/npm/npm install @siax/doc0@0.1.0"@siax/doc0": "0.1.0"About this package
SIAX DOC0 typed API client — documents, versions, metadata, signatures, retention, search, classification. Zero runtime dependencies (fetch-based, Node >= 18).
@siax/doc0
SIAX DOC0 typed API client — documents, versions, metadata, parser runs, artifacts, segments, signatures, retention, fulltext search, classification.
Zero runtime dependencies (fetch, Node >= 18). The exact wire contract of
contracts/openapi.yaml (sax3l/doc0).
Usage
import { Doc0Client } from '@siax/doc0';
const doc0 = new Doc0Client({
baseUrl: 'https://doc0.siax.io',
bearerToken: process.env.DOC0_API_TOKEN!,
tenantId: process.env.DOC0_TENANT_ID!,
actorId: 'u_console_dev',
});
const doc = await doc0.createDocument({
projectId: 'proj_1',
displayName: 'Contract.pdf',
documentType: 'contract',
file: { bytes: await file.arrayBuffer(), fileName: 'Contract.pdf', mimeType: 'application/pdf' },
});
const hits = await doc0.search({ q: 'förseningsränta', limit: 5 });
Errors: every non-ok response throws Doc0ApiError carrying the API's own
code / message / request_id. Auth is fail-closed — DOC0 verifies every
token (Zitadel service PAT or user JWT) on every call.
Dependencies
Development Dependencies
| ID | Version |
|---|---|
| esbuild | ^0.27.2 |
Details
2026-09-22 00:01:08 +00:00
Assets (1)
Versions (1)
View all
npm
2
SEE LICENSE IN ../../LICENSE
latest
4.4 KiB
doc0-0.1.0.tgz
4.4 KiB
0.1.0
2026-09-22