@builder.io/ai-utils 0.0.24 → 0.0.26

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.
@@ -83,6 +83,14 @@ export interface BuiderEditorState {
83
83
  * Builder model. (not the LLM model)
84
84
  */
85
85
  model?: BuilderModel;
86
+ /**
87
+ * Other models in the Builder account
88
+ */
89
+ otherModels?: BuilderModel[];
90
+ /**
91
+ * Email of the user in the builder.
92
+ */
93
+ userEmail?: string;
86
94
  /**
87
95
  * Selected ids in the builder.
88
96
  */
@@ -91,6 +99,14 @@ export interface BuiderEditorState {
91
99
  * Builder space id.
92
100
  */
93
101
  spaceId?: string;
102
+ /**
103
+ * Builder user id.
104
+ */
105
+ userId?: string;
106
+ /**
107
+ * Builder session id.
108
+ */
109
+ sessionId?: string;
94
110
  }
95
111
  export type OnPromptSubmit = (opts: {
96
112
  prompt?: string;
package/dist/events.d.ts CHANGED
@@ -123,7 +123,6 @@ export interface ContentComplete {
123
123
  threadId: string;
124
124
  completionId: string;
125
125
  modelId: string;
126
- duration: number;
127
126
  message: AssistantMessage;
128
127
  ts: number;
129
128
  }
@@ -143,6 +142,7 @@ export interface ModelUpdate {
143
142
  }
144
143
  export interface BuilderModel {
145
144
  name?: string;
145
+ friendlyName?: string;
146
146
  description?: string;
147
147
  type?: string;
148
148
  fields?: BuilderModelField[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@builder.io/ai-utils",
3
- "version": "0.0.24",
3
+ "version": "0.0.26",
4
4
  "description": "Builder.io AI utils",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",