WayloAIWaylo Docs
Web SDKAPI referenceTypes

WayloVoiceEnd

How the call ended, as this browser saw it. The stored session is the record.

type WayloVoiceEnd = 
  | {
  reason?: WayloVoiceEndReason;
  status: "completed";
}
  | {
  error: WayloVoiceError;
  reason?: WayloVoiceEndReason;
  status: "failed";
};

How the call ended, as this browser saw it. The stored session is the record.

Union Members

Type Literal

{
  reason?: WayloVoiceEndReason;
  status: "completed";
}

reason?

readonly reason?: WayloVoiceEndReason;

Why the session ended, when the agent reported it.

status

readonly status: "completed";

Type Literal

{
  error: WayloVoiceError;
  reason?: WayloVoiceEndReason;
  status: "failed";
}

error

readonly error: WayloVoiceError;

reason?

readonly reason?: WayloVoiceEndReason;

Why the session ended, when the agent reported it.

status

readonly status: "failed";

On this page