Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@memori.ai/memori-api-client

Package Overview
Dependencies
Maintainers
2
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@memori.ai/memori-api-client - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

7

CHANGELOG.md
## [2.1.0](https://github.com/memori-ai/memori-api-client/compare/v2.0.0...v2.1.0) (2023-04-14)
### Features
* add new memori and user attributes ([40e6d16](https://github.com/memori-ai/memori-api-client/commit/40e6d16a56912a5add579ed5ad5245fce8ff0eea))
## [2.0.0](https://github.com/memori-ai/memori-api-client/compare/v1.2.0...v2.0.0) (2023-03-25)

@@ -4,0 +11,0 @@

6

dist/engine/search.test.js

@@ -5,11 +5,11 @@ "use strict";

const index_1 = tslib_1.__importDefault(require("../index"));
const client = (0, index_1.default)('https://backend.memori.ai');
const client = (0, index_1.default)('https://backend-staging.memori.ai');
describe('engine/search api', () => {
it('works on search apis', async () => {
expect(await client.search.postRandom('768b9654-e781-4c3c-81fa-ae1529d1bfbe')).not.toBeNull();
expect(await client.search.searchMemory('768b9654-e781-4c3c-81fa-ae1529d1bfbe')).not.toBeNull();
});
it('works on search apis with shorthand version', async () => {
expect(await client.postRandom('768b9654-e781-4c3c-81fa-ae1529d1bfbe')).not.toBeNull();
expect(await client.searchMemory('768b9654-e781-4c3c-81fa-ae1529d1bfbe')).not.toBeNull();
});
});
//# sourceMappingURL=search.test.js.map
import memori from '../index';
const client = memori('https://backend.memori.ai');
const client = memori('https://backend-staging.memori.ai');
describe('engine/search api', () => {
it('works on search apis', async () => {
expect(await client.search.postRandom('768b9654-e781-4c3c-81fa-ae1529d1bfbe')).not.toBeNull();
expect(await client.search.searchMemory('768b9654-e781-4c3c-81fa-ae1529d1bfbe')).not.toBeNull();
});
it('works on search apis with shorthand version', async () => {
expect(await client.postRandom('768b9654-e781-4c3c-81fa-ae1529d1bfbe')).not.toBeNull();
expect(await client.searchMemory('768b9654-e781-4c3c-81fa-ae1529d1bfbe')).not.toBeNull();
});
});
//# sourceMappingURL=search.test.js.map
{
"version": "2.0.0",
"version": "2.1.0",
"name": "@memori.ai/memori-api-client",

@@ -4,0 +4,0 @@ "description": "React library to integrate a Memori in your app or website",

import memori from '../index';
const client = memori('https://backend.memori.ai');
// FIXME: switch back to production when backend fixes request processing issue
const client = memori('https://backend-staging.memori.ai');

@@ -8,3 +9,3 @@ describe('engine/search api', () => {

expect(
await client.search.postRandom('768b9654-e781-4c3c-81fa-ae1529d1bfbe')
await client.search.searchMemory('768b9654-e781-4c3c-81fa-ae1529d1bfbe')
).not.toBeNull();

@@ -15,5 +16,5 @@ });

expect(
await client.postRandom('768b9654-e781-4c3c-81fa-ae1529d1bfbe')
await client.searchMemory('768b9654-e781-4c3c-81fa-ae1529d1bfbe')
).not.toBeNull();
});
});

@@ -63,2 +63,4 @@ export declare type Error = {

exposed?: boolean;
ageRescrition?: number;
nsfw?: boolean;
disableR2R3Loop?: boolean;

@@ -152,2 +154,6 @@ disableR4Loop?: boolean;

notificationPrefs?: NotificationPrefs[];
birthDate?: string;
age?: integer;
tnCAndPPAccepted?: boolean;
tnCAndPPAcceptanceDate?: string;
};

@@ -226,3 +232,3 @@

export declare type TenantConfig = {
export type TenantConfig = {
name: string;

@@ -234,6 +240,10 @@ showNewUser: boolean;

export declare type Tenant = {
id: string;
theme: string;
config: TenantConfig;
export type TenantBase = {
tenantID?: string;
name?: string;
description?: string;
logoURL?: string;
adminCount?: number;
userCount?: number;
memoriCount?: number;
disableRegistration?: boolean;

@@ -243,12 +253,4 @@ maxMemoriPerAdmin?: number;

maxTotalMemori?: number;
memoriCount?: number;
maxAdmins?: number;
adminCount?: number;
maxUsers?: number;
userCount?: number;
usersCanCreateMemori?: boolean;
usersCanAccessAPI?: boolean;
usersCanEditIntegrations?: boolean;
usersCanEditDynamicIntents?: boolean;
usersCanEditMemoriChaining?: boolean;
maxFreeSessions?: number;

@@ -260,4 +262,18 @@ maxFreeSessionsPerUser?: number;

paying?: boolean;
usersCanCreateMemori?: boolean;
usersCanAccessAPI?: boolean;
usersCanEditIntegrations?: boolean;
usersCanEditDynamicIntents?: boolean;
usersCanEditMemoriChaining?: boolean;
usersCanRunSnippets?: boolean;
creationTimestamp?: string;
lastChangeTimestamp?: string;
};
export type Tenant = TenantBase & {
id: string;
theme: string;
config: TenantConfig;
};
export declare type OpenSession = {

@@ -271,2 +287,4 @@ memoriID: string;

initialQuestion?: string;
forceCloseSessions?: boolean;
birthDate?: string;
};

@@ -273,0 +291,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc