@ericsanchezok/synergy-sdk 0.0.2 → 1.0.0

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 (58) hide show
  1. package/dist/client.d.ts +3 -3
  2. package/dist/client.js +6 -4
  3. package/dist/gen/client/client.gen.js +92 -32
  4. package/dist/gen/client/index.d.ts +2 -1
  5. package/dist/gen/client/index.js +1 -0
  6. package/dist/gen/client/types.gen.d.ts +6 -16
  7. package/dist/gen/client/utils.gen.d.ts +7 -12
  8. package/dist/gen/client/utils.gen.js +32 -32
  9. package/dist/gen/client.gen.d.ts +3 -3
  10. package/dist/gen/client.gen.js +1 -3
  11. package/dist/gen/core/bodySerializer.gen.d.ts +12 -4
  12. package/dist/gen/core/params.gen.d.ts +10 -0
  13. package/dist/gen/core/params.gen.js +18 -5
  14. package/dist/gen/core/serverSentEvents.gen.d.ts +13 -1
  15. package/dist/gen/core/serverSentEvents.gen.js +16 -2
  16. package/dist/gen/core/types.gen.d.ts +12 -12
  17. package/dist/gen/core/utils.gen.d.ts +6 -1
  18. package/dist/gen/core/utils.gen.js +18 -0
  19. package/dist/gen/sdk.gen.d.ts +1713 -198
  20. package/dist/gen/sdk.gen.js +3312 -383
  21. package/dist/gen/types.gen.d.ts +5376 -1146
  22. package/package.json +2 -14
  23. package/dist/v2/client.d.ts +0 -11
  24. package/dist/v2/client.js +0 -29
  25. package/dist/v2/gen/client/client.gen.d.ts +0 -2
  26. package/dist/v2/gen/client/client.gen.js +0 -225
  27. package/dist/v2/gen/client/index.d.ts +0 -8
  28. package/dist/v2/gen/client/index.js +0 -6
  29. package/dist/v2/gen/client/types.gen.d.ts +0 -117
  30. package/dist/v2/gen/client/types.gen.js +0 -2
  31. package/dist/v2/gen/client/utils.gen.d.ts +0 -33
  32. package/dist/v2/gen/client/utils.gen.js +0 -226
  33. package/dist/v2/gen/client.gen.d.ts +0 -12
  34. package/dist/v2/gen/client.gen.js +0 -3
  35. package/dist/v2/gen/core/auth.gen.d.ts +0 -18
  36. package/dist/v2/gen/core/auth.gen.js +0 -14
  37. package/dist/v2/gen/core/bodySerializer.gen.d.ts +0 -25
  38. package/dist/v2/gen/core/bodySerializer.gen.js +0 -57
  39. package/dist/v2/gen/core/params.gen.d.ts +0 -43
  40. package/dist/v2/gen/core/params.gen.js +0 -102
  41. package/dist/v2/gen/core/pathSerializer.gen.d.ts +0 -33
  42. package/dist/v2/gen/core/pathSerializer.gen.js +0 -106
  43. package/dist/v2/gen/core/serverSentEvents.gen.d.ts +0 -71
  44. package/dist/v2/gen/core/serverSentEvents.gen.js +0 -131
  45. package/dist/v2/gen/core/types.gen.d.ts +0 -78
  46. package/dist/v2/gen/core/types.gen.js +0 -2
  47. package/dist/v2/gen/core/utils.gen.d.ts +0 -19
  48. package/dist/v2/gen/core/utils.gen.js +0 -87
  49. package/dist/v2/gen/sdk.gen.d.ts +0 -1114
  50. package/dist/v2/gen/sdk.gen.js +0 -2145
  51. package/dist/v2/gen/types.gen.d.ts +0 -4553
  52. package/dist/v2/gen/types.gen.js +0 -2
  53. package/dist/v2/index.d.ts +0 -12
  54. package/dist/v2/index.js +0 -18
  55. package/dist/v2/server.d.ts +0 -27
  56. package/dist/v2/server.js +0 -98
  57. /package/dist/{v2/gen → gen}/core/queryKeySerializer.gen.d.ts +0 -0
  58. /package/dist/{v2/gen → gen}/core/queryKeySerializer.gen.js +0 -0
@@ -1,4553 +0,0 @@
1
- export type ClientOptions = {
2
- baseUrl: `${string}://${string}` | (string & {});
3
- };
4
- export type EventInstallationUpdated = {
5
- type: "installation.updated";
6
- properties: {
7
- version: string;
8
- };
9
- };
10
- export type EventInstallationUpdateAvailable = {
11
- type: "installation.update-available";
12
- properties: {
13
- version: string;
14
- };
15
- };
16
- export type Project = {
17
- id: string;
18
- worktree: string;
19
- vcs?: "git";
20
- name?: string;
21
- icon?: {
22
- url?: string;
23
- color?: string;
24
- };
25
- time: {
26
- created: number;
27
- updated: number;
28
- initialized?: number;
29
- };
30
- sandboxes: Array<string>;
31
- };
32
- export type EventProjectUpdated = {
33
- type: "project.updated";
34
- properties: Project;
35
- };
36
- export type EventServerInstanceDisposed = {
37
- type: "server.instance.disposed";
38
- properties: {
39
- directory: string;
40
- };
41
- };
42
- export type EventLspClientDiagnostics = {
43
- type: "lsp.client.diagnostics";
44
- properties: {
45
- serverID: string;
46
- path: string;
47
- };
48
- };
49
- export type EventLspUpdated = {
50
- type: "lsp.updated";
51
- properties: {
52
- [key: string]: unknown;
53
- };
54
- };
55
- export type FileDiff = {
56
- file: string;
57
- before: string;
58
- after: string;
59
- additions: number;
60
- deletions: number;
61
- };
62
- export type UserMessage = {
63
- id: string;
64
- sessionID: string;
65
- role: "user";
66
- time: {
67
- created: number;
68
- };
69
- summary?: {
70
- title?: string;
71
- body?: string;
72
- diffs: Array<FileDiff>;
73
- };
74
- agent: string;
75
- model: {
76
- providerID: string;
77
- modelID: string;
78
- };
79
- system?: string;
80
- tools?: {
81
- [key: string]: boolean;
82
- };
83
- variant?: string;
84
- };
85
- export type ProviderAuthError = {
86
- name: "ProviderAuthError";
87
- data: {
88
- providerID: string;
89
- message: string;
90
- };
91
- };
92
- export type UnknownError = {
93
- name: "UnknownError";
94
- data: {
95
- message: string;
96
- };
97
- };
98
- export type MessageOutputLengthError = {
99
- name: "MessageOutputLengthError";
100
- data: {
101
- [key: string]: unknown;
102
- };
103
- };
104
- export type MessageAbortedError = {
105
- name: "MessageAbortedError";
106
- data: {
107
- message: string;
108
- };
109
- };
110
- export type ApiError = {
111
- name: "APIError";
112
- data: {
113
- message: string;
114
- statusCode?: number;
115
- isRetryable: boolean;
116
- responseHeaders?: {
117
- [key: string]: string;
118
- };
119
- responseBody?: string;
120
- metadata?: {
121
- [key: string]: string;
122
- };
123
- };
124
- };
125
- export type AssistantMessage = {
126
- id: string;
127
- sessionID: string;
128
- role: "assistant";
129
- time: {
130
- created: number;
131
- completed?: number;
132
- };
133
- error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | ApiError;
134
- parentID: string;
135
- modelID: string;
136
- providerID: string;
137
- mode: string;
138
- agent: string;
139
- path: {
140
- cwd: string;
141
- root: string;
142
- };
143
- summary?: boolean;
144
- cost: number;
145
- tokens: {
146
- input: number;
147
- output: number;
148
- reasoning: number;
149
- cache: {
150
- read: number;
151
- write: number;
152
- };
153
- };
154
- finish?: string;
155
- };
156
- export type Message = UserMessage | AssistantMessage;
157
- export type EventMessageUpdated = {
158
- type: "message.updated";
159
- properties: {
160
- info: Message;
161
- };
162
- };
163
- export type EventMessageRemoved = {
164
- type: "message.removed";
165
- properties: {
166
- sessionID: string;
167
- messageID: string;
168
- };
169
- };
170
- export type TextPart = {
171
- id: string;
172
- sessionID: string;
173
- messageID: string;
174
- type: "text";
175
- text: string;
176
- synthetic?: boolean;
177
- ignored?: boolean;
178
- time?: {
179
- start: number;
180
- end?: number;
181
- };
182
- metadata?: {
183
- [key: string]: unknown;
184
- };
185
- };
186
- export type ReasoningPart = {
187
- id: string;
188
- sessionID: string;
189
- messageID: string;
190
- type: "reasoning";
191
- text: string;
192
- metadata?: {
193
- [key: string]: unknown;
194
- };
195
- time: {
196
- start: number;
197
- end?: number;
198
- };
199
- };
200
- export type FilePartSourceText = {
201
- value: string;
202
- start: number;
203
- end: number;
204
- };
205
- export type FileSource = {
206
- text: FilePartSourceText;
207
- type: "file";
208
- path: string;
209
- };
210
- export type Range = {
211
- start: {
212
- line: number;
213
- character: number;
214
- };
215
- end: {
216
- line: number;
217
- character: number;
218
- };
219
- };
220
- export type SymbolSource = {
221
- text: FilePartSourceText;
222
- type: "symbol";
223
- path: string;
224
- range: Range;
225
- name: string;
226
- kind: number;
227
- };
228
- export type ResourceSource = {
229
- text: FilePartSourceText;
230
- type: "resource";
231
- clientName: string;
232
- uri: string;
233
- };
234
- export type FilePartSource = FileSource | SymbolSource | ResourceSource;
235
- export type FilePart = {
236
- id: string;
237
- sessionID: string;
238
- messageID: string;
239
- type: "file";
240
- mime: string;
241
- filename?: string;
242
- url: string;
243
- source?: FilePartSource;
244
- };
245
- export type ToolStatePending = {
246
- status: "pending";
247
- input: {
248
- [key: string]: unknown;
249
- };
250
- raw: string;
251
- };
252
- export type ToolStateRunning = {
253
- status: "running";
254
- input: {
255
- [key: string]: unknown;
256
- };
257
- title?: string;
258
- metadata?: {
259
- [key: string]: unknown;
260
- };
261
- time: {
262
- start: number;
263
- };
264
- };
265
- export type ToolStateCompleted = {
266
- status: "completed";
267
- input: {
268
- [key: string]: unknown;
269
- };
270
- output: string;
271
- title: string;
272
- metadata: {
273
- [key: string]: unknown;
274
- };
275
- time: {
276
- start: number;
277
- end: number;
278
- compacted?: number;
279
- };
280
- attachments?: Array<FilePart>;
281
- };
282
- export type ToolStateError = {
283
- status: "error";
284
- input: {
285
- [key: string]: unknown;
286
- };
287
- error: string;
288
- metadata?: {
289
- [key: string]: unknown;
290
- };
291
- time: {
292
- start: number;
293
- end: number;
294
- };
295
- };
296
- export type ToolState = ToolStatePending | ToolStateRunning | ToolStateCompleted | ToolStateError;
297
- export type ToolPart = {
298
- id: string;
299
- sessionID: string;
300
- messageID: string;
301
- type: "tool";
302
- callID: string;
303
- tool: string;
304
- state: ToolState;
305
- metadata?: {
306
- [key: string]: unknown;
307
- };
308
- };
309
- export type StepStartPart = {
310
- id: string;
311
- sessionID: string;
312
- messageID: string;
313
- type: "step-start";
314
- snapshot?: string;
315
- };
316
- export type StepFinishPart = {
317
- id: string;
318
- sessionID: string;
319
- messageID: string;
320
- type: "step-finish";
321
- reason: string;
322
- snapshot?: string;
323
- cost: number;
324
- tokens: {
325
- input: number;
326
- output: number;
327
- reasoning: number;
328
- cache: {
329
- read: number;
330
- write: number;
331
- };
332
- };
333
- };
334
- export type SnapshotPart = {
335
- id: string;
336
- sessionID: string;
337
- messageID: string;
338
- type: "snapshot";
339
- snapshot: string;
340
- };
341
- export type PatchPart = {
342
- id: string;
343
- sessionID: string;
344
- messageID: string;
345
- type: "patch";
346
- hash: string;
347
- files: Array<string>;
348
- };
349
- export type AgentPart = {
350
- id: string;
351
- sessionID: string;
352
- messageID: string;
353
- type: "agent";
354
- name: string;
355
- source?: {
356
- value: string;
357
- start: number;
358
- end: number;
359
- };
360
- };
361
- export type RetryPart = {
362
- id: string;
363
- sessionID: string;
364
- messageID: string;
365
- type: "retry";
366
- attempt: number;
367
- error: ApiError;
368
- time: {
369
- created: number;
370
- };
371
- };
372
- export type CompactionPart = {
373
- id: string;
374
- sessionID: string;
375
- messageID: string;
376
- type: "compaction";
377
- auto: boolean;
378
- };
379
- export type Part = TextPart | {
380
- id: string;
381
- sessionID: string;
382
- messageID: string;
383
- type: "subtask";
384
- prompt: string;
385
- description: string;
386
- agent: string;
387
- command?: string;
388
- model?: {
389
- providerID: string;
390
- modelID: string;
391
- };
392
- } | ReasoningPart | FilePart | ToolPart | StepStartPart | StepFinishPart | SnapshotPart | PatchPart | AgentPart | RetryPart | CompactionPart;
393
- export type EventMessagePartUpdated = {
394
- type: "message.part.updated";
395
- properties: {
396
- part: Part;
397
- delta?: string;
398
- };
399
- };
400
- export type EventMessagePartRemoved = {
401
- type: "message.part.removed";
402
- properties: {
403
- sessionID: string;
404
- messageID: string;
405
- partID: string;
406
- };
407
- };
408
- export type PermissionRequest = {
409
- id: string;
410
- sessionID: string;
411
- permission: string;
412
- patterns: Array<string>;
413
- metadata: {
414
- [key: string]: unknown;
415
- };
416
- always: Array<string>;
417
- tool?: {
418
- messageID: string;
419
- callID: string;
420
- };
421
- };
422
- export type EventPermissionAsked = {
423
- type: "permission.asked";
424
- properties: PermissionRequest;
425
- };
426
- export type EventPermissionReplied = {
427
- type: "permission.replied";
428
- properties: {
429
- sessionID: string;
430
- requestID: string;
431
- reply: "once" | "always" | "reject";
432
- };
433
- };
434
- export type QuestionOption = {
435
- /**
436
- * Display text (1-5 words, concise)
437
- */
438
- label: string;
439
- /**
440
- * Explanation of choice
441
- */
442
- description: string;
443
- };
444
- export type QuestionInfo = {
445
- /**
446
- * Complete question
447
- */
448
- question: string;
449
- /**
450
- * Very short label (max 12 chars)
451
- */
452
- header: string;
453
- /**
454
- * Available choices
455
- */
456
- options: Array<QuestionOption>;
457
- /**
458
- * Allow selecting multiple choices
459
- */
460
- multiple?: boolean;
461
- };
462
- export type QuestionRequest = {
463
- id: string;
464
- sessionID: string;
465
- /**
466
- * Questions to ask
467
- */
468
- questions: Array<QuestionInfo>;
469
- tool?: {
470
- messageID: string;
471
- callID: string;
472
- };
473
- };
474
- export type EventQuestionAsked = {
475
- type: "question.asked";
476
- properties: QuestionRequest;
477
- };
478
- export type QuestionAnswer = Array<string>;
479
- export type EventQuestionReplied = {
480
- type: "question.replied";
481
- properties: {
482
- sessionID: string;
483
- requestID: string;
484
- answers: Array<QuestionAnswer>;
485
- };
486
- };
487
- export type EventQuestionRejected = {
488
- type: "question.rejected";
489
- properties: {
490
- sessionID: string;
491
- requestID: string;
492
- };
493
- };
494
- export type SessionStatus = {
495
- type: "idle";
496
- } | {
497
- type: "retry";
498
- attempt: number;
499
- message: string;
500
- next: number;
501
- } | {
502
- type: "busy";
503
- };
504
- export type EventSessionStatus = {
505
- type: "session.status";
506
- properties: {
507
- sessionID: string;
508
- status: SessionStatus;
509
- };
510
- };
511
- export type EventSessionIdle = {
512
- type: "session.idle";
513
- properties: {
514
- sessionID: string;
515
- };
516
- };
517
- export type EventSessionCompacted = {
518
- type: "session.compacted";
519
- properties: {
520
- sessionID: string;
521
- };
522
- };
523
- export type EventFileEdited = {
524
- type: "file.edited";
525
- properties: {
526
- file: string;
527
- };
528
- };
529
- export type CortexTask = {
530
- id: string;
531
- sessionID: string;
532
- parentSessionID: string;
533
- parentMessageID: string;
534
- description: string;
535
- prompt: string;
536
- agent: string;
537
- category?: string;
538
- status: "pending" | "running" | "completed" | "error" | "cancelled";
539
- startedAt: number;
540
- completedAt?: number;
541
- result?: string;
542
- error?: string;
543
- progress?: {
544
- toolCalls: number;
545
- lastTool?: string;
546
- lastUpdate: number;
547
- lastMessage?: string;
548
- };
549
- };
550
- export type EventCortexTaskCreated = {
551
- type: "cortex.task.created";
552
- properties: {
553
- task: CortexTask;
554
- };
555
- };
556
- export type EventCortexTaskCompleted = {
557
- type: "cortex.task.completed";
558
- properties: {
559
- task: CortexTask;
560
- };
561
- };
562
- export type EventCortexTasksUpdated = {
563
- type: "cortex.tasks.updated";
564
- properties: {
565
- tasks: Array<CortexTask>;
566
- };
567
- };
568
- export type Todo = {
569
- /**
570
- * Brief description of the task
571
- */
572
- content: string;
573
- /**
574
- * Current status of the task: pending, in_progress, completed, cancelled
575
- */
576
- status: string;
577
- /**
578
- * Priority level of the task: high, medium, low
579
- */
580
- priority: string;
581
- /**
582
- * Unique identifier for the todo item
583
- */
584
- id: string;
585
- };
586
- export type EventTodoUpdated = {
587
- type: "todo.updated";
588
- properties: {
589
- sessionID: string;
590
- todos: Array<Todo>;
591
- };
592
- };
593
- export type EventTuiPromptAppend = {
594
- type: "tui.prompt.append";
595
- properties: {
596
- text: string;
597
- };
598
- };
599
- export type EventTuiCommandExecute = {
600
- type: "tui.command.execute";
601
- properties: {
602
- 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;
603
- };
604
- };
605
- export type EventTuiToastShow = {
606
- type: "tui.toast.show";
607
- properties: {
608
- title?: string;
609
- message: string;
610
- variant: "info" | "success" | "warning" | "error";
611
- /**
612
- * Duration in milliseconds
613
- */
614
- duration?: number;
615
- };
616
- };
617
- export type EventTuiSessionSelect = {
618
- type: "tui.session.select";
619
- properties: {
620
- /**
621
- * Session ID to navigate to
622
- */
623
- sessionID: string;
624
- };
625
- };
626
- export type EventMcpToolsChanged = {
627
- type: "mcp.tools.changed";
628
- properties: {
629
- server: string;
630
- };
631
- };
632
- export type EventCommandExecuted = {
633
- type: "command.executed";
634
- properties: {
635
- name: string;
636
- sessionID: string;
637
- arguments: string;
638
- messageID: string;
639
- };
640
- };
641
- export type PermissionAction = "allow" | "deny" | "ask";
642
- export type PermissionRule = {
643
- permission: string;
644
- pattern: string;
645
- action: PermissionAction;
646
- };
647
- export type PermissionRuleset = Array<PermissionRule>;
648
- export type Session = {
649
- id: string;
650
- projectID: string;
651
- directory: string;
652
- parentID?: string;
653
- summary?: {
654
- additions: number;
655
- deletions: number;
656
- files: number;
657
- diffs?: Array<FileDiff>;
658
- };
659
- share?: {
660
- url: string;
661
- };
662
- title: string;
663
- version: string;
664
- time: {
665
- created: number;
666
- updated: number;
667
- compacting?: number;
668
- archived?: number;
669
- };
670
- permission?: PermissionRuleset;
671
- revert?: {
672
- messageID: string;
673
- partID?: string;
674
- snapshot?: string;
675
- diff?: string;
676
- };
677
- planState?: {
678
- filePath: string;
679
- };
680
- currentAgent?: string;
681
- previousAgent?: string;
682
- };
683
- export type EventSessionCreated = {
684
- type: "session.created";
685
- properties: {
686
- info: Session;
687
- };
688
- };
689
- export type EventSessionUpdated = {
690
- type: "session.updated";
691
- properties: {
692
- info: Session;
693
- };
694
- };
695
- export type EventSessionDeleted = {
696
- type: "session.deleted";
697
- properties: {
698
- info: Session;
699
- };
700
- };
701
- export type EventSessionDiff = {
702
- type: "session.diff";
703
- properties: {
704
- sessionID: string;
705
- diff: Array<FileDiff>;
706
- };
707
- };
708
- export type EventSessionError = {
709
- type: "session.error";
710
- properties: {
711
- sessionID?: string;
712
- error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | ApiError;
713
- };
714
- };
715
- export type EventFileWatcherUpdated = {
716
- type: "file.watcher.updated";
717
- properties: {
718
- file: string;
719
- event: "add" | "change" | "unlink";
720
- };
721
- };
722
- export type EventVcsBranchUpdated = {
723
- type: "vcs.branch.updated";
724
- properties: {
725
- branch?: string;
726
- };
727
- };
728
- export type Pty = {
729
- id: string;
730
- title: string;
731
- command: string;
732
- args: Array<string>;
733
- cwd: string;
734
- status: "running" | "exited";
735
- pid: number;
736
- };
737
- export type EventPtyCreated = {
738
- type: "pty.created";
739
- properties: {
740
- info: Pty;
741
- };
742
- };
743
- export type EventPtyUpdated = {
744
- type: "pty.updated";
745
- properties: {
746
- info: Pty;
747
- };
748
- };
749
- export type EventPtyExited = {
750
- type: "pty.exited";
751
- properties: {
752
- id: string;
753
- exitCode: number;
754
- };
755
- };
756
- export type EventPtyDeleted = {
757
- type: "pty.deleted";
758
- properties: {
759
- id: string;
760
- };
761
- };
762
- export type Feedback = {
763
- id: string;
764
- sessionID: string;
765
- userMessageID: string;
766
- assistantMessageID: string;
767
- rating: "up" | "down";
768
- time: {
769
- created: number;
770
- };
771
- };
772
- export type EventFeedbackUpdated = {
773
- type: "feedback.updated";
774
- properties: {
775
- feedback: Feedback;
776
- };
777
- };
778
- export type EventFeedbackRemoved = {
779
- type: "feedback.removed";
780
- properties: {
781
- sessionID: string;
782
- assistantMessageID: string;
783
- };
784
- };
785
- export type EventServerConnected = {
786
- type: "server.connected";
787
- properties: {
788
- [key: string]: unknown;
789
- };
790
- };
791
- export type EventGlobalDisposed = {
792
- type: "global.disposed";
793
- properties: {
794
- [key: string]: unknown;
795
- };
796
- };
797
- export type Event = EventInstallationUpdated | EventInstallationUpdateAvailable | EventProjectUpdated | EventServerInstanceDisposed | EventLspClientDiagnostics | EventLspUpdated | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventPermissionAsked | EventPermissionReplied | EventQuestionAsked | EventQuestionReplied | EventQuestionRejected | EventSessionStatus | EventSessionIdle | EventSessionCompacted | EventFileEdited | EventCortexTaskCreated | EventCortexTaskCompleted | EventCortexTasksUpdated | EventTodoUpdated | EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect | EventMcpToolsChanged | EventCommandExecuted | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventSessionDiff | EventSessionError | EventFileWatcherUpdated | EventVcsBranchUpdated | EventPtyCreated | EventPtyUpdated | EventPtyExited | EventPtyDeleted | EventFeedbackUpdated | EventFeedbackRemoved | EventServerConnected | EventGlobalDisposed;
798
- export type GlobalEvent = {
799
- directory: string;
800
- payload: Event;
801
- };
802
- export type BadRequestError = {
803
- data: unknown;
804
- errors: Array<{
805
- [key: string]: unknown;
806
- }>;
807
- success: false;
808
- };
809
- export type NotFoundError = {
810
- name: "NotFoundError";
811
- data: {
812
- message: string;
813
- };
814
- };
815
- /**
816
- * Custom keybind configurations
817
- */
818
- export type KeybindsConfig = {
819
- /**
820
- * Leader key for keybind combinations
821
- */
822
- leader?: string;
823
- /**
824
- * Exit the application
825
- */
826
- app_exit?: string;
827
- /**
828
- * Open external editor
829
- */
830
- editor_open?: string;
831
- /**
832
- * List available themes
833
- */
834
- theme_list?: string;
835
- /**
836
- * Toggle sidebar
837
- */
838
- sidebar_toggle?: string;
839
- /**
840
- * Toggle session scrollbar
841
- */
842
- scrollbar_toggle?: string;
843
- /**
844
- * Toggle username visibility
845
- */
846
- username_toggle?: string;
847
- /**
848
- * View status
849
- */
850
- status_view?: string;
851
- /**
852
- * Export session to editor
853
- */
854
- session_export?: string;
855
- /**
856
- * Create a new session
857
- */
858
- session_new?: string;
859
- /**
860
- * List all sessions
861
- */
862
- session_list?: string;
863
- /**
864
- * Show session timeline
865
- */
866
- session_timeline?: string;
867
- /**
868
- * Fork session from message
869
- */
870
- session_fork?: string;
871
- /**
872
- * Rename session
873
- */
874
- session_rename?: string;
875
- /**
876
- * Share current session
877
- */
878
- session_share?: string;
879
- /**
880
- * Unshare current session
881
- */
882
- session_unshare?: string;
883
- /**
884
- * Interrupt current session
885
- */
886
- session_interrupt?: string;
887
- /**
888
- * Compact the session
889
- */
890
- session_compact?: string;
891
- /**
892
- * Scroll messages up by one page
893
- */
894
- messages_page_up?: string;
895
- /**
896
- * Scroll messages down by one page
897
- */
898
- messages_page_down?: string;
899
- /**
900
- * Scroll messages up by half page
901
- */
902
- messages_half_page_up?: string;
903
- /**
904
- * Scroll messages down by half page
905
- */
906
- messages_half_page_down?: string;
907
- /**
908
- * Navigate to first message
909
- */
910
- messages_first?: string;
911
- /**
912
- * Navigate to last message
913
- */
914
- messages_last?: string;
915
- /**
916
- * Navigate to next message
917
- */
918
- messages_next?: string;
919
- /**
920
- * Navigate to previous message
921
- */
922
- messages_previous?: string;
923
- /**
924
- * Navigate to last user message
925
- */
926
- messages_last_user?: string;
927
- /**
928
- * Copy message
929
- */
930
- messages_copy?: string;
931
- /**
932
- * Undo message
933
- */
934
- messages_undo?: string;
935
- /**
936
- * Redo message
937
- */
938
- messages_redo?: string;
939
- /**
940
- * Toggle code block concealment in messages
941
- */
942
- messages_toggle_conceal?: string;
943
- /**
944
- * Toggle tool details visibility
945
- */
946
- tool_details?: string;
947
- /**
948
- * List available models
949
- */
950
- model_list?: string;
951
- /**
952
- * Next recently used model
953
- */
954
- model_cycle_recent?: string;
955
- /**
956
- * Previous recently used model
957
- */
958
- model_cycle_recent_reverse?: string;
959
- /**
960
- * Next favorite model
961
- */
962
- model_cycle_favorite?: string;
963
- /**
964
- * Previous favorite model
965
- */
966
- model_cycle_favorite_reverse?: string;
967
- /**
968
- * List available commands
969
- */
970
- command_list?: string;
971
- /**
972
- * List agents
973
- */
974
- agent_list?: string;
975
- /**
976
- * Next agent
977
- */
978
- agent_cycle?: string;
979
- /**
980
- * Previous agent
981
- */
982
- agent_cycle_reverse?: string;
983
- /**
984
- * Cycle model variants
985
- */
986
- variant_cycle?: string;
987
- /**
988
- * Clear input field
989
- */
990
- input_clear?: string;
991
- /**
992
- * Paste from clipboard
993
- */
994
- input_paste?: string;
995
- /**
996
- * Submit input
997
- */
998
- input_submit?: string;
999
- /**
1000
- * Insert newline in input
1001
- */
1002
- input_newline?: string;
1003
- /**
1004
- * Move cursor left in input
1005
- */
1006
- input_move_left?: string;
1007
- /**
1008
- * Move cursor right in input
1009
- */
1010
- input_move_right?: string;
1011
- /**
1012
- * Move cursor up in input
1013
- */
1014
- input_move_up?: string;
1015
- /**
1016
- * Move cursor down in input
1017
- */
1018
- input_move_down?: string;
1019
- /**
1020
- * Select left in input
1021
- */
1022
- input_select_left?: string;
1023
- /**
1024
- * Select right in input
1025
- */
1026
- input_select_right?: string;
1027
- /**
1028
- * Select up in input
1029
- */
1030
- input_select_up?: string;
1031
- /**
1032
- * Select down in input
1033
- */
1034
- input_select_down?: string;
1035
- /**
1036
- * Move to start of line in input
1037
- */
1038
- input_line_home?: string;
1039
- /**
1040
- * Move to end of line in input
1041
- */
1042
- input_line_end?: string;
1043
- /**
1044
- * Select to start of line in input
1045
- */
1046
- input_select_line_home?: string;
1047
- /**
1048
- * Select to end of line in input
1049
- */
1050
- input_select_line_end?: string;
1051
- /**
1052
- * Move to start of visual line in input
1053
- */
1054
- input_visual_line_home?: string;
1055
- /**
1056
- * Move to end of visual line in input
1057
- */
1058
- input_visual_line_end?: string;
1059
- /**
1060
- * Select to start of visual line in input
1061
- */
1062
- input_select_visual_line_home?: string;
1063
- /**
1064
- * Select to end of visual line in input
1065
- */
1066
- input_select_visual_line_end?: string;
1067
- /**
1068
- * Move to start of buffer in input
1069
- */
1070
- input_buffer_home?: string;
1071
- /**
1072
- * Move to end of buffer in input
1073
- */
1074
- input_buffer_end?: string;
1075
- /**
1076
- * Select to start of buffer in input
1077
- */
1078
- input_select_buffer_home?: string;
1079
- /**
1080
- * Select to end of buffer in input
1081
- */
1082
- input_select_buffer_end?: string;
1083
- /**
1084
- * Delete line in input
1085
- */
1086
- input_delete_line?: string;
1087
- /**
1088
- * Delete to end of line in input
1089
- */
1090
- input_delete_to_line_end?: string;
1091
- /**
1092
- * Delete to start of line in input
1093
- */
1094
- input_delete_to_line_start?: string;
1095
- /**
1096
- * Backspace in input
1097
- */
1098
- input_backspace?: string;
1099
- /**
1100
- * Delete character in input
1101
- */
1102
- input_delete?: string;
1103
- /**
1104
- * Undo in input
1105
- */
1106
- input_undo?: string;
1107
- /**
1108
- * Redo in input
1109
- */
1110
- input_redo?: string;
1111
- /**
1112
- * Move word forward in input
1113
- */
1114
- input_word_forward?: string;
1115
- /**
1116
- * Move word backward in input
1117
- */
1118
- input_word_backward?: string;
1119
- /**
1120
- * Select word forward in input
1121
- */
1122
- input_select_word_forward?: string;
1123
- /**
1124
- * Select word backward in input
1125
- */
1126
- input_select_word_backward?: string;
1127
- /**
1128
- * Delete word forward in input
1129
- */
1130
- input_delete_word_forward?: string;
1131
- /**
1132
- * Delete word backward in input
1133
- */
1134
- input_delete_word_backward?: string;
1135
- /**
1136
- * Previous history item
1137
- */
1138
- history_previous?: string;
1139
- /**
1140
- * Next history item
1141
- */
1142
- history_next?: string;
1143
- /**
1144
- * Next child session
1145
- */
1146
- session_child_cycle?: string;
1147
- /**
1148
- * Previous child session
1149
- */
1150
- session_child_cycle_reverse?: string;
1151
- /**
1152
- * Go to parent session
1153
- */
1154
- session_parent?: string;
1155
- /**
1156
- * Suspend terminal
1157
- */
1158
- terminal_suspend?: string;
1159
- /**
1160
- * Toggle terminal title
1161
- */
1162
- terminal_title_toggle?: string;
1163
- /**
1164
- * Toggle tips on home screen
1165
- */
1166
- tips_toggle?: string;
1167
- };
1168
- /**
1169
- * Log level
1170
- */
1171
- export type LogLevel = "DEBUG" | "INFO" | "WARN" | "ERROR";
1172
- /**
1173
- * Server configuration for synergy serve and web commands
1174
- */
1175
- export type ServerConfig = {
1176
- /**
1177
- * Port to listen on
1178
- */
1179
- port?: number;
1180
- /**
1181
- * Hostname to listen on
1182
- */
1183
- hostname?: string;
1184
- /**
1185
- * Enable mDNS service discovery
1186
- */
1187
- mdns?: boolean;
1188
- /**
1189
- * Additional domains to allow for CORS
1190
- */
1191
- cors?: Array<string>;
1192
- };
1193
- export type PermissionActionConfig = "ask" | "allow" | "deny";
1194
- export type PermissionObjectConfig = {
1195
- [key: string]: PermissionActionConfig;
1196
- };
1197
- export type PermissionRuleConfig = PermissionActionConfig | PermissionObjectConfig;
1198
- export type PermissionConfig = {
1199
- __originalKeys?: Array<string>;
1200
- read?: PermissionRuleConfig;
1201
- edit?: PermissionRuleConfig;
1202
- glob?: PermissionRuleConfig;
1203
- grep?: PermissionRuleConfig;
1204
- list?: PermissionRuleConfig;
1205
- bash?: PermissionRuleConfig;
1206
- task?: PermissionRuleConfig;
1207
- external_directory?: PermissionRuleConfig;
1208
- todowrite?: PermissionActionConfig;
1209
- todoread?: PermissionActionConfig;
1210
- question?: PermissionActionConfig;
1211
- webfetch?: PermissionActionConfig;
1212
- websearch?: PermissionActionConfig;
1213
- codesearch?: PermissionActionConfig;
1214
- download?: PermissionActionConfig;
1215
- lsp?: PermissionRuleConfig;
1216
- doom_loop?: PermissionActionConfig;
1217
- [key: string]: PermissionRuleConfig | Array<string> | PermissionActionConfig | undefined;
1218
- } | PermissionActionConfig;
1219
- export type AgentConfig = {
1220
- model?: string;
1221
- temperature?: number;
1222
- top_p?: number;
1223
- prompt?: string;
1224
- /**
1225
- * @deprecated Use 'permission' field instead
1226
- */
1227
- tools?: {
1228
- [key: string]: boolean;
1229
- };
1230
- disable?: boolean;
1231
- /**
1232
- * Description of when to use the agent
1233
- */
1234
- description?: string;
1235
- mode?: "subagent" | "primary" | "all";
1236
- /**
1237
- * Hide this subagent from the @ autocomplete menu (default: false, only applies to mode: subagent)
1238
- */
1239
- hidden?: boolean;
1240
- options?: {
1241
- [key: string]: unknown;
1242
- };
1243
- /**
1244
- * Hex color code for the agent (e.g., #FF5733)
1245
- */
1246
- color?: string;
1247
- /**
1248
- * Maximum number of agentic iterations before forcing text-only response
1249
- */
1250
- steps?: number;
1251
- /**
1252
- * @deprecated Use 'steps' field instead.
1253
- */
1254
- maxSteps?: number;
1255
- permission?: PermissionConfig;
1256
- [key: string]: unknown | string | number | {
1257
- [key: string]: boolean;
1258
- } | boolean | "subagent" | "primary" | "all" | {
1259
- [key: string]: unknown;
1260
- } | string | number | PermissionConfig | undefined;
1261
- };
1262
- export type ProviderConfig = {
1263
- api?: string;
1264
- name?: string;
1265
- env?: Array<string>;
1266
- id?: string;
1267
- npm?: string;
1268
- models?: {
1269
- [key: string]: {
1270
- id?: string;
1271
- name?: string;
1272
- family?: string;
1273
- release_date?: string;
1274
- attachment?: boolean;
1275
- reasoning?: boolean;
1276
- temperature?: boolean;
1277
- tool_call?: boolean;
1278
- interleaved?: true | {
1279
- field: "reasoning_content" | "reasoning_details";
1280
- };
1281
- cost?: {
1282
- input: number;
1283
- output: number;
1284
- cache_read?: number;
1285
- cache_write?: number;
1286
- context_over_200k?: {
1287
- input: number;
1288
- output: number;
1289
- cache_read?: number;
1290
- cache_write?: number;
1291
- };
1292
- };
1293
- limit?: {
1294
- context: number;
1295
- output: number;
1296
- };
1297
- modalities?: {
1298
- input: Array<"text" | "audio" | "image" | "video" | "pdf">;
1299
- output: Array<"text" | "audio" | "image" | "video" | "pdf">;
1300
- };
1301
- experimental?: boolean;
1302
- status?: "alpha" | "beta" | "deprecated";
1303
- options?: {
1304
- [key: string]: unknown;
1305
- };
1306
- headers?: {
1307
- [key: string]: string;
1308
- };
1309
- provider?: {
1310
- npm: string;
1311
- };
1312
- /**
1313
- * Variant-specific configuration
1314
- */
1315
- variants?: {
1316
- [key: string]: {
1317
- /**
1318
- * Disable this variant for the model
1319
- */
1320
- disabled?: boolean;
1321
- [key: string]: unknown | boolean | undefined;
1322
- };
1323
- };
1324
- };
1325
- };
1326
- whitelist?: Array<string>;
1327
- blacklist?: Array<string>;
1328
- options?: {
1329
- apiKey?: string;
1330
- baseURL?: string;
1331
- /**
1332
- * GitHub Enterprise URL for copilot authentication
1333
- */
1334
- enterpriseUrl?: string;
1335
- /**
1336
- * Enable promptCacheKey for this provider (default false)
1337
- */
1338
- setCacheKey?: boolean;
1339
- /**
1340
- * Timeout in milliseconds for requests to this provider. Default is 300000 (5 minutes). Set to false to disable timeout.
1341
- */
1342
- timeout?: number | false;
1343
- [key: string]: unknown | string | boolean | number | false | undefined;
1344
- };
1345
- };
1346
- export type McpLocalConfig = {
1347
- /**
1348
- * Type of MCP server connection
1349
- */
1350
- type: "local";
1351
- /**
1352
- * Command and arguments to run the MCP server
1353
- */
1354
- command: Array<string>;
1355
- /**
1356
- * Environment variables to set when running the MCP server
1357
- */
1358
- environment?: {
1359
- [key: string]: string;
1360
- };
1361
- /**
1362
- * Enable or disable the MCP server on startup
1363
- */
1364
- enabled?: boolean;
1365
- /**
1366
- * Timeout in ms for fetching tools from the MCP server. Defaults to 5000 (5 seconds) if not specified.
1367
- */
1368
- timeout?: number;
1369
- };
1370
- export type McpOAuthConfig = {
1371
- /**
1372
- * OAuth client ID. If not provided, dynamic client registration (RFC 7591) will be attempted.
1373
- */
1374
- clientId?: string;
1375
- /**
1376
- * OAuth client secret (if required by the authorization server)
1377
- */
1378
- clientSecret?: string;
1379
- /**
1380
- * OAuth scopes to request during authorization
1381
- */
1382
- scope?: string;
1383
- };
1384
- export type McpRemoteConfig = {
1385
- /**
1386
- * Type of MCP server connection
1387
- */
1388
- type: "remote";
1389
- /**
1390
- * URL of the remote MCP server
1391
- */
1392
- url: string;
1393
- /**
1394
- * Enable or disable the MCP server on startup
1395
- */
1396
- enabled?: boolean;
1397
- /**
1398
- * Headers to send with the request
1399
- */
1400
- headers?: {
1401
- [key: string]: string;
1402
- };
1403
- /**
1404
- * OAuth authentication configuration for the MCP server. Set to false to disable OAuth auto-detection.
1405
- */
1406
- oauth?: McpOAuthConfig | false;
1407
- /**
1408
- * Timeout in ms for fetching tools from the MCP server. Defaults to 5000 (5 seconds) if not specified.
1409
- */
1410
- timeout?: number;
1411
- };
1412
- /**
1413
- * @deprecated Always uses stretch layout.
1414
- */
1415
- export type LayoutConfig = "auto" | "stretch";
1416
- export type CategoryConfig = {
1417
- /**
1418
- * Model to use for this category (e.g., 'sii-openai/GPT-5.2')
1419
- */
1420
- model?: string;
1421
- /**
1422
- * Temperature override for this category
1423
- */
1424
- temperature?: number;
1425
- /**
1426
- * Additional prompt context to inject for this category
1427
- */
1428
- promptAppend?: string;
1429
- /**
1430
- * Description of when to use this category
1431
- */
1432
- description?: string;
1433
- };
1434
- export type Config = {
1435
- /**
1436
- * JSON schema reference for configuration validation
1437
- */
1438
- $schema?: string;
1439
- /**
1440
- * Theme name to use for the interface
1441
- */
1442
- theme?: string;
1443
- keybinds?: KeybindsConfig;
1444
- logLevel?: LogLevel;
1445
- /**
1446
- * TUI specific settings
1447
- */
1448
- tui?: {
1449
- /**
1450
- * TUI scroll speed
1451
- */
1452
- scroll_speed?: number;
1453
- /**
1454
- * Scroll acceleration settings
1455
- */
1456
- scroll_acceleration?: {
1457
- /**
1458
- * Enable scroll acceleration
1459
- */
1460
- enabled: boolean;
1461
- };
1462
- /**
1463
- * Control diff rendering style: 'auto' adapts to terminal width, 'stacked' always shows single column
1464
- */
1465
- diff_style?: "auto" | "stacked";
1466
- /**
1467
- * Sound notification settings for user attention events
1468
- */
1469
- notification?: {
1470
- /**
1471
- * Enable sound notifications when user input is required
1472
- */
1473
- enabled?: boolean;
1474
- /**
1475
- * Play sound when agent asks a question (default: true)
1476
- */
1477
- on_question?: boolean;
1478
- /**
1479
- * Play sound when tool needs approval (default: true)
1480
- */
1481
- on_permission?: boolean;
1482
- /**
1483
- * Play sound when task completes (default: true)
1484
- */
1485
- on_complete?: boolean;
1486
- };
1487
- };
1488
- server?: ServerConfig;
1489
- /**
1490
- * Command configuration, see https://synergy.ai/docs/commands
1491
- */
1492
- command?: {
1493
- [key: string]: {
1494
- template: string;
1495
- description?: string;
1496
- agent?: string;
1497
- model?: string;
1498
- subtask?: boolean;
1499
- };
1500
- };
1501
- watcher?: {
1502
- ignore?: Array<string>;
1503
- };
1504
- plugin?: Array<string>;
1505
- snapshot?: boolean;
1506
- /**
1507
- * Control sharing behavior:'manual' allows manual sharing via commands, 'auto' enables automatic sharing, 'disabled' disables all sharing
1508
- */
1509
- share?: "manual" | "auto" | "disabled";
1510
- /**
1511
- * @deprecated Use 'share' field instead. Share newly created sessions automatically
1512
- */
1513
- autoshare?: boolean;
1514
- /**
1515
- * Automatically update to the latest version. Set to true to auto-update, false to disable, or 'notify' to show update notifications
1516
- */
1517
- autoupdate?: boolean | "notify";
1518
- /**
1519
- * Disable providers that are loaded automatically
1520
- */
1521
- disabled_providers?: Array<string>;
1522
- /**
1523
- * When set, ONLY these providers will be enabled. All other providers will be ignored
1524
- */
1525
- enabled_providers?: Array<string>;
1526
- /**
1527
- * Model to use in the format of provider/model, eg anthropic/claude-2
1528
- */
1529
- model?: string;
1530
- /**
1531
- * Small model to use for tasks like title generation in the format of provider/model
1532
- */
1533
- small_model?: string;
1534
- /**
1535
- * Default agent to use when none is specified. Must be a primary agent. Falls back to 'master' if not set or if the specified agent is invalid.
1536
- */
1537
- default_agent?: string;
1538
- /**
1539
- * Custom username to display in conversations instead of system username
1540
- */
1541
- username?: string;
1542
- /**
1543
- * @deprecated Use `agent` field instead.
1544
- */
1545
- mode?: {
1546
- master?: AgentConfig;
1547
- plan?: AgentConfig;
1548
- [key: string]: AgentConfig | undefined;
1549
- };
1550
- /**
1551
- * Agent configuration, see https://synergy.ai/docs/agent
1552
- */
1553
- agent?: {
1554
- plan?: AgentConfig;
1555
- master?: AgentConfig;
1556
- general?: AgentConfig;
1557
- explore?: AgentConfig;
1558
- title?: AgentConfig;
1559
- summary?: AgentConfig;
1560
- compaction?: AgentConfig;
1561
- [key: string]: AgentConfig | undefined;
1562
- };
1563
- /**
1564
- * Custom provider configurations and model overrides
1565
- */
1566
- provider?: {
1567
- [key: string]: ProviderConfig;
1568
- };
1569
- /**
1570
- * MCP (Model Context Protocol) server configurations
1571
- */
1572
- mcp?: {
1573
- [key: string]: McpLocalConfig | McpRemoteConfig | {
1574
- enabled: boolean;
1575
- };
1576
- };
1577
- formatter?: false | {
1578
- [key: string]: {
1579
- disabled?: boolean;
1580
- command?: Array<string>;
1581
- environment?: {
1582
- [key: string]: string;
1583
- };
1584
- extensions?: Array<string>;
1585
- };
1586
- };
1587
- lsp?: false | {
1588
- [key: string]: {
1589
- disabled: true;
1590
- } | {
1591
- command: Array<string>;
1592
- extensions?: Array<string>;
1593
- disabled?: boolean;
1594
- env?: {
1595
- [key: string]: string;
1596
- };
1597
- initialization?: {
1598
- [key: string]: unknown;
1599
- };
1600
- };
1601
- };
1602
- /**
1603
- * Additional instruction files or patterns to include
1604
- */
1605
- instructions?: Array<string>;
1606
- layout?: LayoutConfig;
1607
- permission?: PermissionConfig;
1608
- tools?: {
1609
- [key: string]: boolean;
1610
- };
1611
- enterprise?: {
1612
- /**
1613
- * Enterprise URL
1614
- */
1615
- url?: string;
1616
- };
1617
- compaction?: {
1618
- /**
1619
- * Enable automatic compaction when context is full (default: true)
1620
- */
1621
- auto?: boolean;
1622
- /**
1623
- * Enable pruning of old tool outputs (default: true)
1624
- */
1625
- prune?: boolean;
1626
- };
1627
- /**
1628
- * Control system-level interactions. When false, skips agent switch confirmations and plan execution prompts. Useful for non-interactive/CI environments.
1629
- */
1630
- interaction?: boolean;
1631
- experimental?: {
1632
- hook?: {
1633
- file_edited?: {
1634
- [key: string]: Array<{
1635
- command: Array<string>;
1636
- environment?: {
1637
- [key: string]: string;
1638
- };
1639
- }>;
1640
- };
1641
- session_completed?: Array<{
1642
- command: Array<string>;
1643
- environment?: {
1644
- [key: string]: string;
1645
- };
1646
- }>;
1647
- };
1648
- /**
1649
- * Number of retries for chat completions on failure
1650
- */
1651
- chatMaxRetries?: number;
1652
- disable_paste_summary?: boolean;
1653
- /**
1654
- * Enable the batch tool
1655
- */
1656
- batch_tool?: boolean;
1657
- /**
1658
- * Enable OpenTelemetry spans for AI SDK calls (using the 'experimental_telemetry' flag)
1659
- */
1660
- openTelemetry?: boolean;
1661
- /**
1662
- * Tools that should only be available to primary agents.
1663
- */
1664
- primary_tools?: Array<string>;
1665
- /**
1666
- * Continue the agent loop when a tool call is denied
1667
- */
1668
- continue_loop_on_deny?: boolean;
1669
- /**
1670
- * Timeout in milliseconds for model context protocol (MCP) requests
1671
- */
1672
- mcp_timeout?: number;
1673
- };
1674
- /**
1675
- * Custom category configurations for background tasks. Categories define model and prompt presets.
1676
- */
1677
- category?: {
1678
- [key: string]: CategoryConfig;
1679
- };
1680
- };
1681
- export type ToolIds = Array<string>;
1682
- export type ToolListItem = {
1683
- id: string;
1684
- description: string;
1685
- parameters: unknown;
1686
- };
1687
- export type ToolList = Array<ToolListItem>;
1688
- export type Path = {
1689
- home: string;
1690
- state: string;
1691
- config: string;
1692
- worktree: string;
1693
- directory: string;
1694
- };
1695
- export type Worktree = {
1696
- name: string;
1697
- branch: string;
1698
- directory: string;
1699
- };
1700
- export type WorktreeCreateInput = {
1701
- name?: string;
1702
- startCommand?: string;
1703
- };
1704
- export type VcsInfo = {
1705
- branch: string;
1706
- };
1707
- export type TextPartInput = {
1708
- id?: string;
1709
- type: "text";
1710
- text: string;
1711
- synthetic?: boolean;
1712
- ignored?: boolean;
1713
- time?: {
1714
- start: number;
1715
- end?: number;
1716
- };
1717
- metadata?: {
1718
- [key: string]: unknown;
1719
- };
1720
- };
1721
- export type FilePartInput = {
1722
- id?: string;
1723
- type: "file";
1724
- mime: string;
1725
- filename?: string;
1726
- url: string;
1727
- source?: FilePartSource;
1728
- };
1729
- export type AgentPartInput = {
1730
- id?: string;
1731
- type: "agent";
1732
- name: string;
1733
- source?: {
1734
- value: string;
1735
- start: number;
1736
- end: number;
1737
- };
1738
- };
1739
- export type SubtaskPartInput = {
1740
- id?: string;
1741
- type: "subtask";
1742
- prompt: string;
1743
- description: string;
1744
- agent: string;
1745
- command?: string;
1746
- model?: {
1747
- providerID: string;
1748
- modelID: string;
1749
- };
1750
- };
1751
- export type Command = {
1752
- name: string;
1753
- description?: string;
1754
- agent?: string;
1755
- model?: string;
1756
- mcp?: boolean;
1757
- template: string;
1758
- subtask?: boolean;
1759
- hints: Array<string>;
1760
- };
1761
- export type Model = {
1762
- id: string;
1763
- providerID: string;
1764
- api: {
1765
- id: string;
1766
- url: string;
1767
- npm: string;
1768
- };
1769
- name: string;
1770
- family?: string;
1771
- capabilities: {
1772
- temperature: boolean;
1773
- reasoning: boolean;
1774
- attachment: boolean;
1775
- toolcall: boolean;
1776
- input: {
1777
- text: boolean;
1778
- audio: boolean;
1779
- image: boolean;
1780
- video: boolean;
1781
- pdf: boolean;
1782
- };
1783
- output: {
1784
- text: boolean;
1785
- audio: boolean;
1786
- image: boolean;
1787
- video: boolean;
1788
- pdf: boolean;
1789
- };
1790
- interleaved: boolean | {
1791
- field: "reasoning_content" | "reasoning_details";
1792
- };
1793
- };
1794
- cost: {
1795
- input: number;
1796
- output: number;
1797
- cache: {
1798
- read: number;
1799
- write: number;
1800
- };
1801
- experimentalOver200K?: {
1802
- input: number;
1803
- output: number;
1804
- cache: {
1805
- read: number;
1806
- write: number;
1807
- };
1808
- };
1809
- };
1810
- limit: {
1811
- context: number;
1812
- output: number;
1813
- };
1814
- status: "alpha" | "beta" | "deprecated" | "active";
1815
- options: {
1816
- [key: string]: unknown;
1817
- };
1818
- headers: {
1819
- [key: string]: string;
1820
- };
1821
- release_date: string;
1822
- variants?: {
1823
- [key: string]: {
1824
- [key: string]: unknown;
1825
- };
1826
- };
1827
- };
1828
- export type Provider = {
1829
- id: string;
1830
- name: string;
1831
- source: "env" | "config" | "custom" | "api";
1832
- env: Array<string>;
1833
- key?: string;
1834
- options: {
1835
- [key: string]: unknown;
1836
- };
1837
- models: {
1838
- [key: string]: Model;
1839
- };
1840
- };
1841
- export type ProviderAuthMethod = {
1842
- type: "oauth" | "api";
1843
- label: string;
1844
- };
1845
- export type ProviderAuthAuthorization = {
1846
- url: string;
1847
- method: "auto" | "code";
1848
- instructions: string;
1849
- };
1850
- export type Symbol = {
1851
- name: string;
1852
- kind: number;
1853
- location: {
1854
- uri: string;
1855
- range: Range;
1856
- };
1857
- };
1858
- export type FileNode = {
1859
- name: string;
1860
- path: string;
1861
- absolute: string;
1862
- type: "file" | "directory";
1863
- ignored: boolean;
1864
- };
1865
- export type FileContent = {
1866
- type: "text";
1867
- content: string;
1868
- diff?: string;
1869
- patch?: {
1870
- oldFileName: string;
1871
- newFileName: string;
1872
- oldHeader?: string;
1873
- newHeader?: string;
1874
- hunks: Array<{
1875
- oldStart: number;
1876
- oldLines: number;
1877
- newStart: number;
1878
- newLines: number;
1879
- lines: Array<string>;
1880
- }>;
1881
- index?: string;
1882
- };
1883
- encoding?: "base64";
1884
- mimeType?: string;
1885
- };
1886
- export type File = {
1887
- path: string;
1888
- added: number;
1889
- removed: number;
1890
- status: "added" | "deleted" | "modified";
1891
- };
1892
- export type Agent = {
1893
- name: string;
1894
- description?: string;
1895
- mode: "subagent" | "primary" | "all";
1896
- native?: boolean;
1897
- hidden?: boolean;
1898
- topP?: number;
1899
- temperature?: number;
1900
- color?: string;
1901
- permission: PermissionRuleset;
1902
- model?: {
1903
- modelID: string;
1904
- providerID: string;
1905
- };
1906
- prompt?: string;
1907
- options: {
1908
- [key: string]: unknown;
1909
- };
1910
- steps?: number;
1911
- };
1912
- export type McpStatusConnected = {
1913
- status: "connected";
1914
- };
1915
- export type McpStatusDisabled = {
1916
- status: "disabled";
1917
- };
1918
- export type McpStatusFailed = {
1919
- status: "failed";
1920
- error: string;
1921
- };
1922
- export type McpStatusNeedsAuth = {
1923
- status: "needs_auth";
1924
- };
1925
- export type McpStatusNeedsClientRegistration = {
1926
- status: "needs_client_registration";
1927
- error: string;
1928
- };
1929
- export type McpStatus = McpStatusConnected | McpStatusDisabled | McpStatusFailed | McpStatusNeedsAuth | McpStatusNeedsClientRegistration;
1930
- export type McpResource = {
1931
- name: string;
1932
- uri: string;
1933
- description?: string;
1934
- mimeType?: string;
1935
- client: string;
1936
- };
1937
- export type LspStatus = {
1938
- id: string;
1939
- name: string;
1940
- root: string;
1941
- status: "connected" | "error";
1942
- };
1943
- export type FormatterStatus = {
1944
- name: string;
1945
- extensions: Array<string>;
1946
- enabled: boolean;
1947
- };
1948
- export type OAuth = {
1949
- type: "oauth";
1950
- refresh: string;
1951
- access: string;
1952
- expires: number;
1953
- enterpriseUrl?: string;
1954
- };
1955
- export type ApiAuth = {
1956
- type: "api";
1957
- key: string;
1958
- };
1959
- export type WellKnownAuth = {
1960
- type: "wellknown";
1961
- key: string;
1962
- token: string;
1963
- };
1964
- export type Auth = OAuth | ApiAuth | WellKnownAuth;
1965
- export type GlobalHealthData = {
1966
- body?: never;
1967
- path?: never;
1968
- query?: never;
1969
- url: "/global/health";
1970
- };
1971
- export type GlobalHealthResponses = {
1972
- /**
1973
- * Health information
1974
- */
1975
- 200: {
1976
- healthy: true;
1977
- version: string;
1978
- };
1979
- };
1980
- export type GlobalHealthResponse = GlobalHealthResponses[keyof GlobalHealthResponses];
1981
- export type GlobalEventData = {
1982
- body?: never;
1983
- path?: never;
1984
- query?: never;
1985
- url: "/global/event";
1986
- };
1987
- export type GlobalEventResponses = {
1988
- /**
1989
- * Event stream
1990
- */
1991
- 200: GlobalEvent;
1992
- };
1993
- export type GlobalEventResponse = GlobalEventResponses[keyof GlobalEventResponses];
1994
- export type GlobalDisposeData = {
1995
- body?: never;
1996
- path?: never;
1997
- query?: never;
1998
- url: "/global/dispose";
1999
- };
2000
- export type GlobalDisposeResponses = {
2001
- /**
2002
- * Global disposed
2003
- */
2004
- 200: boolean;
2005
- };
2006
- export type GlobalDisposeResponse = GlobalDisposeResponses[keyof GlobalDisposeResponses];
2007
- export type ProjectListData = {
2008
- body?: never;
2009
- path?: never;
2010
- query?: {
2011
- directory?: string;
2012
- };
2013
- url: "/project";
2014
- };
2015
- export type ProjectListResponses = {
2016
- /**
2017
- * List of projects
2018
- */
2019
- 200: Array<Project>;
2020
- };
2021
- export type ProjectListResponse = ProjectListResponses[keyof ProjectListResponses];
2022
- export type ProjectCurrentData = {
2023
- body?: never;
2024
- path?: never;
2025
- query?: {
2026
- directory?: string;
2027
- };
2028
- url: "/project/current";
2029
- };
2030
- export type ProjectCurrentResponses = {
2031
- /**
2032
- * Current project information
2033
- */
2034
- 200: Project;
2035
- };
2036
- export type ProjectCurrentResponse = ProjectCurrentResponses[keyof ProjectCurrentResponses];
2037
- export type ProjectUpdateData = {
2038
- body?: {
2039
- name?: string;
2040
- icon?: {
2041
- url?: string;
2042
- color?: string;
2043
- };
2044
- };
2045
- path: {
2046
- projectID: string;
2047
- };
2048
- query?: {
2049
- directory?: string;
2050
- };
2051
- url: "/project/{projectID}";
2052
- };
2053
- export type ProjectUpdateErrors = {
2054
- /**
2055
- * Bad request
2056
- */
2057
- 400: BadRequestError;
2058
- /**
2059
- * Not found
2060
- */
2061
- 404: NotFoundError;
2062
- };
2063
- export type ProjectUpdateError = ProjectUpdateErrors[keyof ProjectUpdateErrors];
2064
- export type ProjectUpdateResponses = {
2065
- /**
2066
- * Updated project information
2067
- */
2068
- 200: Project;
2069
- };
2070
- export type ProjectUpdateResponse = ProjectUpdateResponses[keyof ProjectUpdateResponses];
2071
- export type GitInitData = {
2072
- body?: {
2073
- /**
2074
- * Directory path to initialize git in
2075
- */
2076
- directory: string;
2077
- };
2078
- path?: never;
2079
- query?: {
2080
- directory?: string;
2081
- };
2082
- url: "/git/init";
2083
- };
2084
- export type GitInitErrors = {
2085
- /**
2086
- * Bad request
2087
- */
2088
- 400: BadRequestError;
2089
- };
2090
- export type GitInitError = GitInitErrors[keyof GitInitErrors];
2091
- export type GitInitResponses = {
2092
- /**
2093
- * Git initialization result
2094
- */
2095
- 200: {
2096
- /**
2097
- * Whether a new git repository was initialized
2098
- */
2099
- initialized: boolean;
2100
- };
2101
- };
2102
- export type GitInitResponse = GitInitResponses[keyof GitInitResponses];
2103
- export type PtyListData = {
2104
- body?: never;
2105
- path?: never;
2106
- query?: {
2107
- directory?: string;
2108
- };
2109
- url: "/pty";
2110
- };
2111
- export type PtyListResponses = {
2112
- /**
2113
- * List of sessions
2114
- */
2115
- 200: Array<Pty>;
2116
- };
2117
- export type PtyListResponse = PtyListResponses[keyof PtyListResponses];
2118
- export type PtyCreateData = {
2119
- body?: {
2120
- command?: string;
2121
- args?: Array<string>;
2122
- cwd?: string;
2123
- title?: string;
2124
- env?: {
2125
- [key: string]: string;
2126
- };
2127
- };
2128
- path?: never;
2129
- query?: {
2130
- directory?: string;
2131
- };
2132
- url: "/pty";
2133
- };
2134
- export type PtyCreateErrors = {
2135
- /**
2136
- * Bad request
2137
- */
2138
- 400: BadRequestError;
2139
- };
2140
- export type PtyCreateError = PtyCreateErrors[keyof PtyCreateErrors];
2141
- export type PtyCreateResponses = {
2142
- /**
2143
- * Created session
2144
- */
2145
- 200: Pty;
2146
- };
2147
- export type PtyCreateResponse = PtyCreateResponses[keyof PtyCreateResponses];
2148
- export type PtyRemoveData = {
2149
- body?: never;
2150
- path: {
2151
- ptyID: string;
2152
- };
2153
- query?: {
2154
- directory?: string;
2155
- };
2156
- url: "/pty/{ptyID}";
2157
- };
2158
- export type PtyRemoveErrors = {
2159
- /**
2160
- * Not found
2161
- */
2162
- 404: NotFoundError;
2163
- };
2164
- export type PtyRemoveError = PtyRemoveErrors[keyof PtyRemoveErrors];
2165
- export type PtyRemoveResponses = {
2166
- /**
2167
- * Session removed
2168
- */
2169
- 200: boolean;
2170
- };
2171
- export type PtyRemoveResponse = PtyRemoveResponses[keyof PtyRemoveResponses];
2172
- export type PtyGetData = {
2173
- body?: never;
2174
- path: {
2175
- ptyID: string;
2176
- };
2177
- query?: {
2178
- directory?: string;
2179
- };
2180
- url: "/pty/{ptyID}";
2181
- };
2182
- export type PtyGetErrors = {
2183
- /**
2184
- * Not found
2185
- */
2186
- 404: NotFoundError;
2187
- };
2188
- export type PtyGetError = PtyGetErrors[keyof PtyGetErrors];
2189
- export type PtyGetResponses = {
2190
- /**
2191
- * Session info
2192
- */
2193
- 200: Pty;
2194
- };
2195
- export type PtyGetResponse = PtyGetResponses[keyof PtyGetResponses];
2196
- export type PtyUpdateData = {
2197
- body?: {
2198
- title?: string;
2199
- size?: {
2200
- rows: number;
2201
- cols: number;
2202
- };
2203
- };
2204
- path: {
2205
- ptyID: string;
2206
- };
2207
- query?: {
2208
- directory?: string;
2209
- };
2210
- url: "/pty/{ptyID}";
2211
- };
2212
- export type PtyUpdateErrors = {
2213
- /**
2214
- * Bad request
2215
- */
2216
- 400: BadRequestError;
2217
- };
2218
- export type PtyUpdateError = PtyUpdateErrors[keyof PtyUpdateErrors];
2219
- export type PtyUpdateResponses = {
2220
- /**
2221
- * Updated session
2222
- */
2223
- 200: Pty;
2224
- };
2225
- export type PtyUpdateResponse = PtyUpdateResponses[keyof PtyUpdateResponses];
2226
- export type PtyConnectData = {
2227
- body?: never;
2228
- path: {
2229
- ptyID: string;
2230
- };
2231
- query?: {
2232
- directory?: string;
2233
- };
2234
- url: "/pty/{ptyID}/connect";
2235
- };
2236
- export type PtyConnectErrors = {
2237
- /**
2238
- * Not found
2239
- */
2240
- 404: NotFoundError;
2241
- };
2242
- export type PtyConnectError = PtyConnectErrors[keyof PtyConnectErrors];
2243
- export type PtyConnectResponses = {
2244
- /**
2245
- * Connected session
2246
- */
2247
- 200: boolean;
2248
- };
2249
- export type PtyConnectResponse = PtyConnectResponses[keyof PtyConnectResponses];
2250
- export type ConfigGetData = {
2251
- body?: never;
2252
- path?: never;
2253
- query?: {
2254
- directory?: string;
2255
- };
2256
- url: "/config";
2257
- };
2258
- export type ConfigGetResponses = {
2259
- /**
2260
- * Get config info
2261
- */
2262
- 200: Config;
2263
- };
2264
- export type ConfigGetResponse = ConfigGetResponses[keyof ConfigGetResponses];
2265
- export type ConfigUpdateData = {
2266
- body?: Config;
2267
- path?: never;
2268
- query?: {
2269
- directory?: string;
2270
- };
2271
- url: "/config";
2272
- };
2273
- export type ConfigUpdateErrors = {
2274
- /**
2275
- * Bad request
2276
- */
2277
- 400: BadRequestError;
2278
- };
2279
- export type ConfigUpdateError = ConfigUpdateErrors[keyof ConfigUpdateErrors];
2280
- export type ConfigUpdateResponses = {
2281
- /**
2282
- * Successfully updated config
2283
- */
2284
- 200: Config;
2285
- };
2286
- export type ConfigUpdateResponse = ConfigUpdateResponses[keyof ConfigUpdateResponses];
2287
- export type ToolIdsData = {
2288
- body?: never;
2289
- path?: never;
2290
- query?: {
2291
- directory?: string;
2292
- };
2293
- url: "/experimental/tool/ids";
2294
- };
2295
- export type ToolIdsErrors = {
2296
- /**
2297
- * Bad request
2298
- */
2299
- 400: BadRequestError;
2300
- };
2301
- export type ToolIdsError = ToolIdsErrors[keyof ToolIdsErrors];
2302
- export type ToolIdsResponses = {
2303
- /**
2304
- * Tool IDs
2305
- */
2306
- 200: ToolIds;
2307
- };
2308
- export type ToolIdsResponse = ToolIdsResponses[keyof ToolIdsResponses];
2309
- export type ToolListData = {
2310
- body?: never;
2311
- path?: never;
2312
- query: {
2313
- directory?: string;
2314
- provider: string;
2315
- model: string;
2316
- };
2317
- url: "/experimental/tool";
2318
- };
2319
- export type ToolListErrors = {
2320
- /**
2321
- * Bad request
2322
- */
2323
- 400: BadRequestError;
2324
- };
2325
- export type ToolListError = ToolListErrors[keyof ToolListErrors];
2326
- export type ToolListResponses = {
2327
- /**
2328
- * Tools
2329
- */
2330
- 200: ToolList;
2331
- };
2332
- export type ToolListResponse = ToolListResponses[keyof ToolListResponses];
2333
- export type InstanceDisposeData = {
2334
- body?: never;
2335
- path?: never;
2336
- query?: {
2337
- directory?: string;
2338
- };
2339
- url: "/instance/dispose";
2340
- };
2341
- export type InstanceDisposeResponses = {
2342
- /**
2343
- * Instance disposed
2344
- */
2345
- 200: boolean;
2346
- };
2347
- export type InstanceDisposeResponse = InstanceDisposeResponses[keyof InstanceDisposeResponses];
2348
- export type PathGetData = {
2349
- body?: never;
2350
- path?: never;
2351
- query?: {
2352
- directory?: string;
2353
- };
2354
- url: "/path";
2355
- };
2356
- export type PathGetResponses = {
2357
- /**
2358
- * Path
2359
- */
2360
- 200: Path;
2361
- };
2362
- export type PathGetResponse = PathGetResponses[keyof PathGetResponses];
2363
- export type WorktreeListData = {
2364
- body?: never;
2365
- path?: never;
2366
- query?: {
2367
- directory?: string;
2368
- };
2369
- url: "/experimental/worktree";
2370
- };
2371
- export type WorktreeListResponses = {
2372
- /**
2373
- * List of worktree directories
2374
- */
2375
- 200: Array<string>;
2376
- };
2377
- export type WorktreeListResponse = WorktreeListResponses[keyof WorktreeListResponses];
2378
- export type WorktreeCreateData = {
2379
- body?: WorktreeCreateInput;
2380
- path?: never;
2381
- query?: {
2382
- directory?: string;
2383
- };
2384
- url: "/experimental/worktree";
2385
- };
2386
- export type WorktreeCreateErrors = {
2387
- /**
2388
- * Bad request
2389
- */
2390
- 400: BadRequestError;
2391
- };
2392
- export type WorktreeCreateError = WorktreeCreateErrors[keyof WorktreeCreateErrors];
2393
- export type WorktreeCreateResponses = {
2394
- /**
2395
- * Worktree created
2396
- */
2397
- 200: Worktree;
2398
- };
2399
- export type WorktreeCreateResponse = WorktreeCreateResponses[keyof WorktreeCreateResponses];
2400
- export type VcsGetData = {
2401
- body?: never;
2402
- path?: never;
2403
- query?: {
2404
- directory?: string;
2405
- };
2406
- url: "/vcs";
2407
- };
2408
- export type VcsGetResponses = {
2409
- /**
2410
- * VCS info
2411
- */
2412
- 200: VcsInfo;
2413
- };
2414
- export type VcsGetResponse = VcsGetResponses[keyof VcsGetResponses];
2415
- export type SessionListData = {
2416
- body?: never;
2417
- path?: never;
2418
- query?: {
2419
- directory?: string;
2420
- /**
2421
- * Filter sessions updated on or after this timestamp (milliseconds since epoch)
2422
- */
2423
- start?: number;
2424
- /**
2425
- * Filter sessions by title (case-insensitive)
2426
- */
2427
- search?: string;
2428
- /**
2429
- * Maximum number of sessions to return
2430
- */
2431
- limit?: number;
2432
- };
2433
- url: "/session";
2434
- };
2435
- export type SessionListResponses = {
2436
- /**
2437
- * List of sessions
2438
- */
2439
- 200: Array<Session>;
2440
- };
2441
- export type SessionListResponse = SessionListResponses[keyof SessionListResponses];
2442
- export type SessionCreateData = {
2443
- body?: {
2444
- parentID?: string;
2445
- title?: string;
2446
- permission?: PermissionRuleset;
2447
- };
2448
- path?: never;
2449
- query?: {
2450
- directory?: string;
2451
- };
2452
- url: "/session";
2453
- };
2454
- export type SessionCreateErrors = {
2455
- /**
2456
- * Bad request
2457
- */
2458
- 400: BadRequestError;
2459
- };
2460
- export type SessionCreateError = SessionCreateErrors[keyof SessionCreateErrors];
2461
- export type SessionCreateResponses = {
2462
- /**
2463
- * Successfully created session
2464
- */
2465
- 200: Session;
2466
- };
2467
- export type SessionCreateResponse = SessionCreateResponses[keyof SessionCreateResponses];
2468
- export type SessionStatusData = {
2469
- body?: never;
2470
- path?: never;
2471
- query?: {
2472
- directory?: string;
2473
- };
2474
- url: "/session/status";
2475
- };
2476
- export type SessionStatusErrors = {
2477
- /**
2478
- * Bad request
2479
- */
2480
- 400: BadRequestError;
2481
- };
2482
- export type SessionStatusError = SessionStatusErrors[keyof SessionStatusErrors];
2483
- export type SessionStatusResponses = {
2484
- /**
2485
- * Get session status
2486
- */
2487
- 200: {
2488
- [key: string]: SessionStatus;
2489
- };
2490
- };
2491
- export type SessionStatusResponse = SessionStatusResponses[keyof SessionStatusResponses];
2492
- export type SessionDeleteData = {
2493
- body?: never;
2494
- path: {
2495
- sessionID: string;
2496
- };
2497
- query?: {
2498
- directory?: string;
2499
- };
2500
- url: "/session/{sessionID}";
2501
- };
2502
- export type SessionDeleteErrors = {
2503
- /**
2504
- * Bad request
2505
- */
2506
- 400: BadRequestError;
2507
- /**
2508
- * Not found
2509
- */
2510
- 404: NotFoundError;
2511
- };
2512
- export type SessionDeleteError = SessionDeleteErrors[keyof SessionDeleteErrors];
2513
- export type SessionDeleteResponses = {
2514
- /**
2515
- * Successfully deleted session
2516
- */
2517
- 200: boolean;
2518
- };
2519
- export type SessionDeleteResponse = SessionDeleteResponses[keyof SessionDeleteResponses];
2520
- export type SessionGetData = {
2521
- body?: never;
2522
- path: {
2523
- sessionID: string;
2524
- };
2525
- query?: {
2526
- directory?: string;
2527
- };
2528
- url: "/session/{sessionID}";
2529
- };
2530
- export type SessionGetErrors = {
2531
- /**
2532
- * Bad request
2533
- */
2534
- 400: BadRequestError;
2535
- /**
2536
- * Not found
2537
- */
2538
- 404: NotFoundError;
2539
- };
2540
- export type SessionGetError = SessionGetErrors[keyof SessionGetErrors];
2541
- export type SessionGetResponses = {
2542
- /**
2543
- * Get session
2544
- */
2545
- 200: Session;
2546
- };
2547
- export type SessionGetResponse = SessionGetResponses[keyof SessionGetResponses];
2548
- export type SessionUpdateData = {
2549
- body?: {
2550
- title?: string;
2551
- time?: {
2552
- archived?: number;
2553
- };
2554
- };
2555
- path: {
2556
- sessionID: string;
2557
- };
2558
- query?: {
2559
- directory?: string;
2560
- };
2561
- url: "/session/{sessionID}";
2562
- };
2563
- export type SessionUpdateErrors = {
2564
- /**
2565
- * Bad request
2566
- */
2567
- 400: BadRequestError;
2568
- /**
2569
- * Not found
2570
- */
2571
- 404: NotFoundError;
2572
- };
2573
- export type SessionUpdateError = SessionUpdateErrors[keyof SessionUpdateErrors];
2574
- export type SessionUpdateResponses = {
2575
- /**
2576
- * Successfully updated session
2577
- */
2578
- 200: Session;
2579
- };
2580
- export type SessionUpdateResponse = SessionUpdateResponses[keyof SessionUpdateResponses];
2581
- export type SessionChildrenData = {
2582
- body?: never;
2583
- path: {
2584
- sessionID: string;
2585
- };
2586
- query?: {
2587
- directory?: string;
2588
- };
2589
- url: "/session/{sessionID}/children";
2590
- };
2591
- export type SessionChildrenErrors = {
2592
- /**
2593
- * Bad request
2594
- */
2595
- 400: BadRequestError;
2596
- /**
2597
- * Not found
2598
- */
2599
- 404: NotFoundError;
2600
- };
2601
- export type SessionChildrenError = SessionChildrenErrors[keyof SessionChildrenErrors];
2602
- export type SessionChildrenResponses = {
2603
- /**
2604
- * List of children
2605
- */
2606
- 200: Array<Session>;
2607
- };
2608
- export type SessionChildrenResponse = SessionChildrenResponses[keyof SessionChildrenResponses];
2609
- export type SessionTodoData = {
2610
- body?: never;
2611
- path: {
2612
- /**
2613
- * Session ID
2614
- */
2615
- sessionID: string;
2616
- };
2617
- query?: {
2618
- directory?: string;
2619
- };
2620
- url: "/session/{sessionID}/todo";
2621
- };
2622
- export type SessionTodoErrors = {
2623
- /**
2624
- * Bad request
2625
- */
2626
- 400: BadRequestError;
2627
- /**
2628
- * Not found
2629
- */
2630
- 404: NotFoundError;
2631
- };
2632
- export type SessionTodoError = SessionTodoErrors[keyof SessionTodoErrors];
2633
- export type SessionTodoResponses = {
2634
- /**
2635
- * Todo list
2636
- */
2637
- 200: Array<Todo>;
2638
- };
2639
- export type SessionTodoResponse = SessionTodoResponses[keyof SessionTodoResponses];
2640
- export type SessionInitData = {
2641
- body?: {
2642
- modelID: string;
2643
- providerID: string;
2644
- messageID: string;
2645
- };
2646
- path: {
2647
- /**
2648
- * Session ID
2649
- */
2650
- sessionID: string;
2651
- };
2652
- query?: {
2653
- directory?: string;
2654
- };
2655
- url: "/session/{sessionID}/init";
2656
- };
2657
- export type SessionInitErrors = {
2658
- /**
2659
- * Bad request
2660
- */
2661
- 400: BadRequestError;
2662
- /**
2663
- * Not found
2664
- */
2665
- 404: NotFoundError;
2666
- };
2667
- export type SessionInitError = SessionInitErrors[keyof SessionInitErrors];
2668
- export type SessionInitResponses = {
2669
- /**
2670
- * 200
2671
- */
2672
- 200: boolean;
2673
- };
2674
- export type SessionInitResponse = SessionInitResponses[keyof SessionInitResponses];
2675
- export type SessionForkData = {
2676
- body?: {
2677
- messageID?: string;
2678
- };
2679
- path: {
2680
- sessionID: string;
2681
- };
2682
- query?: {
2683
- directory?: string;
2684
- };
2685
- url: "/session/{sessionID}/fork";
2686
- };
2687
- export type SessionForkResponses = {
2688
- /**
2689
- * 200
2690
- */
2691
- 200: Session;
2692
- };
2693
- export type SessionForkResponse = SessionForkResponses[keyof SessionForkResponses];
2694
- export type SessionAbortData = {
2695
- body?: never;
2696
- path: {
2697
- sessionID: string;
2698
- };
2699
- query?: {
2700
- directory?: string;
2701
- };
2702
- url: "/session/{sessionID}/abort";
2703
- };
2704
- export type SessionAbortErrors = {
2705
- /**
2706
- * Bad request
2707
- */
2708
- 400: BadRequestError;
2709
- /**
2710
- * Not found
2711
- */
2712
- 404: NotFoundError;
2713
- };
2714
- export type SessionAbortError = SessionAbortErrors[keyof SessionAbortErrors];
2715
- export type SessionAbortResponses = {
2716
- /**
2717
- * Aborted session
2718
- */
2719
- 200: boolean;
2720
- };
2721
- export type SessionAbortResponse = SessionAbortResponses[keyof SessionAbortResponses];
2722
- export type SessionUnshareData = {
2723
- body?: never;
2724
- path: {
2725
- sessionID: string;
2726
- };
2727
- query?: {
2728
- directory?: string;
2729
- };
2730
- url: "/session/{sessionID}/share";
2731
- };
2732
- export type SessionUnshareErrors = {
2733
- /**
2734
- * Bad request
2735
- */
2736
- 400: BadRequestError;
2737
- /**
2738
- * Not found
2739
- */
2740
- 404: NotFoundError;
2741
- };
2742
- export type SessionUnshareError = SessionUnshareErrors[keyof SessionUnshareErrors];
2743
- export type SessionUnshareResponses = {
2744
- /**
2745
- * Successfully unshared session
2746
- */
2747
- 200: Session;
2748
- };
2749
- export type SessionUnshareResponse = SessionUnshareResponses[keyof SessionUnshareResponses];
2750
- export type SessionShareData = {
2751
- body?: never;
2752
- path: {
2753
- sessionID: string;
2754
- };
2755
- query?: {
2756
- directory?: string;
2757
- };
2758
- url: "/session/{sessionID}/share";
2759
- };
2760
- export type SessionShareErrors = {
2761
- /**
2762
- * Bad request
2763
- */
2764
- 400: BadRequestError;
2765
- /**
2766
- * Not found
2767
- */
2768
- 404: NotFoundError;
2769
- };
2770
- export type SessionShareError = SessionShareErrors[keyof SessionShareErrors];
2771
- export type SessionShareResponses = {
2772
- /**
2773
- * Successfully shared session
2774
- */
2775
- 200: Session;
2776
- };
2777
- export type SessionShareResponse = SessionShareResponses[keyof SessionShareResponses];
2778
- export type SessionDiffData = {
2779
- body?: never;
2780
- path: {
2781
- /**
2782
- * Session ID
2783
- */
2784
- sessionID: string;
2785
- };
2786
- query?: {
2787
- directory?: string;
2788
- messageID?: string;
2789
- };
2790
- url: "/session/{sessionID}/diff";
2791
- };
2792
- export type SessionDiffErrors = {
2793
- /**
2794
- * Bad request
2795
- */
2796
- 400: BadRequestError;
2797
- /**
2798
- * Not found
2799
- */
2800
- 404: NotFoundError;
2801
- };
2802
- export type SessionDiffError = SessionDiffErrors[keyof SessionDiffErrors];
2803
- export type SessionDiffResponses = {
2804
- /**
2805
- * List of diffs
2806
- */
2807
- 200: Array<FileDiff>;
2808
- };
2809
- export type SessionDiffResponse = SessionDiffResponses[keyof SessionDiffResponses];
2810
- export type SessionSummarizeData = {
2811
- body?: {
2812
- providerID: string;
2813
- modelID: string;
2814
- auto?: boolean;
2815
- };
2816
- path: {
2817
- /**
2818
- * Session ID
2819
- */
2820
- sessionID: string;
2821
- };
2822
- query?: {
2823
- directory?: string;
2824
- };
2825
- url: "/session/{sessionID}/summarize";
2826
- };
2827
- export type SessionSummarizeErrors = {
2828
- /**
2829
- * Bad request
2830
- */
2831
- 400: BadRequestError;
2832
- /**
2833
- * Not found
2834
- */
2835
- 404: NotFoundError;
2836
- };
2837
- export type SessionSummarizeError = SessionSummarizeErrors[keyof SessionSummarizeErrors];
2838
- export type SessionSummarizeResponses = {
2839
- /**
2840
- * Summarized session
2841
- */
2842
- 200: boolean;
2843
- };
2844
- export type SessionSummarizeResponse = SessionSummarizeResponses[keyof SessionSummarizeResponses];
2845
- export type SessionMessagesData = {
2846
- body?: never;
2847
- path: {
2848
- /**
2849
- * Session ID
2850
- */
2851
- sessionID: string;
2852
- };
2853
- query?: {
2854
- directory?: string;
2855
- limit?: number;
2856
- };
2857
- url: "/session/{sessionID}/message";
2858
- };
2859
- export type SessionMessagesErrors = {
2860
- /**
2861
- * Bad request
2862
- */
2863
- 400: BadRequestError;
2864
- /**
2865
- * Not found
2866
- */
2867
- 404: NotFoundError;
2868
- };
2869
- export type SessionMessagesError = SessionMessagesErrors[keyof SessionMessagesErrors];
2870
- export type SessionMessagesResponses = {
2871
- /**
2872
- * List of messages
2873
- */
2874
- 200: Array<{
2875
- info: Message;
2876
- parts: Array<Part>;
2877
- }>;
2878
- };
2879
- export type SessionMessagesResponse = SessionMessagesResponses[keyof SessionMessagesResponses];
2880
- export type SessionPromptData = {
2881
- body?: {
2882
- messageID?: string;
2883
- model?: {
2884
- providerID: string;
2885
- modelID: string;
2886
- };
2887
- agent?: string;
2888
- noReply?: boolean;
2889
- summary?: {
2890
- title?: string;
2891
- };
2892
- /**
2893
- * @deprecated tools and permissions have been merged, you can set permissions on the session itself now
2894
- */
2895
- tools?: {
2896
- [key: string]: boolean;
2897
- };
2898
- system?: string;
2899
- variant?: string;
2900
- parts: Array<TextPartInput | FilePartInput | AgentPartInput | SubtaskPartInput>;
2901
- };
2902
- path: {
2903
- /**
2904
- * Session ID
2905
- */
2906
- sessionID: string;
2907
- };
2908
- query?: {
2909
- directory?: string;
2910
- };
2911
- url: "/session/{sessionID}/message";
2912
- };
2913
- export type SessionPromptErrors = {
2914
- /**
2915
- * Bad request
2916
- */
2917
- 400: BadRequestError;
2918
- /**
2919
- * Not found
2920
- */
2921
- 404: NotFoundError;
2922
- };
2923
- export type SessionPromptError = SessionPromptErrors[keyof SessionPromptErrors];
2924
- export type SessionPromptResponses = {
2925
- /**
2926
- * Created message
2927
- */
2928
- 200: {
2929
- info: AssistantMessage;
2930
- parts: Array<Part>;
2931
- };
2932
- };
2933
- export type SessionPromptResponse = SessionPromptResponses[keyof SessionPromptResponses];
2934
- export type SessionMessageData = {
2935
- body?: never;
2936
- path: {
2937
- /**
2938
- * Session ID
2939
- */
2940
- sessionID: string;
2941
- /**
2942
- * Message ID
2943
- */
2944
- messageID: string;
2945
- };
2946
- query?: {
2947
- directory?: string;
2948
- };
2949
- url: "/session/{sessionID}/message/{messageID}";
2950
- };
2951
- export type SessionMessageErrors = {
2952
- /**
2953
- * Bad request
2954
- */
2955
- 400: BadRequestError;
2956
- /**
2957
- * Not found
2958
- */
2959
- 404: NotFoundError;
2960
- };
2961
- export type SessionMessageError = SessionMessageErrors[keyof SessionMessageErrors];
2962
- export type SessionMessageResponses = {
2963
- /**
2964
- * Message
2965
- */
2966
- 200: {
2967
- info: Message;
2968
- parts: Array<Part>;
2969
- };
2970
- };
2971
- export type SessionMessageResponse = SessionMessageResponses[keyof SessionMessageResponses];
2972
- export type PartDeleteData = {
2973
- body?: never;
2974
- path: {
2975
- /**
2976
- * Session ID
2977
- */
2978
- sessionID: string;
2979
- /**
2980
- * Message ID
2981
- */
2982
- messageID: string;
2983
- /**
2984
- * Part ID
2985
- */
2986
- partID: string;
2987
- };
2988
- query?: {
2989
- directory?: string;
2990
- };
2991
- url: "/session/{sessionID}/message/{messageID}/part/{partID}";
2992
- };
2993
- export type PartDeleteErrors = {
2994
- /**
2995
- * Bad request
2996
- */
2997
- 400: BadRequestError;
2998
- /**
2999
- * Not found
3000
- */
3001
- 404: NotFoundError;
3002
- };
3003
- export type PartDeleteError = PartDeleteErrors[keyof PartDeleteErrors];
3004
- export type PartDeleteResponses = {
3005
- /**
3006
- * Successfully deleted part
3007
- */
3008
- 200: boolean;
3009
- };
3010
- export type PartDeleteResponse = PartDeleteResponses[keyof PartDeleteResponses];
3011
- export type PartUpdateData = {
3012
- body?: Part;
3013
- path: {
3014
- /**
3015
- * Session ID
3016
- */
3017
- sessionID: string;
3018
- /**
3019
- * Message ID
3020
- */
3021
- messageID: string;
3022
- /**
3023
- * Part ID
3024
- */
3025
- partID: string;
3026
- };
3027
- query?: {
3028
- directory?: string;
3029
- };
3030
- url: "/session/{sessionID}/message/{messageID}/part/{partID}";
3031
- };
3032
- export type PartUpdateErrors = {
3033
- /**
3034
- * Bad request
3035
- */
3036
- 400: BadRequestError;
3037
- /**
3038
- * Not found
3039
- */
3040
- 404: NotFoundError;
3041
- };
3042
- export type PartUpdateError = PartUpdateErrors[keyof PartUpdateErrors];
3043
- export type PartUpdateResponses = {
3044
- /**
3045
- * Successfully updated part
3046
- */
3047
- 200: Part;
3048
- };
3049
- export type PartUpdateResponse = PartUpdateResponses[keyof PartUpdateResponses];
3050
- export type SessionPromptAsyncData = {
3051
- body?: {
3052
- messageID?: string;
3053
- model?: {
3054
- providerID: string;
3055
- modelID: string;
3056
- };
3057
- agent?: string;
3058
- noReply?: boolean;
3059
- summary?: {
3060
- title?: string;
3061
- };
3062
- /**
3063
- * @deprecated tools and permissions have been merged, you can set permissions on the session itself now
3064
- */
3065
- tools?: {
3066
- [key: string]: boolean;
3067
- };
3068
- system?: string;
3069
- variant?: string;
3070
- parts: Array<TextPartInput | FilePartInput | AgentPartInput | SubtaskPartInput>;
3071
- };
3072
- path: {
3073
- /**
3074
- * Session ID
3075
- */
3076
- sessionID: string;
3077
- };
3078
- query?: {
3079
- directory?: string;
3080
- };
3081
- url: "/session/{sessionID}/prompt_async";
3082
- };
3083
- export type SessionPromptAsyncErrors = {
3084
- /**
3085
- * Bad request
3086
- */
3087
- 400: BadRequestError;
3088
- /**
3089
- * Not found
3090
- */
3091
- 404: NotFoundError;
3092
- };
3093
- export type SessionPromptAsyncError = SessionPromptAsyncErrors[keyof SessionPromptAsyncErrors];
3094
- export type SessionPromptAsyncResponses = {
3095
- /**
3096
- * Prompt accepted
3097
- */
3098
- 204: void;
3099
- };
3100
- export type SessionPromptAsyncResponse = SessionPromptAsyncResponses[keyof SessionPromptAsyncResponses];
3101
- export type SessionCommandData = {
3102
- body?: {
3103
- messageID?: string;
3104
- agent?: string;
3105
- model?: string;
3106
- arguments: string;
3107
- command: string;
3108
- variant?: string;
3109
- parts?: Array<{
3110
- id?: string;
3111
- type: "file";
3112
- mime: string;
3113
- filename?: string;
3114
- url: string;
3115
- source?: FilePartSource;
3116
- }>;
3117
- };
3118
- path: {
3119
- /**
3120
- * Session ID
3121
- */
3122
- sessionID: string;
3123
- };
3124
- query?: {
3125
- directory?: string;
3126
- };
3127
- url: "/session/{sessionID}/command";
3128
- };
3129
- export type SessionCommandErrors = {
3130
- /**
3131
- * Bad request
3132
- */
3133
- 400: BadRequestError;
3134
- /**
3135
- * Not found
3136
- */
3137
- 404: NotFoundError;
3138
- };
3139
- export type SessionCommandError = SessionCommandErrors[keyof SessionCommandErrors];
3140
- export type SessionCommandResponses = {
3141
- /**
3142
- * Created message
3143
- */
3144
- 200: {
3145
- info: AssistantMessage;
3146
- parts: Array<Part>;
3147
- };
3148
- };
3149
- export type SessionCommandResponse = SessionCommandResponses[keyof SessionCommandResponses];
3150
- export type SessionShellData = {
3151
- body?: {
3152
- agent: string;
3153
- model?: {
3154
- providerID: string;
3155
- modelID: string;
3156
- };
3157
- command: string;
3158
- };
3159
- path: {
3160
- /**
3161
- * Session ID
3162
- */
3163
- sessionID: string;
3164
- };
3165
- query?: {
3166
- directory?: string;
3167
- };
3168
- url: "/session/{sessionID}/shell";
3169
- };
3170
- export type SessionShellErrors = {
3171
- /**
3172
- * Bad request
3173
- */
3174
- 400: BadRequestError;
3175
- /**
3176
- * Not found
3177
- */
3178
- 404: NotFoundError;
3179
- };
3180
- export type SessionShellError = SessionShellErrors[keyof SessionShellErrors];
3181
- export type SessionShellResponses = {
3182
- /**
3183
- * Created message
3184
- */
3185
- 200: AssistantMessage;
3186
- };
3187
- export type SessionShellResponse = SessionShellResponses[keyof SessionShellResponses];
3188
- export type SessionRevertData = {
3189
- body?: {
3190
- messageID: string;
3191
- partID?: string;
3192
- };
3193
- path: {
3194
- sessionID: string;
3195
- };
3196
- query?: {
3197
- directory?: string;
3198
- };
3199
- url: "/session/{sessionID}/revert";
3200
- };
3201
- export type SessionRevertErrors = {
3202
- /**
3203
- * Bad request
3204
- */
3205
- 400: BadRequestError;
3206
- /**
3207
- * Not found
3208
- */
3209
- 404: NotFoundError;
3210
- };
3211
- export type SessionRevertError = SessionRevertErrors[keyof SessionRevertErrors];
3212
- export type SessionRevertResponses = {
3213
- /**
3214
- * Updated session
3215
- */
3216
- 200: Session;
3217
- };
3218
- export type SessionRevertResponse = SessionRevertResponses[keyof SessionRevertResponses];
3219
- export type SessionUnrevertData = {
3220
- body?: never;
3221
- path: {
3222
- sessionID: string;
3223
- };
3224
- query?: {
3225
- directory?: string;
3226
- };
3227
- url: "/session/{sessionID}/unrevert";
3228
- };
3229
- export type SessionUnrevertErrors = {
3230
- /**
3231
- * Bad request
3232
- */
3233
- 400: BadRequestError;
3234
- /**
3235
- * Not found
3236
- */
3237
- 404: NotFoundError;
3238
- };
3239
- export type SessionUnrevertError = SessionUnrevertErrors[keyof SessionUnrevertErrors];
3240
- export type SessionUnrevertResponses = {
3241
- /**
3242
- * Updated session
3243
- */
3244
- 200: Session;
3245
- };
3246
- export type SessionUnrevertResponse = SessionUnrevertResponses[keyof SessionUnrevertResponses];
3247
- export type PermissionRespondData = {
3248
- body?: {
3249
- response: "once" | "always" | "reject";
3250
- };
3251
- path: {
3252
- sessionID: string;
3253
- permissionID: string;
3254
- };
3255
- query?: {
3256
- directory?: string;
3257
- };
3258
- url: "/session/{sessionID}/permissions/{permissionID}";
3259
- };
3260
- export type PermissionRespondErrors = {
3261
- /**
3262
- * Bad request
3263
- */
3264
- 400: BadRequestError;
3265
- /**
3266
- * Not found
3267
- */
3268
- 404: NotFoundError;
3269
- };
3270
- export type PermissionRespondError = PermissionRespondErrors[keyof PermissionRespondErrors];
3271
- export type PermissionRespondResponses = {
3272
- /**
3273
- * Permission processed successfully
3274
- */
3275
- 200: boolean;
3276
- };
3277
- export type PermissionRespondResponse = PermissionRespondResponses[keyof PermissionRespondResponses];
3278
- export type PermissionReplyData = {
3279
- body?: {
3280
- reply: "once" | "always" | "reject";
3281
- message?: string;
3282
- };
3283
- path: {
3284
- requestID: string;
3285
- };
3286
- query?: {
3287
- directory?: string;
3288
- };
3289
- url: "/permission/{requestID}/reply";
3290
- };
3291
- export type PermissionReplyErrors = {
3292
- /**
3293
- * Bad request
3294
- */
3295
- 400: BadRequestError;
3296
- /**
3297
- * Not found
3298
- */
3299
- 404: NotFoundError;
3300
- };
3301
- export type PermissionReplyError = PermissionReplyErrors[keyof PermissionReplyErrors];
3302
- export type PermissionReplyResponses = {
3303
- /**
3304
- * Permission processed successfully
3305
- */
3306
- 200: boolean;
3307
- };
3308
- export type PermissionReplyResponse = PermissionReplyResponses[keyof PermissionReplyResponses];
3309
- export type PermissionListData = {
3310
- body?: never;
3311
- path?: never;
3312
- query?: {
3313
- directory?: string;
3314
- };
3315
- url: "/permission";
3316
- };
3317
- export type PermissionListResponses = {
3318
- /**
3319
- * List of pending permissions
3320
- */
3321
- 200: Array<PermissionRequest>;
3322
- };
3323
- export type PermissionListResponse = PermissionListResponses[keyof PermissionListResponses];
3324
- export type QuestionListData = {
3325
- body?: never;
3326
- path?: never;
3327
- query?: {
3328
- directory?: string;
3329
- };
3330
- url: "/question";
3331
- };
3332
- export type QuestionListResponses = {
3333
- /**
3334
- * List of pending questions
3335
- */
3336
- 200: Array<QuestionRequest>;
3337
- };
3338
- export type QuestionListResponse = QuestionListResponses[keyof QuestionListResponses];
3339
- export type QuestionReplyData = {
3340
- body?: {
3341
- /**
3342
- * User answers in order of questions (each answer is an array of selected labels)
3343
- */
3344
- answers: Array<QuestionAnswer>;
3345
- };
3346
- path: {
3347
- requestID: string;
3348
- };
3349
- query?: {
3350
- directory?: string;
3351
- };
3352
- url: "/question/{requestID}/reply";
3353
- };
3354
- export type QuestionReplyErrors = {
3355
- /**
3356
- * Bad request
3357
- */
3358
- 400: BadRequestError;
3359
- /**
3360
- * Not found
3361
- */
3362
- 404: NotFoundError;
3363
- };
3364
- export type QuestionReplyError = QuestionReplyErrors[keyof QuestionReplyErrors];
3365
- export type QuestionReplyResponses = {
3366
- /**
3367
- * Question answered successfully
3368
- */
3369
- 200: boolean;
3370
- };
3371
- export type QuestionReplyResponse = QuestionReplyResponses[keyof QuestionReplyResponses];
3372
- export type QuestionRejectData = {
3373
- body?: never;
3374
- path: {
3375
- requestID: string;
3376
- };
3377
- query?: {
3378
- directory?: string;
3379
- };
3380
- url: "/question/{requestID}/reject";
3381
- };
3382
- export type QuestionRejectErrors = {
3383
- /**
3384
- * Bad request
3385
- */
3386
- 400: BadRequestError;
3387
- /**
3388
- * Not found
3389
- */
3390
- 404: NotFoundError;
3391
- };
3392
- export type QuestionRejectError = QuestionRejectErrors[keyof QuestionRejectErrors];
3393
- export type QuestionRejectResponses = {
3394
- /**
3395
- * Question rejected successfully
3396
- */
3397
- 200: boolean;
3398
- };
3399
- export type QuestionRejectResponse = QuestionRejectResponses[keyof QuestionRejectResponses];
3400
- export type SessionFeedbackListData = {
3401
- body?: never;
3402
- path: {
3403
- /**
3404
- * Session ID
3405
- */
3406
- sessionID: string;
3407
- };
3408
- query?: {
3409
- directory?: string;
3410
- };
3411
- url: "/session/{sessionID}/feedback";
3412
- };
3413
- export type SessionFeedbackListErrors = {
3414
- /**
3415
- * Bad request
3416
- */
3417
- 400: BadRequestError;
3418
- /**
3419
- * Not found
3420
- */
3421
- 404: NotFoundError;
3422
- };
3423
- export type SessionFeedbackListError = SessionFeedbackListErrors[keyof SessionFeedbackListErrors];
3424
- export type SessionFeedbackListResponses = {
3425
- /**
3426
- * Feedback list
3427
- */
3428
- 200: Array<Feedback>;
3429
- };
3430
- export type SessionFeedbackListResponse = SessionFeedbackListResponses[keyof SessionFeedbackListResponses];
3431
- export type SessionFeedbackSetData = {
3432
- body?: {
3433
- /**
3434
- * User message ID
3435
- */
3436
- userMessageID: string;
3437
- /**
3438
- * Assistant message ID
3439
- */
3440
- assistantMessageID: string;
3441
- /**
3442
- * Rating: up or down
3443
- */
3444
- rating: "up" | "down";
3445
- };
3446
- path: {
3447
- /**
3448
- * Session ID
3449
- */
3450
- sessionID: string;
3451
- };
3452
- query?: {
3453
- directory?: string;
3454
- };
3455
- url: "/session/{sessionID}/feedback";
3456
- };
3457
- export type SessionFeedbackSetErrors = {
3458
- /**
3459
- * Bad request
3460
- */
3461
- 400: BadRequestError;
3462
- /**
3463
- * Not found
3464
- */
3465
- 404: NotFoundError;
3466
- };
3467
- export type SessionFeedbackSetError = SessionFeedbackSetErrors[keyof SessionFeedbackSetErrors];
3468
- export type SessionFeedbackSetResponses = {
3469
- /**
3470
- * Feedback saved
3471
- */
3472
- 200: Feedback;
3473
- };
3474
- export type SessionFeedbackSetResponse = SessionFeedbackSetResponses[keyof SessionFeedbackSetResponses];
3475
- export type SessionFeedbackDeleteData = {
3476
- body?: never;
3477
- path: {
3478
- /**
3479
- * Session ID
3480
- */
3481
- sessionID: string;
3482
- /**
3483
- * Assistant message ID
3484
- */
3485
- messageID: string;
3486
- };
3487
- query?: {
3488
- directory?: string;
3489
- };
3490
- url: "/session/{sessionID}/feedback/{messageID}";
3491
- };
3492
- export type SessionFeedbackDeleteErrors = {
3493
- /**
3494
- * Bad request
3495
- */
3496
- 400: BadRequestError;
3497
- /**
3498
- * Not found
3499
- */
3500
- 404: NotFoundError;
3501
- };
3502
- export type SessionFeedbackDeleteError = SessionFeedbackDeleteErrors[keyof SessionFeedbackDeleteErrors];
3503
- export type SessionFeedbackDeleteResponses = {
3504
- /**
3505
- * Feedback deleted
3506
- */
3507
- 200: boolean;
3508
- };
3509
- export type SessionFeedbackDeleteResponse = SessionFeedbackDeleteResponses[keyof SessionFeedbackDeleteResponses];
3510
- export type SessionFeedbackGetData = {
3511
- body?: never;
3512
- path: {
3513
- /**
3514
- * Session ID
3515
- */
3516
- sessionID: string;
3517
- /**
3518
- * Assistant message ID
3519
- */
3520
- messageID: string;
3521
- };
3522
- query?: {
3523
- directory?: string;
3524
- };
3525
- url: "/session/{sessionID}/feedback/{messageID}";
3526
- };
3527
- export type SessionFeedbackGetErrors = {
3528
- /**
3529
- * Bad request
3530
- */
3531
- 400: BadRequestError;
3532
- /**
3533
- * Not found
3534
- */
3535
- 404: NotFoundError;
3536
- };
3537
- export type SessionFeedbackGetError = SessionFeedbackGetErrors[keyof SessionFeedbackGetErrors];
3538
- export type SessionFeedbackGetResponses = {
3539
- /**
3540
- * Feedback or null
3541
- */
3542
- 200: Feedback | null;
3543
- };
3544
- export type SessionFeedbackGetResponse = SessionFeedbackGetResponses[keyof SessionFeedbackGetResponses];
3545
- export type CortexListData = {
3546
- body?: never;
3547
- path?: never;
3548
- query?: {
3549
- directory?: string;
3550
- sessionID?: string;
3551
- };
3552
- url: "/cortex/tasks";
3553
- };
3554
- export type CortexListErrors = {
3555
- /**
3556
- * Bad request
3557
- */
3558
- 400: BadRequestError;
3559
- };
3560
- export type CortexListError = CortexListErrors[keyof CortexListErrors];
3561
- export type CortexListResponses = {
3562
- /**
3563
- * List of tasks
3564
- */
3565
- 200: Array<CortexTask>;
3566
- };
3567
- export type CortexListResponse = CortexListResponses[keyof CortexListResponses];
3568
- export type CortexGetData = {
3569
- body?: never;
3570
- path: {
3571
- taskID: string;
3572
- };
3573
- query?: {
3574
- directory?: string;
3575
- };
3576
- url: "/cortex/tasks/{taskID}";
3577
- };
3578
- export type CortexGetErrors = {
3579
- /**
3580
- * Bad request
3581
- */
3582
- 400: BadRequestError;
3583
- /**
3584
- * Not found
3585
- */
3586
- 404: NotFoundError;
3587
- };
3588
- export type CortexGetError = CortexGetErrors[keyof CortexGetErrors];
3589
- export type CortexGetResponses = {
3590
- /**
3591
- * Task details
3592
- */
3593
- 200: CortexTask;
3594
- };
3595
- export type CortexGetResponse = CortexGetResponses[keyof CortexGetResponses];
3596
- export type CortexOutputData = {
3597
- body?: never;
3598
- path: {
3599
- taskID: string;
3600
- };
3601
- query?: {
3602
- directory?: string;
3603
- };
3604
- url: "/cortex/tasks/{taskID}/output";
3605
- };
3606
- export type CortexOutputErrors = {
3607
- /**
3608
- * Bad request
3609
- */
3610
- 400: BadRequestError;
3611
- /**
3612
- * Not found
3613
- */
3614
- 404: NotFoundError;
3615
- };
3616
- export type CortexOutputError = CortexOutputErrors[keyof CortexOutputErrors];
3617
- export type CortexOutputResponses = {
3618
- /**
3619
- * Task output
3620
- */
3621
- 200: {
3622
- output: string;
3623
- };
3624
- };
3625
- export type CortexOutputResponse = CortexOutputResponses[keyof CortexOutputResponses];
3626
- export type CortexCancelData = {
3627
- body?: never;
3628
- path: {
3629
- taskID: string;
3630
- };
3631
- query?: {
3632
- directory?: string;
3633
- };
3634
- url: "/cortex/tasks/{taskID}/cancel";
3635
- };
3636
- export type CortexCancelErrors = {
3637
- /**
3638
- * Bad request
3639
- */
3640
- 400: BadRequestError;
3641
- /**
3642
- * Not found
3643
- */
3644
- 404: NotFoundError;
3645
- };
3646
- export type CortexCancelError = CortexCancelErrors[keyof CortexCancelErrors];
3647
- export type CortexCancelResponses = {
3648
- /**
3649
- * Task cancelled
3650
- */
3651
- 200: boolean;
3652
- };
3653
- export type CortexCancelResponse = CortexCancelResponses[keyof CortexCancelResponses];
3654
- export type CommandListData = {
3655
- body?: never;
3656
- path?: never;
3657
- query?: {
3658
- directory?: string;
3659
- };
3660
- url: "/command";
3661
- };
3662
- export type CommandListResponses = {
3663
- /**
3664
- * List of commands
3665
- */
3666
- 200: Array<Command>;
3667
- };
3668
- export type CommandListResponse = CommandListResponses[keyof CommandListResponses];
3669
- export type ConfigProvidersData = {
3670
- body?: never;
3671
- path?: never;
3672
- query?: {
3673
- directory?: string;
3674
- };
3675
- url: "/config/providers";
3676
- };
3677
- export type ConfigProvidersResponses = {
3678
- /**
3679
- * List of providers
3680
- */
3681
- 200: {
3682
- providers: Array<Provider>;
3683
- default: {
3684
- [key: string]: string;
3685
- };
3686
- };
3687
- };
3688
- export type ConfigProvidersResponse = ConfigProvidersResponses[keyof ConfigProvidersResponses];
3689
- export type ProviderListData = {
3690
- body?: never;
3691
- path?: never;
3692
- query?: {
3693
- directory?: string;
3694
- };
3695
- url: "/provider";
3696
- };
3697
- export type ProviderListResponses = {
3698
- /**
3699
- * List of providers
3700
- */
3701
- 200: {
3702
- all: Array<{
3703
- api?: string;
3704
- name: string;
3705
- env: Array<string>;
3706
- id: string;
3707
- npm?: string;
3708
- models: {
3709
- [key: string]: {
3710
- id: string;
3711
- name: string;
3712
- family?: string;
3713
- release_date: string;
3714
- attachment: boolean;
3715
- reasoning: boolean;
3716
- temperature: boolean;
3717
- tool_call: boolean;
3718
- interleaved?: true | {
3719
- field: "reasoning_content" | "reasoning_details";
3720
- };
3721
- cost?: {
3722
- input: number;
3723
- output: number;
3724
- cache_read?: number;
3725
- cache_write?: number;
3726
- context_over_200k?: {
3727
- input: number;
3728
- output: number;
3729
- cache_read?: number;
3730
- cache_write?: number;
3731
- };
3732
- };
3733
- limit: {
3734
- context: number;
3735
- output: number;
3736
- };
3737
- modalities?: {
3738
- input: Array<"text" | "audio" | "image" | "video" | "pdf">;
3739
- output: Array<"text" | "audio" | "image" | "video" | "pdf">;
3740
- };
3741
- experimental?: boolean;
3742
- status?: "alpha" | "beta" | "deprecated";
3743
- options: {
3744
- [key: string]: unknown;
3745
- };
3746
- headers?: {
3747
- [key: string]: string;
3748
- };
3749
- provider?: {
3750
- npm: string;
3751
- };
3752
- variants?: {
3753
- [key: string]: {
3754
- [key: string]: unknown;
3755
- };
3756
- };
3757
- };
3758
- };
3759
- }>;
3760
- default: {
3761
- [key: string]: string;
3762
- };
3763
- connected: Array<string>;
3764
- configProviders: Array<string>;
3765
- };
3766
- };
3767
- export type ProviderListResponse = ProviderListResponses[keyof ProviderListResponses];
3768
- export type ProviderAuthData = {
3769
- body?: never;
3770
- path?: never;
3771
- query?: {
3772
- directory?: string;
3773
- };
3774
- url: "/provider/auth";
3775
- };
3776
- export type ProviderAuthResponses = {
3777
- /**
3778
- * Provider auth methods
3779
- */
3780
- 200: {
3781
- [key: string]: Array<ProviderAuthMethod>;
3782
- };
3783
- };
3784
- export type ProviderAuthResponse = ProviderAuthResponses[keyof ProviderAuthResponses];
3785
- export type ProviderOauthAuthorizeData = {
3786
- body?: {
3787
- /**
3788
- * Auth method index
3789
- */
3790
- method: number;
3791
- };
3792
- path: {
3793
- /**
3794
- * Provider ID
3795
- */
3796
- providerID: string;
3797
- };
3798
- query?: {
3799
- directory?: string;
3800
- };
3801
- url: "/provider/{providerID}/oauth/authorize";
3802
- };
3803
- export type ProviderOauthAuthorizeErrors = {
3804
- /**
3805
- * Bad request
3806
- */
3807
- 400: BadRequestError;
3808
- };
3809
- export type ProviderOauthAuthorizeError = ProviderOauthAuthorizeErrors[keyof ProviderOauthAuthorizeErrors];
3810
- export type ProviderOauthAuthorizeResponses = {
3811
- /**
3812
- * Authorization URL and method
3813
- */
3814
- 200: ProviderAuthAuthorization;
3815
- };
3816
- export type ProviderOauthAuthorizeResponse = ProviderOauthAuthorizeResponses[keyof ProviderOauthAuthorizeResponses];
3817
- export type ProviderOauthCallbackData = {
3818
- body?: {
3819
- /**
3820
- * Auth method index
3821
- */
3822
- method: number;
3823
- /**
3824
- * OAuth authorization code
3825
- */
3826
- code?: string;
3827
- };
3828
- path: {
3829
- /**
3830
- * Provider ID
3831
- */
3832
- providerID: string;
3833
- };
3834
- query?: {
3835
- directory?: string;
3836
- };
3837
- url: "/provider/{providerID}/oauth/callback";
3838
- };
3839
- export type ProviderOauthCallbackErrors = {
3840
- /**
3841
- * Bad request
3842
- */
3843
- 400: BadRequestError;
3844
- };
3845
- export type ProviderOauthCallbackError = ProviderOauthCallbackErrors[keyof ProviderOauthCallbackErrors];
3846
- export type ProviderOauthCallbackResponses = {
3847
- /**
3848
- * OAuth callback processed successfully
3849
- */
3850
- 200: boolean;
3851
- };
3852
- export type ProviderOauthCallbackResponse = ProviderOauthCallbackResponses[keyof ProviderOauthCallbackResponses];
3853
- export type FindTextData = {
3854
- body?: never;
3855
- path?: never;
3856
- query: {
3857
- directory?: string;
3858
- pattern: string;
3859
- };
3860
- url: "/find";
3861
- };
3862
- export type FindTextResponses = {
3863
- /**
3864
- * Matches
3865
- */
3866
- 200: Array<{
3867
- path: {
3868
- text: string;
3869
- };
3870
- lines: {
3871
- text: string;
3872
- };
3873
- line_number: number;
3874
- absolute_offset: number;
3875
- submatches: Array<{
3876
- match: {
3877
- text: string;
3878
- };
3879
- start: number;
3880
- end: number;
3881
- }>;
3882
- }>;
3883
- };
3884
- export type FindTextResponse = FindTextResponses[keyof FindTextResponses];
3885
- export type FindFilesData = {
3886
- body?: never;
3887
- path?: never;
3888
- query: {
3889
- directory?: string;
3890
- query: string;
3891
- dirs?: "true" | "false";
3892
- type?: "file" | "directory";
3893
- limit?: number;
3894
- };
3895
- url: "/find/file";
3896
- };
3897
- export type FindFilesResponses = {
3898
- /**
3899
- * File paths
3900
- */
3901
- 200: Array<string>;
3902
- };
3903
- export type FindFilesResponse = FindFilesResponses[keyof FindFilesResponses];
3904
- export type FindSymbolsData = {
3905
- body?: never;
3906
- path?: never;
3907
- query: {
3908
- directory?: string;
3909
- query: string;
3910
- };
3911
- url: "/find/symbol";
3912
- };
3913
- export type FindSymbolsResponses = {
3914
- /**
3915
- * Symbols
3916
- */
3917
- 200: Array<Symbol>;
3918
- };
3919
- export type FindSymbolsResponse = FindSymbolsResponses[keyof FindSymbolsResponses];
3920
- export type FileListData = {
3921
- body?: never;
3922
- path?: never;
3923
- query: {
3924
- directory?: string;
3925
- path: string;
3926
- };
3927
- url: "/file";
3928
- };
3929
- export type FileListResponses = {
3930
- /**
3931
- * Files and directories
3932
- */
3933
- 200: Array<FileNode>;
3934
- };
3935
- export type FileListResponse = FileListResponses[keyof FileListResponses];
3936
- export type FileReadData = {
3937
- body?: never;
3938
- path?: never;
3939
- query: {
3940
- directory?: string;
3941
- path: string;
3942
- };
3943
- url: "/file/content";
3944
- };
3945
- export type FileReadResponses = {
3946
- /**
3947
- * File content
3948
- */
3949
- 200: FileContent;
3950
- };
3951
- export type FileReadResponse = FileReadResponses[keyof FileReadResponses];
3952
- export type FileStatusData = {
3953
- body?: never;
3954
- path?: never;
3955
- query?: {
3956
- directory?: string;
3957
- };
3958
- url: "/file/status";
3959
- };
3960
- export type FileStatusResponses = {
3961
- /**
3962
- * File status
3963
- */
3964
- 200: Array<File>;
3965
- };
3966
- export type FileStatusResponse = FileStatusResponses[keyof FileStatusResponses];
3967
- export type AppLogData = {
3968
- body?: {
3969
- /**
3970
- * Service name for the log entry
3971
- */
3972
- service: string;
3973
- /**
3974
- * Log level
3975
- */
3976
- level: "debug" | "info" | "error" | "warn";
3977
- /**
3978
- * Log message
3979
- */
3980
- message: string;
3981
- /**
3982
- * Additional metadata for the log entry
3983
- */
3984
- extra?: {
3985
- [key: string]: unknown;
3986
- };
3987
- };
3988
- path?: never;
3989
- query?: {
3990
- directory?: string;
3991
- };
3992
- url: "/log";
3993
- };
3994
- export type AppLogErrors = {
3995
- /**
3996
- * Bad request
3997
- */
3998
- 400: BadRequestError;
3999
- };
4000
- export type AppLogError = AppLogErrors[keyof AppLogErrors];
4001
- export type AppLogResponses = {
4002
- /**
4003
- * Log entry written successfully
4004
- */
4005
- 200: boolean;
4006
- };
4007
- export type AppLogResponse = AppLogResponses[keyof AppLogResponses];
4008
- export type AppAgentsData = {
4009
- body?: never;
4010
- path?: never;
4011
- query?: {
4012
- directory?: string;
4013
- };
4014
- url: "/agent";
4015
- };
4016
- export type AppAgentsResponses = {
4017
- /**
4018
- * List of agents
4019
- */
4020
- 200: Array<Agent>;
4021
- };
4022
- export type AppAgentsResponse = AppAgentsResponses[keyof AppAgentsResponses];
4023
- export type McpStatusData = {
4024
- body?: never;
4025
- path?: never;
4026
- query?: {
4027
- directory?: string;
4028
- };
4029
- url: "/mcp";
4030
- };
4031
- export type McpStatusResponses = {
4032
- /**
4033
- * MCP server status
4034
- */
4035
- 200: {
4036
- [key: string]: McpStatus;
4037
- };
4038
- };
4039
- export type McpStatusResponse = McpStatusResponses[keyof McpStatusResponses];
4040
- export type McpAddData = {
4041
- body?: {
4042
- name: string;
4043
- config: McpLocalConfig | McpRemoteConfig;
4044
- };
4045
- path?: never;
4046
- query?: {
4047
- directory?: string;
4048
- };
4049
- url: "/mcp";
4050
- };
4051
- export type McpAddErrors = {
4052
- /**
4053
- * Bad request
4054
- */
4055
- 400: BadRequestError;
4056
- };
4057
- export type McpAddError = McpAddErrors[keyof McpAddErrors];
4058
- export type McpAddResponses = {
4059
- /**
4060
- * MCP server added successfully
4061
- */
4062
- 200: {
4063
- [key: string]: McpStatus;
4064
- };
4065
- };
4066
- export type McpAddResponse = McpAddResponses[keyof McpAddResponses];
4067
- export type McpAuthRemoveData = {
4068
- body?: never;
4069
- path: {
4070
- name: string;
4071
- };
4072
- query?: {
4073
- directory?: string;
4074
- };
4075
- url: "/mcp/{name}/auth";
4076
- };
4077
- export type McpAuthRemoveErrors = {
4078
- /**
4079
- * Not found
4080
- */
4081
- 404: NotFoundError;
4082
- };
4083
- export type McpAuthRemoveError = McpAuthRemoveErrors[keyof McpAuthRemoveErrors];
4084
- export type McpAuthRemoveResponses = {
4085
- /**
4086
- * OAuth credentials removed
4087
- */
4088
- 200: {
4089
- success: true;
4090
- };
4091
- };
4092
- export type McpAuthRemoveResponse = McpAuthRemoveResponses[keyof McpAuthRemoveResponses];
4093
- export type McpAuthStartData = {
4094
- body?: never;
4095
- path: {
4096
- name: string;
4097
- };
4098
- query?: {
4099
- directory?: string;
4100
- };
4101
- url: "/mcp/{name}/auth";
4102
- };
4103
- export type McpAuthStartErrors = {
4104
- /**
4105
- * Bad request
4106
- */
4107
- 400: BadRequestError;
4108
- /**
4109
- * Not found
4110
- */
4111
- 404: NotFoundError;
4112
- };
4113
- export type McpAuthStartError = McpAuthStartErrors[keyof McpAuthStartErrors];
4114
- export type McpAuthStartResponses = {
4115
- /**
4116
- * OAuth flow started
4117
- */
4118
- 200: {
4119
- /**
4120
- * URL to open in browser for authorization
4121
- */
4122
- authorizationUrl: string;
4123
- };
4124
- };
4125
- export type McpAuthStartResponse = McpAuthStartResponses[keyof McpAuthStartResponses];
4126
- export type McpAuthCallbackData = {
4127
- body?: {
4128
- /**
4129
- * Authorization code from OAuth callback
4130
- */
4131
- code: string;
4132
- };
4133
- path: {
4134
- name: string;
4135
- };
4136
- query?: {
4137
- directory?: string;
4138
- };
4139
- url: "/mcp/{name}/auth/callback";
4140
- };
4141
- export type McpAuthCallbackErrors = {
4142
- /**
4143
- * Bad request
4144
- */
4145
- 400: BadRequestError;
4146
- /**
4147
- * Not found
4148
- */
4149
- 404: NotFoundError;
4150
- };
4151
- export type McpAuthCallbackError = McpAuthCallbackErrors[keyof McpAuthCallbackErrors];
4152
- export type McpAuthCallbackResponses = {
4153
- /**
4154
- * OAuth authentication completed
4155
- */
4156
- 200: McpStatus;
4157
- };
4158
- export type McpAuthCallbackResponse = McpAuthCallbackResponses[keyof McpAuthCallbackResponses];
4159
- export type McpAuthAuthenticateData = {
4160
- body?: never;
4161
- path: {
4162
- name: string;
4163
- };
4164
- query?: {
4165
- directory?: string;
4166
- };
4167
- url: "/mcp/{name}/auth/authenticate";
4168
- };
4169
- export type McpAuthAuthenticateErrors = {
4170
- /**
4171
- * Bad request
4172
- */
4173
- 400: BadRequestError;
4174
- /**
4175
- * Not found
4176
- */
4177
- 404: NotFoundError;
4178
- };
4179
- export type McpAuthAuthenticateError = McpAuthAuthenticateErrors[keyof McpAuthAuthenticateErrors];
4180
- export type McpAuthAuthenticateResponses = {
4181
- /**
4182
- * OAuth authentication completed
4183
- */
4184
- 200: McpStatus;
4185
- };
4186
- export type McpAuthAuthenticateResponse = McpAuthAuthenticateResponses[keyof McpAuthAuthenticateResponses];
4187
- export type McpConnectData = {
4188
- body?: never;
4189
- path: {
4190
- name: string;
4191
- };
4192
- query?: {
4193
- directory?: string;
4194
- };
4195
- url: "/mcp/{name}/connect";
4196
- };
4197
- export type McpConnectResponses = {
4198
- /**
4199
- * MCP server connected successfully
4200
- */
4201
- 200: boolean;
4202
- };
4203
- export type McpConnectResponse = McpConnectResponses[keyof McpConnectResponses];
4204
- export type McpDisconnectData = {
4205
- body?: never;
4206
- path: {
4207
- name: string;
4208
- };
4209
- query?: {
4210
- directory?: string;
4211
- };
4212
- url: "/mcp/{name}/disconnect";
4213
- };
4214
- export type McpDisconnectResponses = {
4215
- /**
4216
- * MCP server disconnected successfully
4217
- */
4218
- 200: boolean;
4219
- };
4220
- export type McpDisconnectResponse = McpDisconnectResponses[keyof McpDisconnectResponses];
4221
- export type ExperimentalResourceListData = {
4222
- body?: never;
4223
- path?: never;
4224
- query?: {
4225
- directory?: string;
4226
- };
4227
- url: "/experimental/resource";
4228
- };
4229
- export type ExperimentalResourceListResponses = {
4230
- /**
4231
- * MCP resources
4232
- */
4233
- 200: {
4234
- [key: string]: McpResource;
4235
- };
4236
- };
4237
- export type ExperimentalResourceListResponse = ExperimentalResourceListResponses[keyof ExperimentalResourceListResponses];
4238
- export type LspStatusData = {
4239
- body?: never;
4240
- path?: never;
4241
- query?: {
4242
- directory?: string;
4243
- };
4244
- url: "/lsp";
4245
- };
4246
- export type LspStatusResponses = {
4247
- /**
4248
- * LSP server status
4249
- */
4250
- 200: Array<LspStatus>;
4251
- };
4252
- export type LspStatusResponse = LspStatusResponses[keyof LspStatusResponses];
4253
- export type FormatterStatusData = {
4254
- body?: never;
4255
- path?: never;
4256
- query?: {
4257
- directory?: string;
4258
- };
4259
- url: "/formatter";
4260
- };
4261
- export type FormatterStatusResponses = {
4262
- /**
4263
- * Formatter status
4264
- */
4265
- 200: Array<FormatterStatus>;
4266
- };
4267
- export type FormatterStatusResponse = FormatterStatusResponses[keyof FormatterStatusResponses];
4268
- export type TuiAppendPromptData = {
4269
- body?: {
4270
- text: string;
4271
- };
4272
- path?: never;
4273
- query?: {
4274
- directory?: string;
4275
- };
4276
- url: "/tui/append-prompt";
4277
- };
4278
- export type TuiAppendPromptErrors = {
4279
- /**
4280
- * Bad request
4281
- */
4282
- 400: BadRequestError;
4283
- };
4284
- export type TuiAppendPromptError = TuiAppendPromptErrors[keyof TuiAppendPromptErrors];
4285
- export type TuiAppendPromptResponses = {
4286
- /**
4287
- * Prompt processed successfully
4288
- */
4289
- 200: boolean;
4290
- };
4291
- export type TuiAppendPromptResponse = TuiAppendPromptResponses[keyof TuiAppendPromptResponses];
4292
- export type TuiOpenHelpData = {
4293
- body?: never;
4294
- path?: never;
4295
- query?: {
4296
- directory?: string;
4297
- };
4298
- url: "/tui/open-help";
4299
- };
4300
- export type TuiOpenHelpResponses = {
4301
- /**
4302
- * Help dialog opened successfully
4303
- */
4304
- 200: boolean;
4305
- };
4306
- export type TuiOpenHelpResponse = TuiOpenHelpResponses[keyof TuiOpenHelpResponses];
4307
- export type TuiOpenSessionsData = {
4308
- body?: never;
4309
- path?: never;
4310
- query?: {
4311
- directory?: string;
4312
- };
4313
- url: "/tui/open-sessions";
4314
- };
4315
- export type TuiOpenSessionsResponses = {
4316
- /**
4317
- * Session dialog opened successfully
4318
- */
4319
- 200: boolean;
4320
- };
4321
- export type TuiOpenSessionsResponse = TuiOpenSessionsResponses[keyof TuiOpenSessionsResponses];
4322
- export type TuiOpenThemesData = {
4323
- body?: never;
4324
- path?: never;
4325
- query?: {
4326
- directory?: string;
4327
- };
4328
- url: "/tui/open-themes";
4329
- };
4330
- export type TuiOpenThemesResponses = {
4331
- /**
4332
- * Theme dialog opened successfully
4333
- */
4334
- 200: boolean;
4335
- };
4336
- export type TuiOpenThemesResponse = TuiOpenThemesResponses[keyof TuiOpenThemesResponses];
4337
- export type TuiOpenModelsData = {
4338
- body?: never;
4339
- path?: never;
4340
- query?: {
4341
- directory?: string;
4342
- };
4343
- url: "/tui/open-models";
4344
- };
4345
- export type TuiOpenModelsResponses = {
4346
- /**
4347
- * Model dialog opened successfully
4348
- */
4349
- 200: boolean;
4350
- };
4351
- export type TuiOpenModelsResponse = TuiOpenModelsResponses[keyof TuiOpenModelsResponses];
4352
- export type TuiSubmitPromptData = {
4353
- body?: never;
4354
- path?: never;
4355
- query?: {
4356
- directory?: string;
4357
- };
4358
- url: "/tui/submit-prompt";
4359
- };
4360
- export type TuiSubmitPromptResponses = {
4361
- /**
4362
- * Prompt submitted successfully
4363
- */
4364
- 200: boolean;
4365
- };
4366
- export type TuiSubmitPromptResponse = TuiSubmitPromptResponses[keyof TuiSubmitPromptResponses];
4367
- export type TuiClearPromptData = {
4368
- body?: never;
4369
- path?: never;
4370
- query?: {
4371
- directory?: string;
4372
- };
4373
- url: "/tui/clear-prompt";
4374
- };
4375
- export type TuiClearPromptResponses = {
4376
- /**
4377
- * Prompt cleared successfully
4378
- */
4379
- 200: boolean;
4380
- };
4381
- export type TuiClearPromptResponse = TuiClearPromptResponses[keyof TuiClearPromptResponses];
4382
- export type TuiExecuteCommandData = {
4383
- body?: {
4384
- command: string;
4385
- };
4386
- path?: never;
4387
- query?: {
4388
- directory?: string;
4389
- };
4390
- url: "/tui/execute-command";
4391
- };
4392
- export type TuiExecuteCommandErrors = {
4393
- /**
4394
- * Bad request
4395
- */
4396
- 400: BadRequestError;
4397
- };
4398
- export type TuiExecuteCommandError = TuiExecuteCommandErrors[keyof TuiExecuteCommandErrors];
4399
- export type TuiExecuteCommandResponses = {
4400
- /**
4401
- * Command executed successfully
4402
- */
4403
- 200: boolean;
4404
- };
4405
- export type TuiExecuteCommandResponse = TuiExecuteCommandResponses[keyof TuiExecuteCommandResponses];
4406
- export type TuiShowToastData = {
4407
- body?: {
4408
- title?: string;
4409
- message: string;
4410
- variant: "info" | "success" | "warning" | "error";
4411
- /**
4412
- * Duration in milliseconds
4413
- */
4414
- duration?: number;
4415
- };
4416
- path?: never;
4417
- query?: {
4418
- directory?: string;
4419
- };
4420
- url: "/tui/show-toast";
4421
- };
4422
- export type TuiShowToastResponses = {
4423
- /**
4424
- * Toast notification shown successfully
4425
- */
4426
- 200: boolean;
4427
- };
4428
- export type TuiShowToastResponse = TuiShowToastResponses[keyof TuiShowToastResponses];
4429
- export type TuiPublishData = {
4430
- body?: EventTuiPromptAppend | EventTuiCommandExecute | EventTuiToastShow | EventTuiSessionSelect;
4431
- path?: never;
4432
- query?: {
4433
- directory?: string;
4434
- };
4435
- url: "/tui/publish";
4436
- };
4437
- export type TuiPublishErrors = {
4438
- /**
4439
- * Bad request
4440
- */
4441
- 400: BadRequestError;
4442
- };
4443
- export type TuiPublishError = TuiPublishErrors[keyof TuiPublishErrors];
4444
- export type TuiPublishResponses = {
4445
- /**
4446
- * Event published successfully
4447
- */
4448
- 200: boolean;
4449
- };
4450
- export type TuiPublishResponse = TuiPublishResponses[keyof TuiPublishResponses];
4451
- export type TuiSelectSessionData = {
4452
- body?: {
4453
- /**
4454
- * Session ID to navigate to
4455
- */
4456
- sessionID: string;
4457
- };
4458
- path?: never;
4459
- query?: {
4460
- directory?: string;
4461
- };
4462
- url: "/tui/select-session";
4463
- };
4464
- export type TuiSelectSessionErrors = {
4465
- /**
4466
- * Bad request
4467
- */
4468
- 400: BadRequestError;
4469
- /**
4470
- * Not found
4471
- */
4472
- 404: NotFoundError;
4473
- };
4474
- export type TuiSelectSessionError = TuiSelectSessionErrors[keyof TuiSelectSessionErrors];
4475
- export type TuiSelectSessionResponses = {
4476
- /**
4477
- * Session selected successfully
4478
- */
4479
- 200: boolean;
4480
- };
4481
- export type TuiSelectSessionResponse = TuiSelectSessionResponses[keyof TuiSelectSessionResponses];
4482
- export type TuiControlNextData = {
4483
- body?: never;
4484
- path?: never;
4485
- query?: {
4486
- directory?: string;
4487
- };
4488
- url: "/tui/control/next";
4489
- };
4490
- export type TuiControlNextResponses = {
4491
- /**
4492
- * Next TUI request
4493
- */
4494
- 200: {
4495
- path: string;
4496
- body: unknown;
4497
- };
4498
- };
4499
- export type TuiControlNextResponse = TuiControlNextResponses[keyof TuiControlNextResponses];
4500
- export type TuiControlResponseData = {
4501
- body?: unknown;
4502
- path?: never;
4503
- query?: {
4504
- directory?: string;
4505
- };
4506
- url: "/tui/control/response";
4507
- };
4508
- export type TuiControlResponseResponses = {
4509
- /**
4510
- * Response submitted successfully
4511
- */
4512
- 200: boolean;
4513
- };
4514
- export type TuiControlResponseResponse = TuiControlResponseResponses[keyof TuiControlResponseResponses];
4515
- export type AuthSetData = {
4516
- body?: Auth;
4517
- path: {
4518
- providerID: string;
4519
- };
4520
- query?: {
4521
- directory?: string;
4522
- };
4523
- url: "/auth/{providerID}";
4524
- };
4525
- export type AuthSetErrors = {
4526
- /**
4527
- * Bad request
4528
- */
4529
- 400: BadRequestError;
4530
- };
4531
- export type AuthSetError = AuthSetErrors[keyof AuthSetErrors];
4532
- export type AuthSetResponses = {
4533
- /**
4534
- * Successfully set authentication credentials
4535
- */
4536
- 200: boolean;
4537
- };
4538
- export type AuthSetResponse = AuthSetResponses[keyof AuthSetResponses];
4539
- export type EventSubscribeData = {
4540
- body?: never;
4541
- path?: never;
4542
- query?: {
4543
- directory?: string;
4544
- };
4545
- url: "/event";
4546
- };
4547
- export type EventSubscribeResponses = {
4548
- /**
4549
- * Event stream
4550
- */
4551
- 200: Event;
4552
- };
4553
- export type EventSubscribeResponse = EventSubscribeResponses[keyof EventSubscribeResponses];