@opencode-ai/sdk 1.1.39 → 1.1.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/v2/gen/sdk.gen.d.ts +45 -29
- package/dist/v2/gen/sdk.gen.js +83 -56
- package/dist/v2/gen/types.gen.d.ts +123 -93
- package/package.json +1 -1
package/dist/v2/gen/sdk.gen.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Client, type Options as Options2, type TDataShape } from "./client/index.js";
|
|
2
|
-
import type { AgentPartInput, AppAgentsResponses, AppLogErrors, AppLogResponses, AppSkillsResponses, Auth as Auth3, AuthRemoveErrors, AuthRemoveResponses, AuthSetErrors, AuthSetResponses, CommandListResponses, Config as
|
|
2
|
+
import type { AgentPartInput, AppAgentsResponses, AppLogErrors, AppLogResponses, AppSkillsResponses, Auth as Auth3, AuthRemoveErrors, AuthRemoveResponses, AuthSetErrors, AuthSetResponses, CommandListResponses, Config as Config3, ConfigGetResponses, ConfigProvidersResponses, ConfigUpdateErrors, ConfigUpdateResponses, EventSubscribeResponses, EventTuiCommandExecute, EventTuiPromptAppend, EventTuiSessionSelect, EventTuiToastShow, ExperimentalResourceListResponses, FileListResponses, FilePartInput, FilePartSource, FileReadResponses, FileStatusResponses, FindFilesResponses, FindSymbolsResponses, FindTextResponses, FormatterStatusResponses, GlobalConfigGetResponses, GlobalConfigUpdateErrors, GlobalConfigUpdateResponses, GlobalDisposeResponses, GlobalEventResponses, GlobalHealthResponses, InstanceDisposeResponses, LspStatusResponses, McpAddErrors, McpAddResponses, McpAuthAuthenticateErrors, McpAuthAuthenticateResponses, McpAuthCallbackErrors, McpAuthCallbackResponses, McpAuthRemoveErrors, McpAuthRemoveResponses, McpAuthStartErrors, McpAuthStartResponses, McpConnectResponses, McpDisconnectResponses, McpLocalConfig, McpRemoteConfig, McpStatusResponses, Part as Part2, PartDeleteErrors, PartDeleteResponses, PartUpdateErrors, PartUpdateResponses, PathGetResponses, PermissionListResponses, PermissionReplyErrors, PermissionReplyResponses, PermissionRespondErrors, PermissionRespondResponses, PermissionRuleset, ProjectCurrentResponses, ProjectListResponses, ProjectUpdateErrors, ProjectUpdateResponses, ProviderAuthResponses, ProviderListResponses, ProviderOauthAuthorizeErrors, ProviderOauthAuthorizeResponses, ProviderOauthCallbackErrors, ProviderOauthCallbackResponses, PtyConnectErrors, PtyConnectResponses, PtyCreateErrors, PtyCreateResponses, PtyGetErrors, PtyGetResponses, PtyListResponses, PtyRemoveErrors, PtyRemoveResponses, PtyUpdateErrors, PtyUpdateResponses, QuestionAnswer, QuestionListResponses, QuestionRejectErrors, QuestionRejectResponses, QuestionReplyErrors, QuestionReplyResponses, SessionAbortErrors, SessionAbortResponses, SessionChildrenErrors, SessionChildrenResponses, SessionCommandErrors, SessionCommandResponses, SessionCreateErrors, SessionCreateResponses, SessionDeleteErrors, SessionDeleteResponses, SessionDiffResponses, SessionForkResponses, SessionGetErrors, SessionGetResponses, SessionInitErrors, SessionInitResponses, SessionListResponses, SessionMessageErrors, SessionMessageResponses, SessionMessagesErrors, SessionMessagesResponses, SessionPromptAsyncErrors, SessionPromptAsyncResponses, SessionPromptErrors, SessionPromptResponses, SessionRevertErrors, SessionRevertResponses, SessionShareErrors, SessionShareResponses, SessionShellErrors, SessionShellResponses, SessionStatusErrors, SessionStatusResponses, SessionSummarizeErrors, SessionSummarizeResponses, SessionTodoErrors, SessionTodoResponses, SessionUnrevertErrors, SessionUnrevertResponses, SessionUnshareErrors, SessionUnshareResponses, SessionUpdateErrors, SessionUpdateResponses, SubtaskPartInput, TextPartInput, ToolIdsErrors, ToolIdsResponses, ToolListErrors, ToolListResponses, TuiAppendPromptErrors, TuiAppendPromptResponses, TuiClearPromptResponses, TuiControlNextResponses, TuiControlResponseResponses, TuiExecuteCommandErrors, TuiExecuteCommandResponses, TuiOpenHelpResponses, TuiOpenModelsResponses, TuiOpenSessionsResponses, TuiOpenThemesResponses, TuiPublishErrors, TuiPublishResponses, TuiSelectSessionErrors, TuiSelectSessionResponses, TuiShowToastResponses, TuiSubmitPromptResponses, VcsGetResponses, WorktreeCreateErrors, WorktreeCreateInput, WorktreeCreateResponses, WorktreeListResponses, WorktreeRemoveErrors, WorktreeRemoveInput, WorktreeRemoveResponses, WorktreeResetErrors, WorktreeResetInput, WorktreeResetResponses } from "./types.gen.js";
|
|
3
3
|
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {
|
|
4
4
|
/**
|
|
5
5
|
* You can provide a client instance returned by `createClient()` instead of
|
|
@@ -25,6 +25,22 @@ declare class HeyApiRegistry<T> {
|
|
|
25
25
|
get(key?: string): T;
|
|
26
26
|
set(value: T, key?: string): void;
|
|
27
27
|
}
|
|
28
|
+
export declare class Config extends HeyApiClient {
|
|
29
|
+
/**
|
|
30
|
+
* Get global configuration
|
|
31
|
+
*
|
|
32
|
+
* Retrieve the current global OpenCode configuration settings and preferences.
|
|
33
|
+
*/
|
|
34
|
+
get<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<GlobalConfigGetResponses, unknown, ThrowOnError, "fields">;
|
|
35
|
+
/**
|
|
36
|
+
* Update global configuration
|
|
37
|
+
*
|
|
38
|
+
* Update global OpenCode configuration settings and preferences.
|
|
39
|
+
*/
|
|
40
|
+
update<ThrowOnError extends boolean = false>(parameters?: {
|
|
41
|
+
config?: Config3;
|
|
42
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<GlobalConfigUpdateResponses, GlobalConfigUpdateErrors, ThrowOnError, "fields">;
|
|
43
|
+
}
|
|
28
44
|
export declare class Global extends HeyApiClient {
|
|
29
45
|
/**
|
|
30
46
|
* Get health
|
|
@@ -44,6 +60,27 @@ export declare class Global extends HeyApiClient {
|
|
|
44
60
|
* Clean up and dispose all OpenCode instances, releasing all resources.
|
|
45
61
|
*/
|
|
46
62
|
dispose<ThrowOnError extends boolean = false>(options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<GlobalDisposeResponses, unknown, ThrowOnError, "fields">;
|
|
63
|
+
private _config?;
|
|
64
|
+
get config(): Config;
|
|
65
|
+
}
|
|
66
|
+
export declare class Auth extends HeyApiClient {
|
|
67
|
+
/**
|
|
68
|
+
* Remove auth credentials
|
|
69
|
+
*
|
|
70
|
+
* Remove authentication credentials
|
|
71
|
+
*/
|
|
72
|
+
remove<ThrowOnError extends boolean = false>(parameters: {
|
|
73
|
+
providerID: string;
|
|
74
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<AuthRemoveResponses, AuthRemoveErrors, ThrowOnError, "fields">;
|
|
75
|
+
/**
|
|
76
|
+
* Set auth credentials
|
|
77
|
+
*
|
|
78
|
+
* Set authentication credentials
|
|
79
|
+
*/
|
|
80
|
+
set<ThrowOnError extends boolean = false>(parameters: {
|
|
81
|
+
providerID: string;
|
|
82
|
+
auth?: Auth3;
|
|
83
|
+
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<AuthSetResponses, AuthSetErrors, ThrowOnError, "fields">;
|
|
47
84
|
}
|
|
48
85
|
export declare class Project extends HeyApiClient {
|
|
49
86
|
/**
|
|
@@ -150,7 +187,7 @@ export declare class Pty extends HeyApiClient {
|
|
|
150
187
|
directory?: string;
|
|
151
188
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<PtyConnectResponses, PtyConnectErrors, ThrowOnError, "fields">;
|
|
152
189
|
}
|
|
153
|
-
export declare class
|
|
190
|
+
export declare class Config2 extends HeyApiClient {
|
|
154
191
|
/**
|
|
155
192
|
* Get configuration
|
|
156
193
|
*
|
|
@@ -166,7 +203,7 @@ export declare class Config extends HeyApiClient {
|
|
|
166
203
|
*/
|
|
167
204
|
update<ThrowOnError extends boolean = false>(parameters?: {
|
|
168
205
|
directory?: string;
|
|
169
|
-
config?:
|
|
206
|
+
config?: Config3;
|
|
170
207
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<ConfigUpdateResponses, ConfigUpdateErrors, ThrowOnError, "fields">;
|
|
171
208
|
/**
|
|
172
209
|
* List config providers
|
|
@@ -710,7 +747,7 @@ export declare class File extends HeyApiClient {
|
|
|
710
747
|
directory?: string;
|
|
711
748
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<FileStatusResponses, unknown, ThrowOnError, "fields">;
|
|
712
749
|
}
|
|
713
|
-
export declare class
|
|
750
|
+
export declare class Auth2 extends HeyApiClient {
|
|
714
751
|
/**
|
|
715
752
|
* Remove MCP OAuth
|
|
716
753
|
*
|
|
@@ -783,7 +820,7 @@ export declare class Mcp extends HeyApiClient {
|
|
|
783
820
|
directory?: string;
|
|
784
821
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<McpDisconnectResponses, unknown, ThrowOnError, "fields">;
|
|
785
822
|
private _auth?;
|
|
786
|
-
get auth():
|
|
823
|
+
get auth(): Auth2;
|
|
787
824
|
}
|
|
788
825
|
export declare class Control extends HeyApiClient {
|
|
789
826
|
/**
|
|
@@ -996,27 +1033,6 @@ export declare class Formatter extends HeyApiClient {
|
|
|
996
1033
|
directory?: string;
|
|
997
1034
|
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<FormatterStatusResponses, unknown, ThrowOnError, "fields">;
|
|
998
1035
|
}
|
|
999
|
-
export declare class Auth2 extends HeyApiClient {
|
|
1000
|
-
/**
|
|
1001
|
-
* Remove auth credentials
|
|
1002
|
-
*
|
|
1003
|
-
* Remove authentication credentials
|
|
1004
|
-
*/
|
|
1005
|
-
remove<ThrowOnError extends boolean = false>(parameters: {
|
|
1006
|
-
providerID: string;
|
|
1007
|
-
directory?: string;
|
|
1008
|
-
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<AuthRemoveResponses, AuthRemoveErrors, ThrowOnError, "fields">;
|
|
1009
|
-
/**
|
|
1010
|
-
* Set auth credentials
|
|
1011
|
-
*
|
|
1012
|
-
* Set authentication credentials
|
|
1013
|
-
*/
|
|
1014
|
-
set<ThrowOnError extends boolean = false>(parameters: {
|
|
1015
|
-
providerID: string;
|
|
1016
|
-
directory?: string;
|
|
1017
|
-
auth?: Auth3;
|
|
1018
|
-
}, options?: Options<never, ThrowOnError>): import("./client/types.gen.js").RequestResult<AuthSetResponses, AuthSetErrors, ThrowOnError, "fields">;
|
|
1019
|
-
}
|
|
1020
1036
|
export declare class Event extends HeyApiClient {
|
|
1021
1037
|
/**
|
|
1022
1038
|
* Subscribe to events
|
|
@@ -1035,12 +1051,14 @@ export declare class OpencodeClient extends HeyApiClient {
|
|
|
1035
1051
|
});
|
|
1036
1052
|
private _global?;
|
|
1037
1053
|
get global(): Global;
|
|
1054
|
+
private _auth?;
|
|
1055
|
+
get auth(): Auth;
|
|
1038
1056
|
private _project?;
|
|
1039
1057
|
get project(): Project;
|
|
1040
1058
|
private _pty?;
|
|
1041
1059
|
get pty(): Pty;
|
|
1042
1060
|
private _config?;
|
|
1043
|
-
get config():
|
|
1061
|
+
get config(): Config2;
|
|
1044
1062
|
private _tool?;
|
|
1045
1063
|
get tool(): Tool;
|
|
1046
1064
|
private _worktree?;
|
|
@@ -1079,8 +1097,6 @@ export declare class OpencodeClient extends HeyApiClient {
|
|
|
1079
1097
|
get lsp(): Lsp;
|
|
1080
1098
|
private _formatter?;
|
|
1081
1099
|
get formatter(): Formatter;
|
|
1082
|
-
private _auth?;
|
|
1083
|
-
get auth(): Auth2;
|
|
1084
1100
|
private _event?;
|
|
1085
1101
|
get event(): Event;
|
|
1086
1102
|
}
|
package/dist/v2/gen/sdk.gen.js
CHANGED
|
@@ -21,6 +21,37 @@ class HeyApiRegistry {
|
|
|
21
21
|
this.instances.set(key ?? this.defaultKey, value);
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
+
export class Config extends HeyApiClient {
|
|
25
|
+
/**
|
|
26
|
+
* Get global configuration
|
|
27
|
+
*
|
|
28
|
+
* Retrieve the current global OpenCode configuration settings and preferences.
|
|
29
|
+
*/
|
|
30
|
+
get(options) {
|
|
31
|
+
return (options?.client ?? this.client).get({
|
|
32
|
+
url: "/global/config",
|
|
33
|
+
...options,
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Update global configuration
|
|
38
|
+
*
|
|
39
|
+
* Update global OpenCode configuration settings and preferences.
|
|
40
|
+
*/
|
|
41
|
+
update(parameters, options) {
|
|
42
|
+
const params = buildClientParams([parameters], [{ args: [{ key: "config", map: "body" }] }]);
|
|
43
|
+
return (options?.client ?? this.client).patch({
|
|
44
|
+
url: "/global/config",
|
|
45
|
+
...options,
|
|
46
|
+
...params,
|
|
47
|
+
headers: {
|
|
48
|
+
"Content-Type": "application/json",
|
|
49
|
+
...options?.headers,
|
|
50
|
+
...params.headers,
|
|
51
|
+
},
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
}
|
|
24
55
|
export class Global extends HeyApiClient {
|
|
25
56
|
/**
|
|
26
57
|
* Get health
|
|
@@ -55,6 +86,50 @@ export class Global extends HeyApiClient {
|
|
|
55
86
|
...options,
|
|
56
87
|
});
|
|
57
88
|
}
|
|
89
|
+
_config;
|
|
90
|
+
get config() {
|
|
91
|
+
return (this._config ??= new Config({ client: this.client }));
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
export class Auth extends HeyApiClient {
|
|
95
|
+
/**
|
|
96
|
+
* Remove auth credentials
|
|
97
|
+
*
|
|
98
|
+
* Remove authentication credentials
|
|
99
|
+
*/
|
|
100
|
+
remove(parameters, options) {
|
|
101
|
+
const params = buildClientParams([parameters], [{ args: [{ in: "path", key: "providerID" }] }]);
|
|
102
|
+
return (options?.client ?? this.client).delete({
|
|
103
|
+
url: "/auth/{providerID}",
|
|
104
|
+
...options,
|
|
105
|
+
...params,
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Set auth credentials
|
|
110
|
+
*
|
|
111
|
+
* Set authentication credentials
|
|
112
|
+
*/
|
|
113
|
+
set(parameters, options) {
|
|
114
|
+
const params = buildClientParams([parameters], [
|
|
115
|
+
{
|
|
116
|
+
args: [
|
|
117
|
+
{ in: "path", key: "providerID" },
|
|
118
|
+
{ key: "auth", map: "body" },
|
|
119
|
+
],
|
|
120
|
+
},
|
|
121
|
+
]);
|
|
122
|
+
return (options?.client ?? this.client).put({
|
|
123
|
+
url: "/auth/{providerID}",
|
|
124
|
+
...options,
|
|
125
|
+
...params,
|
|
126
|
+
headers: {
|
|
127
|
+
"Content-Type": "application/json",
|
|
128
|
+
...options?.headers,
|
|
129
|
+
...params.headers,
|
|
130
|
+
},
|
|
131
|
+
});
|
|
132
|
+
}
|
|
58
133
|
}
|
|
59
134
|
export class Project extends HeyApiClient {
|
|
60
135
|
/**
|
|
@@ -243,7 +318,7 @@ export class Pty extends HeyApiClient {
|
|
|
243
318
|
});
|
|
244
319
|
}
|
|
245
320
|
}
|
|
246
|
-
export class
|
|
321
|
+
export class Config2 extends HeyApiClient {
|
|
247
322
|
/**
|
|
248
323
|
* Get configuration
|
|
249
324
|
*
|
|
@@ -1380,7 +1455,7 @@ export class File extends HeyApiClient {
|
|
|
1380
1455
|
});
|
|
1381
1456
|
}
|
|
1382
1457
|
}
|
|
1383
|
-
export class
|
|
1458
|
+
export class Auth2 extends HeyApiClient {
|
|
1384
1459
|
/**
|
|
1385
1460
|
* Remove MCP OAuth
|
|
1386
1461
|
*
|
|
@@ -1546,7 +1621,7 @@ export class Mcp extends HeyApiClient {
|
|
|
1546
1621
|
}
|
|
1547
1622
|
_auth;
|
|
1548
1623
|
get auth() {
|
|
1549
|
-
return (this._auth ??= new
|
|
1624
|
+
return (this._auth ??= new Auth2({ client: this.client }));
|
|
1550
1625
|
}
|
|
1551
1626
|
}
|
|
1552
1627
|
export class Control extends HeyApiClient {
|
|
@@ -1947,54 +2022,6 @@ export class Formatter extends HeyApiClient {
|
|
|
1947
2022
|
});
|
|
1948
2023
|
}
|
|
1949
2024
|
}
|
|
1950
|
-
export class Auth2 extends HeyApiClient {
|
|
1951
|
-
/**
|
|
1952
|
-
* Remove auth credentials
|
|
1953
|
-
*
|
|
1954
|
-
* Remove authentication credentials
|
|
1955
|
-
*/
|
|
1956
|
-
remove(parameters, options) {
|
|
1957
|
-
const params = buildClientParams([parameters], [
|
|
1958
|
-
{
|
|
1959
|
-
args: [
|
|
1960
|
-
{ in: "path", key: "providerID" },
|
|
1961
|
-
{ in: "query", key: "directory" },
|
|
1962
|
-
],
|
|
1963
|
-
},
|
|
1964
|
-
]);
|
|
1965
|
-
return (options?.client ?? this.client).delete({
|
|
1966
|
-
url: "/auth/{providerID}",
|
|
1967
|
-
...options,
|
|
1968
|
-
...params,
|
|
1969
|
-
});
|
|
1970
|
-
}
|
|
1971
|
-
/**
|
|
1972
|
-
* Set auth credentials
|
|
1973
|
-
*
|
|
1974
|
-
* Set authentication credentials
|
|
1975
|
-
*/
|
|
1976
|
-
set(parameters, options) {
|
|
1977
|
-
const params = buildClientParams([parameters], [
|
|
1978
|
-
{
|
|
1979
|
-
args: [
|
|
1980
|
-
{ in: "path", key: "providerID" },
|
|
1981
|
-
{ in: "query", key: "directory" },
|
|
1982
|
-
{ key: "auth", map: "body" },
|
|
1983
|
-
],
|
|
1984
|
-
},
|
|
1985
|
-
]);
|
|
1986
|
-
return (options?.client ?? this.client).put({
|
|
1987
|
-
url: "/auth/{providerID}",
|
|
1988
|
-
...options,
|
|
1989
|
-
...params,
|
|
1990
|
-
headers: {
|
|
1991
|
-
"Content-Type": "application/json",
|
|
1992
|
-
...options?.headers,
|
|
1993
|
-
...params.headers,
|
|
1994
|
-
},
|
|
1995
|
-
});
|
|
1996
|
-
}
|
|
1997
|
-
}
|
|
1998
2025
|
export class Event extends HeyApiClient {
|
|
1999
2026
|
/**
|
|
2000
2027
|
* Subscribe to events
|
|
@@ -2020,6 +2047,10 @@ export class OpencodeClient extends HeyApiClient {
|
|
|
2020
2047
|
get global() {
|
|
2021
2048
|
return (this._global ??= new Global({ client: this.client }));
|
|
2022
2049
|
}
|
|
2050
|
+
_auth;
|
|
2051
|
+
get auth() {
|
|
2052
|
+
return (this._auth ??= new Auth({ client: this.client }));
|
|
2053
|
+
}
|
|
2023
2054
|
_project;
|
|
2024
2055
|
get project() {
|
|
2025
2056
|
return (this._project ??= new Project({ client: this.client }));
|
|
@@ -2030,7 +2061,7 @@ export class OpencodeClient extends HeyApiClient {
|
|
|
2030
2061
|
}
|
|
2031
2062
|
_config;
|
|
2032
2063
|
get config() {
|
|
2033
|
-
return (this._config ??= new
|
|
2064
|
+
return (this._config ??= new Config2({ client: this.client }));
|
|
2034
2065
|
}
|
|
2035
2066
|
_tool;
|
|
2036
2067
|
get tool() {
|
|
@@ -2108,10 +2139,6 @@ export class OpencodeClient extends HeyApiClient {
|
|
|
2108
2139
|
get formatter() {
|
|
2109
2140
|
return (this._formatter ??= new Formatter({ client: this.client }));
|
|
2110
2141
|
}
|
|
2111
|
-
_auth;
|
|
2112
|
-
get auth() {
|
|
2113
|
-
return (this._auth ??= new Auth2({ client: this.client }));
|
|
2114
|
-
}
|
|
2115
2142
|
_event;
|
|
2116
2143
|
get event() {
|
|
2117
2144
|
return (this._event ??= new Event({ client: this.client }));
|
|
@@ -208,6 +208,20 @@ export type TextPart = {
|
|
|
208
208
|
[key: string]: unknown;
|
|
209
209
|
};
|
|
210
210
|
};
|
|
211
|
+
export type SubtaskPart = {
|
|
212
|
+
id: string;
|
|
213
|
+
sessionID: string;
|
|
214
|
+
messageID: string;
|
|
215
|
+
type: "subtask";
|
|
216
|
+
prompt: string;
|
|
217
|
+
description: string;
|
|
218
|
+
agent: string;
|
|
219
|
+
model?: {
|
|
220
|
+
providerID: string;
|
|
221
|
+
modelID: string;
|
|
222
|
+
};
|
|
223
|
+
command?: string;
|
|
224
|
+
};
|
|
211
225
|
export type ReasoningPart = {
|
|
212
226
|
id: string;
|
|
213
227
|
sessionID: string;
|
|
@@ -401,20 +415,7 @@ export type CompactionPart = {
|
|
|
401
415
|
type: "compaction";
|
|
402
416
|
auto: boolean;
|
|
403
417
|
};
|
|
404
|
-
export type Part = TextPart |
|
|
405
|
-
id: string;
|
|
406
|
-
sessionID: string;
|
|
407
|
-
messageID: string;
|
|
408
|
-
type: "subtask";
|
|
409
|
-
prompt: string;
|
|
410
|
-
description: string;
|
|
411
|
-
agent: string;
|
|
412
|
-
model?: {
|
|
413
|
-
providerID: string;
|
|
414
|
-
modelID: string;
|
|
415
|
-
};
|
|
416
|
-
command?: string;
|
|
417
|
-
} | ReasoningPart | FilePart | ToolPart | StepStartPart | StepFinishPart | SnapshotPart | PatchPart | AgentPart | RetryPart | CompactionPart;
|
|
418
|
+
export type Part = TextPart | SubtaskPart | ReasoningPart | FilePart | ToolPart | StepStartPart | StepFinishPart | SnapshotPart | PatchPart | AgentPart | RetryPart | CompactionPart;
|
|
418
419
|
export type EventMessagePartUpdated = {
|
|
419
420
|
type: "message.part.updated";
|
|
420
421
|
properties: {
|
|
@@ -764,19 +765,6 @@ export type GlobalEvent = {
|
|
|
764
765
|
directory: string;
|
|
765
766
|
payload: Event;
|
|
766
767
|
};
|
|
767
|
-
export type BadRequestError = {
|
|
768
|
-
data: unknown;
|
|
769
|
-
errors: Array<{
|
|
770
|
-
[key: string]: unknown;
|
|
771
|
-
}>;
|
|
772
|
-
success: false;
|
|
773
|
-
};
|
|
774
|
-
export type NotFoundError = {
|
|
775
|
-
name: "NotFoundError";
|
|
776
|
-
data: {
|
|
777
|
-
message: string;
|
|
778
|
-
};
|
|
779
|
-
};
|
|
780
768
|
/**
|
|
781
769
|
* Custom keybind configurations
|
|
782
770
|
*/
|
|
@@ -1618,6 +1606,37 @@ export type Config = {
|
|
|
1618
1606
|
mcp_timeout?: number;
|
|
1619
1607
|
};
|
|
1620
1608
|
};
|
|
1609
|
+
export type BadRequestError = {
|
|
1610
|
+
data: unknown;
|
|
1611
|
+
errors: Array<{
|
|
1612
|
+
[key: string]: unknown;
|
|
1613
|
+
}>;
|
|
1614
|
+
success: false;
|
|
1615
|
+
};
|
|
1616
|
+
export type OAuth = {
|
|
1617
|
+
type: "oauth";
|
|
1618
|
+
refresh: string;
|
|
1619
|
+
access: string;
|
|
1620
|
+
expires: number;
|
|
1621
|
+
accountId?: string;
|
|
1622
|
+
enterpriseUrl?: string;
|
|
1623
|
+
};
|
|
1624
|
+
export type ApiAuth = {
|
|
1625
|
+
type: "api";
|
|
1626
|
+
key: string;
|
|
1627
|
+
};
|
|
1628
|
+
export type WellKnownAuth = {
|
|
1629
|
+
type: "wellknown";
|
|
1630
|
+
key: string;
|
|
1631
|
+
token: string;
|
|
1632
|
+
};
|
|
1633
|
+
export type Auth = OAuth | ApiAuth | WellKnownAuth;
|
|
1634
|
+
export type NotFoundError = {
|
|
1635
|
+
name: "NotFoundError";
|
|
1636
|
+
data: {
|
|
1637
|
+
message: string;
|
|
1638
|
+
};
|
|
1639
|
+
};
|
|
1621
1640
|
export type Model = {
|
|
1622
1641
|
id: string;
|
|
1623
1642
|
providerID: string;
|
|
@@ -1895,24 +1914,6 @@ export type FormatterStatus = {
|
|
|
1895
1914
|
extensions: Array<string>;
|
|
1896
1915
|
enabled: boolean;
|
|
1897
1916
|
};
|
|
1898
|
-
export type OAuth = {
|
|
1899
|
-
type: "oauth";
|
|
1900
|
-
refresh: string;
|
|
1901
|
-
access: string;
|
|
1902
|
-
expires: number;
|
|
1903
|
-
accountId?: string;
|
|
1904
|
-
enterpriseUrl?: string;
|
|
1905
|
-
};
|
|
1906
|
-
export type ApiAuth = {
|
|
1907
|
-
type: "api";
|
|
1908
|
-
key: string;
|
|
1909
|
-
};
|
|
1910
|
-
export type WellKnownAuth = {
|
|
1911
|
-
type: "wellknown";
|
|
1912
|
-
key: string;
|
|
1913
|
-
token: string;
|
|
1914
|
-
};
|
|
1915
|
-
export type Auth = OAuth | ApiAuth | WellKnownAuth;
|
|
1916
1917
|
export type GlobalHealthData = {
|
|
1917
1918
|
body?: never;
|
|
1918
1919
|
path?: never;
|
|
@@ -1942,6 +1943,39 @@ export type GlobalEventResponses = {
|
|
|
1942
1943
|
200: GlobalEvent;
|
|
1943
1944
|
};
|
|
1944
1945
|
export type GlobalEventResponse = GlobalEventResponses[keyof GlobalEventResponses];
|
|
1946
|
+
export type GlobalConfigGetData = {
|
|
1947
|
+
body?: never;
|
|
1948
|
+
path?: never;
|
|
1949
|
+
query?: never;
|
|
1950
|
+
url: "/global/config";
|
|
1951
|
+
};
|
|
1952
|
+
export type GlobalConfigGetResponses = {
|
|
1953
|
+
/**
|
|
1954
|
+
* Get global config info
|
|
1955
|
+
*/
|
|
1956
|
+
200: Config;
|
|
1957
|
+
};
|
|
1958
|
+
export type GlobalConfigGetResponse = GlobalConfigGetResponses[keyof GlobalConfigGetResponses];
|
|
1959
|
+
export type GlobalConfigUpdateData = {
|
|
1960
|
+
body?: Config;
|
|
1961
|
+
path?: never;
|
|
1962
|
+
query?: never;
|
|
1963
|
+
url: "/global/config";
|
|
1964
|
+
};
|
|
1965
|
+
export type GlobalConfigUpdateErrors = {
|
|
1966
|
+
/**
|
|
1967
|
+
* Bad request
|
|
1968
|
+
*/
|
|
1969
|
+
400: BadRequestError;
|
|
1970
|
+
};
|
|
1971
|
+
export type GlobalConfigUpdateError = GlobalConfigUpdateErrors[keyof GlobalConfigUpdateErrors];
|
|
1972
|
+
export type GlobalConfigUpdateResponses = {
|
|
1973
|
+
/**
|
|
1974
|
+
* Successfully updated global config
|
|
1975
|
+
*/
|
|
1976
|
+
200: Config;
|
|
1977
|
+
};
|
|
1978
|
+
export type GlobalConfigUpdateResponse = GlobalConfigUpdateResponses[keyof GlobalConfigUpdateResponses];
|
|
1945
1979
|
export type GlobalDisposeData = {
|
|
1946
1980
|
body?: never;
|
|
1947
1981
|
path?: never;
|
|
@@ -1955,6 +1989,50 @@ export type GlobalDisposeResponses = {
|
|
|
1955
1989
|
200: boolean;
|
|
1956
1990
|
};
|
|
1957
1991
|
export type GlobalDisposeResponse = GlobalDisposeResponses[keyof GlobalDisposeResponses];
|
|
1992
|
+
export type AuthRemoveData = {
|
|
1993
|
+
body?: never;
|
|
1994
|
+
path: {
|
|
1995
|
+
providerID: string;
|
|
1996
|
+
};
|
|
1997
|
+
query?: never;
|
|
1998
|
+
url: "/auth/{providerID}";
|
|
1999
|
+
};
|
|
2000
|
+
export type AuthRemoveErrors = {
|
|
2001
|
+
/**
|
|
2002
|
+
* Bad request
|
|
2003
|
+
*/
|
|
2004
|
+
400: BadRequestError;
|
|
2005
|
+
};
|
|
2006
|
+
export type AuthRemoveError = AuthRemoveErrors[keyof AuthRemoveErrors];
|
|
2007
|
+
export type AuthRemoveResponses = {
|
|
2008
|
+
/**
|
|
2009
|
+
* Successfully removed authentication credentials
|
|
2010
|
+
*/
|
|
2011
|
+
200: boolean;
|
|
2012
|
+
};
|
|
2013
|
+
export type AuthRemoveResponse = AuthRemoveResponses[keyof AuthRemoveResponses];
|
|
2014
|
+
export type AuthSetData = {
|
|
2015
|
+
body?: Auth;
|
|
2016
|
+
path: {
|
|
2017
|
+
providerID: string;
|
|
2018
|
+
};
|
|
2019
|
+
query?: never;
|
|
2020
|
+
url: "/auth/{providerID}";
|
|
2021
|
+
};
|
|
2022
|
+
export type AuthSetErrors = {
|
|
2023
|
+
/**
|
|
2024
|
+
* Bad request
|
|
2025
|
+
*/
|
|
2026
|
+
400: BadRequestError;
|
|
2027
|
+
};
|
|
2028
|
+
export type AuthSetError = AuthSetErrors[keyof AuthSetErrors];
|
|
2029
|
+
export type AuthSetResponses = {
|
|
2030
|
+
/**
|
|
2031
|
+
* Successfully set authentication credentials
|
|
2032
|
+
*/
|
|
2033
|
+
200: boolean;
|
|
2034
|
+
};
|
|
2035
|
+
export type AuthSetResponse = AuthSetResponses[keyof AuthSetResponses];
|
|
1958
2036
|
export type ProjectListData = {
|
|
1959
2037
|
body?: never;
|
|
1960
2038
|
path?: never;
|
|
@@ -4234,54 +4312,6 @@ export type FormatterStatusResponses = {
|
|
|
4234
4312
|
200: Array<FormatterStatus>;
|
|
4235
4313
|
};
|
|
4236
4314
|
export type FormatterStatusResponse = FormatterStatusResponses[keyof FormatterStatusResponses];
|
|
4237
|
-
export type AuthRemoveData = {
|
|
4238
|
-
body?: never;
|
|
4239
|
-
path: {
|
|
4240
|
-
providerID: string;
|
|
4241
|
-
};
|
|
4242
|
-
query?: {
|
|
4243
|
-
directory?: string;
|
|
4244
|
-
};
|
|
4245
|
-
url: "/auth/{providerID}";
|
|
4246
|
-
};
|
|
4247
|
-
export type AuthRemoveErrors = {
|
|
4248
|
-
/**
|
|
4249
|
-
* Bad request
|
|
4250
|
-
*/
|
|
4251
|
-
400: BadRequestError;
|
|
4252
|
-
};
|
|
4253
|
-
export type AuthRemoveError = AuthRemoveErrors[keyof AuthRemoveErrors];
|
|
4254
|
-
export type AuthRemoveResponses = {
|
|
4255
|
-
/**
|
|
4256
|
-
* Successfully removed authentication credentials
|
|
4257
|
-
*/
|
|
4258
|
-
200: boolean;
|
|
4259
|
-
};
|
|
4260
|
-
export type AuthRemoveResponse = AuthRemoveResponses[keyof AuthRemoveResponses];
|
|
4261
|
-
export type AuthSetData = {
|
|
4262
|
-
body?: Auth;
|
|
4263
|
-
path: {
|
|
4264
|
-
providerID: string;
|
|
4265
|
-
};
|
|
4266
|
-
query?: {
|
|
4267
|
-
directory?: string;
|
|
4268
|
-
};
|
|
4269
|
-
url: "/auth/{providerID}";
|
|
4270
|
-
};
|
|
4271
|
-
export type AuthSetErrors = {
|
|
4272
|
-
/**
|
|
4273
|
-
* Bad request
|
|
4274
|
-
*/
|
|
4275
|
-
400: BadRequestError;
|
|
4276
|
-
};
|
|
4277
|
-
export type AuthSetError = AuthSetErrors[keyof AuthSetErrors];
|
|
4278
|
-
export type AuthSetResponses = {
|
|
4279
|
-
/**
|
|
4280
|
-
* Successfully set authentication credentials
|
|
4281
|
-
*/
|
|
4282
|
-
200: boolean;
|
|
4283
|
-
};
|
|
4284
|
-
export type AuthSetResponse = AuthSetResponses[keyof AuthSetResponses];
|
|
4285
4315
|
export type EventSubscribeData = {
|
|
4286
4316
|
body?: never;
|
|
4287
4317
|
path?: never;
|