@xutest1/sdk 0.0.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/client.d.ts +8 -0
- package/dist/client.js +11 -0
- package/dist/gen/client/client.gen.d.ts +2 -0
- package/dist/gen/client/client.gen.js +165 -0
- package/dist/gen/client/index.d.ts +7 -0
- package/dist/gen/client/index.js +5 -0
- package/dist/gen/client/types.gen.d.ts +127 -0
- package/dist/gen/client/types.gen.js +2 -0
- package/dist/gen/client/utils.gen.d.ts +38 -0
- package/dist/gen/client/utils.gen.js +226 -0
- package/dist/gen/client.gen.d.ts +12 -0
- package/dist/gen/client.gen.js +5 -0
- package/dist/gen/core/auth.gen.d.ts +18 -0
- package/dist/gen/core/auth.gen.js +14 -0
- package/dist/gen/core/bodySerializer.gen.d.ts +17 -0
- package/dist/gen/core/bodySerializer.gen.js +57 -0
- package/dist/gen/core/params.gen.d.ts +33 -0
- package/dist/gen/core/params.gen.js +89 -0
- package/dist/gen/core/pathSerializer.gen.d.ts +33 -0
- package/dist/gen/core/pathSerializer.gen.js +106 -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.gen.d.ts +78 -0
- 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 +267 -0
- package/dist/gen/sdk.gen.js +574 -0
- package/dist/gen/types.gen.d.ts +2336 -0
- package/dist/gen/types.gen.js +2 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +22 -0
- package/dist/server.d.ts +23 -0
- package/dist/server.js +131 -0
- package/package.json +30 -0
|
@@ -0,0 +1,2336 @@
|
|
|
1
|
+
export type Project = {
|
|
2
|
+
id: string;
|
|
3
|
+
worktree: string;
|
|
4
|
+
vcs?: "git";
|
|
5
|
+
time: {
|
|
6
|
+
created: number;
|
|
7
|
+
initialized?: number;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Custom keybind configurations
|
|
12
|
+
*/
|
|
13
|
+
export type KeybindsConfig = {
|
|
14
|
+
/**
|
|
15
|
+
* Leader key for keybind combinations
|
|
16
|
+
*/
|
|
17
|
+
leader?: string;
|
|
18
|
+
/**
|
|
19
|
+
* Show help dialog
|
|
20
|
+
*/
|
|
21
|
+
app_help?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Exit the application
|
|
24
|
+
*/
|
|
25
|
+
app_exit?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Open external editor
|
|
28
|
+
*/
|
|
29
|
+
editor_open?: string;
|
|
30
|
+
/**
|
|
31
|
+
* List available themes
|
|
32
|
+
*/
|
|
33
|
+
theme_list?: string;
|
|
34
|
+
/**
|
|
35
|
+
* Create/update AGENTS.md
|
|
36
|
+
*/
|
|
37
|
+
project_init?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Toggle tool details
|
|
40
|
+
*/
|
|
41
|
+
tool_details?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Toggle thinking blocks
|
|
44
|
+
*/
|
|
45
|
+
thinking_blocks?: string;
|
|
46
|
+
/**
|
|
47
|
+
* Export session to editor
|
|
48
|
+
*/
|
|
49
|
+
session_export?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Create a new session
|
|
52
|
+
*/
|
|
53
|
+
session_new?: string;
|
|
54
|
+
/**
|
|
55
|
+
* List all sessions
|
|
56
|
+
*/
|
|
57
|
+
session_list?: string;
|
|
58
|
+
/**
|
|
59
|
+
* Show session timeline
|
|
60
|
+
*/
|
|
61
|
+
session_timeline?: string;
|
|
62
|
+
/**
|
|
63
|
+
* Share current session
|
|
64
|
+
*/
|
|
65
|
+
session_share?: string;
|
|
66
|
+
/**
|
|
67
|
+
* Unshare current session
|
|
68
|
+
*/
|
|
69
|
+
session_unshare?: string;
|
|
70
|
+
/**
|
|
71
|
+
* Interrupt current session
|
|
72
|
+
*/
|
|
73
|
+
session_interrupt?: string;
|
|
74
|
+
/**
|
|
75
|
+
* Compact the session
|
|
76
|
+
*/
|
|
77
|
+
session_compact?: string;
|
|
78
|
+
/**
|
|
79
|
+
* Cycle to next child session
|
|
80
|
+
*/
|
|
81
|
+
session_child_cycle?: string;
|
|
82
|
+
/**
|
|
83
|
+
* Cycle to previous child session
|
|
84
|
+
*/
|
|
85
|
+
session_child_cycle_reverse?: string;
|
|
86
|
+
/**
|
|
87
|
+
* Scroll messages up by one page
|
|
88
|
+
*/
|
|
89
|
+
messages_page_up?: string;
|
|
90
|
+
/**
|
|
91
|
+
* Scroll messages down by one page
|
|
92
|
+
*/
|
|
93
|
+
messages_page_down?: string;
|
|
94
|
+
/**
|
|
95
|
+
* Scroll messages up by half page
|
|
96
|
+
*/
|
|
97
|
+
messages_half_page_up?: string;
|
|
98
|
+
/**
|
|
99
|
+
* Scroll messages down by half page
|
|
100
|
+
*/
|
|
101
|
+
messages_half_page_down?: string;
|
|
102
|
+
/**
|
|
103
|
+
* Navigate to first message
|
|
104
|
+
*/
|
|
105
|
+
messages_first?: string;
|
|
106
|
+
/**
|
|
107
|
+
* Navigate to last message
|
|
108
|
+
*/
|
|
109
|
+
messages_last?: string;
|
|
110
|
+
/**
|
|
111
|
+
* Copy message
|
|
112
|
+
*/
|
|
113
|
+
messages_copy?: string;
|
|
114
|
+
/**
|
|
115
|
+
* Undo message
|
|
116
|
+
*/
|
|
117
|
+
messages_undo?: string;
|
|
118
|
+
/**
|
|
119
|
+
* Redo message
|
|
120
|
+
*/
|
|
121
|
+
messages_redo?: string;
|
|
122
|
+
/**
|
|
123
|
+
* List available models
|
|
124
|
+
*/
|
|
125
|
+
model_list?: string;
|
|
126
|
+
/**
|
|
127
|
+
* Next recent model
|
|
128
|
+
*/
|
|
129
|
+
model_cycle_recent?: string;
|
|
130
|
+
/**
|
|
131
|
+
* Previous recent model
|
|
132
|
+
*/
|
|
133
|
+
model_cycle_recent_reverse?: string;
|
|
134
|
+
/**
|
|
135
|
+
* List agents
|
|
136
|
+
*/
|
|
137
|
+
agent_list?: string;
|
|
138
|
+
/**
|
|
139
|
+
* Next agent
|
|
140
|
+
*/
|
|
141
|
+
agent_cycle?: string;
|
|
142
|
+
/**
|
|
143
|
+
* Previous agent
|
|
144
|
+
*/
|
|
145
|
+
agent_cycle_reverse?: string;
|
|
146
|
+
/**
|
|
147
|
+
* Clear input field
|
|
148
|
+
*/
|
|
149
|
+
input_clear?: string;
|
|
150
|
+
/**
|
|
151
|
+
* Paste from clipboard
|
|
152
|
+
*/
|
|
153
|
+
input_paste?: string;
|
|
154
|
+
/**
|
|
155
|
+
* Submit input
|
|
156
|
+
*/
|
|
157
|
+
input_submit?: string;
|
|
158
|
+
/**
|
|
159
|
+
* Insert newline in input
|
|
160
|
+
*/
|
|
161
|
+
input_newline?: string;
|
|
162
|
+
/**
|
|
163
|
+
* @deprecated use agent_cycle. Next mode
|
|
164
|
+
*/
|
|
165
|
+
switch_mode?: string;
|
|
166
|
+
/**
|
|
167
|
+
* @deprecated use agent_cycle_reverse. Previous mode
|
|
168
|
+
*/
|
|
169
|
+
switch_mode_reverse?: string;
|
|
170
|
+
/**
|
|
171
|
+
* @deprecated use agent_cycle. Next agent
|
|
172
|
+
*/
|
|
173
|
+
switch_agent?: string;
|
|
174
|
+
/**
|
|
175
|
+
* @deprecated use agent_cycle_reverse. Previous agent
|
|
176
|
+
*/
|
|
177
|
+
switch_agent_reverse?: string;
|
|
178
|
+
/**
|
|
179
|
+
* @deprecated Currently not available. List files
|
|
180
|
+
*/
|
|
181
|
+
file_list?: string;
|
|
182
|
+
/**
|
|
183
|
+
* @deprecated Close file
|
|
184
|
+
*/
|
|
185
|
+
file_close?: string;
|
|
186
|
+
/**
|
|
187
|
+
* @deprecated Search file
|
|
188
|
+
*/
|
|
189
|
+
file_search?: string;
|
|
190
|
+
/**
|
|
191
|
+
* @deprecated Split/unified diff
|
|
192
|
+
*/
|
|
193
|
+
file_diff_toggle?: string;
|
|
194
|
+
/**
|
|
195
|
+
* @deprecated Navigate to previous message
|
|
196
|
+
*/
|
|
197
|
+
messages_previous?: string;
|
|
198
|
+
/**
|
|
199
|
+
* @deprecated Navigate to next message
|
|
200
|
+
*/
|
|
201
|
+
messages_next?: string;
|
|
202
|
+
/**
|
|
203
|
+
* @deprecated Toggle layout
|
|
204
|
+
*/
|
|
205
|
+
messages_layout_toggle?: string;
|
|
206
|
+
/**
|
|
207
|
+
* @deprecated use messages_undo. Revert message
|
|
208
|
+
*/
|
|
209
|
+
messages_revert?: string;
|
|
210
|
+
};
|
|
211
|
+
export type AgentConfig = {
|
|
212
|
+
model?: string;
|
|
213
|
+
temperature?: number;
|
|
214
|
+
top_p?: number;
|
|
215
|
+
prompt?: string;
|
|
216
|
+
tools?: {
|
|
217
|
+
[key: string]: boolean;
|
|
218
|
+
};
|
|
219
|
+
disable?: boolean;
|
|
220
|
+
/**
|
|
221
|
+
* Description of when to use the agent
|
|
222
|
+
*/
|
|
223
|
+
description?: string;
|
|
224
|
+
mode?: "subagent" | "primary" | "all";
|
|
225
|
+
permission?: {
|
|
226
|
+
edit?: "ask" | "allow" | "deny";
|
|
227
|
+
bash?: ("ask" | "allow" | "deny") | {
|
|
228
|
+
[key: string]: "ask" | "allow" | "deny";
|
|
229
|
+
};
|
|
230
|
+
webfetch?: "ask" | "allow" | "deny";
|
|
231
|
+
};
|
|
232
|
+
[key: string]: unknown | string | number | {
|
|
233
|
+
[key: string]: boolean;
|
|
234
|
+
} | boolean | ("subagent" | "primary" | "all") | {
|
|
235
|
+
edit?: "ask" | "allow" | "deny";
|
|
236
|
+
bash?: ("ask" | "allow" | "deny") | {
|
|
237
|
+
[key: string]: "ask" | "allow" | "deny";
|
|
238
|
+
};
|
|
239
|
+
webfetch?: "ask" | "allow" | "deny";
|
|
240
|
+
} | undefined;
|
|
241
|
+
};
|
|
242
|
+
export type McpLocalConfig = {
|
|
243
|
+
/**
|
|
244
|
+
* Type of MCP server connection
|
|
245
|
+
*/
|
|
246
|
+
type: "local";
|
|
247
|
+
/**
|
|
248
|
+
* Command and arguments to run the MCP server
|
|
249
|
+
*/
|
|
250
|
+
command: Array<string>;
|
|
251
|
+
/**
|
|
252
|
+
* Environment variables to set when running the MCP server
|
|
253
|
+
*/
|
|
254
|
+
environment?: {
|
|
255
|
+
[key: string]: string;
|
|
256
|
+
};
|
|
257
|
+
/**
|
|
258
|
+
* Enable or disable the MCP server on startup
|
|
259
|
+
*/
|
|
260
|
+
enabled?: boolean;
|
|
261
|
+
};
|
|
262
|
+
export type McpRemoteConfig = {
|
|
263
|
+
/**
|
|
264
|
+
* Type of MCP server connection
|
|
265
|
+
*/
|
|
266
|
+
type: "remote";
|
|
267
|
+
/**
|
|
268
|
+
* URL of the remote MCP server
|
|
269
|
+
*/
|
|
270
|
+
url: string;
|
|
271
|
+
/**
|
|
272
|
+
* Enable or disable the MCP server on startup
|
|
273
|
+
*/
|
|
274
|
+
enabled?: boolean;
|
|
275
|
+
/**
|
|
276
|
+
* Headers to send with the request
|
|
277
|
+
*/
|
|
278
|
+
headers?: {
|
|
279
|
+
[key: string]: string;
|
|
280
|
+
};
|
|
281
|
+
};
|
|
282
|
+
/**
|
|
283
|
+
* @deprecated Always uses stretch layout.
|
|
284
|
+
*/
|
|
285
|
+
export type LayoutConfig = "auto" | "stretch";
|
|
286
|
+
export type Config = {
|
|
287
|
+
/**
|
|
288
|
+
* JSON schema reference for configuration validation
|
|
289
|
+
*/
|
|
290
|
+
$schema?: string;
|
|
291
|
+
/**
|
|
292
|
+
* Theme name to use for the interface
|
|
293
|
+
*/
|
|
294
|
+
theme?: string;
|
|
295
|
+
keybinds?: KeybindsConfig;
|
|
296
|
+
/**
|
|
297
|
+
* TUI specific settings
|
|
298
|
+
*/
|
|
299
|
+
tui?: {
|
|
300
|
+
/**
|
|
301
|
+
* TUI scroll speed
|
|
302
|
+
*/
|
|
303
|
+
scroll_speed?: number;
|
|
304
|
+
};
|
|
305
|
+
/**
|
|
306
|
+
* Command configuration, see https://opencode.ai/docs/commands
|
|
307
|
+
*/
|
|
308
|
+
command?: {
|
|
309
|
+
[key: string]: {
|
|
310
|
+
template: string;
|
|
311
|
+
description?: string;
|
|
312
|
+
agent?: string;
|
|
313
|
+
model?: string;
|
|
314
|
+
subtask?: boolean;
|
|
315
|
+
};
|
|
316
|
+
};
|
|
317
|
+
watcher?: {
|
|
318
|
+
ignore?: Array<string>;
|
|
319
|
+
};
|
|
320
|
+
plugin?: Array<string>;
|
|
321
|
+
snapshot?: boolean;
|
|
322
|
+
/**
|
|
323
|
+
* Control sharing behavior:'manual' allows manual sharing via commands, 'auto' enables automatic sharing, 'disabled' disables all sharing
|
|
324
|
+
*/
|
|
325
|
+
share?: "manual" | "auto" | "disabled";
|
|
326
|
+
/**
|
|
327
|
+
* @deprecated Use 'share' field instead. Share newly created sessions automatically
|
|
328
|
+
*/
|
|
329
|
+
autoshare?: boolean;
|
|
330
|
+
/**
|
|
331
|
+
* Automatically update to the latest version
|
|
332
|
+
*/
|
|
333
|
+
autoupdate?: boolean;
|
|
334
|
+
/**
|
|
335
|
+
* Disable providers that are loaded automatically
|
|
336
|
+
*/
|
|
337
|
+
disabled_providers?: Array<string>;
|
|
338
|
+
/**
|
|
339
|
+
* Model to use in the format of provider/model, eg anthropic/claude-2
|
|
340
|
+
*/
|
|
341
|
+
model?: string;
|
|
342
|
+
/**
|
|
343
|
+
* Small model to use for tasks like title generation in the format of provider/model
|
|
344
|
+
*/
|
|
345
|
+
small_model?: string;
|
|
346
|
+
/**
|
|
347
|
+
* Custom username to display in conversations instead of system username
|
|
348
|
+
*/
|
|
349
|
+
username?: string;
|
|
350
|
+
/**
|
|
351
|
+
* @deprecated Use `agent` field instead.
|
|
352
|
+
*/
|
|
353
|
+
mode?: {
|
|
354
|
+
build?: AgentConfig;
|
|
355
|
+
plan?: AgentConfig;
|
|
356
|
+
[key: string]: AgentConfig | undefined;
|
|
357
|
+
};
|
|
358
|
+
/**
|
|
359
|
+
* Agent configuration, see https://opencode.ai/docs/agent
|
|
360
|
+
*/
|
|
361
|
+
agent?: {
|
|
362
|
+
plan?: AgentConfig;
|
|
363
|
+
build?: AgentConfig;
|
|
364
|
+
general?: AgentConfig;
|
|
365
|
+
[key: string]: AgentConfig | undefined;
|
|
366
|
+
};
|
|
367
|
+
/**
|
|
368
|
+
* Custom provider configurations and model overrides
|
|
369
|
+
*/
|
|
370
|
+
provider?: {
|
|
371
|
+
[key: string]: {
|
|
372
|
+
api?: string;
|
|
373
|
+
name?: string;
|
|
374
|
+
env?: Array<string>;
|
|
375
|
+
id?: string;
|
|
376
|
+
npm?: string;
|
|
377
|
+
models?: {
|
|
378
|
+
[key: string]: {
|
|
379
|
+
id?: string;
|
|
380
|
+
name?: string;
|
|
381
|
+
release_date?: string;
|
|
382
|
+
attachment?: boolean;
|
|
383
|
+
reasoning?: boolean;
|
|
384
|
+
temperature?: boolean;
|
|
385
|
+
tool_call?: boolean;
|
|
386
|
+
cost?: {
|
|
387
|
+
input: number;
|
|
388
|
+
output: number;
|
|
389
|
+
cache_read?: number;
|
|
390
|
+
cache_write?: number;
|
|
391
|
+
};
|
|
392
|
+
limit?: {
|
|
393
|
+
context: number;
|
|
394
|
+
output: number;
|
|
395
|
+
};
|
|
396
|
+
modalities?: {
|
|
397
|
+
input: Array<"text" | "audio" | "image" | "video" | "pdf">;
|
|
398
|
+
output: Array<"text" | "audio" | "image" | "video" | "pdf">;
|
|
399
|
+
};
|
|
400
|
+
experimental?: boolean;
|
|
401
|
+
status?: "alpha" | "beta";
|
|
402
|
+
options?: {
|
|
403
|
+
[key: string]: unknown;
|
|
404
|
+
};
|
|
405
|
+
provider?: {
|
|
406
|
+
npm: string;
|
|
407
|
+
};
|
|
408
|
+
};
|
|
409
|
+
};
|
|
410
|
+
options?: {
|
|
411
|
+
apiKey?: string;
|
|
412
|
+
baseURL?: string;
|
|
413
|
+
/**
|
|
414
|
+
* Timeout in milliseconds for requests to this provider. Default is 300000 (5 minutes). Set to false to disable timeout.
|
|
415
|
+
*/
|
|
416
|
+
timeout?: number | false;
|
|
417
|
+
[key: string]: unknown | string | (number | false) | undefined;
|
|
418
|
+
};
|
|
419
|
+
};
|
|
420
|
+
};
|
|
421
|
+
/**
|
|
422
|
+
* MCP (Model Context Protocol) server configurations
|
|
423
|
+
*/
|
|
424
|
+
mcp?: {
|
|
425
|
+
[key: string]: McpLocalConfig | McpRemoteConfig;
|
|
426
|
+
};
|
|
427
|
+
formatter?: {
|
|
428
|
+
[key: string]: {
|
|
429
|
+
disabled?: boolean;
|
|
430
|
+
command?: Array<string>;
|
|
431
|
+
environment?: {
|
|
432
|
+
[key: string]: string;
|
|
433
|
+
};
|
|
434
|
+
extensions?: Array<string>;
|
|
435
|
+
};
|
|
436
|
+
};
|
|
437
|
+
lsp?: {
|
|
438
|
+
[key: string]: {
|
|
439
|
+
disabled: true;
|
|
440
|
+
} | {
|
|
441
|
+
command: Array<string>;
|
|
442
|
+
extensions?: Array<string>;
|
|
443
|
+
disabled?: boolean;
|
|
444
|
+
env?: {
|
|
445
|
+
[key: string]: string;
|
|
446
|
+
};
|
|
447
|
+
initialization?: {
|
|
448
|
+
[key: string]: unknown;
|
|
449
|
+
};
|
|
450
|
+
};
|
|
451
|
+
};
|
|
452
|
+
/**
|
|
453
|
+
* Additional instruction files or patterns to include
|
|
454
|
+
*/
|
|
455
|
+
instructions?: Array<string>;
|
|
456
|
+
layout?: LayoutConfig;
|
|
457
|
+
permission?: {
|
|
458
|
+
edit?: "ask" | "allow" | "deny";
|
|
459
|
+
bash?: ("ask" | "allow" | "deny") | {
|
|
460
|
+
[key: string]: "ask" | "allow" | "deny";
|
|
461
|
+
};
|
|
462
|
+
webfetch?: "ask" | "allow" | "deny";
|
|
463
|
+
};
|
|
464
|
+
tools?: {
|
|
465
|
+
[key: string]: boolean;
|
|
466
|
+
};
|
|
467
|
+
experimental?: {
|
|
468
|
+
hook?: {
|
|
469
|
+
file_edited?: {
|
|
470
|
+
[key: string]: Array<{
|
|
471
|
+
command: Array<string>;
|
|
472
|
+
environment?: {
|
|
473
|
+
[key: string]: string;
|
|
474
|
+
};
|
|
475
|
+
}>;
|
|
476
|
+
};
|
|
477
|
+
session_completed?: Array<{
|
|
478
|
+
command: Array<string>;
|
|
479
|
+
environment?: {
|
|
480
|
+
[key: string]: string;
|
|
481
|
+
};
|
|
482
|
+
}>;
|
|
483
|
+
};
|
|
484
|
+
disable_paste_summary?: boolean;
|
|
485
|
+
};
|
|
486
|
+
};
|
|
487
|
+
export type BadRequestError = {
|
|
488
|
+
data: unknown | null;
|
|
489
|
+
errors: Array<{
|
|
490
|
+
[key: string]: unknown;
|
|
491
|
+
}>;
|
|
492
|
+
success: false;
|
|
493
|
+
};
|
|
494
|
+
export type ToolIds = Array<string>;
|
|
495
|
+
export type ToolListItem = {
|
|
496
|
+
id: string;
|
|
497
|
+
description: string;
|
|
498
|
+
parameters: unknown;
|
|
499
|
+
};
|
|
500
|
+
export type ToolList = Array<ToolListItem>;
|
|
501
|
+
export type Path = {
|
|
502
|
+
state: string;
|
|
503
|
+
config: string;
|
|
504
|
+
worktree: string;
|
|
505
|
+
directory: string;
|
|
506
|
+
};
|
|
507
|
+
export type FileDiff = {
|
|
508
|
+
file: string;
|
|
509
|
+
before: string;
|
|
510
|
+
after: string;
|
|
511
|
+
additions: number;
|
|
512
|
+
deletions: number;
|
|
513
|
+
};
|
|
514
|
+
export type Session = {
|
|
515
|
+
id: string;
|
|
516
|
+
projectID: string;
|
|
517
|
+
directory: string;
|
|
518
|
+
parentID?: string;
|
|
519
|
+
summary?: {
|
|
520
|
+
diffs: Array<FileDiff>;
|
|
521
|
+
};
|
|
522
|
+
share?: {
|
|
523
|
+
url: string;
|
|
524
|
+
};
|
|
525
|
+
title: string;
|
|
526
|
+
version: string;
|
|
527
|
+
time: {
|
|
528
|
+
created: number;
|
|
529
|
+
updated: number;
|
|
530
|
+
compacting?: number;
|
|
531
|
+
};
|
|
532
|
+
revert?: {
|
|
533
|
+
messageID: string;
|
|
534
|
+
partID?: string;
|
|
535
|
+
snapshot?: string;
|
|
536
|
+
diff?: string;
|
|
537
|
+
};
|
|
538
|
+
};
|
|
539
|
+
export type NotFoundError = {
|
|
540
|
+
name: "NotFoundError";
|
|
541
|
+
data: {
|
|
542
|
+
message: string;
|
|
543
|
+
};
|
|
544
|
+
};
|
|
545
|
+
export type Todo = {
|
|
546
|
+
/**
|
|
547
|
+
* Brief description of the task
|
|
548
|
+
*/
|
|
549
|
+
content: string;
|
|
550
|
+
/**
|
|
551
|
+
* Current status of the task: pending, in_progress, completed, cancelled
|
|
552
|
+
*/
|
|
553
|
+
status: string;
|
|
554
|
+
/**
|
|
555
|
+
* Priority level of the task: high, medium, low
|
|
556
|
+
*/
|
|
557
|
+
priority: string;
|
|
558
|
+
/**
|
|
559
|
+
* Unique identifier for the todo item
|
|
560
|
+
*/
|
|
561
|
+
id: string;
|
|
562
|
+
};
|
|
563
|
+
export type UserMessage = {
|
|
564
|
+
id: string;
|
|
565
|
+
sessionID: string;
|
|
566
|
+
role: "user";
|
|
567
|
+
time: {
|
|
568
|
+
created: number;
|
|
569
|
+
};
|
|
570
|
+
summary?: {
|
|
571
|
+
title?: string;
|
|
572
|
+
body?: string;
|
|
573
|
+
diffs: Array<FileDiff>;
|
|
574
|
+
};
|
|
575
|
+
};
|
|
576
|
+
export type ProviderAuthError = {
|
|
577
|
+
name: "ProviderAuthError";
|
|
578
|
+
data: {
|
|
579
|
+
providerID: string;
|
|
580
|
+
message: string;
|
|
581
|
+
};
|
|
582
|
+
};
|
|
583
|
+
export type UnknownError = {
|
|
584
|
+
name: "UnknownError";
|
|
585
|
+
data: {
|
|
586
|
+
message: string;
|
|
587
|
+
};
|
|
588
|
+
};
|
|
589
|
+
export type MessageOutputLengthError = {
|
|
590
|
+
name: "MessageOutputLengthError";
|
|
591
|
+
data: {
|
|
592
|
+
[key: string]: unknown;
|
|
593
|
+
};
|
|
594
|
+
};
|
|
595
|
+
export type MessageAbortedError = {
|
|
596
|
+
name: "MessageAbortedError";
|
|
597
|
+
data: {
|
|
598
|
+
message: string;
|
|
599
|
+
};
|
|
600
|
+
};
|
|
601
|
+
export type ApiError = {
|
|
602
|
+
name: "APIError";
|
|
603
|
+
data: {
|
|
604
|
+
message: string;
|
|
605
|
+
statusCode?: number;
|
|
606
|
+
isRetryable: boolean;
|
|
607
|
+
responseHeaders?: {
|
|
608
|
+
[key: string]: string;
|
|
609
|
+
};
|
|
610
|
+
responseBody?: string;
|
|
611
|
+
};
|
|
612
|
+
};
|
|
613
|
+
export type AssistantMessage = {
|
|
614
|
+
id: string;
|
|
615
|
+
sessionID: string;
|
|
616
|
+
role: "assistant";
|
|
617
|
+
time: {
|
|
618
|
+
created: number;
|
|
619
|
+
completed?: number;
|
|
620
|
+
};
|
|
621
|
+
error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | ApiError;
|
|
622
|
+
system: Array<string>;
|
|
623
|
+
parentID: string;
|
|
624
|
+
modelID: string;
|
|
625
|
+
providerID: string;
|
|
626
|
+
mode: string;
|
|
627
|
+
path: {
|
|
628
|
+
cwd: string;
|
|
629
|
+
root: string;
|
|
630
|
+
};
|
|
631
|
+
summary?: boolean;
|
|
632
|
+
cost: number;
|
|
633
|
+
tokens: {
|
|
634
|
+
input: number;
|
|
635
|
+
output: number;
|
|
636
|
+
reasoning: number;
|
|
637
|
+
cache: {
|
|
638
|
+
read: number;
|
|
639
|
+
write: number;
|
|
640
|
+
};
|
|
641
|
+
};
|
|
642
|
+
};
|
|
643
|
+
export type Message = UserMessage | AssistantMessage;
|
|
644
|
+
export type TextPart = {
|
|
645
|
+
id: string;
|
|
646
|
+
sessionID: string;
|
|
647
|
+
messageID: string;
|
|
648
|
+
type: "text";
|
|
649
|
+
text: string;
|
|
650
|
+
synthetic?: boolean;
|
|
651
|
+
time?: {
|
|
652
|
+
start: number;
|
|
653
|
+
end?: number;
|
|
654
|
+
};
|
|
655
|
+
metadata?: {
|
|
656
|
+
[key: string]: unknown;
|
|
657
|
+
};
|
|
658
|
+
};
|
|
659
|
+
export type ReasoningPart = {
|
|
660
|
+
id: string;
|
|
661
|
+
sessionID: string;
|
|
662
|
+
messageID: string;
|
|
663
|
+
type: "reasoning";
|
|
664
|
+
text: string;
|
|
665
|
+
metadata?: {
|
|
666
|
+
[key: string]: unknown;
|
|
667
|
+
};
|
|
668
|
+
time: {
|
|
669
|
+
start: number;
|
|
670
|
+
end?: number;
|
|
671
|
+
};
|
|
672
|
+
};
|
|
673
|
+
export type FilePartSourceText = {
|
|
674
|
+
value: string;
|
|
675
|
+
start: number;
|
|
676
|
+
end: number;
|
|
677
|
+
};
|
|
678
|
+
export type FileSource = {
|
|
679
|
+
text: FilePartSourceText;
|
|
680
|
+
type: "file";
|
|
681
|
+
path: string;
|
|
682
|
+
};
|
|
683
|
+
export type Range = {
|
|
684
|
+
start: {
|
|
685
|
+
line: number;
|
|
686
|
+
character: number;
|
|
687
|
+
};
|
|
688
|
+
end: {
|
|
689
|
+
line: number;
|
|
690
|
+
character: number;
|
|
691
|
+
};
|
|
692
|
+
};
|
|
693
|
+
export type SymbolSource = {
|
|
694
|
+
text: FilePartSourceText;
|
|
695
|
+
type: "symbol";
|
|
696
|
+
path: string;
|
|
697
|
+
range: Range;
|
|
698
|
+
name: string;
|
|
699
|
+
kind: number;
|
|
700
|
+
};
|
|
701
|
+
export type FilePartSource = FileSource | SymbolSource;
|
|
702
|
+
export type FilePart = {
|
|
703
|
+
id: string;
|
|
704
|
+
sessionID: string;
|
|
705
|
+
messageID: string;
|
|
706
|
+
type: "file";
|
|
707
|
+
mime: string;
|
|
708
|
+
filename?: string;
|
|
709
|
+
url: string;
|
|
710
|
+
source?: FilePartSource;
|
|
711
|
+
};
|
|
712
|
+
export type ToolStatePending = {
|
|
713
|
+
status: "pending";
|
|
714
|
+
};
|
|
715
|
+
export type ToolStateRunning = {
|
|
716
|
+
status: "running";
|
|
717
|
+
input: unknown;
|
|
718
|
+
title?: string;
|
|
719
|
+
metadata?: {
|
|
720
|
+
[key: string]: unknown;
|
|
721
|
+
};
|
|
722
|
+
time: {
|
|
723
|
+
start: number;
|
|
724
|
+
};
|
|
725
|
+
};
|
|
726
|
+
export type ToolStateCompleted = {
|
|
727
|
+
status: "completed";
|
|
728
|
+
input: {
|
|
729
|
+
[key: string]: unknown;
|
|
730
|
+
};
|
|
731
|
+
output: string;
|
|
732
|
+
title: string;
|
|
733
|
+
metadata: {
|
|
734
|
+
[key: string]: unknown;
|
|
735
|
+
};
|
|
736
|
+
time: {
|
|
737
|
+
start: number;
|
|
738
|
+
end: number;
|
|
739
|
+
compacted?: number;
|
|
740
|
+
};
|
|
741
|
+
attachments?: Array<FilePart>;
|
|
742
|
+
};
|
|
743
|
+
export type ToolStateError = {
|
|
744
|
+
status: "error";
|
|
745
|
+
input: {
|
|
746
|
+
[key: string]: unknown;
|
|
747
|
+
};
|
|
748
|
+
error: string;
|
|
749
|
+
metadata?: {
|
|
750
|
+
[key: string]: unknown;
|
|
751
|
+
};
|
|
752
|
+
time: {
|
|
753
|
+
start: number;
|
|
754
|
+
end: number;
|
|
755
|
+
};
|
|
756
|
+
};
|
|
757
|
+
export type ToolState = ToolStatePending | ToolStateRunning | ToolStateCompleted | ToolStateError;
|
|
758
|
+
export type ToolPart = {
|
|
759
|
+
id: string;
|
|
760
|
+
sessionID: string;
|
|
761
|
+
messageID: string;
|
|
762
|
+
type: "tool";
|
|
763
|
+
callID: string;
|
|
764
|
+
tool: string;
|
|
765
|
+
state: ToolState;
|
|
766
|
+
metadata?: {
|
|
767
|
+
[key: string]: unknown;
|
|
768
|
+
};
|
|
769
|
+
};
|
|
770
|
+
export type StepStartPart = {
|
|
771
|
+
id: string;
|
|
772
|
+
sessionID: string;
|
|
773
|
+
messageID: string;
|
|
774
|
+
type: "step-start";
|
|
775
|
+
snapshot?: string;
|
|
776
|
+
};
|
|
777
|
+
export type StepFinishPart = {
|
|
778
|
+
id: string;
|
|
779
|
+
sessionID: string;
|
|
780
|
+
messageID: string;
|
|
781
|
+
type: "step-finish";
|
|
782
|
+
reason: string;
|
|
783
|
+
snapshot?: string;
|
|
784
|
+
cost: number;
|
|
785
|
+
tokens: {
|
|
786
|
+
input: number;
|
|
787
|
+
output: number;
|
|
788
|
+
reasoning: number;
|
|
789
|
+
cache: {
|
|
790
|
+
read: number;
|
|
791
|
+
write: number;
|
|
792
|
+
};
|
|
793
|
+
};
|
|
794
|
+
};
|
|
795
|
+
export type SnapshotPart = {
|
|
796
|
+
id: string;
|
|
797
|
+
sessionID: string;
|
|
798
|
+
messageID: string;
|
|
799
|
+
type: "snapshot";
|
|
800
|
+
snapshot: string;
|
|
801
|
+
};
|
|
802
|
+
export type PatchPart = {
|
|
803
|
+
id: string;
|
|
804
|
+
sessionID: string;
|
|
805
|
+
messageID: string;
|
|
806
|
+
type: "patch";
|
|
807
|
+
hash: string;
|
|
808
|
+
files: Array<string>;
|
|
809
|
+
};
|
|
810
|
+
export type AgentPart = {
|
|
811
|
+
id: string;
|
|
812
|
+
sessionID: string;
|
|
813
|
+
messageID: string;
|
|
814
|
+
type: "agent";
|
|
815
|
+
name: string;
|
|
816
|
+
source?: {
|
|
817
|
+
value: string;
|
|
818
|
+
start: number;
|
|
819
|
+
end: number;
|
|
820
|
+
};
|
|
821
|
+
};
|
|
822
|
+
export type RetryPart = {
|
|
823
|
+
id: string;
|
|
824
|
+
sessionID: string;
|
|
825
|
+
messageID: string;
|
|
826
|
+
type: "retry";
|
|
827
|
+
attempt: number;
|
|
828
|
+
error: ApiError;
|
|
829
|
+
time: {
|
|
830
|
+
created: number;
|
|
831
|
+
};
|
|
832
|
+
};
|
|
833
|
+
export type Part = TextPart | ReasoningPart | FilePart | ToolPart | StepStartPart | StepFinishPart | SnapshotPart | PatchPart | AgentPart | RetryPart;
|
|
834
|
+
export type TextPartInput = {
|
|
835
|
+
id?: string;
|
|
836
|
+
type: "text";
|
|
837
|
+
text: string;
|
|
838
|
+
synthetic?: boolean;
|
|
839
|
+
time?: {
|
|
840
|
+
start: number;
|
|
841
|
+
end?: number;
|
|
842
|
+
};
|
|
843
|
+
metadata?: {
|
|
844
|
+
[key: string]: unknown;
|
|
845
|
+
};
|
|
846
|
+
};
|
|
847
|
+
export type FilePartInput = {
|
|
848
|
+
id?: string;
|
|
849
|
+
type: "file";
|
|
850
|
+
mime: string;
|
|
851
|
+
filename?: string;
|
|
852
|
+
url: string;
|
|
853
|
+
source?: FilePartSource;
|
|
854
|
+
};
|
|
855
|
+
export type AgentPartInput = {
|
|
856
|
+
id?: string;
|
|
857
|
+
type: "agent";
|
|
858
|
+
name: string;
|
|
859
|
+
source?: {
|
|
860
|
+
value: string;
|
|
861
|
+
start: number;
|
|
862
|
+
end: number;
|
|
863
|
+
};
|
|
864
|
+
};
|
|
865
|
+
export type Command = {
|
|
866
|
+
name: string;
|
|
867
|
+
description?: string;
|
|
868
|
+
agent?: string;
|
|
869
|
+
model?: string;
|
|
870
|
+
template: string;
|
|
871
|
+
subtask?: boolean;
|
|
872
|
+
};
|
|
873
|
+
export type Model = {
|
|
874
|
+
id: string;
|
|
875
|
+
name: string;
|
|
876
|
+
release_date: string;
|
|
877
|
+
attachment: boolean;
|
|
878
|
+
reasoning: boolean;
|
|
879
|
+
temperature: boolean;
|
|
880
|
+
tool_call: boolean;
|
|
881
|
+
cost: {
|
|
882
|
+
input: number;
|
|
883
|
+
output: number;
|
|
884
|
+
cache_read?: number;
|
|
885
|
+
cache_write?: number;
|
|
886
|
+
};
|
|
887
|
+
limit: {
|
|
888
|
+
context: number;
|
|
889
|
+
output: number;
|
|
890
|
+
};
|
|
891
|
+
modalities?: {
|
|
892
|
+
input: Array<"text" | "audio" | "image" | "video" | "pdf">;
|
|
893
|
+
output: Array<"text" | "audio" | "image" | "video" | "pdf">;
|
|
894
|
+
};
|
|
895
|
+
experimental?: boolean;
|
|
896
|
+
status?: "alpha" | "beta";
|
|
897
|
+
options: {
|
|
898
|
+
[key: string]: unknown;
|
|
899
|
+
};
|
|
900
|
+
provider?: {
|
|
901
|
+
npm: string;
|
|
902
|
+
};
|
|
903
|
+
};
|
|
904
|
+
export type Provider = {
|
|
905
|
+
api?: string;
|
|
906
|
+
name: string;
|
|
907
|
+
env: Array<string>;
|
|
908
|
+
id: string;
|
|
909
|
+
npm?: string;
|
|
910
|
+
models: {
|
|
911
|
+
[key: string]: Model;
|
|
912
|
+
};
|
|
913
|
+
};
|
|
914
|
+
export type Symbol = {
|
|
915
|
+
name: string;
|
|
916
|
+
kind: number;
|
|
917
|
+
location: {
|
|
918
|
+
uri: string;
|
|
919
|
+
range: Range;
|
|
920
|
+
};
|
|
921
|
+
};
|
|
922
|
+
export type FileNode = {
|
|
923
|
+
name: string;
|
|
924
|
+
path: string;
|
|
925
|
+
absolute: string;
|
|
926
|
+
type: "file" | "directory";
|
|
927
|
+
ignored: boolean;
|
|
928
|
+
};
|
|
929
|
+
export type FileContent = {
|
|
930
|
+
type: "text";
|
|
931
|
+
content: string;
|
|
932
|
+
diff?: string;
|
|
933
|
+
patch?: {
|
|
934
|
+
oldFileName: string;
|
|
935
|
+
newFileName: string;
|
|
936
|
+
oldHeader?: string;
|
|
937
|
+
newHeader?: string;
|
|
938
|
+
hunks: Array<{
|
|
939
|
+
oldStart: number;
|
|
940
|
+
oldLines: number;
|
|
941
|
+
newStart: number;
|
|
942
|
+
newLines: number;
|
|
943
|
+
lines: Array<string>;
|
|
944
|
+
}>;
|
|
945
|
+
index?: string;
|
|
946
|
+
};
|
|
947
|
+
encoding?: "base64";
|
|
948
|
+
mimeType?: string;
|
|
949
|
+
};
|
|
950
|
+
export type File = {
|
|
951
|
+
path: string;
|
|
952
|
+
added: number;
|
|
953
|
+
removed: number;
|
|
954
|
+
status: "added" | "deleted" | "modified";
|
|
955
|
+
};
|
|
956
|
+
export type Agent = {
|
|
957
|
+
name: string;
|
|
958
|
+
description?: string;
|
|
959
|
+
mode: "subagent" | "primary" | "all";
|
|
960
|
+
builtIn: boolean;
|
|
961
|
+
topP?: number;
|
|
962
|
+
temperature?: number;
|
|
963
|
+
permission: {
|
|
964
|
+
edit: "ask" | "allow" | "deny";
|
|
965
|
+
bash: {
|
|
966
|
+
[key: string]: "ask" | "allow" | "deny";
|
|
967
|
+
};
|
|
968
|
+
webfetch?: "ask" | "allow" | "deny";
|
|
969
|
+
};
|
|
970
|
+
model?: {
|
|
971
|
+
modelID: string;
|
|
972
|
+
providerID: string;
|
|
973
|
+
};
|
|
974
|
+
prompt?: string;
|
|
975
|
+
tools: {
|
|
976
|
+
[key: string]: boolean;
|
|
977
|
+
};
|
|
978
|
+
options: {
|
|
979
|
+
[key: string]: unknown;
|
|
980
|
+
};
|
|
981
|
+
};
|
|
982
|
+
export type OAuth = {
|
|
983
|
+
type: "oauth";
|
|
984
|
+
refresh: string;
|
|
985
|
+
access: string;
|
|
986
|
+
expires: number;
|
|
987
|
+
};
|
|
988
|
+
export type ApiAuth = {
|
|
989
|
+
type: "api";
|
|
990
|
+
key: string;
|
|
991
|
+
};
|
|
992
|
+
export type WellKnownAuth = {
|
|
993
|
+
type: "wellknown";
|
|
994
|
+
key: string;
|
|
995
|
+
token: string;
|
|
996
|
+
};
|
|
997
|
+
export type Auth = OAuth | ApiAuth | WellKnownAuth;
|
|
998
|
+
export type EventInstallationUpdated = {
|
|
999
|
+
type: "installation.updated";
|
|
1000
|
+
properties: {
|
|
1001
|
+
version: string;
|
|
1002
|
+
};
|
|
1003
|
+
};
|
|
1004
|
+
export type EventLspClientDiagnostics = {
|
|
1005
|
+
type: "lsp.client.diagnostics";
|
|
1006
|
+
properties: {
|
|
1007
|
+
serverID: string;
|
|
1008
|
+
path: string;
|
|
1009
|
+
};
|
|
1010
|
+
};
|
|
1011
|
+
export type EventMessageUpdated = {
|
|
1012
|
+
type: "message.updated";
|
|
1013
|
+
properties: {
|
|
1014
|
+
info: Message;
|
|
1015
|
+
};
|
|
1016
|
+
};
|
|
1017
|
+
export type EventMessageRemoved = {
|
|
1018
|
+
type: "message.removed";
|
|
1019
|
+
properties: {
|
|
1020
|
+
sessionID: string;
|
|
1021
|
+
messageID: string;
|
|
1022
|
+
};
|
|
1023
|
+
};
|
|
1024
|
+
export type EventMessagePartUpdated = {
|
|
1025
|
+
type: "message.part.updated";
|
|
1026
|
+
properties: {
|
|
1027
|
+
part: Part;
|
|
1028
|
+
delta?: string;
|
|
1029
|
+
};
|
|
1030
|
+
};
|
|
1031
|
+
export type EventMessagePartRemoved = {
|
|
1032
|
+
type: "message.part.removed";
|
|
1033
|
+
properties: {
|
|
1034
|
+
sessionID: string;
|
|
1035
|
+
messageID: string;
|
|
1036
|
+
partID: string;
|
|
1037
|
+
};
|
|
1038
|
+
};
|
|
1039
|
+
export type EventSessionCompacted = {
|
|
1040
|
+
type: "session.compacted";
|
|
1041
|
+
properties: {
|
|
1042
|
+
sessionID: string;
|
|
1043
|
+
};
|
|
1044
|
+
};
|
|
1045
|
+
export type Permission = {
|
|
1046
|
+
id: string;
|
|
1047
|
+
type: string;
|
|
1048
|
+
pattern?: string | Array<string>;
|
|
1049
|
+
sessionID: string;
|
|
1050
|
+
messageID: string;
|
|
1051
|
+
callID?: string;
|
|
1052
|
+
title: string;
|
|
1053
|
+
metadata: {
|
|
1054
|
+
[key: string]: unknown;
|
|
1055
|
+
};
|
|
1056
|
+
time: {
|
|
1057
|
+
created: number;
|
|
1058
|
+
};
|
|
1059
|
+
};
|
|
1060
|
+
export type EventPermissionUpdated = {
|
|
1061
|
+
type: "permission.updated";
|
|
1062
|
+
properties: Permission;
|
|
1063
|
+
};
|
|
1064
|
+
export type EventPermissionReplied = {
|
|
1065
|
+
type: "permission.replied";
|
|
1066
|
+
properties: {
|
|
1067
|
+
sessionID: string;
|
|
1068
|
+
permissionID: string;
|
|
1069
|
+
response: string;
|
|
1070
|
+
};
|
|
1071
|
+
};
|
|
1072
|
+
export type EventFileEdited = {
|
|
1073
|
+
type: "file.edited";
|
|
1074
|
+
properties: {
|
|
1075
|
+
file: string;
|
|
1076
|
+
};
|
|
1077
|
+
};
|
|
1078
|
+
export type EventFileWatcherUpdated = {
|
|
1079
|
+
type: "file.watcher.updated";
|
|
1080
|
+
properties: {
|
|
1081
|
+
file: string;
|
|
1082
|
+
event: "add" | "change" | "unlink";
|
|
1083
|
+
};
|
|
1084
|
+
};
|
|
1085
|
+
export type EventTodoUpdated = {
|
|
1086
|
+
type: "todo.updated";
|
|
1087
|
+
properties: {
|
|
1088
|
+
sessionID: string;
|
|
1089
|
+
todos: Array<Todo>;
|
|
1090
|
+
};
|
|
1091
|
+
};
|
|
1092
|
+
export type EventSessionIdle = {
|
|
1093
|
+
type: "session.idle";
|
|
1094
|
+
properties: {
|
|
1095
|
+
sessionID: string;
|
|
1096
|
+
};
|
|
1097
|
+
};
|
|
1098
|
+
export type EventSessionCreated = {
|
|
1099
|
+
type: "session.created";
|
|
1100
|
+
properties: {
|
|
1101
|
+
info: Session;
|
|
1102
|
+
};
|
|
1103
|
+
};
|
|
1104
|
+
export type EventSessionUpdated = {
|
|
1105
|
+
type: "session.updated";
|
|
1106
|
+
properties: {
|
|
1107
|
+
info: Session;
|
|
1108
|
+
};
|
|
1109
|
+
};
|
|
1110
|
+
export type EventSessionDeleted = {
|
|
1111
|
+
type: "session.deleted";
|
|
1112
|
+
properties: {
|
|
1113
|
+
info: Session;
|
|
1114
|
+
};
|
|
1115
|
+
};
|
|
1116
|
+
export type EventSessionError = {
|
|
1117
|
+
type: "session.error";
|
|
1118
|
+
properties: {
|
|
1119
|
+
sessionID?: string;
|
|
1120
|
+
error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | ApiError;
|
|
1121
|
+
};
|
|
1122
|
+
};
|
|
1123
|
+
export type EventServerConnected = {
|
|
1124
|
+
type: "server.connected";
|
|
1125
|
+
properties: {
|
|
1126
|
+
[key: string]: unknown;
|
|
1127
|
+
};
|
|
1128
|
+
};
|
|
1129
|
+
export type EventIdeInstalled = {
|
|
1130
|
+
type: "ide.installed";
|
|
1131
|
+
properties: {
|
|
1132
|
+
ide: string;
|
|
1133
|
+
};
|
|
1134
|
+
};
|
|
1135
|
+
export type Event = EventInstallationUpdated | EventLspClientDiagnostics | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventSessionCompacted | EventPermissionUpdated | EventPermissionReplied | EventFileEdited | EventFileWatcherUpdated | EventTodoUpdated | EventSessionIdle | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventSessionError | EventServerConnected | EventIdeInstalled;
|
|
1136
|
+
export type ProjectListData = {
|
|
1137
|
+
body?: never;
|
|
1138
|
+
path?: never;
|
|
1139
|
+
query?: {
|
|
1140
|
+
directory?: string;
|
|
1141
|
+
};
|
|
1142
|
+
url: "/project";
|
|
1143
|
+
};
|
|
1144
|
+
export type ProjectListResponses = {
|
|
1145
|
+
/**
|
|
1146
|
+
* List of projects
|
|
1147
|
+
*/
|
|
1148
|
+
200: Array<Project>;
|
|
1149
|
+
};
|
|
1150
|
+
export type ProjectListResponse = ProjectListResponses[keyof ProjectListResponses];
|
|
1151
|
+
export type ProjectCurrentData = {
|
|
1152
|
+
body?: never;
|
|
1153
|
+
path?: never;
|
|
1154
|
+
query?: {
|
|
1155
|
+
directory?: string;
|
|
1156
|
+
};
|
|
1157
|
+
url: "/project/current";
|
|
1158
|
+
};
|
|
1159
|
+
export type ProjectCurrentResponses = {
|
|
1160
|
+
/**
|
|
1161
|
+
* Current project
|
|
1162
|
+
*/
|
|
1163
|
+
200: Project;
|
|
1164
|
+
};
|
|
1165
|
+
export type ProjectCurrentResponse = ProjectCurrentResponses[keyof ProjectCurrentResponses];
|
|
1166
|
+
export type ConfigGetData = {
|
|
1167
|
+
body?: never;
|
|
1168
|
+
path?: never;
|
|
1169
|
+
query?: {
|
|
1170
|
+
directory?: string;
|
|
1171
|
+
};
|
|
1172
|
+
url: "/config";
|
|
1173
|
+
};
|
|
1174
|
+
export type ConfigGetResponses = {
|
|
1175
|
+
/**
|
|
1176
|
+
* Get config info
|
|
1177
|
+
*/
|
|
1178
|
+
200: Config;
|
|
1179
|
+
};
|
|
1180
|
+
export type ConfigGetResponse = ConfigGetResponses[keyof ConfigGetResponses];
|
|
1181
|
+
export type ConfigUpdateData = {
|
|
1182
|
+
body?: Config;
|
|
1183
|
+
path?: never;
|
|
1184
|
+
query?: {
|
|
1185
|
+
directory?: string;
|
|
1186
|
+
};
|
|
1187
|
+
url: "/config";
|
|
1188
|
+
};
|
|
1189
|
+
export type ConfigUpdateErrors = {
|
|
1190
|
+
/**
|
|
1191
|
+
* Bad request
|
|
1192
|
+
*/
|
|
1193
|
+
400: BadRequestError;
|
|
1194
|
+
};
|
|
1195
|
+
export type ConfigUpdateError = ConfigUpdateErrors[keyof ConfigUpdateErrors];
|
|
1196
|
+
export type ConfigUpdateResponses = {
|
|
1197
|
+
/**
|
|
1198
|
+
* Successfully updated config
|
|
1199
|
+
*/
|
|
1200
|
+
200: Config;
|
|
1201
|
+
};
|
|
1202
|
+
export type ConfigUpdateResponse = ConfigUpdateResponses[keyof ConfigUpdateResponses];
|
|
1203
|
+
export type ToolIdsData = {
|
|
1204
|
+
body?: never;
|
|
1205
|
+
path?: never;
|
|
1206
|
+
query?: {
|
|
1207
|
+
directory?: string;
|
|
1208
|
+
};
|
|
1209
|
+
url: "/experimental/tool/ids";
|
|
1210
|
+
};
|
|
1211
|
+
export type ToolIdsErrors = {
|
|
1212
|
+
/**
|
|
1213
|
+
* Bad request
|
|
1214
|
+
*/
|
|
1215
|
+
400: BadRequestError;
|
|
1216
|
+
};
|
|
1217
|
+
export type ToolIdsError = ToolIdsErrors[keyof ToolIdsErrors];
|
|
1218
|
+
export type ToolIdsResponses = {
|
|
1219
|
+
/**
|
|
1220
|
+
* Tool IDs
|
|
1221
|
+
*/
|
|
1222
|
+
200: ToolIds;
|
|
1223
|
+
};
|
|
1224
|
+
export type ToolIdsResponse = ToolIdsResponses[keyof ToolIdsResponses];
|
|
1225
|
+
export type ToolListData = {
|
|
1226
|
+
body?: never;
|
|
1227
|
+
path?: never;
|
|
1228
|
+
query: {
|
|
1229
|
+
directory?: string;
|
|
1230
|
+
provider: string;
|
|
1231
|
+
model: string;
|
|
1232
|
+
};
|
|
1233
|
+
url: "/experimental/tool";
|
|
1234
|
+
};
|
|
1235
|
+
export type ToolListErrors = {
|
|
1236
|
+
/**
|
|
1237
|
+
* Bad request
|
|
1238
|
+
*/
|
|
1239
|
+
400: BadRequestError;
|
|
1240
|
+
};
|
|
1241
|
+
export type ToolListError = ToolListErrors[keyof ToolListErrors];
|
|
1242
|
+
export type ToolListResponses = {
|
|
1243
|
+
/**
|
|
1244
|
+
* Tools
|
|
1245
|
+
*/
|
|
1246
|
+
200: ToolList;
|
|
1247
|
+
};
|
|
1248
|
+
export type ToolListResponse = ToolListResponses[keyof ToolListResponses];
|
|
1249
|
+
export type PathGetData = {
|
|
1250
|
+
body?: never;
|
|
1251
|
+
path?: never;
|
|
1252
|
+
query?: {
|
|
1253
|
+
directory?: string;
|
|
1254
|
+
};
|
|
1255
|
+
url: "/path";
|
|
1256
|
+
};
|
|
1257
|
+
export type PathGetResponses = {
|
|
1258
|
+
/**
|
|
1259
|
+
* Path
|
|
1260
|
+
*/
|
|
1261
|
+
200: Path;
|
|
1262
|
+
};
|
|
1263
|
+
export type PathGetResponse = PathGetResponses[keyof PathGetResponses];
|
|
1264
|
+
export type SessionListData = {
|
|
1265
|
+
body?: never;
|
|
1266
|
+
path?: never;
|
|
1267
|
+
query?: {
|
|
1268
|
+
directory?: string;
|
|
1269
|
+
};
|
|
1270
|
+
url: "/session";
|
|
1271
|
+
};
|
|
1272
|
+
export type SessionListResponses = {
|
|
1273
|
+
/**
|
|
1274
|
+
* List of sessions
|
|
1275
|
+
*/
|
|
1276
|
+
200: Array<Session>;
|
|
1277
|
+
};
|
|
1278
|
+
export type SessionListResponse = SessionListResponses[keyof SessionListResponses];
|
|
1279
|
+
export type SessionCreateData = {
|
|
1280
|
+
body?: {
|
|
1281
|
+
parentID?: string;
|
|
1282
|
+
title?: string;
|
|
1283
|
+
};
|
|
1284
|
+
path?: never;
|
|
1285
|
+
query?: {
|
|
1286
|
+
directory?: string;
|
|
1287
|
+
};
|
|
1288
|
+
url: "/session";
|
|
1289
|
+
};
|
|
1290
|
+
export type SessionCreateErrors = {
|
|
1291
|
+
/**
|
|
1292
|
+
* Bad request
|
|
1293
|
+
*/
|
|
1294
|
+
400: BadRequestError;
|
|
1295
|
+
};
|
|
1296
|
+
export type SessionCreateError = SessionCreateErrors[keyof SessionCreateErrors];
|
|
1297
|
+
export type SessionCreateResponses = {
|
|
1298
|
+
/**
|
|
1299
|
+
* Successfully created session
|
|
1300
|
+
*/
|
|
1301
|
+
200: Session;
|
|
1302
|
+
};
|
|
1303
|
+
export type SessionCreateResponse = SessionCreateResponses[keyof SessionCreateResponses];
|
|
1304
|
+
export type SessionDeleteData = {
|
|
1305
|
+
body?: never;
|
|
1306
|
+
path: {
|
|
1307
|
+
id: string;
|
|
1308
|
+
};
|
|
1309
|
+
query?: {
|
|
1310
|
+
directory?: string;
|
|
1311
|
+
};
|
|
1312
|
+
url: "/session/{id}";
|
|
1313
|
+
};
|
|
1314
|
+
export type SessionDeleteErrors = {
|
|
1315
|
+
/**
|
|
1316
|
+
* Bad request
|
|
1317
|
+
*/
|
|
1318
|
+
400: BadRequestError;
|
|
1319
|
+
/**
|
|
1320
|
+
* Not found
|
|
1321
|
+
*/
|
|
1322
|
+
404: NotFoundError;
|
|
1323
|
+
};
|
|
1324
|
+
export type SessionDeleteError = SessionDeleteErrors[keyof SessionDeleteErrors];
|
|
1325
|
+
export type SessionDeleteResponses = {
|
|
1326
|
+
/**
|
|
1327
|
+
* Successfully deleted session
|
|
1328
|
+
*/
|
|
1329
|
+
200: boolean;
|
|
1330
|
+
};
|
|
1331
|
+
export type SessionDeleteResponse = SessionDeleteResponses[keyof SessionDeleteResponses];
|
|
1332
|
+
export type SessionGetData = {
|
|
1333
|
+
body?: never;
|
|
1334
|
+
path: {
|
|
1335
|
+
id: string;
|
|
1336
|
+
};
|
|
1337
|
+
query?: {
|
|
1338
|
+
directory?: string;
|
|
1339
|
+
};
|
|
1340
|
+
url: "/session/{id}";
|
|
1341
|
+
};
|
|
1342
|
+
export type SessionGetErrors = {
|
|
1343
|
+
/**
|
|
1344
|
+
* Bad request
|
|
1345
|
+
*/
|
|
1346
|
+
400: BadRequestError;
|
|
1347
|
+
/**
|
|
1348
|
+
* Not found
|
|
1349
|
+
*/
|
|
1350
|
+
404: NotFoundError;
|
|
1351
|
+
};
|
|
1352
|
+
export type SessionGetError = SessionGetErrors[keyof SessionGetErrors];
|
|
1353
|
+
export type SessionGetResponses = {
|
|
1354
|
+
/**
|
|
1355
|
+
* Get session
|
|
1356
|
+
*/
|
|
1357
|
+
200: Session;
|
|
1358
|
+
};
|
|
1359
|
+
export type SessionGetResponse = SessionGetResponses[keyof SessionGetResponses];
|
|
1360
|
+
export type SessionUpdateData = {
|
|
1361
|
+
body?: {
|
|
1362
|
+
title?: string;
|
|
1363
|
+
};
|
|
1364
|
+
path: {
|
|
1365
|
+
id: string;
|
|
1366
|
+
};
|
|
1367
|
+
query?: {
|
|
1368
|
+
directory?: string;
|
|
1369
|
+
};
|
|
1370
|
+
url: "/session/{id}";
|
|
1371
|
+
};
|
|
1372
|
+
export type SessionUpdateErrors = {
|
|
1373
|
+
/**
|
|
1374
|
+
* Bad request
|
|
1375
|
+
*/
|
|
1376
|
+
400: BadRequestError;
|
|
1377
|
+
/**
|
|
1378
|
+
* Not found
|
|
1379
|
+
*/
|
|
1380
|
+
404: NotFoundError;
|
|
1381
|
+
};
|
|
1382
|
+
export type SessionUpdateError = SessionUpdateErrors[keyof SessionUpdateErrors];
|
|
1383
|
+
export type SessionUpdateResponses = {
|
|
1384
|
+
/**
|
|
1385
|
+
* Successfully updated session
|
|
1386
|
+
*/
|
|
1387
|
+
200: Session;
|
|
1388
|
+
};
|
|
1389
|
+
export type SessionUpdateResponse = SessionUpdateResponses[keyof SessionUpdateResponses];
|
|
1390
|
+
export type SessionChildrenData = {
|
|
1391
|
+
body?: never;
|
|
1392
|
+
path: {
|
|
1393
|
+
id: string;
|
|
1394
|
+
};
|
|
1395
|
+
query?: {
|
|
1396
|
+
directory?: string;
|
|
1397
|
+
};
|
|
1398
|
+
url: "/session/{id}/children";
|
|
1399
|
+
};
|
|
1400
|
+
export type SessionChildrenErrors = {
|
|
1401
|
+
/**
|
|
1402
|
+
* Bad request
|
|
1403
|
+
*/
|
|
1404
|
+
400: BadRequestError;
|
|
1405
|
+
/**
|
|
1406
|
+
* Not found
|
|
1407
|
+
*/
|
|
1408
|
+
404: NotFoundError;
|
|
1409
|
+
};
|
|
1410
|
+
export type SessionChildrenError = SessionChildrenErrors[keyof SessionChildrenErrors];
|
|
1411
|
+
export type SessionChildrenResponses = {
|
|
1412
|
+
/**
|
|
1413
|
+
* List of children
|
|
1414
|
+
*/
|
|
1415
|
+
200: Array<Session>;
|
|
1416
|
+
};
|
|
1417
|
+
export type SessionChildrenResponse = SessionChildrenResponses[keyof SessionChildrenResponses];
|
|
1418
|
+
export type SessionTodoData = {
|
|
1419
|
+
body?: never;
|
|
1420
|
+
path: {
|
|
1421
|
+
/**
|
|
1422
|
+
* Session ID
|
|
1423
|
+
*/
|
|
1424
|
+
id: string;
|
|
1425
|
+
};
|
|
1426
|
+
query?: {
|
|
1427
|
+
directory?: string;
|
|
1428
|
+
};
|
|
1429
|
+
url: "/session/{id}/todo";
|
|
1430
|
+
};
|
|
1431
|
+
export type SessionTodoErrors = {
|
|
1432
|
+
/**
|
|
1433
|
+
* Bad request
|
|
1434
|
+
*/
|
|
1435
|
+
400: BadRequestError;
|
|
1436
|
+
/**
|
|
1437
|
+
* Not found
|
|
1438
|
+
*/
|
|
1439
|
+
404: NotFoundError;
|
|
1440
|
+
};
|
|
1441
|
+
export type SessionTodoError = SessionTodoErrors[keyof SessionTodoErrors];
|
|
1442
|
+
export type SessionTodoResponses = {
|
|
1443
|
+
/**
|
|
1444
|
+
* Todo list
|
|
1445
|
+
*/
|
|
1446
|
+
200: Array<Todo>;
|
|
1447
|
+
};
|
|
1448
|
+
export type SessionTodoResponse = SessionTodoResponses[keyof SessionTodoResponses];
|
|
1449
|
+
export type SessionInitData = {
|
|
1450
|
+
body?: {
|
|
1451
|
+
modelID: string;
|
|
1452
|
+
providerID: string;
|
|
1453
|
+
messageID: string;
|
|
1454
|
+
};
|
|
1455
|
+
path: {
|
|
1456
|
+
/**
|
|
1457
|
+
* Session ID
|
|
1458
|
+
*/
|
|
1459
|
+
id: string;
|
|
1460
|
+
};
|
|
1461
|
+
query?: {
|
|
1462
|
+
directory?: string;
|
|
1463
|
+
};
|
|
1464
|
+
url: "/session/{id}/init";
|
|
1465
|
+
};
|
|
1466
|
+
export type SessionInitErrors = {
|
|
1467
|
+
/**
|
|
1468
|
+
* Bad request
|
|
1469
|
+
*/
|
|
1470
|
+
400: BadRequestError;
|
|
1471
|
+
/**
|
|
1472
|
+
* Not found
|
|
1473
|
+
*/
|
|
1474
|
+
404: NotFoundError;
|
|
1475
|
+
};
|
|
1476
|
+
export type SessionInitError = SessionInitErrors[keyof SessionInitErrors];
|
|
1477
|
+
export type SessionInitResponses = {
|
|
1478
|
+
/**
|
|
1479
|
+
* 200
|
|
1480
|
+
*/
|
|
1481
|
+
200: boolean;
|
|
1482
|
+
};
|
|
1483
|
+
export type SessionInitResponse = SessionInitResponses[keyof SessionInitResponses];
|
|
1484
|
+
export type SessionForkData = {
|
|
1485
|
+
body?: {
|
|
1486
|
+
messageID?: string;
|
|
1487
|
+
};
|
|
1488
|
+
path: {
|
|
1489
|
+
id: string;
|
|
1490
|
+
};
|
|
1491
|
+
query?: {
|
|
1492
|
+
directory?: string;
|
|
1493
|
+
};
|
|
1494
|
+
url: "/session/{id}/fork";
|
|
1495
|
+
};
|
|
1496
|
+
export type SessionForkResponses = {
|
|
1497
|
+
/**
|
|
1498
|
+
* 200
|
|
1499
|
+
*/
|
|
1500
|
+
200: Session;
|
|
1501
|
+
};
|
|
1502
|
+
export type SessionForkResponse = SessionForkResponses[keyof SessionForkResponses];
|
|
1503
|
+
export type SessionAbortData = {
|
|
1504
|
+
body?: never;
|
|
1505
|
+
path: {
|
|
1506
|
+
id: string;
|
|
1507
|
+
};
|
|
1508
|
+
query?: {
|
|
1509
|
+
directory?: string;
|
|
1510
|
+
};
|
|
1511
|
+
url: "/session/{id}/abort";
|
|
1512
|
+
};
|
|
1513
|
+
export type SessionAbortErrors = {
|
|
1514
|
+
/**
|
|
1515
|
+
* Bad request
|
|
1516
|
+
*/
|
|
1517
|
+
400: BadRequestError;
|
|
1518
|
+
/**
|
|
1519
|
+
* Not found
|
|
1520
|
+
*/
|
|
1521
|
+
404: NotFoundError;
|
|
1522
|
+
};
|
|
1523
|
+
export type SessionAbortError = SessionAbortErrors[keyof SessionAbortErrors];
|
|
1524
|
+
export type SessionAbortResponses = {
|
|
1525
|
+
/**
|
|
1526
|
+
* Aborted session
|
|
1527
|
+
*/
|
|
1528
|
+
200: boolean;
|
|
1529
|
+
};
|
|
1530
|
+
export type SessionAbortResponse = SessionAbortResponses[keyof SessionAbortResponses];
|
|
1531
|
+
export type SessionUnshareData = {
|
|
1532
|
+
body?: never;
|
|
1533
|
+
path: {
|
|
1534
|
+
id: string;
|
|
1535
|
+
};
|
|
1536
|
+
query?: {
|
|
1537
|
+
directory?: string;
|
|
1538
|
+
};
|
|
1539
|
+
url: "/session/{id}/share";
|
|
1540
|
+
};
|
|
1541
|
+
export type SessionUnshareErrors = {
|
|
1542
|
+
/**
|
|
1543
|
+
* Bad request
|
|
1544
|
+
*/
|
|
1545
|
+
400: BadRequestError;
|
|
1546
|
+
/**
|
|
1547
|
+
* Not found
|
|
1548
|
+
*/
|
|
1549
|
+
404: NotFoundError;
|
|
1550
|
+
};
|
|
1551
|
+
export type SessionUnshareError = SessionUnshareErrors[keyof SessionUnshareErrors];
|
|
1552
|
+
export type SessionUnshareResponses = {
|
|
1553
|
+
/**
|
|
1554
|
+
* Successfully unshared session
|
|
1555
|
+
*/
|
|
1556
|
+
200: Session;
|
|
1557
|
+
};
|
|
1558
|
+
export type SessionUnshareResponse = SessionUnshareResponses[keyof SessionUnshareResponses];
|
|
1559
|
+
export type SessionShareData = {
|
|
1560
|
+
body?: never;
|
|
1561
|
+
path: {
|
|
1562
|
+
id: string;
|
|
1563
|
+
};
|
|
1564
|
+
query?: {
|
|
1565
|
+
directory?: string;
|
|
1566
|
+
};
|
|
1567
|
+
url: "/session/{id}/share";
|
|
1568
|
+
};
|
|
1569
|
+
export type SessionShareErrors = {
|
|
1570
|
+
/**
|
|
1571
|
+
* Bad request
|
|
1572
|
+
*/
|
|
1573
|
+
400: BadRequestError;
|
|
1574
|
+
/**
|
|
1575
|
+
* Not found
|
|
1576
|
+
*/
|
|
1577
|
+
404: NotFoundError;
|
|
1578
|
+
};
|
|
1579
|
+
export type SessionShareError = SessionShareErrors[keyof SessionShareErrors];
|
|
1580
|
+
export type SessionShareResponses = {
|
|
1581
|
+
/**
|
|
1582
|
+
* Successfully shared session
|
|
1583
|
+
*/
|
|
1584
|
+
200: Session;
|
|
1585
|
+
};
|
|
1586
|
+
export type SessionShareResponse = SessionShareResponses[keyof SessionShareResponses];
|
|
1587
|
+
export type SessionDiffData = {
|
|
1588
|
+
body?: never;
|
|
1589
|
+
path: {
|
|
1590
|
+
id: string;
|
|
1591
|
+
};
|
|
1592
|
+
query?: {
|
|
1593
|
+
directory?: string;
|
|
1594
|
+
messageID?: string;
|
|
1595
|
+
};
|
|
1596
|
+
url: "/session/{id}/diff";
|
|
1597
|
+
};
|
|
1598
|
+
export type SessionDiffResponses = {
|
|
1599
|
+
/**
|
|
1600
|
+
* Successfully retrieved diff
|
|
1601
|
+
*/
|
|
1602
|
+
200: Array<FileDiff>;
|
|
1603
|
+
};
|
|
1604
|
+
export type SessionDiffResponse = SessionDiffResponses[keyof SessionDiffResponses];
|
|
1605
|
+
export type SessionSummarizeData = {
|
|
1606
|
+
body?: {
|
|
1607
|
+
providerID: string;
|
|
1608
|
+
modelID: string;
|
|
1609
|
+
};
|
|
1610
|
+
path: {
|
|
1611
|
+
/**
|
|
1612
|
+
* Session ID
|
|
1613
|
+
*/
|
|
1614
|
+
id: string;
|
|
1615
|
+
};
|
|
1616
|
+
query?: {
|
|
1617
|
+
directory?: string;
|
|
1618
|
+
};
|
|
1619
|
+
url: "/session/{id}/summarize";
|
|
1620
|
+
};
|
|
1621
|
+
export type SessionSummarizeErrors = {
|
|
1622
|
+
/**
|
|
1623
|
+
* Bad request
|
|
1624
|
+
*/
|
|
1625
|
+
400: BadRequestError;
|
|
1626
|
+
/**
|
|
1627
|
+
* Not found
|
|
1628
|
+
*/
|
|
1629
|
+
404: NotFoundError;
|
|
1630
|
+
};
|
|
1631
|
+
export type SessionSummarizeError = SessionSummarizeErrors[keyof SessionSummarizeErrors];
|
|
1632
|
+
export type SessionSummarizeResponses = {
|
|
1633
|
+
/**
|
|
1634
|
+
* Summarized session
|
|
1635
|
+
*/
|
|
1636
|
+
200: boolean;
|
|
1637
|
+
};
|
|
1638
|
+
export type SessionSummarizeResponse = SessionSummarizeResponses[keyof SessionSummarizeResponses];
|
|
1639
|
+
export type SessionMessagesData = {
|
|
1640
|
+
body?: never;
|
|
1641
|
+
path: {
|
|
1642
|
+
/**
|
|
1643
|
+
* Session ID
|
|
1644
|
+
*/
|
|
1645
|
+
id: string;
|
|
1646
|
+
};
|
|
1647
|
+
query?: {
|
|
1648
|
+
directory?: string;
|
|
1649
|
+
};
|
|
1650
|
+
url: "/session/{id}/message";
|
|
1651
|
+
};
|
|
1652
|
+
export type SessionMessagesErrors = {
|
|
1653
|
+
/**
|
|
1654
|
+
* Bad request
|
|
1655
|
+
*/
|
|
1656
|
+
400: BadRequestError;
|
|
1657
|
+
/**
|
|
1658
|
+
* Not found
|
|
1659
|
+
*/
|
|
1660
|
+
404: NotFoundError;
|
|
1661
|
+
};
|
|
1662
|
+
export type SessionMessagesError = SessionMessagesErrors[keyof SessionMessagesErrors];
|
|
1663
|
+
export type SessionMessagesResponses = {
|
|
1664
|
+
/**
|
|
1665
|
+
* List of messages
|
|
1666
|
+
*/
|
|
1667
|
+
200: Array<{
|
|
1668
|
+
info: Message;
|
|
1669
|
+
parts: Array<Part>;
|
|
1670
|
+
}>;
|
|
1671
|
+
};
|
|
1672
|
+
export type SessionMessagesResponse = SessionMessagesResponses[keyof SessionMessagesResponses];
|
|
1673
|
+
export type SessionPromptData = {
|
|
1674
|
+
body?: {
|
|
1675
|
+
messageID?: string;
|
|
1676
|
+
model?: {
|
|
1677
|
+
providerID: string;
|
|
1678
|
+
modelID: string;
|
|
1679
|
+
};
|
|
1680
|
+
agent?: string;
|
|
1681
|
+
noReply?: boolean;
|
|
1682
|
+
system?: string;
|
|
1683
|
+
tools?: {
|
|
1684
|
+
[key: string]: boolean;
|
|
1685
|
+
};
|
|
1686
|
+
parts: Array<TextPartInput | FilePartInput | AgentPartInput>;
|
|
1687
|
+
};
|
|
1688
|
+
path: {
|
|
1689
|
+
/**
|
|
1690
|
+
* Session ID
|
|
1691
|
+
*/
|
|
1692
|
+
id: string;
|
|
1693
|
+
};
|
|
1694
|
+
query?: {
|
|
1695
|
+
directory?: string;
|
|
1696
|
+
};
|
|
1697
|
+
url: "/session/{id}/message";
|
|
1698
|
+
};
|
|
1699
|
+
export type SessionPromptErrors = {
|
|
1700
|
+
/**
|
|
1701
|
+
* Bad request
|
|
1702
|
+
*/
|
|
1703
|
+
400: BadRequestError;
|
|
1704
|
+
/**
|
|
1705
|
+
* Not found
|
|
1706
|
+
*/
|
|
1707
|
+
404: NotFoundError;
|
|
1708
|
+
};
|
|
1709
|
+
export type SessionPromptError = SessionPromptErrors[keyof SessionPromptErrors];
|
|
1710
|
+
export type SessionPromptResponses = {
|
|
1711
|
+
/**
|
|
1712
|
+
* Created message
|
|
1713
|
+
*/
|
|
1714
|
+
200: {
|
|
1715
|
+
info: AssistantMessage;
|
|
1716
|
+
parts: Array<Part>;
|
|
1717
|
+
};
|
|
1718
|
+
};
|
|
1719
|
+
export type SessionPromptResponse = SessionPromptResponses[keyof SessionPromptResponses];
|
|
1720
|
+
export type SessionMessageData = {
|
|
1721
|
+
body?: never;
|
|
1722
|
+
path: {
|
|
1723
|
+
/**
|
|
1724
|
+
* Session ID
|
|
1725
|
+
*/
|
|
1726
|
+
id: string;
|
|
1727
|
+
/**
|
|
1728
|
+
* Message ID
|
|
1729
|
+
*/
|
|
1730
|
+
messageID: string;
|
|
1731
|
+
};
|
|
1732
|
+
query?: {
|
|
1733
|
+
directory?: string;
|
|
1734
|
+
};
|
|
1735
|
+
url: "/session/{id}/message/{messageID}";
|
|
1736
|
+
};
|
|
1737
|
+
export type SessionMessageErrors = {
|
|
1738
|
+
/**
|
|
1739
|
+
* Bad request
|
|
1740
|
+
*/
|
|
1741
|
+
400: BadRequestError;
|
|
1742
|
+
/**
|
|
1743
|
+
* Not found
|
|
1744
|
+
*/
|
|
1745
|
+
404: NotFoundError;
|
|
1746
|
+
};
|
|
1747
|
+
export type SessionMessageError = SessionMessageErrors[keyof SessionMessageErrors];
|
|
1748
|
+
export type SessionMessageResponses = {
|
|
1749
|
+
/**
|
|
1750
|
+
* Message
|
|
1751
|
+
*/
|
|
1752
|
+
200: {
|
|
1753
|
+
info: Message;
|
|
1754
|
+
parts: Array<Part>;
|
|
1755
|
+
};
|
|
1756
|
+
};
|
|
1757
|
+
export type SessionMessageResponse = SessionMessageResponses[keyof SessionMessageResponses];
|
|
1758
|
+
export type SessionCommandData = {
|
|
1759
|
+
body?: {
|
|
1760
|
+
messageID?: string;
|
|
1761
|
+
agent?: string;
|
|
1762
|
+
model?: string;
|
|
1763
|
+
arguments: string;
|
|
1764
|
+
command: string;
|
|
1765
|
+
};
|
|
1766
|
+
path: {
|
|
1767
|
+
/**
|
|
1768
|
+
* Session ID
|
|
1769
|
+
*/
|
|
1770
|
+
id: string;
|
|
1771
|
+
};
|
|
1772
|
+
query?: {
|
|
1773
|
+
directory?: string;
|
|
1774
|
+
};
|
|
1775
|
+
url: "/session/{id}/command";
|
|
1776
|
+
};
|
|
1777
|
+
export type SessionCommandErrors = {
|
|
1778
|
+
/**
|
|
1779
|
+
* Bad request
|
|
1780
|
+
*/
|
|
1781
|
+
400: BadRequestError;
|
|
1782
|
+
/**
|
|
1783
|
+
* Not found
|
|
1784
|
+
*/
|
|
1785
|
+
404: NotFoundError;
|
|
1786
|
+
};
|
|
1787
|
+
export type SessionCommandError = SessionCommandErrors[keyof SessionCommandErrors];
|
|
1788
|
+
export type SessionCommandResponses = {
|
|
1789
|
+
/**
|
|
1790
|
+
* Created message
|
|
1791
|
+
*/
|
|
1792
|
+
200: {
|
|
1793
|
+
info: AssistantMessage;
|
|
1794
|
+
parts: Array<Part>;
|
|
1795
|
+
};
|
|
1796
|
+
};
|
|
1797
|
+
export type SessionCommandResponse = SessionCommandResponses[keyof SessionCommandResponses];
|
|
1798
|
+
export type SessionShellData = {
|
|
1799
|
+
body?: {
|
|
1800
|
+
agent: string;
|
|
1801
|
+
command: string;
|
|
1802
|
+
};
|
|
1803
|
+
path: {
|
|
1804
|
+
/**
|
|
1805
|
+
* Session ID
|
|
1806
|
+
*/
|
|
1807
|
+
id: string;
|
|
1808
|
+
};
|
|
1809
|
+
query?: {
|
|
1810
|
+
directory?: string;
|
|
1811
|
+
};
|
|
1812
|
+
url: "/session/{id}/shell";
|
|
1813
|
+
};
|
|
1814
|
+
export type SessionShellErrors = {
|
|
1815
|
+
/**
|
|
1816
|
+
* Bad request
|
|
1817
|
+
*/
|
|
1818
|
+
400: BadRequestError;
|
|
1819
|
+
/**
|
|
1820
|
+
* Not found
|
|
1821
|
+
*/
|
|
1822
|
+
404: NotFoundError;
|
|
1823
|
+
};
|
|
1824
|
+
export type SessionShellError = SessionShellErrors[keyof SessionShellErrors];
|
|
1825
|
+
export type SessionShellResponses = {
|
|
1826
|
+
/**
|
|
1827
|
+
* Created message
|
|
1828
|
+
*/
|
|
1829
|
+
200: AssistantMessage;
|
|
1830
|
+
};
|
|
1831
|
+
export type SessionShellResponse = SessionShellResponses[keyof SessionShellResponses];
|
|
1832
|
+
export type SessionRevertData = {
|
|
1833
|
+
body?: {
|
|
1834
|
+
messageID: string;
|
|
1835
|
+
partID?: string;
|
|
1836
|
+
};
|
|
1837
|
+
path: {
|
|
1838
|
+
id: string;
|
|
1839
|
+
};
|
|
1840
|
+
query?: {
|
|
1841
|
+
directory?: string;
|
|
1842
|
+
};
|
|
1843
|
+
url: "/session/{id}/revert";
|
|
1844
|
+
};
|
|
1845
|
+
export type SessionRevertErrors = {
|
|
1846
|
+
/**
|
|
1847
|
+
* Bad request
|
|
1848
|
+
*/
|
|
1849
|
+
400: BadRequestError;
|
|
1850
|
+
/**
|
|
1851
|
+
* Not found
|
|
1852
|
+
*/
|
|
1853
|
+
404: NotFoundError;
|
|
1854
|
+
};
|
|
1855
|
+
export type SessionRevertError = SessionRevertErrors[keyof SessionRevertErrors];
|
|
1856
|
+
export type SessionRevertResponses = {
|
|
1857
|
+
/**
|
|
1858
|
+
* Updated session
|
|
1859
|
+
*/
|
|
1860
|
+
200: Session;
|
|
1861
|
+
};
|
|
1862
|
+
export type SessionRevertResponse = SessionRevertResponses[keyof SessionRevertResponses];
|
|
1863
|
+
export type SessionUnrevertData = {
|
|
1864
|
+
body?: never;
|
|
1865
|
+
path: {
|
|
1866
|
+
id: string;
|
|
1867
|
+
};
|
|
1868
|
+
query?: {
|
|
1869
|
+
directory?: string;
|
|
1870
|
+
};
|
|
1871
|
+
url: "/session/{id}/unrevert";
|
|
1872
|
+
};
|
|
1873
|
+
export type SessionUnrevertErrors = {
|
|
1874
|
+
/**
|
|
1875
|
+
* Bad request
|
|
1876
|
+
*/
|
|
1877
|
+
400: BadRequestError;
|
|
1878
|
+
/**
|
|
1879
|
+
* Not found
|
|
1880
|
+
*/
|
|
1881
|
+
404: NotFoundError;
|
|
1882
|
+
};
|
|
1883
|
+
export type SessionUnrevertError = SessionUnrevertErrors[keyof SessionUnrevertErrors];
|
|
1884
|
+
export type SessionUnrevertResponses = {
|
|
1885
|
+
/**
|
|
1886
|
+
* Updated session
|
|
1887
|
+
*/
|
|
1888
|
+
200: Session;
|
|
1889
|
+
};
|
|
1890
|
+
export type SessionUnrevertResponse = SessionUnrevertResponses[keyof SessionUnrevertResponses];
|
|
1891
|
+
export type PostSessionIdPermissionsPermissionIdData = {
|
|
1892
|
+
body?: {
|
|
1893
|
+
response: "once" | "always" | "reject";
|
|
1894
|
+
};
|
|
1895
|
+
path: {
|
|
1896
|
+
id: string;
|
|
1897
|
+
permissionID: string;
|
|
1898
|
+
};
|
|
1899
|
+
query?: {
|
|
1900
|
+
directory?: string;
|
|
1901
|
+
};
|
|
1902
|
+
url: "/session/{id}/permissions/{permissionID}";
|
|
1903
|
+
};
|
|
1904
|
+
export type PostSessionIdPermissionsPermissionIdErrors = {
|
|
1905
|
+
/**
|
|
1906
|
+
* Bad request
|
|
1907
|
+
*/
|
|
1908
|
+
400: BadRequestError;
|
|
1909
|
+
/**
|
|
1910
|
+
* Not found
|
|
1911
|
+
*/
|
|
1912
|
+
404: NotFoundError;
|
|
1913
|
+
};
|
|
1914
|
+
export type PostSessionIdPermissionsPermissionIdError = PostSessionIdPermissionsPermissionIdErrors[keyof PostSessionIdPermissionsPermissionIdErrors];
|
|
1915
|
+
export type PostSessionIdPermissionsPermissionIdResponses = {
|
|
1916
|
+
/**
|
|
1917
|
+
* Permission processed successfully
|
|
1918
|
+
*/
|
|
1919
|
+
200: boolean;
|
|
1920
|
+
};
|
|
1921
|
+
export type PostSessionIdPermissionsPermissionIdResponse = PostSessionIdPermissionsPermissionIdResponses[keyof PostSessionIdPermissionsPermissionIdResponses];
|
|
1922
|
+
export type CommandListData = {
|
|
1923
|
+
body?: never;
|
|
1924
|
+
path?: never;
|
|
1925
|
+
query?: {
|
|
1926
|
+
directory?: string;
|
|
1927
|
+
};
|
|
1928
|
+
url: "/command";
|
|
1929
|
+
};
|
|
1930
|
+
export type CommandListResponses = {
|
|
1931
|
+
/**
|
|
1932
|
+
* List of commands
|
|
1933
|
+
*/
|
|
1934
|
+
200: Array<Command>;
|
|
1935
|
+
};
|
|
1936
|
+
export type CommandListResponse = CommandListResponses[keyof CommandListResponses];
|
|
1937
|
+
export type ConfigProvidersData = {
|
|
1938
|
+
body?: never;
|
|
1939
|
+
path?: never;
|
|
1940
|
+
query?: {
|
|
1941
|
+
directory?: string;
|
|
1942
|
+
};
|
|
1943
|
+
url: "/config/providers";
|
|
1944
|
+
};
|
|
1945
|
+
export type ConfigProvidersResponses = {
|
|
1946
|
+
/**
|
|
1947
|
+
* List of providers
|
|
1948
|
+
*/
|
|
1949
|
+
200: {
|
|
1950
|
+
providers: Array<Provider>;
|
|
1951
|
+
default: {
|
|
1952
|
+
[key: string]: string;
|
|
1953
|
+
};
|
|
1954
|
+
};
|
|
1955
|
+
};
|
|
1956
|
+
export type ConfigProvidersResponse = ConfigProvidersResponses[keyof ConfigProvidersResponses];
|
|
1957
|
+
export type FindTextData = {
|
|
1958
|
+
body?: never;
|
|
1959
|
+
path?: never;
|
|
1960
|
+
query: {
|
|
1961
|
+
directory?: string;
|
|
1962
|
+
pattern: string;
|
|
1963
|
+
};
|
|
1964
|
+
url: "/find";
|
|
1965
|
+
};
|
|
1966
|
+
export type FindTextResponses = {
|
|
1967
|
+
/**
|
|
1968
|
+
* Matches
|
|
1969
|
+
*/
|
|
1970
|
+
200: Array<{
|
|
1971
|
+
path: {
|
|
1972
|
+
text: string;
|
|
1973
|
+
};
|
|
1974
|
+
lines: {
|
|
1975
|
+
text: string;
|
|
1976
|
+
};
|
|
1977
|
+
line_number: number;
|
|
1978
|
+
absolute_offset: number;
|
|
1979
|
+
submatches: Array<{
|
|
1980
|
+
match: {
|
|
1981
|
+
text: string;
|
|
1982
|
+
};
|
|
1983
|
+
start: number;
|
|
1984
|
+
end: number;
|
|
1985
|
+
}>;
|
|
1986
|
+
}>;
|
|
1987
|
+
};
|
|
1988
|
+
export type FindTextResponse = FindTextResponses[keyof FindTextResponses];
|
|
1989
|
+
export type FindFilesData = {
|
|
1990
|
+
body?: never;
|
|
1991
|
+
path?: never;
|
|
1992
|
+
query: {
|
|
1993
|
+
directory?: string;
|
|
1994
|
+
query: string;
|
|
1995
|
+
};
|
|
1996
|
+
url: "/find/file";
|
|
1997
|
+
};
|
|
1998
|
+
export type FindFilesResponses = {
|
|
1999
|
+
/**
|
|
2000
|
+
* File paths
|
|
2001
|
+
*/
|
|
2002
|
+
200: Array<string>;
|
|
2003
|
+
};
|
|
2004
|
+
export type FindFilesResponse = FindFilesResponses[keyof FindFilesResponses];
|
|
2005
|
+
export type FindSymbolsData = {
|
|
2006
|
+
body?: never;
|
|
2007
|
+
path?: never;
|
|
2008
|
+
query: {
|
|
2009
|
+
directory?: string;
|
|
2010
|
+
query: string;
|
|
2011
|
+
};
|
|
2012
|
+
url: "/find/symbol";
|
|
2013
|
+
};
|
|
2014
|
+
export type FindSymbolsResponses = {
|
|
2015
|
+
/**
|
|
2016
|
+
* Symbols
|
|
2017
|
+
*/
|
|
2018
|
+
200: Array<Symbol>;
|
|
2019
|
+
};
|
|
2020
|
+
export type FindSymbolsResponse = FindSymbolsResponses[keyof FindSymbolsResponses];
|
|
2021
|
+
export type FileListData = {
|
|
2022
|
+
body?: never;
|
|
2023
|
+
path?: never;
|
|
2024
|
+
query: {
|
|
2025
|
+
directory?: string;
|
|
2026
|
+
path: string;
|
|
2027
|
+
};
|
|
2028
|
+
url: "/file";
|
|
2029
|
+
};
|
|
2030
|
+
export type FileListResponses = {
|
|
2031
|
+
/**
|
|
2032
|
+
* Files and directories
|
|
2033
|
+
*/
|
|
2034
|
+
200: Array<FileNode>;
|
|
2035
|
+
};
|
|
2036
|
+
export type FileListResponse = FileListResponses[keyof FileListResponses];
|
|
2037
|
+
export type FileReadData = {
|
|
2038
|
+
body?: never;
|
|
2039
|
+
path?: never;
|
|
2040
|
+
query: {
|
|
2041
|
+
directory?: string;
|
|
2042
|
+
path: string;
|
|
2043
|
+
};
|
|
2044
|
+
url: "/file/content";
|
|
2045
|
+
};
|
|
2046
|
+
export type FileReadResponses = {
|
|
2047
|
+
/**
|
|
2048
|
+
* File content
|
|
2049
|
+
*/
|
|
2050
|
+
200: FileContent;
|
|
2051
|
+
};
|
|
2052
|
+
export type FileReadResponse = FileReadResponses[keyof FileReadResponses];
|
|
2053
|
+
export type FileStatusData = {
|
|
2054
|
+
body?: never;
|
|
2055
|
+
path?: never;
|
|
2056
|
+
query?: {
|
|
2057
|
+
directory?: string;
|
|
2058
|
+
};
|
|
2059
|
+
url: "/file/status";
|
|
2060
|
+
};
|
|
2061
|
+
export type FileStatusResponses = {
|
|
2062
|
+
/**
|
|
2063
|
+
* File status
|
|
2064
|
+
*/
|
|
2065
|
+
200: Array<File>;
|
|
2066
|
+
};
|
|
2067
|
+
export type FileStatusResponse = FileStatusResponses[keyof FileStatusResponses];
|
|
2068
|
+
export type AppLogData = {
|
|
2069
|
+
body?: {
|
|
2070
|
+
/**
|
|
2071
|
+
* Service name for the log entry
|
|
2072
|
+
*/
|
|
2073
|
+
service: string;
|
|
2074
|
+
/**
|
|
2075
|
+
* Log level
|
|
2076
|
+
*/
|
|
2077
|
+
level: "debug" | "info" | "error" | "warn";
|
|
2078
|
+
/**
|
|
2079
|
+
* Log message
|
|
2080
|
+
*/
|
|
2081
|
+
message: string;
|
|
2082
|
+
/**
|
|
2083
|
+
* Additional metadata for the log entry
|
|
2084
|
+
*/
|
|
2085
|
+
extra?: {
|
|
2086
|
+
[key: string]: unknown;
|
|
2087
|
+
};
|
|
2088
|
+
};
|
|
2089
|
+
path?: never;
|
|
2090
|
+
query?: {
|
|
2091
|
+
directory?: string;
|
|
2092
|
+
};
|
|
2093
|
+
url: "/log";
|
|
2094
|
+
};
|
|
2095
|
+
export type AppLogErrors = {
|
|
2096
|
+
/**
|
|
2097
|
+
* Bad request
|
|
2098
|
+
*/
|
|
2099
|
+
400: BadRequestError;
|
|
2100
|
+
};
|
|
2101
|
+
export type AppLogError = AppLogErrors[keyof AppLogErrors];
|
|
2102
|
+
export type AppLogResponses = {
|
|
2103
|
+
/**
|
|
2104
|
+
* Log entry written successfully
|
|
2105
|
+
*/
|
|
2106
|
+
200: boolean;
|
|
2107
|
+
};
|
|
2108
|
+
export type AppLogResponse = AppLogResponses[keyof AppLogResponses];
|
|
2109
|
+
export type AppAgentsData = {
|
|
2110
|
+
body?: never;
|
|
2111
|
+
path?: never;
|
|
2112
|
+
query?: {
|
|
2113
|
+
directory?: string;
|
|
2114
|
+
};
|
|
2115
|
+
url: "/agent";
|
|
2116
|
+
};
|
|
2117
|
+
export type AppAgentsResponses = {
|
|
2118
|
+
/**
|
|
2119
|
+
* List of agents
|
|
2120
|
+
*/
|
|
2121
|
+
200: Array<Agent>;
|
|
2122
|
+
};
|
|
2123
|
+
export type AppAgentsResponse = AppAgentsResponses[keyof AppAgentsResponses];
|
|
2124
|
+
export type McpStatusData = {
|
|
2125
|
+
body?: never;
|
|
2126
|
+
path?: never;
|
|
2127
|
+
query?: {
|
|
2128
|
+
directory?: string;
|
|
2129
|
+
};
|
|
2130
|
+
url: "/mcp";
|
|
2131
|
+
};
|
|
2132
|
+
export type McpStatusResponses = {
|
|
2133
|
+
/**
|
|
2134
|
+
* MCP server status
|
|
2135
|
+
*/
|
|
2136
|
+
200: unknown;
|
|
2137
|
+
};
|
|
2138
|
+
export type TuiAppendPromptData = {
|
|
2139
|
+
body?: {
|
|
2140
|
+
text: string;
|
|
2141
|
+
};
|
|
2142
|
+
path?: never;
|
|
2143
|
+
query?: {
|
|
2144
|
+
directory?: string;
|
|
2145
|
+
};
|
|
2146
|
+
url: "/tui/append-prompt";
|
|
2147
|
+
};
|
|
2148
|
+
export type TuiAppendPromptErrors = {
|
|
2149
|
+
/**
|
|
2150
|
+
* Bad request
|
|
2151
|
+
*/
|
|
2152
|
+
400: BadRequestError;
|
|
2153
|
+
};
|
|
2154
|
+
export type TuiAppendPromptError = TuiAppendPromptErrors[keyof TuiAppendPromptErrors];
|
|
2155
|
+
export type TuiAppendPromptResponses = {
|
|
2156
|
+
/**
|
|
2157
|
+
* Prompt processed successfully
|
|
2158
|
+
*/
|
|
2159
|
+
200: boolean;
|
|
2160
|
+
};
|
|
2161
|
+
export type TuiAppendPromptResponse = TuiAppendPromptResponses[keyof TuiAppendPromptResponses];
|
|
2162
|
+
export type TuiOpenHelpData = {
|
|
2163
|
+
body?: never;
|
|
2164
|
+
path?: never;
|
|
2165
|
+
query?: {
|
|
2166
|
+
directory?: string;
|
|
2167
|
+
};
|
|
2168
|
+
url: "/tui/open-help";
|
|
2169
|
+
};
|
|
2170
|
+
export type TuiOpenHelpResponses = {
|
|
2171
|
+
/**
|
|
2172
|
+
* Help dialog opened successfully
|
|
2173
|
+
*/
|
|
2174
|
+
200: boolean;
|
|
2175
|
+
};
|
|
2176
|
+
export type TuiOpenHelpResponse = TuiOpenHelpResponses[keyof TuiOpenHelpResponses];
|
|
2177
|
+
export type TuiOpenSessionsData = {
|
|
2178
|
+
body?: never;
|
|
2179
|
+
path?: never;
|
|
2180
|
+
query?: {
|
|
2181
|
+
directory?: string;
|
|
2182
|
+
};
|
|
2183
|
+
url: "/tui/open-sessions";
|
|
2184
|
+
};
|
|
2185
|
+
export type TuiOpenSessionsResponses = {
|
|
2186
|
+
/**
|
|
2187
|
+
* Session dialog opened successfully
|
|
2188
|
+
*/
|
|
2189
|
+
200: boolean;
|
|
2190
|
+
};
|
|
2191
|
+
export type TuiOpenSessionsResponse = TuiOpenSessionsResponses[keyof TuiOpenSessionsResponses];
|
|
2192
|
+
export type TuiOpenThemesData = {
|
|
2193
|
+
body?: never;
|
|
2194
|
+
path?: never;
|
|
2195
|
+
query?: {
|
|
2196
|
+
directory?: string;
|
|
2197
|
+
};
|
|
2198
|
+
url: "/tui/open-themes";
|
|
2199
|
+
};
|
|
2200
|
+
export type TuiOpenThemesResponses = {
|
|
2201
|
+
/**
|
|
2202
|
+
* Theme dialog opened successfully
|
|
2203
|
+
*/
|
|
2204
|
+
200: boolean;
|
|
2205
|
+
};
|
|
2206
|
+
export type TuiOpenThemesResponse = TuiOpenThemesResponses[keyof TuiOpenThemesResponses];
|
|
2207
|
+
export type TuiOpenModelsData = {
|
|
2208
|
+
body?: never;
|
|
2209
|
+
path?: never;
|
|
2210
|
+
query?: {
|
|
2211
|
+
directory?: string;
|
|
2212
|
+
};
|
|
2213
|
+
url: "/tui/open-models";
|
|
2214
|
+
};
|
|
2215
|
+
export type TuiOpenModelsResponses = {
|
|
2216
|
+
/**
|
|
2217
|
+
* Model dialog opened successfully
|
|
2218
|
+
*/
|
|
2219
|
+
200: boolean;
|
|
2220
|
+
};
|
|
2221
|
+
export type TuiOpenModelsResponse = TuiOpenModelsResponses[keyof TuiOpenModelsResponses];
|
|
2222
|
+
export type TuiSubmitPromptData = {
|
|
2223
|
+
body?: never;
|
|
2224
|
+
path?: never;
|
|
2225
|
+
query?: {
|
|
2226
|
+
directory?: string;
|
|
2227
|
+
};
|
|
2228
|
+
url: "/tui/submit-prompt";
|
|
2229
|
+
};
|
|
2230
|
+
export type TuiSubmitPromptResponses = {
|
|
2231
|
+
/**
|
|
2232
|
+
* Prompt submitted successfully
|
|
2233
|
+
*/
|
|
2234
|
+
200: boolean;
|
|
2235
|
+
};
|
|
2236
|
+
export type TuiSubmitPromptResponse = TuiSubmitPromptResponses[keyof TuiSubmitPromptResponses];
|
|
2237
|
+
export type TuiClearPromptData = {
|
|
2238
|
+
body?: never;
|
|
2239
|
+
path?: never;
|
|
2240
|
+
query?: {
|
|
2241
|
+
directory?: string;
|
|
2242
|
+
};
|
|
2243
|
+
url: "/tui/clear-prompt";
|
|
2244
|
+
};
|
|
2245
|
+
export type TuiClearPromptResponses = {
|
|
2246
|
+
/**
|
|
2247
|
+
* Prompt cleared successfully
|
|
2248
|
+
*/
|
|
2249
|
+
200: boolean;
|
|
2250
|
+
};
|
|
2251
|
+
export type TuiClearPromptResponse = TuiClearPromptResponses[keyof TuiClearPromptResponses];
|
|
2252
|
+
export type TuiExecuteCommandData = {
|
|
2253
|
+
body?: {
|
|
2254
|
+
command: string;
|
|
2255
|
+
};
|
|
2256
|
+
path?: never;
|
|
2257
|
+
query?: {
|
|
2258
|
+
directory?: string;
|
|
2259
|
+
};
|
|
2260
|
+
url: "/tui/execute-command";
|
|
2261
|
+
};
|
|
2262
|
+
export type TuiExecuteCommandErrors = {
|
|
2263
|
+
/**
|
|
2264
|
+
* Bad request
|
|
2265
|
+
*/
|
|
2266
|
+
400: BadRequestError;
|
|
2267
|
+
};
|
|
2268
|
+
export type TuiExecuteCommandError = TuiExecuteCommandErrors[keyof TuiExecuteCommandErrors];
|
|
2269
|
+
export type TuiExecuteCommandResponses = {
|
|
2270
|
+
/**
|
|
2271
|
+
* Command executed successfully
|
|
2272
|
+
*/
|
|
2273
|
+
200: boolean;
|
|
2274
|
+
};
|
|
2275
|
+
export type TuiExecuteCommandResponse = TuiExecuteCommandResponses[keyof TuiExecuteCommandResponses];
|
|
2276
|
+
export type TuiShowToastData = {
|
|
2277
|
+
body?: {
|
|
2278
|
+
title?: string;
|
|
2279
|
+
message: string;
|
|
2280
|
+
variant: "info" | "success" | "warning" | "error";
|
|
2281
|
+
};
|
|
2282
|
+
path?: never;
|
|
2283
|
+
query?: {
|
|
2284
|
+
directory?: string;
|
|
2285
|
+
};
|
|
2286
|
+
url: "/tui/show-toast";
|
|
2287
|
+
};
|
|
2288
|
+
export type TuiShowToastResponses = {
|
|
2289
|
+
/**
|
|
2290
|
+
* Toast notification shown successfully
|
|
2291
|
+
*/
|
|
2292
|
+
200: boolean;
|
|
2293
|
+
};
|
|
2294
|
+
export type TuiShowToastResponse = TuiShowToastResponses[keyof TuiShowToastResponses];
|
|
2295
|
+
export type AuthSetData = {
|
|
2296
|
+
body?: Auth;
|
|
2297
|
+
path: {
|
|
2298
|
+
id: string;
|
|
2299
|
+
};
|
|
2300
|
+
query?: {
|
|
2301
|
+
directory?: string;
|
|
2302
|
+
};
|
|
2303
|
+
url: "/auth/{id}";
|
|
2304
|
+
};
|
|
2305
|
+
export type AuthSetErrors = {
|
|
2306
|
+
/**
|
|
2307
|
+
* Bad request
|
|
2308
|
+
*/
|
|
2309
|
+
400: BadRequestError;
|
|
2310
|
+
};
|
|
2311
|
+
export type AuthSetError = AuthSetErrors[keyof AuthSetErrors];
|
|
2312
|
+
export type AuthSetResponses = {
|
|
2313
|
+
/**
|
|
2314
|
+
* Successfully set authentication credentials
|
|
2315
|
+
*/
|
|
2316
|
+
200: boolean;
|
|
2317
|
+
};
|
|
2318
|
+
export type AuthSetResponse = AuthSetResponses[keyof AuthSetResponses];
|
|
2319
|
+
export type EventSubscribeData = {
|
|
2320
|
+
body?: never;
|
|
2321
|
+
path?: never;
|
|
2322
|
+
query?: {
|
|
2323
|
+
directory?: string;
|
|
2324
|
+
};
|
|
2325
|
+
url: "/event";
|
|
2326
|
+
};
|
|
2327
|
+
export type EventSubscribeResponses = {
|
|
2328
|
+
/**
|
|
2329
|
+
* Event stream
|
|
2330
|
+
*/
|
|
2331
|
+
200: Event;
|
|
2332
|
+
};
|
|
2333
|
+
export type EventSubscribeResponse = EventSubscribeResponses[keyof EventSubscribeResponses];
|
|
2334
|
+
export type ClientOptions = {
|
|
2335
|
+
baseUrl: `${string}://${string}` | (string & {});
|
|
2336
|
+
};
|