Provides API endpoints related to global
Summary
Functions
Get global configuration
Update global configuration
Dispose instance
Get global events
Get health
Upgrade opencode
Types
Functions
@spec global_config_get(opts :: keyword()) :: {:ok, OpenCode.Generated.Config.t()} | :error
Get global configuration
Retrieve the current global OpenCode configuration settings and preferences.
@spec global_config_update(body :: OpenCode.Generated.Config.t(), opts :: keyword()) :: {:ok, OpenCode.Generated.Config.t()} | {:error, OpenCode.Generated.BadRequestError.t()}
Update global configuration
Update global OpenCode configuration settings and preferences.
Request Body
Content Types: application/json
Dispose instance
Clean up and dispose all OpenCode instances, releasing all resources.
@spec global_event(opts :: keyword()) :: {:ok, OpenCode.Generated.GlobalEvent.t()} | :error
Get global events
Subscribe to global events from the OpenCode system using server-sent events.
@spec global_health(opts :: keyword()) :: {:ok, global_health_200_json_resp()} | :error
Get health
Get health information about the OpenCode server.
@spec global_upgrade(body :: map(), opts :: keyword()) :: {:ok, global_upgrade_200_json_resp()} | {:error, OpenCode.Generated.BadRequestError.t()}
Upgrade opencode
Upgrade opencode to the specified version or latest if not specified.
Request Body
Content Types: application/json