@xpert-ai/chatkit-types 0.5.5 → 0.5.6
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 +42 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -224,6 +224,12 @@ export declare interface ChatKitElementEventMap {
|
|
|
224
224
|
'chatkit.thread.change': CustomEvent<{
|
|
225
225
|
threadId: string | null;
|
|
226
226
|
}>;
|
|
227
|
+
'chatkit.project.change': CustomEvent<{
|
|
228
|
+
projectId: string | null;
|
|
229
|
+
}>;
|
|
230
|
+
'chatkit.connectors.change': CustomEvent<{
|
|
231
|
+
connectorBindingIds: string[];
|
|
232
|
+
}>;
|
|
227
233
|
'chatkit.log': CustomEvent<{
|
|
228
234
|
name: string;
|
|
229
235
|
data?: Record<string, unknown>;
|
|
@@ -265,6 +271,14 @@ export declare type ChatKitEvents = {
|
|
|
265
271
|
'chatkit.thread.change': CustomEvent<{
|
|
266
272
|
threadId: string | null;
|
|
267
273
|
}>;
|
|
274
|
+
/** Emitted when the user changes the active Xpert project in the composer. */
|
|
275
|
+
'chatkit.project.change': CustomEvent<{
|
|
276
|
+
projectId: string | null;
|
|
277
|
+
}>;
|
|
278
|
+
/** Emitted when the user changes the Connector bindings selected for the conversation. */
|
|
279
|
+
'chatkit.connectors.change': CustomEvent<{
|
|
280
|
+
connectorBindingIds: string[];
|
|
281
|
+
}>;
|
|
268
282
|
/** Emitted when ChatKit starts loading a thread (initial load or selected from history). */
|
|
269
283
|
'chatkit.thread.load.start': CustomEvent<{
|
|
270
284
|
threadId: string;
|
|
@@ -302,6 +316,7 @@ export declare type ChatKitGoalAdapter = {
|
|
|
302
316
|
setGoal: (params: {
|
|
303
317
|
threadId?: string | null;
|
|
304
318
|
assistantId: string;
|
|
319
|
+
projectId?: string | null;
|
|
305
320
|
objective: string;
|
|
306
321
|
runtimeCapabilities?: RuntimeCapabilitiesSelection | null;
|
|
307
322
|
signal?: AbortSignal;
|
|
@@ -599,6 +614,28 @@ export declare type ChatKitOptions = {
|
|
|
599
614
|
*/
|
|
600
615
|
accept?: Record<string, string[]>;
|
|
601
616
|
};
|
|
617
|
+
/**
|
|
618
|
+
* Project selector backed by the Xpert hosted API.
|
|
619
|
+
* Disabled by default and ignored by custom APIs.
|
|
620
|
+
*/
|
|
621
|
+
projects?: {
|
|
622
|
+
enabled?: boolean;
|
|
623
|
+
/**
|
|
624
|
+
* Show the configured Project as a fixed composer scope instead of a
|
|
625
|
+
* selector. Intended for Project-owned workbenches where the host pins
|
|
626
|
+
* every conversation to one Project.
|
|
627
|
+
*/
|
|
628
|
+
locked?: boolean;
|
|
629
|
+
/** Human-readable label for a locked Project scope. */
|
|
630
|
+
label?: string;
|
|
631
|
+
};
|
|
632
|
+
/**
|
|
633
|
+
* Conversation-level Connector bindings for the current Xpert or Project.
|
|
634
|
+
* Disabled by default and ignored by custom APIs.
|
|
635
|
+
*/
|
|
636
|
+
connectors?: {
|
|
637
|
+
enabled?: boolean;
|
|
638
|
+
};
|
|
602
639
|
/**
|
|
603
640
|
* When provided a list of tool options, the user will be able to select a tool
|
|
604
641
|
* from a menu in the composer.
|
|
@@ -1839,6 +1876,8 @@ export declare type Row = {
|
|
|
1839
1876
|
|
|
1840
1877
|
export declare type RuntimeCapabilitiesSelection = RuntimeCapabilitiesSelectionSet & {
|
|
1841
1878
|
mode: 'allowlist';
|
|
1879
|
+
/** Keep the Xpert's normal capabilities while applying an independent selection such as Connectors. */
|
|
1880
|
+
inheritUnselected?: boolean;
|
|
1842
1881
|
recommended?: RuntimeCapabilitiesSelectionSet;
|
|
1843
1882
|
};
|
|
1844
1883
|
|
|
@@ -1853,6 +1892,9 @@ export declare type RuntimeCapabilitiesSelectionSet = {
|
|
|
1853
1892
|
subAgents?: {
|
|
1854
1893
|
nodeKeys: string[];
|
|
1855
1894
|
};
|
|
1895
|
+
connectors?: {
|
|
1896
|
+
bindingIds: string[];
|
|
1897
|
+
};
|
|
1856
1898
|
};
|
|
1857
1899
|
|
|
1858
1900
|
export declare type Select = {
|