Mandatedocs
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

FunctionImportNotes
memoryStore()@yashjain99/mandate-sdkdefault
fileStore(dir)@yashjain99/mandate-sdkplans/<id>.json, approvals/…, audit.jsonl; ids must match ^[A-Za-z0-9_-]{1,80}$
redisStore(redis, prefix = "mandate")@yashjain99/mandate-sdk/store-redisany RedisLike client, designed for @upstash/redis

Prop

Type

See Choose a store for when to use which.

On this page