@unisphere/genie-types 1.19.3 → 1.20.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/index.esm.js CHANGED
@@ -3115,17 +3115,17 @@ const clipSchema = {
3115
3115
  type: {
3116
3116
  type: 'primitive',
3117
3117
  value: 'string',
3118
- optional: 'nullable'
3118
+ optional: true
3119
3119
  },
3120
3120
  thumbnail: {
3121
3121
  type: 'primitive',
3122
3122
  value: 'string',
3123
- optional: 'nullable'
3123
+ optional: true
3124
3124
  },
3125
3125
  video_link: {
3126
3126
  type: 'primitive',
3127
3127
  value: 'string',
3128
- optional: 'nullable'
3128
+ optional: true
3129
3129
  }
3130
3130
  }
3131
3131
  };
@@ -3139,7 +3139,7 @@ const videoSlideSchema = {
3139
3139
  text: {
3140
3140
  type: 'primitive',
3141
3141
  value: 'string',
3142
- optional: 'nullable'
3142
+ optional: true
3143
3143
  },
3144
3144
  citation: {
3145
3145
  type: 'object',
@@ -3165,7 +3165,7 @@ const textSlideSchema = {
3165
3165
  },
3166
3166
  citation: {
3167
3167
  type: 'any',
3168
- optional: 'nullable'
3168
+ optional: true
3169
3169
  }
3170
3170
  }
3171
3171
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unisphere/genie-types",
3
- "version": "1.19.3",
3
+ "version": "1.20.0",
4
4
  "author": "kaltura",
5
5
  "license": "AGPL-3.0",
6
6
  "repository": {
@@ -9,8 +9,8 @@
9
9
  },
10
10
  "types": "./src/index.d.ts",
11
11
  "dependencies": {
12
- "@kaltura-sdk/rtc-core": "^1.25.11",
13
- "@unisphere/core": "^1.97.1",
12
+ "@kaltura-sdk/rtc-core": "^1.25.12",
13
+ "@unisphere/core": "^1.98.0",
14
14
  "@unisphere/runtime": "^1.97.0"
15
15
  },
16
16
  "module": "./index.esm.js",
@@ -96,6 +96,14 @@ export type AgentData = {
96
96
  messageId?: string;
97
97
  };
98
98
  };
99
+ /**
100
+ * Agent screen sharing data
101
+ */
102
+ export type AgentScreenShareInfo = {
103
+ active: boolean;
104
+ stream: MediaStream | null;
105
+ analysisReady: boolean;
106
+ };
99
107
  /**
100
108
  * Content data for avatar tool integrations.
101
109
  *
@@ -199,10 +207,8 @@ export interface AvatarConnectionProxyType {
199
207
  readonly threadId: TinyDataStoreConsumer<string | null>;
200
208
  /** Observable chat log entries */
201
209
  readonly chatLog: TinyDataStoreConsumer<ChatEntry[]>;
202
- /** Observable screen share active state */
203
- readonly screenShareActive: TinyDataStoreConsumer<boolean>;
204
- /** Observable screen share stream */
205
- readonly screenShareStream: TinyDataStoreConsumer<MediaStream | null>;
210
+ /** Observable screen share info state */
211
+ readonly screenShareInfo: TinyDataStoreConsumer<AgentScreenShareInfo | null>;
206
212
  /** Unique connection identifier */
207
213
  readonly id: string;
208
214
  /** Send text message to avatar */
@@ -219,7 +225,6 @@ export interface AvatarConnectionProxyType {
219
225
  export declare const isAvatarConnectionProxyInternalType: (x: any) => x is AvatarConnectionProxInternalType;
220
226
  export interface AvatarServiceType extends UnisphereService {
221
227
  id: 'unisphere.widgets.genie.avatar';
222
- status: TinyDataStoreConsumer<AvatarClientStatus>;
223
228
  connection: TinyDataStoreConsumer<AvatarConnectionProxyType | null>;
224
229
  audioState: TinyDataStoreConsumer<{
225
230
  muted: boolean;
@@ -228,10 +233,6 @@ export interface AvatarServiceType extends UnisphereService {
228
233
  devicesList: TinyDataStoreConsumer<UserDevicesList | null>;
229
234
  agentPreviewUrl: TinyDataStoreConsumer<string | null>;
230
235
  agentPreviewImageUrl: TinyDataStoreConsumer<string | null>;
231
- agentStatus: TinyDataStoreConsumer<{
232
- available: boolean;
233
- reason?: AgentUnavailabilityReasons;
234
- } | null>;
235
236
  threadId: TinyDataStoreConsumer<string | null>;
236
237
  setThreadId(id: string | null): void;
237
238
  isPreviewMode: TinyDataStoreConsumer<boolean>;
@@ -2,16 +2,15 @@ import { ValidatorSchema } from '@unisphere/core';
2
2
  export interface VideoClip {
3
3
  start_index: number;
4
4
  last_index: number;
5
- entry_id: string | null;
5
+ entry_id?: string;
6
6
  start_time: number;
7
7
  end_time: number;
8
- type: string | null;
9
- thumbnail: string | null;
10
- video_link: string | null;
8
+ type?: string;
9
+ thumbnail?: string;
10
+ video_link?: string;
11
11
  }
12
12
  export interface VideoSlide {
13
13
  slide_type: 'video';
14
- text: string | null;
15
14
  citation: {
16
15
  clips: VideoClip[];
17
16
  };
@@ -19,7 +18,6 @@ export interface VideoSlide {
19
18
  export interface TextSlide {
20
19
  slide_type: 'text';
21
20
  text: string;
22
- citation: null;
23
21
  }
24
22
  export type Slide = VideoSlide | TextSlide;
25
23
  export type ContentGalleryToolVisualsBaseSettings = {