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
@@ -114,30 +114,40 @@ var MediaApiAxiosParamCreator = 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)('deleteMedia', 'accountId', accountId);
119
- // verify required parameter 'mediaId' is not null or undefined
120
- (0, common_1.assertParamExists)('deleteMedia', 'mediaId', mediaId);
121
- localVarPath = "/users/{accountId}/media/{mediaId}"
122
- .replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)))
123
- .replace("{".concat("mediaId", "}"), encodeURIComponent(String(mediaId)));
124
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
125
- if (configuration) {
126
- 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)('deleteMedia', 'accountId', accountId);
121
+ // verify required parameter 'mediaId' is not null or undefined
122
+ (0, common_1.assertParamExists)('deleteMedia', 'mediaId', mediaId);
123
+ localVarPath = "/users/{accountId}/media/{mediaId}"
124
+ .replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)))
125
+ .replace("{".concat("mediaId", "}"), encodeURIComponent(String(mediaId)));
126
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
127
+ if (configuration) {
128
+ baseOptions = configuration.baseOptions;
129
+ }
130
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
131
+ localVarHeaderParameter = {};
132
+ localVarQueryParameter = {};
133
+ // authentication Basic required
134
+ // http basic authentication required
135
+ (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
136
+ // authentication OAuth2 required
137
+ // oauth required
138
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2", [], configuration)];
139
+ case 1:
140
+ // authentication OAuth2 required
141
+ // oauth required
142
+ _a.sent();
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
+ return [2 /*return*/, {
147
+ url: (0, common_1.toPathString)(localVarUrlObj),
148
+ options: localVarRequestOptions,
149
+ }];
127
150
  }
128
- localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
129
- localVarHeaderParameter = {};
130
- localVarQueryParameter = {};
131
- // authentication Basic required
132
- // http basic authentication required
133
- (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
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
- return [2 /*return*/, {
138
- url: (0, common_1.toPathString)(localVarUrlObj),
139
- options: localVarRequestOptions,
140
- }];
141
151
  });
142
152
  });
143
153
  },
@@ -158,30 +168,40 @@ var MediaApiAxiosParamCreator = function (configuration) {
158
168
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
159
169
  if (options === void 0) { options = {}; }
160
170
  return __generator(this, function (_a) {
161
- // verify required parameter 'accountId' is not null or undefined
162
- (0, common_1.assertParamExists)('getMedia', 'accountId', accountId);
163
- // verify required parameter 'mediaId' is not null or undefined
164
- (0, common_1.assertParamExists)('getMedia', 'mediaId', mediaId);
165
- localVarPath = "/users/{accountId}/media/{mediaId}"
166
- .replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)))
167
- .replace("{".concat("mediaId", "}"), encodeURIComponent(String(mediaId)));
168
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
169
- if (configuration) {
170
- baseOptions = configuration.baseOptions;
171
+ switch (_a.label) {
172
+ case 0:
173
+ // verify required parameter 'accountId' is not null or undefined
174
+ (0, common_1.assertParamExists)('getMedia', 'accountId', accountId);
175
+ // verify required parameter 'mediaId' is not null or undefined
176
+ (0, common_1.assertParamExists)('getMedia', 'mediaId', mediaId);
177
+ localVarPath = "/users/{accountId}/media/{mediaId}"
178
+ .replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)))
179
+ .replace("{".concat("mediaId", "}"), encodeURIComponent(String(mediaId)));
180
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
181
+ if (configuration) {
182
+ baseOptions = configuration.baseOptions;
183
+ }
184
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, 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
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
198
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
199
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
200
+ return [2 /*return*/, {
201
+ url: (0, common_1.toPathString)(localVarUrlObj),
202
+ options: localVarRequestOptions,
203
+ }];
171
204
  }
172
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
173
- localVarHeaderParameter = {};
174
- localVarQueryParameter = {};
175
- // authentication Basic required
176
- // http basic authentication required
177
- (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
178
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
179
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
180
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
181
- return [2 /*return*/, {
182
- url: (0, common_1.toPathString)(localVarUrlObj),
183
- options: localVarRequestOptions,
184
- }];
185
205
  });
186
206
  });
187
207
  },
@@ -202,30 +222,40 @@ var MediaApiAxiosParamCreator = function (configuration) {
202
222
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
203
223
  if (options === void 0) { options = {}; }
204
224
  return __generator(this, function (_a) {
205
- // verify required parameter 'accountId' is not null or undefined
206
- (0, common_1.assertParamExists)('listMedia', 'accountId', accountId);
207
- localVarPath = "/users/{accountId}/media"
208
- .replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)));
209
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
210
- if (configuration) {
211
- baseOptions = configuration.baseOptions;
212
- }
213
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
214
- localVarHeaderParameter = {};
215
- localVarQueryParameter = {};
216
- // authentication Basic required
217
- // http basic authentication required
218
- (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
219
- if (continuationToken != null) {
220
- localVarHeaderParameter['Continuation-Token'] = String(continuationToken);
225
+ switch (_a.label) {
226
+ case 0:
227
+ // verify required parameter 'accountId' is not null or undefined
228
+ (0, common_1.assertParamExists)('listMedia', 'accountId', accountId);
229
+ localVarPath = "/users/{accountId}/media"
230
+ .replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)));
231
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
232
+ if (configuration) {
233
+ baseOptions = configuration.baseOptions;
234
+ }
235
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
236
+ localVarHeaderParameter = {};
237
+ localVarQueryParameter = {};
238
+ // authentication Basic required
239
+ // http basic authentication required
240
+ (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
241
+ // authentication OAuth2 required
242
+ // oauth required
243
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2", [], configuration)];
244
+ case 1:
245
+ // authentication OAuth2 required
246
+ // oauth required
247
+ _a.sent();
248
+ if (continuationToken != null) {
249
+ localVarHeaderParameter['Continuation-Token'] = String(continuationToken);
250
+ }
251
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
252
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
253
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
254
+ return [2 /*return*/, {
255
+ url: (0, common_1.toPathString)(localVarUrlObj),
256
+ options: localVarRequestOptions,
257
+ }];
221
258
  }
222
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
223
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
224
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
225
- return [2 /*return*/, {
226
- url: (0, common_1.toPathString)(localVarUrlObj),
227
- options: localVarRequestOptions,
228
- }];
229
259
  });
230
260
  });
231
261
  },
@@ -249,40 +279,50 @@ var MediaApiAxiosParamCreator = function (configuration) {
249
279
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
250
280
  if (options === void 0) { options = {}; }
251
281
  return __generator(this, function (_a) {
252
- // verify required parameter 'accountId' is not null or undefined
253
- (0, common_1.assertParamExists)('uploadMedia', 'accountId', accountId);
254
- // verify required parameter 'mediaId' is not null or undefined
255
- (0, common_1.assertParamExists)('uploadMedia', 'mediaId', mediaId);
256
- // verify required parameter 'body' is not null or undefined
257
- (0, common_1.assertParamExists)('uploadMedia', 'body', body);
258
- localVarPath = "/users/{accountId}/media/{mediaId}"
259
- .replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)))
260
- .replace("{".concat("mediaId", "}"), encodeURIComponent(String(mediaId)));
261
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
262
- if (configuration) {
263
- baseOptions = configuration.baseOptions;
264
- }
265
- localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
266
- localVarHeaderParameter = {};
267
- localVarQueryParameter = {};
268
- // authentication Basic required
269
- // http basic authentication required
270
- (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
271
- localVarHeaderParameter['Content-Type'] = 'application/json';
272
- if (contentType != null) {
273
- localVarHeaderParameter['Content-Type'] = String(contentType);
274
- }
275
- if (cacheControl != null) {
276
- localVarHeaderParameter['Cache-Control'] = String(cacheControl);
282
+ switch (_a.label) {
283
+ case 0:
284
+ // verify required parameter 'accountId' is not null or undefined
285
+ (0, common_1.assertParamExists)('uploadMedia', 'accountId', accountId);
286
+ // verify required parameter 'mediaId' is not null or undefined
287
+ (0, common_1.assertParamExists)('uploadMedia', 'mediaId', mediaId);
288
+ // verify required parameter 'body' is not null or undefined
289
+ (0, common_1.assertParamExists)('uploadMedia', 'body', body);
290
+ localVarPath = "/users/{accountId}/media/{mediaId}"
291
+ .replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)))
292
+ .replace("{".concat("mediaId", "}"), encodeURIComponent(String(mediaId)));
293
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
294
+ if (configuration) {
295
+ baseOptions = configuration.baseOptions;
296
+ }
297
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
298
+ localVarHeaderParameter = {};
299
+ localVarQueryParameter = {};
300
+ // authentication Basic required
301
+ // http basic authentication required
302
+ (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
303
+ // authentication OAuth2 required
304
+ // oauth required
305
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2", [], configuration)];
306
+ case 1:
307
+ // authentication OAuth2 required
308
+ // oauth required
309
+ _a.sent();
310
+ localVarHeaderParameter['Content-Type'] = 'application/json';
311
+ if (contentType != null) {
312
+ localVarHeaderParameter['Content-Type'] = String(contentType);
313
+ }
314
+ if (cacheControl != null) {
315
+ localVarHeaderParameter['Cache-Control'] = String(cacheControl);
316
+ }
317
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
318
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
319
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
320
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
321
+ return [2 /*return*/, {
322
+ url: (0, common_1.toPathString)(localVarUrlObj),
323
+ options: localVarRequestOptions,
324
+ }];
277
325
  }
278
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
279
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
280
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
281
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
282
- return [2 /*return*/, {
283
- url: (0, common_1.toPathString)(localVarUrlObj),
284
- options: localVarRequestOptions,
285
- }];
286
326
  });
287
327
  });
288
328
  },
@@ -114,31 +114,41 @@ var MessagesApiAxiosParamCreator = 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)('createMessage', 'accountId', accountId);
119
- // verify required parameter 'messageRequest' is not null or undefined
120
- (0, common_1.assertParamExists)('createMessage', 'messageRequest', messageRequest);
121
- localVarPath = "/users/{accountId}/messages"
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)('createMessage', 'accountId', accountId);
121
+ // verify required parameter 'messageRequest' is not null or undefined
122
+ (0, common_1.assertParamExists)('createMessage', 'messageRequest', messageRequest);
123
+ localVarPath = "/users/{accountId}/messages"
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)(messageRequest, 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)(messageRequest, localVarRequestOptions, configuration);
138
- return [2 /*return*/, {
139
- url: (0, common_1.toPathString)(localVarUrlObj),
140
- options: localVarRequestOptions,
141
- }];
142
152
  });
143
153
  });
144
154
  },
@@ -185,108 +195,118 @@ var MessagesApiAxiosParamCreator = function (configuration) {
185
195
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
186
196
  if (options === void 0) { options = {}; }
187
197
  return __generator(this, function (_a) {
188
- // verify required parameter 'accountId' is not null or undefined
189
- (0, common_1.assertParamExists)('listMessages', 'accountId', accountId);
190
- localVarPath = "/users/{accountId}/messages"
191
- .replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)));
192
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
193
- if (configuration) {
194
- baseOptions = configuration.baseOptions;
195
- }
196
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
197
- localVarHeaderParameter = {};
198
- localVarQueryParameter = {};
199
- // authentication Basic required
200
- // http basic authentication required
201
- (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
202
- if (messageId !== undefined) {
203
- localVarQueryParameter['messageId'] = messageId;
204
- }
205
- if (sourceTn !== undefined) {
206
- localVarQueryParameter['sourceTn'] = sourceTn;
207
- }
208
- if (destinationTn !== undefined) {
209
- localVarQueryParameter['destinationTn'] = destinationTn;
210
- }
211
- if (messageStatus !== undefined) {
212
- localVarQueryParameter['messageStatus'] = messageStatus;
213
- }
214
- if (messageDirection !== undefined) {
215
- localVarQueryParameter['messageDirection'] = messageDirection;
216
- }
217
- if (carrierName !== undefined) {
218
- localVarQueryParameter['carrierName'] = carrierName;
219
- }
220
- if (messageType !== undefined) {
221
- localVarQueryParameter['messageType'] = messageType;
222
- }
223
- if (errorCode !== undefined) {
224
- localVarQueryParameter['errorCode'] = errorCode;
225
- }
226
- if (fromDateTime !== undefined) {
227
- localVarQueryParameter['fromDateTime'] = fromDateTime;
228
- }
229
- if (toDateTime !== undefined) {
230
- localVarQueryParameter['toDateTime'] = toDateTime;
231
- }
232
- if (campaignId !== undefined) {
233
- localVarQueryParameter['campaignId'] = campaignId;
234
- }
235
- if (fromBwLatency !== undefined) {
236
- localVarQueryParameter['fromBwLatency'] = fromBwLatency;
237
- }
238
- if (bwQueued !== undefined) {
239
- localVarQueryParameter['bwQueued'] = bwQueued;
240
- }
241
- if (product !== undefined) {
242
- localVarQueryParameter['product'] = product;
243
- }
244
- if (location !== undefined) {
245
- localVarQueryParameter['location'] = location;
246
- }
247
- if (carrierQueued !== undefined) {
248
- localVarQueryParameter['carrierQueued'] = carrierQueued;
249
- }
250
- if (fromCarrierLatency !== undefined) {
251
- localVarQueryParameter['fromCarrierLatency'] = fromCarrierLatency;
252
- }
253
- if (callingNumberCountryA3 !== undefined) {
254
- localVarQueryParameter['callingNumberCountryA3'] = callingNumberCountryA3;
255
- }
256
- if (calledNumberCountryA3 !== undefined) {
257
- localVarQueryParameter['calledNumberCountryA3'] = calledNumberCountryA3;
258
- }
259
- if (fromSegmentCount !== undefined) {
260
- localVarQueryParameter['fromSegmentCount'] = fromSegmentCount;
261
- }
262
- if (toSegmentCount !== undefined) {
263
- localVarQueryParameter['toSegmentCount'] = toSegmentCount;
264
- }
265
- if (fromMessageSize !== undefined) {
266
- localVarQueryParameter['fromMessageSize'] = fromMessageSize;
267
- }
268
- if (toMessageSize !== undefined) {
269
- localVarQueryParameter['toMessageSize'] = toMessageSize;
270
- }
271
- if (sort !== undefined) {
272
- localVarQueryParameter['sort'] = sort;
273
- }
274
- if (pageToken !== undefined) {
275
- localVarQueryParameter['pageToken'] = pageToken;
276
- }
277
- if (limit !== undefined) {
278
- localVarQueryParameter['limit'] = limit;
279
- }
280
- if (limitTotalCount !== undefined) {
281
- localVarQueryParameter['limitTotalCount'] = limitTotalCount;
198
+ switch (_a.label) {
199
+ case 0:
200
+ // verify required parameter 'accountId' is not null or undefined
201
+ (0, common_1.assertParamExists)('listMessages', 'accountId', accountId);
202
+ localVarPath = "/users/{accountId}/messages"
203
+ .replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)));
204
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
205
+ if (configuration) {
206
+ baseOptions = configuration.baseOptions;
207
+ }
208
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
209
+ localVarHeaderParameter = {};
210
+ localVarQueryParameter = {};
211
+ // authentication Basic required
212
+ // http basic authentication required
213
+ (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
214
+ // authentication OAuth2 required
215
+ // oauth required
216
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2", [], configuration)];
217
+ case 1:
218
+ // authentication OAuth2 required
219
+ // oauth required
220
+ _a.sent();
221
+ if (messageId !== undefined) {
222
+ localVarQueryParameter['messageId'] = messageId;
223
+ }
224
+ if (sourceTn !== undefined) {
225
+ localVarQueryParameter['sourceTn'] = sourceTn;
226
+ }
227
+ if (destinationTn !== undefined) {
228
+ localVarQueryParameter['destinationTn'] = destinationTn;
229
+ }
230
+ if (messageStatus !== undefined) {
231
+ localVarQueryParameter['messageStatus'] = messageStatus;
232
+ }
233
+ if (messageDirection !== undefined) {
234
+ localVarQueryParameter['messageDirection'] = messageDirection;
235
+ }
236
+ if (carrierName !== undefined) {
237
+ localVarQueryParameter['carrierName'] = carrierName;
238
+ }
239
+ if (messageType !== undefined) {
240
+ localVarQueryParameter['messageType'] = messageType;
241
+ }
242
+ if (errorCode !== undefined) {
243
+ localVarQueryParameter['errorCode'] = errorCode;
244
+ }
245
+ if (fromDateTime !== undefined) {
246
+ localVarQueryParameter['fromDateTime'] = fromDateTime;
247
+ }
248
+ if (toDateTime !== undefined) {
249
+ localVarQueryParameter['toDateTime'] = toDateTime;
250
+ }
251
+ if (campaignId !== undefined) {
252
+ localVarQueryParameter['campaignId'] = campaignId;
253
+ }
254
+ if (fromBwLatency !== undefined) {
255
+ localVarQueryParameter['fromBwLatency'] = fromBwLatency;
256
+ }
257
+ if (bwQueued !== undefined) {
258
+ localVarQueryParameter['bwQueued'] = bwQueued;
259
+ }
260
+ if (product !== undefined) {
261
+ localVarQueryParameter['product'] = product;
262
+ }
263
+ if (location !== undefined) {
264
+ localVarQueryParameter['location'] = location;
265
+ }
266
+ if (carrierQueued !== undefined) {
267
+ localVarQueryParameter['carrierQueued'] = carrierQueued;
268
+ }
269
+ if (fromCarrierLatency !== undefined) {
270
+ localVarQueryParameter['fromCarrierLatency'] = fromCarrierLatency;
271
+ }
272
+ if (callingNumberCountryA3 !== undefined) {
273
+ localVarQueryParameter['callingNumberCountryA3'] = callingNumberCountryA3;
274
+ }
275
+ if (calledNumberCountryA3 !== undefined) {
276
+ localVarQueryParameter['calledNumberCountryA3'] = calledNumberCountryA3;
277
+ }
278
+ if (fromSegmentCount !== undefined) {
279
+ localVarQueryParameter['fromSegmentCount'] = fromSegmentCount;
280
+ }
281
+ if (toSegmentCount !== undefined) {
282
+ localVarQueryParameter['toSegmentCount'] = toSegmentCount;
283
+ }
284
+ if (fromMessageSize !== undefined) {
285
+ localVarQueryParameter['fromMessageSize'] = fromMessageSize;
286
+ }
287
+ if (toMessageSize !== undefined) {
288
+ localVarQueryParameter['toMessageSize'] = toMessageSize;
289
+ }
290
+ if (sort !== undefined) {
291
+ localVarQueryParameter['sort'] = sort;
292
+ }
293
+ if (pageToken !== undefined) {
294
+ localVarQueryParameter['pageToken'] = pageToken;
295
+ }
296
+ if (limit !== undefined) {
297
+ localVarQueryParameter['limit'] = limit;
298
+ }
299
+ if (limitTotalCount !== undefined) {
300
+ localVarQueryParameter['limitTotalCount'] = limitTotalCount;
301
+ }
302
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
303
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
304
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
305
+ return [2 /*return*/, {
306
+ url: (0, common_1.toPathString)(localVarUrlObj),
307
+ options: localVarRequestOptions,
308
+ }];
282
309
  }
283
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
284
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
285
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
286
- return [2 /*return*/, {
287
- url: (0, common_1.toPathString)(localVarUrlObj),
288
- options: localVarRequestOptions,
289
- }];
290
310
  });
291
311
  });
292
312
  },