@deepdesk/deepdesk-sdk 14.1.1-beta.9 → 14.2.1-beta.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
@@ -1049,6 +1056,14 @@ declare namespace Server {
1049
1056
  results: SearchResult[];
1050
1057
  aggregates: Record<string, number>;
1051
1058
  };
1059
+ /**
1060
+ * Identity
1061
+ */
1062
+ type Identity = {
1063
+ id: string;
1064
+ platform_config_id?: string;
1065
+ external_id: string | number;
1066
+ };
1052
1067
  /**
1053
1068
  * Me
1054
1069
  */
@@ -1058,11 +1073,11 @@ declare namespace Server {
1058
1073
  email: string;
1059
1074
  username: string;
1060
1075
  ui_config?: unknown;
1061
- external_id?: string;
1062
1076
  nickname?: string;
1063
1077
  first_name?: string;
1064
1078
  last_name?: string;
1065
1079
  default_locale?: string;
1080
+ identities: Identity[];
1066
1081
  };
1067
1082
  /**
1068
1083
  * A Deepdesk user
@@ -1271,6 +1286,10 @@ type SendEventV2ArgumentMap = {
1271
1286
  'Assistant response copied': EventV2<RuleEventMeta & {
1272
1287
  copiedText: string;
1273
1288
  }>;
1289
+ 'Assistant call to action': EventV2<RuleEventMeta & {
1290
+ eventName: string;
1291
+ value: string;
1292
+ }>;
1274
1293
  'summary feedback': EventV2<{
1275
1294
  summary: string;
1276
1295
  rating: 'up' | 'down';
@@ -1317,7 +1336,8 @@ declare class DeepdeskAPI {
1317
1336
  constructor(apiUrl: string, options?: DeepdeskAPIOptions);
1318
1337
  createConversation(options: CreateConversationOptions): Promise<CamelCaseKeys<Server.Conversation>>;
1319
1338
  getMe(): Promise<CamelCaseKeys<Server.Me>>;
1320
- patchMe(data: Partial<CamelCaseKeys<Server.Me>>): Promise<unknown>;
1339
+ postIdentity(identity: CamelCaseKeys<Omit<Server.Identity, 'id'>>): Promise<void>;
1340
+ patchMe(data: Partial<CamelCaseKeys<Omit<Server.Me, 'permissions'>>>): Promise<CamelCaseKeys<Server.Me>>;
1321
1341
  getProfile(profileCode: string): Promise<CamelCaseKeys<Server.Profile>>;
1322
1342
  getKnowledgeAssistant(code: string): Promise<CamelCaseKeys<Server.KnowledgeAssistant>>;
1323
1343
  getContentTypes(): Promise<CamelCaseKeys<Server.ContentType[]>>;
@@ -1683,53 +1703,52 @@ declare const styles$i: {
1683
1703
  type AutoflowStyles = typeof styles$i;
1684
1704
 
1685
1705
  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
- };
1706
+ readonly "root": string;
1707
+ readonly "list": string;
1708
+ readonly "listWrapper": string;
1709
+ readonly "listHorizontal": string;
1710
+ readonly "page": string;
1711
+ readonly "search": string;
1712
+ readonly "pageNav": string;
1713
+ readonly "pageTitle": string;
1714
+ readonly "pageBackButton": string;
1715
+ readonly "listHeader": string;
1716
+ readonly "listHeading": string;
1717
+ readonly "listMoreButton": string;
1718
+ readonly "listItem": string;
1719
+ readonly "listItemContent": string;
1720
+ readonly "listItemText": string;
1721
+ readonly "listItemDescription": string;
1722
+ readonly "listItemActions": string;
1723
+ readonly "truncate": string;
1724
+ readonly "lineClamp": string;
1725
+ readonly "listItemTitle": string;
1726
+ readonly "listItemAction": string;
1727
+ readonly "listItemSelected": string;
1728
+ readonly "sources": string;
1729
+ readonly "sourcesTitle": string;
1730
+ readonly "source": string;
1731
+ readonly "sourceShowMore": string;
1732
+ readonly "icon": string;
1733
+ readonly "searchIcon": string;
1734
+ readonly "searchInputWrapper": string;
1735
+ readonly "searchInput": string;
1736
+ readonly "select": string;
1737
+ readonly "selectType": string;
1738
+ readonly "selectWrapper": string;
1739
+ readonly "image": string;
1740
+ readonly "imageSrc": string;
1741
+ readonly "imageSrcHidden": string;
1742
+ readonly "imageSrcStatus": string;
1743
+ readonly "imageTitle": string;
1744
+ readonly "actions": string;
1745
+ readonly "actionsWrapper": string;
1746
+ readonly "actionsBar": string;
1747
+ readonly "actionButton": string;
1748
+ readonly "hasShortKeys": string;
1749
+ readonly "actionShortcut": string;
1750
+ readonly "actionShortcutFixKerning": string;
1751
+ };
1733
1752
 
1734
1753
  type CommandPaletteStyles = typeof styles$h;
1735
1754
 
@@ -1919,13 +1938,13 @@ declare const styles$1: {
1919
1938
  type WidgetStyles = typeof styles$1;
1920
1939
 
1921
1940
  declare const styles: {
1922
- readonly root: string;
1923
- readonly label: string;
1924
- readonly value: string;
1925
- readonly copyButton: string;
1926
- readonly copyButtonText: string;
1927
- readonly isTrue: string;
1928
- readonly isFalse: string;
1941
+ readonly "root": string;
1942
+ readonly "label": string;
1943
+ readonly "value": string;
1944
+ readonly "copyButton": string;
1945
+ readonly "copyButtonText": string;
1946
+ readonly "isTrue": string;
1947
+ readonly "isFalse": string;
1929
1948
  };
1930
1949
 
1931
1950
  type WidgetCustomDataStyles = typeof styles;
@@ -2056,6 +2075,9 @@ interface SDKEventMap {
2056
2075
  name: string;
2057
2076
  data: unknown;
2058
2077
  };
2078
+ 'call-to-action': {
2079
+ cue: Cue;
2080
+ };
2059
2081
  logout: undefined;
2060
2082
  ready: undefined;
2061
2083
  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
@@ -1049,6 +1056,14 @@ declare namespace Server {
1049
1056
  results: SearchResult[];
1050
1057
  aggregates: Record<string, number>;
1051
1058
  };
1059
+ /**
1060
+ * Identity
1061
+ */
1062
+ type Identity = {
1063
+ id: string;
1064
+ platform_config_id?: string;
1065
+ external_id: string | number;
1066
+ };
1052
1067
  /**
1053
1068
  * Me
1054
1069
  */
@@ -1058,11 +1073,11 @@ declare namespace Server {
1058
1073
  email: string;
1059
1074
  username: string;
1060
1075
  ui_config?: unknown;
1061
- external_id?: string;
1062
1076
  nickname?: string;
1063
1077
  first_name?: string;
1064
1078
  last_name?: string;
1065
1079
  default_locale?: string;
1080
+ identities: Identity[];
1066
1081
  };
1067
1082
  /**
1068
1083
  * A Deepdesk user
@@ -1271,6 +1286,10 @@ type SendEventV2ArgumentMap = {
1271
1286
  'Assistant response copied': EventV2<RuleEventMeta & {
1272
1287
  copiedText: string;
1273
1288
  }>;
1289
+ 'Assistant call to action': EventV2<RuleEventMeta & {
1290
+ eventName: string;
1291
+ value: string;
1292
+ }>;
1274
1293
  'summary feedback': EventV2<{
1275
1294
  summary: string;
1276
1295
  rating: 'up' | 'down';
@@ -1317,7 +1336,8 @@ declare class DeepdeskAPI {
1317
1336
  constructor(apiUrl: string, options?: DeepdeskAPIOptions);
1318
1337
  createConversation(options: CreateConversationOptions): Promise<CamelCaseKeys<Server.Conversation>>;
1319
1338
  getMe(): Promise<CamelCaseKeys<Server.Me>>;
1320
- patchMe(data: Partial<CamelCaseKeys<Server.Me>>): Promise<unknown>;
1339
+ postIdentity(identity: CamelCaseKeys<Omit<Server.Identity, 'id'>>): Promise<void>;
1340
+ patchMe(data: Partial<CamelCaseKeys<Omit<Server.Me, 'permissions'>>>): Promise<CamelCaseKeys<Server.Me>>;
1321
1341
  getProfile(profileCode: string): Promise<CamelCaseKeys<Server.Profile>>;
1322
1342
  getKnowledgeAssistant(code: string): Promise<CamelCaseKeys<Server.KnowledgeAssistant>>;
1323
1343
  getContentTypes(): Promise<CamelCaseKeys<Server.ContentType[]>>;
@@ -1683,53 +1703,52 @@ declare const styles$i: {
1683
1703
  type AutoflowStyles = typeof styles$i;
1684
1704
 
1685
1705
  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
- };
1706
+ readonly "root": string;
1707
+ readonly "list": string;
1708
+ readonly "listWrapper": string;
1709
+ readonly "listHorizontal": string;
1710
+ readonly "page": string;
1711
+ readonly "search": string;
1712
+ readonly "pageNav": string;
1713
+ readonly "pageTitle": string;
1714
+ readonly "pageBackButton": string;
1715
+ readonly "listHeader": string;
1716
+ readonly "listHeading": string;
1717
+ readonly "listMoreButton": string;
1718
+ readonly "listItem": string;
1719
+ readonly "listItemContent": string;
1720
+ readonly "listItemText": string;
1721
+ readonly "listItemDescription": string;
1722
+ readonly "listItemActions": string;
1723
+ readonly "truncate": string;
1724
+ readonly "lineClamp": string;
1725
+ readonly "listItemTitle": string;
1726
+ readonly "listItemAction": string;
1727
+ readonly "listItemSelected": string;
1728
+ readonly "sources": string;
1729
+ readonly "sourcesTitle": string;
1730
+ readonly "source": string;
1731
+ readonly "sourceShowMore": string;
1732
+ readonly "icon": string;
1733
+ readonly "searchIcon": string;
1734
+ readonly "searchInputWrapper": string;
1735
+ readonly "searchInput": string;
1736
+ readonly "select": string;
1737
+ readonly "selectType": string;
1738
+ readonly "selectWrapper": string;
1739
+ readonly "image": string;
1740
+ readonly "imageSrc": string;
1741
+ readonly "imageSrcHidden": string;
1742
+ readonly "imageSrcStatus": string;
1743
+ readonly "imageTitle": string;
1744
+ readonly "actions": string;
1745
+ readonly "actionsWrapper": string;
1746
+ readonly "actionsBar": string;
1747
+ readonly "actionButton": string;
1748
+ readonly "hasShortKeys": string;
1749
+ readonly "actionShortcut": string;
1750
+ readonly "actionShortcutFixKerning": string;
1751
+ };
1733
1752
 
1734
1753
  type CommandPaletteStyles = typeof styles$h;
1735
1754
 
@@ -1919,13 +1938,13 @@ declare const styles$1: {
1919
1938
  type WidgetStyles = typeof styles$1;
1920
1939
 
1921
1940
  declare const styles: {
1922
- readonly root: string;
1923
- readonly label: string;
1924
- readonly value: string;
1925
- readonly copyButton: string;
1926
- readonly copyButtonText: string;
1927
- readonly isTrue: string;
1928
- readonly isFalse: string;
1941
+ readonly "root": string;
1942
+ readonly "label": string;
1943
+ readonly "value": string;
1944
+ readonly "copyButton": string;
1945
+ readonly "copyButtonText": string;
1946
+ readonly "isTrue": string;
1947
+ readonly "isFalse": string;
1929
1948
  };
1930
1949
 
1931
1950
  type WidgetCustomDataStyles = typeof styles;
@@ -2056,6 +2075,9 @@ interface SDKEventMap {
2056
2075
  name: string;
2057
2076
  data: unknown;
2058
2077
  };
2078
+ 'call-to-action': {
2079
+ cue: Cue;
2080
+ };
2059
2081
  logout: undefined;
2060
2082
  ready: undefined;
2061
2083
  showSearchOverlay: boolean;