@memori.ai/memori-api-client
Advanced tools
Comparing version 2.0.0 to 2.1.0
## [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 @@ |
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
644812
12397
5