@unisphere/genie-types 1.28.0-head.5 → 1.28.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
|
@@ -2227,6 +2227,11 @@ const avatarRuntimeSettingsSchema = {
|
|
|
2227
2227
|
value: 'boolean',
|
|
2228
2228
|
optional: true
|
|
2229
2229
|
},
|
|
2230
|
+
isTapToTalk: {
|
|
2231
|
+
type: 'primitive',
|
|
2232
|
+
value: 'boolean',
|
|
2233
|
+
optional: true
|
|
2234
|
+
},
|
|
2230
2235
|
noiseReductionEnabled: {
|
|
2231
2236
|
type: 'primitive',
|
|
2232
2237
|
value: 'boolean',
|
|
@@ -2289,6 +2294,42 @@ const avatarRuntimeFloaterVisualSettingsSchema = {
|
|
|
2289
2294
|
type: 'enum',
|
|
2290
2295
|
values: ['left', 'right'],
|
|
2291
2296
|
optional: true
|
|
2297
|
+
},
|
|
2298
|
+
buttonLabel: {
|
|
2299
|
+
type: 'primitive',
|
|
2300
|
+
value: 'string',
|
|
2301
|
+
optional: true
|
|
2302
|
+
},
|
|
2303
|
+
connect: {
|
|
2304
|
+
type: 'object',
|
|
2305
|
+
optional: true,
|
|
2306
|
+
properties: {
|
|
2307
|
+
context: {
|
|
2308
|
+
type: 'object',
|
|
2309
|
+
optional: true,
|
|
2310
|
+
properties: {
|
|
2311
|
+
type: {
|
|
2312
|
+
type: 'literal',
|
|
2313
|
+
value: 'thread'
|
|
2314
|
+
},
|
|
2315
|
+
threadId: {
|
|
2316
|
+
type: 'primitive',
|
|
2317
|
+
value: 'string'
|
|
2318
|
+
},
|
|
2319
|
+
messageId: {
|
|
2320
|
+
type: 'primitive',
|
|
2321
|
+
value: 'string',
|
|
2322
|
+
optional: true
|
|
2323
|
+
}
|
|
2324
|
+
}
|
|
2325
|
+
},
|
|
2326
|
+
dynamicVariables: {
|
|
2327
|
+
type: 'object',
|
|
2328
|
+
optional: true,
|
|
2329
|
+
allowUnknownProperties: true,
|
|
2330
|
+
properties: {}
|
|
2331
|
+
}
|
|
2332
|
+
}
|
|
2292
2333
|
}
|
|
2293
2334
|
}
|
|
2294
2335
|
};
|
package/package.json
CHANGED
|
@@ -14,5 +14,16 @@ export interface AvatarRuntimeFloaterVisualSettings {
|
|
|
14
14
|
schemaVersion?: string;
|
|
15
15
|
/** Side of screen where agent panel appears */
|
|
16
16
|
panelSide?: 'left' | 'right';
|
|
17
|
+
/** Label on the lobby button */
|
|
18
|
+
buttonLabel?: string;
|
|
19
|
+
/** Connection options */
|
|
20
|
+
connect?: {
|
|
21
|
+
context?: {
|
|
22
|
+
type: 'thread';
|
|
23
|
+
threadId: string;
|
|
24
|
+
messageId?: string;
|
|
25
|
+
};
|
|
26
|
+
dynamicVariables?: Record<string, unknown>;
|
|
27
|
+
};
|
|
17
28
|
}
|
|
18
29
|
export declare const avatarRuntimeFloaterVisualSettingsSchema: ValidatorSchema;
|
|
@@ -33,6 +33,8 @@ export type AvatarRuntime = UnisphereRuntimeBaseType<AvatarRuntimeSettings> & {
|
|
|
33
33
|
disconnect(): void;
|
|
34
34
|
/** Observable connection status */
|
|
35
35
|
isConnected: TinyDataStoreConsumer<boolean>;
|
|
36
|
+
/** Observable active state — true from connect() call until fully disconnected */
|
|
37
|
+
isActive: TinyDataStoreConsumer<boolean>;
|
|
36
38
|
isPaused: TinyDataStoreConsumer<boolean>;
|
|
37
39
|
captions: Captions;
|
|
38
40
|
registerClientTools<TMap extends Record<string, unknown>>(tools: {
|
|
@@ -91,6 +93,8 @@ export type AvatarServerConfig = {
|
|
|
91
93
|
noiseReductionEnabled?: boolean;
|
|
92
94
|
/** Kaltura sesssion */
|
|
93
95
|
ks: string;
|
|
96
|
+
/** Whether tap-to-talk mode is enabled for this widget (from appInit widgetConfig.tapToTalk) */
|
|
97
|
+
isTapToTalk?: boolean;
|
|
94
98
|
};
|
|
95
99
|
export type AvatarRuntimeSettings = {
|
|
96
100
|
/** Settings schema version */
|
|
@@ -67,6 +67,19 @@ export type AgentScreenShareInfo = {
|
|
|
67
67
|
stream: MediaStream | null;
|
|
68
68
|
analysisReady: boolean;
|
|
69
69
|
};
|
|
70
|
+
/**
|
|
71
|
+
* Tap-to-talk mode state
|
|
72
|
+
*/
|
|
73
|
+
export type AgentTapToTalkInfo = {
|
|
74
|
+
/** Whether tap-to-talk mode is enabled by server config */
|
|
75
|
+
enabled: boolean;
|
|
76
|
+
/** Whether a tap-to-talk recording is currently in progress */
|
|
77
|
+
active: boolean;
|
|
78
|
+
/** Timestamp (ms) when the current recording started, or null when idle */
|
|
79
|
+
startedAt: number | null;
|
|
80
|
+
/** Whether the idle tap-to-talk button should be shown as enabled */
|
|
81
|
+
buttonEnabled: boolean;
|
|
82
|
+
};
|
|
70
83
|
/**
|
|
71
84
|
* Agent kaltura context data
|
|
72
85
|
*/
|
|
@@ -210,6 +223,8 @@ export interface AvatarConnectionProxyType {
|
|
|
210
223
|
readonly screenShareInfo: TinyDataStoreConsumer<AgentScreenShareInfo | null>;
|
|
211
224
|
/** Observable form paused state */
|
|
212
225
|
readonly isAvatarPaused: TinyDataStoreConsumer<boolean>;
|
|
226
|
+
/** Observable tap-to-talk mode state */
|
|
227
|
+
readonly tapToTalkInfo: TinyDataStoreConsumer<AgentTapToTalkInfo | null>;
|
|
213
228
|
/** Observable caption display state — null when feature is disabled */
|
|
214
229
|
readonly captions: TinyDataStoreConsumer<CaptionState | null>;
|
|
215
230
|
/** Unique connection identifier */
|
|
@@ -228,6 +243,10 @@ export interface AvatarConnectionProxyType {
|
|
|
228
243
|
resumeAvatar(): void;
|
|
229
244
|
/** Request avatar pause after current speech finishes */
|
|
230
245
|
pauseAvatarAfterSpeaking(): void;
|
|
246
|
+
/** Start a tap-to-talk recording */
|
|
247
|
+
tapToTalkStart(): void;
|
|
248
|
+
/** End the current tap-to-talk recording */
|
|
249
|
+
tapToTalkEnd(): void;
|
|
231
250
|
/** Clear current visual content */
|
|
232
251
|
clearContent(): void;
|
|
233
252
|
/** Toggle caption visibility on/off (no effect when feature is disabled) */
|