@nikcli-ai/sdk 1.133.0 → 1.135.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.
@@ -1,5 +1,5 @@
1
1
  import { type Client, type ClientMeta, type Options as Options2, type RequestResult, type ServerSentEventsResult, 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, BrainStatusResponses, BrainTriggerErrors, BrainTriggerInput, BrainTriggerResponses, CommandListResponses, Config as Config2, ConfigGetResponses, ConfigProvidersResponses, ConfigUpdateErrors, ConfigUpdateResponses, ConnectorsAuthRemoveErrors, ConnectorsAuthRemoveResponses, ConnectorsAuthSetErrors, ConnectorsAuthSetResponses, ConnectorsInvalidateResponses, ConnectorsStatusResponses, DeleteConfigMcpNameResponses, DoctorRunResponses, EventSubscribeResponse, 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, GlobalEventResponse, GlobalEventResponses, GlobalHealthResponses, InstanceDisposeResponses, LoopAbortErrors, LoopAbortResponses, LoopDeleteErrors, LoopDeleteResponses, LoopGenerateErrors, LoopGenerateResponses, LoopGetErrors, LoopGetResponses, LoopListErrors, LoopListResponses, LoopPauseResponses, LoopRecentRunsResponses, LoopResumeErrors, LoopResumeResponses, LoopRunErrors, LoopRunResponses, LoopRunsResponses, LoopTemplatesResponses, LoopToggleErrors, LoopToggleResponses, LoopUpdateErrors, LoopUpdateResponses, LoopUpsertErrors, LoopUpsertResponses, 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, Message, MissionCancelErrors, MissionCancelResponses, MissionDeleteErrors, MissionDeleteResponses, MissionExecsResponses, MissionFeatureMutateErrors, MissionFeatureMutateResponses, MissionGenerateErrors, MissionGenerateResponses, MissionGetErrors, MissionGetResponses, MissionListResponses, MissionPauseErrors, MissionPauseResponses, MissionRecentExecsResponses, MissionStartErrors, MissionStartResponses, MissionTemplatesResponses, MissionUpdateErrors, MissionUpdateResponses, MissionUpsertErrors, MissionUpsertResponses, 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, MobileLoopAbortErrors, MobileLoopAbortResponses, MobileLoopCreateErrors, MobileLoopCreateResponses, MobileLoopDeleteErrors, MobileLoopDeleteResponses, MobileLoopGenerateErrors, MobileLoopGenerateInput, MobileLoopGenerateResponses, MobileLoopGetErrors, MobileLoopGetResponses, MobileLoopListErrors, MobileLoopListResponses, MobileLoopPauseErrors, MobileLoopPauseResponses, MobileLoopResumeErrors, MobileLoopResumeResponses, MobileLoopRunErrors, MobileLoopRunResponses, MobileLoopRunsErrors, MobileLoopRunsRecentErrors, MobileLoopRunsRecentResponses, MobileLoopRunsResponses, MobileLoopTemplatesResponses, MobileLoopToggleErrors, MobileLoopToggleResponses, MobileLoopUpdateErrors, MobileLoopUpdateResponses, MobileLoopWriteInput, MobileMemoryHistoryResponses, MobileMemorySearchResponses, MobileMemoryStashCreateErrors, MobileMemoryStashCreateResponses, MobileMemoryStashDeleteErrors, MobileMemoryStashDeleteResponses, MobileMemoryStashListResponses, MobilePermissionRespondResponses, MobileProjectListResponses, MobilePromptStashCreateInput, MobilePtyConnectErrors, MobilePtyConnectResponses, MobilePtyCreateErrors, MobilePtyCreateResponses, MobilePtyGetErrors, MobilePtyGetResponses, MobilePtyListResponses, MobilePtyRemoveErrors, MobilePtyRemoveResponses, MobilePtyUpdateErrors, MobilePtyUpdateResponses, 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, MobileSessionTeleportErrors, MobileSessionTeleportOutErrors, MobileSessionTeleportOutResponses, MobileSessionTeleportResponses, MobileSessionTeleportUploadBeginResponses, MobileSessionTeleportUploadChunkErrors, MobileSessionTeleportUploadChunkResponses, 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, SessionGoalErrors, SessionGoalResponses, 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, SessionV2EntriesErrors, SessionV2EntriesResponses, SessionV2EventsErrors, SessionV2EventsResponses, SessionV2StateErrors, SessionV2StateResponses, 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, BrainStatusResponses, BrainTriggerErrors, BrainTriggerInput, BrainTriggerResponses, CommandListResponses, Config as Config2, ConfigGetResponses, ConfigProvidersResponses, ConfigReloadResponses, ConfigUpdateErrors, ConfigUpdateResponses, ConnectorsAuthRemoveErrors, ConnectorsAuthRemoveResponses, ConnectorsAuthSetErrors, ConnectorsAuthSetResponses, ConnectorsInvalidateResponses, ConnectorsStatusResponses, DeleteConfigMcpNameResponses, DoctorRunResponses, EventSubscribeResponse, EventSubscribeResponses, EventTuiCommandExecute, EventTuiPromptAppend, EventTuiSessionSelect, EventTuiToastShow, ExperimentalResourceListResponses, ExperimentalWorkspaceAdaptorListResponses, ExperimentalWorkspaceCreateErrors, ExperimentalWorkspaceCreateResponses, ExperimentalWorkspaceEventsErrors, ExperimentalWorkspaceEventsResponses, 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, GlobalEventResponse, GlobalEventResponses, GlobalHealthResponses, InstanceDisposeResponses, LoopAbortErrors, LoopAbortResponses, LoopDeleteErrors, LoopDeleteResponses, LoopGenerateErrors, LoopGenerateResponses, LoopGetErrors, LoopGetResponses, LoopListErrors, LoopListResponses, LoopPauseResponses, LoopRecentRunsResponses, LoopResumeErrors, LoopResumeResponses, LoopRunErrors, LoopRunResponses, LoopRunsResponses, LoopTemplatesResponses, LoopToggleErrors, LoopToggleResponses, LoopUpdateErrors, LoopUpdateResponses, LoopUpsertErrors, LoopUpsertResponses, 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, Message, MissionCancelErrors, MissionCancelResponses, MissionDeleteErrors, MissionDeleteResponses, MissionExecsResponses, MissionFeatureMutateErrors, MissionFeatureMutateResponses, MissionGenerateErrors, MissionGenerateResponses, MissionGetErrors, MissionGetResponses, MissionListResponses, MissionPauseErrors, MissionPauseResponses, MissionRecentExecsResponses, MissionStartErrors, MissionStartResponses, MissionTemplatesResponses, MissionUpdateErrors, MissionUpdateResponses, MissionUpsertErrors, MissionUpsertResponses, 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, MobileLoopAbortErrors, MobileLoopAbortResponses, MobileLoopCreateErrors, MobileLoopCreateResponses, MobileLoopDeleteErrors, MobileLoopDeleteResponses, MobileLoopGenerateErrors, MobileLoopGenerateInput, MobileLoopGenerateResponses, MobileLoopGetErrors, MobileLoopGetResponses, MobileLoopListErrors, MobileLoopListResponses, MobileLoopPauseErrors, MobileLoopPauseResponses, MobileLoopResumeErrors, MobileLoopResumeResponses, MobileLoopRunErrors, MobileLoopRunResponses, MobileLoopRunsErrors, MobileLoopRunsRecentErrors, MobileLoopRunsRecentResponses, MobileLoopRunsResponses, MobileLoopTemplatesResponses, MobileLoopToggleErrors, MobileLoopToggleResponses, MobileLoopUpdateErrors, MobileLoopUpdateResponses, MobileLoopWriteInput, MobileMemoryHistoryResponses, MobileMemorySearchResponses, MobileMemoryStashCreateErrors, MobileMemoryStashCreateResponses, MobileMemoryStashDeleteErrors, MobileMemoryStashDeleteResponses, MobileMemoryStashListResponses, MobilePermissionRespondResponses, MobileProjectListResponses, MobilePromptStashCreateInput, MobilePtyConnectErrors, MobilePtyConnectResponses, MobilePtyCreateErrors, MobilePtyCreateResponses, MobilePtyGetErrors, MobilePtyGetResponses, MobilePtyListResponses, MobilePtyRemoveErrors, MobilePtyRemoveResponses, MobilePtyUpdateErrors, MobilePtyUpdateResponses, 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, MobileSessionTeleportErrors, MobileSessionTeleportOutErrors, MobileSessionTeleportOutResponses, MobileSessionTeleportResponses, MobileSessionTeleportUploadBeginResponses, MobileSessionTeleportUploadChunkErrors, MobileSessionTeleportUploadChunkResponses, 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, SessionGoalErrors, SessionGoalResponses, 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, SessionV2EntriesErrors, SessionV2EntriesResponses, SessionV2EventsErrors, SessionV2EventsResponses, SessionV2StateErrors, SessionV2StateResponses, SubtaskPartInput, SyncConnectResponses, SyncDisconnectResponses, SyncDrainResponses, SyncEventPushErrors, SyncEventPushResponses, SyncEventStreamResponses, SyncOutboxListResponses, SyncStatsResponses, 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, TResponse = unknown> = Options2<TData, ThrowOnError, TResponse> & {
4
4
  /**
5
5
  * You can provide a client instance returned by `createClient()` instead of
@@ -549,6 +549,15 @@ export declare class Config extends HeyApiClient {
549
549
  workspace?: string;
550
550
  config?: Config2;
551
551
  }, options?: Options<never, ThrowOnError>): RequestResult<ConfigUpdateResponses, ConfigUpdateErrors, ThrowOnError>;
552
+ /**
553
+ * Reload configuration
554
+ *
555
+ * Hot-reload the instance: invalidate reloadable per-instance state so the next read reflects config files on disk. Emits instance.reload.started / instance.reloaded on the event stream.
556
+ */
557
+ reload<ThrowOnError extends boolean = false>(parameters?: {
558
+ directory?: string;
559
+ workspace?: string;
560
+ }, options?: Options<never, ThrowOnError>): RequestResult<ConfigReloadResponses, unknown, ThrowOnError>;
552
561
  /**
553
562
  * List config providers
554
563
  *
@@ -728,6 +737,17 @@ export declare class Workspace extends HeyApiClient {
728
737
  eventLimit?: number;
729
738
  };
730
739
  }, options?: Options<never, ThrowOnError>): RequestResult<ExperimentalWorkspaceCreateResponses, ExperimentalWorkspaceCreateErrors, ThrowOnError>;
740
+ /**
741
+ * Workspace event journal
742
+ *
743
+ * Sequenced restore events for a workspace. Pass `from` (last seen sequence number) to catch up incrementally after a disconnect.
744
+ */
745
+ events<ThrowOnError extends boolean = false>(parameters: {
746
+ id: string;
747
+ directory?: string;
748
+ workspace?: string;
749
+ from?: number;
750
+ }, options?: Options<never, ThrowOnError>): RequestResult<ExperimentalWorkspaceEventsResponses, ExperimentalWorkspaceEventsErrors, ThrowOnError>;
731
751
  /**
732
752
  * Restore workspace
733
753
  *
@@ -1343,6 +1363,83 @@ export declare class Permission extends HeyApiClient {
1343
1363
  workspace?: string;
1344
1364
  }, options?: Options<never, ThrowOnError>): RequestResult<PermissionListResponses, unknown, ThrowOnError>;
1345
1365
  }
1366
+ export declare class Event_ extends HeyApiClient {
1367
+ /**
1368
+ * Push a sync event from a remote CLI
1369
+ */
1370
+ push<ThrowOnError extends boolean = false>(parameters: {
1371
+ directory?: string;
1372
+ workspace?: string;
1373
+ event: {
1374
+ id: string;
1375
+ projectId: string;
1376
+ workspaceId?: string;
1377
+ aggregate: string;
1378
+ seq: number;
1379
+ type: string;
1380
+ data: unknown;
1381
+ timestamp: number;
1382
+ origin?: string;
1383
+ originSeq?: number;
1384
+ };
1385
+ projectID: string;
1386
+ }, options?: Options<never, ThrowOnError>): RequestResult<SyncEventPushResponses, SyncEventPushErrors, ThrowOnError>;
1387
+ /**
1388
+ * SSE stream of new sync events
1389
+ */
1390
+ stream<ThrowOnError extends boolean = false>(parameters: {
1391
+ directory?: string;
1392
+ workspace?: string;
1393
+ projectID: string;
1394
+ token: string;
1395
+ }, options?: Options<never, ThrowOnError>): RequestResult<SyncEventStreamResponses, unknown, ThrowOnError>;
1396
+ }
1397
+ export declare class Outbox extends HeyApiClient {
1398
+ /**
1399
+ * List events since a given sequence for catch-up
1400
+ */
1401
+ list<ThrowOnError extends boolean = false>(parameters: {
1402
+ directory?: string;
1403
+ workspace?: string;
1404
+ projectID: string;
1405
+ since?: number;
1406
+ }, options?: Options<never, ThrowOnError>): RequestResult<SyncOutboxListResponses, unknown, ThrowOnError>;
1407
+ }
1408
+ export declare class Sync extends HeyApiClient {
1409
+ /**
1410
+ * Aggregated sync stats for the TUI
1411
+ */
1412
+ stats<ThrowOnError extends boolean = false>(parameters?: {
1413
+ directory?: string;
1414
+ workspace?: string;
1415
+ projectID?: string;
1416
+ }, options?: Options<never, ThrowOnError>): RequestResult<SyncStatsResponses, unknown, ThrowOnError>;
1417
+ /**
1418
+ * Force a connection to the configured hub
1419
+ */
1420
+ connect<ThrowOnError extends boolean = false>(parameters?: {
1421
+ directory?: string;
1422
+ workspace?: string;
1423
+ }, options?: Options<never, ThrowOnError>): RequestResult<SyncConnectResponses, unknown, ThrowOnError>;
1424
+ /**
1425
+ * Abort the hub connection
1426
+ */
1427
+ disconnect<ThrowOnError extends boolean = false>(parameters?: {
1428
+ directory?: string;
1429
+ workspace?: string;
1430
+ }, options?: Options<never, ThrowOnError>): RequestResult<SyncDisconnectResponses, unknown, ThrowOnError>;
1431
+ /**
1432
+ * Force an outbox drain now
1433
+ */
1434
+ drain<ThrowOnError extends boolean = false>(parameters?: {
1435
+ directory?: string;
1436
+ workspace?: string;
1437
+ }, options?: Options<never, ThrowOnError>): RequestResult<SyncDrainResponses, unknown, ThrowOnError>;
1438
+ private _event?;
1439
+ get event(): Event_;
1440
+ private _outbox?;
1441
+ get outbox(): Outbox;
1442
+ }
1346
1443
  export declare class Question extends HeyApiClient {
1347
1444
  /**
1348
1445
  * List pending questions
@@ -3050,7 +3147,7 @@ export declare class Auth6 extends HeyApiClient {
3050
3147
  auth?: Auth7;
3051
3148
  }, options?: Options<never, ThrowOnError>): RequestResult<AuthSetResponses, AuthSetErrors, ThrowOnError>;
3052
3149
  }
3053
- export declare class Event_ extends HeyApiClient {
3150
+ export declare class Event2 extends HeyApiClient {
3054
3151
  /**
3055
3152
  * Subscribe to events
3056
3153
  *
@@ -3156,6 +3253,8 @@ export declare class NikcliClient extends HeyApiClient {
3156
3253
  get part(): Part;
3157
3254
  private _permission?;
3158
3255
  get permission(): Permission;
3256
+ private _sync?;
3257
+ get sync(): Sync;
3159
3258
  private _question?;
3160
3259
  get question(): Question;
3161
3260
  private _provider?;
@@ -3195,6 +3294,6 @@ export declare class NikcliClient extends HeyApiClient {
3195
3294
  private _auth?;
3196
3295
  get auth(): Auth6;
3197
3296
  private _event?;
3198
- get event(): Event_;
3297
+ get event(): Event2;
3199
3298
  }
3200
3299
  export {};
@@ -985,6 +985,26 @@ export class Config extends HeyApiClient {
985
985
  },
986
986
  });
987
987
  }
988
+ /**
989
+ * Reload configuration
990
+ *
991
+ * Hot-reload the instance: invalidate reloadable per-instance state so the next read reflects config files on disk. Emits instance.reload.started / instance.reloaded on the event stream.
992
+ */
993
+ reload(parameters, options) {
994
+ const params = buildClientParams([parameters], [
995
+ {
996
+ args: [
997
+ { in: "query", key: "directory" },
998
+ { in: "query", key: "workspace" },
999
+ ],
1000
+ },
1001
+ ]);
1002
+ return (options?.client ?? this.client).post({
1003
+ url: "/config/reload",
1004
+ ...options,
1005
+ ...params,
1006
+ });
1007
+ }
988
1008
  /**
989
1009
  * List config providers
990
1010
  *
@@ -1345,6 +1365,28 @@ export class Workspace extends HeyApiClient {
1345
1365
  },
1346
1366
  });
1347
1367
  }
1368
+ /**
1369
+ * Workspace event journal
1370
+ *
1371
+ * Sequenced restore events for a workspace. Pass `from` (last seen sequence number) to catch up incrementally after a disconnect.
1372
+ */
1373
+ events(parameters, options) {
1374
+ const params = buildClientParams([parameters], [
1375
+ {
1376
+ args: [
1377
+ { in: "path", key: "id" },
1378
+ { in: "query", key: "directory" },
1379
+ { in: "query", key: "workspace" },
1380
+ { in: "query", key: "from" },
1381
+ ],
1382
+ },
1383
+ ]);
1384
+ return (options?.client ?? this.client).get({
1385
+ url: "/experimental/workspace/{id}/events",
1386
+ ...options,
1387
+ ...params,
1388
+ });
1389
+ }
1348
1390
  /**
1349
1391
  * Restore workspace
1350
1392
  *
@@ -2578,6 +2620,158 @@ export class Permission extends HeyApiClient {
2578
2620
  });
2579
2621
  }
2580
2622
  }
2623
+ export class Event_ extends HeyApiClient {
2624
+ /**
2625
+ * Push a sync event from a remote CLI
2626
+ */
2627
+ push(parameters, options) {
2628
+ const params = buildClientParams([parameters], [
2629
+ {
2630
+ args: [
2631
+ { in: "query", key: "directory" },
2632
+ { in: "query", key: "workspace" },
2633
+ { in: "body", key: "event" },
2634
+ { in: "body", key: "projectID" },
2635
+ ],
2636
+ },
2637
+ ]);
2638
+ return (options?.client ?? this.client).post({
2639
+ url: "/sync/event",
2640
+ ...options,
2641
+ ...params,
2642
+ headers: {
2643
+ "Content-Type": "application/json",
2644
+ ...options?.headers,
2645
+ ...params.headers,
2646
+ },
2647
+ });
2648
+ }
2649
+ /**
2650
+ * SSE stream of new sync events
2651
+ */
2652
+ stream(parameters, options) {
2653
+ const params = buildClientParams([parameters], [
2654
+ {
2655
+ args: [
2656
+ { in: "query", key: "directory" },
2657
+ { in: "query", key: "workspace" },
2658
+ { in: "query", key: "projectID" },
2659
+ { in: "query", key: "token" },
2660
+ ],
2661
+ },
2662
+ ]);
2663
+ return (options?.client ?? this.client).get({
2664
+ url: "/sync/stream",
2665
+ ...options,
2666
+ ...params,
2667
+ });
2668
+ }
2669
+ }
2670
+ export class Outbox extends HeyApiClient {
2671
+ /**
2672
+ * List events since a given sequence for catch-up
2673
+ */
2674
+ list(parameters, options) {
2675
+ const params = buildClientParams([parameters], [
2676
+ {
2677
+ args: [
2678
+ { in: "query", key: "directory" },
2679
+ { in: "query", key: "workspace" },
2680
+ { in: "query", key: "projectID" },
2681
+ { in: "query", key: "since" },
2682
+ ],
2683
+ },
2684
+ ]);
2685
+ return (options?.client ?? this.client).get({
2686
+ url: "/sync/outbox",
2687
+ ...options,
2688
+ ...params,
2689
+ });
2690
+ }
2691
+ }
2692
+ export class Sync extends HeyApiClient {
2693
+ /**
2694
+ * Aggregated sync stats for the TUI
2695
+ */
2696
+ stats(parameters, options) {
2697
+ const params = buildClientParams([parameters], [
2698
+ {
2699
+ args: [
2700
+ { in: "query", key: "directory" },
2701
+ { in: "query", key: "workspace" },
2702
+ { in: "query", key: "projectID" },
2703
+ ],
2704
+ },
2705
+ ]);
2706
+ return (options?.client ?? this.client).get({
2707
+ url: "/sync/stats",
2708
+ ...options,
2709
+ ...params,
2710
+ });
2711
+ }
2712
+ /**
2713
+ * Force a connection to the configured hub
2714
+ */
2715
+ connect(parameters, options) {
2716
+ const params = buildClientParams([parameters], [
2717
+ {
2718
+ args: [
2719
+ { in: "query", key: "directory" },
2720
+ { in: "query", key: "workspace" },
2721
+ ],
2722
+ },
2723
+ ]);
2724
+ return (options?.client ?? this.client).post({
2725
+ url: "/sync/connect",
2726
+ ...options,
2727
+ ...params,
2728
+ });
2729
+ }
2730
+ /**
2731
+ * Abort the hub connection
2732
+ */
2733
+ disconnect(parameters, options) {
2734
+ const params = buildClientParams([parameters], [
2735
+ {
2736
+ args: [
2737
+ { in: "query", key: "directory" },
2738
+ { in: "query", key: "workspace" },
2739
+ ],
2740
+ },
2741
+ ]);
2742
+ return (options?.client ?? this.client).post({
2743
+ url: "/sync/disconnect",
2744
+ ...options,
2745
+ ...params,
2746
+ });
2747
+ }
2748
+ /**
2749
+ * Force an outbox drain now
2750
+ */
2751
+ drain(parameters, options) {
2752
+ const params = buildClientParams([parameters], [
2753
+ {
2754
+ args: [
2755
+ { in: "query", key: "directory" },
2756
+ { in: "query", key: "workspace" },
2757
+ ],
2758
+ },
2759
+ ]);
2760
+ return (options?.client ?? this.client).post({
2761
+ url: "/sync/drain",
2762
+ ...options,
2763
+ ...params,
2764
+ });
2765
+ }
2766
+ _event;
2767
+ get event() {
2768
+ return (this._event ??= new Event_({ client: this.client }));
2769
+ }
2770
+ _outbox;
2771
+ get outbox() {
2772
+ return (this._outbox ??= new Outbox({ client: this.client }));
2773
+ }
2774
+ }
2581
2775
  export class Question extends HeyApiClient {
2582
2776
  /**
2583
2777
  * List pending questions
@@ -6259,7 +6453,7 @@ export class Auth6 extends HeyApiClient {
6259
6453
  });
6260
6454
  }
6261
6455
  }
6262
- export class Event_ extends HeyApiClient {
6456
+ export class Event2 extends HeyApiClient {
6263
6457
  /**
6264
6458
  * Subscribe to events
6265
6459
  *
@@ -6538,6 +6732,10 @@ export class NikcliClient extends HeyApiClient {
6538
6732
  get permission() {
6539
6733
  return (this._permission ??= new Permission({ client: this.client }));
6540
6734
  }
6735
+ _sync;
6736
+ get sync() {
6737
+ return (this._sync ??= new Sync({ client: this.client }));
6738
+ }
6541
6739
  _question;
6542
6740
  get question() {
6543
6741
  return (this._question ??= new Question({ client: this.client }));
@@ -6616,6 +6814,6 @@ export class NikcliClient extends HeyApiClient {
6616
6814
  }
6617
6815
  _event;
6618
6816
  get event() {
6619
- return (this._event ??= new Event_({ client: this.client }));
6817
+ return (this._event ??= new Event2({ client: this.client }));
6620
6818
  }
6621
6819
  }
@@ -676,6 +676,21 @@ export type EventCommandExecuted = {
676
676
  messageID: string;
677
677
  };
678
678
  };
679
+ export type EventInstanceReloadStarted = {
680
+ type: "instance.reload.started";
681
+ properties: {
682
+ directory: string;
683
+ files: Array<string>;
684
+ };
685
+ };
686
+ export type EventInstanceReloaded = {
687
+ type: "instance.reloaded";
688
+ properties: {
689
+ directory: string;
690
+ files: Array<string>;
691
+ durationMs: number;
692
+ };
693
+ };
679
694
  export type EventVcsBranchUpdated = {
680
695
  type: "vcs.branch.updated";
681
696
  properties: {
@@ -1092,7 +1107,7 @@ export type EventMissionAborted = {
1092
1107
  reason: string;
1093
1108
  };
1094
1109
  };
1095
- export type Event = EventProjectUpdated | EventTelemetryRecord | EventServerInstanceDisposed | EventInstallationUpdated | EventInstallationUpdateAvailable | EventServerConnected | EventGlobalDisposed | EventLspClientDiagnostics | EventLspUpdated | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventPermissionAsked | EventPermissionReplied | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventSessionDiff | EventSessionError | EventFileWatcherUpdated | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventCommandExecuted | EventVcsBranchUpdated | EventTodoUpdated | EventSessionStatus | EventSessionIdle | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventSessionCompacted | EventSessionGoal | EventMonitorCreated | EventMonitorUpdated | EventMonitorOutput | EventMonitorCompleted | EventSessionV2Updated | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventFileEdited | EventWorkspaceReady | EventWorkspaceFailed | EventWorkspaceStatus | EventDelegationCompleted | EventLoopUpserted | EventLoopRemoved | EventLoopRunStarted | EventLoopRunFinished | EventLoopRuntimeChanged | EventLoopAborted | EventMissionUpserted | EventMissionRemoved | EventMissionStarted | EventMissionFinished | EventMissionExecStarted | EventMissionExecFinished | EventMissionRuntimeChanged | EventMissionAborted;
1110
+ export type Event = EventProjectUpdated | EventTelemetryRecord | EventServerInstanceDisposed | EventInstallationUpdated | EventInstallationUpdateAvailable | EventServerConnected | EventGlobalDisposed | EventLspClientDiagnostics | EventLspUpdated | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventPermissionAsked | EventPermissionReplied | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventSessionDiff | EventSessionError | EventFileWatcherUpdated | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventCommandExecuted | EventInstanceReloadStarted | EventInstanceReloaded | EventVcsBranchUpdated | EventTodoUpdated | EventSessionStatus | EventSessionIdle | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventSessionCompacted | EventSessionGoal | EventMonitorCreated | EventMonitorUpdated | EventMonitorOutput | EventMonitorCompleted | EventSessionV2Updated | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventFileEdited | EventWorkspaceReady | EventWorkspaceFailed | EventWorkspaceStatus | EventDelegationCompleted | EventLoopUpserted | EventLoopRemoved | EventLoopRunStarted | EventLoopRunFinished | EventLoopRuntimeChanged | EventLoopAborted | EventMissionUpserted | EventMissionRemoved | EventMissionStarted | EventMissionFinished | EventMissionExecStarted | EventMissionExecFinished | EventMissionRuntimeChanged | EventMissionAborted;
1096
1111
  export type GlobalEvent = {
1097
1112
  directory: string;
1098
1113
  payload: Event;
@@ -1273,6 +1288,10 @@ export type KeybindsConfig = {
1273
1288
  * View status
1274
1289
  */
1275
1290
  status_view?: string;
1291
+ /**
1292
+ * View sync status (sessions + workspace, hub remote)
1293
+ */
1294
+ sync_view?: string;
1276
1295
  /**
1277
1296
  * Export session to editor
1278
1297
  */
@@ -4872,6 +4891,25 @@ export type ConfigUpdateResponses = {
4872
4891
  200: Config;
4873
4892
  };
4874
4893
  export type ConfigUpdateResponse = ConfigUpdateResponses[keyof ConfigUpdateResponses];
4894
+ export type ConfigReloadData = {
4895
+ body?: never;
4896
+ path?: never;
4897
+ query?: {
4898
+ directory?: string;
4899
+ workspace?: string;
4900
+ };
4901
+ url: "/config/reload";
4902
+ };
4903
+ export type ConfigReloadResponses = {
4904
+ /**
4905
+ * Instance reloaded
4906
+ */
4907
+ 200: {
4908
+ reloaded: boolean;
4909
+ directory: string;
4910
+ };
4911
+ };
4912
+ export type ConfigReloadResponse = ConfigReloadResponses[keyof ConfigReloadResponses];
4875
4913
  export type ConfigProvidersData = {
4876
4914
  body?: never;
4877
4915
  path?: never;
@@ -5228,6 +5266,41 @@ export type ExperimentalWorkspaceCreateResponses = {
5228
5266
  200: Workspace;
5229
5267
  };
5230
5268
  export type ExperimentalWorkspaceCreateResponse = ExperimentalWorkspaceCreateResponses[keyof ExperimentalWorkspaceCreateResponses];
5269
+ export type ExperimentalWorkspaceEventsData = {
5270
+ body?: never;
5271
+ path: {
5272
+ id: string;
5273
+ };
5274
+ query?: {
5275
+ directory?: string;
5276
+ workspace?: string;
5277
+ from?: number;
5278
+ };
5279
+ url: "/experimental/workspace/{id}/events";
5280
+ };
5281
+ export type ExperimentalWorkspaceEventsErrors = {
5282
+ /**
5283
+ * Bad request
5284
+ */
5285
+ 400: BadRequestError;
5286
+ /**
5287
+ * Not found
5288
+ */
5289
+ 404: NotFoundError;
5290
+ };
5291
+ export type ExperimentalWorkspaceEventsError = ExperimentalWorkspaceEventsErrors[keyof ExperimentalWorkspaceEventsErrors];
5292
+ export type ExperimentalWorkspaceEventsResponses = {
5293
+ /**
5294
+ * Journaled workspace events
5295
+ */
5296
+ 200: Array<{
5297
+ seq: number;
5298
+ type: string;
5299
+ data: unknown;
5300
+ timestamp: number;
5301
+ }>;
5302
+ };
5303
+ export type ExperimentalWorkspaceEventsResponse = ExperimentalWorkspaceEventsResponses[keyof ExperimentalWorkspaceEventsResponses];
5231
5304
  export type ExperimentalWorkspaceRestoreData = {
5232
5305
  body?: never;
5233
5306
  path: {
@@ -6914,6 +6987,148 @@ export type SessionMonitorCancelResponses = {
6914
6987
  */
6915
6988
  200: unknown;
6916
6989
  };
6990
+ export type SyncEventPushData = {
6991
+ body?: {
6992
+ event: {
6993
+ id: string;
6994
+ projectId: string;
6995
+ workspaceId?: string;
6996
+ aggregate: string;
6997
+ seq: number;
6998
+ type: string;
6999
+ data: unknown;
7000
+ timestamp: number;
7001
+ origin?: string;
7002
+ originSeq?: number;
7003
+ };
7004
+ projectID: string;
7005
+ };
7006
+ path?: never;
7007
+ query?: {
7008
+ directory?: string;
7009
+ workspace?: string;
7010
+ };
7011
+ url: "/sync/event";
7012
+ };
7013
+ export type SyncEventPushErrors = {
7014
+ /**
7015
+ * Invalid payload
7016
+ */
7017
+ 400: unknown;
7018
+ /**
7019
+ * Unauthorized
7020
+ */
7021
+ 401: unknown;
7022
+ };
7023
+ export type SyncEventPushResponses = {
7024
+ /**
7025
+ * Event accepted
7026
+ */
7027
+ 204: void;
7028
+ };
7029
+ export type SyncEventPushResponse = SyncEventPushResponses[keyof SyncEventPushResponses];
7030
+ export type SyncOutboxListData = {
7031
+ body?: never;
7032
+ path?: never;
7033
+ query: {
7034
+ directory?: string;
7035
+ workspace?: string;
7036
+ projectID: string;
7037
+ since?: number;
7038
+ };
7039
+ url: "/sync/outbox";
7040
+ };
7041
+ export type SyncOutboxListResponses = {
7042
+ /**
7043
+ * Page of events
7044
+ */
7045
+ 200: {
7046
+ events: Array<unknown>;
7047
+ hasMore: boolean;
7048
+ };
7049
+ };
7050
+ export type SyncOutboxListResponse = SyncOutboxListResponses[keyof SyncOutboxListResponses];
7051
+ export type SyncEventStreamData = {
7052
+ body?: never;
7053
+ path?: never;
7054
+ query: {
7055
+ directory?: string;
7056
+ workspace?: string;
7057
+ projectID: string;
7058
+ token: string;
7059
+ };
7060
+ url: "/sync/stream";
7061
+ };
7062
+ export type SyncEventStreamResponses = {
7063
+ /**
7064
+ * SSE stream
7065
+ */
7066
+ 200: unknown;
7067
+ };
7068
+ export type SyncStatsData = {
7069
+ body?: never;
7070
+ path?: never;
7071
+ query?: {
7072
+ directory?: string;
7073
+ workspace?: string;
7074
+ projectID?: string;
7075
+ };
7076
+ url: "/sync/stats";
7077
+ };
7078
+ export type SyncStatsResponses = {
7079
+ /**
7080
+ * Sync stats
7081
+ */
7082
+ 200: unknown;
7083
+ };
7084
+ export type SyncConnectData = {
7085
+ body?: never;
7086
+ path?: never;
7087
+ query?: {
7088
+ directory?: string;
7089
+ workspace?: string;
7090
+ };
7091
+ url: "/sync/connect";
7092
+ };
7093
+ export type SyncConnectResponses = {
7094
+ /**
7095
+ * Connection requested
7096
+ */
7097
+ 204: void;
7098
+ };
7099
+ export type SyncConnectResponse = SyncConnectResponses[keyof SyncConnectResponses];
7100
+ export type SyncDisconnectData = {
7101
+ body?: never;
7102
+ path?: never;
7103
+ query?: {
7104
+ directory?: string;
7105
+ workspace?: string;
7106
+ };
7107
+ url: "/sync/disconnect";
7108
+ };
7109
+ export type SyncDisconnectResponses = {
7110
+ /**
7111
+ * Disconnection requested
7112
+ */
7113
+ 204: void;
7114
+ };
7115
+ export type SyncDisconnectResponse = SyncDisconnectResponses[keyof SyncDisconnectResponses];
7116
+ export type SyncDrainData = {
7117
+ body?: never;
7118
+ path?: never;
7119
+ query?: {
7120
+ directory?: string;
7121
+ workspace?: string;
7122
+ };
7123
+ url: "/sync/drain";
7124
+ };
7125
+ export type SyncDrainResponses = {
7126
+ /**
7127
+ * Drain requested
7128
+ */
7129
+ 204: void;
7130
+ };
7131
+ export type SyncDrainResponse = SyncDrainResponses[keyof SyncDrainResponses];
6917
7132
  export type PermissionReplyData = {
6918
7133
  body?: {
6919
7134
  reply: "once" | "always" | "reject";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@nikcli-ai/sdk",
4
- "version": "1.133.0",
4
+ "version": "1.135.0",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "scripts": {