Provides API endpoints related to sync
Summary
Types
Functions
@spec sync_history_list(body :: map(), opts :: keyword()) :: {:ok, [sync_history_list_200_json_resp()]} | {:error, OpenCode.Generated.BadRequestError.t()}
List sync events
List sync events for all aggregates. Keys are aggregate IDs the client already knows about, values are the last known sequence ID. Events with seq > value are returned for those aggregates. Aggregates not listed in the input get their full history.
Options
directoryworkspace
Request Body
Content Types: application/json
@spec sync_replay(body :: map(), opts :: keyword()) :: {:ok, sync_replay_200_json_resp()} | {:error, OpenCode.Generated.BadRequestError.t()}
Replay sync events
Validate and replay a complete sync event history.
Options
directoryworkspace
Request Body
Content Types: application/json
Start workspace sync
Start sync loops for workspaces in the current project that have active sessions.
Options
directoryworkspace
@spec sync_steal(body :: map(), opts :: keyword()) :: {:ok, sync_steal_200_json_resp()} | {:error, OpenCode.Generated.BadRequestError.t()}
Steal session into workspace
Update a session to belong to the current workspace through the sync event system.
Options
directoryworkspace
Request Body
Content Types: application/json