@unisphere/genie-types 1.9.0 → 1.10.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
@@ -23,6 +23,7 @@ const integrationsSchema = {
23
23
  value: 'boolean'
24
24
  }
25
25
  },
26
+ deprecationMessage: 'Marketo integration is no longer supported and this field will be ignored if provided',
26
27
  optional: true
27
28
  },
28
29
  avatar: {
@@ -89,19 +90,21 @@ const chatRuntimeSettingsSchema = {
89
90
  type: 'primitive',
90
91
  value: 'any'
91
92
  },
92
- kalturaServerURI: {
93
+ ks: {
93
94
  type: 'primitive',
94
95
  value: 'string'
95
96
  },
96
- ks: {
97
+ kalturaServerURI: {
97
98
  type: 'primitive',
98
- value: 'string'
99
+ value: 'string',
100
+ deprecationMessage: 'This field is no longer required and will be ignored if provided'
99
101
  },
100
102
  // depracated - kept for backward compatibility
101
103
  uiconfId: {
102
104
  type: 'primitive',
103
105
  value: 'string',
104
- optional: true
106
+ optional: true,
107
+ deprecationMessage: 'This field is no longer required and will be ignored if provided'
105
108
  },
106
109
  // depracated - kept for backward compatibility
107
110
  analytics: {
@@ -125,7 +128,8 @@ const chatRuntimeSettingsSchema = {
125
128
  type: 'primitive',
126
129
  value: 'string'
127
130
  }
128
- }
131
+ },
132
+ deprecationMessage: 'This field is no longer required and will be ignored if provided'
129
133
  },
130
134
  customization: {
131
135
  type: 'object',
@@ -177,6 +181,16 @@ const chatRuntimeSettingsSchema = {
177
181
  type: 'primitive',
178
182
  value: 'string',
179
183
  optional: true
184
+ },
185
+ agentMode: {
186
+ type: 'primitive',
187
+ value: 'boolean',
188
+ optional: true
189
+ },
190
+ avatarContainerMode: {
191
+ type: 'enum',
192
+ values: ['dialog', 'contained'],
193
+ optional: true
180
194
  }
181
195
  }
182
196
  };
@@ -195,7 +209,8 @@ const chatRuntimePlayerPluginSettingsSchema = {
195
209
  },
196
210
  kalturaServerURI: {
197
211
  type: 'primitive',
198
- value: 'string'
212
+ value: 'string',
213
+ deprecationMessage: 'This field is no longer required and will be ignored if provided'
199
214
  },
200
215
  partnerId: {
201
216
  type: 'primitive',
@@ -206,7 +221,12 @@ const chatRuntimePlayerPluginSettingsSchema = {
206
221
  value: 'string'
207
222
  },
208
223
  integrations: integrationsSchema,
209
- shareUrl: shareUrlSchema
224
+ shareUrl: shareUrlSchema,
225
+ avatarContainerMode: {
226
+ type: 'enum',
227
+ values: ['dialog', 'contained'],
228
+ optional: true
229
+ }
210
230
  }
211
231
  };
212
232
 
@@ -753,6 +773,21 @@ const avatarRuntimeSettingsSchema = {
753
773
  value: 'string',
754
774
  optional: true
755
775
  },
776
+ avatarId: {
777
+ type: 'primitive',
778
+ value: 'string',
779
+ optional: true
780
+ },
781
+ previewImageUrl: {
782
+ type: 'primitive',
783
+ value: 'string',
784
+ optional: true
785
+ },
786
+ agentMode: {
787
+ type: 'primitive',
788
+ value: 'boolean',
789
+ optional: true
790
+ },
756
791
  noiseReductionEnabled: {
757
792
  type: 'primitive',
758
793
  value: 'boolean',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unisphere/genie-types",
3
- "version": "1.9.0",
3
+ "version": "1.10.0",
4
4
  "author": "kaltura",
5
5
  "license": "AGPL-3.0",
6
6
  "repository": {
@@ -119,6 +119,7 @@ export interface AvatarServiceType extends UnisphereService {
119
119
  }>;
120
120
  devicesList: TinyDataStoreConsumer<UserDevicesList | null>;
121
121
  agentPreviewUrl: TinyDataStoreConsumer<string | null>;
122
+ agentPreviewImageUrl: TinyDataStoreConsumer<string | null>;
122
123
  agentStatus: TinyDataStoreConsumer<{
123
124
  available: boolean;
124
125
  reason?: AgentUnavailabilityReasons;
@@ -20,6 +20,9 @@ export interface AvatarRuntimeSettings {
20
20
  roomId: string;
21
21
  flowId: string;
22
22
  loadingVideoURL?: string;
23
+ avatarId?: string;
24
+ previewImageUrl?: string;
25
+ agentMode?: boolean;
23
26
  noiseReductionEnabled?: boolean;
24
27
  kaltura: {
25
28
  ks: string;
@@ -13,8 +13,8 @@ export interface ChatRuntimePlayerPluginSettings {
13
13
  ks: string;
14
14
  partnerId: string;
15
15
  schemaVersion?: '1';
16
- kalturaServerURI: string;
17
16
  integrations?: GlobalChatSettings['integrations'];
18
17
  shareUrl?: GlobalChatSettings['shareUrl'];
18
+ avatarContainerMode?: 'dialog' | 'contained';
19
19
  }
20
20
  export declare const chatRuntimePlayerPluginSettingsSchema: ValidatorSchema;
@@ -13,9 +13,10 @@ export interface ChatRuntimeSettings {
13
13
  schemaVersion?: '1';
14
14
  genieServerUrl?: string;
15
15
  partnerId: string;
16
- kalturaServerURI: string;
17
16
  ks: string;
18
17
  entryId?: string;
18
+ agentMode?: boolean;
19
+ avatarContainerMode?: 'dialog' | 'contained';
19
20
  getSourceUrl?: GlobalChatSettings['getSourceUrl'];
20
21
  shareUrl?: GlobalChatSettings['shareUrl'];
21
22
  branding?: {
@@ -1,10 +1,4 @@
1
1
  import { ValidatorSchema } from '@unisphere/core';
2
- export interface MarketoIntegration {
3
- type: 'form';
4
- quota: number;
5
- formId: string;
6
- blocker: boolean;
7
- }
8
2
  export interface ChatBranding {
9
3
  kalturaLogo?: boolean;
10
4
  }
@@ -35,11 +29,10 @@ export interface GlobalChatSettings {
35
29
  messageId: string;
36
30
  }) => string;
37
31
  };
38
- initialAvatar: 'dialog' | 'contained' | null;
32
+ avatarContainerMode: 'dialog' | 'contained' | null;
39
33
  integrations?: {
40
34
  avatar?: AvatarIntegration;
41
35
  kaltura?: KalturaIntegration;
42
- marketo?: MarketoIntegration;
43
36
  };
44
37
  }
45
38
  export declare const integrationsSchema: ValidatorSchema;
@@ -14,8 +14,6 @@ type ClassGenieGetClipPlayerPosterUrlData = {
14
14
  };
15
15
  export interface GenieChatServiceType extends UnisphereService {
16
16
  id: 'unisphere.widgets.genie.chat';
17
- canPlayVideo?: () => Promise<boolean>;
18
- canGetAnswer?: (() => Promise<boolean>) | undefined;
19
17
  getClipPlayerUrl?: (source: ClassGenieGetClipPlayerUrlData) => string | null;
20
18
  getClipPlayerPosterUrl: (source: ClassGenieGetClipPlayerPosterUrlData) => string;
21
19
  getEntrySourceUrl: (entryId: string, startTime?: number) => string;