@unisphere/genie-types 1.41.0 → 1.42.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
@@ -2356,6 +2356,11 @@ const featuresSchema = {
2356
2356
  type: 'primitive',
2357
2357
  value: 'boolean',
2358
2358
  optional: true
2359
+ },
2360
+ persistentContent: {
2361
+ type: 'primitive',
2362
+ value: 'boolean',
2363
+ optional: true
2359
2364
  }
2360
2365
  }
2361
2366
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unisphere/genie-types",
3
- "version": "1.41.0",
3
+ "version": "1.42.0",
4
4
  "author": "kaltura",
5
5
  "license": "AGPL-3.0",
6
6
  "repository": {
@@ -183,6 +183,13 @@ export type AvatarRuntimeSettings = {
183
183
  * "I'm done watching" to continue. Defaults to true, except for specific partners/environments.
184
184
  */
185
185
  inlineClipPlayback?: boolean;
186
+ /**
187
+ * Experimental. Stage content persists across agent turns instead of being replaced per turn:
188
+ * a turn without a tool block keeps the current content, the same tool re-emitted updates the
189
+ * mounted visual in place, and a ```stage action: clear``` block clears it. The current stage is
190
+ * pushed to the agent as the `avatar_stage` request variable. Defaults to false.
191
+ */
192
+ persistentContent?: boolean;
186
193
  };
187
194
  /** Full URL to POST client-tool-call responses to (e.g. `https://genie.example.com/assistant/tool_response`). Required for client tool calls to receive a response. Applies to both `manual` and `studio` modes. */
188
195
  clientToolResponseUrl?: string;
@@ -85,6 +85,18 @@ export type AgentScreenShareInfo = {
85
85
  stream: MediaStream | null;
86
86
  analysisReady: boolean;
87
87
  };
88
+ /**
89
+ * Step progress indicator driven by the agent's ```ui-progress-bar``` fence.
90
+ * Rendered above the stage, independent of stage content and layout.
91
+ */
92
+ export type AgentProgressBar = {
93
+ visible: boolean;
94
+ totalSteps: number;
95
+ /** 1-based index of the step in progress */
96
+ currentStep: number;
97
+ type: 'dots';
98
+ variant?: string;
99
+ };
88
100
  /**
89
101
  * Tap-to-talk mode state
90
102
  */
@@ -136,6 +148,8 @@ export type AvatarContentData<TSettings = any> = ({
136
148
  settings: TSettings;
137
149
  /** Optional thread ID */
138
150
  threadId?: string;
151
+ /** Bumped on in-place settings updates of the same content (persistent stage) */
152
+ revision?: number;
139
153
  } | {
140
154
  /** Content status: error occurred */
141
155
  status: 'error';
@@ -360,6 +374,8 @@ export interface AvatarClientManagerType {
360
374
  readonly content: TinyDataStoreConsumer<AvatarContentData | null>;
361
375
  /** Observable chat log entries */
362
376
  readonly chatLog: TinyDataStoreConsumer<ChatEntry[]>;
377
+ /** Observable agent-driven progress bar state — null until the agent emits one */
378
+ readonly progressBar: TinyDataStoreConsumer<AgentProgressBar | null>;
363
379
  /** Send text message to avatar */
364
380
  askViaText(text: string): void;
365
381
  /** Request the backend reprocess a turn that produced no avatar response */
@@ -421,6 +437,7 @@ export interface AvatarClientManagerType {
421
437
  captions?: boolean | CaptionConfig;
422
438
  kickOffPhrase?: string;
423
439
  dynamicVariables?: Record<string, unknown>;
440
+ persistentContent?: boolean;
424
441
  } | undefined>;
425
442
  /** Observable preview loading video URL */
426
443
  readonly agentPreviewUrl: TinyDataStoreConsumer<string | null>;
@@ -87,6 +87,8 @@ export type UnisphereToolBlock = {
87
87
  status: 'loading' | 'ready';
88
88
  settings: any;
89
89
  threadId?: string;
90
+ /** Bumped on in-place settings updates of the same content (persistent avatar stage) */
91
+ revision?: number;
90
92
  } | {
91
93
  status: 'error';
92
94
  });