@unisphere/genie-types 1.36.0 → 1.37.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
@@ -2396,7 +2396,28 @@ const avatarRuntimeContainedVisualSettingsSchema = {
2396
2396
  value: '1',
2397
2397
  optional: true
2398
2398
  },
2399
- connect: avatarRuntimeConnectSettingsSchema
2399
+ connect: avatarRuntimeConnectSettingsSchema,
2400
+ stageMode: {
2401
+ type: 'enum',
2402
+ values: ['contained', 'full-screen'],
2403
+ optional: true
2404
+ },
2405
+ lobbyButton: {
2406
+ type: 'object',
2407
+ optional: true,
2408
+ properties: {
2409
+ type: {
2410
+ type: 'literal',
2411
+ value: 'custom'
2412
+ },
2413
+ onMount: {
2414
+ type: 'function'
2415
+ },
2416
+ onUnMount: {
2417
+ type: 'function'
2418
+ }
2419
+ }
2420
+ }
2400
2421
  }
2401
2422
  };
2402
2423
 
@@ -3351,7 +3372,20 @@ const avatarRuntimeHeadFloaterVisualSettingsSchema = {
3351
3372
  type: 'literal',
3352
3373
  value: '1',
3353
3374
  optional: true
3354
- }
3375
+ },
3376
+ controls: {
3377
+ type: 'object',
3378
+ optional: true,
3379
+ properties: {
3380
+ onMount: {
3381
+ type: 'function'
3382
+ },
3383
+ onUnMount: {
3384
+ type: 'function'
3385
+ }
3386
+ }
3387
+ },
3388
+ connect: avatarRuntimeConnectSettingsSchema
3355
3389
  }
3356
3390
  };
3357
3391
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unisphere/genie-types",
3
- "version": "1.36.0",
3
+ "version": "1.37.1",
4
4
  "author": "kaltura",
5
5
  "license": "AGPL-3.0",
6
6
  "repository": {
@@ -13,5 +13,19 @@ export interface AvatarRuntimeContainedVisualSettings {
13
13
  schemaVersion?: string;
14
14
  /** Connection options */
15
15
  connect?: AvatarRuntimeConnectSettings;
16
+ /** Stage presentation mode: inline within the container or full-screen dialog */
17
+ stageMode?: 'contained' | 'full-screen';
18
+ /**
19
+ * Lobby button shown before the avatar connects.
20
+ * - omitted: default built-in lobby button
21
+ * - `null`: no lobby button rendered
22
+ * - `{ type: 'custom', ... }`: host renders its own button into the container,
23
+ * notified via `onMount`/`onUnMount`
24
+ */
25
+ lobbyButton?: {
26
+ type: 'custom';
27
+ onMount: (containerId: string) => void;
28
+ onUnMount: (containerId: string) => void;
29
+ } | null;
16
30
  }
17
31
  export declare const avatarRuntimeContainedVisualSettingsSchema: ValidatorSchema;
@@ -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;