bstp-agent-widget 0.2.76 → 0.2.78
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 +4251 -4288
- package/dist/agent-widget.js.map +1 -1
- package/dist/bstp-agent-widget.css +1 -1
- package/package.json +1 -1
- package/src/types/enums/agent-chat-message-sender.ts +4 -0
- package/src/types/models/agent-chat-md-chart-widget.ts +13 -0
- package/src/types/models/agent-chat-md-highlight-box-widget.ts +5 -0
- package/src/types/models/agent-chat-md-offer-card-widget.ts +16 -0
- package/src/types/models/agent-chat-md-overview-card-widget.ts +25 -0
- package/src/types/models/agent-chat-md-renderer.ts +6 -0
- package/src/types/models/agent-chat-md-table-widget.ts +4 -0
- package/src/types/models/agent-chat-md-widget-config.ts +7 -0
- package/src/types/models/agent-chat-message.ts +8 -0
- package/src/types/models/agent-chat-runtime-info.ts +5 -0
- package/src/types/models/agent-chat-runtime.ts +4 -4
- package/src/types/models/agent-chat-usage-chart-item.ts +2 -2
- package/src/types/models/agent-chat-widget-ui.ts +2 -2
- package/src/types/models/app-config.ts +3 -3
package/package.json
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface AgentChatMdChartWidgetItem {
|
|
2
|
+
key: string;
|
|
3
|
+
label: string;
|
|
4
|
+
used: number;
|
|
5
|
+
total: number;
|
|
6
|
+
unit: string;
|
|
7
|
+
percentUsed?: number;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface AgentChatMdChartWidgetProps {
|
|
11
|
+
items?: AgentChatMdChartWidgetItem[];
|
|
12
|
+
title?: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface AgentChatMdOfferCardWidgetItem {
|
|
2
|
+
offerId?: string;
|
|
3
|
+
name?: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
price?: string;
|
|
6
|
+
priceType?: string;
|
|
7
|
+
dataAmount?: string;
|
|
8
|
+
chargeType?: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface AgentChatMdOfferCardWidgetProps {
|
|
12
|
+
items?: AgentChatMdOfferCardWidgetItem[];
|
|
13
|
+
title?: string;
|
|
14
|
+
showPricing?: boolean;
|
|
15
|
+
onSelectOffer?: (offerId: string) => void;
|
|
16
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export interface AgentChatMdOverviewCardAdvantage {
|
|
2
|
+
key: string;
|
|
3
|
+
type: string;
|
|
4
|
+
amount: string;
|
|
5
|
+
unit?: string | null;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export interface AgentChatMdOverviewCardWidgetItem {
|
|
9
|
+
billingAccountId?: string;
|
|
10
|
+
title?: string;
|
|
11
|
+
advantages?: AgentChatMdOverviewCardAdvantage[];
|
|
12
|
+
price?: string;
|
|
13
|
+
priceSuffix?: string;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export interface AgentChatMdOverviewCardWidgetProps {
|
|
17
|
+
items?: AgentChatMdOverviewCardWidgetItem[];
|
|
18
|
+
title?: string;
|
|
19
|
+
advantages?: AgentChatMdOverviewCardAdvantage[];
|
|
20
|
+
price?: string;
|
|
21
|
+
priceSuffix?: string;
|
|
22
|
+
ctaLabel?: string;
|
|
23
|
+
onCtaClick?: () => void;
|
|
24
|
+
onSelectAccount?: (billingAccountId: string) => void;
|
|
25
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export
|
|
1
|
+
export interface AgentChatRuntimeValue {
|
|
2
2
|
customerId: string;
|
|
3
3
|
customerToken: string;
|
|
4
4
|
language?: string;
|
|
5
|
-
}
|
|
5
|
+
}
|
|
6
6
|
|
|
7
|
-
export
|
|
7
|
+
export interface AgentChatRuntimeGetter {
|
|
8
8
|
getCustomerId: () => string | null;
|
|
9
9
|
getCustomerToken: () => string | null | Promise<string | null>;
|
|
10
10
|
getLanguage?: () => string | null;
|
|
11
|
-
}
|
|
11
|
+
}
|
|
12
12
|
|
|
13
13
|
export type AgentChatRuntime = AgentChatRuntimeValue | AgentChatRuntimeGetter;
|
|
14
14
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export interface AgentChatUsageChartItem {
|
|
2
2
|
key: string;
|
|
3
3
|
label: string;
|
|
4
4
|
used: number;
|
|
@@ -9,4 +9,4 @@ export type AgentChatUsageChartItem = {
|
|
|
9
9
|
expireDate?: string;
|
|
10
10
|
valueRaw?: string;
|
|
11
11
|
currentValueRaw?: string;
|
|
12
|
-
}
|
|
12
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
1
|
+
export interface AgentChatWidgetUiOptions {
|
|
2
2
|
/** Panel width in px */
|
|
3
3
|
panelWidth?: number;
|
|
4
4
|
/** Panel height in px or CSS value */
|
|
@@ -25,4 +25,4 @@ export type AgentChatWidgetUiOptions = {
|
|
|
25
25
|
panelTopOffset?: number;
|
|
26
26
|
/** CSS selector for the host layout node that should reserve space for the widget */
|
|
27
27
|
hostContainerSelector?: string;
|
|
28
|
-
}
|
|
28
|
+
}
|
|
@@ -9,19 +9,19 @@ export interface AppConfig {
|
|
|
9
9
|
genai?: AppConfigGenai;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
interface AppConfigUrl {
|
|
12
|
+
export interface AppConfigUrl {
|
|
13
13
|
app: string;
|
|
14
14
|
api: string;
|
|
15
15
|
apiPaths: ApiPathsConfig;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
interface ApiPathsConfig {
|
|
18
|
+
export interface ApiPathsConfig {
|
|
19
19
|
crm: string;
|
|
20
20
|
uiAuthz: string;
|
|
21
21
|
genai?: string;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
interface AppConfigKeycloak {
|
|
24
|
+
export interface AppConfigKeycloak {
|
|
25
25
|
url: string;
|
|
26
26
|
realm: string;
|
|
27
27
|
clientId: string;
|