@opencode-ai/sdk 0.0.0-dev-202606091555 → 0.0.0-dev-202606091642
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 +16 -16
- package/dist/v2/gen/sdk.gen.js +19 -28
- package/dist/v2/gen/types.gen.d.ts +64 -56
- 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, 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,
|
|
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, 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";
|
|
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
|
|
@@ -968,17 +968,6 @@ export declare class Provider extends HeyApiClient {
|
|
|
968
968
|
private _oauth?;
|
|
969
969
|
get oauth(): Oauth;
|
|
970
970
|
}
|
|
971
|
-
export declare class Reference extends HeyApiClient {
|
|
972
|
-
/**
|
|
973
|
-
* List configured references
|
|
974
|
-
*
|
|
975
|
-
* List configured references resolved in the current workspace.
|
|
976
|
-
*/
|
|
977
|
-
list<ThrowOnError extends boolean = false>(parameters?: {
|
|
978
|
-
directory?: string;
|
|
979
|
-
workspace?: string;
|
|
980
|
-
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ReferenceListResponses, ReferenceListErrors, ThrowOnError, "fields">;
|
|
981
|
-
}
|
|
982
971
|
export declare class Session2 extends HeyApiClient {
|
|
983
972
|
/**
|
|
984
973
|
* List sessions
|
|
@@ -1737,7 +1726,6 @@ export declare class Fs extends HeyApiClient {
|
|
|
1737
1726
|
workspace?: string;
|
|
1738
1727
|
};
|
|
1739
1728
|
path: string;
|
|
1740
|
-
reference?: string;
|
|
1741
1729
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<V2FsReadResponses, V2FsReadErrors, ThrowOnError, "fields">;
|
|
1742
1730
|
/**
|
|
1743
1731
|
* List directory
|
|
@@ -1750,7 +1738,6 @@ export declare class Fs extends HeyApiClient {
|
|
|
1750
1738
|
workspace?: string;
|
|
1751
1739
|
};
|
|
1752
1740
|
path?: string;
|
|
1753
|
-
reference?: string;
|
|
1754
1741
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<V2FsListResponses, V2FsListErrors, ThrowOnError, "fields">;
|
|
1755
1742
|
}
|
|
1756
1743
|
export declare class Command2 extends HeyApiClient {
|
|
@@ -1809,6 +1796,19 @@ export declare class Question3 extends HeyApiClient {
|
|
|
1809
1796
|
private _request?;
|
|
1810
1797
|
get request(): Request2;
|
|
1811
1798
|
}
|
|
1799
|
+
export declare class Reference extends HeyApiClient {
|
|
1800
|
+
/**
|
|
1801
|
+
* List references
|
|
1802
|
+
*
|
|
1803
|
+
* List references available in the requested location.
|
|
1804
|
+
*/
|
|
1805
|
+
list<ThrowOnError extends boolean = false>(parameters?: {
|
|
1806
|
+
location?: {
|
|
1807
|
+
directory?: string;
|
|
1808
|
+
workspace?: string;
|
|
1809
|
+
};
|
|
1810
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<V2ReferenceListResponses, V2ReferenceListErrors, ThrowOnError, "fields">;
|
|
1811
|
+
}
|
|
1812
1812
|
export declare class V2 extends HeyApiClient {
|
|
1813
1813
|
private _health?;
|
|
1814
1814
|
get health(): Health;
|
|
@@ -1832,6 +1832,8 @@ export declare class V2 extends HeyApiClient {
|
|
|
1832
1832
|
get event(): Event2;
|
|
1833
1833
|
private _question?;
|
|
1834
1834
|
get question(): Question3;
|
|
1835
|
+
private _reference?;
|
|
1836
|
+
get reference(): Reference;
|
|
1835
1837
|
}
|
|
1836
1838
|
export declare class OpencodeClient extends HeyApiClient {
|
|
1837
1839
|
static readonly __registry: HeyApiRegistry<OpencodeClient>;
|
|
@@ -1883,8 +1885,6 @@ export declare class OpencodeClient extends HeyApiClient {
|
|
|
1883
1885
|
get permission(): Permission;
|
|
1884
1886
|
private _provider?;
|
|
1885
1887
|
get provider(): Provider;
|
|
1886
|
-
private _reference?;
|
|
1887
|
-
get reference(): Reference;
|
|
1888
1888
|
private _session?;
|
|
1889
1889
|
get session(): Session2;
|
|
1890
1890
|
private _part?;
|
package/dist/v2/gen/sdk.gen.js
CHANGED
|
@@ -1986,28 +1986,6 @@ export class Provider extends HeyApiClient {
|
|
|
1986
1986
|
return (this._oauth ??= new Oauth({ client: this.client }));
|
|
1987
1987
|
}
|
|
1988
1988
|
}
|
|
1989
|
-
export class Reference extends HeyApiClient {
|
|
1990
|
-
/**
|
|
1991
|
-
* List configured references
|
|
1992
|
-
*
|
|
1993
|
-
* List configured references resolved in the current workspace.
|
|
1994
|
-
*/
|
|
1995
|
-
list(parameters, options) {
|
|
1996
|
-
const params = buildClientParams([parameters], [
|
|
1997
|
-
{
|
|
1998
|
-
args: [
|
|
1999
|
-
{ in: "query", key: "directory" },
|
|
2000
|
-
{ in: "query", key: "workspace" },
|
|
2001
|
-
],
|
|
2002
|
-
},
|
|
2003
|
-
]);
|
|
2004
|
-
return (options?.client ?? this.client).get({
|
|
2005
|
-
url: "/reference",
|
|
2006
|
-
...options,
|
|
2007
|
-
...params,
|
|
2008
|
-
});
|
|
2009
|
-
}
|
|
2010
|
-
}
|
|
2011
1989
|
export class Session2 extends HeyApiClient {
|
|
2012
1990
|
/**
|
|
2013
1991
|
* List sessions
|
|
@@ -3451,7 +3429,6 @@ export class Fs extends HeyApiClient {
|
|
|
3451
3429
|
args: [
|
|
3452
3430
|
{ in: "query", key: "location" },
|
|
3453
3431
|
{ in: "query", key: "path" },
|
|
3454
|
-
{ in: "query", key: "reference" },
|
|
3455
3432
|
],
|
|
3456
3433
|
},
|
|
3457
3434
|
]);
|
|
@@ -3472,7 +3449,6 @@ export class Fs extends HeyApiClient {
|
|
|
3472
3449
|
args: [
|
|
3473
3450
|
{ in: "query", key: "location" },
|
|
3474
3451
|
{ in: "query", key: "path" },
|
|
3475
|
-
{ in: "query", key: "reference" },
|
|
3476
3452
|
],
|
|
3477
3453
|
},
|
|
3478
3454
|
]);
|
|
@@ -3549,6 +3525,21 @@ export class Question3 extends HeyApiClient {
|
|
|
3549
3525
|
return (this._request ??= new Request2({ client: this.client }));
|
|
3550
3526
|
}
|
|
3551
3527
|
}
|
|
3528
|
+
export class Reference extends HeyApiClient {
|
|
3529
|
+
/**
|
|
3530
|
+
* List references
|
|
3531
|
+
*
|
|
3532
|
+
* List references available in the requested location.
|
|
3533
|
+
*/
|
|
3534
|
+
list(parameters, options) {
|
|
3535
|
+
const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "location" }] }]);
|
|
3536
|
+
return (options?.client ?? this.client).get({
|
|
3537
|
+
url: "/api/reference",
|
|
3538
|
+
...options,
|
|
3539
|
+
...params,
|
|
3540
|
+
});
|
|
3541
|
+
}
|
|
3542
|
+
}
|
|
3552
3543
|
export class V2 extends HeyApiClient {
|
|
3553
3544
|
_health;
|
|
3554
3545
|
get health() {
|
|
@@ -3594,6 +3585,10 @@ export class V2 extends HeyApiClient {
|
|
|
3594
3585
|
get question() {
|
|
3595
3586
|
return (this._question ??= new Question3({ client: this.client }));
|
|
3596
3587
|
}
|
|
3588
|
+
_reference;
|
|
3589
|
+
get reference() {
|
|
3590
|
+
return (this._reference ??= new Reference({ client: this.client }));
|
|
3591
|
+
}
|
|
3597
3592
|
}
|
|
3598
3593
|
export class OpencodeClient extends HeyApiClient {
|
|
3599
3594
|
static __registry = new HeyApiRegistry();
|
|
@@ -3689,10 +3684,6 @@ export class OpencodeClient extends HeyApiClient {
|
|
|
3689
3684
|
get provider() {
|
|
3690
3685
|
return (this._provider ??= new Provider({ client: this.client }));
|
|
3691
3686
|
}
|
|
3692
|
-
_reference;
|
|
3693
|
-
get reference() {
|
|
3694
|
-
return (this._reference ??= new Reference({ client: this.client }));
|
|
3695
|
-
}
|
|
3696
3687
|
_session;
|
|
3697
3688
|
get session() {
|
|
3698
3689
|
return (this._session ??= new Session2({ 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 | EventAccountAdded | EventAccountRemoved | EventAccountSwitched | EventPermissionV2Asked | EventPermissionV2Replied | EventFileWatcherUpdated | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventQuestionV2Asked | EventQuestionV2Replied | EventQuestionV2Rejected | EventTodoUpdated | EventLspUpdated | EventPermissionAsked | EventPermissionReplied | EventTuiPromptAppend2 | EventTuiCommandExecute2 | EventTuiToastShow2 | EventTuiSessionSelect2 | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventCommandExecuted | EventProjectDirectoriesUpdated | EventProjectUpdated | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventSessionStatus | EventSessionIdle | EventSessionCompacted | EventVcsBranchUpdated | EventWorktreeReady | EventWorktreeFailed | EventWorkspaceReady | EventWorkspaceFailed | EventWorkspaceStatus | EventServerConnected | EventGlobalDisposed | EventServerInstanceDisposed;
|
|
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 | EventAccountAdded | EventAccountRemoved | EventAccountSwitched | EventPermissionV2Asked | EventPermissionV2Replied | EventReferenceUpdated | EventFileWatcherUpdated | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventQuestionV2Asked | EventQuestionV2Replied | EventQuestionV2Rejected | EventTodoUpdated | EventLspUpdated | EventPermissionAsked | EventPermissionReplied | EventTuiPromptAppend2 | EventTuiCommandExecute2 | EventTuiToastShow2 | EventTuiSessionSelect2 | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventCommandExecuted | EventProjectDirectoriesUpdated | EventProjectUpdated | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventSessionStatus | EventSessionIdle | EventSessionCompacted | EventVcsBranchUpdated | EventWorktreeReady | EventWorktreeFailed | EventWorkspaceReady | EventWorkspaceFailed | EventWorkspaceStatus | EventServerConnected | EventGlobalDisposed | EventServerInstanceDisposed;
|
|
5
5
|
export type QuestionReplied = {
|
|
6
6
|
sessionID: string;
|
|
7
7
|
requestID: string;
|
|
@@ -470,7 +470,6 @@ export type Prompt = {
|
|
|
470
470
|
text: string;
|
|
471
471
|
files?: Array<PromptFileAttachment>;
|
|
472
472
|
agents?: Array<PromptAgentAttachment>;
|
|
473
|
-
references?: Array<PromptReferenceAttachment>;
|
|
474
473
|
};
|
|
475
474
|
export type Pty = {
|
|
476
475
|
id: string;
|
|
@@ -1062,6 +1061,12 @@ export type GlobalEvent = {
|
|
|
1062
1061
|
requestID: string;
|
|
1063
1062
|
reply: PermissionV2Reply;
|
|
1064
1063
|
};
|
|
1064
|
+
} | {
|
|
1065
|
+
id: string;
|
|
1066
|
+
type: "reference.updated";
|
|
1067
|
+
properties: {
|
|
1068
|
+
[key: string]: unknown;
|
|
1069
|
+
};
|
|
1065
1070
|
} | {
|
|
1066
1071
|
id: string;
|
|
1067
1072
|
type: "file.watcher.updated";
|
|
@@ -2143,22 +2148,6 @@ export type ProviderAuthError1 = {
|
|
|
2143
2148
|
kind?: string;
|
|
2144
2149
|
};
|
|
2145
2150
|
};
|
|
2146
|
-
export type ReferenceDescriptor = {
|
|
2147
|
-
name: string;
|
|
2148
|
-
kind: "local";
|
|
2149
|
-
path: string;
|
|
2150
|
-
} | {
|
|
2151
|
-
name: string;
|
|
2152
|
-
kind: "git";
|
|
2153
|
-
repository: string;
|
|
2154
|
-
path: string;
|
|
2155
|
-
branch?: string;
|
|
2156
|
-
} | {
|
|
2157
|
-
name: string;
|
|
2158
|
-
kind: "invalid";
|
|
2159
|
-
repository?: string;
|
|
2160
|
-
message: string;
|
|
2161
|
-
};
|
|
2162
2151
|
export type NotFoundError = {
|
|
2163
2152
|
name: "NotFoundError";
|
|
2164
2153
|
data: {
|
|
@@ -2466,17 +2455,6 @@ export type PromptAgentAttachment = {
|
|
|
2466
2455
|
name: string;
|
|
2467
2456
|
source?: PromptSource;
|
|
2468
2457
|
};
|
|
2469
|
-
export type PromptReferenceAttachment = {
|
|
2470
|
-
name: string;
|
|
2471
|
-
kind: "local" | "git" | "invalid";
|
|
2472
|
-
uri?: string;
|
|
2473
|
-
repository?: string;
|
|
2474
|
-
branch?: string;
|
|
2475
|
-
target?: string;
|
|
2476
|
-
targetUri?: string;
|
|
2477
|
-
problem?: string;
|
|
2478
|
-
source?: PromptSource;
|
|
2479
|
-
};
|
|
2480
2458
|
export type SessionErrorUnknown = {
|
|
2481
2459
|
type: "unknown";
|
|
2482
2460
|
message: string;
|
|
@@ -3193,7 +3171,10 @@ export type ConfigV2ExperimentalPolicy = {
|
|
|
3193
3171
|
effect: PolicyEffect;
|
|
3194
3172
|
resource: string;
|
|
3195
3173
|
};
|
|
3196
|
-
export type ProjectDirectories = Array<
|
|
3174
|
+
export type ProjectDirectories = Array<{
|
|
3175
|
+
directory: string;
|
|
3176
|
+
type: "main" | "root" | "git_worktree";
|
|
3177
|
+
}>;
|
|
3197
3178
|
export type ProjectCopyCopy = {
|
|
3198
3179
|
directory: string;
|
|
3199
3180
|
};
|
|
@@ -3310,7 +3291,6 @@ export type SessionMessageUser = {
|
|
|
3310
3291
|
text: string;
|
|
3311
3292
|
files?: Array<PromptFileAttachment>;
|
|
3312
3293
|
agents?: Array<PromptAgentAttachment>;
|
|
3313
|
-
references?: Array<PromptReferenceAttachment>;
|
|
3314
3294
|
type: "user";
|
|
3315
3295
|
};
|
|
3316
3296
|
export type SessionMessageSynthetic = {
|
|
@@ -3584,6 +3564,20 @@ export type QuestionV2Reply = {
|
|
|
3584
3564
|
*/
|
|
3585
3565
|
answers: Array<QuestionV2Answer>;
|
|
3586
3566
|
};
|
|
3567
|
+
export type ReferenceLocalSource = {
|
|
3568
|
+
type: "local";
|
|
3569
|
+
path: string;
|
|
3570
|
+
};
|
|
3571
|
+
export type ReferenceGitSource = {
|
|
3572
|
+
type: "git";
|
|
3573
|
+
repository: string;
|
|
3574
|
+
branch?: string;
|
|
3575
|
+
};
|
|
3576
|
+
export type ReferenceInfo = {
|
|
3577
|
+
name: string;
|
|
3578
|
+
path: string;
|
|
3579
|
+
source: ReferenceLocalSource | ReferenceGitSource;
|
|
3580
|
+
};
|
|
3587
3581
|
export type EventModelsDevRefreshed = {
|
|
3588
3582
|
id: string;
|
|
3589
3583
|
type: "models-dev.refreshed";
|
|
@@ -4243,6 +4237,13 @@ export type EventPermissionV2Replied = {
|
|
|
4243
4237
|
reply: PermissionV2Reply;
|
|
4244
4238
|
};
|
|
4245
4239
|
};
|
|
4240
|
+
export type EventReferenceUpdated = {
|
|
4241
|
+
id: string;
|
|
4242
|
+
type: "reference.updated";
|
|
4243
|
+
properties: {
|
|
4244
|
+
[key: string]: unknown;
|
|
4245
|
+
};
|
|
4246
|
+
};
|
|
4246
4247
|
export type EventFileWatcherUpdated = {
|
|
4247
4248
|
id: string;
|
|
4248
4249
|
type: "file.watcher.updated";
|
|
@@ -6526,29 +6527,6 @@ export type ProviderOauthCallbackResponses = {
|
|
|
6526
6527
|
200: boolean;
|
|
6527
6528
|
};
|
|
6528
6529
|
export type ProviderOauthCallbackResponse = ProviderOauthCallbackResponses[keyof ProviderOauthCallbackResponses];
|
|
6529
|
-
export type ReferenceListData = {
|
|
6530
|
-
body?: never;
|
|
6531
|
-
path?: never;
|
|
6532
|
-
query?: {
|
|
6533
|
-
directory?: string;
|
|
6534
|
-
workspace?: string;
|
|
6535
|
-
};
|
|
6536
|
-
url: "/reference";
|
|
6537
|
-
};
|
|
6538
|
-
export type ReferenceListErrors = {
|
|
6539
|
-
/**
|
|
6540
|
-
* Bad request
|
|
6541
|
-
*/
|
|
6542
|
-
400: BadRequestError;
|
|
6543
|
-
};
|
|
6544
|
-
export type ReferenceListError = ReferenceListErrors[keyof ReferenceListErrors];
|
|
6545
|
-
export type ReferenceListResponses = {
|
|
6546
|
-
/**
|
|
6547
|
-
* Resolved configured references
|
|
6548
|
-
*/
|
|
6549
|
-
200: Array<ReferenceDescriptor>;
|
|
6550
|
-
};
|
|
6551
|
-
export type ReferenceListResponse = ReferenceListResponses[keyof ReferenceListResponses];
|
|
6552
6530
|
export type SessionListData = {
|
|
6553
6531
|
body?: never;
|
|
6554
6532
|
path?: never;
|
|
@@ -8631,7 +8609,6 @@ export type V2FsReadData = {
|
|
|
8631
8609
|
workspace?: string;
|
|
8632
8610
|
};
|
|
8633
8611
|
path: string;
|
|
8634
|
-
reference?: string;
|
|
8635
8612
|
};
|
|
8636
8613
|
url: "/api/fs/read";
|
|
8637
8614
|
};
|
|
@@ -8665,7 +8642,6 @@ export type V2FsListData = {
|
|
|
8665
8642
|
workspace?: string;
|
|
8666
8643
|
};
|
|
8667
8644
|
path?: string;
|
|
8668
|
-
reference?: string;
|
|
8669
8645
|
};
|
|
8670
8646
|
url: "/api/fs/list";
|
|
8671
8647
|
};
|
|
@@ -8877,6 +8853,38 @@ export type V2SessionQuestionRejectResponses = {
|
|
|
8877
8853
|
204: void;
|
|
8878
8854
|
};
|
|
8879
8855
|
export type V2SessionQuestionRejectResponse = V2SessionQuestionRejectResponses[keyof V2SessionQuestionRejectResponses];
|
|
8856
|
+
export type V2ReferenceListData = {
|
|
8857
|
+
body?: never;
|
|
8858
|
+
path?: never;
|
|
8859
|
+
query?: {
|
|
8860
|
+
location?: {
|
|
8861
|
+
directory?: string;
|
|
8862
|
+
workspace?: string;
|
|
8863
|
+
};
|
|
8864
|
+
};
|
|
8865
|
+
url: "/api/reference";
|
|
8866
|
+
};
|
|
8867
|
+
export type V2ReferenceListErrors = {
|
|
8868
|
+
/**
|
|
8869
|
+
* InvalidRequestError
|
|
8870
|
+
*/
|
|
8871
|
+
400: InvalidRequestError;
|
|
8872
|
+
/**
|
|
8873
|
+
* UnauthorizedError
|
|
8874
|
+
*/
|
|
8875
|
+
401: UnauthorizedError;
|
|
8876
|
+
};
|
|
8877
|
+
export type V2ReferenceListError = V2ReferenceListErrors[keyof V2ReferenceListErrors];
|
|
8878
|
+
export type V2ReferenceListResponses = {
|
|
8879
|
+
/**
|
|
8880
|
+
* Success
|
|
8881
|
+
*/
|
|
8882
|
+
200: {
|
|
8883
|
+
location: LocationInfo;
|
|
8884
|
+
data: Array<ReferenceInfo>;
|
|
8885
|
+
};
|
|
8886
|
+
};
|
|
8887
|
+
export type V2ReferenceListResponse = V2ReferenceListResponses[keyof V2ReferenceListResponses];
|
|
8880
8888
|
export type PtyConnectData = {
|
|
8881
8889
|
body?: never;
|
|
8882
8890
|
path: {
|