@builder.io/ai-utils 0.4.15 → 0.4.16
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/package.json +1 -1
- package/src/messages.d.ts +9 -1
package/package.json
CHANGED
package/src/messages.d.ts
CHANGED
|
@@ -241,7 +241,7 @@ export type Message = SystemMessage | UserMessage | AssistantMessage;
|
|
|
241
241
|
export type GeneratingMessage = null | Partial<AssistantActionMessage | AssistantMessage>;
|
|
242
242
|
export declare function getContentText(message: string | ContentMessage): string;
|
|
243
243
|
export declare function getContentAttachments(message: string | ContentMessage): (ImageBase64Source | ImageUrlSource)[];
|
|
244
|
-
export type Attachment = FileUpload | Template | URL;
|
|
244
|
+
export type Attachment = FileUpload | Template | URL | BuilderContentAttachment | FigmaContentAttachment;
|
|
245
245
|
export interface URL {
|
|
246
246
|
type: "url";
|
|
247
247
|
value: string;
|
|
@@ -261,3 +261,11 @@ export interface Template {
|
|
|
261
261
|
name: string;
|
|
262
262
|
id: number;
|
|
263
263
|
}
|
|
264
|
+
export interface BuilderContentAttachment {
|
|
265
|
+
type: "builder";
|
|
266
|
+
html: string;
|
|
267
|
+
}
|
|
268
|
+
export interface FigmaContentAttachment {
|
|
269
|
+
type: "figma";
|
|
270
|
+
html: string;
|
|
271
|
+
}
|