bandwidth-sdk 7.0.0 → 7.1.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 (209) hide show
  1. package/.github/workflows/deploy.yml +3 -1
  2. package/.github/workflows/test-pr.yml +3 -1
  3. package/.github/workflows/test-smoke.yml +4 -2
  4. package/.openapi-generator/FILES +22 -6
  5. package/README.md +21 -5
  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 +85 -22
  18. package/common.ts +3 -1
  19. package/configuration.ts +44 -2
  20. package/coverage/clover.xml +1139 -1065
  21. package/coverage/coverage-final.json +14 -14
  22. package/coverage/lcov-report/index.html +32 -32
  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 +70 -70
  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 +77 -65
  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 +45 -39
  38. package/coverage/lcov-report/node-sdk/configuration.ts.html +140 -14
  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 +5 -5
  92. package/coverage/lcov-report/node-sdk/models/index.ts.html +31 -7
  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/recording-state-enum.ts.html +1 -1
  106. package/coverage/lcov-report/node-sdk/models/redirect-method-enum.ts.html +1 -1
  107. package/coverage/lcov-report/node-sdk/models/standalone-card-orientation-enum.ts.html +1 -1
  108. package/coverage/lcov-report/node-sdk/models/status-callback-type-enum.ts.html +1 -1
  109. package/coverage/lcov-report/node-sdk/models/tfv-callback-status-enum.ts.html +1 -1
  110. package/coverage/lcov-report/node-sdk/models/tfv-status-enum.ts.html +1 -1
  111. package/coverage/lcov-report/node-sdk/models/thumbnail-alignment-enum.ts.html +1 -1
  112. package/coverage/lcov-report/node-sdk/models/webhook-subscription-type-enum.ts.html +1 -1
  113. package/coverage/lcov.info +2834 -2739
  114. package/custom_templates/README.mustache +2 -2
  115. package/custom_templates/common.mustache +3 -1
  116. package/custom_templates/configuration.mustache +43 -1
  117. package/custom_templates/package.mustache +5 -2
  118. package/dist/api/calls-api.js +192 -142
  119. package/dist/api/conferences-api.js +333 -243
  120. package/dist/api/media-api.js +142 -102
  121. package/dist/api/messages-api.js +145 -125
  122. package/dist/api/mfaapi.js +102 -72
  123. package/dist/api/multi-channel-api.js +34 -24
  124. package/dist/api/phone-number-lookup-api.js +101 -71
  125. package/dist/api/recordings-api.js +368 -268
  126. package/dist/api/statistics-api.js +30 -20
  127. package/dist/api/toll-free-verification-api.js +298 -208
  128. package/dist/api/transcriptions-api.js +105 -75
  129. package/dist/common.js +3 -1
  130. package/dist/configuration.d.ts +18 -0
  131. package/dist/configuration.js +71 -3
  132. package/dist/models/index.d.ts +11 -3
  133. package/dist/models/index.js +11 -3
  134. package/dist/models/multi-channel-action.d.ts +48 -21
  135. package/dist/models/{multi-channel-message-response-data-channel-list-inner.d.ts → multi-channel-channel-list-mmsobject.d.ts} +3 -3
  136. package/dist/models/multi-channel-channel-list-mmsresponse-object.d.ts +17 -0
  137. package/dist/models/{multi-channel-channel-list-object.d.ts → multi-channel-channel-list-object-base.d.ts} +1 -3
  138. package/dist/models/multi-channel-channel-list-owner-object.d.ts +17 -0
  139. package/dist/models/multi-channel-channel-list-owner-object.js +15 -0
  140. package/dist/models/{multi-channel-channel-list-object-content.d.ts → multi-channel-channel-list-rbmobject-all-of-content.d.ts} +2 -4
  141. package/dist/models/multi-channel-channel-list-rbmobject-all-of-content.js +15 -0
  142. package/dist/models/multi-channel-channel-list-rbmobject.d.ts +16 -0
  143. package/dist/models/multi-channel-channel-list-rbmobject.js +15 -0
  144. package/dist/models/multi-channel-channel-list-rbmresponse-object.d.ts +17 -0
  145. package/dist/models/multi-channel-channel-list-rbmresponse-object.js +15 -0
  146. package/dist/models/multi-channel-channel-list-request-object.d.ts +25 -0
  147. package/dist/models/multi-channel-channel-list-request-object.js +15 -0
  148. package/dist/models/multi-channel-channel-list-response-object.d.ts +29 -0
  149. package/dist/models/multi-channel-channel-list-response-object.js +15 -0
  150. package/dist/models/multi-channel-channel-list-smsobject.d.ts +16 -0
  151. package/dist/models/multi-channel-channel-list-smsobject.js +15 -0
  152. package/dist/models/multi-channel-channel-list-smsresponse-object.d.ts +17 -0
  153. package/dist/models/multi-channel-channel-list-smsresponse-object.js +15 -0
  154. package/dist/models/multi-channel-message-request.d.ts +2 -2
  155. package/dist/models/multi-channel-message-response-data.d.ts +2 -2
  156. package/docs/CallsApi.md +5 -5
  157. package/docs/ConferencesApi.md +9 -9
  158. package/docs/MFAApi.md +3 -3
  159. package/docs/MediaApi.md +4 -4
  160. package/docs/MessagesApi.md +2 -2
  161. package/docs/MultiChannelApi.md +1 -1
  162. package/docs/{MultiChannelChannelListObject.md → MultiChannelChannelListMMSObject.md} +4 -4
  163. package/docs/{MultiChannelMessageResponseDataChannelListInner.md → MultiChannelChannelListMMSResponseObject.md} +4 -4
  164. package/docs/MultiChannelChannelListObjectBase.md +24 -0
  165. package/docs/MultiChannelChannelListOwnerObject.md +20 -0
  166. package/docs/MultiChannelChannelListRBMObject.md +26 -0
  167. package/docs/{MultiChannelChannelListObjectContent.md → MultiChannelChannelListRBMObjectAllOfContent.md} +5 -5
  168. package/docs/MultiChannelChannelListRBMResponseObject.md +28 -0
  169. package/docs/MultiChannelChannelListRequestObject.md +26 -0
  170. package/docs/MultiChannelChannelListResponseObject.md +28 -0
  171. package/docs/MultiChannelChannelListSMSObject.md +26 -0
  172. package/docs/MultiChannelChannelListSMSResponseObject.md +28 -0
  173. package/docs/MultiChannelMessageRequest.md +1 -1
  174. package/docs/MultiChannelMessageResponseData.md +1 -1
  175. package/docs/PhoneNumberLookupApi.md +3 -3
  176. package/docs/RecordingsApi.md +10 -10
  177. package/docs/StatisticsApi.md +1 -1
  178. package/docs/TollFreeVerificationApi.md +9 -9
  179. package/docs/TranscriptionsApi.md +3 -3
  180. package/jest.config.js +2 -0
  181. package/models/index.ts +11 -3
  182. package/models/multi-channel-action.ts +48 -4
  183. package/models/{multi-channel-message-response-data-channel-list-inner.ts → multi-channel-channel-list-mmsobject.ts} +4 -4
  184. package/models/multi-channel-channel-list-mmsresponse-object.ts +34 -0
  185. package/models/{multi-channel-channel-list-object.ts → multi-channel-channel-list-object-base.ts} +1 -5
  186. package/models/multi-channel-channel-list-owner-object.ts +23 -0
  187. package/models/{multi-channel-channel-list-object-content.ts → multi-channel-channel-list-rbmobject-all-of-content.ts} +5 -11
  188. package/models/multi-channel-channel-list-rbmobject.ts +31 -0
  189. package/models/multi-channel-channel-list-rbmresponse-object.ts +34 -0
  190. package/models/multi-channel-channel-list-request-object.ts +46 -0
  191. package/models/multi-channel-channel-list-response-object.ts +50 -0
  192. package/models/multi-channel-channel-list-smsobject.ts +31 -0
  193. package/models/multi-channel-channel-list-smsresponse-object.ts +34 -0
  194. package/models/multi-channel-message-request.ts +2 -2
  195. package/models/multi-channel-message-response-data.ts +2 -2
  196. package/package.json +6 -3
  197. package/tests/smoke/bxml.test.ts +4 -1
  198. package/tests/smoke/calls-api.test.ts +4 -1
  199. package/tests/smoke/conferences-api.test.ts +4 -1
  200. package/tests/smoke/multi-channel-api.test.ts +117 -10
  201. package/tests/smoke/phone-number-lookup-api.test.ts +4 -4
  202. package/tests/smoke/recordings-api.test.ts +4 -1
  203. package/tests/smoke/statistics-api.test.ts +4 -1
  204. package/tests/smoke/toll-free-verification-api.test.ts +4 -1
  205. package/tests/smoke/transcriptions-api.test.ts +4 -1
  206. package/tests/unit/api/multi-channel-api.test.ts +27 -10
  207. /package/dist/models/{multi-channel-channel-list-object-content.js → multi-channel-channel-list-mmsobject.js} +0 -0
  208. /package/dist/models/{multi-channel-channel-list-object.js → multi-channel-channel-list-mmsresponse-object.js} +0 -0
  209. /package/dist/models/{multi-channel-message-response-data-channel-list-inner.js → multi-channel-channel-list-object-base.js} +0 -0
@@ -0,0 +1,28 @@
1
+ # MultiChannelChannelListResponseObject
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **from** | **string** | The sender ID of the message. This could be an alphanumeric sender ID. | [default to undefined]
9
+ **applicationId** | **string** | The ID of the Application your from number or senderId is associated with in the Bandwidth Phone Number Dashboard. | [default to undefined]
10
+ **channel** | [**MultiChannelMessageChannelEnum**](MultiChannelMessageChannelEnum.md) | | [default to undefined]
11
+ **content** | [**MmsMessageContent**](MmsMessageContent.md) | | [default to undefined]
12
+ **owner** | **string** | The Bandwidth senderId associated with the message. Identical to \'from\'. | [default to undefined]
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import { MultiChannelChannelListResponseObject } from 'bandwidth-sdk';
18
+
19
+ const instance: MultiChannelChannelListResponseObject = {
20
+ from,
21
+ applicationId,
22
+ channel,
23
+ content,
24
+ owner,
25
+ };
26
+ ```
27
+
28
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,26 @@
1
+ # MultiChannelChannelListSMSObject
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **from** | **string** | The sender ID of the message. This could be an alphanumeric sender ID. | [default to undefined]
9
+ **applicationId** | **string** | The ID of the Application your from number or senderId is associated with in the Bandwidth Phone Number Dashboard. | [default to undefined]
10
+ **channel** | [**MultiChannelMessageChannelEnum**](MultiChannelMessageChannelEnum.md) | | [default to undefined]
11
+ **content** | [**SmsMessageContent**](SmsMessageContent.md) | | [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { MultiChannelChannelListSMSObject } from 'bandwidth-sdk';
17
+
18
+ const instance: MultiChannelChannelListSMSObject = {
19
+ from,
20
+ applicationId,
21
+ channel,
22
+ content,
23
+ };
24
+ ```
25
+
26
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,28 @@
1
+ # MultiChannelChannelListSMSResponseObject
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **from** | **string** | The sender ID of the message. This could be an alphanumeric sender ID. | [default to undefined]
9
+ **applicationId** | **string** | The ID of the Application your from number or senderId is associated with in the Bandwidth Phone Number Dashboard. | [default to undefined]
10
+ **channel** | [**MultiChannelMessageChannelEnum**](MultiChannelMessageChannelEnum.md) | | [default to undefined]
11
+ **content** | [**SmsMessageContent**](SmsMessageContent.md) | | [default to undefined]
12
+ **owner** | **string** | The Bandwidth senderId associated with the message. Identical to \'from\'. | [default to undefined]
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import { MultiChannelChannelListSMSResponseObject } from 'bandwidth-sdk';
18
+
19
+ const instance: MultiChannelChannelListSMSResponseObject = {
20
+ from,
21
+ applicationId,
22
+ channel,
23
+ content,
24
+ owner,
25
+ };
26
+ ```
27
+
28
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -7,7 +7,7 @@ Multi-Channel Message Request
7
7
  Name | Type | Description | Notes
8
8
  ------------ | ------------- | ------------- | -------------
9
9
  **to** | **string** | The phone number the message should be sent to in E164 format. | [default to undefined]
10
- **channelList** | [**Array<MultiChannelChannelListObject>**](MultiChannelChannelListObject.md) | A list of message bodies. The messages will be attempted in the order they are listed. Once a message sends successfully, the others will be ignored. | [default to undefined]
10
+ **channelList** | [**Array<MultiChannelChannelListRequestObject>**](MultiChannelChannelListRequestObject.md) | A list of message bodies. The messages will be attempted in the order they are listed. Once a message sends successfully, the others will be ignored. | [default to undefined]
11
11
  **tag** | **string** | A custom string that will be included in callback events of the message. Max 1024 characters. | [optional] [default to undefined]
12
12
  **priority** | [**PriorityEnum**](PriorityEnum.md) | | [optional] [default to undefined]
13
13
  **expiration** | **string** | A string with the date/time value that the message will automatically expire by. This must be a valid RFC-3339 value, e.g., 2021-03-14T01:59:26Z or 2021-03-13T20:59:26-05:00. Must be a date-time in the future. | [optional] [default to undefined]
@@ -10,7 +10,7 @@ Name | Type | Description | Notes
10
10
  **time** | **string** | The time the message was received by the Bandwidth API. | [default to undefined]
11
11
  **direction** | [**MessageDirectionEnum**](MessageDirectionEnum.md) | | [default to undefined]
12
12
  **to** | **Set<string>** | The destination phone number(s) of the message, in E164 format. | [default to undefined]
13
- **channelList** | [**Array<MultiChannelMessageResponseDataChannelListInner>**](MultiChannelMessageResponseDataChannelListInner.md) | A list of message bodies. The messages will be attempted in the order they are listed. Once a message sends successfully, the others will be ignored. | [default to undefined]
13
+ **channelList** | [**Array<MultiChannelChannelListResponseObject>**](MultiChannelChannelListResponseObject.md) | A list of message bodies. The messages will be attempted in the order they are listed. Once a message sends successfully, the others will be ignored. | [default to undefined]
14
14
  **tag** | **string** | A custom string that will be included in callback events of the message. Max 1024 characters. | [optional] [default to undefined]
15
15
  **priority** | [**PriorityEnum**](PriorityEnum.md) | | [optional] [default to undefined]
16
16
  **expiration** | **string** | A string with the date/time value that the message will automatically expire by. This must be a valid RFC-3339 value, e.g., 2021-03-14T01:59:26Z or 2021-03-13T20:59:26-05:00. Must be a date-time in the future. | [optional] [default to undefined]
@@ -48,7 +48,7 @@ const { status, data } = await apiInstance.createAsyncBulkLookup(
48
48
 
49
49
  ### Authorization
50
50
 
51
- [Basic](../README.md#Basic)
51
+ [Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
52
52
 
53
53
  ### HTTP request headers
54
54
 
@@ -104,7 +104,7 @@ const { status, data } = await apiInstance.createSyncLookup(
104
104
 
105
105
  ### Authorization
106
106
 
107
- [Basic](../README.md#Basic)
107
+ [Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
108
108
 
109
109
  ### HTTP request headers
110
110
 
@@ -159,7 +159,7 @@ const { status, data } = await apiInstance.getAsyncBulkLookup(
159
159
 
160
160
  ### Authorization
161
161
 
162
- [Basic](../README.md#Basic)
162
+ [Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
163
163
 
164
164
  ### HTTP request headers
165
165
 
@@ -57,7 +57,7 @@ void (empty response body)
57
57
 
58
58
  ### Authorization
59
59
 
60
- [Basic](../README.md#Basic)
60
+ [Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
61
61
 
62
62
  ### HTTP request headers
63
63
 
@@ -122,7 +122,7 @@ void (empty response body)
122
122
 
123
123
  ### Authorization
124
124
 
125
- [Basic](../README.md#Basic)
125
+ [Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
126
126
 
127
127
  ### HTTP request headers
128
128
 
@@ -187,7 +187,7 @@ void (empty response body)
187
187
 
188
188
  ### Authorization
189
189
 
190
- [Basic](../README.md#Basic)
190
+ [Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
191
191
 
192
192
  ### HTTP request headers
193
193
 
@@ -252,7 +252,7 @@ const { status, data } = await apiInstance.downloadCallRecording(
252
252
 
253
253
  ### Authorization
254
254
 
255
- [Basic](../README.md#Basic)
255
+ [Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
256
256
 
257
257
  ### HTTP request headers
258
258
 
@@ -317,7 +317,7 @@ const { status, data } = await apiInstance.getCallRecording(
317
317
 
318
318
  ### Authorization
319
319
 
320
- [Basic](../README.md#Basic)
320
+ [Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
321
321
 
322
322
  ### HTTP request headers
323
323
 
@@ -382,7 +382,7 @@ const { status, data } = await apiInstance.getRecordingTranscription(
382
382
 
383
383
  ### Authorization
384
384
 
385
- [Basic](../README.md#Basic)
385
+ [Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
386
386
 
387
387
  ### HTTP request headers
388
388
 
@@ -453,7 +453,7 @@ const { status, data } = await apiInstance.listAccountCallRecordings(
453
453
 
454
454
  ### Authorization
455
455
 
456
- [Basic](../README.md#Basic)
456
+ [Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
457
457
 
458
458
  ### HTTP request headers
459
459
 
@@ -515,7 +515,7 @@ const { status, data } = await apiInstance.listCallRecordings(
515
515
 
516
516
  ### Authorization
517
517
 
518
- [Basic](../README.md#Basic)
518
+ [Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
519
519
 
520
520
  ### HTTP request headers
521
521
 
@@ -584,7 +584,7 @@ void (empty response body)
584
584
 
585
585
  ### Authorization
586
586
 
587
- [Basic](../README.md#Basic)
587
+ [Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
588
588
 
589
589
  ### HTTP request headers
590
590
 
@@ -650,7 +650,7 @@ void (empty response body)
650
650
 
651
651
  ### Authorization
652
652
 
653
- [Basic](../README.md#Basic)
653
+ [Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
654
654
 
655
655
  ### HTTP request headers
656
656
 
@@ -42,7 +42,7 @@ const { status, data } = await apiInstance.getStatistics(
42
42
 
43
43
  ### Authorization
44
44
 
45
- [Basic](../README.md#Basic)
45
+ [Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
46
46
 
47
47
  ### HTTP request headers
48
48
 
@@ -54,7 +54,7 @@ const { status, data } = await apiInstance.createWebhookSubscription(
54
54
 
55
55
  ### Authorization
56
56
 
57
- [Basic](../README.md#Basic)
57
+ [Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
58
58
 
59
59
  ### HTTP request headers
60
60
 
@@ -116,7 +116,7 @@ void (empty response body)
116
116
 
117
117
  ### Authorization
118
118
 
119
- [Basic](../README.md#Basic)
119
+ [Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
120
120
 
121
121
  ### HTTP request headers
122
122
 
@@ -178,7 +178,7 @@ void (empty response body)
178
178
 
179
179
  ### Authorization
180
180
 
181
- [Basic](../README.md#Basic)
181
+ [Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
182
182
 
183
183
  ### HTTP request headers
184
184
 
@@ -240,7 +240,7 @@ const { status, data } = await apiInstance.getTollFreeVerificationStatus(
240
240
 
241
241
  ### Authorization
242
242
 
243
- [Basic](../README.md#Basic)
243
+ [Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
244
244
 
245
245
  ### HTTP request headers
246
246
 
@@ -292,7 +292,7 @@ This endpoint does not have any parameters.
292
292
 
293
293
  ### Authorization
294
294
 
295
- [Basic](../README.md#Basic)
295
+ [Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
296
296
 
297
297
  ### HTTP request headers
298
298
 
@@ -351,7 +351,7 @@ const { status, data } = await apiInstance.listWebhookSubscriptions(
351
351
 
352
352
  ### Authorization
353
353
 
354
- [Basic](../README.md#Basic)
354
+ [Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
355
355
 
356
356
  ### HTTP request headers
357
357
 
@@ -413,7 +413,7 @@ void (empty response body)
413
413
 
414
414
  ### Authorization
415
415
 
416
- [Basic](../README.md#Basic)
416
+ [Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
417
417
 
418
418
  ### HTTP request headers
419
419
 
@@ -478,7 +478,7 @@ void (empty response body)
478
478
 
479
479
  ### Authorization
480
480
 
481
- [Basic](../README.md#Basic)
481
+ [Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
482
482
 
483
483
  ### HTTP request headers
484
484
 
@@ -543,7 +543,7 @@ const { status, data } = await apiInstance.updateWebhookSubscription(
543
543
 
544
544
  ### Authorization
545
545
 
546
- [Basic](../README.md#Basic)
546
+ [Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
547
547
 
548
548
  ### HTTP request headers
549
549
 
@@ -50,7 +50,7 @@ void (empty response body)
50
50
 
51
51
  ### Authorization
52
52
 
53
- [Basic](../README.md#Basic)
53
+ [Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
54
54
 
55
55
  ### HTTP request headers
56
56
 
@@ -115,7 +115,7 @@ const { status, data } = await apiInstance.getRealTimeTranscription(
115
115
 
116
116
  ### Authorization
117
117
 
118
- [Basic](../README.md#Basic)
118
+ [Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
119
119
 
120
120
  ### HTTP request headers
121
121
 
@@ -177,7 +177,7 @@ const { status, data } = await apiInstance.listRealTimeTranscriptions(
177
177
 
178
178
  ### Authorization
179
179
 
180
- [Basic](../README.md#Basic)
180
+ [Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2)
181
181
 
182
182
  ### HTTP request headers
183
183
 
package/jest.config.js CHANGED
@@ -6,6 +6,8 @@ module.exports = {
6
6
  globals: {
7
7
  'BW_USERNAME': process.env.BW_USERNAME,
8
8
  'BW_PASSWORD': process.env.BW_PASSWORD,
9
+ 'BW_CLIENT_ID': process.env.BW_CLIENT_ID,
10
+ 'BW_CLIENT_SECRET': process.env.BW_CLIENT_SECRET,
9
11
  'BW_ACCOUNT_ID': process.env.BW_ACCOUNT_ID,
10
12
  'BW_NUMBER': process.env.BW_NUMBER,
11
13
  'USER_NUMBER': process.env.USER_NUMBER,
package/models/index.ts CHANGED
@@ -90,14 +90,22 @@ export * from './mms-message-content-file';
90
90
  export * from './model-error';
91
91
  export * from './multi-channel-action';
92
92
  export * from './multi-channel-action-calendar-event';
93
- export * from './multi-channel-channel-list-object';
94
- export * from './multi-channel-channel-list-object-content';
93
+ export * from './multi-channel-channel-list-mmsobject';
94
+ export * from './multi-channel-channel-list-mmsresponse-object';
95
+ export * from './multi-channel-channel-list-object-base';
96
+ export * from './multi-channel-channel-list-owner-object';
97
+ export * from './multi-channel-channel-list-rbmobject';
98
+ export * from './multi-channel-channel-list-rbmobject-all-of-content';
99
+ export * from './multi-channel-channel-list-rbmresponse-object';
100
+ export * from './multi-channel-channel-list-request-object';
101
+ export * from './multi-channel-channel-list-response-object';
102
+ export * from './multi-channel-channel-list-smsobject';
103
+ export * from './multi-channel-channel-list-smsresponse-object';
95
104
  export * from './multi-channel-error';
96
105
  export * from './multi-channel-message-channel-enum';
97
106
  export * from './multi-channel-message-content';
98
107
  export * from './multi-channel-message-request';
99
108
  export * from './multi-channel-message-response-data';
100
- export * from './multi-channel-message-response-data-channel-list-inner';
101
109
  export * from './opt-in-workflow';
102
110
  export * from './page-info';
103
111
  export * from './priority-enum';
@@ -32,9 +32,53 @@ import type { RbmActionTypeEnum } from './rbm-action-type-enum';
32
32
  // @ts-ignore
33
33
  import type { RbmActionViewLocation } from './rbm-action-view-location';
34
34
 
35
- /**
36
- * @type MultiChannelAction
37
- */
38
- export type MultiChannelAction = { type: 'CREATE_CALENDAR_EVENT' } & MultiChannelActionCalendarEvent | { type: 'DIAL_PHONE' } & RbmActionDial | { type: 'OPEN_URL' } & RbmActionOpenUrl | { type: 'REPLY' } & RbmActionBase | { type: 'REQUEST_LOCATION' } & RbmActionBase | { type: 'SHOW_LOCATION' } & RbmActionViewLocation;
35
+ export interface MultiChannelAction {
36
+ 'type': RbmActionTypeEnum;
37
+ /**
38
+ * Displayed text for user to click
39
+ */
40
+ 'text': string;
41
+ /**
42
+ * Base64 payload the customer receives when the reply is clicked.
43
+ */
44
+ 'postbackData': string;
45
+ /**
46
+ * The phone number to dial. Must be E164 format.
47
+ */
48
+ 'phoneNumber': string;
49
+ /**
50
+ * The latitude of the location.
51
+ */
52
+ 'latitude': number;
53
+ /**
54
+ * The longitude of the location.
55
+ */
56
+ 'longitude': number;
57
+ /**
58
+ * The label of the location.
59
+ */
60
+ 'label'?: string;
61
+ /**
62
+ * The title of the event.
63
+ */
64
+ 'title': string;
65
+ /**
66
+ * The start time of the event.
67
+ */
68
+ 'startTime': string;
69
+ /**
70
+ * The end time of the event.
71
+ */
72
+ 'endTime': string;
73
+ /**
74
+ * The description of the event.
75
+ */
76
+ 'description'?: string;
77
+ /**
78
+ * The URL to open in browser.
79
+ */
80
+ 'url': string;
81
+ }
82
+
39
83
 
40
84
 
@@ -15,17 +15,17 @@
15
15
 
16
16
  // May contain unused imports in some cases
17
17
  // @ts-ignore
18
- import type { MultiChannelChannelListObject } from './multi-channel-channel-list-object';
18
+ import type { MmsMessageContent } from './mms-message-content';
19
19
  // May contain unused imports in some cases
20
20
  // @ts-ignore
21
- import type { MultiChannelChannelListObjectContent } from './multi-channel-channel-list-object-content';
21
+ import type { MultiChannelChannelListObjectBase } from './multi-channel-channel-list-object-base';
22
22
  // May contain unused imports in some cases
23
23
  // @ts-ignore
24
24
  import type { MultiChannelMessageChannelEnum } from './multi-channel-message-channel-enum';
25
25
 
26
26
  /**
27
- * @type MultiChannelMessageResponseDataChannelListInner
27
+ * @type MultiChannelChannelListMMSObject
28
28
  */
29
- export type MultiChannelMessageResponseDataChannelListInner = MultiChannelChannelListObject;
29
+ export type MultiChannelChannelListMMSObject = MultiChannelChannelListObjectBase;
30
30
 
31
31
 
@@ -0,0 +1,34 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Bandwidth
5
+ * Bandwidth\'s Communication APIs
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: letstalk@bandwidth.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ // May contain unused imports in some cases
17
+ // @ts-ignore
18
+ import type { MmsMessageContent } from './mms-message-content';
19
+ // May contain unused imports in some cases
20
+ // @ts-ignore
21
+ import type { MultiChannelChannelListMMSObject } from './multi-channel-channel-list-mmsobject';
22
+ // May contain unused imports in some cases
23
+ // @ts-ignore
24
+ import type { MultiChannelChannelListOwnerObject } from './multi-channel-channel-list-owner-object';
25
+ // May contain unused imports in some cases
26
+ // @ts-ignore
27
+ import type { MultiChannelMessageChannelEnum } from './multi-channel-message-channel-enum';
28
+
29
+ /**
30
+ * @type MultiChannelChannelListMMSResponseObject
31
+ */
32
+ export type MultiChannelChannelListMMSResponseObject = MultiChannelChannelListMMSObject & MultiChannelChannelListOwnerObject;
33
+
34
+
@@ -13,14 +13,11 @@
13
13
  */
14
14
 
15
15
 
16
- // May contain unused imports in some cases
17
- // @ts-ignore
18
- import type { MultiChannelChannelListObjectContent } from './multi-channel-channel-list-object-content';
19
16
  // May contain unused imports in some cases
20
17
  // @ts-ignore
21
18
  import type { MultiChannelMessageChannelEnum } from './multi-channel-message-channel-enum';
22
19
 
23
- export interface MultiChannelChannelListObject {
20
+ export interface MultiChannelChannelListObjectBase {
24
21
  /**
25
22
  * The sender ID of the message. This could be an alphanumeric sender ID.
26
23
  */
@@ -30,7 +27,6 @@ export interface MultiChannelChannelListObject {
30
27
  */
31
28
  'applicationId': string;
32
29
  'channel': MultiChannelMessageChannelEnum;
33
- 'content': MultiChannelChannelListObjectContent;
34
30
  }
35
31
 
36
32
 
@@ -0,0 +1,23 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Bandwidth
5
+ * Bandwidth\'s Communication APIs
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: letstalk@bandwidth.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ export interface MultiChannelChannelListOwnerObject {
18
+ /**
19
+ * The Bandwidth senderId associated with the message. Identical to \'from\'.
20
+ */
21
+ 'owner': string;
22
+ }
23
+
@@ -18,18 +18,15 @@
18
18
  import type { CardWidthEnum } from './card-width-enum';
19
19
  // May contain unused imports in some cases
20
20
  // @ts-ignore
21
- import type { MmsMessageContent } from './mms-message-content';
22
- // May contain unused imports in some cases
23
- // @ts-ignore
24
- import type { MmsMessageContentFile } from './mms-message-content-file';
25
- // May contain unused imports in some cases
26
- // @ts-ignore
27
21
  import type { MultiChannelAction } from './multi-channel-action';
28
22
  // May contain unused imports in some cases
29
23
  // @ts-ignore
30
24
  import type { RbmCardContent } from './rbm-card-content';
31
25
  // May contain unused imports in some cases
32
26
  // @ts-ignore
27
+ import type { RbmMessageContentFile } from './rbm-message-content-file';
28
+ // May contain unused imports in some cases
29
+ // @ts-ignore
33
30
  import type { RbmMessageContentRichCard } from './rbm-message-content-rich-card';
34
31
  // May contain unused imports in some cases
35
32
  // @ts-ignore
@@ -39,18 +36,15 @@ import type { RbmMessageContentText } from './rbm-message-content-text';
39
36
  import type { RbmMessageMedia } from './rbm-message-media';
40
37
  // May contain unused imports in some cases
41
38
  // @ts-ignore
42
- import type { SmsMessageContent } from './sms-message-content';
43
- // May contain unused imports in some cases
44
- // @ts-ignore
45
39
  import type { StandaloneCardOrientationEnum } from './standalone-card-orientation-enum';
46
40
  // May contain unused imports in some cases
47
41
  // @ts-ignore
48
42
  import type { ThumbnailAlignmentEnum } from './thumbnail-alignment-enum';
49
43
 
50
44
  /**
51
- * @type MultiChannelChannelListObjectContent
45
+ * @type MultiChannelChannelListRBMObjectAllOfContent
52
46
  * The content of the message.
53
47
  */
54
- export type MultiChannelChannelListObjectContent = MmsMessageContent | RbmMessageContentRichCard | RbmMessageContentText | RbmMessageMedia | SmsMessageContent;
48
+ export type MultiChannelChannelListRBMObjectAllOfContent = RbmMessageContentRichCard | RbmMessageContentText | RbmMessageMedia;
55
49
 
56
50
 
@@ -0,0 +1,31 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Bandwidth
5
+ * Bandwidth\'s Communication APIs
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: letstalk@bandwidth.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ // May contain unused imports in some cases
17
+ // @ts-ignore
18
+ import type { MultiChannelChannelListObjectBase } from './multi-channel-channel-list-object-base';
19
+ // May contain unused imports in some cases
20
+ // @ts-ignore
21
+ import type { MultiChannelChannelListRBMObjectAllOfContent } from './multi-channel-channel-list-rbmobject-all-of-content';
22
+ // May contain unused imports in some cases
23
+ // @ts-ignore
24
+ import type { MultiChannelMessageChannelEnum } from './multi-channel-message-channel-enum';
25
+
26
+ /**
27
+ * @type MultiChannelChannelListRBMObject
28
+ */
29
+ export type MultiChannelChannelListRBMObject = MultiChannelChannelListObjectBase;
30
+
31
+
@@ -0,0 +1,34 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Bandwidth
5
+ * Bandwidth\'s Communication APIs
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: letstalk@bandwidth.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ // May contain unused imports in some cases
17
+ // @ts-ignore
18
+ import type { MultiChannelChannelListOwnerObject } from './multi-channel-channel-list-owner-object';
19
+ // May contain unused imports in some cases
20
+ // @ts-ignore
21
+ import type { MultiChannelChannelListRBMObject } from './multi-channel-channel-list-rbmobject';
22
+ // May contain unused imports in some cases
23
+ // @ts-ignore
24
+ import type { MultiChannelChannelListRBMObjectAllOfContent } from './multi-channel-channel-list-rbmobject-all-of-content';
25
+ // May contain unused imports in some cases
26
+ // @ts-ignore
27
+ import type { MultiChannelMessageChannelEnum } from './multi-channel-message-channel-enum';
28
+
29
+ /**
30
+ * @type MultiChannelChannelListRBMResponseObject
31
+ */
32
+ export type MultiChannelChannelListRBMResponseObject = MultiChannelChannelListOwnerObject & MultiChannelChannelListRBMObject;
33
+
34
+