@servicetitan/titan-chatbot-api 7.1.0 → 7.1.1

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.
@@ -871,13 +871,13 @@ export class BotMessage extends Message implements IBotMessage {
871
871
  /** Ordered list of relevant Knowledge Base links. */
872
872
  declare scoredUrls?: ScoredUrl[] | undefined;
873
873
  /** A value indicating one of the conditions:
874
- - N - "none" or "normal", a successful response
875
- - A - "agent", user wants to talk to a support agent
876
- - C - "conversation", user attempted to continue a conversation in a single-turn message
877
- - OI - "offensive input"
878
- - AA - "agentic approval", the bot is waiting for the user to approve or cancel a pending action
879
- - BI - "bifurcation", the bot is offering the user a choice (see TitanChatbot.Host.API.Models.BotMessage.AgentOptions)
880
- Client may handle these conditions in different ways. */
874
+ - N - "none" or "normal", a successful response
875
+ - A - "agent", user wants to talk to a support agent
876
+ - C - "conversation", user attempted to continue a conversation in a single-turn message
877
+ - OI - "offensive input"
878
+ - AA - "agentic approval", the bot is waiting for the user to approve or cancel a pending action
879
+ - BI - "bifurcation", the bot is offering the user a choice (see TitanChatbot.Host.API.Models.BotMessage.AgentOptions)
880
+ Client may handle these conditions in different ways. */
881
881
  declare guardFlag: string;
882
882
  /** Whether the answer is guardrailed, meaning TitanChatbot.Host.API.Models.BotMessage.GuardFlag is anything but "N". */
883
883
  declare isGuardrailed: boolean;
@@ -891,7 +891,7 @@ Client may handle these conditions in different ways. */
891
891
  declare confidenceScore?: number | undefined;
892
892
  /** When the bot offers the user a discrete choice (e.g. "do it for me" vs "show me how"), the available options. */
893
893
  declare agentOptions?: AgentOption[] | undefined;
894
- declare workflowConfirmation?: WorkflowConfirmation;
894
+ declare workflowPlan?: WorkflowPlan;
895
895
 
896
896
  constructor(data?: IBotMessage) {
897
897
  super(data);
@@ -917,8 +917,8 @@ Client may handle these conditions in different ways. */
917
917
  for (let item of _data['agentOptions'])
918
918
  this.agentOptions!.push(AgentOption.fromJS(item));
919
919
  }
920
- this.workflowConfirmation = _data['workflowConfirmation']
921
- ? WorkflowConfirmation.fromJS(_data['workflowConfirmation'])
920
+ this.workflowPlan = _data['workflowPlan']
921
+ ? WorkflowPlan.fromJS(_data['workflowPlan'])
922
922
  : <any>undefined;
923
923
  }
924
924
  }
@@ -947,9 +947,7 @@ Client may handle these conditions in different ways. */
947
947
  data['agentOptions'] = [];
948
948
  for (let item of this.agentOptions) data['agentOptions'].push(item.toJSON());
949
949
  }
950
- data['workflowConfirmation'] = this.workflowConfirmation
951
- ? this.workflowConfirmation.toJSON()
952
- : <any>undefined;
950
+ data['workflowPlan'] = this.workflowPlan ? this.workflowPlan.toJSON() : <any>undefined;
953
951
  super.toJSON(data);
954
952
  return data;
955
953
  }
@@ -962,13 +960,13 @@ export interface IBotMessage extends IMessage {
962
960
  /** Ordered list of relevant Knowledge Base links. */
963
961
  scoredUrls?: ScoredUrl[] | undefined;
964
962
  /** A value indicating one of the conditions:
965
- - N - "none" or "normal", a successful response
966
- - A - "agent", user wants to talk to a support agent
967
- - C - "conversation", user attempted to continue a conversation in a single-turn message
968
- - OI - "offensive input"
969
- - AA - "agentic approval", the bot is waiting for the user to approve or cancel a pending action
970
- - BI - "bifurcation", the bot is offering the user a choice (see TitanChatbot.Host.API.Models.BotMessage.AgentOptions)
971
- Client may handle these conditions in different ways. */
963
+ - N - "none" or "normal", a successful response
964
+ - A - "agent", user wants to talk to a support agent
965
+ - C - "conversation", user attempted to continue a conversation in a single-turn message
966
+ - OI - "offensive input"
967
+ - AA - "agentic approval", the bot is waiting for the user to approve or cancel a pending action
968
+ - BI - "bifurcation", the bot is offering the user a choice (see TitanChatbot.Host.API.Models.BotMessage.AgentOptions)
969
+ Client may handle these conditions in different ways. */
972
970
  guardFlag: string;
973
971
  /** Whether the answer is guardrailed, meaning TitanChatbot.Host.API.Models.BotMessage.GuardFlag is anything but "N". */
974
972
  isGuardrailed: boolean;
@@ -982,7 +980,7 @@ Client may handle these conditions in different ways. */
982
980
  confidenceScore?: number | undefined;
983
981
  /** When the bot offers the user a discrete choice (e.g. "do it for me" vs "show me how"), the available options. */
984
982
  agentOptions?: AgentOption[] | undefined;
985
- workflowConfirmation?: WorkflowConfirmation;
983
+ workflowPlan?: WorkflowPlan;
986
984
  }
987
985
 
988
986
  export enum Experience {
@@ -1653,13 +1651,13 @@ export interface IUserMessage extends IMessage {
1653
1651
  }
1654
1652
 
1655
1653
  /** Pre-execution plan for an agentic UI workflow. */
1656
- export class WorkflowConfirmation implements IWorkflowConfirmation {
1654
+ export class WorkflowPlan implements IWorkflowPlan {
1657
1655
  displayName?: string | undefined;
1658
1656
  estimatedRuntimeSec?: number;
1659
1657
  inputs?: UserInput[] | undefined;
1660
1658
  steps?: WorkflowStep[] | undefined;
1661
1659
 
1662
- constructor(data?: IWorkflowConfirmation) {
1660
+ constructor(data?: IWorkflowPlan) {
1663
1661
  if (data) {
1664
1662
  for (var property in data) {
1665
1663
  if (data.hasOwnProperty(property)) (<any>this)[property] = (<any>data)[property];
@@ -1682,9 +1680,9 @@ export class WorkflowConfirmation implements IWorkflowConfirmation {
1682
1680
  }
1683
1681
  }
1684
1682
 
1685
- static fromJS(data: any): WorkflowConfirmation {
1683
+ static fromJS(data: any): WorkflowPlan {
1686
1684
  data = typeof data === 'object' ? data : {};
1687
- let result = new WorkflowConfirmation();
1685
+ let result = new WorkflowPlan();
1688
1686
  result.init(data);
1689
1687
  return result;
1690
1688
  }
@@ -1706,7 +1704,7 @@ export class WorkflowConfirmation implements IWorkflowConfirmation {
1706
1704
  }
1707
1705
 
1708
1706
  /** Pre-execution plan for an agentic UI workflow. */
1709
- export interface IWorkflowConfirmation {
1707
+ export interface IWorkflowPlan {
1710
1708
  displayName?: string | undefined;
1711
1709
  estimatedRuntimeSec?: number;
1712
1710
  inputs?: UserInput[] | undefined;