@unisphere/genie-types 1.34.5 → 1.35.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
|
@@ -2298,69 +2298,41 @@ const avatarRuntimeChatVisualSettingsSchema = {
|
|
|
2298
2298
|
}
|
|
2299
2299
|
};
|
|
2300
2300
|
|
|
2301
|
-
const
|
|
2302
|
-
type: 'object',
|
|
2303
|
-
properties: {
|
|
2304
|
-
schemaVersion: {
|
|
2305
|
-
type: 'literal',
|
|
2306
|
-
value: '1',
|
|
2307
|
-
optional: true
|
|
2308
|
-
}
|
|
2309
|
-
}
|
|
2310
|
-
};
|
|
2311
|
-
|
|
2312
|
-
const avatarRuntimeFloaterVisualSettingsSchema = {
|
|
2301
|
+
const avatarRuntimeConnectSettingsSchema = {
|
|
2313
2302
|
type: 'object',
|
|
2303
|
+
optional: true,
|
|
2314
2304
|
properties: {
|
|
2315
|
-
|
|
2316
|
-
type: 'literal',
|
|
2317
|
-
value: '1',
|
|
2318
|
-
optional: true
|
|
2319
|
-
},
|
|
2320
|
-
panelSide: {
|
|
2321
|
-
type: 'enum',
|
|
2322
|
-
values: ['left', 'right'],
|
|
2323
|
-
optional: true
|
|
2324
|
-
},
|
|
2325
|
-
buttonLabel: {
|
|
2326
|
-
type: 'primitive',
|
|
2327
|
-
value: 'string',
|
|
2328
|
-
optional: true
|
|
2329
|
-
},
|
|
2330
|
-
connect: {
|
|
2305
|
+
context: {
|
|
2331
2306
|
type: 'object',
|
|
2332
2307
|
optional: true,
|
|
2333
2308
|
properties: {
|
|
2334
|
-
|
|
2335
|
-
type: '
|
|
2336
|
-
|
|
2337
|
-
properties: {
|
|
2338
|
-
type: {
|
|
2339
|
-
type: 'literal',
|
|
2340
|
-
value: 'thread'
|
|
2341
|
-
},
|
|
2342
|
-
threadId: {
|
|
2343
|
-
type: 'primitive',
|
|
2344
|
-
value: 'string'
|
|
2345
|
-
},
|
|
2346
|
-
messageId: {
|
|
2347
|
-
type: 'primitive',
|
|
2348
|
-
value: 'string',
|
|
2349
|
-
optional: true
|
|
2350
|
-
}
|
|
2351
|
-
}
|
|
2309
|
+
type: {
|
|
2310
|
+
type: 'literal',
|
|
2311
|
+
value: 'thread'
|
|
2352
2312
|
},
|
|
2353
|
-
|
|
2354
|
-
type: '
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2313
|
+
threadId: {
|
|
2314
|
+
type: 'primitive',
|
|
2315
|
+
value: 'string'
|
|
2316
|
+
},
|
|
2317
|
+
messageId: {
|
|
2318
|
+
type: 'primitive',
|
|
2319
|
+
value: 'string',
|
|
2320
|
+
optional: true
|
|
2358
2321
|
}
|
|
2359
2322
|
}
|
|
2323
|
+
},
|
|
2324
|
+
dynamicVariables: {
|
|
2325
|
+
type: 'object',
|
|
2326
|
+
optional: true,
|
|
2327
|
+
allowUnknownProperties: true,
|
|
2328
|
+
properties: {}
|
|
2329
|
+
},
|
|
2330
|
+
onThreadIdChange: {
|
|
2331
|
+
type: 'function',
|
|
2332
|
+
optional: true
|
|
2360
2333
|
}
|
|
2361
2334
|
}
|
|
2362
2335
|
};
|
|
2363
|
-
|
|
2364
2336
|
/**
|
|
2365
2337
|
* Audio device types for avatar connections.
|
|
2366
2338
|
*/
|
|
@@ -2416,6 +2388,40 @@ const isAvatarConnectionProxyInternalType = x => {
|
|
|
2416
2388
|
return '__webSocket' in x && typeof ((_a = x.__webSocket) === null || _a === void 0 ? void 0 : _a.onChanges) === 'function';
|
|
2417
2389
|
};
|
|
2418
2390
|
|
|
2391
|
+
const avatarRuntimeContainedVisualSettingsSchema = {
|
|
2392
|
+
type: 'object',
|
|
2393
|
+
properties: {
|
|
2394
|
+
schemaVersion: {
|
|
2395
|
+
type: 'literal',
|
|
2396
|
+
value: '1',
|
|
2397
|
+
optional: true
|
|
2398
|
+
},
|
|
2399
|
+
connect: avatarRuntimeConnectSettingsSchema
|
|
2400
|
+
}
|
|
2401
|
+
};
|
|
2402
|
+
|
|
2403
|
+
const avatarRuntimeFloaterVisualSettingsSchema = {
|
|
2404
|
+
type: 'object',
|
|
2405
|
+
properties: {
|
|
2406
|
+
schemaVersion: {
|
|
2407
|
+
type: 'literal',
|
|
2408
|
+
value: '1',
|
|
2409
|
+
optional: true
|
|
2410
|
+
},
|
|
2411
|
+
panelSide: {
|
|
2412
|
+
type: 'enum',
|
|
2413
|
+
values: ['left', 'right'],
|
|
2414
|
+
optional: true
|
|
2415
|
+
},
|
|
2416
|
+
buttonLabel: {
|
|
2417
|
+
type: 'primitive',
|
|
2418
|
+
value: 'string',
|
|
2419
|
+
optional: true
|
|
2420
|
+
},
|
|
2421
|
+
connect: avatarRuntimeConnectSettingsSchema
|
|
2422
|
+
}
|
|
2423
|
+
};
|
|
2424
|
+
|
|
2419
2425
|
var iterators = {};
|
|
2420
2426
|
|
|
2421
2427
|
var fails$3 = fails$e;
|
|
@@ -3416,4 +3422,4 @@ const chatThreadRuntimeContainedVisualSettingsSchema = {
|
|
|
3416
3422
|
}
|
|
3417
3423
|
};
|
|
3418
3424
|
|
|
3419
|
-
export { AVATAR_DEFAULT_CAPABILITIES, AnswerModelEnum, AnswerTypeEnum, AvatarConnectionStatus, AvatarRuntimeName, CHAT_CONTEXT_TYPE, CHAT_CONTEXT_TYPE_GLOBAL, CHAT_DEFAULT_CAPABILITIES, ChatRuntimeName, ChatThreadRuntimeName, DeviceType, DisconnectReasons, SUPPORTED_LAYOUT_TYPES, agentModeSchema, avatarContainerModeSchema, avatarRuntimeChatVisualSettingsSchema, avatarRuntimeContainedVisualSettingsSchema, avatarRuntimeFloaterVisualSettingsSchema, avatarRuntimeHeadFloaterVisualSettingsSchema, avatarRuntimeHeadlessVisualSettingsSchema, avatarRuntimeSettingsSchema, bannerVisualSettingsSchema, blockVisualContextSchema, chatContextSchema, chatCustomizationSchema, chatRuntimePlayerPluginSettingsSchema, chatRuntimeSettingsSchema, chatThreadRuntimeContainedVisualSettingsSchema, chatThreadRuntimeSettingsSchema, containedVisualSettingsSchema, dynamicVariablesSchema, floaterCTAVisualSettingsSchema, floaterVisualSettingsSchema, getAvatarDefaultCapabilities, getChatDefaultCapabilities, getResolvedRuntimeName, getResolvedWidgetName, getSourceUrlSchema, integrationsSchema, isAvatarConnectionProxyInternalType, pageVisualSettingsSchema, popupVisualSettingsSchema, resolveActiveContextType, schemaVersionSchema, shareUrlSchema, widgetName };
|
|
3425
|
+
export { AVATAR_DEFAULT_CAPABILITIES, AnswerModelEnum, AnswerTypeEnum, AvatarConnectionStatus, AvatarRuntimeName, CHAT_CONTEXT_TYPE, CHAT_CONTEXT_TYPE_GLOBAL, CHAT_DEFAULT_CAPABILITIES, ChatRuntimeName, ChatThreadRuntimeName, DeviceType, DisconnectReasons, SUPPORTED_LAYOUT_TYPES, agentModeSchema, avatarContainerModeSchema, avatarRuntimeChatVisualSettingsSchema, avatarRuntimeConnectSettingsSchema, avatarRuntimeContainedVisualSettingsSchema, avatarRuntimeFloaterVisualSettingsSchema, avatarRuntimeHeadFloaterVisualSettingsSchema, avatarRuntimeHeadlessVisualSettingsSchema, avatarRuntimeSettingsSchema, bannerVisualSettingsSchema, blockVisualContextSchema, chatContextSchema, chatCustomizationSchema, chatRuntimePlayerPluginSettingsSchema, chatRuntimeSettingsSchema, chatThreadRuntimeContainedVisualSettingsSchema, chatThreadRuntimeSettingsSchema, containedVisualSettingsSchema, dynamicVariablesSchema, floaterCTAVisualSettingsSchema, floaterVisualSettingsSchema, getAvatarDefaultCapabilities, getChatDefaultCapabilities, getResolvedRuntimeName, getResolvedWidgetName, getSourceUrlSchema, integrationsSchema, isAvatarConnectionProxyInternalType, pageVisualSettingsSchema, popupVisualSettingsSchema, resolveActiveContextType, schemaVersionSchema, shareUrlSchema, widgetName };
|
package/package.json
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ValidatorSchema } from '@unisphere/core';
|
|
2
|
+
import { AvatarRuntimeConnectSettings } from './shared-types';
|
|
2
3
|
/**
|
|
3
4
|
* Visual settings for contained/embedded avatar display mode.
|
|
4
5
|
*
|
|
@@ -10,5 +11,7 @@ import { ValidatorSchema } from '@unisphere/core';
|
|
|
10
11
|
export interface AvatarRuntimeContainedVisualSettings {
|
|
11
12
|
/** Settings schema version */
|
|
12
13
|
schemaVersion?: string;
|
|
14
|
+
/** Connection options */
|
|
15
|
+
connect?: AvatarRuntimeConnectSettings;
|
|
13
16
|
}
|
|
14
17
|
export declare const avatarRuntimeContainedVisualSettingsSchema: ValidatorSchema;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ValidatorSchema } from '@unisphere/core';
|
|
2
|
+
import { AvatarRuntimeConnectSettings } from './shared-types';
|
|
2
3
|
/**
|
|
3
4
|
* Visual settings for avatar agent display mode.
|
|
4
5
|
*
|
|
@@ -17,13 +18,6 @@ export interface AvatarRuntimeFloaterVisualSettings {
|
|
|
17
18
|
/** Label on the lobby button */
|
|
18
19
|
buttonLabel?: string;
|
|
19
20
|
/** Connection options */
|
|
20
|
-
connect?:
|
|
21
|
-
context?: {
|
|
22
|
-
type: 'thread';
|
|
23
|
-
threadId: string;
|
|
24
|
-
messageId?: string;
|
|
25
|
-
};
|
|
26
|
-
dynamicVariables?: Record<string, unknown>;
|
|
27
|
-
};
|
|
21
|
+
connect?: AvatarRuntimeConnectSettings;
|
|
28
22
|
}
|
|
29
23
|
export declare const avatarRuntimeFloaterVisualSettingsSchema: ValidatorSchema;
|
|
@@ -1,8 +1,22 @@
|
|
|
1
|
-
import { TinyDataStoreConsumer } from '@unisphere/core';
|
|
1
|
+
import { TinyDataStoreConsumer, ValidatorSchema } from '@unisphere/core';
|
|
2
2
|
import { DeviceEnumerationResult } from '@kaltura-sdk/rtc-core';
|
|
3
3
|
import type { ChatEntry, ClientToolCallLogEntry } from './chat-types';
|
|
4
4
|
import { ChatContext } from '../chat-runtime';
|
|
5
5
|
import type { Captions } from './runtime-types';
|
|
6
|
+
/**
|
|
7
|
+
* Connection options shared by avatar visuals (floater, contained, ...).
|
|
8
|
+
*/
|
|
9
|
+
export interface AvatarRuntimeConnectSettings {
|
|
10
|
+
context?: {
|
|
11
|
+
type: 'thread';
|
|
12
|
+
threadId: string;
|
|
13
|
+
messageId?: string;
|
|
14
|
+
};
|
|
15
|
+
dynamicVariables?: Record<string, unknown>;
|
|
16
|
+
/** Called every time the active thread id changes */
|
|
17
|
+
onThreadIdChange?: (threadId: string) => void;
|
|
18
|
+
}
|
|
19
|
+
export declare const avatarRuntimeConnectSettingsSchema: ValidatorSchema;
|
|
6
20
|
/**
|
|
7
21
|
* Audio device types for avatar connections.
|
|
8
22
|
*/
|