@uptiqai/widgets-sdk 1.142.0 → 1.144.0
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.css +1 -1
- package/dist/index.d.ts +13 -1
- package/dist/index.js +28079 -26925
- package/dist/index.umd.cjs +152 -144
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export declare const AgentMessage: MemoExoticComponent<({ message, isSelected, o
|
|
|
9
9
|
declare type AgentMessage_2 = ConversationElement & {
|
|
10
10
|
type: ConversationElementType.AGENT_MESSAGE;
|
|
11
11
|
content: string;
|
|
12
|
-
subtype: 'thinking_started' | 'thinking_completed' | 'guardrail_started' | 'guardrail_ended' | 'strategy_updated' | 'thinking_failed' | 'intermediate' | 'final' | 'question' | 'workflow_task' | 'final_stream' | 'attach_files' | 'output_files' | 'ask_permission' | 'ask_permission_result';
|
|
12
|
+
subtype: 'thinking_started' | 'thinking_completed' | 'guardrail_started' | 'guardrail_ended' | 'strategy_updated' | 'thinking_failed' | 'intermediate' | 'final' | 'question' | 'workflow_task' | 'final_stream' | 'attach_files' | 'output_files' | 'ask_permission' | 'ask_permission_result' | 'ask_credential' | 'ask_credential_result';
|
|
13
13
|
isStreaming?: boolean;
|
|
14
14
|
relatedStepId?: string;
|
|
15
15
|
expectedResponseType?: 'text' | 'boolean' | 'selection' | 'json';
|
|
@@ -20,6 +20,7 @@ declare type AgentMessage_2 = ConversationElement & {
|
|
|
20
20
|
documents?: AttachedDocument[];
|
|
21
21
|
requestedSchema?: any;
|
|
22
22
|
permissionRequest?: PermissionRequest;
|
|
23
|
+
credentialRequest?: CredentialsRequest;
|
|
23
24
|
};
|
|
24
25
|
parentMessageId?: string;
|
|
25
26
|
};
|
|
@@ -54,6 +55,7 @@ declare type AiMessage = EvaluationResultElement | DoneElement | StatusUpdateEle
|
|
|
54
55
|
|
|
55
56
|
declare type AttachedDocument = {
|
|
56
57
|
id: string;
|
|
58
|
+
sourceDocumentId?: string;
|
|
57
59
|
fileName?: string;
|
|
58
60
|
summary?: string;
|
|
59
61
|
mimeType?: string;
|
|
@@ -165,6 +167,14 @@ declare type CreateWidgetInstanceParams = Omit<CommonWidgetProps, 'theme'> & {
|
|
|
165
167
|
instanceId: string;
|
|
166
168
|
};
|
|
167
169
|
|
|
170
|
+
declare type CredentialsRequest = {
|
|
171
|
+
id: string;
|
|
172
|
+
title: string;
|
|
173
|
+
description: string;
|
|
174
|
+
toolCallId?: string;
|
|
175
|
+
serviceId?: IntegrationServiceId;
|
|
176
|
+
};
|
|
177
|
+
|
|
168
178
|
declare enum DocumentProcessingState {
|
|
169
179
|
Pending = "Pending",
|
|
170
180
|
Uploaded = "Uploaded",
|
|
@@ -247,6 +257,8 @@ declare type HeadlessEventHandler<T extends HeadlessEventType> = T extends 'agen
|
|
|
247
257
|
|
|
248
258
|
declare type HeadlessEventType = 'agent-interrupt';
|
|
249
259
|
|
|
260
|
+
declare type IntegrationServiceId = 'twilio-whatsapp' | 'resend' | 'stripe' | 'redtail';
|
|
261
|
+
|
|
250
262
|
export declare type IntermediateAgentMessage = Omit<SdkAgentMessage, 'intermediateMessages'>;
|
|
251
263
|
|
|
252
264
|
declare type PausedElement = ConversationElement & {
|