@nemphi/sdk 0.2.5079 → 0.2.5089
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 +8 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/ui-spec.d.ts +143 -0
- package/dist/ui-spec.d.ts.map +1 -0
- package/dist/ui-spec.js +6 -0
- package/dist/ui-spec.js.map +1 -0
- package/package.json +1 -1
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;
|