@deepdesk/deepdesk-sdk 11.2.1-beta.8 → 11.3.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
@@ -4,7 +4,7 @@ import * as _reduxjs_toolkit_dist_configureStore from '@reduxjs/toolkit/dist/con
4
4
  import * as _reduxjs_toolkit from '@reduxjs/toolkit';
5
5
  import { Middleware } from '@reduxjs/toolkit';
6
6
 
7
- declare const styles$m: {
7
+ declare const styles$o: {
8
8
  readonly "root": string;
9
9
  readonly "imageWrapper": string;
10
10
  readonly "image": string;
@@ -33,10 +33,10 @@ interface CardComposition {
33
33
  Content: FC<ContentProps>;
34
34
  Title: FC<TitleProps>;
35
35
  }
36
- type CardStyles = typeof styles$m;
36
+ type CardStyles = typeof styles$o;
37
37
  declare const Card: FC & CardComposition;
38
38
 
39
- declare const styles$l: {
39
+ declare const styles$n: {
40
40
  readonly "root": string;
41
41
  };
42
42
 
@@ -51,18 +51,18 @@ type Props$6 = HTMLAttributes<HTMLSpanElement> & {
51
51
  className?: string;
52
52
  keyCode: KeyboardHintKey;
53
53
  };
54
- type KeyboardHintStyles = typeof styles$l;
54
+ type KeyboardHintStyles = typeof styles$n;
55
55
  declare const KeyboardHint: React.FC<Props$6>;
56
56
 
57
- declare const styles$k: {
57
+ declare const styles$m: {
58
58
  readonly "root": string;
59
59
  };
60
60
 
61
61
  type Props$5 = HTMLAttributes<HTMLSpanElement>;
62
- type LabelStyles = typeof styles$k;
62
+ type LabelStyles = typeof styles$m;
63
63
  declare const Label: React.FC<Props$5>;
64
64
 
65
- declare const styles$j: {
65
+ declare const styles$l: {
66
66
  readonly "root": string;
67
67
  readonly "subTitleContainer": string;
68
68
  readonly "subtitle": string;
@@ -73,10 +73,10 @@ type Props$4 = HTMLAttributes<HTMLElement> & {
73
73
  type: string;
74
74
  title?: string;
75
75
  };
76
- type SectionStyles = typeof styles$j;
76
+ type SectionStyles = typeof styles$l;
77
77
  declare const Section: React.FC<Props$4>;
78
78
 
79
- declare const styles$i: {
79
+ declare const styles$k: {
80
80
  readonly "root": string;
81
81
  };
82
82
 
@@ -84,10 +84,10 @@ type Props$3 = {
84
84
  className?: string;
85
85
  children?: React.ReactNode;
86
86
  };
87
- type SectionListStyles = typeof styles$i;
87
+ type SectionListStyles = typeof styles$k;
88
88
  declare const SectionList: React.ForwardRefExoticComponent<Props$3 & React.RefAttributes<HTMLDivElement>>;
89
89
 
90
- declare const styles$h: {
90
+ declare const styles$j: {
91
91
  readonly "root": string;
92
92
  readonly "fadein": string;
93
93
  readonly "isClickable": string;
@@ -138,21 +138,21 @@ interface SuggestionComposition {
138
138
  Labels: FC<LabelProps>;
139
139
  IconButton: FC<IconButtonProps>;
140
140
  }
141
- type SuggestionStyles = typeof styles$h;
141
+ type SuggestionStyles = typeof styles$j;
142
142
  declare const Suggestion: ForwardRefExoticComponent<Props$2 & RefAttributes<any>> & SuggestionComposition;
143
143
 
144
- declare const styles$g: {
144
+ declare const styles$i: {
145
145
  readonly "root": string;
146
146
  readonly "isWithDivider": string;
147
147
  };
148
148
 
149
- type SuggestionListStyles = typeof styles$g;
149
+ type SuggestionListStyles = typeof styles$i;
150
150
  interface Props$1 {
151
151
  withDivider?: boolean;
152
152
  }
153
153
  declare const SuggestionList: React.FC<Props$1>;
154
154
 
155
- declare const styles$f: {
155
+ declare const styles$h: {
156
156
  readonly "root": string;
157
157
  readonly "isCollapsed": string;
158
158
  };
@@ -161,7 +161,7 @@ type Props = HTMLAttributes<HTMLButtonElement> & {
161
161
  isCollapsed: boolean;
162
162
  title: string;
163
163
  };
164
- type ToggleButtonStyles = typeof styles$f;
164
+ type ToggleButtonStyles = typeof styles$h;
165
165
  declare const ToggleButton: React.FC<Props>;
166
166
 
167
167
  declare enum Sources {
@@ -1211,6 +1211,16 @@ type SendEventV2ArgumentMap = {
1211
1211
  'Assistant response copied': EventV2<RuleEventMeta & {
1212
1212
  copiedText: string;
1213
1213
  }>;
1214
+ 'summary feedback': EventV2<{
1215
+ summary: string;
1216
+ rating: 'up' | 'down';
1217
+ }>;
1218
+ 'knowledge assist feedback': EventV2<{
1219
+ question: string;
1220
+ isFollowUpQuestion: boolean;
1221
+ isAgent: boolean;
1222
+ answer: KnowledgeAnswer;
1223
+ }>;
1214
1224
  };
1215
1225
  /**
1216
1226
  * Request retry options
@@ -1566,7 +1576,7 @@ interface TextSuggestionState {
1566
1576
  [type: string]: SuggestionState;
1567
1577
  }
1568
1578
 
1569
- declare const styles$e: {
1579
+ declare const styles$g: {
1570
1580
  readonly "isDisabled": string;
1571
1581
  readonly "buttonStart": string;
1572
1582
  readonly "root": string;
@@ -1577,9 +1587,9 @@ declare const styles$e: {
1577
1587
  readonly "isAborted": string;
1578
1588
  };
1579
1589
 
1580
- type AutoflowStyles = typeof styles$e;
1590
+ type AutoflowStyles = typeof styles$g;
1581
1591
 
1582
- declare const styles$d: {
1592
+ declare const styles$f: {
1583
1593
  readonly "root": string;
1584
1594
  readonly "list": string;
1585
1595
  readonly "listWrapper": string;
@@ -1627,23 +1637,23 @@ declare const styles$d: {
1627
1637
  readonly "actionShortcutFixKerning": string;
1628
1638
  };
1629
1639
 
1630
- type CommandPaletteStyles = typeof styles$d;
1640
+ type CommandPaletteStyles = typeof styles$f;
1631
1641
 
1632
- declare const styles$c: {
1642
+ declare const styles$e: {
1633
1643
  readonly "root": string;
1634
1644
  readonly "content": string;
1635
1645
  };
1636
1646
 
1637
- type DialogStyles = typeof styles$c;
1647
+ type DialogStyles = typeof styles$e;
1638
1648
 
1639
- declare const styles$b: {
1649
+ declare const styles$d: {
1640
1650
  readonly "root": string;
1641
1651
  readonly "empty": string;
1642
1652
  };
1643
1653
 
1644
- type EntitiesListStyles = typeof styles$b;
1654
+ type EntitiesListStyles = typeof styles$d;
1645
1655
 
1646
- declare const styles$a: {
1656
+ declare const styles$c: {
1647
1657
  readonly "root": string;
1648
1658
  readonly "entity": string;
1649
1659
  readonly "entityText": string;
@@ -1652,9 +1662,20 @@ declare const styles$a: {
1652
1662
  readonly "iconClicked": string;
1653
1663
  };
1654
1664
 
1655
- type EntitiesWidgetListStyles = typeof styles$a;
1665
+ type EntitiesWidgetListStyles = typeof styles$c;
1656
1666
 
1657
- declare const styles$9: {
1667
+ declare const styles$b: {
1668
+ readonly "thumbs": string;
1669
+ readonly "fadeup": string;
1670
+ readonly "fadedown": string;
1671
+ readonly "selected": string;
1672
+ readonly "thumbsUp": string;
1673
+ readonly "thumbsDown": string;
1674
+ };
1675
+
1676
+ type FeedbackThumbsStyles = typeof styles$b;
1677
+
1678
+ declare const styles$a: {
1658
1679
  readonly "root": string;
1659
1680
  readonly "text": string;
1660
1681
  readonly "isLoggedIn": string;
@@ -1664,14 +1685,30 @@ declare const styles$9: {
1664
1685
  readonly "lock": string;
1665
1686
  };
1666
1687
 
1667
- type FloatingMenuStyles = typeof styles$9;
1688
+ type FloatingMenuStyles = typeof styles$a;
1668
1689
 
1669
- declare const styles$8: {
1690
+ declare const styles$9: {
1670
1691
  readonly "root": string;
1671
1692
  readonly "paper": string;
1672
1693
  };
1673
1694
 
1674
- type InlineSuggestionsOverlayStyles = typeof styles$8;
1695
+ type InlineSuggestionsOverlayStyles = typeof styles$9;
1696
+
1697
+ declare const styles$8: {
1698
+ readonly "root": string;
1699
+ readonly "title": string;
1700
+ readonly "empty": string;
1701
+ readonly "status": string;
1702
+ readonly "form": string;
1703
+ readonly "input": string;
1704
+ readonly "submit": string;
1705
+ readonly "question": string;
1706
+ readonly "answer": string;
1707
+ readonly "alignRight": string;
1708
+ readonly "listItemFeedback": string;
1709
+ };
1710
+
1711
+ type KnowledgeSearchStyles = typeof styles$8;
1675
1712
 
1676
1713
  declare const styles$7: {
1677
1714
  readonly "root": string;
@@ -1792,6 +1829,8 @@ type WidgetCustomStyles = {
1792
1829
  type InputOverlayCustomStyles = {
1793
1830
  CommandPalette?: Partial<CommandPaletteStyles>;
1794
1831
  EntitiesList?: Partial<EntitiesListStyles>;
1832
+ FeedbackThumbs?: Partial<FeedbackThumbsStyles>;
1833
+ KnowledgeSearch?: Partial<KnowledgeSearchStyles>;
1795
1834
  Label?: Partial<LabelStyles>;
1796
1835
  Login?: Partial<LoginStyles>;
1797
1836
  LoginTokenDialog?: Partial<LoginTokenDialogStyles>;
@@ -1890,6 +1929,10 @@ interface SDKEventMap {
1890
1929
  'edit-suggestion': EditTextSuggestionPayload;
1891
1930
  'send-message': string;
1892
1931
  'send-message-event': SendMessageEventData;
1932
+ 'event': {
1933
+ name: string;
1934
+ data: unknown;
1935
+ };
1893
1936
  logout: undefined;
1894
1937
  ready: undefined;
1895
1938
  showSearchOverlay: boolean;
package/dist/index.d.ts CHANGED
@@ -4,7 +4,7 @@ import * as _reduxjs_toolkit_dist_configureStore from '@reduxjs/toolkit/dist/con
4
4
  import * as _reduxjs_toolkit from '@reduxjs/toolkit';
5
5
  import { Middleware } from '@reduxjs/toolkit';
6
6
 
7
- declare const styles$m: {
7
+ declare const styles$o: {
8
8
  readonly "root": string;
9
9
  readonly "imageWrapper": string;
10
10
  readonly "image": string;
@@ -33,10 +33,10 @@ interface CardComposition {
33
33
  Content: FC<ContentProps>;
34
34
  Title: FC<TitleProps>;
35
35
  }
36
- type CardStyles = typeof styles$m;
36
+ type CardStyles = typeof styles$o;
37
37
  declare const Card: FC & CardComposition;
38
38
 
39
- declare const styles$l: {
39
+ declare const styles$n: {
40
40
  readonly "root": string;
41
41
  };
42
42
 
@@ -51,18 +51,18 @@ type Props$6 = HTMLAttributes<HTMLSpanElement> & {
51
51
  className?: string;
52
52
  keyCode: KeyboardHintKey;
53
53
  };
54
- type KeyboardHintStyles = typeof styles$l;
54
+ type KeyboardHintStyles = typeof styles$n;
55
55
  declare const KeyboardHint: React.FC<Props$6>;
56
56
 
57
- declare const styles$k: {
57
+ declare const styles$m: {
58
58
  readonly "root": string;
59
59
  };
60
60
 
61
61
  type Props$5 = HTMLAttributes<HTMLSpanElement>;
62
- type LabelStyles = typeof styles$k;
62
+ type LabelStyles = typeof styles$m;
63
63
  declare const Label: React.FC<Props$5>;
64
64
 
65
- declare const styles$j: {
65
+ declare const styles$l: {
66
66
  readonly "root": string;
67
67
  readonly "subTitleContainer": string;
68
68
  readonly "subtitle": string;
@@ -73,10 +73,10 @@ type Props$4 = HTMLAttributes<HTMLElement> & {
73
73
  type: string;
74
74
  title?: string;
75
75
  };
76
- type SectionStyles = typeof styles$j;
76
+ type SectionStyles = typeof styles$l;
77
77
  declare const Section: React.FC<Props$4>;
78
78
 
79
- declare const styles$i: {
79
+ declare const styles$k: {
80
80
  readonly "root": string;
81
81
  };
82
82
 
@@ -84,10 +84,10 @@ type Props$3 = {
84
84
  className?: string;
85
85
  children?: React.ReactNode;
86
86
  };
87
- type SectionListStyles = typeof styles$i;
87
+ type SectionListStyles = typeof styles$k;
88
88
  declare const SectionList: React.ForwardRefExoticComponent<Props$3 & React.RefAttributes<HTMLDivElement>>;
89
89
 
90
- declare const styles$h: {
90
+ declare const styles$j: {
91
91
  readonly "root": string;
92
92
  readonly "fadein": string;
93
93
  readonly "isClickable": string;
@@ -138,21 +138,21 @@ interface SuggestionComposition {
138
138
  Labels: FC<LabelProps>;
139
139
  IconButton: FC<IconButtonProps>;
140
140
  }
141
- type SuggestionStyles = typeof styles$h;
141
+ type SuggestionStyles = typeof styles$j;
142
142
  declare const Suggestion: ForwardRefExoticComponent<Props$2 & RefAttributes<any>> & SuggestionComposition;
143
143
 
144
- declare const styles$g: {
144
+ declare const styles$i: {
145
145
  readonly "root": string;
146
146
  readonly "isWithDivider": string;
147
147
  };
148
148
 
149
- type SuggestionListStyles = typeof styles$g;
149
+ type SuggestionListStyles = typeof styles$i;
150
150
  interface Props$1 {
151
151
  withDivider?: boolean;
152
152
  }
153
153
  declare const SuggestionList: React.FC<Props$1>;
154
154
 
155
- declare const styles$f: {
155
+ declare const styles$h: {
156
156
  readonly "root": string;
157
157
  readonly "isCollapsed": string;
158
158
  };
@@ -161,7 +161,7 @@ type Props = HTMLAttributes<HTMLButtonElement> & {
161
161
  isCollapsed: boolean;
162
162
  title: string;
163
163
  };
164
- type ToggleButtonStyles = typeof styles$f;
164
+ type ToggleButtonStyles = typeof styles$h;
165
165
  declare const ToggleButton: React.FC<Props>;
166
166
 
167
167
  declare enum Sources {
@@ -1211,6 +1211,16 @@ type SendEventV2ArgumentMap = {
1211
1211
  'Assistant response copied': EventV2<RuleEventMeta & {
1212
1212
  copiedText: string;
1213
1213
  }>;
1214
+ 'summary feedback': EventV2<{
1215
+ summary: string;
1216
+ rating: 'up' | 'down';
1217
+ }>;
1218
+ 'knowledge assist feedback': EventV2<{
1219
+ question: string;
1220
+ isFollowUpQuestion: boolean;
1221
+ isAgent: boolean;
1222
+ answer: KnowledgeAnswer;
1223
+ }>;
1214
1224
  };
1215
1225
  /**
1216
1226
  * Request retry options
@@ -1566,7 +1576,7 @@ interface TextSuggestionState {
1566
1576
  [type: string]: SuggestionState;
1567
1577
  }
1568
1578
 
1569
- declare const styles$e: {
1579
+ declare const styles$g: {
1570
1580
  readonly "isDisabled": string;
1571
1581
  readonly "buttonStart": string;
1572
1582
  readonly "root": string;
@@ -1577,9 +1587,9 @@ declare const styles$e: {
1577
1587
  readonly "isAborted": string;
1578
1588
  };
1579
1589
 
1580
- type AutoflowStyles = typeof styles$e;
1590
+ type AutoflowStyles = typeof styles$g;
1581
1591
 
1582
- declare const styles$d: {
1592
+ declare const styles$f: {
1583
1593
  readonly "root": string;
1584
1594
  readonly "list": string;
1585
1595
  readonly "listWrapper": string;
@@ -1627,23 +1637,23 @@ declare const styles$d: {
1627
1637
  readonly "actionShortcutFixKerning": string;
1628
1638
  };
1629
1639
 
1630
- type CommandPaletteStyles = typeof styles$d;
1640
+ type CommandPaletteStyles = typeof styles$f;
1631
1641
 
1632
- declare const styles$c: {
1642
+ declare const styles$e: {
1633
1643
  readonly "root": string;
1634
1644
  readonly "content": string;
1635
1645
  };
1636
1646
 
1637
- type DialogStyles = typeof styles$c;
1647
+ type DialogStyles = typeof styles$e;
1638
1648
 
1639
- declare const styles$b: {
1649
+ declare const styles$d: {
1640
1650
  readonly "root": string;
1641
1651
  readonly "empty": string;
1642
1652
  };
1643
1653
 
1644
- type EntitiesListStyles = typeof styles$b;
1654
+ type EntitiesListStyles = typeof styles$d;
1645
1655
 
1646
- declare const styles$a: {
1656
+ declare const styles$c: {
1647
1657
  readonly "root": string;
1648
1658
  readonly "entity": string;
1649
1659
  readonly "entityText": string;
@@ -1652,9 +1662,20 @@ declare const styles$a: {
1652
1662
  readonly "iconClicked": string;
1653
1663
  };
1654
1664
 
1655
- type EntitiesWidgetListStyles = typeof styles$a;
1665
+ type EntitiesWidgetListStyles = typeof styles$c;
1656
1666
 
1657
- declare const styles$9: {
1667
+ declare const styles$b: {
1668
+ readonly "thumbs": string;
1669
+ readonly "fadeup": string;
1670
+ readonly "fadedown": string;
1671
+ readonly "selected": string;
1672
+ readonly "thumbsUp": string;
1673
+ readonly "thumbsDown": string;
1674
+ };
1675
+
1676
+ type FeedbackThumbsStyles = typeof styles$b;
1677
+
1678
+ declare const styles$a: {
1658
1679
  readonly "root": string;
1659
1680
  readonly "text": string;
1660
1681
  readonly "isLoggedIn": string;
@@ -1664,14 +1685,30 @@ declare const styles$9: {
1664
1685
  readonly "lock": string;
1665
1686
  };
1666
1687
 
1667
- type FloatingMenuStyles = typeof styles$9;
1688
+ type FloatingMenuStyles = typeof styles$a;
1668
1689
 
1669
- declare const styles$8: {
1690
+ declare const styles$9: {
1670
1691
  readonly "root": string;
1671
1692
  readonly "paper": string;
1672
1693
  };
1673
1694
 
1674
- type InlineSuggestionsOverlayStyles = typeof styles$8;
1695
+ type InlineSuggestionsOverlayStyles = typeof styles$9;
1696
+
1697
+ declare const styles$8: {
1698
+ readonly "root": string;
1699
+ readonly "title": string;
1700
+ readonly "empty": string;
1701
+ readonly "status": string;
1702
+ readonly "form": string;
1703
+ readonly "input": string;
1704
+ readonly "submit": string;
1705
+ readonly "question": string;
1706
+ readonly "answer": string;
1707
+ readonly "alignRight": string;
1708
+ readonly "listItemFeedback": string;
1709
+ };
1710
+
1711
+ type KnowledgeSearchStyles = typeof styles$8;
1675
1712
 
1676
1713
  declare const styles$7: {
1677
1714
  readonly "root": string;
@@ -1792,6 +1829,8 @@ type WidgetCustomStyles = {
1792
1829
  type InputOverlayCustomStyles = {
1793
1830
  CommandPalette?: Partial<CommandPaletteStyles>;
1794
1831
  EntitiesList?: Partial<EntitiesListStyles>;
1832
+ FeedbackThumbs?: Partial<FeedbackThumbsStyles>;
1833
+ KnowledgeSearch?: Partial<KnowledgeSearchStyles>;
1795
1834
  Label?: Partial<LabelStyles>;
1796
1835
  Login?: Partial<LoginStyles>;
1797
1836
  LoginTokenDialog?: Partial<LoginTokenDialogStyles>;
@@ -1890,6 +1929,10 @@ interface SDKEventMap {
1890
1929
  'edit-suggestion': EditTextSuggestionPayload;
1891
1930
  'send-message': string;
1892
1931
  'send-message-event': SendMessageEventData;
1932
+ 'event': {
1933
+ name: string;
1934
+ data: unknown;
1935
+ };
1893
1936
  logout: undefined;
1894
1937
  ready: undefined;
1895
1938
  showSearchOverlay: boolean;