@okf/ootils 1.8.0 → 1.8.1
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/node.d.mts +3 -1
- package/dist/node.d.ts +3 -1
- package/dist/node.js +4 -1
- package/dist/node.mjs +4 -1
- package/package.json +1 -1
package/dist/node.d.mts
CHANGED
|
@@ -905,11 +905,13 @@ interface IMessage {
|
|
|
905
905
|
vectorSearchInfo: {
|
|
906
906
|
chunks: typeof AnnotationSchema[];
|
|
907
907
|
};
|
|
908
|
+
relatedChunks: mongoose.Schema.Types.ObjectId[];
|
|
908
909
|
args: {
|
|
909
910
|
query: string;
|
|
910
911
|
reframedQuery: string;
|
|
911
912
|
summary: object;
|
|
912
913
|
};
|
|
914
|
+
metadata: object;
|
|
913
915
|
userFeedback: {
|
|
914
916
|
reaction: "positive" | "negative";
|
|
915
917
|
comments: string;
|
|
@@ -918,7 +920,7 @@ interface IMessage {
|
|
|
918
920
|
interface IAIChat extends Document {
|
|
919
921
|
userId: mongoose.Schema.Types.ObjectId;
|
|
920
922
|
createdAt: Date;
|
|
921
|
-
|
|
923
|
+
lastActivity: Date;
|
|
922
924
|
messages: IMessage[];
|
|
923
925
|
}
|
|
924
926
|
declare const AIChatSchema: mongoose.Schema<IAIChat, mongoose.Model<IAIChat, any, any, any, mongoose.Document<unknown, any, IAIChat, any> & IAIChat & Required<{
|
package/dist/node.d.ts
CHANGED
|
@@ -905,11 +905,13 @@ interface IMessage {
|
|
|
905
905
|
vectorSearchInfo: {
|
|
906
906
|
chunks: typeof AnnotationSchema[];
|
|
907
907
|
};
|
|
908
|
+
relatedChunks: mongoose.Schema.Types.ObjectId[];
|
|
908
909
|
args: {
|
|
909
910
|
query: string;
|
|
910
911
|
reframedQuery: string;
|
|
911
912
|
summary: object;
|
|
912
913
|
};
|
|
914
|
+
metadata: object;
|
|
913
915
|
userFeedback: {
|
|
914
916
|
reaction: "positive" | "negative";
|
|
915
917
|
comments: string;
|
|
@@ -918,7 +920,7 @@ interface IMessage {
|
|
|
918
920
|
interface IAIChat extends Document {
|
|
919
921
|
userId: mongoose.Schema.Types.ObjectId;
|
|
920
922
|
createdAt: Date;
|
|
921
|
-
|
|
923
|
+
lastActivity: Date;
|
|
922
924
|
messages: IMessage[];
|
|
923
925
|
}
|
|
924
926
|
declare const AIChatSchema: mongoose.Schema<IAIChat, mongoose.Model<IAIChat, any, any, any, mongoose.Document<unknown, any, IAIChat, any> & IAIChat & Required<{
|
package/dist/node.js
CHANGED
|
@@ -911,7 +911,7 @@ var init_AIChat = __esm({
|
|
|
911
911
|
{
|
|
912
912
|
userId: { type: import_mongoose4.default.Schema.Types.ObjectId, index: { unique: true } },
|
|
913
913
|
createdAt: Date,
|
|
914
|
-
|
|
914
|
+
lastActivity: Date,
|
|
915
915
|
messages: [
|
|
916
916
|
{
|
|
917
917
|
id: String,
|
|
@@ -925,13 +925,16 @@ var init_AIChat = __esm({
|
|
|
925
925
|
viz: Object
|
|
926
926
|
},
|
|
927
927
|
vectorSearchInfo: {
|
|
928
|
+
//depreca
|
|
928
929
|
chunks: [Annotations_default]
|
|
929
930
|
},
|
|
931
|
+
relatedChunks: [{ type: import_mongoose4.default.Schema.Types.ObjectId, ref: "chunks" }],
|
|
930
932
|
args: {
|
|
931
933
|
query: String,
|
|
932
934
|
reframedQuery: String,
|
|
933
935
|
summary: Object
|
|
934
936
|
},
|
|
937
|
+
metadata: Object,
|
|
935
938
|
userFeedback: {
|
|
936
939
|
reaction: { type: String, enum: ["positive", "negative"] },
|
|
937
940
|
comments: String
|
package/dist/node.mjs
CHANGED
|
@@ -916,7 +916,7 @@ var init_AIChat = __esm({
|
|
|
916
916
|
{
|
|
917
917
|
userId: { type: mongoose4.Schema.Types.ObjectId, index: { unique: true } },
|
|
918
918
|
createdAt: Date,
|
|
919
|
-
|
|
919
|
+
lastActivity: Date,
|
|
920
920
|
messages: [
|
|
921
921
|
{
|
|
922
922
|
id: String,
|
|
@@ -930,13 +930,16 @@ var init_AIChat = __esm({
|
|
|
930
930
|
viz: Object
|
|
931
931
|
},
|
|
932
932
|
vectorSearchInfo: {
|
|
933
|
+
//depreca
|
|
933
934
|
chunks: [Annotations_default]
|
|
934
935
|
},
|
|
936
|
+
relatedChunks: [{ type: mongoose4.Schema.Types.ObjectId, ref: "chunks" }],
|
|
935
937
|
args: {
|
|
936
938
|
query: String,
|
|
937
939
|
reframedQuery: String,
|
|
938
940
|
summary: Object
|
|
939
941
|
},
|
|
942
|
+
metadata: Object,
|
|
940
943
|
userFeedback: {
|
|
941
944
|
reaction: { type: String, enum: ["positive", "negative"] },
|
|
942
945
|
comments: String
|