MCPcopy Create free account
hub / github.com/arctic-cli/interface / revert

Method revert

packages/sdk/js/src/gen/sdk.gen.ts:681–690  ·  view source on GitHub ↗

* Revert a message

(options: Options<SessionRevertData, ThrowOnError>)

Source from the content-addressed store, hash-verified

679 * Revert a message
680 */
681 public revert<ThrowOnError extends boolean = false>(options: Options<SessionRevertData, ThrowOnError>) {
682 return (options.client ?? this._client).post<SessionRevertResponses, SessionRevertErrors, ThrowOnError>({
683 url: "/session/{id}/revert",
684 ...options,
685 headers: {
686 "Content-Type": "application/json",
687 ...options.headers,
688 },
689 })
690 }
691
692 /**
693 * Restore all reverted messages

Callers 5

snapshot.test.tsFile · 0.45
DialogMessageFunction · 0.45
SessionFunction · 0.45
revertFunction · 0.45
server.tsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected