API and exports
Package identity
| Field | Value |
|---|---|
| Package | @qentrah/sdk |
| Version inspected | 3.0.0-beta.31 |
| License | MIT |
| Module type | module |
Public import paths
| Import path | Published target |
|---|---|
@qentrah/sdk | ./dist/index.d.ts |
@qentrah/sdk/package.json | ./package.json |
CLI entry points
qentrah-sdk→dist/cli.cjs.
Client resources
createClient returns content, collections, collection(name), documents, media, auth, system, setToken, and setApiKey.
Client options
url is required. Optional fields are apiKey, token, tenant, fetch, and headers. Inject fetch for testing or a host-specific fetch implementation.
List contracts
Content list options include limit, offset, status, sort, dir, fields, include, where, and resolveVariables. Document lists require type and optionally accept locale, limit, cursor, sort, dir, filter, and facet. Content returns {data, meta}; documents return {data, nextCursor}.
Timestamp helpers
Use secondsToDate for document timestamps and msToDate for content timestamps. The two APIs use different timestamp units. QentrahError aliases the exported SonicError; both refer to the same error implementation.
Inspect the original release
Open the versioned npm page or download its published archive. The archive includes the actual executable files and declarations used to write these guides.
Source captured: 2026-10-11