@deepdesk/deepdesk-sdk 10.12.1-beta.8 → 11.0.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/dist/index.cjs.js +6 -6
- package/dist/index.d.mts +14 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.esm.js +6 -6
- package/dist/index.iife.js +11 -11
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -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;
|
|
@@ -2098,6 +2111,7 @@ declare class DeepdeskSDK {
|
|
|
2098
2111
|
loginViaPopup(options?: {
|
|
2099
2112
|
url?: string;
|
|
2100
2113
|
}): Promise<void>;
|
|
2114
|
+
translateMessages(params: TranslationRequest): Promise<TranslationResponse>;
|
|
2101
2115
|
checkForTrialMode(agentId: string): Promise<void>;
|
|
2102
2116
|
private refreshWidgetSuggestions;
|
|
2103
2117
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -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;
|
|
@@ -2098,6 +2111,7 @@ declare class DeepdeskSDK {
|
|
|
2098
2111
|
loginViaPopup(options?: {
|
|
2099
2112
|
url?: string;
|
|
2100
2113
|
}): Promise<void>;
|
|
2114
|
+
translateMessages(params: TranslationRequest): Promise<TranslationResponse>;
|
|
2101
2115
|
checkForTrialMode(agentId: string): Promise<void>;
|
|
2102
2116
|
private refreshWidgetSuggestions;
|
|
2103
2117
|
}
|