chore: generate

This commit is contained in:
GitHub Action
2026-01-20 13:34:20 +00:00
parent d77cbf9c46
commit 47fa496701
7 changed files with 53 additions and 135 deletions
-39
View File
@@ -32,9 +32,6 @@ import type {
FindSymbolsResponses,
FindTextResponses,
FormatterStatusResponses,
GlobalConfigGetResponses,
GlobalConfigUpdateErrors,
GlobalConfigUpdateResponses,
GlobalDisposeResponses,
GlobalEventResponses,
GlobalHealthResponses,
@@ -252,42 +249,6 @@ export class Global extends HeyApiClient {
...options,
})
}
/**
* Get global configuration
*
* Retrieve the global OpenCode configuration settings and preferences.
*/
public configGet<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
return (options?.client ?? this.client).get<GlobalConfigGetResponses, unknown, ThrowOnError>({
url: "/global/config",
...options,
})
}
/**
* Update global configuration
*
* Update global OpenCode configuration settings and preferences.
*/
public configUpdate<ThrowOnError extends boolean = false>(
parameters?: {
config?: Config2
},
options?: Options<never, ThrowOnError>,
) {
const params = buildClientParams([parameters], [{ args: [{ key: "config", map: "body" }] }])
return (options?.client ?? this.client).patch<GlobalConfigUpdateResponses, GlobalConfigUpdateErrors, ThrowOnError>({
url: "/global/config",
...options,
...params,
headers: {
"Content-Type": "application/json",
...options?.headers,
...params.headers,
},
})
}
}
export class Project extends HeyApiClient {