@matrix-ai/sdk 0.0.0-dev-202602240302 → 0.0.0-dev-202603070341

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.
@@ -446,6 +446,7 @@ export type CompactionPart = {
446
446
  messageID: string;
447
447
  type: "compaction";
448
448
  auto: boolean;
449
+ overflow?: boolean;
449
450
  };
450
451
  export type Part = TextPart | SubtaskPart | ReasoningPart | FilePart | ToolPart | StepStartPart | StepFinishPart | SnapshotPart | PatchPart | AgentPart | RetryPart | CompactionPart;
451
452
  export type EventMessagePartUpdated = {
@@ -685,6 +686,7 @@ export type Session = {
685
686
  id: string;
686
687
  slug: string;
687
688
  projectID: string;
689
+ workspaceID?: string;
688
690
  directory: string;
689
691
  parentID?: string;
690
692
  summary?: {
@@ -750,6 +752,18 @@ export type EventVcsBranchUpdated = {
750
752
  branch?: string;
751
753
  };
752
754
  };
755
+ export type EventWorkspaceReady = {
756
+ type: "workspace.ready";
757
+ properties: {
758
+ name: string;
759
+ };
760
+ };
761
+ export type EventWorkspaceFailed = {
762
+ type: "workspace.failed";
763
+ properties: {
764
+ message: string;
765
+ };
766
+ };
753
767
  export type Pty = {
754
768
  id: string;
755
769
  title: string;
@@ -797,392 +811,11 @@ export type EventWorktreeFailed = {
797
811
  message: string;
798
812
  };
799
813
  };
800
- export type Event = EventInstallationUpdated | EventInstallationUpdateAvailable | EventProjectUpdated | EventServerInstanceDisposed | EventServerConnected | EventGlobalDisposed | EventLspClientDiagnostics | EventLspUpdated | EventFileEdited | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartDelta | EventMessagePartRemoved | EventPermissionAsked | EventPermissionReplied | EventSessionStatus | EventSessionIdle | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventSessionCompacted | EventFileWatcherUpdated | EventTodoUpdated | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventCommandExecuted | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventSessionDiff | EventSessionError | EventVcsBranchUpdated | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventWorktreeReady | EventWorktreeFailed;
814
+ export type Event = EventInstallationUpdated | EventInstallationUpdateAvailable | EventProjectUpdated | EventServerInstanceDisposed | EventServerConnected | EventGlobalDisposed | EventLspClientDiagnostics | EventLspUpdated | EventFileEdited | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartDelta | EventMessagePartRemoved | EventPermissionAsked | EventPermissionReplied | EventSessionStatus | EventSessionIdle | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventSessionCompacted | EventFileWatcherUpdated | EventTodoUpdated | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect | EventMcpToolsChanged | EventMcpBrowserOpenFailed | EventCommandExecuted | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventSessionDiff | EventSessionError | EventVcsBranchUpdated | EventWorkspaceReady | EventWorkspaceFailed | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventWorktreeReady | EventWorktreeFailed;
801
815
  export type GlobalEvent = {
802
816
  directory: string;
803
817
  payload: Event;
804
818
  };
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
819
  /**
1187
820
  * Log level
1188
821
  */
@@ -1446,34 +1079,7 @@ export type Config = {
1446
1079
  * JSON schema reference for configuration validation
1447
1080
  */
1448
1081
  $schema?: string;
1449
- /**
1450
- * Theme name to use for the interface
1451
- */
1452
- theme?: string;
1453
- keybinds?: KeybindsConfig;
1454
1082
  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
1083
  server?: ServerConfig;
1478
1084
  /**
1479
1085
  * Command configuration, see https://opencode.ai/docs/commands
@@ -1773,6 +1379,15 @@ export type ToolListItem = {
1773
1379
  parameters: unknown;
1774
1380
  };
1775
1381
  export type ToolList = Array<ToolListItem>;
1382
+ export type Workspace = {
1383
+ id: string;
1384
+ type: string;
1385
+ branch: string | null;
1386
+ name: string | null;
1387
+ directory: string | null;
1388
+ extra: unknown | null;
1389
+ projectID: string;
1390
+ };
1776
1391
  export type Worktree = {
1777
1392
  name: string;
1778
1393
  branch: string;
@@ -1800,6 +1415,7 @@ export type GlobalSession = {
1800
1415
  id: string;
1801
1416
  slug: string;
1802
1417
  projectID: string;
1418
+ workspaceID?: string;
1803
1419
  directory: string;
1804
1420
  parentID?: string;
1805
1421
  summary?: {
@@ -2124,6 +1740,7 @@ export type ProjectListData = {
2124
1740
  path?: never;
2125
1741
  query?: {
2126
1742
  directory?: string;
1743
+ workspace?: string;
2127
1744
  };
2128
1745
  url: "/project";
2129
1746
  };
@@ -2139,6 +1756,7 @@ export type ProjectCurrentData = {
2139
1756
  path?: never;
2140
1757
  query?: {
2141
1758
  directory?: string;
1759
+ workspace?: string;
2142
1760
  };
2143
1761
  url: "/project/current";
2144
1762
  };
@@ -2149,6 +1767,22 @@ export type ProjectCurrentResponses = {
2149
1767
  200: Project;
2150
1768
  };
2151
1769
  export type ProjectCurrentResponse = ProjectCurrentResponses[keyof ProjectCurrentResponses];
1770
+ export type ProjectInitGitData = {
1771
+ body?: never;
1772
+ path?: never;
1773
+ query?: {
1774
+ directory?: string;
1775
+ workspace?: string;
1776
+ };
1777
+ url: "/project/git/init";
1778
+ };
1779
+ export type ProjectInitGitResponses = {
1780
+ /**
1781
+ * Project information after git initialization
1782
+ */
1783
+ 200: Project;
1784
+ };
1785
+ export type ProjectInitGitResponse = ProjectInitGitResponses[keyof ProjectInitGitResponses];
2152
1786
  export type ProjectUpdateData = {
2153
1787
  body?: {
2154
1788
  name?: string;
@@ -2169,6 +1803,7 @@ export type ProjectUpdateData = {
2169
1803
  };
2170
1804
  query?: {
2171
1805
  directory?: string;
1806
+ workspace?: string;
2172
1807
  };
2173
1808
  url: "/project/{projectID}";
2174
1809
  };
@@ -2195,6 +1830,7 @@ export type PtyListData = {
2195
1830
  path?: never;
2196
1831
  query?: {
2197
1832
  directory?: string;
1833
+ workspace?: string;
2198
1834
  };
2199
1835
  url: "/pty";
2200
1836
  };
@@ -2218,6 +1854,7 @@ export type PtyCreateData = {
2218
1854
  path?: never;
2219
1855
  query?: {
2220
1856
  directory?: string;
1857
+ workspace?: string;
2221
1858
  };
2222
1859
  url: "/pty";
2223
1860
  };
@@ -2242,6 +1879,7 @@ export type PtyRemoveData = {
2242
1879
  };
2243
1880
  query?: {
2244
1881
  directory?: string;
1882
+ workspace?: string;
2245
1883
  };
2246
1884
  url: "/pty/{ptyID}";
2247
1885
  };
@@ -2266,6 +1904,7 @@ export type PtyGetData = {
2266
1904
  };
2267
1905
  query?: {
2268
1906
  directory?: string;
1907
+ workspace?: string;
2269
1908
  };
2270
1909
  url: "/pty/{ptyID}";
2271
1910
  };
@@ -2296,6 +1935,7 @@ export type PtyUpdateData = {
2296
1935
  };
2297
1936
  query?: {
2298
1937
  directory?: string;
1938
+ workspace?: string;
2299
1939
  };
2300
1940
  url: "/pty/{ptyID}";
2301
1941
  };
@@ -2320,6 +1960,7 @@ export type PtyConnectData = {
2320
1960
  };
2321
1961
  query?: {
2322
1962
  directory?: string;
1963
+ workspace?: string;
2323
1964
  };
2324
1965
  url: "/pty/{ptyID}/connect";
2325
1966
  };
@@ -2342,6 +1983,7 @@ export type ConfigGetData = {
2342
1983
  path?: never;
2343
1984
  query?: {
2344
1985
  directory?: string;
1986
+ workspace?: string;
2345
1987
  };
2346
1988
  url: "/config";
2347
1989
  };
@@ -2357,6 +1999,7 @@ export type ConfigUpdateData = {
2357
1999
  path?: never;
2358
2000
  query?: {
2359
2001
  directory?: string;
2002
+ workspace?: string;
2360
2003
  };
2361
2004
  url: "/config";
2362
2005
  };
@@ -2379,6 +2022,7 @@ export type ConfigProvidersData = {
2379
2022
  path?: never;
2380
2023
  query?: {
2381
2024
  directory?: string;
2025
+ workspace?: string;
2382
2026
  };
2383
2027
  url: "/config/providers";
2384
2028
  };
@@ -2399,6 +2043,7 @@ export type ToolIdsData = {
2399
2043
  path?: never;
2400
2044
  query?: {
2401
2045
  directory?: string;
2046
+ workspace?: string;
2402
2047
  };
2403
2048
  url: "/experimental/tool/ids";
2404
2049
  };
@@ -2421,6 +2066,7 @@ export type ToolListData = {
2421
2066
  path?: never;
2422
2067
  query: {
2423
2068
  directory?: string;
2069
+ workspace?: string;
2424
2070
  provider: string;
2425
2071
  model: string;
2426
2072
  };
@@ -2440,11 +2086,81 @@ export type ToolListResponses = {
2440
2086
  200: ToolList;
2441
2087
  };
2442
2088
  export type ToolListResponse = ToolListResponses[keyof ToolListResponses];
2089
+ export type ExperimentalWorkspaceListData = {
2090
+ body?: never;
2091
+ path?: never;
2092
+ query?: {
2093
+ directory?: string;
2094
+ workspace?: string;
2095
+ };
2096
+ url: "/experimental/workspace";
2097
+ };
2098
+ export type ExperimentalWorkspaceListResponses = {
2099
+ /**
2100
+ * Workspaces
2101
+ */
2102
+ 200: Array<Workspace>;
2103
+ };
2104
+ export type ExperimentalWorkspaceListResponse = ExperimentalWorkspaceListResponses[keyof ExperimentalWorkspaceListResponses];
2105
+ export type ExperimentalWorkspaceCreateData = {
2106
+ body?: {
2107
+ id?: string;
2108
+ type: string;
2109
+ branch: string | null;
2110
+ extra: unknown | null;
2111
+ };
2112
+ path?: never;
2113
+ query?: {
2114
+ directory?: string;
2115
+ workspace?: string;
2116
+ };
2117
+ url: "/experimental/workspace";
2118
+ };
2119
+ export type ExperimentalWorkspaceCreateErrors = {
2120
+ /**
2121
+ * Bad request
2122
+ */
2123
+ 400: BadRequestError;
2124
+ };
2125
+ export type ExperimentalWorkspaceCreateError = ExperimentalWorkspaceCreateErrors[keyof ExperimentalWorkspaceCreateErrors];
2126
+ export type ExperimentalWorkspaceCreateResponses = {
2127
+ /**
2128
+ * Workspace created
2129
+ */
2130
+ 200: Workspace;
2131
+ };
2132
+ export type ExperimentalWorkspaceCreateResponse = ExperimentalWorkspaceCreateResponses[keyof ExperimentalWorkspaceCreateResponses];
2133
+ export type ExperimentalWorkspaceRemoveData = {
2134
+ body?: never;
2135
+ path: {
2136
+ id: string;
2137
+ };
2138
+ query?: {
2139
+ directory?: string;
2140
+ workspace?: string;
2141
+ };
2142
+ url: "/experimental/workspace/{id}";
2143
+ };
2144
+ export type ExperimentalWorkspaceRemoveErrors = {
2145
+ /**
2146
+ * Bad request
2147
+ */
2148
+ 400: BadRequestError;
2149
+ };
2150
+ export type ExperimentalWorkspaceRemoveError = ExperimentalWorkspaceRemoveErrors[keyof ExperimentalWorkspaceRemoveErrors];
2151
+ export type ExperimentalWorkspaceRemoveResponses = {
2152
+ /**
2153
+ * Workspace removed
2154
+ */
2155
+ 200: Workspace;
2156
+ };
2157
+ export type ExperimentalWorkspaceRemoveResponse = ExperimentalWorkspaceRemoveResponses[keyof ExperimentalWorkspaceRemoveResponses];
2443
2158
  export type WorktreeRemoveData = {
2444
2159
  body?: WorktreeRemoveInput;
2445
2160
  path?: never;
2446
2161
  query?: {
2447
2162
  directory?: string;
2163
+ workspace?: string;
2448
2164
  };
2449
2165
  url: "/experimental/worktree";
2450
2166
  };
@@ -2467,6 +2183,7 @@ export type WorktreeListData = {
2467
2183
  path?: never;
2468
2184
  query?: {
2469
2185
  directory?: string;
2186
+ workspace?: string;
2470
2187
  };
2471
2188
  url: "/experimental/worktree";
2472
2189
  };
@@ -2482,6 +2199,7 @@ export type WorktreeCreateData = {
2482
2199
  path?: never;
2483
2200
  query?: {
2484
2201
  directory?: string;
2202
+ workspace?: string;
2485
2203
  };
2486
2204
  url: "/experimental/worktree";
2487
2205
  };
@@ -2504,6 +2222,7 @@ export type WorktreeResetData = {
2504
2222
  path?: never;
2505
2223
  query?: {
2506
2224
  directory?: string;
2225
+ workspace?: string;
2507
2226
  };
2508
2227
  url: "/experimental/worktree/reset";
2509
2228
  };
@@ -2529,6 +2248,7 @@ export type ExperimentalSessionListData = {
2529
2248
  * Filter sessions by project directory
2530
2249
  */
2531
2250
  directory?: string;
2251
+ workspace?: string;
2532
2252
  /**
2533
2253
  * Only return root sessions (no parentID)
2534
2254
  */
@@ -2568,6 +2288,7 @@ export type ExperimentalResourceListData = {
2568
2288
  path?: never;
2569
2289
  query?: {
2570
2290
  directory?: string;
2291
+ workspace?: string;
2571
2292
  };
2572
2293
  url: "/experimental/resource";
2573
2294
  };
@@ -2588,6 +2309,7 @@ export type SessionListData = {
2588
2309
  * Filter sessions by project directory
2589
2310
  */
2590
2311
  directory?: string;
2312
+ workspace?: string;
2591
2313
  /**
2592
2314
  * Only return root sessions (no parentID)
2593
2315
  */
@@ -2623,6 +2345,7 @@ export type SessionCreateData = {
2623
2345
  path?: never;
2624
2346
  query?: {
2625
2347
  directory?: string;
2348
+ workspace?: string;
2626
2349
  };
2627
2350
  url: "/session";
2628
2351
  };
@@ -2645,6 +2368,7 @@ export type SessionStatusData = {
2645
2368
  path?: never;
2646
2369
  query?: {
2647
2370
  directory?: string;
2371
+ workspace?: string;
2648
2372
  };
2649
2373
  url: "/session/status";
2650
2374
  };
@@ -2671,6 +2395,7 @@ export type SessionDeleteData = {
2671
2395
  };
2672
2396
  query?: {
2673
2397
  directory?: string;
2398
+ workspace?: string;
2674
2399
  };
2675
2400
  url: "/session/{sessionID}";
2676
2401
  };
@@ -2699,6 +2424,7 @@ export type SessionGetData = {
2699
2424
  };
2700
2425
  query?: {
2701
2426
  directory?: string;
2427
+ workspace?: string;
2702
2428
  };
2703
2429
  url: "/session/{sessionID}";
2704
2430
  };
@@ -2732,6 +2458,7 @@ export type SessionUpdateData = {
2732
2458
  };
2733
2459
  query?: {
2734
2460
  directory?: string;
2461
+ workspace?: string;
2735
2462
  };
2736
2463
  url: "/session/{sessionID}";
2737
2464
  };
@@ -2760,6 +2487,7 @@ export type SessionChildrenData = {
2760
2487
  };
2761
2488
  query?: {
2762
2489
  directory?: string;
2490
+ workspace?: string;
2763
2491
  };
2764
2492
  url: "/session/{sessionID}/children";
2765
2493
  };
@@ -2791,6 +2519,7 @@ export type SessionTodoData = {
2791
2519
  };
2792
2520
  query?: {
2793
2521
  directory?: string;
2522
+ workspace?: string;
2794
2523
  };
2795
2524
  url: "/session/{sessionID}/todo";
2796
2525
  };
@@ -2826,6 +2555,7 @@ export type SessionInitData = {
2826
2555
  };
2827
2556
  query?: {
2828
2557
  directory?: string;
2558
+ workspace?: string;
2829
2559
  };
2830
2560
  url: "/session/{sessionID}/init";
2831
2561
  };
@@ -2856,6 +2586,7 @@ export type SessionForkData = {
2856
2586
  };
2857
2587
  query?: {
2858
2588
  directory?: string;
2589
+ workspace?: string;
2859
2590
  };
2860
2591
  url: "/session/{sessionID}/fork";
2861
2592
  };
@@ -2873,6 +2604,7 @@ export type SessionAbortData = {
2873
2604
  };
2874
2605
  query?: {
2875
2606
  directory?: string;
2607
+ workspace?: string;
2876
2608
  };
2877
2609
  url: "/session/{sessionID}/abort";
2878
2610
  };
@@ -2901,6 +2633,7 @@ export type SessionUnshareData = {
2901
2633
  };
2902
2634
  query?: {
2903
2635
  directory?: string;
2636
+ workspace?: string;
2904
2637
  };
2905
2638
  url: "/session/{sessionID}/share";
2906
2639
  };
@@ -2929,6 +2662,7 @@ export type SessionShareData = {
2929
2662
  };
2930
2663
  query?: {
2931
2664
  directory?: string;
2665
+ workspace?: string;
2932
2666
  };
2933
2667
  url: "/session/{sessionID}/share";
2934
2668
  };
@@ -2957,6 +2691,7 @@ export type SessionDiffData = {
2957
2691
  };
2958
2692
  query?: {
2959
2693
  directory?: string;
2694
+ workspace?: string;
2960
2695
  messageID?: string;
2961
2696
  };
2962
2697
  url: "/session/{sessionID}/diff";
@@ -2982,6 +2717,7 @@ export type SessionSummarizeData = {
2982
2717
  };
2983
2718
  query?: {
2984
2719
  directory?: string;
2720
+ workspace?: string;
2985
2721
  };
2986
2722
  url: "/session/{sessionID}/summarize";
2987
2723
  };
@@ -3013,6 +2749,7 @@ export type SessionMessagesData = {
3013
2749
  };
3014
2750
  query?: {
3015
2751
  directory?: string;
2752
+ workspace?: string;
3016
2753
  limit?: number;
3017
2754
  };
3018
2755
  url: "/session/{sessionID}/message";
@@ -3066,6 +2803,7 @@ export type SessionPromptData = {
3066
2803
  };
3067
2804
  query?: {
3068
2805
  directory?: string;
2806
+ workspace?: string;
3069
2807
  };
3070
2808
  url: "/session/{sessionID}/message";
3071
2809
  };
@@ -3090,6 +2828,42 @@ export type SessionPromptResponses = {
3090
2828
  };
3091
2829
  };
3092
2830
  export type SessionPromptResponse = SessionPromptResponses[keyof SessionPromptResponses];
2831
+ export type SessionDeleteMessageData = {
2832
+ body?: never;
2833
+ path: {
2834
+ /**
2835
+ * Session ID
2836
+ */
2837
+ sessionID: string;
2838
+ /**
2839
+ * Message ID
2840
+ */
2841
+ messageID: string;
2842
+ };
2843
+ query?: {
2844
+ directory?: string;
2845
+ workspace?: string;
2846
+ };
2847
+ url: "/session/{sessionID}/message/{messageID}";
2848
+ };
2849
+ export type SessionDeleteMessageErrors = {
2850
+ /**
2851
+ * Bad request
2852
+ */
2853
+ 400: BadRequestError;
2854
+ /**
2855
+ * Not found
2856
+ */
2857
+ 404: NotFoundError;
2858
+ };
2859
+ export type SessionDeleteMessageError = SessionDeleteMessageErrors[keyof SessionDeleteMessageErrors];
2860
+ export type SessionDeleteMessageResponses = {
2861
+ /**
2862
+ * Successfully deleted message
2863
+ */
2864
+ 200: boolean;
2865
+ };
2866
+ export type SessionDeleteMessageResponse = SessionDeleteMessageResponses[keyof SessionDeleteMessageResponses];
3093
2867
  export type SessionMessageData = {
3094
2868
  body?: never;
3095
2869
  path: {
@@ -3104,6 +2878,7 @@ export type SessionMessageData = {
3104
2878
  };
3105
2879
  query?: {
3106
2880
  directory?: string;
2881
+ workspace?: string;
3107
2882
  };
3108
2883
  url: "/session/{sessionID}/message/{messageID}";
3109
2884
  };
@@ -3146,6 +2921,7 @@ export type PartDeleteData = {
3146
2921
  };
3147
2922
  query?: {
3148
2923
  directory?: string;
2924
+ workspace?: string;
3149
2925
  };
3150
2926
  url: "/session/{sessionID}/message/{messageID}/part/{partID}";
3151
2927
  };
@@ -3185,6 +2961,7 @@ export type PartUpdateData = {
3185
2961
  };
3186
2962
  query?: {
3187
2963
  directory?: string;
2964
+ workspace?: string;
3188
2965
  };
3189
2966
  url: "/session/{sessionID}/message/{messageID}/part/{partID}";
3190
2967
  };
@@ -3234,6 +3011,7 @@ export type SessionPromptAsyncData = {
3234
3011
  };
3235
3012
  query?: {
3236
3013
  directory?: string;
3014
+ workspace?: string;
3237
3015
  };
3238
3016
  url: "/session/{sessionID}/prompt_async";
3239
3017
  };
@@ -3280,6 +3058,7 @@ export type SessionCommandData = {
3280
3058
  };
3281
3059
  query?: {
3282
3060
  directory?: string;
3061
+ workspace?: string;
3283
3062
  };
3284
3063
  url: "/session/{sessionID}/command";
3285
3064
  };
@@ -3321,6 +3100,7 @@ export type SessionShellData = {
3321
3100
  };
3322
3101
  query?: {
3323
3102
  directory?: string;
3103
+ workspace?: string;
3324
3104
  };
3325
3105
  url: "/session/{sessionID}/shell";
3326
3106
  };
@@ -3352,6 +3132,7 @@ export type SessionRevertData = {
3352
3132
  };
3353
3133
  query?: {
3354
3134
  directory?: string;
3135
+ workspace?: string;
3355
3136
  };
3356
3137
  url: "/session/{sessionID}/revert";
3357
3138
  };
@@ -3380,6 +3161,7 @@ export type SessionUnrevertData = {
3380
3161
  };
3381
3162
  query?: {
3382
3163
  directory?: string;
3164
+ workspace?: string;
3383
3165
  };
3384
3166
  url: "/session/{sessionID}/unrevert";
3385
3167
  };
@@ -3411,6 +3193,7 @@ export type PermissionRespondData = {
3411
3193
  };
3412
3194
  query?: {
3413
3195
  directory?: string;
3196
+ workspace?: string;
3414
3197
  };
3415
3198
  url: "/session/{sessionID}/permissions/{permissionID}";
3416
3199
  };
@@ -3442,6 +3225,7 @@ export type PermissionReplyData = {
3442
3225
  };
3443
3226
  query?: {
3444
3227
  directory?: string;
3228
+ workspace?: string;
3445
3229
  };
3446
3230
  url: "/permission/{requestID}/reply";
3447
3231
  };
@@ -3468,6 +3252,7 @@ export type PermissionListData = {
3468
3252
  path?: never;
3469
3253
  query?: {
3470
3254
  directory?: string;
3255
+ workspace?: string;
3471
3256
  };
3472
3257
  url: "/permission";
3473
3258
  };
@@ -3483,6 +3268,7 @@ export type QuestionListData = {
3483
3268
  path?: never;
3484
3269
  query?: {
3485
3270
  directory?: string;
3271
+ workspace?: string;
3486
3272
  };
3487
3273
  url: "/question";
3488
3274
  };
@@ -3505,6 +3291,7 @@ export type QuestionReplyData = {
3505
3291
  };
3506
3292
  query?: {
3507
3293
  directory?: string;
3294
+ workspace?: string;
3508
3295
  };
3509
3296
  url: "/question/{requestID}/reply";
3510
3297
  };
@@ -3533,6 +3320,7 @@ export type QuestionRejectData = {
3533
3320
  };
3534
3321
  query?: {
3535
3322
  directory?: string;
3323
+ workspace?: string;
3536
3324
  };
3537
3325
  url: "/question/{requestID}/reject";
3538
3326
  };
@@ -3559,6 +3347,7 @@ export type ProviderListData = {
3559
3347
  path?: never;
3560
3348
  query?: {
3561
3349
  directory?: string;
3350
+ workspace?: string;
3562
3351
  };
3563
3352
  url: "/provider";
3564
3353
  };
@@ -3639,6 +3428,7 @@ export type ProviderAuthData = {
3639
3428
  path?: never;
3640
3429
  query?: {
3641
3430
  directory?: string;
3431
+ workspace?: string;
3642
3432
  };
3643
3433
  url: "/provider/auth";
3644
3434
  };
@@ -3666,6 +3456,7 @@ export type ProviderOauthAuthorizeData = {
3666
3456
  };
3667
3457
  query?: {
3668
3458
  directory?: string;
3459
+ workspace?: string;
3669
3460
  };
3670
3461
  url: "/provider/{providerID}/oauth/authorize";
3671
3462
  };
@@ -3702,6 +3493,7 @@ export type ProviderOauthCallbackData = {
3702
3493
  };
3703
3494
  query?: {
3704
3495
  directory?: string;
3496
+ workspace?: string;
3705
3497
  };
3706
3498
  url: "/provider/{providerID}/oauth/callback";
3707
3499
  };
@@ -3724,6 +3516,7 @@ export type FindTextData = {
3724
3516
  path?: never;
3725
3517
  query: {
3726
3518
  directory?: string;
3519
+ workspace?: string;
3727
3520
  pattern: string;
3728
3521
  };
3729
3522
  url: "/find";
@@ -3756,6 +3549,7 @@ export type FindFilesData = {
3756
3549
  path?: never;
3757
3550
  query: {
3758
3551
  directory?: string;
3552
+ workspace?: string;
3759
3553
  query: string;
3760
3554
  dirs?: "true" | "false";
3761
3555
  type?: "file" | "directory" | "all";
@@ -3775,6 +3569,7 @@ export type FindSymbolsData = {
3775
3569
  path?: never;
3776
3570
  query: {
3777
3571
  directory?: string;
3572
+ workspace?: string;
3778
3573
  query: string;
3779
3574
  };
3780
3575
  url: "/find/symbol";
@@ -3791,6 +3586,7 @@ export type FileListData = {
3791
3586
  path?: never;
3792
3587
  query: {
3793
3588
  directory?: string;
3589
+ workspace?: string;
3794
3590
  path: string;
3795
3591
  };
3796
3592
  url: "/file";
@@ -3807,6 +3603,7 @@ export type FileReadData = {
3807
3603
  path?: never;
3808
3604
  query: {
3809
3605
  directory?: string;
3606
+ workspace?: string;
3810
3607
  path: string;
3811
3608
  };
3812
3609
  url: "/file/content";
@@ -3823,6 +3620,7 @@ export type FileStatusData = {
3823
3620
  path?: never;
3824
3621
  query?: {
3825
3622
  directory?: string;
3623
+ workspace?: string;
3826
3624
  };
3827
3625
  url: "/file/status";
3828
3626
  };
@@ -3838,6 +3636,7 @@ export type McpStatusData = {
3838
3636
  path?: never;
3839
3637
  query?: {
3840
3638
  directory?: string;
3639
+ workspace?: string;
3841
3640
  };
3842
3641
  url: "/mcp";
3843
3642
  };
@@ -3858,6 +3657,7 @@ export type McpAddData = {
3858
3657
  path?: never;
3859
3658
  query?: {
3860
3659
  directory?: string;
3660
+ workspace?: string;
3861
3661
  };
3862
3662
  url: "/mcp";
3863
3663
  };
@@ -3884,6 +3684,7 @@ export type McpAuthRemoveData = {
3884
3684
  };
3885
3685
  query?: {
3886
3686
  directory?: string;
3687
+ workspace?: string;
3887
3688
  };
3888
3689
  url: "/mcp/{name}/auth";
3889
3690
  };
@@ -3910,6 +3711,7 @@ export type McpAuthStartData = {
3910
3711
  };
3911
3712
  query?: {
3912
3713
  directory?: string;
3714
+ workspace?: string;
3913
3715
  };
3914
3716
  url: "/mcp/{name}/auth";
3915
3717
  };
@@ -3948,6 +3750,7 @@ export type McpAuthCallbackData = {
3948
3750
  };
3949
3751
  query?: {
3950
3752
  directory?: string;
3753
+ workspace?: string;
3951
3754
  };
3952
3755
  url: "/mcp/{name}/auth/callback";
3953
3756
  };
@@ -3976,6 +3779,7 @@ export type McpAuthAuthenticateData = {
3976
3779
  };
3977
3780
  query?: {
3978
3781
  directory?: string;
3782
+ workspace?: string;
3979
3783
  };
3980
3784
  url: "/mcp/{name}/auth/authenticate";
3981
3785
  };
@@ -4004,6 +3808,7 @@ export type McpConnectData = {
4004
3808
  };
4005
3809
  query?: {
4006
3810
  directory?: string;
3811
+ workspace?: string;
4007
3812
  };
4008
3813
  url: "/mcp/{name}/connect";
4009
3814
  };
@@ -4021,6 +3826,7 @@ export type McpDisconnectData = {
4021
3826
  };
4022
3827
  query?: {
4023
3828
  directory?: string;
3829
+ workspace?: string;
4024
3830
  };
4025
3831
  url: "/mcp/{name}/disconnect";
4026
3832
  };
@@ -4038,6 +3844,7 @@ export type TuiAppendPromptData = {
4038
3844
  path?: never;
4039
3845
  query?: {
4040
3846
  directory?: string;
3847
+ workspace?: string;
4041
3848
  };
4042
3849
  url: "/tui/append-prompt";
4043
3850
  };
@@ -4060,6 +3867,7 @@ export type TuiOpenHelpData = {
4060
3867
  path?: never;
4061
3868
  query?: {
4062
3869
  directory?: string;
3870
+ workspace?: string;
4063
3871
  };
4064
3872
  url: "/tui/open-help";
4065
3873
  };
@@ -4075,6 +3883,7 @@ export type TuiOpenSessionsData = {
4075
3883
  path?: never;
4076
3884
  query?: {
4077
3885
  directory?: string;
3886
+ workspace?: string;
4078
3887
  };
4079
3888
  url: "/tui/open-sessions";
4080
3889
  };
@@ -4090,6 +3899,7 @@ export type TuiOpenThemesData = {
4090
3899
  path?: never;
4091
3900
  query?: {
4092
3901
  directory?: string;
3902
+ workspace?: string;
4093
3903
  };
4094
3904
  url: "/tui/open-themes";
4095
3905
  };
@@ -4105,6 +3915,7 @@ export type TuiOpenModelsData = {
4105
3915
  path?: never;
4106
3916
  query?: {
4107
3917
  directory?: string;
3918
+ workspace?: string;
4108
3919
  };
4109
3920
  url: "/tui/open-models";
4110
3921
  };
@@ -4120,6 +3931,7 @@ export type TuiSubmitPromptData = {
4120
3931
  path?: never;
4121
3932
  query?: {
4122
3933
  directory?: string;
3934
+ workspace?: string;
4123
3935
  };
4124
3936
  url: "/tui/submit-prompt";
4125
3937
  };
@@ -4135,6 +3947,7 @@ export type TuiClearPromptData = {
4135
3947
  path?: never;
4136
3948
  query?: {
4137
3949
  directory?: string;
3950
+ workspace?: string;
4138
3951
  };
4139
3952
  url: "/tui/clear-prompt";
4140
3953
  };
@@ -4152,6 +3965,7 @@ export type TuiExecuteCommandData = {
4152
3965
  path?: never;
4153
3966
  query?: {
4154
3967
  directory?: string;
3968
+ workspace?: string;
4155
3969
  };
4156
3970
  url: "/tui/execute-command";
4157
3971
  };
@@ -4182,6 +3996,7 @@ export type TuiShowToastData = {
4182
3996
  path?: never;
4183
3997
  query?: {
4184
3998
  directory?: string;
3999
+ workspace?: string;
4185
4000
  };
4186
4001
  url: "/tui/show-toast";
4187
4002
  };
@@ -4197,6 +4012,7 @@ export type TuiPublishData = {
4197
4012
  path?: never;
4198
4013
  query?: {
4199
4014
  directory?: string;
4015
+ workspace?: string;
4200
4016
  };
4201
4017
  url: "/tui/publish";
4202
4018
  };
@@ -4224,6 +4040,7 @@ export type TuiSelectSessionData = {
4224
4040
  path?: never;
4225
4041
  query?: {
4226
4042
  directory?: string;
4043
+ workspace?: string;
4227
4044
  };
4228
4045
  url: "/tui/select-session";
4229
4046
  };
@@ -4250,6 +4067,7 @@ export type TuiControlNextData = {
4250
4067
  path?: never;
4251
4068
  query?: {
4252
4069
  directory?: string;
4070
+ workspace?: string;
4253
4071
  };
4254
4072
  url: "/tui/control/next";
4255
4073
  };
@@ -4268,6 +4086,7 @@ export type TuiControlResponseData = {
4268
4086
  path?: never;
4269
4087
  query?: {
4270
4088
  directory?: string;
4089
+ workspace?: string;
4271
4090
  };
4272
4091
  url: "/tui/control/response";
4273
4092
  };
@@ -4283,6 +4102,7 @@ export type InstanceDisposeData = {
4283
4102
  path?: never;
4284
4103
  query?: {
4285
4104
  directory?: string;
4105
+ workspace?: string;
4286
4106
  };
4287
4107
  url: "/instance/dispose";
4288
4108
  };
@@ -4298,6 +4118,7 @@ export type PathGetData = {
4298
4118
  path?: never;
4299
4119
  query?: {
4300
4120
  directory?: string;
4121
+ workspace?: string;
4301
4122
  };
4302
4123
  url: "/path";
4303
4124
  };
@@ -4313,6 +4134,7 @@ export type VcsGetData = {
4313
4134
  path?: never;
4314
4135
  query?: {
4315
4136
  directory?: string;
4137
+ workspace?: string;
4316
4138
  };
4317
4139
  url: "/vcs";
4318
4140
  };
@@ -4328,6 +4150,7 @@ export type CommandListData = {
4328
4150
  path?: never;
4329
4151
  query?: {
4330
4152
  directory?: string;
4153
+ workspace?: string;
4331
4154
  };
4332
4155
  url: "/command";
4333
4156
  };
@@ -4362,6 +4185,7 @@ export type AppLogData = {
4362
4185
  path?: never;
4363
4186
  query?: {
4364
4187
  directory?: string;
4188
+ workspace?: string;
4365
4189
  };
4366
4190
  url: "/log";
4367
4191
  };
@@ -4384,6 +4208,7 @@ export type AppAgentsData = {
4384
4208
  path?: never;
4385
4209
  query?: {
4386
4210
  directory?: string;
4211
+ workspace?: string;
4387
4212
  };
4388
4213
  url: "/agent";
4389
4214
  };
@@ -4399,6 +4224,7 @@ export type AppSkillsData = {
4399
4224
  path?: never;
4400
4225
  query?: {
4401
4226
  directory?: string;
4227
+ workspace?: string;
4402
4228
  };
4403
4229
  url: "/skill";
4404
4230
  };
@@ -4419,6 +4245,7 @@ export type LspStatusData = {
4419
4245
  path?: never;
4420
4246
  query?: {
4421
4247
  directory?: string;
4248
+ workspace?: string;
4422
4249
  };
4423
4250
  url: "/lsp";
4424
4251
  };
@@ -4434,6 +4261,7 @@ export type FormatterStatusData = {
4434
4261
  path?: never;
4435
4262
  query?: {
4436
4263
  directory?: string;
4264
+ workspace?: string;
4437
4265
  };
4438
4266
  url: "/formatter";
4439
4267
  };
@@ -4449,6 +4277,7 @@ export type EventSubscribeData = {
4449
4277
  path?: never;
4450
4278
  query?: {
4451
4279
  directory?: string;
4280
+ workspace?: string;
4452
4281
  };
4453
4282
  url: "/event";
4454
4283
  };