@xutest1/sdk 0.3.0 → 0.3.2

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.
@@ -1,2872 +0,0 @@
1
- export type Project = {
2
- id: string;
3
- worktree: string;
4
- vcs?: "git";
5
- time: {
6
- created: number;
7
- initialized?: number;
8
- };
9
- };
10
- /**
11
- * Custom keybind configurations
12
- */
13
- export type KeybindsConfig = {
14
- /**
15
- * Leader key for keybind combinations
16
- */
17
- leader?: string;
18
- /**
19
- * Show help dialog
20
- */
21
- app_help?: string;
22
- /**
23
- * Exit the application
24
- */
25
- app_exit?: string;
26
- /**
27
- * Open external editor
28
- */
29
- editor_open?: string;
30
- /**
31
- * List available themes
32
- */
33
- theme_list?: string;
34
- /**
35
- * Create/update AGENTS.md
36
- */
37
- project_init?: string;
38
- /**
39
- * Toggle tool details
40
- */
41
- tool_details?: string;
42
- /**
43
- * Toggle thinking blocks
44
- */
45
- thinking_blocks?: string;
46
- /**
47
- * Export session to editor
48
- */
49
- session_export?: string;
50
- /**
51
- * Create a new session
52
- */
53
- session_new?: string;
54
- /**
55
- * List all sessions
56
- */
57
- session_list?: string;
58
- /**
59
- * Show session timeline
60
- */
61
- session_timeline?: string;
62
- /**
63
- * Share current session
64
- */
65
- session_share?: string;
66
- /**
67
- * Unshare current session
68
- */
69
- session_unshare?: string;
70
- /**
71
- * Interrupt current session
72
- */
73
- session_interrupt?: string;
74
- /**
75
- * Compact the session
76
- */
77
- session_compact?: string;
78
- /**
79
- * Cycle to next child session
80
- */
81
- session_child_cycle?: string;
82
- /**
83
- * Cycle to previous child session
84
- */
85
- session_child_cycle_reverse?: string;
86
- /**
87
- * Scroll messages up by one page
88
- */
89
- messages_page_up?: string;
90
- /**
91
- * Scroll messages down by one page
92
- */
93
- messages_page_down?: string;
94
- /**
95
- * Scroll messages up by half page
96
- */
97
- messages_half_page_up?: string;
98
- /**
99
- * Scroll messages down by half page
100
- */
101
- messages_half_page_down?: string;
102
- /**
103
- * Navigate to first message
104
- */
105
- messages_first?: string;
106
- /**
107
- * Navigate to last message
108
- */
109
- messages_last?: string;
110
- /**
111
- * Copy message
112
- */
113
- messages_copy?: string;
114
- /**
115
- * Undo message
116
- */
117
- messages_undo?: string;
118
- /**
119
- * Redo message
120
- */
121
- messages_redo?: string;
122
- /**
123
- * List available models
124
- */
125
- model_list?: string;
126
- /**
127
- * Next recent model
128
- */
129
- model_cycle_recent?: string;
130
- /**
131
- * Previous recent model
132
- */
133
- model_cycle_recent_reverse?: string;
134
- /**
135
- * List agents
136
- */
137
- agent_list?: string;
138
- /**
139
- * Next agent
140
- */
141
- agent_cycle?: string;
142
- /**
143
- * Previous agent
144
- */
145
- agent_cycle_reverse?: string;
146
- /**
147
- * Clear input field
148
- */
149
- input_clear?: string;
150
- /**
151
- * Paste from clipboard
152
- */
153
- input_paste?: string;
154
- /**
155
- * Submit input
156
- */
157
- input_submit?: string;
158
- /**
159
- * Insert newline in input
160
- */
161
- input_newline?: string;
162
- /**
163
- * @deprecated use agent_cycle. Next mode
164
- */
165
- switch_mode?: string;
166
- /**
167
- * @deprecated use agent_cycle_reverse. Previous mode
168
- */
169
- switch_mode_reverse?: string;
170
- /**
171
- * @deprecated use agent_cycle. Next agent
172
- */
173
- switch_agent?: string;
174
- /**
175
- * @deprecated use agent_cycle_reverse. Previous agent
176
- */
177
- switch_agent_reverse?: string;
178
- /**
179
- * @deprecated Currently not available. List files
180
- */
181
- file_list?: string;
182
- /**
183
- * @deprecated Close file
184
- */
185
- file_close?: string;
186
- /**
187
- * @deprecated Search file
188
- */
189
- file_search?: string;
190
- /**
191
- * @deprecated Split/unified diff
192
- */
193
- file_diff_toggle?: string;
194
- /**
195
- * @deprecated Navigate to previous message
196
- */
197
- messages_previous?: string;
198
- /**
199
- * @deprecated Navigate to next message
200
- */
201
- messages_next?: string;
202
- /**
203
- * @deprecated Toggle layout
204
- */
205
- messages_layout_toggle?: string;
206
- /**
207
- * @deprecated use messages_undo. Revert message
208
- */
209
- messages_revert?: string;
210
- };
211
- export type AgentConfig = {
212
- model?: string;
213
- temperature?: number;
214
- top_p?: number;
215
- prompt?: string;
216
- tools?: {
217
- [key: string]: boolean;
218
- };
219
- disable?: boolean;
220
- /**
221
- * Description of when to use the agent
222
- */
223
- description?: string;
224
- mode?: "subagent" | "primary" | "all";
225
- permission?: {
226
- edit?: "ask" | "allow" | "deny";
227
- bash?: ("ask" | "allow" | "deny") | {
228
- [key: string]: "ask" | "allow" | "deny";
229
- };
230
- webfetch?: "ask" | "allow" | "deny";
231
- };
232
- [key: string]: unknown | string | number | {
233
- [key: string]: boolean;
234
- } | boolean | ("subagent" | "primary" | "all") | {
235
- edit?: "ask" | "allow" | "deny";
236
- bash?: ("ask" | "allow" | "deny") | {
237
- [key: string]: "ask" | "allow" | "deny";
238
- };
239
- webfetch?: "ask" | "allow" | "deny";
240
- } | undefined;
241
- };
242
- export type McpLocalConfig = {
243
- /**
244
- * Type of MCP server connection
245
- */
246
- type: "local";
247
- /**
248
- * Command and arguments to run the MCP server
249
- */
250
- command: Array<string>;
251
- /**
252
- * Environment variables to set when running the MCP server
253
- */
254
- environment?: {
255
- [key: string]: string;
256
- };
257
- /**
258
- * Enable or disable the MCP server on startup
259
- */
260
- enabled?: boolean;
261
- };
262
- export type McpRemoteConfig = {
263
- /**
264
- * Type of MCP server connection
265
- */
266
- type: "remote";
267
- /**
268
- * URL of the remote MCP server
269
- */
270
- url: string;
271
- /**
272
- * Enable or disable the MCP server on startup
273
- */
274
- enabled?: boolean;
275
- /**
276
- * Headers to send with the request
277
- */
278
- headers?: {
279
- [key: string]: string;
280
- };
281
- };
282
- /**
283
- * @deprecated Always uses stretch layout.
284
- */
285
- export type LayoutConfig = "auto" | "stretch";
286
- export type Config = {
287
- /**
288
- * JSON schema reference for configuration validation
289
- */
290
- $schema?: string;
291
- /**
292
- * Theme name to use for the interface
293
- */
294
- theme?: string;
295
- keybinds?: KeybindsConfig;
296
- /**
297
- * TUI specific settings
298
- */
299
- tui?: {
300
- /**
301
- * TUI scroll speed
302
- */
303
- scroll_speed?: number;
304
- };
305
- /**
306
- * Command configuration, see https://opencode.ai/docs/commands
307
- */
308
- command?: {
309
- [key: string]: {
310
- template: string;
311
- description?: string;
312
- agent?: string;
313
- model?: string;
314
- subtask?: boolean;
315
- };
316
- };
317
- watcher?: {
318
- ignore?: Array<string>;
319
- };
320
- plugin?: Array<string>;
321
- snapshot?: boolean;
322
- /**
323
- * Control sharing behavior:'manual' allows manual sharing via commands, 'auto' enables automatic sharing, 'disabled' disables all sharing
324
- */
325
- share?: "manual" | "auto" | "disabled";
326
- /**
327
- * @deprecated Use 'share' field instead. Share newly created sessions automatically
328
- */
329
- autoshare?: boolean;
330
- /**
331
- * Automatically update to the latest version
332
- */
333
- autoupdate?: boolean;
334
- /**
335
- * Custom update server URL for checking and downloading updates
336
- */
337
- updateServer?: string;
338
- /**
339
- * Disable providers that are loaded automatically
340
- */
341
- disabled_providers?: Array<string>;
342
- /**
343
- * Model to use in the format of provider/model, eg anthropic/claude-2
344
- */
345
- model?: string;
346
- /**
347
- * Small model to use for tasks like title generation in the format of provider/model
348
- */
349
- small_model?: string;
350
- /**
351
- * Custom username to display in conversations instead of system username
352
- */
353
- username?: string;
354
- /**
355
- * @deprecated Use `agent` field instead.
356
- */
357
- mode?: {
358
- build?: AgentConfig;
359
- plan?: AgentConfig;
360
- [key: string]: AgentConfig | undefined;
361
- };
362
- /**
363
- * Agent configuration, see https://opencode.ai/docs/agent
364
- */
365
- agent?: {
366
- plan?: AgentConfig;
367
- build?: AgentConfig;
368
- general?: AgentConfig;
369
- [key: string]: AgentConfig | undefined;
370
- };
371
- /**
372
- * Custom provider configurations and model overrides
373
- */
374
- provider?: {
375
- [key: string]: {
376
- api?: string;
377
- name?: string;
378
- env?: Array<string>;
379
- id?: string;
380
- npm?: string;
381
- models?: {
382
- [key: string]: {
383
- id?: string;
384
- name?: string;
385
- release_date?: string;
386
- attachment?: boolean;
387
- reasoning?: boolean;
388
- temperature?: boolean;
389
- tool_call?: boolean;
390
- cost?: {
391
- input: number;
392
- output: number;
393
- cache_read?: number;
394
- cache_write?: number;
395
- };
396
- limit?: {
397
- context: number;
398
- output: number;
399
- };
400
- modalities?: {
401
- input: Array<"text" | "audio" | "image" | "video" | "pdf">;
402
- output: Array<"text" | "audio" | "image" | "video" | "pdf">;
403
- };
404
- experimental?: boolean;
405
- status?: "alpha" | "beta";
406
- options?: {
407
- [key: string]: unknown;
408
- };
409
- provider?: {
410
- npm: string;
411
- };
412
- };
413
- };
414
- options?: {
415
- apiKey?: string;
416
- baseURL?: string;
417
- /**
418
- * Timeout in milliseconds for requests to this provider. Default is 300000 (5 minutes). Set to false to disable timeout.
419
- */
420
- timeout?: number | false;
421
- [key: string]: unknown | string | (number | false) | undefined;
422
- };
423
- };
424
- };
425
- /**
426
- * MCP (Model Context Protocol) server configurations
427
- */
428
- mcp?: {
429
- [key: string]: McpLocalConfig | McpRemoteConfig;
430
- };
431
- formatter?: {
432
- [key: string]: {
433
- disabled?: boolean;
434
- command?: Array<string>;
435
- environment?: {
436
- [key: string]: string;
437
- };
438
- extensions?: Array<string>;
439
- };
440
- };
441
- lsp?: {
442
- [key: string]: {
443
- disabled: true;
444
- } | {
445
- command: Array<string>;
446
- extensions?: Array<string>;
447
- disabled?: boolean;
448
- env?: {
449
- [key: string]: string;
450
- };
451
- initialization?: {
452
- [key: string]: unknown;
453
- };
454
- };
455
- };
456
- /**
457
- * Additional instruction files or patterns to include
458
- */
459
- instructions?: Array<string>;
460
- /**
461
- * System prompt preset: beast (OpenAI), qwen (default), anthropic, gemini, codex, minimal, or none
462
- */
463
- systemPrompt?: "beast" | "qwen" | "anthropic" | "gemini" | "codex" | "minimal" | "none";
464
- layout?: LayoutConfig;
465
- permission?: {
466
- edit?: "ask" | "allow" | "deny";
467
- bash?: ("ask" | "allow" | "deny") | {
468
- [key: string]: "ask" | "allow" | "deny";
469
- };
470
- webfetch?: "ask" | "allow" | "deny";
471
- };
472
- tools?: {
473
- [key: string]: boolean;
474
- };
475
- experimental?: {
476
- hook?: {
477
- file_edited?: {
478
- [key: string]: Array<{
479
- command: Array<string>;
480
- environment?: {
481
- [key: string]: string;
482
- };
483
- }>;
484
- };
485
- session_completed?: Array<{
486
- command: Array<string>;
487
- environment?: {
488
- [key: string]: string;
489
- };
490
- }>;
491
- };
492
- /**
493
- * Number of retries for chat completions on failure
494
- */
495
- chatMaxRetries?: number;
496
- disable_paste_summary?: boolean;
497
- };
498
- /**
499
- * Enable data science mode for Jupyter notebook support
500
- */
501
- dataScienceMode?: boolean;
502
- /**
503
- * Enable spec trajectory evaluation mode for improving specs based on execution feedback
504
- */
505
- specTrajectoryMode?: boolean;
506
- /**
507
- * List of enabled MCP server IDs
508
- */
509
- enabledMcps?: Array<string>;
510
- /**
511
- * Whether the selected model is a public model
512
- */
513
- public?: boolean;
514
- };
515
- export type BadRequestError = {
516
- data: unknown | null;
517
- errors: Array<{
518
- [key: string]: unknown;
519
- }>;
520
- success: false;
521
- };
522
- export type ToolIds = Array<string>;
523
- export type ToolListItem = {
524
- id: string;
525
- description: string;
526
- parameters: unknown;
527
- };
528
- export type ToolList = Array<ToolListItem>;
529
- export type Path = {
530
- state: string;
531
- config: string;
532
- worktree: string;
533
- directory: string;
534
- };
535
- export type FileDiff = {
536
- file: string;
537
- before: string;
538
- after: string;
539
- additions: number;
540
- deletions: number;
541
- };
542
- export type Session = {
543
- id: string;
544
- projectID: string;
545
- directory: string;
546
- parentID?: string;
547
- userContext?: string;
548
- summary?: {
549
- diffs: Array<FileDiff>;
550
- };
551
- share?: {
552
- url: string;
553
- };
554
- title: string;
555
- version: string;
556
- time: {
557
- created: number;
558
- updated: number;
559
- compacting?: number;
560
- };
561
- revert?: {
562
- messageID: string;
563
- partID?: string;
564
- snapshot?: string;
565
- diff?: string;
566
- };
567
- };
568
- export type NotFoundError = {
569
- name: "NotFoundError";
570
- data: {
571
- message: string;
572
- };
573
- };
574
- export type Todo = {
575
- /**
576
- * Brief description of the task
577
- */
578
- content: string;
579
- /**
580
- * Current status of the task: pending, in_progress, completed, cancelled
581
- */
582
- status: string;
583
- /**
584
- * Priority level of the task: high, medium, low
585
- */
586
- priority: string;
587
- /**
588
- * Unique identifier for the todo item
589
- */
590
- id: string;
591
- };
592
- export type UserMessage = {
593
- id: string;
594
- sessionID: string;
595
- role: "user";
596
- time: {
597
- created: number;
598
- };
599
- summary?: {
600
- title?: string;
601
- body?: string;
602
- diffs: Array<FileDiff>;
603
- };
604
- };
605
- export type ProviderAuthError = {
606
- name: "ProviderAuthError";
607
- data: {
608
- providerID: string;
609
- message: string;
610
- };
611
- };
612
- export type UnknownError = {
613
- name: "UnknownError";
614
- data: {
615
- message: string;
616
- };
617
- };
618
- export type MessageOutputLengthError = {
619
- name: "MessageOutputLengthError";
620
- data: {
621
- [key: string]: unknown;
622
- };
623
- };
624
- export type MessageAbortedError = {
625
- name: "MessageAbortedError";
626
- data: {
627
- message: string;
628
- };
629
- };
630
- export type ApiError = {
631
- name: "APIError";
632
- data: {
633
- message: string;
634
- statusCode?: number;
635
- isRetryable: boolean;
636
- responseHeaders?: {
637
- [key: string]: string;
638
- };
639
- responseBody?: string;
640
- };
641
- };
642
- export type AssistantMessage = {
643
- id: string;
644
- sessionID: string;
645
- role: "assistant";
646
- time: {
647
- created: number;
648
- completed?: number;
649
- };
650
- error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | ApiError;
651
- system: Array<string>;
652
- parentID: string;
653
- modelID: string;
654
- providerID: string;
655
- mode: string;
656
- path: {
657
- cwd: string;
658
- root: string;
659
- };
660
- summary?: boolean;
661
- cost: number;
662
- tokens: {
663
- input: number;
664
- output: number;
665
- reasoning: number;
666
- cache: {
667
- read: number;
668
- write: number;
669
- };
670
- };
671
- };
672
- export type Message = UserMessage | AssistantMessage;
673
- export type TextPart = {
674
- id: string;
675
- sessionID: string;
676
- messageID: string;
677
- type: "text";
678
- text: string;
679
- synthetic?: boolean;
680
- time?: {
681
- start: number;
682
- end?: number;
683
- };
684
- metadata?: {
685
- [key: string]: unknown;
686
- };
687
- };
688
- export type ReasoningPart = {
689
- id: string;
690
- sessionID: string;
691
- messageID: string;
692
- type: "reasoning";
693
- text: string;
694
- metadata?: {
695
- [key: string]: unknown;
696
- };
697
- time: {
698
- start: number;
699
- end?: number;
700
- };
701
- };
702
- export type FilePartSourceText = {
703
- value: string;
704
- start: number;
705
- end: number;
706
- };
707
- export type FileSource = {
708
- text: FilePartSourceText;
709
- type: "file";
710
- path: string;
711
- };
712
- export type Range = {
713
- start: {
714
- line: number;
715
- character: number;
716
- };
717
- end: {
718
- line: number;
719
- character: number;
720
- };
721
- };
722
- export type SymbolSource = {
723
- text: FilePartSourceText;
724
- type: "symbol";
725
- path: string;
726
- range: Range;
727
- name: string;
728
- kind: number;
729
- };
730
- export type FilePartSource = FileSource | SymbolSource;
731
- export type FilePart = {
732
- id: string;
733
- sessionID: string;
734
- messageID: string;
735
- type: "file";
736
- mime: string;
737
- filename?: string;
738
- url: string;
739
- source?: FilePartSource;
740
- };
741
- export type ToolStatePending = {
742
- status: "pending";
743
- };
744
- export type ToolStateRunning = {
745
- status: "running";
746
- input: unknown;
747
- title?: string;
748
- metadata?: {
749
- [key: string]: unknown;
750
- };
751
- time: {
752
- start: number;
753
- };
754
- };
755
- export type ToolStateCompleted = {
756
- status: "completed";
757
- input: {
758
- [key: string]: unknown;
759
- };
760
- output: string;
761
- title: string;
762
- metadata: {
763
- [key: string]: unknown;
764
- };
765
- time: {
766
- start: number;
767
- end: number;
768
- compacted?: number;
769
- };
770
- attachments?: Array<FilePart>;
771
- };
772
- export type ToolStateError = {
773
- status: "error";
774
- input: {
775
- [key: string]: unknown;
776
- };
777
- error: string;
778
- metadata?: {
779
- [key: string]: unknown;
780
- };
781
- time: {
782
- start: number;
783
- end: number;
784
- };
785
- };
786
- export type ToolState = ToolStatePending | ToolStateRunning | ToolStateCompleted | ToolStateError;
787
- export type ToolPart = {
788
- id: string;
789
- sessionID: string;
790
- messageID: string;
791
- type: "tool";
792
- callID: string;
793
- tool: string;
794
- state: ToolState;
795
- metadata?: {
796
- [key: string]: unknown;
797
- };
798
- };
799
- export type StepStartPart = {
800
- id: string;
801
- sessionID: string;
802
- messageID: string;
803
- type: "step-start";
804
- snapshot?: string;
805
- };
806
- export type StepFinishPart = {
807
- id: string;
808
- sessionID: string;
809
- messageID: string;
810
- type: "step-finish";
811
- reason: string;
812
- snapshot?: string;
813
- cost: number;
814
- tokens: {
815
- input: number;
816
- output: number;
817
- reasoning: number;
818
- cache: {
819
- read: number;
820
- write: number;
821
- };
822
- };
823
- };
824
- export type SnapshotPart = {
825
- id: string;
826
- sessionID: string;
827
- messageID: string;
828
- type: "snapshot";
829
- snapshot: string;
830
- };
831
- export type PatchPart = {
832
- id: string;
833
- sessionID: string;
834
- messageID: string;
835
- type: "patch";
836
- hash: string;
837
- files: Array<string>;
838
- };
839
- export type AgentPart = {
840
- id: string;
841
- sessionID: string;
842
- messageID: string;
843
- type: "agent";
844
- name: string;
845
- source?: {
846
- value: string;
847
- start: number;
848
- end: number;
849
- };
850
- };
851
- export type RetryPart = {
852
- id: string;
853
- sessionID: string;
854
- messageID: string;
855
- type: "retry";
856
- attempt: number;
857
- error: ApiError;
858
- time: {
859
- created: number;
860
- };
861
- };
862
- export type Part = TextPart | ReasoningPart | FilePart | ToolPart | StepStartPart | StepFinishPart | SnapshotPart | PatchPart | AgentPart | RetryPart;
863
- export type TextPartInput = {
864
- id?: string;
865
- type: "text";
866
- text: string;
867
- synthetic?: boolean;
868
- time?: {
869
- start: number;
870
- end?: number;
871
- };
872
- metadata?: {
873
- [key: string]: unknown;
874
- };
875
- };
876
- export type FilePartInput = {
877
- id?: string;
878
- type: "file";
879
- mime: string;
880
- filename?: string;
881
- url: string;
882
- source?: FilePartSource;
883
- };
884
- export type AgentPartInput = {
885
- id?: string;
886
- type: "agent";
887
- name: string;
888
- source?: {
889
- value: string;
890
- start: number;
891
- end: number;
892
- };
893
- };
894
- export type Command = {
895
- name: string;
896
- description?: string;
897
- agent?: string;
898
- model?: string;
899
- template: string;
900
- subtask?: boolean;
901
- };
902
- export type Model = {
903
- id: string;
904
- name: string;
905
- release_date: string;
906
- attachment: boolean;
907
- reasoning: boolean;
908
- temperature: boolean;
909
- tool_call: boolean;
910
- cost: {
911
- input: number;
912
- output: number;
913
- cache_read?: number;
914
- cache_write?: number;
915
- };
916
- limit: {
917
- context: number;
918
- output: number;
919
- };
920
- modalities?: {
921
- input: Array<"text" | "audio" | "image" | "video" | "pdf">;
922
- output: Array<"text" | "audio" | "image" | "video" | "pdf">;
923
- };
924
- experimental?: boolean;
925
- status?: "alpha" | "beta";
926
- options: {
927
- [key: string]: unknown;
928
- };
929
- provider?: {
930
- npm: string;
931
- };
932
- };
933
- export type Provider = {
934
- api?: string;
935
- name: string;
936
- env: Array<string>;
937
- id: string;
938
- npm?: string;
939
- models: {
940
- [key: string]: Model;
941
- };
942
- };
943
- export type Symbol = {
944
- name: string;
945
- kind: number;
946
- location: {
947
- uri: string;
948
- range: Range;
949
- };
950
- };
951
- export type FileNode = {
952
- name: string;
953
- path: string;
954
- absolute: string;
955
- type: "file" | "directory";
956
- ignored: boolean;
957
- };
958
- export type FileContent = {
959
- type: "text";
960
- content: string;
961
- diff?: string;
962
- patch?: {
963
- oldFileName: string;
964
- newFileName: string;
965
- oldHeader?: string;
966
- newHeader?: string;
967
- hunks: Array<{
968
- oldStart: number;
969
- oldLines: number;
970
- newStart: number;
971
- newLines: number;
972
- lines: Array<string>;
973
- }>;
974
- index?: string;
975
- };
976
- encoding?: "base64";
977
- mimeType?: string;
978
- };
979
- export type File = {
980
- path: string;
981
- added: number;
982
- removed: number;
983
- status: "added" | "deleted" | "modified";
984
- };
985
- export type Agent = {
986
- name: string;
987
- description?: string;
988
- mode: "subagent" | "primary" | "all";
989
- builtIn: boolean;
990
- topP?: number;
991
- temperature?: number;
992
- permission: {
993
- edit: "ask" | "allow" | "deny";
994
- bash: {
995
- [key: string]: "ask" | "allow" | "deny";
996
- };
997
- webfetch?: "ask" | "allow" | "deny";
998
- };
999
- model?: {
1000
- modelID: string;
1001
- providerID: string;
1002
- };
1003
- prompt?: string;
1004
- tools: {
1005
- [key: string]: boolean;
1006
- };
1007
- options: {
1008
- [key: string]: unknown;
1009
- };
1010
- };
1011
- export type OAuth = {
1012
- type: "oauth";
1013
- refresh: string;
1014
- access: string;
1015
- expires: number;
1016
- };
1017
- export type ApiAuth = {
1018
- type: "api";
1019
- key: string;
1020
- };
1021
- export type WellKnownAuth = {
1022
- type: "wellknown";
1023
- key: string;
1024
- token: string;
1025
- };
1026
- export type Auth = OAuth | ApiAuth | WellKnownAuth;
1027
- export type EventInstallationUpdated = {
1028
- type: "installation.updated";
1029
- properties: {
1030
- version: string;
1031
- };
1032
- };
1033
- export type EventLspClientDiagnostics = {
1034
- type: "lsp.client.diagnostics";
1035
- properties: {
1036
- serverID: string;
1037
- path: string;
1038
- };
1039
- };
1040
- export type EventMessageUpdated = {
1041
- type: "message.updated";
1042
- properties: {
1043
- info: Message;
1044
- };
1045
- };
1046
- export type EventMessageRemoved = {
1047
- type: "message.removed";
1048
- properties: {
1049
- sessionID: string;
1050
- messageID: string;
1051
- };
1052
- };
1053
- export type EventMessagePartUpdated = {
1054
- type: "message.part.updated";
1055
- properties: {
1056
- part: Part;
1057
- delta?: string;
1058
- };
1059
- };
1060
- export type EventMessagePartRemoved = {
1061
- type: "message.part.removed";
1062
- properties: {
1063
- sessionID: string;
1064
- messageID: string;
1065
- partID: string;
1066
- };
1067
- };
1068
- export type EventSessionCompacted = {
1069
- type: "session.compacted";
1070
- properties: {
1071
- sessionID: string;
1072
- };
1073
- };
1074
- export type Permission = {
1075
- id: string;
1076
- type: string;
1077
- pattern?: string | Array<string>;
1078
- sessionID: string;
1079
- messageID: string;
1080
- callID?: string;
1081
- title: string;
1082
- metadata: {
1083
- [key: string]: unknown;
1084
- };
1085
- time: {
1086
- created: number;
1087
- };
1088
- };
1089
- export type EventPermissionUpdated = {
1090
- type: "permission.updated";
1091
- properties: Permission;
1092
- };
1093
- export type EventPermissionReplied = {
1094
- type: "permission.replied";
1095
- properties: {
1096
- sessionID: string;
1097
- permissionID: string;
1098
- response: string;
1099
- };
1100
- };
1101
- export type EventFileEdited = {
1102
- type: "file.edited";
1103
- properties: {
1104
- file: string;
1105
- };
1106
- };
1107
- export type EventFileWatcherUpdated = {
1108
- type: "file.watcher.updated";
1109
- properties: {
1110
- file: string;
1111
- event: "add" | "change" | "unlink";
1112
- };
1113
- };
1114
- export type EventTodoUpdated = {
1115
- type: "todo.updated";
1116
- properties: {
1117
- sessionID: string;
1118
- todos: Array<Todo>;
1119
- };
1120
- };
1121
- export type EventSessionIdle = {
1122
- type: "session.idle";
1123
- properties: {
1124
- sessionID: string;
1125
- };
1126
- };
1127
- export type EventSessionCreated = {
1128
- type: "session.created";
1129
- properties: {
1130
- info: Session;
1131
- };
1132
- };
1133
- export type EventSessionUpdated = {
1134
- type: "session.updated";
1135
- properties: {
1136
- info: Session;
1137
- };
1138
- };
1139
- export type EventSessionDeleted = {
1140
- type: "session.deleted";
1141
- properties: {
1142
- info: Session;
1143
- };
1144
- };
1145
- export type EventSessionError = {
1146
- type: "session.error";
1147
- properties: {
1148
- sessionID?: string;
1149
- error?: ProviderAuthError | UnknownError | MessageOutputLengthError | MessageAbortedError | ApiError;
1150
- };
1151
- };
1152
- export type EventServerConnected = {
1153
- type: "server.connected";
1154
- properties: {
1155
- [key: string]: unknown;
1156
- };
1157
- };
1158
- export type EventIdeInstalled = {
1159
- type: "ide.installed";
1160
- properties: {
1161
- ide: string;
1162
- };
1163
- };
1164
- export type Event = EventInstallationUpdated | EventLspClientDiagnostics | EventMessageUpdated | EventMessageRemoved | EventMessagePartUpdated | EventMessagePartRemoved | EventSessionCompacted | EventPermissionUpdated | EventPermissionReplied | EventFileEdited | EventFileWatcherUpdated | EventTodoUpdated | EventSessionIdle | EventSessionCreated | EventSessionUpdated | EventSessionDeleted | EventSessionError | EventServerConnected | EventIdeInstalled;
1165
- export type ProjectListData = {
1166
- body?: never;
1167
- path?: never;
1168
- query?: {
1169
- directory?: string;
1170
- };
1171
- url: "/project";
1172
- };
1173
- export type ProjectListResponses = {
1174
- /**
1175
- * List of projects
1176
- */
1177
- 200: Array<Project>;
1178
- };
1179
- export type ProjectListResponse = ProjectListResponses[keyof ProjectListResponses];
1180
- export type ProjectCurrentData = {
1181
- body?: never;
1182
- path?: never;
1183
- query?: {
1184
- directory?: string;
1185
- };
1186
- url: "/project/current";
1187
- };
1188
- export type ProjectCurrentResponses = {
1189
- /**
1190
- * Current project
1191
- */
1192
- 200: Project;
1193
- };
1194
- export type ProjectCurrentResponse = ProjectCurrentResponses[keyof ProjectCurrentResponses];
1195
- export type FdsDependenciesData = {
1196
- body?: never;
1197
- path?: never;
1198
- query?: {
1199
- directory?: string;
1200
- };
1201
- url: "/fds/dependencies";
1202
- };
1203
- export type FdsDependenciesResponses = {
1204
- /**
1205
- * Dependency check result
1206
- */
1207
- 200: {
1208
- available: boolean;
1209
- message: string;
1210
- };
1211
- };
1212
- export type FdsDependenciesResponse = FdsDependenciesResponses[keyof FdsDependenciesResponses];
1213
- export type FdsPaperLoadData = {
1214
- body?: {
1215
- /**
1216
- * File path or URL to the paper
1217
- */
1218
- source: string;
1219
- };
1220
- path?: never;
1221
- query?: {
1222
- directory?: string;
1223
- };
1224
- url: "/fds/paper/load";
1225
- };
1226
- export type FdsPaperLoadResponses = {
1227
- /**
1228
- * Paper loaded successfully
1229
- */
1230
- 200: {
1231
- success: boolean;
1232
- paperId?: string;
1233
- metadata?: {
1234
- title: string;
1235
- authors: Array<string>;
1236
- year: string;
1237
- abstract: string;
1238
- source: string;
1239
- pages: number;
1240
- arxivId?: string;
1241
- };
1242
- preview?: string;
1243
- error?: string;
1244
- };
1245
- };
1246
- export type FdsPaperLoadResponse = FdsPaperLoadResponses[keyof FdsPaperLoadResponses];
1247
- export type FdsPaperCurrentContextData = {
1248
- body?: never;
1249
- path?: never;
1250
- query?: {
1251
- directory?: string;
1252
- };
1253
- url: "/fds/paper/current/context";
1254
- };
1255
- export type FdsPaperCurrentContextErrors = {
1256
- /**
1257
- * No paper loaded
1258
- */
1259
- 404: unknown;
1260
- };
1261
- export type FdsPaperCurrentContextResponses = {
1262
- /**
1263
- * Paper context for LLM
1264
- */
1265
- 200: {
1266
- context: string;
1267
- paperId: string;
1268
- phase: "setup" | "data" | "preprocess" | "model" | "signal" | "backtest" | "validate" | "report";
1269
- completedPhases: Array<"setup" | "data" | "preprocess" | "model" | "signal" | "backtest" | "validate" | "report">;
1270
- };
1271
- };
1272
- export type FdsPaperCurrentContextResponse = FdsPaperCurrentContextResponses[keyof FdsPaperCurrentContextResponses];
1273
- export type FdsPaperContextData = {
1274
- body?: never;
1275
- path: {
1276
- /**
1277
- * Paper ID
1278
- */
1279
- id: string;
1280
- };
1281
- query?: {
1282
- directory?: string;
1283
- };
1284
- url: "/fds/paper/{id}/context";
1285
- };
1286
- export type FdsPaperContextErrors = {
1287
- /**
1288
- * Paper not found
1289
- */
1290
- 404: unknown;
1291
- };
1292
- export type FdsPaperContextResponses = {
1293
- /**
1294
- * Paper context for LLM
1295
- */
1296
- 200: {
1297
- context: string;
1298
- paperId: string;
1299
- phase: "setup" | "data" | "preprocess" | "model" | "signal" | "backtest" | "validate" | "report";
1300
- completedPhases: Array<"setup" | "data" | "preprocess" | "model" | "signal" | "backtest" | "validate" | "report">;
1301
- };
1302
- };
1303
- export type FdsPaperContextResponse = FdsPaperContextResponses[keyof FdsPaperContextResponses];
1304
- export type FdsPaperDeleteData = {
1305
- body?: never;
1306
- path: {
1307
- id: string;
1308
- };
1309
- query?: {
1310
- directory?: string;
1311
- };
1312
- url: "/fds/paper/{id}";
1313
- };
1314
- export type FdsPaperDeleteResponses = {
1315
- /**
1316
- * Paper deleted
1317
- */
1318
- 200: {
1319
- success: boolean;
1320
- };
1321
- };
1322
- export type FdsPaperDeleteResponse = FdsPaperDeleteResponses[keyof FdsPaperDeleteResponses];
1323
- export type FdsPaperGetData = {
1324
- body?: never;
1325
- path: {
1326
- id: string;
1327
- };
1328
- query?: {
1329
- directory?: string;
1330
- };
1331
- url: "/fds/paper/{id}";
1332
- };
1333
- export type FdsPaperGetErrors = {
1334
- /**
1335
- * Paper not found
1336
- */
1337
- 404: unknown;
1338
- };
1339
- export type FdsPaperGetResponses = {
1340
- /**
1341
- * Paper details
1342
- */
1343
- 200: {
1344
- id: string;
1345
- metadata: {
1346
- title: string;
1347
- authors: Array<string>;
1348
- year: string;
1349
- abstract: string;
1350
- source: string;
1351
- pages: number;
1352
- arxivId?: string;
1353
- };
1354
- fdsSpec: {
1355
- paper?: {
1356
- title: string;
1357
- arxivId?: string;
1358
- source: string;
1359
- };
1360
- classification?: {
1361
- paperType?: "forecasting" | "trading_strategy" | "hybrid";
1362
- modelOutputType?: "forecast" | "signal" | "position_weight";
1363
- optimizationLevel?: "pointwise" | "portfolio";
1364
- };
1365
- dataRequirements?: {
1366
- source?: string;
1367
- dateRange?: {
1368
- start: string;
1369
- end: string;
1370
- };
1371
- assets?: string;
1372
- features?: Array<string>;
1373
- universeFilters?: {
1374
- [key: string]: unknown;
1375
- };
1376
- };
1377
- preprocessing?: {
1378
- standardization?: string;
1379
- outlierHandling?: string;
1380
- lookbackWindow?: number;
1381
- missingData?: string;
1382
- };
1383
- modelArchitecture?: {
1384
- type?: string;
1385
- layers?: Array<string>;
1386
- lossFunction?: string;
1387
- hyperparameters?: {
1388
- [key: string]: unknown;
1389
- };
1390
- };
1391
- signalGeneration?: {
1392
- method?: string;
1393
- threshold?: string;
1394
- tradingRules?: {
1395
- [key: string]: unknown;
1396
- };
1397
- };
1398
- instrumentMechanics?: {
1399
- type?: "futures" | "equity" | "fx" | "crypto" | "options";
1400
- rollRules?: {
1401
- method?: string;
1402
- rollWindow?: number;
1403
- };
1404
- contractMultiplier?: number;
1405
- currency?: string;
1406
- };
1407
- positionMapping?: {
1408
- type?: "linear" | "sign" | "nonlinear";
1409
- leverageBounds?: [number, number];
1410
- };
1411
- portfolioConstruction?: {
1412
- crossAssetWeighting?: "equal" | "inverse_vol" | "risk_parity";
1413
- rebalanceFrequency?: "daily" | "weekly" | "monthly";
1414
- grossExposureTarget?: number;
1415
- };
1416
- reestimationPolicy?: {
1417
- type?: "fixed" | "expanding" | "rolling";
1418
- retrainFrequency?: string;
1419
- initialTrainWindow?: string;
1420
- };
1421
- transactionCosts?: {
1422
- commissionBps?: number;
1423
- slippageBps?: number;
1424
- marketImpactModel?: string;
1425
- };
1426
- backtestConfig?: {
1427
- methodology?: string;
1428
- metrics?: Array<string>;
1429
- trainTestSplit?: string;
1430
- bootstrapMethod?: string;
1431
- nSamples?: number;
1432
- };
1433
- } | null;
1434
- currentPhase: "setup" | "data" | "preprocess" | "model" | "signal" | "backtest" | "validate" | "report";
1435
- fullMarkdown: string;
1436
- implementationStatus: {
1437
- completedPhases: Array<"setup" | "data" | "preprocess" | "model" | "signal" | "backtest" | "validate" | "report">;
1438
- currentPhaseStatus: string;
1439
- };
1440
- classification?: {
1441
- paperType: "forecasting" | "trading_strategy" | "hybrid";
1442
- confidence: "high" | "medium" | "low";
1443
- recommendedGuide: "nixtla" | "trading" | "both";
1444
- reasoning: string;
1445
- };
1446
- };
1447
- };
1448
- export type FdsPaperGetResponse = FdsPaperGetResponses[keyof FdsPaperGetResponses];
1449
- export type FdsPaperListData = {
1450
- body?: never;
1451
- path?: never;
1452
- query?: {
1453
- directory?: string;
1454
- };
1455
- url: "/fds/paper";
1456
- };
1457
- export type FdsPaperListResponses = {
1458
- /**
1459
- * List of papers
1460
- */
1461
- 200: Array<{
1462
- id: string;
1463
- title: string;
1464
- pages: number;
1465
- source: string;
1466
- arxivId?: string;
1467
- currentPhase: "setup" | "data" | "preprocess" | "model" | "signal" | "backtest" | "validate" | "report";
1468
- }>;
1469
- };
1470
- export type FdsPaperListResponse = FdsPaperListResponses[keyof FdsPaperListResponses];
1471
- export type FdsPaperPhaseData = {
1472
- body?: {
1473
- phase: "setup" | "data" | "preprocess" | "model" | "signal" | "backtest" | "validate" | "report";
1474
- };
1475
- path: {
1476
- id: string;
1477
- };
1478
- query?: {
1479
- directory?: string;
1480
- };
1481
- url: "/fds/paper/{id}/phase";
1482
- };
1483
- export type FdsPaperPhaseResponses = {
1484
- /**
1485
- * Phase updated
1486
- */
1487
- 200: {
1488
- success: boolean;
1489
- };
1490
- };
1491
- export type FdsPaperPhaseResponse = FdsPaperPhaseResponses[keyof FdsPaperPhaseResponses];
1492
- export type FdsPaperSpecSetData = {
1493
- body?: {
1494
- paper?: {
1495
- title: string;
1496
- arxivId?: string;
1497
- source: string;
1498
- };
1499
- classification?: {
1500
- paperType?: "forecasting" | "trading_strategy" | "hybrid";
1501
- modelOutputType?: "forecast" | "signal" | "position_weight";
1502
- optimizationLevel?: "pointwise" | "portfolio";
1503
- };
1504
- dataRequirements?: {
1505
- source?: string;
1506
- dateRange?: {
1507
- start: string;
1508
- end: string;
1509
- };
1510
- assets?: string;
1511
- features?: Array<string>;
1512
- universeFilters?: {
1513
- [key: string]: unknown;
1514
- };
1515
- };
1516
- preprocessing?: {
1517
- standardization?: string;
1518
- outlierHandling?: string;
1519
- lookbackWindow?: number;
1520
- missingData?: string;
1521
- };
1522
- modelArchitecture?: {
1523
- type?: string;
1524
- layers?: Array<string>;
1525
- lossFunction?: string;
1526
- hyperparameters?: {
1527
- [key: string]: unknown;
1528
- };
1529
- };
1530
- signalGeneration?: {
1531
- method?: string;
1532
- threshold?: string;
1533
- tradingRules?: {
1534
- [key: string]: unknown;
1535
- };
1536
- };
1537
- instrumentMechanics?: {
1538
- type?: "futures" | "equity" | "fx" | "crypto" | "options";
1539
- rollRules?: {
1540
- method?: string;
1541
- rollWindow?: number;
1542
- };
1543
- contractMultiplier?: number;
1544
- currency?: string;
1545
- };
1546
- positionMapping?: {
1547
- type?: "linear" | "sign" | "nonlinear";
1548
- leverageBounds?: [number, number];
1549
- };
1550
- portfolioConstruction?: {
1551
- crossAssetWeighting?: "equal" | "inverse_vol" | "risk_parity";
1552
- rebalanceFrequency?: "daily" | "weekly" | "monthly";
1553
- grossExposureTarget?: number;
1554
- };
1555
- reestimationPolicy?: {
1556
- type?: "fixed" | "expanding" | "rolling";
1557
- retrainFrequency?: string;
1558
- initialTrainWindow?: string;
1559
- };
1560
- transactionCosts?: {
1561
- commissionBps?: number;
1562
- slippageBps?: number;
1563
- marketImpactModel?: string;
1564
- };
1565
- backtestConfig?: {
1566
- methodology?: string;
1567
- metrics?: Array<string>;
1568
- trainTestSplit?: string;
1569
- bootstrapMethod?: string;
1570
- nSamples?: number;
1571
- };
1572
- };
1573
- path: {
1574
- id: string;
1575
- };
1576
- query?: {
1577
- directory?: string;
1578
- };
1579
- url: "/fds/paper/{id}/spec";
1580
- };
1581
- export type FdsPaperSpecSetResponses = {
1582
- /**
1583
- * Spec set
1584
- */
1585
- 200: {
1586
- success: boolean;
1587
- };
1588
- };
1589
- export type FdsPaperSpecSetResponse = FdsPaperSpecSetResponses[keyof FdsPaperSpecSetResponses];
1590
- export type ConfigGetData = {
1591
- body?: never;
1592
- path?: never;
1593
- query?: {
1594
- directory?: string;
1595
- };
1596
- url: "/config";
1597
- };
1598
- export type ConfigGetResponses = {
1599
- /**
1600
- * Get config info
1601
- */
1602
- 200: Config;
1603
- };
1604
- export type ConfigGetResponse = ConfigGetResponses[keyof ConfigGetResponses];
1605
- export type ConfigUpdateData = {
1606
- body?: Config;
1607
- path?: never;
1608
- query?: {
1609
- directory?: string;
1610
- };
1611
- url: "/config";
1612
- };
1613
- export type ConfigUpdateErrors = {
1614
- /**
1615
- * Bad request
1616
- */
1617
- 400: BadRequestError;
1618
- };
1619
- export type ConfigUpdateError = ConfigUpdateErrors[keyof ConfigUpdateErrors];
1620
- export type ConfigUpdateResponses = {
1621
- /**
1622
- * Successfully updated config
1623
- */
1624
- 200: Config;
1625
- };
1626
- export type ConfigUpdateResponse = ConfigUpdateResponses[keyof ConfigUpdateResponses];
1627
- export type ToolIdsData = {
1628
- body?: never;
1629
- path?: never;
1630
- query?: {
1631
- directory?: string;
1632
- };
1633
- url: "/experimental/tool/ids";
1634
- };
1635
- export type ToolIdsErrors = {
1636
- /**
1637
- * Bad request
1638
- */
1639
- 400: BadRequestError;
1640
- };
1641
- export type ToolIdsError = ToolIdsErrors[keyof ToolIdsErrors];
1642
- export type ToolIdsResponses = {
1643
- /**
1644
- * Tool IDs
1645
- */
1646
- 200: ToolIds;
1647
- };
1648
- export type ToolIdsResponse = ToolIdsResponses[keyof ToolIdsResponses];
1649
- export type ToolListData = {
1650
- body?: never;
1651
- path?: never;
1652
- query: {
1653
- directory?: string;
1654
- provider: string;
1655
- model: string;
1656
- };
1657
- url: "/experimental/tool";
1658
- };
1659
- export type ToolListErrors = {
1660
- /**
1661
- * Bad request
1662
- */
1663
- 400: BadRequestError;
1664
- };
1665
- export type ToolListError = ToolListErrors[keyof ToolListErrors];
1666
- export type ToolListResponses = {
1667
- /**
1668
- * Tools
1669
- */
1670
- 200: ToolList;
1671
- };
1672
- export type ToolListResponse = ToolListResponses[keyof ToolListResponses];
1673
- export type PathGetData = {
1674
- body?: never;
1675
- path?: never;
1676
- query?: {
1677
- directory?: string;
1678
- };
1679
- url: "/path";
1680
- };
1681
- export type PathGetResponses = {
1682
- /**
1683
- * Path
1684
- */
1685
- 200: Path;
1686
- };
1687
- export type PathGetResponse = PathGetResponses[keyof PathGetResponses];
1688
- export type SessionListData = {
1689
- body?: never;
1690
- path?: never;
1691
- query?: {
1692
- directory?: string;
1693
- };
1694
- url: "/session";
1695
- };
1696
- export type SessionListResponses = {
1697
- /**
1698
- * List of sessions
1699
- */
1700
- 200: Array<Session>;
1701
- };
1702
- export type SessionListResponse = SessionListResponses[keyof SessionListResponses];
1703
- export type SessionCreateData = {
1704
- body?: {
1705
- parentID?: string;
1706
- title?: string;
1707
- };
1708
- path?: never;
1709
- query?: {
1710
- directory?: string;
1711
- };
1712
- url: "/session";
1713
- };
1714
- export type SessionCreateErrors = {
1715
- /**
1716
- * Bad request
1717
- */
1718
- 400: BadRequestError;
1719
- };
1720
- export type SessionCreateError = SessionCreateErrors[keyof SessionCreateErrors];
1721
- export type SessionCreateResponses = {
1722
- /**
1723
- * Successfully created session
1724
- */
1725
- 200: Session;
1726
- };
1727
- export type SessionCreateResponse = SessionCreateResponses[keyof SessionCreateResponses];
1728
- export type SessionDeleteData = {
1729
- body?: never;
1730
- path: {
1731
- id: string;
1732
- };
1733
- query?: {
1734
- directory?: string;
1735
- };
1736
- url: "/session/{id}";
1737
- };
1738
- export type SessionDeleteErrors = {
1739
- /**
1740
- * Bad request
1741
- */
1742
- 400: BadRequestError;
1743
- /**
1744
- * Not found
1745
- */
1746
- 404: NotFoundError;
1747
- };
1748
- export type SessionDeleteError = SessionDeleteErrors[keyof SessionDeleteErrors];
1749
- export type SessionDeleteResponses = {
1750
- /**
1751
- * Successfully deleted session
1752
- */
1753
- 200: boolean;
1754
- };
1755
- export type SessionDeleteResponse = SessionDeleteResponses[keyof SessionDeleteResponses];
1756
- export type SessionGetData = {
1757
- body?: never;
1758
- path: {
1759
- id: string;
1760
- };
1761
- query?: {
1762
- directory?: string;
1763
- };
1764
- url: "/session/{id}";
1765
- };
1766
- export type SessionGetErrors = {
1767
- /**
1768
- * Bad request
1769
- */
1770
- 400: BadRequestError;
1771
- /**
1772
- * Not found
1773
- */
1774
- 404: NotFoundError;
1775
- };
1776
- export type SessionGetError = SessionGetErrors[keyof SessionGetErrors];
1777
- export type SessionGetResponses = {
1778
- /**
1779
- * Get session
1780
- */
1781
- 200: Session;
1782
- };
1783
- export type SessionGetResponse = SessionGetResponses[keyof SessionGetResponses];
1784
- export type SessionUpdateData = {
1785
- body?: {
1786
- title?: string;
1787
- };
1788
- path: {
1789
- id: string;
1790
- };
1791
- query?: {
1792
- directory?: string;
1793
- };
1794
- url: "/session/{id}";
1795
- };
1796
- export type SessionUpdateErrors = {
1797
- /**
1798
- * Bad request
1799
- */
1800
- 400: BadRequestError;
1801
- /**
1802
- * Not found
1803
- */
1804
- 404: NotFoundError;
1805
- };
1806
- export type SessionUpdateError = SessionUpdateErrors[keyof SessionUpdateErrors];
1807
- export type SessionUpdateResponses = {
1808
- /**
1809
- * Successfully updated session
1810
- */
1811
- 200: Session;
1812
- };
1813
- export type SessionUpdateResponse = SessionUpdateResponses[keyof SessionUpdateResponses];
1814
- export type SessionChildrenData = {
1815
- body?: never;
1816
- path: {
1817
- id: string;
1818
- };
1819
- query?: {
1820
- directory?: string;
1821
- };
1822
- url: "/session/{id}/children";
1823
- };
1824
- export type SessionChildrenErrors = {
1825
- /**
1826
- * Bad request
1827
- */
1828
- 400: BadRequestError;
1829
- /**
1830
- * Not found
1831
- */
1832
- 404: NotFoundError;
1833
- };
1834
- export type SessionChildrenError = SessionChildrenErrors[keyof SessionChildrenErrors];
1835
- export type SessionChildrenResponses = {
1836
- /**
1837
- * List of children
1838
- */
1839
- 200: Array<Session>;
1840
- };
1841
- export type SessionChildrenResponse = SessionChildrenResponses[keyof SessionChildrenResponses];
1842
- export type SessionTodoData = {
1843
- body?: never;
1844
- path: {
1845
- /**
1846
- * Session ID
1847
- */
1848
- id: string;
1849
- };
1850
- query?: {
1851
- directory?: string;
1852
- };
1853
- url: "/session/{id}/todo";
1854
- };
1855
- export type SessionTodoErrors = {
1856
- /**
1857
- * Bad request
1858
- */
1859
- 400: BadRequestError;
1860
- /**
1861
- * Not found
1862
- */
1863
- 404: NotFoundError;
1864
- };
1865
- export type SessionTodoError = SessionTodoErrors[keyof SessionTodoErrors];
1866
- export type SessionTodoResponses = {
1867
- /**
1868
- * Todo list
1869
- */
1870
- 200: Array<Todo>;
1871
- };
1872
- export type SessionTodoResponse = SessionTodoResponses[keyof SessionTodoResponses];
1873
- export type SessionInitData = {
1874
- body?: {
1875
- modelID: string;
1876
- providerID: string;
1877
- messageID: string;
1878
- };
1879
- path: {
1880
- /**
1881
- * Session ID
1882
- */
1883
- id: string;
1884
- };
1885
- query?: {
1886
- directory?: string;
1887
- };
1888
- url: "/session/{id}/init";
1889
- };
1890
- export type SessionInitErrors = {
1891
- /**
1892
- * Bad request
1893
- */
1894
- 400: BadRequestError;
1895
- /**
1896
- * Not found
1897
- */
1898
- 404: NotFoundError;
1899
- };
1900
- export type SessionInitError = SessionInitErrors[keyof SessionInitErrors];
1901
- export type SessionInitResponses = {
1902
- /**
1903
- * 200
1904
- */
1905
- 200: boolean;
1906
- };
1907
- export type SessionInitResponse = SessionInitResponses[keyof SessionInitResponses];
1908
- export type SessionForkData = {
1909
- body?: {
1910
- messageID?: string;
1911
- };
1912
- path: {
1913
- id: string;
1914
- };
1915
- query?: {
1916
- directory?: string;
1917
- };
1918
- url: "/session/{id}/fork";
1919
- };
1920
- export type SessionForkResponses = {
1921
- /**
1922
- * 200
1923
- */
1924
- 200: Session;
1925
- };
1926
- export type SessionForkResponse = SessionForkResponses[keyof SessionForkResponses];
1927
- export type SessionAbortData = {
1928
- body?: never;
1929
- path: {
1930
- id: string;
1931
- };
1932
- query?: {
1933
- directory?: string;
1934
- };
1935
- url: "/session/{id}/abort";
1936
- };
1937
- export type SessionAbortErrors = {
1938
- /**
1939
- * Bad request
1940
- */
1941
- 400: BadRequestError;
1942
- /**
1943
- * Not found
1944
- */
1945
- 404: NotFoundError;
1946
- };
1947
- export type SessionAbortError = SessionAbortErrors[keyof SessionAbortErrors];
1948
- export type SessionAbortResponses = {
1949
- /**
1950
- * Aborted session
1951
- */
1952
- 200: boolean;
1953
- };
1954
- export type SessionAbortResponse = SessionAbortResponses[keyof SessionAbortResponses];
1955
- export type SessionTogglePermissionData = {
1956
- body?: {
1957
- enabled: boolean;
1958
- };
1959
- path: {
1960
- id: string;
1961
- };
1962
- query?: {
1963
- directory?: string;
1964
- };
1965
- url: "/session/{id}/permission";
1966
- };
1967
- export type SessionTogglePermissionErrors = {
1968
- /**
1969
- * Bad request
1970
- */
1971
- 400: BadRequestError;
1972
- /**
1973
- * Not found
1974
- */
1975
- 404: NotFoundError;
1976
- };
1977
- export type SessionTogglePermissionError = SessionTogglePermissionErrors[keyof SessionTogglePermissionErrors];
1978
- export type SessionTogglePermissionResponses = {
1979
- /**
1980
- * Permission mode updated successfully
1981
- */
1982
- 200: {
1983
- enabled: boolean;
1984
- };
1985
- };
1986
- export type SessionTogglePermissionResponse = SessionTogglePermissionResponses[keyof SessionTogglePermissionResponses];
1987
- export type SessionUnshareData = {
1988
- body?: never;
1989
- path: {
1990
- id: string;
1991
- };
1992
- query?: {
1993
- directory?: string;
1994
- };
1995
- url: "/session/{id}/share";
1996
- };
1997
- export type SessionUnshareErrors = {
1998
- /**
1999
- * Bad request
2000
- */
2001
- 400: BadRequestError;
2002
- /**
2003
- * Not found
2004
- */
2005
- 404: NotFoundError;
2006
- };
2007
- export type SessionUnshareError = SessionUnshareErrors[keyof SessionUnshareErrors];
2008
- export type SessionUnshareResponses = {
2009
- /**
2010
- * Successfully unshared session
2011
- */
2012
- 200: Session;
2013
- };
2014
- export type SessionUnshareResponse = SessionUnshareResponses[keyof SessionUnshareResponses];
2015
- export type SessionShareData = {
2016
- body?: never;
2017
- path: {
2018
- id: string;
2019
- };
2020
- query?: {
2021
- directory?: string;
2022
- };
2023
- url: "/session/{id}/share";
2024
- };
2025
- export type SessionShareErrors = {
2026
- /**
2027
- * Bad request
2028
- */
2029
- 400: BadRequestError;
2030
- /**
2031
- * Not found
2032
- */
2033
- 404: NotFoundError;
2034
- };
2035
- export type SessionShareError = SessionShareErrors[keyof SessionShareErrors];
2036
- export type SessionShareResponses = {
2037
- /**
2038
- * Successfully shared session
2039
- */
2040
- 200: Session;
2041
- };
2042
- export type SessionShareResponse = SessionShareResponses[keyof SessionShareResponses];
2043
- export type SessionDiffData = {
2044
- body?: never;
2045
- path: {
2046
- id: string;
2047
- };
2048
- query?: {
2049
- directory?: string;
2050
- messageID?: string;
2051
- };
2052
- url: "/session/{id}/diff";
2053
- };
2054
- export type SessionDiffResponses = {
2055
- /**
2056
- * Successfully retrieved diff
2057
- */
2058
- 200: Array<FileDiff>;
2059
- };
2060
- export type SessionDiffResponse = SessionDiffResponses[keyof SessionDiffResponses];
2061
- export type SessionSummarizeData = {
2062
- body?: {
2063
- providerID: string;
2064
- modelID: string;
2065
- };
2066
- path: {
2067
- /**
2068
- * Session ID
2069
- */
2070
- id: string;
2071
- };
2072
- query?: {
2073
- directory?: string;
2074
- };
2075
- url: "/session/{id}/summarize";
2076
- };
2077
- export type SessionSummarizeErrors = {
2078
- /**
2079
- * Bad request
2080
- */
2081
- 400: BadRequestError;
2082
- /**
2083
- * Not found
2084
- */
2085
- 404: NotFoundError;
2086
- };
2087
- export type SessionSummarizeError = SessionSummarizeErrors[keyof SessionSummarizeErrors];
2088
- export type SessionSummarizeResponses = {
2089
- /**
2090
- * Summarized session
2091
- */
2092
- 200: boolean;
2093
- };
2094
- export type SessionSummarizeResponse = SessionSummarizeResponses[keyof SessionSummarizeResponses];
2095
- export type SessionMessagesData = {
2096
- body?: never;
2097
- path: {
2098
- /**
2099
- * Session ID
2100
- */
2101
- id: string;
2102
- };
2103
- query?: {
2104
- directory?: string;
2105
- };
2106
- url: "/session/{id}/message";
2107
- };
2108
- export type SessionMessagesErrors = {
2109
- /**
2110
- * Bad request
2111
- */
2112
- 400: BadRequestError;
2113
- /**
2114
- * Not found
2115
- */
2116
- 404: NotFoundError;
2117
- };
2118
- export type SessionMessagesError = SessionMessagesErrors[keyof SessionMessagesErrors];
2119
- export type SessionMessagesResponses = {
2120
- /**
2121
- * List of messages
2122
- */
2123
- 200: Array<{
2124
- info: Message;
2125
- parts: Array<Part>;
2126
- }>;
2127
- };
2128
- export type SessionMessagesResponse = SessionMessagesResponses[keyof SessionMessagesResponses];
2129
- export type SessionPromptData = {
2130
- body?: {
2131
- messageID?: string;
2132
- model?: {
2133
- providerID: string;
2134
- modelID: string;
2135
- };
2136
- agent?: string;
2137
- noReply?: boolean;
2138
- system?: string;
2139
- tools?: {
2140
- [key: string]: boolean;
2141
- };
2142
- parts: Array<TextPartInput | FilePartInput | AgentPartInput>;
2143
- };
2144
- path: {
2145
- /**
2146
- * Session ID
2147
- */
2148
- id: string;
2149
- };
2150
- query?: {
2151
- directory?: string;
2152
- };
2153
- url: "/session/{id}/message";
2154
- };
2155
- export type SessionPromptErrors = {
2156
- /**
2157
- * Bad request
2158
- */
2159
- 400: BadRequestError;
2160
- /**
2161
- * Not found
2162
- */
2163
- 404: NotFoundError;
2164
- };
2165
- export type SessionPromptError = SessionPromptErrors[keyof SessionPromptErrors];
2166
- export type SessionPromptResponses = {
2167
- /**
2168
- * Created message
2169
- */
2170
- 200: {
2171
- info: AssistantMessage;
2172
- parts: Array<Part>;
2173
- };
2174
- };
2175
- export type SessionPromptResponse = SessionPromptResponses[keyof SessionPromptResponses];
2176
- export type SessionMessageData = {
2177
- body?: never;
2178
- path: {
2179
- /**
2180
- * Session ID
2181
- */
2182
- id: string;
2183
- /**
2184
- * Message ID
2185
- */
2186
- messageID: string;
2187
- };
2188
- query?: {
2189
- directory?: string;
2190
- };
2191
- url: "/session/{id}/message/{messageID}";
2192
- };
2193
- export type SessionMessageErrors = {
2194
- /**
2195
- * Bad request
2196
- */
2197
- 400: BadRequestError;
2198
- /**
2199
- * Not found
2200
- */
2201
- 404: NotFoundError;
2202
- };
2203
- export type SessionMessageError = SessionMessageErrors[keyof SessionMessageErrors];
2204
- export type SessionMessageResponses = {
2205
- /**
2206
- * Message
2207
- */
2208
- 200: {
2209
- info: Message;
2210
- parts: Array<Part>;
2211
- };
2212
- };
2213
- export type SessionMessageResponse = SessionMessageResponses[keyof SessionMessageResponses];
2214
- export type SessionCommandData = {
2215
- body?: {
2216
- messageID?: string;
2217
- agent?: string;
2218
- model?: string;
2219
- arguments: string;
2220
- command: string;
2221
- };
2222
- path: {
2223
- /**
2224
- * Session ID
2225
- */
2226
- id: string;
2227
- };
2228
- query?: {
2229
- directory?: string;
2230
- };
2231
- url: "/session/{id}/command";
2232
- };
2233
- export type SessionCommandErrors = {
2234
- /**
2235
- * Bad request
2236
- */
2237
- 400: BadRequestError;
2238
- /**
2239
- * Not found
2240
- */
2241
- 404: NotFoundError;
2242
- };
2243
- export type SessionCommandError = SessionCommandErrors[keyof SessionCommandErrors];
2244
- export type SessionCommandResponses = {
2245
- /**
2246
- * Created message
2247
- */
2248
- 200: {
2249
- info: AssistantMessage;
2250
- parts: Array<Part>;
2251
- };
2252
- };
2253
- export type SessionCommandResponse = SessionCommandResponses[keyof SessionCommandResponses];
2254
- export type SessionShellData = {
2255
- body?: {
2256
- agent: string;
2257
- command: string;
2258
- };
2259
- path: {
2260
- /**
2261
- * Session ID
2262
- */
2263
- id: string;
2264
- };
2265
- query?: {
2266
- directory?: string;
2267
- };
2268
- url: "/session/{id}/shell";
2269
- };
2270
- export type SessionShellErrors = {
2271
- /**
2272
- * Bad request
2273
- */
2274
- 400: BadRequestError;
2275
- /**
2276
- * Not found
2277
- */
2278
- 404: NotFoundError;
2279
- };
2280
- export type SessionShellError = SessionShellErrors[keyof SessionShellErrors];
2281
- export type SessionShellResponses = {
2282
- /**
2283
- * Created message
2284
- */
2285
- 200: AssistantMessage;
2286
- };
2287
- export type SessionShellResponse = SessionShellResponses[keyof SessionShellResponses];
2288
- export type SessionRevertData = {
2289
- body?: {
2290
- messageID: string;
2291
- partID?: string;
2292
- };
2293
- path: {
2294
- id: string;
2295
- };
2296
- query?: {
2297
- directory?: string;
2298
- };
2299
- url: "/session/{id}/revert";
2300
- };
2301
- export type SessionRevertErrors = {
2302
- /**
2303
- * Bad request
2304
- */
2305
- 400: BadRequestError;
2306
- /**
2307
- * Not found
2308
- */
2309
- 404: NotFoundError;
2310
- };
2311
- export type SessionRevertError = SessionRevertErrors[keyof SessionRevertErrors];
2312
- export type SessionRevertResponses = {
2313
- /**
2314
- * Updated session
2315
- */
2316
- 200: Session;
2317
- };
2318
- export type SessionRevertResponse = SessionRevertResponses[keyof SessionRevertResponses];
2319
- export type SessionUnrevertData = {
2320
- body?: never;
2321
- path: {
2322
- id: string;
2323
- };
2324
- query?: {
2325
- directory?: string;
2326
- };
2327
- url: "/session/{id}/unrevert";
2328
- };
2329
- export type SessionUnrevertErrors = {
2330
- /**
2331
- * Bad request
2332
- */
2333
- 400: BadRequestError;
2334
- /**
2335
- * Not found
2336
- */
2337
- 404: NotFoundError;
2338
- };
2339
- export type SessionUnrevertError = SessionUnrevertErrors[keyof SessionUnrevertErrors];
2340
- export type SessionUnrevertResponses = {
2341
- /**
2342
- * Updated session
2343
- */
2344
- 200: Session;
2345
- };
2346
- export type SessionUnrevertResponse = SessionUnrevertResponses[keyof SessionUnrevertResponses];
2347
- export type PostSessionIdPermissionsPermissionIdData = {
2348
- body?: {
2349
- response: "once" | "always" | "reject";
2350
- };
2351
- path: {
2352
- id: string;
2353
- permissionID: string;
2354
- };
2355
- query?: {
2356
- directory?: string;
2357
- };
2358
- url: "/session/{id}/permissions/{permissionID}";
2359
- };
2360
- export type PostSessionIdPermissionsPermissionIdErrors = {
2361
- /**
2362
- * Bad request
2363
- */
2364
- 400: BadRequestError;
2365
- /**
2366
- * Not found
2367
- */
2368
- 404: NotFoundError;
2369
- };
2370
- export type PostSessionIdPermissionsPermissionIdError = PostSessionIdPermissionsPermissionIdErrors[keyof PostSessionIdPermissionsPermissionIdErrors];
2371
- export type PostSessionIdPermissionsPermissionIdResponses = {
2372
- /**
2373
- * Permission processed successfully
2374
- */
2375
- 200: boolean;
2376
- };
2377
- export type PostSessionIdPermissionsPermissionIdResponse = PostSessionIdPermissionsPermissionIdResponses[keyof PostSessionIdPermissionsPermissionIdResponses];
2378
- export type CommandListData = {
2379
- body?: never;
2380
- path?: never;
2381
- query?: {
2382
- directory?: string;
2383
- };
2384
- url: "/command";
2385
- };
2386
- export type CommandListResponses = {
2387
- /**
2388
- * List of commands
2389
- */
2390
- 200: Array<Command>;
2391
- };
2392
- export type CommandListResponse = CommandListResponses[keyof CommandListResponses];
2393
- export type ConfigProvidersData = {
2394
- body?: never;
2395
- path?: never;
2396
- query?: {
2397
- directory?: string;
2398
- };
2399
- url: "/config/providers";
2400
- };
2401
- export type ConfigProvidersResponses = {
2402
- /**
2403
- * List of providers
2404
- */
2405
- 200: {
2406
- providers: Array<Provider>;
2407
- default: {
2408
- [key: string]: string;
2409
- };
2410
- };
2411
- };
2412
- export type ConfigProvidersResponse = ConfigProvidersResponses[keyof ConfigProvidersResponses];
2413
- export type FindTextData = {
2414
- body?: never;
2415
- path?: never;
2416
- query: {
2417
- directory?: string;
2418
- pattern: string;
2419
- };
2420
- url: "/find";
2421
- };
2422
- export type FindTextResponses = {
2423
- /**
2424
- * Matches
2425
- */
2426
- 200: Array<{
2427
- path: {
2428
- text: string;
2429
- };
2430
- lines: {
2431
- text: string;
2432
- };
2433
- line_number: number;
2434
- absolute_offset: number;
2435
- submatches: Array<{
2436
- match: {
2437
- text: string;
2438
- };
2439
- start: number;
2440
- end: number;
2441
- }>;
2442
- }>;
2443
- };
2444
- export type FindTextResponse = FindTextResponses[keyof FindTextResponses];
2445
- export type FindFilesData = {
2446
- body?: never;
2447
- path?: never;
2448
- query: {
2449
- directory?: string;
2450
- query: string;
2451
- };
2452
- url: "/find/file";
2453
- };
2454
- export type FindFilesResponses = {
2455
- /**
2456
- * File paths
2457
- */
2458
- 200: Array<string>;
2459
- };
2460
- export type FindFilesResponse = FindFilesResponses[keyof FindFilesResponses];
2461
- export type FindSymbolsData = {
2462
- body?: never;
2463
- path?: never;
2464
- query: {
2465
- directory?: string;
2466
- query: string;
2467
- };
2468
- url: "/find/symbol";
2469
- };
2470
- export type FindSymbolsResponses = {
2471
- /**
2472
- * Symbols
2473
- */
2474
- 200: Array<Symbol>;
2475
- };
2476
- export type FindSymbolsResponse = FindSymbolsResponses[keyof FindSymbolsResponses];
2477
- export type FileListData = {
2478
- body?: never;
2479
- path?: never;
2480
- query: {
2481
- directory?: string;
2482
- path: string;
2483
- };
2484
- url: "/file";
2485
- };
2486
- export type FileListResponses = {
2487
- /**
2488
- * Files and directories
2489
- */
2490
- 200: Array<FileNode>;
2491
- };
2492
- export type FileListResponse = FileListResponses[keyof FileListResponses];
2493
- export type FileReadData = {
2494
- body?: never;
2495
- path?: never;
2496
- query: {
2497
- directory?: string;
2498
- path: string;
2499
- };
2500
- url: "/file/content";
2501
- };
2502
- export type FileReadResponses = {
2503
- /**
2504
- * File content
2505
- */
2506
- 200: FileContent;
2507
- };
2508
- export type FileReadResponse = FileReadResponses[keyof FileReadResponses];
2509
- export type FileStatusData = {
2510
- body?: never;
2511
- path?: never;
2512
- query?: {
2513
- directory?: string;
2514
- };
2515
- url: "/file/status";
2516
- };
2517
- export type FileStatusResponses = {
2518
- /**
2519
- * File status
2520
- */
2521
- 200: Array<File>;
2522
- };
2523
- export type FileStatusResponse = FileStatusResponses[keyof FileStatusResponses];
2524
- export type AppLogData = {
2525
- body?: {
2526
- /**
2527
- * Service name for the log entry
2528
- */
2529
- service: string;
2530
- /**
2531
- * Log level
2532
- */
2533
- level: "debug" | "info" | "error" | "warn";
2534
- /**
2535
- * Log message
2536
- */
2537
- message: string;
2538
- /**
2539
- * Additional metadata for the log entry
2540
- */
2541
- extra?: {
2542
- [key: string]: unknown;
2543
- };
2544
- };
2545
- path?: never;
2546
- query?: {
2547
- directory?: string;
2548
- };
2549
- url: "/log";
2550
- };
2551
- export type AppLogErrors = {
2552
- /**
2553
- * Bad request
2554
- */
2555
- 400: BadRequestError;
2556
- };
2557
- export type AppLogError = AppLogErrors[keyof AppLogErrors];
2558
- export type AppLogResponses = {
2559
- /**
2560
- * Log entry written successfully
2561
- */
2562
- 200: boolean;
2563
- };
2564
- export type AppLogResponse = AppLogResponses[keyof AppLogResponses];
2565
- export type AppAgentsData = {
2566
- body?: never;
2567
- path?: never;
2568
- query?: {
2569
- directory?: string;
2570
- };
2571
- url: "/agent";
2572
- };
2573
- export type AppAgentsResponses = {
2574
- /**
2575
- * List of agents
2576
- */
2577
- 200: Array<Agent>;
2578
- };
2579
- export type AppAgentsResponse = AppAgentsResponses[keyof AppAgentsResponses];
2580
- export type AgentUpdatePermissionData = {
2581
- body?: {
2582
- edit?: "ask" | "allow" | "deny";
2583
- bash?: {
2584
- [key: string]: "ask" | "allow" | "deny";
2585
- };
2586
- webfetch?: "ask" | "allow" | "deny";
2587
- };
2588
- path: {
2589
- name: string;
2590
- };
2591
- query?: {
2592
- directory?: string;
2593
- };
2594
- url: "/agent/{name}/permission";
2595
- };
2596
- export type AgentUpdatePermissionErrors = {
2597
- /**
2598
- * Bad request
2599
- */
2600
- 400: BadRequestError;
2601
- /**
2602
- * Not found
2603
- */
2604
- 404: NotFoundError;
2605
- };
2606
- export type AgentUpdatePermissionError = AgentUpdatePermissionErrors[keyof AgentUpdatePermissionErrors];
2607
- export type AgentUpdatePermissionResponses = {
2608
- /**
2609
- * Permission updated successfully
2610
- */
2611
- 200: Agent;
2612
- };
2613
- export type AgentUpdatePermissionResponse = AgentUpdatePermissionResponses[keyof AgentUpdatePermissionResponses];
2614
- export type McpStatusData = {
2615
- body?: never;
2616
- path?: never;
2617
- query?: {
2618
- directory?: string;
2619
- };
2620
- url: "/mcp";
2621
- };
2622
- export type McpStatusResponses = {
2623
- /**
2624
- * MCP server status
2625
- */
2626
- 200: unknown;
2627
- };
2628
- export type McpRefreshData = {
2629
- body?: never;
2630
- path?: never;
2631
- query?: {
2632
- directory?: string;
2633
- };
2634
- url: "/mcp/refresh";
2635
- };
2636
- export type McpRefreshResponses = {
2637
- /**
2638
- * MCP servers refreshed
2639
- */
2640
- 200: unknown;
2641
- };
2642
- export type McpEnableData = {
2643
- body?: never;
2644
- path: {
2645
- name: string;
2646
- };
2647
- query?: {
2648
- directory?: string;
2649
- };
2650
- url: "/mcp/{name}/enable";
2651
- };
2652
- export type McpEnableResponses = {
2653
- /**
2654
- * MCP server enabled
2655
- */
2656
- 200: unknown;
2657
- };
2658
- export type McpDisableData = {
2659
- body?: never;
2660
- path: {
2661
- name: string;
2662
- };
2663
- query?: {
2664
- directory?: string;
2665
- };
2666
- url: "/mcp/{name}/disable";
2667
- };
2668
- export type McpDisableResponses = {
2669
- /**
2670
- * MCP server disabled
2671
- */
2672
- 200: unknown;
2673
- };
2674
- export type TuiAppendPromptData = {
2675
- body?: {
2676
- text: string;
2677
- };
2678
- path?: never;
2679
- query?: {
2680
- directory?: string;
2681
- };
2682
- url: "/tui/append-prompt";
2683
- };
2684
- export type TuiAppendPromptErrors = {
2685
- /**
2686
- * Bad request
2687
- */
2688
- 400: BadRequestError;
2689
- };
2690
- export type TuiAppendPromptError = TuiAppendPromptErrors[keyof TuiAppendPromptErrors];
2691
- export type TuiAppendPromptResponses = {
2692
- /**
2693
- * Prompt processed successfully
2694
- */
2695
- 200: boolean;
2696
- };
2697
- export type TuiAppendPromptResponse = TuiAppendPromptResponses[keyof TuiAppendPromptResponses];
2698
- export type TuiOpenHelpData = {
2699
- body?: never;
2700
- path?: never;
2701
- query?: {
2702
- directory?: string;
2703
- };
2704
- url: "/tui/open-help";
2705
- };
2706
- export type TuiOpenHelpResponses = {
2707
- /**
2708
- * Help dialog opened successfully
2709
- */
2710
- 200: boolean;
2711
- };
2712
- export type TuiOpenHelpResponse = TuiOpenHelpResponses[keyof TuiOpenHelpResponses];
2713
- export type TuiOpenSessionsData = {
2714
- body?: never;
2715
- path?: never;
2716
- query?: {
2717
- directory?: string;
2718
- };
2719
- url: "/tui/open-sessions";
2720
- };
2721
- export type TuiOpenSessionsResponses = {
2722
- /**
2723
- * Session dialog opened successfully
2724
- */
2725
- 200: boolean;
2726
- };
2727
- export type TuiOpenSessionsResponse = TuiOpenSessionsResponses[keyof TuiOpenSessionsResponses];
2728
- export type TuiOpenThemesData = {
2729
- body?: never;
2730
- path?: never;
2731
- query?: {
2732
- directory?: string;
2733
- };
2734
- url: "/tui/open-themes";
2735
- };
2736
- export type TuiOpenThemesResponses = {
2737
- /**
2738
- * Theme dialog opened successfully
2739
- */
2740
- 200: boolean;
2741
- };
2742
- export type TuiOpenThemesResponse = TuiOpenThemesResponses[keyof TuiOpenThemesResponses];
2743
- export type TuiOpenModelsData = {
2744
- body?: never;
2745
- path?: never;
2746
- query?: {
2747
- directory?: string;
2748
- };
2749
- url: "/tui/open-models";
2750
- };
2751
- export type TuiOpenModelsResponses = {
2752
- /**
2753
- * Model dialog opened successfully
2754
- */
2755
- 200: boolean;
2756
- };
2757
- export type TuiOpenModelsResponse = TuiOpenModelsResponses[keyof TuiOpenModelsResponses];
2758
- export type TuiSubmitPromptData = {
2759
- body?: never;
2760
- path?: never;
2761
- query?: {
2762
- directory?: string;
2763
- };
2764
- url: "/tui/submit-prompt";
2765
- };
2766
- export type TuiSubmitPromptResponses = {
2767
- /**
2768
- * Prompt submitted successfully
2769
- */
2770
- 200: boolean;
2771
- };
2772
- export type TuiSubmitPromptResponse = TuiSubmitPromptResponses[keyof TuiSubmitPromptResponses];
2773
- export type TuiClearPromptData = {
2774
- body?: never;
2775
- path?: never;
2776
- query?: {
2777
- directory?: string;
2778
- };
2779
- url: "/tui/clear-prompt";
2780
- };
2781
- export type TuiClearPromptResponses = {
2782
- /**
2783
- * Prompt cleared successfully
2784
- */
2785
- 200: boolean;
2786
- };
2787
- export type TuiClearPromptResponse = TuiClearPromptResponses[keyof TuiClearPromptResponses];
2788
- export type TuiExecuteCommandData = {
2789
- body?: {
2790
- command: string;
2791
- };
2792
- path?: never;
2793
- query?: {
2794
- directory?: string;
2795
- };
2796
- url: "/tui/execute-command";
2797
- };
2798
- export type TuiExecuteCommandErrors = {
2799
- /**
2800
- * Bad request
2801
- */
2802
- 400: BadRequestError;
2803
- };
2804
- export type TuiExecuteCommandError = TuiExecuteCommandErrors[keyof TuiExecuteCommandErrors];
2805
- export type TuiExecuteCommandResponses = {
2806
- /**
2807
- * Command executed successfully
2808
- */
2809
- 200: boolean;
2810
- };
2811
- export type TuiExecuteCommandResponse = TuiExecuteCommandResponses[keyof TuiExecuteCommandResponses];
2812
- export type TuiShowToastData = {
2813
- body?: {
2814
- title?: string;
2815
- message: string;
2816
- variant: "info" | "success" | "warning" | "error";
2817
- };
2818
- path?: never;
2819
- query?: {
2820
- directory?: string;
2821
- };
2822
- url: "/tui/show-toast";
2823
- };
2824
- export type TuiShowToastResponses = {
2825
- /**
2826
- * Toast notification shown successfully
2827
- */
2828
- 200: boolean;
2829
- };
2830
- export type TuiShowToastResponse = TuiShowToastResponses[keyof TuiShowToastResponses];
2831
- export type AuthSetData = {
2832
- body?: Auth;
2833
- path: {
2834
- id: string;
2835
- };
2836
- query?: {
2837
- directory?: string;
2838
- };
2839
- url: "/auth/{id}";
2840
- };
2841
- export type AuthSetErrors = {
2842
- /**
2843
- * Bad request
2844
- */
2845
- 400: BadRequestError;
2846
- };
2847
- export type AuthSetError = AuthSetErrors[keyof AuthSetErrors];
2848
- export type AuthSetResponses = {
2849
- /**
2850
- * Successfully set authentication credentials
2851
- */
2852
- 200: boolean;
2853
- };
2854
- export type AuthSetResponse = AuthSetResponses[keyof AuthSetResponses];
2855
- export type EventSubscribeData = {
2856
- body?: never;
2857
- path?: never;
2858
- query?: {
2859
- directory?: string;
2860
- };
2861
- url: "/event";
2862
- };
2863
- export type EventSubscribeResponses = {
2864
- /**
2865
- * Event stream
2866
- */
2867
- 200: Event;
2868
- };
2869
- export type EventSubscribeResponse = EventSubscribeResponses[keyof EventSubscribeResponses];
2870
- export type ClientOptions = {
2871
- baseUrl: `${string}://${string}` | (string & {});
2872
- };