@opencode-ai/sdk 0.5.28 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +1 -1
- package/dist/client.js +1 -1
- package/dist/gen/client/{client.d.ts → client.gen.d.ts} +1 -1
- package/dist/gen/client/{client.js → client.gen.js} +36 -13
- package/dist/gen/client/index.d.ts +7 -7
- package/dist/gen/client/index.js +5 -4
- package/dist/gen/client/{types.d.ts → types.gen.d.ts} +19 -11
- package/dist/gen/client/types.gen.js +2 -0
- package/dist/gen/client/{utils.d.ts → utils.gen.d.ts} +2 -9
- package/dist/gen/client/{utils.js → utils.gen.js} +26 -83
- package/dist/gen/client.gen.d.ts +1 -1
- package/dist/gen/core/{auth.js → auth.gen.js} +1 -0
- package/dist/gen/core/{bodySerializer.d.ts → bodySerializer.gen.d.ts} +1 -1
- package/dist/gen/core/{bodySerializer.js → bodySerializer.gen.js} +4 -0
- package/dist/gen/core/{params.js → params.gen.js} +1 -0
- package/dist/gen/core/{pathSerializer.js → pathSerializer.gen.js} +1 -0
- package/dist/gen/core/serverSentEvents.gen.d.ts +59 -0
- package/dist/gen/core/serverSentEvents.gen.js +117 -0
- package/dist/gen/core/{types.d.ts → types.gen.d.ts} +2 -2
- package/dist/gen/core/types.gen.js +2 -0
- package/dist/gen/core/utils.gen.d.ts +14 -0
- package/dist/gen/core/utils.gen.js +69 -0
- package/dist/gen/sdk.gen.d.ts +70 -56
- package/dist/gen/sdk.gen.js +62 -38
- package/dist/gen/types.gen.d.ts +204 -104
- package/package.json +2 -2
- package/dist/gen/client/types.js +0 -1
- package/dist/gen/core/types.js +0 -1
- /package/dist/gen/core/{auth.d.ts → auth.gen.d.ts} +0 -0
- /package/dist/gen/core/{params.d.ts → params.gen.d.ts} +0 -0
- /package/dist/gen/core/{pathSerializer.d.ts → pathSerializer.gen.d.ts} +0 -0
package/dist/gen/types.gen.d.ts
CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
export type Project = {
|
|
2
|
+
id: string;
|
|
3
|
+
worktree: string;
|
|
4
|
+
vcs?: "git";
|
|
5
|
+
time: {
|
|
6
|
+
created: number;
|
|
7
|
+
initialized?: number;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
1
10
|
export type Event = ({
|
|
2
11
|
type: "installation.updated";
|
|
3
12
|
} & EventInstallationUpdated) | ({
|
|
@@ -11,8 +20,6 @@ export type Event = ({
|
|
|
11
20
|
} & EventMessagePartUpdated) | ({
|
|
12
21
|
type: "message.part.removed";
|
|
13
22
|
} & EventMessagePartRemoved) | ({
|
|
14
|
-
type: "storage.write";
|
|
15
|
-
} & EventStorageWrite) | ({
|
|
16
23
|
type: "permission.updated";
|
|
17
24
|
} & EventPermissionUpdated) | ({
|
|
18
25
|
type: "permission.replied";
|
|
@@ -28,11 +35,7 @@ export type Event = ({
|
|
|
28
35
|
type: "session.error";
|
|
29
36
|
} & EventSessionError) | ({
|
|
30
37
|
type: "server.connected";
|
|
31
|
-
} & EventServerConnected)
|
|
32
|
-
type: "file.watcher.updated";
|
|
33
|
-
} & EventFileWatcherUpdated) | ({
|
|
34
|
-
type: "ide.installed";
|
|
35
|
-
} & EventIdeInstalled);
|
|
38
|
+
} & EventServerConnected);
|
|
36
39
|
export type EventInstallationUpdated = {
|
|
37
40
|
type: "installation.updated";
|
|
38
41
|
properties: {
|
|
@@ -346,13 +349,6 @@ export type EventMessagePartRemoved = {
|
|
|
346
349
|
partID: string;
|
|
347
350
|
};
|
|
348
351
|
};
|
|
349
|
-
export type EventStorageWrite = {
|
|
350
|
-
type: "storage.write";
|
|
351
|
-
properties: {
|
|
352
|
-
key: string;
|
|
353
|
-
content?: unknown;
|
|
354
|
-
};
|
|
355
|
-
};
|
|
356
352
|
export type EventPermissionUpdated = {
|
|
357
353
|
type: "permission.updated";
|
|
358
354
|
properties: Permission;
|
|
@@ -394,6 +390,8 @@ export type EventSessionUpdated = {
|
|
|
394
390
|
};
|
|
395
391
|
export type Session = {
|
|
396
392
|
id: string;
|
|
393
|
+
projectID: string;
|
|
394
|
+
directory: string;
|
|
397
395
|
parentID?: string;
|
|
398
396
|
share?: {
|
|
399
397
|
url: string;
|
|
@@ -444,33 +442,6 @@ export type EventServerConnected = {
|
|
|
444
442
|
[key: string]: unknown;
|
|
445
443
|
};
|
|
446
444
|
};
|
|
447
|
-
export type EventFileWatcherUpdated = {
|
|
448
|
-
type: "file.watcher.updated";
|
|
449
|
-
properties: {
|
|
450
|
-
file: string;
|
|
451
|
-
event: "rename" | "change";
|
|
452
|
-
};
|
|
453
|
-
};
|
|
454
|
-
export type EventIdeInstalled = {
|
|
455
|
-
type: "ide.installed";
|
|
456
|
-
properties: {
|
|
457
|
-
ide: string;
|
|
458
|
-
};
|
|
459
|
-
};
|
|
460
|
-
export type App = {
|
|
461
|
-
hostname: string;
|
|
462
|
-
git: boolean;
|
|
463
|
-
path: {
|
|
464
|
-
config: string;
|
|
465
|
-
data: string;
|
|
466
|
-
root: string;
|
|
467
|
-
cwd: string;
|
|
468
|
-
state: string;
|
|
469
|
-
};
|
|
470
|
-
time: {
|
|
471
|
-
initialized?: number;
|
|
472
|
-
};
|
|
473
|
-
};
|
|
474
445
|
export type Config = {
|
|
475
446
|
/**
|
|
476
447
|
* JSON schema reference for configuration validation
|
|
@@ -588,7 +559,11 @@ export type Config = {
|
|
|
588
559
|
options?: {
|
|
589
560
|
apiKey?: string;
|
|
590
561
|
baseURL?: string;
|
|
591
|
-
|
|
562
|
+
/**
|
|
563
|
+
* Timeout in milliseconds for requests to this provider. Default is 300000 (5 minutes). Set to false to disable timeout.
|
|
564
|
+
*/
|
|
565
|
+
timeout?: number | false;
|
|
566
|
+
[key: string]: unknown | string | (number | false) | undefined;
|
|
592
567
|
};
|
|
593
568
|
};
|
|
594
569
|
};
|
|
@@ -966,6 +941,12 @@ export type McpRemoteConfig = {
|
|
|
966
941
|
};
|
|
967
942
|
};
|
|
968
943
|
export type LayoutConfig = "auto" | "stretch";
|
|
944
|
+
export type Path = {
|
|
945
|
+
state: string;
|
|
946
|
+
config: string;
|
|
947
|
+
worktree: string;
|
|
948
|
+
directory: string;
|
|
949
|
+
};
|
|
969
950
|
export type _Error = {
|
|
970
951
|
data: {
|
|
971
952
|
[key: string]: unknown;
|
|
@@ -1014,6 +995,12 @@ export type Symbol = {
|
|
|
1014
995
|
range: Range;
|
|
1015
996
|
};
|
|
1016
997
|
};
|
|
998
|
+
export type FileNode = {
|
|
999
|
+
name: string;
|
|
1000
|
+
path: string;
|
|
1001
|
+
type: "file" | "directory";
|
|
1002
|
+
ignored: boolean;
|
|
1003
|
+
};
|
|
1017
1004
|
export type File = {
|
|
1018
1005
|
path: string;
|
|
1019
1006
|
added: number;
|
|
@@ -1068,49 +1055,57 @@ export type WellKnownAuth = {
|
|
|
1068
1055
|
key: string;
|
|
1069
1056
|
token: string;
|
|
1070
1057
|
};
|
|
1071
|
-
export type
|
|
1058
|
+
export type ProjectListData = {
|
|
1072
1059
|
body?: never;
|
|
1073
1060
|
path?: never;
|
|
1074
|
-
query?:
|
|
1075
|
-
|
|
1061
|
+
query?: {
|
|
1062
|
+
directory?: string;
|
|
1063
|
+
};
|
|
1064
|
+
url: "/project";
|
|
1076
1065
|
};
|
|
1077
|
-
export type
|
|
1066
|
+
export type ProjectListResponses = {
|
|
1078
1067
|
/**
|
|
1079
|
-
*
|
|
1068
|
+
* List of projects
|
|
1080
1069
|
*/
|
|
1081
|
-
200:
|
|
1070
|
+
200: Array<Project>;
|
|
1082
1071
|
};
|
|
1083
|
-
export type
|
|
1084
|
-
export type
|
|
1072
|
+
export type ProjectListResponse = ProjectListResponses[keyof ProjectListResponses];
|
|
1073
|
+
export type ProjectCurrentData = {
|
|
1085
1074
|
body?: never;
|
|
1086
1075
|
path?: never;
|
|
1087
|
-
query?:
|
|
1088
|
-
|
|
1076
|
+
query?: {
|
|
1077
|
+
directory?: string;
|
|
1078
|
+
};
|
|
1079
|
+
url: "/project/current";
|
|
1089
1080
|
};
|
|
1090
|
-
export type
|
|
1081
|
+
export type ProjectCurrentResponses = {
|
|
1091
1082
|
/**
|
|
1092
|
-
*
|
|
1083
|
+
* Current project
|
|
1093
1084
|
*/
|
|
1094
|
-
200:
|
|
1085
|
+
200: Project;
|
|
1095
1086
|
};
|
|
1096
|
-
export type
|
|
1097
|
-
export type
|
|
1087
|
+
export type ProjectCurrentResponse = ProjectCurrentResponses[keyof ProjectCurrentResponses];
|
|
1088
|
+
export type EventSubscribeData = {
|
|
1098
1089
|
body?: never;
|
|
1099
1090
|
path?: never;
|
|
1100
|
-
query?:
|
|
1101
|
-
|
|
1091
|
+
query?: {
|
|
1092
|
+
directory?: string;
|
|
1093
|
+
};
|
|
1094
|
+
url: "/event";
|
|
1102
1095
|
};
|
|
1103
|
-
export type
|
|
1096
|
+
export type EventSubscribeResponses = {
|
|
1104
1097
|
/**
|
|
1105
|
-
*
|
|
1098
|
+
* Event stream
|
|
1106
1099
|
*/
|
|
1107
|
-
200:
|
|
1100
|
+
200: Event;
|
|
1108
1101
|
};
|
|
1109
|
-
export type
|
|
1102
|
+
export type EventSubscribeResponse = EventSubscribeResponses[keyof EventSubscribeResponses];
|
|
1110
1103
|
export type ConfigGetData = {
|
|
1111
1104
|
body?: never;
|
|
1112
1105
|
path?: never;
|
|
1113
|
-
query?:
|
|
1106
|
+
query?: {
|
|
1107
|
+
directory?: string;
|
|
1108
|
+
};
|
|
1114
1109
|
url: "/config";
|
|
1115
1110
|
};
|
|
1116
1111
|
export type ConfigGetResponses = {
|
|
@@ -1120,10 +1115,27 @@ export type ConfigGetResponses = {
|
|
|
1120
1115
|
200: Config;
|
|
1121
1116
|
};
|
|
1122
1117
|
export type ConfigGetResponse = ConfigGetResponses[keyof ConfigGetResponses];
|
|
1118
|
+
export type PathGetData = {
|
|
1119
|
+
body?: never;
|
|
1120
|
+
path?: never;
|
|
1121
|
+
query?: {
|
|
1122
|
+
directory?: string;
|
|
1123
|
+
};
|
|
1124
|
+
url: "/path";
|
|
1125
|
+
};
|
|
1126
|
+
export type PathGetResponses = {
|
|
1127
|
+
/**
|
|
1128
|
+
* Path
|
|
1129
|
+
*/
|
|
1130
|
+
200: Path;
|
|
1131
|
+
};
|
|
1132
|
+
export type PathGetResponse = PathGetResponses[keyof PathGetResponses];
|
|
1123
1133
|
export type SessionListData = {
|
|
1124
1134
|
body?: never;
|
|
1125
1135
|
path?: never;
|
|
1126
|
-
query?:
|
|
1136
|
+
query?: {
|
|
1137
|
+
directory?: string;
|
|
1138
|
+
};
|
|
1127
1139
|
url: "/session";
|
|
1128
1140
|
};
|
|
1129
1141
|
export type SessionListResponses = {
|
|
@@ -1139,7 +1151,9 @@ export type SessionCreateData = {
|
|
|
1139
1151
|
title?: string;
|
|
1140
1152
|
};
|
|
1141
1153
|
path?: never;
|
|
1142
|
-
query?:
|
|
1154
|
+
query?: {
|
|
1155
|
+
directory?: string;
|
|
1156
|
+
};
|
|
1143
1157
|
url: "/session";
|
|
1144
1158
|
};
|
|
1145
1159
|
export type SessionCreateErrors = {
|
|
@@ -1161,7 +1175,9 @@ export type SessionDeleteData = {
|
|
|
1161
1175
|
path: {
|
|
1162
1176
|
id: string;
|
|
1163
1177
|
};
|
|
1164
|
-
query?:
|
|
1178
|
+
query?: {
|
|
1179
|
+
directory?: string;
|
|
1180
|
+
};
|
|
1165
1181
|
url: "/session/{id}";
|
|
1166
1182
|
};
|
|
1167
1183
|
export type SessionDeleteResponses = {
|
|
@@ -1176,7 +1192,9 @@ export type SessionGetData = {
|
|
|
1176
1192
|
path: {
|
|
1177
1193
|
id: string;
|
|
1178
1194
|
};
|
|
1179
|
-
query?:
|
|
1195
|
+
query?: {
|
|
1196
|
+
directory?: string;
|
|
1197
|
+
};
|
|
1180
1198
|
url: "/session/{id}";
|
|
1181
1199
|
};
|
|
1182
1200
|
export type SessionGetResponses = {
|
|
@@ -1193,7 +1211,9 @@ export type SessionUpdateData = {
|
|
|
1193
1211
|
path: {
|
|
1194
1212
|
id: string;
|
|
1195
1213
|
};
|
|
1196
|
-
query?:
|
|
1214
|
+
query?: {
|
|
1215
|
+
directory?: string;
|
|
1216
|
+
};
|
|
1197
1217
|
url: "/session/{id}";
|
|
1198
1218
|
};
|
|
1199
1219
|
export type SessionUpdateResponses = {
|
|
@@ -1208,7 +1228,9 @@ export type SessionChildrenData = {
|
|
|
1208
1228
|
path: {
|
|
1209
1229
|
id: string;
|
|
1210
1230
|
};
|
|
1211
|
-
query?:
|
|
1231
|
+
query?: {
|
|
1232
|
+
directory?: string;
|
|
1233
|
+
};
|
|
1212
1234
|
url: "/session/{id}/children";
|
|
1213
1235
|
};
|
|
1214
1236
|
export type SessionChildrenResponses = {
|
|
@@ -1230,7 +1252,9 @@ export type SessionInitData = {
|
|
|
1230
1252
|
*/
|
|
1231
1253
|
id: string;
|
|
1232
1254
|
};
|
|
1233
|
-
query?:
|
|
1255
|
+
query?: {
|
|
1256
|
+
directory?: string;
|
|
1257
|
+
};
|
|
1234
1258
|
url: "/session/{id}/init";
|
|
1235
1259
|
};
|
|
1236
1260
|
export type SessionInitResponses = {
|
|
@@ -1245,7 +1269,9 @@ export type SessionAbortData = {
|
|
|
1245
1269
|
path: {
|
|
1246
1270
|
id: string;
|
|
1247
1271
|
};
|
|
1248
|
-
query?:
|
|
1272
|
+
query?: {
|
|
1273
|
+
directory?: string;
|
|
1274
|
+
};
|
|
1249
1275
|
url: "/session/{id}/abort";
|
|
1250
1276
|
};
|
|
1251
1277
|
export type SessionAbortResponses = {
|
|
@@ -1260,7 +1286,9 @@ export type SessionUnshareData = {
|
|
|
1260
1286
|
path: {
|
|
1261
1287
|
id: string;
|
|
1262
1288
|
};
|
|
1263
|
-
query?:
|
|
1289
|
+
query?: {
|
|
1290
|
+
directory?: string;
|
|
1291
|
+
};
|
|
1264
1292
|
url: "/session/{id}/share";
|
|
1265
1293
|
};
|
|
1266
1294
|
export type SessionUnshareResponses = {
|
|
@@ -1275,7 +1303,9 @@ export type SessionShareData = {
|
|
|
1275
1303
|
path: {
|
|
1276
1304
|
id: string;
|
|
1277
1305
|
};
|
|
1278
|
-
query?:
|
|
1306
|
+
query?: {
|
|
1307
|
+
directory?: string;
|
|
1308
|
+
};
|
|
1279
1309
|
url: "/session/{id}/share";
|
|
1280
1310
|
};
|
|
1281
1311
|
export type SessionShareResponses = {
|
|
@@ -1296,7 +1326,9 @@ export type SessionSummarizeData = {
|
|
|
1296
1326
|
*/
|
|
1297
1327
|
id: string;
|
|
1298
1328
|
};
|
|
1299
|
-
query?:
|
|
1329
|
+
query?: {
|
|
1330
|
+
directory?: string;
|
|
1331
|
+
};
|
|
1300
1332
|
url: "/session/{id}/summarize";
|
|
1301
1333
|
};
|
|
1302
1334
|
export type SessionSummarizeResponses = {
|
|
@@ -1314,7 +1346,9 @@ export type SessionMessagesData = {
|
|
|
1314
1346
|
*/
|
|
1315
1347
|
id: string;
|
|
1316
1348
|
};
|
|
1317
|
-
query?:
|
|
1349
|
+
query?: {
|
|
1350
|
+
directory?: string;
|
|
1351
|
+
};
|
|
1318
1352
|
url: "/session/{id}/message";
|
|
1319
1353
|
};
|
|
1320
1354
|
export type SessionMessagesResponses = {
|
|
@@ -1327,11 +1361,13 @@ export type SessionMessagesResponses = {
|
|
|
1327
1361
|
}>;
|
|
1328
1362
|
};
|
|
1329
1363
|
export type SessionMessagesResponse = SessionMessagesResponses[keyof SessionMessagesResponses];
|
|
1330
|
-
export type
|
|
1364
|
+
export type SessionPromptData = {
|
|
1331
1365
|
body?: {
|
|
1332
1366
|
messageID?: string;
|
|
1333
|
-
|
|
1334
|
-
|
|
1367
|
+
model?: {
|
|
1368
|
+
providerID: string;
|
|
1369
|
+
modelID: string;
|
|
1370
|
+
};
|
|
1335
1371
|
agent?: string;
|
|
1336
1372
|
system?: string;
|
|
1337
1373
|
tools?: {
|
|
@@ -1351,10 +1387,12 @@ export type SessionChatData = {
|
|
|
1351
1387
|
*/
|
|
1352
1388
|
id: string;
|
|
1353
1389
|
};
|
|
1354
|
-
query?:
|
|
1390
|
+
query?: {
|
|
1391
|
+
directory?: string;
|
|
1392
|
+
};
|
|
1355
1393
|
url: "/session/{id}/message";
|
|
1356
1394
|
};
|
|
1357
|
-
export type
|
|
1395
|
+
export type SessionPromptResponses = {
|
|
1358
1396
|
/**
|
|
1359
1397
|
* Created message
|
|
1360
1398
|
*/
|
|
@@ -1363,7 +1401,7 @@ export type SessionChatResponses = {
|
|
|
1363
1401
|
parts: Array<Part>;
|
|
1364
1402
|
};
|
|
1365
1403
|
};
|
|
1366
|
-
export type
|
|
1404
|
+
export type SessionPromptResponse = SessionPromptResponses[keyof SessionPromptResponses];
|
|
1367
1405
|
export type SessionMessageData = {
|
|
1368
1406
|
body?: never;
|
|
1369
1407
|
path: {
|
|
@@ -1376,7 +1414,9 @@ export type SessionMessageData = {
|
|
|
1376
1414
|
*/
|
|
1377
1415
|
messageID: string;
|
|
1378
1416
|
};
|
|
1379
|
-
query?:
|
|
1417
|
+
query?: {
|
|
1418
|
+
directory?: string;
|
|
1419
|
+
};
|
|
1380
1420
|
url: "/session/{id}/message/{messageID}";
|
|
1381
1421
|
};
|
|
1382
1422
|
export type SessionMessageResponses = {
|
|
@@ -1403,7 +1443,9 @@ export type SessionCommandData = {
|
|
|
1403
1443
|
*/
|
|
1404
1444
|
id: string;
|
|
1405
1445
|
};
|
|
1406
|
-
query?:
|
|
1446
|
+
query?: {
|
|
1447
|
+
directory?: string;
|
|
1448
|
+
};
|
|
1407
1449
|
url: "/session/{id}/command";
|
|
1408
1450
|
};
|
|
1409
1451
|
export type SessionCommandResponses = {
|
|
@@ -1427,7 +1469,9 @@ export type SessionShellData = {
|
|
|
1427
1469
|
*/
|
|
1428
1470
|
id: string;
|
|
1429
1471
|
};
|
|
1430
|
-
query?:
|
|
1472
|
+
query?: {
|
|
1473
|
+
directory?: string;
|
|
1474
|
+
};
|
|
1431
1475
|
url: "/session/{id}/shell";
|
|
1432
1476
|
};
|
|
1433
1477
|
export type SessionShellResponses = {
|
|
@@ -1445,7 +1489,9 @@ export type SessionRevertData = {
|
|
|
1445
1489
|
path: {
|
|
1446
1490
|
id: string;
|
|
1447
1491
|
};
|
|
1448
|
-
query?:
|
|
1492
|
+
query?: {
|
|
1493
|
+
directory?: string;
|
|
1494
|
+
};
|
|
1449
1495
|
url: "/session/{id}/revert";
|
|
1450
1496
|
};
|
|
1451
1497
|
export type SessionRevertResponses = {
|
|
@@ -1460,7 +1506,9 @@ export type SessionUnrevertData = {
|
|
|
1460
1506
|
path: {
|
|
1461
1507
|
id: string;
|
|
1462
1508
|
};
|
|
1463
|
-
query?:
|
|
1509
|
+
query?: {
|
|
1510
|
+
directory?: string;
|
|
1511
|
+
};
|
|
1464
1512
|
url: "/session/{id}/unrevert";
|
|
1465
1513
|
};
|
|
1466
1514
|
export type SessionUnrevertResponses = {
|
|
@@ -1478,7 +1526,9 @@ export type PostSessionByIdPermissionsByPermissionIdData = {
|
|
|
1478
1526
|
id: string;
|
|
1479
1527
|
permissionID: string;
|
|
1480
1528
|
};
|
|
1481
|
-
query?:
|
|
1529
|
+
query?: {
|
|
1530
|
+
directory?: string;
|
|
1531
|
+
};
|
|
1482
1532
|
url: "/session/{id}/permissions/{permissionID}";
|
|
1483
1533
|
};
|
|
1484
1534
|
export type PostSessionByIdPermissionsByPermissionIdResponses = {
|
|
@@ -1491,7 +1541,9 @@ export type PostSessionByIdPermissionsByPermissionIdResponse = PostSessionByIdPe
|
|
|
1491
1541
|
export type CommandListData = {
|
|
1492
1542
|
body?: never;
|
|
1493
1543
|
path?: never;
|
|
1494
|
-
query?:
|
|
1544
|
+
query?: {
|
|
1545
|
+
directory?: string;
|
|
1546
|
+
};
|
|
1495
1547
|
url: "/command";
|
|
1496
1548
|
};
|
|
1497
1549
|
export type CommandListResponses = {
|
|
@@ -1504,7 +1556,9 @@ export type CommandListResponse = CommandListResponses[keyof CommandListResponse
|
|
|
1504
1556
|
export type ConfigProvidersData = {
|
|
1505
1557
|
body?: never;
|
|
1506
1558
|
path?: never;
|
|
1507
|
-
query?:
|
|
1559
|
+
query?: {
|
|
1560
|
+
directory?: string;
|
|
1561
|
+
};
|
|
1508
1562
|
url: "/config/providers";
|
|
1509
1563
|
};
|
|
1510
1564
|
export type ConfigProvidersResponses = {
|
|
@@ -1523,6 +1577,7 @@ export type FindTextData = {
|
|
|
1523
1577
|
body?: never;
|
|
1524
1578
|
path?: never;
|
|
1525
1579
|
query: {
|
|
1580
|
+
directory?: string;
|
|
1526
1581
|
pattern: string;
|
|
1527
1582
|
};
|
|
1528
1583
|
url: "/find";
|
|
@@ -1554,6 +1609,7 @@ export type FindFilesData = {
|
|
|
1554
1609
|
body?: never;
|
|
1555
1610
|
path?: never;
|
|
1556
1611
|
query: {
|
|
1612
|
+
directory?: string;
|
|
1557
1613
|
query: string;
|
|
1558
1614
|
};
|
|
1559
1615
|
url: "/find/file";
|
|
@@ -1569,6 +1625,7 @@ export type FindSymbolsData = {
|
|
|
1569
1625
|
body?: never;
|
|
1570
1626
|
path?: never;
|
|
1571
1627
|
query: {
|
|
1628
|
+
directory?: string;
|
|
1572
1629
|
query: string;
|
|
1573
1630
|
};
|
|
1574
1631
|
url: "/find/symbol";
|
|
@@ -1580,14 +1637,31 @@ export type FindSymbolsResponses = {
|
|
|
1580
1637
|
200: Array<Symbol>;
|
|
1581
1638
|
};
|
|
1582
1639
|
export type FindSymbolsResponse = FindSymbolsResponses[keyof FindSymbolsResponses];
|
|
1583
|
-
export type
|
|
1640
|
+
export type FileListData = {
|
|
1584
1641
|
body?: never;
|
|
1585
1642
|
path?: never;
|
|
1586
1643
|
query: {
|
|
1644
|
+
directory?: string;
|
|
1587
1645
|
path: string;
|
|
1588
1646
|
};
|
|
1589
1647
|
url: "/file";
|
|
1590
1648
|
};
|
|
1649
|
+
export type FileListResponses = {
|
|
1650
|
+
/**
|
|
1651
|
+
* Files and directories
|
|
1652
|
+
*/
|
|
1653
|
+
200: Array<FileNode>;
|
|
1654
|
+
};
|
|
1655
|
+
export type FileListResponse = FileListResponses[keyof FileListResponses];
|
|
1656
|
+
export type FileReadData = {
|
|
1657
|
+
body?: never;
|
|
1658
|
+
path?: never;
|
|
1659
|
+
query: {
|
|
1660
|
+
directory?: string;
|
|
1661
|
+
path: string;
|
|
1662
|
+
};
|
|
1663
|
+
url: "/file/content";
|
|
1664
|
+
};
|
|
1591
1665
|
export type FileReadResponses = {
|
|
1592
1666
|
/**
|
|
1593
1667
|
* File content
|
|
@@ -1601,7 +1675,9 @@ export type FileReadResponse = FileReadResponses[keyof FileReadResponses];
|
|
|
1601
1675
|
export type FileStatusData = {
|
|
1602
1676
|
body?: never;
|
|
1603
1677
|
path?: never;
|
|
1604
|
-
query?:
|
|
1678
|
+
query?: {
|
|
1679
|
+
directory?: string;
|
|
1680
|
+
};
|
|
1605
1681
|
url: "/file/status";
|
|
1606
1682
|
};
|
|
1607
1683
|
export type FileStatusResponses = {
|
|
@@ -1633,7 +1709,9 @@ export type AppLogData = {
|
|
|
1633
1709
|
};
|
|
1634
1710
|
};
|
|
1635
1711
|
path?: never;
|
|
1636
|
-
query?:
|
|
1712
|
+
query?: {
|
|
1713
|
+
directory?: string;
|
|
1714
|
+
};
|
|
1637
1715
|
url: "/log";
|
|
1638
1716
|
};
|
|
1639
1717
|
export type AppLogResponses = {
|
|
@@ -1646,7 +1724,9 @@ export type AppLogResponse = AppLogResponses[keyof AppLogResponses];
|
|
|
1646
1724
|
export type AppAgentsData = {
|
|
1647
1725
|
body?: never;
|
|
1648
1726
|
path?: never;
|
|
1649
|
-
query?:
|
|
1727
|
+
query?: {
|
|
1728
|
+
directory?: string;
|
|
1729
|
+
};
|
|
1650
1730
|
url: "/agent";
|
|
1651
1731
|
};
|
|
1652
1732
|
export type AppAgentsResponses = {
|
|
@@ -1661,7 +1741,9 @@ export type TuiAppendPromptData = {
|
|
|
1661
1741
|
text: string;
|
|
1662
1742
|
};
|
|
1663
1743
|
path?: never;
|
|
1664
|
-
query?:
|
|
1744
|
+
query?: {
|
|
1745
|
+
directory?: string;
|
|
1746
|
+
};
|
|
1665
1747
|
url: "/tui/append-prompt";
|
|
1666
1748
|
};
|
|
1667
1749
|
export type TuiAppendPromptResponses = {
|
|
@@ -1674,7 +1756,9 @@ export type TuiAppendPromptResponse = TuiAppendPromptResponses[keyof TuiAppendPr
|
|
|
1674
1756
|
export type TuiOpenHelpData = {
|
|
1675
1757
|
body?: never;
|
|
1676
1758
|
path?: never;
|
|
1677
|
-
query?:
|
|
1759
|
+
query?: {
|
|
1760
|
+
directory?: string;
|
|
1761
|
+
};
|
|
1678
1762
|
url: "/tui/open-help";
|
|
1679
1763
|
};
|
|
1680
1764
|
export type TuiOpenHelpResponses = {
|
|
@@ -1687,7 +1771,9 @@ export type TuiOpenHelpResponse = TuiOpenHelpResponses[keyof TuiOpenHelpResponse
|
|
|
1687
1771
|
export type TuiOpenSessionsData = {
|
|
1688
1772
|
body?: never;
|
|
1689
1773
|
path?: never;
|
|
1690
|
-
query?:
|
|
1774
|
+
query?: {
|
|
1775
|
+
directory?: string;
|
|
1776
|
+
};
|
|
1691
1777
|
url: "/tui/open-sessions";
|
|
1692
1778
|
};
|
|
1693
1779
|
export type TuiOpenSessionsResponses = {
|
|
@@ -1700,7 +1786,9 @@ export type TuiOpenSessionsResponse = TuiOpenSessionsResponses[keyof TuiOpenSess
|
|
|
1700
1786
|
export type TuiOpenThemesData = {
|
|
1701
1787
|
body?: never;
|
|
1702
1788
|
path?: never;
|
|
1703
|
-
query?:
|
|
1789
|
+
query?: {
|
|
1790
|
+
directory?: string;
|
|
1791
|
+
};
|
|
1704
1792
|
url: "/tui/open-themes";
|
|
1705
1793
|
};
|
|
1706
1794
|
export type TuiOpenThemesResponses = {
|
|
@@ -1713,7 +1801,9 @@ export type TuiOpenThemesResponse = TuiOpenThemesResponses[keyof TuiOpenThemesRe
|
|
|
1713
1801
|
export type TuiOpenModelsData = {
|
|
1714
1802
|
body?: never;
|
|
1715
1803
|
path?: never;
|
|
1716
|
-
query?:
|
|
1804
|
+
query?: {
|
|
1805
|
+
directory?: string;
|
|
1806
|
+
};
|
|
1717
1807
|
url: "/tui/open-models";
|
|
1718
1808
|
};
|
|
1719
1809
|
export type TuiOpenModelsResponses = {
|
|
@@ -1726,7 +1816,9 @@ export type TuiOpenModelsResponse = TuiOpenModelsResponses[keyof TuiOpenModelsRe
|
|
|
1726
1816
|
export type TuiSubmitPromptData = {
|
|
1727
1817
|
body?: never;
|
|
1728
1818
|
path?: never;
|
|
1729
|
-
query?:
|
|
1819
|
+
query?: {
|
|
1820
|
+
directory?: string;
|
|
1821
|
+
};
|
|
1730
1822
|
url: "/tui/submit-prompt";
|
|
1731
1823
|
};
|
|
1732
1824
|
export type TuiSubmitPromptResponses = {
|
|
@@ -1739,7 +1831,9 @@ export type TuiSubmitPromptResponse = TuiSubmitPromptResponses[keyof TuiSubmitPr
|
|
|
1739
1831
|
export type TuiClearPromptData = {
|
|
1740
1832
|
body?: never;
|
|
1741
1833
|
path?: never;
|
|
1742
|
-
query?:
|
|
1834
|
+
query?: {
|
|
1835
|
+
directory?: string;
|
|
1836
|
+
};
|
|
1743
1837
|
url: "/tui/clear-prompt";
|
|
1744
1838
|
};
|
|
1745
1839
|
export type TuiClearPromptResponses = {
|
|
@@ -1754,7 +1848,9 @@ export type TuiExecuteCommandData = {
|
|
|
1754
1848
|
command: string;
|
|
1755
1849
|
};
|
|
1756
1850
|
path?: never;
|
|
1757
|
-
query?:
|
|
1851
|
+
query?: {
|
|
1852
|
+
directory?: string;
|
|
1853
|
+
};
|
|
1758
1854
|
url: "/tui/execute-command";
|
|
1759
1855
|
};
|
|
1760
1856
|
export type TuiExecuteCommandResponses = {
|
|
@@ -1771,7 +1867,9 @@ export type TuiShowToastData = {
|
|
|
1771
1867
|
variant: "info" | "success" | "warning" | "error";
|
|
1772
1868
|
};
|
|
1773
1869
|
path?: never;
|
|
1774
|
-
query?:
|
|
1870
|
+
query?: {
|
|
1871
|
+
directory?: string;
|
|
1872
|
+
};
|
|
1775
1873
|
url: "/tui/show-toast";
|
|
1776
1874
|
};
|
|
1777
1875
|
export type TuiShowToastResponses = {
|
|
@@ -1786,7 +1884,9 @@ export type AuthSetData = {
|
|
|
1786
1884
|
path: {
|
|
1787
1885
|
id: string;
|
|
1788
1886
|
};
|
|
1789
|
-
query?:
|
|
1887
|
+
query?: {
|
|
1888
|
+
directory?: string;
|
|
1889
|
+
};
|
|
1790
1890
|
url: "/auth/{id}";
|
|
1791
1891
|
};
|
|
1792
1892
|
export type AuthSetErrors = {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@opencode-ai/sdk",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.6.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"typecheck": "tsc --noEmit"
|
|
@@ -29,6 +29,6 @@
|
|
|
29
29
|
"@tsconfig/node22": "22.0.2"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@hey-api/openapi-ts": "0.
|
|
32
|
+
"@hey-api/openapi-ts": "0.81.0"
|
|
33
33
|
}
|
|
34
34
|
}
|
package/dist/gen/client/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/gen/core/types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|