@deepdesk/deepdesk-sdk 11.2.1-beta.0 → 11.2.1-beta.10
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 -7
- package/dist/index.d.mts +89 -36
- package/dist/index.d.ts +89 -36
- package/dist/index.esm.js +8 -7
- package/dist/index.iife.js +15 -14
- package/input.css +1 -1
- 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
|
@@ -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$
|
|
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$
|
|
36
|
+
type CardStyles = typeof styles$o;
|
|
37
37
|
declare const Card: FC & CardComposition;
|
|
38
38
|
|
|
39
|
-
declare const styles$
|
|
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$
|
|
54
|
+
type KeyboardHintStyles = typeof styles$n;
|
|
55
55
|
declare const KeyboardHint: React.FC<Props$6>;
|
|
56
56
|
|
|
57
|
-
declare const styles$
|
|
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$
|
|
62
|
+
type LabelStyles = typeof styles$m;
|
|
63
63
|
declare const Label: React.FC<Props$5>;
|
|
64
64
|
|
|
65
|
-
declare const styles$
|
|
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$
|
|
76
|
+
type SectionStyles = typeof styles$l;
|
|
77
77
|
declare const Section: React.FC<Props$4>;
|
|
78
78
|
|
|
79
|
-
declare const styles$
|
|
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$
|
|
87
|
+
type SectionListStyles = typeof styles$k;
|
|
88
88
|
declare const SectionList: React.ForwardRefExoticComponent<Props$3 & React.RefAttributes<HTMLDivElement>>;
|
|
89
89
|
|
|
90
|
-
declare const styles$
|
|
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$
|
|
141
|
+
type SuggestionStyles = typeof styles$j;
|
|
142
142
|
declare const Suggestion: ForwardRefExoticComponent<Props$2 & RefAttributes<any>> & SuggestionComposition;
|
|
143
143
|
|
|
144
|
-
declare const styles$
|
|
144
|
+
declare const styles$i: {
|
|
145
145
|
readonly "root": string;
|
|
146
146
|
readonly "isWithDivider": string;
|
|
147
147
|
};
|
|
148
148
|
|
|
149
|
-
type SuggestionListStyles = typeof styles$
|
|
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$
|
|
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$
|
|
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[];
|
|
@@ -709,8 +707,9 @@ interface KnowledgeAnswer {
|
|
|
709
707
|
sources: ListItemSource[];
|
|
710
708
|
}
|
|
711
709
|
interface KnowledgeRequest {
|
|
712
|
-
|
|
710
|
+
customerInstruction: string;
|
|
713
711
|
question: string;
|
|
712
|
+
doNotKnowAnswer?: string;
|
|
714
713
|
}
|
|
715
714
|
interface KnowledgeResponse {
|
|
716
715
|
question: string;
|
|
@@ -975,7 +974,7 @@ declare namespace Server {
|
|
|
975
974
|
interface Cue {
|
|
976
975
|
text: string;
|
|
977
976
|
title: string;
|
|
978
|
-
rule: Rule
|
|
977
|
+
rule: Pick<Rule, 'id' | 'name' | 'label' | 'description'>;
|
|
979
978
|
}
|
|
980
979
|
/**
|
|
981
980
|
* Handling time event data
|
|
@@ -1082,7 +1081,8 @@ declare namespace Server {
|
|
|
1082
1081
|
id: number;
|
|
1083
1082
|
code: string;
|
|
1084
1083
|
name: string;
|
|
1085
|
-
|
|
1084
|
+
customer_instruction: string;
|
|
1085
|
+
do_not_know_answer?: string;
|
|
1086
1086
|
urls: Array<string>;
|
|
1087
1087
|
files: Array<string>;
|
|
1088
1088
|
has_changes: boolean;
|
|
@@ -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
|
|
@@ -1550,7 +1560,6 @@ type StyleSuggestion = CamelCaseKeys<Server.StyleSuggestion>;
|
|
|
1550
1560
|
interface State$2 {
|
|
1551
1561
|
list: StyleSuggestion;
|
|
1552
1562
|
fetchState: FetchState;
|
|
1553
|
-
isInitialRequest: null | boolean;
|
|
1554
1563
|
}
|
|
1555
1564
|
|
|
1556
1565
|
type Cue = CamelCaseKeys<Server.Cue>;
|
|
@@ -1562,13 +1571,12 @@ type State$1 = {
|
|
|
1562
1571
|
type SuggestionState = {
|
|
1563
1572
|
suggestions: TextSuggestion[];
|
|
1564
1573
|
fetchState: FetchState;
|
|
1565
|
-
isInitialRequest: null | boolean;
|
|
1566
1574
|
};
|
|
1567
1575
|
interface TextSuggestionState {
|
|
1568
1576
|
[type: string]: SuggestionState;
|
|
1569
1577
|
}
|
|
1570
1578
|
|
|
1571
|
-
declare const styles$
|
|
1579
|
+
declare const styles$g: {
|
|
1572
1580
|
readonly "isDisabled": string;
|
|
1573
1581
|
readonly "buttonStart": string;
|
|
1574
1582
|
readonly "root": string;
|
|
@@ -1579,9 +1587,9 @@ declare const styles$d: {
|
|
|
1579
1587
|
readonly "isAborted": string;
|
|
1580
1588
|
};
|
|
1581
1589
|
|
|
1582
|
-
type AutoflowStyles = typeof styles$
|
|
1590
|
+
type AutoflowStyles = typeof styles$g;
|
|
1583
1591
|
|
|
1584
|
-
declare const styles$
|
|
1592
|
+
declare const styles$f: {
|
|
1585
1593
|
readonly "root": string;
|
|
1586
1594
|
readonly "list": string;
|
|
1587
1595
|
readonly "listWrapper": string;
|
|
@@ -1629,23 +1637,45 @@ declare const styles$c: {
|
|
|
1629
1637
|
readonly "actionShortcutFixKerning": string;
|
|
1630
1638
|
};
|
|
1631
1639
|
|
|
1632
|
-
type CommandPaletteStyles = typeof styles$
|
|
1640
|
+
type CommandPaletteStyles = typeof styles$f;
|
|
1633
1641
|
|
|
1634
|
-
declare const styles$
|
|
1642
|
+
declare const styles$e: {
|
|
1635
1643
|
readonly "root": string;
|
|
1636
1644
|
readonly "content": string;
|
|
1637
1645
|
};
|
|
1638
1646
|
|
|
1639
|
-
type DialogStyles = typeof styles$
|
|
1647
|
+
type DialogStyles = typeof styles$e;
|
|
1640
1648
|
|
|
1641
|
-
declare const styles$
|
|
1649
|
+
declare const styles$d: {
|
|
1642
1650
|
readonly "root": string;
|
|
1643
1651
|
readonly "empty": string;
|
|
1644
1652
|
};
|
|
1645
1653
|
|
|
1646
|
-
type EntitiesListStyles = typeof styles$
|
|
1654
|
+
type EntitiesListStyles = typeof styles$d;
|
|
1647
1655
|
|
|
1648
|
-
declare const styles$
|
|
1656
|
+
declare const styles$c: {
|
|
1657
|
+
readonly "root": string;
|
|
1658
|
+
readonly "entity": string;
|
|
1659
|
+
readonly "entityText": string;
|
|
1660
|
+
readonly "iconWrapper": string;
|
|
1661
|
+
readonly "icon": string;
|
|
1662
|
+
readonly "iconClicked": string;
|
|
1663
|
+
};
|
|
1664
|
+
|
|
1665
|
+
type EntitiesWidgetListStyles = typeof styles$c;
|
|
1666
|
+
|
|
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: {
|
|
1649
1679
|
readonly "root": string;
|
|
1650
1680
|
readonly "text": string;
|
|
1651
1681
|
readonly "isLoggedIn": string;
|
|
@@ -1655,14 +1685,30 @@ declare const styles$9: {
|
|
|
1655
1685
|
readonly "lock": string;
|
|
1656
1686
|
};
|
|
1657
1687
|
|
|
1658
|
-
type FloatingMenuStyles = typeof styles$
|
|
1688
|
+
type FloatingMenuStyles = typeof styles$a;
|
|
1659
1689
|
|
|
1660
|
-
declare const styles$
|
|
1690
|
+
declare const styles$9: {
|
|
1661
1691
|
readonly "root": string;
|
|
1662
1692
|
readonly "paper": string;
|
|
1663
1693
|
};
|
|
1664
1694
|
|
|
1665
|
-
type InlineSuggestionsOverlayStyles = typeof styles$
|
|
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;
|
|
1666
1712
|
|
|
1667
1713
|
declare const styles$7: {
|
|
1668
1714
|
readonly "root": string;
|
|
@@ -1778,10 +1824,13 @@ type WidgetCustomStyles = {
|
|
|
1778
1824
|
Suggestion?: Partial<SuggestionStyles>;
|
|
1779
1825
|
SuggestionList?: Partial<SuggestionListStyles>;
|
|
1780
1826
|
Widget?: Partial<WidgetStyles>;
|
|
1827
|
+
EntitiesWidgetList?: Partial<EntitiesWidgetListStyles>;
|
|
1781
1828
|
};
|
|
1782
1829
|
type InputOverlayCustomStyles = {
|
|
1783
1830
|
CommandPalette?: Partial<CommandPaletteStyles>;
|
|
1784
1831
|
EntitiesList?: Partial<EntitiesListStyles>;
|
|
1832
|
+
FeedbackThumbs?: Partial<FeedbackThumbsStyles>;
|
|
1833
|
+
KnowledgeSearch?: Partial<KnowledgeSearchStyles>;
|
|
1785
1834
|
Label?: Partial<LabelStyles>;
|
|
1786
1835
|
Login?: Partial<LoginStyles>;
|
|
1787
1836
|
LoginTokenDialog?: Partial<LoginTokenDialogStyles>;
|
|
@@ -1880,6 +1929,10 @@ interface SDKEventMap {
|
|
|
1880
1929
|
'edit-suggestion': EditTextSuggestionPayload;
|
|
1881
1930
|
'send-message': string;
|
|
1882
1931
|
'send-message-event': SendMessageEventData;
|
|
1932
|
+
'event': {
|
|
1933
|
+
name: string;
|
|
1934
|
+
data: unknown;
|
|
1935
|
+
};
|
|
1883
1936
|
logout: undefined;
|
|
1884
1937
|
ready: undefined;
|
|
1885
1938
|
showSearchOverlay: boolean;
|
|
@@ -2118,7 +2171,7 @@ declare class DeepdeskSDK {
|
|
|
2118
2171
|
private notifyPaste;
|
|
2119
2172
|
private notifyCut;
|
|
2120
2173
|
notifyExternalSuggestion(suggestion: StageSuggestion): void;
|
|
2121
|
-
evaluateRule(label: string, params?: Record<string, any>): Promise<
|
|
2174
|
+
evaluateRule(label: string, params?: Record<string, any>): Promise<Cue[]>;
|
|
2122
2175
|
private handleInputChanged;
|
|
2123
2176
|
private handleKeyDown;
|
|
2124
2177
|
private handleAfterSendMessage;
|
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$
|
|
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$
|
|
36
|
+
type CardStyles = typeof styles$o;
|
|
37
37
|
declare const Card: FC & CardComposition;
|
|
38
38
|
|
|
39
|
-
declare const styles$
|
|
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$
|
|
54
|
+
type KeyboardHintStyles = typeof styles$n;
|
|
55
55
|
declare const KeyboardHint: React.FC<Props$6>;
|
|
56
56
|
|
|
57
|
-
declare const styles$
|
|
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$
|
|
62
|
+
type LabelStyles = typeof styles$m;
|
|
63
63
|
declare const Label: React.FC<Props$5>;
|
|
64
64
|
|
|
65
|
-
declare const styles$
|
|
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$
|
|
76
|
+
type SectionStyles = typeof styles$l;
|
|
77
77
|
declare const Section: React.FC<Props$4>;
|
|
78
78
|
|
|
79
|
-
declare const styles$
|
|
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$
|
|
87
|
+
type SectionListStyles = typeof styles$k;
|
|
88
88
|
declare const SectionList: React.ForwardRefExoticComponent<Props$3 & React.RefAttributes<HTMLDivElement>>;
|
|
89
89
|
|
|
90
|
-
declare const styles$
|
|
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$
|
|
141
|
+
type SuggestionStyles = typeof styles$j;
|
|
142
142
|
declare const Suggestion: ForwardRefExoticComponent<Props$2 & RefAttributes<any>> & SuggestionComposition;
|
|
143
143
|
|
|
144
|
-
declare const styles$
|
|
144
|
+
declare const styles$i: {
|
|
145
145
|
readonly "root": string;
|
|
146
146
|
readonly "isWithDivider": string;
|
|
147
147
|
};
|
|
148
148
|
|
|
149
|
-
type SuggestionListStyles = typeof styles$
|
|
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$
|
|
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$
|
|
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[];
|
|
@@ -709,8 +707,9 @@ interface KnowledgeAnswer {
|
|
|
709
707
|
sources: ListItemSource[];
|
|
710
708
|
}
|
|
711
709
|
interface KnowledgeRequest {
|
|
712
|
-
|
|
710
|
+
customerInstruction: string;
|
|
713
711
|
question: string;
|
|
712
|
+
doNotKnowAnswer?: string;
|
|
714
713
|
}
|
|
715
714
|
interface KnowledgeResponse {
|
|
716
715
|
question: string;
|
|
@@ -975,7 +974,7 @@ declare namespace Server {
|
|
|
975
974
|
interface Cue {
|
|
976
975
|
text: string;
|
|
977
976
|
title: string;
|
|
978
|
-
rule: Rule
|
|
977
|
+
rule: Pick<Rule, 'id' | 'name' | 'label' | 'description'>;
|
|
979
978
|
}
|
|
980
979
|
/**
|
|
981
980
|
* Handling time event data
|
|
@@ -1082,7 +1081,8 @@ declare namespace Server {
|
|
|
1082
1081
|
id: number;
|
|
1083
1082
|
code: string;
|
|
1084
1083
|
name: string;
|
|
1085
|
-
|
|
1084
|
+
customer_instruction: string;
|
|
1085
|
+
do_not_know_answer?: string;
|
|
1086
1086
|
urls: Array<string>;
|
|
1087
1087
|
files: Array<string>;
|
|
1088
1088
|
has_changes: boolean;
|
|
@@ -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
|
|
@@ -1550,7 +1560,6 @@ type StyleSuggestion = CamelCaseKeys<Server.StyleSuggestion>;
|
|
|
1550
1560
|
interface State$2 {
|
|
1551
1561
|
list: StyleSuggestion;
|
|
1552
1562
|
fetchState: FetchState;
|
|
1553
|
-
isInitialRequest: null | boolean;
|
|
1554
1563
|
}
|
|
1555
1564
|
|
|
1556
1565
|
type Cue = CamelCaseKeys<Server.Cue>;
|
|
@@ -1562,13 +1571,12 @@ type State$1 = {
|
|
|
1562
1571
|
type SuggestionState = {
|
|
1563
1572
|
suggestions: TextSuggestion[];
|
|
1564
1573
|
fetchState: FetchState;
|
|
1565
|
-
isInitialRequest: null | boolean;
|
|
1566
1574
|
};
|
|
1567
1575
|
interface TextSuggestionState {
|
|
1568
1576
|
[type: string]: SuggestionState;
|
|
1569
1577
|
}
|
|
1570
1578
|
|
|
1571
|
-
declare const styles$
|
|
1579
|
+
declare const styles$g: {
|
|
1572
1580
|
readonly "isDisabled": string;
|
|
1573
1581
|
readonly "buttonStart": string;
|
|
1574
1582
|
readonly "root": string;
|
|
@@ -1579,9 +1587,9 @@ declare const styles$d: {
|
|
|
1579
1587
|
readonly "isAborted": string;
|
|
1580
1588
|
};
|
|
1581
1589
|
|
|
1582
|
-
type AutoflowStyles = typeof styles$
|
|
1590
|
+
type AutoflowStyles = typeof styles$g;
|
|
1583
1591
|
|
|
1584
|
-
declare const styles$
|
|
1592
|
+
declare const styles$f: {
|
|
1585
1593
|
readonly "root": string;
|
|
1586
1594
|
readonly "list": string;
|
|
1587
1595
|
readonly "listWrapper": string;
|
|
@@ -1629,23 +1637,45 @@ declare const styles$c: {
|
|
|
1629
1637
|
readonly "actionShortcutFixKerning": string;
|
|
1630
1638
|
};
|
|
1631
1639
|
|
|
1632
|
-
type CommandPaletteStyles = typeof styles$
|
|
1640
|
+
type CommandPaletteStyles = typeof styles$f;
|
|
1633
1641
|
|
|
1634
|
-
declare const styles$
|
|
1642
|
+
declare const styles$e: {
|
|
1635
1643
|
readonly "root": string;
|
|
1636
1644
|
readonly "content": string;
|
|
1637
1645
|
};
|
|
1638
1646
|
|
|
1639
|
-
type DialogStyles = typeof styles$
|
|
1647
|
+
type DialogStyles = typeof styles$e;
|
|
1640
1648
|
|
|
1641
|
-
declare const styles$
|
|
1649
|
+
declare const styles$d: {
|
|
1642
1650
|
readonly "root": string;
|
|
1643
1651
|
readonly "empty": string;
|
|
1644
1652
|
};
|
|
1645
1653
|
|
|
1646
|
-
type EntitiesListStyles = typeof styles$
|
|
1654
|
+
type EntitiesListStyles = typeof styles$d;
|
|
1647
1655
|
|
|
1648
|
-
declare const styles$
|
|
1656
|
+
declare const styles$c: {
|
|
1657
|
+
readonly "root": string;
|
|
1658
|
+
readonly "entity": string;
|
|
1659
|
+
readonly "entityText": string;
|
|
1660
|
+
readonly "iconWrapper": string;
|
|
1661
|
+
readonly "icon": string;
|
|
1662
|
+
readonly "iconClicked": string;
|
|
1663
|
+
};
|
|
1664
|
+
|
|
1665
|
+
type EntitiesWidgetListStyles = typeof styles$c;
|
|
1666
|
+
|
|
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: {
|
|
1649
1679
|
readonly "root": string;
|
|
1650
1680
|
readonly "text": string;
|
|
1651
1681
|
readonly "isLoggedIn": string;
|
|
@@ -1655,14 +1685,30 @@ declare const styles$9: {
|
|
|
1655
1685
|
readonly "lock": string;
|
|
1656
1686
|
};
|
|
1657
1687
|
|
|
1658
|
-
type FloatingMenuStyles = typeof styles$
|
|
1688
|
+
type FloatingMenuStyles = typeof styles$a;
|
|
1659
1689
|
|
|
1660
|
-
declare const styles$
|
|
1690
|
+
declare const styles$9: {
|
|
1661
1691
|
readonly "root": string;
|
|
1662
1692
|
readonly "paper": string;
|
|
1663
1693
|
};
|
|
1664
1694
|
|
|
1665
|
-
type InlineSuggestionsOverlayStyles = typeof styles$
|
|
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;
|
|
1666
1712
|
|
|
1667
1713
|
declare const styles$7: {
|
|
1668
1714
|
readonly "root": string;
|
|
@@ -1778,10 +1824,13 @@ type WidgetCustomStyles = {
|
|
|
1778
1824
|
Suggestion?: Partial<SuggestionStyles>;
|
|
1779
1825
|
SuggestionList?: Partial<SuggestionListStyles>;
|
|
1780
1826
|
Widget?: Partial<WidgetStyles>;
|
|
1827
|
+
EntitiesWidgetList?: Partial<EntitiesWidgetListStyles>;
|
|
1781
1828
|
};
|
|
1782
1829
|
type InputOverlayCustomStyles = {
|
|
1783
1830
|
CommandPalette?: Partial<CommandPaletteStyles>;
|
|
1784
1831
|
EntitiesList?: Partial<EntitiesListStyles>;
|
|
1832
|
+
FeedbackThumbs?: Partial<FeedbackThumbsStyles>;
|
|
1833
|
+
KnowledgeSearch?: Partial<KnowledgeSearchStyles>;
|
|
1785
1834
|
Label?: Partial<LabelStyles>;
|
|
1786
1835
|
Login?: Partial<LoginStyles>;
|
|
1787
1836
|
LoginTokenDialog?: Partial<LoginTokenDialogStyles>;
|
|
@@ -1880,6 +1929,10 @@ interface SDKEventMap {
|
|
|
1880
1929
|
'edit-suggestion': EditTextSuggestionPayload;
|
|
1881
1930
|
'send-message': string;
|
|
1882
1931
|
'send-message-event': SendMessageEventData;
|
|
1932
|
+
'event': {
|
|
1933
|
+
name: string;
|
|
1934
|
+
data: unknown;
|
|
1935
|
+
};
|
|
1883
1936
|
logout: undefined;
|
|
1884
1937
|
ready: undefined;
|
|
1885
1938
|
showSearchOverlay: boolean;
|
|
@@ -2118,7 +2171,7 @@ declare class DeepdeskSDK {
|
|
|
2118
2171
|
private notifyPaste;
|
|
2119
2172
|
private notifyCut;
|
|
2120
2173
|
notifyExternalSuggestion(suggestion: StageSuggestion): void;
|
|
2121
|
-
evaluateRule(label: string, params?: Record<string, any>): Promise<
|
|
2174
|
+
evaluateRule(label: string, params?: Record<string, any>): Promise<Cue[]>;
|
|
2122
2175
|
private handleInputChanged;
|
|
2123
2176
|
private handleKeyDown;
|
|
2124
2177
|
private handleAfterSendMessage;
|