@okf/ootils 1.18.0 → 1.18.2

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 CHANGED
@@ -984,6 +984,7 @@ interface IAIChat extends Document {
984
984
  createdAt: Date;
985
985
  lastActivity: Date;
986
986
  messages: IMessage[];
987
+ ACLScope: "aiChat" | "reports";
987
988
  }
988
989
  declare const AIChatSchema: mongoose__default.Schema<IAIChat, mongoose__default.Model<IAIChat, any, any, any, mongoose__default.Document<unknown, any, IAIChat, any, {}> & IAIChat & Required<{
989
990
  _id: mongoose__default.Types.ObjectId;
@@ -1108,6 +1109,7 @@ interface IMeta {
1108
1109
  interface IGeneratedTopic {
1109
1110
  name: string;
1110
1111
  summary: string;
1112
+ isParent: boolean;
1111
1113
  parentTopic?: Schema.Types.ObjectId | null;
1112
1114
  embeddings: number[];
1113
1115
  meta: IMeta;
package/dist/node.d.ts CHANGED
@@ -984,6 +984,7 @@ interface IAIChat extends Document {
984
984
  createdAt: Date;
985
985
  lastActivity: Date;
986
986
  messages: IMessage[];
987
+ ACLScope: "aiChat" | "reports";
987
988
  }
988
989
  declare const AIChatSchema: mongoose__default.Schema<IAIChat, mongoose__default.Model<IAIChat, any, any, any, mongoose__default.Document<unknown, any, IAIChat, any, {}> & IAIChat & Required<{
989
990
  _id: mongoose__default.Types.ObjectId;
@@ -1108,6 +1109,7 @@ interface IMeta {
1108
1109
  interface IGeneratedTopic {
1109
1110
  name: string;
1110
1111
  summary: string;
1112
+ isParent: boolean;
1111
1113
  parentTopic?: Schema.Types.ObjectId | null;
1112
1114
  embeddings: number[];
1113
1115
  meta: IMeta;
package/dist/node.js CHANGED
@@ -906,6 +906,12 @@ var init_AIChat = __esm({
906
906
  userId: { type: import_mongoose4.default.Schema.Types.ObjectId, index: true },
907
907
  createdAt: { type: Date, index: true },
908
908
  lastActivity: { type: Date, index: true },
909
+ ACLScope: {
910
+ type: String,
911
+ enum: ["aiChat", "reports"],
912
+ default: "aiChat",
913
+ index: true
914
+ },
909
915
  messages: [
910
916
  {
911
917
  id: String,
@@ -960,6 +966,11 @@ var init_GeneratedTopics = __esm({
960
966
  type: String,
961
967
  required: true
962
968
  },
969
+ isParent: {
970
+ type: Boolean,
971
+ required: true,
972
+ default: false
973
+ },
963
974
  parentTopic: {
964
975
  type: import_mongoose5.Schema.Types.ObjectId,
965
976
  ref: "generatedtopics",
package/dist/node.mjs CHANGED
@@ -911,6 +911,12 @@ var init_AIChat = __esm({
911
911
  userId: { type: mongoose4.Schema.Types.ObjectId, index: true },
912
912
  createdAt: { type: Date, index: true },
913
913
  lastActivity: { type: Date, index: true },
914
+ ACLScope: {
915
+ type: String,
916
+ enum: ["aiChat", "reports"],
917
+ default: "aiChat",
918
+ index: true
919
+ },
914
920
  messages: [
915
921
  {
916
922
  id: String,
@@ -965,6 +971,11 @@ var init_GeneratedTopics = __esm({
965
971
  type: String,
966
972
  required: true
967
973
  },
974
+ isParent: {
975
+ type: Boolean,
976
+ required: true,
977
+ default: false
978
+ },
968
979
  parentTopic: {
969
980
  type: Schema2.Types.ObjectId,
970
981
  ref: "generatedtopics",
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.18.0",
6
+ "version": "1.18.2",
7
7
  "description": "Utility functions for both browser and Node.js",
8
8
  "main": "dist/index.js",
9
9
  "module": "dist/index.mjs",