@base44-preview/sdk 0.8.52-pr.286.8c10b2a → 0.8.52-pr.286.df125d1

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.
@@ -4,4 +4,4 @@ export { PlatformSocketError } from "./errors.js";
4
4
  export type { PlatformSocketErrorCode } from "./errors.types.js";
5
5
  export type { PlatformClientOptions } from "./client.types.js";
6
6
  export type { BuilderModule, BuilderInitOptions, BuilderSession, PlatformSubscription, SubscriptionOptions } from "./modules/builder.types.js";
7
- export type { AppStatus, AppStatusChanged, BranchScoped, ChatMessage, ImageResolved, MessageParams, MessageRemoved, MessageUpdated, PlatformEvent, PlatformEventMap, PreviewNavigationRequested, QueueItem, QueueUpdated, Snapshot, TaskProgressed, ToolArguments, ToolCall, ToolDisplay, ToolGuardApproval, ToolMediaArguments, ToolMediaResult, ToolPackageArguments, ToolPackageOperation, ToolPlanArguments, ToolPlanUpdate, ToolPrdArguments, ToolQuestion, ToolQuestionAnswer, ToolQuestionArguments, ToolQuestionInput, ToolQuestionOption, ToolSecretArguments, ToolSecretField, } from "./modules/builder.events.types.js";
7
+ export type { AppStatus, AppStatusChanged, BranchScoped, ChatMessage, ImageResolved, MessageParams, MessageRemoved, MessageUpdated, PlatformEvent, PlatformEventMap, PreviewNavigationRequested, QueueItem, QueueUpdated, Snapshot, TaskProgressed, ToolArguments, ToolCall, ToolDisplay, ToolEntityMutationArguments, ToolGuardApproval, ToolMediaArguments, ToolMediaResult, ToolPackageArguments, ToolPackageOperation, ToolPlanArguments, ToolPlanUpdate, ToolPrdArguments, ToolQuestion, ToolQuestionAnswer, ToolQuestionArguments, ToolQuestionInput, ToolQuestionOption, ToolSecretArguments, ToolSecretField, } from "./modules/builder.events.types.js";
@@ -108,8 +108,13 @@ export interface ToolMediaArguments {
108
108
  /** Requested image or video aspect ratio. */
109
109
  aspect_ratio?: string;
110
110
  }
111
+ /** `update_entities` and `delete_entities` arguments; the entity is in `display.entity_name`. */
112
+ export interface ToolEntityMutationArguments {
113
+ /** The agent's summary of the change. Queries and record values are never included. */
114
+ summary?: string;
115
+ }
111
116
  /** The public arguments of a tool that declares them; narrow by the tool call's `name`. */
112
- export type ToolArguments = ToolQuestionArguments | ToolSecretArguments | ToolPackageArguments | ToolPlanArguments | ToolPrdArguments | ToolMediaArguments;
117
+ export type ToolArguments = ToolQuestionArguments | ToolSecretArguments | ToolPackageArguments | ToolPlanArguments | ToolPrdArguments | ToolMediaArguments | ToolEntityMutationArguments;
113
118
  /** Generated-media state. Raw generation prompts and IDs are never included. */
114
119
  export interface ToolMediaResult {
115
120
  /** Placeholder URL, used to associate an `image.resolved` event with this tool. */
@@ -123,7 +128,9 @@ export interface ToolMediaResult {
123
128
  export interface ToolQuestionAnswer {
124
129
  /** Zero-based question index. */
125
130
  question_index?: number;
126
- /** Labels selected by the user. */
131
+ /** Label selected for a single-select question. */
132
+ selected_label?: string;
133
+ /** Labels selected for a multi-select question. */
127
134
  selected_labels?: string[];
128
135
  /** User-provided free-text answer. Structural filtering does not redact prose. */
129
136
  custom_text?: string;
@@ -182,8 +189,9 @@ export interface ToolCall {
182
189
  display?: ToolDisplay;
183
190
  /** Clarifying-question answers. */
184
191
  user_input?: ToolQuestionInput;
185
- /** Generated-media state, once the call is not waiting on a guard. */
186
- results?: ToolMediaResult;
192
+ /** Generated media, once the call is not waiting on a guard: the image tool's state, or a URL alone
193
+ * (a game asset's placeholder, which `image.resolved` replaces, or a finished video). */
194
+ results?: ToolMediaResult | string;
187
195
  /** A parked call's guard, and its reason and details where the guard declares them. */
188
196
  approval?: ToolGuardApproval;
189
197
  }
@@ -28,7 +28,7 @@ export interface BuilderSession {
28
28
  /** One app subscription; at most eight may be active per builder session. */
29
29
  export interface SubscriptionOptions {
30
30
  /** Replace this app's state. Arrives after every join and rejoin, and after a main-conversation
31
- * rewrite (undo, restore, sync). Live events may precede it; merge its messages by `id`.
31
+ * rewrite (undo, restore, sync). Live events follow it; it holds only the last 50 messages.
32
32
  */
33
33
  onSnapshot: (snapshot: Snapshot) => void | Promise<void>;
34
34
  /** Apply each live event. Delivery is serial per app; a rejection ends this subscription. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@base44-preview/sdk",
3
- "version": "0.8.52-pr.286.8c10b2a",
3
+ "version": "0.8.52-pr.286.df125d1",
4
4
  "description": "JavaScript SDK for Base44 API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",