@unisphere/genie-types 1.8.2 → 1.9.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unisphere/genie-types",
3
- "version": "1.8.2",
3
+ "version": "1.9.0",
4
4
  "author": "kaltura",
5
5
  "license": "AGPL-3.0",
6
6
  "repository": {
@@ -9,11 +9,9 @@
9
9
  },
10
10
  "types": "./src/index.d.ts",
11
11
  "dependencies": {
12
- "@kaltura-corp/unisphere-rtc-core": "^1.18.0",
13
- "@unisphere/core": "^1.91.0",
14
- "@unisphere/runtime": "^1.90.0",
15
- "@unisphere/runtime-react": "^1.83.3",
16
- "react": "^19.0.0"
12
+ "@kaltura-corp/unisphere-rtc-core": "^1.22.1",
13
+ "@unisphere/core": "^1.91.1",
14
+ "@unisphere/runtime": "^1.90.1"
17
15
  },
18
16
  "module": "./index.esm.js",
19
17
  "type": "module",
package/src/index.d.ts CHANGED
@@ -6,8 +6,11 @@ export * from './lib/sources-tool-runtime';
6
6
  export * from './lib/shared';
7
7
  export * from './lib/types';
8
8
  export * from './lib/avatar-runtime';
9
- export * from './lib/utils';
10
9
  export * from './lib/admin-runtime';
11
10
  export * from './lib/admin-demo-runtime';
12
11
  export * from './lib/application-runtime';
13
12
  export * from './lib/summary-tool-runtime';
13
+ export * from './lib/nvidia-2026-event-tool-runtime';
14
+ export * from './lib/kaltura-video-player-tool-runtime';
15
+ export * from './lib/gtc-agenda-tool-runtime';
16
+ export * from './lib/gtc-agenda-list-tool-runtime';
@@ -40,15 +40,30 @@ export interface SimplifiedSocket {
40
40
  }
41
41
  export type AgentData = {
42
42
  isTalking: boolean;
43
- name: string;
44
43
  answersCount: number;
45
44
  analyticsInfo?: {
46
45
  threadId?: string;
47
46
  messageId?: string;
48
47
  };
49
48
  };
49
+ export type AvatarContentData = {
50
+ id: string;
51
+ threadId?: string;
52
+ messageId?: string;
53
+ newTitle?: string;
54
+ type: 'unisphere-tool';
55
+ widgetName: string;
56
+ runtimeName: string;
57
+ } & ({
58
+ status: 'loading' | 'ready';
59
+ settings: any;
60
+ threadId?: string;
61
+ } | {
62
+ status: 'error';
63
+ });
50
64
  export interface AvatarConnectionProxInternalType {
51
65
  _directEventToServer(message: string, data: any): void;
66
+ _setLocalContent(content: any): void;
52
67
  webSocket: TinyDataStoreConsumer<SimplifiedSocket | null>;
53
68
  }
54
69
  export declare enum DisconnectReasons {
@@ -75,7 +90,7 @@ export interface AvatarConnectionProxyType {
75
90
  readonly playerUrl: TinyDataStoreConsumer<string | null>;
76
91
  readonly sessionId: TinyDataStoreConsumer<string | null>;
77
92
  readonly turnServerURL: TinyDataStoreConsumer<string | null>;
78
- readonly content: TinyDataStoreConsumer<any | null>;
93
+ readonly content: TinyDataStoreConsumer<AvatarContentData | null>;
79
94
  readonly agentData: TinyDataStoreConsumer<AgentData | null>;
80
95
  readonly devicesList: TinyDataStoreConsumer<{
81
96
  audioInput: MediaDeviceInfo[];
@@ -87,7 +102,10 @@ export interface AvatarConnectionProxyType {
87
102
  suppressNotification?: boolean;
88
103
  skipDisconnect?: boolean;
89
104
  } | null>;
105
+ readonly threadId: TinyDataStoreConsumer<string | null>;
90
106
  readonly id: string;
107
+ sendAskViaText(text: string): void;
108
+ sendDirectEvent(message: string, data: unknown): void;
91
109
  destroy(): void;
92
110
  }
93
111
  export declare const isAvatarConnectionProxyInternalType: (x: any) => x is AvatarConnectionProxInternalType;
@@ -105,11 +123,19 @@ export interface AvatarServiceType extends UnisphereService {
105
123
  available: boolean;
106
124
  reason?: AgentUnavailabilityReasons;
107
125
  } | null>;
126
+ threadId: TinyDataStoreConsumer<string | null>;
127
+ setThreadId(id: string | null): void;
108
128
  connect(options?: {
109
129
  threadId?: string;
110
130
  messageId?: string;
111
131
  }): void;
112
132
  onPlayerReady(): void;
133
+ getKalturaPlayerParams(): {
134
+ kalturaServerURI: string;
135
+ partnerId: string;
136
+ uiConfId: string;
137
+ ks: string;
138
+ } | null;
113
139
  askViaText(text: string): void;
114
140
  changeDevice(deviceType: DeviceType, deviceId: string): Promise<boolean>;
115
141
  toggleMuteAudio(muted: boolean): Promise<void>;
@@ -3,5 +3,7 @@ export interface AvatarRuntimeLobbyVisualSettings {
3
3
  schemaVersion?: string;
4
4
  variant?: 'default' | 'mini' | 'buttonOnly';
5
5
  isTranslucent?: boolean;
6
+ threadId?: string;
7
+ messageId?: string;
6
8
  }
7
9
  export declare const avatarRuntimeLobbyVisualSettingsSchema: ValidatorSchema;
@@ -8,6 +8,8 @@ export type AvatarRuntime = UnisphereRuntimeBaseType<AvatarRuntimeSettings> & {
8
8
  connect(): void;
9
9
  disconnect(): void;
10
10
  isConnected: TinyDataStoreConsumer<boolean>;
11
+ threadId: TinyDataStoreConsumer<string | null>;
12
+ setThreadId(id: string | null): void;
11
13
  };
12
14
  export interface AvatarRuntimeSettings {
13
15
  schemaVersion?: string;
@@ -18,9 +20,13 @@ export interface AvatarRuntimeSettings {
18
20
  roomId: string;
19
21
  flowId: string;
20
22
  loadingVideoURL?: string;
23
+ noiseReductionEnabled?: boolean;
21
24
  kaltura: {
22
25
  ks: string;
23
26
  entryId?: string;
27
+ kalturaServerURI?: string;
28
+ partnerId?: string;
29
+ uiConfId?: string;
24
30
  };
25
31
  }
26
32
  export declare const avatarRuntimeSettingsSchema: ValidatorSchema;
@@ -0,0 +1,8 @@
1
+ import { ValidatorSchema } from '@unisphere/core';
2
+ export interface GtcAgendaListToolRuntimeGenieAnswerVisualSettings {
3
+ schemaVersion?: string;
4
+ sessions: {
5
+ id: string;
6
+ }[];
7
+ }
8
+ export declare const gtcAgendaListToolRuntimeGenieAnswerVisualSettingsSchema: ValidatorSchema;
@@ -0,0 +1,2 @@
1
+ export * from './runtime-types';
2
+ export * from './genie-answer-visual-types';
@@ -0,0 +1,12 @@
1
+ import { ValidatorSchema } from '@unisphere/core';
2
+ import { UnisphereRuntimeBaseType } from '@unisphere/runtime';
3
+ import { widgetName } from '../widget-types';
4
+ export declare const GtcAgendaListToolRuntimeName: "gtc-agenda-list-tool";
5
+ export type GtcAgendaListToolRuntime = UnisphereRuntimeBaseType<GtcAgendaListToolRuntimeSettings> & {
6
+ readonly widgetName: typeof widgetName;
7
+ readonly runtimeName: typeof GtcAgendaListToolRuntimeName;
8
+ };
9
+ export interface GtcAgendaListToolRuntimeSettings {
10
+ schemaVersion?: string;
11
+ }
12
+ export declare const gtcAgendaListToolRuntimeSettingsSchema: ValidatorSchema;
@@ -0,0 +1,5 @@
1
+ import { ValidatorSchema } from '@unisphere/core';
2
+ export interface GtcAgendaToolRuntimeGenieAnswerVisualSettings {
3
+ id: string;
4
+ }
5
+ export declare const gtcAgendaToolRuntimeGenieAnswerVisualSettingsSchema: ValidatorSchema;
@@ -0,0 +1,2 @@
1
+ export * from './runtime-types';
2
+ export * from './genie-answer-visual-types';
@@ -0,0 +1,12 @@
1
+ import { ValidatorSchema } from '@unisphere/core';
2
+ import { UnisphereRuntimeBaseType } from '@unisphere/runtime';
3
+ import { widgetName } from '../widget-types';
4
+ export declare const GtcAgendaToolRuntimeName: "gtc-agenda-tool";
5
+ export type GtcAgendaToolRuntime = UnisphereRuntimeBaseType<GtcAgendaToolRuntimeSettings> & {
6
+ readonly widgetName: typeof widgetName;
7
+ readonly runtimeName: typeof GtcAgendaToolRuntimeName;
8
+ };
9
+ export interface GtcAgendaToolRuntimeSettings {
10
+ schemaVersion?: string;
11
+ }
12
+ export declare const gtcAgendaToolRuntimeSettingsSchema: ValidatorSchema;
@@ -0,0 +1,5 @@
1
+ import { ValidatorSchema } from '@unisphere/core';
2
+ export interface KalturaVideoPlayerToolRuntimeGenieAnswerVisualSettings {
3
+ id: string;
4
+ }
5
+ export declare const kalturaVideoPlayerToolRuntimeGenieAnswerVisualSettingsSchema: ValidatorSchema;
@@ -0,0 +1,2 @@
1
+ export * from './runtime-types';
2
+ export * from './genie-answer-visual-types';
@@ -0,0 +1,15 @@
1
+ import { ValidatorSchema } from '@unisphere/core';
2
+ import { UnisphereRuntimeBaseType } from '@unisphere/runtime';
3
+ import { widgetName } from '../widget-types';
4
+ export declare const KalturaVideoPlayerToolRuntimeName: "kaltura-video-player-tool";
5
+ export type KalturaVideoPlayerToolRuntime = UnisphereRuntimeBaseType<KalturaVideoPlayerToolRuntimeSettings> & {
6
+ readonly widgetName: typeof widgetName;
7
+ readonly runtimeName: typeof KalturaVideoPlayerToolRuntimeName;
8
+ };
9
+ export interface KalturaVideoPlayerToolRuntimeSettings {
10
+ kalturaServerURI: string;
11
+ partnerId: string;
12
+ uiConfId: string;
13
+ ks: string;
14
+ }
15
+ export declare const kalturaVideoPlayerToolRuntimeSettingsSchema: ValidatorSchema;
@@ -0,0 +1 @@
1
+ export * from './runtime-types';
@@ -0,0 +1,37 @@
1
+ import { ValidatorSchema } from '@unisphere/core';
2
+ import { UnisphereRuntimeBaseType, UnisphereService } from '@unisphere/runtime';
3
+ import { widgetName } from '../widget-types';
4
+ export declare const Nvidia2026EventToolRuntimeName: "nvidia-2026-event-tool";
5
+ export type Nvidia2026EventToolRuntime = UnisphereRuntimeBaseType<Nvidia2026EventToolRuntimeSettings> & {
6
+ readonly widgetName: typeof widgetName;
7
+ readonly runtimeName: typeof Nvidia2026EventToolRuntimeName;
8
+ };
9
+ export interface Nvidia2026EventToolRuntimeSettings {
10
+ schemaVersion?: '1';
11
+ }
12
+ export declare const nvidia2026EventToolRuntimeSettingsSchema: ValidatorSchema;
13
+ export interface NvidiaSession {
14
+ sessionId: string;
15
+ title: string;
16
+ summary: string;
17
+ startDate: string;
18
+ endDate: string;
19
+ topic: string;
20
+ industry: string;
21
+ technicalLevel: string;
22
+ intendedAudience: string;
23
+ nvidiaTechnology: string;
24
+ keyTakeaways: string;
25
+ speakers: string;
26
+ language: string;
27
+ location: string;
28
+ type: string;
29
+ room: string;
30
+ entryId: string;
31
+ }
32
+ export interface Nvidia2026EventServiceType extends UnisphereService {
33
+ id: 'unisphere.widgets.genie.nvidia-2026-event';
34
+ getEntryId(sessionId: string): string | null;
35
+ getSession(sessionId: string): NvidiaSession | null;
36
+ getSessionsList(sessionIds: string[]): NvidiaSession[];
37
+ }
@@ -33,6 +33,12 @@ export interface GenieChatServiceType extends UnisphereService {
33
33
  setAnswerModel(model: AnswerModel | undefined): void;
34
34
  getAnswerModel(): AnswerModel | undefined;
35
35
  getUiconfId(): string | null;
36
+ getKalturaPlayerParams(): {
37
+ kalturaServerURI: string;
38
+ partnerId: string;
39
+ uiConfId: string;
40
+ ks: string;
41
+ };
36
42
  setContainerRef(ref: HTMLDivElement | null): void;
37
43
  getContainerRef(): HTMLDivElement | null;
38
44
  get globalChatSettings(): GlobalChatSettings;
@@ -1,2 +0,0 @@
1
- export * from './use-get-widget-service';
2
- export * from './use-watch-tiny-data-storage';
@@ -1,3 +0,0 @@
1
- export declare const useGetWidgetService: <T extends {
2
- id: string;
3
- }>(serviceName: string) => T | null;
@@ -1,4 +0,0 @@
1
- import { TinyDataStoreConsumer } from '@unisphere/core';
2
- export declare function useWatchTinyDataStorage<TData = unknown>(storage?: TinyDataStoreConsumer<TData>, options?: {
3
- equals?: (a: TData | undefined, b: TData | undefined) => boolean;
4
- }): TData | undefined;