From e7840bf6a6465913491b76a34ee1d94c0efdb059 Mon Sep 17 00:00:00 2001 From: DX-Bandwidth Date: Tue, 25 Nov 2025 14:07:14 +0000 Subject: [PATCH] Generate SDK with OpenAPI Generator Version --- .openapi-generator/VERSION | 2 +- README.md | 8 +++ api/calls-api.ts | 31 ++++++++++ api/conferences-api.ts | 51 ++++++++++++++++ api/media-api.ts | 26 ++++++++ api/messages-api.ts | 16 +++++ api/mfaapi.ts | 21 +++++++ api/multi-channel-api.ts | 11 ++++ api/phone-number-lookup-api.ts | 21 +++++++ api/recordings-api.ts | 56 +++++++++++++++++ api/statistics-api.ts | 11 ++++ api/toll-free-verification-api.ts | 51 ++++++++++++++++ api/transcriptions-api.ts | 21 +++++++ bandwidth.yml | 7 +++ base.ts | 24 ++++++++ common.ts | 1 + configuration.ts | 1 + docs/CallsApi.md | 10 ++-- docs/ConferencesApi.md | 18 +++--- docs/MFAApi.md | 6 +- docs/MediaApi.md | 8 +-- docs/MessagesApi.md | 4 +- docs/MultiChannelApi.md | 2 +- docs/PhoneNumberLookupApi.md | 6 +- docs/RecordingsApi.md | 20 +++---- docs/StatisticsApi.md | 2 +- docs/TollFreeVerificationApi.md | 18 +++--- docs/TranscriptionsApi.md | 6 +- models/account-statistics.ts | 9 +++ models/additional-denial-reason.ts | 11 ++++ models/address.ts | 19 ++++++ models/answer-callback.ts | 36 +++++++++++ models/async-lookup-request.ts | 7 +++ models/blocked-webhook.ts | 20 +++++++ models/bridge-complete-callback.ts | 37 ++++++++++++ models/bridge-target-complete-callback.ts | 31 ++++++++++ models/business-entity-type-enum.ts | 2 + models/business-registration-type-enum.ts | 2 + models/call-direction-enum.ts | 2 + models/call-recording-metadata.ts | 52 ++++++++++++++++ models/call-state-enum.ts | 2 + models/call-state.ts | 44 ++++++++++++++ ...ll-transcription-detected-language-enum.ts | 2 + models/call-transcription-metadata.ts | 11 ++++ models/call-transcription-response.ts | 16 +++++ models/call-transcription-track-enum.ts | 2 + models/call-transcription.ts | 19 ++++++ models/callback-method-enum.ts | 2 + models/callback.ts | 1 + models/card-width-enum.ts | 5 ++ models/code-request.ts | 17 ++++++ models/completed-lookup-status-enum.ts | 5 ++ models/conference-completed-callback.ts | 12 ++++ models/conference-created-callback.ts | 12 ++++ models/conference-member-exit-callback.ts | 18 ++++++ models/conference-member-join-callback.ts | 18 ++++++ models/conference-member.ts | 17 ++++++ ...conference-recording-available-callback.ts | 33 ++++++++++ models/conference-recording-metadata.ts | 32 ++++++++++ models/conference-redirect-callback.ts | 12 ++++ models/conference-state-enum.ts | 2 + models/conference.ts | 24 ++++++++ models/contact.ts | 16 +++++ .../create-async-bulk-lookup-response-data.ts | 9 +++ models/create-async-bulk-lookup-response.ts | 17 ++++++ models/create-call-response.ts | 56 +++++++++++++++++ models/create-call.ts | 59 ++++++++++++++++++ models/create-message-request-error.ts | 20 +++++++ .../create-multi-channel-message-response.ts | 20 +++++++ models/create-sync-lookup-response-data.ts | 11 ++++ models/create-sync-lookup-response.ts | 20 +++++++ models/deactivation-event-enum.ts | 2 + models/disconnect-callback.ts | 39 ++++++++++++ models/diversion.ts | 19 ++++++ models/dtmf-callback.ts | 39 ++++++++++++ models/error-object.ts | 14 +++++ models/error-source.ts | 10 ++++ models/failure-webhook.ts | 17 ++++++ models/field-error.ts | 9 +++ models/file-format-enum.ts | 2 + models/gather-callback.ts | 41 +++++++++++++ models/get-async-bulk-lookup-response-data.ts | 11 ++++ models/get-async-bulk-lookup-response.ts | 20 +++++++ models/in-progress-lookup-status-enum.ts | 5 ++ models/inbound-callback-message.ts | 1 + models/inbound-callback-type-enum.ts | 2 + models/inbound-callback.ts | 23 +++++++ models/initiate-callback.ts | 37 ++++++++++++ models/latest-message-delivery-status-enum.ts | 2 + models/line-type-enum.ts | 5 ++ models/link-schema.ts | 11 ++++ models/link.ts | 15 +++++ models/links-object.ts | 13 ++++ models/list-message-direction-enum.ts | 2 + models/list-message-item.ts | 60 +++++++++++++++++++ models/lookup-error-response.ts | 17 ++++++ models/lookup-error-schema-meta.ts | 14 +++++ models/lookup-error-schema.ts | 16 +++++ models/lookup-result.ts | 33 ++++++++++ models/machine-detection-complete-callback.ts | 36 +++++++++++ models/machine-detection-configuration.ts | 41 +++++++++++++ models/machine-detection-mode-enum.ts | 2 + models/machine-detection-result.ts | 6 ++ models/media.ts | 20 +++++++ models/message-direction-enum.ts | 2 + models/message-request.ts | 24 ++++++++ models/message-status-enum.ts | 2 + models/message-type-enum.ts | 2 + models/message.ts | 37 ++++++++++++ models/messages-list.ts | 17 ++++++ models/messaging-code-response.ts | 7 +++ models/messaging-request-error.ts | 15 +++++ models/mfa-forbidden-request-error.ts | 7 +++ models/mfa-request-error.ts | 9 +++ models/mfa-unauthorized-request-error.ts | 7 +++ models/mms-message-content-file.ts | 7 +++ models/mms-message-content.ts | 12 ++++ models/model-error.ts | 20 +++++++ models/multi-channel-action-calendar-event.ts | 1 + models/multi-channel-action.ts | 32 ++++++++++ .../multi-channel-channel-list-mmsobject.ts | 1 + ...channel-channel-list-mmsresponse-object.ts | 1 + .../multi-channel-channel-list-object-base.ts | 14 +++++ ...multi-channel-channel-list-owner-object.ts | 7 +++ ...l-channel-list-rbmobject-all-of-content.ts | 1 + .../multi-channel-channel-list-rbmobject.ts | 1 + ...channel-channel-list-rbmresponse-object.ts | 1 + ...lti-channel-channel-list-request-object.ts | 19 ++++++ ...ti-channel-channel-list-response-object.ts | 21 +++++++ .../multi-channel-channel-list-smsobject.ts | 1 + ...channel-channel-list-smsresponse-object.ts | 1 + models/multi-channel-error.ts | 20 +++++++ models/multi-channel-message-channel-enum.ts | 2 + models/multi-channel-message-content.ts | 12 ++++ models/multi-channel-message-request.ts | 15 +++++ models/multi-channel-message-response-data.ts | 24 ++++++++ models/opt-in-workflow.ts | 20 +++++++ models/page-info.ts | 13 ++++ models/priority-enum.ts | 2 + models/product-type-enum.ts | 2 + models/rbm-action-base.ts | 14 +++++ models/rbm-action-dial.ts | 1 + models/rbm-action-open-url.ts | 1 + models/rbm-action-type-enum.ts | 5 ++ models/rbm-action-view-location.ts | 1 + models/rbm-card-content-media.ts | 1 + models/rbm-card-content.ts | 16 +++++ models/rbm-location-response.ts | 9 +++ models/rbm-media-height-enum.ts | 2 + models/rbm-message-carousel-card.ts | 17 ++++++ models/rbm-message-content-file.ts | 9 +++ models/rbm-message-content-rich-card.ts | 1 + models/rbm-message-content-text.ts | 9 +++ models/rbm-message-media.ts | 12 ++++ models/rbm-standalone-card.ts | 22 +++++++ models/rbm-suggestion-response.ts | 9 +++ models/recording-available-callback.ts | 52 ++++++++++++++++ models/recording-complete-callback.ts | 52 ++++++++++++++++ models/recording-state-enum.ts | 2 + models/recording-transcription-metadata.ts | 10 ++++ models/recording-transcriptions.ts | 10 ++++ models/redirect-callback.ts | 37 ++++++++++++ models/redirect-method-enum.ts | 2 + models/sms-message-content.ts | 7 +++ models/standalone-card-orientation-enum.ts | 5 ++ models/status-callback-message.ts | 43 +++++++++++++ models/status-callback-type-enum.ts | 2 + models/status-callback.ts | 27 +++++++++ models/stir-shaken.ts | 11 ++++ models/sync-lookup-request.ts | 7 +++ models/telephone-number.ts | 7 +++ models/tfv-basic-authentication.ts | 15 +++++ models/tfv-callback-status-enum.ts | 5 ++ models/tfv-error.ts | 14 +++++ models/tfv-status-enum.ts | 5 ++ models/tfv-status.ts | 31 ++++++++++ models/tfv-submission-info.ts | 50 ++++++++++++++++ models/tfv-submission-wrapper.ts | 10 ++++ models/thumbnail-alignment-enum.ts | 2 + models/transcribe-recording.ts | 22 +++++++ models/transcription-available-callback.ts | 53 ++++++++++++++++ models/transcription.ts | 9 +++ models/transfer-answer-callback.ts | 35 +++++++++++ models/transfer-complete-callback.ts | 41 +++++++++++++ models/transfer-disconnect-callback.ts | 45 ++++++++++++++ models/update-call-recording.ts | 10 ++++ models/update-call.ts | 34 +++++++++++ models/update-conference-member.ts | 11 ++++ models/update-conference.ts | 32 ++++++++++ models/verification-denial-webhook.ts | 28 +++++++++ models/verification-request.ts | 59 ++++++++++++++++++ models/verification-update-request.ts | 54 +++++++++++++++++ models/verification-webhook.ts | 16 +++++ models/verify-code-request.ts | 13 ++++ models/verify-code-response.ts | 7 +++ models/voice-api-error.ts | 20 +++++++ models/voice-code-response.ts | 7 +++ ...bhook-subscription-basic-authentication.ts | 12 ++++ models/webhook-subscription-request-schema.ts | 14 +++++ models/webhook-subscription-type-enum.ts | 5 ++ models/webhook-subscription.ts | 34 +++++++++++ models/webhook-subscriptions-list-body.ts | 17 ++++++ openapitools.json | 2 +- 203 files changed, 3247 insertions(+), 52 deletions(-) diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION index 6328c54..eb1dc6a 100644 --- a/.openapi-generator/VERSION +++ b/.openapi-generator/VERSION @@ -1 +1 @@ -7.17.0 +7.13.0 diff --git a/README.md b/README.md index 239dfbe..912313c 100644 --- a/README.md +++ b/README.md @@ -346,3 +346,11 @@ Authentication schemes defined for the API: - **Type**: HTTP basic authentication + +### OAuth2 + +- **Type**: OAuth +- **Flow**: application +- **Authorization URL**: +- **Scopes**: N/A + diff --git a/api/calls-api.ts b/api/calls-api.ts index 2d30644..452b640 100644 --- a/api/calls-api.ts +++ b/api/calls-api.ts @@ -33,6 +33,7 @@ import type { UpdateCall } from '../models'; import type { VoiceApiError } from '../models'; /** * CallsApi - axios parameter creator + * @export */ export const CallsApiAxiosParamCreator = function (configuration?: Configuration) { return { @@ -66,6 +67,10 @@ export const CallsApiAxiosParamCreator = function (configuration?: Configuration // http basic authentication required setBasicAuthToObject(localVarRequestOptions, configuration) + // authentication OAuth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) + localVarHeaderParameter['Content-Type'] = 'application/json'; @@ -111,6 +116,10 @@ export const CallsApiAxiosParamCreator = function (configuration?: Configuration // http basic authentication required setBasicAuthToObject(localVarRequestOptions, configuration) + // authentication OAuth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -156,6 +165,10 @@ export const CallsApiAxiosParamCreator = function (configuration?: Configuration // http basic authentication required setBasicAuthToObject(localVarRequestOptions, configuration) + // authentication OAuth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) + if (to !== undefined) { localVarQueryParameter['to'] = to; } @@ -229,6 +242,10 @@ export const CallsApiAxiosParamCreator = function (configuration?: Configuration // http basic authentication required setBasicAuthToObject(localVarRequestOptions, configuration) + // authentication OAuth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) + localVarHeaderParameter['Content-Type'] = 'application/json'; @@ -277,6 +294,10 @@ export const CallsApiAxiosParamCreator = function (configuration?: Configuration // http basic authentication required setBasicAuthToObject(localVarRequestOptions, configuration) + // authentication OAuth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) + localVarHeaderParameter['Content-Type'] = 'application/xml'; @@ -296,6 +317,7 @@ export const CallsApiAxiosParamCreator = function (configuration?: Configuration /** * CallsApi - functional programming interface + * @export */ export const CallsApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = CallsApiAxiosParamCreator(configuration) @@ -383,6 +405,7 @@ export const CallsApiFp = function(configuration?: Configuration) { /** * CallsApi - factory interface + * @export */ export const CallsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = CallsApiFp(configuration) @@ -455,6 +478,9 @@ export const CallsApiFactory = function (configuration?: Configuration, basePath /** * CallsApi - object-oriented interface + * @export + * @class CallsApi + * @extends {BaseAPI} */ export class CallsApi extends BaseAPI { /** @@ -464,6 +490,7 @@ export class CallsApi extends BaseAPI { * @param {CreateCall} createCall JSON object containing information to create an outbound call * @param {*} [options] Override http request option. * @throws {RequiredError} + * @memberof CallsApi */ public createCall(accountId: string, createCall: CreateCall, options?: RawAxiosRequestConfig) { return CallsApiFp(this.configuration).createCall(accountId, createCall, options).then((request) => request(this.axios, this.basePath)); @@ -476,6 +503,7 @@ export class CallsApi extends BaseAPI { * @param {string} callId Programmable Voice API Call ID. * @param {*} [options] Override http request option. * @throws {RequiredError} + * @memberof CallsApi */ public getCallState(accountId: string, callId: string, options?: RawAxiosRequestConfig) { return CallsApiFp(this.configuration).getCallState(accountId, callId, options).then((request) => request(this.axios, this.basePath)); @@ -494,6 +522,7 @@ export class CallsApi extends BaseAPI { * @param {string} [pageToken] Not intended for explicit use. To use pagination, follow the links in the `Link` header of the response, as indicated in the endpoint description. * @param {*} [options] Override http request option. * @throws {RequiredError} + * @memberof CallsApi */ public listCalls(accountId: string, to?: string, from?: string, minStartTime?: string, maxStartTime?: string, disconnectCause?: string, pageSize?: number, pageToken?: string, options?: RawAxiosRequestConfig) { return CallsApiFp(this.configuration).listCalls(accountId, to, from, minStartTime, maxStartTime, disconnectCause, pageSize, pageToken, options).then((request) => request(this.axios, this.basePath)); @@ -507,6 +536,7 @@ export class CallsApi extends BaseAPI { * @param {UpdateCall} updateCall JSON object containing information to redirect an existing call to a new BXML document * @param {*} [options] Override http request option. * @throws {RequiredError} + * @memberof CallsApi */ public updateCall(accountId: string, callId: string, updateCall: UpdateCall, options?: RawAxiosRequestConfig) { return CallsApiFp(this.configuration).updateCall(accountId, callId, updateCall, options).then((request) => request(this.axios, this.basePath)); @@ -520,6 +550,7 @@ export class CallsApi extends BaseAPI { * @param {string} body * @param {*} [options] Override http request option. * @throws {RequiredError} + * @memberof CallsApi */ public updateCallBxml(accountId: string, callId: string, body: string, options?: RawAxiosRequestConfig) { return CallsApiFp(this.configuration).updateCallBxml(accountId, callId, body, options).then((request) => request(this.axios, this.basePath)); diff --git a/api/conferences-api.ts b/api/conferences-api.ts index 7bceb85..4814a67 100644 --- a/api/conferences-api.ts +++ b/api/conferences-api.ts @@ -35,6 +35,7 @@ import type { UpdateConferenceMember } from '../models'; import type { VoiceApiError } from '../models'; /** * ConferencesApi - axios parameter creator + * @export */ export const ConferencesApiAxiosParamCreator = function (configuration?: Configuration) { return { @@ -73,6 +74,10 @@ export const ConferencesApiAxiosParamCreator = function (configuration?: Configu // http basic authentication required setBasicAuthToObject(localVarRequestOptions, configuration) + // authentication OAuth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -115,6 +120,10 @@ export const ConferencesApiAxiosParamCreator = function (configuration?: Configu // http basic authentication required setBasicAuthToObject(localVarRequestOptions, configuration) + // authentication OAuth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -161,6 +170,10 @@ export const ConferencesApiAxiosParamCreator = function (configuration?: Configu // http basic authentication required setBasicAuthToObject(localVarRequestOptions, configuration) + // authentication OAuth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -207,6 +220,10 @@ export const ConferencesApiAxiosParamCreator = function (configuration?: Configu // http basic authentication required setBasicAuthToObject(localVarRequestOptions, configuration) + // authentication OAuth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -249,6 +266,10 @@ export const ConferencesApiAxiosParamCreator = function (configuration?: Configu // http basic authentication required setBasicAuthToObject(localVarRequestOptions, configuration) + // authentication OAuth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -292,6 +313,10 @@ export const ConferencesApiAxiosParamCreator = function (configuration?: Configu // http basic authentication required setBasicAuthToObject(localVarRequestOptions, configuration) + // authentication OAuth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) + if (name !== undefined) { localVarQueryParameter['name'] = name; } @@ -357,6 +382,10 @@ export const ConferencesApiAxiosParamCreator = function (configuration?: Configu // http basic authentication required setBasicAuthToObject(localVarRequestOptions, configuration) + // authentication OAuth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) + localVarHeaderParameter['Content-Type'] = 'application/json'; @@ -405,6 +434,10 @@ export const ConferencesApiAxiosParamCreator = function (configuration?: Configu // http basic authentication required setBasicAuthToObject(localVarRequestOptions, configuration) + // authentication OAuth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) + localVarHeaderParameter['Content-Type'] = 'application/xml'; @@ -457,6 +490,10 @@ export const ConferencesApiAxiosParamCreator = function (configuration?: Configu // http basic authentication required setBasicAuthToObject(localVarRequestOptions, configuration) + // authentication OAuth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) + localVarHeaderParameter['Content-Type'] = 'application/json'; @@ -476,6 +513,7 @@ export const ConferencesApiAxiosParamCreator = function (configuration?: Configu /** * ConferencesApi - functional programming interface + * @export */ export const ConferencesApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = ConferencesApiAxiosParamCreator(configuration) @@ -622,6 +660,7 @@ export const ConferencesApiFp = function(configuration?: Configuration) { /** * ConferencesApi - factory interface + * @export */ export const ConferencesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = ConferencesApiFp(configuration) @@ -741,6 +780,9 @@ export const ConferencesApiFactory = function (configuration?: Configuration, ba /** * ConferencesApi - object-oriented interface + * @export + * @class ConferencesApi + * @extends {BaseAPI} */ export class ConferencesApi extends BaseAPI { /** @@ -751,6 +793,7 @@ export class ConferencesApi extends BaseAPI { * @param {string} recordingId Programmable Voice API Recording ID. * @param {*} [options] Override http request option. * @throws {RequiredError} + * @memberof ConferencesApi */ public downloadConferenceRecording(accountId: string, conferenceId: string, recordingId: string, options?: RawAxiosRequestConfig) { return ConferencesApiFp(this.configuration).downloadConferenceRecording(accountId, conferenceId, recordingId, options).then((request) => request(this.axios, this.basePath)); @@ -763,6 +806,7 @@ export class ConferencesApi extends BaseAPI { * @param {string} conferenceId Programmable Voice API Conference ID. * @param {*} [options] Override http request option. * @throws {RequiredError} + * @memberof ConferencesApi */ public getConference(accountId: string, conferenceId: string, options?: RawAxiosRequestConfig) { return ConferencesApiFp(this.configuration).getConference(accountId, conferenceId, options).then((request) => request(this.axios, this.basePath)); @@ -776,6 +820,7 @@ export class ConferencesApi extends BaseAPI { * @param {string} memberId Programmable Voice API Conference Member ID. * @param {*} [options] Override http request option. * @throws {RequiredError} + * @memberof ConferencesApi */ public getConferenceMember(accountId: string, conferenceId: string, memberId: string, options?: RawAxiosRequestConfig) { return ConferencesApiFp(this.configuration).getConferenceMember(accountId, conferenceId, memberId, options).then((request) => request(this.axios, this.basePath)); @@ -789,6 +834,7 @@ export class ConferencesApi extends BaseAPI { * @param {string} recordingId Programmable Voice API Recording ID. * @param {*} [options] Override http request option. * @throws {RequiredError} + * @memberof ConferencesApi */ public getConferenceRecording(accountId: string, conferenceId: string, recordingId: string, options?: RawAxiosRequestConfig) { return ConferencesApiFp(this.configuration).getConferenceRecording(accountId, conferenceId, recordingId, options).then((request) => request(this.axios, this.basePath)); @@ -801,6 +847,7 @@ export class ConferencesApi extends BaseAPI { * @param {string} conferenceId Programmable Voice API Conference ID. * @param {*} [options] Override http request option. * @throws {RequiredError} + * @memberof ConferencesApi */ public listConferenceRecordings(accountId: string, conferenceId: string, options?: RawAxiosRequestConfig) { return ConferencesApiFp(this.configuration).listConferenceRecordings(accountId, conferenceId, options).then((request) => request(this.axios, this.basePath)); @@ -817,6 +864,7 @@ export class ConferencesApi extends BaseAPI { * @param {string} [pageToken] Not intended for explicit use. To use pagination, follow the links in the `Link` header of the response, as indicated in the endpoint description. * @param {*} [options] Override http request option. * @throws {RequiredError} + * @memberof ConferencesApi */ public listConferences(accountId: string, name?: string, minCreatedTime?: string, maxCreatedTime?: string, pageSize?: number, pageToken?: string, options?: RawAxiosRequestConfig) { return ConferencesApiFp(this.configuration).listConferences(accountId, name, minCreatedTime, maxCreatedTime, pageSize, pageToken, options).then((request) => request(this.axios, this.basePath)); @@ -830,6 +878,7 @@ export class ConferencesApi extends BaseAPI { * @param {UpdateConference} updateConference * @param {*} [options] Override http request option. * @throws {RequiredError} + * @memberof ConferencesApi */ public updateConference(accountId: string, conferenceId: string, updateConference: UpdateConference, options?: RawAxiosRequestConfig) { return ConferencesApiFp(this.configuration).updateConference(accountId, conferenceId, updateConference, options).then((request) => request(this.axios, this.basePath)); @@ -843,6 +892,7 @@ export class ConferencesApi extends BaseAPI { * @param {string} body * @param {*} [options] Override http request option. * @throws {RequiredError} + * @memberof ConferencesApi */ public updateConferenceBxml(accountId: string, conferenceId: string, body: string, options?: RawAxiosRequestConfig) { return ConferencesApiFp(this.configuration).updateConferenceBxml(accountId, conferenceId, body, options).then((request) => request(this.axios, this.basePath)); @@ -857,6 +907,7 @@ export class ConferencesApi extends BaseAPI { * @param {UpdateConferenceMember} updateConferenceMember * @param {*} [options] Override http request option. * @throws {RequiredError} + * @memberof ConferencesApi */ public updateConferenceMember(accountId: string, conferenceId: string, memberId: string, updateConferenceMember: UpdateConferenceMember, options?: RawAxiosRequestConfig) { return ConferencesApiFp(this.configuration).updateConferenceMember(accountId, conferenceId, memberId, updateConferenceMember, options).then((request) => request(this.axios, this.basePath)); diff --git a/api/media-api.ts b/api/media-api.ts index be90feb..96aa1ae 100644 --- a/api/media-api.ts +++ b/api/media-api.ts @@ -27,6 +27,7 @@ import type { Media } from '../models'; import type { MessagingRequestError } from '../models'; /** * MediaApi - axios parameter creator + * @export */ export const MediaApiAxiosParamCreator = function (configuration?: Configuration) { return { @@ -61,6 +62,10 @@ export const MediaApiAxiosParamCreator = function (configuration?: Configuration // http basic authentication required setBasicAuthToObject(localVarRequestOptions, configuration) + // authentication OAuth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -103,6 +108,10 @@ export const MediaApiAxiosParamCreator = function (configuration?: Configuration // http basic authentication required setBasicAuthToObject(localVarRequestOptions, configuration) + // authentication OAuth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -142,6 +151,10 @@ export const MediaApiAxiosParamCreator = function (configuration?: Configuration // http basic authentication required setBasicAuthToObject(localVarRequestOptions, configuration) + // authentication OAuth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) + if (continuationToken != null) { @@ -192,6 +205,10 @@ export const MediaApiAxiosParamCreator = function (configuration?: Configuration // http basic authentication required setBasicAuthToObject(localVarRequestOptions, configuration) + // authentication OAuth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) + localVarHeaderParameter['Content-Type'] = 'application/json'; @@ -217,6 +234,7 @@ export const MediaApiAxiosParamCreator = function (configuration?: Configuration /** * MediaApi - functional programming interface + * @export */ export const MediaApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = MediaApiAxiosParamCreator(configuration) @@ -285,6 +303,7 @@ export const MediaApiFp = function(configuration?: Configuration) { /** * MediaApi - factory interface + * @export */ export const MediaApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = MediaApiFp(configuration) @@ -341,6 +360,9 @@ export const MediaApiFactory = function (configuration?: Configuration, basePath /** * MediaApi - object-oriented interface + * @export + * @class MediaApi + * @extends {BaseAPI} */ export class MediaApi extends BaseAPI { /** @@ -350,6 +372,7 @@ export class MediaApi extends BaseAPI { * @param {string} mediaId Media ID to retrieve. * @param {*} [options] Override http request option. * @throws {RequiredError} + * @memberof MediaApi */ public deleteMedia(accountId: string, mediaId: string, options?: RawAxiosRequestConfig) { return MediaApiFp(this.configuration).deleteMedia(accountId, mediaId, options).then((request) => request(this.axios, this.basePath)); @@ -362,6 +385,7 @@ export class MediaApi extends BaseAPI { * @param {string} mediaId Media ID to retrieve. * @param {*} [options] Override http request option. * @throws {RequiredError} + * @memberof MediaApi */ public getMedia(accountId: string, mediaId: string, options?: RawAxiosRequestConfig) { return MediaApiFp(this.configuration).getMedia(accountId, mediaId, options).then((request) => request(this.axios, this.basePath)); @@ -374,6 +398,7 @@ export class MediaApi extends BaseAPI { * @param {string} [continuationToken] Continuation token used to retrieve subsequent media. * @param {*} [options] Override http request option. * @throws {RequiredError} + * @memberof MediaApi */ public listMedia(accountId: string, continuationToken?: string, options?: RawAxiosRequestConfig) { return MediaApiFp(this.configuration).listMedia(accountId, continuationToken, options).then((request) => request(this.axios, this.basePath)); @@ -389,6 +414,7 @@ export class MediaApi extends BaseAPI { * @param {string} [cacheControl] General-header field is used to specify directives that MUST be obeyed by all caching mechanisms along the request/response chain. * @param {*} [options] Override http request option. * @throws {RequiredError} + * @memberof MediaApi */ public uploadMedia(accountId: string, mediaId: string, body: File, contentType?: string, cacheControl?: string, options?: RawAxiosRequestConfig) { return MediaApiFp(this.configuration).uploadMedia(accountId, mediaId, body, contentType, cacheControl, options).then((request) => request(this.axios, this.basePath)); diff --git a/api/messages-api.ts b/api/messages-api.ts index df5e412..744579a 100644 --- a/api/messages-api.ts +++ b/api/messages-api.ts @@ -41,6 +41,7 @@ import type { MessagingRequestError } from '../models'; import type { ProductTypeEnum } from '../models'; /** * MessagesApi - axios parameter creator + * @export */ export const MessagesApiAxiosParamCreator = function (configuration?: Configuration) { return { @@ -74,6 +75,10 @@ export const MessagesApiAxiosParamCreator = function (configuration?: Configurat // http basic authentication required setBasicAuthToObject(localVarRequestOptions, configuration) + // authentication OAuth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) + localVarHeaderParameter['Content-Type'] = 'application/json'; @@ -142,6 +147,10 @@ export const MessagesApiAxiosParamCreator = function (configuration?: Configurat // http basic authentication required setBasicAuthToObject(localVarRequestOptions, configuration) + // authentication OAuth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) + if (messageId !== undefined) { localVarQueryParameter['messageId'] = messageId; } @@ -266,6 +275,7 @@ export const MessagesApiAxiosParamCreator = function (configuration?: Configurat /** * MessagesApi - functional programming interface + * @export */ export const MessagesApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = MessagesApiAxiosParamCreator(configuration) @@ -329,6 +339,7 @@ export const MessagesApiFp = function(configuration?: Configuration) { /** * MessagesApi - factory interface + * @export */ export const MessagesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = MessagesApiFp(configuration) @@ -386,6 +397,9 @@ export const MessagesApiFactory = function (configuration?: Configuration, baseP /** * MessagesApi - object-oriented interface + * @export + * @class MessagesApi + * @extends {BaseAPI} */ export class MessagesApi extends BaseAPI { /** @@ -395,6 +409,7 @@ export class MessagesApi extends BaseAPI { * @param {MessageRequest} messageRequest * @param {*} [options] Override http request option. * @throws {RequiredError} + * @memberof MessagesApi */ public createMessage(accountId: string, messageRequest: MessageRequest, options?: RawAxiosRequestConfig) { return MessagesApiFp(this.configuration).createMessage(accountId, messageRequest, options).then((request) => request(this.axios, this.basePath)); @@ -433,6 +448,7 @@ export class MessagesApi extends BaseAPI { * @param {boolean} [limitTotalCount] When set to true, the response\'s totalCount field will have a maximum value of 10,000. When set to false, or excluded, this will give an accurate totalCount of all messages that match the provided filters. If you are experiencing latency, try using this parameter to limit your results. * @param {*} [options] Override http request option. * @throws {RequiredError} + * @memberof MessagesApi */ public listMessages(accountId: string, messageId?: string, sourceTn?: string, destinationTn?: string, messageStatus?: MessageStatusEnum, messageDirection?: ListMessageDirectionEnum, carrierName?: string, messageType?: MessageTypeEnum, errorCode?: number, fromDateTime?: string, toDateTime?: string, campaignId?: string, fromBwLatency?: number, bwQueued?: boolean, product?: ProductTypeEnum, location?: string, carrierQueued?: boolean, fromCarrierLatency?: number, callingNumberCountryA3?: string, calledNumberCountryA3?: string, fromSegmentCount?: number, toSegmentCount?: number, fromMessageSize?: number, toMessageSize?: number, sort?: string, pageToken?: string, limit?: number, limitTotalCount?: boolean, options?: RawAxiosRequestConfig) { return MessagesApiFp(this.configuration).listMessages(accountId, messageId, sourceTn, destinationTn, messageStatus, messageDirection, carrierName, messageType, errorCode, fromDateTime, toDateTime, campaignId, fromBwLatency, bwQueued, product, location, carrierQueued, fromCarrierLatency, callingNumberCountryA3, calledNumberCountryA3, fromSegmentCount, toSegmentCount, fromMessageSize, toMessageSize, sort, pageToken, limit, limitTotalCount, options).then((request) => request(this.axios, this.basePath)); diff --git a/api/mfaapi.ts b/api/mfaapi.ts index dafb8ec..0ec1d95 100644 --- a/api/mfaapi.ts +++ b/api/mfaapi.ts @@ -39,6 +39,7 @@ import type { VerifyCodeResponse } from '../models'; import type { VoiceCodeResponse } from '../models'; /** * MFAApi - axios parameter creator + * @export */ export const MFAApiAxiosParamCreator = function (configuration?: Configuration) { return { @@ -72,6 +73,10 @@ export const MFAApiAxiosParamCreator = function (configuration?: Configuration) // http basic authentication required setBasicAuthToObject(localVarRequestOptions, configuration) + // authentication OAuth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) + localVarHeaderParameter['Content-Type'] = 'application/json'; @@ -116,6 +121,10 @@ export const MFAApiAxiosParamCreator = function (configuration?: Configuration) // http basic authentication required setBasicAuthToObject(localVarRequestOptions, configuration) + // authentication OAuth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) + localVarHeaderParameter['Content-Type'] = 'application/json'; @@ -160,6 +169,10 @@ export const MFAApiAxiosParamCreator = function (configuration?: Configuration) // http basic authentication required setBasicAuthToObject(localVarRequestOptions, configuration) + // authentication OAuth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) + localVarHeaderParameter['Content-Type'] = 'application/json'; @@ -179,6 +192,7 @@ export const MFAApiAxiosParamCreator = function (configuration?: Configuration) /** * MFAApi - functional programming interface + * @export */ export const MFAApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = MFAApiAxiosParamCreator(configuration) @@ -230,6 +244,7 @@ export const MFAApiFp = function(configuration?: Configuration) { /** * MFAApi - factory interface + * @export */ export const MFAApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = MFAApiFp(configuration) @@ -272,6 +287,9 @@ export const MFAApiFactory = function (configuration?: Configuration, basePath?: /** * MFAApi - object-oriented interface + * @export + * @class MFAApi + * @extends {BaseAPI} */ export class MFAApi extends BaseAPI { /** @@ -281,6 +299,7 @@ export class MFAApi extends BaseAPI { * @param {CodeRequest} codeRequest MFA code request body. * @param {*} [options] Override http request option. * @throws {RequiredError} + * @memberof MFAApi */ public generateMessagingCode(accountId: string, codeRequest: CodeRequest, options?: RawAxiosRequestConfig) { return MFAApiFp(this.configuration).generateMessagingCode(accountId, codeRequest, options).then((request) => request(this.axios, this.basePath)); @@ -293,6 +312,7 @@ export class MFAApi extends BaseAPI { * @param {CodeRequest} codeRequest MFA code request body. * @param {*} [options] Override http request option. * @throws {RequiredError} + * @memberof MFAApi */ public generateVoiceCode(accountId: string, codeRequest: CodeRequest, options?: RawAxiosRequestConfig) { return MFAApiFp(this.configuration).generateVoiceCode(accountId, codeRequest, options).then((request) => request(this.axios, this.basePath)); @@ -305,6 +325,7 @@ export class MFAApi extends BaseAPI { * @param {VerifyCodeRequest} verifyCodeRequest MFA code verify request body. * @param {*} [options] Override http request option. * @throws {RequiredError} + * @memberof MFAApi */ public verifyCode(accountId: string, verifyCodeRequest: VerifyCodeRequest, options?: RawAxiosRequestConfig) { return MFAApiFp(this.configuration).verifyCode(accountId, verifyCodeRequest, options).then((request) => request(this.axios, this.basePath)); diff --git a/api/multi-channel-api.ts b/api/multi-channel-api.ts index ccfab14..5becfce 100644 --- a/api/multi-channel-api.ts +++ b/api/multi-channel-api.ts @@ -29,6 +29,7 @@ import type { MultiChannelError } from '../models'; import type { MultiChannelMessageRequest } from '../models'; /** * MultiChannelApi - axios parameter creator + * @export */ export const MultiChannelApiAxiosParamCreator = function (configuration?: Configuration) { return { @@ -62,6 +63,10 @@ export const MultiChannelApiAxiosParamCreator = function (configuration?: Config // http basic authentication required setBasicAuthToObject(localVarRequestOptions, configuration) + // authentication OAuth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) + localVarHeaderParameter['Content-Type'] = 'application/json'; @@ -81,6 +86,7 @@ export const MultiChannelApiAxiosParamCreator = function (configuration?: Config /** * MultiChannelApi - functional programming interface + * @export */ export const MultiChannelApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = MultiChannelApiAxiosParamCreator(configuration) @@ -104,6 +110,7 @@ export const MultiChannelApiFp = function(configuration?: Configuration) { /** * MultiChannelApi - factory interface + * @export */ export const MultiChannelApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = MultiChannelApiFp(configuration) @@ -124,6 +131,9 @@ export const MultiChannelApiFactory = function (configuration?: Configuration, b /** * MultiChannelApi - object-oriented interface + * @export + * @class MultiChannelApi + * @extends {BaseAPI} */ export class MultiChannelApi extends BaseAPI { /** @@ -133,6 +143,7 @@ export class MultiChannelApi extends BaseAPI { * @param {MultiChannelMessageRequest} multiChannelMessageRequest * @param {*} [options] Override http request option. * @throws {RequiredError} + * @memberof MultiChannelApi */ public createMultiChannelMessage(accountId: string, multiChannelMessageRequest: MultiChannelMessageRequest, options?: RawAxiosRequestConfig) { return MultiChannelApiFp(this.configuration).createMultiChannelMessage(accountId, multiChannelMessageRequest, options).then((request) => request(this.axios, this.basePath)); diff --git a/api/phone-number-lookup-api.ts b/api/phone-number-lookup-api.ts index 8a16272..4baa63b 100644 --- a/api/phone-number-lookup-api.ts +++ b/api/phone-number-lookup-api.ts @@ -35,6 +35,7 @@ import type { LookupErrorResponse } from '../models'; import type { SyncLookupRequest } from '../models'; /** * PhoneNumberLookupApi - axios parameter creator + * @export */ export const PhoneNumberLookupApiAxiosParamCreator = function (configuration?: Configuration) { return { @@ -68,6 +69,10 @@ export const PhoneNumberLookupApiAxiosParamCreator = function (configuration?: C // http basic authentication required setBasicAuthToObject(localVarRequestOptions, configuration) + // authentication OAuth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) + localVarHeaderParameter['Content-Type'] = 'application/json'; @@ -112,6 +117,10 @@ export const PhoneNumberLookupApiAxiosParamCreator = function (configuration?: C // http basic authentication required setBasicAuthToObject(localVarRequestOptions, configuration) + // authentication OAuth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) + localVarHeaderParameter['Content-Type'] = 'application/json'; @@ -157,6 +166,10 @@ export const PhoneNumberLookupApiAxiosParamCreator = function (configuration?: C // http basic authentication required setBasicAuthToObject(localVarRequestOptions, configuration) + // authentication OAuth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -173,6 +186,7 @@ export const PhoneNumberLookupApiAxiosParamCreator = function (configuration?: C /** * PhoneNumberLookupApi - functional programming interface + * @export */ export const PhoneNumberLookupApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = PhoneNumberLookupApiAxiosParamCreator(configuration) @@ -224,6 +238,7 @@ export const PhoneNumberLookupApiFp = function(configuration?: Configuration) { /** * PhoneNumberLookupApi - factory interface + * @export */ export const PhoneNumberLookupApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = PhoneNumberLookupApiFp(configuration) @@ -266,6 +281,9 @@ export const PhoneNumberLookupApiFactory = function (configuration?: Configurati /** * PhoneNumberLookupApi - object-oriented interface + * @export + * @class PhoneNumberLookupApi + * @extends {BaseAPI} */ export class PhoneNumberLookupApi extends BaseAPI { /** @@ -275,6 +293,7 @@ export class PhoneNumberLookupApi extends BaseAPI { * @param {AsyncLookupRequest} asyncLookupRequest Asynchronous bulk phone number lookup request. * @param {*} [options] Override http request option. * @throws {RequiredError} + * @memberof PhoneNumberLookupApi */ public createAsyncBulkLookup(accountId: string, asyncLookupRequest: AsyncLookupRequest, options?: RawAxiosRequestConfig) { return PhoneNumberLookupApiFp(this.configuration).createAsyncBulkLookup(accountId, asyncLookupRequest, options).then((request) => request(this.axios, this.basePath)); @@ -287,6 +306,7 @@ export class PhoneNumberLookupApi extends BaseAPI { * @param {SyncLookupRequest} syncLookupRequest Synchronous phone number lookup request. * @param {*} [options] Override http request option. * @throws {RequiredError} + * @memberof PhoneNumberLookupApi */ public createSyncLookup(accountId: string, syncLookupRequest: SyncLookupRequest, options?: RawAxiosRequestConfig) { return PhoneNumberLookupApiFp(this.configuration).createSyncLookup(accountId, syncLookupRequest, options).then((request) => request(this.axios, this.basePath)); @@ -299,6 +319,7 @@ export class PhoneNumberLookupApi extends BaseAPI { * @param {string} requestId * @param {*} [options] Override http request option. * @throws {RequiredError} + * @memberof PhoneNumberLookupApi */ public getAsyncBulkLookup(accountId: string, requestId: string, options?: RawAxiosRequestConfig) { return PhoneNumberLookupApiFp(this.configuration).getAsyncBulkLookup(accountId, requestId, options).then((request) => request(this.axios, this.basePath)); diff --git a/api/recordings-api.ts b/api/recordings-api.ts index 1fcec47..a32ba01 100644 --- a/api/recordings-api.ts +++ b/api/recordings-api.ts @@ -33,6 +33,7 @@ import type { UpdateCallRecording } from '../models'; import type { VoiceApiError } from '../models'; /** * RecordingsApi - axios parameter creator + * @export */ export const RecordingsApiAxiosParamCreator = function (configuration?: Configuration) { return { @@ -71,6 +72,10 @@ export const RecordingsApiAxiosParamCreator = function (configuration?: Configur // http basic authentication required setBasicAuthToObject(localVarRequestOptions, configuration) + // authentication OAuth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -117,6 +122,10 @@ export const RecordingsApiAxiosParamCreator = function (configuration?: Configur // http basic authentication required setBasicAuthToObject(localVarRequestOptions, configuration) + // authentication OAuth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -163,6 +172,10 @@ export const RecordingsApiAxiosParamCreator = function (configuration?: Configur // http basic authentication required setBasicAuthToObject(localVarRequestOptions, configuration) + // authentication OAuth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -209,6 +222,10 @@ export const RecordingsApiAxiosParamCreator = function (configuration?: Configur // http basic authentication required setBasicAuthToObject(localVarRequestOptions, configuration) + // authentication OAuth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -255,6 +272,10 @@ export const RecordingsApiAxiosParamCreator = function (configuration?: Configur // http basic authentication required setBasicAuthToObject(localVarRequestOptions, configuration) + // authentication OAuth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -301,6 +322,10 @@ export const RecordingsApiAxiosParamCreator = function (configuration?: Configur // http basic authentication required setBasicAuthToObject(localVarRequestOptions, configuration) + // authentication OAuth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -343,6 +368,10 @@ export const RecordingsApiAxiosParamCreator = function (configuration?: Configur // http basic authentication required setBasicAuthToObject(localVarRequestOptions, configuration) + // authentication OAuth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) + if (to !== undefined) { localVarQueryParameter['to'] = to; } @@ -401,6 +430,10 @@ export const RecordingsApiAxiosParamCreator = function (configuration?: Configur // http basic authentication required setBasicAuthToObject(localVarRequestOptions, configuration) + // authentication OAuth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -450,6 +483,10 @@ export const RecordingsApiAxiosParamCreator = function (configuration?: Configur // http basic authentication required setBasicAuthToObject(localVarRequestOptions, configuration) + // authentication OAuth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) + localVarHeaderParameter['Content-Type'] = 'application/json'; @@ -498,6 +535,10 @@ export const RecordingsApiAxiosParamCreator = function (configuration?: Configur // http basic authentication required setBasicAuthToObject(localVarRequestOptions, configuration) + // authentication OAuth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) + localVarHeaderParameter['Content-Type'] = 'application/json'; @@ -517,6 +558,7 @@ export const RecordingsApiAxiosParamCreator = function (configuration?: Configur /** * RecordingsApi - functional programming interface + * @export */ export const RecordingsApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = RecordingsApiAxiosParamCreator(configuration) @@ -678,6 +720,7 @@ export const RecordingsApiFp = function(configuration?: Configuration) { /** * RecordingsApi - factory interface + * @export */ export const RecordingsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = RecordingsApiFp(configuration) @@ -809,6 +852,9 @@ export const RecordingsApiFactory = function (configuration?: Configuration, bas /** * RecordingsApi - object-oriented interface + * @export + * @class RecordingsApi + * @extends {BaseAPI} */ export class RecordingsApi extends BaseAPI { /** @@ -819,6 +865,7 @@ export class RecordingsApi extends BaseAPI { * @param {string} recordingId Programmable Voice API Recording ID. * @param {*} [options] Override http request option. * @throws {RequiredError} + * @memberof RecordingsApi */ public deleteRecording(accountId: string, callId: string, recordingId: string, options?: RawAxiosRequestConfig) { return RecordingsApiFp(this.configuration).deleteRecording(accountId, callId, recordingId, options).then((request) => request(this.axios, this.basePath)); @@ -832,6 +879,7 @@ export class RecordingsApi extends BaseAPI { * @param {string} recordingId Programmable Voice API Recording ID. * @param {*} [options] Override http request option. * @throws {RequiredError} + * @memberof RecordingsApi */ public deleteRecordingMedia(accountId: string, callId: string, recordingId: string, options?: RawAxiosRequestConfig) { return RecordingsApiFp(this.configuration).deleteRecordingMedia(accountId, callId, recordingId, options).then((request) => request(this.axios, this.basePath)); @@ -845,6 +893,7 @@ export class RecordingsApi extends BaseAPI { * @param {string} recordingId Programmable Voice API Recording ID. * @param {*} [options] Override http request option. * @throws {RequiredError} + * @memberof RecordingsApi */ public deleteRecordingTranscription(accountId: string, callId: string, recordingId: string, options?: RawAxiosRequestConfig) { return RecordingsApiFp(this.configuration).deleteRecordingTranscription(accountId, callId, recordingId, options).then((request) => request(this.axios, this.basePath)); @@ -858,6 +907,7 @@ export class RecordingsApi extends BaseAPI { * @param {string} recordingId Programmable Voice API Recording ID. * @param {*} [options] Override http request option. * @throws {RequiredError} + * @memberof RecordingsApi */ public downloadCallRecording(accountId: string, callId: string, recordingId: string, options?: RawAxiosRequestConfig) { return RecordingsApiFp(this.configuration).downloadCallRecording(accountId, callId, recordingId, options).then((request) => request(this.axios, this.basePath)); @@ -871,6 +921,7 @@ export class RecordingsApi extends BaseAPI { * @param {string} recordingId Programmable Voice API Recording ID. * @param {*} [options] Override http request option. * @throws {RequiredError} + * @memberof RecordingsApi */ public getCallRecording(accountId: string, callId: string, recordingId: string, options?: RawAxiosRequestConfig) { return RecordingsApiFp(this.configuration).getCallRecording(accountId, callId, recordingId, options).then((request) => request(this.axios, this.basePath)); @@ -884,6 +935,7 @@ export class RecordingsApi extends BaseAPI { * @param {string} recordingId Programmable Voice API Recording ID. * @param {*} [options] Override http request option. * @throws {RequiredError} + * @memberof RecordingsApi */ public getRecordingTranscription(accountId: string, callId: string, recordingId: string, options?: RawAxiosRequestConfig) { return RecordingsApiFp(this.configuration).getRecordingTranscription(accountId, callId, recordingId, options).then((request) => request(this.axios, this.basePath)); @@ -899,6 +951,7 @@ export class RecordingsApi extends BaseAPI { * @param {string} [maxStartTime] Filter results to recordings which have a `startTime` before `maxStartTime` (in ISO8601 format). * @param {*} [options] Override http request option. * @throws {RequiredError} + * @memberof RecordingsApi */ public listAccountCallRecordings(accountId: string, to?: string, from?: string, minStartTime?: string, maxStartTime?: string, options?: RawAxiosRequestConfig) { return RecordingsApiFp(this.configuration).listAccountCallRecordings(accountId, to, from, minStartTime, maxStartTime, options).then((request) => request(this.axios, this.basePath)); @@ -911,6 +964,7 @@ export class RecordingsApi extends BaseAPI { * @param {string} callId Programmable Voice API Call ID. * @param {*} [options] Override http request option. * @throws {RequiredError} + * @memberof RecordingsApi */ public listCallRecordings(accountId: string, callId: string, options?: RawAxiosRequestConfig) { return RecordingsApiFp(this.configuration).listCallRecordings(accountId, callId, options).then((request) => request(this.axios, this.basePath)); @@ -925,6 +979,7 @@ export class RecordingsApi extends BaseAPI { * @param {TranscribeRecording} transcribeRecording * @param {*} [options] Override http request option. * @throws {RequiredError} + * @memberof RecordingsApi */ public transcribeCallRecording(accountId: string, callId: string, recordingId: string, transcribeRecording: TranscribeRecording, options?: RawAxiosRequestConfig) { return RecordingsApiFp(this.configuration).transcribeCallRecording(accountId, callId, recordingId, transcribeRecording, options).then((request) => request(this.axios, this.basePath)); @@ -938,6 +993,7 @@ export class RecordingsApi extends BaseAPI { * @param {UpdateCallRecording} updateCallRecording * @param {*} [options] Override http request option. * @throws {RequiredError} + * @memberof RecordingsApi */ public updateCallRecordingState(accountId: string, callId: string, updateCallRecording: UpdateCallRecording, options?: RawAxiosRequestConfig) { return RecordingsApiFp(this.configuration).updateCallRecordingState(accountId, callId, updateCallRecording, options).then((request) => request(this.axios, this.basePath)); diff --git a/api/statistics-api.ts b/api/statistics-api.ts index af5250c..72d6761 100644 --- a/api/statistics-api.ts +++ b/api/statistics-api.ts @@ -27,6 +27,7 @@ import type { AccountStatistics } from '../models'; import type { VoiceApiError } from '../models'; /** * StatisticsApi - axios parameter creator + * @export */ export const StatisticsApiAxiosParamCreator = function (configuration?: Configuration) { return { @@ -57,6 +58,10 @@ export const StatisticsApiAxiosParamCreator = function (configuration?: Configur // http basic authentication required setBasicAuthToObject(localVarRequestOptions, configuration) + // authentication OAuth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -73,6 +78,7 @@ export const StatisticsApiAxiosParamCreator = function (configuration?: Configur /** * StatisticsApi - functional programming interface + * @export */ export const StatisticsApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = StatisticsApiAxiosParamCreator(configuration) @@ -95,6 +101,7 @@ export const StatisticsApiFp = function(configuration?: Configuration) { /** * StatisticsApi - factory interface + * @export */ export const StatisticsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = StatisticsApiFp(configuration) @@ -114,6 +121,9 @@ export const StatisticsApiFactory = function (configuration?: Configuration, bas /** * StatisticsApi - object-oriented interface + * @export + * @class StatisticsApi + * @extends {BaseAPI} */ export class StatisticsApi extends BaseAPI { /** @@ -122,6 +132,7 @@ export class StatisticsApi extends BaseAPI { * @param {string} accountId Your Bandwidth Account ID. * @param {*} [options] Override http request option. * @throws {RequiredError} + * @memberof StatisticsApi */ public getStatistics(accountId: string, options?: RawAxiosRequestConfig) { return StatisticsApiFp(this.configuration).getStatistics(accountId, options).then((request) => request(this.axios, this.basePath)); diff --git a/api/toll-free-verification-api.ts b/api/toll-free-verification-api.ts index e681a87..ea81a42 100644 --- a/api/toll-free-verification-api.ts +++ b/api/toll-free-verification-api.ts @@ -37,6 +37,7 @@ import type { WebhookSubscriptionRequestSchema } from '../models'; import type { WebhookSubscriptionsListBody } from '../models'; /** * TollFreeVerificationApi - axios parameter creator + * @export */ export const TollFreeVerificationApiAxiosParamCreator = function (configuration?: Configuration) { return { @@ -70,6 +71,10 @@ export const TollFreeVerificationApiAxiosParamCreator = function (configuration? // http basic authentication required setBasicAuthToObject(localVarRequestOptions, configuration) + // authentication OAuth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) + localVarHeaderParameter['Content-Type'] = 'application/json'; @@ -115,6 +120,10 @@ export const TollFreeVerificationApiAxiosParamCreator = function (configuration? // http basic authentication required setBasicAuthToObject(localVarRequestOptions, configuration) + // authentication OAuth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -157,6 +166,10 @@ export const TollFreeVerificationApiAxiosParamCreator = function (configuration? // http basic authentication required setBasicAuthToObject(localVarRequestOptions, configuration) + // authentication OAuth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -199,6 +212,10 @@ export const TollFreeVerificationApiAxiosParamCreator = function (configuration? // http basic authentication required setBasicAuthToObject(localVarRequestOptions, configuration) + // authentication OAuth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -233,6 +250,10 @@ export const TollFreeVerificationApiAxiosParamCreator = function (configuration? // http basic authentication required setBasicAuthToObject(localVarRequestOptions, configuration) + // authentication OAuth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -271,6 +292,10 @@ export const TollFreeVerificationApiAxiosParamCreator = function (configuration? // http basic authentication required setBasicAuthToObject(localVarRequestOptions, configuration) + // authentication OAuth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -312,6 +337,10 @@ export const TollFreeVerificationApiAxiosParamCreator = function (configuration? // http basic authentication required setBasicAuthToObject(localVarRequestOptions, configuration) + // authentication OAuth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) + localVarHeaderParameter['Content-Type'] = 'application/json'; @@ -360,6 +389,10 @@ export const TollFreeVerificationApiAxiosParamCreator = function (configuration? // http basic authentication required setBasicAuthToObject(localVarRequestOptions, configuration) + // authentication OAuth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) + localVarHeaderParameter['Content-Type'] = 'application/json'; @@ -408,6 +441,10 @@ export const TollFreeVerificationApiAxiosParamCreator = function (configuration? // http basic authentication required setBasicAuthToObject(localVarRequestOptions, configuration) + // authentication OAuth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) + localVarHeaderParameter['Content-Type'] = 'application/json'; @@ -427,6 +464,7 @@ export const TollFreeVerificationApiAxiosParamCreator = function (configuration? /** * TollFreeVerificationApi - functional programming interface + * @export */ export const TollFreeVerificationApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = TollFreeVerificationApiAxiosParamCreator(configuration) @@ -561,6 +599,7 @@ export const TollFreeVerificationApiFp = function(configuration?: Configuration) /** * TollFreeVerificationApi - factory interface + * @export */ export const TollFreeVerificationApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = TollFreeVerificationApiFp(configuration) @@ -668,6 +707,9 @@ export const TollFreeVerificationApiFactory = function (configuration?: Configur /** * TollFreeVerificationApi - object-oriented interface + * @export + * @class TollFreeVerificationApi + * @extends {BaseAPI} */ export class TollFreeVerificationApi extends BaseAPI { /** @@ -677,6 +719,7 @@ export class TollFreeVerificationApi extends BaseAPI { * @param {WebhookSubscriptionRequestSchema} webhookSubscriptionRequestSchema Information about a webhook that Bandwidth should send upon the completion of event customer is trying to subscribe to. * @param {*} [options] Override http request option. * @throws {RequiredError} + * @memberof TollFreeVerificationApi */ public createWebhookSubscription(accountId: string, webhookSubscriptionRequestSchema: WebhookSubscriptionRequestSchema, options?: RawAxiosRequestConfig) { return TollFreeVerificationApiFp(this.configuration).createWebhookSubscription(accountId, webhookSubscriptionRequestSchema, options).then((request) => request(this.axios, this.basePath)); @@ -689,6 +732,7 @@ export class TollFreeVerificationApi extends BaseAPI { * @param {string} phoneNumber Valid Toll-Free telephone number in E.164 format. * @param {*} [options] Override http request option. * @throws {RequiredError} + * @memberof TollFreeVerificationApi */ public deleteVerificationRequest(accountId: string, phoneNumber: string, options?: RawAxiosRequestConfig) { return TollFreeVerificationApiFp(this.configuration).deleteVerificationRequest(accountId, phoneNumber, options).then((request) => request(this.axios, this.basePath)); @@ -701,6 +745,7 @@ export class TollFreeVerificationApi extends BaseAPI { * @param {string} id Webhook subscription ID * @param {*} [options] Override http request option. * @throws {RequiredError} + * @memberof TollFreeVerificationApi */ public deleteWebhookSubscription(accountId: string, id: string, options?: RawAxiosRequestConfig) { return TollFreeVerificationApiFp(this.configuration).deleteWebhookSubscription(accountId, id, options).then((request) => request(this.axios, this.basePath)); @@ -713,6 +758,7 @@ export class TollFreeVerificationApi extends BaseAPI { * @param {string} phoneNumber Valid Toll-Free telephone number in E.164 format. * @param {*} [options] Override http request option. * @throws {RequiredError} + * @memberof TollFreeVerificationApi */ public getTollFreeVerificationStatus(accountId: string, phoneNumber: string, options?: RawAxiosRequestConfig) { return TollFreeVerificationApiFp(this.configuration).getTollFreeVerificationStatus(accountId, phoneNumber, options).then((request) => request(this.axios, this.basePath)); @@ -723,6 +769,7 @@ export class TollFreeVerificationApi extends BaseAPI { * @summary List Toll-Free Use Cases * @param {*} [options] Override http request option. * @throws {RequiredError} + * @memberof TollFreeVerificationApi */ public listTollFreeUseCases(options?: RawAxiosRequestConfig) { return TollFreeVerificationApiFp(this.configuration).listTollFreeUseCases(options).then((request) => request(this.axios, this.basePath)); @@ -734,6 +781,7 @@ export class TollFreeVerificationApi extends BaseAPI { * @param {string} accountId Your Bandwidth Account ID. * @param {*} [options] Override http request option. * @throws {RequiredError} + * @memberof TollFreeVerificationApi */ public listWebhookSubscriptions(accountId: string, options?: RawAxiosRequestConfig) { return TollFreeVerificationApiFp(this.configuration).listWebhookSubscriptions(accountId, options).then((request) => request(this.axios, this.basePath)); @@ -746,6 +794,7 @@ export class TollFreeVerificationApi extends BaseAPI { * @param {VerificationRequest} verificationRequest Request for verification of a toll-free phone number. * @param {*} [options] Override http request option. * @throws {RequiredError} + * @memberof TollFreeVerificationApi */ public requestTollFreeVerification(accountId: string, verificationRequest: VerificationRequest, options?: RawAxiosRequestConfig) { return TollFreeVerificationApiFp(this.configuration).requestTollFreeVerification(accountId, verificationRequest, options).then((request) => request(this.axios, this.basePath)); @@ -759,6 +808,7 @@ export class TollFreeVerificationApi extends BaseAPI { * @param {TfvSubmissionWrapper} tfvSubmissionWrapper Update a request for verification of a toll-free phone number. * @param {*} [options] Override http request option. * @throws {RequiredError} + * @memberof TollFreeVerificationApi */ public updateTollFreeVerificationRequest(accountId: string, phoneNumber: string, tfvSubmissionWrapper: TfvSubmissionWrapper, options?: RawAxiosRequestConfig) { return TollFreeVerificationApiFp(this.configuration).updateTollFreeVerificationRequest(accountId, phoneNumber, tfvSubmissionWrapper, options).then((request) => request(this.axios, this.basePath)); @@ -772,6 +822,7 @@ export class TollFreeVerificationApi extends BaseAPI { * @param {WebhookSubscriptionRequestSchema} webhookSubscriptionRequestSchema Information about a webhook that Bandwidth should send upon the completion of event customer is trying to subscribe to. * @param {*} [options] Override http request option. * @throws {RequiredError} + * @memberof TollFreeVerificationApi */ public updateWebhookSubscription(accountId: string, id: string, webhookSubscriptionRequestSchema: WebhookSubscriptionRequestSchema, options?: RawAxiosRequestConfig) { return TollFreeVerificationApiFp(this.configuration).updateWebhookSubscription(accountId, id, webhookSubscriptionRequestSchema, options).then((request) => request(this.axios, this.basePath)); diff --git a/api/transcriptions-api.ts b/api/transcriptions-api.ts index adf0251..6884135 100644 --- a/api/transcriptions-api.ts +++ b/api/transcriptions-api.ts @@ -29,6 +29,7 @@ import type { CallTranscriptionResponse } from '../models'; import type { VoiceApiError } from '../models'; /** * TranscriptionsApi - axios parameter creator + * @export */ export const TranscriptionsApiAxiosParamCreator = function (configuration?: Configuration) { return { @@ -67,6 +68,10 @@ export const TranscriptionsApiAxiosParamCreator = function (configuration?: Conf // http basic authentication required setBasicAuthToObject(localVarRequestOptions, configuration) + // authentication OAuth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -113,6 +118,10 @@ export const TranscriptionsApiAxiosParamCreator = function (configuration?: Conf // http basic authentication required setBasicAuthToObject(localVarRequestOptions, configuration) + // authentication OAuth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -155,6 +164,10 @@ export const TranscriptionsApiAxiosParamCreator = function (configuration?: Conf // http basic authentication required setBasicAuthToObject(localVarRequestOptions, configuration) + // authentication OAuth2 required + // oauth required + await setOAuthToObject(localVarHeaderParameter, "OAuth2", [], configuration) + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -171,6 +184,7 @@ export const TranscriptionsApiAxiosParamCreator = function (configuration?: Conf /** * TranscriptionsApi - functional programming interface + * @export */ export const TranscriptionsApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = TranscriptionsApiAxiosParamCreator(configuration) @@ -224,6 +238,7 @@ export const TranscriptionsApiFp = function(configuration?: Configuration) { /** * TranscriptionsApi - factory interface + * @export */ export const TranscriptionsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = TranscriptionsApiFp(configuration) @@ -268,6 +283,9 @@ export const TranscriptionsApiFactory = function (configuration?: Configuration, /** * TranscriptionsApi - object-oriented interface + * @export + * @class TranscriptionsApi + * @extends {BaseAPI} */ export class TranscriptionsApi extends BaseAPI { /** @@ -278,6 +296,7 @@ export class TranscriptionsApi extends BaseAPI { * @param {string} transcriptionId Programmable Voice API Transcription ID. * @param {*} [options] Override http request option. * @throws {RequiredError} + * @memberof TranscriptionsApi */ public deleteRealTimeTranscription(accountId: string, callId: string, transcriptionId: string, options?: RawAxiosRequestConfig) { return TranscriptionsApiFp(this.configuration).deleteRealTimeTranscription(accountId, callId, transcriptionId, options).then((request) => request(this.axios, this.basePath)); @@ -291,6 +310,7 @@ export class TranscriptionsApi extends BaseAPI { * @param {string} transcriptionId Programmable Voice API Transcription ID. * @param {*} [options] Override http request option. * @throws {RequiredError} + * @memberof TranscriptionsApi */ public getRealTimeTranscription(accountId: string, callId: string, transcriptionId: string, options?: RawAxiosRequestConfig) { return TranscriptionsApiFp(this.configuration).getRealTimeTranscription(accountId, callId, transcriptionId, options).then((request) => request(this.axios, this.basePath)); @@ -303,6 +323,7 @@ export class TranscriptionsApi extends BaseAPI { * @param {string} callId Programmable Voice API Call ID. * @param {*} [options] Override http request option. * @throws {RequiredError} + * @memberof TranscriptionsApi */ public listRealTimeTranscriptions(accountId: string, callId: string, options?: RawAxiosRequestConfig) { return TranscriptionsApiFp(this.configuration).listRealTimeTranscriptions(accountId, callId, options).then((request) => request(this.axios, this.basePath)); diff --git a/bandwidth.yml b/bandwidth.yml index 6ee15ae..9ab77fd 100644 --- a/bandwidth.yml +++ b/bandwidth.yml @@ -9,6 +9,7 @@ info: version: 1.0.0 security: - Basic: [] + - OAuth2: [] tags: - name: Messages - name: Media @@ -8427,6 +8428,12 @@ components: - Example: `Authorization: Basic ZGVtbZpwQDU1dzByZA==` + OAuth2: + type: oauth2 + flows: + clientCredentials: + tokenUrl: https://api.bandwidth.com/api/v1/oauth2/token + scopes: {} callbacks: inboundCallback: '{inboundCallbackUrl}': diff --git a/base.ts b/base.ts index c8864f5..afc00fa 100644 --- a/base.ts +++ b/base.ts @@ -21,6 +21,10 @@ import globalAxios from 'axios'; export const BASE_PATH = "http://localhost".replace(/\/+$/, ""); +/** + * + * @export + */ export const COLLECTION_FORMATS = { csv: ",", ssv: " ", @@ -28,11 +32,21 @@ export const COLLECTION_FORMATS = { pipes: "|", }; +/** + * + * @export + * @interface RequestArgs + */ export interface RequestArgs { url: string; options: RawAxiosRequestConfig; } +/** + * + * @export + * @class BaseAPI + */ export class BaseAPI { protected configuration: Configuration | undefined; @@ -44,6 +58,12 @@ export class BaseAPI { } }; +/** + * + * @export + * @class RequiredError + * @extends {Error} + */ export class RequiredError extends Error { constructor(public field: string, msg?: string) { super(msg); @@ -58,6 +78,10 @@ interface ServerMap { }[]; } +/** + * + * @export + */ export const operationServerMap: ServerMap = { "CallsApi.createCall": [ { diff --git a/common.ts b/common.ts index 1024bac..6b6e932 100644 --- a/common.ts +++ b/common.ts @@ -12,6 +12,7 @@ * Do not edit the class manually. */ + import type { Configuration } from "./configuration"; import type { RequestArgs } from "./base"; import type { AxiosInstance, AxiosResponse } from 'axios'; diff --git a/configuration.ts b/configuration.ts index 25df277..382f680 100644 --- a/configuration.ts +++ b/configuration.ts @@ -11,6 +11,7 @@ * Do not edit the class manually. */ + interface AWSv4Configuration { options?: { region?: string diff --git a/docs/CallsApi.md b/docs/CallsApi.md index 2763650..1c859b0 100644 --- a/docs/CallsApi.md +++ b/docs/CallsApi.md @@ -50,7 +50,7 @@ const { status, data } = await apiInstance.createCall( ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -112,7 +112,7 @@ const { status, data } = await apiInstance.getCallState( ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -192,7 +192,7 @@ const { status, data } = await apiInstance.listCalls( ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -258,7 +258,7 @@ void (empty response body) ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -324,7 +324,7 @@ void (empty response body) ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers diff --git a/docs/ConferencesApi.md b/docs/ConferencesApi.md index 0e651cc..9a16fda 100644 --- a/docs/ConferencesApi.md +++ b/docs/ConferencesApi.md @@ -56,7 +56,7 @@ const { status, data } = await apiInstance.downloadConferenceRecording( ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -118,7 +118,7 @@ const { status, data } = await apiInstance.getConference( ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -183,7 +183,7 @@ const { status, data } = await apiInstance.getConferenceMember( ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -248,7 +248,7 @@ const { status, data } = await apiInstance.getConferenceRecording( ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -310,7 +310,7 @@ const { status, data } = await apiInstance.listConferenceRecordings( ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -384,7 +384,7 @@ const { status, data } = await apiInstance.listConferences( ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -450,7 +450,7 @@ void (empty response body) ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -515,7 +515,7 @@ void (empty response body) ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -584,7 +584,7 @@ void (empty response body) ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers diff --git a/docs/MFAApi.md b/docs/MFAApi.md index 4b58380..97e0004 100644 --- a/docs/MFAApi.md +++ b/docs/MFAApi.md @@ -48,7 +48,7 @@ const { status, data } = await apiInstance.generateMessagingCode( ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -107,7 +107,7 @@ const { status, data } = await apiInstance.generateVoiceCode( ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -166,7 +166,7 @@ const { status, data } = await apiInstance.verifyCode( ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers diff --git a/docs/MediaApi.md b/docs/MediaApi.md index c4e26c7..49f8a5b 100644 --- a/docs/MediaApi.md +++ b/docs/MediaApi.md @@ -48,7 +48,7 @@ void (empty response body) ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -110,7 +110,7 @@ const { status, data } = await apiInstance.getMedia( ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -172,7 +172,7 @@ const { status, data } = await apiInstance.listMedia( ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -243,7 +243,7 @@ void (empty response body) ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers diff --git a/docs/MessagesApi.md b/docs/MessagesApi.md index 517a6c7..0a01251 100644 --- a/docs/MessagesApi.md +++ b/docs/MessagesApi.md @@ -47,7 +47,7 @@ const { status, data } = await apiInstance.createMessage( ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -188,7 +188,7 @@ const { status, data } = await apiInstance.listMessages( ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers diff --git a/docs/MultiChannelApi.md b/docs/MultiChannelApi.md index 8c9fce9..38ccffd 100644 --- a/docs/MultiChannelApi.md +++ b/docs/MultiChannelApi.md @@ -46,7 +46,7 @@ const { status, data } = await apiInstance.createMultiChannelMessage( ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers diff --git a/docs/PhoneNumberLookupApi.md b/docs/PhoneNumberLookupApi.md index e695efe..66cfbed 100644 --- a/docs/PhoneNumberLookupApi.md +++ b/docs/PhoneNumberLookupApi.md @@ -48,7 +48,7 @@ const { status, data } = await apiInstance.createAsyncBulkLookup( ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -104,7 +104,7 @@ const { status, data } = await apiInstance.createSyncLookup( ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -159,7 +159,7 @@ const { status, data } = await apiInstance.getAsyncBulkLookup( ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers diff --git a/docs/RecordingsApi.md b/docs/RecordingsApi.md index 6a741a5..4a844ac 100644 --- a/docs/RecordingsApi.md +++ b/docs/RecordingsApi.md @@ -57,7 +57,7 @@ void (empty response body) ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -122,7 +122,7 @@ void (empty response body) ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -187,7 +187,7 @@ void (empty response body) ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -252,7 +252,7 @@ const { status, data } = await apiInstance.downloadCallRecording( ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -317,7 +317,7 @@ const { status, data } = await apiInstance.getCallRecording( ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -382,7 +382,7 @@ const { status, data } = await apiInstance.getRecordingTranscription( ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -453,7 +453,7 @@ const { status, data } = await apiInstance.listAccountCallRecordings( ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -515,7 +515,7 @@ const { status, data } = await apiInstance.listCallRecordings( ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -584,7 +584,7 @@ void (empty response body) ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -650,7 +650,7 @@ void (empty response body) ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers diff --git a/docs/StatisticsApi.md b/docs/StatisticsApi.md index fc9a069..52cb384 100644 --- a/docs/StatisticsApi.md +++ b/docs/StatisticsApi.md @@ -42,7 +42,7 @@ const { status, data } = await apiInstance.getStatistics( ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers diff --git a/docs/TollFreeVerificationApi.md b/docs/TollFreeVerificationApi.md index c4f0e6a..573946b 100644 --- a/docs/TollFreeVerificationApi.md +++ b/docs/TollFreeVerificationApi.md @@ -54,7 +54,7 @@ const { status, data } = await apiInstance.createWebhookSubscription( ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -116,7 +116,7 @@ void (empty response body) ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -178,7 +178,7 @@ void (empty response body) ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -240,7 +240,7 @@ const { status, data } = await apiInstance.getTollFreeVerificationStatus( ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -292,7 +292,7 @@ This endpoint does not have any parameters. ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -351,7 +351,7 @@ const { status, data } = await apiInstance.listWebhookSubscriptions( ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -413,7 +413,7 @@ void (empty response body) ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -478,7 +478,7 @@ void (empty response body) ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -543,7 +543,7 @@ const { status, data } = await apiInstance.updateWebhookSubscription( ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers diff --git a/docs/TranscriptionsApi.md b/docs/TranscriptionsApi.md index fef6abf..2f012e5 100644 --- a/docs/TranscriptionsApi.md +++ b/docs/TranscriptionsApi.md @@ -50,7 +50,7 @@ void (empty response body) ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -115,7 +115,7 @@ const { status, data } = await apiInstance.getRealTimeTranscription( ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers @@ -177,7 +177,7 @@ const { status, data } = await apiInstance.listRealTimeTranscriptions( ### Authorization -[Basic](../README.md#Basic) +[Basic](../README.md#Basic), [OAuth2](../README.md#OAuth2) ### HTTP request headers diff --git a/models/account-statistics.ts b/models/account-statistics.ts index 49f8116..cdcb1be 100644 --- a/models/account-statistics.ts +++ b/models/account-statistics.ts @@ -14,13 +14,22 @@ +/** + * + * @export + * @interface AccountStatistics + */ export interface AccountStatistics { /** * The number of calls currently enqueued. + * @type {number} + * @memberof AccountStatistics */ 'currentCallQueueSize'?: number; /** * The maximum size of the queue before outgoing calls start being rejected. + * @type {number} + * @memberof AccountStatistics */ 'maxCallQueueSize'?: number; } diff --git a/models/additional-denial-reason.ts b/models/additional-denial-reason.ts index ef77297..5836adc 100644 --- a/models/additional-denial-reason.ts +++ b/models/additional-denial-reason.ts @@ -14,17 +14,28 @@ +/** + * + * @export + * @interface AdditionalDenialReason + */ export interface AdditionalDenialReason { /** * Reason code for denial. + * @type {number} + * @memberof AdditionalDenialReason */ 'statusCode': number; /** * Explanation for why a verification request was declined. + * @type {string} + * @memberof AdditionalDenialReason */ 'reason': string; /** * Whether a Toll-Free Verification request qualifies for resubmission via PUT. + * @type {boolean} + * @memberof AdditionalDenialReason */ 'resubmitAllowed': boolean; } diff --git a/models/address.ts b/models/address.ts index e9423cb..369d3a4 100644 --- a/models/address.ts +++ b/models/address.ts @@ -14,33 +14,52 @@ +/** + * + * @export + * @interface Address + */ export interface Address { /** * The name of the business using the toll-free number. + * @type {string} + * @memberof Address */ 'name': string; /** * The address of the business using the toll-free number. + * @type {string} + * @memberof Address */ 'addr1': string; /** * The address of the business using the toll-free number. + * @type {string} + * @memberof Address */ 'addr2'?: string | null; /** * The city of the business using the toll-free number. + * @type {string} + * @memberof Address */ 'city': string; /** * The state of the business using the toll-free number. + * @type {string} + * @memberof Address */ 'state': string; /** * The zip of the business using the toll-free number. + * @type {string} + * @memberof Address */ 'zip': string; /** * The website of the business using the toll-free number. + * @type {string} + * @memberof Address */ 'url': string; } diff --git a/models/answer-callback.ts b/models/answer-callback.ts index da67333..0a1e313 100644 --- a/models/answer-callback.ts +++ b/models/answer-callback.ts @@ -22,57 +22,93 @@ import type { MachineDetectionResult } from './machine-detection-result'; /** * The Answer event is sent to the answerUrl specified in the createCall request when an outbound call is answered. + * @export + * @interface AnswerCallback */ export interface AnswerCallback { /** * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. + * @type {string} + * @memberof AnswerCallback */ 'eventType'?: string; /** * The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. + * @type {string} + * @memberof AnswerCallback */ 'eventTime'?: string; /** * The user account associated with the call. + * @type {string} + * @memberof AnswerCallback */ 'accountId'?: string; /** * The id of the application associated with the call. + * @type {string} + * @memberof AnswerCallback */ 'applicationId'?: string; /** * The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). + * @type {string} + * @memberof AnswerCallback */ 'from'?: string; /** * The phone number that received the call, in E.164 format (e.g. +15555555555). + * @type {string} + * @memberof AnswerCallback */ 'to'?: string; + /** + * + * @type {CallDirectionEnum} + * @memberof AnswerCallback + */ 'direction'?: CallDirectionEnum; /** * The call id associated with the event. + * @type {string} + * @memberof AnswerCallback */ 'callId'?: string; /** * The URL of the call associated with the event. + * @type {string} + * @memberof AnswerCallback */ 'callUrl'?: string; /** * (optional) If call queueing is enabled and this is an outbound call, time the call was queued, in ISO 8601 format. + * @type {string} + * @memberof AnswerCallback */ 'enqueuedTime'?: string | null; /** * Time the call was started, in ISO 8601 format. + * @type {string} + * @memberof AnswerCallback */ 'startTime'?: string; /** * Time the call was answered, in ISO 8601 format. + * @type {string} + * @memberof AnswerCallback */ 'answerTime'?: string | null; /** * (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. + * @type {string} + * @memberof AnswerCallback */ 'tag'?: string | null; + /** + * + * @type {MachineDetectionResult} + * @memberof AnswerCallback + */ 'machineDetectionResult'?: MachineDetectionResult | null; } diff --git a/models/async-lookup-request.ts b/models/async-lookup-request.ts index eee2cdf..9f5425f 100644 --- a/models/async-lookup-request.ts +++ b/models/async-lookup-request.ts @@ -14,9 +14,16 @@ +/** + * + * @export + * @interface AsyncLookupRequest + */ export interface AsyncLookupRequest { /** * Telephone numbers in E.164 format. + * @type {Array} + * @memberof AsyncLookupRequest */ 'phoneNumbers': Array; } diff --git a/models/blocked-webhook.ts b/models/blocked-webhook.ts index 2c42a1b..9259540 100644 --- a/models/blocked-webhook.ts +++ b/models/blocked-webhook.ts @@ -17,26 +17,46 @@ // @ts-ignore import type { TfvCallbackStatusEnum } from './tfv-callback-status-enum'; +/** + * + * @export + * @interface BlockedWebhook + */ export interface BlockedWebhook { /** * User\'s account ID. + * @type {string} + * @memberof BlockedWebhook */ 'accountId'?: string; /** * Toll-free telephone number in E.164 format. + * @type {string} + * @memberof BlockedWebhook */ 'phoneNumber'?: string; + /** + * + * @type {TfvCallbackStatusEnum} + * @memberof BlockedWebhook + */ 'status'?: TfvCallbackStatusEnum; /** * Unique identifier (UUID) generated by Bandwidth to assist in tracking the verification status of a toll-free number. + * @type {string} + * @memberof BlockedWebhook */ 'internalTicketNumber'?: string; /** * Whether a Toll-Free Verification is blocked. This attribute will only be defined when the number is blocked. + * @type {boolean} + * @memberof BlockedWebhook */ 'blocked'?: boolean; /** * The reason why the Toll-Free Verification is blocked. This attribute will only be defined when the number is blocked. + * @type {string} + * @memberof BlockedWebhook */ 'blockedReason'?: string; } diff --git a/models/bridge-complete-callback.ts b/models/bridge-complete-callback.ts index 89c36b9..125ae97 100644 --- a/models/bridge-complete-callback.ts +++ b/models/bridge-complete-callback.ts @@ -19,67 +19,104 @@ import type { CallDirectionEnum } from './call-direction-enum'; /** * If the target call leaves the , then this callback is sent to the bridgeCompleteUrl, and the BXML returned in it is executed on the call. If this webhook is sent, the Bridge Target Complete webhook is NOT sent. This callback is also sent if any problem occurs that prevents the calls to be bridged. + * @export + * @interface BridgeCompleteCallback */ export interface BridgeCompleteCallback { /** * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. + * @type {string} + * @memberof BridgeCompleteCallback */ 'eventType'?: string; /** * The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. + * @type {string} + * @memberof BridgeCompleteCallback */ 'eventTime'?: string; /** * The user account associated with the call. + * @type {string} + * @memberof BridgeCompleteCallback */ 'accountId'?: string; /** * The id of the application associated with the call. + * @type {string} + * @memberof BridgeCompleteCallback */ 'applicationId'?: string; /** * The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). + * @type {string} + * @memberof BridgeCompleteCallback */ 'from'?: string; /** * The phone number that received the call, in E.164 format (e.g. +15555555555). + * @type {string} + * @memberof BridgeCompleteCallback */ 'to'?: string; + /** + * + * @type {CallDirectionEnum} + * @memberof BridgeCompleteCallback + */ 'direction'?: CallDirectionEnum; /** * The call id associated with the event. + * @type {string} + * @memberof BridgeCompleteCallback */ 'callId'?: string; /** * The URL of the call associated with the event. + * @type {string} + * @memberof BridgeCompleteCallback */ 'callUrl'?: string; /** * (optional) If call queueing is enabled and this is an outbound call, time the call was queued, in ISO 8601 format. + * @type {string} + * @memberof BridgeCompleteCallback */ 'enqueuedTime'?: string | null; /** * Time the call was started, in ISO 8601 format. + * @type {string} + * @memberof BridgeCompleteCallback */ 'startTime'?: string; /** * Time the call was answered, in ISO 8601 format. + * @type {string} + * @memberof BridgeCompleteCallback */ 'answerTime'?: string | null; /** * (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. + * @type {string} + * @memberof BridgeCompleteCallback */ 'tag'?: string | null; /** * Reason the call failed - hangup, busy, timeout, cancel, rejected, callback-error, invalid-bxml, application-error, account-limit, node-capacity-exceeded, error, or unknown. + * @type {string} + * @memberof BridgeCompleteCallback */ 'cause'?: string; /** * Text explaining the reason that caused the call to fail in case of errors. + * @type {string} + * @memberof BridgeCompleteCallback */ 'errorMessage'?: string | null; /** * Bandwidth\'s internal id that references the error event. + * @type {string} + * @memberof BridgeCompleteCallback */ 'errorId'?: string | null; } diff --git a/models/bridge-target-complete-callback.ts b/models/bridge-target-complete-callback.ts index 54ca3f2..78a92f5 100644 --- a/models/bridge-target-complete-callback.ts +++ b/models/bridge-target-complete-callback.ts @@ -19,55 +19,86 @@ import type { CallDirectionEnum } from './call-direction-enum'; /** * If the originating call leaves the , then this callback is sent to the bridgeTargetCompleteUrl, and the BXML returned in it is executed on the target call. If this webhook is sent, the Bridge Complete webhook is NOT sent. + * @export + * @interface BridgeTargetCompleteCallback */ export interface BridgeTargetCompleteCallback { /** * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. + * @type {string} + * @memberof BridgeTargetCompleteCallback */ 'eventType'?: string; /** * The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. + * @type {string} + * @memberof BridgeTargetCompleteCallback */ 'eventTime'?: string; /** * The user account associated with the call. + * @type {string} + * @memberof BridgeTargetCompleteCallback */ 'accountId'?: string; /** * The id of the application associated with the call. + * @type {string} + * @memberof BridgeTargetCompleteCallback */ 'applicationId'?: string; /** * The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). + * @type {string} + * @memberof BridgeTargetCompleteCallback */ 'from'?: string; /** * The phone number that received the call, in E.164 format (e.g. +15555555555). + * @type {string} + * @memberof BridgeTargetCompleteCallback */ 'to'?: string; + /** + * + * @type {CallDirectionEnum} + * @memberof BridgeTargetCompleteCallback + */ 'direction'?: CallDirectionEnum; /** * The call id associated with the event. + * @type {string} + * @memberof BridgeTargetCompleteCallback */ 'callId'?: string; /** * The URL of the call associated with the event. + * @type {string} + * @memberof BridgeTargetCompleteCallback */ 'callUrl'?: string; /** * (optional) If call queueing is enabled and this is an outbound call, time the call was queued, in ISO 8601 format. + * @type {string} + * @memberof BridgeTargetCompleteCallback */ 'enqueuedTime'?: string | null; /** * Time the call was started, in ISO 8601 format. + * @type {string} + * @memberof BridgeTargetCompleteCallback */ 'startTime'?: string; /** * Time the call was answered, in ISO 8601 format. + * @type {string} + * @memberof BridgeTargetCompleteCallback */ 'answerTime'?: string | null; /** * (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. + * @type {string} + * @memberof BridgeTargetCompleteCallback */ 'tag'?: string | null; } diff --git a/models/business-entity-type-enum.ts b/models/business-entity-type-enum.ts index 5ec96c1..074ef54 100644 --- a/models/business-entity-type-enum.ts +++ b/models/business-entity-type-enum.ts @@ -16,6 +16,8 @@ /** * The type of registered business. If no option is applicable, please provide \"SOLE_PROPRIETOR\" as a value. Optional until early 2026; required if `businessRegistrationNumber` is provided. Available starting October 1st, 2025. + * @export + * @enum {string} */ export const BusinessEntityTypeEnum = { diff --git a/models/business-registration-type-enum.ts b/models/business-registration-type-enum.ts index 8e81226..df314b6 100644 --- a/models/business-registration-type-enum.ts +++ b/models/business-registration-type-enum.ts @@ -16,6 +16,8 @@ /** * The type of business registration number. Optional until early 2026; required if `businessRegistrationNumber` is provided. Available starting October 1st, 2025. + * @export + * @enum {string} */ export const BusinessRegistrationTypeEnum = { diff --git a/models/call-direction-enum.ts b/models/call-direction-enum.ts index 9e9fae2..9d33c16 100644 --- a/models/call-direction-enum.ts +++ b/models/call-direction-enum.ts @@ -16,6 +16,8 @@ /** * The direction of the call. + * @export + * @enum {string} */ export const CallDirectionEnum = { diff --git a/models/call-recording-metadata.ts b/models/call-recording-metadata.ts index 9d45bc3..a0cf258 100644 --- a/models/call-recording-metadata.ts +++ b/models/call-recording-metadata.ts @@ -23,72 +23,124 @@ import type { FileFormatEnum } from './file-format-enum'; // @ts-ignore import type { RecordingTranscriptionMetadata } from './recording-transcription-metadata'; +/** + * + * @export + * @interface CallRecordingMetadata + */ export interface CallRecordingMetadata { /** * The id of the application associated with the call. + * @type {string} + * @memberof CallRecordingMetadata */ 'applicationId'?: string; /** * The user account associated with the call. + * @type {string} + * @memberof CallRecordingMetadata */ 'accountId'?: string; /** * The call id associated with the event. + * @type {string} + * @memberof CallRecordingMetadata */ 'callId'?: string; /** * (optional) If the event is related to the B leg of a , the call id of the original call leg that executed the . Otherwise, this field will not be present. + * @type {string} + * @memberof CallRecordingMetadata */ 'parentCallId'?: string; /** * The unique ID of this recording + * @type {string} + * @memberof CallRecordingMetadata */ 'recordingId'?: string; /** * The phone number that received the call, in E.164 format (e.g. +15555555555). + * @type {string} + * @memberof CallRecordingMetadata */ 'to'?: string; /** * The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). + * @type {string} + * @memberof CallRecordingMetadata */ 'from'?: string; /** * The phone number used as the from field of the B-leg call, in E.164 format (e.g. +15555555555). + * @type {string} + * @memberof CallRecordingMetadata */ 'transferCallerId'?: string; /** * The phone number used as the to field of the B-leg call, in E.164 format (e.g. +15555555555). + * @type {string} + * @memberof CallRecordingMetadata */ 'transferTo'?: string; /** * The duration of the recording in ISO-8601 format + * @type {string} + * @memberof CallRecordingMetadata */ 'duration'?: string; + /** + * + * @type {CallDirectionEnum} + * @memberof CallRecordingMetadata + */ 'direction'?: CallDirectionEnum; /** * Always `1` for conference recordings; multi-channel recordings are not supported on conferences. + * @type {number} + * @memberof CallRecordingMetadata */ 'channels'?: number; /** * Time the call was started, in ISO 8601 format. + * @type {string} + * @memberof CallRecordingMetadata */ 'startTime'?: string; /** * The time that the recording ended in ISO-8601 format + * @type {string} + * @memberof CallRecordingMetadata */ 'endTime'?: string; + /** + * + * @type {FileFormatEnum} + * @memberof CallRecordingMetadata + */ 'fileFormat'?: FileFormatEnum; /** * The current status of the process. For recording, current possible values are \'processing\', \'partial\', \'complete\', \'deleted\', and \'error\'. For transcriptions, current possible values are \'none\', \'processing\', \'available\', \'error\', \'timeout\', \'file-size-too-big\', and \'file-size-too-small\'. Additional states may be added in the future, so your application must be tolerant of unknown values. + * @type {string} + * @memberof CallRecordingMetadata */ 'status'?: string; /** * The URL that can be used to download the recording. Only present if the recording is finished and may be downloaded. + * @type {string} + * @memberof CallRecordingMetadata */ 'mediaUrl'?: string | null; + /** + * + * @type {RecordingTranscriptionMetadata} + * @memberof CallRecordingMetadata + */ 'transcription'?: RecordingTranscriptionMetadata | null; /** * A name to identify this recording. + * @type {string} + * @memberof CallRecordingMetadata */ 'recordingName'?: string; } diff --git a/models/call-state-enum.ts b/models/call-state-enum.ts index 3a07d4f..5584099 100644 --- a/models/call-state-enum.ts +++ b/models/call-state-enum.ts @@ -16,6 +16,8 @@ /** * The call state. Possible values:
`active` to redirect the call (default)
`completed` to hang up the call if it is answered, cancel it if it is an unanswered outbound call, or reject it if it an unanswered inbound call + * @export + * @enum {string} */ export const CallStateEnum = { diff --git a/models/call-state.ts b/models/call-state.ts index 44d80d3..6451295 100644 --- a/models/call-state.ts +++ b/models/call-state.ts @@ -17,74 +17,118 @@ // @ts-ignore import type { CallDirectionEnum } from './call-direction-enum'; +/** + * + * @export + * @interface CallState + */ export interface CallState { /** * The application id associated with the call. + * @type {string} + * @memberof CallState */ 'applicationId'?: string; /** * The account id associated with the call. + * @type {string} + * @memberof CallState */ 'accountId'?: string; /** * The programmable voice API call ID. + * @type {string} + * @memberof CallState */ 'callId'?: string; /** * The A-leg call id, set only if this call is the B-leg of a [``](/docs/voice/bxml/transfer). + * @type {string} + * @memberof CallState */ 'parentCallId'?: string | null; /** * The phone number that received the call, in E.164 format (e.g. +15555555555), or if the call was to a SIP URI, the SIP URI. + * @type {string} + * @memberof CallState */ 'to'?: string; /** * The phone number that made the call, in E.164 format (e.g. +15555555555). + * @type {string} + * @memberof CallState */ 'from'?: string; + /** + * + * @type {CallDirectionEnum} + * @memberof CallState + */ 'direction'?: CallDirectionEnum; /** * The current state of the call. Current possible values are `queued`, `initiated`, `answered` and `disconnected`. Additional states may be added in the future, so your application must be tolerant of unknown values. + * @type {string} + * @memberof CallState */ 'state'?: string; /** * For inbound calls, the Bandwidth STIR/SHAKEN implementation will verify the information provided in the inbound invite request `Identity` header. The verification status is stored in the call state `stirShaken` property as follows. | Property | Description | |:------------------|:------------| | verstat | (optional) The verification status indicating whether the verification was successful or not. Possible values are `TN-Validation-Passed` or `TN-Validation-Failed`. | | attestationIndicator | (optional) The attestation level verified by Bandwidth. Possible values are `A` (full), `B` (partial) or `C` (gateway). | | originatingId | (optional) A unique origination identifier. | Note that these are common properties but that the `stirShaken` object is free form and can contain other key-value pairs. More information: [Understanding STIR/SHAKEN](https://www.bandwidth.com/regulations/stir-shaken). + * @type {{ [key: string]: string; }} + * @memberof CallState */ 'stirShaken'?: { [key: string]: string; } | null; /** * The value of the `Identity` header from the inbound invite request. Only present for inbound calls and if the account is configured to forward this header. + * @type {string} + * @memberof CallState */ 'identity'?: string | null; /** * The time this call was placed in queue. + * @type {string} + * @memberof CallState */ 'enqueuedTime'?: string | null; /** * The time the call was initiated, in ISO 8601 format. `null` if the call is still in your queue. + * @type {string} + * @memberof CallState */ 'startTime'?: string | null; /** * Populated once the call has been answered, with the time in ISO 8601 format. + * @type {string} + * @memberof CallState */ 'answerTime'?: string | null; /** * Populated once the call has ended, with the time in ISO 8601 format. + * @type {string} + * @memberof CallState */ 'endTime'?: string | null; /** * | Cause | Description | |:------|:------------| | `hangup`| One party hung up the call, a [``](../../bxml/verbs/hangup.md) verb was executed, or there was no more BXML to execute; it indicates that the call ended normally. | | `busy` | Callee was busy. | | `timeout` | Call wasn\'t answered before the `callTimeout` was reached. | | `cancel` | Call was cancelled by its originator while it was ringing. | | `rejected` | Call was rejected by the callee. | | `callback-error` | BXML callback couldn\'t be delivered to your callback server. | | `invalid-bxml` | Invalid BXML was returned in response to a callback. | | `application-error` | An unsupported action was tried on the call, e.g. trying to play a .ogg audio. | | `account-limit` | Account rate limits were reached. | | `node-capacity-exceeded` | System maximum capacity was reached. | | `error` | Some error not described in any of the other causes happened on the call. | | `unknown` | Unknown error happened on the call. | Note: This list is not exhaustive and other values can appear in the future. + * @type {string} + * @memberof CallState */ 'disconnectCause'?: string | null; /** * Populated only if the call ended with an error, with text explaining the reason. + * @type {string} + * @memberof CallState */ 'errorMessage'?: string | null; /** * Populated only if the call ended with an error, with a Bandwidth internal id that references the error event. + * @type {string} + * @memberof CallState */ 'errorId'?: string | null; /** * The last time the call had a state update, in ISO 8601 format. + * @type {string} + * @memberof CallState */ 'lastUpdate'?: string; } diff --git a/models/call-transcription-detected-language-enum.ts b/models/call-transcription-detected-language-enum.ts index 5fdcdbf..41e6006 100644 --- a/models/call-transcription-detected-language-enum.ts +++ b/models/call-transcription-detected-language-enum.ts @@ -16,6 +16,8 @@ /** * The detected language for this transcription. + * @export + * @enum {string} */ export const CallTranscriptionDetectedLanguageEnum = { diff --git a/models/call-transcription-metadata.ts b/models/call-transcription-metadata.ts index c85e49d..931a52c 100644 --- a/models/call-transcription-metadata.ts +++ b/models/call-transcription-metadata.ts @@ -14,17 +14,28 @@ +/** + * + * @export + * @interface CallTranscriptionMetadata + */ export interface CallTranscriptionMetadata { /** * The programmable voice API transcription ID. + * @type {string} + * @memberof CallTranscriptionMetadata */ 'transcriptionId'?: string; /** * The programmable voice API transcription name. This name could be provided by the user when creating the transcription. + * @type {string} + * @memberof CallTranscriptionMetadata */ 'transcriptionName'?: string; /** * A URL that may be used to retrieve the transcription itself. This points to the [Get Call Transcription](/apis/voice-apis/voice/#tag/Transcriptions/operation/getRealTimeTranscription) endpoint. + * @type {string} + * @memberof CallTranscriptionMetadata */ 'transcriptionUrl'?: string; } diff --git a/models/call-transcription-response.ts b/models/call-transcription-response.ts index 0b37be0..1e5b8fb 100644 --- a/models/call-transcription-response.ts +++ b/models/call-transcription-response.ts @@ -17,19 +17,35 @@ // @ts-ignore import type { CallTranscription } from './call-transcription'; +/** + * + * @export + * @interface CallTranscriptionResponse + */ export interface CallTranscriptionResponse { /** * The user account associated with the call. + * @type {string} + * @memberof CallTranscriptionResponse */ 'accountId'?: string; /** * The call id associated with the event. + * @type {string} + * @memberof CallTranscriptionResponse */ 'callId'?: string; /** * The programmable voice API transcription ID. + * @type {string} + * @memberof CallTranscriptionResponse */ 'transcriptionId'?: string; + /** + * + * @type {Array} + * @memberof CallTranscriptionResponse + */ 'tracks'?: Array; } diff --git a/models/call-transcription-track-enum.ts b/models/call-transcription-track-enum.ts index 3299f7b..33c32b0 100644 --- a/models/call-transcription-track-enum.ts +++ b/models/call-transcription-track-enum.ts @@ -16,6 +16,8 @@ /** * Which `track` this transcription is derived from. + * @export + * @enum {string} */ export const CallTranscriptionTrackEnum = { diff --git a/models/call-transcription.ts b/models/call-transcription.ts index 39bcf8d..230edc9 100644 --- a/models/call-transcription.ts +++ b/models/call-transcription.ts @@ -20,15 +20,34 @@ import type { CallTranscriptionDetectedLanguageEnum } from './call-transcription // @ts-ignore import type { CallTranscriptionTrackEnum } from './call-transcription-track-enum'; +/** + * + * @export + * @interface CallTranscription + */ export interface CallTranscription { + /** + * + * @type {CallTranscriptionDetectedLanguageEnum} + * @memberof CallTranscription + */ 'detectedLanguage'?: CallTranscriptionDetectedLanguageEnum; + /** + * + * @type {CallTranscriptionTrackEnum} + * @memberof CallTranscription + */ 'track'?: CallTranscriptionTrackEnum; /** * The transcription itself. + * @type {string} + * @memberof CallTranscription */ 'transcript'?: string; /** * How confident the transcription engine was in transcribing the associated audio (from `0` to `1`). + * @type {number} + * @memberof CallTranscription */ 'confidence'?: number; } diff --git a/models/callback-method-enum.ts b/models/callback-method-enum.ts index abed4ba..17aa746 100644 --- a/models/callback-method-enum.ts +++ b/models/callback-method-enum.ts @@ -16,6 +16,8 @@ /** * The HTTP method to use to deliver the callback. GET or POST. Default value is POST. + * @export + * @enum {string} */ export const CallbackMethodEnum = { diff --git a/models/callback.ts b/models/callback.ts index 4f9c2a8..683a7c1 100644 --- a/models/callback.ts +++ b/models/callback.ts @@ -29,6 +29,7 @@ import type { StatusCallback } from './status-callback'; /** * @type Callback * Callbacks are divided into two types based on direction of the related message: - `statusCallback` indicates status of an outbound MT SMS, MMS, or RBM message. - `inboundCallback` indicates an inbound MO message or a multichannel message client\'s response to a suggestion or location request. + * @export */ export type Callback = { type: 'message-delivered' } & StatusCallback | { type: 'message-failed' } & StatusCallback | { type: 'message-read' } & StatusCallback | { type: 'message-received' } & InboundCallback | { type: 'message-sent' } & StatusCallback | { type: 'request-location-response' } & InboundCallback | { type: 'suggestion-response' } & InboundCallback; diff --git a/models/card-width-enum.ts b/models/card-width-enum.ts index 6c5967a..24b407d 100644 --- a/models/card-width-enum.ts +++ b/models/card-width-enum.ts @@ -14,6 +14,11 @@ +/** + * + * @export + * @enum {string} + */ export const CardWidthEnum = { Small: 'SMALL', diff --git a/models/code-request.ts b/models/code-request.ts index b851078..f88da33 100644 --- a/models/code-request.ts +++ b/models/code-request.ts @@ -14,29 +14,46 @@ +/** + * + * @export + * @interface CodeRequest + */ export interface CodeRequest { /** * The phone number to send the mfa code to. + * @type {string} + * @memberof CodeRequest */ 'to': string; /** * The application phone number, the sender of the mfa code. + * @type {string} + * @memberof CodeRequest */ 'from': string; /** * The application unique ID, obtained from Bandwidth. + * @type {string} + * @memberof CodeRequest */ 'applicationId': string; /** * An optional field to denote what scope or action the mfa code is addressing. If not supplied, defaults to \"2FA\". + * @type {string} + * @memberof CodeRequest */ 'scope'?: string; /** * The message format of the mfa code. There are three values that the system will replace \"{CODE}\", \"{NAME}\", \"{SCOPE}\". The \"{SCOPE}\" and \"{NAME} value template are optional, while \"{CODE}\" must be supplied. As the name would suggest, code will be replace with the actual mfa code. Name is replaced with the application name, configured during provisioning of mfa. The scope value is the same value sent during the call and partitioned by the server. + * @type {string} + * @memberof CodeRequest */ 'message': string; /** * The number of digits for your mfa code. The valid number ranges from 2 to 8, inclusively. + * @type {number} + * @memberof CodeRequest */ 'digits': number; } diff --git a/models/completed-lookup-status-enum.ts b/models/completed-lookup-status-enum.ts index 0380fbf..390c6ab 100644 --- a/models/completed-lookup-status-enum.ts +++ b/models/completed-lookup-status-enum.ts @@ -14,6 +14,11 @@ +/** + * + * @export + * @enum {string} + */ export const CompletedLookupStatusEnum = { Complete: 'COMPLETE', diff --git a/models/conference-completed-callback.ts b/models/conference-completed-callback.ts index 224ce2a..30eb869 100644 --- a/models/conference-completed-callback.ts +++ b/models/conference-completed-callback.ts @@ -16,26 +16,38 @@ /** * The Conference Completed event is fired when the last member leaves the conference. The response to this event may not contain BXML. + * @export + * @interface ConferenceCompletedCallback */ export interface ConferenceCompletedCallback { /** * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. + * @type {string} + * @memberof ConferenceCompletedCallback */ 'eventType'?: string; /** * The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. + * @type {string} + * @memberof ConferenceCompletedCallback */ 'eventTime'?: string; /** * The unique, Bandwidth-generated ID of the conference that was recorded + * @type {string} + * @memberof ConferenceCompletedCallback */ 'conferenceId'?: string; /** * The user-specified name of the conference that was recorded + * @type {string} + * @memberof ConferenceCompletedCallback */ 'name'?: string; /** * (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. + * @type {string} + * @memberof ConferenceCompletedCallback */ 'tag'?: string | null; } diff --git a/models/conference-created-callback.ts b/models/conference-created-callback.ts index 1a8cf8a..1ff258f 100644 --- a/models/conference-created-callback.ts +++ b/models/conference-created-callback.ts @@ -16,26 +16,38 @@ /** * The Conference Created event is fired whenever a new conference that specified a callbackUrl is created. The response may be either empty or a BXML document. Only the following verbs are valid for conferences: PlayAudio, SpeakSentence, StartRecording, StopRecording, PauseRecording, ResumeRecording. Audio verbs will be heard by all members of the conference. Recordings capture audio from all members who are not muted or on hold, as well as any audio verbs that are played into the conference. + * @export + * @interface ConferenceCreatedCallback */ export interface ConferenceCreatedCallback { /** * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. + * @type {string} + * @memberof ConferenceCreatedCallback */ 'eventType'?: string; /** * The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. + * @type {string} + * @memberof ConferenceCreatedCallback */ 'eventTime'?: string; /** * The unique, Bandwidth-generated ID of the conference that was recorded + * @type {string} + * @memberof ConferenceCreatedCallback */ 'conferenceId'?: string; /** * The user-specified name of the conference that was recorded + * @type {string} + * @memberof ConferenceCreatedCallback */ 'name'?: string; /** * (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. + * @type {string} + * @memberof ConferenceCreatedCallback */ 'tag'?: string | null; } diff --git a/models/conference-member-exit-callback.ts b/models/conference-member-exit-callback.ts index 8f4636a..e2f807a 100644 --- a/models/conference-member-exit-callback.ts +++ b/models/conference-member-exit-callback.ts @@ -16,38 +16,56 @@ /** * The Conference Member Exit event is fired whenever a caller exits a conference that specified a callbackUrl. The response may be either empty or a BXML document. Only the following verbs are valid for conferences: PlayAudio, SpeakSentence, StartRecording, StopRecording, PauseRecording, ResumeRecording. Audio verbs will be heard by all members of the conference. Recordings capture audio from all members who are not muted or on hold, as well as any audio verbs that are played into the conference. + * @export + * @interface ConferenceMemberExitCallback */ export interface ConferenceMemberExitCallback { /** * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. + * @type {string} + * @memberof ConferenceMemberExitCallback */ 'eventType'?: string; /** * The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. + * @type {string} + * @memberof ConferenceMemberExitCallback */ 'eventTime'?: string; /** * The unique, Bandwidth-generated ID of the conference that was recorded + * @type {string} + * @memberof ConferenceMemberExitCallback */ 'conferenceId'?: string; /** * The user-specified name of the conference that was recorded + * @type {string} + * @memberof ConferenceMemberExitCallback */ 'name'?: string; /** * The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). + * @type {string} + * @memberof ConferenceMemberExitCallback */ 'from'?: string; /** * The phone number that received the call, in E.164 format (e.g. +15555555555). + * @type {string} + * @memberof ConferenceMemberExitCallback */ 'to'?: string; /** * The call id associated with the event. + * @type {string} + * @memberof ConferenceMemberExitCallback */ 'callId'?: string; /** * (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. + * @type {string} + * @memberof ConferenceMemberExitCallback */ 'tag'?: string | null; } diff --git a/models/conference-member-join-callback.ts b/models/conference-member-join-callback.ts index d14ab37..5a1c19d 100644 --- a/models/conference-member-join-callback.ts +++ b/models/conference-member-join-callback.ts @@ -16,38 +16,56 @@ /** * The Conference Member Join event is fired whenever a caller joins a conference that specified a callbackUrl. The response may be either empty or a BXML document. Only the following verbs are valid for conferences: PlayAudio, SpeakSentence, StartRecording, StopRecording, PauseRecording, ResumeRecording. Audio verbs will be heard by all members of the conference. Recordings capture audio from all members who are not muted or on hold, as well as any audio verbs that are played into the conference. + * @export + * @interface ConferenceMemberJoinCallback */ export interface ConferenceMemberJoinCallback { /** * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. + * @type {string} + * @memberof ConferenceMemberJoinCallback */ 'eventType'?: string; /** * The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. + * @type {string} + * @memberof ConferenceMemberJoinCallback */ 'eventTime'?: string; /** * The unique, Bandwidth-generated ID of the conference that was recorded + * @type {string} + * @memberof ConferenceMemberJoinCallback */ 'conferenceId'?: string; /** * The user-specified name of the conference that was recorded + * @type {string} + * @memberof ConferenceMemberJoinCallback */ 'name'?: string; /** * The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). + * @type {string} + * @memberof ConferenceMemberJoinCallback */ 'from'?: string; /** * The phone number that received the call, in E.164 format (e.g. +15555555555). + * @type {string} + * @memberof ConferenceMemberJoinCallback */ 'to'?: string; /** * The call id associated with the event. + * @type {string} + * @memberof ConferenceMemberJoinCallback */ 'callId'?: string; /** * (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. + * @type {string} + * @memberof ConferenceMemberJoinCallback */ 'tag'?: string | null; } diff --git a/models/conference-member.ts b/models/conference-member.ts index 162ffe2..03e988b 100644 --- a/models/conference-member.ts +++ b/models/conference-member.ts @@ -14,29 +14,46 @@ +/** + * + * @export + * @interface ConferenceMember + */ export interface ConferenceMember { /** * The call id associated with the event. + * @type {string} + * @memberof ConferenceMember */ 'callId'?: string; /** * The unique, Bandwidth-generated ID of the conference that was recorded + * @type {string} + * @memberof ConferenceMember */ 'conferenceId'?: string; /** * A URL that may be used to retrieve information about or update the state of this conference member. This is the URL of this member\'s [Get Conference Member](/apis/voice-apis/voice/#tag/Conferences/operation/getConferenceMember) endpoint and [Modify Conference Member](/apis/voice-apis/voice/#tag/Conferences/operation/updateConferenceMember) endpoint. + * @type {string} + * @memberof ConferenceMember */ 'memberUrl'?: string; /** * Whether or not this member is currently muted. Members who are muted are still able to hear other participants. If used in a PUT request, updates this member\'s mute status. Has no effect if omitted. + * @type {boolean} + * @memberof ConferenceMember */ 'mute'?: boolean; /** * Whether or not this member is currently on hold. Members who are on hold are not able to hear or speak in the conference. If used in a PUT request, updates this member\'s hold status. Has no effect if omitted. + * @type {boolean} + * @memberof ConferenceMember */ 'hold'?: boolean; /** * If this member had a value set for `callIdsToCoach` in its [Conference](/docs/voice/bxml/conference) verb or this list was added with a previous PUT request to modify the member, this is that list of calls. If present in a PUT request, modifies the calls that this member is coaching. Has no effect if omitted. See the documentation for the [Conference](/docs/voice/bxml/conference) verb for more details about coaching. Note that this will not add the matching calls to the conference; each call must individually execute a Conference verb to join. + * @type {Array} + * @memberof ConferenceMember */ 'callIdsToCoach'?: Array | null; } diff --git a/models/conference-recording-available-callback.ts b/models/conference-recording-available-callback.ts index 2c3fc42..c7bdccf 100644 --- a/models/conference-recording-available-callback.ts +++ b/models/conference-recording-available-callback.ts @@ -19,59 +19,92 @@ import type { FileFormatEnum } from './file-format-enum'; /** * The Conference Recording Available event is sent after a conference recording has been processed. It indicates that the recording is available for download. + * @export + * @interface ConferenceRecordingAvailableCallback */ export interface ConferenceRecordingAvailableCallback { /** * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. + * @type {string} + * @memberof ConferenceRecordingAvailableCallback */ 'eventType'?: string; /** * The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. + * @type {string} + * @memberof ConferenceRecordingAvailableCallback */ 'eventTime'?: string; /** * The unique, Bandwidth-generated ID of the conference that was recorded + * @type {string} + * @memberof ConferenceRecordingAvailableCallback */ 'conferenceId'?: string; /** * The user-specified name of the conference that was recorded + * @type {string} + * @memberof ConferenceRecordingAvailableCallback */ 'name'?: string; /** * The user account associated with the call. + * @type {string} + * @memberof ConferenceRecordingAvailableCallback */ 'accountId'?: string; /** * The unique ID of this recording + * @type {string} + * @memberof ConferenceRecordingAvailableCallback */ 'recordingId'?: string; /** * Always `1` for conference recordings; multi-channel recordings are not supported on conferences. + * @type {number} + * @memberof ConferenceRecordingAvailableCallback */ 'channels'?: number; /** * Time the call was started, in ISO 8601 format. + * @type {string} + * @memberof ConferenceRecordingAvailableCallback */ 'startTime'?: string; /** * The time that the recording ended in ISO-8601 format + * @type {string} + * @memberof ConferenceRecordingAvailableCallback */ 'endTime'?: string; /** * The duration of the recording in ISO-8601 format + * @type {string} + * @memberof ConferenceRecordingAvailableCallback */ 'duration'?: string; + /** + * + * @type {FileFormatEnum} + * @memberof ConferenceRecordingAvailableCallback + */ 'fileFormat'?: FileFormatEnum; /** * The URL that can be used to download the recording. Only present if the recording is finished and may be downloaded. + * @type {string} + * @memberof ConferenceRecordingAvailableCallback */ 'mediaUrl'?: string | null; /** * (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. + * @type {string} + * @memberof ConferenceRecordingAvailableCallback */ 'tag'?: string | null; /** * The current status of the process. For recording, current possible values are \'processing\', \'partial\', \'complete\', \'deleted\', and \'error\'. For transcriptions, current possible values are \'none\', \'processing\', \'available\', \'error\', \'timeout\', \'file-size-too-big\', and \'file-size-too-small\'. Additional states may be added in the future, so your application must be tolerant of unknown values. + * @type {string} + * @memberof ConferenceRecordingAvailableCallback */ 'status'?: string; } diff --git a/models/conference-recording-metadata.ts b/models/conference-recording-metadata.ts index 9c8468a..60819bb 100644 --- a/models/conference-recording-metadata.ts +++ b/models/conference-recording-metadata.ts @@ -17,50 +17,82 @@ // @ts-ignore import type { FileFormatEnum } from './file-format-enum'; +/** + * + * @export + * @interface ConferenceRecordingMetadata + */ export interface ConferenceRecordingMetadata { /** * The user account associated with the call. + * @type {string} + * @memberof ConferenceRecordingMetadata */ 'accountId'?: string; /** * The unique, Bandwidth-generated ID of the conference that was recorded + * @type {string} + * @memberof ConferenceRecordingMetadata */ 'conferenceId'?: string; /** * The user-specified name of the conference that was recorded + * @type {string} + * @memberof ConferenceRecordingMetadata */ 'name'?: string; /** * The unique ID of this recording + * @type {string} + * @memberof ConferenceRecordingMetadata */ 'recordingId'?: string; /** * The duration of the recording in ISO-8601 format + * @type {string} + * @memberof ConferenceRecordingMetadata */ 'duration'?: string; /** * Always `1` for conference recordings; multi-channel recordings are not supported on conferences. + * @type {number} + * @memberof ConferenceRecordingMetadata */ 'channels'?: number; /** * Time the call was started, in ISO 8601 format. + * @type {string} + * @memberof ConferenceRecordingMetadata */ 'startTime'?: string; /** * The time that the recording ended in ISO-8601 format + * @type {string} + * @memberof ConferenceRecordingMetadata */ 'endTime'?: string; + /** + * + * @type {FileFormatEnum} + * @memberof ConferenceRecordingMetadata + */ 'fileFormat'?: FileFormatEnum; /** * The current status of the process. For recording, current possible values are \'processing\', \'partial\', \'complete\', \'deleted\', and \'error\'. For transcriptions, current possible values are \'none\', \'processing\', \'available\', \'error\', \'timeout\', \'file-size-too-big\', and \'file-size-too-small\'. Additional states may be added in the future, so your application must be tolerant of unknown values. + * @type {string} + * @memberof ConferenceRecordingMetadata */ 'status'?: string; /** * The URL that can be used to download the recording. Only present if the recording is finished and may be downloaded. + * @type {string} + * @memberof ConferenceRecordingMetadata */ 'mediaUrl'?: string | null; /** * A name to identify this recording. + * @type {string} + * @memberof ConferenceRecordingMetadata */ 'recordingName'?: string; } diff --git a/models/conference-redirect-callback.ts b/models/conference-redirect-callback.ts index 975df6b..da13d99 100644 --- a/models/conference-redirect-callback.ts +++ b/models/conference-redirect-callback.ts @@ -16,26 +16,38 @@ /** * The Conference Redirect event is fired whenever an existing conference is modified via a POST request made to the /conferences/{conferenceId} endpoint. The response may be either empty or a BXML document. Only the following verbs are valid for conferences: PlayAudio, SpeakSentence, StartRecording, StopRecording, PauseRecording, ResumeRecording. Audio verbs will be heard by all members of the conference. Recordings capture audio from all members who are not muted or on hold, as well as any audio verbs that are played into the conference. + * @export + * @interface ConferenceRedirectCallback */ export interface ConferenceRedirectCallback { /** * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. + * @type {string} + * @memberof ConferenceRedirectCallback */ 'eventType'?: string; /** * The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. + * @type {string} + * @memberof ConferenceRedirectCallback */ 'eventTime'?: string; /** * The unique, Bandwidth-generated ID of the conference that was recorded + * @type {string} + * @memberof ConferenceRedirectCallback */ 'conferenceId'?: string; /** * The user-specified name of the conference that was recorded + * @type {string} + * @memberof ConferenceRedirectCallback */ 'name'?: string; /** * (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. + * @type {string} + * @memberof ConferenceRedirectCallback */ 'tag'?: string | null; } diff --git a/models/conference-state-enum.ts b/models/conference-state-enum.ts index be36b73..08bdba4 100644 --- a/models/conference-state-enum.ts +++ b/models/conference-state-enum.ts @@ -16,6 +16,8 @@ /** * Setting the conference state to `completed` ends the conference and ejects all members. + * @export + * @enum {string} */ export const ConferenceStateEnum = { diff --git a/models/conference.ts b/models/conference.ts index d4cb83a..50d43a8 100644 --- a/models/conference.ts +++ b/models/conference.ts @@ -20,34 +20,58 @@ import type { CallbackMethodEnum } from './callback-method-enum'; // @ts-ignore import type { ConferenceMember } from './conference-member'; +/** + * + * @export + * @interface Conference + */ export interface Conference { /** * The Bandwidth-generated conference ID. + * @type {string} + * @memberof Conference */ 'id'?: string; /** * The name of the conference, as specified by your application. + * @type {string} + * @memberof Conference */ 'name'?: string; /** * The time the conference was initiated, in ISO 8601 format. + * @type {string} + * @memberof Conference */ 'createdTime'?: string; /** * The time the conference was terminated, in ISO 8601 format. + * @type {string} + * @memberof Conference */ 'completedTime'?: string | null; /** * The URL to send the conference-related events. + * @type {string} + * @memberof Conference */ 'conferenceEventUrl'?: string | null; + /** + * + * @type {CallbackMethodEnum} + * @memberof Conference + */ 'conferenceEventMethod'?: CallbackMethodEnum | null; /** * The custom string attached to the conference that will be sent with callbacks. + * @type {string} + * @memberof Conference */ 'tag'?: string | null; /** * A list of active members of the conference. Omitted if this is a response to the [Get Conferences endpoint](/apis/voice#tag/Conferences/operation/listConferences). + * @type {Array} + * @memberof Conference */ 'activeMembers'?: Array | null; } diff --git a/models/contact.ts b/models/contact.ts index 6cc4ef5..e98dbad 100644 --- a/models/contact.ts +++ b/models/contact.ts @@ -14,18 +14,34 @@ +/** + * + * @export + * @interface Contact + */ export interface Contact { /** * The first name of the business contact using the toll-free number. + * @type {string} + * @memberof Contact */ 'firstName': string; /** * The last name of the business contact using the toll-free number. + * @type {string} + * @memberof Contact */ 'lastName': string; + /** + * + * @type {string} + * @memberof Contact + */ 'email': string; /** * Contact telephone number + * @type {string} + * @memberof Contact */ 'phoneNumber': string; } diff --git a/models/create-async-bulk-lookup-response-data.ts b/models/create-async-bulk-lookup-response-data.ts index 012c6b1..b2cc26c 100644 --- a/models/create-async-bulk-lookup-response-data.ts +++ b/models/create-async-bulk-lookup-response-data.ts @@ -19,12 +19,21 @@ import type { InProgressLookupStatusEnum } from './in-progress-lookup-status-enu /** * The phone number lookup response data + * @export + * @interface CreateAsyncBulkLookupResponseData */ export interface CreateAsyncBulkLookupResponseData { /** * The phone number lookup request ID from Bandwidth. + * @type {string} + * @memberof CreateAsyncBulkLookupResponseData */ 'requestId'?: string; + /** + * + * @type {InProgressLookupStatusEnum} + * @memberof CreateAsyncBulkLookupResponseData + */ 'status'?: InProgressLookupStatusEnum; } diff --git a/models/create-async-bulk-lookup-response.ts b/models/create-async-bulk-lookup-response.ts index 56ac44e..4da8831 100644 --- a/models/create-async-bulk-lookup-response.ts +++ b/models/create-async-bulk-lookup-response.ts @@ -23,12 +23,29 @@ import type { LinkSchema } from './link-schema'; // @ts-ignore import type { LookupErrorSchema } from './lookup-error-schema'; +/** + * + * @export + * @interface CreateAsyncBulkLookupResponse + */ export interface CreateAsyncBulkLookupResponse { /** * Links for pagination (if applicable) + * @type {Array} + * @memberof CreateAsyncBulkLookupResponse */ 'links'?: Array; + /** + * + * @type {CreateAsyncBulkLookupResponseData} + * @memberof CreateAsyncBulkLookupResponse + */ 'data'?: CreateAsyncBulkLookupResponseData; + /** + * + * @type {Array} + * @memberof CreateAsyncBulkLookupResponse + */ 'errors'?: Array; } diff --git a/models/create-call-response.ts b/models/create-call-response.ts index 173882d..0c7eaab 100644 --- a/models/create-call-response.ts +++ b/models/create-call-response.ts @@ -17,80 +17,136 @@ // @ts-ignore import type { CallbackMethodEnum } from './callback-method-enum'; +/** + * + * @export + * @interface CreateCallResponse + */ export interface CreateCallResponse { /** * The id of the application associated with the `from` number. + * @type {string} + * @memberof CreateCallResponse */ 'applicationId': string; /** * The bandwidth account ID associated with the call. + * @type {string} + * @memberof CreateCallResponse */ 'accountId': string; /** * Programmable Voice API Call ID. + * @type {string} + * @memberof CreateCallResponse */ 'callId': string; /** * Recipient of the outgoing call. + * @type {string} + * @memberof CreateCallResponse */ 'to': string; /** * Phone number that created the outbound call. + * @type {string} + * @memberof CreateCallResponse */ 'from': string; /** * The time at which the call was accepted into the queue. + * @type {string} + * @memberof CreateCallResponse */ 'enqueuedTime'?: string | null; /** * The URL to update this call\'s state. + * @type {string} + * @memberof CreateCallResponse */ 'callUrl': string; /** * The timeout (in seconds) for the callee to answer the call after it starts ringing. + * @type {number} + * @memberof CreateCallResponse */ 'callTimeout'?: number; /** * This is the timeout (in seconds) to use when delivering webhooks for the call. + * @type {number} + * @memberof CreateCallResponse */ 'callbackTimeout'?: number; /** * Custom tag value. + * @type {string} + * @memberof CreateCallResponse */ 'tag'?: string | null; + /** + * + * @type {CallbackMethodEnum} + * @memberof CreateCallResponse + */ 'answerMethod': CallbackMethodEnum | null; /** * URL to deliver the `answer` event webhook. + * @type {string} + * @memberof CreateCallResponse */ 'answerUrl': string; + /** + * + * @type {CallbackMethodEnum} + * @memberof CreateCallResponse + */ 'answerFallbackMethod'?: CallbackMethodEnum | null; /** * Fallback URL to deliver the `answer` event webhook. + * @type {string} + * @memberof CreateCallResponse */ 'answerFallbackUrl'?: string | null; + /** + * + * @type {CallbackMethodEnum} + * @memberof CreateCallResponse + */ 'disconnectMethod': CallbackMethodEnum | null; /** * URL to deliver the `disconnect` event webhook. + * @type {string} + * @memberof CreateCallResponse */ 'disconnectUrl'?: string | null; /** * Basic auth username. + * @type {string} + * @memberof CreateCallResponse */ 'username'?: string | null; /** * Basic auth password. + * @type {string} + * @memberof CreateCallResponse */ 'password'?: string | null; /** * Basic auth username. + * @type {string} + * @memberof CreateCallResponse */ 'fallbackUsername'?: string | null; /** * Basic auth password. + * @type {string} + * @memberof CreateCallResponse */ 'fallbackPassword'?: string | null; /** * The priority of this call over other calls from your account. + * @type {number} + * @memberof CreateCallResponse */ 'priority'?: number | null; } diff --git a/models/create-call.ts b/models/create-call.ts index 2f71c96..462f1ed 100644 --- a/models/create-call.ts +++ b/models/create-call.ts @@ -20,77 +20,136 @@ import type { CallbackMethodEnum } from './callback-method-enum'; // @ts-ignore import type { MachineDetectionConfiguration } from './machine-detection-configuration'; +/** + * + * @export + * @interface CreateCall + */ export interface CreateCall { /** * The destination to call (must be an E.164 formatted number (e.g. `+15555551212`) or a SIP URI (e.g. `sip:user@server.example`)). + * @type {string} + * @memberof CreateCall */ 'to': string; /** * A Bandwidth phone number on your account the call should come from (must be in E.164 format, like `+15555551212`) even if `privacy` is set to true. + * @type {string} + * @memberof CreateCall */ 'from': string; /** * Hide the calling number. The `displayName` field can be used to customize the displayed name. + * @type {boolean} + * @memberof CreateCall */ 'privacy'?: boolean | null; /** * The caller display name to use when the call is created. May not exceed 256 characters nor contain control characters such as new lines. If `privacy` is true, only the following values are valid: `Restricted`, `Anonymous`, `Private`, or `Unavailable`. + * @type {string} + * @memberof CreateCall */ 'displayName'?: string | null; /** * A comma-separated list of \'User-To-User\' headers to be sent in the INVITE when calling a SIP URI. Each value must end with an \'encoding\' parameter as described in RFC 7433. Only \'jwt\', \'base64\' and \'hex\' encodings are allowed. The entire value cannot exceed 350 characters, including parameters and separators. + * @type {string} + * @memberof CreateCall */ 'uui'?: string | null; /** * The id of the application associated with the `from` number. + * @type {string} + * @memberof CreateCall */ 'applicationId': string; /** * The full URL to send the Answer event to when the called party answers. This endpoint should return the first BXML document to be executed in the call. Must use `https` if specifying `username` and `password`. + * @type {string} + * @memberof CreateCall */ 'answerUrl': string; + /** + * + * @type {CallbackMethodEnum} + * @memberof CreateCall + */ 'answerMethod'?: CallbackMethodEnum | null; /** * Basic auth username. + * @type {string} + * @memberof CreateCall */ 'username'?: string | null; /** * Basic auth password. + * @type {string} + * @memberof CreateCall */ 'password'?: string | null; /** * A fallback url which, if provided, will be used to retry the `answer` webhook delivery in case `answerUrl` fails to respond Must use `https` if specifying `fallbackUsername` and `fallbackPassword`. + * @type {string} + * @memberof CreateCall */ 'answerFallbackUrl'?: string | null; + /** + * + * @type {CallbackMethodEnum} + * @memberof CreateCall + */ 'answerFallbackMethod'?: CallbackMethodEnum | null; /** * Basic auth username. + * @type {string} + * @memberof CreateCall */ 'fallbackUsername'?: string | null; /** * Basic auth password. + * @type {string} + * @memberof CreateCall */ 'fallbackPassword'?: string | null; /** * The URL to send the Disconnect event to when the call ends. This event does not expect a BXML response. + * @type {string} + * @memberof CreateCall */ 'disconnectUrl'?: string | null; + /** + * + * @type {CallbackMethodEnum} + * @memberof CreateCall + */ 'disconnectMethod'?: CallbackMethodEnum | null; /** * The timeout (in seconds) for the callee to answer the call after it starts ringing. If the call does not start ringing within 30s, the call will be cancelled regardless of this value. Can be any numeric value (including decimals) between 1 and 300. + * @type {number} + * @memberof CreateCall */ 'callTimeout'?: number | null; /** * This is the timeout (in seconds) to use when delivering webhooks for the call. Can be any numeric value (including decimals) between 1 and 25. + * @type {number} + * @memberof CreateCall */ 'callbackTimeout'?: number | null; + /** + * + * @type {MachineDetectionConfiguration} + * @memberof CreateCall + */ 'machineDetection'?: MachineDetectionConfiguration; /** * The priority of this call over other calls from your account. For example, if during a call your application needs to place a new call and bridge it with the current call, you might want to create the call with priority 1 so that it will be the next call picked off your queue, ahead of other less time sensitive calls. A lower value means higher priority, so a priority 1 call takes precedence over a priority 2 call. + * @type {number} + * @memberof CreateCall */ 'priority'?: number | null; /** * A custom string that will be sent with all webhooks for this call unless overwritten by a future `` verb or `tag` attribute on another verb, or cleared. May be cleared by setting `tag=\"\"` Max length 256 characters. + * @type {string} + * @memberof CreateCall */ 'tag'?: string | null; } diff --git a/models/create-message-request-error.ts b/models/create-message-request-error.ts index 9675322..de6ff98 100644 --- a/models/create-message-request-error.ts +++ b/models/create-message-request-error.ts @@ -17,9 +17,29 @@ // @ts-ignore import type { FieldError } from './field-error'; +/** + * + * @export + * @interface CreateMessageRequestError + */ export interface CreateMessageRequestError { + /** + * + * @type {string} + * @memberof CreateMessageRequestError + */ 'type': string; + /** + * + * @type {string} + * @memberof CreateMessageRequestError + */ 'description': string; + /** + * + * @type {Array} + * @memberof CreateMessageRequestError + */ 'fieldErrors'?: Array; } diff --git a/models/create-multi-channel-message-response.ts b/models/create-multi-channel-message-response.ts index d1e3f90..f4f0d3e 100644 --- a/models/create-multi-channel-message-response.ts +++ b/models/create-multi-channel-message-response.ts @@ -23,9 +23,29 @@ import type { Link } from './link'; // @ts-ignore import type { MultiChannelMessageResponseData } from './multi-channel-message-response-data'; +/** + * + * @export + * @interface CreateMultiChannelMessageResponse + */ export interface CreateMultiChannelMessageResponse { + /** + * + * @type {Array} + * @memberof CreateMultiChannelMessageResponse + */ 'links'?: Array; + /** + * + * @type {MultiChannelMessageResponseData} + * @memberof CreateMultiChannelMessageResponse + */ 'data'?: MultiChannelMessageResponseData; + /** + * + * @type {Array} + * @memberof CreateMultiChannelMessageResponse + */ 'errors'?: Array; } diff --git a/models/create-sync-lookup-response-data.ts b/models/create-sync-lookup-response-data.ts index 805ae10..b3c4386 100644 --- a/models/create-sync-lookup-response-data.ts +++ b/models/create-sync-lookup-response-data.ts @@ -22,15 +22,26 @@ import type { LookupResult } from './lookup-result'; /** * The phone number lookup response data + * @export + * @interface CreateSyncLookupResponseData */ export interface CreateSyncLookupResponseData { /** * The phone number lookup request ID from Bandwidth. + * @type {string} + * @memberof CreateSyncLookupResponseData */ 'requestId'?: string; + /** + * + * @type {CompletedLookupStatusEnum} + * @memberof CreateSyncLookupResponseData + */ 'status'?: CompletedLookupStatusEnum; /** * The carrier information results for the specified telephone numbers. + * @type {Array} + * @memberof CreateSyncLookupResponseData */ 'results'?: Array; } diff --git a/models/create-sync-lookup-response.ts b/models/create-sync-lookup-response.ts index 28b4c91..1126a53 100644 --- a/models/create-sync-lookup-response.ts +++ b/models/create-sync-lookup-response.ts @@ -23,9 +23,29 @@ import type { LinkSchema } from './link-schema'; // @ts-ignore import type { LookupErrorSchema } from './lookup-error-schema'; +/** + * + * @export + * @interface CreateSyncLookupResponse + */ export interface CreateSyncLookupResponse { + /** + * + * @type {Array} + * @memberof CreateSyncLookupResponse + */ 'links'?: Array; + /** + * + * @type {CreateSyncLookupResponseData} + * @memberof CreateSyncLookupResponse + */ 'data'?: CreateSyncLookupResponseData; + /** + * + * @type {Array} + * @memberof CreateSyncLookupResponse + */ 'errors'?: Array; } diff --git a/models/deactivation-event-enum.ts b/models/deactivation-event-enum.ts index a87de5a..2a636aa 100644 --- a/models/deactivation-event-enum.ts +++ b/models/deactivation-event-enum.ts @@ -16,6 +16,8 @@ /** * [DNI-Only](#section/DNI-Only). `DEACTIVATED` if the carrier reported a deactivation event for this phone number. + * @export + * @enum {string} */ export const DeactivationEventEnum = { diff --git a/models/disconnect-callback.ts b/models/disconnect-callback.ts index 3c2afef..8d75588 100644 --- a/models/disconnect-callback.ts +++ b/models/disconnect-callback.ts @@ -19,71 +19,110 @@ import type { CallDirectionEnum } from './call-direction-enum'; /** * The Disconnect event is fired when a call ends, for any reason. + * @export + * @interface DisconnectCallback */ export interface DisconnectCallback { /** * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. + * @type {string} + * @memberof DisconnectCallback */ 'eventType'?: string; /** * The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. + * @type {string} + * @memberof DisconnectCallback */ 'eventTime'?: string; /** * The user account associated with the call. + * @type {string} + * @memberof DisconnectCallback */ 'accountId'?: string; /** * The id of the application associated with the call. + * @type {string} + * @memberof DisconnectCallback */ 'applicationId'?: string; /** * The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). + * @type {string} + * @memberof DisconnectCallback */ 'from'?: string; /** * The phone number that received the call, in E.164 format (e.g. +15555555555). + * @type {string} + * @memberof DisconnectCallback */ 'to'?: string; /** * The call id associated with the event. + * @type {string} + * @memberof DisconnectCallback */ 'callId'?: string; + /** + * + * @type {CallDirectionEnum} + * @memberof DisconnectCallback + */ 'direction'?: CallDirectionEnum; /** * The URL of the call associated with the event. + * @type {string} + * @memberof DisconnectCallback */ 'callUrl'?: string; /** * (optional) If call queueing is enabled and this is an outbound call, time the call was queued, in ISO 8601 format. + * @type {string} + * @memberof DisconnectCallback */ 'enqueuedTime'?: string | null; /** * Time the call was started, in ISO 8601 format. + * @type {string} + * @memberof DisconnectCallback */ 'startTime'?: string; /** * Time the call was answered, in ISO 8601 format. + * @type {string} + * @memberof DisconnectCallback */ 'answerTime'?: string | null; /** * The time that the recording ended in ISO-8601 format + * @type {string} + * @memberof DisconnectCallback */ 'endTime'?: string; /** * Reason the call failed - hangup, busy, timeout, cancel, rejected, callback-error, invalid-bxml, application-error, account-limit, node-capacity-exceeded, error, or unknown. + * @type {string} + * @memberof DisconnectCallback */ 'cause'?: string; /** * Text explaining the reason that caused the call to fail in case of errors. + * @type {string} + * @memberof DisconnectCallback */ 'errorMessage'?: string | null; /** * Bandwidth\'s internal id that references the error event. + * @type {string} + * @memberof DisconnectCallback */ 'errorId'?: string | null; /** * (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. + * @type {string} + * @memberof DisconnectCallback */ 'tag'?: string | null; } diff --git a/models/diversion.ts b/models/diversion.ts index 465b53d..b60f351 100644 --- a/models/diversion.ts +++ b/models/diversion.ts @@ -14,33 +14,52 @@ +/** + * + * @export + * @interface Diversion + */ export interface Diversion { /** * The reason for the diversion. Common values: unknown, user-busy, no-answer, unavailable, unconditional, time-of-day, do-not-disturb, deflection, follow-me, out-of-service, away. + * @type {string} + * @memberof Diversion */ 'reason'?: string; /** * off or full + * @type {string} + * @memberof Diversion */ 'privacy'?: string; /** * No if the number was provided by the user, yes if the number was provided by the network + * @type {string} + * @memberof Diversion */ 'screen'?: string; /** * The number of diversions that have occurred + * @type {string} + * @memberof Diversion */ 'counter'?: string; /** * The maximum number of diversions allowed for this session + * @type {string} + * @memberof Diversion */ 'limit'?: string; /** * The normal list of values is not exhaustive. Your application must be tolerant of unlisted keys and unlisted values of those keys. + * @type {string} + * @memberof Diversion */ 'unknown'?: string; /** * Always present. Indicates the last telephone number that the call was diverted from. + * @type {string} + * @memberof Diversion */ 'origTo'?: string; } diff --git a/models/dtmf-callback.ts b/models/dtmf-callback.ts index 48a57ac..c451e5f 100644 --- a/models/dtmf-callback.ts +++ b/models/dtmf-callback.ts @@ -19,71 +19,110 @@ import type { CallDirectionEnum } from './call-direction-enum'; /** * The DTMF event is sent for every digit detected after a verb is executed. You may not respond to this event with BXML. + * @export + * @interface DtmfCallback */ export interface DtmfCallback { /** * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. + * @type {string} + * @memberof DtmfCallback */ 'eventType'?: string; /** * The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. + * @type {string} + * @memberof DtmfCallback */ 'eventTime'?: string; /** * The user account associated with the call. + * @type {string} + * @memberof DtmfCallback */ 'accountId'?: string; /** * The id of the application associated with the call. + * @type {string} + * @memberof DtmfCallback */ 'applicationId'?: string; /** * The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). + * @type {string} + * @memberof DtmfCallback */ 'from'?: string; /** * The phone number that received the call, in E.164 format (e.g. +15555555555). + * @type {string} + * @memberof DtmfCallback */ 'to'?: string; /** * The call id associated with the event. + * @type {string} + * @memberof DtmfCallback */ 'callId'?: string; + /** + * + * @type {CallDirectionEnum} + * @memberof DtmfCallback + */ 'direction'?: CallDirectionEnum; /** * The digit collected in the call. + * @type {string} + * @memberof DtmfCallback */ 'digit'?: string; /** * The URL of the call associated with the event. + * @type {string} + * @memberof DtmfCallback */ 'callUrl'?: string; /** * (optional) If call queueing is enabled and this is an outbound call, time the call was queued, in ISO 8601 format. + * @type {string} + * @memberof DtmfCallback */ 'enqueuedTime'?: string | null; /** * Time the call was started, in ISO 8601 format. + * @type {string} + * @memberof DtmfCallback */ 'startTime'?: string; /** * Time the call was answered, in ISO 8601 format. + * @type {string} + * @memberof DtmfCallback */ 'answerTime'?: string | null; /** * (optional) If the event is related to the B leg of a , the call id of the original call leg that executed the . Otherwise, this field will not be present. + * @type {string} + * @memberof DtmfCallback */ 'parentCallId'?: string; /** * The phone number used as the from field of the B-leg call, in E.164 format (e.g. +15555555555). + * @type {string} + * @memberof DtmfCallback */ 'transferCallerId'?: string; /** * The phone number used as the to field of the B-leg call, in E.164 format (e.g. +15555555555). + * @type {string} + * @memberof DtmfCallback */ 'transferTo'?: string; /** * (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. + * @type {string} + * @memberof DtmfCallback */ 'tag'?: string | null; } diff --git a/models/error-object.ts b/models/error-object.ts index 5a81a39..1868b36 100644 --- a/models/error-object.ts +++ b/models/error-object.ts @@ -17,15 +17,29 @@ // @ts-ignore import type { ErrorSource } from './error-source'; +/** + * + * @export + * @interface ErrorObject + */ export interface ErrorObject { /** * A concise summary of the error used for categorization. + * @type {string} + * @memberof ErrorObject */ 'type': string; /** * A detailed explanation of the error. + * @type {string} + * @memberof ErrorObject */ 'description': string; + /** + * + * @type {ErrorSource} + * @memberof ErrorObject + */ 'source': ErrorSource; } diff --git a/models/error-source.ts b/models/error-source.ts index 716cf0f..4c61468 100644 --- a/models/error-source.ts +++ b/models/error-source.ts @@ -16,22 +16,32 @@ /** * Specifies relevant sources of the error, if any. + * @export + * @interface ErrorSource */ export interface ErrorSource { /** * The relevant URI query parameter causing the error + * @type {string} + * @memberof ErrorSource */ 'parameter'?: string; /** * The request body field that led to the error + * @type {string} + * @memberof ErrorSource */ 'field'?: string; /** * The header field that contributed to the error + * @type {string} + * @memberof ErrorSource */ 'header'?: string; /** * A resource ID or path linked to the error + * @type {string} + * @memberof ErrorSource */ 'reference'?: string; } diff --git a/models/failure-webhook.ts b/models/failure-webhook.ts index f183db9..93061ab 100644 --- a/models/failure-webhook.ts +++ b/models/failure-webhook.ts @@ -14,29 +14,46 @@ +/** + * + * @export + * @interface FailureWebhook + */ export interface FailureWebhook { /** * User\'s account ID. + * @type {string} + * @memberof FailureWebhook */ 'accountId'?: string; /** * Toll-free telephone number in E.164 format. + * @type {string} + * @memberof FailureWebhook */ 'phoneNumber'?: string; /** * An error code indicating what error was encountered. This code can be interpreted as an HTTP status code in regards to the error that was encountered. + * @type {string} + * @memberof FailureWebhook */ 'errorCode'?: string; /** * A description of the error that was encountered. + * @type {string} + * @memberof FailureWebhook */ 'errorMessage'?: string; /** * Details of the errors that were encountered when processing the request. + * @type {Array} + * @memberof FailureWebhook */ 'errors'?: Array; /** * Unique identifier (UUID) generated by Bandwidth to assist in tracking the verification status of a toll-free number. + * @type {string} + * @memberof FailureWebhook */ 'internalTicketNumber'?: string; } diff --git a/models/field-error.ts b/models/field-error.ts index f29b30f..5b8ba60 100644 --- a/models/field-error.ts +++ b/models/field-error.ts @@ -14,13 +14,22 @@ +/** + * + * @export + * @interface FieldError + */ export interface FieldError { /** * The name of the field that contains the error + * @type {string} + * @memberof FieldError */ 'fieldName'?: string; /** * The error associated with the field + * @type {string} + * @memberof FieldError */ 'description'?: string; } diff --git a/models/file-format-enum.ts b/models/file-format-enum.ts index c640501..4e845ac 100644 --- a/models/file-format-enum.ts +++ b/models/file-format-enum.ts @@ -16,6 +16,8 @@ /** * The format that the recording is stored in. + * @export + * @enum {string} */ export const FileFormatEnum = { diff --git a/models/gather-callback.ts b/models/gather-callback.ts index 0af1b08..6c88f76 100644 --- a/models/gather-callback.ts +++ b/models/gather-callback.ts @@ -19,75 +19,116 @@ import type { CallDirectionEnum } from './call-direction-enum'; /** * The gather event is sent after a verb is executed. Its purpose is to report the gathered digits to the calling application. + * @export + * @interface GatherCallback */ export interface GatherCallback { /** * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. + * @type {string} + * @memberof GatherCallback */ 'eventType'?: string; /** * The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. + * @type {string} + * @memberof GatherCallback */ 'eventTime'?: string; /** * The user account associated with the call. + * @type {string} + * @memberof GatherCallback */ 'accountId'?: string; /** * The id of the application associated with the call. + * @type {string} + * @memberof GatherCallback */ 'applicationId'?: string; /** * The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). + * @type {string} + * @memberof GatherCallback */ 'from'?: string; /** * The phone number that received the call, in E.164 format (e.g. +15555555555). + * @type {string} + * @memberof GatherCallback */ 'to'?: string; + /** + * + * @type {CallDirectionEnum} + * @memberof GatherCallback + */ 'direction'?: CallDirectionEnum; /** * The call id associated with the event. + * @type {string} + * @memberof GatherCallback */ 'callId'?: string; /** * (optional) The digits, letters, and/or symbols entered by the user. The string is empty if a timeout occurred before any buttons were pressed. + * @type {string} + * @memberof GatherCallback */ 'digits'?: string; /** * The URL of the call associated with the event. + * @type {string} + * @memberof GatherCallback */ 'callUrl'?: string; /** * (optional) If call queueing is enabled and this is an outbound call, time the call was queued, in ISO 8601 format. + * @type {string} + * @memberof GatherCallback */ 'enqueuedTime'?: string | null; /** * Time the call was started, in ISO 8601 format. + * @type {string} + * @memberof GatherCallback */ 'startTime'?: string; /** * Time the call was answered, in ISO 8601 format. + * @type {string} + * @memberof GatherCallback */ 'answerTime'?: string | null; /** * (optional) If the event is related to the B leg of a , the call id of the original call leg that executed the . Otherwise, this field will not be present. + * @type {string} + * @memberof GatherCallback */ 'parentCallId'?: string; /** * (optional) The digit the user pressed to end the gather. Empty string value if no terminating digit was pressed. + * @type {string} + * @memberof GatherCallback */ 'terminatingDigit'?: string; /** * The phone number used as the from field of the B-leg call, in E.164 format (e.g. +15555555555). + * @type {string} + * @memberof GatherCallback */ 'transferCallerId'?: string; /** * The phone number used as the to field of the B-leg call, in E.164 format (e.g. +15555555555). + * @type {string} + * @memberof GatherCallback */ 'transferTo'?: string; /** * (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. + * @type {string} + * @memberof GatherCallback */ 'tag'?: string | null; } diff --git a/models/get-async-bulk-lookup-response-data.ts b/models/get-async-bulk-lookup-response-data.ts index 80494bc..a11bb0c 100644 --- a/models/get-async-bulk-lookup-response-data.ts +++ b/models/get-async-bulk-lookup-response-data.ts @@ -22,15 +22,26 @@ import type { LookupResult } from './lookup-result'; /** * The phone number lookup response data + * @export + * @interface GetAsyncBulkLookupResponseData */ export interface GetAsyncBulkLookupResponseData { /** * The phone number lookup request ID from Bandwidth. + * @type {string} + * @memberof GetAsyncBulkLookupResponseData */ 'requestId'?: string; + /** + * + * @type {InProgressLookupStatusEnum} + * @memberof GetAsyncBulkLookupResponseData + */ 'status'?: InProgressLookupStatusEnum; /** * The carrier information results for the specified telephone number. + * @type {Array} + * @memberof GetAsyncBulkLookupResponseData */ 'results'?: Array; } diff --git a/models/get-async-bulk-lookup-response.ts b/models/get-async-bulk-lookup-response.ts index ea4e41a..264f895 100644 --- a/models/get-async-bulk-lookup-response.ts +++ b/models/get-async-bulk-lookup-response.ts @@ -23,9 +23,29 @@ import type { LinkSchema } from './link-schema'; // @ts-ignore import type { LookupErrorSchema } from './lookup-error-schema'; +/** + * + * @export + * @interface GetAsyncBulkLookupResponse + */ export interface GetAsyncBulkLookupResponse { + /** + * + * @type {Array} + * @memberof GetAsyncBulkLookupResponse + */ 'links'?: Array; + /** + * + * @type {GetAsyncBulkLookupResponseData} + * @memberof GetAsyncBulkLookupResponse + */ 'data'?: GetAsyncBulkLookupResponseData; + /** + * + * @type {Array} + * @memberof GetAsyncBulkLookupResponse + */ 'errors'?: Array; } diff --git a/models/in-progress-lookup-status-enum.ts b/models/in-progress-lookup-status-enum.ts index 982d612..3ee945a 100644 --- a/models/in-progress-lookup-status-enum.ts +++ b/models/in-progress-lookup-status-enum.ts @@ -14,6 +14,11 @@ +/** + * + * @export + * @enum {string} + */ export const InProgressLookupStatusEnum = { InProgress: 'IN_PROGRESS', diff --git a/models/inbound-callback-message.ts b/models/inbound-callback-message.ts index 28e609a..47c59f6 100644 --- a/models/inbound-callback-message.ts +++ b/models/inbound-callback-message.ts @@ -37,6 +37,7 @@ import type { StatusCallbackMessage } from './status-callback-message'; /** * @type InboundCallbackMessage + * @export */ export type InboundCallbackMessage = StatusCallbackMessage; diff --git a/models/inbound-callback-type-enum.ts b/models/inbound-callback-type-enum.ts index bb29bbe..c60b809 100644 --- a/models/inbound-callback-type-enum.ts +++ b/models/inbound-callback-type-enum.ts @@ -16,6 +16,8 @@ /** * The possible inbound callback types originating from MO messages or multichannel message client responses: - `message-received` indicates an MO message from a Bandwidth user\'s client to a Bandwidth number. - `request-location-response` indicates a response to a location request sent by the Bandwidth user\'s client after receiving an RBM message. - `suggestion-response` indicates a response to a suggestion sent by the Bandwidth user\'s client after receiving an RBM message. + * @export + * @enum {string} */ export const InboundCallbackTypeEnum = { diff --git a/models/inbound-callback.ts b/models/inbound-callback.ts index 7080ef7..546695e 100644 --- a/models/inbound-callback.ts +++ b/models/inbound-callback.ts @@ -22,21 +22,44 @@ import type { InboundCallbackTypeEnum } from './inbound-callback-type-enum'; /** * Represents an inbound callback. + * @export + * @interface InboundCallback */ export interface InboundCallback { + /** + * + * @type {string} + * @memberof InboundCallback + */ 'time': string; + /** + * + * @type {InboundCallbackTypeEnum} + * @memberof InboundCallback + */ 'type': InboundCallbackTypeEnum; /** * The destination phone number the message was sent to. For inbound callbacks, this is the Bandwidth number or alphanumeric identifier that received the message. + * @type {string} + * @memberof InboundCallback */ 'to': string; /** * A detailed description of the event described by the callback. + * @type {string} + * @memberof InboundCallback */ 'description': string; + /** + * + * @type {InboundCallbackMessage} + * @memberof InboundCallback + */ 'message': InboundCallbackMessage; /** * The name of the Authorized Message Provider (AMP) that handled this message. In the US, this is the carrier that the message was sent to. This field is present only when this account feature has been enabled. + * @type {string} + * @memberof InboundCallback */ 'carrierName'?: string; } diff --git a/models/initiate-callback.ts b/models/initiate-callback.ts index 87abcf8..bbef765 100644 --- a/models/initiate-callback.ts +++ b/models/initiate-callback.ts @@ -25,49 +25,86 @@ import type { StirShaken } from './stir-shaken'; /** * The Initiate event is fired when an inbound call is received for a Telephone Number on your Account. It is sent to the URL specified in the application associated with the location (sip-peer) that the called telephone number belongs to. + * @export + * @interface InitiateCallback */ export interface InitiateCallback { /** * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. + * @type {string} + * @memberof InitiateCallback */ 'eventType'?: string; /** * The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. + * @type {string} + * @memberof InitiateCallback */ 'eventTime'?: string; /** * The user account associated with the call. + * @type {string} + * @memberof InitiateCallback */ 'accountId'?: string; /** * The id of the application associated with the call. + * @type {string} + * @memberof InitiateCallback */ 'applicationId'?: string; /** * The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). + * @type {string} + * @memberof InitiateCallback */ 'from'?: string; /** * The phone number that received the call, in E.164 format (e.g. +15555555555). + * @type {string} + * @memberof InitiateCallback */ 'to'?: string; + /** + * + * @type {CallDirectionEnum} + * @memberof InitiateCallback + */ 'direction'?: CallDirectionEnum; /** * The call id associated with the event. + * @type {string} + * @memberof InitiateCallback */ 'callId'?: string; /** * The URL of the call associated with the event. + * @type {string} + * @memberof InitiateCallback */ 'callUrl'?: string; /** * Time the call was started, in ISO 8601 format. + * @type {string} + * @memberof InitiateCallback */ 'startTime'?: string; + /** + * + * @type {Diversion} + * @memberof InitiateCallback + */ 'diversion'?: Diversion; + /** + * + * @type {StirShaken} + * @memberof InitiateCallback + */ 'stirShaken'?: StirShaken; /** * The value of the `User-To-User` header to send within the initial `INVITE`. Must include the encoding parameter as specified in RFC 7433. Only `base64`, `jwt` and `hex` encoding are currently allowed. This value, including the encoding specifier, may not exceed 256 characters. + * @type {string} + * @memberof InitiateCallback */ 'uui'?: string; } diff --git a/models/latest-message-delivery-status-enum.ts b/models/latest-message-delivery-status-enum.ts index 2ad3edb..a721a0b 100644 --- a/models/latest-message-delivery-status-enum.ts +++ b/models/latest-message-delivery-status-enum.ts @@ -16,6 +16,8 @@ /** * [DNI-Only](#section/DNI-Only). The current delivery status of the phone number. - ACTIVE: A message was successfully sent to the number (delivery code 0). - DEACTIVATED: A message was not delivered to a number (delivery code 720) - UNKNOWN: Bandwidth cannot find an delivery status entry for the number. + * @export + * @enum {string} */ export const LatestMessageDeliveryStatusEnum = { diff --git a/models/line-type-enum.ts b/models/line-type-enum.ts index 6b2694f..a7caa36 100644 --- a/models/line-type-enum.ts +++ b/models/line-type-enum.ts @@ -14,6 +14,11 @@ +/** + * + * @export + * @enum {string} + */ export const LineTypeEnum = { Fixed: 'FIXED', diff --git a/models/link-schema.ts b/models/link-schema.ts index 189210f..f44fa63 100644 --- a/models/link-schema.ts +++ b/models/link-schema.ts @@ -14,17 +14,28 @@ +/** + * + * @export + * @interface LinkSchema + */ export interface LinkSchema { /** * URI of the link. + * @type {string} + * @memberof LinkSchema */ 'href'?: string; /** * Specifies the relationship between this link and the resource. + * @type {string} + * @memberof LinkSchema */ 'rel'?: string; /** * HTTP method to be used. + * @type {string} + * @memberof LinkSchema */ 'method'?: string; } diff --git a/models/link.ts b/models/link.ts index db18d4c..a528414 100644 --- a/models/link.ts +++ b/models/link.ts @@ -14,8 +14,23 @@ +/** + * + * @export + * @interface Link + */ export interface Link { + /** + * + * @type {string} + * @memberof Link + */ 'rel'?: string; + /** + * + * @type {string} + * @memberof Link + */ 'href'?: string; } diff --git a/models/links-object.ts b/models/links-object.ts index 4502eaf..52a5fb3 100644 --- a/models/links-object.ts +++ b/models/links-object.ts @@ -14,21 +14,34 @@ +/** + * + * @export + * @interface LinksObject + */ export interface LinksObject { /** * The first (or only) page of results matching the query. + * @type {string} + * @memberof LinksObject */ 'first'?: string; /** * If more results exist than specified by \'size\', this link returns the next page of \'size\' results. + * @type {string} + * @memberof LinksObject */ 'next'?: string; /** * If the results are more than one page, this link returns the previous page of \'size\' results. + * @type {string} + * @memberof LinksObject */ 'previous'?: string; /** * If more results exist than specified by \'size\', this link return the last page of result. + * @type {string} + * @memberof LinksObject */ 'last'?: string; } diff --git a/models/list-message-direction-enum.ts b/models/list-message-direction-enum.ts index 4bc436d..d6c5b1a 100644 --- a/models/list-message-direction-enum.ts +++ b/models/list-message-direction-enum.ts @@ -16,6 +16,8 @@ /** * The direction of the message. One of INBOUND OUTBOUND. + * @export + * @enum {string} */ export const ListMessageDirectionEnum = { diff --git a/models/list-message-item.ts b/models/list-message-item.ts index 980737b..45aa7d1 100644 --- a/models/list-message-item.ts +++ b/models/list-message-item.ts @@ -23,88 +23,148 @@ import type { MessageStatusEnum } from './message-status-enum'; // @ts-ignore import type { MessageTypeEnum } from './message-type-enum'; +/** + * + * @export + * @interface ListMessageItem + */ export interface ListMessageItem { /** * The message id + * @type {string} + * @memberof ListMessageItem */ 'messageId'?: string; /** * The account id associated with this message. + * @type {string} + * @memberof ListMessageItem */ 'accountId'?: string; /** * The source phone number of the message. + * @type {string} + * @memberof ListMessageItem */ 'sourceTn'?: string; /** * The recipient phone number of the message. + * @type {string} + * @memberof ListMessageItem */ 'destinationTn'?: string; + /** + * + * @type {MessageStatusEnum} + * @memberof ListMessageItem + */ 'messageStatus'?: MessageStatusEnum; + /** + * + * @type {ListMessageDirectionEnum} + * @memberof ListMessageItem + */ 'messageDirection'?: ListMessageDirectionEnum; + /** + * + * @type {MessageTypeEnum} + * @memberof ListMessageItem + */ 'messageType'?: MessageTypeEnum; /** * The number of segments the user\'s message is broken into before sending over carrier networks. + * @type {number} + * @memberof ListMessageItem */ 'segmentCount'?: number; /** * The numeric error code of the message. + * @type {number} + * @memberof ListMessageItem */ 'errorCode'?: number; /** * The ISO 8601 datetime of the message. + * @type {string} + * @memberof ListMessageItem */ 'receiveTime'?: string; /** * The name of the carrier. Not currently supported for MMS coming soon. + * @type {string} + * @memberof ListMessageItem */ 'carrierName'?: string | null; /** * The size of the message including message content and headers. + * @type {number} + * @memberof ListMessageItem */ 'messageSize'?: number | null; /** * The length of the message content. + * @type {number} + * @memberof ListMessageItem */ 'messageLength'?: number; /** * The number of attachments the message has. + * @type {number} + * @memberof ListMessageItem */ 'attachmentCount'?: number | null; /** * The number of recipients the message has. + * @type {number} + * @memberof ListMessageItem */ 'recipientCount'?: number | null; /** * The campaign class of the message if it has one. + * @type {string} + * @memberof ListMessageItem */ 'campaignClass'?: string | null; /** * The campaign ID of the message if it has one. + * @type {string} + * @memberof ListMessageItem */ 'campaignId'?: string | null; /** * The Bandwidth latency of the message in seconds. Only available for accounts with the Advanced Quality Metrics feature enabled. + * @type {number} + * @memberof ListMessageItem */ 'bwLatency'?: number | null; /** * The carrier latency of the message in seconds. Only available for OUTBOUND messages from accounts with the Advanced Quality Metrics feature enabled. + * @type {number} + * @memberof ListMessageItem */ 'carrierLatency'?: number | null; /** * The A3 country code of the calling number. + * @type {string} + * @memberof ListMessageItem */ 'callingNumberCountryA3'?: string | null; /** * The A3 country code of the called number. + * @type {string} + * @memberof ListMessageItem */ 'calledNumberCountryA3'?: string | null; /** * The messaging product associated with the message. + * @type {string} + * @memberof ListMessageItem */ 'product'?: string | null; /** * The location ID associated with this message. + * @type {string} + * @memberof ListMessageItem */ 'location'?: string | null; } diff --git a/models/lookup-error-response.ts b/models/lookup-error-response.ts index bc938ea..a25b5b1 100644 --- a/models/lookup-error-response.ts +++ b/models/lookup-error-response.ts @@ -20,12 +20,29 @@ import type { LinkSchema } from './link-schema'; // @ts-ignore import type { LookupErrorSchema } from './lookup-error-schema'; +/** + * + * @export + * @interface LookupErrorResponse + */ export interface LookupErrorResponse { + /** + * + * @type {Array} + * @memberof LookupErrorResponse + */ 'links'?: Array; /** * The phone number lookup response data + * @type {object} + * @memberof LookupErrorResponse */ 'data'?: object; + /** + * + * @type {Array} + * @memberof LookupErrorResponse + */ 'errors'?: Array; } diff --git a/models/lookup-error-schema-meta.ts b/models/lookup-error-schema-meta.ts index 17d23b2..8eeb557 100644 --- a/models/lookup-error-schema-meta.ts +++ b/models/lookup-error-schema-meta.ts @@ -14,14 +14,28 @@ +/** + * + * @export + * @interface LookupErrorSchemaMeta + */ export interface LookupErrorSchemaMeta { + /** + * + * @type {Array} + * @memberof LookupErrorSchemaMeta + */ 'phoneNumbers'?: Array; /** * Message describing the error + * @type {string} + * @memberof LookupErrorSchemaMeta */ 'message'?: string; /** * Error code associated with the message + * @type {number} + * @memberof LookupErrorSchemaMeta */ 'code'?: number; } diff --git a/models/lookup-error-schema.ts b/models/lookup-error-schema.ts index 7ec687e..7944b79 100644 --- a/models/lookup-error-schema.ts +++ b/models/lookup-error-schema.ts @@ -17,19 +17,35 @@ // @ts-ignore import type { LookupErrorSchemaMeta } from './lookup-error-schema-meta'; +/** + * + * @export + * @interface LookupErrorSchema + */ export interface LookupErrorSchema { /** * Validation error code + * @type {string} + * @memberof LookupErrorSchema */ 'code'?: string; /** * Description of validation error + * @type {string} + * @memberof LookupErrorSchema */ 'description'?: string; /** * Type of validation error + * @type {string} + * @memberof LookupErrorSchema */ 'type'?: string; + /** + * + * @type {LookupErrorSchemaMeta} + * @memberof LookupErrorSchema + */ 'meta'?: LookupErrorSchemaMeta; } diff --git a/models/lookup-result.ts b/models/lookup-result.ts index 7592687..ce09bbe 100644 --- a/models/lookup-result.ts +++ b/models/lookup-result.ts @@ -25,41 +25,74 @@ import type { LineTypeEnum } from './line-type-enum'; /** * Carrier information results for the specified telephone number. + * @export + * @interface LookupResult */ export interface LookupResult { /** * The telephone number in E.164 format. + * @type {string} + * @memberof LookupResult */ 'phoneNumber'?: string; + /** + * + * @type {LineTypeEnum} + * @memberof LookupResult + */ 'lineType'?: LineTypeEnum; /** * The messaging service provider of the telephone number. + * @type {string} + * @memberof LookupResult */ 'messagingProvider'?: string; /** * The voice service provider of the telephone number. + * @type {string} + * @memberof LookupResult */ 'voiceProvider'?: string; /** * The country code of the telephone number in ISO 3166-1 alpha-3 format. + * @type {string} + * @memberof LookupResult */ 'countryCodeA3'?: string; /** * [DNI-Only](#section/DNI-Only). The carrier that reported a deactivation event for this phone number. + * @type {string} + * @memberof LookupResult */ 'deactivationReporter'?: string; /** * [DNI-Only](#section/DNI-Only). The datetime the carrier reported a deactivation event. + * @type {string} + * @memberof LookupResult */ 'deactivationDate'?: string; + /** + * + * @type {DeactivationEventEnum} + * @memberof LookupResult + */ 'deactivationEvent'?: DeactivationEventEnum; + /** + * + * @type {LatestMessageDeliveryStatusEnum} + * @memberof LookupResult + */ 'latestMessageDeliveryStatus'?: LatestMessageDeliveryStatusEnum; /** * [DNI-Only](#section/DNI-Only). The date the phone number entered the status described in `latestMessageDeliveryStatus`. Think of this as the \"start time\" for that status. Value resets every time the `latestMessageDeliveryStatus` changes. + * @type {string} + * @memberof LookupResult */ 'initialMessageDeliveryStatusDate'?: string; /** * [DNI-Only](#section/DNI-Only). The date bandwidth last received delivery status information for this phone number. Use this field to understand how up-to-date the `latestMessageDeliveryStatus` is. Value resets every time the `latestMessageDeliveryStatus` changes. + * @type {string} + * @memberof LookupResult */ 'latestMessageDeliveryStatusDate'?: string; } diff --git a/models/machine-detection-complete-callback.ts b/models/machine-detection-complete-callback.ts index 8212114..da3746c 100644 --- a/models/machine-detection-complete-callback.ts +++ b/models/machine-detection-complete-callback.ts @@ -22,57 +22,93 @@ import type { MachineDetectionResult } from './machine-detection-result'; /** * This event is sent to the url informed when requesting a machine detection operation. It contains the machine detection operation result, which can be: human, answering-machine, silence, timeout, error. This event is not sent when sync answering machine detection mode is chosen. + * @export + * @interface MachineDetectionCompleteCallback */ export interface MachineDetectionCompleteCallback { /** * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. + * @type {string} + * @memberof MachineDetectionCompleteCallback */ 'eventType'?: string; /** * The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. + * @type {string} + * @memberof MachineDetectionCompleteCallback */ 'eventTime'?: string; /** * The user account associated with the call. + * @type {string} + * @memberof MachineDetectionCompleteCallback */ 'accountId'?: string; /** * The id of the application associated with the call. + * @type {string} + * @memberof MachineDetectionCompleteCallback */ 'applicationId'?: string; /** * The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). + * @type {string} + * @memberof MachineDetectionCompleteCallback */ 'from'?: string; /** * The phone number that received the call, in E.164 format (e.g. +15555555555). + * @type {string} + * @memberof MachineDetectionCompleteCallback */ 'to'?: string; + /** + * + * @type {CallDirectionEnum} + * @memberof MachineDetectionCompleteCallback + */ 'direction'?: CallDirectionEnum; /** * The call id associated with the event. + * @type {string} + * @memberof MachineDetectionCompleteCallback */ 'callId'?: string; /** * The URL of the call associated with the event. + * @type {string} + * @memberof MachineDetectionCompleteCallback */ 'callUrl'?: string; /** * (optional) If call queueing is enabled and this is an outbound call, time the call was queued, in ISO 8601 format. + * @type {string} + * @memberof MachineDetectionCompleteCallback */ 'enqueuedTime'?: string | null; /** * Time the call was started, in ISO 8601 format. + * @type {string} + * @memberof MachineDetectionCompleteCallback */ 'startTime'?: string; /** * Time the call was answered, in ISO 8601 format. + * @type {string} + * @memberof MachineDetectionCompleteCallback */ 'answerTime'?: string | null; /** * (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. + * @type {string} + * @memberof MachineDetectionCompleteCallback */ 'tag'?: string | null; + /** + * + * @type {MachineDetectionResult} + * @memberof MachineDetectionCompleteCallback + */ 'machineDetectionResult'?: MachineDetectionResult | null; } diff --git a/models/machine-detection-configuration.ts b/models/machine-detection-configuration.ts index ab04051..ef87f15 100644 --- a/models/machine-detection-configuration.ts +++ b/models/machine-detection-configuration.ts @@ -22,57 +22,98 @@ import type { MachineDetectionModeEnum } from './machine-detection-mode-enum'; /** * The machine detection request used to perform machine detection on the call. Currently, there is an issue where decimal values are not getting processed correctly. Please use whole number values. We are working to resolve this issue. Please contact Bandwidth Support if you need more information. + * @export + * @interface MachineDetectionConfiguration */ export interface MachineDetectionConfiguration { + /** + * + * @type {MachineDetectionModeEnum} + * @memberof MachineDetectionConfiguration + */ 'mode'?: MachineDetectionModeEnum; /** * The timeout used for the whole operation, in seconds. If no result is determined in this period, a callback with a `timeout` result is sent. + * @type {number} + * @memberof MachineDetectionConfiguration */ 'detectionTimeout'?: number | null; /** * If no speech is detected in this period, a callback with a \'silence\' result is sent. + * @type {number} + * @memberof MachineDetectionConfiguration */ 'silenceTimeout'?: number | null; /** * When speech has ended and a result couldn\'t be determined based on the audio content itself, this value is used to determine if the speaker is a machine based on the speech duration. If the length of the speech detected is greater than or equal to this threshold, the result will be \'answering-machine\'. If the length of speech detected is below this threshold, the result will be \'human\'. + * @type {number} + * @memberof MachineDetectionConfiguration */ 'speechThreshold'?: number | null; /** * Amount of silence (in seconds) before assuming the callee has finished speaking. + * @type {number} + * @memberof MachineDetectionConfiguration */ 'speechEndThreshold'?: number | null; /** * When an answering machine is detected, the amount of silence (in seconds) before assuming the message has finished playing. If not provided it will default to the speechEndThreshold value. + * @type {number} + * @memberof MachineDetectionConfiguration */ 'machineSpeechEndThreshold'?: number | null; /** * If set to \'true\' and if an answering machine is detected, the \'answering-machine\' callback will be delayed until the machine is done speaking, or an end of message tone is detected, or until the \'detectionTimeout\' is exceeded. If false, the \'answering-machine\' result is sent immediately. + * @type {boolean} + * @memberof MachineDetectionConfiguration */ 'delayResult'?: boolean | null; /** * The URL to send the \'machineDetectionComplete\' webhook when the detection is completed. Only for \'async\' mode. + * @type {string} + * @memberof MachineDetectionConfiguration */ 'callbackUrl'?: string | null; + /** + * + * @type {CallbackMethodEnum} + * @memberof MachineDetectionConfiguration + */ 'callbackMethod'?: CallbackMethodEnum | null; /** * Basic auth username. + * @type {string} + * @memberof MachineDetectionConfiguration */ 'username'?: string | null; /** * Basic auth password. + * @type {string} + * @memberof MachineDetectionConfiguration */ 'password'?: string | null; /** * A fallback URL which, if provided, will be used to retry the machine detection complete webhook delivery in case `callbackUrl` fails to respond + * @type {string} + * @memberof MachineDetectionConfiguration */ 'fallbackUrl'?: string | null; + /** + * + * @type {CallbackMethodEnum} + * @memberof MachineDetectionConfiguration + */ 'fallbackMethod'?: CallbackMethodEnum | null; /** * Basic auth username. + * @type {string} + * @memberof MachineDetectionConfiguration */ 'fallbackUsername'?: string | null; /** * Basic auth password. + * @type {string} + * @memberof MachineDetectionConfiguration */ 'fallbackPassword'?: string | null; } diff --git a/models/machine-detection-mode-enum.ts b/models/machine-detection-mode-enum.ts index fd9e732..64012eb 100644 --- a/models/machine-detection-mode-enum.ts +++ b/models/machine-detection-mode-enum.ts @@ -16,6 +16,8 @@ /** * The machine detection mode. If set to \'async\', the detection result will be sent in a \'machineDetectionComplete\' callback. If set to \'sync\', the \'answer\' callback will wait for the machine detection to complete and will include its result. + * @export + * @enum {string} */ export const MachineDetectionModeEnum = { diff --git a/models/machine-detection-result.ts b/models/machine-detection-result.ts index a90173b..8a7aea4 100644 --- a/models/machine-detection-result.ts +++ b/models/machine-detection-result.ts @@ -16,14 +16,20 @@ /** * (optional) if machine detection was requested in sync mode, the result will be specified here. Possible values are the same as the async counterpart: Machine Detection Complete + * @export + * @interface MachineDetectionResult */ export interface MachineDetectionResult { /** * Possible values are answering-machine, human, silence, timeout, or error. + * @type {string} + * @memberof MachineDetectionResult */ 'value'?: string; /** * The amount of time it took to determine the result. + * @type {string} + * @memberof MachineDetectionResult */ 'duration'?: string; } diff --git a/models/media.ts b/models/media.ts index 719aef5..6c395df 100644 --- a/models/media.ts +++ b/models/media.ts @@ -14,9 +14,29 @@ +/** + * + * @export + * @interface Media + */ export interface Media { + /** + * + * @type {string} + * @memberof Media + */ 'content'?: string; + /** + * + * @type {number} + * @memberof Media + */ 'contentLength'?: number; + /** + * + * @type {string} + * @memberof Media + */ 'mediaName'?: string; } diff --git a/models/message-direction-enum.ts b/models/message-direction-enum.ts index ba7c228..b23f8dd 100644 --- a/models/message-direction-enum.ts +++ b/models/message-direction-enum.ts @@ -16,6 +16,8 @@ /** * The direction of the message. One of in out. + * @export + * @enum {string} */ export const MessageDirectionEnum = { diff --git a/models/message-request.ts b/models/message-request.ts index 7dee1d1..d3e5d7d 100644 --- a/models/message-request.ts +++ b/models/message-request.ts @@ -17,34 +17,58 @@ // @ts-ignore import type { PriorityEnum } from './priority-enum'; +/** + * + * @export + * @interface MessageRequest + */ export interface MessageRequest { /** * The ID of the Application your from number or senderId is associated with in the Bandwidth Phone Number Dashboard. + * @type {string} + * @memberof MessageRequest */ 'applicationId': string; /** * The phone number(s) the message should be sent to in E164 format. + * @type {Set} + * @memberof MessageRequest */ 'to': Set; /** * Either an alphanumeric sender ID or the sender\'s Bandwidth phone number in E.164 format, which must be hosted within Bandwidth and linked to the account that is generating the message. Alphanumeric Sender IDs can contain up to 11 characters, upper-case letters A-Z, lower-case letters a-z, numbers 0-9, space, hyphen -, plus +, underscore _ and ampersand &. Alphanumeric Sender IDs must contain at least one letter. + * @type {string} + * @memberof MessageRequest */ 'from': string; /** * The contents of the text message. Must be 2048 characters or less. + * @type {string} + * @memberof MessageRequest */ 'text'?: string; /** * A list of URLs to include as media attachments as part of the message. Each URL can be at most 4096 characters. + * @type {Array} + * @memberof MessageRequest */ 'media'?: Array; /** * A custom string that will be included in callback events of the message. Max 1024 characters. + * @type {string} + * @memberof MessageRequest */ 'tag'?: string; + /** + * + * @type {PriorityEnum} + * @memberof MessageRequest + */ 'priority'?: PriorityEnum; /** * A string with the date/time value that the message will automatically expire by. This must be a valid RFC-3339 value, e.g., 2021-03-14T01:59:26Z or 2021-03-13T20:59:26-05:00. Must be a date-time in the future. + * @type {string} + * @memberof MessageRequest */ 'expiration'?: string; } diff --git a/models/message-status-enum.ts b/models/message-status-enum.ts index d4c71b4..972f175 100644 --- a/models/message-status-enum.ts +++ b/models/message-status-enum.ts @@ -16,6 +16,8 @@ /** * The status of the message. One of RECEIVED QUEUED SENDING SENT FAILED DELIVERED ACCEPTED UNDELIVERED. + * @export + * @enum {string} */ export const MessageStatusEnum = { diff --git a/models/message-type-enum.ts b/models/message-type-enum.ts index bbe3253..4290875 100644 --- a/models/message-type-enum.ts +++ b/models/message-type-enum.ts @@ -16,6 +16,8 @@ /** * The type of message. Either SMS or MMS. + * @export + * @enum {string} */ export const MessageTypeEnum = { diff --git a/models/message.ts b/models/message.ts index 454d62e..288279e 100644 --- a/models/message.ts +++ b/models/message.ts @@ -20,51 +20,88 @@ import type { MessageDirectionEnum } from './message-direction-enum'; // @ts-ignore import type { PriorityEnum } from './priority-enum'; +/** + * + * @export + * @interface Message + */ export interface Message { /** * The id of the message. + * @type {string} + * @memberof Message */ 'id'?: string; /** * The Bandwidth phone number associated with the message. + * @type {string} + * @memberof Message */ 'owner'?: string; /** * The ID of the Application your from number or senderId is associated with in the Bandwidth Phone Number Dashboard. + * @type {string} + * @memberof Message */ 'applicationId'?: string; /** * The datetime stamp of the message in ISO 8601 + * @type {string} + * @memberof Message */ 'time'?: string; /** * The number of segments the user\'s message is broken into before sending over carrier networks. + * @type {number} + * @memberof Message */ 'segmentCount'?: number; + /** + * + * @type {MessageDirectionEnum} + * @memberof Message + */ 'direction'?: MessageDirectionEnum; /** * The phone number recipients of the message. + * @type {Set} + * @memberof Message */ 'to'?: Set; /** * The phone number the message was sent from. + * @type {string} + * @memberof Message */ 'from'?: string; /** * The list of media URLs sent in the message. Including a `filename` field in the `Content-Disposition` header of the media linked with a URL will set the displayed file name. This is a best practice to ensure that your media has a readable file name. + * @type {Set} + * @memberof Message */ 'media'?: Set; /** * The contents of the message. + * @type {string} + * @memberof Message */ 'text'?: string; /** * A custom string that will be included in callback events of the message. Max 1024 characters. + * @type {string} + * @memberof Message */ 'tag'?: string; + /** + * + * @type {PriorityEnum} + * @memberof Message + */ 'priority'?: PriorityEnum; /** * A string with the date/time value that the message will automatically expire by. This must be a valid RFC-3339 value, e.g., 2021-03-14T01:59:26Z or 2021-03-13T20:59:26-05:00. Must be a date-time in the future. + * @type {string} + * @memberof Message */ 'expiration'?: string; } diff --git a/models/messages-list.ts b/models/messages-list.ts index 577e49f..e7f80b7 100644 --- a/models/messages-list.ts +++ b/models/messages-list.ts @@ -20,12 +20,29 @@ import type { ListMessageItem } from './list-message-item'; // @ts-ignore import type { PageInfo } from './page-info'; +/** + * + * @export + * @interface MessagesList + */ export interface MessagesList { /** * The total number of messages matched by the search. When the request has limitTotalCount set to true this value is limited to 10,000. + * @type {number} + * @memberof MessagesList */ 'totalCount'?: number; + /** + * + * @type {PageInfo} + * @memberof MessagesList + */ 'pageInfo'?: PageInfo; + /** + * + * @type {Array} + * @memberof MessagesList + */ 'messages'?: Array; } diff --git a/models/messaging-code-response.ts b/models/messaging-code-response.ts index 718fa7e..628af5a 100644 --- a/models/messaging-code-response.ts +++ b/models/messaging-code-response.ts @@ -14,9 +14,16 @@ +/** + * + * @export + * @interface MessagingCodeResponse + */ export interface MessagingCodeResponse { /** * Messaging API Message ID. + * @type {string} + * @memberof MessagingCodeResponse */ 'messageId'?: string; } diff --git a/models/messaging-request-error.ts b/models/messaging-request-error.ts index 293431a..b244fca 100644 --- a/models/messaging-request-error.ts +++ b/models/messaging-request-error.ts @@ -14,8 +14,23 @@ +/** + * + * @export + * @interface MessagingRequestError + */ export interface MessagingRequestError { + /** + * + * @type {string} + * @memberof MessagingRequestError + */ 'type': string; + /** + * + * @type {string} + * @memberof MessagingRequestError + */ 'description': string; } diff --git a/models/mfa-forbidden-request-error.ts b/models/mfa-forbidden-request-error.ts index 93b32f5..d8ae542 100644 --- a/models/mfa-forbidden-request-error.ts +++ b/models/mfa-forbidden-request-error.ts @@ -14,9 +14,16 @@ +/** + * + * @export + * @interface MfaForbiddenRequestError + */ export interface MfaForbiddenRequestError { /** * The message containing the reason behind the request being forbidden. + * @type {string} + * @memberof MfaForbiddenRequestError */ 'message'?: string; } diff --git a/models/mfa-request-error.ts b/models/mfa-request-error.ts index b32e75a..82115ba 100644 --- a/models/mfa-request-error.ts +++ b/models/mfa-request-error.ts @@ -14,13 +14,22 @@ +/** + * + * @export + * @interface MfaRequestError + */ export interface MfaRequestError { /** * A message describing the error with your request. + * @type {string} + * @memberof MfaRequestError */ 'error'?: string; /** * The associated requestId from AWS. + * @type {string} + * @memberof MfaRequestError */ 'requestId'?: string; } diff --git a/models/mfa-unauthorized-request-error.ts b/models/mfa-unauthorized-request-error.ts index 737eb52..b810669 100644 --- a/models/mfa-unauthorized-request-error.ts +++ b/models/mfa-unauthorized-request-error.ts @@ -14,9 +14,16 @@ +/** + * + * @export + * @interface MfaUnauthorizedRequestError + */ export interface MfaUnauthorizedRequestError { /** * Unauthorized + * @type {string} + * @memberof MfaUnauthorizedRequestError */ 'message'?: string; } diff --git a/models/mms-message-content-file.ts b/models/mms-message-content-file.ts index a06be6a..a095c29 100644 --- a/models/mms-message-content-file.ts +++ b/models/mms-message-content-file.ts @@ -14,9 +14,16 @@ +/** + * + * @export + * @interface MmsMessageContentFile + */ export interface MmsMessageContentFile { /** * The URL of a media attachment. For MMS, the API limits file size to 3.5MB. Specific carriers and channels may have a smaller limit that could cause a large file to fail, see [here](https://support.bandwidth.com/hc/en-us/articles/360014235473-What-are-the-MMS-file-size-limits) for more details. + * @type {string} + * @memberof MmsMessageContentFile */ 'fileUrl': string; } diff --git a/models/mms-message-content.ts b/models/mms-message-content.ts index b5c10be..b18e555 100644 --- a/models/mms-message-content.ts +++ b/models/mms-message-content.ts @@ -17,11 +17,23 @@ // @ts-ignore import type { MmsMessageContentFile } from './mms-message-content-file'; +/** + * + * @export + * @interface MmsMessageContent + */ export interface MmsMessageContent { /** * The contents of the text message. Must be 2048 characters or less. + * @type {string} + * @memberof MmsMessageContent */ 'text'?: string; + /** + * + * @type {Array} + * @memberof MmsMessageContent + */ 'media'?: Array; } diff --git a/models/model-error.ts b/models/model-error.ts index 8fe991b..ec1211f 100644 --- a/models/model-error.ts +++ b/models/model-error.ts @@ -17,9 +17,29 @@ // @ts-ignore import type { TelephoneNumber } from './telephone-number'; +/** + * + * @export + * @interface ModelError + */ export interface ModelError { + /** + * + * @type {number} + * @memberof ModelError + */ 'code'?: number; + /** + * + * @type {string} + * @memberof ModelError + */ 'description'?: string; + /** + * + * @type {Array} + * @memberof ModelError + */ 'telephoneNumbers'?: Array; } diff --git a/models/multi-channel-action-calendar-event.ts b/models/multi-channel-action-calendar-event.ts index 7fc8036..bf3bc66 100644 --- a/models/multi-channel-action-calendar-event.ts +++ b/models/multi-channel-action-calendar-event.ts @@ -22,6 +22,7 @@ import type { RbmActionTypeEnum } from './rbm-action-type-enum'; /** * @type MultiChannelActionCalendarEvent + * @export */ export type MultiChannelActionCalendarEvent = RbmActionBase; diff --git a/models/multi-channel-action.ts b/models/multi-channel-action.ts index 8d26e51..057824f 100644 --- a/models/multi-channel-action.ts +++ b/models/multi-channel-action.ts @@ -32,50 +32,82 @@ import type { RbmActionTypeEnum } from './rbm-action-type-enum'; // @ts-ignore import type { RbmActionViewLocation } from './rbm-action-view-location'; +/** + * + * @export + * @interface MultiChannelAction + */ export interface MultiChannelAction { + /** + * + * @type {RbmActionTypeEnum} + * @memberof MultiChannelAction + */ 'type': RbmActionTypeEnum; /** * Displayed text for user to click + * @type {string} + * @memberof MultiChannelAction */ 'text': string; /** * Base64 payload the customer receives when the reply is clicked. + * @type {string} + * @memberof MultiChannelAction */ 'postbackData': string; /** * The phone number to dial. Must be E164 format. + * @type {string} + * @memberof MultiChannelAction */ 'phoneNumber': string; /** * The latitude of the location. + * @type {number} + * @memberof MultiChannelAction */ 'latitude': number; /** * The longitude of the location. + * @type {number} + * @memberof MultiChannelAction */ 'longitude': number; /** * The label of the location. + * @type {string} + * @memberof MultiChannelAction */ 'label'?: string; /** * The title of the event. + * @type {string} + * @memberof MultiChannelAction */ 'title': string; /** * The start time of the event. + * @type {string} + * @memberof MultiChannelAction */ 'startTime': string; /** * The end time of the event. + * @type {string} + * @memberof MultiChannelAction */ 'endTime': string; /** * The description of the event. + * @type {string} + * @memberof MultiChannelAction */ 'description'?: string; /** * The URL to open in browser. + * @type {string} + * @memberof MultiChannelAction */ 'url': string; } diff --git a/models/multi-channel-channel-list-mmsobject.ts b/models/multi-channel-channel-list-mmsobject.ts index 3b0ffeb..dabedab 100644 --- a/models/multi-channel-channel-list-mmsobject.ts +++ b/models/multi-channel-channel-list-mmsobject.ts @@ -25,6 +25,7 @@ import type { MultiChannelMessageChannelEnum } from './multi-channel-message-cha /** * @type MultiChannelChannelListMMSObject + * @export */ export type MultiChannelChannelListMMSObject = MultiChannelChannelListObjectBase; diff --git a/models/multi-channel-channel-list-mmsresponse-object.ts b/models/multi-channel-channel-list-mmsresponse-object.ts index 95b451e..218867f 100644 --- a/models/multi-channel-channel-list-mmsresponse-object.ts +++ b/models/multi-channel-channel-list-mmsresponse-object.ts @@ -28,6 +28,7 @@ import type { MultiChannelMessageChannelEnum } from './multi-channel-message-cha /** * @type MultiChannelChannelListMMSResponseObject + * @export */ export type MultiChannelChannelListMMSResponseObject = MultiChannelChannelListMMSObject & MultiChannelChannelListOwnerObject; diff --git a/models/multi-channel-channel-list-object-base.ts b/models/multi-channel-channel-list-object-base.ts index d92097d..2b4ecf0 100644 --- a/models/multi-channel-channel-list-object-base.ts +++ b/models/multi-channel-channel-list-object-base.ts @@ -17,15 +17,29 @@ // @ts-ignore import type { MultiChannelMessageChannelEnum } from './multi-channel-message-channel-enum'; +/** + * + * @export + * @interface MultiChannelChannelListObjectBase + */ export interface MultiChannelChannelListObjectBase { /** * The sender ID of the message. This could be an alphanumeric sender ID. + * @type {string} + * @memberof MultiChannelChannelListObjectBase */ 'from': string; /** * The ID of the Application your from number or senderId is associated with in the Bandwidth Phone Number Dashboard. + * @type {string} + * @memberof MultiChannelChannelListObjectBase */ 'applicationId': string; + /** + * + * @type {MultiChannelMessageChannelEnum} + * @memberof MultiChannelChannelListObjectBase + */ 'channel': MultiChannelMessageChannelEnum; } diff --git a/models/multi-channel-channel-list-owner-object.ts b/models/multi-channel-channel-list-owner-object.ts index 2baf2bc..2a2746c 100644 --- a/models/multi-channel-channel-list-owner-object.ts +++ b/models/multi-channel-channel-list-owner-object.ts @@ -14,9 +14,16 @@ +/** + * + * @export + * @interface MultiChannelChannelListOwnerObject + */ export interface MultiChannelChannelListOwnerObject { /** * The Bandwidth senderId associated with the message. Identical to \'from\'. + * @type {string} + * @memberof MultiChannelChannelListOwnerObject */ 'owner': string; } diff --git a/models/multi-channel-channel-list-rbmobject-all-of-content.ts b/models/multi-channel-channel-list-rbmobject-all-of-content.ts index 4608944..4b1207b 100644 --- a/models/multi-channel-channel-list-rbmobject-all-of-content.ts +++ b/models/multi-channel-channel-list-rbmobject-all-of-content.ts @@ -44,6 +44,7 @@ import type { ThumbnailAlignmentEnum } from './thumbnail-alignment-enum'; /** * @type MultiChannelChannelListRBMObjectAllOfContent * The content of the message. + * @export */ export type MultiChannelChannelListRBMObjectAllOfContent = RbmMessageContentRichCard | RbmMessageContentText | RbmMessageMedia; diff --git a/models/multi-channel-channel-list-rbmobject.ts b/models/multi-channel-channel-list-rbmobject.ts index fb00b51..9f1614f 100644 --- a/models/multi-channel-channel-list-rbmobject.ts +++ b/models/multi-channel-channel-list-rbmobject.ts @@ -25,6 +25,7 @@ import type { MultiChannelMessageChannelEnum } from './multi-channel-message-cha /** * @type MultiChannelChannelListRBMObject + * @export */ export type MultiChannelChannelListRBMObject = MultiChannelChannelListObjectBase; diff --git a/models/multi-channel-channel-list-rbmresponse-object.ts b/models/multi-channel-channel-list-rbmresponse-object.ts index f3c4e77..ab0ddca 100644 --- a/models/multi-channel-channel-list-rbmresponse-object.ts +++ b/models/multi-channel-channel-list-rbmresponse-object.ts @@ -28,6 +28,7 @@ import type { MultiChannelMessageChannelEnum } from './multi-channel-message-cha /** * @type MultiChannelChannelListRBMResponseObject + * @export */ export type MultiChannelChannelListRBMResponseObject = MultiChannelChannelListOwnerObject & MultiChannelChannelListRBMObject; diff --git a/models/multi-channel-channel-list-request-object.ts b/models/multi-channel-channel-list-request-object.ts index c55a0b3..9cf7aaa 100644 --- a/models/multi-channel-channel-list-request-object.ts +++ b/models/multi-channel-channel-list-request-object.ts @@ -29,16 +29,35 @@ import type { MultiChannelChannelListSMSObject } from './multi-channel-channel-l // @ts-ignore import type { MultiChannelMessageChannelEnum } from './multi-channel-message-channel-enum'; +/** + * + * @export + * @interface MultiChannelChannelListRequestObject + */ export interface MultiChannelChannelListRequestObject { /** * The sender ID of the message. This could be an alphanumeric sender ID. + * @type {string} + * @memberof MultiChannelChannelListRequestObject */ 'from': string; /** * The ID of the Application your from number or senderId is associated with in the Bandwidth Phone Number Dashboard. + * @type {string} + * @memberof MultiChannelChannelListRequestObject */ 'applicationId': string; + /** + * + * @type {MultiChannelMessageChannelEnum} + * @memberof MultiChannelChannelListRequestObject + */ 'channel': MultiChannelMessageChannelEnum; + /** + * + * @type {MmsMessageContent} + * @memberof MultiChannelChannelListRequestObject + */ 'content': MmsMessageContent; } diff --git a/models/multi-channel-channel-list-response-object.ts b/models/multi-channel-channel-list-response-object.ts index b07901e..103f21c 100644 --- a/models/multi-channel-channel-list-response-object.ts +++ b/models/multi-channel-channel-list-response-object.ts @@ -29,19 +29,40 @@ import type { MultiChannelChannelListSMSResponseObject } from './multi-channel-c // @ts-ignore import type { MultiChannelMessageChannelEnum } from './multi-channel-message-channel-enum'; +/** + * + * @export + * @interface MultiChannelChannelListResponseObject + */ export interface MultiChannelChannelListResponseObject { /** * The sender ID of the message. This could be an alphanumeric sender ID. + * @type {string} + * @memberof MultiChannelChannelListResponseObject */ 'from': string; /** * The ID of the Application your from number or senderId is associated with in the Bandwidth Phone Number Dashboard. + * @type {string} + * @memberof MultiChannelChannelListResponseObject */ 'applicationId': string; + /** + * + * @type {MultiChannelMessageChannelEnum} + * @memberof MultiChannelChannelListResponseObject + */ 'channel': MultiChannelMessageChannelEnum; + /** + * + * @type {MmsMessageContent} + * @memberof MultiChannelChannelListResponseObject + */ 'content': MmsMessageContent; /** * The Bandwidth senderId associated with the message. Identical to \'from\'. + * @type {string} + * @memberof MultiChannelChannelListResponseObject */ 'owner': string; } diff --git a/models/multi-channel-channel-list-smsobject.ts b/models/multi-channel-channel-list-smsobject.ts index b85d6a0..6e479de 100644 --- a/models/multi-channel-channel-list-smsobject.ts +++ b/models/multi-channel-channel-list-smsobject.ts @@ -25,6 +25,7 @@ import type { SmsMessageContent } from './sms-message-content'; /** * @type MultiChannelChannelListSMSObject + * @export */ export type MultiChannelChannelListSMSObject = MultiChannelChannelListObjectBase; diff --git a/models/multi-channel-channel-list-smsresponse-object.ts b/models/multi-channel-channel-list-smsresponse-object.ts index 131d01b..ebd8fcc 100644 --- a/models/multi-channel-channel-list-smsresponse-object.ts +++ b/models/multi-channel-channel-list-smsresponse-object.ts @@ -28,6 +28,7 @@ import type { SmsMessageContent } from './sms-message-content'; /** * @type MultiChannelChannelListSMSResponseObject + * @export */ export type MultiChannelChannelListSMSResponseObject = MultiChannelChannelListOwnerObject & MultiChannelChannelListSMSObject; diff --git a/models/multi-channel-error.ts b/models/multi-channel-error.ts index 879ddc7..dd1b508 100644 --- a/models/multi-channel-error.ts +++ b/models/multi-channel-error.ts @@ -20,9 +20,29 @@ import type { ErrorObject } from './error-object'; // @ts-ignore import type { Link } from './link'; +/** + * + * @export + * @interface MultiChannelError + */ export interface MultiChannelError { + /** + * + * @type {Array} + * @memberof MultiChannelError + */ 'links'?: Array; + /** + * + * @type {object} + * @memberof MultiChannelError + */ 'data'?: object | null; + /** + * + * @type {Array} + * @memberof MultiChannelError + */ 'errors'?: Array; } diff --git a/models/multi-channel-message-channel-enum.ts b/models/multi-channel-message-channel-enum.ts index e3b4ec9..61e39bc 100644 --- a/models/multi-channel-message-channel-enum.ts +++ b/models/multi-channel-message-channel-enum.ts @@ -16,6 +16,8 @@ /** * The channel of the multi-channel message. + * @export + * @enum {string} */ export const MultiChannelMessageChannelEnum = { diff --git a/models/multi-channel-message-content.ts b/models/multi-channel-message-content.ts index acaaa6e..e26cc24 100644 --- a/models/multi-channel-message-content.ts +++ b/models/multi-channel-message-content.ts @@ -19,9 +19,21 @@ import type { RbmMessageContentFile } from './rbm-message-content-file'; /** * The structure of the content field of a multichannel message. + * @export + * @interface MultiChannelMessageContent */ export interface MultiChannelMessageContent { + /** + * + * @type {string} + * @memberof MultiChannelMessageContent + */ 'text'?: string; + /** + * + * @type {RbmMessageContentFile} + * @memberof MultiChannelMessageContent + */ 'media'?: RbmMessageContentFile; } diff --git a/models/multi-channel-message-request.ts b/models/multi-channel-message-request.ts index c422704..e8d1656 100644 --- a/models/multi-channel-message-request.ts +++ b/models/multi-channel-message-request.ts @@ -22,23 +22,38 @@ import type { PriorityEnum } from './priority-enum'; /** * Multi-Channel Message Request + * @export + * @interface MultiChannelMessageRequest */ export interface MultiChannelMessageRequest { /** * The phone number the message should be sent to in E164 format. + * @type {string} + * @memberof MultiChannelMessageRequest */ 'to': string; /** * A list of message bodies. The messages will be attempted in the order they are listed. Once a message sends successfully, the others will be ignored. + * @type {Array} + * @memberof MultiChannelMessageRequest */ 'channelList': Array; /** * A custom string that will be included in callback events of the message. Max 1024 characters. + * @type {string} + * @memberof MultiChannelMessageRequest */ 'tag'?: string; + /** + * + * @type {PriorityEnum} + * @memberof MultiChannelMessageRequest + */ 'priority'?: PriorityEnum; /** * A string with the date/time value that the message will automatically expire by. This must be a valid RFC-3339 value, e.g., 2021-03-14T01:59:26Z or 2021-03-13T20:59:26-05:00. Must be a date-time in the future. + * @type {string} + * @memberof MultiChannelMessageRequest */ 'expiration'?: string; } diff --git a/models/multi-channel-message-response-data.ts b/models/multi-channel-message-response-data.ts index 43e2d28..18b2c17 100644 --- a/models/multi-channel-message-response-data.ts +++ b/models/multi-channel-message-response-data.ts @@ -25,32 +25,56 @@ import type { PriorityEnum } from './priority-enum'; /** * The data returned in a multichannel message response. + * @export + * @interface MultiChannelMessageResponseData */ export interface MultiChannelMessageResponseData { /** * The ID of the message. + * @type {string} + * @memberof MultiChannelMessageResponseData */ 'id': string; /** * The time the message was received by the Bandwidth API. + * @type {string} + * @memberof MultiChannelMessageResponseData */ 'time': string; + /** + * + * @type {MessageDirectionEnum} + * @memberof MultiChannelMessageResponseData + */ 'direction': MessageDirectionEnum; /** * The destination phone number(s) of the message, in E164 format. + * @type {Set} + * @memberof MultiChannelMessageResponseData */ 'to': Set; /** * A list of message bodies. The messages will be attempted in the order they are listed. Once a message sends successfully, the others will be ignored. + * @type {Array} + * @memberof MultiChannelMessageResponseData */ 'channelList': Array; /** * A custom string that will be included in callback events of the message. Max 1024 characters. + * @type {string} + * @memberof MultiChannelMessageResponseData */ 'tag'?: string; + /** + * + * @type {PriorityEnum} + * @memberof MultiChannelMessageResponseData + */ 'priority'?: PriorityEnum; /** * A string with the date/time value that the message will automatically expire by. This must be a valid RFC-3339 value, e.g., 2021-03-14T01:59:26Z or 2021-03-13T20:59:26-05:00. Must be a date-time in the future. + * @type {string} + * @memberof MultiChannelMessageResponseData */ 'expiration'?: string; } diff --git a/models/opt-in-workflow.ts b/models/opt-in-workflow.ts index d77ebdf..2e85892 100644 --- a/models/opt-in-workflow.ts +++ b/models/opt-in-workflow.ts @@ -14,9 +14,29 @@ +/** + * + * @export + * @interface OptInWorkflow + */ export interface OptInWorkflow { + /** + * + * @type {string} + * @memberof OptInWorkflow + */ 'description': string; + /** + * + * @type {Array} + * @memberof OptInWorkflow + */ 'imageUrls': Array; + /** + * + * @type {string} + * @memberof OptInWorkflow + */ 'confirmationResponse'?: string | null; } diff --git a/models/page-info.ts b/models/page-info.ts index ff9fe5d..e0495f8 100644 --- a/models/page-info.ts +++ b/models/page-info.ts @@ -14,21 +14,34 @@ +/** + * + * @export + * @interface PageInfo + */ export interface PageInfo { /** * The link to the previous page for pagination. + * @type {string} + * @memberof PageInfo */ 'prevPage'?: string; /** * The link to the next page for pagination. + * @type {string} + * @memberof PageInfo */ 'nextPage'?: string; /** * The isolated pagination token for the previous page. + * @type {string} + * @memberof PageInfo */ 'prevPageToken'?: string; /** * The isolated pagination token for the next page. + * @type {string} + * @memberof PageInfo */ 'nextPageToken'?: string; } diff --git a/models/priority-enum.ts b/models/priority-enum.ts index db3d87b..f824d20 100644 --- a/models/priority-enum.ts +++ b/models/priority-enum.ts @@ -16,6 +16,8 @@ /** * Specifies the message\'s sending priority with respect to other messages in your account. For best results and optimal throughput, reserve the \'high\' priority setting for critical messages only. + * @export + * @enum {string} */ export const PriorityEnum = { diff --git a/models/product-type-enum.ts b/models/product-type-enum.ts index b078361..af1ab1e 100644 --- a/models/product-type-enum.ts +++ b/models/product-type-enum.ts @@ -16,6 +16,8 @@ /** * The type of product associated with the message. + * @export + * @enum {string} */ export const ProductTypeEnum = { diff --git a/models/rbm-action-base.ts b/models/rbm-action-base.ts index 5819d0c..389d48d 100644 --- a/models/rbm-action-base.ts +++ b/models/rbm-action-base.ts @@ -17,14 +17,28 @@ // @ts-ignore import type { RbmActionTypeEnum } from './rbm-action-type-enum'; +/** + * + * @export + * @interface RbmActionBase + */ export interface RbmActionBase { + /** + * + * @type {RbmActionTypeEnum} + * @memberof RbmActionBase + */ 'type': RbmActionTypeEnum; /** * Displayed text for user to click + * @type {string} + * @memberof RbmActionBase */ 'text': string; /** * Base64 payload the customer receives when the reply is clicked. + * @type {string} + * @memberof RbmActionBase */ 'postbackData': string; } diff --git a/models/rbm-action-dial.ts b/models/rbm-action-dial.ts index 95df4d0..4105867 100644 --- a/models/rbm-action-dial.ts +++ b/models/rbm-action-dial.ts @@ -22,6 +22,7 @@ import type { RbmActionTypeEnum } from './rbm-action-type-enum'; /** * @type RbmActionDial + * @export */ export type RbmActionDial = RbmActionBase; diff --git a/models/rbm-action-open-url.ts b/models/rbm-action-open-url.ts index 627df50..70743c0 100644 --- a/models/rbm-action-open-url.ts +++ b/models/rbm-action-open-url.ts @@ -22,6 +22,7 @@ import type { RbmActionTypeEnum } from './rbm-action-type-enum'; /** * @type RbmActionOpenUrl + * @export */ export type RbmActionOpenUrl = RbmActionBase; diff --git a/models/rbm-action-type-enum.ts b/models/rbm-action-type-enum.ts index 8eb7d82..431cf0a 100644 --- a/models/rbm-action-type-enum.ts +++ b/models/rbm-action-type-enum.ts @@ -14,6 +14,11 @@ +/** + * + * @export + * @enum {string} + */ export const RbmActionTypeEnum = { Reply: 'REPLY', diff --git a/models/rbm-action-view-location.ts b/models/rbm-action-view-location.ts index d507e56..d33417c 100644 --- a/models/rbm-action-view-location.ts +++ b/models/rbm-action-view-location.ts @@ -22,6 +22,7 @@ import type { RbmActionTypeEnum } from './rbm-action-type-enum'; /** * @type RbmActionViewLocation + * @export */ export type RbmActionViewLocation = RbmActionBase; diff --git a/models/rbm-card-content-media.ts b/models/rbm-card-content-media.ts index e8ea2cb..246fba3 100644 --- a/models/rbm-card-content-media.ts +++ b/models/rbm-card-content-media.ts @@ -22,6 +22,7 @@ import type { RbmMessageContentFile } from './rbm-message-content-file'; /** * @type RbmCardContentMedia + * @export */ export type RbmCardContentMedia = RbmMessageContentFile; diff --git a/models/rbm-card-content.ts b/models/rbm-card-content.ts index b11fb43..4170f5b 100644 --- a/models/rbm-card-content.ts +++ b/models/rbm-card-content.ts @@ -20,18 +20,34 @@ import type { MultiChannelAction } from './multi-channel-action'; // @ts-ignore import type { RbmCardContentMedia } from './rbm-card-content-media'; +/** + * + * @export + * @interface RbmCardContent + */ export interface RbmCardContent { /** * The title of the card. Must be 200 characters or less. + * @type {string} + * @memberof RbmCardContent */ 'title'?: string; /** * The description of the card. Must be 2000 characters or less. + * @type {string} + * @memberof RbmCardContent */ 'description'?: string; + /** + * + * @type {RbmCardContentMedia} + * @memberof RbmCardContent + */ 'media'?: RbmCardContentMedia; /** * An array of suggested actions for the recipient that will be displayed on the rich card. + * @type {Array} + * @memberof RbmCardContent */ 'suggestions'?: Array; } diff --git a/models/rbm-location-response.ts b/models/rbm-location-response.ts index ea6bb50..35c3fec 100644 --- a/models/rbm-location-response.ts +++ b/models/rbm-location-response.ts @@ -14,13 +14,22 @@ +/** + * + * @export + * @interface RbmLocationResponse + */ export interface RbmLocationResponse { /** * The latitude of the client\'s location. + * @type {number} + * @memberof RbmLocationResponse */ 'latitude'?: number; /** * The longitude of the client\'s location. + * @type {number} + * @memberof RbmLocationResponse */ 'longitude'?: number; } diff --git a/models/rbm-media-height-enum.ts b/models/rbm-media-height-enum.ts index b5265c8..e82e6c6 100644 --- a/models/rbm-media-height-enum.ts +++ b/models/rbm-media-height-enum.ts @@ -16,6 +16,8 @@ /** * The height of the media. + * @export + * @enum {string} */ export const RbmMediaHeightEnum = { diff --git a/models/rbm-message-carousel-card.ts b/models/rbm-message-carousel-card.ts index 81c7224..a09a725 100644 --- a/models/rbm-message-carousel-card.ts +++ b/models/rbm-message-carousel-card.ts @@ -23,11 +23,28 @@ import type { MultiChannelAction } from './multi-channel-action'; // @ts-ignore import type { RbmCardContent } from './rbm-card-content'; +/** + * + * @export + * @interface RbmMessageCarouselCard + */ export interface RbmMessageCarouselCard { + /** + * + * @type {CardWidthEnum} + * @memberof RbmMessageCarouselCard + */ 'cardWidth': CardWidthEnum; + /** + * + * @type {Array} + * @memberof RbmMessageCarouselCard + */ 'cardContents': Array; /** * An array of suggested actions for the recipient. + * @type {Array} + * @memberof RbmMessageCarouselCard */ 'suggestions'?: Array; } diff --git a/models/rbm-message-content-file.ts b/models/rbm-message-content-file.ts index 0b14ada..cbf3acf 100644 --- a/models/rbm-message-content-file.ts +++ b/models/rbm-message-content-file.ts @@ -14,13 +14,22 @@ +/** + * + * @export + * @interface RbmMessageContentFile + */ export interface RbmMessageContentFile { /** * The URL of the media file. 100MB is the maximum file size. + * @type {string} + * @memberof RbmMessageContentFile */ 'fileUrl': string; /** * The URL of the thumbnail image. Applies only to video file media. + * @type {string} + * @memberof RbmMessageContentFile */ 'thumbnailUrl'?: string; } diff --git a/models/rbm-message-content-rich-card.ts b/models/rbm-message-content-rich-card.ts index 573d431..17469d8 100644 --- a/models/rbm-message-content-rich-card.ts +++ b/models/rbm-message-content-rich-card.ts @@ -37,6 +37,7 @@ import type { ThumbnailAlignmentEnum } from './thumbnail-alignment-enum'; /** * @type RbmMessageContentRichCard + * @export */ export type RbmMessageContentRichCard = RbmMessageCarouselCard | RbmStandaloneCard; diff --git a/models/rbm-message-content-text.ts b/models/rbm-message-content-text.ts index 619106a..4c43a6c 100644 --- a/models/rbm-message-content-text.ts +++ b/models/rbm-message-content-text.ts @@ -17,13 +17,22 @@ // @ts-ignore import type { MultiChannelAction } from './multi-channel-action'; +/** + * + * @export + * @interface RbmMessageContentText + */ export interface RbmMessageContentText { /** * The text associated with the message. Must be 3270 characters or less + * @type {string} + * @memberof RbmMessageContentText */ 'text': string; /** * An array of suggested actions for the recipient. + * @type {Array} + * @memberof RbmMessageContentText */ 'suggestions'?: Array; } diff --git a/models/rbm-message-media.ts b/models/rbm-message-media.ts index c196bef..218b180 100644 --- a/models/rbm-message-media.ts +++ b/models/rbm-message-media.ts @@ -20,10 +20,22 @@ import type { MultiChannelAction } from './multi-channel-action'; // @ts-ignore import type { RbmMessageContentFile } from './rbm-message-content-file'; +/** + * + * @export + * @interface RbmMessageMedia + */ export interface RbmMessageMedia { + /** + * + * @type {RbmMessageContentFile} + * @memberof RbmMessageMedia + */ 'media': RbmMessageContentFile; /** * An array of suggested actions for the recipient. + * @type {Array} + * @memberof RbmMessageMedia */ 'suggestions'?: Array; } diff --git a/models/rbm-standalone-card.ts b/models/rbm-standalone-card.ts index 5072ce8..eda7533 100644 --- a/models/rbm-standalone-card.ts +++ b/models/rbm-standalone-card.ts @@ -26,12 +26,34 @@ import type { StandaloneCardOrientationEnum } from './standalone-card-orientatio // @ts-ignore import type { ThumbnailAlignmentEnum } from './thumbnail-alignment-enum'; +/** + * + * @export + * @interface RbmStandaloneCard + */ export interface RbmStandaloneCard { + /** + * + * @type {StandaloneCardOrientationEnum} + * @memberof RbmStandaloneCard + */ 'orientation': StandaloneCardOrientationEnum; + /** + * + * @type {ThumbnailAlignmentEnum} + * @memberof RbmStandaloneCard + */ 'thumbnailImageAlignment': ThumbnailAlignmentEnum; + /** + * + * @type {RbmCardContent} + * @memberof RbmStandaloneCard + */ 'cardContent': RbmCardContent; /** * An array of suggested actions for the recipient. + * @type {Array} + * @memberof RbmStandaloneCard */ 'suggestions'?: Array; } diff --git a/models/rbm-suggestion-response.ts b/models/rbm-suggestion-response.ts index c346d37..1434f03 100644 --- a/models/rbm-suggestion-response.ts +++ b/models/rbm-suggestion-response.ts @@ -14,13 +14,22 @@ +/** + * + * @export + * @interface RbmSuggestionResponse + */ export interface RbmSuggestionResponse { /** * The text associated with the suggestion response. + * @type {string} + * @memberof RbmSuggestionResponse */ 'text'?: string; /** * Base64 payload the customer receives when the reply is clicked. + * @type {string} + * @memberof RbmSuggestionResponse */ 'postbackData'?: string; } diff --git a/models/recording-available-callback.ts b/models/recording-available-callback.ts index 0217e2d..64f6f58 100644 --- a/models/recording-available-callback.ts +++ b/models/recording-available-callback.ts @@ -22,88 +22,140 @@ import type { FileFormatEnum } from './file-format-enum'; /** * The Recording Available event is sent after a recording has been processed. It indicates that the recording is available for download. + * @export + * @interface RecordingAvailableCallback */ export interface RecordingAvailableCallback { /** * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. + * @type {string} + * @memberof RecordingAvailableCallback */ 'eventType'?: string; /** * The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. + * @type {string} + * @memberof RecordingAvailableCallback */ 'eventTime'?: string; /** * The user account associated with the call. + * @type {string} + * @memberof RecordingAvailableCallback */ 'accountId'?: string; /** * The id of the application associated with the call. + * @type {string} + * @memberof RecordingAvailableCallback */ 'applicationId'?: string; /** * The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). + * @type {string} + * @memberof RecordingAvailableCallback */ 'from'?: string; /** * The phone number that received the call, in E.164 format (e.g. +15555555555). + * @type {string} + * @memberof RecordingAvailableCallback */ 'to'?: string; + /** + * + * @type {CallDirectionEnum} + * @memberof RecordingAvailableCallback + */ 'direction'?: CallDirectionEnum; /** * The call id associated with the event. + * @type {string} + * @memberof RecordingAvailableCallback */ 'callId'?: string; /** * The URL of the call associated with the event. + * @type {string} + * @memberof RecordingAvailableCallback */ 'callUrl'?: string; /** * (optional) If the event is related to the B leg of a , the call id of the original call leg that executed the . Otherwise, this field will not be present. + * @type {string} + * @memberof RecordingAvailableCallback */ 'parentCallId'?: string; /** * The unique ID of this recording + * @type {string} + * @memberof RecordingAvailableCallback */ 'recordingId'?: string; /** * The URL that can be used to download the recording. Only present if the recording is finished and may be downloaded. + * @type {string} + * @memberof RecordingAvailableCallback */ 'mediaUrl'?: string | null; /** * (optional) If call queueing is enabled and this is an outbound call, time the call was queued, in ISO 8601 format. + * @type {string} + * @memberof RecordingAvailableCallback */ 'enqueuedTime'?: string | null; /** * Time the call was started, in ISO 8601 format. + * @type {string} + * @memberof RecordingAvailableCallback */ 'startTime'?: string; /** * The time that the recording ended in ISO-8601 format + * @type {string} + * @memberof RecordingAvailableCallback */ 'endTime'?: string; /** * The duration of the recording in ISO-8601 format + * @type {string} + * @memberof RecordingAvailableCallback */ 'duration'?: string; + /** + * + * @type {FileFormatEnum} + * @memberof RecordingAvailableCallback + */ 'fileFormat'?: FileFormatEnum; /** * Always `1` for conference recordings; multi-channel recordings are not supported on conferences. + * @type {number} + * @memberof RecordingAvailableCallback */ 'channels'?: number; /** * (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. + * @type {string} + * @memberof RecordingAvailableCallback */ 'tag'?: string | null; /** * The current status of the process. For recording, current possible values are \'processing\', \'partial\', \'complete\', \'deleted\', and \'error\'. For transcriptions, current possible values are \'none\', \'processing\', \'available\', \'error\', \'timeout\', \'file-size-too-big\', and \'file-size-too-small\'. Additional states may be added in the future, so your application must be tolerant of unknown values. + * @type {string} + * @memberof RecordingAvailableCallback */ 'status'?: string; /** * The phone number used as the from field of the B-leg call, in E.164 format (e.g. +15555555555). + * @type {string} + * @memberof RecordingAvailableCallback */ 'transferCallerId'?: string; /** * The phone number used as the to field of the B-leg call, in E.164 format (e.g. +15555555555). + * @type {string} + * @memberof RecordingAvailableCallback */ 'transferTo'?: string; } diff --git a/models/recording-complete-callback.ts b/models/recording-complete-callback.ts index 569e7b1..ec23b4d 100644 --- a/models/recording-complete-callback.ts +++ b/models/recording-complete-callback.ts @@ -22,88 +22,140 @@ import type { FileFormatEnum } from './file-format-enum'; /** * The Record Complete event is sent after a verb has executed if the call is still active. The BXML returned by this callback is executed next. When the recording is available for download, a Recording Available event will be sent. + * @export + * @interface RecordingCompleteCallback */ export interface RecordingCompleteCallback { /** * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. + * @type {string} + * @memberof RecordingCompleteCallback */ 'eventType'?: string; /** * The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. + * @type {string} + * @memberof RecordingCompleteCallback */ 'eventTime'?: string; /** * The user account associated with the call. + * @type {string} + * @memberof RecordingCompleteCallback */ 'accountId'?: string; /** * The id of the application associated with the call. + * @type {string} + * @memberof RecordingCompleteCallback */ 'applicationId'?: string; /** * The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). + * @type {string} + * @memberof RecordingCompleteCallback */ 'from'?: string; /** * The phone number that received the call, in E.164 format (e.g. +15555555555). + * @type {string} + * @memberof RecordingCompleteCallback */ 'to'?: string; + /** + * + * @type {CallDirectionEnum} + * @memberof RecordingCompleteCallback + */ 'direction'?: CallDirectionEnum; /** * The call id associated with the event. + * @type {string} + * @memberof RecordingCompleteCallback */ 'callId'?: string; /** * The URL of the call associated with the event. + * @type {string} + * @memberof RecordingCompleteCallback */ 'callUrl'?: string; /** * (optional) If the event is related to the B leg of a , the call id of the original call leg that executed the . Otherwise, this field will not be present. + * @type {string} + * @memberof RecordingCompleteCallback */ 'parentCallId'?: string; /** * The unique ID of this recording + * @type {string} + * @memberof RecordingCompleteCallback */ 'recordingId'?: string; /** * The URL that can be used to download the recording. Only present if the recording is finished and may be downloaded. + * @type {string} + * @memberof RecordingCompleteCallback */ 'mediaUrl'?: string | null; /** * (optional) If call queueing is enabled and this is an outbound call, time the call was queued, in ISO 8601 format. + * @type {string} + * @memberof RecordingCompleteCallback */ 'enqueuedTime'?: string | null; /** * Time the call was started, in ISO 8601 format. + * @type {string} + * @memberof RecordingCompleteCallback */ 'startTime'?: string; /** * Time the call was answered, in ISO 8601 format. + * @type {string} + * @memberof RecordingCompleteCallback */ 'answerTime'?: string | null; /** * The time that the recording ended in ISO-8601 format + * @type {string} + * @memberof RecordingCompleteCallback */ 'endTime'?: string; /** * The duration of the recording in ISO-8601 format + * @type {string} + * @memberof RecordingCompleteCallback */ 'duration'?: string; + /** + * + * @type {FileFormatEnum} + * @memberof RecordingCompleteCallback + */ 'fileFormat'?: FileFormatEnum; /** * Always `1` for conference recordings; multi-channel recordings are not supported on conferences. + * @type {number} + * @memberof RecordingCompleteCallback */ 'channels'?: number; /** * (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. + * @type {string} + * @memberof RecordingCompleteCallback */ 'tag'?: string | null; /** * The phone number used as the from field of the B-leg call, in E.164 format (e.g. +15555555555). + * @type {string} + * @memberof RecordingCompleteCallback */ 'transferCallerId'?: string; /** * The phone number used as the to field of the B-leg call, in E.164 format (e.g. +15555555555). + * @type {string} + * @memberof RecordingCompleteCallback */ 'transferTo'?: string; } diff --git a/models/recording-state-enum.ts b/models/recording-state-enum.ts index 99ca352..d90083c 100644 --- a/models/recording-state-enum.ts +++ b/models/recording-state-enum.ts @@ -16,6 +16,8 @@ /** * The recording state. Possible values: `paused` to pause an active recording `recording` to resume a paused recording + * @export + * @enum {string} */ export const RecordingStateEnum = { diff --git a/models/recording-transcription-metadata.ts b/models/recording-transcription-metadata.ts index 6620042..edd0b96 100644 --- a/models/recording-transcription-metadata.ts +++ b/models/recording-transcription-metadata.ts @@ -16,22 +16,32 @@ /** * If the recording was transcribed, metadata about the transcription + * @export + * @interface RecordingTranscriptionMetadata */ export interface RecordingTranscriptionMetadata { /** * The unique transcription ID + * @type {string} + * @memberof RecordingTranscriptionMetadata */ 'id'?: string; /** * The current status of the process. For recording, current possible values are \'processing\', \'partial\', \'complete\', \'deleted\', and \'error\'. For transcriptions, current possible values are \'none\', \'processing\', \'available\', \'error\', \'timeout\', \'file-size-too-big\', and \'file-size-too-small\'. Additional states may be added in the future, so your application must be tolerant of unknown values. + * @type {string} + * @memberof RecordingTranscriptionMetadata */ 'status'?: string; /** * The time that the transcription was completed + * @type {string} + * @memberof RecordingTranscriptionMetadata */ 'completedTime'?: string; /** * The URL of the [transcription](#operation/getCallTranscription) + * @type {string} + * @memberof RecordingTranscriptionMetadata */ 'url'?: string; } diff --git a/models/recording-transcriptions.ts b/models/recording-transcriptions.ts index 8f74add..8ce6354 100644 --- a/models/recording-transcriptions.ts +++ b/models/recording-transcriptions.ts @@ -17,7 +17,17 @@ // @ts-ignore import type { Transcription } from './transcription'; +/** + * + * @export + * @interface RecordingTranscriptions + */ export interface RecordingTranscriptions { + /** + * + * @type {Array} + * @memberof RecordingTranscriptions + */ 'transcripts'?: Array; } diff --git a/models/redirect-callback.ts b/models/redirect-callback.ts index 57dbe27..4185e0a 100644 --- a/models/redirect-callback.ts +++ b/models/redirect-callback.ts @@ -19,67 +19,104 @@ import type { CallDirectionEnum } from './call-direction-enum'; /** * The Redirect event is fired when a verb is executed. Its purpose is to get the next set of verbs from the calling application. + * @export + * @interface RedirectCallback */ export interface RedirectCallback { /** * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. + * @type {string} + * @memberof RedirectCallback */ 'eventType'?: string; /** * The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. + * @type {string} + * @memberof RedirectCallback */ 'eventTime'?: string; /** * The user account associated with the call. + * @type {string} + * @memberof RedirectCallback */ 'accountId'?: string; /** * The id of the application associated with the call. + * @type {string} + * @memberof RedirectCallback */ 'applicationId'?: string; /** * The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). + * @type {string} + * @memberof RedirectCallback */ 'from'?: string; /** * The phone number that received the call, in E.164 format (e.g. +15555555555). + * @type {string} + * @memberof RedirectCallback */ 'to'?: string; + /** + * + * @type {CallDirectionEnum} + * @memberof RedirectCallback + */ 'direction'?: CallDirectionEnum; /** * The call id associated with the event. + * @type {string} + * @memberof RedirectCallback */ 'callId'?: string; /** * The URL of the call associated with the event. + * @type {string} + * @memberof RedirectCallback */ 'callUrl'?: string; /** * (optional) If the event is related to the B leg of a , the call id of the original call leg that executed the . Otherwise, this field will not be present. + * @type {string} + * @memberof RedirectCallback */ 'parentCallId'?: string; /** * (optional) If call queueing is enabled and this is an outbound call, time the call was queued, in ISO 8601 format. + * @type {string} + * @memberof RedirectCallback */ 'enqueuedTime'?: string | null; /** * Time the call was started, in ISO 8601 format. + * @type {string} + * @memberof RedirectCallback */ 'startTime'?: string; /** * Time the call was answered, in ISO 8601 format. + * @type {string} + * @memberof RedirectCallback */ 'answerTime'?: string | null; /** * (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. + * @type {string} + * @memberof RedirectCallback */ 'tag'?: string | null; /** * The phone number used as the from field of the B-leg call, in E.164 format (e.g. +15555555555). + * @type {string} + * @memberof RedirectCallback */ 'transferCallerId'?: string; /** * The phone number used as the to field of the B-leg call, in E.164 format (e.g. +15555555555). + * @type {string} + * @memberof RedirectCallback */ 'transferTo'?: string; } diff --git a/models/redirect-method-enum.ts b/models/redirect-method-enum.ts index 86d2cee..4aaaf91 100644 --- a/models/redirect-method-enum.ts +++ b/models/redirect-method-enum.ts @@ -16,6 +16,8 @@ /** * The HTTP method to use for the request to `redirectUrl`. GET or POST. Default value is POST.

Not allowed if `state` is `completed`. + * @export + * @enum {string} */ export const RedirectMethodEnum = { diff --git a/models/sms-message-content.ts b/models/sms-message-content.ts index d863c2a..5d3cad8 100644 --- a/models/sms-message-content.ts +++ b/models/sms-message-content.ts @@ -14,9 +14,16 @@ +/** + * + * @export + * @interface SmsMessageContent + */ export interface SmsMessageContent { /** * The contents of the text message. Must be 2048 characters or less. + * @type {string} + * @memberof SmsMessageContent */ 'text': string; } diff --git a/models/standalone-card-orientation-enum.ts b/models/standalone-card-orientation-enum.ts index e1a0d28..25fa274 100644 --- a/models/standalone-card-orientation-enum.ts +++ b/models/standalone-card-orientation-enum.ts @@ -14,6 +14,11 @@ +/** + * + * @export + * @enum {string} + */ export const StandaloneCardOrientationEnum = { Horizontal: 'HORIZONTAL', diff --git a/models/status-callback-message.ts b/models/status-callback-message.ts index dfd2c91..8e6c1ae 100644 --- a/models/status-callback-message.ts +++ b/models/status-callback-message.ts @@ -25,44 +25,87 @@ import type { PriorityEnum } from './priority-enum'; /** * Message payload schema within a callback + * @export + * @interface StatusCallbackMessage */ export interface StatusCallbackMessage { /** * A unique identifier of the message. + * @type {string} + * @memberof StatusCallbackMessage */ 'id': string; /** * The Bandwidth phone number or alphanumeric identifier associated with the message. + * @type {string} + * @memberof StatusCallbackMessage */ 'owner': string; /** * The ID of the Application your from number or senderId is associated with in the Bandwidth Phone Number Dashboard. + * @type {string} + * @memberof StatusCallbackMessage */ 'applicationId': string; + /** + * + * @type {string} + * @memberof StatusCallbackMessage + */ 'time': string; /** * The number of segments the user\'s message is broken into before sending over carrier networks. + * @type {number} + * @memberof StatusCallbackMessage */ 'segmentCount': number; + /** + * + * @type {MessageDirectionEnum} + * @memberof StatusCallbackMessage + */ 'direction': MessageDirectionEnum; /** * The phone number recipients of the message. + * @type {Set} + * @memberof StatusCallbackMessage */ 'to': Set; /** * The Bandwidth phone number or alphanumeric identifier the message was sent from. + * @type {string} + * @memberof StatusCallbackMessage */ 'from': string; + /** + * + * @type {string} + * @memberof StatusCallbackMessage + */ 'text'?: string; /** * A custom string that will be included in callback events of the message. Max 1024 characters. + * @type {string} + * @memberof StatusCallbackMessage */ 'tag'?: string; /** * Optional media, not applicable for sms + * @type {Array} + * @memberof StatusCallbackMessage */ 'media'?: Array; + /** + * + * @type {PriorityEnum} + * @memberof StatusCallbackMessage + */ 'priority'?: PriorityEnum; + /** + * + * @type {MultiChannelMessageChannelEnum} + * @memberof StatusCallbackMessage + */ 'channel'?: MultiChannelMessageChannelEnum; } diff --git a/models/status-callback-type-enum.ts b/models/status-callback-type-enum.ts index a974c11..cecc6d6 100644 --- a/models/status-callback-type-enum.ts +++ b/models/status-callback-type-enum.ts @@ -16,6 +16,8 @@ /** * The possible status callbacks when sending an MT SMS or MMS or RBM message: - `message-sending` indicates that Bandwidth is sending the message to the upstream provider. - `message-delivered` indicates that the message was successfully sent. - `message-failed` indicates that the message could not be sent to the intended recipient. - `message-read` indicates that the RBM message was read by the recipient. + * @export + * @enum {string} */ export const StatusCallbackTypeEnum = { diff --git a/models/status-callback.ts b/models/status-callback.ts index b91b87c..5de44c7 100644 --- a/models/status-callback.ts +++ b/models/status-callback.ts @@ -22,29 +22,56 @@ import type { StatusCallbackTypeEnum } from './status-callback-type-enum'; /** * Represents a status callback for an outbound MT SMS or MMS or RBM message. + * @export + * @interface StatusCallback */ export interface StatusCallback { + /** + * + * @type {string} + * @memberof StatusCallback + */ 'time': string; /** * Represents the time at which the message was read, for `message-read` callbacks. + * @type {string} + * @memberof StatusCallback */ 'eventTime'?: string; + /** + * + * @type {StatusCallbackTypeEnum} + * @memberof StatusCallback + */ 'type': StatusCallbackTypeEnum; /** * The destination phone number the message was sent to. For status callbacks, this the the Bandwidth user\'s client phone number. + * @type {string} + * @memberof StatusCallback */ 'to': string; /** * A detailed description of the event described by the callback. + * @type {string} + * @memberof StatusCallback */ 'description': string; + /** + * + * @type {StatusCallbackMessage} + * @memberof StatusCallback + */ 'message': StatusCallbackMessage; /** * Optional error code, applicable only when type is `message-failed`. + * @type {number} + * @memberof StatusCallback */ 'errorCode'?: number; /** * The name of the Authorized Message Provider (AMP) that handled this message. In the US, this is the carrier that the message was sent to. This field is present only when this account feature has been enabled. + * @type {string} + * @memberof StatusCallback */ 'carrierName'?: string; } diff --git a/models/stir-shaken.ts b/models/stir-shaken.ts index 74f9ca4..39438ac 100644 --- a/models/stir-shaken.ts +++ b/models/stir-shaken.ts @@ -14,17 +14,28 @@ +/** + * + * @export + * @interface StirShaken + */ export interface StirShaken { /** * (optional) The verification status indicating whether the verification was successful or not. Possible values are TN-Validation-Passed and TN-Validation-Failed. + * @type {string} + * @memberof StirShaken */ 'verstat'?: string; /** * (optional) The attestation level verified by Bandwidth. Possible values are A (full), B (partial) or C (gateway). + * @type {string} + * @memberof StirShaken */ 'attestationIndicator'?: string; /** * (optional) A unique origination identifier. + * @type {string} + * @memberof StirShaken */ 'originatingId'?: string; } diff --git a/models/sync-lookup-request.ts b/models/sync-lookup-request.ts index 7f2e6e6..44c7dac 100644 --- a/models/sync-lookup-request.ts +++ b/models/sync-lookup-request.ts @@ -14,9 +14,16 @@ +/** + * + * @export + * @interface SyncLookupRequest + */ export interface SyncLookupRequest { /** * Telephone numbers in E.164 format. + * @type {Array} + * @memberof SyncLookupRequest */ 'phoneNumbers': Array; } diff --git a/models/telephone-number.ts b/models/telephone-number.ts index 8f7515f..d6a8124 100644 --- a/models/telephone-number.ts +++ b/models/telephone-number.ts @@ -14,9 +14,16 @@ +/** + * + * @export + * @interface TelephoneNumber + */ export interface TelephoneNumber { /** * Simple Telephone Number. + * @type {string} + * @memberof TelephoneNumber */ 'telephoneNumber'?: string; } diff --git a/models/tfv-basic-authentication.ts b/models/tfv-basic-authentication.ts index cdd87be..006320e 100644 --- a/models/tfv-basic-authentication.ts +++ b/models/tfv-basic-authentication.ts @@ -14,8 +14,23 @@ +/** + * + * @export + * @interface TfvBasicAuthentication + */ export interface TfvBasicAuthentication { + /** + * + * @type {string} + * @memberof TfvBasicAuthentication + */ 'username': string; + /** + * + * @type {string} + * @memberof TfvBasicAuthentication + */ 'password': string; } diff --git a/models/tfv-callback-status-enum.ts b/models/tfv-callback-status-enum.ts index 2c6a359..ecb2f03 100644 --- a/models/tfv-callback-status-enum.ts +++ b/models/tfv-callback-status-enum.ts @@ -14,6 +14,11 @@ +/** + * + * @export + * @enum {string} + */ export const TfvCallbackStatusEnum = { Verified: 'VERIFIED', diff --git a/models/tfv-error.ts b/models/tfv-error.ts index 54e5b6a..667f672 100644 --- a/models/tfv-error.ts +++ b/models/tfv-error.ts @@ -16,12 +16,26 @@ /** * A generic error object. + * @export + * @interface TfvError */ export interface TfvError { + /** + * + * @type {string} + * @memberof TfvError + */ 'type'?: string; + /** + * + * @type {string} + * @memberof TfvError + */ 'description'?: string; /** * Each key of this errors object refers to a field of the submitted object (using dot notation for nested objects), with the field being a key to an array of one or more errors for that field. + * @type {object} + * @memberof TfvError */ 'errors'?: object; } diff --git a/models/tfv-status-enum.ts b/models/tfv-status-enum.ts index 6b06a90..584e4ab 100644 --- a/models/tfv-status-enum.ts +++ b/models/tfv-status-enum.ts @@ -14,6 +14,11 @@ +/** + * + * @export + * @enum {string} + */ export const TfvStatusEnum = { Verified: 'VERIFIED', diff --git a/models/tfv-status.ts b/models/tfv-status.ts index 8330fcf..b3acb3a 100644 --- a/models/tfv-status.ts +++ b/models/tfv-status.ts @@ -20,39 +20,70 @@ import type { TfvStatusEnum } from './tfv-status-enum'; // @ts-ignore import type { TfvSubmissionInfo } from './tfv-submission-info'; +/** + * + * @export + * @interface TfvStatus + */ export interface TfvStatus { /** * Toll-free telephone number in E.164 format. + * @type {string} + * @memberof TfvStatus */ 'phoneNumber'?: string; + /** + * + * @type {TfvStatusEnum} + * @memberof TfvStatus + */ 'status'?: TfvStatusEnum; /** * Unique identifier (UUID) generated by Bandwidth to assist in tracking the verification status of a toll-free number - included in all webhook payloads. + * @type {string} + * @memberof TfvStatus */ 'internalTicketNumber'?: string; /** * Explanation for why a verification request was declined. + * @type {string} + * @memberof TfvStatus */ 'declineReasonDescription'?: string; /** * Whether a Toll-Free Verification request qualifies for resubmission via PUT. + * @type {boolean} + * @memberof TfvStatus */ 'resubmitAllowed'?: boolean; /** * Date and time the verification request was created. + * @type {string} + * @memberof TfvStatus */ 'createdDateTime'?: string; /** * Date and time the verification request was last modified. + * @type {string} + * @memberof TfvStatus */ 'modifiedDateTime'?: string; + /** + * + * @type {TfvSubmissionInfo} + * @memberof TfvStatus + */ 'submission'?: TfvSubmissionInfo; /** * Whether a Toll-Free Verification is blocked. This attribute will only be defined when the number is blocked. + * @type {boolean} + * @memberof TfvStatus */ 'blocked'?: boolean; /** * The reason why the Toll-Free Verification is blocked. This attribute will only be defined when the number is blocked. + * @type {string} + * @memberof TfvStatus */ 'blockedReason'?: string; } diff --git a/models/tfv-submission-info.ts b/models/tfv-submission-info.ts index a0840a5..57c2410 100644 --- a/models/tfv-submission-info.ts +++ b/models/tfv-submission-info.ts @@ -29,51 +29,101 @@ import type { Contact } from './contact'; // @ts-ignore import type { OptInWorkflow } from './opt-in-workflow'; +/** + * + * @export + * @interface TfvSubmissionInfo + */ export interface TfvSubmissionInfo { + /** + * + * @type {Address} + * @memberof TfvSubmissionInfo + */ 'businessAddress'?: Address; + /** + * + * @type {Contact} + * @memberof TfvSubmissionInfo + */ 'businessContact'?: Contact; /** * Estimated monthly volume of messages from the toll-free number. + * @type {number} + * @memberof TfvSubmissionInfo */ 'messageVolume'?: number; /** * The category of the use case. + * @type {string} + * @memberof TfvSubmissionInfo */ 'useCase'?: string; /** * A general idea of the use case and customer. + * @type {string} + * @memberof TfvSubmissionInfo */ 'useCaseSummary'?: string; /** * Example of message content. + * @type {string} + * @memberof TfvSubmissionInfo */ 'productionMessageContent'?: string; + /** + * + * @type {OptInWorkflow} + * @memberof TfvSubmissionInfo + */ 'optInWorkflow'?: OptInWorkflow; /** * Any additional information. + * @type {string} + * @memberof TfvSubmissionInfo */ 'additionalInformation'?: string | null; /** * ISV name. + * @type {string} + * @memberof TfvSubmissionInfo */ 'isvReseller'?: string | null; /** * The Toll-Free Verification request privacy policy URL. + * @type {string} + * @memberof TfvSubmissionInfo */ 'privacyPolicyUrl'?: string; /** * The Toll-Free Verification request terms and conditions policy URL. + * @type {string} + * @memberof TfvSubmissionInfo */ 'termsAndConditionsUrl'?: string; /** * The company \'Doing Business As\'. + * @type {string} + * @memberof TfvSubmissionInfo */ 'businessDba'?: string; /** * US Federal Tax ID Number (EIN) or Canada Business Number (CBN). Optional until early 2026. If a value is provided for this field, a value must be provided for `businessRegistrationType` and `businessEntityType`. Available starting October 1st, 2025. + * @type {string} + * @memberof TfvSubmissionInfo */ 'businessRegistrationNumber'?: string | null; + /** + * + * @type {BusinessRegistrationTypeEnum} + * @memberof TfvSubmissionInfo + */ 'businessRegistrationType'?: BusinessRegistrationTypeEnum | null; + /** + * + * @type {BusinessEntityTypeEnum} + * @memberof TfvSubmissionInfo + */ 'businessEntityType'?: BusinessEntityTypeEnum | null; } diff --git a/models/tfv-submission-wrapper.ts b/models/tfv-submission-wrapper.ts index a62fa14..1692cb2 100644 --- a/models/tfv-submission-wrapper.ts +++ b/models/tfv-submission-wrapper.ts @@ -17,7 +17,17 @@ // @ts-ignore import type { VerificationUpdateRequest } from './verification-update-request'; +/** + * + * @export + * @interface TfvSubmissionWrapper + */ export interface TfvSubmissionWrapper { + /** + * + * @type {VerificationUpdateRequest} + * @memberof TfvSubmissionWrapper + */ 'submission'?: VerificationUpdateRequest; } diff --git a/models/thumbnail-alignment-enum.ts b/models/thumbnail-alignment-enum.ts index c1336eb..784d7b9 100644 --- a/models/thumbnail-alignment-enum.ts +++ b/models/thumbnail-alignment-enum.ts @@ -16,6 +16,8 @@ /** * The alignment of the thumbnail image in the card. Only applicable if the card using horizontal orientation. + * @export + * @enum {string} */ export const ThumbnailAlignmentEnum = { diff --git a/models/transcribe-recording.ts b/models/transcribe-recording.ts index ecc8fc5..57e0519 100644 --- a/models/transcribe-recording.ts +++ b/models/transcribe-recording.ts @@ -17,30 +17,52 @@ // @ts-ignore import type { CallbackMethodEnum } from './callback-method-enum'; +/** + * + * @export + * @interface TranscribeRecording + */ export interface TranscribeRecording { /** * The URL to send the [TranscriptionAvailable](/docs/voice/webhooks/transcriptionAvailable) event to. You should not include sensitive or personally-identifiable information in the callbackUrl field! Always use the proper username and password fields for authorization. + * @type {string} + * @memberof TranscribeRecording */ 'callbackUrl'?: string; + /** + * + * @type {CallbackMethodEnum} + * @memberof TranscribeRecording + */ 'callbackMethod'?: CallbackMethodEnum | null; /** * Basic auth username. + * @type {string} + * @memberof TranscribeRecording */ 'username'?: string | null; /** * Basic auth password. + * @type {string} + * @memberof TranscribeRecording */ 'password'?: string | null; /** * (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. + * @type {string} + * @memberof TranscribeRecording */ 'tag'?: string | null; /** * This is the timeout (in seconds) to use when delivering the webhook to `callbackUrl`. Can be any numeric value (including decimals) between 1 and 25. + * @type {number} + * @memberof TranscribeRecording */ 'callbackTimeout'?: number | null; /** * A boolean value to indicate that the recording may not be in English, and the transcription service will need to detect the dominant language the recording is in and transcribe accordingly. Current supported languages are English, French, and Spanish. + * @type {boolean} + * @memberof TranscribeRecording */ 'detectLanguage'?: boolean | null; } diff --git a/models/transcription-available-callback.ts b/models/transcription-available-callback.ts index 305ff65..4c7358a 100644 --- a/models/transcription-available-callback.ts +++ b/models/transcription-available-callback.ts @@ -25,81 +25,134 @@ import type { Transcription } from './transcription'; /** * The Transcription Available event is sent when the recording transcription is available to be downloaded. + * @export + * @interface TranscriptionAvailableCallback */ export interface TranscriptionAvailableCallback { /** * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. + * @type {string} + * @memberof TranscriptionAvailableCallback */ 'eventType'?: string; /** * The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. + * @type {string} + * @memberof TranscriptionAvailableCallback */ 'eventTime'?: string; /** * The user account associated with the call. + * @type {string} + * @memberof TranscriptionAvailableCallback */ 'accountId'?: string; /** * The id of the application associated with the call. + * @type {string} + * @memberof TranscriptionAvailableCallback */ 'applicationId'?: string; /** * The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). + * @type {string} + * @memberof TranscriptionAvailableCallback */ 'from'?: string; /** * The phone number that received the call, in E.164 format (e.g. +15555555555). + * @type {string} + * @memberof TranscriptionAvailableCallback */ 'to'?: string; + /** + * + * @type {CallDirectionEnum} + * @memberof TranscriptionAvailableCallback + */ 'direction'?: CallDirectionEnum; /** * The call id associated with the event. + * @type {string} + * @memberof TranscriptionAvailableCallback */ 'callId'?: string; /** * The URL of the call associated with the event. + * @type {string} + * @memberof TranscriptionAvailableCallback */ 'callUrl'?: string; /** * The URL that can be used to download the recording. Only present if the recording is finished and may be downloaded. + * @type {string} + * @memberof TranscriptionAvailableCallback */ 'mediaUrl'?: string | null; /** * (optional) If the event is related to the B leg of a , the call id of the original call leg that executed the . Otherwise, this field will not be present. + * @type {string} + * @memberof TranscriptionAvailableCallback */ 'parentCallId'?: string; /** * The unique ID of this recording + * @type {string} + * @memberof TranscriptionAvailableCallback */ 'recordingId'?: string; /** * (optional) If call queueing is enabled and this is an outbound call, time the call was queued, in ISO 8601 format. + * @type {string} + * @memberof TranscriptionAvailableCallback */ 'enqueuedTime'?: string | null; /** * Time the call was started, in ISO 8601 format. + * @type {string} + * @memberof TranscriptionAvailableCallback */ 'startTime'?: string; /** * The time that the recording ended in ISO-8601 format + * @type {string} + * @memberof TranscriptionAvailableCallback */ 'endTime'?: string; /** * The duration of the recording in ISO-8601 format + * @type {string} + * @memberof TranscriptionAvailableCallback */ 'duration'?: string; + /** + * + * @type {FileFormatEnum} + * @memberof TranscriptionAvailableCallback + */ 'fileFormat'?: FileFormatEnum; /** * (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. + * @type {string} + * @memberof TranscriptionAvailableCallback */ 'tag'?: string | null; + /** + * + * @type {Transcription} + * @memberof TranscriptionAvailableCallback + */ 'transcription'?: Transcription; /** * The phone number used as the from field of the B-leg call, in E.164 format (e.g. +15555555555). + * @type {string} + * @memberof TranscriptionAvailableCallback */ 'transferCallerId'?: string; /** * The phone number used as the to field of the B-leg call, in E.164 format (e.g. +15555555555). + * @type {string} + * @memberof TranscriptionAvailableCallback */ 'transferTo'?: string; } diff --git a/models/transcription.ts b/models/transcription.ts index 45648da..5a94ce7 100644 --- a/models/transcription.ts +++ b/models/transcription.ts @@ -14,13 +14,22 @@ +/** + * + * @export + * @interface Transcription + */ export interface Transcription { /** * The transcribed text + * @type {string} + * @memberof Transcription */ 'text'?: string; /** * The confidence on the recognized content, ranging from `0.0` to `1.0` with `1.0` being the highest confidence. + * @type {number} + * @memberof Transcription */ 'confidence'?: number; } diff --git a/models/transfer-answer-callback.ts b/models/transfer-answer-callback.ts index e484d5d..d8d2692 100644 --- a/models/transfer-answer-callback.ts +++ b/models/transfer-answer-callback.ts @@ -19,63 +19,98 @@ import type { CallDirectionEnum } from './call-direction-enum'; /** * When processing a verb, this event is sent when a called party (B-leg) answers. The event is sent to the endpoint specified in the transferAnswerUrl attribute of the tag that answered. BXML returned by this callback will be executed for the called party only. After all BXML has been executed, the called party will be bridged to the original call. Most BXML verbs are allowed in response to a transferAnswer event, but some are not allowed. + * @export + * @interface TransferAnswerCallback */ export interface TransferAnswerCallback { /** * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. + * @type {string} + * @memberof TransferAnswerCallback */ 'eventType'?: string; /** * The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. + * @type {string} + * @memberof TransferAnswerCallback */ 'eventTime'?: string; /** * The user account associated with the call. + * @type {string} + * @memberof TransferAnswerCallback */ 'accountId'?: string; /** * The id of the application associated with the call. + * @type {string} + * @memberof TransferAnswerCallback */ 'applicationId'?: string; /** * The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). + * @type {string} + * @memberof TransferAnswerCallback */ 'from'?: string; /** * The phone number that received the call, in E.164 format (e.g. +15555555555). + * @type {string} + * @memberof TransferAnswerCallback */ 'to'?: string; + /** + * + * @type {CallDirectionEnum} + * @memberof TransferAnswerCallback + */ 'direction'?: CallDirectionEnum; /** * The call id associated with the event. + * @type {string} + * @memberof TransferAnswerCallback */ 'callId'?: string; /** * The URL of the call associated with the event. + * @type {string} + * @memberof TransferAnswerCallback */ 'callUrl'?: string; /** * (optional) If call queueing is enabled and this is an outbound call, time the call was queued, in ISO 8601 format. + * @type {string} + * @memberof TransferAnswerCallback */ 'enqueuedTime'?: string | null; /** * Time the call was started, in ISO 8601 format. + * @type {string} + * @memberof TransferAnswerCallback */ 'startTime'?: string; /** * Time the call was answered, in ISO 8601 format. + * @type {string} + * @memberof TransferAnswerCallback */ 'answerTime'?: string | null; /** * (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. + * @type {string} + * @memberof TransferAnswerCallback */ 'tag'?: string | null; /** * The phone number used as the from field of the B-leg call, in E.164 format (e.g. +15555555555). + * @type {string} + * @memberof TransferAnswerCallback */ 'transferCallerId'?: string; /** * The phone number used as the to field of the B-leg call, in E.164 format (e.g. +15555555555). + * @type {string} + * @memberof TransferAnswerCallback */ 'transferTo'?: string; } diff --git a/models/transfer-complete-callback.ts b/models/transfer-complete-callback.ts index 6712b24..d5d0e2c 100644 --- a/models/transfer-complete-callback.ts +++ b/models/transfer-complete-callback.ts @@ -19,75 +19,116 @@ import type { CallDirectionEnum } from './call-direction-enum'; /** * This event is sent to the transferCompleteUrl of the A-leg\'s verb when the transferred call (B-leg) completes. In a simultaneous ringing scenario, only one B-leg succeeds and this event corresponds to that successful leg. If none of the calls were answered, the transferComplete event corresponds to one of the legs. + * @export + * @interface TransferCompleteCallback */ export interface TransferCompleteCallback { /** * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. + * @type {string} + * @memberof TransferCompleteCallback */ 'eventType'?: string; /** * The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. + * @type {string} + * @memberof TransferCompleteCallback */ 'eventTime'?: string; /** * The user account associated with the call. + * @type {string} + * @memberof TransferCompleteCallback */ 'accountId'?: string; /** * The id of the application associated with the call. + * @type {string} + * @memberof TransferCompleteCallback */ 'applicationId'?: string; /** * The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). + * @type {string} + * @memberof TransferCompleteCallback */ 'from'?: string; /** * The phone number that received the call, in E.164 format (e.g. +15555555555). + * @type {string} + * @memberof TransferCompleteCallback */ 'to'?: string; + /** + * + * @type {CallDirectionEnum} + * @memberof TransferCompleteCallback + */ 'direction'?: CallDirectionEnum; /** * The call id associated with the event. + * @type {string} + * @memberof TransferCompleteCallback */ 'callId'?: string; /** * The URL of the call associated with the event. + * @type {string} + * @memberof TransferCompleteCallback */ 'callUrl'?: string; /** * (optional) If call queueing is enabled and this is an outbound call, time the call was queued, in ISO 8601 format. + * @type {string} + * @memberof TransferCompleteCallback */ 'enqueuedTime'?: string | null; /** * Time the call was started, in ISO 8601 format. + * @type {string} + * @memberof TransferCompleteCallback */ 'startTime'?: string; /** * Time the call was answered, in ISO 8601 format. + * @type {string} + * @memberof TransferCompleteCallback */ 'answerTime'?: string | null; /** * (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. + * @type {string} + * @memberof TransferCompleteCallback */ 'tag'?: string | null; /** * The phone number used as the from field of the B-leg call, in E.164 format (e.g. +15555555555). + * @type {string} + * @memberof TransferCompleteCallback */ 'transferCallerId'?: string; /** * The phone number used as the to field of the B-leg call, in E.164 format (e.g. +15555555555). + * @type {string} + * @memberof TransferCompleteCallback */ 'transferTo'?: string; /** * Reason the call failed - hangup, busy, timeout, cancel, rejected, callback-error, invalid-bxml, application-error, account-limit, node-capacity-exceeded, error, or unknown. + * @type {string} + * @memberof TransferCompleteCallback */ 'cause'?: string; /** * Text explaining the reason that caused the call to fail in case of errors. + * @type {string} + * @memberof TransferCompleteCallback */ 'errorMessage'?: string | null; /** * Bandwidth\'s internal id that references the error event. + * @type {string} + * @memberof TransferCompleteCallback */ 'errorId'?: string | null; } diff --git a/models/transfer-disconnect-callback.ts b/models/transfer-disconnect-callback.ts index b2fca5a..d2567fd 100644 --- a/models/transfer-disconnect-callback.ts +++ b/models/transfer-disconnect-callback.ts @@ -19,83 +19,128 @@ import type { CallDirectionEnum } from './call-direction-enum'; /** * This event is sent to the transferDisconnectUrl of each tag when its respective call leg ends for any reason. The event is sent in the normal case, when the transferred leg is answered and later hung up, but is also sent if the new leg was never answered in the first place, if it was rejected, and if the original call leg hung up before the transferred leg. + * @export + * @interface TransferDisconnectCallback */ export interface TransferDisconnectCallback { /** * The event type, value can be one of the following: answer, bridgeComplete, bridgeTargetComplete, conferenceCreated, conferenceRedirect, conferenceMemberJoin, conferenceMemberExit, conferenceCompleted, conferenceRecordingAvailable, disconnect, dtmf, gather, initiate, machineDetectionComplete, recordingComplete, recordingAvailable, redirect, transcriptionAvailable, transferAnswer, transferComplete, transferDisconnect. + * @type {string} + * @memberof TransferDisconnectCallback */ 'eventType'?: string; /** * The approximate UTC date and time when the event was generated by the Bandwidth server, in ISO 8601 format. This may not be exactly the time of event execution. + * @type {string} + * @memberof TransferDisconnectCallback */ 'eventTime'?: string; /** * The user account associated with the call. + * @type {string} + * @memberof TransferDisconnectCallback */ 'accountId'?: string; /** * The id of the application associated with the call. + * @type {string} + * @memberof TransferDisconnectCallback */ 'applicationId'?: string; /** * The provided identifier of the caller. Must be a phone number in E.164 format (e.g. +15555555555). + * @type {string} + * @memberof TransferDisconnectCallback */ 'from'?: string; /** * The phone number that received the call, in E.164 format (e.g. +15555555555). + * @type {string} + * @memberof TransferDisconnectCallback */ 'to'?: string; + /** + * + * @type {CallDirectionEnum} + * @memberof TransferDisconnectCallback + */ 'direction'?: CallDirectionEnum; /** * The call id associated with the event. + * @type {string} + * @memberof TransferDisconnectCallback */ 'callId'?: string; /** * The URL of the call associated with the event. + * @type {string} + * @memberof TransferDisconnectCallback */ 'callUrl'?: string; /** * (optional) If the event is related to the B leg of a , the call id of the original call leg that executed the . Otherwise, this field will not be present. + * @type {string} + * @memberof TransferDisconnectCallback */ 'parentCallId'?: string; /** * (optional) If call queueing is enabled and this is an outbound call, time the call was queued, in ISO 8601 format. + * @type {string} + * @memberof TransferDisconnectCallback */ 'enqueuedTime'?: string | null; /** * Time the call was started, in ISO 8601 format. + * @type {string} + * @memberof TransferDisconnectCallback */ 'startTime'?: string; /** * Time the call was answered, in ISO 8601 format. + * @type {string} + * @memberof TransferDisconnectCallback */ 'answerTime'?: string | null; /** * The time that the recording ended in ISO-8601 format + * @type {string} + * @memberof TransferDisconnectCallback */ 'endTime'?: string; /** * (optional) The tag specified on call creation. If no tag was specified or it was previously cleared, this field will not be present. + * @type {string} + * @memberof TransferDisconnectCallback */ 'tag'?: string | null; /** * The phone number used as the from field of the B-leg call, in E.164 format (e.g. +15555555555). + * @type {string} + * @memberof TransferDisconnectCallback */ 'transferCallerId'?: string; /** * The phone number used as the to field of the B-leg call, in E.164 format (e.g. +15555555555). + * @type {string} + * @memberof TransferDisconnectCallback */ 'transferTo'?: string; /** * Reason the call failed - hangup, busy, timeout, cancel, rejected, callback-error, invalid-bxml, application-error, account-limit, node-capacity-exceeded, error, or unknown. + * @type {string} + * @memberof TransferDisconnectCallback */ 'cause'?: string; /** * Text explaining the reason that caused the call to fail in case of errors. + * @type {string} + * @memberof TransferDisconnectCallback */ 'errorMessage'?: string | null; /** * Bandwidth\'s internal id that references the error event. + * @type {string} + * @memberof TransferDisconnectCallback */ 'errorId'?: string | null; } diff --git a/models/update-call-recording.ts b/models/update-call-recording.ts index 85915db..e4e6de5 100644 --- a/models/update-call-recording.ts +++ b/models/update-call-recording.ts @@ -17,7 +17,17 @@ // @ts-ignore import type { RecordingStateEnum } from './recording-state-enum'; +/** + * + * @export + * @interface UpdateCallRecording + */ export interface UpdateCallRecording { + /** + * + * @type {RecordingStateEnum} + * @memberof UpdateCallRecording + */ 'state': RecordingStateEnum; } diff --git a/models/update-call.ts b/models/update-call.ts index f374513..ff07a60 100644 --- a/models/update-call.ts +++ b/models/update-call.ts @@ -20,36 +20,70 @@ import type { CallStateEnum } from './call-state-enum'; // @ts-ignore import type { RedirectMethodEnum } from './redirect-method-enum'; +/** + * + * @export + * @interface UpdateCall + */ export interface UpdateCall { + /** + * + * @type {CallStateEnum} + * @memberof UpdateCall + */ 'state'?: CallStateEnum | null; /** * The URL to send the [Redirect](/docs/voice/bxml/redirect) event to which will provide new BXML. Required if `state` is `active`. Not allowed if `state` is `completed`. + * @type {string} + * @memberof UpdateCall */ 'redirectUrl'?: string | null; + /** + * + * @type {RedirectMethodEnum} + * @memberof UpdateCall + */ 'redirectMethod'?: RedirectMethodEnum | null; /** * Basic auth username. + * @type {string} + * @memberof UpdateCall */ 'username'?: string | null; /** * Basic auth password. + * @type {string} + * @memberof UpdateCall */ 'password'?: string | null; /** * A fallback url which, if provided, will be used to retry the redirect callback delivery in case `redirectUrl` fails to respond. + * @type {string} + * @memberof UpdateCall */ 'redirectFallbackUrl'?: string | null; + /** + * + * @type {RedirectMethodEnum} + * @memberof UpdateCall + */ 'redirectFallbackMethod'?: RedirectMethodEnum | null; /** * Basic auth username. + * @type {string} + * @memberof UpdateCall */ 'fallbackUsername'?: string | null; /** * Basic auth password. + * @type {string} + * @memberof UpdateCall */ 'fallbackPassword'?: string | null; /** * A custom string that will be sent with this and all future callbacks unless overwritten by a future `tag` attribute or [``](/docs/voice/bxml/tag) verb, or cleared. May be cleared by setting `tag=\"\"`. Max length 256 characters. Not allowed if `state` is `completed`. + * @type {string} + * @memberof UpdateCall */ 'tag'?: string | null; } diff --git a/models/update-conference-member.ts b/models/update-conference-member.ts index 19ee0ee..b7d37d8 100644 --- a/models/update-conference-member.ts +++ b/models/update-conference-member.ts @@ -14,17 +14,28 @@ +/** + * + * @export + * @interface UpdateConferenceMember + */ export interface UpdateConferenceMember { /** * Whether or not this member is currently muted. Members who are muted are still able to hear other participants. Updates this member\'s mute status. Has no effect if omitted. + * @type {boolean} + * @memberof UpdateConferenceMember */ 'mute'?: boolean; /** * Whether or not this member is currently on hold. Members who are on hold are not able to hear or speak in the conference. Updates this member\'s hold status. Has no effect if omitted. + * @type {boolean} + * @memberof UpdateConferenceMember */ 'hold'?: boolean; /** * If this member had a value set for `callIdsToCoach` in its [Conference](/docs/voice/bxml/conference) verb or this list was added with a previous PUT request to modify the member, this is that list of calls. Modifies the calls that this member is coaching. Has no effect if omitted. See the documentation for the [Conference](/docs/voice/bxml/conference) verb for more details about coaching. Note that this will not add the matching calls to the conference; each call must individually execute a Conference verb to join. + * @type {Array} + * @memberof UpdateConferenceMember */ 'callIdsToCoach'?: Array | null; } diff --git a/models/update-conference.ts b/models/update-conference.ts index 9bc2188..1e2a305 100644 --- a/models/update-conference.ts +++ b/models/update-conference.ts @@ -20,32 +20,64 @@ import type { ConferenceStateEnum } from './conference-state-enum'; // @ts-ignore import type { RedirectMethodEnum } from './redirect-method-enum'; +/** + * + * @export + * @interface UpdateConference + */ export interface UpdateConference { + /** + * + * @type {ConferenceStateEnum} + * @memberof UpdateConference + */ 'status'?: ConferenceStateEnum | null; /** * The URL to send the [conferenceRedirect](/docs/voice/webhooks/conferenceRedirect) event which will provide new BXML. Not allowed if `state` is `completed`, but required if `state` is `active`. + * @type {string} + * @memberof UpdateConference */ 'redirectUrl'?: string | null; + /** + * + * @type {RedirectMethodEnum} + * @memberof UpdateConference + */ 'redirectMethod'?: RedirectMethodEnum | null; /** * Basic auth username. + * @type {string} + * @memberof UpdateConference */ 'username'?: string | null; /** * Basic auth password. + * @type {string} + * @memberof UpdateConference */ 'password'?: string | null; /** * A fallback url which, if provided, will be used to retry the `conferenceRedirect` webhook delivery in case `redirectUrl` fails to respond. Not allowed if `state` is `completed`. + * @type {string} + * @memberof UpdateConference */ 'redirectFallbackUrl'?: string | null; + /** + * + * @type {RedirectMethodEnum} + * @memberof UpdateConference + */ 'redirectFallbackMethod'?: RedirectMethodEnum | null; /** * Basic auth username. + * @type {string} + * @memberof UpdateConference */ 'fallbackUsername'?: string | null; /** * Basic auth password. + * @type {string} + * @memberof UpdateConference */ 'fallbackPassword'?: string | null; } diff --git a/models/verification-denial-webhook.ts b/models/verification-denial-webhook.ts index 76f2194..615a3e8 100644 --- a/models/verification-denial-webhook.ts +++ b/models/verification-denial-webhook.ts @@ -17,42 +17,70 @@ // @ts-ignore import type { AdditionalDenialReason } from './additional-denial-reason'; +/** + * + * @export + * @interface VerificationDenialWebhook + */ export interface VerificationDenialWebhook { /** * User\'s account ID. + * @type {string} + * @memberof VerificationDenialWebhook */ 'accountId'?: string; /** * An optional list of denial reasons in addition to declineReasonDescription when multiple reasons apply. + * @type {Array} + * @memberof VerificationDenialWebhook */ 'additionalDenialReasons'?: Array; /** * Explanation for why a verification request was declined. + * @type {string} + * @memberof VerificationDenialWebhook */ 'declineReasonDescription'?: string; /** * Reason code for denial. + * @type {number} + * @memberof VerificationDenialWebhook */ 'denialStatusCode'?: number; /** * Unique identifier (UUID) generated by Bandwidth to assist in tracking the verification status of a toll-free number. + * @type {string} + * @memberof VerificationDenialWebhook */ 'internalTicketNumber'?: string; /** * Toll-free telephone number in E.164 format. + * @type {string} + * @memberof VerificationDenialWebhook */ 'phoneNumber'?: string; /** * Whether a Toll-Free Verification request qualifies for resubmission via PUT. + * @type {boolean} + * @memberof VerificationDenialWebhook */ 'resubmitAllowed'?: boolean; + /** + * + * @type {string} + * @memberof VerificationDenialWebhook + */ 'status'?: string; /** * Whether a Toll-Free Verification is blocked. This attribute will only be defined when the number is blocked. + * @type {boolean} + * @memberof VerificationDenialWebhook */ 'blocked'?: boolean; /** * The reason why the Toll-Free Verification is blocked. This attribute will only be defined when the number is blocked. + * @type {string} + * @memberof VerificationDenialWebhook */ 'blockedReason'?: string; } diff --git a/models/verification-request.ts b/models/verification-request.ts index 409b383..4e63541 100644 --- a/models/verification-request.ts +++ b/models/verification-request.ts @@ -29,59 +29,118 @@ import type { Contact } from './contact'; // @ts-ignore import type { OptInWorkflow } from './opt-in-workflow'; +/** + * + * @export + * @interface VerificationRequest + */ export interface VerificationRequest { + /** + * + * @type {Address} + * @memberof VerificationRequest + */ 'businessAddress': Address; + /** + * + * @type {Contact} + * @memberof VerificationRequest + */ 'businessContact': Contact; /** * Estimated monthly volume of messages from the toll-free number. + * @type {number} + * @memberof VerificationRequest */ 'messageVolume': number; + /** + * + * @type {Array} + * @memberof VerificationRequest + */ 'phoneNumbers': Array; /** * The category of the use case. + * @type {string} + * @memberof VerificationRequest */ 'useCase': string; /** * A general idea of the use case and customer. + * @type {string} + * @memberof VerificationRequest */ 'useCaseSummary': string; /** * Example of message content. + * @type {string} + * @memberof VerificationRequest */ 'productionMessageContent': string; + /** + * + * @type {OptInWorkflow} + * @memberof VerificationRequest + */ 'optInWorkflow': OptInWorkflow; /** * Any additional information. + * @type {string} + * @memberof VerificationRequest */ 'additionalInformation'?: string | null; /** * ISV name. + * @type {string} + * @memberof VerificationRequest */ 'isvReseller'?: string | null; /** * The Toll-Free Verification request privacy policy URL. + * @type {string} + * @memberof VerificationRequest */ 'privacyPolicyUrl'?: string; /** * The Toll-Free Verification request terms and conditions policy URL. + * @type {string} + * @memberof VerificationRequest */ 'termsAndConditionsUrl'?: string; /** * The company \'Doing Business As\'. + * @type {string} + * @memberof VerificationRequest */ 'businessDba'?: string; /** * US Federal Tax ID Number (EIN) or Canada Business Number (CBN). Optional until early 2026. If a value is provided for this field, a value must be provided for `businessRegistrationType` and `businessEntityType`. Available starting October 1st, 2025. + * @type {string} + * @memberof VerificationRequest */ 'businessRegistrationNumber'?: string | null; + /** + * + * @type {BusinessRegistrationTypeEnum} + * @memberof VerificationRequest + */ 'businessRegistrationType'?: BusinessRegistrationTypeEnum | null; + /** + * + * @type {BusinessEntityTypeEnum} + * @memberof VerificationRequest + */ 'businessEntityType'?: BusinessEntityTypeEnum | null; /** * A message that gets sent to users requesting help. + * @type {string} + * @memberof VerificationRequest */ 'helpMessageResponse'?: string | null; /** * Indicates whether the content is age-gated. + * @type {boolean} + * @memberof VerificationRequest */ 'ageGatedContent'?: boolean; } diff --git a/models/verification-update-request.ts b/models/verification-update-request.ts index 5e6d90e..d2e3b6d 100644 --- a/models/verification-update-request.ts +++ b/models/verification-update-request.ts @@ -29,58 +29,112 @@ import type { Contact } from './contact'; // @ts-ignore import type { OptInWorkflow } from './opt-in-workflow'; +/** + * + * @export + * @interface VerificationUpdateRequest + */ export interface VerificationUpdateRequest { + /** + * + * @type {Address} + * @memberof VerificationUpdateRequest + */ 'businessAddress': Address; + /** + * + * @type {Contact} + * @memberof VerificationUpdateRequest + */ 'businessContact': Contact; /** * Estimated monthly volume of messages from the toll-free number. + * @type {number} + * @memberof VerificationUpdateRequest */ 'messageVolume': number; /** * The category of the use case. + * @type {string} + * @memberof VerificationUpdateRequest */ 'useCase': string; /** * A general idea of the use case and customer. + * @type {string} + * @memberof VerificationUpdateRequest */ 'useCaseSummary': string; /** * Example of message content. + * @type {string} + * @memberof VerificationUpdateRequest */ 'productionMessageContent': string; + /** + * + * @type {OptInWorkflow} + * @memberof VerificationUpdateRequest + */ 'optInWorkflow': OptInWorkflow; /** * Any additional information. + * @type {string} + * @memberof VerificationUpdateRequest */ 'additionalInformation'?: string | null; /** * ISV name. + * @type {string} + * @memberof VerificationUpdateRequest */ 'isvReseller'?: string | null; /** * The Toll-Free Verification request privacy policy URL. + * @type {string} + * @memberof VerificationUpdateRequest */ 'privacyPolicyUrl'?: string; /** * The Toll-Free Verification request terms and conditions policy URL. + * @type {string} + * @memberof VerificationUpdateRequest */ 'termsAndConditionsUrl'?: string; /** * The company \'Doing Business As\'. + * @type {string} + * @memberof VerificationUpdateRequest */ 'businessDba'?: string; /** * US Federal Tax ID Number (EIN) or Canada Business Number (CBN). Optional until early 2026. If a value is provided for this field, a value must be provided for `businessRegistrationType` and `businessEntityType`. Available starting October 1st, 2025. + * @type {string} + * @memberof VerificationUpdateRequest */ 'businessRegistrationNumber'?: string | null; + /** + * + * @type {BusinessRegistrationTypeEnum} + * @memberof VerificationUpdateRequest + */ 'businessRegistrationType'?: BusinessRegistrationTypeEnum | null; + /** + * + * @type {BusinessEntityTypeEnum} + * @memberof VerificationUpdateRequest + */ 'businessEntityType'?: BusinessEntityTypeEnum | null; /** * A message that gets sent to users requesting help. + * @type {string} + * @memberof VerificationUpdateRequest */ 'helpMessageResponse'?: string | null; /** * Indicates whether the content is age-gated. + * @type {boolean} + * @memberof VerificationUpdateRequest */ 'ageGatedContent'?: boolean; } diff --git a/models/verification-webhook.ts b/models/verification-webhook.ts index c3ae954..4d25d8e 100644 --- a/models/verification-webhook.ts +++ b/models/verification-webhook.ts @@ -17,18 +17,34 @@ // @ts-ignore import type { TfvCallbackStatusEnum } from './tfv-callback-status-enum'; +/** + * + * @export + * @interface VerificationWebhook + */ export interface VerificationWebhook { /** * User\'s account ID. + * @type {string} + * @memberof VerificationWebhook */ 'accountId'?: string; /** * Toll-free telephone number in E.164 format. + * @type {string} + * @memberof VerificationWebhook */ 'phoneNumber'?: string; + /** + * + * @type {TfvCallbackStatusEnum} + * @memberof VerificationWebhook + */ 'status'?: TfvCallbackStatusEnum; /** * Unique identifier (UUID) generated by Bandwidth to assist in tracking the verification status of a toll-free number. + * @type {string} + * @memberof VerificationWebhook */ 'internalTicketNumber'?: string; } diff --git a/models/verify-code-request.ts b/models/verify-code-request.ts index 20fc909..9ac47e5 100644 --- a/models/verify-code-request.ts +++ b/models/verify-code-request.ts @@ -14,21 +14,34 @@ +/** + * + * @export + * @interface VerifyCodeRequest + */ export interface VerifyCodeRequest { /** * The phone number to send the mfa code to. + * @type {string} + * @memberof VerifyCodeRequest */ 'to': string; /** * An optional field to denote what scope or action the mfa code is addressing. If not supplied, defaults to \"2FA\". + * @type {string} + * @memberof VerifyCodeRequest */ 'scope'?: string; /** * The time period, in minutes, to validate the mfa code. By setting this to 3 minutes, it will mean any code generated within the last 3 minutes are still valid. The valid range for expiration time is between 0 and 15 minutes, exclusively and inclusively, respectively. + * @type {number} + * @memberof VerifyCodeRequest */ 'expirationTimeInMinutes': number; /** * The generated mfa code to check if valid. + * @type {string} + * @memberof VerifyCodeRequest */ 'code': string; } diff --git a/models/verify-code-response.ts b/models/verify-code-response.ts index 5b242e0..44ff760 100644 --- a/models/verify-code-response.ts +++ b/models/verify-code-response.ts @@ -14,9 +14,16 @@ +/** + * + * @export + * @interface VerifyCodeResponse + */ export interface VerifyCodeResponse { /** * Whether or not the supplied code is valid. + * @type {boolean} + * @memberof VerifyCodeResponse */ 'valid'?: boolean; } diff --git a/models/voice-api-error.ts b/models/voice-api-error.ts index 8f3cdec..07e250a 100644 --- a/models/voice-api-error.ts +++ b/models/voice-api-error.ts @@ -14,9 +14,29 @@ +/** + * + * @export + * @interface VoiceApiError + */ export interface VoiceApiError { + /** + * + * @type {string} + * @memberof VoiceApiError + */ 'type'?: string; + /** + * + * @type {string} + * @memberof VoiceApiError + */ 'description'?: string; + /** + * + * @type {string} + * @memberof VoiceApiError + */ 'id'?: string | null; } diff --git a/models/voice-code-response.ts b/models/voice-code-response.ts index 90bf43c..e5f6a47 100644 --- a/models/voice-code-response.ts +++ b/models/voice-code-response.ts @@ -14,9 +14,16 @@ +/** + * + * @export + * @interface VoiceCodeResponse + */ export interface VoiceCodeResponse { /** * Programmable Voice API Call ID. + * @type {string} + * @memberof VoiceCodeResponse */ 'callId'?: string; } diff --git a/models/webhook-subscription-basic-authentication.ts b/models/webhook-subscription-basic-authentication.ts index 594422c..c706292 100644 --- a/models/webhook-subscription-basic-authentication.ts +++ b/models/webhook-subscription-basic-authentication.ts @@ -16,9 +16,21 @@ /** * Basic authentication credentials are not required, but if present, both username and password must be provided. + * @export + * @interface WebhookSubscriptionBasicAuthentication */ export interface WebhookSubscriptionBasicAuthentication { + /** + * + * @type {string} + * @memberof WebhookSubscriptionBasicAuthentication + */ 'username': string; + /** + * + * @type {string} + * @memberof WebhookSubscriptionBasicAuthentication + */ 'password': string; } diff --git a/models/webhook-subscription-request-schema.ts b/models/webhook-subscription-request-schema.ts index cc248cb..4581526 100644 --- a/models/webhook-subscription-request-schema.ts +++ b/models/webhook-subscription-request-schema.ts @@ -17,14 +17,28 @@ // @ts-ignore import type { TfvBasicAuthentication } from './tfv-basic-authentication'; +/** + * + * @export + * @interface WebhookSubscriptionRequestSchema + */ export interface WebhookSubscriptionRequestSchema { + /** + * + * @type {TfvBasicAuthentication} + * @memberof WebhookSubscriptionRequestSchema + */ 'basicAuthentication'?: TfvBasicAuthentication; /** * Callback URL to receive status updates from Bandwidth. When a webhook subscription is registered with Bandwidth under a given account ID, it will be used to send status updates for all requests submitted under that account ID. + * @type {string} + * @memberof WebhookSubscriptionRequestSchema */ 'callbackUrl': string | null; /** * An ASCII string submitted by the user as a shared secret key for generating an HMAC header for callbacks. + * @type {string} + * @memberof WebhookSubscriptionRequestSchema */ 'sharedSecretKey'?: string | null; } diff --git a/models/webhook-subscription-type-enum.ts b/models/webhook-subscription-type-enum.ts index 84842e9..5dfbfa4 100644 --- a/models/webhook-subscription-type-enum.ts +++ b/models/webhook-subscription-type-enum.ts @@ -14,6 +14,11 @@ +/** + * + * @export + * @enum {string} + */ export const WebhookSubscriptionTypeEnum = { TollfreeVerificationStatus: 'TOLLFREE_VERIFICATION_STATUS', diff --git a/models/webhook-subscription.ts b/models/webhook-subscription.ts index 15b3789..23d2377 100644 --- a/models/webhook-subscription.ts +++ b/models/webhook-subscription.ts @@ -22,17 +22,51 @@ import type { WebhookSubscriptionTypeEnum } from './webhook-subscription-type-en /** * Information about a webhook that Bandwidth should send upon the completion of event customer has subscribed to. + * @export + * @interface WebhookSubscription */ export interface WebhookSubscription { + /** + * + * @type {string} + * @memberof WebhookSubscription + */ 'id'?: string; + /** + * + * @type {string} + * @memberof WebhookSubscription + */ 'accountId'?: string; /** * Callback URL to receive status updates from Bandwidth. When a webhook subscription is registered with Bandwidth under a given account ID, it will be used to send status updates for all requests submitted under that account ID. + * @type {string} + * @memberof WebhookSubscription */ 'callbackUrl': string | null; + /** + * + * @type {WebhookSubscriptionTypeEnum} + * @memberof WebhookSubscription + */ 'type'?: WebhookSubscriptionTypeEnum; + /** + * + * @type {WebhookSubscriptionBasicAuthentication} + * @memberof WebhookSubscription + */ 'basicAuthentication'?: WebhookSubscriptionBasicAuthentication; + /** + * + * @type {string} + * @memberof WebhookSubscription + */ 'createdDate'?: string; + /** + * + * @type {string} + * @memberof WebhookSubscription + */ 'modifiedDate'?: string; } diff --git a/models/webhook-subscriptions-list-body.ts b/models/webhook-subscriptions-list-body.ts index c54ce43..564109e 100644 --- a/models/webhook-subscriptions-list-body.ts +++ b/models/webhook-subscriptions-list-body.ts @@ -25,10 +25,27 @@ import type { WebhookSubscription } from './webhook-subscription'; /** * A list of all webhook subscriptions registered for this account ID for this particular feature (unpaginated). + * @export + * @interface WebhookSubscriptionsListBody */ export interface WebhookSubscriptionsListBody { + /** + * + * @type {LinksObject} + * @memberof WebhookSubscriptionsListBody + */ 'links'?: LinksObject; + /** + * + * @type {Array} + * @memberof WebhookSubscriptionsListBody + */ 'errors'?: Array; + /** + * + * @type {Array} + * @memberof WebhookSubscriptionsListBody + */ 'data': Array; } diff --git a/openapitools.json b/openapitools.json index f052220..151c200 100644 --- a/openapitools.json +++ b/openapitools.json @@ -2,6 +2,6 @@ "$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json", "spaces": 2, "generator-cli": { - "version": "7.17.0" + "version": "7.13.0" } }