@opencode-ai/sdk 1.17.10 → 1.17.11

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 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, ExperimentalCapabilitiesGetErrors, ExperimentalCapabilitiesGetResponses, ExperimentalConsoleGetErrors, ExperimentalConsoleGetResponses, ExperimentalConsoleListOrgsErrors, ExperimentalConsoleListOrgsResponses, ExperimentalConsoleSwitchOrgResponses, ExperimentalControlPlaneMoveSessionErrors, ExperimentalControlPlaneMoveSessionResponses, ExperimentalProjectCopyGenerateNameErrors, ExperimentalProjectCopyGenerateNameResponses, ExperimentalResourceListErrors, ExperimentalResourceListResponses, ExperimentalSessionBackgroundErrors, ExperimentalSessionBackgroundResponses, ExperimentalSessionListErrors, ExperimentalSessionListResponses, ExperimentalWorkspaceAdapterListErrors, ExperimentalWorkspaceAdapterListResponses, ExperimentalWorkspaceCreateErrors, ExperimentalWorkspaceCreateResponses, ExperimentalWorkspaceListErrors, ExperimentalWorkspaceListResponses, ExperimentalWorkspaceRemoveErrors, ExperimentalWorkspaceRemoveResponses, ExperimentalWorkspaceStatusErrors, ExperimentalWorkspaceStatusResponses, ExperimentalWorkspaceSyncListErrors, ExperimentalWorkspaceSyncListResponses, ExperimentalWorkspaceWarpErrors, ExperimentalWorkspaceWarpResponses, FileListErrors, FileListResponses, FilePartInput, FilePartSource, FileReadErrors, FileReadResponses, FileStatusErrors, FileStatusResponses, FindFilesErrors, FindFilesResponses, FindSymbolsErrors, FindSymbolsResponses, FindTextErrors, FindTextResponses, FormatterStatusErrors, FormatterStatusResponses, GlobalConfigGetErrors, GlobalConfigGetResponses, GlobalConfigUpdateErrors, GlobalConfigUpdateResponses, GlobalDisposeErrors, GlobalDisposeResponses, GlobalEventResponses, GlobalHealthErrors, GlobalHealthResponses, GlobalUpgradeErrors, GlobalUpgradeResponses, InstanceDisposeErrors, InstanceDisposeResponses, LocationRef, LspStatusErrors, LspStatusResponses, McpAddErrors, McpAddResponses, McpAuthAuthenticateErrors, McpAuthAuthenticateResponses, McpAuthCallbackErrors, McpAuthCallbackResponses, McpAuthRemoveErrors, McpAuthRemoveResponses, McpAuthStartErrors, McpAuthStartResponses, McpConnectErrors, McpConnectResponses, McpDisconnectErrors, McpDisconnectResponses, McpLocalConfig, McpRemoteConfig, McpStatusErrors, McpStatusResponses, MoveSessionDestination, OutputFormat, Part as Part2, PartDeleteErrors, PartDeleteResponses, PartUpdateErrors, PartUpdateResponses, PathGetErrors, PathGetResponses, PermissionListErrors, PermissionListResponses, PermissionReplyErrors, PermissionReplyResponses, PermissionRespondErrors, PermissionRespondResponses, PermissionRuleset, PermissionV2Reply, ProjectCurrentErrors, ProjectCurrentResponses, ProjectDirectoriesErrors, ProjectDirectoriesResponses, ProjectInitGitErrors, ProjectInitGitResponses, ProjectListErrors, ProjectListResponses, ProjectUpdateErrors, ProjectUpdateResponses, Prompt, ProviderAuthErrors, ProviderAuthResponses, ProviderListErrors, ProviderListResponses, ProviderOauthAuthorizeErrors, ProviderOauthAuthorizeResponses, ProviderOauthCallbackErrors, ProviderOauthCallbackResponses, PtyConnectErrors, PtyConnectResponses, PtyConnectTokenErrors, PtyConnectTokenResponses, PtyCreateErrors, PtyCreateResponses, PtyGetErrors, PtyGetResponses, PtyListErrors, PtyListResponses, PtyRemoveErrors, PtyRemoveResponses, PtyShellsErrors, PtyShellsResponses, PtyUpdateErrors, PtyUpdateResponses, QuestionAnswer, QuestionListErrors, QuestionListResponses, QuestionRejectErrors, QuestionRejectResponses, QuestionReplyErrors, QuestionReplyResponses, QuestionV2Reply, SessionAbortErrors, SessionAbortResponses, SessionChildrenErrors, SessionChildrenResponses, SessionCommandErrors, SessionCommandResponses, SessionCreateErrors, SessionCreateResponses, SessionDeleteErrors, SessionDeleteMessageErrors, SessionDeleteMessageResponses, SessionDeleteResponses, SessionDiffErrors, SessionDiffResponses, SessionForkErrors, SessionForkResponses, SessionGetErrors, SessionGetResponses, SessionInitErrors, SessionInitResponses, SessionListErrors, SessionListResponses, SessionMessageErrors, SessionMessageResponses, SessionMessagesErrors, SessionMessagesResponses, SessionPromptAsyncErrors, SessionPromptAsyncResponses, SessionPromptErrors, SessionPromptResponses, SessionRevertErrors, SessionRevertResponses, SessionShareErrors, SessionShareResponses, SessionShellErrors, SessionShellResponses, SessionStatusErrors, SessionStatusResponses, SessionSummarizeErrors, SessionSummarizeResponses, SessionTodoErrors, SessionTodoResponses, SessionUnrevertErrors, SessionUnrevertResponses, SessionUnshareErrors, SessionUnshareResponses, SessionUpdateErrors, SessionUpdateResponses, SubtaskPartInput, SyncHistoryListErrors, SyncHistoryListResponses, SyncReplayErrors, SyncReplayResponses, SyncStartErrors, SyncStartResponses, SyncStealErrors, SyncStealResponses, TextPartInput, ToolIdsErrors, ToolIdsResponses, ToolListErrors, ToolListResponses, TuiAppendPromptErrors, TuiAppendPromptResponses, TuiClearPromptErrors, TuiClearPromptResponses, TuiControlNextErrors, TuiControlNextResponses, TuiControlResponseErrors, TuiControlResponseResponses, TuiExecuteCommandErrors, TuiExecuteCommandResponses, TuiOpenHelpErrors, TuiOpenHelpResponses, TuiOpenModelsErrors, TuiOpenModelsResponses, TuiOpenSessionsErrors, TuiOpenSessionsResponses, TuiOpenThemesErrors, TuiOpenThemesResponses, TuiPublishErrors, TuiPublishResponses, TuiSelectSessionErrors, TuiSelectSessionResponses, TuiShowToastErrors, TuiShowToastResponses, TuiSubmitPromptErrors, TuiSubmitPromptResponses, V2AgentListErrors, V2AgentListResponses, V2CommandListErrors, V2CommandListResponses, V2CredentialRemoveErrors, V2CredentialRemoveResponses, V2CredentialUpdateErrors, V2CredentialUpdateResponses, V2EventSubscribeResponses, V2FsFindErrors, V2FsFindResponses, V2FsListErrors, V2FsListResponses, V2FsReadErrors, V2FsReadResponses, V2HealthGetErrors, V2HealthGetResponses, V2IntegrationAttemptCancelErrors, V2IntegrationAttemptCancelResponses, V2IntegrationAttemptCompleteErrors, V2IntegrationAttemptCompleteResponses, V2IntegrationAttemptStatusErrors, V2IntegrationAttemptStatusResponses, V2IntegrationConnectKeyErrors, V2IntegrationConnectKeyResponses, V2IntegrationConnectOauthErrors, V2IntegrationConnectOauthResponses, V2IntegrationGetErrors, V2IntegrationGetResponses, V2IntegrationListErrors, V2IntegrationListResponses, V2LocationGetErrors, V2LocationGetResponses, V2ModelListErrors, V2ModelListResponses, V2PermissionRequestListErrors, V2PermissionRequestListResponses, V2PermissionSavedListErrors, V2PermissionSavedListResponses, V2PermissionSavedRemoveErrors, V2PermissionSavedRemoveResponses, V2ProjectCopyCreateErrors, V2ProjectCopyCreateResponses, V2ProjectCopyRefreshErrors, V2ProjectCopyRefreshResponses, V2ProjectCopyRemoveErrors, V2ProjectCopyRemoveResponses, V2ProviderGetErrors, V2ProviderGetResponses, V2ProviderListErrors, V2ProviderListResponses, V2PtyConnectErrors, V2PtyConnectResponses, V2PtyConnectTokenErrors, V2PtyConnectTokenResponses, V2PtyCreateErrors, V2PtyCreateResponses, V2PtyGetErrors, V2PtyGetResponses, V2PtyListErrors, V2PtyListResponses, V2PtyRemoveErrors, V2PtyRemoveResponses, V2PtyUpdateErrors, V2PtyUpdateResponses, V2QuestionRequestListErrors, V2QuestionRequestListResponses, V2ReferenceListErrors, V2ReferenceListResponses, V2SessionCompactErrors, V2SessionCompactResponses, V2SessionContextErrors, V2SessionContextResponses, V2SessionCreateErrors, V2SessionCreateResponses, V2SessionGetErrors, V2SessionGetResponses, V2SessionListErrors, V2SessionListResponses, V2SessionMessagesErrors, V2SessionMessagesResponses, V2SessionPermissionListErrors, V2SessionPermissionListResponses, V2SessionPermissionReplyErrors, V2SessionPermissionReplyResponses, V2SessionPromptErrors, V2SessionPromptResponses, V2SessionQuestionListErrors, V2SessionQuestionListResponses, V2SessionQuestionRejectErrors, V2SessionQuestionRejectResponses, V2SessionQuestionReplyErrors, V2SessionQuestionReplyResponses, V2SessionSwitchAgentErrors, V2SessionSwitchAgentResponses, V2SessionSwitchModelErrors, V2SessionSwitchModelResponses, V2SessionWaitErrors, V2SessionWaitResponses, V2SkillListErrors, V2SkillListResponses, VcsApplyErrors, VcsApplyResponses, VcsDiffErrors, VcsDiffRawErrors, VcsDiffRawResponses, VcsDiffResponses, VcsGetErrors, VcsGetResponses, VcsStatusErrors, VcsStatusResponses, WorktreeCreateErrors, WorktreeCreateInput, WorktreeCreateResponses, WorktreeListErrors, WorktreeListResponses, WorktreeRemoveErrors, WorktreeRemoveInput, WorktreeRemoveResponses, WorktreeResetErrors, WorktreeResetInput, WorktreeResetResponses } from "./types.gen.js";
2
+ import type { AgentPartInput, AppAgentsErrors, AppAgentsResponses, AppLogErrors, AppLogResponses, AppSkillsErrors, AppSkillsResponses, Auth as Auth3, AuthRemoveErrors, AuthRemoveResponses, AuthSetErrors, AuthSetResponses, CommandListErrors, CommandListResponses, Config as Config3, ConfigGetErrors, ConfigGetResponses, ConfigProvidersErrors, ConfigProvidersResponses, ConfigUpdateErrors, ConfigUpdateResponses, EventSubscribeResponses, EventTuiCommandExecute, EventTuiPromptAppend, EventTuiSessionSelect, EventTuiToastShow, ExperimentalCapabilitiesGetErrors, ExperimentalCapabilitiesGetResponses, ExperimentalConsoleGetErrors, ExperimentalConsoleGetResponses, ExperimentalConsoleListOrgsErrors, ExperimentalConsoleListOrgsResponses, ExperimentalConsoleSwitchOrgResponses, ExperimentalControlPlaneMoveSessionErrors, ExperimentalControlPlaneMoveSessionResponses, ExperimentalProjectCopyGenerateNameErrors, ExperimentalProjectCopyGenerateNameResponses, ExperimentalResourceListErrors, ExperimentalResourceListResponses, ExperimentalSessionBackgroundErrors, ExperimentalSessionBackgroundResponses, ExperimentalSessionListErrors, ExperimentalSessionListResponses, ExperimentalWorkspaceAdapterListErrors, ExperimentalWorkspaceAdapterListResponses, ExperimentalWorkspaceCreateErrors, ExperimentalWorkspaceCreateResponses, ExperimentalWorkspaceListErrors, ExperimentalWorkspaceListResponses, ExperimentalWorkspaceRemoveErrors, ExperimentalWorkspaceRemoveResponses, ExperimentalWorkspaceStatusErrors, ExperimentalWorkspaceStatusResponses, ExperimentalWorkspaceSyncListErrors, ExperimentalWorkspaceSyncListResponses, ExperimentalWorkspaceWarpErrors, ExperimentalWorkspaceWarpResponses, FileListErrors, FileListResponses, FilePartInput, FilePartSource, FileReadErrors, FileReadResponses, FileStatusErrors, FileStatusResponses, FindFilesErrors, FindFilesResponses, FindSymbolsErrors, FindSymbolsResponses, FindTextErrors, FindTextResponses, FormatterStatusErrors, FormatterStatusResponses, GlobalConfigGetErrors, GlobalConfigGetResponses, GlobalConfigUpdateErrors, GlobalConfigUpdateResponses, GlobalDisposeErrors, GlobalDisposeResponses, GlobalEventResponses, GlobalHealthErrors, GlobalHealthResponses, GlobalUpgradeErrors, GlobalUpgradeResponses, InstanceDisposeErrors, InstanceDisposeResponses, LocationRef, LspStatusErrors, LspStatusResponses, McpAddErrors, McpAddResponses, McpAuthAuthenticateErrors, McpAuthAuthenticateResponses, McpAuthCallbackErrors, McpAuthCallbackResponses, McpAuthRemoveErrors, McpAuthRemoveResponses, McpAuthStartErrors, McpAuthStartResponses, McpConnectErrors, McpConnectResponses, McpDisconnectErrors, McpDisconnectResponses, McpLocalConfig, McpRemoteConfig, McpStatusErrors, McpStatusResponses, MoveSessionDestination, OutputFormat, Part as Part2, PartDeleteErrors, PartDeleteResponses, PartUpdateErrors, PartUpdateResponses, PathGetErrors, PathGetResponses, PermissionListErrors, PermissionListResponses, PermissionReplyErrors, PermissionReplyResponses, PermissionRespondErrors, PermissionRespondResponses, PermissionRuleset, PermissionV2Reply, ProjectCurrentErrors, ProjectCurrentResponses, ProjectDirectoriesErrors, ProjectDirectoriesResponses, ProjectInitGitErrors, ProjectInitGitResponses, ProjectListErrors, ProjectListResponses, ProjectUpdateErrors, ProjectUpdateResponses, Prompt, ProviderAuthErrors, ProviderAuthResponses, ProviderListErrors, ProviderListResponses, ProviderOauthAuthorizeErrors, ProviderOauthAuthorizeResponses, ProviderOauthCallbackErrors, ProviderOauthCallbackResponses, PtyConnectErrors, PtyConnectResponses, PtyConnectTokenErrors, PtyConnectTokenResponses, PtyCreateErrors, PtyCreateResponses, PtyGetErrors, PtyGetResponses, PtyListErrors, PtyListResponses, PtyRemoveErrors, PtyRemoveResponses, PtyShellsErrors, PtyShellsResponses, PtyUpdateErrors, PtyUpdateResponses, QuestionAnswer, QuestionListErrors, QuestionListResponses, QuestionRejectErrors, QuestionRejectResponses, QuestionReplyErrors, QuestionReplyResponses, QuestionV2Reply, SessionAbortErrors, SessionAbortResponses, SessionChildrenErrors, SessionChildrenResponses, SessionCommandErrors, SessionCommandResponses, SessionCreateErrors, SessionCreateResponses, SessionDeleteErrors, SessionDeleteMessageErrors, SessionDeleteMessageResponses, SessionDeleteResponses, SessionDiffErrors, SessionDiffResponses, SessionForkErrors, SessionForkResponses, SessionGetErrors, SessionGetResponses, SessionInitErrors, SessionInitResponses, SessionListErrors, SessionListResponses, SessionMessageErrors, SessionMessageResponses, SessionMessagesErrors, SessionMessagesResponses, SessionPromptAsyncErrors, SessionPromptAsyncResponses, SessionPromptErrors, SessionPromptResponses, SessionRevertErrors, SessionRevertResponses, SessionShareErrors, SessionShareResponses, SessionShellErrors, SessionShellResponses, SessionStatusErrors, SessionStatusResponses, SessionSummarizeErrors, SessionSummarizeResponses, SessionTodoErrors, SessionTodoResponses, SessionUnrevertErrors, SessionUnrevertResponses, SessionUnshareErrors, SessionUnshareResponses, SessionUpdateErrors, SessionUpdateResponses, SubtaskPartInput, SyncHistoryListErrors, SyncHistoryListResponses, SyncReplayErrors, SyncReplayResponses, SyncStartErrors, SyncStartResponses, SyncStealErrors, SyncStealResponses, TextPartInput, ToolIdsErrors, ToolIdsResponses, ToolListErrors, ToolListResponses, TuiAppendPromptErrors, TuiAppendPromptResponses, TuiClearPromptErrors, TuiClearPromptResponses, TuiControlNextErrors, TuiControlNextResponses, TuiControlResponseErrors, TuiControlResponseResponses, TuiExecuteCommandErrors, TuiExecuteCommandResponses, TuiOpenHelpErrors, TuiOpenHelpResponses, TuiOpenModelsErrors, TuiOpenModelsResponses, TuiOpenSessionsErrors, TuiOpenSessionsResponses, TuiOpenThemesErrors, TuiOpenThemesResponses, TuiPublishErrors, TuiPublishResponses, TuiSelectSessionErrors, TuiSelectSessionResponses, TuiShowToastErrors, TuiShowToastResponses, TuiSubmitPromptErrors, TuiSubmitPromptResponses, V2AgentListErrors, V2AgentListResponses, V2CommandListErrors, V2CommandListResponses, V2CredentialRemoveErrors, V2CredentialRemoveResponses, V2CredentialUpdateErrors, V2CredentialUpdateResponses, V2EventSubscribeResponses, V2FsFindErrors, V2FsFindResponses, V2FsListErrors, V2FsListResponses, V2FsReadErrors, V2FsReadResponses, V2HealthGetErrors, V2HealthGetResponses, V2IntegrationAttemptCancelErrors, V2IntegrationAttemptCancelResponses, V2IntegrationAttemptCompleteErrors, V2IntegrationAttemptCompleteResponses, V2IntegrationAttemptStatusErrors, V2IntegrationAttemptStatusResponses, V2IntegrationConnectKeyErrors, V2IntegrationConnectKeyResponses, V2IntegrationConnectOauthErrors, V2IntegrationConnectOauthResponses, V2IntegrationGetErrors, V2IntegrationGetResponses, V2IntegrationListErrors, V2IntegrationListResponses, V2LocationGetErrors, V2LocationGetResponses, V2ModelListErrors, V2ModelListResponses, V2PermissionRequestListErrors, V2PermissionRequestListResponses, V2PermissionSavedListErrors, V2PermissionSavedListResponses, V2PermissionSavedRemoveErrors, V2PermissionSavedRemoveResponses, V2ProjectCopyCreateErrors, V2ProjectCopyCreateResponses, V2ProjectCopyRefreshErrors, V2ProjectCopyRefreshResponses, V2ProjectCopyRemoveErrors, V2ProjectCopyRemoveResponses, V2ProviderGetErrors, V2ProviderGetResponses, V2ProviderListErrors, V2ProviderListResponses, V2PtyConnectErrors, V2PtyConnectResponses, V2PtyConnectTokenErrors, V2PtyConnectTokenResponses, V2PtyCreateErrors, V2PtyCreateResponses, V2PtyGetErrors, V2PtyGetResponses, V2PtyListErrors, V2PtyListResponses, V2PtyRemoveErrors, V2PtyRemoveResponses, V2PtyUpdateErrors, V2PtyUpdateResponses, V2QuestionRequestListErrors, V2QuestionRequestListResponses, V2ReferenceListErrors, V2ReferenceListResponses, V2SessionCompactErrors, V2SessionCompactResponses, V2SessionContextErrors, V2SessionContextResponses, V2SessionCreateErrors, V2SessionCreateResponses, V2SessionGetErrors, V2SessionGetResponses, V2SessionListErrors, V2SessionListResponses, V2SessionMessagesErrors, V2SessionMessagesResponses, V2SessionPermissionListErrors, V2SessionPermissionListResponses, V2SessionPermissionReplyErrors, V2SessionPermissionReplyResponses, V2SessionPromptErrors, V2SessionPromptResponses, V2SessionQuestionListErrors, V2SessionQuestionListResponses, V2SessionQuestionRejectErrors, V2SessionQuestionRejectResponses, V2SessionQuestionReplyErrors, V2SessionQuestionReplyResponses, V2SessionRevertClearErrors, V2SessionRevertClearResponses, V2SessionRevertCommitErrors, V2SessionRevertCommitResponses, V2SessionRevertStageErrors, V2SessionRevertStageResponses, V2SessionSwitchAgentErrors, V2SessionSwitchAgentResponses, V2SessionSwitchModelErrors, V2SessionSwitchModelResponses, 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
@@ -1532,6 +1532,30 @@ export declare class Agent extends HeyApiClient {
1532
1532
  };
1533
1533
  }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<V2AgentListResponses, V2AgentListErrors, ThrowOnError, "fields">;
1534
1534
  }
1535
+ export declare class Revert extends HeyApiClient {
1536
+ /**
1537
+ * Stage session revert
1538
+ *
1539
+ * Stage or move a reversible session boundary and optionally apply its file changes.
1540
+ */
1541
+ stage<ThrowOnError extends boolean = false>(parameters: {
1542
+ sessionID: string;
1543
+ messageID?: string;
1544
+ files?: boolean;
1545
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<V2SessionRevertStageResponses, V2SessionRevertStageErrors, ThrowOnError, "fields">;
1546
+ /**
1547
+ * Clear staged revert
1548
+ */
1549
+ clear<ThrowOnError extends boolean = false>(parameters: {
1550
+ sessionID: string;
1551
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<V2SessionRevertClearResponses, V2SessionRevertClearErrors, ThrowOnError, "fields">;
1552
+ /**
1553
+ * Commit staged revert
1554
+ */
1555
+ commit<ThrowOnError extends boolean = false>(parameters: {
1556
+ sessionID: string;
1557
+ }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<V2SessionRevertCommitResponses, V2SessionRevertCommitErrors, ThrowOnError, "fields">;
1558
+ }
1535
1559
  export declare class Permission2 extends HeyApiClient {
1536
1560
  /**
1537
1561
  * List session permission requests
@@ -1690,6 +1714,8 @@ export declare class Session3 extends HeyApiClient {
1690
1714
  order?: "asc" | "desc";
1691
1715
  cursor?: string;
1692
1716
  }, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<V2SessionMessagesResponses, V2SessionMessagesErrors, ThrowOnError, "fields">;
1717
+ private _revert?;
1718
+ get revert(): Revert;
1693
1719
  private _permission?;
1694
1720
  get permission(): Permission2;
1695
1721
  private _question?;
@@ -3090,6 +3090,56 @@ export class Agent extends HeyApiClient {
3090
3090
  });
3091
3091
  }
3092
3092
  }
3093
+ export class Revert extends HeyApiClient {
3094
+ /**
3095
+ * Stage session revert
3096
+ *
3097
+ * Stage or move a reversible session boundary and optionally apply its file changes.
3098
+ */
3099
+ stage(parameters, options) {
3100
+ const params = buildClientParams([parameters], [
3101
+ {
3102
+ args: [
3103
+ { in: "path", key: "sessionID" },
3104
+ { in: "body", key: "messageID" },
3105
+ { in: "body", key: "files" },
3106
+ ],
3107
+ },
3108
+ ]);
3109
+ return (options?.client ?? this.client).post({
3110
+ url: "/api/session/{sessionID}/revert/stage",
3111
+ ...options,
3112
+ ...params,
3113
+ headers: {
3114
+ "Content-Type": "application/json",
3115
+ ...options?.headers,
3116
+ ...params.headers,
3117
+ },
3118
+ });
3119
+ }
3120
+ /**
3121
+ * Clear staged revert
3122
+ */
3123
+ clear(parameters, options) {
3124
+ const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "sessionID" }] }]);
3125
+ return (options?.client ?? this.client).post({
3126
+ url: "/api/session/{sessionID}/revert/clear",
3127
+ ...options,
3128
+ ...params,
3129
+ });
3130
+ }
3131
+ /**
3132
+ * Commit staged revert
3133
+ */
3134
+ commit(parameters, options) {
3135
+ const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "sessionID" }] }]);
3136
+ return (options?.client ?? this.client).post({
3137
+ url: "/api/session/{sessionID}/revert/commit",
3138
+ ...options,
3139
+ ...params,
3140
+ });
3141
+ }
3142
+ }
3093
3143
  export class Permission2 extends HeyApiClient {
3094
3144
  /**
3095
3145
  * List session permission requests
@@ -3399,6 +3449,10 @@ export class Session3 extends HeyApiClient {
3399
3449
  ...params,
3400
3450
  });
3401
3451
  }
3452
+ _revert;
3453
+ get revert() {
3454
+ return (this._revert ??= new Revert({ client: this.client }));
3455
+ }
3402
3456
  _permission;
3403
3457
  get permission() {
3404
3458
  return (this._permission ??= new Permission2({ 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 | EventIntegrationUpdated | EventIntegrationConnectionUpdated | EventCatalogUpdated | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventSessionNextAgentSwitched | EventSessionNextModelSwitched | EventSessionNextMoved | EventSessionNextPrompted | EventSessionNextPromptAdmitted | 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 | EventReferenceUpdated | EventPermissionV2Asked | EventPermissionV2Replied | EventPluginAdded | EventProjectDirectoriesUpdated | EventFileWatcherUpdated | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventQuestionV2Asked | EventQuestionV2Replied | EventQuestionV2Rejected | EventTodoUpdated | EventLspUpdated | EventPermissionAsked | EventPermissionReplied | EventTuiPromptAppend2 | EventTuiCommandExecute2 | EventTuiToastShow2 | EventTuiSessionSelect2 | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventCommandExecuted | EventProjectUpdated | EventSessionStatus | EventSessionIdle | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventSessionCompacted | EventVcsBranchUpdated | EventWorkspaceReady | EventWorkspaceFailed | EventWorkspaceStatus | EventWorktreeReady | EventWorktreeFailed | EventServerConnected | EventGlobalDisposed | EventServerInstanceDisposed;
4
+ export type Event = EventModelsDevRefreshed | EventIntegrationUpdated | EventIntegrationConnectionUpdated | EventCatalogUpdated | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventSessionNextAgentSwitched | EventSessionNextModelSwitched | EventSessionNextMoved | EventSessionNextPrompted | EventSessionNextPromptAdmitted | EventSessionNextContextUpdated | EventSessionNextSynthetic | EventSessionNextShellStarted | EventSessionNextShellEnded | EventSessionNextStepStarted | EventSessionNextStepEnded | EventSessionNextStepFailed | EventSessionNextTextStarted | EventSessionNextTextDelta | EventSessionNextTextEnded | EventSessionNextReasoningStarted | EventSessionNextReasoningDelta | EventSessionNextReasoningEnded | EventSessionNextToolInputStarted | EventSessionNextToolInputDelta | EventSessionNextToolInputEnded | EventSessionNextToolCalled | EventSessionNextToolProgress | EventSessionNextToolSuccess | EventSessionNextToolFailed | EventSessionNextRetried | EventSessionNextCompactionStarted | EventSessionNextCompactionDelta | EventSessionNextCompactionEnded | EventSessionNextRevertStaged | EventSessionNextRevertCleared | EventSessionNextRevertCommitted | EventMessagePartDelta | EventSessionDiff | EventSessionError | EventInstallationUpdated | EventInstallationUpdateAvailable | EventFileEdited | EventReferenceUpdated | EventPermissionV2Asked | EventPermissionV2Replied | EventPluginAdded | EventProjectDirectoriesUpdated | EventFileWatcherUpdated | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventQuestionV2Asked | EventQuestionV2Replied | EventQuestionV2Rejected | EventTodoUpdated | EventLspUpdated | EventPermissionAsked | EventPermissionReplied | EventTuiPromptAppend2 | EventTuiCommandExecute2 | EventTuiToastShow2 | EventTuiSessionSelect2 | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventCommandExecuted | EventProjectUpdated | EventSessionStatus | EventSessionIdle | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventSessionCompacted | EventVcsBranchUpdated | EventWorkspaceReady | EventWorkspaceFailed | EventWorkspaceStatus | EventWorktreeReady | EventWorktreeFailed | EventServerConnected | EventGlobalDisposed | EventServerInstanceDisposed;
5
5
  export type QuestionReplied = {
6
6
  sessionID: string;
7
7
  requestID: string;
@@ -751,6 +751,7 @@ export type GlobalEvent = {
751
751
  };
752
752
  };
753
753
  snapshot?: string;
754
+ files?: Array<string>;
754
755
  };
755
756
  } | {
756
757
  id: string;
@@ -973,6 +974,35 @@ export type GlobalEvent = {
973
974
  text: string;
974
975
  recent: string;
975
976
  };
977
+ } | {
978
+ id: string;
979
+ type: "session.next.revert.staged";
980
+ properties: {
981
+ timestamp: number;
982
+ sessionID: string;
983
+ revert: {
984
+ messageID: string;
985
+ partID?: string;
986
+ snapshot?: string;
987
+ diff?: string;
988
+ files?: Array<FileDiff>;
989
+ };
990
+ };
991
+ } | {
992
+ id: string;
993
+ type: "session.next.revert.cleared";
994
+ properties: {
995
+ timestamp: number;
996
+ sessionID: string;
997
+ };
998
+ } | {
999
+ id: string;
1000
+ type: "session.next.revert.committed";
1001
+ properties: {
1002
+ timestamp: number;
1003
+ sessionID: string;
1004
+ messageID: string;
1005
+ };
976
1006
  } | {
977
1007
  id: string;
978
1008
  type: "message.part.delta";
@@ -1326,7 +1356,7 @@ export type GlobalEvent = {
1326
1356
  properties: {
1327
1357
  [key: string]: unknown;
1328
1358
  };
1329
- } | EventServerInstanceDisposed | SyncEventSessionCreated | SyncEventSessionUpdated | SyncEventSessionDeleted | SyncEventMessageUpdated | SyncEventMessageRemoved | SyncEventMessagePartUpdated | SyncEventMessagePartRemoved | SyncEventSessionNextAgentSwitched | SyncEventSessionNextModelSwitched | SyncEventSessionNextMoved | SyncEventSessionNextPrompted | SyncEventSessionNextPromptAdmitted | SyncEventSessionNextContextUpdated | SyncEventSessionNextSynthetic | SyncEventSessionNextShellStarted | SyncEventSessionNextShellEnded | SyncEventSessionNextStepStarted | SyncEventSessionNextStepEnded | SyncEventSessionNextStepFailed | SyncEventSessionNextTextStarted | SyncEventSessionNextTextEnded | SyncEventSessionNextReasoningStarted | SyncEventSessionNextReasoningEnded | SyncEventSessionNextToolInputStarted | SyncEventSessionNextToolInputEnded | SyncEventSessionNextToolCalled | SyncEventSessionNextToolProgress | SyncEventSessionNextToolSuccess | SyncEventSessionNextToolFailed | SyncEventSessionNextRetried | SyncEventSessionNextCompactionStarted | SyncEventSessionNextCompactionEnded;
1359
+ } | EventServerInstanceDisposed | SyncEventSessionCreated | SyncEventSessionUpdated | SyncEventSessionDeleted | SyncEventMessageUpdated | SyncEventMessageRemoved | SyncEventMessagePartUpdated | SyncEventMessagePartRemoved | SyncEventSessionNextAgentSwitched | SyncEventSessionNextModelSwitched | SyncEventSessionNextMoved | SyncEventSessionNextPrompted | SyncEventSessionNextPromptAdmitted | SyncEventSessionNextContextUpdated | SyncEventSessionNextSynthetic | SyncEventSessionNextShellStarted | SyncEventSessionNextShellEnded | SyncEventSessionNextStepStarted | SyncEventSessionNextStepEnded | SyncEventSessionNextStepFailed | SyncEventSessionNextTextStarted | SyncEventSessionNextTextEnded | SyncEventSessionNextReasoningStarted | SyncEventSessionNextReasoningEnded | SyncEventSessionNextToolInputStarted | SyncEventSessionNextToolInputEnded | SyncEventSessionNextToolCalled | SyncEventSessionNextToolProgress | SyncEventSessionNextToolSuccess | SyncEventSessionNextToolFailed | SyncEventSessionNextRetried | SyncEventSessionNextCompactionStarted | SyncEventSessionNextCompactionEnded | SyncEventSessionNextRevertStaged | SyncEventSessionNextRevertCleared | SyncEventSessionNextRevertCommitted;
1330
1360
  };
1331
1361
  /**
1332
1362
  * Log level
@@ -2254,6 +2284,12 @@ export type ServiceUnavailableError = {
2254
2284
  message: string;
2255
2285
  service?: string;
2256
2286
  };
2287
+ export type MessageNotFoundError = {
2288
+ _tag: "MessageNotFoundError";
2289
+ sessionID: string;
2290
+ messageID: string;
2291
+ message: string;
2292
+ };
2257
2293
  export type UnknownError1 = {
2258
2294
  _tag: "UnknownError";
2259
2295
  message: string;
@@ -2271,7 +2307,7 @@ export type ProviderNotFoundError = {
2271
2307
  providerID: string;
2272
2308
  message: string;
2273
2309
  };
2274
- export type V2Event = V2EventModelsDevRefreshed | V2EventIntegrationUpdated | V2EventIntegrationConnectionUpdated | V2EventCatalogUpdated | V2EventSessionCreated | V2EventSessionUpdated | V2EventSessionDeleted | V2EventMessageUpdated | V2EventMessageRemoved | V2EventMessagePartUpdated | V2EventMessagePartRemoved | V2EventSessionNextAgentSwitched | V2EventSessionNextModelSwitched | V2EventSessionNextMoved | V2EventSessionNextPrompted | V2EventSessionNextPromptAdmitted | V2EventSessionNextContextUpdated | V2EventSessionNextSynthetic | V2EventSessionNextShellStarted | V2EventSessionNextShellEnded | V2EventSessionNextStepStarted | V2EventSessionNextStepEnded | V2EventSessionNextStepFailed | V2EventSessionNextTextStarted | V2EventSessionNextTextDelta | V2EventSessionNextTextEnded | V2EventSessionNextReasoningStarted | V2EventSessionNextReasoningDelta | V2EventSessionNextReasoningEnded | V2EventSessionNextToolInputStarted | V2EventSessionNextToolInputDelta | V2EventSessionNextToolInputEnded | V2EventSessionNextToolCalled | V2EventSessionNextToolProgress | V2EventSessionNextToolSuccess | V2EventSessionNextToolFailed | V2EventSessionNextRetried | V2EventSessionNextCompactionStarted | V2EventSessionNextCompactionDelta | V2EventSessionNextCompactionEnded | V2EventMessagePartDelta | V2EventSessionDiff | V2EventSessionError | V2EventInstallationUpdated | V2EventInstallationUpdateAvailable | V2EventFileEdited | V2EventReferenceUpdated | V2EventPermissionV2Asked | V2EventPermissionV2Replied | V2EventPluginAdded | V2EventProjectDirectoriesUpdated | V2EventFileWatcherUpdated | V2EventPtyCreated | V2EventPtyUpdated | V2EventPtyExited | V2EventPtyDeleted | V2EventQuestionV2Asked | V2EventQuestionV2Replied | V2EventQuestionV2Rejected | V2EventTodoUpdated | V2EventLspUpdated | V2EventPermissionAsked | V2EventPermissionReplied | V2EventTuiPromptAppend | V2EventTuiCommandExecute | V2EventTuiToastShow | V2EventTuiSessionSelect | V2EventMcpToolsChanged | V2EventMcpBrowserOpenFailed | V2EventCommandExecuted | V2EventProjectUpdated | V2EventSessionStatus | V2EventSessionIdle | V2EventQuestionAsked | V2EventQuestionReplied | V2EventQuestionRejected | V2EventSessionCompacted | V2EventVcsBranchUpdated | V2EventWorkspaceReady | V2EventWorkspaceFailed | V2EventWorkspaceStatus | V2EventWorktreeReady | V2EventWorktreeFailed | V2EventServerConnected | V2EventGlobalDisposed;
2310
+ export type V2Event = V2EventModelsDevRefreshed | V2EventIntegrationUpdated | V2EventIntegrationConnectionUpdated | V2EventCatalogUpdated | V2EventSessionCreated | V2EventSessionUpdated | V2EventSessionDeleted | V2EventMessageUpdated | V2EventMessageRemoved | V2EventMessagePartUpdated | V2EventMessagePartRemoved | V2EventSessionNextAgentSwitched | V2EventSessionNextModelSwitched | V2EventSessionNextMoved | V2EventSessionNextPrompted | V2EventSessionNextPromptAdmitted | V2EventSessionNextContextUpdated | V2EventSessionNextSynthetic | V2EventSessionNextShellStarted | V2EventSessionNextShellEnded | V2EventSessionNextStepStarted | V2EventSessionNextStepEnded | V2EventSessionNextStepFailed | V2EventSessionNextTextStarted | V2EventSessionNextTextDelta | V2EventSessionNextTextEnded | V2EventSessionNextReasoningStarted | V2EventSessionNextReasoningDelta | V2EventSessionNextReasoningEnded | V2EventSessionNextToolInputStarted | V2EventSessionNextToolInputDelta | V2EventSessionNextToolInputEnded | V2EventSessionNextToolCalled | V2EventSessionNextToolProgress | V2EventSessionNextToolSuccess | V2EventSessionNextToolFailed | V2EventSessionNextRetried | V2EventSessionNextCompactionStarted | V2EventSessionNextCompactionDelta | V2EventSessionNextCompactionEnded | V2EventSessionNextRevertStaged | V2EventSessionNextRevertCleared | V2EventSessionNextRevertCommitted | V2EventMessagePartDelta | V2EventSessionDiff | V2EventSessionError | V2EventInstallationUpdated | V2EventInstallationUpdateAvailable | V2EventFileEdited | V2EventReferenceUpdated | V2EventPermissionV2Asked | V2EventPermissionV2Replied | V2EventPluginAdded | V2EventProjectDirectoriesUpdated | V2EventFileWatcherUpdated | V2EventPtyCreated | V2EventPtyUpdated | V2EventPtyExited | V2EventPtyDeleted | V2EventQuestionV2Asked | V2EventQuestionV2Replied | V2EventQuestionV2Rejected | V2EventTodoUpdated | V2EventLspUpdated | V2EventPermissionAsked | V2EventPermissionReplied | V2EventTuiPromptAppend | V2EventTuiCommandExecute | V2EventTuiToastShow | V2EventTuiSessionSelect | V2EventMcpToolsChanged | V2EventMcpBrowserOpenFailed | V2EventCommandExecuted | V2EventProjectUpdated | V2EventSessionStatus | V2EventSessionIdle | V2EventQuestionAsked | V2EventQuestionReplied | V2EventQuestionRejected | V2EventSessionCompacted | V2EventVcsBranchUpdated | V2EventWorkspaceReady | V2EventWorkspaceFailed | V2EventWorkspaceStatus | V2EventWorktreeReady | V2EventWorktreeFailed | V2EventServerConnected | V2EventGlobalDisposed;
2275
2311
  export type ForbiddenError = {
2276
2312
  _tag: "ForbiddenError";
2277
2313
  message: string;
@@ -2379,6 +2415,13 @@ export type SessionNextRetryError = {
2379
2415
  [key: string]: string;
2380
2416
  };
2381
2417
  };
2418
+ export type FileDiff = {
2419
+ path: string;
2420
+ status: "added" | "modified" | "deleted";
2421
+ additions: number;
2422
+ deletions: number;
2423
+ patch: string;
2424
+ };
2382
2425
  export type PermissionV2Source = {
2383
2426
  type: "tool";
2384
2427
  messageID: string;
@@ -2720,6 +2763,7 @@ export type SyncEventSessionNextStepEnded = {
2720
2763
  };
2721
2764
  };
2722
2765
  snapshot?: string;
2766
+ files?: Array<string>;
2723
2767
  };
2724
2768
  };
2725
2769
  };
@@ -3003,6 +3047,56 @@ export type SyncEventSessionNextCompactionEnded = {
3003
3047
  };
3004
3048
  };
3005
3049
  };
3050
+ export type SyncEventSessionNextRevertStaged = {
3051
+ type: "sync";
3052
+ id: string;
3053
+ syncEvent: {
3054
+ type: "session.next.revert.staged.1";
3055
+ id: string;
3056
+ seq: number;
3057
+ aggregateID: string;
3058
+ data: {
3059
+ timestamp: number;
3060
+ sessionID: string;
3061
+ revert: {
3062
+ messageID: string;
3063
+ partID?: string;
3064
+ snapshot?: string;
3065
+ diff?: string;
3066
+ files?: Array<FileDiff>;
3067
+ };
3068
+ };
3069
+ };
3070
+ };
3071
+ export type SyncEventSessionNextRevertCleared = {
3072
+ type: "sync";
3073
+ id: string;
3074
+ syncEvent: {
3075
+ type: "session.next.revert.cleared.1";
3076
+ id: string;
3077
+ seq: number;
3078
+ aggregateID: string;
3079
+ data: {
3080
+ timestamp: number;
3081
+ sessionID: string;
3082
+ };
3083
+ };
3084
+ };
3085
+ export type SyncEventSessionNextRevertCommitted = {
3086
+ type: "sync";
3087
+ id: string;
3088
+ syncEvent: {
3089
+ type: "session.next.revert.committed.1";
3090
+ id: string;
3091
+ seq: number;
3092
+ aggregateID: string;
3093
+ data: {
3094
+ timestamp: number;
3095
+ sessionID: string;
3096
+ messageID: string;
3097
+ };
3098
+ };
3099
+ };
3006
3100
  export type ConfigV2ReferenceGit = {
3007
3101
  repository: string;
3008
3102
  branch?: string;
@@ -3090,6 +3184,13 @@ export type SessionV2Info = {
3090
3184
  title: string;
3091
3185
  location: LocationRef;
3092
3186
  subpath?: string;
3187
+ revert?: {
3188
+ messageID: string;
3189
+ partID?: string;
3190
+ snapshot?: string;
3191
+ diff?: string;
3192
+ files?: Array<FileDiff>;
3193
+ };
3093
3194
  };
3094
3195
  export type SessionInputAdmitted = {
3095
3196
  admittedSeq: number;
@@ -3275,6 +3376,7 @@ export type SessionMessageAssistant = {
3275
3376
  snapshot?: {
3276
3377
  start?: string;
3277
3378
  end?: string;
3379
+ files?: Array<string>;
3278
3380
  };
3279
3381
  finish?: string;
3280
3382
  cost?: number;
@@ -3917,6 +4019,7 @@ export type V2EventSessionNextStepEnded = {
3917
4019
  };
3918
4020
  };
3919
4021
  snapshot?: string;
4022
+ files?: Array<string>;
3920
4023
  };
3921
4024
  };
3922
4025
  export type V2EventSessionNextStepFailed = {
@@ -4320,6 +4423,65 @@ export type V2EventSessionNextCompactionEnded = {
4320
4423
  recent: string;
4321
4424
  };
4322
4425
  };
4426
+ export type V2EventSessionNextRevertStaged = {
4427
+ id: string;
4428
+ metadata?: {
4429
+ [key: string]: unknown;
4430
+ };
4431
+ durable?: {
4432
+ aggregateID: string;
4433
+ seq: number;
4434
+ version: number;
4435
+ };
4436
+ location?: LocationRef;
4437
+ type: "session.next.revert.staged";
4438
+ data: {
4439
+ timestamp: number;
4440
+ sessionID: string;
4441
+ revert: {
4442
+ messageID: string;
4443
+ partID?: string;
4444
+ snapshot?: string;
4445
+ diff?: string;
4446
+ files?: Array<FileDiff>;
4447
+ };
4448
+ };
4449
+ };
4450
+ export type V2EventSessionNextRevertCleared = {
4451
+ id: string;
4452
+ metadata?: {
4453
+ [key: string]: unknown;
4454
+ };
4455
+ durable?: {
4456
+ aggregateID: string;
4457
+ seq: number;
4458
+ version: number;
4459
+ };
4460
+ location?: LocationRef;
4461
+ type: "session.next.revert.cleared";
4462
+ data: {
4463
+ timestamp: number;
4464
+ sessionID: string;
4465
+ };
4466
+ };
4467
+ export type V2EventSessionNextRevertCommitted = {
4468
+ id: string;
4469
+ metadata?: {
4470
+ [key: string]: unknown;
4471
+ };
4472
+ durable?: {
4473
+ aggregateID: string;
4474
+ seq: number;
4475
+ version: number;
4476
+ };
4477
+ location?: LocationRef;
4478
+ type: "session.next.revert.committed";
4479
+ data: {
4480
+ timestamp: number;
4481
+ sessionID: string;
4482
+ messageID: string;
4483
+ };
4484
+ };
4323
4485
  export type V2EventMessagePartDelta = {
4324
4486
  id: string;
4325
4487
  metadata?: {
@@ -5379,6 +5541,7 @@ export type EventSessionNextStepEnded = {
5379
5541
  };
5380
5542
  };
5381
5543
  snapshot?: string;
5544
+ files?: Array<string>;
5382
5545
  };
5383
5546
  };
5384
5547
  export type EventSessionNextStepFailed = {
@@ -5620,6 +5783,38 @@ export type EventSessionNextCompactionEnded = {
5620
5783
  recent: string;
5621
5784
  };
5622
5785
  };
5786
+ export type EventSessionNextRevertStaged = {
5787
+ id: string;
5788
+ type: "session.next.revert.staged";
5789
+ properties: {
5790
+ timestamp: number;
5791
+ sessionID: string;
5792
+ revert: {
5793
+ messageID: string;
5794
+ partID?: string;
5795
+ snapshot?: string;
5796
+ diff?: string;
5797
+ files?: Array<FileDiff>;
5798
+ };
5799
+ };
5800
+ };
5801
+ export type EventSessionNextRevertCleared = {
5802
+ id: string;
5803
+ type: "session.next.revert.cleared";
5804
+ properties: {
5805
+ timestamp: number;
5806
+ sessionID: string;
5807
+ };
5808
+ };
5809
+ export type EventSessionNextRevertCommitted = {
5810
+ id: string;
5811
+ type: "session.next.revert.committed";
5812
+ properties: {
5813
+ timestamp: number;
5814
+ sessionID: string;
5815
+ messageID: string;
5816
+ };
5817
+ };
5623
5818
  export type EventMessagePartDelta = {
5624
5819
  id: string;
5625
5820
  type: "message.part.delta";
@@ -9883,6 +10078,115 @@ export type V2SessionWaitResponses = {
9883
10078
  204: void;
9884
10079
  };
9885
10080
  export type V2SessionWaitResponse = V2SessionWaitResponses[keyof V2SessionWaitResponses];
10081
+ export type V2SessionRevertStageData = {
10082
+ body: {
10083
+ messageID: string;
10084
+ files?: boolean;
10085
+ };
10086
+ path: {
10087
+ sessionID: string;
10088
+ };
10089
+ query?: never;
10090
+ url: "/api/session/{sessionID}/revert/stage";
10091
+ };
10092
+ export type V2SessionRevertStageErrors = {
10093
+ /**
10094
+ * InvalidRequestError
10095
+ */
10096
+ 400: InvalidRequestError;
10097
+ /**
10098
+ * UnauthorizedError
10099
+ */
10100
+ 401: UnauthorizedError;
10101
+ /**
10102
+ * MessageNotFoundError | SessionNotFoundError
10103
+ */
10104
+ 404: MessageNotFoundError | SessionNotFoundError;
10105
+ /**
10106
+ * UnknownError
10107
+ */
10108
+ 500: UnknownError1;
10109
+ };
10110
+ export type V2SessionRevertStageError = V2SessionRevertStageErrors[keyof V2SessionRevertStageErrors];
10111
+ export type V2SessionRevertStageResponses = {
10112
+ /**
10113
+ * Success
10114
+ */
10115
+ 200: {
10116
+ data: {
10117
+ messageID: string;
10118
+ partID?: string;
10119
+ snapshot?: string;
10120
+ diff?: string;
10121
+ files?: Array<FileDiff>;
10122
+ };
10123
+ };
10124
+ };
10125
+ export type V2SessionRevertStageResponse = V2SessionRevertStageResponses[keyof V2SessionRevertStageResponses];
10126
+ export type V2SessionRevertClearData = {
10127
+ body?: never;
10128
+ path: {
10129
+ sessionID: string;
10130
+ };
10131
+ query?: never;
10132
+ url: "/api/session/{sessionID}/revert/clear";
10133
+ };
10134
+ export type V2SessionRevertClearErrors = {
10135
+ /**
10136
+ * InvalidRequestError
10137
+ */
10138
+ 400: InvalidRequestError;
10139
+ /**
10140
+ * UnauthorizedError
10141
+ */
10142
+ 401: UnauthorizedError;
10143
+ /**
10144
+ * SessionNotFoundError
10145
+ */
10146
+ 404: SessionNotFoundError;
10147
+ /**
10148
+ * UnknownError
10149
+ */
10150
+ 500: UnknownError1;
10151
+ };
10152
+ export type V2SessionRevertClearError = V2SessionRevertClearErrors[keyof V2SessionRevertClearErrors];
10153
+ export type V2SessionRevertClearResponses = {
10154
+ /**
10155
+ * <No Content>
10156
+ */
10157
+ 204: void;
10158
+ };
10159
+ export type V2SessionRevertClearResponse = V2SessionRevertClearResponses[keyof V2SessionRevertClearResponses];
10160
+ export type V2SessionRevertCommitData = {
10161
+ body?: never;
10162
+ path: {
10163
+ sessionID: string;
10164
+ };
10165
+ query?: never;
10166
+ url: "/api/session/{sessionID}/revert/commit";
10167
+ };
10168
+ export type V2SessionRevertCommitErrors = {
10169
+ /**
10170
+ * InvalidRequestError
10171
+ */
10172
+ 400: InvalidRequestError;
10173
+ /**
10174
+ * UnauthorizedError
10175
+ */
10176
+ 401: UnauthorizedError;
10177
+ /**
10178
+ * SessionNotFoundError
10179
+ */
10180
+ 404: SessionNotFoundError;
10181
+ };
10182
+ export type V2SessionRevertCommitError = V2SessionRevertCommitErrors[keyof V2SessionRevertCommitErrors];
10183
+ export type V2SessionRevertCommitResponses = {
10184
+ /**
10185
+ * <No Content>
10186
+ */
10187
+ 204: void;
10188
+ };
10189
+ export type V2SessionRevertCommitResponse = V2SessionRevertCommitResponses[keyof V2SessionRevertCommitResponses];
9886
10190
  export type V2SessionContextData = {
9887
10191
  body?: never;
9888
10192
  path: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@opencode-ai/sdk",
4
- "version": "1.17.10",
4
+ "version": "1.17.11",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "scripts": {