@deepdesk/deepdesk-sdk 18.1.2-beta.1 → 18.1.2-beta.11
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 +8 -8
- package/dist/index.d.mts +11 -30
- package/dist/index.d.ts +11 -30
- package/dist/index.esm.js +8 -8
- package/dist/index.iife.js +36 -36
- package/package.json +1 -1
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, '
|
|
451
|
+
type SummaryInput = Omit<EvaluateInput, 'expectFormat'>;
|
|
452
452
|
|
|
453
453
|
type Fetch = typeof window.fetch;
|
|
454
454
|
type HTTPClientOptions = {
|
|
@@ -971,10 +971,6 @@ type SendEventArgumentMap = {
|
|
|
971
971
|
'entities found': Event$1<{
|
|
972
972
|
entities: Entity[];
|
|
973
973
|
}>;
|
|
974
|
-
'conversation summarized': Event$1<{
|
|
975
|
-
summary: string;
|
|
976
|
-
assistant?: string;
|
|
977
|
-
}>;
|
|
978
974
|
'style suggested': Event$1<{
|
|
979
975
|
keywordMatches: {
|
|
980
976
|
keyword: string;
|
|
@@ -1019,15 +1015,6 @@ type SendEventArgumentMap = {
|
|
|
1019
1015
|
threadId?: number;
|
|
1020
1016
|
assistantCode: string;
|
|
1021
1017
|
}>;
|
|
1022
|
-
'summary feedback': Event$1<{
|
|
1023
|
-
summary: string;
|
|
1024
|
-
rating: 'up' | 'down';
|
|
1025
|
-
}>;
|
|
1026
|
-
'summary copied to clipboard': Event$1<{
|
|
1027
|
-
originalText: string;
|
|
1028
|
-
finalText: string;
|
|
1029
|
-
assistant: string;
|
|
1030
|
-
}>;
|
|
1031
1018
|
'open search': Event$1<{
|
|
1032
1019
|
via: 'ctrl+k' | 'autocomplete-overlay' | 'widget-shortcut';
|
|
1033
1020
|
}>;
|
|
@@ -1152,19 +1139,6 @@ declare class DeepdeskAPI {
|
|
|
1152
1139
|
verifyLoginToken(token: string): Promise<{
|
|
1153
1140
|
isLoggedIn: boolean;
|
|
1154
1141
|
}>;
|
|
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
1142
|
evaluateAssistant<TOutput extends Server.ResponseFormat = 'text', TInput = Record<string, unknown>>(assistantCode: string, options?: {
|
|
1169
1143
|
expectFormat: TOutput;
|
|
1170
1144
|
threadId?: number;
|
|
@@ -1410,6 +1384,7 @@ declare const reducers: redux.Reducer<{
|
|
|
1410
1384
|
visible: boolean;
|
|
1411
1385
|
insertLink: boolean;
|
|
1412
1386
|
inlineSuggestions: boolean;
|
|
1387
|
+
suggestionsPlacement: "inline" | "above" | "below";
|
|
1413
1388
|
floatingMenu: boolean;
|
|
1414
1389
|
detectSubmit: boolean;
|
|
1415
1390
|
automaticHandlingTime: boolean;
|
|
@@ -1470,6 +1445,7 @@ declare const reducers: redux.Reducer<{
|
|
|
1470
1445
|
visible: boolean;
|
|
1471
1446
|
insertLink: boolean;
|
|
1472
1447
|
inlineSuggestions: boolean;
|
|
1448
|
+
suggestionsPlacement: "inline" | "above" | "below";
|
|
1473
1449
|
floatingMenu: boolean;
|
|
1474
1450
|
detectSubmit: boolean;
|
|
1475
1451
|
automaticHandlingTime: boolean;
|
|
@@ -1531,6 +1507,7 @@ declare function createStore(config: StoreConfig): _reduxjs_toolkit.EnhancedStor
|
|
|
1531
1507
|
visible: boolean;
|
|
1532
1508
|
insertLink: boolean;
|
|
1533
1509
|
inlineSuggestions: boolean;
|
|
1510
|
+
suggestionsPlacement: "inline" | "above" | "below";
|
|
1534
1511
|
floatingMenu: boolean;
|
|
1535
1512
|
detectSubmit: boolean;
|
|
1536
1513
|
automaticHandlingTime: boolean;
|
|
@@ -1914,6 +1891,7 @@ type State = {
|
|
|
1914
1891
|
visible: boolean;
|
|
1915
1892
|
insertLink: boolean;
|
|
1916
1893
|
inlineSuggestions: boolean;
|
|
1894
|
+
suggestionsPlacement: 'inline' | 'above' | 'below';
|
|
1917
1895
|
floatingMenu: boolean;
|
|
1918
1896
|
detectSubmit: boolean;
|
|
1919
1897
|
automaticHandlingTime: boolean;
|
|
@@ -2055,6 +2033,7 @@ declare class DeepdeskSDK {
|
|
|
2055
2033
|
private disposeHandlers;
|
|
2056
2034
|
private inlineSuggestions;
|
|
2057
2035
|
private aboveSuggestions;
|
|
2036
|
+
private belowSuggestions;
|
|
2058
2037
|
private floatingMenu;
|
|
2059
2038
|
private widgetElement;
|
|
2060
2039
|
private widgetRoot;
|
|
@@ -2137,6 +2116,7 @@ declare class DeepdeskSDK {
|
|
|
2137
2116
|
visible: boolean;
|
|
2138
2117
|
insertLink: boolean;
|
|
2139
2118
|
inlineSuggestions: boolean;
|
|
2119
|
+
suggestionsPlacement: "inline" | "above" | "below";
|
|
2140
2120
|
floatingMenu: boolean;
|
|
2141
2121
|
detectSubmit: boolean;
|
|
2142
2122
|
automaticHandlingTime: boolean;
|
|
@@ -2181,6 +2161,7 @@ declare class DeepdeskSDK {
|
|
|
2181
2161
|
visible: boolean;
|
|
2182
2162
|
insertLink: boolean;
|
|
2183
2163
|
inlineSuggestions: boolean;
|
|
2164
|
+
suggestionsPlacement: "inline" | "above" | "below";
|
|
2184
2165
|
floatingMenu: boolean;
|
|
2185
2166
|
detectSubmit: boolean;
|
|
2186
2167
|
automaticHandlingTime: boolean;
|
|
@@ -2900,9 +2881,8 @@ declare class DeepdeskSDK {
|
|
|
2900
2881
|
* });
|
|
2901
2882
|
* ```
|
|
2902
2883
|
*
|
|
2903
|
-
* @throws {Error} If `setConversationQuery()` has not been called
|
|
2904
2884
|
*/
|
|
2905
|
-
getSummary(args?: SummaryInput): Promise<string | null>;
|
|
2885
|
+
getSummary(args?: Omit<SummaryInput, 'assistantCode'>): Promise<string | null>;
|
|
2906
2886
|
private handleKeyDown;
|
|
2907
2887
|
private handleAfterSendMessage;
|
|
2908
2888
|
/**
|
|
@@ -3259,7 +3239,7 @@ declare class DeepdeskSDK {
|
|
|
3259
3239
|
dispose(): void;
|
|
3260
3240
|
private renderSuggestions;
|
|
3261
3241
|
private renderInlineSuggestions;
|
|
3262
|
-
private
|
|
3242
|
+
private renderAboveOrBelowSuggestions;
|
|
3263
3243
|
private renderFloatingMenu;
|
|
3264
3244
|
private renderOverlays;
|
|
3265
3245
|
/**
|
|
@@ -3524,6 +3504,7 @@ type OverlayOptions = {
|
|
|
3524
3504
|
closestScrollElement?: HTMLElement;
|
|
3525
3505
|
overlayContainer?: HTMLElement;
|
|
3526
3506
|
position?: 'fixed' | 'absolute';
|
|
3507
|
+
placement?: 'above' | 'below';
|
|
3527
3508
|
onHide?(): void;
|
|
3528
3509
|
onShow?(): void;
|
|
3529
3510
|
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, '
|
|
451
|
+
type SummaryInput = Omit<EvaluateInput, 'expectFormat'>;
|
|
452
452
|
|
|
453
453
|
type Fetch = typeof window.fetch;
|
|
454
454
|
type HTTPClientOptions = {
|
|
@@ -971,10 +971,6 @@ type SendEventArgumentMap = {
|
|
|
971
971
|
'entities found': Event$1<{
|
|
972
972
|
entities: Entity[];
|
|
973
973
|
}>;
|
|
974
|
-
'conversation summarized': Event$1<{
|
|
975
|
-
summary: string;
|
|
976
|
-
assistant?: string;
|
|
977
|
-
}>;
|
|
978
974
|
'style suggested': Event$1<{
|
|
979
975
|
keywordMatches: {
|
|
980
976
|
keyword: string;
|
|
@@ -1019,15 +1015,6 @@ type SendEventArgumentMap = {
|
|
|
1019
1015
|
threadId?: number;
|
|
1020
1016
|
assistantCode: string;
|
|
1021
1017
|
}>;
|
|
1022
|
-
'summary feedback': Event$1<{
|
|
1023
|
-
summary: string;
|
|
1024
|
-
rating: 'up' | 'down';
|
|
1025
|
-
}>;
|
|
1026
|
-
'summary copied to clipboard': Event$1<{
|
|
1027
|
-
originalText: string;
|
|
1028
|
-
finalText: string;
|
|
1029
|
-
assistant: string;
|
|
1030
|
-
}>;
|
|
1031
1018
|
'open search': Event$1<{
|
|
1032
1019
|
via: 'ctrl+k' | 'autocomplete-overlay' | 'widget-shortcut';
|
|
1033
1020
|
}>;
|
|
@@ -1152,19 +1139,6 @@ declare class DeepdeskAPI {
|
|
|
1152
1139
|
verifyLoginToken(token: string): Promise<{
|
|
1153
1140
|
isLoggedIn: boolean;
|
|
1154
1141
|
}>;
|
|
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
1142
|
evaluateAssistant<TOutput extends Server.ResponseFormat = 'text', TInput = Record<string, unknown>>(assistantCode: string, options?: {
|
|
1169
1143
|
expectFormat: TOutput;
|
|
1170
1144
|
threadId?: number;
|
|
@@ -1410,6 +1384,7 @@ declare const reducers: redux.Reducer<{
|
|
|
1410
1384
|
visible: boolean;
|
|
1411
1385
|
insertLink: boolean;
|
|
1412
1386
|
inlineSuggestions: boolean;
|
|
1387
|
+
suggestionsPlacement: "inline" | "above" | "below";
|
|
1413
1388
|
floatingMenu: boolean;
|
|
1414
1389
|
detectSubmit: boolean;
|
|
1415
1390
|
automaticHandlingTime: boolean;
|
|
@@ -1470,6 +1445,7 @@ declare const reducers: redux.Reducer<{
|
|
|
1470
1445
|
visible: boolean;
|
|
1471
1446
|
insertLink: boolean;
|
|
1472
1447
|
inlineSuggestions: boolean;
|
|
1448
|
+
suggestionsPlacement: "inline" | "above" | "below";
|
|
1473
1449
|
floatingMenu: boolean;
|
|
1474
1450
|
detectSubmit: boolean;
|
|
1475
1451
|
automaticHandlingTime: boolean;
|
|
@@ -1531,6 +1507,7 @@ declare function createStore(config: StoreConfig): _reduxjs_toolkit.EnhancedStor
|
|
|
1531
1507
|
visible: boolean;
|
|
1532
1508
|
insertLink: boolean;
|
|
1533
1509
|
inlineSuggestions: boolean;
|
|
1510
|
+
suggestionsPlacement: "inline" | "above" | "below";
|
|
1534
1511
|
floatingMenu: boolean;
|
|
1535
1512
|
detectSubmit: boolean;
|
|
1536
1513
|
automaticHandlingTime: boolean;
|
|
@@ -1914,6 +1891,7 @@ type State = {
|
|
|
1914
1891
|
visible: boolean;
|
|
1915
1892
|
insertLink: boolean;
|
|
1916
1893
|
inlineSuggestions: boolean;
|
|
1894
|
+
suggestionsPlacement: 'inline' | 'above' | 'below';
|
|
1917
1895
|
floatingMenu: boolean;
|
|
1918
1896
|
detectSubmit: boolean;
|
|
1919
1897
|
automaticHandlingTime: boolean;
|
|
@@ -2055,6 +2033,7 @@ declare class DeepdeskSDK {
|
|
|
2055
2033
|
private disposeHandlers;
|
|
2056
2034
|
private inlineSuggestions;
|
|
2057
2035
|
private aboveSuggestions;
|
|
2036
|
+
private belowSuggestions;
|
|
2058
2037
|
private floatingMenu;
|
|
2059
2038
|
private widgetElement;
|
|
2060
2039
|
private widgetRoot;
|
|
@@ -2137,6 +2116,7 @@ declare class DeepdeskSDK {
|
|
|
2137
2116
|
visible: boolean;
|
|
2138
2117
|
insertLink: boolean;
|
|
2139
2118
|
inlineSuggestions: boolean;
|
|
2119
|
+
suggestionsPlacement: "inline" | "above" | "below";
|
|
2140
2120
|
floatingMenu: boolean;
|
|
2141
2121
|
detectSubmit: boolean;
|
|
2142
2122
|
automaticHandlingTime: boolean;
|
|
@@ -2181,6 +2161,7 @@ declare class DeepdeskSDK {
|
|
|
2181
2161
|
visible: boolean;
|
|
2182
2162
|
insertLink: boolean;
|
|
2183
2163
|
inlineSuggestions: boolean;
|
|
2164
|
+
suggestionsPlacement: "inline" | "above" | "below";
|
|
2184
2165
|
floatingMenu: boolean;
|
|
2185
2166
|
detectSubmit: boolean;
|
|
2186
2167
|
automaticHandlingTime: boolean;
|
|
@@ -2900,9 +2881,8 @@ declare class DeepdeskSDK {
|
|
|
2900
2881
|
* });
|
|
2901
2882
|
* ```
|
|
2902
2883
|
*
|
|
2903
|
-
* @throws {Error} If `setConversationQuery()` has not been called
|
|
2904
2884
|
*/
|
|
2905
|
-
getSummary(args?: SummaryInput): Promise<string | null>;
|
|
2885
|
+
getSummary(args?: Omit<SummaryInput, 'assistantCode'>): Promise<string | null>;
|
|
2906
2886
|
private handleKeyDown;
|
|
2907
2887
|
private handleAfterSendMessage;
|
|
2908
2888
|
/**
|
|
@@ -3259,7 +3239,7 @@ declare class DeepdeskSDK {
|
|
|
3259
3239
|
dispose(): void;
|
|
3260
3240
|
private renderSuggestions;
|
|
3261
3241
|
private renderInlineSuggestions;
|
|
3262
|
-
private
|
|
3242
|
+
private renderAboveOrBelowSuggestions;
|
|
3263
3243
|
private renderFloatingMenu;
|
|
3264
3244
|
private renderOverlays;
|
|
3265
3245
|
/**
|
|
@@ -3524,6 +3504,7 @@ type OverlayOptions = {
|
|
|
3524
3504
|
closestScrollElement?: HTMLElement;
|
|
3525
3505
|
overlayContainer?: HTMLElement;
|
|
3526
3506
|
position?: 'fixed' | 'absolute';
|
|
3507
|
+
placement?: 'above' | 'below';
|
|
3527
3508
|
onHide?(): void;
|
|
3528
3509
|
onShow?(): void;
|
|
3529
3510
|
onMoveStart?(): void;
|