@memori.ai/memori-api-client 2.1.0 → 2.1.1
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/CHANGELOG.md +8 -0
- package/dist/types.d.ts +30 -13
- package/esm/types.d.ts +30 -13
- package/package.json +2 -2
- package/src/{types.d.ts → types.ts} +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
+
## [2.1.1](https://github.com/memori-ai/memori-api-client/compare/v2.1.0...v2.1.1) (2023-04-14)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Maintenance
|
|
7
|
+
|
|
8
|
+
* setup types for build ([d7e7203](https://github.com/memori-ai/memori-api-client/commit/d7e7203f5d2cd3b93e5ca1889147703c218231eb))
|
|
9
|
+
* setup types for build ([2527080](https://github.com/memori-ai/memori-api-client/commit/25270801e8d777ee03d8a3577213609fc8d841ef))
|
|
10
|
+
|
|
3
11
|
## [2.1.0](https://github.com/memori-ai/memori-api-client/compare/v2.0.0...v2.1.0) (2023-04-14)
|
|
4
12
|
|
|
5
13
|
|
package/dist/types.d.ts
CHANGED
|
@@ -49,6 +49,8 @@ export declare type Memori = {
|
|
|
49
49
|
publishedInTheMetaverse?: boolean;
|
|
50
50
|
metaverseEnvironment?: string;
|
|
51
51
|
exposed?: boolean;
|
|
52
|
+
ageRescrition?: number;
|
|
53
|
+
nsfw?: boolean;
|
|
52
54
|
disableR2R3Loop?: boolean;
|
|
53
55
|
disableR4Loop?: boolean;
|
|
54
56
|
disableR5Loop?: boolean;
|
|
@@ -116,6 +118,10 @@ export declare type User = {
|
|
|
116
118
|
couponCode?: string;
|
|
117
119
|
paying?: boolean;
|
|
118
120
|
notificationPrefs?: NotificationPrefs[];
|
|
121
|
+
birthDate?: string;
|
|
122
|
+
age?: number;
|
|
123
|
+
tnCAndPPAccepted?: boolean;
|
|
124
|
+
tnCAndPPAcceptanceDate?: string;
|
|
119
125
|
};
|
|
120
126
|
export declare type IntegrationResource = {
|
|
121
127
|
name: string;
|
|
@@ -169,36 +175,45 @@ export interface UploadFile<T = any> {
|
|
|
169
175
|
xhr?: T;
|
|
170
176
|
preview?: string;
|
|
171
177
|
}
|
|
172
|
-
export
|
|
178
|
+
export type TenantConfig = {
|
|
173
179
|
name: string;
|
|
174
180
|
showNewUser: boolean;
|
|
175
181
|
requirePosition: boolean;
|
|
176
182
|
feedbackURL?: string;
|
|
177
183
|
};
|
|
178
|
-
export
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
184
|
+
export type TenantBase = {
|
|
185
|
+
tenantID?: string;
|
|
186
|
+
name?: string;
|
|
187
|
+
description?: string;
|
|
188
|
+
logoURL?: string;
|
|
189
|
+
adminCount?: number;
|
|
190
|
+
userCount?: number;
|
|
191
|
+
memoriCount?: number;
|
|
182
192
|
disableRegistration?: boolean;
|
|
183
193
|
maxMemoriPerAdmin?: number;
|
|
184
194
|
maxMemoriPerUser?: number;
|
|
185
195
|
maxTotalMemori?: number;
|
|
186
|
-
memoriCount?: number;
|
|
187
196
|
maxAdmins?: number;
|
|
188
|
-
adminCount?: number;
|
|
189
197
|
maxUsers?: number;
|
|
190
|
-
userCount?: number;
|
|
191
|
-
usersCanCreateMemori?: boolean;
|
|
192
|
-
usersCanAccessAPI?: boolean;
|
|
193
|
-
usersCanEditIntegrations?: boolean;
|
|
194
|
-
usersCanEditDynamicIntents?: boolean;
|
|
195
|
-
usersCanEditMemoriChaining?: boolean;
|
|
196
198
|
maxFreeSessions?: number;
|
|
197
199
|
maxFreeSessionsPerUser?: number;
|
|
198
200
|
nonFreeSessionCost?: number;
|
|
199
201
|
maxCompletions?: number;
|
|
200
202
|
maxCompletionsPerUser?: number;
|
|
201
203
|
paying?: boolean;
|
|
204
|
+
usersCanCreateMemori?: boolean;
|
|
205
|
+
usersCanAccessAPI?: boolean;
|
|
206
|
+
usersCanEditIntegrations?: boolean;
|
|
207
|
+
usersCanEditDynamicIntents?: boolean;
|
|
208
|
+
usersCanEditMemoriChaining?: boolean;
|
|
209
|
+
usersCanRunSnippets?: boolean;
|
|
210
|
+
creationTimestamp?: string;
|
|
211
|
+
lastChangeTimestamp?: string;
|
|
212
|
+
};
|
|
213
|
+
export type Tenant = TenantBase & {
|
|
214
|
+
id: string;
|
|
215
|
+
theme: string;
|
|
216
|
+
config: TenantConfig;
|
|
202
217
|
};
|
|
203
218
|
export declare type OpenSession = {
|
|
204
219
|
memoriID: string;
|
|
@@ -210,6 +225,8 @@ export declare type OpenSession = {
|
|
|
210
225
|
[key: string]: string;
|
|
211
226
|
};
|
|
212
227
|
initialQuestion?: string;
|
|
228
|
+
forceCloseSessions?: boolean;
|
|
229
|
+
birthDate?: string;
|
|
213
230
|
};
|
|
214
231
|
export declare type MemoriSession = {
|
|
215
232
|
sessionID: string;
|
package/esm/types.d.ts
CHANGED
|
@@ -49,6 +49,8 @@ export declare type Memori = {
|
|
|
49
49
|
publishedInTheMetaverse?: boolean;
|
|
50
50
|
metaverseEnvironment?: string;
|
|
51
51
|
exposed?: boolean;
|
|
52
|
+
ageRescrition?: number;
|
|
53
|
+
nsfw?: boolean;
|
|
52
54
|
disableR2R3Loop?: boolean;
|
|
53
55
|
disableR4Loop?: boolean;
|
|
54
56
|
disableR5Loop?: boolean;
|
|
@@ -116,6 +118,10 @@ export declare type User = {
|
|
|
116
118
|
couponCode?: string;
|
|
117
119
|
paying?: boolean;
|
|
118
120
|
notificationPrefs?: NotificationPrefs[];
|
|
121
|
+
birthDate?: string;
|
|
122
|
+
age?: number;
|
|
123
|
+
tnCAndPPAccepted?: boolean;
|
|
124
|
+
tnCAndPPAcceptanceDate?: string;
|
|
119
125
|
};
|
|
120
126
|
export declare type IntegrationResource = {
|
|
121
127
|
name: string;
|
|
@@ -169,36 +175,45 @@ export interface UploadFile<T = any> {
|
|
|
169
175
|
xhr?: T;
|
|
170
176
|
preview?: string;
|
|
171
177
|
}
|
|
172
|
-
export
|
|
178
|
+
export type TenantConfig = {
|
|
173
179
|
name: string;
|
|
174
180
|
showNewUser: boolean;
|
|
175
181
|
requirePosition: boolean;
|
|
176
182
|
feedbackURL?: string;
|
|
177
183
|
};
|
|
178
|
-
export
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
184
|
+
export type TenantBase = {
|
|
185
|
+
tenantID?: string;
|
|
186
|
+
name?: string;
|
|
187
|
+
description?: string;
|
|
188
|
+
logoURL?: string;
|
|
189
|
+
adminCount?: number;
|
|
190
|
+
userCount?: number;
|
|
191
|
+
memoriCount?: number;
|
|
182
192
|
disableRegistration?: boolean;
|
|
183
193
|
maxMemoriPerAdmin?: number;
|
|
184
194
|
maxMemoriPerUser?: number;
|
|
185
195
|
maxTotalMemori?: number;
|
|
186
|
-
memoriCount?: number;
|
|
187
196
|
maxAdmins?: number;
|
|
188
|
-
adminCount?: number;
|
|
189
197
|
maxUsers?: number;
|
|
190
|
-
userCount?: number;
|
|
191
|
-
usersCanCreateMemori?: boolean;
|
|
192
|
-
usersCanAccessAPI?: boolean;
|
|
193
|
-
usersCanEditIntegrations?: boolean;
|
|
194
|
-
usersCanEditDynamicIntents?: boolean;
|
|
195
|
-
usersCanEditMemoriChaining?: boolean;
|
|
196
198
|
maxFreeSessions?: number;
|
|
197
199
|
maxFreeSessionsPerUser?: number;
|
|
198
200
|
nonFreeSessionCost?: number;
|
|
199
201
|
maxCompletions?: number;
|
|
200
202
|
maxCompletionsPerUser?: number;
|
|
201
203
|
paying?: boolean;
|
|
204
|
+
usersCanCreateMemori?: boolean;
|
|
205
|
+
usersCanAccessAPI?: boolean;
|
|
206
|
+
usersCanEditIntegrations?: boolean;
|
|
207
|
+
usersCanEditDynamicIntents?: boolean;
|
|
208
|
+
usersCanEditMemoriChaining?: boolean;
|
|
209
|
+
usersCanRunSnippets?: boolean;
|
|
210
|
+
creationTimestamp?: string;
|
|
211
|
+
lastChangeTimestamp?: string;
|
|
212
|
+
};
|
|
213
|
+
export type Tenant = TenantBase & {
|
|
214
|
+
id: string;
|
|
215
|
+
theme: string;
|
|
216
|
+
config: TenantConfig;
|
|
202
217
|
};
|
|
203
218
|
export declare type OpenSession = {
|
|
204
219
|
memoriID: string;
|
|
@@ -210,6 +225,8 @@ export declare type OpenSession = {
|
|
|
210
225
|
[key: string]: string;
|
|
211
226
|
};
|
|
212
227
|
initialQuestion?: string;
|
|
228
|
+
forceCloseSessions?: boolean;
|
|
229
|
+
birthDate?: string;
|
|
213
230
|
};
|
|
214
231
|
export declare type MemoriSession = {
|
|
215
232
|
sessionID: string;
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "2.1.
|
|
2
|
+
"version": "2.1.1",
|
|
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",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"author": "Memori Srl",
|
|
21
21
|
"main": "dist/index.js",
|
|
22
22
|
"module": "esm/index.js",
|
|
23
|
-
"types": "dist/
|
|
23
|
+
"types": "dist/types.d.ts",
|
|
24
24
|
"files": [
|
|
25
25
|
"dist",
|
|
26
26
|
"esm",
|