@deepdesk/deepdesk-sdk 11.2.1-beta.7 → 11.2.1-beta.9

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 {
@@ -659,7 +659,6 @@ type Autoflow = CamelCaseKeys<Server$1.Autoflow> & {
659
659
  interface State$e {
660
660
  list: Autoflow[];
661
661
  fetchState: FetchState;
662
- isInitialRequest: null | boolean;
663
662
  }
664
663
 
665
664
  interface State$d {
@@ -677,7 +676,6 @@ type CustomMessage = CamelCaseKeys<Server$1.CustomMessage>;
677
676
  interface State$b {
678
677
  list: CustomMessage[];
679
678
  fetchState: FetchState;
680
- isInitialRequest: null | boolean;
681
679
  sentSuggestions: string[];
682
680
  errorSuggestions: string[];
683
681
  answeredSuggestions: string[];
@@ -1213,6 +1211,16 @@ type SendEventV2ArgumentMap = {
1213
1211
  'Assistant response copied': EventV2<RuleEventMeta & {
1214
1212
  copiedText: string;
1215
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
+ }>;
1216
1224
  };
1217
1225
  /**
1218
1226
  * Request retry options
@@ -1552,7 +1560,6 @@ type StyleSuggestion = CamelCaseKeys<Server.StyleSuggestion>;
1552
1560
  interface State$2 {
1553
1561
  list: StyleSuggestion;
1554
1562
  fetchState: FetchState;
1555
- isInitialRequest: null | boolean;
1556
1563
  }
1557
1564
 
1558
1565
  type Cue = CamelCaseKeys<Server.Cue>;
@@ -1564,13 +1571,12 @@ type State$1 = {
1564
1571
  type SuggestionState = {
1565
1572
  suggestions: TextSuggestion[];
1566
1573
  fetchState: FetchState;
1567
- isInitialRequest: null | boolean;
1568
1574
  };
1569
1575
  interface TextSuggestionState {
1570
1576
  [type: string]: SuggestionState;
1571
1577
  }
1572
1578
 
1573
- declare const styles$e: {
1579
+ declare const styles$g: {
1574
1580
  readonly "isDisabled": string;
1575
1581
  readonly "buttonStart": string;
1576
1582
  readonly "root": string;
@@ -1581,9 +1587,9 @@ declare const styles$e: {
1581
1587
  readonly "isAborted": string;
1582
1588
  };
1583
1589
 
1584
- type AutoflowStyles = typeof styles$e;
1590
+ type AutoflowStyles = typeof styles$g;
1585
1591
 
1586
- declare const styles$d: {
1592
+ declare const styles$f: {
1587
1593
  readonly "root": string;
1588
1594
  readonly "list": string;
1589
1595
  readonly "listWrapper": string;
@@ -1631,23 +1637,23 @@ declare const styles$d: {
1631
1637
  readonly "actionShortcutFixKerning": string;
1632
1638
  };
1633
1639
 
1634
- type CommandPaletteStyles = typeof styles$d;
1640
+ type CommandPaletteStyles = typeof styles$f;
1635
1641
 
1636
- declare const styles$c: {
1642
+ declare const styles$e: {
1637
1643
  readonly "root": string;
1638
1644
  readonly "content": string;
1639
1645
  };
1640
1646
 
1641
- type DialogStyles = typeof styles$c;
1647
+ type DialogStyles = typeof styles$e;
1642
1648
 
1643
- declare const styles$b: {
1649
+ declare const styles$d: {
1644
1650
  readonly "root": string;
1645
1651
  readonly "empty": string;
1646
1652
  };
1647
1653
 
1648
- type EntitiesListStyles = typeof styles$b;
1654
+ type EntitiesListStyles = typeof styles$d;
1649
1655
 
1650
- declare const styles$a: {
1656
+ declare const styles$c: {
1651
1657
  readonly "root": string;
1652
1658
  readonly "entity": string;
1653
1659
  readonly "entityText": string;
@@ -1656,9 +1662,20 @@ declare const styles$a: {
1656
1662
  readonly "iconClicked": string;
1657
1663
  };
1658
1664
 
1659
- type EntitiesWidgetListStyles = typeof styles$a;
1665
+ type EntitiesWidgetListStyles = typeof styles$c;
1660
1666
 
1661
- 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: {
1662
1679
  readonly "root": string;
1663
1680
  readonly "text": string;
1664
1681
  readonly "isLoggedIn": string;
@@ -1668,14 +1685,30 @@ declare const styles$9: {
1668
1685
  readonly "lock": string;
1669
1686
  };
1670
1687
 
1671
- type FloatingMenuStyles = typeof styles$9;
1688
+ type FloatingMenuStyles = typeof styles$a;
1672
1689
 
1673
- declare const styles$8: {
1690
+ declare const styles$9: {
1674
1691
  readonly "root": string;
1675
1692
  readonly "paper": string;
1676
1693
  };
1677
1694
 
1678
- 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;
1679
1712
 
1680
1713
  declare const styles$7: {
1681
1714
  readonly "root": string;
@@ -1796,6 +1829,8 @@ type WidgetCustomStyles = {
1796
1829
  type InputOverlayCustomStyles = {
1797
1830
  CommandPalette?: Partial<CommandPaletteStyles>;
1798
1831
  EntitiesList?: Partial<EntitiesListStyles>;
1832
+ FeedbackThumbs?: Partial<FeedbackThumbsStyles>;
1833
+ KnowledgeSearch?: Partial<KnowledgeSearchStyles>;
1799
1834
  Label?: Partial<LabelStyles>;
1800
1835
  Login?: Partial<LoginStyles>;
1801
1836
  LoginTokenDialog?: Partial<LoginTokenDialogStyles>;
@@ -1894,6 +1929,10 @@ interface SDKEventMap {
1894
1929
  'edit-suggestion': EditTextSuggestionPayload;
1895
1930
  'send-message': string;
1896
1931
  'send-message-event': SendMessageEventData;
1932
+ 'event': {
1933
+ name: string;
1934
+ data: unknown;
1935
+ };
1897
1936
  logout: undefined;
1898
1937
  ready: undefined;
1899
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 {
@@ -659,7 +659,6 @@ type Autoflow = CamelCaseKeys<Server$1.Autoflow> & {
659
659
  interface State$e {
660
660
  list: Autoflow[];
661
661
  fetchState: FetchState;
662
- isInitialRequest: null | boolean;
663
662
  }
664
663
 
665
664
  interface State$d {
@@ -677,7 +676,6 @@ type CustomMessage = CamelCaseKeys<Server$1.CustomMessage>;
677
676
  interface State$b {
678
677
  list: CustomMessage[];
679
678
  fetchState: FetchState;
680
- isInitialRequest: null | boolean;
681
679
  sentSuggestions: string[];
682
680
  errorSuggestions: string[];
683
681
  answeredSuggestions: string[];
@@ -1213,6 +1211,16 @@ type SendEventV2ArgumentMap = {
1213
1211
  'Assistant response copied': EventV2<RuleEventMeta & {
1214
1212
  copiedText: string;
1215
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
+ }>;
1216
1224
  };
1217
1225
  /**
1218
1226
  * Request retry options
@@ -1552,7 +1560,6 @@ type StyleSuggestion = CamelCaseKeys<Server.StyleSuggestion>;
1552
1560
  interface State$2 {
1553
1561
  list: StyleSuggestion;
1554
1562
  fetchState: FetchState;
1555
- isInitialRequest: null | boolean;
1556
1563
  }
1557
1564
 
1558
1565
  type Cue = CamelCaseKeys<Server.Cue>;
@@ -1564,13 +1571,12 @@ type State$1 = {
1564
1571
  type SuggestionState = {
1565
1572
  suggestions: TextSuggestion[];
1566
1573
  fetchState: FetchState;
1567
- isInitialRequest: null | boolean;
1568
1574
  };
1569
1575
  interface TextSuggestionState {
1570
1576
  [type: string]: SuggestionState;
1571
1577
  }
1572
1578
 
1573
- declare const styles$e: {
1579
+ declare const styles$g: {
1574
1580
  readonly "isDisabled": string;
1575
1581
  readonly "buttonStart": string;
1576
1582
  readonly "root": string;
@@ -1581,9 +1587,9 @@ declare const styles$e: {
1581
1587
  readonly "isAborted": string;
1582
1588
  };
1583
1589
 
1584
- type AutoflowStyles = typeof styles$e;
1590
+ type AutoflowStyles = typeof styles$g;
1585
1591
 
1586
- declare const styles$d: {
1592
+ declare const styles$f: {
1587
1593
  readonly "root": string;
1588
1594
  readonly "list": string;
1589
1595
  readonly "listWrapper": string;
@@ -1631,23 +1637,23 @@ declare const styles$d: {
1631
1637
  readonly "actionShortcutFixKerning": string;
1632
1638
  };
1633
1639
 
1634
- type CommandPaletteStyles = typeof styles$d;
1640
+ type CommandPaletteStyles = typeof styles$f;
1635
1641
 
1636
- declare const styles$c: {
1642
+ declare const styles$e: {
1637
1643
  readonly "root": string;
1638
1644
  readonly "content": string;
1639
1645
  };
1640
1646
 
1641
- type DialogStyles = typeof styles$c;
1647
+ type DialogStyles = typeof styles$e;
1642
1648
 
1643
- declare const styles$b: {
1649
+ declare const styles$d: {
1644
1650
  readonly "root": string;
1645
1651
  readonly "empty": string;
1646
1652
  };
1647
1653
 
1648
- type EntitiesListStyles = typeof styles$b;
1654
+ type EntitiesListStyles = typeof styles$d;
1649
1655
 
1650
- declare const styles$a: {
1656
+ declare const styles$c: {
1651
1657
  readonly "root": string;
1652
1658
  readonly "entity": string;
1653
1659
  readonly "entityText": string;
@@ -1656,9 +1662,20 @@ declare const styles$a: {
1656
1662
  readonly "iconClicked": string;
1657
1663
  };
1658
1664
 
1659
- type EntitiesWidgetListStyles = typeof styles$a;
1665
+ type EntitiesWidgetListStyles = typeof styles$c;
1660
1666
 
1661
- 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: {
1662
1679
  readonly "root": string;
1663
1680
  readonly "text": string;
1664
1681
  readonly "isLoggedIn": string;
@@ -1668,14 +1685,30 @@ declare const styles$9: {
1668
1685
  readonly "lock": string;
1669
1686
  };
1670
1687
 
1671
- type FloatingMenuStyles = typeof styles$9;
1688
+ type FloatingMenuStyles = typeof styles$a;
1672
1689
 
1673
- declare const styles$8: {
1690
+ declare const styles$9: {
1674
1691
  readonly "root": string;
1675
1692
  readonly "paper": string;
1676
1693
  };
1677
1694
 
1678
- 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;
1679
1712
 
1680
1713
  declare const styles$7: {
1681
1714
  readonly "root": string;
@@ -1796,6 +1829,8 @@ type WidgetCustomStyles = {
1796
1829
  type InputOverlayCustomStyles = {
1797
1830
  CommandPalette?: Partial<CommandPaletteStyles>;
1798
1831
  EntitiesList?: Partial<EntitiesListStyles>;
1832
+ FeedbackThumbs?: Partial<FeedbackThumbsStyles>;
1833
+ KnowledgeSearch?: Partial<KnowledgeSearchStyles>;
1799
1834
  Label?: Partial<LabelStyles>;
1800
1835
  Login?: Partial<LoginStyles>;
1801
1836
  LoginTokenDialog?: Partial<LoginTokenDialogStyles>;
@@ -1894,6 +1929,10 @@ interface SDKEventMap {
1894
1929
  'edit-suggestion': EditTextSuggestionPayload;
1895
1930
  'send-message': string;
1896
1931
  'send-message-event': SendMessageEventData;
1932
+ 'event': {
1933
+ name: string;
1934
+ data: unknown;
1935
+ };
1897
1936
  logout: undefined;
1898
1937
  ready: undefined;
1899
1938
  showSearchOverlay: boolean;