Skip to main content
Manage the subject-keyed state store.

tai states apply

Apply an ordered op batch to a subject’s document.

tai states attach

Attach a template on a state at a path with its parameters and declarations.

tai states attachments

List the templates attached on a state.

tai states consumers

List everything that binds a state — flows, hooks, schedules, agents.

tai states delete

Delete a state with its records, attachments and aliases.

tai states detach

Detach a template from a state.

tai states erase

Erase a subject’s record.

tai states fold

Fold this subject’s record into another canonical subject.

tai states get

Show a state’s declaration, effective schema, attachments and regimes.

tai states get-attachment

Read one template’s attachment on a state (404 when it is not attached).

tai states list

List every declared state.

tai states merge

Shallow-merge a patch into a subject’s document.

tai states prune

Prune every record past its state’s retention horizon.

tai states put

Create or re-declare a state from a declaration document.

tai states read

Read a subject’s record (null when none exists).

tai states replace

Replace a subject’s whole document.
Search a state’s records by document containment.

tai states stats

Show a state’s record counts (total and per subject kind).

tai states subjects

Page the subjects holding a record for a state.

tai states template-jq

Evaluate/apply a state’s template_jq programs.

tai states template-jq apply

Apply an update-purpose template_jq program to a subject’s record.

tai states template-jq eval

Evaluate an input-purpose template_jq program for a subject.

tai states update-attachment

Replace an attachment’s static declaration values, with optional reconcile options.

tai states writes

Page a subject’s write audit trail.