bandwidth-sdk 7.0.1 → 7.2.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 +11 -4
- package/.github/workflows/test-pr.yml +3 -1
- package/.github/workflows/test-smoke.yml +4 -2
- package/.openapi-generator/FILES +4 -0
- package/README.md +12 -2
- package/api/calls-api.ts +20 -0
- package/api/conferences-api.ts +36 -0
- package/api/media-api.ts +16 -0
- package/api/messages-api.ts +8 -0
- package/api/mfaapi.ts +12 -0
- package/api/multi-channel-api.ts +4 -0
- package/api/phone-number-lookup-api.ts +12 -0
- package/api/recordings-api.ts +40 -0
- package/api/statistics-api.ts +4 -0
- package/api/toll-free-verification-api.ts +36 -0
- package/api/transcriptions-api.ts +12 -0
- package/bandwidth.yml +58 -0
- package/common.ts +3 -1
- package/configuration.ts +44 -2
- package/coverage/clover.xml +1126 -1050
- package/coverage/coverage-final.json +16 -14
- package/coverage/lcov-report/index.html +28 -28
- package/coverage/lcov-report/node-sdk/api/calls-api.ts.html +66 -6
- package/coverage/lcov-report/node-sdk/api/conferences-api.ts.html +114 -6
- package/coverage/lcov-report/node-sdk/api/index.html +60 -60
- package/coverage/lcov-report/node-sdk/api/media-api.ts.html +54 -6
- package/coverage/lcov-report/node-sdk/api/messages-api.ts.html +30 -6
- package/coverage/lcov-report/node-sdk/api/mfaapi.ts.html +42 -6
- package/coverage/lcov-report/node-sdk/api/multi-channel-api.ts.html +18 -6
- package/coverage/lcov-report/node-sdk/api/phone-number-lookup-api.ts.html +42 -6
- package/coverage/lcov-report/node-sdk/api/recordings-api.ts.html +126 -6
- package/coverage/lcov-report/node-sdk/api/statistics-api.ts.html +18 -6
- package/coverage/lcov-report/node-sdk/api/toll-free-verification-api.ts.html +114 -6
- package/coverage/lcov-report/node-sdk/api/transcriptions-api.ts.html +42 -6
- 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 +25 -19
- package/coverage/lcov-report/node-sdk/configuration.ts.html +138 -12
- package/coverage/lcov-report/node-sdk/index.html +30 -30
- 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 +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/Response.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/Root.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/Verb.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/index.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/index.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Bridge.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Conference.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/CustomParam.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Forward.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Gather.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Hangup.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Pause.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/PauseRecording.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/PhoneNumber.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/PlayAudio.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Record.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Redirect.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/ResumeRecording.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Ring.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/SendDtmf.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/SipUri.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/SpeakSentence.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartGather.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartRecording.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartStream.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartTranscription.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopGather.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopRecording.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopStream.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopTranscription.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StreamParam.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Tag.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Transfer.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/index.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/index.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/call-direction-enum.ts.html +1 -1
- 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/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 +35 -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 +172 -0
- package/coverage/lcov-report/node-sdk/models/rbm-web-view-enum.ts.html +175 -0
- 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/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 +2804 -2695
- package/custom_templates/README.mustache +2 -2
- package/custom_templates/common.mustache +3 -1
- package/custom_templates/configuration.mustache +43 -1
- package/custom_templates/package.mustache +11 -9
- package/dist/api/calls-api.js +192 -142
- package/dist/api/conferences-api.js +333 -243
- package/dist/api/media-api.js +142 -102
- package/dist/api/messages-api.js +145 -125
- package/dist/api/mfaapi.js +102 -72
- package/dist/api/multi-channel-api.js +34 -24
- package/dist/api/phone-number-lookup-api.js +101 -71
- package/dist/api/recordings-api.js +368 -268
- package/dist/api/statistics-api.js +30 -20
- package/dist/api/toll-free-verification-api.js +298 -208
- package/dist/api/transcriptions-api.js +105 -75
- package/dist/common.js +3 -1
- package/dist/configuration.d.ts +18 -0
- package/dist/configuration.js +71 -3
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/dist/models/multi-channel-action.d.ts +4 -0
- package/dist/models/rbm-open-url-enum.d.ts +19 -0
- package/dist/models/rbm-open-url-enum.js +23 -0
- package/dist/models/rbm-web-view-enum.d.ts +20 -0
- package/dist/models/rbm-web-view-enum.js +24 -0
- package/dist/models/tfv-status.d.ts +4 -0
- package/dist/models/verification-request.d.ts +4 -0
- package/dist/models/verification-update-request.d.ts +4 -0
- package/docs/CallsApi.md +5 -5
- package/docs/ConferencesApi.md +9 -9
- package/docs/MFAApi.md +3 -3
- package/docs/MediaApi.md +4 -4
- package/docs/MessagesApi.md +2 -2
- package/docs/MultiChannelAction.md +4 -0
- package/docs/MultiChannelApi.md +1 -1
- package/docs/PhoneNumberLookupApi.md +3 -3
- package/docs/RbmActionOpenUrl.md +4 -0
- package/docs/RbmOpenUrlEnum.md +11 -0
- package/docs/RbmWebViewEnum.md +13 -0
- package/docs/RecordingsApi.md +10 -10
- package/docs/StatisticsApi.md +1 -1
- package/docs/TfvStatus.md +2 -0
- package/docs/TollFreeVerificationApi.md +9 -9
- package/docs/TranscriptionsApi.md +3 -3
- package/docs/VerificationRequest.md +2 -0
- package/docs/VerificationUpdateRequest.md +2 -0
- package/jest.config.js +2 -0
- package/models/index.ts +2 -0
- package/models/multi-channel-action.ts +8 -0
- package/models/rbm-action-open-url.ts +6 -0
- package/models/rbm-open-url-enum.ts +29 -0
- package/models/rbm-web-view-enum.ts +30 -0
- package/models/tfv-status.ts +4 -0
- package/models/verification-request.ts +4 -0
- package/models/verification-update-request.ts +4 -0
- package/package.json +12 -5
- package/tests/smoke/bxml.test.ts +4 -1
- package/tests/smoke/calls-api.test.ts +4 -1
- package/tests/smoke/conferences-api.test.ts +4 -1
- package/tests/smoke/phone-number-lookup-api.test.ts +2 -2
- package/tests/smoke/recordings-api.test.ts +4 -1
- package/tests/smoke/statistics-api.test.ts +4 -1
- package/tests/smoke/toll-free-verification-api.test.ts +4 -1
- package/tests/smoke/transcriptions-api.test.ts +4 -1
- package/tests/unit/api/toll-free-verification-api.test.ts +15 -2
- package/tests/unit/models/rbm-open-url-enum.test.ts +8 -0
- package/tests/unit/models/rbm-veb-view-enum.test.ts +9 -0
|
@@ -6,7 +6,10 @@ import { setupManteca, createMantecaCall, cleanupCalls, getMantecaTestStatus, sl
|
|
|
6
6
|
|
|
7
7
|
describe('ConferencesApi', () => {
|
|
8
8
|
jest.setTimeout(125000);
|
|
9
|
-
const config = new Configuration({
|
|
9
|
+
const config = new Configuration({
|
|
10
|
+
username: BW_USERNAME,
|
|
11
|
+
password: BW_PASSWORD
|
|
12
|
+
});
|
|
10
13
|
const callsApi = new CallsApi(config);
|
|
11
14
|
const conferencesApi = new ConferencesApi(config);
|
|
12
15
|
|
|
@@ -14,8 +14,8 @@ import { sleep } from '../callUtils';
|
|
|
14
14
|
describe('PhoneNumberLookupApi', () => {
|
|
15
15
|
jest.setTimeout(40000);
|
|
16
16
|
const config = new Configuration({
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
clientId: BW_CLIENT_ID,
|
|
18
|
+
clientSecret: BW_CLIENT_SECRET
|
|
19
19
|
});
|
|
20
20
|
const phoneNumberLookupApi = new PhoneNumberLookupApi(config);
|
|
21
21
|
|
|
@@ -6,7 +6,10 @@ import { getMantecaTestStatus, setupManteca, createMantecaCall, cleanupCalls, sl
|
|
|
6
6
|
|
|
7
7
|
describe('RecordingsApi', () => {
|
|
8
8
|
jest.setTimeout(240000);
|
|
9
|
-
const config = new Configuration({
|
|
9
|
+
const config = new Configuration({
|
|
10
|
+
clientId: BW_CLIENT_ID,
|
|
11
|
+
clientSecret: BW_CLIENT_SECRET
|
|
12
|
+
});
|
|
10
13
|
const callsApi = new CallsApi(config);
|
|
11
14
|
const recordingsApi = new RecordingsApi(config);
|
|
12
15
|
|
|
@@ -3,7 +3,10 @@ import { StatisticsApi } from '../../api';
|
|
|
3
3
|
import { Configuration } from '../../configuration';
|
|
4
4
|
|
|
5
5
|
describe('StatisticsApi', () => {
|
|
6
|
-
const config = new Configuration({
|
|
6
|
+
const config = new Configuration({
|
|
7
|
+
clientId: BW_CLIENT_ID,
|
|
8
|
+
clientSecret: BW_CLIENT_SECRET
|
|
9
|
+
});
|
|
7
10
|
const statisticsApi = new StatisticsApi(config);
|
|
8
11
|
|
|
9
12
|
describe('getStatistics', () => {
|
|
@@ -3,7 +3,10 @@ import { TollFreeVerificationApi } from '../../api';
|
|
|
3
3
|
import { Configuration } from '../../configuration';
|
|
4
4
|
|
|
5
5
|
describe('TollFreeVerificationApi', () => {
|
|
6
|
-
const config = new Configuration({
|
|
6
|
+
const config = new Configuration({
|
|
7
|
+
clientId: BW_CLIENT_ID,
|
|
8
|
+
clientSecret: BW_CLIENT_SECRET
|
|
9
|
+
});
|
|
7
10
|
const tfvApi = new TollFreeVerificationApi(config);
|
|
8
11
|
|
|
9
12
|
describe('listTollFreeUseCases', () => {
|
|
@@ -6,7 +6,10 @@ import { cleanupCalls, createMantecaCall, setupManteca, sleep } from "../callUti
|
|
|
6
6
|
|
|
7
7
|
describe('TranscriptionsApi', () => {
|
|
8
8
|
jest.setTimeout(240000);
|
|
9
|
-
const config = new Configuration({
|
|
9
|
+
const config = new Configuration({
|
|
10
|
+
clientId: BW_CLIENT_ID,
|
|
11
|
+
clientSecret: BW_CLIENT_SECRET
|
|
12
|
+
});
|
|
10
13
|
const callsApi = new CallsApi(config);
|
|
11
14
|
const transcriptionsApi = new TranscriptionsApi(config);
|
|
12
15
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
//@ts-nocheck
|
|
2
2
|
import { TollFreeVerificationApi } from '../../../api';
|
|
3
3
|
import { Configuration } from '../../../configuration';
|
|
4
|
-
import { CallbackTypeEnum, TfvStatusEnum, WebhookSubscriptionTypeEnum } from '../../../models';
|
|
4
|
+
import { BusinessEntityTypeEnum, BusinessRegistrationTypeEnum, CallbackTypeEnum, TfvStatusEnum, WebhookSubscriptionTypeEnum } from '../../../models';
|
|
5
5
|
|
|
6
6
|
describe('TollFreeVerificationApi', () => {
|
|
7
7
|
const config = new Configuration({
|
|
@@ -56,6 +56,10 @@ describe('TollFreeVerificationApi', () => {
|
|
|
56
56
|
expect(data.resubmitAllowed).toBeBoolean();
|
|
57
57
|
expect(data.createdDateTime).toBeDateString();
|
|
58
58
|
expect(data.modifiedDateTime).toBeDateString();
|
|
59
|
+
expect(data.submission).toBeObject();
|
|
60
|
+
expect(data.blocked).toBeBoolean();
|
|
61
|
+
expect(data.blockedReason).toBeString();
|
|
62
|
+
expect(data.cvToken).toBeString();
|
|
59
63
|
});
|
|
60
64
|
});
|
|
61
65
|
|
|
@@ -130,7 +134,16 @@ describe('TollFreeVerificationApi', () => {
|
|
|
130
134
|
imageUrls: ['https://example.com']
|
|
131
135
|
},
|
|
132
136
|
additionalInformation: 'additionalInformation',
|
|
133
|
-
isvReseller: 'isvReseller'
|
|
137
|
+
isvReseller: 'isvReseller',
|
|
138
|
+
privacyPolicyUrl: 'https://example.com',
|
|
139
|
+
termsAndConditionsUrl: 'https://example.com',
|
|
140
|
+
businessDba: 'businessDba',
|
|
141
|
+
businessRegistrationNumber: 'businessRegistrationNumber',
|
|
142
|
+
businessRegistrationType: BusinessRegistrationTypeEnum.Ein,
|
|
143
|
+
businessEntityType: BusinessEntityTypeEnum.NonProfit,
|
|
144
|
+
helpMessageResponse: 'helpMessageResponse',
|
|
145
|
+
ageGatedContent: true,
|
|
146
|
+
cvToken: 'cvToken'
|
|
134
147
|
};
|
|
135
148
|
const { status } = await tfvApi.requestTollFreeVerification(BW_ACCOUNT_ID, verificationRequest);
|
|
136
149
|
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { RbmOpenUrlEnum } from '../../../models/rbm-open-url-enum';
|
|
2
|
+
|
|
3
|
+
describe('RbmOpenUrlEnum', () => {
|
|
4
|
+
test('should define the expected values', () => {
|
|
5
|
+
expect(RbmOpenUrlEnum.Browser).toBe('BROWSER');
|
|
6
|
+
expect(RbmOpenUrlEnum.Webview).toBe('WEBVIEW');
|
|
7
|
+
});
|
|
8
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { RbmWebViewEnum } from '../../../models/rbm-web-view-enum';
|
|
2
|
+
|
|
3
|
+
describe('RbmWebViewEnum', () => {
|
|
4
|
+
test('should define the expected values', () => {
|
|
5
|
+
expect(RbmWebViewEnum.Full).toBe('FULL');
|
|
6
|
+
expect(RbmWebViewEnum.Half).toBe('HALF');
|
|
7
|
+
expect(RbmWebViewEnum.Tall).toBe('TALL');
|
|
8
|
+
});
|
|
9
|
+
});
|