@unisphere/genie-types 1.18.0 → 1.19.1
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
|
@@ -1085,9 +1085,7 @@ const getChatDefaultCapabilities = context => {
|
|
|
1085
1085
|
use_knowledge_base: 'off',
|
|
1086
1086
|
use_content_search: 'off',
|
|
1087
1087
|
use_get_entry_content: 'off',
|
|
1088
|
-
|
|
1089
|
-
include_sources: 'off',
|
|
1090
|
-
use_related_files: 'off'
|
|
1088
|
+
include_sources: 'off'
|
|
1091
1089
|
});
|
|
1092
1090
|
}
|
|
1093
1091
|
return CHAT_DEFAULT_CAPABILITIES;
|
|
@@ -2090,6 +2088,22 @@ const avatarRuntimeSettingsSchema = {
|
|
|
2090
2088
|
optional: true
|
|
2091
2089
|
}
|
|
2092
2090
|
}
|
|
2091
|
+
},
|
|
2092
|
+
features: {
|
|
2093
|
+
type: 'object',
|
|
2094
|
+
optional: true,
|
|
2095
|
+
properties: {
|
|
2096
|
+
screenShare: {
|
|
2097
|
+
type: 'primitive',
|
|
2098
|
+
value: 'boolean',
|
|
2099
|
+
optional: true
|
|
2100
|
+
},
|
|
2101
|
+
chat: {
|
|
2102
|
+
type: 'primitive',
|
|
2103
|
+
value: 'boolean',
|
|
2104
|
+
optional: true
|
|
2105
|
+
}
|
|
2106
|
+
}
|
|
2093
2107
|
}
|
|
2094
2108
|
}
|
|
2095
2109
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unisphere/genie-types",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.19.1",
|
|
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.
|
|
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;
|