@xpert-ai/chatkit-types 0.4.0 → 0.4.1
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 +22 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1813,6 +1813,17 @@ export declare type TMcpAppPermissions = {
|
|
|
1813
1813
|
clipboardWrite?: TMcpAppPermissionGrant;
|
|
1814
1814
|
};
|
|
1815
1815
|
|
|
1816
|
+
export declare type TMcpAppToolResult = {
|
|
1817
|
+
content: TMcpAppToolResultContentBlock[];
|
|
1818
|
+
structuredContent?: Record<string, unknown>;
|
|
1819
|
+
isError?: boolean;
|
|
1820
|
+
_meta?: Record<string, unknown>;
|
|
1821
|
+
};
|
|
1822
|
+
|
|
1823
|
+
export declare type TMcpAppToolResultContentBlock = Record<string, unknown> & {
|
|
1824
|
+
type: string;
|
|
1825
|
+
};
|
|
1826
|
+
|
|
1816
1827
|
/**
|
|
1817
1828
|
* Declares who may use an MCP tool. `model` exposes the tool to the LLM;
|
|
1818
1829
|
* `app` allows the rendered MCP App iframe to call it through the host bridge.
|
|
@@ -1845,8 +1856,8 @@ export declare type TMessageComponentMcpApp = TMessageComponent<TMessageComponen
|
|
|
1845
1856
|
|
|
1846
1857
|
/**
|
|
1847
1858
|
* Safe metadata needed to render an MCP App message. Chat history stores this
|
|
1848
|
-
* descriptor only; the app HTML is fetched
|
|
1849
|
-
* instance using `appInstanceId`.
|
|
1859
|
+
* descriptor and the initial tool input/result only; the app HTML is fetched
|
|
1860
|
+
* from the backend app instance using `appInstanceId`.
|
|
1850
1861
|
*/
|
|
1851
1862
|
export declare type TMessageComponentMcpAppData = {
|
|
1852
1863
|
/** Component discriminator used by ChatKit renderers. */
|
|
@@ -1883,6 +1894,15 @@ export declare type TMessageComponentMcpAppData = {
|
|
|
1883
1894
|
prefersBorder?: boolean;
|
|
1884
1895
|
/** Original tool input sent to the MCP App via `ui/notifications/tool-input`. */
|
|
1885
1896
|
toolInput?: Record<string, unknown>;
|
|
1897
|
+
/**
|
|
1898
|
+
* Standardized initial CallToolResult used to replay MCP App history without
|
|
1899
|
+
* re-running the originating tool. Raw app HTML is never persisted here.
|
|
1900
|
+
*/
|
|
1901
|
+
toolResult?: TMcpAppToolResult;
|
|
1902
|
+
/** Serialized byte size of the initial tool result when known. */
|
|
1903
|
+
toolResultSize?: number;
|
|
1904
|
+
/** True when the initial tool result was too large to inline in chat history. */
|
|
1905
|
+
toolResultTruncated?: boolean;
|
|
1886
1906
|
/** Visibility declared by the originating MCP tool. */
|
|
1887
1907
|
visibility?: TMcpAppVisibility[];
|
|
1888
1908
|
/** Current lifecycle status of the tool/app message. */
|