@unisphere/genie-types 1.37.1 → 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 +11 -1
- 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/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
|
|
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 {
|
|
@@ -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;
|