@demind-inc/core 1.5.22 → 1.5.25

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.
@@ -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;
@@ -1,3 +1,4 @@
1
+ import { DocumentReference } from "@google-cloud/firestore";
1
2
  import { CircadianPhase } from "../types";
2
3
  export interface Metrics {
3
4
  metricId: string;
@@ -15,7 +16,7 @@ export interface MetricSleep {
15
16
  metricSleepId: string;
16
17
  date: string;
17
18
  scores?: SleepDetail[];
18
- eventId?: string;
19
+ eventRef?: DocumentReference;
19
20
  }
20
21
  export type PhaseStartEndSet = Omit<Record<CircadianPhase, {
21
22
  start: string;
@@ -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 {
@@ -1,3 +1,4 @@
1
+ import { DocumentReference } from "@google-cloud/firestore";
1
2
  import { CircadianPhase } from "../types";
2
3
 
3
4
  export interface Metrics {
@@ -17,7 +18,7 @@ export interface MetricSleep {
17
18
  metricSleepId: string;
18
19
  date: string;
19
20
  scores?: SleepDetail[];
20
- eventId?: string;
21
+ eventRef?: DocumentReference;
21
22
  }
22
23
 
23
24
  export type PhaseStartEndSet = Omit<
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@demind-inc/core",
3
- "version": "1.5.22",
3
+ "version": "1.5.25",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {