@demind-inc/core 1.5.23 → 1.5.26

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.
@@ -37,6 +37,8 @@ export declare const DB_COLLECTION: {
37
37
  CHAT: string;
38
38
  CHAT_SCHEDULER_SESSION: string;
39
39
  CHAT_RECOMMENDATION_SESSION: string;
40
+ CHAT_SLEEP_SESSION: string;
41
+ CHAT_MEAL_SESSION: string;
40
42
  CHAT_MESSAGES: string;
41
43
  };
42
44
  export declare const SLEEP_SUPPORTED_TERRA_PROVIDERS: SupportedTerraProvidersType[];
package/dist/constants.js CHANGED
@@ -38,6 +38,8 @@ exports.DB_COLLECTION = {
38
38
  CHAT: "chat",
39
39
  CHAT_SCHEDULER_SESSION: "schedulerSession",
40
40
  CHAT_RECOMMENDATION_SESSION: "recommendationSession",
41
+ CHAT_SLEEP_SESSION: "sleepSession",
42
+ CHAT_MEAL_SESSION: "mealSession",
41
43
  CHAT_MESSAGES: "messages",
42
44
  };
43
45
  exports.SLEEP_SUPPORTED_TERRA_PROVIDERS = [
@@ -4,12 +4,14 @@ export interface Chat {
4
4
  summary?: ChatSummary;
5
5
  schedulerSessions?: SchedulerSession[];
6
6
  recommendationSessions?: RecommendationSession[];
7
+ sleepSessions?: SleepSession[];
8
+ mealSessions?: MealSession[];
7
9
  }
8
10
  export interface ChatSummary {
9
11
  scheduler?: string;
10
12
  recommendations?: string;
11
13
  }
12
- export type ChatSessionType = "scheduler" | "recommendation";
14
+ export type ChatSessionType = "scheduler" | "recommendation" | "sleep" | "meal";
13
15
  export interface SchedulerSession {
14
16
  schedulerSessionId: string;
15
17
  messages: SessionMessage[];
@@ -18,6 +20,25 @@ export interface SchedulerSession {
18
20
  createdAt: string;
19
21
  sessionType: ChatSessionType;
20
22
  }
23
+ export interface TimeSummary {
24
+ startTime: string;
25
+ endTime: string;
26
+ description: number;
27
+ }
28
+ export interface SleepSession {
29
+ sleepSessionId: string;
30
+ messages: SessionMessage[];
31
+ createdAt: string;
32
+ sessionType: ChatSessionType;
33
+ sleepData: TimeSummary;
34
+ }
35
+ export interface MealSession {
36
+ mealSessionId: string;
37
+ messages: SessionMessage[];
38
+ createdAt: string;
39
+ sessionType: ChatSessionType;
40
+ mealData: TimeSummary;
41
+ }
21
42
  export type MessageRole = "user" | "assistant";
22
43
  export interface SessionMessage {
23
44
  messageId: string;
package/lib/constants.ts CHANGED
@@ -38,6 +38,8 @@ export const DB_COLLECTION = {
38
38
  CHAT: "chat",
39
39
  CHAT_SCHEDULER_SESSION: "schedulerSession",
40
40
  CHAT_RECOMMENDATION_SESSION: "recommendationSession",
41
+ CHAT_SLEEP_SESSION: "sleepSession",
42
+ CHAT_MEAL_SESSION: "mealSession",
41
43
  CHAT_MESSAGES: "messages",
42
44
  };
43
45
 
@@ -4,6 +4,8 @@ export interface Chat {
4
4
  summary?: ChatSummary;
5
5
  schedulerSessions?: SchedulerSession[];
6
6
  recommendationSessions?: RecommendationSession[];
7
+ sleepSessions?: SleepSession[];
8
+ mealSessions?: MealSession[];
7
9
  }
8
10
 
9
11
  export interface ChatSummary {
@@ -11,7 +13,7 @@ export interface ChatSummary {
11
13
  recommendations?: string;
12
14
  }
13
15
 
14
- export type ChatSessionType = "scheduler" | "recommendation";
16
+ export type ChatSessionType = "scheduler" | "recommendation" | "sleep" | "meal";
15
17
 
16
18
  export interface SchedulerSession {
17
19
  schedulerSessionId: string;
@@ -22,6 +24,28 @@ export interface SchedulerSession {
22
24
  sessionType: ChatSessionType;
23
25
  }
24
26
 
27
+ export interface TimeSummary {
28
+ startTime: string;
29
+ endTime: string;
30
+ description: number;
31
+ }
32
+
33
+ export interface SleepSession {
34
+ sleepSessionId: string;
35
+ messages: SessionMessage[];
36
+ createdAt: string;
37
+ sessionType: ChatSessionType;
38
+ sleepData: TimeSummary;
39
+ }
40
+
41
+ export interface MealSession {
42
+ mealSessionId: string;
43
+ messages: SessionMessage[];
44
+ createdAt: string;
45
+ sessionType: ChatSessionType;
46
+ mealData: TimeSummary;
47
+ }
48
+
25
49
  export type MessageRole = "user" | "assistant";
26
50
 
27
51
  export interface SessionMessage {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@demind-inc/core",
3
- "version": "1.5.23",
3
+ "version": "1.5.26",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {