@unisphere/genie-types 1.37.0 → 1.37.3-hotfix.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 +25 -2
- package/package.json +1 -1
- package/src/lib/avatar-runtime/contained-visual-types.d.ts +3 -0
- package/src/lib/avatar-runtime/floater-visual-types.d.ts +3 -0
- package/src/lib/avatar-runtime/runtime-types.d.ts +3 -0
- package/src/lib/avatar-runtime/runtime-visuals/head-floater-visual-types.d.ts +11 -0
- package/src/lib/avatar-runtime/shared-types.d.ts +2 -0
- package/src/lib/avatar-runtime/visual-bridge-types.d.ts +1 -0
package/index.esm.js
CHANGED
|
@@ -2417,6 +2417,11 @@ const avatarRuntimeContainedVisualSettingsSchema = {
|
|
|
2417
2417
|
type: 'function'
|
|
2418
2418
|
}
|
|
2419
2419
|
}
|
|
2420
|
+
},
|
|
2421
|
+
forceOrientation: {
|
|
2422
|
+
type: 'enum',
|
|
2423
|
+
values: ['portrait', 'landscape'],
|
|
2424
|
+
optional: true
|
|
2420
2425
|
}
|
|
2421
2426
|
}
|
|
2422
2427
|
};
|
|
@@ -2439,7 +2444,12 @@ const avatarRuntimeFloaterVisualSettingsSchema = {
|
|
|
2439
2444
|
value: 'string',
|
|
2440
2445
|
optional: true
|
|
2441
2446
|
},
|
|
2442
|
-
connect: avatarRuntimeConnectSettingsSchema
|
|
2447
|
+
connect: avatarRuntimeConnectSettingsSchema,
|
|
2448
|
+
forceOrientation: {
|
|
2449
|
+
type: 'enum',
|
|
2450
|
+
values: ['portrait', 'landscape'],
|
|
2451
|
+
optional: true
|
|
2452
|
+
}
|
|
2443
2453
|
}
|
|
2444
2454
|
};
|
|
2445
2455
|
|
|
@@ -3372,7 +3382,20 @@ const avatarRuntimeHeadFloaterVisualSettingsSchema = {
|
|
|
3372
3382
|
type: 'literal',
|
|
3373
3383
|
value: '1',
|
|
3374
3384
|
optional: true
|
|
3375
|
-
}
|
|
3385
|
+
},
|
|
3386
|
+
controls: {
|
|
3387
|
+
type: 'object',
|
|
3388
|
+
optional: true,
|
|
3389
|
+
properties: {
|
|
3390
|
+
onMount: {
|
|
3391
|
+
type: 'function'
|
|
3392
|
+
},
|
|
3393
|
+
onUnMount: {
|
|
3394
|
+
type: 'function'
|
|
3395
|
+
}
|
|
3396
|
+
}
|
|
3397
|
+
},
|
|
3398
|
+
connect: avatarRuntimeConnectSettingsSchema
|
|
3376
3399
|
}
|
|
3377
3400
|
};
|
|
3378
3401
|
|
package/package.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ValidatorSchema } from '@unisphere/core';
|
|
2
2
|
import { AvatarRuntimeConnectSettings } from './shared-types';
|
|
3
|
+
import { ForceOrientation } from './visual-bridge-types';
|
|
3
4
|
/**
|
|
4
5
|
* Visual settings for contained/embedded avatar display mode.
|
|
5
6
|
*
|
|
@@ -27,5 +28,7 @@ export interface AvatarRuntimeContainedVisualSettings {
|
|
|
27
28
|
onMount: (containerId: string) => void;
|
|
28
29
|
onUnMount: (containerId: string) => void;
|
|
29
30
|
} | null;
|
|
31
|
+
/** Forces the stage into a stacked or side-by-side layout, regardless of viewport width/orientation */
|
|
32
|
+
forceOrientation?: ForceOrientation;
|
|
30
33
|
}
|
|
31
34
|
export declare const avatarRuntimeContainedVisualSettingsSchema: ValidatorSchema;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ValidatorSchema } from '@unisphere/core';
|
|
2
2
|
import { AvatarRuntimeConnectSettings } from './shared-types';
|
|
3
|
+
import { ForceOrientation } from './visual-bridge-types';
|
|
3
4
|
/**
|
|
4
5
|
* Visual settings for avatar agent display mode.
|
|
5
6
|
*
|
|
@@ -19,5 +20,7 @@ export interface AvatarRuntimeFloaterVisualSettings {
|
|
|
19
20
|
buttonLabel?: string;
|
|
20
21
|
/** Connection options */
|
|
21
22
|
connect?: AvatarRuntimeConnectSettings;
|
|
23
|
+
/** Forces the stage into a stacked or side-by-side layout, regardless of viewport width/orientation */
|
|
24
|
+
forceOrientation?: ForceOrientation;
|
|
22
25
|
}
|
|
23
26
|
export declare const avatarRuntimeFloaterVisualSettingsSchema: ValidatorSchema;
|
|
@@ -3,6 +3,7 @@ import { UnisphereRuntimeBaseType } from '@unisphere/runtime';
|
|
|
3
3
|
import { widgetName } from '../widget-types';
|
|
4
4
|
import { ChatContext, GenieCapabilities } from '../chat-runtime/shared-settings';
|
|
5
5
|
import { AgentScreenShareInfo, AgentTapToTalkInfo, AvatarConnectionStatus, CaptionConfig, CaptionState } from './shared-types';
|
|
6
|
+
import { ChatEntry } from './chat-types';
|
|
6
7
|
/** Runtime name constant for avatar experiences */
|
|
7
8
|
export declare const AvatarRuntimeName: "avatar";
|
|
8
9
|
export interface Captions {
|
|
@@ -88,6 +89,8 @@ export type AvatarRuntime = UnisphereRuntimeBaseType<AvatarRuntimeSettings> & {
|
|
|
88
89
|
askViaText(question: string): void;
|
|
89
90
|
/** Update dynamic variables */
|
|
90
91
|
updateDynamicVariables(variables: Record<string, unknown>): void;
|
|
92
|
+
/** Observable chat log entries */
|
|
93
|
+
chatLog: TinyDataStoreConsumer<ChatEntry[]>;
|
|
91
94
|
};
|
|
92
95
|
/** Event emitted when the avatar brain invokes a tool call */
|
|
93
96
|
export interface AvatarToolCallEvent {
|
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
import { ValidatorSchema } from '@unisphere/core';
|
|
2
|
+
import { AvatarRuntimeConnectSettings } from '../shared-types';
|
|
2
3
|
export interface AvatarRuntimeHeadFloaterVisualSettings {
|
|
3
4
|
schemaVersion?: string;
|
|
5
|
+
/**
|
|
6
|
+
* Host-attached UI controls (e.g. mute, closed captions, end call)
|
|
7
|
+
* rendered around the floater circle and dragged along with it.
|
|
8
|
+
* Host renders into the given container id, notified via `onMount`/`onUnMount`.
|
|
9
|
+
*/
|
|
10
|
+
controls?: {
|
|
11
|
+
onMount: (containerId: string) => void;
|
|
12
|
+
onUnMount: (containerId: string) => void;
|
|
13
|
+
} | null;
|
|
14
|
+
connect?: AvatarRuntimeConnectSettings;
|
|
4
15
|
}
|
|
5
16
|
export declare const avatarRuntimeHeadFloaterVisualSettingsSchema: ValidatorSchema;
|
|
@@ -340,6 +340,8 @@ export interface AvatarClientManagerType {
|
|
|
340
340
|
};
|
|
341
341
|
onThreadIdChange?: (threadId: string) => void;
|
|
342
342
|
dynamicVariables?: Record<string, unknown>;
|
|
343
|
+
/** Overrides runtime-settings `features.kickOffPhrase` for this connection only */
|
|
344
|
+
kickOffPhrase?: string;
|
|
343
345
|
}): void;
|
|
344
346
|
/** Tear down the current connection */
|
|
345
347
|
disconnect(): void;
|
|
@@ -13,6 +13,7 @@ export interface SlotEntry {
|
|
|
13
13
|
mode: SlotMode;
|
|
14
14
|
}
|
|
15
15
|
export type LayoutType = 'cinema' | 'focusContent' | 'balanced' | 'floatingCorner' | 'fullscreenContent';
|
|
16
|
+
export type ForceOrientation = 'portrait' | 'landscape';
|
|
16
17
|
export declare const SUPPORTED_LAYOUT_TYPES: Set<string>;
|
|
17
18
|
export interface LayoutConfig {
|
|
18
19
|
type: LayoutType;
|