@inkeep/agents-ui-js-cloud 0.15.26 → 0.15.28
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/embed.js +10 -10
- package/dist/types.d.ts +24 -116
- package/package.json +3 -3
package/dist/types.d.ts
CHANGED
|
@@ -71,7 +71,7 @@ export declare interface AIChatFunctions {
|
|
|
71
71
|
|
|
72
72
|
/**
|
|
73
73
|
* Resets the chat to its initial state.
|
|
74
|
-
* Removes all messages and resets
|
|
74
|
+
* Removes all messages and resets the chat.
|
|
75
75
|
*/
|
|
76
76
|
clearChat: () => void
|
|
77
77
|
|
|
@@ -273,6 +273,13 @@ export declare type AvailableBuiltInIcons =
|
|
|
273
273
|
| 'LuCalendar'
|
|
274
274
|
| 'LuHeadset'
|
|
275
275
|
| 'LuSend'
|
|
276
|
+
| 'LuPaperclip'
|
|
277
|
+
| 'PiFileCsv'
|
|
278
|
+
| 'PiFileText'
|
|
279
|
+
| 'PiFileHtml'
|
|
280
|
+
| 'PiFileMarkdown'
|
|
281
|
+
| 'PiFileLog'
|
|
282
|
+
| 'PiFileJson'
|
|
276
283
|
|
|
277
284
|
export declare interface BaseFormField {
|
|
278
285
|
name: string // input name -- must be unique
|
|
@@ -515,6 +522,14 @@ export declare interface CustomIcons {
|
|
|
515
522
|
chatHistory: string
|
|
516
523
|
chatHistoryPanel: string
|
|
517
524
|
backToChat: string
|
|
525
|
+
fileUpload: string
|
|
526
|
+
filePdf: string
|
|
527
|
+
fileText: string
|
|
528
|
+
fileMarkdown: string
|
|
529
|
+
fileHtml: string
|
|
530
|
+
fileCsv: string
|
|
531
|
+
fileLog: string
|
|
532
|
+
fileJson: string
|
|
518
533
|
}
|
|
519
534
|
|
|
520
535
|
export declare interface CustomMessageAction {
|
|
@@ -869,9 +884,17 @@ export declare interface InkeepAIChatSettings {
|
|
|
869
884
|
/**
|
|
870
885
|
* Unique identifier for loading a specific conversation.
|
|
871
886
|
* Use this to restore a previous conversation state.
|
|
887
|
+
* If the conversation is not found, a new conversation is started.
|
|
872
888
|
*/
|
|
873
889
|
conversationId?: string
|
|
874
890
|
|
|
891
|
+
/**
|
|
892
|
+
* @deprecated Internal use only. Bypasses conversation loading and sets the
|
|
893
|
+
* conversation ID directly without fetching. Use `conversationId` instead to
|
|
894
|
+
* restore a previous conversation state.
|
|
895
|
+
*/
|
|
896
|
+
conversationIdOverride?: string
|
|
897
|
+
|
|
875
898
|
/**
|
|
876
899
|
* When enabled, prevents users from sending new messages.
|
|
877
900
|
* Useful for displaying archived or shared chat sessions.
|
|
@@ -922,17 +945,6 @@ export declare interface InkeepAIChatSettings {
|
|
|
922
945
|
*/
|
|
923
946
|
messageActions?: CustomMessageAction[]
|
|
924
947
|
|
|
925
|
-
/**
|
|
926
|
-
* Custom heading text for the workflows section.
|
|
927
|
-
* Use this to describe available automated processes or guided flows.
|
|
928
|
-
*/
|
|
929
|
-
workflowsHeader?: string
|
|
930
|
-
|
|
931
|
-
/**
|
|
932
|
-
* Collection of interactive workflows that can be triggered during chat.
|
|
933
|
-
* These can guide users through complex processes or data collection.
|
|
934
|
-
*/
|
|
935
|
-
// workflows?: Workflow[]
|
|
936
948
|
|
|
937
949
|
/**
|
|
938
950
|
* Custom labels for the chat interface's action buttons.
|
|
@@ -1523,24 +1535,6 @@ export declare type Message = UIMessage<unknown, DataParts>
|
|
|
1523
1535
|
|
|
1524
1536
|
export declare type MessageAction = 'copy' | 'upvote' | 'downvote'
|
|
1525
1537
|
|
|
1526
|
-
export declare interface MessageAttachment {
|
|
1527
|
-
contentType: MessageAttachmentContentType
|
|
1528
|
-
title: string
|
|
1529
|
-
content: string
|
|
1530
|
-
id: string
|
|
1531
|
-
context?: string[]
|
|
1532
|
-
}
|
|
1533
|
-
|
|
1534
|
-
/**
|
|
1535
|
-
* MessageAttachmentContentType represents possible type of information that can be attached to a Workflow.
|
|
1536
|
-
*/
|
|
1537
|
-
export declare type MessageAttachmentContentType = WorkflowCodeContentType | WorkflowTextContentType
|
|
1538
|
-
|
|
1539
|
-
export declare interface MessageAttributes {
|
|
1540
|
-
attachments?: MessageAttachment[]
|
|
1541
|
-
workflow?: Workflow
|
|
1542
|
-
}
|
|
1543
|
-
|
|
1544
1538
|
declare type MessageChatAction = ExpandUnion<InvokeMessageCallbackAction | OpenFormAction | OpenUrlAction>
|
|
1545
1539
|
|
|
1546
1540
|
export declare interface MessageFeedback {
|
|
@@ -1550,11 +1544,6 @@ export declare interface MessageFeedback {
|
|
|
1550
1544
|
irrelevant_citations: boolean
|
|
1551
1545
|
}
|
|
1552
1546
|
|
|
1553
|
-
export declare interface MessageMetadata {
|
|
1554
|
-
attributes?: MessageAttributes
|
|
1555
|
-
context?: string
|
|
1556
|
-
}
|
|
1557
|
-
|
|
1558
1547
|
export declare interface ModalClosedEvent {
|
|
1559
1548
|
eventName: 'modal_closed'
|
|
1560
1549
|
properties: {}
|
|
@@ -2224,87 +2213,6 @@ export declare interface WidgetView {
|
|
|
2224
2213
|
askAICardLabel?: string
|
|
2225
2214
|
}
|
|
2226
2215
|
|
|
2227
|
-
/**
|
|
2228
|
-
* Workflow defines the interaction steps for the AI bot.
|
|
2229
|
-
*/
|
|
2230
|
-
export declare interface Workflow {
|
|
2231
|
-
id: string
|
|
2232
|
-
displayName: string
|
|
2233
|
-
goals: string[]
|
|
2234
|
-
informationToCollect: WorkflowInformationToCollect[]
|
|
2235
|
-
botPersona?: string
|
|
2236
|
-
// userPersonna?: string;
|
|
2237
|
-
context?: string[]
|
|
2238
|
-
guidance?: string[]
|
|
2239
|
-
initialReplyMessage: string
|
|
2240
|
-
supportedInputs?: WorkflowInputTypes[]
|
|
2241
|
-
}
|
|
2242
|
-
|
|
2243
|
-
/**
|
|
2244
|
-
* BaseType is a base interface for data types.
|
|
2245
|
-
*/
|
|
2246
|
-
declare interface WorkflowBaseContentType {
|
|
2247
|
-
type: string
|
|
2248
|
-
contentInputLabel: string // for serialization
|
|
2249
|
-
attachmentIcon?: InkeepCustomIcon // icon next to the title in the attachment item
|
|
2250
|
-
}
|
|
2251
|
-
|
|
2252
|
-
/**
|
|
2253
|
-
* WorkflowInputType defines the type of attachments in a Workflow.
|
|
2254
|
-
*/
|
|
2255
|
-
export declare interface WorkflowBaseInputTypes {
|
|
2256
|
-
id: string
|
|
2257
|
-
type: string
|
|
2258
|
-
displayName: string // button label
|
|
2259
|
-
}
|
|
2260
|
-
|
|
2261
|
-
export declare interface WorkflowCodeContentType extends WorkflowBaseContentType {
|
|
2262
|
-
type: 'CODE'
|
|
2263
|
-
language: string
|
|
2264
|
-
}
|
|
2265
|
-
|
|
2266
|
-
/**
|
|
2267
|
-
* WorkflowFunctionalMultiInput represents a function to be called when the attachment is invoked.
|
|
2268
|
-
*/
|
|
2269
|
-
export declare interface WorkflowFunctionalMultiInput extends WorkflowBaseInputTypes {
|
|
2270
|
-
type: 'FUNCTIONAL_MULTI_ATTACHMENT'
|
|
2271
|
-
onInvoke: (
|
|
2272
|
-
workflow: Workflow,
|
|
2273
|
-
selectedInputType: WorkflowInputTypes,
|
|
2274
|
-
callback: (messageAttachments: MessageAttachment[]) => void,
|
|
2275
|
-
currentMessageAttachments: MessageAttachment[],
|
|
2276
|
-
) => void
|
|
2277
|
-
}
|
|
2278
|
-
|
|
2279
|
-
export declare interface WorkflowInformationToCollect {
|
|
2280
|
-
description: string
|
|
2281
|
-
required: boolean
|
|
2282
|
-
}
|
|
2283
|
-
|
|
2284
|
-
/**
|
|
2285
|
-
* WorkflowInputTypes represents possible ways of collecting attachments in a Workflow.
|
|
2286
|
-
*/
|
|
2287
|
-
export declare type WorkflowInputTypes = WorkflowFunctionalMultiInput | WorkflowModalSingleInput
|
|
2288
|
-
|
|
2289
|
-
export declare interface WorkflowModalProps {
|
|
2290
|
-
titleInputLabel?: string // defaults to 'Title'
|
|
2291
|
-
modalHelpText?: string // help text for the modal
|
|
2292
|
-
modalHelpElement?: React.ReactElement // help element for the modal
|
|
2293
|
-
}
|
|
2294
|
-
|
|
2295
|
-
/**
|
|
2296
|
-
* WorkflowModalSingleInput represents a modal input type.
|
|
2297
|
-
*/
|
|
2298
|
-
export declare interface WorkflowModalSingleInput extends WorkflowBaseInputTypes {
|
|
2299
|
-
type: 'MODAL'
|
|
2300
|
-
contentType: MessageAttachmentContentType
|
|
2301
|
-
workflowModalProps?: WorkflowModalProps
|
|
2302
|
-
}
|
|
2303
|
-
|
|
2304
|
-
export declare interface WorkflowTextContentType extends WorkflowBaseContentType {
|
|
2305
|
-
type: 'text'
|
|
2306
|
-
}
|
|
2307
|
-
|
|
2308
2216
|
export { }
|
|
2309
2217
|
|
|
2310
2218
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inkeep/agents-ui-js-cloud",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.28",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "Inkeep, Inc. Customer License (IICL) v1.1",
|
|
6
6
|
"homepage": "",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"react": "19.0.0",
|
|
39
39
|
"react-dom": "19.0.0",
|
|
40
40
|
"uuid": "^11.1.0",
|
|
41
|
-
"@inkeep/agents-ui-cloud": "0.15.
|
|
41
|
+
"@inkeep/agents-ui-cloud": "0.15.28"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@biomejs/biome": "1.9.4",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"vite": "5.4.11",
|
|
57
57
|
"vite-bundle-visualizer": "^1.2.1",
|
|
58
58
|
"vite-plugin-dts": "4.4.0",
|
|
59
|
-
"@inkeep/agents-ui": "0.15.
|
|
59
|
+
"@inkeep/agents-ui": "0.15.28"
|
|
60
60
|
},
|
|
61
61
|
"module": "./dist/embed.js",
|
|
62
62
|
"types": "./dist/types.d.ts",
|