@opencode-ai/sdk 1.17.2 → 1.17.4
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/client.d.ts +1 -1
- package/dist/v2/gen/sdk.gen.d.ts +156 -4
- package/dist/v2/gen/sdk.gen.js +249 -10
- package/dist/v2/gen/types.gen.d.ts +538 -80
- package/package.json +1 -1
package/dist/v2/client.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from "./gen/types.gen.js";
|
|
2
|
-
export type {
|
|
2
|
+
export type { FileSystemEntry as LocationFileSystemEntry } from "./gen/types.gen.js";
|
|
3
3
|
import { type Config } from "./gen/client/types.gen.js";
|
|
4
4
|
import { OpencodeClient } from "./gen/sdk.gen.js";
|
|
5
5
|
export { type Config as OpencodeClientConfig, OpencodeClient };
|
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, ExperimentalProjectCopyCreateErrors, ExperimentalProjectCopyCreateResponses, ExperimentalProjectCopyRefreshErrors, ExperimentalProjectCopyRefreshResponses, ExperimentalProjectCopyRemoveErrors, ExperimentalProjectCopyRemoveResponses, 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, 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, V2EventSubscribeResponses, V2FsFindErrors, V2FsFindResponses, V2FsListErrors, V2FsListResponses, V2FsReadErrors, V2FsReadResponses, V2HealthGetErrors, V2HealthGetResponses, V2ModelListErrors, V2ModelListResponses, V2PermissionRequestListErrors, V2PermissionRequestListResponses, V2PermissionSavedListErrors, V2PermissionSavedListResponses, V2PermissionSavedRemoveErrors, V2PermissionSavedRemoveResponses, V2ProviderGetErrors, V2ProviderGetResponses, V2ProviderListErrors, V2ProviderListResponses, V2QuestionRequestListErrors, V2QuestionRequestListResponses, V2ReferenceListErrors, V2ReferenceListResponses, V2SessionCompactErrors, V2SessionCompactResponses, V2SessionContextErrors, V2SessionContextResponses, V2SessionListErrors, V2SessionListResponses, V2SessionMessagesErrors, V2SessionMessagesResponses, V2SessionPermissionListErrors, V2SessionPermissionListResponses, V2SessionPermissionReplyErrors, V2SessionPermissionReplyResponses, V2SessionPromptErrors, V2SessionPromptResponses, 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, ExperimentalProjectCopyCreateErrors, ExperimentalProjectCopyCreateResponses, ExperimentalProjectCopyRefreshErrors, ExperimentalProjectCopyRefreshResponses, ExperimentalProjectCopyRemoveErrors, ExperimentalProjectCopyRemoveResponses, 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, V2ConnectorConnectKeyErrors, V2ConnectorConnectKeyResponses, V2ConnectorConnectOauthBeginErrors, V2ConnectorConnectOauthBeginResponses, V2ConnectorConnectOauthCancelErrors, V2ConnectorConnectOauthCancelResponses, V2ConnectorConnectOauthCompleteErrors, V2ConnectorConnectOauthCompleteResponses, V2ConnectorConnectOauthStatusErrors, V2ConnectorConnectOauthStatusResponses, V2ConnectorGetErrors, V2ConnectorGetResponses, V2ConnectorListErrors, V2ConnectorListResponses, V2EventSubscribeResponses, V2FsFindErrors, V2FsFindResponses, V2FsListErrors, V2FsListResponses, V2FsReadErrors, V2FsReadResponses, V2HealthGetErrors, V2HealthGetResponses, V2LocationGetErrors, V2LocationGetResponses, V2ModelListErrors, V2ModelListResponses, V2PermissionRequestListErrors, V2PermissionRequestListResponses, V2PermissionSavedListErrors, V2PermissionSavedListResponses, V2PermissionSavedRemoveErrors, V2PermissionSavedRemoveResponses, 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";
|
|
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
|
|
@@ -1516,6 +1516,19 @@ export declare class Health extends HeyApiClient {
|
|
|
1516
1516
|
*/
|
|
1517
1517
|
get<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<V2HealthGetResponses, V2HealthGetErrors, ThrowOnError, "fields">;
|
|
1518
1518
|
}
|
|
1519
|
+
export declare class Location extends HeyApiClient {
|
|
1520
|
+
/**
|
|
1521
|
+
* Get location
|
|
1522
|
+
*
|
|
1523
|
+
* Resolve the requested location or the server default location.
|
|
1524
|
+
*/
|
|
1525
|
+
get<ThrowOnError extends boolean = false>(parameters?: {
|
|
1526
|
+
location?: {
|
|
1527
|
+
directory?: string;
|
|
1528
|
+
workspace?: string;
|
|
1529
|
+
};
|
|
1530
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<V2LocationGetResponses, V2LocationGetErrors, ThrowOnError, "fields">;
|
|
1531
|
+
}
|
|
1519
1532
|
export declare class Agent extends HeyApiClient {
|
|
1520
1533
|
/**
|
|
1521
1534
|
* List agents
|
|
@@ -1551,6 +1564,14 @@ export declare class Permission2 extends HeyApiClient {
|
|
|
1551
1564
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<V2SessionPermissionReplyResponses, V2SessionPermissionReplyErrors, ThrowOnError, "fields">;
|
|
1552
1565
|
}
|
|
1553
1566
|
export declare class Question2 extends HeyApiClient {
|
|
1567
|
+
/**
|
|
1568
|
+
* List session question requests
|
|
1569
|
+
*
|
|
1570
|
+
* Retrieve pending question requests owned by a session.
|
|
1571
|
+
*/
|
|
1572
|
+
list<ThrowOnError extends boolean = false>(parameters: {
|
|
1573
|
+
sessionID: string;
|
|
1574
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<V2SessionQuestionListResponses, V2SessionQuestionListErrors, ThrowOnError, "fields">;
|
|
1554
1575
|
/**
|
|
1555
1576
|
* Reply to pending question request
|
|
1556
1577
|
*
|
|
@@ -1587,6 +1608,29 @@ export declare class Session3 extends HeyApiClient {
|
|
|
1587
1608
|
subpath?: string;
|
|
1588
1609
|
cursor?: string;
|
|
1589
1610
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<V2SessionListResponses, V2SessionListErrors, ThrowOnError, "fields">;
|
|
1611
|
+
/**
|
|
1612
|
+
* Create session
|
|
1613
|
+
*
|
|
1614
|
+
* Create a session at the requested location.
|
|
1615
|
+
*/
|
|
1616
|
+
create<ThrowOnError extends boolean = false>(parameters?: {
|
|
1617
|
+
id?: string;
|
|
1618
|
+
agent?: string;
|
|
1619
|
+
model?: {
|
|
1620
|
+
id: string;
|
|
1621
|
+
providerID: string;
|
|
1622
|
+
variant?: string;
|
|
1623
|
+
};
|
|
1624
|
+
location?: LocationRef;
|
|
1625
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<V2SessionCreateResponses, V2SessionCreateErrors, ThrowOnError, "fields">;
|
|
1626
|
+
/**
|
|
1627
|
+
* Get session
|
|
1628
|
+
*
|
|
1629
|
+
* Retrieve a session by ID.
|
|
1630
|
+
*/
|
|
1631
|
+
get<ThrowOnError extends boolean = false>(parameters: {
|
|
1632
|
+
sessionID: string;
|
|
1633
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<V2SessionGetResponses, V2SessionGetErrors, ThrowOnError, "fields">;
|
|
1590
1634
|
/**
|
|
1591
1635
|
* Send message
|
|
1592
1636
|
*
|
|
@@ -1677,6 +1721,111 @@ export declare class Provider2 extends HeyApiClient {
|
|
|
1677
1721
|
};
|
|
1678
1722
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<V2ProviderGetResponses, V2ProviderGetErrors, ThrowOnError, "fields">;
|
|
1679
1723
|
}
|
|
1724
|
+
export declare class Oauth2 extends HeyApiClient {
|
|
1725
|
+
/**
|
|
1726
|
+
* Begin OAuth connection
|
|
1727
|
+
*
|
|
1728
|
+
* Start an OAuth attempt and return the authorization details.
|
|
1729
|
+
*/
|
|
1730
|
+
begin<ThrowOnError extends boolean = false>(parameters: {
|
|
1731
|
+
connectorID: string;
|
|
1732
|
+
location?: {
|
|
1733
|
+
directory?: string;
|
|
1734
|
+
workspace?: string;
|
|
1735
|
+
};
|
|
1736
|
+
methodID?: string;
|
|
1737
|
+
inputs?: {
|
|
1738
|
+
[key: string]: string;
|
|
1739
|
+
};
|
|
1740
|
+
label?: string;
|
|
1741
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<V2ConnectorConnectOauthBeginResponses, V2ConnectorConnectOauthBeginErrors, ThrowOnError, "fields">;
|
|
1742
|
+
/**
|
|
1743
|
+
* Cancel OAuth connection
|
|
1744
|
+
*
|
|
1745
|
+
* Cancel an OAuth attempt and release its resources.
|
|
1746
|
+
*/
|
|
1747
|
+
cancel<ThrowOnError extends boolean = false>(parameters: {
|
|
1748
|
+
attemptID: string;
|
|
1749
|
+
location?: {
|
|
1750
|
+
directory?: string;
|
|
1751
|
+
workspace?: string;
|
|
1752
|
+
};
|
|
1753
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<V2ConnectorConnectOauthCancelResponses, V2ConnectorConnectOauthCancelErrors, ThrowOnError, "fields">;
|
|
1754
|
+
/**
|
|
1755
|
+
* Get OAuth attempt status
|
|
1756
|
+
*
|
|
1757
|
+
* Poll the current status of an OAuth attempt.
|
|
1758
|
+
*/
|
|
1759
|
+
status<ThrowOnError extends boolean = false>(parameters: {
|
|
1760
|
+
attemptID: string;
|
|
1761
|
+
location?: {
|
|
1762
|
+
directory?: string;
|
|
1763
|
+
workspace?: string;
|
|
1764
|
+
};
|
|
1765
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<V2ConnectorConnectOauthStatusResponses, V2ConnectorConnectOauthStatusErrors, ThrowOnError, "fields">;
|
|
1766
|
+
/**
|
|
1767
|
+
* Complete OAuth connection
|
|
1768
|
+
*
|
|
1769
|
+
* Complete a code-based OAuth attempt and store the resulting credential.
|
|
1770
|
+
*/
|
|
1771
|
+
complete<ThrowOnError extends boolean = false>(parameters: {
|
|
1772
|
+
attemptID: string;
|
|
1773
|
+
location?: {
|
|
1774
|
+
directory?: string;
|
|
1775
|
+
workspace?: string;
|
|
1776
|
+
};
|
|
1777
|
+
code?: string;
|
|
1778
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<V2ConnectorConnectOauthCompleteResponses, V2ConnectorConnectOauthCompleteErrors, ThrowOnError, "fields">;
|
|
1779
|
+
}
|
|
1780
|
+
export declare class Connect extends HeyApiClient {
|
|
1781
|
+
/**
|
|
1782
|
+
* Connect with key
|
|
1783
|
+
*
|
|
1784
|
+
* Run a key authentication method and store the resulting credential.
|
|
1785
|
+
*/
|
|
1786
|
+
key<ThrowOnError extends boolean = false>(parameters: {
|
|
1787
|
+
connectorID: string;
|
|
1788
|
+
location?: {
|
|
1789
|
+
directory?: string;
|
|
1790
|
+
workspace?: string;
|
|
1791
|
+
};
|
|
1792
|
+
methodID?: string;
|
|
1793
|
+
key?: string;
|
|
1794
|
+
inputs?: {
|
|
1795
|
+
[key: string]: string;
|
|
1796
|
+
};
|
|
1797
|
+
label?: string;
|
|
1798
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<V2ConnectorConnectKeyResponses, V2ConnectorConnectKeyErrors, ThrowOnError, "fields">;
|
|
1799
|
+
private _oauth?;
|
|
1800
|
+
get oauth(): Oauth2;
|
|
1801
|
+
}
|
|
1802
|
+
export declare class Connector extends HeyApiClient {
|
|
1803
|
+
/**
|
|
1804
|
+
* List connectors
|
|
1805
|
+
*
|
|
1806
|
+
* Retrieve available connectors and their authentication methods.
|
|
1807
|
+
*/
|
|
1808
|
+
list<ThrowOnError extends boolean = false>(parameters?: {
|
|
1809
|
+
location?: {
|
|
1810
|
+
directory?: string;
|
|
1811
|
+
workspace?: string;
|
|
1812
|
+
};
|
|
1813
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<V2ConnectorListResponses, V2ConnectorListErrors, ThrowOnError, "fields">;
|
|
1814
|
+
/**
|
|
1815
|
+
* Get connector
|
|
1816
|
+
*
|
|
1817
|
+
* Retrieve one connector and its authentication methods.
|
|
1818
|
+
*/
|
|
1819
|
+
get<ThrowOnError extends boolean = false>(parameters: {
|
|
1820
|
+
connectorID: string;
|
|
1821
|
+
location?: {
|
|
1822
|
+
directory?: string;
|
|
1823
|
+
workspace?: string;
|
|
1824
|
+
};
|
|
1825
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<V2ConnectorGetResponses, V2ConnectorGetErrors, ThrowOnError, "fields">;
|
|
1826
|
+
private _connect?;
|
|
1827
|
+
get connect(): Connect;
|
|
1828
|
+
}
|
|
1680
1829
|
export declare class Request extends HeyApiClient {
|
|
1681
1830
|
/**
|
|
1682
1831
|
* List pending permission requests
|
|
@@ -1718,14 +1867,13 @@ export declare class Fs extends HeyApiClient {
|
|
|
1718
1867
|
/**
|
|
1719
1868
|
* Read file
|
|
1720
1869
|
*
|
|
1721
|
-
*
|
|
1870
|
+
* Serve one file relative to the requested location.
|
|
1722
1871
|
*/
|
|
1723
|
-
read<ThrowOnError extends boolean = false>(parameters
|
|
1872
|
+
read<ThrowOnError extends boolean = false>(parameters?: {
|
|
1724
1873
|
location?: {
|
|
1725
1874
|
directory?: string;
|
|
1726
1875
|
workspace?: string;
|
|
1727
1876
|
};
|
|
1728
|
-
path: string;
|
|
1729
1877
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<V2FsReadResponses, V2FsReadErrors, ThrowOnError, "fields">;
|
|
1730
1878
|
/**
|
|
1731
1879
|
* List directory
|
|
@@ -1826,6 +1974,8 @@ export declare class Reference extends HeyApiClient {
|
|
|
1826
1974
|
export declare class V2 extends HeyApiClient {
|
|
1827
1975
|
private _health?;
|
|
1828
1976
|
get health(): Health;
|
|
1977
|
+
private _location?;
|
|
1978
|
+
get location(): Location;
|
|
1829
1979
|
private _agent?;
|
|
1830
1980
|
get agent(): Agent;
|
|
1831
1981
|
private _session?;
|
|
@@ -1834,6 +1984,8 @@ export declare class V2 extends HeyApiClient {
|
|
|
1834
1984
|
get model(): Model;
|
|
1835
1985
|
private _provider?;
|
|
1836
1986
|
get provider(): Provider2;
|
|
1987
|
+
private _connector?;
|
|
1988
|
+
get connector(): Connector;
|
|
1837
1989
|
private _permission?;
|
|
1838
1990
|
get permission(): Permission3;
|
|
1839
1991
|
private _fs?;
|
package/dist/v2/gen/sdk.gen.js
CHANGED
|
@@ -3084,6 +3084,21 @@ export class Health extends HeyApiClient {
|
|
|
3084
3084
|
});
|
|
3085
3085
|
}
|
|
3086
3086
|
}
|
|
3087
|
+
export class Location extends HeyApiClient {
|
|
3088
|
+
/**
|
|
3089
|
+
* Get location
|
|
3090
|
+
*
|
|
3091
|
+
* Resolve the requested location or the server default location.
|
|
3092
|
+
*/
|
|
3093
|
+
get(parameters, options) {
|
|
3094
|
+
const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "location" }] }]);
|
|
3095
|
+
return (options?.client ?? this.client).get({
|
|
3096
|
+
url: "/api/location",
|
|
3097
|
+
...options,
|
|
3098
|
+
...params,
|
|
3099
|
+
});
|
|
3100
|
+
}
|
|
3101
|
+
}
|
|
3087
3102
|
export class Agent extends HeyApiClient {
|
|
3088
3103
|
/**
|
|
3089
3104
|
* List agents
|
|
@@ -3142,6 +3157,19 @@ export class Permission2 extends HeyApiClient {
|
|
|
3142
3157
|
}
|
|
3143
3158
|
}
|
|
3144
3159
|
export class Question2 extends HeyApiClient {
|
|
3160
|
+
/**
|
|
3161
|
+
* List session question requests
|
|
3162
|
+
*
|
|
3163
|
+
* Retrieve pending question requests owned by a session.
|
|
3164
|
+
*/
|
|
3165
|
+
list(parameters, options) {
|
|
3166
|
+
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "sessionID" }] }]);
|
|
3167
|
+
return (options?.client ?? this.client).get({
|
|
3168
|
+
url: "/api/session/{sessionID}/question",
|
|
3169
|
+
...options,
|
|
3170
|
+
...params,
|
|
3171
|
+
});
|
|
3172
|
+
}
|
|
3145
3173
|
/**
|
|
3146
3174
|
* Reply to pending question request
|
|
3147
3175
|
*
|
|
@@ -3216,6 +3244,46 @@ export class Session3 extends HeyApiClient {
|
|
|
3216
3244
|
...params,
|
|
3217
3245
|
});
|
|
3218
3246
|
}
|
|
3247
|
+
/**
|
|
3248
|
+
* Create session
|
|
3249
|
+
*
|
|
3250
|
+
* Create a session at the requested location.
|
|
3251
|
+
*/
|
|
3252
|
+
create(parameters, options) {
|
|
3253
|
+
const params = buildClientParams([parameters], [
|
|
3254
|
+
{
|
|
3255
|
+
args: [
|
|
3256
|
+
{ in: "body", key: "id" },
|
|
3257
|
+
{ in: "body", key: "agent" },
|
|
3258
|
+
{ in: "body", key: "model" },
|
|
3259
|
+
{ in: "body", key: "location" },
|
|
3260
|
+
],
|
|
3261
|
+
},
|
|
3262
|
+
]);
|
|
3263
|
+
return (options?.client ?? this.client).post({
|
|
3264
|
+
url: "/api/session",
|
|
3265
|
+
...options,
|
|
3266
|
+
...params,
|
|
3267
|
+
headers: {
|
|
3268
|
+
"Content-Type": "application/json",
|
|
3269
|
+
...options?.headers,
|
|
3270
|
+
...params.headers,
|
|
3271
|
+
},
|
|
3272
|
+
});
|
|
3273
|
+
}
|
|
3274
|
+
/**
|
|
3275
|
+
* Get session
|
|
3276
|
+
*
|
|
3277
|
+
* Retrieve a session by ID.
|
|
3278
|
+
*/
|
|
3279
|
+
get(parameters, options) {
|
|
3280
|
+
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "sessionID" }] }]);
|
|
3281
|
+
return (options?.client ?? this.client).get({
|
|
3282
|
+
url: "/api/session/{sessionID}",
|
|
3283
|
+
...options,
|
|
3284
|
+
...params,
|
|
3285
|
+
});
|
|
3286
|
+
}
|
|
3219
3287
|
/**
|
|
3220
3288
|
* Send message
|
|
3221
3289
|
*
|
|
@@ -3364,6 +3432,176 @@ export class Provider2 extends HeyApiClient {
|
|
|
3364
3432
|
});
|
|
3365
3433
|
}
|
|
3366
3434
|
}
|
|
3435
|
+
export class Oauth2 extends HeyApiClient {
|
|
3436
|
+
/**
|
|
3437
|
+
* Begin OAuth connection
|
|
3438
|
+
*
|
|
3439
|
+
* Start an OAuth attempt and return the authorization details.
|
|
3440
|
+
*/
|
|
3441
|
+
begin(parameters, options) {
|
|
3442
|
+
const params = buildClientParams([parameters], [
|
|
3443
|
+
{
|
|
3444
|
+
args: [
|
|
3445
|
+
{ in: "path", key: "connectorID" },
|
|
3446
|
+
{ in: "query", key: "location" },
|
|
3447
|
+
{ in: "body", key: "methodID" },
|
|
3448
|
+
{ in: "body", key: "inputs" },
|
|
3449
|
+
{ in: "body", key: "label" },
|
|
3450
|
+
],
|
|
3451
|
+
},
|
|
3452
|
+
]);
|
|
3453
|
+
return (options?.client ?? this.client).post({
|
|
3454
|
+
url: "/api/connector/{connectorID}/connect/oauth",
|
|
3455
|
+
...options,
|
|
3456
|
+
...params,
|
|
3457
|
+
headers: {
|
|
3458
|
+
"Content-Type": "application/json",
|
|
3459
|
+
...options?.headers,
|
|
3460
|
+
...params.headers,
|
|
3461
|
+
},
|
|
3462
|
+
});
|
|
3463
|
+
}
|
|
3464
|
+
/**
|
|
3465
|
+
* Cancel OAuth connection
|
|
3466
|
+
*
|
|
3467
|
+
* Cancel an OAuth attempt and release its resources.
|
|
3468
|
+
*/
|
|
3469
|
+
cancel(parameters, options) {
|
|
3470
|
+
const params = buildClientParams([parameters], [
|
|
3471
|
+
{
|
|
3472
|
+
args: [
|
|
3473
|
+
{ in: "path", key: "attemptID" },
|
|
3474
|
+
{ in: "query", key: "location" },
|
|
3475
|
+
],
|
|
3476
|
+
},
|
|
3477
|
+
]);
|
|
3478
|
+
return (options?.client ?? this.client).delete({
|
|
3479
|
+
url: "/api/connector/oauth/{attemptID}",
|
|
3480
|
+
...options,
|
|
3481
|
+
...params,
|
|
3482
|
+
});
|
|
3483
|
+
}
|
|
3484
|
+
/**
|
|
3485
|
+
* Get OAuth attempt status
|
|
3486
|
+
*
|
|
3487
|
+
* Poll the current status of an OAuth attempt.
|
|
3488
|
+
*/
|
|
3489
|
+
status(parameters, options) {
|
|
3490
|
+
const params = buildClientParams([parameters], [
|
|
3491
|
+
{
|
|
3492
|
+
args: [
|
|
3493
|
+
{ in: "path", key: "attemptID" },
|
|
3494
|
+
{ in: "query", key: "location" },
|
|
3495
|
+
],
|
|
3496
|
+
},
|
|
3497
|
+
]);
|
|
3498
|
+
return (options?.client ?? this.client).get({
|
|
3499
|
+
url: "/api/connector/oauth/{attemptID}",
|
|
3500
|
+
...options,
|
|
3501
|
+
...params,
|
|
3502
|
+
});
|
|
3503
|
+
}
|
|
3504
|
+
/**
|
|
3505
|
+
* Complete OAuth connection
|
|
3506
|
+
*
|
|
3507
|
+
* Complete a code-based OAuth attempt and store the resulting credential.
|
|
3508
|
+
*/
|
|
3509
|
+
complete(parameters, options) {
|
|
3510
|
+
const params = buildClientParams([parameters], [
|
|
3511
|
+
{
|
|
3512
|
+
args: [
|
|
3513
|
+
{ in: "path", key: "attemptID" },
|
|
3514
|
+
{ in: "query", key: "location" },
|
|
3515
|
+
{ in: "body", key: "code" },
|
|
3516
|
+
],
|
|
3517
|
+
},
|
|
3518
|
+
]);
|
|
3519
|
+
return (options?.client ?? this.client).post({
|
|
3520
|
+
url: "/api/connector/oauth/{attemptID}/complete",
|
|
3521
|
+
...options,
|
|
3522
|
+
...params,
|
|
3523
|
+
headers: {
|
|
3524
|
+
"Content-Type": "application/json",
|
|
3525
|
+
...options?.headers,
|
|
3526
|
+
...params.headers,
|
|
3527
|
+
},
|
|
3528
|
+
});
|
|
3529
|
+
}
|
|
3530
|
+
}
|
|
3531
|
+
export class Connect extends HeyApiClient {
|
|
3532
|
+
/**
|
|
3533
|
+
* Connect with key
|
|
3534
|
+
*
|
|
3535
|
+
* Run a key authentication method and store the resulting credential.
|
|
3536
|
+
*/
|
|
3537
|
+
key(parameters, options) {
|
|
3538
|
+
const params = buildClientParams([parameters], [
|
|
3539
|
+
{
|
|
3540
|
+
args: [
|
|
3541
|
+
{ in: "path", key: "connectorID" },
|
|
3542
|
+
{ in: "query", key: "location" },
|
|
3543
|
+
{ in: "body", key: "methodID" },
|
|
3544
|
+
{ in: "body", key: "key" },
|
|
3545
|
+
{ in: "body", key: "inputs" },
|
|
3546
|
+
{ in: "body", key: "label" },
|
|
3547
|
+
],
|
|
3548
|
+
},
|
|
3549
|
+
]);
|
|
3550
|
+
return (options?.client ?? this.client).post({
|
|
3551
|
+
url: "/api/connector/{connectorID}/connect/key",
|
|
3552
|
+
...options,
|
|
3553
|
+
...params,
|
|
3554
|
+
headers: {
|
|
3555
|
+
"Content-Type": "application/json",
|
|
3556
|
+
...options?.headers,
|
|
3557
|
+
...params.headers,
|
|
3558
|
+
},
|
|
3559
|
+
});
|
|
3560
|
+
}
|
|
3561
|
+
_oauth;
|
|
3562
|
+
get oauth() {
|
|
3563
|
+
return (this._oauth ??= new Oauth2({ client: this.client }));
|
|
3564
|
+
}
|
|
3565
|
+
}
|
|
3566
|
+
export class Connector extends HeyApiClient {
|
|
3567
|
+
/**
|
|
3568
|
+
* List connectors
|
|
3569
|
+
*
|
|
3570
|
+
* Retrieve available connectors and their authentication methods.
|
|
3571
|
+
*/
|
|
3572
|
+
list(parameters, options) {
|
|
3573
|
+
const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "location" }] }]);
|
|
3574
|
+
return (options?.client ?? this.client).get({
|
|
3575
|
+
url: "/api/connector",
|
|
3576
|
+
...options,
|
|
3577
|
+
...params,
|
|
3578
|
+
});
|
|
3579
|
+
}
|
|
3580
|
+
/**
|
|
3581
|
+
* Get connector
|
|
3582
|
+
*
|
|
3583
|
+
* Retrieve one connector and its authentication methods.
|
|
3584
|
+
*/
|
|
3585
|
+
get(parameters, options) {
|
|
3586
|
+
const params = buildClientParams([parameters], [
|
|
3587
|
+
{
|
|
3588
|
+
args: [
|
|
3589
|
+
{ in: "path", key: "connectorID" },
|
|
3590
|
+
{ in: "query", key: "location" },
|
|
3591
|
+
],
|
|
3592
|
+
},
|
|
3593
|
+
]);
|
|
3594
|
+
return (options?.client ?? this.client).get({
|
|
3595
|
+
url: "/api/connector/{connectorID}",
|
|
3596
|
+
...options,
|
|
3597
|
+
...params,
|
|
3598
|
+
});
|
|
3599
|
+
}
|
|
3600
|
+
_connect;
|
|
3601
|
+
get connect() {
|
|
3602
|
+
return (this._connect ??= new Connect({ client: this.client }));
|
|
3603
|
+
}
|
|
3604
|
+
}
|
|
3367
3605
|
export class Request extends HeyApiClient {
|
|
3368
3606
|
/**
|
|
3369
3607
|
* List pending permission requests
|
|
@@ -3421,19 +3659,12 @@ export class Fs extends HeyApiClient {
|
|
|
3421
3659
|
/**
|
|
3422
3660
|
* Read file
|
|
3423
3661
|
*
|
|
3424
|
-
*
|
|
3662
|
+
* Serve one file relative to the requested location.
|
|
3425
3663
|
*/
|
|
3426
3664
|
read(parameters, options) {
|
|
3427
|
-
const params = buildClientParams([parameters], [
|
|
3428
|
-
{
|
|
3429
|
-
args: [
|
|
3430
|
-
{ in: "query", key: "location" },
|
|
3431
|
-
{ in: "query", key: "path" },
|
|
3432
|
-
],
|
|
3433
|
-
},
|
|
3434
|
-
]);
|
|
3665
|
+
const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "location" }] }]);
|
|
3435
3666
|
return (options?.client ?? this.client).get({
|
|
3436
|
-
url: "/api/fs/read",
|
|
3667
|
+
url: "/api/fs/read/*",
|
|
3437
3668
|
...options,
|
|
3438
3669
|
...params,
|
|
3439
3670
|
});
|
|
@@ -3567,6 +3798,10 @@ export class V2 extends HeyApiClient {
|
|
|
3567
3798
|
get health() {
|
|
3568
3799
|
return (this._health ??= new Health({ client: this.client }));
|
|
3569
3800
|
}
|
|
3801
|
+
_location;
|
|
3802
|
+
get location() {
|
|
3803
|
+
return (this._location ??= new Location({ client: this.client }));
|
|
3804
|
+
}
|
|
3570
3805
|
_agent;
|
|
3571
3806
|
get agent() {
|
|
3572
3807
|
return (this._agent ??= new Agent({ client: this.client }));
|
|
@@ -3583,6 +3818,10 @@ export class V2 extends HeyApiClient {
|
|
|
3583
3818
|
get provider() {
|
|
3584
3819
|
return (this._provider ??= new Provider2({ client: this.client }));
|
|
3585
3820
|
}
|
|
3821
|
+
_connector;
|
|
3822
|
+
get connector() {
|
|
3823
|
+
return (this._connector ??= new Connector({ client: this.client }));
|
|
3824
|
+
}
|
|
3586
3825
|
_permission;
|
|
3587
3826
|
get permission() {
|
|
3588
3827
|
return (this._permission ??= new Permission3({ 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 | EventCatalogModelUpdated | 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 |
|
|
4
|
+
export type Event = EventModelsDevRefreshed | EventCredentialAdded | EventCredentialRemoved | EventCredentialSwitched | EventPluginAdded | EventCatalogModelUpdated | 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 | EventConnectorUpdated | EventPermissionV2Asked | EventPermissionV2Replied | EventReferenceUpdated | EventFileWatcherUpdated | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventQuestionV2Asked | EventQuestionV2Replied | EventQuestionV2Rejected | EventTodoUpdated | EventLspUpdated | EventPermissionAsked | EventPermissionReplied | EventTuiPromptAppend2 | EventTuiCommandExecute2 | EventTuiToastShow2 | EventTuiSessionSelect2 | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventCommandExecuted | EventProjectDirectoriesUpdated | EventProjectUpdated | EventVcsBranchUpdated | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventSessionStatus | EventSessionIdle | EventSessionCompacted | EventWorktreeReady | EventWorktreeFailed | EventWorkspaceReady | EventWorkspaceFailed | EventWorkspaceStatus | EventServerConnected | EventGlobalDisposed | EventServerInstanceDisposed;
|
|
5
5
|
export type QuestionReplied = {
|
|
6
6
|
sessionID: string;
|
|
7
7
|
requestID: string;
|
|
@@ -189,6 +189,12 @@ export type ContextOverflowError = {
|
|
|
189
189
|
responseBody?: string;
|
|
190
190
|
};
|
|
191
191
|
};
|
|
192
|
+
export type ContentFilterError = {
|
|
193
|
+
name: "ContentFilterError";
|
|
194
|
+
data: {
|
|
195
|
+
message: string;
|
|
196
|
+
};
|
|
197
|
+
};
|
|
192
198
|
export type ApiError = {
|
|
193
199
|
name: "APIError";
|
|
194
200
|
data: {
|
|
@@ -212,7 +218,7 @@ export type AssistantMessage = {
|
|
|
212
218
|
created: number;
|
|
213
219
|
completed?: number;
|
|
214
220
|
};
|
|
215
|
-
error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | StructuredOutputError | ContextOverflowError | ApiError;
|
|
221
|
+
error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | StructuredOutputError | ContextOverflowError | ContentFilterError | ApiError;
|
|
216
222
|
parentID: string;
|
|
217
223
|
modelID: string;
|
|
218
224
|
providerID: string;
|
|
@@ -553,6 +559,26 @@ export type GlobalEvent = {
|
|
|
553
559
|
properties: {
|
|
554
560
|
[key: string]: unknown;
|
|
555
561
|
};
|
|
562
|
+
} | {
|
|
563
|
+
id: string;
|
|
564
|
+
type: "credential.added";
|
|
565
|
+
properties: {
|
|
566
|
+
credential: CredentialInfo;
|
|
567
|
+
};
|
|
568
|
+
} | {
|
|
569
|
+
id: string;
|
|
570
|
+
type: "credential.removed";
|
|
571
|
+
properties: {
|
|
572
|
+
credential: CredentialInfo;
|
|
573
|
+
};
|
|
574
|
+
} | {
|
|
575
|
+
id: string;
|
|
576
|
+
type: "credential.switched";
|
|
577
|
+
properties: {
|
|
578
|
+
connectorID: string;
|
|
579
|
+
from?: string;
|
|
580
|
+
to?: string;
|
|
581
|
+
};
|
|
556
582
|
} | {
|
|
557
583
|
id: string;
|
|
558
584
|
type: "plugin.added";
|
|
@@ -999,7 +1025,7 @@ export type GlobalEvent = {
|
|
|
999
1025
|
type: "session.error";
|
|
1000
1026
|
properties: {
|
|
1001
1027
|
sessionID?: string;
|
|
1002
|
-
error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | StructuredOutputError | ContextOverflowError | ApiError;
|
|
1028
|
+
error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | StructuredOutputError | ContextOverflowError | ContentFilterError | ApiError;
|
|
1003
1029
|
};
|
|
1004
1030
|
} | {
|
|
1005
1031
|
id: string;
|
|
@@ -1021,23 +1047,9 @@ export type GlobalEvent = {
|
|
|
1021
1047
|
};
|
|
1022
1048
|
} | {
|
|
1023
1049
|
id: string;
|
|
1024
|
-
type: "
|
|
1050
|
+
type: "connector.updated";
|
|
1025
1051
|
properties: {
|
|
1026
|
-
|
|
1027
|
-
};
|
|
1028
|
-
} | {
|
|
1029
|
-
id: string;
|
|
1030
|
-
type: "account.removed";
|
|
1031
|
-
properties: {
|
|
1032
|
-
account: AuthInfo;
|
|
1033
|
-
};
|
|
1034
|
-
} | {
|
|
1035
|
-
id: string;
|
|
1036
|
-
type: "account.switched";
|
|
1037
|
-
properties: {
|
|
1038
|
-
serviceID: string;
|
|
1039
|
-
from?: string;
|
|
1040
|
-
to?: string;
|
|
1052
|
+
[key: string]: unknown;
|
|
1041
1053
|
};
|
|
1042
1054
|
} | {
|
|
1043
1055
|
id: string;
|
|
@@ -1503,6 +1515,7 @@ export type McpLocalConfig = {
|
|
|
1503
1515
|
* Command and arguments to run the MCP server
|
|
1504
1516
|
*/
|
|
1505
1517
|
command: Array<string>;
|
|
1518
|
+
cwd?: string;
|
|
1506
1519
|
environment?: {
|
|
1507
1520
|
[key: string]: string;
|
|
1508
1521
|
};
|
|
@@ -2260,16 +2273,16 @@ export type InvalidCursorError = {
|
|
|
2260
2273
|
_tag: "InvalidCursorError";
|
|
2261
2274
|
message: string;
|
|
2262
2275
|
};
|
|
2263
|
-
export type ConflictError = {
|
|
2264
|
-
_tag: "ConflictError";
|
|
2265
|
-
message: string;
|
|
2266
|
-
resource?: string;
|
|
2267
|
-
};
|
|
2268
2276
|
export type SessionNotFoundError = {
|
|
2269
2277
|
_tag: "SessionNotFoundError";
|
|
2270
2278
|
sessionID: string;
|
|
2271
2279
|
message: string;
|
|
2272
2280
|
};
|
|
2281
|
+
export type ConflictError = {
|
|
2282
|
+
_tag: "ConflictError";
|
|
2283
|
+
message: string;
|
|
2284
|
+
resource?: string;
|
|
2285
|
+
};
|
|
2273
2286
|
export type ServiceUnavailableError = {
|
|
2274
2287
|
_tag: "ServiceUnavailableError";
|
|
2275
2288
|
message: string;
|
|
@@ -2332,6 +2345,30 @@ export type EventTuiSessionSelect2 = {
|
|
|
2332
2345
|
export type MoveSessionDestination = {
|
|
2333
2346
|
directory: string;
|
|
2334
2347
|
};
|
|
2348
|
+
export type CredentialOAuth = {
|
|
2349
|
+
type: "oauth";
|
|
2350
|
+
refresh: string;
|
|
2351
|
+
access: string;
|
|
2352
|
+
expires: number;
|
|
2353
|
+
metadata?: {
|
|
2354
|
+
[key: string]: string;
|
|
2355
|
+
};
|
|
2356
|
+
};
|
|
2357
|
+
export type CredentialKey = {
|
|
2358
|
+
type: "key";
|
|
2359
|
+
key: string;
|
|
2360
|
+
metadata?: {
|
|
2361
|
+
[key: string]: string;
|
|
2362
|
+
};
|
|
2363
|
+
};
|
|
2364
|
+
export type CredentialValue = CredentialOAuth | CredentialKey;
|
|
2365
|
+
export type CredentialInfo = {
|
|
2366
|
+
id: string;
|
|
2367
|
+
connectorID: string;
|
|
2368
|
+
methodID: string;
|
|
2369
|
+
label: string;
|
|
2370
|
+
value: CredentialValue;
|
|
2371
|
+
};
|
|
2335
2372
|
export type ModelV2Info = {
|
|
2336
2373
|
id: string;
|
|
2337
2374
|
providerID: string;
|
|
@@ -2471,26 +2508,6 @@ export type SessionNextRetryError = {
|
|
|
2471
2508
|
[key: string]: string;
|
|
2472
2509
|
};
|
|
2473
2510
|
};
|
|
2474
|
-
export type AuthOAuthCredential = {
|
|
2475
|
-
type: "oauth";
|
|
2476
|
-
refresh: string;
|
|
2477
|
-
access: string;
|
|
2478
|
-
expires: number;
|
|
2479
|
-
};
|
|
2480
|
-
export type AuthApiKeyCredential = {
|
|
2481
|
-
type: "api";
|
|
2482
|
-
key: string;
|
|
2483
|
-
metadata?: {
|
|
2484
|
-
[key: string]: string;
|
|
2485
|
-
};
|
|
2486
|
-
};
|
|
2487
|
-
export type AuthCredential = AuthOAuthCredential | AuthApiKeyCredential;
|
|
2488
|
-
export type AuthInfo = {
|
|
2489
|
-
id: string;
|
|
2490
|
-
serviceID: string;
|
|
2491
|
-
description: string;
|
|
2492
|
-
credential: AuthCredential;
|
|
2493
|
-
};
|
|
2494
2511
|
export type PermissionV2Source = {
|
|
2495
2512
|
type: "tool";
|
|
2496
2513
|
messageID: string;
|
|
@@ -3456,8 +3473,8 @@ export type ProviderV2Info = {
|
|
|
3456
3473
|
via: "env";
|
|
3457
3474
|
name: string;
|
|
3458
3475
|
} | {
|
|
3459
|
-
via: "
|
|
3460
|
-
|
|
3476
|
+
via: "credential";
|
|
3477
|
+
credentialID: string;
|
|
3461
3478
|
} | {
|
|
3462
3479
|
via: "custom";
|
|
3463
3480
|
data: {
|
|
@@ -3488,6 +3505,56 @@ export type ProviderV2Info = {
|
|
|
3488
3505
|
};
|
|
3489
3506
|
};
|
|
3490
3507
|
};
|
|
3508
|
+
export type ConnectorWhen = {
|
|
3509
|
+
key: string;
|
|
3510
|
+
op: "eq" | "neq";
|
|
3511
|
+
value: string;
|
|
3512
|
+
};
|
|
3513
|
+
export type ConnectorTextPrompt = {
|
|
3514
|
+
type: "text";
|
|
3515
|
+
key: string;
|
|
3516
|
+
message: string;
|
|
3517
|
+
placeholder?: string;
|
|
3518
|
+
when?: ConnectorWhen;
|
|
3519
|
+
};
|
|
3520
|
+
export type ConnectorSelectPrompt = {
|
|
3521
|
+
type: "select";
|
|
3522
|
+
key: string;
|
|
3523
|
+
message: string;
|
|
3524
|
+
options: Array<{
|
|
3525
|
+
label: string;
|
|
3526
|
+
value: string;
|
|
3527
|
+
hint?: string;
|
|
3528
|
+
}>;
|
|
3529
|
+
when?: ConnectorWhen;
|
|
3530
|
+
};
|
|
3531
|
+
export type ConnectorOAuthMethod = {
|
|
3532
|
+
id: string;
|
|
3533
|
+
type: "oauth";
|
|
3534
|
+
label: string;
|
|
3535
|
+
prompts?: Array<ConnectorTextPrompt | ConnectorSelectPrompt>;
|
|
3536
|
+
};
|
|
3537
|
+
export type ConnectorKeyMethod = {
|
|
3538
|
+
id: string;
|
|
3539
|
+
type: "key";
|
|
3540
|
+
label: string;
|
|
3541
|
+
prompts?: Array<ConnectorTextPrompt | ConnectorSelectPrompt>;
|
|
3542
|
+
};
|
|
3543
|
+
export type ConnectorInfo = {
|
|
3544
|
+
id: string;
|
|
3545
|
+
name: string;
|
|
3546
|
+
methods: Array<ConnectorOAuthMethod | ConnectorKeyMethod>;
|
|
3547
|
+
};
|
|
3548
|
+
export type ConnectorAttempt = {
|
|
3549
|
+
attemptID: string;
|
|
3550
|
+
url: string;
|
|
3551
|
+
instructions: string;
|
|
3552
|
+
mode: "auto" | "code";
|
|
3553
|
+
time: {
|
|
3554
|
+
created: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
3555
|
+
expires: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
3556
|
+
};
|
|
3557
|
+
};
|
|
3491
3558
|
export type PermissionV2Request = {
|
|
3492
3559
|
id: string;
|
|
3493
3560
|
sessionID: string;
|
|
@@ -3505,13 +3572,6 @@ export type PermissionSavedInfo = {
|
|
|
3505
3572
|
action: string;
|
|
3506
3573
|
resource: string;
|
|
3507
3574
|
};
|
|
3508
|
-
export type FileSystemContent = {
|
|
3509
|
-
uri: string;
|
|
3510
|
-
name?: string;
|
|
3511
|
-
content: string;
|
|
3512
|
-
encoding: "utf8" | "base64";
|
|
3513
|
-
mime: string;
|
|
3514
|
-
};
|
|
3515
3575
|
export type FileSystemEntry = {
|
|
3516
3576
|
path: string;
|
|
3517
3577
|
type: "file" | "directory";
|
|
@@ -3578,6 +3638,29 @@ export type EventModelsDevRefreshed = {
|
|
|
3578
3638
|
[key: string]: unknown;
|
|
3579
3639
|
};
|
|
3580
3640
|
};
|
|
3641
|
+
export type EventCredentialAdded = {
|
|
3642
|
+
id: string;
|
|
3643
|
+
type: "credential.added";
|
|
3644
|
+
properties: {
|
|
3645
|
+
credential: CredentialInfo;
|
|
3646
|
+
};
|
|
3647
|
+
};
|
|
3648
|
+
export type EventCredentialRemoved = {
|
|
3649
|
+
id: string;
|
|
3650
|
+
type: "credential.removed";
|
|
3651
|
+
properties: {
|
|
3652
|
+
credential: CredentialInfo;
|
|
3653
|
+
};
|
|
3654
|
+
};
|
|
3655
|
+
export type EventCredentialSwitched = {
|
|
3656
|
+
id: string;
|
|
3657
|
+
type: "credential.switched";
|
|
3658
|
+
properties: {
|
|
3659
|
+
connectorID: string;
|
|
3660
|
+
from?: string;
|
|
3661
|
+
to?: string;
|
|
3662
|
+
};
|
|
3663
|
+
};
|
|
3581
3664
|
export type EventPluginAdded = {
|
|
3582
3665
|
id: string;
|
|
3583
3666
|
type: "plugin.added";
|
|
@@ -4159,7 +4242,7 @@ export type EventSessionError = {
|
|
|
4159
4242
|
type: "session.error";
|
|
4160
4243
|
properties: {
|
|
4161
4244
|
sessionID?: string;
|
|
4162
|
-
error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | StructuredOutputError | ContextOverflowError | ApiError;
|
|
4245
|
+
error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | StructuredOutputError | ContextOverflowError | ContentFilterError | ApiError;
|
|
4163
4246
|
};
|
|
4164
4247
|
};
|
|
4165
4248
|
export type EventInstallationUpdated = {
|
|
@@ -4183,27 +4266,11 @@ export type EventFileEdited = {
|
|
|
4183
4266
|
file: string;
|
|
4184
4267
|
};
|
|
4185
4268
|
};
|
|
4186
|
-
export type
|
|
4269
|
+
export type EventConnectorUpdated = {
|
|
4187
4270
|
id: string;
|
|
4188
|
-
type: "
|
|
4271
|
+
type: "connector.updated";
|
|
4189
4272
|
properties: {
|
|
4190
|
-
|
|
4191
|
-
};
|
|
4192
|
-
};
|
|
4193
|
-
export type EventAccountRemoved = {
|
|
4194
|
-
id: string;
|
|
4195
|
-
type: "account.removed";
|
|
4196
|
-
properties: {
|
|
4197
|
-
account: AuthInfo;
|
|
4198
|
-
};
|
|
4199
|
-
};
|
|
4200
|
-
export type EventAccountSwitched = {
|
|
4201
|
-
id: string;
|
|
4202
|
-
type: "account.switched";
|
|
4203
|
-
properties: {
|
|
4204
|
-
serviceID: string;
|
|
4205
|
-
from?: string;
|
|
4206
|
-
to?: string;
|
|
4273
|
+
[key: string]: unknown;
|
|
4207
4274
|
};
|
|
4208
4275
|
};
|
|
4209
4276
|
export type EventPermissionV2Asked = {
|
|
@@ -8073,6 +8140,35 @@ export type V2HealthGetResponses = {
|
|
|
8073
8140
|
};
|
|
8074
8141
|
};
|
|
8075
8142
|
export type V2HealthGetResponse = V2HealthGetResponses[keyof V2HealthGetResponses];
|
|
8143
|
+
export type V2LocationGetData = {
|
|
8144
|
+
body?: never;
|
|
8145
|
+
path?: never;
|
|
8146
|
+
query?: {
|
|
8147
|
+
location?: {
|
|
8148
|
+
directory?: string;
|
|
8149
|
+
workspace?: string;
|
|
8150
|
+
};
|
|
8151
|
+
};
|
|
8152
|
+
url: "/api/location";
|
|
8153
|
+
};
|
|
8154
|
+
export type V2LocationGetErrors = {
|
|
8155
|
+
/**
|
|
8156
|
+
* InvalidRequestError
|
|
8157
|
+
*/
|
|
8158
|
+
400: InvalidRequestError;
|
|
8159
|
+
/**
|
|
8160
|
+
* UnauthorizedError
|
|
8161
|
+
*/
|
|
8162
|
+
401: UnauthorizedError;
|
|
8163
|
+
};
|
|
8164
|
+
export type V2LocationGetError = V2LocationGetErrors[keyof V2LocationGetErrors];
|
|
8165
|
+
export type V2LocationGetResponses = {
|
|
8166
|
+
/**
|
|
8167
|
+
* Location.Info
|
|
8168
|
+
*/
|
|
8169
|
+
200: LocationInfo;
|
|
8170
|
+
};
|
|
8171
|
+
export type V2LocationGetResponse = V2LocationGetResponses[keyof V2LocationGetResponses];
|
|
8076
8172
|
export type V2AgentListData = {
|
|
8077
8173
|
body?: never;
|
|
8078
8174
|
path?: never;
|
|
@@ -8141,6 +8237,73 @@ export type V2SessionListResponses = {
|
|
|
8141
8237
|
200: SessionsResponse;
|
|
8142
8238
|
};
|
|
8143
8239
|
export type V2SessionListResponse = V2SessionListResponses[keyof V2SessionListResponses];
|
|
8240
|
+
export type V2SessionCreateData = {
|
|
8241
|
+
body: {
|
|
8242
|
+
id?: string;
|
|
8243
|
+
agent?: string;
|
|
8244
|
+
model?: {
|
|
8245
|
+
id: string;
|
|
8246
|
+
providerID: string;
|
|
8247
|
+
variant?: string;
|
|
8248
|
+
};
|
|
8249
|
+
location?: LocationRef;
|
|
8250
|
+
};
|
|
8251
|
+
path?: never;
|
|
8252
|
+
query?: never;
|
|
8253
|
+
url: "/api/session";
|
|
8254
|
+
};
|
|
8255
|
+
export type V2SessionCreateErrors = {
|
|
8256
|
+
/**
|
|
8257
|
+
* InvalidRequestError
|
|
8258
|
+
*/
|
|
8259
|
+
400: InvalidRequestError;
|
|
8260
|
+
/**
|
|
8261
|
+
* UnauthorizedError
|
|
8262
|
+
*/
|
|
8263
|
+
401: UnauthorizedError;
|
|
8264
|
+
};
|
|
8265
|
+
export type V2SessionCreateError = V2SessionCreateErrors[keyof V2SessionCreateErrors];
|
|
8266
|
+
export type V2SessionCreateResponses = {
|
|
8267
|
+
/**
|
|
8268
|
+
* Success
|
|
8269
|
+
*/
|
|
8270
|
+
200: {
|
|
8271
|
+
data: SessionV2Info;
|
|
8272
|
+
};
|
|
8273
|
+
};
|
|
8274
|
+
export type V2SessionCreateResponse = V2SessionCreateResponses[keyof V2SessionCreateResponses];
|
|
8275
|
+
export type V2SessionGetData = {
|
|
8276
|
+
body?: never;
|
|
8277
|
+
path: {
|
|
8278
|
+
sessionID: string;
|
|
8279
|
+
};
|
|
8280
|
+
query?: never;
|
|
8281
|
+
url: "/api/session/{sessionID}";
|
|
8282
|
+
};
|
|
8283
|
+
export type V2SessionGetErrors = {
|
|
8284
|
+
/**
|
|
8285
|
+
* InvalidRequestError
|
|
8286
|
+
*/
|
|
8287
|
+
400: InvalidRequestError;
|
|
8288
|
+
/**
|
|
8289
|
+
* UnauthorizedError
|
|
8290
|
+
*/
|
|
8291
|
+
401: UnauthorizedError;
|
|
8292
|
+
/**
|
|
8293
|
+
* SessionNotFoundError
|
|
8294
|
+
*/
|
|
8295
|
+
404: SessionNotFoundError;
|
|
8296
|
+
};
|
|
8297
|
+
export type V2SessionGetError = V2SessionGetErrors[keyof V2SessionGetErrors];
|
|
8298
|
+
export type V2SessionGetResponses = {
|
|
8299
|
+
/**
|
|
8300
|
+
* Success
|
|
8301
|
+
*/
|
|
8302
|
+
200: {
|
|
8303
|
+
data: SessionV2Info;
|
|
8304
|
+
};
|
|
8305
|
+
};
|
|
8306
|
+
export type V2SessionGetResponse = V2SessionGetResponses[keyof V2SessionGetResponses];
|
|
8144
8307
|
export type V2SessionPromptData = {
|
|
8145
8308
|
body: {
|
|
8146
8309
|
id?: string;
|
|
@@ -8441,6 +8604,273 @@ export type V2ProviderGetResponses = {
|
|
|
8441
8604
|
};
|
|
8442
8605
|
};
|
|
8443
8606
|
export type V2ProviderGetResponse = V2ProviderGetResponses[keyof V2ProviderGetResponses];
|
|
8607
|
+
export type V2ConnectorListData = {
|
|
8608
|
+
body?: never;
|
|
8609
|
+
path?: never;
|
|
8610
|
+
query?: {
|
|
8611
|
+
location?: {
|
|
8612
|
+
directory?: string;
|
|
8613
|
+
workspace?: string;
|
|
8614
|
+
};
|
|
8615
|
+
};
|
|
8616
|
+
url: "/api/connector";
|
|
8617
|
+
};
|
|
8618
|
+
export type V2ConnectorListErrors = {
|
|
8619
|
+
/**
|
|
8620
|
+
* InvalidRequestError
|
|
8621
|
+
*/
|
|
8622
|
+
400: InvalidRequestError;
|
|
8623
|
+
/**
|
|
8624
|
+
* UnauthorizedError
|
|
8625
|
+
*/
|
|
8626
|
+
401: UnauthorizedError;
|
|
8627
|
+
};
|
|
8628
|
+
export type V2ConnectorListError = V2ConnectorListErrors[keyof V2ConnectorListErrors];
|
|
8629
|
+
export type V2ConnectorListResponses = {
|
|
8630
|
+
/**
|
|
8631
|
+
* Success
|
|
8632
|
+
*/
|
|
8633
|
+
200: {
|
|
8634
|
+
location: LocationInfo;
|
|
8635
|
+
data: Array<ConnectorInfo>;
|
|
8636
|
+
};
|
|
8637
|
+
};
|
|
8638
|
+
export type V2ConnectorListResponse = V2ConnectorListResponses[keyof V2ConnectorListResponses];
|
|
8639
|
+
export type V2ConnectorGetData = {
|
|
8640
|
+
body?: never;
|
|
8641
|
+
path: {
|
|
8642
|
+
connectorID: string;
|
|
8643
|
+
};
|
|
8644
|
+
query?: {
|
|
8645
|
+
location?: {
|
|
8646
|
+
directory?: string;
|
|
8647
|
+
workspace?: string;
|
|
8648
|
+
};
|
|
8649
|
+
};
|
|
8650
|
+
url: "/api/connector/{connectorID}";
|
|
8651
|
+
};
|
|
8652
|
+
export type V2ConnectorGetErrors = {
|
|
8653
|
+
/**
|
|
8654
|
+
* InvalidRequestError
|
|
8655
|
+
*/
|
|
8656
|
+
400: InvalidRequestError;
|
|
8657
|
+
/**
|
|
8658
|
+
* UnauthorizedError
|
|
8659
|
+
*/
|
|
8660
|
+
401: UnauthorizedError;
|
|
8661
|
+
};
|
|
8662
|
+
export type V2ConnectorGetError = V2ConnectorGetErrors[keyof V2ConnectorGetErrors];
|
|
8663
|
+
export type V2ConnectorGetResponses = {
|
|
8664
|
+
/**
|
|
8665
|
+
* Success
|
|
8666
|
+
*/
|
|
8667
|
+
200: {
|
|
8668
|
+
location: LocationInfo;
|
|
8669
|
+
data: ConnectorInfo;
|
|
8670
|
+
};
|
|
8671
|
+
};
|
|
8672
|
+
export type V2ConnectorGetResponse = V2ConnectorGetResponses[keyof V2ConnectorGetResponses];
|
|
8673
|
+
export type V2ConnectorConnectKeyData = {
|
|
8674
|
+
body: {
|
|
8675
|
+
methodID: string;
|
|
8676
|
+
key: string;
|
|
8677
|
+
inputs: {
|
|
8678
|
+
[key: string]: string;
|
|
8679
|
+
};
|
|
8680
|
+
label?: string;
|
|
8681
|
+
};
|
|
8682
|
+
path: {
|
|
8683
|
+
connectorID: string;
|
|
8684
|
+
};
|
|
8685
|
+
query?: {
|
|
8686
|
+
location?: {
|
|
8687
|
+
directory?: string;
|
|
8688
|
+
workspace?: string;
|
|
8689
|
+
};
|
|
8690
|
+
};
|
|
8691
|
+
url: "/api/connector/{connectorID}/connect/key";
|
|
8692
|
+
};
|
|
8693
|
+
export type V2ConnectorConnectKeyErrors = {
|
|
8694
|
+
/**
|
|
8695
|
+
* InvalidRequestError
|
|
8696
|
+
*/
|
|
8697
|
+
400: InvalidRequestError;
|
|
8698
|
+
/**
|
|
8699
|
+
* UnauthorizedError
|
|
8700
|
+
*/
|
|
8701
|
+
401: UnauthorizedError;
|
|
8702
|
+
};
|
|
8703
|
+
export type V2ConnectorConnectKeyError = V2ConnectorConnectKeyErrors[keyof V2ConnectorConnectKeyErrors];
|
|
8704
|
+
export type V2ConnectorConnectKeyResponses = {
|
|
8705
|
+
/**
|
|
8706
|
+
* <No Content>
|
|
8707
|
+
*/
|
|
8708
|
+
204: void;
|
|
8709
|
+
};
|
|
8710
|
+
export type V2ConnectorConnectKeyResponse = V2ConnectorConnectKeyResponses[keyof V2ConnectorConnectKeyResponses];
|
|
8711
|
+
export type V2ConnectorConnectOauthBeginData = {
|
|
8712
|
+
body: {
|
|
8713
|
+
methodID: string;
|
|
8714
|
+
inputs: {
|
|
8715
|
+
[key: string]: string;
|
|
8716
|
+
};
|
|
8717
|
+
label?: string;
|
|
8718
|
+
};
|
|
8719
|
+
path: {
|
|
8720
|
+
connectorID: string;
|
|
8721
|
+
};
|
|
8722
|
+
query?: {
|
|
8723
|
+
location?: {
|
|
8724
|
+
directory?: string;
|
|
8725
|
+
workspace?: string;
|
|
8726
|
+
};
|
|
8727
|
+
};
|
|
8728
|
+
url: "/api/connector/{connectorID}/connect/oauth";
|
|
8729
|
+
};
|
|
8730
|
+
export type V2ConnectorConnectOauthBeginErrors = {
|
|
8731
|
+
/**
|
|
8732
|
+
* InvalidRequestError
|
|
8733
|
+
*/
|
|
8734
|
+
400: InvalidRequestError;
|
|
8735
|
+
/**
|
|
8736
|
+
* UnauthorizedError
|
|
8737
|
+
*/
|
|
8738
|
+
401: UnauthorizedError;
|
|
8739
|
+
};
|
|
8740
|
+
export type V2ConnectorConnectOauthBeginError = V2ConnectorConnectOauthBeginErrors[keyof V2ConnectorConnectOauthBeginErrors];
|
|
8741
|
+
export type V2ConnectorConnectOauthBeginResponses = {
|
|
8742
|
+
/**
|
|
8743
|
+
* Success
|
|
8744
|
+
*/
|
|
8745
|
+
200: {
|
|
8746
|
+
location: LocationInfo;
|
|
8747
|
+
data: ConnectorAttempt;
|
|
8748
|
+
};
|
|
8749
|
+
};
|
|
8750
|
+
export type V2ConnectorConnectOauthBeginResponse = V2ConnectorConnectOauthBeginResponses[keyof V2ConnectorConnectOauthBeginResponses];
|
|
8751
|
+
export type V2ConnectorConnectOauthCancelData = {
|
|
8752
|
+
body?: never;
|
|
8753
|
+
path: {
|
|
8754
|
+
attemptID: string;
|
|
8755
|
+
};
|
|
8756
|
+
query?: {
|
|
8757
|
+
location?: {
|
|
8758
|
+
directory?: string;
|
|
8759
|
+
workspace?: string;
|
|
8760
|
+
};
|
|
8761
|
+
};
|
|
8762
|
+
url: "/api/connector/oauth/{attemptID}";
|
|
8763
|
+
};
|
|
8764
|
+
export type V2ConnectorConnectOauthCancelErrors = {
|
|
8765
|
+
/**
|
|
8766
|
+
* InvalidRequestError
|
|
8767
|
+
*/
|
|
8768
|
+
400: InvalidRequestError;
|
|
8769
|
+
/**
|
|
8770
|
+
* UnauthorizedError
|
|
8771
|
+
*/
|
|
8772
|
+
401: UnauthorizedError;
|
|
8773
|
+
};
|
|
8774
|
+
export type V2ConnectorConnectOauthCancelError = V2ConnectorConnectOauthCancelErrors[keyof V2ConnectorConnectOauthCancelErrors];
|
|
8775
|
+
export type V2ConnectorConnectOauthCancelResponses = {
|
|
8776
|
+
/**
|
|
8777
|
+
* <No Content>
|
|
8778
|
+
*/
|
|
8779
|
+
204: void;
|
|
8780
|
+
};
|
|
8781
|
+
export type V2ConnectorConnectOauthCancelResponse = V2ConnectorConnectOauthCancelResponses[keyof V2ConnectorConnectOauthCancelResponses];
|
|
8782
|
+
export type V2ConnectorConnectOauthStatusData = {
|
|
8783
|
+
body?: never;
|
|
8784
|
+
path: {
|
|
8785
|
+
attemptID: string;
|
|
8786
|
+
};
|
|
8787
|
+
query?: {
|
|
8788
|
+
location?: {
|
|
8789
|
+
directory?: string;
|
|
8790
|
+
workspace?: string;
|
|
8791
|
+
};
|
|
8792
|
+
};
|
|
8793
|
+
url: "/api/connector/oauth/{attemptID}";
|
|
8794
|
+
};
|
|
8795
|
+
export type V2ConnectorConnectOauthStatusErrors = {
|
|
8796
|
+
/**
|
|
8797
|
+
* InvalidRequestError
|
|
8798
|
+
*/
|
|
8799
|
+
400: InvalidRequestError;
|
|
8800
|
+
/**
|
|
8801
|
+
* UnauthorizedError
|
|
8802
|
+
*/
|
|
8803
|
+
401: UnauthorizedError;
|
|
8804
|
+
};
|
|
8805
|
+
export type V2ConnectorConnectOauthStatusError = V2ConnectorConnectOauthStatusErrors[keyof V2ConnectorConnectOauthStatusErrors];
|
|
8806
|
+
export type V2ConnectorConnectOauthStatusResponses = {
|
|
8807
|
+
/**
|
|
8808
|
+
* Success
|
|
8809
|
+
*/
|
|
8810
|
+
200: {
|
|
8811
|
+
location: LocationInfo;
|
|
8812
|
+
data: {
|
|
8813
|
+
status: "pending";
|
|
8814
|
+
time: {
|
|
8815
|
+
created: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
8816
|
+
expires: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
8817
|
+
};
|
|
8818
|
+
} | {
|
|
8819
|
+
status: "complete";
|
|
8820
|
+
time: {
|
|
8821
|
+
created: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
8822
|
+
expires: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
8823
|
+
};
|
|
8824
|
+
} | {
|
|
8825
|
+
status: "failed";
|
|
8826
|
+
message: string;
|
|
8827
|
+
time: {
|
|
8828
|
+
created: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
8829
|
+
expires: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
8830
|
+
};
|
|
8831
|
+
} | {
|
|
8832
|
+
status: "expired";
|
|
8833
|
+
time: {
|
|
8834
|
+
created: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
8835
|
+
expires: number | "NaN" | "Infinity" | "-Infinity" | "Infinity" | "-Infinity" | "NaN";
|
|
8836
|
+
};
|
|
8837
|
+
};
|
|
8838
|
+
};
|
|
8839
|
+
};
|
|
8840
|
+
export type V2ConnectorConnectOauthStatusResponse = V2ConnectorConnectOauthStatusResponses[keyof V2ConnectorConnectOauthStatusResponses];
|
|
8841
|
+
export type V2ConnectorConnectOauthCompleteData = {
|
|
8842
|
+
body: {
|
|
8843
|
+
code?: string;
|
|
8844
|
+
};
|
|
8845
|
+
path: {
|
|
8846
|
+
attemptID: string;
|
|
8847
|
+
};
|
|
8848
|
+
query?: {
|
|
8849
|
+
location?: {
|
|
8850
|
+
directory?: string;
|
|
8851
|
+
workspace?: string;
|
|
8852
|
+
};
|
|
8853
|
+
};
|
|
8854
|
+
url: "/api/connector/oauth/{attemptID}/complete";
|
|
8855
|
+
};
|
|
8856
|
+
export type V2ConnectorConnectOauthCompleteErrors = {
|
|
8857
|
+
/**
|
|
8858
|
+
* InvalidRequestError
|
|
8859
|
+
*/
|
|
8860
|
+
400: InvalidRequestError;
|
|
8861
|
+
/**
|
|
8862
|
+
* UnauthorizedError
|
|
8863
|
+
*/
|
|
8864
|
+
401: UnauthorizedError;
|
|
8865
|
+
};
|
|
8866
|
+
export type V2ConnectorConnectOauthCompleteError = V2ConnectorConnectOauthCompleteErrors[keyof V2ConnectorConnectOauthCompleteErrors];
|
|
8867
|
+
export type V2ConnectorConnectOauthCompleteResponses = {
|
|
8868
|
+
/**
|
|
8869
|
+
* <No Content>
|
|
8870
|
+
*/
|
|
8871
|
+
204: void;
|
|
8872
|
+
};
|
|
8873
|
+
export type V2ConnectorConnectOauthCompleteResponse = V2ConnectorConnectOauthCompleteResponses[keyof V2ConnectorConnectOauthCompleteResponses];
|
|
8444
8874
|
export type V2PermissionRequestListData = {
|
|
8445
8875
|
body?: never;
|
|
8446
8876
|
path?: never;
|
|
@@ -8596,14 +9026,13 @@ export type V2SessionPermissionReplyResponse = V2SessionPermissionReplyResponses
|
|
|
8596
9026
|
export type V2FsReadData = {
|
|
8597
9027
|
body?: never;
|
|
8598
9028
|
path?: never;
|
|
8599
|
-
query
|
|
9029
|
+
query?: {
|
|
8600
9030
|
location?: {
|
|
8601
9031
|
directory?: string;
|
|
8602
9032
|
workspace?: string;
|
|
8603
9033
|
};
|
|
8604
|
-
path: string;
|
|
8605
9034
|
};
|
|
8606
|
-
url: "/api/fs/read";
|
|
9035
|
+
url: "/api/fs/read/*";
|
|
8607
9036
|
};
|
|
8608
9037
|
export type V2FsReadErrors = {
|
|
8609
9038
|
/**
|
|
@@ -8620,10 +9049,7 @@ export type V2FsReadResponses = {
|
|
|
8620
9049
|
/**
|
|
8621
9050
|
* Success
|
|
8622
9051
|
*/
|
|
8623
|
-
200:
|
|
8624
|
-
location: LocationInfo;
|
|
8625
|
-
data: FileSystemContent;
|
|
8626
|
-
};
|
|
9052
|
+
200: Blob | File;
|
|
8627
9053
|
};
|
|
8628
9054
|
export type V2FsReadResponse = V2FsReadResponses[keyof V2FsReadResponses];
|
|
8629
9055
|
export type V2FsListData = {
|
|
@@ -8819,6 +9245,38 @@ export type V2QuestionRequestListResponses = {
|
|
|
8819
9245
|
};
|
|
8820
9246
|
};
|
|
8821
9247
|
export type V2QuestionRequestListResponse = V2QuestionRequestListResponses[keyof V2QuestionRequestListResponses];
|
|
9248
|
+
export type V2SessionQuestionListData = {
|
|
9249
|
+
body?: never;
|
|
9250
|
+
path: {
|
|
9251
|
+
sessionID: string;
|
|
9252
|
+
};
|
|
9253
|
+
query?: never;
|
|
9254
|
+
url: "/api/session/{sessionID}/question";
|
|
9255
|
+
};
|
|
9256
|
+
export type V2SessionQuestionListErrors = {
|
|
9257
|
+
/**
|
|
9258
|
+
* InvalidRequestError
|
|
9259
|
+
*/
|
|
9260
|
+
400: InvalidRequestError;
|
|
9261
|
+
/**
|
|
9262
|
+
* UnauthorizedError
|
|
9263
|
+
*/
|
|
9264
|
+
401: UnauthorizedError;
|
|
9265
|
+
/**
|
|
9266
|
+
* SessionNotFoundError
|
|
9267
|
+
*/
|
|
9268
|
+
404: SessionNotFoundError;
|
|
9269
|
+
};
|
|
9270
|
+
export type V2SessionQuestionListError = V2SessionQuestionListErrors[keyof V2SessionQuestionListErrors];
|
|
9271
|
+
export type V2SessionQuestionListResponses = {
|
|
9272
|
+
/**
|
|
9273
|
+
* Success
|
|
9274
|
+
*/
|
|
9275
|
+
200: {
|
|
9276
|
+
data: Array<QuestionV2Request>;
|
|
9277
|
+
};
|
|
9278
|
+
};
|
|
9279
|
+
export type V2SessionQuestionListResponse = V2SessionQuestionListResponses[keyof V2SessionQuestionListResponses];
|
|
8822
9280
|
export type V2SessionQuestionReplyData = {
|
|
8823
9281
|
body: QuestionV2Reply;
|
|
8824
9282
|
path: {
|