@xpert-ai/chatkit-types 0.16.0 → 0.16.2
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 +20 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -88,6 +88,15 @@ export declare type AssistantCustomizeEffect = {
|
|
|
88
88
|
assistantId: string;
|
|
89
89
|
};
|
|
90
90
|
|
|
91
|
+
/** HTTP 400 model selection contract shared with Xpert's TAssistantModelSelectionError. */
|
|
92
|
+
export declare type AssistantModelSelectionError = {
|
|
93
|
+
statusCode: 400;
|
|
94
|
+
error: 'Bad Request';
|
|
95
|
+
code: 'ASSISTANT_MODEL_NOT_ALLOWED' | 'ASSISTANT_MODEL_UNAVAILABLE';
|
|
96
|
+
modelId: string;
|
|
97
|
+
message: string;
|
|
98
|
+
};
|
|
99
|
+
|
|
91
100
|
/**
|
|
92
101
|
* strategies to host files before attaching them to messages.
|
|
93
102
|
*/
|
|
@@ -1147,6 +1156,12 @@ export declare type ChatKitWorkbenchClientCommandRequest = {
|
|
|
1147
1156
|
viewKey: string;
|
|
1148
1157
|
};
|
|
1149
1158
|
|
|
1159
|
+
/** ChatKit's resource form of `workbench.file.open`, resolved in the invoking View. */
|
|
1160
|
+
export declare type ChatKitWorkbenchFileResource = {
|
|
1161
|
+
fileKey: string;
|
|
1162
|
+
targetId?: string;
|
|
1163
|
+
};
|
|
1164
|
+
|
|
1150
1165
|
/** Authenticated host response consumed only by ChatKit, never forwarded to a plugin. */
|
|
1151
1166
|
export declare type ChatKitWorkbenchNavigationSession = {
|
|
1152
1167
|
assistantId: string;
|
|
@@ -1193,6 +1208,11 @@ export declare type ChatKitWorkbenchOptions = {
|
|
|
1193
1208
|
onClientCommand?: (request: ChatKitWorkbenchClientCommandRequest) => unknown | Promise<unknown>;
|
|
1194
1209
|
};
|
|
1195
1210
|
|
|
1211
|
+
/** The host supplies identity, scope, authorization and canonical file metadata. */
|
|
1212
|
+
export declare type ChatKitWorkbenchResourceFileOpen = {
|
|
1213
|
+
resource: ChatKitWorkbenchFileResource;
|
|
1214
|
+
};
|
|
1215
|
+
|
|
1196
1216
|
/**
|
|
1197
1217
|
* https://js.langchain.com/docs/how_to/streaming/#event-reference
|
|
1198
1218
|
*/
|