@memori.ai/memori-api-client
Advanced tools
Comparing version 5.4.0 to 5.4.1
## [5.4.1](https://github.com/memori-ai/memori-api-client/compare/v5.4.0...v5.4.1) (2025-01-08) | ||
### Bug Fixes | ||
* typo in context vars result type ([2f6290b](https://github.com/memori-ai/memori-api-client/commit/2f6290bca70fb0c7cb21495aa66c13c7c39195d6)) | ||
### Changes | ||
* add optional param to text quality indexes ([6b99914](https://github.com/memori-ai/memori-api-client/commit/6b999148d1f50f79d6e8f283e5a39c3cff83b642)) | ||
## [5.4.0](https://github.com/memori-ai/memori-api-client/compare/v5.3.1...v5.4.0) (2025-01-08) | ||
@@ -4,0 +16,0 @@ |
@@ -245,3 +245,5 @@ declare const _default: (apiUrl: string) => { | ||
getContextVars: (sessionId: string) => Promise<import("./types").ResponseSpec & { | ||
[variable: string]: string[]; | ||
contextVars: { | ||
[variable: string]: string[]; | ||
}; | ||
}>; | ||
@@ -257,3 +259,5 @@ getContextVarNames: (sessionId: string) => Promise<import("./types").ResponseSpec & { | ||
getContextVars: (sessionId: string) => Promise<import("./types").ResponseSpec & { | ||
[variable: string]: string[]; | ||
contextVars: { | ||
[variable: string]: string[]; | ||
}; | ||
}>; | ||
@@ -292,3 +296,3 @@ getContextVarNames: (sessionId: string) => Promise<import("./types").ResponseSpec & { | ||
}; | ||
getTextQualityIndexes: (sessionId: string) => Promise<import("./types").ResponseSpec & { | ||
getTextQualityIndexes: (sessionId: string, timestamp?: string | undefined) => Promise<import("./types").ResponseSpec & { | ||
textQualityIndex: number; | ||
@@ -312,3 +316,3 @@ undefinedWords: string[]; | ||
stats: { | ||
getTextQualityIndexes: (sessionId: string) => Promise<import("./types").ResponseSpec & { | ||
getTextQualityIndexes: (sessionId: string, timestamp?: string | undefined) => Promise<import("./types").ResponseSpec & { | ||
textQualityIndex: number; | ||
@@ -315,0 +319,0 @@ undefinedWords: string[]; |
import { ResponseSpec } from '../types'; | ||
declare const _default: (apiUrl: string) => { | ||
getContextVars: (sessionId: string) => Promise<ResponseSpec & { | ||
[variable: string]: string[]; | ||
contextVars: { | ||
[variable: string]: string[]; | ||
}; | ||
}>; | ||
@@ -6,0 +8,0 @@ getContextVarNames: (sessionId: string) => Promise<ResponseSpec & { |
import { ResponseSpec, Memory, EventLog } from '../types'; | ||
declare const _default: (apiUrl: string) => { | ||
getTextQualityIndexes: (sessionId: string) => Promise<ResponseSpec & { | ||
getTextQualityIndexes: (sessionId: string, timestamp?: string) => Promise<ResponseSpec & { | ||
textQualityIndex: number; | ||
@@ -5,0 +5,0 @@ undefinedWords: string[]; |
@@ -5,3 +5,3 @@ "use strict"; | ||
exports.default = (apiUrl) => ({ | ||
getTextQualityIndexes: async (sessionId) => (0, apiFetcher_1.apiFetcher)(`/TextQualityIndexes/${sessionId}`, { | ||
getTextQualityIndexes: async (sessionId, timestamp) => (0, apiFetcher_1.apiFetcher)(`/TextQualityIndexes/${sessionId}${timestamp ? `/${timestamp}` : ''}`, { | ||
method: 'GET', | ||
@@ -8,0 +8,0 @@ apiUrl, |
@@ -245,3 +245,5 @@ declare const _default: (apiUrl: string) => { | ||
getContextVars: (sessionId: string) => Promise<import("./types").ResponseSpec & { | ||
[variable: string]: string[]; | ||
contextVars: { | ||
[variable: string]: string[]; | ||
}; | ||
}>; | ||
@@ -257,3 +259,5 @@ getContextVarNames: (sessionId: string) => Promise<import("./types").ResponseSpec & { | ||
getContextVars: (sessionId: string) => Promise<import("./types").ResponseSpec & { | ||
[variable: string]: string[]; | ||
contextVars: { | ||
[variable: string]: string[]; | ||
}; | ||
}>; | ||
@@ -292,3 +296,3 @@ getContextVarNames: (sessionId: string) => Promise<import("./types").ResponseSpec & { | ||
}; | ||
getTextQualityIndexes: (sessionId: string) => Promise<import("./types").ResponseSpec & { | ||
getTextQualityIndexes: (sessionId: string, timestamp?: string | undefined) => Promise<import("./types").ResponseSpec & { | ||
textQualityIndex: number; | ||
@@ -312,3 +316,3 @@ undefinedWords: string[]; | ||
stats: { | ||
getTextQualityIndexes: (sessionId: string) => Promise<import("./types").ResponseSpec & { | ||
getTextQualityIndexes: (sessionId: string, timestamp?: string | undefined) => Promise<import("./types").ResponseSpec & { | ||
textQualityIndex: number; | ||
@@ -315,0 +319,0 @@ undefinedWords: string[]; |
import { ResponseSpec } from '../types'; | ||
declare const _default: (apiUrl: string) => { | ||
getContextVars: (sessionId: string) => Promise<ResponseSpec & { | ||
[variable: string]: string[]; | ||
contextVars: { | ||
[variable: string]: string[]; | ||
}; | ||
}>; | ||
@@ -6,0 +8,0 @@ getContextVarNames: (sessionId: string) => Promise<ResponseSpec & { |
import { ResponseSpec, Memory, EventLog } from '../types'; | ||
declare const _default: (apiUrl: string) => { | ||
getTextQualityIndexes: (sessionId: string) => Promise<ResponseSpec & { | ||
getTextQualityIndexes: (sessionId: string, timestamp?: string) => Promise<ResponseSpec & { | ||
textQualityIndex: number; | ||
@@ -5,0 +5,0 @@ undefinedWords: string[]; |
import { apiFetcher } from '../apiFetcher'; | ||
export default (apiUrl) => ({ | ||
getTextQualityIndexes: async (sessionId) => apiFetcher(`/TextQualityIndexes/${sessionId}`, { | ||
getTextQualityIndexes: async (sessionId, timestamp) => apiFetcher(`/TextQualityIndexes/${sessionId}${timestamp ? `/${timestamp}` : ''}`, { | ||
method: 'GET', | ||
@@ -5,0 +5,0 @@ apiUrl, |
{ | ||
"version": "5.4.0", | ||
"version": "5.4.1", | ||
"name": "@memori.ai/memori-api-client", | ||
@@ -4,0 +4,0 @@ "description": "React library to integrate a Memori in your app or website", |
@@ -21,3 +21,5 @@ import { ResponseSpec } from '../types'; | ||
ResponseSpec & { | ||
[variable: string]: string[]; | ||
contextVars: { | ||
[variable: string]: string[]; | ||
}; | ||
} | ||
@@ -24,0 +26,0 @@ >, |
@@ -14,8 +14,12 @@ import { ResponseSpec, Stats, Memory, EventLog } from '../types'; | ||
* @param {string} sessionId - The session ID | ||
* @param {string=} timestamp - The optional latest update timestamp, in UTC time, in the format yyyyMMddHHmmssfff | ||
*/ | ||
getTextQualityIndexes: async (sessionId: string) => | ||
apiFetcher(`/TextQualityIndexes/${sessionId}`, { | ||
method: 'GET', | ||
apiUrl, | ||
}) as Promise< | ||
getTextQualityIndexes: async (sessionId: string, timestamp?: string) => | ||
apiFetcher( | ||
`/TextQualityIndexes/${sessionId}${timestamp ? `/${timestamp}` : ''}`, | ||
{ | ||
method: 'GET', | ||
apiUrl, | ||
} | ||
) as Promise< | ||
ResponseSpec & { | ||
@@ -22,0 +26,0 @@ /** |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
916698
17966