@opencode-ai/sdk 1.17.5 → 1.17.7
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 +107 -1
- package/dist/v2/gen/sdk.gen.js +167 -1
- package/dist/v2/gen/types.gen.d.ts +408 -225
- 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, 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, MoveSessionDestination, OutputFormat, Part as Part2, PartDeleteErrors, PartDeleteResponses, PartUpdateErrors, PartUpdateResponses, PathGetErrors, PathGetResponses, PermissionListErrors, PermissionListResponses, PermissionReplyErrors, PermissionReplyResponses, PermissionRespondErrors, PermissionRespondResponses, PermissionRuleset, PermissionV2Reply, ProjectCurrentErrors, ProjectCurrentResponses, ProjectDirectoriesErrors, ProjectDirectoriesResponses, ProjectInitGitErrors, ProjectInitGitResponses, ProjectListErrors, ProjectListResponses, ProjectUpdateErrors, ProjectUpdateResponses, Prompt, 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, V2QuestionRequestListErrors, V2QuestionRequestListResponses, V2ReferenceListErrors, V2ReferenceListResponses, V2SessionCompactErrors, V2SessionCompactResponses, V2SessionContextErrors, V2SessionContextResponses, V2SessionCreateErrors, V2SessionCreateResponses, V2SessionGetErrors, V2SessionGetResponses, V2SessionListErrors, V2SessionListResponses, V2SessionMessagesErrors, V2SessionMessagesResponses, V2SessionPermissionListErrors, V2SessionPermissionListResponses, V2SessionPermissionReplyErrors, V2SessionPermissionReplyResponses, V2SessionPromptErrors, V2SessionPromptResponses, V2SessionQuestionListErrors, V2SessionQuestionListResponses, V2SessionQuestionRejectErrors, V2SessionQuestionRejectResponses, V2SessionQuestionReplyErrors, V2SessionQuestionReplyResponses, 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, 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, MoveSessionDestination, OutputFormat, Part as Part2, PartDeleteErrors, PartDeleteResponses, PartUpdateErrors, PartUpdateResponses, PathGetErrors, PathGetResponses, PermissionListErrors, PermissionListResponses, PermissionReplyErrors, PermissionReplyResponses, PermissionRespondErrors, PermissionRespondResponses, PermissionRuleset, PermissionV2Reply, ProjectCurrentErrors, ProjectCurrentResponses, ProjectDirectoriesErrors, ProjectDirectoriesResponses, ProjectInitGitErrors, ProjectInitGitResponses, ProjectListErrors, ProjectListResponses, ProjectUpdateErrors, ProjectUpdateResponses, Prompt, 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, V2SessionCompactErrors, V2SessionCompactResponses, V2SessionContextErrors, V2SessionContextResponses, V2SessionCreateErrors, V2SessionCreateResponses, V2SessionGetErrors, V2SessionGetResponses, V2SessionListErrors, V2SessionListResponses, V2SessionMessagesErrors, V2SessionMessagesResponses, V2SessionPermissionListErrors, V2SessionPermissionListResponses, V2SessionPermissionReplyErrors, V2SessionPermissionReplyResponses, V2SessionPromptErrors, V2SessionPromptResponses, V2SessionQuestionListErrors, V2SessionQuestionListResponses, V2SessionQuestionRejectErrors, V2SessionQuestionRejectResponses, V2SessionQuestionReplyErrors, V2SessionQuestionReplyResponses, 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";
|
|
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
|
|
@@ -1807,6 +1807,10 @@ export declare class Credential extends HeyApiClient {
|
|
|
1807
1807
|
*/
|
|
1808
1808
|
remove<ThrowOnError extends boolean = false>(parameters: {
|
|
1809
1809
|
credentialID: string;
|
|
1810
|
+
location?: {
|
|
1811
|
+
directory?: string;
|
|
1812
|
+
workspace?: string;
|
|
1813
|
+
};
|
|
1810
1814
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<V2CredentialRemoveResponses, V2CredentialRemoveErrors, ThrowOnError, "fields">;
|
|
1811
1815
|
/**
|
|
1812
1816
|
* Update credential
|
|
@@ -1815,6 +1819,10 @@ export declare class Credential extends HeyApiClient {
|
|
|
1815
1819
|
*/
|
|
1816
1820
|
update<ThrowOnError extends boolean = false>(parameters: {
|
|
1817
1821
|
credentialID: string;
|
|
1822
|
+
location?: {
|
|
1823
|
+
directory?: string;
|
|
1824
|
+
workspace?: string;
|
|
1825
|
+
};
|
|
1818
1826
|
label?: string;
|
|
1819
1827
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<V2CredentialUpdateResponses, V2CredentialUpdateErrors, ThrowOnError, "fields">;
|
|
1820
1828
|
}
|
|
@@ -1933,6 +1941,102 @@ export declare class Event2 extends HeyApiClient {
|
|
|
1933
1941
|
};
|
|
1934
1942
|
}, options?: Options<never, ThrowOnError>): Promise<import("./core/serverSentEvents.gen.js").ServerSentEventsResult<V2EventSubscribeResponses>>;
|
|
1935
1943
|
}
|
|
1944
|
+
export declare class Pty2 extends HeyApiClient {
|
|
1945
|
+
/**
|
|
1946
|
+
* List PTY sessions
|
|
1947
|
+
*
|
|
1948
|
+
* List PTY sessions for a location, including exited sessions retained until removal.
|
|
1949
|
+
*/
|
|
1950
|
+
list<ThrowOnError extends boolean = false>(parameters?: {
|
|
1951
|
+
location?: {
|
|
1952
|
+
directory?: string;
|
|
1953
|
+
workspace?: string;
|
|
1954
|
+
};
|
|
1955
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<V2PtyListResponses, V2PtyListErrors, ThrowOnError, "fields">;
|
|
1956
|
+
/**
|
|
1957
|
+
* Create PTY session
|
|
1958
|
+
*
|
|
1959
|
+
* Create a pseudo-terminal session for a location.
|
|
1960
|
+
*/
|
|
1961
|
+
create<ThrowOnError extends boolean = false>(parameters?: {
|
|
1962
|
+
location?: {
|
|
1963
|
+
directory?: string;
|
|
1964
|
+
workspace?: string;
|
|
1965
|
+
};
|
|
1966
|
+
command?: string;
|
|
1967
|
+
args?: Array<string>;
|
|
1968
|
+
cwd?: string;
|
|
1969
|
+
title?: string;
|
|
1970
|
+
env?: {
|
|
1971
|
+
[key: string]: string;
|
|
1972
|
+
};
|
|
1973
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<V2PtyCreateResponses, V2PtyCreateErrors, ThrowOnError, "fields">;
|
|
1974
|
+
/**
|
|
1975
|
+
* Remove PTY session
|
|
1976
|
+
*
|
|
1977
|
+
* Terminate and remove one PTY session.
|
|
1978
|
+
*/
|
|
1979
|
+
remove<ThrowOnError extends boolean = false>(parameters: {
|
|
1980
|
+
ptyID: string;
|
|
1981
|
+
location?: {
|
|
1982
|
+
directory?: string;
|
|
1983
|
+
workspace?: string;
|
|
1984
|
+
};
|
|
1985
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<V2PtyRemoveResponses, V2PtyRemoveErrors, ThrowOnError, "fields">;
|
|
1986
|
+
/**
|
|
1987
|
+
* Get PTY session
|
|
1988
|
+
*
|
|
1989
|
+
* Get one PTY session, including its exit code once exited.
|
|
1990
|
+
*/
|
|
1991
|
+
get<ThrowOnError extends boolean = false>(parameters: {
|
|
1992
|
+
ptyID: string;
|
|
1993
|
+
location?: {
|
|
1994
|
+
directory?: string;
|
|
1995
|
+
workspace?: string;
|
|
1996
|
+
};
|
|
1997
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<V2PtyGetResponses, V2PtyGetErrors, ThrowOnError, "fields">;
|
|
1998
|
+
/**
|
|
1999
|
+
* Update PTY session
|
|
2000
|
+
*
|
|
2001
|
+
* Update the title or viewport size of one PTY session.
|
|
2002
|
+
*/
|
|
2003
|
+
update<ThrowOnError extends boolean = false>(parameters: {
|
|
2004
|
+
ptyID: string;
|
|
2005
|
+
location?: {
|
|
2006
|
+
directory?: string;
|
|
2007
|
+
workspace?: string;
|
|
2008
|
+
};
|
|
2009
|
+
title?: string;
|
|
2010
|
+
size?: {
|
|
2011
|
+
rows: number;
|
|
2012
|
+
cols: number;
|
|
2013
|
+
};
|
|
2014
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<V2PtyUpdateResponses, V2PtyUpdateErrors, ThrowOnError, "fields">;
|
|
2015
|
+
/**
|
|
2016
|
+
* Create PTY WebSocket token
|
|
2017
|
+
*
|
|
2018
|
+
* Create a short-lived single-use ticket for opening a PTY WebSocket connection.
|
|
2019
|
+
*/
|
|
2020
|
+
connectToken<ThrowOnError extends boolean = false>(parameters: {
|
|
2021
|
+
ptyID: string;
|
|
2022
|
+
location?: {
|
|
2023
|
+
directory?: string;
|
|
2024
|
+
workspace?: string;
|
|
2025
|
+
};
|
|
2026
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<V2PtyConnectTokenResponses, V2PtyConnectTokenErrors, ThrowOnError, "fields">;
|
|
2027
|
+
/**
|
|
2028
|
+
* Connect to PTY session
|
|
2029
|
+
*
|
|
2030
|
+
* Establish a WebSocket connection streaming PTY output and accepting terminal input.
|
|
2031
|
+
*/
|
|
2032
|
+
connect<ThrowOnError extends boolean = false>(parameters: {
|
|
2033
|
+
ptyID: string;
|
|
2034
|
+
"location[directory]"?: string;
|
|
2035
|
+
"location[workspace]"?: string;
|
|
2036
|
+
cursor?: string;
|
|
2037
|
+
ticket?: string;
|
|
2038
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<V2PtyConnectResponses, V2PtyConnectErrors, ThrowOnError, "fields">;
|
|
2039
|
+
}
|
|
1936
2040
|
export declare class Request2 extends HeyApiClient {
|
|
1937
2041
|
/**
|
|
1938
2042
|
* List pending question requests
|
|
@@ -2018,6 +2122,8 @@ export declare class V2 extends HeyApiClient {
|
|
|
2018
2122
|
get skill(): Skill;
|
|
2019
2123
|
private _event?;
|
|
2020
2124
|
get event(): Event2;
|
|
2125
|
+
private _pty?;
|
|
2126
|
+
get pty(): Pty2;
|
|
2021
2127
|
private _question?;
|
|
2022
2128
|
get question(): Question3;
|
|
2023
2129
|
private _reference?;
|
package/dist/v2/gen/sdk.gen.js
CHANGED
|
@@ -3557,7 +3557,14 @@ export class Credential extends HeyApiClient {
|
|
|
3557
3557
|
* Remove a stored integration credential.
|
|
3558
3558
|
*/
|
|
3559
3559
|
remove(parameters, options) {
|
|
3560
|
-
const params = buildClientParams([parameters], [
|
|
3560
|
+
const params = buildClientParams([parameters], [
|
|
3561
|
+
{
|
|
3562
|
+
args: [
|
|
3563
|
+
{ in: "path", key: "credentialID" },
|
|
3564
|
+
{ in: "query", key: "location" },
|
|
3565
|
+
],
|
|
3566
|
+
},
|
|
3567
|
+
]);
|
|
3561
3568
|
return (options?.client ?? this.client).delete({
|
|
3562
3569
|
url: "/api/credential/{credentialID}",
|
|
3563
3570
|
...options,
|
|
@@ -3574,6 +3581,7 @@ export class Credential extends HeyApiClient {
|
|
|
3574
3581
|
{
|
|
3575
3582
|
args: [
|
|
3576
3583
|
{ in: "path", key: "credentialID" },
|
|
3584
|
+
{ in: "query", key: "location" },
|
|
3577
3585
|
{ in: "body", key: "label" },
|
|
3578
3586
|
],
|
|
3579
3587
|
},
|
|
@@ -3745,6 +3753,160 @@ export class Event2 extends HeyApiClient {
|
|
|
3745
3753
|
});
|
|
3746
3754
|
}
|
|
3747
3755
|
}
|
|
3756
|
+
export class Pty2 extends HeyApiClient {
|
|
3757
|
+
/**
|
|
3758
|
+
* List PTY sessions
|
|
3759
|
+
*
|
|
3760
|
+
* List PTY sessions for a location, including exited sessions retained until removal.
|
|
3761
|
+
*/
|
|
3762
|
+
list(parameters, options) {
|
|
3763
|
+
const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "location" }] }]);
|
|
3764
|
+
return (options?.client ?? this.client).get({
|
|
3765
|
+
url: "/api/pty",
|
|
3766
|
+
...options,
|
|
3767
|
+
...params,
|
|
3768
|
+
});
|
|
3769
|
+
}
|
|
3770
|
+
/**
|
|
3771
|
+
* Create PTY session
|
|
3772
|
+
*
|
|
3773
|
+
* Create a pseudo-terminal session for a location.
|
|
3774
|
+
*/
|
|
3775
|
+
create(parameters, options) {
|
|
3776
|
+
const params = buildClientParams([parameters], [
|
|
3777
|
+
{
|
|
3778
|
+
args: [
|
|
3779
|
+
{ in: "query", key: "location" },
|
|
3780
|
+
{ in: "body", key: "command" },
|
|
3781
|
+
{ in: "body", key: "args" },
|
|
3782
|
+
{ in: "body", key: "cwd" },
|
|
3783
|
+
{ in: "body", key: "title" },
|
|
3784
|
+
{ in: "body", key: "env" },
|
|
3785
|
+
],
|
|
3786
|
+
},
|
|
3787
|
+
]);
|
|
3788
|
+
return (options?.client ?? this.client).post({
|
|
3789
|
+
url: "/api/pty",
|
|
3790
|
+
...options,
|
|
3791
|
+
...params,
|
|
3792
|
+
headers: {
|
|
3793
|
+
"Content-Type": "application/json",
|
|
3794
|
+
...options?.headers,
|
|
3795
|
+
...params.headers,
|
|
3796
|
+
},
|
|
3797
|
+
});
|
|
3798
|
+
}
|
|
3799
|
+
/**
|
|
3800
|
+
* Remove PTY session
|
|
3801
|
+
*
|
|
3802
|
+
* Terminate and remove one PTY session.
|
|
3803
|
+
*/
|
|
3804
|
+
remove(parameters, options) {
|
|
3805
|
+
const params = buildClientParams([parameters], [
|
|
3806
|
+
{
|
|
3807
|
+
args: [
|
|
3808
|
+
{ in: "path", key: "ptyID" },
|
|
3809
|
+
{ in: "query", key: "location" },
|
|
3810
|
+
],
|
|
3811
|
+
},
|
|
3812
|
+
]);
|
|
3813
|
+
return (options?.client ?? this.client).delete({
|
|
3814
|
+
url: "/api/pty/{ptyID}",
|
|
3815
|
+
...options,
|
|
3816
|
+
...params,
|
|
3817
|
+
});
|
|
3818
|
+
}
|
|
3819
|
+
/**
|
|
3820
|
+
* Get PTY session
|
|
3821
|
+
*
|
|
3822
|
+
* Get one PTY session, including its exit code once exited.
|
|
3823
|
+
*/
|
|
3824
|
+
get(parameters, options) {
|
|
3825
|
+
const params = buildClientParams([parameters], [
|
|
3826
|
+
{
|
|
3827
|
+
args: [
|
|
3828
|
+
{ in: "path", key: "ptyID" },
|
|
3829
|
+
{ in: "query", key: "location" },
|
|
3830
|
+
],
|
|
3831
|
+
},
|
|
3832
|
+
]);
|
|
3833
|
+
return (options?.client ?? this.client).get({
|
|
3834
|
+
url: "/api/pty/{ptyID}",
|
|
3835
|
+
...options,
|
|
3836
|
+
...params,
|
|
3837
|
+
});
|
|
3838
|
+
}
|
|
3839
|
+
/**
|
|
3840
|
+
* Update PTY session
|
|
3841
|
+
*
|
|
3842
|
+
* Update the title or viewport size of one PTY session.
|
|
3843
|
+
*/
|
|
3844
|
+
update(parameters, options) {
|
|
3845
|
+
const params = buildClientParams([parameters], [
|
|
3846
|
+
{
|
|
3847
|
+
args: [
|
|
3848
|
+
{ in: "path", key: "ptyID" },
|
|
3849
|
+
{ in: "query", key: "location" },
|
|
3850
|
+
{ in: "body", key: "title" },
|
|
3851
|
+
{ in: "body", key: "size" },
|
|
3852
|
+
],
|
|
3853
|
+
},
|
|
3854
|
+
]);
|
|
3855
|
+
return (options?.client ?? this.client).put({
|
|
3856
|
+
url: "/api/pty/{ptyID}",
|
|
3857
|
+
...options,
|
|
3858
|
+
...params,
|
|
3859
|
+
headers: {
|
|
3860
|
+
"Content-Type": "application/json",
|
|
3861
|
+
...options?.headers,
|
|
3862
|
+
...params.headers,
|
|
3863
|
+
},
|
|
3864
|
+
});
|
|
3865
|
+
}
|
|
3866
|
+
/**
|
|
3867
|
+
* Create PTY WebSocket token
|
|
3868
|
+
*
|
|
3869
|
+
* Create a short-lived single-use ticket for opening a PTY WebSocket connection.
|
|
3870
|
+
*/
|
|
3871
|
+
connectToken(parameters, options) {
|
|
3872
|
+
const params = buildClientParams([parameters], [
|
|
3873
|
+
{
|
|
3874
|
+
args: [
|
|
3875
|
+
{ in: "path", key: "ptyID" },
|
|
3876
|
+
{ in: "query", key: "location" },
|
|
3877
|
+
],
|
|
3878
|
+
},
|
|
3879
|
+
]);
|
|
3880
|
+
return (options?.client ?? this.client).post({
|
|
3881
|
+
url: "/api/pty/{ptyID}/connect-token",
|
|
3882
|
+
...options,
|
|
3883
|
+
...params,
|
|
3884
|
+
});
|
|
3885
|
+
}
|
|
3886
|
+
/**
|
|
3887
|
+
* Connect to PTY session
|
|
3888
|
+
*
|
|
3889
|
+
* Establish a WebSocket connection streaming PTY output and accepting terminal input.
|
|
3890
|
+
*/
|
|
3891
|
+
connect(parameters, options) {
|
|
3892
|
+
const params = buildClientParams([parameters], [
|
|
3893
|
+
{
|
|
3894
|
+
args: [
|
|
3895
|
+
{ in: "path", key: "ptyID" },
|
|
3896
|
+
{ in: "query", key: "location[directory]" },
|
|
3897
|
+
{ in: "query", key: "location[workspace]" },
|
|
3898
|
+
{ in: "query", key: "cursor" },
|
|
3899
|
+
{ in: "query", key: "ticket" },
|
|
3900
|
+
],
|
|
3901
|
+
},
|
|
3902
|
+
]);
|
|
3903
|
+
return (options?.client ?? this.client).get({
|
|
3904
|
+
url: "/api/pty/{ptyID}/connect",
|
|
3905
|
+
...options,
|
|
3906
|
+
...params,
|
|
3907
|
+
});
|
|
3908
|
+
}
|
|
3909
|
+
}
|
|
3748
3910
|
export class Request2 extends HeyApiClient {
|
|
3749
3911
|
/**
|
|
3750
3912
|
* List pending question requests
|
|
@@ -3896,6 +4058,10 @@ export class V2 extends HeyApiClient {
|
|
|
3896
4058
|
get event() {
|
|
3897
4059
|
return (this._event ??= new Event2({ client: this.client }));
|
|
3898
4060
|
}
|
|
4061
|
+
_pty;
|
|
4062
|
+
get pty() {
|
|
4063
|
+
return (this._pty ??= new Pty2({ client: this.client }));
|
|
4064
|
+
}
|
|
3899
4065
|
_question;
|
|
3900
4066
|
get question() {
|
|
3901
4067
|
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 | EventPluginAdded |
|
|
4
|
+
export type Event = EventModelsDevRefreshed | EventPluginAdded | EventIntegrationUpdated | EventCatalogUpdated | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventSessionNextAgentSwitched | EventSessionNextModelSwitched | EventSessionNextMoved | EventSessionNextPrompted | EventSessionNextPromptAdmitted | EventSessionNextPromptPromoted | EventSessionNextInterruptRequested | EventSessionNextContextUpdated | EventSessionNextSynthetic | EventSessionNextShellStarted | EventSessionNextShellEnded | EventSessionNextStepStarted | EventSessionNextStepEnded | EventSessionNextStepFailed | EventSessionNextTextStarted | EventSessionNextTextDelta | EventSessionNextTextEnded | EventSessionNextReasoningStarted | EventSessionNextReasoningDelta | EventSessionNextReasoningEnded | EventSessionNextToolInputStarted | EventSessionNextToolInputDelta | EventSessionNextToolInputEnded | EventSessionNextToolCalled | EventSessionNextToolProgress | EventSessionNextToolSuccess | EventSessionNextToolFailed | EventSessionNextRetried | EventSessionNextCompactionStarted | EventSessionNextCompactionDelta | EventSessionNextCompactionEnded | EventMessagePartDelta | EventSessionDiff | EventSessionError | EventInstallationUpdated | EventInstallationUpdateAvailable | EventFileEdited | EventPermissionV2Asked | EventPermissionV2Replied | EventReferenceUpdated | 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;
|
|
5
5
|
export type QuestionReplied = {
|
|
6
6
|
sessionID: string;
|
|
7
7
|
requestID: string;
|
|
@@ -485,6 +485,7 @@ export type Pty = {
|
|
|
485
485
|
cwd: string;
|
|
486
486
|
status: "running" | "exited";
|
|
487
487
|
pid: number;
|
|
488
|
+
exitCode?: number;
|
|
488
489
|
};
|
|
489
490
|
export type Todo = {
|
|
490
491
|
/**
|
|
@@ -567,9 +568,15 @@ export type GlobalEvent = {
|
|
|
567
568
|
};
|
|
568
569
|
} | {
|
|
569
570
|
id: string;
|
|
570
|
-
type: "
|
|
571
|
+
type: "integration.updated";
|
|
572
|
+
properties: {
|
|
573
|
+
[key: string]: unknown;
|
|
574
|
+
};
|
|
575
|
+
} | {
|
|
576
|
+
id: string;
|
|
577
|
+
type: "catalog.updated";
|
|
571
578
|
properties: {
|
|
572
|
-
|
|
579
|
+
[key: string]: unknown;
|
|
573
580
|
};
|
|
574
581
|
} | {
|
|
575
582
|
id: string;
|
|
@@ -1025,12 +1032,6 @@ export type GlobalEvent = {
|
|
|
1025
1032
|
properties: {
|
|
1026
1033
|
file: string;
|
|
1027
1034
|
};
|
|
1028
|
-
} | {
|
|
1029
|
-
id: string;
|
|
1030
|
-
type: "integration.updated";
|
|
1031
|
-
properties: {
|
|
1032
|
-
[key: string]: unknown;
|
|
1033
|
-
};
|
|
1034
1035
|
} | {
|
|
1035
1036
|
id: string;
|
|
1036
1037
|
type: "permission.v2.asked";
|
|
@@ -2278,6 +2279,10 @@ export type ProviderNotFoundError = {
|
|
|
2278
2279
|
providerID: string;
|
|
2279
2280
|
message: string;
|
|
2280
2281
|
};
|
|
2282
|
+
export type ForbiddenError = {
|
|
2283
|
+
_tag: "ForbiddenError";
|
|
2284
|
+
message: string;
|
|
2285
|
+
};
|
|
2281
2286
|
export type ProjectCopyError = {
|
|
2282
2287
|
name: "ProjectCopyError";
|
|
2283
2288
|
data: {
|
|
@@ -2325,99 +2330,6 @@ export type EventTuiSessionSelect2 = {
|
|
|
2325
2330
|
export type MoveSessionDestination = {
|
|
2326
2331
|
directory: string;
|
|
2327
2332
|
};
|
|
2328
|
-
export type ModelV2Info = {
|
|
2329
|
-
id: string;
|
|
2330
|
-
providerID: string;
|
|
2331
|
-
family?: string;
|
|
2332
|
-
name: string;
|
|
2333
|
-
api: {
|
|
2334
|
-
id: string;
|
|
2335
|
-
type: "aisdk";
|
|
2336
|
-
package: string;
|
|
2337
|
-
url?: string;
|
|
2338
|
-
settings?: {
|
|
2339
|
-
[key: string]: unknown;
|
|
2340
|
-
};
|
|
2341
|
-
} | {
|
|
2342
|
-
id: string;
|
|
2343
|
-
type: "native";
|
|
2344
|
-
url?: string;
|
|
2345
|
-
settings: {
|
|
2346
|
-
[key: string]: unknown;
|
|
2347
|
-
};
|
|
2348
|
-
};
|
|
2349
|
-
capabilities: {
|
|
2350
|
-
tools: boolean;
|
|
2351
|
-
input: Array<string>;
|
|
2352
|
-
output: Array<string>;
|
|
2353
|
-
};
|
|
2354
|
-
request: {
|
|
2355
|
-
headers: {
|
|
2356
|
-
[key: string]: string;
|
|
2357
|
-
};
|
|
2358
|
-
body: {
|
|
2359
|
-
[key: string]: unknown;
|
|
2360
|
-
};
|
|
2361
|
-
generation?: {
|
|
2362
|
-
maxTokens?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
2363
|
-
temperature?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
2364
|
-
topP?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
2365
|
-
topK?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
2366
|
-
frequencyPenalty?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
2367
|
-
presencePenalty?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
2368
|
-
seed?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
2369
|
-
stop?: Array<string>;
|
|
2370
|
-
};
|
|
2371
|
-
options?: {
|
|
2372
|
-
[key: string]: unknown;
|
|
2373
|
-
};
|
|
2374
|
-
variant?: string;
|
|
2375
|
-
};
|
|
2376
|
-
variants: Array<{
|
|
2377
|
-
id: string;
|
|
2378
|
-
headers: {
|
|
2379
|
-
[key: string]: string;
|
|
2380
|
-
};
|
|
2381
|
-
body: {
|
|
2382
|
-
[key: string]: unknown;
|
|
2383
|
-
};
|
|
2384
|
-
generation?: {
|
|
2385
|
-
maxTokens?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
2386
|
-
temperature?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
2387
|
-
topP?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
2388
|
-
topK?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
2389
|
-
frequencyPenalty?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
2390
|
-
presencePenalty?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
2391
|
-
seed?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
2392
|
-
stop?: Array<string>;
|
|
2393
|
-
};
|
|
2394
|
-
options?: {
|
|
2395
|
-
[key: string]: unknown;
|
|
2396
|
-
};
|
|
2397
|
-
}>;
|
|
2398
|
-
time: {
|
|
2399
|
-
released: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
2400
|
-
};
|
|
2401
|
-
cost: Array<{
|
|
2402
|
-
tier?: {
|
|
2403
|
-
type: "context";
|
|
2404
|
-
size: number;
|
|
2405
|
-
};
|
|
2406
|
-
input: number;
|
|
2407
|
-
output: number;
|
|
2408
|
-
cache: {
|
|
2409
|
-
read: number;
|
|
2410
|
-
write: number;
|
|
2411
|
-
};
|
|
2412
|
-
}>;
|
|
2413
|
-
status: "alpha" | "beta" | "deprecated" | "active";
|
|
2414
|
-
enabled: boolean;
|
|
2415
|
-
limit: {
|
|
2416
|
-
context: number;
|
|
2417
|
-
input?: number;
|
|
2418
|
-
output: number;
|
|
2419
|
-
};
|
|
2420
|
-
};
|
|
2421
2333
|
export type LocationRef = {
|
|
2422
2334
|
directory: string;
|
|
2423
2335
|
workspaceID?: string;
|
|
@@ -3419,22 +3331,103 @@ export type SessionMessageCompaction = {
|
|
|
3419
3331
|
};
|
|
3420
3332
|
};
|
|
3421
3333
|
export type SessionMessage = SessionMessageAgentSwitched | SessionMessageModelSwitched | SessionMessageUser | SessionMessageSynthetic | SessionMessageSystem | SessionMessageShell | SessionMessageAssistant | SessionMessageCompaction;
|
|
3422
|
-
export type
|
|
3334
|
+
export type ModelV2Info = {
|
|
3423
3335
|
id: string;
|
|
3336
|
+
providerID: string;
|
|
3337
|
+
family?: string;
|
|
3424
3338
|
name: string;
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3339
|
+
api: {
|
|
3340
|
+
id: string;
|
|
3341
|
+
type: "aisdk";
|
|
3342
|
+
package: string;
|
|
3343
|
+
url?: string;
|
|
3344
|
+
settings?: {
|
|
3345
|
+
[key: string]: unknown;
|
|
3346
|
+
};
|
|
3431
3347
|
} | {
|
|
3432
|
-
|
|
3433
|
-
|
|
3348
|
+
id: string;
|
|
3349
|
+
type: "native";
|
|
3350
|
+
url?: string;
|
|
3351
|
+
settings: {
|
|
3434
3352
|
[key: string]: unknown;
|
|
3435
3353
|
};
|
|
3436
3354
|
};
|
|
3437
|
-
|
|
3355
|
+
capabilities: {
|
|
3356
|
+
tools: boolean;
|
|
3357
|
+
input: Array<string>;
|
|
3358
|
+
output: Array<string>;
|
|
3359
|
+
};
|
|
3360
|
+
request: {
|
|
3361
|
+
headers: {
|
|
3362
|
+
[key: string]: string;
|
|
3363
|
+
};
|
|
3364
|
+
body: {
|
|
3365
|
+
[key: string]: unknown;
|
|
3366
|
+
};
|
|
3367
|
+
generation?: {
|
|
3368
|
+
maxTokens?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
3369
|
+
temperature?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
3370
|
+
topP?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
3371
|
+
topK?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
3372
|
+
frequencyPenalty?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
3373
|
+
presencePenalty?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
3374
|
+
seed?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
3375
|
+
stop?: Array<string>;
|
|
3376
|
+
};
|
|
3377
|
+
options?: {
|
|
3378
|
+
[key: string]: unknown;
|
|
3379
|
+
};
|
|
3380
|
+
variant?: string;
|
|
3381
|
+
};
|
|
3382
|
+
variants: Array<{
|
|
3383
|
+
id: string;
|
|
3384
|
+
headers: {
|
|
3385
|
+
[key: string]: string;
|
|
3386
|
+
};
|
|
3387
|
+
body: {
|
|
3388
|
+
[key: string]: unknown;
|
|
3389
|
+
};
|
|
3390
|
+
generation?: {
|
|
3391
|
+
maxTokens?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
3392
|
+
temperature?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
3393
|
+
topP?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
3394
|
+
topK?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
3395
|
+
frequencyPenalty?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
3396
|
+
presencePenalty?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
3397
|
+
seed?: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
3398
|
+
stop?: Array<string>;
|
|
3399
|
+
};
|
|
3400
|
+
options?: {
|
|
3401
|
+
[key: string]: unknown;
|
|
3402
|
+
};
|
|
3403
|
+
}>;
|
|
3404
|
+
time: {
|
|
3405
|
+
released: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
3406
|
+
};
|
|
3407
|
+
cost: Array<{
|
|
3408
|
+
tier?: {
|
|
3409
|
+
type: "context";
|
|
3410
|
+
size: number;
|
|
3411
|
+
};
|
|
3412
|
+
input: number;
|
|
3413
|
+
output: number;
|
|
3414
|
+
cache: {
|
|
3415
|
+
read: number;
|
|
3416
|
+
write: number;
|
|
3417
|
+
};
|
|
3418
|
+
}>;
|
|
3419
|
+
status: "alpha" | "beta" | "deprecated" | "active";
|
|
3420
|
+
enabled: boolean;
|
|
3421
|
+
limit: {
|
|
3422
|
+
context: number;
|
|
3423
|
+
input?: number;
|
|
3424
|
+
output: number;
|
|
3425
|
+
};
|
|
3426
|
+
};
|
|
3427
|
+
export type ProviderV2Info = {
|
|
3428
|
+
id: string;
|
|
3429
|
+
name: string;
|
|
3430
|
+
disabled?: boolean;
|
|
3438
3431
|
api: {
|
|
3439
3432
|
type: "aisdk";
|
|
3440
3433
|
package: string;
|
|
@@ -3604,114 +3597,28 @@ export type EventModelsDevRefreshed = {
|
|
|
3604
3597
|
id: string;
|
|
3605
3598
|
type: "models-dev.refreshed";
|
|
3606
3599
|
properties: {
|
|
3607
|
-
[key: string]: unknown;
|
|
3608
|
-
};
|
|
3609
|
-
};
|
|
3610
|
-
export type EventPluginAdded = {
|
|
3611
|
-
id: string;
|
|
3612
|
-
type: "plugin.added";
|
|
3613
|
-
properties: {
|
|
3614
|
-
id: string;
|
|
3615
|
-
};
|
|
3616
|
-
};
|
|
3617
|
-
export type ModelV2Info1 = {
|
|
3618
|
-
id: string;
|
|
3619
|
-
providerID: string;
|
|
3620
|
-
family?: string;
|
|
3621
|
-
name: string;
|
|
3622
|
-
api: {
|
|
3623
|
-
id: string;
|
|
3624
|
-
type: "aisdk";
|
|
3625
|
-
package: string;
|
|
3626
|
-
url?: string;
|
|
3627
|
-
settings?: {
|
|
3628
|
-
[key: string]: unknown;
|
|
3629
|
-
};
|
|
3630
|
-
} | {
|
|
3631
|
-
id: string;
|
|
3632
|
-
type: "native";
|
|
3633
|
-
url?: string;
|
|
3634
|
-
settings: {
|
|
3635
|
-
[key: string]: unknown;
|
|
3636
|
-
};
|
|
3637
|
-
};
|
|
3638
|
-
capabilities: {
|
|
3639
|
-
tools: boolean;
|
|
3640
|
-
input: Array<string>;
|
|
3641
|
-
output: Array<string>;
|
|
3642
|
-
};
|
|
3643
|
-
request: {
|
|
3644
|
-
headers: {
|
|
3645
|
-
[key: string]: string;
|
|
3646
|
-
};
|
|
3647
|
-
body: {
|
|
3648
|
-
[key: string]: unknown;
|
|
3649
|
-
};
|
|
3650
|
-
generation?: {
|
|
3651
|
-
maxTokens?: number | "NaN" | "Infinity" | "-Infinity";
|
|
3652
|
-
temperature?: number | "NaN" | "Infinity" | "-Infinity";
|
|
3653
|
-
topP?: number | "NaN" | "Infinity" | "-Infinity";
|
|
3654
|
-
topK?: number | "NaN" | "Infinity" | "-Infinity";
|
|
3655
|
-
frequencyPenalty?: number | "NaN" | "Infinity" | "-Infinity";
|
|
3656
|
-
presencePenalty?: number | "NaN" | "Infinity" | "-Infinity";
|
|
3657
|
-
seed?: number | "NaN" | "Infinity" | "-Infinity";
|
|
3658
|
-
stop?: Array<string>;
|
|
3659
|
-
};
|
|
3660
|
-
options?: {
|
|
3661
|
-
[key: string]: unknown;
|
|
3662
|
-
};
|
|
3663
|
-
variant?: string;
|
|
3664
|
-
};
|
|
3665
|
-
variants: Array<{
|
|
3666
|
-
id: string;
|
|
3667
|
-
headers: {
|
|
3668
|
-
[key: string]: string;
|
|
3669
|
-
};
|
|
3670
|
-
body: {
|
|
3671
|
-
[key: string]: unknown;
|
|
3672
|
-
};
|
|
3673
|
-
generation?: {
|
|
3674
|
-
maxTokens?: number | "NaN" | "Infinity" | "-Infinity";
|
|
3675
|
-
temperature?: number | "NaN" | "Infinity" | "-Infinity";
|
|
3676
|
-
topP?: number | "NaN" | "Infinity" | "-Infinity";
|
|
3677
|
-
topK?: number | "NaN" | "Infinity" | "-Infinity";
|
|
3678
|
-
frequencyPenalty?: number | "NaN" | "Infinity" | "-Infinity";
|
|
3679
|
-
presencePenalty?: number | "NaN" | "Infinity" | "-Infinity";
|
|
3680
|
-
seed?: number | "NaN" | "Infinity" | "-Infinity";
|
|
3681
|
-
stop?: Array<string>;
|
|
3682
|
-
};
|
|
3683
|
-
options?: {
|
|
3684
|
-
[key: string]: unknown;
|
|
3685
|
-
};
|
|
3686
|
-
}>;
|
|
3687
|
-
time: {
|
|
3688
|
-
released: number | "NaN" | "Infinity" | "-Infinity";
|
|
3689
|
-
};
|
|
3690
|
-
cost: Array<{
|
|
3691
|
-
tier?: {
|
|
3692
|
-
type: "context";
|
|
3693
|
-
size: number;
|
|
3694
|
-
};
|
|
3695
|
-
input: number;
|
|
3696
|
-
output: number;
|
|
3697
|
-
cache: {
|
|
3698
|
-
read: number;
|
|
3699
|
-
write: number;
|
|
3700
|
-
};
|
|
3701
|
-
}>;
|
|
3702
|
-
status: "alpha" | "beta" | "deprecated" | "active";
|
|
3703
|
-
enabled: boolean;
|
|
3704
|
-
limit: {
|
|
3705
|
-
context: number;
|
|
3706
|
-
input?: number;
|
|
3707
|
-
output: number;
|
|
3600
|
+
[key: string]: unknown;
|
|
3601
|
+
};
|
|
3602
|
+
};
|
|
3603
|
+
export type EventPluginAdded = {
|
|
3604
|
+
id: string;
|
|
3605
|
+
type: "plugin.added";
|
|
3606
|
+
properties: {
|
|
3607
|
+
id: string;
|
|
3708
3608
|
};
|
|
3709
3609
|
};
|
|
3710
|
-
export type
|
|
3610
|
+
export type EventIntegrationUpdated = {
|
|
3611
|
+
id: string;
|
|
3612
|
+
type: "integration.updated";
|
|
3613
|
+
properties: {
|
|
3614
|
+
[key: string]: unknown;
|
|
3615
|
+
};
|
|
3616
|
+
};
|
|
3617
|
+
export type EventCatalogUpdated = {
|
|
3711
3618
|
id: string;
|
|
3712
|
-
type: "catalog.
|
|
3619
|
+
type: "catalog.updated";
|
|
3713
3620
|
properties: {
|
|
3714
|
-
|
|
3621
|
+
[key: string]: unknown;
|
|
3715
3622
|
};
|
|
3716
3623
|
};
|
|
3717
3624
|
export type EventSessionCreated = {
|
|
@@ -4212,13 +4119,6 @@ export type EventFileEdited = {
|
|
|
4212
4119
|
file: string;
|
|
4213
4120
|
};
|
|
4214
4121
|
};
|
|
4215
|
-
export type EventIntegrationUpdated = {
|
|
4216
|
-
id: string;
|
|
4217
|
-
type: "integration.updated";
|
|
4218
|
-
properties: {
|
|
4219
|
-
[key: string]: unknown;
|
|
4220
|
-
};
|
|
4221
|
-
};
|
|
4222
4122
|
export type EventPermissionV2Asked = {
|
|
4223
4123
|
id: string;
|
|
4224
4124
|
type: "permission.v2.asked";
|
|
@@ -8766,7 +8666,12 @@ export type V2CredentialRemoveData = {
|
|
|
8766
8666
|
path: {
|
|
8767
8667
|
credentialID: string;
|
|
8768
8668
|
};
|
|
8769
|
-
query?:
|
|
8669
|
+
query?: {
|
|
8670
|
+
location?: {
|
|
8671
|
+
directory?: string;
|
|
8672
|
+
workspace?: string;
|
|
8673
|
+
};
|
|
8674
|
+
};
|
|
8770
8675
|
url: "/api/credential/{credentialID}";
|
|
8771
8676
|
};
|
|
8772
8677
|
export type V2CredentialRemoveErrors = {
|
|
@@ -8794,7 +8699,12 @@ export type V2CredentialUpdateData = {
|
|
|
8794
8699
|
path: {
|
|
8795
8700
|
credentialID: string;
|
|
8796
8701
|
};
|
|
8797
|
-
query?:
|
|
8702
|
+
query?: {
|
|
8703
|
+
location?: {
|
|
8704
|
+
directory?: string;
|
|
8705
|
+
workspace?: string;
|
|
8706
|
+
};
|
|
8707
|
+
};
|
|
8798
8708
|
url: "/api/credential/{credentialID}";
|
|
8799
8709
|
};
|
|
8800
8710
|
export type V2CredentialUpdateErrors = {
|
|
@@ -9157,6 +9067,279 @@ export type V2EventSubscribeResponses = {
|
|
|
9157
9067
|
200: string;
|
|
9158
9068
|
};
|
|
9159
9069
|
export type V2EventSubscribeResponse = V2EventSubscribeResponses[keyof V2EventSubscribeResponses];
|
|
9070
|
+
export type V2PtyListData = {
|
|
9071
|
+
body?: never;
|
|
9072
|
+
path?: never;
|
|
9073
|
+
query?: {
|
|
9074
|
+
location?: {
|
|
9075
|
+
directory?: string;
|
|
9076
|
+
workspace?: string;
|
|
9077
|
+
};
|
|
9078
|
+
};
|
|
9079
|
+
url: "/api/pty";
|
|
9080
|
+
};
|
|
9081
|
+
export type V2PtyListErrors = {
|
|
9082
|
+
/**
|
|
9083
|
+
* InvalidRequestError
|
|
9084
|
+
*/
|
|
9085
|
+
400: InvalidRequestError;
|
|
9086
|
+
/**
|
|
9087
|
+
* UnauthorizedError
|
|
9088
|
+
*/
|
|
9089
|
+
401: UnauthorizedError;
|
|
9090
|
+
};
|
|
9091
|
+
export type V2PtyListError = V2PtyListErrors[keyof V2PtyListErrors];
|
|
9092
|
+
export type V2PtyListResponses = {
|
|
9093
|
+
/**
|
|
9094
|
+
* Success
|
|
9095
|
+
*/
|
|
9096
|
+
200: {
|
|
9097
|
+
location: LocationInfo;
|
|
9098
|
+
data: Array<Pty>;
|
|
9099
|
+
};
|
|
9100
|
+
};
|
|
9101
|
+
export type V2PtyListResponse = V2PtyListResponses[keyof V2PtyListResponses];
|
|
9102
|
+
export type V2PtyCreateData = {
|
|
9103
|
+
body: {
|
|
9104
|
+
command?: string;
|
|
9105
|
+
args?: Array<string>;
|
|
9106
|
+
cwd?: string;
|
|
9107
|
+
title?: string;
|
|
9108
|
+
env?: {
|
|
9109
|
+
[key: string]: string;
|
|
9110
|
+
};
|
|
9111
|
+
};
|
|
9112
|
+
path?: never;
|
|
9113
|
+
query?: {
|
|
9114
|
+
location?: {
|
|
9115
|
+
directory?: string;
|
|
9116
|
+
workspace?: string;
|
|
9117
|
+
};
|
|
9118
|
+
};
|
|
9119
|
+
url: "/api/pty";
|
|
9120
|
+
};
|
|
9121
|
+
export type V2PtyCreateErrors = {
|
|
9122
|
+
/**
|
|
9123
|
+
* InvalidRequestError
|
|
9124
|
+
*/
|
|
9125
|
+
400: InvalidRequestError;
|
|
9126
|
+
/**
|
|
9127
|
+
* UnauthorizedError
|
|
9128
|
+
*/
|
|
9129
|
+
401: UnauthorizedError;
|
|
9130
|
+
};
|
|
9131
|
+
export type V2PtyCreateError = V2PtyCreateErrors[keyof V2PtyCreateErrors];
|
|
9132
|
+
export type V2PtyCreateResponses = {
|
|
9133
|
+
/**
|
|
9134
|
+
* Success
|
|
9135
|
+
*/
|
|
9136
|
+
200: {
|
|
9137
|
+
location: LocationInfo;
|
|
9138
|
+
data: Pty;
|
|
9139
|
+
};
|
|
9140
|
+
};
|
|
9141
|
+
export type V2PtyCreateResponse = V2PtyCreateResponses[keyof V2PtyCreateResponses];
|
|
9142
|
+
export type V2PtyRemoveData = {
|
|
9143
|
+
body?: never;
|
|
9144
|
+
path: {
|
|
9145
|
+
ptyID: string;
|
|
9146
|
+
};
|
|
9147
|
+
query?: {
|
|
9148
|
+
location?: {
|
|
9149
|
+
directory?: string;
|
|
9150
|
+
workspace?: string;
|
|
9151
|
+
};
|
|
9152
|
+
};
|
|
9153
|
+
url: "/api/pty/{ptyID}";
|
|
9154
|
+
};
|
|
9155
|
+
export type V2PtyRemoveErrors = {
|
|
9156
|
+
/**
|
|
9157
|
+
* InvalidRequestError
|
|
9158
|
+
*/
|
|
9159
|
+
400: InvalidRequestError;
|
|
9160
|
+
/**
|
|
9161
|
+
* UnauthorizedError
|
|
9162
|
+
*/
|
|
9163
|
+
401: UnauthorizedError;
|
|
9164
|
+
/**
|
|
9165
|
+
* PtyNotFoundError
|
|
9166
|
+
*/
|
|
9167
|
+
404: PtyNotFoundError;
|
|
9168
|
+
};
|
|
9169
|
+
export type V2PtyRemoveError = V2PtyRemoveErrors[keyof V2PtyRemoveErrors];
|
|
9170
|
+
export type V2PtyRemoveResponses = {
|
|
9171
|
+
/**
|
|
9172
|
+
* <No Content>
|
|
9173
|
+
*/
|
|
9174
|
+
204: void;
|
|
9175
|
+
};
|
|
9176
|
+
export type V2PtyRemoveResponse = V2PtyRemoveResponses[keyof V2PtyRemoveResponses];
|
|
9177
|
+
export type V2PtyGetData = {
|
|
9178
|
+
body?: never;
|
|
9179
|
+
path: {
|
|
9180
|
+
ptyID: string;
|
|
9181
|
+
};
|
|
9182
|
+
query?: {
|
|
9183
|
+
location?: {
|
|
9184
|
+
directory?: string;
|
|
9185
|
+
workspace?: string;
|
|
9186
|
+
};
|
|
9187
|
+
};
|
|
9188
|
+
url: "/api/pty/{ptyID}";
|
|
9189
|
+
};
|
|
9190
|
+
export type V2PtyGetErrors = {
|
|
9191
|
+
/**
|
|
9192
|
+
* InvalidRequestError
|
|
9193
|
+
*/
|
|
9194
|
+
400: InvalidRequestError;
|
|
9195
|
+
/**
|
|
9196
|
+
* UnauthorizedError
|
|
9197
|
+
*/
|
|
9198
|
+
401: UnauthorizedError;
|
|
9199
|
+
/**
|
|
9200
|
+
* PtyNotFoundError
|
|
9201
|
+
*/
|
|
9202
|
+
404: PtyNotFoundError;
|
|
9203
|
+
};
|
|
9204
|
+
export type V2PtyGetError = V2PtyGetErrors[keyof V2PtyGetErrors];
|
|
9205
|
+
export type V2PtyGetResponses = {
|
|
9206
|
+
/**
|
|
9207
|
+
* Success
|
|
9208
|
+
*/
|
|
9209
|
+
200: {
|
|
9210
|
+
location: LocationInfo;
|
|
9211
|
+
data: Pty;
|
|
9212
|
+
};
|
|
9213
|
+
};
|
|
9214
|
+
export type V2PtyGetResponse = V2PtyGetResponses[keyof V2PtyGetResponses];
|
|
9215
|
+
export type V2PtyUpdateData = {
|
|
9216
|
+
body: {
|
|
9217
|
+
title?: string;
|
|
9218
|
+
size?: {
|
|
9219
|
+
rows: number;
|
|
9220
|
+
cols: number;
|
|
9221
|
+
};
|
|
9222
|
+
};
|
|
9223
|
+
path: {
|
|
9224
|
+
ptyID: string;
|
|
9225
|
+
};
|
|
9226
|
+
query?: {
|
|
9227
|
+
location?: {
|
|
9228
|
+
directory?: string;
|
|
9229
|
+
workspace?: string;
|
|
9230
|
+
};
|
|
9231
|
+
};
|
|
9232
|
+
url: "/api/pty/{ptyID}";
|
|
9233
|
+
};
|
|
9234
|
+
export type V2PtyUpdateErrors = {
|
|
9235
|
+
/**
|
|
9236
|
+
* InvalidRequestError
|
|
9237
|
+
*/
|
|
9238
|
+
400: InvalidRequestError;
|
|
9239
|
+
/**
|
|
9240
|
+
* UnauthorizedError
|
|
9241
|
+
*/
|
|
9242
|
+
401: UnauthorizedError;
|
|
9243
|
+
/**
|
|
9244
|
+
* PtyNotFoundError
|
|
9245
|
+
*/
|
|
9246
|
+
404: PtyNotFoundError;
|
|
9247
|
+
};
|
|
9248
|
+
export type V2PtyUpdateError = V2PtyUpdateErrors[keyof V2PtyUpdateErrors];
|
|
9249
|
+
export type V2PtyUpdateResponses = {
|
|
9250
|
+
/**
|
|
9251
|
+
* Success
|
|
9252
|
+
*/
|
|
9253
|
+
200: {
|
|
9254
|
+
location: LocationInfo;
|
|
9255
|
+
data: Pty;
|
|
9256
|
+
};
|
|
9257
|
+
};
|
|
9258
|
+
export type V2PtyUpdateResponse = V2PtyUpdateResponses[keyof V2PtyUpdateResponses];
|
|
9259
|
+
export type V2PtyConnectTokenData = {
|
|
9260
|
+
body?: never;
|
|
9261
|
+
path: {
|
|
9262
|
+
ptyID: string;
|
|
9263
|
+
};
|
|
9264
|
+
query?: {
|
|
9265
|
+
location?: {
|
|
9266
|
+
directory?: string;
|
|
9267
|
+
workspace?: string;
|
|
9268
|
+
};
|
|
9269
|
+
};
|
|
9270
|
+
url: "/api/pty/{ptyID}/connect-token";
|
|
9271
|
+
};
|
|
9272
|
+
export type V2PtyConnectTokenErrors = {
|
|
9273
|
+
/**
|
|
9274
|
+
* InvalidRequestError
|
|
9275
|
+
*/
|
|
9276
|
+
400: InvalidRequestError;
|
|
9277
|
+
/**
|
|
9278
|
+
* UnauthorizedError
|
|
9279
|
+
*/
|
|
9280
|
+
401: UnauthorizedError;
|
|
9281
|
+
/**
|
|
9282
|
+
* ForbiddenError
|
|
9283
|
+
*/
|
|
9284
|
+
403: ForbiddenError;
|
|
9285
|
+
/**
|
|
9286
|
+
* PtyNotFoundError
|
|
9287
|
+
*/
|
|
9288
|
+
404: PtyNotFoundError;
|
|
9289
|
+
};
|
|
9290
|
+
export type V2PtyConnectTokenError = V2PtyConnectTokenErrors[keyof V2PtyConnectTokenErrors];
|
|
9291
|
+
export type V2PtyConnectTokenResponses = {
|
|
9292
|
+
/**
|
|
9293
|
+
* Success
|
|
9294
|
+
*/
|
|
9295
|
+
200: {
|
|
9296
|
+
location: LocationInfo;
|
|
9297
|
+
data: {
|
|
9298
|
+
ticket: string;
|
|
9299
|
+
expires_in: number;
|
|
9300
|
+
};
|
|
9301
|
+
};
|
|
9302
|
+
};
|
|
9303
|
+
export type V2PtyConnectTokenResponse = V2PtyConnectTokenResponses[keyof V2PtyConnectTokenResponses];
|
|
9304
|
+
export type V2PtyConnectData = {
|
|
9305
|
+
body?: never;
|
|
9306
|
+
path: {
|
|
9307
|
+
ptyID: string;
|
|
9308
|
+
};
|
|
9309
|
+
query?: {
|
|
9310
|
+
"location[directory]"?: string;
|
|
9311
|
+
"location[workspace]"?: string;
|
|
9312
|
+
cursor?: string;
|
|
9313
|
+
ticket?: string;
|
|
9314
|
+
};
|
|
9315
|
+
url: "/api/pty/{ptyID}/connect";
|
|
9316
|
+
};
|
|
9317
|
+
export type V2PtyConnectErrors = {
|
|
9318
|
+
/**
|
|
9319
|
+
* InvalidRequestError
|
|
9320
|
+
*/
|
|
9321
|
+
400: InvalidRequestError;
|
|
9322
|
+
/**
|
|
9323
|
+
* UnauthorizedError
|
|
9324
|
+
*/
|
|
9325
|
+
401: UnauthorizedError;
|
|
9326
|
+
/**
|
|
9327
|
+
* ForbiddenError
|
|
9328
|
+
*/
|
|
9329
|
+
403: ForbiddenError;
|
|
9330
|
+
/**
|
|
9331
|
+
* PtyNotFoundError
|
|
9332
|
+
*/
|
|
9333
|
+
404: PtyNotFoundError;
|
|
9334
|
+
};
|
|
9335
|
+
export type V2PtyConnectError = V2PtyConnectErrors[keyof V2PtyConnectErrors];
|
|
9336
|
+
export type V2PtyConnectResponses = {
|
|
9337
|
+
/**
|
|
9338
|
+
* Success
|
|
9339
|
+
*/
|
|
9340
|
+
200: boolean;
|
|
9341
|
+
};
|
|
9342
|
+
export type V2PtyConnectResponse = V2PtyConnectResponses[keyof V2PtyConnectResponses];
|
|
9160
9343
|
export type V2QuestionRequestListData = {
|
|
9161
9344
|
body?: never;
|
|
9162
9345
|
path?: never;
|