@nemphi/sdk 0.2.5079 → 0.2.5092

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/index.d.ts CHANGED
@@ -10,8 +10,10 @@
10
10
  */
11
11
  export * from "./block-kit.js";
12
12
  export * from "./block-kit-state.js";
13
+ export * from "./ui-spec.js";
13
14
  export * from "./reactions.js";
14
15
  import type { MessageBlock } from "./block-kit.js";
16
+ import type { UISpec } from "./ui-spec.js";
15
17
  /**
16
18
  * Any value `JSON.parse` can produce. The API speaks JSON, so a field the
17
19
  * wire leaves open (`metadata`, a stored `template`, a tool's
@@ -2271,6 +2273,12 @@ export interface MessagingMessage {
2271
2273
  body: string;
2272
2274
  /** Block Kit blocks rendered under the body, when the message carries any. */
2273
2275
  blocks?: MessageBlock[];
2276
+ /**
2277
+ * The json-render spec an agent's answer drew. When present it is the
2278
+ * message's UI, and `blocks` is its Block Kit reading for readers that
2279
+ * do not draw specs.
2280
+ */
2281
+ ui?: UISpec;
2274
2282
  /** The message carries a live canvas; messages.get_canvas fills it for the reader. */
2275
2283
  has_canvas?: boolean;
2276
2284
  reply_to_id: string | null;
@@ -6383,6 +6391,12 @@ export interface ChatApprovalOutcome {
6383
6391
  }
6384
6392
  export interface OverviewChatResponse {
6385
6393
  reply: string;
6394
+ /**
6395
+ * The answer's json-render spec (ui-spec.ts), when the model drew one:
6396
+ * rendered under the reply in place of `message`, which then leads with
6397
+ * its Block Kit reading for a client that does not draw specs.
6398
+ */
6399
+ ui?: UISpec;
6386
6400
  /**
6387
6401
  * The answer as Block Kit blocks, when the model laid one out (a table,
6388
6402
  * a plan, buttons to click): rendered under the reply. See block-kit.ts.
@@ -6446,6 +6460,8 @@ export interface ConversationTurn {
6446
6460
  content: string;
6447
6461
  /** Where the user was when they sent this turn (a page or dashboard marker). */
6448
6462
  context?: string;
6463
+ /** The json-render spec of an assistant turn. */
6464
+ ui?: UISpec;
6449
6465
  /** Block Kit blocks of an assistant turn. */
6450
6466
  message?: MessageBlock[];
6451
6467
  blocks?: CanvasBlock[];