@xpert-ai/chatkit-types 0.17.0 → 0.18.0
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 +18 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1162,6 +1162,16 @@ export declare type ChatKitWorkbenchFileResource = {
|
|
|
1162
1162
|
targetId?: string;
|
|
1163
1163
|
};
|
|
1164
1164
|
|
|
1165
|
+
/** Public view state owned by a routed embedder. Never carries credentials. */
|
|
1166
|
+
export declare type ChatKitWorkbenchNavigation = {
|
|
1167
|
+
projectId: string | null;
|
|
1168
|
+
view: {
|
|
1169
|
+
viewKey: string;
|
|
1170
|
+
selectionId?: string;
|
|
1171
|
+
parameters?: Record<string, string | number | boolean | null | (string | number | boolean | null)[]>;
|
|
1172
|
+
} | null;
|
|
1173
|
+
};
|
|
1174
|
+
|
|
1165
1175
|
/** Authenticated host response consumed only by ChatKit, never forwarded to a plugin. */
|
|
1166
1176
|
export declare type ChatKitWorkbenchNavigationSession = {
|
|
1167
1177
|
assistantId: string;
|
|
@@ -1173,6 +1183,14 @@ export declare type ChatKitWorkbenchNavigationSession = {
|
|
|
1173
1183
|
};
|
|
1174
1184
|
|
|
1175
1185
|
export declare type ChatKitWorkbenchOptions = {
|
|
1186
|
+
/**
|
|
1187
|
+
* Restore host URL state after the matching runtime scope has been authorized.
|
|
1188
|
+
* Omit to use ChatKit's own navigation history; view:null closes the routed View.
|
|
1189
|
+
* The embedder must update its authorized API Project scope independently.
|
|
1190
|
+
*/
|
|
1191
|
+
navigation?: ChatKitWorkbenchNavigation;
|
|
1192
|
+
/** Persist successful view selections in the host URL. Replayed state does not emit this callback. */
|
|
1193
|
+
onNavigationChange?: (navigation: ChatKitWorkbenchNavigation) => void | Promise<void>;
|
|
1176
1194
|
/** Show external Assistant executions in a native workbench tab. Enabled by default. */
|
|
1177
1195
|
externalAssistants?: {
|
|
1178
1196
|
enabled?: boolean;
|