@nikcli-ai/sdk 1.52.0 → 1.53.0
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 +32 -14
- package/dist/v2/gen/sdk.gen.js +69 -29
- package/dist/v2/gen/types.gen.d.ts +71 -33
- 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, AnalyticsDailyResponses, AnalyticsGlobalResponses, AnalyticsLeaderboardResponses, AnalyticsSessionErrors, AnalyticsSessionResponses, AnalyticsSessionsResponses, AppAgentsResponses, AppLogErrors, AppLogResponses, AppSkillCreateErrors, AppSkillCreateResponses, AppSkillDeleteErrors, AppSkillDeleteResponses, AppSkillsResponses, Auth as Auth7, AuthRemoveErrors, AuthRemoveResponses, AuthSetErrors, AuthSetResponses, CommandListResponses, Config as Config2, ConfigGetResponses, ConfigProvidersResponses, ConfigUpdateErrors, ConfigUpdateResponses, ConnectorsAuthRemoveErrors, ConnectorsAuthRemoveResponses, ConnectorsAuthSetErrors, ConnectorsAuthSetResponses, ConnectorsInvalidateResponses, ConnectorsStatusResponses, DeleteConfigMcpNameResponses, EventSubscribeResponses, EventTuiCommandExecute, EventTuiPromptAppend, EventTuiSessionSelect, EventTuiToastShow, ExperimentalResourceListResponses, ExperimentalWorkspaceAdaptorListResponses, ExperimentalWorkspaceCreateErrors, ExperimentalWorkspaceCreateResponses, ExperimentalWorkspaceListResponses, ExperimentalWorkspaceRemoveErrors, ExperimentalWorkspaceRemoveResponses, ExperimentalWorkspaceRestoreErrors, ExperimentalWorkspaceRestoreResponses, ExperimentalWorkspaceSessionRestoreErrors, ExperimentalWorkspaceSessionRestoreResponses, ExperimentalWorkspaceSessionWarpErrors, ExperimentalWorkspaceSessionWarpResponses, ExperimentalWorkspaceWarpErrors, ExperimentalWorkspaceWarpResponses, FileListResponses, FilePartInput, FilePartSource, FileReadResponses, FileStatusResponses, FileWriteResponses, FindFilesResponses, FindSymbolsResponses, FindTextResponses, FormatterStatusResponses, GetApiShareShareIdDataResponses, GetApiShareShareIdResponses, GetShareShareIdResponses, GetSShareIdResponses, GlobalDisposeResponses, GlobalEventResponses, GlobalHealthResponses, InstanceDisposeResponses, LspStatusResponses, ManagedWorktreeAncestorsErrors, ManagedWorktreeAncestorsResponses, ManagedWorktreeChildrenErrors, ManagedWorktreeChildrenResponses, ManagedWorktreeCreateErrors, ManagedWorktreeCreateInput, ManagedWorktreeCreateResponses, ManagedWorktreeLinkErrors, ManagedWorktreeLinkInput, ManagedWorktreeLinkResponses, ManagedWorktreeListErrors, ManagedWorktreeListResponses, ManagedWorktreeRemoveErrors, ManagedWorktreeRemoveInput, ManagedWorktreeRemoveResponses, McpAddErrors, McpAddResponses, McpAuthAuthenticateErrors, McpAuthAuthenticateResponses, McpAuthCallbackErrors, McpAuthCallbackResponses, McpAuthRemoveErrors, McpAuthRemoveResponses, McpAuthStartErrors, McpAuthStartResponses, McpConnectResponses, McpDisconnectResponses, McpLocalConfig, McpRemoteConfig, McpStatusResponses, McpToggleErrors, McpToggleResponses, MobileAuthTokenCreateResponses, MobileAuthTokenListResponses, MobileAuthTokenRevokeResponses, MobileBootstrapResponses, MobileCommandListResponses, MobileGitBranchesResponses, MobileGitCheckoutErrors, MobileGitCheckoutResponses, MobileGitCommitErrors, MobileGitCommitResponses, MobileGitCommitsResponses, MobileGitDiffResponses, MobileGitDiscardResponses, MobileGithubAuthRemoveResponses, MobileGithubAuthSetErrors, MobileGithubAuthSetResponses, MobileGithubBranchesResponses, MobileGithubDeviceAuthPollInput, MobileGithubImportErrors, MobileGithubImportRequest, MobileGithubImportResponses, MobileGithubImportsResponses, MobileGithubOauthClientIdSetErrors, MobileGithubOauthClientIdSetResponses, MobileGithubOauthDevicePollErrors, MobileGithubOauthDevicePollResponses, MobileGithubOauthDeviceStartErrors, MobileGithubOauthDeviceStartResponses, MobileGithubPublishInput, MobileGithubReposResponses, MobileGithubSessionCleanupErrors, MobileGithubSessionCleanupResponses, MobileGithubSessionCreateErrors, MobileGithubSessionCreateInput, MobileGithubSessionCreateResponses, MobileGithubSessionPublishErrors, MobileGithubSessionPublishResponses, MobileGitPullErrors, MobileGitPullResponses, MobileGitPushErrors, MobileGitPushResponses, MobileGitStageResponses, MobileGitStatusResponses, MobileGitUnstageResponses, MobileMemoryHistoryResponses, MobileMemorySearchResponses, MobileMemoryStashCreateErrors, MobileMemoryStashCreateResponses, MobileMemoryStashDeleteErrors, MobileMemoryStashDeleteResponses, MobileMemoryStashListResponses, MobilePermissionRespondResponses, MobileProjectListResponses, MobilePromptStashCreateInput, MobileQuestionRejectResponses, MobileQuestionRespondResponses, MobileRoutineCreateErrors, MobileRoutineCreateInput, MobileRoutineCreateResponses, MobileRoutineDeleteErrors, MobileRoutineDeleteResponses, MobileRoutineGetErrors, MobileRoutineGetResponses, MobileRoutineListErrors, MobileRoutineListResponses, MobileRoutinePauseErrors, MobileRoutinePauseResponses, MobileRoutineResumeErrors, MobileRoutineResumeResponses, MobileRoutineRunErrors, MobileRoutineRunInput, MobileRoutineRunResponses, MobileRoutineTriggerErrors, MobileRoutineTriggerInput, MobileRoutineTriggerResponses, MobileRoutineUpdateErrors, MobileRoutineUpdateInput, MobileRoutineUpdateResponses, MobileSessionAbortResponses, MobileSessionCommandErrors, MobileSessionCommandInput, MobileSessionCommandListErrors, MobileSessionCommandListResponses, MobileSessionCommandResponses, MobileSessionCreateErrors, MobileSessionCreateInput, MobileSessionCreateResponses, MobileSessionDeleteErrors, MobileSessionDeleteResponses, MobileSessionDetailErrors, MobileSessionDetailResponses, MobileSessionDiffResponses, MobileSessionListResponses, MobileSessionMessageErrors, MobileSessionMessageResponses, MobileSessionRenameResponses, MobileSessionStreamResponses, MobileWorktreeCreateErrors, MobileWorktreeCreateResponses, MobileWorktreeRemoveResponses, MobileWorktreeResetResponses, OutputFormat, Part as Part2, PartDeleteErrors, PartDeleteResponses, PartUpdateErrors, PartUpdateResponses, PatchConfigMcpNameResponses, PatchUserIdResponses, PathGetResponses, PermissionListResponses, PermissionReplyErrors, PermissionReplyResponses, PermissionRespondErrors, PermissionRespondResponses, PermissionRuleset, PostConfigMcpResponses, PostConfigProfilesActivateNameResponses, PostConfigProfilesResponses, PostUserLoginResponses, PostUserRegisterResponses, ProjectCurrentResponses, ProjectListResponses, ProjectUpdateErrors, ProjectUpdateResponses, ProviderApiSetErrors, ProviderApiSetResponses, ProviderAuthRemoveResponses, ProviderAuthResponses, ProviderListResponses, ProviderOauthAuthorizeErrors, ProviderOauthAuthorizeResponses, ProviderOauthCallbackErrors, ProviderOauthCallbackResponses, PtyConnectErrors, PtyConnectResponses, PtyCreateErrors, PtyCreateResponses, PtyGetErrors, PtyGetResponses, PtyListResponses, PtyRemoveErrors, PtyRemoveResponses, PtyUpdateErrors, PtyUpdateResponses, QuestionAnswer, QuestionListResponses, QuestionRejectErrors, QuestionRejectResponses, QuestionReplyErrors, QuestionReplyResponses, SessionAbortErrors, SessionAbortResponses, SessionBackgroundCancelErrors, SessionBackgroundCancelResponses, SessionBackgroundErrors, SessionBackgroundInspectErrors, SessionBackgroundInspectResponses, SessionBackgroundReadErrors, SessionBackgroundReadResponses, SessionBackgroundResponses, SessionChildrenErrors, SessionChildrenResponses, SessionCommandErrors, SessionCommandResponses, SessionContextErrors, SessionContextResponses, SessionContextToggleErrors, SessionContextToggleResponses, SessionCreateErrors, SessionCreateResponses, SessionDeleteErrors, SessionDeleteResponses, SessionDiffResponses, SessionForkResponses, SessionGetErrors, SessionGetResponses, SessionGithub, SessionInitErrors, SessionInitResponses, SessionInstructionsErrors, SessionInstructionsResponses, SessionListResponses, SessionMessageErrors, SessionMessageResponses, SessionMessagesErrors, SessionMessagesResponses, SessionMonitorCancelErrors, SessionMonitorCancelResponses, SessionMonitorErrors, SessionMonitorLogErrors, SessionMonitorLogResponses, SessionMonitorResponses, SessionPromptAsyncErrors, SessionPromptAsyncResponses, SessionPromptErrors, SessionPromptResponses, SessionRevertErrors, SessionRevertResponses, SessionShareErrors, SessionShareResponses, SessionShellErrors, SessionShellResponses, SessionStatusErrors, SessionStatusResponses, SessionSummarizeErrors, SessionSummarizeResponses, SessionTodoErrors, SessionTodoResponses, SessionUnrevertErrors, SessionUnrevertResponses, SessionUnshareErrors, SessionUnshareResponses, SessionUpdateErrors, SessionUpdateResponses, SubtaskPartInput, TextPartInput, ToolIdsErrors, ToolIdsResponses, ToolListErrors, ToolListResponses, TuiAppendPromptErrors, TuiAppendPromptResponses, TuiClearPromptResponses, TuiControlNextResponses, TuiControlResponseResponses, TuiExecuteCommandErrors, TuiExecuteCommandResponses, TuiOpenHelpResponses, TuiOpenModelsResponses, TuiOpenSessionsResponses, TuiOpenThemesResponses, TuiPublishErrors, TuiPublishResponses, TuiSelectSessionErrors, TuiSelectSessionResponses, TuiShowToastResponses, TuiSubmitPromptResponses, VcsApplyErrors, VcsApplyInput, VcsApplyResponses, VcsDiffRawResponses, VcsGetResponses, VcsStatusResponses, WorktreeCreateErrors, WorktreeCreateInput, WorktreeCreateResponses, WorktreeListResponses, WorktreeRemoveErrors, WorktreeRemoveInput, WorktreeRemoveResponses, WorktreeResetErrors, WorktreeResetInput, WorktreeResetResponses } from "./types.gen.js";
|
|
2
|
+
import type { AgentPartInput, AnalyticsDailyResponses, AnalyticsGlobalResponses, AnalyticsLeaderboardResponses, AnalyticsSessionErrors, AnalyticsSessionResponses, AnalyticsSessionsResponses, AppAgentsResponses, AppLogErrors, AppLogResponses, AppSkillCreateErrors, AppSkillCreateResponses, AppSkillDeleteErrors, AppSkillDeleteResponses, AppSkillsResponses, Auth as Auth7, AuthRemoveErrors, AuthRemoveResponses, AuthSetErrors, AuthSetResponses, CommandListResponses, Config as Config2, ConfigGetResponses, ConfigProvidersResponses, ConfigUpdateErrors, ConfigUpdateResponses, ConnectorsAuthRemoveErrors, ConnectorsAuthRemoveResponses, ConnectorsAuthSetErrors, ConnectorsAuthSetResponses, ConnectorsInvalidateResponses, ConnectorsStatusResponses, DeleteConfigMcpNameResponses, EventSubscribeResponses, EventTuiCommandExecute, EventTuiPromptAppend, EventTuiSessionSelect, EventTuiToastShow, ExperimentalResourceListResponses, ExperimentalWorkspaceAdaptorListResponses, ExperimentalWorkspaceCreateErrors, ExperimentalWorkspaceCreateResponses, ExperimentalWorkspaceListResponses, ExperimentalWorkspaceRemoveErrors, ExperimentalWorkspaceRemoveResponses, ExperimentalWorkspaceRestoreErrors, ExperimentalWorkspaceRestoreResponses, ExperimentalWorkspaceSessionRestoreErrors, ExperimentalWorkspaceSessionRestoreResponses, ExperimentalWorkspaceSessionWarpErrors, ExperimentalWorkspaceSessionWarpResponses, ExperimentalWorkspaceStatusResponses, ExperimentalWorkspaceSyncListResponses, ExperimentalWorkspaceWarpErrors, ExperimentalWorkspaceWarpResponses, FileListResponses, FilePartInput, FilePartSource, FileReadResponses, FileStatusResponses, FileWriteResponses, FindFilesResponses, FindSymbolsResponses, FindTextResponses, FormatterStatusResponses, GetApiShareShareIdDataResponses, GetApiShareShareIdResponses, GetShareShareIdResponses, GetSShareIdResponses, GlobalDisposeResponses, GlobalEventResponses, GlobalHealthResponses, InstanceDisposeResponses, LspStatusResponses, ManagedWorktreeAncestorsErrors, ManagedWorktreeAncestorsResponses, ManagedWorktreeChildrenErrors, ManagedWorktreeChildrenResponses, ManagedWorktreeCreateErrors, ManagedWorktreeCreateInput, ManagedWorktreeCreateResponses, ManagedWorktreeLinkErrors, ManagedWorktreeLinkInput, ManagedWorktreeLinkResponses, ManagedWorktreeListErrors, ManagedWorktreeListResponses, ManagedWorktreeRemoveErrors, ManagedWorktreeRemoveInput, ManagedWorktreeRemoveResponses, McpAddErrors, McpAddResponses, McpAuthAuthenticateErrors, McpAuthAuthenticateResponses, McpAuthCallbackErrors, McpAuthCallbackResponses, McpAuthRemoveErrors, McpAuthRemoveResponses, McpAuthStartErrors, McpAuthStartResponses, McpConnectResponses, McpDisconnectResponses, McpLocalConfig, McpRemoteConfig, McpStatusResponses, McpToggleErrors, McpToggleResponses, MobileAuthTokenCreateResponses, MobileAuthTokenListResponses, MobileAuthTokenRevokeResponses, MobileBootstrapResponses, MobileCommandListResponses, MobileGitBranchesResponses, MobileGitCheckoutErrors, MobileGitCheckoutResponses, MobileGitCommitErrors, MobileGitCommitResponses, MobileGitCommitsResponses, MobileGitDiffResponses, MobileGitDiscardResponses, MobileGithubAuthRemoveResponses, MobileGithubAuthSetErrors, MobileGithubAuthSetResponses, MobileGithubBranchesResponses, MobileGithubDeviceAuthPollInput, MobileGithubImportErrors, MobileGithubImportRequest, MobileGithubImportResponses, MobileGithubImportsResponses, MobileGithubOauthClientIdSetErrors, MobileGithubOauthClientIdSetResponses, MobileGithubOauthDevicePollErrors, MobileGithubOauthDevicePollResponses, MobileGithubOauthDeviceStartErrors, MobileGithubOauthDeviceStartResponses, MobileGithubPublishInput, MobileGithubReposResponses, MobileGithubSessionCleanupErrors, MobileGithubSessionCleanupResponses, MobileGithubSessionCreateErrors, MobileGithubSessionCreateInput, MobileGithubSessionCreateResponses, MobileGithubSessionPublishErrors, MobileGithubSessionPublishResponses, MobileGitPullErrors, MobileGitPullResponses, MobileGitPushErrors, MobileGitPushResponses, MobileGitStageResponses, MobileGitStatusResponses, MobileGitUnstageResponses, MobileMemoryHistoryResponses, MobileMemorySearchResponses, MobileMemoryStashCreateErrors, MobileMemoryStashCreateResponses, MobileMemoryStashDeleteErrors, MobileMemoryStashDeleteResponses, MobileMemoryStashListResponses, MobilePermissionRespondResponses, MobileProjectListResponses, MobilePromptStashCreateInput, MobileQuestionRejectResponses, MobileQuestionRespondResponses, MobileRoutineCreateErrors, MobileRoutineCreateInput, MobileRoutineCreateResponses, MobileRoutineDeleteErrors, MobileRoutineDeleteResponses, MobileRoutineGetErrors, MobileRoutineGetResponses, MobileRoutineListErrors, MobileRoutineListResponses, MobileRoutinePauseErrors, MobileRoutinePauseResponses, MobileRoutineResumeErrors, MobileRoutineResumeResponses, MobileRoutineRunErrors, MobileRoutineRunInput, MobileRoutineRunResponses, MobileRoutineTriggerErrors, MobileRoutineTriggerInput, MobileRoutineTriggerResponses, MobileRoutineUpdateErrors, MobileRoutineUpdateInput, MobileRoutineUpdateResponses, MobileSessionAbortResponses, MobileSessionCommandErrors, MobileSessionCommandInput, MobileSessionCommandListErrors, MobileSessionCommandListResponses, MobileSessionCommandResponses, MobileSessionCreateErrors, MobileSessionCreateInput, MobileSessionCreateResponses, MobileSessionDeleteErrors, MobileSessionDeleteResponses, MobileSessionDetailErrors, MobileSessionDetailResponses, MobileSessionDiffResponses, MobileSessionListResponses, MobileSessionMessageErrors, MobileSessionMessageResponses, MobileSessionRenameResponses, MobileSessionStreamResponses, MobileWorktreeCreateErrors, MobileWorktreeCreateResponses, MobileWorktreeRemoveResponses, MobileWorktreeResetResponses, OutputFormat, Part as Part2, PartDeleteErrors, PartDeleteResponses, PartUpdateErrors, PartUpdateResponses, PatchConfigMcpNameResponses, PatchUserIdResponses, PathGetResponses, PermissionListResponses, PermissionReplyErrors, PermissionReplyResponses, PermissionRespondErrors, PermissionRespondResponses, PermissionRuleset, PostConfigMcpResponses, PostConfigProfilesActivateNameResponses, PostConfigProfilesResponses, PostUserLoginResponses, PostUserRegisterResponses, ProjectCurrentResponses, ProjectListResponses, ProjectUpdateErrors, ProjectUpdateResponses, ProviderApiSetErrors, ProviderApiSetResponses, ProviderAuthRemoveResponses, ProviderAuthResponses, ProviderListResponses, ProviderOauthAuthorizeErrors, ProviderOauthAuthorizeResponses, ProviderOauthCallbackErrors, ProviderOauthCallbackResponses, PtyConnectErrors, PtyConnectResponses, PtyCreateErrors, PtyCreateResponses, PtyGetErrors, PtyGetResponses, PtyListResponses, PtyRemoveErrors, PtyRemoveResponses, PtyUpdateErrors, PtyUpdateResponses, QuestionAnswer, QuestionListResponses, QuestionRejectErrors, QuestionRejectResponses, QuestionReplyErrors, QuestionReplyResponses, SessionAbortErrors, SessionAbortResponses, SessionBackgroundCancelErrors, SessionBackgroundCancelResponses, SessionBackgroundErrors, SessionBackgroundInspectErrors, SessionBackgroundInspectResponses, SessionBackgroundReadErrors, SessionBackgroundReadResponses, SessionBackgroundResponses, SessionChildrenErrors, SessionChildrenResponses, SessionCommandErrors, SessionCommandResponses, SessionContextErrors, SessionContextResponses, SessionContextToggleErrors, SessionContextToggleResponses, SessionCreateErrors, SessionCreateResponses, SessionDeleteErrors, SessionDeleteResponses, SessionDiffResponses, SessionForkResponses, SessionGetErrors, SessionGetResponses, SessionGithub, SessionInitErrors, SessionInitResponses, SessionInstructionsErrors, SessionInstructionsResponses, SessionListResponses, SessionMessageErrors, SessionMessageResponses, SessionMessagesErrors, SessionMessagesResponses, SessionMonitorCancelErrors, SessionMonitorCancelResponses, SessionMonitorErrors, SessionMonitorLogErrors, SessionMonitorLogResponses, SessionMonitorResponses, SessionPromptAsyncErrors, SessionPromptAsyncResponses, SessionPromptErrors, SessionPromptResponses, SessionRevertErrors, SessionRevertResponses, SessionShareErrors, SessionShareResponses, SessionShellErrors, SessionShellResponses, SessionStatusErrors, SessionStatusResponses, SessionSummarizeErrors, SessionSummarizeResponses, SessionTodoErrors, SessionTodoResponses, SessionUnrevertErrors, SessionUnrevertResponses, SessionUnshareErrors, SessionUnshareResponses, SessionUpdateErrors, SessionUpdateResponses, SubtaskPartInput, TextPartInput, ToolIdsErrors, ToolIdsResponses, ToolListErrors, ToolListResponses, TuiAppendPromptErrors, TuiAppendPromptResponses, TuiClearPromptResponses, TuiControlNextResponses, TuiControlResponseResponses, TuiExecuteCommandErrors, TuiExecuteCommandResponses, TuiOpenHelpResponses, TuiOpenModelsResponses, TuiOpenSessionsResponses, TuiOpenThemesResponses, TuiPublishErrors, TuiPublishResponses, TuiSelectSessionErrors, TuiSelectSessionResponses, TuiShowToastResponses, TuiSubmitPromptResponses, VcsApplyErrors, VcsApplyInput, VcsApplyResponses, VcsDiffRawResponses, VcsGetResponses, VcsStatusResponses, WorktreeCreateErrors, WorktreeCreateInput, WorktreeCreateResponses, 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
|
|
@@ -285,6 +285,37 @@ export declare class Session extends HeyApiClient {
|
|
|
285
285
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ExperimentalWorkspaceSessionWarpResponses, ExperimentalWorkspaceSessionWarpErrors, ThrowOnError, "fields">;
|
|
286
286
|
}
|
|
287
287
|
export declare class Workspace extends HeyApiClient {
|
|
288
|
+
/**
|
|
289
|
+
* Warp session into workspace
|
|
290
|
+
*
|
|
291
|
+
* Move a session to a target workspace, or detach it back to the local project.
|
|
292
|
+
*/
|
|
293
|
+
warp<ThrowOnError extends boolean = false>(parameters?: {
|
|
294
|
+
directory?: string;
|
|
295
|
+
workspace?: string;
|
|
296
|
+
id?: string | null;
|
|
297
|
+
sessionID?: string;
|
|
298
|
+
copyChanges?: boolean;
|
|
299
|
+
timeoutMs?: number;
|
|
300
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ExperimentalWorkspaceWarpResponses, ExperimentalWorkspaceWarpErrors, ThrowOnError, "fields">;
|
|
301
|
+
/**
|
|
302
|
+
* Sync workspace list
|
|
303
|
+
*
|
|
304
|
+
* Register missing workspaces returned by workspace adaptors.
|
|
305
|
+
*/
|
|
306
|
+
syncList<ThrowOnError extends boolean = false>(parameters?: {
|
|
307
|
+
directory?: string;
|
|
308
|
+
workspace?: string;
|
|
309
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ExperimentalWorkspaceSyncListResponses, unknown, ThrowOnError, "fields">;
|
|
310
|
+
/**
|
|
311
|
+
* Workspace status
|
|
312
|
+
*
|
|
313
|
+
* Get connection status for workspaces in the current project.
|
|
314
|
+
*/
|
|
315
|
+
status<ThrowOnError extends boolean = false>(parameters?: {
|
|
316
|
+
directory?: string;
|
|
317
|
+
workspace?: string;
|
|
318
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ExperimentalWorkspaceStatusResponses, unknown, ThrowOnError, "fields">;
|
|
288
319
|
/**
|
|
289
320
|
* Remove workspace
|
|
290
321
|
*
|
|
@@ -332,19 +363,6 @@ export declare class Workspace extends HeyApiClient {
|
|
|
332
363
|
workspace?: string;
|
|
333
364
|
timeoutMs?: number;
|
|
334
365
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ExperimentalWorkspaceRestoreResponses, ExperimentalWorkspaceRestoreErrors, ThrowOnError, "fields">;
|
|
335
|
-
/**
|
|
336
|
-
* Warp session into workspace
|
|
337
|
-
*
|
|
338
|
-
* Move a session to a target workspace, or detach it back to the local project.
|
|
339
|
-
*/
|
|
340
|
-
warp<ThrowOnError extends boolean = false>(parameters?: {
|
|
341
|
-
directory?: string;
|
|
342
|
-
workspace?: string;
|
|
343
|
-
id?: string | null;
|
|
344
|
-
sessionID?: string;
|
|
345
|
-
copyChanges?: boolean;
|
|
346
|
-
timeoutMs?: number;
|
|
347
|
-
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ExperimentalWorkspaceWarpResponses, ExperimentalWorkspaceWarpErrors, ThrowOnError, "fields">;
|
|
348
366
|
/**
|
|
349
367
|
* List workspaces
|
|
350
368
|
*
|
package/dist/v2/gen/sdk.gen.js
CHANGED
|
@@ -558,6 +558,75 @@ export class Session extends HeyApiClient {
|
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
560
|
export class Workspace extends HeyApiClient {
|
|
561
|
+
/**
|
|
562
|
+
* Warp session into workspace
|
|
563
|
+
*
|
|
564
|
+
* Move a session to a target workspace, or detach it back to the local project.
|
|
565
|
+
*/
|
|
566
|
+
warp(parameters, options) {
|
|
567
|
+
const params = buildClientParams([parameters], [
|
|
568
|
+
{
|
|
569
|
+
args: [
|
|
570
|
+
{ in: "query", key: "directory" },
|
|
571
|
+
{ in: "query", key: "workspace" },
|
|
572
|
+
{ in: "body", key: "id" },
|
|
573
|
+
{ in: "body", key: "sessionID" },
|
|
574
|
+
{ in: "body", key: "copyChanges" },
|
|
575
|
+
{ in: "body", key: "timeoutMs" },
|
|
576
|
+
],
|
|
577
|
+
},
|
|
578
|
+
]);
|
|
579
|
+
return (options?.client ?? this.client).post({
|
|
580
|
+
url: "/experimental/workspace/warp",
|
|
581
|
+
...options,
|
|
582
|
+
...params,
|
|
583
|
+
headers: {
|
|
584
|
+
"Content-Type": "application/json",
|
|
585
|
+
...options?.headers,
|
|
586
|
+
...params.headers,
|
|
587
|
+
},
|
|
588
|
+
});
|
|
589
|
+
}
|
|
590
|
+
/**
|
|
591
|
+
* Sync workspace list
|
|
592
|
+
*
|
|
593
|
+
* Register missing workspaces returned by workspace adaptors.
|
|
594
|
+
*/
|
|
595
|
+
syncList(parameters, options) {
|
|
596
|
+
const params = buildClientParams([parameters], [
|
|
597
|
+
{
|
|
598
|
+
args: [
|
|
599
|
+
{ in: "query", key: "directory" },
|
|
600
|
+
{ in: "query", key: "workspace" },
|
|
601
|
+
],
|
|
602
|
+
},
|
|
603
|
+
]);
|
|
604
|
+
return (options?.client ?? this.client).post({
|
|
605
|
+
url: "/experimental/workspace/sync-list",
|
|
606
|
+
...options,
|
|
607
|
+
...params,
|
|
608
|
+
});
|
|
609
|
+
}
|
|
610
|
+
/**
|
|
611
|
+
* Workspace status
|
|
612
|
+
*
|
|
613
|
+
* Get connection status for workspaces in the current project.
|
|
614
|
+
*/
|
|
615
|
+
status(parameters, options) {
|
|
616
|
+
const params = buildClientParams([parameters], [
|
|
617
|
+
{
|
|
618
|
+
args: [
|
|
619
|
+
{ in: "query", key: "directory" },
|
|
620
|
+
{ in: "query", key: "workspace" },
|
|
621
|
+
],
|
|
622
|
+
},
|
|
623
|
+
]);
|
|
624
|
+
return (options?.client ?? this.client).get({
|
|
625
|
+
url: "/experimental/workspace/status",
|
|
626
|
+
...options,
|
|
627
|
+
...params,
|
|
628
|
+
});
|
|
629
|
+
}
|
|
561
630
|
/**
|
|
562
631
|
* Remove workspace
|
|
563
632
|
*
|
|
@@ -629,35 +698,6 @@ export class Workspace extends HeyApiClient {
|
|
|
629
698
|
...params,
|
|
630
699
|
});
|
|
631
700
|
}
|
|
632
|
-
/**
|
|
633
|
-
* Warp session into workspace
|
|
634
|
-
*
|
|
635
|
-
* Move a session to a target workspace, or detach it back to the local project.
|
|
636
|
-
*/
|
|
637
|
-
warp(parameters, options) {
|
|
638
|
-
const params = buildClientParams([parameters], [
|
|
639
|
-
{
|
|
640
|
-
args: [
|
|
641
|
-
{ in: "query", key: "directory" },
|
|
642
|
-
{ in: "query", key: "workspace" },
|
|
643
|
-
{ in: "body", key: "id" },
|
|
644
|
-
{ in: "body", key: "sessionID" },
|
|
645
|
-
{ in: "body", key: "copyChanges" },
|
|
646
|
-
{ in: "body", key: "timeoutMs" },
|
|
647
|
-
],
|
|
648
|
-
},
|
|
649
|
-
]);
|
|
650
|
-
return (options?.client ?? this.client).post({
|
|
651
|
-
url: "/experimental/workspace/warp",
|
|
652
|
-
...options,
|
|
653
|
-
...params,
|
|
654
|
-
headers: {
|
|
655
|
-
"Content-Type": "application/json",
|
|
656
|
-
...options?.headers,
|
|
657
|
-
...params.headers,
|
|
658
|
-
},
|
|
659
|
-
});
|
|
660
|
-
}
|
|
661
701
|
/**
|
|
662
702
|
* List workspaces
|
|
663
703
|
*
|
|
@@ -2482,7 +2482,7 @@ export type ToolListItem = {
|
|
|
2482
2482
|
export type ToolList = Array<ToolListItem>;
|
|
2483
2483
|
export type Worktree = {
|
|
2484
2484
|
name: string;
|
|
2485
|
-
branch
|
|
2485
|
+
branch?: string;
|
|
2486
2486
|
directory: string;
|
|
2487
2487
|
};
|
|
2488
2488
|
export type WorktreeCreateInput = {
|
|
@@ -2493,8 +2493,14 @@ export type WorktreeCreateInput = {
|
|
|
2493
2493
|
remote?: string;
|
|
2494
2494
|
startCommand?: string;
|
|
2495
2495
|
};
|
|
2496
|
+
export type WorkspaceConnectionStatus = {
|
|
2497
|
+
workspaceID: string;
|
|
2498
|
+
status: "connecting" | "connected" | "disconnected" | "error";
|
|
2499
|
+
};
|
|
2496
2500
|
export type Workspace = {
|
|
2497
2501
|
id: string;
|
|
2502
|
+
name: string;
|
|
2503
|
+
timeUsed: number;
|
|
2498
2504
|
branch: string | null;
|
|
2499
2505
|
projectID: string;
|
|
2500
2506
|
config: {
|
|
@@ -3618,6 +3624,70 @@ export type ExperimentalWorkspaceAdaptorListResponses = {
|
|
|
3618
3624
|
}>;
|
|
3619
3625
|
};
|
|
3620
3626
|
export type ExperimentalWorkspaceAdaptorListResponse = ExperimentalWorkspaceAdaptorListResponses[keyof ExperimentalWorkspaceAdaptorListResponses];
|
|
3627
|
+
export type ExperimentalWorkspaceWarpData = {
|
|
3628
|
+
body?: {
|
|
3629
|
+
id: string | null;
|
|
3630
|
+
sessionID: string;
|
|
3631
|
+
copyChanges?: boolean;
|
|
3632
|
+
timeoutMs?: number;
|
|
3633
|
+
};
|
|
3634
|
+
path?: never;
|
|
3635
|
+
query?: {
|
|
3636
|
+
directory?: string;
|
|
3637
|
+
workspace?: string;
|
|
3638
|
+
};
|
|
3639
|
+
url: "/experimental/workspace/warp";
|
|
3640
|
+
};
|
|
3641
|
+
export type ExperimentalWorkspaceWarpErrors = {
|
|
3642
|
+
/**
|
|
3643
|
+
* Bad request
|
|
3644
|
+
*/
|
|
3645
|
+
400: BadRequestError;
|
|
3646
|
+
/**
|
|
3647
|
+
* Not found
|
|
3648
|
+
*/
|
|
3649
|
+
404: NotFoundError;
|
|
3650
|
+
};
|
|
3651
|
+
export type ExperimentalWorkspaceWarpError = ExperimentalWorkspaceWarpErrors[keyof ExperimentalWorkspaceWarpErrors];
|
|
3652
|
+
export type ExperimentalWorkspaceWarpResponses = {
|
|
3653
|
+
/**
|
|
3654
|
+
* Session warped
|
|
3655
|
+
*/
|
|
3656
|
+
204: void;
|
|
3657
|
+
};
|
|
3658
|
+
export type ExperimentalWorkspaceWarpResponse = ExperimentalWorkspaceWarpResponses[keyof ExperimentalWorkspaceWarpResponses];
|
|
3659
|
+
export type ExperimentalWorkspaceSyncListData = {
|
|
3660
|
+
body?: never;
|
|
3661
|
+
path?: never;
|
|
3662
|
+
query?: {
|
|
3663
|
+
directory?: string;
|
|
3664
|
+
workspace?: string;
|
|
3665
|
+
};
|
|
3666
|
+
url: "/experimental/workspace/sync-list";
|
|
3667
|
+
};
|
|
3668
|
+
export type ExperimentalWorkspaceSyncListResponses = {
|
|
3669
|
+
/**
|
|
3670
|
+
* Workspace list synced
|
|
3671
|
+
*/
|
|
3672
|
+
204: void;
|
|
3673
|
+
};
|
|
3674
|
+
export type ExperimentalWorkspaceSyncListResponse = ExperimentalWorkspaceSyncListResponses[keyof ExperimentalWorkspaceSyncListResponses];
|
|
3675
|
+
export type ExperimentalWorkspaceStatusData = {
|
|
3676
|
+
body?: never;
|
|
3677
|
+
path?: never;
|
|
3678
|
+
query?: {
|
|
3679
|
+
directory?: string;
|
|
3680
|
+
workspace?: string;
|
|
3681
|
+
};
|
|
3682
|
+
url: "/experimental/workspace/status";
|
|
3683
|
+
};
|
|
3684
|
+
export type ExperimentalWorkspaceStatusResponses = {
|
|
3685
|
+
/**
|
|
3686
|
+
* Workspace connection statuses
|
|
3687
|
+
*/
|
|
3688
|
+
200: Array<WorkspaceConnectionStatus>;
|
|
3689
|
+
};
|
|
3690
|
+
export type ExperimentalWorkspaceStatusResponse = ExperimentalWorkspaceStatusResponses[keyof ExperimentalWorkspaceStatusResponses];
|
|
3621
3691
|
export type ExperimentalWorkspaceRemoveData = {
|
|
3622
3692
|
body?: never;
|
|
3623
3693
|
path: {
|
|
@@ -3746,38 +3816,6 @@ export type ExperimentalWorkspaceSessionRestoreResponses = {
|
|
|
3746
3816
|
200: WorkspaceSessionRestore;
|
|
3747
3817
|
};
|
|
3748
3818
|
export type ExperimentalWorkspaceSessionRestoreResponse = ExperimentalWorkspaceSessionRestoreResponses[keyof ExperimentalWorkspaceSessionRestoreResponses];
|
|
3749
|
-
export type ExperimentalWorkspaceWarpData = {
|
|
3750
|
-
body?: {
|
|
3751
|
-
id: string | null;
|
|
3752
|
-
sessionID: string;
|
|
3753
|
-
copyChanges?: boolean;
|
|
3754
|
-
timeoutMs?: number;
|
|
3755
|
-
};
|
|
3756
|
-
path?: never;
|
|
3757
|
-
query?: {
|
|
3758
|
-
directory?: string;
|
|
3759
|
-
workspace?: string;
|
|
3760
|
-
};
|
|
3761
|
-
url: "/experimental/workspace/warp";
|
|
3762
|
-
};
|
|
3763
|
-
export type ExperimentalWorkspaceWarpErrors = {
|
|
3764
|
-
/**
|
|
3765
|
-
* Bad request
|
|
3766
|
-
*/
|
|
3767
|
-
400: BadRequestError;
|
|
3768
|
-
/**
|
|
3769
|
-
* Not found
|
|
3770
|
-
*/
|
|
3771
|
-
404: NotFoundError;
|
|
3772
|
-
};
|
|
3773
|
-
export type ExperimentalWorkspaceWarpError = ExperimentalWorkspaceWarpErrors[keyof ExperimentalWorkspaceWarpErrors];
|
|
3774
|
-
export type ExperimentalWorkspaceWarpResponses = {
|
|
3775
|
-
/**
|
|
3776
|
-
* Session warped
|
|
3777
|
-
*/
|
|
3778
|
-
204: void;
|
|
3779
|
-
};
|
|
3780
|
-
export type ExperimentalWorkspaceWarpResponse = ExperimentalWorkspaceWarpResponses[keyof ExperimentalWorkspaceWarpResponses];
|
|
3781
3819
|
export type ExperimentalWorkspaceSessionWarpData = {
|
|
3782
3820
|
body?: {
|
|
3783
3821
|
workspaceID: string | null;
|