@deepdesk/deepdesk-sdk 15.1.1-beta.8 → 16.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.d.mts CHANGED
@@ -998,6 +998,16 @@ type SendEventV2ArgumentMap = {
998
998
  isAgent: boolean;
999
999
  answer: Server.KnowledgeResponse['answer'];
1000
1000
  }>;
1001
+ 'knowledge assist question answered': EventV2<{
1002
+ question: string;
1003
+ answer: string;
1004
+ sources: {
1005
+ url?: string;
1006
+ name: string;
1007
+ }[];
1008
+ isFollowUpQuestion: boolean;
1009
+ isAutoInitiated: boolean;
1010
+ }>;
1001
1011
  'knowledge assist source viewed': EventV2<{
1002
1012
  question: string;
1003
1013
  sourceViewed: string;
@@ -1011,6 +1021,18 @@ type SendEventV2ArgumentMap = {
1011
1021
  finalText: string;
1012
1022
  assistant: string;
1013
1023
  }>;
1024
+ 'open search': EventV2<{
1025
+ via: 'ctrl+k' | 'autocomplete-overlay' | 'widget-shortcut';
1026
+ }>;
1027
+ 'open knowledge assistant': EventV2<{
1028
+ via: 'ctrl+k' | 'widget-shortcut' | 'search-command';
1029
+ }>;
1030
+ 'open my deepdesk': EventV2<{
1031
+ via: 'widget-shortcut';
1032
+ }>;
1033
+ 'trigger on demand assistant': EventV2<{
1034
+ assistantCode: string;
1035
+ }>;
1014
1036
  };
1015
1037
  /**
1016
1038
  * Request retry options
@@ -2028,12 +2050,20 @@ interface RenderOptions {
2028
2050
  }
2029
2051
  interface MountOptions extends Partial<Settings>, RenderOptions {
2030
2052
  }
2053
+ interface KnowledgeAssistOptions {
2054
+ initialQuestion?: string;
2055
+ emptyState?: {
2056
+ title: string;
2057
+ description: string;
2058
+ };
2059
+ }
2031
2060
  interface WidgetOptions {
2032
2061
  customStyles?: WidgetCustomStyles;
2033
2062
  showImages?: boolean;
2034
2063
  isEmbedded?: boolean;
2064
+ knowledgeAssist?: KnowledgeAssistOptions;
2035
2065
  }
2036
- interface KnowledgeAssistantWidgetOptions {
2066
+ interface KnowledgeAssistantWidgetOptions extends KnowledgeAssistOptions {
2037
2067
  customStyles?: WidgetCustomStyles;
2038
2068
  isLegacyKnowledgeAssist?: boolean;
2039
2069
  }
package/dist/index.d.ts CHANGED
@@ -998,6 +998,16 @@ type SendEventV2ArgumentMap = {
998
998
  isAgent: boolean;
999
999
  answer: Server.KnowledgeResponse['answer'];
1000
1000
  }>;
1001
+ 'knowledge assist question answered': EventV2<{
1002
+ question: string;
1003
+ answer: string;
1004
+ sources: {
1005
+ url?: string;
1006
+ name: string;
1007
+ }[];
1008
+ isFollowUpQuestion: boolean;
1009
+ isAutoInitiated: boolean;
1010
+ }>;
1001
1011
  'knowledge assist source viewed': EventV2<{
1002
1012
  question: string;
1003
1013
  sourceViewed: string;
@@ -1011,6 +1021,18 @@ type SendEventV2ArgumentMap = {
1011
1021
  finalText: string;
1012
1022
  assistant: string;
1013
1023
  }>;
1024
+ 'open search': EventV2<{
1025
+ via: 'ctrl+k' | 'autocomplete-overlay' | 'widget-shortcut';
1026
+ }>;
1027
+ 'open knowledge assistant': EventV2<{
1028
+ via: 'ctrl+k' | 'widget-shortcut' | 'search-command';
1029
+ }>;
1030
+ 'open my deepdesk': EventV2<{
1031
+ via: 'widget-shortcut';
1032
+ }>;
1033
+ 'trigger on demand assistant': EventV2<{
1034
+ assistantCode: string;
1035
+ }>;
1014
1036
  };
1015
1037
  /**
1016
1038
  * Request retry options
@@ -2028,12 +2050,20 @@ interface RenderOptions {
2028
2050
  }
2029
2051
  interface MountOptions extends Partial<Settings>, RenderOptions {
2030
2052
  }
2053
+ interface KnowledgeAssistOptions {
2054
+ initialQuestion?: string;
2055
+ emptyState?: {
2056
+ title: string;
2057
+ description: string;
2058
+ };
2059
+ }
2031
2060
  interface WidgetOptions {
2032
2061
  customStyles?: WidgetCustomStyles;
2033
2062
  showImages?: boolean;
2034
2063
  isEmbedded?: boolean;
2064
+ knowledgeAssist?: KnowledgeAssistOptions;
2035
2065
  }
2036
- interface KnowledgeAssistantWidgetOptions {
2066
+ interface KnowledgeAssistantWidgetOptions extends KnowledgeAssistOptions {
2037
2067
  customStyles?: WidgetCustomStyles;
2038
2068
  isLegacyKnowledgeAssist?: boolean;
2039
2069
  }