rcs-js 2.0.21 → 2.0.23-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/Client.d.ts +6 -0
- package/dist/cjs/Client.js +32 -22
- package/dist/cjs/api/errors/BadGatewayError.d.ts +6 -0
- package/dist/cjs/api/errors/BadGatewayError.js +50 -0
- package/dist/cjs/api/errors/ConflictError.d.ts +6 -0
- package/dist/cjs/api/errors/ConflictError.js +50 -0
- package/dist/cjs/api/errors/GoneError.d.ts +6 -0
- package/dist/cjs/api/errors/GoneError.js +50 -0
- package/dist/cjs/api/errors/ServiceUnavailableError.d.ts +6 -0
- package/dist/cjs/api/errors/ServiceUnavailableError.js +50 -0
- package/dist/cjs/api/errors/TooEarlyError.d.ts +6 -0
- package/dist/cjs/api/errors/TooEarlyError.js +50 -0
- package/dist/cjs/api/errors/UnprocessableEntityError.d.ts +6 -0
- package/dist/cjs/api/errors/UnprocessableEntityError.js +50 -0
- package/dist/cjs/api/errors/index.d.ts +6 -0
- package/dist/cjs/api/errors/index.js +6 -0
- package/dist/cjs/api/resources/calls/client/Client.d.ts +181 -0
- package/dist/cjs/api/resources/calls/client/Client.js +788 -0
- package/dist/cjs/api/resources/calls/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/calls/client/index.js +17 -0
- package/dist/cjs/api/resources/calls/client/requests/CallsDownloadRecordingRequest.d.ts +8 -0
- package/dist/cjs/api/resources/calls/client/requests/CallsDownloadRecordingRequest.js +3 -0
- package/dist/cjs/api/resources/calls/client/requests/CallsListEventsRequest.d.ts +10 -0
- package/dist/cjs/api/resources/calls/client/requests/CallsListEventsRequest.js +3 -0
- package/dist/cjs/api/resources/calls/client/requests/CallsListRequest.d.ts +17 -0
- package/dist/cjs/api/resources/calls/client/requests/CallsListRequest.js +3 -0
- package/dist/cjs/api/resources/calls/client/requests/CreateCallParams.d.ts +17 -0
- package/dist/cjs/api/resources/calls/client/requests/CreateCallParams.js +3 -0
- package/dist/cjs/api/resources/calls/client/requests/CreateStreamTokenParams.d.ts +12 -0
- package/dist/cjs/api/resources/calls/client/requests/CreateStreamTokenParams.js +3 -0
- package/dist/cjs/api/resources/calls/client/requests/UpdateCallParams.d.ts +12 -0
- package/dist/cjs/api/resources/calls/client/requests/UpdateCallParams.js +3 -0
- package/dist/cjs/api/resources/calls/client/requests/index.d.ts +6 -0
- package/dist/cjs/api/resources/calls/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/calls/index.d.ts +1 -0
- package/dist/cjs/api/resources/calls/index.js +17 -0
- package/dist/cjs/api/resources/forms/client/Client.d.ts +1 -1
- package/dist/cjs/api/resources/forms/client/Client.js +1 -1
- package/dist/cjs/api/resources/index.d.ts +3 -0
- package/dist/cjs/api/resources/index.js +4 -1
- package/dist/cjs/api/resources/network/client/Client.d.ts +21 -0
- package/dist/cjs/api/resources/network/client/Client.js +30 -0
- package/dist/cjs/api/resources/network/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/network/client/index.js +2 -0
- package/dist/cjs/api/resources/network/index.d.ts +2 -0
- package/dist/cjs/api/resources/network/index.js +18 -0
- package/dist/cjs/api/resources/network/resources/index.d.ts +8 -0
- package/dist/cjs/api/resources/network/resources/index.js +47 -0
- package/dist/cjs/api/resources/network/resources/requests/client/Client.d.ts +61 -0
- package/dist/cjs/api/resources/network/resources/requests/client/Client.js +223 -0
- package/dist/cjs/api/resources/network/resources/requests/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/network/resources/requests/client/index.js +17 -0
- package/dist/cjs/api/resources/network/resources/requests/client/requests/ListNetworkRequestsParams.d.ts +21 -0
- package/dist/cjs/api/resources/network/resources/requests/client/requests/ListNetworkRequestsParams.js +3 -0
- package/dist/cjs/api/resources/network/resources/requests/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/network/resources/requests/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/network/resources/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/network/resources/requests/index.js +17 -0
- package/dist/cjs/api/resources/network/resources/silentAuth/client/Client.d.ts +71 -0
- package/dist/cjs/api/resources/network/resources/silentAuth/client/Client.js +234 -0
- package/dist/cjs/api/resources/network/resources/silentAuth/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/network/resources/silentAuth/client/index.js +17 -0
- package/dist/cjs/api/resources/network/resources/silentAuth/client/requests/SilentAuthCheckRequest.d.ts +10 -0
- package/dist/cjs/api/resources/network/resources/silentAuth/client/requests/SilentAuthCheckRequest.js +3 -0
- package/dist/cjs/api/resources/network/resources/silentAuth/client/requests/SilentAuthRequest.d.ts +34 -0
- package/dist/cjs/api/resources/network/resources/silentAuth/client/requests/SilentAuthRequest.js +3 -0
- package/dist/cjs/api/resources/network/resources/silentAuth/client/requests/index.d.ts +2 -0
- package/dist/cjs/api/resources/network/resources/silentAuth/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/network/resources/silentAuth/index.d.ts +1 -0
- package/dist/cjs/api/resources/network/resources/silentAuth/index.js +17 -0
- package/dist/cjs/api/resources/network/resources/simSwap/client/Client.d.ts +37 -0
- package/dist/cjs/api/resources/network/resources/simSwap/client/Client.js +143 -0
- package/dist/cjs/api/resources/network/resources/simSwap/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/network/resources/simSwap/client/index.js +17 -0
- package/dist/cjs/api/resources/network/resources/simSwap/client/requests/SimSwapRequest.d.ts +13 -0
- package/dist/cjs/api/resources/network/resources/simSwap/client/requests/SimSwapRequest.js +3 -0
- package/dist/cjs/api/resources/network/resources/simSwap/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/network/resources/simSwap/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/network/resources/simSwap/index.d.ts +1 -0
- package/dist/cjs/api/resources/network/resources/simSwap/index.js +17 -0
- package/dist/cjs/api/resources/network/resources/subscriberMatch/client/Client.d.ts +47 -0
- package/dist/cjs/api/resources/network/resources/subscriberMatch/client/Client.js +153 -0
- package/dist/cjs/api/resources/network/resources/subscriberMatch/client/index.d.ts +1 -0
- package/dist/cjs/api/resources/network/resources/subscriberMatch/client/index.js +17 -0
- package/dist/cjs/api/resources/network/resources/subscriberMatch/client/requests/SubscriberMatchRequest.d.ts +22 -0
- package/dist/cjs/api/resources/network/resources/subscriberMatch/client/requests/SubscriberMatchRequest.js +3 -0
- package/dist/cjs/api/resources/network/resources/subscriberMatch/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/network/resources/subscriberMatch/client/requests/index.js +2 -0
- package/dist/cjs/api/resources/network/resources/subscriberMatch/index.d.ts +1 -0
- package/dist/cjs/api/resources/network/resources/subscriberMatch/index.js +17 -0
- package/dist/cjs/api/resources/voiceStreams/index.d.ts +1 -0
- package/dist/cjs/api/resources/voiceStreams/index.js +17 -0
- package/dist/cjs/api/resources/voiceStreams/types/VoiceClientFrame.d.ts +10 -0
- package/dist/cjs/api/resources/voiceStreams/types/VoiceClientFrame.js +3 -0
- package/dist/cjs/api/resources/voiceStreams/types/VoiceClientMedia.d.ts +10 -0
- package/dist/cjs/api/resources/voiceStreams/types/VoiceClientMedia.js +3 -0
- package/dist/cjs/api/resources/voiceStreams/types/VoiceClientMediaFrame.d.ts +11 -0
- package/dist/cjs/api/resources/voiceStreams/types/VoiceClientMediaFrame.js +10 -0
- package/dist/cjs/api/resources/voiceStreams/types/VoiceCommandAckFrame.d.ts +22 -0
- package/dist/cjs/api/resources/voiceStreams/types/VoiceCommandAckFrame.js +14 -0
- package/dist/cjs/api/resources/voiceStreams/types/VoiceCommandAction.d.ts +15 -0
- package/dist/cjs/api/resources/voiceStreams/types/VoiceCommandAction.js +18 -0
- package/dist/cjs/api/resources/voiceStreams/types/VoiceCommandFrame.d.ts +15 -0
- package/dist/cjs/api/resources/voiceStreams/types/VoiceCommandFrame.js +10 -0
- package/dist/cjs/api/resources/voiceStreams/types/VoiceConnectedFrame.d.ts +11 -0
- package/dist/cjs/api/resources/voiceStreams/types/VoiceConnectedFrame.js +10 -0
- package/dist/cjs/api/resources/voiceStreams/types/VoiceEventFrame.d.ts +15 -0
- package/dist/cjs/api/resources/voiceStreams/types/VoiceEventFrame.js +10 -0
- package/dist/cjs/api/resources/voiceStreams/types/VoiceMediaTrack.d.ts +5 -0
- package/dist/cjs/api/resources/voiceStreams/types/VoiceMediaTrack.js +8 -0
- package/dist/cjs/api/resources/voiceStreams/types/VoiceServerFrame.d.ts +16 -0
- package/dist/cjs/api/resources/voiceStreams/types/VoiceServerFrame.js +3 -0
- package/dist/cjs/api/resources/voiceStreams/types/VoiceServerMedia.d.ts +10 -0
- package/dist/cjs/api/resources/voiceStreams/types/VoiceServerMedia.js +3 -0
- package/dist/cjs/api/resources/voiceStreams/types/VoiceServerMediaFrame.d.ts +13 -0
- package/dist/cjs/api/resources/voiceStreams/types/VoiceServerMediaFrame.js +10 -0
- package/dist/cjs/api/resources/voiceStreams/types/index.d.ts +12 -0
- package/dist/cjs/api/resources/voiceStreams/types/index.js +28 -0
- package/dist/cjs/api/types/AgentSummary.d.ts +2 -2
- package/dist/cjs/api/types/Call.d.ts +16 -0
- package/dist/cjs/api/types/Call.js +3 -0
- package/dist/cjs/api/types/CallDirection.d.ts +11 -0
- package/dist/cjs/api/types/CallDirection.js +14 -0
- package/dist/cjs/api/types/CallEvent.d.ts +15 -0
- package/dist/cjs/api/types/CallEvent.js +3 -0
- package/dist/cjs/api/types/CallEventSource.d.ts +8 -0
- package/dist/cjs/api/types/CallEventSource.js +11 -0
- package/dist/cjs/api/types/CallMetadata.d.ts +4 -0
- package/dist/cjs/api/types/CallMetadata.js +3 -0
- package/dist/cjs/api/types/CallState.d.ts +25 -0
- package/dist/cjs/api/types/CallState.js +28 -0
- package/dist/cjs/api/types/CallStatusEvent.d.ts +41 -0
- package/dist/cjs/api/types/CallStatusEvent.js +3 -0
- package/dist/cjs/api/types/CallStreamToken.d.ts +7 -0
- package/dist/cjs/api/types/CallStreamToken.js +3 -0
- package/dist/cjs/api/types/CreatedCall.d.ts +18 -0
- package/dist/cjs/api/types/CreatedCall.js +3 -0
- package/dist/cjs/api/types/E164PhoneNumber.d.ts +4 -0
- package/dist/cjs/api/types/E164PhoneNumber.js +3 -0
- package/dist/cjs/api/types/HostedSilentAuthResponse.d.ts +8 -0
- package/dist/cjs/api/types/HostedSilentAuthResponse.js +3 -0
- package/dist/cjs/api/types/JsonSilentAuthResponse.d.ts +8 -0
- package/dist/cjs/api/types/JsonSilentAuthResponse.js +3 -0
- package/dist/cjs/api/types/ListCallEventsResponse.d.ts +5 -0
- package/dist/cjs/api/types/ListCallEventsResponse.js +3 -0
- package/dist/cjs/api/types/ListCallsResponse.d.ts +5 -0
- package/dist/cjs/api/types/ListCallsResponse.js +3 -0
- package/dist/cjs/api/types/ListNetworkRequestsResponse.d.ts +8 -0
- package/dist/cjs/api/types/ListNetworkRequestsResponse.js +3 -0
- package/dist/cjs/api/types/NetworkInsightStatus.d.ts +8 -0
- package/dist/cjs/api/types/NetworkInsightStatus.js +11 -0
- package/dist/cjs/api/types/NetworkRequestId.d.ts +4 -0
- package/dist/cjs/api/types/NetworkRequestId.js +3 -0
- package/dist/cjs/api/types/NetworkRequestResult.d.ts +5 -0
- package/dist/cjs/api/types/NetworkRequestResult.js +3 -0
- package/dist/cjs/api/types/NetworkRequestStatus.d.ts +9 -0
- package/dist/cjs/api/types/NetworkRequestStatus.js +12 -0
- package/dist/cjs/api/types/NetworkRequestSummary.d.ts +19 -0
- package/dist/cjs/api/types/NetworkRequestSummary.js +3 -0
- package/dist/cjs/api/types/NetworkRequestType.d.ts +7 -0
- package/dist/cjs/api/types/NetworkRequestType.js +10 -0
- package/dist/cjs/api/types/RecordingDownload.d.ts +5 -0
- package/dist/cjs/api/types/RecordingDownload.js +3 -0
- package/dist/cjs/api/types/RecordingState.d.ts +15 -0
- package/dist/cjs/api/types/RecordingState.js +18 -0
- package/dist/cjs/api/types/SilentAuthCheckResponse.d.ts +14 -0
- package/dist/cjs/api/types/SilentAuthCheckResponse.js +12 -0
- package/dist/cjs/api/types/SilentAuthResponse.d.ts +10 -0
- package/dist/cjs/api/types/SilentAuthResponse.js +3 -0
- package/dist/cjs/api/types/SimSwapResponse.d.ts +9 -0
- package/dist/cjs/api/types/SimSwapResponse.js +3 -0
- package/dist/cjs/api/types/SubscriberMatchAttributes.d.ts +27 -0
- package/dist/cjs/api/types/SubscriberMatchAttributes.js +3 -0
- package/dist/cjs/api/types/SubscriberMatchResponse.d.ts +46 -0
- package/dist/cjs/api/types/SubscriberMatchResponse.js +3 -0
- package/dist/cjs/api/types/SubscriberMatchResult.d.ts +12 -0
- package/dist/cjs/api/types/SubscriberMatchResult.js +15 -0
- package/dist/cjs/api/types/WebhookEventEnum.d.ts +1 -0
- package/dist/cjs/api/types/WebhookEventEnum.js +1 -0
- package/dist/cjs/api/types/index.d.ts +29 -0
- package/dist/cjs/api/types/index.js +29 -0
- package/dist/cjs/index.d.ts +6 -1
- package/dist/cjs/index.js +12 -3
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/wrapper/PinnacleClient.d.ts +4 -1
- package/dist/cjs/wrapper/PinnacleClient.js +17 -6
- package/dist/cjs/wrapper/messages/Client.d.ts +1 -1
- package/dist/cjs/wrapper/voice/Client.d.ts +34 -0
- package/dist/cjs/wrapper/voice/Client.js +147 -0
- package/dist/cjs/wrapper/voice/VoiceSocket.d.ts +98 -0
- package/dist/cjs/wrapper/voice/VoiceSocket.js +371 -0
- package/dist/cjs/wrapper/voice/types.d.ts +199 -0
- package/dist/cjs/wrapper/voice/types.js +35 -0
- package/dist/esm/Client.d.mts +6 -0
- package/dist/esm/Client.mjs +12 -2
- package/dist/esm/api/errors/BadGatewayError.d.mts +6 -0
- package/dist/esm/api/errors/BadGatewayError.mjs +13 -0
- package/dist/esm/api/errors/ConflictError.d.mts +6 -0
- package/dist/esm/api/errors/ConflictError.mjs +13 -0
- package/dist/esm/api/errors/GoneError.d.mts +6 -0
- package/dist/esm/api/errors/GoneError.mjs +13 -0
- package/dist/esm/api/errors/ServiceUnavailableError.d.mts +6 -0
- package/dist/esm/api/errors/ServiceUnavailableError.mjs +13 -0
- package/dist/esm/api/errors/TooEarlyError.d.mts +6 -0
- package/dist/esm/api/errors/TooEarlyError.mjs +13 -0
- package/dist/esm/api/errors/UnprocessableEntityError.d.mts +6 -0
- package/dist/esm/api/errors/UnprocessableEntityError.mjs +13 -0
- package/dist/esm/api/errors/index.d.mts +6 -0
- package/dist/esm/api/errors/index.mjs +6 -0
- package/dist/esm/api/resources/calls/client/Client.d.mts +181 -0
- package/dist/esm/api/resources/calls/client/Client.mjs +751 -0
- package/dist/esm/api/resources/calls/client/index.d.mts +1 -0
- package/dist/esm/api/resources/calls/client/index.mjs +1 -0
- package/dist/esm/api/resources/calls/client/requests/CallsDownloadRecordingRequest.d.mts +8 -0
- package/dist/esm/api/resources/calls/client/requests/CallsDownloadRecordingRequest.mjs +2 -0
- package/dist/esm/api/resources/calls/client/requests/CallsListEventsRequest.d.mts +10 -0
- package/dist/esm/api/resources/calls/client/requests/CallsListEventsRequest.mjs +2 -0
- package/dist/esm/api/resources/calls/client/requests/CallsListRequest.d.mts +17 -0
- package/dist/esm/api/resources/calls/client/requests/CallsListRequest.mjs +2 -0
- package/dist/esm/api/resources/calls/client/requests/CreateCallParams.d.mts +17 -0
- package/dist/esm/api/resources/calls/client/requests/CreateCallParams.mjs +2 -0
- package/dist/esm/api/resources/calls/client/requests/CreateStreamTokenParams.d.mts +12 -0
- package/dist/esm/api/resources/calls/client/requests/CreateStreamTokenParams.mjs +2 -0
- package/dist/esm/api/resources/calls/client/requests/UpdateCallParams.d.mts +12 -0
- package/dist/esm/api/resources/calls/client/requests/UpdateCallParams.mjs +2 -0
- package/dist/esm/api/resources/calls/client/requests/index.d.mts +6 -0
- package/dist/esm/api/resources/calls/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/calls/index.d.mts +1 -0
- package/dist/esm/api/resources/calls/index.mjs +1 -0
- package/dist/esm/api/resources/forms/client/Client.d.mts +1 -1
- package/dist/esm/api/resources/forms/client/Client.mjs +1 -1
- package/dist/esm/api/resources/index.d.mts +3 -0
- package/dist/esm/api/resources/index.mjs +3 -0
- package/dist/esm/api/resources/network/client/Client.d.mts +21 -0
- package/dist/esm/api/resources/network/client/Client.mjs +26 -0
- package/dist/esm/api/resources/network/client/index.d.mts +1 -0
- package/dist/esm/api/resources/network/client/index.mjs +1 -0
- package/dist/esm/api/resources/network/index.d.mts +2 -0
- package/dist/esm/api/resources/network/index.mjs +2 -0
- package/dist/esm/api/resources/network/resources/index.d.mts +8 -0
- package/dist/esm/api/resources/network/resources/index.mjs +8 -0
- package/dist/esm/api/resources/network/resources/requests/client/Client.d.mts +61 -0
- package/dist/esm/api/resources/network/resources/requests/client/Client.mjs +186 -0
- package/dist/esm/api/resources/network/resources/requests/client/index.d.mts +1 -0
- package/dist/esm/api/resources/network/resources/requests/client/index.mjs +1 -0
- package/dist/esm/api/resources/network/resources/requests/client/requests/ListNetworkRequestsParams.d.mts +21 -0
- package/dist/esm/api/resources/network/resources/requests/client/requests/ListNetworkRequestsParams.mjs +2 -0
- package/dist/esm/api/resources/network/resources/requests/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/network/resources/requests/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/network/resources/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/network/resources/requests/index.mjs +1 -0
- package/dist/esm/api/resources/network/resources/silentAuth/client/Client.d.mts +71 -0
- package/dist/esm/api/resources/network/resources/silentAuth/client/Client.mjs +197 -0
- package/dist/esm/api/resources/network/resources/silentAuth/client/index.d.mts +1 -0
- package/dist/esm/api/resources/network/resources/silentAuth/client/index.mjs +1 -0
- package/dist/esm/api/resources/network/resources/silentAuth/client/requests/SilentAuthCheckRequest.d.mts +10 -0
- package/dist/esm/api/resources/network/resources/silentAuth/client/requests/SilentAuthCheckRequest.mjs +2 -0
- package/dist/esm/api/resources/network/resources/silentAuth/client/requests/SilentAuthRequest.d.mts +34 -0
- package/dist/esm/api/resources/network/resources/silentAuth/client/requests/SilentAuthRequest.mjs +2 -0
- package/dist/esm/api/resources/network/resources/silentAuth/client/requests/index.d.mts +2 -0
- package/dist/esm/api/resources/network/resources/silentAuth/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/network/resources/silentAuth/index.d.mts +1 -0
- package/dist/esm/api/resources/network/resources/silentAuth/index.mjs +1 -0
- package/dist/esm/api/resources/network/resources/simSwap/client/Client.d.mts +37 -0
- package/dist/esm/api/resources/network/resources/simSwap/client/Client.mjs +106 -0
- package/dist/esm/api/resources/network/resources/simSwap/client/index.d.mts +1 -0
- package/dist/esm/api/resources/network/resources/simSwap/client/index.mjs +1 -0
- package/dist/esm/api/resources/network/resources/simSwap/client/requests/SimSwapRequest.d.mts +13 -0
- package/dist/esm/api/resources/network/resources/simSwap/client/requests/SimSwapRequest.mjs +2 -0
- package/dist/esm/api/resources/network/resources/simSwap/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/network/resources/simSwap/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/network/resources/simSwap/index.d.mts +1 -0
- package/dist/esm/api/resources/network/resources/simSwap/index.mjs +1 -0
- package/dist/esm/api/resources/network/resources/subscriberMatch/client/Client.d.mts +47 -0
- package/dist/esm/api/resources/network/resources/subscriberMatch/client/Client.mjs +116 -0
- package/dist/esm/api/resources/network/resources/subscriberMatch/client/index.d.mts +1 -0
- package/dist/esm/api/resources/network/resources/subscriberMatch/client/index.mjs +1 -0
- package/dist/esm/api/resources/network/resources/subscriberMatch/client/requests/SubscriberMatchRequest.d.mts +22 -0
- package/dist/esm/api/resources/network/resources/subscriberMatch/client/requests/SubscriberMatchRequest.mjs +2 -0
- package/dist/esm/api/resources/network/resources/subscriberMatch/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/network/resources/subscriberMatch/client/requests/index.mjs +1 -0
- package/dist/esm/api/resources/network/resources/subscriberMatch/index.d.mts +1 -0
- package/dist/esm/api/resources/network/resources/subscriberMatch/index.mjs +1 -0
- package/dist/esm/api/resources/voiceStreams/index.d.mts +1 -0
- package/dist/esm/api/resources/voiceStreams/index.mjs +1 -0
- package/dist/esm/api/resources/voiceStreams/types/VoiceClientFrame.d.mts +10 -0
- package/dist/esm/api/resources/voiceStreams/types/VoiceClientFrame.mjs +2 -0
- package/dist/esm/api/resources/voiceStreams/types/VoiceClientMedia.d.mts +10 -0
- package/dist/esm/api/resources/voiceStreams/types/VoiceClientMedia.mjs +2 -0
- package/dist/esm/api/resources/voiceStreams/types/VoiceClientMediaFrame.d.mts +11 -0
- package/dist/esm/api/resources/voiceStreams/types/VoiceClientMediaFrame.mjs +7 -0
- package/dist/esm/api/resources/voiceStreams/types/VoiceCommandAckFrame.d.mts +22 -0
- package/dist/esm/api/resources/voiceStreams/types/VoiceCommandAckFrame.mjs +11 -0
- package/dist/esm/api/resources/voiceStreams/types/VoiceCommandAction.d.mts +15 -0
- package/dist/esm/api/resources/voiceStreams/types/VoiceCommandAction.mjs +15 -0
- package/dist/esm/api/resources/voiceStreams/types/VoiceCommandFrame.d.mts +15 -0
- package/dist/esm/api/resources/voiceStreams/types/VoiceCommandFrame.mjs +7 -0
- package/dist/esm/api/resources/voiceStreams/types/VoiceConnectedFrame.d.mts +11 -0
- package/dist/esm/api/resources/voiceStreams/types/VoiceConnectedFrame.mjs +7 -0
- package/dist/esm/api/resources/voiceStreams/types/VoiceEventFrame.d.mts +15 -0
- package/dist/esm/api/resources/voiceStreams/types/VoiceEventFrame.mjs +7 -0
- package/dist/esm/api/resources/voiceStreams/types/VoiceMediaTrack.d.mts +5 -0
- package/dist/esm/api/resources/voiceStreams/types/VoiceMediaTrack.mjs +5 -0
- package/dist/esm/api/resources/voiceStreams/types/VoiceServerFrame.d.mts +16 -0
- package/dist/esm/api/resources/voiceStreams/types/VoiceServerFrame.mjs +2 -0
- package/dist/esm/api/resources/voiceStreams/types/VoiceServerMedia.d.mts +10 -0
- package/dist/esm/api/resources/voiceStreams/types/VoiceServerMedia.mjs +2 -0
- package/dist/esm/api/resources/voiceStreams/types/VoiceServerMediaFrame.d.mts +13 -0
- package/dist/esm/api/resources/voiceStreams/types/VoiceServerMediaFrame.mjs +7 -0
- package/dist/esm/api/resources/voiceStreams/types/index.d.mts +12 -0
- package/dist/esm/api/resources/voiceStreams/types/index.mjs +12 -0
- package/dist/esm/api/types/AgentSummary.d.mts +2 -2
- package/dist/esm/api/types/Call.d.mts +16 -0
- package/dist/esm/api/types/Call.mjs +2 -0
- package/dist/esm/api/types/CallDirection.d.mts +11 -0
- package/dist/esm/api/types/CallDirection.mjs +11 -0
- package/dist/esm/api/types/CallEvent.d.mts +15 -0
- package/dist/esm/api/types/CallEvent.mjs +2 -0
- package/dist/esm/api/types/CallEventSource.d.mts +8 -0
- package/dist/esm/api/types/CallEventSource.mjs +8 -0
- package/dist/esm/api/types/CallMetadata.d.mts +4 -0
- package/dist/esm/api/types/CallMetadata.mjs +2 -0
- package/dist/esm/api/types/CallState.d.mts +25 -0
- package/dist/esm/api/types/CallState.mjs +25 -0
- package/dist/esm/api/types/CallStatusEvent.d.mts +41 -0
- package/dist/esm/api/types/CallStatusEvent.mjs +2 -0
- package/dist/esm/api/types/CallStreamToken.d.mts +7 -0
- package/dist/esm/api/types/CallStreamToken.mjs +2 -0
- package/dist/esm/api/types/CreatedCall.d.mts +18 -0
- package/dist/esm/api/types/CreatedCall.mjs +2 -0
- package/dist/esm/api/types/E164PhoneNumber.d.mts +4 -0
- package/dist/esm/api/types/E164PhoneNumber.mjs +2 -0
- package/dist/esm/api/types/HostedSilentAuthResponse.d.mts +8 -0
- package/dist/esm/api/types/HostedSilentAuthResponse.mjs +2 -0
- package/dist/esm/api/types/JsonSilentAuthResponse.d.mts +8 -0
- package/dist/esm/api/types/JsonSilentAuthResponse.mjs +2 -0
- package/dist/esm/api/types/ListCallEventsResponse.d.mts +5 -0
- package/dist/esm/api/types/ListCallEventsResponse.mjs +2 -0
- package/dist/esm/api/types/ListCallsResponse.d.mts +5 -0
- package/dist/esm/api/types/ListCallsResponse.mjs +2 -0
- package/dist/esm/api/types/ListNetworkRequestsResponse.d.mts +8 -0
- package/dist/esm/api/types/ListNetworkRequestsResponse.mjs +2 -0
- package/dist/esm/api/types/NetworkInsightStatus.d.mts +8 -0
- package/dist/esm/api/types/NetworkInsightStatus.mjs +8 -0
- package/dist/esm/api/types/NetworkRequestId.d.mts +4 -0
- package/dist/esm/api/types/NetworkRequestId.mjs +2 -0
- package/dist/esm/api/types/NetworkRequestResult.d.mts +5 -0
- package/dist/esm/api/types/NetworkRequestResult.mjs +2 -0
- package/dist/esm/api/types/NetworkRequestStatus.d.mts +9 -0
- package/dist/esm/api/types/NetworkRequestStatus.mjs +9 -0
- package/dist/esm/api/types/NetworkRequestSummary.d.mts +19 -0
- package/dist/esm/api/types/NetworkRequestSummary.mjs +2 -0
- package/dist/esm/api/types/NetworkRequestType.d.mts +7 -0
- package/dist/esm/api/types/NetworkRequestType.mjs +7 -0
- package/dist/esm/api/types/RecordingDownload.d.mts +5 -0
- package/dist/esm/api/types/RecordingDownload.mjs +2 -0
- package/dist/esm/api/types/RecordingState.d.mts +15 -0
- package/dist/esm/api/types/RecordingState.mjs +15 -0
- package/dist/esm/api/types/SilentAuthCheckResponse.d.mts +14 -0
- package/dist/esm/api/types/SilentAuthCheckResponse.mjs +9 -0
- package/dist/esm/api/types/SilentAuthResponse.d.mts +10 -0
- package/dist/esm/api/types/SilentAuthResponse.mjs +2 -0
- package/dist/esm/api/types/SimSwapResponse.d.mts +9 -0
- package/dist/esm/api/types/SimSwapResponse.mjs +2 -0
- package/dist/esm/api/types/SubscriberMatchAttributes.d.mts +27 -0
- package/dist/esm/api/types/SubscriberMatchAttributes.mjs +2 -0
- package/dist/esm/api/types/SubscriberMatchResponse.d.mts +46 -0
- package/dist/esm/api/types/SubscriberMatchResponse.mjs +2 -0
- package/dist/esm/api/types/SubscriberMatchResult.d.mts +12 -0
- package/dist/esm/api/types/SubscriberMatchResult.mjs +12 -0
- package/dist/esm/api/types/WebhookEventEnum.d.mts +1 -0
- package/dist/esm/api/types/WebhookEventEnum.mjs +1 -0
- package/dist/esm/api/types/index.d.mts +29 -0
- package/dist/esm/api/types/index.mjs +29 -0
- package/dist/esm/index.d.mts +6 -1
- package/dist/esm/index.mjs +4 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/dist/esm/wrapper/PinnacleClient.d.mts +4 -1
- package/dist/esm/wrapper/PinnacleClient.mjs +16 -5
- package/dist/esm/wrapper/messages/Client.d.mts +1 -1
- package/dist/esm/wrapper/voice/Client.d.mts +34 -0
- package/dist/esm/wrapper/voice/Client.mjs +143 -0
- package/dist/esm/wrapper/voice/VoiceSocket.d.mts +98 -0
- package/dist/esm/wrapper/voice/VoiceSocket.mjs +366 -0
- package/dist/esm/wrapper/voice/types.d.mts +199 -0
- package/dist/esm/wrapper/voice/types.mjs +32 -0
- package/package.json +9 -8
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
import { mergeHeaders, mergeOnlyDefinedHeaders } from "../../../../../../core/headers.mjs";
|
|
12
|
+
import * as core from "../../../../../../core/index.mjs";
|
|
13
|
+
import * as environments from "../../../../../../environments.mjs";
|
|
14
|
+
import * as errors from "../../../../../../errors/index.mjs";
|
|
15
|
+
import * as Pinnacle from "../../../../../index.mjs";
|
|
16
|
+
export class SubscriberMatch {
|
|
17
|
+
constructor(_options) {
|
|
18
|
+
this._options = _options;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Compare user-provided identity details against the carrier's subscriber record. Results return match strength per attribute, so you can use partial signals without receiving carrier PII.
|
|
22
|
+
*
|
|
23
|
+
* <Note>
|
|
24
|
+
* Limited availability. Contact [founders@pinnacle.sh](mailto:founders@pinnacle.sh) to request access.
|
|
25
|
+
* </Note>
|
|
26
|
+
*
|
|
27
|
+
* @param {Pinnacle.network.SubscriberMatchRequest} request
|
|
28
|
+
* @param {SubscriberMatch.RequestOptions} requestOptions - Request-specific configuration.
|
|
29
|
+
*
|
|
30
|
+
* @throws {@link Pinnacle.BadRequestError}
|
|
31
|
+
* @throws {@link Pinnacle.UnauthorizedError}
|
|
32
|
+
* @throws {@link Pinnacle.ForbiddenError}
|
|
33
|
+
* @throws {@link Pinnacle.InternalServerError}
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* await client.network.subscriberMatch.check({
|
|
37
|
+
* phoneNumber: "+14155550123",
|
|
38
|
+
* attributes: {
|
|
39
|
+
* givenName: "Jane",
|
|
40
|
+
* familyName: "Doe",
|
|
41
|
+
* streetName: "Market Street",
|
|
42
|
+
* streetNumber: "123",
|
|
43
|
+
* postalCode: "94105",
|
|
44
|
+
* locality: "San Francisco",
|
|
45
|
+
* region: "CA",
|
|
46
|
+
* country: "US",
|
|
47
|
+
* birthdate: "1990-01-31"
|
|
48
|
+
* }
|
|
49
|
+
* })
|
|
50
|
+
*/
|
|
51
|
+
check(request, requestOptions) {
|
|
52
|
+
return core.HttpResponsePromise.fromPromise(this.__check(request, requestOptions));
|
|
53
|
+
}
|
|
54
|
+
__check(request, requestOptions) {
|
|
55
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
56
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
57
|
+
const _headers = mergeHeaders((_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders(Object.assign({}, (yield this._getCustomAuthorizationHeaders()))), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
58
|
+
const _response = yield core.fetcher({
|
|
59
|
+
url: core.url.join((_c = (_b = (yield core.Supplier.get(this._options.baseUrl))) !== null && _b !== void 0 ? _b : (yield core.Supplier.get(this._options.environment))) !== null && _c !== void 0 ? _c : environments.PinnacleEnvironment.Default, "network/subscriber-match"),
|
|
60
|
+
method: "POST",
|
|
61
|
+
headers: _headers,
|
|
62
|
+
contentType: "application/json",
|
|
63
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
64
|
+
requestType: "json",
|
|
65
|
+
body: request,
|
|
66
|
+
timeoutMs: ((_f = (_d = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _d !== void 0 ? _d : (_e = this._options) === null || _e === void 0 ? void 0 : _e.timeoutInSeconds) !== null && _f !== void 0 ? _f : 60) * 1000,
|
|
67
|
+
maxRetries: (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.maxRetries,
|
|
68
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
69
|
+
fetchFn: (_j = this._options) === null || _j === void 0 ? void 0 : _j.fetch,
|
|
70
|
+
logging: this._options.logging,
|
|
71
|
+
});
|
|
72
|
+
if (_response.ok) {
|
|
73
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
74
|
+
}
|
|
75
|
+
if (_response.error.reason === "status-code") {
|
|
76
|
+
switch (_response.error.statusCode) {
|
|
77
|
+
case 400:
|
|
78
|
+
throw new Pinnacle.BadRequestError(_response.error.body, _response.rawResponse);
|
|
79
|
+
case 401:
|
|
80
|
+
throw new Pinnacle.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
81
|
+
case 403:
|
|
82
|
+
throw new Pinnacle.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
83
|
+
case 500:
|
|
84
|
+
throw new Pinnacle.InternalServerError(_response.error.body, _response.rawResponse);
|
|
85
|
+
default:
|
|
86
|
+
throw new errors.PinnacleError({
|
|
87
|
+
statusCode: _response.error.statusCode,
|
|
88
|
+
body: _response.error.body,
|
|
89
|
+
rawResponse: _response.rawResponse,
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
switch (_response.error.reason) {
|
|
94
|
+
case "non-json":
|
|
95
|
+
throw new errors.PinnacleError({
|
|
96
|
+
statusCode: _response.error.statusCode,
|
|
97
|
+
body: _response.error.rawBody,
|
|
98
|
+
rawResponse: _response.rawResponse,
|
|
99
|
+
});
|
|
100
|
+
case "timeout":
|
|
101
|
+
throw new errors.PinnacleTimeoutError("Timeout exceeded when calling POST /network/subscriber-match.");
|
|
102
|
+
case "unknown":
|
|
103
|
+
throw new errors.PinnacleError({
|
|
104
|
+
message: _response.error.errorMessage,
|
|
105
|
+
rawResponse: _response.rawResponse,
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
_getCustomAuthorizationHeaders() {
|
|
111
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
112
|
+
const apiKeyValue = yield core.Supplier.get(this._options.apiKey);
|
|
113
|
+
return { "PINNACLE-API-KEY": apiKeyValue };
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests/index.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./requests/index.mjs";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type * as Pinnacle from "../../../../../../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* @example
|
|
4
|
+
* {
|
|
5
|
+
* phoneNumber: "+14155550123",
|
|
6
|
+
* attributes: {
|
|
7
|
+
* givenName: "Jane",
|
|
8
|
+
* familyName: "Doe",
|
|
9
|
+
* streetName: "Market Street",
|
|
10
|
+
* streetNumber: "123",
|
|
11
|
+
* postalCode: "94105",
|
|
12
|
+
* locality: "San Francisco",
|
|
13
|
+
* region: "CA",
|
|
14
|
+
* country: "US",
|
|
15
|
+
* birthdate: "1990-01-31"
|
|
16
|
+
* }
|
|
17
|
+
* }
|
|
18
|
+
*/
|
|
19
|
+
export interface SubscriberMatchRequest {
|
|
20
|
+
phoneNumber: Pinnacle.E164PhoneNumber;
|
|
21
|
+
attributes: Pinnacle.SubscriberMatchAttributes;
|
|
22
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { SubscriberMatchRequest } from "./SubscriberMatchRequest.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./client/index.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./types/index.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./types/index.mjs";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as Pinnacle from "../../../index.mjs";
|
|
2
|
+
export type VoiceClientFrame = Pinnacle.voiceStreams.VoiceClientFrame.Command | Pinnacle.voiceStreams.VoiceClientFrame.Media;
|
|
3
|
+
export declare namespace VoiceClientFrame {
|
|
4
|
+
interface Command extends Pinnacle.voiceStreams.VoiceCommandFrame {
|
|
5
|
+
event: "command";
|
|
6
|
+
}
|
|
7
|
+
interface Media extends Pinnacle.voiceStreams.VoiceClientMediaFrame {
|
|
8
|
+
event: "media";
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as Pinnacle from "../../../index.mjs";
|
|
2
|
+
export interface VoiceClientMedia {
|
|
3
|
+
track: Pinnacle.voiceStreams.VoiceMediaTrack;
|
|
4
|
+
/** Base64-encoded 8 kHz, 8-bit mu-law audio. */
|
|
5
|
+
payload: string;
|
|
6
|
+
chunk?: number;
|
|
7
|
+
timestamp?: string;
|
|
8
|
+
/** Accepts any additional properties */
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type * as Pinnacle from "../../../index.mjs";
|
|
2
|
+
export interface VoiceClientMediaFrame {
|
|
3
|
+
event: VoiceClientMediaFrame.Event;
|
|
4
|
+
media: Pinnacle.voiceStreams.VoiceClientMedia;
|
|
5
|
+
}
|
|
6
|
+
export declare namespace VoiceClientMediaFrame {
|
|
7
|
+
const Event: {
|
|
8
|
+
readonly Media: "media";
|
|
9
|
+
};
|
|
10
|
+
type Event = (typeof Event)[keyof typeof Event];
|
|
11
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type * as Pinnacle from "../../../index.mjs";
|
|
2
|
+
export interface VoiceCommandAckFrame {
|
|
3
|
+
event: VoiceCommandAckFrame.Event;
|
|
4
|
+
command_id: string;
|
|
5
|
+
action?: Pinnacle.voiceStreams.VoiceCommandAction;
|
|
6
|
+
status: VoiceCommandAckFrame.Status;
|
|
7
|
+
error?: string;
|
|
8
|
+
sequence_number?: number;
|
|
9
|
+
/** Accepts any additional properties */
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
}
|
|
12
|
+
export declare namespace VoiceCommandAckFrame {
|
|
13
|
+
const Event: {
|
|
14
|
+
readonly Ack: "ack";
|
|
15
|
+
};
|
|
16
|
+
type Event = (typeof Event)[keyof typeof Event];
|
|
17
|
+
const Status: {
|
|
18
|
+
readonly Ok: "ok";
|
|
19
|
+
readonly Error: "error";
|
|
20
|
+
};
|
|
21
|
+
type Status = (typeof Status)[keyof typeof Status];
|
|
22
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
export var VoiceCommandAckFrame;
|
|
3
|
+
(function (VoiceCommandAckFrame) {
|
|
4
|
+
VoiceCommandAckFrame.Event = {
|
|
5
|
+
Ack: "ack",
|
|
6
|
+
};
|
|
7
|
+
VoiceCommandAckFrame.Status = {
|
|
8
|
+
Ok: "ok",
|
|
9
|
+
Error: "error",
|
|
10
|
+
};
|
|
11
|
+
})(VoiceCommandAckFrame || (VoiceCommandAckFrame = {}));
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const VoiceCommandAction: {
|
|
2
|
+
readonly CallAnswer: "call.answer";
|
|
3
|
+
readonly CallEnd: "call.end";
|
|
4
|
+
readonly CallTransfer: "call.transfer";
|
|
5
|
+
readonly RecordingStart: "recording.start";
|
|
6
|
+
readonly RecordingStop: "recording.stop";
|
|
7
|
+
readonly AudioPlay: "audio.play";
|
|
8
|
+
readonly AudioStop: "audio.stop";
|
|
9
|
+
readonly AudioReduceNoise: "audio.reduce_noise";
|
|
10
|
+
readonly InputGet: "input.get";
|
|
11
|
+
readonly InputCancel: "input.cancel";
|
|
12
|
+
readonly DtmfSend: "dtmf.send";
|
|
13
|
+
readonly CallUpdateState: "call.update_state";
|
|
14
|
+
};
|
|
15
|
+
export type VoiceCommandAction = (typeof VoiceCommandAction)[keyof typeof VoiceCommandAction];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
export const VoiceCommandAction = {
|
|
3
|
+
CallAnswer: "call.answer",
|
|
4
|
+
CallEnd: "call.end",
|
|
5
|
+
CallTransfer: "call.transfer",
|
|
6
|
+
RecordingStart: "recording.start",
|
|
7
|
+
RecordingStop: "recording.stop",
|
|
8
|
+
AudioPlay: "audio.play",
|
|
9
|
+
AudioStop: "audio.stop",
|
|
10
|
+
AudioReduceNoise: "audio.reduce_noise",
|
|
11
|
+
InputGet: "input.get",
|
|
12
|
+
InputCancel: "input.cancel",
|
|
13
|
+
DtmfSend: "dtmf.send",
|
|
14
|
+
CallUpdateState: "call.update_state",
|
|
15
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type * as Pinnacle from "../../../index.mjs";
|
|
2
|
+
export interface VoiceCommandFrame {
|
|
3
|
+
event: VoiceCommandFrame.Event;
|
|
4
|
+
command_id: string;
|
|
5
|
+
action: Pinnacle.voiceStreams.VoiceCommandAction;
|
|
6
|
+
params?: Record<string, unknown>;
|
|
7
|
+
/** Accepts any additional properties */
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
}
|
|
10
|
+
export declare namespace VoiceCommandFrame {
|
|
11
|
+
const Event: {
|
|
12
|
+
readonly Command: "command";
|
|
13
|
+
};
|
|
14
|
+
type Event = (typeof Event)[keyof typeof Event];
|
|
15
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface VoiceConnectedFrame {
|
|
2
|
+
event: VoiceConnectedFrame.Event;
|
|
3
|
+
stream_sid: string;
|
|
4
|
+
sequence_number?: number;
|
|
5
|
+
}
|
|
6
|
+
export declare namespace VoiceConnectedFrame {
|
|
7
|
+
const Event: {
|
|
8
|
+
readonly Connected: "connected";
|
|
9
|
+
};
|
|
10
|
+
type Event = (typeof Event)[keyof typeof Event];
|
|
11
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface VoiceEventFrame {
|
|
2
|
+
event: VoiceEventFrame.Event;
|
|
3
|
+
type: string;
|
|
4
|
+
payload: Record<string, unknown>;
|
|
5
|
+
stream_sid?: string;
|
|
6
|
+
sequence_number?: number;
|
|
7
|
+
/** Accepts any additional properties */
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
}
|
|
10
|
+
export declare namespace VoiceEventFrame {
|
|
11
|
+
const Event: {
|
|
12
|
+
readonly Event: "event";
|
|
13
|
+
};
|
|
14
|
+
type Event = (typeof Event)[keyof typeof Event];
|
|
15
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type * as Pinnacle from "../../../index.mjs";
|
|
2
|
+
export type VoiceServerFrame = Pinnacle.voiceStreams.VoiceServerFrame.Connected | Pinnacle.voiceStreams.VoiceServerFrame.Event | Pinnacle.voiceStreams.VoiceServerFrame.Media | Pinnacle.voiceStreams.VoiceServerFrame.Ack;
|
|
3
|
+
export declare namespace VoiceServerFrame {
|
|
4
|
+
interface Connected extends Pinnacle.voiceStreams.VoiceConnectedFrame {
|
|
5
|
+
event: "connected";
|
|
6
|
+
}
|
|
7
|
+
interface Event extends Pinnacle.voiceStreams.VoiceEventFrame {
|
|
8
|
+
event: "event";
|
|
9
|
+
}
|
|
10
|
+
interface Media extends Pinnacle.voiceStreams.VoiceServerMediaFrame {
|
|
11
|
+
event: "media";
|
|
12
|
+
}
|
|
13
|
+
interface Ack extends Pinnacle.voiceStreams.VoiceCommandAckFrame {
|
|
14
|
+
event: "ack";
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as Pinnacle from "../../../index.mjs";
|
|
2
|
+
export interface VoiceServerMedia {
|
|
3
|
+
track: Pinnacle.voiceStreams.VoiceMediaTrack;
|
|
4
|
+
/** Base64-encoded 8 kHz, 8-bit mu-law audio. */
|
|
5
|
+
payload: string;
|
|
6
|
+
chunk?: number;
|
|
7
|
+
timestamp?: string;
|
|
8
|
+
/** Accepts any additional properties */
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type * as Pinnacle from "../../../index.mjs";
|
|
2
|
+
export interface VoiceServerMediaFrame {
|
|
3
|
+
event: VoiceServerMediaFrame.Event;
|
|
4
|
+
media: Pinnacle.voiceStreams.VoiceServerMedia;
|
|
5
|
+
stream_sid?: string;
|
|
6
|
+
sequence_number?: number;
|
|
7
|
+
}
|
|
8
|
+
export declare namespace VoiceServerMediaFrame {
|
|
9
|
+
const Event: {
|
|
10
|
+
readonly Media: "media";
|
|
11
|
+
};
|
|
12
|
+
type Event = (typeof Event)[keyof typeof Event];
|
|
13
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from "./VoiceClientFrame.mjs";
|
|
2
|
+
export * from "./VoiceClientMedia.mjs";
|
|
3
|
+
export * from "./VoiceClientMediaFrame.mjs";
|
|
4
|
+
export * from "./VoiceCommandAckFrame.mjs";
|
|
5
|
+
export * from "./VoiceCommandAction.mjs";
|
|
6
|
+
export * from "./VoiceCommandFrame.mjs";
|
|
7
|
+
export * from "./VoiceConnectedFrame.mjs";
|
|
8
|
+
export * from "./VoiceEventFrame.mjs";
|
|
9
|
+
export * from "./VoiceMediaTrack.mjs";
|
|
10
|
+
export * from "./VoiceServerFrame.mjs";
|
|
11
|
+
export * from "./VoiceServerMedia.mjs";
|
|
12
|
+
export * from "./VoiceServerMediaFrame.mjs";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from "./VoiceClientFrame.mjs";
|
|
2
|
+
export * from "./VoiceClientMedia.mjs";
|
|
3
|
+
export * from "./VoiceClientMediaFrame.mjs";
|
|
4
|
+
export * from "./VoiceCommandAckFrame.mjs";
|
|
5
|
+
export * from "./VoiceCommandAction.mjs";
|
|
6
|
+
export * from "./VoiceCommandFrame.mjs";
|
|
7
|
+
export * from "./VoiceConnectedFrame.mjs";
|
|
8
|
+
export * from "./VoiceEventFrame.mjs";
|
|
9
|
+
export * from "./VoiceMediaTrack.mjs";
|
|
10
|
+
export * from "./VoiceServerFrame.mjs";
|
|
11
|
+
export * from "./VoiceServerMedia.mjs";
|
|
12
|
+
export * from "./VoiceServerMediaFrame.mjs";
|
|
@@ -9,7 +9,7 @@ export interface AgentSummary {
|
|
|
9
9
|
* Raw per-carrier launch + verification state for the agent. Each
|
|
10
10
|
* value is tri-state — `null` means "no launch requested" or "not
|
|
11
11
|
* sent yet"; `false` means "pending" / "sent"; `true` means
|
|
12
|
-
* "launched" / "verified". Use the [GET /rcs/{agentId}](/api-reference/rcs-agents/get)
|
|
12
|
+
* "launched" / "verified". Use the [GET /rcs/{agentId}](/api-reference/rcs-agents/get-agent)
|
|
13
13
|
* endpoint for the resolved enum representation.
|
|
14
14
|
*/
|
|
15
15
|
carrierLaunches?: AgentSummary.CarrierLaunches | null;
|
|
@@ -31,7 +31,7 @@ export declare namespace AgentSummary {
|
|
|
31
31
|
* Raw per-carrier launch + verification state for the agent. Each
|
|
32
32
|
* value is tri-state — `null` means "no launch requested" or "not
|
|
33
33
|
* sent yet"; `false` means "pending" / "sent"; `true` means
|
|
34
|
-
* "launched" / "verified". Use the [GET /rcs/{agentId}](/api-reference/rcs-agents/get)
|
|
34
|
+
* "launched" / "verified". Use the [GET /rcs/{agentId}](/api-reference/rcs-agents/get-agent)
|
|
35
35
|
* endpoint for the resolved enum representation.
|
|
36
36
|
*/
|
|
37
37
|
interface CarrierLaunches {
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type * as Pinnacle from "../index.mjs";
|
|
2
|
+
export interface Call {
|
|
3
|
+
id: string;
|
|
4
|
+
state: Pinnacle.CallState;
|
|
5
|
+
direction: Pinnacle.CallDirection;
|
|
6
|
+
to: string;
|
|
7
|
+
from: string;
|
|
8
|
+
created_at: string;
|
|
9
|
+
started_at: string | null;
|
|
10
|
+
answered_at: string | null;
|
|
11
|
+
ended_at: string | null;
|
|
12
|
+
metadata: Record<string, string>;
|
|
13
|
+
/** If no recording has been captured or enabled for the call, then `null`. */
|
|
14
|
+
recording_state: Pinnacle.RecordingState | null;
|
|
15
|
+
hangup_cause: string | null;
|
|
16
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Direction of the call relative to your Pinnacle team.
|
|
3
|
+
*
|
|
4
|
+
* - `INBOUND`: The call originated from an external caller and was received by one of your Pinnacle voice-enabled phone numbers.
|
|
5
|
+
* - `OUTBOUND`: The call was created from Pinnacle and dialed out from one of your voice-enabled phone numbers.
|
|
6
|
+
*/
|
|
7
|
+
export declare const CallDirection: {
|
|
8
|
+
readonly Inbound: "INBOUND";
|
|
9
|
+
readonly Outbound: "OUTBOUND";
|
|
10
|
+
};
|
|
11
|
+
export type CallDirection = (typeof CallDirection)[keyof typeof CallDirection];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
/**
|
|
3
|
+
* Direction of the call relative to your Pinnacle team.
|
|
4
|
+
*
|
|
5
|
+
* - `INBOUND`: The call originated from an external caller and was received by one of your Pinnacle voice-enabled phone numbers.
|
|
6
|
+
* - `OUTBOUND`: The call was created from Pinnacle and dialed out from one of your voice-enabled phone numbers.
|
|
7
|
+
*/
|
|
8
|
+
export const CallDirection = {
|
|
9
|
+
Inbound: "INBOUND",
|
|
10
|
+
Outbound: "OUTBOUND",
|
|
11
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type * as Pinnacle from "../index.mjs";
|
|
2
|
+
export interface CallEvent {
|
|
3
|
+
id: string;
|
|
4
|
+
call_session_id: string;
|
|
5
|
+
event_type: string;
|
|
6
|
+
source: Pinnacle.CallEventSource;
|
|
7
|
+
direction: Pinnacle.CallDirection | null;
|
|
8
|
+
command_id: string | null;
|
|
9
|
+
/** Provider delivery latency in milliseconds when available. */
|
|
10
|
+
latency_ms: number | null;
|
|
11
|
+
occurred_at: string;
|
|
12
|
+
received_at: string;
|
|
13
|
+
/** Provider-sanitized event payload. Provider call-control IDs are not exposed. */
|
|
14
|
+
payload: Record<string, unknown>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Source that created the call timeline event. */
|
|
2
|
+
export declare const CallEventSource: {
|
|
3
|
+
readonly Webhook: "WEBHOOK";
|
|
4
|
+
readonly Rest: "REST";
|
|
5
|
+
readonly Ws: "WS";
|
|
6
|
+
readonly System: "SYSTEM";
|
|
7
|
+
};
|
|
8
|
+
export type CallEventSource = (typeof CallEventSource)[keyof typeof CallEventSource];
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Current voice call lifecycle state. This field is named `state` on Call objects and `status` on `CALL.STATUS` webhook payloads.
|
|
3
|
+
*
|
|
4
|
+
* - `INITIATED`: Pinnacle accepted the call request and is setting up the call with the voice provider.
|
|
5
|
+
* - `RINGING`: The call is ringing and has not been answered yet.
|
|
6
|
+
* - `ANSWERED`: The call has been answered and is active.
|
|
7
|
+
* - `BRIDGED`: The call is connected to another call leg, such as after a transfer or bridge command.
|
|
8
|
+
* - `ENDED`: The call ended normally.
|
|
9
|
+
* - `FAILED`: The call could not be established or could not continue because of a provider or system failure.
|
|
10
|
+
* - `NO_ANSWER`: The call rang until timeout without being answered.
|
|
11
|
+
* - `BUSY`: The destination was busy.
|
|
12
|
+
* - `CANCELED`: The call was canceled before normal completion.
|
|
13
|
+
*/
|
|
14
|
+
export declare const CallState: {
|
|
15
|
+
readonly Initiated: "INITIATED";
|
|
16
|
+
readonly Ringing: "RINGING";
|
|
17
|
+
readonly Answered: "ANSWERED";
|
|
18
|
+
readonly Bridged: "BRIDGED";
|
|
19
|
+
readonly Ended: "ENDED";
|
|
20
|
+
readonly Failed: "FAILED";
|
|
21
|
+
readonly NoAnswer: "NO_ANSWER";
|
|
22
|
+
readonly Busy: "BUSY";
|
|
23
|
+
readonly Canceled: "CANCELED";
|
|
24
|
+
};
|
|
25
|
+
export type CallState = (typeof CallState)[keyof typeof CallState];
|