Type Definitions
-
ActivityUpdateOptions
-
Type:
- Object
Properties:
Name Type Argument Default Description rejectPendingReservationsboolean <optional>
false Represents whether all pending reservations should be rejected with the update to an unavailable Activity.
-
CallOptions
-
Type:
- Object
Properties:
Name Type Argument Default Description acceptboolean <optional>
false Represents whether the Task should be accepted before initiating the call
recordstring <optional>
'do-not-record' To record the call or not
statusCallbackUrlstring <optional>
null A valid status status callback url
tostring <optional>
null The number or endpoint that should be called. If not provided, the contact_uri defined in the Worker attributes will be used
timeoutnumber <optional>
60 The integer number of seconds Twilio should allow the phone associated to "contact_uri" to ring
-
ConferenceOptions
-
Type:
- Object
Properties:
Name Type Argument Default Description tostring <optional>
null The contact uri of the Worker; can be a phone number or a client ID. Required, if no contact_uri on the Worker's attributes.
fromstring <optional>
null The caller id for the call to the Worker. Must be a verified Twilio number.
timeoutnumber <optional>
60 The integer number of seconds that Twilio should allow the call to ring before assuming there is no answer.
statusCallbackstring <optional>
null The URL endpoint to receive call status events of the Worker leg.
statusCallbackMethodstring <optional>
'POST' The HTTP method for the Status Callback URL.
statusCallbackEventstring <optional>
'completed' A comma separated list of events to subscribe to. The possible list of events are: ['initiated', 'ringing', 'answered', 'completed'].
recordstring <optional>
'do-not-record' Whether to record the Worker leg of the Conference.
mutedboolean <optional>
false Whether the Worker leg of the Conference is muted.
beepstring | boolean <optional>
true Whether the Worker leg should be when entering the Conference. The options for beep are: [true, false, 'onEnter', 'onExit'].
startConferenceOnEnterboolean <optional>
true Whether the Conference should start when the Worker leg enters.
endConferenceOnExitboolean <optional>
false Whether the Conference should end when the Worker leg exits.
endConferenceOnCustomerExitboolean <optional>
false Whether the Conference should end when the customer leg exits.
beepOnCustomerEntranceboolean <optional>
true Whether the Conference should beep when the customer leg enters.
waitUrlstring <optional>
default Twilio hold music The URL endpoint to play when waiting for the Conference to begin.
waitMethodstring <optional>
'POST' The HTTP method for the Wait URL.
earlyMediaboolean <optional>
true Whether Twilio should feed early media to be played directly into a Conference.
maxParticipantsnumber <optional>
10 The number of max participants allowed in a Conference.
conferenceStatusCallbackstring <optional>
null The URL endpoint to receive Conference status events.
conferenceStatusCallbackMethodstring <optional>
'POST' The HTTP method for the Conference Status Callback URL.
conferenceStatusCallbackEventstring <optional>
'start,end' A comma separated list of Conference events to subscribe to. The possible list of events are: ['start', 'end', 'join', 'leave', 'mute', 'hold', 'speaker'].
conferenceRecordstring | boolean <optional>
false Whether the entire Conference should be recorded. The possible options for conferenceRecord are: [true, false, 'record-from-start', 'do-not-record'].
conferenceTrimstring <optional>
'trim-silence' Whether to trim the Conference recording. The options for conferenceTrim are: ['trim-silence', 'do-not-trim'].
recordingChannelsstring <optional>
'mono' Which channel of the Conference to record. The options are: ['mono', 'dual'].
recordingStatusCallbackstring <optional>
null The URL endpoint to receive recording status events.
recordingStatusCallbackMethodstring <optional>
'POST' The HTTP method for the Recording Status Callback URL.
conferenceRecordingStatusCallbackstring <optional>
null The URl endpoint to receive Conference events.
conferenceRecordingStatusCallbackMethodstring <optional>
'POST' The HTTP method of the Conference Recording Status Callback.
regionstring <optional>
null The specific region. The options for region are: ['us1', 'ie1', 'sg1', 'br1', 'au1', 'jp1'].
sipAuthUsernamestring <optional>
null The SIP auth username to use.
sipAuthPasswordstring <optional>
null The SIP auth password to use.
transcribeboolean <optional>
false Whether the call recording should be transcribed or not.
transcriptionConfigurationstring <optional>
null The SID or (unique) friendly name of the transcription configuration object to use.
-
DequeueOptions
-
Type:
- Object
Properties:
Name Type Argument Default Description fromstring <optional>
null The caller id for the call to the Worker. Must be a verified Twilio number.
tostring <optional>
null The contact uri of the Worker; can be a phone number or a client ID. Required, if no contact_uri on the Worker's attributes.
postWorkActivitySidstring <optional>
null The activitySid to update the Worker to after dequeuing the Reservation.
recordstring <optional>
'do-not-record' Defines which legs of the call should be recorded.
timeoutnumber <optional>
60 The integer number of seconds that Twilio should allow the call to ring before assuming there is no answer.
statusCallbackUrlstring <optional>
null A URL that Twilio will send asynchronous webhook this._request. to on a completed call event.
statusCallbackEventsstring <optional>
null A comma separated string of the events to subscribe to
-
FetchTaskQueuesParams
-
Type:
- Object
Properties:
Name Type Argument Description AfterSidstring <optional>
FriendlyNamestring <optional>
Ordering"DateUpdated:asc" | "DateUpdated:desc" <optional>
WorkerSidstring <optional>
-
FetchWorkerInfoParams
-
Type:
-
FetchWorkersParams
-
Type:
- Object
- Deprecated:
-
- Yes
Properties:
Name Type Argument Description AfterSidstring <optional>
FriendlyNamestring <optional>
ActivitySidstring <optional>
ActivityNamestring <optional>
TargetWorkersExpressionstring <optional>
Ordering"DateStatusChanged:asc" | "DateStatusChanged:desc" <optional>
MaxWorkersnumber <optional>
-
RedirectOptions
-
Type:
- Object
Properties:
Name Type Argument Default Description acceptboolean <optional>
false Represents whether the Task should be accepted before initiating the call
-
RejectOptions
-
Type:
- Object
Properties:
Name Type Description activitySidstring The sid of the Activity to update the worker to upon rejecting the Reservation
-
ReservationParticipantOptions
-
Type:
- Object
Properties:
-
TaskHoldOptions
-
Type:
- Object
Properties:
Name Type Argument Description holdUrlstring <optional>
The URL endpoint to play when participant is on hold.
holdMethod'GET' <optional>
The HTTP method for the hold URL.
-
TaskParticipantOptions
-
Type:
- Object
Properties:
Name Type Description holdboolean Whether to hold the customer leg of the Conference referenced by the Task
holdUrlstring The URL endpoint to play when participant is on hold.
holdMethod'GET' The HTTP method for the hold URL.
-
TransferOptions
-
Type:
- Object
Properties:
Name Type Default Description attributesRecord.<any, any> Updated attributes for the task
mode'WARM' | 'COLD' 'WARM' 'WARM' or 'COLD'
prioritynumber Updated priority for the task
-
WorkerDeps
-
Type:
- Object
Properties:
Name Type Argument Description RequestRequest EventBridgeSignalingEventBridgeSignaling GraphQLSignalingGraphQLSignaling <optional>
-
WorkerInfo
-
Type:
- Object
Properties:
Name Type Description accountSidstring The SID of the owning account of the Worker
activityNamestring The name of the current activity
activitySidstring The SID of the current activity
attributesObject Custom attributes describing the Worker
availableboolean Whether the Worker is available to take on Tasks
dateCreatedDate When the Worker was created
dateStatusChangedDate When the Worker’s state last changed
dateUpdatedDate When the Worker was last updated
namestring The friendly name of the Worker
sidstring The SID of the Worker
workspaceSidstring The SID of the Workspace the Worker belongs to
versionstring The version of this Worker
workerSidstring [Duplicate] sid of the Worker
workerActivitySidstring [Duplicate] activitySid of the Worker
dateActivityChangedDate [Duplicate] dateStatusChanged of the Worker
friendlyNamestring [Duplicate] name of the Worker
-
WorkerOptions
-
Type:
- Object
- Whether other open sessions of this Worker should be terminated
Properties:
Name Type Argument Default Description connectActivitySidstring <optional>
'' The Activity state of the Worker upon connect
closeExistingSessionsboolean <optional>
false setWorkerOfflineIfDisconnectedboolean <optional>
true A boolean defining whether if Worker availability set as Offline when the connection is terminated
logLevelstring <optional>
'error' The level of logging to enable ['error', 'warn', 'info', 'debug', 'trace', 'silent']
regionstring <optional>
the realm for connections (ex. "stage-us1")
enableVersionCheckboolean <optional>
false To avoid accidentally overwriting objects with outdated data
useGraphQLboolean <optional>
false Subscribe to worker events using GraphQL subscriptions
-
WorkerTaskOptions
-
Type:
- Object
Properties:
Name Type Argument Default Description attributesRecord.<any, any> <optional>
null Additional attributes for the Task
taskChannelUniqueNamestring <optional>
null The friendly name of the Channel this Task belongs to. If not provided, defaults to 'default' channel.
taskChannelSidstring <optional>
null The Sid of the Channel this Task belongs to. If not provided, defaults to 'default' channel.
virtualStartTimeDate <optional>
null Optional manually set starting time of the Task, in cases where the interaction between the customer and agents spans across multiple tasks. If not provided, defaults to dateCreated.
-
WorkspaceOptions
-
Type:
- Object
Properties:
Name Type Argument Default Description regionstring <optional>
the realm for connections (ex. "stage-us1")
pageSizenumber <optional>
The number of items returned in each request
logLevelstring <optional>
'error' The level of logging to enable ['error', 'warn', 'info', 'debug', 'trace', 'silent']
-
WrappingOptions
-
Type:
- Object
Properties:
Name Type Default Description reasonstring null The reason for wrapping up the Task