/** * Bandwidth * Bandwidth\'s Communication APIs * * The version of the OpenAPI document: 1.0.0 * Contact: letstalk@bandwidth.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import type { CallDirectionEnum } from './call-direction-enum'; import type { Diversion } from './diversion'; import type { StirShaken } from './stir-shaken'; /** * The Initiate event is fired when an inbound call is received for a Telephone Number on your Account. It is sent to the URL specified in the application associated with the location (sip-peer) that the called telephone number belongs to. */ export interface InitiateCallback { /** * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. */ 'eventType'?: string; /** * The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. */ 'eventTime'?: string; /** * The user account associated with the call. */ 'accountId'?: string; /** * The id of the application associated with the call. */ 'applicationId'?: string; /** * The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). */ 'from'?: string; /** * The phone number that received the call, in E.164 format (e.g. +15555555555). */ 'to'?: string; 'direction'?: CallDirectionEnum; /** * The call id associated with the event. */ 'callId'?: string; /** * The URL of the call associated with the event. */ 'callUrl'?: string; /** * Time the call was started, in ISO 8601 format. */ 'startTime'?: string; 'diversion'?: Diversion; 'stirShaken'?: StirShaken; /** * The value of the `User-To-User` header to send within the initial `INVITE`. Must include the encoding parameter as specified in RFC 7433. Only `base64`, `jwt` and `hex` encoding are currently allowed. This value, including the encoding specifier, may not exceed 256 characters. */ 'uui'?: string; }