@100xprompt/sdk 0.0.0-dev-202607191034

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