@unisphere/genie-types 1.13.1 → 1.14.0

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