@inkeep/agents-ui 0.14.20 → 0.14.22
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/color-mode/index.d.ts +21 -0
- package/dist/index.d.ts +1 -5103
- package/dist/primitives/atoms/avatars/ai.d.ts +3 -0
- package/dist/primitives/atoms/avatars/user.d.ts +3 -0
- package/dist/primitives/atoms/cmdk/command-score.d.ts +1 -0
- package/dist/primitives/atoms/cmdk/index.d.ts +460 -0
- package/dist/primitives/atoms/codeblock/index.d.ts +10 -0
- package/dist/primitives/atoms/custom-styles.d.ts +5 -0
- package/dist/primitives/atoms/dialog.d.ts +94 -0
- package/dist/primitives/atoms/error-boundary.d.ts +6 -0
- package/dist/primitives/atoms/icons/built-in-icon-renderer.d.ts +6 -0
- package/dist/primitives/atoms/icons/built-in-icons.d.ts +83 -0
- package/dist/primitives/atoms/icons/checkbox-icon.d.ts +1 -0
- package/dist/primitives/atoms/icons/collections/bi.d.ts +4 -0
- package/dist/primitives/atoms/icons/collections/fi.d.ts +2 -0
- package/dist/primitives/atoms/icons/collections/gr.d.ts +2 -0
- package/dist/primitives/atoms/icons/collections/io5.d.ts +34 -0
- package/dist/primitives/atoms/icons/collections/pi.d.ts +4 -0
- package/dist/primitives/atoms/icons/custom-icon.d.ts +6 -0
- package/dist/primitives/atoms/icons/generate-icon.d.ts +28 -0
- package/dist/primitives/atoms/icons/index.d.ts +2 -0
- package/dist/primitives/atoms/icons/inkeep-default-icons.d.ts +2 -0
- package/dist/primitives/atoms/link.d.ts +14 -0
- package/dist/primitives/atoms/markdown/components.d.ts +31 -0
- package/dist/primitives/atoms/markdown/index.d.ts +17 -0
- package/dist/primitives/atoms/markdown/rehype-inline-code-property.d.ts +1 -0
- package/dist/primitives/atoms/portal-with-theme.d.ts +2 -0
- package/dist/primitives/atoms/portal.d.ts +8 -0
- package/dist/primitives/atoms/select.d.ts +136 -0
- package/dist/primitives/atoms/shadow/context.d.ts +14 -0
- package/dist/primitives/atoms/shadow/create.d.ts +8 -0
- package/dist/primitives/atoms/shadow/index.d.ts +1 -0
- package/dist/primitives/atoms/shadow/root.d.ts +5 -0
- package/dist/primitives/atoms/shadow/use-ensured-forwarded-ref.d.ts +2 -0
- package/dist/primitives/atoms/shadow/utils.d.ts +9 -0
- package/dist/primitives/components/chat-button.d.ts +18 -0
- package/dist/primitives/components/embedded-chat/chat-provider.d.ts +19 -0
- package/dist/primitives/components/embedded-chat/use-captcha.d.ts +13 -0
- package/dist/primitives/components/embedded-chat/use-chat-action.d.ts +9 -0
- package/dist/primitives/components/embedded-chat/use-inkeep-chat.d.ts +27 -0
- package/dist/primitives/components/embedded-chat/use-stream-processor.cjs +1 -1
- package/dist/primitives/components/embedded-chat/use-stream-processor.d.ts +28 -0
- package/dist/primitives/components/embedded-chat/use-stream-processor.js +27 -28
- package/dist/primitives/components/embedded-chat.cjs +3 -3
- package/dist/primitives/components/embedded-chat.d.ts +431 -0
- package/dist/primitives/components/embedded-chat.js +775 -776
- package/dist/primitives/components/embedded-search/search-provider.d.ts +21 -0
- package/dist/primitives/components/embedded-search/transform-results.d.ts +3 -0
- package/dist/primitives/components/embedded-search/url-query.d.ts +4 -0
- package/dist/primitives/components/embedded-search/use-inkeep-search.d.ts +19 -0
- package/dist/primitives/components/embedded-search/use-search-filter.d.ts +1 -0
- package/dist/primitives/components/embedded-search.d.ts +249 -0
- package/dist/primitives/components/factory.d.ts +19 -0
- package/dist/primitives/components/index.d.ts +10 -0
- package/dist/primitives/components/modal/modal-provider.d.ts +12 -0
- package/dist/primitives/components/modal/use-inkeep-modal.d.ts +7 -0
- package/dist/primitives/components/modal/widget-auto-focus.d.ts +2 -0
- package/dist/primitives/components/modal.d.ts +18 -0
- package/dist/primitives/components/presence.d.ts +8 -0
- package/dist/primitives/components/searchbar.d.ts +23 -0
- package/dist/primitives/components/sidebar-chat/index.d.ts +9 -0
- package/dist/primitives/components/sidebar-chat/use-sidebar-chat-resizer.d.ts +5 -0
- package/dist/primitives/components/tagline-logo-icon.d.ts +1 -0
- package/dist/primitives/components/use-component-trigger.d.ts +5 -0
- package/dist/primitives/constants/search.d.ts +1 -0
- package/dist/primitives/hooks/index.d.ts +11 -0
- package/dist/primitives/hooks/use-boolean.d.ts +10 -0
- package/dist/primitives/hooks/use-component-classnames.d.ts +6 -0
- package/dist/primitives/hooks/use-container-size.d.ts +5 -0
- package/dist/primitives/hooks/use-copy-to-clipboard.d.ts +3 -0
- package/dist/primitives/hooks/use-debounce.d.ts +1 -0
- package/dist/primitives/hooks/use-instant-update.d.ts +17 -0
- package/dist/primitives/hooks/use-is-mounted.d.ts +1 -0
- package/dist/primitives/hooks/use-media-query.d.ts +1 -0
- package/dist/primitives/hooks/use-resize-observer.d.ts +12 -0
- package/dist/primitives/hooks/use-scrolling-fades.d.ts +2 -0
- package/dist/primitives/hooks/use-settle-action.d.ts +3 -0
- package/dist/primitives/hooks/use-simple-scroll.d.ts +5 -0
- package/dist/primitives/hooks/use-streaming-events.d.ts +8 -0
- package/dist/primitives/index.d.ts +13 -0
- package/dist/primitives/providers/attachment-item-provider.d.ts +9 -0
- package/dist/primitives/providers/attachments-bar-provider.d.ts +30 -0
- package/dist/primitives/providers/base-events-provider.cjs +1 -1
- package/dist/primitives/providers/base-events-provider.d.ts +8 -0
- package/dist/primitives/providers/base-events-provider.js +1 -1
- package/dist/primitives/providers/chat-form-provider.d.ts +26 -0
- package/dist/primitives/providers/config-provider.d.ts +25 -0
- package/dist/primitives/providers/feedback-item-provider.d.ts +10 -0
- package/dist/primitives/providers/feedback-provider.d.ts +16 -0
- package/dist/primitives/providers/form-field-provider.d.ts +15 -0
- package/dist/primitives/providers/help-menu-provider.d.ts +11 -0
- package/dist/primitives/providers/hover-popover-provider.d.ts +10 -0
- package/dist/primitives/providers/index.d.ts +17 -0
- package/dist/primitives/providers/markdown-provider.d.ts +9 -0
- package/dist/primitives/providers/message-attachments-provider.d.ts +13 -0
- package/dist/primitives/providers/message-provider.d.ts +10 -0
- package/dist/primitives/providers/root-provider.d.ts +8 -0
- package/dist/primitives/providers/search-events-provider.d.ts +8 -0
- package/dist/primitives/providers/sidebar-chat-provider.d.ts +83 -0
- package/dist/primitives/providers/source-item-provider.d.ts +12 -0
- package/dist/primitives/providers/theme-provider.d.ts +3 -0
- package/dist/primitives/providers/widget-provider.d.ts +10 -0
- package/dist/primitives/utils/component-ids.d.ts +572 -0
- package/dist/primitives/utils/compose-event-handlers.d.ts +3 -0
- package/dist/primitives/utils/compose-refs.d.ts +5 -0
- package/dist/primitives/utils/default-settings.d.ts +167 -0
- package/dist/primitives/utils/form.d.ts +3 -0
- package/dist/primitives/utils/generate-uid.d.ts +2 -0
- package/dist/primitives/utils/get-message-metadata.d.ts +8 -0
- package/dist/primitives/utils/get-source-icon.d.ts +2 -0
- package/dist/primitives/utils/highlight-emphasis.d.ts +4 -0
- package/dist/primitives/utils/merge-props.d.ts +7 -0
- package/dist/primitives/utils/misc.d.ts +12 -0
- package/dist/primitives/utils/split-props.d.ts +15 -0
- package/dist/react/chat-button.d.ts +14 -0
- package/dist/react/embedded-chat.d.ts +14 -0
- package/dist/react/embedded-search-and-chat.d.ts +40 -0
- package/dist/react/embedded-search-and-chat.impl.d.ts +9 -0
- package/dist/react/embedded-search.d.ts +17 -0
- package/dist/react/index.d.ts +12 -0
- package/dist/react/modal.chat.d.ts +6 -0
- package/dist/react/modal.d.ts +23 -0
- package/dist/react/modal.search-and-chat.d.ts +6 -0
- package/dist/react/modal.search.d.ts +6 -0
- package/dist/react/searchbar.d.ts +13 -0
- package/dist/react/sidebar-chat.d.ts +6 -0
- package/dist/react/utils.d.ts +6 -0
- package/dist/react/widget-toggle.d.ts +14 -0
- package/dist/styled/components/chat-button.d.ts +8 -0
- package/dist/styled/components/data-summary-group.d.ts +11 -0
- package/dist/styled/components/embedded-chat.d.ts +190 -0
- package/dist/styled/components/embedded-search/results-loading.d.ts +1 -0
- package/dist/styled/components/embedded-search.d.ts +73 -0
- package/dist/styled/components/index.d.ts +11 -0
- package/dist/styled/components/loading-indicator.d.ts +1 -0
- package/dist/styled/components/message.cjs +1 -1
- package/dist/styled/components/message.d.ts +4 -0
- package/dist/styled/components/message.js +46 -47
- package/dist/styled/components/modal.d.ts +6 -0
- package/dist/styled/components/searchbar.d.ts +11 -0
- package/dist/styled/components/shadow.d.ts +3 -0
- package/dist/styled/components/sidebar-chat.d.ts +6 -0
- package/dist/styled/components/ui/markdown-styles.d.ts +23 -0
- package/dist/styled/components/ui/recipes/ai-chat-page-wrapper.d.ts +7 -0
- package/dist/styled/components/ui/recipes/attachment.d.ts +4 -0
- package/dist/styled/components/ui/recipes/button.d.ts +6 -0
- package/dist/styled/components/ui/recipes/checkbox.d.ts +4 -0
- package/dist/styled/components/ui/recipes/citation.d.ts +4 -0
- package/dist/styled/components/ui/recipes/icon.d.ts +2 -0
- package/dist/styled/components/ui/recipes/index.d.ts +15 -0
- package/dist/styled/components/ui/recipes/input.d.ts +5 -0
- package/dist/styled/components/ui/recipes/link.d.ts +2 -0
- package/dist/styled/components/ui/recipes/markdown.cjs +1 -1
- package/dist/styled/components/ui/recipes/markdown.d.ts +16 -0
- package/dist/styled/components/ui/recipes/markdown.js +1 -1
- package/dist/styled/components/ui/recipes/modal.d.ts +4 -0
- package/dist/styled/components/ui/recipes/popover.d.ts +4 -0
- package/dist/styled/components/ui/recipes/scrollable.d.ts +4 -0
- package/dist/styled/components/ui/recipes/select.d.ts +4 -0
- package/dist/styled/components/ui/recipes/skeleton.d.ts +2 -0
- package/dist/styled/components/ui/recipes/widget-toggle.d.ts +4 -0
- package/dist/styled/index.d.ts +2 -0
- package/dist/styled/utils.d.ts +4 -0
- package/dist/theme/color-utils.d.ts +1 -0
- package/dist/theme/colors.d.ts +104 -0
- package/dist/theme/index.d.ts +125 -0
- package/dist/theme/utils/create-css-variables.d.ts +2 -0
- package/dist/theme/utils/generate-theme-variables.d.ts +3 -0
- package/dist/types/color-mode.d.ts +44 -0
- package/dist/types/config/ai.d.ts +243 -0
- package/dist/types/config/base.d.ts +344 -0
- package/dist/types/config/components.d.ts +10 -0
- package/dist/types/config/filters.d.ts +17 -0
- package/dist/types/config/index.d.ts +36 -0
- package/dist/types/config/modal.d.ts +33 -0
- package/dist/types/config/search.d.ts +95 -0
- package/dist/types/config/settings/actions.d.ts +37 -0
- package/dist/types/config/settings/form.d.ts +128 -0
- package/dist/types/config/settings/jsonschema.d.ts +105 -0
- package/dist/types/config/settings/workflow.d.ts +86 -0
- package/dist/types/events.d.ts +173 -0
- package/dist/types/icons/built-in.d.ts +1 -0
- package/dist/types/icons/custom.d.ts +29 -0
- package/dist/types/icons/index.d.ts +2 -0
- package/dist/types/index.d.ts +20 -0
- package/dist/types/js/index.d.ts +54 -0
- package/dist/types/message.d.ts +43 -0
- package/dist/types/shadow.d.ts +15 -0
- package/dist/types/sources.d.ts +108 -0
- package/dist/types/theme.d.ts +25 -0
- package/dist/types/widget.d.ts +28 -0
- package/package.json +4 -6
- package/dist/index.d.cts +0 -5103
- package/dist/types/message.cjs +0 -1
- package/dist/types/message.js +0 -5
- package/dist/types/types.d.cts +0 -1758
- package/dist/types/types.d.ts +0 -1758
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { SourceItem } from '../sources';
|
|
2
|
+
export interface InkeepSearchSettings {
|
|
3
|
+
/**
|
|
4
|
+
* The placeholder text to use.
|
|
5
|
+
* @default
|
|
6
|
+
* 'Search anything...' (desktop)
|
|
7
|
+
* 'Search' (mobile)
|
|
8
|
+
*/
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
/**
|
|
11
|
+
* The default query to use.
|
|
12
|
+
* @default ''
|
|
13
|
+
*/
|
|
14
|
+
defaultQuery?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Callback for when the search query changes.
|
|
17
|
+
*/
|
|
18
|
+
onQueryChange?: (query: string) => void;
|
|
19
|
+
/**
|
|
20
|
+
* Search callback function that handles all search functionality.
|
|
21
|
+
* This callback handles the complete search implementation.
|
|
22
|
+
* If not provided, the widget will warn and show no results.
|
|
23
|
+
*
|
|
24
|
+
* @param query - The search query string
|
|
25
|
+
* @param abortSignal - Signal to abort the search request
|
|
26
|
+
* @returns Promise that resolves with search results
|
|
27
|
+
*/
|
|
28
|
+
onSearch?: (query: string, abortSignal: AbortSignal) => Promise<SourceItem[]>;
|
|
29
|
+
/**
|
|
30
|
+
* The time in milliseconds to wait triggering the search.
|
|
31
|
+
* @default 0
|
|
32
|
+
*/
|
|
33
|
+
debounceTimeMs?: number;
|
|
34
|
+
/**
|
|
35
|
+
* Ref to the AIChat component's callable functions
|
|
36
|
+
*/
|
|
37
|
+
searchFunctionsRef?: React.Ref<SearchFunctions>;
|
|
38
|
+
/**
|
|
39
|
+
* Controls whether links should open in a new tab.
|
|
40
|
+
* @default false
|
|
41
|
+
*/
|
|
42
|
+
shouldOpenLinksInNewTab?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Tabs to display in the search results, and in the **desired order**. Each tab can be either a string or a tuple of [string, options].
|
|
45
|
+
*
|
|
46
|
+
* Default tabs if none provided: All, Publications, PDFs, GitHub, Forums, Discord, Slack, StackOverflow
|
|
47
|
+
*
|
|
48
|
+
* Behavior:
|
|
49
|
+
* - Omit 'All' from tabs array to hide the All tab
|
|
50
|
+
* - Empty tabs array will show all results without tab UI
|
|
51
|
+
* - Tabs only appear when they have results, unless isAlwaysVisible is set
|
|
52
|
+
*
|
|
53
|
+
* @example
|
|
54
|
+
* ```ts
|
|
55
|
+
* // Basic tabs
|
|
56
|
+
* tabs: ['Publications', 'GitHub']
|
|
57
|
+
*
|
|
58
|
+
* // With isAlwaysVisible option
|
|
59
|
+
* tabs: [
|
|
60
|
+
* 'Publications',
|
|
61
|
+
* ['GitHub', { isAlwaysVisible: true }] // Shows even with no results
|
|
62
|
+
* ]
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
tabs?: (string | SearchTab)[];
|
|
66
|
+
/**
|
|
67
|
+
* The key to use for the search query parameter.
|
|
68
|
+
*
|
|
69
|
+
* When a user selects a search result, the query is added to the URL as a query parameter.
|
|
70
|
+
* This is the key of that query parameter.
|
|
71
|
+
*
|
|
72
|
+
*/
|
|
73
|
+
searchQueryParamKey?: string;
|
|
74
|
+
/**
|
|
75
|
+
* The view to use for the search.
|
|
76
|
+
* @default 'single-pane'
|
|
77
|
+
*/
|
|
78
|
+
view?: 'single-pane' | 'dual-pane';
|
|
79
|
+
}
|
|
80
|
+
export interface SearchTab {
|
|
81
|
+
[0]: string;
|
|
82
|
+
[1]: {
|
|
83
|
+
isAlwaysVisible?: boolean;
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
export interface SearchFunctions {
|
|
87
|
+
/**
|
|
88
|
+
* Update the query.
|
|
89
|
+
*/
|
|
90
|
+
updateQuery: (query: string) => void;
|
|
91
|
+
/**
|
|
92
|
+
* Focus the input.
|
|
93
|
+
*/
|
|
94
|
+
focusInput: () => void;
|
|
95
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { InkeepCustomIcon } from '../../icons';
|
|
2
|
+
import { Message } from '../../message';
|
|
3
|
+
import { AIChatFormSettings } from './form';
|
|
4
|
+
export interface OpenFormAction {
|
|
5
|
+
type: 'open_form';
|
|
6
|
+
formSettings: AIChatFormSettings;
|
|
7
|
+
}
|
|
8
|
+
export interface OpenUrlAction {
|
|
9
|
+
type: 'open_link';
|
|
10
|
+
url: string;
|
|
11
|
+
}
|
|
12
|
+
interface InvokeCallbackArgs {
|
|
13
|
+
conversation: {
|
|
14
|
+
id: string;
|
|
15
|
+
messages: Message[];
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export interface InvokeCallbackAction {
|
|
19
|
+
type: 'invoke_callback';
|
|
20
|
+
callback: (args: InvokeCallbackArgs) => void;
|
|
21
|
+
shouldCloseModal?: boolean;
|
|
22
|
+
}
|
|
23
|
+
type ChatAction = InvokeCallbackAction | OpenFormAction | OpenUrlAction;
|
|
24
|
+
export type ChatActionType = ChatAction['type'];
|
|
25
|
+
export interface GetHelpOption {
|
|
26
|
+
icon?: InkeepCustomIcon;
|
|
27
|
+
name: string;
|
|
28
|
+
isPinnedToToolbar?: boolean;
|
|
29
|
+
action: ChatAction;
|
|
30
|
+
}
|
|
31
|
+
export interface AnnotationAction {
|
|
32
|
+
label?: string;
|
|
33
|
+
icon?: InkeepCustomIcon;
|
|
34
|
+
action: ChatAction;
|
|
35
|
+
}
|
|
36
|
+
export type IkpChatAction = GetHelpOption | AnnotationAction;
|
|
37
|
+
export {};
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { InkeepCustomIcon } from '../../icons';
|
|
2
|
+
import { Message } from '../../message';
|
|
3
|
+
export type FieldValues = Record<string, any>;
|
|
4
|
+
export interface AIChatFormSettings {
|
|
5
|
+
heading?: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
buttons: AIChatFormButtons;
|
|
8
|
+
fields: FormField[];
|
|
9
|
+
successView?: AIChatFormSuccessView;
|
|
10
|
+
}
|
|
11
|
+
export interface SubmitCallbackArgs {
|
|
12
|
+
values: FieldValues;
|
|
13
|
+
conversation?: {
|
|
14
|
+
id: string;
|
|
15
|
+
messages: Message[];
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export type SubmitCallback = (values: SubmitCallbackArgs) => Promise<void> | void;
|
|
19
|
+
export type CloseFormAction = 'return_to_chat' | 'close_modal';
|
|
20
|
+
export interface AIChatFormButtons {
|
|
21
|
+
submit: {
|
|
22
|
+
label?: string;
|
|
23
|
+
onSubmit: SubmitCallback;
|
|
24
|
+
};
|
|
25
|
+
close?: {
|
|
26
|
+
action: CloseFormAction;
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
interface AIChatFormDoneButton {
|
|
30
|
+
label: string;
|
|
31
|
+
icon?: InkeepCustomIcon;
|
|
32
|
+
action: CloseFormAction;
|
|
33
|
+
}
|
|
34
|
+
interface AIChatFormSuccessView {
|
|
35
|
+
heading: string;
|
|
36
|
+
message: string;
|
|
37
|
+
doneButton: AIChatFormDoneButton;
|
|
38
|
+
}
|
|
39
|
+
export type FormField = CheckboxField | FileField | SelectField | TextField | IncludeChatSessionField;
|
|
40
|
+
export type FormInputType = NonNullable<FormField['inputType']>;
|
|
41
|
+
export interface BaseFormField {
|
|
42
|
+
name: string;
|
|
43
|
+
label: string;
|
|
44
|
+
isRequired?: boolean;
|
|
45
|
+
isHidden?: boolean;
|
|
46
|
+
description?: string;
|
|
47
|
+
}
|
|
48
|
+
interface CheckboxField extends BaseFormField {
|
|
49
|
+
inputType: 'checkbox';
|
|
50
|
+
defaultValue?: boolean;
|
|
51
|
+
}
|
|
52
|
+
interface FileField extends BaseFormField {
|
|
53
|
+
inputType: 'file';
|
|
54
|
+
}
|
|
55
|
+
export interface SelectItem {
|
|
56
|
+
label: string;
|
|
57
|
+
value: string;
|
|
58
|
+
}
|
|
59
|
+
interface SelectField extends BaseFormField {
|
|
60
|
+
inputType: 'select';
|
|
61
|
+
items: SelectItem[];
|
|
62
|
+
defaultValue?: string;
|
|
63
|
+
placeholder?: string;
|
|
64
|
+
}
|
|
65
|
+
interface TextField extends BaseFormField {
|
|
66
|
+
inputType: 'email' | 'text' | 'textarea';
|
|
67
|
+
defaultValue?: string;
|
|
68
|
+
placeholder?: string;
|
|
69
|
+
}
|
|
70
|
+
export interface IncludeChatSessionField extends BaseFormField {
|
|
71
|
+
_type: 'include_chat_session';
|
|
72
|
+
inputType?: 'checkbox';
|
|
73
|
+
defaultValue?: boolean;
|
|
74
|
+
}
|
|
75
|
+
export type IntelligentFormField = Exclude<FormField, IncludeChatSessionField> & {
|
|
76
|
+
/**
|
|
77
|
+
* Controls whether to prefill the field with the AI's response
|
|
78
|
+
*/
|
|
79
|
+
shouldPrefillWithAI?: boolean;
|
|
80
|
+
};
|
|
81
|
+
export interface IntelligentFormSuccessView {
|
|
82
|
+
heading: string;
|
|
83
|
+
message: string;
|
|
84
|
+
icon?: InkeepCustomIcon;
|
|
85
|
+
}
|
|
86
|
+
export interface IntelligentFormButtons {
|
|
87
|
+
/** Callback function called when form is submitted */
|
|
88
|
+
submit: {
|
|
89
|
+
label?: string;
|
|
90
|
+
onSubmit: SubmitCallback;
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
export interface IntelligentFormSettings {
|
|
94
|
+
/**
|
|
95
|
+
* Primary form section that is always shown
|
|
96
|
+
*/
|
|
97
|
+
primary: {
|
|
98
|
+
/** Array of form fields to display */
|
|
99
|
+
fields: IntelligentFormField[];
|
|
100
|
+
/** Optional description text shown above the fields */
|
|
101
|
+
description?: string;
|
|
102
|
+
};
|
|
103
|
+
/**
|
|
104
|
+
* Secondary form section that can be conditionally shown
|
|
105
|
+
*/
|
|
106
|
+
secondary: {
|
|
107
|
+
/** Array of form fields to display */
|
|
108
|
+
fields: IntelligentFormField[];
|
|
109
|
+
/**
|
|
110
|
+
* Optional description text shown above the fields.
|
|
111
|
+
* Can be either a simple string or an object with different messages
|
|
112
|
+
* based on AI confidence level
|
|
113
|
+
*/
|
|
114
|
+
description?: string | {
|
|
115
|
+
/** Default message shown when AI confidence is low/medium */
|
|
116
|
+
default: string;
|
|
117
|
+
/** Message shown when AI has high confidence */
|
|
118
|
+
confident: string;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
/** Configuration for the success view shown after form submission */
|
|
122
|
+
successView: IntelligentFormSuccessView;
|
|
123
|
+
/** Configuration for the buttons shown in the form */
|
|
124
|
+
buttons: IntelligentFormButtons;
|
|
125
|
+
/** Optional name of the assistant shown in the form */
|
|
126
|
+
aiAssistantName?: string;
|
|
127
|
+
}
|
|
128
|
+
export {};
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Primitive type
|
|
3
|
+
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.1.1
|
|
4
|
+
*/
|
|
5
|
+
export type JSONSchemaTypeName = ({} & string) | 'string' | 'number' | 'integer' | 'boolean' | 'object' | 'array' | 'null';
|
|
6
|
+
/**
|
|
7
|
+
* Primitive type
|
|
8
|
+
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.1.1
|
|
9
|
+
*/
|
|
10
|
+
export type JSONSchemaType = string | number | boolean | JSONSchemaObject | JSONSchemaArray | null;
|
|
11
|
+
export interface JSONSchemaObject {
|
|
12
|
+
[key: string]: JSONSchemaType;
|
|
13
|
+
}
|
|
14
|
+
export interface JSONSchemaArray extends Array<JSONSchemaType> {
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Meta schema
|
|
18
|
+
*
|
|
19
|
+
* Recommended values:
|
|
20
|
+
* - 'http://json-schema.org/schema#'
|
|
21
|
+
* - 'http://json-schema.org/hyper-schema#'
|
|
22
|
+
* - 'http://json-schema.org/draft-07/schema#'
|
|
23
|
+
* - 'http://json-schema.org/draft-07/hyper-schema#'
|
|
24
|
+
*
|
|
25
|
+
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-5
|
|
26
|
+
*/
|
|
27
|
+
export type JSONSchemaVersion = string;
|
|
28
|
+
/**
|
|
29
|
+
* JSON Schema v7
|
|
30
|
+
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01
|
|
31
|
+
*/
|
|
32
|
+
export type JSONSchemaDefinition = JSONSchema | boolean;
|
|
33
|
+
export interface JSONSchema {
|
|
34
|
+
$id?: string | undefined;
|
|
35
|
+
$comment?: string | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.1
|
|
38
|
+
*/
|
|
39
|
+
type?: JSONSchemaTypeName | JSONSchemaTypeName[] | undefined;
|
|
40
|
+
enum?: JSONSchemaType[] | undefined;
|
|
41
|
+
const?: JSONSchemaType | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.2
|
|
44
|
+
*/
|
|
45
|
+
multipleOf?: number | undefined;
|
|
46
|
+
maximum?: number | undefined;
|
|
47
|
+
exclusiveMaximum?: number | undefined;
|
|
48
|
+
minimum?: number | undefined;
|
|
49
|
+
exclusiveMinimum?: number | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.3
|
|
52
|
+
*/
|
|
53
|
+
maxLength?: number | undefined;
|
|
54
|
+
minLength?: number | undefined;
|
|
55
|
+
pattern?: string | undefined;
|
|
56
|
+
/**
|
|
57
|
+
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.4
|
|
58
|
+
*/
|
|
59
|
+
items?: JSONSchemaDefinition | JSONSchemaDefinition[] | undefined;
|
|
60
|
+
additionalItems?: JSONSchemaDefinition | undefined;
|
|
61
|
+
maxItems?: number | undefined;
|
|
62
|
+
minItems?: number | undefined;
|
|
63
|
+
uniqueItems?: boolean | undefined;
|
|
64
|
+
contains?: JSONSchemaDefinition | undefined;
|
|
65
|
+
/**
|
|
66
|
+
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.5
|
|
67
|
+
*/
|
|
68
|
+
maxProperties?: number | undefined;
|
|
69
|
+
minProperties?: number | undefined;
|
|
70
|
+
required?: string[] | undefined;
|
|
71
|
+
properties?: {
|
|
72
|
+
[key: string]: JSONSchemaDefinition;
|
|
73
|
+
} | undefined;
|
|
74
|
+
patternProperties?: {
|
|
75
|
+
[key: string]: JSONSchemaDefinition;
|
|
76
|
+
} | undefined;
|
|
77
|
+
additionalProperties?: JSONSchemaDefinition | undefined;
|
|
78
|
+
propertyNames?: JSONSchemaDefinition | undefined;
|
|
79
|
+
/**
|
|
80
|
+
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.6
|
|
81
|
+
*/
|
|
82
|
+
if?: JSONSchemaDefinition | undefined;
|
|
83
|
+
then?: JSONSchemaDefinition | undefined;
|
|
84
|
+
else?: JSONSchemaDefinition | undefined;
|
|
85
|
+
/**
|
|
86
|
+
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-6.7
|
|
87
|
+
*/
|
|
88
|
+
allOf?: JSONSchemaDefinition[] | undefined;
|
|
89
|
+
anyOf?: JSONSchemaDefinition[] | undefined;
|
|
90
|
+
oneOf?: JSONSchemaDefinition[] | undefined;
|
|
91
|
+
not?: JSONSchemaDefinition | undefined;
|
|
92
|
+
/**
|
|
93
|
+
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-7
|
|
94
|
+
*/
|
|
95
|
+
format?: string | undefined;
|
|
96
|
+
/**
|
|
97
|
+
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-10
|
|
98
|
+
*/
|
|
99
|
+
title?: string | undefined;
|
|
100
|
+
description?: string | undefined;
|
|
101
|
+
default?: JSONSchemaType | undefined;
|
|
102
|
+
readOnly?: boolean | undefined;
|
|
103
|
+
writeOnly?: boolean | undefined;
|
|
104
|
+
examples?: JSONSchemaType | undefined;
|
|
105
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { InkeepCustomIcon } from '../../icons';
|
|
2
|
+
/**
|
|
3
|
+
* Workflow defines the interaction steps for the AI bot.
|
|
4
|
+
*/
|
|
5
|
+
export interface Workflow {
|
|
6
|
+
id: string;
|
|
7
|
+
displayName: string;
|
|
8
|
+
goals: string[];
|
|
9
|
+
informationToCollect: WorkflowInformationToCollect[];
|
|
10
|
+
botPersona?: string;
|
|
11
|
+
context?: string[];
|
|
12
|
+
guidance?: string[];
|
|
13
|
+
initialReplyMessage: string;
|
|
14
|
+
supportedInputs?: WorkflowInputTypes[];
|
|
15
|
+
}
|
|
16
|
+
export interface WorkflowInformationToCollect {
|
|
17
|
+
description: string;
|
|
18
|
+
required: boolean;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* WorkflowInputTypes represents possible ways of collecting attachments in a Workflow.
|
|
22
|
+
*/
|
|
23
|
+
export type WorkflowInputTypes = WorkflowFunctionalMultiInput | WorkflowModalSingleInput;
|
|
24
|
+
/**
|
|
25
|
+
* WorkflowFunctionalMultiInput represents a function to be called when the attachment is invoked.
|
|
26
|
+
*/
|
|
27
|
+
export interface WorkflowFunctionalMultiInput extends WorkflowBaseInputTypes {
|
|
28
|
+
type: 'FUNCTIONAL_MULTI_ATTACHMENT';
|
|
29
|
+
onInvoke: (workflow: Workflow, selectedInputType: WorkflowInputTypes, callback: (messageAttachments: MessageAttachment[]) => void, currentMessageAttachments: MessageAttachment[]) => void;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* BaseType is a base interface for data types.
|
|
33
|
+
*/
|
|
34
|
+
interface WorkflowBaseContentType {
|
|
35
|
+
type: string;
|
|
36
|
+
contentInputLabel: string;
|
|
37
|
+
attachmentIcon?: InkeepCustomIcon;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* MessageAttachmentContentType represents possible type of information that can be attached to a Workflow.
|
|
41
|
+
*/
|
|
42
|
+
export type MessageAttachmentContentType = WorkflowCodeContentType | WorkflowTextContentType;
|
|
43
|
+
/**
|
|
44
|
+
* WorkflowModalSingleInput represents a modal input type.
|
|
45
|
+
*/
|
|
46
|
+
export interface WorkflowModalSingleInput extends WorkflowBaseInputTypes {
|
|
47
|
+
type: 'MODAL';
|
|
48
|
+
contentType: MessageAttachmentContentType;
|
|
49
|
+
workflowModalProps?: WorkflowModalProps;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* WorkflowInputType defines the type of attachments in a Workflow.
|
|
53
|
+
*/
|
|
54
|
+
export interface WorkflowBaseInputTypes {
|
|
55
|
+
id: string;
|
|
56
|
+
type: string;
|
|
57
|
+
displayName: string;
|
|
58
|
+
}
|
|
59
|
+
export interface WorkflowModalProps {
|
|
60
|
+
titleInputLabel?: string;
|
|
61
|
+
modalHelpText?: string;
|
|
62
|
+
modalHelpElement?: React.ReactElement;
|
|
63
|
+
}
|
|
64
|
+
export interface WorkflowCodeContentType extends WorkflowBaseContentType {
|
|
65
|
+
type: 'CODE';
|
|
66
|
+
language: string;
|
|
67
|
+
}
|
|
68
|
+
export interface WorkflowTextContentType extends WorkflowBaseContentType {
|
|
69
|
+
type: 'text';
|
|
70
|
+
}
|
|
71
|
+
export interface MessageAttachment {
|
|
72
|
+
contentType: MessageAttachmentContentType;
|
|
73
|
+
title: string;
|
|
74
|
+
content: string;
|
|
75
|
+
id: string;
|
|
76
|
+
context?: string[];
|
|
77
|
+
}
|
|
78
|
+
export interface MessageAttributes {
|
|
79
|
+
attachments?: MessageAttachment[];
|
|
80
|
+
workflow?: Workflow;
|
|
81
|
+
}
|
|
82
|
+
export interface MessageMetadata {
|
|
83
|
+
attributes?: MessageAttributes;
|
|
84
|
+
context?: string;
|
|
85
|
+
}
|
|
86
|
+
export {};
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import { UserProperties } from './config/base';
|
|
2
|
+
import { GetHelpOption } from './config/settings/actions';
|
|
3
|
+
import { TransformedSource } from './sources';
|
|
4
|
+
export interface MessageFeedback {
|
|
5
|
+
unrelated_response: boolean;
|
|
6
|
+
inaccurate_statement: boolean;
|
|
7
|
+
inaccurate_code_snippet: boolean;
|
|
8
|
+
irrelevant_citations: boolean;
|
|
9
|
+
}
|
|
10
|
+
export type FeedbackItemType = keyof MessageFeedback;
|
|
11
|
+
export type FeebackReason = {
|
|
12
|
+
label: string;
|
|
13
|
+
details: string;
|
|
14
|
+
};
|
|
15
|
+
export type FeedbackType = 'positive' | 'negative';
|
|
16
|
+
export interface FeedbackBody {
|
|
17
|
+
type: FeedbackType;
|
|
18
|
+
messageId: string;
|
|
19
|
+
createdAt: string;
|
|
20
|
+
reasons?: {
|
|
21
|
+
label: string;
|
|
22
|
+
details: string;
|
|
23
|
+
}[] | null;
|
|
24
|
+
userProperties: UserProperties;
|
|
25
|
+
properties?: Record<string, unknown>;
|
|
26
|
+
}
|
|
27
|
+
export interface InkeepFeedback {
|
|
28
|
+
type: FeedbackType;
|
|
29
|
+
messageId: string;
|
|
30
|
+
reasons?: FeebackReason[];
|
|
31
|
+
}
|
|
32
|
+
export type EntityType = 'conversation' | 'message' | 'search';
|
|
33
|
+
interface CommonProperties {
|
|
34
|
+
conversationId: string;
|
|
35
|
+
componentType: any;
|
|
36
|
+
tags: string[];
|
|
37
|
+
}
|
|
38
|
+
type ExtendPropertiesWithCommon<T> = T extends {
|
|
39
|
+
properties: infer P;
|
|
40
|
+
} ? T & {
|
|
41
|
+
properties: P & CommonProperties;
|
|
42
|
+
} : T;
|
|
43
|
+
export type InkeepEventWithCommon = ExtendPropertiesWithCommon<InkeepEvent>;
|
|
44
|
+
export type InkeepCallbackEvent = InkeepEventWithCommon;
|
|
45
|
+
export type SearchEvent = SearchQueryResponseReceivedEvent | SearchQuerySubmittedEvent | SearchResultClickedEvent;
|
|
46
|
+
export type ChatEvent = AssistantMessageReceivedEvent | AssistantAnswerDisplayedEvent | UserMessageSubmittedEvent | UserEscalationIndicatedEvent | SharedChatLoadedEvent | AssistantPositiveFeedbackSubmittedEvent | AssistantNegativeFeedbackSubmittedEvent | ChatClearButtonClickedEvent | AssistantMessageCopiedEvent | GetHelpOptionClickedEvent | ChatShareButtonClickedEvent | AssistantSourceItemClickedEvent | AssistantMessageLinkOpenedEvent | AssistantCodeBlockCopiedEvent;
|
|
47
|
+
export type WidgetEvent = ModalOpenedEvent | ModalClosedEvent;
|
|
48
|
+
export type InkeepEvent = SearchEvent | ChatEvent | WidgetEvent;
|
|
49
|
+
export interface AssistantMessageReceivedEvent {
|
|
50
|
+
eventName: 'assistant_message_received';
|
|
51
|
+
properties: {
|
|
52
|
+
conversationId?: string;
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
export interface AssistantAnswerDisplayedEvent {
|
|
56
|
+
eventName: 'assistant_answer_displayed';
|
|
57
|
+
properties: {
|
|
58
|
+
conversationId?: string;
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
export interface UserMessageSubmittedEvent {
|
|
62
|
+
eventName: 'user_message_submitted';
|
|
63
|
+
properties: {
|
|
64
|
+
conversationId?: string;
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
export interface UserEscalationIndicatedEvent {
|
|
68
|
+
eventName: 'user_escalation_indicated';
|
|
69
|
+
properties: {
|
|
70
|
+
escalationType: 'downvote' | 'get_help_option' | 'contact_us' | 'support_form';
|
|
71
|
+
getHelpOption?: GetHelpOption;
|
|
72
|
+
getHelpOptionName?: string;
|
|
73
|
+
conversationId?: string;
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
export interface SharedChatLoadedEvent {
|
|
77
|
+
eventName: 'shared_chat_loaded';
|
|
78
|
+
properties: {
|
|
79
|
+
conversationId?: string;
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
interface FeedbackProperties {
|
|
83
|
+
conversationId?: string;
|
|
84
|
+
reasons: FeebackReason[];
|
|
85
|
+
}
|
|
86
|
+
export interface AssistantNegativeFeedbackSubmittedEvent {
|
|
87
|
+
eventName: 'assistant_negative_feedback_submitted';
|
|
88
|
+
properties: FeedbackProperties;
|
|
89
|
+
}
|
|
90
|
+
export interface AssistantPositiveFeedbackSubmittedEvent {
|
|
91
|
+
eventName: 'assistant_positive_feedback_submitted';
|
|
92
|
+
properties: FeedbackProperties;
|
|
93
|
+
}
|
|
94
|
+
export interface GetHelpOptionClickedEvent {
|
|
95
|
+
eventName: 'get_help_option_clicked';
|
|
96
|
+
properties: {
|
|
97
|
+
getHelpOption: GetHelpOption;
|
|
98
|
+
conversationId?: string;
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
export interface ChatClearButtonClickedEvent {
|
|
102
|
+
eventName: 'chat_clear_button_clicked';
|
|
103
|
+
properties: {
|
|
104
|
+
conversationId: string;
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
export interface ChatShareButtonClickedEvent {
|
|
108
|
+
eventName: 'chat_share_button_clicked';
|
|
109
|
+
properties: {
|
|
110
|
+
sharedChatUrl: string;
|
|
111
|
+
sharedConversationId: string;
|
|
112
|
+
originalConversationId: string;
|
|
113
|
+
conversationId: string;
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
export interface AssistantMessageCopiedEvent {
|
|
117
|
+
eventName: 'assistant_message_copied';
|
|
118
|
+
properties: {
|
|
119
|
+
conversationId: string;
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
export interface AssistantCodeBlockCopiedEvent {
|
|
123
|
+
eventName: 'assistant_code_block_copied';
|
|
124
|
+
properties: {
|
|
125
|
+
conversationId: string;
|
|
126
|
+
language: string;
|
|
127
|
+
code: string;
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
export interface AssistantSourceItemClickedEvent {
|
|
131
|
+
eventName: 'assistant_source_item_clicked';
|
|
132
|
+
properties: {
|
|
133
|
+
conversationId: string;
|
|
134
|
+
link: TransformedSource;
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
export interface AssistantMessageLinkOpenedEvent {
|
|
138
|
+
eventName: 'assistant_message_inline_link_opened';
|
|
139
|
+
properties: {
|
|
140
|
+
title?: string;
|
|
141
|
+
url?: string;
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
export interface SearchResultClickedEvent {
|
|
145
|
+
eventName: 'search_result_clicked';
|
|
146
|
+
properties: {
|
|
147
|
+
searchQuery: string;
|
|
148
|
+
title?: string;
|
|
149
|
+
url?: string;
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
export interface SearchQuerySubmittedEvent {
|
|
153
|
+
eventName: 'search_query_submitted';
|
|
154
|
+
properties: {
|
|
155
|
+
searchQuery: string;
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
export interface SearchQueryResponseReceivedEvent {
|
|
159
|
+
eventName: 'search_query_response_received';
|
|
160
|
+
properties: {
|
|
161
|
+
searchQuery: string;
|
|
162
|
+
totalResults: number;
|
|
163
|
+
};
|
|
164
|
+
}
|
|
165
|
+
export interface ModalOpenedEvent {
|
|
166
|
+
eventName: 'modal_opened';
|
|
167
|
+
properties: {};
|
|
168
|
+
}
|
|
169
|
+
export interface ModalClosedEvent {
|
|
170
|
+
eventName: 'modal_closed';
|
|
171
|
+
properties: {};
|
|
172
|
+
}
|
|
173
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type AvailableBuiltInIcons = 'FaBook' | 'FaGithub' | 'FaDatabase' | 'FaStackOverflow' | 'FaChrome' | 'FaPhone' | 'FaEnvelope' | 'FaPencil' | 'FaBlog' | 'FaSort' | 'FaPenSquare' | 'FaChevronRight' | 'FaChevronUp' | 'FaFilePdf' | 'FaDiscourse' | 'FaDiscord' | 'FaSlack' | 'IoDocumentTextSharp' | 'IoDocumentSharp' | 'IoSend' | 'IoInformationCircleOutline' | 'IoLinkOutline' | 'IoThumbsUpSharp' | 'IoThumbsDownSharp' | 'IoSearch' | 'IoCopyOutline' | 'IoCopy' | 'IoReturnDownBackOutline' | 'IoChevronForwardOutline' | 'IoReturnDownForward' | 'IoCloseOutline' | 'IoCheckmarkOutline' | 'IoBookOutline' | 'IoReaderOutline' | 'IoHelpBuoyOutline' | 'IoPeopleOutline' | 'IoDocumentTextOutline' | 'IoChatbubblesOutline' | 'FaRegFilePdf' | 'IoLogoDiscord' | 'IoLogoGithub' | 'IoTerminal' | 'FaBriefcase' | 'IoPlayCircleOutline' | 'IoPencilOutline' | 'IoCheckmarkDoneOutline' | 'IoHomeOutline' | 'IoMail' | 'IoOpenOutline' | 'FaTelegram' | 'FaTable' | 'FaMagnifyingGlass' | 'LuArrowLeft' | 'LuCircleCheck' | 'LuCommand' | 'LuCopy' | 'LuCheck' | 'LuCornerDownLeft' | 'LuGlobe' | 'LuLink' | 'LuRepeat' | 'LuThumbsDown' | 'LuThumbsUp' | 'LuUsers' | 'LuUser' | 'LuArrowUpRight' | 'LuBookOpen' | 'LuChevronDown' | 'LuLoaderCircle' | 'FiEdit' | 'LuSparkles' | 'LuCornerDownRight' | 'LuCalendar' | 'LuHeadset';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { AvailableBuiltInIcons } from './built-in';
|
|
2
|
+
export type InkeepCustomIcon = {
|
|
3
|
+
builtIn: AvailableBuiltInIcons;
|
|
4
|
+
} | {
|
|
5
|
+
custom: string;
|
|
6
|
+
};
|
|
7
|
+
export interface CustomIcons {
|
|
8
|
+
search: string;
|
|
9
|
+
thumbsUp: string;
|
|
10
|
+
thumbsDown: string;
|
|
11
|
+
messageCopy: string;
|
|
12
|
+
messageCopied: string;
|
|
13
|
+
messageRevise: string;
|
|
14
|
+
codeCopy: string;
|
|
15
|
+
codeCopied: string;
|
|
16
|
+
openLinkInNewTab: string;
|
|
17
|
+
openLinkInSameTab: string;
|
|
18
|
+
newLine: string;
|
|
19
|
+
breadcrumbSeparator: string;
|
|
20
|
+
switchToSearch: string;
|
|
21
|
+
switchToChat: string;
|
|
22
|
+
chatSubmit: string;
|
|
23
|
+
close: string;
|
|
24
|
+
info: string;
|
|
25
|
+
command: string;
|
|
26
|
+
}
|
|
27
|
+
export type CustomIconMap = {
|
|
28
|
+
[K in keyof CustomIcons]?: InkeepCustomIcon;
|
|
29
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export * from './config/settings/actions';
|
|
2
|
+
export * from './config/settings/form';
|
|
3
|
+
export * from './config/settings/workflow';
|
|
4
|
+
export * from './config/settings/jsonschema';
|
|
5
|
+
export * from './config';
|
|
6
|
+
export * from './config/ai';
|
|
7
|
+
export * from './config/base';
|
|
8
|
+
export * from './config/search';
|
|
9
|
+
export * from './config/modal';
|
|
10
|
+
export * from './config/components';
|
|
11
|
+
export * from './config/filters';
|
|
12
|
+
export * from './message';
|
|
13
|
+
export * from './widget';
|
|
14
|
+
export * from './events';
|
|
15
|
+
export * from './theme';
|
|
16
|
+
export * from './color-mode';
|
|
17
|
+
export * from './icons';
|
|
18
|
+
export * from './shadow';
|
|
19
|
+
export * from './sources';
|
|
20
|
+
export * from './js';
|