@uptiqai/widgets-sdk 1.335.0 → 1.338.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 +8 -12
- package/dist/index.js +34005 -34141
- package/dist/index.umd.cjs +208 -208
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ declare type AgentMessage_2 = ConversationElement & {
|
|
|
10
10
|
type: ConversationElementType.AGENT_MESSAGE;
|
|
11
11
|
content: string;
|
|
12
12
|
isGenerativeUi?: boolean;
|
|
13
|
-
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' | '
|
|
13
|
+
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' | 'compaction_started' | 'compaction_ended' | 'compaction_failed' | 'compaction_usage';
|
|
14
14
|
isStreaming?: boolean;
|
|
15
15
|
relatedStepId?: string;
|
|
16
16
|
expectedResponseType?: 'text' | 'boolean' | 'selection' | 'json';
|
|
@@ -27,7 +27,6 @@ declare type AgentMessage_2 = ConversationElement & {
|
|
|
27
27
|
requestingAgentId?: string;
|
|
28
28
|
requestingAgentName?: string;
|
|
29
29
|
permissionRequest?: PermissionRequest;
|
|
30
|
-
credentialRequest?: CredentialsRequest;
|
|
31
30
|
/** Display info of the model that generated this message (incl. a fallback used on outage). */
|
|
32
31
|
modelInfo?: ModelDisplayInfo;
|
|
33
32
|
/** Role the model played for this message: planning the work vs executing/answering. */
|
|
@@ -181,6 +180,7 @@ export declare type Conversation = {
|
|
|
181
180
|
conversationModelName?: string;
|
|
182
181
|
effort?: QueryRunOptions['effort'];
|
|
183
182
|
isModelDeprecated?: boolean;
|
|
183
|
+
version?: ConversationStorageVersion;
|
|
184
184
|
createdAt: Date;
|
|
185
185
|
updatedAt: Date;
|
|
186
186
|
createdBy: string;
|
|
@@ -223,6 +223,11 @@ export declare type ConversationListItem = {
|
|
|
223
223
|
updatedAt: Date;
|
|
224
224
|
};
|
|
225
225
|
|
|
226
|
+
declare enum ConversationStorageVersion {
|
|
227
|
+
V1 = "v1",
|
|
228
|
+
V2 = "v2"
|
|
229
|
+
}
|
|
230
|
+
|
|
226
231
|
export declare type ConversationSummaryEvent = {
|
|
227
232
|
conversationId: string;
|
|
228
233
|
status: 'Completed' | 'Failed';
|
|
@@ -242,14 +247,6 @@ declare type CreateWidgetInstanceParams = Omit<CommonWidgetProps, 'theme'> & {
|
|
|
242
247
|
instanceId: string;
|
|
243
248
|
};
|
|
244
249
|
|
|
245
|
-
declare type CredentialsRequest = {
|
|
246
|
-
id: string;
|
|
247
|
-
title: string;
|
|
248
|
-
description: string;
|
|
249
|
-
toolCallId?: string;
|
|
250
|
-
serviceId?: IntegrationServiceId;
|
|
251
|
-
};
|
|
252
|
-
|
|
253
250
|
declare enum DocumentProcessingState {
|
|
254
251
|
Pending = "Pending",
|
|
255
252
|
Uploaded = "Uploaded",
|
|
@@ -349,8 +346,6 @@ declare type HeadlessEventHandler<T extends HeadlessEventType> = T extends 'agen
|
|
|
349
346
|
|
|
350
347
|
export declare type HeadlessEventType = 'agent-interrupt' | 'queue-update' | 'conversation-summary';
|
|
351
348
|
|
|
352
|
-
declare type IntegrationServiceId = 'twilio-whatsapp' | 'resend' | 'stripe' | 'redtail';
|
|
353
|
-
|
|
354
349
|
export declare type IntermediateAgentMessage = Omit<SdkAgentMessage, 'intermediateMessages'>;
|
|
355
350
|
|
|
356
351
|
export declare type ListConversationsParams = {
|
|
@@ -663,6 +658,7 @@ declare type WidgetConfig = {
|
|
|
663
658
|
accountId?: string;
|
|
664
659
|
variables?: Record<string, string>;
|
|
665
660
|
enableDeprecatedModelMigration?: boolean;
|
|
661
|
+
enableLegacyConversationMigration?: boolean;
|
|
666
662
|
};
|
|
667
663
|
|
|
668
664
|
export declare type WidgetsSdk = {
|