Skip to main content
The @meshqu/client TypeScript client is early access. It is a convenience wrapper over the REST API, which is the primary, supported integration surface. The client is not published to npm, and its public surface — method signatures, options, and exported types — is not stable and may change without notice in any release. Pin a known-good version, and prefer the REST contract for anything you depend on. Contact contact@meshqu.com for access.

Client setup

Options such as timeout and retries are early-access conveniences, not a stability contract — their names, defaults, and behaviour may change. If you need guaranteed timeout and retry semantics, implement them around direct REST calls.

Decisions

Evaluate (dry-run)

client.dryRun() is an alias for client.evaluate().

Record (evaluate + persist)

Record with chain linkage

Recording with actor attribution

Pass an actor object as the third argument to client.record() to attribute the decision to a specific person or system:
actor.id is cryptographically bound to the integrity hash. Other fields are stored for audit display.

List and get decisions

Replay for audit

Record outcome

Policies

Alerts

Webhook subscriptions

Error handling

The typed exception classes below are part of the early-access client surface and may change without notice. The authoritative contract is the HTTP status and error code returned by the REST API — see Errors & Status Codes. Match on those when you need stability.
All client errors extend MeshQuError:
See Errors & Status Codes for the full error taxonomy.

Types

The SDK re-exports key types from @meshqu/types: