@opencode-ai/sdk 0.5.29 → 0.6.1
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 +30 -20
- package/dist/gen/sdk.gen.js +53 -38
- package/dist/gen/types.gen.d.ts +182 -104
- package/package.json +1 -1
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 {
|
|
2
|
+
import type { ProjectListData, ProjectListResponses, ProjectCurrentData, ProjectCurrentResponses, EventSubscribeData, EventSubscribeResponses, ConfigGetData, ConfigGetResponses, PathGetData, PathGetResponses, SessionListData, SessionListResponses, SessionCreateData, SessionCreateResponses, SessionCreateErrors, SessionDeleteData, SessionDeleteResponses, SessionGetData, SessionGetResponses, SessionUpdateData, SessionUpdateResponses, SessionChildrenData, SessionChildrenResponses, SessionInitData, SessionInitResponses, SessionAbortData, SessionAbortResponses, SessionUnshareData, SessionUnshareResponses, SessionShareData, SessionShareResponses, SessionSummarizeData, SessionSummarizeResponses, SessionMessagesData, SessionMessagesResponses, SessionPromptData, SessionPromptResponses, SessionMessageData, SessionMessageResponses, SessionCommandData, SessionCommandResponses, SessionShellData, SessionShellResponses, SessionRevertData, SessionRevertResponses, SessionUnrevertData, SessionUnrevertResponses, PostSessionByIdPermissionsByPermissionIdData, PostSessionByIdPermissionsByPermissionIdResponses, CommandListData, CommandListResponses, ConfigProvidersData, ConfigProvidersResponses, FindTextData, FindTextResponses, FindFilesData, FindFilesResponses, FindSymbolsData, FindSymbolsResponses, FileListData, FileListResponses, FileReadData, FileReadResponses, FileStatusData, FileStatusResponses, AppLogData, AppLogResponses, AppAgentsData, AppAgentsResponses, TuiAppendPromptData, TuiAppendPromptResponses, TuiOpenHelpData, TuiOpenHelpResponses, TuiOpenSessionsData, TuiOpenSessionsResponses, TuiOpenThemesData, TuiOpenThemesResponses, TuiOpenModelsData, TuiOpenModelsResponses, TuiSubmitPromptData, TuiSubmitPromptResponses, TuiClearPromptData, TuiClearPromptResponses, TuiExecuteCommandData, TuiExecuteCommandResponses, TuiShowToastData, TuiShowToastResponses, AuthSetData, AuthSetResponses, AuthSetErrors } 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
|
|
@@ -19,29 +19,21 @@ declare class _HeyApiClient {
|
|
|
19
19
|
client?: Client;
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
|
-
declare class
|
|
23
|
-
/**
|
|
24
|
-
* Get events
|
|
25
|
-
*/
|
|
26
|
-
subscribe<ThrowOnError extends boolean = false>(options?: Options<EventSubscribeData, ThrowOnError>): Promise<import("./core/serverSentEvents.gen.js").ServerSentEventsResult<EventSubscribeResponses, unknown>>;
|
|
27
|
-
}
|
|
28
|
-
declare class App extends _HeyApiClient {
|
|
29
|
-
/**
|
|
30
|
-
* Get app info
|
|
31
|
-
*/
|
|
32
|
-
get<ThrowOnError extends boolean = false>(options?: Options<AppGetData, ThrowOnError>): import("./client/types.gen.js").RequestResult<AppGetResponses, unknown, ThrowOnError, "fields">;
|
|
22
|
+
declare class Project extends _HeyApiClient {
|
|
33
23
|
/**
|
|
34
|
-
*
|
|
24
|
+
* List all projects
|
|
35
25
|
*/
|
|
36
|
-
|
|
26
|
+
list<ThrowOnError extends boolean = false>(options?: Options<ProjectListData, ThrowOnError>): import("./client/types.gen.js").RequestResult<ProjectListResponses, unknown, ThrowOnError, "fields">;
|
|
37
27
|
/**
|
|
38
|
-
*
|
|
28
|
+
* Get the current project
|
|
39
29
|
*/
|
|
40
|
-
|
|
30
|
+
current<ThrowOnError extends boolean = false>(options?: Options<ProjectCurrentData, ThrowOnError>): import("./client/types.gen.js").RequestResult<ProjectCurrentResponses, unknown, ThrowOnError, "fields">;
|
|
31
|
+
}
|
|
32
|
+
declare class Event extends _HeyApiClient {
|
|
41
33
|
/**
|
|
42
|
-
*
|
|
34
|
+
* Get events
|
|
43
35
|
*/
|
|
44
|
-
|
|
36
|
+
subscribe<ThrowOnError extends boolean = false>(options?: Options<EventSubscribeData, ThrowOnError>): Promise<import("./core/serverSentEvents.gen.js").ServerSentEventsResult<EventSubscribeResponses, unknown>>;
|
|
45
37
|
}
|
|
46
38
|
declare class Config extends _HeyApiClient {
|
|
47
39
|
/**
|
|
@@ -53,6 +45,12 @@ declare class Config extends _HeyApiClient {
|
|
|
53
45
|
*/
|
|
54
46
|
providers<ThrowOnError extends boolean = false>(options?: Options<ConfigProvidersData, ThrowOnError>): import("./client/types.gen.js").RequestResult<ConfigProvidersResponses, unknown, ThrowOnError, "fields">;
|
|
55
47
|
}
|
|
48
|
+
declare class Path extends _HeyApiClient {
|
|
49
|
+
/**
|
|
50
|
+
* Get the current path
|
|
51
|
+
*/
|
|
52
|
+
get<ThrowOnError extends boolean = false>(options?: Options<PathGetData, ThrowOnError>): import("./client/types.gen.js").RequestResult<PathGetResponses, unknown, ThrowOnError, "fields">;
|
|
53
|
+
}
|
|
56
54
|
declare class Session extends _HeyApiClient {
|
|
57
55
|
/**
|
|
58
56
|
* List all sessions
|
|
@@ -105,7 +103,7 @@ declare class Session extends _HeyApiClient {
|
|
|
105
103
|
/**
|
|
106
104
|
* Create and send a new message to a session
|
|
107
105
|
*/
|
|
108
|
-
|
|
106
|
+
prompt<ThrowOnError extends boolean = false>(options: Options<SessionPromptData, ThrowOnError>): import("./client/types.gen.js").RequestResult<SessionPromptResponses, unknown, ThrowOnError, "fields">;
|
|
109
107
|
/**
|
|
110
108
|
* Get a message from a session
|
|
111
109
|
*/
|
|
@@ -161,6 +159,16 @@ declare class File extends _HeyApiClient {
|
|
|
161
159
|
*/
|
|
162
160
|
status<ThrowOnError extends boolean = false>(options?: Options<FileStatusData, ThrowOnError>): import("./client/types.gen.js").RequestResult<FileStatusResponses, unknown, ThrowOnError, "fields">;
|
|
163
161
|
}
|
|
162
|
+
declare class App extends _HeyApiClient {
|
|
163
|
+
/**
|
|
164
|
+
* Write a log entry to the server logs
|
|
165
|
+
*/
|
|
166
|
+
log<ThrowOnError extends boolean = false>(options?: Options<AppLogData, ThrowOnError>): import("./client/types.gen.js").RequestResult<AppLogResponses, unknown, ThrowOnError, "fields">;
|
|
167
|
+
/**
|
|
168
|
+
* List all agents
|
|
169
|
+
*/
|
|
170
|
+
agents<ThrowOnError extends boolean = false>(options?: Options<AppAgentsData, ThrowOnError>): import("./client/types.gen.js").RequestResult<AppAgentsResponses, unknown, ThrowOnError, "fields">;
|
|
171
|
+
}
|
|
164
172
|
declare class Tui extends _HeyApiClient {
|
|
165
173
|
/**
|
|
166
174
|
* Append prompt to the TUI
|
|
@@ -210,13 +218,15 @@ export declare class OpencodeClient extends _HeyApiClient {
|
|
|
210
218
|
* Respond to a permission request
|
|
211
219
|
*/
|
|
212
220
|
postSessionByIdPermissionsByPermissionId<ThrowOnError extends boolean = false>(options: Options<PostSessionByIdPermissionsByPermissionIdData, ThrowOnError>): import("./client/types.gen.js").RequestResult<PostSessionByIdPermissionsByPermissionIdResponses, unknown, ThrowOnError, "fields">;
|
|
221
|
+
project: Project;
|
|
213
222
|
event: Event;
|
|
214
|
-
app: App;
|
|
215
223
|
config: Config;
|
|
224
|
+
path: Path;
|
|
216
225
|
session: Session;
|
|
217
226
|
command: Command;
|
|
218
227
|
find: Find;
|
|
219
228
|
file: File;
|
|
229
|
+
app: App;
|
|
220
230
|
tui: Tui;
|
|
221
231
|
auth: Auth;
|
|
222
232
|
}
|
package/dist/gen/sdk.gen.js
CHANGED
|
@@ -8,55 +8,33 @@ class _HeyApiClient {
|
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
-
class
|
|
11
|
+
class Project extends _HeyApiClient {
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* List all projects
|
|
14
14
|
*/
|
|
15
|
-
|
|
16
|
-
return (options?.client ?? this._client).get.sse({
|
|
17
|
-
url: "/event",
|
|
18
|
-
...options,
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
class App extends _HeyApiClient {
|
|
23
|
-
/**
|
|
24
|
-
* Get app info
|
|
25
|
-
*/
|
|
26
|
-
get(options) {
|
|
15
|
+
list(options) {
|
|
27
16
|
return (options?.client ?? this._client).get({
|
|
28
|
-
url: "/
|
|
17
|
+
url: "/project",
|
|
29
18
|
...options,
|
|
30
19
|
});
|
|
31
20
|
}
|
|
32
21
|
/**
|
|
33
|
-
*
|
|
22
|
+
* Get the current project
|
|
34
23
|
*/
|
|
35
|
-
|
|
36
|
-
return (options?.client ?? this._client).
|
|
37
|
-
url: "/
|
|
38
|
-
...options,
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Write a log entry to the server logs
|
|
43
|
-
*/
|
|
44
|
-
log(options) {
|
|
45
|
-
return (options?.client ?? this._client).post({
|
|
46
|
-
url: "/log",
|
|
24
|
+
current(options) {
|
|
25
|
+
return (options?.client ?? this._client).get({
|
|
26
|
+
url: "/project/current",
|
|
47
27
|
...options,
|
|
48
|
-
headers: {
|
|
49
|
-
"Content-Type": "application/json",
|
|
50
|
-
...options?.headers,
|
|
51
|
-
},
|
|
52
28
|
});
|
|
53
29
|
}
|
|
30
|
+
}
|
|
31
|
+
class Event extends _HeyApiClient {
|
|
54
32
|
/**
|
|
55
|
-
*
|
|
33
|
+
* Get events
|
|
56
34
|
*/
|
|
57
|
-
|
|
58
|
-
return (options?.client ?? this._client).get({
|
|
59
|
-
url: "/
|
|
35
|
+
subscribe(options) {
|
|
36
|
+
return (options?.client ?? this._client).get.sse({
|
|
37
|
+
url: "/event",
|
|
60
38
|
...options,
|
|
61
39
|
});
|
|
62
40
|
}
|
|
@@ -81,6 +59,17 @@ class Config extends _HeyApiClient {
|
|
|
81
59
|
});
|
|
82
60
|
}
|
|
83
61
|
}
|
|
62
|
+
class Path extends _HeyApiClient {
|
|
63
|
+
/**
|
|
64
|
+
* Get the current path
|
|
65
|
+
*/
|
|
66
|
+
get(options) {
|
|
67
|
+
return (options?.client ?? this._client).get({
|
|
68
|
+
url: "/path",
|
|
69
|
+
...options,
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
}
|
|
84
73
|
class Session extends _HeyApiClient {
|
|
85
74
|
/**
|
|
86
75
|
* List all sessions
|
|
@@ -209,7 +198,7 @@ class Session extends _HeyApiClient {
|
|
|
209
198
|
/**
|
|
210
199
|
* Create and send a new message to a session
|
|
211
200
|
*/
|
|
212
|
-
|
|
201
|
+
prompt(options) {
|
|
213
202
|
return (options.client ?? this._client).post({
|
|
214
203
|
url: "/session/{id}/message",
|
|
215
204
|
...options,
|
|
@@ -346,6 +335,30 @@ class File extends _HeyApiClient {
|
|
|
346
335
|
});
|
|
347
336
|
}
|
|
348
337
|
}
|
|
338
|
+
class App extends _HeyApiClient {
|
|
339
|
+
/**
|
|
340
|
+
* Write a log entry to the server logs
|
|
341
|
+
*/
|
|
342
|
+
log(options) {
|
|
343
|
+
return (options?.client ?? this._client).post({
|
|
344
|
+
url: "/log",
|
|
345
|
+
...options,
|
|
346
|
+
headers: {
|
|
347
|
+
"Content-Type": "application/json",
|
|
348
|
+
...options?.headers,
|
|
349
|
+
},
|
|
350
|
+
});
|
|
351
|
+
}
|
|
352
|
+
/**
|
|
353
|
+
* List all agents
|
|
354
|
+
*/
|
|
355
|
+
agents(options) {
|
|
356
|
+
return (options?.client ?? this._client).get({
|
|
357
|
+
url: "/agent",
|
|
358
|
+
...options,
|
|
359
|
+
});
|
|
360
|
+
}
|
|
361
|
+
}
|
|
349
362
|
class Tui extends _HeyApiClient {
|
|
350
363
|
/**
|
|
351
364
|
* Append prompt to the TUI
|
|
@@ -470,13 +483,15 @@ export class OpencodeClient extends _HeyApiClient {
|
|
|
470
483
|
},
|
|
471
484
|
});
|
|
472
485
|
}
|
|
486
|
+
project = new Project({ client: this._client });
|
|
473
487
|
event = new Event({ client: this._client });
|
|
474
|
-
app = new App({ client: this._client });
|
|
475
488
|
config = new Config({ client: this._client });
|
|
489
|
+
path = new Path({ client: this._client });
|
|
476
490
|
session = new Session({ client: this._client });
|
|
477
491
|
command = new Command({ client: this._client });
|
|
478
492
|
find = new Find({ client: this._client });
|
|
479
493
|
file = new File({ client: this._client });
|
|
494
|
+
app = new App({ client: this._client });
|
|
480
495
|
tui = new Tui({ client: this._client });
|
|
481
496
|
auth = new Auth({ client: this._client });
|
|
482
497
|
}
|
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,34 +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
|
-
home: string;
|
|
465
|
-
config: string;
|
|
466
|
-
data: string;
|
|
467
|
-
root: string;
|
|
468
|
-
cwd: string;
|
|
469
|
-
state: string;
|
|
470
|
-
};
|
|
471
|
-
time: {
|
|
472
|
-
initialized?: number;
|
|
473
|
-
};
|
|
474
|
-
};
|
|
475
445
|
export type Config = {
|
|
476
446
|
/**
|
|
477
447
|
* JSON schema reference for configuration validation
|
|
@@ -589,7 +559,11 @@ export type Config = {
|
|
|
589
559
|
options?: {
|
|
590
560
|
apiKey?: string;
|
|
591
561
|
baseURL?: string;
|
|
592
|
-
|
|
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;
|
|
593
567
|
};
|
|
594
568
|
};
|
|
595
569
|
};
|
|
@@ -967,6 +941,12 @@ export type McpRemoteConfig = {
|
|
|
967
941
|
};
|
|
968
942
|
};
|
|
969
943
|
export type LayoutConfig = "auto" | "stretch";
|
|
944
|
+
export type Path = {
|
|
945
|
+
state: string;
|
|
946
|
+
config: string;
|
|
947
|
+
worktree: string;
|
|
948
|
+
directory: string;
|
|
949
|
+
};
|
|
970
950
|
export type _Error = {
|
|
971
951
|
data: {
|
|
972
952
|
[key: string]: unknown;
|
|
@@ -1075,49 +1055,57 @@ export type WellKnownAuth = {
|
|
|
1075
1055
|
key: string;
|
|
1076
1056
|
token: string;
|
|
1077
1057
|
};
|
|
1078
|
-
export type
|
|
1058
|
+
export type ProjectListData = {
|
|
1079
1059
|
body?: never;
|
|
1080
1060
|
path?: never;
|
|
1081
|
-
query?:
|
|
1082
|
-
|
|
1061
|
+
query?: {
|
|
1062
|
+
directory?: string;
|
|
1063
|
+
};
|
|
1064
|
+
url: "/project";
|
|
1083
1065
|
};
|
|
1084
|
-
export type
|
|
1066
|
+
export type ProjectListResponses = {
|
|
1085
1067
|
/**
|
|
1086
|
-
*
|
|
1068
|
+
* List of projects
|
|
1087
1069
|
*/
|
|
1088
|
-
200:
|
|
1070
|
+
200: Array<Project>;
|
|
1089
1071
|
};
|
|
1090
|
-
export type
|
|
1091
|
-
export type
|
|
1072
|
+
export type ProjectListResponse = ProjectListResponses[keyof ProjectListResponses];
|
|
1073
|
+
export type ProjectCurrentData = {
|
|
1092
1074
|
body?: never;
|
|
1093
1075
|
path?: never;
|
|
1094
|
-
query?:
|
|
1095
|
-
|
|
1076
|
+
query?: {
|
|
1077
|
+
directory?: string;
|
|
1078
|
+
};
|
|
1079
|
+
url: "/project/current";
|
|
1096
1080
|
};
|
|
1097
|
-
export type
|
|
1081
|
+
export type ProjectCurrentResponses = {
|
|
1098
1082
|
/**
|
|
1099
|
-
*
|
|
1083
|
+
* Current project
|
|
1100
1084
|
*/
|
|
1101
|
-
200:
|
|
1085
|
+
200: Project;
|
|
1102
1086
|
};
|
|
1103
|
-
export type
|
|
1104
|
-
export type
|
|
1087
|
+
export type ProjectCurrentResponse = ProjectCurrentResponses[keyof ProjectCurrentResponses];
|
|
1088
|
+
export type EventSubscribeData = {
|
|
1105
1089
|
body?: never;
|
|
1106
1090
|
path?: never;
|
|
1107
|
-
query?:
|
|
1108
|
-
|
|
1091
|
+
query?: {
|
|
1092
|
+
directory?: string;
|
|
1093
|
+
};
|
|
1094
|
+
url: "/event";
|
|
1109
1095
|
};
|
|
1110
|
-
export type
|
|
1096
|
+
export type EventSubscribeResponses = {
|
|
1111
1097
|
/**
|
|
1112
|
-
*
|
|
1098
|
+
* Event stream
|
|
1113
1099
|
*/
|
|
1114
|
-
200:
|
|
1100
|
+
200: Event;
|
|
1115
1101
|
};
|
|
1116
|
-
export type
|
|
1102
|
+
export type EventSubscribeResponse = EventSubscribeResponses[keyof EventSubscribeResponses];
|
|
1117
1103
|
export type ConfigGetData = {
|
|
1118
1104
|
body?: never;
|
|
1119
1105
|
path?: never;
|
|
1120
|
-
query?:
|
|
1106
|
+
query?: {
|
|
1107
|
+
directory?: string;
|
|
1108
|
+
};
|
|
1121
1109
|
url: "/config";
|
|
1122
1110
|
};
|
|
1123
1111
|
export type ConfigGetResponses = {
|
|
@@ -1127,10 +1115,27 @@ export type ConfigGetResponses = {
|
|
|
1127
1115
|
200: Config;
|
|
1128
1116
|
};
|
|
1129
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];
|
|
1130
1133
|
export type SessionListData = {
|
|
1131
1134
|
body?: never;
|
|
1132
1135
|
path?: never;
|
|
1133
|
-
query?:
|
|
1136
|
+
query?: {
|
|
1137
|
+
directory?: string;
|
|
1138
|
+
};
|
|
1134
1139
|
url: "/session";
|
|
1135
1140
|
};
|
|
1136
1141
|
export type SessionListResponses = {
|
|
@@ -1146,7 +1151,9 @@ export type SessionCreateData = {
|
|
|
1146
1151
|
title?: string;
|
|
1147
1152
|
};
|
|
1148
1153
|
path?: never;
|
|
1149
|
-
query?:
|
|
1154
|
+
query?: {
|
|
1155
|
+
directory?: string;
|
|
1156
|
+
};
|
|
1150
1157
|
url: "/session";
|
|
1151
1158
|
};
|
|
1152
1159
|
export type SessionCreateErrors = {
|
|
@@ -1168,7 +1175,9 @@ export type SessionDeleteData = {
|
|
|
1168
1175
|
path: {
|
|
1169
1176
|
id: string;
|
|
1170
1177
|
};
|
|
1171
|
-
query?:
|
|
1178
|
+
query?: {
|
|
1179
|
+
directory?: string;
|
|
1180
|
+
};
|
|
1172
1181
|
url: "/session/{id}";
|
|
1173
1182
|
};
|
|
1174
1183
|
export type SessionDeleteResponses = {
|
|
@@ -1183,7 +1192,9 @@ export type SessionGetData = {
|
|
|
1183
1192
|
path: {
|
|
1184
1193
|
id: string;
|
|
1185
1194
|
};
|
|
1186
|
-
query?:
|
|
1195
|
+
query?: {
|
|
1196
|
+
directory?: string;
|
|
1197
|
+
};
|
|
1187
1198
|
url: "/session/{id}";
|
|
1188
1199
|
};
|
|
1189
1200
|
export type SessionGetResponses = {
|
|
@@ -1200,7 +1211,9 @@ export type SessionUpdateData = {
|
|
|
1200
1211
|
path: {
|
|
1201
1212
|
id: string;
|
|
1202
1213
|
};
|
|
1203
|
-
query?:
|
|
1214
|
+
query?: {
|
|
1215
|
+
directory?: string;
|
|
1216
|
+
};
|
|
1204
1217
|
url: "/session/{id}";
|
|
1205
1218
|
};
|
|
1206
1219
|
export type SessionUpdateResponses = {
|
|
@@ -1215,7 +1228,9 @@ export type SessionChildrenData = {
|
|
|
1215
1228
|
path: {
|
|
1216
1229
|
id: string;
|
|
1217
1230
|
};
|
|
1218
|
-
query?:
|
|
1231
|
+
query?: {
|
|
1232
|
+
directory?: string;
|
|
1233
|
+
};
|
|
1219
1234
|
url: "/session/{id}/children";
|
|
1220
1235
|
};
|
|
1221
1236
|
export type SessionChildrenResponses = {
|
|
@@ -1237,7 +1252,9 @@ export type SessionInitData = {
|
|
|
1237
1252
|
*/
|
|
1238
1253
|
id: string;
|
|
1239
1254
|
};
|
|
1240
|
-
query?:
|
|
1255
|
+
query?: {
|
|
1256
|
+
directory?: string;
|
|
1257
|
+
};
|
|
1241
1258
|
url: "/session/{id}/init";
|
|
1242
1259
|
};
|
|
1243
1260
|
export type SessionInitResponses = {
|
|
@@ -1252,7 +1269,9 @@ export type SessionAbortData = {
|
|
|
1252
1269
|
path: {
|
|
1253
1270
|
id: string;
|
|
1254
1271
|
};
|
|
1255
|
-
query?:
|
|
1272
|
+
query?: {
|
|
1273
|
+
directory?: string;
|
|
1274
|
+
};
|
|
1256
1275
|
url: "/session/{id}/abort";
|
|
1257
1276
|
};
|
|
1258
1277
|
export type SessionAbortResponses = {
|
|
@@ -1267,7 +1286,9 @@ export type SessionUnshareData = {
|
|
|
1267
1286
|
path: {
|
|
1268
1287
|
id: string;
|
|
1269
1288
|
};
|
|
1270
|
-
query?:
|
|
1289
|
+
query?: {
|
|
1290
|
+
directory?: string;
|
|
1291
|
+
};
|
|
1271
1292
|
url: "/session/{id}/share";
|
|
1272
1293
|
};
|
|
1273
1294
|
export type SessionUnshareResponses = {
|
|
@@ -1282,7 +1303,9 @@ export type SessionShareData = {
|
|
|
1282
1303
|
path: {
|
|
1283
1304
|
id: string;
|
|
1284
1305
|
};
|
|
1285
|
-
query?:
|
|
1306
|
+
query?: {
|
|
1307
|
+
directory?: string;
|
|
1308
|
+
};
|
|
1286
1309
|
url: "/session/{id}/share";
|
|
1287
1310
|
};
|
|
1288
1311
|
export type SessionShareResponses = {
|
|
@@ -1303,7 +1326,9 @@ export type SessionSummarizeData = {
|
|
|
1303
1326
|
*/
|
|
1304
1327
|
id: string;
|
|
1305
1328
|
};
|
|
1306
|
-
query?:
|
|
1329
|
+
query?: {
|
|
1330
|
+
directory?: string;
|
|
1331
|
+
};
|
|
1307
1332
|
url: "/session/{id}/summarize";
|
|
1308
1333
|
};
|
|
1309
1334
|
export type SessionSummarizeResponses = {
|
|
@@ -1321,7 +1346,9 @@ export type SessionMessagesData = {
|
|
|
1321
1346
|
*/
|
|
1322
1347
|
id: string;
|
|
1323
1348
|
};
|
|
1324
|
-
query?:
|
|
1349
|
+
query?: {
|
|
1350
|
+
directory?: string;
|
|
1351
|
+
};
|
|
1325
1352
|
url: "/session/{id}/message";
|
|
1326
1353
|
};
|
|
1327
1354
|
export type SessionMessagesResponses = {
|
|
@@ -1334,11 +1361,13 @@ export type SessionMessagesResponses = {
|
|
|
1334
1361
|
}>;
|
|
1335
1362
|
};
|
|
1336
1363
|
export type SessionMessagesResponse = SessionMessagesResponses[keyof SessionMessagesResponses];
|
|
1337
|
-
export type
|
|
1364
|
+
export type SessionPromptData = {
|
|
1338
1365
|
body?: {
|
|
1339
1366
|
messageID?: string;
|
|
1340
|
-
|
|
1341
|
-
|
|
1367
|
+
model?: {
|
|
1368
|
+
providerID: string;
|
|
1369
|
+
modelID: string;
|
|
1370
|
+
};
|
|
1342
1371
|
agent?: string;
|
|
1343
1372
|
system?: string;
|
|
1344
1373
|
tools?: {
|
|
@@ -1358,10 +1387,12 @@ export type SessionChatData = {
|
|
|
1358
1387
|
*/
|
|
1359
1388
|
id: string;
|
|
1360
1389
|
};
|
|
1361
|
-
query?:
|
|
1390
|
+
query?: {
|
|
1391
|
+
directory?: string;
|
|
1392
|
+
};
|
|
1362
1393
|
url: "/session/{id}/message";
|
|
1363
1394
|
};
|
|
1364
|
-
export type
|
|
1395
|
+
export type SessionPromptResponses = {
|
|
1365
1396
|
/**
|
|
1366
1397
|
* Created message
|
|
1367
1398
|
*/
|
|
@@ -1370,7 +1401,7 @@ export type SessionChatResponses = {
|
|
|
1370
1401
|
parts: Array<Part>;
|
|
1371
1402
|
};
|
|
1372
1403
|
};
|
|
1373
|
-
export type
|
|
1404
|
+
export type SessionPromptResponse = SessionPromptResponses[keyof SessionPromptResponses];
|
|
1374
1405
|
export type SessionMessageData = {
|
|
1375
1406
|
body?: never;
|
|
1376
1407
|
path: {
|
|
@@ -1383,7 +1414,9 @@ export type SessionMessageData = {
|
|
|
1383
1414
|
*/
|
|
1384
1415
|
messageID: string;
|
|
1385
1416
|
};
|
|
1386
|
-
query?:
|
|
1417
|
+
query?: {
|
|
1418
|
+
directory?: string;
|
|
1419
|
+
};
|
|
1387
1420
|
url: "/session/{id}/message/{messageID}";
|
|
1388
1421
|
};
|
|
1389
1422
|
export type SessionMessageResponses = {
|
|
@@ -1410,7 +1443,9 @@ export type SessionCommandData = {
|
|
|
1410
1443
|
*/
|
|
1411
1444
|
id: string;
|
|
1412
1445
|
};
|
|
1413
|
-
query?:
|
|
1446
|
+
query?: {
|
|
1447
|
+
directory?: string;
|
|
1448
|
+
};
|
|
1414
1449
|
url: "/session/{id}/command";
|
|
1415
1450
|
};
|
|
1416
1451
|
export type SessionCommandResponses = {
|
|
@@ -1434,7 +1469,9 @@ export type SessionShellData = {
|
|
|
1434
1469
|
*/
|
|
1435
1470
|
id: string;
|
|
1436
1471
|
};
|
|
1437
|
-
query?:
|
|
1472
|
+
query?: {
|
|
1473
|
+
directory?: string;
|
|
1474
|
+
};
|
|
1438
1475
|
url: "/session/{id}/shell";
|
|
1439
1476
|
};
|
|
1440
1477
|
export type SessionShellResponses = {
|
|
@@ -1452,7 +1489,9 @@ export type SessionRevertData = {
|
|
|
1452
1489
|
path: {
|
|
1453
1490
|
id: string;
|
|
1454
1491
|
};
|
|
1455
|
-
query?:
|
|
1492
|
+
query?: {
|
|
1493
|
+
directory?: string;
|
|
1494
|
+
};
|
|
1456
1495
|
url: "/session/{id}/revert";
|
|
1457
1496
|
};
|
|
1458
1497
|
export type SessionRevertResponses = {
|
|
@@ -1467,7 +1506,9 @@ export type SessionUnrevertData = {
|
|
|
1467
1506
|
path: {
|
|
1468
1507
|
id: string;
|
|
1469
1508
|
};
|
|
1470
|
-
query?:
|
|
1509
|
+
query?: {
|
|
1510
|
+
directory?: string;
|
|
1511
|
+
};
|
|
1471
1512
|
url: "/session/{id}/unrevert";
|
|
1472
1513
|
};
|
|
1473
1514
|
export type SessionUnrevertResponses = {
|
|
@@ -1485,7 +1526,9 @@ export type PostSessionByIdPermissionsByPermissionIdData = {
|
|
|
1485
1526
|
id: string;
|
|
1486
1527
|
permissionID: string;
|
|
1487
1528
|
};
|
|
1488
|
-
query?:
|
|
1529
|
+
query?: {
|
|
1530
|
+
directory?: string;
|
|
1531
|
+
};
|
|
1489
1532
|
url: "/session/{id}/permissions/{permissionID}";
|
|
1490
1533
|
};
|
|
1491
1534
|
export type PostSessionByIdPermissionsByPermissionIdResponses = {
|
|
@@ -1498,7 +1541,9 @@ export type PostSessionByIdPermissionsByPermissionIdResponse = PostSessionByIdPe
|
|
|
1498
1541
|
export type CommandListData = {
|
|
1499
1542
|
body?: never;
|
|
1500
1543
|
path?: never;
|
|
1501
|
-
query?:
|
|
1544
|
+
query?: {
|
|
1545
|
+
directory?: string;
|
|
1546
|
+
};
|
|
1502
1547
|
url: "/command";
|
|
1503
1548
|
};
|
|
1504
1549
|
export type CommandListResponses = {
|
|
@@ -1511,7 +1556,9 @@ export type CommandListResponse = CommandListResponses[keyof CommandListResponse
|
|
|
1511
1556
|
export type ConfigProvidersData = {
|
|
1512
1557
|
body?: never;
|
|
1513
1558
|
path?: never;
|
|
1514
|
-
query?:
|
|
1559
|
+
query?: {
|
|
1560
|
+
directory?: string;
|
|
1561
|
+
};
|
|
1515
1562
|
url: "/config/providers";
|
|
1516
1563
|
};
|
|
1517
1564
|
export type ConfigProvidersResponses = {
|
|
@@ -1530,6 +1577,7 @@ export type FindTextData = {
|
|
|
1530
1577
|
body?: never;
|
|
1531
1578
|
path?: never;
|
|
1532
1579
|
query: {
|
|
1580
|
+
directory?: string;
|
|
1533
1581
|
pattern: string;
|
|
1534
1582
|
};
|
|
1535
1583
|
url: "/find";
|
|
@@ -1561,6 +1609,7 @@ export type FindFilesData = {
|
|
|
1561
1609
|
body?: never;
|
|
1562
1610
|
path?: never;
|
|
1563
1611
|
query: {
|
|
1612
|
+
directory?: string;
|
|
1564
1613
|
query: string;
|
|
1565
1614
|
};
|
|
1566
1615
|
url: "/find/file";
|
|
@@ -1576,6 +1625,7 @@ export type FindSymbolsData = {
|
|
|
1576
1625
|
body?: never;
|
|
1577
1626
|
path?: never;
|
|
1578
1627
|
query: {
|
|
1628
|
+
directory?: string;
|
|
1579
1629
|
query: string;
|
|
1580
1630
|
};
|
|
1581
1631
|
url: "/find/symbol";
|
|
@@ -1591,6 +1641,7 @@ export type FileListData = {
|
|
|
1591
1641
|
body?: never;
|
|
1592
1642
|
path?: never;
|
|
1593
1643
|
query: {
|
|
1644
|
+
directory?: string;
|
|
1594
1645
|
path: string;
|
|
1595
1646
|
};
|
|
1596
1647
|
url: "/file";
|
|
@@ -1606,6 +1657,7 @@ export type FileReadData = {
|
|
|
1606
1657
|
body?: never;
|
|
1607
1658
|
path?: never;
|
|
1608
1659
|
query: {
|
|
1660
|
+
directory?: string;
|
|
1609
1661
|
path: string;
|
|
1610
1662
|
};
|
|
1611
1663
|
url: "/file/content";
|
|
@@ -1623,7 +1675,9 @@ export type FileReadResponse = FileReadResponses[keyof FileReadResponses];
|
|
|
1623
1675
|
export type FileStatusData = {
|
|
1624
1676
|
body?: never;
|
|
1625
1677
|
path?: never;
|
|
1626
|
-
query?:
|
|
1678
|
+
query?: {
|
|
1679
|
+
directory?: string;
|
|
1680
|
+
};
|
|
1627
1681
|
url: "/file/status";
|
|
1628
1682
|
};
|
|
1629
1683
|
export type FileStatusResponses = {
|
|
@@ -1655,7 +1709,9 @@ export type AppLogData = {
|
|
|
1655
1709
|
};
|
|
1656
1710
|
};
|
|
1657
1711
|
path?: never;
|
|
1658
|
-
query?:
|
|
1712
|
+
query?: {
|
|
1713
|
+
directory?: string;
|
|
1714
|
+
};
|
|
1659
1715
|
url: "/log";
|
|
1660
1716
|
};
|
|
1661
1717
|
export type AppLogResponses = {
|
|
@@ -1668,7 +1724,9 @@ export type AppLogResponse = AppLogResponses[keyof AppLogResponses];
|
|
|
1668
1724
|
export type AppAgentsData = {
|
|
1669
1725
|
body?: never;
|
|
1670
1726
|
path?: never;
|
|
1671
|
-
query?:
|
|
1727
|
+
query?: {
|
|
1728
|
+
directory?: string;
|
|
1729
|
+
};
|
|
1672
1730
|
url: "/agent";
|
|
1673
1731
|
};
|
|
1674
1732
|
export type AppAgentsResponses = {
|
|
@@ -1683,7 +1741,9 @@ export type TuiAppendPromptData = {
|
|
|
1683
1741
|
text: string;
|
|
1684
1742
|
};
|
|
1685
1743
|
path?: never;
|
|
1686
|
-
query?:
|
|
1744
|
+
query?: {
|
|
1745
|
+
directory?: string;
|
|
1746
|
+
};
|
|
1687
1747
|
url: "/tui/append-prompt";
|
|
1688
1748
|
};
|
|
1689
1749
|
export type TuiAppendPromptResponses = {
|
|
@@ -1696,7 +1756,9 @@ export type TuiAppendPromptResponse = TuiAppendPromptResponses[keyof TuiAppendPr
|
|
|
1696
1756
|
export type TuiOpenHelpData = {
|
|
1697
1757
|
body?: never;
|
|
1698
1758
|
path?: never;
|
|
1699
|
-
query?:
|
|
1759
|
+
query?: {
|
|
1760
|
+
directory?: string;
|
|
1761
|
+
};
|
|
1700
1762
|
url: "/tui/open-help";
|
|
1701
1763
|
};
|
|
1702
1764
|
export type TuiOpenHelpResponses = {
|
|
@@ -1709,7 +1771,9 @@ export type TuiOpenHelpResponse = TuiOpenHelpResponses[keyof TuiOpenHelpResponse
|
|
|
1709
1771
|
export type TuiOpenSessionsData = {
|
|
1710
1772
|
body?: never;
|
|
1711
1773
|
path?: never;
|
|
1712
|
-
query?:
|
|
1774
|
+
query?: {
|
|
1775
|
+
directory?: string;
|
|
1776
|
+
};
|
|
1713
1777
|
url: "/tui/open-sessions";
|
|
1714
1778
|
};
|
|
1715
1779
|
export type TuiOpenSessionsResponses = {
|
|
@@ -1722,7 +1786,9 @@ export type TuiOpenSessionsResponse = TuiOpenSessionsResponses[keyof TuiOpenSess
|
|
|
1722
1786
|
export type TuiOpenThemesData = {
|
|
1723
1787
|
body?: never;
|
|
1724
1788
|
path?: never;
|
|
1725
|
-
query?:
|
|
1789
|
+
query?: {
|
|
1790
|
+
directory?: string;
|
|
1791
|
+
};
|
|
1726
1792
|
url: "/tui/open-themes";
|
|
1727
1793
|
};
|
|
1728
1794
|
export type TuiOpenThemesResponses = {
|
|
@@ -1735,7 +1801,9 @@ export type TuiOpenThemesResponse = TuiOpenThemesResponses[keyof TuiOpenThemesRe
|
|
|
1735
1801
|
export type TuiOpenModelsData = {
|
|
1736
1802
|
body?: never;
|
|
1737
1803
|
path?: never;
|
|
1738
|
-
query?:
|
|
1804
|
+
query?: {
|
|
1805
|
+
directory?: string;
|
|
1806
|
+
};
|
|
1739
1807
|
url: "/tui/open-models";
|
|
1740
1808
|
};
|
|
1741
1809
|
export type TuiOpenModelsResponses = {
|
|
@@ -1748,7 +1816,9 @@ export type TuiOpenModelsResponse = TuiOpenModelsResponses[keyof TuiOpenModelsRe
|
|
|
1748
1816
|
export type TuiSubmitPromptData = {
|
|
1749
1817
|
body?: never;
|
|
1750
1818
|
path?: never;
|
|
1751
|
-
query?:
|
|
1819
|
+
query?: {
|
|
1820
|
+
directory?: string;
|
|
1821
|
+
};
|
|
1752
1822
|
url: "/tui/submit-prompt";
|
|
1753
1823
|
};
|
|
1754
1824
|
export type TuiSubmitPromptResponses = {
|
|
@@ -1761,7 +1831,9 @@ export type TuiSubmitPromptResponse = TuiSubmitPromptResponses[keyof TuiSubmitPr
|
|
|
1761
1831
|
export type TuiClearPromptData = {
|
|
1762
1832
|
body?: never;
|
|
1763
1833
|
path?: never;
|
|
1764
|
-
query?:
|
|
1834
|
+
query?: {
|
|
1835
|
+
directory?: string;
|
|
1836
|
+
};
|
|
1765
1837
|
url: "/tui/clear-prompt";
|
|
1766
1838
|
};
|
|
1767
1839
|
export type TuiClearPromptResponses = {
|
|
@@ -1776,7 +1848,9 @@ export type TuiExecuteCommandData = {
|
|
|
1776
1848
|
command: string;
|
|
1777
1849
|
};
|
|
1778
1850
|
path?: never;
|
|
1779
|
-
query?:
|
|
1851
|
+
query?: {
|
|
1852
|
+
directory?: string;
|
|
1853
|
+
};
|
|
1780
1854
|
url: "/tui/execute-command";
|
|
1781
1855
|
};
|
|
1782
1856
|
export type TuiExecuteCommandResponses = {
|
|
@@ -1793,7 +1867,9 @@ export type TuiShowToastData = {
|
|
|
1793
1867
|
variant: "info" | "success" | "warning" | "error";
|
|
1794
1868
|
};
|
|
1795
1869
|
path?: never;
|
|
1796
|
-
query?:
|
|
1870
|
+
query?: {
|
|
1871
|
+
directory?: string;
|
|
1872
|
+
};
|
|
1797
1873
|
url: "/tui/show-toast";
|
|
1798
1874
|
};
|
|
1799
1875
|
export type TuiShowToastResponses = {
|
|
@@ -1808,7 +1884,9 @@ export type AuthSetData = {
|
|
|
1808
1884
|
path: {
|
|
1809
1885
|
id: string;
|
|
1810
1886
|
};
|
|
1811
|
-
query?:
|
|
1887
|
+
query?: {
|
|
1888
|
+
directory?: string;
|
|
1889
|
+
};
|
|
1812
1890
|
url: "/auth/{id}";
|
|
1813
1891
|
};
|
|
1814
1892
|
export type AuthSetErrors = {
|