Provides API endpoints related to workspace
Summary
Functions
List workspace adapters
Create workspace
List workspaces
Remove workspace
Restore session into workspace
Workspace status
Types
Functions
@spec experimental_workspace_adapter_list(opts :: keyword()) :: {:ok, [experimental_workspace_adapter_list_200_json_resp()]} | :error
List workspace adapters
List all available workspace adapters for the current project.
Options
directoryworkspace
@spec experimental_workspace_create(body :: map(), opts :: keyword()) :: {:ok, t()} | {:error, OpenCode.Generated.BadRequestError.t()}
Create workspace
Create a workspace for the current project.
Options
directoryworkspace
Request Body
Content Types: application/json
List workspaces
List all workspaces.
Options
directoryworkspace
@spec experimental_workspace_remove(id :: String.t(), opts :: keyword()) :: {:ok, t()} | {:error, OpenCode.Generated.BadRequestError.t()}
Remove workspace
Remove an existing workspace.
Options
directoryworkspace
@spec experimental_workspace_session_restore( id :: String.t(), body :: map(), opts :: keyword() ) :: {:ok, experimental_workspace_session_restore_200_json_resp()} | {:error, OpenCode.Generated.BadRequestError.t()}
Restore session into workspace
Replay a session's sync events into the target workspace in batches.
Options
directoryworkspace
Request Body
Content Types: application/json
@spec experimental_workspace_status(opts :: keyword()) :: {:ok, [experimental_workspace_status_200_json_resp()]} | :error
Workspace status
Get connection status for workspaces in the current project.
Options
directoryworkspace