bandwidth-sdk 7.0.1 → 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.
- package/.github/workflows/deploy.yml +3 -1
- package/.github/workflows/test-pr.yml +3 -1
- package/.github/workflows/test-smoke.yml +4 -2
- package/README.md +10 -2
- package/api/calls-api.ts +20 -0
- package/api/conferences-api.ts +36 -0
- package/api/media-api.ts +16 -0
- package/api/messages-api.ts +8 -0
- package/api/mfaapi.ts +12 -0
- package/api/multi-channel-api.ts +4 -0
- package/api/phone-number-lookup-api.ts +12 -0
- package/api/recordings-api.ts +40 -0
- package/api/statistics-api.ts +4 -0
- package/api/toll-free-verification-api.ts +36 -0
- package/api/transcriptions-api.ts +12 -0
- package/bandwidth.yml +7 -0
- package/common.ts +3 -1
- package/configuration.ts +44 -2
- package/coverage/clover.xml +1112 -1046
- package/coverage/coverage-final.json +13 -13
- package/coverage/lcov-report/index.html +26 -26
- package/coverage/lcov-report/node-sdk/api/calls-api.ts.html +66 -6
- package/coverage/lcov-report/node-sdk/api/conferences-api.ts.html +114 -6
- package/coverage/lcov-report/node-sdk/api/index.html +60 -60
- package/coverage/lcov-report/node-sdk/api/media-api.ts.html +54 -6
- package/coverage/lcov-report/node-sdk/api/messages-api.ts.html +30 -6
- package/coverage/lcov-report/node-sdk/api/mfaapi.ts.html +42 -6
- package/coverage/lcov-report/node-sdk/api/multi-channel-api.ts.html +18 -6
- package/coverage/lcov-report/node-sdk/api/phone-number-lookup-api.ts.html +42 -6
- package/coverage/lcov-report/node-sdk/api/recordings-api.ts.html +126 -6
- package/coverage/lcov-report/node-sdk/api/statistics-api.ts.html +18 -6
- package/coverage/lcov-report/node-sdk/api/toll-free-verification-api.ts.html +114 -6
- package/coverage/lcov-report/node-sdk/api/transcriptions-api.ts.html +42 -6
- package/coverage/lcov-report/node-sdk/api.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/base.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/common.ts.html +24 -18
- package/coverage/lcov-report/node-sdk/configuration.ts.html +138 -12
- package/coverage/lcov-report/node-sdk/index.html +30 -30
- package/coverage/lcov-report/node-sdk/models/business-entity-type-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/business-registration-type-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/Bxml.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/NestableVerb.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/Response.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/Root.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/Verb.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/index.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/index.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Bridge.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Conference.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/CustomParam.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Forward.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Gather.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Hangup.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Pause.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/PauseRecording.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/PhoneNumber.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/PlayAudio.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Record.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Redirect.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/ResumeRecording.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Ring.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/SendDtmf.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/SipUri.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/SpeakSentence.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartGather.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartRecording.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartStream.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StartTranscription.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopGather.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopRecording.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopStream.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StopTranscription.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/StreamParam.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Tag.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/Transfer.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/index.html +1 -1
- package/coverage/lcov-report/node-sdk/models/bxml/verbs/index.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/call-direction-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/call-state-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/call-transcription-detected-language-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/call-transcription-track-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/callback-method-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/card-width-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/completed-lookup-status-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/conference-state-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/deactivation-event-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/file-format-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/in-progress-lookup-status-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/inbound-callback-type-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/index.html +1 -1
- package/coverage/lcov-report/node-sdk/models/index.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/latest-message-delivery-status-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/line-type-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/list-message-direction-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/machine-detection-mode-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/message-direction-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/message-status-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/message-type-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/multi-channel-message-channel-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/priority-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/product-type-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/rbm-action-type-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/rbm-media-height-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/recording-state-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/redirect-method-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/standalone-card-orientation-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/status-callback-type-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/tfv-callback-status-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/tfv-status-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/thumbnail-alignment-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/webhook-subscription-type-enum.ts.html +1 -1
- package/coverage/lcov.info +2779 -2692
- package/custom_templates/README.mustache +2 -2
- package/custom_templates/common.mustache +3 -1
- package/custom_templates/configuration.mustache +43 -1
- package/custom_templates/package.mustache +5 -2
- package/dist/api/calls-api.js +192 -142
- package/dist/api/conferences-api.js +333 -243
- package/dist/api/media-api.js +142 -102
- package/dist/api/messages-api.js +145 -125
- package/dist/api/mfaapi.js +102 -72
- package/dist/api/multi-channel-api.js +34 -24
- package/dist/api/phone-number-lookup-api.js +101 -71
- package/dist/api/recordings-api.js +368 -268
- package/dist/api/statistics-api.js +30 -20
- package/dist/api/toll-free-verification-api.js +298 -208
- package/dist/api/transcriptions-api.js +105 -75
- package/dist/common.js +3 -1
- package/dist/configuration.d.ts +18 -0
- package/dist/configuration.js +71 -3
- package/docs/CallsApi.md +5 -5
- package/docs/ConferencesApi.md +9 -9
- package/docs/MFAApi.md +3 -3
- package/docs/MediaApi.md +4 -4
- package/docs/MessagesApi.md +2 -2
- package/docs/MultiChannelApi.md +1 -1
- package/docs/PhoneNumberLookupApi.md +3 -3
- package/docs/RecordingsApi.md +10 -10
- package/docs/StatisticsApi.md +1 -1
- package/docs/TollFreeVerificationApi.md +9 -9
- package/docs/TranscriptionsApi.md +3 -3
- package/jest.config.js +2 -0
- package/package.json +6 -3
- package/tests/smoke/bxml.test.ts +4 -1
- package/tests/smoke/calls-api.test.ts +4 -1
- package/tests/smoke/conferences-api.test.ts +4 -1
- package/tests/smoke/phone-number-lookup-api.test.ts +2 -2
- package/tests/smoke/recordings-api.test.ts +4 -1
- package/tests/smoke/statistics-api.test.ts +4 -1
- package/tests/smoke/toll-free-verification-api.test.ts +4 -1
- package/tests/smoke/transcriptions-api.test.ts +4 -1
package/dist/api/mfaapi.js
CHANGED
|
@@ -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
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
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
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
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
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
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
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
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
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
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
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
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
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
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
|
},
|