@deepdesk/deepdesk-sdk 18.1.2-beta.0 → 18.1.2-beta.10

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
@@ -448,7 +448,7 @@ interface EvaluateInput {
448
448
  skipState?: boolean;
449
449
  expectFormat: Server.ResponseFormat;
450
450
  }
451
- type SummaryInput = Omit<EvaluateInput, 'assistantCode' | 'expectFormat'>;
451
+ type SummaryInput = Omit<EvaluateInput, 'expectFormat'>;
452
452
 
453
453
  type Fetch = typeof window.fetch;
454
454
  type HTTPClientOptions = {
@@ -1152,19 +1152,6 @@ declare class DeepdeskAPI {
1152
1152
  verifyLoginToken(token: string): Promise<{
1153
1153
  isLoggedIn: boolean;
1154
1154
  }>;
1155
- /**
1156
- * Temporarily restore getSummary for more controlled rollout
1157
- * @deprecated
1158
- */
1159
- getSummary(messages: Array<{
1160
- source: string;
1161
- text: string;
1162
- }>, options?: {
1163
- model?: string;
1164
- promptInstruction?: string;
1165
- agentId?: string;
1166
- externalConversationId?: string;
1167
- }): Promise<CamelCaseKeys<Server.Summary>>;
1168
1155
  evaluateAssistant<TOutput extends Server.ResponseFormat = 'text', TInput = Record<string, unknown>>(assistantCode: string, options?: {
1169
1156
  expectFormat: TOutput;
1170
1157
  threadId?: number;
@@ -1410,6 +1397,7 @@ declare const reducers: redux.Reducer<{
1410
1397
  visible: boolean;
1411
1398
  insertLink: boolean;
1412
1399
  inlineSuggestions: boolean;
1400
+ suggestionsPlacement: "inline" | "above" | "below";
1413
1401
  floatingMenu: boolean;
1414
1402
  detectSubmit: boolean;
1415
1403
  automaticHandlingTime: boolean;
@@ -1470,6 +1458,7 @@ declare const reducers: redux.Reducer<{
1470
1458
  visible: boolean;
1471
1459
  insertLink: boolean;
1472
1460
  inlineSuggestions: boolean;
1461
+ suggestionsPlacement: "inline" | "above" | "below";
1473
1462
  floatingMenu: boolean;
1474
1463
  detectSubmit: boolean;
1475
1464
  automaticHandlingTime: boolean;
@@ -1531,6 +1520,7 @@ declare function createStore(config: StoreConfig): _reduxjs_toolkit.EnhancedStor
1531
1520
  visible: boolean;
1532
1521
  insertLink: boolean;
1533
1522
  inlineSuggestions: boolean;
1523
+ suggestionsPlacement: "inline" | "above" | "below";
1534
1524
  floatingMenu: boolean;
1535
1525
  detectSubmit: boolean;
1536
1526
  automaticHandlingTime: boolean;
@@ -1914,6 +1904,7 @@ type State = {
1914
1904
  visible: boolean;
1915
1905
  insertLink: boolean;
1916
1906
  inlineSuggestions: boolean;
1907
+ suggestionsPlacement: 'inline' | 'above' | 'below';
1917
1908
  floatingMenu: boolean;
1918
1909
  detectSubmit: boolean;
1919
1910
  automaticHandlingTime: boolean;
@@ -2055,6 +2046,7 @@ declare class DeepdeskSDK {
2055
2046
  private disposeHandlers;
2056
2047
  private inlineSuggestions;
2057
2048
  private aboveSuggestions;
2049
+ private belowSuggestions;
2058
2050
  private floatingMenu;
2059
2051
  private widgetElement;
2060
2052
  private widgetRoot;
@@ -2137,6 +2129,7 @@ declare class DeepdeskSDK {
2137
2129
  visible: boolean;
2138
2130
  insertLink: boolean;
2139
2131
  inlineSuggestions: boolean;
2132
+ suggestionsPlacement: "inline" | "above" | "below";
2140
2133
  floatingMenu: boolean;
2141
2134
  detectSubmit: boolean;
2142
2135
  automaticHandlingTime: boolean;
@@ -2181,6 +2174,7 @@ declare class DeepdeskSDK {
2181
2174
  visible: boolean;
2182
2175
  insertLink: boolean;
2183
2176
  inlineSuggestions: boolean;
2177
+ suggestionsPlacement: "inline" | "above" | "below";
2184
2178
  floatingMenu: boolean;
2185
2179
  detectSubmit: boolean;
2186
2180
  automaticHandlingTime: boolean;
@@ -2900,9 +2894,8 @@ declare class DeepdeskSDK {
2900
2894
  * });
2901
2895
  * ```
2902
2896
  *
2903
- * @throws {Error} If `setConversationQuery()` has not been called
2904
2897
  */
2905
- getSummary(args?: SummaryInput): Promise<string | null>;
2898
+ getSummary(args?: Omit<SummaryInput, 'assistantCode'>): Promise<string | null>;
2906
2899
  private handleKeyDown;
2907
2900
  private handleAfterSendMessage;
2908
2901
  /**
@@ -3259,7 +3252,7 @@ declare class DeepdeskSDK {
3259
3252
  dispose(): void;
3260
3253
  private renderSuggestions;
3261
3254
  private renderInlineSuggestions;
3262
- private renderAboveSuggestions;
3255
+ private renderAboveOrBelowSuggestions;
3263
3256
  private renderFloatingMenu;
3264
3257
  private renderOverlays;
3265
3258
  /**
@@ -3524,6 +3517,7 @@ type OverlayOptions = {
3524
3517
  closestScrollElement?: HTMLElement;
3525
3518
  overlayContainer?: HTMLElement;
3526
3519
  position?: 'fixed' | 'absolute';
3520
+ placement?: 'above' | 'below';
3527
3521
  onHide?(): void;
3528
3522
  onShow?(): void;
3529
3523
  onMoveStart?(): void;
package/dist/index.d.ts CHANGED
@@ -448,7 +448,7 @@ interface EvaluateInput {
448
448
  skipState?: boolean;
449
449
  expectFormat: Server.ResponseFormat;
450
450
  }
451
- type SummaryInput = Omit<EvaluateInput, 'assistantCode' | 'expectFormat'>;
451
+ type SummaryInput = Omit<EvaluateInput, 'expectFormat'>;
452
452
 
453
453
  type Fetch = typeof window.fetch;
454
454
  type HTTPClientOptions = {
@@ -1152,19 +1152,6 @@ declare class DeepdeskAPI {
1152
1152
  verifyLoginToken(token: string): Promise<{
1153
1153
  isLoggedIn: boolean;
1154
1154
  }>;
1155
- /**
1156
- * Temporarily restore getSummary for more controlled rollout
1157
- * @deprecated
1158
- */
1159
- getSummary(messages: Array<{
1160
- source: string;
1161
- text: string;
1162
- }>, options?: {
1163
- model?: string;
1164
- promptInstruction?: string;
1165
- agentId?: string;
1166
- externalConversationId?: string;
1167
- }): Promise<CamelCaseKeys<Server.Summary>>;
1168
1155
  evaluateAssistant<TOutput extends Server.ResponseFormat = 'text', TInput = Record<string, unknown>>(assistantCode: string, options?: {
1169
1156
  expectFormat: TOutput;
1170
1157
  threadId?: number;
@@ -1410,6 +1397,7 @@ declare const reducers: redux.Reducer<{
1410
1397
  visible: boolean;
1411
1398
  insertLink: boolean;
1412
1399
  inlineSuggestions: boolean;
1400
+ suggestionsPlacement: "inline" | "above" | "below";
1413
1401
  floatingMenu: boolean;
1414
1402
  detectSubmit: boolean;
1415
1403
  automaticHandlingTime: boolean;
@@ -1470,6 +1458,7 @@ declare const reducers: redux.Reducer<{
1470
1458
  visible: boolean;
1471
1459
  insertLink: boolean;
1472
1460
  inlineSuggestions: boolean;
1461
+ suggestionsPlacement: "inline" | "above" | "below";
1473
1462
  floatingMenu: boolean;
1474
1463
  detectSubmit: boolean;
1475
1464
  automaticHandlingTime: boolean;
@@ -1531,6 +1520,7 @@ declare function createStore(config: StoreConfig): _reduxjs_toolkit.EnhancedStor
1531
1520
  visible: boolean;
1532
1521
  insertLink: boolean;
1533
1522
  inlineSuggestions: boolean;
1523
+ suggestionsPlacement: "inline" | "above" | "below";
1534
1524
  floatingMenu: boolean;
1535
1525
  detectSubmit: boolean;
1536
1526
  automaticHandlingTime: boolean;
@@ -1914,6 +1904,7 @@ type State = {
1914
1904
  visible: boolean;
1915
1905
  insertLink: boolean;
1916
1906
  inlineSuggestions: boolean;
1907
+ suggestionsPlacement: 'inline' | 'above' | 'below';
1917
1908
  floatingMenu: boolean;
1918
1909
  detectSubmit: boolean;
1919
1910
  automaticHandlingTime: boolean;
@@ -2055,6 +2046,7 @@ declare class DeepdeskSDK {
2055
2046
  private disposeHandlers;
2056
2047
  private inlineSuggestions;
2057
2048
  private aboveSuggestions;
2049
+ private belowSuggestions;
2058
2050
  private floatingMenu;
2059
2051
  private widgetElement;
2060
2052
  private widgetRoot;
@@ -2137,6 +2129,7 @@ declare class DeepdeskSDK {
2137
2129
  visible: boolean;
2138
2130
  insertLink: boolean;
2139
2131
  inlineSuggestions: boolean;
2132
+ suggestionsPlacement: "inline" | "above" | "below";
2140
2133
  floatingMenu: boolean;
2141
2134
  detectSubmit: boolean;
2142
2135
  automaticHandlingTime: boolean;
@@ -2181,6 +2174,7 @@ declare class DeepdeskSDK {
2181
2174
  visible: boolean;
2182
2175
  insertLink: boolean;
2183
2176
  inlineSuggestions: boolean;
2177
+ suggestionsPlacement: "inline" | "above" | "below";
2184
2178
  floatingMenu: boolean;
2185
2179
  detectSubmit: boolean;
2186
2180
  automaticHandlingTime: boolean;
@@ -2900,9 +2894,8 @@ declare class DeepdeskSDK {
2900
2894
  * });
2901
2895
  * ```
2902
2896
  *
2903
- * @throws {Error} If `setConversationQuery()` has not been called
2904
2897
  */
2905
- getSummary(args?: SummaryInput): Promise<string | null>;
2898
+ getSummary(args?: Omit<SummaryInput, 'assistantCode'>): Promise<string | null>;
2906
2899
  private handleKeyDown;
2907
2900
  private handleAfterSendMessage;
2908
2901
  /**
@@ -3259,7 +3252,7 @@ declare class DeepdeskSDK {
3259
3252
  dispose(): void;
3260
3253
  private renderSuggestions;
3261
3254
  private renderInlineSuggestions;
3262
- private renderAboveSuggestions;
3255
+ private renderAboveOrBelowSuggestions;
3263
3256
  private renderFloatingMenu;
3264
3257
  private renderOverlays;
3265
3258
  /**
@@ -3524,6 +3517,7 @@ type OverlayOptions = {
3524
3517
  closestScrollElement?: HTMLElement;
3525
3518
  overlayContainer?: HTMLElement;
3526
3519
  position?: 'fixed' | 'absolute';
3520
+ placement?: 'above' | 'below';
3527
3521
  onHide?(): void;
3528
3522
  onShow?(): void;
3529
3523
  onMoveStart?(): void;