@deepdesk/deepdesk-sdk 14.1.1-beta.9 → 14.2.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/dialogs.css +1 -1
- package/dist/index.cjs.js +8 -8
- package/dist/index.d.mts +67 -54
- package/dist/index.d.ts +67 -54
- package/dist/index.esm.js +8 -8
- package/dist/index.iife.js +20 -20
- package/package.json +1 -1
- package/styles/index.js +1 -1
- package/styles.css +1 -1
- package/widget.css +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1003,15 +1003,22 @@ declare namespace Server {
|
|
|
1003
1003
|
message: string;
|
|
1004
1004
|
profile_code: string;
|
|
1005
1005
|
}
|
|
1006
|
+
interface CallToAction {
|
|
1007
|
+
label: string;
|
|
1008
|
+
event: string;
|
|
1009
|
+
value: string;
|
|
1010
|
+
}
|
|
1006
1011
|
interface Cue {
|
|
1007
1012
|
text: string;
|
|
1008
1013
|
title: string;
|
|
1009
1014
|
rule: Pick<Rule, 'id' | 'name' | 'label' | 'description'>;
|
|
1015
|
+
call_to_action?: CallToAction;
|
|
1010
1016
|
}
|
|
1011
1017
|
interface EvaluationOutput {
|
|
1012
1018
|
code: string;
|
|
1013
1019
|
name: string;
|
|
1014
1020
|
response: string;
|
|
1021
|
+
call_to_action?: CallToAction;
|
|
1015
1022
|
}
|
|
1016
1023
|
/**
|
|
1017
1024
|
* Handling time event data
|
|
@@ -1271,6 +1278,10 @@ type SendEventV2ArgumentMap = {
|
|
|
1271
1278
|
'Assistant response copied': EventV2<RuleEventMeta & {
|
|
1272
1279
|
copiedText: string;
|
|
1273
1280
|
}>;
|
|
1281
|
+
'Assistant call to action': EventV2<RuleEventMeta & {
|
|
1282
|
+
eventName: string;
|
|
1283
|
+
value: string;
|
|
1284
|
+
}>;
|
|
1274
1285
|
'summary feedback': EventV2<{
|
|
1275
1286
|
summary: string;
|
|
1276
1287
|
rating: 'up' | 'down';
|
|
@@ -1683,53 +1694,52 @@ declare const styles$i: {
|
|
|
1683
1694
|
type AutoflowStyles = typeof styles$i;
|
|
1684
1695
|
|
|
1685
1696
|
declare const styles$h: {
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
};
|
|
1697
|
+
readonly "root": string;
|
|
1698
|
+
readonly "list": string;
|
|
1699
|
+
readonly "listWrapper": string;
|
|
1700
|
+
readonly "listHorizontal": string;
|
|
1701
|
+
readonly "page": string;
|
|
1702
|
+
readonly "search": string;
|
|
1703
|
+
readonly "pageNav": string;
|
|
1704
|
+
readonly "pageTitle": string;
|
|
1705
|
+
readonly "pageBackButton": string;
|
|
1706
|
+
readonly "listHeader": string;
|
|
1707
|
+
readonly "listHeading": string;
|
|
1708
|
+
readonly "listMoreButton": string;
|
|
1709
|
+
readonly "listItem": string;
|
|
1710
|
+
readonly "listItemContent": string;
|
|
1711
|
+
readonly "listItemText": string;
|
|
1712
|
+
readonly "listItemDescription": string;
|
|
1713
|
+
readonly "listItemActions": string;
|
|
1714
|
+
readonly "truncate": string;
|
|
1715
|
+
readonly "lineClamp": string;
|
|
1716
|
+
readonly "listItemTitle": string;
|
|
1717
|
+
readonly "listItemAction": string;
|
|
1718
|
+
readonly "listItemSelected": string;
|
|
1719
|
+
readonly "sources": string;
|
|
1720
|
+
readonly "sourcesTitle": string;
|
|
1721
|
+
readonly "source": string;
|
|
1722
|
+
readonly "sourceShowMore": string;
|
|
1723
|
+
readonly "icon": string;
|
|
1724
|
+
readonly "searchIcon": string;
|
|
1725
|
+
readonly "searchInputWrapper": string;
|
|
1726
|
+
readonly "searchInput": string;
|
|
1727
|
+
readonly "select": string;
|
|
1728
|
+
readonly "selectType": string;
|
|
1729
|
+
readonly "selectWrapper": string;
|
|
1730
|
+
readonly "image": string;
|
|
1731
|
+
readonly "imageSrc": string;
|
|
1732
|
+
readonly "imageSrcHidden": string;
|
|
1733
|
+
readonly "imageSrcStatus": string;
|
|
1734
|
+
readonly "imageTitle": string;
|
|
1735
|
+
readonly "actions": string;
|
|
1736
|
+
readonly "actionsWrapper": string;
|
|
1737
|
+
readonly "actionsBar": string;
|
|
1738
|
+
readonly "actionButton": string;
|
|
1739
|
+
readonly "hasShortKeys": string;
|
|
1740
|
+
readonly "actionShortcut": string;
|
|
1741
|
+
readonly "actionShortcutFixKerning": string;
|
|
1742
|
+
};
|
|
1733
1743
|
|
|
1734
1744
|
type CommandPaletteStyles = typeof styles$h;
|
|
1735
1745
|
|
|
@@ -1919,13 +1929,13 @@ declare const styles$1: {
|
|
|
1919
1929
|
type WidgetStyles = typeof styles$1;
|
|
1920
1930
|
|
|
1921
1931
|
declare const styles: {
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1932
|
+
readonly "root": string;
|
|
1933
|
+
readonly "label": string;
|
|
1934
|
+
readonly "value": string;
|
|
1935
|
+
readonly "copyButton": string;
|
|
1936
|
+
readonly "copyButtonText": string;
|
|
1937
|
+
readonly "isTrue": string;
|
|
1938
|
+
readonly "isFalse": string;
|
|
1929
1939
|
};
|
|
1930
1940
|
|
|
1931
1941
|
type WidgetCustomDataStyles = typeof styles;
|
|
@@ -2056,6 +2066,9 @@ interface SDKEventMap {
|
|
|
2056
2066
|
name: string;
|
|
2057
2067
|
data: unknown;
|
|
2058
2068
|
};
|
|
2069
|
+
'call-to-action': {
|
|
2070
|
+
cue: Cue;
|
|
2071
|
+
};
|
|
2059
2072
|
logout: undefined;
|
|
2060
2073
|
ready: undefined;
|
|
2061
2074
|
showSearchOverlay: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -1003,15 +1003,22 @@ declare namespace Server {
|
|
|
1003
1003
|
message: string;
|
|
1004
1004
|
profile_code: string;
|
|
1005
1005
|
}
|
|
1006
|
+
interface CallToAction {
|
|
1007
|
+
label: string;
|
|
1008
|
+
event: string;
|
|
1009
|
+
value: string;
|
|
1010
|
+
}
|
|
1006
1011
|
interface Cue {
|
|
1007
1012
|
text: string;
|
|
1008
1013
|
title: string;
|
|
1009
1014
|
rule: Pick<Rule, 'id' | 'name' | 'label' | 'description'>;
|
|
1015
|
+
call_to_action?: CallToAction;
|
|
1010
1016
|
}
|
|
1011
1017
|
interface EvaluationOutput {
|
|
1012
1018
|
code: string;
|
|
1013
1019
|
name: string;
|
|
1014
1020
|
response: string;
|
|
1021
|
+
call_to_action?: CallToAction;
|
|
1015
1022
|
}
|
|
1016
1023
|
/**
|
|
1017
1024
|
* Handling time event data
|
|
@@ -1271,6 +1278,10 @@ type SendEventV2ArgumentMap = {
|
|
|
1271
1278
|
'Assistant response copied': EventV2<RuleEventMeta & {
|
|
1272
1279
|
copiedText: string;
|
|
1273
1280
|
}>;
|
|
1281
|
+
'Assistant call to action': EventV2<RuleEventMeta & {
|
|
1282
|
+
eventName: string;
|
|
1283
|
+
value: string;
|
|
1284
|
+
}>;
|
|
1274
1285
|
'summary feedback': EventV2<{
|
|
1275
1286
|
summary: string;
|
|
1276
1287
|
rating: 'up' | 'down';
|
|
@@ -1683,53 +1694,52 @@ declare const styles$i: {
|
|
|
1683
1694
|
type AutoflowStyles = typeof styles$i;
|
|
1684
1695
|
|
|
1685
1696
|
declare const styles$h: {
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
};
|
|
1697
|
+
readonly "root": string;
|
|
1698
|
+
readonly "list": string;
|
|
1699
|
+
readonly "listWrapper": string;
|
|
1700
|
+
readonly "listHorizontal": string;
|
|
1701
|
+
readonly "page": string;
|
|
1702
|
+
readonly "search": string;
|
|
1703
|
+
readonly "pageNav": string;
|
|
1704
|
+
readonly "pageTitle": string;
|
|
1705
|
+
readonly "pageBackButton": string;
|
|
1706
|
+
readonly "listHeader": string;
|
|
1707
|
+
readonly "listHeading": string;
|
|
1708
|
+
readonly "listMoreButton": string;
|
|
1709
|
+
readonly "listItem": string;
|
|
1710
|
+
readonly "listItemContent": string;
|
|
1711
|
+
readonly "listItemText": string;
|
|
1712
|
+
readonly "listItemDescription": string;
|
|
1713
|
+
readonly "listItemActions": string;
|
|
1714
|
+
readonly "truncate": string;
|
|
1715
|
+
readonly "lineClamp": string;
|
|
1716
|
+
readonly "listItemTitle": string;
|
|
1717
|
+
readonly "listItemAction": string;
|
|
1718
|
+
readonly "listItemSelected": string;
|
|
1719
|
+
readonly "sources": string;
|
|
1720
|
+
readonly "sourcesTitle": string;
|
|
1721
|
+
readonly "source": string;
|
|
1722
|
+
readonly "sourceShowMore": string;
|
|
1723
|
+
readonly "icon": string;
|
|
1724
|
+
readonly "searchIcon": string;
|
|
1725
|
+
readonly "searchInputWrapper": string;
|
|
1726
|
+
readonly "searchInput": string;
|
|
1727
|
+
readonly "select": string;
|
|
1728
|
+
readonly "selectType": string;
|
|
1729
|
+
readonly "selectWrapper": string;
|
|
1730
|
+
readonly "image": string;
|
|
1731
|
+
readonly "imageSrc": string;
|
|
1732
|
+
readonly "imageSrcHidden": string;
|
|
1733
|
+
readonly "imageSrcStatus": string;
|
|
1734
|
+
readonly "imageTitle": string;
|
|
1735
|
+
readonly "actions": string;
|
|
1736
|
+
readonly "actionsWrapper": string;
|
|
1737
|
+
readonly "actionsBar": string;
|
|
1738
|
+
readonly "actionButton": string;
|
|
1739
|
+
readonly "hasShortKeys": string;
|
|
1740
|
+
readonly "actionShortcut": string;
|
|
1741
|
+
readonly "actionShortcutFixKerning": string;
|
|
1742
|
+
};
|
|
1733
1743
|
|
|
1734
1744
|
type CommandPaletteStyles = typeof styles$h;
|
|
1735
1745
|
|
|
@@ -1919,13 +1929,13 @@ declare const styles$1: {
|
|
|
1919
1929
|
type WidgetStyles = typeof styles$1;
|
|
1920
1930
|
|
|
1921
1931
|
declare const styles: {
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1932
|
+
readonly "root": string;
|
|
1933
|
+
readonly "label": string;
|
|
1934
|
+
readonly "value": string;
|
|
1935
|
+
readonly "copyButton": string;
|
|
1936
|
+
readonly "copyButtonText": string;
|
|
1937
|
+
readonly "isTrue": string;
|
|
1938
|
+
readonly "isFalse": string;
|
|
1929
1939
|
};
|
|
1930
1940
|
|
|
1931
1941
|
type WidgetCustomDataStyles = typeof styles;
|
|
@@ -2056,6 +2066,9 @@ interface SDKEventMap {
|
|
|
2056
2066
|
name: string;
|
|
2057
2067
|
data: unknown;
|
|
2058
2068
|
};
|
|
2069
|
+
'call-to-action': {
|
|
2070
|
+
cue: Cue;
|
|
2071
|
+
};
|
|
2059
2072
|
logout: undefined;
|
|
2060
2073
|
ready: undefined;
|
|
2061
2074
|
showSearchOverlay: boolean;
|