@deepdesk/deepdesk-sdk 19.6.2-beta.4 → 19.6.2-beta.6
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 +9 -9
- package/dist/index.d.mts +39 -1
- package/dist/index.d.ts +39 -1
- package/dist/index.esm.js +9 -9
- package/dist/index.iife.js +36 -36
- 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
|
@@ -451,6 +451,12 @@ type State$9 = {
|
|
|
451
451
|
cues: Cue[];
|
|
452
452
|
threads: Record<number, AssistantInteraction[]>;
|
|
453
453
|
pending: string[];
|
|
454
|
+
widgetAssistantSessionId: string | null;
|
|
455
|
+
assistantThreads: Record<string, {
|
|
456
|
+
threadId: number;
|
|
457
|
+
}>;
|
|
458
|
+
activeAssistantCode: string | null;
|
|
459
|
+
nextLocalThreadId: number;
|
|
454
460
|
};
|
|
455
461
|
type Transcript = Array<{
|
|
456
462
|
source: string;
|
|
@@ -728,6 +734,7 @@ declare namespace Server {
|
|
|
728
734
|
type EvaluationResponse = {
|
|
729
735
|
evaluation_id: string;
|
|
730
736
|
evaluation_status: EvaluationStatus;
|
|
737
|
+
session_id?: string;
|
|
731
738
|
output: EvaluationOutput | KAAnswer | string;
|
|
732
739
|
};
|
|
733
740
|
type EvaluationOutput = Array<{
|
|
@@ -877,6 +884,12 @@ declare namespace Server {
|
|
|
877
884
|
*/
|
|
878
885
|
knowledge_assistant: string | null;
|
|
879
886
|
knowledge_assistant_new: string | null;
|
|
887
|
+
widget_interactive_assistants: Array<{
|
|
888
|
+
code: string;
|
|
889
|
+
name: string;
|
|
890
|
+
display_name: string | null;
|
|
891
|
+
order: number;
|
|
892
|
+
}>;
|
|
880
893
|
on_demand_assistants: Array<OnDemandAssistant>;
|
|
881
894
|
active_config: {
|
|
882
895
|
default_locale: string;
|
|
@@ -1232,11 +1245,31 @@ declare class DeepdeskAPI {
|
|
|
1232
1245
|
externalConversationId?: string;
|
|
1233
1246
|
attachments?: EvaluationAttachment[];
|
|
1234
1247
|
}): Promise<CamelCaseKeys<Server.EvaluationResponse>>;
|
|
1248
|
+
interactWithAssistant(init: {
|
|
1249
|
+
assistantCode: string;
|
|
1250
|
+
message: string;
|
|
1251
|
+
sessionId?: string;
|
|
1252
|
+
externalConversationId?: string;
|
|
1253
|
+
}): Promise<CamelCaseKeys<Server.EvaluationResponse>>;
|
|
1254
|
+
/**
|
|
1255
|
+
* Clears the conversation of one assistant in a session, so the next `interactWithAssistant`
|
|
1256
|
+
* call starts fresh. Other assistants in the same session keep their conversation.
|
|
1257
|
+
*/
|
|
1258
|
+
resetAssistantThread(init: {
|
|
1259
|
+
assistantCode: string;
|
|
1260
|
+
sessionId: string;
|
|
1261
|
+
}): Promise<void>;
|
|
1262
|
+
/**
|
|
1263
|
+
* @deprecated Prefer `interactWithAssistant` for widget chat. Kept for existing SDK consumers.
|
|
1264
|
+
*/
|
|
1235
1265
|
createAssistantThread(init: {
|
|
1236
1266
|
assistantCode: string;
|
|
1237
1267
|
}): Promise<{
|
|
1238
1268
|
id: number;
|
|
1239
1269
|
}>;
|
|
1270
|
+
/**
|
|
1271
|
+
* @deprecated Prefer `interactWithAssistant` for widget chat. Kept for existing SDK consumers.
|
|
1272
|
+
*/
|
|
1240
1273
|
postMessageToAssistantThread(init: {
|
|
1241
1274
|
assistantCode: string;
|
|
1242
1275
|
threadId: number;
|
|
@@ -1887,6 +1920,9 @@ type TextSuggestionStyles = typeof styles$3;
|
|
|
1887
1920
|
declare const styles$2: {
|
|
1888
1921
|
readonly "footer": string;
|
|
1889
1922
|
readonly "footerShortcut": string;
|
|
1923
|
+
readonly "interactiveAssistantTab": string;
|
|
1924
|
+
readonly "interactiveAssistantTabActive": string;
|
|
1925
|
+
readonly "interactiveAssistantTabs": string;
|
|
1890
1926
|
readonly "link": string;
|
|
1891
1927
|
readonly "loginText": string;
|
|
1892
1928
|
readonly "root": string;
|
|
@@ -2019,6 +2055,7 @@ type State = {
|
|
|
2019
2055
|
showTextSuggestions: boolean;
|
|
2020
2056
|
showEntitiesCommand: boolean;
|
|
2021
2057
|
showSummaryCommand: boolean;
|
|
2058
|
+
/** @deprecated Use the knowledge-assist widget block; still synced from profile for legacy consumers. */
|
|
2022
2059
|
showKnowledgeSearch: boolean;
|
|
2023
2060
|
textSuggestionsCount: number;
|
|
2024
2061
|
recommendTextSuggestions: boolean;
|
|
@@ -2675,7 +2712,8 @@ declare class DeepdeskSDK {
|
|
|
2675
2712
|
* @param settings.showTextSuggestions: Show text suggestions (default: true)
|
|
2676
2713
|
* @param settings.showEntitiesCommand: Show entities command (default: false)
|
|
2677
2714
|
* @param settings.showSummaryCommand: Show summary command (default: false)
|
|
2678
|
-
* @param settings.showKnowledgeSearch:
|
|
2715
|
+
* @param settings.showKnowledgeSearch: @deprecated Use the knowledge-assist widget block instead.
|
|
2716
|
+
* Still accepted for backward compatibility; profile load overwrites this from {@link deriveShowKnowledgeSearch}.
|
|
2679
2717
|
* @param settings.textSuggestionsCount: Number of text suggestions to show (default: 3)
|
|
2680
2718
|
* @param settings.recommendTextSuggestions: Recommend text suggestions (default: true)
|
|
2681
2719
|
* @param settings.searchTriggerKey: Key to trigger search (default: 'k')
|
package/dist/index.d.ts
CHANGED
|
@@ -451,6 +451,12 @@ type State$9 = {
|
|
|
451
451
|
cues: Cue[];
|
|
452
452
|
threads: Record<number, AssistantInteraction[]>;
|
|
453
453
|
pending: string[];
|
|
454
|
+
widgetAssistantSessionId: string | null;
|
|
455
|
+
assistantThreads: Record<string, {
|
|
456
|
+
threadId: number;
|
|
457
|
+
}>;
|
|
458
|
+
activeAssistantCode: string | null;
|
|
459
|
+
nextLocalThreadId: number;
|
|
454
460
|
};
|
|
455
461
|
type Transcript = Array<{
|
|
456
462
|
source: string;
|
|
@@ -728,6 +734,7 @@ declare namespace Server {
|
|
|
728
734
|
type EvaluationResponse = {
|
|
729
735
|
evaluation_id: string;
|
|
730
736
|
evaluation_status: EvaluationStatus;
|
|
737
|
+
session_id?: string;
|
|
731
738
|
output: EvaluationOutput | KAAnswer | string;
|
|
732
739
|
};
|
|
733
740
|
type EvaluationOutput = Array<{
|
|
@@ -877,6 +884,12 @@ declare namespace Server {
|
|
|
877
884
|
*/
|
|
878
885
|
knowledge_assistant: string | null;
|
|
879
886
|
knowledge_assistant_new: string | null;
|
|
887
|
+
widget_interactive_assistants: Array<{
|
|
888
|
+
code: string;
|
|
889
|
+
name: string;
|
|
890
|
+
display_name: string | null;
|
|
891
|
+
order: number;
|
|
892
|
+
}>;
|
|
880
893
|
on_demand_assistants: Array<OnDemandAssistant>;
|
|
881
894
|
active_config: {
|
|
882
895
|
default_locale: string;
|
|
@@ -1232,11 +1245,31 @@ declare class DeepdeskAPI {
|
|
|
1232
1245
|
externalConversationId?: string;
|
|
1233
1246
|
attachments?: EvaluationAttachment[];
|
|
1234
1247
|
}): Promise<CamelCaseKeys<Server.EvaluationResponse>>;
|
|
1248
|
+
interactWithAssistant(init: {
|
|
1249
|
+
assistantCode: string;
|
|
1250
|
+
message: string;
|
|
1251
|
+
sessionId?: string;
|
|
1252
|
+
externalConversationId?: string;
|
|
1253
|
+
}): Promise<CamelCaseKeys<Server.EvaluationResponse>>;
|
|
1254
|
+
/**
|
|
1255
|
+
* Clears the conversation of one assistant in a session, so the next `interactWithAssistant`
|
|
1256
|
+
* call starts fresh. Other assistants in the same session keep their conversation.
|
|
1257
|
+
*/
|
|
1258
|
+
resetAssistantThread(init: {
|
|
1259
|
+
assistantCode: string;
|
|
1260
|
+
sessionId: string;
|
|
1261
|
+
}): Promise<void>;
|
|
1262
|
+
/**
|
|
1263
|
+
* @deprecated Prefer `interactWithAssistant` for widget chat. Kept for existing SDK consumers.
|
|
1264
|
+
*/
|
|
1235
1265
|
createAssistantThread(init: {
|
|
1236
1266
|
assistantCode: string;
|
|
1237
1267
|
}): Promise<{
|
|
1238
1268
|
id: number;
|
|
1239
1269
|
}>;
|
|
1270
|
+
/**
|
|
1271
|
+
* @deprecated Prefer `interactWithAssistant` for widget chat. Kept for existing SDK consumers.
|
|
1272
|
+
*/
|
|
1240
1273
|
postMessageToAssistantThread(init: {
|
|
1241
1274
|
assistantCode: string;
|
|
1242
1275
|
threadId: number;
|
|
@@ -1887,6 +1920,9 @@ type TextSuggestionStyles = typeof styles$3;
|
|
|
1887
1920
|
declare const styles$2: {
|
|
1888
1921
|
readonly "footer": string;
|
|
1889
1922
|
readonly "footerShortcut": string;
|
|
1923
|
+
readonly "interactiveAssistantTab": string;
|
|
1924
|
+
readonly "interactiveAssistantTabActive": string;
|
|
1925
|
+
readonly "interactiveAssistantTabs": string;
|
|
1890
1926
|
readonly "link": string;
|
|
1891
1927
|
readonly "loginText": string;
|
|
1892
1928
|
readonly "root": string;
|
|
@@ -2019,6 +2055,7 @@ type State = {
|
|
|
2019
2055
|
showTextSuggestions: boolean;
|
|
2020
2056
|
showEntitiesCommand: boolean;
|
|
2021
2057
|
showSummaryCommand: boolean;
|
|
2058
|
+
/** @deprecated Use the knowledge-assist widget block; still synced from profile for legacy consumers. */
|
|
2022
2059
|
showKnowledgeSearch: boolean;
|
|
2023
2060
|
textSuggestionsCount: number;
|
|
2024
2061
|
recommendTextSuggestions: boolean;
|
|
@@ -2675,7 +2712,8 @@ declare class DeepdeskSDK {
|
|
|
2675
2712
|
* @param settings.showTextSuggestions: Show text suggestions (default: true)
|
|
2676
2713
|
* @param settings.showEntitiesCommand: Show entities command (default: false)
|
|
2677
2714
|
* @param settings.showSummaryCommand: Show summary command (default: false)
|
|
2678
|
-
* @param settings.showKnowledgeSearch:
|
|
2715
|
+
* @param settings.showKnowledgeSearch: @deprecated Use the knowledge-assist widget block instead.
|
|
2716
|
+
* Still accepted for backward compatibility; profile load overwrites this from {@link deriveShowKnowledgeSearch}.
|
|
2679
2717
|
* @param settings.textSuggestionsCount: Number of text suggestions to show (default: 3)
|
|
2680
2718
|
* @param settings.recommendTextSuggestions: Recommend text suggestions (default: true)
|
|
2681
2719
|
* @param settings.searchTriggerKey: Key to trigger search (default: 'k')
|