chore: generate
This commit is contained in:
+4
-1
@@ -71,7 +71,10 @@ function selectedWorkspaceID(url: URL, sessionWorkspaceID?: WorkspaceID): Worksp
|
|||||||
return sessionWorkspaceID ?? (workspaceParam ? WorkspaceID.make(workspaceParam) : undefined)
|
return sessionWorkspaceID ?? (workspaceParam ? WorkspaceID.make(workspaceParam) : undefined)
|
||||||
}
|
}
|
||||||
|
|
||||||
function selectedV2WorkspaceID(url: URL, sessionWorkspaceID?: WorkspaceID): WorkspaceID | typeof InvalidWorkspaceID | undefined {
|
function selectedV2WorkspaceID(
|
||||||
|
url: URL,
|
||||||
|
sessionWorkspaceID?: WorkspaceID,
|
||||||
|
): WorkspaceID | typeof InvalidWorkspaceID | undefined {
|
||||||
if (sessionWorkspaceID) return sessionWorkspaceID
|
if (sessionWorkspaceID) return sessionWorkspaceID
|
||||||
const workspaceParam = url.searchParams.get("workspace")
|
const workspaceParam = url.searchParams.get("workspace")
|
||||||
if (!workspaceParam) return undefined
|
if (!workspaceParam) return undefined
|
||||||
|
|||||||
@@ -361,7 +361,9 @@ describe("session HttpApi", () => {
|
|||||||
message: "Invalid cursor",
|
message: "Invalid cursor",
|
||||||
})
|
})
|
||||||
|
|
||||||
const mismatchedRouting = yield* request(`/api/session?cursor=${sessionCursor}&directory=/elsewhere`, { headers })
|
const mismatchedRouting = yield* request(`/api/session?cursor=${sessionCursor}&directory=/elsewhere`, {
|
||||||
|
headers,
|
||||||
|
})
|
||||||
expect(mismatchedRouting.status).toBe(400)
|
expect(mismatchedRouting.status).toBe(400)
|
||||||
expect(yield* responseJson(mismatchedRouting)).toMatchObject({
|
expect(yield* responseJson(mismatchedRouting)).toMatchObject({
|
||||||
_tag: "InvalidCursorError",
|
_tag: "InvalidCursorError",
|
||||||
|
|||||||
@@ -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 { buildClientParams, type Client, type Options as Options2, type TDataShape } from "./client/index.js"
|
||||||
import type {
|
import type {
|
||||||
AgentPartInput,
|
AgentPartInput,
|
||||||
|
AppAgentsErrors,
|
||||||
AppAgentsResponses,
|
AppAgentsResponses,
|
||||||
AppLogErrors,
|
AppLogErrors,
|
||||||
AppLogResponses,
|
AppLogResponses,
|
||||||
|
AppSkillsErrors,
|
||||||
AppSkillsResponses,
|
AppSkillsResponses,
|
||||||
Auth as Auth3,
|
Auth as Auth3,
|
||||||
AuthRemoveErrors,
|
AuthRemoveErrors,
|
||||||
AuthRemoveResponses,
|
AuthRemoveResponses,
|
||||||
AuthSetErrors,
|
AuthSetErrors,
|
||||||
AuthSetResponses,
|
AuthSetResponses,
|
||||||
|
CommandListErrors,
|
||||||
CommandListResponses,
|
CommandListResponses,
|
||||||
Config as Config3,
|
Config as Config3,
|
||||||
|
ConfigGetErrors,
|
||||||
ConfigGetResponses,
|
ConfigGetResponses,
|
||||||
|
ConfigProvidersErrors,
|
||||||
ConfigProvidersResponses,
|
ConfigProvidersResponses,
|
||||||
ConfigUpdateErrors,
|
ConfigUpdateErrors,
|
||||||
ConfigUpdateResponses,
|
ConfigUpdateResponses,
|
||||||
@@ -29,36 +34,55 @@ import type {
|
|||||||
ExperimentalConsoleListOrgsErrors,
|
ExperimentalConsoleListOrgsErrors,
|
||||||
ExperimentalConsoleListOrgsResponses,
|
ExperimentalConsoleListOrgsResponses,
|
||||||
ExperimentalConsoleSwitchOrgResponses,
|
ExperimentalConsoleSwitchOrgResponses,
|
||||||
|
ExperimentalResourceListErrors,
|
||||||
ExperimentalResourceListResponses,
|
ExperimentalResourceListResponses,
|
||||||
|
ExperimentalSessionListErrors,
|
||||||
ExperimentalSessionListResponses,
|
ExperimentalSessionListResponses,
|
||||||
|
ExperimentalWorkspaceAdapterListErrors,
|
||||||
ExperimentalWorkspaceAdapterListResponses,
|
ExperimentalWorkspaceAdapterListResponses,
|
||||||
ExperimentalWorkspaceCreateErrors,
|
ExperimentalWorkspaceCreateErrors,
|
||||||
ExperimentalWorkspaceCreateResponses,
|
ExperimentalWorkspaceCreateResponses,
|
||||||
|
ExperimentalWorkspaceListErrors,
|
||||||
ExperimentalWorkspaceListResponses,
|
ExperimentalWorkspaceListResponses,
|
||||||
ExperimentalWorkspaceRemoveErrors,
|
ExperimentalWorkspaceRemoveErrors,
|
||||||
ExperimentalWorkspaceRemoveResponses,
|
ExperimentalWorkspaceRemoveResponses,
|
||||||
|
ExperimentalWorkspaceStatusErrors,
|
||||||
ExperimentalWorkspaceStatusResponses,
|
ExperimentalWorkspaceStatusResponses,
|
||||||
|
ExperimentalWorkspaceSyncListErrors,
|
||||||
ExperimentalWorkspaceSyncListResponses,
|
ExperimentalWorkspaceSyncListResponses,
|
||||||
ExperimentalWorkspaceWarpErrors,
|
ExperimentalWorkspaceWarpErrors,
|
||||||
ExperimentalWorkspaceWarpResponses,
|
ExperimentalWorkspaceWarpResponses,
|
||||||
|
FileListErrors,
|
||||||
FileListResponses,
|
FileListResponses,
|
||||||
FilePartInput,
|
FilePartInput,
|
||||||
FilePartSource,
|
FilePartSource,
|
||||||
|
FileReadErrors,
|
||||||
FileReadResponses,
|
FileReadResponses,
|
||||||
|
FileStatusErrors,
|
||||||
FileStatusResponses,
|
FileStatusResponses,
|
||||||
|
FindFilesErrors,
|
||||||
FindFilesResponses,
|
FindFilesResponses,
|
||||||
|
FindSymbolsErrors,
|
||||||
FindSymbolsResponses,
|
FindSymbolsResponses,
|
||||||
|
FindTextErrors,
|
||||||
FindTextResponses,
|
FindTextResponses,
|
||||||
|
FormatterStatusErrors,
|
||||||
FormatterStatusResponses,
|
FormatterStatusResponses,
|
||||||
|
GlobalConfigGetErrors,
|
||||||
GlobalConfigGetResponses,
|
GlobalConfigGetResponses,
|
||||||
GlobalConfigUpdateErrors,
|
GlobalConfigUpdateErrors,
|
||||||
GlobalConfigUpdateResponses,
|
GlobalConfigUpdateResponses,
|
||||||
|
GlobalDisposeErrors,
|
||||||
GlobalDisposeResponses,
|
GlobalDisposeResponses,
|
||||||
|
GlobalEventErrors,
|
||||||
GlobalEventResponses,
|
GlobalEventResponses,
|
||||||
|
GlobalHealthErrors,
|
||||||
GlobalHealthResponses,
|
GlobalHealthResponses,
|
||||||
GlobalUpgradeErrors,
|
GlobalUpgradeErrors,
|
||||||
GlobalUpgradeResponses,
|
GlobalUpgradeResponses,
|
||||||
|
InstanceDisposeErrors,
|
||||||
InstanceDisposeResponses,
|
InstanceDisposeResponses,
|
||||||
|
LspStatusErrors,
|
||||||
LspStatusResponses,
|
LspStatusResponses,
|
||||||
McpAddErrors,
|
McpAddErrors,
|
||||||
McpAddResponses,
|
McpAddResponses,
|
||||||
@@ -70,10 +94,13 @@ import type {
|
|||||||
McpAuthRemoveResponses,
|
McpAuthRemoveResponses,
|
||||||
McpAuthStartErrors,
|
McpAuthStartErrors,
|
||||||
McpAuthStartResponses,
|
McpAuthStartResponses,
|
||||||
|
McpConnectErrors,
|
||||||
McpConnectResponses,
|
McpConnectResponses,
|
||||||
|
McpDisconnectErrors,
|
||||||
McpDisconnectResponses,
|
McpDisconnectResponses,
|
||||||
McpLocalConfig,
|
McpLocalConfig,
|
||||||
McpRemoteConfig,
|
McpRemoteConfig,
|
||||||
|
McpStatusErrors,
|
||||||
McpStatusResponses,
|
McpStatusResponses,
|
||||||
OutputFormat,
|
OutputFormat,
|
||||||
Part as Part2,
|
Part as Part2,
|
||||||
@@ -81,20 +108,27 @@ import type {
|
|||||||
PartDeleteResponses,
|
PartDeleteResponses,
|
||||||
PartUpdateErrors,
|
PartUpdateErrors,
|
||||||
PartUpdateResponses,
|
PartUpdateResponses,
|
||||||
|
PathGetErrors,
|
||||||
PathGetResponses,
|
PathGetResponses,
|
||||||
|
PermissionListErrors,
|
||||||
PermissionListResponses,
|
PermissionListResponses,
|
||||||
PermissionReplyErrors,
|
PermissionReplyErrors,
|
||||||
PermissionReplyResponses,
|
PermissionReplyResponses,
|
||||||
PermissionRespondErrors,
|
PermissionRespondErrors,
|
||||||
PermissionRespondResponses,
|
PermissionRespondResponses,
|
||||||
PermissionRuleset,
|
PermissionRuleset,
|
||||||
|
ProjectCurrentErrors,
|
||||||
ProjectCurrentResponses,
|
ProjectCurrentResponses,
|
||||||
|
ProjectInitGitErrors,
|
||||||
ProjectInitGitResponses,
|
ProjectInitGitResponses,
|
||||||
|
ProjectListErrors,
|
||||||
ProjectListResponses,
|
ProjectListResponses,
|
||||||
ProjectUpdateErrors,
|
ProjectUpdateErrors,
|
||||||
ProjectUpdateResponses,
|
ProjectUpdateResponses,
|
||||||
Prompt,
|
Prompt,
|
||||||
|
ProviderAuthErrors,
|
||||||
ProviderAuthResponses,
|
ProviderAuthResponses,
|
||||||
|
ProviderListErrors,
|
||||||
ProviderListResponses,
|
ProviderListResponses,
|
||||||
ProviderOauthAuthorizeErrors,
|
ProviderOauthAuthorizeErrors,
|
||||||
ProviderOauthAuthorizeResponses,
|
ProviderOauthAuthorizeResponses,
|
||||||
@@ -108,13 +142,16 @@ import type {
|
|||||||
PtyCreateResponses,
|
PtyCreateResponses,
|
||||||
PtyGetErrors,
|
PtyGetErrors,
|
||||||
PtyGetResponses,
|
PtyGetResponses,
|
||||||
|
PtyListErrors,
|
||||||
PtyListResponses,
|
PtyListResponses,
|
||||||
PtyRemoveErrors,
|
PtyRemoveErrors,
|
||||||
PtyRemoveResponses,
|
PtyRemoveResponses,
|
||||||
|
PtyShellsErrors,
|
||||||
PtyShellsResponses,
|
PtyShellsResponses,
|
||||||
PtyUpdateErrors,
|
PtyUpdateErrors,
|
||||||
PtyUpdateResponses,
|
PtyUpdateResponses,
|
||||||
QuestionAnswer,
|
QuestionAnswer,
|
||||||
|
QuestionListErrors,
|
||||||
QuestionListResponses,
|
QuestionListResponses,
|
||||||
QuestionRejectErrors,
|
QuestionRejectErrors,
|
||||||
QuestionRejectResponses,
|
QuestionRejectResponses,
|
||||||
@@ -133,6 +170,7 @@ import type {
|
|||||||
SessionDeleteMessageResponses,
|
SessionDeleteMessageResponses,
|
||||||
SessionDeleteResponses,
|
SessionDeleteResponses,
|
||||||
SessionDelivery,
|
SessionDelivery,
|
||||||
|
SessionDiffErrors,
|
||||||
SessionDiffResponses,
|
SessionDiffResponses,
|
||||||
SessionForkErrors,
|
SessionForkErrors,
|
||||||
SessionForkResponses,
|
SessionForkResponses,
|
||||||
@@ -140,6 +178,7 @@ import type {
|
|||||||
SessionGetResponses,
|
SessionGetResponses,
|
||||||
SessionInitErrors,
|
SessionInitErrors,
|
||||||
SessionInitResponses,
|
SessionInitResponses,
|
||||||
|
SessionListErrors,
|
||||||
SessionListResponses,
|
SessionListResponses,
|
||||||
SessionMessageErrors,
|
SessionMessageErrors,
|
||||||
SessionMessageResponses,
|
SessionMessageResponses,
|
||||||
@@ -172,6 +211,7 @@ import type {
|
|||||||
SyncHistoryListResponses,
|
SyncHistoryListResponses,
|
||||||
SyncReplayErrors,
|
SyncReplayErrors,
|
||||||
SyncReplayResponses,
|
SyncReplayResponses,
|
||||||
|
SyncStartErrors,
|
||||||
SyncStartResponses,
|
SyncStartResponses,
|
||||||
SyncStealErrors,
|
SyncStealErrors,
|
||||||
SyncStealResponses,
|
SyncStealResponses,
|
||||||
@@ -182,20 +222,29 @@ import type {
|
|||||||
ToolListResponses,
|
ToolListResponses,
|
||||||
TuiAppendPromptErrors,
|
TuiAppendPromptErrors,
|
||||||
TuiAppendPromptResponses,
|
TuiAppendPromptResponses,
|
||||||
|
TuiClearPromptErrors,
|
||||||
TuiClearPromptResponses,
|
TuiClearPromptResponses,
|
||||||
|
TuiControlNextErrors,
|
||||||
TuiControlNextResponses,
|
TuiControlNextResponses,
|
||||||
|
TuiControlResponseErrors,
|
||||||
TuiControlResponseResponses,
|
TuiControlResponseResponses,
|
||||||
TuiExecuteCommandErrors,
|
TuiExecuteCommandErrors,
|
||||||
TuiExecuteCommandResponses,
|
TuiExecuteCommandResponses,
|
||||||
|
TuiOpenHelpErrors,
|
||||||
TuiOpenHelpResponses,
|
TuiOpenHelpResponses,
|
||||||
|
TuiOpenModelsErrors,
|
||||||
TuiOpenModelsResponses,
|
TuiOpenModelsResponses,
|
||||||
|
TuiOpenSessionsErrors,
|
||||||
TuiOpenSessionsResponses,
|
TuiOpenSessionsResponses,
|
||||||
|
TuiOpenThemesErrors,
|
||||||
TuiOpenThemesResponses,
|
TuiOpenThemesResponses,
|
||||||
TuiPublishErrors,
|
TuiPublishErrors,
|
||||||
TuiPublishResponses,
|
TuiPublishResponses,
|
||||||
TuiSelectSessionErrors,
|
TuiSelectSessionErrors,
|
||||||
TuiSelectSessionResponses,
|
TuiSelectSessionResponses,
|
||||||
|
TuiShowToastErrors,
|
||||||
TuiShowToastResponses,
|
TuiShowToastResponses,
|
||||||
|
TuiSubmitPromptErrors,
|
||||||
TuiSubmitPromptResponses,
|
TuiSubmitPromptResponses,
|
||||||
V2ModelListErrors,
|
V2ModelListErrors,
|
||||||
V2ModelListResponses,
|
V2ModelListResponses,
|
||||||
@@ -217,9 +266,13 @@ import type {
|
|||||||
V2SessionWaitResponses,
|
V2SessionWaitResponses,
|
||||||
VcsApplyErrors,
|
VcsApplyErrors,
|
||||||
VcsApplyResponses,
|
VcsApplyResponses,
|
||||||
|
VcsDiffErrors,
|
||||||
|
VcsDiffRawErrors,
|
||||||
VcsDiffRawResponses,
|
VcsDiffRawResponses,
|
||||||
VcsDiffResponses,
|
VcsDiffResponses,
|
||||||
|
VcsGetErrors,
|
||||||
VcsGetResponses,
|
VcsGetResponses,
|
||||||
|
VcsStatusErrors,
|
||||||
VcsStatusResponses,
|
VcsStatusResponses,
|
||||||
WorktreeCreateErrors,
|
WorktreeCreateErrors,
|
||||||
WorktreeCreateInput,
|
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",
|
url: "/agent",
|
||||||
...options,
|
...options,
|
||||||
...params,
|
...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",
|
url: "/skill",
|
||||||
...options,
|
...options,
|
||||||
...params,
|
...params,
|
||||||
@@ -447,7 +500,7 @@ export class Config extends HeyApiClient {
|
|||||||
* Retrieve the current global OpenCode configuration settings and preferences.
|
* Retrieve the current global OpenCode configuration settings and preferences.
|
||||||
*/
|
*/
|
||||||
public get<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
|
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",
|
url: "/global/config",
|
||||||
...options,
|
...options,
|
||||||
})
|
})
|
||||||
@@ -485,7 +538,7 @@ export class Global extends HeyApiClient {
|
|||||||
* Get health information about the OpenCode server.
|
* Get health information about the OpenCode server.
|
||||||
*/
|
*/
|
||||||
public health<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
|
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",
|
url: "/global/health",
|
||||||
...options,
|
...options,
|
||||||
})
|
})
|
||||||
@@ -497,7 +550,7 @@ export class Global extends HeyApiClient {
|
|||||||
* Subscribe to global events from the OpenCode system using server-sent events.
|
* Subscribe to global events from the OpenCode system using server-sent events.
|
||||||
*/
|
*/
|
||||||
public event<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
|
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",
|
url: "/global/event",
|
||||||
...options,
|
...options,
|
||||||
})
|
})
|
||||||
@@ -509,7 +562,7 @@ export class Global extends HeyApiClient {
|
|||||||
* Clean up and dispose all OpenCode instances, releasing all resources.
|
* Clean up and dispose all OpenCode instances, releasing all resources.
|
||||||
*/
|
*/
|
||||||
public dispose<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>) {
|
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",
|
url: "/global/dispose",
|
||||||
...options,
|
...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",
|
url: "/config",
|
||||||
...options,
|
...options,
|
||||||
...params,
|
...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",
|
url: "/config/providers",
|
||||||
...options,
|
...options,
|
||||||
...params,
|
...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",
|
url: "/experimental/session",
|
||||||
...options,
|
...options,
|
||||||
...params,
|
...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",
|
url: "/experimental/resource",
|
||||||
...options,
|
...options,
|
||||||
...params,
|
...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",
|
url: "/experimental/workspace/adapter",
|
||||||
...options,
|
...options,
|
||||||
...params,
|
...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",
|
url: "/experimental/workspace",
|
||||||
...options,
|
...options,
|
||||||
...params,
|
...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",
|
url: "/experimental/workspace/sync-list",
|
||||||
...options,
|
...options,
|
||||||
...params,
|
...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",
|
url: "/experimental/workspace/status",
|
||||||
...options,
|
...options,
|
||||||
...params,
|
...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",
|
url: "/find",
|
||||||
...options,
|
...options,
|
||||||
...params,
|
...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",
|
url: "/find/file",
|
||||||
...options,
|
...options,
|
||||||
...params,
|
...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",
|
url: "/find/symbol",
|
||||||
...options,
|
...options,
|
||||||
...params,
|
...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",
|
url: "/file",
|
||||||
...options,
|
...options,
|
||||||
...params,
|
...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",
|
url: "/file/content",
|
||||||
...options,
|
...options,
|
||||||
...params,
|
...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",
|
url: "/file/status",
|
||||||
...options,
|
...options,
|
||||||
...params,
|
...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",
|
url: "/instance/dispose",
|
||||||
...options,
|
...options,
|
||||||
...params,
|
...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",
|
url: "/path",
|
||||||
...options,
|
...options,
|
||||||
...params,
|
...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",
|
url: "/vcs/diff/raw",
|
||||||
...options,
|
...options,
|
||||||
...params,
|
...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",
|
url: "/vcs",
|
||||||
...options,
|
...options,
|
||||||
...params,
|
...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",
|
url: "/vcs/status",
|
||||||
...options,
|
...options,
|
||||||
...params,
|
...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",
|
url: "/vcs/diff",
|
||||||
...options,
|
...options,
|
||||||
...params,
|
...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",
|
url: "/command",
|
||||||
...options,
|
...options,
|
||||||
...params,
|
...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",
|
url: "/lsp",
|
||||||
...options,
|
...options,
|
||||||
...params,
|
...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",
|
url: "/formatter",
|
||||||
...options,
|
...options,
|
||||||
...params,
|
...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",
|
url: "/mcp",
|
||||||
...options,
|
...options,
|
||||||
...params,
|
...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",
|
url: "/mcp/{name}/connect",
|
||||||
...options,
|
...options,
|
||||||
...params,
|
...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",
|
url: "/mcp/{name}/disconnect",
|
||||||
...options,
|
...options,
|
||||||
...params,
|
...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",
|
url: "/project",
|
||||||
...options,
|
...options,
|
||||||
...params,
|
...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",
|
url: "/project/current",
|
||||||
...options,
|
...options,
|
||||||
...params,
|
...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",
|
url: "/project/git/init",
|
||||||
...options,
|
...options,
|
||||||
...params,
|
...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",
|
url: "/pty/shells",
|
||||||
...options,
|
...options,
|
||||||
...params,
|
...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",
|
url: "/pty",
|
||||||
...options,
|
...options,
|
||||||
...params,
|
...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",
|
url: "/question",
|
||||||
...options,
|
...options,
|
||||||
...params,
|
...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",
|
url: "/permission",
|
||||||
...options,
|
...options,
|
||||||
...params,
|
...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",
|
url: "/provider",
|
||||||
...options,
|
...options,
|
||||||
...params,
|
...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",
|
url: "/provider/auth",
|
||||||
...options,
|
...options,
|
||||||
...params,
|
...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",
|
url: "/session",
|
||||||
...options,
|
...options,
|
||||||
...params,
|
...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",
|
url: "/session/{sessionID}/diff",
|
||||||
...options,
|
...options,
|
||||||
...params,
|
...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",
|
url: "/sync/start",
|
||||||
...options,
|
...options,
|
||||||
...params,
|
...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",
|
url: "/tui/control/next",
|
||||||
...options,
|
...options,
|
||||||
...params,
|
...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",
|
url: "/tui/control/response",
|
||||||
...options,
|
...options,
|
||||||
...params,
|
...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",
|
url: "/tui/open-help",
|
||||||
...options,
|
...options,
|
||||||
...params,
|
...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",
|
url: "/tui/open-sessions",
|
||||||
...options,
|
...options,
|
||||||
...params,
|
...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",
|
url: "/tui/open-themes",
|
||||||
...options,
|
...options,
|
||||||
...params,
|
...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",
|
url: "/tui/open-models",
|
||||||
...options,
|
...options,
|
||||||
...params,
|
...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",
|
url: "/tui/submit-prompt",
|
||||||
...options,
|
...options,
|
||||||
...params,
|
...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",
|
url: "/tui/clear-prompt",
|
||||||
...options,
|
...options,
|
||||||
...params,
|
...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",
|
url: "/tui/show-toast",
|
||||||
...options,
|
...options,
|
||||||
...params,
|
...params,
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
+1329
-119
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user