@synsci/sdk 0.0.0-beta-202605131934

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