volute 0.32.0 → 0.33.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 (97) hide show
  1. package/README.md +16 -0
  2. package/dist/{activity-events-HETAODOK.js → activity-events-XJO3P4RR.js} +1 -1
  3. package/dist/{ai-service-ZIPCV3MX.js → ai-service-SBY2WG7O.js} +2 -2
  4. package/dist/api.d.ts +666 -848
  5. package/dist/{auth-6DMGES3I.js → auth-GKCDSO4T.js} +2 -2
  6. package/dist/{chat-XT4OBJBU.js → chat-U5ZOME3O.js} +8 -8
  7. package/dist/{chunk-QBQ424EM.js → chunk-3Z2DPESO.js} +457 -203
  8. package/dist/chunk-6LXAAQ43.js +22 -0
  9. package/dist/{spirit-N4W4UQRH.js → chunk-7J3HEVR7.js} +12 -9
  10. package/dist/{chunk-WKF5FEFK.js → chunk-A2A4KLFE.js} +54 -155
  11. package/dist/{chunk-D5G5YOPL.js → chunk-C7I35G4R.js} +3 -3
  12. package/dist/{chunk-SX5TKJBZ.js → chunk-GY5HBI7A.js} +1 -1
  13. package/dist/{chunk-2FLJ63GU.js → chunk-JUKK7FPS.js} +1 -1
  14. package/dist/{chunk-TDRYEPH4.js → chunk-JYVGHWEJ.js} +2 -2
  15. package/dist/chunk-KIEPMIM5.js +59 -0
  16. package/dist/{chunk-QZANELPX.js → chunk-KVK2DLWI.js} +1 -0
  17. package/dist/{chunk-R7E6CRVQ.js → chunk-LOEJ4HPQ.js} +1 -1
  18. package/dist/{chunk-TSXLLQZW.js → chunk-N432I7QH.js} +9 -0
  19. package/dist/{chunk-LSGWR54X.js → chunk-NNB4WIG7.js} +1 -1
  20. package/dist/{chunk-JJ7W6WSB.js → chunk-NPKSDYA2.js} +2 -2
  21. package/dist/chunk-OYAKCAVY.js +29 -0
  22. package/dist/{chunk-IYDIE3HG.js → chunk-QTUVYI7W.js} +1 -1
  23. package/dist/{chunk-S6NFERDC.js → chunk-RVGLDGMI.js} +1 -1
  24. package/dist/{chunk-LGB6JBHI.js → chunk-VH33ZWMW.js} +4 -54
  25. package/dist/cli.js +26 -18
  26. package/dist/{clock-2UOZ6JPU.js → clock-BVH3V6E3.js} +5 -5
  27. package/dist/{cloud-sync-JN3NWKEM.js → cloud-sync-4NWLMFVH.js} +15 -11
  28. package/dist/{conversations-3O5O6AS3.js → conversations-AWI5SZW2.js} +2 -2
  29. package/dist/{create-WBBYI6V7.js → create-2FK7Z46Y.js} +1 -1
  30. package/dist/{create-RNLNCORE.js → create-YWD2TIP4.js} +4 -4
  31. package/dist/{daemon-restart-NGFHFAUF.js → daemon-restart-GOBUKLX7.js} +6 -5
  32. package/dist/daemon.js +1182 -1031
  33. package/dist/delivery-manager-PFAKEJTC.js +32 -0
  34. package/dist/{down-TB3ESMNP.js → down-FWWTEKXM.js} +4 -3
  35. package/dist/{extension-FQ5D3NCC.js → extension-OBTGKQQD.js} +2 -1
  36. package/dist/{extensions-GDYWQXC4.js → extensions-KYNTVTMO.js} +7 -6
  37. package/dist/isolation-LLAYQYDY.js +22 -0
  38. package/dist/message-delivery-DFF5SJRM.js +42 -0
  39. package/dist/{mind-2B6M7Y25.js → mind-IOJFLEM5.js} +13 -7
  40. package/dist/{mind-activity-tracker-NZZT2NTT.js → mind-activity-tracker-F6O4Q2SL.js} +2 -2
  41. package/dist/mind-manager-NBJF5D26.js +32 -0
  42. package/dist/mind-profile-P67FEHOY.js +47 -0
  43. package/dist/mind-service-2MQ6UK5N.js +38 -0
  44. package/dist/{package-PK6JUFL3.js → package-U3VFO273.js} +2 -1
  45. package/dist/read-stdin-HQJ7774D.js +8 -0
  46. package/dist/{sandbox-JANNTX6U.js → sandbox-GJOK4QLQ.js} +2 -2
  47. package/dist/scheduler-ZZ7XGQG6.js +32 -0
  48. package/dist/seed-QDYVLG74.js +11 -0
  49. package/dist/seed-check-S2IX25RL.js +32 -0
  50. package/dist/seed-cmd-DKOUFEAU.js +36 -0
  51. package/dist/{seed-ALUQ55FF.js → seed-create-4XBBOLRH.js} +5 -5
  52. package/dist/{sprout-L2GFOVF7.js → seed-sprout-GQEIIQRT.js} +19 -6
  53. package/dist/{send-3MI36LEF.js → send-QIV2INHB.js} +51 -49
  54. package/dist/{setup-SZIARWI6.js → setup-TISPCO22.js} +3 -1
  55. package/dist/{setup-WENLVPVP.js → setup-XMCBE3LF.js} +7 -5
  56. package/dist/skills/imagegen/SKILL.md +11 -7
  57. package/dist/skills/imagegen/scripts/imagegen.ts +146 -25
  58. package/dist/skills/orientation/SKILL.md +9 -2
  59. package/dist/skills/seed-nurture/SKILL.md +42 -0
  60. package/dist/skills/volute-mind/SKILL.md +4 -0
  61. package/dist/{skills-XNZK6P4K.js → skills-7FV7EJTE.js} +4 -3
  62. package/dist/sleep-manager-JTXSN7NV.js +36 -0
  63. package/dist/spirit-VRONKFMF.js +23 -0
  64. package/dist/sprout-WKLZXUIQ.js +11 -0
  65. package/dist/{status-TCUMUO6M.js → status-3JBTFSMI.js} +3 -2
  66. package/dist/{system-chat-NPYFYZVI.js → system-chat-JAPOJ3KE.js} +15 -11
  67. package/dist/{systems-DHBKVYEY.js → systems-XRI52VCH.js} +2 -2
  68. package/dist/{up-6I6BHRTO.js → up-M5AS6SBV.js} +5 -4
  69. package/dist/{update-QVPRF6GR.js → update-UD543CXX.js} +3 -2
  70. package/dist/{version-notify-TCKWBZZG.js → version-notify-NBI2MTJO.js} +18 -15
  71. package/dist/volute-config-HD7WWUQC.js +10 -0
  72. package/dist/web-assets/assets/index-CWJrVveV.css +1 -0
  73. package/dist/web-assets/assets/index-DJt14FRI.js +75 -0
  74. package/dist/web-assets/index.html +2 -2
  75. package/package.json +2 -1
  76. package/templates/claude/src/lib/stream-consumer.ts +38 -0
  77. package/templates/codex/src/agent.ts +1 -0
  78. package/dist/delivery-manager-SDVXFD4W.js +0 -28
  79. package/dist/message-delivery-2FIM7QKO.js +0 -32
  80. package/dist/mind-manager-BNCMGYXW.js +0 -28
  81. package/dist/mind-service-AV273WT4.js +0 -34
  82. package/dist/sleep-manager-53DZOWW7.js +0 -32
  83. package/dist/web-assets/assets/index-Bui7U9Uu.css +0 -1
  84. package/dist/web-assets/assets/index-e36DIo1b.js +0 -73
  85. package/dist/{accept-74M7I4RZ.js → accept-D5VBM7JW.js} +3 -3
  86. package/dist/{bridge-BVCBTGPF.js → bridge-TXWWPPOJ.js} +3 -3
  87. package/dist/{env-RLYQBOOP.js → env-JCOF2222.js} +3 -3
  88. package/dist/{files-EAMPO2SJ.js → files-65PMW5IK.js} +3 -3
  89. package/dist/{history-FO5PHBQ5.js → history-DKCDI3JO.js} +3 -3
  90. package/dist/{list-DW2VRTOZ.js → list-JQ463EDA.js} +3 -3
  91. package/dist/{login-7CHPW2PN.js → login-D7ETSU4R.js} +3 -3
  92. package/dist/{mind-sleep-B7BHJLH7.js → mind-sleep-WW2IX7JT.js} +3 -3
  93. package/dist/{mind-wake-GY3RFX7Y.js → mind-wake-VSSGW465.js} +3 -3
  94. package/dist/{read-5AMJRO3D.js → read-EBY56C33.js} +3 -3
  95. package/dist/{register-V2JZZKFK.js → register-HD74C4TT.js} +3 -3
  96. package/dist/{reject-33HEZMZ4.js → reject-UJKFBHRO.js} +3 -3
  97. package/dist/{skill-TUVOTW4Z.js → skill-PSQGRRJX.js} +3 -3
package/dist/api.d.ts CHANGED
@@ -707,6 +707,142 @@ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
707
707
  status: 502;
708
708
  };
709
709
  };
710
+ } & {
711
+ "/imagegen/providers": {
712
+ $get: {
713
+ input: {};
714
+ output: {
715
+ id: string;
716
+ configured: boolean;
717
+ authMethod: "api_key" | "env_var" | null;
718
+ }[];
719
+ outputFormat: "json";
720
+ status: hono_utils_http_status.ContentfulStatusCode;
721
+ };
722
+ };
723
+ } & {
724
+ "/imagegen/providers/:id": {
725
+ $put: {
726
+ input: {
727
+ json: {
728
+ apiKey: string;
729
+ };
730
+ } & {
731
+ param: {
732
+ id: string;
733
+ };
734
+ };
735
+ output: {
736
+ error: string;
737
+ };
738
+ outputFormat: "json";
739
+ status: 400;
740
+ } | {
741
+ input: {
742
+ json: {
743
+ apiKey: string;
744
+ };
745
+ } & {
746
+ param: {
747
+ id: string;
748
+ };
749
+ };
750
+ output: {
751
+ ok: true;
752
+ };
753
+ outputFormat: "json";
754
+ status: hono_utils_http_status.ContentfulStatusCode;
755
+ };
756
+ };
757
+ } & {
758
+ "/imagegen/providers/:id": {
759
+ $delete: {
760
+ input: {
761
+ param: {
762
+ id: string;
763
+ };
764
+ };
765
+ output: {
766
+ error: string;
767
+ };
768
+ outputFormat: "json";
769
+ status: 400;
770
+ } | {
771
+ input: {
772
+ param: {
773
+ id: string;
774
+ };
775
+ };
776
+ output: {
777
+ ok: true;
778
+ };
779
+ outputFormat: "json";
780
+ status: hono_utils_http_status.ContentfulStatusCode;
781
+ };
782
+ };
783
+ } & {
784
+ "/imagegen/models": {
785
+ $get: {
786
+ input: {};
787
+ output: {
788
+ models: string[];
789
+ defaultModel: string | null;
790
+ };
791
+ outputFormat: "json";
792
+ status: hono_utils_http_status.ContentfulStatusCode;
793
+ };
794
+ };
795
+ } & {
796
+ "/imagegen/models": {
797
+ $put: {
798
+ input: {
799
+ json: {
800
+ models: string[];
801
+ defaultModel?: string | null | undefined;
802
+ };
803
+ };
804
+ output: {
805
+ ok: true;
806
+ };
807
+ outputFormat: "json";
808
+ status: hono_utils_http_status.ContentfulStatusCode;
809
+ };
810
+ };
811
+ } & {
812
+ "/imagegen/models/search": {
813
+ $get: {
814
+ input: {};
815
+ output: {
816
+ id: string;
817
+ name: string;
818
+ description?: string | undefined;
819
+ owner: string;
820
+ }[];
821
+ outputFormat: "json";
822
+ status: hono_utils_http_status.ContentfulStatusCode;
823
+ } | {
824
+ input: {};
825
+ output: {
826
+ error: string;
827
+ };
828
+ outputFormat: "json";
829
+ status: 500;
830
+ };
831
+ };
832
+ } & {
833
+ "/imagegen/generate": {
834
+ $post: {
835
+ input: {
836
+ json: {
837
+ model: string;
838
+ prompt: string;
839
+ };
840
+ };
841
+ output: {};
842
+ outputFormat: string;
843
+ status: hono_utils_http_status.StatusCode;
844
+ };
845
+ };
710
846
  } & {
711
847
  "/ai/key/:provider": {
712
848
  $get: {
@@ -780,6 +916,34 @@ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
780
916
  status: hono_utils_http_status.ContentfulStatusCode;
781
917
  };
782
918
  };
919
+ } & {
920
+ "/ai/defaults": {
921
+ $get: {
922
+ input: {};
923
+ output: {
924
+ spiritModel: string | null;
925
+ utilityModel: string | null;
926
+ };
927
+ outputFormat: "json";
928
+ status: hono_utils_http_status.ContentfulStatusCode;
929
+ };
930
+ };
931
+ } & {
932
+ "/ai/defaults": {
933
+ $put: {
934
+ input: {
935
+ json: {
936
+ spiritModel: string | null;
937
+ utilityModel: string | null;
938
+ };
939
+ };
940
+ output: {
941
+ ok: true;
942
+ };
943
+ outputFormat: "json";
944
+ status: hono_utils_http_status.ContentfulStatusCode;
945
+ };
946
+ };
783
947
  } & {
784
948
  "/ai/providers/:id": {
785
949
  $put: {
@@ -1459,6 +1623,58 @@ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
1459
1623
  status: hono_utils_http_status.ContentfulStatusCode;
1460
1624
  };
1461
1625
  };
1626
+ } & {
1627
+ "/:name/profile": {
1628
+ $patch: {
1629
+ input: {
1630
+ param: {
1631
+ name: string;
1632
+ };
1633
+ };
1634
+ output: {
1635
+ error: string;
1636
+ };
1637
+ outputFormat: "json";
1638
+ status: 404;
1639
+ } | {
1640
+ input: {
1641
+ param: {
1642
+ name: string;
1643
+ };
1644
+ };
1645
+ output: {
1646
+ ok: true;
1647
+ };
1648
+ outputFormat: "json";
1649
+ status: hono_utils_http_status.ContentfulStatusCode;
1650
+ };
1651
+ };
1652
+ } & {
1653
+ "/:name/seed-check": {
1654
+ $get: {
1655
+ input: {
1656
+ param: {
1657
+ name: string;
1658
+ };
1659
+ };
1660
+ output: {
1661
+ error: string;
1662
+ };
1663
+ outputFormat: "json";
1664
+ status: 404;
1665
+ } | {
1666
+ input: {
1667
+ param: {
1668
+ name: string;
1669
+ };
1670
+ };
1671
+ output: {
1672
+ output: string;
1673
+ };
1674
+ outputFormat: "json";
1675
+ status: hono_utils_http_status.ContentfulStatusCode;
1676
+ };
1677
+ };
1462
1678
  } & {
1463
1679
  "/:name/sprout": {
1464
1680
  $post: {
@@ -2050,7 +2266,7 @@ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
2050
2266
  };
2051
2267
  };
2052
2268
  } & {
2053
- "/:name/history/turns": {
2269
+ "/:name/history/turn": {
2054
2270
  $get: {
2055
2271
  input: {
2056
2272
  param: {
@@ -2058,80 +2274,31 @@ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
2058
2274
  };
2059
2275
  };
2060
2276
  output: {
2061
- id: string;
2062
- summary: string | null;
2063
- summary_meta: {
2064
- [x: string]: hono_utils_types.JSONValue;
2065
- } | null;
2066
- status: string;
2067
- created_at: string;
2068
- trigger: {
2069
- channel: string | null;
2070
- sender: string | null;
2071
- content: string | null;
2072
- } | null;
2073
- conversations: {
2074
- id: string;
2075
- label: string;
2076
- type: "dm" | "channel";
2077
- messages: {
2078
- id: number;
2079
- role: string;
2080
- sender_name: string | null;
2081
- content: hono_utils_types.JSONValue[];
2082
- source_event_id: number | null;
2083
- created_at: string;
2084
- }[];
2085
- }[];
2086
- activities: {
2087
- id: number;
2088
- type: string;
2089
- summary: string;
2090
- metadata: {
2091
- [x: string]: hono_utils_types.JSONValue;
2092
- } | null;
2093
- source_event_id: number | null;
2094
- created_at: string;
2095
- }[];
2096
- }[];
2277
+ error: string;
2278
+ };
2097
2279
  outputFormat: "json";
2098
- status: hono_utils_http_status.ContentfulStatusCode;
2099
- };
2100
- };
2101
- } & {
2102
- "/:name/history/turn": {
2103
- $get: {
2280
+ status: 400;
2281
+ } | {
2104
2282
  input: {
2105
2283
  param: {
2106
2284
  name: string;
2107
2285
  };
2108
2286
  };
2109
2287
  output: {
2110
- id: number;
2111
2288
  mind: string;
2289
+ created_at: string;
2290
+ id: number;
2112
2291
  channel: string | null;
2292
+ type: string;
2113
2293
  session: string | null;
2114
2294
  sender: string | null;
2115
2295
  message_id: string | null;
2116
- type: string;
2117
2296
  content: string | null;
2118
2297
  metadata: string | null;
2119
2298
  turn_id: string | null;
2120
- created_at: string;
2121
2299
  }[];
2122
2300
  outputFormat: "json";
2123
2301
  status: hono_utils_http_status.ContentfulStatusCode;
2124
- } | {
2125
- input: {
2126
- param: {
2127
- name: string;
2128
- };
2129
- };
2130
- output: {
2131
- error: string;
2132
- };
2133
- outputFormat: "json";
2134
- status: 400;
2135
2302
  };
2136
2303
  };
2137
2304
  } & {
@@ -2186,113 +2353,8 @@ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
2186
2353
  };
2187
2354
  };
2188
2355
  }, "/api/minds"> | hono_types.MergeSchemaPath<{
2189
- "/:name/chat": {
2190
- $post: {
2191
- input: {
2192
- json: {
2193
- message?: string | undefined;
2194
- conversationId?: string | undefined;
2195
- sender?: string | undefined;
2196
- images?: {
2197
- media_type: string;
2198
- data: string;
2199
- }[] | undefined;
2200
- files?: {
2201
- filename: string;
2202
- data: string;
2203
- }[] | undefined;
2204
- };
2205
- } & {
2206
- param: {
2207
- name: string;
2208
- };
2209
- };
2210
- output: {
2211
- error: string;
2212
- };
2213
- outputFormat: "json";
2214
- status: 404;
2215
- } | {
2216
- input: {
2217
- json: {
2218
- message?: string | undefined;
2219
- conversationId?: string | undefined;
2220
- sender?: string | undefined;
2221
- images?: {
2222
- media_type: string;
2223
- data: string;
2224
- }[] | undefined;
2225
- files?: {
2226
- filename: string;
2227
- data: string;
2228
- }[] | undefined;
2229
- };
2230
- } & {
2231
- param: {
2232
- name: string;
2233
- };
2234
- };
2235
- output: {
2236
- error: string;
2237
- };
2238
- outputFormat: "json";
2239
- status: 400;
2240
- } | {
2241
- input: {
2242
- json: {
2243
- message?: string | undefined;
2244
- conversationId?: string | undefined;
2245
- sender?: string | undefined;
2246
- images?: {
2247
- media_type: string;
2248
- data: string;
2249
- }[] | undefined;
2250
- files?: {
2251
- filename: string;
2252
- data: string;
2253
- }[] | undefined;
2254
- };
2255
- } & {
2256
- param: {
2257
- name: string;
2258
- };
2259
- };
2260
- output: {
2261
- error: string;
2262
- };
2263
- outputFormat: "json";
2264
- status: 413;
2265
- } | {
2266
- input: {
2267
- json: {
2268
- message?: string | undefined;
2269
- conversationId?: string | undefined;
2270
- sender?: string | undefined;
2271
- images?: {
2272
- media_type: string;
2273
- data: string;
2274
- }[] | undefined;
2275
- files?: {
2276
- filename: string;
2277
- data: string;
2278
- }[] | undefined;
2279
- };
2280
- } & {
2281
- param: {
2282
- name: string;
2283
- };
2284
- };
2285
- output: {
2286
- ok: true;
2287
- conversationId: string;
2288
- };
2289
- outputFormat: "json";
2290
- status: hono_utils_http_status.ContentfulStatusCode;
2291
- };
2292
- };
2293
- } & {
2294
- "/:name/conversations/:id/events": {
2295
- $get: {
2356
+ "/:name/conversations/:id/events": {
2357
+ $get: {
2296
2358
  input: {
2297
2359
  param: {
2298
2360
  id: string;
@@ -2366,6 +2428,10 @@ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
2366
2428
  at: string;
2367
2429
  type: "cron" | "timer";
2368
2430
  }[];
2431
+ previous: {
2432
+ id: string;
2433
+ at: string;
2434
+ }[];
2369
2435
  };
2370
2436
  outputFormat: "json";
2371
2437
  status: hono_utils_http_status.ContentfulStatusCode;
@@ -4162,114 +4228,54 @@ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
4162
4228
  };
4163
4229
  };
4164
4230
  }, "/api/skills"> | hono_types.MergeSchemaPath<{
4165
- "/": {
4166
- $get: {
4167
- input: {};
4168
- output: {
4169
- id: string;
4170
- mind_name: string | null;
4171
- channel: string;
4172
- type: "dm" | "channel";
4173
- name: string | null;
4174
- user_id: number | null;
4175
- title: string | null;
4176
- private: number;
4177
- created_at: string;
4178
- updated_at: string;
4179
- participants: {
4180
- userId: number;
4181
- username: string;
4182
- userType: "brain" | "mind" | "puppet" | "system";
4183
- role: "owner" | "member";
4184
- displayName?: string | null | undefined;
4185
- description?: string | null | undefined;
4186
- avatar?: string | null | undefined;
4187
- }[];
4188
- lastMessage?: {
4189
- role: "user" | "assistant";
4190
- senderName: string | null;
4191
- text: string;
4192
- createdAt: string;
4193
- } | undefined;
4194
- }[];
4195
- outputFormat: "json";
4196
- status: hono_utils_http_status.ContentfulStatusCode;
4197
- };
4198
- };
4199
- } & {
4200
- "/:id/messages": {
4201
- $get: {
4231
+ "/:platform/inbound": {
4232
+ $post: {
4202
4233
  input: {
4234
+ json: {
4235
+ content: ({
4236
+ type: "text";
4237
+ text: string;
4238
+ } | {
4239
+ type: "image";
4240
+ media_type: string;
4241
+ data: string;
4242
+ })[];
4243
+ platformUserId: string;
4244
+ displayName: string;
4245
+ externalChannel: string;
4246
+ isDM: boolean;
4247
+ targetMind?: string | undefined;
4248
+ };
4249
+ } & {
4203
4250
  param: {
4204
- id: string;
4251
+ platform: string;
4205
4252
  };
4206
4253
  };
4207
4254
  output: {
4208
4255
  error: string;
4209
4256
  };
4210
4257
  outputFormat: "json";
4211
- status: 404;
4258
+ status: 403;
4212
4259
  } | {
4213
- input: {
4214
- param: {
4215
- id: string;
4216
- };
4217
- };
4218
- output: {
4219
- id: number;
4220
- conversation_id: string;
4221
- role: "user" | "assistant";
4222
- sender_name: string | null;
4223
- content: ({
4224
- type: "text";
4225
- text: string;
4226
- } | {
4227
- type: "tool_use";
4228
- name: string;
4229
- input: hono_utils_types.JSONValue;
4230
- } | {
4231
- type: "tool_result";
4232
- output: string;
4233
- is_error?: boolean | undefined;
4234
- } | {
4235
- type: "image";
4236
- media_type: string;
4237
- data: string;
4238
- })[];
4239
- created_at: string;
4240
- }[];
4241
- outputFormat: "json";
4242
- status: hono_utils_http_status.ContentfulStatusCode;
4243
- };
4244
- };
4245
- } & {
4246
- "/": {
4247
- $post: {
4248
4260
  input: {
4249
4261
  json: {
4250
- participantNames: string[];
4251
- title?: string | undefined;
4262
+ content: ({
4263
+ type: "text";
4264
+ text: string;
4265
+ } | {
4266
+ type: "image";
4267
+ media_type: string;
4268
+ data: string;
4269
+ })[];
4270
+ platformUserId: string;
4271
+ displayName: string;
4272
+ externalChannel: string;
4273
+ isDM: boolean;
4274
+ targetMind?: string | undefined;
4252
4275
  };
4253
- };
4254
- output: {
4255
- id: string;
4256
- mind_name: string | null;
4257
- channel: string;
4258
- type: "dm" | "channel";
4259
- name: string | null;
4260
- user_id: number | null;
4261
- title: string | null;
4262
- private: number;
4263
- created_at: string;
4264
- updated_at: string;
4265
- };
4266
- outputFormat: "json";
4267
- status: 201;
4268
- } | {
4269
- input: {
4270
- json: {
4271
- participantNames: string[];
4272
- title?: string | undefined;
4276
+ } & {
4277
+ param: {
4278
+ platform: string;
4273
4279
  };
4274
4280
  };
4275
4281
  output: {
@@ -4277,477 +4283,26 @@ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
4277
4283
  };
4278
4284
  outputFormat: "json";
4279
4285
  status: 400;
4280
- };
4281
- };
4282
- } & {
4283
- "/:id/events": {
4284
- $get: {
4285
- input: {
4286
- param: {
4287
- id: string;
4288
- };
4289
- };
4290
- output: {};
4291
- outputFormat: string;
4292
- status: hono_utils_http_status.StatusCode;
4293
- };
4294
- };
4295
- } & {
4296
- "/:id/private": {
4297
- $put: {
4286
+ } | {
4298
4287
  input: {
4299
4288
  json: {
4300
- private: boolean;
4289
+ content: ({
4290
+ type: "text";
4291
+ text: string;
4292
+ } | {
4293
+ type: "image";
4294
+ media_type: string;
4295
+ data: string;
4296
+ })[];
4297
+ platformUserId: string;
4298
+ displayName: string;
4299
+ externalChannel: string;
4300
+ isDM: boolean;
4301
+ targetMind?: string | undefined;
4301
4302
  };
4302
4303
  } & {
4303
4304
  param: {
4304
- id: string;
4305
- };
4306
- };
4307
- output: {
4308
- error: string;
4309
- };
4310
- outputFormat: "json";
4311
- status: 403;
4312
- } | {
4313
- input: {
4314
- json: {
4315
- private: boolean;
4316
- };
4317
- } & {
4318
- param: {
4319
- id: string;
4320
- };
4321
- };
4322
- output: {
4323
- ok: true;
4324
- };
4325
- outputFormat: "json";
4326
- status: hono_utils_http_status.ContentfulStatusCode;
4327
- };
4328
- };
4329
- } & {
4330
- "/:id": {
4331
- $delete: {
4332
- input: {
4333
- param: {
4334
- id: string;
4335
- };
4336
- };
4337
- output: {
4338
- error: string;
4339
- };
4340
- outputFormat: "json";
4341
- status: 404;
4342
- } | {
4343
- input: {
4344
- param: {
4345
- id: string;
4346
- };
4347
- };
4348
- output: {
4349
- ok: true;
4350
- };
4351
- outputFormat: "json";
4352
- status: hono_utils_http_status.ContentfulStatusCode;
4353
- };
4354
- };
4355
- }, "/api/conversations"> | hono_types.MergeSchemaPath<{
4356
- "/": {
4357
- $get: {
4358
- input: {};
4359
- output: {
4360
- participantCount: number;
4361
- isMember: boolean;
4362
- id: string;
4363
- mind_name: string | null;
4364
- channel: string;
4365
- type: "dm" | "channel";
4366
- name: string | null;
4367
- user_id: number | null;
4368
- title: string | null;
4369
- private: number;
4370
- created_at: string;
4371
- updated_at: string;
4372
- }[];
4373
- outputFormat: "json";
4374
- status: hono_utils_http_status.ContentfulStatusCode;
4375
- };
4376
- };
4377
- } & {
4378
- "/": {
4379
- $post: {
4380
- input: {
4381
- json: {
4382
- name: string;
4383
- };
4384
- };
4385
- output: {
4386
- id: string;
4387
- mind_name: string | null;
4388
- channel: string;
4389
- type: "dm" | "channel";
4390
- name: string | null;
4391
- user_id: number | null;
4392
- title: string | null;
4393
- private: number;
4394
- created_at: string;
4395
- updated_at: string;
4396
- };
4397
- outputFormat: "json";
4398
- status: 201;
4399
- } | {
4400
- input: {
4401
- json: {
4402
- name: string;
4403
- };
4404
- };
4405
- output: {
4406
- error: string;
4407
- };
4408
- outputFormat: "json";
4409
- status: 409;
4410
- };
4411
- };
4412
- } & {
4413
- "/:name": {
4414
- $get: {
4415
- input: {
4416
- param: {
4417
- name: string;
4418
- };
4419
- };
4420
- output: {
4421
- error: string;
4422
- };
4423
- outputFormat: "json";
4424
- status: 404;
4425
- } | {
4426
- input: {
4427
- param: {
4428
- name: string;
4429
- };
4430
- };
4431
- output: {
4432
- participants: {
4433
- userId: number;
4434
- username: string;
4435
- userType: "brain" | "mind" | "puppet" | "system";
4436
- role: "owner" | "member";
4437
- displayName?: string | null | undefined;
4438
- description?: string | null | undefined;
4439
- avatar?: string | null | undefined;
4440
- }[];
4441
- id: string;
4442
- mind_name: string | null;
4443
- channel: string;
4444
- type: "dm" | "channel";
4445
- name: string | null;
4446
- user_id: number | null;
4447
- title: string | null;
4448
- private: number;
4449
- created_at: string;
4450
- updated_at: string;
4451
- };
4452
- outputFormat: "json";
4453
- status: hono_utils_http_status.ContentfulStatusCode;
4454
- };
4455
- };
4456
- } & {
4457
- "/:name/join": {
4458
- $post: {
4459
- input: {
4460
- param: {
4461
- name: string;
4462
- };
4463
- };
4464
- output: {
4465
- error: string;
4466
- };
4467
- outputFormat: "json";
4468
- status: 404;
4469
- } | {
4470
- input: {
4471
- param: {
4472
- name: string;
4473
- };
4474
- };
4475
- output: {
4476
- ok: true;
4477
- conversationId: string;
4478
- };
4479
- outputFormat: "json";
4480
- status: hono_utils_http_status.ContentfulStatusCode;
4481
- };
4482
- };
4483
- } & {
4484
- "/:name/leave": {
4485
- $post: {
4486
- input: {
4487
- param: {
4488
- name: string;
4489
- };
4490
- };
4491
- output: {
4492
- error: string;
4493
- };
4494
- outputFormat: "json";
4495
- status: 404;
4496
- } | {
4497
- input: {
4498
- param: {
4499
- name: string;
4500
- };
4501
- };
4502
- output: {
4503
- ok: true;
4504
- };
4505
- outputFormat: "json";
4506
- status: hono_utils_http_status.ContentfulStatusCode;
4507
- };
4508
- };
4509
- } & {
4510
- "/:name/members": {
4511
- $get: {
4512
- input: {
4513
- param: {
4514
- name: string;
4515
- };
4516
- };
4517
- output: {
4518
- userId: number;
4519
- username: string;
4520
- userType: "brain" | "mind" | "puppet" | "system";
4521
- role: "owner" | "member";
4522
- displayName?: string | null | undefined;
4523
- description?: string | null | undefined;
4524
- avatar?: string | null | undefined;
4525
- }[];
4526
- outputFormat: "json";
4527
- status: hono_utils_http_status.ContentfulStatusCode;
4528
- } | {
4529
- input: {
4530
- param: {
4531
- name: string;
4532
- };
4533
- };
4534
- output: {
4535
- error: string;
4536
- };
4537
- outputFormat: "json";
4538
- status: 404;
4539
- };
4540
- };
4541
- } & {
4542
- "/:name/invite": {
4543
- $post: {
4544
- input: {
4545
- json: {
4546
- username: string;
4547
- };
4548
- } & {
4549
- param: {
4550
- name: string;
4551
- };
4552
- };
4553
- output: {
4554
- error: string;
4555
- };
4556
- outputFormat: "json";
4557
- status: 404;
4558
- } | {
4559
- input: {
4560
- json: {
4561
- username: string;
4562
- };
4563
- } & {
4564
- param: {
4565
- name: string;
4566
- };
4567
- };
4568
- output: {
4569
- error: string;
4570
- };
4571
- outputFormat: "json";
4572
- status: 409;
4573
- } | {
4574
- input: {
4575
- json: {
4576
- username: string;
4577
- };
4578
- } & {
4579
- param: {
4580
- name: string;
4581
- };
4582
- };
4583
- output: {
4584
- ok: true;
4585
- };
4586
- outputFormat: "json";
4587
- status: hono_utils_http_status.ContentfulStatusCode;
4588
- };
4589
- };
4590
- }, "/api/volute/channels"> | hono_types.MergeSchemaPath<{
4591
- "/chat": {
4592
- $post: {
4593
- input: {
4594
- json: {
4595
- conversationId: string;
4596
- message?: string | undefined;
4597
- images?: {
4598
- media_type: string;
4599
- data: string;
4600
- }[] | undefined;
4601
- files?: {
4602
- filename: string;
4603
- data: string;
4604
- }[] | undefined;
4605
- };
4606
- };
4607
- output: {
4608
- error: string;
4609
- };
4610
- outputFormat: "json";
4611
- status: 400;
4612
- } | {
4613
- input: {
4614
- json: {
4615
- conversationId: string;
4616
- message?: string | undefined;
4617
- images?: {
4618
- media_type: string;
4619
- data: string;
4620
- }[] | undefined;
4621
- files?: {
4622
- filename: string;
4623
- data: string;
4624
- }[] | undefined;
4625
- };
4626
- };
4627
- output: {
4628
- error: string;
4629
- };
4630
- outputFormat: "json";
4631
- status: 404;
4632
- } | {
4633
- input: {
4634
- json: {
4635
- conversationId: string;
4636
- message?: string | undefined;
4637
- images?: {
4638
- media_type: string;
4639
- data: string;
4640
- }[] | undefined;
4641
- files?: {
4642
- filename: string;
4643
- data: string;
4644
- }[] | undefined;
4645
- };
4646
- };
4647
- output: {
4648
- error: string;
4649
- };
4650
- outputFormat: "json";
4651
- status: 413;
4652
- } | {
4653
- input: {
4654
- json: {
4655
- conversationId: string;
4656
- message?: string | undefined;
4657
- images?: {
4658
- media_type: string;
4659
- data: string;
4660
- }[] | undefined;
4661
- files?: {
4662
- filename: string;
4663
- data: string;
4664
- }[] | undefined;
4665
- };
4666
- };
4667
- output: {
4668
- ok: true;
4669
- conversationId: string;
4670
- };
4671
- outputFormat: "json";
4672
- status: hono_utils_http_status.ContentfulStatusCode;
4673
- };
4674
- };
4675
- }, "/api/volute"> | hono_types.MergeSchemaPath<{
4676
- "/:platform/inbound": {
4677
- $post: {
4678
- input: {
4679
- json: {
4680
- content: ({
4681
- type: "text";
4682
- text: string;
4683
- } | {
4684
- type: "image";
4685
- media_type: string;
4686
- data: string;
4687
- })[];
4688
- platformUserId: string;
4689
- displayName: string;
4690
- externalChannel: string;
4691
- isDM: boolean;
4692
- targetMind?: string | undefined;
4693
- };
4694
- } & {
4695
- param: {
4696
- platform: string;
4697
- };
4698
- };
4699
- output: {
4700
- error: string;
4701
- };
4702
- outputFormat: "json";
4703
- status: 403;
4704
- } | {
4705
- input: {
4706
- json: {
4707
- content: ({
4708
- type: "text";
4709
- text: string;
4710
- } | {
4711
- type: "image";
4712
- media_type: string;
4713
- data: string;
4714
- })[];
4715
- platformUserId: string;
4716
- displayName: string;
4717
- externalChannel: string;
4718
- isDM: boolean;
4719
- targetMind?: string | undefined;
4720
- };
4721
- } & {
4722
- param: {
4723
- platform: string;
4724
- };
4725
- };
4726
- output: {
4727
- error: string;
4728
- };
4729
- outputFormat: "json";
4730
- status: 400;
4731
- } | {
4732
- input: {
4733
- json: {
4734
- content: ({
4735
- type: "text";
4736
- text: string;
4737
- } | {
4738
- type: "image";
4739
- media_type: string;
4740
- data: string;
4741
- })[];
4742
- platformUserId: string;
4743
- displayName: string;
4744
- externalChannel: string;
4745
- isDM: boolean;
4746
- targetMind?: string | undefined;
4747
- };
4748
- } & {
4749
- param: {
4750
- platform: string;
4305
+ platform: string;
4751
4306
  };
4752
4307
  };
4753
4308
  output: {
@@ -5104,36 +4659,262 @@ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
5104
4659
  status: hono_utils_http_status.ContentfulStatusCode;
5105
4660
  };
5106
4661
  };
5107
- } & {
5108
- "/:id/participants": {
4662
+ } & {
4663
+ "/:id/participants": {
4664
+ $get: {
4665
+ input: {
4666
+ param: {
4667
+ id: string;
4668
+ };
4669
+ };
4670
+ output: {
4671
+ userId: number;
4672
+ username: string;
4673
+ userType: "brain" | "mind" | "puppet" | "system";
4674
+ role: "owner" | "member";
4675
+ displayName?: string | null | undefined;
4676
+ description?: string | null | undefined;
4677
+ avatar?: string | null | undefined;
4678
+ }[];
4679
+ outputFormat: "json";
4680
+ status: hono_utils_http_status.ContentfulStatusCode;
4681
+ } | {
4682
+ input: {
4683
+ param: {
4684
+ id: string;
4685
+ };
4686
+ };
4687
+ output: {
4688
+ error: string;
4689
+ };
4690
+ outputFormat: "json";
4691
+ status: 404;
4692
+ };
4693
+ };
4694
+ } & {
4695
+ "/": {
4696
+ $post: {
4697
+ input: {
4698
+ json: {
4699
+ participantNames: string[];
4700
+ title?: string | undefined;
4701
+ };
4702
+ };
4703
+ output: {
4704
+ id: string;
4705
+ mind_name: string | null;
4706
+ channel: string;
4707
+ type: "dm" | "channel";
4708
+ name: string | null;
4709
+ user_id: number | null;
4710
+ title: string | null;
4711
+ private: number;
4712
+ created_at: string;
4713
+ updated_at: string;
4714
+ };
4715
+ outputFormat: "json";
4716
+ status: 201;
4717
+ } | {
4718
+ input: {
4719
+ json: {
4720
+ participantNames: string[];
4721
+ title?: string | undefined;
4722
+ };
4723
+ };
4724
+ output: {
4725
+ error: string;
4726
+ };
4727
+ outputFormat: "json";
4728
+ status: 400;
4729
+ };
4730
+ };
4731
+ } & {
4732
+ "/:id/read": {
4733
+ $post: {
4734
+ input: {
4735
+ param: {
4736
+ id: string;
4737
+ };
4738
+ };
4739
+ output: {
4740
+ ok: true;
4741
+ };
4742
+ outputFormat: "json";
4743
+ status: hono_utils_http_status.ContentfulStatusCode;
4744
+ } | {
4745
+ input: {
4746
+ param: {
4747
+ id: string;
4748
+ };
4749
+ };
4750
+ output: {
4751
+ error: string;
4752
+ };
4753
+ outputFormat: "json";
4754
+ status: 404;
4755
+ };
4756
+ };
4757
+ } & {
4758
+ "/:id/private": {
4759
+ $put: {
4760
+ input: {
4761
+ json: {
4762
+ private: boolean;
4763
+ };
4764
+ } & {
4765
+ param: {
4766
+ id: string;
4767
+ };
4768
+ };
4769
+ output: {
4770
+ error: string;
4771
+ };
4772
+ outputFormat: "json";
4773
+ status: 403;
4774
+ } | {
4775
+ input: {
4776
+ json: {
4777
+ private: boolean;
4778
+ };
4779
+ } & {
4780
+ param: {
4781
+ id: string;
4782
+ };
4783
+ };
4784
+ output: {
4785
+ ok: true;
4786
+ };
4787
+ outputFormat: "json";
4788
+ status: hono_utils_http_status.ContentfulStatusCode;
4789
+ };
4790
+ };
4791
+ } & {
4792
+ "/:id": {
4793
+ $delete: {
4794
+ input: {
4795
+ param: {
4796
+ id: string;
4797
+ };
4798
+ };
4799
+ output: {
4800
+ error: string;
4801
+ };
4802
+ outputFormat: "json";
4803
+ status: 404;
4804
+ } | {
4805
+ input: {
4806
+ param: {
4807
+ id: string;
4808
+ };
4809
+ };
4810
+ output: {
4811
+ ok: true;
4812
+ };
4813
+ outputFormat: "json";
4814
+ status: hono_utils_http_status.ContentfulStatusCode;
4815
+ };
4816
+ };
4817
+ }, "/api/v1/conversations"> | hono_types.MergeSchemaPath<{
4818
+ "/": {
4819
+ $get: {
4820
+ input: {};
4821
+ output: {};
4822
+ outputFormat: string;
4823
+ status: hono_utils_http_status.StatusCode;
4824
+ };
4825
+ };
4826
+ }, "/api/v1/events"> | hono_types.MergeSchemaPath<{
4827
+ "/chat": {
4828
+ $post: {
4829
+ input: {
4830
+ json: {
4831
+ message?: string | undefined;
4832
+ conversationId?: string | undefined;
4833
+ targetMind?: string | undefined;
4834
+ sender?: string | undefined;
4835
+ images?: {
4836
+ media_type: string;
4837
+ data: string;
4838
+ }[] | undefined;
4839
+ files?: {
4840
+ filename: string;
4841
+ data: string;
4842
+ }[] | undefined;
4843
+ };
4844
+ };
4845
+ output: {
4846
+ error: string;
4847
+ };
4848
+ outputFormat: "json";
4849
+ status: 404;
4850
+ } | {
4851
+ input: {
4852
+ json: {
4853
+ message?: string | undefined;
4854
+ conversationId?: string | undefined;
4855
+ targetMind?: string | undefined;
4856
+ sender?: string | undefined;
4857
+ images?: {
4858
+ media_type: string;
4859
+ data: string;
4860
+ }[] | undefined;
4861
+ files?: {
4862
+ filename: string;
4863
+ data: string;
4864
+ }[] | undefined;
4865
+ };
4866
+ };
4867
+ output: {
4868
+ error: string;
4869
+ };
4870
+ outputFormat: "json";
4871
+ status: 400 | 413;
4872
+ } | {
4873
+ input: {
4874
+ json: {
4875
+ message?: string | undefined;
4876
+ conversationId?: string | undefined;
4877
+ targetMind?: string | undefined;
4878
+ sender?: string | undefined;
4879
+ images?: {
4880
+ media_type: string;
4881
+ data: string;
4882
+ }[] | undefined;
4883
+ files?: {
4884
+ filename: string;
4885
+ data: string;
4886
+ }[] | undefined;
4887
+ };
4888
+ };
4889
+ output: {
4890
+ ok: true;
4891
+ conversationId: string | undefined;
4892
+ outboundId: number | undefined;
4893
+ };
4894
+ outputFormat: "json";
4895
+ status: hono_utils_http_status.ContentfulStatusCode;
4896
+ };
4897
+ };
4898
+ }, "/api/v1"> | hono_types.MergeSchemaPath<{
4899
+ "/": {
5109
4900
  $get: {
5110
- input: {
5111
- param: {
5112
- id: string;
5113
- };
5114
- };
4901
+ input: {};
5115
4902
  output: {
5116
- userId: number;
5117
- username: string;
5118
- userType: "brain" | "mind" | "puppet" | "system";
5119
- role: "owner" | "member";
5120
- displayName?: string | null | undefined;
5121
- description?: string | null | undefined;
5122
- avatar?: string | null | undefined;
4903
+ participantCount: number;
4904
+ isMember: boolean;
4905
+ id: string;
4906
+ mind_name: string | null;
4907
+ channel: string;
4908
+ type: "dm" | "channel";
4909
+ name: string | null;
4910
+ user_id: number | null;
4911
+ title: string | null;
4912
+ private: number;
4913
+ created_at: string;
4914
+ updated_at: string;
5123
4915
  }[];
5124
4916
  outputFormat: "json";
5125
4917
  status: hono_utils_http_status.ContentfulStatusCode;
5126
- } | {
5127
- input: {
5128
- param: {
5129
- id: string;
5130
- };
5131
- };
5132
- output: {
5133
- error: string;
5134
- };
5135
- outputFormat: "json";
5136
- status: 404;
5137
4918
  };
5138
4919
  };
5139
4920
  } & {
@@ -5141,8 +4922,7 @@ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
5141
4922
  $post: {
5142
4923
  input: {
5143
4924
  json: {
5144
- participantNames: string[];
5145
- title?: string | undefined;
4925
+ name: string;
5146
4926
  };
5147
4927
  };
5148
4928
  output: {
@@ -5162,49 +4942,66 @@ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
5162
4942
  } | {
5163
4943
  input: {
5164
4944
  json: {
5165
- participantNames: string[];
5166
- title?: string | undefined;
4945
+ name: string;
5167
4946
  };
5168
4947
  };
5169
4948
  output: {
5170
4949
  error: string;
5171
4950
  };
5172
4951
  outputFormat: "json";
5173
- status: 400;
4952
+ status: 409;
5174
4953
  };
5175
4954
  };
5176
4955
  } & {
5177
- "/:id/read": {
5178
- $post: {
4956
+ "/:name": {
4957
+ $get: {
5179
4958
  input: {
5180
4959
  param: {
5181
- id: string;
4960
+ name: string;
5182
4961
  };
5183
4962
  };
5184
4963
  output: {
5185
- ok: true;
4964
+ error: string;
5186
4965
  };
5187
4966
  outputFormat: "json";
5188
- status: hono_utils_http_status.ContentfulStatusCode;
4967
+ status: 404;
5189
4968
  } | {
5190
4969
  input: {
5191
4970
  param: {
5192
- id: string;
4971
+ name: string;
5193
4972
  };
5194
4973
  };
5195
4974
  output: {
5196
- error: string;
4975
+ participants: {
4976
+ userId: number;
4977
+ username: string;
4978
+ userType: "brain" | "mind" | "puppet" | "system";
4979
+ role: "owner" | "member";
4980
+ displayName?: string | null | undefined;
4981
+ description?: string | null | undefined;
4982
+ avatar?: string | null | undefined;
4983
+ }[];
4984
+ id: string;
4985
+ mind_name: string | null;
4986
+ channel: string;
4987
+ type: "dm" | "channel";
4988
+ name: string | null;
4989
+ user_id: number | null;
4990
+ title: string | null;
4991
+ private: number;
4992
+ created_at: string;
4993
+ updated_at: string;
5197
4994
  };
5198
4995
  outputFormat: "json";
5199
- status: 404;
4996
+ status: hono_utils_http_status.ContentfulStatusCode;
5200
4997
  };
5201
4998
  };
5202
4999
  } & {
5203
- "/:id": {
5204
- $delete: {
5000
+ "/:name/join": {
5001
+ $post: {
5205
5002
  input: {
5206
5003
  param: {
5207
- id: string;
5004
+ name: string;
5208
5005
  };
5209
5006
  };
5210
5007
  output: {
@@ -5215,39 +5012,21 @@ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
5215
5012
  } | {
5216
5013
  input: {
5217
5014
  param: {
5218
- id: string;
5015
+ name: string;
5219
5016
  };
5220
5017
  };
5221
5018
  output: {
5222
5019
  ok: true;
5020
+ conversationId: string;
5223
5021
  };
5224
5022
  outputFormat: "json";
5225
5023
  status: hono_utils_http_status.ContentfulStatusCode;
5226
5024
  };
5227
5025
  };
5228
- }, "/api/v1/conversations"> | hono_types.MergeSchemaPath<{
5229
- "/": {
5230
- $get: {
5231
- input: {};
5232
- output: {};
5233
- outputFormat: string;
5234
- status: hono_utils_http_status.StatusCode;
5235
- };
5236
- };
5237
- }, "/api/v1/events"> | hono_types.MergeSchemaPath<{
5238
- "/minds/:name/chat": {
5026
+ } & {
5027
+ "/:name/leave": {
5239
5028
  $post: {
5240
5029
  input: {
5241
- json: {
5242
- message?: string | undefined;
5243
- conversationId?: string | undefined;
5244
- sender?: string | undefined;
5245
- images?: {
5246
- media_type: string;
5247
- data: string;
5248
- }[] | undefined;
5249
- };
5250
- } & {
5251
5030
  param: {
5252
5031
  name: string;
5253
5032
  };
@@ -5259,118 +5038,157 @@ declare const routes: hono_hono_base.HonoBase<hono_types.BlankEnv, hono_types.Bl
5259
5038
  status: 404;
5260
5039
  } | {
5261
5040
  input: {
5262
- json: {
5263
- message?: string | undefined;
5264
- conversationId?: string | undefined;
5265
- sender?: string | undefined;
5266
- images?: {
5267
- media_type: string;
5268
- data: string;
5269
- }[] | undefined;
5270
- };
5271
- } & {
5272
5041
  param: {
5273
5042
  name: string;
5274
5043
  };
5275
5044
  };
5276
5045
  output: {
5277
- error: string;
5046
+ ok: true;
5278
5047
  };
5279
5048
  outputFormat: "json";
5280
- status: 400;
5281
- } | {
5049
+ status: hono_utils_http_status.ContentfulStatusCode;
5050
+ };
5051
+ };
5052
+ } & {
5053
+ "/:name/members": {
5054
+ $get: {
5282
5055
  input: {
5283
- json: {
5284
- message?: string | undefined;
5285
- conversationId?: string | undefined;
5286
- sender?: string | undefined;
5287
- images?: {
5288
- media_type: string;
5289
- data: string;
5290
- }[] | undefined;
5291
- };
5292
- } & {
5293
5056
  param: {
5294
5057
  name: string;
5295
5058
  };
5296
5059
  };
5297
5060
  output: {
5298
- ok: true;
5299
- conversationId: string;
5300
- };
5061
+ userId: number;
5062
+ username: string;
5063
+ userType: "brain" | "mind" | "puppet" | "system";
5064
+ role: "owner" | "member";
5065
+ displayName?: string | null | undefined;
5066
+ description?: string | null | undefined;
5067
+ avatar?: string | null | undefined;
5068
+ }[];
5301
5069
  outputFormat: "json";
5302
5070
  status: hono_utils_http_status.ContentfulStatusCode;
5303
- };
5304
- };
5305
- } & {
5306
- "/minds/:name/conversations/:id/events": {
5307
- $get: {
5071
+ } | {
5308
5072
  input: {
5309
5073
  param: {
5310
- id: string;
5311
- } & {
5312
5074
  name: string;
5313
5075
  };
5314
5076
  };
5315
- output: {};
5316
- outputFormat: string;
5317
- status: hono_utils_http_status.StatusCode;
5077
+ output: {
5078
+ error: string;
5079
+ };
5080
+ outputFormat: "json";
5081
+ status: 404;
5318
5082
  };
5319
5083
  };
5320
5084
  } & {
5321
- "/chat": {
5085
+ "/:name/invite": {
5322
5086
  $post: {
5323
5087
  input: {
5324
5088
  json: {
5325
- conversationId: string;
5326
- message?: string | undefined;
5327
- images?: {
5328
- media_type: string;
5329
- data: string;
5330
- }[] | undefined;
5089
+ username: string;
5090
+ };
5091
+ } & {
5092
+ param: {
5093
+ name: string;
5331
5094
  };
5332
5095
  };
5333
5096
  output: {
5334
5097
  error: string;
5335
5098
  };
5336
5099
  outputFormat: "json";
5337
- status: 400;
5100
+ status: 404;
5338
5101
  } | {
5339
5102
  input: {
5340
5103
  json: {
5341
- conversationId: string;
5342
- message?: string | undefined;
5343
- images?: {
5344
- media_type: string;
5345
- data: string;
5346
- }[] | undefined;
5104
+ username: string;
5105
+ };
5106
+ } & {
5107
+ param: {
5108
+ name: string;
5347
5109
  };
5348
5110
  };
5349
5111
  output: {
5350
5112
  error: string;
5351
5113
  };
5352
5114
  outputFormat: "json";
5353
- status: 404;
5115
+ status: 409;
5354
5116
  } | {
5355
5117
  input: {
5356
5118
  json: {
5357
- conversationId: string;
5358
- message?: string | undefined;
5359
- images?: {
5360
- media_type: string;
5361
- data: string;
5362
- }[] | undefined;
5119
+ username: string;
5120
+ };
5121
+ } & {
5122
+ param: {
5123
+ name: string;
5363
5124
  };
5364
5125
  };
5365
5126
  output: {
5366
5127
  ok: true;
5367
- conversationId: string;
5368
5128
  };
5369
5129
  outputFormat: "json";
5370
5130
  status: hono_utils_http_status.ContentfulStatusCode;
5371
5131
  };
5372
5132
  };
5373
- }, "/api/v1">, "/", "/">;
5133
+ }, "/api/v1/channels"> | hono_types.MergeSchemaPath<{
5134
+ "/turns": {
5135
+ $get: {
5136
+ input: {};
5137
+ output: {
5138
+ id: string;
5139
+ mind: string;
5140
+ summary: string | null;
5141
+ summary_meta: {
5142
+ [x: string]: hono_utils_types.JSONValue;
5143
+ } | null;
5144
+ status: string;
5145
+ created_at: string;
5146
+ trigger: {
5147
+ channel: string | null;
5148
+ sender: string | null;
5149
+ content: string | null;
5150
+ } | null;
5151
+ conversations: {
5152
+ id: string;
5153
+ label: string;
5154
+ type: "channel" | "dm";
5155
+ messages: {
5156
+ id: number;
5157
+ role: string;
5158
+ sender_name: string | null;
5159
+ content: {
5160
+ type: string;
5161
+ text: string;
5162
+ }[];
5163
+ source_event_id: number;
5164
+ created_at: string | null;
5165
+ }[];
5166
+ }[];
5167
+ activities: {
5168
+ id: number;
5169
+ type: string;
5170
+ summary: string;
5171
+ metadata: {
5172
+ [x: string]: hono_utils_types.JSONValue;
5173
+ } | null;
5174
+ source_event_id: number | null;
5175
+ created_at: string;
5176
+ }[];
5177
+ }[];
5178
+ outputFormat: "json";
5179
+ status: hono_utils_http_status.ContentfulStatusCode;
5180
+ };
5181
+ };
5182
+ } & {
5183
+ "/events": {
5184
+ $get: {
5185
+ input: {};
5186
+ output: {};
5187
+ outputFormat: string;
5188
+ status: hono_utils_http_status.StatusCode;
5189
+ };
5190
+ };
5191
+ }, "/api/v1/history">, "/", "/">;
5374
5192
 
5375
5193
  type AppType = typeof routes;
5376
5194