@unisphere/genie-types 1.9.0 → 1.11.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 +55 -14
- package/package.json +1 -1
- package/src/lib/avatar-runtime/avatar-service-types.d.ts +1 -0
- package/src/lib/avatar-runtime/runtime-types.d.ts +3 -0
- package/src/lib/chat-runtime/runtime-flavors/runtime-player-plugin-types.d.ts +1 -1
- package/src/lib/chat-runtime/runtime-flavors/runtime-types.d.ts +4 -3
- package/src/lib/chat-runtime/shared-settings.d.ts +1 -8
- package/src/lib/shared/chat-tools-service-types.d.ts +0 -2
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: {
|
|
@@ -87,21 +88,25 @@ const chatRuntimeSettingsSchema = {
|
|
|
87
88
|
},
|
|
88
89
|
partnerId: {
|
|
89
90
|
type: 'primitive',
|
|
90
|
-
value: 'any'
|
|
91
|
+
value: 'any',
|
|
92
|
+
optional: true
|
|
91
93
|
},
|
|
92
|
-
|
|
94
|
+
ks: {
|
|
93
95
|
type: 'primitive',
|
|
94
96
|
value: 'string'
|
|
95
97
|
},
|
|
96
|
-
|
|
98
|
+
kalturaServerURI: {
|
|
97
99
|
type: 'primitive',
|
|
98
|
-
value: 'string'
|
|
100
|
+
value: 'string',
|
|
101
|
+
deprecationMessage: 'This field is no longer required and will be ignored if provided',
|
|
102
|
+
optional: true
|
|
99
103
|
},
|
|
100
104
|
// depracated - kept for backward compatibility
|
|
101
105
|
uiconfId: {
|
|
102
106
|
type: 'primitive',
|
|
103
107
|
value: 'string',
|
|
104
|
-
optional: true
|
|
108
|
+
optional: true,
|
|
109
|
+
deprecationMessage: 'This field is no longer required and will be ignored if provided'
|
|
105
110
|
},
|
|
106
111
|
// depracated - kept for backward compatibility
|
|
107
112
|
analytics: {
|
|
@@ -125,7 +130,8 @@ const chatRuntimeSettingsSchema = {
|
|
|
125
130
|
type: 'primitive',
|
|
126
131
|
value: 'string'
|
|
127
132
|
}
|
|
128
|
-
}
|
|
133
|
+
},
|
|
134
|
+
deprecationMessage: 'This field is no longer required and will be ignored if provided'
|
|
129
135
|
},
|
|
130
136
|
customization: {
|
|
131
137
|
type: 'object',
|
|
@@ -177,6 +183,16 @@ const chatRuntimeSettingsSchema = {
|
|
|
177
183
|
type: 'primitive',
|
|
178
184
|
value: 'string',
|
|
179
185
|
optional: true
|
|
186
|
+
},
|
|
187
|
+
agentMode: {
|
|
188
|
+
type: 'primitive',
|
|
189
|
+
value: 'boolean',
|
|
190
|
+
optional: true
|
|
191
|
+
},
|
|
192
|
+
avatarContainerMode: {
|
|
193
|
+
type: 'enum',
|
|
194
|
+
values: ['dialog', 'contained'],
|
|
195
|
+
optional: true
|
|
180
196
|
}
|
|
181
197
|
}
|
|
182
198
|
};
|
|
@@ -195,7 +211,8 @@ const chatRuntimePlayerPluginSettingsSchema = {
|
|
|
195
211
|
},
|
|
196
212
|
kalturaServerURI: {
|
|
197
213
|
type: 'primitive',
|
|
198
|
-
value: 'string'
|
|
214
|
+
value: 'string',
|
|
215
|
+
deprecationMessage: 'This field is no longer required and will be ignored if provided'
|
|
199
216
|
},
|
|
200
217
|
partnerId: {
|
|
201
218
|
type: 'primitive',
|
|
@@ -206,7 +223,12 @@ const chatRuntimePlayerPluginSettingsSchema = {
|
|
|
206
223
|
value: 'string'
|
|
207
224
|
},
|
|
208
225
|
integrations: integrationsSchema,
|
|
209
|
-
shareUrl: shareUrlSchema
|
|
226
|
+
shareUrl: shareUrlSchema,
|
|
227
|
+
avatarContainerMode: {
|
|
228
|
+
type: 'enum',
|
|
229
|
+
values: ['dialog', 'contained'],
|
|
230
|
+
optional: true
|
|
231
|
+
}
|
|
210
232
|
}
|
|
211
233
|
};
|
|
212
234
|
|
|
@@ -728,31 +750,50 @@ const avatarRuntimeSettingsSchema = {
|
|
|
728
750
|
type: 'primitive',
|
|
729
751
|
value: 'string'
|
|
730
752
|
},
|
|
731
|
-
|
|
753
|
+
srsBaseUrl: {
|
|
732
754
|
type: 'primitive',
|
|
733
755
|
value: 'string'
|
|
734
756
|
},
|
|
735
|
-
|
|
757
|
+
serverUrl: {
|
|
736
758
|
type: 'primitive',
|
|
737
|
-
value: 'string'
|
|
759
|
+
value: 'string',
|
|
760
|
+
optional: true
|
|
738
761
|
},
|
|
739
762
|
clientId: {
|
|
740
763
|
type: 'primitive',
|
|
741
|
-
value: 'string'
|
|
764
|
+
value: 'string',
|
|
765
|
+
optional: true
|
|
742
766
|
},
|
|
743
767
|
roomId: {
|
|
744
768
|
type: 'primitive',
|
|
745
|
-
value: 'string'
|
|
769
|
+
value: 'string',
|
|
770
|
+
optional: true
|
|
746
771
|
},
|
|
747
772
|
flowId: {
|
|
748
773
|
type: 'primitive',
|
|
749
|
-
value: 'string'
|
|
774
|
+
value: 'string',
|
|
775
|
+
optional: true
|
|
750
776
|
},
|
|
751
777
|
loadingVideoURL: {
|
|
752
778
|
type: 'primitive',
|
|
753
779
|
value: 'string',
|
|
754
780
|
optional: true
|
|
755
781
|
},
|
|
782
|
+
avatarId: {
|
|
783
|
+
type: 'primitive',
|
|
784
|
+
value: 'string',
|
|
785
|
+
optional: true
|
|
786
|
+
},
|
|
787
|
+
previewImageUrl: {
|
|
788
|
+
type: 'primitive',
|
|
789
|
+
value: 'string',
|
|
790
|
+
optional: true
|
|
791
|
+
},
|
|
792
|
+
agentMode: {
|
|
793
|
+
type: 'primitive',
|
|
794
|
+
value: 'boolean',
|
|
795
|
+
optional: true
|
|
796
|
+
},
|
|
756
797
|
noiseReductionEnabled: {
|
|
757
798
|
type: 'primitive',
|
|
758
799
|
value: 'boolean',
|
package/package.json
CHANGED
|
@@ -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;
|
|
@@ -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;
|
|
@@ -9,13 +9,14 @@ export interface ChatRuntime extends UnisphereRuntimeBaseType<ChatRuntimeSetting
|
|
|
9
9
|
readonly flavor: '';
|
|
10
10
|
}
|
|
11
11
|
export interface ChatRuntimeSettings {
|
|
12
|
+
ks: string;
|
|
12
13
|
initialQuestion?: string;
|
|
13
14
|
schemaVersion?: '1';
|
|
14
15
|
genieServerUrl?: string;
|
|
15
|
-
partnerId
|
|
16
|
-
kalturaServerURI: string;
|
|
17
|
-
ks: string;
|
|
16
|
+
partnerId?: 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
|
-
|
|
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;
|