@jonsoc/sdk 1.1.34 → 1.1.49

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