@opencode-ai/sdk 1.2.12 → 1.2.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/v2/gen/sdk.gen.d.ts +11 -1
- package/dist/v2/gen/sdk.gen.js +21 -0
- package/dist/v2/gen/types.gen.d.ts +35 -408
- package/package.json +1 -1
package/dist/v2/gen/sdk.gen.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Client, type Options as Options2, type TDataShape } from "./client/index.js";
|
|
2
|
-
import type { AgentPartInput, AppAgentsResponses, AppLogErrors, AppLogResponses, AppSkillsResponses, Auth as Auth3, AuthRemoveErrors, AuthRemoveResponses, AuthSetErrors, AuthSetResponses, CommandListResponses, Config as Config3, ConfigGetResponses, ConfigProvidersResponses, ConfigUpdateErrors, ConfigUpdateResponses, EventSubscribeResponses, EventTuiCommandExecute, EventTuiPromptAppend, EventTuiSessionSelect, EventTuiToastShow, ExperimentalResourceListResponses, ExperimentalSessionListResponses, FileListResponses, FilePartInput, FilePartSource, FileReadResponses, FileStatusResponses, FindFilesResponses, FindSymbolsResponses, FindTextResponses, FormatterStatusResponses, GlobalConfigGetResponses, GlobalConfigUpdateErrors, GlobalConfigUpdateResponses, GlobalDisposeResponses, GlobalEventResponses, GlobalHealthResponses, InstanceDisposeResponses, LspStatusResponses, McpAddErrors, McpAddResponses, McpAuthAuthenticateErrors, McpAuthAuthenticateResponses, McpAuthCallbackErrors, McpAuthCallbackResponses, McpAuthRemoveErrors, McpAuthRemoveResponses, McpAuthStartErrors, McpAuthStartResponses, McpConnectResponses, McpDisconnectResponses, McpLocalConfig, McpRemoteConfig, McpStatusResponses, OutputFormat, Part as Part2, PartDeleteErrors, PartDeleteResponses, PartUpdateErrors, PartUpdateResponses, PathGetResponses, PermissionListResponses, PermissionReplyErrors, PermissionReplyResponses, PermissionRespondErrors, PermissionRespondResponses, PermissionRuleset, ProjectCurrentResponses, ProjectListResponses, ProjectUpdateErrors, ProjectUpdateResponses, 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, SessionChildrenErrors, SessionChildrenResponses, SessionCommandErrors, SessionCommandResponses, SessionCreateErrors, SessionCreateResponses, SessionDeleteErrors, SessionDeleteResponses, SessionDiffResponses, SessionForkResponses, SessionGetErrors, SessionGetResponses, SessionInitErrors, SessionInitResponses, 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, TextPartInput, ToolIdsErrors, ToolIdsResponses, ToolListErrors, ToolListResponses, TuiAppendPromptErrors, TuiAppendPromptResponses, TuiClearPromptResponses, TuiControlNextResponses, TuiControlResponseResponses, TuiExecuteCommandErrors, TuiExecuteCommandResponses, TuiOpenHelpResponses, TuiOpenModelsResponses, TuiOpenSessionsResponses, TuiOpenThemesResponses, TuiPublishErrors, TuiPublishResponses, TuiSelectSessionErrors, TuiSelectSessionResponses, TuiShowToastResponses, TuiSubmitPromptResponses, VcsGetResponses, WorktreeCreateErrors, WorktreeCreateInput, WorktreeCreateResponses, WorktreeListResponses, WorktreeRemoveErrors, WorktreeRemoveInput, WorktreeRemoveResponses, WorktreeResetErrors, WorktreeResetInput, WorktreeResetResponses } from "./types.gen.js";
|
|
2
|
+
import type { AgentPartInput, AppAgentsResponses, AppLogErrors, AppLogResponses, AppSkillsResponses, Auth as Auth3, AuthRemoveErrors, AuthRemoveResponses, AuthSetErrors, AuthSetResponses, CommandListResponses, Config as Config3, ConfigGetResponses, ConfigProvidersResponses, ConfigUpdateErrors, ConfigUpdateResponses, EventSubscribeResponses, EventTuiCommandExecute, EventTuiPromptAppend, EventTuiSessionSelect, EventTuiToastShow, ExperimentalResourceListResponses, ExperimentalSessionListResponses, FileListResponses, FilePartInput, FilePartSource, FileReadResponses, FileStatusResponses, FindFilesResponses, FindSymbolsResponses, FindTextResponses, FormatterStatusResponses, GlobalConfigGetResponses, GlobalConfigUpdateErrors, GlobalConfigUpdateResponses, GlobalDisposeResponses, GlobalEventResponses, GlobalHealthResponses, InstanceDisposeResponses, LspStatusResponses, McpAddErrors, McpAddResponses, McpAuthAuthenticateErrors, McpAuthAuthenticateResponses, McpAuthCallbackErrors, McpAuthCallbackResponses, McpAuthRemoveErrors, McpAuthRemoveResponses, McpAuthStartErrors, McpAuthStartResponses, McpConnectResponses, McpDisconnectResponses, McpLocalConfig, McpRemoteConfig, McpStatusResponses, OutputFormat, Part as Part2, PartDeleteErrors, PartDeleteResponses, PartUpdateErrors, PartUpdateResponses, PathGetResponses, PermissionListResponses, PermissionReplyErrors, PermissionReplyResponses, PermissionRespondErrors, PermissionRespondResponses, PermissionRuleset, ProjectCurrentResponses, ProjectListResponses, ProjectUpdateErrors, ProjectUpdateResponses, 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, SessionChildrenErrors, SessionChildrenResponses, SessionCommandErrors, SessionCommandResponses, SessionCreateErrors, SessionCreateResponses, SessionDeleteErrors, SessionDeleteMessageErrors, SessionDeleteMessageResponses, SessionDeleteResponses, SessionDiffResponses, SessionForkResponses, SessionGetErrors, SessionGetResponses, SessionInitErrors, SessionInitResponses, 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, TextPartInput, ToolIdsErrors, ToolIdsResponses, ToolListErrors, ToolListResponses, TuiAppendPromptErrors, TuiAppendPromptResponses, TuiClearPromptResponses, TuiControlNextResponses, TuiControlResponseResponses, TuiExecuteCommandErrors, TuiExecuteCommandResponses, TuiOpenHelpResponses, TuiOpenModelsResponses, TuiOpenSessionsResponses, TuiOpenThemesResponses, TuiPublishErrors, TuiPublishResponses, TuiSelectSessionErrors, TuiSelectSessionResponses, TuiShowToastResponses, TuiSubmitPromptResponses, VcsGetResponses, WorktreeCreateErrors, WorktreeCreateInput, WorktreeCreateResponses, WorktreeListResponses, WorktreeRemoveErrors, WorktreeRemoveInput, WorktreeRemoveResponses, WorktreeResetErrors, WorktreeResetInput, WorktreeResetResponses } from "./types.gen.js";
|
|
3
3
|
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {
|
|
4
4
|
/**
|
|
5
5
|
* You can provide a client instance returned by `createClient()` instead of
|
|
@@ -488,6 +488,16 @@ export declare class Session2 extends HeyApiClient {
|
|
|
488
488
|
variant?: string;
|
|
489
489
|
parts?: Array<TextPartInput | FilePartInput | AgentPartInput | SubtaskPartInput>;
|
|
490
490
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionPromptResponses, SessionPromptErrors, ThrowOnError, "fields">;
|
|
491
|
+
/**
|
|
492
|
+
* Delete message
|
|
493
|
+
*
|
|
494
|
+
* Permanently delete a specific message (and all of its parts) from a session. This does not revert any file changes that may have been made while processing the message.
|
|
495
|
+
*/
|
|
496
|
+
deleteMessage<ThrowOnError extends boolean = false>(parameters: {
|
|
497
|
+
sessionID: string;
|
|
498
|
+
messageID: string;
|
|
499
|
+
directory?: string;
|
|
500
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionDeleteMessageResponses, SessionDeleteMessageErrors, ThrowOnError, "fields">;
|
|
491
501
|
/**
|
|
492
502
|
* Get message
|
|
493
503
|
*
|
package/dist/v2/gen/sdk.gen.js
CHANGED
|
@@ -938,6 +938,27 @@ export class Session2 extends HeyApiClient {
|
|
|
938
938
|
},
|
|
939
939
|
});
|
|
940
940
|
}
|
|
941
|
+
/**
|
|
942
|
+
* Delete message
|
|
943
|
+
*
|
|
944
|
+
* Permanently delete a specific message (and all of its parts) from a session. This does not revert any file changes that may have been made while processing the message.
|
|
945
|
+
*/
|
|
946
|
+
deleteMessage(parameters, options) {
|
|
947
|
+
const params = buildClientParams([parameters], [
|
|
948
|
+
{
|
|
949
|
+
args: [
|
|
950
|
+
{ in: "path", key: "sessionID" },
|
|
951
|
+
{ in: "path", key: "messageID" },
|
|
952
|
+
{ in: "query", key: "directory" },
|
|
953
|
+
],
|
|
954
|
+
},
|
|
955
|
+
]);
|
|
956
|
+
return (options?.client ?? this.client).delete({
|
|
957
|
+
url: "/session/{sessionID}/message/{messageID}",
|
|
958
|
+
...options,
|
|
959
|
+
...params,
|
|
960
|
+
});
|
|
961
|
+
}
|
|
941
962
|
/**
|
|
942
963
|
* Get message
|
|
943
964
|
*
|
|
@@ -802,387 +802,6 @@ export type GlobalEvent = {
|
|
|
802
802
|
directory: string;
|
|
803
803
|
payload: Event;
|
|
804
804
|
};
|
|
805
|
-
/**
|
|
806
|
-
* Custom keybind configurations
|
|
807
|
-
*/
|
|
808
|
-
export type KeybindsConfig = {
|
|
809
|
-
/**
|
|
810
|
-
* Leader key for keybind combinations
|
|
811
|
-
*/
|
|
812
|
-
leader?: string;
|
|
813
|
-
/**
|
|
814
|
-
* Exit the application
|
|
815
|
-
*/
|
|
816
|
-
app_exit?: string;
|
|
817
|
-
/**
|
|
818
|
-
* Open external editor
|
|
819
|
-
*/
|
|
820
|
-
editor_open?: string;
|
|
821
|
-
/**
|
|
822
|
-
* List available themes
|
|
823
|
-
*/
|
|
824
|
-
theme_list?: string;
|
|
825
|
-
/**
|
|
826
|
-
* Toggle sidebar
|
|
827
|
-
*/
|
|
828
|
-
sidebar_toggle?: string;
|
|
829
|
-
/**
|
|
830
|
-
* Toggle session scrollbar
|
|
831
|
-
*/
|
|
832
|
-
scrollbar_toggle?: string;
|
|
833
|
-
/**
|
|
834
|
-
* Toggle username visibility
|
|
835
|
-
*/
|
|
836
|
-
username_toggle?: string;
|
|
837
|
-
/**
|
|
838
|
-
* View status
|
|
839
|
-
*/
|
|
840
|
-
status_view?: string;
|
|
841
|
-
/**
|
|
842
|
-
* Export session to editor
|
|
843
|
-
*/
|
|
844
|
-
session_export?: string;
|
|
845
|
-
/**
|
|
846
|
-
* Create a new session
|
|
847
|
-
*/
|
|
848
|
-
session_new?: string;
|
|
849
|
-
/**
|
|
850
|
-
* List all sessions
|
|
851
|
-
*/
|
|
852
|
-
session_list?: string;
|
|
853
|
-
/**
|
|
854
|
-
* Show session timeline
|
|
855
|
-
*/
|
|
856
|
-
session_timeline?: string;
|
|
857
|
-
/**
|
|
858
|
-
* Fork session from message
|
|
859
|
-
*/
|
|
860
|
-
session_fork?: string;
|
|
861
|
-
/**
|
|
862
|
-
* Rename session
|
|
863
|
-
*/
|
|
864
|
-
session_rename?: string;
|
|
865
|
-
/**
|
|
866
|
-
* Delete session
|
|
867
|
-
*/
|
|
868
|
-
session_delete?: string;
|
|
869
|
-
/**
|
|
870
|
-
* Delete stash entry
|
|
871
|
-
*/
|
|
872
|
-
stash_delete?: string;
|
|
873
|
-
/**
|
|
874
|
-
* Open provider list from model dialog
|
|
875
|
-
*/
|
|
876
|
-
model_provider_list?: string;
|
|
877
|
-
/**
|
|
878
|
-
* Toggle model favorite status
|
|
879
|
-
*/
|
|
880
|
-
model_favorite_toggle?: string;
|
|
881
|
-
/**
|
|
882
|
-
* Share current session
|
|
883
|
-
*/
|
|
884
|
-
session_share?: string;
|
|
885
|
-
/**
|
|
886
|
-
* Unshare current session
|
|
887
|
-
*/
|
|
888
|
-
session_unshare?: string;
|
|
889
|
-
/**
|
|
890
|
-
* Interrupt current session
|
|
891
|
-
*/
|
|
892
|
-
session_interrupt?: string;
|
|
893
|
-
/**
|
|
894
|
-
* Compact the session
|
|
895
|
-
*/
|
|
896
|
-
session_compact?: string;
|
|
897
|
-
/**
|
|
898
|
-
* Scroll messages up by one page
|
|
899
|
-
*/
|
|
900
|
-
messages_page_up?: string;
|
|
901
|
-
/**
|
|
902
|
-
* Scroll messages down by one page
|
|
903
|
-
*/
|
|
904
|
-
messages_page_down?: string;
|
|
905
|
-
/**
|
|
906
|
-
* Scroll messages up by one line
|
|
907
|
-
*/
|
|
908
|
-
messages_line_up?: string;
|
|
909
|
-
/**
|
|
910
|
-
* Scroll messages down by one line
|
|
911
|
-
*/
|
|
912
|
-
messages_line_down?: string;
|
|
913
|
-
/**
|
|
914
|
-
* Scroll messages up by half page
|
|
915
|
-
*/
|
|
916
|
-
messages_half_page_up?: string;
|
|
917
|
-
/**
|
|
918
|
-
* Scroll messages down by half page
|
|
919
|
-
*/
|
|
920
|
-
messages_half_page_down?: string;
|
|
921
|
-
/**
|
|
922
|
-
* Navigate to first message
|
|
923
|
-
*/
|
|
924
|
-
messages_first?: string;
|
|
925
|
-
/**
|
|
926
|
-
* Navigate to last message
|
|
927
|
-
*/
|
|
928
|
-
messages_last?: string;
|
|
929
|
-
/**
|
|
930
|
-
* Navigate to next message
|
|
931
|
-
*/
|
|
932
|
-
messages_next?: string;
|
|
933
|
-
/**
|
|
934
|
-
* Navigate to previous message
|
|
935
|
-
*/
|
|
936
|
-
messages_previous?: string;
|
|
937
|
-
/**
|
|
938
|
-
* Navigate to last user message
|
|
939
|
-
*/
|
|
940
|
-
messages_last_user?: string;
|
|
941
|
-
/**
|
|
942
|
-
* Copy message
|
|
943
|
-
*/
|
|
944
|
-
messages_copy?: string;
|
|
945
|
-
/**
|
|
946
|
-
* Undo message
|
|
947
|
-
*/
|
|
948
|
-
messages_undo?: string;
|
|
949
|
-
/**
|
|
950
|
-
* Redo message
|
|
951
|
-
*/
|
|
952
|
-
messages_redo?: string;
|
|
953
|
-
/**
|
|
954
|
-
* Toggle code block concealment in messages
|
|
955
|
-
*/
|
|
956
|
-
messages_toggle_conceal?: string;
|
|
957
|
-
/**
|
|
958
|
-
* Toggle tool details visibility
|
|
959
|
-
*/
|
|
960
|
-
tool_details?: string;
|
|
961
|
-
/**
|
|
962
|
-
* List available models
|
|
963
|
-
*/
|
|
964
|
-
model_list?: string;
|
|
965
|
-
/**
|
|
966
|
-
* Next recently used model
|
|
967
|
-
*/
|
|
968
|
-
model_cycle_recent?: string;
|
|
969
|
-
/**
|
|
970
|
-
* Previous recently used model
|
|
971
|
-
*/
|
|
972
|
-
model_cycle_recent_reverse?: string;
|
|
973
|
-
/**
|
|
974
|
-
* Next favorite model
|
|
975
|
-
*/
|
|
976
|
-
model_cycle_favorite?: string;
|
|
977
|
-
/**
|
|
978
|
-
* Previous favorite model
|
|
979
|
-
*/
|
|
980
|
-
model_cycle_favorite_reverse?: string;
|
|
981
|
-
/**
|
|
982
|
-
* List available commands
|
|
983
|
-
*/
|
|
984
|
-
command_list?: string;
|
|
985
|
-
/**
|
|
986
|
-
* List agents
|
|
987
|
-
*/
|
|
988
|
-
agent_list?: string;
|
|
989
|
-
/**
|
|
990
|
-
* Next agent
|
|
991
|
-
*/
|
|
992
|
-
agent_cycle?: string;
|
|
993
|
-
/**
|
|
994
|
-
* Previous agent
|
|
995
|
-
*/
|
|
996
|
-
agent_cycle_reverse?: string;
|
|
997
|
-
/**
|
|
998
|
-
* Cycle model variants
|
|
999
|
-
*/
|
|
1000
|
-
variant_cycle?: string;
|
|
1001
|
-
/**
|
|
1002
|
-
* Clear input field
|
|
1003
|
-
*/
|
|
1004
|
-
input_clear?: string;
|
|
1005
|
-
/**
|
|
1006
|
-
* Paste from clipboard
|
|
1007
|
-
*/
|
|
1008
|
-
input_paste?: string;
|
|
1009
|
-
/**
|
|
1010
|
-
* Submit input
|
|
1011
|
-
*/
|
|
1012
|
-
input_submit?: string;
|
|
1013
|
-
/**
|
|
1014
|
-
* Insert newline in input
|
|
1015
|
-
*/
|
|
1016
|
-
input_newline?: string;
|
|
1017
|
-
/**
|
|
1018
|
-
* Move cursor left in input
|
|
1019
|
-
*/
|
|
1020
|
-
input_move_left?: string;
|
|
1021
|
-
/**
|
|
1022
|
-
* Move cursor right in input
|
|
1023
|
-
*/
|
|
1024
|
-
input_move_right?: string;
|
|
1025
|
-
/**
|
|
1026
|
-
* Move cursor up in input
|
|
1027
|
-
*/
|
|
1028
|
-
input_move_up?: string;
|
|
1029
|
-
/**
|
|
1030
|
-
* Move cursor down in input
|
|
1031
|
-
*/
|
|
1032
|
-
input_move_down?: string;
|
|
1033
|
-
/**
|
|
1034
|
-
* Select left in input
|
|
1035
|
-
*/
|
|
1036
|
-
input_select_left?: string;
|
|
1037
|
-
/**
|
|
1038
|
-
* Select right in input
|
|
1039
|
-
*/
|
|
1040
|
-
input_select_right?: string;
|
|
1041
|
-
/**
|
|
1042
|
-
* Select up in input
|
|
1043
|
-
*/
|
|
1044
|
-
input_select_up?: string;
|
|
1045
|
-
/**
|
|
1046
|
-
* Select down in input
|
|
1047
|
-
*/
|
|
1048
|
-
input_select_down?: string;
|
|
1049
|
-
/**
|
|
1050
|
-
* Move to start of line in input
|
|
1051
|
-
*/
|
|
1052
|
-
input_line_home?: string;
|
|
1053
|
-
/**
|
|
1054
|
-
* Move to end of line in input
|
|
1055
|
-
*/
|
|
1056
|
-
input_line_end?: string;
|
|
1057
|
-
/**
|
|
1058
|
-
* Select to start of line in input
|
|
1059
|
-
*/
|
|
1060
|
-
input_select_line_home?: string;
|
|
1061
|
-
/**
|
|
1062
|
-
* Select to end of line in input
|
|
1063
|
-
*/
|
|
1064
|
-
input_select_line_end?: string;
|
|
1065
|
-
/**
|
|
1066
|
-
* Move to start of visual line in input
|
|
1067
|
-
*/
|
|
1068
|
-
input_visual_line_home?: string;
|
|
1069
|
-
/**
|
|
1070
|
-
* Move to end of visual line in input
|
|
1071
|
-
*/
|
|
1072
|
-
input_visual_line_end?: string;
|
|
1073
|
-
/**
|
|
1074
|
-
* Select to start of visual line in input
|
|
1075
|
-
*/
|
|
1076
|
-
input_select_visual_line_home?: string;
|
|
1077
|
-
/**
|
|
1078
|
-
* Select to end of visual line in input
|
|
1079
|
-
*/
|
|
1080
|
-
input_select_visual_line_end?: string;
|
|
1081
|
-
/**
|
|
1082
|
-
* Move to start of buffer in input
|
|
1083
|
-
*/
|
|
1084
|
-
input_buffer_home?: string;
|
|
1085
|
-
/**
|
|
1086
|
-
* Move to end of buffer in input
|
|
1087
|
-
*/
|
|
1088
|
-
input_buffer_end?: string;
|
|
1089
|
-
/**
|
|
1090
|
-
* Select to start of buffer in input
|
|
1091
|
-
*/
|
|
1092
|
-
input_select_buffer_home?: string;
|
|
1093
|
-
/**
|
|
1094
|
-
* Select to end of buffer in input
|
|
1095
|
-
*/
|
|
1096
|
-
input_select_buffer_end?: string;
|
|
1097
|
-
/**
|
|
1098
|
-
* Delete line in input
|
|
1099
|
-
*/
|
|
1100
|
-
input_delete_line?: string;
|
|
1101
|
-
/**
|
|
1102
|
-
* Delete to end of line in input
|
|
1103
|
-
*/
|
|
1104
|
-
input_delete_to_line_end?: string;
|
|
1105
|
-
/**
|
|
1106
|
-
* Delete to start of line in input
|
|
1107
|
-
*/
|
|
1108
|
-
input_delete_to_line_start?: string;
|
|
1109
|
-
/**
|
|
1110
|
-
* Backspace in input
|
|
1111
|
-
*/
|
|
1112
|
-
input_backspace?: string;
|
|
1113
|
-
/**
|
|
1114
|
-
* Delete character in input
|
|
1115
|
-
*/
|
|
1116
|
-
input_delete?: string;
|
|
1117
|
-
/**
|
|
1118
|
-
* Undo in input
|
|
1119
|
-
*/
|
|
1120
|
-
input_undo?: string;
|
|
1121
|
-
/**
|
|
1122
|
-
* Redo in input
|
|
1123
|
-
*/
|
|
1124
|
-
input_redo?: string;
|
|
1125
|
-
/**
|
|
1126
|
-
* Move word forward in input
|
|
1127
|
-
*/
|
|
1128
|
-
input_word_forward?: string;
|
|
1129
|
-
/**
|
|
1130
|
-
* Move word backward in input
|
|
1131
|
-
*/
|
|
1132
|
-
input_word_backward?: string;
|
|
1133
|
-
/**
|
|
1134
|
-
* Select word forward in input
|
|
1135
|
-
*/
|
|
1136
|
-
input_select_word_forward?: string;
|
|
1137
|
-
/**
|
|
1138
|
-
* Select word backward in input
|
|
1139
|
-
*/
|
|
1140
|
-
input_select_word_backward?: string;
|
|
1141
|
-
/**
|
|
1142
|
-
* Delete word forward in input
|
|
1143
|
-
*/
|
|
1144
|
-
input_delete_word_forward?: string;
|
|
1145
|
-
/**
|
|
1146
|
-
* Delete word backward in input
|
|
1147
|
-
*/
|
|
1148
|
-
input_delete_word_backward?: string;
|
|
1149
|
-
/**
|
|
1150
|
-
* Previous history item
|
|
1151
|
-
*/
|
|
1152
|
-
history_previous?: string;
|
|
1153
|
-
/**
|
|
1154
|
-
* Next history item
|
|
1155
|
-
*/
|
|
1156
|
-
history_next?: string;
|
|
1157
|
-
/**
|
|
1158
|
-
* Next child session
|
|
1159
|
-
*/
|
|
1160
|
-
session_child_cycle?: string;
|
|
1161
|
-
/**
|
|
1162
|
-
* Previous child session
|
|
1163
|
-
*/
|
|
1164
|
-
session_child_cycle_reverse?: string;
|
|
1165
|
-
/**
|
|
1166
|
-
* Go to parent session
|
|
1167
|
-
*/
|
|
1168
|
-
session_parent?: string;
|
|
1169
|
-
/**
|
|
1170
|
-
* Suspend terminal
|
|
1171
|
-
*/
|
|
1172
|
-
terminal_suspend?: string;
|
|
1173
|
-
/**
|
|
1174
|
-
* Toggle terminal title
|
|
1175
|
-
*/
|
|
1176
|
-
terminal_title_toggle?: string;
|
|
1177
|
-
/**
|
|
1178
|
-
* Toggle tips on home screen
|
|
1179
|
-
*/
|
|
1180
|
-
tips_toggle?: string;
|
|
1181
|
-
/**
|
|
1182
|
-
* Toggle thinking blocks visibility
|
|
1183
|
-
*/
|
|
1184
|
-
display_thinking?: string;
|
|
1185
|
-
};
|
|
1186
805
|
/**
|
|
1187
806
|
* Log level
|
|
1188
807
|
*/
|
|
@@ -1446,34 +1065,7 @@ export type Config = {
|
|
|
1446
1065
|
* JSON schema reference for configuration validation
|
|
1447
1066
|
*/
|
|
1448
1067
|
$schema?: string;
|
|
1449
|
-
/**
|
|
1450
|
-
* Theme name to use for the interface
|
|
1451
|
-
*/
|
|
1452
|
-
theme?: string;
|
|
1453
|
-
keybinds?: KeybindsConfig;
|
|
1454
1068
|
logLevel?: LogLevel;
|
|
1455
|
-
/**
|
|
1456
|
-
* TUI specific settings
|
|
1457
|
-
*/
|
|
1458
|
-
tui?: {
|
|
1459
|
-
/**
|
|
1460
|
-
* TUI scroll speed
|
|
1461
|
-
*/
|
|
1462
|
-
scroll_speed?: number;
|
|
1463
|
-
/**
|
|
1464
|
-
* Scroll acceleration settings
|
|
1465
|
-
*/
|
|
1466
|
-
scroll_acceleration?: {
|
|
1467
|
-
/**
|
|
1468
|
-
* Enable scroll acceleration
|
|
1469
|
-
*/
|
|
1470
|
-
enabled: boolean;
|
|
1471
|
-
};
|
|
1472
|
-
/**
|
|
1473
|
-
* Control diff rendering style: 'auto' adapts to terminal width, 'stacked' always shows single column
|
|
1474
|
-
*/
|
|
1475
|
-
diff_style?: "auto" | "stacked";
|
|
1476
|
-
};
|
|
1477
1069
|
server?: ServerConfig;
|
|
1478
1070
|
/**
|
|
1479
1071
|
* Command configuration, see https://opencode.ai/docs/commands
|
|
@@ -3090,6 +2682,41 @@ export type SessionPromptResponses = {
|
|
|
3090
2682
|
};
|
|
3091
2683
|
};
|
|
3092
2684
|
export type SessionPromptResponse = SessionPromptResponses[keyof SessionPromptResponses];
|
|
2685
|
+
export type SessionDeleteMessageData = {
|
|
2686
|
+
body?: never;
|
|
2687
|
+
path: {
|
|
2688
|
+
/**
|
|
2689
|
+
* Session ID
|
|
2690
|
+
*/
|
|
2691
|
+
sessionID: string;
|
|
2692
|
+
/**
|
|
2693
|
+
* Message ID
|
|
2694
|
+
*/
|
|
2695
|
+
messageID: string;
|
|
2696
|
+
};
|
|
2697
|
+
query?: {
|
|
2698
|
+
directory?: string;
|
|
2699
|
+
};
|
|
2700
|
+
url: "/session/{sessionID}/message/{messageID}";
|
|
2701
|
+
};
|
|
2702
|
+
export type SessionDeleteMessageErrors = {
|
|
2703
|
+
/**
|
|
2704
|
+
* Bad request
|
|
2705
|
+
*/
|
|
2706
|
+
400: BadRequestError;
|
|
2707
|
+
/**
|
|
2708
|
+
* Not found
|
|
2709
|
+
*/
|
|
2710
|
+
404: NotFoundError;
|
|
2711
|
+
};
|
|
2712
|
+
export type SessionDeleteMessageError = SessionDeleteMessageErrors[keyof SessionDeleteMessageErrors];
|
|
2713
|
+
export type SessionDeleteMessageResponses = {
|
|
2714
|
+
/**
|
|
2715
|
+
* Successfully deleted message
|
|
2716
|
+
*/
|
|
2717
|
+
200: boolean;
|
|
2718
|
+
};
|
|
2719
|
+
export type SessionDeleteMessageResponse = SessionDeleteMessageResponses[keyof SessionDeleteMessageResponses];
|
|
3093
2720
|
export type SessionMessageData = {
|
|
3094
2721
|
body?: never;
|
|
3095
2722
|
path: {
|