bandwidth-sdk 6.2.0 → 7.0.0
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/.github/workflows/deploy.yml +2 -2
- package/.github/workflows/test-pr.yml +2 -2
- package/.github/workflows/test-smoke.yml +4 -4
- package/.openapi-generator/FILES +34 -10
- package/.openapi-generator/VERSION +1 -1
- package/README.md +245 -6
- package/api/calls-api.ts +0 -11
- package/api/conferences-api.ts +0 -15
- package/api/media-api.ts +0 -10
- package/api/messages-api.ts +0 -8
- package/api/mfaapi.ts +0 -9
- package/api/multi-channel-api.ts +0 -7
- package/api/phone-number-lookup-api.ts +145 -68
- package/api/recordings-api.ts +0 -16
- package/api/statistics-api.ts +0 -7
- package/api/toll-free-verification-api.ts +0 -15
- package/api/transcriptions-api.ts +0 -9
- package/bandwidth.yml +555 -279
- package/base.ts +10 -28
- package/common.ts +5 -42
- package/configuration.ts +26 -20
- package/coverage/clover.xml +1331 -1278
- package/coverage/coverage-final.json +49 -45
- package/coverage/lcov-report/index.html +25 -25
- package/coverage/lcov-report/node-sdk/api/calls-api.ts.html +2 -35
- package/coverage/lcov-report/node-sdk/api/conferences-api.ts.html +2 -47
- package/coverage/lcov-report/node-sdk/api/index.html +17 -17
- package/coverage/lcov-report/node-sdk/api/media-api.ts.html +2 -32
- package/coverage/lcov-report/node-sdk/api/messages-api.ts.html +2 -26
- package/coverage/lcov-report/node-sdk/api/mfaapi.ts.html +2 -29
- package/coverage/lcov-report/node-sdk/api/multi-channel-api.ts.html +2 -23
- package/coverage/lcov-report/node-sdk/api/phone-number-lookup-api.ts.html +352 -121
- package/coverage/lcov-report/node-sdk/api/recordings-api.ts.html +2 -50
- package/coverage/lcov-report/node-sdk/api/statistics-api.ts.html +2 -23
- package/coverage/lcov-report/node-sdk/api/toll-free-verification-api.ts.html +2 -47
- package/coverage/lcov-report/node-sdk/api/transcriptions-api.ts.html +2 -29
- package/coverage/lcov-report/node-sdk/api.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/base.ts.html +19 -73
- package/coverage/lcov-report/node-sdk/common.ts.html +25 -136
- package/coverage/lcov-report/node-sdk/configuration.ts.html +52 -34
- package/coverage/lcov-report/node-sdk/index.html +7 -7
- package/coverage/lcov-report/node-sdk/models/business-entity-type-enum.ts.html +2 -8
- package/coverage/lcov-report/node-sdk/models/business-registration-type-enum.ts.html +2 -8
- 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/CustomParam.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 -8
- package/coverage/lcov-report/node-sdk/models/call-state-enum.ts.html +2 -8
- package/coverage/lcov-report/node-sdk/models/call-transcription-detected-language-enum.ts.html +2 -8
- package/coverage/lcov-report/node-sdk/models/call-transcription-track-enum.ts.html +2 -8
- package/coverage/lcov-report/node-sdk/models/callback-method-enum.ts.html +2 -8
- package/coverage/lcov-report/node-sdk/models/card-width-enum.ts.html +2 -17
- package/coverage/lcov-report/node-sdk/models/completed-lookup-status-enum.ts.html +166 -0
- package/coverage/lcov-report/node-sdk/models/conference-state-enum.ts.html +2 -8
- package/coverage/lcov-report/node-sdk/models/deactivation-event-enum.ts.html +169 -0
- package/coverage/lcov-report/node-sdk/models/file-format-enum.ts.html +2 -8
- package/coverage/lcov-report/node-sdk/models/in-progress-lookup-status-enum.ts.html +169 -0
- package/coverage/lcov-report/node-sdk/models/inbound-callback-type-enum.ts.html +2 -8
- package/coverage/lcov-report/node-sdk/models/index.html +67 -7
- package/coverage/lcov-report/node-sdk/models/index.ts.html +45 -9
- package/coverage/lcov-report/node-sdk/models/{lookup-status-enum.ts.html → latest-message-delivery-status-enum.ts.html} +10 -19
- package/coverage/lcov-report/node-sdk/models/line-type-enum.ts.html +169 -0
- package/coverage/lcov-report/node-sdk/models/list-message-direction-enum.ts.html +2 -8
- package/coverage/lcov-report/node-sdk/models/machine-detection-mode-enum.ts.html +2 -8
- package/coverage/lcov-report/node-sdk/models/message-direction-enum.ts.html +2 -8
- package/coverage/lcov-report/node-sdk/models/message-status-enum.ts.html +2 -8
- package/coverage/lcov-report/node-sdk/models/message-type-enum.ts.html +2 -8
- package/coverage/lcov-report/node-sdk/models/multi-channel-message-channel-enum.ts.html +2 -8
- package/coverage/lcov-report/node-sdk/models/priority-enum.ts.html +2 -8
- package/coverage/lcov-report/node-sdk/models/product-type-enum.ts.html +2 -8
- package/coverage/lcov-report/node-sdk/models/rbm-action-type-enum.ts.html +2 -17
- package/coverage/lcov-report/node-sdk/models/rbm-media-height-enum.ts.html +2 -8
- package/coverage/lcov-report/node-sdk/models/recording-state-enum.ts.html +2 -8
- package/coverage/lcov-report/node-sdk/models/redirect-method-enum.ts.html +2 -8
- package/coverage/lcov-report/node-sdk/models/standalone-card-orientation-enum.ts.html +2 -17
- package/coverage/lcov-report/node-sdk/models/status-callback-type-enum.ts.html +2 -8
- package/coverage/lcov-report/node-sdk/models/tfv-callback-status-enum.ts.html +2 -17
- package/coverage/lcov-report/node-sdk/models/tfv-status-enum.ts.html +2 -17
- package/coverage/lcov-report/node-sdk/models/thumbnail-alignment-enum.ts.html +2 -8
- package/coverage/lcov-report/node-sdk/models/webhook-subscription-type-enum.ts.html +2 -17
- package/coverage/lcov.info +2939 -2823
- package/custom_templates/README.mustache +56 -6
- package/custom_templates/common.mustache +29 -44
- package/custom_templates/configuration.mustache +26 -19
- package/custom_templates/package.mustache +1 -1
- package/dist/api/calls-api.d.ts +5 -16
- package/dist/api/calls-api.js +0 -11
- package/dist/api/conferences-api.d.ts +9 -24
- package/dist/api/conferences-api.js +0 -15
- package/dist/api/media-api.d.ts +4 -14
- package/dist/api/media-api.js +0 -10
- package/dist/api/messages-api.d.ts +2 -10
- package/dist/api/messages-api.js +0 -8
- package/dist/api/mfaapi.d.ts +3 -12
- package/dist/api/mfaapi.js +0 -9
- package/dist/api/multi-channel-api.d.ts +1 -8
- package/dist/api/multi-channel-api.js +0 -7
- package/dist/api/phone-number-lookup-api.d.ts +81 -51
- package/dist/api/phone-number-lookup-api.js +149 -65
- package/dist/api/recordings-api.d.ts +10 -26
- package/dist/api/recordings-api.js +0 -16
- package/dist/api/statistics-api.d.ts +1 -8
- package/dist/api/statistics-api.js +0 -7
- package/dist/api/toll-free-verification-api.d.ts +9 -24
- package/dist/api/toll-free-verification-api.js +0 -15
- package/dist/api/transcriptions-api.d.ts +3 -12
- package/dist/api/transcriptions-api.js +0 -9
- package/dist/base.d.ts +0 -24
- package/dist/base.js +10 -23
- package/dist/common.d.ts +0 -37
- package/dist/common.js +0 -37
- package/dist/configuration.d.ts +24 -17
- package/dist/configuration.js +2 -2
- package/dist/models/account-statistics.d.ts +0 -9
- package/dist/models/additional-denial-reason.d.ts +0 -11
- package/dist/models/address.d.ts +0 -19
- package/dist/models/answer-callback.d.ts +0 -36
- package/dist/models/async-lookup-request.d.ts +17 -0
- package/dist/models/blocked-webhook.d.ts +0 -20
- package/dist/models/bridge-complete-callback.d.ts +0 -37
- package/dist/models/bridge-target-complete-callback.d.ts +0 -31
- package/dist/models/business-entity-type-enum.d.ts +0 -2
- package/dist/models/business-entity-type-enum.js +0 -2
- package/dist/models/business-registration-type-enum.d.ts +0 -2
- package/dist/models/business-registration-type-enum.js +0 -2
- package/dist/models/call-direction-enum.d.ts +0 -2
- package/dist/models/call-direction-enum.js +0 -2
- package/dist/models/call-recording-metadata.d.ts +0 -52
- package/dist/models/call-state-enum.d.ts +0 -2
- package/dist/models/call-state-enum.js +0 -2
- package/dist/models/call-state.d.ts +1 -45
- package/dist/models/call-transcription-detected-language-enum.d.ts +0 -2
- package/dist/models/call-transcription-detected-language-enum.js +0 -2
- package/dist/models/call-transcription-metadata.d.ts +0 -11
- package/dist/models/call-transcription-response.d.ts +0 -16
- package/dist/models/call-transcription-track-enum.d.ts +0 -2
- package/dist/models/call-transcription-track-enum.js +0 -2
- package/dist/models/call-transcription.d.ts +0 -19
- package/dist/models/callback-method-enum.d.ts +0 -2
- package/dist/models/callback-method-enum.js +0 -2
- package/dist/models/callback.d.ts +0 -1
- package/dist/models/card-width-enum.d.ts +0 -5
- package/dist/models/card-width-enum.js +0 -5
- package/dist/models/code-request.d.ts +0 -17
- package/dist/models/completed-lookup-status-enum.d.ts +17 -0
- package/dist/models/completed-lookup-status-enum.js +21 -0
- package/dist/models/conference-completed-callback.d.ts +0 -12
- package/dist/models/conference-created-callback.d.ts +0 -12
- package/dist/models/conference-member-exit-callback.d.ts +0 -18
- package/dist/models/conference-member-join-callback.d.ts +0 -18
- package/dist/models/conference-member.d.ts +0 -17
- package/dist/models/conference-recording-available-callback.d.ts +0 -33
- package/dist/models/conference-recording-metadata.d.ts +0 -32
- package/dist/models/conference-redirect-callback.d.ts +0 -12
- package/dist/models/conference-state-enum.d.ts +0 -2
- package/dist/models/conference-state-enum.js +0 -2
- package/dist/models/conference.d.ts +0 -24
- package/dist/models/contact.d.ts +0 -16
- package/dist/models/create-async-bulk-lookup-response-data.d.ts +22 -0
- package/dist/models/create-async-bulk-lookup-response.d.ts +22 -0
- package/dist/models/create-call-response.d.ts +0 -56
- package/dist/models/create-call.d.ts +0 -59
- package/dist/models/create-message-request-error.d.ts +0 -20
- package/dist/models/create-multi-channel-message-response.d.ts +0 -20
- package/dist/models/create-sync-lookup-response-data.d.ts +27 -0
- package/dist/models/create-sync-lookup-response.d.ts +19 -0
- package/dist/models/create-sync-lookup-response.js +15 -0
- package/dist/models/deactivation-event-enum.d.ts +18 -0
- package/dist/models/deactivation-event-enum.js +22 -0
- package/dist/models/disconnect-callback.d.ts +0 -39
- package/dist/models/diversion.d.ts +0 -19
- package/dist/models/dtmf-callback.d.ts +0 -39
- package/dist/models/error-object.d.ts +0 -14
- package/dist/models/error-source.d.ts +0 -10
- package/dist/models/failure-webhook.d.ts +0 -17
- package/dist/models/field-error.d.ts +0 -9
- package/dist/models/file-format-enum.d.ts +0 -2
- package/dist/models/file-format-enum.js +0 -2
- package/dist/models/gather-callback.d.ts +0 -41
- package/dist/models/get-async-bulk-lookup-response-data.d.ts +27 -0
- package/dist/models/get-async-bulk-lookup-response-data.js +15 -0
- package/dist/models/get-async-bulk-lookup-response.d.ts +19 -0
- package/dist/models/get-async-bulk-lookup-response.js +15 -0
- package/dist/models/{lookup-status-enum.d.ts → in-progress-lookup-status-enum.d.ts} +2 -7
- package/dist/models/{lookup-status-enum.js → in-progress-lookup-status-enum.js} +2 -7
- package/dist/models/inbound-callback-message.d.ts +0 -1
- package/dist/models/inbound-callback-type-enum.d.ts +0 -2
- package/dist/models/inbound-callback-type-enum.js +0 -2
- package/dist/models/inbound-callback.d.ts +0 -23
- package/dist/models/index.d.ts +17 -5
- package/dist/models/index.js +17 -5
- package/dist/models/initiate-callback.d.ts +0 -37
- package/dist/models/latest-message-delivery-status-enum.d.ts +20 -0
- package/dist/models/latest-message-delivery-status-enum.js +24 -0
- package/dist/models/line-type-enum.d.ts +18 -0
- package/dist/models/line-type-enum.js +22 -0
- package/dist/models/{lookup-request.d.ts → link-schema.d.ts} +11 -10
- package/dist/models/link-schema.js +15 -0
- package/dist/models/link.d.ts +0 -15
- package/dist/models/links-object.d.ts +0 -13
- package/dist/models/list-message-direction-enum.d.ts +0 -2
- package/dist/models/list-message-direction-enum.js +0 -2
- package/dist/models/list-message-item.d.ts +0 -60
- package/dist/models/lookup-error-response.d.ts +21 -0
- package/dist/models/lookup-error-response.js +15 -0
- package/dist/models/{tn-lookup-request-error.d.ts → lookup-error-schema-meta.d.ts} +7 -9
- package/dist/models/lookup-error-schema-meta.js +15 -0
- package/dist/models/lookup-error-schema.d.ts +27 -0
- package/dist/models/lookup-error-schema.js +15 -0
- package/dist/models/lookup-result.d.ts +22 -40
- package/dist/models/machine-detection-complete-callback.d.ts +0 -36
- package/dist/models/machine-detection-configuration.d.ts +0 -41
- package/dist/models/machine-detection-mode-enum.d.ts +0 -2
- package/dist/models/machine-detection-mode-enum.js +0 -2
- package/dist/models/machine-detection-result.d.ts +0 -6
- package/dist/models/media.d.ts +0 -20
- package/dist/models/message-direction-enum.d.ts +0 -2
- package/dist/models/message-direction-enum.js +0 -2
- package/dist/models/message-request.d.ts +0 -24
- package/dist/models/message-status-enum.d.ts +0 -2
- package/dist/models/message-status-enum.js +0 -2
- package/dist/models/message-type-enum.d.ts +0 -2
- package/dist/models/message-type-enum.js +0 -2
- package/dist/models/message.d.ts +0 -37
- package/dist/models/messages-list.d.ts +0 -17
- package/dist/models/messaging-code-response.d.ts +0 -7
- package/dist/models/messaging-request-error.d.ts +0 -15
- package/dist/models/mfa-forbidden-request-error.d.ts +0 -7
- package/dist/models/mfa-request-error.d.ts +0 -9
- package/dist/models/mfa-unauthorized-request-error.d.ts +0 -7
- package/dist/models/mms-message-content-file.d.ts +0 -7
- package/dist/models/mms-message-content.d.ts +0 -12
- package/dist/models/model-error.d.ts +0 -20
- package/dist/models/multi-channel-action-calendar-event.d.ts +0 -1
- package/dist/models/multi-channel-action.d.ts +0 -1
- package/dist/models/multi-channel-channel-list-object-content.d.ts +0 -1
- package/dist/models/multi-channel-channel-list-object.d.ts +0 -19
- package/dist/models/multi-channel-error.d.ts +0 -20
- package/dist/models/multi-channel-message-channel-enum.d.ts +0 -2
- package/dist/models/multi-channel-message-channel-enum.js +0 -2
- package/dist/models/multi-channel-message-content.d.ts +0 -12
- package/dist/models/multi-channel-message-request.d.ts +0 -15
- package/dist/models/multi-channel-message-response-data-channel-list-inner.d.ts +0 -1
- package/dist/models/multi-channel-message-response-data.d.ts +0 -24
- package/dist/models/opt-in-workflow.d.ts +0 -20
- package/dist/models/page-info.d.ts +0 -13
- package/dist/models/priority-enum.d.ts +0 -2
- package/dist/models/priority-enum.js +0 -2
- package/dist/models/product-type-enum.d.ts +0 -2
- package/dist/models/product-type-enum.js +0 -2
- package/dist/models/rbm-action-base.d.ts +0 -14
- package/dist/models/rbm-action-dial.d.ts +0 -1
- package/dist/models/rbm-action-open-url.d.ts +0 -1
- package/dist/models/rbm-action-type-enum.d.ts +0 -5
- package/dist/models/rbm-action-type-enum.js +0 -5
- package/dist/models/rbm-action-view-location.d.ts +0 -1
- package/dist/models/rbm-card-content-media.d.ts +0 -1
- package/dist/models/rbm-card-content.d.ts +0 -16
- package/dist/models/rbm-location-response.d.ts +0 -9
- package/dist/models/rbm-media-height-enum.d.ts +0 -2
- package/dist/models/rbm-media-height-enum.js +0 -2
- package/dist/models/rbm-message-carousel-card.d.ts +0 -17
- package/dist/models/rbm-message-content-file.d.ts +0 -9
- package/dist/models/rbm-message-content-rich-card.d.ts +0 -1
- package/dist/models/rbm-message-content-text.d.ts +0 -9
- package/dist/models/rbm-message-media.d.ts +0 -12
- package/dist/models/rbm-standalone-card.d.ts +0 -22
- package/dist/models/rbm-suggestion-response.d.ts +0 -9
- package/dist/models/recording-available-callback.d.ts +0 -52
- package/dist/models/recording-complete-callback.d.ts +0 -52
- package/dist/models/recording-state-enum.d.ts +0 -2
- package/dist/models/recording-state-enum.js +0 -2
- package/dist/models/recording-transcription-metadata.d.ts +0 -10
- package/dist/models/recording-transcriptions.d.ts +0 -10
- package/dist/models/redirect-callback.d.ts +0 -37
- package/dist/models/redirect-method-enum.d.ts +0 -2
- package/dist/models/redirect-method-enum.js +0 -2
- package/dist/models/sms-message-content.d.ts +0 -7
- package/dist/models/standalone-card-orientation-enum.d.ts +0 -5
- package/dist/models/standalone-card-orientation-enum.js +0 -5
- package/dist/models/status-callback-message.d.ts +0 -43
- package/dist/models/status-callback-type-enum.d.ts +0 -2
- package/dist/models/status-callback-type-enum.js +0 -2
- package/dist/models/status-callback.d.ts +0 -27
- package/dist/models/stir-shaken.d.ts +1 -12
- package/dist/models/sync-lookup-request.d.ts +17 -0
- package/dist/models/sync-lookup-request.js +15 -0
- package/dist/models/telephone-number.d.ts +0 -7
- package/dist/models/tfv-basic-authentication.d.ts +0 -15
- package/dist/models/tfv-callback-status-enum.d.ts +0 -5
- package/dist/models/tfv-callback-status-enum.js +0 -5
- package/dist/models/tfv-error.d.ts +0 -14
- package/dist/models/tfv-status-enum.d.ts +0 -5
- package/dist/models/tfv-status-enum.js +0 -5
- package/dist/models/tfv-status.d.ts +0 -31
- package/dist/models/tfv-submission-info.d.ts +0 -50
- package/dist/models/tfv-submission-wrapper.d.ts +0 -10
- package/dist/models/thumbnail-alignment-enum.d.ts +0 -2
- package/dist/models/thumbnail-alignment-enum.js +0 -2
- package/dist/models/transcribe-recording.d.ts +0 -22
- package/dist/models/transcription-available-callback.d.ts +0 -53
- package/dist/models/transcription.d.ts +0 -9
- package/dist/models/transfer-answer-callback.d.ts +0 -35
- package/dist/models/transfer-complete-callback.d.ts +0 -41
- package/dist/models/transfer-disconnect-callback.d.ts +0 -45
- package/dist/models/update-call-recording.d.ts +0 -10
- package/dist/models/update-call.d.ts +0 -34
- package/dist/models/update-conference-member.d.ts +0 -11
- package/dist/models/update-conference.d.ts +0 -32
- package/dist/models/verification-denial-webhook.d.ts +0 -28
- package/dist/models/verification-request.d.ts +0 -59
- package/dist/models/verification-update-request.d.ts +0 -54
- package/dist/models/verification-webhook.d.ts +0 -16
- package/dist/models/verify-code-request.d.ts +0 -13
- package/dist/models/verify-code-response.d.ts +0 -7
- package/dist/models/voice-api-error.d.ts +0 -20
- package/dist/models/voice-code-response.d.ts +0 -7
- package/dist/models/webhook-subscription-basic-authentication.d.ts +0 -12
- package/dist/models/webhook-subscription-request-schema.d.ts +0 -14
- package/dist/models/webhook-subscription-type-enum.d.ts +0 -5
- package/dist/models/webhook-subscription-type-enum.js +0 -5
- package/dist/models/webhook-subscription.d.ts +0 -34
- package/dist/models/webhook-subscriptions-list-body.d.ts +0 -17
- package/docs/{TnLookupRequestError.md → AsyncLookupRequest.md} +5 -5
- package/docs/CallState.md +1 -1
- package/docs/CompletedLookupStatusEnum.md +12 -0
- package/docs/CreateAsyncBulkLookupResponse.md +24 -0
- package/docs/{CreateLookupResponse.md → CreateAsyncBulkLookupResponseData.md} +5 -5
- package/docs/CreateSyncLookupResponse.md +24 -0
- package/docs/CreateSyncLookupResponseData.md +25 -0
- package/docs/DeactivationEventEnum.md +9 -0
- package/docs/GetAsyncBulkLookupResponse.md +24 -0
- package/docs/GetAsyncBulkLookupResponseData.md +25 -0
- package/docs/{LookupStatusEnum.md → InProgressLookupStatusEnum.md} +1 -2
- package/docs/LatestMessageDeliveryStatusEnum.md +13 -0
- package/docs/LineTypeEnum.md +14 -0
- package/docs/LinkSchema.md +24 -0
- package/docs/LookupErrorResponse.md +24 -0
- package/docs/LookupErrorSchema.md +26 -0
- package/docs/LookupErrorSchemaMeta.md +24 -0
- package/docs/LookupResult.md +22 -18
- package/docs/PhoneNumberLookupApi.md +81 -34
- package/docs/StirShaken.md +1 -1
- package/docs/{LookupRequest.md → SyncLookupRequest.md} +5 -6
- package/models/account-statistics.ts +0 -9
- package/models/additional-denial-reason.ts +0 -11
- package/models/address.ts +0 -19
- package/models/answer-callback.ts +0 -36
- package/models/async-lookup-request.ts +23 -0
- package/models/blocked-webhook.ts +0 -20
- package/models/bridge-complete-callback.ts +0 -37
- package/models/bridge-target-complete-callback.ts +0 -31
- package/models/business-entity-type-enum.ts +0 -2
- package/models/business-registration-type-enum.ts +0 -2
- package/models/call-direction-enum.ts +0 -2
- package/models/call-recording-metadata.ts +0 -52
- package/models/call-state-enum.ts +0 -2
- package/models/call-state.ts +1 -45
- package/models/call-transcription-detected-language-enum.ts +0 -2
- package/models/call-transcription-metadata.ts +0 -11
- package/models/call-transcription-response.ts +0 -16
- package/models/call-transcription-track-enum.ts +0 -2
- package/models/call-transcription.ts +0 -19
- package/models/callback-method-enum.ts +0 -2
- package/models/callback.ts +0 -1
- package/models/card-width-enum.ts +0 -5
- package/models/code-request.ts +0 -17
- package/models/completed-lookup-status-enum.ts +27 -0
- package/models/conference-completed-callback.ts +0 -12
- package/models/conference-created-callback.ts +0 -12
- package/models/conference-member-exit-callback.ts +0 -18
- package/models/conference-member-join-callback.ts +0 -18
- package/models/conference-member.ts +0 -17
- package/models/conference-recording-available-callback.ts +0 -33
- package/models/conference-recording-metadata.ts +0 -32
- package/models/conference-redirect-callback.ts +0 -12
- package/models/conference-state-enum.ts +0 -2
- package/models/conference.ts +0 -24
- package/models/contact.ts +0 -16
- package/models/create-async-bulk-lookup-response-data.ts +32 -0
- package/models/create-async-bulk-lookup-response.ts +34 -0
- package/models/create-call-response.ts +0 -56
- package/models/create-call.ts +0 -59
- package/models/create-message-request-error.ts +0 -20
- package/models/create-multi-channel-message-response.ts +0 -20
- package/models/{create-lookup-response.ts → create-sync-lookup-response-data.ts} +9 -11
- package/models/create-sync-lookup-response.ts +31 -0
- package/models/deactivation-event-enum.ts +28 -0
- package/models/disconnect-callback.ts +0 -39
- package/models/diversion.ts +0 -19
- package/models/dtmf-callback.ts +0 -39
- package/models/error-object.ts +0 -14
- package/models/error-source.ts +0 -10
- package/models/failure-webhook.ts +0 -17
- package/models/field-error.ts +0 -9
- package/models/file-format-enum.ts +0 -2
- package/models/gather-callback.ts +0 -41
- package/models/get-async-bulk-lookup-response-data.ts +39 -0
- package/models/get-async-bulk-lookup-response.ts +31 -0
- package/models/{lookup-status-enum.ts → in-progress-lookup-status-enum.ts} +2 -7
- package/models/inbound-callback-message.ts +0 -1
- package/models/inbound-callback-type-enum.ts +0 -2
- package/models/inbound-callback.ts +0 -23
- package/models/index.ts +17 -5
- package/models/initiate-callback.ts +0 -37
- package/models/latest-message-delivery-status-enum.ts +30 -0
- package/models/line-type-enum.ts +28 -0
- package/models/{lookup-request.ts → link-schema.ts} +11 -10
- package/models/link.ts +0 -15
- package/models/links-object.ts +0 -13
- package/models/list-message-direction-enum.ts +0 -2
- package/models/list-message-item.ts +0 -60
- package/models/lookup-error-response.ts +31 -0
- package/models/{tn-lookup-request-error.ts → lookup-error-schema-meta.ts} +7 -9
- package/models/lookup-error-schema.ts +35 -0
- package/models/lookup-result.ts +30 -40
- package/models/machine-detection-complete-callback.ts +0 -36
- package/models/machine-detection-configuration.ts +0 -41
- package/models/machine-detection-mode-enum.ts +0 -2
- package/models/machine-detection-result.ts +0 -6
- package/models/media.ts +0 -20
- package/models/message-direction-enum.ts +0 -2
- package/models/message-request.ts +0 -24
- package/models/message-status-enum.ts +0 -2
- package/models/message-type-enum.ts +0 -2
- package/models/message.ts +0 -37
- package/models/messages-list.ts +0 -17
- package/models/messaging-code-response.ts +0 -7
- package/models/messaging-request-error.ts +0 -15
- package/models/mfa-forbidden-request-error.ts +0 -7
- package/models/mfa-request-error.ts +0 -9
- package/models/mfa-unauthorized-request-error.ts +0 -7
- package/models/mms-message-content-file.ts +0 -7
- package/models/mms-message-content.ts +0 -12
- package/models/model-error.ts +0 -20
- package/models/multi-channel-action-calendar-event.ts +0 -1
- package/models/multi-channel-action.ts +0 -1
- package/models/multi-channel-channel-list-object-content.ts +0 -1
- package/models/multi-channel-channel-list-object.ts +0 -19
- package/models/multi-channel-error.ts +0 -20
- package/models/multi-channel-message-channel-enum.ts +0 -2
- package/models/multi-channel-message-content.ts +0 -12
- package/models/multi-channel-message-request.ts +0 -15
- package/models/multi-channel-message-response-data-channel-list-inner.ts +0 -1
- package/models/multi-channel-message-response-data.ts +0 -24
- package/models/opt-in-workflow.ts +0 -20
- package/models/page-info.ts +0 -13
- package/models/priority-enum.ts +0 -2
- package/models/product-type-enum.ts +0 -2
- package/models/rbm-action-base.ts +0 -14
- package/models/rbm-action-dial.ts +0 -1
- package/models/rbm-action-open-url.ts +0 -1
- package/models/rbm-action-type-enum.ts +0 -5
- package/models/rbm-action-view-location.ts +0 -1
- package/models/rbm-card-content-media.ts +0 -1
- package/models/rbm-card-content.ts +0 -16
- package/models/rbm-location-response.ts +0 -9
- package/models/rbm-media-height-enum.ts +0 -2
- package/models/rbm-message-carousel-card.ts +0 -17
- package/models/rbm-message-content-file.ts +0 -9
- package/models/rbm-message-content-rich-card.ts +0 -1
- package/models/rbm-message-content-text.ts +0 -9
- package/models/rbm-message-media.ts +0 -12
- package/models/rbm-standalone-card.ts +0 -22
- package/models/rbm-suggestion-response.ts +0 -9
- package/models/recording-available-callback.ts +0 -52
- package/models/recording-complete-callback.ts +0 -52
- package/models/recording-state-enum.ts +0 -2
- package/models/recording-transcription-metadata.ts +0 -10
- package/models/recording-transcriptions.ts +0 -10
- package/models/redirect-callback.ts +0 -37
- package/models/redirect-method-enum.ts +0 -2
- package/models/sms-message-content.ts +0 -7
- package/models/standalone-card-orientation-enum.ts +0 -5
- package/models/status-callback-message.ts +0 -43
- package/models/status-callback-type-enum.ts +0 -2
- package/models/status-callback.ts +0 -27
- package/models/stir-shaken.ts +1 -12
- package/models/sync-lookup-request.ts +23 -0
- package/models/telephone-number.ts +0 -7
- package/models/tfv-basic-authentication.ts +0 -15
- package/models/tfv-callback-status-enum.ts +0 -5
- package/models/tfv-error.ts +0 -14
- package/models/tfv-status-enum.ts +0 -5
- package/models/tfv-status.ts +0 -31
- package/models/tfv-submission-info.ts +0 -50
- package/models/tfv-submission-wrapper.ts +0 -10
- package/models/thumbnail-alignment-enum.ts +0 -2
- package/models/transcribe-recording.ts +0 -22
- package/models/transcription-available-callback.ts +0 -53
- package/models/transcription.ts +0 -9
- package/models/transfer-answer-callback.ts +0 -35
- package/models/transfer-complete-callback.ts +0 -41
- package/models/transfer-disconnect-callback.ts +0 -45
- package/models/update-call-recording.ts +0 -10
- package/models/update-call.ts +0 -34
- package/models/update-conference-member.ts +0 -11
- package/models/update-conference.ts +0 -32
- package/models/verification-denial-webhook.ts +0 -28
- package/models/verification-request.ts +0 -59
- package/models/verification-update-request.ts +0 -54
- package/models/verification-webhook.ts +0 -16
- package/models/verify-code-request.ts +0 -13
- package/models/verify-code-response.ts +0 -7
- package/models/voice-api-error.ts +0 -20
- package/models/voice-code-response.ts +0 -7
- package/models/webhook-subscription-basic-authentication.ts +0 -12
- package/models/webhook-subscription-request-schema.ts +0 -14
- package/models/webhook-subscription-type-enum.ts +0 -5
- package/models/webhook-subscription.ts +0 -34
- package/models/webhook-subscriptions-list-body.ts +0 -17
- package/openapitools.json +1 -1
- package/package.json +2 -2
- package/tests/smoke/phone-number-lookup-api.test.ts +64 -61
- package/tests/unit/api/phone-number-lookup-api.test.ts +64 -58
- package/tests/unit/models/completed-lookup-status-enum.test.ts +9 -0
- package/tests/unit/models/deactivation-event-enum.test.ts +7 -0
- package/tests/unit/models/in-progress-lookup-status-enum.test.ts +11 -0
- package/tests/unit/models/latest-message-delivery-status-enum.test.ts +10 -0
- package/tests/unit/models/line-type-enum.test.ts +11 -0
- package/dist/models/create-lookup-response.d.ts +0 -31
- package/dist/models/lookup-status.d.ts +0 -44
- package/docs/LookupStatus.md +0 -27
- package/models/lookup-status.ts +0 -56
- package/tests/unit/models/lookup-status-enum.test.ts +0 -10
- /package/dist/models/{create-lookup-response.js → async-lookup-request.js} +0 -0
- /package/dist/models/{lookup-request.js → create-async-bulk-lookup-response-data.js} +0 -0
- /package/dist/models/{lookup-status.js → create-async-bulk-lookup-response.js} +0 -0
- /package/dist/models/{tn-lookup-request-error.js → create-sync-lookup-response-data.js} +0 -0
|
@@ -12,106 +12,136 @@
|
|
|
12
12
|
import type { Configuration } from '../configuration';
|
|
13
13
|
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
|
|
14
14
|
import { type RequestArgs, BaseAPI } from '../base';
|
|
15
|
-
import type {
|
|
16
|
-
import type {
|
|
17
|
-
import type {
|
|
15
|
+
import type { AsyncLookupRequest } from '../models';
|
|
16
|
+
import type { CreateAsyncBulkLookupResponse } from '../models';
|
|
17
|
+
import type { CreateSyncLookupResponse } from '../models';
|
|
18
|
+
import type { GetAsyncBulkLookupResponse } from '../models';
|
|
19
|
+
import type { SyncLookupRequest } from '../models';
|
|
18
20
|
/**
|
|
19
21
|
* PhoneNumberLookupApi - axios parameter creator
|
|
20
|
-
* @export
|
|
21
22
|
*/
|
|
22
23
|
export declare const PhoneNumberLookupApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
23
24
|
/**
|
|
24
|
-
*
|
|
25
|
-
* @summary Create Lookup
|
|
26
|
-
* @param {string} accountId
|
|
27
|
-
* @param {
|
|
25
|
+
* Creates an asynchronous bulk phone number lookup request. Maximum of 15,000 telephone numbers per request. Use the [Get Asynchronous Bulk Number Lookup](#tag/Phone-Number-Lookup/operation/getAsyncBulkLookup) endpoint to check the status of the request and view the results.
|
|
26
|
+
* @summary Create Asynchronous Bulk Number Lookup
|
|
27
|
+
* @param {string} accountId
|
|
28
|
+
* @param {AsyncLookupRequest} asyncLookupRequest Asynchronous bulk phone number lookup request.
|
|
28
29
|
* @param {*} [options] Override http request option.
|
|
29
30
|
* @throws {RequiredError}
|
|
30
31
|
*/
|
|
31
|
-
|
|
32
|
+
createAsyncBulkLookup: (accountId: string, asyncLookupRequest: AsyncLookupRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
32
33
|
/**
|
|
33
|
-
*
|
|
34
|
-
* @summary
|
|
35
|
-
* @param {string} accountId
|
|
36
|
-
* @param {
|
|
34
|
+
* Creates a synchronous phone number lookup request. Maximum of 100 telephone numbers per request.
|
|
35
|
+
* @summary Create Synchronous Number Lookup
|
|
36
|
+
* @param {string} accountId
|
|
37
|
+
* @param {SyncLookupRequest} syncLookupRequest Synchronous phone number lookup request.
|
|
37
38
|
* @param {*} [options] Override http request option.
|
|
38
39
|
* @throws {RequiredError}
|
|
39
40
|
*/
|
|
40
|
-
|
|
41
|
+
createSyncLookup: (accountId: string, syncLookupRequest: SyncLookupRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
42
|
+
/**
|
|
43
|
+
* Get an existing [Asynchronous Bulk Number Lookup](#tag/Phone-Number-Lookup/operation/createAsyncBulkLookup). Use this endpoint to check the status of the request and view the results.
|
|
44
|
+
* @summary Get Asynchronous Bulk Number Lookup
|
|
45
|
+
* @param {string} accountId
|
|
46
|
+
* @param {string} requestId
|
|
47
|
+
* @param {*} [options] Override http request option.
|
|
48
|
+
* @throws {RequiredError}
|
|
49
|
+
*/
|
|
50
|
+
getAsyncBulkLookup: (accountId: string, requestId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
41
51
|
};
|
|
42
52
|
/**
|
|
43
53
|
* PhoneNumberLookupApi - functional programming interface
|
|
44
|
-
* @export
|
|
45
54
|
*/
|
|
46
55
|
export declare const PhoneNumberLookupApiFp: (configuration?: Configuration) => {
|
|
47
56
|
/**
|
|
48
|
-
*
|
|
49
|
-
* @summary Create Lookup
|
|
50
|
-
* @param {string} accountId
|
|
51
|
-
* @param {
|
|
57
|
+
* Creates an asynchronous bulk phone number lookup request. Maximum of 15,000 telephone numbers per request. Use the [Get Asynchronous Bulk Number Lookup](#tag/Phone-Number-Lookup/operation/getAsyncBulkLookup) endpoint to check the status of the request and view the results.
|
|
58
|
+
* @summary Create Asynchronous Bulk Number Lookup
|
|
59
|
+
* @param {string} accountId
|
|
60
|
+
* @param {AsyncLookupRequest} asyncLookupRequest Asynchronous bulk phone number lookup request.
|
|
61
|
+
* @param {*} [options] Override http request option.
|
|
62
|
+
* @throws {RequiredError}
|
|
63
|
+
*/
|
|
64
|
+
createAsyncBulkLookup(accountId: string, asyncLookupRequest: AsyncLookupRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateAsyncBulkLookupResponse>>;
|
|
65
|
+
/**
|
|
66
|
+
* Creates a synchronous phone number lookup request. Maximum of 100 telephone numbers per request.
|
|
67
|
+
* @summary Create Synchronous Number Lookup
|
|
68
|
+
* @param {string} accountId
|
|
69
|
+
* @param {SyncLookupRequest} syncLookupRequest Synchronous phone number lookup request.
|
|
52
70
|
* @param {*} [options] Override http request option.
|
|
53
71
|
* @throws {RequiredError}
|
|
54
72
|
*/
|
|
55
|
-
|
|
73
|
+
createSyncLookup(accountId: string, syncLookupRequest: SyncLookupRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateSyncLookupResponse>>;
|
|
56
74
|
/**
|
|
57
|
-
* Get an existing
|
|
58
|
-
* @summary Get
|
|
59
|
-
* @param {string} accountId
|
|
60
|
-
* @param {string} requestId
|
|
75
|
+
* Get an existing [Asynchronous Bulk Number Lookup](#tag/Phone-Number-Lookup/operation/createAsyncBulkLookup). Use this endpoint to check the status of the request and view the results.
|
|
76
|
+
* @summary Get Asynchronous Bulk Number Lookup
|
|
77
|
+
* @param {string} accountId
|
|
78
|
+
* @param {string} requestId
|
|
61
79
|
* @param {*} [options] Override http request option.
|
|
62
80
|
* @throws {RequiredError}
|
|
63
81
|
*/
|
|
64
|
-
|
|
82
|
+
getAsyncBulkLookup(accountId: string, requestId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAsyncBulkLookupResponse>>;
|
|
65
83
|
};
|
|
66
84
|
/**
|
|
67
85
|
* PhoneNumberLookupApi - factory interface
|
|
68
|
-
* @export
|
|
69
86
|
*/
|
|
70
87
|
export declare const PhoneNumberLookupApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
71
88
|
/**
|
|
72
|
-
*
|
|
73
|
-
* @summary Create Lookup
|
|
74
|
-
* @param {string} accountId
|
|
75
|
-
* @param {
|
|
89
|
+
* Creates an asynchronous bulk phone number lookup request. Maximum of 15,000 telephone numbers per request. Use the [Get Asynchronous Bulk Number Lookup](#tag/Phone-Number-Lookup/operation/getAsyncBulkLookup) endpoint to check the status of the request and view the results.
|
|
90
|
+
* @summary Create Asynchronous Bulk Number Lookup
|
|
91
|
+
* @param {string} accountId
|
|
92
|
+
* @param {AsyncLookupRequest} asyncLookupRequest Asynchronous bulk phone number lookup request.
|
|
76
93
|
* @param {*} [options] Override http request option.
|
|
77
94
|
* @throws {RequiredError}
|
|
78
95
|
*/
|
|
79
|
-
|
|
96
|
+
createAsyncBulkLookup(accountId: string, asyncLookupRequest: AsyncLookupRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateAsyncBulkLookupResponse>;
|
|
80
97
|
/**
|
|
81
|
-
*
|
|
82
|
-
* @summary
|
|
83
|
-
* @param {string} accountId
|
|
84
|
-
* @param {
|
|
98
|
+
* Creates a synchronous phone number lookup request. Maximum of 100 telephone numbers per request.
|
|
99
|
+
* @summary Create Synchronous Number Lookup
|
|
100
|
+
* @param {string} accountId
|
|
101
|
+
* @param {SyncLookupRequest} syncLookupRequest Synchronous phone number lookup request.
|
|
85
102
|
* @param {*} [options] Override http request option.
|
|
86
103
|
* @throws {RequiredError}
|
|
87
104
|
*/
|
|
88
|
-
|
|
105
|
+
createSyncLookup(accountId: string, syncLookupRequest: SyncLookupRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateSyncLookupResponse>;
|
|
106
|
+
/**
|
|
107
|
+
* Get an existing [Asynchronous Bulk Number Lookup](#tag/Phone-Number-Lookup/operation/createAsyncBulkLookup). Use this endpoint to check the status of the request and view the results.
|
|
108
|
+
* @summary Get Asynchronous Bulk Number Lookup
|
|
109
|
+
* @param {string} accountId
|
|
110
|
+
* @param {string} requestId
|
|
111
|
+
* @param {*} [options] Override http request option.
|
|
112
|
+
* @throws {RequiredError}
|
|
113
|
+
*/
|
|
114
|
+
getAsyncBulkLookup(accountId: string, requestId: string, options?: RawAxiosRequestConfig): AxiosPromise<GetAsyncBulkLookupResponse>;
|
|
89
115
|
};
|
|
90
116
|
/**
|
|
91
117
|
* PhoneNumberLookupApi - object-oriented interface
|
|
92
|
-
* @export
|
|
93
|
-
* @class PhoneNumberLookupApi
|
|
94
|
-
* @extends {BaseAPI}
|
|
95
118
|
*/
|
|
96
119
|
export declare class PhoneNumberLookupApi extends BaseAPI {
|
|
97
120
|
/**
|
|
98
|
-
*
|
|
99
|
-
* @summary Create Lookup
|
|
100
|
-
* @param {string} accountId
|
|
101
|
-
* @param {
|
|
121
|
+
* Creates an asynchronous bulk phone number lookup request. Maximum of 15,000 telephone numbers per request. Use the [Get Asynchronous Bulk Number Lookup](#tag/Phone-Number-Lookup/operation/getAsyncBulkLookup) endpoint to check the status of the request and view the results.
|
|
122
|
+
* @summary Create Asynchronous Bulk Number Lookup
|
|
123
|
+
* @param {string} accountId
|
|
124
|
+
* @param {AsyncLookupRequest} asyncLookupRequest Asynchronous bulk phone number lookup request.
|
|
125
|
+
* @param {*} [options] Override http request option.
|
|
126
|
+
* @throws {RequiredError}
|
|
127
|
+
*/
|
|
128
|
+
createAsyncBulkLookup(accountId: string, asyncLookupRequest: AsyncLookupRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateAsyncBulkLookupResponse, any, {}>>;
|
|
129
|
+
/**
|
|
130
|
+
* Creates a synchronous phone number lookup request. Maximum of 100 telephone numbers per request.
|
|
131
|
+
* @summary Create Synchronous Number Lookup
|
|
132
|
+
* @param {string} accountId
|
|
133
|
+
* @param {SyncLookupRequest} syncLookupRequest Synchronous phone number lookup request.
|
|
102
134
|
* @param {*} [options] Override http request option.
|
|
103
135
|
* @throws {RequiredError}
|
|
104
|
-
* @memberof PhoneNumberLookupApi
|
|
105
136
|
*/
|
|
106
|
-
|
|
137
|
+
createSyncLookup(accountId: string, syncLookupRequest: SyncLookupRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateSyncLookupResponse, any, {}>>;
|
|
107
138
|
/**
|
|
108
|
-
* Get an existing
|
|
109
|
-
* @summary Get
|
|
110
|
-
* @param {string} accountId
|
|
111
|
-
* @param {string} requestId
|
|
139
|
+
* Get an existing [Asynchronous Bulk Number Lookup](#tag/Phone-Number-Lookup/operation/createAsyncBulkLookup). Use this endpoint to check the status of the request and view the results.
|
|
140
|
+
* @summary Get Asynchronous Bulk Number Lookup
|
|
141
|
+
* @param {string} accountId
|
|
142
|
+
* @param {string} requestId
|
|
112
143
|
* @param {*} [options] Override http request option.
|
|
113
144
|
* @throws {RequiredError}
|
|
114
|
-
* @memberof PhoneNumberLookupApi
|
|
115
145
|
*/
|
|
116
|
-
|
|
146
|
+
getAsyncBulkLookup(accountId: string, requestId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GetAsyncBulkLookupResponse, any, {}>>;
|
|
117
147
|
}
|
|
@@ -93,33 +93,32 @@ var common_1 = require("../common");
|
|
|
93
93
|
var base_1 = require("../base");
|
|
94
94
|
/**
|
|
95
95
|
* PhoneNumberLookupApi - axios parameter creator
|
|
96
|
-
* @export
|
|
97
96
|
*/
|
|
98
97
|
var PhoneNumberLookupApiAxiosParamCreator = function (configuration) {
|
|
99
98
|
var _this = this;
|
|
100
99
|
return {
|
|
101
100
|
/**
|
|
102
|
-
*
|
|
103
|
-
* @summary Create Lookup
|
|
104
|
-
* @param {string} accountId
|
|
105
|
-
* @param {
|
|
101
|
+
* Creates an asynchronous bulk phone number lookup request. Maximum of 15,000 telephone numbers per request. Use the [Get Asynchronous Bulk Number Lookup](#tag/Phone-Number-Lookup/operation/getAsyncBulkLookup) endpoint to check the status of the request and view the results.
|
|
102
|
+
* @summary Create Asynchronous Bulk Number Lookup
|
|
103
|
+
* @param {string} accountId
|
|
104
|
+
* @param {AsyncLookupRequest} asyncLookupRequest Asynchronous bulk phone number lookup request.
|
|
106
105
|
* @param {*} [options] Override http request option.
|
|
107
106
|
* @throws {RequiredError}
|
|
108
107
|
*/
|
|
109
|
-
|
|
108
|
+
createAsyncBulkLookup: function (accountId_1, asyncLookupRequest_1) {
|
|
110
109
|
var args_1 = [];
|
|
111
110
|
for (var _i = 2; _i < arguments.length; _i++) {
|
|
112
111
|
args_1[_i - 2] = arguments[_i];
|
|
113
112
|
}
|
|
114
|
-
return __awaiter(_this, __spreadArray([accountId_1,
|
|
113
|
+
return __awaiter(_this, __spreadArray([accountId_1, asyncLookupRequest_1], args_1, true), void 0, function (accountId, asyncLookupRequest, options) {
|
|
115
114
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
116
115
|
if (options === void 0) { options = {}; }
|
|
117
116
|
return __generator(this, function (_a) {
|
|
118
117
|
// verify required parameter 'accountId' is not null or undefined
|
|
119
|
-
(0, common_1.assertParamExists)('
|
|
120
|
-
// verify required parameter '
|
|
121
|
-
(0, common_1.assertParamExists)('
|
|
122
|
-
localVarPath = "/accounts/{accountId}/
|
|
118
|
+
(0, common_1.assertParamExists)('createAsyncBulkLookup', 'accountId', accountId);
|
|
119
|
+
// verify required parameter 'asyncLookupRequest' is not null or undefined
|
|
120
|
+
(0, common_1.assertParamExists)('createAsyncBulkLookup', 'asyncLookupRequest', asyncLookupRequest);
|
|
121
|
+
localVarPath = "/accounts/{accountId}/phoneNumberLookup/bulk"
|
|
123
122
|
.replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)));
|
|
124
123
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
125
124
|
if (configuration) {
|
|
@@ -135,7 +134,7 @@ var PhoneNumberLookupApiAxiosParamCreator = function (configuration) {
|
|
|
135
134
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
136
135
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
137
136
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
138
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
137
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(asyncLookupRequest, localVarRequestOptions, configuration);
|
|
139
138
|
return [2 /*return*/, {
|
|
140
139
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
141
140
|
options: localVarRequestOptions,
|
|
@@ -144,14 +143,59 @@ var PhoneNumberLookupApiAxiosParamCreator = function (configuration) {
|
|
|
144
143
|
});
|
|
145
144
|
},
|
|
146
145
|
/**
|
|
147
|
-
*
|
|
148
|
-
* @summary
|
|
149
|
-
* @param {string} accountId
|
|
150
|
-
* @param {
|
|
146
|
+
* Creates a synchronous phone number lookup request. Maximum of 100 telephone numbers per request.
|
|
147
|
+
* @summary Create Synchronous Number Lookup
|
|
148
|
+
* @param {string} accountId
|
|
149
|
+
* @param {SyncLookupRequest} syncLookupRequest Synchronous phone number lookup request.
|
|
151
150
|
* @param {*} [options] Override http request option.
|
|
152
151
|
* @throws {RequiredError}
|
|
153
152
|
*/
|
|
154
|
-
|
|
153
|
+
createSyncLookup: function (accountId_1, syncLookupRequest_1) {
|
|
154
|
+
var args_1 = [];
|
|
155
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
156
|
+
args_1[_i - 2] = arguments[_i];
|
|
157
|
+
}
|
|
158
|
+
return __awaiter(_this, __spreadArray([accountId_1, syncLookupRequest_1], args_1, true), void 0, function (accountId, syncLookupRequest, options) {
|
|
159
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
160
|
+
if (options === void 0) { options = {}; }
|
|
161
|
+
return __generator(this, function (_a) {
|
|
162
|
+
// verify required parameter 'accountId' is not null or undefined
|
|
163
|
+
(0, common_1.assertParamExists)('createSyncLookup', 'accountId', accountId);
|
|
164
|
+
// verify required parameter 'syncLookupRequest' is not null or undefined
|
|
165
|
+
(0, common_1.assertParamExists)('createSyncLookup', 'syncLookupRequest', syncLookupRequest);
|
|
166
|
+
localVarPath = "/accounts/{accountId}/phoneNumberLookup"
|
|
167
|
+
.replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)));
|
|
168
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
169
|
+
if (configuration) {
|
|
170
|
+
baseOptions = configuration.baseOptions;
|
|
171
|
+
}
|
|
172
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
173
|
+
localVarHeaderParameter = {};
|
|
174
|
+
localVarQueryParameter = {};
|
|
175
|
+
// authentication Basic required
|
|
176
|
+
// http basic authentication required
|
|
177
|
+
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
178
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
179
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
180
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
181
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
182
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(syncLookupRequest, localVarRequestOptions, configuration);
|
|
183
|
+
return [2 /*return*/, {
|
|
184
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
185
|
+
options: localVarRequestOptions,
|
|
186
|
+
}];
|
|
187
|
+
});
|
|
188
|
+
});
|
|
189
|
+
},
|
|
190
|
+
/**
|
|
191
|
+
* Get an existing [Asynchronous Bulk Number Lookup](#tag/Phone-Number-Lookup/operation/createAsyncBulkLookup). Use this endpoint to check the status of the request and view the results.
|
|
192
|
+
* @summary Get Asynchronous Bulk Number Lookup
|
|
193
|
+
* @param {string} accountId
|
|
194
|
+
* @param {string} requestId
|
|
195
|
+
* @param {*} [options] Override http request option.
|
|
196
|
+
* @throws {RequiredError}
|
|
197
|
+
*/
|
|
198
|
+
getAsyncBulkLookup: function (accountId_1, requestId_1) {
|
|
155
199
|
var args_1 = [];
|
|
156
200
|
for (var _i = 2; _i < arguments.length; _i++) {
|
|
157
201
|
args_1[_i - 2] = arguments[_i];
|
|
@@ -161,10 +205,10 @@ var PhoneNumberLookupApiAxiosParamCreator = function (configuration) {
|
|
|
161
205
|
if (options === void 0) { options = {}; }
|
|
162
206
|
return __generator(this, function (_a) {
|
|
163
207
|
// verify required parameter 'accountId' is not null or undefined
|
|
164
|
-
(0, common_1.assertParamExists)('
|
|
208
|
+
(0, common_1.assertParamExists)('getAsyncBulkLookup', 'accountId', accountId);
|
|
165
209
|
// verify required parameter 'requestId' is not null or undefined
|
|
166
|
-
(0, common_1.assertParamExists)('
|
|
167
|
-
localVarPath = "/accounts/{accountId}/
|
|
210
|
+
(0, common_1.assertParamExists)('getAsyncBulkLookup', 'requestId', requestId);
|
|
211
|
+
localVarPath = "/accounts/{accountId}/phoneNumberLookup/bulk/{requestId}"
|
|
168
212
|
.replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)))
|
|
169
213
|
.replace("{".concat("requestId", "}"), encodeURIComponent(String(requestId)));
|
|
170
214
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -192,54 +236,77 @@ var PhoneNumberLookupApiAxiosParamCreator = function (configuration) {
|
|
|
192
236
|
exports.PhoneNumberLookupApiAxiosParamCreator = PhoneNumberLookupApiAxiosParamCreator;
|
|
193
237
|
/**
|
|
194
238
|
* PhoneNumberLookupApi - functional programming interface
|
|
195
|
-
* @export
|
|
196
239
|
*/
|
|
197
240
|
var PhoneNumberLookupApiFp = function (configuration) {
|
|
198
241
|
var localVarAxiosParamCreator = (0, exports.PhoneNumberLookupApiAxiosParamCreator)(configuration);
|
|
199
242
|
return {
|
|
200
243
|
/**
|
|
201
|
-
*
|
|
202
|
-
* @summary Create Lookup
|
|
203
|
-
* @param {string} accountId
|
|
204
|
-
* @param {
|
|
244
|
+
* Creates an asynchronous bulk phone number lookup request. Maximum of 15,000 telephone numbers per request. Use the [Get Asynchronous Bulk Number Lookup](#tag/Phone-Number-Lookup/operation/getAsyncBulkLookup) endpoint to check the status of the request and view the results.
|
|
245
|
+
* @summary Create Asynchronous Bulk Number Lookup
|
|
246
|
+
* @param {string} accountId
|
|
247
|
+
* @param {AsyncLookupRequest} asyncLookupRequest Asynchronous bulk phone number lookup request.
|
|
205
248
|
* @param {*} [options] Override http request option.
|
|
206
249
|
* @throws {RequiredError}
|
|
207
250
|
*/
|
|
208
|
-
|
|
251
|
+
createAsyncBulkLookup: function (accountId, asyncLookupRequest, options) {
|
|
209
252
|
return __awaiter(this, void 0, void 0, function () {
|
|
210
253
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
211
254
|
var _a, _b, _c;
|
|
212
255
|
return __generator(this, function (_d) {
|
|
213
256
|
switch (_d.label) {
|
|
214
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
257
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createAsyncBulkLookup(accountId, asyncLookupRequest, options)];
|
|
215
258
|
case 1:
|
|
216
259
|
localVarAxiosArgs = _d.sent();
|
|
217
260
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
218
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PhoneNumberLookupApi.
|
|
261
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PhoneNumberLookupApi.createAsyncBulkLookup']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
219
262
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
220
263
|
}
|
|
221
264
|
});
|
|
222
265
|
});
|
|
223
266
|
},
|
|
224
267
|
/**
|
|
225
|
-
*
|
|
226
|
-
* @summary
|
|
227
|
-
* @param {string} accountId
|
|
228
|
-
* @param {
|
|
268
|
+
* Creates a synchronous phone number lookup request. Maximum of 100 telephone numbers per request.
|
|
269
|
+
* @summary Create Synchronous Number Lookup
|
|
270
|
+
* @param {string} accountId
|
|
271
|
+
* @param {SyncLookupRequest} syncLookupRequest Synchronous phone number lookup request.
|
|
229
272
|
* @param {*} [options] Override http request option.
|
|
230
273
|
* @throws {RequiredError}
|
|
231
274
|
*/
|
|
232
|
-
|
|
275
|
+
createSyncLookup: function (accountId, syncLookupRequest, options) {
|
|
233
276
|
return __awaiter(this, void 0, void 0, function () {
|
|
234
277
|
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
235
278
|
var _a, _b, _c;
|
|
236
279
|
return __generator(this, function (_d) {
|
|
237
280
|
switch (_d.label) {
|
|
238
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
281
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createSyncLookup(accountId, syncLookupRequest, options)];
|
|
239
282
|
case 1:
|
|
240
283
|
localVarAxiosArgs = _d.sent();
|
|
241
284
|
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
242
|
-
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PhoneNumberLookupApi.
|
|
285
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PhoneNumberLookupApi.createSyncLookup']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
286
|
+
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
287
|
+
}
|
|
288
|
+
});
|
|
289
|
+
});
|
|
290
|
+
},
|
|
291
|
+
/**
|
|
292
|
+
* Get an existing [Asynchronous Bulk Number Lookup](#tag/Phone-Number-Lookup/operation/createAsyncBulkLookup). Use this endpoint to check the status of the request and view the results.
|
|
293
|
+
* @summary Get Asynchronous Bulk Number Lookup
|
|
294
|
+
* @param {string} accountId
|
|
295
|
+
* @param {string} requestId
|
|
296
|
+
* @param {*} [options] Override http request option.
|
|
297
|
+
* @throws {RequiredError}
|
|
298
|
+
*/
|
|
299
|
+
getAsyncBulkLookup: function (accountId, requestId, options) {
|
|
300
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
301
|
+
var localVarAxiosArgs, localVarOperationServerIndex, localVarOperationServerBasePath;
|
|
302
|
+
var _a, _b, _c;
|
|
303
|
+
return __generator(this, function (_d) {
|
|
304
|
+
switch (_d.label) {
|
|
305
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getAsyncBulkLookup(accountId, requestId, options)];
|
|
306
|
+
case 1:
|
|
307
|
+
localVarAxiosArgs = _d.sent();
|
|
308
|
+
localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
309
|
+
localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PhoneNumberLookupApi.getAsyncBulkLookup']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
243
310
|
return [2 /*return*/, function (axios, basePath) { return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }];
|
|
244
311
|
}
|
|
245
312
|
});
|
|
@@ -250,41 +317,48 @@ var PhoneNumberLookupApiFp = function (configuration) {
|
|
|
250
317
|
exports.PhoneNumberLookupApiFp = PhoneNumberLookupApiFp;
|
|
251
318
|
/**
|
|
252
319
|
* PhoneNumberLookupApi - factory interface
|
|
253
|
-
* @export
|
|
254
320
|
*/
|
|
255
321
|
var PhoneNumberLookupApiFactory = function (configuration, basePath, axios) {
|
|
256
322
|
var localVarFp = (0, exports.PhoneNumberLookupApiFp)(configuration);
|
|
257
323
|
return {
|
|
258
324
|
/**
|
|
259
|
-
*
|
|
260
|
-
* @summary Create Lookup
|
|
261
|
-
* @param {string} accountId
|
|
262
|
-
* @param {
|
|
325
|
+
* Creates an asynchronous bulk phone number lookup request. Maximum of 15,000 telephone numbers per request. Use the [Get Asynchronous Bulk Number Lookup](#tag/Phone-Number-Lookup/operation/getAsyncBulkLookup) endpoint to check the status of the request and view the results.
|
|
326
|
+
* @summary Create Asynchronous Bulk Number Lookup
|
|
327
|
+
* @param {string} accountId
|
|
328
|
+
* @param {AsyncLookupRequest} asyncLookupRequest Asynchronous bulk phone number lookup request.
|
|
263
329
|
* @param {*} [options] Override http request option.
|
|
264
330
|
* @throws {RequiredError}
|
|
265
331
|
*/
|
|
266
|
-
|
|
267
|
-
return localVarFp.
|
|
332
|
+
createAsyncBulkLookup: function (accountId, asyncLookupRequest, options) {
|
|
333
|
+
return localVarFp.createAsyncBulkLookup(accountId, asyncLookupRequest, options).then(function (request) { return request(axios, basePath); });
|
|
268
334
|
},
|
|
269
335
|
/**
|
|
270
|
-
*
|
|
271
|
-
* @summary
|
|
272
|
-
* @param {string} accountId
|
|
273
|
-
* @param {
|
|
336
|
+
* Creates a synchronous phone number lookup request. Maximum of 100 telephone numbers per request.
|
|
337
|
+
* @summary Create Synchronous Number Lookup
|
|
338
|
+
* @param {string} accountId
|
|
339
|
+
* @param {SyncLookupRequest} syncLookupRequest Synchronous phone number lookup request.
|
|
274
340
|
* @param {*} [options] Override http request option.
|
|
275
341
|
* @throws {RequiredError}
|
|
276
342
|
*/
|
|
277
|
-
|
|
278
|
-
return localVarFp.
|
|
343
|
+
createSyncLookup: function (accountId, syncLookupRequest, options) {
|
|
344
|
+
return localVarFp.createSyncLookup(accountId, syncLookupRequest, options).then(function (request) { return request(axios, basePath); });
|
|
345
|
+
},
|
|
346
|
+
/**
|
|
347
|
+
* Get an existing [Asynchronous Bulk Number Lookup](#tag/Phone-Number-Lookup/operation/createAsyncBulkLookup). Use this endpoint to check the status of the request and view the results.
|
|
348
|
+
* @summary Get Asynchronous Bulk Number Lookup
|
|
349
|
+
* @param {string} accountId
|
|
350
|
+
* @param {string} requestId
|
|
351
|
+
* @param {*} [options] Override http request option.
|
|
352
|
+
* @throws {RequiredError}
|
|
353
|
+
*/
|
|
354
|
+
getAsyncBulkLookup: function (accountId, requestId, options) {
|
|
355
|
+
return localVarFp.getAsyncBulkLookup(accountId, requestId, options).then(function (request) { return request(axios, basePath); });
|
|
279
356
|
},
|
|
280
357
|
};
|
|
281
358
|
};
|
|
282
359
|
exports.PhoneNumberLookupApiFactory = PhoneNumberLookupApiFactory;
|
|
283
360
|
/**
|
|
284
361
|
* PhoneNumberLookupApi - object-oriented interface
|
|
285
|
-
* @export
|
|
286
|
-
* @class PhoneNumberLookupApi
|
|
287
|
-
* @extends {BaseAPI}
|
|
288
362
|
*/
|
|
289
363
|
var PhoneNumberLookupApi = /** @class */ (function (_super) {
|
|
290
364
|
__extends(PhoneNumberLookupApi, _super);
|
|
@@ -292,30 +366,40 @@ var PhoneNumberLookupApi = /** @class */ (function (_super) {
|
|
|
292
366
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
293
367
|
}
|
|
294
368
|
/**
|
|
295
|
-
*
|
|
296
|
-
* @summary Create Lookup
|
|
297
|
-
* @param {string} accountId
|
|
298
|
-
* @param {
|
|
369
|
+
* Creates an asynchronous bulk phone number lookup request. Maximum of 15,000 telephone numbers per request. Use the [Get Asynchronous Bulk Number Lookup](#tag/Phone-Number-Lookup/operation/getAsyncBulkLookup) endpoint to check the status of the request and view the results.
|
|
370
|
+
* @summary Create Asynchronous Bulk Number Lookup
|
|
371
|
+
* @param {string} accountId
|
|
372
|
+
* @param {AsyncLookupRequest} asyncLookupRequest Asynchronous bulk phone number lookup request.
|
|
373
|
+
* @param {*} [options] Override http request option.
|
|
374
|
+
* @throws {RequiredError}
|
|
375
|
+
*/
|
|
376
|
+
PhoneNumberLookupApi.prototype.createAsyncBulkLookup = function (accountId, asyncLookupRequest, options) {
|
|
377
|
+
var _this = this;
|
|
378
|
+
return (0, exports.PhoneNumberLookupApiFp)(this.configuration).createAsyncBulkLookup(accountId, asyncLookupRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
379
|
+
};
|
|
380
|
+
/**
|
|
381
|
+
* Creates a synchronous phone number lookup request. Maximum of 100 telephone numbers per request.
|
|
382
|
+
* @summary Create Synchronous Number Lookup
|
|
383
|
+
* @param {string} accountId
|
|
384
|
+
* @param {SyncLookupRequest} syncLookupRequest Synchronous phone number lookup request.
|
|
299
385
|
* @param {*} [options] Override http request option.
|
|
300
386
|
* @throws {RequiredError}
|
|
301
|
-
* @memberof PhoneNumberLookupApi
|
|
302
387
|
*/
|
|
303
|
-
PhoneNumberLookupApi.prototype.
|
|
388
|
+
PhoneNumberLookupApi.prototype.createSyncLookup = function (accountId, syncLookupRequest, options) {
|
|
304
389
|
var _this = this;
|
|
305
|
-
return (0, exports.PhoneNumberLookupApiFp)(this.configuration).
|
|
390
|
+
return (0, exports.PhoneNumberLookupApiFp)(this.configuration).createSyncLookup(accountId, syncLookupRequest, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
306
391
|
};
|
|
307
392
|
/**
|
|
308
|
-
* Get an existing
|
|
309
|
-
* @summary Get
|
|
310
|
-
* @param {string} accountId
|
|
311
|
-
* @param {string} requestId
|
|
393
|
+
* Get an existing [Asynchronous Bulk Number Lookup](#tag/Phone-Number-Lookup/operation/createAsyncBulkLookup). Use this endpoint to check the status of the request and view the results.
|
|
394
|
+
* @summary Get Asynchronous Bulk Number Lookup
|
|
395
|
+
* @param {string} accountId
|
|
396
|
+
* @param {string} requestId
|
|
312
397
|
* @param {*} [options] Override http request option.
|
|
313
398
|
* @throws {RequiredError}
|
|
314
|
-
* @memberof PhoneNumberLookupApi
|
|
315
399
|
*/
|
|
316
|
-
PhoneNumberLookupApi.prototype.
|
|
400
|
+
PhoneNumberLookupApi.prototype.getAsyncBulkLookup = function (accountId, requestId, options) {
|
|
317
401
|
var _this = this;
|
|
318
|
-
return (0, exports.PhoneNumberLookupApiFp)(this.configuration).
|
|
402
|
+
return (0, exports.PhoneNumberLookupApiFp)(this.configuration).getAsyncBulkLookup(accountId, requestId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
319
403
|
};
|
|
320
404
|
return PhoneNumberLookupApi;
|
|
321
405
|
}(base_1.BaseAPI));
|