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
@@ -114,31 +114,41 @@ var MFAApiAxiosParamCreator = function (configuration) {
114
114
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
115
115
  if (options === void 0) { options = {}; }
116
116
  return __generator(this, function (_a) {
117
- // verify required parameter 'accountId' is not null or undefined
118
- (0, common_1.assertParamExists)('generateMessagingCode', 'accountId', accountId);
119
- // verify required parameter 'codeRequest' is not null or undefined
120
- (0, common_1.assertParamExists)('generateMessagingCode', 'codeRequest', codeRequest);
121
- localVarPath = "/accounts/{accountId}/code/messaging"
122
- .replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)));
123
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
124
- if (configuration) {
125
- baseOptions = configuration.baseOptions;
117
+ switch (_a.label) {
118
+ case 0:
119
+ // verify required parameter 'accountId' is not null or undefined
120
+ (0, common_1.assertParamExists)('generateMessagingCode', 'accountId', accountId);
121
+ // verify required parameter 'codeRequest' is not null or undefined
122
+ (0, common_1.assertParamExists)('generateMessagingCode', 'codeRequest', codeRequest);
123
+ localVarPath = "/accounts/{accountId}/code/messaging"
124
+ .replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)));
125
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
126
+ if (configuration) {
127
+ baseOptions = configuration.baseOptions;
128
+ }
129
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
130
+ localVarHeaderParameter = {};
131
+ localVarQueryParameter = {};
132
+ // authentication Basic required
133
+ // http basic authentication required
134
+ (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
135
+ // authentication OAuth2 required
136
+ // oauth required
137
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2", [], configuration)];
138
+ case 1:
139
+ // authentication OAuth2 required
140
+ // oauth required
141
+ _a.sent();
142
+ localVarHeaderParameter['Content-Type'] = 'application/json';
143
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
144
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
145
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
146
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(codeRequest, localVarRequestOptions, configuration);
147
+ return [2 /*return*/, {
148
+ url: (0, common_1.toPathString)(localVarUrlObj),
149
+ options: localVarRequestOptions,
150
+ }];
126
151
  }
127
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
128
- localVarHeaderParameter = {};
129
- localVarQueryParameter = {};
130
- // authentication Basic required
131
- // http basic authentication required
132
- (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
133
- localVarHeaderParameter['Content-Type'] = 'application/json';
134
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
135
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
136
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
137
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(codeRequest, localVarRequestOptions, configuration);
138
- return [2 /*return*/, {
139
- url: (0, common_1.toPathString)(localVarUrlObj),
140
- options: localVarRequestOptions,
141
- }];
142
152
  });
143
153
  });
144
154
  },
@@ -159,31 +169,41 @@ var MFAApiAxiosParamCreator = function (configuration) {
159
169
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
160
170
  if (options === void 0) { options = {}; }
161
171
  return __generator(this, function (_a) {
162
- // verify required parameter 'accountId' is not null or undefined
163
- (0, common_1.assertParamExists)('generateVoiceCode', 'accountId', accountId);
164
- // verify required parameter 'codeRequest' is not null or undefined
165
- (0, common_1.assertParamExists)('generateVoiceCode', 'codeRequest', codeRequest);
166
- localVarPath = "/accounts/{accountId}/code/voice"
167
- .replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)));
168
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
169
- if (configuration) {
170
- baseOptions = configuration.baseOptions;
172
+ switch (_a.label) {
173
+ case 0:
174
+ // verify required parameter 'accountId' is not null or undefined
175
+ (0, common_1.assertParamExists)('generateVoiceCode', 'accountId', accountId);
176
+ // verify required parameter 'codeRequest' is not null or undefined
177
+ (0, common_1.assertParamExists)('generateVoiceCode', 'codeRequest', codeRequest);
178
+ localVarPath = "/accounts/{accountId}/code/voice"
179
+ .replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)));
180
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
181
+ if (configuration) {
182
+ baseOptions = configuration.baseOptions;
183
+ }
184
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
185
+ localVarHeaderParameter = {};
186
+ localVarQueryParameter = {};
187
+ // authentication Basic required
188
+ // http basic authentication required
189
+ (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
190
+ // authentication OAuth2 required
191
+ // oauth required
192
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2", [], configuration)];
193
+ case 1:
194
+ // authentication OAuth2 required
195
+ // oauth required
196
+ _a.sent();
197
+ localVarHeaderParameter['Content-Type'] = 'application/json';
198
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
199
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
200
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
201
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(codeRequest, localVarRequestOptions, configuration);
202
+ return [2 /*return*/, {
203
+ url: (0, common_1.toPathString)(localVarUrlObj),
204
+ options: localVarRequestOptions,
205
+ }];
171
206
  }
172
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
173
- localVarHeaderParameter = {};
174
- localVarQueryParameter = {};
175
- // authentication Basic required
176
- // http basic authentication required
177
- (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
178
- localVarHeaderParameter['Content-Type'] = 'application/json';
179
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
180
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
181
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
182
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(codeRequest, localVarRequestOptions, configuration);
183
- return [2 /*return*/, {
184
- url: (0, common_1.toPathString)(localVarUrlObj),
185
- options: localVarRequestOptions,
186
- }];
187
207
  });
188
208
  });
189
209
  },
@@ -204,31 +224,41 @@ var MFAApiAxiosParamCreator = function (configuration) {
204
224
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
205
225
  if (options === void 0) { options = {}; }
206
226
  return __generator(this, function (_a) {
207
- // verify required parameter 'accountId' is not null or undefined
208
- (0, common_1.assertParamExists)('verifyCode', 'accountId', accountId);
209
- // verify required parameter 'verifyCodeRequest' is not null or undefined
210
- (0, common_1.assertParamExists)('verifyCode', 'verifyCodeRequest', verifyCodeRequest);
211
- localVarPath = "/accounts/{accountId}/code/verify"
212
- .replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)));
213
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
214
- if (configuration) {
215
- baseOptions = configuration.baseOptions;
227
+ switch (_a.label) {
228
+ case 0:
229
+ // verify required parameter 'accountId' is not null or undefined
230
+ (0, common_1.assertParamExists)('verifyCode', 'accountId', accountId);
231
+ // verify required parameter 'verifyCodeRequest' is not null or undefined
232
+ (0, common_1.assertParamExists)('verifyCode', 'verifyCodeRequest', verifyCodeRequest);
233
+ localVarPath = "/accounts/{accountId}/code/verify"
234
+ .replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)));
235
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
236
+ if (configuration) {
237
+ baseOptions = configuration.baseOptions;
238
+ }
239
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
240
+ localVarHeaderParameter = {};
241
+ localVarQueryParameter = {};
242
+ // authentication Basic required
243
+ // http basic authentication required
244
+ (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
245
+ // authentication OAuth2 required
246
+ // oauth required
247
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2", [], configuration)];
248
+ case 1:
249
+ // authentication OAuth2 required
250
+ // oauth required
251
+ _a.sent();
252
+ localVarHeaderParameter['Content-Type'] = 'application/json';
253
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
254
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
255
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
256
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(verifyCodeRequest, localVarRequestOptions, configuration);
257
+ return [2 /*return*/, {
258
+ url: (0, common_1.toPathString)(localVarUrlObj),
259
+ options: localVarRequestOptions,
260
+ }];
216
261
  }
217
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
218
- localVarHeaderParameter = {};
219
- localVarQueryParameter = {};
220
- // authentication Basic required
221
- // http basic authentication required
222
- (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
223
- localVarHeaderParameter['Content-Type'] = 'application/json';
224
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
225
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
226
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
227
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(verifyCodeRequest, localVarRequestOptions, configuration);
228
- return [2 /*return*/, {
229
- url: (0, common_1.toPathString)(localVarUrlObj),
230
- options: localVarRequestOptions,
231
- }];
232
262
  });
233
263
  });
234
264
  },
@@ -114,31 +114,41 @@ var MultiChannelApiAxiosParamCreator = function (configuration) {
114
114
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
115
115
  if (options === void 0) { options = {}; }
116
116
  return __generator(this, function (_a) {
117
- // verify required parameter 'accountId' is not null or undefined
118
- (0, common_1.assertParamExists)('createMultiChannelMessage', 'accountId', accountId);
119
- // verify required parameter 'multiChannelMessageRequest' is not null or undefined
120
- (0, common_1.assertParamExists)('createMultiChannelMessage', 'multiChannelMessageRequest', multiChannelMessageRequest);
121
- localVarPath = "/users/{accountId}/messages/multiChannel"
122
- .replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)));
123
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
124
- if (configuration) {
125
- baseOptions = configuration.baseOptions;
117
+ switch (_a.label) {
118
+ case 0:
119
+ // verify required parameter 'accountId' is not null or undefined
120
+ (0, common_1.assertParamExists)('createMultiChannelMessage', 'accountId', accountId);
121
+ // verify required parameter 'multiChannelMessageRequest' is not null or undefined
122
+ (0, common_1.assertParamExists)('createMultiChannelMessage', 'multiChannelMessageRequest', multiChannelMessageRequest);
123
+ localVarPath = "/users/{accountId}/messages/multiChannel"
124
+ .replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)));
125
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
126
+ if (configuration) {
127
+ baseOptions = configuration.baseOptions;
128
+ }
129
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
130
+ localVarHeaderParameter = {};
131
+ localVarQueryParameter = {};
132
+ // authentication Basic required
133
+ // http basic authentication required
134
+ (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
135
+ // authentication OAuth2 required
136
+ // oauth required
137
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2", [], configuration)];
138
+ case 1:
139
+ // authentication OAuth2 required
140
+ // oauth required
141
+ _a.sent();
142
+ localVarHeaderParameter['Content-Type'] = 'application/json';
143
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
144
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
145
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
146
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(multiChannelMessageRequest, localVarRequestOptions, configuration);
147
+ return [2 /*return*/, {
148
+ url: (0, common_1.toPathString)(localVarUrlObj),
149
+ options: localVarRequestOptions,
150
+ }];
126
151
  }
127
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
128
- localVarHeaderParameter = {};
129
- localVarQueryParameter = {};
130
- // authentication Basic required
131
- // http basic authentication required
132
- (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
133
- localVarHeaderParameter['Content-Type'] = 'application/json';
134
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
135
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
136
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
137
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(multiChannelMessageRequest, localVarRequestOptions, configuration);
138
- return [2 /*return*/, {
139
- url: (0, common_1.toPathString)(localVarUrlObj),
140
- options: localVarRequestOptions,
141
- }];
142
152
  });
143
153
  });
144
154
  },
@@ -114,31 +114,41 @@ var PhoneNumberLookupApiAxiosParamCreator = function (configuration) {
114
114
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
115
115
  if (options === void 0) { options = {}; }
116
116
  return __generator(this, function (_a) {
117
- // verify required parameter 'accountId' is not null or undefined
118
- (0, common_1.assertParamExists)('createAsyncBulkLookup', 'accountId', accountId);
119
- // verify required parameter 'asyncLookupRequest' is not null or undefined
120
- (0, common_1.assertParamExists)('createAsyncBulkLookup', 'asyncLookupRequest', asyncLookupRequest);
121
- localVarPath = "/accounts/{accountId}/phoneNumberLookup/bulk"
122
- .replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)));
123
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
124
- if (configuration) {
125
- baseOptions = configuration.baseOptions;
117
+ switch (_a.label) {
118
+ case 0:
119
+ // verify required parameter 'accountId' is not null or undefined
120
+ (0, common_1.assertParamExists)('createAsyncBulkLookup', 'accountId', accountId);
121
+ // verify required parameter 'asyncLookupRequest' is not null or undefined
122
+ (0, common_1.assertParamExists)('createAsyncBulkLookup', 'asyncLookupRequest', asyncLookupRequest);
123
+ localVarPath = "/accounts/{accountId}/phoneNumberLookup/bulk"
124
+ .replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)));
125
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
126
+ if (configuration) {
127
+ baseOptions = configuration.baseOptions;
128
+ }
129
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
130
+ localVarHeaderParameter = {};
131
+ localVarQueryParameter = {};
132
+ // authentication Basic required
133
+ // http basic authentication required
134
+ (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
135
+ // authentication OAuth2 required
136
+ // oauth required
137
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2", [], configuration)];
138
+ case 1:
139
+ // authentication OAuth2 required
140
+ // oauth required
141
+ _a.sent();
142
+ localVarHeaderParameter['Content-Type'] = 'application/json';
143
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
144
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
145
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
146
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(asyncLookupRequest, localVarRequestOptions, configuration);
147
+ return [2 /*return*/, {
148
+ url: (0, common_1.toPathString)(localVarUrlObj),
149
+ options: localVarRequestOptions,
150
+ }];
126
151
  }
127
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
128
- localVarHeaderParameter = {};
129
- localVarQueryParameter = {};
130
- // authentication Basic required
131
- // http basic authentication required
132
- (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
133
- localVarHeaderParameter['Content-Type'] = 'application/json';
134
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
135
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
136
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
137
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(asyncLookupRequest, localVarRequestOptions, configuration);
138
- return [2 /*return*/, {
139
- url: (0, common_1.toPathString)(localVarUrlObj),
140
- options: localVarRequestOptions,
141
- }];
142
152
  });
143
153
  });
144
154
  },
@@ -159,31 +169,41 @@ var PhoneNumberLookupApiAxiosParamCreator = function (configuration) {
159
169
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
160
170
  if (options === void 0) { options = {}; }
161
171
  return __generator(this, function (_a) {
162
- // verify required parameter 'accountId' is not null or undefined
163
- (0, common_1.assertParamExists)('createSyncLookup', 'accountId', accountId);
164
- // verify required parameter 'syncLookupRequest' is not null or undefined
165
- (0, common_1.assertParamExists)('createSyncLookup', 'syncLookupRequest', syncLookupRequest);
166
- localVarPath = "/accounts/{accountId}/phoneNumberLookup"
167
- .replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)));
168
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
169
- if (configuration) {
170
- baseOptions = configuration.baseOptions;
172
+ switch (_a.label) {
173
+ case 0:
174
+ // verify required parameter 'accountId' is not null or undefined
175
+ (0, common_1.assertParamExists)('createSyncLookup', 'accountId', accountId);
176
+ // verify required parameter 'syncLookupRequest' is not null or undefined
177
+ (0, common_1.assertParamExists)('createSyncLookup', 'syncLookupRequest', syncLookupRequest);
178
+ localVarPath = "/accounts/{accountId}/phoneNumberLookup"
179
+ .replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)));
180
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
181
+ if (configuration) {
182
+ baseOptions = configuration.baseOptions;
183
+ }
184
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
185
+ localVarHeaderParameter = {};
186
+ localVarQueryParameter = {};
187
+ // authentication Basic required
188
+ // http basic authentication required
189
+ (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
190
+ // authentication OAuth2 required
191
+ // oauth required
192
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2", [], configuration)];
193
+ case 1:
194
+ // authentication OAuth2 required
195
+ // oauth required
196
+ _a.sent();
197
+ localVarHeaderParameter['Content-Type'] = 'application/json';
198
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
199
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
200
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
201
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(syncLookupRequest, localVarRequestOptions, configuration);
202
+ return [2 /*return*/, {
203
+ url: (0, common_1.toPathString)(localVarUrlObj),
204
+ options: localVarRequestOptions,
205
+ }];
171
206
  }
172
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
173
- localVarHeaderParameter = {};
174
- localVarQueryParameter = {};
175
- // authentication Basic required
176
- // http basic authentication required
177
- (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
178
- localVarHeaderParameter['Content-Type'] = 'application/json';
179
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
180
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
181
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
182
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(syncLookupRequest, localVarRequestOptions, configuration);
183
- return [2 /*return*/, {
184
- url: (0, common_1.toPathString)(localVarUrlObj),
185
- options: localVarRequestOptions,
186
- }];
187
207
  });
188
208
  });
189
209
  },
@@ -204,30 +224,40 @@ var PhoneNumberLookupApiAxiosParamCreator = function (configuration) {
204
224
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
205
225
  if (options === void 0) { options = {}; }
206
226
  return __generator(this, function (_a) {
207
- // verify required parameter 'accountId' is not null or undefined
208
- (0, common_1.assertParamExists)('getAsyncBulkLookup', 'accountId', accountId);
209
- // verify required parameter 'requestId' is not null or undefined
210
- (0, common_1.assertParamExists)('getAsyncBulkLookup', 'requestId', requestId);
211
- localVarPath = "/accounts/{accountId}/phoneNumberLookup/bulk/{requestId}"
212
- .replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)))
213
- .replace("{".concat("requestId", "}"), encodeURIComponent(String(requestId)));
214
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
215
- if (configuration) {
216
- baseOptions = configuration.baseOptions;
227
+ switch (_a.label) {
228
+ case 0:
229
+ // verify required parameter 'accountId' is not null or undefined
230
+ (0, common_1.assertParamExists)('getAsyncBulkLookup', 'accountId', accountId);
231
+ // verify required parameter 'requestId' is not null or undefined
232
+ (0, common_1.assertParamExists)('getAsyncBulkLookup', 'requestId', requestId);
233
+ localVarPath = "/accounts/{accountId}/phoneNumberLookup/bulk/{requestId}"
234
+ .replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)))
235
+ .replace("{".concat("requestId", "}"), encodeURIComponent(String(requestId)));
236
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
237
+ if (configuration) {
238
+ baseOptions = configuration.baseOptions;
239
+ }
240
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
241
+ localVarHeaderParameter = {};
242
+ localVarQueryParameter = {};
243
+ // authentication Basic required
244
+ // http basic authentication required
245
+ (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
246
+ // authentication OAuth2 required
247
+ // oauth required
248
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2", [], configuration)];
249
+ case 1:
250
+ // authentication OAuth2 required
251
+ // oauth required
252
+ _a.sent();
253
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
254
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
255
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
256
+ return [2 /*return*/, {
257
+ url: (0, common_1.toPathString)(localVarUrlObj),
258
+ options: localVarRequestOptions,
259
+ }];
217
260
  }
218
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
219
- localVarHeaderParameter = {};
220
- localVarQueryParameter = {};
221
- // authentication Basic required
222
- // http basic authentication required
223
- (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
224
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
225
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
226
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
227
- return [2 /*return*/, {
228
- url: (0, common_1.toPathString)(localVarUrlObj),
229
- options: localVarRequestOptions,
230
- }];
231
261
  });
232
262
  });
233
263
  },