@memori.ai/memori-api-client 0.4.1 → 0.4.3
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/engine/memories.d.ts +4 -1
- package/dist/engine/unansweredQuestions.d.ts +1 -1
- package/dist/memori-api-client.cjs.development.js +11 -8
- package/dist/memori-api-client.cjs.development.js.map +1 -1
- package/dist/memori-api-client.cjs.production.min.js +1 -1
- package/dist/memori-api-client.cjs.production.min.js.map +1 -1
- package/dist/memori-api-client.esm.js +11 -8
- package/dist/memori-api-client.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/engine/memories.ts +12 -5
- package/src/engine/unansweredQuestions.ts +1 -1
|
@@ -10,8 +10,11 @@ declare const _default: (apiUrl: string) => {
|
|
|
10
10
|
/**
|
|
11
11
|
* Lists paginated Memory objects.
|
|
12
12
|
* @param {string} sessionId The session ID
|
|
13
|
+
* @param {number} from The starting index
|
|
14
|
+
* @param {number} howMany The number of items to return
|
|
15
|
+
* @param {string=} type Optional type of the Memory objects to list: ALL, CONTENTS, DEFAULTS
|
|
13
16
|
*/
|
|
14
|
-
getMemoriesPaginated: (sessionId: string, from: number, howMany: number) => Promise<ResponseSpec & {
|
|
17
|
+
getMemoriesPaginated: (sessionId: string, from: number, howMany: number, type?: "ALL" | "CONTENTS" | "DEFAULTS" | undefined) => Promise<ResponseSpec & {
|
|
15
18
|
count: number;
|
|
16
19
|
memories: Memory[];
|
|
17
20
|
}>;
|
|
@@ -11,7 +11,7 @@ declare const _default: (apiUrl: string) => {
|
|
|
11
11
|
* Lists paginated Unanswered Question objects.
|
|
12
12
|
* @param {string} sessionId The session ID
|
|
13
13
|
*/
|
|
14
|
-
getUnansweredQuestionsPaginated: (sessionId: string, from: number, howMany:
|
|
14
|
+
getUnansweredQuestionsPaginated: (sessionId: string, from: number, howMany: number) => Promise<ResponseSpec & {
|
|
15
15
|
count: number;
|
|
16
16
|
unansweredQuestions: UnansweredQuestion[];
|
|
17
17
|
}>;
|
|
@@ -2352,14 +2352,17 @@ var memories = (function (apiUrl) {
|
|
|
2352
2352
|
/**
|
|
2353
2353
|
* Lists paginated Memory objects.
|
|
2354
2354
|
* @param {string} sessionId The session ID
|
|
2355
|
+
* @param {number} from The starting index
|
|
2356
|
+
* @param {number} howMany The number of items to return
|
|
2357
|
+
* @param {string=} type Optional type of the Memory objects to list: ALL, CONTENTS, DEFAULTS
|
|
2355
2358
|
*/
|
|
2356
2359
|
getMemoriesPaginated: function () {
|
|
2357
|
-
var _getMemoriesPaginated = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(sessionId, from, howMany) {
|
|
2360
|
+
var _getMemoriesPaginated = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(sessionId, from, howMany, type) {
|
|
2358
2361
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
2359
2362
|
while (1) {
|
|
2360
2363
|
switch (_context2.prev = _context2.next) {
|
|
2361
2364
|
case 0:
|
|
2362
|
-
return _context2.abrupt("return", apiFetcher("/Memories/" + sessionId + "/" + from + "/" + howMany, {
|
|
2365
|
+
return _context2.abrupt("return", apiFetcher("/Memories/" + sessionId + "/" + from + "/" + howMany + (type ? "/" + type : ''), {
|
|
2363
2366
|
method: 'GET',
|
|
2364
2367
|
apiUrl: apiUrl
|
|
2365
2368
|
}));
|
|
@@ -2372,7 +2375,7 @@ var memories = (function (apiUrl) {
|
|
|
2372
2375
|
}, _callee2);
|
|
2373
2376
|
}));
|
|
2374
2377
|
|
|
2375
|
-
function getMemoriesPaginated(_x2, _x3, _x4) {
|
|
2378
|
+
function getMemoriesPaginated(_x2, _x3, _x4, _x5) {
|
|
2376
2379
|
return _getMemoriesPaginated.apply(this, arguments);
|
|
2377
2380
|
}
|
|
2378
2381
|
|
|
@@ -2403,7 +2406,7 @@ var memories = (function (apiUrl) {
|
|
|
2403
2406
|
}, _callee3);
|
|
2404
2407
|
}));
|
|
2405
2408
|
|
|
2406
|
-
function getMemory(
|
|
2409
|
+
function getMemory(_x6, _x7) {
|
|
2407
2410
|
return _getMemory.apply(this, arguments);
|
|
2408
2411
|
}
|
|
2409
2412
|
|
|
@@ -2435,7 +2438,7 @@ var memories = (function (apiUrl) {
|
|
|
2435
2438
|
}, _callee4);
|
|
2436
2439
|
}));
|
|
2437
2440
|
|
|
2438
|
-
function patchMemory(
|
|
2441
|
+
function patchMemory(_x8, _x9) {
|
|
2439
2442
|
return _patchMemory.apply(this, arguments);
|
|
2440
2443
|
}
|
|
2441
2444
|
|
|
@@ -2466,7 +2469,7 @@ var memories = (function (apiUrl) {
|
|
|
2466
2469
|
}, _callee5);
|
|
2467
2470
|
}));
|
|
2468
2471
|
|
|
2469
|
-
function deleteMemory(
|
|
2472
|
+
function deleteMemory(_x10, _x11) {
|
|
2470
2473
|
return _deleteMemory.apply(this, arguments);
|
|
2471
2474
|
}
|
|
2472
2475
|
|
|
@@ -2498,7 +2501,7 @@ var memories = (function (apiUrl) {
|
|
|
2498
2501
|
}, _callee6);
|
|
2499
2502
|
}));
|
|
2500
2503
|
|
|
2501
|
-
function postMemory(
|
|
2504
|
+
function postMemory(_x12, _x13) {
|
|
2502
2505
|
return _postMemory.apply(this, arguments);
|
|
2503
2506
|
}
|
|
2504
2507
|
|
|
@@ -2529,7 +2532,7 @@ var memories = (function (apiUrl) {
|
|
|
2529
2532
|
}, _callee7);
|
|
2530
2533
|
}));
|
|
2531
2534
|
|
|
2532
|
-
function getMemoryAccess(
|
|
2535
|
+
function getMemoryAccess(_x14, _x15) {
|
|
2533
2536
|
return _getMemoryAccess.apply(this, arguments);
|
|
2534
2537
|
}
|
|
2535
2538
|
|