bstp-agent-widget 0.2.84 → 0.2.86
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/dist/agent-widget.js +4461 -4215
- package/dist/agent-widget.js.map +1 -1
- package/dist/bstp-agent-widget.css +1 -1
- package/package.json +18 -18
- package/src/lib/index.d.ts +11 -10
- package/src/types/dto/genai-agent-message-request.dto.ts +15 -12
- package/src/types/dto/genai-agent-message-response.dto.ts +10 -10
- package/src/types/dto/genai-agent-reply.dto.ts +5 -5
- package/src/types/dto/genai-login-request.dto.ts +4 -4
- package/src/types/dto/genai-login-response.dto.ts +3 -0
- package/src/types/dto/genai-send-agent-message-request.dto.ts +5 -5
- package/src/types/dto/genai-tenant-switch-request.dto.ts +4 -0
- package/src/types/dto/genai-tenant-switch-response.dto.ts +23 -0
- package/src/types/models/agent-chat-action.ts +5 -18
- package/src/types/models/agent-chat-config.ts +5 -39
- package/src/types/models/agent-chat-md-chart-widget.ts +13 -13
- package/src/types/models/agent-chat-md-highlight-box-widget.ts +5 -5
- package/src/types/models/agent-chat-md-offer-card-widget.ts +16 -16
- package/src/types/models/agent-chat-md-overview-card-widget.ts +25 -25
- package/src/types/models/agent-chat-md-renderer.ts +6 -6
- package/src/types/models/agent-chat-md-table-widget.ts +4 -4
- package/src/types/models/agent-chat-md-widget-config.ts +99 -10
- package/src/types/models/agent-chat-message.ts +8 -8
- package/src/types/models/agent-chat-runtime-info.ts +5 -5
- package/src/types/models/agent-chat-runtime.ts +1 -17
- package/src/types/models/agent-chat-widget-props.ts +18 -0
- package/src/types/models/agent-chat-widget-ui.ts +28 -28
- package/src/types/models/app-config.ts +14 -9
- package/src/types/models/billing-account-data.ts +6 -0
- package/src/types/models/create-genai-client-options.ts +5 -5
- package/src/types/dto/genai-login.dto.ts +0 -8
- package/src/types/enums/agent-chat-message-sender.ts +0 -4
- package/src/types/enums/markdown-renderer-response-type.ts +0 -9
- package/src/types/enums/markdown-renderer-visualization-type.ts +0 -6
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
export interface AgentChatWidgetUiOptions {
|
|
2
|
-
/** Panel width in px */
|
|
3
|
-
panelWidth?: number;
|
|
4
|
-
/** Panel height in px or CSS value */
|
|
5
|
-
panelHeight?: number | string;
|
|
6
|
-
/** Panel header height in px */
|
|
7
|
-
panelHeaderHeight?: number;
|
|
8
|
-
/** Text shown in panel header title */
|
|
9
|
-
panelTitle?: string;
|
|
10
|
-
/** Accent color used by widget surfaces */
|
|
11
|
-
accentColor?: string;
|
|
12
|
-
/** FAB button bottom offset in px */
|
|
13
|
-
fabBottomOffset?: number;
|
|
14
|
-
/** FAB button top offset in px (takes precedence over bottom offset when provided) */
|
|
15
|
-
fabTopOffset?: number;
|
|
16
|
-
/** FAB button right offset in px */
|
|
17
|
-
fabRightOffset?: number;
|
|
18
|
-
/** FAB button left offset in px (takes precedence over right offset when provided) */
|
|
19
|
-
fabLeftOffset?: number;
|
|
20
|
-
/** FAB button label text */
|
|
21
|
-
fabButtonLabel?: string;
|
|
22
|
-
/** Widget z-index (affects both FAB and panel) */
|
|
23
|
-
zIndex?: number;
|
|
24
|
-
/** Panel top offset in px (e.g. host app header height) */
|
|
25
|
-
panelTopOffset?: number;
|
|
26
|
-
/** CSS selector for the host layout node that should reserve space for the widget */
|
|
27
|
-
hostContainerSelector?: string;
|
|
28
|
-
}
|
|
1
|
+
export interface AgentChatWidgetUiOptions {
|
|
2
|
+
/** Panel width in px */
|
|
3
|
+
panelWidth?: number;
|
|
4
|
+
/** Panel height in px or CSS value */
|
|
5
|
+
panelHeight?: number | string;
|
|
6
|
+
/** Panel header height in px */
|
|
7
|
+
panelHeaderHeight?: number;
|
|
8
|
+
/** Text shown in panel header title */
|
|
9
|
+
panelTitle?: string;
|
|
10
|
+
/** Accent color used by widget surfaces */
|
|
11
|
+
accentColor?: string;
|
|
12
|
+
/** FAB button bottom offset in px */
|
|
13
|
+
fabBottomOffset?: number;
|
|
14
|
+
/** FAB button top offset in px (takes precedence over bottom offset when provided) */
|
|
15
|
+
fabTopOffset?: number;
|
|
16
|
+
/** FAB button right offset in px */
|
|
17
|
+
fabRightOffset?: number;
|
|
18
|
+
/** FAB button left offset in px (takes precedence over right offset when provided) */
|
|
19
|
+
fabLeftOffset?: number;
|
|
20
|
+
/** FAB button label text */
|
|
21
|
+
fabButtonLabel?: string;
|
|
22
|
+
/** Widget z-index (affects both FAB and panel) */
|
|
23
|
+
zIndex?: number;
|
|
24
|
+
/** Panel top offset in px (e.g. host app header height) */
|
|
25
|
+
panelTopOffset?: number;
|
|
26
|
+
/** CSS selector for the host layout node that should reserve space for the widget */
|
|
27
|
+
hostContainerSelector?: string;
|
|
28
|
+
}
|
|
@@ -27,20 +27,25 @@ interface AppConfigKeycloak {
|
|
|
27
27
|
clientId: string;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
interface AppConfigGenaiAssistant {
|
|
30
|
+
export interface AppConfigGenaiAssistant {
|
|
31
31
|
assistantKey: string;
|
|
32
32
|
assistantId: number;
|
|
33
33
|
label: string;
|
|
34
34
|
initialMessage?: string;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
+
export interface AppConfigGenaiConfig {
|
|
38
|
+
assistantId: number;
|
|
39
|
+
agents?: AppConfigGenaiAssistant[];
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export interface AppConfigGenaiInit {
|
|
43
|
+
serviceAccount: string;
|
|
44
|
+
serviceKey: string;
|
|
45
|
+
tenantId: number;
|
|
46
|
+
}
|
|
47
|
+
|
|
37
48
|
interface AppConfigGenai {
|
|
38
|
-
config
|
|
39
|
-
|
|
40
|
-
agents?: AppConfigGenaiAssistant[];
|
|
41
|
-
};
|
|
42
|
-
init: {
|
|
43
|
-
email: string;
|
|
44
|
-
clientSecret: string;
|
|
45
|
-
};
|
|
49
|
+
config?: AppConfigGenaiConfig;
|
|
50
|
+
init?: AppConfigGenaiInit;
|
|
46
51
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export interface CreateGenaiClientOptions {
|
|
2
|
-
baseUrl: string;
|
|
3
|
-
prefix?: string;
|
|
4
|
-
withCollation?: boolean;
|
|
5
|
-
}
|
|
1
|
+
export interface CreateGenaiClientOptions {
|
|
2
|
+
baseUrl: string;
|
|
3
|
+
prefix?: string;
|
|
4
|
+
withCollation?: boolean;
|
|
5
|
+
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export enum MarkdownRendererResponseType {
|
|
2
|
-
ACCOUNT_OVERVIEW = 'accountOverview',
|
|
3
|
-
CUSTOMER_PROFILE = 'customerProfile',
|
|
4
|
-
OFFER_RECOMMENDATION = 'offerRecommendation',
|
|
5
|
-
BASKET = 'basket',
|
|
6
|
-
USAGE_ANALYSIS = 'usageAnalysis',
|
|
7
|
-
TWIN_INSIGHT = 'twinInsight',
|
|
8
|
-
UNKNOWN = 'unknown',
|
|
9
|
-
}
|