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 TollFreeVerificationApiAxiosParamCreator = 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)('createWebhookSubscription', 'accountId', accountId);
119
- // verify required parameter 'webhookSubscriptionRequestSchema' is not null or undefined
120
- (0, common_1.assertParamExists)('createWebhookSubscription', 'webhookSubscriptionRequestSchema', webhookSubscriptionRequestSchema);
121
- localVarPath = "/accounts/{accountId}/tollFreeVerification/webhooks/subscriptions"
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)('createWebhookSubscription', 'accountId', accountId);
121
+ // verify required parameter 'webhookSubscriptionRequestSchema' is not null or undefined
122
+ (0, common_1.assertParamExists)('createWebhookSubscription', 'webhookSubscriptionRequestSchema', webhookSubscriptionRequestSchema);
123
+ localVarPath = "/accounts/{accountId}/tollFreeVerification/webhooks/subscriptions"
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)(webhookSubscriptionRequestSchema, 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)(webhookSubscriptionRequestSchema, localVarRequestOptions, configuration);
138
- return [2 /*return*/, {
139
- url: (0, common_1.toPathString)(localVarUrlObj),
140
- options: localVarRequestOptions,
141
- }];
142
152
  });
143
153
  });
144
154
  },
@@ -159,30 +169,40 @@ var TollFreeVerificationApiAxiosParamCreator = 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)('deleteVerificationRequest', 'accountId', accountId);
164
- // verify required parameter 'phoneNumber' is not null or undefined
165
- (0, common_1.assertParamExists)('deleteVerificationRequest', 'phoneNumber', phoneNumber);
166
- localVarPath = "/accounts/{accountId}/phoneNumbers/{phoneNumber}/tollFreeVerification"
167
- .replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)))
168
- .replace("{".concat("phoneNumber", "}"), encodeURIComponent(String(phoneNumber)));
169
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
170
- if (configuration) {
171
- 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)('deleteVerificationRequest', 'accountId', accountId);
176
+ // verify required parameter 'phoneNumber' is not null or undefined
177
+ (0, common_1.assertParamExists)('deleteVerificationRequest', 'phoneNumber', phoneNumber);
178
+ localVarPath = "/accounts/{accountId}/phoneNumbers/{phoneNumber}/tollFreeVerification"
179
+ .replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)))
180
+ .replace("{".concat("phoneNumber", "}"), encodeURIComponent(String(phoneNumber)));
181
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
182
+ if (configuration) {
183
+ baseOptions = configuration.baseOptions;
184
+ }
185
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
186
+ localVarHeaderParameter = {};
187
+ localVarQueryParameter = {};
188
+ // authentication Basic required
189
+ // http basic authentication required
190
+ (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
191
+ // authentication OAuth2 required
192
+ // oauth required
193
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2", [], configuration)];
194
+ case 1:
195
+ // authentication OAuth2 required
196
+ // oauth required
197
+ _a.sent();
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
+ return [2 /*return*/, {
202
+ url: (0, common_1.toPathString)(localVarUrlObj),
203
+ options: localVarRequestOptions,
204
+ }];
172
205
  }
173
- localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
174
- localVarHeaderParameter = {};
175
- localVarQueryParameter = {};
176
- // authentication Basic required
177
- // http basic authentication required
178
- (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
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
- return [2 /*return*/, {
183
- url: (0, common_1.toPathString)(localVarUrlObj),
184
- options: localVarRequestOptions,
185
- }];
186
206
  });
187
207
  });
188
208
  },
@@ -203,30 +223,40 @@ var TollFreeVerificationApiAxiosParamCreator = function (configuration) {
203
223
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
204
224
  if (options === void 0) { options = {}; }
205
225
  return __generator(this, function (_a) {
206
- // verify required parameter 'accountId' is not null or undefined
207
- (0, common_1.assertParamExists)('deleteWebhookSubscription', 'accountId', accountId);
208
- // verify required parameter 'id' is not null or undefined
209
- (0, common_1.assertParamExists)('deleteWebhookSubscription', 'id', id);
210
- localVarPath = "/accounts/{accountId}/tollFreeVerification/webhooks/subscriptions/{id}"
211
- .replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)))
212
- .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
213
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
214
- if (configuration) {
215
- baseOptions = configuration.baseOptions;
226
+ switch (_a.label) {
227
+ case 0:
228
+ // verify required parameter 'accountId' is not null or undefined
229
+ (0, common_1.assertParamExists)('deleteWebhookSubscription', 'accountId', accountId);
230
+ // verify required parameter 'id' is not null or undefined
231
+ (0, common_1.assertParamExists)('deleteWebhookSubscription', 'id', id);
232
+ localVarPath = "/accounts/{accountId}/tollFreeVerification/webhooks/subscriptions/{id}"
233
+ .replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)))
234
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
235
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
236
+ if (configuration) {
237
+ baseOptions = configuration.baseOptions;
238
+ }
239
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, 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
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
253
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
254
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
255
+ return [2 /*return*/, {
256
+ url: (0, common_1.toPathString)(localVarUrlObj),
257
+ options: localVarRequestOptions,
258
+ }];
216
259
  }
217
- localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
218
- localVarHeaderParameter = {};
219
- localVarQueryParameter = {};
220
- // authentication Basic required
221
- // http basic authentication required
222
- (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
223
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
224
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
225
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
226
- return [2 /*return*/, {
227
- url: (0, common_1.toPathString)(localVarUrlObj),
228
- options: localVarRequestOptions,
229
- }];
230
260
  });
231
261
  });
232
262
  },
@@ -247,30 +277,40 @@ var TollFreeVerificationApiAxiosParamCreator = function (configuration) {
247
277
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
248
278
  if (options === void 0) { options = {}; }
249
279
  return __generator(this, function (_a) {
250
- // verify required parameter 'accountId' is not null or undefined
251
- (0, common_1.assertParamExists)('getTollFreeVerificationStatus', 'accountId', accountId);
252
- // verify required parameter 'phoneNumber' is not null or undefined
253
- (0, common_1.assertParamExists)('getTollFreeVerificationStatus', 'phoneNumber', phoneNumber);
254
- localVarPath = "/accounts/{accountId}/phoneNumbers/{phoneNumber}/tollFreeVerification"
255
- .replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)))
256
- .replace("{".concat("phoneNumber", "}"), encodeURIComponent(String(phoneNumber)));
257
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
258
- if (configuration) {
259
- baseOptions = configuration.baseOptions;
280
+ switch (_a.label) {
281
+ case 0:
282
+ // verify required parameter 'accountId' is not null or undefined
283
+ (0, common_1.assertParamExists)('getTollFreeVerificationStatus', 'accountId', accountId);
284
+ // verify required parameter 'phoneNumber' is not null or undefined
285
+ (0, common_1.assertParamExists)('getTollFreeVerificationStatus', 'phoneNumber', phoneNumber);
286
+ localVarPath = "/accounts/{accountId}/phoneNumbers/{phoneNumber}/tollFreeVerification"
287
+ .replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)))
288
+ .replace("{".concat("phoneNumber", "}"), encodeURIComponent(String(phoneNumber)));
289
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
290
+ if (configuration) {
291
+ baseOptions = configuration.baseOptions;
292
+ }
293
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
294
+ localVarHeaderParameter = {};
295
+ localVarQueryParameter = {};
296
+ // authentication Basic required
297
+ // http basic authentication required
298
+ (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
299
+ // authentication OAuth2 required
300
+ // oauth required
301
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2", [], configuration)];
302
+ case 1:
303
+ // authentication OAuth2 required
304
+ // oauth required
305
+ _a.sent();
306
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
307
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
308
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
309
+ return [2 /*return*/, {
310
+ url: (0, common_1.toPathString)(localVarUrlObj),
311
+ options: localVarRequestOptions,
312
+ }];
260
313
  }
261
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
262
- localVarHeaderParameter = {};
263
- localVarQueryParameter = {};
264
- // authentication Basic required
265
- // http basic authentication required
266
- (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
267
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
268
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
269
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
270
- return [2 /*return*/, {
271
- url: (0, common_1.toPathString)(localVarUrlObj),
272
- options: localVarRequestOptions,
273
- }];
274
314
  });
275
315
  });
276
316
  },
@@ -289,24 +329,34 @@ var TollFreeVerificationApiAxiosParamCreator = function (configuration) {
289
329
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
290
330
  if (options === void 0) { options = {}; }
291
331
  return __generator(this, function (_a) {
292
- localVarPath = "/tollFreeVerification/useCases";
293
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
294
- if (configuration) {
295
- baseOptions = configuration.baseOptions;
332
+ switch (_a.label) {
333
+ case 0:
334
+ localVarPath = "/tollFreeVerification/useCases";
335
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
336
+ if (configuration) {
337
+ baseOptions = configuration.baseOptions;
338
+ }
339
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
340
+ localVarHeaderParameter = {};
341
+ localVarQueryParameter = {};
342
+ // authentication Basic required
343
+ // http basic authentication required
344
+ (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
345
+ // authentication OAuth2 required
346
+ // oauth required
347
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2", [], configuration)];
348
+ case 1:
349
+ // authentication OAuth2 required
350
+ // oauth required
351
+ _a.sent();
352
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
353
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
354
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
355
+ return [2 /*return*/, {
356
+ url: (0, common_1.toPathString)(localVarUrlObj),
357
+ options: localVarRequestOptions,
358
+ }];
296
359
  }
297
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
298
- localVarHeaderParameter = {};
299
- localVarQueryParameter = {};
300
- // authentication Basic required
301
- // http basic authentication required
302
- (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
303
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
304
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
305
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
306
- return [2 /*return*/, {
307
- url: (0, common_1.toPathString)(localVarUrlObj),
308
- options: localVarRequestOptions,
309
- }];
310
360
  });
311
361
  });
312
362
  },
@@ -326,27 +376,37 @@ var TollFreeVerificationApiAxiosParamCreator = function (configuration) {
326
376
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
327
377
  if (options === void 0) { options = {}; }
328
378
  return __generator(this, function (_a) {
329
- // verify required parameter 'accountId' is not null or undefined
330
- (0, common_1.assertParamExists)('listWebhookSubscriptions', 'accountId', accountId);
331
- localVarPath = "/accounts/{accountId}/tollFreeVerification/webhooks/subscriptions"
332
- .replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)));
333
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
334
- if (configuration) {
335
- baseOptions = configuration.baseOptions;
379
+ switch (_a.label) {
380
+ case 0:
381
+ // verify required parameter 'accountId' is not null or undefined
382
+ (0, common_1.assertParamExists)('listWebhookSubscriptions', 'accountId', accountId);
383
+ localVarPath = "/accounts/{accountId}/tollFreeVerification/webhooks/subscriptions"
384
+ .replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)));
385
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
386
+ if (configuration) {
387
+ baseOptions = configuration.baseOptions;
388
+ }
389
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
390
+ localVarHeaderParameter = {};
391
+ localVarQueryParameter = {};
392
+ // authentication Basic required
393
+ // http basic authentication required
394
+ (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
395
+ // authentication OAuth2 required
396
+ // oauth required
397
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2", [], configuration)];
398
+ case 1:
399
+ // authentication OAuth2 required
400
+ // oauth required
401
+ _a.sent();
402
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
403
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
404
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
405
+ return [2 /*return*/, {
406
+ url: (0, common_1.toPathString)(localVarUrlObj),
407
+ options: localVarRequestOptions,
408
+ }];
336
409
  }
337
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
338
- localVarHeaderParameter = {};
339
- localVarQueryParameter = {};
340
- // authentication Basic required
341
- // http basic authentication required
342
- (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
343
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
344
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
345
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
346
- return [2 /*return*/, {
347
- url: (0, common_1.toPathString)(localVarUrlObj),
348
- options: localVarRequestOptions,
349
- }];
350
410
  });
351
411
  });
352
412
  },
@@ -367,31 +427,41 @@ var TollFreeVerificationApiAxiosParamCreator = function (configuration) {
367
427
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
368
428
  if (options === void 0) { options = {}; }
369
429
  return __generator(this, function (_a) {
370
- // verify required parameter 'accountId' is not null or undefined
371
- (0, common_1.assertParamExists)('requestTollFreeVerification', 'accountId', accountId);
372
- // verify required parameter 'verificationRequest' is not null or undefined
373
- (0, common_1.assertParamExists)('requestTollFreeVerification', 'verificationRequest', verificationRequest);
374
- localVarPath = "/accounts/{accountId}/tollFreeVerification"
375
- .replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)));
376
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
377
- if (configuration) {
378
- baseOptions = configuration.baseOptions;
430
+ switch (_a.label) {
431
+ case 0:
432
+ // verify required parameter 'accountId' is not null or undefined
433
+ (0, common_1.assertParamExists)('requestTollFreeVerification', 'accountId', accountId);
434
+ // verify required parameter 'verificationRequest' is not null or undefined
435
+ (0, common_1.assertParamExists)('requestTollFreeVerification', 'verificationRequest', verificationRequest);
436
+ localVarPath = "/accounts/{accountId}/tollFreeVerification"
437
+ .replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)));
438
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
439
+ if (configuration) {
440
+ baseOptions = configuration.baseOptions;
441
+ }
442
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
443
+ localVarHeaderParameter = {};
444
+ localVarQueryParameter = {};
445
+ // authentication Basic required
446
+ // http basic authentication required
447
+ (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
448
+ // authentication OAuth2 required
449
+ // oauth required
450
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2", [], configuration)];
451
+ case 1:
452
+ // authentication OAuth2 required
453
+ // oauth required
454
+ _a.sent();
455
+ localVarHeaderParameter['Content-Type'] = 'application/json';
456
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
457
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
458
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
459
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(verificationRequest, localVarRequestOptions, configuration);
460
+ return [2 /*return*/, {
461
+ url: (0, common_1.toPathString)(localVarUrlObj),
462
+ options: localVarRequestOptions,
463
+ }];
379
464
  }
380
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
381
- localVarHeaderParameter = {};
382
- localVarQueryParameter = {};
383
- // authentication Basic required
384
- // http basic authentication required
385
- (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
386
- localVarHeaderParameter['Content-Type'] = 'application/json';
387
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
388
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
389
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
390
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(verificationRequest, localVarRequestOptions, configuration);
391
- return [2 /*return*/, {
392
- url: (0, common_1.toPathString)(localVarUrlObj),
393
- options: localVarRequestOptions,
394
- }];
395
465
  });
396
466
  });
397
467
  },
@@ -413,34 +483,44 @@ var TollFreeVerificationApiAxiosParamCreator = function (configuration) {
413
483
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
414
484
  if (options === void 0) { options = {}; }
415
485
  return __generator(this, function (_a) {
416
- // verify required parameter 'accountId' is not null or undefined
417
- (0, common_1.assertParamExists)('updateTollFreeVerificationRequest', 'accountId', accountId);
418
- // verify required parameter 'phoneNumber' is not null or undefined
419
- (0, common_1.assertParamExists)('updateTollFreeVerificationRequest', 'phoneNumber', phoneNumber);
420
- // verify required parameter 'tfvSubmissionWrapper' is not null or undefined
421
- (0, common_1.assertParamExists)('updateTollFreeVerificationRequest', 'tfvSubmissionWrapper', tfvSubmissionWrapper);
422
- localVarPath = "/accounts/{accountId}/phoneNumbers/{phoneNumber}/tollFreeVerification"
423
- .replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)))
424
- .replace("{".concat("phoneNumber", "}"), encodeURIComponent(String(phoneNumber)));
425
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
426
- if (configuration) {
427
- baseOptions = configuration.baseOptions;
486
+ switch (_a.label) {
487
+ case 0:
488
+ // verify required parameter 'accountId' is not null or undefined
489
+ (0, common_1.assertParamExists)('updateTollFreeVerificationRequest', 'accountId', accountId);
490
+ // verify required parameter 'phoneNumber' is not null or undefined
491
+ (0, common_1.assertParamExists)('updateTollFreeVerificationRequest', 'phoneNumber', phoneNumber);
492
+ // verify required parameter 'tfvSubmissionWrapper' is not null or undefined
493
+ (0, common_1.assertParamExists)('updateTollFreeVerificationRequest', 'tfvSubmissionWrapper', tfvSubmissionWrapper);
494
+ localVarPath = "/accounts/{accountId}/phoneNumbers/{phoneNumber}/tollFreeVerification"
495
+ .replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)))
496
+ .replace("{".concat("phoneNumber", "}"), encodeURIComponent(String(phoneNumber)));
497
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
498
+ if (configuration) {
499
+ baseOptions = configuration.baseOptions;
500
+ }
501
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
502
+ localVarHeaderParameter = {};
503
+ localVarQueryParameter = {};
504
+ // authentication Basic required
505
+ // http basic authentication required
506
+ (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
507
+ // authentication OAuth2 required
508
+ // oauth required
509
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2", [], configuration)];
510
+ case 1:
511
+ // authentication OAuth2 required
512
+ // oauth required
513
+ _a.sent();
514
+ localVarHeaderParameter['Content-Type'] = 'application/json';
515
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
516
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
517
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
518
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(tfvSubmissionWrapper, localVarRequestOptions, configuration);
519
+ return [2 /*return*/, {
520
+ url: (0, common_1.toPathString)(localVarUrlObj),
521
+ options: localVarRequestOptions,
522
+ }];
428
523
  }
429
- localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
430
- localVarHeaderParameter = {};
431
- localVarQueryParameter = {};
432
- // authentication Basic required
433
- // http basic authentication required
434
- (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
435
- localVarHeaderParameter['Content-Type'] = 'application/json';
436
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
437
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
438
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
439
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(tfvSubmissionWrapper, localVarRequestOptions, configuration);
440
- return [2 /*return*/, {
441
- url: (0, common_1.toPathString)(localVarUrlObj),
442
- options: localVarRequestOptions,
443
- }];
444
524
  });
445
525
  });
446
526
  },
@@ -462,34 +542,44 @@ var TollFreeVerificationApiAxiosParamCreator = function (configuration) {
462
542
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
463
543
  if (options === void 0) { options = {}; }
464
544
  return __generator(this, function (_a) {
465
- // verify required parameter 'accountId' is not null or undefined
466
- (0, common_1.assertParamExists)('updateWebhookSubscription', 'accountId', accountId);
467
- // verify required parameter 'id' is not null or undefined
468
- (0, common_1.assertParamExists)('updateWebhookSubscription', 'id', id);
469
- // verify required parameter 'webhookSubscriptionRequestSchema' is not null or undefined
470
- (0, common_1.assertParamExists)('updateWebhookSubscription', 'webhookSubscriptionRequestSchema', webhookSubscriptionRequestSchema);
471
- localVarPath = "/accounts/{accountId}/tollFreeVerification/webhooks/subscriptions/{id}"
472
- .replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)))
473
- .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
474
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
475
- if (configuration) {
476
- baseOptions = configuration.baseOptions;
545
+ switch (_a.label) {
546
+ case 0:
547
+ // verify required parameter 'accountId' is not null or undefined
548
+ (0, common_1.assertParamExists)('updateWebhookSubscription', 'accountId', accountId);
549
+ // verify required parameter 'id' is not null or undefined
550
+ (0, common_1.assertParamExists)('updateWebhookSubscription', 'id', id);
551
+ // verify required parameter 'webhookSubscriptionRequestSchema' is not null or undefined
552
+ (0, common_1.assertParamExists)('updateWebhookSubscription', 'webhookSubscriptionRequestSchema', webhookSubscriptionRequestSchema);
553
+ localVarPath = "/accounts/{accountId}/tollFreeVerification/webhooks/subscriptions/{id}"
554
+ .replace("{".concat("accountId", "}"), encodeURIComponent(String(accountId)))
555
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
556
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
557
+ if (configuration) {
558
+ baseOptions = configuration.baseOptions;
559
+ }
560
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
561
+ localVarHeaderParameter = {};
562
+ localVarQueryParameter = {};
563
+ // authentication Basic required
564
+ // http basic authentication required
565
+ (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
566
+ // authentication OAuth2 required
567
+ // oauth required
568
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2", [], configuration)];
569
+ case 1:
570
+ // authentication OAuth2 required
571
+ // oauth required
572
+ _a.sent();
573
+ localVarHeaderParameter['Content-Type'] = 'application/json';
574
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
575
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
576
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
577
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(webhookSubscriptionRequestSchema, localVarRequestOptions, configuration);
578
+ return [2 /*return*/, {
579
+ url: (0, common_1.toPathString)(localVarUrlObj),
580
+ options: localVarRequestOptions,
581
+ }];
477
582
  }
478
- localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
479
- localVarHeaderParameter = {};
480
- localVarQueryParameter = {};
481
- // authentication Basic required
482
- // http basic authentication required
483
- (0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
484
- localVarHeaderParameter['Content-Type'] = 'application/json';
485
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
486
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
487
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
488
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(webhookSubscriptionRequestSchema, localVarRequestOptions, configuration);
489
- return [2 /*return*/, {
490
- url: (0, common_1.toPathString)(localVarUrlObj),
491
- options: localVarRequestOptions,
492
- }];
493
583
  });
494
584
  });
495
585
  },