@deepdesk/deepdesk-sdk 10.1.1 → 10.1.2

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,6 +4,175 @@ 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: {
8
+ readonly "root": string;
9
+ readonly "imageWrapper": string;
10
+ readonly "image": string;
11
+ readonly "content": string;
12
+ readonly "title": string;
13
+ readonly "contentIsCropped": string;
14
+ readonly "lineClamp": string;
15
+ };
16
+
17
+ type ImageProps = {
18
+ title?: string;
19
+ src?: string | null;
20
+ };
21
+ type ContentProps = {
22
+ cropText?: boolean;
23
+ className?: string;
24
+ lineClamp?: boolean;
25
+ };
26
+ type TitleProps = {
27
+ cropText?: boolean;
28
+ className?: string;
29
+ as?: string;
30
+ };
31
+ interface CardComposition {
32
+ Image: FC<ImageProps>;
33
+ Content: FC<ContentProps>;
34
+ Title: FC<TitleProps>;
35
+ }
36
+ type CardStyles = typeof styles$m;
37
+ declare const Card: FC & CardComposition;
38
+
39
+ declare const styles$l: {
40
+ readonly "root": string;
41
+ };
42
+
43
+ interface Props$7 {
44
+ children: React.ReactNode;
45
+ }
46
+ type ChipStyles = typeof styles$l;
47
+ declare const Chip: React.FC<Props$7>;
48
+
49
+ declare const styles$k: {
50
+ readonly "root": string;
51
+ readonly "isArrowUp": string;
52
+ readonly "isArrowDown": string;
53
+ readonly "isTab": string;
54
+ readonly "isEsc": string;
55
+ readonly "isEnter": string;
56
+ };
57
+
58
+ declare enum KeyboardHintKey {
59
+ ARROW_UP = "arrow-up",
60
+ ARROW_DOWN = "arrow-down",
61
+ TAB = "tab",
62
+ ESC = "esc",
63
+ ENTER = "enter"
64
+ }
65
+ type Props$6 = HTMLAttributes<HTMLSpanElement> & {
66
+ className?: string;
67
+ keyCode: KeyboardHintKey;
68
+ };
69
+ type KeyboardHintStyles = typeof styles$k;
70
+ declare const KeyboardHint: React.FC<Props$6>;
71
+
72
+ declare const styles$j: {
73
+ readonly "root": string;
74
+ };
75
+
76
+ type Props$5 = HTMLAttributes<HTMLSpanElement>;
77
+ type LabelStyles = typeof styles$j;
78
+ declare const Label: React.FC<Props$5>;
79
+
80
+ declare const styles$i: {
81
+ readonly "root": string;
82
+ readonly "subTitleContainer": string;
83
+ readonly "subtitle": string;
84
+ readonly "suggestions": string;
85
+ };
86
+
87
+ type Props$4 = HTMLAttributes<HTMLElement> & {
88
+ type: string;
89
+ title?: string;
90
+ };
91
+ type SectionStyles = typeof styles$i;
92
+ declare const Section: React.FC<Props$4>;
93
+
94
+ declare const styles$h: {
95
+ readonly "root": string;
96
+ };
97
+
98
+ type Props$3 = {
99
+ className?: string;
100
+ children?: React.ReactNode;
101
+ };
102
+ type SectionListStyles = typeof styles$h;
103
+ declare const SectionList: React.ForwardRefExoticComponent<Props$3 & React.RefAttributes<HTMLDivElement>>;
104
+
105
+ declare const styles$g: {
106
+ readonly "root": string;
107
+ readonly "fadein": string;
108
+ readonly "isClickable": string;
109
+ readonly "isSelected": string;
110
+ readonly "actions": string;
111
+ readonly "actionsIsFixed": string;
112
+ readonly "actionButton": string;
113
+ readonly "dropdownList": string;
114
+ readonly "dropdownButton": string;
115
+ readonly "dropdownItem": string;
116
+ readonly "dropdownItemButton": string;
117
+ readonly "actionButtonIsPrimary": string;
118
+ readonly "actionButtonIsDisabled": string;
119
+ readonly "labels": string;
120
+ readonly "label": string;
121
+ };
122
+
123
+ interface ActionsProps extends HTMLAttributes<HTMLElement> {
124
+ fixed?: boolean;
125
+ }
126
+ interface ActionButtonProps extends HTMLAttributes<HTMLElement> {
127
+ primary?: boolean;
128
+ disabled?: boolean;
129
+ label: ReactNode;
130
+ }
131
+ interface DropdownItemProps extends HTMLAttributes<HTMLElement> {
132
+ index: number;
133
+ label: ReactNode;
134
+ onClick?(event: SyntheticEvent<any>): void;
135
+ }
136
+ interface LabelProps {
137
+ labels: string[];
138
+ }
139
+ type Props$2 = HTMLAttributes<HTMLElement> & {
140
+ selected?: boolean;
141
+ as?: 'div' | 'button';
142
+ };
143
+ interface SuggestionComposition {
144
+ Actions: FC<ActionsProps>;
145
+ ActionButton: FC<ActionButtonProps>;
146
+ DropdownButton: FC<ActionButtonProps>;
147
+ DropdownItem: FC<DropdownItemProps>;
148
+ Labels: FC<LabelProps>;
149
+ }
150
+ type SuggestionStyles = typeof styles$g;
151
+ declare const Suggestion: ForwardRefExoticComponent<Props$2 & RefAttributes<any>> & SuggestionComposition;
152
+
153
+ declare const styles$f: {
154
+ readonly "root": string;
155
+ readonly "isWithDivider": string;
156
+ };
157
+
158
+ type SuggestionListStyles = typeof styles$f;
159
+ interface Props$1 {
160
+ withDivider?: boolean;
161
+ }
162
+ declare const SuggestionList: React.FC<Props$1>;
163
+
164
+ declare const styles$e: {
165
+ readonly "root": string;
166
+ readonly "isCollapsed": string;
167
+ };
168
+
169
+ type Props = HTMLAttributes<HTMLButtonElement> & {
170
+ isCollapsed: boolean;
171
+ title: string;
172
+ };
173
+ type ToggleButtonStyles = typeof styles$e;
174
+ declare const ToggleButton: React.FC<Props>;
175
+
7
176
  declare enum Sources {
8
177
  SEARCH = "search",
9
178
  TEMPLATE = "template",
@@ -882,12 +1051,12 @@ declare class DeepdeskAPI {
882
1051
  */
883
1052
  postMessages(conversationId: string, messages: CamelCaseKeys<Server.ConversationMessage>[]): Promise<({
884
1053
  id: string;
885
- time: string;
1054
+ text: string;
886
1055
  source: "agent" | "visitor" | "bot" | "system";
1056
+ time: string;
887
1057
  authorId: string;
888
1058
  authorName?: string | undefined;
889
1059
  authorEmail?: string | undefined;
890
- text: string;
891
1060
  } & {
892
1061
  tags: Record<string, string> | null;
893
1062
  })[]>;
@@ -997,7 +1166,7 @@ interface State$6 {
997
1166
  isInitialRequest: null | boolean;
998
1167
  }
999
1168
 
1000
- declare const styles$m: {
1169
+ declare const styles$d: {
1001
1170
  readonly "isDisabled": string;
1002
1171
  readonly "buttonStart": string;
1003
1172
  readonly "root": string;
@@ -1008,51 +1177,9 @@ declare const styles$m: {
1008
1177
  readonly "isAborted": string;
1009
1178
  };
1010
1179
 
1011
- type AutoflowStyles = typeof styles$m;
1012
-
1013
- declare const styles$l: {
1014
- readonly "root": string;
1015
- readonly "imageWrapper": string;
1016
- readonly "image": string;
1017
- readonly "content": string;
1018
- readonly "title": string;
1019
- readonly "contentIsCropped": string;
1020
- readonly "lineClamp": string;
1021
- };
1022
-
1023
- type ImageProps = {
1024
- title?: string;
1025
- src?: string | null;
1026
- };
1027
- type ContentProps = {
1028
- cropText?: boolean;
1029
- className?: string;
1030
- lineClamp?: boolean;
1031
- };
1032
- type TitleProps = {
1033
- cropText?: boolean;
1034
- className?: string;
1035
- as?: string;
1036
- };
1037
- interface CardComposition {
1038
- Image: FC<ImageProps>;
1039
- Content: FC<ContentProps>;
1040
- Title: FC<TitleProps>;
1041
- }
1042
- type CardStyles = typeof styles$l;
1043
- declare const Card: FC & CardComposition;
1044
-
1045
- declare const styles$k: {
1046
- readonly "root": string;
1047
- };
1048
-
1049
- interface Props$7 {
1050
- children: React.ReactNode;
1051
- }
1052
- type ChipStyles = typeof styles$k;
1053
- declare const Chip: React.FC<Props$7>;
1180
+ type AutoflowStyles = typeof styles$d;
1054
1181
 
1055
- declare const styles$j: {
1182
+ declare const styles$c: {
1056
1183
  readonly "root": string;
1057
1184
  readonly "list": string;
1058
1185
  readonly "listWrapper": string;
@@ -1093,16 +1220,16 @@ declare const styles$j: {
1093
1220
  readonly "actionShortcutFixKerning": string;
1094
1221
  };
1095
1222
 
1096
- type CommandPaletteStyles = typeof styles$j;
1223
+ type CommandPaletteStyles = typeof styles$c;
1097
1224
 
1098
- declare const styles$i: {
1225
+ declare const styles$b: {
1099
1226
  readonly "root": string;
1100
1227
  readonly "content": string;
1101
1228
  };
1102
1229
 
1103
- type DialogStyles = typeof styles$i;
1230
+ type DialogStyles = typeof styles$b;
1104
1231
 
1105
- declare const styles$h: {
1232
+ declare const styles$a: {
1106
1233
  readonly "root": string;
1107
1234
  readonly "content": string;
1108
1235
  readonly "title": string;
@@ -1112,9 +1239,9 @@ declare const styles$h: {
1112
1239
  readonly "primaryButtons": string;
1113
1240
  };
1114
1241
 
1115
- type EditSuggestionFormStyles = typeof styles$h;
1242
+ type EditSuggestionFormStyles = typeof styles$a;
1116
1243
 
1117
- declare const styles$g: {
1244
+ declare const styles$9: {
1118
1245
  readonly "root": string;
1119
1246
  readonly "agentText": string;
1120
1247
  readonly "textInput": string;
@@ -1125,63 +1252,32 @@ declare const styles$g: {
1125
1252
  readonly "success": string;
1126
1253
  };
1127
1254
 
1128
- type EditSuggestionTextInputStyles = typeof styles$g;
1255
+ type EditSuggestionTextInputStyles = typeof styles$9;
1129
1256
 
1130
- declare const styles$f: {
1257
+ declare const styles$8: {
1131
1258
  readonly "root": string;
1132
1259
  readonly "title": string;
1133
1260
  readonly "empty": string;
1134
1261
  };
1135
1262
 
1136
- type EntitiesListStyles = typeof styles$f;
1263
+ type EntitiesListStyles = typeof styles$8;
1137
1264
 
1138
- declare const styles$e: {
1139
- readonly "root": string;
1140
- readonly "isArrowUp": string;
1141
- readonly "isArrowDown": string;
1142
- readonly "isTab": string;
1143
- readonly "isEsc": string;
1144
- readonly "isEnter": string;
1145
- };
1146
-
1147
- declare enum KeyboardHintKey {
1148
- ARROW_UP = "arrow-up",
1149
- ARROW_DOWN = "arrow-down",
1150
- TAB = "tab",
1151
- ESC = "esc",
1152
- ENTER = "enter"
1153
- }
1154
- type Props$6 = HTMLAttributes<HTMLSpanElement> & {
1155
- className?: string;
1156
- keyCode: KeyboardHintKey;
1157
- };
1158
- type KeyboardHintStyles = typeof styles$e;
1159
- declare const KeyboardHint: React.FC<Props$6>;
1160
-
1161
- declare const styles$d: {
1162
- readonly "root": string;
1163
- };
1164
-
1165
- type Props$5 = HTMLAttributes<HTMLSpanElement>;
1166
- type LabelStyles = typeof styles$d;
1167
- declare const Label: React.FC<Props$5>;
1168
-
1169
- declare const styles$c: {
1265
+ declare const styles$7: {
1170
1266
  readonly "root": string;
1171
1267
  readonly "content": string;
1172
1268
  };
1173
1269
 
1174
- type LinkSearchStyles = typeof styles$c;
1270
+ type LinkSearchStyles = typeof styles$7;
1175
1271
 
1176
- declare const styles$b: {
1272
+ declare const styles$6: {
1177
1273
  readonly "root": string;
1178
1274
  readonly "anchor": string;
1179
1275
  readonly "anchorButton": string;
1180
1276
  };
1181
1277
 
1182
- type LoginStyles = typeof styles$b;
1278
+ type LoginStyles = typeof styles$6;
1183
1279
 
1184
- declare const styles$a: {
1280
+ declare const styles$5: {
1185
1281
  readonly "root": string;
1186
1282
  readonly "anchorButton": string;
1187
1283
  readonly "errorMessage": string;
@@ -1194,99 +1290,16 @@ declare const styles$a: {
1194
1290
  readonly "primaryButton": string;
1195
1291
  };
1196
1292
 
1197
- type LoginTokenDialogStyles = typeof styles$a;
1293
+ type LoginTokenDialogStyles = typeof styles$5;
1198
1294
 
1199
- declare const styles$9: {
1295
+ declare const styles$4: {
1200
1296
  readonly "root": string;
1201
1297
  readonly "text": string;
1202
1298
  };
1203
1299
 
1204
- type SearchTriggerStyles = typeof styles$9;
1205
-
1206
- declare const styles$8: {
1207
- readonly "root": string;
1208
- readonly "subTitleContainer": string;
1209
- readonly "subtitle": string;
1210
- readonly "suggestions": string;
1211
- };
1212
-
1213
- type Props$4 = HTMLAttributes<HTMLElement> & {
1214
- title?: string;
1215
- };
1216
- type SectionStyles = typeof styles$8;
1217
- declare const Section: React.FC<Props$4>;
1218
-
1219
- declare const styles$7: {
1220
- readonly "root": string;
1221
- };
1222
-
1223
- type Props$3 = {
1224
- className?: string;
1225
- children?: React.ReactNode;
1226
- };
1227
- type SectionListStyles = typeof styles$7;
1228
- declare const SectionList: React.ForwardRefExoticComponent<Props$3 & React.RefAttributes<HTMLDivElement>>;
1229
-
1230
- declare const styles$6: {
1231
- readonly "root": string;
1232
- readonly "fadein": string;
1233
- readonly "isClickable": string;
1234
- readonly "isSelected": string;
1235
- readonly "actions": string;
1236
- readonly "actionsIsFixed": string;
1237
- readonly "actionButton": string;
1238
- readonly "dropdownList": string;
1239
- readonly "dropdownButton": string;
1240
- readonly "dropdownItem": string;
1241
- readonly "dropdownItemButton": string;
1242
- readonly "actionButtonIsPrimary": string;
1243
- readonly "actionButtonIsDisabled": string;
1244
- readonly "labels": string;
1245
- readonly "label": string;
1246
- };
1300
+ type SearchTriggerStyles = typeof styles$4;
1247
1301
 
1248
- interface ActionsProps extends HTMLAttributes<HTMLElement> {
1249
- fixed?: boolean;
1250
- }
1251
- interface ActionButtonProps extends HTMLAttributes<HTMLElement> {
1252
- primary?: boolean;
1253
- disabled?: boolean;
1254
- label: ReactNode;
1255
- }
1256
- interface DropdownItemProps extends HTMLAttributes<HTMLElement> {
1257
- index: number;
1258
- label: ReactNode;
1259
- onClick?(event: SyntheticEvent<any>): void;
1260
- }
1261
- interface LabelProps {
1262
- labels: string[];
1263
- }
1264
- type Props$2 = HTMLAttributes<HTMLElement> & {
1265
- selected?: boolean;
1266
- as?: 'div' | 'button';
1267
- };
1268
- interface SuggestionComposition {
1269
- Actions: FC<ActionsProps>;
1270
- ActionButton: FC<ActionButtonProps>;
1271
- DropdownButton: FC<ActionButtonProps>;
1272
- DropdownItem: FC<DropdownItemProps>;
1273
- Labels: FC<LabelProps>;
1274
- }
1275
- type SuggestionStyles = typeof styles$6;
1276
- declare const Suggestion: ForwardRefExoticComponent<Props$2 & RefAttributes<any>> & SuggestionComposition;
1277
-
1278
- declare const styles$5: {
1279
- readonly "root": string;
1280
- readonly "isWithDivider": string;
1281
- };
1282
-
1283
- type SuggestionListStyles = typeof styles$5;
1284
- interface Props$1 {
1285
- withDivider?: boolean;
1286
- }
1287
- declare const SuggestionList: React.FC<Props$1>;
1288
-
1289
- declare const styles$4: {
1302
+ declare const styles$3: {
1290
1303
  readonly "root": string;
1291
1304
  readonly "isInline": string;
1292
1305
  readonly "toggleButton": string;
@@ -1300,10 +1313,11 @@ declare const styles$4: {
1300
1313
  readonly "triggersRight": string;
1301
1314
  };
1302
1315
 
1303
- type SuggestionsOverlayStyles = typeof styles$4;
1316
+ type SuggestionsOverlayStyles = typeof styles$3;
1304
1317
 
1305
- declare const styles$3: {
1318
+ declare const styles$2: {
1306
1319
  readonly "root": string;
1320
+ readonly "container": string;
1307
1321
  readonly "agentText": string;
1308
1322
  readonly "tabText": string;
1309
1323
  readonly "hint": string;
@@ -1326,34 +1340,22 @@ declare const styles$3: {
1326
1340
  readonly "suggestionsOverlayInputStyles": string;
1327
1341
  };
1328
1342
 
1329
- type TabCompletionStyles = typeof styles$3;
1343
+ type TabCompletionStyles = typeof styles$2;
1330
1344
 
1331
- declare const styles$2: {
1345
+ declare const styles$1: {
1332
1346
  readonly "badge": string;
1333
1347
  readonly "formattedText": string;
1334
1348
  };
1335
1349
 
1336
- type TextSuggestionStyles = typeof styles$2;
1337
-
1338
- declare const styles$1: {
1339
- readonly "root": string;
1340
- readonly "isCollapsed": string;
1341
- };
1342
-
1343
- type Props = HTMLAttributes<HTMLButtonElement> & {
1344
- isCollapsed: boolean;
1345
- title: string;
1346
- };
1347
- type ToggleButtonStyles = typeof styles$1;
1348
- declare const ToggleButton: React.FC<Props>;
1350
+ type TextSuggestionStyles = typeof styles$1;
1349
1351
 
1350
1352
  declare const styles: {
1351
1353
  readonly "root": string;
1352
1354
  readonly "loginText": string;
1353
1355
  readonly "stateText": string;
1354
1356
  readonly "sectionList": string;
1355
- readonly "links": string;
1356
- readonly "link": string;
1357
+ readonly "shortcutList": string;
1358
+ readonly "shortcut": string;
1357
1359
  };
1358
1360
 
1359
1361
  type WidgetStyles = typeof styles;