@deepdesk/deepdesk-sdk 10.12.1-beta.9 → 11.0.1-beta.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/dialogs.css +1 -1
- package/dist/index.cjs.js +7 -7
- package/dist/index.d.mts +24 -8
- package/dist/index.d.ts +24 -8
- package/dist/index.esm.js +7 -7
- package/dist/index.iife.js +18 -14
- package/input.css +1 -1
- package/package.json +5 -2
- package/styles/index.js +1 -1
- package/styles.css +1 -1
- package/widget.css +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -12,7 +12,6 @@ declare const styles$l: {
|
|
|
12
12
|
readonly "title": string;
|
|
13
13
|
readonly "contentIsCropped": string;
|
|
14
14
|
readonly "lineClamp": string;
|
|
15
|
-
readonly "closeIcon": string;
|
|
16
15
|
};
|
|
17
16
|
|
|
18
17
|
type ImageProps = {
|
|
@@ -29,14 +28,10 @@ interface TitleProps extends React.HTMLProps<HTMLHeadingElement> {
|
|
|
29
28
|
className?: string;
|
|
30
29
|
as?: string;
|
|
31
30
|
}
|
|
32
|
-
interface CloseIconProps extends React.HTMLProps<HTMLDivElement> {
|
|
33
|
-
className?: string;
|
|
34
|
-
}
|
|
35
31
|
interface CardComposition {
|
|
36
32
|
Image: FC<ImageProps>;
|
|
37
33
|
Content: FC<ContentProps>;
|
|
38
34
|
Title: FC<TitleProps>;
|
|
39
|
-
CloseIcon: FC<CloseIconProps>;
|
|
40
35
|
}
|
|
41
36
|
type CardStyles = typeof styles$l;
|
|
42
37
|
declare const Card: FC & CardComposition;
|
|
@@ -108,11 +103,15 @@ declare const styles$g: {
|
|
|
108
103
|
readonly "actionButtonIsDisabled": string;
|
|
109
104
|
readonly "labels": string;
|
|
110
105
|
readonly "label": string;
|
|
106
|
+
readonly "closeIcon": string;
|
|
111
107
|
};
|
|
112
108
|
|
|
113
109
|
interface ActionsProps extends HTMLAttributes<HTMLElement> {
|
|
114
110
|
fixed?: boolean;
|
|
115
111
|
}
|
|
112
|
+
interface CloseIconProps extends React.HTMLProps<HTMLDivElement> {
|
|
113
|
+
className?: string;
|
|
114
|
+
}
|
|
116
115
|
interface ActionButtonProps extends HTMLAttributes<HTMLElement> {
|
|
117
116
|
primary?: boolean;
|
|
118
117
|
disabled?: boolean;
|
|
@@ -136,6 +135,7 @@ interface SuggestionComposition {
|
|
|
136
135
|
DropdownButton: FC<ActionButtonProps>;
|
|
137
136
|
DropdownItem: FC<DropdownItemProps>;
|
|
138
137
|
Labels: FC<LabelProps>;
|
|
138
|
+
CloseIcon: FC<CloseIconProps>;
|
|
139
139
|
}
|
|
140
140
|
type SuggestionStyles = typeof styles$g;
|
|
141
141
|
declare const Suggestion: ForwardRefExoticComponent<Props$2 & RefAttributes<any>> & SuggestionComposition;
|
|
@@ -1037,6 +1037,9 @@ declare namespace Server {
|
|
|
1037
1037
|
summarizer_model: string;
|
|
1038
1038
|
summarizer_assistant?: string;
|
|
1039
1039
|
knowledge_assistant: string;
|
|
1040
|
+
active_config: {
|
|
1041
|
+
default_locale: string;
|
|
1042
|
+
};
|
|
1040
1043
|
ui_config: {
|
|
1041
1044
|
widget: {
|
|
1042
1045
|
types: Array<{
|
|
@@ -1273,6 +1276,7 @@ declare class DeepdeskAPI {
|
|
|
1273
1276
|
evaluateRule<Payload = unknown>(label: string, conversationId: string, payload: Payload, opts?: {
|
|
1274
1277
|
raiseForFailingConditions?: boolean;
|
|
1275
1278
|
}): Promise<CamelCaseKeys<Server.Cue[]>>;
|
|
1279
|
+
translateMessages(params: TranslationRequest): Promise<TranslationResponse>;
|
|
1276
1280
|
private handleDeepdeskVersionHeaders;
|
|
1277
1281
|
}
|
|
1278
1282
|
|
|
@@ -1372,6 +1376,15 @@ type CreateConversation = {
|
|
|
1372
1376
|
agentEmail?: string;
|
|
1373
1377
|
tags?: Record<string, string> | null;
|
|
1374
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
|
+
};
|
|
1375
1388
|
interface Entity {
|
|
1376
1389
|
text: string;
|
|
1377
1390
|
label: string;
|
|
@@ -1507,7 +1520,9 @@ declare const styles$c: {
|
|
|
1507
1520
|
readonly "pageNav": string;
|
|
1508
1521
|
readonly "pageTitle": string;
|
|
1509
1522
|
readonly "pageBackButton": string;
|
|
1523
|
+
readonly "listHeader": string;
|
|
1510
1524
|
readonly "listHeading": string;
|
|
1525
|
+
readonly "listMoreButton": string;
|
|
1511
1526
|
readonly "listItem": string;
|
|
1512
1527
|
readonly "listItemContent": string;
|
|
1513
1528
|
readonly "listItemText": string;
|
|
@@ -1537,8 +1552,8 @@ declare const styles$c: {
|
|
|
1537
1552
|
readonly "actions": string;
|
|
1538
1553
|
readonly "actionsWrapper": string;
|
|
1539
1554
|
readonly "actionsBar": string;
|
|
1540
|
-
readonly "hasShortKeys": string;
|
|
1541
1555
|
readonly "actionButton": string;
|
|
1556
|
+
readonly "hasShortKeys": string;
|
|
1542
1557
|
readonly "actionShortcut": string;
|
|
1543
1558
|
readonly "actionShortcutFixKerning": string;
|
|
1544
1559
|
};
|
|
@@ -1562,10 +1577,10 @@ type EntitiesListStyles = typeof styles$a;
|
|
|
1562
1577
|
declare const styles$9: {
|
|
1563
1578
|
readonly "root": string;
|
|
1564
1579
|
readonly "text": string;
|
|
1565
|
-
readonly "icon": string;
|
|
1566
|
-
readonly "logo": string;
|
|
1567
1580
|
readonly "isLoggedIn": string;
|
|
1568
1581
|
readonly "isLoggedOut": string;
|
|
1582
|
+
readonly "icon": string;
|
|
1583
|
+
readonly "logo": string;
|
|
1569
1584
|
readonly "lock": string;
|
|
1570
1585
|
};
|
|
1571
1586
|
|
|
@@ -2098,6 +2113,7 @@ declare class DeepdeskSDK {
|
|
|
2098
2113
|
loginViaPopup(options?: {
|
|
2099
2114
|
url?: string;
|
|
2100
2115
|
}): Promise<void>;
|
|
2116
|
+
translateMessages(params: TranslationRequest): Promise<TranslationResponse>;
|
|
2101
2117
|
checkForTrialMode(agentId: string): Promise<void>;
|
|
2102
2118
|
private refreshWidgetSuggestions;
|
|
2103
2119
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -12,7 +12,6 @@ declare const styles$l: {
|
|
|
12
12
|
readonly "title": string;
|
|
13
13
|
readonly "contentIsCropped": string;
|
|
14
14
|
readonly "lineClamp": string;
|
|
15
|
-
readonly "closeIcon": string;
|
|
16
15
|
};
|
|
17
16
|
|
|
18
17
|
type ImageProps = {
|
|
@@ -29,14 +28,10 @@ interface TitleProps extends React.HTMLProps<HTMLHeadingElement> {
|
|
|
29
28
|
className?: string;
|
|
30
29
|
as?: string;
|
|
31
30
|
}
|
|
32
|
-
interface CloseIconProps extends React.HTMLProps<HTMLDivElement> {
|
|
33
|
-
className?: string;
|
|
34
|
-
}
|
|
35
31
|
interface CardComposition {
|
|
36
32
|
Image: FC<ImageProps>;
|
|
37
33
|
Content: FC<ContentProps>;
|
|
38
34
|
Title: FC<TitleProps>;
|
|
39
|
-
CloseIcon: FC<CloseIconProps>;
|
|
40
35
|
}
|
|
41
36
|
type CardStyles = typeof styles$l;
|
|
42
37
|
declare const Card: FC & CardComposition;
|
|
@@ -108,11 +103,15 @@ declare const styles$g: {
|
|
|
108
103
|
readonly "actionButtonIsDisabled": string;
|
|
109
104
|
readonly "labels": string;
|
|
110
105
|
readonly "label": string;
|
|
106
|
+
readonly "closeIcon": string;
|
|
111
107
|
};
|
|
112
108
|
|
|
113
109
|
interface ActionsProps extends HTMLAttributes<HTMLElement> {
|
|
114
110
|
fixed?: boolean;
|
|
115
111
|
}
|
|
112
|
+
interface CloseIconProps extends React.HTMLProps<HTMLDivElement> {
|
|
113
|
+
className?: string;
|
|
114
|
+
}
|
|
116
115
|
interface ActionButtonProps extends HTMLAttributes<HTMLElement> {
|
|
117
116
|
primary?: boolean;
|
|
118
117
|
disabled?: boolean;
|
|
@@ -136,6 +135,7 @@ interface SuggestionComposition {
|
|
|
136
135
|
DropdownButton: FC<ActionButtonProps>;
|
|
137
136
|
DropdownItem: FC<DropdownItemProps>;
|
|
138
137
|
Labels: FC<LabelProps>;
|
|
138
|
+
CloseIcon: FC<CloseIconProps>;
|
|
139
139
|
}
|
|
140
140
|
type SuggestionStyles = typeof styles$g;
|
|
141
141
|
declare const Suggestion: ForwardRefExoticComponent<Props$2 & RefAttributes<any>> & SuggestionComposition;
|
|
@@ -1037,6 +1037,9 @@ declare namespace Server {
|
|
|
1037
1037
|
summarizer_model: string;
|
|
1038
1038
|
summarizer_assistant?: string;
|
|
1039
1039
|
knowledge_assistant: string;
|
|
1040
|
+
active_config: {
|
|
1041
|
+
default_locale: string;
|
|
1042
|
+
};
|
|
1040
1043
|
ui_config: {
|
|
1041
1044
|
widget: {
|
|
1042
1045
|
types: Array<{
|
|
@@ -1273,6 +1276,7 @@ declare class DeepdeskAPI {
|
|
|
1273
1276
|
evaluateRule<Payload = unknown>(label: string, conversationId: string, payload: Payload, opts?: {
|
|
1274
1277
|
raiseForFailingConditions?: boolean;
|
|
1275
1278
|
}): Promise<CamelCaseKeys<Server.Cue[]>>;
|
|
1279
|
+
translateMessages(params: TranslationRequest): Promise<TranslationResponse>;
|
|
1276
1280
|
private handleDeepdeskVersionHeaders;
|
|
1277
1281
|
}
|
|
1278
1282
|
|
|
@@ -1372,6 +1376,15 @@ type CreateConversation = {
|
|
|
1372
1376
|
agentEmail?: string;
|
|
1373
1377
|
tags?: Record<string, string> | null;
|
|
1374
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
|
+
};
|
|
1375
1388
|
interface Entity {
|
|
1376
1389
|
text: string;
|
|
1377
1390
|
label: string;
|
|
@@ -1507,7 +1520,9 @@ declare const styles$c: {
|
|
|
1507
1520
|
readonly "pageNav": string;
|
|
1508
1521
|
readonly "pageTitle": string;
|
|
1509
1522
|
readonly "pageBackButton": string;
|
|
1523
|
+
readonly "listHeader": string;
|
|
1510
1524
|
readonly "listHeading": string;
|
|
1525
|
+
readonly "listMoreButton": string;
|
|
1511
1526
|
readonly "listItem": string;
|
|
1512
1527
|
readonly "listItemContent": string;
|
|
1513
1528
|
readonly "listItemText": string;
|
|
@@ -1537,8 +1552,8 @@ declare const styles$c: {
|
|
|
1537
1552
|
readonly "actions": string;
|
|
1538
1553
|
readonly "actionsWrapper": string;
|
|
1539
1554
|
readonly "actionsBar": string;
|
|
1540
|
-
readonly "hasShortKeys": string;
|
|
1541
1555
|
readonly "actionButton": string;
|
|
1556
|
+
readonly "hasShortKeys": string;
|
|
1542
1557
|
readonly "actionShortcut": string;
|
|
1543
1558
|
readonly "actionShortcutFixKerning": string;
|
|
1544
1559
|
};
|
|
@@ -1562,10 +1577,10 @@ type EntitiesListStyles = typeof styles$a;
|
|
|
1562
1577
|
declare const styles$9: {
|
|
1563
1578
|
readonly "root": string;
|
|
1564
1579
|
readonly "text": string;
|
|
1565
|
-
readonly "icon": string;
|
|
1566
|
-
readonly "logo": string;
|
|
1567
1580
|
readonly "isLoggedIn": string;
|
|
1568
1581
|
readonly "isLoggedOut": string;
|
|
1582
|
+
readonly "icon": string;
|
|
1583
|
+
readonly "logo": string;
|
|
1569
1584
|
readonly "lock": string;
|
|
1570
1585
|
};
|
|
1571
1586
|
|
|
@@ -2098,6 +2113,7 @@ declare class DeepdeskSDK {
|
|
|
2098
2113
|
loginViaPopup(options?: {
|
|
2099
2114
|
url?: string;
|
|
2100
2115
|
}): Promise<void>;
|
|
2116
|
+
translateMessages(params: TranslationRequest): Promise<TranslationResponse>;
|
|
2101
2117
|
checkForTrialMode(agentId: string): Promise<void>;
|
|
2102
2118
|
private refreshWidgetSuggestions;
|
|
2103
2119
|
}
|