@demind-inc/core 1.5.7 → 1.5.9

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.
@@ -9,12 +9,14 @@ export interface ChatSummary {
9
9
  scheduler?: string;
10
10
  recommendations?: string;
11
11
  }
12
+ export type ChatSessionType = "scheduler" | "recommendation";
12
13
  export interface SchedulerSession {
13
14
  schedulerSessionId: string;
14
15
  messages: Message[];
15
16
  scheduleOutput: any;
16
17
  deltaOutput?: any;
17
18
  updatedAt: string;
19
+ sessionType: ChatSessionType;
18
20
  }
19
21
  export type MessageRole = "user" | "assistant";
20
22
  export interface Message {
@@ -28,4 +30,5 @@ export interface RecommendationSession {
28
30
  messages: Message[];
29
31
  recommendations: any;
30
32
  updatedAt: string;
33
+ sessionType: ChatSessionType;
31
34
  }
@@ -19,6 +19,7 @@ export interface User {
19
19
  recommendedTasks?: Array<DocumentReference>;
20
20
  chronotype?: Chronotype;
21
21
  emaIds?: Array<DocumentReference>;
22
+ chatId?: string;
22
23
  access?: UserAccessType;
23
24
  subscriptions?: Subscription[];
24
25
  terraUserIds?: string[];
@@ -13,3 +13,4 @@ export * from "./DeviceGroup";
13
13
  export * from "./Discount";
14
14
  export * from "./TaskLabels";
15
15
  export * from "./Routine";
16
+ export * from "./Chat";
@@ -29,3 +29,4 @@ __exportStar(require("./DeviceGroup"), exports);
29
29
  __exportStar(require("./Discount"), exports);
30
30
  __exportStar(require("./TaskLabels"), exports);
31
31
  __exportStar(require("./Routine"), exports);
32
+ __exportStar(require("./Chat"), exports);
@@ -11,12 +11,15 @@ export interface ChatSummary {
11
11
  recommendations?: string;
12
12
  }
13
13
 
14
+ export type ChatSessionType = "scheduler" | "recommendation";
15
+
14
16
  export interface SchedulerSession {
15
17
  schedulerSessionId: string;
16
18
  messages: Message[];
17
19
  scheduleOutput: any; // json
18
20
  deltaOutput?: any; // json (output_schedule - schedule)
19
21
  updatedAt: string;
22
+ sessionType: ChatSessionType;
20
23
  }
21
24
 
22
25
  export type MessageRole = "user" | "assistant";
@@ -33,4 +36,5 @@ export interface RecommendationSession {
33
36
  messages: Message[];
34
37
  recommendations: any; // json
35
38
  updatedAt: string;
39
+ sessionType: ChatSessionType;
36
40
  }
@@ -20,6 +20,7 @@ export interface User {
20
20
  recommendedTasks?: Array<DocumentReference>;
21
21
  chronotype?: Chronotype;
22
22
  emaIds?: Array<DocumentReference>;
23
+ chatId?: string;
23
24
  access?: UserAccessType;
24
25
  subscriptions?: Subscription[];
25
26
  terraUserIds?: string[];
@@ -13,3 +13,4 @@ export * from "./DeviceGroup";
13
13
  export * from "./Discount";
14
14
  export * from "./TaskLabels";
15
15
  export * from "./Routine";
16
+ export * from "./Chat";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@demind-inc/core",
3
- "version": "1.5.7",
3
+ "version": "1.5.9",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {