@pixelml/sdk 0.0.0-dev-202512250753 → 0.0.0-dev-202512260335

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