@twilio/voice-react-native-sdk
Version:
Twilio Voice React Native SDK
247 lines (246 loc) • 12.2 kB
TypeScript
export declare enum Constants {
'ReactNativeVoiceSDK' = "react-native",
'ReactNativeVoiceSDKVer' = "1.7.0",
'ScopeVoice' = "scopeVoice",
'ScopeCall' = "scopeCall",
'ScopeCallMessage' = "scopeCallMessage",
'ScopeCallInvite' = "scopeCallInvite",
'ScopePreflightTest' = "scopePreflightTest",
'VoiceEventError' = "voiceEventError",
'VoiceEventType' = "type",
'VoiceErrorKeyError' = "error",
'VoiceErrorKeyCode' = "code",
'VoiceErrorKeyMessage' = "message",
'VoiceEventRegistered' = "voiceEventRegistered",
'VoiceEventUnregistered' = "voiceEventUnregistered",
'CallInfoUuid' = "uuid",
'CallInfoSid' = "sid",
'CallInfoFrom' = "from",
'CallInfoTo' = "to",
'CallInfoIsMuted' = "isMuted",
'CallInfoIsOnHold' = "isOnHold",
'CallInfoState' = "state",
'CallInfoInitialConnectedTimestamp' = "initialConnectedTimestamp",
'CallStateConnected' = "connected",
'CallStateConnecting' = "connecting",
'CallStateDisconnected' = "disconnected",
'CallStateReconnecting' = "reconnecting",
'CallStateRinging' = "ringing",
'AudioCodecKeyType' = "type",
'AudioCodecTypeValueOpus' = "opus",
'AudioCodecOpusKeyMaxAverageBitrate' = "maxAverageBitrate",
'AudioCodecTypeValuePCMU' = "pcmu",
'IceTransportPolicyValueAll' = "all",
'IceTransportPolicyValueRelay' = "relay",
'IceServerKeyPassword' = "password",
'IceServerKeyServerUrl' = "serverUrl",
'IceServerKeyUsername' = "username",
'CallOptionsKeyIceTransportPolicy' = "iceTransportPolicy",
'CallOptionsKeyIceServers' = "iceServers",
'CallOptionsKeyPreferredAudioCodecs' = "preferredAudioCodecs",
'CallInviteInfoUuid' = "uuid",
'CallInviteInfoCallSid' = "callSid",
'CallInviteInfoFrom' = "from",
'CallInviteInfoTo' = "to",
'CallInviteInfoCustomParameters' = "customParameters",
'CancelledCallInviteInfoUuid' = "uuid",
'CancelledCallInviteInfoCallSid' = "callSid",
'CancelledCallInviteInfoFrom' = "from",
'CancelledCallInviteInfoTo' = "to",
'CancelledCallInviteInfoCustomParameters' = "customParameters",
'VoiceEventTypeValueIncomingCallInvite' = "voiceEventTypeValueIncomingCallInvite",
'VoiceEventSid' = "voiceEventSid",
'CallMessage' = "callMessage",
'CallMessageContent' = "content",
'CallMessageContentType' = "contentType",
'CallMessageMessageType' = "messageType",
'JSEventKeyCallMessageInfo' = "callMessage",
'VoiceEventAudioDevicesUpdated' = "voiceEventAudioDevicesUpdated",
'AudioDeviceKeyUuid' = "uuid",
'AudioDeviceKeyName' = "name",
'AudioDeviceKeyType' = "type",
'AudioDeviceKeyAudioDevices' = "audioDevices",
'AudioDeviceKeySelectedDevice' = "selectedDevice",
'AudioDeviceKeyEarpiece' = "earpiece",
'AudioDeviceKeySpeaker' = "speaker",
'AudioDeviceKeyBluetooth' = "bluetooth",
'CallInviteEventKeyType' = "type",
'CallInviteEventTypeValueAccepted' = "callInviteEventTypeValueCallInviteAccepted",
'CallInviteEventTypeValueNotificationTapped' = "callInviteEventTypeValueCallInviteNotificationTapped",
'CallInviteEventTypeValueRejected' = "callInviteEventTypeValueCallInviteRejected",
'CallInviteEventTypeValueCancelled' = "callInviteEventTypeValueCallInviteCancelled",
'CallInviteEventKeyCallSid' = "callSid",
'CallEventConnected' = "callEventConnected",
'CallEventConnectFailure' = "callEventConnectFailure",
'CallEventDisconnected' = "callEventDisconnected",
'CallEventReconnecting' = "callEventReconnecting",
'CallEventReconnected' = "callEventReconnected",
'CallEventRinging' = "callEventRinging",
'CallEventQualityWarningsChanged' = "callEventQualityWarningsChanged",
'CallEventCurrentWarnings' = "callEventCurrentWarnings",
'CallEventPreviousWarnings' = "callEventPreviousWarnings",
'CallEventMessageFailure' = "callEventMessageFailure",
'CallEventMessageReceived' = "callEventMessageReceived",
'CallEventMessageSent' = "callEventMessageSent",
'CallFeedbackScoreNotReported' = "callFeedbackScoreNotReported",
'CallFeedbackScoreOne' = "callFeedbackScoreOne",
'CallFeedbackScoreTwo' = "callFeedbackScoreTwo",
'CallFeedbackScoreThree' = "callFeedbackScoreThree",
'CallFeedbackScoreFour' = "callFeedbackScoreFour",
'CallFeedbackScoreFive' = "callFeedbackScoreFive",
'CallFeedbackIssueNotReported' = "callFeedbackIssueNotReported",
'CallFeedbackIssueDroppedCall' = "callFeedbackIssueDroppedCall",
'CallFeedbackIssueAudioLatency' = "callFeedbackIssueAudioLatency",
'CallFeedbackIssueOneWayAudio' = "callFeedbackIssueOneWayAudio",
'CallFeedbackIssueChoppyAudio' = "callFeedbackIssueChoppyAudio",
'CallFeedbackIssueNoisyCall' = "callFeedbackIssueNoisyCall",
'CallFeedbackIssueEcho' = "callFeedbackIssueEcho",
'PeerConnectionId' = "peerConnectionId",
'LocalAudioTrackStats' = "localAudioTrackStats",
'RemoteAudioTrackStats' = "remoteAudioTrackStats",
'IceCandidatePairStats' = "iceCandidatePairStats",
'IceCandidateStats' = "iceCandidateStats",
'Codec' = "codec",
'PacketsLost' = "packetsLost",
'Ssrc' = "ssrc",
'TrackId' = "trackId",
'Timestamp' = "timestamp",
'BytesSent' = "bytesSent",
'PacketsSent' = "packetsSent",
'RoundTripTime' = "roundTripTime",
'AudioLevel' = "audioLevel",
'Jitter' = "jitter",
'BytesReceived' = "bytesReceived",
'Mos' = "mos",
'TransportId' = "transportId",
'LocalCandidateId' = "localCandidateId",
'RemoteCandidateId' = "remoteCandidateId",
'State' = "state",
'LocalCandidateIp' = "localCandidateIp",
'RemoteCandidateIp' = "remoteCandidateIp",
'Nominated' = "nominated",
'Writeable' = "writeable",
'Readable' = "readable",
'TotalRoundTripTime' = "totalRoundTripTime",
'CurrentRoundTripTime' = "currentRoundTripTime",
'AvailableOutgoingBitrate' = "availableOutgoingBitrate",
'AvailableIncomingBitrate' = "availableIncomingBitrate",
'RequestsReceived' = "requestsReceived",
'RequestsSent' = "requestsSent",
'ResponsesReceived' = "responsesReceived",
'ResponsesSent' = "responsesSent",
'RetransmissionsReceived' = "retransmissionsReceived",
'RetransmissionsSent' = "retransmissionsSent",
'ConsentRequestsReceived' = "consentRequestsReceived",
'ConsentRequestsSent' = "consentRequestsSent",
'ConsentResponsesReceived' = "consentResponsesReceived",
'ConsentResponsesSent' = "consentResponsesSent",
'ActiveCandidatePair' = "activeCandidatePair",
'RelayProtocol' = "relayProtocol",
'IsRemote' = "isRemote",
'Ip' = "ip",
'Port' = "port",
'Protocol' = "protocol",
'CandidateType' = "candidateType",
'Priority' = "priority",
'Url' = "url",
'Deleted' = "deleted",
'PacketsReceived' = "packetsReceived",
'StateFailed' = "stateFailed",
'StateFrozen' = "stateFrozen",
'StateInProgress' = "stateInProgress",
'StateSucceeded' = "stateSucceeded",
'StateWaiting' = "stateWaiting",
'StateUnknown' = "stateUnknown",
'CallKitMaximumCallsPerCallGroup' = "callKitMaximumCallsPerCallGroup",
'CallKitMaximumCallGroups' = "callKitMaximumCallGroups",
'CallKitIncludesCallsInRecents' = "callKitIncludesCallsInRecents",
'CallKitSupportedHandleTypes' = "callKitSupportedHandleTypes",
'CallKitIconTemplateImageData' = "callKitIconTemplateImageData",
'CallKitRingtoneSound' = "callKitRingtoneSound",
'PreflightTestEventKeyType' = "preflightTestEventKeyType",
'PreflightTestEventKeyUuid' = "preflightTestEventKeyUuid",
'PreflightTestEventTypeValueConnected' = "preflightTestEventTypeValueConnected",
'PreflightTestEventTypeValueCompleted' = "preflightTestEventTypeValueCompleted",
'PreflightTestCompletedEventKeyReport' = "preflightTestCompletedEventKeyReport",
'PreflightTestEventTypeValueFailed' = "preflightTestEventTypeValueFailed",
'PreflightTestFailedEventKeyError' = "preflightTestFailedEventKeyError",
'PreflightTestEventTypeValueSample' = "preflightTestEventTypeValueSample",
'PreflightTestSampleEventKeySample' = "preflightTestSampleEventKeySample",
'PreflightTestEventTypeValueQualityWarning' = "preflightTestEventTypeValueQualityWarning",
'PreflightTestQualityWarningEventKeyCurrentWarnings' = "preflightTestQualityWarningEventKeyCurrentWarnings",
'PreflightTestQualityWarningEventKeyPreviousWarnings' = "preflightTestQualityWarningEventKeyPreviousWarnings",
'PreflightTestStateConnecting' = "connecting",
'PreflightTestStateConnected' = "connected",
'PreflightTestStateCompleted' = "completed",
'PreflightTestStateFailed' = "failed",
'PreflightStatsAverage' = "average",
'PreflightStatsMin' = "min",
'PreflightStatsMax' = "max",
'PreflightRTCStatsJitter' = "jitter",
'PreflightRTCStatsMos' = "mos",
'PreflightRTCStatsRtt' = "rtt",
'PreflightTimeMeasurementStart' = "start",
'PreflightTimeMeasurementEnd' = "end",
'PreflightTimeMeasurementDuration' = "duration",
'PreflightNetworkTimingSignaling' = "signaling",
'PreflightNetworkTimingPeerConnection' = "peerConnection",
'PreflightNetworkTimingIce' = "ice",
'PreflightWarningName' = "name",
'PreflightWarningThreshold' = "threshold",
'PreflightWarningValues' = "values",
'PreflightWarningTimestamp' = "timestamp",
'PreflightWarningClearedName' = "name",
'PreflightWarningClearedTimestamp' = "timestamp",
'PreflightRTCIceCandidateStatsTransportId' = "transportId",
'PreflightRTCIceCandidateStatsIsRemote' = "isRemote",
'PreflightRTCIceCandidateStatsIp' = "ip",
'PreflightRTCIceCandidateStatsPort' = "port",
'PreflightRTCIceCandidateStatsProtocol' = "protocol",
'PreflightRTCIceCandidateStatsCandidateType' = "candidateType",
'PreflightRTCIceCandidateStatsPriority' = "priority",
'PreflightRTCIceCandidateStatsUrl' = "url",
'PreflightRTCIceCandidateStatsDeleted' = "deleted",
'PreflightRTCIceCandidateStatsNetworkCost' = "networkCost",
'PreflightRTCIceCandidateStatsNetworkId' = "networkId",
'PreflightRTCIceCandidateStatsNetworkType' = "networkType",
'PreflightRTCIceCandidateStatsRelatedAddress' = "relatedAddress",
'PreflightRTCIceCandidateStatsRelatedPort' = "relatedPort",
'PreflightRTCIceCandidateStatsTcpType' = "tcpType",
'PreflightRTCSelectedIceCandidatePairStatsLocalCandidate' = "localCandidate",
'PreflightRTCSelectedIceCandidatePairStatsRemoteCandidate' = "remoteCandidate",
'PreflightRTCSampleCodec' = "codec",
'PreflightRTCSampleAudioInputLevel' = "audioInputLevel",
'PreflightRTCSampleAudioOutputLevel' = "audioOutputLevel",
'PreflightRTCSampleBytesReceived' = "bytesReceived",
'PreflightRTCSampleBytesSent' = "bytesSent",
'PreflightRTCSamplePacketsReceived' = "packetsReceived",
'PreflightRTCSamplePacketsSent' = "packetsSent",
'PreflightRTCSamplePacketsLost' = "packetsLost",
'PreflightRTCSamplePacketsLostFraction' = "packetsLostFraction",
'PreflightRTCSampleJitter' = "jitter",
'PreflightRTCSampleMos' = "mos",
'PreflightRTCSampleRtt' = "rtt",
'PreflightRTCSampleTimestamp' = "timestamp",
'PreflightCallQualityExcellent' = "excellent",
'PreflightCallQualityGreat' = "great",
'PreflightCallQualityGood' = "good",
'PreflightCallQualityFair' = "fair",
'PreflightCallQualityDegraded' = "degraded",
'PreflightCallQualityNull' = "null",
'PreflightReportCallSid' = "callSid",
'PreflightReportEdge' = "edge",
'PreflightReportSelectedEdge' = "selectedEdge",
'PreflightReportIceCandidateStats' = "iceCandidateStats",
'PreflightReportNetworkTiming' = "networkTiming",
'PreflightReportTestTiming' = "testTiming",
'PreflightReportSamples' = "samples",
'PreflightReportStats' = "stats",
'PreflightReportIsTurnRequired' = "isTurnRequired",
'PreflightReportCallQuality' = "callQuality",
'PreflightReportWarnings' = "warnings",
'PreflightReportWarningsCleared' = "warningsCleared",
'PreflightReportSelectedIceCandidatePairStats' = "selectedIceCandidatePairStats",
'ErrorCodeInvalidStateError' = "InvalidStateError",
'ErrorCodeInvalidArgumentError' = "InvalidArgumentError"
}