ideavo-code-sdk 1.1.65-dev.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.
Files changed (71) hide show
  1. package/dist/client.d.ts +7 -0
  2. package/dist/client.js +25 -0
  3. package/dist/gen/client/client.gen.d.ts +2 -0
  4. package/dist/gen/client/client.gen.js +165 -0
  5. package/dist/gen/client/index.d.ts +7 -0
  6. package/dist/gen/client/index.js +5 -0
  7. package/dist/gen/client/types.gen.d.ts +127 -0
  8. package/dist/gen/client/types.gen.js +2 -0
  9. package/dist/gen/client/utils.gen.d.ts +38 -0
  10. package/dist/gen/client/utils.gen.js +226 -0
  11. package/dist/gen/client.gen.d.ts +12 -0
  12. package/dist/gen/client.gen.js +5 -0
  13. package/dist/gen/core/auth.gen.d.ts +18 -0
  14. package/dist/gen/core/auth.gen.js +14 -0
  15. package/dist/gen/core/bodySerializer.gen.d.ts +17 -0
  16. package/dist/gen/core/bodySerializer.gen.js +57 -0
  17. package/dist/gen/core/params.gen.d.ts +33 -0
  18. package/dist/gen/core/params.gen.js +89 -0
  19. package/dist/gen/core/pathSerializer.gen.d.ts +33 -0
  20. package/dist/gen/core/pathSerializer.gen.js +106 -0
  21. package/dist/gen/core/serverSentEvents.gen.d.ts +59 -0
  22. package/dist/gen/core/serverSentEvents.gen.js +117 -0
  23. package/dist/gen/core/types.gen.d.ts +78 -0
  24. package/dist/gen/core/types.gen.js +2 -0
  25. package/dist/gen/core/utils.gen.d.ts +14 -0
  26. package/dist/gen/core/utils.gen.js +69 -0
  27. package/dist/gen/sdk.gen.d.ts +403 -0
  28. package/dist/gen/sdk.gen.js +881 -0
  29. package/dist/gen/types.gen.d.ts +3387 -0
  30. package/dist/gen/types.gen.js +2 -0
  31. package/dist/index.d.ts +10 -0
  32. package/dist/index.js +16 -0
  33. package/dist/server.d.ts +23 -0
  34. package/dist/server.js +94 -0
  35. package/dist/v2/client.d.ts +7 -0
  36. package/dist/v2/client.js +27 -0
  37. package/dist/v2/gen/client/client.gen.d.ts +2 -0
  38. package/dist/v2/gen/client/client.gen.js +232 -0
  39. package/dist/v2/gen/client/index.d.ts +8 -0
  40. package/dist/v2/gen/client/index.js +6 -0
  41. package/dist/v2/gen/client/types.gen.d.ts +117 -0
  42. package/dist/v2/gen/client/types.gen.js +2 -0
  43. package/dist/v2/gen/client/utils.gen.d.ts +33 -0
  44. package/dist/v2/gen/client/utils.gen.js +226 -0
  45. package/dist/v2/gen/client.gen.d.ts +12 -0
  46. package/dist/v2/gen/client.gen.js +3 -0
  47. package/dist/v2/gen/core/auth.gen.d.ts +18 -0
  48. package/dist/v2/gen/core/auth.gen.js +14 -0
  49. package/dist/v2/gen/core/bodySerializer.gen.d.ts +25 -0
  50. package/dist/v2/gen/core/bodySerializer.gen.js +57 -0
  51. package/dist/v2/gen/core/params.gen.d.ts +43 -0
  52. package/dist/v2/gen/core/params.gen.js +102 -0
  53. package/dist/v2/gen/core/pathSerializer.gen.d.ts +33 -0
  54. package/dist/v2/gen/core/pathSerializer.gen.js +106 -0
  55. package/dist/v2/gen/core/queryKeySerializer.gen.d.ts +18 -0
  56. package/dist/v2/gen/core/queryKeySerializer.gen.js +93 -0
  57. package/dist/v2/gen/core/serverSentEvents.gen.d.ts +71 -0
  58. package/dist/v2/gen/core/serverSentEvents.gen.js +133 -0
  59. package/dist/v2/gen/core/types.gen.d.ts +78 -0
  60. package/dist/v2/gen/core/types.gen.js +2 -0
  61. package/dist/v2/gen/core/utils.gen.d.ts +19 -0
  62. package/dist/v2/gen/core/utils.gen.js +87 -0
  63. package/dist/v2/gen/sdk.gen.d.ts +1119 -0
  64. package/dist/v2/gen/sdk.gen.js +2180 -0
  65. package/dist/v2/gen/types.gen.d.ts +4409 -0
  66. package/dist/v2/gen/types.gen.js +2 -0
  67. package/dist/v2/index.d.ts +10 -0
  68. package/dist/v2/index.js +16 -0
  69. package/dist/v2/server.d.ts +23 -0
  70. package/dist/v2/server.js +94 -0
  71. package/package.json +33 -0
@@ -0,0 +1,3387 @@
1
+ export type EventServerInstanceDisposed = {
2
+ type: "server.instance.disposed";
3
+ properties: {
4
+ directory: string;
5
+ };
6
+ };
7
+ export type EventInstallationUpdated = {
8
+ type: "installation.updated";
9
+ properties: {
10
+ version: string;
11
+ };
12
+ };
13
+ export type EventInstallationUpdateAvailable = {
14
+ type: "installation.update-available";
15
+ properties: {
16
+ version: string;
17
+ };
18
+ };
19
+ export type EventLspClientDiagnostics = {
20
+ type: "lsp.client.diagnostics";
21
+ properties: {
22
+ serverID: string;
23
+ path: string;
24
+ };
25
+ };
26
+ export type EventLspUpdated = {
27
+ type: "lsp.updated";
28
+ properties: {
29
+ [key: string]: unknown;
30
+ };
31
+ };
32
+ export type FileDiff = {
33
+ file: string;
34
+ before: string;
35
+ after: string;
36
+ additions: number;
37
+ deletions: number;
38
+ };
39
+ export type UserMessage = {
40
+ id: string;
41
+ sessionID: string;
42
+ role: "user";
43
+ time: {
44
+ created: number;
45
+ };
46
+ summary?: {
47
+ title?: string;
48
+ body?: string;
49
+ diffs: Array<FileDiff>;
50
+ };
51
+ agent: string;
52
+ model: {
53
+ providerID: string;
54
+ modelID: string;
55
+ };
56
+ system?: string;
57
+ tools?: {
58
+ [key: string]: boolean;
59
+ };
60
+ };
61
+ export type ProviderAuthError = {
62
+ name: "ProviderAuthError";
63
+ data: {
64
+ providerID: string;
65
+ message: string;
66
+ };
67
+ };
68
+ export type UnknownError = {
69
+ name: "UnknownError";
70
+ data: {
71
+ message: string;
72
+ };
73
+ };
74
+ export type MessageOutputLengthError = {
75
+ name: "MessageOutputLengthError";
76
+ data: {
77
+ [key: string]: unknown;
78
+ };
79
+ };
80
+ export type MessageAbortedError = {
81
+ name: "MessageAbortedError";
82
+ data: {
83
+ message: string;
84
+ };
85
+ };
86
+ export type ApiError = {
87
+ name: "APIError";
88
+ data: {
89
+ message: string;
90
+ statusCode?: number;
91
+ isRetryable: boolean;
92
+ responseHeaders?: {
93
+ [key: string]: string;
94
+ };
95
+ responseBody?: string;
96
+ };
97
+ };
98
+ export type AssistantMessage = {
99
+ id: string;
100
+ sessionID: string;
101
+ role: "assistant";
102
+ time: {
103
+ created: number;
104
+ completed?: number;
105
+ };
106
+ error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | ApiError;
107
+ parentID: string;
108
+ modelID: string;
109
+ providerID: string;
110
+ mode: string;
111
+ path: {
112
+ cwd: string;
113
+ root: string;
114
+ };
115
+ summary?: boolean;
116
+ cost: number;
117
+ tokens: {
118
+ input: number;
119
+ output: number;
120
+ reasoning: number;
121
+ cache: {
122
+ read: number;
123
+ write: number;
124
+ };
125
+ };
126
+ finish?: string;
127
+ };
128
+ export type Message = UserMessage | AssistantMessage;
129
+ export type EventMessageUpdated = {
130
+ type: "message.updated";
131
+ properties: {
132
+ info: Message;
133
+ };
134
+ };
135
+ export type EventMessageRemoved = {
136
+ type: "message.removed";
137
+ properties: {
138
+ sessionID: string;
139
+ messageID: string;
140
+ };
141
+ };
142
+ export type TextPart = {
143
+ id: string;
144
+ sessionID: string;
145
+ messageID: string;
146
+ type: "text";
147
+ text: string;
148
+ synthetic?: boolean;
149
+ ignored?: boolean;
150
+ time?: {
151
+ start: number;
152
+ end?: number;
153
+ };
154
+ metadata?: {
155
+ [key: string]: unknown;
156
+ };
157
+ };
158
+ export type ReasoningPart = {
159
+ id: string;
160
+ sessionID: string;
161
+ messageID: string;
162
+ type: "reasoning";
163
+ text: string;
164
+ metadata?: {
165
+ [key: string]: unknown;
166
+ };
167
+ time: {
168
+ start: number;
169
+ end?: number;
170
+ };
171
+ };
172
+ export type FilePartSourceText = {
173
+ value: string;
174
+ start: number;
175
+ end: number;
176
+ };
177
+ export type FileSource = {
178
+ text: FilePartSourceText;
179
+ type: "file";
180
+ path: string;
181
+ };
182
+ export type Range = {
183
+ start: {
184
+ line: number;
185
+ character: number;
186
+ };
187
+ end: {
188
+ line: number;
189
+ character: number;
190
+ };
191
+ };
192
+ export type SymbolSource = {
193
+ text: FilePartSourceText;
194
+ type: "symbol";
195
+ path: string;
196
+ range: Range;
197
+ name: string;
198
+ kind: number;
199
+ };
200
+ export type FilePartSource = FileSource | SymbolSource;
201
+ export type FilePart = {
202
+ id: string;
203
+ sessionID: string;
204
+ messageID: string;
205
+ type: "file";
206
+ mime: string;
207
+ filename?: string;
208
+ url: string;
209
+ source?: FilePartSource;
210
+ };
211
+ export type ToolStatePending = {
212
+ status: "pending";
213
+ input: {
214
+ [key: string]: unknown;
215
+ };
216
+ raw: string;
217
+ };
218
+ export type ToolStateRunning = {
219
+ status: "running";
220
+ input: {
221
+ [key: string]: unknown;
222
+ };
223
+ title?: string;
224
+ metadata?: {
225
+ [key: string]: unknown;
226
+ };
227
+ time: {
228
+ start: number;
229
+ };
230
+ };
231
+ export type ToolStateCompleted = {
232
+ status: "completed";
233
+ input: {
234
+ [key: string]: unknown;
235
+ };
236
+ output: string;
237
+ title: string;
238
+ metadata: {
239
+ [key: string]: unknown;
240
+ };
241
+ time: {
242
+ start: number;
243
+ end: number;
244
+ compacted?: number;
245
+ };
246
+ attachments?: Array<FilePart>;
247
+ };
248
+ export type ToolStateError = {
249
+ status: "error";
250
+ input: {
251
+ [key: string]: unknown;
252
+ };
253
+ error: string;
254
+ metadata?: {
255
+ [key: string]: unknown;
256
+ };
257
+ time: {
258
+ start: number;
259
+ end: number;
260
+ };
261
+ };
262
+ export type ToolState = ToolStatePending | ToolStateRunning | ToolStateCompleted | ToolStateError;
263
+ export type ToolPart = {
264
+ id: string;
265
+ sessionID: string;
266
+ messageID: string;
267
+ type: "tool";
268
+ callID: string;
269
+ tool: string;
270
+ state: ToolState;
271
+ metadata?: {
272
+ [key: string]: unknown;
273
+ };
274
+ };
275
+ export type StepStartPart = {
276
+ id: string;
277
+ sessionID: string;
278
+ messageID: string;
279
+ type: "step-start";
280
+ snapshot?: string;
281
+ };
282
+ export type StepFinishPart = {
283
+ id: string;
284
+ sessionID: string;
285
+ messageID: string;
286
+ type: "step-finish";
287
+ reason: string;
288
+ snapshot?: string;
289
+ cost: number;
290
+ tokens: {
291
+ input: number;
292
+ output: number;
293
+ reasoning: number;
294
+ cache: {
295
+ read: number;
296
+ write: number;
297
+ };
298
+ };
299
+ };
300
+ export type FinishPart = {
301
+ id: string;
302
+ sessionID: string;
303
+ messageID: string;
304
+ type: "finish";
305
+ commitMessage?: string;
306
+ };
307
+ export type SnapshotPart = {
308
+ id: string;
309
+ sessionID: string;
310
+ messageID: string;
311
+ type: "snapshot";
312
+ snapshot: string;
313
+ };
314
+ export type PatchPart = {
315
+ id: string;
316
+ sessionID: string;
317
+ messageID: string;
318
+ type: "patch";
319
+ hash: string;
320
+ files: Array<string>;
321
+ };
322
+ export type AgentPart = {
323
+ id: string;
324
+ sessionID: string;
325
+ messageID: string;
326
+ type: "agent";
327
+ name: string;
328
+ source?: {
329
+ value: string;
330
+ start: number;
331
+ end: number;
332
+ };
333
+ };
334
+ export type RetryPart = {
335
+ id: string;
336
+ sessionID: string;
337
+ messageID: string;
338
+ type: "retry";
339
+ attempt: number;
340
+ error: ApiError;
341
+ time: {
342
+ created: number;
343
+ };
344
+ };
345
+ export type CompactionPart = {
346
+ id: string;
347
+ sessionID: string;
348
+ messageID: string;
349
+ type: "compaction";
350
+ auto: boolean;
351
+ };
352
+ export type Part = TextPart | {
353
+ id: string;
354
+ sessionID: string;
355
+ messageID: string;
356
+ type: "subtask";
357
+ prompt: string;
358
+ description: string;
359
+ agent: string;
360
+ } | ReasoningPart | FilePart | ToolPart | StepStartPart | StepFinishPart | FinishPart | SnapshotPart | PatchPart | AgentPart | RetryPart | CompactionPart;
361
+ export type EventMessagePartUpdated = {
362
+ type: "message.part.updated";
363
+ properties: {
364
+ part: Part;
365
+ delta?: string;
366
+ };
367
+ };
368
+ export type EventMessagePartRemoved = {
369
+ type: "message.part.removed";
370
+ properties: {
371
+ sessionID: string;
372
+ messageID: string;
373
+ partID: string;
374
+ };
375
+ };
376
+ export type Permission = {
377
+ id: string;
378
+ type: string;
379
+ pattern?: string | Array<string>;
380
+ sessionID: string;
381
+ messageID: string;
382
+ callID?: string;
383
+ title: string;
384
+ metadata: {
385
+ [key: string]: unknown;
386
+ };
387
+ time: {
388
+ created: number;
389
+ };
390
+ };
391
+ export type EventPermissionUpdated = {
392
+ type: "permission.updated";
393
+ properties: Permission;
394
+ };
395
+ export type EventPermissionReplied = {
396
+ type: "permission.replied";
397
+ properties: {
398
+ sessionID: string;
399
+ permissionID: string;
400
+ response: string;
401
+ };
402
+ };
403
+ export type SessionStatus = {
404
+ type: "idle";
405
+ } | {
406
+ type: "retry";
407
+ attempt: number;
408
+ message: string;
409
+ next: number;
410
+ } | {
411
+ type: "busy";
412
+ };
413
+ export type EventSessionStatus = {
414
+ type: "session.status";
415
+ properties: {
416
+ sessionID: string;
417
+ status: SessionStatus;
418
+ };
419
+ };
420
+ export type EventSessionIdle = {
421
+ type: "session.idle";
422
+ properties: {
423
+ sessionID: string;
424
+ };
425
+ };
426
+ export type EventSessionCompacted = {
427
+ type: "session.compacted";
428
+ properties: {
429
+ sessionID: string;
430
+ };
431
+ };
432
+ export type EventFileEdited = {
433
+ type: "file.edited";
434
+ properties: {
435
+ file: string;
436
+ };
437
+ };
438
+ export type Todo = {
439
+ /**
440
+ * Brief description of the task
441
+ */
442
+ content: string;
443
+ /**
444
+ * Current status of the task: pending, in_progress, completed, cancelled
445
+ */
446
+ status: string;
447
+ /**
448
+ * Priority level of the task: high, medium, low
449
+ */
450
+ priority: string;
451
+ /**
452
+ * Unique identifier for the todo item
453
+ */
454
+ id: string;
455
+ };
456
+ export type EventTodoUpdated = {
457
+ type: "todo.updated";
458
+ properties: {
459
+ sessionID: string;
460
+ todos: Array<Todo>;
461
+ };
462
+ };
463
+ export type EventCommandExecuted = {
464
+ type: "command.executed";
465
+ properties: {
466
+ name: string;
467
+ sessionID: string;
468
+ arguments: string;
469
+ messageID: string;
470
+ };
471
+ };
472
+ export type Session = {
473
+ id: string;
474
+ projectID: string;
475
+ directory: string;
476
+ parentID?: string;
477
+ summary?: {
478
+ additions: number;
479
+ deletions: number;
480
+ files: number;
481
+ diffs?: Array<FileDiff>;
482
+ };
483
+ share?: {
484
+ url: string;
485
+ };
486
+ title: string;
487
+ version: string;
488
+ time: {
489
+ created: number;
490
+ updated: number;
491
+ compacting?: number;
492
+ };
493
+ revert?: {
494
+ messageID: string;
495
+ partID?: string;
496
+ snapshot?: string;
497
+ diff?: string;
498
+ };
499
+ };
500
+ export type EventSessionCreated = {
501
+ type: "session.created";
502
+ properties: {
503
+ info: Session;
504
+ };
505
+ };
506
+ export type EventSessionUpdated = {
507
+ type: "session.updated";
508
+ properties: {
509
+ info: Session;
510
+ };
511
+ };
512
+ export type EventSessionDeleted = {
513
+ type: "session.deleted";
514
+ properties: {
515
+ info: Session;
516
+ };
517
+ };
518
+ export type EventSessionDiff = {
519
+ type: "session.diff";
520
+ properties: {
521
+ sessionID: string;
522
+ diff: Array<FileDiff>;
523
+ };
524
+ };
525
+ export type EventSessionError = {
526
+ type: "session.error";
527
+ properties: {
528
+ sessionID?: string;
529
+ error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | ApiError;
530
+ };
531
+ };
532
+ export type EventFileWatcherUpdated = {
533
+ type: "file.watcher.updated";
534
+ properties: {
535
+ file: string;
536
+ event: "add" | "change" | "unlink";
537
+ };
538
+ };
539
+ export type EventVcsBranchUpdated = {
540
+ type: "vcs.branch.updated";
541
+ properties: {
542
+ branch?: string;
543
+ };
544
+ };
545
+ export type EventTuiPromptAppend = {
546
+ type: "tui.prompt.append";
547
+ properties: {
548
+ text: string;
549
+ };
550
+ };
551
+ export type EventTuiCommandExecute = {
552
+ type: "tui.command.execute";
553
+ properties: {
554
+ command: ("session.list" | "session.new" | "session.share" | "session.interrupt" | "session.compact" | "session.page.up" | "session.page.down" | "session.half.page.up" | "session.half.page.down" | "session.first" | "session.last" | "prompt.clear" | "prompt.submit" | "agent.cycle") | string;
555
+ };
556
+ };
557
+ export type EventTuiToastShow = {
558
+ type: "tui.toast.show";
559
+ properties: {
560
+ title?: string;
561
+ message: string;
562
+ variant: "info" | "success" | "warning" | "error";
563
+ /**
564
+ * Duration in milliseconds
565
+ */
566
+ duration?: number;
567
+ };
568
+ };
569
+ export type Pty = {
570
+ id: string;
571
+ title: string;
572
+ command: string;
573
+ args: Array<string>;
574
+ cwd: string;
575
+ status: "running" | "exited";
576
+ pid: number;
577
+ };
578
+ export type EventPtyCreated = {
579
+ type: "pty.created";
580
+ properties: {
581
+ info: Pty;
582
+ };
583
+ };
584
+ export type EventPtyUpdated = {
585
+ type: "pty.updated";
586
+ properties: {
587
+ info: Pty;
588
+ };
589
+ };
590
+ export type EventPtyExited = {
591
+ type: "pty.exited";
592
+ properties: {
593
+ id: string;
594
+ exitCode: number;
595
+ };
596
+ };
597
+ export type EventPtyDeleted = {
598
+ type: "pty.deleted";
599
+ properties: {
600
+ id: string;
601
+ };
602
+ };
603
+ export type EventServerConnected = {
604
+ type: "server.connected";
605
+ properties: {
606
+ [key: string]: unknown;
607
+ };
608
+ };
609
+ export type Event = EventServerInstanceDisposed | EventInstallationUpdated | EventInstallationUpdateAvailable | EventLspClientDiagnostics | EventLspUpdated | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventPermissionUpdated | EventPermissionReplied | EventSessionStatus | EventSessionIdle | EventSessionCompacted | EventFileEdited | EventTodoUpdated | EventCommandExecuted | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventSessionDiff | EventSessionError | EventFileWatcherUpdated | EventVcsBranchUpdated | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventServerConnected;
610
+ export type GlobalEvent = {
611
+ directory: string;
612
+ payload: Event;
613
+ };
614
+ export type Project = {
615
+ id: string;
616
+ worktree: string;
617
+ vcsDir?: string;
618
+ vcs?: "git";
619
+ time: {
620
+ created: number;
621
+ initialized?: number;
622
+ };
623
+ };
624
+ export type BadRequestError = {
625
+ data: unknown;
626
+ errors: Array<{
627
+ [key: string]: unknown;
628
+ }>;
629
+ success: false;
630
+ };
631
+ export type NotFoundError = {
632
+ name: "NotFoundError";
633
+ data: {
634
+ message: string;
635
+ };
636
+ };
637
+ /**
638
+ * Custom keybind configurations
639
+ */
640
+ export type KeybindsConfig = {
641
+ /**
642
+ * Leader key for keybind combinations
643
+ */
644
+ leader?: string;
645
+ /**
646
+ * Exit the application
647
+ */
648
+ app_exit?: string;
649
+ /**
650
+ * Open external editor
651
+ */
652
+ editor_open?: string;
653
+ /**
654
+ * List available themes
655
+ */
656
+ theme_list?: string;
657
+ /**
658
+ * Toggle sidebar
659
+ */
660
+ sidebar_toggle?: string;
661
+ /**
662
+ * Toggle session scrollbar
663
+ */
664
+ scrollbar_toggle?: string;
665
+ /**
666
+ * Toggle username visibility
667
+ */
668
+ username_toggle?: string;
669
+ /**
670
+ * View status
671
+ */
672
+ status_view?: string;
673
+ /**
674
+ * Export session to editor
675
+ */
676
+ session_export?: string;
677
+ /**
678
+ * Create a new session
679
+ */
680
+ session_new?: string;
681
+ /**
682
+ * List all sessions
683
+ */
684
+ session_list?: string;
685
+ /**
686
+ * Show session timeline
687
+ */
688
+ session_timeline?: string;
689
+ /**
690
+ * Share current session
691
+ */
692
+ session_share?: string;
693
+ /**
694
+ * Unshare current session
695
+ */
696
+ session_unshare?: string;
697
+ /**
698
+ * Interrupt current session
699
+ */
700
+ session_interrupt?: string;
701
+ /**
702
+ * Compact the session
703
+ */
704
+ session_compact?: string;
705
+ /**
706
+ * Scroll messages up by one page
707
+ */
708
+ messages_page_up?: string;
709
+ /**
710
+ * Scroll messages down by one page
711
+ */
712
+ messages_page_down?: string;
713
+ /**
714
+ * Scroll messages up by one line
715
+ */
716
+ messages_line_up?: string;
717
+ /**
718
+ * Scroll messages down by one line
719
+ */
720
+ messages_line_down?: string;
721
+ /**
722
+ * Scroll messages up by half page
723
+ */
724
+ messages_half_page_up?: string;
725
+ /**
726
+ * Scroll messages down by half page
727
+ */
728
+ messages_half_page_down?: string;
729
+ /**
730
+ * Navigate to first message
731
+ */
732
+ messages_first?: string;
733
+ /**
734
+ * Navigate to last message
735
+ */
736
+ messages_last?: string;
737
+ /**
738
+ * Navigate to next message
739
+ */
740
+ messages_next?: string;
741
+ /**
742
+ * Navigate to previous message
743
+ */
744
+ messages_previous?: string;
745
+ /**
746
+ * Navigate to last user message
747
+ */
748
+ messages_last_user?: string;
749
+ /**
750
+ * Copy message
751
+ */
752
+ messages_copy?: string;
753
+ /**
754
+ * Undo message
755
+ */
756
+ messages_undo?: string;
757
+ /**
758
+ * Redo message
759
+ */
760
+ messages_redo?: string;
761
+ /**
762
+ * Toggle code block concealment in messages
763
+ */
764
+ messages_toggle_conceal?: string;
765
+ /**
766
+ * Toggle tool details visibility
767
+ */
768
+ tool_details?: string;
769
+ /**
770
+ * List available models
771
+ */
772
+ model_list?: string;
773
+ /**
774
+ * Next recently used model
775
+ */
776
+ model_cycle_recent?: string;
777
+ /**
778
+ * Previous recently used model
779
+ */
780
+ model_cycle_recent_reverse?: string;
781
+ /**
782
+ * List available commands
783
+ */
784
+ command_list?: string;
785
+ /**
786
+ * List agents
787
+ */
788
+ agent_list?: string;
789
+ /**
790
+ * Next agent
791
+ */
792
+ agent_cycle?: string;
793
+ /**
794
+ * Previous agent
795
+ */
796
+ agent_cycle_reverse?: string;
797
+ /**
798
+ * Clear input field
799
+ */
800
+ input_clear?: string;
801
+ /**
802
+ * Forward delete
803
+ */
804
+ input_forward_delete?: string;
805
+ /**
806
+ * Paste from clipboard
807
+ */
808
+ input_paste?: string;
809
+ /**
810
+ * Submit input
811
+ */
812
+ input_submit?: string;
813
+ /**
814
+ * Insert newline in input
815
+ */
816
+ input_newline?: string;
817
+ /**
818
+ * Previous history item
819
+ */
820
+ history_previous?: string;
821
+ /**
822
+ * Next history item
823
+ */
824
+ history_next?: string;
825
+ /**
826
+ * Next child session
827
+ */
828
+ session_child_cycle?: string;
829
+ /**
830
+ * Previous child session
831
+ */
832
+ session_child_cycle_reverse?: string;
833
+ /**
834
+ * Suspend terminal
835
+ */
836
+ terminal_suspend?: string;
837
+ /**
838
+ * Toggle terminal title
839
+ */
840
+ terminal_title_toggle?: string;
841
+ };
842
+ export type AgentConfig = {
843
+ model?: string;
844
+ temperature?: number;
845
+ top_p?: number;
846
+ prompt?: string;
847
+ tools?: {
848
+ [key: string]: boolean;
849
+ };
850
+ disable?: boolean;
851
+ /**
852
+ * Description of when to use the agent
853
+ */
854
+ description?: string;
855
+ mode?: "subagent" | "primary" | "all";
856
+ /**
857
+ * Hex color code for the agent (e.g., #FF5733)
858
+ */
859
+ color?: string;
860
+ /**
861
+ * Maximum number of agentic iterations before forcing text-only response
862
+ */
863
+ maxSteps?: number;
864
+ permission?: {
865
+ edit?: "ask" | "allow" | "deny";
866
+ bash?: ("ask" | "allow" | "deny") | {
867
+ [key: string]: "ask" | "allow" | "deny";
868
+ };
869
+ webfetch?: "ask" | "allow" | "deny";
870
+ doom_loop?: "ask" | "allow" | "deny";
871
+ external_directory?: "ask" | "allow" | "deny";
872
+ };
873
+ [key: string]: unknown | string | number | {
874
+ [key: string]: boolean;
875
+ } | boolean | ("subagent" | "primary" | "all") | number | {
876
+ edit?: "ask" | "allow" | "deny";
877
+ bash?: ("ask" | "allow" | "deny") | {
878
+ [key: string]: "ask" | "allow" | "deny";
879
+ };
880
+ webfetch?: "ask" | "allow" | "deny";
881
+ doom_loop?: "ask" | "allow" | "deny";
882
+ external_directory?: "ask" | "allow" | "deny";
883
+ } | undefined;
884
+ };
885
+ export type ProviderConfig = {
886
+ api?: string;
887
+ name?: string;
888
+ env?: Array<string>;
889
+ id?: string;
890
+ npm?: string;
891
+ models?: {
892
+ [key: string]: {
893
+ id?: string;
894
+ name?: string;
895
+ release_date?: string;
896
+ attachment?: boolean;
897
+ reasoning?: boolean;
898
+ temperature?: boolean;
899
+ tool_call?: boolean;
900
+ cost?: {
901
+ input: number;
902
+ output: number;
903
+ cache_read?: number;
904
+ cache_write?: number;
905
+ context_over_200k?: {
906
+ input: number;
907
+ output: number;
908
+ cache_read?: number;
909
+ cache_write?: number;
910
+ };
911
+ };
912
+ limit?: {
913
+ context: number;
914
+ output: number;
915
+ };
916
+ modalities?: {
917
+ input: Array<"text" | "audio" | "image" | "video" | "pdf">;
918
+ output: Array<"text" | "audio" | "image" | "video" | "pdf">;
919
+ };
920
+ experimental?: boolean;
921
+ status?: "alpha" | "beta" | "deprecated";
922
+ options?: {
923
+ [key: string]: unknown;
924
+ };
925
+ headers?: {
926
+ [key: string]: string;
927
+ };
928
+ provider?: {
929
+ npm: string;
930
+ };
931
+ };
932
+ };
933
+ whitelist?: Array<string>;
934
+ blacklist?: Array<string>;
935
+ options?: {
936
+ apiKey?: string;
937
+ baseURL?: string;
938
+ /**
939
+ * GitHub Enterprise URL for copilot authentication
940
+ */
941
+ enterpriseUrl?: string;
942
+ /**
943
+ * Enable promptCacheKey for this provider (default false)
944
+ */
945
+ setCacheKey?: boolean;
946
+ /**
947
+ * Timeout in milliseconds for requests to this provider. Default is 300000 (5 minutes). Set to false to disable timeout.
948
+ */
949
+ timeout?: number | false;
950
+ [key: string]: unknown | string | boolean | (number | false) | undefined;
951
+ };
952
+ };
953
+ export type McpLocalConfig = {
954
+ /**
955
+ * Type of MCP server connection
956
+ */
957
+ type: "local";
958
+ /**
959
+ * Command and arguments to run the MCP server
960
+ */
961
+ command: Array<string>;
962
+ /**
963
+ * Environment variables to set when running the MCP server
964
+ */
965
+ environment?: {
966
+ [key: string]: string;
967
+ };
968
+ /**
969
+ * Enable or disable the MCP server on startup
970
+ */
971
+ enabled?: boolean;
972
+ /**
973
+ * Timeout in ms for fetching tools from the MCP server. Defaults to 5000 (5 seconds) if not specified.
974
+ */
975
+ timeout?: number;
976
+ };
977
+ export type McpOAuthConfig = {
978
+ /**
979
+ * OAuth client ID. If not provided, dynamic client registration (RFC 7591) will be attempted.
980
+ */
981
+ clientId?: string;
982
+ /**
983
+ * OAuth client secret (if required by the authorization server)
984
+ */
985
+ clientSecret?: string;
986
+ /**
987
+ * OAuth scopes to request during authorization
988
+ */
989
+ scope?: string;
990
+ };
991
+ export type McpRemoteConfig = {
992
+ /**
993
+ * Type of MCP server connection
994
+ */
995
+ type: "remote";
996
+ /**
997
+ * URL of the remote MCP server
998
+ */
999
+ url: string;
1000
+ /**
1001
+ * Enable or disable the MCP server on startup
1002
+ */
1003
+ enabled?: boolean;
1004
+ /**
1005
+ * Headers to send with the request
1006
+ */
1007
+ headers?: {
1008
+ [key: string]: string;
1009
+ };
1010
+ /**
1011
+ * OAuth authentication configuration for the MCP server. Set to false to disable OAuth auto-detection.
1012
+ */
1013
+ oauth?: McpOAuthConfig | false;
1014
+ /**
1015
+ * Timeout in ms for fetching tools from the MCP server. Defaults to 5000 (5 seconds) if not specified.
1016
+ */
1017
+ timeout?: number;
1018
+ };
1019
+ /**
1020
+ * @deprecated Always uses stretch layout.
1021
+ */
1022
+ export type LayoutConfig = "auto" | "stretch";
1023
+ export type Config = {
1024
+ /**
1025
+ * JSON schema reference for configuration validation
1026
+ */
1027
+ $schema?: string;
1028
+ /**
1029
+ * Theme name to use for the interface
1030
+ */
1031
+ theme?: string;
1032
+ keybinds?: KeybindsConfig;
1033
+ /**
1034
+ * Log level
1035
+ */
1036
+ logLevel?: "DEBUG" | "INFO" | "WARN" | "ERROR";
1037
+ /**
1038
+ * TUI specific settings
1039
+ */
1040
+ tui?: {
1041
+ /**
1042
+ * TUI scroll speed
1043
+ */
1044
+ scroll_speed?: number;
1045
+ /**
1046
+ * Scroll acceleration settings
1047
+ */
1048
+ scroll_acceleration?: {
1049
+ /**
1050
+ * Enable scroll acceleration
1051
+ */
1052
+ enabled: boolean;
1053
+ };
1054
+ /**
1055
+ * Control diff rendering style: 'auto' adapts to terminal width, 'stacked' always shows single column
1056
+ */
1057
+ diff_style?: "auto" | "stacked";
1058
+ };
1059
+ /**
1060
+ * Command configuration, see https://opencode.ai/docs/commands
1061
+ */
1062
+ command?: {
1063
+ [key: string]: {
1064
+ template: string;
1065
+ description?: string;
1066
+ agent?: string;
1067
+ model?: string;
1068
+ subtask?: boolean;
1069
+ };
1070
+ };
1071
+ watcher?: {
1072
+ ignore?: Array<string>;
1073
+ };
1074
+ plugin?: Array<string>;
1075
+ snapshot?: boolean;
1076
+ /**
1077
+ * Control sharing behavior:'manual' allows manual sharing via commands, 'auto' enables automatic sharing, 'disabled' disables all sharing
1078
+ */
1079
+ share?: "manual" | "auto" | "disabled";
1080
+ /**
1081
+ * @deprecated Use 'share' field instead. Share newly created sessions automatically
1082
+ */
1083
+ autoshare?: boolean;
1084
+ /**
1085
+ * Automatically update to the latest version. Set to true to auto-update, false to disable, or 'notify' to show update notifications
1086
+ */
1087
+ autoupdate?: boolean | "notify";
1088
+ /**
1089
+ * Disable providers that are loaded automatically
1090
+ */
1091
+ disabled_providers?: Array<string>;
1092
+ /**
1093
+ * When set, ONLY these providers will be enabled. All other providers will be ignored
1094
+ */
1095
+ enabled_providers?: Array<string>;
1096
+ /**
1097
+ * Model to use in the format of provider/model, eg anthropic/claude-2
1098
+ */
1099
+ model?: string;
1100
+ /**
1101
+ * Small model to use for tasks like title generation in the format of provider/model
1102
+ */
1103
+ small_model?: string;
1104
+ /**
1105
+ * Custom username to display in conversations instead of system username
1106
+ */
1107
+ username?: string;
1108
+ /**
1109
+ * @deprecated Use `agent` field instead.
1110
+ */
1111
+ mode?: {
1112
+ build?: AgentConfig;
1113
+ plan?: AgentConfig;
1114
+ [key: string]: AgentConfig | undefined;
1115
+ };
1116
+ /**
1117
+ * Agent configuration, see https://opencode.ai/docs/agent
1118
+ */
1119
+ agent?: {
1120
+ plan?: AgentConfig;
1121
+ build?: AgentConfig;
1122
+ general?: AgentConfig;
1123
+ explore?: AgentConfig;
1124
+ [key: string]: AgentConfig | undefined;
1125
+ };
1126
+ /**
1127
+ * Custom provider configurations and model overrides
1128
+ */
1129
+ provider?: {
1130
+ [key: string]: ProviderConfig;
1131
+ };
1132
+ /**
1133
+ * MCP (Model Context Protocol) server configurations
1134
+ */
1135
+ mcp?: {
1136
+ [key: string]: McpLocalConfig | McpRemoteConfig;
1137
+ };
1138
+ formatter?: false | {
1139
+ [key: string]: {
1140
+ disabled?: boolean;
1141
+ command?: Array<string>;
1142
+ environment?: {
1143
+ [key: string]: string;
1144
+ };
1145
+ extensions?: Array<string>;
1146
+ };
1147
+ };
1148
+ lsp?: false | {
1149
+ [key: string]: {
1150
+ disabled: true;
1151
+ } | {
1152
+ command: Array<string>;
1153
+ extensions?: Array<string>;
1154
+ disabled?: boolean;
1155
+ env?: {
1156
+ [key: string]: string;
1157
+ };
1158
+ initialization?: {
1159
+ [key: string]: unknown;
1160
+ };
1161
+ };
1162
+ };
1163
+ /**
1164
+ * Additional instruction files or patterns to include
1165
+ */
1166
+ instructions?: Array<string>;
1167
+ layout?: LayoutConfig;
1168
+ permission?: {
1169
+ edit?: "ask" | "allow" | "deny";
1170
+ bash?: ("ask" | "allow" | "deny") | {
1171
+ [key: string]: "ask" | "allow" | "deny";
1172
+ };
1173
+ webfetch?: "ask" | "allow" | "deny";
1174
+ doom_loop?: "ask" | "allow" | "deny";
1175
+ external_directory?: "ask" | "allow" | "deny";
1176
+ };
1177
+ tools?: {
1178
+ [key: string]: boolean;
1179
+ };
1180
+ enterprise?: {
1181
+ /**
1182
+ * Enterprise URL
1183
+ */
1184
+ url?: string;
1185
+ };
1186
+ experimental?: {
1187
+ hook?: {
1188
+ file_edited?: {
1189
+ [key: string]: Array<{
1190
+ command: Array<string>;
1191
+ environment?: {
1192
+ [key: string]: string;
1193
+ };
1194
+ }>;
1195
+ };
1196
+ session_completed?: Array<{
1197
+ command: Array<string>;
1198
+ environment?: {
1199
+ [key: string]: string;
1200
+ };
1201
+ }>;
1202
+ };
1203
+ /**
1204
+ * Number of retries for chat completions on failure
1205
+ */
1206
+ chatMaxRetries?: number;
1207
+ disable_paste_summary?: boolean;
1208
+ /**
1209
+ * Enable the batch tool
1210
+ */
1211
+ batch_tool?: boolean;
1212
+ /**
1213
+ * Enable OpenTelemetry spans for AI SDK calls (using the 'experimental_telemetry' flag)
1214
+ */
1215
+ openTelemetry?: boolean;
1216
+ /**
1217
+ * Tools that should only be available to primary agents.
1218
+ */
1219
+ primary_tools?: Array<string>;
1220
+ };
1221
+ };
1222
+ export type ToolIds = Array<string>;
1223
+ export type ToolListItem = {
1224
+ id: string;
1225
+ description: string;
1226
+ parameters: unknown;
1227
+ };
1228
+ export type ToolList = Array<ToolListItem>;
1229
+ export type Path = {
1230
+ state: string;
1231
+ config: string;
1232
+ worktree: string;
1233
+ directory: string;
1234
+ };
1235
+ export type VcsInfo = {
1236
+ branch: string;
1237
+ };
1238
+ export type TextPartInput = {
1239
+ id?: string;
1240
+ type: "text";
1241
+ text: string;
1242
+ synthetic?: boolean;
1243
+ ignored?: boolean;
1244
+ time?: {
1245
+ start: number;
1246
+ end?: number;
1247
+ };
1248
+ metadata?: {
1249
+ [key: string]: unknown;
1250
+ };
1251
+ };
1252
+ export type FilePartInput = {
1253
+ id?: string;
1254
+ type: "file";
1255
+ mime: string;
1256
+ filename?: string;
1257
+ url: string;
1258
+ source?: FilePartSource;
1259
+ };
1260
+ export type AgentPartInput = {
1261
+ id?: string;
1262
+ type: "agent";
1263
+ name: string;
1264
+ source?: {
1265
+ value: string;
1266
+ start: number;
1267
+ end: number;
1268
+ };
1269
+ };
1270
+ export type SubtaskPartInput = {
1271
+ id?: string;
1272
+ type: "subtask";
1273
+ prompt: string;
1274
+ description: string;
1275
+ agent: string;
1276
+ };
1277
+ export type Command = {
1278
+ name: string;
1279
+ description?: string;
1280
+ agent?: string;
1281
+ model?: string;
1282
+ template: string;
1283
+ subtask?: boolean;
1284
+ };
1285
+ export type Model = {
1286
+ id: string;
1287
+ providerID: string;
1288
+ api: {
1289
+ id: string;
1290
+ url: string;
1291
+ npm: string;
1292
+ };
1293
+ name: string;
1294
+ capabilities: {
1295
+ temperature: boolean;
1296
+ reasoning: boolean;
1297
+ attachment: boolean;
1298
+ toolcall: boolean;
1299
+ input: {
1300
+ text: boolean;
1301
+ audio: boolean;
1302
+ image: boolean;
1303
+ video: boolean;
1304
+ pdf: boolean;
1305
+ };
1306
+ output: {
1307
+ text: boolean;
1308
+ audio: boolean;
1309
+ image: boolean;
1310
+ video: boolean;
1311
+ pdf: boolean;
1312
+ };
1313
+ };
1314
+ cost: {
1315
+ input: number;
1316
+ output: number;
1317
+ cache: {
1318
+ read: number;
1319
+ write: number;
1320
+ };
1321
+ experimentalOver200K?: {
1322
+ input: number;
1323
+ output: number;
1324
+ cache: {
1325
+ read: number;
1326
+ write: number;
1327
+ };
1328
+ };
1329
+ };
1330
+ limit: {
1331
+ context: number;
1332
+ output: number;
1333
+ };
1334
+ status: "alpha" | "beta" | "deprecated" | "active";
1335
+ options: {
1336
+ [key: string]: unknown;
1337
+ };
1338
+ headers: {
1339
+ [key: string]: string;
1340
+ };
1341
+ };
1342
+ export type Provider = {
1343
+ id: string;
1344
+ name: string;
1345
+ source: "env" | "config" | "custom" | "api";
1346
+ env: Array<string>;
1347
+ key?: string;
1348
+ options: {
1349
+ [key: string]: unknown;
1350
+ };
1351
+ models: {
1352
+ [key: string]: Model;
1353
+ };
1354
+ };
1355
+ export type ProviderAuthMethod = {
1356
+ type: "oauth" | "api";
1357
+ label: string;
1358
+ };
1359
+ export type ProviderAuthAuthorization = {
1360
+ url: string;
1361
+ method: "auto" | "code";
1362
+ instructions: string;
1363
+ };
1364
+ export type Symbol = {
1365
+ name: string;
1366
+ kind: number;
1367
+ location: {
1368
+ uri: string;
1369
+ range: Range;
1370
+ };
1371
+ };
1372
+ export type FileNode = {
1373
+ name: string;
1374
+ path: string;
1375
+ absolute: string;
1376
+ type: "file" | "directory";
1377
+ ignored: boolean;
1378
+ };
1379
+ export type FileContent = {
1380
+ type: "text" | "binary";
1381
+ content: string;
1382
+ diff?: string;
1383
+ patch?: {
1384
+ oldFileName: string;
1385
+ newFileName: string;
1386
+ oldHeader?: string;
1387
+ newHeader?: string;
1388
+ hunks: Array<{
1389
+ oldStart: number;
1390
+ oldLines: number;
1391
+ newStart: number;
1392
+ newLines: number;
1393
+ lines: Array<string>;
1394
+ }>;
1395
+ index?: string;
1396
+ };
1397
+ encoding?: "base64";
1398
+ mimeType?: string;
1399
+ };
1400
+ export type File = {
1401
+ path: string;
1402
+ added: number;
1403
+ removed: number;
1404
+ status: "added" | "deleted" | "modified";
1405
+ };
1406
+ export type Agent = {
1407
+ name: string;
1408
+ description?: string;
1409
+ mode: "subagent" | "primary" | "all";
1410
+ builtIn: boolean;
1411
+ topP?: number;
1412
+ temperature?: number;
1413
+ color?: string;
1414
+ permission: {
1415
+ edit: "ask" | "allow" | "deny";
1416
+ bash: {
1417
+ [key: string]: "ask" | "allow" | "deny";
1418
+ };
1419
+ webfetch?: "ask" | "allow" | "deny";
1420
+ doom_loop?: "ask" | "allow" | "deny";
1421
+ external_directory?: "ask" | "allow" | "deny";
1422
+ };
1423
+ model?: {
1424
+ modelID: string;
1425
+ providerID: string;
1426
+ };
1427
+ prompt?: string;
1428
+ tools: {
1429
+ [key: string]: boolean;
1430
+ };
1431
+ options: {
1432
+ [key: string]: unknown;
1433
+ };
1434
+ maxSteps?: number;
1435
+ };
1436
+ export type McpStatusConnected = {
1437
+ status: "connected";
1438
+ };
1439
+ export type McpStatusDisabled = {
1440
+ status: "disabled";
1441
+ };
1442
+ export type McpStatusFailed = {
1443
+ status: "failed";
1444
+ error: string;
1445
+ };
1446
+ export type McpStatusNeedsAuth = {
1447
+ status: "needs_auth";
1448
+ };
1449
+ export type McpStatusNeedsClientRegistration = {
1450
+ status: "needs_client_registration";
1451
+ error: string;
1452
+ };
1453
+ export type McpStatus = McpStatusConnected | McpStatusDisabled | McpStatusFailed | McpStatusNeedsAuth | McpStatusNeedsClientRegistration;
1454
+ export type LspStatus = {
1455
+ id: string;
1456
+ name: string;
1457
+ root: string;
1458
+ status: "connected" | "error";
1459
+ };
1460
+ export type FormatterStatus = {
1461
+ name: string;
1462
+ extensions: Array<string>;
1463
+ enabled: boolean;
1464
+ };
1465
+ export type OAuth = {
1466
+ type: "oauth";
1467
+ refresh: string;
1468
+ access: string;
1469
+ expires: number;
1470
+ enterpriseUrl?: string;
1471
+ };
1472
+ export type ApiAuth = {
1473
+ type: "api";
1474
+ key: string;
1475
+ };
1476
+ export type WellKnownAuth = {
1477
+ type: "wellknown";
1478
+ key: string;
1479
+ token: string;
1480
+ };
1481
+ export type Auth = OAuth | ApiAuth | WellKnownAuth;
1482
+ export type GlobalEventData = {
1483
+ body?: never;
1484
+ path?: never;
1485
+ query?: never;
1486
+ url: "/global/event";
1487
+ };
1488
+ export type GlobalEventResponses = {
1489
+ /**
1490
+ * Event stream
1491
+ */
1492
+ 200: GlobalEvent;
1493
+ };
1494
+ export type GlobalEventResponse = GlobalEventResponses[keyof GlobalEventResponses];
1495
+ export type ProjectListData = {
1496
+ body?: never;
1497
+ path?: never;
1498
+ query?: {
1499
+ directory?: string;
1500
+ };
1501
+ url: "/project";
1502
+ };
1503
+ export type ProjectListResponses = {
1504
+ /**
1505
+ * List of projects
1506
+ */
1507
+ 200: Array<Project>;
1508
+ };
1509
+ export type ProjectListResponse = ProjectListResponses[keyof ProjectListResponses];
1510
+ export type ProjectCurrentData = {
1511
+ body?: never;
1512
+ path?: never;
1513
+ query?: {
1514
+ directory?: string;
1515
+ };
1516
+ url: "/project/current";
1517
+ };
1518
+ export type ProjectCurrentResponses = {
1519
+ /**
1520
+ * Current project
1521
+ */
1522
+ 200: Project;
1523
+ };
1524
+ export type ProjectCurrentResponse = ProjectCurrentResponses[keyof ProjectCurrentResponses];
1525
+ export type PtyListData = {
1526
+ body?: never;
1527
+ path?: never;
1528
+ query?: {
1529
+ directory?: string;
1530
+ };
1531
+ url: "/pty";
1532
+ };
1533
+ export type PtyListResponses = {
1534
+ /**
1535
+ * List of sessions
1536
+ */
1537
+ 200: Array<Pty>;
1538
+ };
1539
+ export type PtyListResponse = PtyListResponses[keyof PtyListResponses];
1540
+ export type PtyCreateData = {
1541
+ body?: {
1542
+ command?: string;
1543
+ args?: Array<string>;
1544
+ cwd?: string;
1545
+ title?: string;
1546
+ env?: {
1547
+ [key: string]: string;
1548
+ };
1549
+ };
1550
+ path?: never;
1551
+ query?: {
1552
+ directory?: string;
1553
+ };
1554
+ url: "/pty";
1555
+ };
1556
+ export type PtyCreateErrors = {
1557
+ /**
1558
+ * Bad request
1559
+ */
1560
+ 400: BadRequestError;
1561
+ };
1562
+ export type PtyCreateError = PtyCreateErrors[keyof PtyCreateErrors];
1563
+ export type PtyCreateResponses = {
1564
+ /**
1565
+ * Created session
1566
+ */
1567
+ 200: Pty;
1568
+ };
1569
+ export type PtyCreateResponse = PtyCreateResponses[keyof PtyCreateResponses];
1570
+ export type PtyRemoveData = {
1571
+ body?: never;
1572
+ path: {
1573
+ id: string;
1574
+ };
1575
+ query?: {
1576
+ directory?: string;
1577
+ };
1578
+ url: "/pty/{id}";
1579
+ };
1580
+ export type PtyRemoveErrors = {
1581
+ /**
1582
+ * Not found
1583
+ */
1584
+ 404: NotFoundError;
1585
+ };
1586
+ export type PtyRemoveError = PtyRemoveErrors[keyof PtyRemoveErrors];
1587
+ export type PtyRemoveResponses = {
1588
+ /**
1589
+ * Session removed
1590
+ */
1591
+ 200: boolean;
1592
+ };
1593
+ export type PtyRemoveResponse = PtyRemoveResponses[keyof PtyRemoveResponses];
1594
+ export type PtyGetData = {
1595
+ body?: never;
1596
+ path: {
1597
+ id: string;
1598
+ };
1599
+ query?: {
1600
+ directory?: string;
1601
+ };
1602
+ url: "/pty/{id}";
1603
+ };
1604
+ export type PtyGetErrors = {
1605
+ /**
1606
+ * Not found
1607
+ */
1608
+ 404: NotFoundError;
1609
+ };
1610
+ export type PtyGetError = PtyGetErrors[keyof PtyGetErrors];
1611
+ export type PtyGetResponses = {
1612
+ /**
1613
+ * Session info
1614
+ */
1615
+ 200: Pty;
1616
+ };
1617
+ export type PtyGetResponse = PtyGetResponses[keyof PtyGetResponses];
1618
+ export type PtyUpdateData = {
1619
+ body?: {
1620
+ title?: string;
1621
+ size?: {
1622
+ rows: number;
1623
+ cols: number;
1624
+ };
1625
+ };
1626
+ path: {
1627
+ id: string;
1628
+ };
1629
+ query?: {
1630
+ directory?: string;
1631
+ };
1632
+ url: "/pty/{id}";
1633
+ };
1634
+ export type PtyUpdateErrors = {
1635
+ /**
1636
+ * Bad request
1637
+ */
1638
+ 400: BadRequestError;
1639
+ };
1640
+ export type PtyUpdateError = PtyUpdateErrors[keyof PtyUpdateErrors];
1641
+ export type PtyUpdateResponses = {
1642
+ /**
1643
+ * Updated session
1644
+ */
1645
+ 200: Pty;
1646
+ };
1647
+ export type PtyUpdateResponse = PtyUpdateResponses[keyof PtyUpdateResponses];
1648
+ export type PtyConnectData = {
1649
+ body?: never;
1650
+ path: {
1651
+ id: string;
1652
+ };
1653
+ query?: {
1654
+ directory?: string;
1655
+ };
1656
+ url: "/pty/{id}/connect";
1657
+ };
1658
+ export type PtyConnectErrors = {
1659
+ /**
1660
+ * Not found
1661
+ */
1662
+ 404: NotFoundError;
1663
+ };
1664
+ export type PtyConnectError = PtyConnectErrors[keyof PtyConnectErrors];
1665
+ export type PtyConnectResponses = {
1666
+ /**
1667
+ * Connected session
1668
+ */
1669
+ 200: boolean;
1670
+ };
1671
+ export type PtyConnectResponse = PtyConnectResponses[keyof PtyConnectResponses];
1672
+ export type ConfigGetData = {
1673
+ body?: never;
1674
+ path?: never;
1675
+ query?: {
1676
+ directory?: string;
1677
+ };
1678
+ url: "/config";
1679
+ };
1680
+ export type ConfigGetResponses = {
1681
+ /**
1682
+ * Get config info
1683
+ */
1684
+ 200: Config;
1685
+ };
1686
+ export type ConfigGetResponse = ConfigGetResponses[keyof ConfigGetResponses];
1687
+ export type ConfigUpdateData = {
1688
+ body?: Config;
1689
+ path?: never;
1690
+ query?: {
1691
+ directory?: string;
1692
+ };
1693
+ url: "/config";
1694
+ };
1695
+ export type ConfigUpdateErrors = {
1696
+ /**
1697
+ * Bad request
1698
+ */
1699
+ 400: BadRequestError;
1700
+ };
1701
+ export type ConfigUpdateError = ConfigUpdateErrors[keyof ConfigUpdateErrors];
1702
+ export type ConfigUpdateResponses = {
1703
+ /**
1704
+ * Successfully updated config
1705
+ */
1706
+ 200: Config;
1707
+ };
1708
+ export type ConfigUpdateResponse = ConfigUpdateResponses[keyof ConfigUpdateResponses];
1709
+ export type ToolIdsData = {
1710
+ body?: never;
1711
+ path?: never;
1712
+ query?: {
1713
+ directory?: string;
1714
+ };
1715
+ url: "/experimental/tool/ids";
1716
+ };
1717
+ export type ToolIdsErrors = {
1718
+ /**
1719
+ * Bad request
1720
+ */
1721
+ 400: BadRequestError;
1722
+ };
1723
+ export type ToolIdsError = ToolIdsErrors[keyof ToolIdsErrors];
1724
+ export type ToolIdsResponses = {
1725
+ /**
1726
+ * Tool IDs
1727
+ */
1728
+ 200: ToolIds;
1729
+ };
1730
+ export type ToolIdsResponse = ToolIdsResponses[keyof ToolIdsResponses];
1731
+ export type ToolListData = {
1732
+ body?: never;
1733
+ path?: never;
1734
+ query: {
1735
+ directory?: string;
1736
+ provider: string;
1737
+ model: string;
1738
+ };
1739
+ url: "/experimental/tool";
1740
+ };
1741
+ export type ToolListErrors = {
1742
+ /**
1743
+ * Bad request
1744
+ */
1745
+ 400: BadRequestError;
1746
+ };
1747
+ export type ToolListError = ToolListErrors[keyof ToolListErrors];
1748
+ export type ToolListResponses = {
1749
+ /**
1750
+ * Tools
1751
+ */
1752
+ 200: ToolList;
1753
+ };
1754
+ export type ToolListResponse = ToolListResponses[keyof ToolListResponses];
1755
+ export type InstanceDisposeData = {
1756
+ body?: never;
1757
+ path?: never;
1758
+ query?: {
1759
+ directory?: string;
1760
+ };
1761
+ url: "/instance/dispose";
1762
+ };
1763
+ export type InstanceDisposeResponses = {
1764
+ /**
1765
+ * Instance disposed
1766
+ */
1767
+ 200: boolean;
1768
+ };
1769
+ export type InstanceDisposeResponse = InstanceDisposeResponses[keyof InstanceDisposeResponses];
1770
+ export type PathGetData = {
1771
+ body?: never;
1772
+ path?: never;
1773
+ query?: {
1774
+ directory?: string;
1775
+ };
1776
+ url: "/path";
1777
+ };
1778
+ export type PathGetResponses = {
1779
+ /**
1780
+ * Path
1781
+ */
1782
+ 200: Path;
1783
+ };
1784
+ export type PathGetResponse = PathGetResponses[keyof PathGetResponses];
1785
+ export type VcsGetData = {
1786
+ body?: never;
1787
+ path?: never;
1788
+ query?: {
1789
+ directory?: string;
1790
+ };
1791
+ url: "/vcs";
1792
+ };
1793
+ export type VcsGetResponses = {
1794
+ /**
1795
+ * VCS info
1796
+ */
1797
+ 200: VcsInfo;
1798
+ };
1799
+ export type VcsGetResponse = VcsGetResponses[keyof VcsGetResponses];
1800
+ export type SessionListData = {
1801
+ body?: never;
1802
+ path?: never;
1803
+ query?: {
1804
+ directory?: string;
1805
+ };
1806
+ url: "/session";
1807
+ };
1808
+ export type SessionListResponses = {
1809
+ /**
1810
+ * List of sessions
1811
+ */
1812
+ 200: Array<Session>;
1813
+ };
1814
+ export type SessionListResponse = SessionListResponses[keyof SessionListResponses];
1815
+ export type SessionCreateData = {
1816
+ body?: {
1817
+ parentID?: string;
1818
+ title?: string;
1819
+ };
1820
+ path?: never;
1821
+ query?: {
1822
+ directory?: string;
1823
+ };
1824
+ url: "/session";
1825
+ };
1826
+ export type SessionCreateErrors = {
1827
+ /**
1828
+ * Bad request
1829
+ */
1830
+ 400: BadRequestError;
1831
+ };
1832
+ export type SessionCreateError = SessionCreateErrors[keyof SessionCreateErrors];
1833
+ export type SessionCreateResponses = {
1834
+ /**
1835
+ * Successfully created session
1836
+ */
1837
+ 200: Session;
1838
+ };
1839
+ export type SessionCreateResponse = SessionCreateResponses[keyof SessionCreateResponses];
1840
+ export type SessionStatusData = {
1841
+ body?: never;
1842
+ path?: never;
1843
+ query?: {
1844
+ directory?: string;
1845
+ };
1846
+ url: "/session/status";
1847
+ };
1848
+ export type SessionStatusErrors = {
1849
+ /**
1850
+ * Bad request
1851
+ */
1852
+ 400: BadRequestError;
1853
+ };
1854
+ export type SessionStatusError = SessionStatusErrors[keyof SessionStatusErrors];
1855
+ export type SessionStatusResponses = {
1856
+ /**
1857
+ * Get session status
1858
+ */
1859
+ 200: {
1860
+ [key: string]: SessionStatus;
1861
+ };
1862
+ };
1863
+ export type SessionStatusResponse = SessionStatusResponses[keyof SessionStatusResponses];
1864
+ export type SessionDeleteData = {
1865
+ body?: never;
1866
+ path: {
1867
+ id: string;
1868
+ };
1869
+ query?: {
1870
+ directory?: string;
1871
+ };
1872
+ url: "/session/{id}";
1873
+ };
1874
+ export type SessionDeleteErrors = {
1875
+ /**
1876
+ * Bad request
1877
+ */
1878
+ 400: BadRequestError;
1879
+ /**
1880
+ * Not found
1881
+ */
1882
+ 404: NotFoundError;
1883
+ };
1884
+ export type SessionDeleteError = SessionDeleteErrors[keyof SessionDeleteErrors];
1885
+ export type SessionDeleteResponses = {
1886
+ /**
1887
+ * Successfully deleted session
1888
+ */
1889
+ 200: boolean;
1890
+ };
1891
+ export type SessionDeleteResponse = SessionDeleteResponses[keyof SessionDeleteResponses];
1892
+ export type SessionGetData = {
1893
+ body?: never;
1894
+ path: {
1895
+ id: string;
1896
+ };
1897
+ query?: {
1898
+ directory?: string;
1899
+ };
1900
+ url: "/session/{id}";
1901
+ };
1902
+ export type SessionGetErrors = {
1903
+ /**
1904
+ * Bad request
1905
+ */
1906
+ 400: BadRequestError;
1907
+ /**
1908
+ * Not found
1909
+ */
1910
+ 404: NotFoundError;
1911
+ };
1912
+ export type SessionGetError = SessionGetErrors[keyof SessionGetErrors];
1913
+ export type SessionGetResponses = {
1914
+ /**
1915
+ * Get session
1916
+ */
1917
+ 200: Session;
1918
+ };
1919
+ export type SessionGetResponse = SessionGetResponses[keyof SessionGetResponses];
1920
+ export type SessionUpdateData = {
1921
+ body?: {
1922
+ title?: string;
1923
+ };
1924
+ path: {
1925
+ id: string;
1926
+ };
1927
+ query?: {
1928
+ directory?: string;
1929
+ };
1930
+ url: "/session/{id}";
1931
+ };
1932
+ export type SessionUpdateErrors = {
1933
+ /**
1934
+ * Bad request
1935
+ */
1936
+ 400: BadRequestError;
1937
+ /**
1938
+ * Not found
1939
+ */
1940
+ 404: NotFoundError;
1941
+ };
1942
+ export type SessionUpdateError = SessionUpdateErrors[keyof SessionUpdateErrors];
1943
+ export type SessionUpdateResponses = {
1944
+ /**
1945
+ * Successfully updated session
1946
+ */
1947
+ 200: Session;
1948
+ };
1949
+ export type SessionUpdateResponse = SessionUpdateResponses[keyof SessionUpdateResponses];
1950
+ export type SessionChildrenData = {
1951
+ body?: never;
1952
+ path: {
1953
+ id: string;
1954
+ };
1955
+ query?: {
1956
+ directory?: string;
1957
+ };
1958
+ url: "/session/{id}/children";
1959
+ };
1960
+ export type SessionChildrenErrors = {
1961
+ /**
1962
+ * Bad request
1963
+ */
1964
+ 400: BadRequestError;
1965
+ /**
1966
+ * Not found
1967
+ */
1968
+ 404: NotFoundError;
1969
+ };
1970
+ export type SessionChildrenError = SessionChildrenErrors[keyof SessionChildrenErrors];
1971
+ export type SessionChildrenResponses = {
1972
+ /**
1973
+ * List of children
1974
+ */
1975
+ 200: Array<Session>;
1976
+ };
1977
+ export type SessionChildrenResponse = SessionChildrenResponses[keyof SessionChildrenResponses];
1978
+ export type SessionTodoData = {
1979
+ body?: never;
1980
+ path: {
1981
+ /**
1982
+ * Session ID
1983
+ */
1984
+ id: string;
1985
+ };
1986
+ query?: {
1987
+ directory?: string;
1988
+ };
1989
+ url: "/session/{id}/todo";
1990
+ };
1991
+ export type SessionTodoErrors = {
1992
+ /**
1993
+ * Bad request
1994
+ */
1995
+ 400: BadRequestError;
1996
+ /**
1997
+ * Not found
1998
+ */
1999
+ 404: NotFoundError;
2000
+ };
2001
+ export type SessionTodoError = SessionTodoErrors[keyof SessionTodoErrors];
2002
+ export type SessionTodoResponses = {
2003
+ /**
2004
+ * Todo list
2005
+ */
2006
+ 200: Array<Todo>;
2007
+ };
2008
+ export type SessionTodoResponse = SessionTodoResponses[keyof SessionTodoResponses];
2009
+ export type SessionInitData = {
2010
+ body?: {
2011
+ modelID: string;
2012
+ providerID: string;
2013
+ messageID: string;
2014
+ };
2015
+ path: {
2016
+ /**
2017
+ * Session ID
2018
+ */
2019
+ id: string;
2020
+ };
2021
+ query?: {
2022
+ directory?: string;
2023
+ };
2024
+ url: "/session/{id}/init";
2025
+ };
2026
+ export type SessionInitErrors = {
2027
+ /**
2028
+ * Bad request
2029
+ */
2030
+ 400: BadRequestError;
2031
+ /**
2032
+ * Not found
2033
+ */
2034
+ 404: NotFoundError;
2035
+ };
2036
+ export type SessionInitError = SessionInitErrors[keyof SessionInitErrors];
2037
+ export type SessionInitResponses = {
2038
+ /**
2039
+ * 200
2040
+ */
2041
+ 200: boolean;
2042
+ };
2043
+ export type SessionInitResponse = SessionInitResponses[keyof SessionInitResponses];
2044
+ export type SessionForkData = {
2045
+ body?: {
2046
+ messageID?: string;
2047
+ };
2048
+ path: {
2049
+ id: string;
2050
+ };
2051
+ query?: {
2052
+ directory?: string;
2053
+ };
2054
+ url: "/session/{id}/fork";
2055
+ };
2056
+ export type SessionForkResponses = {
2057
+ /**
2058
+ * 200
2059
+ */
2060
+ 200: Session;
2061
+ };
2062
+ export type SessionForkResponse = SessionForkResponses[keyof SessionForkResponses];
2063
+ export type SessionAbortData = {
2064
+ body?: never;
2065
+ path: {
2066
+ id: string;
2067
+ };
2068
+ query?: {
2069
+ directory?: string;
2070
+ };
2071
+ url: "/session/{id}/abort";
2072
+ };
2073
+ export type SessionAbortErrors = {
2074
+ /**
2075
+ * Bad request
2076
+ */
2077
+ 400: BadRequestError;
2078
+ /**
2079
+ * Not found
2080
+ */
2081
+ 404: NotFoundError;
2082
+ };
2083
+ export type SessionAbortError = SessionAbortErrors[keyof SessionAbortErrors];
2084
+ export type SessionAbortResponses = {
2085
+ /**
2086
+ * Aborted session
2087
+ */
2088
+ 200: boolean;
2089
+ };
2090
+ export type SessionAbortResponse = SessionAbortResponses[keyof SessionAbortResponses];
2091
+ export type SessionUnshareData = {
2092
+ body?: never;
2093
+ path: {
2094
+ id: string;
2095
+ };
2096
+ query?: {
2097
+ directory?: string;
2098
+ };
2099
+ url: "/session/{id}/share";
2100
+ };
2101
+ export type SessionUnshareErrors = {
2102
+ /**
2103
+ * Bad request
2104
+ */
2105
+ 400: BadRequestError;
2106
+ /**
2107
+ * Not found
2108
+ */
2109
+ 404: NotFoundError;
2110
+ };
2111
+ export type SessionUnshareError = SessionUnshareErrors[keyof SessionUnshareErrors];
2112
+ export type SessionUnshareResponses = {
2113
+ /**
2114
+ * Successfully unshared session
2115
+ */
2116
+ 200: Session;
2117
+ };
2118
+ export type SessionUnshareResponse = SessionUnshareResponses[keyof SessionUnshareResponses];
2119
+ export type SessionShareData = {
2120
+ body?: never;
2121
+ path: {
2122
+ id: string;
2123
+ };
2124
+ query?: {
2125
+ directory?: string;
2126
+ };
2127
+ url: "/session/{id}/share";
2128
+ };
2129
+ export type SessionShareErrors = {
2130
+ /**
2131
+ * Bad request
2132
+ */
2133
+ 400: BadRequestError;
2134
+ /**
2135
+ * Not found
2136
+ */
2137
+ 404: NotFoundError;
2138
+ };
2139
+ export type SessionShareError = SessionShareErrors[keyof SessionShareErrors];
2140
+ export type SessionShareResponses = {
2141
+ /**
2142
+ * Successfully shared session
2143
+ */
2144
+ 200: Session;
2145
+ };
2146
+ export type SessionShareResponse = SessionShareResponses[keyof SessionShareResponses];
2147
+ export type SessionDiffData = {
2148
+ body?: never;
2149
+ path: {
2150
+ /**
2151
+ * Session ID
2152
+ */
2153
+ id: string;
2154
+ };
2155
+ query?: {
2156
+ directory?: string;
2157
+ messageID?: string;
2158
+ };
2159
+ url: "/session/{id}/diff";
2160
+ };
2161
+ export type SessionDiffErrors = {
2162
+ /**
2163
+ * Bad request
2164
+ */
2165
+ 400: BadRequestError;
2166
+ /**
2167
+ * Not found
2168
+ */
2169
+ 404: NotFoundError;
2170
+ };
2171
+ export type SessionDiffError = SessionDiffErrors[keyof SessionDiffErrors];
2172
+ export type SessionDiffResponses = {
2173
+ /**
2174
+ * List of diffs
2175
+ */
2176
+ 200: Array<FileDiff>;
2177
+ };
2178
+ export type SessionDiffResponse = SessionDiffResponses[keyof SessionDiffResponses];
2179
+ export type SessionSummarizeData = {
2180
+ body?: {
2181
+ providerID: string;
2182
+ modelID: string;
2183
+ };
2184
+ path: {
2185
+ /**
2186
+ * Session ID
2187
+ */
2188
+ id: string;
2189
+ };
2190
+ query?: {
2191
+ directory?: string;
2192
+ };
2193
+ url: "/session/{id}/summarize";
2194
+ };
2195
+ export type SessionSummarizeErrors = {
2196
+ /**
2197
+ * Bad request
2198
+ */
2199
+ 400: BadRequestError;
2200
+ /**
2201
+ * Not found
2202
+ */
2203
+ 404: NotFoundError;
2204
+ };
2205
+ export type SessionSummarizeError = SessionSummarizeErrors[keyof SessionSummarizeErrors];
2206
+ export type SessionSummarizeResponses = {
2207
+ /**
2208
+ * Summarized session
2209
+ */
2210
+ 200: boolean;
2211
+ };
2212
+ export type SessionSummarizeResponse = SessionSummarizeResponses[keyof SessionSummarizeResponses];
2213
+ export type SessionMessagesData = {
2214
+ body?: never;
2215
+ path: {
2216
+ /**
2217
+ * Session ID
2218
+ */
2219
+ id: string;
2220
+ };
2221
+ query?: {
2222
+ directory?: string;
2223
+ limit?: number;
2224
+ };
2225
+ url: "/session/{id}/message";
2226
+ };
2227
+ export type SessionMessagesErrors = {
2228
+ /**
2229
+ * Bad request
2230
+ */
2231
+ 400: BadRequestError;
2232
+ /**
2233
+ * Not found
2234
+ */
2235
+ 404: NotFoundError;
2236
+ };
2237
+ export type SessionMessagesError = SessionMessagesErrors[keyof SessionMessagesErrors];
2238
+ export type SessionMessagesResponses = {
2239
+ /**
2240
+ * List of messages
2241
+ */
2242
+ 200: Array<{
2243
+ info: Message;
2244
+ parts: Array<Part>;
2245
+ }>;
2246
+ };
2247
+ export type SessionMessagesResponse = SessionMessagesResponses[keyof SessionMessagesResponses];
2248
+ export type SessionPromptData = {
2249
+ body?: {
2250
+ messageID?: string;
2251
+ model?: {
2252
+ providerID: string;
2253
+ modelID: string;
2254
+ };
2255
+ agent?: string;
2256
+ noReply?: boolean;
2257
+ system?: string;
2258
+ tools?: {
2259
+ [key: string]: boolean;
2260
+ };
2261
+ parts: Array<TextPartInput | FilePartInput | AgentPartInput | SubtaskPartInput>;
2262
+ };
2263
+ path: {
2264
+ /**
2265
+ * Session ID
2266
+ */
2267
+ id: string;
2268
+ };
2269
+ query?: {
2270
+ directory?: string;
2271
+ };
2272
+ url: "/session/{id}/message";
2273
+ };
2274
+ export type SessionPromptErrors = {
2275
+ /**
2276
+ * Bad request
2277
+ */
2278
+ 400: BadRequestError;
2279
+ /**
2280
+ * Not found
2281
+ */
2282
+ 404: NotFoundError;
2283
+ };
2284
+ export type SessionPromptError = SessionPromptErrors[keyof SessionPromptErrors];
2285
+ export type SessionPromptResponses = {
2286
+ /**
2287
+ * Created message
2288
+ */
2289
+ 200: {
2290
+ info: AssistantMessage;
2291
+ parts: Array<Part>;
2292
+ };
2293
+ };
2294
+ export type SessionPromptResponse = SessionPromptResponses[keyof SessionPromptResponses];
2295
+ export type SessionMessageData = {
2296
+ body?: never;
2297
+ path: {
2298
+ /**
2299
+ * Session ID
2300
+ */
2301
+ id: string;
2302
+ /**
2303
+ * Message ID
2304
+ */
2305
+ messageID: string;
2306
+ };
2307
+ query?: {
2308
+ directory?: string;
2309
+ };
2310
+ url: "/session/{id}/message/{messageID}";
2311
+ };
2312
+ export type SessionMessageErrors = {
2313
+ /**
2314
+ * Bad request
2315
+ */
2316
+ 400: BadRequestError;
2317
+ /**
2318
+ * Not found
2319
+ */
2320
+ 404: NotFoundError;
2321
+ };
2322
+ export type SessionMessageError = SessionMessageErrors[keyof SessionMessageErrors];
2323
+ export type SessionMessageResponses = {
2324
+ /**
2325
+ * Message
2326
+ */
2327
+ 200: {
2328
+ info: Message;
2329
+ parts: Array<Part>;
2330
+ };
2331
+ };
2332
+ export type SessionMessageResponse = SessionMessageResponses[keyof SessionMessageResponses];
2333
+ export type SessionPromptAsyncData = {
2334
+ body?: {
2335
+ messageID?: string;
2336
+ model?: {
2337
+ providerID: string;
2338
+ modelID: string;
2339
+ };
2340
+ agent?: string;
2341
+ noReply?: boolean;
2342
+ system?: string;
2343
+ tools?: {
2344
+ [key: string]: boolean;
2345
+ };
2346
+ parts: Array<TextPartInput | FilePartInput | AgentPartInput | SubtaskPartInput>;
2347
+ };
2348
+ path: {
2349
+ /**
2350
+ * Session ID
2351
+ */
2352
+ id: string;
2353
+ };
2354
+ query?: {
2355
+ directory?: string;
2356
+ };
2357
+ url: "/session/{id}/prompt_async";
2358
+ };
2359
+ export type SessionPromptAsyncErrors = {
2360
+ /**
2361
+ * Bad request
2362
+ */
2363
+ 400: BadRequestError;
2364
+ /**
2365
+ * Not found
2366
+ */
2367
+ 404: NotFoundError;
2368
+ };
2369
+ export type SessionPromptAsyncError = SessionPromptAsyncErrors[keyof SessionPromptAsyncErrors];
2370
+ export type SessionPromptAsyncResponses = {
2371
+ /**
2372
+ * Prompt accepted
2373
+ */
2374
+ 204: void;
2375
+ };
2376
+ export type SessionPromptAsyncResponse = SessionPromptAsyncResponses[keyof SessionPromptAsyncResponses];
2377
+ export type SessionCommandData = {
2378
+ body?: {
2379
+ messageID?: string;
2380
+ agent?: string;
2381
+ model?: string;
2382
+ arguments: string;
2383
+ command: string;
2384
+ };
2385
+ path: {
2386
+ /**
2387
+ * Session ID
2388
+ */
2389
+ id: string;
2390
+ };
2391
+ query?: {
2392
+ directory?: string;
2393
+ };
2394
+ url: "/session/{id}/command";
2395
+ };
2396
+ export type SessionCommandErrors = {
2397
+ /**
2398
+ * Bad request
2399
+ */
2400
+ 400: BadRequestError;
2401
+ /**
2402
+ * Not found
2403
+ */
2404
+ 404: NotFoundError;
2405
+ };
2406
+ export type SessionCommandError = SessionCommandErrors[keyof SessionCommandErrors];
2407
+ export type SessionCommandResponses = {
2408
+ /**
2409
+ * Created message
2410
+ */
2411
+ 200: {
2412
+ info: AssistantMessage;
2413
+ parts: Array<Part>;
2414
+ };
2415
+ };
2416
+ export type SessionCommandResponse = SessionCommandResponses[keyof SessionCommandResponses];
2417
+ export type SessionShellData = {
2418
+ body?: {
2419
+ agent: string;
2420
+ model?: {
2421
+ providerID: string;
2422
+ modelID: string;
2423
+ };
2424
+ command: string;
2425
+ };
2426
+ path: {
2427
+ /**
2428
+ * Session ID
2429
+ */
2430
+ id: string;
2431
+ };
2432
+ query?: {
2433
+ directory?: string;
2434
+ };
2435
+ url: "/session/{id}/shell";
2436
+ };
2437
+ export type SessionShellErrors = {
2438
+ /**
2439
+ * Bad request
2440
+ */
2441
+ 400: BadRequestError;
2442
+ /**
2443
+ * Not found
2444
+ */
2445
+ 404: NotFoundError;
2446
+ };
2447
+ export type SessionShellError = SessionShellErrors[keyof SessionShellErrors];
2448
+ export type SessionShellResponses = {
2449
+ /**
2450
+ * Created message
2451
+ */
2452
+ 200: AssistantMessage;
2453
+ };
2454
+ export type SessionShellResponse = SessionShellResponses[keyof SessionShellResponses];
2455
+ export type SessionRevertData = {
2456
+ body?: {
2457
+ messageID: string;
2458
+ partID?: string;
2459
+ };
2460
+ path: {
2461
+ id: string;
2462
+ };
2463
+ query?: {
2464
+ directory?: string;
2465
+ };
2466
+ url: "/session/{id}/revert";
2467
+ };
2468
+ export type SessionRevertErrors = {
2469
+ /**
2470
+ * Bad request
2471
+ */
2472
+ 400: BadRequestError;
2473
+ /**
2474
+ * Not found
2475
+ */
2476
+ 404: NotFoundError;
2477
+ };
2478
+ export type SessionRevertError = SessionRevertErrors[keyof SessionRevertErrors];
2479
+ export type SessionRevertResponses = {
2480
+ /**
2481
+ * Updated session
2482
+ */
2483
+ 200: Session;
2484
+ };
2485
+ export type SessionRevertResponse = SessionRevertResponses[keyof SessionRevertResponses];
2486
+ export type SessionUnrevertData = {
2487
+ body?: never;
2488
+ path: {
2489
+ id: string;
2490
+ };
2491
+ query?: {
2492
+ directory?: string;
2493
+ };
2494
+ url: "/session/{id}/unrevert";
2495
+ };
2496
+ export type SessionUnrevertErrors = {
2497
+ /**
2498
+ * Bad request
2499
+ */
2500
+ 400: BadRequestError;
2501
+ /**
2502
+ * Not found
2503
+ */
2504
+ 404: NotFoundError;
2505
+ };
2506
+ export type SessionUnrevertError = SessionUnrevertErrors[keyof SessionUnrevertErrors];
2507
+ export type SessionUnrevertResponses = {
2508
+ /**
2509
+ * Updated session
2510
+ */
2511
+ 200: Session;
2512
+ };
2513
+ export type SessionUnrevertResponse = SessionUnrevertResponses[keyof SessionUnrevertResponses];
2514
+ export type PostSessionIdPermissionsPermissionIdData = {
2515
+ body?: {
2516
+ response: "once" | "always" | "reject";
2517
+ };
2518
+ path: {
2519
+ id: string;
2520
+ permissionID: string;
2521
+ };
2522
+ query?: {
2523
+ directory?: string;
2524
+ };
2525
+ url: "/session/{id}/permissions/{permissionID}";
2526
+ };
2527
+ export type PostSessionIdPermissionsPermissionIdErrors = {
2528
+ /**
2529
+ * Bad request
2530
+ */
2531
+ 400: BadRequestError;
2532
+ /**
2533
+ * Not found
2534
+ */
2535
+ 404: NotFoundError;
2536
+ };
2537
+ export type PostSessionIdPermissionsPermissionIdError = PostSessionIdPermissionsPermissionIdErrors[keyof PostSessionIdPermissionsPermissionIdErrors];
2538
+ export type PostSessionIdPermissionsPermissionIdResponses = {
2539
+ /**
2540
+ * Permission processed successfully
2541
+ */
2542
+ 200: boolean;
2543
+ };
2544
+ export type PostSessionIdPermissionsPermissionIdResponse = PostSessionIdPermissionsPermissionIdResponses[keyof PostSessionIdPermissionsPermissionIdResponses];
2545
+ export type CommandListData = {
2546
+ body?: never;
2547
+ path?: never;
2548
+ query?: {
2549
+ directory?: string;
2550
+ };
2551
+ url: "/command";
2552
+ };
2553
+ export type CommandListResponses = {
2554
+ /**
2555
+ * List of commands
2556
+ */
2557
+ 200: Array<Command>;
2558
+ };
2559
+ export type CommandListResponse = CommandListResponses[keyof CommandListResponses];
2560
+ export type ConfigProvidersData = {
2561
+ body?: never;
2562
+ path?: never;
2563
+ query?: {
2564
+ directory?: string;
2565
+ };
2566
+ url: "/config/providers";
2567
+ };
2568
+ export type ConfigProvidersResponses = {
2569
+ /**
2570
+ * List of providers
2571
+ */
2572
+ 200: {
2573
+ providers: Array<Provider>;
2574
+ default: {
2575
+ [key: string]: string;
2576
+ };
2577
+ };
2578
+ };
2579
+ export type ConfigProvidersResponse = ConfigProvidersResponses[keyof ConfigProvidersResponses];
2580
+ export type ProviderListData = {
2581
+ body?: never;
2582
+ path?: never;
2583
+ query?: {
2584
+ directory?: string;
2585
+ };
2586
+ url: "/provider";
2587
+ };
2588
+ export type ProviderListResponses = {
2589
+ /**
2590
+ * List of providers
2591
+ */
2592
+ 200: {
2593
+ all: Array<{
2594
+ api?: string;
2595
+ name: string;
2596
+ env: Array<string>;
2597
+ id: string;
2598
+ npm?: string;
2599
+ models: {
2600
+ [key: string]: {
2601
+ id: string;
2602
+ name: string;
2603
+ release_date: string;
2604
+ attachment: boolean;
2605
+ reasoning: boolean;
2606
+ temperature: boolean;
2607
+ tool_call: boolean;
2608
+ cost?: {
2609
+ input: number;
2610
+ output: number;
2611
+ cache_read?: number;
2612
+ cache_write?: number;
2613
+ context_over_200k?: {
2614
+ input: number;
2615
+ output: number;
2616
+ cache_read?: number;
2617
+ cache_write?: number;
2618
+ };
2619
+ };
2620
+ limit: {
2621
+ context: number;
2622
+ output: number;
2623
+ };
2624
+ modalities?: {
2625
+ input: Array<"text" | "audio" | "image" | "video" | "pdf">;
2626
+ output: Array<"text" | "audio" | "image" | "video" | "pdf">;
2627
+ };
2628
+ experimental?: boolean;
2629
+ status?: "alpha" | "beta" | "deprecated";
2630
+ options: {
2631
+ [key: string]: unknown;
2632
+ };
2633
+ headers?: {
2634
+ [key: string]: string;
2635
+ };
2636
+ provider?: {
2637
+ npm: string;
2638
+ };
2639
+ };
2640
+ };
2641
+ }>;
2642
+ default: {
2643
+ [key: string]: string;
2644
+ };
2645
+ connected: Array<string>;
2646
+ };
2647
+ };
2648
+ export type ProviderListResponse = ProviderListResponses[keyof ProviderListResponses];
2649
+ export type ProviderAuthData = {
2650
+ body?: never;
2651
+ path?: never;
2652
+ query?: {
2653
+ directory?: string;
2654
+ };
2655
+ url: "/provider/auth";
2656
+ };
2657
+ export type ProviderAuthResponses = {
2658
+ /**
2659
+ * Provider auth methods
2660
+ */
2661
+ 200: {
2662
+ [key: string]: Array<ProviderAuthMethod>;
2663
+ };
2664
+ };
2665
+ export type ProviderAuthResponse = ProviderAuthResponses[keyof ProviderAuthResponses];
2666
+ export type ProviderOauthAuthorizeData = {
2667
+ body?: {
2668
+ /**
2669
+ * Auth method index
2670
+ */
2671
+ method: number;
2672
+ };
2673
+ path: {
2674
+ /**
2675
+ * Provider ID
2676
+ */
2677
+ id: string;
2678
+ };
2679
+ query?: {
2680
+ directory?: string;
2681
+ };
2682
+ url: "/provider/{id}/oauth/authorize";
2683
+ };
2684
+ export type ProviderOauthAuthorizeErrors = {
2685
+ /**
2686
+ * Bad request
2687
+ */
2688
+ 400: BadRequestError;
2689
+ };
2690
+ export type ProviderOauthAuthorizeError = ProviderOauthAuthorizeErrors[keyof ProviderOauthAuthorizeErrors];
2691
+ export type ProviderOauthAuthorizeResponses = {
2692
+ /**
2693
+ * Authorization URL and method
2694
+ */
2695
+ 200: ProviderAuthAuthorization;
2696
+ };
2697
+ export type ProviderOauthAuthorizeResponse = ProviderOauthAuthorizeResponses[keyof ProviderOauthAuthorizeResponses];
2698
+ export type ProviderOauthCallbackData = {
2699
+ body?: {
2700
+ /**
2701
+ * Auth method index
2702
+ */
2703
+ method: number;
2704
+ /**
2705
+ * OAuth authorization code
2706
+ */
2707
+ code?: string;
2708
+ };
2709
+ path: {
2710
+ /**
2711
+ * Provider ID
2712
+ */
2713
+ id: string;
2714
+ };
2715
+ query?: {
2716
+ directory?: string;
2717
+ };
2718
+ url: "/provider/{id}/oauth/callback";
2719
+ };
2720
+ export type ProviderOauthCallbackErrors = {
2721
+ /**
2722
+ * Bad request
2723
+ */
2724
+ 400: BadRequestError;
2725
+ };
2726
+ export type ProviderOauthCallbackError = ProviderOauthCallbackErrors[keyof ProviderOauthCallbackErrors];
2727
+ export type ProviderOauthCallbackResponses = {
2728
+ /**
2729
+ * OAuth callback processed successfully
2730
+ */
2731
+ 200: boolean;
2732
+ };
2733
+ export type ProviderOauthCallbackResponse = ProviderOauthCallbackResponses[keyof ProviderOauthCallbackResponses];
2734
+ export type FindTextData = {
2735
+ body?: never;
2736
+ path?: never;
2737
+ query: {
2738
+ directory?: string;
2739
+ pattern: string;
2740
+ };
2741
+ url: "/find";
2742
+ };
2743
+ export type FindTextResponses = {
2744
+ /**
2745
+ * Matches
2746
+ */
2747
+ 200: Array<{
2748
+ path: {
2749
+ text: string;
2750
+ };
2751
+ lines: {
2752
+ text: string;
2753
+ };
2754
+ line_number: number;
2755
+ absolute_offset: number;
2756
+ submatches: Array<{
2757
+ match: {
2758
+ text: string;
2759
+ };
2760
+ start: number;
2761
+ end: number;
2762
+ }>;
2763
+ }>;
2764
+ };
2765
+ export type FindTextResponse = FindTextResponses[keyof FindTextResponses];
2766
+ export type FindFilesData = {
2767
+ body?: never;
2768
+ path?: never;
2769
+ query: {
2770
+ directory?: string;
2771
+ query: string;
2772
+ dirs?: "true" | "false";
2773
+ };
2774
+ url: "/find/file";
2775
+ };
2776
+ export type FindFilesResponses = {
2777
+ /**
2778
+ * File paths
2779
+ */
2780
+ 200: Array<string>;
2781
+ };
2782
+ export type FindFilesResponse = FindFilesResponses[keyof FindFilesResponses];
2783
+ export type FindSymbolsData = {
2784
+ body?: never;
2785
+ path?: never;
2786
+ query: {
2787
+ directory?: string;
2788
+ query: string;
2789
+ };
2790
+ url: "/find/symbol";
2791
+ };
2792
+ export type FindSymbolsResponses = {
2793
+ /**
2794
+ * Symbols
2795
+ */
2796
+ 200: Array<Symbol>;
2797
+ };
2798
+ export type FindSymbolsResponse = FindSymbolsResponses[keyof FindSymbolsResponses];
2799
+ export type FileListData = {
2800
+ body?: never;
2801
+ path?: never;
2802
+ query: {
2803
+ directory?: string;
2804
+ path: string;
2805
+ };
2806
+ url: "/file";
2807
+ };
2808
+ export type FileListResponses = {
2809
+ /**
2810
+ * Files and directories
2811
+ */
2812
+ 200: Array<FileNode>;
2813
+ };
2814
+ export type FileListResponse = FileListResponses[keyof FileListResponses];
2815
+ export type FileReadData = {
2816
+ body?: never;
2817
+ path?: never;
2818
+ query: {
2819
+ directory?: string;
2820
+ path: string;
2821
+ };
2822
+ url: "/file/content";
2823
+ };
2824
+ export type FileReadResponses = {
2825
+ /**
2826
+ * File content
2827
+ */
2828
+ 200: FileContent;
2829
+ };
2830
+ export type FileReadResponse = FileReadResponses[keyof FileReadResponses];
2831
+ export type FileStatusData = {
2832
+ body?: never;
2833
+ path?: never;
2834
+ query?: {
2835
+ directory?: string;
2836
+ };
2837
+ url: "/file/status";
2838
+ };
2839
+ export type FileStatusResponses = {
2840
+ /**
2841
+ * File status
2842
+ */
2843
+ 200: Array<File>;
2844
+ };
2845
+ export type FileStatusResponse = FileStatusResponses[keyof FileStatusResponses];
2846
+ export type AppLogData = {
2847
+ body?: {
2848
+ /**
2849
+ * Service name for the log entry
2850
+ */
2851
+ service: string;
2852
+ /**
2853
+ * Log level
2854
+ */
2855
+ level: "debug" | "info" | "error" | "warn";
2856
+ /**
2857
+ * Log message
2858
+ */
2859
+ message: string;
2860
+ /**
2861
+ * Additional metadata for the log entry
2862
+ */
2863
+ extra?: {
2864
+ [key: string]: unknown;
2865
+ };
2866
+ };
2867
+ path?: never;
2868
+ query?: {
2869
+ directory?: string;
2870
+ };
2871
+ url: "/log";
2872
+ };
2873
+ export type AppLogErrors = {
2874
+ /**
2875
+ * Bad request
2876
+ */
2877
+ 400: BadRequestError;
2878
+ };
2879
+ export type AppLogError = AppLogErrors[keyof AppLogErrors];
2880
+ export type AppLogResponses = {
2881
+ /**
2882
+ * Log entry written successfully
2883
+ */
2884
+ 200: boolean;
2885
+ };
2886
+ export type AppLogResponse = AppLogResponses[keyof AppLogResponses];
2887
+ export type AppAgentsData = {
2888
+ body?: never;
2889
+ path?: never;
2890
+ query?: {
2891
+ directory?: string;
2892
+ };
2893
+ url: "/agent";
2894
+ };
2895
+ export type AppAgentsResponses = {
2896
+ /**
2897
+ * List of agents
2898
+ */
2899
+ 200: Array<Agent>;
2900
+ };
2901
+ export type AppAgentsResponse = AppAgentsResponses[keyof AppAgentsResponses];
2902
+ export type McpStatusData = {
2903
+ body?: never;
2904
+ path?: never;
2905
+ query?: {
2906
+ directory?: string;
2907
+ };
2908
+ url: "/mcp";
2909
+ };
2910
+ export type McpStatusResponses = {
2911
+ /**
2912
+ * MCP server status
2913
+ */
2914
+ 200: {
2915
+ [key: string]: McpStatus;
2916
+ };
2917
+ };
2918
+ export type McpStatusResponse = McpStatusResponses[keyof McpStatusResponses];
2919
+ export type McpAddData = {
2920
+ body?: {
2921
+ name: string;
2922
+ config: McpLocalConfig | McpRemoteConfig;
2923
+ };
2924
+ path?: never;
2925
+ query?: {
2926
+ directory?: string;
2927
+ };
2928
+ url: "/mcp";
2929
+ };
2930
+ export type McpAddErrors = {
2931
+ /**
2932
+ * Bad request
2933
+ */
2934
+ 400: BadRequestError;
2935
+ };
2936
+ export type McpAddError = McpAddErrors[keyof McpAddErrors];
2937
+ export type McpAddResponses = {
2938
+ /**
2939
+ * MCP server added successfully
2940
+ */
2941
+ 200: {
2942
+ [key: string]: McpStatus;
2943
+ };
2944
+ };
2945
+ export type McpAddResponse = McpAddResponses[keyof McpAddResponses];
2946
+ export type McpAuthRemoveData = {
2947
+ body?: never;
2948
+ path: {
2949
+ name: string;
2950
+ };
2951
+ query?: {
2952
+ directory?: string;
2953
+ };
2954
+ url: "/mcp/{name}/auth";
2955
+ };
2956
+ export type McpAuthRemoveErrors = {
2957
+ /**
2958
+ * Not found
2959
+ */
2960
+ 404: NotFoundError;
2961
+ };
2962
+ export type McpAuthRemoveError = McpAuthRemoveErrors[keyof McpAuthRemoveErrors];
2963
+ export type McpAuthRemoveResponses = {
2964
+ /**
2965
+ * OAuth credentials removed
2966
+ */
2967
+ 200: {
2968
+ success: true;
2969
+ };
2970
+ };
2971
+ export type McpAuthRemoveResponse = McpAuthRemoveResponses[keyof McpAuthRemoveResponses];
2972
+ export type McpAuthStartData = {
2973
+ body?: never;
2974
+ path: {
2975
+ name: string;
2976
+ };
2977
+ query?: {
2978
+ directory?: string;
2979
+ };
2980
+ url: "/mcp/{name}/auth";
2981
+ };
2982
+ export type McpAuthStartErrors = {
2983
+ /**
2984
+ * Bad request
2985
+ */
2986
+ 400: BadRequestError;
2987
+ /**
2988
+ * Not found
2989
+ */
2990
+ 404: NotFoundError;
2991
+ };
2992
+ export type McpAuthStartError = McpAuthStartErrors[keyof McpAuthStartErrors];
2993
+ export type McpAuthStartResponses = {
2994
+ /**
2995
+ * OAuth flow started
2996
+ */
2997
+ 200: {
2998
+ /**
2999
+ * URL to open in browser for authorization
3000
+ */
3001
+ authorizationUrl: string;
3002
+ };
3003
+ };
3004
+ export type McpAuthStartResponse = McpAuthStartResponses[keyof McpAuthStartResponses];
3005
+ export type McpAuthCallbackData = {
3006
+ body?: {
3007
+ /**
3008
+ * Authorization code from OAuth callback
3009
+ */
3010
+ code: string;
3011
+ };
3012
+ path: {
3013
+ name: string;
3014
+ };
3015
+ query?: {
3016
+ directory?: string;
3017
+ };
3018
+ url: "/mcp/{name}/auth/callback";
3019
+ };
3020
+ export type McpAuthCallbackErrors = {
3021
+ /**
3022
+ * Bad request
3023
+ */
3024
+ 400: BadRequestError;
3025
+ /**
3026
+ * Not found
3027
+ */
3028
+ 404: NotFoundError;
3029
+ };
3030
+ export type McpAuthCallbackError = McpAuthCallbackErrors[keyof McpAuthCallbackErrors];
3031
+ export type McpAuthCallbackResponses = {
3032
+ /**
3033
+ * OAuth authentication completed
3034
+ */
3035
+ 200: McpStatus;
3036
+ };
3037
+ export type McpAuthCallbackResponse = McpAuthCallbackResponses[keyof McpAuthCallbackResponses];
3038
+ export type McpAuthAuthenticateData = {
3039
+ body?: never;
3040
+ path: {
3041
+ name: string;
3042
+ };
3043
+ query?: {
3044
+ directory?: string;
3045
+ };
3046
+ url: "/mcp/{name}/auth/authenticate";
3047
+ };
3048
+ export type McpAuthAuthenticateErrors = {
3049
+ /**
3050
+ * Bad request
3051
+ */
3052
+ 400: BadRequestError;
3053
+ /**
3054
+ * Not found
3055
+ */
3056
+ 404: NotFoundError;
3057
+ };
3058
+ export type McpAuthAuthenticateError = McpAuthAuthenticateErrors[keyof McpAuthAuthenticateErrors];
3059
+ export type McpAuthAuthenticateResponses = {
3060
+ /**
3061
+ * OAuth authentication completed
3062
+ */
3063
+ 200: McpStatus;
3064
+ };
3065
+ export type McpAuthAuthenticateResponse = McpAuthAuthenticateResponses[keyof McpAuthAuthenticateResponses];
3066
+ export type McpConnectData = {
3067
+ body?: never;
3068
+ path: {
3069
+ name: string;
3070
+ };
3071
+ query?: {
3072
+ directory?: string;
3073
+ };
3074
+ url: "/mcp/{name}/connect";
3075
+ };
3076
+ export type McpConnectResponses = {
3077
+ /**
3078
+ * MCP server connected successfully
3079
+ */
3080
+ 200: boolean;
3081
+ };
3082
+ export type McpConnectResponse = McpConnectResponses[keyof McpConnectResponses];
3083
+ export type McpDisconnectData = {
3084
+ body?: never;
3085
+ path: {
3086
+ name: string;
3087
+ };
3088
+ query?: {
3089
+ directory?: string;
3090
+ };
3091
+ url: "/mcp/{name}/disconnect";
3092
+ };
3093
+ export type McpDisconnectResponses = {
3094
+ /**
3095
+ * MCP server disconnected successfully
3096
+ */
3097
+ 200: boolean;
3098
+ };
3099
+ export type McpDisconnectResponse = McpDisconnectResponses[keyof McpDisconnectResponses];
3100
+ export type LspStatusData = {
3101
+ body?: never;
3102
+ path?: never;
3103
+ query?: {
3104
+ directory?: string;
3105
+ };
3106
+ url: "/lsp";
3107
+ };
3108
+ export type LspStatusResponses = {
3109
+ /**
3110
+ * LSP server status
3111
+ */
3112
+ 200: Array<LspStatus>;
3113
+ };
3114
+ export type LspStatusResponse = LspStatusResponses[keyof LspStatusResponses];
3115
+ export type FormatterStatusData = {
3116
+ body?: never;
3117
+ path?: never;
3118
+ query?: {
3119
+ directory?: string;
3120
+ };
3121
+ url: "/formatter";
3122
+ };
3123
+ export type FormatterStatusResponses = {
3124
+ /**
3125
+ * Formatter status
3126
+ */
3127
+ 200: Array<FormatterStatus>;
3128
+ };
3129
+ export type FormatterStatusResponse = FormatterStatusResponses[keyof FormatterStatusResponses];
3130
+ export type TuiAppendPromptData = {
3131
+ body?: {
3132
+ text: string;
3133
+ };
3134
+ path?: never;
3135
+ query?: {
3136
+ directory?: string;
3137
+ };
3138
+ url: "/tui/append-prompt";
3139
+ };
3140
+ export type TuiAppendPromptErrors = {
3141
+ /**
3142
+ * Bad request
3143
+ */
3144
+ 400: BadRequestError;
3145
+ };
3146
+ export type TuiAppendPromptError = TuiAppendPromptErrors[keyof TuiAppendPromptErrors];
3147
+ export type TuiAppendPromptResponses = {
3148
+ /**
3149
+ * Prompt processed successfully
3150
+ */
3151
+ 200: boolean;
3152
+ };
3153
+ export type TuiAppendPromptResponse = TuiAppendPromptResponses[keyof TuiAppendPromptResponses];
3154
+ export type TuiOpenHelpData = {
3155
+ body?: never;
3156
+ path?: never;
3157
+ query?: {
3158
+ directory?: string;
3159
+ };
3160
+ url: "/tui/open-help";
3161
+ };
3162
+ export type TuiOpenHelpResponses = {
3163
+ /**
3164
+ * Help dialog opened successfully
3165
+ */
3166
+ 200: boolean;
3167
+ };
3168
+ export type TuiOpenHelpResponse = TuiOpenHelpResponses[keyof TuiOpenHelpResponses];
3169
+ export type TuiOpenSessionsData = {
3170
+ body?: never;
3171
+ path?: never;
3172
+ query?: {
3173
+ directory?: string;
3174
+ };
3175
+ url: "/tui/open-sessions";
3176
+ };
3177
+ export type TuiOpenSessionsResponses = {
3178
+ /**
3179
+ * Session dialog opened successfully
3180
+ */
3181
+ 200: boolean;
3182
+ };
3183
+ export type TuiOpenSessionsResponse = TuiOpenSessionsResponses[keyof TuiOpenSessionsResponses];
3184
+ export type TuiOpenThemesData = {
3185
+ body?: never;
3186
+ path?: never;
3187
+ query?: {
3188
+ directory?: string;
3189
+ };
3190
+ url: "/tui/open-themes";
3191
+ };
3192
+ export type TuiOpenThemesResponses = {
3193
+ /**
3194
+ * Theme dialog opened successfully
3195
+ */
3196
+ 200: boolean;
3197
+ };
3198
+ export type TuiOpenThemesResponse = TuiOpenThemesResponses[keyof TuiOpenThemesResponses];
3199
+ export type TuiOpenModelsData = {
3200
+ body?: never;
3201
+ path?: never;
3202
+ query?: {
3203
+ directory?: string;
3204
+ };
3205
+ url: "/tui/open-models";
3206
+ };
3207
+ export type TuiOpenModelsResponses = {
3208
+ /**
3209
+ * Model dialog opened successfully
3210
+ */
3211
+ 200: boolean;
3212
+ };
3213
+ export type TuiOpenModelsResponse = TuiOpenModelsResponses[keyof TuiOpenModelsResponses];
3214
+ export type TuiSubmitPromptData = {
3215
+ body?: never;
3216
+ path?: never;
3217
+ query?: {
3218
+ directory?: string;
3219
+ };
3220
+ url: "/tui/submit-prompt";
3221
+ };
3222
+ export type TuiSubmitPromptResponses = {
3223
+ /**
3224
+ * Prompt submitted successfully
3225
+ */
3226
+ 200: boolean;
3227
+ };
3228
+ export type TuiSubmitPromptResponse = TuiSubmitPromptResponses[keyof TuiSubmitPromptResponses];
3229
+ export type TuiClearPromptData = {
3230
+ body?: never;
3231
+ path?: never;
3232
+ query?: {
3233
+ directory?: string;
3234
+ };
3235
+ url: "/tui/clear-prompt";
3236
+ };
3237
+ export type TuiClearPromptResponses = {
3238
+ /**
3239
+ * Prompt cleared successfully
3240
+ */
3241
+ 200: boolean;
3242
+ };
3243
+ export type TuiClearPromptResponse = TuiClearPromptResponses[keyof TuiClearPromptResponses];
3244
+ export type TuiExecuteCommandData = {
3245
+ body?: {
3246
+ command: string;
3247
+ };
3248
+ path?: never;
3249
+ query?: {
3250
+ directory?: string;
3251
+ };
3252
+ url: "/tui/execute-command";
3253
+ };
3254
+ export type TuiExecuteCommandErrors = {
3255
+ /**
3256
+ * Bad request
3257
+ */
3258
+ 400: BadRequestError;
3259
+ };
3260
+ export type TuiExecuteCommandError = TuiExecuteCommandErrors[keyof TuiExecuteCommandErrors];
3261
+ export type TuiExecuteCommandResponses = {
3262
+ /**
3263
+ * Command executed successfully
3264
+ */
3265
+ 200: boolean;
3266
+ };
3267
+ export type TuiExecuteCommandResponse = TuiExecuteCommandResponses[keyof TuiExecuteCommandResponses];
3268
+ export type TuiShowToastData = {
3269
+ body?: {
3270
+ title?: string;
3271
+ message: string;
3272
+ variant: "info" | "success" | "warning" | "error";
3273
+ /**
3274
+ * Duration in milliseconds
3275
+ */
3276
+ duration?: number;
3277
+ };
3278
+ path?: never;
3279
+ query?: {
3280
+ directory?: string;
3281
+ };
3282
+ url: "/tui/show-toast";
3283
+ };
3284
+ export type TuiShowToastResponses = {
3285
+ /**
3286
+ * Toast notification shown successfully
3287
+ */
3288
+ 200: boolean;
3289
+ };
3290
+ export type TuiShowToastResponse = TuiShowToastResponses[keyof TuiShowToastResponses];
3291
+ export type TuiPublishData = {
3292
+ body?: EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow;
3293
+ path?: never;
3294
+ query?: {
3295
+ directory?: string;
3296
+ };
3297
+ url: "/tui/publish";
3298
+ };
3299
+ export type TuiPublishErrors = {
3300
+ /**
3301
+ * Bad request
3302
+ */
3303
+ 400: BadRequestError;
3304
+ };
3305
+ export type TuiPublishError = TuiPublishErrors[keyof TuiPublishErrors];
3306
+ export type TuiPublishResponses = {
3307
+ /**
3308
+ * Event published successfully
3309
+ */
3310
+ 200: boolean;
3311
+ };
3312
+ export type TuiPublishResponse = TuiPublishResponses[keyof TuiPublishResponses];
3313
+ export type TuiControlNextData = {
3314
+ body?: never;
3315
+ path?: never;
3316
+ query?: {
3317
+ directory?: string;
3318
+ };
3319
+ url: "/tui/control/next";
3320
+ };
3321
+ export type TuiControlNextResponses = {
3322
+ /**
3323
+ * Next TUI request
3324
+ */
3325
+ 200: {
3326
+ path: string;
3327
+ body: unknown;
3328
+ };
3329
+ };
3330
+ export type TuiControlNextResponse = TuiControlNextResponses[keyof TuiControlNextResponses];
3331
+ export type TuiControlResponseData = {
3332
+ body?: unknown;
3333
+ path?: never;
3334
+ query?: {
3335
+ directory?: string;
3336
+ };
3337
+ url: "/tui/control/response";
3338
+ };
3339
+ export type TuiControlResponseResponses = {
3340
+ /**
3341
+ * Response submitted successfully
3342
+ */
3343
+ 200: boolean;
3344
+ };
3345
+ export type TuiControlResponseResponse = TuiControlResponseResponses[keyof TuiControlResponseResponses];
3346
+ export type AuthSetData = {
3347
+ body?: Auth;
3348
+ path: {
3349
+ id: string;
3350
+ };
3351
+ query?: {
3352
+ directory?: string;
3353
+ };
3354
+ url: "/auth/{id}";
3355
+ };
3356
+ export type AuthSetErrors = {
3357
+ /**
3358
+ * Bad request
3359
+ */
3360
+ 400: BadRequestError;
3361
+ };
3362
+ export type AuthSetError = AuthSetErrors[keyof AuthSetErrors];
3363
+ export type AuthSetResponses = {
3364
+ /**
3365
+ * Successfully set authentication credentials
3366
+ */
3367
+ 200: boolean;
3368
+ };
3369
+ export type AuthSetResponse = AuthSetResponses[keyof AuthSetResponses];
3370
+ export type EventSubscribeData = {
3371
+ body?: never;
3372
+ path?: never;
3373
+ query?: {
3374
+ directory?: string;
3375
+ };
3376
+ url: "/event";
3377
+ };
3378
+ export type EventSubscribeResponses = {
3379
+ /**
3380
+ * Event stream
3381
+ */
3382
+ 200: Event;
3383
+ };
3384
+ export type EventSubscribeResponse = EventSubscribeResponses[keyof EventSubscribeResponses];
3385
+ export type ClientOptions = {
3386
+ baseUrl: `${string}://${string}` | (string & {});
3387
+ };