@memori.ai/memori-api-client 0.4.2 → 0.4.4
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/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
|
@@ -2346,14 +2346,17 @@ var memories = (function (apiUrl) {
|
|
|
2346
2346
|
/**
|
|
2347
2347
|
* Lists paginated Memory objects.
|
|
2348
2348
|
* @param {string} sessionId The session ID
|
|
2349
|
+
* @param {number} from The starting index
|
|
2350
|
+
* @param {number} howMany The number of items to return
|
|
2351
|
+
* @param {string=} type Optional type of the Memory objects to list: ALL, CONTENTS, DEFAULTS
|
|
2349
2352
|
*/
|
|
2350
2353
|
getMemoriesPaginated: function () {
|
|
2351
|
-
var _getMemoriesPaginated = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(sessionId, from, howMany) {
|
|
2354
|
+
var _getMemoriesPaginated = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(sessionId, from, howMany, type) {
|
|
2352
2355
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
2353
2356
|
while (1) {
|
|
2354
2357
|
switch (_context2.prev = _context2.next) {
|
|
2355
2358
|
case 0:
|
|
2356
|
-
return _context2.abrupt("return", apiFetcher("/Memories/" + sessionId + "/" + from + "/" + howMany, {
|
|
2359
|
+
return _context2.abrupt("return", apiFetcher("/Memories/" + sessionId + "/" + from + "/" + howMany + (type ? "/" + type : ''), {
|
|
2357
2360
|
method: 'GET',
|
|
2358
2361
|
apiUrl: apiUrl
|
|
2359
2362
|
}));
|
|
@@ -2366,7 +2369,7 @@ var memories = (function (apiUrl) {
|
|
|
2366
2369
|
}, _callee2);
|
|
2367
2370
|
}));
|
|
2368
2371
|
|
|
2369
|
-
function getMemoriesPaginated(_x2, _x3, _x4) {
|
|
2372
|
+
function getMemoriesPaginated(_x2, _x3, _x4, _x5) {
|
|
2370
2373
|
return _getMemoriesPaginated.apply(this, arguments);
|
|
2371
2374
|
}
|
|
2372
2375
|
|
|
@@ -2397,7 +2400,7 @@ var memories = (function (apiUrl) {
|
|
|
2397
2400
|
}, _callee3);
|
|
2398
2401
|
}));
|
|
2399
2402
|
|
|
2400
|
-
function getMemory(
|
|
2403
|
+
function getMemory(_x6, _x7) {
|
|
2401
2404
|
return _getMemory.apply(this, arguments);
|
|
2402
2405
|
}
|
|
2403
2406
|
|
|
@@ -2429,7 +2432,7 @@ var memories = (function (apiUrl) {
|
|
|
2429
2432
|
}, _callee4);
|
|
2430
2433
|
}));
|
|
2431
2434
|
|
|
2432
|
-
function patchMemory(
|
|
2435
|
+
function patchMemory(_x8, _x9) {
|
|
2433
2436
|
return _patchMemory.apply(this, arguments);
|
|
2434
2437
|
}
|
|
2435
2438
|
|
|
@@ -2460,7 +2463,7 @@ var memories = (function (apiUrl) {
|
|
|
2460
2463
|
}, _callee5);
|
|
2461
2464
|
}));
|
|
2462
2465
|
|
|
2463
|
-
function deleteMemory(
|
|
2466
|
+
function deleteMemory(_x10, _x11) {
|
|
2464
2467
|
return _deleteMemory.apply(this, arguments);
|
|
2465
2468
|
}
|
|
2466
2469
|
|
|
@@ -2492,7 +2495,7 @@ var memories = (function (apiUrl) {
|
|
|
2492
2495
|
}, _callee6);
|
|
2493
2496
|
}));
|
|
2494
2497
|
|
|
2495
|
-
function postMemory(
|
|
2498
|
+
function postMemory(_x12, _x13) {
|
|
2496
2499
|
return _postMemory.apply(this, arguments);
|
|
2497
2500
|
}
|
|
2498
2501
|
|
|
@@ -2523,7 +2526,7 @@ var memories = (function (apiUrl) {
|
|
|
2523
2526
|
}, _callee7);
|
|
2524
2527
|
}));
|
|
2525
2528
|
|
|
2526
|
-
function getMemoryAccess(
|
|
2529
|
+
function getMemoryAccess(_x14, _x15) {
|
|
2527
2530
|
return _getMemoryAccess.apply(this, arguments);
|
|
2528
2531
|
}
|
|
2529
2532
|
|