@opencode-ai/sdk 0.0.0-next-202606290157 → 0.0.0-next-202606290446
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/v2/gen/sdk.gen.d.ts +88 -1
- package/dist/v2/gen/sdk.gen.js +141 -0
- package/dist/v2/gen/types.gen.d.ts +381 -2
- package/package.json +1 -1
package/dist/v2/gen/sdk.gen.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Client, type Options as Options2, type TDataShape } from "./client/index.js";
|
|
2
|
-
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, EventSubscribeResponses, EventTuiCommandExecute, EventTuiPromptAppend, EventTuiSessionSelect, EventTuiToastShow, ExperimentalCapabilitiesGetErrors, ExperimentalCapabilitiesGetResponses, ExperimentalConsoleGetErrors, ExperimentalConsoleGetResponses, ExperimentalConsoleListOrgsErrors, ExperimentalConsoleListOrgsResponses, ExperimentalConsoleSwitchOrgResponses, ExperimentalControlPlaneMoveSessionErrors, ExperimentalControlPlaneMoveSessionResponses, ExperimentalProjectCopyGenerateNameErrors, ExperimentalProjectCopyGenerateNameResponses, ExperimentalResourceListErrors, ExperimentalResourceListResponses, ExperimentalSessionBackgroundErrors, ExperimentalSessionBackgroundResponses, 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, GlobalEventResponses, GlobalHealthErrors, GlobalHealthResponses, GlobalUpgradeErrors, GlobalUpgradeResponses, InstanceDisposeErrors, InstanceDisposeResponses, LocationRef, LspStatusErrors, LspStatusResponses, McpAddErrors, McpAddResponses, McpAuthAuthenticateErrors, McpAuthAuthenticateResponses, McpAuthCallbackErrors, McpAuthCallbackResponses, McpAuthRemoveErrors, McpAuthRemoveResponses, McpAuthStartErrors, McpAuthStartResponses, McpConnectErrors, McpConnectResponses, McpDisconnectErrors, McpDisconnectResponses, McpLocalConfig, McpRemoteConfig, McpStatusErrors, McpStatusResponses, ModelRef, MoveSessionDestination, OutputFormat, Part as Part2, PartDeleteErrors, PartDeleteResponses, PartUpdateErrors, PartUpdateResponses, PathGetErrors, PathGetResponses, PermissionListErrors, PermissionListResponses, PermissionReplyErrors, PermissionReplyResponses, PermissionRespondErrors, PermissionRespondResponses, PermissionRuleset, PermissionV2Reply, PermissionV2Source, ProjectCommands, ProjectCurrentErrors, ProjectCurrentResponses, ProjectDirectoriesErrors, ProjectDirectoriesResponses, ProjectIcon, ProjectInitGitErrors, ProjectInitGitResponses, ProjectListErrors, ProjectListResponses, ProjectUpdateErrors, ProjectUpdateResponses, PromptInput, ProviderAuthErrors, ProviderAuthResponses, ProviderListErrors, ProviderListResponses, ProviderOauthAuthorizeErrors, ProviderOauthAuthorizeResponses, ProviderOauthCallbackErrors, ProviderOauthCallbackResponses, PtyConnectErrors, PtyConnectResponses, PtyConnectTokenErrors, PtyConnectTokenResponses, PtyCreateErrors, PtyCreateResponses, PtyGetErrors, PtyGetResponses, PtyListErrors, PtyListResponses, PtyRemoveErrors, PtyRemoveResponses, PtyShellsErrors, PtyShellsResponses, PtyUpdateErrors, PtyUpdateResponses, QuestionAnswer, QuestionListErrors, QuestionListResponses, QuestionRejectErrors, QuestionRejectResponses, QuestionReplyErrors, QuestionReplyResponses, QuestionV2Reply, SessionAbortErrors, SessionAbortResponses, SessionChildrenErrors, SessionChildrenResponses, SessionCommandErrors, SessionCommandResponses, SessionCreateErrors, SessionCreateResponses, SessionDeleteErrors, SessionDeleteMessageErrors, SessionDeleteMessageResponses, SessionDeleteResponses, SessionDiffErrors, SessionDiffResponses, SessionForkErrors, SessionForkResponses, SessionGetErrors, SessionGetResponses, SessionInitErrors, SessionInitResponses, SessionListErrors, SessionListResponses, SessionMessageErrors, SessionMessageResponses, SessionMessagesErrors, SessionMessagesResponses, SessionPromptAsyncErrors, SessionPromptAsyncResponses, SessionPromptErrors, SessionPromptResponses, SessionRevertErrors, SessionRevertResponses, SessionShareErrors, SessionShareResponses, SessionShellErrors, SessionShellResponses, SessionStatusErrors, SessionStatusResponses, SessionSummarizeErrors, SessionSummarizeResponses, SessionTodoErrors, SessionTodoResponses, SessionUnrevertErrors, SessionUnrevertResponses, SessionUnshareErrors, SessionUnshareResponses, SessionUpdateErrors, SessionUpdateResponses, SubtaskPartInput, SyncHistoryListErrors, SyncHistoryListResponses, SyncReplayErrors, SyncReplayResponses, SyncStartErrors, SyncStartResponses, SyncStealErrors, SyncStealResponses, TextPartInput, ToolIdsErrors, ToolIdsResponses, ToolListErrors, 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, V2AgentListErrors, V2AgentListResponses, V2CommandListErrors, V2CommandListResponses, V2CredentialRemoveErrors, V2CredentialRemoveResponses, V2CredentialUpdateErrors, V2CredentialUpdateResponses, V2EventSubscribeResponses, V2FsFindErrors, V2FsFindResponses, V2FsListErrors, V2FsListResponses, V2FsReadErrors, V2FsReadResponses, V2HealthGetErrors, V2HealthGetResponses, V2IntegrationAttemptCancelErrors, V2IntegrationAttemptCancelResponses, V2IntegrationAttemptCompleteErrors, V2IntegrationAttemptCompleteResponses, V2IntegrationAttemptStatusErrors, V2IntegrationAttemptStatusResponses, V2IntegrationConnectKeyErrors, V2IntegrationConnectKeyResponses, V2IntegrationConnectOauthErrors, V2IntegrationConnectOauthResponses, V2IntegrationGetErrors, V2IntegrationGetResponses, V2IntegrationListErrors, V2IntegrationListResponses, V2LocationGetErrors, V2LocationGetResponses, V2ModelListErrors, V2ModelListResponses, V2PermissionRequestListErrors, V2PermissionRequestListResponses, V2PermissionSavedListErrors, V2PermissionSavedListResponses, V2PermissionSavedRemoveErrors, V2PermissionSavedRemoveResponses, V2ProjectCopyCreateErrors, V2ProjectCopyCreateResponses, V2ProjectCopyRefreshErrors, V2ProjectCopyRefreshResponses, V2ProjectCopyRemoveErrors, V2ProjectCopyRemoveResponses, V2ProviderGetErrors, V2ProviderGetResponses, V2ProviderListErrors, V2ProviderListResponses, V2PtyConnectErrors, V2PtyConnectResponses, V2PtyConnectTokenErrors, V2PtyConnectTokenResponses, V2PtyCreateErrors, V2PtyCreateResponses, V2PtyGetErrors, V2PtyGetResponses, V2PtyListErrors, V2PtyListResponses, V2PtyRemoveErrors, V2PtyRemoveResponses, V2PtyUpdateErrors, V2PtyUpdateResponses, V2QuestionRequestListErrors, V2QuestionRequestListResponses, V2ReferenceListErrors, V2ReferenceListResponses, V2SessionActiveErrors, V2SessionActiveResponses, V2SessionCompactErrors, V2SessionCompactResponses, V2SessionContextErrors, V2SessionContextResponses, V2SessionCreateErrors, V2SessionCreateResponses, V2SessionEventsResponses, V2SessionGetErrors, V2SessionGetResponses, V2SessionHistoryErrors, V2SessionHistoryResponses, V2SessionInterruptErrors, V2SessionInterruptResponses, V2SessionListErrors, V2SessionListResponses, V2SessionMessageErrors, V2SessionMessageResponses, V2SessionMessagesErrors, V2SessionMessagesResponses, V2SessionPermissionCreateErrors, V2SessionPermissionCreateResponses, V2SessionPermissionGetErrors, V2SessionPermissionGetResponses, V2SessionPermissionListErrors, V2SessionPermissionListResponses, V2SessionPermissionReplyErrors, V2SessionPermissionReplyResponses, V2SessionPromptErrors, V2SessionPromptResponses, V2SessionQuestionListErrors, V2SessionQuestionListResponses, V2SessionQuestionRejectErrors, V2SessionQuestionRejectResponses, V2SessionQuestionReplyErrors, V2SessionQuestionReplyResponses, V2SessionRenameErrors, V2SessionRenameResponses, V2SessionRevertClearErrors, V2SessionRevertClearResponses, V2SessionRevertCommitErrors, V2SessionRevertCommitResponses, V2SessionRevertStageErrors, V2SessionRevertStageResponses, V2SessionSwitchAgentErrors, V2SessionSwitchAgentResponses, V2SessionSwitchModelErrors, V2SessionSwitchModelResponses, V2SessionWaitErrors, V2SessionWaitResponses, V2SkillListErrors, V2SkillListResponses, VcsApplyErrors, VcsApplyResponses, VcsDiffErrors, VcsDiffRawErrors, VcsDiffRawResponses, VcsDiffResponses, VcsGetErrors, VcsGetResponses, VcsStatusErrors, VcsStatusResponses, WorktreeCreateErrors, WorktreeCreateInput, WorktreeCreateResponses, WorktreeListErrors, WorktreeListResponses, WorktreeRemoveErrors, WorktreeRemoveInput, WorktreeRemoveResponses, WorktreeResetErrors, WorktreeResetInput, WorktreeResetResponses } from "./types.gen.js";
|
|
2
|
+
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, EventSubscribeResponses, EventTuiCommandExecute, EventTuiPromptAppend, EventTuiSessionSelect, EventTuiToastShow, ExperimentalCapabilitiesGetErrors, ExperimentalCapabilitiesGetResponses, ExperimentalConsoleGetErrors, ExperimentalConsoleGetResponses, ExperimentalConsoleListOrgsErrors, ExperimentalConsoleListOrgsResponses, ExperimentalConsoleSwitchOrgResponses, ExperimentalControlPlaneMoveSessionErrors, ExperimentalControlPlaneMoveSessionResponses, ExperimentalProjectCopyGenerateNameErrors, ExperimentalProjectCopyGenerateNameResponses, ExperimentalResourceListErrors, ExperimentalResourceListResponses, ExperimentalSessionBackgroundErrors, ExperimentalSessionBackgroundResponses, 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, GlobalEventResponses, GlobalHealthErrors, GlobalHealthResponses, GlobalUpgradeErrors, GlobalUpgradeResponses, InstanceDisposeErrors, InstanceDisposeResponses, LocationRef, LspStatusErrors, LspStatusResponses, McpAddErrors, McpAddResponses, McpAuthAuthenticateErrors, McpAuthAuthenticateResponses, McpAuthCallbackErrors, McpAuthCallbackResponses, McpAuthRemoveErrors, McpAuthRemoveResponses, McpAuthStartErrors, McpAuthStartResponses, McpConnectErrors, McpConnectResponses, McpDisconnectErrors, McpDisconnectResponses, McpLocalConfig, McpRemoteConfig, McpStatusErrors, McpStatusResponses, ModelRef, MoveSessionDestination, OutputFormat, Part as Part2, PartDeleteErrors, PartDeleteResponses, PartUpdateErrors, PartUpdateResponses, PathGetErrors, PathGetResponses, PermissionListErrors, PermissionListResponses, PermissionReplyErrors, PermissionReplyResponses, PermissionRespondErrors, PermissionRespondResponses, PermissionRuleset, PermissionV2Reply, PermissionV2Source, ProjectCommands, ProjectCurrentErrors, ProjectCurrentResponses, ProjectDirectoriesErrors, ProjectDirectoriesResponses, ProjectIcon, ProjectInitGitErrors, ProjectInitGitResponses, ProjectListErrors, ProjectListResponses, ProjectUpdateErrors, ProjectUpdateResponses, PromptInput, ProviderAuthErrors, ProviderAuthResponses, ProviderListErrors, ProviderListResponses, ProviderOauthAuthorizeErrors, ProviderOauthAuthorizeResponses, ProviderOauthCallbackErrors, ProviderOauthCallbackResponses, PtyConnectErrors, PtyConnectResponses, PtyConnectTokenErrors, PtyConnectTokenResponses, PtyCreateErrors, PtyCreateResponses, PtyGetErrors, PtyGetResponses, PtyListErrors, PtyListResponses, PtyRemoveErrors, PtyRemoveResponses, PtyShellsErrors, PtyShellsResponses, PtyUpdateErrors, PtyUpdateResponses, QuestionAnswer, QuestionListErrors, QuestionListResponses, QuestionRejectErrors, QuestionRejectResponses, QuestionReplyErrors, QuestionReplyResponses, QuestionV2Reply, SessionAbortErrors, SessionAbortResponses, SessionChildrenErrors, SessionChildrenResponses, SessionCommandErrors, SessionCommandResponses, SessionCreateErrors, SessionCreateResponses, SessionDeleteErrors, SessionDeleteMessageErrors, SessionDeleteMessageResponses, SessionDeleteResponses, SessionDiffErrors, SessionDiffResponses, SessionForkErrors, SessionForkResponses, SessionGetErrors, SessionGetResponses, SessionInitErrors, SessionInitResponses, SessionListErrors, SessionListResponses, SessionMessageErrors, SessionMessageResponses, SessionMessagesErrors, SessionMessagesResponses, SessionPromptAsyncErrors, SessionPromptAsyncResponses, SessionPromptErrors, SessionPromptResponses, SessionRevertErrors, SessionRevertResponses, SessionShareErrors, SessionShareResponses, SessionShellErrors, SessionShellResponses, SessionStatusErrors, SessionStatusResponses, SessionSummarizeErrors, SessionSummarizeResponses, SessionTodoErrors, SessionTodoResponses, SessionUnrevertErrors, SessionUnrevertResponses, SessionUnshareErrors, SessionUnshareResponses, SessionUpdateErrors, SessionUpdateResponses, SubtaskPartInput, SyncHistoryListErrors, SyncHistoryListResponses, SyncReplayErrors, SyncReplayResponses, SyncStartErrors, SyncStartResponses, SyncStealErrors, SyncStealResponses, TextPartInput, ToolIdsErrors, ToolIdsResponses, ToolListErrors, 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, V2AgentListErrors, V2AgentListResponses, V2CommandListErrors, V2CommandListResponses, V2CredentialRemoveErrors, V2CredentialRemoveResponses, V2CredentialUpdateErrors, V2CredentialUpdateResponses, V2EventSubscribeResponses, V2FsFindErrors, V2FsFindResponses, V2FsListErrors, V2FsListResponses, V2FsReadErrors, V2FsReadResponses, V2GenerateTextErrors, V2GenerateTextResponses, V2HealthGetErrors, V2HealthGetResponses, V2IntegrationAttemptCancelErrors, V2IntegrationAttemptCancelResponses, V2IntegrationAttemptCompleteErrors, V2IntegrationAttemptCompleteResponses, V2IntegrationAttemptStatusErrors, V2IntegrationAttemptStatusResponses, V2IntegrationConnectKeyErrors, V2IntegrationConnectKeyResponses, V2IntegrationConnectOauthErrors, V2IntegrationConnectOauthResponses, V2IntegrationGetErrors, V2IntegrationGetResponses, V2IntegrationListErrors, V2IntegrationListResponses, V2LocationGetErrors, V2LocationGetResponses, V2ModelListErrors, V2ModelListResponses, V2PermissionRequestListErrors, V2PermissionRequestListResponses, V2PermissionSavedListErrors, V2PermissionSavedListResponses, V2PermissionSavedRemoveErrors, V2PermissionSavedRemoveResponses, V2ProjectCopyCreateErrors, V2ProjectCopyCreateResponses, V2ProjectCopyRefreshErrors, V2ProjectCopyRefreshResponses, V2ProjectCopyRemoveErrors, V2ProjectCopyRemoveResponses, V2ProviderGetErrors, V2ProviderGetResponses, V2ProviderListErrors, V2ProviderListResponses, V2PtyConnectErrors, V2PtyConnectResponses, V2PtyConnectTokenErrors, V2PtyConnectTokenResponses, V2PtyCreateErrors, V2PtyCreateResponses, V2PtyGetErrors, V2PtyGetResponses, V2PtyListErrors, V2PtyListResponses, V2PtyRemoveErrors, V2PtyRemoveResponses, V2PtyUpdateErrors, V2PtyUpdateResponses, V2QuestionRequestListErrors, V2QuestionRequestListResponses, V2ReferenceListErrors, V2ReferenceListResponses, V2SessionActiveErrors, V2SessionActiveResponses, V2SessionCompactErrors, V2SessionCompactResponses, V2SessionContextErrors, V2SessionContextResponses, V2SessionCreateErrors, V2SessionCreateResponses, V2SessionEventsResponses, V2SessionGetErrors, V2SessionGetResponses, V2SessionHistoryErrors, V2SessionHistoryResponses, V2SessionInterruptErrors, V2SessionInterruptResponses, V2SessionListErrors, V2SessionListResponses, V2SessionMessageErrors, V2SessionMessageResponses, V2SessionMessagesErrors, V2SessionMessagesResponses, V2SessionPermissionCreateErrors, V2SessionPermissionCreateResponses, V2SessionPermissionGetErrors, V2SessionPermissionGetResponses, V2SessionPermissionListErrors, V2SessionPermissionListResponses, V2SessionPermissionReplyErrors, V2SessionPermissionReplyResponses, V2SessionPromptErrors, V2SessionPromptResponses, V2SessionQuestionListErrors, V2SessionQuestionListResponses, V2SessionQuestionRejectErrors, V2SessionQuestionRejectResponses, V2SessionQuestionReplyErrors, V2SessionQuestionReplyResponses, V2SessionRenameErrors, V2SessionRenameResponses, V2SessionRevertClearErrors, V2SessionRevertClearResponses, V2SessionRevertCommitErrors, V2SessionRevertCommitResponses, V2SessionRevertStageErrors, V2SessionRevertStageResponses, V2SessionSwitchAgentErrors, V2SessionSwitchAgentResponses, V2SessionSwitchModelErrors, V2SessionSwitchModelResponses, V2SessionWaitErrors, V2SessionWaitResponses, V2ShellCreateErrors, V2ShellCreateResponses, V2ShellGetErrors, V2ShellGetResponses, V2ShellListErrors, V2ShellListResponses, V2ShellOutputErrors, V2ShellOutputResponses, V2ShellRemoveErrors, V2ShellRemoveResponses, V2SkillListErrors, V2SkillListResponses, VcsApplyErrors, VcsApplyResponses, VcsDiffErrors, VcsDiffRawErrors, VcsDiffRawResponses, VcsDiffResponses, VcsGetErrors, VcsGetResponses, VcsStatusErrors, VcsStatusResponses, WorktreeCreateErrors, WorktreeCreateInput, WorktreeCreateResponses, WorktreeListErrors, WorktreeListResponses, WorktreeRemoveErrors, WorktreeRemoveInput, WorktreeRemoveResponses, WorktreeResetErrors, WorktreeResetInput, WorktreeResetResponses } from "./types.gen.js";
|
|
3
3
|
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {
|
|
4
4
|
/**
|
|
5
5
|
* You can provide a client instance returned by `createClient()` instead of
|
|
@@ -1794,6 +1794,21 @@ export declare class Model extends HeyApiClient {
|
|
|
1794
1794
|
};
|
|
1795
1795
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<V2ModelListResponses, V2ModelListErrors, ThrowOnError, "fields">;
|
|
1796
1796
|
}
|
|
1797
|
+
export declare class Generate extends HeyApiClient {
|
|
1798
|
+
/**
|
|
1799
|
+
* Generate text
|
|
1800
|
+
*
|
|
1801
|
+
* Run one stateless model generation at the requested location and return the assistant text. Uses the location's default model when none is specified.
|
|
1802
|
+
*/
|
|
1803
|
+
text<ThrowOnError extends boolean = false>(parameters?: {
|
|
1804
|
+
location?: {
|
|
1805
|
+
directory?: string;
|
|
1806
|
+
workspace?: string;
|
|
1807
|
+
};
|
|
1808
|
+
prompt?: string;
|
|
1809
|
+
model?: ModelRef;
|
|
1810
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<V2GenerateTextResponses, V2GenerateTextErrors, ThrowOnError, "fields">;
|
|
1811
|
+
}
|
|
1797
1812
|
export declare class Provider2 extends HeyApiClient {
|
|
1798
1813
|
/**
|
|
1799
1814
|
* List providers
|
|
@@ -2153,6 +2168,74 @@ export declare class Pty2 extends HeyApiClient {
|
|
|
2153
2168
|
ticket?: string;
|
|
2154
2169
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<V2PtyConnectResponses, V2PtyConnectErrors, ThrowOnError, "fields">;
|
|
2155
2170
|
}
|
|
2171
|
+
export declare class Shell extends HeyApiClient {
|
|
2172
|
+
/**
|
|
2173
|
+
* List running shell commands
|
|
2174
|
+
*
|
|
2175
|
+
* List currently running shell commands for a location. Exited commands are not included.
|
|
2176
|
+
*/
|
|
2177
|
+
list<ThrowOnError extends boolean = false>(parameters?: {
|
|
2178
|
+
location?: {
|
|
2179
|
+
directory?: string;
|
|
2180
|
+
workspace?: string;
|
|
2181
|
+
};
|
|
2182
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<V2ShellListResponses, V2ShellListErrors, ThrowOnError, "fields">;
|
|
2183
|
+
/**
|
|
2184
|
+
* Run shell command
|
|
2185
|
+
*
|
|
2186
|
+
* Spawn one non-interactive shell command for a location. Combined stdout/stderr is captured to a file pageable via output.
|
|
2187
|
+
*/
|
|
2188
|
+
create<ThrowOnError extends boolean = false>(parameters?: {
|
|
2189
|
+
location?: {
|
|
2190
|
+
directory?: string;
|
|
2191
|
+
workspace?: string;
|
|
2192
|
+
};
|
|
2193
|
+
command?: string;
|
|
2194
|
+
cwd?: string;
|
|
2195
|
+
timeout?: number;
|
|
2196
|
+
metadata?: {
|
|
2197
|
+
[key: string]: unknown;
|
|
2198
|
+
};
|
|
2199
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<V2ShellCreateResponses, V2ShellCreateErrors, ThrowOnError, "fields">;
|
|
2200
|
+
/**
|
|
2201
|
+
* Remove shell command
|
|
2202
|
+
*
|
|
2203
|
+
* Terminate and remove one shell command and its retained output.
|
|
2204
|
+
*/
|
|
2205
|
+
remove<ThrowOnError extends boolean = false>(parameters: {
|
|
2206
|
+
id: string;
|
|
2207
|
+
location?: {
|
|
2208
|
+
directory?: string;
|
|
2209
|
+
workspace?: string;
|
|
2210
|
+
};
|
|
2211
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<V2ShellRemoveResponses, V2ShellRemoveErrors, ThrowOnError, "fields">;
|
|
2212
|
+
/**
|
|
2213
|
+
* Get shell command
|
|
2214
|
+
*
|
|
2215
|
+
* Get one shell command, including its status and exit code once exited.
|
|
2216
|
+
*/
|
|
2217
|
+
get<ThrowOnError extends boolean = false>(parameters: {
|
|
2218
|
+
id: string;
|
|
2219
|
+
location?: {
|
|
2220
|
+
directory?: string;
|
|
2221
|
+
workspace?: string;
|
|
2222
|
+
};
|
|
2223
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<V2ShellGetResponses, V2ShellGetErrors, ThrowOnError, "fields">;
|
|
2224
|
+
/**
|
|
2225
|
+
* Read shell output
|
|
2226
|
+
*
|
|
2227
|
+
* Page through captured combined output by absolute byte cursor.
|
|
2228
|
+
*/
|
|
2229
|
+
output<ThrowOnError extends boolean = false>(parameters: {
|
|
2230
|
+
id: string;
|
|
2231
|
+
location?: {
|
|
2232
|
+
directory?: string;
|
|
2233
|
+
workspace?: string;
|
|
2234
|
+
};
|
|
2235
|
+
cursor?: string;
|
|
2236
|
+
limit?: string;
|
|
2237
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<V2ShellOutputResponses, V2ShellOutputErrors, ThrowOnError, "fields">;
|
|
2238
|
+
}
|
|
2156
2239
|
export declare class Request2 extends HeyApiClient {
|
|
2157
2240
|
/**
|
|
2158
2241
|
* List pending question requests
|
|
@@ -2222,6 +2305,8 @@ export declare class V2 extends HeyApiClient {
|
|
|
2222
2305
|
get session(): Session3;
|
|
2223
2306
|
private _model?;
|
|
2224
2307
|
get model(): Model;
|
|
2308
|
+
private _generate?;
|
|
2309
|
+
get generate(): Generate;
|
|
2225
2310
|
private _provider?;
|
|
2226
2311
|
get provider(): Provider2;
|
|
2227
2312
|
private _integration?;
|
|
@@ -2240,6 +2325,8 @@ export declare class V2 extends HeyApiClient {
|
|
|
2240
2325
|
get event(): Event2;
|
|
2241
2326
|
private _pty?;
|
|
2242
2327
|
get pty(): Pty2;
|
|
2328
|
+
private _shell?;
|
|
2329
|
+
get shell(): Shell;
|
|
2243
2330
|
private _question?;
|
|
2244
2331
|
get question(): Question3;
|
|
2245
2332
|
private _reference?;
|
package/dist/v2/gen/sdk.gen.js
CHANGED
|
@@ -3638,6 +3638,34 @@ export class Model extends HeyApiClient {
|
|
|
3638
3638
|
});
|
|
3639
3639
|
}
|
|
3640
3640
|
}
|
|
3641
|
+
export class Generate extends HeyApiClient {
|
|
3642
|
+
/**
|
|
3643
|
+
* Generate text
|
|
3644
|
+
*
|
|
3645
|
+
* Run one stateless model generation at the requested location and return the assistant text. Uses the location's default model when none is specified.
|
|
3646
|
+
*/
|
|
3647
|
+
text(parameters, options) {
|
|
3648
|
+
const params = buildClientParams([parameters], [
|
|
3649
|
+
{
|
|
3650
|
+
args: [
|
|
3651
|
+
{ in: "query", key: "location" },
|
|
3652
|
+
{ in: "body", key: "prompt" },
|
|
3653
|
+
{ in: "body", key: "model" },
|
|
3654
|
+
],
|
|
3655
|
+
},
|
|
3656
|
+
]);
|
|
3657
|
+
return (options?.client ?? this.client).post({
|
|
3658
|
+
url: "/api/generate",
|
|
3659
|
+
...options,
|
|
3660
|
+
...params,
|
|
3661
|
+
headers: {
|
|
3662
|
+
"Content-Type": "application/json",
|
|
3663
|
+
...options?.headers,
|
|
3664
|
+
...params.headers,
|
|
3665
|
+
},
|
|
3666
|
+
});
|
|
3667
|
+
}
|
|
3668
|
+
}
|
|
3641
3669
|
export class Provider2 extends HeyApiClient {
|
|
3642
3670
|
/**
|
|
3643
3671
|
* List providers
|
|
@@ -4196,6 +4224,111 @@ export class Pty2 extends HeyApiClient {
|
|
|
4196
4224
|
});
|
|
4197
4225
|
}
|
|
4198
4226
|
}
|
|
4227
|
+
export class Shell extends HeyApiClient {
|
|
4228
|
+
/**
|
|
4229
|
+
* List running shell commands
|
|
4230
|
+
*
|
|
4231
|
+
* List currently running shell commands for a location. Exited commands are not included.
|
|
4232
|
+
*/
|
|
4233
|
+
list(parameters, options) {
|
|
4234
|
+
const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "location" }] }]);
|
|
4235
|
+
return (options?.client ?? this.client).get({
|
|
4236
|
+
url: "/api/shell",
|
|
4237
|
+
...options,
|
|
4238
|
+
...params,
|
|
4239
|
+
});
|
|
4240
|
+
}
|
|
4241
|
+
/**
|
|
4242
|
+
* Run shell command
|
|
4243
|
+
*
|
|
4244
|
+
* Spawn one non-interactive shell command for a location. Combined stdout/stderr is captured to a file pageable via output.
|
|
4245
|
+
*/
|
|
4246
|
+
create(parameters, options) {
|
|
4247
|
+
const params = buildClientParams([parameters], [
|
|
4248
|
+
{
|
|
4249
|
+
args: [
|
|
4250
|
+
{ in: "query", key: "location" },
|
|
4251
|
+
{ in: "body", key: "command" },
|
|
4252
|
+
{ in: "body", key: "cwd" },
|
|
4253
|
+
{ in: "body", key: "timeout" },
|
|
4254
|
+
{ in: "body", key: "metadata" },
|
|
4255
|
+
],
|
|
4256
|
+
},
|
|
4257
|
+
]);
|
|
4258
|
+
return (options?.client ?? this.client).post({
|
|
4259
|
+
url: "/api/shell",
|
|
4260
|
+
...options,
|
|
4261
|
+
...params,
|
|
4262
|
+
headers: {
|
|
4263
|
+
"Content-Type": "application/json",
|
|
4264
|
+
...options?.headers,
|
|
4265
|
+
...params.headers,
|
|
4266
|
+
},
|
|
4267
|
+
});
|
|
4268
|
+
}
|
|
4269
|
+
/**
|
|
4270
|
+
* Remove shell command
|
|
4271
|
+
*
|
|
4272
|
+
* Terminate and remove one shell command and its retained output.
|
|
4273
|
+
*/
|
|
4274
|
+
remove(parameters, options) {
|
|
4275
|
+
const params = buildClientParams([parameters], [
|
|
4276
|
+
{
|
|
4277
|
+
args: [
|
|
4278
|
+
{ in: "path", key: "id" },
|
|
4279
|
+
{ in: "query", key: "location" },
|
|
4280
|
+
],
|
|
4281
|
+
},
|
|
4282
|
+
]);
|
|
4283
|
+
return (options?.client ?? this.client).delete({
|
|
4284
|
+
url: "/api/shell/{id}",
|
|
4285
|
+
...options,
|
|
4286
|
+
...params,
|
|
4287
|
+
});
|
|
4288
|
+
}
|
|
4289
|
+
/**
|
|
4290
|
+
* Get shell command
|
|
4291
|
+
*
|
|
4292
|
+
* Get one shell command, including its status and exit code once exited.
|
|
4293
|
+
*/
|
|
4294
|
+
get(parameters, options) {
|
|
4295
|
+
const params = buildClientParams([parameters], [
|
|
4296
|
+
{
|
|
4297
|
+
args: [
|
|
4298
|
+
{ in: "path", key: "id" },
|
|
4299
|
+
{ in: "query", key: "location" },
|
|
4300
|
+
],
|
|
4301
|
+
},
|
|
4302
|
+
]);
|
|
4303
|
+
return (options?.client ?? this.client).get({
|
|
4304
|
+
url: "/api/shell/{id}",
|
|
4305
|
+
...options,
|
|
4306
|
+
...params,
|
|
4307
|
+
});
|
|
4308
|
+
}
|
|
4309
|
+
/**
|
|
4310
|
+
* Read shell output
|
|
4311
|
+
*
|
|
4312
|
+
* Page through captured combined output by absolute byte cursor.
|
|
4313
|
+
*/
|
|
4314
|
+
output(parameters, options) {
|
|
4315
|
+
const params = buildClientParams([parameters], [
|
|
4316
|
+
{
|
|
4317
|
+
args: [
|
|
4318
|
+
{ in: "path", key: "id" },
|
|
4319
|
+
{ in: "query", key: "location" },
|
|
4320
|
+
{ in: "query", key: "cursor" },
|
|
4321
|
+
{ in: "query", key: "limit" },
|
|
4322
|
+
],
|
|
4323
|
+
},
|
|
4324
|
+
]);
|
|
4325
|
+
return (options?.client ?? this.client).get({
|
|
4326
|
+
url: "/api/shell/{id}/output",
|
|
4327
|
+
...options,
|
|
4328
|
+
...params,
|
|
4329
|
+
});
|
|
4330
|
+
}
|
|
4331
|
+
}
|
|
4199
4332
|
export class Request2 extends HeyApiClient {
|
|
4200
4333
|
/**
|
|
4201
4334
|
* List pending question requests
|
|
@@ -4315,6 +4448,10 @@ export class V2 extends HeyApiClient {
|
|
|
4315
4448
|
get model() {
|
|
4316
4449
|
return (this._model ??= new Model({ client: this.client }));
|
|
4317
4450
|
}
|
|
4451
|
+
_generate;
|
|
4452
|
+
get generate() {
|
|
4453
|
+
return (this._generate ??= new Generate({ client: this.client }));
|
|
4454
|
+
}
|
|
4318
4455
|
_provider;
|
|
4319
4456
|
get provider() {
|
|
4320
4457
|
return (this._provider ??= new Provider2({ client: this.client }));
|
|
@@ -4351,6 +4488,10 @@ export class V2 extends HeyApiClient {
|
|
|
4351
4488
|
get pty() {
|
|
4352
4489
|
return (this._pty ??= new Pty2({ client: this.client }));
|
|
4353
4490
|
}
|
|
4491
|
+
_shell;
|
|
4492
|
+
get shell() {
|
|
4493
|
+
return (this._shell ??= new Shell({ client: this.client }));
|
|
4494
|
+
}
|
|
4354
4495
|
_question;
|
|
4355
4496
|
get question() {
|
|
4356
4497
|
return (this._question ??= new Question3({ client: this.client }));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export type ClientOptions = {
|
|
2
2
|
baseUrl: `${string}://${string}` | (string & {});
|
|
3
3
|
};
|
|
4
|
-
export type Event = EventModelsDevRefreshed | EventIntegrationUpdated | EventIntegrationConnectionUpdated | EventCatalogUpdated | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventSessionNextAgentSwitched | EventSessionNextModelSwitched | EventSessionNextMoved | EventSessionNextRenamed | EventSessionNextPrompted | EventSessionNextPromptAdmitted | EventSessionNextContextUpdated | EventSessionNextSynthetic | EventSessionNextShellStarted | EventSessionNextShellEnded | EventSessionNextStepStarted | EventSessionNextStepEnded | EventSessionNextStepFailed | EventSessionNextTextStarted | EventSessionNextTextDelta | EventSessionNextTextEnded | EventSessionNextReasoningStarted | EventSessionNextReasoningDelta | EventSessionNextReasoningEnded | EventSessionNextToolInputStarted | EventSessionNextToolInputDelta | EventSessionNextToolInputEnded | EventSessionNextToolCalled | EventSessionNextToolProgress | EventSessionNextToolSuccess | EventSessionNextToolFailed | EventSessionNextRetried | EventSessionNextCompactionStarted | EventSessionNextCompactionDelta | EventSessionNextCompactionEnded | EventSessionNextRevertStaged | EventSessionNextRevertCleared | EventSessionNextRevertCommitted | EventMessagePartDelta | EventSessionDiff | EventSessionError | EventInstallationUpdated | EventInstallationUpdateAvailable | EventFileEdited | EventReferenceUpdated | EventPermissionV2Asked | EventPermissionV2Replied | EventPluginAdded | EventProjectDirectoriesUpdated | EventFileWatcherUpdated | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventQuestionV2Asked | EventQuestionV2Replied | EventQuestionV2Rejected | EventTodoUpdated | EventLspUpdated | EventPermissionAsked | EventPermissionReplied | EventTuiPromptAppend2 | EventTuiCommandExecute2 | EventTuiToastShow2 | EventTuiSessionSelect2 | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventCommandExecuted | EventProjectUpdated | EventSessionStatus | EventSessionIdle | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventSessionCompacted | EventVcsBranchUpdated | EventWorkspaceReady | EventWorkspaceFailed | EventWorkspaceStatus | EventWorktreeReady | EventWorktreeFailed | EventServerConnected | EventGlobalDisposed | EventServerInstanceDisposed;
|
|
4
|
+
export type Event = EventModelsDevRefreshed | EventIntegrationUpdated | EventIntegrationConnectionUpdated | EventCatalogUpdated | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventSessionNextAgentSwitched | EventSessionNextModelSwitched | EventSessionNextMoved | EventSessionNextRenamed | EventSessionNextPrompted | EventSessionNextPromptAdmitted | EventSessionNextContextUpdated | EventSessionNextSynthetic | EventSessionNextShellStarted | EventSessionNextShellEnded | EventSessionNextStepStarted | EventSessionNextStepEnded | EventSessionNextStepFailed | EventSessionNextTextStarted | EventSessionNextTextDelta | EventSessionNextTextEnded | EventSessionNextReasoningStarted | EventSessionNextReasoningDelta | EventSessionNextReasoningEnded | EventSessionNextToolInputStarted | EventSessionNextToolInputDelta | EventSessionNextToolInputEnded | EventSessionNextToolCalled | EventSessionNextToolProgress | EventSessionNextToolSuccess | EventSessionNextToolFailed | EventSessionNextRetried | EventSessionNextCompactionStarted | EventSessionNextCompactionDelta | EventSessionNextCompactionEnded | EventSessionNextRevertStaged | EventSessionNextRevertCleared | EventSessionNextRevertCommitted | EventMessagePartDelta | EventSessionDiff | EventSessionError | EventInstallationUpdated | EventInstallationUpdateAvailable | EventFileEdited | EventReferenceUpdated | EventPermissionV2Asked | EventPermissionV2Replied | EventPluginAdded | EventProjectDirectoriesUpdated | EventFileWatcherUpdated | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventShellCreated | EventShellExited | EventShellDeleted | EventQuestionV2Asked | EventQuestionV2Replied | EventQuestionV2Rejected | EventTodoUpdated | EventLspUpdated | EventPermissionAsked | EventPermissionReplied | EventTuiPromptAppend2 | EventTuiCommandExecute2 | EventTuiToastShow2 | EventTuiSessionSelect2 | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventCommandExecuted | EventProjectUpdated | EventSessionStatus | EventSessionIdle | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventSessionCompacted | EventVcsBranchUpdated | EventWorkspaceReady | EventWorkspaceFailed | EventWorkspaceStatus | EventWorktreeReady | EventWorktreeFailed | EventServerConnected | EventGlobalDisposed | EventServerInstanceDisposed;
|
|
5
5
|
export type QuestionReplied = {
|
|
6
6
|
sessionID: string;
|
|
7
7
|
requestID: string;
|
|
@@ -487,6 +487,23 @@ export type Pty = {
|
|
|
487
487
|
pid: number;
|
|
488
488
|
exitCode?: number;
|
|
489
489
|
};
|
|
490
|
+
export type Shell = {
|
|
491
|
+
id: string;
|
|
492
|
+
status: "running" | "exited" | "timeout" | "killed";
|
|
493
|
+
command: string;
|
|
494
|
+
cwd: string;
|
|
495
|
+
shell: string;
|
|
496
|
+
file: string;
|
|
497
|
+
pid?: number;
|
|
498
|
+
exit?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
499
|
+
metadata: {
|
|
500
|
+
[key: string]: unknown;
|
|
501
|
+
};
|
|
502
|
+
time: {
|
|
503
|
+
started: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
504
|
+
completed?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
505
|
+
};
|
|
506
|
+
};
|
|
490
507
|
export type Todo = {
|
|
491
508
|
/**
|
|
492
509
|
* Brief description of the task
|
|
@@ -1091,6 +1108,26 @@ export type GlobalEvent = {
|
|
|
1091
1108
|
properties: {
|
|
1092
1109
|
id: string;
|
|
1093
1110
|
};
|
|
1111
|
+
} | {
|
|
1112
|
+
id: string;
|
|
1113
|
+
type: "shell.created";
|
|
1114
|
+
properties: {
|
|
1115
|
+
info: Shell;
|
|
1116
|
+
};
|
|
1117
|
+
} | {
|
|
1118
|
+
id: string;
|
|
1119
|
+
type: "shell.exited";
|
|
1120
|
+
properties: {
|
|
1121
|
+
id: string;
|
|
1122
|
+
exit?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
1123
|
+
status: "running" | "exited" | "timeout" | "killed";
|
|
1124
|
+
};
|
|
1125
|
+
} | {
|
|
1126
|
+
id: string;
|
|
1127
|
+
type: "shell.deleted";
|
|
1128
|
+
properties: {
|
|
1129
|
+
id: string;
|
|
1130
|
+
};
|
|
1094
1131
|
} | {
|
|
1095
1132
|
id: string;
|
|
1096
1133
|
type: "question.v2.asked";
|
|
@@ -2264,6 +2301,11 @@ export type SessionMessagesResponse = {
|
|
|
2264
2301
|
next?: string;
|
|
2265
2302
|
};
|
|
2266
2303
|
};
|
|
2304
|
+
export type GenerateTextResponse = {
|
|
2305
|
+
data: {
|
|
2306
|
+
text: string;
|
|
2307
|
+
};
|
|
2308
|
+
};
|
|
2267
2309
|
export type ProviderNotFoundError = {
|
|
2268
2310
|
_tag: "ProviderNotFoundError";
|
|
2269
2311
|
providerID: string;
|
|
@@ -2276,6 +2318,23 @@ export type OutputFormat1 = {
|
|
|
2276
2318
|
schema: JsonSchema;
|
|
2277
2319
|
retryCount?: number;
|
|
2278
2320
|
};
|
|
2321
|
+
export type Shell1 = {
|
|
2322
|
+
id: string;
|
|
2323
|
+
status: "running" | "exited" | "timeout" | "killed";
|
|
2324
|
+
command: string;
|
|
2325
|
+
cwd: string;
|
|
2326
|
+
shell: string;
|
|
2327
|
+
file: string;
|
|
2328
|
+
pid?: number;
|
|
2329
|
+
exit?: number | "NaN" | "Infinity" | "-Infinity";
|
|
2330
|
+
metadata: {
|
|
2331
|
+
[key: string]: unknown;
|
|
2332
|
+
};
|
|
2333
|
+
time: {
|
|
2334
|
+
started: number | "NaN" | "Infinity" | "-Infinity";
|
|
2335
|
+
completed?: number | "NaN" | "Infinity" | "-Infinity";
|
|
2336
|
+
};
|
|
2337
|
+
};
|
|
2279
2338
|
export type SessionStatus2 = {
|
|
2280
2339
|
id: string;
|
|
2281
2340
|
metadata?: {
|
|
@@ -2328,12 +2387,17 @@ export type QuestionRejected2 = {
|
|
|
2328
2387
|
requestID: string;
|
|
2329
2388
|
};
|
|
2330
2389
|
};
|
|
2331
|
-
export type V2Event = ModelsDevRefreshed | IntegrationUpdated | IntegrationConnectionUpdated | CatalogUpdated | SessionCreated | SessionUpdated | SessionDeleted | MessageUpdated | MessageRemoved | MessagePartUpdated | MessagePartRemoved | SessionNextAgentSwitched | SessionNextModelSwitched | SessionNextMoved | SessionNextRenamed | SessionNextPrompted | SessionNextPromptAdmitted | SessionNextContextUpdated | SessionNextSynthetic | SessionNextShellStarted | SessionNextShellEnded | SessionNextStepStarted | SessionNextStepEnded | SessionNextStepFailed | SessionNextTextStarted | SessionNextTextDelta | SessionNextTextEnded | SessionNextReasoningStarted | SessionNextReasoningDelta | SessionNextReasoningEnded | SessionNextToolInputStarted | SessionNextToolInputDelta | SessionNextToolInputEnded | SessionNextToolCalled | SessionNextToolProgress | SessionNextToolSuccess | SessionNextToolFailed | SessionNextRetried | SessionNextCompactionStarted | SessionNextCompactionDelta | SessionNextCompactionEnded | SessionNextRevertStaged | SessionNextRevertCleared | SessionNextRevertCommitted | MessagePartDelta | SessionDiff | SessionError | InstallationUpdated | InstallationUpdateAvailable | FileEdited | ReferenceUpdated | PermissionV2Asked | PermissionV2Replied | PluginAdded | ProjectDirectoriesUpdated | FileWatcherUpdated | PtyCreated | PtyUpdated | PtyExited | PtyDeleted | QuestionV2Asked | QuestionV2Replied | QuestionV2Rejected | TodoUpdated | LspUpdated | PermissionAsked | PermissionReplied | TuiPromptAppend | TuiCommandExecute | TuiToastShow | TuiSessionSelect | McpToolsChanged | McpBrowserOpenFailed | CommandExecuted | ProjectUpdated | SessionStatus2 | SessionIdle | QuestionAsked | QuestionReplied2 | QuestionRejected2 | SessionCompacted | VcsBranchUpdated | WorkspaceReady | WorkspaceFailed | WorkspaceStatus | WorktreeReady | WorktreeFailed | ServerConnected | GlobalDisposed;
|
|
2390
|
+
export type V2Event = ModelsDevRefreshed | IntegrationUpdated | IntegrationConnectionUpdated | CatalogUpdated | SessionCreated | SessionUpdated | SessionDeleted | MessageUpdated | MessageRemoved | MessagePartUpdated | MessagePartRemoved | SessionNextAgentSwitched | SessionNextModelSwitched | SessionNextMoved | SessionNextRenamed | SessionNextPrompted | SessionNextPromptAdmitted | SessionNextContextUpdated | SessionNextSynthetic | SessionNextShellStarted | SessionNextShellEnded | SessionNextStepStarted | SessionNextStepEnded | SessionNextStepFailed | SessionNextTextStarted | SessionNextTextDelta | SessionNextTextEnded | SessionNextReasoningStarted | SessionNextReasoningDelta | SessionNextReasoningEnded | SessionNextToolInputStarted | SessionNextToolInputDelta | SessionNextToolInputEnded | SessionNextToolCalled | SessionNextToolProgress | SessionNextToolSuccess | SessionNextToolFailed | SessionNextRetried | SessionNextCompactionStarted | SessionNextCompactionDelta | SessionNextCompactionEnded | SessionNextRevertStaged | SessionNextRevertCleared | SessionNextRevertCommitted | MessagePartDelta | SessionDiff | SessionError | InstallationUpdated | InstallationUpdateAvailable | FileEdited | ReferenceUpdated | PermissionV2Asked | PermissionV2Replied | PluginAdded | ProjectDirectoriesUpdated | FileWatcherUpdated | PtyCreated | PtyUpdated | PtyExited | PtyDeleted | ShellCreated | ShellExited | ShellDeleted | QuestionV2Asked | QuestionV2Replied | QuestionV2Rejected | TodoUpdated | LspUpdated | PermissionAsked | PermissionReplied | TuiPromptAppend | TuiCommandExecute | TuiToastShow | TuiSessionSelect | McpToolsChanged | McpBrowserOpenFailed | CommandExecuted | ProjectUpdated | SessionStatus2 | SessionIdle | QuestionAsked | QuestionReplied2 | QuestionRejected2 | SessionCompacted | VcsBranchUpdated | WorkspaceReady | WorkspaceFailed | WorkspaceStatus | WorktreeReady | WorktreeFailed | ServerConnected | GlobalDisposed;
|
|
2332
2391
|
export type V2EventStream = string;
|
|
2333
2392
|
export type ForbiddenError = {
|
|
2334
2393
|
_tag: "ForbiddenError";
|
|
2335
2394
|
message: string;
|
|
2336
2395
|
};
|
|
2396
|
+
export type ShellNotFoundError = {
|
|
2397
|
+
_tag: "ShellNotFoundError";
|
|
2398
|
+
id: string;
|
|
2399
|
+
message: string;
|
|
2400
|
+
};
|
|
2337
2401
|
export type ProjectCopyError = {
|
|
2338
2402
|
name: "ProjectCopyError";
|
|
2339
2403
|
data: {
|
|
@@ -2344,6 +2408,23 @@ export type ProjectCopyError = {
|
|
|
2344
2408
|
export type EffectHttpApiErrorForbidden = {
|
|
2345
2409
|
_tag: "Forbidden";
|
|
2346
2410
|
};
|
|
2411
|
+
export type Shell2 = {
|
|
2412
|
+
id: string;
|
|
2413
|
+
status: "running" | "exited" | "timeout" | "killed";
|
|
2414
|
+
command: string;
|
|
2415
|
+
cwd: string;
|
|
2416
|
+
shell: string;
|
|
2417
|
+
file: string;
|
|
2418
|
+
pid?: number;
|
|
2419
|
+
exit?: number | "NaN" | "Infinity" | "-Infinity";
|
|
2420
|
+
metadata: {
|
|
2421
|
+
[key: string]: unknown;
|
|
2422
|
+
};
|
|
2423
|
+
time: {
|
|
2424
|
+
started: number | "NaN" | "Infinity" | "-Infinity";
|
|
2425
|
+
completed?: number | "NaN" | "Infinity" | "-Infinity";
|
|
2426
|
+
};
|
|
2427
|
+
};
|
|
2347
2428
|
export type EventTuiPromptAppend2 = {
|
|
2348
2429
|
id: string;
|
|
2349
2430
|
type: "tui.prompt.append";
|
|
@@ -4785,6 +4866,56 @@ export type PtyDeleted = {
|
|
|
4785
4866
|
id: string;
|
|
4786
4867
|
};
|
|
4787
4868
|
};
|
|
4869
|
+
export type ShellCreated = {
|
|
4870
|
+
id: string;
|
|
4871
|
+
metadata?: {
|
|
4872
|
+
[key: string]: unknown;
|
|
4873
|
+
};
|
|
4874
|
+
type: "shell.created";
|
|
4875
|
+
durable?: {
|
|
4876
|
+
aggregateID: string;
|
|
4877
|
+
seq: number;
|
|
4878
|
+
version: number;
|
|
4879
|
+
};
|
|
4880
|
+
location?: LocationRef;
|
|
4881
|
+
data: {
|
|
4882
|
+
info: Shell1;
|
|
4883
|
+
};
|
|
4884
|
+
};
|
|
4885
|
+
export type ShellExited = {
|
|
4886
|
+
id: string;
|
|
4887
|
+
metadata?: {
|
|
4888
|
+
[key: string]: unknown;
|
|
4889
|
+
};
|
|
4890
|
+
type: "shell.exited";
|
|
4891
|
+
durable?: {
|
|
4892
|
+
aggregateID: string;
|
|
4893
|
+
seq: number;
|
|
4894
|
+
version: number;
|
|
4895
|
+
};
|
|
4896
|
+
location?: LocationRef;
|
|
4897
|
+
data: {
|
|
4898
|
+
id: string;
|
|
4899
|
+
exit?: number | "NaN" | "Infinity" | "-Infinity";
|
|
4900
|
+
status: "running" | "exited" | "timeout" | "killed";
|
|
4901
|
+
};
|
|
4902
|
+
};
|
|
4903
|
+
export type ShellDeleted = {
|
|
4904
|
+
id: string;
|
|
4905
|
+
metadata?: {
|
|
4906
|
+
[key: string]: unknown;
|
|
4907
|
+
};
|
|
4908
|
+
type: "shell.deleted";
|
|
4909
|
+
durable?: {
|
|
4910
|
+
aggregateID: string;
|
|
4911
|
+
seq: number;
|
|
4912
|
+
version: number;
|
|
4913
|
+
};
|
|
4914
|
+
location?: LocationRef;
|
|
4915
|
+
data: {
|
|
4916
|
+
id: string;
|
|
4917
|
+
};
|
|
4918
|
+
};
|
|
4788
4919
|
export type QuestionV2Asked = {
|
|
4789
4920
|
id: string;
|
|
4790
4921
|
metadata?: {
|
|
@@ -5885,6 +6016,29 @@ export type EventPtyDeleted = {
|
|
|
5885
6016
|
id: string;
|
|
5886
6017
|
};
|
|
5887
6018
|
};
|
|
6019
|
+
export type EventShellCreated = {
|
|
6020
|
+
id: string;
|
|
6021
|
+
type: "shell.created";
|
|
6022
|
+
properties: {
|
|
6023
|
+
info: Shell2;
|
|
6024
|
+
};
|
|
6025
|
+
};
|
|
6026
|
+
export type EventShellExited = {
|
|
6027
|
+
id: string;
|
|
6028
|
+
type: "shell.exited";
|
|
6029
|
+
properties: {
|
|
6030
|
+
id: string;
|
|
6031
|
+
exit?: number | "NaN" | "Infinity" | "-Infinity";
|
|
6032
|
+
status: "running" | "exited" | "timeout" | "killed";
|
|
6033
|
+
};
|
|
6034
|
+
};
|
|
6035
|
+
export type EventShellDeleted = {
|
|
6036
|
+
id: string;
|
|
6037
|
+
type: "shell.deleted";
|
|
6038
|
+
properties: {
|
|
6039
|
+
id: string;
|
|
6040
|
+
};
|
|
6041
|
+
};
|
|
5888
6042
|
export type EventQuestionV2Asked = {
|
|
5889
6043
|
id: string;
|
|
5890
6044
|
type: "question.v2.asked";
|
|
@@ -10410,6 +10564,42 @@ export type V2ModelListResponses = {
|
|
|
10410
10564
|
};
|
|
10411
10565
|
};
|
|
10412
10566
|
export type V2ModelListResponse = V2ModelListResponses[keyof V2ModelListResponses];
|
|
10567
|
+
export type V2GenerateTextData = {
|
|
10568
|
+
body: {
|
|
10569
|
+
prompt: string;
|
|
10570
|
+
model?: ModelRef;
|
|
10571
|
+
};
|
|
10572
|
+
path?: never;
|
|
10573
|
+
query?: {
|
|
10574
|
+
location?: {
|
|
10575
|
+
directory?: string;
|
|
10576
|
+
workspace?: string;
|
|
10577
|
+
};
|
|
10578
|
+
};
|
|
10579
|
+
url: "/api/generate";
|
|
10580
|
+
};
|
|
10581
|
+
export type V2GenerateTextErrors = {
|
|
10582
|
+
/**
|
|
10583
|
+
* InvalidRequestError
|
|
10584
|
+
*/
|
|
10585
|
+
400: InvalidRequestError;
|
|
10586
|
+
/**
|
|
10587
|
+
* UnauthorizedError
|
|
10588
|
+
*/
|
|
10589
|
+
401: UnauthorizedError;
|
|
10590
|
+
/**
|
|
10591
|
+
* ServiceUnavailableError
|
|
10592
|
+
*/
|
|
10593
|
+
503: ServiceUnavailableError;
|
|
10594
|
+
};
|
|
10595
|
+
export type V2GenerateTextError = V2GenerateTextErrors[keyof V2GenerateTextErrors];
|
|
10596
|
+
export type V2GenerateTextResponses = {
|
|
10597
|
+
/**
|
|
10598
|
+
* GenerateTextResponse
|
|
10599
|
+
*/
|
|
10600
|
+
200: GenerateTextResponse;
|
|
10601
|
+
};
|
|
10602
|
+
export type V2GenerateTextResponse = V2GenerateTextResponses[keyof V2GenerateTextResponses];
|
|
10413
10603
|
export type V2ProviderListData = {
|
|
10414
10604
|
body?: never;
|
|
10415
10605
|
path?: never;
|
|
@@ -11475,6 +11665,195 @@ export type V2PtyConnectResponses = {
|
|
|
11475
11665
|
200: boolean;
|
|
11476
11666
|
};
|
|
11477
11667
|
export type V2PtyConnectResponse = V2PtyConnectResponses[keyof V2PtyConnectResponses];
|
|
11668
|
+
export type V2ShellListData = {
|
|
11669
|
+
body?: never;
|
|
11670
|
+
path?: never;
|
|
11671
|
+
query?: {
|
|
11672
|
+
location?: {
|
|
11673
|
+
directory?: string;
|
|
11674
|
+
workspace?: string;
|
|
11675
|
+
};
|
|
11676
|
+
};
|
|
11677
|
+
url: "/api/shell";
|
|
11678
|
+
};
|
|
11679
|
+
export type V2ShellListErrors = {
|
|
11680
|
+
/**
|
|
11681
|
+
* InvalidRequestError
|
|
11682
|
+
*/
|
|
11683
|
+
400: InvalidRequestError;
|
|
11684
|
+
/**
|
|
11685
|
+
* UnauthorizedError
|
|
11686
|
+
*/
|
|
11687
|
+
401: UnauthorizedError;
|
|
11688
|
+
};
|
|
11689
|
+
export type V2ShellListError = V2ShellListErrors[keyof V2ShellListErrors];
|
|
11690
|
+
export type V2ShellListResponses = {
|
|
11691
|
+
/**
|
|
11692
|
+
* Success
|
|
11693
|
+
*/
|
|
11694
|
+
200: {
|
|
11695
|
+
location: LocationInfo;
|
|
11696
|
+
data: Array<Shell>;
|
|
11697
|
+
};
|
|
11698
|
+
};
|
|
11699
|
+
export type V2ShellListResponse = V2ShellListResponses[keyof V2ShellListResponses];
|
|
11700
|
+
export type V2ShellCreateData = {
|
|
11701
|
+
body: {
|
|
11702
|
+
command: string;
|
|
11703
|
+
cwd?: string;
|
|
11704
|
+
timeout?: number;
|
|
11705
|
+
metadata?: {
|
|
11706
|
+
[key: string]: unknown;
|
|
11707
|
+
};
|
|
11708
|
+
};
|
|
11709
|
+
path?: never;
|
|
11710
|
+
query?: {
|
|
11711
|
+
location?: {
|
|
11712
|
+
directory?: string;
|
|
11713
|
+
workspace?: string;
|
|
11714
|
+
};
|
|
11715
|
+
};
|
|
11716
|
+
url: "/api/shell";
|
|
11717
|
+
};
|
|
11718
|
+
export type V2ShellCreateErrors = {
|
|
11719
|
+
/**
|
|
11720
|
+
* InvalidRequestError
|
|
11721
|
+
*/
|
|
11722
|
+
400: InvalidRequestError;
|
|
11723
|
+
/**
|
|
11724
|
+
* UnauthorizedError
|
|
11725
|
+
*/
|
|
11726
|
+
401: UnauthorizedError;
|
|
11727
|
+
};
|
|
11728
|
+
export type V2ShellCreateError = V2ShellCreateErrors[keyof V2ShellCreateErrors];
|
|
11729
|
+
export type V2ShellCreateResponses = {
|
|
11730
|
+
/**
|
|
11731
|
+
* Success
|
|
11732
|
+
*/
|
|
11733
|
+
200: {
|
|
11734
|
+
location: LocationInfo;
|
|
11735
|
+
data: Shell;
|
|
11736
|
+
};
|
|
11737
|
+
};
|
|
11738
|
+
export type V2ShellCreateResponse = V2ShellCreateResponses[keyof V2ShellCreateResponses];
|
|
11739
|
+
export type V2ShellRemoveData = {
|
|
11740
|
+
body?: never;
|
|
11741
|
+
path: {
|
|
11742
|
+
id: string;
|
|
11743
|
+
};
|
|
11744
|
+
query?: {
|
|
11745
|
+
location?: {
|
|
11746
|
+
directory?: string;
|
|
11747
|
+
workspace?: string;
|
|
11748
|
+
};
|
|
11749
|
+
};
|
|
11750
|
+
url: "/api/shell/{id}";
|
|
11751
|
+
};
|
|
11752
|
+
export type V2ShellRemoveErrors = {
|
|
11753
|
+
/**
|
|
11754
|
+
* InvalidRequestError
|
|
11755
|
+
*/
|
|
11756
|
+
400: InvalidRequestError;
|
|
11757
|
+
/**
|
|
11758
|
+
* UnauthorizedError
|
|
11759
|
+
*/
|
|
11760
|
+
401: UnauthorizedError;
|
|
11761
|
+
/**
|
|
11762
|
+
* ShellNotFoundError
|
|
11763
|
+
*/
|
|
11764
|
+
404: ShellNotFoundError;
|
|
11765
|
+
};
|
|
11766
|
+
export type V2ShellRemoveError = V2ShellRemoveErrors[keyof V2ShellRemoveErrors];
|
|
11767
|
+
export type V2ShellRemoveResponses = {
|
|
11768
|
+
/**
|
|
11769
|
+
* <No Content>
|
|
11770
|
+
*/
|
|
11771
|
+
204: void;
|
|
11772
|
+
};
|
|
11773
|
+
export type V2ShellRemoveResponse = V2ShellRemoveResponses[keyof V2ShellRemoveResponses];
|
|
11774
|
+
export type V2ShellGetData = {
|
|
11775
|
+
body?: never;
|
|
11776
|
+
path: {
|
|
11777
|
+
id: string;
|
|
11778
|
+
};
|
|
11779
|
+
query?: {
|
|
11780
|
+
location?: {
|
|
11781
|
+
directory?: string;
|
|
11782
|
+
workspace?: string;
|
|
11783
|
+
};
|
|
11784
|
+
};
|
|
11785
|
+
url: "/api/shell/{id}";
|
|
11786
|
+
};
|
|
11787
|
+
export type V2ShellGetErrors = {
|
|
11788
|
+
/**
|
|
11789
|
+
* InvalidRequestError
|
|
11790
|
+
*/
|
|
11791
|
+
400: InvalidRequestError;
|
|
11792
|
+
/**
|
|
11793
|
+
* UnauthorizedError
|
|
11794
|
+
*/
|
|
11795
|
+
401: UnauthorizedError;
|
|
11796
|
+
/**
|
|
11797
|
+
* ShellNotFoundError
|
|
11798
|
+
*/
|
|
11799
|
+
404: ShellNotFoundError;
|
|
11800
|
+
};
|
|
11801
|
+
export type V2ShellGetError = V2ShellGetErrors[keyof V2ShellGetErrors];
|
|
11802
|
+
export type V2ShellGetResponses = {
|
|
11803
|
+
/**
|
|
11804
|
+
* Success
|
|
11805
|
+
*/
|
|
11806
|
+
200: {
|
|
11807
|
+
location: LocationInfo;
|
|
11808
|
+
data: Shell;
|
|
11809
|
+
};
|
|
11810
|
+
};
|
|
11811
|
+
export type V2ShellGetResponse = V2ShellGetResponses[keyof V2ShellGetResponses];
|
|
11812
|
+
export type V2ShellOutputData = {
|
|
11813
|
+
body?: never;
|
|
11814
|
+
path: {
|
|
11815
|
+
id: string;
|
|
11816
|
+
};
|
|
11817
|
+
query?: {
|
|
11818
|
+
location?: {
|
|
11819
|
+
directory?: string;
|
|
11820
|
+
workspace?: string;
|
|
11821
|
+
};
|
|
11822
|
+
cursor?: string;
|
|
11823
|
+
limit?: string;
|
|
11824
|
+
};
|
|
11825
|
+
url: "/api/shell/{id}/output";
|
|
11826
|
+
};
|
|
11827
|
+
export type V2ShellOutputErrors = {
|
|
11828
|
+
/**
|
|
11829
|
+
* InvalidRequestError
|
|
11830
|
+
*/
|
|
11831
|
+
400: InvalidRequestError;
|
|
11832
|
+
/**
|
|
11833
|
+
* UnauthorizedError
|
|
11834
|
+
*/
|
|
11835
|
+
401: UnauthorizedError;
|
|
11836
|
+
/**
|
|
11837
|
+
* ShellNotFoundError
|
|
11838
|
+
*/
|
|
11839
|
+
404: ShellNotFoundError;
|
|
11840
|
+
};
|
|
11841
|
+
export type V2ShellOutputError = V2ShellOutputErrors[keyof V2ShellOutputErrors];
|
|
11842
|
+
export type V2ShellOutputResponses = {
|
|
11843
|
+
/**
|
|
11844
|
+
* Success
|
|
11845
|
+
*/
|
|
11846
|
+
200: {
|
|
11847
|
+
location: LocationInfo;
|
|
11848
|
+
data: {
|
|
11849
|
+
output: string;
|
|
11850
|
+
cursor: number;
|
|
11851
|
+
size: number;
|
|
11852
|
+
truncated: boolean;
|
|
11853
|
+
};
|
|
11854
|
+
};
|
|
11855
|
+
};
|
|
11856
|
+
export type V2ShellOutputResponse = V2ShellOutputResponses[keyof V2ShellOutputResponses];
|
|
11478
11857
|
export type V2QuestionRequestListData = {
|
|
11479
11858
|
body?: never;
|
|
11480
11859
|
path?: never;
|