@unisphere/genie-types 1.38.7 → 1.39.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/package.json
CHANGED
package/src/index.d.ts
CHANGED
|
@@ -171,9 +171,13 @@ export type AvatarRuntimeSettings = {
|
|
|
171
171
|
/** Dynamic request variables */
|
|
172
172
|
dynamicVariables?: Record<string, unknown>;
|
|
173
173
|
};
|
|
174
|
+
/** Full URL to POST client-tool-call responses to (e.g. `https://genie.example.com/assistant/tool_response`). Required for client tool calls to receive a response. Applies to both `manual` and `studio` modes. */
|
|
175
|
+
clientToolResponseUrl?: string;
|
|
174
176
|
} & (({
|
|
175
177
|
serverConfig?: 'manual';
|
|
176
178
|
} & Omit<AvatarServerConfig, 'ks'>) | {
|
|
177
179
|
serverConfig: 'studio';
|
|
180
|
+
/** Agentic/appInit service URL (the api.avatar service URL). Optional here since the Unisphere runtime fills it in via `environmentResolver` when omitted — but required by `AvatarClientManager` itself, which has no such fallback. */
|
|
181
|
+
agenticServerUrl?: string;
|
|
178
182
|
});
|
|
179
183
|
export declare const avatarRuntimeSettingsSchema: ValidatorSchema;
|
|
@@ -66,6 +66,8 @@ export interface ChatCustomization {
|
|
|
66
66
|
type?: 'default' | 'banner' | 'chatThread';
|
|
67
67
|
/** Page title text */
|
|
68
68
|
title?: string;
|
|
69
|
+
/** Page subtitle text */
|
|
70
|
+
subtitle?: string;
|
|
69
71
|
/** Suggested questions to display on landing page */
|
|
70
72
|
initialQuestions?: InitialQuestion[];
|
|
71
73
|
/** Background image configuration */
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ClassGenieFlashCard, ClassGenieFlashCardElement, ClassGenieFollowupsElement, ClassGenieSourceDocumentItem, ClassGenieSourceItem, ClassGenieSourcesElement, ClassGenieSourceVideoItem, ClassGenieTextFlashcard, ClassGenieVideoGalleryFlashcard, UnisphereChatBlock } from './data-models';
|
|
2
|
+
export declare const isFlashcardElement: (element: any) => element is ClassGenieFlashCardElement;
|
|
3
|
+
export declare const isSourcesElement: (element: any) => element is ClassGenieSourcesElement;
|
|
4
|
+
export declare const isFollowupsElement: (element: any) => element is ClassGenieFollowupsElement;
|
|
5
|
+
export declare const isTextFlashcard: (card: ClassGenieFlashCard) => card is ClassGenieTextFlashcard;
|
|
6
|
+
export declare const isVideoGalleryFlashcard: (card: ClassGenieFlashCard) => card is ClassGenieVideoGalleryFlashcard;
|
|
7
|
+
export declare const isVideoSourceItem: (item: ClassGenieSourceItem) => item is ClassGenieSourceVideoItem;
|
|
8
|
+
export declare const isPDFSourceItem: (item: ClassGenieSourceItem) => item is ClassGenieSourceDocumentItem;
|
|
9
|
+
export declare function isFlashcardBlock(b: UnisphereChatBlock): b is UnisphereChatBlock & {
|
|
10
|
+
type: 'unisphere-tool';
|
|
11
|
+
runtimeName: 'flashcards-tool';
|
|
12
|
+
status: 'loading' | 'ready';
|
|
13
|
+
settings: {
|
|
14
|
+
keypoints: string[];
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export declare function isSourcesBlock(b: UnisphereChatBlock): b is UnisphereChatBlock & {
|
|
18
|
+
type: 'unisphere-tool';
|
|
19
|
+
runtimeName: 'sources-tool';
|
|
20
|
+
status: 'loading' | 'ready';
|
|
21
|
+
settings: {
|
|
22
|
+
sources: string[];
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export type FollowupsBlock = UnisphereChatBlock & {
|
|
26
|
+
type: 'unisphere-tool';
|
|
27
|
+
runtimeName: 'followups-tool';
|
|
28
|
+
status: 'loading' | 'ready';
|
|
29
|
+
};
|
|
30
|
+
export declare function isFollowupsBlock(b: UnisphereChatBlock): b is FollowupsBlock;
|
|
31
|
+
export declare function isTextBlock(b: UnisphereChatBlock): b is UnisphereChatBlock & {
|
|
32
|
+
type: 'markdown';
|
|
33
|
+
status: 'ready';
|
|
34
|
+
content: string;
|
|
35
|
+
};
|
|
36
|
+
export declare const hasSources: (blocks: UnisphereChatBlock[]) => boolean;
|