@deepdesk/deepdesk-sdk 15.1.1-beta.0 → 15.1.1-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/dialogs.css +1 -1
- package/dist/index.cjs.js +8 -8
- package/dist/index.d.mts +618 -551
- package/dist/index.d.ts +618 -551
- package/dist/index.esm.js +8 -8
- package/dist/index.iife.js +85 -23
- package/package.json +8 -8
- package/styles/index.js +1 -1
- package/styles.css +1 -1
- package/widget.css +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import React, { FC, HTMLAttributes, ForwardRefExoticComponent, RefAttributes, ReactNode, SyntheticEvent } from 'react';
|
|
2
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
3
|
import * as redux from 'redux';
|
|
3
4
|
import { Unsubscribe } from 'redux';
|
|
4
5
|
import * as _reduxjs_toolkit_dist_configureStore from '@reduxjs/toolkit/dist/configureStore';
|
|
5
6
|
import * as _reduxjs_toolkit from '@reduxjs/toolkit';
|
|
6
7
|
import { Middleware } from '@reduxjs/toolkit';
|
|
7
8
|
|
|
8
|
-
declare const styles$
|
|
9
|
-
readonly "root": string;
|
|
10
|
-
readonly "imageWrapper": string;
|
|
11
|
-
readonly "image": string;
|
|
9
|
+
declare const styles$t: {
|
|
12
10
|
readonly "content": string;
|
|
13
|
-
readonly "title": string;
|
|
14
11
|
readonly "contentIsCropped": string;
|
|
12
|
+
readonly "image": string;
|
|
13
|
+
readonly "imageWrapper": string;
|
|
15
14
|
readonly "lineClamp": string;
|
|
15
|
+
readonly "root": string;
|
|
16
|
+
readonly "title": string;
|
|
16
17
|
};
|
|
17
18
|
|
|
18
19
|
type ImageProps = {
|
|
@@ -34,10 +35,10 @@ interface CardComposition {
|
|
|
34
35
|
Content: FC<ContentProps>;
|
|
35
36
|
Title: FC<TitleProps>;
|
|
36
37
|
}
|
|
37
|
-
type CardStyles = typeof styles$
|
|
38
|
+
type CardStyles = typeof styles$t;
|
|
38
39
|
declare const Card: FC & CardComposition;
|
|
39
40
|
|
|
40
|
-
declare const styles$
|
|
41
|
+
declare const styles$s: {
|
|
41
42
|
readonly "root": string;
|
|
42
43
|
};
|
|
43
44
|
|
|
@@ -52,18 +53,18 @@ type Props$6 = HTMLAttributes<HTMLSpanElement> & {
|
|
|
52
53
|
className?: string;
|
|
53
54
|
keyCode: KeyboardHintKey;
|
|
54
55
|
};
|
|
55
|
-
type KeyboardHintStyles = typeof styles$
|
|
56
|
+
type KeyboardHintStyles = typeof styles$s;
|
|
56
57
|
declare const KeyboardHint: React.FC<Props$6>;
|
|
57
58
|
|
|
58
|
-
declare const styles$
|
|
59
|
+
declare const styles$r: {
|
|
59
60
|
readonly "root": string;
|
|
60
61
|
};
|
|
61
62
|
|
|
62
63
|
type Props$5 = HTMLAttributes<HTMLSpanElement>;
|
|
63
|
-
type LabelStyles = typeof styles$
|
|
64
|
+
type LabelStyles = typeof styles$r;
|
|
64
65
|
declare const Label: React.FC<Props$5>;
|
|
65
66
|
|
|
66
|
-
declare const styles$
|
|
67
|
+
declare const styles$q: {
|
|
67
68
|
readonly "root": string;
|
|
68
69
|
readonly "subTitleContainer": string;
|
|
69
70
|
readonly "subtitle": string;
|
|
@@ -74,10 +75,10 @@ type Props$4 = HTMLAttributes<HTMLElement> & {
|
|
|
74
75
|
type: string;
|
|
75
76
|
title?: string;
|
|
76
77
|
};
|
|
77
|
-
type SectionStyles = typeof styles$
|
|
78
|
+
type SectionStyles = typeof styles$q;
|
|
78
79
|
declare const Section: React.FC<Props$4>;
|
|
79
80
|
|
|
80
|
-
declare const styles$
|
|
81
|
+
declare const styles$p: {
|
|
81
82
|
readonly "root": string;
|
|
82
83
|
};
|
|
83
84
|
|
|
@@ -85,29 +86,29 @@ type Props$3 = {
|
|
|
85
86
|
className?: string;
|
|
86
87
|
children?: React.ReactNode;
|
|
87
88
|
};
|
|
88
|
-
type SectionListStyles = typeof styles$
|
|
89
|
+
type SectionListStyles = typeof styles$p;
|
|
89
90
|
declare const SectionList: React.FC<Props$3>;
|
|
90
91
|
|
|
91
|
-
declare const styles$
|
|
92
|
-
readonly "
|
|
93
|
-
readonly "
|
|
94
|
-
readonly "
|
|
95
|
-
readonly "isSelected": string;
|
|
92
|
+
declare const styles$o: {
|
|
93
|
+
readonly "actionButton": string;
|
|
94
|
+
readonly "actionButtonIsDisabled": string;
|
|
95
|
+
readonly "actionButtonIsPrimary": string;
|
|
96
96
|
readonly "actions": string;
|
|
97
97
|
readonly "actionsIsFixed": string;
|
|
98
|
-
readonly "
|
|
99
|
-
readonly "
|
|
98
|
+
readonly "button": string;
|
|
99
|
+
readonly "buttonDisabled": string;
|
|
100
|
+
readonly "buttonWithIcon": string;
|
|
101
|
+
readonly "buttonsContainer": string;
|
|
100
102
|
readonly "dropdownButton": string;
|
|
101
103
|
readonly "dropdownItem": string;
|
|
102
104
|
readonly "dropdownItemButton": string;
|
|
103
|
-
readonly "
|
|
104
|
-
readonly "
|
|
105
|
-
readonly "
|
|
105
|
+
readonly "dropdownList": string;
|
|
106
|
+
readonly "fadein": string;
|
|
107
|
+
readonly "isClickable": string;
|
|
108
|
+
readonly "isSelected": string;
|
|
106
109
|
readonly "label": string;
|
|
107
|
-
readonly "
|
|
108
|
-
readonly "
|
|
109
|
-
readonly "buttonWithIcon": string;
|
|
110
|
-
readonly "buttonDisabled": string;
|
|
110
|
+
readonly "labels": string;
|
|
111
|
+
readonly "root": string;
|
|
111
112
|
};
|
|
112
113
|
|
|
113
114
|
interface ActionsProps extends HTMLAttributes<HTMLElement> {
|
|
@@ -121,7 +122,7 @@ interface ButtonProps<T extends React.ElementType> {
|
|
|
121
122
|
icon?: ReactNode;
|
|
122
123
|
disabled?: boolean;
|
|
123
124
|
}
|
|
124
|
-
declare function Button<T extends React.ElementType = 'button'>({ as, className, icon, title, children, disabled, ...restProps }: ButtonProps<T> & Omit<React.ComponentPropsWithoutRef<T>, keyof ButtonProps<T>>): JSX.Element;
|
|
125
|
+
declare function Button<T extends React.ElementType = 'button'>({ as, className, icon, title, children, disabled, ...restProps }: ButtonProps<T> & Omit<React.ComponentPropsWithoutRef<T>, keyof ButtonProps<T>>): react_jsx_runtime.JSX.Element;
|
|
125
126
|
declare const ButtonsContainer: React.FC<{
|
|
126
127
|
children: React.ReactNode;
|
|
127
128
|
}>;
|
|
@@ -155,30 +156,30 @@ interface SuggestionComposition {
|
|
|
155
156
|
Button: typeof Button;
|
|
156
157
|
ButtonsContainer: typeof ButtonsContainer;
|
|
157
158
|
}
|
|
158
|
-
type SuggestionStyles = typeof styles$
|
|
159
|
+
type SuggestionStyles = typeof styles$o;
|
|
159
160
|
declare const Suggestion: ForwardRefExoticComponent<Props$2 & RefAttributes<any>> & SuggestionComposition;
|
|
160
161
|
|
|
161
|
-
declare const styles$
|
|
162
|
-
readonly "root": string;
|
|
162
|
+
declare const styles$n: {
|
|
163
163
|
readonly "isWithDivider": string;
|
|
164
|
+
readonly "root": string;
|
|
164
165
|
};
|
|
165
166
|
|
|
166
|
-
type SuggestionListStyles = typeof styles$
|
|
167
|
+
type SuggestionListStyles = typeof styles$n;
|
|
167
168
|
interface Props$1 {
|
|
168
169
|
withDivider?: boolean;
|
|
169
170
|
}
|
|
170
171
|
declare const SuggestionList: React.FC<Props$1>;
|
|
171
172
|
|
|
172
|
-
declare const styles$
|
|
173
|
-
readonly "root": string;
|
|
173
|
+
declare const styles$m: {
|
|
174
174
|
readonly "isCollapsed": string;
|
|
175
|
+
readonly "root": string;
|
|
175
176
|
};
|
|
176
177
|
|
|
177
178
|
type Props = HTMLAttributes<HTMLButtonElement> & {
|
|
178
179
|
isCollapsed: boolean;
|
|
179
180
|
title: string;
|
|
180
181
|
};
|
|
181
|
-
type ToggleButtonStyles = typeof styles$
|
|
182
|
+
type ToggleButtonStyles = typeof styles$m;
|
|
182
183
|
declare const ToggleButton: React.FC<Props>;
|
|
183
184
|
|
|
184
185
|
declare enum Sources {
|
|
@@ -207,91 +208,21 @@ declare enum InputType {
|
|
|
207
208
|
SPACE = "space"
|
|
208
209
|
}
|
|
209
210
|
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
};
|
|
217
|
-
/**
|
|
218
|
-
* A selection range representation for textarea's and contenteditables only using offsets.
|
|
219
|
-
*/
|
|
220
|
-
type CaretPosition = {
|
|
221
|
-
top: number;
|
|
222
|
-
left: number;
|
|
223
|
-
};
|
|
224
|
-
interface InputEventMap {
|
|
225
|
-
/**
|
|
226
|
-
* User and platform changes (excluding changes by plugin)
|
|
227
|
-
*/
|
|
228
|
-
change: (event: {
|
|
229
|
-
plainText: string;
|
|
230
|
-
rawHTML: string | null;
|
|
231
|
-
}) => void;
|
|
232
|
-
/**
|
|
233
|
-
* Emits selection changes.
|
|
234
|
-
*/
|
|
235
|
-
selection: (event: SelectionRange | null) => void;
|
|
236
|
-
/**
|
|
237
|
-
* Emits when the position of the caret on the screen changed
|
|
238
|
-
*/
|
|
239
|
-
caretposition: (event: CaretPosition | null) => void;
|
|
240
|
-
keydown: (event: KeyboardEvent) => void;
|
|
241
|
-
keyup: (event: KeyboardEvent) => void;
|
|
242
|
-
paste: (event: {
|
|
243
|
-
pastedText: string;
|
|
244
|
-
selectionText: string;
|
|
245
|
-
}) => void;
|
|
246
|
-
cut: (event: {
|
|
247
|
-
selectionText: string;
|
|
248
|
-
}) => void;
|
|
249
|
-
submit: () => void;
|
|
250
|
-
enabled: () => void;
|
|
251
|
-
disabled: () => void;
|
|
252
|
-
unmounted: () => void;
|
|
253
|
-
focus: () => void;
|
|
254
|
-
blur: () => void;
|
|
211
|
+
declare enum SearchResultDefaultType {
|
|
212
|
+
default = "DEFAULT",
|
|
213
|
+
url = "URL",
|
|
214
|
+
personal = "PERSONAL",
|
|
215
|
+
pinned = "STICKYMESSAGE",
|
|
216
|
+
image = "IMAGE"
|
|
255
217
|
}
|
|
256
|
-
type
|
|
257
|
-
type
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
protected disposeHandlers: (() => void)[];
|
|
265
|
-
protected cachedText: string;
|
|
266
|
-
protected cachedCaretPosition: CaretPosition | null;
|
|
267
|
-
protected cachedSelection: SelectionRange;
|
|
268
|
-
protected cachedHTML: string | null;
|
|
269
|
-
protected isSubmitting: boolean;
|
|
270
|
-
protected isPossibleClearInputAction: boolean;
|
|
271
|
-
constructor(element: HTMLElementType);
|
|
272
|
-
protected addEventListener(eventName: string, listener: EventListenerOrEventListenerObject): void;
|
|
273
|
-
protected removeEventListener(eventName: string, listener: EventListenerOrEventListenerObject): void;
|
|
274
|
-
protected handleInteraction(): void;
|
|
275
|
-
abstract getSelectedText(): string;
|
|
276
|
-
protected handleClick(): void;
|
|
277
|
-
protected handleFocus(): void;
|
|
278
|
-
protected handleBlur(): void;
|
|
279
|
-
protected handleKeyDown(event: KeyboardEvent): void;
|
|
280
|
-
protected handleKeyUp(event: KeyboardEvent): void;
|
|
281
|
-
protected handleCut(): void;
|
|
282
|
-
protected handlePaste(event: ClipboardEvent): void;
|
|
283
|
-
protected listen(): void;
|
|
284
|
-
abstract getText(): string;
|
|
285
|
-
abstract getHTML(): string | null;
|
|
286
|
-
abstract getSelection(): SelectionRange;
|
|
287
|
-
abstract getCaretPosition(): CaretPosition | null;
|
|
288
|
-
focus(): void;
|
|
289
|
-
emit<K extends keyof InputEventMap>(type: K, ...args: Parameters<InputHandler<K>>): void;
|
|
290
|
-
on<K extends keyof InputEventMap>(type: K, handler: InputHandler<K>): void;
|
|
291
|
-
off<K extends keyof InputEventMap>(type: K, handler: InputHandler<K>): void;
|
|
292
|
-
activate(): void;
|
|
293
|
-
deactivate(): void;
|
|
294
|
-
dispose(): void;
|
|
218
|
+
type SearchResultType = string | SearchResultDefaultType;
|
|
219
|
+
type SearchResult = SearchSuggestion;
|
|
220
|
+
interface State$b {
|
|
221
|
+
list: Array<SearchResult>;
|
|
222
|
+
page: string;
|
|
223
|
+
fetchState: FetchState;
|
|
224
|
+
isOpen: boolean;
|
|
225
|
+
aggregates: Record<string, number>;
|
|
295
226
|
}
|
|
296
227
|
|
|
297
228
|
/**
|
|
@@ -325,6 +256,145 @@ type CamelCaseKeys<T> = T extends Array<any> ? {
|
|
|
325
256
|
[K in keyof T as CamelCase<K & string>]: CamelCaseKeys<T[K]>;
|
|
326
257
|
} : T;
|
|
327
258
|
|
|
259
|
+
declare enum Locale {
|
|
260
|
+
NL_NL = "nl-NL",
|
|
261
|
+
EN_US = "en-US"
|
|
262
|
+
}
|
|
263
|
+
interface SuggestionApiMetrics {
|
|
264
|
+
source?: string;
|
|
265
|
+
score?: number;
|
|
266
|
+
abVariant?: string;
|
|
267
|
+
abTestName?: string;
|
|
268
|
+
sourceText?: string;
|
|
269
|
+
trainingJobs?: string[];
|
|
270
|
+
}
|
|
271
|
+
interface TextSuggestion extends SuggestionApiMetrics {
|
|
272
|
+
id?: string;
|
|
273
|
+
text: string;
|
|
274
|
+
url?: string;
|
|
275
|
+
title?: string;
|
|
276
|
+
sourceLabel?: string;
|
|
277
|
+
searchTerm?: string;
|
|
278
|
+
type?: string;
|
|
279
|
+
searchKeywords?: string[];
|
|
280
|
+
image?: string;
|
|
281
|
+
message?: string;
|
|
282
|
+
imageSizes?: {
|
|
283
|
+
small: string;
|
|
284
|
+
medium: string;
|
|
285
|
+
large: string;
|
|
286
|
+
};
|
|
287
|
+
}
|
|
288
|
+
interface PinnedMessage extends SuggestionApiMetrics {
|
|
289
|
+
title: string;
|
|
290
|
+
message: string;
|
|
291
|
+
image: string;
|
|
292
|
+
imageSizes?: {
|
|
293
|
+
small: string;
|
|
294
|
+
medium: string;
|
|
295
|
+
large: string;
|
|
296
|
+
};
|
|
297
|
+
}
|
|
298
|
+
interface UrlSuggestion extends SuggestionApiMetrics {
|
|
299
|
+
id?: string;
|
|
300
|
+
url: string;
|
|
301
|
+
context?: string;
|
|
302
|
+
image: string;
|
|
303
|
+
summary?: string;
|
|
304
|
+
title?: string;
|
|
305
|
+
imageSizes?: {
|
|
306
|
+
small: string;
|
|
307
|
+
medium: string;
|
|
308
|
+
large: string;
|
|
309
|
+
};
|
|
310
|
+
}
|
|
311
|
+
interface SearchSuggestion extends SuggestionApiMetrics {
|
|
312
|
+
id?: string;
|
|
313
|
+
text: string;
|
|
314
|
+
title?: string;
|
|
315
|
+
source?: string;
|
|
316
|
+
context?: string;
|
|
317
|
+
image?: string;
|
|
318
|
+
type?: SearchResultType;
|
|
319
|
+
}
|
|
320
|
+
interface SuggestionEventMetrics {
|
|
321
|
+
inputType: InputType;
|
|
322
|
+
}
|
|
323
|
+
interface SuggestionMetrics extends SuggestionApiMetrics, SuggestionEventMetrics {
|
|
324
|
+
text: string;
|
|
325
|
+
searchTerm?: string | null;
|
|
326
|
+
}
|
|
327
|
+
type VisitorInfo = {
|
|
328
|
+
visitorId?: string;
|
|
329
|
+
visitorName?: string;
|
|
330
|
+
visitorTimeZone?: string;
|
|
331
|
+
psid?: string;
|
|
332
|
+
};
|
|
333
|
+
type AgentInfo = {
|
|
334
|
+
agentId: string;
|
|
335
|
+
agentNickname: string;
|
|
336
|
+
agentName?: string;
|
|
337
|
+
agentEmail?: string;
|
|
338
|
+
agentTimeZone?: string;
|
|
339
|
+
agentDefaultLocale?: string;
|
|
340
|
+
};
|
|
341
|
+
type User = CamelCaseKeys<Server.User>;
|
|
342
|
+
type SendMessageEventData$1 = CamelCaseKeys<Server.SendMessageEventData>;
|
|
343
|
+
type Profile = CamelCaseKeys<Server.Profile>;
|
|
344
|
+
|
|
345
|
+
type CreateConversation = {
|
|
346
|
+
platform: string;
|
|
347
|
+
sessionId: string;
|
|
348
|
+
profileCode?: string;
|
|
349
|
+
agentId: string;
|
|
350
|
+
agentName?: string;
|
|
351
|
+
agentNickname?: string;
|
|
352
|
+
agentEmail?: string;
|
|
353
|
+
tags?: Record<string, string> | null;
|
|
354
|
+
};
|
|
355
|
+
type TranslationRequest = {
|
|
356
|
+
targetLanguage: string;
|
|
357
|
+
messages: Array<string>;
|
|
358
|
+
};
|
|
359
|
+
type Translation = {
|
|
360
|
+
originalLanguage: string;
|
|
361
|
+
targetLanguage: string;
|
|
362
|
+
translation: string;
|
|
363
|
+
};
|
|
364
|
+
type TranslationResponse = Translation[];
|
|
365
|
+
interface Entity {
|
|
366
|
+
text: string;
|
|
367
|
+
label: string;
|
|
368
|
+
}
|
|
369
|
+
type CustomData = Record<string, unknown>;
|
|
370
|
+
type VariableMapping = Record<string, string>;
|
|
371
|
+
type CustomDataSchema = Array<{
|
|
372
|
+
path: string;
|
|
373
|
+
label: string;
|
|
374
|
+
type: 'string' | 'number';
|
|
375
|
+
} | {
|
|
376
|
+
path: string;
|
|
377
|
+
label: string;
|
|
378
|
+
type: 'boolean';
|
|
379
|
+
trueValue?: string;
|
|
380
|
+
falseValue?: string;
|
|
381
|
+
}>;
|
|
382
|
+
type PlatformConfig = CamelCaseKeys<Server.PlatformConfig>;
|
|
383
|
+
/**
|
|
384
|
+
* Utils
|
|
385
|
+
*/
|
|
386
|
+
type Logger = {
|
|
387
|
+
info(...args: any[]): void;
|
|
388
|
+
warn(...args: any[]): void;
|
|
389
|
+
error(...args: any[]): void;
|
|
390
|
+
};
|
|
391
|
+
declare enum FetchState {
|
|
392
|
+
IDLE = "idle",
|
|
393
|
+
LOADING = "loading",
|
|
394
|
+
DONE = "done",
|
|
395
|
+
ERROR = "error"
|
|
396
|
+
}
|
|
397
|
+
|
|
328
398
|
type Fetch = typeof window.fetch;
|
|
329
399
|
type HTTPClientOptions = {
|
|
330
400
|
fetch?: typeof window.fetch;
|
|
@@ -350,7 +420,7 @@ declare class HTTPClient {
|
|
|
350
420
|
options: HTTPClientOptions;
|
|
351
421
|
private latestRequestByUrl;
|
|
352
422
|
csrfToken?: string;
|
|
353
|
-
fetch: ((input: RequestInfo | URL, init?: RequestInit
|
|
423
|
+
fetch: ((input: RequestInfo | URL, init?: RequestInit) => Promise<Response>) & typeof fetch;
|
|
354
424
|
private static refreshingToken;
|
|
355
425
|
constructor(baseUrl?: string, options?: HTTPClientOptions);
|
|
356
426
|
patchFetch(patch: (fetchFn: Fetch) => Fetch): void;
|
|
@@ -537,7 +607,7 @@ declare namespace Server {
|
|
|
537
607
|
suggestion: string;
|
|
538
608
|
}[];
|
|
539
609
|
};
|
|
540
|
-
|
|
610
|
+
enum EventType {
|
|
541
611
|
SEND_MESSAGE = "Send Message",
|
|
542
612
|
HANDLING_TIME = "Handling Time",
|
|
543
613
|
ADD_TO_PERSONAL_COLLECTION = "Add to personal collection",
|
|
@@ -735,6 +805,8 @@ declare namespace Server {
|
|
|
735
805
|
*/
|
|
736
806
|
knowledge_assistant: string;
|
|
737
807
|
knowledge_assistant_new: string;
|
|
808
|
+
on_demand_assistants: Array<OnDemandAssistant>;
|
|
809
|
+
authorized_groups: number[];
|
|
738
810
|
active_config: {
|
|
739
811
|
default_locale: string;
|
|
740
812
|
};
|
|
@@ -759,6 +831,11 @@ declare namespace Server {
|
|
|
759
831
|
};
|
|
760
832
|
};
|
|
761
833
|
};
|
|
834
|
+
type OnDemandAssistant = {
|
|
835
|
+
assistant: string;
|
|
836
|
+
assistant_name: string;
|
|
837
|
+
is_pinned: boolean;
|
|
838
|
+
};
|
|
762
839
|
type ChatHistory = {
|
|
763
840
|
question: string;
|
|
764
841
|
answer: string;
|
|
@@ -841,7 +918,7 @@ type CreateConversationOptions = {
|
|
|
841
918
|
/**
|
|
842
919
|
* Send message event data
|
|
843
920
|
*/
|
|
844
|
-
type SendMessageEventData
|
|
921
|
+
type SendMessageEventData = CamelCaseKeys<Server.SendMessageEventData>;
|
|
845
922
|
/**
|
|
846
923
|
* Event v2 payload
|
|
847
924
|
*/
|
|
@@ -865,7 +942,7 @@ type RuleEventMeta = {
|
|
|
865
942
|
* @deprecated
|
|
866
943
|
*/
|
|
867
944
|
type SendEventV1ArgumentMap = {
|
|
868
|
-
'Send Message': SendMessageEventData
|
|
945
|
+
'Send Message': SendMessageEventData;
|
|
869
946
|
'Handling Time': HandlingTimeEventData;
|
|
870
947
|
};
|
|
871
948
|
/**
|
|
@@ -921,6 +998,16 @@ type SendEventV2ArgumentMap = {
|
|
|
921
998
|
isAgent: boolean;
|
|
922
999
|
answer: Server.KnowledgeResponse['answer'];
|
|
923
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
|
+
}>;
|
|
924
1011
|
'knowledge assist source viewed': EventV2<{
|
|
925
1012
|
question: string;
|
|
926
1013
|
sourceViewed: string;
|
|
@@ -934,6 +1021,18 @@ type SendEventV2ArgumentMap = {
|
|
|
934
1021
|
finalText: string;
|
|
935
1022
|
assistant: string;
|
|
936
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
|
+
}>;
|
|
937
1036
|
};
|
|
938
1037
|
/**
|
|
939
1038
|
* Request retry options
|
|
@@ -1027,11 +1126,7 @@ declare class DeepdeskAPI {
|
|
|
1027
1126
|
/**
|
|
1028
1127
|
* Request text suggestions based on the current conversation
|
|
1029
1128
|
*/
|
|
1030
|
-
getTextSuggestions(conversationId: string, params:
|
|
1031
|
-
timezone?: string | undefined;
|
|
1032
|
-
agentName?: string | undefined;
|
|
1033
|
-
visitorName?: string | undefined;
|
|
1034
|
-
} | undefined, contentType: string): Promise<TextSuggestion[]>;
|
|
1129
|
+
getTextSuggestions(conversationId: string, params: CamelCaseKeys<Server.GetTextSuggestionsParams> | undefined, contentType: string): Promise<TextSuggestion[]>;
|
|
1035
1130
|
/**
|
|
1036
1131
|
* Validate authentication
|
|
1037
1132
|
*/
|
|
@@ -1101,147 +1196,105 @@ declare class DeepdeskAPI {
|
|
|
1101
1196
|
threadId: number;
|
|
1102
1197
|
}>;
|
|
1103
1198
|
translateMessages(params: TranslationRequest): Promise<TranslationResponse>;
|
|
1104
|
-
private handleDeepdeskVersionHeaders;
|
|
1105
|
-
}
|
|
1106
|
-
|
|
1107
|
-
declare enum Locale {
|
|
1108
|
-
NL_NL = "nl-NL",
|
|
1109
|
-
EN_US = "en-US"
|
|
1110
|
-
}
|
|
1111
|
-
interface SuggestionApiMetrics {
|
|
1112
|
-
source?: string;
|
|
1113
|
-
score?: number;
|
|
1114
|
-
abVariant?: string;
|
|
1115
|
-
abTestName?: string;
|
|
1116
|
-
sourceText?: string;
|
|
1117
|
-
trainingJobs?: string[];
|
|
1118
|
-
}
|
|
1119
|
-
interface TextSuggestion extends SuggestionApiMetrics {
|
|
1120
|
-
id?: string;
|
|
1121
|
-
text: string;
|
|
1122
|
-
url?: string;
|
|
1123
|
-
title?: string;
|
|
1124
|
-
sourceLabel?: string;
|
|
1125
|
-
searchTerm?: string;
|
|
1126
|
-
type?: string;
|
|
1127
|
-
searchKeywords?: string[];
|
|
1128
|
-
image?: string;
|
|
1129
|
-
message?: string;
|
|
1130
|
-
imageSizes?: {
|
|
1131
|
-
small: string;
|
|
1132
|
-
medium: string;
|
|
1133
|
-
large: string;
|
|
1134
|
-
};
|
|
1135
|
-
}
|
|
1136
|
-
interface PinnedMessage extends SuggestionApiMetrics {
|
|
1137
|
-
title: string;
|
|
1138
|
-
message: string;
|
|
1139
|
-
image: string;
|
|
1140
|
-
imageSizes?: {
|
|
1141
|
-
small: string;
|
|
1142
|
-
medium: string;
|
|
1143
|
-
large: string;
|
|
1144
|
-
};
|
|
1145
|
-
}
|
|
1146
|
-
interface UrlSuggestion extends SuggestionApiMetrics {
|
|
1147
|
-
id?: string;
|
|
1148
|
-
url: string;
|
|
1149
|
-
context?: string;
|
|
1150
|
-
image: string;
|
|
1151
|
-
summary?: string;
|
|
1152
|
-
title?: string;
|
|
1153
|
-
imageSizes?: {
|
|
1154
|
-
small: string;
|
|
1155
|
-
medium: string;
|
|
1156
|
-
large: string;
|
|
1157
|
-
};
|
|
1158
|
-
}
|
|
1159
|
-
interface SearchSuggestion extends SuggestionApiMetrics {
|
|
1160
|
-
id?: string;
|
|
1161
|
-
text: string;
|
|
1162
|
-
title?: string;
|
|
1163
|
-
source?: string;
|
|
1164
|
-
context?: string;
|
|
1165
|
-
image?: string;
|
|
1166
|
-
type?: SearchResultType;
|
|
1167
|
-
}
|
|
1168
|
-
interface SuggestionEventMetrics {
|
|
1169
|
-
inputType: InputType;
|
|
1199
|
+
private handleDeepdeskVersionHeaders;
|
|
1170
1200
|
}
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1201
|
+
|
|
1202
|
+
type StyleSuggestion = CamelCaseKeys<Server.StyleSuggestion>;
|
|
1203
|
+
interface State$a {
|
|
1204
|
+
list: StyleSuggestion;
|
|
1205
|
+
fetchState: FetchState;
|
|
1174
1206
|
}
|
|
1175
|
-
type VisitorInfo = {
|
|
1176
|
-
visitorId?: string;
|
|
1177
|
-
visitorName?: string;
|
|
1178
|
-
visitorTimeZone?: string;
|
|
1179
|
-
psid?: string;
|
|
1180
|
-
};
|
|
1181
|
-
type AgentInfo = {
|
|
1182
|
-
agentId: string;
|
|
1183
|
-
agentNickname: string;
|
|
1184
|
-
agentName?: string;
|
|
1185
|
-
agentEmail?: string;
|
|
1186
|
-
agentTimeZone?: string;
|
|
1187
|
-
agentDefaultLocale?: string;
|
|
1188
|
-
};
|
|
1189
|
-
type KnowledgeAssistant = CamelCaseKeys<Server.KnowledgeAssistant>;
|
|
1190
|
-
type User = CamelCaseKeys<Server.User>;
|
|
1191
|
-
type SendMessageEventData = CamelCaseKeys<Server.SendMessageEventData>;
|
|
1192
|
-
type Profile = CamelCaseKeys<Server.Profile>;
|
|
1193
1207
|
|
|
1194
|
-
type
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
profileCode?: string;
|
|
1198
|
-
agentId: string;
|
|
1199
|
-
agentName?: string;
|
|
1200
|
-
agentNickname?: string;
|
|
1201
|
-
agentEmail?: string;
|
|
1202
|
-
tags?: Record<string, string> | null;
|
|
1203
|
-
};
|
|
1204
|
-
type TranslationRequest = {
|
|
1205
|
-
targetLanguage: string;
|
|
1206
|
-
messages: Array<string>;
|
|
1208
|
+
type State$9 = {
|
|
1209
|
+
data: Profile | null;
|
|
1210
|
+
fetchState: FetchState;
|
|
1207
1211
|
};
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
+
|
|
1213
|
+
/**
|
|
1214
|
+
* A selection range representation for textarea's and contenteditables only using offsets.
|
|
1215
|
+
*/
|
|
1216
|
+
type SelectionRange = {
|
|
1217
|
+
start: number;
|
|
1218
|
+
end: number;
|
|
1212
1219
|
};
|
|
1213
|
-
type TranslationResponse = Translation[];
|
|
1214
|
-
interface Entity {
|
|
1215
|
-
text: string;
|
|
1216
|
-
label: string;
|
|
1217
|
-
}
|
|
1218
|
-
type CustomData = Record<string, unknown>;
|
|
1219
|
-
type VariableMapping = Record<string, string>;
|
|
1220
|
-
type CustomDataSchema = Array<{
|
|
1221
|
-
path: string;
|
|
1222
|
-
label: string;
|
|
1223
|
-
type: 'string' | 'number';
|
|
1224
|
-
} | {
|
|
1225
|
-
path: string;
|
|
1226
|
-
label: string;
|
|
1227
|
-
type: 'boolean';
|
|
1228
|
-
trueValue?: string;
|
|
1229
|
-
falseValue?: string;
|
|
1230
|
-
}>;
|
|
1231
|
-
type PlatformConfig = CamelCaseKeys<Server.PlatformConfig>;
|
|
1232
1220
|
/**
|
|
1233
|
-
*
|
|
1221
|
+
* A selection range representation for textarea's and contenteditables only using offsets.
|
|
1234
1222
|
*/
|
|
1235
|
-
type
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
error(...args: any[]): void;
|
|
1223
|
+
type CaretPosition = {
|
|
1224
|
+
top: number;
|
|
1225
|
+
left: number;
|
|
1239
1226
|
};
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1227
|
+
interface InputEventMap {
|
|
1228
|
+
/**
|
|
1229
|
+
* User and platform changes (excluding changes by plugin)
|
|
1230
|
+
*/
|
|
1231
|
+
change: (event: {
|
|
1232
|
+
plainText: string;
|
|
1233
|
+
rawHTML: string | null;
|
|
1234
|
+
}) => void;
|
|
1235
|
+
/**
|
|
1236
|
+
* Emits selection changes.
|
|
1237
|
+
*/
|
|
1238
|
+
selection: (event: SelectionRange | null) => void;
|
|
1239
|
+
/**
|
|
1240
|
+
* Emits when the position of the caret on the screen changed
|
|
1241
|
+
*/
|
|
1242
|
+
caretposition: (event: CaretPosition | null) => void;
|
|
1243
|
+
keydown: (event: KeyboardEvent) => void;
|
|
1244
|
+
keyup: (event: KeyboardEvent) => void;
|
|
1245
|
+
paste: (event: {
|
|
1246
|
+
pastedText: string;
|
|
1247
|
+
selectionText: string;
|
|
1248
|
+
}) => void;
|
|
1249
|
+
cut: (event: {
|
|
1250
|
+
selectionText: string;
|
|
1251
|
+
}) => void;
|
|
1252
|
+
submit: () => void;
|
|
1253
|
+
enabled: () => void;
|
|
1254
|
+
disabled: () => void;
|
|
1255
|
+
unmounted: () => void;
|
|
1256
|
+
focus: () => void;
|
|
1257
|
+
blur: () => void;
|
|
1258
|
+
}
|
|
1259
|
+
type InputHandler<K extends keyof InputEventMap> = InputEventMap[K];
|
|
1260
|
+
type InputEventListeners<K extends keyof InputEventMap> = Record<K, InputHandler<K>[]>;
|
|
1261
|
+
declare abstract class InputMediator<HTMLElementType extends HTMLElement> {
|
|
1262
|
+
protected element: HTMLElementType;
|
|
1263
|
+
isFocused: boolean;
|
|
1264
|
+
isActive: boolean;
|
|
1265
|
+
isDisposed: boolean;
|
|
1266
|
+
protected eventListeners: Partial<InputEventListeners<keyof InputEventMap>>;
|
|
1267
|
+
protected disposeHandlers: (() => void)[];
|
|
1268
|
+
protected cachedText: string;
|
|
1269
|
+
protected cachedCaretPosition: CaretPosition | null;
|
|
1270
|
+
protected cachedSelection: SelectionRange;
|
|
1271
|
+
protected cachedHTML: string | null;
|
|
1272
|
+
protected isSubmitting: boolean;
|
|
1273
|
+
protected isPossibleClearInputAction: boolean;
|
|
1274
|
+
constructor(element: HTMLElementType);
|
|
1275
|
+
protected addEventListener(eventName: string, listener: EventListenerOrEventListenerObject): void;
|
|
1276
|
+
protected removeEventListener(eventName: string, listener: EventListenerOrEventListenerObject): void;
|
|
1277
|
+
protected handleInteraction(): void;
|
|
1278
|
+
abstract getSelectedText(): string;
|
|
1279
|
+
protected handleClick(): void;
|
|
1280
|
+
protected handleFocus(): void;
|
|
1281
|
+
protected handleBlur(): void;
|
|
1282
|
+
protected handleKeyDown(event: KeyboardEvent): void;
|
|
1283
|
+
protected handleKeyUp(event: KeyboardEvent): void;
|
|
1284
|
+
protected handleCut(): void;
|
|
1285
|
+
protected handlePaste(event: ClipboardEvent): void;
|
|
1286
|
+
protected listen(): void;
|
|
1287
|
+
abstract getText(): string;
|
|
1288
|
+
abstract getHTML(): string | null;
|
|
1289
|
+
abstract getSelection(): SelectionRange;
|
|
1290
|
+
abstract getCaretPosition(): CaretPosition | null;
|
|
1291
|
+
focus(): void;
|
|
1292
|
+
emit<K extends keyof InputEventMap>(type: K, ...args: Parameters<InputHandler<K>>): void;
|
|
1293
|
+
on<K extends keyof InputEventMap>(type: K, handler: InputHandler<K>): void;
|
|
1294
|
+
off<K extends keyof InputEventMap>(type: K, handler: InputHandler<K>): void;
|
|
1295
|
+
activate(): void;
|
|
1296
|
+
deactivate(): void;
|
|
1297
|
+
dispose(): void;
|
|
1245
1298
|
}
|
|
1246
1299
|
|
|
1247
1300
|
type KeyboardMetric = Pick<KeyboardEvent, 'key' | 'shiftKey' | 'ctrlKey' | 'altKey' | 'metaKey'>;
|
|
@@ -1270,7 +1323,7 @@ type MetricState = {
|
|
|
1270
1323
|
textSuggestions: SuggestionMetrics[];
|
|
1271
1324
|
cuts: any[];
|
|
1272
1325
|
};
|
|
1273
|
-
type State$
|
|
1326
|
+
type State$8 = {
|
|
1274
1327
|
text: string;
|
|
1275
1328
|
html: string | null;
|
|
1276
1329
|
selection: SelectionRange;
|
|
@@ -1285,6 +1338,34 @@ type State$c = {
|
|
|
1285
1338
|
selectedSuggestionIndex: number;
|
|
1286
1339
|
};
|
|
1287
1340
|
|
|
1341
|
+
type State$7 = {
|
|
1342
|
+
startTime: Date | null;
|
|
1343
|
+
stopTime: Date | null;
|
|
1344
|
+
};
|
|
1345
|
+
|
|
1346
|
+
type State$6 = {
|
|
1347
|
+
token: string | null;
|
|
1348
|
+
interval: NodeJS.Timer | null;
|
|
1349
|
+
};
|
|
1350
|
+
|
|
1351
|
+
type ContentType = CamelCaseKeys<Server.ContentType>;
|
|
1352
|
+
type State$5 = {
|
|
1353
|
+
data: ContentType[] | null;
|
|
1354
|
+
fetchState: FetchState;
|
|
1355
|
+
};
|
|
1356
|
+
|
|
1357
|
+
interface State$4 {
|
|
1358
|
+
current: Conversation | null;
|
|
1359
|
+
isSupported: boolean | null;
|
|
1360
|
+
}
|
|
1361
|
+
|
|
1362
|
+
interface State$3 {
|
|
1363
|
+
isLoggedIn: boolean | null;
|
|
1364
|
+
loginFetchState: FetchState;
|
|
1365
|
+
verifyFetchState: FetchState;
|
|
1366
|
+
showLoginOverlay: boolean;
|
|
1367
|
+
}
|
|
1368
|
+
|
|
1288
1369
|
type LegacyCue = CamelCaseKeys<Server.LegacyCue> & {
|
|
1289
1370
|
isLoading?: boolean;
|
|
1290
1371
|
specialType?: 'summary';
|
|
@@ -1307,7 +1388,7 @@ type AssistantInteraction = {
|
|
|
1307
1388
|
sources?: AssistantAnswerSource[];
|
|
1308
1389
|
};
|
|
1309
1390
|
};
|
|
1310
|
-
type State$
|
|
1391
|
+
type State$2 = {
|
|
1311
1392
|
cues: Cue[];
|
|
1312
1393
|
threads: Record<number, AssistantInteraction[]>;
|
|
1313
1394
|
fetchState: FetchState;
|
|
@@ -1318,39 +1399,11 @@ type Transcript = Array<{
|
|
|
1318
1399
|
}>;
|
|
1319
1400
|
type TranscriptOption = 'in-memory-transcript' | 'stored-transcript' | Transcript;
|
|
1320
1401
|
|
|
1321
|
-
|
|
1322
|
-
isLoggedIn: boolean | null;
|
|
1323
|
-
loginFetchState: FetchState;
|
|
1324
|
-
verifyFetchState: FetchState;
|
|
1325
|
-
showLoginOverlay: boolean;
|
|
1326
|
-
}
|
|
1327
|
-
|
|
1328
|
-
interface State$9 {
|
|
1329
|
-
current: Conversation | null;
|
|
1330
|
-
isSupported: boolean | null;
|
|
1331
|
-
}
|
|
1332
|
-
|
|
1333
|
-
type ContentType = CamelCaseKeys<Server.ContentType>;
|
|
1334
|
-
type State$8 = {
|
|
1335
|
-
data: ContentType[] | null;
|
|
1336
|
-
fetchState: FetchState;
|
|
1337
|
-
};
|
|
1338
|
-
|
|
1339
|
-
type State$7 = {
|
|
1340
|
-
token: string | null;
|
|
1341
|
-
interval: NodeJS.Timer | null;
|
|
1342
|
-
};
|
|
1343
|
-
|
|
1344
|
-
type State$6 = {
|
|
1402
|
+
type State$1 = {
|
|
1345
1403
|
data: Entity[] | null;
|
|
1346
1404
|
fetchState: FetchState;
|
|
1347
1405
|
};
|
|
1348
1406
|
|
|
1349
|
-
type State$5 = {
|
|
1350
|
-
data: KnowledgeAssistant | null;
|
|
1351
|
-
fetchState: FetchState;
|
|
1352
|
-
};
|
|
1353
|
-
|
|
1354
1407
|
interface StoreConfig {
|
|
1355
1408
|
deepdeskAPI: DeepdeskAPI;
|
|
1356
1409
|
dynamicThunkObject?: Record<string, unknown>;
|
|
@@ -1358,23 +1411,22 @@ interface StoreConfig {
|
|
|
1358
1411
|
preloadedState?: any;
|
|
1359
1412
|
}
|
|
1360
1413
|
declare const reducers: redux.Reducer<redux.CombinedState<{
|
|
1361
|
-
assistants: State$
|
|
1362
|
-
auth: State$
|
|
1363
|
-
conversation: State$
|
|
1364
|
-
contentTypes: State$
|
|
1365
|
-
passwordlessToken: State$
|
|
1366
|
-
entities: State$
|
|
1367
|
-
|
|
1368
|
-
handlingTime: State$4;
|
|
1414
|
+
assistants: State$2;
|
|
1415
|
+
auth: State$3;
|
|
1416
|
+
conversation: State$4;
|
|
1417
|
+
contentTypes: State$5;
|
|
1418
|
+
passwordlessToken: State$6;
|
|
1419
|
+
entities: State$1;
|
|
1420
|
+
handlingTime: State$7;
|
|
1369
1421
|
info: {
|
|
1370
|
-
agentInfo?: AgentInfo
|
|
1422
|
+
agentInfo?: AgentInfo;
|
|
1371
1423
|
agentSettings: unknown;
|
|
1372
|
-
visitorInfo?: VisitorInfo
|
|
1373
|
-
customData?: CustomData
|
|
1374
|
-
platformVariables?: VariableMapping
|
|
1424
|
+
visitorInfo?: VisitorInfo;
|
|
1425
|
+
customData?: CustomData;
|
|
1426
|
+
platformVariables?: VariableMapping;
|
|
1375
1427
|
fetchState: FetchState;
|
|
1376
1428
|
};
|
|
1377
|
-
input: State$
|
|
1429
|
+
input: State$8;
|
|
1378
1430
|
settings: {
|
|
1379
1431
|
locale: Locale;
|
|
1380
1432
|
deanonymize: boolean;
|
|
@@ -1383,7 +1435,7 @@ declare const reducers: redux.Reducer<redux.CombinedState<{
|
|
|
1383
1435
|
showImages: boolean;
|
|
1384
1436
|
showSearch: boolean;
|
|
1385
1437
|
showImageSearch: boolean;
|
|
1386
|
-
showStyleSuggestions:
|
|
1438
|
+
showStyleSuggestions: boolean | number;
|
|
1387
1439
|
showMidSentenceSuggestions: boolean;
|
|
1388
1440
|
showSuggestionsBeforePattern: string | false;
|
|
1389
1441
|
showSuggestionsAfterPattern: string | false;
|
|
@@ -1401,15 +1453,15 @@ declare const reducers: redux.Reducer<redux.CombinedState<{
|
|
|
1401
1453
|
floatingMenu: boolean;
|
|
1402
1454
|
detectSubmit: boolean;
|
|
1403
1455
|
automaticHandlingTime: boolean;
|
|
1404
|
-
adminUrl?: string
|
|
1456
|
+
adminUrl?: string;
|
|
1405
1457
|
productName: string;
|
|
1406
1458
|
enableSuggestionFeedback: boolean;
|
|
1407
1459
|
enableFeedbackForm: boolean;
|
|
1408
1460
|
hasKeyboardInput: boolean;
|
|
1409
1461
|
};
|
|
1410
|
-
profile: State$
|
|
1411
|
-
search: State$
|
|
1412
|
-
styleSuggestions: State$
|
|
1462
|
+
profile: State$9;
|
|
1463
|
+
search: State$b;
|
|
1464
|
+
styleSuggestions: State$a;
|
|
1413
1465
|
ui: {
|
|
1414
1466
|
showTabHint: boolean;
|
|
1415
1467
|
inputHasFocus: boolean;
|
|
@@ -1420,23 +1472,22 @@ declare const reducers: redux.Reducer<redux.CombinedState<{
|
|
|
1420
1472
|
textSuggestions: TextSuggestionState;
|
|
1421
1473
|
}>, redux.AnyAction>;
|
|
1422
1474
|
declare function createStore(config: StoreConfig): _reduxjs_toolkit_dist_configureStore.ToolkitStore<redux.EmptyObject & {
|
|
1423
|
-
assistants: State$
|
|
1424
|
-
auth: State$
|
|
1425
|
-
conversation: State$
|
|
1426
|
-
contentTypes: State$
|
|
1427
|
-
passwordlessToken: State$
|
|
1428
|
-
entities: State$
|
|
1429
|
-
|
|
1430
|
-
handlingTime: State$4;
|
|
1475
|
+
assistants: State$2;
|
|
1476
|
+
auth: State$3;
|
|
1477
|
+
conversation: State$4;
|
|
1478
|
+
contentTypes: State$5;
|
|
1479
|
+
passwordlessToken: State$6;
|
|
1480
|
+
entities: State$1;
|
|
1481
|
+
handlingTime: State$7;
|
|
1431
1482
|
info: {
|
|
1432
|
-
agentInfo?: AgentInfo
|
|
1483
|
+
agentInfo?: AgentInfo;
|
|
1433
1484
|
agentSettings: unknown;
|
|
1434
|
-
visitorInfo?: VisitorInfo
|
|
1435
|
-
customData?: CustomData
|
|
1436
|
-
platformVariables?: VariableMapping
|
|
1485
|
+
visitorInfo?: VisitorInfo;
|
|
1486
|
+
customData?: CustomData;
|
|
1487
|
+
platformVariables?: VariableMapping;
|
|
1437
1488
|
fetchState: FetchState;
|
|
1438
1489
|
};
|
|
1439
|
-
input: State$
|
|
1490
|
+
input: State$8;
|
|
1440
1491
|
settings: {
|
|
1441
1492
|
locale: Locale;
|
|
1442
1493
|
deanonymize: boolean;
|
|
@@ -1445,7 +1496,7 @@ declare function createStore(config: StoreConfig): _reduxjs_toolkit_dist_configu
|
|
|
1445
1496
|
showImages: boolean;
|
|
1446
1497
|
showSearch: boolean;
|
|
1447
1498
|
showImageSearch: boolean;
|
|
1448
|
-
showStyleSuggestions:
|
|
1499
|
+
showStyleSuggestions: boolean | number;
|
|
1449
1500
|
showMidSentenceSuggestions: boolean;
|
|
1450
1501
|
showSuggestionsBeforePattern: string | false;
|
|
1451
1502
|
showSuggestionsAfterPattern: string | false;
|
|
@@ -1463,15 +1514,15 @@ declare function createStore(config: StoreConfig): _reduxjs_toolkit_dist_configu
|
|
|
1463
1514
|
floatingMenu: boolean;
|
|
1464
1515
|
detectSubmit: boolean;
|
|
1465
1516
|
automaticHandlingTime: boolean;
|
|
1466
|
-
adminUrl?: string
|
|
1517
|
+
adminUrl?: string;
|
|
1467
1518
|
productName: string;
|
|
1468
1519
|
enableSuggestionFeedback: boolean;
|
|
1469
1520
|
enableFeedbackForm: boolean;
|
|
1470
1521
|
hasKeyboardInput: boolean;
|
|
1471
1522
|
};
|
|
1472
|
-
profile: State$
|
|
1473
|
-
search: State$
|
|
1474
|
-
styleSuggestions: State$
|
|
1523
|
+
profile: State$9;
|
|
1524
|
+
search: State$b;
|
|
1525
|
+
styleSuggestions: State$a;
|
|
1475
1526
|
ui: {
|
|
1476
1527
|
showTabHint: boolean;
|
|
1477
1528
|
inputHasFocus: boolean;
|
|
@@ -1481,23 +1532,22 @@ declare function createStore(config: StoreConfig): _reduxjs_toolkit_dist_configu
|
|
|
1481
1532
|
};
|
|
1482
1533
|
textSuggestions: TextSuggestionState;
|
|
1483
1534
|
}, redux.AnyAction, _reduxjs_toolkit.ThunkMiddleware<redux.CombinedState<{
|
|
1484
|
-
assistants: State$
|
|
1485
|
-
auth: State$
|
|
1486
|
-
conversation: State$
|
|
1487
|
-
contentTypes: State$
|
|
1488
|
-
passwordlessToken: State$
|
|
1489
|
-
entities: State$
|
|
1490
|
-
|
|
1491
|
-
handlingTime: State$4;
|
|
1535
|
+
assistants: State$2;
|
|
1536
|
+
auth: State$3;
|
|
1537
|
+
conversation: State$4;
|
|
1538
|
+
contentTypes: State$5;
|
|
1539
|
+
passwordlessToken: State$6;
|
|
1540
|
+
entities: State$1;
|
|
1541
|
+
handlingTime: State$7;
|
|
1492
1542
|
info: {
|
|
1493
|
-
agentInfo?: AgentInfo
|
|
1543
|
+
agentInfo?: AgentInfo;
|
|
1494
1544
|
agentSettings: unknown;
|
|
1495
|
-
visitorInfo?: VisitorInfo
|
|
1496
|
-
customData?: CustomData
|
|
1497
|
-
platformVariables?: VariableMapping
|
|
1545
|
+
visitorInfo?: VisitorInfo;
|
|
1546
|
+
customData?: CustomData;
|
|
1547
|
+
platformVariables?: VariableMapping;
|
|
1498
1548
|
fetchState: FetchState;
|
|
1499
1549
|
};
|
|
1500
|
-
input: State$
|
|
1550
|
+
input: State$8;
|
|
1501
1551
|
settings: {
|
|
1502
1552
|
locale: Locale;
|
|
1503
1553
|
deanonymize: boolean;
|
|
@@ -1506,7 +1556,7 @@ declare function createStore(config: StoreConfig): _reduxjs_toolkit_dist_configu
|
|
|
1506
1556
|
showImages: boolean;
|
|
1507
1557
|
showSearch: boolean;
|
|
1508
1558
|
showImageSearch: boolean;
|
|
1509
|
-
showStyleSuggestions:
|
|
1559
|
+
showStyleSuggestions: boolean | number;
|
|
1510
1560
|
showMidSentenceSuggestions: boolean;
|
|
1511
1561
|
showSuggestionsBeforePattern: string | false;
|
|
1512
1562
|
showSuggestionsAfterPattern: string | false;
|
|
@@ -1524,62 +1574,29 @@ declare function createStore(config: StoreConfig): _reduxjs_toolkit_dist_configu
|
|
|
1524
1574
|
floatingMenu: boolean;
|
|
1525
1575
|
detectSubmit: boolean;
|
|
1526
1576
|
automaticHandlingTime: boolean;
|
|
1527
|
-
adminUrl?: string
|
|
1577
|
+
adminUrl?: string;
|
|
1528
1578
|
productName: string;
|
|
1529
1579
|
enableSuggestionFeedback: boolean;
|
|
1530
|
-
enableFeedbackForm: boolean;
|
|
1531
|
-
hasKeyboardInput: boolean;
|
|
1532
|
-
};
|
|
1533
|
-
profile: State$
|
|
1534
|
-
search: State$
|
|
1535
|
-
styleSuggestions: State$
|
|
1536
|
-
ui: {
|
|
1537
|
-
showTabHint: boolean;
|
|
1538
|
-
inputHasFocus: boolean;
|
|
1539
|
-
overlayCollapsed: boolean;
|
|
1540
|
-
openOverlayWhenTyping: boolean;
|
|
1541
|
-
overlayCollapsedUserOverwrite: boolean;
|
|
1542
|
-
};
|
|
1543
|
-
textSuggestions: TextSuggestionState;
|
|
1544
|
-
}>, redux.AnyAction, {
|
|
1545
|
-
dynamicThunkObject: Record<string, unknown> | undefined;
|
|
1546
|
-
deepdeskAPI: DeepdeskAPI;
|
|
1547
|
-
}>[]>;
|
|
1548
|
-
type RootState = ReturnType<typeof reducers>;
|
|
1549
|
-
type Store = ReturnType<typeof createStore>;
|
|
1550
|
-
|
|
1551
|
-
type State$4 = {
|
|
1552
|
-
startTime: Date | null;
|
|
1553
|
-
stopTime: Date | null;
|
|
1554
|
-
};
|
|
1555
|
-
|
|
1556
|
-
type State$3 = {
|
|
1557
|
-
data: Profile | null;
|
|
1558
|
-
fetchState: FetchState;
|
|
1559
|
-
};
|
|
1560
|
-
|
|
1561
|
-
declare enum SearchResultDefaultType {
|
|
1562
|
-
default = "DEFAULT",
|
|
1563
|
-
url = "URL",
|
|
1564
|
-
personal = "PERSONAL",
|
|
1565
|
-
pinned = "STICKYMESSAGE",
|
|
1566
|
-
image = "IMAGE"
|
|
1567
|
-
}
|
|
1568
|
-
type SearchResultType = string | SearchResultDefaultType;
|
|
1569
|
-
type SearchResult = SearchSuggestion;
|
|
1570
|
-
interface State$2 {
|
|
1571
|
-
list: Array<SearchResult>;
|
|
1572
|
-
page: string;
|
|
1573
|
-
fetchState: FetchState;
|
|
1574
|
-
isOpen: boolean;
|
|
1575
|
-
aggregates: Record<string, number>;
|
|
1576
|
-
}
|
|
1577
|
-
|
|
1578
|
-
type StyleSuggestion = CamelCaseKeys<Server.StyleSuggestion>;
|
|
1579
|
-
interface State$1 {
|
|
1580
|
-
list: StyleSuggestion;
|
|
1581
|
-
fetchState: FetchState;
|
|
1582
|
-
}
|
|
1580
|
+
enableFeedbackForm: boolean;
|
|
1581
|
+
hasKeyboardInput: boolean;
|
|
1582
|
+
};
|
|
1583
|
+
profile: State$9;
|
|
1584
|
+
search: State$b;
|
|
1585
|
+
styleSuggestions: State$a;
|
|
1586
|
+
ui: {
|
|
1587
|
+
showTabHint: boolean;
|
|
1588
|
+
inputHasFocus: boolean;
|
|
1589
|
+
overlayCollapsed: boolean;
|
|
1590
|
+
openOverlayWhenTyping: boolean;
|
|
1591
|
+
overlayCollapsedUserOverwrite: boolean;
|
|
1592
|
+
};
|
|
1593
|
+
textSuggestions: TextSuggestionState;
|
|
1594
|
+
}>, redux.AnyAction, {
|
|
1595
|
+
dynamicThunkObject: Record<string, unknown> | undefined;
|
|
1596
|
+
deepdeskAPI: DeepdeskAPI;
|
|
1597
|
+
}>[]>;
|
|
1598
|
+
type RootState = ReturnType<typeof reducers>;
|
|
1599
|
+
type Store = ReturnType<typeof createStore>;
|
|
1583
1600
|
|
|
1584
1601
|
type SuggestionState = {
|
|
1585
1602
|
suggestions: TextSuggestion[];
|
|
@@ -1589,261 +1606,291 @@ interface TextSuggestionState {
|
|
|
1589
1606
|
[type: string]: SuggestionState;
|
|
1590
1607
|
}
|
|
1591
1608
|
|
|
1592
|
-
declare const styles$
|
|
1593
|
-
readonly "
|
|
1609
|
+
declare const styles$l: {
|
|
1610
|
+
readonly "actionButton": string;
|
|
1611
|
+
readonly "actionShortcut": string;
|
|
1612
|
+
readonly "actionShortcutFixKerning": string;
|
|
1613
|
+
readonly "actions": string;
|
|
1614
|
+
readonly "actionsBar": string;
|
|
1615
|
+
readonly "actionsWrapper": string;
|
|
1616
|
+
readonly "hasShortKeys": string;
|
|
1617
|
+
readonly "icon": string;
|
|
1618
|
+
readonly "image": string;
|
|
1619
|
+
readonly "imageSrc": string;
|
|
1620
|
+
readonly "imageSrcHidden": string;
|
|
1621
|
+
readonly "imageSrcStatus": string;
|
|
1622
|
+
readonly "imageTitle": string;
|
|
1623
|
+
readonly "lineClamp": string;
|
|
1594
1624
|
readonly "list": string;
|
|
1595
|
-
readonly "listWrapper": string;
|
|
1596
|
-
readonly "listHorizontal": string;
|
|
1597
|
-
readonly "page": string;
|
|
1598
|
-
readonly "search": string;
|
|
1599
|
-
readonly "pageNav": string;
|
|
1600
|
-
readonly "pageTitle": string;
|
|
1601
|
-
readonly "pageBackButton": string;
|
|
1602
1625
|
readonly "listHeader": string;
|
|
1603
1626
|
readonly "listHeading": string;
|
|
1604
|
-
readonly "
|
|
1627
|
+
readonly "listHorizontal": string;
|
|
1605
1628
|
readonly "listItem": string;
|
|
1629
|
+
readonly "listItemAction": string;
|
|
1630
|
+
readonly "listItemActions": string;
|
|
1606
1631
|
readonly "listItemContent": string;
|
|
1607
|
-
readonly "listItemText": string;
|
|
1608
1632
|
readonly "listItemDescription": string;
|
|
1609
|
-
readonly "listItemActions": string;
|
|
1610
|
-
readonly "truncate": string;
|
|
1611
|
-
readonly "lineClamp": string;
|
|
1612
|
-
readonly "listItemTitle": string;
|
|
1613
|
-
readonly "listItemAction": string;
|
|
1614
1633
|
readonly "listItemSelected": string;
|
|
1615
|
-
readonly "
|
|
1616
|
-
readonly "
|
|
1617
|
-
readonly "
|
|
1618
|
-
readonly "
|
|
1619
|
-
readonly "
|
|
1634
|
+
readonly "listItemText": string;
|
|
1635
|
+
readonly "listItemTitle": string;
|
|
1636
|
+
readonly "listMoreButton": string;
|
|
1637
|
+
readonly "listWrapper": string;
|
|
1638
|
+
readonly "page": string;
|
|
1639
|
+
readonly "pageBackButton": string;
|
|
1640
|
+
readonly "pageNav": string;
|
|
1641
|
+
readonly "pageTitle": string;
|
|
1642
|
+
readonly "root": string;
|
|
1643
|
+
readonly "search": string;
|
|
1620
1644
|
readonly "searchIcon": string;
|
|
1621
|
-
readonly "searchInputWrapper": string;
|
|
1622
1645
|
readonly "searchInput": string;
|
|
1646
|
+
readonly "searchInputWrapper": string;
|
|
1623
1647
|
readonly "select": string;
|
|
1624
1648
|
readonly "selectType": string;
|
|
1625
1649
|
readonly "selectWrapper": string;
|
|
1626
|
-
readonly "
|
|
1627
|
-
readonly "
|
|
1628
|
-
readonly "
|
|
1629
|
-
readonly "
|
|
1630
|
-
readonly "
|
|
1631
|
-
readonly "actions": string;
|
|
1632
|
-
readonly "actionsWrapper": string;
|
|
1633
|
-
readonly "actionsBar": string;
|
|
1634
|
-
readonly "actionButton": string;
|
|
1635
|
-
readonly "hasShortKeys": string;
|
|
1636
|
-
readonly "actionShortcut": string;
|
|
1637
|
-
readonly "actionShortcutFixKerning": string;
|
|
1650
|
+
readonly "source": string;
|
|
1651
|
+
readonly "sourceShowMore": string;
|
|
1652
|
+
readonly "sources": string;
|
|
1653
|
+
readonly "sourcesTitle": string;
|
|
1654
|
+
readonly "truncate": string;
|
|
1638
1655
|
};
|
|
1639
1656
|
|
|
1640
|
-
type CommandPaletteStyles = typeof styles$
|
|
1657
|
+
type CommandPaletteStyles = typeof styles$l;
|
|
1641
1658
|
|
|
1642
|
-
declare const styles$
|
|
1643
|
-
readonly "root": string;
|
|
1659
|
+
declare const styles$k: {
|
|
1644
1660
|
readonly "content": string;
|
|
1661
|
+
readonly "root": string;
|
|
1645
1662
|
};
|
|
1646
1663
|
|
|
1647
|
-
type DialogStyles = typeof styles$
|
|
1664
|
+
type DialogStyles = typeof styles$k;
|
|
1648
1665
|
|
|
1649
|
-
declare const styles$
|
|
1650
|
-
readonly "root": string;
|
|
1666
|
+
declare const styles$j: {
|
|
1651
1667
|
readonly "empty": string;
|
|
1668
|
+
readonly "root": string;
|
|
1652
1669
|
};
|
|
1653
1670
|
|
|
1654
|
-
type EntitiesListStyles = typeof styles$
|
|
1671
|
+
type EntitiesListStyles = typeof styles$j;
|
|
1655
1672
|
|
|
1656
|
-
declare const styles$
|
|
1657
|
-
readonly "root": string;
|
|
1673
|
+
declare const styles$i: {
|
|
1658
1674
|
readonly "entity": string;
|
|
1659
1675
|
readonly "entityText": string;
|
|
1660
|
-
readonly "iconWrapper": string;
|
|
1661
1676
|
readonly "icon": string;
|
|
1662
1677
|
readonly "iconClicked": string;
|
|
1678
|
+
readonly "iconWrapper": string;
|
|
1679
|
+
readonly "root": string;
|
|
1663
1680
|
};
|
|
1664
1681
|
|
|
1665
|
-
type EntitiesWidgetListStyles = typeof styles$
|
|
1682
|
+
type EntitiesWidgetListStyles = typeof styles$i;
|
|
1666
1683
|
|
|
1667
|
-
declare const styles$
|
|
1668
|
-
readonly "thumbs": string;
|
|
1669
|
-
readonly "fadeup": string;
|
|
1684
|
+
declare const styles$h: {
|
|
1670
1685
|
readonly "fadedown": string;
|
|
1686
|
+
readonly "fadeup": string;
|
|
1671
1687
|
readonly "selected": string;
|
|
1672
|
-
readonly "
|
|
1688
|
+
readonly "thumbs": string;
|
|
1673
1689
|
readonly "thumbsDown": string;
|
|
1690
|
+
readonly "thumbsUp": string;
|
|
1674
1691
|
};
|
|
1675
1692
|
|
|
1676
|
-
type FeedbackThumbsStyles = typeof styles$
|
|
1693
|
+
type FeedbackThumbsStyles = typeof styles$h;
|
|
1677
1694
|
|
|
1678
|
-
declare const styles$
|
|
1679
|
-
readonly "
|
|
1680
|
-
readonly "text": string;
|
|
1695
|
+
declare const styles$g: {
|
|
1696
|
+
readonly "icon": string;
|
|
1681
1697
|
readonly "isLoggedIn": string;
|
|
1682
1698
|
readonly "isLoggedOut": string;
|
|
1683
|
-
readonly "icon": string;
|
|
1684
|
-
readonly "logo": string;
|
|
1685
1699
|
readonly "lock": string;
|
|
1700
|
+
readonly "logo": string;
|
|
1701
|
+
readonly "root": string;
|
|
1702
|
+
readonly "text": string;
|
|
1686
1703
|
};
|
|
1687
1704
|
|
|
1688
|
-
type FloatingMenuStyles = typeof styles$
|
|
1705
|
+
type FloatingMenuStyles = typeof styles$g;
|
|
1689
1706
|
|
|
1690
|
-
declare const styles$
|
|
1691
|
-
readonly "root": string;
|
|
1707
|
+
declare const styles$f: {
|
|
1692
1708
|
readonly "paper": string;
|
|
1709
|
+
readonly "root": string;
|
|
1693
1710
|
};
|
|
1694
1711
|
|
|
1695
|
-
type InlineSuggestionsOverlayStyles = typeof styles$
|
|
1712
|
+
type InlineSuggestionsOverlayStyles = typeof styles$f;
|
|
1696
1713
|
|
|
1697
|
-
declare const styles$
|
|
1698
|
-
readonly "
|
|
1699
|
-
readonly "
|
|
1714
|
+
declare const styles$e: {
|
|
1715
|
+
readonly "alignRight": string;
|
|
1716
|
+
readonly "answer": string;
|
|
1700
1717
|
readonly "empty": string;
|
|
1701
|
-
readonly "status": string;
|
|
1702
1718
|
readonly "form": string;
|
|
1703
1719
|
readonly "input": string;
|
|
1704
|
-
readonly "submit": string;
|
|
1705
|
-
readonly "question": string;
|
|
1706
|
-
readonly "answer": string;
|
|
1707
|
-
readonly "alignRight": string;
|
|
1708
1720
|
readonly "listItemFeedback": string;
|
|
1721
|
+
readonly "question": string;
|
|
1722
|
+
readonly "root": string;
|
|
1723
|
+
readonly "status": string;
|
|
1724
|
+
readonly "submit": string;
|
|
1725
|
+
readonly "title": string;
|
|
1709
1726
|
};
|
|
1710
1727
|
|
|
1711
|
-
type KnowledgeSearchStyles = typeof styles$
|
|
1728
|
+
type KnowledgeSearchStyles = typeof styles$e;
|
|
1712
1729
|
|
|
1713
|
-
declare const styles$
|
|
1714
|
-
readonly "root": string;
|
|
1730
|
+
declare const styles$d: {
|
|
1715
1731
|
readonly "content": string;
|
|
1732
|
+
readonly "root": string;
|
|
1716
1733
|
};
|
|
1717
1734
|
|
|
1718
|
-
type LinkSearchStyles = typeof styles$
|
|
1735
|
+
type LinkSearchStyles = typeof styles$d;
|
|
1719
1736
|
|
|
1720
|
-
declare const styles$
|
|
1737
|
+
declare const styles$c: {
|
|
1721
1738
|
readonly "loadingBar": string;
|
|
1722
1739
|
readonly "placeHolderShimmer": string;
|
|
1723
1740
|
};
|
|
1724
1741
|
|
|
1725
|
-
type LoadingProgressBarStyles = typeof styles$
|
|
1742
|
+
type LoadingProgressBarStyles = typeof styles$c;
|
|
1726
1743
|
|
|
1727
|
-
declare const styles$
|
|
1744
|
+
declare const styles$b: {
|
|
1728
1745
|
readonly "root": string;
|
|
1746
|
+
readonly "rotation": string;
|
|
1747
|
+
};
|
|
1748
|
+
|
|
1749
|
+
type LoadingSpinnerStyles = typeof styles$b;
|
|
1750
|
+
|
|
1751
|
+
declare const styles$a: {
|
|
1729
1752
|
readonly "anchor": string;
|
|
1730
1753
|
readonly "anchorButton": string;
|
|
1754
|
+
readonly "root": string;
|
|
1731
1755
|
};
|
|
1732
1756
|
|
|
1733
|
-
type LoginStyles = typeof styles$
|
|
1757
|
+
type LoginStyles = typeof styles$a;
|
|
1734
1758
|
|
|
1735
|
-
declare const styles$
|
|
1736
|
-
readonly "
|
|
1759
|
+
declare const styles$9: {
|
|
1760
|
+
readonly "actions": string;
|
|
1737
1761
|
readonly "anchorButton": string;
|
|
1762
|
+
readonly "button": string;
|
|
1738
1763
|
readonly "errorMessage": string;
|
|
1739
|
-
readonly "title": string;
|
|
1740
|
-
readonly "subtitle": string;
|
|
1741
|
-
readonly "text": string;
|
|
1742
1764
|
readonly "input": string;
|
|
1743
|
-
readonly "actions": string;
|
|
1744
|
-
readonly "button": string;
|
|
1745
1765
|
readonly "primaryButton": string;
|
|
1766
|
+
readonly "root": string;
|
|
1767
|
+
readonly "subtitle": string;
|
|
1768
|
+
readonly "text": string;
|
|
1769
|
+
readonly "title": string;
|
|
1746
1770
|
};
|
|
1747
1771
|
|
|
1748
|
-
type LoginTokenDialogStyles = typeof styles$
|
|
1772
|
+
type LoginTokenDialogStyles = typeof styles$9;
|
|
1749
1773
|
|
|
1750
|
-
declare const styles$
|
|
1751
|
-
readonly "root": string;
|
|
1752
|
-
readonly "popover": string;
|
|
1753
|
-
readonly "options": string;
|
|
1774
|
+
declare const styles$8: {
|
|
1754
1775
|
readonly "arrow": string;
|
|
1755
1776
|
readonly "copyIcon": string;
|
|
1756
|
-
readonly "option": string;
|
|
1757
1777
|
readonly "divider": string;
|
|
1758
1778
|
readonly "fadeup": string;
|
|
1779
|
+
readonly "option": string;
|
|
1780
|
+
readonly "options": string;
|
|
1781
|
+
readonly "popover": string;
|
|
1782
|
+
readonly "root": string;
|
|
1759
1783
|
};
|
|
1760
1784
|
|
|
1761
|
-
type MarkdownStyles = typeof styles$
|
|
1785
|
+
type MarkdownStyles = typeof styles$8;
|
|
1762
1786
|
|
|
1763
|
-
declare const styles$
|
|
1787
|
+
declare const styles$7: {
|
|
1788
|
+
readonly "button": string;
|
|
1789
|
+
readonly "item": string;
|
|
1790
|
+
readonly "nav": string;
|
|
1764
1791
|
readonly "root": string;
|
|
1765
|
-
readonly "
|
|
1792
|
+
readonly "trigger": string;
|
|
1766
1793
|
};
|
|
1767
1794
|
|
|
1768
|
-
type
|
|
1795
|
+
type OnDemandAssistantsStyles = typeof styles$7;
|
|
1769
1796
|
|
|
1770
|
-
declare const styles$
|
|
1797
|
+
declare const styles$6: {
|
|
1771
1798
|
readonly "root": string;
|
|
1799
|
+
readonly "text": string;
|
|
1800
|
+
};
|
|
1801
|
+
|
|
1802
|
+
type SearchTriggerStyles = typeof styles$6;
|
|
1803
|
+
|
|
1804
|
+
declare const styles$5: {
|
|
1805
|
+
readonly "collapsible": string;
|
|
1806
|
+
readonly "hints": string;
|
|
1807
|
+
readonly "hintsHidden": string;
|
|
1808
|
+
readonly "isCollapsed": string;
|
|
1772
1809
|
readonly "isInline": string;
|
|
1810
|
+
readonly "root": string;
|
|
1773
1811
|
readonly "toggleButton": string;
|
|
1774
1812
|
readonly "toggleButtonWrapper": string;
|
|
1775
1813
|
readonly "toggleButtonWrapperHidden": string;
|
|
1776
|
-
readonly "isCollapsed": string;
|
|
1777
|
-
readonly "collapsible": string;
|
|
1778
|
-
readonly "hints": string;
|
|
1779
|
-
readonly "hintsHidden": string;
|
|
1780
1814
|
readonly "triggers": string;
|
|
1781
1815
|
readonly "triggersRight": string;
|
|
1782
1816
|
};
|
|
1783
1817
|
|
|
1784
|
-
type SuggestionsOverlayStyles = typeof styles$
|
|
1818
|
+
type SuggestionsOverlayStyles = typeof styles$5;
|
|
1785
1819
|
|
|
1786
|
-
declare const styles$
|
|
1787
|
-
readonly "root": string;
|
|
1788
|
-
readonly "container": string;
|
|
1820
|
+
declare const styles$4: {
|
|
1789
1821
|
readonly "agentText": string;
|
|
1790
|
-
readonly "
|
|
1791
|
-
readonly "
|
|
1792
|
-
readonly "matchSelection": string;
|
|
1822
|
+
readonly "caret": string;
|
|
1823
|
+
readonly "container": string;
|
|
1793
1824
|
readonly "focus": string;
|
|
1794
|
-
readonly "
|
|
1825
|
+
readonly "hint": string;
|
|
1826
|
+
readonly "hintText": string;
|
|
1827
|
+
readonly "hover": string;
|
|
1795
1828
|
readonly "matchKeyword": string;
|
|
1796
1829
|
readonly "matchPlaceholder": string;
|
|
1797
|
-
readonly "
|
|
1798
|
-
readonly "hintText": string;
|
|
1830
|
+
readonly "matchSelection": string;
|
|
1799
1831
|
readonly "popover": string;
|
|
1800
|
-
readonly "popoverRoot": string;
|
|
1801
|
-
readonly "popoverContentContainer": string;
|
|
1802
1832
|
readonly "popoverContent": string;
|
|
1833
|
+
readonly "popoverContentContainer": string;
|
|
1834
|
+
readonly "popoverRoot": string;
|
|
1835
|
+
readonly "popoverSuggestionsRoot": string;
|
|
1836
|
+
readonly "resetIndent": string;
|
|
1837
|
+
readonly "root": string;
|
|
1803
1838
|
readonly "selectionOptions": string;
|
|
1804
|
-
readonly "selectionOptionsIsHidden": string;
|
|
1805
1839
|
readonly "selectionOptionsButton": string;
|
|
1806
|
-
readonly "
|
|
1807
|
-
readonly "popoverSuggestionsRoot": string;
|
|
1840
|
+
readonly "selectionOptionsIsHidden": string;
|
|
1808
1841
|
readonly "suggestionsOverlayInputStyles": string;
|
|
1842
|
+
readonly "tabText": string;
|
|
1809
1843
|
};
|
|
1810
1844
|
|
|
1811
|
-
type TabCompletionStyles = typeof styles$
|
|
1845
|
+
type TabCompletionStyles = typeof styles$4;
|
|
1812
1846
|
|
|
1813
|
-
declare const styles$
|
|
1814
|
-
readonly "root": string;
|
|
1847
|
+
declare const styles$3: {
|
|
1815
1848
|
readonly "actions": string;
|
|
1816
1849
|
readonly "badge": string;
|
|
1817
1850
|
readonly "formattedText": string;
|
|
1851
|
+
readonly "root": string;
|
|
1818
1852
|
};
|
|
1819
1853
|
|
|
1820
|
-
type TextSuggestionStyles = typeof styles$
|
|
1854
|
+
type TextSuggestionStyles = typeof styles$3;
|
|
1821
1855
|
|
|
1822
|
-
declare const styles$
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
readonly "link": string;
|
|
1856
|
+
declare const styles$2: {
|
|
1857
|
+
readonly footer: string;
|
|
1858
|
+
readonly footerShortcut: string;
|
|
1859
|
+
readonly link: string;
|
|
1860
|
+
readonly loginText: string;
|
|
1861
|
+
readonly root: string;
|
|
1862
|
+
readonly shortcut: string;
|
|
1863
|
+
readonly shortcutList: string;
|
|
1864
|
+
readonly stateText: string;
|
|
1832
1865
|
};
|
|
1833
1866
|
|
|
1834
|
-
type WidgetStyles = typeof styles$
|
|
1867
|
+
type WidgetStyles = typeof styles$2;
|
|
1835
1868
|
|
|
1836
|
-
declare const styles: {
|
|
1837
|
-
readonly "root": string;
|
|
1838
|
-
readonly "label": string;
|
|
1839
|
-
readonly "value": string;
|
|
1869
|
+
declare const styles$1: {
|
|
1840
1870
|
readonly "copyButton": string;
|
|
1841
1871
|
readonly "copyButtonText": string;
|
|
1842
|
-
readonly "isTrue": string;
|
|
1843
1872
|
readonly "isFalse": string;
|
|
1873
|
+
readonly "isTrue": string;
|
|
1874
|
+
readonly "label": string;
|
|
1875
|
+
readonly "root": string;
|
|
1876
|
+
readonly "value": string;
|
|
1877
|
+
};
|
|
1878
|
+
|
|
1879
|
+
type WidgetCustomDataStyles = typeof styles$1;
|
|
1880
|
+
|
|
1881
|
+
declare const styles: {
|
|
1882
|
+
readonly "actionButton": string;
|
|
1883
|
+
readonly "form": string;
|
|
1884
|
+
readonly "formInput": string;
|
|
1885
|
+
readonly "formSubmit": string;
|
|
1886
|
+
readonly "linkContent": string;
|
|
1887
|
+
readonly "showMoreSources": string;
|
|
1888
|
+
readonly "source": string;
|
|
1889
|
+
readonly "sources": string;
|
|
1890
|
+
readonly "tooltip": string;
|
|
1844
1891
|
};
|
|
1845
1892
|
|
|
1846
|
-
type
|
|
1893
|
+
type WidgetKnowledgeAssistantStyles = typeof styles;
|
|
1847
1894
|
|
|
1848
1895
|
type WidgetCustomStyles = {
|
|
1849
1896
|
Card?: Partial<CardStyles>;
|
|
@@ -1851,9 +1898,11 @@ type WidgetCustomStyles = {
|
|
|
1851
1898
|
KeyboardHint?: Partial<KeyboardHintStyles>;
|
|
1852
1899
|
Label?: Partial<LabelStyles>;
|
|
1853
1900
|
LoadingProgressBar?: Partial<LoadingProgressBarStyles>;
|
|
1901
|
+
LoadingSpinner?: Partial<LoadingSpinnerStyles>;
|
|
1854
1902
|
LinkSearch?: Partial<LinkSearchStyles>;
|
|
1855
1903
|
Login?: Partial<LoginStyles>;
|
|
1856
1904
|
Markdown?: Partial<MarkdownStyles>;
|
|
1905
|
+
OnDemandAssistants?: Partial<OnDemandAssistantsStyles>;
|
|
1857
1906
|
Section?: Partial<SectionStyles>;
|
|
1858
1907
|
SectionList?: Partial<SectionListStyles>;
|
|
1859
1908
|
Suggestion?: Partial<SuggestionStyles>;
|
|
@@ -1861,6 +1910,7 @@ type WidgetCustomStyles = {
|
|
|
1861
1910
|
EntitiesWidgetList?: Partial<EntitiesWidgetListStyles>;
|
|
1862
1911
|
Widget?: Partial<WidgetStyles>;
|
|
1863
1912
|
WidgetCustomData?: Partial<WidgetCustomDataStyles>;
|
|
1913
|
+
WidgetKnowledgeAssistant?: Partial<WidgetKnowledgeAssistantStyles>;
|
|
1864
1914
|
};
|
|
1865
1915
|
type InputOverlayCustomStyles = {
|
|
1866
1916
|
CommandPalette?: Partial<CommandPaletteStyles>;
|
|
@@ -1966,7 +2016,7 @@ interface SDKEventMap {
|
|
|
1966
2016
|
};
|
|
1967
2017
|
'edit-suggestion': EditTextSuggestionPayload;
|
|
1968
2018
|
'send-message': string;
|
|
1969
|
-
'send-message-event': SendMessageEventData;
|
|
2019
|
+
'send-message-event': SendMessageEventData$1;
|
|
1970
2020
|
'event': {
|
|
1971
2021
|
name: string;
|
|
1972
2022
|
data: unknown;
|
|
@@ -1974,6 +2024,9 @@ interface SDKEventMap {
|
|
|
1974
2024
|
'call-to-action': {
|
|
1975
2025
|
cue: LegacyCue;
|
|
1976
2026
|
};
|
|
2027
|
+
'summary-generated': {
|
|
2028
|
+
summary: string;
|
|
2029
|
+
};
|
|
1977
2030
|
logout: undefined;
|
|
1978
2031
|
ready: undefined;
|
|
1979
2032
|
showSearchOverlay: boolean;
|
|
@@ -1997,10 +2050,22 @@ interface RenderOptions {
|
|
|
1997
2050
|
}
|
|
1998
2051
|
interface MountOptions extends Partial<Settings>, RenderOptions {
|
|
1999
2052
|
}
|
|
2053
|
+
interface KnowledgeAssistOptions {
|
|
2054
|
+
initialQuestion?: string;
|
|
2055
|
+
emptyState?: {
|
|
2056
|
+
title: string;
|
|
2057
|
+
description: string;
|
|
2058
|
+
};
|
|
2059
|
+
}
|
|
2000
2060
|
interface WidgetOptions {
|
|
2001
2061
|
customStyles?: WidgetCustomStyles;
|
|
2002
2062
|
showImages?: boolean;
|
|
2003
2063
|
isEmbedded?: boolean;
|
|
2064
|
+
knowledgeAssist?: KnowledgeAssistOptions;
|
|
2065
|
+
}
|
|
2066
|
+
interface KnowledgeAssistantWidgetOptions extends KnowledgeAssistOptions {
|
|
2067
|
+
customStyles?: WidgetCustomStyles;
|
|
2068
|
+
isLegacyKnowledgeAssist?: boolean;
|
|
2004
2069
|
}
|
|
2005
2070
|
declare class DeepdeskSDK {
|
|
2006
2071
|
static version: string;
|
|
@@ -2022,23 +2087,22 @@ declare class DeepdeskSDK {
|
|
|
2022
2087
|
store: Store;
|
|
2023
2088
|
constructor({ deepdeskUrl, version, locale, token, fetch, productName, createCustomChannel, }: SDKOptions);
|
|
2024
2089
|
get state(): redux.EmptyObject & {
|
|
2025
|
-
assistants: State$
|
|
2026
|
-
auth: State$
|
|
2027
|
-
conversation: State$
|
|
2028
|
-
contentTypes: State$
|
|
2029
|
-
passwordlessToken: State$
|
|
2030
|
-
entities: State$
|
|
2031
|
-
|
|
2032
|
-
handlingTime: State$4;
|
|
2090
|
+
assistants: State$2;
|
|
2091
|
+
auth: State$3;
|
|
2092
|
+
conversation: State$4;
|
|
2093
|
+
contentTypes: State$5;
|
|
2094
|
+
passwordlessToken: State$6;
|
|
2095
|
+
entities: State$1;
|
|
2096
|
+
handlingTime: State$7;
|
|
2033
2097
|
info: {
|
|
2034
|
-
agentInfo?: AgentInfo
|
|
2098
|
+
agentInfo?: AgentInfo;
|
|
2035
2099
|
agentSettings: unknown;
|
|
2036
|
-
visitorInfo?: VisitorInfo
|
|
2037
|
-
customData?: CustomData
|
|
2038
|
-
platformVariables?: VariableMapping
|
|
2100
|
+
visitorInfo?: VisitorInfo;
|
|
2101
|
+
customData?: CustomData;
|
|
2102
|
+
platformVariables?: VariableMapping;
|
|
2039
2103
|
fetchState: FetchState;
|
|
2040
2104
|
};
|
|
2041
|
-
input: State$
|
|
2105
|
+
input: State$8;
|
|
2042
2106
|
settings: {
|
|
2043
2107
|
locale: Locale;
|
|
2044
2108
|
deanonymize: boolean;
|
|
@@ -2047,7 +2111,7 @@ declare class DeepdeskSDK {
|
|
|
2047
2111
|
showImages: boolean;
|
|
2048
2112
|
showSearch: boolean;
|
|
2049
2113
|
showImageSearch: boolean;
|
|
2050
|
-
showStyleSuggestions:
|
|
2114
|
+
showStyleSuggestions: boolean | number;
|
|
2051
2115
|
showMidSentenceSuggestions: boolean;
|
|
2052
2116
|
showSuggestionsBeforePattern: string | false;
|
|
2053
2117
|
showSuggestionsAfterPattern: string | false;
|
|
@@ -2065,15 +2129,15 @@ declare class DeepdeskSDK {
|
|
|
2065
2129
|
floatingMenu: boolean;
|
|
2066
2130
|
detectSubmit: boolean;
|
|
2067
2131
|
automaticHandlingTime: boolean;
|
|
2068
|
-
adminUrl?: string
|
|
2132
|
+
adminUrl?: string;
|
|
2069
2133
|
productName: string;
|
|
2070
2134
|
enableSuggestionFeedback: boolean;
|
|
2071
2135
|
enableFeedbackForm: boolean;
|
|
2072
2136
|
hasKeyboardInput: boolean;
|
|
2073
2137
|
};
|
|
2074
|
-
profile: State$
|
|
2075
|
-
search: State$
|
|
2076
|
-
styleSuggestions: State$
|
|
2138
|
+
profile: State$9;
|
|
2139
|
+
search: State$b;
|
|
2140
|
+
styleSuggestions: State$a;
|
|
2077
2141
|
ui: {
|
|
2078
2142
|
showTabHint: boolean;
|
|
2079
2143
|
inputHasFocus: boolean;
|
|
@@ -2091,7 +2155,7 @@ declare class DeepdeskSDK {
|
|
|
2091
2155
|
showImages: boolean;
|
|
2092
2156
|
showSearch: boolean;
|
|
2093
2157
|
showImageSearch: boolean;
|
|
2094
|
-
showStyleSuggestions:
|
|
2158
|
+
showStyleSuggestions: boolean | number;
|
|
2095
2159
|
showMidSentenceSuggestions: boolean;
|
|
2096
2160
|
showSuggestionsBeforePattern: string | false;
|
|
2097
2161
|
showSuggestionsAfterPattern: string | false;
|
|
@@ -2109,7 +2173,7 @@ declare class DeepdeskSDK {
|
|
|
2109
2173
|
floatingMenu: boolean;
|
|
2110
2174
|
detectSubmit: boolean;
|
|
2111
2175
|
automaticHandlingTime: boolean;
|
|
2112
|
-
adminUrl?: string
|
|
2176
|
+
adminUrl?: string;
|
|
2113
2177
|
productName: string;
|
|
2114
2178
|
enableSuggestionFeedback: boolean;
|
|
2115
2179
|
enableFeedbackForm: boolean;
|
|
@@ -2281,6 +2345,9 @@ declare class DeepdeskSDK {
|
|
|
2281
2345
|
*/
|
|
2282
2346
|
renderWidget(containerElement: HTMLElement, options?: WidgetOptions): void;
|
|
2283
2347
|
unmountWidget(): void;
|
|
2348
|
+
renderKnowledgeAssistantWidget(assistantCode: string, containerElement: HTMLElement, options?: KnowledgeAssistantWidgetOptions): {
|
|
2349
|
+
unmount(): void;
|
|
2350
|
+
};
|
|
2284
2351
|
private setupHandlingTime;
|
|
2285
2352
|
private handleError;
|
|
2286
2353
|
private loadProfileConfigPromise;
|