@rizom/brain 0.2.0-alpha.103 → 0.2.0-alpha.104

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.
package/dist/plugins.d.ts CHANGED
@@ -504,16 +504,16 @@ declare const ChatContextSchema: z.ZodObject<{
504
504
  isBot: z.ZodOptional<z.ZodBoolean>;
505
505
  }, "strip", z.ZodTypeAny, {
506
506
  interfaceType: string;
507
- role: "user" | "assistant";
508
507
  actorId: string;
508
+ role: "user" | "assistant";
509
509
  canonicalId?: string | undefined;
510
510
  displayName?: string | undefined;
511
511
  username?: string | undefined;
512
512
  isBot?: boolean | undefined;
513
513
  }, {
514
514
  interfaceType: string;
515
- role: "user" | "assistant";
516
515
  actorId: string;
516
+ role: "user" | "assistant";
517
517
  canonicalId?: string | undefined;
518
518
  displayName?: string | undefined;
519
519
  username?: string | undefined;
@@ -528,15 +528,15 @@ declare const ChatContextSchema: z.ZodObject<{
528
528
  }, "strip", z.ZodTypeAny, {
529
529
  channelId?: string | undefined;
530
530
  channelName?: string | undefined;
531
- metadata?: Record<string, unknown> | undefined;
532
531
  messageId?: string | undefined;
533
532
  threadId?: string | undefined;
533
+ metadata?: Record<string, unknown> | undefined;
534
534
  }, {
535
535
  channelId?: string | undefined;
536
536
  channelName?: string | undefined;
537
- metadata?: Record<string, unknown> | undefined;
538
537
  messageId?: string | undefined;
539
538
  threadId?: string | undefined;
539
+ metadata?: Record<string, unknown> | undefined;
540
540
  }>>;
541
541
  attachments: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
542
542
  kind: z.ZodLiteral<"text">;
@@ -548,97 +548,153 @@ declare const ChatContextSchema: z.ZodObject<{
548
548
  kind: z.ZodString;
549
549
  id: z.ZodString;
550
550
  }, "strip", z.ZodTypeAny, {
551
- id: string;
552
551
  kind: string;
553
- }, {
554
552
  id: string;
553
+ }, {
555
554
  kind: string;
555
+ id: string;
556
556
  }>>;
557
557
  }, "strip", z.ZodTypeAny, {
558
558
  kind: "text";
559
- content: string;
560
559
  filename: string;
561
560
  mediaType: string;
561
+ content: string;
562
562
  sizeBytes?: number | undefined;
563
563
  source?: {
564
- id: string;
565
564
  kind: string;
565
+ id: string;
566
566
  } | undefined;
567
567
  }, {
568
568
  kind: "text";
569
+ filename: string;
570
+ mediaType: string;
569
571
  content: string;
572
+ sizeBytes?: number | undefined;
573
+ source?: {
574
+ kind: string;
575
+ id: string;
576
+ } | undefined;
577
+ }>, z.ZodObject<{
578
+ kind: z.ZodLiteral<"file">;
579
+ filename: z.ZodString;
580
+ mediaType: z.ZodString;
581
+ data: z.ZodType<Uint8Array<ArrayBufferLike>, z.ZodTypeDef, Uint8Array<ArrayBufferLike>>;
582
+ sizeBytes: z.ZodOptional<z.ZodNumber>;
583
+ source: z.ZodOptional<z.ZodObject<{
584
+ kind: z.ZodString;
585
+ id: z.ZodString;
586
+ }, "strip", z.ZodTypeAny, {
587
+ kind: string;
588
+ id: string;
589
+ }, {
590
+ kind: string;
591
+ id: string;
592
+ }>>;
593
+ }, "strip", z.ZodTypeAny, {
594
+ kind: "file";
570
595
  filename: string;
571
596
  mediaType: string;
597
+ data: Uint8Array<ArrayBufferLike>;
572
598
  sizeBytes?: number | undefined;
573
599
  source?: {
600
+ kind: string;
574
601
  id: string;
602
+ } | undefined;
603
+ }, {
604
+ kind: "file";
605
+ filename: string;
606
+ mediaType: string;
607
+ data: Uint8Array<ArrayBufferLike>;
608
+ sizeBytes?: number | undefined;
609
+ source?: {
575
610
  kind: string;
611
+ id: string;
576
612
  } | undefined;
577
613
  }>]>, "many">>;
578
614
  }, "strip", z.ZodTypeAny, {
579
- interfaceType?: string | undefined;
580
- channelId?: string | undefined;
581
- channelName?: string | undefined;
582
615
  source?: {
583
616
  channelId?: string | undefined;
584
617
  channelName?: string | undefined;
585
- metadata?: Record<string, unknown> | undefined;
586
618
  messageId?: string | undefined;
587
619
  threadId?: string | undefined;
620
+ metadata?: Record<string, unknown> | undefined;
588
621
  } | undefined;
589
622
  userPermissionLevel?: "anchor" | "trusted" | "public" | undefined;
623
+ interfaceType?: string | undefined;
624
+ channelId?: string | undefined;
625
+ channelName?: string | undefined;
590
626
  actor?: {
591
627
  interfaceType: string;
592
- role: "user" | "assistant";
593
628
  actorId: string;
629
+ role: "user" | "assistant";
594
630
  canonicalId?: string | undefined;
595
631
  displayName?: string | undefined;
596
632
  username?: string | undefined;
597
633
  isBot?: boolean | undefined;
598
634
  } | undefined;
599
- attachments?: {
635
+ attachments?: ({
600
636
  kind: "text";
601
- content: string;
602
637
  filename: string;
603
638
  mediaType: string;
639
+ content: string;
604
640
  sizeBytes?: number | undefined;
605
641
  source?: {
642
+ kind: string;
606
643
  id: string;
644
+ } | undefined;
645
+ } | {
646
+ kind: "file";
647
+ filename: string;
648
+ mediaType: string;
649
+ data: Uint8Array<ArrayBufferLike>;
650
+ sizeBytes?: number | undefined;
651
+ source?: {
607
652
  kind: string;
653
+ id: string;
608
654
  } | undefined;
609
- }[] | undefined;
655
+ })[] | undefined;
610
656
  }, {
611
- interfaceType?: string | undefined;
612
- channelId?: string | undefined;
613
- channelName?: string | undefined;
614
657
  source?: {
615
658
  channelId?: string | undefined;
616
659
  channelName?: string | undefined;
617
- metadata?: Record<string, unknown> | undefined;
618
660
  messageId?: string | undefined;
619
661
  threadId?: string | undefined;
662
+ metadata?: Record<string, unknown> | undefined;
620
663
  } | undefined;
621
664
  userPermissionLevel?: "anchor" | "trusted" | "public" | undefined;
665
+ interfaceType?: string | undefined;
666
+ channelId?: string | undefined;
667
+ channelName?: string | undefined;
622
668
  actor?: {
623
669
  interfaceType: string;
624
- role: "user" | "assistant";
625
670
  actorId: string;
671
+ role: "user" | "assistant";
626
672
  canonicalId?: string | undefined;
627
673
  displayName?: string | undefined;
628
674
  username?: string | undefined;
629
675
  isBot?: boolean | undefined;
630
676
  } | undefined;
631
- attachments?: {
677
+ attachments?: ({
632
678
  kind: "text";
633
- content: string;
634
679
  filename: string;
635
680
  mediaType: string;
681
+ content: string;
636
682
  sizeBytes?: number | undefined;
637
683
  source?: {
684
+ kind: string;
638
685
  id: string;
686
+ } | undefined;
687
+ } | {
688
+ kind: "file";
689
+ filename: string;
690
+ mediaType: string;
691
+ data: Uint8Array<ArrayBufferLike>;
692
+ sizeBytes?: number | undefined;
693
+ source?: {
639
694
  kind: string;
695
+ id: string;
640
696
  } | undefined;
641
- }[] | undefined;
697
+ })[] | undefined;
642
698
  }>;
643
699
  type ChatContext = z.infer<typeof ChatContextSchema>;
644
700
  declare const PendingConfirmationSchema: z.ZodObject<{
@@ -671,14 +727,14 @@ declare const ToolResultDataSchema: z.ZodObject<{
671
727
  data: z.ZodOptional<z.ZodUnknown>;
672
728
  }, "strip", z.ZodTypeAny, {
673
729
  toolName: string;
730
+ data?: unknown;
674
731
  args?: Record<string, unknown> | undefined;
675
732
  jobId?: string | undefined;
676
- data?: unknown;
677
733
  }, {
678
734
  toolName: string;
735
+ data?: unknown;
679
736
  args?: Record<string, unknown> | undefined;
680
737
  jobId?: string | undefined;
681
- data?: unknown;
682
738
  }>;
683
739
  type ToolResultData = z.infer<typeof ToolResultDataSchema>;
684
740
  declare const AgentResponseSchema: z.ZodObject<{
@@ -690,14 +746,14 @@ declare const AgentResponseSchema: z.ZodObject<{
690
746
  data: z.ZodOptional<z.ZodUnknown>;
691
747
  }, "strip", z.ZodTypeAny, {
692
748
  toolName: string;
749
+ data?: unknown;
693
750
  args?: Record<string, unknown> | undefined;
694
751
  jobId?: string | undefined;
695
- data?: unknown;
696
752
  }, {
697
753
  toolName: string;
754
+ data?: unknown;
698
755
  args?: Record<string, unknown> | undefined;
699
756
  jobId?: string | undefined;
700
- data?: unknown;
701
757
  }>, "many">>;
702
758
  cards: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<"kind", [z.ZodObject<{
703
759
  kind: z.ZodLiteral<"tool-approval">;
@@ -711,27 +767,27 @@ declare const AgentResponseSchema: z.ZodObject<{
711
767
  output: z.ZodOptional<z.ZodUnknown>;
712
768
  error: z.ZodOptional<z.ZodString>;
713
769
  }, "strip", z.ZodTypeAny, {
714
- id: string;
715
770
  kind: "tool-approval";
771
+ id: string;
716
772
  toolName: string;
717
773
  summary: string;
718
774
  state: "approval-requested" | "approval-responded" | "output-available" | "output-denied" | "output-error";
719
- error?: string | undefined;
720
775
  toolCallId?: string | undefined;
721
776
  preview?: string | undefined;
722
777
  input?: Record<string, unknown> | undefined;
723
778
  output?: unknown;
779
+ error?: string | undefined;
724
780
  }, {
725
- id: string;
726
781
  kind: "tool-approval";
782
+ id: string;
727
783
  toolName: string;
728
784
  summary: string;
729
785
  state: "approval-requested" | "approval-responded" | "output-available" | "output-denied" | "output-error";
730
- error?: string | undefined;
731
786
  toolCallId?: string | undefined;
732
787
  preview?: string | undefined;
733
788
  input?: Record<string, unknown> | undefined;
734
789
  output?: unknown;
790
+ error?: string | undefined;
735
791
  }>, z.ZodObject<{
736
792
  kind: z.ZodLiteral<"attachment">;
737
793
  id: z.ZodString;
@@ -759,8 +815,8 @@ declare const AgentResponseSchema: z.ZodObject<{
759
815
  attachmentType?: string | undefined;
760
816
  }>>;
761
817
  }, "strip", z.ZodTypeAny, {
762
- url: string;
763
818
  mediaType: string;
819
+ url: string;
764
820
  filename?: string | undefined;
765
821
  sizeBytes?: number | undefined;
766
822
  source?: {
@@ -771,8 +827,8 @@ declare const AgentResponseSchema: z.ZodObject<{
771
827
  downloadUrl?: string | undefined;
772
828
  previewUrl?: string | undefined;
773
829
  }, {
774
- url: string;
775
830
  mediaType: string;
831
+ url: string;
776
832
  filename?: string | undefined;
777
833
  sizeBytes?: number | undefined;
778
834
  source?: {
@@ -784,11 +840,11 @@ declare const AgentResponseSchema: z.ZodObject<{
784
840
  previewUrl?: string | undefined;
785
841
  }>;
786
842
  }, "strip", z.ZodTypeAny, {
787
- id: string;
788
843
  kind: "attachment";
844
+ id: string;
789
845
  attachment: {
790
- url: string;
791
846
  mediaType: string;
847
+ url: string;
792
848
  filename?: string | undefined;
793
849
  sizeBytes?: number | undefined;
794
850
  source?: {
@@ -800,14 +856,14 @@ declare const AgentResponseSchema: z.ZodObject<{
800
856
  previewUrl?: string | undefined;
801
857
  };
802
858
  title: string;
803
- description?: string | undefined;
804
859
  jobId?: string | undefined;
860
+ description?: string | undefined;
805
861
  }, {
806
- id: string;
807
862
  kind: "attachment";
863
+ id: string;
808
864
  attachment: {
809
- url: string;
810
865
  mediaType: string;
866
+ url: string;
811
867
  filename?: string | undefined;
812
868
  sizeBytes?: number | undefined;
813
869
  source?: {
@@ -819,8 +875,8 @@ declare const AgentResponseSchema: z.ZodObject<{
819
875
  previewUrl?: string | undefined;
820
876
  };
821
877
  title: string;
822
- description?: string | undefined;
823
878
  jobId?: string | undefined;
879
+ description?: string | undefined;
824
880
  }>]>, "many">>;
825
881
  pendingConfirmations: z.ZodOptional<z.ZodArray<z.ZodObject<{
826
882
  id: z.ZodString;
@@ -866,27 +922,27 @@ declare const AgentResponseSchema: z.ZodObject<{
866
922
  };
867
923
  toolResults?: {
868
924
  toolName: string;
925
+ data?: unknown;
869
926
  args?: Record<string, unknown> | undefined;
870
927
  jobId?: string | undefined;
871
- data?: unknown;
872
928
  }[] | undefined;
873
929
  cards?: ({
874
- id: string;
875
930
  kind: "tool-approval";
931
+ id: string;
876
932
  toolName: string;
877
933
  summary: string;
878
934
  state: "approval-requested" | "approval-responded" | "output-available" | "output-denied" | "output-error";
879
- error?: string | undefined;
880
935
  toolCallId?: string | undefined;
881
936
  preview?: string | undefined;
882
937
  input?: Record<string, unknown> | undefined;
883
938
  output?: unknown;
939
+ error?: string | undefined;
884
940
  } | {
885
- id: string;
886
941
  kind: "attachment";
942
+ id: string;
887
943
  attachment: {
888
- url: string;
889
944
  mediaType: string;
945
+ url: string;
890
946
  filename?: string | undefined;
891
947
  sizeBytes?: number | undefined;
892
948
  source?: {
@@ -898,8 +954,8 @@ declare const AgentResponseSchema: z.ZodObject<{
898
954
  previewUrl?: string | undefined;
899
955
  };
900
956
  title: string;
901
- description?: string | undefined;
902
957
  jobId?: string | undefined;
958
+ description?: string | undefined;
903
959
  })[] | undefined;
904
960
  pendingConfirmations?: {
905
961
  id: string;
@@ -918,27 +974,27 @@ declare const AgentResponseSchema: z.ZodObject<{
918
974
  };
919
975
  toolResults?: {
920
976
  toolName: string;
977
+ data?: unknown;
921
978
  args?: Record<string, unknown> | undefined;
922
979
  jobId?: string | undefined;
923
- data?: unknown;
924
980
  }[] | undefined;
925
981
  cards?: ({
926
- id: string;
927
982
  kind: "tool-approval";
983
+ id: string;
928
984
  toolName: string;
929
985
  summary: string;
930
986
  state: "approval-requested" | "approval-responded" | "output-available" | "output-denied" | "output-error";
931
- error?: string | undefined;
932
987
  toolCallId?: string | undefined;
933
988
  preview?: string | undefined;
934
989
  input?: Record<string, unknown> | undefined;
935
990
  output?: unknown;
991
+ error?: string | undefined;
936
992
  } | {
937
- id: string;
938
993
  kind: "attachment";
994
+ id: string;
939
995
  attachment: {
940
- url: string;
941
996
  mediaType: string;
997
+ url: string;
942
998
  filename?: string | undefined;
943
999
  sizeBytes?: number | undefined;
944
1000
  source?: {
@@ -950,8 +1006,8 @@ declare const AgentResponseSchema: z.ZodObject<{
950
1006
  previewUrl?: string | undefined;
951
1007
  };
952
1008
  title: string;
953
- description?: string | undefined;
954
1009
  jobId?: string | undefined;
1010
+ description?: string | undefined;
955
1011
  })[] | undefined;
956
1012
  pendingConfirmations?: {
957
1013
  id: string;
@@ -1005,12 +1061,12 @@ declare const AppInfoSchema: z.ZodObject<{
1005
1061
  lastCheck: z.ZodOptional<z.ZodString>;
1006
1062
  details: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1007
1063
  }, "strip", z.ZodTypeAny, {
1008
- status: "unknown" | "healthy" | "warning" | "error";
1064
+ status: "unknown" | "error" | "healthy" | "warning";
1009
1065
  message?: string | undefined;
1010
1066
  lastCheck?: string | undefined;
1011
1067
  details?: Record<string, unknown> | undefined;
1012
1068
  }, {
1013
- status: "unknown" | "healthy" | "warning" | "error";
1069
+ status: "unknown" | "error" | "healthy" | "warning";
1014
1070
  message?: string | undefined;
1015
1071
  lastCheck?: string | undefined;
1016
1072
  details?: Record<string, unknown> | undefined;
@@ -1020,7 +1076,7 @@ declare const AppInfoSchema: z.ZodObject<{
1020
1076
  name: string;
1021
1077
  pluginId: string;
1022
1078
  health?: {
1023
- status: "unknown" | "healthy" | "warning" | "error";
1079
+ status: "unknown" | "error" | "healthy" | "warning";
1024
1080
  message?: string | undefined;
1025
1081
  lastCheck?: string | undefined;
1026
1082
  details?: Record<string, unknown> | undefined;
@@ -1030,7 +1086,7 @@ declare const AppInfoSchema: z.ZodObject<{
1030
1086
  name: string;
1031
1087
  pluginId: string;
1032
1088
  health?: {
1033
- status: "unknown" | "healthy" | "warning" | "error";
1089
+ status: "unknown" | "error" | "healthy" | "warning";
1034
1090
  message?: string | undefined;
1035
1091
  lastCheck?: string | undefined;
1036
1092
  details?: Record<string, unknown> | undefined;
@@ -1043,15 +1099,15 @@ declare const AppInfoSchema: z.ZodObject<{
1043
1099
  priority: z.ZodDefault<z.ZodNumber>;
1044
1100
  visibility: z.ZodDefault<z.ZodEnum<["anchor", "trusted", "public"]>>;
1045
1101
  }, "strip", z.ZodTypeAny, {
1102
+ url: string;
1046
1103
  pluginId: string;
1047
1104
  label: string;
1048
- url: string;
1049
1105
  priority: number;
1050
1106
  visibility: "anchor" | "trusted" | "public";
1051
1107
  }, {
1108
+ url: string;
1052
1109
  pluginId: string;
1053
1110
  label: string;
1054
- url: string;
1055
1111
  priority?: number | undefined;
1056
1112
  visibility?: "anchor" | "trusted" | "public" | undefined;
1057
1113
  }>, "many">;
@@ -1066,25 +1122,25 @@ declare const AppInfoSchema: z.ZodObject<{
1066
1122
  visibility: z.ZodDefault<z.ZodEnum<["anchor", "trusted", "public"]>>;
1067
1123
  status: z.ZodDefault<z.ZodEnum<["available", "coming-soon", "disabled"]>>;
1068
1124
  }, "strip", z.ZodTypeAny, {
1125
+ kind: "human" | "agent" | "admin" | "protocol";
1126
+ id: string;
1069
1127
  status: "available" | "coming-soon" | "disabled";
1070
1128
  pluginId: string;
1071
1129
  label: string;
1072
1130
  priority: number;
1073
1131
  visibility: "anchor" | "trusted" | "public";
1074
- id: string;
1075
1132
  href: string;
1076
- kind: "human" | "agent" | "admin" | "protocol";
1077
1133
  description?: string | undefined;
1078
1134
  }, {
1135
+ kind: "human" | "agent" | "admin" | "protocol";
1136
+ id: string;
1079
1137
  pluginId: string;
1080
1138
  label: string;
1081
- id: string;
1082
1139
  href: string;
1083
- kind: "human" | "agent" | "admin" | "protocol";
1084
1140
  status?: "available" | "coming-soon" | "disabled" | undefined;
1141
+ description?: string | undefined;
1085
1142
  priority?: number | undefined;
1086
1143
  visibility?: "anchor" | "trusted" | "public" | undefined;
1087
- description?: string | undefined;
1088
1144
  }>, "many">;
1089
1145
  }, "strip", z.ZodTypeAny, {
1090
1146
  model: string;
@@ -1105,28 +1161,28 @@ declare const AppInfoSchema: z.ZodObject<{
1105
1161
  name: string;
1106
1162
  pluginId: string;
1107
1163
  health?: {
1108
- status: "unknown" | "healthy" | "warning" | "error";
1164
+ status: "unknown" | "error" | "healthy" | "warning";
1109
1165
  message?: string | undefined;
1110
1166
  lastCheck?: string | undefined;
1111
1167
  details?: Record<string, unknown> | undefined;
1112
1168
  } | undefined;
1113
1169
  }[];
1114
1170
  endpoints: {
1171
+ url: string;
1115
1172
  pluginId: string;
1116
1173
  label: string;
1117
- url: string;
1118
1174
  priority: number;
1119
1175
  visibility: "anchor" | "trusted" | "public";
1120
1176
  }[];
1121
1177
  interactions: {
1178
+ kind: "human" | "agent" | "admin" | "protocol";
1179
+ id: string;
1122
1180
  status: "available" | "coming-soon" | "disabled";
1123
1181
  pluginId: string;
1124
1182
  label: string;
1125
1183
  priority: number;
1126
1184
  visibility: "anchor" | "trusted" | "public";
1127
- id: string;
1128
1185
  href: string;
1129
- kind: "human" | "agent" | "admin" | "protocol";
1130
1186
  description?: string | undefined;
1131
1187
  }[];
1132
1188
  }, {
@@ -1148,29 +1204,29 @@ declare const AppInfoSchema: z.ZodObject<{
1148
1204
  name: string;
1149
1205
  pluginId: string;
1150
1206
  health?: {
1151
- status: "unknown" | "healthy" | "warning" | "error";
1207
+ status: "unknown" | "error" | "healthy" | "warning";
1152
1208
  message?: string | undefined;
1153
1209
  lastCheck?: string | undefined;
1154
1210
  details?: Record<string, unknown> | undefined;
1155
1211
  } | undefined;
1156
1212
  }[];
1157
1213
  endpoints: {
1214
+ url: string;
1158
1215
  pluginId: string;
1159
1216
  label: string;
1160
- url: string;
1161
1217
  priority?: number | undefined;
1162
1218
  visibility?: "anchor" | "trusted" | "public" | undefined;
1163
1219
  }[];
1164
1220
  interactions: {
1221
+ kind: "human" | "agent" | "admin" | "protocol";
1222
+ id: string;
1165
1223
  pluginId: string;
1166
1224
  label: string;
1167
- id: string;
1168
1225
  href: string;
1169
- kind: "human" | "agent" | "admin" | "protocol";
1170
1226
  status?: "available" | "coming-soon" | "disabled" | undefined;
1227
+ description?: string | undefined;
1171
1228
  priority?: number | undefined;
1172
1229
  visibility?: "anchor" | "trusted" | "public" | undefined;
1173
- description?: string | undefined;
1174
1230
  }[];
1175
1231
  }>;
1176
1232
  type AppInfo = z.infer<typeof AppInfoSchema>;
@@ -1188,25 +1244,25 @@ declare const ConversationSchema: z.ZodObject<{
1188
1244
  metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1189
1245
  }, "strip", z.ZodTypeAny, {
1190
1246
  id: string;
1191
- sessionId: string;
1192
1247
  interfaceType: string;
1193
1248
  channelId: string;
1249
+ metadata: Record<string, unknown>;
1250
+ sessionId: string;
1194
1251
  startedAt: string;
1195
1252
  lastActiveAt: string;
1196
1253
  createdAt: string;
1197
1254
  updatedAt: string;
1198
- metadata: Record<string, unknown>;
1199
1255
  channelName?: string | undefined;
1200
1256
  }, {
1201
1257
  id: string;
1202
- sessionId: string;
1203
1258
  interfaceType: string;
1204
1259
  channelId: string;
1260
+ metadata: Record<string, unknown>;
1261
+ sessionId: string;
1205
1262
  startedAt: string;
1206
1263
  lastActiveAt: string;
1207
1264
  createdAt: string;
1208
1265
  updatedAt: string;
1209
- metadata: Record<string, unknown>;
1210
1266
  channelName?: string | undefined;
1211
1267
  }>;
1212
1268
  type Conversation = z.infer<typeof ConversationSchema>;
@@ -1219,17 +1275,17 @@ declare const MessageSchema: z.ZodObject<{
1219
1275
  metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1220
1276
  }, "strip", z.ZodTypeAny, {
1221
1277
  id: string;
1278
+ content: string;
1279
+ role: "user" | "assistant";
1222
1280
  metadata: Record<string, unknown>;
1223
1281
  conversationId: string;
1224
- role: "user" | "assistant";
1225
- content: string;
1226
1282
  timestamp: string;
1227
1283
  }, {
1228
1284
  id: string;
1285
+ content: string;
1286
+ role: "user" | "assistant";
1229
1287
  metadata: Record<string, unknown>;
1230
1288
  conversationId: string;
1231
- role: "user" | "assistant";
1232
- content: string;
1233
1289
  timestamp: string;
1234
1290
  }>;
1235
1291
  type Message = z.infer<typeof MessageSchema>;
@@ -1241,13 +1297,13 @@ declare const BrainCharacterSchema: z.ZodObject<{
1241
1297
  values: z.ZodArray<z.ZodString, "many">;
1242
1298
  }, "strip", z.ZodTypeAny, {
1243
1299
  values: string[];
1244
- name: string;
1245
1300
  role: string;
1301
+ name: string;
1246
1302
  purpose: string;
1247
1303
  }, {
1248
1304
  values: string[];
1249
- name: string;
1250
1305
  role: string;
1306
+ name: string;
1251
1307
  purpose: string;
1252
1308
  }>;
1253
1309
  type BrainCharacter = z.infer<typeof BrainCharacterSchema>;
@@ -1273,8 +1329,8 @@ declare const AnchorProfileSchema: z.ZodObject<{
1273
1329
  label?: string | undefined;
1274
1330
  }>, "many">>;
1275
1331
  }, "strip", z.ZodTypeAny, {
1276
- name: string;
1277
1332
  kind: "professional" | "team" | "collective";
1333
+ name: string;
1278
1334
  description?: string | undefined;
1279
1335
  organization?: string | undefined;
1280
1336
  avatar?: string | undefined;
@@ -1286,8 +1342,8 @@ declare const AnchorProfileSchema: z.ZodObject<{
1286
1342
  label?: string | undefined;
1287
1343
  }[] | undefined;
1288
1344
  }, {
1289
- name: string;
1290
1345
  kind: "professional" | "team" | "collective";
1346
+ name: string;
1291
1347
  description?: string | undefined;
1292
1348
  organization?: string | undefined;
1293
1349
  avatar?: string | undefined;
@@ -1317,12 +1373,12 @@ declare const MessageResponseSchema: z.ZodUnion<[z.ZodObject<{
1317
1373
  error: z.ZodOptional<z.ZodString>;
1318
1374
  }, "strip", z.ZodTypeAny, {
1319
1375
  success: boolean;
1320
- error?: string | undefined;
1321
1376
  data?: unknown;
1377
+ error?: string | undefined;
1322
1378
  }, {
1323
1379
  success: boolean;
1324
- error?: string | undefined;
1325
1380
  data?: unknown;
1381
+ error?: string | undefined;
1326
1382
  }>, z.ZodObject<{
1327
1383
  noop: z.ZodLiteral<true>;
1328
1384
  }, "strip", z.ZodTypeAny, {
@@ -1346,17 +1402,17 @@ declare const BaseMessageSchema: z.ZodObject<{
1346
1402
  target: z.ZodOptional<z.ZodString>;
1347
1403
  metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1348
1404
  }, "strip", z.ZodTypeAny, {
1349
- type: string;
1350
1405
  id: string;
1351
- timestamp: string;
1406
+ type: string;
1352
1407
  source: string;
1408
+ timestamp: string;
1353
1409
  metadata?: Record<string, unknown> | undefined;
1354
1410
  target?: string | undefined;
1355
1411
  }, {
1356
- type: string;
1357
1412
  id: string;
1358
- timestamp: string;
1413
+ type: string;
1359
1414
  source: string;
1415
+ timestamp: string;
1360
1416
  metadata?: Record<string, unknown> | undefined;
1361
1417
  target?: string | undefined;
1362
1418
  }>;