@unisphere/genie-types 1.8.2-major3.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/README.md +175 -0
- package/index.d.ts +1 -0
- package/index.esm.js +2659 -0
- package/package.json +23 -0
- package/src/index.d.ts +13 -0
- package/src/lib/admin-demo-runtime/index.d.ts +1 -0
- package/src/lib/admin-demo-runtime/runtime-types.d.ts +5 -0
- package/src/lib/admin-runtime/index.d.ts +1 -0
- package/src/lib/admin-runtime/runtime-types.d.ts +8 -0
- package/src/lib/application-runtime/index.d.ts +1 -0
- package/src/lib/application-runtime/runtime-types.d.ts +17 -0
- package/src/lib/avatar-runtime/avatar-service-types.d.ts +116 -0
- package/src/lib/avatar-runtime/chat-visual-types.d.ts +5 -0
- package/src/lib/avatar-runtime/contained-visual-types.d.ts +5 -0
- package/src/lib/avatar-runtime/index.d.ts +5 -0
- package/src/lib/avatar-runtime/lobby-visual-types.d.ts +7 -0
- package/src/lib/avatar-runtime/runtime-types.d.ts +26 -0
- package/src/lib/chat-runtime/index.d.ts +5 -0
- package/src/lib/chat-runtime/runtime-flavors/runtime-player-plugin-types.d.ts +20 -0
- package/src/lib/chat-runtime/runtime-flavors/runtime-types.d.ts +34 -0
- package/src/lib/chat-runtime/shared-settings.d.ts +47 -0
- package/src/lib/chat-runtime/types.d.ts +1 -0
- package/src/lib/chat-runtime/visuals-types.d.ts +31 -0
- package/src/lib/flashcards-tool-runtime/index.d.ts +2 -0
- package/src/lib/flashcards-tool-runtime/runtime-types.d.ts +14 -0
- package/src/lib/flashcards-tool-runtime/visuals-types.d.ts +16 -0
- package/src/lib/followups-tool-runtime/avatar-visual-types.d.ts +9 -0
- package/src/lib/followups-tool-runtime/index.d.ts +2 -0
- package/src/lib/followups-tool-runtime/runtime-types.d.ts +18 -0
- package/src/lib/shared/chat-customizations-types.d.ts +36 -0
- package/src/lib/shared/chat-tools-service-types.d.ts +40 -0
- package/src/lib/shared/general-visual-types.d.ts +12 -0
- package/src/lib/shared/index.d.ts +3 -0
- package/src/lib/sources-tool-runtime/index.d.ts +1 -0
- package/src/lib/sources-tool-runtime/runtime-types.d.ts +19 -0
- package/src/lib/summary-tool-runtime/index.d.ts +1 -0
- package/src/lib/summary-tool-runtime/runtime-types.d.ts +24 -0
- package/src/lib/types.d.ts +66 -0
- package/src/lib/utils/index.d.ts +2 -0
- package/src/lib/utils/use-get-widget-service.d.ts +3 -0
- package/src/lib/utils/use-watch-tiny-data-storage.d.ts +4 -0
- package/src/lib/widget-types.d.ts +1 -0
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { BlockVisualContext } from './shared/general-visual-types';
|
|
2
|
+
type SourceItemBaseType = {
|
|
3
|
+
entry_id: string;
|
|
4
|
+
title: string;
|
|
5
|
+
};
|
|
6
|
+
export type VideoSourceItemType = SourceItemBaseType & {
|
|
7
|
+
type: 'video';
|
|
8
|
+
duration: number;
|
|
9
|
+
};
|
|
10
|
+
export type DocumentSourceItemType = SourceItemBaseType & {
|
|
11
|
+
type: 'document';
|
|
12
|
+
duration?: number | null;
|
|
13
|
+
};
|
|
14
|
+
export type SourcesItemType = VideoSourceItemType | DocumentSourceItemType;
|
|
15
|
+
export type UnisphereToolStatuses = 'loading' | 'ready' | 'error';
|
|
16
|
+
export type ContentDataType = {
|
|
17
|
+
blockContext?: BlockVisualContext;
|
|
18
|
+
title?: string;
|
|
19
|
+
summary?: string;
|
|
20
|
+
followups?: string[];
|
|
21
|
+
keypoints?: CardsDataType[];
|
|
22
|
+
};
|
|
23
|
+
export type CardsVideoDataType = {
|
|
24
|
+
end_time?: number;
|
|
25
|
+
entry_id?: string;
|
|
26
|
+
type?: 'CAPTION' | 'OCR' | 'DOCUMENT';
|
|
27
|
+
last_index?: number;
|
|
28
|
+
start_index?: number;
|
|
29
|
+
start_time?: number;
|
|
30
|
+
thumbnail?: string;
|
|
31
|
+
video_link?: string;
|
|
32
|
+
title?: string;
|
|
33
|
+
};
|
|
34
|
+
export type CardsDataType = {
|
|
35
|
+
title?: string;
|
|
36
|
+
summary?: string;
|
|
37
|
+
citation?: {
|
|
38
|
+
clips?: CardsVideoDataType[];
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
export declare enum AnswerTypeEnum {
|
|
42
|
+
Flashcards = "flashcards",
|
|
43
|
+
Markdown = "markdown",
|
|
44
|
+
Summary = "summarization"
|
|
45
|
+
}
|
|
46
|
+
export declare enum AnswerModelEnum {
|
|
47
|
+
Fast = "fast",
|
|
48
|
+
Smart = "smart"
|
|
49
|
+
}
|
|
50
|
+
export type AnswerType = AnswerTypeEnum | undefined;
|
|
51
|
+
export type AnswerModel = AnswerModelEnum | undefined;
|
|
52
|
+
export type Thread = {
|
|
53
|
+
id?: string;
|
|
54
|
+
title: string | null;
|
|
55
|
+
created_at?: string;
|
|
56
|
+
updated_at?: string;
|
|
57
|
+
genie_id: string;
|
|
58
|
+
partner_id: number;
|
|
59
|
+
user_id: string;
|
|
60
|
+
status: number;
|
|
61
|
+
};
|
|
62
|
+
export type ThreadListResponse = {
|
|
63
|
+
objects: Thread[];
|
|
64
|
+
totalCount: number;
|
|
65
|
+
};
|
|
66
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const widgetName: "unisphere.widget.genie";
|