@memori.ai/memori-api-client 6.0.1 → 6.0.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/CHANGELOG.md +7 -0
- package/dist/engine/chatLogs.d.ts +3 -0
- package/dist/engine/chatLogs.js +4 -0
- package/dist/engine/chatLogs.js.map +1 -1
- package/dist/engine/functions.d.ts +2 -2
- package/dist/engine.d.ts +8 -2
- package/dist/index.d.ts +8 -2
- package/esm/engine/chatLogs.d.ts +3 -0
- package/esm/engine/chatLogs.js +4 -0
- package/esm/engine/chatLogs.js.map +1 -1
- package/esm/engine/functions.d.ts +2 -2
- package/esm/engine.d.ts +8 -2
- package/esm/index.d.ts +8 -2
- package/package.json +1 -1
- package/src/engine/chatLogs.ts +21 -0
- package/src/engine/functions.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
+
## [6.0.2](https://github.com/memori-ai/memori-api-client/compare/v6.0.1...v6.0.2) (2025-03-13)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* add getChatLogsByUser function to retrieve chat logs for the current user session ([5015257](https://github.com/memori-ai/memori-api-client/commit/5015257c2e7db97cb3b317ce9693577f89941104))
|
|
9
|
+
|
|
3
10
|
## [6.0.1](https://github.com/memori-ai/memori-api-client/compare/v6.0.0...v6.0.1) (2025-03-07)
|
|
4
11
|
|
|
5
12
|
|
|
@@ -3,6 +3,9 @@ declare const _default: (apiUrl: string) => {
|
|
|
3
3
|
getChatLogs: (sessionId: string, dateFrom?: string, dateTo?: string) => Promise<ResponseSpec & {
|
|
4
4
|
chatLogs: ChatLog[];
|
|
5
5
|
}>;
|
|
6
|
+
getChatLogsByUser: (sessionId: string, dateFrom?: string, dateTo?: string) => Promise<ResponseSpec & {
|
|
7
|
+
chatLogs: ChatLog[];
|
|
8
|
+
}>;
|
|
6
9
|
getSessionChatLogs: (sessionId: string, chatLogSessionID: string) => Promise<ResponseSpec & {
|
|
7
10
|
chatLogs: ChatLog[];
|
|
8
11
|
}>;
|
package/dist/engine/chatLogs.js
CHANGED
|
@@ -6,6 +6,10 @@ exports.default = (apiUrl) => ({
|
|
|
6
6
|
method: 'GET',
|
|
7
7
|
apiUrl,
|
|
8
8
|
}),
|
|
9
|
+
getChatLogsByUser: async (sessionId, dateFrom, dateTo) => (0, apiFetcher_1.apiFetcher)(`/CurrentUserChatLogs/${sessionId}${dateFrom ? `/${dateFrom}` : ''}${dateFrom && dateTo ? `/${dateTo}` : ''}`, {
|
|
10
|
+
method: 'GET',
|
|
11
|
+
apiUrl,
|
|
12
|
+
}),
|
|
9
13
|
getSessionChatLogs: async (sessionId, chatLogSessionID) => (0, apiFetcher_1.apiFetcher)(`/SessionChatLogs/${sessionId}/${chatLogSessionID}`, {
|
|
10
14
|
method: 'GET',
|
|
11
15
|
apiUrl,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chatLogs.js","sourceRoot":"","sources":["../../src/engine/chatLogs.ts"],"names":[],"mappings":";;AACA,8CAA2C;AAQ3C,kBAAe,CAAC,MAAc,EAAE,EAAE,CAAC,CAAC;IAOlC,WAAW,EAAE,KAAK,EAAE,SAAiB,EAAE,QAAiB,EAAE,MAAe,EAAE,EAAE,CAC3E,IAAA,uBAAU,EACR,aAAa,SAAS,GAAG,QAAQ,CAAC,CAAC,CAAC,IAAI,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,GACrD,QAAQ,IAAI,MAAM,CAAC,CAAC,CAAC,IAAI,MAAM,EAAE,CAAC,CAAC,CAAC,EACtC,EAAE,EACF;QACE,MAAM,EAAE,KAAK;QACb,MAAM;KACP,CAKF;IAOH,kBAAkB,EAAE,KAAK,EAAE,SAAiB,EAAE,gBAAwB,EAAE,EAAE,CACxE,IAAA,uBAAU,EAAC,oBAAoB,SAAS,IAAI,gBAAgB,EAAE,EAAE;QAC9D,MAAM,E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C,IAAI,MAAM,EAAE,CAAC,CAAC,CAAC,EACtC,EAAE,EACF;QACE,MAAM,EAAE,QAAQ;QAChB,MAAM;KACP,CACuB;IAO5B,aAAa,EAAE,KAAK,EAAE,SAAiB,EAAE,SAAiB,EAAE,EAAE,CAC5D,IAAA,uBAAU,EAAC,YAAY,SAAS,IAAI,SAAS,EAAE,EAAE;QAC/C,MAAM,EAAE,QAAQ;QAChB,MAAM;KACP,CAA0B;CAC9B,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ResponseSpec, Function } from '../types';
|
|
1
|
+
import type { ResponseSpec, Function, MacroFunction } from '../types';
|
|
2
2
|
declare const _default: (apiUrl: string) => {
|
|
3
3
|
getAllFunctions: (sessionId: string) => Promise<ResponseSpec & {
|
|
4
4
|
count: number;
|
|
@@ -20,7 +20,7 @@ declare const _default: (apiUrl: string) => {
|
|
|
20
20
|
}>;
|
|
21
21
|
getMacroFunctions: (sessionId: string) => Promise<ResponseSpec & {
|
|
22
22
|
count: number;
|
|
23
|
-
macroFunctions:
|
|
23
|
+
macroFunctions: MacroFunction[];
|
|
24
24
|
}>;
|
|
25
25
|
};
|
|
26
26
|
export default _default;
|
package/dist/engine.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ declare const _default: (apiUrl: string) => {
|
|
|
19
19
|
}>;
|
|
20
20
|
getMacroFunctions: (sessionId: string) => Promise<import("./types").ResponseSpec & {
|
|
21
21
|
count: number;
|
|
22
|
-
macroFunctions: import("./types").
|
|
22
|
+
macroFunctions: import("./types").MacroFunction[];
|
|
23
23
|
}>;
|
|
24
24
|
functions: {
|
|
25
25
|
getAllFunctions: (sessionId: string) => Promise<import("./types").ResponseSpec & {
|
|
@@ -42,7 +42,7 @@ declare const _default: (apiUrl: string) => {
|
|
|
42
42
|
}>;
|
|
43
43
|
getMacroFunctions: (sessionId: string) => Promise<import("./types").ResponseSpec & {
|
|
44
44
|
count: number;
|
|
45
|
-
macroFunctions: import("./types").
|
|
45
|
+
macroFunctions: import("./types").MacroFunction[];
|
|
46
46
|
}>;
|
|
47
47
|
};
|
|
48
48
|
getTopics: (sessionId: string) => Promise<import("./types").ResponseSpec & {
|
|
@@ -192,6 +192,9 @@ declare const _default: (apiUrl: string) => {
|
|
|
192
192
|
getChatLogs: (sessionId: string, dateFrom?: string | undefined, dateTo?: string | undefined) => Promise<import("./types").ResponseSpec & {
|
|
193
193
|
chatLogs: import("./types").ChatLog[];
|
|
194
194
|
}>;
|
|
195
|
+
getChatLogsByUser: (sessionId: string, dateFrom?: string | undefined, dateTo?: string | undefined) => Promise<import("./types").ResponseSpec & {
|
|
196
|
+
chatLogs: import("./types").ChatLog[];
|
|
197
|
+
}>;
|
|
195
198
|
getSessionChatLogs: (sessionId: string, chatLogSessionID: string) => Promise<import("./types").ResponseSpec & {
|
|
196
199
|
chatLogs: import("./types").ChatLog[];
|
|
197
200
|
}>;
|
|
@@ -204,6 +207,9 @@ declare const _default: (apiUrl: string) => {
|
|
|
204
207
|
getChatLogs: (sessionId: string, dateFrom?: string | undefined, dateTo?: string | undefined) => Promise<import("./types").ResponseSpec & {
|
|
205
208
|
chatLogs: import("./types").ChatLog[];
|
|
206
209
|
}>;
|
|
210
|
+
getChatLogsByUser: (sessionId: string, dateFrom?: string | undefined, dateTo?: string | undefined) => Promise<import("./types").ResponseSpec & {
|
|
211
|
+
chatLogs: import("./types").ChatLog[];
|
|
212
|
+
}>;
|
|
207
213
|
getSessionChatLogs: (sessionId: string, chatLogSessionID: string) => Promise<import("./types").ResponseSpec & {
|
|
208
214
|
chatLogs: import("./types").ChatLog[];
|
|
209
215
|
}>;
|
package/dist/index.d.ts
CHANGED
|
@@ -28,7 +28,7 @@ declare const api: (backendEndpoint?: string, engineEndpoint?: string) => {
|
|
|
28
28
|
}>;
|
|
29
29
|
getMacroFunctions: (sessionId: string) => Promise<import("./types").ResponseSpec & {
|
|
30
30
|
count: number;
|
|
31
|
-
macroFunctions: import("./types").
|
|
31
|
+
macroFunctions: import("./types").MacroFunction[];
|
|
32
32
|
}>;
|
|
33
33
|
functions: {
|
|
34
34
|
getAllFunctions: (sessionId: string) => Promise<import("./types").ResponseSpec & {
|
|
@@ -51,7 +51,7 @@ declare const api: (backendEndpoint?: string, engineEndpoint?: string) => {
|
|
|
51
51
|
}>;
|
|
52
52
|
getMacroFunctions: (sessionId: string) => Promise<import("./types").ResponseSpec & {
|
|
53
53
|
count: number;
|
|
54
|
-
macroFunctions: import("./types").
|
|
54
|
+
macroFunctions: import("./types").MacroFunction[];
|
|
55
55
|
}>;
|
|
56
56
|
};
|
|
57
57
|
getTopics: (sessionId: string) => Promise<import("./types").ResponseSpec & {
|
|
@@ -201,6 +201,9 @@ declare const api: (backendEndpoint?: string, engineEndpoint?: string) => {
|
|
|
201
201
|
getChatLogs: (sessionId: string, dateFrom?: string | undefined, dateTo?: string | undefined) => Promise<import("./types").ResponseSpec & {
|
|
202
202
|
chatLogs: import("./types").ChatLog[];
|
|
203
203
|
}>;
|
|
204
|
+
getChatLogsByUser: (sessionId: string, dateFrom?: string | undefined, dateTo?: string | undefined) => Promise<import("./types").ResponseSpec & {
|
|
205
|
+
chatLogs: import("./types").ChatLog[];
|
|
206
|
+
}>;
|
|
204
207
|
getSessionChatLogs: (sessionId: string, chatLogSessionID: string) => Promise<import("./types").ResponseSpec & {
|
|
205
208
|
chatLogs: import("./types").ChatLog[];
|
|
206
209
|
}>;
|
|
@@ -213,6 +216,9 @@ declare const api: (backendEndpoint?: string, engineEndpoint?: string) => {
|
|
|
213
216
|
getChatLogs: (sessionId: string, dateFrom?: string | undefined, dateTo?: string | undefined) => Promise<import("./types").ResponseSpec & {
|
|
214
217
|
chatLogs: import("./types").ChatLog[];
|
|
215
218
|
}>;
|
|
219
|
+
getChatLogsByUser: (sessionId: string, dateFrom?: string | undefined, dateTo?: string | undefined) => Promise<import("./types").ResponseSpec & {
|
|
220
|
+
chatLogs: import("./types").ChatLog[];
|
|
221
|
+
}>;
|
|
216
222
|
getSessionChatLogs: (sessionId: string, chatLogSessionID: string) => Promise<import("./types").ResponseSpec & {
|
|
217
223
|
chatLogs: import("./types").ChatLog[];
|
|
218
224
|
}>;
|
package/esm/engine/chatLogs.d.ts
CHANGED
|
@@ -3,6 +3,9 @@ declare const _default: (apiUrl: string) => {
|
|
|
3
3
|
getChatLogs: (sessionId: string, dateFrom?: string, dateTo?: string) => Promise<ResponseSpec & {
|
|
4
4
|
chatLogs: ChatLog[];
|
|
5
5
|
}>;
|
|
6
|
+
getChatLogsByUser: (sessionId: string, dateFrom?: string, dateTo?: string) => Promise<ResponseSpec & {
|
|
7
|
+
chatLogs: ChatLog[];
|
|
8
|
+
}>;
|
|
6
9
|
getSessionChatLogs: (sessionId: string, chatLogSessionID: string) => Promise<ResponseSpec & {
|
|
7
10
|
chatLogs: ChatLog[];
|
|
8
11
|
}>;
|
package/esm/engine/chatLogs.js
CHANGED
|
@@ -4,6 +4,10 @@ export default (apiUrl) => ({
|
|
|
4
4
|
method: 'GET',
|
|
5
5
|
apiUrl,
|
|
6
6
|
}),
|
|
7
|
+
getChatLogsByUser: async (sessionId, dateFrom, dateTo) => apiFetcher(`/CurrentUserChatLogs/${sessionId}${dateFrom ? `/${dateFrom}` : ''}${dateFrom && dateTo ? `/${dateTo}` : ''}`, {
|
|
8
|
+
method: 'GET',
|
|
9
|
+
apiUrl,
|
|
10
|
+
}),
|
|
7
11
|
getSessionChatLogs: async (sessionId, chatLogSessionID) => apiFetcher(`/SessionChatLogs/${sessionId}/${chatLogSessionID}`, {
|
|
8
12
|
method: 'GET',
|
|
9
13
|
apiUrl,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chatLogs.js","sourceRoot":"","sources":["../../src/engine/chatLogs.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAQ3C,eAAe,CAAC,MAAc,EAAE,EAAE,CAAC,CAAC;IAOlC,WAAW,EAAE,KAAK,EAAE,SAAiB,EAA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AQ,EAAE,CAAC,CAAC,CAAC,EAAE,GACnE,QAAQ,IAAI,MAAM,CAAC,CAAC,CAAC,IAAI,MAAM,EAAE,CAAC,CAAC,CAAC,EACtC,EAAE,EACF;QACE,MAAM,EAAE,KAAK;QACb,MAAM;KACP,CAKF;IAQH,cAAc,EAAE,KAAK,EACnB,SAAiB,EACjB,QAAiB,EACjB,MAAe,EACf,EAAE,CACF,UAAU,CACR,aAAa,SAAS,GAAG,QAAQ,CAAC,CAAC,CAAC,IAAI,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,GACrD,QAAQ,IAAI,MAAM,CAAC,CAAC,CAAC,IAAI,MAAM,EAAE,CAAC,CAAC,CAAC,EACtC,EAAE,EACF;QACE,MAAM,EAAE,QAAQ;QAChB,MAAM;KACP,CACuB;IAO5B,aAAa,EAAE,KAAK,EAAE,SAAiB,EAAE,SAAiB,EAAE,EAAE,CAC5D,UAAU,CAAC,YAAY,SAAS,IAAI,SAAS,EAAE,EAAE;QAC/C,MAAM,EAAE,QAAQ;QAChB,MAAM;KACP,CAA0B;CAC9B,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ResponseSpec, Function } from '../types';
|
|
1
|
+
import type { ResponseSpec, Function, MacroFunction } from '../types';
|
|
2
2
|
declare const _default: (apiUrl: string) => {
|
|
3
3
|
getAllFunctions: (sessionId: string) => Promise<ResponseSpec & {
|
|
4
4
|
count: number;
|
|
@@ -20,7 +20,7 @@ declare const _default: (apiUrl: string) => {
|
|
|
20
20
|
}>;
|
|
21
21
|
getMacroFunctions: (sessionId: string) => Promise<ResponseSpec & {
|
|
22
22
|
count: number;
|
|
23
|
-
macroFunctions:
|
|
23
|
+
macroFunctions: MacroFunction[];
|
|
24
24
|
}>;
|
|
25
25
|
};
|
|
26
26
|
export default _default;
|
package/esm/engine.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ declare const _default: (apiUrl: string) => {
|
|
|
19
19
|
}>;
|
|
20
20
|
getMacroFunctions: (sessionId: string) => Promise<import("./types").ResponseSpec & {
|
|
21
21
|
count: number;
|
|
22
|
-
macroFunctions: import("./types").
|
|
22
|
+
macroFunctions: import("./types").MacroFunction[];
|
|
23
23
|
}>;
|
|
24
24
|
functions: {
|
|
25
25
|
getAllFunctions: (sessionId: string) => Promise<import("./types").ResponseSpec & {
|
|
@@ -42,7 +42,7 @@ declare const _default: (apiUrl: string) => {
|
|
|
42
42
|
}>;
|
|
43
43
|
getMacroFunctions: (sessionId: string) => Promise<import("./types").ResponseSpec & {
|
|
44
44
|
count: number;
|
|
45
|
-
macroFunctions: import("./types").
|
|
45
|
+
macroFunctions: import("./types").MacroFunction[];
|
|
46
46
|
}>;
|
|
47
47
|
};
|
|
48
48
|
getTopics: (sessionId: string) => Promise<import("./types").ResponseSpec & {
|
|
@@ -192,6 +192,9 @@ declare const _default: (apiUrl: string) => {
|
|
|
192
192
|
getChatLogs: (sessionId: string, dateFrom?: string | undefined, dateTo?: string | undefined) => Promise<import("./types").ResponseSpec & {
|
|
193
193
|
chatLogs: import("./types").ChatLog[];
|
|
194
194
|
}>;
|
|
195
|
+
getChatLogsByUser: (sessionId: string, dateFrom?: string | undefined, dateTo?: string | undefined) => Promise<import("./types").ResponseSpec & {
|
|
196
|
+
chatLogs: import("./types").ChatLog[];
|
|
197
|
+
}>;
|
|
195
198
|
getSessionChatLogs: (sessionId: string, chatLogSessionID: string) => Promise<import("./types").ResponseSpec & {
|
|
196
199
|
chatLogs: import("./types").ChatLog[];
|
|
197
200
|
}>;
|
|
@@ -204,6 +207,9 @@ declare const _default: (apiUrl: string) => {
|
|
|
204
207
|
getChatLogs: (sessionId: string, dateFrom?: string | undefined, dateTo?: string | undefined) => Promise<import("./types").ResponseSpec & {
|
|
205
208
|
chatLogs: import("./types").ChatLog[];
|
|
206
209
|
}>;
|
|
210
|
+
getChatLogsByUser: (sessionId: string, dateFrom?: string | undefined, dateTo?: string | undefined) => Promise<import("./types").ResponseSpec & {
|
|
211
|
+
chatLogs: import("./types").ChatLog[];
|
|
212
|
+
}>;
|
|
207
213
|
getSessionChatLogs: (sessionId: string, chatLogSessionID: string) => Promise<import("./types").ResponseSpec & {
|
|
208
214
|
chatLogs: import("./types").ChatLog[];
|
|
209
215
|
}>;
|
package/esm/index.d.ts
CHANGED
|
@@ -28,7 +28,7 @@ declare const api: (backendEndpoint?: string, engineEndpoint?: string) => {
|
|
|
28
28
|
}>;
|
|
29
29
|
getMacroFunctions: (sessionId: string) => Promise<import("./types").ResponseSpec & {
|
|
30
30
|
count: number;
|
|
31
|
-
macroFunctions: import("./types").
|
|
31
|
+
macroFunctions: import("./types").MacroFunction[];
|
|
32
32
|
}>;
|
|
33
33
|
functions: {
|
|
34
34
|
getAllFunctions: (sessionId: string) => Promise<import("./types").ResponseSpec & {
|
|
@@ -51,7 +51,7 @@ declare const api: (backendEndpoint?: string, engineEndpoint?: string) => {
|
|
|
51
51
|
}>;
|
|
52
52
|
getMacroFunctions: (sessionId: string) => Promise<import("./types").ResponseSpec & {
|
|
53
53
|
count: number;
|
|
54
|
-
macroFunctions: import("./types").
|
|
54
|
+
macroFunctions: import("./types").MacroFunction[];
|
|
55
55
|
}>;
|
|
56
56
|
};
|
|
57
57
|
getTopics: (sessionId: string) => Promise<import("./types").ResponseSpec & {
|
|
@@ -201,6 +201,9 @@ declare const api: (backendEndpoint?: string, engineEndpoint?: string) => {
|
|
|
201
201
|
getChatLogs: (sessionId: string, dateFrom?: string | undefined, dateTo?: string | undefined) => Promise<import("./types").ResponseSpec & {
|
|
202
202
|
chatLogs: import("./types").ChatLog[];
|
|
203
203
|
}>;
|
|
204
|
+
getChatLogsByUser: (sessionId: string, dateFrom?: string | undefined, dateTo?: string | undefined) => Promise<import("./types").ResponseSpec & {
|
|
205
|
+
chatLogs: import("./types").ChatLog[];
|
|
206
|
+
}>;
|
|
204
207
|
getSessionChatLogs: (sessionId: string, chatLogSessionID: string) => Promise<import("./types").ResponseSpec & {
|
|
205
208
|
chatLogs: import("./types").ChatLog[];
|
|
206
209
|
}>;
|
|
@@ -213,6 +216,9 @@ declare const api: (backendEndpoint?: string, engineEndpoint?: string) => {
|
|
|
213
216
|
getChatLogs: (sessionId: string, dateFrom?: string | undefined, dateTo?: string | undefined) => Promise<import("./types").ResponseSpec & {
|
|
214
217
|
chatLogs: import("./types").ChatLog[];
|
|
215
218
|
}>;
|
|
219
|
+
getChatLogsByUser: (sessionId: string, dateFrom?: string | undefined, dateTo?: string | undefined) => Promise<import("./types").ResponseSpec & {
|
|
220
|
+
chatLogs: import("./types").ChatLog[];
|
|
221
|
+
}>;
|
|
216
222
|
getSessionChatLogs: (sessionId: string, chatLogSessionID: string) => Promise<import("./types").ResponseSpec & {
|
|
217
223
|
chatLogs: import("./types").ChatLog[];
|
|
218
224
|
}>;
|
package/package.json
CHANGED
package/src/engine/chatLogs.ts
CHANGED
|
@@ -29,6 +29,27 @@ export default (apiUrl: string) => ({
|
|
|
29
29
|
}
|
|
30
30
|
>,
|
|
31
31
|
|
|
32
|
+
/**
|
|
33
|
+
* Gets the Chat Log objects for the Memori of the current session created by the current User.
|
|
34
|
+
* @param {string} sessionId The session ID
|
|
35
|
+
* @param {?string} dateFrom The optional begin of the date interval, in UTC time, in the format yyyyMMddHHmmssfff
|
|
36
|
+
* @param {?string} dateTo The optional end of the date interval, in UTC time, in the format yyyyMMddHHmmssfff
|
|
37
|
+
*/
|
|
38
|
+
getChatLogsByUser: async (sessionId: string, dateFrom?: string, dateTo?: string) =>
|
|
39
|
+
apiFetcher(
|
|
40
|
+
`/CurrentUserChatLogs/${sessionId}${dateFrom ? `/${dateFrom}` : ''}${
|
|
41
|
+
dateFrom && dateTo ? `/${dateTo}` : ''
|
|
42
|
+
}`,
|
|
43
|
+
{
|
|
44
|
+
method: 'GET',
|
|
45
|
+
apiUrl,
|
|
46
|
+
}
|
|
47
|
+
) as Promise<
|
|
48
|
+
ResponseSpec & {
|
|
49
|
+
chatLogs: ChatLog[];
|
|
50
|
+
}
|
|
51
|
+
>,
|
|
52
|
+
|
|
32
53
|
/**
|
|
33
54
|
* Gets the Chat Log objects for the Memori of the current session recorded during a specific other session.
|
|
34
55
|
* @param {string} sessionId The session ID
|
package/src/engine/functions.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ResponseSpec, Function } from '../types';
|
|
1
|
+
import type { ResponseSpec, Function, MacroFunction } from '../types';
|
|
2
2
|
import { apiFetcher } from '../apiFetcher';
|
|
3
3
|
|
|
4
4
|
/*********************
|
|
@@ -131,7 +131,7 @@ export default (apiUrl: string) => ({
|
|
|
131
131
|
/**
|
|
132
132
|
* List of Function objects. May be empty.
|
|
133
133
|
*/
|
|
134
|
-
macroFunctions:
|
|
134
|
+
macroFunctions: MacroFunction[];
|
|
135
135
|
}
|
|
136
136
|
>,
|
|
137
137
|
});
|