@builder.io/ai-utils 0.0.49 → 0.0.50

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.
Files changed (2) hide show
  1. package/dist/events.d.ts +4 -2
  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
@@ -122,6 +122,9 @@ interface ContentPatchBase {
122
122
  */
123
123
  incomplete?: boolean;
124
124
  }
125
+ export interface ContentTsCodePatch extends ContentPatchBase {
126
+ type: "ts_code";
127
+ }
125
128
  export interface ContentInsertBeforePatch extends ContentPatchBase {
126
129
  type: "insert_before";
127
130
  }
@@ -286,7 +289,6 @@ export interface ThreadMessageFeedback {
286
289
  sentiment?: "positive" | "negative";
287
290
  builderUserId?: string;
288
291
  builderEmail?: string;
289
- completionId?: string;
290
292
  }
291
293
  export interface ThreadCreatedEvent {
292
294
  type: "assistant.thread.created";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/ai-utils",
3
- "version": "0.0.49",
3
+ "version": "0.0.50",
4
4
  "description": "Builder.io AI utils",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",