@okf/ootils 1.18.1 → 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;
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;
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,
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,
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.18.1",
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",