@rizom/brain 0.2.0-alpha.111 → 0.2.0-alpha.113

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.
@@ -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?: CreateFromAttachmentInput;
206
+ from?: CreateFromInput;
207
+ transform?: CreateTransform;
200
208
  replace?: boolean;
201
209
  targetEntityType?: string;
202
210
  targetEntityId?: string;