diff --git a/.stats.yml b/.stats.yml index 9eaab8a..bf53dd4 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 22 openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/opencode%2Fopencode-69b99aaffe10dd5247638b6a34d6c0b3c1cf5300853d12c947151fd946e7fcdb.yml openapi_spec_hash: e2c746cf689d71f04c6e9b1bd92e6356 -config_hash: 6d56a7ca0d6ed899ecdb5c053a8278ae +config_hash: e64b350ea4abbb4d56d49b0adebacb02 diff --git a/api.md b/api.md index 15f2097..d57b73c 100644 --- a/api.md +++ b/api.md @@ -117,3 +117,5 @@ Methods: - client.Session.Share(ctx context.Context, id string) (opencode.Session, error) - client.Session.Summarize(ctx context.Context, id string, body opencode.SessionSummarizeParams) (bool, error) - client.Session.Unshare(ctx context.Context, id string) (opencode.Session, error) + +# Tui diff --git a/client.go b/client.go index 955eb7d..6baf21a 100644 --- a/client.go +++ b/client.go @@ -22,6 +22,7 @@ type Client struct { File *FileService Config *ConfigService Session *SessionService + Tui *TuiService } // DefaultClientOptions read from the environment (OPENCODE_BASE_URL). This should @@ -49,6 +50,7 @@ func NewClient(opts ...option.RequestOption) (r *Client) { r.File = NewFileService(opts...) r.Config = NewConfigService(opts...) r.Session = NewSessionService(opts...) + r.Tui = NewTuiService(opts...) return } diff --git a/tui.go b/tui.go new file mode 100644 index 0000000..c803b03 --- /dev/null +++ b/tui.go @@ -0,0 +1,26 @@ +// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + +package opencode + +import ( + "github.com/sst/opencode-sdk-go/option" +) + +// TuiService contains methods and other services that help with interacting with +// the opencode API. +// +// Note, unlike clients, this service does not read variables from the environment +// automatically. You should not instantiate this service directly, and instead use +// the [NewTuiService] method instead. +type TuiService struct { + Options []option.RequestOption +} + +// NewTuiService generates a new service that applies the given options to each +// request. These options are applied after the parent client's options (if there +// is one), and before any request-specific options. +func NewTuiService(opts ...option.RequestOption) (r *TuiService) { + r = &TuiService{} + r.Options = opts + return +}