@deepdesk/deepdesk-sdk 14.1.1-beta.8 → 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/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
- readonly "root": string;
1687
- readonly "list": string;
1688
- readonly "listWrapper": string;
1689
- readonly "listHorizontal": string;
1690
- readonly "page": string;
1691
- readonly "search": string;
1692
- readonly "pageNav": string;
1693
- readonly "pageTitle": string;
1694
- readonly "pageBackButton": string;
1695
- readonly "listHeader": string;
1696
- readonly "listHeading": string;
1697
- readonly "listMoreButton": string;
1698
- readonly "listItem": string;
1699
- readonly "listItemContent": string;
1700
- readonly "listItemText": string;
1701
- readonly "listItemDescription": string;
1702
- readonly "listItemActions": string;
1703
- readonly "truncate": string;
1704
- readonly "lineClamp": string;
1705
- readonly "listItemTitle": string;
1706
- readonly "listItemAction": string;
1707
- readonly "listItemPrimaryAction": string;
1708
- readonly "listItemSelected": string;
1709
- readonly "sources": string;
1710
- readonly "sourcesTitle": string;
1711
- readonly "source": string;
1712
- readonly "sourceShowMore": string;
1713
- readonly "icon": string;
1714
- readonly "searchIcon": string;
1715
- readonly "searchInputWrapper": string;
1716
- readonly "searchInput": string;
1717
- readonly "select": string;
1718
- readonly "selectType": string;
1719
- readonly "selectWrapper": string;
1720
- readonly "image": string;
1721
- readonly "imageSrc": string;
1722
- readonly "imageSrcHidden": string;
1723
- readonly "imageSrcStatus": string;
1724
- readonly "imageTitle": string;
1725
- readonly "actions": string;
1726
- readonly "actionsWrapper": string;
1727
- readonly "actionsBar": string;
1728
- readonly "actionButton": string;
1729
- readonly "hasShortKeys": string;
1730
- readonly "actionShortcut": string;
1731
- readonly "actionShortcutFixKerning": string;
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
 
@@ -1923,6 +1933,7 @@ declare const styles: {
1923
1933
  readonly "label": string;
1924
1934
  readonly "value": string;
1925
1935
  readonly "copyButton": string;
1936
+ readonly "copyButtonText": string;
1926
1937
  readonly "isTrue": string;
1927
1938
  readonly "isFalse": string;
1928
1939
  };
@@ -2055,6 +2066,9 @@ interface SDKEventMap {
2055
2066
  name: string;
2056
2067
  data: unknown;
2057
2068
  };
2069
+ 'call-to-action': {
2070
+ cue: Cue;
2071
+ };
2058
2072
  logout: undefined;
2059
2073
  ready: undefined;
2060
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
- readonly "root": string;
1687
- readonly "list": string;
1688
- readonly "listWrapper": string;
1689
- readonly "listHorizontal": string;
1690
- readonly "page": string;
1691
- readonly "search": string;
1692
- readonly "pageNav": string;
1693
- readonly "pageTitle": string;
1694
- readonly "pageBackButton": string;
1695
- readonly "listHeader": string;
1696
- readonly "listHeading": string;
1697
- readonly "listMoreButton": string;
1698
- readonly "listItem": string;
1699
- readonly "listItemContent": string;
1700
- readonly "listItemText": string;
1701
- readonly "listItemDescription": string;
1702
- readonly "listItemActions": string;
1703
- readonly "truncate": string;
1704
- readonly "lineClamp": string;
1705
- readonly "listItemTitle": string;
1706
- readonly "listItemAction": string;
1707
- readonly "listItemPrimaryAction": string;
1708
- readonly "listItemSelected": string;
1709
- readonly "sources": string;
1710
- readonly "sourcesTitle": string;
1711
- readonly "source": string;
1712
- readonly "sourceShowMore": string;
1713
- readonly "icon": string;
1714
- readonly "searchIcon": string;
1715
- readonly "searchInputWrapper": string;
1716
- readonly "searchInput": string;
1717
- readonly "select": string;
1718
- readonly "selectType": string;
1719
- readonly "selectWrapper": string;
1720
- readonly "image": string;
1721
- readonly "imageSrc": string;
1722
- readonly "imageSrcHidden": string;
1723
- readonly "imageSrcStatus": string;
1724
- readonly "imageTitle": string;
1725
- readonly "actions": string;
1726
- readonly "actionsWrapper": string;
1727
- readonly "actionsBar": string;
1728
- readonly "actionButton": string;
1729
- readonly "hasShortKeys": string;
1730
- readonly "actionShortcut": string;
1731
- readonly "actionShortcutFixKerning": string;
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
 
@@ -1923,6 +1933,7 @@ declare const styles: {
1923
1933
  readonly "label": string;
1924
1934
  readonly "value": string;
1925
1935
  readonly "copyButton": string;
1936
+ readonly "copyButtonText": string;
1926
1937
  readonly "isTrue": string;
1927
1938
  readonly "isFalse": string;
1928
1939
  };
@@ -2055,6 +2066,9 @@ interface SDKEventMap {
2055
2066
  name: string;
2056
2067
  data: unknown;
2057
2068
  };
2069
+ 'call-to-action': {
2070
+ cue: Cue;
2071
+ };
2058
2072
  logout: undefined;
2059
2073
  ready: undefined;
2060
2074
  showSearchOverlay: boolean;