@sinch/voice 1.4.3 → 1.6.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/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +24 -0
- package/dist/models/index.js.map +1 -1
- package/dist/models/v1/helper.js +0 -4
- package/dist/models/v1/helper.js.map +1 -1
- package/dist/models/v1/requests/calls/calls-request-data.d.ts +3 -3
- package/dist/models/v1/svaml-request-body/index.d.ts +1 -1
- package/dist/models/v1/svaml-request-body/svaml-request-body.d.ts +16 -1
- package/dist/models/v2/batch-details/batch-details.d.ts +17 -0
- package/dist/models/v2/batch-details/batch-details.js +3 -0
- package/dist/models/v2/batch-details/batch-details.js.map +1 -0
- package/dist/models/v2/batch-details/index.d.ts +1 -0
- package/dist/models/v2/batch-details/index.js +3 -0
- package/dist/models/v2/batch-details/index.js.map +1 -0
- package/dist/models/v2/batch-options/batch-options.d.ts +9 -0
- package/dist/models/v2/batch-options/batch-options.js +3 -0
- package/dist/models/v2/batch-options/batch-options.js.map +1 -0
- package/dist/models/v2/batch-options/index.d.ts +1 -0
- package/dist/models/v2/batch-options/index.js +3 -0
- package/dist/models/v2/batch-options/index.js.map +1 -0
- package/dist/models/v2/batch-request/batch-request.d.ts +16 -0
- package/dist/models/v2/batch-request/batch-request.js +3 -0
- package/dist/models/v2/batch-request/batch-request.js.map +1 -0
- package/dist/models/v2/batch-request/index.d.ts +1 -0
- package/dist/models/v2/batch-request/index.js +3 -0
- package/dist/models/v2/batch-request/index.js.map +1 -0
- package/dist/models/v2/batch-response/batch-response.d.ts +11 -0
- package/dist/models/v2/batch-response/batch-response.js +3 -0
- package/dist/models/v2/batch-response/batch-response.js.map +1 -0
- package/dist/models/v2/batch-response/index.d.ts +1 -0
- package/dist/models/v2/batch-response/index.js +3 -0
- package/dist/models/v2/batch-response/index.js.map +1 -0
- package/dist/models/v2/batch-stop-response/batch-stop-response.d.ts +9 -0
- package/dist/models/v2/batch-stop-response/batch-stop-response.js +3 -0
- package/dist/models/v2/batch-stop-response/batch-stop-response.js.map +1 -0
- package/dist/models/v2/batch-stop-response/index.d.ts +1 -0
- package/dist/models/v2/batch-stop-response/index.js +3 -0
- package/dist/models/v2/batch-stop-response/index.js.map +1 -0
- package/dist/models/v2/batch-summary/batch-summary.d.ts +23 -0
- package/dist/models/v2/batch-summary/batch-summary.js +3 -0
- package/dist/models/v2/batch-summary/batch-summary.js.map +1 -0
- package/dist/models/v2/batch-summary/index.d.ts +1 -0
- package/dist/models/v2/batch-summary/index.js +3 -0
- package/dist/models/v2/batch-summary/index.js.map +1 -0
- package/dist/models/v2/call/call.d.ts +103 -0
- package/dist/models/v2/call/call.js +3 -0
- package/dist/models/v2/call/call.js.map +1 -0
- package/dist/models/v2/call/index.d.ts +1 -0
- package/dist/models/v2/call/index.js +3 -0
- package/dist/models/v2/call/index.js.map +1 -0
- package/dist/models/v2/call-behaviors/call-behaviors.d.ts +34 -0
- package/dist/models/v2/call-behaviors/call-behaviors.js +3 -0
- package/dist/models/v2/call-behaviors/call-behaviors.js.map +1 -0
- package/dist/models/v2/call-behaviors/index.d.ts +1 -0
- package/dist/models/v2/call-behaviors/index.js +3 -0
- package/dist/models/v2/call-behaviors/index.js.map +1 -0
- package/dist/models/v2/call-destination/call-destination.d.ts +8 -0
- package/dist/models/v2/call-destination/call-destination.js +3 -0
- package/dist/models/v2/call-destination/call-destination.js.map +1 -0
- package/dist/models/v2/call-destination/index.d.ts +1 -0
- package/dist/models/v2/call-destination/index.js +3 -0
- package/dist/models/v2/call-destination/index.js.map +1 -0
- package/dist/models/v2/call-headers-inner/call-headers-inner.d.ts +10 -0
- package/dist/models/v2/call-headers-inner/call-headers-inner.js +8 -0
- package/dist/models/v2/call-headers-inner/call-headers-inner.js.map +1 -0
- package/dist/models/v2/call-headers-inner/index.d.ts +1 -0
- package/dist/models/v2/call-headers-inner/index.js +3 -0
- package/dist/models/v2/call-headers-inner/index.js.map +1 -0
- package/dist/models/v2/call-origin/call-origin.d.ts +6 -0
- package/dist/models/v2/call-origin/call-origin.js +3 -0
- package/dist/models/v2/call-origin/call-origin.js.map +1 -0
- package/dist/models/v2/call-origin/index.d.ts +1 -0
- package/dist/models/v2/call-origin/index.js +3 -0
- package/dist/models/v2/call-origin/index.js.map +1 -0
- package/dist/models/v2/call-patch-request/call-patch-request.d.ts +8 -0
- package/dist/models/v2/call-patch-request/call-patch-request.js +3 -0
- package/dist/models/v2/call-patch-request/call-patch-request.js.map +1 -0
- package/dist/models/v2/call-patch-request/index.d.ts +1 -0
- package/dist/models/v2/call-patch-request/index.js +3 -0
- package/dist/models/v2/call-patch-request/index.js.map +1 -0
- package/dist/models/v2/call-request/call-request.d.ts +8 -0
- package/dist/models/v2/call-request/call-request.js +3 -0
- package/dist/models/v2/call-request/call-request.js.map +1 -0
- package/dist/models/v2/call-request/index.d.ts +1 -0
- package/dist/models/v2/call-request/index.js +3 -0
- package/dist/models/v2/call-request/index.js.map +1 -0
- package/dist/models/v2/call-response/call-response.d.ts +13 -0
- package/dist/models/v2/call-response/call-response.js +3 -0
- package/dist/models/v2/call-response/call-response.js.map +1 -0
- package/dist/models/v2/call-response/index.d.ts +1 -0
- package/dist/models/v2/call-response/index.js +3 -0
- package/dist/models/v2/call-response/index.js.map +1 -0
- package/dist/models/v2/calls-list/calls-list.d.ts +14 -0
- package/dist/models/v2/calls-list/calls-list.js +3 -0
- package/dist/models/v2/calls-list/calls-list.js.map +1 -0
- package/dist/models/v2/calls-list/index.d.ts +1 -0
- package/dist/models/v2/calls-list/index.js +3 -0
- package/dist/models/v2/calls-list/index.js.map +1 -0
- package/dist/models/v2/create-service/create-service.d.ts +17 -0
- package/dist/models/v2/create-service/create-service.js +3 -0
- package/dist/models/v2/create-service/create-service.js.map +1 -0
- package/dist/models/v2/create-service/index.d.ts +1 -0
- package/dist/models/v2/create-service/index.js +3 -0
- package/dist/models/v2/create-service/index.js.map +1 -0
- package/dist/models/v2/describe-svaml-request/describe-svaml-request.d.ts +8 -0
- package/dist/models/v2/describe-svaml-request/describe-svaml-request.js +3 -0
- package/dist/models/v2/describe-svaml-request/describe-svaml-request.js.map +1 -0
- package/dist/models/v2/describe-svaml-request/index.d.ts +1 -0
- package/dist/models/v2/describe-svaml-request/index.js +3 -0
- package/dist/models/v2/describe-svaml-request/index.js.map +1 -0
- package/dist/models/v2/enums.d.ts +14 -0
- package/dist/models/v2/enums.js +3 -0
- package/dist/models/v2/enums.js.map +1 -0
- package/dist/models/v2/index.d.ts +60 -0
- package/dist/models/v2/index.js +77 -0
- package/dist/models/v2/index.js.map +1 -0
- package/dist/models/v2/menu-item/index.d.ts +1 -0
- package/dist/models/v2/menu-item/index.js +3 -0
- package/dist/models/v2/menu-item/index.js.map +1 -0
- package/dist/models/v2/menu-item/menu-item.d.ts +32 -0
- package/dist/models/v2/menu-item/menu-item.js +6 -0
- package/dist/models/v2/menu-item/menu-item.js.map +1 -0
- package/dist/models/v2/menu-prompt/index.d.ts +1 -0
- package/dist/models/v2/menu-prompt/index.js +3 -0
- package/dist/models/v2/menu-prompt/index.js.map +1 -0
- package/dist/models/v2/menu-prompt/menu-prompt.d.ts +10 -0
- package/dist/models/v2/menu-prompt/menu-prompt.js +3 -0
- package/dist/models/v2/menu-prompt/menu-prompt.js.map +1 -0
- package/dist/models/v2/message/index.d.ts +1 -0
- package/dist/models/v2/message/index.js +3 -0
- package/dist/models/v2/message/index.js.map +1 -0
- package/dist/models/v2/message/message.d.ts +6 -0
- package/dist/models/v2/message/message.js +3 -0
- package/dist/models/v2/message/message.js.map +1 -0
- package/dist/models/v2/money/index.d.ts +1 -0
- package/dist/models/v2/money/index.js +3 -0
- package/dist/models/v2/money/index.js.map +1 -0
- package/dist/models/v2/money/money.d.ts +9 -0
- package/dist/models/v2/money/money.js +3 -0
- package/dist/models/v2/money/money.js.map +1 -0
- package/dist/models/v2/pagination-links/index.d.ts +1 -0
- package/dist/models/v2/pagination-links/index.js +3 -0
- package/dist/models/v2/pagination-links/index.js.map +1 -0
- package/dist/models/v2/pagination-links/pagination-links.d.ts +22 -0
- package/dist/models/v2/pagination-links/pagination-links.js +3 -0
- package/dist/models/v2/pagination-links/pagination-links.js.map +1 -0
- package/dist/models/v2/pagination-meta/index.d.ts +1 -0
- package/dist/models/v2/pagination-meta/index.js +3 -0
- package/dist/models/v2/pagination-meta/index.js.map +1 -0
- package/dist/models/v2/pagination-meta/pagination-meta.d.ts +9 -0
- package/dist/models/v2/pagination-meta/pagination-meta.js +3 -0
- package/dist/models/v2/pagination-meta/pagination-meta.js.map +1 -0
- package/dist/models/v2/phone/index.d.ts +1 -0
- package/dist/models/v2/phone/index.js +3 -0
- package/dist/models/v2/phone/index.js.map +1 -0
- package/dist/models/v2/phone/phone.d.ts +11 -0
- package/dist/models/v2/phone/phone.js +3 -0
- package/dist/models/v2/phone/phone.js.map +1 -0
- package/dist/models/v2/phone-details/index.d.ts +1 -0
- package/dist/models/v2/phone-details/index.js +3 -0
- package/dist/models/v2/phone-details/index.js.map +1 -0
- package/dist/models/v2/phone-details/phone-details.d.ts +6 -0
- package/dist/models/v2/phone-details/phone-details.js +6 -0
- package/dist/models/v2/phone-details/phone-details.js.map +1 -0
- package/dist/models/v2/play/index.d.ts +1 -0
- package/dist/models/v2/play/index.js +3 -0
- package/dist/models/v2/play/index.js.map +1 -0
- package/dist/models/v2/play/play.d.ts +4 -0
- package/dist/models/v2/play/play.js +3 -0
- package/dist/models/v2/play/play.js.map +1 -0
- package/dist/models/v2/play-message/index.d.ts +1 -0
- package/dist/models/v2/play-message/index.js +3 -0
- package/dist/models/v2/play-message/index.js.map +1 -0
- package/dist/models/v2/play-message/play-message.d.ts +11 -0
- package/dist/models/v2/play-message/play-message.js +3 -0
- package/dist/models/v2/play-message/play-message.js.map +1 -0
- package/dist/models/v2/recording-destination-type/index.d.ts +1 -0
- package/dist/models/v2/recording-destination-type/index.js +3 -0
- package/dist/models/v2/recording-destination-type/index.js.map +1 -0
- package/dist/models/v2/recording-destination-type/recording-destination-type.d.ts +4 -0
- package/dist/models/v2/recording-destination-type/recording-destination-type.js +3 -0
- package/dist/models/v2/recording-destination-type/recording-destination-type.js.map +1 -0
- package/dist/models/v2/recording-format-type/index.d.ts +1 -0
- package/dist/models/v2/recording-format-type/index.js +3 -0
- package/dist/models/v2/recording-format-type/index.js.map +1 -0
- package/dist/models/v2/recording-format-type/recording-format-type.d.ts +4 -0
- package/dist/models/v2/recording-format-type/recording-format-type.js +3 -0
- package/dist/models/v2/recording-format-type/recording-format-type.js.map +1 -0
- package/dist/models/v2/recording-options/index.d.ts +1 -0
- package/dist/models/v2/recording-options/index.js +3 -0
- package/dist/models/v2/recording-options/index.js.map +1 -0
- package/dist/models/v2/recording-options/recording-options.d.ts +21 -0
- package/dist/models/v2/recording-options/recording-options.js +3 -0
- package/dist/models/v2/recording-options/recording-options.js.map +1 -0
- package/dist/models/v2/recording-type/index.d.ts +1 -0
- package/dist/models/v2/recording-type/index.js +3 -0
- package/dist/models/v2/recording-type/index.js.map +1 -0
- package/dist/models/v2/recording-type/recording-type.d.ts +4 -0
- package/dist/models/v2/recording-type/recording-type.js +3 -0
- package/dist/models/v2/recording-type/recording-type.js.map +1 -0
- package/dist/models/v2/requests/batches/batches-request-data.d.ts +21 -0
- package/dist/models/v2/requests/batches/batches-request-data.js +3 -0
- package/dist/models/v2/requests/batches/batches-request-data.js.map +1 -0
- package/dist/models/v2/requests/calls/calls-request-data.d.ts +87 -0
- package/dist/models/v2/requests/calls/calls-request-data.js +3 -0
- package/dist/models/v2/requests/calls/calls-request-data.js.map +1 -0
- package/dist/models/v2/requests/index.d.ts +5 -0
- package/dist/models/v2/requests/index.js +22 -0
- package/dist/models/v2/requests/index.js.map +1 -0
- package/dist/models/v2/requests/services/services-request-data.d.ts +37 -0
- package/dist/models/v2/requests/services/services-request-data.js +3 -0
- package/dist/models/v2/requests/services/services-request-data.js.map +1 -0
- package/dist/models/v2/requests/sessions/sessions-request-data.d.ts +4 -0
- package/dist/models/v2/requests/sessions/sessions-request-data.js +3 -0
- package/dist/models/v2/requests/sessions/sessions-request-data.js.map +1 -0
- package/dist/models/v2/requests/svaml/svaml-request-data.d.ts +10 -0
- package/dist/models/v2/requests/svaml/svaml-request-data.js +3 -0
- package/dist/models/v2/requests/svaml/svaml-request-data.js.map +1 -0
- package/dist/models/v2/say/index.d.ts +1 -0
- package/dist/models/v2/say/index.js +3 -0
- package/dist/models/v2/say/index.js.map +1 -0
- package/dist/models/v2/say/say.d.ts +9 -0
- package/dist/models/v2/say/say.js +3 -0
- package/dist/models/v2/say/say.js.map +1 -0
- package/dist/models/v2/say-message/index.d.ts +1 -0
- package/dist/models/v2/say-message/index.js +3 -0
- package/dist/models/v2/say-message/index.js.map +1 -0
- package/dist/models/v2/say-message/say-message.d.ts +11 -0
- package/dist/models/v2/say-message/say-message.js +3 -0
- package/dist/models/v2/say-message/say-message.js.map +1 -0
- package/dist/models/v2/service-list/index.d.ts +1 -0
- package/dist/models/v2/service-list/index.js +3 -0
- package/dist/models/v2/service-list/index.js.map +1 -0
- package/dist/models/v2/service-list/service-list.d.ts +14 -0
- package/dist/models/v2/service-list/service-list.js +3 -0
- package/dist/models/v2/service-list/service-list.js.map +1 -0
- package/dist/models/v2/service-response/index.d.ts +1 -0
- package/dist/models/v2/service-response/index.js +3 -0
- package/dist/models/v2/service-response/index.js.map +1 -0
- package/dist/models/v2/service-response/service-response.d.ts +29 -0
- package/dist/models/v2/service-response/service-response.js +3 -0
- package/dist/models/v2/service-response/service-response.js.map +1 -0
- package/dist/models/v2/service-short-response/index.d.ts +1 -0
- package/dist/models/v2/service-short-response/index.js +3 -0
- package/dist/models/v2/service-short-response/index.js.map +1 -0
- package/dist/models/v2/service-short-response/service-short-response.d.ts +26 -0
- package/dist/models/v2/service-short-response/service-short-response.js +3 -0
- package/dist/models/v2/service-short-response/service-short-response.js.map +1 -0
- package/dist/models/v2/session/index.d.ts +1 -0
- package/dist/models/v2/session/index.js +3 -0
- package/dist/models/v2/session/index.js.map +1 -0
- package/dist/models/v2/session/session.d.ts +26 -0
- package/dist/models/v2/session/session.js +3 -0
- package/dist/models/v2/session/session.js.map +1 -0
- package/dist/models/v2/session-state/index.d.ts +1 -0
- package/dist/models/v2/session-state/index.js +3 -0
- package/dist/models/v2/session-state/index.js.map +1 -0
- package/dist/models/v2/session-state/session-state.d.ts +11 -0
- package/dist/models/v2/session-state/session-state.js +3 -0
- package/dist/models/v2/session-state/session-state.js.map +1 -0
- package/dist/models/v2/sip/index.d.ts +1 -0
- package/dist/models/v2/sip/index.js +3 -0
- package/dist/models/v2/sip/index.js.map +1 -0
- package/dist/models/v2/sip/sip.d.ts +8 -0
- package/dist/models/v2/sip/sip.js +3 -0
- package/dist/models/v2/sip/sip.js.map +1 -0
- package/dist/models/v2/sip-call-headers-inner/index.d.ts +1 -0
- package/dist/models/v2/sip-call-headers-inner/index.js +3 -0
- package/dist/models/v2/sip-call-headers-inner/index.js.map +1 -0
- package/dist/models/v2/sip-call-headers-inner/sip-call-headers-inner.d.ts +8 -0
- package/dist/models/v2/sip-call-headers-inner/sip-call-headers-inner.js +6 -0
- package/dist/models/v2/sip-call-headers-inner/sip-call-headers-inner.js.map +1 -0
- package/dist/models/v2/sip-details/index.d.ts +1 -0
- package/dist/models/v2/sip-details/index.js +3 -0
- package/dist/models/v2/sip-details/index.js.map +1 -0
- package/dist/models/v2/sip-details/sip-details.d.ts +12 -0
- package/dist/models/v2/sip-details/sip-details.js +6 -0
- package/dist/models/v2/sip-details/sip-details.js.map +1 -0
- package/dist/models/v2/sip-from/index.d.ts +1 -0
- package/dist/models/v2/sip-from/index.js +3 -0
- package/dist/models/v2/sip-from/index.js.map +1 -0
- package/dist/models/v2/sip-from/sip-from.d.ts +8 -0
- package/dist/models/v2/sip-from/sip-from.js +3 -0
- package/dist/models/v2/sip-from/sip-from.js.map +1 -0
- package/dist/models/v2/sip-from-details/index.d.ts +1 -0
- package/dist/models/v2/sip-from-details/index.js +3 -0
- package/dist/models/v2/sip-from-details/index.js.map +1 -0
- package/dist/models/v2/sip-from-details/sip-from-details.d.ts +8 -0
- package/dist/models/v2/sip-from-details/sip-from-details.js +6 -0
- package/dist/models/v2/sip-from-details/sip-from-details.js.map +1 -0
- package/dist/models/v2/stream/index.d.ts +1 -0
- package/dist/models/v2/stream/index.js +3 -0
- package/dist/models/v2/stream/index.js.map +1 -0
- package/dist/models/v2/stream/stream.d.ts +11 -0
- package/dist/models/v2/stream/stream.js +3 -0
- package/dist/models/v2/stream/stream.js.map +1 -0
- package/dist/models/v2/stream-details/index.d.ts +1 -0
- package/dist/models/v2/stream-details/index.js +3 -0
- package/dist/models/v2/stream-details/index.js.map +1 -0
- package/dist/models/v2/stream-details/stream-details.d.ts +10 -0
- package/dist/models/v2/stream-details/stream-details.js +3 -0
- package/dist/models/v2/stream-details/stream-details.js.map +1 -0
- package/dist/models/v2/stream-options/index.d.ts +1 -0
- package/dist/models/v2/stream-options/index.js +3 -0
- package/dist/models/v2/stream-options/index.js.map +1 -0
- package/dist/models/v2/stream-options/stream-options.d.ts +10 -0
- package/dist/models/v2/stream-options/stream-options.js +3 -0
- package/dist/models/v2/stream-options/stream-options.js.map +1 -0
- package/dist/models/v2/svaml-commands/amd-command/amd-command.d.ts +10 -0
- package/dist/models/v2/svaml-commands/amd-command/amd-command.js +3 -0
- package/dist/models/v2/svaml-commands/amd-command/amd-command.js.map +1 -0
- package/dist/models/v2/svaml-commands/amd-command/amd-events.d.ts +14 -0
- package/dist/models/v2/svaml-commands/amd-command/amd-events.js +3 -0
- package/dist/models/v2/svaml-commands/amd-command/amd-events.js.map +1 -0
- package/dist/models/v2/svaml-commands/amd-command/index.d.ts +2 -0
- package/dist/models/v2/svaml-commands/amd-command/index.js +3 -0
- package/dist/models/v2/svaml-commands/amd-command/index.js.map +1 -0
- package/dist/models/v2/svaml-commands/answer-command/answer-command.d.ts +7 -0
- package/dist/models/v2/svaml-commands/answer-command/answer-command.js +3 -0
- package/dist/models/v2/svaml-commands/answer-command/answer-command.js.map +1 -0
- package/dist/models/v2/svaml-commands/answer-command/index.d.ts +1 -0
- package/dist/models/v2/svaml-commands/answer-command/index.js +3 -0
- package/dist/models/v2/svaml-commands/answer-command/index.js.map +1 -0
- package/dist/models/v2/svaml-commands/bridge-call-command/bridge-call-command.d.ts +11 -0
- package/dist/models/v2/svaml-commands/bridge-call-command/bridge-call-command.js +6 -0
- package/dist/models/v2/svaml-commands/bridge-call-command/bridge-call-command.js.map +1 -0
- package/dist/models/v2/svaml-commands/bridge-call-command/index.d.ts +1 -0
- package/dist/models/v2/svaml-commands/bridge-call-command/index.js +3 -0
- package/dist/models/v2/svaml-commands/bridge-call-command/index.js.map +1 -0
- package/dist/models/v2/svaml-commands/dial-command/call-events.d.ts +18 -0
- package/dist/models/v2/svaml-commands/dial-command/call-events.js +3 -0
- package/dist/models/v2/svaml-commands/dial-command/call-events.js.map +1 -0
- package/dist/models/v2/svaml-commands/dial-command/dial-command.d.ts +24 -0
- package/dist/models/v2/svaml-commands/dial-command/dial-command.js +6 -0
- package/dist/models/v2/svaml-commands/dial-command/dial-command.js.map +1 -0
- package/dist/models/v2/svaml-commands/dial-command/index.d.ts +2 -0
- package/dist/models/v2/svaml-commands/dial-command/index.js +3 -0
- package/dist/models/v2/svaml-commands/dial-command/index.js.map +1 -0
- package/dist/models/v2/svaml-commands/goto-menu-command/goto-menu-command.d.ts +9 -0
- package/dist/models/v2/svaml-commands/goto-menu-command/goto-menu-command.js +3 -0
- package/dist/models/v2/svaml-commands/goto-menu-command/goto-menu-command.js.map +1 -0
- package/dist/models/v2/svaml-commands/goto-menu-command/index.d.ts +1 -0
- package/dist/models/v2/svaml-commands/goto-menu-command/index.js +3 -0
- package/dist/models/v2/svaml-commands/goto-menu-command/index.js.map +1 -0
- package/dist/models/v2/svaml-commands/hangup-command/hangup-command.d.ts +11 -0
- package/dist/models/v2/svaml-commands/hangup-command/hangup-command.js +6 -0
- package/dist/models/v2/svaml-commands/hangup-command/hangup-command.js.map +1 -0
- package/dist/models/v2/svaml-commands/hangup-command/index.d.ts +1 -0
- package/dist/models/v2/svaml-commands/hangup-command/index.js +3 -0
- package/dist/models/v2/svaml-commands/hangup-command/index.js.map +1 -0
- package/dist/models/v2/svaml-commands/index.d.ts +14 -0
- package/dist/models/v2/svaml-commands/index.js +31 -0
- package/dist/models/v2/svaml-commands/index.js.map +1 -0
- package/dist/models/v2/svaml-commands/menu-command/index.d.ts +1 -0
- package/dist/models/v2/svaml-commands/menu-command/index.js +3 -0
- package/dist/models/v2/svaml-commands/menu-command/index.js.map +1 -0
- package/dist/models/v2/svaml-commands/menu-command/menu-command.d.ts +14 -0
- package/dist/models/v2/svaml-commands/menu-command/menu-command.js +3 -0
- package/dist/models/v2/svaml-commands/menu-command/menu-command.js.map +1 -0
- package/dist/models/v2/svaml-commands/messages-command/index.d.ts +2 -0
- package/dist/models/v2/svaml-commands/messages-command/index.js +3 -0
- package/dist/models/v2/svaml-commands/messages-command/index.js.map +1 -0
- package/dist/models/v2/svaml-commands/messages-command/message-events.d.ts +8 -0
- package/dist/models/v2/svaml-commands/messages-command/message-events.js +3 -0
- package/dist/models/v2/svaml-commands/messages-command/message-events.js.map +1 -0
- package/dist/models/v2/svaml-commands/messages-command/messages-command.d.ts +17 -0
- package/dist/models/v2/svaml-commands/messages-command/messages-command.js +6 -0
- package/dist/models/v2/svaml-commands/messages-command/messages-command.js.map +1 -0
- package/dist/models/v2/svaml-commands/pause-command/index.d.ts +1 -0
- package/dist/models/v2/svaml-commands/pause-command/index.js +3 -0
- package/dist/models/v2/svaml-commands/pause-command/index.js.map +1 -0
- package/dist/models/v2/svaml-commands/pause-command/pause-command.d.ts +9 -0
- package/dist/models/v2/svaml-commands/pause-command/pause-command.js +3 -0
- package/dist/models/v2/svaml-commands/pause-command/pause-command.js.map +1 -0
- package/dist/models/v2/svaml-commands/start-recording-command/index.d.ts +2 -0
- package/dist/models/v2/svaml-commands/start-recording-command/index.js +3 -0
- package/dist/models/v2/svaml-commands/start-recording-command/index.js.map +1 -0
- package/dist/models/v2/svaml-commands/start-recording-command/recording-events.d.ts +10 -0
- package/dist/models/v2/svaml-commands/start-recording-command/recording-events.js +3 -0
- package/dist/models/v2/svaml-commands/start-recording-command/recording-events.js.map +1 -0
- package/dist/models/v2/svaml-commands/start-recording-command/start-recording-command.d.ts +17 -0
- package/dist/models/v2/svaml-commands/start-recording-command/start-recording-command.js +6 -0
- package/dist/models/v2/svaml-commands/start-recording-command/start-recording-command.js.map +1 -0
- package/dist/models/v2/svaml-commands/stop-messages-command/index.d.ts +1 -0
- package/dist/models/v2/svaml-commands/stop-messages-command/index.js +3 -0
- package/dist/models/v2/svaml-commands/stop-messages-command/index.js.map +1 -0
- package/dist/models/v2/svaml-commands/stop-messages-command/stop-messages-command.d.ts +11 -0
- package/dist/models/v2/svaml-commands/stop-messages-command/stop-messages-command.js +6 -0
- package/dist/models/v2/svaml-commands/stop-messages-command/stop-messages-command.js.map +1 -0
- package/dist/models/v2/svaml-commands/stop-recording-command/index.d.ts +1 -0
- package/dist/models/v2/svaml-commands/stop-recording-command/index.js +3 -0
- package/dist/models/v2/svaml-commands/stop-recording-command/index.js.map +1 -0
- package/dist/models/v2/svaml-commands/stop-recording-command/stop-recording-command.d.ts +11 -0
- package/dist/models/v2/svaml-commands/stop-recording-command/stop-recording-command.js +6 -0
- package/dist/models/v2/svaml-commands/stop-recording-command/stop-recording-command.js.map +1 -0
- package/dist/models/v2/svaml-commands/svaml-command/index.d.ts +1 -0
- package/dist/models/v2/svaml-commands/svaml-command/index.js +3 -0
- package/dist/models/v2/svaml-commands/svaml-command/index.js.map +1 -0
- package/dist/models/v2/svaml-commands/svaml-command/svaml-command.d.ts +17 -0
- package/dist/models/v2/svaml-commands/svaml-command/svaml-command.js +3 -0
- package/dist/models/v2/svaml-commands/svaml-command/svaml-command.js.map +1 -0
- package/dist/models/v2/svaml-commands/webhook-command/index.d.ts +1 -0
- package/dist/models/v2/svaml-commands/webhook-command/index.js +3 -0
- package/dist/models/v2/svaml-commands/webhook-command/index.js.map +1 -0
- package/dist/models/v2/svaml-commands/webhook-command/webhook-command.d.ts +15 -0
- package/dist/models/v2/svaml-commands/webhook-command/webhook-command.js +6 -0
- package/dist/models/v2/svaml-commands/webhook-command/webhook-command.js.map +1 -0
- package/dist/models/v2/svaml-description-response/index.d.ts +1 -0
- package/dist/models/v2/svaml-description-response/index.js +3 -0
- package/dist/models/v2/svaml-description-response/index.js.map +1 -0
- package/dist/models/v2/svaml-description-response/svaml-description-response.d.ts +7 -0
- package/dist/models/v2/svaml-description-response/svaml-description-response.js +3 -0
- package/dist/models/v2/svaml-description-response/svaml-description-response.js.map +1 -0
- package/dist/models/v2/svaml-input/index.d.ts +1 -0
- package/dist/models/v2/svaml-input/index.js +3 -0
- package/dist/models/v2/svaml-input/index.js.map +1 -0
- package/dist/models/v2/svaml-input/svaml-input.d.ts +20 -0
- package/dist/models/v2/svaml-input/svaml-input.js +3 -0
- package/dist/models/v2/svaml-input/svaml-input.js.map +1 -0
- package/dist/models/v2/transcription-options/index.d.ts +1 -0
- package/dist/models/v2/transcription-options/index.js +3 -0
- package/dist/models/v2/transcription-options/index.js.map +1 -0
- package/dist/models/v2/transcription-options/transcription-options.d.ts +9 -0
- package/dist/models/v2/transcription-options/transcription-options.js +3 -0
- package/dist/models/v2/transcription-options/transcription-options.js.map +1 -0
- package/dist/models/v2/update-service/index.d.ts +1 -0
- package/dist/models/v2/update-service/index.js +3 -0
- package/dist/models/v2/update-service/index.js.map +1 -0
- package/dist/models/v2/update-service/update-service.d.ts +18 -0
- package/dist/models/v2/update-service/update-service.js +3 -0
- package/dist/models/v2/update-service/update-service.js.map +1 -0
- package/dist/models/v2/validate-svaml-request/index.d.ts +1 -0
- package/dist/models/v2/validate-svaml-request/index.js +3 -0
- package/dist/models/v2/validate-svaml-request/index.js.map +1 -0
- package/dist/models/v2/validate-svaml-request/validate-svaml-request.d.ts +18 -0
- package/dist/models/v2/validate-svaml-request/validate-svaml-request.js +3 -0
- package/dist/models/v2/validate-svaml-request/validate-svaml-request.js.map +1 -0
- package/dist/models/v2/validate-svaml-response/index.d.ts +1 -0
- package/dist/models/v2/validate-svaml-response/index.js +3 -0
- package/dist/models/v2/validate-svaml-response/index.js.map +1 -0
- package/dist/models/v2/validate-svaml-response/validate-svaml-response.d.ts +17 -0
- package/dist/models/v2/validate-svaml-response/validate-svaml-response.js +3 -0
- package/dist/models/v2/validate-svaml-response/validate-svaml-response.js.map +1 -0
- package/dist/models/v2/voice-relay/index.d.ts +1 -0
- package/dist/models/v2/voice-relay/index.js +3 -0
- package/dist/models/v2/voice-relay/index.js.map +1 -0
- package/dist/models/v2/voice-relay/voice-relay.d.ts +11 -0
- package/dist/models/v2/voice-relay/voice-relay.js +3 -0
- package/dist/models/v2/voice-relay/voice-relay.js.map +1 -0
- package/dist/models/v2/voice-relay-details/index.d.ts +1 -0
- package/dist/models/v2/voice-relay-details/index.js +3 -0
- package/dist/models/v2/voice-relay-details/index.js.map +1 -0
- package/dist/models/v2/voice-relay-details/voice-relay-details.d.ts +15 -0
- package/dist/models/v2/voice-relay-details/voice-relay-details.js +6 -0
- package/dist/models/v2/voice-relay-details/voice-relay-details.js.map +1 -0
- package/dist/models/v2/webhook-configuration/index.d.ts +1 -0
- package/dist/models/v2/webhook-configuration/index.js +3 -0
- package/dist/models/v2/webhook-configuration/index.js.map +1 -0
- package/dist/models/v2/webhook-configuration/webhook-configuration.d.ts +14 -0
- package/dist/models/v2/webhook-configuration/webhook-configuration.js +3 -0
- package/dist/models/v2/webhook-configuration/webhook-configuration.js.map +1 -0
- package/dist/models/v2/webhook-request/index.d.ts +1 -0
- package/dist/models/v2/webhook-request/index.js +3 -0
- package/dist/models/v2/webhook-request/index.js.map +1 -0
- package/dist/models/v2/webhook-request/webhook-request.d.ts +46 -0
- package/dist/models/v2/webhook-request/webhook-request.js +3 -0
- package/dist/models/v2/webhook-request/webhook-request.js.map +1 -0
- package/dist/models/v2/webhook-response/index.d.ts +1 -0
- package/dist/models/v2/webhook-response/index.js +3 -0
- package/dist/models/v2/webhook-response/index.js.map +1 -0
- package/dist/models/v2/webhook-response/webhook-response.d.ts +27 -0
- package/dist/models/v2/webhook-response/webhook-response.js +3 -0
- package/dist/models/v2/webhook-response/webhook-response.js.map +1 -0
- package/dist/rest/index.d.ts +1 -0
- package/dist/rest/index.js +1 -0
- package/dist/rest/index.js.map +1 -1
- package/dist/rest/v1/applications/applications-api.d.ts +2 -1
- package/dist/rest/v1/applications/applications-api.jest.fixture.js.map +1 -1
- package/dist/rest/v1/applications/applications-api.js +1 -0
- package/dist/rest/v1/applications/applications-api.js.map +1 -1
- package/dist/rest/v1/callbacks/callbacks-webhook.js +1 -2
- package/dist/rest/v1/callbacks/callbacks-webhook.js.map +1 -1
- package/dist/rest/v1/callouts/callouts-api.d.ts +2 -1
- package/dist/rest/v1/callouts/callouts-api.jest.fixture.js.map +1 -1
- package/dist/rest/v1/callouts/callouts-api.js +1 -0
- package/dist/rest/v1/callouts/callouts-api.js.map +1 -1
- package/dist/rest/v1/calls/calls-api.d.ts +2 -1
- package/dist/rest/v1/calls/calls-api.jest.fixture.js.map +1 -1
- package/dist/rest/v1/calls/calls-api.js +1 -0
- package/dist/rest/v1/calls/calls-api.js.map +1 -1
- package/dist/rest/v1/conferences/conferences-api.d.ts +2 -1
- package/dist/rest/v1/conferences/conferences-api.jest.fixture.js.map +1 -1
- package/dist/rest/v1/conferences/conferences-api.js +1 -0
- package/dist/rest/v1/conferences/conferences-api.js.map +1 -1
- package/dist/rest/v1/lazy-voice-api-client.d.ts +10 -0
- package/dist/rest/v1/lazy-voice-api-client.js +38 -0
- package/dist/rest/v1/lazy-voice-api-client.js.map +1 -0
- package/dist/rest/v1/voice-domain-api.d.ts +15 -2
- package/dist/rest/v1/voice-domain-api.js +13 -2
- package/dist/rest/v1/voice-domain-api.js.map +1 -1
- package/dist/rest/v1/voice-service.d.ts +2 -68
- package/dist/rest/v1/voice-service.js +5 -137
- package/dist/rest/v1/voice-service.js.map +1 -1
- package/dist/rest/v2/batches/batches-api.d.ts +35 -0
- package/dist/rest/v2/batches/batches-api.jest.fixture.d.ts +20 -0
- package/dist/rest/v2/batches/batches-api.jest.fixture.js +25 -0
- package/dist/rest/v2/batches/batches-api.jest.fixture.js.map +1 -0
- package/dist/rest/v2/batches/batches-api.js +108 -0
- package/dist/rest/v2/batches/batches-api.js.map +1 -0
- package/dist/rest/v2/batches/index.d.ts +2 -0
- package/dist/rest/v2/batches/index.js +19 -0
- package/dist/rest/v2/batches/index.js.map +1 -0
- package/dist/rest/v2/callbacks/callbacks-webhook.d.ts +63 -0
- package/dist/rest/v2/callbacks/callbacks-webhook.jest.fixture.d.ts +17 -0
- package/dist/rest/v2/callbacks/callbacks-webhook.jest.fixture.js +21 -0
- package/dist/rest/v2/callbacks/callbacks-webhook.jest.fixture.js.map +1 -0
- package/dist/rest/v2/callbacks/callbacks-webhook.js +174 -0
- package/dist/rest/v2/callbacks/callbacks-webhook.js.map +1 -0
- package/dist/rest/v2/callbacks/index.d.ts +2 -0
- package/dist/rest/v2/callbacks/index.js +19 -0
- package/dist/rest/v2/callbacks/index.js.map +1 -0
- package/dist/rest/v2/calls/calls-api.d.ts +43 -0
- package/dist/rest/v2/calls/calls-api.jest.fixture.d.ts +25 -0
- package/dist/rest/v2/calls/calls-api.jest.fixture.js +29 -0
- package/dist/rest/v2/calls/calls-api.jest.fixture.js.map +1 -0
- package/dist/rest/v2/calls/calls-api.js +153 -0
- package/dist/rest/v2/calls/calls-api.js.map +1 -0
- package/dist/rest/v2/calls/index.d.ts +2 -0
- package/dist/rest/v2/calls/index.js +19 -0
- package/dist/rest/v2/calls/index.js.map +1 -0
- package/dist/rest/v2/index.d.ts +9 -0
- package/dist/rest/v2/index.js +38 -0
- package/dist/rest/v2/index.js.map +1 -0
- package/dist/rest/v2/services/index.d.ts +2 -0
- package/dist/rest/v2/services/index.js +19 -0
- package/dist/rest/v2/services/index.js.map +1 -0
- package/dist/rest/v2/services/services-api.d.ts +51 -0
- package/dist/rest/v2/services/services-api.jest.fixture.d.ts +25 -0
- package/dist/rest/v2/services/services-api.jest.fixture.js +29 -0
- package/dist/rest/v2/services/services-api.jest.fixture.js.map +1 -0
- package/dist/rest/v2/services/services-api.js +152 -0
- package/dist/rest/v2/services/services-api.js.map +1 -0
- package/dist/rest/v2/sessions/index.d.ts +2 -0
- package/dist/rest/v2/sessions/index.js +19 -0
- package/dist/rest/v2/sessions/index.js.map +1 -0
- package/dist/rest/v2/sessions/sessions-api.d.ts +13 -0
- package/dist/rest/v2/sessions/sessions-api.jest.fixture.d.ts +8 -0
- package/dist/rest/v2/sessions/sessions-api.jest.fixture.js +13 -0
- package/dist/rest/v2/sessions/sessions-api.jest.fixture.js.map +1 -0
- package/dist/rest/v2/sessions/sessions-api.js +34 -0
- package/dist/rest/v2/sessions/sessions-api.js.map +1 -0
- package/dist/rest/v2/svaml/index.d.ts +2 -0
- package/dist/rest/v2/svaml/index.js +19 -0
- package/dist/rest/v2/svaml/index.js.map +1 -0
- package/dist/rest/v2/svaml/svaml-api.d.ts +22 -0
- package/dist/rest/v2/svaml/svaml-api.jest.fixture.d.ts +12 -0
- package/dist/rest/v2/svaml/svaml-api.jest.fixture.js +17 -0
- package/dist/rest/v2/svaml/svaml-api.jest.fixture.js.map +1 -0
- package/dist/rest/v2/svaml/svaml-api.js +63 -0
- package/dist/rest/v2/svaml/svaml-api.js.map +1 -0
- package/dist/rest/v2/voice-v2-domain-api.d.ts +28 -0
- package/dist/rest/v2/voice-v2-domain-api.js +49 -0
- package/dist/rest/v2/voice-v2-domain-api.js.map +1 -0
- package/dist/rest/v2/voice-v2-service.d.ts +41 -0
- package/dist/rest/v2/voice-v2-service.js +82 -0
- package/dist/rest/v2/voice-v2-service.js.map +1 -0
- package/dist/rest/voice-service.d.ts +72 -0
- package/dist/rest/voice-service.js +122 -0
- package/dist/rest/voice-service.js.map +1 -0
- package/package.json +7 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bridge-call-command.js","sourceRoot":"","sources":["../../../../../src/models/v2/svaml-commands/bridge-call-command/bridge-call-command.ts"],"names":[],"mappings":";;;AASA,sCAAsC;AACzB,QAAA,iBAAiB,GAAG,OAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { BridgeCallCommand } from './bridge-call-command';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/models/v2/svaml-commands/bridge-call-command/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { SvamlCommand } from '../svaml-command';
|
|
2
|
+
/**
|
|
3
|
+
* Webhook to handle call events, used when callBehaviors are set to WEBHOOK
|
|
4
|
+
*/
|
|
5
|
+
export interface CallEvents {
|
|
6
|
+
/** SVAML commands to be executed when the call is answered */
|
|
7
|
+
onAnswer?: SvamlCommand[];
|
|
8
|
+
/** SVAML commands to be executed when the call is busy */
|
|
9
|
+
onBusy?: SvamlCommand[];
|
|
10
|
+
/** SVAML commands to be executed when the call is rejected */
|
|
11
|
+
onReject?: SvamlCommand[];
|
|
12
|
+
/** SVAML commands to be executed when the call is timed out */
|
|
13
|
+
onTimeout?: SvamlCommand[];
|
|
14
|
+
/** SVAML commands to be executed when the call is hung up */
|
|
15
|
+
onHangup?: SvamlCommand[];
|
|
16
|
+
/** SVAML commands to be executed when the call fails */
|
|
17
|
+
onFailure?: SvamlCommand[];
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"call-events.js","sourceRoot":"","sources":["../../../../../src/models/v2/svaml-commands/dial-command/call-events.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { CallDestination } from '../../call-destination';
|
|
2
|
+
import { CallOrigin } from '../../call-origin';
|
|
3
|
+
import { CallEvents } from './call-events';
|
|
4
|
+
/**
|
|
5
|
+
* Initiates a new outbound call leg within the current session. This is a non-blocking command — the next command in the sequence executes immediately while the call is being established in parallel. Call lifecycle events (answer, busy, reject, timeout, hangup, failure) are handled via the `events` property. The `from` and `to` endpoint types should ideally match. If they differ, the platform attempts to convert the `from` value to be compatible with the `to` type. For example, PSTN supports only E.164 phone numbers, so a SIP address such as `sip:46701234567@acme.se` can be converted to an E.164 number. If the `from` value cannot be converted, it defaults to null (anonymous).
|
|
6
|
+
*/
|
|
7
|
+
export interface DialCommand {
|
|
8
|
+
/** Command to initiate a new call */
|
|
9
|
+
command: 'dial';
|
|
10
|
+
/** Identifier for this call leg within the session. Must be unique across all active call legs in the session. Other commands (e.g., `hangup`) can reference this name to target this specific leg. */
|
|
11
|
+
callName?: string;
|
|
12
|
+
/** @see CallOrigin */
|
|
13
|
+
from?: CallOrigin;
|
|
14
|
+
/** @see CallDestination */
|
|
15
|
+
to: CallDestination;
|
|
16
|
+
/** Maximum time in seconds to wait for the call to be answered. If the timeout expires without an answer, the `onTimeout` event is triggered. */
|
|
17
|
+
dialTimeoutDurationSeconds?: number;
|
|
18
|
+
/** Maximum duration of the call in seconds. The call is terminated automatically when this limit is reached. */
|
|
19
|
+
maxCallDurationSeconds?: number;
|
|
20
|
+
/** @see CallEvents */
|
|
21
|
+
events?: CallEvents;
|
|
22
|
+
}
|
|
23
|
+
/** Validation regex for callName */
|
|
24
|
+
export declare const callNamePattern: RegExp;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dial-command.js","sourceRoot":"","sources":["../../../../../src/models/v2/svaml-commands/dial-command/dial-command.ts"],"names":[],"mappings":";;;AAuBA,oCAAoC;AACvB,QAAA,eAAe,GAAG,OAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/models/v2/svaml-commands/dial-command/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Switches execution to another menu within the current menu context. The menu name must be a menu defined in the `menu` command. This is a blocking command — execution waits for the menu to complete before proceeding to the next command. **Important**: this command can only be called within a menu execution context.
|
|
3
|
+
*/
|
|
4
|
+
export interface GotoMenuCommand {
|
|
5
|
+
/** Switch execution to another menu within the current menu context. */
|
|
6
|
+
command: 'gotoMenu';
|
|
7
|
+
/** Name of the target menu to execute next. Must match a key in menus. */
|
|
8
|
+
menuName: string;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"goto-menu-command.js","sourceRoot":"","sources":["../../../../../src/models/v2/svaml-commands/goto-menu-command/goto-menu-command.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { GotoMenuCommand } from './goto-menu-command';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/models/v2/svaml-commands/goto-menu-command/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ends a call leg. This is a non-blocking command — execution continues to the next command in the sequence even though the call has been ended. The `onHangup` event is triggered for the call leg that was ended. Any subsequent commands that target the ended call leg (such as `messages` or other media commands) are valid but will not be executed. Commands that operate independently — such as initiating a new call with `dial` — will execute normally. This makes it possible, for example, to end one call and immediately start another within the same sequence.
|
|
3
|
+
*/
|
|
4
|
+
export interface HangupCommand {
|
|
5
|
+
/** Hangup call */
|
|
6
|
+
command: 'hangup';
|
|
7
|
+
/** Name of the call leg to end, as set by `callName` in the `dial` command. If omitted, the current call leg is ended. */
|
|
8
|
+
callName?: string;
|
|
9
|
+
}
|
|
10
|
+
/** Validation regex for callName */
|
|
11
|
+
export declare const callNamePattern: RegExp;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hangup-command.js","sourceRoot":"","sources":["../../../../../src/models/v2/svaml-commands/hangup-command/hangup-command.ts"],"names":[],"mappings":";;;AASA,oCAAoC;AACvB,QAAA,eAAe,GAAG,OAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { HangupCommand } from './hangup-command';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/models/v2/svaml-commands/hangup-command/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export * from './amd-command';
|
|
2
|
+
export * from './answer-command';
|
|
3
|
+
export * from './bridge-call-command';
|
|
4
|
+
export * from './dial-command';
|
|
5
|
+
export * from './goto-menu-command';
|
|
6
|
+
export * from './hangup-command';
|
|
7
|
+
export * from './menu-command';
|
|
8
|
+
export * from './messages-command';
|
|
9
|
+
export * from './pause-command';
|
|
10
|
+
export * from './start-recording-command';
|
|
11
|
+
export * from './stop-messages-command';
|
|
12
|
+
export * from './stop-recording-command';
|
|
13
|
+
export * from './svaml-command';
|
|
14
|
+
export * from './webhook-command';
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./amd-command"), exports);
|
|
18
|
+
__exportStar(require("./answer-command"), exports);
|
|
19
|
+
__exportStar(require("./bridge-call-command"), exports);
|
|
20
|
+
__exportStar(require("./dial-command"), exports);
|
|
21
|
+
__exportStar(require("./goto-menu-command"), exports);
|
|
22
|
+
__exportStar(require("./hangup-command"), exports);
|
|
23
|
+
__exportStar(require("./menu-command"), exports);
|
|
24
|
+
__exportStar(require("./messages-command"), exports);
|
|
25
|
+
__exportStar(require("./pause-command"), exports);
|
|
26
|
+
__exportStar(require("./start-recording-command"), exports);
|
|
27
|
+
__exportStar(require("./stop-messages-command"), exports);
|
|
28
|
+
__exportStar(require("./stop-recording-command"), exports);
|
|
29
|
+
__exportStar(require("./svaml-command"), exports);
|
|
30
|
+
__exportStar(require("./webhook-command"), exports);
|
|
31
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v2/svaml-commands/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,mDAAiC;AACjC,wDAAsC;AACtC,iDAA+B;AAC/B,sDAAoC;AACpC,mDAAiC;AACjC,iDAA+B;AAC/B,qDAAmC;AACnC,kDAAgC;AAChC,4DAA0C;AAC1C,0DAAwC;AACxC,2DAAyC;AACzC,kDAAgC;AAChC,oDAAkC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { MenuCommand } from './menu-command';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/models/v2/svaml-commands/menu-command/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { MenuItem } from '../../menu-item';
|
|
2
|
+
/**
|
|
3
|
+
* Defines a set of named menus and executes them starting from startMenu. This is a blocking command — execution waits for the menu to complete before proceeding to the next command. Each menu item configures prompts, input collection, timeout handling, and repeat behavior.
|
|
4
|
+
*/
|
|
5
|
+
export interface MenuCommand {
|
|
6
|
+
/** Executes menu-based input collection using the configured menu definitions. */
|
|
7
|
+
command: 'menu';
|
|
8
|
+
/** Name of the menu to execute first. Must match a key in menus. */
|
|
9
|
+
startMenu: string;
|
|
10
|
+
/** Map of menu definitions keyed by menu name. */
|
|
11
|
+
menus: {
|
|
12
|
+
[key: string]: MenuItem;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menu-command.js","sourceRoot":"","sources":["../../../../../src/models/v2/svaml-commands/menu-command/menu-command.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/models/v2/svaml-commands/messages-command/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SvamlCommand } from '../svaml-command';
|
|
2
|
+
/**
|
|
3
|
+
* SVAML commands to execute based on message playback outcomes.
|
|
4
|
+
*/
|
|
5
|
+
export interface MessageEvents {
|
|
6
|
+
/** Commands to execute when all messages in the sequence have finished playing. */
|
|
7
|
+
onFinish?: SvamlCommand[];
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message-events.js","sourceRoot":"","sources":["../../../../../src/models/v2/svaml-commands/messages-command/message-events.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Message } from '../../message';
|
|
2
|
+
import { MessageEvents } from './message-events';
|
|
3
|
+
/**
|
|
4
|
+
* Plays one or more messages on the call. Multiple messages in the array are played sequentially in order. This is a non-blocking command — the next command in the sequence executes immediately while messages play in parallel. Playback outcomes are handled via the `events` property. The `onFinish` event can be used to run a command after all messages complete.
|
|
5
|
+
*/
|
|
6
|
+
export interface MessagesCommand {
|
|
7
|
+
/** Command to play a message on the channel */
|
|
8
|
+
command: 'messages';
|
|
9
|
+
/** Name of the message for identification and reference within the call session. This name is used to uniquely identify the message and must be unique within the current call session. This name can be referenced in other commands (e.g., `stopMessages`) to control this specific message. */
|
|
10
|
+
messagesName?: string;
|
|
11
|
+
/** Ordered list of messages to play. */
|
|
12
|
+
messages: Message[];
|
|
13
|
+
/** @see MessageEvents */
|
|
14
|
+
events?: MessageEvents;
|
|
15
|
+
}
|
|
16
|
+
/** Validation regex for messagesName */
|
|
17
|
+
export declare const messagesNamePattern: RegExp;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"messages-command.js","sourceRoot":"","sources":["../../../../../src/models/v2/svaml-commands/messages-command/messages-command.ts"],"names":[],"mappings":";;;AAgBA,wCAAwC;AAC3B,QAAA,mBAAmB,GAAG,OAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { PauseCommand } from './pause-command';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/models/v2/svaml-commands/pause-command/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Delays execution of the next command in the sequence for a specified duration. This is a blocking command — no further commands execute until the pause completes. The pause does not affect call audio; the call remains connected and audio continues uninterrupted.
|
|
3
|
+
*/
|
|
4
|
+
export interface PauseCommand {
|
|
5
|
+
/** Pause execution. */
|
|
6
|
+
command: 'pause';
|
|
7
|
+
/** Duration of the pause in milliseconds. */
|
|
8
|
+
durationMilliseconds: number;
|
|
9
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pause-command.js","sourceRoot":"","sources":["../../../../../src/models/v2/svaml-commands/pause-command/pause-command.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/models/v2/svaml-commands/start-recording-command/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SvamlCommand } from '../svaml-command';
|
|
2
|
+
/**
|
|
3
|
+
* SVAML commands to execute based on recording lifecycle outcomes.
|
|
4
|
+
*/
|
|
5
|
+
export interface RecordingEvents {
|
|
6
|
+
/** Commands to execute when the recording is successfully stopped. Note that this does not mean that the file is delivered to the configured destination yet. */
|
|
7
|
+
onFinish?: SvamlCommand[];
|
|
8
|
+
/** Commands to execute if the recording fails to start. If omitted, failures are silently ignored and the call flow continues. */
|
|
9
|
+
onFailure?: SvamlCommand[];
|
|
10
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"recording-events.js","sourceRoot":"","sources":["../../../../../src/models/v2/svaml-commands/start-recording-command/recording-events.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { RecordingOptions } from '../../recording-options';
|
|
2
|
+
import { RecordingEvents } from './recording-events';
|
|
3
|
+
/**
|
|
4
|
+
* Starts recording the call. This is a non-blocking command — execution continues to the next command in the sequence immediately after recording begins.
|
|
5
|
+
*/
|
|
6
|
+
export interface StartRecordingCommand {
|
|
7
|
+
/** Command to start recording on the channel */
|
|
8
|
+
command: 'startRecording';
|
|
9
|
+
/** Identifier for this recording within the session. Must be unique across active recordings in the session. Other commands (e.g., `stopRecording`) reference this name to target a specific recording. Setting the recording name is useful for stopping the recording using the `stopRecording` command. If name is not set, recording can only be stopped when the call is disconnected. */
|
|
10
|
+
recordingName?: string;
|
|
11
|
+
/** @see RecordingOptions */
|
|
12
|
+
recordingOptions: RecordingOptions;
|
|
13
|
+
/** @see RecordingEvents */
|
|
14
|
+
events?: RecordingEvents;
|
|
15
|
+
}
|
|
16
|
+
/** Validation regex for recordingName */
|
|
17
|
+
export declare const recordingNamePattern: RegExp;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"start-recording-command.js","sourceRoot":"","sources":["../../../../../src/models/v2/svaml-commands/start-recording-command/start-recording-command.ts"],"names":[],"mappings":";;;AAgBA,yCAAyC;AAC5B,QAAA,oBAAoB,GAAG,OAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { StopMessagesCommand } from './stop-messages-command';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/models/v2/svaml-commands/stop-messages-command/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Stops a message sequence started by a `messages` command. It will also cancel any messages with specified `messagesName` that will appear in the call session in the future. This is a non-blocking command.
|
|
3
|
+
*/
|
|
4
|
+
export interface StopMessagesCommand {
|
|
5
|
+
/** Command to stop playing messages */
|
|
6
|
+
command: 'stopMessages';
|
|
7
|
+
/** Name of the message sequence to stop, as set by `messagesName` in the `messages` command. */
|
|
8
|
+
messagesName: string;
|
|
9
|
+
}
|
|
10
|
+
/** Validation regex for messagesName */
|
|
11
|
+
export declare const messagesNamePattern: RegExp;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stop-messages-command.js","sourceRoot":"","sources":["../../../../../src/models/v2/svaml-commands/stop-messages-command/stop-messages-command.ts"],"names":[],"mappings":";;;AASA,wCAAwC;AAC3B,QAAA,mBAAmB,GAAG,OAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { StopRecordingCommand } from './stop-recording-command';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/models/v2/svaml-commands/stop-recording-command/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Stops a recording previously started by a `startRecording` command. This is a non-blocking command — execution continues to the next command in the sequence immediately after the stop is initiated.
|
|
3
|
+
*/
|
|
4
|
+
export interface StopRecordingCommand {
|
|
5
|
+
/** Command to stop recording on the channel */
|
|
6
|
+
command: 'stopRecording';
|
|
7
|
+
/** Name of the recording to stop, as set by `recordingName` in the `startRecording` command. */
|
|
8
|
+
recordingName: string;
|
|
9
|
+
}
|
|
10
|
+
/** Validation regex for recordingName */
|
|
11
|
+
export declare const recordingNamePattern: RegExp;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stop-recording-command.js","sourceRoot":"","sources":["../../../../../src/models/v2/svaml-commands/stop-recording-command/stop-recording-command.ts"],"names":[],"mappings":";;;AASA,yCAAyC;AAC5B,QAAA,oBAAoB,GAAG,OAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { SvamlCommand } from './svaml-command';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/models/v2/svaml-commands/svaml-command/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { AmdCommand } from '../amd-command';
|
|
2
|
+
import { AnswerCommand } from '../answer-command';
|
|
3
|
+
import { BridgeCallCommand } from '../bridge-call-command';
|
|
4
|
+
import { DialCommand } from '../dial-command';
|
|
5
|
+
import { GotoMenuCommand } from '../goto-menu-command';
|
|
6
|
+
import { HangupCommand } from '../hangup-command';
|
|
7
|
+
import { MenuCommand } from '../menu-command';
|
|
8
|
+
import { MessagesCommand } from '../messages-command';
|
|
9
|
+
import { PauseCommand } from '../pause-command';
|
|
10
|
+
import { StartRecordingCommand } from '../start-recording-command';
|
|
11
|
+
import { StopMessagesCommand } from '../stop-messages-command';
|
|
12
|
+
import { StopRecordingCommand } from '../stop-recording-command';
|
|
13
|
+
import { WebhookCommand } from '../webhook-command';
|
|
14
|
+
/**
|
|
15
|
+
* A single SVAML (Sinch Voice Application Markup Language) command that controls call behavior. The `command` property acts as a discriminator and determines which command schema applies. When multiple commands appear in a `svamlCommands` array, they execute sequentially in order. **Available commands:** - `dial` — Initiate an outbound call leg within the session. - `messages` — Play one or more TTS or audio messages on the call. - `stopMessages` — Stop a currently playing message sequence. - `webhook` — Trigger a mid-call webhook to the application backend for dynamic call control. - `amd` — Detect whether the call was answered by a human or an answering machine. - `hangup` — End the call or a specific call leg within the session. - `answer` — Explicitly answer an incoming call leg before executing further commands. - `pause` — Delay script execution without affecting call audio. - `startRecording` — Begin recording the call. - `stopRecording` — Stop an active call recording. - `bridgeCall` — Add the call to a named bridge for multi-party audio. - `menu` — Run menu-based input collection and route the call based on collected input. - `gotoMenu` — Switch execution to another named menu within the current menu context.
|
|
16
|
+
*/
|
|
17
|
+
export type SvamlCommand = AmdCommand | DialCommand | MessagesCommand | StopMessagesCommand | WebhookCommand | HangupCommand | AnswerCommand | PauseCommand | StartRecordingCommand | StopRecordingCommand | BridgeCallCommand | MenuCommand | GotoMenuCommand;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"svaml-command.js","sourceRoot":"","sources":["../../../../../src/models/v2/svaml-commands/svaml-command/svaml-command.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { WebhookCommand } from './webhook-command';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/models/v2/svaml-commands/webhook-command/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Triggers a mid-call webhook to the application backend, allowing it to return a new set of SVAML commands that control the remainder of the call flow. This is a blocking command — execution pauses until a response is received from the webhook endpoint. The next command in the sequence runs only after the backend responds. Webhook requests use a 5-second timeout. If a `fallbackUrl` is provided, a failed request is re-sent to it — see *Timeouts and failover* in the **Webhooks** section for the authoritative algorithm.
|
|
3
|
+
*/
|
|
4
|
+
export interface WebhookCommand {
|
|
5
|
+
/** Command to trigger a mid-call webhook */
|
|
6
|
+
command: 'webhook';
|
|
7
|
+
/** Name for this webhook event. When triggered, the webhook request\'s `event` property will contain this name prepended with `call.webhook.`. For example, if `webhookName` is set to `\"my.custom.event\"`, the event will be delivered as `\"call.webhook.my.custom.event\"`. */
|
|
8
|
+
webhookName: string;
|
|
9
|
+
/** URL of the webhook endpoint to send the mid-call event to. */
|
|
10
|
+
url: string;
|
|
11
|
+
/** Fallback webhook URL used when the primary webhook URL fails. A failed request is re-sent to this URL immediately. After repeated consecutive failures of the primary URL, requests are sent only here until the primary URL recovers. See *Timeouts and failover* in the **Webhooks** section for the authoritative algorithm. */
|
|
12
|
+
fallbackUrl?: string;
|
|
13
|
+
}
|
|
14
|
+
/** Validation regex for webhookName */
|
|
15
|
+
export declare const webhookNamePattern: RegExp;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhook-command.js","sourceRoot":"","sources":["../../../../../src/models/v2/svaml-commands/webhook-command/webhook-command.ts"],"names":[],"mappings":";;;AAaA,uCAAuC;AAC1B,QAAA,kBAAkB,GAAG,OAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { SvamlDescriptionResponse } from './svaml-description-response';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/v2/svaml-description-response/index.ts"],"names":[],"mappings":""}
|