Class TaskAbstract

Interface for managing task-related operations in the contact center Extends IEventEmitter to support event-driven task updates

Hierarchy

  • EventEmitter
    • Task

Implements

Constructors

  • Parameters

    • contact: {
          accept: Res<AgentContact, {
              interactionId: string;
          }>;
          blindTransfer: Res<AgentContact, {
              data: TransferPayLoad;
              interactionId: string;
          }>;
          cancelCtq: Res<AgentContact, {
              data: cancelCtq;
              interactionId: string;
          }>;
          cancelTask: Res<AgentContact, {
              interactionId: string;
          }>;
          conferenceTransfer: Res<AgentContact, {
              interactionId: string;
          }>;
          consult: Res<AgentContact, {
              data: ConsultPayload;
              interactionId: string;
          }>;
          consultAccept: Res<AgentContact, {
              interactionId: string;
          }>;
          consultConference: Res<AgentContact, {
              data: ConsultConferenceData;
              interactionId: string;
          }>;
          consultEnd: Res<AgentContact, {
              data: ConsultEndPayload;
              interactionId: string;
          }>;
          consultTransfer: Res<AgentContact, {
              data: ConsultTransferPayLoad;
              interactionId: string;
          }>;
          end: Res<AgentContact, {
              interactionId: string;
          }>;
          exitConference: Res<AgentContact, {
              interactionId: string;
          }>;
          hold: Res<AgentContact, {
              data: HoldResumePayload;
              interactionId: string;
          }>;
          pauseRecording: Res<AgentContact, {
              interactionId: string;
          }>;
          resumeRecording: Res<AgentContact, {
              data: ResumeRecordingPayload;
              interactionId: string;
          }>;
          unHold: Res<AgentContact, {
              data: HoldResumePayload;
              interactionId: string;
          }>;
          vteamTransfer: Res<AgentContact, {
              data: TransferPayLoad;
              interactionId: string;
          }>;
          wrapup: Res<AgentContact, {
              data: WrapupPayLoad;
              interactionId: string;
          }>;
      }
    • data: TaskData
    • uiControlConfig: UIControlConfigInput
    • Optional wrapupData: WrapupData
    • Optional agentId: string

    Returns Task

Properties

autoWrapup?: default

Auto-wrapup timer for the task This is used to automatically wrap up tasks after a specified duration as defined in AutoWrapup

data: TaskData

Event data received in the Contact Center events. Contains detailed task information including interaction details, media resources, and participant data as defined in TaskData

state?: MachineSnapshot<TaskContext, TaskEventPayload, Record<string, AnyActorRef>, IDLE | OFFERED | CONNECTED | HOLD_INITIATING | HELD | RESUME_INITIATING | CONSULT_INITIATING | CONSULTING | CONF_INITIATING | CONFERENCING | WRAPPING_UP | COMPLETED | TERMINATED, string, {}, MetaObject, {
    context: TaskContext;
    id: string;
    initial: TaskState;
    on: {
        CONTACT_OWNER_CHANGED: {
            actions: string[];
        };
        CONTACT_UPDATED: {
            actions: string[];
        };
        HYDRATE: {
            actions: string[];
        };
        RECORDING_STARTED: {
            actions: string[];
        };
    };
    states: {
        COMPLETED: {
            entry: string[];
            type: "final";
        };
        CONFERENCING: {
            on: {
                CONFERENCE_END: ({
                    actions: string[];
                    guard: ((__namedParameters) => boolean);
                    target: TaskState;
                } | {
                    actions: string[];
                    guard: ((__namedParameters) => boolean);
                    target: TaskState;
                } | {
                    actions: string[];
                    guard?: undefined;
                    target: TaskState;
                })[];
                CONFERENCE_START: {
                    actions: string[];
                };
                CONSULT: {
                    actions: string[];
                    target: TaskState;
                };
                CONSULT_END: {
                    actions: string[];
                };
                CONTACT_ENDED: {
                    actions: string[];
                }[];
                EXIT_CONFERENCE_SUCCESS: ({
                    actions: string[];
                    guard: ((__namedParameters) => boolean);
                    target: TaskState;
                } | {
                    actions: string[];
                    guard?: undefined;
                    target: TaskState;
                })[];
                HOLD_SUCCESS: {
                    actions: string[];
                };
                PARTICIPANT_LEAVE: ({
                    actions: string[];
                    guard: ((params) => boolean);
                    target: TaskState;
                } | {
                    actions: string[];
                    guard?: undefined;
                    target?: undefined;
                })[];
                TRANSFER_CONFERENCE: {
                    actions: string[];
                };
                TRANSFER_CONFERENCE_FAILED: {
                    actions: string[];
                };
                TRANSFER_CONFERENCE_SUCCESS: {
                    actions: string[];
                    guard: ((__namedParameters) => boolean);
                }[];
                UNHOLD_SUCCESS: {
                    actions: string[];
                };
            };
        };
        CONF_INITIATING: {
            on: {
                CONFERENCE_FAILED: {
                    actions: string[];
                    target: TaskState;
                };
                CONFERENCE_START: {
                    actions: string[];
                    target: TaskState;
                };
            };
        };
        CONNECTED: {
            on: {
                ASSIGN: {
                    actions: string[];
                    target: TaskState;
                };
                CONSULT: {
                    actions: string[];
                    target: TaskState;
                };
                CONSULTING_ACTIVE: {
                    actions: string[];
                    target: TaskState;
                };
                CONTACT_ENDED: ({
                    actions: string[];
                    guard: ((__namedParameters) => boolean);
                    target: TaskState;
                } | {
                    actions: string[];
                    guard?: undefined;
                    target: TaskState;
                })[];
                HOLD_INITIATED: {
                    target: TaskState;
                };
                HOLD_SUCCESS: {
                    actions: string[];
                    target: TaskState;
                };
                PAUSE_RECORDING: {
                    actions: string[];
                };
                RESUME_RECORDING: {
                    actions: string[];
                };
                TASK_WRAPUP: {
                    actions: string[];
                    target: TaskState;
                };
                TRANSFER_FAILED: {
                    actions: string[];
                };
                TRANSFER_SUCCESS: ({
                    actions: string[];
                    guard: ((__namedParameters) => boolean);
                    target: TaskState;
                } | {
                    actions: string[];
                    guard?: undefined;
                    target?: undefined;
                })[];
            };
        };
        CONSULTING: {
            on: {
                ASSIGN: {
                    actions: string[];
                    target: TaskState;
                };
                CONFERENCE_START: {
                    actions: string[];
                    target: TaskState;
                };
                CONSULTING_ACTIVE: {
                    actions: string[];
                };
                CONSULT_END: ({
                    actions: string[];
                    guard: ((__namedParameters) => boolean);
                    target: TaskState;
                } | {
                    actions: string[];
                    guard?: undefined;
                    target: TaskState;
                })[];
                CONTACT_ENDED: {
                    actions: string[];
                    target: TaskState;
                };
                HOLD_SUCCESS: {
                    actions: string[];
                };
                MERGE_TO_CONFERENCE: {
                    target: TaskState;
                };
                SWITCH_TO_CONSULT: {
                    actions: string[];
                };
                SWITCH_TO_MAIN_CALL: {
                    actions: string[];
                };
                TASK_WRAPUP: {
                    actions: string[];
                    target: TaskState;
                };
                TRANSFER_CONFERENCE: {
                    actions: string[];
                };
                TRANSFER_CONFERENCE_FAILED: {
                    actions: string[];
                };
                TRANSFER_CONFERENCE_SUCCESS: ({
                    actions: string[];
                    guard: ((__namedParameters) => boolean);
                    target?: undefined;
                } | {
                    actions: string[];
                    guard: ((__namedParameters) => boolean);
                    target: TaskState;
                } | {
                    actions: string[];
                    guard?: undefined;
                    target: TaskState;
                })[];
                TRANSFER_FAILED: {
                    actions: string[];
                };
                TRANSFER_SUCCESS: ({
                    actions: string[];
                    guard: ((__namedParameters) => boolean);
                    target: TaskState;
                } | {
                    actions: string[];
                    guard?: undefined;
                    target: TaskState;
                })[];
                UNHOLD_SUCCESS: {
                    actions: string[];
                };
            };
        };
        CONSULT_INITIATING: {
            on: {
                CONSULT_FAILED: ({
                    actions: string[];
                    guard: ((__namedParameters) => boolean);
                    target: TaskState;
                } | {
                    actions: string[];
                    guard?: undefined;
                    target: TaskState;
                })[];
                CONSULT_SUCCESS: {
                    actions: string[];
                    target: TaskState;
                };
                CTQ_CANCEL: ({
                    actions: string[];
                    guard: ((__namedParameters) => boolean);
                    target: TaskState;
                } | {
                    actions: string[];
                    guard?: undefined;
                    target: TaskState;
                })[];
                HOLD_FAILED: {
                    actions: string[];
                    target: TaskState;
                };
                HOLD_SUCCESS: {
                    actions: string[];
                };
            };
        };
        HELD: {
            on: {
                CONSULT: {
                    actions: string[];
                    target: TaskState;
                };
                CONTACT_ENDED: ({
                    actions: string[];
                    guard: ((__namedParameters) => boolean);
                    target: TaskState;
                } | {
                    actions: string[];
                    guard?: undefined;
                    target: TaskState;
                })[];
                TASK_WRAPUP: {
                    actions: string[];
                    target: TaskState;
                };
                TRANSFER_FAILED: {
                    actions: string[];
                };
                TRANSFER_SUCCESS: ({
                    actions: string[];
                    guard: ((__namedParameters) => boolean);
                    target: TaskState;
                } | {
                    actions: string[];
                    guard?: undefined;
                    target: TaskState;
                })[];
                UNHOLD_INITIATED: {
                    target: TaskState;
                };
                UNHOLD_SUCCESS: {
                    actions: string[];
                    target: TaskState;
                };
            };
        };
        HOLD_INITIATING: {
            on: {
                HOLD_FAILED: {
                    actions: string[];
                    target: TaskState;
                };
                HOLD_SUCCESS: {
                    actions: string[];
                    target: TaskState;
                };
            };
        };
        IDLE: {
            on: {
                CONSULTING_ACTIVE: {
                    actions: string[];
                    target: TaskState;
                };
                HYDRATE: ({
                    actions: string[];
                    guard: ((__namedParameters) => boolean);
                    target: TaskState;
                } | {
                    actions: string[];
                    guard?: undefined;
                    target?: undefined;
                })[];
                TASK_INCOMING: {
                    actions: string[];
                    target: TaskState;
                };
            };
        };
        OFFERED: {
            on: {
                ASSIGN: ({
                    actions: string[];
                    guard: ((__namedParameters) => boolean);
                    target: TaskState;
                } | {
                    actions: string[];
                    guard?: undefined;
                    target: TaskState;
                })[];
                ASSIGN_FAILED: {
                    actions: string[];
                    target: TaskState;
                };
                CONSULTING_ACTIVE: {
                    actions: string[];
                    target: TaskState;
                }[];
                CONSULT_END: {
                    actions: string[];
                    target: TaskState;
                };
                CONSULT_FAILED: {
                    actions: string[];
                    target: TaskState;
                };
                CONTACT_ENDED: {
                    actions: string[];
                    target: TaskState;
                };
                INVITE_FAILED: {
                    actions: string[];
                    target: TaskState;
                };
                OFFER_CONSULT: {
                    actions: string[];
                };
                OUTBOUND_FAILED: ({
                    actions: string[];
                    guard: ((__namedParameters) => boolean);
                    target: TaskState;
                } | {
                    actions: string[];
                    guard?: undefined;
                    target: TaskState;
                })[];
                RONA: {
                    actions: string[];
                    target: TaskState;
                };
                TASK_OFFERED: {
                    actions: string[];
                };
                TASK_WRAPUP: {
                    actions: string[];
                    target: TaskState;
                };
            };
        };
        RESUME_INITIATING: {
            on: {
                UNHOLD_FAILED: {
                    target: TaskState;
                };
                UNHOLD_SUCCESS: {
                    actions: string[];
                    target: TaskState;
                };
            };
        };
        TERMINATED: {
            entry: string[];
            type: "final";
        };
        WRAPPING_UP: {
            entry: string[];
            on: {
                WRAPUP_COMPLETE: {
                    actions: string[];
                    target: TaskState;
                };
            };
        };
    };
}>

Type declaration

    Type declaration

    • context: TaskContext
    • id: string
    • initial: TaskState
    • on: {
          CONTACT_OWNER_CHANGED: {
              actions: string[];
          };
          CONTACT_UPDATED: {
              actions: string[];
          };
          HYDRATE: {
              actions: string[];
          };
          RECORDING_STARTED: {
              actions: string[];
          };
      }
      • CONTACT_OWNER_CHANGED: {
            actions: string[];
        }
        • actions: string[]
      • CONTACT_UPDATED: {
            actions: string[];
        }
        • actions: string[]
      • HYDRATE: {
            actions: string[];
        }
        • actions: string[]
      • RECORDING_STARTED: {
            actions: string[];
        }
        • actions: string[]
    • states: {
          COMPLETED: {
              entry: string[];
              type: "final";
          };
          CONFERENCING: {
              on: {
                  CONFERENCE_END: ({
                      actions: string[];
                      guard: ((__namedParameters) => boolean);
                      target: TaskState;
                  } | {
                      actions: string[];
                      guard: ((__namedParameters) => boolean);
                      target: TaskState;
                  } | {
                      actions: string[];
                      guard?: undefined;
                      target: TaskState;
                  })[];
                  CONFERENCE_START: {
                      actions: string[];
                  };
                  CONSULT: {
                      actions: string[];
                      target: TaskState;
                  };
                  CONSULT_END: {
                      actions: string[];
                  };
                  CONTACT_ENDED: {
                      actions: string[];
                  }[];
                  EXIT_CONFERENCE_SUCCESS: ({
                      actions: string[];
                      guard: ((__namedParameters) => boolean);
                      target: TaskState;
                  } | {
                      actions: string[];
                      guard?: undefined;
                      target: TaskState;
                  })[];
                  HOLD_SUCCESS: {
                      actions: string[];
                  };
                  PARTICIPANT_LEAVE: ({
                      actions: string[];
                      guard: ((params) => boolean);
                      target: TaskState;
                  } | {
                      actions: string[];
                      guard?: undefined;
                      target?: undefined;
                  })[];
                  TRANSFER_CONFERENCE: {
                      actions: string[];
                  };
                  TRANSFER_CONFERENCE_FAILED: {
                      actions: string[];
                  };
                  TRANSFER_CONFERENCE_SUCCESS: {
                      actions: string[];
                      guard: ((__namedParameters) => boolean);
                  }[];
                  UNHOLD_SUCCESS: {
                      actions: string[];
                  };
              };
          };
          CONF_INITIATING: {
              on: {
                  CONFERENCE_FAILED: {
                      actions: string[];
                      target: TaskState;
                  };
                  CONFERENCE_START: {
                      actions: string[];
                      target: TaskState;
                  };
              };
          };
          CONNECTED: {
              on: {
                  ASSIGN: {
                      actions: string[];
                      target: TaskState;
                  };
                  CONSULT: {
                      actions: string[];
                      target: TaskState;
                  };
                  CONSULTING_ACTIVE: {
                      actions: string[];
                      target: TaskState;
                  };
                  CONTACT_ENDED: ({
                      actions: string[];
                      guard: ((__namedParameters) => boolean);
                      target: TaskState;
                  } | {
                      actions: string[];
                      guard?: undefined;
                      target: TaskState;
                  })[];
                  HOLD_INITIATED: {
                      target: TaskState;
                  };
                  HOLD_SUCCESS: {
                      actions: string[];
                      target: TaskState;
                  };
                  PAUSE_RECORDING: {
                      actions: string[];
                  };
                  RESUME_RECORDING: {
                      actions: string[];
                  };
                  TASK_WRAPUP: {
                      actions: string[];
                      target: TaskState;
                  };
                  TRANSFER_FAILED: {
                      actions: string[];
                  };
                  TRANSFER_SUCCESS: ({
                      actions: string[];
                      guard: ((__namedParameters) => boolean);
                      target: TaskState;
                  } | {
                      actions: string[];
                      guard?: undefined;
                      target?: undefined;
                  })[];
              };
          };
          CONSULTING: {
              on: {
                  ASSIGN: {
                      actions: string[];
                      target: TaskState;
                  };
                  CONFERENCE_START: {
                      actions: string[];
                      target: TaskState;
                  };
                  CONSULTING_ACTIVE: {
                      actions: string[];
                  };
                  CONSULT_END: ({
                      actions: string[];
                      guard: ((__namedParameters) => boolean);
                      target: TaskState;
                  } | {
                      actions: string[];
                      guard?: undefined;
                      target: TaskState;
                  })[];
                  CONTACT_ENDED: {
                      actions: string[];
                      target: TaskState;
                  };
                  HOLD_SUCCESS: {
                      actions: string[];
                  };
                  MERGE_TO_CONFERENCE: {
                      target: TaskState;
                  };
                  SWITCH_TO_CONSULT: {
                      actions: string[];
                  };
                  SWITCH_TO_MAIN_CALL: {
                      actions: string[];
                  };
                  TASK_WRAPUP: {
                      actions: string[];
                      target: TaskState;
                  };
                  TRANSFER_CONFERENCE: {
                      actions: string[];
                  };
                  TRANSFER_CONFERENCE_FAILED: {
                      actions: string[];
                  };
                  TRANSFER_CONFERENCE_SUCCESS: ({
                      actions: string[];
                      guard: ((__namedParameters) => boolean);
                      target?: undefined;
                  } | {
                      actions: string[];
                      guard: ((__namedParameters) => boolean);
                      target: TaskState;
                  } | {
                      actions: string[];
                      guard?: undefined;
                      target: TaskState;
                  })[];
                  TRANSFER_FAILED: {
                      actions: string[];
                  };
                  TRANSFER_SUCCESS: ({
                      actions: string[];
                      guard: ((__namedParameters) => boolean);
                      target: TaskState;
                  } | {
                      actions: string[];
                      guard?: undefined;
                      target: TaskState;
                  })[];
                  UNHOLD_SUCCESS: {
                      actions: string[];
                  };
              };
          };
          CONSULT_INITIATING: {
              on: {
                  CONSULT_FAILED: ({
                      actions: string[];
                      guard: ((__namedParameters) => boolean);
                      target: TaskState;
                  } | {
                      actions: string[];
                      guard?: undefined;
                      target: TaskState;
                  })[];
                  CONSULT_SUCCESS: {
                      actions: string[];
                      target: TaskState;
                  };
                  CTQ_CANCEL: ({
                      actions: string[];
                      guard: ((__namedParameters) => boolean);
                      target: TaskState;
                  } | {
                      actions: string[];
                      guard?: undefined;
                      target: TaskState;
                  })[];
                  HOLD_FAILED: {
                      actions: string[];
                      target: TaskState;
                  };
                  HOLD_SUCCESS: {
                      actions: string[];
                  };
              };
          };
          HELD: {
              on: {
                  CONSULT: {
                      actions: string[];
                      target: TaskState;
                  };
                  CONTACT_ENDED: ({
                      actions: string[];
                      guard: ((__namedParameters) => boolean);
                      target: TaskState;
                  } | {
                      actions: string[];
                      guard?: undefined;
                      target: TaskState;
                  })[];
                  TASK_WRAPUP: {
                      actions: string[];
                      target: TaskState;
                  };
                  TRANSFER_FAILED: {
                      actions: string[];
                  };
                  TRANSFER_SUCCESS: ({
                      actions: string[];
                      guard: ((__namedParameters) => boolean);
                      target: TaskState;
                  } | {
                      actions: string[];
                      guard?: undefined;
                      target: TaskState;
                  })[];
                  UNHOLD_INITIATED: {
                      target: TaskState;
                  };
                  UNHOLD_SUCCESS: {
                      actions: string[];
                      target: TaskState;
                  };
              };
          };
          HOLD_INITIATING: {
              on: {
                  HOLD_FAILED: {
                      actions: string[];
                      target: TaskState;
                  };
                  HOLD_SUCCESS: {
                      actions: string[];
                      target: TaskState;
                  };
              };
          };
          IDLE: {
              on: {
                  CONSULTING_ACTIVE: {
                      actions: string[];
                      target: TaskState;
                  };
                  HYDRATE: ({
                      actions: string[];
                      guard: ((__namedParameters) => boolean);
                      target: TaskState;
                  } | {
                      actions: string[];
                      guard?: undefined;
                      target?: undefined;
                  })[];
                  TASK_INCOMING: {
                      actions: string[];
                      target: TaskState;
                  };
              };
          };
          OFFERED: {
              on: {
                  ASSIGN: ({
                      actions: string[];
                      guard: ((__namedParameters) => boolean);
                      target: TaskState;
                  } | {
                      actions: string[];
                      guard?: undefined;
                      target: TaskState;
                  })[];
                  ASSIGN_FAILED: {
                      actions: string[];
                      target: TaskState;
                  };
                  CONSULTING_ACTIVE: {
                      actions: string[];
                      target: TaskState;
                  }[];
                  CONSULT_END: {
                      actions: string[];
                      target: TaskState;
                  };
                  CONSULT_FAILED: {
                      actions: string[];
                      target: TaskState;
                  };
                  CONTACT_ENDED: {
                      actions: string[];
                      target: TaskState;
                  };
                  INVITE_FAILED: {
                      actions: string[];
                      target: TaskState;
                  };
                  OFFER_CONSULT: {
                      actions: string[];
                  };
                  OUTBOUND_FAILED: ({
                      actions: string[];
                      guard: ((__namedParameters) => boolean);
                      target: TaskState;
                  } | {
                      actions: string[];
                      guard?: undefined;
                      target: TaskState;
                  })[];
                  RONA: {
                      actions: string[];
                      target: TaskState;
                  };
                  TASK_OFFERED: {
                      actions: string[];
                  };
                  TASK_WRAPUP: {
                      actions: string[];
                      target: TaskState;
                  };
              };
          };
          RESUME_INITIATING: {
              on: {
                  UNHOLD_FAILED: {
                      target: TaskState;
                  };
                  UNHOLD_SUCCESS: {
                      actions: string[];
                      target: TaskState;
                  };
              };
          };
          TERMINATED: {
              entry: string[];
              type: "final";
          };
          WRAPPING_UP: {
              entry: string[];
              on: {
                  WRAPUP_COMPLETE: {
                      actions: string[];
                      target: TaskState;
                  };
              };
          };
      }
      • COMPLETED: {
            entry: string[];
            type: "final";
        }
        • entry: string[]
        • type: "final"
      • CONFERENCING: {
            on: {
                CONFERENCE_END: ({
                    actions: string[];
                    guard: ((__namedParameters) => boolean);
                    target: TaskState;
                } | {
                    actions: string[];
                    guard: ((__namedParameters) => boolean);
                    target: TaskState;
                } | {
                    actions: string[];
                    guard?: undefined;
                    target: TaskState;
                })[];
                CONFERENCE_START: {
                    actions: string[];
                };
                CONSULT: {
                    actions: string[];
                    target: TaskState;
                };
                CONSULT_END: {
                    actions: string[];
                };
                CONTACT_ENDED: {
                    actions: string[];
                }[];
                EXIT_CONFERENCE_SUCCESS: ({
                    actions: string[];
                    guard: ((__namedParameters) => boolean);
                    target: TaskState;
                } | {
                    actions: string[];
                    guard?: undefined;
                    target: TaskState;
                })[];
                HOLD_SUCCESS: {
                    actions: string[];
                };
                PARTICIPANT_LEAVE: ({
                    actions: string[];
                    guard: ((params) => boolean);
                    target: TaskState;
                } | {
                    actions: string[];
                    guard?: undefined;
                    target?: undefined;
                })[];
                TRANSFER_CONFERENCE: {
                    actions: string[];
                };
                TRANSFER_CONFERENCE_FAILED: {
                    actions: string[];
                };
                TRANSFER_CONFERENCE_SUCCESS: {
                    actions: string[];
                    guard: ((__namedParameters) => boolean);
                }[];
                UNHOLD_SUCCESS: {
                    actions: string[];
                };
            };
        }
        • on: {
              CONFERENCE_END: ({
                  actions: string[];
                  guard: ((__namedParameters) => boolean);
                  target: TaskState;
              } | {
                  actions: string[];
                  guard: ((__namedParameters) => boolean);
                  target: TaskState;
              } | {
                  actions: string[];
                  guard?: undefined;
                  target: TaskState;
              })[];
              CONFERENCE_START: {
                  actions: string[];
              };
              CONSULT: {
                  actions: string[];
                  target: TaskState;
              };
              CONSULT_END: {
                  actions: string[];
              };
              CONTACT_ENDED: {
                  actions: string[];
              }[];
              EXIT_CONFERENCE_SUCCESS: ({
                  actions: string[];
                  guard: ((__namedParameters) => boolean);
                  target: TaskState;
              } | {
                  actions: string[];
                  guard?: undefined;
                  target: TaskState;
              })[];
              HOLD_SUCCESS: {
                  actions: string[];
              };
              PARTICIPANT_LEAVE: ({
                  actions: string[];
                  guard: ((params) => boolean);
                  target: TaskState;
              } | {
                  actions: string[];
                  guard?: undefined;
                  target?: undefined;
              })[];
              TRANSFER_CONFERENCE: {
                  actions: string[];
              };
              TRANSFER_CONFERENCE_FAILED: {
                  actions: string[];
              };
              TRANSFER_CONFERENCE_SUCCESS: {
                  actions: string[];
                  guard: ((__namedParameters) => boolean);
              }[];
              UNHOLD_SUCCESS: {
                  actions: string[];
              };
          }
          • CONFERENCE_END: ({
                actions: string[];
                guard: ((__namedParameters) => boolean);
                target: TaskState;
            } | {
                actions: string[];
                guard: ((__namedParameters) => boolean);
                target: TaskState;
            } | {
                actions: string[];
                guard?: undefined;
                target: TaskState;
            })[]
          • CONFERENCE_START: {
                actions: string[];
            }
            • actions: string[]
          • CONSULT: {
                actions: string[];
                target: TaskState;
            }
            • actions: string[]
            • target: TaskState
          • CONSULT_END: {
                actions: string[];
            }
            • actions: string[]
          • CONTACT_ENDED: {
                actions: string[];
            }[]
          • EXIT_CONFERENCE_SUCCESS: ({
                actions: string[];
                guard: ((__namedParameters) => boolean);
                target: TaskState;
            } | {
                actions: string[];
                guard?: undefined;
                target: TaskState;
            })[]
          • HOLD_SUCCESS: {
                actions: string[];
            }
            • actions: string[]
          • PARTICIPANT_LEAVE: ({
                actions: string[];
                guard: ((params) => boolean);
                target: TaskState;
            } | {
                actions: string[];
                guard?: undefined;
                target?: undefined;
            })[]
          • TRANSFER_CONFERENCE: {
                actions: string[];
            }
            • actions: string[]
          • TRANSFER_CONFERENCE_FAILED: {
                actions: string[];
            }
            • actions: string[]
          • TRANSFER_CONFERENCE_SUCCESS: {
                actions: string[];
                guard: ((__namedParameters) => boolean);
            }[]
          • UNHOLD_SUCCESS: {
                actions: string[];
            }
            • actions: string[]
      • CONF_INITIATING: {
            on: {
                CONFERENCE_FAILED: {
                    actions: string[];
                    target: TaskState;
                };
                CONFERENCE_START: {
                    actions: string[];
                    target: TaskState;
                };
            };
        }
        • on: {
              CONFERENCE_FAILED: {
                  actions: string[];
                  target: TaskState;
              };
              CONFERENCE_START: {
                  actions: string[];
                  target: TaskState;
              };
          }
          • CONFERENCE_FAILED: {
                actions: string[];
                target: TaskState;
            }
            • actions: string[]
            • target: TaskState
          • CONFERENCE_START: {
                actions: string[];
                target: TaskState;
            }
            • actions: string[]
            • target: TaskState
      • CONNECTED: {
            on: {
                ASSIGN: {
                    actions: string[];
                    target: TaskState;
                };
                CONSULT: {
                    actions: string[];
                    target: TaskState;
                };
                CONSULTING_ACTIVE: {
                    actions: string[];
                    target: TaskState;
                };
                CONTACT_ENDED: ({
                    actions: string[];
                    guard: ((__namedParameters) => boolean);
                    target: TaskState;
                } | {
                    actions: string[];
                    guard?: undefined;
                    target: TaskState;
                })[];
                HOLD_INITIATED: {
                    target: TaskState;
                };
                HOLD_SUCCESS: {
                    actions: string[];
                    target: TaskState;
                };
                PAUSE_RECORDING: {
                    actions: string[];
                };
                RESUME_RECORDING: {
                    actions: string[];
                };
                TASK_WRAPUP: {
                    actions: string[];
                    target: TaskState;
                };
                TRANSFER_FAILED: {
                    actions: string[];
                };
                TRANSFER_SUCCESS: ({
                    actions: string[];
                    guard: ((__namedParameters) => boolean);
                    target: TaskState;
                } | {
                    actions: string[];
                    guard?: undefined;
                    target?: undefined;
                })[];
            };
        }
        • on: {
              ASSIGN: {
                  actions: string[];
                  target: TaskState;
              };
              CONSULT: {
                  actions: string[];
                  target: TaskState;
              };
              CONSULTING_ACTIVE: {
                  actions: string[];
                  target: TaskState;
              };
              CONTACT_ENDED: ({
                  actions: string[];
                  guard: ((__namedParameters) => boolean);
                  target: TaskState;
              } | {
                  actions: string[];
                  guard?: undefined;
                  target: TaskState;
              })[];
              HOLD_INITIATED: {
                  target: TaskState;
              };
              HOLD_SUCCESS: {
                  actions: string[];
                  target: TaskState;
              };
              PAUSE_RECORDING: {
                  actions: string[];
              };
              RESUME_RECORDING: {
                  actions: string[];
              };
              TASK_WRAPUP: {
                  actions: string[];
                  target: TaskState;
              };
              TRANSFER_FAILED: {
                  actions: string[];
              };
              TRANSFER_SUCCESS: ({
                  actions: string[];
                  guard: ((__namedParameters) => boolean);
                  target: TaskState;
              } | {
                  actions: string[];
                  guard?: undefined;
                  target?: undefined;
              })[];
          }
          • ASSIGN: {
                actions: string[];
                target: TaskState;
            }
            • actions: string[]
            • target: TaskState
          • CONSULT: {
                actions: string[];
                target: TaskState;
            }
            • actions: string[]
            • target: TaskState
          • CONSULTING_ACTIVE: {
                actions: string[];
                target: TaskState;
            }
            • actions: string[]
            • target: TaskState
          • CONTACT_ENDED: ({
                actions: string[];
                guard: ((__namedParameters) => boolean);
                target: TaskState;
            } | {
                actions: string[];
                guard?: undefined;
                target: TaskState;
            })[]
          • HOLD_INITIATED: {
                target: TaskState;
            }
            • target: TaskState
          • HOLD_SUCCESS: {
                actions: string[];
                target: TaskState;
            }
            • actions: string[]
            • target: TaskState
          • PAUSE_RECORDING: {
                actions: string[];
            }
            • actions: string[]
          • RESUME_RECORDING: {
                actions: string[];
            }
            • actions: string[]
          • TASK_WRAPUP: {
                actions: string[];
                target: TaskState;
            }
            • actions: string[]
            • target: TaskState
          • TRANSFER_FAILED: {
                actions: string[];
            }
            • actions: string[]
          • TRANSFER_SUCCESS: ({
                actions: string[];
                guard: ((__namedParameters) => boolean);
                target: TaskState;
            } | {
                actions: string[];
                guard?: undefined;
                target?: undefined;
            })[]
      • CONSULTING: {
            on: {
                ASSIGN: {
                    actions: string[];
                    target: TaskState;
                };
                CONFERENCE_START: {
                    actions: string[];
                    target: TaskState;
                };
                CONSULTING_ACTIVE: {
                    actions: string[];
                };
                CONSULT_END: ({
                    actions: string[];
                    guard: ((__namedParameters) => boolean);
                    target: TaskState;
                } | {
                    actions: string[];
                    guard?: undefined;
                    target: TaskState;
                })[];
                CONTACT_ENDED: {
                    actions: string[];
                    target: TaskState;
                };
                HOLD_SUCCESS: {
                    actions: string[];
                };
                MERGE_TO_CONFERENCE: {
                    target: TaskState;
                };
                SWITCH_TO_CONSULT: {
                    actions: string[];
                };
                SWITCH_TO_MAIN_CALL: {
                    actions: string[];
                };
                TASK_WRAPUP: {
                    actions: string[];
                    target: TaskState;
                };
                TRANSFER_CONFERENCE: {
                    actions: string[];
                };
                TRANSFER_CONFERENCE_FAILED: {
                    actions: string[];
                };
                TRANSFER_CONFERENCE_SUCCESS: ({
                    actions: string[];
                    guard: ((__namedParameters) => boolean);
                    target?: undefined;
                } | {
                    actions: string[];
                    guard: ((__namedParameters) => boolean);
                    target: TaskState;
                } | {
                    actions: string[];
                    guard?: undefined;
                    target: TaskState;
                })[];
                TRANSFER_FAILED: {
                    actions: string[];
                };
                TRANSFER_SUCCESS: ({
                    actions: string[];
                    guard: ((__namedParameters) => boolean);
                    target: TaskState;
                } | {
                    actions: string[];
                    guard?: undefined;
                    target: TaskState;
                })[];
                UNHOLD_SUCCESS: {
                    actions: string[];
                };
            };
        }
        • on: {
              ASSIGN: {
                  actions: string[];
                  target: TaskState;
              };
              CONFERENCE_START: {
                  actions: string[];
                  target: TaskState;
              };
              CONSULTING_ACTIVE: {
                  actions: string[];
              };
              CONSULT_END: ({
                  actions: string[];
                  guard: ((__namedParameters) => boolean);
                  target: TaskState;
              } | {
                  actions: string[];
                  guard?: undefined;
                  target: TaskState;
              })[];
              CONTACT_ENDED: {
                  actions: string[];
                  target: TaskState;
              };
              HOLD_SUCCESS: {
                  actions: string[];
              };
              MERGE_TO_CONFERENCE: {
                  target: TaskState;
              };
              SWITCH_TO_CONSULT: {
                  actions: string[];
              };
              SWITCH_TO_MAIN_CALL: {
                  actions: string[];
              };
              TASK_WRAPUP: {
                  actions: string[];
                  target: TaskState;
              };
              TRANSFER_CONFERENCE: {
                  actions: string[];
              };
              TRANSFER_CONFERENCE_FAILED: {
                  actions: string[];
              };
              TRANSFER_CONFERENCE_SUCCESS: ({
                  actions: string[];
                  guard: ((__namedParameters) => boolean);
                  target?: undefined;
              } | {
                  actions: string[];
                  guard: ((__namedParameters) => boolean);
                  target: TaskState;
              } | {
                  actions: string[];
                  guard?: undefined;
                  target: TaskState;
              })[];
              TRANSFER_FAILED: {
                  actions: string[];
              };
              TRANSFER_SUCCESS: ({
                  actions: string[];
                  guard: ((__namedParameters) => boolean);
                  target: TaskState;
              } | {
                  actions: string[];
                  guard?: undefined;
                  target: TaskState;
              })[];
              UNHOLD_SUCCESS: {
                  actions: string[];
              };
          }
          • ASSIGN: {
                actions: string[];
                target: TaskState;
            }
            • actions: string[]
            • target: TaskState
          • CONFERENCE_START: {
                actions: string[];
                target: TaskState;
            }
            • actions: string[]
            • target: TaskState
          • CONSULTING_ACTIVE: {
                actions: string[];
            }
            • actions: string[]
          • CONSULT_END: ({
                actions: string[];
                guard: ((__namedParameters) => boolean);
                target: TaskState;
            } | {
                actions: string[];
                guard?: undefined;
                target: TaskState;
            })[]
          • CONTACT_ENDED: {
                actions: string[];
                target: TaskState;
            }
            • actions: string[]
            • target: TaskState
          • HOLD_SUCCESS: {
                actions: string[];
            }
            • actions: string[]
          • MERGE_TO_CONFERENCE: {
                target: TaskState;
            }
            • target: TaskState
          • SWITCH_TO_CONSULT: {
                actions: string[];
            }
            • actions: string[]
          • SWITCH_TO_MAIN_CALL: {
                actions: string[];
            }
            • actions: string[]
          • TASK_WRAPUP: {
                actions: string[];
                target: TaskState;
            }
            • actions: string[]
            • target: TaskState
          • TRANSFER_CONFERENCE: {
                actions: string[];
            }
            • actions: string[]
          • TRANSFER_CONFERENCE_FAILED: {
                actions: string[];
            }
            • actions: string[]
          • TRANSFER_CONFERENCE_SUCCESS: ({
                actions: string[];
                guard: ((__namedParameters) => boolean);
                target?: undefined;
            } | {
                actions: string[];
                guard: ((__namedParameters) => boolean);
                target: TaskState;
            } | {
                actions: string[];
                guard?: undefined;
                target: TaskState;
            })[]
          • TRANSFER_FAILED: {
                actions: string[];
            }
            • actions: string[]
          • TRANSFER_SUCCESS: ({
                actions: string[];
                guard: ((__namedParameters) => boolean);
                target: TaskState;
            } | {
                actions: string[];
                guard?: undefined;
                target: TaskState;
            })[]
          • UNHOLD_SUCCESS: {
                actions: string[];
            }
            • actions: string[]
      • CONSULT_INITIATING: {
            on: {
                CONSULT_FAILED: ({
                    actions: string[];
                    guard: ((__namedParameters) => boolean);
                    target: TaskState;
                } | {
                    actions: string[];
                    guard?: undefined;
                    target: TaskState;
                })[];
                CONSULT_SUCCESS: {
                    actions: string[];
                    target: TaskState;
                };
                CTQ_CANCEL: ({
                    actions: string[];
                    guard: ((__namedParameters) => boolean);
                    target: TaskState;
                } | {
                    actions: string[];
                    guard?: undefined;
                    target: TaskState;
                })[];
                HOLD_FAILED: {
                    actions: string[];
                    target: TaskState;
                };
                HOLD_SUCCESS: {
                    actions: string[];
                };
            };
        }
        • on: {
              CONSULT_FAILED: ({
                  actions: string[];
                  guard: ((__namedParameters) => boolean);
                  target: TaskState;
              } | {
                  actions: string[];
                  guard?: undefined;
                  target: TaskState;
              })[];
              CONSULT_SUCCESS: {
                  actions: string[];
                  target: TaskState;
              };
              CTQ_CANCEL: ({
                  actions: string[];
                  guard: ((__namedParameters) => boolean);
                  target: TaskState;
              } | {
                  actions: string[];
                  guard?: undefined;
                  target: TaskState;
              })[];
              HOLD_FAILED: {
                  actions: string[];
                  target: TaskState;
              };
              HOLD_SUCCESS: {
                  actions: string[];
              };
          }
          • CONSULT_FAILED: ({
                actions: string[];
                guard: ((__namedParameters) => boolean);
                target: TaskState;
            } | {
                actions: string[];
                guard?: undefined;
                target: TaskState;
            })[]
          • CONSULT_SUCCESS: {
                actions: string[];
                target: TaskState;
            }
            • actions: string[]
            • target: TaskState
          • CTQ_CANCEL: ({
                actions: string[];
                guard: ((__namedParameters) => boolean);
                target: TaskState;
            } | {
                actions: string[];
                guard?: undefined;
                target: TaskState;
            })[]
          • HOLD_FAILED: {
                actions: string[];
                target: TaskState;
            }
            • actions: string[]
            • target: TaskState
          • HOLD_SUCCESS: {
                actions: string[];
            }
            • actions: string[]
      • HELD: {
            on: {
                CONSULT: {
                    actions: string[];
                    target: TaskState;
                };
                CONTACT_ENDED: ({
                    actions: string[];
                    guard: ((__namedParameters) => boolean);
                    target: TaskState;
                } | {
                    actions: string[];
                    guard?: undefined;
                    target: TaskState;
                })[];
                TASK_WRAPUP: {
                    actions: string[];
                    target: TaskState;
                };
                TRANSFER_FAILED: {
                    actions: string[];
                };
                TRANSFER_SUCCESS: ({
                    actions: string[];
                    guard: ((__namedParameters) => boolean);
                    target: TaskState;
                } | {
                    actions: string[];
                    guard?: undefined;
                    target: TaskState;
                })[];
                UNHOLD_INITIATED: {
                    target: TaskState;
                };
                UNHOLD_SUCCESS: {
                    actions: string[];
                    target: TaskState;
                };
            };
        }
        • on: {
              CONSULT: {
                  actions: string[];
                  target: TaskState;
              };
              CONTACT_ENDED: ({
                  actions: string[];
                  guard: ((__namedParameters) => boolean);
                  target: TaskState;
              } | {
                  actions: string[];
                  guard?: undefined;
                  target: TaskState;
              })[];
              TASK_WRAPUP: {
                  actions: string[];
                  target: TaskState;
              };
              TRANSFER_FAILED: {
                  actions: string[];
              };
              TRANSFER_SUCCESS: ({
                  actions: string[];
                  guard: ((__namedParameters) => boolean);
                  target: TaskState;
              } | {
                  actions: string[];
                  guard?: undefined;
                  target: TaskState;
              })[];
              UNHOLD_INITIATED: {
                  target: TaskState;
              };
              UNHOLD_SUCCESS: {
                  actions: string[];
                  target: TaskState;
              };
          }
          • CONSULT: {
                actions: string[];
                target: TaskState;
            }
            • actions: string[]
            • target: TaskState
          • CONTACT_ENDED: ({
                actions: string[];
                guard: ((__namedParameters) => boolean);
                target: TaskState;
            } | {
                actions: string[];
                guard?: undefined;
                target: TaskState;
            })[]
          • TASK_WRAPUP: {
                actions: string[];
                target: TaskState;
            }
            • actions: string[]
            • target: TaskState
          • TRANSFER_FAILED: {
                actions: string[];
            }
            • actions: string[]
          • TRANSFER_SUCCESS: ({
                actions: string[];
                guard: ((__namedParameters) => boolean);
                target: TaskState;
            } | {
                actions: string[];
                guard?: undefined;
                target: TaskState;
            })[]
          • UNHOLD_INITIATED: {
                target: TaskState;
            }
            • target: TaskState
          • UNHOLD_SUCCESS: {
                actions: string[];
                target: TaskState;
            }
            • actions: string[]
            • target: TaskState
      • HOLD_INITIATING: {
            on: {
                HOLD_FAILED: {
                    actions: string[];
                    target: TaskState;
                };
                HOLD_SUCCESS: {
                    actions: string[];
                    target: TaskState;
                };
            };
        }
        • on: {
              HOLD_FAILED: {
                  actions: string[];
                  target: TaskState;
              };
              HOLD_SUCCESS: {
                  actions: string[];
                  target: TaskState;
              };
          }
          • HOLD_FAILED: {
                actions: string[];
                target: TaskState;
            }
            • actions: string[]
            • target: TaskState
          • HOLD_SUCCESS: {
                actions: string[];
                target: TaskState;
            }
            • actions: string[]
            • target: TaskState
      • IDLE: {
            on: {
                CONSULTING_ACTIVE: {
                    actions: string[];
                    target: TaskState;
                };
                HYDRATE: ({
                    actions: string[];
                    guard: ((__namedParameters) => boolean);
                    target: TaskState;
                } | {
                    actions: string[];
                    guard?: undefined;
                    target?: undefined;
                })[];
                TASK_INCOMING: {
                    actions: string[];
                    target: TaskState;
                };
            };
        }
        • on: {
              CONSULTING_ACTIVE: {
                  actions: string[];
                  target: TaskState;
              };
              HYDRATE: ({
                  actions: string[];
                  guard: ((__namedParameters) => boolean);
                  target: TaskState;
              } | {
                  actions: string[];
                  guard?: undefined;
                  target?: undefined;
              })[];
              TASK_INCOMING: {
                  actions: string[];
                  target: TaskState;
              };
          }
          • CONSULTING_ACTIVE: {
                actions: string[];
                target: TaskState;
            }
            • actions: string[]
            • target: TaskState
          • HYDRATE: ({
                actions: string[];
                guard: ((__namedParameters) => boolean);
                target: TaskState;
            } | {
                actions: string[];
                guard?: undefined;
                target?: undefined;
            })[]
          • TASK_INCOMING: {
                actions: string[];
                target: TaskState;
            }
            • actions: string[]
            • target: TaskState
      • OFFERED: {
            on: {
                ASSIGN: ({
                    actions: string[];
                    guard: ((__namedParameters) => boolean);
                    target: TaskState;
                } | {
                    actions: string[];
                    guard?: undefined;
                    target: TaskState;
                })[];
                ASSIGN_FAILED: {
                    actions: string[];
                    target: TaskState;
                };
                CONSULTING_ACTIVE: {
                    actions: string[];
                    target: TaskState;
                }[];
                CONSULT_END: {
                    actions: string[];
                    target: TaskState;
                };
                CONSULT_FAILED: {
                    actions: string[];
                    target: TaskState;
                };
                CONTACT_ENDED: {
                    actions: string[];
                    target: TaskState;
                };
                INVITE_FAILED: {
                    actions: string[];
                    target: TaskState;
                };
                OFFER_CONSULT: {
                    actions: string[];
                };
                OUTBOUND_FAILED: ({
                    actions: string[];
                    guard: ((__namedParameters) => boolean);
                    target: TaskState;
                } | {
                    actions: string[];
                    guard?: undefined;
                    target: TaskState;
                })[];
                RONA: {
                    actions: string[];
                    target: TaskState;
                };
                TASK_OFFERED: {
                    actions: string[];
                };
                TASK_WRAPUP: {
                    actions: string[];
                    target: TaskState;
                };
            };
        }
        • on: {
              ASSIGN: ({
                  actions: string[];
                  guard: ((__namedParameters) => boolean);
                  target: TaskState;
              } | {
                  actions: string[];
                  guard?: undefined;
                  target: TaskState;
              })[];
              ASSIGN_FAILED: {
                  actions: string[];
                  target: TaskState;
              };
              CONSULTING_ACTIVE: {
                  actions: string[];
                  target: TaskState;
              }[];
              CONSULT_END: {
                  actions: string[];
                  target: TaskState;
              };
              CONSULT_FAILED: {
                  actions: string[];
                  target: TaskState;
              };
              CONTACT_ENDED: {
                  actions: string[];
                  target: TaskState;
              };
              INVITE_FAILED: {
                  actions: string[];
                  target: TaskState;
              };
              OFFER_CONSULT: {
                  actions: string[];
              };
              OUTBOUND_FAILED: ({
                  actions: string[];
                  guard: ((__namedParameters) => boolean);
                  target: TaskState;
              } | {
                  actions: string[];
                  guard?: undefined;
                  target: TaskState;
              })[];
              RONA: {
                  actions: string[];
                  target: TaskState;
              };
              TASK_OFFERED: {
                  actions: string[];
              };
              TASK_WRAPUP: {
                  actions: string[];
                  target: TaskState;
              };
          }
          • ASSIGN: ({
                actions: string[];
                guard: ((__namedParameters) => boolean);
                target: TaskState;
            } | {
                actions: string[];
                guard?: undefined;
                target: TaskState;
            })[]
          • ASSIGN_FAILED: {
                actions: string[];
                target: TaskState;
            }
            • actions: string[]
            • target: TaskState
          • CONSULTING_ACTIVE: {
                actions: string[];
                target: TaskState;
            }[]
          • CONSULT_END: {
                actions: string[];
                target: TaskState;
            }
            • actions: string[]
            • target: TaskState
          • CONSULT_FAILED: {
                actions: string[];
                target: TaskState;
            }
            • actions: string[]
            • target: TaskState
          • CONTACT_ENDED: {
                actions: string[];
                target: TaskState;
            }
            • actions: string[]
            • target: TaskState
          • INVITE_FAILED: {
                actions: string[];
                target: TaskState;
            }
            • actions: string[]
            • target: TaskState
          • OFFER_CONSULT: {
                actions: string[];
            }
            • actions: string[]
          • OUTBOUND_FAILED: ({
                actions: string[];
                guard: ((__namedParameters) => boolean);
                target: TaskState;
            } | {
                actions: string[];
                guard?: undefined;
                target: TaskState;
            })[]
          • RONA: {
                actions: string[];
                target: TaskState;
            }
            • actions: string[]
            • target: TaskState
          • TASK_OFFERED: {
                actions: string[];
            }
            • actions: string[]
          • TASK_WRAPUP: {
                actions: string[];
                target: TaskState;
            }
            • actions: string[]
            • target: TaskState
      • RESUME_INITIATING: {
            on: {
                UNHOLD_FAILED: {
                    target: TaskState;
                };
                UNHOLD_SUCCESS: {
                    actions: string[];
                    target: TaskState;
                };
            };
        }
        • on: {
              UNHOLD_FAILED: {
                  target: TaskState;
              };
              UNHOLD_SUCCESS: {
                  actions: string[];
                  target: TaskState;
              };
          }
          • UNHOLD_FAILED: {
                target: TaskState;
            }
            • target: TaskState
          • UNHOLD_SUCCESS: {
                actions: string[];
                target: TaskState;
            }
            • actions: string[]
            • target: TaskState
      • TERMINATED: {
            entry: string[];
            type: "final";
        }
        • entry: string[]
        • type: "final"
      • WRAPPING_UP: {
            entry: string[];
            on: {
                WRAPUP_COMPLETE: {
                    actions: string[];
                    target: TaskState;
                };
            };
        }
        • entry: string[]
        • on: {
              WRAPUP_COMPLETE: {
                  actions: string[];
                  target: TaskState;
              };
          }
          • WRAPUP_COMPLETE: {
                actions: string[];
                target: TaskState;
            }
            • actions: string[]
            • target: TaskState
    stateMachineService?: ActorRef<MachineSnapshot<TaskContext, TaskEventPayload, Record<string, AnyActorRef>, IDLE | OFFERED | CONNECTED | HOLD_INITIATING | HELD | RESUME_INITIATING | CONSULT_INITIATING | CONSULTING | CONF_INITIATING | CONFERENCING | WRAPPING_UP | COMPLETED | TERMINATED, string, {}, MetaObject, {
        context: TaskContext;
        id: string;
        initial: TaskState;
        on: {
            CONTACT_OWNER_CHANGED: {
                actions: string[];
            };
            CONTACT_UPDATED: {
                actions: string[];
            };
            HYDRATE: {
                actions: string[];
            };
            RECORDING_STARTED: {
                actions: string[];
            };
        };
        states: {
            COMPLETED: {
                entry: string[];
                type: "final";
            };
            CONFERENCING: {
                on: {
                    CONFERENCE_END: ({
                        actions: string[];
                        guard: ((__namedParameters) => boolean);
                        target: TaskState;
                    } | {
                        actions: string[];
                        guard: ((__namedParameters) => boolean);
                        target: TaskState;
                    } | {
                        actions: string[];
                        guard?: undefined;
                        target: TaskState;
                    })[];
                    CONFERENCE_START: {
                        actions: string[];
                    };
                    CONSULT: {
                        actions: string[];
                        target: TaskState;
                    };
                    CONSULT_END: {
                        actions: string[];
                    };
                    CONTACT_ENDED: {
                        actions: string[];
                    }[];
                    EXIT_CONFERENCE_SUCCESS: ({
                        actions: string[];
                        guard: ((__namedParameters) => boolean);
                        target: TaskState;
                    } | {
                        actions: string[];
                        guard?: undefined;
                        target: TaskState;
                    })[];
                    HOLD_SUCCESS: {
                        actions: string[];
                    };
                    PARTICIPANT_LEAVE: ({
                        actions: string[];
                        guard: ((params) => boolean);
                        target: TaskState;
                    } | {
                        actions: string[];
                        guard?: undefined;
                        target?: undefined;
                    })[];
                    TRANSFER_CONFERENCE: {
                        actions: string[];
                    };
                    TRANSFER_CONFERENCE_FAILED: {
                        actions: string[];
                    };
                    TRANSFER_CONFERENCE_SUCCESS: {
                        actions: string[];
                        guard: ((__namedParameters) => boolean);
                    }[];
                    UNHOLD_SUCCESS: {
                        actions: string[];
                    };
                };
            };
            CONF_INITIATING: {
                on: {
                    CONFERENCE_FAILED: {
                        actions: string[];
                        target: TaskState;
                    };
                    CONFERENCE_START: {
                        actions: string[];
                        target: TaskState;
                    };
                };
            };
            CONNECTED: {
                on: {
                    ASSIGN: {
                        actions: string[];
                        target: TaskState;
                    };
                    CONSULT: {
                        actions: string[];
                        target: TaskState;
                    };
                    CONSULTING_ACTIVE: {
                        actions: string[];
                        target: TaskState;
                    };
                    CONTACT_ENDED: ({
                        actions: string[];
                        guard: ((__namedParameters) => boolean);
                        target: TaskState;
                    } | {
                        actions: string[];
                        guard?: undefined;
                        target: TaskState;
                    })[];
                    HOLD_INITIATED: {
                        target: TaskState;
                    };
                    HOLD_SUCCESS: {
                        actions: string[];
                        target: TaskState;
                    };
                    PAUSE_RECORDING: {
                        actions: string[];
                    };
                    RESUME_RECORDING: {
                        actions: string[];
                    };
                    TASK_WRAPUP: {
                        actions: string[];
                        target: TaskState;
                    };
                    TRANSFER_FAILED: {
                        actions: string[];
                    };
                    TRANSFER_SUCCESS: ({
                        actions: string[];
                        guard: ((__namedParameters) => boolean);
                        target: TaskState;
                    } | {
                        actions: string[];
                        guard?: undefined;
                        target?: undefined;
                    })[];
                };
            };
            CONSULTING: {
                on: {
                    ASSIGN: {
                        actions: string[];
                        target: TaskState;
                    };
                    CONFERENCE_START: {
                        actions: string[];
                        target: TaskState;
                    };
                    CONSULTING_ACTIVE: {
                        actions: string[];
                    };
                    CONSULT_END: ({
                        actions: string[];
                        guard: ((__namedParameters) => boolean);
                        target: TaskState;
                    } | {
                        actions: string[];
                        guard?: undefined;
                        target: TaskState;
                    })[];
                    CONTACT_ENDED: {
                        actions: string[];
                        target: TaskState;
                    };
                    HOLD_SUCCESS: {
                        actions: string[];
                    };
                    MERGE_TO_CONFERENCE: {
                        target: TaskState;
                    };
                    SWITCH_TO_CONSULT: {
                        actions: string[];
                    };
                    SWITCH_TO_MAIN_CALL: {
                        actions: string[];
                    };
                    TASK_WRAPUP: {
                        actions: string[];
                        target: TaskState;
                    };
                    TRANSFER_CONFERENCE: {
                        actions: string[];
                    };
                    TRANSFER_CONFERENCE_FAILED: {
                        actions: string[];
                    };
                    TRANSFER_CONFERENCE_SUCCESS: ({
                        actions: string[];
                        guard: ((__namedParameters) => boolean);
                        target?: undefined;
                    } | {
                        actions: string[];
                        guard: ((__namedParameters) => boolean);
                        target: TaskState;
                    } | {
                        actions: string[];
                        guard?: undefined;
                        target: TaskState;
                    })[];
                    TRANSFER_FAILED: {
                        actions: string[];
                    };
                    TRANSFER_SUCCESS: ({
                        actions: string[];
                        guard: ((__namedParameters) => boolean);
                        target: TaskState;
                    } | {
                        actions: string[];
                        guard?: undefined;
                        target: TaskState;
                    })[];
                    UNHOLD_SUCCESS: {
                        actions: string[];
                    };
                };
            };
            CONSULT_INITIATING: {
                on: {
                    CONSULT_FAILED: ({
                        actions: string[];
                        guard: ((__namedParameters) => boolean);
                        target: TaskState;
                    } | {
                        actions: string[];
                        guard?: undefined;
                        target: TaskState;
                    })[];
                    CONSULT_SUCCESS: {
                        actions: string[];
                        target: TaskState;
                    };
                    CTQ_CANCEL: ({
                        actions: string[];
                        guard: ((__namedParameters) => boolean);
                        target: TaskState;
                    } | {
                        actions: string[];
                        guard?: undefined;
                        target: TaskState;
                    })[];
                    HOLD_FAILED: {
                        actions: string[];
                        target: TaskState;
                    };
                    HOLD_SUCCESS: {
                        actions: string[];
                    };
                };
            };
            HELD: {
                on: {
                    CONSULT: {
                        actions: string[];
                        target: TaskState;
                    };
                    CONTACT_ENDED: ({
                        actions: string[];
                        guard: ((__namedParameters) => boolean);
                        target: TaskState;
                    } | {
                        actions: string[];
                        guard?: undefined;
                        target: TaskState;
                    })[];
                    TASK_WRAPUP: {
                        actions: string[];
                        target: TaskState;
                    };
                    TRANSFER_FAILED: {
                        actions: string[];
                    };
                    TRANSFER_SUCCESS: ({
                        actions: string[];
                        guard: ((__namedParameters) => boolean);
                        target: TaskState;
                    } | {
                        actions: string[];
                        guard?: undefined;
                        target: TaskState;
                    })[];
                    UNHOLD_INITIATED: {
                        target: TaskState;
                    };
                    UNHOLD_SUCCESS: {
                        actions: string[];
                        target: TaskState;
                    };
                };
            };
            HOLD_INITIATING: {
                on: {
                    HOLD_FAILED: {
                        actions: string[];
                        target: TaskState;
                    };
                    HOLD_SUCCESS: {
                        actions: string[];
                        target: TaskState;
                    };
                };
            };
            IDLE: {
                on: {
                    CONSULTING_ACTIVE: {
                        actions: string[];
                        target: TaskState;
                    };
                    HYDRATE: ({
                        actions: string[];
                        guard: ((__namedParameters) => boolean);
                        target: TaskState;
                    } | {
                        actions: string[];
                        guard?: undefined;
                        target?: undefined;
                    })[];
                    TASK_INCOMING: {
                        actions: string[];
                        target: TaskState;
                    };
                };
            };
            OFFERED: {
                on: {
                    ASSIGN: ({
                        actions: string[];
                        guard: ((__namedParameters) => boolean);
                        target: TaskState;
                    } | {
                        actions: string[];
                        guard?: undefined;
                        target: TaskState;
                    })[];
                    ASSIGN_FAILED: {
                        actions: string[];
                        target: TaskState;
                    };
                    CONSULTING_ACTIVE: {
                        actions: string[];
                        target: TaskState;
                    }[];
                    CONSULT_END: {
                        actions: string[];
                        target: TaskState;
                    };
                    CONSULT_FAILED: {
                        actions: string[];
                        target: TaskState;
                    };
                    CONTACT_ENDED: {
                        actions: string[];
                        target: TaskState;
                    };
                    INVITE_FAILED: {
                        actions: string[];
                        target: TaskState;
                    };
                    OFFER_CONSULT: {
                        actions: string[];
                    };
                    OUTBOUND_FAILED: ({
                        actions: string[];
                        guard: ((__namedParameters) => boolean);
                        target: TaskState;
                    } | {
                        actions: string[];
                        guard?: undefined;
                        target: TaskState;
                    })[];
                    RONA: {
                        actions: string[];
                        target: TaskState;
                    };
                    TASK_OFFERED: {
                        actions: string[];
                    };
                    TASK_WRAPUP: {
                        actions: string[];
                        target: TaskState;
                    };
                };
            };
            RESUME_INITIATING: {
                on: {
                    UNHOLD_FAILED: {
                        target: TaskState;
                    };
                    UNHOLD_SUCCESS: {
                        actions: string[];
                        target: TaskState;
                    };
                };
            };
            TERMINATED: {
                entry: string[];
                type: "final";
            };
            WRAPPING_UP: {
                entry: string[];
                on: {
                    WRAPUP_COMPLETE: {
                        actions: string[];
                        target: TaskState;
                    };
                };
            };
        };
    }>, TaskEventPayload, EventObject>
    webCallMap: Record<string, string>

    Map associating tasks with their corresponding call identifiers.

    agentId?: string
    contact: {
        accept: Res<AgentContact, {
            interactionId: string;
        }>;
        blindTransfer: Res<AgentContact, {
            data: TransferPayLoad;
            interactionId: string;
        }>;
        cancelCtq: Res<AgentContact, {
            data: cancelCtq;
            interactionId: string;
        }>;
        cancelTask: Res<AgentContact, {
            interactionId: string;
        }>;
        conferenceTransfer: Res<AgentContact, {
            interactionId: string;
        }>;
        consult: Res<AgentContact, {
            data: ConsultPayload;
            interactionId: string;
        }>;
        consultAccept: Res<AgentContact, {
            interactionId: string;
        }>;
        consultConference: Res<AgentContact, {
            data: ConsultConferenceData;
            interactionId: string;
        }>;
        consultEnd: Res<AgentContact, {
            data: ConsultEndPayload;
            interactionId: string;
        }>;
        consultTransfer: Res<AgentContact, {
            data: ConsultTransferPayLoad;
            interactionId: string;
        }>;
        end: Res<AgentContact, {
            interactionId: string;
        }>;
        exitConference: Res<AgentContact, {
            interactionId: string;
        }>;
        hold: Res<AgentContact, {
            data: HoldResumePayload;
            interactionId: string;
        }>;
        pauseRecording: Res<AgentContact, {
            interactionId: string;
        }>;
        resumeRecording: Res<AgentContact, {
            data: ResumeRecordingPayload;
            interactionId: string;
        }>;
        unHold: Res<AgentContact, {
            data: HoldResumePayload;
            interactionId: string;
        }>;
        vteamTransfer: Res<AgentContact, {
            data: TransferPayLoad;
            interactionId: string;
        }>;
        wrapup: Res<AgentContact, {
            data: WrapupPayLoad;
            interactionId: string;
        }>;
    }

    Type declaration

    currentUiControls: TaskUIControls
    metricsManager: default
    uiControlConfig: UIControlConfig
    wrapupData?: WrapupData
    lastState?: TaskState

    Accessors

    Methods

    • Places the current task on hold.

      Returns Promise<TaskResponse>

      Promise

      Example

      // Hold with default mediaResourceId
      await task.hold();

      // Hold with custom mediaResourceId
      await task.hold('custom-media-resource-id');
    • Resumes a task that was previously on hold.

      Returns Promise<TaskResponse>

      Promise

      Example

      // Resume with default mediaResourceId
      await task.resume();

      // Resume with custom mediaResourceId
      await task.resume('custom-media-resource-id');
    • Send an event to the state machine

      Parameters

      • event: TaskEventPayload

      Returns void

    • Toggles between consult call and main call during consulting. If on consult leg, switches to main call (holds consult). If on main call, switches to consult (resumes consult). Only available when in CONSULTING state.

      Returns Promise<TaskResponse>

      Promise

      Example

      await task.switchCall();
      
    • Toggles mute/unmute for the local audio stream during a WebRTC task.

      Returns Promise<void>

      Promise

      Example

      await task.toggleMute();
      
    • This is used to blind transfer or vTeam transfer the task

      Parameters

      Returns Promise<TaskResponse>

      Promise

      Throws

      Error

      Example

      const transferPayload = {
      to: 'myQueueId',
      destinationType: 'queue',
      }
      task.transfer(transferPayload).then(()=>{}).catch(()=>{});
    • Returns void

    • This method is used to update the task data.

      Parameters

      • updatedData: TaskData

        TaskData

      • shouldOverwrite: boolean = false

        boolean

      Returns ITask

      Example

      task.updateTaskData(updatedData, true);
      
    • Parameters

      • taskEvent: TASK_EVENTS
      • __namedParameters: {
            updateTaskData?: boolean;
        } = {}
        • Optional updateTaskData?: boolean

      Returns ((__namedParameters) => void)

        • (__namedParameters): void
        • Parameters

          • __namedParameters: TaskActionArgs

          Returns void

    • Returns Partial<TaskActionsMap>

    • Sets up the automatic wrap-up timer if wrap-up is required

      Returns void

    • Parameters

      • methodName: string

        The name of the method that is unsupported

      Returns void

      Throws

      Error