Transaction History
transaction-historyUndo or redo staged revisions in the active transaction without writing source files; pass the current snapshot and use the returned snapshot for subsequent mutations.
Instructions
Undoes or redoes one staged revision within the active transaction, changing the in-memory solution without writing source files. Use this to revise staged work; use transaction-rollback to discard the entire transaction. Supply the current expectedSnapshot and use the returned snapshot for subsequent mutations. The returned transaction reports canUndo and canRedo; a move beyond available history is rejected. A conflicted transaction must be rolled back before history can change.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| direction | Yes | Direction to move through transaction history: Undo or Redo. | |
| workspace | No | Provide workspaceId, alias, path, or any combination. | |
| expectedSnapshot | Yes | Echo the snapshot returned with the data or transaction state used to construct this request. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||