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.
Files changed (182) hide show
  1. package/.github/workflows/deploy.yml +11 -4
  2. package/.github/workflows/test-pr.yml +3 -1
  3. package/.github/workflows/test-smoke.yml +4 -2
  4. package/.openapi-generator/FILES +4 -0
  5. package/README.md +12 -2
  6. package/api/calls-api.ts +20 -0
  7. package/api/conferences-api.ts +36 -0
  8. package/api/media-api.ts +16 -0
  9. package/api/messages-api.ts +8 -0
  10. package/api/mfaapi.ts +12 -0
  11. package/api/multi-channel-api.ts +4 -0
  12. package/api/phone-number-lookup-api.ts +12 -0
  13. package/api/recordings-api.ts +40 -0
  14. package/api/statistics-api.ts +4 -0
  15. package/api/toll-free-verification-api.ts +36 -0
  16. package/api/transcriptions-api.ts +12 -0
  17. package/bandwidth.yml +58 -0
  18. package/common.ts +3 -1
  19. package/configuration.ts +44 -2
  20. package/coverage/clover.xml +1126 -1050
  21. package/coverage/coverage-final.json +16 -14
  22. package/coverage/lcov-report/index.html +28 -28
  23. package/coverage/lcov-report/node-sdk/api/calls-api.ts.html +66 -6
  24. package/coverage/lcov-report/node-sdk/api/conferences-api.ts.html +114 -6
  25. package/coverage/lcov-report/node-sdk/api/index.html +60 -60
  26. package/coverage/lcov-report/node-sdk/api/media-api.ts.html +54 -6
  27. package/coverage/lcov-report/node-sdk/api/messages-api.ts.html +30 -6
  28. package/coverage/lcov-report/node-sdk/api/mfaapi.ts.html +42 -6
  29. package/coverage/lcov-report/node-sdk/api/multi-channel-api.ts.html +18 -6
  30. package/coverage/lcov-report/node-sdk/api/phone-number-lookup-api.ts.html +42 -6
  31. package/coverage/lcov-report/node-sdk/api/recordings-api.ts.html +126 -6
  32. package/coverage/lcov-report/node-sdk/api/statistics-api.ts.html +18 -6
  33. package/coverage/lcov-report/node-sdk/api/toll-free-verification-api.ts.html +114 -6
  34. package/coverage/lcov-report/node-sdk/api/transcriptions-api.ts.html +42 -6
  35. package/coverage/lcov-report/node-sdk/api.ts.html +1 -1
  36. package/coverage/lcov-report/node-sdk/base.ts.html +1 -1
  37. package/coverage/lcov-report/node-sdk/common.ts.html +25 -19
  38. package/coverage/lcov-report/node-sdk/configuration.ts.html +138 -12
  39. package/coverage/lcov-report/node-sdk/index.html +30 -30
  40. package/coverage/lcov-report/node-sdk/models/business-entity-type-enum.ts.html +1 -1
  41. package/coverage/lcov-report/node-sdk/models/business-registration-type-enum.ts.html +1 -1
  42. package/coverage/lcov-report/node-sdk/models/bxml/Bxml.ts.html +1 -1
  43. package/coverage/lcov-report/node-sdk/models/bxml/NestableVerb.ts.html +1 -1
  44. package/coverage/lcov-report/node-sdk/models/bxml/Response.ts.html +1 -1
  45. package/coverage/lcov-report/node-sdk/models/bxml/Root.ts.html +1 -1
  46. package/coverage/lcov-report/node-sdk/models/bxml/Verb.ts.html +1 -1
  47. package/coverage/lcov-report/node-sdk/models/bxml/index.html +1 -1
  48. package/coverage/lcov-report/node-sdk/models/bxml/index.ts.html +1 -1
  49. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Bridge.ts.html +1 -1
  50. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Conference.ts.html +1 -1
  51. package/coverage/lcov-report/node-sdk/models/bxml/verbs/CustomParam.ts.html +1 -1
  52. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Forward.ts.html +1 -1
  53. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Gather.ts.html +1 -1
  54. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Hangup.ts.html +1 -1
  55. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Pause.ts.html +1 -1
  56. package/coverage/lcov-report/node-sdk/models/bxml/verbs/PauseRecording.ts.html +1 -1
  57. package/coverage/lcov-report/node-sdk/models/bxml/verbs/PhoneNumber.ts.html +1 -1
  58. package/coverage/lcov-report/node-sdk/models/bxml/verbs/PlayAudio.ts.html +1 -1
  59. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Record.ts.html +1 -1
  60. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Redirect.ts.html +1 -1
  61. package/coverage/lcov-report/node-sdk/models/bxml/verbs/ResumeRecording.ts.html +1 -1
  62. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Ring.ts.html +1 -1
  63. package/coverage/lcov-report/node-sdk/models/bxml/verbs/SendDtmf.ts.html +1 -1
  64. package/coverage/lcov-report/node-sdk/models/bxml/verbs/SipUri.ts.html +1 -1
  65. package/coverage/lcov-report/node-sdk/models/bxml/verbs/SpeakSentence.ts.html +1 -1
  66. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartGather.ts.html +1 -1
  67. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartRecording.ts.html +1 -1
  68. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartStream.ts.html +1 -1
  69. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartTranscription.ts.html +1 -1
  70. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopGather.ts.html +1 -1
  71. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopRecording.ts.html +1 -1
  72. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopStream.ts.html +1 -1
  73. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopTranscription.ts.html +1 -1
  74. package/coverage/lcov-report/node-sdk/models/bxml/verbs/StreamParam.ts.html +1 -1
  75. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Tag.ts.html +1 -1
  76. package/coverage/lcov-report/node-sdk/models/bxml/verbs/Transfer.ts.html +1 -1
  77. package/coverage/lcov-report/node-sdk/models/bxml/verbs/index.html +1 -1
  78. package/coverage/lcov-report/node-sdk/models/bxml/verbs/index.ts.html +1 -1
  79. package/coverage/lcov-report/node-sdk/models/call-direction-enum.ts.html +1 -1
  80. package/coverage/lcov-report/node-sdk/models/call-state-enum.ts.html +1 -1
  81. package/coverage/lcov-report/node-sdk/models/call-transcription-detected-language-enum.ts.html +1 -1
  82. package/coverage/lcov-report/node-sdk/models/call-transcription-track-enum.ts.html +1 -1
  83. package/coverage/lcov-report/node-sdk/models/callback-method-enum.ts.html +1 -1
  84. package/coverage/lcov-report/node-sdk/models/card-width-enum.ts.html +1 -1
  85. package/coverage/lcov-report/node-sdk/models/completed-lookup-status-enum.ts.html +1 -1
  86. package/coverage/lcov-report/node-sdk/models/conference-state-enum.ts.html +1 -1
  87. package/coverage/lcov-report/node-sdk/models/deactivation-event-enum.ts.html +1 -1
  88. package/coverage/lcov-report/node-sdk/models/file-format-enum.ts.html +1 -1
  89. package/coverage/lcov-report/node-sdk/models/in-progress-lookup-status-enum.ts.html +1 -1
  90. package/coverage/lcov-report/node-sdk/models/inbound-callback-type-enum.ts.html +1 -1
  91. package/coverage/lcov-report/node-sdk/models/index.html +35 -5
  92. package/coverage/lcov-report/node-sdk/models/index.ts.html +10 -4
  93. package/coverage/lcov-report/node-sdk/models/latest-message-delivery-status-enum.ts.html +1 -1
  94. package/coverage/lcov-report/node-sdk/models/line-type-enum.ts.html +1 -1
  95. package/coverage/lcov-report/node-sdk/models/list-message-direction-enum.ts.html +1 -1
  96. package/coverage/lcov-report/node-sdk/models/machine-detection-mode-enum.ts.html +1 -1
  97. package/coverage/lcov-report/node-sdk/models/message-direction-enum.ts.html +1 -1
  98. package/coverage/lcov-report/node-sdk/models/message-status-enum.ts.html +1 -1
  99. package/coverage/lcov-report/node-sdk/models/message-type-enum.ts.html +1 -1
  100. package/coverage/lcov-report/node-sdk/models/multi-channel-message-channel-enum.ts.html +1 -1
  101. package/coverage/lcov-report/node-sdk/models/priority-enum.ts.html +1 -1
  102. package/coverage/lcov-report/node-sdk/models/product-type-enum.ts.html +1 -1
  103. package/coverage/lcov-report/node-sdk/models/rbm-action-type-enum.ts.html +1 -1
  104. package/coverage/lcov-report/node-sdk/models/rbm-media-height-enum.ts.html +1 -1
  105. package/coverage/lcov-report/node-sdk/models/rbm-open-url-enum.ts.html +172 -0
  106. package/coverage/lcov-report/node-sdk/models/rbm-web-view-enum.ts.html +175 -0
  107. package/coverage/lcov-report/node-sdk/models/recording-state-enum.ts.html +1 -1
  108. package/coverage/lcov-report/node-sdk/models/redirect-method-enum.ts.html +1 -1
  109. package/coverage/lcov-report/node-sdk/models/standalone-card-orientation-enum.ts.html +1 -1
  110. package/coverage/lcov-report/node-sdk/models/status-callback-type-enum.ts.html +1 -1
  111. package/coverage/lcov-report/node-sdk/models/tfv-callback-status-enum.ts.html +1 -1
  112. package/coverage/lcov-report/node-sdk/models/tfv-status-enum.ts.html +1 -1
  113. package/coverage/lcov-report/node-sdk/models/thumbnail-alignment-enum.ts.html +1 -1
  114. package/coverage/lcov-report/node-sdk/models/webhook-subscription-type-enum.ts.html +1 -1
  115. package/coverage/lcov.info +2804 -2695
  116. package/custom_templates/README.mustache +2 -2
  117. package/custom_templates/common.mustache +3 -1
  118. package/custom_templates/configuration.mustache +43 -1
  119. package/custom_templates/package.mustache +11 -9
  120. package/dist/api/calls-api.js +192 -142
  121. package/dist/api/conferences-api.js +333 -243
  122. package/dist/api/media-api.js +142 -102
  123. package/dist/api/messages-api.js +145 -125
  124. package/dist/api/mfaapi.js +102 -72
  125. package/dist/api/multi-channel-api.js +34 -24
  126. package/dist/api/phone-number-lookup-api.js +101 -71
  127. package/dist/api/recordings-api.js +368 -268
  128. package/dist/api/statistics-api.js +30 -20
  129. package/dist/api/toll-free-verification-api.js +298 -208
  130. package/dist/api/transcriptions-api.js +105 -75
  131. package/dist/common.js +3 -1
  132. package/dist/configuration.d.ts +18 -0
  133. package/dist/configuration.js +71 -3
  134. package/dist/models/index.d.ts +2 -0
  135. package/dist/models/index.js +2 -0
  136. package/dist/models/multi-channel-action.d.ts +4 -0
  137. package/dist/models/rbm-open-url-enum.d.ts +19 -0
  138. package/dist/models/rbm-open-url-enum.js +23 -0
  139. package/dist/models/rbm-web-view-enum.d.ts +20 -0
  140. package/dist/models/rbm-web-view-enum.js +24 -0
  141. package/dist/models/tfv-status.d.ts +4 -0
  142. package/dist/models/verification-request.d.ts +4 -0
  143. package/dist/models/verification-update-request.d.ts +4 -0
  144. package/docs/CallsApi.md +5 -5
  145. package/docs/ConferencesApi.md +9 -9
  146. package/docs/MFAApi.md +3 -3
  147. package/docs/MediaApi.md +4 -4
  148. package/docs/MessagesApi.md +2 -2
  149. package/docs/MultiChannelAction.md +4 -0
  150. package/docs/MultiChannelApi.md +1 -1
  151. package/docs/PhoneNumberLookupApi.md +3 -3
  152. package/docs/RbmActionOpenUrl.md +4 -0
  153. package/docs/RbmOpenUrlEnum.md +11 -0
  154. package/docs/RbmWebViewEnum.md +13 -0
  155. package/docs/RecordingsApi.md +10 -10
  156. package/docs/StatisticsApi.md +1 -1
  157. package/docs/TfvStatus.md +2 -0
  158. package/docs/TollFreeVerificationApi.md +9 -9
  159. package/docs/TranscriptionsApi.md +3 -3
  160. package/docs/VerificationRequest.md +2 -0
  161. package/docs/VerificationUpdateRequest.md +2 -0
  162. package/jest.config.js +2 -0
  163. package/models/index.ts +2 -0
  164. package/models/multi-channel-action.ts +8 -0
  165. package/models/rbm-action-open-url.ts +6 -0
  166. package/models/rbm-open-url-enum.ts +29 -0
  167. package/models/rbm-web-view-enum.ts +30 -0
  168. package/models/tfv-status.ts +4 -0
  169. package/models/verification-request.ts +4 -0
  170. package/models/verification-update-request.ts +4 -0
  171. package/package.json +12 -5
  172. package/tests/smoke/bxml.test.ts +4 -1
  173. package/tests/smoke/calls-api.test.ts +4 -1
  174. package/tests/smoke/conferences-api.test.ts +4 -1
  175. package/tests/smoke/phone-number-lookup-api.test.ts +2 -2
  176. package/tests/smoke/recordings-api.test.ts +4 -1
  177. package/tests/smoke/statistics-api.test.ts +4 -1
  178. package/tests/smoke/toll-free-verification-api.test.ts +4 -1
  179. package/tests/smoke/transcriptions-api.test.ts +4 -1
  180. package/tests/unit/api/toll-free-verification-api.test.ts +15 -2
  181. package/tests/unit/models/rbm-open-url-enum.test.ts +8 -0
  182. 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({username: BW_USERNAME, password: BW_PASSWORD});
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
- username: BW_USERNAME,
18
- password: BW_PASSWORD
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({username: BW_USERNAME, password: BW_PASSWORD});
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({username: BW_USERNAME, password: BW_PASSWORD});
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({username: BW_USERNAME, password: BW_PASSWORD});
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({username: BW_USERNAME, password: BW_PASSWORD});
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
+ });