@unisphere/genie-types 1.18.0-avatar-chat.1 → 1.19.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
@@ -2090,6 +2090,22 @@ const avatarRuntimeSettingsSchema = {
2090
2090
  optional: true
2091
2091
  }
2092
2092
  }
2093
+ },
2094
+ features: {
2095
+ type: 'object',
2096
+ optional: true,
2097
+ properties: {
2098
+ screenShare: {
2099
+ type: 'primitive',
2100
+ value: 'boolean',
2101
+ optional: true
2102
+ },
2103
+ chat: {
2104
+ type: 'primitive',
2105
+ value: 'boolean',
2106
+ optional: true
2107
+ }
2108
+ }
2093
2109
  }
2094
2110
  }
2095
2111
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unisphere/genie-types",
3
- "version": "1.18.0-avatar-chat.1",
3
+ "version": "1.19.0",
4
4
  "author": "kaltura",
5
5
  "license": "AGPL-3.0",
6
6
  "repository": {
@@ -9,7 +9,7 @@
9
9
  },
10
10
  "types": "./src/index.d.ts",
11
11
  "dependencies": {
12
- "@kaltura-sdk/rtc-core": "^1.25.2",
12
+ "@kaltura-sdk/rtc-core": "^1.25.8",
13
13
  "@unisphere/core": "^1.97.1",
14
14
  "@unisphere/runtime": "^1.97.0"
15
15
  },
@@ -199,6 +199,10 @@ export interface AvatarConnectionProxyType {
199
199
  readonly threadId: TinyDataStoreConsumer<string | null>;
200
200
  /** Observable chat log entries */
201
201
  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>;
202
206
  /** Unique connection identifier */
203
207
  readonly id: string;
204
208
  /** Send text message to avatar */
@@ -207,6 +211,10 @@ export interface AvatarConnectionProxyType {
207
211
  sendDirectEvent(message: string, data: unknown): void;
208
212
  /** Terminate the avatar connection */
209
213
  destroy(): void;
214
+ /** Start screen sharing */
215
+ startScreenShare(): void;
216
+ /** Stop screen sharing */
217
+ stopScreenShare(): void;
210
218
  }
211
219
  export declare const isAvatarConnectionProxyInternalType: (x: any) => x is AvatarConnectionProxInternalType;
212
220
  export interface AvatarServiceType extends UnisphereService {
@@ -227,6 +235,10 @@ export interface AvatarServiceType extends UnisphereService {
227
235
  threadId: TinyDataStoreConsumer<string | null>;
228
236
  setThreadId(id: string | null): void;
229
237
  isPreviewMode: TinyDataStoreConsumer<boolean>;
238
+ features: TinyDataStoreConsumer<{
239
+ screenShare?: boolean;
240
+ chat?: boolean;
241
+ } | undefined>;
230
242
  connect(options?: {
231
243
  threadId?: string;
232
244
  messageId?: string;
@@ -105,5 +105,12 @@ export interface AvatarRuntimeSettings {
105
105
  /** UI configuration ID */
106
106
  uiConfId?: string;
107
107
  };
108
+ /** Feature flags for the avatar runtime */
109
+ features?: {
110
+ /** Enable screen sharing */
111
+ screenShare?: boolean;
112
+ /** Enable chat */
113
+ chat?: boolean;
114
+ };
108
115
  }
109
116
  export declare const avatarRuntimeSettingsSchema: ValidatorSchema;