@unisphere/genie-types 1.48.0 → 1.49.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
|
@@ -4156,6 +4156,18 @@ function isFlashcardBlock(b) {
|
|
|
4156
4156
|
function isSourcesBlock(b) {
|
|
4157
4157
|
return b.type === 'unisphere-tool' && b.runtimeName === 'sources-tool' && b.status !== 'error' && typeof b.settings === 'object' && b.settings !== null && Array.isArray(b.settings.sources);
|
|
4158
4158
|
}
|
|
4159
|
+
function isEventToolBlock(b, runtimeName, itemsKey) {
|
|
4160
|
+
return b.type === 'unisphere-tool' && b.runtimeName === runtimeName && b.status !== 'error' && typeof b.settings === 'object' && b.settings !== null && Array.isArray(b.settings[itemsKey]);
|
|
4161
|
+
}
|
|
4162
|
+
function isEventSessionsBlock(b) {
|
|
4163
|
+
return isEventToolBlock(b, 'event-sessions-tool', 'sessions');
|
|
4164
|
+
}
|
|
4165
|
+
function isEventSpeakersBlock(b) {
|
|
4166
|
+
return isEventToolBlock(b, 'event-speakers-tool', 'speakers');
|
|
4167
|
+
}
|
|
4168
|
+
function isEventChannelsBlock(b) {
|
|
4169
|
+
return isEventToolBlock(b, 'event-channels-tool', 'channels');
|
|
4170
|
+
}
|
|
4159
4171
|
function isFollowupsBlock(b) {
|
|
4160
4172
|
return b.type === 'unisphere-tool' && b.runtimeName === 'followups-tool' && b.status !== 'error';
|
|
4161
4173
|
}
|
|
@@ -4164,4 +4176,4 @@ function isTextBlock(b) {
|
|
|
4164
4176
|
}
|
|
4165
4177
|
const hasSources = blocks => blocks.some(b => b.type === 'unisphere-tool' && b.runtimeName === 'sources-tool');
|
|
4166
4178
|
|
|
4167
|
-
export { AVATAR_DEFAULT_CAPABILITIES, AnswerModelEnum, AnswerTypeEnum, AvatarConnectionStatus, AvatarRuntimeName, CHAT_CONTEXT_TYPE, CHAT_CONTEXT_TYPE_GLOBAL, CHAT_DEFAULT_CAPABILITIES, ChatRuntimeName, ChatThreadRuntimeName, DeviceType, DisconnectReasons, INCLUDE_TIME_CAPABILITY, SUPPORTED_LAYOUT_TYPES, TIMEZONE_VARIABLE_NAME, agentModeSchema, avatarContainerModeSchema, avatarRuntimeChatVisualSettingsSchema, avatarRuntimeConnectSettingsSchema, avatarRuntimeContainedVisualSettingsSchema, avatarRuntimeFloaterVisualSettingsSchema, avatarRuntimeHeadFloaterVisualSettingsSchema, avatarRuntimeHeadlessVisualSettingsSchema, avatarRuntimeSettingsSchema, bannerVisualSettingsSchema, blockVisualContextSchema, buildClientRequestVars, chatContextSchema, chatCustomizationSchema, chatCustomizationSchemaProperties, chatRuntimePlayerPluginSettingsSchema, chatRuntimeSettingsSchema, chatThreadRuntimeContainedVisualSettingsSchema, chatThreadRuntimeSettingsSchema, containedVisualSettingsSchema, dynamicVariablesSchema, floaterCTAVisualSettingsSchema, floaterVisualSettingsSchema, getAvatarDefaultCapabilities, getBrowserTimezone, getChatDefaultCapabilities, getResolvedRuntimeName, getResolvedWidgetName, getSourceUrlSchema, hasSources, integrationsSchema, isAvatarConnectionProxyInternalType, isFlashcardBlock, isFlashcardElement, isFollowupsBlock, isFollowupsElement, isPDFSourceItem, isSourcesBlock, isSourcesElement, isTextBlock, isTextFlashcard, isVideoGalleryFlashcard, isVideoSourceItem, multipleAvatarBehaviorSchema, pageVisualSettingsSchema, popupVisualSettingsSchema, resolveActiveContextType, schemaVersionSchema, shareUrlSchema, widgetName };
|
|
4179
|
+
export { AVATAR_DEFAULT_CAPABILITIES, AnswerModelEnum, AnswerTypeEnum, AvatarConnectionStatus, AvatarRuntimeName, CHAT_CONTEXT_TYPE, CHAT_CONTEXT_TYPE_GLOBAL, CHAT_DEFAULT_CAPABILITIES, ChatRuntimeName, ChatThreadRuntimeName, DeviceType, DisconnectReasons, INCLUDE_TIME_CAPABILITY, SUPPORTED_LAYOUT_TYPES, TIMEZONE_VARIABLE_NAME, agentModeSchema, avatarContainerModeSchema, avatarRuntimeChatVisualSettingsSchema, avatarRuntimeConnectSettingsSchema, avatarRuntimeContainedVisualSettingsSchema, avatarRuntimeFloaterVisualSettingsSchema, avatarRuntimeHeadFloaterVisualSettingsSchema, avatarRuntimeHeadlessVisualSettingsSchema, avatarRuntimeSettingsSchema, bannerVisualSettingsSchema, blockVisualContextSchema, buildClientRequestVars, chatContextSchema, chatCustomizationSchema, chatCustomizationSchemaProperties, chatRuntimePlayerPluginSettingsSchema, chatRuntimeSettingsSchema, chatThreadRuntimeContainedVisualSettingsSchema, chatThreadRuntimeSettingsSchema, containedVisualSettingsSchema, dynamicVariablesSchema, floaterCTAVisualSettingsSchema, floaterVisualSettingsSchema, getAvatarDefaultCapabilities, getBrowserTimezone, getChatDefaultCapabilities, getResolvedRuntimeName, getResolvedWidgetName, getSourceUrlSchema, hasSources, integrationsSchema, isAvatarConnectionProxyInternalType, isEventChannelsBlock, isEventSessionsBlock, isEventSpeakersBlock, isFlashcardBlock, isFlashcardElement, isFollowupsBlock, isFollowupsElement, isPDFSourceItem, isSourcesBlock, isSourcesElement, isTextBlock, isTextFlashcard, isVideoGalleryFlashcard, isVideoSourceItem, multipleAvatarBehaviorSchema, pageVisualSettingsSchema, popupVisualSettingsSchema, resolveActiveContextType, schemaVersionSchema, shareUrlSchema, widgetName };
|
package/package.json
CHANGED
|
@@ -121,6 +121,8 @@ export type AgentProgressBarScreen = {
|
|
|
121
121
|
title?: string;
|
|
122
122
|
/** The student answered this screen's question */
|
|
123
123
|
answered?: boolean;
|
|
124
|
+
/** The student skipped this screen's question; never set together with answered */
|
|
125
|
+
skipped?: boolean;
|
|
124
126
|
};
|
|
125
127
|
/**
|
|
126
128
|
* Tap-to-talk mode state
|
|
@@ -19,9 +19,20 @@ export declare function isSourcesBlock(b: UnisphereChatBlock): b is UnisphereCha
|
|
|
19
19
|
runtimeName: 'sources-tool';
|
|
20
20
|
status: 'loading' | 'ready';
|
|
21
21
|
settings: {
|
|
22
|
-
sources:
|
|
22
|
+
sources: {
|
|
23
|
+
entry_id?: string;
|
|
24
|
+
}[];
|
|
23
25
|
};
|
|
24
26
|
};
|
|
27
|
+
type EventToolBlock<R extends string, K extends string> = UnisphereChatBlock & {
|
|
28
|
+
type: 'unisphere-tool';
|
|
29
|
+
runtimeName: R;
|
|
30
|
+
status: 'loading' | 'ready';
|
|
31
|
+
settings: Record<K, unknown[]>;
|
|
32
|
+
};
|
|
33
|
+
export declare function isEventSessionsBlock(b: UnisphereChatBlock): b is EventToolBlock<'event-sessions-tool', 'sessions'>;
|
|
34
|
+
export declare function isEventSpeakersBlock(b: UnisphereChatBlock): b is EventToolBlock<'event-speakers-tool', 'speakers'>;
|
|
35
|
+
export declare function isEventChannelsBlock(b: UnisphereChatBlock): b is EventToolBlock<'event-channels-tool', 'channels'>;
|
|
25
36
|
export type FollowupsBlock = UnisphereChatBlock & {
|
|
26
37
|
type: 'unisphere-tool';
|
|
27
38
|
runtimeName: 'followups-tool';
|
|
@@ -34,3 +45,4 @@ export declare function isTextBlock(b: UnisphereChatBlock): b is UnisphereChatBl
|
|
|
34
45
|
content: string;
|
|
35
46
|
};
|
|
36
47
|
export declare const hasSources: (blocks: UnisphereChatBlock[]) => boolean;
|
|
48
|
+
export {};
|