@unisphere/genie-types 1.14.0-oauth.0 → 1.15.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
@@ -62,7 +62,14 @@ const chatRuntimeSettingsSchema = {
62
62
  genieServerUrl: {
63
63
  type: 'primitive',
64
64
  value: 'string',
65
- optional: true
65
+ optional: true,
66
+ preferDefault: true
67
+ },
68
+ agenticServerUrl: {
69
+ type: 'primitive',
70
+ value: 'string',
71
+ optional: true,
72
+ preferDefault: true
66
73
  },
67
74
  partnerId: {
68
75
  type: 'primitive',
@@ -71,7 +78,8 @@ const chatRuntimeSettingsSchema = {
71
78
  },
72
79
  ks: {
73
80
  type: 'primitive',
74
- value: 'string'
81
+ value: 'string',
82
+ optional: true
75
83
  },
76
84
  kalturaServerURI: {
77
85
  type: 'primitive',
@@ -180,7 +188,8 @@ const chatRuntimePlayerPluginSettingsSchema = {
180
188
  properties: {
181
189
  ks: {
182
190
  type: 'primitive',
183
- value: 'string'
191
+ value: 'string',
192
+ optional: true
184
193
  },
185
194
  schemaVersion: {
186
195
  type: 'literal',
@@ -570,6 +579,9 @@ const genieAnswerVisualSettingsSchema = {
570
579
  }, {
571
580
  type: 'literal',
572
581
  value: 'DOCUMENT'
582
+ }, {
583
+ type: 'literal',
584
+ value: 'EXTERNAL'
573
585
  }],
574
586
  optional: true
575
587
  },
@@ -1708,7 +1720,8 @@ const clipSchema = {
1708
1720
  },
1709
1721
  entry_id: {
1710
1722
  type: 'primitive',
1711
- value: 'string'
1723
+ value: 'string',
1724
+ optional: true
1712
1725
  },
1713
1726
  start_time: {
1714
1727
  type: 'primitive',
@@ -1720,7 +1733,8 @@ const clipSchema = {
1720
1733
  },
1721
1734
  type: {
1722
1735
  type: 'primitive',
1723
- value: 'string'
1736
+ value: 'string',
1737
+ optional: 'nullable'
1724
1738
  },
1725
1739
  thumbnail: {
1726
1740
  type: 'primitive',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unisphere/genie-types",
3
- "version": "1.14.0-oauth.0",
3
+ "version": "1.15.0",
4
4
  "author": "kaltura",
5
5
  "license": "AGPL-3.0",
6
6
  "repository": {
@@ -10,7 +10,7 @@
10
10
  "types": "./src/index.d.ts",
11
11
  "dependencies": {
12
12
  "@kaltura-sdk/rtc-core": "^1.25.2",
13
- "@unisphere/core": "^1.94.1",
13
+ "@unisphere/core": "^1.95.0",
14
14
  "@unisphere/runtime": "^1.91.0"
15
15
  },
16
16
  "module": "./index.esm.js",
@@ -223,6 +223,7 @@ export interface AvatarServiceType extends UnisphereService {
223
223
  } | null>;
224
224
  threadId: TinyDataStoreConsumer<string | null>;
225
225
  setThreadId(id: string | null): void;
226
+ isPreviewMode: TinyDataStoreConsumer<boolean>;
226
227
  connect(options?: {
227
228
  threadId?: string;
228
229
  messageId?: string;
@@ -22,6 +22,8 @@ export type AvatarRuntime = UnisphereRuntimeBaseType<AvatarRuntimeSettings> & {
22
22
  threadId: TinyDataStoreConsumer<string | null>;
23
23
  /** Set the active conversation thread ID */
24
24
  setThreadId(id: string | null): void;
25
+ /** Sync preview mode flag from the chat customization settings */
26
+ setIsPreviewMode(value: boolean): void;
25
27
  };
26
28
  /**
27
29
  * Configuration settings for the avatar runtime.
@@ -46,7 +46,7 @@ export interface ChatRuntimePlayerPluginSettings {
46
46
  /** Media entry ID for the video being played */
47
47
  entryId: string;
48
48
  /** Kaltura session token for authentication */
49
- ks: string;
49
+ ks?: string;
50
50
  /** Kaltura partner ID */
51
51
  partnerId?: string;
52
52
  /** Settings schema version */
@@ -52,13 +52,15 @@ export interface ChatRuntime extends UnisphereRuntimeBaseType<ChatRuntimeSetting
52
52
  */
53
53
  export interface ChatRuntimeSettings {
54
54
  /** Kaltura session token for authentication */
55
- ks: string;
55
+ ks?: string;
56
56
  /** Optional initial question to display when chat starts */
57
57
  initialQuestion?: string;
58
58
  /** Settings schema version, defaults to '1' */
59
59
  schemaVersion?: '1';
60
60
  /** Genie server URL for API requests */
61
61
  genieServerUrl?: string;
62
+ /** Agentic server URL for appInit */
63
+ agenticServerUrl?: string;
62
64
  /** Kaltura partner ID */
63
65
  partnerId?: string;
64
66
  /** Media entry ID for context-aware chat */
@@ -2,10 +2,10 @@ import { ValidatorSchema } from '@unisphere/core';
2
2
  export interface VideoClip {
3
3
  start_index: number;
4
4
  last_index: number;
5
- entry_id: string;
5
+ entry_id: string | null;
6
6
  start_time: number;
7
7
  end_time: number;
8
- type: string;
8
+ type: string | null;
9
9
  thumbnail: string | null;
10
10
  video_link: string | null;
11
11
  }
@@ -57,7 +57,7 @@ export type CardsVideoDataType = {
57
57
  /** Kaltura entry ID */
58
58
  entry_id?: string;
59
59
  /** Source type */
60
- type?: 'CAPTION' | 'OCR' | 'DOCUMENT';
60
+ type?: 'CAPTION' | 'OCR' | 'DOCUMENT' | 'EXTERNAL';
61
61
  /** Last index */
62
62
  last_index?: number;
63
63
  /** Start index */