@deepdesk/deepdesk-sdk 15.1.1-beta.7 → 15.1.1-beta.8

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
@@ -217,7 +217,7 @@ declare enum SearchResultDefaultType {
217
217
  }
218
218
  type SearchResultType = string | SearchResultDefaultType;
219
219
  type SearchResult = SearchSuggestion;
220
- interface State$c {
220
+ interface State$b {
221
221
  list: Array<SearchResult>;
222
222
  page: string;
223
223
  fetchState: FetchState;
@@ -338,7 +338,6 @@ type AgentInfo = {
338
338
  agentTimeZone?: string;
339
339
  agentDefaultLocale?: string;
340
340
  };
341
- type KnowledgeAssistant = CamelCaseKeys<Server.KnowledgeAssistant>;
342
341
  type User = CamelCaseKeys<Server.User>;
343
342
  type SendMessageEventData$1 = CamelCaseKeys<Server.SendMessageEventData>;
344
343
  type Profile = CamelCaseKeys<Server.Profile>;
@@ -1179,12 +1178,12 @@ declare class DeepdeskAPI {
1179
1178
  }
1180
1179
 
1181
1180
  type StyleSuggestion = CamelCaseKeys<Server.StyleSuggestion>;
1182
- interface State$b {
1181
+ interface State$a {
1183
1182
  list: StyleSuggestion;
1184
1183
  fetchState: FetchState;
1185
1184
  }
1186
1185
 
1187
- type State$a = {
1186
+ type State$9 = {
1188
1187
  data: Profile | null;
1189
1188
  fetchState: FetchState;
1190
1189
  };
@@ -1302,7 +1301,7 @@ type MetricState = {
1302
1301
  textSuggestions: SuggestionMetrics[];
1303
1302
  cuts: any[];
1304
1303
  };
1305
- type State$9 = {
1304
+ type State$8 = {
1306
1305
  text: string;
1307
1306
  html: string | null;
1308
1307
  selection: SelectionRange;
@@ -1317,16 +1316,11 @@ type State$9 = {
1317
1316
  selectedSuggestionIndex: number;
1318
1317
  };
1319
1318
 
1320
- type State$8 = {
1319
+ type State$7 = {
1321
1320
  startTime: Date | null;
1322
1321
  stopTime: Date | null;
1323
1322
  };
1324
1323
 
1325
- type State$7 = {
1326
- data: KnowledgeAssistant | null;
1327
- fetchState: FetchState;
1328
- };
1329
-
1330
1324
  type State$6 = {
1331
1325
  token: string | null;
1332
1326
  interval: NodeJS.Timer | null;
@@ -1401,8 +1395,7 @@ declare const reducers: redux.Reducer<redux.CombinedState<{
1401
1395
  contentTypes: State$5;
1402
1396
  passwordlessToken: State$6;
1403
1397
  entities: State$1;
1404
- knowledgeAssistant: State$7;
1405
- handlingTime: State$8;
1398
+ handlingTime: State$7;
1406
1399
  info: {
1407
1400
  agentInfo?: AgentInfo;
1408
1401
  agentSettings: unknown;
@@ -1411,7 +1404,7 @@ declare const reducers: redux.Reducer<redux.CombinedState<{
1411
1404
  platformVariables?: VariableMapping;
1412
1405
  fetchState: FetchState;
1413
1406
  };
1414
- input: State$9;
1407
+ input: State$8;
1415
1408
  settings: {
1416
1409
  locale: Locale;
1417
1410
  deanonymize: boolean;
@@ -1444,9 +1437,9 @@ declare const reducers: redux.Reducer<redux.CombinedState<{
1444
1437
  enableFeedbackForm: boolean;
1445
1438
  hasKeyboardInput: boolean;
1446
1439
  };
1447
- profile: State$a;
1448
- search: State$c;
1449
- styleSuggestions: State$b;
1440
+ profile: State$9;
1441
+ search: State$b;
1442
+ styleSuggestions: State$a;
1450
1443
  ui: {
1451
1444
  showTabHint: boolean;
1452
1445
  inputHasFocus: boolean;
@@ -1463,8 +1456,7 @@ declare function createStore(config: StoreConfig): _reduxjs_toolkit_dist_configu
1463
1456
  contentTypes: State$5;
1464
1457
  passwordlessToken: State$6;
1465
1458
  entities: State$1;
1466
- knowledgeAssistant: State$7;
1467
- handlingTime: State$8;
1459
+ handlingTime: State$7;
1468
1460
  info: {
1469
1461
  agentInfo?: AgentInfo;
1470
1462
  agentSettings: unknown;
@@ -1473,7 +1465,7 @@ declare function createStore(config: StoreConfig): _reduxjs_toolkit_dist_configu
1473
1465
  platformVariables?: VariableMapping;
1474
1466
  fetchState: FetchState;
1475
1467
  };
1476
- input: State$9;
1468
+ input: State$8;
1477
1469
  settings: {
1478
1470
  locale: Locale;
1479
1471
  deanonymize: boolean;
@@ -1506,9 +1498,9 @@ declare function createStore(config: StoreConfig): _reduxjs_toolkit_dist_configu
1506
1498
  enableFeedbackForm: boolean;
1507
1499
  hasKeyboardInput: boolean;
1508
1500
  };
1509
- profile: State$a;
1510
- search: State$c;
1511
- styleSuggestions: State$b;
1501
+ profile: State$9;
1502
+ search: State$b;
1503
+ styleSuggestions: State$a;
1512
1504
  ui: {
1513
1505
  showTabHint: boolean;
1514
1506
  inputHasFocus: boolean;
@@ -1524,8 +1516,7 @@ declare function createStore(config: StoreConfig): _reduxjs_toolkit_dist_configu
1524
1516
  contentTypes: State$5;
1525
1517
  passwordlessToken: State$6;
1526
1518
  entities: State$1;
1527
- knowledgeAssistant: State$7;
1528
- handlingTime: State$8;
1519
+ handlingTime: State$7;
1529
1520
  info: {
1530
1521
  agentInfo?: AgentInfo;
1531
1522
  agentSettings: unknown;
@@ -1534,7 +1525,7 @@ declare function createStore(config: StoreConfig): _reduxjs_toolkit_dist_configu
1534
1525
  platformVariables?: VariableMapping;
1535
1526
  fetchState: FetchState;
1536
1527
  };
1537
- input: State$9;
1528
+ input: State$8;
1538
1529
  settings: {
1539
1530
  locale: Locale;
1540
1531
  deanonymize: boolean;
@@ -1567,9 +1558,9 @@ declare function createStore(config: StoreConfig): _reduxjs_toolkit_dist_configu
1567
1558
  enableFeedbackForm: boolean;
1568
1559
  hasKeyboardInput: boolean;
1569
1560
  };
1570
- profile: State$a;
1571
- search: State$c;
1572
- styleSuggestions: State$b;
1561
+ profile: State$9;
1562
+ search: State$b;
1563
+ styleSuggestions: State$a;
1573
1564
  ui: {
1574
1565
  showTabHint: boolean;
1575
1566
  inputHasFocus: boolean;
@@ -1841,15 +1832,14 @@ declare const styles$3: {
1841
1832
  type TextSuggestionStyles = typeof styles$3;
1842
1833
 
1843
1834
  declare const styles$2: {
1844
- readonly "footer": string;
1845
- readonly "footerShortcut": string;
1846
- readonly "link": string;
1847
- readonly "loginText": string;
1848
- readonly "root": string;
1849
- readonly "sectionList": string;
1850
- readonly "shortcut": string;
1851
- readonly "shortcutList": string;
1852
- readonly "stateText": string;
1835
+ readonly footer: string;
1836
+ readonly footerShortcut: string;
1837
+ readonly link: string;
1838
+ readonly loginText: string;
1839
+ readonly root: string;
1840
+ readonly shortcut: string;
1841
+ readonly shortcutList: string;
1842
+ readonly stateText: string;
1853
1843
  };
1854
1844
 
1855
1845
  type WidgetStyles = typeof styles$2;
@@ -2043,6 +2033,10 @@ interface WidgetOptions {
2043
2033
  showImages?: boolean;
2044
2034
  isEmbedded?: boolean;
2045
2035
  }
2036
+ interface KnowledgeAssistantWidgetOptions {
2037
+ customStyles?: WidgetCustomStyles;
2038
+ isLegacyKnowledgeAssist?: boolean;
2039
+ }
2046
2040
  declare class DeepdeskSDK {
2047
2041
  static version: string;
2048
2042
  static count: number;
@@ -2069,8 +2063,7 @@ declare class DeepdeskSDK {
2069
2063
  contentTypes: State$5;
2070
2064
  passwordlessToken: State$6;
2071
2065
  entities: State$1;
2072
- knowledgeAssistant: State$7;
2073
- handlingTime: State$8;
2066
+ handlingTime: State$7;
2074
2067
  info: {
2075
2068
  agentInfo?: AgentInfo;
2076
2069
  agentSettings: unknown;
@@ -2079,7 +2072,7 @@ declare class DeepdeskSDK {
2079
2072
  platformVariables?: VariableMapping;
2080
2073
  fetchState: FetchState;
2081
2074
  };
2082
- input: State$9;
2075
+ input: State$8;
2083
2076
  settings: {
2084
2077
  locale: Locale;
2085
2078
  deanonymize: boolean;
@@ -2112,9 +2105,9 @@ declare class DeepdeskSDK {
2112
2105
  enableFeedbackForm: boolean;
2113
2106
  hasKeyboardInput: boolean;
2114
2107
  };
2115
- profile: State$a;
2116
- search: State$c;
2117
- styleSuggestions: State$b;
2108
+ profile: State$9;
2109
+ search: State$b;
2110
+ styleSuggestions: State$a;
2118
2111
  ui: {
2119
2112
  showTabHint: boolean;
2120
2113
  inputHasFocus: boolean;
@@ -2322,6 +2315,9 @@ declare class DeepdeskSDK {
2322
2315
  */
2323
2316
  renderWidget(containerElement: HTMLElement, options?: WidgetOptions): void;
2324
2317
  unmountWidget(): void;
2318
+ renderKnowledgeAssistantWidget(assistantCode: string, containerElement: HTMLElement, options?: KnowledgeAssistantWidgetOptions): {
2319
+ unmount(): void;
2320
+ };
2325
2321
  private setupHandlingTime;
2326
2322
  private handleError;
2327
2323
  private loadProfileConfigPromise;
package/dist/index.d.ts CHANGED
@@ -217,7 +217,7 @@ declare enum SearchResultDefaultType {
217
217
  }
218
218
  type SearchResultType = string | SearchResultDefaultType;
219
219
  type SearchResult = SearchSuggestion;
220
- interface State$c {
220
+ interface State$b {
221
221
  list: Array<SearchResult>;
222
222
  page: string;
223
223
  fetchState: FetchState;
@@ -338,7 +338,6 @@ type AgentInfo = {
338
338
  agentTimeZone?: string;
339
339
  agentDefaultLocale?: string;
340
340
  };
341
- type KnowledgeAssistant = CamelCaseKeys<Server.KnowledgeAssistant>;
342
341
  type User = CamelCaseKeys<Server.User>;
343
342
  type SendMessageEventData$1 = CamelCaseKeys<Server.SendMessageEventData>;
344
343
  type Profile = CamelCaseKeys<Server.Profile>;
@@ -1179,12 +1178,12 @@ declare class DeepdeskAPI {
1179
1178
  }
1180
1179
 
1181
1180
  type StyleSuggestion = CamelCaseKeys<Server.StyleSuggestion>;
1182
- interface State$b {
1181
+ interface State$a {
1183
1182
  list: StyleSuggestion;
1184
1183
  fetchState: FetchState;
1185
1184
  }
1186
1185
 
1187
- type State$a = {
1186
+ type State$9 = {
1188
1187
  data: Profile | null;
1189
1188
  fetchState: FetchState;
1190
1189
  };
@@ -1302,7 +1301,7 @@ type MetricState = {
1302
1301
  textSuggestions: SuggestionMetrics[];
1303
1302
  cuts: any[];
1304
1303
  };
1305
- type State$9 = {
1304
+ type State$8 = {
1306
1305
  text: string;
1307
1306
  html: string | null;
1308
1307
  selection: SelectionRange;
@@ -1317,16 +1316,11 @@ type State$9 = {
1317
1316
  selectedSuggestionIndex: number;
1318
1317
  };
1319
1318
 
1320
- type State$8 = {
1319
+ type State$7 = {
1321
1320
  startTime: Date | null;
1322
1321
  stopTime: Date | null;
1323
1322
  };
1324
1323
 
1325
- type State$7 = {
1326
- data: KnowledgeAssistant | null;
1327
- fetchState: FetchState;
1328
- };
1329
-
1330
1324
  type State$6 = {
1331
1325
  token: string | null;
1332
1326
  interval: NodeJS.Timer | null;
@@ -1401,8 +1395,7 @@ declare const reducers: redux.Reducer<redux.CombinedState<{
1401
1395
  contentTypes: State$5;
1402
1396
  passwordlessToken: State$6;
1403
1397
  entities: State$1;
1404
- knowledgeAssistant: State$7;
1405
- handlingTime: State$8;
1398
+ handlingTime: State$7;
1406
1399
  info: {
1407
1400
  agentInfo?: AgentInfo;
1408
1401
  agentSettings: unknown;
@@ -1411,7 +1404,7 @@ declare const reducers: redux.Reducer<redux.CombinedState<{
1411
1404
  platformVariables?: VariableMapping;
1412
1405
  fetchState: FetchState;
1413
1406
  };
1414
- input: State$9;
1407
+ input: State$8;
1415
1408
  settings: {
1416
1409
  locale: Locale;
1417
1410
  deanonymize: boolean;
@@ -1444,9 +1437,9 @@ declare const reducers: redux.Reducer<redux.CombinedState<{
1444
1437
  enableFeedbackForm: boolean;
1445
1438
  hasKeyboardInput: boolean;
1446
1439
  };
1447
- profile: State$a;
1448
- search: State$c;
1449
- styleSuggestions: State$b;
1440
+ profile: State$9;
1441
+ search: State$b;
1442
+ styleSuggestions: State$a;
1450
1443
  ui: {
1451
1444
  showTabHint: boolean;
1452
1445
  inputHasFocus: boolean;
@@ -1463,8 +1456,7 @@ declare function createStore(config: StoreConfig): _reduxjs_toolkit_dist_configu
1463
1456
  contentTypes: State$5;
1464
1457
  passwordlessToken: State$6;
1465
1458
  entities: State$1;
1466
- knowledgeAssistant: State$7;
1467
- handlingTime: State$8;
1459
+ handlingTime: State$7;
1468
1460
  info: {
1469
1461
  agentInfo?: AgentInfo;
1470
1462
  agentSettings: unknown;
@@ -1473,7 +1465,7 @@ declare function createStore(config: StoreConfig): _reduxjs_toolkit_dist_configu
1473
1465
  platformVariables?: VariableMapping;
1474
1466
  fetchState: FetchState;
1475
1467
  };
1476
- input: State$9;
1468
+ input: State$8;
1477
1469
  settings: {
1478
1470
  locale: Locale;
1479
1471
  deanonymize: boolean;
@@ -1506,9 +1498,9 @@ declare function createStore(config: StoreConfig): _reduxjs_toolkit_dist_configu
1506
1498
  enableFeedbackForm: boolean;
1507
1499
  hasKeyboardInput: boolean;
1508
1500
  };
1509
- profile: State$a;
1510
- search: State$c;
1511
- styleSuggestions: State$b;
1501
+ profile: State$9;
1502
+ search: State$b;
1503
+ styleSuggestions: State$a;
1512
1504
  ui: {
1513
1505
  showTabHint: boolean;
1514
1506
  inputHasFocus: boolean;
@@ -1524,8 +1516,7 @@ declare function createStore(config: StoreConfig): _reduxjs_toolkit_dist_configu
1524
1516
  contentTypes: State$5;
1525
1517
  passwordlessToken: State$6;
1526
1518
  entities: State$1;
1527
- knowledgeAssistant: State$7;
1528
- handlingTime: State$8;
1519
+ handlingTime: State$7;
1529
1520
  info: {
1530
1521
  agentInfo?: AgentInfo;
1531
1522
  agentSettings: unknown;
@@ -1534,7 +1525,7 @@ declare function createStore(config: StoreConfig): _reduxjs_toolkit_dist_configu
1534
1525
  platformVariables?: VariableMapping;
1535
1526
  fetchState: FetchState;
1536
1527
  };
1537
- input: State$9;
1528
+ input: State$8;
1538
1529
  settings: {
1539
1530
  locale: Locale;
1540
1531
  deanonymize: boolean;
@@ -1567,9 +1558,9 @@ declare function createStore(config: StoreConfig): _reduxjs_toolkit_dist_configu
1567
1558
  enableFeedbackForm: boolean;
1568
1559
  hasKeyboardInput: boolean;
1569
1560
  };
1570
- profile: State$a;
1571
- search: State$c;
1572
- styleSuggestions: State$b;
1561
+ profile: State$9;
1562
+ search: State$b;
1563
+ styleSuggestions: State$a;
1573
1564
  ui: {
1574
1565
  showTabHint: boolean;
1575
1566
  inputHasFocus: boolean;
@@ -1841,15 +1832,14 @@ declare const styles$3: {
1841
1832
  type TextSuggestionStyles = typeof styles$3;
1842
1833
 
1843
1834
  declare const styles$2: {
1844
- readonly "footer": string;
1845
- readonly "footerShortcut": string;
1846
- readonly "link": string;
1847
- readonly "loginText": string;
1848
- readonly "root": string;
1849
- readonly "sectionList": string;
1850
- readonly "shortcut": string;
1851
- readonly "shortcutList": string;
1852
- readonly "stateText": string;
1835
+ readonly footer: string;
1836
+ readonly footerShortcut: string;
1837
+ readonly link: string;
1838
+ readonly loginText: string;
1839
+ readonly root: string;
1840
+ readonly shortcut: string;
1841
+ readonly shortcutList: string;
1842
+ readonly stateText: string;
1853
1843
  };
1854
1844
 
1855
1845
  type WidgetStyles = typeof styles$2;
@@ -2043,6 +2033,10 @@ interface WidgetOptions {
2043
2033
  showImages?: boolean;
2044
2034
  isEmbedded?: boolean;
2045
2035
  }
2036
+ interface KnowledgeAssistantWidgetOptions {
2037
+ customStyles?: WidgetCustomStyles;
2038
+ isLegacyKnowledgeAssist?: boolean;
2039
+ }
2046
2040
  declare class DeepdeskSDK {
2047
2041
  static version: string;
2048
2042
  static count: number;
@@ -2069,8 +2063,7 @@ declare class DeepdeskSDK {
2069
2063
  contentTypes: State$5;
2070
2064
  passwordlessToken: State$6;
2071
2065
  entities: State$1;
2072
- knowledgeAssistant: State$7;
2073
- handlingTime: State$8;
2066
+ handlingTime: State$7;
2074
2067
  info: {
2075
2068
  agentInfo?: AgentInfo;
2076
2069
  agentSettings: unknown;
@@ -2079,7 +2072,7 @@ declare class DeepdeskSDK {
2079
2072
  platformVariables?: VariableMapping;
2080
2073
  fetchState: FetchState;
2081
2074
  };
2082
- input: State$9;
2075
+ input: State$8;
2083
2076
  settings: {
2084
2077
  locale: Locale;
2085
2078
  deanonymize: boolean;
@@ -2112,9 +2105,9 @@ declare class DeepdeskSDK {
2112
2105
  enableFeedbackForm: boolean;
2113
2106
  hasKeyboardInput: boolean;
2114
2107
  };
2115
- profile: State$a;
2116
- search: State$c;
2117
- styleSuggestions: State$b;
2108
+ profile: State$9;
2109
+ search: State$b;
2110
+ styleSuggestions: State$a;
2118
2111
  ui: {
2119
2112
  showTabHint: boolean;
2120
2113
  inputHasFocus: boolean;
@@ -2322,6 +2315,9 @@ declare class DeepdeskSDK {
2322
2315
  */
2323
2316
  renderWidget(containerElement: HTMLElement, options?: WidgetOptions): void;
2324
2317
  unmountWidget(): void;
2318
+ renderKnowledgeAssistantWidget(assistantCode: string, containerElement: HTMLElement, options?: KnowledgeAssistantWidgetOptions): {
2319
+ unmount(): void;
2320
+ };
2325
2321
  private setupHandlingTime;
2326
2322
  private handleError;
2327
2323
  private loadProfileConfigPromise;