bandwidth-sdk 8.1.4 → 8.1.5
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/.bandwidth/component.yaml +1 -0
- package/.github/workflows/deploy.yml +15 -11
- package/.github/workflows/test-pr.yml +3 -3
- package/.github/workflows/test-smoke.yml +13 -13
- package/.openapi-generator/VERSION +1 -1
- package/api/calls-api.ts +14 -17
- package/api/conferences-api.ts +31 -34
- package/api/endpoints-api.ts +14 -16
- package/api/media-api.ts +28 -29
- package/api/messages-api.ts +13 -14
- package/api/mfaapi.ts +7 -10
- package/api/multi-channel-api.ts +7 -8
- package/api/phone-number-lookup-api.ts +8 -10
- package/api/recordings-api.ts +37 -39
- package/api/statistics-api.ts +3 -3
- package/api/toll-free-verification-api.ts +23 -27
- package/api/transcriptions-api.ts +12 -12
- package/bandwidth.yml +127 -49
- package/common.ts +18 -4
- package/configuration.ts +1 -1
- package/coverage/clover.xml +948 -890
- package/coverage/coverage-final.json +13 -13
- package/coverage/lcov-report/index.html +19 -19
- package/coverage/lcov-report/node-sdk/api/calls-api.ts.html +25 -34
- package/coverage/lcov-report/node-sdk/api/conferences-api.ts.html +46 -55
- package/coverage/lcov-report/node-sdk/api/endpoints-api.ts.html +25 -31
- package/coverage/lcov-report/node-sdk/api/index.html +69 -69
- package/coverage/lcov-report/node-sdk/api/media-api.ts.html +38 -41
- package/coverage/lcov-report/node-sdk/api/messages-api.ts.html +21 -24
- package/coverage/lcov-report/node-sdk/api/mfaapi.ts.html +16 -25
- package/coverage/lcov-report/node-sdk/api/multi-channel-api.ts.html +14 -17
- package/coverage/lcov-report/node-sdk/api/phone-number-lookup-api.ts.html +17 -23
- package/coverage/lcov-report/node-sdk/api/recordings-api.ts.html +53 -59
- package/coverage/lcov-report/node-sdk/api/statistics-api.ts.html +9 -9
- package/coverage/lcov-report/node-sdk/api/toll-free-verification-api.ts.html +38 -50
- package/coverage/lcov-report/node-sdk/api/transcriptions-api.ts.html +20 -20
- 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 +55 -13
- package/coverage/lcov-report/node-sdk/configuration.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/index.html +15 -15
- 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/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 +2 -2
- package/coverage/lcov-report/node-sdk/models/call-state-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/call-transcription-detected-language-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/call-transcription-track-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/callback-method-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/card-width-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/completed-lookup-status-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/conference-state-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/deactivation-event-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/device-status-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/endpoint-direction-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/endpoint-event-type-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/endpoint-status-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/endpoint-type-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/file-format-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/in-progress-lookup-status-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/inbound-callback-type-enum.ts.html +2 -2
- 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 +2 -2
- package/coverage/lcov-report/node-sdk/models/line-type-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/list-message-direction-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/machine-detection-mode-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/message-direction-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/message-status-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/message-type-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/multi-channel-message-channel-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/priority-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/product-type-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/rbm-action-type-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/rbm-media-height-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/rbm-open-url-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/rbm-web-view-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/recording-state-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/redirect-method-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/standalone-card-orientation-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/status-callback-type-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/tfv-callback-status-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/tfv-status-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/thumbnail-alignment-enum.ts.html +2 -2
- package/coverage/lcov-report/node-sdk/models/webhook-subscription-type-enum.ts.html +2 -2
- package/coverage/lcov.info +2413 -2353
- package/custom_templates/common.mustache +18 -4
- package/custom_templates/package.mustache +1 -1
- package/dist/api/calls-api.d.ts +5 -5
- package/dist/api/calls-api.js +13 -8
- package/dist/api/conferences-api.d.ts +9 -9
- package/dist/api/conferences-api.js +30 -21
- package/dist/api/endpoints-api.d.ts +5 -5
- package/dist/api/endpoints-api.js +13 -8
- package/dist/api/media-api.d.ts +20 -20
- package/dist/api/media-api.js +27 -23
- package/dist/api/messages-api.d.ts +10 -10
- package/dist/api/messages-api.js +12 -10
- package/dist/api/mfaapi.d.ts +3 -3
- package/dist/api/mfaapi.js +6 -3
- package/dist/api/multi-channel-api.d.ts +5 -5
- package/dist/api/multi-channel-api.js +6 -5
- package/dist/api/phone-number-lookup-api.d.ts +3 -3
- package/dist/api/phone-number-lookup-api.js +7 -4
- package/dist/api/recordings-api.d.ts +10 -10
- package/dist/api/recordings-api.js +36 -26
- package/dist/api/statistics-api.d.ts +1 -1
- package/dist/api/statistics-api.js +2 -1
- package/dist/api/toll-free-verification-api.d.ts +9 -9
- package/dist/api/toll-free-verification-api.js +22 -13
- package/dist/api/transcriptions-api.d.ts +3 -3
- package/dist/api/transcriptions-api.js +11 -8
- package/dist/common.d.ts +6 -0
- package/dist/common.js +18 -3
- package/dist/configuration.js +1 -1
- package/dist/models/answer-callback.d.ts +4 -0
- package/dist/models/business-entity-type-enum.js +1 -1
- package/dist/models/business-registration-type-enum.js +1 -1
- package/dist/models/call-direction-enum.js +1 -1
- package/dist/models/call-state-enum.js +1 -1
- package/dist/models/call-transcription-detected-language-enum.js +1 -1
- package/dist/models/call-transcription-track-enum.js +1 -1
- package/dist/models/callback-method-enum.js +1 -1
- package/dist/models/card-width-enum.js +1 -1
- package/dist/models/completed-lookup-status-enum.js +1 -1
- package/dist/models/conference-state-enum.js +1 -1
- package/dist/models/deactivation-event-enum.js +1 -1
- package/dist/models/device-status-enum.js +1 -1
- package/dist/models/disconnect-callback.d.ts +8 -0
- package/dist/models/endpoint-direction-enum.js +1 -1
- package/dist/models/endpoint-event-type-enum.js +1 -1
- package/dist/models/endpoint-status-enum.js +1 -1
- package/dist/models/endpoint-type-enum.js +1 -1
- package/dist/models/file-format-enum.js +1 -1
- package/dist/models/in-progress-lookup-status-enum.js +1 -1
- package/dist/models/inbound-callback-type-enum.js +1 -1
- package/dist/models/initiate-callback.d.ts +10 -0
- package/dist/models/latest-message-delivery-status-enum.js +1 -1
- package/dist/models/line-type-enum.js +1 -1
- package/dist/models/list-message-direction-enum.js +1 -1
- package/dist/models/machine-detection-mode-enum.js +1 -1
- package/dist/models/message-direction-enum.js +1 -1
- package/dist/models/message-status-enum.js +1 -1
- package/dist/models/message-type-enum.js +1 -1
- package/dist/models/multi-channel-message-channel-enum.js +1 -1
- package/dist/models/priority-enum.js +1 -1
- package/dist/models/product-type-enum.js +1 -1
- package/dist/models/rbm-action-type-enum.js +1 -1
- package/dist/models/rbm-media-height-enum.js +1 -1
- package/dist/models/rbm-open-url-enum.js +1 -1
- package/dist/models/rbm-web-view-enum.js +1 -1
- package/dist/models/recording-state-enum.js +1 -1
- package/dist/models/redirect-method-enum.js +1 -1
- package/dist/models/standalone-card-orientation-enum.js +1 -1
- package/dist/models/status-callback-type-enum.js +1 -1
- package/dist/models/tfv-callback-status-enum.js +1 -1
- package/dist/models/tfv-status-enum.js +1 -1
- package/dist/models/thumbnail-alignment-enum.js +1 -1
- package/dist/models/webhook-subscription-type-enum.js +1 -1
- package/docs/AnswerCallback.md +2 -0
- package/docs/DisconnectCallback.md +4 -0
- package/docs/InitiateCallback.md +4 -0
- package/docs/MediaApi.md +8 -8
- package/docs/MessagesApi.md +4 -4
- package/docs/MultiChannelApi.md +2 -2
- package/models/answer-callback.ts +4 -0
- package/models/business-entity-type-enum.ts +1 -1
- package/models/business-registration-type-enum.ts +1 -1
- package/models/call-direction-enum.ts +1 -1
- package/models/call-state-enum.ts +1 -1
- package/models/call-transcription-detected-language-enum.ts +1 -1
- package/models/call-transcription-track-enum.ts +1 -1
- package/models/callback-method-enum.ts +1 -1
- package/models/card-width-enum.ts +1 -1
- package/models/completed-lookup-status-enum.ts +1 -1
- package/models/conference-state-enum.ts +1 -1
- package/models/deactivation-event-enum.ts +1 -1
- package/models/device-status-enum.ts +1 -1
- package/models/disconnect-callback.ts +8 -0
- package/models/endpoint-direction-enum.ts +1 -1
- package/models/endpoint-event-type-enum.ts +1 -1
- package/models/endpoint-status-enum.ts +1 -1
- package/models/endpoint-type-enum.ts +1 -1
- package/models/file-format-enum.ts +1 -1
- package/models/in-progress-lookup-status-enum.ts +1 -1
- package/models/inbound-callback-type-enum.ts +1 -1
- package/models/initiate-callback.ts +8 -0
- package/models/latest-message-delivery-status-enum.ts +1 -1
- package/models/line-type-enum.ts +1 -1
- package/models/list-message-direction-enum.ts +1 -1
- package/models/machine-detection-mode-enum.ts +1 -1
- package/models/message-direction-enum.ts +1 -1
- package/models/message-status-enum.ts +1 -1
- package/models/message-type-enum.ts +1 -1
- package/models/multi-channel-message-channel-enum.ts +1 -1
- package/models/priority-enum.ts +1 -1
- package/models/product-type-enum.ts +1 -1
- package/models/rbm-action-type-enum.ts +1 -1
- package/models/rbm-media-height-enum.ts +1 -1
- package/models/rbm-open-url-enum.ts +1 -1
- package/models/rbm-web-view-enum.ts +1 -1
- package/models/recording-state-enum.ts +1 -1
- package/models/redirect-method-enum.ts +1 -1
- package/models/standalone-card-orientation-enum.ts +1 -1
- package/models/status-callback-type-enum.ts +1 -1
- package/models/tfv-callback-status-enum.ts +1 -1
- package/models/tfv-status-enum.ts +1 -1
- package/models/thumbnail-alignment-enum.ts +1 -1
- package/models/webhook-subscription-type-enum.ts +1 -1
- package/openapitools.json +1 -1
- package/package.json +2 -2
- package/tests/unit/models/answer-callback.test.ts +2 -0
- package/tests/unit/models/disconnect-callback.test.ts +4 -0
- package/tests/unit/models/initiate-callback.test.ts +4 -0
|
@@ -82,7 +82,7 @@ export const setAWS4SignatureInterceptor = async function (globalAxios: AxiosIns
|
|
|
82
82
|
function setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: any, key: string = ""): void {
|
|
83
83
|
if (parameter == null) return;
|
|
84
84
|
if (typeof parameter === "object") {
|
|
85
|
-
if (Array.isArray(parameter)) {
|
|
85
|
+
if (Array.isArray(parameter) || parameter instanceof Set) {
|
|
86
86
|
(parameter as any[]).forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));
|
|
87
87
|
}
|
|
88
88
|
else {
|
|
@@ -107,13 +107,27 @@ export const setSearchParams = function (url: URL, ...objects: any[]) {
|
|
|
107
107
|
url.search = searchParams.toString();
|
|
108
108
|
}
|
|
109
109
|
|
|
110
|
+
/**
|
|
111
|
+
* JSON serialization helper function which replaces instances of unserializable types with serializable ones.
|
|
112
|
+
* This function will run for every key-value pair encountered by JSON.stringify while traversing an object.
|
|
113
|
+
* Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.
|
|
114
|
+
*/
|
|
115
|
+
// @ts-ignore
|
|
116
|
+
export const replaceWithSerializableTypeIfNeeded = function(key: string, value: any) {
|
|
117
|
+
if (value instanceof Set) {
|
|
118
|
+
return Array.from(value);
|
|
119
|
+
} else {
|
|
120
|
+
return value;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
110
124
|
export const serializeDataIfNeeded = function (value: any, requestOptions: any, configuration?: Configuration) {
|
|
111
125
|
const nonString = typeof value !== 'string';
|
|
112
126
|
const needsSerialization = nonString && configuration && configuration.isJsonMime
|
|
113
127
|
? configuration.isJsonMime(requestOptions.headers['Content-Type'])
|
|
114
128
|
: nonString;
|
|
115
129
|
return needsSerialization
|
|
116
|
-
? JSON.stringify(value !== undefined ? value : {},
|
|
130
|
+
? JSON.stringify(value !== undefined ? value : {}, replaceWithSerializableTypeIfNeeded)
|
|
117
131
|
: (value || "");
|
|
118
132
|
}
|
|
119
133
|
|
|
@@ -122,8 +136,8 @@ export const toPathString = function (url: URL) {
|
|
|
122
136
|
}
|
|
123
137
|
|
|
124
138
|
export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {
|
|
125
|
-
return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
139
|
+
return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH): Promise<R> => {
|
|
126
140
|
const axiosRequestArgs = {...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url};
|
|
127
|
-
return axios.request<T, R>(axiosRequestArgs)
|
|
141
|
+
return axios.request<T, R>(axiosRequestArgs) as Promise<R>;
|
|
128
142
|
};
|
|
129
143
|
}
|
package/dist/api/calls-api.d.ts
CHANGED
|
@@ -202,7 +202,7 @@ export declare class CallsApi extends BaseAPI {
|
|
|
202
202
|
* @param {*} [options] Override http request option.
|
|
203
203
|
* @throws {RequiredError}
|
|
204
204
|
*/
|
|
205
|
-
createCall(accountId: string, createCall: CreateCall, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateCallResponse, any, {}>>;
|
|
205
|
+
createCall(accountId: string, createCall: CreateCall, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateCallResponse, any, {}, any>>;
|
|
206
206
|
/**
|
|
207
207
|
* Retrieve the current state of a specific call. This information is near-realtime, so it may take a few minutes for your call to be accessible using this endpoint. **Note**: Call information is kept for 7 days after the calls are hung up. If you attempt to retrieve information for a call that is older than 7 days, you will get an HTTP 404 response.
|
|
208
208
|
* @summary Get Call State Information
|
|
@@ -211,7 +211,7 @@ export declare class CallsApi extends BaseAPI {
|
|
|
211
211
|
* @param {*} [options] Override http request option.
|
|
212
212
|
* @throws {RequiredError}
|
|
213
213
|
*/
|
|
214
|
-
getCallState(accountId: string, callId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CallState, any, {}>>;
|
|
214
|
+
getCallState(accountId: string, callId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CallState, any, {}, any>>;
|
|
215
215
|
/**
|
|
216
216
|
* Returns a max of 10000 calls, sorted by `createdTime` from oldest to newest. **NOTE:** If the number of calls in the account is bigger than `pageSize`, a `Link` header (with format `<{url}>; rel=\"next\"`) will be returned in the response. The url can be used to retrieve the next page of call records. Also, call information is kept for 7 days after the calls are hung up. If you attempt to retrieve information for a call that is older than 7 days, you will get an empty array [] in response.
|
|
217
217
|
* @summary Get Calls
|
|
@@ -226,7 +226,7 @@ export declare class CallsApi extends BaseAPI {
|
|
|
226
226
|
* @param {*} [options] Override http request option.
|
|
227
227
|
* @throws {RequiredError}
|
|
228
228
|
*/
|
|
229
|
-
listCalls(accountId: string, to?: string, from?: string, minStartTime?: string, maxStartTime?: string, disconnectCause?: string, pageSize?: number, pageToken?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CallState[], any, {}>>;
|
|
229
|
+
listCalls(accountId: string, to?: string, from?: string, minStartTime?: string, maxStartTime?: string, disconnectCause?: string, pageSize?: number, pageToken?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CallState[], any, {}, any>>;
|
|
230
230
|
/**
|
|
231
231
|
* Interrupts and redirects a call to a different URL that should return a BXML document.
|
|
232
232
|
* @summary Update Call
|
|
@@ -236,7 +236,7 @@ export declare class CallsApi extends BaseAPI {
|
|
|
236
236
|
* @param {*} [options] Override http request option.
|
|
237
237
|
* @throws {RequiredError}
|
|
238
238
|
*/
|
|
239
|
-
updateCall(accountId: string, callId: string, updateCall: UpdateCall, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
239
|
+
updateCall(accountId: string, callId: string, updateCall: UpdateCall, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
|
|
240
240
|
/**
|
|
241
241
|
* Interrupts and replaces an active call\'s BXML document.
|
|
242
242
|
* @summary Update Call BXML
|
|
@@ -246,5 +246,5 @@ export declare class CallsApi extends BaseAPI {
|
|
|
246
246
|
* @param {*} [options] Override http request option.
|
|
247
247
|
* @throws {RequiredError}
|
|
248
248
|
*/
|
|
249
|
-
updateCallBxml(accountId: string, callId: string, body: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
249
|
+
updateCallBxml(accountId: string, callId: string, body: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
|
|
250
250
|
}
|
package/dist/api/calls-api.js
CHANGED
|
@@ -121,7 +121,7 @@ var CallsApiAxiosParamCreator = function (configuration) {
|
|
|
121
121
|
// verify required parameter 'createCall' is not null or undefined
|
|
122
122
|
(0, common_1.assertParamExists)('createCall', 'createCall', createCall);
|
|
123
123
|
localVarPath = "/accounts/{accountId}/calls"
|
|
124
|
-
.replace(
|
|
124
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)));
|
|
125
125
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
126
126
|
if (configuration) {
|
|
127
127
|
baseOptions = configuration.baseOptions;
|
|
@@ -140,6 +140,7 @@ var CallsApiAxiosParamCreator = function (configuration) {
|
|
|
140
140
|
// oauth required
|
|
141
141
|
_a.sent();
|
|
142
142
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
143
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
143
144
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
144
145
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
145
146
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -176,8 +177,8 @@ var CallsApiAxiosParamCreator = function (configuration) {
|
|
|
176
177
|
// verify required parameter 'callId' is not null or undefined
|
|
177
178
|
(0, common_1.assertParamExists)('getCallState', 'callId', callId);
|
|
178
179
|
localVarPath = "/accounts/{accountId}/calls/{callId}"
|
|
179
|
-
.replace(
|
|
180
|
-
.replace(
|
|
180
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)))
|
|
181
|
+
.replace('{callId}', encodeURIComponent(String(callId)));
|
|
181
182
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
182
183
|
if (configuration) {
|
|
183
184
|
baseOptions = configuration.baseOptions;
|
|
@@ -195,6 +196,7 @@ var CallsApiAxiosParamCreator = function (configuration) {
|
|
|
195
196
|
// authentication OAuth2 required
|
|
196
197
|
// oauth required
|
|
197
198
|
_a.sent();
|
|
199
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
198
200
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
199
201
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
200
202
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -234,7 +236,7 @@ var CallsApiAxiosParamCreator = function (configuration) {
|
|
|
234
236
|
// verify required parameter 'accountId' is not null or undefined
|
|
235
237
|
(0, common_1.assertParamExists)('listCalls', 'accountId', accountId);
|
|
236
238
|
localVarPath = "/accounts/{accountId}/calls"
|
|
237
|
-
.replace(
|
|
239
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)));
|
|
238
240
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
239
241
|
if (configuration) {
|
|
240
242
|
baseOptions = configuration.baseOptions;
|
|
@@ -273,6 +275,7 @@ var CallsApiAxiosParamCreator = function (configuration) {
|
|
|
273
275
|
if (pageToken !== undefined) {
|
|
274
276
|
localVarQueryParameter['pageToken'] = pageToken;
|
|
275
277
|
}
|
|
278
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
276
279
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
277
280
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
278
281
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -311,8 +314,8 @@ var CallsApiAxiosParamCreator = function (configuration) {
|
|
|
311
314
|
// verify required parameter 'updateCall' is not null or undefined
|
|
312
315
|
(0, common_1.assertParamExists)('updateCall', 'updateCall', updateCall);
|
|
313
316
|
localVarPath = "/accounts/{accountId}/calls/{callId}"
|
|
314
|
-
.replace(
|
|
315
|
-
.replace(
|
|
317
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)))
|
|
318
|
+
.replace('{callId}', encodeURIComponent(String(callId)));
|
|
316
319
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
317
320
|
if (configuration) {
|
|
318
321
|
baseOptions = configuration.baseOptions;
|
|
@@ -331,6 +334,7 @@ var CallsApiAxiosParamCreator = function (configuration) {
|
|
|
331
334
|
// oauth required
|
|
332
335
|
_a.sent();
|
|
333
336
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
337
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
334
338
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
335
339
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
336
340
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -370,8 +374,8 @@ var CallsApiAxiosParamCreator = function (configuration) {
|
|
|
370
374
|
// verify required parameter 'body' is not null or undefined
|
|
371
375
|
(0, common_1.assertParamExists)('updateCallBxml', 'body', body);
|
|
372
376
|
localVarPath = "/accounts/{accountId}/calls/{callId}/bxml"
|
|
373
|
-
.replace(
|
|
374
|
-
.replace(
|
|
377
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)))
|
|
378
|
+
.replace('{callId}', encodeURIComponent(String(callId)));
|
|
375
379
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
376
380
|
if (configuration) {
|
|
377
381
|
baseOptions = configuration.baseOptions;
|
|
@@ -390,6 +394,7 @@ var CallsApiAxiosParamCreator = function (configuration) {
|
|
|
390
394
|
// oauth required
|
|
391
395
|
_a.sent();
|
|
392
396
|
localVarHeaderParameter['Content-Type'] = 'application/xml';
|
|
397
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
393
398
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
394
399
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
395
400
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -321,7 +321,7 @@ export declare class ConferencesApi extends BaseAPI {
|
|
|
321
321
|
* @param {*} [options] Override http request option.
|
|
322
322
|
* @throws {RequiredError}
|
|
323
323
|
*/
|
|
324
|
-
downloadConferenceRecording(accountId: string, conferenceId: string, recordingId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<File, any, {}>>;
|
|
324
|
+
downloadConferenceRecording(accountId: string, conferenceId: string, recordingId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<File, any, {}, any>>;
|
|
325
325
|
/**
|
|
326
326
|
* Returns information about the specified conference.
|
|
327
327
|
* @summary Get Conference Information
|
|
@@ -330,7 +330,7 @@ export declare class ConferencesApi extends BaseAPI {
|
|
|
330
330
|
* @param {*} [options] Override http request option.
|
|
331
331
|
* @throws {RequiredError}
|
|
332
332
|
*/
|
|
333
|
-
getConference(accountId: string, conferenceId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Conference, any, {}>>;
|
|
333
|
+
getConference(accountId: string, conferenceId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Conference, any, {}, any>>;
|
|
334
334
|
/**
|
|
335
335
|
* Returns information about the specified conference member.
|
|
336
336
|
* @summary Get Conference Member
|
|
@@ -340,7 +340,7 @@ export declare class ConferencesApi extends BaseAPI {
|
|
|
340
340
|
* @param {*} [options] Override http request option.
|
|
341
341
|
* @throws {RequiredError}
|
|
342
342
|
*/
|
|
343
|
-
getConferenceMember(accountId: string, conferenceId: string, memberId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ConferenceMember, any, {}>>;
|
|
343
|
+
getConferenceMember(accountId: string, conferenceId: string, memberId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ConferenceMember, any, {}, any>>;
|
|
344
344
|
/**
|
|
345
345
|
* Returns metadata for the specified recording.
|
|
346
346
|
* @summary Get Conference Recording Information
|
|
@@ -350,7 +350,7 @@ export declare class ConferencesApi extends BaseAPI {
|
|
|
350
350
|
* @param {*} [options] Override http request option.
|
|
351
351
|
* @throws {RequiredError}
|
|
352
352
|
*/
|
|
353
|
-
getConferenceRecording(accountId: string, conferenceId: string, recordingId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ConferenceRecordingMetadata, any, {}>>;
|
|
353
|
+
getConferenceRecording(accountId: string, conferenceId: string, recordingId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ConferenceRecordingMetadata, any, {}, any>>;
|
|
354
354
|
/**
|
|
355
355
|
* Returns a (potentially empty) list of metadata for the recordings that took place during the specified conference.
|
|
356
356
|
* @summary Get Conference Recordings
|
|
@@ -359,7 +359,7 @@ export declare class ConferencesApi extends BaseAPI {
|
|
|
359
359
|
* @param {*} [options] Override http request option.
|
|
360
360
|
* @throws {RequiredError}
|
|
361
361
|
*/
|
|
362
|
-
listConferenceRecordings(accountId: string, conferenceId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ConferenceRecordingMetadata[], any, {}>>;
|
|
362
|
+
listConferenceRecordings(accountId: string, conferenceId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ConferenceRecordingMetadata[], any, {}, any>>;
|
|
363
363
|
/**
|
|
364
364
|
* Returns a max of 1000 conferences, sorted by `createdTime` from oldest to newest. **NOTE:** If the number of conferences in the account is bigger than `pageSize`, a `Link` header (with format `<{url}>; rel=\"next\"`) will be returned in the response. The url can be used to retrieve the next page of conference records.
|
|
365
365
|
* @summary Get Conferences
|
|
@@ -372,7 +372,7 @@ export declare class ConferencesApi extends BaseAPI {
|
|
|
372
372
|
* @param {*} [options] Override http request option.
|
|
373
373
|
* @throws {RequiredError}
|
|
374
374
|
*/
|
|
375
|
-
listConferences(accountId: string, name?: string, minCreatedTime?: string, maxCreatedTime?: string, pageSize?: number, pageToken?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Conference[], any, {}>>;
|
|
375
|
+
listConferences(accountId: string, name?: string, minCreatedTime?: string, maxCreatedTime?: string, pageSize?: number, pageToken?: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Conference[], any, {}, any>>;
|
|
376
376
|
/**
|
|
377
377
|
* Update the conference state.
|
|
378
378
|
* @summary Update Conference
|
|
@@ -382,7 +382,7 @@ export declare class ConferencesApi extends BaseAPI {
|
|
|
382
382
|
* @param {*} [options] Override http request option.
|
|
383
383
|
* @throws {RequiredError}
|
|
384
384
|
*/
|
|
385
|
-
updateConference(accountId: string, conferenceId: string, updateConference: UpdateConference, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
385
|
+
updateConference(accountId: string, conferenceId: string, updateConference: UpdateConference, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
|
|
386
386
|
/**
|
|
387
387
|
* Update the conference BXML document.
|
|
388
388
|
* @summary Update Conference BXML
|
|
@@ -392,7 +392,7 @@ export declare class ConferencesApi extends BaseAPI {
|
|
|
392
392
|
* @param {*} [options] Override http request option.
|
|
393
393
|
* @throws {RequiredError}
|
|
394
394
|
*/
|
|
395
|
-
updateConferenceBxml(accountId: string, conferenceId: string, body: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
395
|
+
updateConferenceBxml(accountId: string, conferenceId: string, body: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
|
|
396
396
|
/**
|
|
397
397
|
* Updates settings for a particular conference member.
|
|
398
398
|
* @summary Update Conference Member
|
|
@@ -403,5 +403,5 @@ export declare class ConferencesApi extends BaseAPI {
|
|
|
403
403
|
* @param {*} [options] Override http request option.
|
|
404
404
|
* @throws {RequiredError}
|
|
405
405
|
*/
|
|
406
|
-
updateConferenceMember(accountId: string, conferenceId: string, memberId: string, updateConferenceMember: UpdateConferenceMember, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
406
|
+
updateConferenceMember(accountId: string, conferenceId: string, memberId: string, updateConferenceMember: UpdateConferenceMember, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
|
|
407
407
|
}
|
|
@@ -124,9 +124,9 @@ var ConferencesApiAxiosParamCreator = function (configuration) {
|
|
|
124
124
|
// verify required parameter 'recordingId' is not null or undefined
|
|
125
125
|
(0, common_1.assertParamExists)('downloadConferenceRecording', 'recordingId', recordingId);
|
|
126
126
|
localVarPath = "/accounts/{accountId}/conferences/{conferenceId}/recordings/{recordingId}/media"
|
|
127
|
-
.replace(
|
|
128
|
-
.replace(
|
|
129
|
-
.replace(
|
|
127
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)))
|
|
128
|
+
.replace('{conferenceId}', encodeURIComponent(String(conferenceId)))
|
|
129
|
+
.replace('{recordingId}', encodeURIComponent(String(recordingId)));
|
|
130
130
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
131
131
|
if (configuration) {
|
|
132
132
|
baseOptions = configuration.baseOptions;
|
|
@@ -144,6 +144,7 @@ var ConferencesApiAxiosParamCreator = function (configuration) {
|
|
|
144
144
|
// authentication OAuth2 required
|
|
145
145
|
// oauth required
|
|
146
146
|
_a.sent();
|
|
147
|
+
localVarHeaderParameter['Accept'] = 'audio/vnd.wave,audio/mpeg,application/json';
|
|
147
148
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
148
149
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
149
150
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -179,8 +180,8 @@ var ConferencesApiAxiosParamCreator = function (configuration) {
|
|
|
179
180
|
// verify required parameter 'conferenceId' is not null or undefined
|
|
180
181
|
(0, common_1.assertParamExists)('getConference', 'conferenceId', conferenceId);
|
|
181
182
|
localVarPath = "/accounts/{accountId}/conferences/{conferenceId}"
|
|
182
|
-
.replace(
|
|
183
|
-
.replace(
|
|
183
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)))
|
|
184
|
+
.replace('{conferenceId}', encodeURIComponent(String(conferenceId)));
|
|
184
185
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
185
186
|
if (configuration) {
|
|
186
187
|
baseOptions = configuration.baseOptions;
|
|
@@ -198,6 +199,7 @@ var ConferencesApiAxiosParamCreator = function (configuration) {
|
|
|
198
199
|
// authentication OAuth2 required
|
|
199
200
|
// oauth required
|
|
200
201
|
_a.sent();
|
|
202
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
201
203
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
202
204
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
203
205
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -236,9 +238,9 @@ var ConferencesApiAxiosParamCreator = function (configuration) {
|
|
|
236
238
|
// verify required parameter 'memberId' is not null or undefined
|
|
237
239
|
(0, common_1.assertParamExists)('getConferenceMember', 'memberId', memberId);
|
|
238
240
|
localVarPath = "/accounts/{accountId}/conferences/{conferenceId}/members/{memberId}"
|
|
239
|
-
.replace(
|
|
240
|
-
.replace(
|
|
241
|
-
.replace(
|
|
241
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)))
|
|
242
|
+
.replace('{conferenceId}', encodeURIComponent(String(conferenceId)))
|
|
243
|
+
.replace('{memberId}', encodeURIComponent(String(memberId)));
|
|
242
244
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
243
245
|
if (configuration) {
|
|
244
246
|
baseOptions = configuration.baseOptions;
|
|
@@ -256,6 +258,7 @@ var ConferencesApiAxiosParamCreator = function (configuration) {
|
|
|
256
258
|
// authentication OAuth2 required
|
|
257
259
|
// oauth required
|
|
258
260
|
_a.sent();
|
|
261
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
259
262
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
260
263
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
261
264
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -294,9 +297,9 @@ var ConferencesApiAxiosParamCreator = function (configuration) {
|
|
|
294
297
|
// verify required parameter 'recordingId' is not null or undefined
|
|
295
298
|
(0, common_1.assertParamExists)('getConferenceRecording', 'recordingId', recordingId);
|
|
296
299
|
localVarPath = "/accounts/{accountId}/conferences/{conferenceId}/recordings/{recordingId}"
|
|
297
|
-
.replace(
|
|
298
|
-
.replace(
|
|
299
|
-
.replace(
|
|
300
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)))
|
|
301
|
+
.replace('{conferenceId}', encodeURIComponent(String(conferenceId)))
|
|
302
|
+
.replace('{recordingId}', encodeURIComponent(String(recordingId)));
|
|
300
303
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
301
304
|
if (configuration) {
|
|
302
305
|
baseOptions = configuration.baseOptions;
|
|
@@ -314,6 +317,7 @@ var ConferencesApiAxiosParamCreator = function (configuration) {
|
|
|
314
317
|
// authentication OAuth2 required
|
|
315
318
|
// oauth required
|
|
316
319
|
_a.sent();
|
|
320
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
317
321
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
318
322
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
319
323
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -349,8 +353,8 @@ var ConferencesApiAxiosParamCreator = function (configuration) {
|
|
|
349
353
|
// verify required parameter 'conferenceId' is not null or undefined
|
|
350
354
|
(0, common_1.assertParamExists)('listConferenceRecordings', 'conferenceId', conferenceId);
|
|
351
355
|
localVarPath = "/accounts/{accountId}/conferences/{conferenceId}/recordings"
|
|
352
|
-
.replace(
|
|
353
|
-
.replace(
|
|
356
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)))
|
|
357
|
+
.replace('{conferenceId}', encodeURIComponent(String(conferenceId)));
|
|
354
358
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
355
359
|
if (configuration) {
|
|
356
360
|
baseOptions = configuration.baseOptions;
|
|
@@ -368,6 +372,7 @@ var ConferencesApiAxiosParamCreator = function (configuration) {
|
|
|
368
372
|
// authentication OAuth2 required
|
|
369
373
|
// oauth required
|
|
370
374
|
_a.sent();
|
|
375
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
371
376
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
372
377
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
373
378
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -405,7 +410,7 @@ var ConferencesApiAxiosParamCreator = function (configuration) {
|
|
|
405
410
|
// verify required parameter 'accountId' is not null or undefined
|
|
406
411
|
(0, common_1.assertParamExists)('listConferences', 'accountId', accountId);
|
|
407
412
|
localVarPath = "/accounts/{accountId}/conferences"
|
|
408
|
-
.replace(
|
|
413
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)));
|
|
409
414
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
410
415
|
if (configuration) {
|
|
411
416
|
baseOptions = configuration.baseOptions;
|
|
@@ -438,6 +443,7 @@ var ConferencesApiAxiosParamCreator = function (configuration) {
|
|
|
438
443
|
if (pageToken !== undefined) {
|
|
439
444
|
localVarQueryParameter['pageToken'] = pageToken;
|
|
440
445
|
}
|
|
446
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
441
447
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
442
448
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
443
449
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -476,8 +482,8 @@ var ConferencesApiAxiosParamCreator = function (configuration) {
|
|
|
476
482
|
// verify required parameter 'updateConference' is not null or undefined
|
|
477
483
|
(0, common_1.assertParamExists)('updateConference', 'updateConference', updateConference);
|
|
478
484
|
localVarPath = "/accounts/{accountId}/conferences/{conferenceId}"
|
|
479
|
-
.replace(
|
|
480
|
-
.replace(
|
|
485
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)))
|
|
486
|
+
.replace('{conferenceId}', encodeURIComponent(String(conferenceId)));
|
|
481
487
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
482
488
|
if (configuration) {
|
|
483
489
|
baseOptions = configuration.baseOptions;
|
|
@@ -496,6 +502,7 @@ var ConferencesApiAxiosParamCreator = function (configuration) {
|
|
|
496
502
|
// oauth required
|
|
497
503
|
_a.sent();
|
|
498
504
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
505
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
499
506
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
500
507
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
501
508
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -535,8 +542,8 @@ var ConferencesApiAxiosParamCreator = function (configuration) {
|
|
|
535
542
|
// verify required parameter 'body' is not null or undefined
|
|
536
543
|
(0, common_1.assertParamExists)('updateConferenceBxml', 'body', body);
|
|
537
544
|
localVarPath = "/accounts/{accountId}/conferences/{conferenceId}/bxml"
|
|
538
|
-
.replace(
|
|
539
|
-
.replace(
|
|
545
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)))
|
|
546
|
+
.replace('{conferenceId}', encodeURIComponent(String(conferenceId)));
|
|
540
547
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
541
548
|
if (configuration) {
|
|
542
549
|
baseOptions = configuration.baseOptions;
|
|
@@ -555,6 +562,7 @@ var ConferencesApiAxiosParamCreator = function (configuration) {
|
|
|
555
562
|
// oauth required
|
|
556
563
|
_a.sent();
|
|
557
564
|
localVarHeaderParameter['Content-Type'] = 'application/xml';
|
|
565
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
558
566
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
559
567
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
560
568
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -597,9 +605,9 @@ var ConferencesApiAxiosParamCreator = function (configuration) {
|
|
|
597
605
|
// verify required parameter 'updateConferenceMember' is not null or undefined
|
|
598
606
|
(0, common_1.assertParamExists)('updateConferenceMember', 'updateConferenceMember', updateConferenceMember);
|
|
599
607
|
localVarPath = "/accounts/{accountId}/conferences/{conferenceId}/members/{memberId}"
|
|
600
|
-
.replace(
|
|
601
|
-
.replace(
|
|
602
|
-
.replace(
|
|
608
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)))
|
|
609
|
+
.replace('{conferenceId}', encodeURIComponent(String(conferenceId)))
|
|
610
|
+
.replace('{memberId}', encodeURIComponent(String(memberId)));
|
|
603
611
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
604
612
|
if (configuration) {
|
|
605
613
|
baseOptions = configuration.baseOptions;
|
|
@@ -618,6 +626,7 @@ var ConferencesApiAxiosParamCreator = function (configuration) {
|
|
|
618
626
|
// oauth required
|
|
619
627
|
_a.sent();
|
|
620
628
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
629
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
621
630
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
622
631
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
623
632
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -192,7 +192,7 @@ export declare class EndpointsApi extends BaseAPI {
|
|
|
192
192
|
* @param {*} [options] Override http request option.
|
|
193
193
|
* @throws {RequiredError}
|
|
194
194
|
*/
|
|
195
|
-
createEndpoint(accountId: string, body: CreateWebRtcConnectionRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateEndpointResponse, any, {}>>;
|
|
195
|
+
createEndpoint(accountId: string, body: CreateWebRtcConnectionRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateEndpointResponse, any, {}, any>>;
|
|
196
196
|
/**
|
|
197
197
|
* Deletes the specified endpoint. If the endpoint is actively streaming media, the media stream will be terminated.
|
|
198
198
|
* @summary Delete Endpoint
|
|
@@ -201,7 +201,7 @@ export declare class EndpointsApi extends BaseAPI {
|
|
|
201
201
|
* @param {*} [options] Override http request option.
|
|
202
202
|
* @throws {RequiredError}
|
|
203
203
|
*/
|
|
204
|
-
deleteEndpoint(accountId: string, endpointId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
204
|
+
deleteEndpoint(accountId: string, endpointId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
|
|
205
205
|
/**
|
|
206
206
|
* Returns information about the specified endpoint.
|
|
207
207
|
* @summary Get Endpoint
|
|
@@ -210,7 +210,7 @@ export declare class EndpointsApi extends BaseAPI {
|
|
|
210
210
|
* @param {*} [options] Override http request option.
|
|
211
211
|
* @throws {RequiredError}
|
|
212
212
|
*/
|
|
213
|
-
getEndpoint(accountId: string, endpointId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EndpointResponse, any, {}>>;
|
|
213
|
+
getEndpoint(accountId: string, endpointId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EndpointResponse, any, {}, any>>;
|
|
214
214
|
/**
|
|
215
215
|
* Returns a list of endpoints associated with the specified account.
|
|
216
216
|
* @summary List Endpoints
|
|
@@ -222,7 +222,7 @@ export declare class EndpointsApi extends BaseAPI {
|
|
|
222
222
|
* @param {*} [options] Override http request option.
|
|
223
223
|
* @throws {RequiredError}
|
|
224
224
|
*/
|
|
225
|
-
listEndpoints(accountId: string, type?: EndpointTypeEnum, status?: EndpointStatusEnum, afterCursor?: string, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListEndpointsResponse, any, {}>>;
|
|
225
|
+
listEndpoints(accountId: string, type?: EndpointTypeEnum, status?: EndpointStatusEnum, afterCursor?: string, limit?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ListEndpointsResponse, any, {}, any>>;
|
|
226
226
|
/**
|
|
227
227
|
* Updates the BXML for the specified endpoint.
|
|
228
228
|
* @summary Update Endpoint BXML
|
|
@@ -232,5 +232,5 @@ export declare class EndpointsApi extends BaseAPI {
|
|
|
232
232
|
* @param {*} [options] Override http request option.
|
|
233
233
|
* @throws {RequiredError}
|
|
234
234
|
*/
|
|
235
|
-
updateEndpointBxml(accountId: string, endpointId: string, body: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
235
|
+
updateEndpointBxml(accountId: string, endpointId: string, body: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
|
|
236
236
|
}
|
|
@@ -121,7 +121,7 @@ var EndpointsApiAxiosParamCreator = function (configuration) {
|
|
|
121
121
|
// verify required parameter 'body' is not null or undefined
|
|
122
122
|
(0, common_1.assertParamExists)('createEndpoint', 'body', body);
|
|
123
123
|
localVarPath = "/accounts/{accountId}/endpoints"
|
|
124
|
-
.replace(
|
|
124
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)));
|
|
125
125
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
126
126
|
if (configuration) {
|
|
127
127
|
baseOptions = configuration.baseOptions;
|
|
@@ -140,6 +140,7 @@ var EndpointsApiAxiosParamCreator = function (configuration) {
|
|
|
140
140
|
// oauth required
|
|
141
141
|
_a.sent();
|
|
142
142
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
143
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
143
144
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
144
145
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
145
146
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -176,8 +177,8 @@ var EndpointsApiAxiosParamCreator = function (configuration) {
|
|
|
176
177
|
// verify required parameter 'endpointId' is not null or undefined
|
|
177
178
|
(0, common_1.assertParamExists)('deleteEndpoint', 'endpointId', endpointId);
|
|
178
179
|
localVarPath = "/accounts/{accountId}/endpoints/{endpointId}"
|
|
179
|
-
.replace(
|
|
180
|
-
.replace(
|
|
180
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)))
|
|
181
|
+
.replace('{endpointId}', encodeURIComponent(String(endpointId)));
|
|
181
182
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
182
183
|
if (configuration) {
|
|
183
184
|
baseOptions = configuration.baseOptions;
|
|
@@ -195,6 +196,7 @@ var EndpointsApiAxiosParamCreator = function (configuration) {
|
|
|
195
196
|
// authentication OAuth2 required
|
|
196
197
|
// oauth required
|
|
197
198
|
_a.sent();
|
|
199
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
198
200
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
199
201
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
200
202
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -230,8 +232,8 @@ var EndpointsApiAxiosParamCreator = function (configuration) {
|
|
|
230
232
|
// verify required parameter 'endpointId' is not null or undefined
|
|
231
233
|
(0, common_1.assertParamExists)('getEndpoint', 'endpointId', endpointId);
|
|
232
234
|
localVarPath = "/accounts/{accountId}/endpoints/{endpointId}"
|
|
233
|
-
.replace(
|
|
234
|
-
.replace(
|
|
235
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)))
|
|
236
|
+
.replace('{endpointId}', encodeURIComponent(String(endpointId)));
|
|
235
237
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
236
238
|
if (configuration) {
|
|
237
239
|
baseOptions = configuration.baseOptions;
|
|
@@ -249,6 +251,7 @@ var EndpointsApiAxiosParamCreator = function (configuration) {
|
|
|
249
251
|
// authentication OAuth2 required
|
|
250
252
|
// oauth required
|
|
251
253
|
_a.sent();
|
|
254
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
252
255
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
253
256
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
254
257
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -285,7 +288,7 @@ var EndpointsApiAxiosParamCreator = function (configuration) {
|
|
|
285
288
|
// verify required parameter 'accountId' is not null or undefined
|
|
286
289
|
(0, common_1.assertParamExists)('listEndpoints', 'accountId', accountId);
|
|
287
290
|
localVarPath = "/accounts/{accountId}/endpoints"
|
|
288
|
-
.replace(
|
|
291
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)));
|
|
289
292
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
290
293
|
if (configuration) {
|
|
291
294
|
baseOptions = configuration.baseOptions;
|
|
@@ -315,6 +318,7 @@ var EndpointsApiAxiosParamCreator = function (configuration) {
|
|
|
315
318
|
if (limit !== undefined) {
|
|
316
319
|
localVarQueryParameter['limit'] = limit;
|
|
317
320
|
}
|
|
321
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
318
322
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
319
323
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
320
324
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -353,8 +357,8 @@ var EndpointsApiAxiosParamCreator = function (configuration) {
|
|
|
353
357
|
// verify required parameter 'body' is not null or undefined
|
|
354
358
|
(0, common_1.assertParamExists)('updateEndpointBxml', 'body', body);
|
|
355
359
|
localVarPath = "/accounts/{accountId}/endpoints/{endpointId}/bxml"
|
|
356
|
-
.replace(
|
|
357
|
-
.replace(
|
|
360
|
+
.replace('{accountId}', encodeURIComponent(String(accountId)))
|
|
361
|
+
.replace('{endpointId}', encodeURIComponent(String(endpointId)));
|
|
358
362
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
359
363
|
if (configuration) {
|
|
360
364
|
baseOptions = configuration.baseOptions;
|
|
@@ -373,6 +377,7 @@ var EndpointsApiAxiosParamCreator = function (configuration) {
|
|
|
373
377
|
// oauth required
|
|
374
378
|
_a.sent();
|
|
375
379
|
localVarHeaderParameter['Content-Type'] = 'application/xml';
|
|
380
|
+
localVarHeaderParameter['Accept'] = 'application/json';
|
|
376
381
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
377
382
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
378
383
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|