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
package/dist/cjs/Client.d.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { Audiences } from "./api/resources/audiences/client/Client.js";
|
|
2
2
|
import { Brands } from "./api/resources/brands/client/Client.js";
|
|
3
|
+
import { Calls } from "./api/resources/calls/client/Client.js";
|
|
3
4
|
import { Campaigns } from "./api/resources/campaigns/client/Client.js";
|
|
4
5
|
import { Contacts } from "./api/resources/contacts/client/Client.js";
|
|
5
6
|
import { Conversations } from "./api/resources/conversations/client/Client.js";
|
|
6
7
|
import { Forms } from "./api/resources/forms/client/Client.js";
|
|
7
8
|
import { Messages } from "./api/resources/messages/client/Client.js";
|
|
9
|
+
import { Network } from "./api/resources/network/client/Client.js";
|
|
8
10
|
import { PhoneNumbers } from "./api/resources/phoneNumbers/client/Client.js";
|
|
9
11
|
import { Rcs } from "./api/resources/rcs/client/Client.js";
|
|
10
12
|
import { Status } from "./api/resources/status/client/Client.js";
|
|
@@ -27,8 +29,10 @@ export declare class PinnacleClient {
|
|
|
27
29
|
protected _phoneNumbers: PhoneNumbers | undefined;
|
|
28
30
|
protected _rcs: Rcs | undefined;
|
|
29
31
|
protected _webhooks: Webhooks | undefined;
|
|
32
|
+
protected _calls: Calls | undefined;
|
|
30
33
|
protected _forms: Forms | undefined;
|
|
31
34
|
protected _campaigns: Campaigns | undefined;
|
|
35
|
+
protected _network: Network | undefined;
|
|
32
36
|
protected _status: Status | undefined;
|
|
33
37
|
protected _tools: Tools | undefined;
|
|
34
38
|
constructor(_options: PinnacleClient.Options);
|
|
@@ -40,8 +44,10 @@ export declare class PinnacleClient {
|
|
|
40
44
|
get phoneNumbers(): PhoneNumbers;
|
|
41
45
|
get rcs(): Rcs;
|
|
42
46
|
get webhooks(): Webhooks;
|
|
47
|
+
get calls(): Calls;
|
|
43
48
|
get forms(): Forms;
|
|
44
49
|
get campaigns(): Campaigns;
|
|
50
|
+
get network(): Network;
|
|
45
51
|
get status(): Status;
|
|
46
52
|
get tools(): Tools;
|
|
47
53
|
}
|
package/dist/cjs/Client.js
CHANGED
|
@@ -37,16 +37,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
exports.PinnacleClient = void 0;
|
|
38
38
|
const Client_js_1 = require("./api/resources/audiences/client/Client.js");
|
|
39
39
|
const Client_js_2 = require("./api/resources/brands/client/Client.js");
|
|
40
|
-
const Client_js_3 = require("./api/resources/
|
|
41
|
-
const Client_js_4 = require("./api/resources/
|
|
42
|
-
const Client_js_5 = require("./api/resources/
|
|
43
|
-
const Client_js_6 = require("./api/resources/
|
|
44
|
-
const Client_js_7 = require("./api/resources/
|
|
45
|
-
const Client_js_8 = require("./api/resources/
|
|
46
|
-
const Client_js_9 = require("./api/resources/
|
|
47
|
-
const Client_js_10 = require("./api/resources/
|
|
48
|
-
const Client_js_11 = require("./api/resources/
|
|
49
|
-
const Client_js_12 = require("./api/resources/
|
|
40
|
+
const Client_js_3 = require("./api/resources/calls/client/Client.js");
|
|
41
|
+
const Client_js_4 = require("./api/resources/campaigns/client/Client.js");
|
|
42
|
+
const Client_js_5 = require("./api/resources/contacts/client/Client.js");
|
|
43
|
+
const Client_js_6 = require("./api/resources/conversations/client/Client.js");
|
|
44
|
+
const Client_js_7 = require("./api/resources/forms/client/Client.js");
|
|
45
|
+
const Client_js_8 = require("./api/resources/messages/client/Client.js");
|
|
46
|
+
const Client_js_9 = require("./api/resources/network/client/Client.js");
|
|
47
|
+
const Client_js_10 = require("./api/resources/phoneNumbers/client/Client.js");
|
|
48
|
+
const Client_js_11 = require("./api/resources/rcs/client/Client.js");
|
|
49
|
+
const Client_js_12 = require("./api/resources/status/client/Client.js");
|
|
50
|
+
const Client_js_13 = require("./api/resources/tools/client/Client.js");
|
|
51
|
+
const Client_js_14 = require("./api/resources/webhooks/client/Client.js");
|
|
50
52
|
const headers_js_1 = require("./core/headers.js");
|
|
51
53
|
const core = __importStar(require("./core/index.js"));
|
|
52
54
|
class PinnacleClient {
|
|
@@ -54,8 +56,8 @@ class PinnacleClient {
|
|
|
54
56
|
this._options = Object.assign(Object.assign({}, _options), { logging: core.logging.createLogger(_options === null || _options === void 0 ? void 0 : _options.logging), headers: (0, headers_js_1.mergeHeaders)({
|
|
55
57
|
"X-Fern-Language": "JavaScript",
|
|
56
58
|
"X-Fern-SDK-Name": "rcs-js",
|
|
57
|
-
"X-Fern-SDK-Version": "2.0.
|
|
58
|
-
"User-Agent": "rcs-js/2.0.
|
|
59
|
+
"X-Fern-SDK-Version": "2.0.23-rc.1",
|
|
60
|
+
"User-Agent": "rcs-js/2.0.23-rc.1",
|
|
59
61
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
60
62
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
61
63
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -70,43 +72,51 @@ class PinnacleClient {
|
|
|
70
72
|
}
|
|
71
73
|
get contacts() {
|
|
72
74
|
var _a;
|
|
73
|
-
return ((_a = this._contacts) !== null && _a !== void 0 ? _a : (this._contacts = new
|
|
75
|
+
return ((_a = this._contacts) !== null && _a !== void 0 ? _a : (this._contacts = new Client_js_5.Contacts(this._options)));
|
|
74
76
|
}
|
|
75
77
|
get conversations() {
|
|
76
78
|
var _a;
|
|
77
|
-
return ((_a = this._conversations) !== null && _a !== void 0 ? _a : (this._conversations = new
|
|
79
|
+
return ((_a = this._conversations) !== null && _a !== void 0 ? _a : (this._conversations = new Client_js_6.Conversations(this._options)));
|
|
78
80
|
}
|
|
79
81
|
get messages() {
|
|
80
82
|
var _a;
|
|
81
|
-
return ((_a = this._messages) !== null && _a !== void 0 ? _a : (this._messages = new
|
|
83
|
+
return ((_a = this._messages) !== null && _a !== void 0 ? _a : (this._messages = new Client_js_8.Messages(this._options)));
|
|
82
84
|
}
|
|
83
85
|
get phoneNumbers() {
|
|
84
86
|
var _a;
|
|
85
|
-
return ((_a = this._phoneNumbers) !== null && _a !== void 0 ? _a : (this._phoneNumbers = new
|
|
87
|
+
return ((_a = this._phoneNumbers) !== null && _a !== void 0 ? _a : (this._phoneNumbers = new Client_js_10.PhoneNumbers(this._options)));
|
|
86
88
|
}
|
|
87
89
|
get rcs() {
|
|
88
90
|
var _a;
|
|
89
|
-
return ((_a = this._rcs) !== null && _a !== void 0 ? _a : (this._rcs = new
|
|
91
|
+
return ((_a = this._rcs) !== null && _a !== void 0 ? _a : (this._rcs = new Client_js_11.Rcs(this._options)));
|
|
90
92
|
}
|
|
91
93
|
get webhooks() {
|
|
92
94
|
var _a;
|
|
93
|
-
return ((_a = this._webhooks) !== null && _a !== void 0 ? _a : (this._webhooks = new
|
|
95
|
+
return ((_a = this._webhooks) !== null && _a !== void 0 ? _a : (this._webhooks = new Client_js_14.Webhooks(this._options)));
|
|
96
|
+
}
|
|
97
|
+
get calls() {
|
|
98
|
+
var _a;
|
|
99
|
+
return ((_a = this._calls) !== null && _a !== void 0 ? _a : (this._calls = new Client_js_3.Calls(this._options)));
|
|
94
100
|
}
|
|
95
101
|
get forms() {
|
|
96
102
|
var _a;
|
|
97
|
-
return ((_a = this._forms) !== null && _a !== void 0 ? _a : (this._forms = new
|
|
103
|
+
return ((_a = this._forms) !== null && _a !== void 0 ? _a : (this._forms = new Client_js_7.Forms(this._options)));
|
|
98
104
|
}
|
|
99
105
|
get campaigns() {
|
|
100
106
|
var _a;
|
|
101
|
-
return ((_a = this._campaigns) !== null && _a !== void 0 ? _a : (this._campaigns = new
|
|
107
|
+
return ((_a = this._campaigns) !== null && _a !== void 0 ? _a : (this._campaigns = new Client_js_4.Campaigns(this._options)));
|
|
108
|
+
}
|
|
109
|
+
get network() {
|
|
110
|
+
var _a;
|
|
111
|
+
return ((_a = this._network) !== null && _a !== void 0 ? _a : (this._network = new Client_js_9.Network(this._options)));
|
|
102
112
|
}
|
|
103
113
|
get status() {
|
|
104
114
|
var _a;
|
|
105
|
-
return ((_a = this._status) !== null && _a !== void 0 ? _a : (this._status = new
|
|
115
|
+
return ((_a = this._status) !== null && _a !== void 0 ? _a : (this._status = new Client_js_12.Status(this._options)));
|
|
106
116
|
}
|
|
107
117
|
get tools() {
|
|
108
118
|
var _a;
|
|
109
|
-
return ((_a = this._tools) !== null && _a !== void 0 ? _a : (this._tools = new
|
|
119
|
+
return ((_a = this._tools) !== null && _a !== void 0 ? _a : (this._tools = new Client_js_13.Tools(this._options)));
|
|
110
120
|
}
|
|
111
121
|
}
|
|
112
122
|
exports.PinnacleClient = PinnacleClient;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type * as core from "../../core/index.js";
|
|
2
|
+
import * as errors from "../../errors/index.js";
|
|
3
|
+
import type * as Pinnacle from "../index.js";
|
|
4
|
+
export declare class BadGatewayError extends errors.PinnacleError {
|
|
5
|
+
constructor(body: Pinnacle.Error_, rawResponse?: core.RawResponse);
|
|
6
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.BadGatewayError = void 0;
|
|
38
|
+
const errors = __importStar(require("../../errors/index.js"));
|
|
39
|
+
class BadGatewayError extends errors.PinnacleError {
|
|
40
|
+
constructor(body, rawResponse) {
|
|
41
|
+
super({
|
|
42
|
+
message: "BadGatewayError",
|
|
43
|
+
statusCode: 502,
|
|
44
|
+
body: body,
|
|
45
|
+
rawResponse: rawResponse,
|
|
46
|
+
});
|
|
47
|
+
Object.setPrototypeOf(this, BadGatewayError.prototype);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
exports.BadGatewayError = BadGatewayError;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type * as core from "../../core/index.js";
|
|
2
|
+
import * as errors from "../../errors/index.js";
|
|
3
|
+
import type * as Pinnacle from "../index.js";
|
|
4
|
+
export declare class ConflictError extends errors.PinnacleError {
|
|
5
|
+
constructor(body: Pinnacle.Error_, rawResponse?: core.RawResponse);
|
|
6
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.ConflictError = void 0;
|
|
38
|
+
const errors = __importStar(require("../../errors/index.js"));
|
|
39
|
+
class ConflictError extends errors.PinnacleError {
|
|
40
|
+
constructor(body, rawResponse) {
|
|
41
|
+
super({
|
|
42
|
+
message: "ConflictError",
|
|
43
|
+
statusCode: 409,
|
|
44
|
+
body: body,
|
|
45
|
+
rawResponse: rawResponse,
|
|
46
|
+
});
|
|
47
|
+
Object.setPrototypeOf(this, ConflictError.prototype);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
exports.ConflictError = ConflictError;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type * as core from "../../core/index.js";
|
|
2
|
+
import * as errors from "../../errors/index.js";
|
|
3
|
+
import type * as Pinnacle from "../index.js";
|
|
4
|
+
export declare class GoneError extends errors.PinnacleError {
|
|
5
|
+
constructor(body: Pinnacle.Error_, rawResponse?: core.RawResponse);
|
|
6
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.GoneError = void 0;
|
|
38
|
+
const errors = __importStar(require("../../errors/index.js"));
|
|
39
|
+
class GoneError extends errors.PinnacleError {
|
|
40
|
+
constructor(body, rawResponse) {
|
|
41
|
+
super({
|
|
42
|
+
message: "GoneError",
|
|
43
|
+
statusCode: 410,
|
|
44
|
+
body: body,
|
|
45
|
+
rawResponse: rawResponse,
|
|
46
|
+
});
|
|
47
|
+
Object.setPrototypeOf(this, GoneError.prototype);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
exports.GoneError = GoneError;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type * as core from "../../core/index.js";
|
|
2
|
+
import * as errors from "../../errors/index.js";
|
|
3
|
+
import type * as Pinnacle from "../index.js";
|
|
4
|
+
export declare class ServiceUnavailableError extends errors.PinnacleError {
|
|
5
|
+
constructor(body: Pinnacle.Error_, rawResponse?: core.RawResponse);
|
|
6
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.ServiceUnavailableError = void 0;
|
|
38
|
+
const errors = __importStar(require("../../errors/index.js"));
|
|
39
|
+
class ServiceUnavailableError extends errors.PinnacleError {
|
|
40
|
+
constructor(body, rawResponse) {
|
|
41
|
+
super({
|
|
42
|
+
message: "ServiceUnavailableError",
|
|
43
|
+
statusCode: 503,
|
|
44
|
+
body: body,
|
|
45
|
+
rawResponse: rawResponse,
|
|
46
|
+
});
|
|
47
|
+
Object.setPrototypeOf(this, ServiceUnavailableError.prototype);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
exports.ServiceUnavailableError = ServiceUnavailableError;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type * as core from "../../core/index.js";
|
|
2
|
+
import * as errors from "../../errors/index.js";
|
|
3
|
+
import type * as Pinnacle from "../index.js";
|
|
4
|
+
export declare class TooEarlyError extends errors.PinnacleError {
|
|
5
|
+
constructor(body: Pinnacle.Error_, rawResponse?: core.RawResponse);
|
|
6
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.TooEarlyError = void 0;
|
|
38
|
+
const errors = __importStar(require("../../errors/index.js"));
|
|
39
|
+
class TooEarlyError extends errors.PinnacleError {
|
|
40
|
+
constructor(body, rawResponse) {
|
|
41
|
+
super({
|
|
42
|
+
message: "TooEarlyError",
|
|
43
|
+
statusCode: 425,
|
|
44
|
+
body: body,
|
|
45
|
+
rawResponse: rawResponse,
|
|
46
|
+
});
|
|
47
|
+
Object.setPrototypeOf(this, TooEarlyError.prototype);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
exports.TooEarlyError = TooEarlyError;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type * as core from "../../core/index.js";
|
|
2
|
+
import * as errors from "../../errors/index.js";
|
|
3
|
+
import type * as Pinnacle from "../index.js";
|
|
4
|
+
export declare class UnprocessableEntityError extends errors.PinnacleError {
|
|
5
|
+
constructor(body: Pinnacle.Error_, rawResponse?: core.RawResponse);
|
|
6
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.UnprocessableEntityError = void 0;
|
|
38
|
+
const errors = __importStar(require("../../errors/index.js"));
|
|
39
|
+
class UnprocessableEntityError extends errors.PinnacleError {
|
|
40
|
+
constructor(body, rawResponse) {
|
|
41
|
+
super({
|
|
42
|
+
message: "UnprocessableEntityError",
|
|
43
|
+
statusCode: 422,
|
|
44
|
+
body: body,
|
|
45
|
+
rawResponse: rawResponse,
|
|
46
|
+
});
|
|
47
|
+
Object.setPrototypeOf(this, UnprocessableEntityError.prototype);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
exports.UnprocessableEntityError = UnprocessableEntityError;
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
+
export * from "./BadGatewayError.js";
|
|
1
2
|
export * from "./BadRequestError.js";
|
|
3
|
+
export * from "./ConflictError.js";
|
|
2
4
|
export * from "./ForbiddenError.js";
|
|
5
|
+
export * from "./GoneError.js";
|
|
3
6
|
export * from "./InternalServerError.js";
|
|
4
7
|
export * from "./NotFoundError.js";
|
|
5
8
|
export * from "./NotImplementedError.js";
|
|
6
9
|
export * from "./PaymentRequiredError.js";
|
|
10
|
+
export * from "./ServiceUnavailableError.js";
|
|
11
|
+
export * from "./TooEarlyError.js";
|
|
7
12
|
export * from "./UnauthorizedError.js";
|
|
13
|
+
export * from "./UnprocessableEntityError.js";
|
|
@@ -14,10 +14,16 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./BadGatewayError.js"), exports);
|
|
17
18
|
__exportStar(require("./BadRequestError.js"), exports);
|
|
19
|
+
__exportStar(require("./ConflictError.js"), exports);
|
|
18
20
|
__exportStar(require("./ForbiddenError.js"), exports);
|
|
21
|
+
__exportStar(require("./GoneError.js"), exports);
|
|
19
22
|
__exportStar(require("./InternalServerError.js"), exports);
|
|
20
23
|
__exportStar(require("./NotFoundError.js"), exports);
|
|
21
24
|
__exportStar(require("./NotImplementedError.js"), exports);
|
|
22
25
|
__exportStar(require("./PaymentRequiredError.js"), exports);
|
|
26
|
+
__exportStar(require("./ServiceUnavailableError.js"), exports);
|
|
27
|
+
__exportStar(require("./TooEarlyError.js"), exports);
|
|
23
28
|
__exportStar(require("./UnauthorizedError.js"), exports);
|
|
29
|
+
__exportStar(require("./UnprocessableEntityError.js"), exports);
|