@rizom/brain 0.2.0-alpha.110 → 0.2.0-alpha.112
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/brain.js +1030 -956
- package/dist/entities.d.ts +9 -1
- package/dist/entities.js.map +2 -2
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/plugins.d.ts +53 -2
- package/dist/plugins.js +60 -60
- package/dist/plugins.js.map +7 -7
- package/dist/services.js.map +2 -2
- package/dist/site.js +166 -166
- package/dist/site.js.map +13 -12
- package/package.json +1 -1
package/dist/entities.d.ts
CHANGED
|
@@ -186,17 +186,25 @@ interface CreateCoverImageInput {
|
|
|
186
186
|
prompt?: string | undefined;
|
|
187
187
|
}
|
|
188
188
|
interface CreateFromAttachmentInput {
|
|
189
|
+
kind: "entity-attachment";
|
|
189
190
|
sourceEntityType: string;
|
|
190
191
|
sourceEntityId: string;
|
|
191
192
|
attachmentType: string;
|
|
192
193
|
}
|
|
194
|
+
interface CreateFromUploadInput {
|
|
195
|
+
kind: "web-chat-upload";
|
|
196
|
+
id: string;
|
|
197
|
+
}
|
|
198
|
+
type CreateFromInput = CreateFromAttachmentInput | CreateFromUploadInput;
|
|
199
|
+
type CreateTransform = "extract-markdown";
|
|
193
200
|
interface CreateInput {
|
|
194
201
|
entityType: string;
|
|
195
202
|
prompt?: string;
|
|
196
203
|
title?: string;
|
|
197
204
|
content?: string;
|
|
198
205
|
url?: string;
|
|
199
|
-
from?:
|
|
206
|
+
from?: CreateFromInput;
|
|
207
|
+
transform?: CreateTransform;
|
|
200
208
|
replace?: boolean;
|
|
201
209
|
targetEntityType?: string;
|
|
202
210
|
targetEntityId?: string;
|