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