ReferenceSDK
Stores
The Store interface and the three implementations.
Store
Prop
Type
Approval records
Prop
Type
StoredApproval extends it with signature and signedAt.
Audit entries
interface AuditEntry { ts: string; planId: string; step: number; kind: string; summary: string; data?: Record<string, unknown> }kind values used by the SDK include plan, simulation, guardian-request, guardian-signed, tx, error and info.
Implementations
| Function | Import | Notes |
|---|---|---|
memoryStore() | @yashjain99/mandate-sdk | default |
fileStore(dir) | @yashjain99/mandate-sdk | plans/<id>.json, approvals/…, audit.jsonl; ids must match ^[A-Za-z0-9_-]{1,80}$ |
redisStore(redis, prefix = "mandate") | @yashjain99/mandate-sdk/store-redis | any RedisLike client, designed for @upstash/redis |
Prop
Type
See Choose a store for when to use which.