|
|
@@ -4,18 +4,23 @@ import { client } from "./client.gen.js"
|
|
|
import { buildClientParams, type Client, type Options as Options2, type TDataShape } from "./client/index.js"
|
|
|
import type {
|
|
|
AgentPartInput,
|
|
|
+ AppAgentsErrors,
|
|
|
AppAgentsResponses,
|
|
|
AppLogErrors,
|
|
|
AppLogResponses,
|
|
|
+ AppSkillsErrors,
|
|
|
AppSkillsResponses,
|
|
|
Auth as Auth3,
|
|
|
AuthRemoveErrors,
|
|
|
AuthRemoveResponses,
|
|
|
AuthSetErrors,
|
|
|
AuthSetResponses,
|
|
|
+ CommandListErrors,
|
|
|
CommandListResponses,
|
|
|
Config as Config3,
|
|
|
+ ConfigGetErrors,
|
|
|
ConfigGetResponses,
|
|
|
+ ConfigProvidersErrors,
|
|
|
ConfigProvidersResponses,
|
|
|
ConfigUpdateErrors,
|
|
|
ConfigUpdateResponses,
|
|
|
@@ -29,36 +34,55 @@ import type {
|
|
|
ExperimentalConsoleListOrgsErrors,
|
|
|
ExperimentalConsoleListOrgsResponses,
|
|
|
ExperimentalConsoleSwitchOrgResponses,
|
|
|
+ ExperimentalResourceListErrors,
|
|
|
ExperimentalResourceListResponses,
|
|
|
+ ExperimentalSessionListErrors,
|
|
|
ExperimentalSessionListResponses,
|
|
|
+ ExperimentalWorkspaceAdapterListErrors,
|
|
|
ExperimentalWorkspaceAdapterListResponses,
|
|
|
ExperimentalWorkspaceCreateErrors,
|
|
|
ExperimentalWorkspaceCreateResponses,
|
|
|
+ ExperimentalWorkspaceListErrors,
|
|
|
ExperimentalWorkspaceListResponses,
|
|
|
ExperimentalWorkspaceRemoveErrors,
|
|
|
ExperimentalWorkspaceRemoveResponses,
|
|
|
+ ExperimentalWorkspaceStatusErrors,
|
|
|
ExperimentalWorkspaceStatusResponses,
|
|
|
+ ExperimentalWorkspaceSyncListErrors,
|
|
|
ExperimentalWorkspaceSyncListResponses,
|
|
|
ExperimentalWorkspaceWarpErrors,
|
|
|
ExperimentalWorkspaceWarpResponses,
|
|
|
+ FileListErrors,
|
|
|
FileListResponses,
|
|
|
FilePartInput,
|
|
|
FilePartSource,
|
|
|
+ FileReadErrors,
|
|
|
FileReadResponses,
|
|
|
+ FileStatusErrors,
|
|
|
FileStatusResponses,
|
|
|
+ FindFilesErrors,
|
|
|
FindFilesResponses,
|
|
|
+ FindSymbolsErrors,
|
|
|
FindSymbolsResponses,
|
|
|
+ FindTextErrors,
|
|
|
FindTextResponses,
|
|
|
+ FormatterStatusErrors,
|
|
|
FormatterStatusResponses,
|
|
|
+ GlobalConfigGetErrors,
|
|
|
GlobalConfigGetResponses,
|
|
|
GlobalConfigUpdateErrors,
|
|
|
GlobalConfigUpdateResponses,
|
|
|
+ GlobalDisposeErrors,
|
|
|
GlobalDisposeResponses,
|
|
|
+ GlobalEventErrors,
|
|
|
GlobalEventResponses,
|
|
|
+ GlobalHealthErrors,
|
|
|
GlobalHealthResponses,
|
|
|
GlobalUpgradeErrors,
|
|
|
GlobalUpgradeResponses,
|
|
|
+ InstanceDisposeErrors,
|
|
|
InstanceDisposeResponses,
|
|
|
+ LspStatusErrors,
|
|
|
LspStatusResponses,
|
|
|
McpAddErrors,
|
|
|
McpAddResponses,
|
|
|
@@ -70,10 +94,13 @@ import type {
|
|
|
McpAuthRemoveResponses,
|
|
|
McpAuthStartErrors,
|
|
|
McpAuthStartResponses,
|
|
|
+ McpConnectErrors,
|
|
|
McpConnectResponses,
|
|
|
+ McpDisconnectErrors,
|
|
|
McpDisconnectResponses,
|
|
|
McpLocalConfig,
|
|
|
McpRemoteConfig,
|
|
|
+ McpStatusErrors,
|
|
|
McpStatusResponses,
|
|
|
OutputFormat,
|
|
|
Part as Part2,
|
|
|
@@ -81,20 +108,27 @@ import type {
|
|
|
PartDeleteResponses,
|
|
|
PartUpdateErrors,
|
|
|
PartUpdateResponses,
|
|
|
+ PathGetErrors,
|
|
|
PathGetResponses,
|
|
|
+ PermissionListErrors,
|
|
|
PermissionListResponses,
|
|
|
PermissionReplyErrors,
|
|
|
PermissionReplyResponses,
|
|
|
PermissionRespondErrors,
|
|
|
PermissionRespondResponses,
|
|
|
PermissionRuleset,
|
|
|
+ ProjectCurrentErrors,
|
|
|
ProjectCurrentResponses,
|
|
|
+ ProjectInitGitErrors,
|
|
|
ProjectInitGitResponses,
|
|
|
+ ProjectListErrors,
|
|
|
ProjectListResponses,
|
|
|
ProjectUpdateErrors,
|
|
|
ProjectUpdateResponses,
|
|
|
Prompt,
|
|
|
+ ProviderAuthErrors,
|
|
|
ProviderAuthResponses,
|
|
|
+ ProviderListErrors,
|
|
|
ProviderListResponses,
|
|
|
ProviderOauthAuthorizeErrors,
|
|
|
ProviderOauthAuthorizeResponses,
|
|
|
@@ -108,13 +142,16 @@ import type {
|
|
|
PtyCreateResponses,
|
|
|
PtyGetErrors,
|
|
|
PtyGetResponses,
|
|
|
+ PtyListErrors,
|
|
|
PtyListResponses,
|
|
|
PtyRemoveErrors,
|
|
|
PtyRemoveResponses,
|
|
|
+ PtyShellsErrors,
|
|
|
PtyShellsResponses,
|
|
|
PtyUpdateErrors,
|
|
|
PtyUpdateResponses,
|
|
|
QuestionAnswer,
|
|
|
+ QuestionListErrors,
|
|
|
QuestionListResponses,
|
|
|
QuestionRejectErrors,
|
|
|
QuestionRejectResponses,
|
|
|
@@ -133,6 +170,7 @@ import type {
|
|
|
SessionDeleteMessageResponses,
|
|
|
SessionDeleteResponses,
|
|
|
SessionDelivery,
|
|
|
+ SessionDiffErrors,
|
|
|
SessionDiffResponses,
|
|
|
SessionForkErrors,
|
|
|
SessionForkResponses,
|
|
|
@@ -140,6 +178,7 @@ import type {
|
|
|
SessionGetResponses,
|
|
|
SessionInitErrors,
|
|
|
SessionInitResponses,
|
|
|
+ SessionListErrors,
|
|
|
SessionListResponses,
|
|
|
SessionMessageErrors,
|
|
|
SessionMessageResponses,
|
|
|
@@ -172,6 +211,7 @@ import type {
|
|
|
SyncHistoryListResponses,
|
|
|
SyncReplayErrors,
|
|
|
SyncReplayResponses,
|
|
|
+ SyncStartErrors,
|
|
|
SyncStartResponses,
|
|
|
SyncStealErrors,
|
|
|
SyncStealResponses,
|
|
|
@@ -182,20 +222,29 @@ import type {
|
|
|
ToolListResponses,
|
|
|
TuiAppendPromptErrors,
|
|
|
TuiAppendPromptResponses,
|
|
|
+ TuiClearPromptErrors,
|
|
|
TuiClearPromptResponses,
|
|
|
+ TuiControlNextErrors,
|
|
|
TuiControlNextResponses,
|
|
|
+ TuiControlResponseErrors,
|
|
|
TuiControlResponseResponses,
|
|
|
TuiExecuteCommandErrors,
|
|
|
TuiExecuteCommandResponses,
|
|
|
+ TuiOpenHelpErrors,
|
|
|
TuiOpenHelpResponses,
|
|
|
+ TuiOpenModelsErrors,
|
|
|
TuiOpenModelsResponses,
|
|
|
+ TuiOpenSessionsErrors,
|
|
|
TuiOpenSessionsResponses,
|
|
|
+ TuiOpenThemesErrors,
|
|
|
TuiOpenThemesResponses,
|
|
|
TuiPublishErrors,
|
|
|
TuiPublishResponses,
|
|
|
TuiSelectSessionErrors,
|
|
|
TuiSelectSessionResponses,
|
|
|
+ TuiShowToastErrors,
|
|
|
TuiShowToastResponses,
|
|
|
+ TuiSubmitPromptErrors,
|
|
|
TuiSubmitPromptResponses,
|
|
|
V2ModelListErrors,
|
|
|
V2ModelListResponses,
|
|
|
@@ -217,9 +266,13 @@ import type {
|
|
|
V2SessionWaitResponses,
|
|
|
VcsApplyErrors,
|
|
|
VcsApplyResponses,
|
|
|
+ VcsDiffErrors,
|
|
|
+ VcsDiffRawErrors,
|
|
|
VcsDiffRawResponses,
|
|
|
VcsDiffResponses,
|
|
|
+ VcsGetErrors,
|
|
|
VcsGetResponses,
|
|
|
+ VcsStatusErrors,
|
|
|
VcsStatusResponses,
|
|
|
WorktreeCreateErrors,
|
|
|
WorktreeCreateInput,
|
|
|
@@ -402,7 +455,7 @@ export class App extends HeyApiClient {
|
|
|
},
|
|
|
],
|
|
|
)
|
|
|
- return (options?.client ?? this.client).get<AppAgentsResponses, unknown, ThrowOnError>({
|
|
|
+ return (options?.client ?? this.client).get<AppAgentsResponses, AppAgentsErrors, ThrowOnError>({
|
|
|
url: "/agent",
|
|
|
...options,
|
|
|
...params,
|
|
|
@@ -432,7 +485,7 @@ export class App extends HeyApiClient {
|
|
|
},
|
|
|
],
|
|
|
)
|
|
|
- return (options?.client ?? this.client).get<AppSkillsResponses, unknown, ThrowOnError>({
|
|
|
+ return (options?.client ?? this.client).get<AppSkillsResponses, AppSkillsErrors, ThrowOnError>({
|
|
|
url: "/skill",
|
|
|
...options,
|
|
|
...params,
|
|
|
@@ -447,7 +500,7 @@ export class Config extends HeyApiClient {
|
|
|
* Retrieve the current global OpenCode configuration settings and preferences.
|
|
|
*/
|
|
|
public get<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
|
|
|
- return (options?.client ?? this.client).get<GlobalConfigGetResponses, unknown, ThrowOnError>({
|
|
|
+ return (options?.client ?? this.client).get<GlobalConfigGetResponses, GlobalConfigGetErrors, ThrowOnError>({
|
|
|
url: "/global/config",
|
|
|
...options,
|
|
|
})
|
|
|
@@ -485,7 +538,7 @@ export class Global extends HeyApiClient {
|
|
|
* Get health information about the OpenCode server.
|
|
|
*/
|
|
|
public health<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
|
|
|
- return (options?.client ?? this.client).get<GlobalHealthResponses, unknown, ThrowOnError>({
|
|
|
+ return (options?.client ?? this.client).get<GlobalHealthResponses, GlobalHealthErrors, ThrowOnError>({
|
|
|
url: "/global/health",
|
|
|
...options,
|
|
|
})
|
|
|
@@ -497,7 +550,7 @@ export class Global extends HeyApiClient {
|
|
|
* Subscribe to global events from the OpenCode system using server-sent events.
|
|
|
*/
|
|
|
public event<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
|
|
|
- return (options?.client ?? this.client).sse.get<GlobalEventResponses, unknown, ThrowOnError>({
|
|
|
+ return (options?.client ?? this.client).sse.get<GlobalEventResponses, GlobalEventErrors, ThrowOnError>({
|
|
|
url: "/global/event",
|
|
|
...options,
|
|
|
})
|
|
|
@@ -509,7 +562,7 @@ export class Global extends HeyApiClient {
|
|
|
* Clean up and dispose all OpenCode instances, releasing all resources.
|
|
|
*/
|
|
|
public dispose<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
|
|
|
- return (options?.client ?? this.client).post<GlobalDisposeResponses, unknown, ThrowOnError>({
|
|
|
+ return (options?.client ?? this.client).post<GlobalDisposeResponses, GlobalDisposeErrors, ThrowOnError>({
|
|
|
url: "/global/dispose",
|
|
|
...options,
|
|
|
})
|
|
|
@@ -601,7 +654,7 @@ export class Config2 extends HeyApiClient {
|
|
|
},
|
|
|
],
|
|
|
)
|
|
|
- return (options?.client ?? this.client).get<ConfigGetResponses, unknown, ThrowOnError>({
|
|
|
+ return (options?.client ?? this.client).get<ConfigGetResponses, ConfigGetErrors, ThrowOnError>({
|
|
|
url: "/config",
|
|
|
...options,
|
|
|
...params,
|
|
|
@@ -668,7 +721,7 @@ export class Config2 extends HeyApiClient {
|
|
|
},
|
|
|
],
|
|
|
)
|
|
|
- return (options?.client ?? this.client).get<ConfigProvidersResponses, unknown, ThrowOnError>({
|
|
|
+ return (options?.client ?? this.client).get<ConfigProvidersResponses, ConfigProvidersErrors, ThrowOnError>({
|
|
|
url: "/config/providers",
|
|
|
...options,
|
|
|
...params,
|
|
|
@@ -821,7 +874,11 @@ export class Session extends HeyApiClient {
|
|
|
},
|
|
|
],
|
|
|
)
|
|
|
- return (options?.client ?? this.client).get<ExperimentalSessionListResponses, unknown, ThrowOnError>({
|
|
|
+ return (options?.client ?? this.client).get<
|
|
|
+ ExperimentalSessionListResponses,
|
|
|
+ ExperimentalSessionListErrors,
|
|
|
+ ThrowOnError
|
|
|
+ >({
|
|
|
url: "/experimental/session",
|
|
|
...options,
|
|
|
...params,
|
|
|
@@ -853,7 +910,11 @@ export class Resource extends HeyApiClient {
|
|
|
},
|
|
|
],
|
|
|
)
|
|
|
- return (options?.client ?? this.client).get<ExperimentalResourceListResponses, unknown, ThrowOnError>({
|
|
|
+ return (options?.client ?? this.client).get<
|
|
|
+ ExperimentalResourceListResponses,
|
|
|
+ ExperimentalResourceListErrors,
|
|
|
+ ThrowOnError
|
|
|
+ >({
|
|
|
url: "/experimental/resource",
|
|
|
...options,
|
|
|
...params,
|
|
|
@@ -885,7 +946,11 @@ export class Adapter extends HeyApiClient {
|
|
|
},
|
|
|
],
|
|
|
)
|
|
|
- return (options?.client ?? this.client).get<ExperimentalWorkspaceAdapterListResponses, unknown, ThrowOnError>({
|
|
|
+ return (options?.client ?? this.client).get<
|
|
|
+ ExperimentalWorkspaceAdapterListResponses,
|
|
|
+ ExperimentalWorkspaceAdapterListErrors,
|
|
|
+ ThrowOnError
|
|
|
+ >({
|
|
|
url: "/experimental/workspace/adapter",
|
|
|
...options,
|
|
|
...params,
|
|
|
@@ -917,7 +982,11 @@ export class Workspace extends HeyApiClient {
|
|
|
},
|
|
|
],
|
|
|
)
|
|
|
- return (options?.client ?? this.client).get<ExperimentalWorkspaceListResponses, unknown, ThrowOnError>({
|
|
|
+ return (options?.client ?? this.client).get<
|
|
|
+ ExperimentalWorkspaceListResponses,
|
|
|
+ ExperimentalWorkspaceListErrors,
|
|
|
+ ThrowOnError
|
|
|
+ >({
|
|
|
url: "/experimental/workspace",
|
|
|
...options,
|
|
|
...params,
|
|
|
@@ -994,7 +1063,11 @@ export class Workspace extends HeyApiClient {
|
|
|
},
|
|
|
],
|
|
|
)
|
|
|
- return (options?.client ?? this.client).post<ExperimentalWorkspaceSyncListResponses, unknown, ThrowOnError>({
|
|
|
+ return (options?.client ?? this.client).post<
|
|
|
+ ExperimentalWorkspaceSyncListResponses,
|
|
|
+ ExperimentalWorkspaceSyncListErrors,
|
|
|
+ ThrowOnError
|
|
|
+ >({
|
|
|
url: "/experimental/workspace/sync-list",
|
|
|
...options,
|
|
|
...params,
|
|
|
@@ -1024,7 +1097,11 @@ export class Workspace extends HeyApiClient {
|
|
|
},
|
|
|
],
|
|
|
)
|
|
|
- return (options?.client ?? this.client).get<ExperimentalWorkspaceStatusResponses, unknown, ThrowOnError>({
|
|
|
+ return (options?.client ?? this.client).get<
|
|
|
+ ExperimentalWorkspaceStatusResponses,
|
|
|
+ ExperimentalWorkspaceStatusErrors,
|
|
|
+ ThrowOnError
|
|
|
+ >({
|
|
|
url: "/experimental/workspace/status",
|
|
|
...options,
|
|
|
...params,
|
|
|
@@ -1375,7 +1452,7 @@ export class Find extends HeyApiClient {
|
|
|
},
|
|
|
],
|
|
|
)
|
|
|
- return (options?.client ?? this.client).get<FindTextResponses, unknown, ThrowOnError>({
|
|
|
+ return (options?.client ?? this.client).get<FindTextResponses, FindTextErrors, ThrowOnError>({
|
|
|
url: "/find",
|
|
|
...options,
|
|
|
...params,
|
|
|
@@ -1413,7 +1490,7 @@ export class Find extends HeyApiClient {
|
|
|
},
|
|
|
],
|
|
|
)
|
|
|
- return (options?.client ?? this.client).get<FindFilesResponses, unknown, ThrowOnError>({
|
|
|
+ return (options?.client ?? this.client).get<FindFilesResponses, FindFilesErrors, ThrowOnError>({
|
|
|
url: "/find/file",
|
|
|
...options,
|
|
|
...params,
|
|
|
@@ -1445,7 +1522,7 @@ export class Find extends HeyApiClient {
|
|
|
},
|
|
|
],
|
|
|
)
|
|
|
- return (options?.client ?? this.client).get<FindSymbolsResponses, unknown, ThrowOnError>({
|
|
|
+ return (options?.client ?? this.client).get<FindSymbolsResponses, FindSymbolsErrors, ThrowOnError>({
|
|
|
url: "/find/symbol",
|
|
|
...options,
|
|
|
...params,
|
|
|
@@ -1479,7 +1556,7 @@ export class File extends HeyApiClient {
|
|
|
},
|
|
|
],
|
|
|
)
|
|
|
- return (options?.client ?? this.client).get<FileListResponses, unknown, ThrowOnError>({
|
|
|
+ return (options?.client ?? this.client).get<FileListResponses, FileListErrors, ThrowOnError>({
|
|
|
url: "/file",
|
|
|
...options,
|
|
|
...params,
|
|
|
@@ -1511,7 +1588,7 @@ export class File extends HeyApiClient {
|
|
|
},
|
|
|
],
|
|
|
)
|
|
|
- return (options?.client ?? this.client).get<FileReadResponses, unknown, ThrowOnError>({
|
|
|
+ return (options?.client ?? this.client).get<FileReadResponses, FileReadErrors, ThrowOnError>({
|
|
|
url: "/file/content",
|
|
|
...options,
|
|
|
...params,
|
|
|
@@ -1541,7 +1618,7 @@ export class File extends HeyApiClient {
|
|
|
},
|
|
|
],
|
|
|
)
|
|
|
- return (options?.client ?? this.client).get<FileStatusResponses, unknown, ThrowOnError>({
|
|
|
+ return (options?.client ?? this.client).get<FileStatusResponses, FileStatusErrors, ThrowOnError>({
|
|
|
url: "/file/status",
|
|
|
...options,
|
|
|
...params,
|
|
|
@@ -1573,7 +1650,7 @@ export class Instance extends HeyApiClient {
|
|
|
},
|
|
|
],
|
|
|
)
|
|
|
- return (options?.client ?? this.client).post<InstanceDisposeResponses, unknown, ThrowOnError>({
|
|
|
+ return (options?.client ?? this.client).post<InstanceDisposeResponses, InstanceDisposeErrors, ThrowOnError>({
|
|
|
url: "/instance/dispose",
|
|
|
...options,
|
|
|
...params,
|
|
|
@@ -1605,7 +1682,7 @@ export class Path extends HeyApiClient {
|
|
|
},
|
|
|
],
|
|
|
)
|
|
|
- return (options?.client ?? this.client).get<PathGetResponses, unknown, ThrowOnError>({
|
|
|
+ return (options?.client ?? this.client).get<PathGetResponses, PathGetErrors, ThrowOnError>({
|
|
|
url: "/path",
|
|
|
...options,
|
|
|
...params,
|
|
|
@@ -1637,7 +1714,7 @@ export class Diff extends HeyApiClient {
|
|
|
},
|
|
|
],
|
|
|
)
|
|
|
- return (options?.client ?? this.client).get<VcsDiffRawResponses, unknown, ThrowOnError>({
|
|
|
+ return (options?.client ?? this.client).get<VcsDiffRawResponses, VcsDiffRawErrors, ThrowOnError>({
|
|
|
url: "/vcs/diff/raw",
|
|
|
...options,
|
|
|
...params,
|
|
|
@@ -1669,7 +1746,7 @@ export class Vcs extends HeyApiClient {
|
|
|
},
|
|
|
],
|
|
|
)
|
|
|
- return (options?.client ?? this.client).get<VcsGetResponses, unknown, ThrowOnError>({
|
|
|
+ return (options?.client ?? this.client).get<VcsGetResponses, VcsGetErrors, ThrowOnError>({
|
|
|
url: "/vcs",
|
|
|
...options,
|
|
|
...params,
|
|
|
@@ -1699,7 +1776,7 @@ export class Vcs extends HeyApiClient {
|
|
|
},
|
|
|
],
|
|
|
)
|
|
|
- return (options?.client ?? this.client).get<VcsStatusResponses, unknown, ThrowOnError>({
|
|
|
+ return (options?.client ?? this.client).get<VcsStatusResponses, VcsStatusErrors, ThrowOnError>({
|
|
|
url: "/vcs/status",
|
|
|
...options,
|
|
|
...params,
|
|
|
@@ -1731,7 +1808,7 @@ export class Vcs extends HeyApiClient {
|
|
|
},
|
|
|
],
|
|
|
)
|
|
|
- return (options?.client ?? this.client).get<VcsDiffResponses, unknown, ThrowOnError>({
|
|
|
+ return (options?.client ?? this.client).get<VcsDiffResponses, VcsDiffErrors, ThrowOnError>({
|
|
|
url: "/vcs/diff",
|
|
|
...options,
|
|
|
...params,
|
|
|
@@ -1805,7 +1882,7 @@ export class Command extends HeyApiClient {
|
|
|
},
|
|
|
],
|
|
|
)
|
|
|
- return (options?.client ?? this.client).get<CommandListResponses, unknown, ThrowOnError>({
|
|
|
+ return (options?.client ?? this.client).get<CommandListResponses, CommandListErrors, ThrowOnError>({
|
|
|
url: "/command",
|
|
|
...options,
|
|
|
...params,
|
|
|
@@ -1837,7 +1914,7 @@ export class Lsp extends HeyApiClient {
|
|
|
},
|
|
|
],
|
|
|
)
|
|
|
- return (options?.client ?? this.client).get<LspStatusResponses, unknown, ThrowOnError>({
|
|
|
+ return (options?.client ?? this.client).get<LspStatusResponses, LspStatusErrors, ThrowOnError>({
|
|
|
url: "/lsp",
|
|
|
...options,
|
|
|
...params,
|
|
|
@@ -1869,7 +1946,7 @@ export class Formatter extends HeyApiClient {
|
|
|
},
|
|
|
],
|
|
|
)
|
|
|
- return (options?.client ?? this.client).get<FormatterStatusResponses, unknown, ThrowOnError>({
|
|
|
+ return (options?.client ?? this.client).get<FormatterStatusResponses, FormatterStatusErrors, ThrowOnError>({
|
|
|
url: "/formatter",
|
|
|
...options,
|
|
|
...params,
|
|
|
@@ -2040,7 +2117,7 @@ export class Mcp extends HeyApiClient {
|
|
|
},
|
|
|
],
|
|
|
)
|
|
|
- return (options?.client ?? this.client).get<McpStatusResponses, unknown, ThrowOnError>({
|
|
|
+ return (options?.client ?? this.client).get<McpStatusResponses, McpStatusErrors, ThrowOnError>({
|
|
|
url: "/mcp",
|
|
|
...options,
|
|
|
...params,
|
|
|
@@ -2109,7 +2186,7 @@ export class Mcp extends HeyApiClient {
|
|
|
},
|
|
|
],
|
|
|
)
|
|
|
- return (options?.client ?? this.client).post<McpConnectResponses, unknown, ThrowOnError>({
|
|
|
+ return (options?.client ?? this.client).post<McpConnectResponses, McpConnectErrors, ThrowOnError>({
|
|
|
url: "/mcp/{name}/connect",
|
|
|
...options,
|
|
|
...params,
|
|
|
@@ -2139,7 +2216,7 @@ export class Mcp extends HeyApiClient {
|
|
|
},
|
|
|
],
|
|
|
)
|
|
|
- return (options?.client ?? this.client).post<McpDisconnectResponses, unknown, ThrowOnError>({
|
|
|
+ return (options?.client ?? this.client).post<McpDisconnectResponses, McpDisconnectErrors, ThrowOnError>({
|
|
|
url: "/mcp/{name}/disconnect",
|
|
|
...options,
|
|
|
...params,
|
|
|
@@ -2176,7 +2253,7 @@ export class Project extends HeyApiClient {
|
|
|
},
|
|
|
],
|
|
|
)
|
|
|
- return (options?.client ?? this.client).get<ProjectListResponses, unknown, ThrowOnError>({
|
|
|
+ return (options?.client ?? this.client).get<ProjectListResponses, ProjectListErrors, ThrowOnError>({
|
|
|
url: "/project",
|
|
|
...options,
|
|
|
...params,
|
|
|
@@ -2206,7 +2283,7 @@ export class Project extends HeyApiClient {
|
|
|
},
|
|
|
],
|
|
|
)
|
|
|
- return (options?.client ?? this.client).get<ProjectCurrentResponses, unknown, ThrowOnError>({
|
|
|
+ return (options?.client ?? this.client).get<ProjectCurrentResponses, ProjectCurrentErrors, ThrowOnError>({
|
|
|
url: "/project/current",
|
|
|
...options,
|
|
|
...params,
|
|
|
@@ -2236,7 +2313,7 @@ export class Project extends HeyApiClient {
|
|
|
},
|
|
|
],
|
|
|
)
|
|
|
- return (options?.client ?? this.client).post<ProjectInitGitResponses, unknown, ThrowOnError>({
|
|
|
+ return (options?.client ?? this.client).post<ProjectInitGitResponses, ProjectInitGitErrors, ThrowOnError>({
|
|
|
url: "/project/git/init",
|
|
|
...options,
|
|
|
...params,
|
|
|
@@ -2320,7 +2397,7 @@ export class Pty extends HeyApiClient {
|
|
|
},
|
|
|
],
|
|
|
)
|
|
|
- return (options?.client ?? this.client).get<PtyShellsResponses, unknown, ThrowOnError>({
|
|
|
+ return (options?.client ?? this.client).get<PtyShellsResponses, PtyShellsErrors, ThrowOnError>({
|
|
|
url: "/pty/shells",
|
|
|
...options,
|
|
|
...params,
|
|
|
@@ -2350,7 +2427,7 @@ export class Pty extends HeyApiClient {
|
|
|
},
|
|
|
],
|
|
|
)
|
|
|
- return (options?.client ?? this.client).get<PtyListResponses, unknown, ThrowOnError>({
|
|
|
+ return (options?.client ?? this.client).get<PtyListResponses, PtyListErrors, ThrowOnError>({
|
|
|
url: "/pty",
|
|
|
...options,
|
|
|
...params,
|
|
|
@@ -2601,7 +2678,7 @@ export class Question extends HeyApiClient {
|
|
|
},
|
|
|
],
|
|
|
)
|
|
|
- return (options?.client ?? this.client).get<QuestionListResponses, unknown, ThrowOnError>({
|
|
|
+ return (options?.client ?? this.client).get<QuestionListResponses, QuestionListErrors, ThrowOnError>({
|
|
|
url: "/question",
|
|
|
...options,
|
|
|
...params,
|
|
|
@@ -2704,7 +2781,7 @@ export class Permission extends HeyApiClient {
|
|
|
},
|
|
|
],
|
|
|
)
|
|
|
- return (options?.client ?? this.client).get<PermissionListResponses, unknown, ThrowOnError>({
|
|
|
+ return (options?.client ?? this.client).get<PermissionListResponses, PermissionListErrors, ThrowOnError>({
|
|
|
url: "/permission",
|
|
|
...options,
|
|
|
...params,
|
|
|
@@ -2914,7 +2991,7 @@ export class Provider extends HeyApiClient {
|
|
|
},
|
|
|
],
|
|
|
)
|
|
|
- return (options?.client ?? this.client).get<ProviderListResponses, unknown, ThrowOnError>({
|
|
|
+ return (options?.client ?? this.client).get<ProviderListResponses, ProviderListErrors, ThrowOnError>({
|
|
|
url: "/provider",
|
|
|
...options,
|
|
|
...params,
|
|
|
@@ -2944,7 +3021,7 @@ export class Provider extends HeyApiClient {
|
|
|
},
|
|
|
],
|
|
|
)
|
|
|
- return (options?.client ?? this.client).get<ProviderAuthResponses, unknown, ThrowOnError>({
|
|
|
+ return (options?.client ?? this.client).get<ProviderAuthResponses, ProviderAuthErrors, ThrowOnError>({
|
|
|
url: "/provider/auth",
|
|
|
...options,
|
|
|
...params,
|
|
|
@@ -2993,7 +3070,7 @@ export class Session2 extends HeyApiClient {
|
|
|
},
|
|
|
],
|
|
|
)
|
|
|
- return (options?.client ?? this.client).get<SessionListResponses, unknown, ThrowOnError>({
|
|
|
+ return (options?.client ?? this.client).get<SessionListResponses, SessionListErrors, ThrowOnError>({
|
|
|
url: "/session",
|
|
|
...options,
|
|
|
...params,
|
|
|
@@ -3281,7 +3358,7 @@ export class Session2 extends HeyApiClient {
|
|
|
},
|
|
|
],
|
|
|
)
|
|
|
- return (options?.client ?? this.client).get<SessionDiffResponses, unknown, ThrowOnError>({
|
|
|
+ return (options?.client ?? this.client).get<SessionDiffResponses, SessionDiffErrors, ThrowOnError>({
|
|
|
url: "/session/{sessionID}/diff",
|
|
|
...options,
|
|
|
...params,
|
|
|
@@ -4059,7 +4136,7 @@ export class Sync extends HeyApiClient {
|
|
|
},
|
|
|
],
|
|
|
)
|
|
|
- return (options?.client ?? this.client).post<SyncStartResponses, unknown, ThrowOnError>({
|
|
|
+ return (options?.client ?? this.client).post<SyncStartResponses, SyncStartErrors, ThrowOnError>({
|
|
|
url: "/sync/start",
|
|
|
...options,
|
|
|
...params,
|
|
|
@@ -4507,7 +4584,7 @@ export class Control extends HeyApiClient {
|
|
|
},
|
|
|
],
|
|
|
)
|
|
|
- return (options?.client ?? this.client).get<TuiControlNextResponses, unknown, ThrowOnError>({
|
|
|
+ return (options?.client ?? this.client).get<TuiControlNextResponses, TuiControlNextErrors, ThrowOnError>({
|
|
|
url: "/tui/control/next",
|
|
|
...options,
|
|
|
...params,
|
|
|
@@ -4539,7 +4616,7 @@ export class Control extends HeyApiClient {
|
|
|
},
|
|
|
],
|
|
|
)
|
|
|
- return (options?.client ?? this.client).post<TuiControlResponseResponses, unknown, ThrowOnError>({
|
|
|
+ return (options?.client ?? this.client).post<TuiControlResponseResponses, TuiControlResponseErrors, ThrowOnError>({
|
|
|
url: "/tui/control/response",
|
|
|
...options,
|
|
|
...params,
|
|
|
@@ -4613,7 +4690,7 @@ export class Tui extends HeyApiClient {
|
|
|
},
|
|
|
],
|
|
|
)
|
|
|
- return (options?.client ?? this.client).post<TuiOpenHelpResponses, unknown, ThrowOnError>({
|
|
|
+ return (options?.client ?? this.client).post<TuiOpenHelpResponses, TuiOpenHelpErrors, ThrowOnError>({
|
|
|
url: "/tui/open-help",
|
|
|
...options,
|
|
|
...params,
|
|
|
@@ -4643,7 +4720,7 @@ export class Tui extends HeyApiClient {
|
|
|
},
|
|
|
],
|
|
|
)
|
|
|
- return (options?.client ?? this.client).post<TuiOpenSessionsResponses, unknown, ThrowOnError>({
|
|
|
+ return (options?.client ?? this.client).post<TuiOpenSessionsResponses, TuiOpenSessionsErrors, ThrowOnError>({
|
|
|
url: "/tui/open-sessions",
|
|
|
...options,
|
|
|
...params,
|
|
|
@@ -4673,7 +4750,7 @@ export class Tui extends HeyApiClient {
|
|
|
},
|
|
|
],
|
|
|
)
|
|
|
- return (options?.client ?? this.client).post<TuiOpenThemesResponses, unknown, ThrowOnError>({
|
|
|
+ return (options?.client ?? this.client).post<TuiOpenThemesResponses, TuiOpenThemesErrors, ThrowOnError>({
|
|
|
url: "/tui/open-themes",
|
|
|
...options,
|
|
|
...params,
|
|
|
@@ -4703,7 +4780,7 @@ export class Tui extends HeyApiClient {
|
|
|
},
|
|
|
],
|
|
|
)
|
|
|
- return (options?.client ?? this.client).post<TuiOpenModelsResponses, unknown, ThrowOnError>({
|
|
|
+ return (options?.client ?? this.client).post<TuiOpenModelsResponses, TuiOpenModelsErrors, ThrowOnError>({
|
|
|
url: "/tui/open-models",
|
|
|
...options,
|
|
|
...params,
|
|
|
@@ -4733,7 +4810,7 @@ export class Tui extends HeyApiClient {
|
|
|
},
|
|
|
],
|
|
|
)
|
|
|
- return (options?.client ?? this.client).post<TuiSubmitPromptResponses, unknown, ThrowOnError>({
|
|
|
+ return (options?.client ?? this.client).post<TuiSubmitPromptResponses, TuiSubmitPromptErrors, ThrowOnError>({
|
|
|
url: "/tui/submit-prompt",
|
|
|
...options,
|
|
|
...params,
|
|
|
@@ -4763,7 +4840,7 @@ export class Tui extends HeyApiClient {
|
|
|
},
|
|
|
],
|
|
|
)
|
|
|
- return (options?.client ?? this.client).post<TuiClearPromptResponses, unknown, ThrowOnError>({
|
|
|
+ return (options?.client ?? this.client).post<TuiClearPromptResponses, TuiClearPromptErrors, ThrowOnError>({
|
|
|
url: "/tui/clear-prompt",
|
|
|
...options,
|
|
|
...params,
|
|
|
@@ -4838,7 +4915,7 @@ export class Tui extends HeyApiClient {
|
|
|
},
|
|
|
],
|
|
|
)
|
|
|
- return (options?.client ?? this.client).post<TuiShowToastResponses, unknown, ThrowOnError>({
|
|
|
+ return (options?.client ?? this.client).post<TuiShowToastResponses, TuiShowToastErrors, ThrowOnError>({
|
|
|
url: "/tui/show-toast",
|
|
|
...options,
|
|
|
...params,
|