@builder.io/ai-utils 0.0.19 → 0.0.20
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/events.d.ts +10 -2
- package/package.json +1 -1
package/dist/events.d.ts
CHANGED
|
@@ -74,9 +74,17 @@ export interface ContentCreatePatch {
|
|
|
74
74
|
element: BuilderElement;
|
|
75
75
|
}
|
|
76
76
|
export interface ContentApplySnapshot {
|
|
77
|
+
/**
|
|
78
|
+
* The id of the BuilderContent to apply the snapshot to
|
|
79
|
+
*/
|
|
77
80
|
id: string;
|
|
78
|
-
|
|
79
|
-
|
|
81
|
+
/**
|
|
82
|
+
* Each snapshot can be either a full BuilderContent or individual BuilderElements.
|
|
83
|
+
* Order matters, as the snapshots will be applied in the order they are listed.
|
|
84
|
+
* The builder app will handle the logic of applying the snapshots in the correct order
|
|
85
|
+
* and to the right content/elements.
|
|
86
|
+
*/
|
|
87
|
+
snapshots: (BuilderElement | BuilderContent)[];
|
|
80
88
|
}
|
|
81
89
|
export interface ContentApplySnapshotEvent {
|
|
82
90
|
type: "assistant.content.applysnapshot";
|