bandwidth-sdk 8.1.0 → 8.1.2
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/bandwidth.yml +44 -24
- package/configuration.ts +1 -1
- package/coverage/clover.xml +69 -69
- package/coverage/coverage-final.json +37 -37
- package/coverage/lcov-report/index.html +15 -15
- package/coverage/lcov-report/node-sdk/api/calls-api.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/api/conferences-api.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/api/endpoints-api.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/api/index.html +1 -1
- package/coverage/lcov-report/node-sdk/api/media-api.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/api/messages-api.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/api/mfaapi.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/api/multi-channel-api.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/api/phone-number-lookup-api.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/api/recordings-api.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/api/statistics-api.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/api/toll-free-verification-api.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/api/transcriptions-api.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/api.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/base.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/common.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/configuration.ts.html +47 -47
- package/coverage/lcov-report/node-sdk/index.html +16 -16
- package/coverage/lcov-report/node-sdk/models/business-entity-type-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/business-registration-type-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/bxml/Bxml.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/NestableVerb.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/Response.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/Root.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/Verb.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/index.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/index.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Bridge.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Conference.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Connect.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/CustomParam.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Endpoint.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Forward.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Gather.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Hangup.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Pause.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/PauseRecording.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/PhoneNumber.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/PlayAudio.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Record.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Redirect.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/ResumeRecording.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Ring.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/SendDtmf.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/SipUri.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/SpeakSentence.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartGather.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartRecording.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartStream.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartTranscription.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopGather.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopRecording.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopStream.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopTranscription.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StreamParam.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Tag.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Transfer.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/index.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/index.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/call-direction-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/call-state-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/call-transcription-detected-language-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/call-transcription-track-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/callback-method-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/card-width-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/completed-lookup-status-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/conference-state-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/deactivation-event-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/device-status-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/endpoint-direction-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/endpoint-event-type-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/endpoint-status-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/endpoint-type-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/file-format-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/in-progress-lookup-status-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/inbound-callback-type-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/index.html +1 -1
- package/coverage/lcov-report/node-sdk/models/index.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/latest-message-delivery-status-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/line-type-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/list-message-direction-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/machine-detection-mode-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/message-direction-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/message-status-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/message-type-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/multi-channel-message-channel-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/priority-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/product-type-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/rbm-action-type-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/rbm-media-height-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/rbm-open-url-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/rbm-web-view-enum.ts.html +3 -3
- package/coverage/lcov-report/node-sdk/models/recording-state-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/redirect-method-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/standalone-card-orientation-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/status-callback-type-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/tfv-callback-status-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/tfv-status-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/thumbnail-alignment-enum.ts.html +3 -3
- package/coverage/lcov-report/node-sdk/models/webhook-subscription-type-enum.ts.html +2 -2
- package/coverage/lcov.info +89 -89
- package/dist/configuration.js +1 -1
- package/dist/models/multi-channel-action-calendar-event.d.ts +2 -2
- package/dist/models/multi-channel-action.d.ts +5 -5
- package/dist/models/rbm-action-open-url.d.ts +1 -1
- package/dist/models/rbm-action-view-location.d.ts +2 -2
- package/dist/models/rbm-card-content.d.ts +3 -0
- package/dist/models/rbm-standalone-card.d.ts +1 -1
- package/dist/models/rbm-web-view-enum.d.ts +1 -1
- package/dist/models/rbm-web-view-enum.js +1 -1
- package/dist/models/sync-lookup-request.d.ts +4 -0
- package/dist/models/thumbnail-alignment-enum.d.ts +1 -1
- package/dist/models/thumbnail-alignment-enum.js +1 -1
- package/docs/MultiChannelAction.md +5 -5
- package/docs/MultiChannelActionCalendarEvent.md +2 -2
- package/docs/MultiChannelChannelListRBMObjectAllOfContent.md +1 -1
- package/docs/RbmActionOpenUrl.md +1 -1
- package/docs/RbmActionViewLocation.md +2 -2
- package/docs/RbmCardContent.md +1 -0
- package/docs/RbmMessageContentRichCard.md +1 -1
- package/docs/RbmStandaloneCard.md +1 -1
- package/docs/RbmWebViewEnum.md +1 -1
- package/docs/SyncLookupRequest.md +2 -0
- package/docs/ThumbnailAlignmentEnum.md +1 -1
- package/jest.config.js +3 -0
- package/models/multi-channel-action-calendar-event.ts +2 -2
- package/models/multi-channel-action.ts +5 -5
- package/models/rbm-action-open-url.ts +1 -1
- package/models/rbm-action-view-location.ts +2 -2
- package/models/rbm-card-content.ts +3 -0
- package/models/rbm-standalone-card.ts +1 -1
- package/models/rbm-web-view-enum.ts +1 -1
- package/models/sync-lookup-request.ts +4 -0
- package/models/thumbnail-alignment-enum.ts +1 -1
- package/package.json +1 -1
- package/tests/globals.d.ts +23 -0
- package/tests/tsconfig.json +9 -0
- package/tests/unit/api/calls-api.test.ts +11 -4
- package/tests/unit/api/conferences-api.test.ts +0 -1
- package/tests/unit/api/endpoints-api.test.ts +10 -6
- package/tests/unit/api/media-api.test.ts +1 -1
- package/tests/unit/api/messages-api.test.ts +13 -4
- package/tests/unit/api/mfaapi.test.ts +6 -2
- package/tests/unit/api/phone-number-lookup-api.test.ts +34 -32
- package/tests/unit/api/recordings-api.test.ts +9 -4
- package/tests/unit/api/statistics-api.test.ts +5 -2
- package/tests/unit/api/toll-free-verification-api.test.ts +25 -17
- package/tests/unit/api/transcriptions-api.test.ts +0 -1
- package/tests/unit/configuration.test.ts +84 -0
- package/tests/unit/models/account-statistics.test.ts +13 -0
- package/tests/unit/models/additional-denial-reason.test.ts +15 -0
- package/tests/unit/models/address.test.ts +23 -0
- package/tests/unit/models/answer-callback.test.ts +39 -0
- package/tests/unit/models/async-lookup-request.test.ts +11 -0
- package/tests/unit/models/blocked-webhook.test.ts +22 -0
- package/tests/unit/models/bridge-complete-callback.test.ts +42 -0
- package/tests/unit/models/bridge-target-complete-callback.test.ts +36 -0
- package/tests/unit/models/business-entity-type-enum.test.ts +7 -0
- package/tests/unit/models/business-registration-type-enum.test.ts +20 -0
- package/tests/unit/models/call-direction-enum.test.ts +4 -0
- package/tests/unit/models/call-recording-metadata.test.ts +50 -0
- package/tests/unit/models/call-state-enum.test.ts +4 -0
- package/tests/unit/models/call-state.test.ts +46 -0
- package/tests/unit/models/call-transcription-detected-language-enum.test.ts +5 -0
- package/tests/unit/models/call-transcription-metadata.test.ts +15 -0
- package/tests/unit/models/call-transcription-response.test.ts +17 -0
- package/tests/unit/models/call-transcription-track-enum.test.ts +4 -0
- package/tests/unit/models/call-transcription.test.ts +19 -0
- package/tests/unit/models/callback-method-enum.test.ts +4 -0
- package/tests/unit/models/card-width-enum.test.ts +4 -0
- package/tests/unit/models/code-request.test.ts +21 -0
- package/tests/unit/models/completed-lookup-status-enum.test.ts +5 -0
- package/tests/unit/models/conference-completed-callback.test.ts +19 -0
- package/tests/unit/models/conference-created-callback.test.ts +19 -0
- package/tests/unit/models/conference-member-exit-callback.test.ts +25 -0
- package/tests/unit/models/conference-member-join-callback.test.ts +25 -0
- package/tests/unit/models/conference-member.test.ts +21 -0
- package/tests/unit/models/conference-recording-available-callback.test.ts +38 -0
- package/tests/unit/models/conference-recording-metadata.test.ts +34 -0
- package/tests/unit/models/conference-redirect-callback.test.ts +19 -0
- package/tests/unit/models/conference-state-enum.test.ts +4 -0
- package/tests/unit/models/conference.test.ts +26 -0
- package/tests/unit/models/contact.test.ts +17 -0
- package/tests/unit/models/create-async-bulk-lookup-response-data.test.ts +14 -0
- package/tests/unit/models/create-async-bulk-lookup-response.test.ts +16 -0
- package/tests/unit/models/create-call-response.test.ts +52 -0
- package/tests/unit/models/create-call.test.ts +53 -0
- package/tests/unit/models/create-endpoint-response-data.test.ts +2 -4
- package/tests/unit/models/create-endpoint-response.test.ts +4 -4
- package/tests/unit/models/create-message-request-error.test.ts +15 -0
- package/tests/unit/models/create-multi-channel-message-response.test.ts +16 -0
- package/tests/unit/models/create-sync-lookup-response-data.test.ts +16 -0
- package/tests/unit/models/create-sync-lookup-response.test.ts +16 -0
- package/tests/unit/models/deactivation-event-enum.test.ts +3 -0
- package/tests/unit/models/device.test.ts +1 -2
- package/tests/unit/models/disconnect-callback.test.ts +44 -0
- package/tests/unit/models/diversion.test.ts +23 -0
- package/tests/unit/models/dtmf-callback.test.ts +44 -0
- package/tests/unit/models/endpoint-event.test.ts +5 -7
- package/tests/unit/models/endpoint-response.test.ts +2 -2
- package/tests/unit/models/endpoint.test.ts +2 -4
- package/tests/unit/models/endpoints.test.ts +4 -6
- package/tests/unit/models/error-object.test.ts +16 -0
- package/tests/unit/models/error-source.test.ts +17 -0
- package/tests/unit/models/failure-webhook.test.ts +21 -0
- package/tests/unit/models/field-error.test.ts +13 -0
- package/tests/unit/models/file-format-enum.test.ts +4 -0
- package/tests/unit/models/gather-callback.test.ts +46 -0
- package/tests/unit/models/get-async-bulk-lookup-response-data.test.ts +16 -0
- package/tests/unit/models/get-async-bulk-lookup-response.test.ts +16 -0
- package/tests/unit/models/in-progress-lookup-status-enum.test.ts +6 -0
- package/tests/unit/models/inbound-callback-message.test.ts +48 -0
- package/tests/unit/models/inbound-callback-type-enum.test.ts +5 -0
- package/tests/unit/models/inbound-callback.test.ts +23 -0
- package/tests/unit/models/initiate-callback.test.ts +38 -0
- package/tests/unit/models/latest-message-delivery-status-enum.test.ts +6 -0
- package/tests/unit/models/line-type-enum.test.ts +6 -0
- package/tests/unit/models/link-schema.test.ts +15 -0
- package/tests/unit/models/link.test.ts +13 -0
- package/tests/unit/models/links-object.test.ts +17 -0
- package/tests/unit/models/list-endpoints-response.test.ts +2 -4
- package/tests/unit/models/list-message-direction-enum.test.ts +4 -0
- package/tests/unit/models/list-message-item.test.ts +58 -0
- package/tests/unit/models/lookup-error-response.test.ts +13 -0
- package/tests/unit/models/lookup-error-schema-meta.test.ts +15 -0
- package/tests/unit/models/lookup-error-schema.test.ts +18 -0
- package/tests/unit/models/lookup-result.test.ts +36 -0
- package/tests/unit/models/machine-detection-complete-callback.test.ts +39 -0
- package/tests/unit/models/machine-detection-configuration.test.ts +41 -0
- package/tests/unit/models/machine-detection-mode-enum.test.ts +4 -0
- package/tests/unit/models/machine-detection-result.test.ts +13 -0
- package/tests/unit/models/media.test.ts +15 -0
- package/tests/unit/models/message-direction-enum.test.ts +4 -0
- package/tests/unit/models/message-request.test.ts +27 -0
- package/tests/unit/models/message-status-enum.test.ts +10 -0
- package/tests/unit/models/message-type-enum.test.ts +5 -0
- package/tests/unit/models/message.test.ts +39 -0
- package/tests/unit/models/messages-list.test.ts +16 -0
- package/tests/unit/models/messaging-code-response.test.ts +11 -0
- package/tests/unit/models/messaging-request-error.test.ts +13 -0
- package/tests/unit/models/mfa-forbidden-request-error.test.ts +11 -0
- package/tests/unit/models/mfa-request-error.test.ts +13 -0
- package/tests/unit/models/mfa-unauthorized-request-error.test.ts +11 -0
- package/tests/unit/models/mms-message-content-file.test.ts +11 -0
- package/tests/unit/models/mms-message-content.test.ts +13 -0
- package/tests/unit/models/multi-channel-action-calendar-event.test.ts +24 -0
- package/tests/unit/models/multi-channel-action.test.ts +40 -0
- package/tests/unit/models/multi-channel-channel-list-mmsobject.test.ts +19 -0
- package/tests/unit/models/multi-channel-channel-list-mmsresponse-object.test.ts +21 -0
- package/tests/unit/models/multi-channel-channel-list-object-base.test.ts +16 -0
- package/tests/unit/models/multi-channel-channel-list-owner-object.test.ts +11 -0
- package/tests/unit/models/multi-channel-channel-list-rbmobject.test.ts +19 -0
- package/tests/unit/models/multi-channel-channel-list-rbmresponse-object.test.ts +21 -0
- package/tests/unit/models/multi-channel-channel-list-request-object.test.ts +19 -0
- package/tests/unit/models/multi-channel-channel-list-response-object.test.ts +21 -0
- package/tests/unit/models/multi-channel-channel-list-smsobject.test.ts +19 -0
- package/tests/unit/models/multi-channel-channel-list-smsresponse-object.test.ts +21 -0
- package/tests/unit/models/multi-channel-error.test.ts +13 -0
- package/tests/unit/models/multi-channel-message-channel-enum.test.ts +5 -0
- package/tests/unit/models/multi-channel-message-content.test.ts +14 -0
- package/tests/unit/models/multi-channel-message-request.test.ts +20 -0
- package/tests/unit/models/multi-channel-message-response-data.test.ts +28 -0
- package/tests/unit/models/opt-in-workflow.test.ts +15 -0
- package/tests/unit/models/page-info.test.ts +17 -0
- package/tests/unit/models/priority-enum.test.ts +4 -0
- package/tests/unit/models/product-type-enum.test.ts +11 -0
- package/tests/unit/models/rbm-action-base.test.ts +16 -0
- package/tests/unit/models/rbm-action-dial.test.ts +18 -0
- package/tests/unit/models/rbm-action-open-url.test.ts +24 -0
- package/tests/unit/models/rbm-action-type-enum.test.ts +8 -0
- package/tests/unit/models/rbm-action-view-location.test.ts +22 -0
- package/tests/unit/models/rbm-card-content-media.test.ts +16 -0
- package/tests/unit/models/rbm-card-content.test.ts +18 -0
- package/tests/unit/models/rbm-location-response.test.ts +13 -0
- package/tests/unit/models/rbm-media-height-enum.test.ts +5 -0
- package/tests/unit/models/rbm-message-carousel-card.test.ts +16 -0
- package/tests/unit/models/rbm-message-content-file.test.ts +13 -0
- package/tests/unit/models/rbm-message-content-text.test.ts +13 -0
- package/tests/unit/models/rbm-message-media.test.ts +13 -0
- package/tests/unit/models/rbm-open-url-enum.test.ts +4 -0
- package/tests/unit/models/rbm-standalone-card.test.ts +20 -0
- package/tests/unit/models/rbm-suggestion-response.test.ts +13 -0
- package/tests/unit/models/rbm-veb-view-enum.test.ts +5 -0
- package/tests/unit/models/recording-available-callback.test.ts +55 -0
- package/tests/unit/models/recording-complete-callback.test.ts +55 -0
- package/tests/unit/models/recording-state-enum.test.ts +4 -0
- package/tests/unit/models/recording-transcription-metadata.test.ts +17 -0
- package/tests/unit/models/recording-transcriptions.test.ts +11 -0
- package/tests/unit/models/redirect-callback.test.ts +42 -0
- package/tests/unit/models/redirect-method-enum.test.ts +4 -0
- package/tests/unit/models/sms-message-content.test.ts +11 -0
- package/tests/unit/models/standalone-card-orientation-enum.test.ts +4 -0
- package/tests/unit/models/status-callback-message.test.ts +39 -0
- package/tests/unit/models/status-callback-type-enum.test.ts +6 -0
- package/tests/unit/models/status-callback.test.ts +27 -0
- package/tests/unit/models/stir-shaken.test.ts +15 -0
- package/tests/unit/models/sync-lookup-request.test.ts +13 -0
- package/tests/unit/models/telephone-number.test.ts +11 -0
- package/tests/unit/models/tfv-basic-authentication.test.ts +13 -0
- package/tests/unit/models/tfv-callback-status-enum.test.ts +4 -0
- package/tests/unit/models/tfv-error.test.ts +13 -0
- package/tests/unit/models/tfv-status-enum.test.ts +5 -0
- package/tests/unit/models/tfv-status.test.ts +33 -0
- package/tests/unit/models/tfv-submission-info.test.ts +46 -0
- package/tests/unit/models/tfv-submission-wrapper.test.ts +12 -0
- package/tests/unit/models/thumbnail-alignment-enum.test.ts +4 -0
- package/tests/unit/models/transcribe-recording.test.ts +24 -0
- package/tests/unit/models/transcription-available-callback.test.ts +54 -0
- package/tests/unit/models/transcription.test.ts +13 -0
- package/tests/unit/models/transfer-answer-callback.test.ts +40 -0
- package/tests/unit/models/transfer-complete-callback.test.ts +46 -0
- package/tests/unit/models/transfer-disconnect-callback.test.ts +50 -0
- package/tests/unit/models/update-call-recording.test.ts +12 -0
- package/tests/unit/models/update-call.test.ts +31 -0
- package/tests/unit/models/update-conference-member.test.ts +15 -0
- package/tests/unit/models/update-conference.test.ts +29 -0
- package/tests/unit/models/verification-denial-webhook.test.ts +29 -0
- package/tests/unit/models/verification-request.test.ts +54 -0
- package/tests/unit/models/verification-update-request.test.ts +52 -0
- package/tests/unit/models/verification-webhook.test.ts +18 -0
- package/tests/unit/models/verify-code-request.test.ts +17 -0
- package/tests/unit/models/verify-code-response.test.ts +11 -0
- package/tests/unit/models/voice-api-error.test.ts +15 -0
- package/tests/unit/models/voice-code-response.test.ts +11 -0
- package/tests/unit/models/webhook-subscription-basic-authentication.test.ts +13 -0
- package/tests/unit/models/webhook-subscription-error.test.ts +15 -0
- package/tests/unit/models/webhook-subscription-request-schema.test.ts +16 -0
- package/tests/unit/models/webhook-subscription-type-enum.test.ts +4 -0
- package/tests/unit/models/webhook-subscription.test.ts +25 -0
- package/tests/unit/models/webhook-subscriptions-list-body.test.ts +16 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { VerificationRequest } from '../../../models/verification-request';
|
|
2
|
+
import { Address } from '../../../models/address';
|
|
3
|
+
import { Contact } from '../../../models/contact';
|
|
4
|
+
import { OptInWorkflow } from '../../../models/opt-in-workflow';
|
|
5
|
+
import { BusinessRegistrationTypeEnum } from '../../../models/business-registration-type-enum';
|
|
6
|
+
import { BusinessEntityTypeEnum } from '../../../models/business-entity-type-enum';
|
|
7
|
+
|
|
8
|
+
describe('VerificationRequest', () => {
|
|
9
|
+
test('should accept the expected shape', () => {
|
|
10
|
+
const fixture: VerificationRequest = {
|
|
11
|
+
businessAddress: {} as unknown as Address,
|
|
12
|
+
businessContact: {} as unknown as Contact,
|
|
13
|
+
messageVolume: 1.5,
|
|
14
|
+
phoneNumbers: [],
|
|
15
|
+
useCase: 'test-useCase',
|
|
16
|
+
useCaseSummary: 'test-useCaseSummary',
|
|
17
|
+
productionMessageContent: 'test-productionMessageContent',
|
|
18
|
+
optInWorkflow: {} as unknown as OptInWorkflow,
|
|
19
|
+
additionalInformation: 'test-additionalInformation',
|
|
20
|
+
isvReseller: 'test-isvReseller',
|
|
21
|
+
privacyPolicyUrl: 'test-privacyPolicyUrl',
|
|
22
|
+
termsAndConditionsUrl: 'test-termsAndConditionsUrl',
|
|
23
|
+
businessDba: 'test-businessDba',
|
|
24
|
+
businessRegistrationNumber: 'test-businessRegistrationNumber',
|
|
25
|
+
businessRegistrationType: BusinessRegistrationTypeEnum.Ein,
|
|
26
|
+
businessRegistrationIssuingCountry: 'test-businessRegistrationIssuingCountry',
|
|
27
|
+
businessEntityType: BusinessEntityTypeEnum.SoleProprietor,
|
|
28
|
+
helpMessageResponse: 'test-helpMessageResponse',
|
|
29
|
+
ageGatedContent: true,
|
|
30
|
+
cvToken: 'test-cvToken',
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
expect(fixture.businessAddress).toBeDefined();
|
|
34
|
+
expect(fixture.businessContact).toBeDefined();
|
|
35
|
+
expect(fixture.messageVolume).toBe(1.5);
|
|
36
|
+
expect(fixture.phoneNumbers).toEqual([]);
|
|
37
|
+
expect(fixture.useCase).toBe('test-useCase');
|
|
38
|
+
expect(fixture.useCaseSummary).toBe('test-useCaseSummary');
|
|
39
|
+
expect(fixture.productionMessageContent).toBe('test-productionMessageContent');
|
|
40
|
+
expect(fixture.optInWorkflow).toBeDefined();
|
|
41
|
+
expect(fixture.additionalInformation).toBe('test-additionalInformation');
|
|
42
|
+
expect(fixture.isvReseller).toBe('test-isvReseller');
|
|
43
|
+
expect(fixture.privacyPolicyUrl).toBe('test-privacyPolicyUrl');
|
|
44
|
+
expect(fixture.termsAndConditionsUrl).toBe('test-termsAndConditionsUrl');
|
|
45
|
+
expect(fixture.businessDba).toBe('test-businessDba');
|
|
46
|
+
expect(fixture.businessRegistrationNumber).toBe('test-businessRegistrationNumber');
|
|
47
|
+
expect(fixture.businessRegistrationType).toBe(BusinessRegistrationTypeEnum.Ein);
|
|
48
|
+
expect(fixture.businessRegistrationIssuingCountry).toBe('test-businessRegistrationIssuingCountry');
|
|
49
|
+
expect(fixture.businessEntityType).toBe(BusinessEntityTypeEnum.SoleProprietor);
|
|
50
|
+
expect(fixture.helpMessageResponse).toBe('test-helpMessageResponse');
|
|
51
|
+
expect(fixture.ageGatedContent).toBe(true);
|
|
52
|
+
expect(fixture.cvToken).toBe('test-cvToken');
|
|
53
|
+
});
|
|
54
|
+
});
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { VerificationUpdateRequest } from '../../../models/verification-update-request';
|
|
2
|
+
import { Address } from '../../../models/address';
|
|
3
|
+
import { Contact } from '../../../models/contact';
|
|
4
|
+
import { OptInWorkflow } from '../../../models/opt-in-workflow';
|
|
5
|
+
import { BusinessRegistrationTypeEnum } from '../../../models/business-registration-type-enum';
|
|
6
|
+
import { BusinessEntityTypeEnum } from '../../../models/business-entity-type-enum';
|
|
7
|
+
|
|
8
|
+
describe('VerificationUpdateRequest', () => {
|
|
9
|
+
test('should accept the expected shape', () => {
|
|
10
|
+
const fixture: VerificationUpdateRequest = {
|
|
11
|
+
businessAddress: {} as unknown as Address,
|
|
12
|
+
businessContact: {} as unknown as Contact,
|
|
13
|
+
messageVolume: 1.5,
|
|
14
|
+
useCase: 'test-useCase',
|
|
15
|
+
useCaseSummary: 'test-useCaseSummary',
|
|
16
|
+
productionMessageContent: 'test-productionMessageContent',
|
|
17
|
+
optInWorkflow: {} as unknown as OptInWorkflow,
|
|
18
|
+
additionalInformation: 'test-additionalInformation',
|
|
19
|
+
isvReseller: 'test-isvReseller',
|
|
20
|
+
privacyPolicyUrl: 'test-privacyPolicyUrl',
|
|
21
|
+
termsAndConditionsUrl: 'test-termsAndConditionsUrl',
|
|
22
|
+
businessDba: 'test-businessDba',
|
|
23
|
+
businessRegistrationNumber: 'test-businessRegistrationNumber',
|
|
24
|
+
businessRegistrationType: BusinessRegistrationTypeEnum.Ein,
|
|
25
|
+
businessEntityType: BusinessEntityTypeEnum.SoleProprietor,
|
|
26
|
+
businessRegistrationIssuingCountry: 'test-businessRegistrationIssuingCountry',
|
|
27
|
+
helpMessageResponse: 'test-helpMessageResponse',
|
|
28
|
+
ageGatedContent: true,
|
|
29
|
+
cvToken: 'test-cvToken',
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
expect(fixture.businessAddress).toBeDefined();
|
|
33
|
+
expect(fixture.businessContact).toBeDefined();
|
|
34
|
+
expect(fixture.messageVolume).toBe(1.5);
|
|
35
|
+
expect(fixture.useCase).toBe('test-useCase');
|
|
36
|
+
expect(fixture.useCaseSummary).toBe('test-useCaseSummary');
|
|
37
|
+
expect(fixture.productionMessageContent).toBe('test-productionMessageContent');
|
|
38
|
+
expect(fixture.optInWorkflow).toBeDefined();
|
|
39
|
+
expect(fixture.additionalInformation).toBe('test-additionalInformation');
|
|
40
|
+
expect(fixture.isvReseller).toBe('test-isvReseller');
|
|
41
|
+
expect(fixture.privacyPolicyUrl).toBe('test-privacyPolicyUrl');
|
|
42
|
+
expect(fixture.termsAndConditionsUrl).toBe('test-termsAndConditionsUrl');
|
|
43
|
+
expect(fixture.businessDba).toBe('test-businessDba');
|
|
44
|
+
expect(fixture.businessRegistrationNumber).toBe('test-businessRegistrationNumber');
|
|
45
|
+
expect(fixture.businessRegistrationType).toBe(BusinessRegistrationTypeEnum.Ein);
|
|
46
|
+
expect(fixture.businessEntityType).toBe(BusinessEntityTypeEnum.SoleProprietor);
|
|
47
|
+
expect(fixture.businessRegistrationIssuingCountry).toBe('test-businessRegistrationIssuingCountry');
|
|
48
|
+
expect(fixture.helpMessageResponse).toBe('test-helpMessageResponse');
|
|
49
|
+
expect(fixture.ageGatedContent).toBe(true);
|
|
50
|
+
expect(fixture.cvToken).toBe('test-cvToken');
|
|
51
|
+
});
|
|
52
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { VerificationWebhook } from '../../../models/verification-webhook';
|
|
2
|
+
import { TfvCallbackStatusEnum } from '../../../models/tfv-callback-status-enum';
|
|
3
|
+
|
|
4
|
+
describe('VerificationWebhook', () => {
|
|
5
|
+
test('should accept the expected shape', () => {
|
|
6
|
+
const fixture: VerificationWebhook = {
|
|
7
|
+
accountId: 'test-accountId',
|
|
8
|
+
phoneNumber: 'test-phoneNumber',
|
|
9
|
+
status: TfvCallbackStatusEnum.Verified,
|
|
10
|
+
internalTicketNumber: 'test-internalTicketNumber',
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
expect(fixture.accountId).toBe('test-accountId');
|
|
14
|
+
expect(fixture.phoneNumber).toBe('test-phoneNumber');
|
|
15
|
+
expect(fixture.status).toBe(TfvCallbackStatusEnum.Verified);
|
|
16
|
+
expect(fixture.internalTicketNumber).toBe('test-internalTicketNumber');
|
|
17
|
+
});
|
|
18
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { VerifyCodeRequest } from '../../../models/verify-code-request';
|
|
2
|
+
|
|
3
|
+
describe('VerifyCodeRequest', () => {
|
|
4
|
+
test('should accept the expected shape', () => {
|
|
5
|
+
const fixture: VerifyCodeRequest = {
|
|
6
|
+
to: 'test-to',
|
|
7
|
+
scope: 'test-scope',
|
|
8
|
+
expirationTimeInMinutes: 1.5,
|
|
9
|
+
code: 'test-code',
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
expect(fixture.to).toBe('test-to');
|
|
13
|
+
expect(fixture.scope).toBe('test-scope');
|
|
14
|
+
expect(fixture.expirationTimeInMinutes).toBe(1.5);
|
|
15
|
+
expect(fixture.code).toBe('test-code');
|
|
16
|
+
});
|
|
17
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { VerifyCodeResponse } from '../../../models/verify-code-response';
|
|
2
|
+
|
|
3
|
+
describe('VerifyCodeResponse', () => {
|
|
4
|
+
test('should accept the expected shape', () => {
|
|
5
|
+
const fixture: VerifyCodeResponse = {
|
|
6
|
+
valid: true,
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
expect(fixture.valid).toBe(true);
|
|
10
|
+
});
|
|
11
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { VoiceApiError } from '../../../models/voice-api-error';
|
|
2
|
+
|
|
3
|
+
describe('VoiceApiError', () => {
|
|
4
|
+
test('should accept the expected shape', () => {
|
|
5
|
+
const fixture: VoiceApiError = {
|
|
6
|
+
type: 'test-type',
|
|
7
|
+
description: 'test-description',
|
|
8
|
+
id: 'test-id',
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
expect(fixture.type).toBe('test-type');
|
|
12
|
+
expect(fixture.description).toBe('test-description');
|
|
13
|
+
expect(fixture.id).toBe('test-id');
|
|
14
|
+
});
|
|
15
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { VoiceCodeResponse } from '../../../models/voice-code-response';
|
|
2
|
+
|
|
3
|
+
describe('VoiceCodeResponse', () => {
|
|
4
|
+
test('should accept the expected shape', () => {
|
|
5
|
+
const fixture: VoiceCodeResponse = {
|
|
6
|
+
callId: 'test-callId',
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
expect(fixture.callId).toBe('test-callId');
|
|
10
|
+
});
|
|
11
|
+
});
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { WebhookSubscriptionBasicAuthentication } from '../../../models/webhook-subscription-basic-authentication';
|
|
2
|
+
|
|
3
|
+
describe('WebhookSubscriptionBasicAuthentication', () => {
|
|
4
|
+
test('should accept the expected shape', () => {
|
|
5
|
+
const fixture: WebhookSubscriptionBasicAuthentication = {
|
|
6
|
+
username: 'test-username',
|
|
7
|
+
password: 'test-password',
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
expect(fixture.username).toBe('test-username');
|
|
11
|
+
expect(fixture.password).toBe('test-password');
|
|
12
|
+
});
|
|
13
|
+
});
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { WebhookSubscriptionError } from '../../../models/webhook-subscription-error';
|
|
2
|
+
|
|
3
|
+
describe('WebhookSubscriptionError', () => {
|
|
4
|
+
test('should accept the expected shape', () => {
|
|
5
|
+
const fixture: WebhookSubscriptionError = {
|
|
6
|
+
code: 1.5,
|
|
7
|
+
description: 'test-description',
|
|
8
|
+
telephoneNumbers: [],
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
expect(fixture.code).toBe(1.5);
|
|
12
|
+
expect(fixture.description).toBe('test-description');
|
|
13
|
+
expect(fixture.telephoneNumbers).toEqual([]);
|
|
14
|
+
});
|
|
15
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { WebhookSubscriptionRequestSchema } from '../../../models/webhook-subscription-request-schema';
|
|
2
|
+
import { TfvBasicAuthentication } from '../../../models/tfv-basic-authentication';
|
|
3
|
+
|
|
4
|
+
describe('WebhookSubscriptionRequestSchema', () => {
|
|
5
|
+
test('should accept the expected shape', () => {
|
|
6
|
+
const fixture: WebhookSubscriptionRequestSchema = {
|
|
7
|
+
basicAuthentication: {} as unknown as TfvBasicAuthentication,
|
|
8
|
+
callbackUrl: 'test-callbackUrl',
|
|
9
|
+
sharedSecretKey: 'test-sharedSecretKey',
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
expect(fixture.basicAuthentication).toBeDefined();
|
|
13
|
+
expect(fixture.callbackUrl).toBe('test-callbackUrl');
|
|
14
|
+
expect(fixture.sharedSecretKey).toBe('test-sharedSecretKey');
|
|
15
|
+
});
|
|
16
|
+
});
|
|
@@ -4,5 +4,9 @@ describe('WebhookSubscriptionTypeEnum', () => {
|
|
|
4
4
|
test('should define the expected values', () => {
|
|
5
5
|
expect(WebhookSubscriptionTypeEnum.TollfreeVerificationStatus).toBe('TOLLFREE_VERIFICATION_STATUS');
|
|
6
6
|
expect(WebhookSubscriptionTypeEnum.MessagingPortoutApprovalStatus).toBe('MESSAGING_PORTOUT_APPROVAL_STATUS');
|
|
7
|
+
expect(Object.values(WebhookSubscriptionTypeEnum)).toEqual([
|
|
8
|
+
'TOLLFREE_VERIFICATION_STATUS',
|
|
9
|
+
'MESSAGING_PORTOUT_APPROVAL_STATUS'
|
|
10
|
+
]);
|
|
7
11
|
});
|
|
8
12
|
});
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { WebhookSubscription } from '../../../models/webhook-subscription';
|
|
2
|
+
import { WebhookSubscriptionTypeEnum } from '../../../models/webhook-subscription-type-enum';
|
|
3
|
+
import { WebhookSubscriptionBasicAuthentication } from '../../../models/webhook-subscription-basic-authentication';
|
|
4
|
+
|
|
5
|
+
describe('WebhookSubscription', () => {
|
|
6
|
+
test('should accept the expected shape', () => {
|
|
7
|
+
const fixture: WebhookSubscription = {
|
|
8
|
+
id: 'test-id',
|
|
9
|
+
accountId: 'test-accountId',
|
|
10
|
+
callbackUrl: 'test-callbackUrl',
|
|
11
|
+
type: WebhookSubscriptionTypeEnum.TollfreeVerificationStatus,
|
|
12
|
+
basicAuthentication: {} as unknown as WebhookSubscriptionBasicAuthentication,
|
|
13
|
+
createdDate: 'test-createdDate',
|
|
14
|
+
modifiedDate: 'test-modifiedDate',
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
expect(fixture.id).toBe('test-id');
|
|
18
|
+
expect(fixture.accountId).toBe('test-accountId');
|
|
19
|
+
expect(fixture.callbackUrl).toBe('test-callbackUrl');
|
|
20
|
+
expect(fixture.type).toBe(WebhookSubscriptionTypeEnum.TollfreeVerificationStatus);
|
|
21
|
+
expect(fixture.basicAuthentication).toBeDefined();
|
|
22
|
+
expect(fixture.createdDate).toBe('test-createdDate');
|
|
23
|
+
expect(fixture.modifiedDate).toBe('test-modifiedDate');
|
|
24
|
+
});
|
|
25
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { WebhookSubscriptionsListBody } from '../../../models/webhook-subscriptions-list-body';
|
|
2
|
+
import { LinksObject } from '../../../models/links-object';
|
|
3
|
+
|
|
4
|
+
describe('WebhookSubscriptionsListBody', () => {
|
|
5
|
+
test('should accept the expected shape', () => {
|
|
6
|
+
const fixture: WebhookSubscriptionsListBody = {
|
|
7
|
+
links: {} as unknown as LinksObject,
|
|
8
|
+
errors: [],
|
|
9
|
+
data: [],
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
expect(fixture.links).toBeDefined();
|
|
13
|
+
expect(fixture.errors).toEqual([]);
|
|
14
|
+
expect(fixture.data).toEqual([]);
|
|
15
|
+
});
|
|
16
|
+
});
|