@deepdesk/deepdesk-sdk 14.3.0 → 14.3.1-beta.1

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
@@ -942,6 +942,10 @@ type SendEventV2ArgumentMap = {
942
942
  isAgent: boolean;
943
943
  answer: Server$1.KnowledgeResponse['answer'];
944
944
  }>;
945
+ 'knowledge assist source viewed': EventV2<{
946
+ question: string;
947
+ sourceViewed: string;
948
+ }>;
945
949
  };
946
950
  /**
947
951
  * Request retry options
@@ -1390,19 +1394,20 @@ declare class DeepdeskBrokerAPI {
1390
1394
  }
1391
1395
 
1392
1396
  type EvaluationOutput<T extends Server$1.ResponseFormat> = CamelCaseKeys<Server$1.EvaluationOutput<T>>;
1393
- type AssistantThreadItem = {
1397
+ type AssistantAnswerSource = {
1398
+ url?: string;
1399
+ name: string;
1400
+ };
1401
+ type AssistantInteraction = {
1394
1402
  question: string;
1395
1403
  answer: {
1396
1404
  answer: string;
1397
- sources?: {
1398
- url?: string;
1399
- name: string;
1400
- }[];
1405
+ sources?: AssistantAnswerSource[];
1401
1406
  };
1402
1407
  };
1403
1408
  type State$d = {
1404
1409
  cues: EvaluationOutput<'json-schema:cues'>;
1405
- threads: Record<number, AssistantThreadItem[]>;
1410
+ threads: Record<number, AssistantInteraction[]>;
1406
1411
  fetchState: FetchState;
1407
1412
  };
1408
1413
  type Transcript = Array<{
@@ -1728,52 +1733,52 @@ declare const styles$i: {
1728
1733
  type AutoflowStyles = typeof styles$i;
1729
1734
 
1730
1735
  declare const styles$h: {
1731
- readonly "root": string;
1732
- readonly "list": string;
1733
- readonly "listWrapper": string;
1734
- readonly "listHorizontal": string;
1735
- readonly "page": string;
1736
- readonly "search": string;
1737
- readonly "pageNav": string;
1738
- readonly "pageTitle": string;
1739
- readonly "pageBackButton": string;
1740
- readonly "listHeader": string;
1741
- readonly "listHeading": string;
1742
- readonly "listMoreButton": string;
1743
- readonly "listItem": string;
1744
- readonly "listItemContent": string;
1745
- readonly "listItemText": string;
1746
- readonly "listItemDescription": string;
1747
- readonly "listItemActions": string;
1748
- readonly "truncate": string;
1749
- readonly "lineClamp": string;
1750
- readonly "listItemTitle": string;
1751
- readonly "listItemAction": string;
1752
- readonly "listItemSelected": string;
1753
- readonly "sources": string;
1754
- readonly "sourcesTitle": string;
1755
- readonly "source": string;
1756
- readonly "sourceShowMore": string;
1757
- readonly "icon": string;
1758
- readonly "searchIcon": string;
1759
- readonly "searchInputWrapper": string;
1760
- readonly "searchInput": string;
1761
- readonly "select": string;
1762
- readonly "selectType": string;
1763
- readonly "selectWrapper": string;
1764
- readonly "image": string;
1765
- readonly "imageSrc": string;
1766
- readonly "imageSrcHidden": string;
1767
- readonly "imageSrcStatus": string;
1768
- readonly "imageTitle": string;
1769
- readonly "actions": string;
1770
- readonly "actionsWrapper": string;
1771
- readonly "actionsBar": string;
1772
- readonly "actionButton": string;
1773
- readonly "hasShortKeys": string;
1774
- readonly "actionShortcut": string;
1775
- readonly "actionShortcutFixKerning": string;
1776
- };
1736
+ readonly "root": string;
1737
+ readonly "list": string;
1738
+ readonly "listWrapper": string;
1739
+ readonly "listHorizontal": string;
1740
+ readonly "page": string;
1741
+ readonly "search": string;
1742
+ readonly "pageNav": string;
1743
+ readonly "pageTitle": string;
1744
+ readonly "pageBackButton": string;
1745
+ readonly "listHeader": string;
1746
+ readonly "listHeading": string;
1747
+ readonly "listMoreButton": string;
1748
+ readonly "listItem": string;
1749
+ readonly "listItemContent": string;
1750
+ readonly "listItemText": string;
1751
+ readonly "listItemDescription": string;
1752
+ readonly "listItemActions": string;
1753
+ readonly "truncate": string;
1754
+ readonly "lineClamp": string;
1755
+ readonly "listItemTitle": string;
1756
+ readonly "listItemAction": string;
1757
+ readonly "listItemSelected": string;
1758
+ readonly "sources": string;
1759
+ readonly "sourcesTitle": string;
1760
+ readonly "source": string;
1761
+ readonly "sourceShowMore": string;
1762
+ readonly "icon": string;
1763
+ readonly "searchIcon": string;
1764
+ readonly "searchInputWrapper": string;
1765
+ readonly "searchInput": string;
1766
+ readonly "select": string;
1767
+ readonly "selectType": string;
1768
+ readonly "selectWrapper": string;
1769
+ readonly "image": string;
1770
+ readonly "imageSrc": string;
1771
+ readonly "imageSrcHidden": string;
1772
+ readonly "imageSrcStatus": string;
1773
+ readonly "imageTitle": string;
1774
+ readonly "actions": string;
1775
+ readonly "actionsWrapper": string;
1776
+ readonly "actionsBar": string;
1777
+ readonly "actionButton": string;
1778
+ readonly "hasShortKeys": string;
1779
+ readonly "actionShortcut": string;
1780
+ readonly "actionShortcutFixKerning": string;
1781
+ };
1777
1782
 
1778
1783
  type CommandPaletteStyles = typeof styles$h;
1779
1784
 
package/dist/index.d.ts CHANGED
@@ -942,6 +942,10 @@ type SendEventV2ArgumentMap = {
942
942
  isAgent: boolean;
943
943
  answer: Server$1.KnowledgeResponse['answer'];
944
944
  }>;
945
+ 'knowledge assist source viewed': EventV2<{
946
+ question: string;
947
+ sourceViewed: string;
948
+ }>;
945
949
  };
946
950
  /**
947
951
  * Request retry options
@@ -1390,19 +1394,20 @@ declare class DeepdeskBrokerAPI {
1390
1394
  }
1391
1395
 
1392
1396
  type EvaluationOutput<T extends Server$1.ResponseFormat> = CamelCaseKeys<Server$1.EvaluationOutput<T>>;
1393
- type AssistantThreadItem = {
1397
+ type AssistantAnswerSource = {
1398
+ url?: string;
1399
+ name: string;
1400
+ };
1401
+ type AssistantInteraction = {
1394
1402
  question: string;
1395
1403
  answer: {
1396
1404
  answer: string;
1397
- sources?: {
1398
- url?: string;
1399
- name: string;
1400
- }[];
1405
+ sources?: AssistantAnswerSource[];
1401
1406
  };
1402
1407
  };
1403
1408
  type State$d = {
1404
1409
  cues: EvaluationOutput<'json-schema:cues'>;
1405
- threads: Record<number, AssistantThreadItem[]>;
1410
+ threads: Record<number, AssistantInteraction[]>;
1406
1411
  fetchState: FetchState;
1407
1412
  };
1408
1413
  type Transcript = Array<{
@@ -1728,52 +1733,52 @@ declare const styles$i: {
1728
1733
  type AutoflowStyles = typeof styles$i;
1729
1734
 
1730
1735
  declare const styles$h: {
1731
- readonly "root": string;
1732
- readonly "list": string;
1733
- readonly "listWrapper": string;
1734
- readonly "listHorizontal": string;
1735
- readonly "page": string;
1736
- readonly "search": string;
1737
- readonly "pageNav": string;
1738
- readonly "pageTitle": string;
1739
- readonly "pageBackButton": string;
1740
- readonly "listHeader": string;
1741
- readonly "listHeading": string;
1742
- readonly "listMoreButton": string;
1743
- readonly "listItem": string;
1744
- readonly "listItemContent": string;
1745
- readonly "listItemText": string;
1746
- readonly "listItemDescription": string;
1747
- readonly "listItemActions": string;
1748
- readonly "truncate": string;
1749
- readonly "lineClamp": string;
1750
- readonly "listItemTitle": string;
1751
- readonly "listItemAction": string;
1752
- readonly "listItemSelected": string;
1753
- readonly "sources": string;
1754
- readonly "sourcesTitle": string;
1755
- readonly "source": string;
1756
- readonly "sourceShowMore": string;
1757
- readonly "icon": string;
1758
- readonly "searchIcon": string;
1759
- readonly "searchInputWrapper": string;
1760
- readonly "searchInput": string;
1761
- readonly "select": string;
1762
- readonly "selectType": string;
1763
- readonly "selectWrapper": string;
1764
- readonly "image": string;
1765
- readonly "imageSrc": string;
1766
- readonly "imageSrcHidden": string;
1767
- readonly "imageSrcStatus": string;
1768
- readonly "imageTitle": string;
1769
- readonly "actions": string;
1770
- readonly "actionsWrapper": string;
1771
- readonly "actionsBar": string;
1772
- readonly "actionButton": string;
1773
- readonly "hasShortKeys": string;
1774
- readonly "actionShortcut": string;
1775
- readonly "actionShortcutFixKerning": string;
1776
- };
1736
+ readonly "root": string;
1737
+ readonly "list": string;
1738
+ readonly "listWrapper": string;
1739
+ readonly "listHorizontal": string;
1740
+ readonly "page": string;
1741
+ readonly "search": string;
1742
+ readonly "pageNav": string;
1743
+ readonly "pageTitle": string;
1744
+ readonly "pageBackButton": string;
1745
+ readonly "listHeader": string;
1746
+ readonly "listHeading": string;
1747
+ readonly "listMoreButton": string;
1748
+ readonly "listItem": string;
1749
+ readonly "listItemContent": string;
1750
+ readonly "listItemText": string;
1751
+ readonly "listItemDescription": string;
1752
+ readonly "listItemActions": string;
1753
+ readonly "truncate": string;
1754
+ readonly "lineClamp": string;
1755
+ readonly "listItemTitle": string;
1756
+ readonly "listItemAction": string;
1757
+ readonly "listItemSelected": string;
1758
+ readonly "sources": string;
1759
+ readonly "sourcesTitle": string;
1760
+ readonly "source": string;
1761
+ readonly "sourceShowMore": string;
1762
+ readonly "icon": string;
1763
+ readonly "searchIcon": string;
1764
+ readonly "searchInputWrapper": string;
1765
+ readonly "searchInput": string;
1766
+ readonly "select": string;
1767
+ readonly "selectType": string;
1768
+ readonly "selectWrapper": string;
1769
+ readonly "image": string;
1770
+ readonly "imageSrc": string;
1771
+ readonly "imageSrcHidden": string;
1772
+ readonly "imageSrcStatus": string;
1773
+ readonly "imageTitle": string;
1774
+ readonly "actions": string;
1775
+ readonly "actionsWrapper": string;
1776
+ readonly "actionsBar": string;
1777
+ readonly "actionButton": string;
1778
+ readonly "hasShortKeys": string;
1779
+ readonly "actionShortcut": string;
1780
+ readonly "actionShortcutFixKerning": string;
1781
+ };
1777
1782
 
1778
1783
  type CommandPaletteStyles = typeof styles$h;
1779
1784