@uptiqai/widgets-sdk 1.143.0 → 1.145.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 +12 -1
- package/dist/index.js +23752 -22577
- package/dist/index.umd.cjs +134 -126
- 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
|
};
|
|
@@ -166,6 +167,14 @@ declare type CreateWidgetInstanceParams = Omit<CommonWidgetProps, 'theme'> & {
|
|
|
166
167
|
instanceId: string;
|
|
167
168
|
};
|
|
168
169
|
|
|
170
|
+
declare type CredentialsRequest = {
|
|
171
|
+
id: string;
|
|
172
|
+
title: string;
|
|
173
|
+
description: string;
|
|
174
|
+
toolCallId?: string;
|
|
175
|
+
serviceId?: IntegrationServiceId;
|
|
176
|
+
};
|
|
177
|
+
|
|
169
178
|
declare enum DocumentProcessingState {
|
|
170
179
|
Pending = "Pending",
|
|
171
180
|
Uploaded = "Uploaded",
|
|
@@ -248,6 +257,8 @@ declare type HeadlessEventHandler<T extends HeadlessEventType> = T extends 'agen
|
|
|
248
257
|
|
|
249
258
|
declare type HeadlessEventType = 'agent-interrupt';
|
|
250
259
|
|
|
260
|
+
declare type IntegrationServiceId = 'twilio-whatsapp' | 'resend' | 'stripe' | 'redtail';
|
|
261
|
+
|
|
251
262
|
export declare type IntermediateAgentMessage = Omit<SdkAgentMessage, 'intermediateMessages'>;
|
|
252
263
|
|
|
253
264
|
declare type PausedElement = ConversationElement & {
|