volute 0.21.0 → 0.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/dist/api.d.ts +4294 -0
  2. package/dist/chunk-G5KRTU2F.js +76 -0
  3. package/dist/{chunk-J5A3DF2U.js → chunk-JNFRY2WU.js} +1 -1
  4. package/dist/{chunk-IPJXU366.js → chunk-JTDFJWI2.js} +1 -0
  5. package/dist/chunk-OSFGKF2T.js +2651 -0
  6. package/dist/{chunk-L3LHXZD7.js → chunk-PHHKNGA3.js} +1 -1
  7. package/dist/{chunk-Q7AITQ44.js → chunk-QIXPN3OO.js} +1 -1
  8. package/dist/{chunk-PC6R6UUW.js → chunk-RK627D57.js} +36 -59
  9. package/dist/{chunk-5462YKWP.js → chunk-TFS25FIM.js} +1 -1
  10. package/dist/{chunk-7LPTHFIL.js → chunk-VNVCRVYI.js} +55 -5
  11. package/dist/{chunk-QUJUKM4U.js → chunk-VT5QODNE.js} +1 -1
  12. package/dist/chunk-XLC342FO.js +29 -0
  13. package/dist/cli.js +10 -10
  14. package/dist/cloud-sync-C6WRYRVR.js +96 -0
  15. package/dist/{daemon-restart-BH67ZOTE.js → daemon-restart-TPQ2XBRZ.js} +4 -4
  16. package/dist/daemon.js +1199 -1785
  17. package/dist/{down-LIOQ5JDH.js → down-WSUASL5E.js} +3 -3
  18. package/dist/{import-E433B4KG.js → import-EAXTHHXL.js} +2 -1
  19. package/dist/message-delivery-WUS4K4ZC.js +21 -0
  20. package/dist/{mind-BIDOF65R.js → mind-BTXR5B3C.js} +13 -5
  21. package/dist/{mind-manager-3V2NXX4I.js → mind-manager-P5OBDUKI.js} +1 -1
  22. package/dist/mind-sleep-FWRBIFBS.js +41 -0
  23. package/dist/mind-wake-LJK2YU5X.js +36 -0
  24. package/dist/{package-HQR52XSG.js → package-A7PEYJI2.js} +10 -1
  25. package/dist/{pages-KQBR5TAZ.js → pages-YSTRWJR4.js} +1 -1
  26. package/dist/{publish-OJ4QMXVZ.js → publish-BZNHKUUK.js} +2 -2
  27. package/dist/{service-TVNEORO7.js → service-7BFXDI6J.js} +4 -4
  28. package/dist/{setup-OZDYCKDI.js → setup-SSIIXQMI.js} +2 -2
  29. package/dist/sleep-manager-3RWUX2ZR.js +27 -0
  30. package/dist/{sprout-6Z6C42YM.js → sprout-UKCYBGHK.js} +2 -2
  31. package/dist/{status-Z7NAFMBI.js → status-H2MKDN6L.js} +2 -2
  32. package/dist/{up-7BGDMFRT.js → up-JKGC7PPF.js} +3 -3
  33. package/dist/{update-4WT7VWHW.js → update-ELC6MEUT.js} +2 -2
  34. package/dist/{upgrade-ZEC2GGFO.js → upgrade-GXW2EQY3.js} +11 -2
  35. package/dist/{version-notify-TFS2U5CF.js → version-notify-5FGUAVSF.js} +11 -3
  36. package/dist/web-assets/assets/index-DWBxl4LO.js +69 -0
  37. package/dist/web-assets/assets/index-ZqMd1mx1.css +1 -0
  38. package/dist/web-assets/index.html +2 -2
  39. package/package.json +10 -1
  40. package/templates/_base/.init/.config/prompts.json +1 -0
  41. package/templates/_base/home/.config/config.json.tmpl +4 -1
  42. package/templates/_base/src/lib/logger.ts +68 -23
  43. package/templates/_base/src/lib/startup.ts +12 -3
  44. package/templates/claude/src/agent.ts +150 -29
  45. package/templates/claude/src/lib/hooks/pre-compact.ts +18 -4
  46. package/templates/claude/src/lib/message-channel.ts +6 -0
  47. package/templates/claude/src/lib/stream-consumer.ts +7 -0
  48. package/templates/claude/src/server.ts +3 -1
  49. package/templates/pi/home/.config/config.json.tmpl +4 -1
  50. package/templates/pi/src/agent.ts +87 -0
  51. package/templates/pi/src/lib/event-handler.ts +13 -1
  52. package/templates/pi/src/server.ts +3 -1
  53. package/dist/chunk-OGZYB5GL.js +0 -847
  54. package/dist/web-assets/assets/index-BR3gtK3E.css +0 -1
  55. package/dist/web-assets/assets/index-CWmrZRQd.js +0 -64
  56. /package/dist/{shared-DCQ2UXOM.js → shared-2OGT3NSL.js} +0 -0
package/dist/api.d.ts ADDED
@@ -0,0 +1,4294 @@
1
+ import * as hono_hono_base from 'hono/hono-base';
2
+ import * as hono_utils_types from 'hono/utils/types';
3
+ import * as hono_utils_http_status from 'hono/utils/http-status';
4
+ import * as hono_types from 'hono/types';
5
+
6
+ type PromptCategory = "creation" | "system" | "mind";
7
+
8
+ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.BlankSchema | hono_types.MergeSchemaPath<{
9
+ "/events": {
10
+ $get: {
11
+ input: {};
12
+ output: {};
13
+ outputFormat: string;
14
+ status: hono_utils_http_status.StatusCode;
15
+ };
16
+ };
17
+ }, "/api/activity"> | hono_types.MergeSchemaPath<{
18
+ "/:fingerprint": {
19
+ $get: {
20
+ input: {
21
+ param: {
22
+ fingerprint: string;
23
+ };
24
+ };
25
+ output: {
26
+ publicKey: string;
27
+ mind: string;
28
+ };
29
+ outputFormat: "json";
30
+ status: hono_utils_http_status.ContentfulStatusCode;
31
+ } | {
32
+ input: {
33
+ param: {
34
+ fingerprint: string;
35
+ };
36
+ };
37
+ output: {
38
+ error: string;
39
+ };
40
+ outputFormat: "json";
41
+ status: 404;
42
+ };
43
+ };
44
+ }, "/api/keys"> | hono_types.MergeSchemaPath<({
45
+ "/register": {
46
+ $post: {
47
+ input: {
48
+ json: {
49
+ username: string;
50
+ password: string;
51
+ };
52
+ };
53
+ output: {
54
+ error: string;
55
+ };
56
+ outputFormat: "json";
57
+ status: 409;
58
+ } | {
59
+ input: {
60
+ json: {
61
+ username: string;
62
+ password: string;
63
+ };
64
+ };
65
+ output: {
66
+ id: number;
67
+ username: string;
68
+ role: "pending" | "mind" | "user" | "admin";
69
+ };
70
+ outputFormat: "json";
71
+ status: hono_utils_http_status.ContentfulStatusCode;
72
+ };
73
+ };
74
+ } & {
75
+ "/login": {
76
+ $post: {
77
+ input: {
78
+ json: {
79
+ username: string;
80
+ password: string;
81
+ };
82
+ };
83
+ output: {
84
+ error: string;
85
+ };
86
+ outputFormat: "json";
87
+ status: 401;
88
+ } | {
89
+ input: {
90
+ json: {
91
+ username: string;
92
+ password: string;
93
+ };
94
+ };
95
+ output: {
96
+ id: number;
97
+ username: string;
98
+ role: "pending" | "mind" | "user" | "admin";
99
+ };
100
+ outputFormat: "json";
101
+ status: hono_utils_http_status.ContentfulStatusCode;
102
+ };
103
+ };
104
+ } & {
105
+ "/logout": {
106
+ $post: {
107
+ input: {};
108
+ output: {
109
+ ok: true;
110
+ };
111
+ outputFormat: "json";
112
+ status: hono_utils_http_status.ContentfulStatusCode;
113
+ };
114
+ };
115
+ } & {
116
+ "/me": {
117
+ $get: {
118
+ input: {};
119
+ output: {
120
+ error: string;
121
+ };
122
+ outputFormat: "json";
123
+ status: 401;
124
+ } | {
125
+ input: {};
126
+ output: {
127
+ id: number;
128
+ username: string;
129
+ role: "pending" | "mind" | "user" | "admin";
130
+ };
131
+ outputFormat: "json";
132
+ status: hono_utils_http_status.ContentfulStatusCode;
133
+ };
134
+ };
135
+ }) | hono_types.MergeSchemaPath<{
136
+ "/users": {
137
+ $get: {
138
+ input: {};
139
+ output: {
140
+ error: string;
141
+ };
142
+ outputFormat: "json";
143
+ status: 403;
144
+ } | {
145
+ input: {};
146
+ output: {
147
+ id: number;
148
+ username: string;
149
+ role: "admin" | "user" | "pending" | "mind";
150
+ user_type: "brain" | "mind";
151
+ created_at: string;
152
+ }[];
153
+ outputFormat: "json";
154
+ status: hono_utils_http_status.ContentfulStatusCode;
155
+ };
156
+ };
157
+ } & {
158
+ "/users/pending": {
159
+ $get: {
160
+ input: {};
161
+ output: {
162
+ id: number;
163
+ username: string;
164
+ role: "admin" | "user" | "pending" | "mind";
165
+ user_type: "brain" | "mind";
166
+ created_at: string;
167
+ }[];
168
+ outputFormat: "json";
169
+ status: hono_utils_http_status.ContentfulStatusCode;
170
+ } | {
171
+ input: {};
172
+ output: {
173
+ error: string;
174
+ };
175
+ outputFormat: "json";
176
+ status: 403;
177
+ };
178
+ };
179
+ } & {
180
+ "/users/:id/approve": {
181
+ $post: {
182
+ input: {
183
+ param: {
184
+ id: string;
185
+ };
186
+ };
187
+ output: {
188
+ error: string;
189
+ };
190
+ outputFormat: "json";
191
+ status: 403;
192
+ } | {
193
+ input: {
194
+ param: {
195
+ id: string;
196
+ };
197
+ };
198
+ output: {
199
+ ok: true;
200
+ };
201
+ outputFormat: "json";
202
+ status: hono_utils_http_status.ContentfulStatusCode;
203
+ };
204
+ };
205
+ }, "/"> | hono_types.MergeSchemaPath<{
206
+ "/change-password": {
207
+ $post: {
208
+ input: {
209
+ json: {
210
+ currentPassword: string;
211
+ newPassword: string;
212
+ };
213
+ };
214
+ output: {
215
+ error: string;
216
+ };
217
+ outputFormat: "json";
218
+ status: 400;
219
+ } | {
220
+ input: {
221
+ json: {
222
+ currentPassword: string;
223
+ newPassword: string;
224
+ };
225
+ };
226
+ output: {
227
+ ok: true;
228
+ };
229
+ outputFormat: "json";
230
+ status: hono_utils_http_status.ContentfulStatusCode;
231
+ };
232
+ };
233
+ }, "/">, "/api/auth"> | hono_types.MergeSchemaPath<{
234
+ "/restart": {
235
+ $post: {
236
+ input: {};
237
+ output: {
238
+ ok: true;
239
+ };
240
+ outputFormat: "json";
241
+ status: hono_utils_http_status.ContentfulStatusCode;
242
+ };
243
+ };
244
+ } & {
245
+ "/stop": {
246
+ $post: {
247
+ input: {};
248
+ output: {
249
+ ok: true;
250
+ };
251
+ outputFormat: "json";
252
+ status: hono_utils_http_status.ContentfulStatusCode;
253
+ };
254
+ };
255
+ } & {
256
+ "/logs": {
257
+ $get: {
258
+ input: {};
259
+ output: {};
260
+ outputFormat: string;
261
+ status: hono_utils_http_status.StatusCode;
262
+ };
263
+ };
264
+ } & {
265
+ "/info": {
266
+ $get: {
267
+ input: {};
268
+ output: {
269
+ system: string | null;
270
+ };
271
+ outputFormat: "json";
272
+ status: hono_utils_http_status.ContentfulStatusCode;
273
+ };
274
+ };
275
+ }, "/api/system"> | hono_types.MergeSchemaPath<{
276
+ "/update": {
277
+ $get: {
278
+ input: {};
279
+ output: {
280
+ current: string;
281
+ latest: string;
282
+ updateAvailable: boolean;
283
+ checkFailed?: boolean | undefined;
284
+ };
285
+ outputFormat: "json";
286
+ status: hono_utils_http_status.ContentfulStatusCode;
287
+ };
288
+ };
289
+ } & {
290
+ "/update": {
291
+ $post: {
292
+ input: {};
293
+ output: {
294
+ ok: true;
295
+ message: string;
296
+ };
297
+ outputFormat: "json";
298
+ status: hono_utils_http_status.ContentfulStatusCode;
299
+ };
300
+ };
301
+ }, "/api/system"> | hono_types.MergeSchemaPath<{
302
+ "/": {
303
+ $post: {
304
+ input: {
305
+ json: {
306
+ name: string;
307
+ template?: string | undefined;
308
+ stage?: "seed" | "sprouted" | undefined;
309
+ description?: string | undefined;
310
+ model?: string | undefined;
311
+ seedSoul?: string | undefined;
312
+ skills?: string[] | undefined;
313
+ };
314
+ };
315
+ output: {
316
+ error: string;
317
+ };
318
+ outputFormat: "json";
319
+ status: 400;
320
+ } | {
321
+ input: {
322
+ json: {
323
+ name: string;
324
+ template?: string | undefined;
325
+ stage?: "seed" | "sprouted" | undefined;
326
+ description?: string | undefined;
327
+ model?: string | undefined;
328
+ seedSoul?: string | undefined;
329
+ skills?: string[] | undefined;
330
+ };
331
+ };
332
+ output: {
333
+ error: string;
334
+ };
335
+ outputFormat: "json";
336
+ status: 409;
337
+ } | {
338
+ input: {
339
+ json: {
340
+ name: string;
341
+ template?: string | undefined;
342
+ stage?: "seed" | "sprouted" | undefined;
343
+ description?: string | undefined;
344
+ model?: string | undefined;
345
+ seedSoul?: string | undefined;
346
+ skills?: string[] | undefined;
347
+ };
348
+ };
349
+ output: {
350
+ skillWarnings?: string[] | undefined;
351
+ warning?: string | undefined;
352
+ ok: true;
353
+ name: string;
354
+ port: number;
355
+ stage: "seed" | "sprouted";
356
+ message: string;
357
+ };
358
+ outputFormat: "json";
359
+ status: hono_utils_http_status.ContentfulStatusCode;
360
+ } | {
361
+ input: {
362
+ json: {
363
+ name: string;
364
+ template?: string | undefined;
365
+ stage?: "seed" | "sprouted" | undefined;
366
+ description?: string | undefined;
367
+ model?: string | undefined;
368
+ seedSoul?: string | undefined;
369
+ skills?: string[] | undefined;
370
+ };
371
+ };
372
+ output: {
373
+ error: string;
374
+ };
375
+ outputFormat: "json";
376
+ status: 500;
377
+ };
378
+ };
379
+ } & {
380
+ "/": {
381
+ $get: {
382
+ input: {};
383
+ output: {
384
+ hasPages: boolean;
385
+ lastActiveAt: string | null;
386
+ status: "running" | "stopped" | "starting" | "sleeping";
387
+ channels: {
388
+ name: string;
389
+ displayName: string;
390
+ status: "connected" | "disconnected";
391
+ showToolCalls: boolean;
392
+ }[];
393
+ displayName: string | undefined;
394
+ description: string | undefined;
395
+ avatar: string | undefined;
396
+ name: string;
397
+ port: number;
398
+ created: string;
399
+ running: boolean;
400
+ stage?: "seed" | "sprouted" | undefined;
401
+ template?: string | undefined;
402
+ templateHash?: string | undefined;
403
+ }[];
404
+ outputFormat: "json";
405
+ status: hono_utils_http_status.ContentfulStatusCode;
406
+ };
407
+ };
408
+ } & {
409
+ "/pages/sites": {
410
+ $get: {
411
+ input: {};
412
+ output: {
413
+ name: string;
414
+ label: string;
415
+ pages: {
416
+ file: string;
417
+ modified: string;
418
+ url: string;
419
+ }[];
420
+ }[];
421
+ outputFormat: "json";
422
+ status: hono_utils_http_status.ContentfulStatusCode;
423
+ };
424
+ };
425
+ } & {
426
+ "/pages/recent": {
427
+ $get: {
428
+ input: {};
429
+ output: {
430
+ mind: string;
431
+ file: string;
432
+ modified: string;
433
+ url: string;
434
+ }[];
435
+ outputFormat: "json";
436
+ status: hono_utils_http_status.ContentfulStatusCode;
437
+ };
438
+ };
439
+ } & {
440
+ "/:name": {
441
+ $get: {
442
+ input: {
443
+ param: {
444
+ name: string;
445
+ };
446
+ };
447
+ output: {
448
+ error: string;
449
+ };
450
+ outputFormat: "json";
451
+ status: 404;
452
+ } | {
453
+ input: {
454
+ param: {
455
+ name: string;
456
+ };
457
+ };
458
+ output: {
459
+ variants: {
460
+ name: string;
461
+ port: number;
462
+ status: "running" | "stopped" | "starting";
463
+ }[];
464
+ hasPages: boolean;
465
+ status: "running" | "stopped" | "starting" | "sleeping";
466
+ channels: {
467
+ name: string;
468
+ displayName: string;
469
+ status: "connected" | "disconnected";
470
+ showToolCalls: boolean;
471
+ }[];
472
+ displayName: string | undefined;
473
+ description: string | undefined;
474
+ avatar: string | undefined;
475
+ name: string;
476
+ port: number;
477
+ created: string;
478
+ running: boolean;
479
+ stage?: "seed" | "sprouted" | undefined;
480
+ template?: string | undefined;
481
+ templateHash?: string | undefined;
482
+ };
483
+ outputFormat: "json";
484
+ status: hono_utils_http_status.ContentfulStatusCode;
485
+ };
486
+ };
487
+ } & {
488
+ "/:name/start": {
489
+ $post: {
490
+ input: {
491
+ param: {
492
+ name: string;
493
+ };
494
+ };
495
+ output: {
496
+ error: string;
497
+ };
498
+ outputFormat: "json";
499
+ status: 404;
500
+ } | {
501
+ input: {
502
+ param: {
503
+ name: string;
504
+ };
505
+ };
506
+ output: {
507
+ error: string;
508
+ };
509
+ outputFormat: "json";
510
+ status: 409;
511
+ } | {
512
+ input: {
513
+ param: {
514
+ name: string;
515
+ };
516
+ };
517
+ output: {
518
+ ok: true;
519
+ port: number;
520
+ };
521
+ outputFormat: "json";
522
+ status: hono_utils_http_status.ContentfulStatusCode;
523
+ } | {
524
+ input: {
525
+ param: {
526
+ name: string;
527
+ };
528
+ };
529
+ output: {
530
+ error: string;
531
+ };
532
+ outputFormat: "json";
533
+ status: 500;
534
+ };
535
+ };
536
+ } & {
537
+ "/:name/restart": {
538
+ $post: {
539
+ input: {
540
+ param: {
541
+ name: string;
542
+ };
543
+ };
544
+ output: {
545
+ error: string;
546
+ };
547
+ outputFormat: "json";
548
+ status: 404;
549
+ } | {
550
+ input: {
551
+ param: {
552
+ name: string;
553
+ };
554
+ };
555
+ output: {
556
+ error: string;
557
+ };
558
+ outputFormat: "json";
559
+ status: 400;
560
+ } | {
561
+ input: {
562
+ param: {
563
+ name: string;
564
+ };
565
+ };
566
+ output: {
567
+ ok: true;
568
+ port: number;
569
+ };
570
+ outputFormat: "json";
571
+ status: hono_utils_http_status.ContentfulStatusCode;
572
+ } | {
573
+ input: {
574
+ param: {
575
+ name: string;
576
+ };
577
+ };
578
+ output: {
579
+ error: string;
580
+ };
581
+ outputFormat: "json";
582
+ status: 500;
583
+ };
584
+ };
585
+ } & {
586
+ "/:name/stop": {
587
+ $post: {
588
+ input: {
589
+ param: {
590
+ name: string;
591
+ };
592
+ };
593
+ output: {
594
+ error: string;
595
+ };
596
+ outputFormat: "json";
597
+ status: 404;
598
+ } | {
599
+ input: {
600
+ param: {
601
+ name: string;
602
+ };
603
+ };
604
+ output: {
605
+ error: string;
606
+ };
607
+ outputFormat: "json";
608
+ status: 409;
609
+ } | {
610
+ input: {
611
+ param: {
612
+ name: string;
613
+ };
614
+ };
615
+ output: {
616
+ ok: true;
617
+ };
618
+ outputFormat: "json";
619
+ status: hono_utils_http_status.ContentfulStatusCode;
620
+ } | {
621
+ input: {
622
+ param: {
623
+ name: string;
624
+ };
625
+ };
626
+ output: {
627
+ error: string;
628
+ };
629
+ outputFormat: "json";
630
+ status: 500;
631
+ };
632
+ };
633
+ } & {
634
+ "/:name/sleep": {
635
+ $get: {
636
+ input: {
637
+ param: {
638
+ name: string;
639
+ };
640
+ };
641
+ output: {
642
+ error: string;
643
+ };
644
+ outputFormat: "json";
645
+ status: 404;
646
+ } | {
647
+ input: {
648
+ param: {
649
+ name: string;
650
+ };
651
+ };
652
+ output: {
653
+ error: string;
654
+ };
655
+ outputFormat: "json";
656
+ status: 503;
657
+ } | {
658
+ input: {
659
+ param: {
660
+ name: string;
661
+ };
662
+ };
663
+ output: {
664
+ sleeping: boolean;
665
+ sleepingSince: string | null;
666
+ scheduledWakeAt: string | null;
667
+ wokenByTrigger: boolean;
668
+ voluntaryWakeAt: string | null;
669
+ queuedMessageCount: number;
670
+ };
671
+ outputFormat: "json";
672
+ status: hono_utils_http_status.ContentfulStatusCode;
673
+ };
674
+ };
675
+ } & {
676
+ "/:name/sleep": {
677
+ $post: {
678
+ input: {
679
+ param: {
680
+ name: string;
681
+ };
682
+ };
683
+ output: {
684
+ error: string;
685
+ };
686
+ outputFormat: "json";
687
+ status: 404;
688
+ } | {
689
+ input: {
690
+ param: {
691
+ name: string;
692
+ };
693
+ };
694
+ output: {
695
+ error: string;
696
+ };
697
+ outputFormat: "json";
698
+ status: 503;
699
+ } | {
700
+ input: {
701
+ param: {
702
+ name: string;
703
+ };
704
+ };
705
+ output: {
706
+ error: string;
707
+ };
708
+ outputFormat: "json";
709
+ status: 409;
710
+ } | {
711
+ input: {
712
+ param: {
713
+ name: string;
714
+ };
715
+ };
716
+ output: {
717
+ error: string;
718
+ };
719
+ outputFormat: "json";
720
+ status: 400;
721
+ } | {
722
+ input: {
723
+ param: {
724
+ name: string;
725
+ };
726
+ };
727
+ output: {
728
+ ok: true;
729
+ };
730
+ outputFormat: "json";
731
+ status: hono_utils_http_status.ContentfulStatusCode;
732
+ };
733
+ };
734
+ } & {
735
+ "/:name/wake": {
736
+ $post: {
737
+ input: {
738
+ param: {
739
+ name: string;
740
+ };
741
+ };
742
+ output: {
743
+ error: string;
744
+ };
745
+ outputFormat: "json";
746
+ status: 404;
747
+ } | {
748
+ input: {
749
+ param: {
750
+ name: string;
751
+ };
752
+ };
753
+ output: {
754
+ error: string;
755
+ };
756
+ outputFormat: "json";
757
+ status: 503;
758
+ } | {
759
+ input: {
760
+ param: {
761
+ name: string;
762
+ };
763
+ };
764
+ output: {
765
+ error: string;
766
+ };
767
+ outputFormat: "json";
768
+ status: 409;
769
+ } | {
770
+ input: {
771
+ param: {
772
+ name: string;
773
+ };
774
+ };
775
+ output: {
776
+ ok: true;
777
+ };
778
+ outputFormat: "json";
779
+ status: hono_utils_http_status.ContentfulStatusCode;
780
+ };
781
+ };
782
+ } & {
783
+ "/:name/sleep/messages": {
784
+ $post: {
785
+ input: {
786
+ param: {
787
+ name: string;
788
+ };
789
+ };
790
+ output: {
791
+ error: string;
792
+ };
793
+ outputFormat: "json";
794
+ status: 404;
795
+ } | {
796
+ input: {
797
+ param: {
798
+ name: string;
799
+ };
800
+ };
801
+ output: {
802
+ error: string;
803
+ };
804
+ outputFormat: "json";
805
+ status: 503;
806
+ } | {
807
+ input: {
808
+ param: {
809
+ name: string;
810
+ };
811
+ };
812
+ output: {
813
+ ok: true;
814
+ flushed: number;
815
+ };
816
+ outputFormat: "json";
817
+ status: hono_utils_http_status.ContentfulStatusCode;
818
+ };
819
+ };
820
+ } & {
821
+ "/:name/sprout": {
822
+ $post: {
823
+ input: {
824
+ param: {
825
+ name: string;
826
+ };
827
+ };
828
+ output: {
829
+ error: string;
830
+ };
831
+ outputFormat: "json";
832
+ status: 404;
833
+ } | {
834
+ input: {
835
+ param: {
836
+ name: string;
837
+ };
838
+ };
839
+ output: {
840
+ error: string;
841
+ };
842
+ outputFormat: "json";
843
+ status: 409;
844
+ } | {
845
+ input: {
846
+ param: {
847
+ name: string;
848
+ };
849
+ };
850
+ output: {
851
+ ok: true;
852
+ };
853
+ outputFormat: "json";
854
+ status: hono_utils_http_status.ContentfulStatusCode;
855
+ };
856
+ };
857
+ } & {
858
+ "/:name": {
859
+ $delete: {
860
+ input: {
861
+ param: {
862
+ name: string;
863
+ };
864
+ };
865
+ output: {
866
+ error: string;
867
+ };
868
+ outputFormat: "json";
869
+ status: 404;
870
+ } | {
871
+ input: {
872
+ param: {
873
+ name: string;
874
+ };
875
+ };
876
+ output: {
877
+ ok: true;
878
+ };
879
+ outputFormat: "json";
880
+ status: hono_utils_http_status.ContentfulStatusCode;
881
+ };
882
+ };
883
+ } & {
884
+ "/:name/upgrade": {
885
+ $post: {
886
+ input: {
887
+ param: {
888
+ name: string;
889
+ };
890
+ };
891
+ output: {
892
+ error: string;
893
+ };
894
+ outputFormat: "json";
895
+ status: 404;
896
+ } | {
897
+ input: {
898
+ param: {
899
+ name: string;
900
+ };
901
+ };
902
+ output: {
903
+ error: string;
904
+ };
905
+ outputFormat: "json";
906
+ status: 400;
907
+ } | {
908
+ input: {
909
+ param: {
910
+ name: string;
911
+ };
912
+ };
913
+ output: {
914
+ ok: true;
915
+ };
916
+ outputFormat: "json";
917
+ status: hono_utils_http_status.ContentfulStatusCode;
918
+ } | {
919
+ input: {
920
+ param: {
921
+ name: string;
922
+ };
923
+ };
924
+ output: {
925
+ error: string;
926
+ };
927
+ outputFormat: "json";
928
+ status: 500;
929
+ } | {
930
+ input: {
931
+ param: {
932
+ name: string;
933
+ };
934
+ };
935
+ output: {
936
+ error: string;
937
+ };
938
+ outputFormat: "json";
939
+ status: 409;
940
+ } | {
941
+ input: {
942
+ param: {
943
+ name: string;
944
+ };
945
+ };
946
+ output: {
947
+ ok: false;
948
+ conflicts: true;
949
+ worktreeDir: string;
950
+ message: string;
951
+ };
952
+ outputFormat: "json";
953
+ status: hono_utils_http_status.ContentfulStatusCode;
954
+ };
955
+ };
956
+ } & {
957
+ "/:name/message": {
958
+ $post: {
959
+ input: {
960
+ param: {
961
+ name: string;
962
+ };
963
+ };
964
+ output: {
965
+ error: string;
966
+ };
967
+ outputFormat: "json";
968
+ status: 404;
969
+ } | {
970
+ input: {
971
+ param: {
972
+ name: string;
973
+ };
974
+ };
975
+ output: {
976
+ error: string;
977
+ };
978
+ outputFormat: "json";
979
+ status: 400;
980
+ } | {
981
+ input: {
982
+ param: {
983
+ name: string;
984
+ };
985
+ };
986
+ output: {
987
+ error: string;
988
+ };
989
+ outputFormat: "json";
990
+ status: 409;
991
+ } | {
992
+ input: {
993
+ param: {
994
+ name: string;
995
+ };
996
+ };
997
+ output: {
998
+ error: string;
999
+ };
1000
+ outputFormat: "json";
1001
+ status: 429;
1002
+ } | {
1003
+ input: {
1004
+ param: {
1005
+ name: string;
1006
+ };
1007
+ };
1008
+ output: {
1009
+ ok: true;
1010
+ };
1011
+ outputFormat: "json";
1012
+ status: hono_utils_http_status.ContentfulStatusCode;
1013
+ };
1014
+ };
1015
+ } & {
1016
+ "/:name/budget": {
1017
+ $get: {
1018
+ input: {
1019
+ param: {
1020
+ name: string;
1021
+ };
1022
+ };
1023
+ output: {
1024
+ error: string;
1025
+ };
1026
+ outputFormat: "json";
1027
+ status: 404;
1028
+ } | {
1029
+ input: {
1030
+ param: {
1031
+ name: string;
1032
+ };
1033
+ };
1034
+ output: {
1035
+ tokensUsed: number;
1036
+ tokenLimit: number;
1037
+ periodMinutes: number;
1038
+ periodStart: number;
1039
+ queueLength: number;
1040
+ percentUsed: number;
1041
+ };
1042
+ outputFormat: "json";
1043
+ status: hono_utils_http_status.ContentfulStatusCode;
1044
+ };
1045
+ };
1046
+ } & {
1047
+ "/:name/config": {
1048
+ $get: {
1049
+ input: {
1050
+ param: {
1051
+ name: string;
1052
+ };
1053
+ };
1054
+ output: {
1055
+ error: string;
1056
+ };
1057
+ outputFormat: "json";
1058
+ status: 404;
1059
+ } | {
1060
+ input: {
1061
+ param: {
1062
+ name: string;
1063
+ };
1064
+ };
1065
+ output: {
1066
+ registry: {
1067
+ name: string;
1068
+ port: number;
1069
+ created: string;
1070
+ stage: "seed" | "sprouted" | undefined;
1071
+ template: string | undefined;
1072
+ };
1073
+ config: {
1074
+ model: string | null;
1075
+ thinkingLevel: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | null;
1076
+ tokenBudget: number | null;
1077
+ tokenBudgetPeriodMinutes: number | null;
1078
+ };
1079
+ };
1080
+ outputFormat: "json";
1081
+ status: hono_utils_http_status.ContentfulStatusCode;
1082
+ };
1083
+ };
1084
+ } & {
1085
+ "/:name/config": {
1086
+ $put: {
1087
+ input: {
1088
+ json: {
1089
+ model?: string | undefined;
1090
+ thinkingLevel?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
1091
+ tokenBudget?: number | null | undefined;
1092
+ tokenBudgetPeriodMinutes?: number | null | undefined;
1093
+ };
1094
+ } & {
1095
+ param: {
1096
+ name: string;
1097
+ };
1098
+ };
1099
+ output: {
1100
+ error: string;
1101
+ };
1102
+ outputFormat: "json";
1103
+ status: 404;
1104
+ } | {
1105
+ input: {
1106
+ json: {
1107
+ model?: string | undefined;
1108
+ thinkingLevel?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
1109
+ tokenBudget?: number | null | undefined;
1110
+ tokenBudgetPeriodMinutes?: number | null | undefined;
1111
+ };
1112
+ } & {
1113
+ param: {
1114
+ name: string;
1115
+ };
1116
+ };
1117
+ output: {
1118
+ ok: true;
1119
+ };
1120
+ outputFormat: "json";
1121
+ status: hono_utils_http_status.ContentfulStatusCode;
1122
+ };
1123
+ };
1124
+ } & {
1125
+ "/:name/delivery/pending": {
1126
+ $get: {
1127
+ input: {
1128
+ param: {
1129
+ name: string;
1130
+ };
1131
+ };
1132
+ output: {
1133
+ channel: string | null;
1134
+ sender: string | null;
1135
+ count: number;
1136
+ firstSeen: string;
1137
+ preview: string;
1138
+ }[];
1139
+ outputFormat: "json";
1140
+ status: hono_utils_http_status.ContentfulStatusCode;
1141
+ } | {
1142
+ input: {
1143
+ param: {
1144
+ name: string;
1145
+ };
1146
+ };
1147
+ output: {
1148
+ error: string;
1149
+ };
1150
+ outputFormat: "json";
1151
+ status: 500;
1152
+ };
1153
+ };
1154
+ } & {
1155
+ "/:name/events": {
1156
+ $post: {
1157
+ input: {
1158
+ param: {
1159
+ name: string;
1160
+ };
1161
+ };
1162
+ output: {
1163
+ error: string;
1164
+ };
1165
+ outputFormat: "json";
1166
+ status: 400;
1167
+ } | {
1168
+ input: {
1169
+ param: {
1170
+ name: string;
1171
+ };
1172
+ };
1173
+ output: {
1174
+ ok: true;
1175
+ };
1176
+ outputFormat: "json";
1177
+ status: hono_utils_http_status.ContentfulStatusCode;
1178
+ };
1179
+ };
1180
+ } & {
1181
+ "/:name/events": {
1182
+ $get: {
1183
+ input: {
1184
+ param: {
1185
+ name: string;
1186
+ };
1187
+ };
1188
+ output: {};
1189
+ outputFormat: string;
1190
+ status: hono_utils_http_status.StatusCode;
1191
+ };
1192
+ };
1193
+ } & {
1194
+ "/:name/history": {
1195
+ $post: {
1196
+ input: {
1197
+ param: {
1198
+ name: string;
1199
+ };
1200
+ };
1201
+ output: {
1202
+ error: string;
1203
+ };
1204
+ outputFormat: "json";
1205
+ status: 400;
1206
+ } | {
1207
+ input: {
1208
+ param: {
1209
+ name: string;
1210
+ };
1211
+ };
1212
+ output: {
1213
+ error: string;
1214
+ };
1215
+ outputFormat: "json";
1216
+ status: 500;
1217
+ } | {
1218
+ input: {
1219
+ param: {
1220
+ name: string;
1221
+ };
1222
+ };
1223
+ output: {
1224
+ ok: true;
1225
+ };
1226
+ outputFormat: "json";
1227
+ status: hono_utils_http_status.ContentfulStatusCode;
1228
+ };
1229
+ };
1230
+ } & {
1231
+ "/:name/history/sessions": {
1232
+ $get: {
1233
+ input: {
1234
+ param: {
1235
+ name: string;
1236
+ };
1237
+ };
1238
+ output: {
1239
+ session: string | null;
1240
+ started_at: string;
1241
+ event_count: number;
1242
+ message_count: number;
1243
+ tool_count: number;
1244
+ }[];
1245
+ outputFormat: "json";
1246
+ status: hono_utils_http_status.ContentfulStatusCode;
1247
+ };
1248
+ };
1249
+ } & {
1250
+ "/:name/history/channels": {
1251
+ $get: {
1252
+ input: {
1253
+ param: {
1254
+ name: string;
1255
+ };
1256
+ };
1257
+ output: (string | null)[];
1258
+ outputFormat: "json";
1259
+ status: hono_utils_http_status.ContentfulStatusCode;
1260
+ };
1261
+ };
1262
+ } & {
1263
+ "/:name/history/export": {
1264
+ $get: {
1265
+ input: {
1266
+ param: {
1267
+ name: string;
1268
+ };
1269
+ };
1270
+ output: {
1271
+ id: number;
1272
+ mind: string;
1273
+ channel: string | null;
1274
+ session: string | null;
1275
+ sender: string | null;
1276
+ message_id: string | null;
1277
+ type: string;
1278
+ content: string | null;
1279
+ metadata: string | null;
1280
+ created_at: string;
1281
+ }[];
1282
+ outputFormat: "json";
1283
+ status: hono_utils_http_status.ContentfulStatusCode;
1284
+ } | {
1285
+ input: {
1286
+ param: {
1287
+ name: string;
1288
+ };
1289
+ };
1290
+ output: {
1291
+ error: string;
1292
+ };
1293
+ outputFormat: "json";
1294
+ status: 404;
1295
+ };
1296
+ };
1297
+ } & {
1298
+ "/:name/history": {
1299
+ $get: {
1300
+ input: {
1301
+ param: {
1302
+ name: string;
1303
+ };
1304
+ };
1305
+ output: {
1306
+ id: number;
1307
+ mind: string;
1308
+ channel: string | null;
1309
+ session: string | null;
1310
+ sender: string | null;
1311
+ message_id: string | null;
1312
+ type: string;
1313
+ content: string | null;
1314
+ metadata: string | null;
1315
+ created_at: string;
1316
+ }[];
1317
+ outputFormat: "json";
1318
+ status: hono_utils_http_status.ContentfulStatusCode;
1319
+ };
1320
+ };
1321
+ }, "/api/minds"> | hono_types.MergeSchemaPath<{
1322
+ "/:name/chat": {
1323
+ $post: {
1324
+ input: {
1325
+ json: {
1326
+ message?: string | undefined;
1327
+ conversationId?: string | undefined;
1328
+ sender?: string | undefined;
1329
+ images?: {
1330
+ media_type: string;
1331
+ data: string;
1332
+ }[] | undefined;
1333
+ };
1334
+ } & {
1335
+ param: {
1336
+ name: string;
1337
+ };
1338
+ };
1339
+ output: {
1340
+ error: string;
1341
+ };
1342
+ outputFormat: "json";
1343
+ status: 404;
1344
+ } | {
1345
+ input: {
1346
+ json: {
1347
+ message?: string | undefined;
1348
+ conversationId?: string | undefined;
1349
+ sender?: string | undefined;
1350
+ images?: {
1351
+ media_type: string;
1352
+ data: string;
1353
+ }[] | undefined;
1354
+ };
1355
+ } & {
1356
+ param: {
1357
+ name: string;
1358
+ };
1359
+ };
1360
+ output: {
1361
+ error: string;
1362
+ };
1363
+ outputFormat: "json";
1364
+ status: 400;
1365
+ } | {
1366
+ input: {
1367
+ json: {
1368
+ message?: string | undefined;
1369
+ conversationId?: string | undefined;
1370
+ sender?: string | undefined;
1371
+ images?: {
1372
+ media_type: string;
1373
+ data: string;
1374
+ }[] | undefined;
1375
+ };
1376
+ } & {
1377
+ param: {
1378
+ name: string;
1379
+ };
1380
+ };
1381
+ output: {
1382
+ ok: true;
1383
+ conversationId: string;
1384
+ };
1385
+ outputFormat: "json";
1386
+ status: hono_utils_http_status.ContentfulStatusCode;
1387
+ };
1388
+ };
1389
+ } & {
1390
+ "/:name/conversations/:id/events": {
1391
+ $get: {
1392
+ input: {
1393
+ param: {
1394
+ id: string;
1395
+ } & {
1396
+ name: string;
1397
+ };
1398
+ };
1399
+ output: {};
1400
+ outputFormat: string;
1401
+ status: hono_utils_http_status.StatusCode;
1402
+ };
1403
+ };
1404
+ }, "/api/minds"> | hono_types.MergeSchemaPath<{
1405
+ "/:name/connectors": {
1406
+ $get: {
1407
+ input: {
1408
+ param: {
1409
+ name: string;
1410
+ };
1411
+ };
1412
+ output: {
1413
+ error: string;
1414
+ };
1415
+ outputFormat: "json";
1416
+ status: 404;
1417
+ } | {
1418
+ input: {
1419
+ param: {
1420
+ name: string;
1421
+ };
1422
+ };
1423
+ output: {
1424
+ type: string;
1425
+ running: boolean;
1426
+ auto?: boolean | undefined;
1427
+ }[];
1428
+ outputFormat: "json";
1429
+ status: hono_utils_http_status.ContentfulStatusCode;
1430
+ };
1431
+ };
1432
+ } & {
1433
+ "/:name/connectors/:type": {
1434
+ $post: {
1435
+ input: {
1436
+ param: {
1437
+ name: string;
1438
+ } & {
1439
+ type: string;
1440
+ };
1441
+ };
1442
+ output: {
1443
+ error: string;
1444
+ };
1445
+ outputFormat: "json";
1446
+ status: 400;
1447
+ } | {
1448
+ input: {
1449
+ param: {
1450
+ name: string;
1451
+ } & {
1452
+ type: string;
1453
+ };
1454
+ };
1455
+ output: {
1456
+ error: string;
1457
+ };
1458
+ outputFormat: "json";
1459
+ status: 404;
1460
+ } | {
1461
+ input: {
1462
+ param: {
1463
+ name: string;
1464
+ } & {
1465
+ type: string;
1466
+ };
1467
+ };
1468
+ output: {
1469
+ error: string;
1470
+ };
1471
+ outputFormat: "json";
1472
+ status: 403;
1473
+ } | {
1474
+ input: {
1475
+ param: {
1476
+ name: string;
1477
+ } & {
1478
+ type: string;
1479
+ };
1480
+ };
1481
+ output: {
1482
+ ok: true;
1483
+ };
1484
+ outputFormat: "json";
1485
+ status: hono_utils_http_status.ContentfulStatusCode;
1486
+ } | {
1487
+ input: {
1488
+ param: {
1489
+ name: string;
1490
+ } & {
1491
+ type: string;
1492
+ };
1493
+ };
1494
+ output: {
1495
+ error: string;
1496
+ };
1497
+ outputFormat: "json";
1498
+ status: 500;
1499
+ };
1500
+ };
1501
+ } & {
1502
+ "/:name/connectors/:type": {
1503
+ $delete: {
1504
+ input: {
1505
+ param: {
1506
+ name: string;
1507
+ } & {
1508
+ type: string;
1509
+ };
1510
+ };
1511
+ output: {
1512
+ error: string;
1513
+ };
1514
+ outputFormat: "json";
1515
+ status: 400;
1516
+ } | {
1517
+ input: {
1518
+ param: {
1519
+ name: string;
1520
+ } & {
1521
+ type: string;
1522
+ };
1523
+ };
1524
+ output: {
1525
+ error: string;
1526
+ };
1527
+ outputFormat: "json";
1528
+ status: 404;
1529
+ } | {
1530
+ input: {
1531
+ param: {
1532
+ name: string;
1533
+ } & {
1534
+ type: string;
1535
+ };
1536
+ };
1537
+ output: {
1538
+ ok: true;
1539
+ };
1540
+ outputFormat: "json";
1541
+ status: hono_utils_http_status.ContentfulStatusCode;
1542
+ };
1543
+ };
1544
+ }, "/api/minds"> | hono_types.MergeSchemaPath<{
1545
+ "/:name/schedules": {
1546
+ $get: {
1547
+ input: {
1548
+ param: {
1549
+ name: string;
1550
+ };
1551
+ };
1552
+ output: {
1553
+ error: string;
1554
+ };
1555
+ outputFormat: "json";
1556
+ status: 404;
1557
+ } | {
1558
+ input: {
1559
+ param: {
1560
+ name: string;
1561
+ };
1562
+ };
1563
+ output: {
1564
+ id: string;
1565
+ cron: string;
1566
+ message?: string | undefined;
1567
+ script?: string | undefined;
1568
+ enabled: boolean;
1569
+ }[];
1570
+ outputFormat: "json";
1571
+ status: hono_utils_http_status.ContentfulStatusCode;
1572
+ };
1573
+ };
1574
+ } & {
1575
+ "/:name/schedules": {
1576
+ $post: {
1577
+ input: {
1578
+ param: {
1579
+ name: string;
1580
+ };
1581
+ };
1582
+ output: {
1583
+ error: string;
1584
+ };
1585
+ outputFormat: "json";
1586
+ status: 404;
1587
+ } | {
1588
+ input: {
1589
+ param: {
1590
+ name: string;
1591
+ };
1592
+ };
1593
+ output: {
1594
+ error: string;
1595
+ };
1596
+ outputFormat: "json";
1597
+ status: 403;
1598
+ } | {
1599
+ input: {
1600
+ param: {
1601
+ name: string;
1602
+ };
1603
+ };
1604
+ output: {
1605
+ error: string;
1606
+ };
1607
+ outputFormat: "json";
1608
+ status: 400;
1609
+ } | {
1610
+ input: {
1611
+ param: {
1612
+ name: string;
1613
+ };
1614
+ };
1615
+ output: {
1616
+ error: string;
1617
+ };
1618
+ outputFormat: "json";
1619
+ status: 409;
1620
+ } | {
1621
+ input: {
1622
+ param: {
1623
+ name: string;
1624
+ };
1625
+ };
1626
+ output: {
1627
+ ok: true;
1628
+ id: string;
1629
+ };
1630
+ outputFormat: "json";
1631
+ status: 201;
1632
+ };
1633
+ };
1634
+ } & {
1635
+ "/:name/schedules/:id": {
1636
+ $put: {
1637
+ input: {
1638
+ param: {
1639
+ id: string;
1640
+ } & {
1641
+ name: string;
1642
+ };
1643
+ };
1644
+ output: {
1645
+ error: string;
1646
+ };
1647
+ outputFormat: "json";
1648
+ status: 404;
1649
+ } | {
1650
+ input: {
1651
+ param: {
1652
+ id: string;
1653
+ } & {
1654
+ name: string;
1655
+ };
1656
+ };
1657
+ output: {
1658
+ error: string;
1659
+ };
1660
+ outputFormat: "json";
1661
+ status: 400;
1662
+ } | {
1663
+ input: {
1664
+ param: {
1665
+ id: string;
1666
+ } & {
1667
+ name: string;
1668
+ };
1669
+ };
1670
+ output: {
1671
+ ok: true;
1672
+ };
1673
+ outputFormat: "json";
1674
+ status: hono_utils_http_status.ContentfulStatusCode;
1675
+ };
1676
+ };
1677
+ } & {
1678
+ "/:name/schedules/:id": {
1679
+ $delete: {
1680
+ input: {
1681
+ param: {
1682
+ id: string;
1683
+ } & {
1684
+ name: string;
1685
+ };
1686
+ };
1687
+ output: {
1688
+ error: string;
1689
+ };
1690
+ outputFormat: "json";
1691
+ status: 404;
1692
+ } | {
1693
+ input: {
1694
+ param: {
1695
+ id: string;
1696
+ } & {
1697
+ name: string;
1698
+ };
1699
+ };
1700
+ output: {
1701
+ ok: true;
1702
+ };
1703
+ outputFormat: "json";
1704
+ status: hono_utils_http_status.ContentfulStatusCode;
1705
+ };
1706
+ };
1707
+ } & {
1708
+ "/:name/webhook/:event": {
1709
+ $post: {
1710
+ input: {
1711
+ param: {
1712
+ name: string;
1713
+ } & {
1714
+ event: string;
1715
+ };
1716
+ };
1717
+ output: {
1718
+ error: string;
1719
+ };
1720
+ outputFormat: "json";
1721
+ status: 404;
1722
+ } | {
1723
+ input: {
1724
+ param: {
1725
+ name: string;
1726
+ } & {
1727
+ event: string;
1728
+ };
1729
+ };
1730
+ output: {
1731
+ error: string;
1732
+ };
1733
+ outputFormat: "json";
1734
+ status: 502;
1735
+ } | {
1736
+ input: {
1737
+ param: {
1738
+ name: string;
1739
+ } & {
1740
+ event: string;
1741
+ };
1742
+ };
1743
+ output: {
1744
+ ok: true;
1745
+ };
1746
+ outputFormat: "json";
1747
+ status: hono_utils_http_status.ContentfulStatusCode;
1748
+ };
1749
+ };
1750
+ }, "/api/minds"> | hono_types.MergeSchemaPath<{
1751
+ "/:name/logs": {
1752
+ $get: {
1753
+ input: {
1754
+ param: {
1755
+ name: string;
1756
+ };
1757
+ };
1758
+ output: {};
1759
+ outputFormat: string;
1760
+ status: hono_utils_http_status.StatusCode;
1761
+ };
1762
+ };
1763
+ } & {
1764
+ "/:name/logs/tail": {
1765
+ $get: {
1766
+ input: {
1767
+ param: {
1768
+ name: string;
1769
+ };
1770
+ };
1771
+ output: string;
1772
+ outputFormat: "text";
1773
+ status: hono_utils_http_status.ContentfulStatusCode;
1774
+ } | {
1775
+ input: {
1776
+ param: {
1777
+ name: string;
1778
+ };
1779
+ };
1780
+ output: {
1781
+ error: string;
1782
+ };
1783
+ outputFormat: "json";
1784
+ status: 404;
1785
+ };
1786
+ };
1787
+ }, "/api/minds"> | hono_types.MergeSchemaPath<{
1788
+ "/:name/typing": {
1789
+ $post: {
1790
+ input: {
1791
+ json: {
1792
+ channel: string;
1793
+ sender: string;
1794
+ active: boolean;
1795
+ };
1796
+ } & {
1797
+ param: {
1798
+ name: string;
1799
+ };
1800
+ };
1801
+ output: {
1802
+ ok: true;
1803
+ };
1804
+ outputFormat: "json";
1805
+ status: hono_utils_http_status.ContentfulStatusCode;
1806
+ };
1807
+ };
1808
+ } & {
1809
+ "/:name/typing": {
1810
+ $get: {
1811
+ input: {
1812
+ param: {
1813
+ name: string;
1814
+ };
1815
+ };
1816
+ output: {
1817
+ error: string;
1818
+ };
1819
+ outputFormat: "json";
1820
+ status: 400;
1821
+ } | {
1822
+ input: {
1823
+ param: {
1824
+ name: string;
1825
+ };
1826
+ };
1827
+ output: {
1828
+ typing: string[];
1829
+ };
1830
+ outputFormat: "json";
1831
+ status: hono_utils_http_status.ContentfulStatusCode;
1832
+ };
1833
+ };
1834
+ }, "/api/minds"> | hono_types.MergeSchemaPath<{
1835
+ "/:name/variants": {
1836
+ $get: {
1837
+ input: {
1838
+ param: {
1839
+ name: string;
1840
+ };
1841
+ };
1842
+ output: {
1843
+ error: string;
1844
+ };
1845
+ outputFormat: "json";
1846
+ status: 404;
1847
+ } | {
1848
+ input: {
1849
+ param: {
1850
+ name: string;
1851
+ };
1852
+ };
1853
+ output: {
1854
+ status: string;
1855
+ name: string;
1856
+ branch: string;
1857
+ path: string;
1858
+ port: number;
1859
+ created: string;
1860
+ running?: boolean | undefined;
1861
+ }[];
1862
+ outputFormat: "json";
1863
+ status: hono_utils_http_status.ContentfulStatusCode;
1864
+ };
1865
+ };
1866
+ } & {
1867
+ "/:name/variants": {
1868
+ $post: {
1869
+ input: {
1870
+ param: {
1871
+ name: string;
1872
+ };
1873
+ };
1874
+ output: {
1875
+ error: string;
1876
+ };
1877
+ outputFormat: "json";
1878
+ status: 404;
1879
+ } | {
1880
+ input: {
1881
+ param: {
1882
+ name: string;
1883
+ };
1884
+ };
1885
+ output: {
1886
+ error: string;
1887
+ };
1888
+ outputFormat: "json";
1889
+ status: 403;
1890
+ } | {
1891
+ input: {
1892
+ param: {
1893
+ name: string;
1894
+ };
1895
+ };
1896
+ output: {
1897
+ error: string;
1898
+ };
1899
+ outputFormat: "json";
1900
+ status: 400;
1901
+ } | {
1902
+ input: {
1903
+ param: {
1904
+ name: string;
1905
+ };
1906
+ };
1907
+ output: {
1908
+ error: string;
1909
+ };
1910
+ outputFormat: "json";
1911
+ status: 409;
1912
+ } | {
1913
+ input: {
1914
+ param: {
1915
+ name: string;
1916
+ };
1917
+ };
1918
+ output: {
1919
+ error: string;
1920
+ };
1921
+ outputFormat: "json";
1922
+ status: 500;
1923
+ } | {
1924
+ input: {
1925
+ param: {
1926
+ name: string;
1927
+ };
1928
+ };
1929
+ output: {
1930
+ ok: true;
1931
+ variant: {
1932
+ name: string;
1933
+ branch: string;
1934
+ path: string;
1935
+ port: number;
1936
+ };
1937
+ };
1938
+ outputFormat: "json";
1939
+ status: hono_utils_http_status.ContentfulStatusCode;
1940
+ };
1941
+ };
1942
+ } & {
1943
+ "/:name/variants/:variant/merge": {
1944
+ $post: {
1945
+ input: {
1946
+ param: {
1947
+ name: string;
1948
+ } & {
1949
+ variant: string;
1950
+ };
1951
+ };
1952
+ output: {
1953
+ error: string;
1954
+ };
1955
+ outputFormat: "json";
1956
+ status: 404;
1957
+ } | {
1958
+ input: {
1959
+ param: {
1960
+ name: string;
1961
+ } & {
1962
+ variant: string;
1963
+ };
1964
+ };
1965
+ output: {
1966
+ error: string;
1967
+ };
1968
+ outputFormat: "json";
1969
+ status: 400;
1970
+ } | {
1971
+ input: {
1972
+ param: {
1973
+ name: string;
1974
+ } & {
1975
+ variant: string;
1976
+ };
1977
+ };
1978
+ output: {
1979
+ error: string;
1980
+ };
1981
+ outputFormat: "json";
1982
+ status: 500;
1983
+ } | {
1984
+ input: {
1985
+ param: {
1986
+ name: string;
1987
+ } & {
1988
+ variant: string;
1989
+ };
1990
+ };
1991
+ output: {
1992
+ warning?: string | undefined;
1993
+ ok: true;
1994
+ };
1995
+ outputFormat: "json";
1996
+ status: hono_utils_http_status.ContentfulStatusCode;
1997
+ };
1998
+ };
1999
+ } & {
2000
+ "/:name/variants/:variant": {
2001
+ $delete: {
2002
+ input: {
2003
+ param: {
2004
+ name: string;
2005
+ } & {
2006
+ variant: string;
2007
+ };
2008
+ };
2009
+ output: {
2010
+ error: string;
2011
+ };
2012
+ outputFormat: "json";
2013
+ status: 404;
2014
+ } | {
2015
+ input: {
2016
+ param: {
2017
+ name: string;
2018
+ } & {
2019
+ variant: string;
2020
+ };
2021
+ };
2022
+ output: {
2023
+ ok: true;
2024
+ };
2025
+ outputFormat: "json";
2026
+ status: hono_utils_http_status.ContentfulStatusCode;
2027
+ };
2028
+ };
2029
+ }, "/api/minds"> | hono_types.MergeSchemaPath<{
2030
+ "/:name/files/send": {
2031
+ $post: {
2032
+ input: {
2033
+ param: {
2034
+ name: string;
2035
+ };
2036
+ };
2037
+ output: {
2038
+ error: string;
2039
+ };
2040
+ outputFormat: "json";
2041
+ status: 404;
2042
+ } | {
2043
+ input: {
2044
+ param: {
2045
+ name: string;
2046
+ };
2047
+ };
2048
+ output: {
2049
+ error: string;
2050
+ };
2051
+ outputFormat: "json";
2052
+ status: 400;
2053
+ } | {
2054
+ input: {
2055
+ param: {
2056
+ name: string;
2057
+ };
2058
+ };
2059
+ output: {
2060
+ error: string;
2061
+ };
2062
+ outputFormat: "json";
2063
+ status: 413;
2064
+ } | {
2065
+ input: {
2066
+ param: {
2067
+ name: string;
2068
+ };
2069
+ };
2070
+ output: {
2071
+ status: string;
2072
+ destPath: string;
2073
+ };
2074
+ outputFormat: "json";
2075
+ status: 200;
2076
+ } | {
2077
+ input: {
2078
+ param: {
2079
+ name: string;
2080
+ };
2081
+ };
2082
+ output: {
2083
+ status: string;
2084
+ id: string;
2085
+ };
2086
+ outputFormat: "json";
2087
+ status: 200;
2088
+ };
2089
+ };
2090
+ } & {
2091
+ "/:name/files/pending": {
2092
+ $get: {
2093
+ input: {
2094
+ param: {
2095
+ name: string;
2096
+ };
2097
+ };
2098
+ output: {
2099
+ error: string;
2100
+ };
2101
+ outputFormat: "json";
2102
+ status: 404;
2103
+ } | {
2104
+ input: {
2105
+ param: {
2106
+ name: string;
2107
+ };
2108
+ };
2109
+ output: {
2110
+ id: string;
2111
+ sender: string;
2112
+ filename: string;
2113
+ originalPath: string;
2114
+ size: number;
2115
+ createdAt: string;
2116
+ }[];
2117
+ outputFormat: "json";
2118
+ status: hono_utils_http_status.ContentfulStatusCode;
2119
+ };
2120
+ };
2121
+ } & {
2122
+ "/:name/files/accept": {
2123
+ $post: {
2124
+ input: {
2125
+ param: {
2126
+ name: string;
2127
+ };
2128
+ };
2129
+ output: {
2130
+ error: string;
2131
+ };
2132
+ outputFormat: "json";
2133
+ status: 404;
2134
+ } | {
2135
+ input: {
2136
+ param: {
2137
+ name: string;
2138
+ };
2139
+ };
2140
+ output: {
2141
+ error: string;
2142
+ };
2143
+ outputFormat: "json";
2144
+ status: 400;
2145
+ } | {
2146
+ input: {
2147
+ param: {
2148
+ name: string;
2149
+ };
2150
+ };
2151
+ output: {
2152
+ error: string;
2153
+ };
2154
+ outputFormat: "json";
2155
+ status: 500;
2156
+ } | {
2157
+ input: {
2158
+ param: {
2159
+ name: string;
2160
+ };
2161
+ };
2162
+ output: {
2163
+ ok: true;
2164
+ destPath: string;
2165
+ };
2166
+ outputFormat: "json";
2167
+ status: hono_utils_http_status.ContentfulStatusCode;
2168
+ };
2169
+ };
2170
+ } & {
2171
+ "/:name/files/reject": {
2172
+ $post: {
2173
+ input: {
2174
+ param: {
2175
+ name: string;
2176
+ };
2177
+ };
2178
+ output: {
2179
+ error: string;
2180
+ };
2181
+ outputFormat: "json";
2182
+ status: 404;
2183
+ } | {
2184
+ input: {
2185
+ param: {
2186
+ name: string;
2187
+ };
2188
+ };
2189
+ output: {
2190
+ error: string;
2191
+ };
2192
+ outputFormat: "json";
2193
+ status: 400;
2194
+ } | {
2195
+ input: {
2196
+ param: {
2197
+ name: string;
2198
+ };
2199
+ };
2200
+ output: {
2201
+ error: string;
2202
+ };
2203
+ outputFormat: "json";
2204
+ status: 500;
2205
+ } | {
2206
+ input: {
2207
+ param: {
2208
+ name: string;
2209
+ };
2210
+ };
2211
+ output: {
2212
+ ok: true;
2213
+ };
2214
+ outputFormat: "json";
2215
+ status: hono_utils_http_status.ContentfulStatusCode;
2216
+ };
2217
+ };
2218
+ } & {
2219
+ "/:name/files/trust": {
2220
+ $post: {
2221
+ input: {
2222
+ param: {
2223
+ name: string;
2224
+ };
2225
+ };
2226
+ output: {
2227
+ error: string;
2228
+ };
2229
+ outputFormat: "json";
2230
+ status: 404;
2231
+ } | {
2232
+ input: {
2233
+ param: {
2234
+ name: string;
2235
+ };
2236
+ };
2237
+ output: {
2238
+ error: string;
2239
+ };
2240
+ outputFormat: "json";
2241
+ status: 400;
2242
+ } | {
2243
+ input: {
2244
+ param: {
2245
+ name: string;
2246
+ };
2247
+ };
2248
+ output: {
2249
+ ok: true;
2250
+ };
2251
+ outputFormat: "json";
2252
+ status: hono_utils_http_status.ContentfulStatusCode;
2253
+ };
2254
+ };
2255
+ } & {
2256
+ "/:name/files/trust/:sender": {
2257
+ $delete: {
2258
+ input: {
2259
+ param: {
2260
+ name: string;
2261
+ } & {
2262
+ sender: string;
2263
+ };
2264
+ };
2265
+ output: {
2266
+ error: string;
2267
+ };
2268
+ outputFormat: "json";
2269
+ status: 404;
2270
+ } | {
2271
+ input: {
2272
+ param: {
2273
+ name: string;
2274
+ } & {
2275
+ sender: string;
2276
+ };
2277
+ };
2278
+ output: {
2279
+ ok: true;
2280
+ };
2281
+ outputFormat: "json";
2282
+ status: hono_utils_http_status.ContentfulStatusCode;
2283
+ };
2284
+ };
2285
+ }, "/api/minds"> | hono_types.MergeSchemaPath<{
2286
+ "/:name/avatar": {
2287
+ $get: {
2288
+ input: {
2289
+ param: {
2290
+ name: string;
2291
+ };
2292
+ };
2293
+ output: {
2294
+ error: string;
2295
+ };
2296
+ outputFormat: "json";
2297
+ status: 404;
2298
+ } | {
2299
+ input: {
2300
+ param: {
2301
+ name: string;
2302
+ };
2303
+ };
2304
+ output: {
2305
+ error: string;
2306
+ };
2307
+ outputFormat: "json";
2308
+ status: 400;
2309
+ } | {
2310
+ input: {
2311
+ param: {
2312
+ name: string;
2313
+ };
2314
+ };
2315
+ output: {
2316
+ error: string;
2317
+ };
2318
+ outputFormat: "json";
2319
+ status: 500;
2320
+ } | {
2321
+ input: {
2322
+ param: {
2323
+ name: string;
2324
+ };
2325
+ };
2326
+ output: NonSharedBuffer;
2327
+ outputFormat: "body";
2328
+ status: 200;
2329
+ };
2330
+ };
2331
+ } & {
2332
+ "/:name/files": {
2333
+ $get: {
2334
+ input: {
2335
+ param: {
2336
+ name: string;
2337
+ };
2338
+ };
2339
+ output: {
2340
+ error: string;
2341
+ };
2342
+ outputFormat: "json";
2343
+ status: 404;
2344
+ } | {
2345
+ input: {
2346
+ param: {
2347
+ name: string;
2348
+ };
2349
+ };
2350
+ output: string[];
2351
+ outputFormat: "json";
2352
+ status: hono_utils_http_status.ContentfulStatusCode;
2353
+ };
2354
+ };
2355
+ } & {
2356
+ "/:name/files/:filename": {
2357
+ $get: {
2358
+ input: {
2359
+ param: {
2360
+ name: string;
2361
+ } & {
2362
+ filename: string;
2363
+ };
2364
+ };
2365
+ output: {
2366
+ error: string;
2367
+ };
2368
+ outputFormat: "json";
2369
+ status: 403;
2370
+ } | {
2371
+ input: {
2372
+ param: {
2373
+ name: string;
2374
+ } & {
2375
+ filename: string;
2376
+ };
2377
+ };
2378
+ output: {
2379
+ error: string;
2380
+ };
2381
+ outputFormat: "json";
2382
+ status: 404;
2383
+ } | {
2384
+ input: {
2385
+ param: {
2386
+ name: string;
2387
+ } & {
2388
+ filename: string;
2389
+ };
2390
+ };
2391
+ output: {
2392
+ filename: string;
2393
+ content: string;
2394
+ };
2395
+ outputFormat: "json";
2396
+ status: hono_utils_http_status.ContentfulStatusCode;
2397
+ };
2398
+ };
2399
+ }, "/api/minds"> | hono_types.MergeSchemaPath<{
2400
+ "/:name/channels/send": {
2401
+ $post: {
2402
+ input: {
2403
+ param: {
2404
+ name: string;
2405
+ };
2406
+ };
2407
+ output: {
2408
+ error: string;
2409
+ };
2410
+ outputFormat: "json";
2411
+ status: 404;
2412
+ } | {
2413
+ input: {
2414
+ param: {
2415
+ name: string;
2416
+ };
2417
+ };
2418
+ output: {
2419
+ error: string;
2420
+ };
2421
+ outputFormat: "json";
2422
+ status: 400;
2423
+ } | {
2424
+ input: {
2425
+ param: {
2426
+ name: string;
2427
+ };
2428
+ };
2429
+ output: {
2430
+ ok: true;
2431
+ };
2432
+ outputFormat: "json";
2433
+ status: hono_utils_http_status.ContentfulStatusCode;
2434
+ } | {
2435
+ input: {
2436
+ param: {
2437
+ name: string;
2438
+ };
2439
+ };
2440
+ output: {
2441
+ error: string;
2442
+ };
2443
+ outputFormat: "json";
2444
+ status: 500;
2445
+ };
2446
+ };
2447
+ } & {
2448
+ "/:name/channels/read": {
2449
+ $get: {
2450
+ input: {
2451
+ param: {
2452
+ name: string;
2453
+ };
2454
+ };
2455
+ output: {
2456
+ error: string;
2457
+ };
2458
+ outputFormat: "json";
2459
+ status: 404;
2460
+ } | {
2461
+ input: {
2462
+ param: {
2463
+ name: string;
2464
+ };
2465
+ };
2466
+ output: {
2467
+ error: string;
2468
+ };
2469
+ outputFormat: "json";
2470
+ status: 400;
2471
+ } | {
2472
+ input: {
2473
+ param: {
2474
+ name: string;
2475
+ };
2476
+ };
2477
+ output: string;
2478
+ outputFormat: "text";
2479
+ status: hono_utils_http_status.ContentfulStatusCode;
2480
+ } | {
2481
+ input: {
2482
+ param: {
2483
+ name: string;
2484
+ };
2485
+ };
2486
+ output: {
2487
+ error: string;
2488
+ };
2489
+ outputFormat: "json";
2490
+ status: 500;
2491
+ };
2492
+ };
2493
+ } & {
2494
+ "/:name/channels/list": {
2495
+ $get: {
2496
+ input: {
2497
+ param: {
2498
+ name: string;
2499
+ };
2500
+ };
2501
+ output: {
2502
+ error: string;
2503
+ };
2504
+ outputFormat: "json";
2505
+ status: 404;
2506
+ } | {
2507
+ input: {
2508
+ param: {
2509
+ name: string;
2510
+ };
2511
+ };
2512
+ output: {
2513
+ [x: string]: hono_utils_types.JSONValue[];
2514
+ };
2515
+ outputFormat: "json";
2516
+ status: hono_utils_http_status.ContentfulStatusCode;
2517
+ };
2518
+ };
2519
+ } & {
2520
+ "/:name/channels/users": {
2521
+ $get: {
2522
+ input: {
2523
+ param: {
2524
+ name: string;
2525
+ };
2526
+ };
2527
+ output: {
2528
+ error: string;
2529
+ };
2530
+ outputFormat: "json";
2531
+ status: 404;
2532
+ } | {
2533
+ input: {
2534
+ param: {
2535
+ name: string;
2536
+ };
2537
+ };
2538
+ output: {
2539
+ error: string;
2540
+ };
2541
+ outputFormat: "json";
2542
+ status: 400;
2543
+ } | {
2544
+ input: {
2545
+ param: {
2546
+ name: string;
2547
+ };
2548
+ };
2549
+ output: {
2550
+ id: string;
2551
+ username: string;
2552
+ type?: string | undefined;
2553
+ }[];
2554
+ outputFormat: "json";
2555
+ status: hono_utils_http_status.ContentfulStatusCode;
2556
+ } | {
2557
+ input: {
2558
+ param: {
2559
+ name: string;
2560
+ };
2561
+ };
2562
+ output: {
2563
+ error: string;
2564
+ };
2565
+ outputFormat: "json";
2566
+ status: 500;
2567
+ };
2568
+ };
2569
+ } & {
2570
+ "/:name/channels/create": {
2571
+ $post: {
2572
+ input: {
2573
+ param: {
2574
+ name: string;
2575
+ };
2576
+ };
2577
+ output: {
2578
+ error: string;
2579
+ };
2580
+ outputFormat: "json";
2581
+ status: 404;
2582
+ } | {
2583
+ input: {
2584
+ param: {
2585
+ name: string;
2586
+ };
2587
+ };
2588
+ output: {
2589
+ error: string;
2590
+ };
2591
+ outputFormat: "json";
2592
+ status: 400;
2593
+ } | {
2594
+ input: {
2595
+ param: {
2596
+ name: string;
2597
+ };
2598
+ };
2599
+ output: {
2600
+ slug: string;
2601
+ };
2602
+ outputFormat: "json";
2603
+ status: hono_utils_http_status.ContentfulStatusCode;
2604
+ } | {
2605
+ input: {
2606
+ param: {
2607
+ name: string;
2608
+ };
2609
+ };
2610
+ output: {
2611
+ error: string;
2612
+ };
2613
+ outputFormat: "json";
2614
+ status: 500;
2615
+ };
2616
+ };
2617
+ }, "/api/minds"> | hono_types.MergeSchemaPath<{
2618
+ "/:name/shared/merge": {
2619
+ $post: {
2620
+ input: {
2621
+ param: {
2622
+ name: string;
2623
+ };
2624
+ };
2625
+ output: {
2626
+ error: string;
2627
+ };
2628
+ outputFormat: "json";
2629
+ status: 404;
2630
+ } | {
2631
+ input: {
2632
+ param: {
2633
+ name: string;
2634
+ };
2635
+ };
2636
+ output: {
2637
+ error: string;
2638
+ };
2639
+ outputFormat: "json";
2640
+ status: 400;
2641
+ } | {
2642
+ input: {
2643
+ param: {
2644
+ name: string;
2645
+ };
2646
+ };
2647
+ output: {
2648
+ ok: boolean;
2649
+ conflicts?: boolean | undefined;
2650
+ message?: string | undefined;
2651
+ };
2652
+ outputFormat: "json";
2653
+ status: hono_utils_http_status.ContentfulStatusCode;
2654
+ } | {
2655
+ input: {
2656
+ param: {
2657
+ name: string;
2658
+ };
2659
+ };
2660
+ output: {
2661
+ error: string;
2662
+ };
2663
+ outputFormat: "json";
2664
+ status: 500;
2665
+ };
2666
+ };
2667
+ } & {
2668
+ "/:name/shared/pull": {
2669
+ $post: {
2670
+ input: {
2671
+ param: {
2672
+ name: string;
2673
+ };
2674
+ };
2675
+ output: {
2676
+ error: string;
2677
+ };
2678
+ outputFormat: "json";
2679
+ status: 404;
2680
+ } | {
2681
+ input: {
2682
+ param: {
2683
+ name: string;
2684
+ };
2685
+ };
2686
+ output: {
2687
+ ok: boolean;
2688
+ message?: string | undefined;
2689
+ };
2690
+ outputFormat: "json";
2691
+ status: hono_utils_http_status.ContentfulStatusCode;
2692
+ } | {
2693
+ input: {
2694
+ param: {
2695
+ name: string;
2696
+ };
2697
+ };
2698
+ output: {
2699
+ error: string;
2700
+ };
2701
+ outputFormat: "json";
2702
+ status: 500;
2703
+ };
2704
+ };
2705
+ } & {
2706
+ "/:name/shared/log": {
2707
+ $get: {
2708
+ input: {
2709
+ param: {
2710
+ name: string;
2711
+ };
2712
+ };
2713
+ output: string;
2714
+ outputFormat: "text";
2715
+ status: hono_utils_http_status.ContentfulStatusCode;
2716
+ } | {
2717
+ input: {
2718
+ param: {
2719
+ name: string;
2720
+ };
2721
+ };
2722
+ output: {
2723
+ error: string;
2724
+ };
2725
+ outputFormat: "json";
2726
+ status: 404;
2727
+ } | {
2728
+ input: {
2729
+ param: {
2730
+ name: string;
2731
+ };
2732
+ };
2733
+ output: {
2734
+ error: string;
2735
+ };
2736
+ outputFormat: "json";
2737
+ status: 500;
2738
+ };
2739
+ };
2740
+ } & {
2741
+ "/:name/shared/status": {
2742
+ $get: {
2743
+ input: {
2744
+ param: {
2745
+ name: string;
2746
+ };
2747
+ };
2748
+ output: string;
2749
+ outputFormat: "text";
2750
+ status: hono_utils_http_status.ContentfulStatusCode;
2751
+ } | {
2752
+ input: {
2753
+ param: {
2754
+ name: string;
2755
+ };
2756
+ };
2757
+ output: {
2758
+ error: string;
2759
+ };
2760
+ outputFormat: "json";
2761
+ status: 404;
2762
+ } | {
2763
+ input: {
2764
+ param: {
2765
+ name: string;
2766
+ };
2767
+ };
2768
+ output: {
2769
+ error: string;
2770
+ };
2771
+ outputFormat: "json";
2772
+ status: 500;
2773
+ };
2774
+ };
2775
+ }, "/api/minds"> | hono_types.MergeSchemaPath<{
2776
+ "/:name/env": {
2777
+ $get: {
2778
+ input: {
2779
+ param: {
2780
+ name: string;
2781
+ };
2782
+ };
2783
+ output: {
2784
+ error: string;
2785
+ };
2786
+ outputFormat: "json";
2787
+ status: 404;
2788
+ } | {
2789
+ input: {
2790
+ param: {
2791
+ name: string;
2792
+ };
2793
+ };
2794
+ output: {
2795
+ shared: {
2796
+ [x: string]: string;
2797
+ };
2798
+ mind: {
2799
+ [x: string]: string;
2800
+ };
2801
+ };
2802
+ outputFormat: "json";
2803
+ status: hono_utils_http_status.ContentfulStatusCode;
2804
+ };
2805
+ };
2806
+ } & {
2807
+ "/:name/env/:key": {
2808
+ $get: {
2809
+ input: {
2810
+ param: {
2811
+ name: string;
2812
+ } & {
2813
+ key: string;
2814
+ };
2815
+ };
2816
+ output: {
2817
+ error: string;
2818
+ };
2819
+ outputFormat: "json";
2820
+ status: 404;
2821
+ } | {
2822
+ input: {
2823
+ param: {
2824
+ name: string;
2825
+ } & {
2826
+ key: string;
2827
+ };
2828
+ };
2829
+ output: {
2830
+ value: string;
2831
+ };
2832
+ outputFormat: "json";
2833
+ status: hono_utils_http_status.ContentfulStatusCode;
2834
+ };
2835
+ };
2836
+ } & {
2837
+ "/:name/env/:key": {
2838
+ $put: {
2839
+ input: {
2840
+ param: {
2841
+ name: string;
2842
+ } & {
2843
+ key: string;
2844
+ };
2845
+ };
2846
+ output: {
2847
+ error: string;
2848
+ };
2849
+ outputFormat: "json";
2850
+ status: 404;
2851
+ } | {
2852
+ input: {
2853
+ param: {
2854
+ name: string;
2855
+ } & {
2856
+ key: string;
2857
+ };
2858
+ };
2859
+ output: {
2860
+ error: string;
2861
+ };
2862
+ outputFormat: "json";
2863
+ status: 400;
2864
+ } | {
2865
+ input: {
2866
+ param: {
2867
+ name: string;
2868
+ } & {
2869
+ key: string;
2870
+ };
2871
+ };
2872
+ output: {
2873
+ ok: true;
2874
+ };
2875
+ outputFormat: "json";
2876
+ status: hono_utils_http_status.ContentfulStatusCode;
2877
+ };
2878
+ };
2879
+ } & {
2880
+ "/:name/env/:key": {
2881
+ $delete: {
2882
+ input: {
2883
+ param: {
2884
+ name: string;
2885
+ } & {
2886
+ key: string;
2887
+ };
2888
+ };
2889
+ output: {
2890
+ error: string;
2891
+ };
2892
+ outputFormat: "json";
2893
+ status: 404;
2894
+ } | {
2895
+ input: {
2896
+ param: {
2897
+ name: string;
2898
+ } & {
2899
+ key: string;
2900
+ };
2901
+ };
2902
+ output: {
2903
+ ok: true;
2904
+ };
2905
+ outputFormat: "json";
2906
+ status: hono_utils_http_status.ContentfulStatusCode;
2907
+ };
2908
+ };
2909
+ }, "/api/minds"> | hono_types.MergeSchemaPath<{
2910
+ "/:name/skills": {
2911
+ $get: {
2912
+ input: {
2913
+ param: {
2914
+ name: string;
2915
+ };
2916
+ };
2917
+ output: {
2918
+ error: string;
2919
+ };
2920
+ outputFormat: "json";
2921
+ status: 404;
2922
+ } | {
2923
+ input: {
2924
+ param: {
2925
+ name: string;
2926
+ };
2927
+ };
2928
+ output: {
2929
+ id: string;
2930
+ name: string;
2931
+ description: string;
2932
+ upstream: {
2933
+ source: string;
2934
+ version: number;
2935
+ baseCommit: string;
2936
+ } | null;
2937
+ updateAvailable: boolean;
2938
+ }[];
2939
+ outputFormat: "json";
2940
+ status: hono_utils_http_status.ContentfulStatusCode;
2941
+ };
2942
+ };
2943
+ } & {
2944
+ "/:name/skills/install": {
2945
+ $post: {
2946
+ input: {
2947
+ json: {
2948
+ skillId: string;
2949
+ };
2950
+ } & {
2951
+ param: {
2952
+ name: string;
2953
+ };
2954
+ };
2955
+ output: {
2956
+ error: string;
2957
+ };
2958
+ outputFormat: "json";
2959
+ status: 404;
2960
+ } | {
2961
+ input: {
2962
+ json: {
2963
+ skillId: string;
2964
+ };
2965
+ } & {
2966
+ param: {
2967
+ name: string;
2968
+ };
2969
+ };
2970
+ output: {
2971
+ error: string;
2972
+ };
2973
+ outputFormat: "json";
2974
+ status: 400;
2975
+ } | {
2976
+ input: {
2977
+ json: {
2978
+ skillId: string;
2979
+ };
2980
+ } & {
2981
+ param: {
2982
+ name: string;
2983
+ };
2984
+ };
2985
+ output: {
2986
+ ok: true;
2987
+ };
2988
+ outputFormat: "json";
2989
+ status: hono_utils_http_status.ContentfulStatusCode;
2990
+ };
2991
+ };
2992
+ } & {
2993
+ "/:name/skills/update": {
2994
+ $post: {
2995
+ input: {
2996
+ json: {
2997
+ skillId: string;
2998
+ };
2999
+ } & {
3000
+ param: {
3001
+ name: string;
3002
+ };
3003
+ };
3004
+ output: {
3005
+ error: string;
3006
+ };
3007
+ outputFormat: "json";
3008
+ status: 404;
3009
+ } | {
3010
+ input: {
3011
+ json: {
3012
+ skillId: string;
3013
+ };
3014
+ } & {
3015
+ param: {
3016
+ name: string;
3017
+ };
3018
+ };
3019
+ output: {
3020
+ status: "updated";
3021
+ } | {
3022
+ status: "up-to-date";
3023
+ } | {
3024
+ status: "conflict";
3025
+ conflictFiles: string[];
3026
+ };
3027
+ outputFormat: "json";
3028
+ status: hono_utils_http_status.ContentfulStatusCode;
3029
+ } | {
3030
+ input: {
3031
+ json: {
3032
+ skillId: string;
3033
+ };
3034
+ } & {
3035
+ param: {
3036
+ name: string;
3037
+ };
3038
+ };
3039
+ output: {
3040
+ error: string;
3041
+ };
3042
+ outputFormat: "json";
3043
+ status: 400;
3044
+ };
3045
+ };
3046
+ } & {
3047
+ "/:name/skills/publish": {
3048
+ $post: {
3049
+ input: {
3050
+ json: {
3051
+ skillId: string;
3052
+ };
3053
+ } & {
3054
+ param: {
3055
+ name: string;
3056
+ };
3057
+ };
3058
+ output: {
3059
+ error: string;
3060
+ };
3061
+ outputFormat: "json";
3062
+ status: 404;
3063
+ } | {
3064
+ input: {
3065
+ json: {
3066
+ skillId: string;
3067
+ };
3068
+ } & {
3069
+ param: {
3070
+ name: string;
3071
+ };
3072
+ };
3073
+ output: {
3074
+ id: string;
3075
+ name: string;
3076
+ description: string;
3077
+ author: string;
3078
+ version: number;
3079
+ created_at: string;
3080
+ updated_at: string;
3081
+ };
3082
+ outputFormat: "json";
3083
+ status: hono_utils_http_status.ContentfulStatusCode;
3084
+ } | {
3085
+ input: {
3086
+ json: {
3087
+ skillId: string;
3088
+ };
3089
+ } & {
3090
+ param: {
3091
+ name: string;
3092
+ };
3093
+ };
3094
+ output: {
3095
+ error: string;
3096
+ };
3097
+ outputFormat: "json";
3098
+ status: 400;
3099
+ };
3100
+ };
3101
+ } & {
3102
+ "/:name/skills/:skill": {
3103
+ $delete: {
3104
+ input: {
3105
+ param: {
3106
+ name: string;
3107
+ } & {
3108
+ skill: string;
3109
+ };
3110
+ };
3111
+ output: {
3112
+ error: string;
3113
+ };
3114
+ outputFormat: "json";
3115
+ status: 404;
3116
+ } | {
3117
+ input: {
3118
+ param: {
3119
+ name: string;
3120
+ } & {
3121
+ skill: string;
3122
+ };
3123
+ };
3124
+ output: {
3125
+ error: string;
3126
+ };
3127
+ outputFormat: "json";
3128
+ status: 400;
3129
+ } | {
3130
+ input: {
3131
+ param: {
3132
+ name: string;
3133
+ } & {
3134
+ skill: string;
3135
+ };
3136
+ };
3137
+ output: {
3138
+ ok: true;
3139
+ };
3140
+ outputFormat: "json";
3141
+ status: hono_utils_http_status.ContentfulStatusCode;
3142
+ };
3143
+ };
3144
+ }, "/api/minds"> | hono_types.MergeSchemaPath<{
3145
+ "/:name/conversations": {
3146
+ $get: {
3147
+ input: {
3148
+ param: {
3149
+ name: string;
3150
+ };
3151
+ };
3152
+ output: {
3153
+ id: string;
3154
+ mind_name: string | null;
3155
+ channel: string;
3156
+ type: "dm" | "group" | "channel";
3157
+ name: string | null;
3158
+ user_id: number | null;
3159
+ title: string | null;
3160
+ created_at: string;
3161
+ updated_at: string;
3162
+ }[];
3163
+ outputFormat: "json";
3164
+ status: hono_utils_http_status.ContentfulStatusCode;
3165
+ };
3166
+ };
3167
+ } & {
3168
+ "/:name/conversations": {
3169
+ $post: {
3170
+ input: {
3171
+ json: {
3172
+ title?: string | undefined;
3173
+ participantIds?: number[] | undefined;
3174
+ participantNames?: string[] | undefined;
3175
+ };
3176
+ } & {
3177
+ param: {
3178
+ name: string;
3179
+ };
3180
+ };
3181
+ output: {
3182
+ error: string;
3183
+ };
3184
+ outputFormat: "json";
3185
+ status: 400;
3186
+ } | {
3187
+ input: {
3188
+ json: {
3189
+ title?: string | undefined;
3190
+ participantIds?: number[] | undefined;
3191
+ participantNames?: string[] | undefined;
3192
+ };
3193
+ } & {
3194
+ param: {
3195
+ name: string;
3196
+ };
3197
+ };
3198
+ output: {
3199
+ id: string;
3200
+ mind_name: string | null;
3201
+ channel: string;
3202
+ type: "dm" | "group" | "channel";
3203
+ name: string | null;
3204
+ user_id: number | null;
3205
+ title: string | null;
3206
+ created_at: string;
3207
+ updated_at: string;
3208
+ };
3209
+ outputFormat: "json";
3210
+ status: hono_utils_http_status.ContentfulStatusCode;
3211
+ };
3212
+ };
3213
+ } & {
3214
+ "/:name/conversations/:id/messages": {
3215
+ $get: {
3216
+ input: {
3217
+ param: {
3218
+ id: string;
3219
+ } & {
3220
+ name: string;
3221
+ };
3222
+ };
3223
+ output: {
3224
+ error: string;
3225
+ };
3226
+ outputFormat: "json";
3227
+ status: 404;
3228
+ } | {
3229
+ input: {
3230
+ param: {
3231
+ id: string;
3232
+ } & {
3233
+ name: string;
3234
+ };
3235
+ };
3236
+ output: {
3237
+ id: number;
3238
+ conversation_id: string;
3239
+ role: "user" | "assistant";
3240
+ sender_name: string | null;
3241
+ content: ({
3242
+ type: "text";
3243
+ text: string;
3244
+ } | {
3245
+ type: "tool_use";
3246
+ name: string;
3247
+ input: hono_utils_types.JSONValue;
3248
+ } | {
3249
+ type: "tool_result";
3250
+ output: string;
3251
+ is_error?: boolean | undefined;
3252
+ } | {
3253
+ type: "image";
3254
+ media_type: string;
3255
+ data: string;
3256
+ })[];
3257
+ created_at: string;
3258
+ }[];
3259
+ outputFormat: "json";
3260
+ status: hono_utils_http_status.ContentfulStatusCode;
3261
+ };
3262
+ };
3263
+ } & {
3264
+ "/:name/conversations/:id/participants": {
3265
+ $get: {
3266
+ input: {
3267
+ param: {
3268
+ id: string;
3269
+ } & {
3270
+ name: string;
3271
+ };
3272
+ };
3273
+ output: {
3274
+ error: string;
3275
+ };
3276
+ outputFormat: "json";
3277
+ status: 404;
3278
+ } | {
3279
+ input: {
3280
+ param: {
3281
+ id: string;
3282
+ } & {
3283
+ name: string;
3284
+ };
3285
+ };
3286
+ output: {
3287
+ userId: number;
3288
+ username: string;
3289
+ userType: "brain" | "mind";
3290
+ role: "owner" | "member";
3291
+ }[];
3292
+ outputFormat: "json";
3293
+ status: hono_utils_http_status.ContentfulStatusCode;
3294
+ };
3295
+ };
3296
+ } & {
3297
+ "/:name/conversations/:id": {
3298
+ $delete: {
3299
+ input: {
3300
+ param: {
3301
+ id: string;
3302
+ } & {
3303
+ name: string;
3304
+ };
3305
+ };
3306
+ output: {
3307
+ error: string;
3308
+ };
3309
+ outputFormat: "json";
3310
+ status: 404;
3311
+ } | {
3312
+ input: {
3313
+ param: {
3314
+ id: string;
3315
+ } & {
3316
+ name: string;
3317
+ };
3318
+ };
3319
+ output: {
3320
+ ok: true;
3321
+ };
3322
+ outputFormat: "json";
3323
+ status: hono_utils_http_status.ContentfulStatusCode;
3324
+ };
3325
+ };
3326
+ }, "/api/minds"> | hono_types.MergeSchemaPath<{
3327
+ "/": {
3328
+ $get: {
3329
+ input: {};
3330
+ output: {
3331
+ [x: string]: string;
3332
+ };
3333
+ outputFormat: "json";
3334
+ status: hono_utils_http_status.ContentfulStatusCode;
3335
+ };
3336
+ };
3337
+ } & {
3338
+ "/:key": {
3339
+ $put: {
3340
+ input: {
3341
+ param: {
3342
+ key: string;
3343
+ };
3344
+ };
3345
+ output: {
3346
+ error: string;
3347
+ };
3348
+ outputFormat: "json";
3349
+ status: 400;
3350
+ } | {
3351
+ input: {
3352
+ param: {
3353
+ key: string;
3354
+ };
3355
+ };
3356
+ output: {
3357
+ ok: true;
3358
+ };
3359
+ outputFormat: "json";
3360
+ status: hono_utils_http_status.ContentfulStatusCode;
3361
+ };
3362
+ };
3363
+ } & {
3364
+ "/:key": {
3365
+ $delete: {
3366
+ input: {
3367
+ param: {
3368
+ key: string;
3369
+ };
3370
+ };
3371
+ output: {
3372
+ error: string;
3373
+ };
3374
+ outputFormat: "json";
3375
+ status: 404;
3376
+ } | {
3377
+ input: {
3378
+ param: {
3379
+ key: string;
3380
+ };
3381
+ };
3382
+ output: {
3383
+ ok: true;
3384
+ };
3385
+ outputFormat: "json";
3386
+ status: hono_utils_http_status.ContentfulStatusCode;
3387
+ };
3388
+ };
3389
+ }, "/api/env"> | hono_types.MergeSchemaPath<{
3390
+ "/": {
3391
+ $get: {
3392
+ input: {};
3393
+ output: {
3394
+ error: string;
3395
+ };
3396
+ outputFormat: "json";
3397
+ status: 500;
3398
+ } | {
3399
+ input: {};
3400
+ output: {
3401
+ key: "seed_soul" | "default_soul" | "default_memory" | "sprout_message" | "restart_message" | "merge_message" | "compaction_warning" | "compaction_instructions" | "reply_instructions" | "channel_invite" | "pre_sleep" | "wake_summary" | "wake_trigger_summary";
3402
+ content: string;
3403
+ description: string;
3404
+ variables: string[];
3405
+ isCustom: boolean;
3406
+ category: PromptCategory;
3407
+ }[];
3408
+ outputFormat: "json";
3409
+ status: hono_utils_http_status.ContentfulStatusCode;
3410
+ };
3411
+ };
3412
+ } & {
3413
+ "/:key": {
3414
+ $put: {
3415
+ input: {
3416
+ json: {
3417
+ content: string;
3418
+ };
3419
+ } & {
3420
+ param: {
3421
+ key: string;
3422
+ };
3423
+ };
3424
+ output: {
3425
+ error: string;
3426
+ };
3427
+ outputFormat: "json";
3428
+ status: 404;
3429
+ } | {
3430
+ input: {
3431
+ json: {
3432
+ content: string;
3433
+ };
3434
+ } & {
3435
+ param: {
3436
+ key: string;
3437
+ };
3438
+ };
3439
+ output: {
3440
+ ok: true;
3441
+ };
3442
+ outputFormat: "json";
3443
+ status: hono_utils_http_status.ContentfulStatusCode;
3444
+ };
3445
+ };
3446
+ } & {
3447
+ "/:key": {
3448
+ $delete: {
3449
+ input: {
3450
+ param: {
3451
+ key: string;
3452
+ };
3453
+ };
3454
+ output: {
3455
+ error: string;
3456
+ };
3457
+ outputFormat: "json";
3458
+ status: 404;
3459
+ } | {
3460
+ input: {
3461
+ param: {
3462
+ key: string;
3463
+ };
3464
+ };
3465
+ output: {
3466
+ ok: true;
3467
+ };
3468
+ outputFormat: "json";
3469
+ status: hono_utils_http_status.ContentfulStatusCode;
3470
+ };
3471
+ };
3472
+ }, "/api/prompts"> | hono_types.MergeSchemaPath<{
3473
+ "/": {
3474
+ $get: {
3475
+ input: {};
3476
+ output: {
3477
+ id: string;
3478
+ name: string;
3479
+ description: string;
3480
+ author: string;
3481
+ version: number;
3482
+ created_at: string;
3483
+ updated_at: string;
3484
+ }[];
3485
+ outputFormat: "json";
3486
+ status: hono_utils_http_status.ContentfulStatusCode;
3487
+ };
3488
+ };
3489
+ } & {
3490
+ "/:id": {
3491
+ $get: {
3492
+ input: {
3493
+ param: {
3494
+ id: string;
3495
+ };
3496
+ };
3497
+ output: {
3498
+ error: string;
3499
+ };
3500
+ outputFormat: "json";
3501
+ status: 404;
3502
+ } | {
3503
+ input: {
3504
+ param: {
3505
+ id: string;
3506
+ };
3507
+ };
3508
+ output: {
3509
+ files: string[];
3510
+ id: string;
3511
+ name: string;
3512
+ description: string;
3513
+ author: string;
3514
+ version: number;
3515
+ created_at: string;
3516
+ updated_at: string;
3517
+ };
3518
+ outputFormat: "json";
3519
+ status: hono_utils_http_status.ContentfulStatusCode;
3520
+ };
3521
+ };
3522
+ } & {
3523
+ "/upload": {
3524
+ $post: {
3525
+ input: {};
3526
+ output: {
3527
+ id: string;
3528
+ name: string;
3529
+ description: string;
3530
+ author: string;
3531
+ version: number;
3532
+ created_at: string;
3533
+ updated_at: string;
3534
+ };
3535
+ outputFormat: "json";
3536
+ status: hono_utils_http_status.ContentfulStatusCode;
3537
+ } | {
3538
+ input: {};
3539
+ output: {
3540
+ error: string;
3541
+ };
3542
+ outputFormat: "json";
3543
+ status: 400;
3544
+ };
3545
+ };
3546
+ } & {
3547
+ "/:id": {
3548
+ $delete: {
3549
+ input: {
3550
+ param: {
3551
+ id: string;
3552
+ };
3553
+ };
3554
+ output: {
3555
+ error: string;
3556
+ };
3557
+ outputFormat: "json";
3558
+ status: 404;
3559
+ } | {
3560
+ input: {
3561
+ param: {
3562
+ id: string;
3563
+ };
3564
+ };
3565
+ output: {
3566
+ ok: true;
3567
+ };
3568
+ outputFormat: "json";
3569
+ status: hono_utils_http_status.ContentfulStatusCode;
3570
+ };
3571
+ };
3572
+ }, "/api/skills"> | hono_types.MergeSchemaPath<{
3573
+ "/": {
3574
+ $get: {
3575
+ input: {};
3576
+ output: {
3577
+ id: string;
3578
+ mind_name: string | null;
3579
+ channel: string;
3580
+ type: "dm" | "group" | "channel";
3581
+ name: string | null;
3582
+ user_id: number | null;
3583
+ title: string | null;
3584
+ created_at: string;
3585
+ updated_at: string;
3586
+ participants: {
3587
+ userId: number;
3588
+ username: string;
3589
+ userType: "brain" | "mind";
3590
+ role: "owner" | "member";
3591
+ }[];
3592
+ lastMessage?: {
3593
+ role: "user" | "assistant";
3594
+ senderName: string | null;
3595
+ text: string;
3596
+ createdAt: string;
3597
+ } | undefined;
3598
+ }[];
3599
+ outputFormat: "json";
3600
+ status: hono_utils_http_status.ContentfulStatusCode;
3601
+ };
3602
+ };
3603
+ } & {
3604
+ "/:id/messages": {
3605
+ $get: {
3606
+ input: {
3607
+ param: {
3608
+ id: string;
3609
+ };
3610
+ };
3611
+ output: {
3612
+ id: number;
3613
+ conversation_id: string;
3614
+ role: "user" | "assistant";
3615
+ sender_name: string | null;
3616
+ content: ({
3617
+ type: "text";
3618
+ text: string;
3619
+ } | {
3620
+ type: "tool_use";
3621
+ name: string;
3622
+ input: hono_utils_types.JSONValue;
3623
+ } | {
3624
+ type: "tool_result";
3625
+ output: string;
3626
+ is_error?: boolean | undefined;
3627
+ } | {
3628
+ type: "image";
3629
+ media_type: string;
3630
+ data: string;
3631
+ })[];
3632
+ created_at: string;
3633
+ }[];
3634
+ outputFormat: "json";
3635
+ status: hono_utils_http_status.ContentfulStatusCode;
3636
+ } | {
3637
+ input: {
3638
+ param: {
3639
+ id: string;
3640
+ };
3641
+ };
3642
+ output: {
3643
+ error: string;
3644
+ };
3645
+ outputFormat: "json";
3646
+ status: 404;
3647
+ };
3648
+ };
3649
+ } & {
3650
+ "/": {
3651
+ $post: {
3652
+ input: {
3653
+ json: {
3654
+ participantNames: string[];
3655
+ title?: string | undefined;
3656
+ };
3657
+ };
3658
+ output: {
3659
+ id: string;
3660
+ mind_name: string | null;
3661
+ channel: string;
3662
+ type: "dm" | "group" | "channel";
3663
+ name: string | null;
3664
+ user_id: number | null;
3665
+ title: string | null;
3666
+ created_at: string;
3667
+ updated_at: string;
3668
+ };
3669
+ outputFormat: "json";
3670
+ status: 201;
3671
+ } | {
3672
+ input: {
3673
+ json: {
3674
+ participantNames: string[];
3675
+ title?: string | undefined;
3676
+ };
3677
+ };
3678
+ output: {
3679
+ error: string;
3680
+ };
3681
+ outputFormat: "json";
3682
+ status: 400;
3683
+ };
3684
+ };
3685
+ } & {
3686
+ "/:id/events": {
3687
+ $get: {
3688
+ input: {
3689
+ param: {
3690
+ id: string;
3691
+ };
3692
+ };
3693
+ output: {};
3694
+ outputFormat: string;
3695
+ status: hono_utils_http_status.StatusCode;
3696
+ };
3697
+ };
3698
+ } & {
3699
+ "/:id": {
3700
+ $delete: {
3701
+ input: {
3702
+ param: {
3703
+ id: string;
3704
+ };
3705
+ };
3706
+ output: {
3707
+ error: string;
3708
+ };
3709
+ outputFormat: "json";
3710
+ status: 404;
3711
+ } | {
3712
+ input: {
3713
+ param: {
3714
+ id: string;
3715
+ };
3716
+ };
3717
+ output: {
3718
+ ok: true;
3719
+ };
3720
+ outputFormat: "json";
3721
+ status: hono_utils_http_status.ContentfulStatusCode;
3722
+ };
3723
+ };
3724
+ }, "/api/conversations"> | hono_types.MergeSchemaPath<{
3725
+ "/": {
3726
+ $get: {
3727
+ input: {};
3728
+ output: {
3729
+ participantCount: number;
3730
+ isMember: boolean;
3731
+ id: string;
3732
+ mind_name: string | null;
3733
+ channel: string;
3734
+ type: "dm" | "group" | "channel";
3735
+ name: string | null;
3736
+ user_id: number | null;
3737
+ title: string | null;
3738
+ created_at: string;
3739
+ updated_at: string;
3740
+ }[];
3741
+ outputFormat: "json";
3742
+ status: hono_utils_http_status.ContentfulStatusCode;
3743
+ };
3744
+ };
3745
+ } & {
3746
+ "/": {
3747
+ $post: {
3748
+ input: {
3749
+ json: {
3750
+ name: string;
3751
+ };
3752
+ };
3753
+ output: {
3754
+ id: string;
3755
+ mind_name: string | null;
3756
+ channel: string;
3757
+ type: "dm" | "group" | "channel";
3758
+ name: string | null;
3759
+ user_id: number | null;
3760
+ title: string | null;
3761
+ created_at: string;
3762
+ updated_at: string;
3763
+ };
3764
+ outputFormat: "json";
3765
+ status: 201;
3766
+ } | {
3767
+ input: {
3768
+ json: {
3769
+ name: string;
3770
+ };
3771
+ };
3772
+ output: {
3773
+ error: string;
3774
+ };
3775
+ outputFormat: "json";
3776
+ status: 409;
3777
+ };
3778
+ };
3779
+ } & {
3780
+ "/:name/join": {
3781
+ $post: {
3782
+ input: {
3783
+ param: {
3784
+ name: string;
3785
+ };
3786
+ };
3787
+ output: {
3788
+ error: string;
3789
+ };
3790
+ outputFormat: "json";
3791
+ status: 404;
3792
+ } | {
3793
+ input: {
3794
+ param: {
3795
+ name: string;
3796
+ };
3797
+ };
3798
+ output: {
3799
+ ok: true;
3800
+ conversationId: string;
3801
+ };
3802
+ outputFormat: "json";
3803
+ status: hono_utils_http_status.ContentfulStatusCode;
3804
+ };
3805
+ };
3806
+ } & {
3807
+ "/:name/leave": {
3808
+ $post: {
3809
+ input: {
3810
+ param: {
3811
+ name: string;
3812
+ };
3813
+ };
3814
+ output: {
3815
+ error: string;
3816
+ };
3817
+ outputFormat: "json";
3818
+ status: 404;
3819
+ } | {
3820
+ input: {
3821
+ param: {
3822
+ name: string;
3823
+ };
3824
+ };
3825
+ output: {
3826
+ ok: true;
3827
+ };
3828
+ outputFormat: "json";
3829
+ status: hono_utils_http_status.ContentfulStatusCode;
3830
+ };
3831
+ };
3832
+ } & {
3833
+ "/:name/members": {
3834
+ $get: {
3835
+ input: {
3836
+ param: {
3837
+ name: string;
3838
+ };
3839
+ };
3840
+ output: {
3841
+ userId: number;
3842
+ username: string;
3843
+ userType: "brain" | "mind";
3844
+ role: "owner" | "member";
3845
+ }[];
3846
+ outputFormat: "json";
3847
+ status: hono_utils_http_status.ContentfulStatusCode;
3848
+ } | {
3849
+ input: {
3850
+ param: {
3851
+ name: string;
3852
+ };
3853
+ };
3854
+ output: {
3855
+ error: string;
3856
+ };
3857
+ outputFormat: "json";
3858
+ status: 404;
3859
+ };
3860
+ };
3861
+ } & {
3862
+ "/:name/invite": {
3863
+ $post: {
3864
+ input: {
3865
+ json: {
3866
+ username: string;
3867
+ };
3868
+ } & {
3869
+ param: {
3870
+ name: string;
3871
+ };
3872
+ };
3873
+ output: {
3874
+ error: string;
3875
+ };
3876
+ outputFormat: "json";
3877
+ status: 404;
3878
+ } | {
3879
+ input: {
3880
+ json: {
3881
+ username: string;
3882
+ };
3883
+ } & {
3884
+ param: {
3885
+ name: string;
3886
+ };
3887
+ };
3888
+ output: {
3889
+ error: string;
3890
+ };
3891
+ outputFormat: "json";
3892
+ status: 409;
3893
+ } | {
3894
+ input: {
3895
+ json: {
3896
+ username: string;
3897
+ };
3898
+ } & {
3899
+ param: {
3900
+ name: string;
3901
+ };
3902
+ };
3903
+ output: {
3904
+ ok: true;
3905
+ };
3906
+ outputFormat: "json";
3907
+ status: hono_utils_http_status.ContentfulStatusCode;
3908
+ };
3909
+ };
3910
+ }, "/api/volute/channels"> | hono_types.MergeSchemaPath<{
3911
+ "/chat": {
3912
+ $post: {
3913
+ input: {
3914
+ json: {
3915
+ conversationId: string;
3916
+ message?: string | undefined;
3917
+ images?: {
3918
+ media_type: string;
3919
+ data: string;
3920
+ }[] | undefined;
3921
+ };
3922
+ };
3923
+ output: {
3924
+ error: string;
3925
+ };
3926
+ outputFormat: "json";
3927
+ status: 400;
3928
+ } | {
3929
+ input: {
3930
+ json: {
3931
+ conversationId: string;
3932
+ message?: string | undefined;
3933
+ images?: {
3934
+ media_type: string;
3935
+ data: string;
3936
+ }[] | undefined;
3937
+ };
3938
+ };
3939
+ output: {
3940
+ error: string;
3941
+ };
3942
+ outputFormat: "json";
3943
+ status: 404;
3944
+ } | {
3945
+ input: {
3946
+ json: {
3947
+ conversationId: string;
3948
+ message?: string | undefined;
3949
+ images?: {
3950
+ media_type: string;
3951
+ data: string;
3952
+ }[] | undefined;
3953
+ };
3954
+ };
3955
+ output: {
3956
+ ok: true;
3957
+ conversationId: string;
3958
+ };
3959
+ outputFormat: "json";
3960
+ status: hono_utils_http_status.ContentfulStatusCode;
3961
+ };
3962
+ };
3963
+ }, "/api/volute"> | hono_types.MergeSchemaPath<{
3964
+ "/": {
3965
+ $get: {
3966
+ input: {};
3967
+ output: {
3968
+ id: string;
3969
+ mind_name: string | null;
3970
+ channel: string;
3971
+ type: "dm" | "group" | "channel";
3972
+ name: string | null;
3973
+ user_id: number | null;
3974
+ title: string | null;
3975
+ created_at: string;
3976
+ updated_at: string;
3977
+ participants: {
3978
+ userId: number;
3979
+ username: string;
3980
+ userType: "brain" | "mind";
3981
+ role: "owner" | "member";
3982
+ }[];
3983
+ lastMessage?: {
3984
+ role: "user" | "assistant";
3985
+ senderName: string | null;
3986
+ text: string;
3987
+ createdAt: string;
3988
+ } | undefined;
3989
+ }[];
3990
+ outputFormat: "json";
3991
+ status: hono_utils_http_status.ContentfulStatusCode;
3992
+ };
3993
+ };
3994
+ } & {
3995
+ "/:id/messages": {
3996
+ $get: {
3997
+ input: {
3998
+ param: {
3999
+ id: string;
4000
+ };
4001
+ };
4002
+ output: {
4003
+ error: string;
4004
+ };
4005
+ outputFormat: "json";
4006
+ status: 404;
4007
+ } | {
4008
+ input: {
4009
+ param: {
4010
+ id: string;
4011
+ };
4012
+ };
4013
+ output: {
4014
+ error: string;
4015
+ };
4016
+ outputFormat: "json";
4017
+ status: 400;
4018
+ } | {
4019
+ input: {
4020
+ param: {
4021
+ id: string;
4022
+ };
4023
+ };
4024
+ output: {
4025
+ items: {
4026
+ id: number;
4027
+ conversation_id: string;
4028
+ role: "user" | "assistant";
4029
+ sender_name: string | null;
4030
+ content: ({
4031
+ type: "text";
4032
+ text: string;
4033
+ } | {
4034
+ type: "tool_use";
4035
+ name: string;
4036
+ input: hono_utils_types.JSONValue;
4037
+ } | {
4038
+ type: "tool_result";
4039
+ output: string;
4040
+ is_error?: boolean | undefined;
4041
+ } | {
4042
+ type: "image";
4043
+ media_type: string;
4044
+ data: string;
4045
+ })[];
4046
+ created_at: string;
4047
+ }[];
4048
+ hasMore: boolean;
4049
+ };
4050
+ outputFormat: "json";
4051
+ status: hono_utils_http_status.ContentfulStatusCode;
4052
+ };
4053
+ };
4054
+ } & {
4055
+ "/:id/participants": {
4056
+ $get: {
4057
+ input: {
4058
+ param: {
4059
+ id: string;
4060
+ };
4061
+ };
4062
+ output: {
4063
+ userId: number;
4064
+ username: string;
4065
+ userType: "brain" | "mind";
4066
+ role: "owner" | "member";
4067
+ }[];
4068
+ outputFormat: "json";
4069
+ status: hono_utils_http_status.ContentfulStatusCode;
4070
+ } | {
4071
+ input: {
4072
+ param: {
4073
+ id: string;
4074
+ };
4075
+ };
4076
+ output: {
4077
+ error: string;
4078
+ };
4079
+ outputFormat: "json";
4080
+ status: 404;
4081
+ };
4082
+ };
4083
+ } & {
4084
+ "/": {
4085
+ $post: {
4086
+ input: {
4087
+ json: {
4088
+ participantNames: string[];
4089
+ title?: string | undefined;
4090
+ };
4091
+ };
4092
+ output: {
4093
+ id: string;
4094
+ mind_name: string | null;
4095
+ channel: string;
4096
+ type: "dm" | "group" | "channel";
4097
+ name: string | null;
4098
+ user_id: number | null;
4099
+ title: string | null;
4100
+ created_at: string;
4101
+ updated_at: string;
4102
+ };
4103
+ outputFormat: "json";
4104
+ status: 201;
4105
+ } | {
4106
+ input: {
4107
+ json: {
4108
+ participantNames: string[];
4109
+ title?: string | undefined;
4110
+ };
4111
+ };
4112
+ output: {
4113
+ error: string;
4114
+ };
4115
+ outputFormat: "json";
4116
+ status: 400;
4117
+ };
4118
+ };
4119
+ } & {
4120
+ "/:id": {
4121
+ $delete: {
4122
+ input: {
4123
+ param: {
4124
+ id: string;
4125
+ };
4126
+ };
4127
+ output: {
4128
+ error: string;
4129
+ };
4130
+ outputFormat: "json";
4131
+ status: 404;
4132
+ } | {
4133
+ input: {
4134
+ param: {
4135
+ id: string;
4136
+ };
4137
+ };
4138
+ output: {
4139
+ ok: true;
4140
+ };
4141
+ outputFormat: "json";
4142
+ status: hono_utils_http_status.ContentfulStatusCode;
4143
+ };
4144
+ };
4145
+ }, "/api/v1/conversations"> | hono_types.MergeSchemaPath<{
4146
+ "/": {
4147
+ $get: {
4148
+ input: {};
4149
+ output: {};
4150
+ outputFormat: string;
4151
+ status: hono_utils_http_status.StatusCode;
4152
+ };
4153
+ };
4154
+ }, "/api/v1/events"> | hono_types.MergeSchemaPath<{
4155
+ "/minds/:name/chat": {
4156
+ $post: {
4157
+ input: {
4158
+ json: {
4159
+ message?: string | undefined;
4160
+ conversationId?: string | undefined;
4161
+ sender?: string | undefined;
4162
+ images?: {
4163
+ media_type: string;
4164
+ data: string;
4165
+ }[] | undefined;
4166
+ };
4167
+ } & {
4168
+ param: {
4169
+ name: string;
4170
+ };
4171
+ };
4172
+ output: {
4173
+ error: string;
4174
+ };
4175
+ outputFormat: "json";
4176
+ status: 404;
4177
+ } | {
4178
+ input: {
4179
+ json: {
4180
+ message?: string | undefined;
4181
+ conversationId?: string | undefined;
4182
+ sender?: string | undefined;
4183
+ images?: {
4184
+ media_type: string;
4185
+ data: string;
4186
+ }[] | undefined;
4187
+ };
4188
+ } & {
4189
+ param: {
4190
+ name: string;
4191
+ };
4192
+ };
4193
+ output: {
4194
+ error: string;
4195
+ };
4196
+ outputFormat: "json";
4197
+ status: 400;
4198
+ } | {
4199
+ input: {
4200
+ json: {
4201
+ message?: string | undefined;
4202
+ conversationId?: string | undefined;
4203
+ sender?: string | undefined;
4204
+ images?: {
4205
+ media_type: string;
4206
+ data: string;
4207
+ }[] | undefined;
4208
+ };
4209
+ } & {
4210
+ param: {
4211
+ name: string;
4212
+ };
4213
+ };
4214
+ output: {
4215
+ ok: true;
4216
+ conversationId: string;
4217
+ };
4218
+ outputFormat: "json";
4219
+ status: hono_utils_http_status.ContentfulStatusCode;
4220
+ };
4221
+ };
4222
+ } & {
4223
+ "/minds/:name/conversations/:id/events": {
4224
+ $get: {
4225
+ input: {
4226
+ param: {
4227
+ id: string;
4228
+ } & {
4229
+ name: string;
4230
+ };
4231
+ };
4232
+ output: {};
4233
+ outputFormat: string;
4234
+ status: hono_utils_http_status.StatusCode;
4235
+ };
4236
+ };
4237
+ } & {
4238
+ "/chat": {
4239
+ $post: {
4240
+ input: {
4241
+ json: {
4242
+ conversationId: string;
4243
+ message?: string | undefined;
4244
+ images?: {
4245
+ media_type: string;
4246
+ data: string;
4247
+ }[] | undefined;
4248
+ };
4249
+ };
4250
+ output: {
4251
+ error: string;
4252
+ };
4253
+ outputFormat: "json";
4254
+ status: 400;
4255
+ } | {
4256
+ input: {
4257
+ json: {
4258
+ conversationId: string;
4259
+ message?: string | undefined;
4260
+ images?: {
4261
+ media_type: string;
4262
+ data: string;
4263
+ }[] | undefined;
4264
+ };
4265
+ };
4266
+ output: {
4267
+ error: string;
4268
+ };
4269
+ outputFormat: "json";
4270
+ status: 404;
4271
+ } | {
4272
+ input: {
4273
+ json: {
4274
+ conversationId: string;
4275
+ message?: string | undefined;
4276
+ images?: {
4277
+ media_type: string;
4278
+ data: string;
4279
+ }[] | undefined;
4280
+ };
4281
+ };
4282
+ output: {
4283
+ ok: true;
4284
+ conversationId: string;
4285
+ };
4286
+ outputFormat: "json";
4287
+ status: hono_utils_http_status.ContentfulStatusCode;
4288
+ };
4289
+ };
4290
+ }, "/api/v1">, "/", "/">;
4291
+
4292
+ type AppType = typeof routes;
4293
+
4294
+ export type { AppType };