@memori.ai/memori-api-client 0.4.6 → 0.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/dist/types.d.ts CHANGED
@@ -47,6 +47,8 @@ export declare type Memori = {
47
47
  publishedInTheMetaverse?: boolean;
48
48
  metaverseEnvironment?: string;
49
49
  exposed?: boolean;
50
+ disableR2R3Loop?: boolean;
51
+ disableR4Loop?: boolean;
50
52
  properties?: {
51
53
  [key: string]: any;
52
54
  };
@@ -291,6 +293,7 @@ export declare type DialogState = {
291
293
  acceptsPlace?: boolean;
292
294
  acceptsTag?: boolean;
293
295
  hints?: string[];
296
+ timeout?: number;
294
297
  translatedHints?: TranslatedHint[];
295
298
  currentTag?: string;
296
299
  currentDate?: string;
@@ -414,6 +417,8 @@ export declare type Memory = {
414
417
  conclusive?: boolean;
415
418
  help?: boolean;
416
419
  notPickable?: boolean;
420
+ minTimeout?: number;
421
+ maxTimeout?: number;
417
422
  contextVarsToSet?: {
418
423
  [variable: string]: string;
419
424
  };
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "0.4.6",
2
+ "version": "0.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",
@@ -18,7 +18,10 @@
18
18
  "typings": "dist/index.d.ts",
19
19
  "files": [
20
20
  "dist",
21
- "src"
21
+ "src",
22
+ "README.md",
23
+ "LICENSE",
24
+ "CHANGELOG.md"
22
25
  ],
23
26
  "engines": {
24
27
  "node": ">=14"
@@ -243,4 +243,16 @@ export default (apiUrl: string) => ({
243
243
  body: memori,
244
244
  method: 'POST',
245
245
  }) as Promise<ResponseSpec>,
246
+
247
+ /**
248
+ * Signals that the content of a Memori object has been updated.
249
+ * Consequently, a run of the Content Quality Job will be scheduled as soon as possible.
250
+ * @param {string} authToken - The login token
251
+ * @param {string} memoriID - The ID of the Memori object
252
+ */
253
+ memoriContentUpdated: (authToken: string, memoriID: string) =>
254
+ apiFetcher(`/MemoriContentUpdated/${authToken}/${memoriID}`, {
255
+ apiUrl,
256
+ method: 'POST',
257
+ }) as Promise<ResponseSpec>,
246
258
  });
package/src/types.ts CHANGED
@@ -46,6 +46,8 @@ export declare type Memori = {
46
46
  publishedInTheMetaverse?: boolean;
47
47
  metaverseEnvironment?: string;
48
48
  exposed?: boolean;
49
+ disableR2R3Loop?: boolean;
50
+ disableR4Loop?: boolean;
49
51
  properties?: { [key: string]: any };
50
52
  creationTimestamp?: string;
51
53
  lastChangeTimestamp?: string;
@@ -320,6 +322,7 @@ export declare type DialogState = {
320
322
  acceptsPlace?: boolean;
321
323
  acceptsTag?: boolean;
322
324
  hints?: string[];
325
+ timeout?: number;
323
326
  translatedHints?: TranslatedHint[];
324
327
  currentTag?: string;
325
328
  currentDate?: string;
@@ -449,6 +452,8 @@ export declare type Memory = {
449
452
  conclusive?: boolean;
450
453
  help?: boolean;
451
454
  notPickable?: boolean;
455
+ minTimeout?: number;
456
+ maxTimeout?: number;
452
457
  contextVarsToSet?: { [variable: string]: string };
453
458
  contextVarsToMatch?: { [variable: string]: string };
454
459
  creationTimestamp?: string;