@uptiqai/widgets-sdk 1.264.0 → 1.267.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.d.ts CHANGED
@@ -21,6 +21,11 @@ declare type AgentMessage_2 = ConversationElement & {
21
21
  documents?: AttachedDocument[];
22
22
  requestedSchema?: any;
23
23
  questions?: AgentQuestion[];
24
+ /** The queue row this message was raised on, answered through the elicitation route. */
25
+ elicitationRequestId?: string;
26
+ /** The agent that raised it — this conversation's own agent, or one of its delegates. */
27
+ requestingAgentId?: string;
28
+ requestingAgentName?: string;
24
29
  permissionRequest?: PermissionRequest;
25
30
  credentialRequest?: CredentialsRequest;
26
31
  /** Display info of the model that generated this message (incl. a fallback used on outage). */
@@ -54,22 +59,14 @@ export declare type AgentMessageContextProps = {
54
59
 
55
60
  declare type AgentMessageProps = AgentMessageAnnotationProps & AgentMessageContextProps;
56
61
 
57
- /** A structured question (Claude AskUserQuestion-style) attached to a `question` agent message. */
62
+ /** A structured question the `ask_user` tool raised, attached to a `question` agent message. */
58
63
  declare type AgentQuestion = {
59
64
  id: string;
60
- /** Short chip label shown above the question (e.g. "Doc type"). */
61
- header?: string;
62
65
  question: string;
63
- /** Allow selecting more than one option. */
66
+ /** Between two and six choices, and absent whenever the agent left the answer open. */
67
+ options?: string[];
68
+ /** Several of the options may be picked. Only ever sent alongside `options`. */
64
69
  multiSelect?: boolean;
65
- /** May be absent for free-text questions (e.g. date fields) where the agent expects typed input. */
66
- options?: AgentQuestionOption[];
67
- };
68
-
69
- /** A single selectable choice within a structured agent question. */
70
- declare type AgentQuestionOption = {
71
- label: string;
72
- description?: string;
73
70
  };
74
71
 
75
72
  declare enum AgentResponseFormat {