@deepdesk/deepdesk-sdk 10.12.1-beta.1 → 10.12.1-beta.11
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 +7 -7
- package/dist/index.d.mts +126 -140
- package/dist/index.d.ts +126 -140
- package/dist/index.esm.js +7 -7
- package/dist/index.iife.js +14 -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$l: {
|
|
8
8
|
readonly "root": string;
|
|
9
9
|
readonly "imageWrapper": string;
|
|
10
10
|
readonly "image": string;
|
|
@@ -12,6 +12,7 @@ declare const styles$n: {
|
|
|
12
12
|
readonly "title": string;
|
|
13
13
|
readonly "contentIsCropped": string;
|
|
14
14
|
readonly "lineClamp": string;
|
|
15
|
+
readonly "closeIcon": string;
|
|
15
16
|
};
|
|
16
17
|
|
|
17
18
|
type ImageProps = {
|
|
@@ -28,15 +29,19 @@ interface TitleProps extends React.HTMLProps<HTMLHeadingElement> {
|
|
|
28
29
|
className?: string;
|
|
29
30
|
as?: string;
|
|
30
31
|
}
|
|
32
|
+
interface CloseIconProps extends React.HTMLProps<HTMLDivElement> {
|
|
33
|
+
className?: string;
|
|
34
|
+
}
|
|
31
35
|
interface CardComposition {
|
|
32
36
|
Image: FC<ImageProps>;
|
|
33
37
|
Content: FC<ContentProps>;
|
|
34
38
|
Title: FC<TitleProps>;
|
|
39
|
+
CloseIcon: FC<CloseIconProps>;
|
|
35
40
|
}
|
|
36
|
-
type CardStyles = typeof styles$
|
|
41
|
+
type CardStyles = typeof styles$l;
|
|
37
42
|
declare const Card: FC & CardComposition;
|
|
38
43
|
|
|
39
|
-
declare const styles$
|
|
44
|
+
declare const styles$k: {
|
|
40
45
|
readonly "root": string;
|
|
41
46
|
};
|
|
42
47
|
|
|
@@ -51,18 +56,18 @@ type Props$6 = HTMLAttributes<HTMLSpanElement> & {
|
|
|
51
56
|
className?: string;
|
|
52
57
|
keyCode: KeyboardHintKey;
|
|
53
58
|
};
|
|
54
|
-
type KeyboardHintStyles = typeof styles$
|
|
59
|
+
type KeyboardHintStyles = typeof styles$k;
|
|
55
60
|
declare const KeyboardHint: React.FC<Props$6>;
|
|
56
61
|
|
|
57
|
-
declare const styles$
|
|
62
|
+
declare const styles$j: {
|
|
58
63
|
readonly "root": string;
|
|
59
64
|
};
|
|
60
65
|
|
|
61
66
|
type Props$5 = HTMLAttributes<HTMLSpanElement>;
|
|
62
|
-
type LabelStyles = typeof styles$
|
|
67
|
+
type LabelStyles = typeof styles$j;
|
|
63
68
|
declare const Label: React.FC<Props$5>;
|
|
64
69
|
|
|
65
|
-
declare const styles$
|
|
70
|
+
declare const styles$i: {
|
|
66
71
|
readonly "root": string;
|
|
67
72
|
readonly "subTitleContainer": string;
|
|
68
73
|
readonly "subtitle": string;
|
|
@@ -73,10 +78,10 @@ type Props$4 = HTMLAttributes<HTMLElement> & {
|
|
|
73
78
|
type: string;
|
|
74
79
|
title?: string;
|
|
75
80
|
};
|
|
76
|
-
type SectionStyles = typeof styles$
|
|
81
|
+
type SectionStyles = typeof styles$i;
|
|
77
82
|
declare const Section: React.FC<Props$4>;
|
|
78
83
|
|
|
79
|
-
declare const styles$
|
|
84
|
+
declare const styles$h: {
|
|
80
85
|
readonly "root": string;
|
|
81
86
|
};
|
|
82
87
|
|
|
@@ -84,10 +89,10 @@ type Props$3 = {
|
|
|
84
89
|
className?: string;
|
|
85
90
|
children?: React.ReactNode;
|
|
86
91
|
};
|
|
87
|
-
type SectionListStyles = typeof styles$
|
|
92
|
+
type SectionListStyles = typeof styles$h;
|
|
88
93
|
declare const SectionList: React.ForwardRefExoticComponent<Props$3 & React.RefAttributes<HTMLDivElement>>;
|
|
89
94
|
|
|
90
|
-
declare const styles$
|
|
95
|
+
declare const styles$g: {
|
|
91
96
|
readonly "root": string;
|
|
92
97
|
readonly "fadein": string;
|
|
93
98
|
readonly "isClickable": string;
|
|
@@ -132,21 +137,21 @@ interface SuggestionComposition {
|
|
|
132
137
|
DropdownItem: FC<DropdownItemProps>;
|
|
133
138
|
Labels: FC<LabelProps>;
|
|
134
139
|
}
|
|
135
|
-
type SuggestionStyles = typeof styles$
|
|
140
|
+
type SuggestionStyles = typeof styles$g;
|
|
136
141
|
declare const Suggestion: ForwardRefExoticComponent<Props$2 & RefAttributes<any>> & SuggestionComposition;
|
|
137
142
|
|
|
138
|
-
declare const styles$
|
|
143
|
+
declare const styles$f: {
|
|
139
144
|
readonly "root": string;
|
|
140
145
|
readonly "isWithDivider": string;
|
|
141
146
|
};
|
|
142
147
|
|
|
143
|
-
type SuggestionListStyles = typeof styles$
|
|
148
|
+
type SuggestionListStyles = typeof styles$f;
|
|
144
149
|
interface Props$1 {
|
|
145
150
|
withDivider?: boolean;
|
|
146
151
|
}
|
|
147
152
|
declare const SuggestionList: React.FC<Props$1>;
|
|
148
153
|
|
|
149
|
-
declare const styles$
|
|
154
|
+
declare const styles$e: {
|
|
150
155
|
readonly "root": string;
|
|
151
156
|
readonly "isCollapsed": string;
|
|
152
157
|
};
|
|
@@ -155,7 +160,7 @@ type Props = HTMLAttributes<HTMLButtonElement> & {
|
|
|
155
160
|
isCollapsed: boolean;
|
|
156
161
|
title: string;
|
|
157
162
|
};
|
|
158
|
-
type ToggleButtonStyles = typeof styles$
|
|
163
|
+
type ToggleButtonStyles = typeof styles$e;
|
|
159
164
|
declare const ToggleButton: React.FC<Props>;
|
|
160
165
|
|
|
161
166
|
declare enum Sources {
|
|
@@ -279,11 +284,6 @@ type State$g = {
|
|
|
279
284
|
stopTime: Date | null;
|
|
280
285
|
};
|
|
281
286
|
|
|
282
|
-
interface State$f {
|
|
283
|
-
contentType: string | null;
|
|
284
|
-
suggestion: TextSuggestion | null;
|
|
285
|
-
}
|
|
286
|
-
|
|
287
287
|
/**
|
|
288
288
|
* CamelCase type manipulation
|
|
289
289
|
* ```
|
|
@@ -451,16 +451,15 @@ interface StoreConfig {
|
|
|
451
451
|
preloadedState?: any;
|
|
452
452
|
}
|
|
453
453
|
declare const reducers: redux.Reducer<redux.CombinedState<{
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
knowledgeAssistant: State$7;
|
|
454
|
+
answer: State$7;
|
|
455
|
+
auth: State$f;
|
|
456
|
+
autoflows: State$e;
|
|
457
|
+
conversation: State$d;
|
|
458
|
+
contentTypes: State$c;
|
|
459
|
+
customMessages: State$b;
|
|
460
|
+
passwordlessToken: State$a;
|
|
461
|
+
entities: State$9;
|
|
462
|
+
knowledgeAssistant: State$8;
|
|
464
463
|
handlingTime: State$g;
|
|
465
464
|
info: {
|
|
466
465
|
agentInfo?: AgentInfo | undefined;
|
|
@@ -468,8 +467,7 @@ declare const reducers: redux.Reducer<redux.CombinedState<{
|
|
|
468
467
|
visitorInfo?: VisitorInfo | undefined;
|
|
469
468
|
fetchState: FetchState;
|
|
470
469
|
};
|
|
471
|
-
input: State$
|
|
472
|
-
overlayInput: State$5;
|
|
470
|
+
input: State$6;
|
|
473
471
|
settings: {
|
|
474
472
|
locale: Locale;
|
|
475
473
|
deanonymize: boolean;
|
|
@@ -500,10 +498,10 @@ declare const reducers: redux.Reducer<redux.CombinedState<{
|
|
|
500
498
|
productName: string;
|
|
501
499
|
suggestionFeedbackEmailAddresses?: string[] | undefined;
|
|
502
500
|
};
|
|
503
|
-
profile: State$
|
|
504
|
-
search: State$
|
|
505
|
-
summary: State$
|
|
506
|
-
styleSuggestions: State$
|
|
501
|
+
profile: State$5;
|
|
502
|
+
search: State$4;
|
|
503
|
+
summary: State$3;
|
|
504
|
+
styleSuggestions: State$2;
|
|
507
505
|
ui: {
|
|
508
506
|
showTabHint: boolean;
|
|
509
507
|
inputHasFocus: boolean;
|
|
@@ -511,19 +509,19 @@ declare const reducers: redux.Reducer<redux.CombinedState<{
|
|
|
511
509
|
openOverlayWhenTyping: boolean;
|
|
512
510
|
overlayCollapsedUserOverwrite: boolean;
|
|
513
511
|
};
|
|
512
|
+
rules: State$1;
|
|
514
513
|
textSuggestions: TextSuggestionState;
|
|
515
514
|
}>, redux.AnyAction>;
|
|
516
515
|
declare function createStore(config: StoreConfig): _reduxjs_toolkit_dist_configureStore.ToolkitStore<redux.EmptyObject & {
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
knowledgeAssistant: State$7;
|
|
516
|
+
answer: State$7;
|
|
517
|
+
auth: State$f;
|
|
518
|
+
autoflows: State$e;
|
|
519
|
+
conversation: State$d;
|
|
520
|
+
contentTypes: State$c;
|
|
521
|
+
customMessages: State$b;
|
|
522
|
+
passwordlessToken: State$a;
|
|
523
|
+
entities: State$9;
|
|
524
|
+
knowledgeAssistant: State$8;
|
|
527
525
|
handlingTime: State$g;
|
|
528
526
|
info: {
|
|
529
527
|
agentInfo?: AgentInfo | undefined;
|
|
@@ -531,8 +529,7 @@ declare function createStore(config: StoreConfig): _reduxjs_toolkit_dist_configu
|
|
|
531
529
|
visitorInfo?: VisitorInfo | undefined;
|
|
532
530
|
fetchState: FetchState;
|
|
533
531
|
};
|
|
534
|
-
input: State$
|
|
535
|
-
overlayInput: State$5;
|
|
532
|
+
input: State$6;
|
|
536
533
|
settings: {
|
|
537
534
|
locale: Locale;
|
|
538
535
|
deanonymize: boolean;
|
|
@@ -563,10 +560,10 @@ declare function createStore(config: StoreConfig): _reduxjs_toolkit_dist_configu
|
|
|
563
560
|
productName: string;
|
|
564
561
|
suggestionFeedbackEmailAddresses?: string[] | undefined;
|
|
565
562
|
};
|
|
566
|
-
profile: State$
|
|
567
|
-
search: State$
|
|
568
|
-
summary: State$
|
|
569
|
-
styleSuggestions: State$
|
|
563
|
+
profile: State$5;
|
|
564
|
+
search: State$4;
|
|
565
|
+
summary: State$3;
|
|
566
|
+
styleSuggestions: State$2;
|
|
570
567
|
ui: {
|
|
571
568
|
showTabHint: boolean;
|
|
572
569
|
inputHasFocus: boolean;
|
|
@@ -574,18 +571,18 @@ declare function createStore(config: StoreConfig): _reduxjs_toolkit_dist_configu
|
|
|
574
571
|
openOverlayWhenTyping: boolean;
|
|
575
572
|
overlayCollapsedUserOverwrite: boolean;
|
|
576
573
|
};
|
|
574
|
+
rules: State$1;
|
|
577
575
|
textSuggestions: TextSuggestionState;
|
|
578
576
|
}, redux.AnyAction, _reduxjs_toolkit.ThunkMiddleware<redux.CombinedState<{
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
knowledgeAssistant: State$7;
|
|
577
|
+
answer: State$7;
|
|
578
|
+
auth: State$f;
|
|
579
|
+
autoflows: State$e;
|
|
580
|
+
conversation: State$d;
|
|
581
|
+
contentTypes: State$c;
|
|
582
|
+
customMessages: State$b;
|
|
583
|
+
passwordlessToken: State$a;
|
|
584
|
+
entities: State$9;
|
|
585
|
+
knowledgeAssistant: State$8;
|
|
589
586
|
handlingTime: State$g;
|
|
590
587
|
info: {
|
|
591
588
|
agentInfo?: AgentInfo | undefined;
|
|
@@ -593,8 +590,7 @@ declare function createStore(config: StoreConfig): _reduxjs_toolkit_dist_configu
|
|
|
593
590
|
visitorInfo?: VisitorInfo | undefined;
|
|
594
591
|
fetchState: FetchState;
|
|
595
592
|
};
|
|
596
|
-
input: State$
|
|
597
|
-
overlayInput: State$5;
|
|
593
|
+
input: State$6;
|
|
598
594
|
settings: {
|
|
599
595
|
locale: Locale;
|
|
600
596
|
deanonymize: boolean;
|
|
@@ -625,10 +621,10 @@ declare function createStore(config: StoreConfig): _reduxjs_toolkit_dist_configu
|
|
|
625
621
|
productName: string;
|
|
626
622
|
suggestionFeedbackEmailAddresses?: string[] | undefined;
|
|
627
623
|
};
|
|
628
|
-
profile: State$
|
|
629
|
-
search: State$
|
|
630
|
-
summary: State$
|
|
631
|
-
styleSuggestions: State$
|
|
624
|
+
profile: State$5;
|
|
625
|
+
search: State$4;
|
|
626
|
+
summary: State$3;
|
|
627
|
+
styleSuggestions: State$2;
|
|
632
628
|
ui: {
|
|
633
629
|
showTabHint: boolean;
|
|
634
630
|
inputHasFocus: boolean;
|
|
@@ -636,6 +632,7 @@ declare function createStore(config: StoreConfig): _reduxjs_toolkit_dist_configu
|
|
|
636
632
|
openOverlayWhenTyping: boolean;
|
|
637
633
|
overlayCollapsedUserOverwrite: boolean;
|
|
638
634
|
};
|
|
635
|
+
rules: State$1;
|
|
639
636
|
textSuggestions: TextSuggestionState;
|
|
640
637
|
}>, redux.AnyAction, {
|
|
641
638
|
dynamicThunkObject: Record<string, unknown> | undefined;
|
|
@@ -645,7 +642,7 @@ declare function createStore(config: StoreConfig): _reduxjs_toolkit_dist_configu
|
|
|
645
642
|
type RootState = ReturnType<typeof reducers>;
|
|
646
643
|
type Store = ReturnType<typeof createStore>;
|
|
647
644
|
|
|
648
|
-
interface State$
|
|
645
|
+
interface State$f {
|
|
649
646
|
isLoggedIn: boolean | null;
|
|
650
647
|
loginFetchState: FetchState;
|
|
651
648
|
verifyFetchState: FetchState;
|
|
@@ -655,25 +652,25 @@ interface State$e {
|
|
|
655
652
|
type Autoflow = CamelCaseKeys<Server$1.Autoflow> & {
|
|
656
653
|
isBusy?: boolean;
|
|
657
654
|
};
|
|
658
|
-
interface State$
|
|
655
|
+
interface State$e {
|
|
659
656
|
list: Autoflow[];
|
|
660
657
|
fetchState: FetchState;
|
|
661
658
|
isInitialRequest: null | boolean;
|
|
662
659
|
}
|
|
663
660
|
|
|
664
|
-
interface State$
|
|
661
|
+
interface State$d {
|
|
665
662
|
current: Conversation | null;
|
|
666
663
|
isSupported: boolean | null;
|
|
667
664
|
}
|
|
668
665
|
|
|
669
666
|
type ContentType = CamelCaseKeys<Server.ContentType>;
|
|
670
|
-
type State$
|
|
667
|
+
type State$c = {
|
|
671
668
|
data: ContentType[] | null;
|
|
672
669
|
fetchState: FetchState;
|
|
673
670
|
};
|
|
674
671
|
|
|
675
672
|
type CustomMessage = CamelCaseKeys<Server$1.CustomMessage>;
|
|
676
|
-
interface State$
|
|
673
|
+
interface State$b {
|
|
677
674
|
list: CustomMessage[];
|
|
678
675
|
fetchState: FetchState;
|
|
679
676
|
isInitialRequest: null | boolean;
|
|
@@ -682,18 +679,18 @@ interface State$a {
|
|
|
682
679
|
answeredSuggestions: string[];
|
|
683
680
|
}
|
|
684
681
|
|
|
685
|
-
type State$
|
|
682
|
+
type State$a = {
|
|
686
683
|
token: string | null;
|
|
687
684
|
accountUrl: string | null;
|
|
688
685
|
interval: NodeJS.Timer | null;
|
|
689
686
|
};
|
|
690
687
|
|
|
691
|
-
type State$
|
|
688
|
+
type State$9 = {
|
|
692
689
|
data: Entity[] | null;
|
|
693
690
|
fetchState: FetchState;
|
|
694
691
|
};
|
|
695
692
|
|
|
696
|
-
type State$
|
|
693
|
+
type State$8 = {
|
|
697
694
|
data: KnowledgeAssistant | null;
|
|
698
695
|
fetchState: FetchState;
|
|
699
696
|
};
|
|
@@ -715,7 +712,7 @@ interface KnowledgeResponse {
|
|
|
715
712
|
question: string;
|
|
716
713
|
answer: KnowledgeAnswer;
|
|
717
714
|
}
|
|
718
|
-
type State$
|
|
715
|
+
type State$7 = {
|
|
719
716
|
data: KnowledgeResponse[];
|
|
720
717
|
fetchState: FetchState;
|
|
721
718
|
};
|
|
@@ -1040,6 +1037,9 @@ declare namespace Server {
|
|
|
1040
1037
|
summarizer_model: string;
|
|
1041
1038
|
summarizer_assistant?: string;
|
|
1042
1039
|
knowledge_assistant: string;
|
|
1040
|
+
active_config: {
|
|
1041
|
+
default_locale: string;
|
|
1042
|
+
};
|
|
1043
1043
|
ui_config: {
|
|
1044
1044
|
widget: {
|
|
1045
1045
|
types: Array<{
|
|
@@ -1192,8 +1192,8 @@ declare class DeepdeskAPI {
|
|
|
1192
1192
|
* Post converstation messages
|
|
1193
1193
|
*/
|
|
1194
1194
|
postMessages(conversationId: string, messages: CamelCaseKeys<Server.ConversationMessage>[]): Promise<({
|
|
1195
|
-
id: string;
|
|
1196
1195
|
text: string;
|
|
1196
|
+
id: string;
|
|
1197
1197
|
source: "agent" | "visitor" | "bot" | "system";
|
|
1198
1198
|
time: string;
|
|
1199
1199
|
authorId: string;
|
|
@@ -1276,6 +1276,7 @@ declare class DeepdeskAPI {
|
|
|
1276
1276
|
evaluateRule<Payload = unknown>(label: string, conversationId: string, payload: Payload, opts?: {
|
|
1277
1277
|
raiseForFailingConditions?: boolean;
|
|
1278
1278
|
}): Promise<CamelCaseKeys<Server.Cue[]>>;
|
|
1279
|
+
translateMessages(params: TranslationRequest): Promise<TranslationResponse>;
|
|
1279
1280
|
private handleDeepdeskVersionHeaders;
|
|
1280
1281
|
}
|
|
1281
1282
|
|
|
@@ -1375,6 +1376,15 @@ type CreateConversation = {
|
|
|
1375
1376
|
agentEmail?: string;
|
|
1376
1377
|
tags?: Record<string, string> | null;
|
|
1377
1378
|
};
|
|
1379
|
+
type TranslationRequest = {
|
|
1380
|
+
targetLanguage: string;
|
|
1381
|
+
messages: Array<string>;
|
|
1382
|
+
};
|
|
1383
|
+
type TranslationResponse = {
|
|
1384
|
+
originalLanguage: string;
|
|
1385
|
+
targetLanguage: string;
|
|
1386
|
+
translations: Array<string>;
|
|
1387
|
+
};
|
|
1378
1388
|
interface Entity {
|
|
1379
1389
|
text: string;
|
|
1380
1390
|
label: string;
|
|
@@ -1420,7 +1430,7 @@ type MetricState = {
|
|
|
1420
1430
|
textSuggestions: SuggestionMetrics[];
|
|
1421
1431
|
cuts: any[];
|
|
1422
1432
|
};
|
|
1423
|
-
type State$
|
|
1433
|
+
type State$6 = {
|
|
1424
1434
|
text: string;
|
|
1425
1435
|
html: string | null;
|
|
1426
1436
|
selection: SelectionRange;
|
|
@@ -1436,7 +1446,7 @@ type State$5 = {
|
|
|
1436
1446
|
selectedSuggestionIndex: number;
|
|
1437
1447
|
};
|
|
1438
1448
|
|
|
1439
|
-
type State$
|
|
1449
|
+
type State$5 = {
|
|
1440
1450
|
data: Profile | null;
|
|
1441
1451
|
fetchState: FetchState;
|
|
1442
1452
|
};
|
|
@@ -1450,7 +1460,7 @@ declare enum SearchResultDefaultType {
|
|
|
1450
1460
|
}
|
|
1451
1461
|
type SearchResultType = string | SearchResultDefaultType;
|
|
1452
1462
|
type SearchResult = SearchSuggestion;
|
|
1453
|
-
interface State$
|
|
1463
|
+
interface State$4 {
|
|
1454
1464
|
list: Array<SearchResult>;
|
|
1455
1465
|
page: string;
|
|
1456
1466
|
fetchState: FetchState;
|
|
@@ -1458,18 +1468,26 @@ interface State$3 {
|
|
|
1458
1468
|
aggregates: Record<string, number>;
|
|
1459
1469
|
}
|
|
1460
1470
|
|
|
1461
|
-
type State$
|
|
1471
|
+
type State$3 = {
|
|
1462
1472
|
data: string | null;
|
|
1463
1473
|
fetchState: FetchState;
|
|
1464
1474
|
};
|
|
1465
1475
|
|
|
1466
1476
|
type StyleSuggestion = CamelCaseKeys<Server.StyleSuggestion>;
|
|
1467
|
-
interface State$
|
|
1477
|
+
interface State$2 {
|
|
1468
1478
|
list: StyleSuggestion;
|
|
1469
1479
|
fetchState: FetchState;
|
|
1470
1480
|
isInitialRequest: null | boolean;
|
|
1471
1481
|
}
|
|
1472
1482
|
|
|
1483
|
+
type Cue = CamelCaseKeys<Server.Cue> & {
|
|
1484
|
+
timestamp?: number;
|
|
1485
|
+
};
|
|
1486
|
+
type State$1 = {
|
|
1487
|
+
cues: Cue[];
|
|
1488
|
+
fetchState: FetchState;
|
|
1489
|
+
};
|
|
1490
|
+
|
|
1473
1491
|
type SuggestionState = {
|
|
1474
1492
|
suggestions: TextSuggestion[];
|
|
1475
1493
|
fetchState: FetchState;
|
|
@@ -1479,7 +1497,7 @@ interface TextSuggestionState {
|
|
|
1479
1497
|
[type: string]: SuggestionState;
|
|
1480
1498
|
}
|
|
1481
1499
|
|
|
1482
|
-
declare const styles$
|
|
1500
|
+
declare const styles$d: {
|
|
1483
1501
|
readonly "isDisabled": string;
|
|
1484
1502
|
readonly "buttonStart": string;
|
|
1485
1503
|
readonly "root": string;
|
|
@@ -1490,9 +1508,9 @@ declare const styles$f: {
|
|
|
1490
1508
|
readonly "isAborted": string;
|
|
1491
1509
|
};
|
|
1492
1510
|
|
|
1493
|
-
type AutoflowStyles = typeof styles$
|
|
1511
|
+
type AutoflowStyles = typeof styles$d;
|
|
1494
1512
|
|
|
1495
|
-
declare const styles$
|
|
1513
|
+
declare const styles$c: {
|
|
1496
1514
|
readonly "root": string;
|
|
1497
1515
|
readonly "list": string;
|
|
1498
1516
|
readonly "listWrapper": string;
|
|
@@ -1538,39 +1556,14 @@ declare const styles$e: {
|
|
|
1538
1556
|
readonly "actionShortcutFixKerning": string;
|
|
1539
1557
|
};
|
|
1540
1558
|
|
|
1541
|
-
type CommandPaletteStyles = typeof styles$
|
|
1542
|
-
|
|
1543
|
-
declare const styles$d: {
|
|
1544
|
-
readonly "root": string;
|
|
1545
|
-
readonly "content": string;
|
|
1546
|
-
};
|
|
1547
|
-
|
|
1548
|
-
type DialogStyles = typeof styles$d;
|
|
1549
|
-
|
|
1550
|
-
declare const styles$c: {
|
|
1551
|
-
readonly "root": string;
|
|
1552
|
-
readonly "content": string;
|
|
1553
|
-
readonly "title": string;
|
|
1554
|
-
readonly "actions": string;
|
|
1555
|
-
readonly "pagination": string;
|
|
1556
|
-
readonly "primaryButton": string;
|
|
1557
|
-
readonly "primaryButtons": string;
|
|
1558
|
-
};
|
|
1559
|
-
|
|
1560
|
-
type EditSuggestionFormStyles = typeof styles$c;
|
|
1559
|
+
type CommandPaletteStyles = typeof styles$c;
|
|
1561
1560
|
|
|
1562
1561
|
declare const styles$b: {
|
|
1563
1562
|
readonly "root": string;
|
|
1564
|
-
readonly "
|
|
1565
|
-
readonly "textInput": string;
|
|
1566
|
-
readonly "textInputWrapper": string;
|
|
1567
|
-
readonly "alert": string;
|
|
1568
|
-
readonly "alertText": string;
|
|
1569
|
-
readonly "warning": string;
|
|
1570
|
-
readonly "success": string;
|
|
1563
|
+
readonly "content": string;
|
|
1571
1564
|
};
|
|
1572
1565
|
|
|
1573
|
-
type
|
|
1566
|
+
type DialogStyles = typeof styles$b;
|
|
1574
1567
|
|
|
1575
1568
|
declare const styles$a: {
|
|
1576
1569
|
readonly "root": string;
|
|
@@ -1711,7 +1704,6 @@ type WidgetCustomStyles = {
|
|
|
1711
1704
|
SectionList?: Partial<SectionListStyles>;
|
|
1712
1705
|
Suggestion?: Partial<SuggestionStyles>;
|
|
1713
1706
|
SuggestionList?: Partial<SuggestionListStyles>;
|
|
1714
|
-
EditSuggestionForm?: Partial<EditSuggestionFormStyles>;
|
|
1715
1707
|
Widget?: Partial<WidgetStyles>;
|
|
1716
1708
|
};
|
|
1717
1709
|
type InputOverlayCustomStyles = {
|
|
@@ -1729,8 +1721,6 @@ type InputOverlayCustomStyles = {
|
|
|
1729
1721
|
ToggleButton?: Partial<ToggleButtonStyles>;
|
|
1730
1722
|
KeyboardHint?: Partial<KeyboardHintStyles>;
|
|
1731
1723
|
TabCompletion?: Partial<TabCompletionStyles>;
|
|
1732
|
-
EditSuggestionTextInput?: Partial<EditSuggestionTextInputStyles>;
|
|
1733
|
-
EditSuggestionForm?: Partial<EditSuggestionFormStyles>;
|
|
1734
1724
|
FloatingMenu?: Partial<FloatingMenuStyles>;
|
|
1735
1725
|
};
|
|
1736
1726
|
|
|
@@ -1806,6 +1796,7 @@ interface SDKEventMap {
|
|
|
1806
1796
|
text: string;
|
|
1807
1797
|
selectionAfter: SelectionRange;
|
|
1808
1798
|
};
|
|
1799
|
+
'cues': Cue[];
|
|
1809
1800
|
'replace': {
|
|
1810
1801
|
text: string;
|
|
1811
1802
|
replace: SelectionRange;
|
|
@@ -1873,16 +1864,15 @@ declare class DeepdeskSDK {
|
|
|
1873
1864
|
store: Store;
|
|
1874
1865
|
constructor({ deepdeskUrl, brokerUrl, version, locale, token, fetch, productName, createCustomChannel, }: SDKOptions);
|
|
1875
1866
|
get state(): redux.EmptyObject & {
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
knowledgeAssistant: State$7;
|
|
1867
|
+
answer: State$7;
|
|
1868
|
+
auth: State$f;
|
|
1869
|
+
autoflows: State$e;
|
|
1870
|
+
conversation: State$d;
|
|
1871
|
+
contentTypes: State$c;
|
|
1872
|
+
customMessages: State$b;
|
|
1873
|
+
passwordlessToken: State$a;
|
|
1874
|
+
entities: State$9;
|
|
1875
|
+
knowledgeAssistant: State$8;
|
|
1886
1876
|
handlingTime: State$g;
|
|
1887
1877
|
info: {
|
|
1888
1878
|
agentInfo?: AgentInfo | undefined;
|
|
@@ -1890,8 +1880,7 @@ declare class DeepdeskSDK {
|
|
|
1890
1880
|
visitorInfo?: VisitorInfo | undefined;
|
|
1891
1881
|
fetchState: FetchState;
|
|
1892
1882
|
};
|
|
1893
|
-
input: State$
|
|
1894
|
-
overlayInput: State$5;
|
|
1883
|
+
input: State$6;
|
|
1895
1884
|
settings: {
|
|
1896
1885
|
locale: Locale;
|
|
1897
1886
|
deanonymize: boolean;
|
|
@@ -1922,10 +1911,10 @@ declare class DeepdeskSDK {
|
|
|
1922
1911
|
productName: string;
|
|
1923
1912
|
suggestionFeedbackEmailAddresses?: string[] | undefined;
|
|
1924
1913
|
};
|
|
1925
|
-
profile: State$
|
|
1926
|
-
search: State$
|
|
1927
|
-
summary: State$
|
|
1928
|
-
styleSuggestions: State$
|
|
1914
|
+
profile: State$5;
|
|
1915
|
+
search: State$4;
|
|
1916
|
+
summary: State$3;
|
|
1917
|
+
styleSuggestions: State$2;
|
|
1929
1918
|
ui: {
|
|
1930
1919
|
showTabHint: boolean;
|
|
1931
1920
|
inputHasFocus: boolean;
|
|
@@ -1933,6 +1922,7 @@ declare class DeepdeskSDK {
|
|
|
1933
1922
|
openOverlayWhenTyping: boolean;
|
|
1934
1923
|
overlayCollapsedUserOverwrite: boolean;
|
|
1935
1924
|
};
|
|
1925
|
+
rules: State$1;
|
|
1936
1926
|
textSuggestions: TextSuggestionState;
|
|
1937
1927
|
};
|
|
1938
1928
|
get settings(): {
|
|
@@ -2055,18 +2045,13 @@ declare class DeepdeskSDK {
|
|
|
2055
2045
|
private notifyPaste;
|
|
2056
2046
|
private notifyCut;
|
|
2057
2047
|
notifyExternalSuggestion(suggestion: StageSuggestion): void;
|
|
2058
|
-
|
|
2059
|
-
contentType: string;
|
|
2060
|
-
suggestions: TextSuggestion[];
|
|
2061
|
-
index: number | null;
|
|
2062
|
-
}): void;
|
|
2048
|
+
evaluateRule(label: string, params?: Record<string, any>): Promise<any>;
|
|
2063
2049
|
private handleInputChanged;
|
|
2064
2050
|
private handleKeyDown;
|
|
2065
2051
|
private handleAfterSendMessage;
|
|
2066
2052
|
handlingTimeStart(): void;
|
|
2067
2053
|
handlingTimeStop(): void;
|
|
2068
2054
|
private logSendMessage;
|
|
2069
|
-
private logSendEditMessage;
|
|
2070
2055
|
private logHandlingTime;
|
|
2071
2056
|
/**
|
|
2072
2057
|
* Method to call when the agent has sent a message to the visitor
|
|
@@ -2126,6 +2111,7 @@ declare class DeepdeskSDK {
|
|
|
2126
2111
|
loginViaPopup(options?: {
|
|
2127
2112
|
url?: string;
|
|
2128
2113
|
}): Promise<void>;
|
|
2114
|
+
translateMessages(params: TranslationRequest): Promise<TranslationResponse>;
|
|
2129
2115
|
checkForTrialMode(agentId: string): Promise<void>;
|
|
2130
2116
|
private refreshWidgetSuggestions;
|
|
2131
2117
|
}
|