bandwidth-sdk 8.1.5 → 8.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/deploy.yml +1 -1
- package/.openapi-generator/FILES +4 -0
- package/README.md +2 -0
- package/api/media-api.ts +12 -12
- package/bandwidth.yml +65 -4
- package/configuration.ts +8 -2
- package/coverage/clover.xml +121 -104
- package/coverage/coverage-final.json +17 -15
- package/coverage/lcov-report/index.html +24 -24
- package/coverage/lcov-report/node-sdk/api/calls-api.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/api/conferences-api.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/api/endpoints-api.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/api/index.html +1 -1
- package/coverage/lcov-report/node-sdk/api/media-api.ts.html +13 -13
- package/coverage/lcov-report/node-sdk/api/messages-api.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/api/mfaapi.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/api/multi-channel-api.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/api/phone-number-lookup-api.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/api/recordings-api.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/api/statistics-api.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/api/toll-free-verification-api.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/api/transcriptions-api.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/api.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/base.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/common.ts.html +18 -18
- package/coverage/lcov-report/node-sdk/configuration.ts.html +31 -13
- package/coverage/lcov-report/node-sdk/index.html +19 -19
- package/coverage/lcov-report/node-sdk/models/business-entity-type-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/business-registration-type-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/Bxml.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/NestableVerb.ts.html +14 -14
- package/coverage/lcov-report/node-sdk/models/bxml/Response.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/Root.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/Verb.ts.html +13 -13
- package/coverage/lcov-report/node-sdk/models/bxml/index.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/index.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Bridge.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Conference.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Connect.ts.html +5 -2
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/CustomParam.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Endpoint.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Forward.ts.html +8 -2
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Gather.ts.html +26 -2
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Hangup.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Pause.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/PauseRecording.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/PhoneNumber.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/PlayAudio.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Record.ts.html +8 -2
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Redirect.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Refer.ts.html +190 -0
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/ResumeRecording.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Ring.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/SendDtmf.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/SipUri.ts.html +5 -5
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/SpeakSentence.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartGather.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartRecording.ts.html +8 -2
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartStream.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartTranscription.ts.html +8 -2
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopGather.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopRecording.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopStream.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopTranscription.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StreamParam.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Tag.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Transfer.ts.html +5 -2
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/index.html +23 -8
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/index.ts.html +7 -4
- package/coverage/lcov-report/node-sdk/models/call-direction-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/call-state-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/call-transcription-detected-language-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/call-transcription-track-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/callback-method-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/card-width-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/completed-lookup-status-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/conference-state-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/deactivation-event-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/device-status-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/endpoint-direction-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/endpoint-event-type-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/endpoint-status-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/endpoint-type-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/file-format-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/in-progress-lookup-status-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/inbound-callback-type-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/index.html +20 -5
- package/coverage/lcov-report/node-sdk/models/index.ts.html +10 -4
- package/coverage/lcov-report/node-sdk/models/latest-message-delivery-status-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/line-type-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/list-message-direction-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/machine-detection-mode-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/message-direction-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/message-status-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/message-type-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/multi-channel-message-channel-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/priority-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/product-type-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/rbm-action-type-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/rbm-media-height-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/rbm-open-url-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/rbm-web-view-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/recording-state-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/redirect-method-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/refer-call-status-enum.ts.html +172 -0
- package/coverage/lcov-report/node-sdk/models/standalone-card-orientation-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/status-callback-type-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/tfv-callback-status-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/tfv-status-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/thumbnail-alignment-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/webhook-subscription-type-enum.ts.html +1 -1
- package/coverage/lcov.info +232 -191
- package/custom_templates/configuration.mustache +7 -1
- package/dist/api/media-api.d.ts +12 -12
- package/dist/api/media-api.js +12 -12
- package/dist/configuration.d.ts +5 -0
- package/dist/configuration.js +5 -4
- package/dist/models/answer-callback.d.ts +1 -1
- package/dist/models/bridge-complete-callback.d.ts +1 -1
- package/dist/models/bridge-target-complete-callback.d.ts +1 -1
- package/dist/models/bxml/verbs/Connect.d.ts +1 -0
- package/dist/models/bxml/verbs/Forward.d.ts +2 -0
- package/dist/models/bxml/verbs/Gather.d.ts +8 -0
- package/dist/models/bxml/verbs/Record.d.ts +2 -0
- package/dist/models/bxml/verbs/Refer.d.ts +27 -0
- package/dist/models/bxml/verbs/Refer.js +45 -0
- package/dist/models/bxml/verbs/StartRecording.d.ts +2 -0
- package/dist/models/bxml/verbs/StartTranscription.d.ts +2 -0
- package/dist/models/bxml/verbs/Transfer.d.ts +1 -0
- package/dist/models/bxml/verbs/index.d.ts +1 -0
- package/dist/models/bxml/verbs/index.js +1 -0
- package/dist/models/conference-completed-callback.d.ts +1 -1
- package/dist/models/conference-created-callback.d.ts +1 -1
- package/dist/models/conference-member-exit-callback.d.ts +1 -1
- package/dist/models/conference-member-join-callback.d.ts +1 -1
- package/dist/models/conference-recording-available-callback.d.ts +1 -1
- package/dist/models/conference-redirect-callback.d.ts +1 -1
- package/dist/models/disconnect-callback.d.ts +1 -1
- package/dist/models/dtmf-callback.d.ts +1 -1
- package/dist/models/gather-callback.d.ts +1 -1
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/dist/models/initiate-callback.d.ts +1 -1
- package/dist/models/machine-detection-complete-callback.d.ts +1 -1
- package/dist/models/recording-available-callback.d.ts +1 -1
- package/dist/models/recording-complete-callback.d.ts +1 -1
- package/dist/models/redirect-callback.d.ts +1 -1
- package/dist/models/refer-call-status-enum.d.ts +19 -0
- package/dist/models/refer-call-status-enum.js +23 -0
- package/dist/models/refer-complete-callback.d.ts +72 -0
- package/dist/models/refer-complete-callback.js +15 -0
- package/dist/models/transcription-available-callback.d.ts +1 -1
- package/dist/models/transfer-answer-callback.d.ts +1 -1
- package/dist/models/transfer-complete-callback.d.ts +1 -1
- package/dist/models/transfer-disconnect-callback.d.ts +1 -1
- package/docs/AnswerCallback.md +1 -1
- package/docs/BridgeCompleteCallback.md +1 -1
- package/docs/BridgeTargetCompleteCallback.md +1 -1
- package/docs/ConferenceCompletedCallback.md +1 -1
- package/docs/ConferenceCreatedCallback.md +1 -1
- package/docs/ConferenceMemberExitCallback.md +1 -1
- package/docs/ConferenceMemberJoinCallback.md +1 -1
- package/docs/ConferenceRecordingAvailableCallback.md +1 -1
- package/docs/ConferenceRedirectCallback.md +1 -1
- package/docs/DisconnectCallback.md +1 -1
- package/docs/DtmfCallback.md +1 -1
- package/docs/GatherCallback.md +1 -1
- package/docs/InitiateCallback.md +1 -1
- package/docs/MachineDetectionCompleteCallback.md +1 -1
- package/docs/MediaApi.md +6 -6
- package/docs/RecordingAvailableCallback.md +1 -1
- package/docs/RecordingCompleteCallback.md +1 -1
- package/docs/RedirectCallback.md +1 -1
- package/docs/ReferCallStatusEnum.md +11 -0
- package/docs/ReferCompleteCallback.md +49 -0
- package/docs/TranscriptionAvailableCallback.md +1 -1
- package/docs/TransferAnswerCallback.md +1 -1
- package/docs/TransferCompleteCallback.md +1 -1
- package/docs/TransferDisconnectCallback.md +1 -1
- package/models/answer-callback.ts +1 -1
- package/models/bridge-complete-callback.ts +1 -1
- package/models/bridge-target-complete-callback.ts +1 -1
- package/models/bxml/verbs/Connect.ts +1 -0
- package/models/bxml/verbs/Forward.ts +2 -0
- package/models/bxml/verbs/Gather.ts +8 -0
- package/models/bxml/verbs/Record.ts +2 -0
- package/models/bxml/verbs/Refer.ts +35 -0
- package/models/bxml/verbs/StartRecording.ts +2 -0
- package/models/bxml/verbs/StartTranscription.ts +2 -0
- package/models/bxml/verbs/Transfer.ts +1 -0
- package/models/bxml/verbs/index.ts +1 -0
- package/models/conference-completed-callback.ts +1 -1
- package/models/conference-created-callback.ts +1 -1
- package/models/conference-member-exit-callback.ts +1 -1
- package/models/conference-member-join-callback.ts +1 -1
- package/models/conference-recording-available-callback.ts +1 -1
- package/models/conference-redirect-callback.ts +1 -1
- package/models/disconnect-callback.ts +1 -1
- package/models/dtmf-callback.ts +1 -1
- package/models/gather-callback.ts +1 -1
- package/models/index.ts +2 -0
- package/models/initiate-callback.ts +1 -1
- package/models/machine-detection-complete-callback.ts +1 -1
- package/models/recording-available-callback.ts +1 -1
- package/models/recording-complete-callback.ts +1 -1
- package/models/redirect-callback.ts +1 -1
- package/models/refer-call-status-enum.ts +29 -0
- package/models/refer-complete-callback.ts +84 -0
- package/models/transcription-available-callback.ts +1 -1
- package/models/transfer-answer-callback.ts +1 -1
- package/models/transfer-complete-callback.ts +1 -1
- package/models/transfer-disconnect-callback.ts +1 -1
- package/package.json +1 -1
- package/tests/smoke/bxml.test.ts +24 -7
- package/tests/unit/api/calls-api.test.ts +1 -2
- package/tests/unit/api/conferences-api.test.ts +1 -2
- package/tests/unit/api/endpoints-api.test.ts +1 -2
- package/tests/unit/api/media-api.test.ts +1 -2
- package/tests/unit/api/messages-api.test.ts +1 -2
- package/tests/unit/api/mfaapi.test.ts +1 -2
- package/tests/unit/api/multi-channel-api.test.ts +1 -2
- package/tests/unit/api/phone-number-lookup-api.test.ts +1 -2
- package/tests/unit/api/recordings-api.test.ts +1 -2
- package/tests/unit/api/statistics-api.test.ts +1 -2
- package/tests/unit/api/toll-free-verification-api.test.ts +1 -2
- package/tests/unit/api/transcriptions-api.test.ts +1 -2
- package/tests/unit/models/bxml/verbs/Connect.test.ts +6 -5
- package/tests/unit/models/bxml/verbs/Forward.test.ts +4 -2
- package/tests/unit/models/bxml/verbs/Gather.test.ts +14 -6
- package/tests/unit/models/bxml/verbs/Record.test.ts +4 -2
- package/tests/unit/models/bxml/verbs/Refer.test.ts +40 -0
- package/tests/unit/models/bxml/verbs/StartRecording.test.ts +4 -2
- package/tests/unit/models/bxml/verbs/StartTranscription.test.ts +8 -6
- package/tests/unit/models/bxml/verbs/Transfer.test.ts +7 -6
- package/tests/unit/models/refer-call-status-enum.test.ts +12 -0
- package/tests/unit/models/refer-complete-callback.test.ts +41 -0
|
@@ -22,6 +22,7 @@ export interface ConfigurationParameters {
|
|
|
22
22
|
clientId?: string;
|
|
23
23
|
clientSecret?: string;
|
|
24
24
|
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
25
|
+
accessTokenUrl?: string;
|
|
25
26
|
awsv4?: AWSv4Configuration;
|
|
26
27
|
basePath?: string;
|
|
27
28
|
serverIndex?: number;
|
|
@@ -57,6 +58,10 @@ export class Configuration {
|
|
|
57
58
|
* @param scopes oauth2 scope
|
|
58
59
|
*/
|
|
59
60
|
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
61
|
+
/**
|
|
62
|
+
* oauth2 token url
|
|
63
|
+
*/
|
|
64
|
+
accessTokenUrl?: string;
|
|
60
65
|
/**
|
|
61
66
|
* temporary access token storage
|
|
62
67
|
*/
|
|
@@ -105,6 +110,7 @@ export class Configuration {
|
|
|
105
110
|
this.clientSecret = param.clientSecret;
|
|
106
111
|
this.tempAccessToken;
|
|
107
112
|
this.tempAccessTokenExpiration;
|
|
113
|
+
this.accessTokenUrl = param.accessTokenUrl ?? 'https://api.bandwidth.com/api/v1/oauth2/token';
|
|
108
114
|
this.accessToken = param.accessToken ?? (async (name, scopes) => {
|
|
109
115
|
const now = Math.floor(Date.now() / 1000);
|
|
110
116
|
if (this.tempAccessToken && (!this.tempAccessTokenExpiration || this.tempAccessTokenExpiration > now + 60)) {
|
|
@@ -115,7 +121,7 @@ export class Configuration {
|
|
|
115
121
|
headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
|
|
116
122
|
auth: { username: this.clientId || '', password: this.clientSecret || '' },
|
|
117
123
|
data: 'grant_type=client_credentials',
|
|
118
|
-
url:
|
|
124
|
+
url: this.accessTokenUrl
|
|
119
125
|
};
|
|
120
126
|
const response = await globalAxios.request(tokenRequestArgs);
|
|
121
127
|
this.tempAccessToken = response.data.access_token;
|
package/dist/api/media-api.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export declare const MediaApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
21
21
|
* Deletes a media file from Bandwidth API server. Make sure you don\'t have any application scripts still using the media before you delete. If you accidentally delete a media file you can immediately upload a new file with the same name.
|
|
22
22
|
* @summary Delete Media
|
|
23
23
|
* @param {string} accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
|
|
24
|
-
* @param {string} mediaId
|
|
24
|
+
* @param {string} mediaId The ID of the media file.
|
|
25
25
|
* @param {*} [options] Override http request option.
|
|
26
26
|
* @throws {RequiredError}
|
|
27
27
|
*/
|
|
@@ -30,7 +30,7 @@ export declare const MediaApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
30
30
|
* Downloads a media file you previously uploaded.
|
|
31
31
|
* @summary Get Media
|
|
32
32
|
* @param {string} accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
|
|
33
|
-
* @param {string} mediaId
|
|
33
|
+
* @param {string} mediaId The ID of the media file.
|
|
34
34
|
* @param {*} [options] Override http request option.
|
|
35
35
|
* @throws {RequiredError}
|
|
36
36
|
*/
|
|
@@ -48,7 +48,7 @@ export declare const MediaApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
48
48
|
* Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. A list of supported media types can be found at [Bandwidth Support](https://www.bandwidth.com/support/en/articles/12823220-what-mms-file-types-are-supported).
|
|
49
49
|
* @summary Upload Media
|
|
50
50
|
* @param {string} accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
|
|
51
|
-
* @param {string} mediaId
|
|
51
|
+
* @param {string} mediaId The ID of the media file.
|
|
52
52
|
* @param {File} body
|
|
53
53
|
* @param {string} [contentType] The media type of the entity-body.
|
|
54
54
|
* @param {string} [cacheControl] General-header field is used to specify directives that MUST be obeyed by all caching mechanisms along the request/response chain.
|
|
@@ -65,7 +65,7 @@ export declare const MediaApiFp: (configuration?: Configuration) => {
|
|
|
65
65
|
* Deletes a media file from Bandwidth API server. Make sure you don\'t have any application scripts still using the media before you delete. If you accidentally delete a media file you can immediately upload a new file with the same name.
|
|
66
66
|
* @summary Delete Media
|
|
67
67
|
* @param {string} accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
|
|
68
|
-
* @param {string} mediaId
|
|
68
|
+
* @param {string} mediaId The ID of the media file.
|
|
69
69
|
* @param {*} [options] Override http request option.
|
|
70
70
|
* @throws {RequiredError}
|
|
71
71
|
*/
|
|
@@ -74,7 +74,7 @@ export declare const MediaApiFp: (configuration?: Configuration) => {
|
|
|
74
74
|
* Downloads a media file you previously uploaded.
|
|
75
75
|
* @summary Get Media
|
|
76
76
|
* @param {string} accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
|
|
77
|
-
* @param {string} mediaId
|
|
77
|
+
* @param {string} mediaId The ID of the media file.
|
|
78
78
|
* @param {*} [options] Override http request option.
|
|
79
79
|
* @throws {RequiredError}
|
|
80
80
|
*/
|
|
@@ -92,7 +92,7 @@ export declare const MediaApiFp: (configuration?: Configuration) => {
|
|
|
92
92
|
* Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. A list of supported media types can be found at [Bandwidth Support](https://www.bandwidth.com/support/en/articles/12823220-what-mms-file-types-are-supported).
|
|
93
93
|
* @summary Upload Media
|
|
94
94
|
* @param {string} accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
|
|
95
|
-
* @param {string} mediaId
|
|
95
|
+
* @param {string} mediaId The ID of the media file.
|
|
96
96
|
* @param {File} body
|
|
97
97
|
* @param {string} [contentType] The media type of the entity-body.
|
|
98
98
|
* @param {string} [cacheControl] General-header field is used to specify directives that MUST be obeyed by all caching mechanisms along the request/response chain.
|
|
@@ -109,7 +109,7 @@ export declare const MediaApiFactory: (configuration?: Configuration, basePath?:
|
|
|
109
109
|
* Deletes a media file from Bandwidth API server. Make sure you don\'t have any application scripts still using the media before you delete. If you accidentally delete a media file you can immediately upload a new file with the same name.
|
|
110
110
|
* @summary Delete Media
|
|
111
111
|
* @param {string} accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
|
|
112
|
-
* @param {string} mediaId
|
|
112
|
+
* @param {string} mediaId The ID of the media file.
|
|
113
113
|
* @param {*} [options] Override http request option.
|
|
114
114
|
* @throws {RequiredError}
|
|
115
115
|
*/
|
|
@@ -118,7 +118,7 @@ export declare const MediaApiFactory: (configuration?: Configuration, basePath?:
|
|
|
118
118
|
* Downloads a media file you previously uploaded.
|
|
119
119
|
* @summary Get Media
|
|
120
120
|
* @param {string} accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
|
|
121
|
-
* @param {string} mediaId
|
|
121
|
+
* @param {string} mediaId The ID of the media file.
|
|
122
122
|
* @param {*} [options] Override http request option.
|
|
123
123
|
* @throws {RequiredError}
|
|
124
124
|
*/
|
|
@@ -136,7 +136,7 @@ export declare const MediaApiFactory: (configuration?: Configuration, basePath?:
|
|
|
136
136
|
* Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. A list of supported media types can be found at [Bandwidth Support](https://www.bandwidth.com/support/en/articles/12823220-what-mms-file-types-are-supported).
|
|
137
137
|
* @summary Upload Media
|
|
138
138
|
* @param {string} accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
|
|
139
|
-
* @param {string} mediaId
|
|
139
|
+
* @param {string} mediaId The ID of the media file.
|
|
140
140
|
* @param {File} body
|
|
141
141
|
* @param {string} [contentType] The media type of the entity-body.
|
|
142
142
|
* @param {string} [cacheControl] General-header field is used to specify directives that MUST be obeyed by all caching mechanisms along the request/response chain.
|
|
@@ -153,7 +153,7 @@ export declare class MediaApi extends BaseAPI {
|
|
|
153
153
|
* Deletes a media file from Bandwidth API server. Make sure you don\'t have any application scripts still using the media before you delete. If you accidentally delete a media file you can immediately upload a new file with the same name.
|
|
154
154
|
* @summary Delete Media
|
|
155
155
|
* @param {string} accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
|
|
156
|
-
* @param {string} mediaId
|
|
156
|
+
* @param {string} mediaId The ID of the media file.
|
|
157
157
|
* @param {*} [options] Override http request option.
|
|
158
158
|
* @throws {RequiredError}
|
|
159
159
|
*/
|
|
@@ -162,7 +162,7 @@ export declare class MediaApi extends BaseAPI {
|
|
|
162
162
|
* Downloads a media file you previously uploaded.
|
|
163
163
|
* @summary Get Media
|
|
164
164
|
* @param {string} accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
|
|
165
|
-
* @param {string} mediaId
|
|
165
|
+
* @param {string} mediaId The ID of the media file.
|
|
166
166
|
* @param {*} [options] Override http request option.
|
|
167
167
|
* @throws {RequiredError}
|
|
168
168
|
*/
|
|
@@ -180,7 +180,7 @@ export declare class MediaApi extends BaseAPI {
|
|
|
180
180
|
* Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. A list of supported media types can be found at [Bandwidth Support](https://www.bandwidth.com/support/en/articles/12823220-what-mms-file-types-are-supported).
|
|
181
181
|
* @summary Upload Media
|
|
182
182
|
* @param {string} accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
|
|
183
|
-
* @param {string} mediaId
|
|
183
|
+
* @param {string} mediaId The ID of the media file.
|
|
184
184
|
* @param {File} body
|
|
185
185
|
* @param {string} [contentType] The media type of the entity-body.
|
|
186
186
|
* @param {string} [cacheControl] General-header field is used to specify directives that MUST be obeyed by all caching mechanisms along the request/response chain.
|
package/dist/api/media-api.js
CHANGED
|
@@ -101,7 +101,7 @@ var MediaApiAxiosParamCreator = function (configuration) {
|
|
|
101
101
|
* Deletes a media file from Bandwidth API server. Make sure you don\'t have any application scripts still using the media before you delete. If you accidentally delete a media file you can immediately upload a new file with the same name.
|
|
102
102
|
* @summary Delete Media
|
|
103
103
|
* @param {string} accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
|
|
104
|
-
* @param {string} mediaId
|
|
104
|
+
* @param {string} mediaId The ID of the media file.
|
|
105
105
|
* @param {*} [options] Override http request option.
|
|
106
106
|
* @throws {RequiredError}
|
|
107
107
|
*/
|
|
@@ -156,7 +156,7 @@ var MediaApiAxiosParamCreator = function (configuration) {
|
|
|
156
156
|
* Downloads a media file you previously uploaded.
|
|
157
157
|
* @summary Get Media
|
|
158
158
|
* @param {string} accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
|
|
159
|
-
* @param {string} mediaId
|
|
159
|
+
* @param {string} mediaId The ID of the media file.
|
|
160
160
|
* @param {*} [options] Override http request option.
|
|
161
161
|
* @throws {RequiredError}
|
|
162
162
|
*/
|
|
@@ -266,7 +266,7 @@ var MediaApiAxiosParamCreator = function (configuration) {
|
|
|
266
266
|
* Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. A list of supported media types can be found at [Bandwidth Support](https://www.bandwidth.com/support/en/articles/12823220-what-mms-file-types-are-supported).
|
|
267
267
|
* @summary Upload Media
|
|
268
268
|
* @param {string} accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
|
|
269
|
-
* @param {string} mediaId
|
|
269
|
+
* @param {string} mediaId The ID of the media file.
|
|
270
270
|
* @param {File} body
|
|
271
271
|
* @param {string} [contentType] The media type of the entity-body.
|
|
272
272
|
* @param {string} [cacheControl] General-header field is used to specify directives that MUST be obeyed by all caching mechanisms along the request/response chain.
|
|
@@ -343,7 +343,7 @@ var MediaApiFp = function (configuration) {
|
|
|
343
343
|
* Deletes a media file from Bandwidth API server. Make sure you don\'t have any application scripts still using the media before you delete. If you accidentally delete a media file you can immediately upload a new file with the same name.
|
|
344
344
|
* @summary Delete Media
|
|
345
345
|
* @param {string} accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
|
|
346
|
-
* @param {string} mediaId
|
|
346
|
+
* @param {string} mediaId The ID of the media file.
|
|
347
347
|
* @param {*} [options] Override http request option.
|
|
348
348
|
* @throws {RequiredError}
|
|
349
349
|
*/
|
|
@@ -367,7 +367,7 @@ var MediaApiFp = function (configuration) {
|
|
|
367
367
|
* Downloads a media file you previously uploaded.
|
|
368
368
|
* @summary Get Media
|
|
369
369
|
* @param {string} accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
|
|
370
|
-
* @param {string} mediaId
|
|
370
|
+
* @param {string} mediaId The ID of the media file.
|
|
371
371
|
* @param {*} [options] Override http request option.
|
|
372
372
|
* @throws {RequiredError}
|
|
373
373
|
*/
|
|
@@ -415,7 +415,7 @@ var MediaApiFp = function (configuration) {
|
|
|
415
415
|
* Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. A list of supported media types can be found at [Bandwidth Support](https://www.bandwidth.com/support/en/articles/12823220-what-mms-file-types-are-supported).
|
|
416
416
|
* @summary Upload Media
|
|
417
417
|
* @param {string} accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
|
|
418
|
-
* @param {string} mediaId
|
|
418
|
+
* @param {string} mediaId The ID of the media file.
|
|
419
419
|
* @param {File} body
|
|
420
420
|
* @param {string} [contentType] The media type of the entity-body.
|
|
421
421
|
* @param {string} [cacheControl] General-header field is used to specify directives that MUST be obeyed by all caching mechanisms along the request/response chain.
|
|
@@ -451,7 +451,7 @@ var MediaApiFactory = function (configuration, basePath, axios) {
|
|
|
451
451
|
* Deletes a media file from Bandwidth API server. Make sure you don\'t have any application scripts still using the media before you delete. If you accidentally delete a media file you can immediately upload a new file with the same name.
|
|
452
452
|
* @summary Delete Media
|
|
453
453
|
* @param {string} accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
|
|
454
|
-
* @param {string} mediaId
|
|
454
|
+
* @param {string} mediaId The ID of the media file.
|
|
455
455
|
* @param {*} [options] Override http request option.
|
|
456
456
|
* @throws {RequiredError}
|
|
457
457
|
*/
|
|
@@ -462,7 +462,7 @@ var MediaApiFactory = function (configuration, basePath, axios) {
|
|
|
462
462
|
* Downloads a media file you previously uploaded.
|
|
463
463
|
* @summary Get Media
|
|
464
464
|
* @param {string} accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
|
|
465
|
-
* @param {string} mediaId
|
|
465
|
+
* @param {string} mediaId The ID of the media file.
|
|
466
466
|
* @param {*} [options] Override http request option.
|
|
467
467
|
* @throws {RequiredError}
|
|
468
468
|
*/
|
|
@@ -484,7 +484,7 @@ var MediaApiFactory = function (configuration, basePath, axios) {
|
|
|
484
484
|
* Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. A list of supported media types can be found at [Bandwidth Support](https://www.bandwidth.com/support/en/articles/12823220-what-mms-file-types-are-supported).
|
|
485
485
|
* @summary Upload Media
|
|
486
486
|
* @param {string} accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
|
|
487
|
-
* @param {string} mediaId
|
|
487
|
+
* @param {string} mediaId The ID of the media file.
|
|
488
488
|
* @param {File} body
|
|
489
489
|
* @param {string} [contentType] The media type of the entity-body.
|
|
490
490
|
* @param {string} [cacheControl] General-header field is used to specify directives that MUST be obeyed by all caching mechanisms along the request/response chain.
|
|
@@ -509,7 +509,7 @@ var MediaApi = /** @class */ (function (_super) {
|
|
|
509
509
|
* Deletes a media file from Bandwidth API server. Make sure you don\'t have any application scripts still using the media before you delete. If you accidentally delete a media file you can immediately upload a new file with the same name.
|
|
510
510
|
* @summary Delete Media
|
|
511
511
|
* @param {string} accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
|
|
512
|
-
* @param {string} mediaId
|
|
512
|
+
* @param {string} mediaId The ID of the media file.
|
|
513
513
|
* @param {*} [options] Override http request option.
|
|
514
514
|
* @throws {RequiredError}
|
|
515
515
|
*/
|
|
@@ -521,7 +521,7 @@ var MediaApi = /** @class */ (function (_super) {
|
|
|
521
521
|
* Downloads a media file you previously uploaded.
|
|
522
522
|
* @summary Get Media
|
|
523
523
|
* @param {string} accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
|
|
524
|
-
* @param {string} mediaId
|
|
524
|
+
* @param {string} mediaId The ID of the media file.
|
|
525
525
|
* @param {*} [options] Override http request option.
|
|
526
526
|
* @throws {RequiredError}
|
|
527
527
|
*/
|
|
@@ -545,7 +545,7 @@ var MediaApi = /** @class */ (function (_super) {
|
|
|
545
545
|
* Upload a file. You may add headers to the request in order to provide some control to your media file. If a file is uploaded with the same name as a file that already exists under this account, the previous file will be overwritten. A list of supported media types can be found at [Bandwidth Support](https://www.bandwidth.com/support/en/articles/12823220-what-mms-file-types-are-supported).
|
|
546
546
|
* @summary Upload Media
|
|
547
547
|
* @param {string} accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
|
|
548
|
-
* @param {string} mediaId
|
|
548
|
+
* @param {string} mediaId The ID of the media file.
|
|
549
549
|
* @param {File} body
|
|
550
550
|
* @param {string} [contentType] The media type of the entity-body.
|
|
551
551
|
* @param {string} [cacheControl] General-header field is used to specify directives that MUST be obeyed by all caching mechanisms along the request/response chain.
|
package/dist/configuration.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ export interface ConfigurationParameters {
|
|
|
27
27
|
clientId?: string;
|
|
28
28
|
clientSecret?: string;
|
|
29
29
|
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
30
|
+
accessTokenUrl?: string;
|
|
30
31
|
awsv4?: AWSv4Configuration;
|
|
31
32
|
basePath?: string;
|
|
32
33
|
serverIndex?: number;
|
|
@@ -61,6 +62,10 @@ export declare class Configuration {
|
|
|
61
62
|
* @param scopes oauth2 scope
|
|
62
63
|
*/
|
|
63
64
|
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
65
|
+
/**
|
|
66
|
+
* oauth2 token url
|
|
67
|
+
*/
|
|
68
|
+
accessTokenUrl?: string;
|
|
64
69
|
/**
|
|
65
70
|
* temporary access token storage
|
|
66
71
|
*/
|
package/dist/configuration.js
CHANGED
|
@@ -65,7 +65,7 @@ var Configuration = /** @class */ (function () {
|
|
|
65
65
|
function Configuration(param) {
|
|
66
66
|
if (param === void 0) { param = {}; }
|
|
67
67
|
var _this = this;
|
|
68
|
-
var _a, _b;
|
|
68
|
+
var _a, _b, _c;
|
|
69
69
|
this.apiKey = param.apiKey;
|
|
70
70
|
this.username = param.username;
|
|
71
71
|
this.password = param.password;
|
|
@@ -73,7 +73,8 @@ var Configuration = /** @class */ (function () {
|
|
|
73
73
|
this.clientSecret = param.clientSecret;
|
|
74
74
|
this.tempAccessToken;
|
|
75
75
|
this.tempAccessTokenExpiration;
|
|
76
|
-
this.
|
|
76
|
+
this.accessTokenUrl = (_a = param.accessTokenUrl) !== null && _a !== void 0 ? _a : 'https://api.bandwidth.com/api/v1/oauth2/token';
|
|
77
|
+
this.accessToken = (_b = param.accessToken) !== null && _b !== void 0 ? _b : (function (name, scopes) { return __awaiter(_this, void 0, void 0, function () {
|
|
77
78
|
var now, tokenRequestArgs, response;
|
|
78
79
|
return __generator(this, function (_a) {
|
|
79
80
|
switch (_a.label) {
|
|
@@ -88,7 +89,7 @@ var Configuration = /** @class */ (function () {
|
|
|
88
89
|
headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
|
|
89
90
|
auth: { username: this.clientId || '', password: this.clientSecret || '' },
|
|
90
91
|
data: 'grant_type=client_credentials',
|
|
91
|
-
url:
|
|
92
|
+
url: this.accessTokenUrl
|
|
92
93
|
};
|
|
93
94
|
return [4 /*yield*/, axios_1.default.request(tokenRequestArgs)];
|
|
94
95
|
case 2:
|
|
@@ -103,7 +104,7 @@ var Configuration = /** @class */ (function () {
|
|
|
103
104
|
this.awsv4 = param.awsv4;
|
|
104
105
|
this.basePath = param.basePath;
|
|
105
106
|
this.serverIndex = param.serverIndex;
|
|
106
|
-
this.baseOptions = __assign(__assign({}, param.baseOptions), { headers: __assign(__assign({}, (
|
|
107
|
+
this.baseOptions = __assign(__assign({}, param.baseOptions), { headers: __assign(__assign({}, (_c = param.baseOptions) === null || _c === void 0 ? void 0 : _c.headers), { 'User-Agent': "OpenAPI-Generator/8.3.0/typescript-axios" }) });
|
|
107
108
|
this.formDataCtor = param.formDataCtor;
|
|
108
109
|
}
|
|
109
110
|
/**
|
|
@@ -16,7 +16,7 @@ import type { MachineDetectionResult } from './machine-detection-result';
|
|
|
16
16
|
*/
|
|
17
17
|
export interface AnswerCallback {
|
|
18
18
|
/**
|
|
19
|
-
* The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect.
|
|
19
|
+
* The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect.
|
|
20
20
|
*/
|
|
21
21
|
'eventType'?: string;
|
|
22
22
|
/**
|
|
@@ -15,7 +15,7 @@ import type { CallDirectionEnum } from './call-direction-enum';
|
|
|
15
15
|
*/
|
|
16
16
|
export interface BridgeCompleteCallback {
|
|
17
17
|
/**
|
|
18
|
-
* The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect.
|
|
18
|
+
* The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect.
|
|
19
19
|
*/
|
|
20
20
|
'eventType'?: string;
|
|
21
21
|
/**
|
|
@@ -15,7 +15,7 @@ import type { CallDirectionEnum } from './call-direction-enum';
|
|
|
15
15
|
*/
|
|
16
16
|
export interface BridgeTargetCompleteCallback {
|
|
17
17
|
/**
|
|
18
|
-
* The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect.
|
|
18
|
+
* The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect.
|
|
19
19
|
*/
|
|
20
20
|
'eventType'?: string;
|
|
21
21
|
/**
|
|
@@ -18,6 +18,14 @@ export interface GatherAttributes {
|
|
|
18
18
|
interDigitTimeout?: number;
|
|
19
19
|
firstDigitTimeout?: number;
|
|
20
20
|
repeatCount?: number;
|
|
21
|
+
input?: string;
|
|
22
|
+
hints?: string;
|
|
23
|
+
language?: string;
|
|
24
|
+
partialResultCallback?: string;
|
|
25
|
+
partialResultCallbackMethod?: string;
|
|
26
|
+
profanityFilter?: boolean;
|
|
27
|
+
speechModel?: string;
|
|
28
|
+
speechTimeout?: number;
|
|
21
29
|
}
|
|
22
30
|
/**
|
|
23
31
|
* @export
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { NestableVerb } from '../NestableVerb';
|
|
2
|
+
import { SipUri } from './SipUri';
|
|
3
|
+
export interface ReferAttributes {
|
|
4
|
+
referCompleteUrl?: string;
|
|
5
|
+
referCompleteMethod?: string;
|
|
6
|
+
tag?: string;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* @export
|
|
10
|
+
* @class Refer
|
|
11
|
+
* @extends {NestableVerb}
|
|
12
|
+
* Represents a Refer verb.
|
|
13
|
+
*/
|
|
14
|
+
export declare class Refer extends NestableVerb {
|
|
15
|
+
attributes: ReferAttributes;
|
|
16
|
+
/**
|
|
17
|
+
* Creates an instance of Refer
|
|
18
|
+
* @param {ReferAttributes} attributes The attributes to add to the element
|
|
19
|
+
* @param {SipUri} sipUri The SipUri to refer to
|
|
20
|
+
*/
|
|
21
|
+
constructor(attributes?: ReferAttributes, sipUri?: SipUri);
|
|
22
|
+
/**
|
|
23
|
+
* Set the SipUri for this Refer verb
|
|
24
|
+
* @param {SipUri} sipUri The SipUri to refer to
|
|
25
|
+
*/
|
|
26
|
+
setSipUri(sipUri: SipUri): void;
|
|
27
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
|
3
|
+
var extendStatics = function (d, b) {
|
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
+
return extendStatics(d, b);
|
|
8
|
+
};
|
|
9
|
+
return function (d, b) {
|
|
10
|
+
if (typeof b !== "function" && b !== null)
|
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
+
extendStatics(d, b);
|
|
13
|
+
function __() { this.constructor = d; }
|
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
+
};
|
|
16
|
+
})();
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.Refer = void 0;
|
|
19
|
+
var NestableVerb_1 = require("../NestableVerb");
|
|
20
|
+
/**
|
|
21
|
+
* @export
|
|
22
|
+
* @class Refer
|
|
23
|
+
* @extends {NestableVerb}
|
|
24
|
+
* Represents a Refer verb.
|
|
25
|
+
*/
|
|
26
|
+
var Refer = /** @class */ (function (_super) {
|
|
27
|
+
__extends(Refer, _super);
|
|
28
|
+
/**
|
|
29
|
+
* Creates an instance of Refer
|
|
30
|
+
* @param {ReferAttributes} attributes The attributes to add to the element
|
|
31
|
+
* @param {SipUri} sipUri The SipUri to refer to
|
|
32
|
+
*/
|
|
33
|
+
function Refer(attributes, sipUri) {
|
|
34
|
+
return _super.call(this, 'Refer', undefined, attributes, sipUri) || this;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Set the SipUri for this Refer verb
|
|
38
|
+
* @param {SipUri} sipUri The SipUri to refer to
|
|
39
|
+
*/
|
|
40
|
+
Refer.prototype.setSipUri = function (sipUri) {
|
|
41
|
+
this.nestedVerbs = [sipUri];
|
|
42
|
+
};
|
|
43
|
+
return Refer;
|
|
44
|
+
}(NestableVerb_1.NestableVerb));
|
|
45
|
+
exports.Refer = Refer;
|
|
@@ -28,6 +28,7 @@ __exportStar(require("./PhoneNumber"), exports);
|
|
|
28
28
|
__exportStar(require("./PlayAudio"), exports);
|
|
29
29
|
__exportStar(require("./Record"), exports);
|
|
30
30
|
__exportStar(require("./Redirect"), exports);
|
|
31
|
+
__exportStar(require("./Refer"), exports);
|
|
31
32
|
__exportStar(require("./ResumeRecording"), exports);
|
|
32
33
|
__exportStar(require("./Ring"), exports);
|
|
33
34
|
__exportStar(require("./SendDtmf"), exports);
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*/
|
|
15
15
|
export interface ConferenceCompletedCallback {
|
|
16
16
|
/**
|
|
17
|
-
* The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect.
|
|
17
|
+
* The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect.
|
|
18
18
|
*/
|
|
19
19
|
'eventType'?: string;
|
|
20
20
|
/**
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*/
|
|
15
15
|
export interface ConferenceCreatedCallback {
|
|
16
16
|
/**
|
|
17
|
-
* The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect.
|
|
17
|
+
* The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect.
|
|
18
18
|
*/
|
|
19
19
|
'eventType'?: string;
|
|
20
20
|
/**
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*/
|
|
15
15
|
export interface ConferenceMemberExitCallback {
|
|
16
16
|
/**
|
|
17
|
-
* The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect.
|
|
17
|
+
* The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect.
|
|
18
18
|
*/
|
|
19
19
|
'eventType'?: string;
|
|
20
20
|
/**
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*/
|
|
15
15
|
export interface ConferenceMemberJoinCallback {
|
|
16
16
|
/**
|
|
17
|
-
* The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect.
|
|
17
|
+
* The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect.
|
|
18
18
|
*/
|
|
19
19
|
'eventType'?: string;
|
|
20
20
|
/**
|
|
@@ -15,7 +15,7 @@ import type { FileFormatEnum } from './file-format-enum';
|
|
|
15
15
|
*/
|
|
16
16
|
export interface ConferenceRecordingAvailableCallback {
|
|
17
17
|
/**
|
|
18
|
-
* The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect.
|
|
18
|
+
* The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect.
|
|
19
19
|
*/
|
|
20
20
|
'eventType'?: string;
|
|
21
21
|
/**
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*/
|
|
15
15
|
export interface ConferenceRedirectCallback {
|
|
16
16
|
/**
|
|
17
|
-
* The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect.
|
|
17
|
+
* The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect.
|
|
18
18
|
*/
|
|
19
19
|
'eventType'?: string;
|
|
20
20
|
/**
|
|
@@ -15,7 +15,7 @@ import type { CallDirectionEnum } from './call-direction-enum';
|
|
|
15
15
|
*/
|
|
16
16
|
export interface DisconnectCallback {
|
|
17
17
|
/**
|
|
18
|
-
* The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect.
|
|
18
|
+
* The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect.
|
|
19
19
|
*/
|
|
20
20
|
'eventType'?: string;
|
|
21
21
|
/**
|
|
@@ -15,7 +15,7 @@ import type { CallDirectionEnum } from './call-direction-enum';
|
|
|
15
15
|
*/
|
|
16
16
|
export interface DtmfCallback {
|
|
17
17
|
/**
|
|
18
|
-
* The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect.
|
|
18
|
+
* The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect.
|
|
19
19
|
*/
|
|
20
20
|
'eventType'?: string;
|
|
21
21
|
/**
|
|
@@ -15,7 +15,7 @@ import type { CallDirectionEnum } from './call-direction-enum';
|
|
|
15
15
|
*/
|
|
16
16
|
export interface GatherCallback {
|
|
17
17
|
/**
|
|
18
|
-
* The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect.
|
|
18
|
+
* The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, referComplete, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect.
|
|
19
19
|
*/
|
|
20
20
|
'eventType'?: string;
|
|
21
21
|
/**
|
package/dist/models/index.d.ts
CHANGED
|
@@ -155,6 +155,8 @@ export * from './recording-transcription-metadata';
|
|
|
155
155
|
export * from './recording-transcriptions';
|
|
156
156
|
export * from './redirect-callback';
|
|
157
157
|
export * from './redirect-method-enum';
|
|
158
|
+
export * from './refer-call-status-enum';
|
|
159
|
+
export * from './refer-complete-callback';
|
|
158
160
|
export * from './sip-connection-metadata';
|
|
159
161
|
export * from './sip-credentials';
|
|
160
162
|
export * from './sms-message-content';
|