@inkeep/agents-ui 0.0.0-dev-20260402200940 → 0.0.0-dev-20260403205747
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -1
- package/dist/index.js +165 -174
- package/dist/primitives/components/embedded-chat/use-inkeep-chat.cjs +3 -3
- package/dist/primitives/components/embedded-chat/use-inkeep-chat.d.ts +2 -6
- package/dist/primitives/components/embedded-chat/use-inkeep-chat.js +232 -227
- package/dist/primitives/components/embedded-chat.cjs +5 -5
- package/dist/primitives/components/embedded-chat.d.ts +2 -112
- package/dist/primitives/components/embedded-chat.js +1082 -1511
- package/dist/primitives/hooks/use-initial-conversation.cjs +1 -0
- package/dist/primitives/hooks/use-initial-conversation.d.ts +16 -0
- package/dist/primitives/hooks/use-initial-conversation.js +31 -0
- package/dist/primitives/index.cjs +1 -1
- package/dist/primitives/index.js +146 -155
- package/dist/primitives/providers/base-events-provider.cjs +1 -1
- package/dist/primitives/providers/base-events-provider.js +1 -1
- package/dist/primitives/providers/feedback-provider.cjs +1 -1
- package/dist/primitives/providers/feedback-provider.js +37 -38
- package/dist/primitives/providers/index.cjs +1 -1
- package/dist/primitives/providers/index.d.ts +0 -3
- package/dist/primitives/providers/index.js +54 -63
- package/dist/primitives/utils/component-ids.cjs +1 -1
- package/dist/primitives/utils/component-ids.d.ts +0 -98
- package/dist/primitives/utils/component-ids.js +7 -56
- package/dist/primitives/utils/default-settings.cjs +1 -1
- package/dist/primitives/utils/default-settings.d.ts +0 -2
- package/dist/primitives/utils/default-settings.js +6 -8
- package/dist/react/embedded-chat.cjs +1 -1
- package/dist/react/embedded-chat.js +261 -310
- package/dist/react/index.cjs +1 -1
- package/dist/react/index.js +165 -174
- package/dist/styled/components/embedded-chat.cjs +1 -1
- package/dist/styled/components/embedded-chat.d.ts +2 -50
- package/dist/styled/components/embedded-chat.js +568 -1041
- package/dist/styled/components/ui/recipes/citation.d.ts +1 -1
- package/dist/styled/components/ui/recipes/index.cjs +1 -1
- package/dist/styled/components/ui/recipes/index.d.ts +0 -1
- package/dist/styled/components/ui/recipes/index.js +31 -33
- package/dist/styled/index.cjs +1 -1
- package/dist/styled/index.js +150 -159
- package/dist/styled/inkeep.css.cjs +0 -66
- package/dist/styled/inkeep.css.js +0 -66
- package/dist/types/config/ai.d.ts +8 -10
- package/dist/types/index.d.ts +0 -1
- package/package.json +1 -1
- package/dist/primitives/providers/attachment-item-provider.cjs +0 -1
- package/dist/primitives/providers/attachment-item-provider.d.ts +0 -9
- package/dist/primitives/providers/attachment-item-provider.js +0 -13
- package/dist/primitives/providers/attachments-bar-provider.cjs +0 -1
- package/dist/primitives/providers/attachments-bar-provider.d.ts +0 -30
- package/dist/primitives/providers/attachments-bar-provider.js +0 -57
- package/dist/primitives/providers/message-attachments-provider.cjs +0 -1
- package/dist/primitives/providers/message-attachments-provider.d.ts +0 -13
- package/dist/primitives/providers/message-attachments-provider.js +0 -27
- package/dist/primitives/utils/get-message-metadata.d.ts +0 -8
- package/dist/styled/components/ui/recipes/attachment.cjs +0 -1
- package/dist/styled/components/ui/recipes/attachment.d.ts +0 -4
- package/dist/styled/components/ui/recipes/attachment.js +0 -28
- package/dist/types/config/settings/workflow.d.ts +0 -86
|
@@ -1,86 +0,0 @@
|
|
|
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 {};
|