@opencode-ai/sdk 0.15.2 → 0.15.4
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/gen/sdk.gen.d.ts +22 -22
- package/dist/gen/types.gen.d.ts +237 -8
- package/package.json +5 -4
package/dist/gen/sdk.gen.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Options as ClientOptions, TDataShape, Client } from "./client/index.js";
|
|
2
|
-
import type { ProjectListData, ProjectListResponses, ProjectCurrentData, ProjectCurrentResponses, ConfigGetData, ConfigGetResponses, ConfigUpdateData, ConfigUpdateResponses, ConfigUpdateErrors, ToolIdsData, ToolIdsResponses, ToolIdsErrors, ToolListData, ToolListResponses, ToolListErrors, PathGetData, PathGetResponses, SessionListData, SessionListResponses, SessionCreateData, SessionCreateResponses, SessionCreateErrors, SessionDeleteData, SessionDeleteResponses, SessionGetData, SessionGetResponses, SessionUpdateData, SessionUpdateResponses, SessionChildrenData, SessionChildrenResponses, SessionTodoData, SessionTodoResponses, SessionInitData, SessionInitResponses, SessionForkData, SessionForkResponses, SessionAbortData, SessionAbortResponses, SessionUnshareData, SessionUnshareResponses, SessionShareData, SessionShareResponses, SessionSummarizeData, SessionSummarizeResponses, SessionMessagesData, SessionMessagesResponses, SessionPromptData, SessionPromptResponses, SessionMessageData, SessionMessageResponses, SessionCommandData, SessionCommandResponses, SessionShellData, SessionShellResponses, SessionRevertData, SessionRevertResponses, SessionUnrevertData, SessionUnrevertResponses, PostSessionIdPermissionsPermissionIdData, PostSessionIdPermissionsPermissionIdResponses, CommandListData, CommandListResponses, ConfigProvidersData, ConfigProvidersResponses, FindTextData, FindTextResponses, FindFilesData, FindFilesResponses, FindSymbolsData, FindSymbolsResponses, FileListData, FileListResponses, FileReadData, FileReadResponses, FileStatusData, FileStatusResponses, AppLogData, AppLogResponses, AppAgentsData, AppAgentsResponses, McpStatusData, McpStatusResponses, TuiAppendPromptData, TuiAppendPromptResponses, TuiOpenHelpData, TuiOpenHelpResponses, TuiOpenSessionsData, TuiOpenSessionsResponses, TuiOpenThemesData, TuiOpenThemesResponses, TuiOpenModelsData, TuiOpenModelsResponses, TuiSubmitPromptData, TuiSubmitPromptResponses, TuiClearPromptData, TuiClearPromptResponses, TuiExecuteCommandData, TuiExecuteCommandResponses, TuiShowToastData, TuiShowToastResponses, AuthSetData, AuthSetResponses, AuthSetErrors, EventSubscribeData, EventSubscribeResponses } from "./types.gen.js";
|
|
2
|
+
import type { ProjectListData, ProjectListResponses, ProjectCurrentData, ProjectCurrentResponses, ConfigGetData, ConfigGetResponses, ConfigUpdateData, ConfigUpdateResponses, ConfigUpdateErrors, ToolIdsData, ToolIdsResponses, ToolIdsErrors, ToolListData, ToolListResponses, ToolListErrors, PathGetData, PathGetResponses, SessionListData, SessionListResponses, SessionCreateData, SessionCreateResponses, SessionCreateErrors, SessionDeleteData, SessionDeleteResponses, SessionDeleteErrors, SessionGetData, SessionGetResponses, SessionGetErrors, SessionUpdateData, SessionUpdateResponses, SessionUpdateErrors, SessionChildrenData, SessionChildrenResponses, SessionChildrenErrors, SessionTodoData, SessionTodoResponses, SessionTodoErrors, SessionInitData, SessionInitResponses, SessionInitErrors, SessionForkData, SessionForkResponses, SessionAbortData, SessionAbortResponses, SessionAbortErrors, SessionUnshareData, SessionUnshareResponses, SessionUnshareErrors, SessionShareData, SessionShareResponses, SessionShareErrors, SessionSummarizeData, SessionSummarizeResponses, SessionSummarizeErrors, SessionMessagesData, SessionMessagesResponses, SessionMessagesErrors, SessionPromptData, SessionPromptResponses, SessionPromptErrors, SessionMessageData, SessionMessageResponses, SessionMessageErrors, SessionCommandData, SessionCommandResponses, SessionCommandErrors, SessionShellData, SessionShellResponses, SessionShellErrors, SessionRevertData, SessionRevertResponses, SessionRevertErrors, SessionUnrevertData, SessionUnrevertResponses, SessionUnrevertErrors, PostSessionIdPermissionsPermissionIdData, PostSessionIdPermissionsPermissionIdResponses, PostSessionIdPermissionsPermissionIdErrors, CommandListData, CommandListResponses, ConfigProvidersData, ConfigProvidersResponses, FindTextData, FindTextResponses, FindFilesData, FindFilesResponses, FindSymbolsData, FindSymbolsResponses, FileListData, FileListResponses, FileReadData, FileReadResponses, FileStatusData, FileStatusResponses, AppLogData, AppLogResponses, AppLogErrors, AppAgentsData, AppAgentsResponses, McpStatusData, McpStatusResponses, TuiAppendPromptData, TuiAppendPromptResponses, TuiAppendPromptErrors, TuiOpenHelpData, TuiOpenHelpResponses, TuiOpenSessionsData, TuiOpenSessionsResponses, TuiOpenThemesData, TuiOpenThemesResponses, TuiOpenModelsData, TuiOpenModelsResponses, TuiSubmitPromptData, TuiSubmitPromptResponses, TuiClearPromptData, TuiClearPromptResponses, TuiExecuteCommandData, TuiExecuteCommandResponses, TuiExecuteCommandErrors, TuiShowToastData, TuiShowToastResponses, AuthSetData, AuthSetResponses, AuthSetErrors, EventSubscribeData, EventSubscribeResponses } from "./types.gen.js";
|
|
3
3
|
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = ClientOptions<TData, ThrowOnError> & {
|
|
4
4
|
/**
|
|
5
5
|
* You can provide a client instance returned by `createClient()` instead of
|
|
@@ -71,27 +71,27 @@ declare class Session extends _HeyApiClient {
|
|
|
71
71
|
/**
|
|
72
72
|
* Delete a session and all its data
|
|
73
73
|
*/
|
|
74
|
-
delete<ThrowOnError extends boolean = false>(options: Options<SessionDeleteData, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionDeleteResponses,
|
|
74
|
+
delete<ThrowOnError extends boolean = false>(options: Options<SessionDeleteData, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionDeleteResponses, SessionDeleteErrors, ThrowOnError, "fields">;
|
|
75
75
|
/**
|
|
76
76
|
* Get session
|
|
77
77
|
*/
|
|
78
|
-
get<ThrowOnError extends boolean = false>(options: Options<SessionGetData, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionGetResponses,
|
|
78
|
+
get<ThrowOnError extends boolean = false>(options: Options<SessionGetData, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionGetResponses, SessionGetErrors, ThrowOnError, "fields">;
|
|
79
79
|
/**
|
|
80
80
|
* Update session properties
|
|
81
81
|
*/
|
|
82
|
-
update<ThrowOnError extends boolean = false>(options: Options<SessionUpdateData, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionUpdateResponses,
|
|
82
|
+
update<ThrowOnError extends boolean = false>(options: Options<SessionUpdateData, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionUpdateResponses, SessionUpdateErrors, ThrowOnError, "fields">;
|
|
83
83
|
/**
|
|
84
84
|
* Get a session's children
|
|
85
85
|
*/
|
|
86
|
-
children<ThrowOnError extends boolean = false>(options: Options<SessionChildrenData, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionChildrenResponses,
|
|
86
|
+
children<ThrowOnError extends boolean = false>(options: Options<SessionChildrenData, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionChildrenResponses, SessionChildrenErrors, ThrowOnError, "fields">;
|
|
87
87
|
/**
|
|
88
88
|
* Get the todo list for a session
|
|
89
89
|
*/
|
|
90
|
-
todo<ThrowOnError extends boolean = false>(options: Options<SessionTodoData, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionTodoResponses,
|
|
90
|
+
todo<ThrowOnError extends boolean = false>(options: Options<SessionTodoData, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionTodoResponses, SessionTodoErrors, ThrowOnError, "fields">;
|
|
91
91
|
/**
|
|
92
92
|
* Analyze the app and create an AGENTS.md file
|
|
93
93
|
*/
|
|
94
|
-
init<ThrowOnError extends boolean = false>(options: Options<SessionInitData, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionInitResponses,
|
|
94
|
+
init<ThrowOnError extends boolean = false>(options: Options<SessionInitData, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionInitResponses, SessionInitErrors, ThrowOnError, "fields">;
|
|
95
95
|
/**
|
|
96
96
|
* Fork an existing session at a specific message
|
|
97
97
|
*/
|
|
@@ -99,47 +99,47 @@ declare class Session extends _HeyApiClient {
|
|
|
99
99
|
/**
|
|
100
100
|
* Abort a session
|
|
101
101
|
*/
|
|
102
|
-
abort<ThrowOnError extends boolean = false>(options: Options<SessionAbortData, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionAbortResponses,
|
|
102
|
+
abort<ThrowOnError extends boolean = false>(options: Options<SessionAbortData, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionAbortResponses, SessionAbortErrors, ThrowOnError, "fields">;
|
|
103
103
|
/**
|
|
104
104
|
* Unshare the session
|
|
105
105
|
*/
|
|
106
|
-
unshare<ThrowOnError extends boolean = false>(options: Options<SessionUnshareData, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionUnshareResponses,
|
|
106
|
+
unshare<ThrowOnError extends boolean = false>(options: Options<SessionUnshareData, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionUnshareResponses, SessionUnshareErrors, ThrowOnError, "fields">;
|
|
107
107
|
/**
|
|
108
108
|
* Share a session
|
|
109
109
|
*/
|
|
110
|
-
share<ThrowOnError extends boolean = false>(options: Options<SessionShareData, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionShareResponses,
|
|
110
|
+
share<ThrowOnError extends boolean = false>(options: Options<SessionShareData, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionShareResponses, SessionShareErrors, ThrowOnError, "fields">;
|
|
111
111
|
/**
|
|
112
112
|
* Summarize the session
|
|
113
113
|
*/
|
|
114
|
-
summarize<ThrowOnError extends boolean = false>(options: Options<SessionSummarizeData, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionSummarizeResponses,
|
|
114
|
+
summarize<ThrowOnError extends boolean = false>(options: Options<SessionSummarizeData, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionSummarizeResponses, SessionSummarizeErrors, ThrowOnError, "fields">;
|
|
115
115
|
/**
|
|
116
116
|
* List messages for a session
|
|
117
117
|
*/
|
|
118
|
-
messages<ThrowOnError extends boolean = false>(options: Options<SessionMessagesData, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionMessagesResponses,
|
|
118
|
+
messages<ThrowOnError extends boolean = false>(options: Options<SessionMessagesData, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionMessagesResponses, SessionMessagesErrors, ThrowOnError, "fields">;
|
|
119
119
|
/**
|
|
120
120
|
* Create and send a new message to a session
|
|
121
121
|
*/
|
|
122
|
-
prompt<ThrowOnError extends boolean = false>(options: Options<SessionPromptData, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionPromptResponses,
|
|
122
|
+
prompt<ThrowOnError extends boolean = false>(options: Options<SessionPromptData, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionPromptResponses, SessionPromptErrors, ThrowOnError, "fields">;
|
|
123
123
|
/**
|
|
124
124
|
* Get a message from a session
|
|
125
125
|
*/
|
|
126
|
-
message<ThrowOnError extends boolean = false>(options: Options<SessionMessageData, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionMessageResponses,
|
|
126
|
+
message<ThrowOnError extends boolean = false>(options: Options<SessionMessageData, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionMessageResponses, SessionMessageErrors, ThrowOnError, "fields">;
|
|
127
127
|
/**
|
|
128
128
|
* Send a new command to a session
|
|
129
129
|
*/
|
|
130
|
-
command<ThrowOnError extends boolean = false>(options: Options<SessionCommandData, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionCommandResponses,
|
|
130
|
+
command<ThrowOnError extends boolean = false>(options: Options<SessionCommandData, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionCommandResponses, SessionCommandErrors, ThrowOnError, "fields">;
|
|
131
131
|
/**
|
|
132
132
|
* Run a shell command
|
|
133
133
|
*/
|
|
134
|
-
shell<ThrowOnError extends boolean = false>(options: Options<SessionShellData, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionShellResponses,
|
|
134
|
+
shell<ThrowOnError extends boolean = false>(options: Options<SessionShellData, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionShellResponses, SessionShellErrors, ThrowOnError, "fields">;
|
|
135
135
|
/**
|
|
136
136
|
* Revert a message
|
|
137
137
|
*/
|
|
138
|
-
revert<ThrowOnError extends boolean = false>(options: Options<SessionRevertData, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionRevertResponses,
|
|
138
|
+
revert<ThrowOnError extends boolean = false>(options: Options<SessionRevertData, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionRevertResponses, SessionRevertErrors, ThrowOnError, "fields">;
|
|
139
139
|
/**
|
|
140
140
|
* Restore all reverted messages
|
|
141
141
|
*/
|
|
142
|
-
unrevert<ThrowOnError extends boolean = false>(options: Options<SessionUnrevertData, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionUnrevertResponses,
|
|
142
|
+
unrevert<ThrowOnError extends boolean = false>(options: Options<SessionUnrevertData, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionUnrevertResponses, SessionUnrevertErrors, ThrowOnError, "fields">;
|
|
143
143
|
}
|
|
144
144
|
declare class Command extends _HeyApiClient {
|
|
145
145
|
/**
|
|
@@ -179,7 +179,7 @@ declare class App extends _HeyApiClient {
|
|
|
179
179
|
/**
|
|
180
180
|
* Write a log entry to the server logs
|
|
181
181
|
*/
|
|
182
|
-
log<ThrowOnError extends boolean = false>(options?: Options<AppLogData, ThrowOnError>): import("./client/types.gen.js").RequestResult<AppLogResponses,
|
|
182
|
+
log<ThrowOnError extends boolean = false>(options?: Options<AppLogData, ThrowOnError>): import("./client/types.gen.js").RequestResult<AppLogResponses, AppLogErrors, ThrowOnError, "fields">;
|
|
183
183
|
/**
|
|
184
184
|
* List all agents
|
|
185
185
|
*/
|
|
@@ -195,7 +195,7 @@ declare class Tui extends _HeyApiClient {
|
|
|
195
195
|
/**
|
|
196
196
|
* Append prompt to the TUI
|
|
197
197
|
*/
|
|
198
|
-
appendPrompt<ThrowOnError extends boolean = false>(options?: Options<TuiAppendPromptData, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiAppendPromptResponses,
|
|
198
|
+
appendPrompt<ThrowOnError extends boolean = false>(options?: Options<TuiAppendPromptData, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiAppendPromptResponses, TuiAppendPromptErrors, ThrowOnError, "fields">;
|
|
199
199
|
/**
|
|
200
200
|
* Open the help dialog
|
|
201
201
|
*/
|
|
@@ -223,7 +223,7 @@ declare class Tui extends _HeyApiClient {
|
|
|
223
223
|
/**
|
|
224
224
|
* Execute a TUI command (e.g. agent_cycle)
|
|
225
225
|
*/
|
|
226
|
-
executeCommand<ThrowOnError extends boolean = false>(options?: Options<TuiExecuteCommandData, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiExecuteCommandResponses,
|
|
226
|
+
executeCommand<ThrowOnError extends boolean = false>(options?: Options<TuiExecuteCommandData, ThrowOnError>): import("./client/types.gen.js").RequestResult<TuiExecuteCommandResponses, TuiExecuteCommandErrors, ThrowOnError, "fields">;
|
|
227
227
|
/**
|
|
228
228
|
* Show a toast notification in the TUI
|
|
229
229
|
*/
|
|
@@ -245,7 +245,7 @@ export declare class OpencodeClient extends _HeyApiClient {
|
|
|
245
245
|
/**
|
|
246
246
|
* Respond to a permission request
|
|
247
247
|
*/
|
|
248
|
-
postSessionIdPermissionsPermissionId<ThrowOnError extends boolean = false>(options: Options<PostSessionIdPermissionsPermissionIdData, ThrowOnError>): import("./client/types.gen.js").RequestResult<PostSessionIdPermissionsPermissionIdResponses,
|
|
248
|
+
postSessionIdPermissionsPermissionId<ThrowOnError extends boolean = false>(options: Options<PostSessionIdPermissionsPermissionIdData, ThrowOnError>): import("./client/types.gen.js").RequestResult<PostSessionIdPermissionsPermissionIdResponses, PostSessionIdPermissionsPermissionIdErrors, ThrowOnError, "fields">;
|
|
249
249
|
project: Project;
|
|
250
250
|
config: Config;
|
|
251
251
|
tool: Tool;
|
package/dist/gen/types.gen.d.ts
CHANGED
|
@@ -398,6 +398,7 @@ export type Config = {
|
|
|
398
398
|
output: Array<"text" | "audio" | "image" | "video" | "pdf">;
|
|
399
399
|
};
|
|
400
400
|
experimental?: boolean;
|
|
401
|
+
status?: "alpha" | "beta";
|
|
401
402
|
options?: {
|
|
402
403
|
[key: string]: unknown;
|
|
403
404
|
};
|
|
@@ -483,10 +484,12 @@ export type Config = {
|
|
|
483
484
|
disable_paste_summary?: boolean;
|
|
484
485
|
};
|
|
485
486
|
};
|
|
486
|
-
export type
|
|
487
|
-
data:
|
|
487
|
+
export type BadRequestError = {
|
|
488
|
+
data: unknown | null;
|
|
489
|
+
errors: Array<{
|
|
488
490
|
[key: string]: unknown;
|
|
489
|
-
}
|
|
491
|
+
}>;
|
|
492
|
+
success: false;
|
|
490
493
|
};
|
|
491
494
|
export type ToolIds = Array<string>;
|
|
492
495
|
export type ToolListItem = {
|
|
@@ -523,6 +526,12 @@ export type Session = {
|
|
|
523
526
|
diff?: string;
|
|
524
527
|
};
|
|
525
528
|
};
|
|
529
|
+
export type NotFoundError = {
|
|
530
|
+
name: "NotFoundError";
|
|
531
|
+
data: {
|
|
532
|
+
message: string;
|
|
533
|
+
};
|
|
534
|
+
};
|
|
526
535
|
export type Todo = {
|
|
527
536
|
/**
|
|
528
537
|
* Brief description of the task
|
|
@@ -842,6 +851,7 @@ export type Model = {
|
|
|
842
851
|
output: Array<"text" | "audio" | "image" | "video" | "pdf">;
|
|
843
852
|
};
|
|
844
853
|
experimental?: boolean;
|
|
854
|
+
status?: "alpha" | "beta";
|
|
845
855
|
options: {
|
|
846
856
|
[key: string]: unknown;
|
|
847
857
|
};
|
|
@@ -1128,7 +1138,7 @@ export type ConfigUpdateErrors = {
|
|
|
1128
1138
|
/**
|
|
1129
1139
|
* Bad request
|
|
1130
1140
|
*/
|
|
1131
|
-
400:
|
|
1141
|
+
400: BadRequestError;
|
|
1132
1142
|
};
|
|
1133
1143
|
export type ConfigUpdateError = ConfigUpdateErrors[keyof ConfigUpdateErrors];
|
|
1134
1144
|
export type ConfigUpdateResponses = {
|
|
@@ -1150,7 +1160,7 @@ export type ToolIdsErrors = {
|
|
|
1150
1160
|
/**
|
|
1151
1161
|
* Bad request
|
|
1152
1162
|
*/
|
|
1153
|
-
400:
|
|
1163
|
+
400: BadRequestError;
|
|
1154
1164
|
};
|
|
1155
1165
|
export type ToolIdsError = ToolIdsErrors[keyof ToolIdsErrors];
|
|
1156
1166
|
export type ToolIdsResponses = {
|
|
@@ -1174,7 +1184,7 @@ export type ToolListErrors = {
|
|
|
1174
1184
|
/**
|
|
1175
1185
|
* Bad request
|
|
1176
1186
|
*/
|
|
1177
|
-
400:
|
|
1187
|
+
400: BadRequestError;
|
|
1178
1188
|
};
|
|
1179
1189
|
export type ToolListError = ToolListErrors[keyof ToolListErrors];
|
|
1180
1190
|
export type ToolListResponses = {
|
|
@@ -1229,7 +1239,7 @@ export type SessionCreateErrors = {
|
|
|
1229
1239
|
/**
|
|
1230
1240
|
* Bad request
|
|
1231
1241
|
*/
|
|
1232
|
-
400:
|
|
1242
|
+
400: BadRequestError;
|
|
1233
1243
|
};
|
|
1234
1244
|
export type SessionCreateError = SessionCreateErrors[keyof SessionCreateErrors];
|
|
1235
1245
|
export type SessionCreateResponses = {
|
|
@@ -1249,6 +1259,17 @@ export type SessionDeleteData = {
|
|
|
1249
1259
|
};
|
|
1250
1260
|
url: "/session/{id}";
|
|
1251
1261
|
};
|
|
1262
|
+
export type SessionDeleteErrors = {
|
|
1263
|
+
/**
|
|
1264
|
+
* Bad request
|
|
1265
|
+
*/
|
|
1266
|
+
400: BadRequestError;
|
|
1267
|
+
/**
|
|
1268
|
+
* Not found
|
|
1269
|
+
*/
|
|
1270
|
+
404: NotFoundError;
|
|
1271
|
+
};
|
|
1272
|
+
export type SessionDeleteError = SessionDeleteErrors[keyof SessionDeleteErrors];
|
|
1252
1273
|
export type SessionDeleteResponses = {
|
|
1253
1274
|
/**
|
|
1254
1275
|
* Successfully deleted session
|
|
@@ -1266,6 +1287,17 @@ export type SessionGetData = {
|
|
|
1266
1287
|
};
|
|
1267
1288
|
url: "/session/{id}";
|
|
1268
1289
|
};
|
|
1290
|
+
export type SessionGetErrors = {
|
|
1291
|
+
/**
|
|
1292
|
+
* Bad request
|
|
1293
|
+
*/
|
|
1294
|
+
400: BadRequestError;
|
|
1295
|
+
/**
|
|
1296
|
+
* Not found
|
|
1297
|
+
*/
|
|
1298
|
+
404: NotFoundError;
|
|
1299
|
+
};
|
|
1300
|
+
export type SessionGetError = SessionGetErrors[keyof SessionGetErrors];
|
|
1269
1301
|
export type SessionGetResponses = {
|
|
1270
1302
|
/**
|
|
1271
1303
|
* Get session
|
|
@@ -1285,6 +1317,17 @@ export type SessionUpdateData = {
|
|
|
1285
1317
|
};
|
|
1286
1318
|
url: "/session/{id}";
|
|
1287
1319
|
};
|
|
1320
|
+
export type SessionUpdateErrors = {
|
|
1321
|
+
/**
|
|
1322
|
+
* Bad request
|
|
1323
|
+
*/
|
|
1324
|
+
400: BadRequestError;
|
|
1325
|
+
/**
|
|
1326
|
+
* Not found
|
|
1327
|
+
*/
|
|
1328
|
+
404: NotFoundError;
|
|
1329
|
+
};
|
|
1330
|
+
export type SessionUpdateError = SessionUpdateErrors[keyof SessionUpdateErrors];
|
|
1288
1331
|
export type SessionUpdateResponses = {
|
|
1289
1332
|
/**
|
|
1290
1333
|
* Successfully updated session
|
|
@@ -1302,6 +1345,17 @@ export type SessionChildrenData = {
|
|
|
1302
1345
|
};
|
|
1303
1346
|
url: "/session/{id}/children";
|
|
1304
1347
|
};
|
|
1348
|
+
export type SessionChildrenErrors = {
|
|
1349
|
+
/**
|
|
1350
|
+
* Bad request
|
|
1351
|
+
*/
|
|
1352
|
+
400: BadRequestError;
|
|
1353
|
+
/**
|
|
1354
|
+
* Not found
|
|
1355
|
+
*/
|
|
1356
|
+
404: NotFoundError;
|
|
1357
|
+
};
|
|
1358
|
+
export type SessionChildrenError = SessionChildrenErrors[keyof SessionChildrenErrors];
|
|
1305
1359
|
export type SessionChildrenResponses = {
|
|
1306
1360
|
/**
|
|
1307
1361
|
* List of children
|
|
@@ -1322,6 +1376,17 @@ export type SessionTodoData = {
|
|
|
1322
1376
|
};
|
|
1323
1377
|
url: "/session/{id}/todo";
|
|
1324
1378
|
};
|
|
1379
|
+
export type SessionTodoErrors = {
|
|
1380
|
+
/**
|
|
1381
|
+
* Bad request
|
|
1382
|
+
*/
|
|
1383
|
+
400: BadRequestError;
|
|
1384
|
+
/**
|
|
1385
|
+
* Not found
|
|
1386
|
+
*/
|
|
1387
|
+
404: NotFoundError;
|
|
1388
|
+
};
|
|
1389
|
+
export type SessionTodoError = SessionTodoErrors[keyof SessionTodoErrors];
|
|
1325
1390
|
export type SessionTodoResponses = {
|
|
1326
1391
|
/**
|
|
1327
1392
|
* Todo list
|
|
@@ -1346,6 +1411,17 @@ export type SessionInitData = {
|
|
|
1346
1411
|
};
|
|
1347
1412
|
url: "/session/{id}/init";
|
|
1348
1413
|
};
|
|
1414
|
+
export type SessionInitErrors = {
|
|
1415
|
+
/**
|
|
1416
|
+
* Bad request
|
|
1417
|
+
*/
|
|
1418
|
+
400: BadRequestError;
|
|
1419
|
+
/**
|
|
1420
|
+
* Not found
|
|
1421
|
+
*/
|
|
1422
|
+
404: NotFoundError;
|
|
1423
|
+
};
|
|
1424
|
+
export type SessionInitError = SessionInitErrors[keyof SessionInitErrors];
|
|
1349
1425
|
export type SessionInitResponses = {
|
|
1350
1426
|
/**
|
|
1351
1427
|
* 200
|
|
@@ -1382,6 +1458,17 @@ export type SessionAbortData = {
|
|
|
1382
1458
|
};
|
|
1383
1459
|
url: "/session/{id}/abort";
|
|
1384
1460
|
};
|
|
1461
|
+
export type SessionAbortErrors = {
|
|
1462
|
+
/**
|
|
1463
|
+
* Bad request
|
|
1464
|
+
*/
|
|
1465
|
+
400: BadRequestError;
|
|
1466
|
+
/**
|
|
1467
|
+
* Not found
|
|
1468
|
+
*/
|
|
1469
|
+
404: NotFoundError;
|
|
1470
|
+
};
|
|
1471
|
+
export type SessionAbortError = SessionAbortErrors[keyof SessionAbortErrors];
|
|
1385
1472
|
export type SessionAbortResponses = {
|
|
1386
1473
|
/**
|
|
1387
1474
|
* Aborted session
|
|
@@ -1399,6 +1486,17 @@ export type SessionUnshareData = {
|
|
|
1399
1486
|
};
|
|
1400
1487
|
url: "/session/{id}/share";
|
|
1401
1488
|
};
|
|
1489
|
+
export type SessionUnshareErrors = {
|
|
1490
|
+
/**
|
|
1491
|
+
* Bad request
|
|
1492
|
+
*/
|
|
1493
|
+
400: BadRequestError;
|
|
1494
|
+
/**
|
|
1495
|
+
* Not found
|
|
1496
|
+
*/
|
|
1497
|
+
404: NotFoundError;
|
|
1498
|
+
};
|
|
1499
|
+
export type SessionUnshareError = SessionUnshareErrors[keyof SessionUnshareErrors];
|
|
1402
1500
|
export type SessionUnshareResponses = {
|
|
1403
1501
|
/**
|
|
1404
1502
|
* Successfully unshared session
|
|
@@ -1416,6 +1514,17 @@ export type SessionShareData = {
|
|
|
1416
1514
|
};
|
|
1417
1515
|
url: "/session/{id}/share";
|
|
1418
1516
|
};
|
|
1517
|
+
export type SessionShareErrors = {
|
|
1518
|
+
/**
|
|
1519
|
+
* Bad request
|
|
1520
|
+
*/
|
|
1521
|
+
400: BadRequestError;
|
|
1522
|
+
/**
|
|
1523
|
+
* Not found
|
|
1524
|
+
*/
|
|
1525
|
+
404: NotFoundError;
|
|
1526
|
+
};
|
|
1527
|
+
export type SessionShareError = SessionShareErrors[keyof SessionShareErrors];
|
|
1419
1528
|
export type SessionShareResponses = {
|
|
1420
1529
|
/**
|
|
1421
1530
|
* Successfully shared session
|
|
@@ -1439,6 +1548,17 @@ export type SessionSummarizeData = {
|
|
|
1439
1548
|
};
|
|
1440
1549
|
url: "/session/{id}/summarize";
|
|
1441
1550
|
};
|
|
1551
|
+
export type SessionSummarizeErrors = {
|
|
1552
|
+
/**
|
|
1553
|
+
* Bad request
|
|
1554
|
+
*/
|
|
1555
|
+
400: BadRequestError;
|
|
1556
|
+
/**
|
|
1557
|
+
* Not found
|
|
1558
|
+
*/
|
|
1559
|
+
404: NotFoundError;
|
|
1560
|
+
};
|
|
1561
|
+
export type SessionSummarizeError = SessionSummarizeErrors[keyof SessionSummarizeErrors];
|
|
1442
1562
|
export type SessionSummarizeResponses = {
|
|
1443
1563
|
/**
|
|
1444
1564
|
* Summarized session
|
|
@@ -1459,6 +1579,17 @@ export type SessionMessagesData = {
|
|
|
1459
1579
|
};
|
|
1460
1580
|
url: "/session/{id}/message";
|
|
1461
1581
|
};
|
|
1582
|
+
export type SessionMessagesErrors = {
|
|
1583
|
+
/**
|
|
1584
|
+
* Bad request
|
|
1585
|
+
*/
|
|
1586
|
+
400: BadRequestError;
|
|
1587
|
+
/**
|
|
1588
|
+
* Not found
|
|
1589
|
+
*/
|
|
1590
|
+
404: NotFoundError;
|
|
1591
|
+
};
|
|
1592
|
+
export type SessionMessagesError = SessionMessagesErrors[keyof SessionMessagesErrors];
|
|
1462
1593
|
export type SessionMessagesResponses = {
|
|
1463
1594
|
/**
|
|
1464
1595
|
* List of messages
|
|
@@ -1494,6 +1625,17 @@ export type SessionPromptData = {
|
|
|
1494
1625
|
};
|
|
1495
1626
|
url: "/session/{id}/message";
|
|
1496
1627
|
};
|
|
1628
|
+
export type SessionPromptErrors = {
|
|
1629
|
+
/**
|
|
1630
|
+
* Bad request
|
|
1631
|
+
*/
|
|
1632
|
+
400: BadRequestError;
|
|
1633
|
+
/**
|
|
1634
|
+
* Not found
|
|
1635
|
+
*/
|
|
1636
|
+
404: NotFoundError;
|
|
1637
|
+
};
|
|
1638
|
+
export type SessionPromptError = SessionPromptErrors[keyof SessionPromptErrors];
|
|
1497
1639
|
export type SessionPromptResponses = {
|
|
1498
1640
|
/**
|
|
1499
1641
|
* Created message
|
|
@@ -1521,6 +1663,17 @@ export type SessionMessageData = {
|
|
|
1521
1663
|
};
|
|
1522
1664
|
url: "/session/{id}/message/{messageID}";
|
|
1523
1665
|
};
|
|
1666
|
+
export type SessionMessageErrors = {
|
|
1667
|
+
/**
|
|
1668
|
+
* Bad request
|
|
1669
|
+
*/
|
|
1670
|
+
400: BadRequestError;
|
|
1671
|
+
/**
|
|
1672
|
+
* Not found
|
|
1673
|
+
*/
|
|
1674
|
+
404: NotFoundError;
|
|
1675
|
+
};
|
|
1676
|
+
export type SessionMessageError = SessionMessageErrors[keyof SessionMessageErrors];
|
|
1524
1677
|
export type SessionMessageResponses = {
|
|
1525
1678
|
/**
|
|
1526
1679
|
* Message
|
|
@@ -1550,6 +1703,17 @@ export type SessionCommandData = {
|
|
|
1550
1703
|
};
|
|
1551
1704
|
url: "/session/{id}/command";
|
|
1552
1705
|
};
|
|
1706
|
+
export type SessionCommandErrors = {
|
|
1707
|
+
/**
|
|
1708
|
+
* Bad request
|
|
1709
|
+
*/
|
|
1710
|
+
400: BadRequestError;
|
|
1711
|
+
/**
|
|
1712
|
+
* Not found
|
|
1713
|
+
*/
|
|
1714
|
+
404: NotFoundError;
|
|
1715
|
+
};
|
|
1716
|
+
export type SessionCommandError = SessionCommandErrors[keyof SessionCommandErrors];
|
|
1553
1717
|
export type SessionCommandResponses = {
|
|
1554
1718
|
/**
|
|
1555
1719
|
* Created message
|
|
@@ -1576,6 +1740,17 @@ export type SessionShellData = {
|
|
|
1576
1740
|
};
|
|
1577
1741
|
url: "/session/{id}/shell";
|
|
1578
1742
|
};
|
|
1743
|
+
export type SessionShellErrors = {
|
|
1744
|
+
/**
|
|
1745
|
+
* Bad request
|
|
1746
|
+
*/
|
|
1747
|
+
400: BadRequestError;
|
|
1748
|
+
/**
|
|
1749
|
+
* Not found
|
|
1750
|
+
*/
|
|
1751
|
+
404: NotFoundError;
|
|
1752
|
+
};
|
|
1753
|
+
export type SessionShellError = SessionShellErrors[keyof SessionShellErrors];
|
|
1579
1754
|
export type SessionShellResponses = {
|
|
1580
1755
|
/**
|
|
1581
1756
|
* Created message
|
|
@@ -1596,6 +1771,17 @@ export type SessionRevertData = {
|
|
|
1596
1771
|
};
|
|
1597
1772
|
url: "/session/{id}/revert";
|
|
1598
1773
|
};
|
|
1774
|
+
export type SessionRevertErrors = {
|
|
1775
|
+
/**
|
|
1776
|
+
* Bad request
|
|
1777
|
+
*/
|
|
1778
|
+
400: BadRequestError;
|
|
1779
|
+
/**
|
|
1780
|
+
* Not found
|
|
1781
|
+
*/
|
|
1782
|
+
404: NotFoundError;
|
|
1783
|
+
};
|
|
1784
|
+
export type SessionRevertError = SessionRevertErrors[keyof SessionRevertErrors];
|
|
1599
1785
|
export type SessionRevertResponses = {
|
|
1600
1786
|
/**
|
|
1601
1787
|
* Updated session
|
|
@@ -1613,6 +1799,17 @@ export type SessionUnrevertData = {
|
|
|
1613
1799
|
};
|
|
1614
1800
|
url: "/session/{id}/unrevert";
|
|
1615
1801
|
};
|
|
1802
|
+
export type SessionUnrevertErrors = {
|
|
1803
|
+
/**
|
|
1804
|
+
* Bad request
|
|
1805
|
+
*/
|
|
1806
|
+
400: BadRequestError;
|
|
1807
|
+
/**
|
|
1808
|
+
* Not found
|
|
1809
|
+
*/
|
|
1810
|
+
404: NotFoundError;
|
|
1811
|
+
};
|
|
1812
|
+
export type SessionUnrevertError = SessionUnrevertErrors[keyof SessionUnrevertErrors];
|
|
1616
1813
|
export type SessionUnrevertResponses = {
|
|
1617
1814
|
/**
|
|
1618
1815
|
* Updated session
|
|
@@ -1633,6 +1830,17 @@ export type PostSessionIdPermissionsPermissionIdData = {
|
|
|
1633
1830
|
};
|
|
1634
1831
|
url: "/session/{id}/permissions/{permissionID}";
|
|
1635
1832
|
};
|
|
1833
|
+
export type PostSessionIdPermissionsPermissionIdErrors = {
|
|
1834
|
+
/**
|
|
1835
|
+
* Bad request
|
|
1836
|
+
*/
|
|
1837
|
+
400: BadRequestError;
|
|
1838
|
+
/**
|
|
1839
|
+
* Not found
|
|
1840
|
+
*/
|
|
1841
|
+
404: NotFoundError;
|
|
1842
|
+
};
|
|
1843
|
+
export type PostSessionIdPermissionsPermissionIdError = PostSessionIdPermissionsPermissionIdErrors[keyof PostSessionIdPermissionsPermissionIdErrors];
|
|
1636
1844
|
export type PostSessionIdPermissionsPermissionIdResponses = {
|
|
1637
1845
|
/**
|
|
1638
1846
|
* Permission processed successfully
|
|
@@ -1813,6 +2021,13 @@ export type AppLogData = {
|
|
|
1813
2021
|
};
|
|
1814
2022
|
url: "/log";
|
|
1815
2023
|
};
|
|
2024
|
+
export type AppLogErrors = {
|
|
2025
|
+
/**
|
|
2026
|
+
* Bad request
|
|
2027
|
+
*/
|
|
2028
|
+
400: BadRequestError;
|
|
2029
|
+
};
|
|
2030
|
+
export type AppLogError = AppLogErrors[keyof AppLogErrors];
|
|
1816
2031
|
export type AppLogResponses = {
|
|
1817
2032
|
/**
|
|
1818
2033
|
* Log entry written successfully
|
|
@@ -1859,6 +2074,13 @@ export type TuiAppendPromptData = {
|
|
|
1859
2074
|
};
|
|
1860
2075
|
url: "/tui/append-prompt";
|
|
1861
2076
|
};
|
|
2077
|
+
export type TuiAppendPromptErrors = {
|
|
2078
|
+
/**
|
|
2079
|
+
* Bad request
|
|
2080
|
+
*/
|
|
2081
|
+
400: BadRequestError;
|
|
2082
|
+
};
|
|
2083
|
+
export type TuiAppendPromptError = TuiAppendPromptErrors[keyof TuiAppendPromptErrors];
|
|
1862
2084
|
export type TuiAppendPromptResponses = {
|
|
1863
2085
|
/**
|
|
1864
2086
|
* Prompt processed successfully
|
|
@@ -1966,6 +2188,13 @@ export type TuiExecuteCommandData = {
|
|
|
1966
2188
|
};
|
|
1967
2189
|
url: "/tui/execute-command";
|
|
1968
2190
|
};
|
|
2191
|
+
export type TuiExecuteCommandErrors = {
|
|
2192
|
+
/**
|
|
2193
|
+
* Bad request
|
|
2194
|
+
*/
|
|
2195
|
+
400: BadRequestError;
|
|
2196
|
+
};
|
|
2197
|
+
export type TuiExecuteCommandError = TuiExecuteCommandErrors[keyof TuiExecuteCommandErrors];
|
|
1969
2198
|
export type TuiExecuteCommandResponses = {
|
|
1970
2199
|
/**
|
|
1971
2200
|
* Command executed successfully
|
|
@@ -2006,7 +2235,7 @@ export type AuthSetErrors = {
|
|
|
2006
2235
|
/**
|
|
2007
2236
|
* Bad request
|
|
2008
2237
|
*/
|
|
2009
|
-
400:
|
|
2238
|
+
400: BadRequestError;
|
|
2010
2239
|
};
|
|
2011
2240
|
export type AuthSetError = AuthSetErrors[keyof AuthSetErrors];
|
|
2012
2241
|
export type AuthSetResponses = {
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@opencode-ai/sdk",
|
|
4
|
-
"version": "0.15.
|
|
4
|
+
"version": "0.15.4",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"typecheck": "
|
|
7
|
+
"typecheck": "tsgo --noEmit",
|
|
8
8
|
"build": "./script/build.ts"
|
|
9
9
|
},
|
|
10
10
|
"exports": {
|
|
@@ -27,8 +27,9 @@
|
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@hey-api/openapi-ts": "0.81.0",
|
|
29
29
|
"@tsconfig/node22": "22.0.2",
|
|
30
|
-
"@types/node": "
|
|
31
|
-
"typescript": "5.8.2"
|
|
30
|
+
"@types/node": "22.13.9",
|
|
31
|
+
"typescript": "5.8.2",
|
|
32
|
+
"@typescript/native-preview": "7.0.0-dev.20251014.1"
|
|
32
33
|
},
|
|
33
34
|
"dependencies": {},
|
|
34
35
|
"publishConfig": {
|