bandwidth-sdk 8.3.0 → 9.0.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/CODEOWNERS +0 -3
- package/.github/workflows/deploy.yml +1 -30
- package/.github/workflows/test-pr.yml +0 -20
- package/.github/workflows/test-smoke.yml +0 -4
- package/.openapi-generator/FILES +2 -0
- package/README.md +1 -5
- package/api/calls-api.ts +0 -20
- package/api/conferences-api.ts +0 -36
- package/api/endpoints-api.ts +0 -20
- package/api/media-api.ts +8 -24
- package/api/messages-api.ts +0 -8
- package/api/mfaapi.ts +0 -12
- package/api/multi-channel-api.ts +0 -4
- package/api/phone-number-lookup-api.ts +0 -12
- package/api/recordings-api.ts +0 -40
- package/api/statistics-api.ts +0 -4
- package/api/toll-free-verification-api.ts +12 -48
- package/api/transcriptions-api.ts +0 -12
- package/bandwidth.yml +341 -122
- package/common.ts +2 -5
- package/configuration.ts +4 -13
- package/coverage/clover.xml +1249 -1293
- package/coverage/coverage-final.json +17 -16
- package/coverage/lcov-report/index.html +41 -26
- package/coverage/lcov-report/node-sdk/api/calls-api.ts.html +6 -66
- package/coverage/lcov-report/node-sdk/api/conferences-api.ts.html +6 -114
- package/coverage/lcov-report/node-sdk/api/endpoints-api.ts.html +6 -66
- package/coverage/lcov-report/node-sdk/api/index.html +69 -69
- package/coverage/lcov-report/node-sdk/api/media-api.ts.html +14 -62
- package/coverage/lcov-report/node-sdk/api/messages-api.ts.html +6 -30
- package/coverage/lcov-report/node-sdk/api/mfaapi.ts.html +6 -42
- package/coverage/lcov-report/node-sdk/api/multi-channel-api.ts.html +6 -18
- package/coverage/lcov-report/node-sdk/api/phone-number-lookup-api.ts.html +6 -42
- package/coverage/lcov-report/node-sdk/api/recordings-api.ts.html +6 -126
- package/coverage/lcov-report/node-sdk/api/statistics-api.ts.html +6 -18
- package/coverage/lcov-report/node-sdk/api/toll-free-verification-api.ts.html +18 -126
- package/coverage/lcov-report/node-sdk/api/transcriptions-api.ts.html +6 -42
- 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 +13 -22
- package/coverage/lcov-report/node-sdk/configuration.ts.html +11 -38
- package/coverage/lcov-report/node-sdk/index.html +20 -20
- package/coverage/lcov-report/node-sdk/models/business-entity-type-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/business-registration-type-enum.ts.html +2 -2
- 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/Connect.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/Endpoint.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/Refer.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/device-status-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/endpoint-direction-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/endpoint-event-type-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/endpoint-status-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/endpoint-type-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 +5 -5
- package/coverage/lcov-report/node-sdk/models/index.ts.html +7 -4
- 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/rbm-open-url-enum.ts.html +1 -1
- package/coverage/lcov-report/node-sdk/models/rbm-web-view-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/refer-call-status-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 +6 -3
- 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-report/node-sdk/tests/unit/constants.ts.html +103 -0
- package/coverage/lcov-report/node-sdk/tests/unit/index.html +116 -0
- package/coverage/lcov.info +3073 -3115
- package/custom_templates/common.mustache +2 -5
- package/custom_templates/configuration.mustache +3 -12
- package/dist/api/calls-api.js +0 -15
- package/dist/api/conferences-api.js +0 -27
- package/dist/api/endpoints-api.js +0 -15
- package/dist/api/media-api.d.ts +8 -8
- package/dist/api/media-api.js +8 -20
- package/dist/api/messages-api.js +0 -6
- package/dist/api/mfaapi.js +0 -9
- package/dist/api/multi-channel-api.js +0 -3
- package/dist/api/phone-number-lookup-api.js +0 -9
- package/dist/api/recordings-api.js +0 -30
- package/dist/api/statistics-api.js +0 -3
- package/dist/api/toll-free-verification-api.d.ts +12 -12
- package/dist/api/toll-free-verification-api.js +12 -39
- package/dist/api/transcriptions-api.js +0 -9
- package/dist/common.js +2 -5
- package/dist/configuration.d.ts +0 -10
- package/dist/configuration.js +4 -3
- package/dist/models/business-entity-type-enum.d.ts +1 -1
- package/dist/models/business-entity-type-enum.js +1 -1
- package/dist/models/business-registration-type-enum.d.ts +1 -1
- package/dist/models/business-registration-type-enum.js +1 -1
- package/dist/models/callback.d.ts +2 -0
- package/dist/models/disconnect-callback.d.ts +11 -1
- package/dist/models/inbound-callback-message.d.ts +2 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/models/initiate-callback.d.ts +1 -1
- package/dist/models/list-message-item.d.ts +1 -1
- package/dist/models/multi-channel-action-calendar-event.d.ts +1 -1
- package/dist/models/multi-channel-action.d.ts +1 -1
- package/dist/models/rbm-action-base.d.ts +1 -1
- package/dist/models/rbm-action-dial.d.ts +1 -1
- package/dist/models/rbm-action-open-url.d.ts +1 -1
- package/dist/models/rbm-action-view-location.d.ts +1 -1
- package/dist/models/rbm-session.d.ts +36 -0
- package/dist/models/rbm-session.js +15 -0
- package/dist/models/rbm-suggestion-response.d.ts +2 -2
- package/dist/models/status-callback-message.d.ts +2 -0
- package/dist/models/status-callback-type-enum.d.ts +2 -1
- package/dist/models/status-callback-type-enum.js +2 -1
- package/dist/models/tfv-submission-info.d.ts +2 -2
- package/dist/models/transfer-disconnect-callback.d.ts +14 -0
- package/dist/models/verification-request.d.ts +2 -2
- package/dist/models/verification-update-request.d.ts +3 -3
- package/docs/BusinessEntityTypeEnum.md +1 -1
- package/docs/BusinessRegistrationTypeEnum.md +1 -1
- package/docs/CallsApi.md +5 -5
- package/docs/ConferencesApi.md +9 -9
- package/docs/DisconnectCallback.md +5 -1
- package/docs/EndpointsApi.md +5 -5
- package/docs/InboundCallbackMessage.md +2 -0
- package/docs/InitiateCallback.md +1 -1
- package/docs/MFAApi.md +3 -3
- package/docs/MediaApi.md +7 -7
- package/docs/MessagesApi.md +2 -2
- package/docs/MultiChannelAction.md +1 -1
- package/docs/MultiChannelActionCalendarEvent.md +1 -1
- package/docs/MultiChannelApi.md +1 -1
- package/docs/PhoneNumberLookupApi.md +3 -3
- package/docs/RbmActionBase.md +1 -1
- package/docs/RbmActionDial.md +1 -1
- package/docs/RbmActionOpenUrl.md +1 -1
- package/docs/RbmActionViewLocation.md +1 -1
- package/docs/RbmSession.md +29 -0
- package/docs/RbmSuggestionResponse.md +2 -2
- package/docs/RecordingsApi.md +10 -10
- package/docs/StatisticsApi.md +1 -1
- package/docs/StatusCallbackMessage.md +2 -0
- package/docs/StatusCallbackTypeEnum.md +3 -1
- package/docs/TfvSubmissionInfo.md +2 -2
- package/docs/TollFreeVerificationApi.md +15 -12
- package/docs/TranscriptionsApi.md +3 -3
- package/docs/TransferDisconnectCallback.md +6 -0
- package/docs/VerificationRequest.md +2 -2
- package/docs/VerificationUpdateRequest.md +3 -3
- package/generate.sh +6 -0
- package/jest.config.js +0 -6
- package/models/business-entity-type-enum.ts +1 -1
- package/models/business-registration-type-enum.ts +1 -1
- package/models/callback.ts +1 -1
- package/models/disconnect-callback.ts +9 -1
- package/models/inbound-callback-message.ts +4 -0
- package/models/index.ts +1 -0
- package/models/initiate-callback.ts +1 -1
- package/models/list-message-item.ts +1 -1
- package/models/multi-channel-action-calendar-event.ts +1 -1
- package/models/multi-channel-action.ts +1 -1
- package/models/rbm-action-base.ts +1 -1
- package/models/rbm-action-dial.ts +1 -1
- package/models/rbm-action-open-url.ts +1 -1
- package/models/rbm-action-view-location.ts +1 -1
- package/models/rbm-session.ts +42 -0
- package/models/rbm-suggestion-response.ts +2 -2
- package/models/status-callback-message.ts +4 -0
- package/models/status-callback-type-enum.ts +2 -1
- package/models/tfv-submission-info.ts +2 -2
- package/models/transfer-disconnect-callback.ts +12 -0
- package/models/verification-request.ts +2 -2
- package/models/verification-update-request.ts +3 -3
- package/package.json +1 -1
- package/tests/globals.d.ts +0 -6
- package/tests/smoke/calls-api.test.ts +1 -23
- package/tests/smoke/conferences-api.test.ts +2 -2
- package/tests/smoke/media-api.test.ts +4 -1
- package/tests/smoke/messages-api.test.ts +4 -19
- package/tests/smoke/mfaapi.test.ts +4 -20
- package/tests/smoke/multi-channel-api.test.ts +2 -2
- package/tests/smoke/statistics-api.test.ts +0 -24
- package/tests/unit/api/calls-api.test.ts +2 -1
- package/tests/unit/api/conferences-api.test.ts +3 -2
- package/tests/unit/api/media-api.test.ts +1 -0
- package/tests/unit/api/messages-api.test.ts +1 -0
- package/tests/unit/api/mfaapi.test.ts +1 -0
- package/tests/unit/api/multi-channel-api.test.ts +1 -0
- package/tests/unit/api/phone-number-lookup-api.test.ts +1 -0
- package/tests/unit/api/recordings-api.test.ts +2 -1
- package/tests/unit/api/statistics-api.test.ts +1 -0
- package/tests/unit/api/toll-free-verification-api.test.ts +1 -0
- package/tests/unit/api/transcriptions-api.test.ts +1 -0
- package/tests/unit/configuration.test.ts +19 -0
- package/tests/unit/constants.ts +6 -0
- package/tests/unit/models/disconnect-callback.test.ts +4 -0
- package/tests/unit/models/inbound-callback-message.test.ts +3 -0
- package/tests/unit/models/rbm-session.test.ts +19 -0
- package/tests/unit/models/status-callback-message.test.ts +3 -0
- package/tests/unit/models/status-callback-type-enum.test.ts +3 -1
- package/tests/unit/models/transfer-disconnect-callback.test.ts +6 -0
|
@@ -34,11 +34,8 @@ export const setApiKeyToObject = async function (object: any, keyParamName: stri
|
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
object["auth"] = { username: configuration.username, password: configuration.password };
|
|
40
|
-
}
|
|
41
|
-
}
|
|
37
|
+
// No-op: kept because the generated API files import it unconditionally.
|
|
38
|
+
export const setBasicAuthToObject = function (object: any, configuration?: Configuration) {}
|
|
42
39
|
|
|
43
40
|
export const setBearerAuthToObject = async function (object: any, configuration?: Configuration) {
|
|
44
41
|
if (configuration && configuration.accessToken) {
|
|
@@ -17,8 +17,6 @@ interface AWSv4Configuration {
|
|
|
17
17
|
|
|
18
18
|
export interface ConfigurationParameters {
|
|
19
19
|
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
20
|
-
username?: string;
|
|
21
|
-
password?: string;
|
|
22
20
|
clientId?: string;
|
|
23
21
|
clientSecret?: string;
|
|
24
22
|
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
@@ -36,14 +34,6 @@ export class Configuration {
|
|
|
36
34
|
* @param name security name
|
|
37
35
|
*/
|
|
38
36
|
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
39
|
-
/**
|
|
40
|
-
* parameter for basic security
|
|
41
|
-
*/
|
|
42
|
-
username?: string;
|
|
43
|
-
/**
|
|
44
|
-
* parameter for basic security
|
|
45
|
-
*/
|
|
46
|
-
password?: string;
|
|
47
37
|
/**
|
|
48
38
|
* parameter for client ID
|
|
49
39
|
*/
|
|
@@ -103,9 +93,10 @@ export class Configuration {
|
|
|
103
93
|
formDataCtor?: new () => any;
|
|
104
94
|
|
|
105
95
|
constructor(param: ConfigurationParameters = {}) {
|
|
96
|
+
if ('username' in param || 'password' in param) {
|
|
97
|
+
throw new Error('Basic authentication is no longer supported. Use `clientId` and `clientSecret` instead.');
|
|
98
|
+
}
|
|
106
99
|
this.apiKey = param.apiKey;
|
|
107
|
-
this.username = param.username;
|
|
108
|
-
this.password = param.password;
|
|
109
100
|
this.clientId = param.clientId;
|
|
110
101
|
this.clientSecret = param.clientSecret;
|
|
111
102
|
this.tempAccessToken;
|
package/dist/api/calls-api.js
CHANGED
|
@@ -129,9 +129,6 @@ var CallsApiAxiosParamCreator = function (configuration) {
|
|
|
129
129
|
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
130
130
|
localVarHeaderParameter = {};
|
|
131
131
|
localVarQueryParameter = {};
|
|
132
|
-
// authentication Basic required
|
|
133
|
-
// http basic authentication required
|
|
134
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
135
132
|
// authentication OAuth2 required
|
|
136
133
|
// oauth required
|
|
137
134
|
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2", [], configuration)];
|
|
@@ -186,9 +183,6 @@ var CallsApiAxiosParamCreator = function (configuration) {
|
|
|
186
183
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
187
184
|
localVarHeaderParameter = {};
|
|
188
185
|
localVarQueryParameter = {};
|
|
189
|
-
// authentication Basic required
|
|
190
|
-
// http basic authentication required
|
|
191
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
192
186
|
// authentication OAuth2 required
|
|
193
187
|
// oauth required
|
|
194
188
|
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2", [], configuration)];
|
|
@@ -244,9 +238,6 @@ var CallsApiAxiosParamCreator = function (configuration) {
|
|
|
244
238
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
245
239
|
localVarHeaderParameter = {};
|
|
246
240
|
localVarQueryParameter = {};
|
|
247
|
-
// authentication Basic required
|
|
248
|
-
// http basic authentication required
|
|
249
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
250
241
|
// authentication OAuth2 required
|
|
251
242
|
// oauth required
|
|
252
243
|
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2", [], configuration)];
|
|
@@ -323,9 +314,6 @@ var CallsApiAxiosParamCreator = function (configuration) {
|
|
|
323
314
|
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
324
315
|
localVarHeaderParameter = {};
|
|
325
316
|
localVarQueryParameter = {};
|
|
326
|
-
// authentication Basic required
|
|
327
|
-
// http basic authentication required
|
|
328
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
329
317
|
// authentication OAuth2 required
|
|
330
318
|
// oauth required
|
|
331
319
|
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2", [], configuration)];
|
|
@@ -383,9 +371,6 @@ var CallsApiAxiosParamCreator = function (configuration) {
|
|
|
383
371
|
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
384
372
|
localVarHeaderParameter = {};
|
|
385
373
|
localVarQueryParameter = {};
|
|
386
|
-
// authentication Basic required
|
|
387
|
-
// http basic authentication required
|
|
388
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
389
374
|
// authentication OAuth2 required
|
|
390
375
|
// oauth required
|
|
391
376
|
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2", [], configuration)];
|
|
@@ -134,9 +134,6 @@ var ConferencesApiAxiosParamCreator = function (configuration) {
|
|
|
134
134
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
135
135
|
localVarHeaderParameter = {};
|
|
136
136
|
localVarQueryParameter = {};
|
|
137
|
-
// authentication Basic required
|
|
138
|
-
// http basic authentication required
|
|
139
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
140
137
|
// authentication OAuth2 required
|
|
141
138
|
// oauth required
|
|
142
139
|
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2", [], configuration)];
|
|
@@ -189,9 +186,6 @@ var ConferencesApiAxiosParamCreator = function (configuration) {
|
|
|
189
186
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
190
187
|
localVarHeaderParameter = {};
|
|
191
188
|
localVarQueryParameter = {};
|
|
192
|
-
// authentication Basic required
|
|
193
|
-
// http basic authentication required
|
|
194
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
195
189
|
// authentication OAuth2 required
|
|
196
190
|
// oauth required
|
|
197
191
|
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2", [], configuration)];
|
|
@@ -248,9 +242,6 @@ var ConferencesApiAxiosParamCreator = function (configuration) {
|
|
|
248
242
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
249
243
|
localVarHeaderParameter = {};
|
|
250
244
|
localVarQueryParameter = {};
|
|
251
|
-
// authentication Basic required
|
|
252
|
-
// http basic authentication required
|
|
253
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
254
245
|
// authentication OAuth2 required
|
|
255
246
|
// oauth required
|
|
256
247
|
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2", [], configuration)];
|
|
@@ -307,9 +298,6 @@ var ConferencesApiAxiosParamCreator = function (configuration) {
|
|
|
307
298
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
308
299
|
localVarHeaderParameter = {};
|
|
309
300
|
localVarQueryParameter = {};
|
|
310
|
-
// authentication Basic required
|
|
311
|
-
// http basic authentication required
|
|
312
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
313
301
|
// authentication OAuth2 required
|
|
314
302
|
// oauth required
|
|
315
303
|
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2", [], configuration)];
|
|
@@ -362,9 +350,6 @@ var ConferencesApiAxiosParamCreator = function (configuration) {
|
|
|
362
350
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
363
351
|
localVarHeaderParameter = {};
|
|
364
352
|
localVarQueryParameter = {};
|
|
365
|
-
// authentication Basic required
|
|
366
|
-
// http basic authentication required
|
|
367
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
368
353
|
// authentication OAuth2 required
|
|
369
354
|
// oauth required
|
|
370
355
|
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2", [], configuration)];
|
|
@@ -418,9 +403,6 @@ var ConferencesApiAxiosParamCreator = function (configuration) {
|
|
|
418
403
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
419
404
|
localVarHeaderParameter = {};
|
|
420
405
|
localVarQueryParameter = {};
|
|
421
|
-
// authentication Basic required
|
|
422
|
-
// http basic authentication required
|
|
423
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
424
406
|
// authentication OAuth2 required
|
|
425
407
|
// oauth required
|
|
426
408
|
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2", [], configuration)];
|
|
@@ -491,9 +473,6 @@ var ConferencesApiAxiosParamCreator = function (configuration) {
|
|
|
491
473
|
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
492
474
|
localVarHeaderParameter = {};
|
|
493
475
|
localVarQueryParameter = {};
|
|
494
|
-
// authentication Basic required
|
|
495
|
-
// http basic authentication required
|
|
496
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
497
476
|
// authentication OAuth2 required
|
|
498
477
|
// oauth required
|
|
499
478
|
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2", [], configuration)];
|
|
@@ -551,9 +530,6 @@ var ConferencesApiAxiosParamCreator = function (configuration) {
|
|
|
551
530
|
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
552
531
|
localVarHeaderParameter = {};
|
|
553
532
|
localVarQueryParameter = {};
|
|
554
|
-
// authentication Basic required
|
|
555
|
-
// http basic authentication required
|
|
556
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
557
533
|
// authentication OAuth2 required
|
|
558
534
|
// oauth required
|
|
559
535
|
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2", [], configuration)];
|
|
@@ -615,9 +591,6 @@ var ConferencesApiAxiosParamCreator = function (configuration) {
|
|
|
615
591
|
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
616
592
|
localVarHeaderParameter = {};
|
|
617
593
|
localVarQueryParameter = {};
|
|
618
|
-
// authentication Basic required
|
|
619
|
-
// http basic authentication required
|
|
620
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
621
594
|
// authentication OAuth2 required
|
|
622
595
|
// oauth required
|
|
623
596
|
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2", [], configuration)];
|
|
@@ -129,9 +129,6 @@ var EndpointsApiAxiosParamCreator = function (configuration) {
|
|
|
129
129
|
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
130
130
|
localVarHeaderParameter = {};
|
|
131
131
|
localVarQueryParameter = {};
|
|
132
|
-
// authentication Basic required
|
|
133
|
-
// http basic authentication required
|
|
134
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
135
132
|
// authentication OAuth2 required
|
|
136
133
|
// oauth required
|
|
137
134
|
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2", [], configuration)];
|
|
@@ -186,9 +183,6 @@ var EndpointsApiAxiosParamCreator = function (configuration) {
|
|
|
186
183
|
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
187
184
|
localVarHeaderParameter = {};
|
|
188
185
|
localVarQueryParameter = {};
|
|
189
|
-
// authentication Basic required
|
|
190
|
-
// http basic authentication required
|
|
191
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
192
186
|
// authentication OAuth2 required
|
|
193
187
|
// oauth required
|
|
194
188
|
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2", [], configuration)];
|
|
@@ -241,9 +235,6 @@ var EndpointsApiAxiosParamCreator = function (configuration) {
|
|
|
241
235
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
242
236
|
localVarHeaderParameter = {};
|
|
243
237
|
localVarQueryParameter = {};
|
|
244
|
-
// authentication Basic required
|
|
245
|
-
// http basic authentication required
|
|
246
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
247
238
|
// authentication OAuth2 required
|
|
248
239
|
// oauth required
|
|
249
240
|
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2", [], configuration)];
|
|
@@ -296,9 +287,6 @@ var EndpointsApiAxiosParamCreator = function (configuration) {
|
|
|
296
287
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
297
288
|
localVarHeaderParameter = {};
|
|
298
289
|
localVarQueryParameter = {};
|
|
299
|
-
// authentication Basic required
|
|
300
|
-
// http basic authentication required
|
|
301
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
302
290
|
// authentication OAuth2 required
|
|
303
291
|
// oauth required
|
|
304
292
|
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2", [], configuration)];
|
|
@@ -366,9 +354,6 @@ var EndpointsApiAxiosParamCreator = function (configuration) {
|
|
|
366
354
|
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
367
355
|
localVarHeaderParameter = {};
|
|
368
356
|
localVarQueryParameter = {};
|
|
369
|
-
// authentication Basic required
|
|
370
|
-
// http basic authentication required
|
|
371
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
372
357
|
// authentication OAuth2 required
|
|
373
358
|
// oauth required
|
|
374
359
|
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2", [], configuration)];
|
package/dist/api/media-api.d.ts
CHANGED
|
@@ -45,13 +45,13 @@ export declare const MediaApiAxiosParamCreator: (configuration?: Configuration)
|
|
|
45
45
|
*/
|
|
46
46
|
listMedia: (accountId: string, continuationToken?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
47
47
|
/**
|
|
48
|
-
* Upload a file.
|
|
48
|
+
* Upload a file. Filename should always be unique. Reusing filenames may result in the wrong media being sent. A list of supported media types can be found at [Bandwidth Support](https://www.bandwidth.com/support/en/articles/12823220-what-mms-file-types-are-supported).
|
|
49
49
|
* @summary Upload Media
|
|
50
50
|
* @param {string} accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
|
|
51
51
|
* @param {string} mediaId The ID of the media file.
|
|
52
52
|
* @param {File} body
|
|
53
53
|
* @param {string} [contentType] The media type of the entity-body.
|
|
54
|
-
* @param {string} [cacheControl]
|
|
54
|
+
* @param {string} [cacheControl] Pass-through header stored with the media and returned when the media is retrieved by the user. Does not affect internal server caching behavior.
|
|
55
55
|
* @param {*} [options] Override http request option.
|
|
56
56
|
* @throws {RequiredError}
|
|
57
57
|
*/
|
|
@@ -89,13 +89,13 @@ export declare const MediaApiFp: (configuration?: Configuration) => {
|
|
|
89
89
|
*/
|
|
90
90
|
listMedia(accountId: string, continuationToken?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Media>>>;
|
|
91
91
|
/**
|
|
92
|
-
* Upload a file.
|
|
92
|
+
* Upload a file. Filename should always be unique. Reusing filenames may result in the wrong media being sent. A list of supported media types can be found at [Bandwidth Support](https://www.bandwidth.com/support/en/articles/12823220-what-mms-file-types-are-supported).
|
|
93
93
|
* @summary Upload Media
|
|
94
94
|
* @param {string} accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
|
|
95
95
|
* @param {string} mediaId The ID of the media file.
|
|
96
96
|
* @param {File} body
|
|
97
97
|
* @param {string} [contentType] The media type of the entity-body.
|
|
98
|
-
* @param {string} [cacheControl]
|
|
98
|
+
* @param {string} [cacheControl] Pass-through header stored with the media and returned when the media is retrieved by the user. Does not affect internal server caching behavior.
|
|
99
99
|
* @param {*} [options] Override http request option.
|
|
100
100
|
* @throws {RequiredError}
|
|
101
101
|
*/
|
|
@@ -133,13 +133,13 @@ export declare const MediaApiFactory: (configuration?: Configuration, basePath?:
|
|
|
133
133
|
*/
|
|
134
134
|
listMedia(accountId: string, continuationToken?: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Media>>;
|
|
135
135
|
/**
|
|
136
|
-
* Upload a file.
|
|
136
|
+
* Upload a file. Filename should always be unique. Reusing filenames may result in the wrong media being sent. A list of supported media types can be found at [Bandwidth Support](https://www.bandwidth.com/support/en/articles/12823220-what-mms-file-types-are-supported).
|
|
137
137
|
* @summary Upload Media
|
|
138
138
|
* @param {string} accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
|
|
139
139
|
* @param {string} mediaId The ID of the media file.
|
|
140
140
|
* @param {File} body
|
|
141
141
|
* @param {string} [contentType] The media type of the entity-body.
|
|
142
|
-
* @param {string} [cacheControl]
|
|
142
|
+
* @param {string} [cacheControl] Pass-through header stored with the media and returned when the media is retrieved by the user. Does not affect internal server caching behavior.
|
|
143
143
|
* @param {*} [options] Override http request option.
|
|
144
144
|
* @throws {RequiredError}
|
|
145
145
|
*/
|
|
@@ -177,13 +177,13 @@ export declare class MediaApi extends BaseAPI {
|
|
|
177
177
|
*/
|
|
178
178
|
listMedia(accountId: string, continuationToken?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Media[], any, {}, any>>;
|
|
179
179
|
/**
|
|
180
|
-
* Upload a file.
|
|
180
|
+
* Upload a file. Filename should always be unique. Reusing filenames may result in the wrong media being sent. A list of supported media types can be found at [Bandwidth Support](https://www.bandwidth.com/support/en/articles/12823220-what-mms-file-types-are-supported).
|
|
181
181
|
* @summary Upload Media
|
|
182
182
|
* @param {string} accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
|
|
183
183
|
* @param {string} mediaId The ID of the media file.
|
|
184
184
|
* @param {File} body
|
|
185
185
|
* @param {string} [contentType] The media type of the entity-body.
|
|
186
|
-
* @param {string} [cacheControl]
|
|
186
|
+
* @param {string} [cacheControl] Pass-through header stored with the media and returned when the media is retrieved by the user. Does not affect internal server caching behavior.
|
|
187
187
|
* @param {*} [options] Override http request option.
|
|
188
188
|
* @throws {RequiredError}
|
|
189
189
|
*/
|
package/dist/api/media-api.js
CHANGED
|
@@ -130,9 +130,6 @@ var MediaApiAxiosParamCreator = function (configuration) {
|
|
|
130
130
|
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
131
131
|
localVarHeaderParameter = {};
|
|
132
132
|
localVarQueryParameter = {};
|
|
133
|
-
// authentication Basic required
|
|
134
|
-
// http basic authentication required
|
|
135
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
136
133
|
// authentication OAuth2 required
|
|
137
134
|
// oauth required
|
|
138
135
|
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2", [], configuration)];
|
|
@@ -185,9 +182,6 @@ var MediaApiAxiosParamCreator = function (configuration) {
|
|
|
185
182
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
186
183
|
localVarHeaderParameter = {};
|
|
187
184
|
localVarQueryParameter = {};
|
|
188
|
-
// authentication Basic required
|
|
189
|
-
// http basic authentication required
|
|
190
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
191
185
|
// authentication OAuth2 required
|
|
192
186
|
// oauth required
|
|
193
187
|
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2", [], configuration)];
|
|
@@ -237,9 +231,6 @@ var MediaApiAxiosParamCreator = function (configuration) {
|
|
|
237
231
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
238
232
|
localVarHeaderParameter = {};
|
|
239
233
|
localVarQueryParameter = {};
|
|
240
|
-
// authentication Basic required
|
|
241
|
-
// http basic authentication required
|
|
242
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
243
234
|
// authentication OAuth2 required
|
|
244
235
|
// oauth required
|
|
245
236
|
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2", [], configuration)];
|
|
@@ -263,13 +254,13 @@ var MediaApiAxiosParamCreator = function (configuration) {
|
|
|
263
254
|
});
|
|
264
255
|
},
|
|
265
256
|
/**
|
|
266
|
-
* Upload a file.
|
|
257
|
+
* Upload a file. Filename should always be unique. Reusing filenames may result in the wrong media being sent. A list of supported media types can be found at [Bandwidth Support](https://www.bandwidth.com/support/en/articles/12823220-what-mms-file-types-are-supported).
|
|
267
258
|
* @summary Upload Media
|
|
268
259
|
* @param {string} accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
|
|
269
260
|
* @param {string} mediaId The ID of the media file.
|
|
270
261
|
* @param {File} body
|
|
271
262
|
* @param {string} [contentType] The media type of the entity-body.
|
|
272
|
-
* @param {string} [cacheControl]
|
|
263
|
+
* @param {string} [cacheControl] Pass-through header stored with the media and returned when the media is retrieved by the user. Does not affect internal server caching behavior.
|
|
273
264
|
* @param {*} [options] Override http request option.
|
|
274
265
|
* @throws {RequiredError}
|
|
275
266
|
*/
|
|
@@ -300,9 +291,6 @@ var MediaApiAxiosParamCreator = function (configuration) {
|
|
|
300
291
|
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
301
292
|
localVarHeaderParameter = {};
|
|
302
293
|
localVarQueryParameter = {};
|
|
303
|
-
// authentication Basic required
|
|
304
|
-
// http basic authentication required
|
|
305
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
306
294
|
// authentication OAuth2 required
|
|
307
295
|
// oauth required
|
|
308
296
|
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2", [], configuration)];
|
|
@@ -412,13 +400,13 @@ var MediaApiFp = function (configuration) {
|
|
|
412
400
|
});
|
|
413
401
|
},
|
|
414
402
|
/**
|
|
415
|
-
* Upload a file.
|
|
403
|
+
* Upload a file. Filename should always be unique. Reusing filenames may result in the wrong media being sent. A list of supported media types can be found at [Bandwidth Support](https://www.bandwidth.com/support/en/articles/12823220-what-mms-file-types-are-supported).
|
|
416
404
|
* @summary Upload Media
|
|
417
405
|
* @param {string} accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
|
|
418
406
|
* @param {string} mediaId The ID of the media file.
|
|
419
407
|
* @param {File} body
|
|
420
408
|
* @param {string} [contentType] The media type of the entity-body.
|
|
421
|
-
* @param {string} [cacheControl]
|
|
409
|
+
* @param {string} [cacheControl] Pass-through header stored with the media and returned when the media is retrieved by the user. Does not affect internal server caching behavior.
|
|
422
410
|
* @param {*} [options] Override http request option.
|
|
423
411
|
* @throws {RequiredError}
|
|
424
412
|
*/
|
|
@@ -481,13 +469,13 @@ var MediaApiFactory = function (configuration, basePath, axios) {
|
|
|
481
469
|
return localVarFp.listMedia(accountId, continuationToken, options).then(function (request) { return request(axios, basePath); });
|
|
482
470
|
},
|
|
483
471
|
/**
|
|
484
|
-
* Upload a file.
|
|
472
|
+
* Upload a file. Filename should always be unique. Reusing filenames may result in the wrong media being sent. A list of supported media types can be found at [Bandwidth Support](https://www.bandwidth.com/support/en/articles/12823220-what-mms-file-types-are-supported).
|
|
485
473
|
* @summary Upload Media
|
|
486
474
|
* @param {string} accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
|
|
487
475
|
* @param {string} mediaId The ID of the media file.
|
|
488
476
|
* @param {File} body
|
|
489
477
|
* @param {string} [contentType] The media type of the entity-body.
|
|
490
|
-
* @param {string} [cacheControl]
|
|
478
|
+
* @param {string} [cacheControl] Pass-through header stored with the media and returned when the media is retrieved by the user. Does not affect internal server caching behavior.
|
|
491
479
|
* @param {*} [options] Override http request option.
|
|
492
480
|
* @throws {RequiredError}
|
|
493
481
|
*/
|
|
@@ -542,13 +530,13 @@ var MediaApi = /** @class */ (function (_super) {
|
|
|
542
530
|
return (0, exports.MediaApiFp)(this.configuration).listMedia(accountId, continuationToken, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
543
531
|
};
|
|
544
532
|
/**
|
|
545
|
-
* Upload a file.
|
|
533
|
+
* Upload a file. Filename should always be unique. Reusing filenames may result in the wrong media being sent. A list of supported media types can be found at [Bandwidth Support](https://www.bandwidth.com/support/en/articles/12823220-what-mms-file-types-are-supported).
|
|
546
534
|
* @summary Upload Media
|
|
547
535
|
* @param {string} accountId This is your 7-digit Bandwidth Account ID, as shown in the Bandwidth App. The older ID format (`u-be8dvafwrs63rwpm7pfil4b`) is deprecated. **When migrating to OAuth authentication, you must use the 7-digit Account ID.**
|
|
548
536
|
* @param {string} mediaId The ID of the media file.
|
|
549
537
|
* @param {File} body
|
|
550
538
|
* @param {string} [contentType] The media type of the entity-body.
|
|
551
|
-
* @param {string} [cacheControl]
|
|
539
|
+
* @param {string} [cacheControl] Pass-through header stored with the media and returned when the media is retrieved by the user. Does not affect internal server caching behavior.
|
|
552
540
|
* @param {*} [options] Override http request option.
|
|
553
541
|
* @throws {RequiredError}
|
|
554
542
|
*/
|
package/dist/api/messages-api.js
CHANGED
|
@@ -129,9 +129,6 @@ var MessagesApiAxiosParamCreator = function (configuration) {
|
|
|
129
129
|
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
130
130
|
localVarHeaderParameter = {};
|
|
131
131
|
localVarQueryParameter = {};
|
|
132
|
-
// authentication Basic required
|
|
133
|
-
// http basic authentication required
|
|
134
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
135
132
|
// authentication OAuth2 required
|
|
136
133
|
// oauth required
|
|
137
134
|
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2", [], configuration)];
|
|
@@ -209,9 +206,6 @@ var MessagesApiAxiosParamCreator = function (configuration) {
|
|
|
209
206
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
210
207
|
localVarHeaderParameter = {};
|
|
211
208
|
localVarQueryParameter = {};
|
|
212
|
-
// authentication Basic required
|
|
213
|
-
// http basic authentication required
|
|
214
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
215
209
|
// authentication OAuth2 required
|
|
216
210
|
// oauth required
|
|
217
211
|
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2", [], configuration)];
|
package/dist/api/mfaapi.js
CHANGED
|
@@ -129,9 +129,6 @@ var MFAApiAxiosParamCreator = function (configuration) {
|
|
|
129
129
|
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
130
130
|
localVarHeaderParameter = {};
|
|
131
131
|
localVarQueryParameter = {};
|
|
132
|
-
// authentication Basic required
|
|
133
|
-
// http basic authentication required
|
|
134
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
135
132
|
// authentication OAuth2 required
|
|
136
133
|
// oauth required
|
|
137
134
|
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2", [], configuration)];
|
|
@@ -185,9 +182,6 @@ var MFAApiAxiosParamCreator = function (configuration) {
|
|
|
185
182
|
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
186
183
|
localVarHeaderParameter = {};
|
|
187
184
|
localVarQueryParameter = {};
|
|
188
|
-
// authentication Basic required
|
|
189
|
-
// http basic authentication required
|
|
190
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
191
185
|
// authentication OAuth2 required
|
|
192
186
|
// oauth required
|
|
193
187
|
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2", [], configuration)];
|
|
@@ -241,9 +235,6 @@ var MFAApiAxiosParamCreator = function (configuration) {
|
|
|
241
235
|
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
242
236
|
localVarHeaderParameter = {};
|
|
243
237
|
localVarQueryParameter = {};
|
|
244
|
-
// authentication Basic required
|
|
245
|
-
// http basic authentication required
|
|
246
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
247
238
|
// authentication OAuth2 required
|
|
248
239
|
// oauth required
|
|
249
240
|
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2", [], configuration)];
|
|
@@ -129,9 +129,6 @@ var MultiChannelApiAxiosParamCreator = function (configuration) {
|
|
|
129
129
|
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
130
130
|
localVarHeaderParameter = {};
|
|
131
131
|
localVarQueryParameter = {};
|
|
132
|
-
// authentication Basic required
|
|
133
|
-
// http basic authentication required
|
|
134
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
135
132
|
// authentication OAuth2 required
|
|
136
133
|
// oauth required
|
|
137
134
|
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2", [], configuration)];
|
|
@@ -129,9 +129,6 @@ var PhoneNumberLookupApiAxiosParamCreator = function (configuration) {
|
|
|
129
129
|
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
130
130
|
localVarHeaderParameter = {};
|
|
131
131
|
localVarQueryParameter = {};
|
|
132
|
-
// authentication Basic required
|
|
133
|
-
// http basic authentication required
|
|
134
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
135
132
|
// authentication OAuth2 required
|
|
136
133
|
// oauth required
|
|
137
134
|
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2", [], configuration)];
|
|
@@ -185,9 +182,6 @@ var PhoneNumberLookupApiAxiosParamCreator = function (configuration) {
|
|
|
185
182
|
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
186
183
|
localVarHeaderParameter = {};
|
|
187
184
|
localVarQueryParameter = {};
|
|
188
|
-
// authentication Basic required
|
|
189
|
-
// http basic authentication required
|
|
190
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
191
185
|
// authentication OAuth2 required
|
|
192
186
|
// oauth required
|
|
193
187
|
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2", [], configuration)];
|
|
@@ -242,9 +236,6 @@ var PhoneNumberLookupApiAxiosParamCreator = function (configuration) {
|
|
|
242
236
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
243
237
|
localVarHeaderParameter = {};
|
|
244
238
|
localVarQueryParameter = {};
|
|
245
|
-
// authentication Basic required
|
|
246
|
-
// http basic authentication required
|
|
247
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
248
239
|
// authentication OAuth2 required
|
|
249
240
|
// oauth required
|
|
250
241
|
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2", [], configuration)];
|
|
@@ -134,9 +134,6 @@ var RecordingsApiAxiosParamCreator = function (configuration) {
|
|
|
134
134
|
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
135
135
|
localVarHeaderParameter = {};
|
|
136
136
|
localVarQueryParameter = {};
|
|
137
|
-
// authentication Basic required
|
|
138
|
-
// http basic authentication required
|
|
139
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
140
137
|
// authentication OAuth2 required
|
|
141
138
|
// oauth required
|
|
142
139
|
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2", [], configuration)];
|
|
@@ -193,9 +190,6 @@ var RecordingsApiAxiosParamCreator = function (configuration) {
|
|
|
193
190
|
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
194
191
|
localVarHeaderParameter = {};
|
|
195
192
|
localVarQueryParameter = {};
|
|
196
|
-
// authentication Basic required
|
|
197
|
-
// http basic authentication required
|
|
198
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
199
193
|
// authentication OAuth2 required
|
|
200
194
|
// oauth required
|
|
201
195
|
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2", [], configuration)];
|
|
@@ -252,9 +246,6 @@ var RecordingsApiAxiosParamCreator = function (configuration) {
|
|
|
252
246
|
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
253
247
|
localVarHeaderParameter = {};
|
|
254
248
|
localVarQueryParameter = {};
|
|
255
|
-
// authentication Basic required
|
|
256
|
-
// http basic authentication required
|
|
257
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
258
249
|
// authentication OAuth2 required
|
|
259
250
|
// oauth required
|
|
260
251
|
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2", [], configuration)];
|
|
@@ -311,9 +302,6 @@ var RecordingsApiAxiosParamCreator = function (configuration) {
|
|
|
311
302
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
312
303
|
localVarHeaderParameter = {};
|
|
313
304
|
localVarQueryParameter = {};
|
|
314
|
-
// authentication Basic required
|
|
315
|
-
// http basic authentication required
|
|
316
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
317
305
|
// authentication OAuth2 required
|
|
318
306
|
// oauth required
|
|
319
307
|
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2", [], configuration)];
|
|
@@ -370,9 +358,6 @@ var RecordingsApiAxiosParamCreator = function (configuration) {
|
|
|
370
358
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
371
359
|
localVarHeaderParameter = {};
|
|
372
360
|
localVarQueryParameter = {};
|
|
373
|
-
// authentication Basic required
|
|
374
|
-
// http basic authentication required
|
|
375
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
376
361
|
// authentication OAuth2 required
|
|
377
362
|
// oauth required
|
|
378
363
|
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2", [], configuration)];
|
|
@@ -429,9 +414,6 @@ var RecordingsApiAxiosParamCreator = function (configuration) {
|
|
|
429
414
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
430
415
|
localVarHeaderParameter = {};
|
|
431
416
|
localVarQueryParameter = {};
|
|
432
|
-
// authentication Basic required
|
|
433
|
-
// http basic authentication required
|
|
434
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
435
417
|
// authentication OAuth2 required
|
|
436
418
|
// oauth required
|
|
437
419
|
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2", [], configuration)];
|
|
@@ -484,9 +466,6 @@ var RecordingsApiAxiosParamCreator = function (configuration) {
|
|
|
484
466
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
485
467
|
localVarHeaderParameter = {};
|
|
486
468
|
localVarQueryParameter = {};
|
|
487
|
-
// authentication Basic required
|
|
488
|
-
// http basic authentication required
|
|
489
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
490
469
|
// authentication OAuth2 required
|
|
491
470
|
// oauth required
|
|
492
471
|
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2", [], configuration)];
|
|
@@ -551,9 +530,6 @@ var RecordingsApiAxiosParamCreator = function (configuration) {
|
|
|
551
530
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
552
531
|
localVarHeaderParameter = {};
|
|
553
532
|
localVarQueryParameter = {};
|
|
554
|
-
// authentication Basic required
|
|
555
|
-
// http basic authentication required
|
|
556
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
557
533
|
// authentication OAuth2 required
|
|
558
534
|
// oauth required
|
|
559
535
|
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2", [], configuration)];
|
|
@@ -613,9 +589,6 @@ var RecordingsApiAxiosParamCreator = function (configuration) {
|
|
|
613
589
|
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
614
590
|
localVarHeaderParameter = {};
|
|
615
591
|
localVarQueryParameter = {};
|
|
616
|
-
// authentication Basic required
|
|
617
|
-
// http basic authentication required
|
|
618
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
619
592
|
// authentication OAuth2 required
|
|
620
593
|
// oauth required
|
|
621
594
|
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2", [], configuration)];
|
|
@@ -673,9 +646,6 @@ var RecordingsApiAxiosParamCreator = function (configuration) {
|
|
|
673
646
|
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
674
647
|
localVarHeaderParameter = {};
|
|
675
648
|
localVarQueryParameter = {};
|
|
676
|
-
// authentication Basic required
|
|
677
|
-
// http basic authentication required
|
|
678
|
-
(0, common_1.setBasicAuthToObject)(localVarRequestOptions, configuration);
|
|
679
649
|
// authentication OAuth2 required
|
|
680
650
|
// oauth required
|
|
681
651
|
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "OAuth2", [], configuration)];
|