@builder.io/ai-utils 0.0.49 → 0.0.51
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 +8 -2
- package/package.json +1 -1
package/dist/events.d.ts
CHANGED
|
@@ -98,7 +98,7 @@ export interface ContentUpdateEvent {
|
|
|
98
98
|
type: "assistant.content.update";
|
|
99
99
|
data: ContentUpdatePatch[];
|
|
100
100
|
}
|
|
101
|
-
export type ContentUpdatePatch = ContentInsertBeforePatch | ContentInsertAfterPatch | ContentPropsUpdatePatch | ContentSetChildrenPatch | ContentStyleUpdatePatch | ContentDeletePatch | ContentSetStorePatch | ContentSetMountPatch | ContentMovePatch | ContentMoveAfterPatch | ContentMoveBeforePatch;
|
|
101
|
+
export type ContentUpdatePatch = ContentTsCodePatch | ContentInsertBeforePatch | ContentInsertAfterPatch | ContentPropsUpdatePatch | ContentSetChildrenPatch | ContentStyleUpdatePatch | ContentDeletePatch | ContentSetStorePatch | ContentSetMountPatch | ContentMovePatch | ContentMoveAfterPatch | ContentMoveBeforePatch;
|
|
102
102
|
export interface NodeData {
|
|
103
103
|
/**
|
|
104
104
|
* When dealing with column nodes we need to store the column index so
|
|
@@ -108,6 +108,7 @@ export interface NodeData {
|
|
|
108
108
|
}
|
|
109
109
|
interface ContentPatchBase {
|
|
110
110
|
id: string;
|
|
111
|
+
builderId?: string;
|
|
111
112
|
description?: string;
|
|
112
113
|
index: number;
|
|
113
114
|
value: string;
|
|
@@ -122,11 +123,16 @@ interface ContentPatchBase {
|
|
|
122
123
|
*/
|
|
123
124
|
incomplete?: boolean;
|
|
124
125
|
}
|
|
126
|
+
export interface ContentTsCodePatch extends ContentPatchBase {
|
|
127
|
+
type: "ts_code";
|
|
128
|
+
}
|
|
125
129
|
export interface ContentInsertBeforePatch extends ContentPatchBase {
|
|
126
130
|
type: "insert_before";
|
|
131
|
+
snapshotBuilderId?: string;
|
|
127
132
|
}
|
|
128
133
|
export interface ContentInsertAfterPatch extends ContentPatchBase {
|
|
129
134
|
type: "insert_after";
|
|
135
|
+
snapshotBuilderId?: string;
|
|
130
136
|
}
|
|
131
137
|
export interface ContentPropsUpdatePatch extends ContentPatchBase {
|
|
132
138
|
type: "props";
|
|
@@ -136,6 +142,7 @@ export interface ContentStyleUpdatePatch extends ContentPatchBase {
|
|
|
136
142
|
}
|
|
137
143
|
export interface ContentSetChildrenPatch extends ContentPatchBase {
|
|
138
144
|
type: "children";
|
|
145
|
+
snapshotBuilderId?: string;
|
|
139
146
|
}
|
|
140
147
|
export interface ContentDeletePatch extends ContentPatchBase {
|
|
141
148
|
type: "delete";
|
|
@@ -286,7 +293,6 @@ export interface ThreadMessageFeedback {
|
|
|
286
293
|
sentiment?: "positive" | "negative";
|
|
287
294
|
builderUserId?: string;
|
|
288
295
|
builderEmail?: string;
|
|
289
|
-
completionId?: string;
|
|
290
296
|
}
|
|
291
297
|
export interface ThreadCreatedEvent {
|
|
292
298
|
type: "assistant.thread.created";
|