@unisphere/genie-types 1.13.1 → 1.13.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.
Files changed (35) hide show
  1. package/index.esm.js +80 -2
  2. package/package.json +3 -3
  3. package/src/lib/admin-demo-runtime/runtime-types.d.ts +9 -0
  4. package/src/lib/admin-runtime/runtime-types.d.ts +25 -0
  5. package/src/lib/application-runtime/runtime-types.d.ts +36 -0
  6. package/src/lib/avatar-runtime/agent-visual-types.d.ts +18 -0
  7. package/src/lib/avatar-runtime/avatar-service-types.d.ts +95 -0
  8. package/src/lib/avatar-runtime/chat-visual-types.d.ts +9 -0
  9. package/src/lib/avatar-runtime/contained-visual-types.d.ts +9 -0
  10. package/src/lib/avatar-runtime/index.d.ts +1 -0
  11. package/src/lib/avatar-runtime/lobby-visual-types.d.ts +33 -1
  12. package/src/lib/avatar-runtime/runtime-types.d.ts +69 -3
  13. package/src/lib/chat-runtime/runtime-flavors/runtime-player-plugin-types.d.ts +42 -0
  14. package/src/lib/chat-runtime/runtime-flavors/runtime-types.d.ts +60 -0
  15. package/src/lib/chat-runtime/shared-settings.d.ts +88 -0
  16. package/src/lib/chat-runtime/types.d.ts +1 -0
  17. package/src/lib/chat-runtime/visuals-types.d.ts +66 -0
  18. package/src/lib/flashcards-tool-runtime/runtime-types.d.ts +27 -0
  19. package/src/lib/flashcards-tool-runtime/visuals-types.d.ts +36 -0
  20. package/src/lib/followups-tool-runtime/avatar-visual-types.d.ts +18 -0
  21. package/src/lib/followups-tool-runtime/runtime-types.d.ts +31 -0
  22. package/src/lib/gtc-agenda-list-tool-runtime/genie-answer-visual-types.d.ts +15 -0
  23. package/src/lib/gtc-agenda-list-tool-runtime/runtime-types.d.ts +15 -0
  24. package/src/lib/gtc-agenda-tool-runtime/genie-answer-visual-types.d.ts +11 -0
  25. package/src/lib/gtc-agenda-tool-runtime/runtime-types.d.ts +15 -0
  26. package/src/lib/kaltura-video-player-tool-runtime/genie-answer-visual-types.d.ts +11 -0
  27. package/src/lib/kaltura-video-player-tool-runtime/runtime-types.d.ts +23 -0
  28. package/src/lib/nvidia-2026-event-tool-runtime/runtime-types.d.ts +45 -0
  29. package/src/lib/shared/chat-customizations-types.d.ts +80 -0
  30. package/src/lib/shared/chat-tools-service-types.d.ts +52 -0
  31. package/src/lib/shared/general-visual-types.d.ts +19 -0
  32. package/src/lib/sources-tool-runtime/runtime-types.d.ts +38 -0
  33. package/src/lib/summary-tool-runtime/runtime-types.d.ts +55 -0
  34. package/src/lib/types.d.ts +57 -0
  35. package/src/lib/widget-types.d.ts +1 -0
@@ -3,52 +3,106 @@ type SourceItemBaseType = {
3
3
  entry_id: string;
4
4
  title: string;
5
5
  };
6
+ /**
7
+ * Video source item with duration.
8
+ */
6
9
  export type VideoSourceItemType = SourceItemBaseType & {
7
10
  type: 'video';
8
11
  duration: number;
9
12
  };
13
+ /**
14
+ * Document source item.
15
+ */
10
16
  export type DocumentSourceItemType = SourceItemBaseType & {
11
17
  type: 'document';
12
18
  duration?: number | null;
13
19
  };
20
+ /**
21
+ * Union type for source items (video or document).
22
+ */
14
23
  export type SourcesItemType = VideoSourceItemType | DocumentSourceItemType;
24
+ /**
25
+ * Status values for Unisphere tools.
26
+ */
15
27
  export type UnisphereToolStatuses = 'loading' | 'ready' | 'error';
28
+ /**
29
+ * Content data structure for responses.
30
+ */
16
31
  export type ContentDataType = {
32
+ /** Block visual context */
17
33
  blockContext?: BlockVisualContext;
34
+ /** Content title */
18
35
  title?: string;
36
+ /** Content summary */
19
37
  summary?: string;
38
+ /** Follow-up questions */
20
39
  followups?: string[];
40
+ /** Key points with citations */
21
41
  keypoints?: CardsDataType[];
22
42
  };
43
+ /**
44
+ * Video clip data with timestamps and metadata.
45
+ */
23
46
  export type CardsVideoDataType = {
47
+ /** End time in seconds */
24
48
  end_time?: number;
49
+ /** Kaltura entry ID */
25
50
  entry_id?: string;
51
+ /** Source type */
26
52
  type?: 'CAPTION' | 'OCR' | 'DOCUMENT';
53
+ /** Last index */
27
54
  last_index?: number;
55
+ /** Start index */
28
56
  start_index?: number;
57
+ /** Start time in seconds */
29
58
  start_time?: number;
59
+ /** Thumbnail URL */
30
60
  thumbnail?: string;
61
+ /** Video link */
31
62
  video_link?: string;
63
+ /** Clip title */
32
64
  title?: string;
33
65
  };
66
+ /**
67
+ * Card data with title, summary, and citations.
68
+ */
34
69
  export type CardsDataType = {
70
+ /** Card title */
35
71
  title?: string;
72
+ /** Card summary */
36
73
  summary?: string;
74
+ /** Citation information */
37
75
  citation?: {
76
+ /** Video clips */
38
77
  clips?: CardsVideoDataType[];
39
78
  };
40
79
  };
80
+ /**
81
+ * Answer type options for Genie responses.
82
+ */
41
83
  export declare enum AnswerTypeEnum {
42
84
  Flashcards = "flashcards",
43
85
  Markdown = "markdown",
44
86
  Summary = "summarization"
45
87
  }
88
+ /**
89
+ * Answer model performance options.
90
+ */
46
91
  export declare enum AnswerModelEnum {
47
92
  Fast = "fast",
48
93
  Smart = "smart"
49
94
  }
95
+ /**
96
+ * Answer type (enum value or undefined).
97
+ */
50
98
  export type AnswerType = AnswerTypeEnum | undefined;
99
+ /**
100
+ * Answer model (enum value or undefined).
101
+ */
51
102
  export type AnswerModel = AnswerModelEnum | undefined;
103
+ /**
104
+ * Thread metadata for Genie conversations.
105
+ */
52
106
  export type Thread = {
53
107
  id?: string;
54
108
  title: string | null;
@@ -59,6 +113,9 @@ export type Thread = {
59
113
  user_id: string;
60
114
  status: number;
61
115
  };
116
+ /**
117
+ * Response containing list of threads.
118
+ */
62
119
  export type ThreadListResponse = {
63
120
  objects: Thread[];
64
121
  totalCount: number;
@@ -1 +1,2 @@
1
+ /** Widget name constant for all Genie experiences */
1
2
  export declare const widgetName: "unisphere.widget.genie";