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 anactor 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.
MeshQuError:
Types
The SDK re-exports key types from@meshqu/types: