@memori.ai/memori-api-client 5.5.0 → 5.6.0

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 CHANGED
@@ -1,5 +1,20 @@
1
1
 
2
2
 
3
+ ## [5.6.0](https://github.com/memori-ai/memori-api-client/compare/v5.5.1...v5.6.0) (2025-02-28)
4
+
5
+
6
+ ### Features
7
+
8
+ * add optional obfuscation flag to macro function type ([bfc0c0e](https://github.com/memori-ai/memori-api-client/commit/bfc0c0e623f70ddde7b6981a51d7bcca10a9fc2e))
9
+ * support multilingual descriptions for macro functions ([ac063a8](https://github.com/memori-ai/memori-api-client/commit/ac063a872c0433f3c3c6a7cac93520e04203803c))
10
+
11
+ ## [5.5.1](https://github.com/memori-ai/memori-api-client/compare/v5.5.0...v5.5.1) (2025-02-25)
12
+
13
+
14
+ ### Bug Fixes
15
+
16
+ * typo in analysis query pathname ([be4a71f](https://github.com/memori-ai/memori-api-client/commit/be4a71f87248171ac2775ed0b4251a4ff8488470))
17
+
3
18
  ## [5.5.0](https://github.com/memori-ai/memori-api-client/compare/v5.4.2...v5.5.0) (2025-01-30)
4
19
 
5
20
 
@@ -9,7 +9,7 @@ exports.default = (apiUrl) => ({
9
9
  ...params,
10
10
  },
11
11
  }),
12
- getUserQueryMatches: async (authToken, analysisID, from, howMany, threshold) => (0, apiFetcher_1.apiFetcher)(`/Analysis/AnalyzeUserQuery/${authToken}/${analysisID}/${from}/${howMany}${threshold ? `/${threshold}` : ''}`, {
12
+ getUserQueryMatches: async (authToken, analysisID, from, howMany, threshold) => (0, apiFetcher_1.apiFetcher)(`/Analysis/UserQueryMatches/${authToken}/${analysisID}/${from}/${howMany}${threshold ? `/${threshold}` : ''}`, {
13
13
  apiUrl,
14
14
  method: 'GET',
15
15
  }),
package/dist/types.d.ts CHANGED
@@ -954,9 +954,14 @@ export declare type ConsumptionData = {
954
954
  };
955
955
  export declare type MacroFunction = {
956
956
  name: string;
957
- description: string;
957
+ descriptions: {
958
+ [key: string]: string;
959
+ };
958
960
  macroParameters?: {
959
961
  name: string;
960
- description: string;
962
+ descriptions: {
963
+ [key: string]: string;
964
+ };
965
+ obfuscated?: boolean;
961
966
  }[];
962
967
  };
@@ -7,7 +7,7 @@ export default (apiUrl) => ({
7
7
  ...params,
8
8
  },
9
9
  }),
10
- getUserQueryMatches: async (authToken, analysisID, from, howMany, threshold) => apiFetcher(`/Analysis/AnalyzeUserQuery/${authToken}/${analysisID}/${from}/${howMany}${threshold ? `/${threshold}` : ''}`, {
10
+ getUserQueryMatches: async (authToken, analysisID, from, howMany, threshold) => apiFetcher(`/Analysis/UserQueryMatches/${authToken}/${analysisID}/${from}/${howMany}${threshold ? `/${threshold}` : ''}`, {
11
11
  apiUrl,
12
12
  method: 'GET',
13
13
  }),
package/esm/types.d.ts CHANGED
@@ -954,9 +954,14 @@ export declare type ConsumptionData = {
954
954
  };
955
955
  export declare type MacroFunction = {
956
956
  name: string;
957
- description: string;
957
+ descriptions: {
958
+ [key: string]: string;
959
+ };
958
960
  macroParameters?: {
959
961
  name: string;
960
- description: string;
962
+ descriptions: {
963
+ [key: string]: string;
964
+ };
965
+ obfuscated?: boolean;
961
966
  }[];
962
967
  };
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.5.0",
2
+ "version": "5.6.0",
3
3
  "name": "@memori.ai/memori-api-client",
4
4
  "description": "React library to integrate a Memori in your app or website",
5
5
  "license": "Apache-2.0",
@@ -46,7 +46,7 @@ export default (apiUrl: string) => ({
46
46
  threshold?: number
47
47
  ) =>
48
48
  apiFetcher(
49
- `/Analysis/AnalyzeUserQuery/${authToken}/${analysisID}/${from}/${howMany}${
49
+ `/Analysis/UserQueryMatches/${authToken}/${analysisID}/${from}/${howMany}${
50
50
  threshold ? `/${threshold}` : ''
51
51
  }`,
52
52
  {
package/src/types.ts CHANGED
@@ -1873,9 +1873,14 @@ export declare type ConsumptionData = {
1873
1873
 
1874
1874
  export declare type MacroFunction = {
1875
1875
  name: string;
1876
- description: string;
1876
+ descriptions: {
1877
+ [key: string]: string;
1878
+ };
1877
1879
  macroParameters?: {
1878
- name: string;
1879
- description: string;
1880
+ name: string;
1881
+ descriptions: {
1882
+ [key: string]: string;
1883
+ };
1884
+ obfuscated?: boolean;
1880
1885
  }[];
1881
1886
  };