@sinch/voice 0.0.1 → 0.0.3
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/README.md +27 -21
- package/dist/models/v1/assign-numbers/assign-numbers.d.ts +1 -8
- package/dist/models/v1/assign-numbers/assign-numbers.js +0 -6
- package/dist/models/v1/assign-numbers/assign-numbers.js.map +1 -1
- package/dist/models/v1/call-header/call-header.d.ts +0 -6
- package/dist/models/v1/call-header/call-header.js +0 -6
- package/dist/models/v1/call-header/call-header.js.map +1 -1
- package/dist/models/v1/callout-response/callout-response.d.ts +7 -0
- package/dist/models/v1/callout-response/callout-response.js +3 -0
- package/dist/models/v1/callout-response/callout-response.js.map +1 -0
- package/dist/models/v1/callout-response/index.d.ts +1 -0
- package/dist/models/v1/callout-response/index.js.map +1 -0
- package/dist/models/v1/conference-callout-request/conference-callout-request.d.ts +3 -9
- package/dist/models/v1/conference-callout-request/conference-callout-request.js +0 -6
- package/dist/models/v1/conference-callout-request/conference-callout-request.js.map +1 -1
- package/dist/models/v1/{svaml-action-connect-conf-conference-dtmf-options/svaml-action-connect-conf-conference-dtmf-options.d.ts → conference-dtmf-options/conference-dtmf-options.d.ts} +2 -8
- package/dist/models/v1/conference-dtmf-options/conference-dtmf-options.js +3 -0
- package/dist/models/v1/conference-dtmf-options/conference-dtmf-options.js.map +1 -0
- package/dist/models/v1/conference-dtmf-options/index.d.ts +1 -0
- package/dist/models/v1/conference-dtmf-options/index.js.map +1 -0
- package/dist/models/v1/custom-callout-request/custom-callout-request.d.ts +0 -6
- package/dist/models/v1/custom-callout-request/custom-callout-request.js +0 -6
- package/dist/models/v1/custom-callout-request/custom-callout-request.js.map +1 -1
- package/dist/models/v1/destination/destination.d.ts +1 -8
- package/dist/models/v1/destination/destination.js +0 -6
- package/dist/models/v1/destination/destination.js.map +1 -1
- package/dist/models/v1/enums.d.ts +3 -10
- package/dist/models/v1/get-call-information/get-call-information.d.ts +29 -0
- package/dist/models/v1/get-call-information/get-call-information.js +3 -0
- package/dist/models/v1/get-call-information/get-call-information.js.map +1 -0
- package/dist/models/v1/get-call-information/index.d.ts +1 -0
- package/dist/models/v1/get-call-information/index.js.map +1 -0
- package/dist/models/v1/get-callbacks/get-callbacks.d.ts +7 -8
- package/dist/models/v1/get-callbacks/get-callbacks.js +0 -6
- package/dist/models/v1/get-callbacks/get-callbacks.js.map +1 -1
- package/dist/models/v1/get-callbacks/index.d.ts +1 -1
- package/dist/models/v1/get-conference-info-response/get-conference-info-response.d.ts +11 -8
- package/dist/models/v1/get-conference-info-response/get-conference-info-response.js +0 -6
- package/dist/models/v1/get-conference-info-response/get-conference-info-response.js.map +1 -1
- package/dist/models/v1/get-conference-info-response/index.d.ts +1 -1
- package/dist/models/v1/helper.d.ts +85 -0
- package/dist/models/v1/helper.js +201 -0
- package/dist/models/v1/helper.js.map +1 -0
- package/dist/models/v1/index.d.ts +10 -49
- package/dist/models/v1/index.js +12 -49
- package/dist/models/v1/index.js.map +1 -1
- package/dist/models/v1/list-numbers-response/index.d.ts +1 -0
- package/dist/models/v1/list-numbers-response/index.js.map +1 -0
- package/dist/models/v1/{get-numbers-response-obj-numbers-inner/get-numbers-response-obj-numbers-inner.d.ts → list-numbers-response/list-numbers-response.d.ts} +6 -9
- package/dist/models/v1/list-numbers-response/list-numbers-response.js +3 -0
- package/dist/models/v1/list-numbers-response/list-numbers-response.js.map +1 -0
- package/dist/models/v1/manage-conference-participant-request/manage-conference-participant-request.d.ts +3 -10
- package/dist/models/v1/manage-conference-participant-request/manage-conference-participant-request.js +0 -6
- package/dist/models/v1/manage-conference-participant-request/manage-conference-participant-request.js.map +1 -1
- package/dist/models/v1/menu/menu.d.ts +0 -6
- package/dist/models/v1/menu/menu.js +0 -6
- package/dist/models/v1/menu/menu.js.map +1 -1
- package/dist/models/v1/{ace-request → mod-callbacks/ace-request}/ace-request.d.ts +10 -9
- package/dist/models/v1/mod-callbacks/ace-request/ace-request.js +3 -0
- package/dist/models/v1/mod-callbacks/ace-request/ace-request.js.map +1 -0
- package/dist/models/v1/mod-callbacks/ace-request/index.d.ts +1 -0
- package/dist/models/v1/mod-callbacks/ace-request/index.js.map +1 -0
- package/dist/models/v1/mod-callbacks/ace-response/ace-response.d.ts +9 -0
- package/dist/models/v1/mod-callbacks/ace-response/ace-response.js.map +1 -0
- package/dist/models/v1/mod-callbacks/ace-response/index.d.ts +1 -0
- package/dist/models/v1/mod-callbacks/ace-response/index.js.map +1 -0
- package/dist/models/v1/mod-callbacks/callback-response/callback-response.d.ts +4 -0
- package/dist/models/v1/mod-callbacks/callback-response/callback-response.js +3 -0
- package/dist/models/v1/mod-callbacks/callback-response/callback-response.js.map +1 -0
- package/dist/models/v1/mod-callbacks/callback-response/index.d.ts +1 -0
- package/dist/models/v1/mod-callbacks/callback-response/index.js.map +1 -0
- package/dist/models/v1/{dice-request → mod-callbacks/dice-request}/dice-request.d.ts +10 -17
- package/dist/models/v1/mod-callbacks/dice-request/dice-request.js +3 -0
- package/dist/models/v1/mod-callbacks/dice-request/dice-request.js.map +1 -0
- package/dist/models/v1/mod-callbacks/dice-request/index.js.map +1 -0
- package/dist/models/v1/{ice-request → mod-callbacks/ice-request}/ice-request.d.ts +7 -13
- package/dist/models/v1/mod-callbacks/ice-request/ice-request.js +3 -0
- package/dist/models/v1/mod-callbacks/ice-request/ice-request.js.map +1 -0
- package/dist/models/v1/mod-callbacks/ice-request/index.js.map +1 -0
- package/dist/models/v1/mod-callbacks/ice-response/ice-response.d.ts +9 -0
- package/dist/models/v1/mod-callbacks/ice-response/ice-response.js.map +1 -0
- package/dist/models/v1/mod-callbacks/ice-response/index.d.ts +1 -0
- package/dist/models/v1/mod-callbacks/ice-response/index.js.map +1 -0
- package/dist/models/v1/mod-callbacks/index.d.ts +10 -0
- package/dist/models/v1/mod-callbacks/index.js +27 -0
- package/dist/models/v1/mod-callbacks/index.js.map +1 -0
- package/dist/models/v1/mod-callbacks/notify-error-request/index.js.map +1 -0
- package/dist/models/v1/{notify-error-request → mod-callbacks/notify-error-request}/notify-error-request.d.ts +0 -6
- package/dist/models/v1/mod-callbacks/notify-error-request/notify-error-request.js +3 -0
- package/dist/models/v1/mod-callbacks/notify-error-request/notify-error-request.js.map +1 -0
- package/dist/models/v1/mod-callbacks/notify-request/index.js.map +1 -0
- package/dist/models/v1/mod-callbacks/notify-request/notify-request.d.ts +29 -0
- package/dist/models/v1/mod-callbacks/notify-request/notify-request.js +3 -0
- package/dist/models/v1/mod-callbacks/notify-request/notify-request.js.map +1 -0
- package/dist/models/v1/mod-callbacks/pie-request/index.d.ts +1 -0
- package/dist/models/v1/mod-callbacks/pie-request/index.js.map +1 -0
- package/dist/models/v1/{pie-request → mod-callbacks/pie-request}/pie-request.d.ts +12 -9
- package/dist/models/v1/mod-callbacks/pie-request/pie-request.js +3 -0
- package/dist/models/v1/mod-callbacks/pie-request/pie-request.js.map +1 -0
- package/dist/models/v1/mod-callbacks/pie-response/index.d.ts +1 -0
- package/dist/models/v1/mod-callbacks/pie-response/index.js.map +1 -0
- package/dist/models/v1/mod-callbacks/pie-response/pie-response.d.ts +12 -0
- package/dist/models/v1/mod-callbacks/pie-response/pie-response.js.map +1 -0
- package/dist/models/v1/mod-svaml/index.d.ts +17 -0
- package/dist/models/v1/mod-svaml/index.js +34 -0
- package/dist/models/v1/mod-svaml/index.js.map +1 -0
- package/dist/models/v1/mod-svaml/svaml-action/index.js.map +1 -0
- package/dist/models/v1/{svaml-action → mod-svaml/svaml-action}/svaml-action.d.ts +0 -6
- package/dist/models/v1/mod-svaml/svaml-action/svaml-action.js +3 -0
- package/dist/models/v1/mod-svaml/svaml-action/svaml-action.js.map +1 -0
- package/dist/models/v1/mod-svaml/svaml-action-connect-conf/index.d.ts +1 -0
- package/dist/models/v1/mod-svaml/svaml-action-connect-conf/index.js.map +1 -0
- package/dist/models/v1/{svaml-action-connect-conf → mod-svaml/svaml-action-connect-conf}/svaml-action-connect-conf.d.ts +6 -10
- package/dist/models/v1/mod-svaml/svaml-action-connect-conf/svaml-action-connect-conf.js +3 -0
- package/dist/models/v1/mod-svaml/svaml-action-connect-conf/svaml-action-connect-conf.js.map +1 -0
- package/dist/models/v1/mod-svaml/svaml-action-connect-mxp/index.d.ts +1 -0
- package/dist/models/v1/mod-svaml/svaml-action-connect-mxp/index.js.map +1 -0
- package/dist/models/v1/{svaml-action-connect-mxp → mod-svaml/svaml-action-connect-mxp}/svaml-action-connect-mxp.d.ts +6 -11
- package/dist/models/v1/mod-svaml/svaml-action-connect-mxp/svaml-action-connect-mxp.js +3 -0
- package/dist/models/v1/mod-svaml/svaml-action-connect-mxp/svaml-action-connect-mxp.js.map +1 -0
- package/dist/models/v1/mod-svaml/svaml-action-connect-pstn/index.d.ts +1 -0
- package/dist/models/v1/mod-svaml/svaml-action-connect-pstn/index.js.map +1 -0
- package/dist/models/v1/{svaml-action-connect-pstn → mod-svaml/svaml-action-connect-pstn}/svaml-action-connect-pstn.d.ts +12 -10
- package/dist/models/v1/mod-svaml/svaml-action-connect-pstn/svaml-action-connect-pstn.js +3 -0
- package/dist/models/v1/mod-svaml/svaml-action-connect-pstn/svaml-action-connect-pstn.js.map +1 -0
- package/dist/models/v1/mod-svaml/svaml-action-connect-sip/index.d.ts +1 -0
- package/dist/models/v1/mod-svaml/svaml-action-connect-sip/index.js.map +1 -0
- package/dist/models/v1/{svaml-action-connect-sip → mod-svaml/svaml-action-connect-sip}/svaml-action-connect-sip.d.ts +13 -12
- package/dist/models/v1/mod-svaml/svaml-action-connect-sip/svaml-action-connect-sip.js +3 -0
- package/dist/models/v1/mod-svaml/svaml-action-connect-sip/svaml-action-connect-sip.js.map +1 -0
- package/dist/models/v1/mod-svaml/svaml-action-continue/index.js.map +1 -0
- package/dist/models/v1/{svaml-action-continue → mod-svaml/svaml-action-continue}/svaml-action-continue.d.ts +0 -6
- package/dist/models/v1/mod-svaml/svaml-action-continue/svaml-action-continue.js +3 -0
- package/dist/models/v1/mod-svaml/svaml-action-continue/svaml-action-continue.js.map +1 -0
- package/dist/models/v1/mod-svaml/svaml-action-hangup/index.js.map +1 -0
- package/dist/models/v1/{svaml-action-hangup → mod-svaml/svaml-action-hangup}/svaml-action-hangup.d.ts +0 -6
- package/dist/models/v1/mod-svaml/svaml-action-hangup/svaml-action-hangup.js +3 -0
- package/dist/models/v1/mod-svaml/svaml-action-hangup/svaml-action-hangup.js.map +1 -0
- package/dist/models/v1/mod-svaml/svaml-action-park/index.d.ts +1 -0
- package/dist/models/v1/mod-svaml/svaml-action-park/index.js.map +1 -0
- package/dist/models/v1/{svaml-action-park → mod-svaml/svaml-action-park}/svaml-action-park.d.ts +3 -7
- package/dist/models/v1/mod-svaml/svaml-action-park/svaml-action-park.js +3 -0
- package/dist/models/v1/mod-svaml/svaml-action-park/svaml-action-park.js.map +1 -0
- package/dist/models/v1/mod-svaml/svaml-action-run-menu/index.d.ts +1 -0
- package/dist/models/v1/mod-svaml/svaml-action-run-menu/index.js.map +1 -0
- package/dist/models/v1/{svaml-action-run-menu → mod-svaml/svaml-action-run-menu}/svaml-action-run-menu.d.ts +4 -8
- package/dist/models/v1/mod-svaml/svaml-action-run-menu/svaml-action-run-menu.js +3 -0
- package/dist/models/v1/mod-svaml/svaml-action-run-menu/svaml-action-run-menu.js.map +1 -0
- package/dist/models/v1/mod-svaml/svaml-instruction/index.js.map +1 -0
- package/dist/models/v1/{svaml-instruction → mod-svaml/svaml-instruction}/svaml-instruction.d.ts +0 -6
- package/dist/models/v1/mod-svaml/svaml-instruction/svaml-instruction.js +3 -0
- package/dist/models/v1/mod-svaml/svaml-instruction/svaml-instruction.js.map +1 -0
- package/dist/models/v1/mod-svaml/svaml-instruction-answer/index.js.map +1 -0
- package/dist/models/v1/{svaml-instruction-answer → mod-svaml/svaml-instruction-answer}/svaml-instruction-answer.d.ts +0 -6
- package/dist/models/v1/mod-svaml/svaml-instruction-answer/svaml-instruction-answer.js +3 -0
- package/dist/models/v1/mod-svaml/svaml-instruction-answer/svaml-instruction-answer.js.map +1 -0
- package/dist/models/v1/mod-svaml/svaml-instruction-play-files/index.d.ts +1 -0
- package/dist/models/v1/mod-svaml/svaml-instruction-play-files/index.js.map +1 -0
- package/dist/models/v1/{svaml-instruction-play-files → mod-svaml/svaml-instruction-play-files}/svaml-instruction-play-files.d.ts +3 -7
- package/dist/models/v1/mod-svaml/svaml-instruction-play-files/svaml-instruction-play-files.js +3 -0
- package/dist/models/v1/mod-svaml/svaml-instruction-play-files/svaml-instruction-play-files.js.map +1 -0
- package/dist/models/v1/mod-svaml/svaml-instruction-say/index.d.ts +1 -0
- package/dist/models/v1/mod-svaml/svaml-instruction-say/index.js.map +1 -0
- package/dist/models/v1/{svaml-instruction-say → mod-svaml/svaml-instruction-say}/svaml-instruction-say.d.ts +3 -7
- package/dist/models/v1/mod-svaml/svaml-instruction-say/svaml-instruction-say.js +3 -0
- package/dist/models/v1/mod-svaml/svaml-instruction-say/svaml-instruction-say.js.map +1 -0
- package/dist/models/v1/mod-svaml/svaml-instruction-send-dtmf/index.d.ts +1 -0
- package/dist/models/v1/mod-svaml/svaml-instruction-send-dtmf/index.js.map +1 -0
- package/dist/models/v1/{svaml-instruction-send-dtmf → mod-svaml/svaml-instruction-send-dtmf}/svaml-instruction-send-dtmf.d.ts +1 -6
- package/dist/models/v1/mod-svaml/svaml-instruction-send-dtmf/svaml-instruction-send-dtmf.js +3 -0
- package/dist/models/v1/mod-svaml/svaml-instruction-send-dtmf/svaml-instruction-send-dtmf.js.map +1 -0
- package/dist/models/v1/mod-svaml/svaml-instruction-set-cookie/index.d.ts +1 -0
- package/dist/models/v1/mod-svaml/svaml-instruction-set-cookie/index.js.map +1 -0
- package/dist/models/v1/{svaml-instruction-set-cookie → mod-svaml/svaml-instruction-set-cookie}/svaml-instruction-set-cookie.d.ts +1 -6
- package/dist/models/v1/mod-svaml/svaml-instruction-set-cookie/svaml-instruction-set-cookie.js +3 -0
- package/dist/models/v1/mod-svaml/svaml-instruction-set-cookie/svaml-instruction-set-cookie.js.map +1 -0
- package/dist/models/v1/mod-svaml/svaml-instruction-start-recording/index.d.ts +1 -0
- package/dist/models/v1/mod-svaml/svaml-instruction-start-recording/index.js.map +1 -0
- package/dist/models/v1/{svaml-instruction-start-recording → mod-svaml/svaml-instruction-start-recording}/svaml-instruction-start-recording.d.ts +6 -7
- package/dist/models/v1/mod-svaml/svaml-instruction-start-recording/svaml-instruction-start-recording.js +3 -0
- package/dist/models/v1/mod-svaml/svaml-instruction-start-recording/svaml-instruction-start-recording.js.map +1 -0
- package/dist/models/v1/mod-svaml/svaml-instruction-stop-recording/index.js.map +1 -0
- package/dist/models/v1/{svaml-instruction-stop-recording → mod-svaml/svaml-instruction-stop-recording}/svaml-instruction-stop-recording.d.ts +0 -6
- package/dist/models/v1/mod-svaml/svaml-instruction-stop-recording/svaml-instruction-stop-recording.js +3 -0
- package/dist/models/v1/mod-svaml/svaml-instruction-stop-recording/svaml-instruction-stop-recording.js.map +1 -0
- package/dist/models/v1/option/option.d.ts +0 -6
- package/dist/models/v1/option/option.js +0 -6
- package/dist/models/v1/option/option.js.map +1 -1
- package/dist/models/v1/participant/index.d.ts +1 -0
- package/dist/models/v1/participant/index.js.map +1 -0
- package/dist/models/v1/participant/participant.d.ts +9 -0
- package/dist/models/v1/participant/participant.js +3 -0
- package/dist/models/v1/participant/participant.js.map +1 -0
- package/dist/models/v1/query-number-response/index.d.ts +1 -0
- package/dist/models/v1/query-number-response/index.js.map +1 -0
- package/dist/models/v1/query-number-response/query-number-response.d.ts +19 -0
- package/dist/models/v1/query-number-response/query-number-response.js +3 -0
- package/dist/models/v1/query-number-response/query-number-response.js.map +1 -0
- package/dist/models/v1/svaml-request-body/svaml-request-body.d.ts +1 -8
- package/dist/models/v1/svaml-request-body/svaml-request-body.js +0 -6
- package/dist/models/v1/svaml-request-body/svaml-request-body.js.map +1 -1
- package/dist/models/v1/tts-callout-request/tts-callout-request.d.ts +4 -10
- package/dist/models/v1/tts-callout-request/tts-callout-request.js +0 -6
- package/dist/models/v1/tts-callout-request/tts-callout-request.js.map +1 -1
- package/dist/models/v1/unassign-numbers/unassign-numbers.d.ts +1 -8
- package/dist/models/v1/unassign-numbers/unassign-numbers.js +0 -6
- package/dist/models/v1/unassign-numbers/unassign-numbers.js.map +1 -1
- package/dist/models/v1/update-callbacks/index.d.ts +1 -1
- package/dist/models/v1/update-callbacks/update-callbacks.d.ts +10 -8
- package/dist/models/v1/update-callbacks/update-callbacks.js +0 -6
- package/dist/models/v1/update-callbacks/update-callbacks.js.map +1 -1
- package/dist/models/v1/voice-error/voice-error.d.ts +0 -6
- package/dist/models/v1/voice-error/voice-error.js +0 -6
- package/dist/models/v1/voice-error/voice-error.js.map +1 -1
- package/dist/models/v1/voice-price/index.d.ts +1 -0
- package/dist/models/v1/voice-price/index.js.map +1 -0
- package/dist/models/v1/voice-price/voice-price.d.ts +6 -0
- package/dist/models/v1/voice-price/voice-price.js +3 -0
- package/dist/models/v1/voice-price/voice-price.js.map +1 -0
- package/dist/rest/v1/applications/applications-api.d.ts +5 -5
- package/dist/rest/v1/applications/applications-api.jest.fixture.d.ts +3 -3
- package/dist/rest/v1/applications/applications-api.jest.fixture.js +1 -1
- package/dist/rest/v1/applications/applications-api.jest.fixture.js.map +1 -1
- package/dist/rest/v1/applications/applications-api.js +3 -3
- package/dist/rest/v1/applications/applications-api.js.map +1 -1
- package/dist/rest/v1/callbacks/callbacks-webhook.d.ts +23 -1
- package/dist/rest/v1/callbacks/callbacks-webhook.js +49 -20
- package/dist/rest/v1/callbacks/callbacks-webhook.js.map +1 -1
- package/dist/rest/v1/callouts/callouts-api.d.ts +6 -6
- package/dist/rest/v1/callouts/callouts-api.jest.fixture.d.ts +4 -4
- package/dist/rest/v1/callouts/callouts-api.jest.fixture.js.map +1 -1
- package/dist/rest/v1/callouts/callouts-api.js +2 -2
- package/dist/rest/v1/callouts/callouts-api.js.map +1 -1
- package/dist/rest/v1/calls/calls-api.d.ts +7 -8
- package/dist/rest/v1/calls/calls-api.jest.fixture.d.ts +2 -2
- package/dist/rest/v1/calls/calls-api.js +6 -4
- package/dist/rest/v1/calls/calls-api.js.map +1 -1
- package/dist/rest/v1/conferences/conferences-api.d.ts +11 -3
- package/dist/rest/v1/conferences/conferences-api.jest.fixture.d.ts +6 -1
- package/dist/rest/v1/conferences/conferences-api.jest.fixture.js +4 -0
- package/dist/rest/v1/conferences/conferences-api.jest.fixture.js.map +1 -1
- package/dist/rest/v1/conferences/conferences-api.js +12 -2
- package/dist/rest/v1/conferences/conferences-api.js.map +1 -1
- package/dist/rest/v1/enums.d.ts +1 -1
- package/dist/rest/v1/index.d.ts +1 -1
- package/dist/rest/v1/index.js +1 -1
- package/dist/rest/v1/index.js.map +1 -1
- package/dist/rest/v1/{voice-api.d.ts → voice-domain-api.d.ts} +1 -1
- package/dist/rest/v1/{voice-api.js → voice-domain-api.js} +4 -4
- package/dist/rest/v1/voice-domain-api.js.map +1 -0
- package/dist/rest/v1/{voice.d.ts → voice-service.d.ts} +1 -7
- package/dist/rest/v1/{voice.js → voice-service.js} +4 -4
- package/dist/rest/v1/voice-service.js.map +1 -0
- package/package.json +2 -2
- package/dist/models/v1/ace-request/ace-request.js +0 -9
- package/dist/models/v1/ace-request/ace-request.js.map +0 -1
- package/dist/models/v1/ace-request/index.d.ts +0 -1
- package/dist/models/v1/ace-request/index.js.map +0 -1
- package/dist/models/v1/ace-request-amd/ace-request-amd.d.ts +0 -17
- package/dist/models/v1/ace-request-amd/ace-request-amd.js +0 -9
- package/dist/models/v1/ace-request-amd/ace-request-amd.js.map +0 -1
- package/dist/models/v1/ace-request-amd/index.d.ts +0 -1
- package/dist/models/v1/ace-request-amd/index.js.map +0 -1
- package/dist/models/v1/ace-response/ace-response.d.ts +0 -16
- package/dist/models/v1/ace-response/ace-response.js.map +0 -1
- package/dist/models/v1/ace-response/index.d.ts +0 -1
- package/dist/models/v1/ace-response/index.js.map +0 -1
- package/dist/models/v1/callout-request/callout-request.d.ts +0 -23
- package/dist/models/v1/callout-request/callout-request.js +0 -9
- package/dist/models/v1/callout-request/callout-request.js.map +0 -1
- package/dist/models/v1/callout-request/index.d.ts +0 -1
- package/dist/models/v1/callout-request/index.js.map +0 -1
- package/dist/models/v1/conference-callout-request-conference-dtmf-options/conference-callout-request-conference-dtmf-options.d.ts +0 -17
- package/dist/models/v1/conference-callout-request-conference-dtmf-options/conference-callout-request-conference-dtmf-options.js +0 -9
- package/dist/models/v1/conference-callout-request-conference-dtmf-options/conference-callout-request-conference-dtmf-options.js.map +0 -1
- package/dist/models/v1/conference-callout-request-conference-dtmf-options/index.d.ts +0 -1
- package/dist/models/v1/conference-callout-request-conference-dtmf-options/index.js.map +0 -1
- package/dist/models/v1/dice-request/dice-request.js +0 -9
- package/dist/models/v1/dice-request/dice-request.js.map +0 -1
- package/dist/models/v1/dice-request/index.js.map +0 -1
- package/dist/models/v1/dice-request-debit/dice-request-debit.d.ts +0 -15
- package/dist/models/v1/dice-request-debit/dice-request-debit.js +0 -9
- package/dist/models/v1/dice-request-debit/dice-request-debit.js.map +0 -1
- package/dist/models/v1/dice-request-debit/index.d.ts +0 -1
- package/dist/models/v1/dice-request-debit/index.js.map +0 -1
- package/dist/models/v1/dice-request-user-rate/dice-request-user-rate.d.ts +0 -15
- package/dist/models/v1/dice-request-user-rate/dice-request-user-rate.js +0 -9
- package/dist/models/v1/dice-request-user-rate/dice-request-user-rate.js.map +0 -1
- package/dist/models/v1/dice-request-user-rate/index.d.ts +0 -1
- package/dist/models/v1/dice-request-user-rate/index.js.map +0 -1
- package/dist/models/v1/get-call-response-obj/get-call-response-obj.d.ts +0 -59
- package/dist/models/v1/get-call-response-obj/get-call-response-obj.js +0 -3
- package/dist/models/v1/get-call-response-obj/get-call-response-obj.js.map +0 -1
- package/dist/models/v1/get-call-response-obj/index.d.ts +0 -1
- package/dist/models/v1/get-call-response-obj/index.js.map +0 -1
- package/dist/models/v1/get-callbacks-url/get-callbacks-url.d.ts +0 -15
- package/dist/models/v1/get-callbacks-url/get-callbacks-url.js +0 -9
- package/dist/models/v1/get-callbacks-url/get-callbacks-url.js.map +0 -1
- package/dist/models/v1/get-callbacks-url/index.d.ts +0 -1
- package/dist/models/v1/get-callbacks-url/index.js.map +0 -1
- package/dist/models/v1/get-callout-response-obj/get-callout-response-obj.d.ts +0 -13
- package/dist/models/v1/get-callout-response-obj/get-callout-response-obj.js +0 -9
- package/dist/models/v1/get-callout-response-obj/get-callout-response-obj.js.map +0 -1
- package/dist/models/v1/get-callout-response-obj/index.d.ts +0 -1
- package/dist/models/v1/get-callout-response-obj/index.js.map +0 -1
- package/dist/models/v1/get-conference-info-response-participants-inner/get-conference-info-response-participants-inner.d.ts +0 -16
- package/dist/models/v1/get-conference-info-response-participants-inner/get-conference-info-response-participants-inner.js +0 -9
- package/dist/models/v1/get-conference-info-response-participants-inner/get-conference-info-response-participants-inner.js.map +0 -1
- package/dist/models/v1/get-conference-info-response-participants-inner/index.d.ts +0 -1
- package/dist/models/v1/get-conference-info-response-participants-inner/index.js.map +0 -1
- package/dist/models/v1/get-numbers-response-obj/get-numbers-response-obj.d.ts +0 -11
- package/dist/models/v1/get-numbers-response-obj/get-numbers-response-obj.js +0 -9
- package/dist/models/v1/get-numbers-response-obj/get-numbers-response-obj.js.map +0 -1
- package/dist/models/v1/get-numbers-response-obj/index.d.ts +0 -1
- package/dist/models/v1/get-numbers-response-obj/index.js.map +0 -1
- package/dist/models/v1/get-numbers-response-obj-numbers-inner/get-numbers-response-obj-numbers-inner.js +0 -9
- package/dist/models/v1/get-numbers-response-obj-numbers-inner/get-numbers-response-obj-numbers-inner.js.map +0 -1
- package/dist/models/v1/get-numbers-response-obj-numbers-inner/index.d.ts +0 -1
- package/dist/models/v1/get-numbers-response-obj-numbers-inner/index.js.map +0 -1
- package/dist/models/v1/get-query-number/get-query-number.d.ts +0 -13
- package/dist/models/v1/get-query-number/get-query-number.js +0 -9
- package/dist/models/v1/get-query-number/get-query-number.js.map +0 -1
- package/dist/models/v1/get-query-number/index.d.ts +0 -1
- package/dist/models/v1/get-query-number/index.js.map +0 -1
- package/dist/models/v1/get-query-number-number-item/get-query-number-number-item.d.ts +0 -23
- package/dist/models/v1/get-query-number-number-item/get-query-number-number-item.js +0 -9
- package/dist/models/v1/get-query-number-number-item/get-query-number-number-item.js.map +0 -1
- package/dist/models/v1/get-query-number-number-item/index.d.ts +0 -1
- package/dist/models/v1/get-query-number-number-item/index.js.map +0 -1
- package/dist/models/v1/get-query-number-number-item-rate/get-query-number-number-item-rate.d.ts +0 -15
- package/dist/models/v1/get-query-number-number-item-rate/get-query-number-number-item-rate.js +0 -9
- package/dist/models/v1/get-query-number-number-item-rate/get-query-number-number-item-rate.js.map +0 -1
- package/dist/models/v1/get-query-number-number-item-rate/index.d.ts +0 -1
- package/dist/models/v1/get-query-number-number-item-rate/index.js.map +0 -1
- package/dist/models/v1/get-recording-file-info/get-recording-file-info.d.ts +0 -13
- package/dist/models/v1/get-recording-file-info/get-recording-file-info.js +0 -9
- package/dist/models/v1/get-recording-file-info/get-recording-file-info.js.map +0 -1
- package/dist/models/v1/get-recording-file-info/index.d.ts +0 -1
- package/dist/models/v1/get-recording-file-info/index.js.map +0 -1
- package/dist/models/v1/ice-request/ice-request.js +0 -9
- package/dist/models/v1/ice-request/ice-request.js.map +0 -1
- package/dist/models/v1/ice-request/index.js.map +0 -1
- package/dist/models/v1/ice-request-to/ice-request-to.d.ts +0 -15
- package/dist/models/v1/ice-request-to/ice-request-to.js +0 -9
- package/dist/models/v1/ice-request-to/ice-request-to.js.map +0 -1
- package/dist/models/v1/ice-request-to/index.d.ts +0 -1
- package/dist/models/v1/ice-request-to/index.js.map +0 -1
- package/dist/models/v1/ice-request-user-rate/ice-request-user-rate.d.ts +0 -15
- package/dist/models/v1/ice-request-user-rate/ice-request-user-rate.js +0 -9
- package/dist/models/v1/ice-request-user-rate/ice-request-user-rate.js.map +0 -1
- package/dist/models/v1/ice-request-user-rate/index.d.ts +0 -1
- package/dist/models/v1/ice-request-user-rate/index.js.map +0 -1
- package/dist/models/v1/ice-response/ice-response.d.ts +0 -21
- package/dist/models/v1/ice-response/ice-response.js.map +0 -1
- package/dist/models/v1/ice-response/index.d.ts +0 -1
- package/dist/models/v1/ice-response/index.js.map +0 -1
- package/dist/models/v1/notify-error-request/index.js.map +0 -1
- package/dist/models/v1/notify-error-request/notify-error-request.js +0 -9
- package/dist/models/v1/notify-error-request/notify-error-request.js.map +0 -1
- package/dist/models/v1/notify-request/index.js.map +0 -1
- package/dist/models/v1/notify-request/notify-request.d.ts +0 -21
- package/dist/models/v1/notify-request/notify-request.js +0 -9
- package/dist/models/v1/notify-request/notify-request.js.map +0 -1
- package/dist/models/v1/pie-request/index.d.ts +0 -1
- package/dist/models/v1/pie-request/index.js.map +0 -1
- package/dist/models/v1/pie-request/pie-request.js +0 -9
- package/dist/models/v1/pie-request/pie-request.js.map +0 -1
- package/dist/models/v1/pie-request-menu-result/index.d.ts +0 -1
- package/dist/models/v1/pie-request-menu-result/index.js.map +0 -1
- package/dist/models/v1/pie-request-menu-result/pie-request-menu-result.d.ts +0 -19
- package/dist/models/v1/pie-request-menu-result/pie-request-menu-result.js +0 -9
- package/dist/models/v1/pie-request-menu-result/pie-request-menu-result.js.map +0 -1
- package/dist/models/v1/pie-response/index.d.ts +0 -1
- package/dist/models/v1/pie-response/index.js.map +0 -1
- package/dist/models/v1/pie-response/pie-response.d.ts +0 -19
- package/dist/models/v1/pie-response/pie-response.js.map +0 -1
- package/dist/models/v1/svaml-action/index.js +0 -3
- package/dist/models/v1/svaml-action/index.js.map +0 -1
- package/dist/models/v1/svaml-action/svaml-action.js +0 -9
- package/dist/models/v1/svaml-action/svaml-action.js.map +0 -1
- package/dist/models/v1/svaml-action-connect-conf/index.d.ts +0 -1
- package/dist/models/v1/svaml-action-connect-conf/index.js.map +0 -1
- package/dist/models/v1/svaml-action-connect-conf/svaml-action-connect-conf.js +0 -9
- package/dist/models/v1/svaml-action-connect-conf/svaml-action-connect-conf.js.map +0 -1
- package/dist/models/v1/svaml-action-connect-conf-conference-dtmf-options/index.d.ts +0 -1
- package/dist/models/v1/svaml-action-connect-conf-conference-dtmf-options/index.js.map +0 -1
- package/dist/models/v1/svaml-action-connect-conf-conference-dtmf-options/svaml-action-connect-conf-conference-dtmf-options.js +0 -9
- package/dist/models/v1/svaml-action-connect-conf-conference-dtmf-options/svaml-action-connect-conf-conference-dtmf-options.js.map +0 -1
- package/dist/models/v1/svaml-action-connect-mxp/index.d.ts +0 -1
- package/dist/models/v1/svaml-action-connect-mxp/index.js.map +0 -1
- package/dist/models/v1/svaml-action-connect-mxp/svaml-action-connect-mxp.js +0 -9
- package/dist/models/v1/svaml-action-connect-mxp/svaml-action-connect-mxp.js.map +0 -1
- package/dist/models/v1/svaml-action-connect-mxp-destination/index.d.ts +0 -1
- package/dist/models/v1/svaml-action-connect-mxp-destination/index.js.map +0 -1
- package/dist/models/v1/svaml-action-connect-mxp-destination/svaml-action-connect-mxp-destination.d.ts +0 -15
- package/dist/models/v1/svaml-action-connect-mxp-destination/svaml-action-connect-mxp-destination.js +0 -9
- package/dist/models/v1/svaml-action-connect-mxp-destination/svaml-action-connect-mxp-destination.js.map +0 -1
- package/dist/models/v1/svaml-action-connect-pstn/index.d.ts +0 -1
- package/dist/models/v1/svaml-action-connect-pstn/index.js.map +0 -1
- package/dist/models/v1/svaml-action-connect-pstn/svaml-action-connect-pstn.js +0 -9
- package/dist/models/v1/svaml-action-connect-pstn/svaml-action-connect-pstn.js.map +0 -1
- package/dist/models/v1/svaml-action-connect-pstn-amd/index.d.ts +0 -1
- package/dist/models/v1/svaml-action-connect-pstn-amd/index.js.map +0 -1
- package/dist/models/v1/svaml-action-connect-pstn-amd/svaml-action-connect-pstn-amd.d.ts +0 -13
- package/dist/models/v1/svaml-action-connect-pstn-amd/svaml-action-connect-pstn-amd.js +0 -9
- package/dist/models/v1/svaml-action-connect-pstn-amd/svaml-action-connect-pstn-amd.js.map +0 -1
- package/dist/models/v1/svaml-action-connect-sip/index.d.ts +0 -1
- package/dist/models/v1/svaml-action-connect-sip/index.js +0 -3
- package/dist/models/v1/svaml-action-connect-sip/index.js.map +0 -1
- package/dist/models/v1/svaml-action-connect-sip/svaml-action-connect-sip.js +0 -9
- package/dist/models/v1/svaml-action-connect-sip/svaml-action-connect-sip.js.map +0 -1
- package/dist/models/v1/svaml-action-connect-sip-destination/index.d.ts +0 -1
- package/dist/models/v1/svaml-action-connect-sip-destination/index.js.map +0 -1
- package/dist/models/v1/svaml-action-connect-sip-destination/svaml-action-connect-sip-destination.d.ts +0 -13
- package/dist/models/v1/svaml-action-connect-sip-destination/svaml-action-connect-sip-destination.js +0 -9
- package/dist/models/v1/svaml-action-connect-sip-destination/svaml-action-connect-sip-destination.js.map +0 -1
- package/dist/models/v1/svaml-action-continue/index.js +0 -3
- package/dist/models/v1/svaml-action-continue/index.js.map +0 -1
- package/dist/models/v1/svaml-action-continue/svaml-action-continue.js +0 -9
- package/dist/models/v1/svaml-action-continue/svaml-action-continue.js.map +0 -1
- package/dist/models/v1/svaml-action-hangup/index.js +0 -3
- package/dist/models/v1/svaml-action-hangup/index.js.map +0 -1
- package/dist/models/v1/svaml-action-hangup/svaml-action-hangup.js +0 -9
- package/dist/models/v1/svaml-action-hangup/svaml-action-hangup.js.map +0 -1
- package/dist/models/v1/svaml-action-park/index.d.ts +0 -1
- package/dist/models/v1/svaml-action-park/index.js +0 -3
- package/dist/models/v1/svaml-action-park/index.js.map +0 -1
- package/dist/models/v1/svaml-action-park/svaml-action-park.js +0 -9
- package/dist/models/v1/svaml-action-park/svaml-action-park.js.map +0 -1
- package/dist/models/v1/svaml-action-run-menu/index.d.ts +0 -1
- package/dist/models/v1/svaml-action-run-menu/index.js +0 -3
- package/dist/models/v1/svaml-action-run-menu/index.js.map +0 -1
- package/dist/models/v1/svaml-action-run-menu/svaml-action-run-menu.js +0 -9
- package/dist/models/v1/svaml-action-run-menu/svaml-action-run-menu.js.map +0 -1
- package/dist/models/v1/svaml-instruction/index.js +0 -3
- package/dist/models/v1/svaml-instruction/index.js.map +0 -1
- package/dist/models/v1/svaml-instruction/svaml-instruction.js +0 -9
- package/dist/models/v1/svaml-instruction/svaml-instruction.js.map +0 -1
- package/dist/models/v1/svaml-instruction-answer/index.js +0 -3
- package/dist/models/v1/svaml-instruction-answer/index.js.map +0 -1
- package/dist/models/v1/svaml-instruction-answer/svaml-instruction-answer.js +0 -9
- package/dist/models/v1/svaml-instruction-answer/svaml-instruction-answer.js.map +0 -1
- package/dist/models/v1/svaml-instruction-play-files/index.d.ts +0 -1
- package/dist/models/v1/svaml-instruction-play-files/index.js +0 -3
- package/dist/models/v1/svaml-instruction-play-files/index.js.map +0 -1
- package/dist/models/v1/svaml-instruction-play-files/svaml-instruction-play-files.js +0 -9
- package/dist/models/v1/svaml-instruction-play-files/svaml-instruction-play-files.js.map +0 -1
- package/dist/models/v1/svaml-instruction-say/index.d.ts +0 -1
- package/dist/models/v1/svaml-instruction-say/index.js +0 -3
- package/dist/models/v1/svaml-instruction-say/index.js.map +0 -1
- package/dist/models/v1/svaml-instruction-say/svaml-instruction-say.js +0 -9
- package/dist/models/v1/svaml-instruction-say/svaml-instruction-say.js.map +0 -1
- package/dist/models/v1/svaml-instruction-send-dtmf/index.d.ts +0 -1
- package/dist/models/v1/svaml-instruction-send-dtmf/index.js +0 -3
- package/dist/models/v1/svaml-instruction-send-dtmf/index.js.map +0 -1
- package/dist/models/v1/svaml-instruction-send-dtmf/svaml-instruction-send-dtmf.js +0 -9
- package/dist/models/v1/svaml-instruction-send-dtmf/svaml-instruction-send-dtmf.js.map +0 -1
- package/dist/models/v1/svaml-instruction-set-cookie/index.d.ts +0 -1
- package/dist/models/v1/svaml-instruction-set-cookie/index.js +0 -3
- package/dist/models/v1/svaml-instruction-set-cookie/index.js.map +0 -1
- package/dist/models/v1/svaml-instruction-set-cookie/svaml-instruction-set-cookie.js +0 -9
- package/dist/models/v1/svaml-instruction-set-cookie/svaml-instruction-set-cookie.js.map +0 -1
- package/dist/models/v1/svaml-instruction-start-recording/index.d.ts +0 -1
- package/dist/models/v1/svaml-instruction-start-recording/index.js +0 -3
- package/dist/models/v1/svaml-instruction-start-recording/index.js.map +0 -1
- package/dist/models/v1/svaml-instruction-start-recording/svaml-instruction-start-recording.js +0 -9
- package/dist/models/v1/svaml-instruction-start-recording/svaml-instruction-start-recording.js.map +0 -1
- package/dist/models/v1/svaml-instruction-stop-recording/index.js +0 -3
- package/dist/models/v1/svaml-instruction-stop-recording/index.js.map +0 -1
- package/dist/models/v1/svaml-instruction-stop-recording/svaml-instruction-stop-recording.js +0 -9
- package/dist/models/v1/svaml-instruction-stop-recording/svaml-instruction-stop-recording.js.map +0 -1
- package/dist/models/v1/update-callbacks-url/index.d.ts +0 -1
- package/dist/models/v1/update-callbacks-url/index.js +0 -3
- package/dist/models/v1/update-callbacks-url/index.js.map +0 -1
- package/dist/models/v1/update-callbacks-url/update-callbacks-url.d.ts +0 -15
- package/dist/models/v1/update-callbacks-url/update-callbacks-url.js +0 -9
- package/dist/models/v1/update-callbacks-url/update-callbacks-url.js.map +0 -1
- package/dist/rest/v1/voice-api.js.map +0 -1
- package/dist/rest/v1/voice.js.map +0 -1
- /package/dist/models/v1/{ace-request-amd → callout-response}/index.js +0 -0
- /package/dist/models/v1/{ace-request → conference-dtmf-options}/index.js +0 -0
- /package/dist/models/v1/{ace-response → get-call-information}/index.js +0 -0
- /package/dist/models/v1/{callout-request → list-numbers-response}/index.js +0 -0
- /package/dist/models/v1/{conference-callout-request-conference-dtmf-options → mod-callbacks/ace-request}/index.js +0 -0
- /package/dist/models/v1/{ace-response → mod-callbacks/ace-response}/ace-response.js +0 -0
- /package/dist/models/v1/{dice-request-debit → mod-callbacks/ace-response}/index.js +0 -0
- /package/dist/models/v1/{dice-request-user-rate → mod-callbacks/callback-response}/index.js +0 -0
- /package/dist/models/v1/{dice-request → mod-callbacks/dice-request}/index.d.ts +0 -0
- /package/dist/models/v1/{dice-request → mod-callbacks/dice-request}/index.js +0 -0
- /package/dist/models/v1/{ice-request → mod-callbacks/ice-request}/index.d.ts +0 -0
- /package/dist/models/v1/{get-call-response-obj → mod-callbacks/ice-request}/index.js +0 -0
- /package/dist/models/v1/{ice-response → mod-callbacks/ice-response}/ice-response.js +0 -0
- /package/dist/models/v1/{get-callbacks-url → mod-callbacks/ice-response}/index.js +0 -0
- /package/dist/models/v1/{notify-error-request → mod-callbacks/notify-error-request}/index.d.ts +0 -0
- /package/dist/models/v1/{get-callout-response-obj → mod-callbacks/notify-error-request}/index.js +0 -0
- /package/dist/models/v1/{notify-request → mod-callbacks/notify-request}/index.d.ts +0 -0
- /package/dist/models/v1/{get-conference-info-response-participants-inner → mod-callbacks/notify-request}/index.js +0 -0
- /package/dist/models/v1/{get-numbers-response-obj-numbers-inner → mod-callbacks/pie-request}/index.js +0 -0
- /package/dist/models/v1/{get-numbers-response-obj → mod-callbacks/pie-response}/index.js +0 -0
- /package/dist/models/v1/{pie-response → mod-callbacks/pie-response}/pie-response.js +0 -0
- /package/dist/models/v1/{svaml-action → mod-svaml/svaml-action}/index.d.ts +0 -0
- /package/dist/models/v1/{notify-error-request → mod-svaml/svaml-action}/index.js +0 -0
- /package/dist/models/v1/{get-query-number-number-item-rate → mod-svaml/svaml-action-connect-conf}/index.js +0 -0
- /package/dist/models/v1/{get-query-number-number-item → mod-svaml/svaml-action-connect-mxp}/index.js +0 -0
- /package/dist/models/v1/{get-query-number → mod-svaml/svaml-action-connect-pstn}/index.js +0 -0
- /package/dist/models/v1/{get-recording-file-info → mod-svaml/svaml-action-connect-sip}/index.js +0 -0
- /package/dist/models/v1/{svaml-action-continue → mod-svaml/svaml-action-continue}/index.d.ts +0 -0
- /package/dist/models/v1/{ice-request-to → mod-svaml/svaml-action-continue}/index.js +0 -0
- /package/dist/models/v1/{svaml-action-hangup → mod-svaml/svaml-action-hangup}/index.d.ts +0 -0
- /package/dist/models/v1/{ice-request-user-rate → mod-svaml/svaml-action-hangup}/index.js +0 -0
- /package/dist/models/v1/{ice-request → mod-svaml/svaml-action-park}/index.js +0 -0
- /package/dist/models/v1/{ice-response → mod-svaml/svaml-action-run-menu}/index.js +0 -0
- /package/dist/models/v1/{svaml-instruction → mod-svaml/svaml-instruction}/index.d.ts +0 -0
- /package/dist/models/v1/{svaml-action-connect-mxp → mod-svaml/svaml-instruction}/index.js +0 -0
- /package/dist/models/v1/{svaml-instruction-answer → mod-svaml/svaml-instruction-answer}/index.d.ts +0 -0
- /package/dist/models/v1/{notify-request → mod-svaml/svaml-instruction-answer}/index.js +0 -0
- /package/dist/models/v1/{pie-request-menu-result → mod-svaml/svaml-instruction-play-files}/index.js +0 -0
- /package/dist/models/v1/{pie-request → mod-svaml/svaml-instruction-say}/index.js +0 -0
- /package/dist/models/v1/{pie-response → mod-svaml/svaml-instruction-send-dtmf}/index.js +0 -0
- /package/dist/models/v1/{svaml-action-connect-conf-conference-dtmf-options → mod-svaml/svaml-instruction-set-cookie}/index.js +0 -0
- /package/dist/models/v1/{svaml-action-connect-conf → mod-svaml/svaml-instruction-start-recording}/index.js +0 -0
- /package/dist/models/v1/{svaml-instruction-stop-recording → mod-svaml/svaml-instruction-stop-recording}/index.d.ts +0 -0
- /package/dist/models/v1/{svaml-action-connect-mxp-destination → mod-svaml/svaml-instruction-stop-recording}/index.js +0 -0
- /package/dist/models/v1/{svaml-action-connect-pstn-amd → participant}/index.js +0 -0
- /package/dist/models/v1/{svaml-action-connect-pstn → query-number-response}/index.js +0 -0
- /package/dist/models/v1/{svaml-action-connect-sip-destination → voice-price}/index.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { VoicePrice } from './voice-price';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v1/voice-price/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"voice-price.js","sourceRoot":"","sources":["../../../../src/models/v1/voice-price/voice-price.ts"],"names":[],"mappings":""}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { GetCallbacks,
|
|
1
|
+
import { GetCallbacks, ListNumbersResponse, QueryNumberResponse, UnassignNumbers, UpdateCallbacks, AssignNumbers } from '../../../models';
|
|
2
2
|
import { SinchClientParameters } from '@sinch/sdk-client';
|
|
3
|
-
import {
|
|
3
|
+
import { VoiceDomainApi } from '../voice-domain-api';
|
|
4
4
|
export interface QueryNumberRequestData {
|
|
5
5
|
/** The phone number you want to query. */
|
|
6
6
|
'number': string;
|
|
@@ -25,7 +25,7 @@ export interface AssignNumbersRequestData {
|
|
|
25
25
|
/** */
|
|
26
26
|
'assignNumbersRequestBody'?: AssignNumbers;
|
|
27
27
|
}
|
|
28
|
-
export declare class ApplicationsApi extends
|
|
28
|
+
export declare class ApplicationsApi extends VoiceDomainApi {
|
|
29
29
|
/**
|
|
30
30
|
* Initialize your interface
|
|
31
31
|
*
|
|
@@ -37,7 +37,7 @@ export declare class ApplicationsApi extends VoiceApi {
|
|
|
37
37
|
* Returns information about the requested number.
|
|
38
38
|
* @param { QueryNumberRequestData } data - The data to provide to the API call.
|
|
39
39
|
*/
|
|
40
|
-
queryNumber(data: QueryNumberRequestData): Promise<
|
|
40
|
+
queryNumber(data: QueryNumberRequestData): Promise<QueryNumberResponse>;
|
|
41
41
|
/**
|
|
42
42
|
* Get Callback URLs
|
|
43
43
|
* Returns any callback URLs configured for the specified application.
|
|
@@ -49,7 +49,7 @@ export declare class ApplicationsApi extends VoiceApi {
|
|
|
49
49
|
* Get information about your numbers. It returns a list of numbers that you own, as well as their capability (voice or SMS). For the ones that are assigned to an app, it returns the application key of the app.
|
|
50
50
|
* @param { GetNumbersRequestData } data - The data to provide to the API call.
|
|
51
51
|
*/
|
|
52
|
-
|
|
52
|
+
listNumbers(data: GetNumbersRequestData): Promise<ListNumbersResponse>;
|
|
53
53
|
/**
|
|
54
54
|
* Un-assign number
|
|
55
55
|
* Un-assign a number from an application.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/// <reference types="jest" />
|
|
2
|
-
import { GetCallbacks,
|
|
2
|
+
import { GetCallbacks, ListNumbersResponse, QueryNumberResponse } from '../../../models';
|
|
3
3
|
import { ApplicationsApi, QueryNumberRequestData, GetCallbackURLsRequestData, GetNumbersRequestData, UnassignNumberRequestData, UpdateCallbackURLsRequestData, AssignNumbersRequestData } from './applications-api';
|
|
4
4
|
export declare class ApplicationsApiFixture implements Partial<Readonly<ApplicationsApi>> {
|
|
5
5
|
/**
|
|
6
6
|
* Fixture associated to function queryNumber
|
|
7
7
|
*/
|
|
8
|
-
queryNumber: jest.Mock<Promise<
|
|
8
|
+
queryNumber: jest.Mock<Promise<QueryNumberResponse>, [QueryNumberRequestData]>;
|
|
9
9
|
/**
|
|
10
10
|
* Fixture associated to function getCallbackURLs
|
|
11
11
|
*/
|
|
@@ -13,7 +13,7 @@ export declare class ApplicationsApiFixture implements Partial<Readonly<Applicat
|
|
|
13
13
|
/**
|
|
14
14
|
* Fixture associated to function getNumbers
|
|
15
15
|
*/
|
|
16
|
-
|
|
16
|
+
listNumbers: jest.Mock<Promise<ListNumbersResponse>, [GetNumbersRequestData]>;
|
|
17
17
|
/**
|
|
18
18
|
* Fixture associated to function unassignNumber
|
|
19
19
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applications-api.jest.fixture.js","sourceRoot":"","sources":["../../../../src/rest/v1/applications/applications-api.jest.fixture.ts"],"names":[],"mappings":";;;AAGA,MAAa,sBAAsB;IAAnC;QAEE;;WAEG;QACI,gBAAW,
|
|
1
|
+
{"version":3,"file":"applications-api.jest.fixture.js","sourceRoot":"","sources":["../../../../src/rest/v1/applications/applications-api.jest.fixture.ts"],"names":[],"mappings":";;;AAGA,MAAa,sBAAsB;IAAnC;QAEE;;WAEG;QACI,gBAAW,GAAsE,IAAI,CAAC,EAAE,EAAE,CAAC;QAClG;;WAEG;QACI,oBAAe,GAAmE,IAAI,CAAC,EAAE,EAAE,CAAC;QACnG;;WAEG;QACI,gBAAW,GAAqE,IAAI,CAAC,EAAE,EAAE,CAAC;QACjG;;WAEG;QACI,mBAAc,GAA0D,IAAI,CAAC,EAAE,EAAE,CAAC;QACzF;;WAEG;QACI,uBAAkB,GAA8D,IAAI,CAAC,EAAE,EAAE,CAAC;QACjG;;WAEG;QACI,kBAAa,GAAyD,IAAI,CAAC,EAAE,EAAE,CAAC;IACzF,CAAC;CAAA;AA1BD,wDA0BC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ApplicationsApi = void 0;
|
|
4
|
-
const
|
|
5
|
-
class ApplicationsApi extends
|
|
4
|
+
const voice_domain_api_1 = require("../voice-domain-api");
|
|
5
|
+
class ApplicationsApi extends voice_domain_api_1.VoiceDomainApi {
|
|
6
6
|
/**
|
|
7
7
|
* Initialize your interface
|
|
8
8
|
*
|
|
@@ -65,7 +65,7 @@ class ApplicationsApi extends voice_api_1.VoiceApi {
|
|
|
65
65
|
* Get information about your numbers. It returns a list of numbers that you own, as well as their capability (voice or SMS). For the ones that are assigned to an app, it returns the application key of the app.
|
|
66
66
|
* @param { GetNumbersRequestData } data - The data to provide to the API call.
|
|
67
67
|
*/
|
|
68
|
-
async
|
|
68
|
+
async listNumbers(data) {
|
|
69
69
|
this.client = this.getSinchClient();
|
|
70
70
|
const getParams = this.client.extractQueryParams(data, []);
|
|
71
71
|
const headers = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"applications-api.js","sourceRoot":"","sources":["../../../../src/rest/v1/applications/applications-api.ts"],"names":[],"mappings":";;;AAYA,
|
|
1
|
+
{"version":3,"file":"applications-api.js","sourceRoot":"","sources":["../../../../src/rest/v1/applications/applications-api.ts"],"names":[],"mappings":";;;AAYA,0DAAqD;AA2BrD,MAAa,eAAgB,SAAQ,iCAAc;IAEjD;;;;OAIG;IACH,YAAY,qBAA4C;QACtD,KAAK,CAAC,qBAAqB,EAAE,iBAA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;IAED;;;;OAIG;IACI,KAAK,CAAC,aAAa,CAAC,IAA8B;QACvD,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC;QACpC,MAAM,SAAS,GAAG,IAAI,CAAC,MAAM,CAAC,kBAAkB,CAA2B,IAAI,EAAE,EAAa,CAAC,CAAC;QAChG,MAAM,OAAO,GAA0C;YACrD,cAAc,EAAE,kBAAkB;YAClC,QAAQ,EAAE,kBAAkB;SAC7B,CAAC;QAEF,MAAM,IAAI,GAAgB,IAAI,CAAC,0BAA0B,CAAC;YACxD,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,0BAA0B,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;QAC5D,MAAM,IAAI,GAAG,2BAA2B,CAAC;QACzC,MAAM,WAAW,GAAG,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,QAAQ,GAAG,IAAI,CAAC;QAEjE,MAAM,cAAc,GACd,MAAM,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,IAAI,SAAS,EAAE,IAAI,CAAC,CAAC;QACzG,MAAM,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,cAAc,CAAC,QAAQ,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC;QAExF,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAO;YACnC,GAAG;YACH,cAAc;YACd,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,WAAW,EAAE,eAAe;SAC7B,CAAC,CAAC;IACL,CAAC;CAEF;AA7LD,0CA6LC"}
|
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
1
2
|
import { AceRequest, DiceRequest, IceRequest, NotifyRequest, PieRequest } from '../../../models';
|
|
3
|
+
import { CallbackProcessor, SinchClientParameters } from '@sinch/sdk-client';
|
|
4
|
+
import { IncomingHttpHeaders } from 'http';
|
|
2
5
|
export type VoiceCallback = IceRequest | AceRequest | DiceRequest | PieRequest | NotifyRequest;
|
|
3
|
-
export declare
|
|
6
|
+
export declare class VoiceCallbackWebhooks implements CallbackProcessor<VoiceCallback> {
|
|
7
|
+
private readonly sinchClientParameters;
|
|
8
|
+
constructor(sinchClientParameters: SinchClientParameters);
|
|
9
|
+
/**
|
|
10
|
+
* Validate authorization header for callback request
|
|
11
|
+
* @param {IncomingHttpHeaders} headers - Incoming request's headers
|
|
12
|
+
* @param {any} body - Incoming request's body
|
|
13
|
+
* @param {string} path - Incoming request's path
|
|
14
|
+
* @param {string} method - Incoming request's HTTP method
|
|
15
|
+
* @return {boolean} - true if the authorization header is valid
|
|
16
|
+
*/
|
|
17
|
+
validateAuthenticationHeader(headers: IncomingHttpHeaders, body: any, path: string, method: string): boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Reviver for a Voice Event.
|
|
20
|
+
* This method ensures the object can be treated as a Voice Event and should be called before any action is taken to manipulate the object.
|
|
21
|
+
* @param {any} eventBody - The event body containing the voice event notification.
|
|
22
|
+
* @return {VoiceCallback} - The parsed voice event object.
|
|
23
|
+
*/
|
|
24
|
+
parseEvent(eventBody: any): VoiceCallback;
|
|
25
|
+
}
|
|
@@ -1,25 +1,54 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
3
|
+
exports.VoiceCallbackWebhooks = void 0;
|
|
4
|
+
const sdk_client_1 = require("@sinch/sdk-client");
|
|
5
|
+
class VoiceCallbackWebhooks {
|
|
6
|
+
constructor(sinchClientParameters) {
|
|
7
|
+
this.sinchClientParameters = sinchClientParameters;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Validate authorization header for callback request
|
|
11
|
+
* @param {IncomingHttpHeaders} headers - Incoming request's headers
|
|
12
|
+
* @param {any} body - Incoming request's body
|
|
13
|
+
* @param {string} path - Incoming request's path
|
|
14
|
+
* @param {string} method - Incoming request's HTTP method
|
|
15
|
+
* @return {boolean} - true if the authorization header is valid
|
|
16
|
+
*/
|
|
17
|
+
validateAuthenticationHeader(headers, body, path, method) {
|
|
18
|
+
if (!this.sinchClientParameters.applicationKey || !this.sinchClientParameters.applicationSecret) {
|
|
19
|
+
throw new Error('The application key and secret must be defined');
|
|
20
|
+
}
|
|
21
|
+
return (0, sdk_client_1.validateAuthenticationHeader)(this.sinchClientParameters.applicationKey, this.sinchClientParameters.applicationSecret, headers, body, path, method);
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Reviver for a Voice Event.
|
|
25
|
+
* This method ensures the object can be treated as a Voice Event and should be called before any action is taken to manipulate the object.
|
|
26
|
+
* @param {any} eventBody - The event body containing the voice event notification.
|
|
27
|
+
* @return {VoiceCallback} - The parsed voice event object.
|
|
28
|
+
*/
|
|
29
|
+
parseEvent(eventBody) {
|
|
30
|
+
if (eventBody.timestamp) {
|
|
31
|
+
eventBody.timestamp = new Date(eventBody.timestamp);
|
|
32
|
+
}
|
|
33
|
+
if (eventBody.event) {
|
|
34
|
+
switch (eventBody.event) {
|
|
35
|
+
case 'ice':
|
|
36
|
+
return eventBody;
|
|
37
|
+
case 'ace':
|
|
38
|
+
return eventBody;
|
|
39
|
+
case 'dice':
|
|
40
|
+
return eventBody;
|
|
41
|
+
case 'pie':
|
|
42
|
+
return eventBody;
|
|
43
|
+
case 'notify':
|
|
44
|
+
return eventBody;
|
|
45
|
+
default:
|
|
46
|
+
throw new Error(`Unknown Voice event type: ${eventBody.event}`);
|
|
47
|
+
}
|
|
19
48
|
}
|
|
49
|
+
console.log(eventBody);
|
|
50
|
+
throw new Error('Unknown Voice event');
|
|
20
51
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
};
|
|
24
|
-
exports.parseVoiceEventNotification = parseVoiceEventNotification;
|
|
52
|
+
}
|
|
53
|
+
exports.VoiceCallbackWebhooks = VoiceCallbackWebhooks;
|
|
25
54
|
//# sourceMappingURL=callbacks-webhook.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"callbacks-webhook.js","sourceRoot":"","sources":["../../../../src/rest/v1/callbacks/callbacks-webhook.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"callbacks-webhook.js","sourceRoot":"","sources":["../../../../src/rest/v1/callbacks/callbacks-webhook.ts"],"names":[],"mappings":";;;AACA,kDAA2G;AAK3G,MAAa,qBAAqB;IAGhC,YAAY,qBAA4C;QACtD,IAAI,CAAC,qBAAqB,GAAG,qBAAqB,CAAC;IACrD,CAAC;IAED;;;;;;;OAOG;IACI,4BAA4B,CACjC,OAA4B,EAC5B,IAAS,EACT,IAAY,EACZ,MAAc;QAEd,IAAI,CAAC,IAAI,CAAC,qBAAqB,CAAC,cAAc,IAAI,CAAC,IAAI,CAAC,qBAAqB,CAAC,iBAAiB,EAAE,CAAC;YAChG,MAAM,IAAI,KAAK,CAAC,gDAAgD,CAAC,CAAC;QACpE,CAAC;QACD,OAAO,IAAA,yCAA4B,EACjC,IAAI,CAAC,qBAAqB,CAAC,cAAc,EACzC,IAAI,CAAC,qBAAqB,CAAC,iBAAiB,EAC5C,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;IACjC,CAAC;IAED;;;;;OAKG;IACI,UAAU,CAAC,SAAc;QAC9B,IAAI,SAAS,CAAC,SAAS,EAAE,CAAC;YACxB,SAAS,CAAC,SAAS,GAAG,IAAI,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;QACtD,CAAC;QACD,IAAI,SAAS,CAAC,KAAK,EAAE,CAAC;YACpB,QAAQ,SAAS,CAAC,KAAK,EAAE,CAAC;gBAC1B,KAAK,KAAK;oBACR,OAAO,SAAuB,CAAC;gBACjC,KAAK,KAAK;oBACR,OAAO,SAAuB,CAAC;gBACjC,KAAK,MAAM;oBACT,OAAO,SAAwB,CAAC;gBAClC,KAAK,KAAK;oBACR,OAAO,SAAuB,CAAC;gBACjC,KAAK,QAAQ;oBACX,OAAO,SAA0B,CAAC;gBACpC;oBACE,MAAM,IAAI,KAAK,CAAC,6BAA6B,SAAS,CAAC,KAAK,EAAE,CAAC,CAAC;YAClE,CAAC;QACH,CAAC;QACD,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;QACvB,MAAM,IAAI,KAAK,CAAC,qBAAqB,CAAC,CAAC;IACzC,CAAC;CAEF;AA5DD,sDA4DC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ConferenceCalloutRequest, CustomCalloutRequest,
|
|
1
|
+
import { ConferenceCalloutRequest, CustomCalloutRequest, CalloutResponse, TtsCalloutRequest } from '../../../models';
|
|
2
2
|
import { SinchClientParameters } from '@sinch/sdk-client';
|
|
3
|
-
import {
|
|
3
|
+
import { VoiceDomainApi } from '../voice-domain-api';
|
|
4
4
|
export interface TtsCalloutRequestData {
|
|
5
5
|
'ttsCalloutRequestBody': {
|
|
6
6
|
/** Type of callout. */
|
|
@@ -25,7 +25,7 @@ export interface CustomCalloutRequestData {
|
|
|
25
25
|
customCallout: CustomCalloutRequest;
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
|
-
export declare class CalloutsApi extends
|
|
28
|
+
export declare class CalloutsApi extends VoiceDomainApi {
|
|
29
29
|
/**
|
|
30
30
|
* Initialize your interface
|
|
31
31
|
*
|
|
@@ -37,17 +37,17 @@ export declare class CalloutsApi extends VoiceApi {
|
|
|
37
37
|
* Makes a text-to-speech callout to a phone number.
|
|
38
38
|
* @param { TtsCalloutRequestData } data - The data to provide to the API call.
|
|
39
39
|
*/
|
|
40
|
-
tts(data: TtsCalloutRequestData): Promise<
|
|
40
|
+
tts(data: TtsCalloutRequestData): Promise<CalloutResponse>;
|
|
41
41
|
/**
|
|
42
42
|
* Conference Callout Request
|
|
43
43
|
* Makes a conference callout to a phone number.
|
|
44
44
|
* @param { ConferenceCalloutRequestData } data - The data to provide to the API call.
|
|
45
45
|
*/
|
|
46
|
-
conference(data: ConferenceCalloutRequestData): Promise<
|
|
46
|
+
conference(data: ConferenceCalloutRequestData): Promise<CalloutResponse>;
|
|
47
47
|
/**
|
|
48
48
|
* Custom Callout Request
|
|
49
49
|
* Makes a conference callout to a phone number.
|
|
50
50
|
* @param { CustomCalloutRequestData } data - The data to provide to the API call.
|
|
51
51
|
*/
|
|
52
|
-
custom(data: CustomCalloutRequestData): Promise<
|
|
52
|
+
custom(data: CustomCalloutRequestData): Promise<CalloutResponse>;
|
|
53
53
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/// <reference types="jest" />
|
|
2
|
-
import {
|
|
2
|
+
import { CalloutResponse } from '../../../models';
|
|
3
3
|
import { CalloutsApi, ConferenceCalloutRequestData, CustomCalloutRequestData, TtsCalloutRequestData } from './callouts-api';
|
|
4
4
|
export declare class CalloutsApiFixture implements Partial<Readonly<CalloutsApi>> {
|
|
5
5
|
/**
|
|
6
6
|
* Fixture associated to function tts
|
|
7
7
|
*/
|
|
8
|
-
tts: jest.Mock<Promise<
|
|
8
|
+
tts: jest.Mock<Promise<CalloutResponse>, [TtsCalloutRequestData]>;
|
|
9
9
|
/**
|
|
10
10
|
* Fixture associated to function tts
|
|
11
11
|
*/
|
|
12
|
-
conference: jest.Mock<Promise<
|
|
12
|
+
conference: jest.Mock<Promise<CalloutResponse>, [ConferenceCalloutRequestData]>;
|
|
13
13
|
/**
|
|
14
14
|
* Fixture associated to function tts
|
|
15
15
|
*/
|
|
16
|
-
custom: jest.Mock<Promise<
|
|
16
|
+
custom: jest.Mock<Promise<CalloutResponse>, [CustomCalloutRequestData]>;
|
|
17
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"callouts-api.jest.fixture.js","sourceRoot":"","sources":["../../../../src/rest/v1/callouts/callouts-api.jest.fixture.ts"],"names":[],"mappings":";;;AAQA,MAAa,kBAAkB;IAA/B;QAEE;;WAEG;QACI,QAAG,
|
|
1
|
+
{"version":3,"file":"callouts-api.jest.fixture.js","sourceRoot":"","sources":["../../../../src/rest/v1/callouts/callouts-api.jest.fixture.ts"],"names":[],"mappings":";;;AAQA,MAAa,kBAAkB;IAA/B;QAEE;;WAEG;QACI,QAAG,GAAiE,IAAI,CAAC,EAAE,EAAE,CAAC;QAErF;;WAEG;QACI,eAAU,GAAwE,IAAI,CAAC,EAAE,EAAE,CAAC;QAEnG;;WAEG;QACI,WAAM,GAAoE,IAAI,CAAC,EAAE,EAAE,CAAC;IAC7F,CAAC;CAAA;AAhBD,gDAgBC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CalloutsApi = void 0;
|
|
4
|
-
const
|
|
5
|
-
class CalloutsApi extends
|
|
4
|
+
const voice_domain_api_1 = require("../voice-domain-api");
|
|
5
|
+
class CalloutsApi extends voice_domain_api_1.VoiceDomainApi {
|
|
6
6
|
/**
|
|
7
7
|
* Initialize your interface
|
|
8
8
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"callouts-api.js","sourceRoot":"","sources":["../../../../src/rest/v1/callouts/callouts-api.ts"],"names":[],"mappings":";;;AAUA,
|
|
1
|
+
{"version":3,"file":"callouts-api.js","sourceRoot":"","sources":["../../../../src/rest/v1/callouts/callouts-api.ts"],"names":[],"mappings":";;;AAUA,0DAAqD;AA6BrD,MAAa,WAAY,SAAQ,iCAAc;IAE7C;;;;OAIG;IACH,YAAY,qBAA4C;QACtD,KAAK,CAAC,qBAAqB,EAAE,aAAa,CAAC,CAAC;IAC9C,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAC,GAAG,CA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,MAAM,WAAW,GAAG,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,QAAQ,GAAG,IAAI,CAAC;QAEjE,MAAM,cAAc,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;QAC7G,MAAM,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,cAAc,CAAC,QAAQ,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC;QAExF,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAkB;YAC9C,GAAG;YACH,cAAc;YACd,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,WAAW,EAAE,UAAU;SACxB,CAAC,CAAC;IACL,CAAC;CAEF;AAjGD,kCAiGC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GetCallInformation, SVAMLRequestBody } from '../../../models';
|
|
2
2
|
import { SinchClientParameters } from '@sinch/sdk-client';
|
|
3
|
-
import {
|
|
4
|
-
export type CallLegEnum = 'caller' | 'callee' | 'both';
|
|
3
|
+
import { VoiceDomainApi } from '../voice-domain-api';
|
|
5
4
|
export interface GetCallResultRequestData {
|
|
6
5
|
/** The unique identifier of the call. This value is generated by the system. */
|
|
7
6
|
'callId': string;
|
|
@@ -10,17 +9,17 @@ export interface ManageWithCallLegRequestData {
|
|
|
10
9
|
/** The unique identifier of the call. This value is generated by the system. */
|
|
11
10
|
'callId': string;
|
|
12
11
|
/** Specifies which part of the call will be managed. This option is used only by the `PlayFiles` and `Say` instructions to indicate which channel the sound will be played on. Valid options are `caller`, `callee` or `both`. If not specified, the default value is `caller`.</br><Warning>The `callLeg` identifier is ignored for calls that are part of a conference and calls initiated using the Callout API.</Warning> */
|
|
13
|
-
'callLeg':
|
|
12
|
+
'callLeg': 'caller' | 'callee' | 'both';
|
|
14
13
|
/** */
|
|
15
|
-
'
|
|
14
|
+
'manageWithCallLegRequestBody'?: SVAMLRequestBody;
|
|
16
15
|
}
|
|
17
16
|
export interface UpdateCallRequestData {
|
|
18
17
|
/** The unique identifier of the call. This value is generated by the system. */
|
|
19
18
|
'callId': string;
|
|
20
19
|
/** */
|
|
21
|
-
'
|
|
20
|
+
'updateCallRequestBody'?: SVAMLRequestBody;
|
|
22
21
|
}
|
|
23
|
-
export declare class CallsApi extends
|
|
22
|
+
export declare class CallsApi extends VoiceDomainApi {
|
|
24
23
|
/**
|
|
25
24
|
* Initialize your interface
|
|
26
25
|
*
|
|
@@ -32,7 +31,7 @@ export declare class CallsApi extends VoiceApi {
|
|
|
32
31
|
* You can retrieve information about an ongoing or completed call using a call ID. You can find the call ID of an ongoing call by viewing the response object from a callout request. You can find the call ID of a completed call by looking at your call logs in your Sinch [Dashboard](https://dashboard.sinch.com/voice/logs). Note: You can only use this method for calls that terminate to PSTN or SIP networks from an In-app call.
|
|
33
32
|
* @param { GetCallResultRequestData } data - The data to provide to the API call.
|
|
34
33
|
*/
|
|
35
|
-
get(data: GetCallResultRequestData): Promise<
|
|
34
|
+
get(data: GetCallResultRequestData): Promise<GetCallInformation>;
|
|
36
35
|
/**
|
|
37
36
|
* Manage Call with `callLeg`
|
|
38
37
|
* This method is used to manage ongoing, connected calls. This method is only used when using the `PlayFiles` and `Say` instructions in the request body. This method uses SVAML in the request body to perform various tasks related to the call. For more information about SVAML, see the [Callback API](/docs/voice/api-reference/svaml/) documentation. Note: You can only use this method for calls that originate from or terminate to PSTN or SIP networks.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/// <reference types="jest" />
|
|
2
|
-
import {
|
|
2
|
+
import { GetCallInformation } from '../../../models';
|
|
3
3
|
import { CallsApi, GetCallResultRequestData, ManageWithCallLegRequestData, UpdateCallRequestData } from './calls-api';
|
|
4
4
|
export declare class CallsApiFixture implements Partial<Readonly<CallsApi>> {
|
|
5
5
|
/**
|
|
6
6
|
* Fixture associated to function getCallResult
|
|
7
7
|
*/
|
|
8
|
-
get: jest.Mock<Promise<
|
|
8
|
+
get: jest.Mock<Promise<GetCallInformation>, [GetCallResultRequestData]>;
|
|
9
9
|
/**
|
|
10
10
|
* Fixture associated to function manageCallWithCallLeg
|
|
11
11
|
*/
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CallsApi = void 0;
|
|
4
|
-
const
|
|
5
|
-
class CallsApi extends
|
|
4
|
+
const voice_domain_api_1 = require("../voice-domain-api");
|
|
5
|
+
class CallsApi extends voice_domain_api_1.VoiceDomainApi {
|
|
6
6
|
/**
|
|
7
7
|
* Initialize your interface
|
|
8
8
|
*
|
|
@@ -47,7 +47,9 @@ class CallsApi extends voice_api_1.VoiceApi {
|
|
|
47
47
|
'Content-Type': 'application/json',
|
|
48
48
|
'Accept': 'application/json',
|
|
49
49
|
};
|
|
50
|
-
const body = data['
|
|
50
|
+
const body = data['manageWithCallLegRequestBody']
|
|
51
|
+
? JSON.stringify(data['manageWithCallLegRequestBody'])
|
|
52
|
+
: '{}';
|
|
51
53
|
const path = `/calling/v1/calls/id/${data['callId']}/leg/${data['callLeg']}`;
|
|
52
54
|
const basePathUrl = this.client.apiClientOptions.basePath + path;
|
|
53
55
|
const requestOptions = await this.client.prepareOptions(basePathUrl, 'PATCH', getParams, headers, body, path);
|
|
@@ -71,7 +73,7 @@ class CallsApi extends voice_api_1.VoiceApi {
|
|
|
71
73
|
'Content-Type': 'application/json',
|
|
72
74
|
'Accept': 'application/json',
|
|
73
75
|
};
|
|
74
|
-
const body = data['
|
|
76
|
+
const body = data['updateCallRequestBody'] ? JSON.stringify(data['updateCallRequestBody']) : '{}';
|
|
75
77
|
const path = `/calling/v1/calls/id/${data['callId']}`;
|
|
76
78
|
const basePathUrl = this.client.apiClientOptions.basePath + path;
|
|
77
79
|
const requestOptions = await this.client.prepareOptions(basePathUrl, 'PATCH', getParams, headers, body, path);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calls-api.js","sourceRoot":"","sources":["../../../../src/rest/v1/calls/calls-api.ts"],"names":[],"mappings":";;;AAQA,
|
|
1
|
+
{"version":3,"file":"calls-api.js","sourceRoot":"","sources":["../../../../src/rest/v1/calls/calls-api.ts"],"names":[],"mappings":";;;AAQA,0DAAqD;AAqBrD,MAAa,QAAS,SAAQ,iCAAc;IAE1C;;;;OAIG;IACH,YAAY,qBAA4C;QACtD,KAAK,CAAC,qBAAqB,EAAE,UAAU,CAAC,CAAC;IAC3C,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAC,GAAG,CAAC,IAA8B;QAC7C,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC;QACpC,MAAM,SAAS,GAAG,IAAI,CAAC,MAAM,CAAC,kBAAkB,CAA2B,IAAI,EAAE,EAAa,CAAC,CAAC;QAChG,MAAM,OAAO,GAA0C;YACrD,cAAc,EAAE,kBAAkB;YAClC,QAAQ,EAAE,kBAAkB;SAC7B,CAAC;QAEF,MAAM,IAAI,GAAgB,EAAE,CAAC;QAC7B,MAAM,IAAI,GAAG,wBAAwB,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC;QACtD,MAAM,WAAW,GAAG,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,QAAQ,GAAG,IAAI,CAAC;QAEjE,MAAM,cAAc,GACd,MAAM,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,WAAW,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,IAAI,SAAS,EAAE,IAAI,CAAC,CAAC;QACxG,MAAM,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,cAAc,CAAC,QAAQ,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC;QAExF,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAqB;YACjD,GAAG;YACH,cAAc;YACd,OAAO,EAAE,IAAI,CAA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,EAAE,CAAC;QACpC,MAAM,SAAS,GAAG,IAAI,CAAC,MAAM,CAAC,kBAAkB,CAAwB,IAAI,EAAE,EAAa,CAAC,CAAC;QAC7F,MAAM,OAAO,GAA0C;YACrD,cAAc,EAAE,kBAAkB;YAClC,QAAQ,EAAE,kBAAkB;SAC7B,CAAC;QAEF,MAAM,IAAI,GAAgB,IAAI,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;QAC/G,MAAM,IAAI,GAAG,wBAAwB,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC;QACtD,MAAM,WAAW,GAAG,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,QAAQ,GAAG,IAAI,CAAC;QAEjE,MAAM,cAAc,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,WAAW,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;QAC9G,MAAM,GAAG,GAAG,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC,cAAc,CAAC,QAAQ,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC;QAExF,OAAO,IAAI,CAAC,MAAM,CAAC,WAAW,CAAO;YACnC,GAAG;YACH,cAAc;YACd,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,WAAW,EAAE,YAAY;SAC1B,CAAC,CAAC;IACL,CAAC;CAEF;AAlGD,4BAkGC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { GetConferenceInfoResponse, ManageConferenceParticipantRequest } from '../../../models/';
|
|
1
|
+
import { CalloutResponse, GetConferenceInfoResponse, ManageConferenceParticipantRequest } from '../../../models/';
|
|
2
2
|
import { SinchClientParameters } from '@sinch/sdk-client';
|
|
3
|
-
import {
|
|
3
|
+
import { VoiceDomainApi } from '../voice-domain-api';
|
|
4
|
+
import { ConferenceCalloutRequestData } from '../callouts';
|
|
4
5
|
export interface GetConferenceInfoRequestData {
|
|
5
6
|
/** The unique identifier of the conference. The user sets this value. */
|
|
6
7
|
'conferenceId': string;
|
|
@@ -23,13 +24,20 @@ export interface ManageParticipantRequestData {
|
|
|
23
24
|
/** */
|
|
24
25
|
'manageParticipantRequestBody'?: ManageConferenceParticipantRequest;
|
|
25
26
|
}
|
|
26
|
-
export declare class ConferencesApi extends
|
|
27
|
+
export declare class ConferencesApi extends VoiceDomainApi {
|
|
28
|
+
private calloutApi;
|
|
27
29
|
/**
|
|
28
30
|
* Initialize your interface
|
|
29
31
|
*
|
|
30
32
|
* @param {SinchClientParameters} sinchClientParameters - The parameters used to initialize the API Client.
|
|
31
33
|
*/
|
|
32
34
|
constructor(sinchClientParameters: SinchClientParameters);
|
|
35
|
+
/**
|
|
36
|
+
* Conference Callout Request
|
|
37
|
+
* Makes a conference callout to a phone number.
|
|
38
|
+
* @param { ConferenceCalloutRequestData } data - The data to provide to the API call.
|
|
39
|
+
*/
|
|
40
|
+
call(data: ConferenceCalloutRequestData): Promise<CalloutResponse>;
|
|
33
41
|
/**
|
|
34
42
|
* Get Conference Info
|
|
35
43
|
* Returns information about a conference that matches the provided conference ID.
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
/// <reference types="jest" />
|
|
2
|
-
import { GetConferenceInfoResponse } from '../../../models';
|
|
2
|
+
import { CalloutResponse, GetConferenceInfoResponse } from '../../../models';
|
|
3
3
|
import { ConferencesApi, GetConferenceInfoRequestData, KickAllRequestData, KickParticipantRequestData, ManageParticipantRequestData } from './conferences-api';
|
|
4
|
+
import { ConferenceCalloutRequestData } from '../callouts';
|
|
4
5
|
export declare class ConferencesApiFixture implements Partial<Readonly<ConferencesApi>> {
|
|
6
|
+
/**
|
|
7
|
+
* Fixture associated to function call
|
|
8
|
+
*/
|
|
9
|
+
call: jest.Mock<Promise<CalloutResponse>, [ConferenceCalloutRequestData]>;
|
|
5
10
|
/**
|
|
6
11
|
* Fixture associated to function get
|
|
7
12
|
*/
|
|
@@ -3,6 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ConferencesApiFixture = void 0;
|
|
4
4
|
class ConferencesApiFixture {
|
|
5
5
|
constructor() {
|
|
6
|
+
/**
|
|
7
|
+
* Fixture associated to function call
|
|
8
|
+
*/
|
|
9
|
+
this.call = jest.fn();
|
|
6
10
|
/**
|
|
7
11
|
* Fixture associated to function get
|
|
8
12
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conferences-api.jest.fixture.js","sourceRoot":"","sources":["../../../../src/rest/v1/conferences/conferences-api.jest.fixture.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"conferences-api.jest.fixture.js","sourceRoot":"","sources":["../../../../src/rest/v1/conferences/conferences-api.jest.fixture.ts"],"names":[],"mappings":";;;AAaA,MAAa,qBAAqB;IAAlC;QAEE;;WAEG;QACI,SAAI,GAAwE,IAAI,CAAC,EAAE,EAAE,CAAC;QAC7F;;WAEG;QACI,QAAG,GAAkF,IAAI,CAAC,EAAE,EAAE,CAAC;QACtG;;WAEG;QACI,YAAO,GAAmD,IAAI,CAAC,EAAE,EAAE,CAAC;QAC3E;;WAEG;QACI,oBAAe,GAA2D,IAAI,CAAC,EAAE,EAAE,CAAC;QAC3F;;WAEG;QACI,sBAAiB,GAA6D,IAAI,CAAC,EAAE,EAAE,CAAC;IACjG,CAAC;CAAA;AAtBD,sDAsBC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ConferencesApi = void 0;
|
|
4
|
-
const
|
|
5
|
-
|
|
4
|
+
const voice_domain_api_1 = require("../voice-domain-api");
|
|
5
|
+
const callouts_1 = require("../callouts");
|
|
6
|
+
class ConferencesApi extends voice_domain_api_1.VoiceDomainApi {
|
|
6
7
|
/**
|
|
7
8
|
* Initialize your interface
|
|
8
9
|
*
|
|
@@ -10,6 +11,15 @@ class ConferencesApi extends voice_api_1.VoiceApi {
|
|
|
10
11
|
*/
|
|
11
12
|
constructor(sinchClientParameters) {
|
|
12
13
|
super(sinchClientParameters, 'ConferencesApi');
|
|
14
|
+
this.calloutApi = new callouts_1.CalloutsApi(sinchClientParameters);
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Conference Callout Request
|
|
18
|
+
* Makes a conference callout to a phone number.
|
|
19
|
+
* @param { ConferenceCalloutRequestData } data - The data to provide to the API call.
|
|
20
|
+
*/
|
|
21
|
+
async call(data) {
|
|
22
|
+
return this.calloutApi.conference(data);
|
|
13
23
|
}
|
|
14
24
|
/**
|
|
15
25
|
* Get Conference Info
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conferences-api.js","sourceRoot":"","sources":["../../../../src/rest/v1/conferences/conferences-api.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"conferences-api.js","sourceRoot":"","sources":["../../../../src/rest/v1/conferences/conferences-api.ts"],"names":[],"mappings":";;;AASA,0DAAqD;AACrD,0CAAwE;AAyBxE,MAAa,cAAe,SAAQ,iCAAc;IAIhD;;;;OAIG;IACH,YAAY,qBAA4C;QACtD,KAAK,CAAC,qBAAqB,EAAE,gBAAgB,CAAC,CAAC;QAC/C,IAAI,CAAC,UAAU,GAAG,IAAI,sBAAW,CAAC,qBAAqB,CAAC,CAAC;IAC3D,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAC,IAAI,CAAC,IAAkC;QAClD,OAAO,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IAC1C,CAAC;IAED;;;;OAIG;IACI,KAAK,CAAC,GAAG,CAAC,IAAkC;QACjD,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC;QACpC,MAAM,SAAS,GAAG,IAAI,CAAC,MAAM,CAAC,kBAAkB,CAA+B,IAAI,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,wCAyIC"}
|
package/dist/rest/v1/enums.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export {};
|
package/dist/rest/v1/index.d.ts
CHANGED
package/dist/rest/v1/index.js
CHANGED
|
@@ -20,5 +20,5 @@ __exportStar(require("./callouts"), exports);
|
|
|
20
20
|
__exportStar(require("./calls"), exports);
|
|
21
21
|
__exportStar(require("./conferences"), exports);
|
|
22
22
|
__exportStar(require("./enums"), exports);
|
|
23
|
-
__exportStar(require("./voice"), exports);
|
|
23
|
+
__exportStar(require("./voice-service"), exports);
|
|
24
24
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/rest/v1/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,8CAA4B;AAC5B,6CAA2B;AAC3B,0CAAwB;AACxB,gDAA8B;AAC9B,0CAAwB;AACxB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/rest/v1/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,8CAA4B;AAC5B,6CAA2B;AAC3B,0CAAwB;AACxB,gDAA8B;AAC9B,0CAAwB;AACxB,kDAAgC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Api, ApiClient, ApplicationCredentials, SinchClientParameters, VoiceRegion } from '@sinch/sdk-client';
|
|
2
|
-
export declare class
|
|
2
|
+
export declare class VoiceDomainApi implements Api {
|
|
3
3
|
readonly apiName: string;
|
|
4
4
|
client?: ApiClient;
|
|
5
5
|
private sinchClientParameters;
|